@fedify/vocab 2.3.11-dev.2296 → 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/dist/mod.cjs CHANGED
@@ -33,7 +33,7 @@ let _fedify_vocab_runtime_temporal = require("@fedify/vocab-runtime/temporal");
33
33
  let es_toolkit = require("es-toolkit");
34
34
  //#region deno.json
35
35
  var name = "@fedify/vocab";
36
- var version = "2.3.11-dev.2296+29f4a6de";
36
+ var version = "2.3.11";
37
37
  //#endregion
38
38
  //#region src/type.ts
39
39
  function getTypeId(object) {
@@ -82,7 +82,7 @@ function decodeIri(iri) {
82
82
  }
83
83
  function isValidLanguageTag(language) {
84
84
  try {
85
- new Intl.Locale(language);
85
+ new Intl.Locale((0, _fedify_vocab_runtime.normalizeLanguageTag)(language));
86
86
  return true;
87
87
  } catch (error) {
88
88
  if (error instanceof RangeError) return false;
@@ -217,7 +217,7 @@ var Object$1 = class Object$1 {
217
217
  if (values.id == null || values.id instanceof URL) this.id = values.id ?? null;
218
218
  else throw new TypeError("The id must be a URL.");
219
219
  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)) {
220
- this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
220
+ this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
221
221
  for (let i = 0; i < values.attachments.length; i++) this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
222
222
  } else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
223
223
  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) {
@@ -227,7 +227,7 @@ var Object$1 = class Object$1 {
227
227
  if ("attributions" in values && values.attributions != null) {
228
228
  if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot initialize both attribution and attributions at the same time.");
229
229
  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)) {
230
- this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
230
+ this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
231
231
  for (let i = 0; i < values.attributions.length; i++) this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
232
232
  } else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
233
233
  }
@@ -238,7 +238,7 @@ var Object$1 = class Object$1 {
238
238
  if ("audiences" in values && values.audiences != null) {
239
239
  if ("audience" in values && values.audience != null) throw new TypeError("Cannot initialize both audience and audiences at the same time.");
240
240
  if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
241
- this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
241
+ this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
242
242
  for (let i = 0; i < values.audiences.length; i++) this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
243
243
  } else throw new TypeError("The audiences must be an array of type Object | URL.");
244
244
  }
@@ -246,24 +246,24 @@ var Object$1 = class Object$1 {
246
246
  else throw new TypeError("The content must be of type string | LanguageString.");
247
247
  if ("contents" in values && values.contents != null) {
248
248
  if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
249
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
249
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
250
250
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
251
251
  }
252
252
  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)) {
253
- this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
253
+ this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
254
254
  for (let i = 0; i < values.contexts.length; i++) this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
255
255
  } else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
256
256
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
257
257
  else throw new TypeError("The name must be of type string | LanguageString.");
258
258
  if ("names" in values && values.names != null) {
259
259
  if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
260
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
260
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
261
261
  else throw new TypeError("The names must be an array of type string | LanguageString.");
262
262
  }
263
263
  if ("endTime" in values && values.endTime != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.endTime)) this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
264
264
  else throw new TypeError("The endTime must be of type Temporal.Instant.");
265
265
  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)) {
266
- this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
266
+ this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
267
267
  for (let i = 0; i < values.generators.length; i++) this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
268
268
  } else throw new TypeError("The generators must be an array of type Object | Link | URL.");
269
269
  if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
@@ -273,7 +273,7 @@ var Object$1 = class Object$1 {
273
273
  if ("icons" in values && values.icons != null) {
274
274
  if ("icon" in values && values.icon != null) throw new TypeError("Cannot initialize both icon and icons at the same time.");
275
275
  if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
276
- this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
276
+ this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
277
277
  for (let i = 0; i < values.icons.length; i++) this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
278
278
  } else throw new TypeError("The icons must be an array of type Image | URL.");
279
279
  }
@@ -284,7 +284,7 @@ var Object$1 = class Object$1 {
284
284
  if ("images" in values && values.images != null) {
285
285
  if ("image" in values && values.image != null) throw new TypeError("Cannot initialize both image and images at the same time.");
286
286
  if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
287
- this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
287
+ this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
288
288
  for (let i = 0; i < values.images.length; i++) this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
289
289
  } else throw new TypeError("The images must be an array of type Image | URL.");
290
290
  }
@@ -295,7 +295,7 @@ var Object$1 = class Object$1 {
295
295
  if ("replyTargets" in values && values.replyTargets != null) {
296
296
  if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot initialize both replyTarget and replyTargets at the same time.");
297
297
  if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
298
- this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
298
+ this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
299
299
  for (let i = 0; i < values.replyTargets.length; i++) this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
300
300
  } else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
301
301
  }
@@ -306,7 +306,7 @@ var Object$1 = class Object$1 {
306
306
  if ("locations" in values && values.locations != null) {
307
307
  if ("location" in values && values.location != null) throw new TypeError("Cannot initialize both location and locations at the same time.");
308
308
  if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
309
- this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
309
+ this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
310
310
  for (let i = 0; i < values.locations.length; i++) this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
311
311
  } else throw new TypeError("The locations must be an array of type Object | Link | URL.");
312
312
  }
@@ -317,7 +317,7 @@ var Object$1 = class Object$1 {
317
317
  if ("previews" in values && values.previews != null) {
318
318
  if ("preview" in values && values.preview != null) throw new TypeError("Cannot initialize both preview and previews at the same time.");
319
319
  if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
320
- this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
320
+ this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
321
321
  for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
322
322
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
323
323
  }
@@ -345,11 +345,11 @@ var Object$1 = class Object$1 {
345
345
  else throw new TypeError("The summary must be of type string | LanguageString.");
346
346
  if ("summaries" in values && values.summaries != null) {
347
347
  if ("summary" in values && values.summary != null) throw new TypeError("Cannot initialize both summary and summaries at the same time.");
348
- if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
348
+ if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
349
349
  else throw new TypeError("The summaries must be an array of type string | LanguageString.");
350
350
  }
351
351
  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)) {
352
- this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
352
+ this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
353
353
  for (let i = 0; i < values.tags.length; i++) this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
354
354
  } else throw new TypeError("The tags must be an array of type Object | Link | URL.");
355
355
  if ("updated" in values && values.updated != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.updated)) this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
@@ -358,7 +358,7 @@ var Object$1 = class Object$1 {
358
358
  else throw new TypeError("The url must be of type URL | Link.");
359
359
  if ("urls" in values && values.urls != null) {
360
360
  if ("url" in values && values.url != null) throw new TypeError("Cannot initialize both url and urls at the same time.");
361
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
361
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
362
362
  else throw new TypeError("The urls must be an array of type URL | Link.");
363
363
  }
364
364
  if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
@@ -368,7 +368,7 @@ var Object$1 = class Object$1 {
368
368
  if ("tos" in values && values.tos != null) {
369
369
  if ("to" in values && values.to != null) throw new TypeError("Cannot initialize both to and tos at the same time.");
370
370
  if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
371
- this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
371
+ this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
372
372
  for (let i = 0; i < values.tos.length; i++) this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
373
373
  } else throw new TypeError("The tos must be an array of type Object | URL.");
374
374
  }
@@ -379,7 +379,7 @@ var Object$1 = class Object$1 {
379
379
  if ("btos" in values && values.btos != null) {
380
380
  if ("bto" in values && values.bto != null) throw new TypeError("Cannot initialize both bto and btos at the same time.");
381
381
  if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
382
- this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
382
+ this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
383
383
  for (let i = 0; i < values.btos.length; i++) this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
384
384
  } else throw new TypeError("The btos must be an array of type Object | URL.");
385
385
  }
@@ -390,7 +390,7 @@ var Object$1 = class Object$1 {
390
390
  if ("ccs" in values && values.ccs != null) {
391
391
  if ("cc" in values && values.cc != null) throw new TypeError("Cannot initialize both cc and ccs at the same time.");
392
392
  if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
393
- this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
393
+ this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
394
394
  for (let i = 0; i < values.ccs.length; i++) this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
395
395
  } else throw new TypeError("The ccs must be an array of type Object | URL.");
396
396
  }
@@ -401,7 +401,7 @@ var Object$1 = class Object$1 {
401
401
  if ("bccs" in values && values.bccs != null) {
402
402
  if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot initialize both bcc and bccs at the same time.");
403
403
  if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
404
- this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
404
+ this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
405
405
  for (let i = 0; i < values.bccs.length; i++) this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
406
406
  } else throw new TypeError("The bccs must be an array of type Object | URL.");
407
407
  }
@@ -420,7 +420,7 @@ var Object$1 = class Object$1 {
420
420
  if ("proofs" in values && values.proofs != null) {
421
421
  if ("proof" in values && values.proof != null) throw new TypeError("Cannot initialize both proof and proofs at the same time.");
422
422
  if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
423
- this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
423
+ this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
424
424
  for (let i = 0; i < values.proofs.length; i++) this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
425
425
  } else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
426
426
  }
@@ -445,7 +445,8 @@ var Object$1 = class Object$1 {
445
445
  * Clones this instance, optionally updating it with the given values.
446
446
  * @param values The values to update the clone with.
447
447
  * @param options The options to use for cloning.
448
- * @returns The cloned instance.
448
+ * @returns The cloned instance with its own property arrays. Nested objects
449
+ * and URLs are shared with this instance.
449
450
  */
450
451
  clone(values = {}, options = {}) {
451
452
  if (this._warning != null) {
@@ -456,14 +457,14 @@ var Object$1 = class Object$1 {
456
457
  };
457
458
  }
458
459
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
459
- clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment;
460
+ clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = this.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment.slice();
460
461
  clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = new Set(this.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment);
461
462
  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)) {
462
- clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments;
463
+ clone.#_49BipA5dq9eoH8LX8xdsVumveTca_attachment = values.attachments.slice();
463
464
  clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment = /* @__PURE__ */ new Set();
464
465
  for (let i = 0; i < values.attachments.length; i++) clone.#_trust_49BipA5dq9eoH8LX8xdsVumveTca_attachment.add(i);
465
466
  } else throw new TypeError("The attachments must be an array of type Object | Link | PropertyValue | URL.");
466
- clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo;
467
+ clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = this.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.slice();
467
468
  clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = new Set(this.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo);
468
469
  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) {
469
470
  clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = [values.attribution];
@@ -472,12 +473,12 @@ var Object$1 = class Object$1 {
472
473
  if ("attributions" in values && values.attributions != null) {
473
474
  if ("attribution" in values && values.attribution != null) throw new TypeError("Cannot update both attribution and attributions at the same time.");
474
475
  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)) {
475
- clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions;
476
+ clone.#_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = values.attributions.slice();
476
477
  clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo = /* @__PURE__ */ new Set();
477
478
  for (let i = 0; i < values.attributions.length; i++) clone.#_trust_42CGqJ94zgQ3ZBbfHwD8Hrr2L5Py_attributedTo.add(i);
478
479
  } else throw new TypeError("The attributions must be an array of type Application | Group | Organization | Person | Service | URL.");
479
480
  }
480
- clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience;
481
+ clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = this.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.slice();
481
482
  clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = new Set(this.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience);
482
483
  if ("audience" in values && values.audience != null) if (values.audience instanceof Object$1 || values.audience instanceof URL) {
483
484
  clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = [values.audience];
@@ -486,45 +487,45 @@ var Object$1 = class Object$1 {
486
487
  if ("audiences" in values && values.audiences != null) {
487
488
  if ("audience" in values && values.audience != null) throw new TypeError("Cannot update both audience and audiences at the same time.");
488
489
  if (Array.isArray(values.audiences) && values.audiences.every((v) => v instanceof Object$1 || v instanceof URL)) {
489
- clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences;
490
+ clone.#_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = values.audiences.slice();
490
491
  clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience = /* @__PURE__ */ new Set();
491
492
  for (let i = 0; i < values.audiences.length; i++) clone.#_trust_3ocC3VVi88cEd5sPWL8djkZsvTN6_audience.add(i);
492
493
  } else throw new TypeError("The audiences must be an array of type Object | URL.");
493
494
  }
494
- clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
495
+ clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
495
496
  if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof _fedify_vocab_runtime.LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
496
497
  else throw new TypeError("The content must be of type string | LanguageString.");
497
498
  if ("contents" in values && values.contents != null) {
498
499
  if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
499
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
500
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
500
501
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
501
502
  }
502
- clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context;
503
+ clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = this.#_3mhZzGXSpQ431mBSz2kvych22v4e_context.slice();
503
504
  clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = new Set(this.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context);
504
505
  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)) {
505
- clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts;
506
+ clone.#_3mhZzGXSpQ431mBSz2kvych22v4e_context = values.contexts.slice();
506
507
  clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context = /* @__PURE__ */ new Set();
507
508
  for (let i = 0; i < values.contexts.length; i++) clone.#_trust_3mhZzGXSpQ431mBSz2kvych22v4e_context.add(i);
508
509
  } else throw new TypeError("The contexts must be an array of type Object | Link | URL.");
509
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
510
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
510
511
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
511
512
  else throw new TypeError("The name must be of type string | LanguageString.");
512
513
  if ("names" in values && values.names != null) {
513
514
  if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
514
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
515
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
515
516
  else throw new TypeError("The names must be an array of type string | LanguageString.");
516
517
  }
517
- clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime;
518
+ clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = this.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime.slice();
518
519
  if ("endTime" in values && values.endTime != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.endTime)) clone.#_219RwDanjScTv5tYCjwGZVCM7KZ9_endTime = [values.endTime];
519
520
  else throw new TypeError("The endTime must be of type Temporal.Instant.");
520
- clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator;
521
+ clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = this.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator.slice();
521
522
  clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = new Set(this.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator);
522
523
  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)) {
523
- clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators;
524
+ clone.#_86xFhmgBapoMvYqjbjRuDPayTrS_generator = values.generators.slice();
524
525
  clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator = /* @__PURE__ */ new Set();
525
526
  for (let i = 0; i < values.generators.length; i++) clone.#_trust_86xFhmgBapoMvYqjbjRuDPayTrS_generator.add(i);
526
527
  } else throw new TypeError("The generators must be an array of type Object | Link | URL.");
527
- clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon;
528
+ clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = this.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.slice();
528
529
  clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = new Set(this.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon);
529
530
  if ("icon" in values && values.icon != null) if (values.icon instanceof Image || values.icon instanceof URL) {
530
531
  clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = [values.icon];
@@ -533,12 +534,12 @@ var Object$1 = class Object$1 {
533
534
  if ("icons" in values && values.icons != null) {
534
535
  if ("icon" in values && values.icon != null) throw new TypeError("Cannot update both icon and icons at the same time.");
535
536
  if (Array.isArray(values.icons) && values.icons.every((v) => v instanceof Image || v instanceof URL)) {
536
- clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons;
537
+ clone.#_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = values.icons.slice();
537
538
  clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon = /* @__PURE__ */ new Set();
538
539
  for (let i = 0; i < values.icons.length; i++) clone.#_trust_33CjRLy5ujtsUrwRSCrsggvGdKuR_icon.add(i);
539
540
  } else throw new TypeError("The icons must be an array of type Image | URL.");
540
541
  }
541
- clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image;
542
+ clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = this.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.slice();
542
543
  clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = new Set(this.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image);
543
544
  if ("image" in values && values.image != null) if (values.image instanceof Image || values.image instanceof URL) {
544
545
  clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = [values.image];
@@ -547,12 +548,12 @@ var Object$1 = class Object$1 {
547
548
  if ("images" in values && values.images != null) {
548
549
  if ("image" in values && values.image != null) throw new TypeError("Cannot update both image and images at the same time.");
549
550
  if (Array.isArray(values.images) && values.images.every((v) => v instanceof Image || v instanceof URL)) {
550
- clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images;
551
+ clone.#_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = values.images.slice();
551
552
  clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image = /* @__PURE__ */ new Set();
552
553
  for (let i = 0; i < values.images.length; i++) clone.#_trust_3dXrUdkARxwyJLtJcYi1AJ92H41U_image.add(i);
553
554
  } else throw new TypeError("The images must be an array of type Image | URL.");
554
555
  }
555
- clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo;
556
+ clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = this.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.slice();
556
557
  clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = new Set(this.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo);
557
558
  if ("replyTarget" in values && values.replyTarget != null) if (values.replyTarget instanceof Object$1 || values.replyTarget instanceof Link || values.replyTarget instanceof URL) {
558
559
  clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = [values.replyTarget];
@@ -561,12 +562,12 @@ var Object$1 = class Object$1 {
561
562
  if ("replyTargets" in values && values.replyTargets != null) {
562
563
  if ("replyTarget" in values && values.replyTarget != null) throw new TypeError("Cannot update both replyTarget and replyTargets at the same time.");
563
564
  if (Array.isArray(values.replyTargets) && values.replyTargets.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
564
- clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets;
565
+ clone.#_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = values.replyTargets.slice();
565
566
  clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo = /* @__PURE__ */ new Set();
566
567
  for (let i = 0; i < values.replyTargets.length; i++) clone.#_trust_3fpbDrvZgf3Kq1a5V9aByFn8kx3s_inReplyTo.add(i);
567
568
  } else throw new TypeError("The replyTargets must be an array of type Object | Link | URL.");
568
569
  }
569
- clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location;
570
+ clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = this.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.slice();
570
571
  clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = new Set(this.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location);
571
572
  if ("location" in values && values.location != null) if (values.location instanceof Object$1 || values.location instanceof Link || values.location instanceof URL) {
572
573
  clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = [values.location];
@@ -575,12 +576,12 @@ var Object$1 = class Object$1 {
575
576
  if ("locations" in values && values.locations != null) {
576
577
  if ("location" in values && values.location != null) throw new TypeError("Cannot update both location and locations at the same time.");
577
578
  if (Array.isArray(values.locations) && values.locations.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
578
- clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations;
579
+ clone.#_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = values.locations.slice();
579
580
  clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location = /* @__PURE__ */ new Set();
580
581
  for (let i = 0; i < values.locations.length; i++) clone.#_trust_31k5MUZJsnsPNg8dQQJieWaXTFnR_location.add(i);
581
582
  } else throw new TypeError("The locations must be an array of type Object | Link | URL.");
582
583
  }
583
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
584
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
584
585
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
585
586
  if ("preview" in values && values.preview != null) if (values.preview instanceof Link || values.preview instanceof Object$1 || values.preview instanceof URL) {
586
587
  clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = [values.preview];
@@ -589,68 +590,68 @@ var Object$1 = class Object$1 {
589
590
  if ("previews" in values && values.previews != null) {
590
591
  if ("preview" in values && values.preview != null) throw new TypeError("Cannot update both preview and previews at the same time.");
591
592
  if (Array.isArray(values.previews) && values.previews.every((v) => v instanceof Link || v instanceof Object$1 || v instanceof URL)) {
592
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
593
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
593
594
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
594
595
  for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
595
596
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
596
597
  }
597
- clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published;
598
+ clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = this.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published.slice();
598
599
  if ("published" in values && values.published != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.published)) clone.#_5e258TDXtuhaFRPZiGoDfEpjdMr_published = [values.published];
599
600
  else throw new TypeError("The published must be of type Temporal.Instant.");
600
- clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies;
601
+ clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = this.#_7UpwM3JWcXhADcscukEehBorf6k_replies.slice();
601
602
  clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set(this.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies);
602
603
  if ("replies" in values && values.replies != null) if (values.replies instanceof Collection || values.replies instanceof URL) {
603
604
  clone.#_7UpwM3JWcXhADcscukEehBorf6k_replies = [values.replies];
604
605
  clone.#_trust_7UpwM3JWcXhADcscukEehBorf6k_replies = new Set([0]);
605
606
  } else throw new TypeError("The replies must be of type Collection | URL.");
606
- clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares;
607
+ clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = this.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares.slice();
607
608
  clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set(this.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares);
608
609
  if ("shares" in values && values.shares != null) if (values.shares instanceof Collection || values.shares instanceof URL) {
609
610
  clone.#_3kAfck9PcEYt2L7xug5y99YPbANs_shares = [values.shares];
610
611
  clone.#_trust_3kAfck9PcEYt2L7xug5y99YPbANs_shares = new Set([0]);
611
612
  } else throw new TypeError("The shares must be of type Collection | URL.");
612
- clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes;
613
+ clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = this.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes.slice();
613
614
  clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set(this.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes);
614
615
  if ("likes" in values && values.likes != null) if (values.likes instanceof Collection || values.likes instanceof URL) {
615
616
  clone.#_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = [values.likes];
616
617
  clone.#_trust_S3ceDnpMdzoTRCccB9FkJWrEzYW_likes = new Set([0]);
617
618
  } else throw new TypeError("The likes must be of type Collection | URL.");
618
- clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions;
619
+ clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = this.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions.slice();
619
620
  clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set(this.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions);
620
621
  if ("emojiReactions" in values && values.emojiReactions != null) if (values.emojiReactions instanceof Collection || values.emojiReactions instanceof URL) {
621
622
  clone.#_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = [values.emojiReactions];
622
623
  clone.#_trust_kMatyyNAuxoTD8GQMBfA5ogThMR_emojiReactions = new Set([0]);
623
624
  } else throw new TypeError("The emojiReactions must be of type Collection | URL.");
624
- clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime;
625
+ clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = this.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime.slice();
625
626
  if ("startTime" in values && values.startTime != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.startTime)) clone.#_2w3Jmue4up8iVDUA51WZqomEF438_startTime = [values.startTime];
626
627
  else throw new TypeError("The startTime must be of type Temporal.Instant.");
627
- clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary;
628
+ clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = this.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary.slice();
628
629
  if ("summary" in values && values.summary != null) if (typeof values.summary === "string" || values.summary instanceof _fedify_vocab_runtime.LanguageString) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = [values.summary];
629
630
  else throw new TypeError("The summary must be of type string | LanguageString.");
630
631
  if ("summaries" in values && values.summaries != null) {
631
632
  if ("summary" in values && values.summary != null) throw new TypeError("Cannot update both summary and summaries at the same time.");
632
- if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries;
633
+ if (Array.isArray(values.summaries) && values.summaries.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4LqirZspQbFWWQEbFcXAxm7tTDN1_summary = values.summaries.slice();
633
634
  else throw new TypeError("The summaries must be an array of type string | LanguageString.");
634
635
  }
635
- clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag;
636
+ clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = this.#_5chuqj6s95p5gg2sk1HntGfarRf_tag.slice();
636
637
  clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = new Set(this.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag);
637
638
  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)) {
638
- clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags;
639
+ clone.#_5chuqj6s95p5gg2sk1HntGfarRf_tag = values.tags.slice();
639
640
  clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag = /* @__PURE__ */ new Set();
640
641
  for (let i = 0; i < values.tags.length; i++) clone.#_trust_5chuqj6s95p5gg2sk1HntGfarRf_tag.add(i);
641
642
  } else throw new TypeError("The tags must be an array of type Object | Link | URL.");
642
- clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated;
643
+ clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = this.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated.slice();
643
644
  if ("updated" in values && values.updated != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.updated)) clone.#_385aB7ySixcf5Un6z3VsWmThgCzQ_updated = [values.updated];
644
645
  else throw new TypeError("The updated must be of type Temporal.Instant.");
645
- clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url;
646
+ clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = this.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url.slice();
646
647
  if ("url" in values && values.url != null) if (values.url instanceof URL || values.url instanceof Link) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = [values.url];
647
648
  else throw new TypeError("The url must be of type URL | Link.");
648
649
  if ("urls" in values && values.urls != null) {
649
650
  if ("url" in values && values.url != null) throw new TypeError("Cannot update both url and urls at the same time.");
650
- if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls;
651
+ if (Array.isArray(values.urls) && values.urls.every((v) => v instanceof URL || v instanceof Link)) clone.#_2oPEH9MQ3aj8JVwyYuWkqoVwV865_url = values.urls.slice();
651
652
  else throw new TypeError("The urls must be an array of type URL | Link.");
652
653
  }
653
- clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to;
654
+ clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = this.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.slice();
654
655
  clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = new Set(this.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to);
655
656
  if ("to" in values && values.to != null) if (values.to instanceof Object$1 || values.to instanceof URL) {
656
657
  clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = [values.to];
@@ -659,12 +660,12 @@ var Object$1 = class Object$1 {
659
660
  if ("tos" in values && values.tos != null) {
660
661
  if ("to" in values && values.to != null) throw new TypeError("Cannot update both to and tos at the same time.");
661
662
  if (Array.isArray(values.tos) && values.tos.every((v) => v instanceof Object$1 || v instanceof URL)) {
662
- clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos;
663
+ clone.#_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = values.tos.slice();
663
664
  clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to = /* @__PURE__ */ new Set();
664
665
  for (let i = 0; i < values.tos.length; i++) clone.#_trust_3hFbw7DTpHhq3cvVhkY8njhcsXbd_to.add(i);
665
666
  } else throw new TypeError("The tos must be an array of type Object | URL.");
666
667
  }
667
- clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto;
668
+ clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = this.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.slice();
668
669
  clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = new Set(this.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto);
669
670
  if ("bto" in values && values.bto != null) if (values.bto instanceof Object$1 || values.bto instanceof URL) {
670
671
  clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = [values.bto];
@@ -673,12 +674,12 @@ var Object$1 = class Object$1 {
673
674
  if ("btos" in values && values.btos != null) {
674
675
  if ("bto" in values && values.bto != null) throw new TypeError("Cannot update both bto and btos at the same time.");
675
676
  if (Array.isArray(values.btos) && values.btos.every((v) => v instanceof Object$1 || v instanceof URL)) {
676
- clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos;
677
+ clone.#_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = values.btos.slice();
677
678
  clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto = /* @__PURE__ */ new Set();
678
679
  for (let i = 0; i < values.btos.length; i++) clone.#_trust_aLZupjwL8XB7tzdLgCMXdjZ6qej_bto.add(i);
679
680
  } else throw new TypeError("The btos must be an array of type Object | URL.");
680
681
  }
681
- clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc;
682
+ clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = this.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.slice();
682
683
  clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = new Set(this.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc);
683
684
  if ("cc" in values && values.cc != null) if (values.cc instanceof Object$1 || values.cc instanceof URL) {
684
685
  clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = [values.cc];
@@ -687,12 +688,12 @@ var Object$1 = class Object$1 {
687
688
  if ("ccs" in values && values.ccs != null) {
688
689
  if ("cc" in values && values.cc != null) throw new TypeError("Cannot update both cc and ccs at the same time.");
689
690
  if (Array.isArray(values.ccs) && values.ccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
690
- clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs;
691
+ clone.#_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = values.ccs.slice();
691
692
  clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc = /* @__PURE__ */ new Set();
692
693
  for (let i = 0; i < values.ccs.length; i++) clone.#_trust_42a1SvBs24QSLzKcfjCyNTjW5a1g_cc.add(i);
693
694
  } else throw new TypeError("The ccs must be an array of type Object | URL.");
694
695
  }
695
- clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc;
696
+ clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = this.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.slice();
696
697
  clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = new Set(this.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc);
697
698
  if ("bcc" in values && values.bcc != null) if (values.bcc instanceof Object$1 || values.bcc instanceof URL) {
698
699
  clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = [values.bcc];
@@ -701,24 +702,24 @@ var Object$1 = class Object$1 {
701
702
  if ("bccs" in values && values.bccs != null) {
702
703
  if ("bcc" in values && values.bcc != null) throw new TypeError("Cannot update both bcc and bccs at the same time.");
703
704
  if (Array.isArray(values.bccs) && values.bccs.every((v) => v instanceof Object$1 || v instanceof URL)) {
704
- clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs;
705
+ clone.#_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = values.bccs.slice();
705
706
  clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc = /* @__PURE__ */ new Set();
706
707
  for (let i = 0; i < values.bccs.length; i++) clone.#_trust_3qvegKUB8YLgTXRpEf8E6JZSkz2H_bcc.add(i);
707
708
  } else throw new TypeError("The bccs must be an array of type Object | URL.");
708
709
  }
709
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
710
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
710
711
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
711
712
  else throw new TypeError("The mediaType must be of type string.");
712
- clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration;
713
+ clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = this.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration.slice();
713
714
  if ("duration" in values && values.duration != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalDuration)(values.duration)) clone.#_3bNvLMBN1bCJETiTihM3wvi1B2JX_duration = [values.duration];
714
715
  else throw new TypeError("The duration must be of type Temporal.Duration.");
715
- clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive;
716
+ clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = this.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive.slice();
716
717
  if ("sensitive" in values && values.sensitive != null) if (typeof values.sensitive === "boolean") clone.#_u8gdcDTtChQ4tbSQMXc4cYWyum7_sensitive = [values.sensitive];
717
718
  else throw new TypeError("The sensitive must be of type boolean.");
718
- clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source;
719
+ clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = this.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source.slice();
719
720
  if ("source" in values && values.source != null) if (values.source instanceof Source) clone.#_2ZwCFoS787v8y8bXKjMoE6MAbrEB_source = [values.source];
720
721
  else throw new TypeError("The source must be of type Source.");
721
- clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof;
722
+ clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = this.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.slice();
722
723
  clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = new Set(this.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof);
723
724
  if ("proof" in values && values.proof != null) if (values.proof instanceof DataIntegrityProof || values.proof instanceof URL) {
724
725
  clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = [values.proof];
@@ -727,30 +728,30 @@ var Object$1 = class Object$1 {
727
728
  if ("proofs" in values && values.proofs != null) {
728
729
  if ("proof" in values && values.proof != null) throw new TypeError("Cannot update both proof and proofs at the same time.");
729
730
  if (Array.isArray(values.proofs) && values.proofs.every((v) => v instanceof DataIntegrityProof || v instanceof URL)) {
730
- clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs;
731
+ clone.#_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = values.proofs.slice();
731
732
  clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof = /* @__PURE__ */ new Set();
732
733
  for (let i = 0; i < values.proofs.length; i++) clone.#_trust_42rPnotok1ivQ2RNCKNbeFJgx8b8_proof.add(i);
733
734
  } else throw new TypeError("The proofs must be an array of type DataIntegrityProof | URL.");
734
735
  }
735
- clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy;
736
+ clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = this.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy.slice();
736
737
  if ("interactionPolicy" in values && values.interactionPolicy != null) if (values.interactionPolicy instanceof InteractionPolicy) clone.#_2MHQfh2N74MMmDLDqYWFo7TxYQK2_interactionPolicy = [values.interactionPolicy];
737
738
  else throw new TypeError("The interactionPolicy must be of type InteractionPolicy.");
738
- clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy;
739
+ clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = this.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy.slice();
739
740
  if ("approvedBy" in values && values.approvedBy != null) if (values.approvedBy instanceof URL) clone.#_23YiVs2miQcEiUdn4u8SvjQKWYim_approvedBy = [values.approvedBy];
740
741
  else throw new TypeError("The approvedBy must be of type URL.");
741
- clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization;
742
+ clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = this.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization.slice();
742
743
  clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set(this.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization);
743
744
  if ("likeAuthorization" in values && values.likeAuthorization != null) if (values.likeAuthorization instanceof LikeAuthorization || values.likeAuthorization instanceof URL) {
744
745
  clone.#_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = [values.likeAuthorization];
745
746
  clone.#_trust_3fCeb5aXaDDd4fvkQ96BLWifBUBa_likeAuthorization = new Set([0]);
746
747
  } else throw new TypeError("The likeAuthorization must be of type LikeAuthorization | URL.");
747
- clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization;
748
+ clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = this.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization.slice();
748
749
  clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set(this.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization);
749
750
  if ("replyAuthorization" in values && values.replyAuthorization != null) if (values.replyAuthorization instanceof ReplyAuthorization || values.replyAuthorization instanceof URL) {
750
751
  clone.#_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = [values.replyAuthorization];
751
752
  clone.#_trust_YA4wdUW7rYztAQ6SjhMnJCmcmtP_replyAuthorization = new Set([0]);
752
753
  } else throw new TypeError("The replyAuthorization must be of type ReplyAuthorization | URL.");
753
- clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization;
754
+ clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = this.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization.slice();
754
755
  clone.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = new Set(this.#_trust_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization);
755
756
  if ("announceAuthorization" in values && values.announceAuthorization != null) if (values.announceAuthorization instanceof AnnounceAuthorization || values.announceAuthorization instanceof URL) {
756
757
  clone.#_446xEaDBs3Fz6MyzP3PSBaLupkbJ_announceAuthorization = [values.announceAuthorization];
@@ -7133,7 +7134,8 @@ var Emoji = class Emoji extends Object$1 {
7133
7134
  * Clones this instance, optionally updating it with the given values.
7134
7135
  * @param values The values to update the clone with.
7135
7136
  * @param options The options to use for cloning.
7136
- * @returns The cloned instance.
7137
+ * @returns The cloned instance with its own property arrays. Nested objects
7138
+ * and URLs are shared with this instance.
7137
7139
  */
7138
7140
  clone(values = {}, options = {}) {
7139
7141
  if (this._warning != null) {
@@ -7315,7 +7317,8 @@ var ChatMessage = class ChatMessage extends Object$1 {
7315
7317
  * Clones this instance, optionally updating it with the given values.
7316
7318
  * @param values The values to update the clone with.
7317
7319
  * @param options The options to use for cloning.
7318
- * @returns The cloned instance.
7320
+ * @returns The cloned instance with its own property arrays. Nested objects
7321
+ * and URLs are shared with this instance.
7319
7322
  */
7320
7323
  clone(values = {}, options = {}) {
7321
7324
  if (this._warning != null) {
@@ -7326,16 +7329,16 @@ var ChatMessage = class ChatMessage extends Object$1 {
7326
7329
  };
7327
7330
  }
7328
7331
  const clone = super.clone(values, options);
7329
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
7332
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
7330
7333
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
7331
7334
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
7332
7335
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
7333
7336
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
7334
7337
  } else throw new TypeError("The quote must be of type Object | URL.");
7335
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
7338
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
7336
7339
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
7337
7340
  else throw new TypeError("The quoteUrl must be of type URL.");
7338
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
7341
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
7339
7342
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
7340
7343
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
7341
7344
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -7970,7 +7973,7 @@ var Activity = class Activity extends Object$1 {
7970
7973
  if ("actors" in values && values.actors != null) {
7971
7974
  if ("actor" in values && values.actor != null) throw new TypeError("Cannot initialize both actor and actors at the same time.");
7972
7975
  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)) {
7973
- this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
7976
+ this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
7974
7977
  for (let i = 0; i < values.actors.length; i++) this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
7975
7978
  } else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
7976
7979
  }
@@ -7981,7 +7984,7 @@ var Activity = class Activity extends Object$1 {
7981
7984
  if ("objects" in values && values.objects != null) {
7982
7985
  if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
7983
7986
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
7984
- this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
7987
+ this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
7985
7988
  for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
7986
7989
  } else throw new TypeError("The objects must be an array of type Object | URL.");
7987
7990
  }
@@ -7992,7 +7995,7 @@ var Activity = class Activity extends Object$1 {
7992
7995
  if ("targets" in values && values.targets != null) {
7993
7996
  if ("target" in values && values.target != null) throw new TypeError("Cannot initialize both target and targets at the same time.");
7994
7997
  if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
7995
- this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
7998
+ this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
7996
7999
  for (let i = 0; i < values.targets.length; i++) this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
7997
8000
  } else throw new TypeError("The targets must be an array of type Object | URL.");
7998
8001
  }
@@ -8003,7 +8006,7 @@ var Activity = class Activity extends Object$1 {
8003
8006
  if ("results" in values && values.results != null) {
8004
8007
  if ("result" in values && values.result != null) throw new TypeError("Cannot initialize both result and results at the same time.");
8005
8008
  if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
8006
- this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
8009
+ this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
8007
8010
  for (let i = 0; i < values.results.length; i++) this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
8008
8011
  } else throw new TypeError("The results must be an array of type Object | URL.");
8009
8012
  }
@@ -8014,7 +8017,7 @@ var Activity = class Activity extends Object$1 {
8014
8017
  if ("origins" in values && values.origins != null) {
8015
8018
  if ("origin" in values && values.origin != null) throw new TypeError("Cannot initialize both origin and origins at the same time.");
8016
8019
  if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
8017
- this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
8020
+ this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
8018
8021
  for (let i = 0; i < values.origins.length; i++) this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
8019
8022
  } else throw new TypeError("The origins must be an array of type Object | URL.");
8020
8023
  }
@@ -8025,7 +8028,7 @@ var Activity = class Activity extends Object$1 {
8025
8028
  if ("instruments" in values && values.instruments != null) {
8026
8029
  if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot initialize both instrument and instruments at the same time.");
8027
8030
  if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
8028
- this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
8031
+ this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
8029
8032
  for (let i = 0; i < values.instruments.length; i++) this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
8030
8033
  } else throw new TypeError("The instruments must be an array of type Object | URL.");
8031
8034
  }
@@ -8034,7 +8037,8 @@ var Activity = class Activity extends Object$1 {
8034
8037
  * Clones this instance, optionally updating it with the given values.
8035
8038
  * @param values The values to update the clone with.
8036
8039
  * @param options The options to use for cloning.
8037
- * @returns The cloned instance.
8040
+ * @returns The cloned instance with its own property arrays. Nested objects
8041
+ * and URLs are shared with this instance.
8038
8042
  */
8039
8043
  clone(values = {}, options = {}) {
8040
8044
  if (this._warning != null) {
@@ -8045,7 +8049,7 @@ var Activity = class Activity extends Object$1 {
8045
8049
  };
8046
8050
  }
8047
8051
  const clone = super.clone(values, options);
8048
- clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor;
8052
+ clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = this.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.slice();
8049
8053
  clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = new Set(this.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor);
8050
8054
  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) {
8051
8055
  clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = [values.actor];
@@ -8054,12 +8058,12 @@ var Activity = class Activity extends Object$1 {
8054
8058
  if ("actors" in values && values.actors != null) {
8055
8059
  if ("actor" in values && values.actor != null) throw new TypeError("Cannot update both actor and actors at the same time.");
8056
8060
  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)) {
8057
- clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors;
8061
+ clone.#_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = values.actors.slice();
8058
8062
  clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor = /* @__PURE__ */ new Set();
8059
8063
  for (let i = 0; i < values.actors.length; i++) clone.#_trust_2DjTTboo3CNHU2a2JQqUSE2dbv9D_actor.add(i);
8060
8064
  } else throw new TypeError("The actors must be an array of type Application | Group | Organization | Person | Service | URL.");
8061
8065
  }
8062
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
8066
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
8063
8067
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
8064
8068
  if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
8065
8069
  clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
@@ -8068,12 +8072,12 @@ var Activity = class Activity extends Object$1 {
8068
8072
  if ("objects" in values && values.objects != null) {
8069
8073
  if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
8070
8074
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
8071
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
8075
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
8072
8076
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
8073
8077
  for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
8074
8078
  } else throw new TypeError("The objects must be an array of type Object | URL.");
8075
8079
  }
8076
- clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target;
8080
+ clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = this.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.slice();
8077
8081
  clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = new Set(this.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target);
8078
8082
  if ("target" in values && values.target != null) if (values.target instanceof Object$1 || values.target instanceof URL) {
8079
8083
  clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = [values.target];
@@ -8082,12 +8086,12 @@ var Activity = class Activity extends Object$1 {
8082
8086
  if ("targets" in values && values.targets != null) {
8083
8087
  if ("target" in values && values.target != null) throw new TypeError("Cannot update both target and targets at the same time.");
8084
8088
  if (Array.isArray(values.targets) && values.targets.every((v) => v instanceof Object$1 || v instanceof URL)) {
8085
- clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets;
8089
+ clone.#_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = values.targets.slice();
8086
8090
  clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target = /* @__PURE__ */ new Set();
8087
8091
  for (let i = 0; i < values.targets.length; i++) clone.#_trust_3JQCmF2Ww56Ag9EWRYoSZRDNCYtF_target.add(i);
8088
8092
  } else throw new TypeError("The targets must be an array of type Object | URL.");
8089
8093
  }
8090
- clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result;
8094
+ clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = this.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.slice();
8091
8095
  clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = new Set(this.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result);
8092
8096
  if ("result" in values && values.result != null) if (values.result instanceof Object$1 || values.result instanceof URL) {
8093
8097
  clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = [values.result];
@@ -8096,12 +8100,12 @@ var Activity = class Activity extends Object$1 {
8096
8100
  if ("results" in values && values.results != null) {
8097
8101
  if ("result" in values && values.result != null) throw new TypeError("Cannot update both result and results at the same time.");
8098
8102
  if (Array.isArray(values.results) && values.results.every((v) => v instanceof Object$1 || v instanceof URL)) {
8099
- clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results;
8103
+ clone.#_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = values.results.slice();
8100
8104
  clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result = /* @__PURE__ */ new Set();
8101
8105
  for (let i = 0; i < values.results.length; i++) clone.#_trust_u4QGFbRFcYmPEKGbPv1hpBR9r5G_result.add(i);
8102
8106
  } else throw new TypeError("The results must be an array of type Object | URL.");
8103
8107
  }
8104
- clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin;
8108
+ clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = this.#_25zu2s3VxVujgEKqrDycjE284XQR_origin.slice();
8105
8109
  clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = new Set(this.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin);
8106
8110
  if ("origin" in values && values.origin != null) if (values.origin instanceof Object$1 || values.origin instanceof URL) {
8107
8111
  clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = [values.origin];
@@ -8110,12 +8114,12 @@ var Activity = class Activity extends Object$1 {
8110
8114
  if ("origins" in values && values.origins != null) {
8111
8115
  if ("origin" in values && values.origin != null) throw new TypeError("Cannot update both origin and origins at the same time.");
8112
8116
  if (Array.isArray(values.origins) && values.origins.every((v) => v instanceof Object$1 || v instanceof URL)) {
8113
- clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins;
8117
+ clone.#_25zu2s3VxVujgEKqrDycjE284XQR_origin = values.origins.slice();
8114
8118
  clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin = /* @__PURE__ */ new Set();
8115
8119
  for (let i = 0; i < values.origins.length; i++) clone.#_trust_25zu2s3VxVujgEKqrDycjE284XQR_origin.add(i);
8116
8120
  } else throw new TypeError("The origins must be an array of type Object | URL.");
8117
8121
  }
8118
- clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument;
8122
+ clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = this.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.slice();
8119
8123
  clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = new Set(this.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument);
8120
8124
  if ("instrument" in values && values.instrument != null) if (values.instrument instanceof Object$1 || values.instrument instanceof URL) {
8121
8125
  clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = [values.instrument];
@@ -8124,7 +8128,7 @@ var Activity = class Activity extends Object$1 {
8124
8128
  if ("instruments" in values && values.instruments != null) {
8125
8129
  if ("instrument" in values && values.instrument != null) throw new TypeError("Cannot update both instrument and instruments at the same time.");
8126
8130
  if (Array.isArray(values.instruments) && values.instruments.every((v) => v instanceof Object$1 || v instanceof URL)) {
8127
- clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments;
8131
+ clone.#_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = values.instruments.slice();
8128
8132
  clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument = /* @__PURE__ */ new Set();
8129
8133
  for (let i = 0; i < values.instruments.length; i++) clone.#_trust_3c5t2x7DYRo2shwTxpkd4kYSS5WQ_instrument.add(i);
8130
8134
  } else throw new TypeError("The instruments must be an array of type Object | URL.");
@@ -9715,7 +9719,8 @@ var EmojiReact = class EmojiReact extends Activity {
9715
9719
  * Clones this instance, optionally updating it with the given values.
9716
9720
  * @param values The values to update the clone with.
9717
9721
  * @param options The options to use for cloning.
9718
- * @returns The cloned instance.
9722
+ * @returns The cloned instance with its own property arrays. Nested objects
9723
+ * and URLs are shared with this instance.
9719
9724
  */
9720
9725
  clone(values = {}, options = {}) {
9721
9726
  if (this._warning != null) {
@@ -9925,7 +9930,8 @@ var PropertyValue = class {
9925
9930
  * Clones this instance, optionally updating it with the given values.
9926
9931
  * @param values The values to update the clone with.
9927
9932
  * @param options The options to use for cloning.
9928
- * @returns The cloned instance.
9933
+ * @returns The cloned instance with its own property arrays. Nested objects
9934
+ * and URLs are shared with this instance.
9929
9935
  */
9930
9936
  clone(values = {}, options = {}) {
9931
9937
  if (this._warning != null) {
@@ -9936,10 +9942,10 @@ var PropertyValue = class {
9936
9942
  };
9937
9943
  }
9938
9944
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
9939
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
9945
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
9940
9946
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
9941
9947
  else throw new TypeError("The name must be of type string | LanguageString.");
9942
- clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value;
9948
+ clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = this.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value.slice();
9943
9949
  if ("value" in values && values.value != null) if (typeof values.value === "string" || values.value instanceof _fedify_vocab_runtime.LanguageString) clone.#_2cSy2magg4iZ7zLaG8U7DiJMoCkx_value = [values.value];
9944
9950
  else throw new TypeError("The value must be of type string | LanguageString.");
9945
9951
  return clone;
@@ -10228,7 +10234,8 @@ var Measure = class {
10228
10234
  * Clones this instance, optionally updating it with the given values.
10229
10235
  * @param values The values to update the clone with.
10230
10236
  * @param options The options to use for cloning.
10231
- * @returns The cloned instance.
10237
+ * @returns The cloned instance with its own property arrays. Nested objects
10238
+ * and URLs are shared with this instance.
10232
10239
  */
10233
10240
  clone(values = {}, options = {}) {
10234
10241
  if (this._warning != null) {
@@ -10239,10 +10246,10 @@ var Measure = class {
10239
10246
  };
10240
10247
  }
10241
10248
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
10242
- clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6;
10249
+ clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = this.#_27fgyFbosTtMAhuepJH8K3ZGURT6.slice();
10243
10250
  if ("unit" in values && values.unit != null) if (typeof values.unit === "string") clone.#_27fgyFbosTtMAhuepJH8K3ZGURT6 = [values.unit];
10244
10251
  else throw new TypeError("The unit must be of type string.");
10245
- clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D;
10252
+ clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = this.#_1GQx8o2RgxRs4x9G5uT39XYBv7D.slice();
10246
10253
  if ("numericalValue" in values && values.numericalValue != null) if (typeof values.numericalValue === "string" && (0, _fedify_vocab_runtime.isDecimal)(values.numericalValue)) clone.#_1GQx8o2RgxRs4x9G5uT39XYBv7D = [values.numericalValue];
10247
10254
  else throw new TypeError("The numericalValue must be of type Decimal.");
10248
10255
  return clone;
@@ -10489,7 +10496,8 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10489
10496
  * Clones this instance, optionally updating it with the given values.
10490
10497
  * @param values The values to update the clone with.
10491
10498
  * @param options The options to use for cloning.
10492
- * @returns The cloned instance.
10499
+ * @returns The cloned instance with its own property arrays. Nested objects
10500
+ * and URLs are shared with this instance.
10493
10501
  */
10494
10502
  clone(values = {}, options = {}) {
10495
10503
  if (this._warning != null) {
@@ -10500,13 +10508,13 @@ var AnnounceAuthorization = class AnnounceAuthorization extends Object$1 {
10500
10508
  };
10501
10509
  }
10502
10510
  const clone = super.clone(values, options);
10503
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
10511
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
10504
10512
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
10505
10513
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
10506
10514
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
10507
10515
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
10508
10516
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
10509
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
10517
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
10510
10518
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
10511
10519
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
10512
10520
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -11028,7 +11036,8 @@ var AnnounceRequest = class AnnounceRequest extends Activity {
11028
11036
  * Clones this instance, optionally updating it with the given values.
11029
11037
  * @param values The values to update the clone with.
11030
11038
  * @param options The options to use for cloning.
11031
- * @returns The cloned instance.
11039
+ * @returns The cloned instance with its own property arrays. Nested objects
11040
+ * and URLs are shared with this instance.
11032
11041
  */
11033
11042
  clone(values = {}, options = {}) {
11034
11043
  if (this._warning != null) {
@@ -11244,7 +11253,8 @@ var InteractionPolicy = class {
11244
11253
  * Clones this instance, optionally updating it with the given values.
11245
11254
  * @param values The values to update the clone with.
11246
11255
  * @param options The options to use for cloning.
11247
- * @returns The cloned instance.
11256
+ * @returns The cloned instance with its own property arrays. Nested objects
11257
+ * and URLs are shared with this instance.
11248
11258
  */
11249
11259
  clone(values = {}, options = {}) {
11250
11260
  if (this._warning != null) {
@@ -11255,16 +11265,16 @@ var InteractionPolicy = class {
11255
11265
  };
11256
11266
  }
11257
11267
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
11258
- clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike;
11268
+ clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = this.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike.slice();
11259
11269
  if ("canLike" in values && values.canLike != null) if (values.canLike instanceof InteractionRule) clone.#_3JkwVLb3BNCwCWdsb5RftGAg8vyT_canLike = [values.canLike];
11260
11270
  else throw new TypeError("The canLike must be of type InteractionRule.");
11261
- clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply;
11271
+ clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = this.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply.slice();
11262
11272
  if ("canReply" in values && values.canReply != null) if (values.canReply instanceof InteractionRule) clone.#_2UBgLRi5p3DRGGvWyB227i4Qjhzd_canReply = [values.canReply];
11263
11273
  else throw new TypeError("The canReply must be of type InteractionRule.");
11264
- clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce;
11274
+ clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = this.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce.slice();
11265
11275
  if ("canAnnounce" in values && values.canAnnounce != null) if (values.canAnnounce instanceof InteractionRule) clone.#_fu5nmoAj528fBQfnxhY9Daok3Vi_canAnnounce = [values.canAnnounce];
11266
11276
  else throw new TypeError("The canAnnounce must be of type InteractionRule.");
11267
- clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote;
11277
+ clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = this.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote.slice();
11268
11278
  if ("canQuote" in values && values.canQuote != null) if (values.canQuote instanceof InteractionRule) clone.#_LE3zBTVacTZw2LSyLt4wVUkXeUy_canQuote = [values.canQuote];
11269
11279
  else throw new TypeError("The canQuote must be of type InteractionRule.");
11270
11280
  return clone;
@@ -11613,14 +11623,14 @@ var InteractionRule = class {
11613
11623
  else throw new TypeError("The automaticApproval must be of type URL.");
11614
11624
  if ("automaticApprovals" in values && values.automaticApprovals != null) {
11615
11625
  if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot initialize both automaticApproval and automaticApprovals at the same time.");
11616
- if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
11626
+ if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
11617
11627
  else throw new TypeError("The automaticApprovals must be an array of type URL.");
11618
11628
  }
11619
11629
  if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
11620
11630
  else throw new TypeError("The manualApproval must be of type URL.");
11621
11631
  if ("manualApprovals" in values && values.manualApprovals != null) {
11622
11632
  if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot initialize both manualApproval and manualApprovals at the same time.");
11623
- if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
11633
+ if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
11624
11634
  else throw new TypeError("The manualApprovals must be an array of type URL.");
11625
11635
  }
11626
11636
  }
@@ -11628,7 +11638,8 @@ var InteractionRule = class {
11628
11638
  * Clones this instance, optionally updating it with the given values.
11629
11639
  * @param values The values to update the clone with.
11630
11640
  * @param options The options to use for cloning.
11631
- * @returns The cloned instance.
11641
+ * @returns The cloned instance with its own property arrays. Nested objects
11642
+ * and URLs are shared with this instance.
11632
11643
  */
11633
11644
  clone(values = {}, options = {}) {
11634
11645
  if (this._warning != null) {
@@ -11639,20 +11650,20 @@ var InteractionRule = class {
11639
11650
  };
11640
11651
  }
11641
11652
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
11642
- clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval;
11653
+ clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = this.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval.slice();
11643
11654
  if ("automaticApproval" in values && values.automaticApproval != null) if (values.automaticApproval instanceof URL) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = [values.automaticApproval];
11644
11655
  else throw new TypeError("The automaticApproval must be of type URL.");
11645
11656
  if ("automaticApprovals" in values && values.automaticApprovals != null) {
11646
11657
  if ("automaticApproval" in values && values.automaticApproval != null) throw new TypeError("Cannot update both automaticApproval and automaticApprovals at the same time.");
11647
- if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals;
11658
+ if (Array.isArray(values.automaticApprovals) && values.automaticApprovals.every((v) => v instanceof URL)) clone.#_2rFyCF14HoyNjitj9PmCzek5iSsg_automaticApproval = values.automaticApprovals.slice();
11648
11659
  else throw new TypeError("The automaticApprovals must be an array of type URL.");
11649
11660
  }
11650
- clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval;
11661
+ clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = this.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval.slice();
11651
11662
  if ("manualApproval" in values && values.manualApproval != null) if (values.manualApproval instanceof URL) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = [values.manualApproval];
11652
11663
  else throw new TypeError("The manualApproval must be of type URL.");
11653
11664
  if ("manualApprovals" in values && values.manualApprovals != null) {
11654
11665
  if ("manualApproval" in values && values.manualApproval != null) throw new TypeError("Cannot update both manualApproval and manualApprovals at the same time.");
11655
- if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals;
11666
+ if (Array.isArray(values.manualApprovals) && values.manualApprovals.every((v) => v instanceof URL)) clone.#_sxj8y5XMMMBWUnRYFw85MKedCMj_manualApproval = values.manualApprovals.slice();
11656
11667
  else throw new TypeError("The manualApprovals must be an array of type URL.");
11657
11668
  }
11658
11669
  return clone;
@@ -11883,7 +11894,8 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11883
11894
  * Clones this instance, optionally updating it with the given values.
11884
11895
  * @param values The values to update the clone with.
11885
11896
  * @param options The options to use for cloning.
11886
- * @returns The cloned instance.
11897
+ * @returns The cloned instance with its own property arrays. Nested objects
11898
+ * and URLs are shared with this instance.
11887
11899
  */
11888
11900
  clone(values = {}, options = {}) {
11889
11901
  if (this._warning != null) {
@@ -11894,13 +11906,13 @@ var LikeAuthorization = class LikeAuthorization extends Object$1 {
11894
11906
  };
11895
11907
  }
11896
11908
  const clone = super.clone(values, options);
11897
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
11909
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
11898
11910
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
11899
11911
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
11900
11912
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
11901
11913
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
11902
11914
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
11903
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
11915
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
11904
11916
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
11905
11917
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
11906
11918
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -12421,7 +12433,8 @@ var LikeRequest = class LikeRequest extends Activity {
12421
12433
  * Clones this instance, optionally updating it with the given values.
12422
12434
  * @param values The values to update the clone with.
12423
12435
  * @param options The options to use for cloning.
12424
- * @returns The cloned instance.
12436
+ * @returns The cloned instance with its own property arrays. Nested objects
12437
+ * and URLs are shared with this instance.
12425
12438
  */
12426
12439
  clone(values = {}, options = {}) {
12427
12440
  if (this._warning != null) {
@@ -12591,7 +12604,8 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12591
12604
  * Clones this instance, optionally updating it with the given values.
12592
12605
  * @param values The values to update the clone with.
12593
12606
  * @param options The options to use for cloning.
12594
- * @returns The cloned instance.
12607
+ * @returns The cloned instance with its own property arrays. Nested objects
12608
+ * and URLs are shared with this instance.
12595
12609
  */
12596
12610
  clone(values = {}, options = {}) {
12597
12611
  if (this._warning != null) {
@@ -12602,13 +12616,13 @@ var ReplyAuthorization = class ReplyAuthorization extends Object$1 {
12602
12616
  };
12603
12617
  }
12604
12618
  const clone = super.clone(values, options);
12605
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
12619
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
12606
12620
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
12607
12621
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
12608
12622
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
12609
12623
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
12610
12624
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
12611
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
12625
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
12612
12626
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
12613
12627
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
12614
12628
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -13129,7 +13143,8 @@ var ReplyRequest = class ReplyRequest extends Activity {
13129
13143
  * Clones this instance, optionally updating it with the given values.
13130
13144
  * @param values The values to update the clone with.
13131
13145
  * @param options The options to use for cloning.
13132
- * @returns The cloned instance.
13146
+ * @returns The cloned instance with its own property arrays. Nested objects
13147
+ * and URLs are shared with this instance.
13133
13148
  */
13134
13149
  clone(values = {}, options = {}) {
13135
13150
  if (this._warning != null) {
@@ -13299,7 +13314,8 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
13299
13314
  * Clones this instance, optionally updating it with the given values.
13300
13315
  * @param values The values to update the clone with.
13301
13316
  * @param options The options to use for cloning.
13302
- * @returns The cloned instance.
13317
+ * @returns The cloned instance with its own property arrays. Nested objects
13318
+ * and URLs are shared with this instance.
13303
13319
  */
13304
13320
  clone(values = {}, options = {}) {
13305
13321
  if (this._warning != null) {
@@ -13310,13 +13326,13 @@ var QuoteAuthorization = class QuoteAuthorization extends Object$1 {
13310
13326
  };
13311
13327
  }
13312
13328
  const clone = super.clone(values, options);
13313
- clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject;
13329
+ clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = this.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject.slice();
13314
13330
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set(this.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject);
13315
13331
  if ("interactingObject" in values && values.interactingObject != null) if (values.interactingObject instanceof Object$1 || values.interactingObject instanceof URL) {
13316
13332
  clone.#_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = [values.interactingObject];
13317
13333
  clone.#_trust_2114kRKbujWhxEUghdkRYYKbXTGi_interactingObject = new Set([0]);
13318
13334
  } else throw new TypeError("The interactingObject must be of type Object | URL.");
13319
- clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget;
13335
+ clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = this.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget.slice();
13320
13336
  clone.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = new Set(this.#_trust_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget);
13321
13337
  if ("interactionTarget" in values && values.interactionTarget != null) if (values.interactionTarget instanceof Object$1 || values.interactionTarget instanceof URL) {
13322
13338
  clone.#_2wHyG75YnN15CDMaFk3VNjByu4aL_interactionTarget = [values.interactionTarget];
@@ -13838,7 +13854,8 @@ var QuoteRequest = class QuoteRequest extends Activity {
13838
13854
  * Clones this instance, optionally updating it with the given values.
13839
13855
  * @param values The values to update the clone with.
13840
13856
  * @param options The options to use for cloning.
13841
- * @returns The cloned instance.
13857
+ * @returns The cloned instance with its own property arrays. Nested objects
13858
+ * and URLs are shared with this instance.
13842
13859
  */
13843
13860
  clone(values = {}, options = {}) {
13844
13861
  if (this._warning != null) {
@@ -14069,7 +14086,7 @@ var DidService = class {
14069
14086
  else throw new TypeError("The endpoint must be of type URL.");
14070
14087
  if ("endpoints" in values && values.endpoints != null) {
14071
14088
  if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot initialize both endpoint and endpoints at the same time.");
14072
- if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
14089
+ if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
14073
14090
  else throw new TypeError("The endpoints must be an array of type URL.");
14074
14091
  }
14075
14092
  }
@@ -14077,7 +14094,8 @@ var DidService = class {
14077
14094
  * Clones this instance, optionally updating it with the given values.
14078
14095
  * @param values The values to update the clone with.
14079
14096
  * @param options The options to use for cloning.
14080
- * @returns The cloned instance.
14097
+ * @returns The cloned instance with its own property arrays. Nested objects
14098
+ * and URLs are shared with this instance.
14081
14099
  */
14082
14100
  clone(values = {}, options = {}) {
14083
14101
  if (this._warning != null) {
@@ -14088,12 +14106,12 @@ var DidService = class {
14088
14106
  };
14089
14107
  }
14090
14108
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
14091
- clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint;
14109
+ clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = this.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint.slice();
14092
14110
  if ("endpoint" in values && values.endpoint != null) if (values.endpoint instanceof URL) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = [values.endpoint];
14093
14111
  else throw new TypeError("The endpoint must be of type URL.");
14094
14112
  if ("endpoints" in values && values.endpoints != null) {
14095
14113
  if ("endpoint" in values && values.endpoint != null) throw new TypeError("Cannot update both endpoint and endpoints at the same time.");
14096
- if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints;
14114
+ if (Array.isArray(values.endpoints) && values.endpoints.every((v) => v instanceof URL)) clone.#_2KM4fetG6FTJ1cphj76rzJ8Dyv7p_serviceEndpoint = values.endpoints.slice();
14097
14115
  else throw new TypeError("The endpoints must be an array of type URL.");
14098
14116
  }
14099
14117
  return clone;
@@ -14266,7 +14284,8 @@ var Export = class Export extends DidService {
14266
14284
  * Clones this instance, optionally updating it with the given values.
14267
14285
  * @param values The values to update the clone with.
14268
14286
  * @param options The options to use for cloning.
14269
- * @returns The cloned instance.
14287
+ * @returns The cloned instance with its own property arrays. Nested objects
14288
+ * and URLs are shared with this instance.
14270
14289
  */
14271
14290
  clone(values = {}, options = {}) {
14272
14291
  if (this._warning != null) {
@@ -14475,7 +14494,8 @@ var DataIntegrityProof = class {
14475
14494
  * Clones this instance, optionally updating it with the given values.
14476
14495
  * @param values The values to update the clone with.
14477
14496
  * @param options The options to use for cloning.
14478
- * @returns The cloned instance.
14497
+ * @returns The cloned instance with its own property arrays. Nested objects
14498
+ * and URLs are shared with this instance.
14479
14499
  */
14480
14500
  clone(values = {}, options = {}) {
14481
14501
  if (this._warning != null) {
@@ -14486,22 +14506,22 @@ var DataIntegrityProof = class {
14486
14506
  };
14487
14507
  }
14488
14508
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
14489
- clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite;
14509
+ clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = this.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite.slice();
14490
14510
  if ("cryptosuite" in values && values.cryptosuite != null) if (values.cryptosuite == "eddsa-jcs-2022") clone.#_3RurJsa7tnptyqMFR5hDGcP9pMs5_cryptosuite = [values.cryptosuite];
14491
14511
  else throw new TypeError("The cryptosuite must be of type \"eddsa-jcs-2022\".");
14492
- clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod;
14512
+ clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = this.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod.slice();
14493
14513
  clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set(this.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod);
14494
14514
  if ("verificationMethod" in values && values.verificationMethod != null) if (values.verificationMethod instanceof Multikey || values.verificationMethod instanceof URL) {
14495
14515
  clone.#_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = [values.verificationMethod];
14496
14516
  clone.#_trust_2mHVKxqA7zncjveJrDEo3pWpMZqg_verificationMethod = new Set([0]);
14497
14517
  } else throw new TypeError("The verificationMethod must be of type Multikey | URL.");
14498
- clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose;
14518
+ clone.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose = this.#_2AeEnPcAvVrPEuKbpmn9ZKNmWHKb_proofPurpose.slice();
14499
14519
  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];
14500
14520
  else throw new TypeError("The proofPurpose must be of type \"assertionMethod\" | \"authentication\" | \"capabilityInvocation\" | \"capabilityDelegation\" | \"keyAgreement\".");
14501
- clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue;
14521
+ clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = this.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue.slice();
14502
14522
  if ("proofValue" in values && values.proofValue != null) if (values.proofValue instanceof Uint8Array) clone.#_3CjFK5vfKpX4HQuNh2b18TykoVLq_proofValue = [values.proofValue];
14503
14523
  else throw new TypeError("The proofValue must be of type Uint8Array.");
14504
- clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac;
14524
+ clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = this.#_3qzP3ukEZoUziK5FEiA1RhU4aqac.slice();
14505
14525
  if ("created" in values && values.created != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.created)) clone.#_3qzP3ukEZoUziK5FEiA1RhU4aqac = [values.created];
14506
14526
  else throw new TypeError("The created must be of type Temporal.Instant.");
14507
14527
  return clone;
@@ -14976,7 +14996,8 @@ var CryptographicKey = class {
14976
14996
  * Clones this instance, optionally updating it with the given values.
14977
14997
  * @param values The values to update the clone with.
14978
14998
  * @param options The options to use for cloning.
14979
- * @returns The cloned instance.
14999
+ * @returns The cloned instance with its own property arrays. Nested objects
15000
+ * and URLs are shared with this instance.
14980
15001
  */
14981
15002
  clone(values = {}, options = {}) {
14982
15003
  if (this._warning != null) {
@@ -14987,13 +15008,13 @@ var CryptographicKey = class {
14987
15008
  };
14988
15009
  }
14989
15010
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
14990
- clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner;
15011
+ clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = this.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner.slice();
14991
15012
  clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set(this.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner);
14992
15013
  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) {
14993
15014
  clone.#_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = [values.owner];
14994
15015
  clone.#_trust_5UJq9NDh3ZHgswFwwdVxQvJxdx2_owner = new Set([0]);
14995
15016
  } else throw new TypeError("The owner must be of type Application | Group | Organization | Person | Service | URL.");
14996
- clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem;
15017
+ clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = this.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem.slice();
14997
15018
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_2fE2QMDdg6KFGqa4NEC3TmjApSAD_publicKeyPem = [values.publicKey];
14998
15019
  else throw new TypeError("The publicKey must be of type CryptoKey.");
14999
15020
  return clone;
@@ -15477,7 +15498,8 @@ var Multikey = class {
15477
15498
  * Clones this instance, optionally updating it with the given values.
15478
15499
  * @param values The values to update the clone with.
15479
15500
  * @param options The options to use for cloning.
15480
- * @returns The cloned instance.
15501
+ * @returns The cloned instance with its own property arrays. Nested objects
15502
+ * and URLs are shared with this instance.
15481
15503
  */
15482
15504
  clone(values = {}, options = {}) {
15483
15505
  if (this._warning != null) {
@@ -15488,13 +15510,13 @@ var Multikey = class {
15488
15510
  };
15489
15511
  }
15490
15512
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
15491
- clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller;
15513
+ clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = this.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller.slice();
15492
15514
  clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set(this.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller);
15493
15515
  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) {
15494
15516
  clone.#_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = [values.controller];
15495
15517
  clone.#_trust_2yr3eUBTP6cNcyaxKzAXWjFsnGzN_controller = new Set([0]);
15496
15518
  } else throw new TypeError("The controller must be of type Application | Group | Organization | Person | Service | URL.");
15497
- clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase;
15519
+ clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = this.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase.slice();
15498
15520
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptoKey) clone.#_4XLHbsR2gLVWU3NpEqKt9wANzn4F_publicKeyMultibase = [values.publicKey];
15499
15521
  else throw new TypeError("The publicKey must be of type CryptoKey.");
15500
15522
  return clone;
@@ -15942,7 +15964,8 @@ var Agreement = class Agreement extends Object$1 {
15942
15964
  * Clones this instance, optionally updating it with the given values.
15943
15965
  * @param values The values to update the clone with.
15944
15966
  * @param options The options to use for cloning.
15945
- * @returns The cloned instance.
15967
+ * @returns The cloned instance with its own property arrays. Nested objects
15968
+ * and URLs are shared with this instance.
15946
15969
  */
15947
15970
  clone(values = {}, options = {}) {
15948
15971
  if (this._warning != null) {
@@ -15953,10 +15976,10 @@ var Agreement = class Agreement extends Object$1 {
15953
15976
  };
15954
15977
  }
15955
15978
  const clone = super.clone(values, options);
15956
- clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates;
15979
+ clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = this.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates.slice();
15957
15980
  if ("stipulates" in values && values.stipulates != null) if (values.stipulates instanceof Commitment) clone.#_37zeAJ2NVyecrDdP8os69FGAn9Q6_stipulates = [values.stipulates];
15958
15981
  else throw new TypeError("The stipulates must be of type Commitment.");
15959
- clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal;
15982
+ clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = this.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal.slice();
15960
15983
  if ("stipulatesReciprocal" in values && values.stipulatesReciprocal != null) if (values.stipulatesReciprocal instanceof Commitment) clone.#_4Vhx9DcywF65XWUQ4KZ35475FaJm_stipulatesReciprocal = [values.stipulatesReciprocal];
15961
15984
  else throw new TypeError("The stipulatesReciprocal must be of type Commitment.");
15962
15985
  return clone;
@@ -16306,7 +16329,8 @@ var Commitment = class {
16306
16329
  * Clones this instance, optionally updating it with the given values.
16307
16330
  * @param values The values to update the clone with.
16308
16331
  * @param options The options to use for cloning.
16309
- * @returns The cloned instance.
16332
+ * @returns The cloned instance with its own property arrays. Nested objects
16333
+ * and URLs are shared with this instance.
16310
16334
  */
16311
16335
  clone(values = {}, options = {}) {
16312
16336
  if (this._warning != null) {
@@ -16317,10 +16341,10 @@ var Commitment = class {
16317
16341
  };
16318
16342
  }
16319
16343
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
16320
- clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies;
16344
+ clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = this.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies.slice();
16321
16345
  if ("satisfies" in values && values.satisfies != null) if (values.satisfies instanceof URL) clone.#_aCyzDK9TkXtLxrZs7JC8emuYisv_satisfies = [values.satisfies];
16322
16346
  else throw new TypeError("The satisfies must be of type URL.");
16323
- clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
16347
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
16324
16348
  if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
16325
16349
  else throw new TypeError("The resourceQuantity must be of type Measure.");
16326
16350
  return clone;
@@ -16632,7 +16656,8 @@ var Intent = class {
16632
16656
  * Clones this instance, optionally updating it with the given values.
16633
16657
  * @param values The values to update the clone with.
16634
16658
  * @param options The options to use for cloning.
16635
- * @returns The cloned instance.
16659
+ * @returns The cloned instance with its own property arrays. Nested objects
16660
+ * and URLs are shared with this instance.
16636
16661
  */
16637
16662
  clone(values = {}, options = {}) {
16638
16663
  if (this._warning != null) {
@@ -16643,19 +16668,19 @@ var Intent = class {
16643
16668
  };
16644
16669
  }
16645
16670
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
16646
- clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action;
16671
+ clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = this.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action.slice();
16647
16672
  if ("action" in values && values.action != null) if (typeof values.action === "string") clone.#_38VmZKmXJSBy3AvgqNa9GVqbdphy_action = [values.action];
16648
16673
  else throw new TypeError("The action must be of type string.");
16649
- clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo;
16674
+ clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = this.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo.slice();
16650
16675
  if ("resourceConformsTo" in values && values.resourceConformsTo != null) if (values.resourceConformsTo instanceof URL) clone.#_BBAeMUUQDwBQn6cvu3P2Csd6b6h_resourceConformsTo = [values.resourceConformsTo];
16651
16676
  else throw new TypeError("The resourceConformsTo must be of type URL.");
16652
- clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity;
16677
+ clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = this.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity.slice();
16653
16678
  if ("resourceQuantity" in values && values.resourceQuantity != null) if (values.resourceQuantity instanceof Measure) clone.#_2dLfqTbbRiggEcMQWbHpxkQrtmrc_resourceQuantity = [values.resourceQuantity];
16654
16679
  else throw new TypeError("The resourceQuantity must be of type Measure.");
16655
- clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity;
16680
+ clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = this.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity.slice();
16656
16681
  if ("availableQuantity" in values && values.availableQuantity != null) if (values.availableQuantity instanceof Measure) clone.#_YmNSnuih3Zk4VdR5JPVnQYroLAh_availableQuantity = [values.availableQuantity];
16657
16682
  else throw new TypeError("The availableQuantity must be of type Measure.");
16658
- clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity;
16683
+ clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = this.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity.slice();
16659
16684
  if ("minimumQuantity" in values && values.minimumQuantity != null) if (values.minimumQuantity instanceof Measure) clone.#_3XueAFds2NBrqNpnV8b7aC8hV72S_minimumQuantity = [values.minimumQuantity];
16660
16685
  else throw new TypeError("The minimumQuantity must be of type Measure.");
16661
16686
  return clone;
@@ -17053,7 +17078,8 @@ var Proposal = class Proposal extends Object$1 {
17053
17078
  * Clones this instance, optionally updating it with the given values.
17054
17079
  * @param values The values to update the clone with.
17055
17080
  * @param options The options to use for cloning.
17056
- * @returns The cloned instance.
17081
+ * @returns The cloned instance with its own property arrays. Nested objects
17082
+ * and URLs are shared with this instance.
17057
17083
  */
17058
17084
  clone(values = {}, options = {}) {
17059
17085
  if (this._warning != null) {
@@ -17064,16 +17090,16 @@ var Proposal = class Proposal extends Object$1 {
17064
17090
  };
17065
17091
  }
17066
17092
  const clone = super.clone(values, options);
17067
- clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose;
17093
+ clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = this.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose.slice();
17068
17094
  if ("purpose" in values && values.purpose != null) if (typeof values.purpose === "string") clone.#_4wb2xgUBheR2gaD2Se8QBH4LEC7_purpose = [values.purpose];
17069
17095
  else throw new TypeError("The purpose must be of type string.");
17070
- clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes;
17096
+ clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = this.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes.slice();
17071
17097
  if ("publishes" in values && values.publishes != null) if (values.publishes instanceof Intent) clone.#_sS5LvXX8cn4c3x6ux836AwYbTyJ_publishes = [values.publishes];
17072
17098
  else throw new TypeError("The publishes must be of type Intent.");
17073
- clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal;
17099
+ clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = this.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal.slice();
17074
17100
  if ("reciprocal" in values && values.reciprocal != null) if (values.reciprocal instanceof Intent) clone.#_Z4ntJgFwR9BaNTbFvkRTGNEwUwy_reciprocal = [values.reciprocal];
17075
17101
  else throw new TypeError("The reciprocal must be of type Intent.");
17076
- clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased;
17102
+ clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = this.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased.slice();
17077
17103
  if ("unitBased" in values && values.unitBased != null) if (typeof values.unitBased === "boolean") clone.#_48ncwmfGhSoqAFByMVh2UxoiozPq_unitBased = [values.unitBased];
17078
17104
  else throw new TypeError("The unitBased must be of type boolean.");
17079
17105
  return clone;
@@ -17452,7 +17478,8 @@ var Accept = class Accept extends Activity {
17452
17478
  * Clones this instance, optionally updating it with the given values.
17453
17479
  * @param values The values to update the clone with.
17454
17480
  * @param options The options to use for cloning.
17455
- * @returns The cloned instance.
17481
+ * @returns The cloned instance with its own property arrays. Nested objects
17482
+ * and URLs are shared with this instance.
17456
17483
  */
17457
17484
  clone(values = {}, options = {}) {
17458
17485
  if (this._warning != null) {
@@ -17607,7 +17634,8 @@ var Add = class Add extends Activity {
17607
17634
  * Clones this instance, optionally updating it with the given values.
17608
17635
  * @param values The values to update the clone with.
17609
17636
  * @param options The options to use for cloning.
17610
- * @returns The cloned instance.
17637
+ * @returns The cloned instance with its own property arrays. Nested objects
17638
+ * and URLs are shared with this instance.
17611
17639
  */
17612
17640
  clone(values = {}, options = {}) {
17613
17641
  if (this._warning != null) {
@@ -17760,7 +17788,8 @@ var Announce = class Announce extends Activity {
17760
17788
  * Clones this instance, optionally updating it with the given values.
17761
17789
  * @param values The values to update the clone with.
17762
17790
  * @param options The options to use for cloning.
17763
- * @returns The cloned instance.
17791
+ * @returns The cloned instance with its own property arrays. Nested objects
17792
+ * and URLs are shared with this instance.
17764
17793
  */
17765
17794
  clone(values = {}, options = {}) {
17766
17795
  if (this._warning != null) {
@@ -17974,7 +18003,7 @@ var Application = class Application extends Object$1 {
17974
18003
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
17975
18004
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
17976
18005
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
17977
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
18006
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
17978
18007
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
17979
18008
  }
17980
18009
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -17984,7 +18013,7 @@ var Application = class Application extends Object$1 {
17984
18013
  if ("publicKeys" in values && values.publicKeys != null) {
17985
18014
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
17986
18015
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
17987
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
18016
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
17988
18017
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
17989
18018
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
17990
18019
  }
@@ -17995,7 +18024,7 @@ var Application = class Application extends Object$1 {
17995
18024
  if ("assertionMethods" in values && values.assertionMethods != null) {
17996
18025
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
17997
18026
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
17998
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
18027
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
17999
18028
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
18000
18029
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
18001
18030
  }
@@ -18030,7 +18059,7 @@ var Application = class Application extends Object$1 {
18030
18059
  this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
18031
18060
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
18032
18061
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
18033
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
18062
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
18034
18063
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
18035
18064
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
18036
18065
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -18054,7 +18083,7 @@ var Application = class Application extends Object$1 {
18054
18083
  if ("aliases" in values && values.aliases != null) {
18055
18084
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
18056
18085
  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)) {
18057
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
18086
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
18058
18087
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
18059
18088
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
18060
18089
  }
@@ -18065,7 +18094,7 @@ var Application = class Application extends Object$1 {
18065
18094
  if ("services" in values && values.services != null) {
18066
18095
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
18067
18096
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
18068
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
18097
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
18069
18098
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
18070
18099
  } else throw new TypeError("The services must be an array of type DidService | URL.");
18071
18100
  }
@@ -18078,7 +18107,8 @@ var Application = class Application extends Object$1 {
18078
18107
  * Clones this instance, optionally updating it with the given values.
18079
18108
  * @param values The values to update the clone with.
18080
18109
  * @param options The options to use for cloning.
18081
- * @returns The cloned instance.
18110
+ * @returns The cloned instance with its own property arrays. Nested objects
18111
+ * and URLs are shared with this instance.
18082
18112
  */
18083
18113
  clone(values = {}, options = {}) {
18084
18114
  if (this._warning != null) {
@@ -18089,15 +18119,15 @@ var Application = class Application extends Object$1 {
18089
18119
  };
18090
18120
  }
18091
18121
  const clone = super.clone(values, options);
18092
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
18122
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
18093
18123
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
18094
18124
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
18095
18125
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
18096
18126
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
18097
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
18127
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
18098
18128
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
18099
18129
  }
18100
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
18130
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
18101
18131
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
18102
18132
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
18103
18133
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -18106,12 +18136,12 @@ var Application = class Application extends Object$1 {
18106
18136
  if ("publicKeys" in values && values.publicKeys != null) {
18107
18137
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
18108
18138
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
18109
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
18139
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
18110
18140
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
18111
18141
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
18112
18142
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
18113
18143
  }
18114
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
18144
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
18115
18145
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
18116
18146
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
18117
18147
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -18120,85 +18150,85 @@ var Application = class Application extends Object$1 {
18120
18150
  if ("assertionMethods" in values && values.assertionMethods != null) {
18121
18151
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
18122
18152
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
18123
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
18153
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
18124
18154
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
18125
18155
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
18126
18156
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
18127
18157
  }
18128
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
18158
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
18129
18159
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
18130
18160
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
18131
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
18161
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
18132
18162
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
18133
18163
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
18134
18164
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
18135
18165
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
18136
18166
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
18137
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
18167
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
18138
18168
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
18139
18169
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
18140
18170
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
18141
18171
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
18142
18172
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
18143
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
18173
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
18144
18174
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
18145
18175
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
18146
18176
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
18147
18177
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
18148
18178
  } else throw new TypeError("The following must be of type Collection | URL.");
18149
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
18179
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
18150
18180
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
18151
18181
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
18152
18182
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
18153
18183
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
18154
18184
  } else throw new TypeError("The followers must be of type Collection | URL.");
18155
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
18185
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
18156
18186
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
18157
18187
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
18158
18188
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
18159
18189
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
18160
18190
  } else throw new TypeError("The liked must be of type Collection | URL.");
18161
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
18191
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
18162
18192
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
18163
18193
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
18164
18194
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
18165
18195
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
18166
18196
  } else throw new TypeError("The featured must be of type Collection | URL.");
18167
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
18197
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
18168
18198
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
18169
18199
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
18170
18200
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
18171
18201
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
18172
18202
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
18173
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
18203
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
18174
18204
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
18175
18205
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
18176
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
18206
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
18177
18207
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
18178
18208
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
18179
18209
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
18180
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
18210
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
18181
18211
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
18182
18212
  else throw new TypeError("The endpoints must be of type Endpoints.");
18183
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
18213
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
18184
18214
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
18185
18215
  else throw new TypeError("The discoverable must be of type boolean.");
18186
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
18216
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
18187
18217
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
18188
18218
  else throw new TypeError("The suspended must be of type boolean.");
18189
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
18219
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
18190
18220
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
18191
18221
  else throw new TypeError("The memorial must be of type boolean.");
18192
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
18222
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
18193
18223
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
18194
18224
  else throw new TypeError("The indexable must be of type boolean.");
18195
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
18225
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
18196
18226
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
18197
18227
  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) {
18198
18228
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
18199
18229
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
18200
18230
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
18201
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
18231
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
18202
18232
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
18203
18233
  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) {
18204
18234
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -18207,12 +18237,12 @@ var Application = class Application extends Object$1 {
18207
18237
  if ("aliases" in values && values.aliases != null) {
18208
18238
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
18209
18239
  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)) {
18210
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
18240
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
18211
18241
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
18212
18242
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
18213
18243
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
18214
18244
  }
18215
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
18245
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
18216
18246
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
18217
18247
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
18218
18248
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -18221,15 +18251,15 @@ var Application = class Application extends Object$1 {
18221
18251
  if ("services" in values && values.services != null) {
18222
18252
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
18223
18253
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
18224
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
18254
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
18225
18255
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
18226
18256
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
18227
18257
  } else throw new TypeError("The services must be an array of type DidService | URL.");
18228
18258
  }
18229
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
18259
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
18230
18260
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
18231
18261
  else throw new TypeError("The followedMessage must be of type string.");
18232
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
18262
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
18233
18263
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
18234
18264
  else throw new TypeError("The cat must be of type boolean.");
18235
18265
  return clone;
@@ -21560,7 +21590,8 @@ var IntransitiveActivity = class IntransitiveActivity extends Activity {
21560
21590
  * Clones this instance, optionally updating it with the given values.
21561
21591
  * @param values The values to update the clone with.
21562
21592
  * @param options The options to use for cloning.
21563
- * @returns The cloned instance.
21593
+ * @returns The cloned instance with its own property arrays. Nested objects
21594
+ * and URLs are shared with this instance.
21564
21595
  */
21565
21596
  clone(values = {}, options = {}) {
21566
21597
  if (this._warning != null) {
@@ -21716,7 +21747,8 @@ var Arrive = class Arrive extends IntransitiveActivity {
21716
21747
  * Clones this instance, optionally updating it with the given values.
21717
21748
  * @param values The values to update the clone with.
21718
21749
  * @param options The options to use for cloning.
21719
- * @returns The cloned instance.
21750
+ * @returns The cloned instance with its own property arrays. Nested objects
21751
+ * and URLs are shared with this instance.
21720
21752
  */
21721
21753
  clone(values = {}, options = {}) {
21722
21754
  if (this._warning != null) {
@@ -21882,7 +21914,8 @@ var Article = class Article extends Object$1 {
21882
21914
  * Clones this instance, optionally updating it with the given values.
21883
21915
  * @param values The values to update the clone with.
21884
21916
  * @param options The options to use for cloning.
21885
- * @returns The cloned instance.
21917
+ * @returns The cloned instance with its own property arrays. Nested objects
21918
+ * and URLs are shared with this instance.
21886
21919
  */
21887
21920
  clone(values = {}, options = {}) {
21888
21921
  if (this._warning != null) {
@@ -21893,16 +21926,16 @@ var Article = class Article extends Object$1 {
21893
21926
  };
21894
21927
  }
21895
21928
  const clone = super.clone(values, options);
21896
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
21929
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
21897
21930
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
21898
21931
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
21899
21932
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
21900
21933
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
21901
21934
  } else throw new TypeError("The quote must be of type Object | URL.");
21902
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
21935
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
21903
21936
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
21904
21937
  else throw new TypeError("The quoteUrl must be of type URL.");
21905
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
21938
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
21906
21939
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
21907
21940
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
21908
21941
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -22527,7 +22560,8 @@ var Document = class Document extends Object$1 {
22527
22560
  * Clones this instance, optionally updating it with the given values.
22528
22561
  * @param values The values to update the clone with.
22529
22562
  * @param options The options to use for cloning.
22530
- * @returns The cloned instance.
22563
+ * @returns The cloned instance with its own property arrays. Nested objects
22564
+ * and URLs are shared with this instance.
22531
22565
  */
22532
22566
  clone(values = {}, options = {}) {
22533
22567
  if (this._warning != null) {
@@ -22538,10 +22572,10 @@ var Document = class Document extends Object$1 {
22538
22572
  };
22539
22573
  }
22540
22574
  const clone = super.clone(values, options);
22541
- clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
22575
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
22542
22576
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
22543
22577
  else throw new TypeError("The width must be of type number.");
22544
- clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
22578
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
22545
22579
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
22546
22580
  else throw new TypeError("The height must be of type number.");
22547
22581
  return clone;
@@ -22787,7 +22821,8 @@ var Audio = class Audio extends Document {
22787
22821
  * Clones this instance, optionally updating it with the given values.
22788
22822
  * @param values The values to update the clone with.
22789
22823
  * @param options The options to use for cloning.
22790
- * @returns The cloned instance.
22824
+ * @returns The cloned instance with its own property arrays. Nested objects
22825
+ * and URLs are shared with this instance.
22791
22826
  */
22792
22827
  clone(values = {}, options = {}) {
22793
22828
  if (this._warning != null) {
@@ -22953,7 +22988,8 @@ var Ignore = class Ignore extends Activity {
22953
22988
  * Clones this instance, optionally updating it with the given values.
22954
22989
  * @param values The values to update the clone with.
22955
22990
  * @param options The options to use for cloning.
22956
- * @returns The cloned instance.
22991
+ * @returns The cloned instance with its own property arrays. Nested objects
22992
+ * and URLs are shared with this instance.
22957
22993
  */
22958
22994
  clone(values = {}, options = {}) {
22959
22995
  if (this._warning != null) {
@@ -23108,7 +23144,8 @@ var Block = class Block extends Ignore {
23108
23144
  * Clones this instance, optionally updating it with the given values.
23109
23145
  * @param values The values to update the clone with.
23110
23146
  * @param options The options to use for cloning.
23111
- * @returns The cloned instance.
23147
+ * @returns The cloned instance with its own property arrays. Nested objects
23148
+ * and URLs are shared with this instance.
23112
23149
  */
23113
23150
  clone(values = {}, options = {}) {
23114
23151
  if (this._warning != null) {
@@ -23298,7 +23335,7 @@ var Collection = class Collection extends Object$1 {
23298
23335
  this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.add(0);
23299
23336
  } else throw new TypeError("The last must be of type CollectionPage | URL.");
23300
23337
  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)) {
23301
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
23338
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
23302
23339
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
23303
23340
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
23304
23341
  if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
@@ -23338,7 +23375,8 @@ var Collection = class Collection extends Object$1 {
23338
23375
  * Clones this instance, optionally updating it with the given values.
23339
23376
  * @param values The values to update the clone with.
23340
23377
  * @param options The options to use for cloning.
23341
- * @returns The cloned instance.
23378
+ * @returns The cloned instance with its own property arrays. Nested objects
23379
+ * and URLs are shared with this instance.
23342
23380
  */
23343
23381
  clone(values = {}, options = {}) {
23344
23382
  if (this._warning != null) {
@@ -23349,77 +23387,77 @@ var Collection = class Collection extends Object$1 {
23349
23387
  };
23350
23388
  }
23351
23389
  const clone = super.clone(values, options);
23352
- clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems;
23390
+ clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = this.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems.slice();
23353
23391
  if ("totalItems" in values && values.totalItems != null) if (typeof values.totalItems === "number" && Number.isInteger(values.totalItems) && values.totalItems >= 0) clone.#_XDbmNDuWHmrhqH712zqtecdbv1V_totalItems = [values.totalItems];
23354
23392
  else throw new TypeError("The totalItems must be of type number.");
23355
- clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current;
23393
+ clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = this.#_3UyUdxnyn6cDn53QKrh4MBiearma_current.slice();
23356
23394
  clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set(this.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current);
23357
23395
  if ("current" in values && values.current != null) if (values.current instanceof CollectionPage || values.current instanceof URL) {
23358
23396
  clone.#_3UyUdxnyn6cDn53QKrh4MBiearma_current = [values.current];
23359
23397
  clone.#_trust_3UyUdxnyn6cDn53QKrh4MBiearma_current = new Set([0]);
23360
23398
  } else throw new TypeError("The current must be of type CollectionPage | URL.");
23361
- clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first;
23399
+ clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = this.#_J52RqweMe6hhv7RnLJMC8BExTE5_first.slice();
23362
23400
  clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set(this.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first);
23363
23401
  if ("first" in values && values.first != null) if (values.first instanceof CollectionPage || values.first instanceof URL) {
23364
23402
  clone.#_J52RqweMe6hhv7RnLJMC8BExTE5_first = [values.first];
23365
23403
  clone.#_trust_J52RqweMe6hhv7RnLJMC8BExTE5_first = new Set([0]);
23366
23404
  } else throw new TypeError("The first must be of type CollectionPage | URL.");
23367
- clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last;
23405
+ clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = this.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last.slice();
23368
23406
  clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set(this.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last);
23369
23407
  if ("last" in values && values.last != null) if (values.last instanceof CollectionPage || values.last instanceof URL) {
23370
23408
  clone.#_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = [values.last];
23371
23409
  clone.#_trust_gyJJnyEFnuNVi1HFZKfAn3Hfn26_last = new Set([0]);
23372
23410
  } else throw new TypeError("The last must be of type CollectionPage | URL.");
23373
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
23411
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
23374
23412
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
23375
23413
  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)) {
23376
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
23414
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
23377
23415
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
23378
23416
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
23379
23417
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
23380
- clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf;
23418
+ clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = this.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf.slice();
23381
23419
  clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set(this.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf);
23382
23420
  if ("likesOf" in values && values.likesOf != null) if (values.likesOf instanceof Object$1 || values.likesOf instanceof URL) {
23383
23421
  clone.#_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = [values.likesOf];
23384
23422
  clone.#_trust_4TB9Qd9ddtcZEpMfzbHhzafE6jaJ_likesOf = new Set([0]);
23385
23423
  } else throw new TypeError("The likesOf must be of type Object | URL.");
23386
- clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf;
23424
+ clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = this.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf.slice();
23387
23425
  clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set(this.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf);
23388
23426
  if ("sharesOf" in values && values.sharesOf != null) if (values.sharesOf instanceof Object$1 || values.sharesOf instanceof URL) {
23389
23427
  clone.#_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = [values.sharesOf];
23390
23428
  clone.#_trust_3manzgeKiPsugpztKGiaUUwJ3ito_sharesOf = new Set([0]);
23391
23429
  } else throw new TypeError("The sharesOf must be of type Object | URL.");
23392
- clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf;
23430
+ clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = this.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf.slice();
23393
23431
  clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set(this.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf);
23394
23432
  if ("repliesOf" in values && values.repliesOf != null) if (values.repliesOf instanceof Object$1 || values.repliesOf instanceof URL) {
23395
23433
  clone.#_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = [values.repliesOf];
23396
23434
  clone.#_trust_3T3oGm3twpcQUcrnMisXQtmDZ32X_repliesOf = new Set([0]);
23397
23435
  } else throw new TypeError("The repliesOf must be of type Object | URL.");
23398
- clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf;
23436
+ clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = this.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf.slice();
23399
23437
  clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set(this.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf);
23400
23438
  if ("inboxOf" in values && values.inboxOf != null) if (values.inboxOf instanceof Object$1 || values.inboxOf instanceof URL) {
23401
23439
  clone.#_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = [values.inboxOf];
23402
23440
  clone.#_trust_2bvRkAFZjMfVD8jiUWZJr5YokSeN_inboxOf = new Set([0]);
23403
23441
  } else throw new TypeError("The inboxOf must be of type Object | URL.");
23404
- clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf;
23442
+ clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = this.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf.slice();
23405
23443
  clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set(this.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf);
23406
23444
  if ("outboxOf" in values && values.outboxOf != null) if (values.outboxOf instanceof Object$1 || values.outboxOf instanceof URL) {
23407
23445
  clone.#_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = [values.outboxOf];
23408
23446
  clone.#_trust_4AHzVZDxHjK6uEWa9UiKHGK34yYm_outboxOf = new Set([0]);
23409
23447
  } else throw new TypeError("The outboxOf must be of type Object | URL.");
23410
- clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf;
23448
+ clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = this.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf.slice();
23411
23449
  clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set(this.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf);
23412
23450
  if ("followersOf" in values && values.followersOf != null) if (values.followersOf instanceof Object$1 || values.followersOf instanceof URL) {
23413
23451
  clone.#_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = [values.followersOf];
23414
23452
  clone.#_trust_41aoZ5M6yRUHy3Zx8q6iuZQxtopb_followersOf = new Set([0]);
23415
23453
  } else throw new TypeError("The followersOf must be of type Object | URL.");
23416
- clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf;
23454
+ clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = this.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf.slice();
23417
23455
  clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set(this.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf);
23418
23456
  if ("followingOf" in values && values.followingOf != null) if (values.followingOf instanceof Object$1 || values.followingOf instanceof URL) {
23419
23457
  clone.#_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = [values.followingOf];
23420
23458
  clone.#_trust_2nXT2Ah42UjEEQF5oJQ39CbKB1xj_followingOf = new Set([0]);
23421
23459
  } else throw new TypeError("The followingOf must be of type Object | URL.");
23422
- clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf;
23460
+ clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = this.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf.slice();
23423
23461
  clone.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = new Set(this.#_trust_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf);
23424
23462
  if ("likedOf" in values && values.likedOf != null) if (values.likedOf instanceof Object$1 || values.likedOf instanceof URL) {
23425
23463
  clone.#_2bsySzmT3qEZcrnoe3tZ5xBjXSju_likedOf = [values.likedOf];
@@ -25881,7 +25919,8 @@ var CollectionPage = class CollectionPage extends Collection {
25881
25919
  * Clones this instance, optionally updating it with the given values.
25882
25920
  * @param values The values to update the clone with.
25883
25921
  * @param options The options to use for cloning.
25884
- * @returns The cloned instance.
25922
+ * @returns The cloned instance with its own property arrays. Nested objects
25923
+ * and URLs are shared with this instance.
25885
25924
  */
25886
25925
  clone(values = {}, options = {}) {
25887
25926
  if (this._warning != null) {
@@ -25892,19 +25931,19 @@ var CollectionPage = class CollectionPage extends Collection {
25892
25931
  };
25893
25932
  }
25894
25933
  const clone = super.clone(values, options);
25895
- clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf;
25934
+ clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = this.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf.slice();
25896
25935
  clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set(this.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf);
25897
25936
  if ("partOf" in values && values.partOf != null) if (values.partOf instanceof Collection || values.partOf instanceof URL) {
25898
25937
  clone.#_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = [values.partOf];
25899
25938
  clone.#_trust_2kWgBhQKjEauxx8C6qF3ZQamK4Le_partOf = new Set([0]);
25900
25939
  } else throw new TypeError("The partOf must be of type Collection | URL.");
25901
- clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next;
25940
+ clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = this.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next.slice();
25902
25941
  clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set(this.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next);
25903
25942
  if ("next" in values && values.next != null) if (values.next instanceof CollectionPage || values.next instanceof URL) {
25904
25943
  clone.#_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = [values.next];
25905
25944
  clone.#_trust_3BT4kQLcXhHx7TAWaNDKh8nFn9eY_next = new Set([0]);
25906
25945
  } else throw new TypeError("The next must be of type CollectionPage | URL.");
25907
- clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev;
25946
+ clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = this.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev.slice();
25908
25947
  clone.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = new Set(this.#_trust_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev);
25909
25948
  if ("prev" in values && values.prev != null) if (values.prev instanceof CollectionPage || values.prev instanceof URL) {
25910
25949
  clone.#_3b8yG8tDNzQFFEnWhCc13G8eHooA_prev = [values.prev];
@@ -26645,7 +26684,8 @@ var Create = class Create extends Activity {
26645
26684
  * Clones this instance, optionally updating it with the given values.
26646
26685
  * @param values The values to update the clone with.
26647
26686
  * @param options The options to use for cloning.
26648
- * @returns The cloned instance.
26687
+ * @returns The cloned instance with its own property arrays. Nested objects
26688
+ * and URLs are shared with this instance.
26649
26689
  */
26650
26690
  clone(values = {}, options = {}) {
26651
26691
  if (this._warning != null) {
@@ -26827,7 +26867,8 @@ var Delete = class Delete extends Activity {
26827
26867
  * Clones this instance, optionally updating it with the given values.
26828
26868
  * @param values The values to update the clone with.
26829
26869
  * @param options The options to use for cloning.
26830
- * @returns The cloned instance.
26870
+ * @returns The cloned instance with its own property arrays. Nested objects
26871
+ * and URLs are shared with this instance.
26831
26872
  */
26832
26873
  clone(values = {}, options = {}) {
26833
26874
  if (this._warning != null) {
@@ -27004,7 +27045,8 @@ var Dislike = class Dislike extends Activity {
27004
27045
  * Clones this instance, optionally updating it with the given values.
27005
27046
  * @param values The values to update the clone with.
27006
27047
  * @param options The options to use for cloning.
27007
- * @returns The cloned instance.
27048
+ * @returns The cloned instance with its own property arrays. Nested objects
27049
+ * and URLs are shared with this instance.
27008
27050
  */
27009
27051
  clone(values = {}, options = {}) {
27010
27052
  if (this._warning != null) {
@@ -27224,7 +27266,8 @@ var Endpoints = class {
27224
27266
  * Clones this instance, optionally updating it with the given values.
27225
27267
  * @param values The values to update the clone with.
27226
27268
  * @param options The options to use for cloning.
27227
- * @returns The cloned instance.
27269
+ * @returns The cloned instance with its own property arrays. Nested objects
27270
+ * and URLs are shared with this instance.
27228
27271
  */
27229
27272
  clone(values = {}, options = {}) {
27230
27273
  if (this._warning != null) {
@@ -27235,22 +27278,22 @@ var Endpoints = class {
27235
27278
  };
27236
27279
  }
27237
27280
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
27238
- clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl;
27281
+ clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = this.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl.slice();
27239
27282
  if ("proxyUrl" in values && values.proxyUrl != null) if (values.proxyUrl instanceof URL) clone.#_2JCYDbSxEHCCLdBYed33cCETfGyR_proxyUrl = [values.proxyUrl];
27240
27283
  else throw new TypeError("The proxyUrl must be of type URL.");
27241
- clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint;
27284
+ clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = this.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint.slice();
27242
27285
  if ("oauthAuthorizationEndpoint" in values && values.oauthAuthorizationEndpoint != null) if (values.oauthAuthorizationEndpoint instanceof URL) clone.#_25S6UmgzDead8hxL5sQFezZTAusd_oauthAuthorizationEndpoint = [values.oauthAuthorizationEndpoint];
27243
27286
  else throw new TypeError("The oauthAuthorizationEndpoint must be of type URL.");
27244
- clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint;
27287
+ clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = this.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint.slice();
27245
27288
  if ("oauthTokenEndpoint" in values && values.oauthTokenEndpoint != null) if (values.oauthTokenEndpoint instanceof URL) clone.#_iAMxqrSba7yBCRB1FZ5kEVdKEZ3_oauthTokenEndpoint = [values.oauthTokenEndpoint];
27246
27289
  else throw new TypeError("The oauthTokenEndpoint must be of type URL.");
27247
- clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey;
27290
+ clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = this.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey.slice();
27248
27291
  if ("provideClientKey" in values && values.provideClientKey != null) if (values.provideClientKey instanceof URL) clone.#_8Bx9qN8oU7Bpt2xi6khaxWp1gMr_provideClientKey = [values.provideClientKey];
27249
27292
  else throw new TypeError("The provideClientKey must be of type URL.");
27250
- clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey;
27293
+ clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = this.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey.slice();
27251
27294
  if ("signClientKey" in values && values.signClientKey != null) if (values.signClientKey instanceof URL) clone.#_3dU7PMVQZJpsCpo2F4RQXxBXdPmS_signClientKey = [values.signClientKey];
27252
27295
  else throw new TypeError("The signClientKey must be of type URL.");
27253
- clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox;
27296
+ clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = this.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox.slice();
27254
27297
  if ("sharedInbox" in values && values.sharedInbox != null) if (values.sharedInbox instanceof URL) clone.#_3JprUSDLVqqX4dwHRi37qGZZCRCc_sharedInbox = [values.sharedInbox];
27255
27298
  else throw new TypeError("The sharedInbox must be of type URL.");
27256
27299
  return clone;
@@ -27633,7 +27676,8 @@ var Event = class Event extends Object$1 {
27633
27676
  * Clones this instance, optionally updating it with the given values.
27634
27677
  * @param values The values to update the clone with.
27635
27678
  * @param options The options to use for cloning.
27636
- * @returns The cloned instance.
27679
+ * @returns The cloned instance with its own property arrays. Nested objects
27680
+ * and URLs are shared with this instance.
27637
27681
  */
27638
27682
  clone(values = {}, options = {}) {
27639
27683
  if (this._warning != null) {
@@ -27800,7 +27844,8 @@ var Flag = class Flag extends Activity {
27800
27844
  * Clones this instance, optionally updating it with the given values.
27801
27845
  * @param values The values to update the clone with.
27802
27846
  * @param options The options to use for cloning.
27803
- * @returns The cloned instance.
27847
+ * @returns The cloned instance with its own property arrays. Nested objects
27848
+ * and URLs are shared with this instance.
27804
27849
  */
27805
27850
  clone(values = {}, options = {}) {
27806
27851
  if (this._warning != null) {
@@ -27954,7 +27999,8 @@ var Follow = class Follow extends Activity {
27954
27999
  * Clones this instance, optionally updating it with the given values.
27955
28000
  * @param values The values to update the clone with.
27956
28001
  * @param options The options to use for cloning.
27957
- * @returns The cloned instance.
28002
+ * @returns The cloned instance with its own property arrays. Nested objects
28003
+ * and URLs are shared with this instance.
27958
28004
  */
27959
28005
  clone(values = {}, options = {}) {
27960
28006
  if (this._warning != null) {
@@ -28142,7 +28188,7 @@ var Group = class Group extends Object$1 {
28142
28188
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
28143
28189
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
28144
28190
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
28145
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
28191
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
28146
28192
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
28147
28193
  }
28148
28194
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -28152,7 +28198,7 @@ var Group = class Group extends Object$1 {
28152
28198
  if ("publicKeys" in values && values.publicKeys != null) {
28153
28199
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
28154
28200
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
28155
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
28201
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
28156
28202
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
28157
28203
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
28158
28204
  }
@@ -28163,7 +28209,7 @@ var Group = class Group extends Object$1 {
28163
28209
  if ("assertionMethods" in values && values.assertionMethods != null) {
28164
28210
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
28165
28211
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
28166
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
28212
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
28167
28213
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
28168
28214
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
28169
28215
  }
@@ -28198,7 +28244,7 @@ var Group = class Group extends Object$1 {
28198
28244
  this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
28199
28245
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
28200
28246
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
28201
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
28247
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
28202
28248
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
28203
28249
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
28204
28250
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -28222,7 +28268,7 @@ var Group = class Group extends Object$1 {
28222
28268
  if ("aliases" in values && values.aliases != null) {
28223
28269
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
28224
28270
  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)) {
28225
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
28271
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
28226
28272
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
28227
28273
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
28228
28274
  }
@@ -28233,7 +28279,7 @@ var Group = class Group extends Object$1 {
28233
28279
  if ("services" in values && values.services != null) {
28234
28280
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
28235
28281
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
28236
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
28282
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
28237
28283
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
28238
28284
  } else throw new TypeError("The services must be an array of type DidService | URL.");
28239
28285
  }
@@ -28246,7 +28292,8 @@ var Group = class Group extends Object$1 {
28246
28292
  * Clones this instance, optionally updating it with the given values.
28247
28293
  * @param values The values to update the clone with.
28248
28294
  * @param options The options to use for cloning.
28249
- * @returns The cloned instance.
28295
+ * @returns The cloned instance with its own property arrays. Nested objects
28296
+ * and URLs are shared with this instance.
28250
28297
  */
28251
28298
  clone(values = {}, options = {}) {
28252
28299
  if (this._warning != null) {
@@ -28257,15 +28304,15 @@ var Group = class Group extends Object$1 {
28257
28304
  };
28258
28305
  }
28259
28306
  const clone = super.clone(values, options);
28260
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
28307
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
28261
28308
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
28262
28309
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
28263
28310
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
28264
28311
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
28265
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
28312
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
28266
28313
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
28267
28314
  }
28268
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
28315
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
28269
28316
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
28270
28317
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
28271
28318
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -28274,12 +28321,12 @@ var Group = class Group extends Object$1 {
28274
28321
  if ("publicKeys" in values && values.publicKeys != null) {
28275
28322
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
28276
28323
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
28277
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
28324
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
28278
28325
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
28279
28326
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
28280
28327
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
28281
28328
  }
28282
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
28329
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
28283
28330
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
28284
28331
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
28285
28332
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -28288,85 +28335,85 @@ var Group = class Group extends Object$1 {
28288
28335
  if ("assertionMethods" in values && values.assertionMethods != null) {
28289
28336
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
28290
28337
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
28291
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
28338
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
28292
28339
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
28293
28340
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
28294
28341
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
28295
28342
  }
28296
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
28343
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
28297
28344
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
28298
28345
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
28299
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
28346
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
28300
28347
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
28301
28348
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
28302
28349
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
28303
28350
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
28304
28351
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
28305
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
28352
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
28306
28353
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
28307
28354
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
28308
28355
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
28309
28356
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
28310
28357
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
28311
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
28358
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
28312
28359
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
28313
28360
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
28314
28361
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
28315
28362
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
28316
28363
  } else throw new TypeError("The following must be of type Collection | URL.");
28317
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
28364
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
28318
28365
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
28319
28366
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
28320
28367
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
28321
28368
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
28322
28369
  } else throw new TypeError("The followers must be of type Collection | URL.");
28323
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
28370
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
28324
28371
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
28325
28372
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
28326
28373
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
28327
28374
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
28328
28375
  } else throw new TypeError("The liked must be of type Collection | URL.");
28329
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
28376
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
28330
28377
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
28331
28378
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
28332
28379
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
28333
28380
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
28334
28381
  } else throw new TypeError("The featured must be of type Collection | URL.");
28335
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
28382
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
28336
28383
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
28337
28384
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
28338
28385
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
28339
28386
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
28340
28387
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
28341
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
28388
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
28342
28389
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
28343
28390
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
28344
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
28391
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
28345
28392
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
28346
28393
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
28347
28394
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
28348
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
28395
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
28349
28396
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
28350
28397
  else throw new TypeError("The endpoints must be of type Endpoints.");
28351
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
28398
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
28352
28399
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
28353
28400
  else throw new TypeError("The discoverable must be of type boolean.");
28354
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
28401
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
28355
28402
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
28356
28403
  else throw new TypeError("The suspended must be of type boolean.");
28357
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
28404
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
28358
28405
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
28359
28406
  else throw new TypeError("The memorial must be of type boolean.");
28360
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
28407
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
28361
28408
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
28362
28409
  else throw new TypeError("The indexable must be of type boolean.");
28363
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
28410
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
28364
28411
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
28365
28412
  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) {
28366
28413
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
28367
28414
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
28368
28415
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
28369
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
28416
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
28370
28417
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
28371
28418
  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) {
28372
28419
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -28375,12 +28422,12 @@ var Group = class Group extends Object$1 {
28375
28422
  if ("aliases" in values && values.aliases != null) {
28376
28423
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
28377
28424
  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)) {
28378
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
28425
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
28379
28426
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
28380
28427
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
28381
28428
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
28382
28429
  }
28383
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
28430
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
28384
28431
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
28385
28432
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
28386
28433
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -28389,15 +28436,15 @@ var Group = class Group extends Object$1 {
28389
28436
  if ("services" in values && values.services != null) {
28390
28437
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
28391
28438
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
28392
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
28439
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
28393
28440
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
28394
28441
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
28395
28442
  } else throw new TypeError("The services must be an array of type DidService | URL.");
28396
28443
  }
28397
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
28444
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
28398
28445
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
28399
28446
  else throw new TypeError("The followedMessage must be of type string.");
28400
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
28447
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
28401
28448
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
28402
28449
  else throw new TypeError("The cat must be of type boolean.");
28403
28450
  return clone;
@@ -31790,7 +31837,7 @@ var Link = class Link {
31790
31837
  else throw new TypeError("The rel must be of type string.");
31791
31838
  if ("rels" in values && values.rels != null) {
31792
31839
  if ("rel" in values && values.rel != null) throw new TypeError("Cannot initialize both rel and rels at the same time.");
31793
- if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
31840
+ if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
31794
31841
  else throw new TypeError("The rels must be an array of type string.");
31795
31842
  }
31796
31843
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
@@ -31799,7 +31846,7 @@ var Link = class Link {
31799
31846
  else throw new TypeError("The name must be of type string | LanguageString.");
31800
31847
  if ("names" in values && values.names != null) {
31801
31848
  if ("name" in values && values.name != null) throw new TypeError("Cannot initialize both name and names at the same time.");
31802
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
31849
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
31803
31850
  else throw new TypeError("The names must be an array of type string | LanguageString.");
31804
31851
  }
31805
31852
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
@@ -31809,7 +31856,7 @@ var Link = class Link {
31809
31856
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
31810
31857
  else throw new TypeError("The width must be of type number.");
31811
31858
  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)) {
31812
- this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
31859
+ this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
31813
31860
  for (let i = 0; i < values.previews.length; i++) this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
31814
31861
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
31815
31862
  }
@@ -31817,7 +31864,8 @@ var Link = class Link {
31817
31864
  * Clones this instance, optionally updating it with the given values.
31818
31865
  * @param values The values to update the clone with.
31819
31866
  * @param options The options to use for cloning.
31820
- * @returns The cloned instance.
31867
+ * @returns The cloned instance with its own property arrays. Nested objects
31868
+ * and URLs are shared with this instance.
31821
31869
  */
31822
31870
  clone(values = {}, options = {}) {
31823
31871
  if (this._warning != null) {
@@ -31828,41 +31876,41 @@ var Link = class Link {
31828
31876
  };
31829
31877
  }
31830
31878
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
31831
- clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href;
31879
+ clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = this.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href.slice();
31832
31880
  if ("href" in values && values.href != null) if (values.href instanceof URL) clone.#_pVjLsybKQdmkjuU7MHjiVmNnuj7_href = [values.href];
31833
31881
  else throw new TypeError("The href must be of type URL.");
31834
- clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel;
31882
+ clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = this.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel.slice();
31835
31883
  if ("rel" in values && values.rel != null) if (typeof values.rel === "string") clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = [values.rel];
31836
31884
  else throw new TypeError("The rel must be of type string.");
31837
31885
  if ("rels" in values && values.rels != null) {
31838
31886
  if ("rel" in values && values.rel != null) throw new TypeError("Cannot update both rel and rels at the same time.");
31839
- if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels;
31887
+ if (Array.isArray(values.rels) && values.rels.every((v) => typeof v === "string")) clone.#_2a1c5GkfkQsnyyLybF8UXBQfFuHZ_rel = values.rels.slice();
31840
31888
  else throw new TypeError("The rels must be an array of type string.");
31841
31889
  }
31842
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
31890
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
31843
31891
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
31844
31892
  else throw new TypeError("The mediaType must be of type string.");
31845
- clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name;
31893
+ clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = this.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name.slice();
31846
31894
  if ("name" in values && values.name != null) if (typeof values.name === "string" || values.name instanceof _fedify_vocab_runtime.LanguageString) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = [values.name];
31847
31895
  else throw new TypeError("The name must be of type string | LanguageString.");
31848
31896
  if ("names" in values && values.names != null) {
31849
31897
  if ("name" in values && values.name != null) throw new TypeError("Cannot update both name and names at the same time.");
31850
- if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names;
31898
+ if (Array.isArray(values.names) && values.names.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4ZHbBuK7PrsvGgrjM8wgc6KMWjav_name = values.names.slice();
31851
31899
  else throw new TypeError("The names must be an array of type string | LanguageString.");
31852
31900
  }
31853
- clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang;
31901
+ clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = this.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang.slice();
31854
31902
  if ("language" in values && values.language != null) if (values.language instanceof Intl.Locale) clone.#_f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang = [values.language];
31855
31903
  else throw new TypeError("The language must be of type Intl.Locale.");
31856
- clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height;
31904
+ clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = this.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height.slice();
31857
31905
  if ("height" in values && values.height != null) if (typeof values.height === "number" && Number.isInteger(values.height) && values.height >= 0) clone.#_2cGKFeFJMmiNpGZFEF75mCwFQsKb_height = [values.height];
31858
31906
  else throw new TypeError("The height must be of type number.");
31859
- clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width;
31907
+ clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = this.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width.slice();
31860
31908
  if ("width" in values && values.width != null) if (typeof values.width === "number" && Number.isInteger(values.width) && values.width >= 0) clone.#_2e9AP7WdHBJYAgXG6GEyq7nSkNMe_width = [values.width];
31861
31909
  else throw new TypeError("The width must be of type number.");
31862
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview;
31910
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = this.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview.slice();
31863
31911
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = new Set(this.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview);
31864
31912
  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)) {
31865
- clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews;
31913
+ clone.#_gCVTegXxWWCw6wWRxa1QF65zusg_preview = values.previews.slice();
31866
31914
  clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview = /* @__PURE__ */ new Set();
31867
31915
  for (let i = 0; i < values.previews.length; i++) clone.#_trust_gCVTegXxWWCw6wWRxa1QF65zusg_preview.add(i);
31868
31916
  } else throw new TypeError("The previews must be an array of type Link | Object | URL.");
@@ -32354,7 +32402,7 @@ var Link = class Link {
32354
32402
  let _f57HKWCp1YRBbTJE8PF12RbDJGf_hreflang__array = values["https://www.w3.org/ns/activitystreams#hreflang"];
32355
32403
  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) {
32356
32404
  if (v == null) continue;
32357
- const decoded = new Intl.Locale(v["@value"]);
32405
+ const decoded = new Intl.Locale((0, _fedify_vocab_runtime.normalizeLanguageTag)(v["@value"]));
32358
32406
  if (typeof decoded === "undefined") {
32359
32407
  shouldCacheJsonLd = false;
32360
32408
  continue;
@@ -32571,7 +32619,8 @@ var Hashtag = class Hashtag extends Link {
32571
32619
  * Clones this instance, optionally updating it with the given values.
32572
32620
  * @param values The values to update the clone with.
32573
32621
  * @param options The options to use for cloning.
32574
- * @returns The cloned instance.
32622
+ * @returns The cloned instance with its own property arrays. Nested objects
32623
+ * and URLs are shared with this instance.
32575
32624
  */
32576
32625
  clone(values = {}, options = {}) {
32577
32626
  if (this._warning != null) {
@@ -32725,7 +32774,8 @@ var Image = class Image extends Document {
32725
32774
  * Clones this instance, optionally updating it with the given values.
32726
32775
  * @param values The values to update the clone with.
32727
32776
  * @param options The options to use for cloning.
32728
- * @returns The cloned instance.
32777
+ * @returns The cloned instance with its own property arrays. Nested objects
32778
+ * and URLs are shared with this instance.
32729
32779
  */
32730
32780
  clone(values = {}, options = {}) {
32731
32781
  if (this._warning != null) {
@@ -32892,7 +32942,8 @@ var Offer = class Offer extends Activity {
32892
32942
  * Clones this instance, optionally updating it with the given values.
32893
32943
  * @param values The values to update the clone with.
32894
32944
  * @param options The options to use for cloning.
32895
- * @returns The cloned instance.
32945
+ * @returns The cloned instance with its own property arrays. Nested objects
32946
+ * and URLs are shared with this instance.
32896
32947
  */
32897
32948
  clone(values = {}, options = {}) {
32898
32949
  if (this._warning != null) {
@@ -33045,7 +33096,8 @@ var Invite = class Invite extends Offer {
33045
33096
  * Clones this instance, optionally updating it with the given values.
33046
33097
  * @param values The values to update the clone with.
33047
33098
  * @param options The options to use for cloning.
33048
- * @returns The cloned instance.
33099
+ * @returns The cloned instance with its own property arrays. Nested objects
33100
+ * and URLs are shared with this instance.
33049
33101
  */
33050
33102
  clone(values = {}, options = {}) {
33051
33103
  if (this._warning != null) {
@@ -33197,7 +33249,8 @@ var Join = class Join extends Activity {
33197
33249
  * Clones this instance, optionally updating it with the given values.
33198
33250
  * @param values The values to update the clone with.
33199
33251
  * @param options The options to use for cloning.
33200
- * @returns The cloned instance.
33252
+ * @returns The cloned instance with its own property arrays. Nested objects
33253
+ * and URLs are shared with this instance.
33201
33254
  */
33202
33255
  clone(values = {}, options = {}) {
33203
33256
  if (this._warning != null) {
@@ -33349,7 +33402,8 @@ var Leave = class Leave extends Activity {
33349
33402
  * Clones this instance, optionally updating it with the given values.
33350
33403
  * @param values The values to update the clone with.
33351
33404
  * @param options The options to use for cloning.
33352
- * @returns The cloned instance.
33405
+ * @returns The cloned instance with its own property arrays. Nested objects
33406
+ * and URLs are shared with this instance.
33353
33407
  */
33354
33408
  clone(values = {}, options = {}) {
33355
33409
  if (this._warning != null) {
@@ -33501,7 +33555,8 @@ var Like = class Like extends Activity {
33501
33555
  * Clones this instance, optionally updating it with the given values.
33502
33556
  * @param values The values to update the clone with.
33503
33557
  * @param options The options to use for cloning.
33504
- * @returns The cloned instance.
33558
+ * @returns The cloned instance with its own property arrays. Nested objects
33559
+ * and URLs are shared with this instance.
33505
33560
  */
33506
33561
  clone(values = {}, options = {}) {
33507
33562
  if (this._warning != null) {
@@ -33656,7 +33711,8 @@ var Listen = class Listen extends Activity {
33656
33711
  * Clones this instance, optionally updating it with the given values.
33657
33712
  * @param values The values to update the clone with.
33658
33713
  * @param options The options to use for cloning.
33659
- * @returns The cloned instance.
33714
+ * @returns The cloned instance with its own property arrays. Nested objects
33715
+ * and URLs are shared with this instance.
33660
33716
  */
33661
33717
  clone(values = {}, options = {}) {
33662
33718
  if (this._warning != null) {
@@ -33807,7 +33863,8 @@ var Mention = class Mention extends Link {
33807
33863
  * Clones this instance, optionally updating it with the given values.
33808
33864
  * @param values The values to update the clone with.
33809
33865
  * @param options The options to use for cloning.
33810
- * @returns The cloned instance.
33866
+ * @returns The cloned instance with its own property arrays. Nested objects
33867
+ * and URLs are shared with this instance.
33811
33868
  */
33812
33869
  clone(values = {}, options = {}) {
33813
33870
  if (this._warning != null) {
@@ -33963,7 +34020,8 @@ var Move = class Move extends Activity {
33963
34020
  * Clones this instance, optionally updating it with the given values.
33964
34021
  * @param values The values to update the clone with.
33965
34022
  * @param options The options to use for cloning.
33966
- * @returns The cloned instance.
34023
+ * @returns The cloned instance with its own property arrays. Nested objects
34024
+ * and URLs are shared with this instance.
33967
34025
  */
33968
34026
  clone(values = {}, options = {}) {
33969
34027
  if (this._warning != null) {
@@ -34130,7 +34188,8 @@ var Note = class Note extends Object$1 {
34130
34188
  * Clones this instance, optionally updating it with the given values.
34131
34189
  * @param values The values to update the clone with.
34132
34190
  * @param options The options to use for cloning.
34133
- * @returns The cloned instance.
34191
+ * @returns The cloned instance with its own property arrays. Nested objects
34192
+ * and URLs are shared with this instance.
34134
34193
  */
34135
34194
  clone(values = {}, options = {}) {
34136
34195
  if (this._warning != null) {
@@ -34141,16 +34200,16 @@ var Note = class Note extends Object$1 {
34141
34200
  };
34142
34201
  }
34143
34202
  const clone = super.clone(values, options);
34144
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
34203
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
34145
34204
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
34146
34205
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
34147
34206
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
34148
34207
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
34149
34208
  } else throw new TypeError("The quote must be of type Object | URL.");
34150
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
34209
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
34151
34210
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
34152
34211
  else throw new TypeError("The quoteUrl must be of type URL.");
34153
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
34212
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
34154
34213
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
34155
34214
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
34156
34215
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -34768,7 +34827,7 @@ var OrderedCollection = class OrderedCollection extends Collection {
34768
34827
  constructor(values, options = {}) {
34769
34828
  super(values, options);
34770
34829
  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)) {
34771
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
34830
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
34772
34831
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
34773
34832
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
34774
34833
  }
@@ -34776,7 +34835,8 @@ var OrderedCollection = class OrderedCollection extends Collection {
34776
34835
  * Clones this instance, optionally updating it with the given values.
34777
34836
  * @param values The values to update the clone with.
34778
34837
  * @param options The options to use for cloning.
34779
- * @returns The cloned instance.
34838
+ * @returns The cloned instance with its own property arrays. Nested objects
34839
+ * and URLs are shared with this instance.
34780
34840
  */
34781
34841
  clone(values = {}, options = {}) {
34782
34842
  if (this._warning != null) {
@@ -34787,10 +34847,10 @@ var OrderedCollection = class OrderedCollection extends Collection {
34787
34847
  };
34788
34848
  }
34789
34849
  const clone = super.clone(values, options);
34790
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
34850
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
34791
34851
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
34792
34852
  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)) {
34793
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
34853
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
34794
34854
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
34795
34855
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
34796
34856
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
@@ -35270,7 +35330,7 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
35270
35330
  constructor(values, options = {}) {
35271
35331
  super(values, options);
35272
35332
  if ("items" in values && values.items != null) if (Array.isArray(values.items) && values.items.every((v) => v instanceof Object$1 || v instanceof Link || v instanceof URL)) {
35273
- this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
35333
+ this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
35274
35334
  for (let i = 0; i < values.items.length; i++) this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
35275
35335
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
35276
35336
  if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
@@ -35280,7 +35340,8 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
35280
35340
  * Clones this instance, optionally updating it with the given values.
35281
35341
  * @param values The values to update the clone with.
35282
35342
  * @param options The options to use for cloning.
35283
- * @returns The cloned instance.
35343
+ * @returns The cloned instance with its own property arrays. Nested objects
35344
+ * and URLs are shared with this instance.
35284
35345
  */
35285
35346
  clone(values = {}, options = {}) {
35286
35347
  if (this._warning != null) {
@@ -35291,14 +35352,14 @@ var OrderedCollectionPage = class OrderedCollectionPage extends CollectionPage {
35291
35352
  };
35292
35353
  }
35293
35354
  const clone = super.clone(values, options);
35294
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items;
35355
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = this.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.slice();
35295
35356
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = new Set(this.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items);
35296
35357
  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)) {
35297
- clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items;
35358
+ clone.#_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = values.items.slice();
35298
35359
  clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items = /* @__PURE__ */ new Set();
35299
35360
  for (let i = 0; i < values.items.length; i++) clone.#_trust_2JPCKWTcfBmTCcW8Tv3TpRaLVaqg_items.add(i);
35300
35361
  } else throw new TypeError("The items must be an array of type Object | Link | URL.");
35301
- clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex;
35362
+ clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = this.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex.slice();
35302
35363
  if ("startIndex" in values && values.startIndex != null) if (typeof values.startIndex === "number" && Number.isInteger(values.startIndex) && values.startIndex >= 0) clone.#_2W4yinFwqmpneu2h4m1mZ3pcLADd_startIndex = [values.startIndex];
35303
35364
  else throw new TypeError("The startIndex must be of type number.");
35304
35365
  return clone;
@@ -35851,7 +35912,7 @@ var Organization = class Organization extends Object$1 {
35851
35912
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
35852
35913
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
35853
35914
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
35854
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
35915
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
35855
35916
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
35856
35917
  }
35857
35918
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -35861,7 +35922,7 @@ var Organization = class Organization extends Object$1 {
35861
35922
  if ("publicKeys" in values && values.publicKeys != null) {
35862
35923
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
35863
35924
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
35864
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
35925
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
35865
35926
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
35866
35927
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
35867
35928
  }
@@ -35872,7 +35933,7 @@ var Organization = class Organization extends Object$1 {
35872
35933
  if ("assertionMethods" in values && values.assertionMethods != null) {
35873
35934
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
35874
35935
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
35875
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
35936
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
35876
35937
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
35877
35938
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
35878
35939
  }
@@ -35907,7 +35968,7 @@ var Organization = class Organization extends Object$1 {
35907
35968
  this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
35908
35969
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
35909
35970
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
35910
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
35971
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
35911
35972
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
35912
35973
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
35913
35974
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -35931,7 +35992,7 @@ var Organization = class Organization extends Object$1 {
35931
35992
  if ("aliases" in values && values.aliases != null) {
35932
35993
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
35933
35994
  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)) {
35934
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
35995
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
35935
35996
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
35936
35997
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
35937
35998
  }
@@ -35942,7 +36003,7 @@ var Organization = class Organization extends Object$1 {
35942
36003
  if ("services" in values && values.services != null) {
35943
36004
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
35944
36005
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
35945
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
36006
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
35946
36007
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
35947
36008
  } else throw new TypeError("The services must be an array of type DidService | URL.");
35948
36009
  }
@@ -35955,7 +36016,8 @@ var Organization = class Organization extends Object$1 {
35955
36016
  * Clones this instance, optionally updating it with the given values.
35956
36017
  * @param values The values to update the clone with.
35957
36018
  * @param options The options to use for cloning.
35958
- * @returns The cloned instance.
36019
+ * @returns The cloned instance with its own property arrays. Nested objects
36020
+ * and URLs are shared with this instance.
35959
36021
  */
35960
36022
  clone(values = {}, options = {}) {
35961
36023
  if (this._warning != null) {
@@ -35966,15 +36028,15 @@ var Organization = class Organization extends Object$1 {
35966
36028
  };
35967
36029
  }
35968
36030
  const clone = super.clone(values, options);
35969
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
36031
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
35970
36032
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
35971
36033
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
35972
36034
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
35973
36035
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
35974
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
36036
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
35975
36037
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
35976
36038
  }
35977
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
36039
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
35978
36040
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
35979
36041
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
35980
36042
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -35983,12 +36045,12 @@ var Organization = class Organization extends Object$1 {
35983
36045
  if ("publicKeys" in values && values.publicKeys != null) {
35984
36046
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
35985
36047
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
35986
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
36048
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
35987
36049
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
35988
36050
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
35989
36051
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
35990
36052
  }
35991
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
36053
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
35992
36054
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
35993
36055
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
35994
36056
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -35997,85 +36059,85 @@ var Organization = class Organization extends Object$1 {
35997
36059
  if ("assertionMethods" in values && values.assertionMethods != null) {
35998
36060
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
35999
36061
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
36000
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
36062
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
36001
36063
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
36002
36064
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
36003
36065
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
36004
36066
  }
36005
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
36067
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
36006
36068
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
36007
36069
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
36008
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
36070
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
36009
36071
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
36010
36072
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
36011
36073
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
36012
36074
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
36013
36075
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
36014
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
36076
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
36015
36077
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
36016
36078
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
36017
36079
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
36018
36080
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
36019
36081
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
36020
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
36082
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
36021
36083
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
36022
36084
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
36023
36085
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
36024
36086
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
36025
36087
  } else throw new TypeError("The following must be of type Collection | URL.");
36026
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
36088
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
36027
36089
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
36028
36090
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
36029
36091
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
36030
36092
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
36031
36093
  } else throw new TypeError("The followers must be of type Collection | URL.");
36032
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
36094
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
36033
36095
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
36034
36096
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
36035
36097
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
36036
36098
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
36037
36099
  } else throw new TypeError("The liked must be of type Collection | URL.");
36038
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
36100
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
36039
36101
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
36040
36102
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
36041
36103
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
36042
36104
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
36043
36105
  } else throw new TypeError("The featured must be of type Collection | URL.");
36044
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
36106
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
36045
36107
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
36046
36108
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
36047
36109
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
36048
36110
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
36049
36111
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
36050
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
36112
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
36051
36113
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
36052
36114
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
36053
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
36115
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
36054
36116
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
36055
36117
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
36056
36118
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
36057
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
36119
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
36058
36120
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
36059
36121
  else throw new TypeError("The endpoints must be of type Endpoints.");
36060
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
36122
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
36061
36123
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
36062
36124
  else throw new TypeError("The discoverable must be of type boolean.");
36063
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
36125
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
36064
36126
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
36065
36127
  else throw new TypeError("The suspended must be of type boolean.");
36066
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
36128
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
36067
36129
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
36068
36130
  else throw new TypeError("The memorial must be of type boolean.");
36069
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
36131
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
36070
36132
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
36071
36133
  else throw new TypeError("The indexable must be of type boolean.");
36072
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
36134
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
36073
36135
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
36074
36136
  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) {
36075
36137
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
36076
36138
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
36077
36139
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
36078
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
36140
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
36079
36141
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
36080
36142
  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) {
36081
36143
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -36084,12 +36146,12 @@ var Organization = class Organization extends Object$1 {
36084
36146
  if ("aliases" in values && values.aliases != null) {
36085
36147
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
36086
36148
  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)) {
36087
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
36149
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
36088
36150
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
36089
36151
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
36090
36152
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
36091
36153
  }
36092
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
36154
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
36093
36155
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
36094
36156
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
36095
36157
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -36098,15 +36160,15 @@ var Organization = class Organization extends Object$1 {
36098
36160
  if ("services" in values && values.services != null) {
36099
36161
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
36100
36162
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
36101
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
36163
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
36102
36164
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
36103
36165
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
36104
36166
  } else throw new TypeError("The services must be an array of type DidService | URL.");
36105
36167
  }
36106
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
36168
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
36107
36169
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
36108
36170
  else throw new TypeError("The followedMessage must be of type string.");
36109
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
36171
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
36110
36172
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
36111
36173
  else throw new TypeError("The cat must be of type boolean.");
36112
36174
  return clone;
@@ -39435,7 +39497,8 @@ var Page = class Page extends Document {
39435
39497
  * Clones this instance, optionally updating it with the given values.
39436
39498
  * @param values The values to update the clone with.
39437
39499
  * @param options The options to use for cloning.
39438
- * @returns The cloned instance.
39500
+ * @returns The cloned instance with its own property arrays. Nested objects
39501
+ * and URLs are shared with this instance.
39439
39502
  */
39440
39503
  clone(values = {}, options = {}) {
39441
39504
  if (this._warning != null) {
@@ -39634,7 +39697,7 @@ var Person = class Person extends Object$1 {
39634
39697
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
39635
39698
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
39636
39699
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
39637
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
39700
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
39638
39701
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
39639
39702
  }
39640
39703
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -39644,7 +39707,7 @@ var Person = class Person extends Object$1 {
39644
39707
  if ("publicKeys" in values && values.publicKeys != null) {
39645
39708
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
39646
39709
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
39647
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
39710
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
39648
39711
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
39649
39712
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
39650
39713
  }
@@ -39655,7 +39718,7 @@ var Person = class Person extends Object$1 {
39655
39718
  if ("assertionMethods" in values && values.assertionMethods != null) {
39656
39719
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
39657
39720
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
39658
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
39721
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
39659
39722
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
39660
39723
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
39661
39724
  }
@@ -39690,7 +39753,7 @@ var Person = class Person extends Object$1 {
39690
39753
  this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
39691
39754
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
39692
39755
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
39693
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
39756
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
39694
39757
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
39695
39758
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
39696
39759
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -39714,7 +39777,7 @@ var Person = class Person extends Object$1 {
39714
39777
  if ("aliases" in values && values.aliases != null) {
39715
39778
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
39716
39779
  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)) {
39717
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
39780
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
39718
39781
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
39719
39782
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
39720
39783
  }
@@ -39725,7 +39788,7 @@ var Person = class Person extends Object$1 {
39725
39788
  if ("services" in values && values.services != null) {
39726
39789
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
39727
39790
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
39728
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
39791
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
39729
39792
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
39730
39793
  } else throw new TypeError("The services must be an array of type DidService | URL.");
39731
39794
  }
@@ -39738,7 +39801,8 @@ var Person = class Person extends Object$1 {
39738
39801
  * Clones this instance, optionally updating it with the given values.
39739
39802
  * @param values The values to update the clone with.
39740
39803
  * @param options The options to use for cloning.
39741
- * @returns The cloned instance.
39804
+ * @returns The cloned instance with its own property arrays. Nested objects
39805
+ * and URLs are shared with this instance.
39742
39806
  */
39743
39807
  clone(values = {}, options = {}) {
39744
39808
  if (this._warning != null) {
@@ -39749,15 +39813,15 @@ var Person = class Person extends Object$1 {
39749
39813
  };
39750
39814
  }
39751
39815
  const clone = super.clone(values, options);
39752
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
39816
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
39753
39817
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
39754
39818
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
39755
39819
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
39756
39820
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
39757
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
39821
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
39758
39822
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
39759
39823
  }
39760
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
39824
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
39761
39825
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
39762
39826
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
39763
39827
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -39766,12 +39830,12 @@ var Person = class Person extends Object$1 {
39766
39830
  if ("publicKeys" in values && values.publicKeys != null) {
39767
39831
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
39768
39832
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
39769
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
39833
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
39770
39834
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
39771
39835
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
39772
39836
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
39773
39837
  }
39774
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
39838
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
39775
39839
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
39776
39840
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
39777
39841
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -39780,85 +39844,85 @@ var Person = class Person extends Object$1 {
39780
39844
  if ("assertionMethods" in values && values.assertionMethods != null) {
39781
39845
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
39782
39846
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
39783
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
39847
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
39784
39848
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
39785
39849
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
39786
39850
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
39787
39851
  }
39788
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
39852
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
39789
39853
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
39790
39854
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
39791
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
39855
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
39792
39856
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
39793
39857
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
39794
39858
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
39795
39859
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
39796
39860
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
39797
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
39861
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
39798
39862
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
39799
39863
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
39800
39864
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
39801
39865
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
39802
39866
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
39803
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
39867
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
39804
39868
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
39805
39869
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
39806
39870
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
39807
39871
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
39808
39872
  } else throw new TypeError("The following must be of type Collection | URL.");
39809
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
39873
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
39810
39874
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
39811
39875
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
39812
39876
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
39813
39877
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
39814
39878
  } else throw new TypeError("The followers must be of type Collection | URL.");
39815
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
39879
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
39816
39880
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
39817
39881
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
39818
39882
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
39819
39883
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
39820
39884
  } else throw new TypeError("The liked must be of type Collection | URL.");
39821
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
39885
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
39822
39886
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
39823
39887
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
39824
39888
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
39825
39889
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
39826
39890
  } else throw new TypeError("The featured must be of type Collection | URL.");
39827
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
39891
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
39828
39892
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
39829
39893
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
39830
39894
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
39831
39895
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
39832
39896
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
39833
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
39897
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
39834
39898
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
39835
39899
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
39836
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
39900
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
39837
39901
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
39838
39902
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
39839
39903
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
39840
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
39904
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
39841
39905
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
39842
39906
  else throw new TypeError("The endpoints must be of type Endpoints.");
39843
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
39907
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
39844
39908
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
39845
39909
  else throw new TypeError("The discoverable must be of type boolean.");
39846
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
39910
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
39847
39911
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
39848
39912
  else throw new TypeError("The suspended must be of type boolean.");
39849
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
39913
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
39850
39914
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
39851
39915
  else throw new TypeError("The memorial must be of type boolean.");
39852
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
39916
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
39853
39917
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
39854
39918
  else throw new TypeError("The indexable must be of type boolean.");
39855
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
39919
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
39856
39920
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
39857
39921
  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) {
39858
39922
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
39859
39923
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
39860
39924
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
39861
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
39925
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
39862
39926
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
39863
39927
  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) {
39864
39928
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -39867,12 +39931,12 @@ var Person = class Person extends Object$1 {
39867
39931
  if ("aliases" in values && values.aliases != null) {
39868
39932
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
39869
39933
  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)) {
39870
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
39934
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
39871
39935
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
39872
39936
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
39873
39937
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
39874
39938
  }
39875
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
39939
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
39876
39940
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
39877
39941
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
39878
39942
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -39881,15 +39945,15 @@ var Person = class Person extends Object$1 {
39881
39945
  if ("services" in values && values.services != null) {
39882
39946
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
39883
39947
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
39884
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
39948
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
39885
39949
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
39886
39950
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
39887
39951
  } else throw new TypeError("The services must be an array of type DidService | URL.");
39888
39952
  }
39889
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
39953
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
39890
39954
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
39891
39955
  else throw new TypeError("The followedMessage must be of type string.");
39892
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
39956
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
39893
39957
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
39894
39958
  else throw new TypeError("The cat must be of type boolean.");
39895
39959
  return clone;
@@ -43238,7 +43302,8 @@ var Place = class Place extends Object$1 {
43238
43302
  * Clones this instance, optionally updating it with the given values.
43239
43303
  * @param values The values to update the clone with.
43240
43304
  * @param options The options to use for cloning.
43241
- * @returns The cloned instance.
43305
+ * @returns The cloned instance with its own property arrays. Nested objects
43306
+ * and URLs are shared with this instance.
43242
43307
  */
43243
43308
  clone(values = {}, options = {}) {
43244
43309
  if (this._warning != null) {
@@ -43249,22 +43314,22 @@ var Place = class Place extends Object$1 {
43249
43314
  };
43250
43315
  }
43251
43316
  const clone = super.clone(values, options);
43252
- clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy;
43317
+ clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = this.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy.slice();
43253
43318
  if ("accuracy" in values && values.accuracy != null) if (typeof values.accuracy === "number" && !Number.isNaN(values.accuracy)) clone.#_3UCsHnBHvDAXJnBuzw3zw1VVs3Ne_accuracy = [values.accuracy];
43254
43319
  else throw new TypeError("The accuracy must be of type number.");
43255
- clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude;
43320
+ clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = this.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude.slice();
43256
43321
  if ("altitude" in values && values.altitude != null) if (typeof values.altitude === "number" && !Number.isNaN(values.altitude)) clone.#_3Q6KDcFQUJRRaBux1BL2yp5QWiBi_altitude = [values.altitude];
43257
43322
  else throw new TypeError("The altitude must be of type number.");
43258
- clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude;
43323
+ clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = this.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude.slice();
43259
43324
  if ("latitude" in values && values.latitude != null) if (typeof values.latitude === "number" && !Number.isNaN(values.latitude)) clone.#_3g85RoKRnaNjP7DFyLSvsWDg7HGM_latitude = [values.latitude];
43260
43325
  else throw new TypeError("The latitude must be of type number.");
43261
- clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude;
43326
+ clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = this.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude.slice();
43262
43327
  if ("longitude" in values && values.longitude != null) if (typeof values.longitude === "number" && !Number.isNaN(values.longitude)) clone.#_B2GEYdS9yBAF3ho1pm1rcRg7cSf_longitude = [values.longitude];
43263
43328
  else throw new TypeError("The longitude must be of type number.");
43264
- clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius;
43329
+ clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = this.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius.slice();
43265
43330
  if ("radius" in values && values.radius != null) if (typeof values.radius === "number" && !Number.isNaN(values.radius)) clone.#_3ga86BKHUtRkGx5PHBjRiUXXzwnw_radius = [values.radius];
43266
43331
  else throw new TypeError("The radius must be of type number.");
43267
- clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units;
43332
+ clone.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units = this.#_oKrwxU4V8wiKhMW1QEYQibcJh8c_units.slice();
43268
43333
  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];
43269
43334
  else throw new TypeError("The units must be of type \"cm\" | \"feet\" | \"inches\" | \"km\" | \"m\" | \"miles\" | URL.");
43270
43335
  return clone;
@@ -43679,7 +43744,8 @@ var Profile = class Profile extends Object$1 {
43679
43744
  * Clones this instance, optionally updating it with the given values.
43680
43745
  * @param values The values to update the clone with.
43681
43746
  * @param options The options to use for cloning.
43682
- * @returns The cloned instance.
43747
+ * @returns The cloned instance with its own property arrays. Nested objects
43748
+ * and URLs are shared with this instance.
43683
43749
  */
43684
43750
  clone(values = {}, options = {}) {
43685
43751
  if (this._warning != null) {
@@ -43690,7 +43756,7 @@ var Profile = class Profile extends Object$1 {
43690
43756
  };
43691
43757
  }
43692
43758
  const clone = super.clone(values, options);
43693
- clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes;
43759
+ clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = this.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes.slice();
43694
43760
  clone.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = new Set(this.#_trust_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes);
43695
43761
  if ("describes" in values && values.describes != null) if (values.describes instanceof Object$1 || values.describes instanceof URL) {
43696
43762
  clone.#_3CLQ1PLSXrhSQbTGGHuxNyaEFKM1_describes = [values.describes];
@@ -44042,11 +44108,11 @@ var Question = class Question extends IntransitiveActivity {
44042
44108
  constructor(values, options = {}) {
44043
44109
  super(values, options);
44044
44110
  if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
44045
- this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
44111
+ this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
44046
44112
  for (let i = 0; i < values.exclusiveOptions.length; i++) this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
44047
44113
  } else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
44048
44114
  if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
44049
- this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
44115
+ this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
44050
44116
  for (let i = 0; i < values.inclusiveOptions.length; i++) this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
44051
44117
  } else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
44052
44118
  if ("closed" in values && values.closed != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.closed) || typeof values.closed === "boolean") this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
@@ -44068,7 +44134,8 @@ var Question = class Question extends IntransitiveActivity {
44068
44134
  * Clones this instance, optionally updating it with the given values.
44069
44135
  * @param values The values to update the clone with.
44070
44136
  * @param options The options to use for cloning.
44071
- * @returns The cloned instance.
44137
+ * @returns The cloned instance with its own property arrays. Nested objects
44138
+ * and URLs are shared with this instance.
44072
44139
  */
44073
44140
  clone(values = {}, options = {}) {
44074
44141
  if (this._warning != null) {
@@ -44079,36 +44146,36 @@ var Question = class Question extends IntransitiveActivity {
44079
44146
  };
44080
44147
  }
44081
44148
  const clone = super.clone(values, options);
44082
- clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf;
44149
+ clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = this.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.slice();
44083
44150
  clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = new Set(this.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf);
44084
44151
  if ("exclusiveOptions" in values && values.exclusiveOptions != null) if (Array.isArray(values.exclusiveOptions) && values.exclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
44085
- clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions;
44152
+ clone.#_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = values.exclusiveOptions.slice();
44086
44153
  clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf = /* @__PURE__ */ new Set();
44087
44154
  for (let i = 0; i < values.exclusiveOptions.length; i++) clone.#_trust_2N5scKaVEcdYHFmfKYYacAwUhUgQ_oneOf.add(i);
44088
44155
  } else throw new TypeError("The exclusiveOptions must be an array of type Object | URL.");
44089
- clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf;
44156
+ clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = this.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.slice();
44090
44157
  clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = new Set(this.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf);
44091
44158
  if ("inclusiveOptions" in values && values.inclusiveOptions != null) if (Array.isArray(values.inclusiveOptions) && values.inclusiveOptions.every((v) => v instanceof Object$1 || v instanceof URL)) {
44092
- clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions;
44159
+ clone.#_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = values.inclusiveOptions.slice();
44093
44160
  clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf = /* @__PURE__ */ new Set();
44094
44161
  for (let i = 0; i < values.inclusiveOptions.length; i++) clone.#_trust_2mV6isMTPRKbWdLCjcpiEysq5dAY_anyOf.add(i);
44095
44162
  } else throw new TypeError("The inclusiveOptions must be an array of type Object | URL.");
44096
- clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed;
44163
+ clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = this.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed.slice();
44097
44164
  if ("closed" in values && values.closed != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.closed) || typeof values.closed === "boolean") clone.#_3KronwL8DiiKBRcJFKQPiEHm8xb6_closed = [values.closed];
44098
44165
  else throw new TypeError("The closed must be of type Temporal.Instant | boolean.");
44099
- clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount;
44166
+ clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = this.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount.slice();
44100
44167
  if ("voters" in values && values.voters != null) if (typeof values.voters === "number" && Number.isInteger(values.voters) && values.voters >= 0) clone.#_3H4RdST7dxfmghccvE3rKD3KgcxG_votersCount = [values.voters];
44101
44168
  else throw new TypeError("The voters must be of type number.");
44102
- clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote;
44169
+ clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = this.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote.slice();
44103
44170
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set(this.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote);
44104
44171
  if ("quote" in values && values.quote != null) if (values.quote instanceof Object$1 || values.quote instanceof URL) {
44105
44172
  clone.#_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = [values.quote];
44106
44173
  clone.#_trust_3obhVLFML2Fh2Qsbg3BM2dec8S9e_quote = new Set([0]);
44107
44174
  } else throw new TypeError("The quote must be of type Object | URL.");
44108
- clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl;
44175
+ clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = this.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl.slice();
44109
44176
  if ("quoteUrl" in values && values.quoteUrl != null) if (values.quoteUrl instanceof URL) clone.#_K1zrMQkQjmciFAmGdGLfaDbG925_quoteUrl = [values.quoteUrl];
44110
44177
  else throw new TypeError("The quoteUrl must be of type URL.");
44111
- clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization;
44178
+ clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = this.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization.slice();
44112
44179
  clone.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = new Set(this.#_trust_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization);
44113
44180
  if ("quoteAuthorization" in values && values.quoteAuthorization != null) if (values.quoteAuthorization instanceof QuoteAuthorization || values.quoteAuthorization instanceof URL) {
44114
44181
  clone.#_ZKAEiJeuEvjeYkC4pG58D5vAJ4m_quoteAuthorization = [values.quoteAuthorization];
@@ -45067,7 +45134,8 @@ var Read = class Read extends Activity {
45067
45134
  * Clones this instance, optionally updating it with the given values.
45068
45135
  * @param values The values to update the clone with.
45069
45136
  * @param options The options to use for cloning.
45070
- * @returns The cloned instance.
45137
+ * @returns The cloned instance with its own property arrays. Nested objects
45138
+ * and URLs are shared with this instance.
45071
45139
  */
45072
45140
  clone(values = {}, options = {}) {
45073
45141
  if (this._warning != null) {
@@ -45219,7 +45287,8 @@ var Reject = class Reject extends Activity {
45219
45287
  * Clones this instance, optionally updating it with the given values.
45220
45288
  * @param values The values to update the clone with.
45221
45289
  * @param options The options to use for cloning.
45222
- * @returns The cloned instance.
45290
+ * @returns The cloned instance with its own property arrays. Nested objects
45291
+ * and URLs are shared with this instance.
45223
45292
  */
45224
45293
  clone(values = {}, options = {}) {
45225
45294
  if (this._warning != null) {
@@ -45389,7 +45458,7 @@ var Relationship = class Relationship extends Object$1 {
45389
45458
  if ("objects" in values && values.objects != null) {
45390
45459
  if ("object" in values && values.object != null) throw new TypeError("Cannot initialize both object and objects at the same time.");
45391
45460
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
45392
- this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
45461
+ this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
45393
45462
  for (let i = 0; i < values.objects.length; i++) this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
45394
45463
  } else throw new TypeError("The objects must be an array of type Object | URL.");
45395
45464
  }
@@ -45400,7 +45469,7 @@ var Relationship = class Relationship extends Object$1 {
45400
45469
  if ("relationships" in values && values.relationships != null) {
45401
45470
  if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot initialize both relationship and relationships at the same time.");
45402
45471
  if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
45403
- this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
45472
+ this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
45404
45473
  for (let i = 0; i < values.relationships.length; i++) this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
45405
45474
  } else throw new TypeError("The relationships must be an array of type Object | URL.");
45406
45475
  }
@@ -45409,7 +45478,8 @@ var Relationship = class Relationship extends Object$1 {
45409
45478
  * Clones this instance, optionally updating it with the given values.
45410
45479
  * @param values The values to update the clone with.
45411
45480
  * @param options The options to use for cloning.
45412
- * @returns The cloned instance.
45481
+ * @returns The cloned instance with its own property arrays. Nested objects
45482
+ * and URLs are shared with this instance.
45413
45483
  */
45414
45484
  clone(values = {}, options = {}) {
45415
45485
  if (this._warning != null) {
@@ -45420,13 +45490,13 @@ var Relationship = class Relationship extends Object$1 {
45420
45490
  };
45421
45491
  }
45422
45492
  const clone = super.clone(values, options);
45423
- clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject;
45493
+ clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = this.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject.slice();
45424
45494
  clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set(this.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject);
45425
45495
  if ("subject" in values && values.subject != null) if (values.subject instanceof Object$1 || values.subject instanceof URL) {
45426
45496
  clone.#_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = [values.subject];
45427
45497
  clone.#_trust_2Zqdmi46ZnDQsECS6mzwhrv3rUKq_subject = new Set([0]);
45428
45498
  } else throw new TypeError("The subject must be of type Object | URL.");
45429
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object;
45499
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = this.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.slice();
45430
45500
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = new Set(this.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object);
45431
45501
  if ("object" in values && values.object != null) if (values.object instanceof Object$1 || values.object instanceof URL) {
45432
45502
  clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = [values.object];
@@ -45435,12 +45505,12 @@ var Relationship = class Relationship extends Object$1 {
45435
45505
  if ("objects" in values && values.objects != null) {
45436
45506
  if ("object" in values && values.object != null) throw new TypeError("Cannot update both object and objects at the same time.");
45437
45507
  if (Array.isArray(values.objects) && values.objects.every((v) => v instanceof Object$1 || v instanceof URL)) {
45438
- clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects;
45508
+ clone.#_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = values.objects.slice();
45439
45509
  clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object = /* @__PURE__ */ new Set();
45440
45510
  for (let i = 0; i < values.objects.length; i++) clone.#_trust_2MH19yxjn1wnHsNfa5n4JBhJzxyc_object.add(i);
45441
45511
  } else throw new TypeError("The objects must be an array of type Object | URL.");
45442
45512
  }
45443
- clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship;
45513
+ clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = this.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.slice();
45444
45514
  clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = new Set(this.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship);
45445
45515
  if ("relationship" in values && values.relationship != null) if (values.relationship instanceof Object$1 || values.relationship instanceof URL) {
45446
45516
  clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = [values.relationship];
@@ -45449,7 +45519,7 @@ var Relationship = class Relationship extends Object$1 {
45449
45519
  if ("relationships" in values && values.relationships != null) {
45450
45520
  if ("relationship" in values && values.relationship != null) throw new TypeError("Cannot update both relationship and relationships at the same time.");
45451
45521
  if (Array.isArray(values.relationships) && values.relationships.every((v) => v instanceof Object$1 || v instanceof URL)) {
45452
- clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships;
45522
+ clone.#_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = values.relationships.slice();
45453
45523
  clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship = /* @__PURE__ */ new Set();
45454
45524
  for (let i = 0; i < values.relationships.length; i++) clone.#_trust_4Lzz89F9qipAQSGkWyX9DGWiUojG_relationship.add(i);
45455
45525
  } else throw new TypeError("The relationships must be an array of type Object | URL.");
@@ -46253,7 +46323,8 @@ var Remove = class Remove extends Activity {
46253
46323
  * Clones this instance, optionally updating it with the given values.
46254
46324
  * @param values The values to update the clone with.
46255
46325
  * @param options The options to use for cloning.
46256
- * @returns The cloned instance.
46326
+ * @returns The cloned instance with its own property arrays. Nested objects
46327
+ * and URLs are shared with this instance.
46257
46328
  */
46258
46329
  clone(values = {}, options = {}) {
46259
46330
  if (this._warning != null) {
@@ -46438,7 +46509,7 @@ var Service = class Service extends Object$1 {
46438
46509
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
46439
46510
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
46440
46511
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot initialize both preferredUsername and preferredUsernames at the same time.");
46441
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
46512
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
46442
46513
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
46443
46514
  }
46444
46515
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
@@ -46448,7 +46519,7 @@ var Service = class Service extends Object$1 {
46448
46519
  if ("publicKeys" in values && values.publicKeys != null) {
46449
46520
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot initialize both publicKey and publicKeys at the same time.");
46450
46521
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
46451
- this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
46522
+ this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
46452
46523
  for (let i = 0; i < values.publicKeys.length; i++) this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
46453
46524
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
46454
46525
  }
@@ -46459,7 +46530,7 @@ var Service = class Service extends Object$1 {
46459
46530
  if ("assertionMethods" in values && values.assertionMethods != null) {
46460
46531
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot initialize both assertionMethod and assertionMethods at the same time.");
46461
46532
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
46462
- this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
46533
+ this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
46463
46534
  for (let i = 0; i < values.assertionMethods.length; i++) this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
46464
46535
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
46465
46536
  }
@@ -46494,7 +46565,7 @@ var Service = class Service extends Object$1 {
46494
46565
  this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.add(0);
46495
46566
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
46496
46567
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
46497
- this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
46568
+ this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
46498
46569
  for (let i = 0; i < values.streams.length; i++) this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
46499
46570
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
46500
46571
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
@@ -46518,7 +46589,7 @@ var Service = class Service extends Object$1 {
46518
46589
  if ("aliases" in values && values.aliases != null) {
46519
46590
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot initialize both alias and aliases at the same time.");
46520
46591
  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)) {
46521
- this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
46592
+ this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
46522
46593
  for (let i = 0; i < values.aliases.length; i++) this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
46523
46594
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
46524
46595
  }
@@ -46529,7 +46600,7 @@ var Service = class Service extends Object$1 {
46529
46600
  if ("services" in values && values.services != null) {
46530
46601
  if ("service" in values && values.service != null) throw new TypeError("Cannot initialize both service and services at the same time.");
46531
46602
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
46532
- this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
46603
+ this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
46533
46604
  for (let i = 0; i < values.services.length; i++) this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
46534
46605
  } else throw new TypeError("The services must be an array of type DidService | URL.");
46535
46606
  }
@@ -46542,7 +46613,8 @@ var Service = class Service extends Object$1 {
46542
46613
  * Clones this instance, optionally updating it with the given values.
46543
46614
  * @param values The values to update the clone with.
46544
46615
  * @param options The options to use for cloning.
46545
- * @returns The cloned instance.
46616
+ * @returns The cloned instance with its own property arrays. Nested objects
46617
+ * and URLs are shared with this instance.
46546
46618
  */
46547
46619
  clone(values = {}, options = {}) {
46548
46620
  if (this._warning != null) {
@@ -46553,15 +46625,15 @@ var Service = class Service extends Object$1 {
46553
46625
  };
46554
46626
  }
46555
46627
  const clone = super.clone(values, options);
46556
- clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername;
46628
+ clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = this.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername.slice();
46557
46629
  if ("preferredUsername" in values && values.preferredUsername != null) if (typeof values.preferredUsername === "string" || values.preferredUsername instanceof _fedify_vocab_runtime.LanguageString) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = [values.preferredUsername];
46558
46630
  else throw new TypeError("The preferredUsername must be of type string | LanguageString.");
46559
46631
  if ("preferredUsernames" in values && values.preferredUsernames != null) {
46560
46632
  if ("preferredUsername" in values && values.preferredUsername != null) throw new TypeError("Cannot update both preferredUsername and preferredUsernames at the same time.");
46561
- if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames;
46633
+ if (Array.isArray(values.preferredUsernames) && values.preferredUsernames.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_3isuDgRAKSntq9XdbjiNxjwyPZAf_preferredUsername = values.preferredUsernames.slice();
46562
46634
  else throw new TypeError("The preferredUsernames must be an array of type string | LanguageString.");
46563
46635
  }
46564
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey;
46636
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = this.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey.slice();
46565
46637
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = new Set(this.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey);
46566
46638
  if ("publicKey" in values && values.publicKey != null) if (values.publicKey instanceof CryptographicKey || values.publicKey instanceof URL) {
46567
46639
  clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = [values.publicKey];
@@ -46570,12 +46642,12 @@ var Service = class Service extends Object$1 {
46570
46642
  if ("publicKeys" in values && values.publicKeys != null) {
46571
46643
  if ("publicKey" in values && values.publicKey != null) throw new TypeError("Cannot update both publicKey and publicKeys at the same time.");
46572
46644
  if (Array.isArray(values.publicKeys) && values.publicKeys.every((v) => v instanceof CryptographicKey || v instanceof URL)) {
46573
- clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys;
46645
+ clone.#_axq166E2eZADq34V4MYUc8KMZdC_publicKey = values.publicKeys.slice();
46574
46646
  clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey = /* @__PURE__ */ new Set();
46575
46647
  for (let i = 0; i < values.publicKeys.length; i++) clone.#_trust_axq166E2eZADq34V4MYUc8KMZdC_publicKey.add(i);
46576
46648
  } else throw new TypeError("The publicKeys must be an array of type CryptographicKey | URL.");
46577
46649
  }
46578
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod;
46650
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = this.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.slice();
46579
46651
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = new Set(this.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod);
46580
46652
  if ("assertionMethod" in values && values.assertionMethod != null) if (values.assertionMethod instanceof Multikey || values.assertionMethod instanceof URL) {
46581
46653
  clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = [values.assertionMethod];
@@ -46584,85 +46656,85 @@ var Service = class Service extends Object$1 {
46584
46656
  if ("assertionMethods" in values && values.assertionMethods != null) {
46585
46657
  if ("assertionMethod" in values && values.assertionMethod != null) throw new TypeError("Cannot update both assertionMethod and assertionMethods at the same time.");
46586
46658
  if (Array.isArray(values.assertionMethods) && values.assertionMethods.every((v) => v instanceof Multikey || v instanceof URL)) {
46587
- clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods;
46659
+ clone.#_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = values.assertionMethods.slice();
46588
46660
  clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod = /* @__PURE__ */ new Set();
46589
46661
  for (let i = 0; i < values.assertionMethods.length; i++) clone.#_trust_4EHQFWZSz1k1d4LmPrQiMba2GbP3_assertionMethod.add(i);
46590
46662
  } else throw new TypeError("The assertionMethods must be an array of type Multikey | URL.");
46591
46663
  }
46592
- clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers;
46664
+ clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = this.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers.slice();
46593
46665
  if ("manuallyApprovesFollowers" in values && values.manuallyApprovesFollowers != null) if (typeof values.manuallyApprovesFollowers === "boolean") clone.#_36QNc9MxfkKf6h8sEUQSHnV9NZA_manuallyApprovesFollowers = [values.manuallyApprovesFollowers];
46594
46666
  else throw new TypeError("The manuallyApprovesFollowers must be of type boolean.");
46595
- clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox;
46667
+ clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = this.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox.slice();
46596
46668
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set(this.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox);
46597
46669
  if ("inbox" in values && values.inbox != null) if (values.inbox instanceof OrderedCollection || values.inbox instanceof OrderedCollectionPage || values.inbox instanceof URL) {
46598
46670
  clone.#_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = [values.inbox];
46599
46671
  clone.#_trust_3ghX3VfZXXbLvhCRH7QJqpzLrXjB_inbox = new Set([0]);
46600
46672
  } else throw new TypeError("The inbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
46601
- clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox;
46673
+ clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = this.#_41QwhqJouoLg3h8dRPKat21brynC_outbox.slice();
46602
46674
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set(this.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox);
46603
46675
  if ("outbox" in values && values.outbox != null) if (values.outbox instanceof OrderedCollection || values.outbox instanceof OrderedCollectionPage || values.outbox instanceof URL) {
46604
46676
  clone.#_41QwhqJouoLg3h8dRPKat21brynC_outbox = [values.outbox];
46605
46677
  clone.#_trust_41QwhqJouoLg3h8dRPKat21brynC_outbox = new Set([0]);
46606
46678
  } else throw new TypeError("The outbox must be of type OrderedCollection | OrderedCollectionPage | URL.");
46607
- clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following;
46679
+ clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = this.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following.slice();
46608
46680
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set(this.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following);
46609
46681
  if ("following" in values && values.following != null) if (values.following instanceof Collection || values.following instanceof URL) {
46610
46682
  clone.#_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = [values.following];
46611
46683
  clone.#_trust_3yAv8jymNfNuJUDuBzJ1NQhdbAee_following = new Set([0]);
46612
46684
  } else throw new TypeError("The following must be of type Collection | URL.");
46613
- clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers;
46685
+ clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = this.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers.slice();
46614
46686
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set(this.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers);
46615
46687
  if ("followers" in values && values.followers != null) if (values.followers instanceof Collection || values.followers instanceof URL) {
46616
46688
  clone.#_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = [values.followers];
46617
46689
  clone.#_trust_BBCTgfphhsFzpVfKTykGSpBNwoA_followers = new Set([0]);
46618
46690
  } else throw new TypeError("The followers must be of type Collection | URL.");
46619
- clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked;
46691
+ clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = this.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked.slice();
46620
46692
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set(this.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked);
46621
46693
  if ("liked" in values && values.liked != null) if (values.liked instanceof Collection || values.liked instanceof URL) {
46622
46694
  clone.#_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = [values.liked];
46623
46695
  clone.#_trust_3bgkPwJanyTCoVFM9ovRcus8tKkU_liked = new Set([0]);
46624
46696
  } else throw new TypeError("The liked must be of type Collection | URL.");
46625
- clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured;
46697
+ clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = this.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured.slice();
46626
46698
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set(this.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured);
46627
46699
  if ("featured" in values && values.featured != null) if (values.featured instanceof Collection || values.featured instanceof URL) {
46628
46700
  clone.#_4N1vBJzXDf8NbBumeECQMFvKetja_featured = [values.featured];
46629
46701
  clone.#_trust_4N1vBJzXDf8NbBumeECQMFvKetja_featured = new Set([0]);
46630
46702
  } else throw new TypeError("The featured must be of type Collection | URL.");
46631
- clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags;
46703
+ clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = this.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags.slice();
46632
46704
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set(this.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags);
46633
46705
  if ("featuredTags" in values && values.featuredTags != null) if (values.featuredTags instanceof Collection || values.featuredTags instanceof URL) {
46634
46706
  clone.#_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = [values.featuredTags];
46635
46707
  clone.#_trust_2MxnRRLq9iPzx5CFq2NPrXdUDCac_featuredTags = new Set([0]);
46636
46708
  } else throw new TypeError("The featuredTags must be of type Collection | URL.");
46637
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams;
46709
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = this.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.slice();
46638
46710
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = new Set(this.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams);
46639
46711
  if ("streams" in values && values.streams != null) if (Array.isArray(values.streams) && values.streams.every((v) => v instanceof Collection || v instanceof URL)) {
46640
- clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams;
46712
+ clone.#_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = values.streams.slice();
46641
46713
  clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams = /* @__PURE__ */ new Set();
46642
46714
  for (let i = 0; i < values.streams.length; i++) clone.#_trust_3sG2Hdwn9qzKGu9mpYkqakAMUkH9_streams.add(i);
46643
46715
  } else throw new TypeError("The streams must be an array of type Collection | URL.");
46644
- clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints;
46716
+ clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = this.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints.slice();
46645
46717
  if ("endpoints" in values && values.endpoints != null) if (values.endpoints instanceof Endpoints) clone.#_sEoQwUbfk4hEfugzNQ2ZiDcLMkG_endpoints = [values.endpoints];
46646
46718
  else throw new TypeError("The endpoints must be of type Endpoints.");
46647
- clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable;
46719
+ clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = this.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable.slice();
46648
46720
  if ("discoverable" in values && values.discoverable != null) if (typeof values.discoverable === "boolean") clone.#_gAJzg1QDc4rcefFsUzGSYmyXvNH_discoverable = [values.discoverable];
46649
46721
  else throw new TypeError("The discoverable must be of type boolean.");
46650
- clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended;
46722
+ clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = this.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended.slice();
46651
46723
  if ("suspended" in values && values.suspended != null) if (typeof values.suspended === "boolean") clone.#_2kGKkJtoFWg8c18PaVSqj9NKP4t7_suspended = [values.suspended];
46652
46724
  else throw new TypeError("The suspended must be of type boolean.");
46653
- clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial;
46725
+ clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = this.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial.slice();
46654
46726
  if ("memorial" in values && values.memorial != null) if (typeof values.memorial === "boolean") clone.#_79S8K4f5J9MWUgCxziRyUe6PTHZ_memorial = [values.memorial];
46655
46727
  else throw new TypeError("The memorial must be of type boolean.");
46656
- clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable;
46728
+ clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = this.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable.slice();
46657
46729
  if ("indexable" in values && values.indexable != null) if (typeof values.indexable === "boolean") clone.#_2diCorzqPGQQqftp6e4SrCEwEnyk_indexable = [values.indexable];
46658
46730
  else throw new TypeError("The indexable must be of type boolean.");
46659
- clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo;
46731
+ clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = this.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo.slice();
46660
46732
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set(this.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo);
46661
46733
  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) {
46662
46734
  clone.#_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = [values.successor];
46663
46735
  clone.#_trust_2ZNWDhuNdSXBwEmrB5kwffdKGzok_movedTo = new Set([0]);
46664
46736
  } else throw new TypeError("The successor must be of type Application | Group | Organization | Person | Service | URL.");
46665
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs;
46737
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = this.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.slice();
46666
46738
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = new Set(this.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs);
46667
46739
  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) {
46668
46740
  clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = [values.alias];
@@ -46671,12 +46743,12 @@ var Service = class Service extends Object$1 {
46671
46743
  if ("aliases" in values && values.aliases != null) {
46672
46744
  if ("alias" in values && values.alias != null) throw new TypeError("Cannot update both alias and aliases at the same time.");
46673
46745
  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)) {
46674
- clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases;
46746
+ clone.#_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = values.aliases.slice();
46675
46747
  clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs = /* @__PURE__ */ new Set();
46676
46748
  for (let i = 0; i < values.aliases.length; i++) clone.#_trust_3NV7TGNhuABbryNjNi4wib4DgNpY_alsoKnownAs.add(i);
46677
46749
  } else throw new TypeError("The aliases must be an array of type Application | Group | Organization | Person | Service | URL.");
46678
46750
  }
46679
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service;
46751
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = this.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.slice();
46680
46752
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = new Set(this.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service);
46681
46753
  if ("service" in values && values.service != null) if (values.service instanceof DidService || values.service instanceof URL) {
46682
46754
  clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = [values.service];
@@ -46685,15 +46757,15 @@ var Service = class Service extends Object$1 {
46685
46757
  if ("services" in values && values.services != null) {
46686
46758
  if ("service" in values && values.service != null) throw new TypeError("Cannot update both service and services at the same time.");
46687
46759
  if (Array.isArray(values.services) && values.services.every((v) => v instanceof DidService || v instanceof URL)) {
46688
- clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services;
46760
+ clone.#_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = values.services.slice();
46689
46761
  clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service = /* @__PURE__ */ new Set();
46690
46762
  for (let i = 0; i < values.services.length; i++) clone.#_trust_4Q6NrKH6bazBGtxwG8vyG77ir7Tg_service.add(i);
46691
46763
  } else throw new TypeError("The services must be an array of type DidService | URL.");
46692
46764
  }
46693
- clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage;
46765
+ clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = this.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage.slice();
46694
46766
  if ("followedMessage" in values && values.followedMessage != null) if (typeof values.followedMessage === "string") clone.#_QuxorEK1txp7jGjq8BRQfTPvUwp__misskey_followedMessage = [values.followedMessage];
46695
46767
  else throw new TypeError("The followedMessage must be of type string.");
46696
- clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat;
46768
+ clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = this.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat.slice();
46697
46769
  if ("cat" in values && values.cat != null) if (typeof values.cat === "boolean") clone.#_2xEU4QtkC53RAun67T81Egqt9vmL_isCat = [values.cat];
46698
46770
  else throw new TypeError("The cat must be of type boolean.");
46699
46771
  return clone;
@@ -50070,7 +50142,7 @@ var Source = class {
50070
50142
  else throw new TypeError("The content must be of type string | LanguageString.");
50071
50143
  if ("contents" in values && values.contents != null) {
50072
50144
  if ("content" in values && values.content != null) throw new TypeError("Cannot initialize both content and contents at the same time.");
50073
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
50145
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
50074
50146
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
50075
50147
  }
50076
50148
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
@@ -50080,7 +50152,8 @@ var Source = class {
50080
50152
  * Clones this instance, optionally updating it with the given values.
50081
50153
  * @param values The values to update the clone with.
50082
50154
  * @param options The options to use for cloning.
50083
- * @returns The cloned instance.
50155
+ * @returns The cloned instance with its own property arrays. Nested objects
50156
+ * and URLs are shared with this instance.
50084
50157
  */
50085
50158
  clone(values = {}, options = {}) {
50086
50159
  if (this._warning != null) {
@@ -50091,15 +50164,15 @@ var Source = class {
50091
50164
  };
50092
50165
  }
50093
50166
  const clone = new this.constructor({ id: values.id ?? this.id }, options);
50094
- clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content;
50167
+ clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = this.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content.slice();
50095
50168
  if ("content" in values && values.content != null) if (typeof values.content === "string" || values.content instanceof _fedify_vocab_runtime.LanguageString) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = [values.content];
50096
50169
  else throw new TypeError("The content must be of type string | LanguageString.");
50097
50170
  if ("contents" in values && values.contents != null) {
50098
50171
  if ("content" in values && values.content != null) throw new TypeError("Cannot update both content and contents at the same time.");
50099
- if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents;
50172
+ if (Array.isArray(values.contents) && values.contents.every((v) => typeof v === "string" || v instanceof _fedify_vocab_runtime.LanguageString)) clone.#_4HuuRSdSrXq8Jj2J9gcdYfoCzeuz_content = values.contents.slice();
50100
50173
  else throw new TypeError("The contents must be an array of type string | LanguageString.");
50101
50174
  }
50102
- clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType;
50175
+ clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = this.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType.slice();
50103
50176
  if ("mediaType" in values && values.mediaType != null) if (typeof values.mediaType === "string") clone.#_3BLrzmscsjHCw8TF5BHRW9WkPnX8_mediaType = [values.mediaType];
50104
50177
  else throw new TypeError("The mediaType must be of type string.");
50105
50178
  return clone;
@@ -50325,7 +50398,8 @@ var TentativeAccept = class TentativeAccept extends Accept {
50325
50398
  * Clones this instance, optionally updating it with the given values.
50326
50399
  * @param values The values to update the clone with.
50327
50400
  * @param options The options to use for cloning.
50328
- * @returns The cloned instance.
50401
+ * @returns The cloned instance with its own property arrays. Nested objects
50402
+ * and URLs are shared with this instance.
50329
50403
  */
50330
50404
  clone(values = {}, options = {}) {
50331
50405
  if (this._warning != null) {
@@ -50477,7 +50551,8 @@ var TentativeReject = class TentativeReject extends Reject {
50477
50551
  * Clones this instance, optionally updating it with the given values.
50478
50552
  * @param values The values to update the clone with.
50479
50553
  * @param options The options to use for cloning.
50480
- * @returns The cloned instance.
50554
+ * @returns The cloned instance with its own property arrays. Nested objects
50555
+ * and URLs are shared with this instance.
50481
50556
  */
50482
50557
  clone(values = {}, options = {}) {
50483
50558
  if (this._warning != null) {
@@ -50631,7 +50706,7 @@ var Tombstone = class Tombstone extends Object$1 {
50631
50706
  else throw new TypeError("The formerType must be of type $EntityType.");
50632
50707
  if ("formerTypes" in values && values.formerTypes != null) {
50633
50708
  if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot initialize both formerType and formerTypes at the same time.");
50634
- if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
50709
+ if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
50635
50710
  else throw new TypeError("The formerTypes must be an array of type $EntityType.");
50636
50711
  }
50637
50712
  if ("deleted" in values && values.deleted != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.deleted)) this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
@@ -50641,7 +50716,8 @@ var Tombstone = class Tombstone extends Object$1 {
50641
50716
  * Clones this instance, optionally updating it with the given values.
50642
50717
  * @param values The values to update the clone with.
50643
50718
  * @param options The options to use for cloning.
50644
- * @returns The cloned instance.
50719
+ * @returns The cloned instance with its own property arrays. Nested objects
50720
+ * and URLs are shared with this instance.
50645
50721
  */
50646
50722
  clone(values = {}, options = {}) {
50647
50723
  if (this._warning != null) {
@@ -50652,15 +50728,15 @@ var Tombstone = class Tombstone extends Object$1 {
50652
50728
  };
50653
50729
  }
50654
50730
  const clone = super.clone(values, options);
50655
- clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType;
50731
+ clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = this.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType.slice();
50656
50732
  if ("formerType" in values && values.formerType != null) if (isEntityType(values.formerType)) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = [values.formerType];
50657
50733
  else throw new TypeError("The formerType must be of type $EntityType.");
50658
50734
  if ("formerTypes" in values && values.formerTypes != null) {
50659
50735
  if ("formerType" in values && values.formerType != null) throw new TypeError("Cannot update both formerType and formerTypes at the same time.");
50660
- if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes;
50736
+ if (Array.isArray(values.formerTypes) && values.formerTypes.every((v) => isEntityType(v))) clone.#_Pn8kdUztYSt4nyoAkVsMcQaLo9U_formerType = values.formerTypes.slice();
50661
50737
  else throw new TypeError("The formerTypes must be an array of type $EntityType.");
50662
50738
  }
50663
- clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted;
50739
+ clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = this.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted.slice();
50664
50740
  if ("deleted" in values && values.deleted != null) if ((0, _fedify_vocab_runtime_temporal.isTemporalInstant)(values.deleted)) clone.#_8g8g4LiVMhFTXskuDEqx4ascxUr_deleted = [values.deleted];
50665
50741
  else throw new TypeError("The deleted must be of type Temporal.Instant.");
50666
50742
  return clone;
@@ -50915,7 +50991,8 @@ var Travel = class Travel extends IntransitiveActivity {
50915
50991
  * Clones this instance, optionally updating it with the given values.
50916
50992
  * @param values The values to update the clone with.
50917
50993
  * @param options The options to use for cloning.
50918
- * @returns The cloned instance.
50994
+ * @returns The cloned instance with its own property arrays. Nested objects
50995
+ * and URLs are shared with this instance.
50919
50996
  */
50920
50997
  clone(values = {}, options = {}) {
50921
50998
  if (this._warning != null) {
@@ -51072,7 +51149,8 @@ var Undo = class Undo extends Activity {
51072
51149
  * Clones this instance, optionally updating it with the given values.
51073
51150
  * @param values The values to update the clone with.
51074
51151
  * @param options The options to use for cloning.
51075
- * @returns The cloned instance.
51152
+ * @returns The cloned instance with its own property arrays. Nested objects
51153
+ * and URLs are shared with this instance.
51076
51154
  */
51077
51155
  clone(values = {}, options = {}) {
51078
51156
  if (this._warning != null) {
@@ -51236,7 +51314,8 @@ var Update = class Update extends Activity {
51236
51314
  * Clones this instance, optionally updating it with the given values.
51237
51315
  * @param values The values to update the clone with.
51238
51316
  * @param options The options to use for cloning.
51239
- * @returns The cloned instance.
51317
+ * @returns The cloned instance with its own property arrays. Nested objects
51318
+ * and URLs are shared with this instance.
51240
51319
  */
51241
51320
  clone(values = {}, options = {}) {
51242
51321
  if (this._warning != null) {
@@ -51446,7 +51525,8 @@ var Video = class Video extends Document {
51446
51525
  * Clones this instance, optionally updating it with the given values.
51447
51526
  * @param values The values to update the clone with.
51448
51527
  * @param options The options to use for cloning.
51449
- * @returns The cloned instance.
51528
+ * @returns The cloned instance with its own property arrays. Nested objects
51529
+ * and URLs are shared with this instance.
51450
51530
  */
51451
51531
  clone(values = {}, options = {}) {
51452
51532
  if (this._warning != null) {
@@ -51611,7 +51691,8 @@ var View = class View extends Activity {
51611
51691
  * Clones this instance, optionally updating it with the given values.
51612
51692
  * @param values The values to update the clone with.
51613
51693
  * @param options The options to use for cloning.
51614
- * @returns The cloned instance.
51694
+ * @returns The cloned instance with its own property arrays. Nested objects
51695
+ * and URLs are shared with this instance.
51615
51696
  */
51616
51697
  clone(values = {}, options = {}) {
51617
51698
  if (this._warning != null) {