@fedify/vocab-tools 2.4.0-dev.2259 → 2.4.0-dev.2260

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.
@@ -41,6 +41,7 @@ import {
41
41
  createSnapshotContextLoader,
42
42
  dereferencePortableIri,
43
43
  getPortableResponseClaim,
44
+ getReferrerGateways,
44
45
  isPortableIri,
45
46
  isPortableMode,
46
47
  isUnsecuredPortableObject,
@@ -2373,7 +2374,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2373
2374
  span.end();
2374
2375
  }
2375
2376
  };
2376
- if (isPortableIri(url)) return await dereferencePortable(url);
2377
+ if (isPortableIri(url)) {
2378
+ // A reference in a portable actor's own document, e.g., its outbox,
2379
+ // has no location hints, so the actor's gateways are used instead:
2380
+ return await dereferencePortable(
2381
+ url,
2382
+ options.gateways == null
2383
+ ? { inferredGateways: getReferrerGateways(this, url) }
2384
+ : {},
2385
+ );
2386
+ }
2377
2387
  const lookupUrl = formatIri(url);
2378
2388
  const portableMode = isPortableMode(this, options);
2379
2389
  if (portableMode) {
@@ -2819,7 +2829,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
2819
2829
  span.end();
2820
2830
  }
2821
2831
  };
2822
- if (isPortableIri(url)) return await dereferencePortable(url);
2832
+ if (isPortableIri(url)) {
2833
+ // A reference in a portable actor's own document, e.g., its outbox,
2834
+ // has no location hints, so the actor's gateways are used instead:
2835
+ return await dereferencePortable(
2836
+ url,
2837
+ options.gateways == null
2838
+ ? { inferredGateways: getReferrerGateways(this, url) }
2839
+ : {},
2840
+ );
2841
+ }
2823
2842
  const lookupUrl = formatIri(url);
2824
2843
  const portableMode = isPortableMode(this, options);
2825
2844
  if (portableMode) {
@@ -3453,7 +3472,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
3453
3472
  span.end();
3454
3473
  }
3455
3474
  };
3456
- if (isPortableIri(url)) return await dereferencePortable(url);
3475
+ if (isPortableIri(url)) {
3476
+ // A reference in a portable actor's own document, e.g., its outbox,
3477
+ // has no location hints, so the actor's gateways are used instead:
3478
+ return await dereferencePortable(
3479
+ url,
3480
+ options.gateways == null
3481
+ ? { inferredGateways: getReferrerGateways(this, url) }
3482
+ : {},
3483
+ );
3484
+ }
3457
3485
  const lookupUrl = formatIri(url);
3458
3486
  const portableMode = isPortableMode(this, options);
3459
3487
  if (portableMode) {
@@ -4054,7 +4082,16 @@ get contents(): ((string | LanguageString))[] {
4054
4082
  span.end();
4055
4083
  }
4056
4084
  };
4057
- if (isPortableIri(url)) return await dereferencePortable(url);
4085
+ if (isPortableIri(url)) {
4086
+ // A reference in a portable actor's own document, e.g., its outbox,
4087
+ // has no location hints, so the actor's gateways are used instead:
4088
+ return await dereferencePortable(
4089
+ url,
4090
+ options.gateways == null
4091
+ ? { inferredGateways: getReferrerGateways(this, url) }
4092
+ : {},
4093
+ );
4094
+ }
4058
4095
  const lookupUrl = formatIri(url);
4059
4096
  const portableMode = isPortableMode(this, options);
4060
4097
  if (portableMode) {
@@ -4531,7 +4568,16 @@ get names(): ((string | LanguageString))[] {
4531
4568
  span.end();
4532
4569
  }
4533
4570
  };
4534
- if (isPortableIri(url)) return await dereferencePortable(url);
4571
+ if (isPortableIri(url)) {
4572
+ // A reference in a portable actor's own document, e.g., its outbox,
4573
+ // has no location hints, so the actor's gateways are used instead:
4574
+ return await dereferencePortable(
4575
+ url,
4576
+ options.gateways == null
4577
+ ? { inferredGateways: getReferrerGateways(this, url) }
4578
+ : {},
4579
+ );
4580
+ }
4535
4581
  const lookupUrl = formatIri(url);
4536
4582
  const portableMode = isPortableMode(this, options);
4537
4583
  if (portableMode) {
@@ -4960,7 +5006,16 @@ get names(): ((string | LanguageString))[] {
4960
5006
  span.end();
4961
5007
  }
4962
5008
  };
4963
- if (isPortableIri(url)) return await dereferencePortable(url);
5009
+ if (isPortableIri(url)) {
5010
+ // A reference in a portable actor's own document, e.g., its outbox,
5011
+ // has no location hints, so the actor's gateways are used instead:
5012
+ return await dereferencePortable(
5013
+ url,
5014
+ options.gateways == null
5015
+ ? { inferredGateways: getReferrerGateways(this, url) }
5016
+ : {},
5017
+ );
5018
+ }
4964
5019
  const lookupUrl = formatIri(url);
4965
5020
  const portableMode = isPortableMode(this, options);
4966
5021
  if (portableMode) {
@@ -5556,7 +5611,16 @@ get names(): ((string | LanguageString))[] {
5556
5611
  span.end();
5557
5612
  }
5558
5613
  };
5559
- if (isPortableIri(url)) return await dereferencePortable(url);
5614
+ if (isPortableIri(url)) {
5615
+ // A reference in a portable actor's own document, e.g., its outbox,
5616
+ // has no location hints, so the actor's gateways are used instead:
5617
+ return await dereferencePortable(
5618
+ url,
5619
+ options.gateways == null
5620
+ ? { inferredGateways: getReferrerGateways(this, url) }
5621
+ : {},
5622
+ );
5623
+ }
5560
5624
  const lookupUrl = formatIri(url);
5561
5625
  const portableMode = isPortableMode(this, options);
5562
5626
  if (portableMode) {
@@ -6152,7 +6216,16 @@ get names(): ((string | LanguageString))[] {
6152
6216
  span.end();
6153
6217
  }
6154
6218
  };
6155
- if (isPortableIri(url)) return await dereferencePortable(url);
6219
+ if (isPortableIri(url)) {
6220
+ // A reference in a portable actor's own document, e.g., its outbox,
6221
+ // has no location hints, so the actor's gateways are used instead:
6222
+ return await dereferencePortable(
6223
+ url,
6224
+ options.gateways == null
6225
+ ? { inferredGateways: getReferrerGateways(this, url) }
6226
+ : {},
6227
+ );
6228
+ }
6156
6229
  const lookupUrl = formatIri(url);
6157
6230
  const portableMode = isPortableMode(this, options);
6158
6231
  if (portableMode) {
@@ -6739,7 +6812,16 @@ get names(): ((string | LanguageString))[] {
6739
6812
  span.end();
6740
6813
  }
6741
6814
  };
6742
- if (isPortableIri(url)) return await dereferencePortable(url);
6815
+ if (isPortableIri(url)) {
6816
+ // A reference in a portable actor's own document, e.g., its outbox,
6817
+ // has no location hints, so the actor's gateways are used instead:
6818
+ return await dereferencePortable(
6819
+ url,
6820
+ options.gateways == null
6821
+ ? { inferredGateways: getReferrerGateways(this, url) }
6822
+ : {},
6823
+ );
6824
+ }
6743
6825
  const lookupUrl = formatIri(url);
6744
6826
  const portableMode = isPortableMode(this, options);
6745
6827
  if (portableMode) {
@@ -7326,7 +7408,16 @@ get names(): ((string | LanguageString))[] {
7326
7408
  span.end();
7327
7409
  }
7328
7410
  };
7329
- if (isPortableIri(url)) return await dereferencePortable(url);
7411
+ if (isPortableIri(url)) {
7412
+ // A reference in a portable actor's own document, e.g., its outbox,
7413
+ // has no location hints, so the actor's gateways are used instead:
7414
+ return await dereferencePortable(
7415
+ url,
7416
+ options.gateways == null
7417
+ ? { inferredGateways: getReferrerGateways(this, url) }
7418
+ : {},
7419
+ );
7420
+ }
7330
7421
  const lookupUrl = formatIri(url);
7331
7422
  const portableMode = isPortableMode(this, options);
7332
7423
  if (portableMode) {
@@ -7924,7 +8015,16 @@ get names(): ((string | LanguageString))[] {
7924
8015
  span.end();
7925
8016
  }
7926
8017
  };
7927
- if (isPortableIri(url)) return await dereferencePortable(url);
8018
+ if (isPortableIri(url)) {
8019
+ // A reference in a portable actor's own document, e.g., its outbox,
8020
+ // has no location hints, so the actor's gateways are used instead:
8021
+ return await dereferencePortable(
8022
+ url,
8023
+ options.gateways == null
8024
+ ? { inferredGateways: getReferrerGateways(this, url) }
8025
+ : {},
8026
+ );
8027
+ }
7928
8028
  const lookupUrl = formatIri(url);
7929
8029
  const portableMode = isPortableMode(this, options);
7930
8030
  if (portableMode) {
@@ -8334,7 +8434,16 @@ get names(): ((string | LanguageString))[] {
8334
8434
  span.end();
8335
8435
  }
8336
8436
  };
8337
- if (isPortableIri(url)) return await dereferencePortable(url);
8437
+ if (isPortableIri(url)) {
8438
+ // A reference in a portable actor's own document, e.g., its outbox,
8439
+ // has no location hints, so the actor's gateways are used instead:
8440
+ return await dereferencePortable(
8441
+ url,
8442
+ options.gateways == null
8443
+ ? { inferredGateways: getReferrerGateways(this, url) }
8444
+ : {},
8445
+ );
8446
+ }
8338
8447
  const lookupUrl = formatIri(url);
8339
8448
  const portableMode = isPortableMode(this, options);
8340
8449
  if (portableMode) {
@@ -8750,7 +8859,16 @@ get names(): ((string | LanguageString))[] {
8750
8859
  span.end();
8751
8860
  }
8752
8861
  };
8753
- if (isPortableIri(url)) return await dereferencePortable(url);
8862
+ if (isPortableIri(url)) {
8863
+ // A reference in a portable actor's own document, e.g., its outbox,
8864
+ // has no location hints, so the actor's gateways are used instead:
8865
+ return await dereferencePortable(
8866
+ url,
8867
+ options.gateways == null
8868
+ ? { inferredGateways: getReferrerGateways(this, url) }
8869
+ : {},
8870
+ );
8871
+ }
8754
8872
  const lookupUrl = formatIri(url);
8755
8873
  const portableMode = isPortableMode(this, options);
8756
8874
  if (portableMode) {
@@ -9166,7 +9284,16 @@ get names(): ((string | LanguageString))[] {
9166
9284
  span.end();
9167
9285
  }
9168
9286
  };
9169
- if (isPortableIri(url)) return await dereferencePortable(url);
9287
+ if (isPortableIri(url)) {
9288
+ // A reference in a portable actor's own document, e.g., its outbox,
9289
+ // has no location hints, so the actor's gateways are used instead:
9290
+ return await dereferencePortable(
9291
+ url,
9292
+ options.gateways == null
9293
+ ? { inferredGateways: getReferrerGateways(this, url) }
9294
+ : {},
9295
+ );
9296
+ }
9170
9297
  const lookupUrl = formatIri(url);
9171
9298
  const portableMode = isPortableMode(this, options);
9172
9299
  if (portableMode) {
@@ -9616,7 +9743,16 @@ get summaries(): ((string | LanguageString))[] {
9616
9743
  span.end();
9617
9744
  }
9618
9745
  };
9619
- if (isPortableIri(url)) return await dereferencePortable(url);
9746
+ if (isPortableIri(url)) {
9747
+ // A reference in a portable actor's own document, e.g., its outbox,
9748
+ // has no location hints, so the actor's gateways are used instead:
9749
+ return await dereferencePortable(
9750
+ url,
9751
+ options.gateways == null
9752
+ ? { inferredGateways: getReferrerGateways(this, url) }
9753
+ : {},
9754
+ );
9755
+ }
9620
9756
  const lookupUrl = formatIri(url);
9621
9757
  const portableMode = isPortableMode(this, options);
9622
9758
  if (portableMode) {
@@ -10082,7 +10218,16 @@ get urls(): ((URL | Link))[] {
10082
10218
  span.end();
10083
10219
  }
10084
10220
  };
10085
- if (isPortableIri(url)) return await dereferencePortable(url);
10221
+ if (isPortableIri(url)) {
10222
+ // A reference in a portable actor's own document, e.g., its outbox,
10223
+ // has no location hints, so the actor's gateways are used instead:
10224
+ return await dereferencePortable(
10225
+ url,
10226
+ options.gateways == null
10227
+ ? { inferredGateways: getReferrerGateways(this, url) }
10228
+ : {},
10229
+ );
10230
+ }
10086
10231
  const lookupUrl = formatIri(url);
10087
10232
  const portableMode = isPortableMode(this, options);
10088
10233
  if (portableMode) {
@@ -10654,7 +10799,16 @@ get urls(): ((URL | Link))[] {
10654
10799
  span.end();
10655
10800
  }
10656
10801
  };
10657
- if (isPortableIri(url)) return await dereferencePortable(url);
10802
+ if (isPortableIri(url)) {
10803
+ // A reference in a portable actor's own document, e.g., its outbox,
10804
+ // has no location hints, so the actor's gateways are used instead:
10805
+ return await dereferencePortable(
10806
+ url,
10807
+ options.gateways == null
10808
+ ? { inferredGateways: getReferrerGateways(this, url) }
10809
+ : {},
10810
+ );
10811
+ }
10658
10812
  const lookupUrl = formatIri(url);
10659
10813
  const portableMode = isPortableMode(this, options);
10660
10814
  if (portableMode) {
@@ -11226,7 +11380,16 @@ get urls(): ((URL | Link))[] {
11226
11380
  span.end();
11227
11381
  }
11228
11382
  };
11229
- if (isPortableIri(url)) return await dereferencePortable(url);
11383
+ if (isPortableIri(url)) {
11384
+ // A reference in a portable actor's own document, e.g., its outbox,
11385
+ // has no location hints, so the actor's gateways are used instead:
11386
+ return await dereferencePortable(
11387
+ url,
11388
+ options.gateways == null
11389
+ ? { inferredGateways: getReferrerGateways(this, url) }
11390
+ : {},
11391
+ );
11392
+ }
11230
11393
  const lookupUrl = formatIri(url);
11231
11394
  const portableMode = isPortableMode(this, options);
11232
11395
  if (portableMode) {
@@ -11798,7 +11961,16 @@ get urls(): ((URL | Link))[] {
11798
11961
  span.end();
11799
11962
  }
11800
11963
  };
11801
- if (isPortableIri(url)) return await dereferencePortable(url);
11964
+ if (isPortableIri(url)) {
11965
+ // A reference in a portable actor's own document, e.g., its outbox,
11966
+ // has no location hints, so the actor's gateways are used instead:
11967
+ return await dereferencePortable(
11968
+ url,
11969
+ options.gateways == null
11970
+ ? { inferredGateways: getReferrerGateways(this, url) }
11971
+ : {},
11972
+ );
11973
+ }
11802
11974
  const lookupUrl = formatIri(url);
11803
11975
  const portableMode = isPortableMode(this, options);
11804
11976
  if (portableMode) {
@@ -12434,7 +12606,16 @@ get urls(): ((URL | Link))[] {
12434
12606
  span.end();
12435
12607
  }
12436
12608
  };
12437
- if (isPortableIri(url)) return await dereferencePortable(url);
12609
+ if (isPortableIri(url)) {
12610
+ // A reference in a portable actor's own document, e.g., its outbox,
12611
+ // has no location hints, so the actor's gateways are used instead:
12612
+ return await dereferencePortable(
12613
+ url,
12614
+ options.gateways == null
12615
+ ? { inferredGateways: getReferrerGateways(this, url) }
12616
+ : {},
12617
+ );
12618
+ }
12438
12619
  const lookupUrl = formatIri(url);
12439
12620
  const portableMode = isPortableMode(this, options);
12440
12621
  if (portableMode) {
@@ -13043,7 +13224,16 @@ get urls(): ((URL | Link))[] {
13043
13224
  span.end();
13044
13225
  }
13045
13226
  };
13046
- if (isPortableIri(url)) return await dereferencePortable(url);
13227
+ if (isPortableIri(url)) {
13228
+ // A reference in a portable actor's own document, e.g., its outbox,
13229
+ // has no location hints, so the actor's gateways are used instead:
13230
+ return await dereferencePortable(
13231
+ url,
13232
+ options.gateways == null
13233
+ ? { inferredGateways: getReferrerGateways(this, url) }
13234
+ : {},
13235
+ );
13236
+ }
13047
13237
  const lookupUrl = formatIri(url);
13048
13238
  const portableMode = isPortableMode(this, options);
13049
13239
  if (portableMode) {
@@ -13453,7 +13643,16 @@ get urls(): ((URL | Link))[] {
13453
13643
  span.end();
13454
13644
  }
13455
13645
  };
13456
- if (isPortableIri(url)) return await dereferencePortable(url);
13646
+ if (isPortableIri(url)) {
13647
+ // A reference in a portable actor's own document, e.g., its outbox,
13648
+ // has no location hints, so the actor's gateways are used instead:
13649
+ return await dereferencePortable(
13650
+ url,
13651
+ options.gateways == null
13652
+ ? { inferredGateways: getReferrerGateways(this, url) }
13653
+ : {},
13654
+ );
13655
+ }
13457
13656
  const lookupUrl = formatIri(url);
13458
13657
  const portableMode = isPortableMode(this, options);
13459
13658
  if (portableMode) {
@@ -13863,7 +14062,16 @@ get urls(): ((URL | Link))[] {
13863
14062
  span.end();
13864
14063
  }
13865
14064
  };
13866
- if (isPortableIri(url)) return await dereferencePortable(url);
14065
+ if (isPortableIri(url)) {
14066
+ // A reference in a portable actor's own document, e.g., its outbox,
14067
+ // has no location hints, so the actor's gateways are used instead:
14068
+ return await dereferencePortable(
14069
+ url,
14070
+ options.gateways == null
14071
+ ? { inferredGateways: getReferrerGateways(this, url) }
14072
+ : {},
14073
+ );
14074
+ }
13867
14075
  const lookupUrl = formatIri(url);
13868
14076
  const portableMode = isPortableMode(this, options);
13869
14077
  if (portableMode) {
@@ -19478,7 +19686,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
19478
19686
  span.end();
19479
19687
  }
19480
19688
  };
19481
- if (isPortableIri(url)) return await dereferencePortable(url);
19689
+ if (isPortableIri(url)) {
19690
+ // A reference in a portable actor's own document, e.g., its outbox,
19691
+ // has no location hints, so the actor's gateways are used instead:
19692
+ return await dereferencePortable(
19693
+ url,
19694
+ options.gateways == null
19695
+ ? { inferredGateways: getReferrerGateways(this, url) }
19696
+ : {},
19697
+ );
19698
+ }
19482
19699
  const lookupUrl = formatIri(url);
19483
19700
  const portableMode = isPortableMode(this, options);
19484
19701
  if (portableMode) {
@@ -19912,7 +20129,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
19912
20129
  span.end();
19913
20130
  }
19914
20131
  };
19915
- if (isPortableIri(url)) return await dereferencePortable(url);
20132
+ if (isPortableIri(url)) {
20133
+ // A reference in a portable actor's own document, e.g., its outbox,
20134
+ // has no location hints, so the actor's gateways are used instead:
20135
+ return await dereferencePortable(
20136
+ url,
20137
+ options.gateways == null
20138
+ ? { inferredGateways: getReferrerGateways(this, url) }
20139
+ : {},
20140
+ );
20141
+ }
19916
20142
  const lookupUrl = formatIri(url);
19917
20143
  const portableMode = isPortableMode(this, options);
19918
20144
  if (portableMode) {
@@ -21574,7 +21800,16 @@ instruments?: (Object | URL)[];}
21574
21800
  span.end();
21575
21801
  }
21576
21802
  };
21577
- if (isPortableIri(url)) return await dereferencePortable(url);
21803
+ if (isPortableIri(url)) {
21804
+ // A reference in a portable actor's own document, e.g., its outbox,
21805
+ // has no location hints, so the actor's gateways are used instead:
21806
+ return await dereferencePortable(
21807
+ url,
21808
+ options.gateways == null
21809
+ ? { inferredGateways: getReferrerGateways(this, url) }
21810
+ : {},
21811
+ );
21812
+ }
21578
21813
  const lookupUrl = formatIri(url);
21579
21814
  const portableMode = isPortableMode(this, options);
21580
21815
  if (portableMode) {
@@ -22208,7 +22443,16 @@ instruments?: (Object | URL)[];}
22208
22443
  span.end();
22209
22444
  }
22210
22445
  };
22211
- if (isPortableIri(url)) return await dereferencePortable(url);
22446
+ if (isPortableIri(url)) {
22447
+ // A reference in a portable actor's own document, e.g., its outbox,
22448
+ // has no location hints, so the actor's gateways are used instead:
22449
+ return await dereferencePortable(
22450
+ url,
22451
+ options.gateways == null
22452
+ ? { inferredGateways: getReferrerGateways(this, url) }
22453
+ : {},
22454
+ );
22455
+ }
22212
22456
  const lookupUrl = formatIri(url);
22213
22457
  const portableMode = isPortableMode(this, options);
22214
22458
  if (portableMode) {
@@ -22782,7 +23026,16 @@ instruments?: (Object | URL)[];}
22782
23026
  span.end();
22783
23027
  }
22784
23028
  };
22785
- if (isPortableIri(url)) return await dereferencePortable(url);
23029
+ if (isPortableIri(url)) {
23030
+ // A reference in a portable actor's own document, e.g., its outbox,
23031
+ // has no location hints, so the actor's gateways are used instead:
23032
+ return await dereferencePortable(
23033
+ url,
23034
+ options.gateways == null
23035
+ ? { inferredGateways: getReferrerGateways(this, url) }
23036
+ : {},
23037
+ );
23038
+ }
22786
23039
  const lookupUrl = formatIri(url);
22787
23040
  const portableMode = isPortableMode(this, options);
22788
23041
  if (portableMode) {
@@ -23362,7 +23615,16 @@ instruments?: (Object | URL)[];}
23362
23615
  span.end();
23363
23616
  }
23364
23617
  };
23365
- if (isPortableIri(url)) return await dereferencePortable(url);
23618
+ if (isPortableIri(url)) {
23619
+ // A reference in a portable actor's own document, e.g., its outbox,
23620
+ // has no location hints, so the actor's gateways are used instead:
23621
+ return await dereferencePortable(
23622
+ url,
23623
+ options.gateways == null
23624
+ ? { inferredGateways: getReferrerGateways(this, url) }
23625
+ : {},
23626
+ );
23627
+ }
23366
23628
  const lookupUrl = formatIri(url);
23367
23629
  const portableMode = isPortableMode(this, options);
23368
23630
  if (portableMode) {
@@ -23936,7 +24198,16 @@ instruments?: (Object | URL)[];}
23936
24198
  span.end();
23937
24199
  }
23938
24200
  };
23939
- if (isPortableIri(url)) return await dereferencePortable(url);
24201
+ if (isPortableIri(url)) {
24202
+ // A reference in a portable actor's own document, e.g., its outbox,
24203
+ // has no location hints, so the actor's gateways are used instead:
24204
+ return await dereferencePortable(
24205
+ url,
24206
+ options.gateways == null
24207
+ ? { inferredGateways: getReferrerGateways(this, url) }
24208
+ : {},
24209
+ );
24210
+ }
23940
24211
  const lookupUrl = formatIri(url);
23941
24212
  const portableMode = isPortableMode(this, options);
23942
24213
  if (portableMode) {
@@ -24512,7 +24783,16 @@ instruments?: (Object | URL)[];}
24512
24783
  span.end();
24513
24784
  }
24514
24785
  };
24515
- if (isPortableIri(url)) return await dereferencePortable(url);
24786
+ if (isPortableIri(url)) {
24787
+ // A reference in a portable actor's own document, e.g., its outbox,
24788
+ // has no location hints, so the actor's gateways are used instead:
24789
+ return await dereferencePortable(
24790
+ url,
24791
+ options.gateways == null
24792
+ ? { inferredGateways: getReferrerGateways(this, url) }
24793
+ : {},
24794
+ );
24795
+ }
24516
24796
  const lookupUrl = formatIri(url);
24517
24797
  const portableMode = isPortableMode(this, options);
24518
24798
  if (portableMode) {
@@ -28106,7 +28386,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
28106
28386
  span.end();
28107
28387
  }
28108
28388
  };
28109
- if (isPortableIri(url)) return await dereferencePortable(url);
28389
+ if (isPortableIri(url)) {
28390
+ // A reference in a portable actor's own document, e.g., its outbox,
28391
+ // has no location hints, so the actor's gateways are used instead:
28392
+ return await dereferencePortable(
28393
+ url,
28394
+ options.gateways == null
28395
+ ? { inferredGateways: getReferrerGateways(this, url) }
28396
+ : {},
28397
+ );
28398
+ }
28110
28399
  const lookupUrl = formatIri(url);
28111
28400
  const portableMode = isPortableMode(this, options);
28112
28401
  if (portableMode) {
@@ -28516,7 +28805,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
28516
28805
  span.end();
28517
28806
  }
28518
28807
  };
28519
- if (isPortableIri(url)) return await dereferencePortable(url);
28808
+ if (isPortableIri(url)) {
28809
+ // A reference in a portable actor's own document, e.g., its outbox,
28810
+ // has no location hints, so the actor's gateways are used instead:
28811
+ return await dereferencePortable(
28812
+ url,
28813
+ options.gateways == null
28814
+ ? { inferredGateways: getReferrerGateways(this, url) }
28815
+ : {},
28816
+ );
28817
+ }
28520
28818
  const lookupUrl = formatIri(url);
28521
28819
  const portableMode = isPortableMode(this, options);
28522
28820
  if (portableMode) {
@@ -31913,7 +32211,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
31913
32211
  span.end();
31914
32212
  }
31915
32213
  };
31916
- if (isPortableIri(url)) return await dereferencePortable(url);
32214
+ if (isPortableIri(url)) {
32215
+ // A reference in a portable actor's own document, e.g., its outbox,
32216
+ // has no location hints, so the actor's gateways are used instead:
32217
+ return await dereferencePortable(
32218
+ url,
32219
+ options.gateways == null
32220
+ ? { inferredGateways: getReferrerGateways(this, url) }
32221
+ : {},
32222
+ );
32223
+ }
31917
32224
  const lookupUrl = formatIri(url);
31918
32225
  const portableMode = isPortableMode(this, options);
31919
32226
  if (portableMode) {
@@ -32323,7 +32630,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
32323
32630
  span.end();
32324
32631
  }
32325
32632
  };
32326
- if (isPortableIri(url)) return await dereferencePortable(url);
32633
+ if (isPortableIri(url)) {
32634
+ // A reference in a portable actor's own document, e.g., its outbox,
32635
+ // has no location hints, so the actor's gateways are used instead:
32636
+ return await dereferencePortable(
32637
+ url,
32638
+ options.gateways == null
32639
+ ? { inferredGateways: getReferrerGateways(this, url) }
32640
+ : {},
32641
+ );
32642
+ }
32327
32643
  const lookupUrl = formatIri(url);
32328
32644
  const portableMode = isPortableMode(this, options);
32329
32645
  if (portableMode) {
@@ -33843,7 +34159,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
33843
34159
  span.end();
33844
34160
  }
33845
34161
  };
33846
- if (isPortableIri(url)) return await dereferencePortable(url);
34162
+ if (isPortableIri(url)) {
34163
+ // A reference in a portable actor's own document, e.g., its outbox,
34164
+ // has no location hints, so the actor's gateways are used instead:
34165
+ return await dereferencePortable(
34166
+ url,
34167
+ options.gateways == null
34168
+ ? { inferredGateways: getReferrerGateways(this, url) }
34169
+ : {},
34170
+ );
34171
+ }
33847
34172
  const lookupUrl = formatIri(url);
33848
34173
  const portableMode = isPortableMode(this, options);
33849
34174
  if (portableMode) {
@@ -34253,7 +34578,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
34253
34578
  span.end();
34254
34579
  }
34255
34580
  };
34256
- if (isPortableIri(url)) return await dereferencePortable(url);
34581
+ if (isPortableIri(url)) {
34582
+ // A reference in a portable actor's own document, e.g., its outbox,
34583
+ // has no location hints, so the actor's gateways are used instead:
34584
+ return await dereferencePortable(
34585
+ url,
34586
+ options.gateways == null
34587
+ ? { inferredGateways: getReferrerGateways(this, url) }
34588
+ : {},
34589
+ );
34590
+ }
34257
34591
  const lookupUrl = formatIri(url);
34258
34592
  const portableMode = isPortableMode(this, options);
34259
34593
  if (portableMode) {
@@ -35773,7 +36107,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
35773
36107
  span.end();
35774
36108
  }
35775
36109
  };
35776
- if (isPortableIri(url)) return await dereferencePortable(url);
36110
+ if (isPortableIri(url)) {
36111
+ // A reference in a portable actor's own document, e.g., its outbox,
36112
+ // has no location hints, so the actor's gateways are used instead:
36113
+ return await dereferencePortable(
36114
+ url,
36115
+ options.gateways == null
36116
+ ? { inferredGateways: getReferrerGateways(this, url) }
36117
+ : {},
36118
+ );
36119
+ }
35777
36120
  const lookupUrl = formatIri(url);
35778
36121
  const portableMode = isPortableMode(this, options);
35779
36122
  if (portableMode) {
@@ -36182,7 +36525,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
36182
36525
  span.end();
36183
36526
  }
36184
36527
  };
36185
- if (isPortableIri(url)) return await dereferencePortable(url);
36528
+ if (isPortableIri(url)) {
36529
+ // A reference in a portable actor's own document, e.g., its outbox,
36530
+ // has no location hints, so the actor's gateways are used instead:
36531
+ return await dereferencePortable(
36532
+ url,
36533
+ options.gateways == null
36534
+ ? { inferredGateways: getReferrerGateways(this, url) }
36535
+ : {},
36536
+ );
36537
+ }
36186
36538
  const lookupUrl = formatIri(url);
36187
36539
  const portableMode = isPortableMode(this, options);
36188
36540
  if (portableMode) {
@@ -37985,7 +38337,16 @@ urls?: ((URL | Link))[];}
37985
38337
  span.end();
37986
38338
  }
37987
38339
  };
37988
- if (isPortableIri(url)) return await dereferencePortable(url);
38340
+ if (isPortableIri(url)) {
38341
+ // A reference in a portable actor's own document, e.g., its outbox,
38342
+ // has no location hints, so the actor's gateways are used instead:
38343
+ return await dereferencePortable(
38344
+ url,
38345
+ options.gateways == null
38346
+ ? { inferredGateways: getReferrerGateways(this, url) }
38347
+ : {},
38348
+ );
38349
+ }
37989
38350
  const lookupUrl = formatIri(url);
37990
38351
  const portableMode = isPortableMode(this, options);
37991
38352
  if (portableMode) {
@@ -39753,7 +40114,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
39753
40114
  span.end();
39754
40115
  }
39755
40116
  };
39756
- if (isPortableIri(url)) return await dereferencePortable(url);
40117
+ if (isPortableIri(url)) {
40118
+ // A reference in a portable actor's own document, e.g., its outbox,
40119
+ // has no location hints, so the actor's gateways are used instead:
40120
+ return await dereferencePortable(
40121
+ url,
40122
+ options.gateways == null
40123
+ ? { inferredGateways: getReferrerGateways(this, url) }
40124
+ : {},
40125
+ );
40126
+ }
39757
40127
  const lookupUrl = formatIri(url);
39758
40128
  const portableMode = isPortableMode(this, options);
39759
40129
  if (portableMode) {
@@ -40161,7 +40531,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
40161
40531
  span.end();
40162
40532
  }
40163
40533
  };
40164
- if (isPortableIri(url)) return await dereferencePortable(url);
40534
+ if (isPortableIri(url)) {
40535
+ // A reference in a portable actor's own document, e.g., its outbox,
40536
+ // has no location hints, so the actor's gateways are used instead:
40537
+ return await dereferencePortable(
40538
+ url,
40539
+ options.gateways == null
40540
+ ? { inferredGateways: getReferrerGateways(this, url) }
40541
+ : {},
40542
+ );
40543
+ }
40165
40544
  const lookupUrl = formatIri(url);
40166
40545
  const portableMode = isPortableMode(this, options);
40167
40546
  if (portableMode) {
@@ -42020,7 +42399,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42020
42399
  span.end();
42021
42400
  }
42022
42401
  };
42023
- if (isPortableIri(url)) return await dereferencePortable(url);
42402
+ if (isPortableIri(url)) {
42403
+ // A reference in a portable actor's own document, e.g., its outbox,
42404
+ // has no location hints, so the actor's gateways are used instead:
42405
+ return await dereferencePortable(
42406
+ url,
42407
+ options.gateways == null
42408
+ ? { inferredGateways: getReferrerGateways(this, url) }
42409
+ : {},
42410
+ );
42411
+ }
42024
42412
  const lookupUrl = formatIri(url);
42025
42413
  const portableMode = isPortableMode(this, options);
42026
42414
  if (portableMode) {
@@ -42430,7 +42818,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42430
42818
  span.end();
42431
42819
  }
42432
42820
  };
42433
- if (isPortableIri(url)) return await dereferencePortable(url);
42821
+ if (isPortableIri(url)) {
42822
+ // A reference in a portable actor's own document, e.g., its outbox,
42823
+ // has no location hints, so the actor's gateways are used instead:
42824
+ return await dereferencePortable(
42825
+ url,
42826
+ options.gateways == null
42827
+ ? { inferredGateways: getReferrerGateways(this, url) }
42828
+ : {},
42829
+ );
42830
+ }
42434
42831
  const lookupUrl = formatIri(url);
42435
42832
  const portableMode = isPortableMode(this, options);
42436
42833
  if (portableMode) {
@@ -42840,7 +43237,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
42840
43237
  span.end();
42841
43238
  }
42842
43239
  };
42843
- if (isPortableIri(url)) return await dereferencePortable(url);
43240
+ if (isPortableIri(url)) {
43241
+ // A reference in a portable actor's own document, e.g., its outbox,
43242
+ // has no location hints, so the actor's gateways are used instead:
43243
+ return await dereferencePortable(
43244
+ url,
43245
+ options.gateways == null
43246
+ ? { inferredGateways: getReferrerGateways(this, url) }
43247
+ : {},
43248
+ );
43249
+ }
42844
43250
  const lookupUrl = formatIri(url);
42845
43251
  const portableMode = isPortableMode(this, options);
42846
43252
  if (portableMode) {
@@ -43250,7 +43656,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
43250
43656
  span.end();
43251
43657
  }
43252
43658
  };
43253
- if (isPortableIri(url)) return await dereferencePortable(url);
43659
+ if (isPortableIri(url)) {
43660
+ // A reference in a portable actor's own document, e.g., its outbox,
43661
+ // has no location hints, so the actor's gateways are used instead:
43662
+ return await dereferencePortable(
43663
+ url,
43664
+ options.gateways == null
43665
+ ? { inferredGateways: getReferrerGateways(this, url) }
43666
+ : {},
43667
+ );
43668
+ }
43254
43669
  const lookupUrl = formatIri(url);
43255
43670
  const portableMode = isPortableMode(this, options);
43256
43671
  if (portableMode) {
@@ -43680,7 +44095,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
43680
44095
  span.end();
43681
44096
  }
43682
44097
  };
43683
- if (isPortableIri(url)) return await dereferencePortable(url);
44098
+ if (isPortableIri(url)) {
44099
+ // A reference in a portable actor's own document, e.g., its outbox,
44100
+ // has no location hints, so the actor's gateways are used instead:
44101
+ return await dereferencePortable(
44102
+ url,
44103
+ options.gateways == null
44104
+ ? { inferredGateways: getReferrerGateways(this, url) }
44105
+ : {},
44106
+ );
44107
+ }
43684
44108
  const lookupUrl = formatIri(url);
43685
44109
  const portableMode = isPortableMode(this, options);
43686
44110
  if (portableMode) {
@@ -44089,7 +44513,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44089
44513
  span.end();
44090
44514
  }
44091
44515
  };
44092
- if (isPortableIri(url)) return await dereferencePortable(url);
44516
+ if (isPortableIri(url)) {
44517
+ // A reference in a portable actor's own document, e.g., its outbox,
44518
+ // has no location hints, so the actor's gateways are used instead:
44519
+ return await dereferencePortable(
44520
+ url,
44521
+ options.gateways == null
44522
+ ? { inferredGateways: getReferrerGateways(this, url) }
44523
+ : {},
44524
+ );
44525
+ }
44093
44526
  const lookupUrl = formatIri(url);
44094
44527
  const portableMode = isPortableMode(this, options);
44095
44528
  if (portableMode) {
@@ -44498,7 +44931,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44498
44931
  span.end();
44499
44932
  }
44500
44933
  };
44501
- if (isPortableIri(url)) return await dereferencePortable(url);
44934
+ if (isPortableIri(url)) {
44935
+ // A reference in a portable actor's own document, e.g., its outbox,
44936
+ // has no location hints, so the actor's gateways are used instead:
44937
+ return await dereferencePortable(
44938
+ url,
44939
+ options.gateways == null
44940
+ ? { inferredGateways: getReferrerGateways(this, url) }
44941
+ : {},
44942
+ );
44943
+ }
44502
44944
  const lookupUrl = formatIri(url);
44503
44945
  const portableMode = isPortableMode(this, options);
44504
44946
  if (portableMode) {
@@ -44907,7 +45349,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
44907
45349
  span.end();
44908
45350
  }
44909
45351
  };
44910
- if (isPortableIri(url)) return await dereferencePortable(url);
45352
+ if (isPortableIri(url)) {
45353
+ // A reference in a portable actor's own document, e.g., its outbox,
45354
+ // has no location hints, so the actor's gateways are used instead:
45355
+ return await dereferencePortable(
45356
+ url,
45357
+ options.gateways == null
45358
+ ? { inferredGateways: getReferrerGateways(this, url) }
45359
+ : {},
45360
+ );
45361
+ }
44911
45362
  const lookupUrl = formatIri(url);
44912
45363
  const portableMode = isPortableMode(this, options);
44913
45364
  if (portableMode) {
@@ -45316,7 +45767,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45316
45767
  span.end();
45317
45768
  }
45318
45769
  };
45319
- if (isPortableIri(url)) return await dereferencePortable(url);
45770
+ if (isPortableIri(url)) {
45771
+ // A reference in a portable actor's own document, e.g., its outbox,
45772
+ // has no location hints, so the actor's gateways are used instead:
45773
+ return await dereferencePortable(
45774
+ url,
45775
+ options.gateways == null
45776
+ ? { inferredGateways: getReferrerGateways(this, url) }
45777
+ : {},
45778
+ );
45779
+ }
45320
45780
  const lookupUrl = formatIri(url);
45321
45781
  const portableMode = isPortableMode(this, options);
45322
45782
  if (portableMode) {
@@ -45725,7 +46185,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
45725
46185
  span.end();
45726
46186
  }
45727
46187
  };
45728
- if (isPortableIri(url)) return await dereferencePortable(url);
46188
+ if (isPortableIri(url)) {
46189
+ // A reference in a portable actor's own document, e.g., its outbox,
46190
+ // has no location hints, so the actor's gateways are used instead:
46191
+ return await dereferencePortable(
46192
+ url,
46193
+ options.gateways == null
46194
+ ? { inferredGateways: getReferrerGateways(this, url) }
46195
+ : {},
46196
+ );
46197
+ }
45729
46198
  const lookupUrl = formatIri(url);
45730
46199
  const portableMode = isPortableMode(this, options);
45731
46200
  if (portableMode) {
@@ -46134,7 +46603,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46134
46603
  span.end();
46135
46604
  }
46136
46605
  };
46137
- if (isPortableIri(url)) return await dereferencePortable(url);
46606
+ if (isPortableIri(url)) {
46607
+ // A reference in a portable actor's own document, e.g., its outbox,
46608
+ // has no location hints, so the actor's gateways are used instead:
46609
+ return await dereferencePortable(
46610
+ url,
46611
+ options.gateways == null
46612
+ ? { inferredGateways: getReferrerGateways(this, url) }
46613
+ : {},
46614
+ );
46615
+ }
46138
46616
  const lookupUrl = formatIri(url);
46139
46617
  const portableMode = isPortableMode(this, options);
46140
46618
  if (portableMode) {
@@ -46543,7 +47021,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
46543
47021
  span.end();
46544
47022
  }
46545
47023
  };
46546
- if (isPortableIri(url)) return await dereferencePortable(url);
47024
+ if (isPortableIri(url)) {
47025
+ // A reference in a portable actor's own document, e.g., its outbox,
47026
+ // has no location hints, so the actor's gateways are used instead:
47027
+ return await dereferencePortable(
47028
+ url,
47029
+ options.gateways == null
47030
+ ? { inferredGateways: getReferrerGateways(this, url) }
47031
+ : {},
47032
+ );
47033
+ }
46547
47034
  const lookupUrl = formatIri(url);
46548
47035
  const portableMode = isPortableMode(this, options);
46549
47036
  if (portableMode) {
@@ -48745,7 +49232,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
48745
49232
  span.end();
48746
49233
  }
48747
49234
  };
48748
- if (isPortableIri(url)) return await dereferencePortable(url);
49235
+ if (isPortableIri(url)) {
49236
+ // A reference in a portable actor's own document, e.g., its outbox,
49237
+ // has no location hints, so the actor's gateways are used instead:
49238
+ return await dereferencePortable(
49239
+ url,
49240
+ options.gateways == null
49241
+ ? { inferredGateways: getReferrerGateways(this, url) }
49242
+ : {},
49243
+ );
49244
+ }
48749
49245
  const lookupUrl = formatIri(url);
48750
49246
  const portableMode = isPortableMode(this, options);
48751
49247
  if (portableMode) {
@@ -50456,7 +50952,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
50456
50952
  span.end();
50457
50953
  }
50458
50954
  };
50459
- if (isPortableIri(url)) return await dereferencePortable(url);
50955
+ if (isPortableIri(url)) {
50956
+ // A reference in a portable actor's own document, e.g., its outbox,
50957
+ // has no location hints, so the actor's gateways are used instead:
50958
+ return await dereferencePortable(
50959
+ url,
50960
+ options.gateways == null
50961
+ ? { inferredGateways: getReferrerGateways(this, url) }
50962
+ : {},
50963
+ );
50964
+ }
50460
50965
  const lookupUrl = formatIri(url);
50461
50966
  const portableMode = isPortableMode(this, options);
50462
50967
  if (portableMode) {
@@ -50864,7 +51369,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
50864
51369
  span.end();
50865
51370
  }
50866
51371
  };
50867
- if (isPortableIri(url)) return await dereferencePortable(url);
51372
+ if (isPortableIri(url)) {
51373
+ // A reference in a portable actor's own document, e.g., its outbox,
51374
+ // has no location hints, so the actor's gateways are used instead:
51375
+ return await dereferencePortable(
51376
+ url,
51377
+ options.gateways == null
51378
+ ? { inferredGateways: getReferrerGateways(this, url) }
51379
+ : {},
51380
+ );
51381
+ }
50868
51382
  const lookupUrl = formatIri(url);
50869
51383
  const portableMode = isPortableMode(this, options);
50870
51384
  if (portableMode) {
@@ -53102,7 +53616,16 @@ cryptosuite?: "eddsa-jcs-2022" | null;verificationMethod?: Multikey | URL | null
53102
53616
  span.end();
53103
53617
  }
53104
53618
  };
53105
- if (isPortableIri(url)) return await dereferencePortable(url);
53619
+ if (isPortableIri(url)) {
53620
+ // A reference in a portable actor's own document, e.g., its outbox,
53621
+ // has no location hints, so the actor's gateways are used instead:
53622
+ return await dereferencePortable(
53623
+ url,
53624
+ options.gateways == null
53625
+ ? { inferredGateways: getReferrerGateways(this, url) }
53626
+ : {},
53627
+ );
53628
+ }
53106
53629
  const lookupUrl = formatIri(url);
53107
53630
  const portableMode = isPortableMode(this, options);
53108
53631
  if (portableMode) {
@@ -54406,7 +54929,16 @@ owner?: Application | Group | Organization | Person | Service | URL | null;publi
54406
54929
  span.end();
54407
54930
  }
54408
54931
  };
54409
- if (isPortableIri(url)) return await dereferencePortable(url);
54932
+ if (isPortableIri(url)) {
54933
+ // A reference in a portable actor's own document, e.g., its outbox,
54934
+ // has no location hints, so the actor's gateways are used instead:
54935
+ return await dereferencePortable(
54936
+ url,
54937
+ options.gateways == null
54938
+ ? { inferredGateways: getReferrerGateways(this, url) }
54939
+ : {},
54940
+ );
54941
+ }
54410
54942
  const lookupUrl = formatIri(url);
54411
54943
  const portableMode = isPortableMode(this, options);
54412
54944
  if (portableMode) {
@@ -55634,7 +56166,16 @@ controller?: Application | Group | Organization | Person | Service | URL | null;
55634
56166
  span.end();
55635
56167
  }
55636
56168
  };
55637
- if (isPortableIri(url)) return await dereferencePortable(url);
56169
+ if (isPortableIri(url)) {
56170
+ // A reference in a portable actor's own document, e.g., its outbox,
56171
+ // has no location hints, so the actor's gateways are used instead:
56172
+ return await dereferencePortable(
56173
+ url,
56174
+ options.gateways == null
56175
+ ? { inferredGateways: getReferrerGateways(this, url) }
56176
+ : {},
56177
+ );
56178
+ }
55638
56179
  const lookupUrl = formatIri(url);
55639
56180
  const portableMode = isPortableMode(this, options);
55640
56181
  if (portableMode) {
@@ -62536,7 +63077,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
62536
63077
  span.end();
62537
63078
  }
62538
63079
  };
62539
- if (isPortableIri(url)) return await dereferencePortable(url);
63080
+ if (isPortableIri(url)) {
63081
+ // A reference in a portable actor's own document, e.g., its outbox,
63082
+ // has no location hints, so the actor's gateways are used instead:
63083
+ return await dereferencePortable(
63084
+ url,
63085
+ options.gateways == null
63086
+ ? { inferredGateways: getReferrerGateways(this, url) }
63087
+ : {},
63088
+ );
63089
+ }
62540
63090
  const lookupUrl = formatIri(url);
62541
63091
  const portableMode = isPortableMode(this, options);
62542
63092
  if (portableMode) {
@@ -63104,7 +63654,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
63104
63654
  span.end();
63105
63655
  }
63106
63656
  };
63107
- if (isPortableIri(url)) return await dereferencePortable(url);
63657
+ if (isPortableIri(url)) {
63658
+ // A reference in a portable actor's own document, e.g., its outbox,
63659
+ // has no location hints, so the actor's gateways are used instead:
63660
+ return await dereferencePortable(
63661
+ url,
63662
+ options.gateways == null
63663
+ ? { inferredGateways: getReferrerGateways(this, url) }
63664
+ : {},
63665
+ );
63666
+ }
63108
63667
  const lookupUrl = formatIri(url);
63109
63668
  const portableMode = isPortableMode(this, options);
63110
63669
  if (portableMode) {
@@ -63726,7 +64285,16 @@ get gateways(): (URL)[] {
63726
64285
  span.end();
63727
64286
  }
63728
64287
  };
63729
- if (isPortableIri(url)) return await dereferencePortable(url);
64288
+ if (isPortableIri(url)) {
64289
+ // A reference in a portable actor's own document, e.g., its outbox,
64290
+ // has no location hints, so the actor's gateways are used instead:
64291
+ return await dereferencePortable(
64292
+ url,
64293
+ options.gateways == null
64294
+ ? { inferredGateways: getReferrerGateways(this, url) }
64295
+ : {},
64296
+ );
64297
+ }
63730
64298
  const lookupUrl = formatIri(url);
63731
64299
  const portableMode = isPortableMode(this, options);
63732
64300
  if (portableMode) {
@@ -64162,7 +64730,16 @@ get gateways(): (URL)[] {
64162
64730
  span.end();
64163
64731
  }
64164
64732
  };
64165
- if (isPortableIri(url)) return await dereferencePortable(url);
64733
+ if (isPortableIri(url)) {
64734
+ // A reference in a portable actor's own document, e.g., its outbox,
64735
+ // has no location hints, so the actor's gateways are used instead:
64736
+ return await dereferencePortable(
64737
+ url,
64738
+ options.gateways == null
64739
+ ? { inferredGateways: getReferrerGateways(this, url) }
64740
+ : {},
64741
+ );
64742
+ }
64166
64743
  const lookupUrl = formatIri(url);
64167
64744
  const portableMode = isPortableMode(this, options);
64168
64745
  if (portableMode) {
@@ -64595,7 +65172,16 @@ get gateways(): (URL)[] {
64595
65172
  span.end();
64596
65173
  }
64597
65174
  };
64598
- if (isPortableIri(url)) return await dereferencePortable(url);
65175
+ if (isPortableIri(url)) {
65176
+ // A reference in a portable actor's own document, e.g., its outbox,
65177
+ // has no location hints, so the actor's gateways are used instead:
65178
+ return await dereferencePortable(
65179
+ url,
65180
+ options.gateways == null
65181
+ ? { inferredGateways: getReferrerGateways(this, url) }
65182
+ : {},
65183
+ );
65184
+ }
64599
65185
  const lookupUrl = formatIri(url);
64600
65186
  const portableMode = isPortableMode(this, options);
64601
65187
  if (portableMode) {
@@ -65008,7 +65594,16 @@ get gateways(): (URL)[] {
65008
65594
  span.end();
65009
65595
  }
65010
65596
  };
65011
- if (isPortableIri(url)) return await dereferencePortable(url);
65597
+ if (isPortableIri(url)) {
65598
+ // A reference in a portable actor's own document, e.g., its outbox,
65599
+ // has no location hints, so the actor's gateways are used instead:
65600
+ return await dereferencePortable(
65601
+ url,
65602
+ options.gateways == null
65603
+ ? { inferredGateways: getReferrerGateways(this, url) }
65604
+ : {},
65605
+ );
65606
+ }
65012
65607
  const lookupUrl = formatIri(url);
65013
65608
  const portableMode = isPortableMode(this, options);
65014
65609
  if (portableMode) {
@@ -65424,7 +66019,16 @@ get gateways(): (URL)[] {
65424
66019
  span.end();
65425
66020
  }
65426
66021
  };
65427
- if (isPortableIri(url)) return await dereferencePortable(url);
66022
+ if (isPortableIri(url)) {
66023
+ // A reference in a portable actor's own document, e.g., its outbox,
66024
+ // has no location hints, so the actor's gateways are used instead:
66025
+ return await dereferencePortable(
66026
+ url,
66027
+ options.gateways == null
66028
+ ? { inferredGateways: getReferrerGateways(this, url) }
66029
+ : {},
66030
+ );
66031
+ }
65428
66032
  const lookupUrl = formatIri(url);
65429
66033
  const portableMode = isPortableMode(this, options);
65430
66034
  if (portableMode) {
@@ -65838,7 +66442,16 @@ get gateways(): (URL)[] {
65838
66442
  span.end();
65839
66443
  }
65840
66444
  };
65841
- if (isPortableIri(url)) return await dereferencePortable(url);
66445
+ if (isPortableIri(url)) {
66446
+ // A reference in a portable actor's own document, e.g., its outbox,
66447
+ // has no location hints, so the actor's gateways are used instead:
66448
+ return await dereferencePortable(
66449
+ url,
66450
+ options.gateways == null
66451
+ ? { inferredGateways: getReferrerGateways(this, url) }
66452
+ : {},
66453
+ );
66454
+ }
65842
66455
  const lookupUrl = formatIri(url);
65843
66456
  const portableMode = isPortableMode(this, options);
65844
66457
  if (portableMode) {
@@ -66250,7 +66863,16 @@ get gateways(): (URL)[] {
66250
66863
  span.end();
66251
66864
  }
66252
66865
  };
66253
- if (isPortableIri(url)) return await dereferencePortable(url);
66866
+ if (isPortableIri(url)) {
66867
+ // A reference in a portable actor's own document, e.g., its outbox,
66868
+ // has no location hints, so the actor's gateways are used instead:
66869
+ return await dereferencePortable(
66870
+ url,
66871
+ options.gateways == null
66872
+ ? { inferredGateways: getReferrerGateways(this, url) }
66873
+ : {},
66874
+ );
66875
+ }
66254
66876
  const lookupUrl = formatIri(url);
66255
66877
  const portableMode = isPortableMode(this, options);
66256
66878
  if (portableMode) {
@@ -66662,7 +67284,16 @@ get gateways(): (URL)[] {
66662
67284
  span.end();
66663
67285
  }
66664
67286
  };
66665
- if (isPortableIri(url)) return await dereferencePortable(url);
67287
+ if (isPortableIri(url)) {
67288
+ // A reference in a portable actor's own document, e.g., its outbox,
67289
+ // has no location hints, so the actor's gateways are used instead:
67290
+ return await dereferencePortable(
67291
+ url,
67292
+ options.gateways == null
67293
+ ? { inferredGateways: getReferrerGateways(this, url) }
67294
+ : {},
67295
+ );
67296
+ }
66666
67297
  const lookupUrl = formatIri(url);
66667
67298
  const portableMode = isPortableMode(this, options);
66668
67299
  if (portableMode) {
@@ -67071,7 +67702,16 @@ get gateways(): (URL)[] {
67071
67702
  span.end();
67072
67703
  }
67073
67704
  };
67074
- if (isPortableIri(url)) return await dereferencePortable(url);
67705
+ if (isPortableIri(url)) {
67706
+ // A reference in a portable actor's own document, e.g., its outbox,
67707
+ // has no location hints, so the actor's gateways are used instead:
67708
+ return await dereferencePortable(
67709
+ url,
67710
+ options.gateways == null
67711
+ ? { inferredGateways: getReferrerGateways(this, url) }
67712
+ : {},
67713
+ );
67714
+ }
67075
67715
  const lookupUrl = formatIri(url);
67076
67716
  const portableMode = isPortableMode(this, options);
67077
67717
  if (portableMode) {
@@ -67560,7 +68200,16 @@ get gateways(): (URL)[] {
67560
68200
  span.end();
67561
68201
  }
67562
68202
  };
67563
- if (isPortableIri(url)) return await dereferencePortable(url);
68203
+ if (isPortableIri(url)) {
68204
+ // A reference in a portable actor's own document, e.g., its outbox,
68205
+ // has no location hints, so the actor's gateways are used instead:
68206
+ return await dereferencePortable(
68207
+ url,
68208
+ options.gateways == null
68209
+ ? { inferredGateways: getReferrerGateways(this, url) }
68210
+ : {},
68211
+ );
68212
+ }
67564
68213
  const lookupUrl = formatIri(url);
67565
68214
  const portableMode = isPortableMode(this, options);
67566
68215
  if (portableMode) {
@@ -68028,7 +68677,16 @@ get gateways(): (URL)[] {
68028
68677
  span.end();
68029
68678
  }
68030
68679
  };
68031
- if (isPortableIri(url)) return await dereferencePortable(url);
68680
+ if (isPortableIri(url)) {
68681
+ // A reference in a portable actor's own document, e.g., its outbox,
68682
+ // has no location hints, so the actor's gateways are used instead:
68683
+ return await dereferencePortable(
68684
+ url,
68685
+ options.gateways == null
68686
+ ? { inferredGateways: getReferrerGateways(this, url) }
68687
+ : {},
68688
+ );
68689
+ }
68032
68690
  const lookupUrl = formatIri(url);
68033
68691
  const portableMode = isPortableMode(this, options);
68034
68692
  if (portableMode) {
@@ -68664,7 +69322,16 @@ get gateways(): (URL)[] {
68664
69322
  span.end();
68665
69323
  }
68666
69324
  };
68667
- if (isPortableIri(url)) return await dereferencePortable(url);
69325
+ if (isPortableIri(url)) {
69326
+ // A reference in a portable actor's own document, e.g., its outbox,
69327
+ // has no location hints, so the actor's gateways are used instead:
69328
+ return await dereferencePortable(
69329
+ url,
69330
+ options.gateways == null
69331
+ ? { inferredGateways: getReferrerGateways(this, url) }
69332
+ : {},
69333
+ );
69334
+ }
68668
69335
  const lookupUrl = formatIri(url);
68669
69336
  const portableMode = isPortableMode(this, options);
68670
69337
  if (portableMode) {
@@ -73032,7 +73699,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
73032
73699
  span.end();
73033
73700
  }
73034
73701
  };
73035
- if (isPortableIri(url)) return await dereferencePortable(url);
73702
+ if (isPortableIri(url)) {
73703
+ // A reference in a portable actor's own document, e.g., its outbox,
73704
+ // has no location hints, so the actor's gateways are used instead:
73705
+ return await dereferencePortable(
73706
+ url,
73707
+ options.gateways == null
73708
+ ? { inferredGateways: getReferrerGateways(this, url) }
73709
+ : {},
73710
+ );
73711
+ }
73036
73712
  const lookupUrl = formatIri(url);
73037
73713
  const portableMode = isPortableMode(this, options);
73038
73714
  if (portableMode) {
@@ -73466,7 +74142,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
73466
74142
  span.end();
73467
74143
  }
73468
74144
  };
73469
- if (isPortableIri(url)) return await dereferencePortable(url);
74145
+ if (isPortableIri(url)) {
74146
+ // A reference in a portable actor's own document, e.g., its outbox,
74147
+ // has no location hints, so the actor's gateways are used instead:
74148
+ return await dereferencePortable(
74149
+ url,
74150
+ options.gateways == null
74151
+ ? { inferredGateways: getReferrerGateways(this, url) }
74152
+ : {},
74153
+ );
74154
+ }
73470
74155
  const lookupUrl = formatIri(url);
73471
74156
  const portableMode = isPortableMode(this, options);
73472
74157
  if (portableMode) {
@@ -76778,7 +77463,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
76778
77463
  span.end();
76779
77464
  }
76780
77465
  };
76781
- if (isPortableIri(url)) return await dereferencePortable(url);
77466
+ if (isPortableIri(url)) {
77467
+ // A reference in a portable actor's own document, e.g., its outbox,
77468
+ // has no location hints, so the actor's gateways are used instead:
77469
+ return await dereferencePortable(
77470
+ url,
77471
+ options.gateways == null
77472
+ ? { inferredGateways: getReferrerGateways(this, url) }
77473
+ : {},
77474
+ );
77475
+ }
76782
77476
  const lookupUrl = formatIri(url);
76783
77477
  const portableMode = isPortableMode(this, options);
76784
77478
  if (portableMode) {
@@ -77188,7 +77882,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
77188
77882
  span.end();
77189
77883
  }
77190
77884
  };
77191
- if (isPortableIri(url)) return await dereferencePortable(url);
77885
+ if (isPortableIri(url)) {
77886
+ // A reference in a portable actor's own document, e.g., its outbox,
77887
+ // has no location hints, so the actor's gateways are used instead:
77888
+ return await dereferencePortable(
77889
+ url,
77890
+ options.gateways == null
77891
+ ? { inferredGateways: getReferrerGateways(this, url) }
77892
+ : {},
77893
+ );
77894
+ }
77192
77895
  const lookupUrl = formatIri(url);
77193
77896
  const portableMode = isPortableMode(this, options);
77194
77897
  if (portableMode) {
@@ -77596,7 +78299,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
77596
78299
  span.end();
77597
78300
  }
77598
78301
  };
77599
- if (isPortableIri(url)) return await dereferencePortable(url);
78302
+ if (isPortableIri(url)) {
78303
+ // A reference in a portable actor's own document, e.g., its outbox,
78304
+ // has no location hints, so the actor's gateways are used instead:
78305
+ return await dereferencePortable(
78306
+ url,
78307
+ options.gateways == null
78308
+ ? { inferredGateways: getReferrerGateways(this, url) }
78309
+ : {},
78310
+ );
78311
+ }
77600
78312
  const lookupUrl = formatIri(url);
77601
78313
  const portableMode = isPortableMode(this, options);
77602
78314
  if (portableMode) {
@@ -83634,7 +84346,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
83634
84346
  span.end();
83635
84347
  }
83636
84348
  };
83637
- if (isPortableIri(url)) return await dereferencePortable(url);
84349
+ if (isPortableIri(url)) {
84350
+ // A reference in a portable actor's own document, e.g., its outbox,
84351
+ // has no location hints, so the actor's gateways are used instead:
84352
+ return await dereferencePortable(
84353
+ url,
84354
+ options.gateways == null
84355
+ ? { inferredGateways: getReferrerGateways(this, url) }
84356
+ : {},
84357
+ );
84358
+ }
83638
84359
  const lookupUrl = formatIri(url);
83639
84360
  const portableMode = isPortableMode(this, options);
83640
84361
  if (portableMode) {
@@ -84202,7 +84923,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
84202
84923
  span.end();
84203
84924
  }
84204
84925
  };
84205
- if (isPortableIri(url)) return await dereferencePortable(url);
84926
+ if (isPortableIri(url)) {
84927
+ // A reference in a portable actor's own document, e.g., its outbox,
84928
+ // has no location hints, so the actor's gateways are used instead:
84929
+ return await dereferencePortable(
84930
+ url,
84931
+ options.gateways == null
84932
+ ? { inferredGateways: getReferrerGateways(this, url) }
84933
+ : {},
84934
+ );
84935
+ }
84206
84936
  const lookupUrl = formatIri(url);
84207
84937
  const portableMode = isPortableMode(this, options);
84208
84938
  if (portableMode) {
@@ -84824,7 +85554,16 @@ get gateways(): (URL)[] {
84824
85554
  span.end();
84825
85555
  }
84826
85556
  };
84827
- if (isPortableIri(url)) return await dereferencePortable(url);
85557
+ if (isPortableIri(url)) {
85558
+ // A reference in a portable actor's own document, e.g., its outbox,
85559
+ // has no location hints, so the actor's gateways are used instead:
85560
+ return await dereferencePortable(
85561
+ url,
85562
+ options.gateways == null
85563
+ ? { inferredGateways: getReferrerGateways(this, url) }
85564
+ : {},
85565
+ );
85566
+ }
84828
85567
  const lookupUrl = formatIri(url);
84829
85568
  const portableMode = isPortableMode(this, options);
84830
85569
  if (portableMode) {
@@ -85260,7 +85999,16 @@ get gateways(): (URL)[] {
85260
85999
  span.end();
85261
86000
  }
85262
86001
  };
85263
- if (isPortableIri(url)) return await dereferencePortable(url);
86002
+ if (isPortableIri(url)) {
86003
+ // A reference in a portable actor's own document, e.g., its outbox,
86004
+ // has no location hints, so the actor's gateways are used instead:
86005
+ return await dereferencePortable(
86006
+ url,
86007
+ options.gateways == null
86008
+ ? { inferredGateways: getReferrerGateways(this, url) }
86009
+ : {},
86010
+ );
86011
+ }
85264
86012
  const lookupUrl = formatIri(url);
85265
86013
  const portableMode = isPortableMode(this, options);
85266
86014
  if (portableMode) {
@@ -85693,7 +86441,16 @@ get gateways(): (URL)[] {
85693
86441
  span.end();
85694
86442
  }
85695
86443
  };
85696
- if (isPortableIri(url)) return await dereferencePortable(url);
86444
+ if (isPortableIri(url)) {
86445
+ // A reference in a portable actor's own document, e.g., its outbox,
86446
+ // has no location hints, so the actor's gateways are used instead:
86447
+ return await dereferencePortable(
86448
+ url,
86449
+ options.gateways == null
86450
+ ? { inferredGateways: getReferrerGateways(this, url) }
86451
+ : {},
86452
+ );
86453
+ }
85697
86454
  const lookupUrl = formatIri(url);
85698
86455
  const portableMode = isPortableMode(this, options);
85699
86456
  if (portableMode) {
@@ -86106,7 +86863,16 @@ get gateways(): (URL)[] {
86106
86863
  span.end();
86107
86864
  }
86108
86865
  };
86109
- if (isPortableIri(url)) return await dereferencePortable(url);
86866
+ if (isPortableIri(url)) {
86867
+ // A reference in a portable actor's own document, e.g., its outbox,
86868
+ // has no location hints, so the actor's gateways are used instead:
86869
+ return await dereferencePortable(
86870
+ url,
86871
+ options.gateways == null
86872
+ ? { inferredGateways: getReferrerGateways(this, url) }
86873
+ : {},
86874
+ );
86875
+ }
86110
86876
  const lookupUrl = formatIri(url);
86111
86877
  const portableMode = isPortableMode(this, options);
86112
86878
  if (portableMode) {
@@ -86522,7 +87288,16 @@ get gateways(): (URL)[] {
86522
87288
  span.end();
86523
87289
  }
86524
87290
  };
86525
- if (isPortableIri(url)) return await dereferencePortable(url);
87291
+ if (isPortableIri(url)) {
87292
+ // A reference in a portable actor's own document, e.g., its outbox,
87293
+ // has no location hints, so the actor's gateways are used instead:
87294
+ return await dereferencePortable(
87295
+ url,
87296
+ options.gateways == null
87297
+ ? { inferredGateways: getReferrerGateways(this, url) }
87298
+ : {},
87299
+ );
87300
+ }
86526
87301
  const lookupUrl = formatIri(url);
86527
87302
  const portableMode = isPortableMode(this, options);
86528
87303
  if (portableMode) {
@@ -86936,7 +87711,16 @@ get gateways(): (URL)[] {
86936
87711
  span.end();
86937
87712
  }
86938
87713
  };
86939
- if (isPortableIri(url)) return await dereferencePortable(url);
87714
+ if (isPortableIri(url)) {
87715
+ // A reference in a portable actor's own document, e.g., its outbox,
87716
+ // has no location hints, so the actor's gateways are used instead:
87717
+ return await dereferencePortable(
87718
+ url,
87719
+ options.gateways == null
87720
+ ? { inferredGateways: getReferrerGateways(this, url) }
87721
+ : {},
87722
+ );
87723
+ }
86940
87724
  const lookupUrl = formatIri(url);
86941
87725
  const portableMode = isPortableMode(this, options);
86942
87726
  if (portableMode) {
@@ -87348,7 +88132,16 @@ get gateways(): (URL)[] {
87348
88132
  span.end();
87349
88133
  }
87350
88134
  };
87351
- if (isPortableIri(url)) return await dereferencePortable(url);
88135
+ if (isPortableIri(url)) {
88136
+ // A reference in a portable actor's own document, e.g., its outbox,
88137
+ // has no location hints, so the actor's gateways are used instead:
88138
+ return await dereferencePortable(
88139
+ url,
88140
+ options.gateways == null
88141
+ ? { inferredGateways: getReferrerGateways(this, url) }
88142
+ : {},
88143
+ );
88144
+ }
87352
88145
  const lookupUrl = formatIri(url);
87353
88146
  const portableMode = isPortableMode(this, options);
87354
88147
  if (portableMode) {
@@ -87760,7 +88553,16 @@ get gateways(): (URL)[] {
87760
88553
  span.end();
87761
88554
  }
87762
88555
  };
87763
- if (isPortableIri(url)) return await dereferencePortable(url);
88556
+ if (isPortableIri(url)) {
88557
+ // A reference in a portable actor's own document, e.g., its outbox,
88558
+ // has no location hints, so the actor's gateways are used instead:
88559
+ return await dereferencePortable(
88560
+ url,
88561
+ options.gateways == null
88562
+ ? { inferredGateways: getReferrerGateways(this, url) }
88563
+ : {},
88564
+ );
88565
+ }
87764
88566
  const lookupUrl = formatIri(url);
87765
88567
  const portableMode = isPortableMode(this, options);
87766
88568
  if (portableMode) {
@@ -88169,7 +88971,16 @@ get gateways(): (URL)[] {
88169
88971
  span.end();
88170
88972
  }
88171
88973
  };
88172
- if (isPortableIri(url)) return await dereferencePortable(url);
88974
+ if (isPortableIri(url)) {
88975
+ // A reference in a portable actor's own document, e.g., its outbox,
88976
+ // has no location hints, so the actor's gateways are used instead:
88977
+ return await dereferencePortable(
88978
+ url,
88979
+ options.gateways == null
88980
+ ? { inferredGateways: getReferrerGateways(this, url) }
88981
+ : {},
88982
+ );
88983
+ }
88173
88984
  const lookupUrl = formatIri(url);
88174
88985
  const portableMode = isPortableMode(this, options);
88175
88986
  if (portableMode) {
@@ -88658,7 +89469,16 @@ get gateways(): (URL)[] {
88658
89469
  span.end();
88659
89470
  }
88660
89471
  };
88661
- if (isPortableIri(url)) return await dereferencePortable(url);
89472
+ if (isPortableIri(url)) {
89473
+ // A reference in a portable actor's own document, e.g., its outbox,
89474
+ // has no location hints, so the actor's gateways are used instead:
89475
+ return await dereferencePortable(
89476
+ url,
89477
+ options.gateways == null
89478
+ ? { inferredGateways: getReferrerGateways(this, url) }
89479
+ : {},
89480
+ );
89481
+ }
88662
89482
  const lookupUrl = formatIri(url);
88663
89483
  const portableMode = isPortableMode(this, options);
88664
89484
  if (portableMode) {
@@ -89126,7 +89946,16 @@ get gateways(): (URL)[] {
89126
89946
  span.end();
89127
89947
  }
89128
89948
  };
89129
- if (isPortableIri(url)) return await dereferencePortable(url);
89949
+ if (isPortableIri(url)) {
89950
+ // A reference in a portable actor's own document, e.g., its outbox,
89951
+ // has no location hints, so the actor's gateways are used instead:
89952
+ return await dereferencePortable(
89953
+ url,
89954
+ options.gateways == null
89955
+ ? { inferredGateways: getReferrerGateways(this, url) }
89956
+ : {},
89957
+ );
89958
+ }
89130
89959
  const lookupUrl = formatIri(url);
89131
89960
  const portableMode = isPortableMode(this, options);
89132
89961
  if (portableMode) {
@@ -89762,7 +90591,16 @@ get gateways(): (URL)[] {
89762
90591
  span.end();
89763
90592
  }
89764
90593
  };
89765
- if (isPortableIri(url)) return await dereferencePortable(url);
90594
+ if (isPortableIri(url)) {
90595
+ // A reference in a portable actor's own document, e.g., its outbox,
90596
+ // has no location hints, so the actor's gateways are used instead:
90597
+ return await dereferencePortable(
90598
+ url,
90599
+ options.gateways == null
90600
+ ? { inferredGateways: getReferrerGateways(this, url) }
90601
+ : {},
90602
+ );
90603
+ }
89766
90604
  const lookupUrl = formatIri(url);
89767
90605
  const portableMode = isPortableMode(this, options);
89768
90606
  if (portableMode) {
@@ -93766,7 +94604,16 @@ get names(): ((string | LanguageString))[] {
93766
94604
  span.end();
93767
94605
  }
93768
94606
  };
93769
- if (isPortableIri(url)) return await dereferencePortable(url);
94607
+ if (isPortableIri(url)) {
94608
+ // A reference in a portable actor's own document, e.g., its outbox,
94609
+ // has no location hints, so the actor's gateways are used instead:
94610
+ return await dereferencePortable(
94611
+ url,
94612
+ options.gateways == null
94613
+ ? { inferredGateways: getReferrerGateways(this, url) }
94614
+ : {},
94615
+ );
94616
+ }
93770
94617
  const lookupUrl = formatIri(url);
93771
94618
  const portableMode = isPortableMode(this, options);
93772
94619
  if (portableMode) {
@@ -99614,7 +100461,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
99614
100461
  span.end();
99615
100462
  }
99616
100463
  };
99617
- if (isPortableIri(url)) return await dereferencePortable(url);
100464
+ if (isPortableIri(url)) {
100465
+ // A reference in a portable actor's own document, e.g., its outbox,
100466
+ // has no location hints, so the actor's gateways are used instead:
100467
+ return await dereferencePortable(
100468
+ url,
100469
+ options.gateways == null
100470
+ ? { inferredGateways: getReferrerGateways(this, url) }
100471
+ : {},
100472
+ );
100473
+ }
99618
100474
  const lookupUrl = formatIri(url);
99619
100475
  const portableMode = isPortableMode(this, options);
99620
100476
  if (portableMode) {
@@ -100048,7 +100904,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
100048
100904
  span.end();
100049
100905
  }
100050
100906
  };
100051
- if (isPortableIri(url)) return await dereferencePortable(url);
100907
+ if (isPortableIri(url)) {
100908
+ // A reference in a portable actor's own document, e.g., its outbox,
100909
+ // has no location hints, so the actor's gateways are used instead:
100910
+ return await dereferencePortable(
100911
+ url,
100912
+ options.gateways == null
100913
+ ? { inferredGateways: getReferrerGateways(this, url) }
100914
+ : {},
100915
+ );
100916
+ }
100052
100917
  const lookupUrl = formatIri(url);
100053
100918
  const portableMode = isPortableMode(this, options);
100054
100919
  if (portableMode) {
@@ -101261,7 +102126,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
101261
102126
  span.end();
101262
102127
  }
101263
102128
  };
101264
- if (isPortableIri(url)) return await dereferencePortable(url);
102129
+ if (isPortableIri(url)) {
102130
+ // A reference in a portable actor's own document, e.g., its outbox,
102131
+ // has no location hints, so the actor's gateways are used instead:
102132
+ return await dereferencePortable(
102133
+ url,
102134
+ options.gateways == null
102135
+ ? { inferredGateways: getReferrerGateways(this, url) }
102136
+ : {},
102137
+ );
102138
+ }
101265
102139
  const lookupUrl = formatIri(url);
101266
102140
  const portableMode = isPortableMode(this, options);
101267
102141
  if (portableMode) {
@@ -103361,7 +104235,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
103361
104235
  span.end();
103362
104236
  }
103363
104237
  };
103364
- if (isPortableIri(url)) return await dereferencePortable(url);
104238
+ if (isPortableIri(url)) {
104239
+ // A reference in a portable actor's own document, e.g., its outbox,
104240
+ // has no location hints, so the actor's gateways are used instead:
104241
+ return await dereferencePortable(
104242
+ url,
104243
+ options.gateways == null
104244
+ ? { inferredGateways: getReferrerGateways(this, url) }
104245
+ : {},
104246
+ );
104247
+ }
103365
104248
  const lookupUrl = formatIri(url);
103366
104249
  const portableMode = isPortableMode(this, options);
103367
104250
  if (portableMode) {
@@ -103929,7 +104812,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
103929
104812
  span.end();
103930
104813
  }
103931
104814
  };
103932
- if (isPortableIri(url)) return await dereferencePortable(url);
104815
+ if (isPortableIri(url)) {
104816
+ // A reference in a portable actor's own document, e.g., its outbox,
104817
+ // has no location hints, so the actor's gateways are used instead:
104818
+ return await dereferencePortable(
104819
+ url,
104820
+ options.gateways == null
104821
+ ? { inferredGateways: getReferrerGateways(this, url) }
104822
+ : {},
104823
+ );
104824
+ }
103933
104825
  const lookupUrl = formatIri(url);
103934
104826
  const portableMode = isPortableMode(this, options);
103935
104827
  if (portableMode) {
@@ -104551,7 +105443,16 @@ get gateways(): (URL)[] {
104551
105443
  span.end();
104552
105444
  }
104553
105445
  };
104554
- if (isPortableIri(url)) return await dereferencePortable(url);
105446
+ if (isPortableIri(url)) {
105447
+ // A reference in a portable actor's own document, e.g., its outbox,
105448
+ // has no location hints, so the actor's gateways are used instead:
105449
+ return await dereferencePortable(
105450
+ url,
105451
+ options.gateways == null
105452
+ ? { inferredGateways: getReferrerGateways(this, url) }
105453
+ : {},
105454
+ );
105455
+ }
104555
105456
  const lookupUrl = formatIri(url);
104556
105457
  const portableMode = isPortableMode(this, options);
104557
105458
  if (portableMode) {
@@ -104987,7 +105888,16 @@ get gateways(): (URL)[] {
104987
105888
  span.end();
104988
105889
  }
104989
105890
  };
104990
- if (isPortableIri(url)) return await dereferencePortable(url);
105891
+ if (isPortableIri(url)) {
105892
+ // A reference in a portable actor's own document, e.g., its outbox,
105893
+ // has no location hints, so the actor's gateways are used instead:
105894
+ return await dereferencePortable(
105895
+ url,
105896
+ options.gateways == null
105897
+ ? { inferredGateways: getReferrerGateways(this, url) }
105898
+ : {},
105899
+ );
105900
+ }
104991
105901
  const lookupUrl = formatIri(url);
104992
105902
  const portableMode = isPortableMode(this, options);
104993
105903
  if (portableMode) {
@@ -105420,7 +106330,16 @@ get gateways(): (URL)[] {
105420
106330
  span.end();
105421
106331
  }
105422
106332
  };
105423
- if (isPortableIri(url)) return await dereferencePortable(url);
106333
+ if (isPortableIri(url)) {
106334
+ // A reference in a portable actor's own document, e.g., its outbox,
106335
+ // has no location hints, so the actor's gateways are used instead:
106336
+ return await dereferencePortable(
106337
+ url,
106338
+ options.gateways == null
106339
+ ? { inferredGateways: getReferrerGateways(this, url) }
106340
+ : {},
106341
+ );
106342
+ }
105424
106343
  const lookupUrl = formatIri(url);
105425
106344
  const portableMode = isPortableMode(this, options);
105426
106345
  if (portableMode) {
@@ -105833,7 +106752,16 @@ get gateways(): (URL)[] {
105833
106752
  span.end();
105834
106753
  }
105835
106754
  };
105836
- if (isPortableIri(url)) return await dereferencePortable(url);
106755
+ if (isPortableIri(url)) {
106756
+ // A reference in a portable actor's own document, e.g., its outbox,
106757
+ // has no location hints, so the actor's gateways are used instead:
106758
+ return await dereferencePortable(
106759
+ url,
106760
+ options.gateways == null
106761
+ ? { inferredGateways: getReferrerGateways(this, url) }
106762
+ : {},
106763
+ );
106764
+ }
105837
106765
  const lookupUrl = formatIri(url);
105838
106766
  const portableMode = isPortableMode(this, options);
105839
106767
  if (portableMode) {
@@ -106249,7 +107177,16 @@ get gateways(): (URL)[] {
106249
107177
  span.end();
106250
107178
  }
106251
107179
  };
106252
- if (isPortableIri(url)) return await dereferencePortable(url);
107180
+ if (isPortableIri(url)) {
107181
+ // A reference in a portable actor's own document, e.g., its outbox,
107182
+ // has no location hints, so the actor's gateways are used instead:
107183
+ return await dereferencePortable(
107184
+ url,
107185
+ options.gateways == null
107186
+ ? { inferredGateways: getReferrerGateways(this, url) }
107187
+ : {},
107188
+ );
107189
+ }
106253
107190
  const lookupUrl = formatIri(url);
106254
107191
  const portableMode = isPortableMode(this, options);
106255
107192
  if (portableMode) {
@@ -106663,7 +107600,16 @@ get gateways(): (URL)[] {
106663
107600
  span.end();
106664
107601
  }
106665
107602
  };
106666
- if (isPortableIri(url)) return await dereferencePortable(url);
107603
+ if (isPortableIri(url)) {
107604
+ // A reference in a portable actor's own document, e.g., its outbox,
107605
+ // has no location hints, so the actor's gateways are used instead:
107606
+ return await dereferencePortable(
107607
+ url,
107608
+ options.gateways == null
107609
+ ? { inferredGateways: getReferrerGateways(this, url) }
107610
+ : {},
107611
+ );
107612
+ }
106667
107613
  const lookupUrl = formatIri(url);
106668
107614
  const portableMode = isPortableMode(this, options);
106669
107615
  if (portableMode) {
@@ -107075,7 +108021,16 @@ get gateways(): (URL)[] {
107075
108021
  span.end();
107076
108022
  }
107077
108023
  };
107078
- if (isPortableIri(url)) return await dereferencePortable(url);
108024
+ if (isPortableIri(url)) {
108025
+ // A reference in a portable actor's own document, e.g., its outbox,
108026
+ // has no location hints, so the actor's gateways are used instead:
108027
+ return await dereferencePortable(
108028
+ url,
108029
+ options.gateways == null
108030
+ ? { inferredGateways: getReferrerGateways(this, url) }
108031
+ : {},
108032
+ );
108033
+ }
107079
108034
  const lookupUrl = formatIri(url);
107080
108035
  const portableMode = isPortableMode(this, options);
107081
108036
  if (portableMode) {
@@ -107487,7 +108442,16 @@ get gateways(): (URL)[] {
107487
108442
  span.end();
107488
108443
  }
107489
108444
  };
107490
- if (isPortableIri(url)) return await dereferencePortable(url);
108445
+ if (isPortableIri(url)) {
108446
+ // A reference in a portable actor's own document, e.g., its outbox,
108447
+ // has no location hints, so the actor's gateways are used instead:
108448
+ return await dereferencePortable(
108449
+ url,
108450
+ options.gateways == null
108451
+ ? { inferredGateways: getReferrerGateways(this, url) }
108452
+ : {},
108453
+ );
108454
+ }
107491
108455
  const lookupUrl = formatIri(url);
107492
108456
  const portableMode = isPortableMode(this, options);
107493
108457
  if (portableMode) {
@@ -107896,7 +108860,16 @@ get gateways(): (URL)[] {
107896
108860
  span.end();
107897
108861
  }
107898
108862
  };
107899
- if (isPortableIri(url)) return await dereferencePortable(url);
108863
+ if (isPortableIri(url)) {
108864
+ // A reference in a portable actor's own document, e.g., its outbox,
108865
+ // has no location hints, so the actor's gateways are used instead:
108866
+ return await dereferencePortable(
108867
+ url,
108868
+ options.gateways == null
108869
+ ? { inferredGateways: getReferrerGateways(this, url) }
108870
+ : {},
108871
+ );
108872
+ }
107900
108873
  const lookupUrl = formatIri(url);
107901
108874
  const portableMode = isPortableMode(this, options);
107902
108875
  if (portableMode) {
@@ -108385,7 +109358,16 @@ get gateways(): (URL)[] {
108385
109358
  span.end();
108386
109359
  }
108387
109360
  };
108388
- if (isPortableIri(url)) return await dereferencePortable(url);
109361
+ if (isPortableIri(url)) {
109362
+ // A reference in a portable actor's own document, e.g., its outbox,
109363
+ // has no location hints, so the actor's gateways are used instead:
109364
+ return await dereferencePortable(
109365
+ url,
109366
+ options.gateways == null
109367
+ ? { inferredGateways: getReferrerGateways(this, url) }
109368
+ : {},
109369
+ );
109370
+ }
108389
109371
  const lookupUrl = formatIri(url);
108390
109372
  const portableMode = isPortableMode(this, options);
108391
109373
  if (portableMode) {
@@ -108853,7 +109835,16 @@ get gateways(): (URL)[] {
108853
109835
  span.end();
108854
109836
  }
108855
109837
  };
108856
- if (isPortableIri(url)) return await dereferencePortable(url);
109838
+ if (isPortableIri(url)) {
109839
+ // A reference in a portable actor's own document, e.g., its outbox,
109840
+ // has no location hints, so the actor's gateways are used instead:
109841
+ return await dereferencePortable(
109842
+ url,
109843
+ options.gateways == null
109844
+ ? { inferredGateways: getReferrerGateways(this, url) }
109845
+ : {},
109846
+ );
109847
+ }
108857
109848
  const lookupUrl = formatIri(url);
108858
109849
  const portableMode = isPortableMode(this, options);
108859
109850
  if (portableMode) {
@@ -109489,7 +110480,16 @@ get gateways(): (URL)[] {
109489
110480
  span.end();
109490
110481
  }
109491
110482
  };
109492
- if (isPortableIri(url)) return await dereferencePortable(url);
110483
+ if (isPortableIri(url)) {
110484
+ // A reference in a portable actor's own document, e.g., its outbox,
110485
+ // has no location hints, so the actor's gateways are used instead:
110486
+ return await dereferencePortable(
110487
+ url,
110488
+ options.gateways == null
110489
+ ? { inferredGateways: getReferrerGateways(this, url) }
110490
+ : {},
110491
+ );
110492
+ }
109493
110493
  const lookupUrl = formatIri(url);
109494
110494
  const portableMode = isPortableMode(this, options);
109495
110495
  if (portableMode) {
@@ -114384,7 +115384,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
114384
115384
  span.end();
114385
115385
  }
114386
115386
  };
114387
- if (isPortableIri(url)) return await dereferencePortable(url);
115387
+ if (isPortableIri(url)) {
115388
+ // A reference in a portable actor's own document, e.g., its outbox,
115389
+ // has no location hints, so the actor's gateways are used instead:
115390
+ return await dereferencePortable(
115391
+ url,
115392
+ options.gateways == null
115393
+ ? { inferredGateways: getReferrerGateways(this, url) }
115394
+ : {},
115395
+ );
115396
+ }
114388
115397
  const lookupUrl = formatIri(url);
114389
115398
  const portableMode = isPortableMode(this, options);
114390
115399
  if (portableMode) {
@@ -114952,7 +115961,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
114952
115961
  span.end();
114953
115962
  }
114954
115963
  };
114955
- if (isPortableIri(url)) return await dereferencePortable(url);
115964
+ if (isPortableIri(url)) {
115965
+ // A reference in a portable actor's own document, e.g., its outbox,
115966
+ // has no location hints, so the actor's gateways are used instead:
115967
+ return await dereferencePortable(
115968
+ url,
115969
+ options.gateways == null
115970
+ ? { inferredGateways: getReferrerGateways(this, url) }
115971
+ : {},
115972
+ );
115973
+ }
114956
115974
  const lookupUrl = formatIri(url);
114957
115975
  const portableMode = isPortableMode(this, options);
114958
115976
  if (portableMode) {
@@ -115574,7 +116592,16 @@ get gateways(): (URL)[] {
115574
116592
  span.end();
115575
116593
  }
115576
116594
  };
115577
- if (isPortableIri(url)) return await dereferencePortable(url);
116595
+ if (isPortableIri(url)) {
116596
+ // A reference in a portable actor's own document, e.g., its outbox,
116597
+ // has no location hints, so the actor's gateways are used instead:
116598
+ return await dereferencePortable(
116599
+ url,
116600
+ options.gateways == null
116601
+ ? { inferredGateways: getReferrerGateways(this, url) }
116602
+ : {},
116603
+ );
116604
+ }
115578
116605
  const lookupUrl = formatIri(url);
115579
116606
  const portableMode = isPortableMode(this, options);
115580
116607
  if (portableMode) {
@@ -116010,7 +117037,16 @@ get gateways(): (URL)[] {
116010
117037
  span.end();
116011
117038
  }
116012
117039
  };
116013
- if (isPortableIri(url)) return await dereferencePortable(url);
117040
+ if (isPortableIri(url)) {
117041
+ // A reference in a portable actor's own document, e.g., its outbox,
117042
+ // has no location hints, so the actor's gateways are used instead:
117043
+ return await dereferencePortable(
117044
+ url,
117045
+ options.gateways == null
117046
+ ? { inferredGateways: getReferrerGateways(this, url) }
117047
+ : {},
117048
+ );
117049
+ }
116014
117050
  const lookupUrl = formatIri(url);
116015
117051
  const portableMode = isPortableMode(this, options);
116016
117052
  if (portableMode) {
@@ -116443,7 +117479,16 @@ get gateways(): (URL)[] {
116443
117479
  span.end();
116444
117480
  }
116445
117481
  };
116446
- if (isPortableIri(url)) return await dereferencePortable(url);
117482
+ if (isPortableIri(url)) {
117483
+ // A reference in a portable actor's own document, e.g., its outbox,
117484
+ // has no location hints, so the actor's gateways are used instead:
117485
+ return await dereferencePortable(
117486
+ url,
117487
+ options.gateways == null
117488
+ ? { inferredGateways: getReferrerGateways(this, url) }
117489
+ : {},
117490
+ );
117491
+ }
116447
117492
  const lookupUrl = formatIri(url);
116448
117493
  const portableMode = isPortableMode(this, options);
116449
117494
  if (portableMode) {
@@ -116856,7 +117901,16 @@ get gateways(): (URL)[] {
116856
117901
  span.end();
116857
117902
  }
116858
117903
  };
116859
- if (isPortableIri(url)) return await dereferencePortable(url);
117904
+ if (isPortableIri(url)) {
117905
+ // A reference in a portable actor's own document, e.g., its outbox,
117906
+ // has no location hints, so the actor's gateways are used instead:
117907
+ return await dereferencePortable(
117908
+ url,
117909
+ options.gateways == null
117910
+ ? { inferredGateways: getReferrerGateways(this, url) }
117911
+ : {},
117912
+ );
117913
+ }
116860
117914
  const lookupUrl = formatIri(url);
116861
117915
  const portableMode = isPortableMode(this, options);
116862
117916
  if (portableMode) {
@@ -117272,7 +118326,16 @@ get gateways(): (URL)[] {
117272
118326
  span.end();
117273
118327
  }
117274
118328
  };
117275
- if (isPortableIri(url)) return await dereferencePortable(url);
118329
+ if (isPortableIri(url)) {
118330
+ // A reference in a portable actor's own document, e.g., its outbox,
118331
+ // has no location hints, so the actor's gateways are used instead:
118332
+ return await dereferencePortable(
118333
+ url,
118334
+ options.gateways == null
118335
+ ? { inferredGateways: getReferrerGateways(this, url) }
118336
+ : {},
118337
+ );
118338
+ }
117276
118339
  const lookupUrl = formatIri(url);
117277
118340
  const portableMode = isPortableMode(this, options);
117278
118341
  if (portableMode) {
@@ -117686,7 +118749,16 @@ get gateways(): (URL)[] {
117686
118749
  span.end();
117687
118750
  }
117688
118751
  };
117689
- if (isPortableIri(url)) return await dereferencePortable(url);
118752
+ if (isPortableIri(url)) {
118753
+ // A reference in a portable actor's own document, e.g., its outbox,
118754
+ // has no location hints, so the actor's gateways are used instead:
118755
+ return await dereferencePortable(
118756
+ url,
118757
+ options.gateways == null
118758
+ ? { inferredGateways: getReferrerGateways(this, url) }
118759
+ : {},
118760
+ );
118761
+ }
117690
118762
  const lookupUrl = formatIri(url);
117691
118763
  const portableMode = isPortableMode(this, options);
117692
118764
  if (portableMode) {
@@ -118098,7 +119170,16 @@ get gateways(): (URL)[] {
118098
119170
  span.end();
118099
119171
  }
118100
119172
  };
118101
- if (isPortableIri(url)) return await dereferencePortable(url);
119173
+ if (isPortableIri(url)) {
119174
+ // A reference in a portable actor's own document, e.g., its outbox,
119175
+ // has no location hints, so the actor's gateways are used instead:
119176
+ return await dereferencePortable(
119177
+ url,
119178
+ options.gateways == null
119179
+ ? { inferredGateways: getReferrerGateways(this, url) }
119180
+ : {},
119181
+ );
119182
+ }
118102
119183
  const lookupUrl = formatIri(url);
118103
119184
  const portableMode = isPortableMode(this, options);
118104
119185
  if (portableMode) {
@@ -118510,7 +119591,16 @@ get gateways(): (URL)[] {
118510
119591
  span.end();
118511
119592
  }
118512
119593
  };
118513
- if (isPortableIri(url)) return await dereferencePortable(url);
119594
+ if (isPortableIri(url)) {
119595
+ // A reference in a portable actor's own document, e.g., its outbox,
119596
+ // has no location hints, so the actor's gateways are used instead:
119597
+ return await dereferencePortable(
119598
+ url,
119599
+ options.gateways == null
119600
+ ? { inferredGateways: getReferrerGateways(this, url) }
119601
+ : {},
119602
+ );
119603
+ }
118514
119604
  const lookupUrl = formatIri(url);
118515
119605
  const portableMode = isPortableMode(this, options);
118516
119606
  if (portableMode) {
@@ -118919,7 +120009,16 @@ get gateways(): (URL)[] {
118919
120009
  span.end();
118920
120010
  }
118921
120011
  };
118922
- if (isPortableIri(url)) return await dereferencePortable(url);
120012
+ if (isPortableIri(url)) {
120013
+ // A reference in a portable actor's own document, e.g., its outbox,
120014
+ // has no location hints, so the actor's gateways are used instead:
120015
+ return await dereferencePortable(
120016
+ url,
120017
+ options.gateways == null
120018
+ ? { inferredGateways: getReferrerGateways(this, url) }
120019
+ : {},
120020
+ );
120021
+ }
118923
120022
  const lookupUrl = formatIri(url);
118924
120023
  const portableMode = isPortableMode(this, options);
118925
120024
  if (portableMode) {
@@ -119408,7 +120507,16 @@ get gateways(): (URL)[] {
119408
120507
  span.end();
119409
120508
  }
119410
120509
  };
119411
- if (isPortableIri(url)) return await dereferencePortable(url);
120510
+ if (isPortableIri(url)) {
120511
+ // A reference in a portable actor's own document, e.g., its outbox,
120512
+ // has no location hints, so the actor's gateways are used instead:
120513
+ return await dereferencePortable(
120514
+ url,
120515
+ options.gateways == null
120516
+ ? { inferredGateways: getReferrerGateways(this, url) }
120517
+ : {},
120518
+ );
120519
+ }
119412
120520
  const lookupUrl = formatIri(url);
119413
120521
  const portableMode = isPortableMode(this, options);
119414
120522
  if (portableMode) {
@@ -119876,7 +120984,16 @@ get gateways(): (URL)[] {
119876
120984
  span.end();
119877
120985
  }
119878
120986
  };
119879
- if (isPortableIri(url)) return await dereferencePortable(url);
120987
+ if (isPortableIri(url)) {
120988
+ // A reference in a portable actor's own document, e.g., its outbox,
120989
+ // has no location hints, so the actor's gateways are used instead:
120990
+ return await dereferencePortable(
120991
+ url,
120992
+ options.gateways == null
120993
+ ? { inferredGateways: getReferrerGateways(this, url) }
120994
+ : {},
120995
+ );
120996
+ }
119880
120997
  const lookupUrl = formatIri(url);
119881
120998
  const portableMode = isPortableMode(this, options);
119882
120999
  if (portableMode) {
@@ -120512,7 +121629,16 @@ get gateways(): (URL)[] {
120512
121629
  span.end();
120513
121630
  }
120514
121631
  };
120515
- if (isPortableIri(url)) return await dereferencePortable(url);
121632
+ if (isPortableIri(url)) {
121633
+ // A reference in a portable actor's own document, e.g., its outbox,
121634
+ // has no location hints, so the actor's gateways are used instead:
121635
+ return await dereferencePortable(
121636
+ url,
121637
+ options.gateways == null
121638
+ ? { inferredGateways: getReferrerGateways(this, url) }
121639
+ : {},
121640
+ );
121641
+ }
120516
121642
  const lookupUrl = formatIri(url);
120517
121643
  const portableMode = isPortableMode(this, options);
120518
121644
  if (portableMode) {
@@ -125188,7 +126314,16 @@ proofs?: (DataIntegrityProof | URL)[];interactionPolicy?: InteractionPolicy | nu
125188
126314
  span.end();
125189
126315
  }
125190
126316
  };
125191
- if (isPortableIri(url)) return await dereferencePortable(url);
126317
+ if (isPortableIri(url)) {
126318
+ // A reference in a portable actor's own document, e.g., its outbox,
126319
+ // has no location hints, so the actor's gateways are used instead:
126320
+ return await dereferencePortable(
126321
+ url,
126322
+ options.gateways == null
126323
+ ? { inferredGateways: getReferrerGateways(this, url) }
126324
+ : {},
126325
+ );
126326
+ }
125192
126327
  const lookupUrl = formatIri(url);
125193
126328
  const portableMode = isPortableMode(this, options);
125194
126329
  if (portableMode) {
@@ -126362,7 +127497,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
126362
127497
  span.end();
126363
127498
  }
126364
127499
  };
126365
- if (isPortableIri(url)) return await dereferencePortable(url);
127500
+ if (isPortableIri(url)) {
127501
+ // A reference in a portable actor's own document, e.g., its outbox,
127502
+ // has no location hints, so the actor's gateways are used instead:
127503
+ return await dereferencePortable(
127504
+ url,
127505
+ options.gateways == null
127506
+ ? { inferredGateways: getReferrerGateways(this, url) }
127507
+ : {},
127508
+ );
127509
+ }
126366
127510
  const lookupUrl = formatIri(url);
126367
127511
  const portableMode = isPortableMode(this, options);
126368
127512
  if (portableMode) {
@@ -126778,7 +127922,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
126778
127922
  span.end();
126779
127923
  }
126780
127924
  };
126781
- if (isPortableIri(url)) return await dereferencePortable(url);
127925
+ if (isPortableIri(url)) {
127926
+ // A reference in a portable actor's own document, e.g., its outbox,
127927
+ // has no location hints, so the actor's gateways are used instead:
127928
+ return await dereferencePortable(
127929
+ url,
127930
+ options.gateways == null
127931
+ ? { inferredGateways: getReferrerGateways(this, url) }
127932
+ : {},
127933
+ );
127934
+ }
126782
127935
  const lookupUrl = formatIri(url);
126783
127936
  const portableMode = isPortableMode(this, options);
126784
127937
  if (portableMode) {
@@ -127224,7 +128377,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
127224
128377
  span.end();
127225
128378
  }
127226
128379
  };
127227
- if (isPortableIri(url)) return await dereferencePortable(url);
128380
+ if (isPortableIri(url)) {
128381
+ // A reference in a portable actor's own document, e.g., its outbox,
128382
+ // has no location hints, so the actor's gateways are used instead:
128383
+ return await dereferencePortable(
128384
+ url,
128385
+ options.gateways == null
128386
+ ? { inferredGateways: getReferrerGateways(this, url) }
128387
+ : {},
128388
+ );
128389
+ }
127228
128390
  const lookupUrl = formatIri(url);
127229
128391
  const portableMode = isPortableMode(this, options);
127230
128392
  if (portableMode) {
@@ -127658,7 +128820,16 @@ instruments?: (Object | URL)[];exclusiveOptions?: (Object | URL)[];inclusiveOpti
127658
128820
  span.end();
127659
128821
  }
127660
128822
  };
127661
- if (isPortableIri(url)) return await dereferencePortable(url);
128823
+ if (isPortableIri(url)) {
128824
+ // A reference in a portable actor's own document, e.g., its outbox,
128825
+ // has no location hints, so the actor's gateways are used instead:
128826
+ return await dereferencePortable(
128827
+ url,
128828
+ options.gateways == null
128829
+ ? { inferredGateways: getReferrerGateways(this, url) }
128830
+ : {},
128831
+ );
128832
+ }
127662
128833
  const lookupUrl = formatIri(url);
127663
128834
  const portableMode = isPortableMode(this, options);
127664
128835
  if (portableMode) {
@@ -130075,7 +131246,16 @@ relationships?: (Object | URL)[];}
130075
131246
  span.end();
130076
131247
  }
130077
131248
  };
130078
- if (isPortableIri(url)) return await dereferencePortable(url);
131249
+ if (isPortableIri(url)) {
131250
+ // A reference in a portable actor's own document, e.g., its outbox,
131251
+ // has no location hints, so the actor's gateways are used instead:
131252
+ return await dereferencePortable(
131253
+ url,
131254
+ options.gateways == null
131255
+ ? { inferredGateways: getReferrerGateways(this, url) }
131256
+ : {},
131257
+ );
131258
+ }
130079
131259
  const lookupUrl = formatIri(url);
130080
131260
  const portableMode = isPortableMode(this, options);
130081
131261
  if (portableMode) {
@@ -130487,7 +131667,16 @@ relationships?: (Object | URL)[];}
130487
131667
  span.end();
130488
131668
  }
130489
131669
  };
130490
- if (isPortableIri(url)) return await dereferencePortable(url);
131670
+ if (isPortableIri(url)) {
131671
+ // A reference in a portable actor's own document, e.g., its outbox,
131672
+ // has no location hints, so the actor's gateways are used instead:
131673
+ return await dereferencePortable(
131674
+ url,
131675
+ options.gateways == null
131676
+ ? { inferredGateways: getReferrerGateways(this, url) }
131677
+ : {},
131678
+ );
131679
+ }
130491
131680
  const lookupUrl = formatIri(url);
130492
131681
  const portableMode = isPortableMode(this, options);
130493
131682
  if (portableMode) {
@@ -131057,7 +132246,16 @@ relationships?: (Object | URL)[];}
131057
132246
  span.end();
131058
132247
  }
131059
132248
  };
131060
- if (isPortableIri(url)) return await dereferencePortable(url);
132249
+ if (isPortableIri(url)) {
132250
+ // A reference in a portable actor's own document, e.g., its outbox,
132251
+ // has no location hints, so the actor's gateways are used instead:
132252
+ return await dereferencePortable(
132253
+ url,
132254
+ options.gateways == null
132255
+ ? { inferredGateways: getReferrerGateways(this, url) }
132256
+ : {},
132257
+ );
132258
+ }
131061
132259
  const lookupUrl = formatIri(url);
131062
132260
  const portableMode = isPortableMode(this, options);
131063
132261
  if (portableMode) {
@@ -133817,7 +135015,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
133817
135015
  span.end();
133818
135016
  }
133819
135017
  };
133820
- if (isPortableIri(url)) return await dereferencePortable(url);
135018
+ if (isPortableIri(url)) {
135019
+ // A reference in a portable actor's own document, e.g., its outbox,
135020
+ // has no location hints, so the actor's gateways are used instead:
135021
+ return await dereferencePortable(
135022
+ url,
135023
+ options.gateways == null
135024
+ ? { inferredGateways: getReferrerGateways(this, url) }
135025
+ : {},
135026
+ );
135027
+ }
133821
135028
  const lookupUrl = formatIri(url);
133822
135029
  const portableMode = isPortableMode(this, options);
133823
135030
  if (portableMode) {
@@ -134385,7 +135592,16 @@ get preferredUsernames(): ((string | LanguageString))[] {
134385
135592
  span.end();
134386
135593
  }
134387
135594
  };
134388
- if (isPortableIri(url)) return await dereferencePortable(url);
135595
+ if (isPortableIri(url)) {
135596
+ // A reference in a portable actor's own document, e.g., its outbox,
135597
+ // has no location hints, so the actor's gateways are used instead:
135598
+ return await dereferencePortable(
135599
+ url,
135600
+ options.gateways == null
135601
+ ? { inferredGateways: getReferrerGateways(this, url) }
135602
+ : {},
135603
+ );
135604
+ }
134389
135605
  const lookupUrl = formatIri(url);
134390
135606
  const portableMode = isPortableMode(this, options);
134391
135607
  if (portableMode) {
@@ -135007,7 +136223,16 @@ get gateways(): (URL)[] {
135007
136223
  span.end();
135008
136224
  }
135009
136225
  };
135010
- if (isPortableIri(url)) return await dereferencePortable(url);
136226
+ if (isPortableIri(url)) {
136227
+ // A reference in a portable actor's own document, e.g., its outbox,
136228
+ // has no location hints, so the actor's gateways are used instead:
136229
+ return await dereferencePortable(
136230
+ url,
136231
+ options.gateways == null
136232
+ ? { inferredGateways: getReferrerGateways(this, url) }
136233
+ : {},
136234
+ );
136235
+ }
135011
136236
  const lookupUrl = formatIri(url);
135012
136237
  const portableMode = isPortableMode(this, options);
135013
136238
  if (portableMode) {
@@ -135443,7 +136668,16 @@ get gateways(): (URL)[] {
135443
136668
  span.end();
135444
136669
  }
135445
136670
  };
135446
- if (isPortableIri(url)) return await dereferencePortable(url);
136671
+ if (isPortableIri(url)) {
136672
+ // A reference in a portable actor's own document, e.g., its outbox,
136673
+ // has no location hints, so the actor's gateways are used instead:
136674
+ return await dereferencePortable(
136675
+ url,
136676
+ options.gateways == null
136677
+ ? { inferredGateways: getReferrerGateways(this, url) }
136678
+ : {},
136679
+ );
136680
+ }
135447
136681
  const lookupUrl = formatIri(url);
135448
136682
  const portableMode = isPortableMode(this, options);
135449
136683
  if (portableMode) {
@@ -135876,7 +137110,16 @@ get gateways(): (URL)[] {
135876
137110
  span.end();
135877
137111
  }
135878
137112
  };
135879
- if (isPortableIri(url)) return await dereferencePortable(url);
137113
+ if (isPortableIri(url)) {
137114
+ // A reference in a portable actor's own document, e.g., its outbox,
137115
+ // has no location hints, so the actor's gateways are used instead:
137116
+ return await dereferencePortable(
137117
+ url,
137118
+ options.gateways == null
137119
+ ? { inferredGateways: getReferrerGateways(this, url) }
137120
+ : {},
137121
+ );
137122
+ }
135880
137123
  const lookupUrl = formatIri(url);
135881
137124
  const portableMode = isPortableMode(this, options);
135882
137125
  if (portableMode) {
@@ -136289,7 +137532,16 @@ get gateways(): (URL)[] {
136289
137532
  span.end();
136290
137533
  }
136291
137534
  };
136292
- if (isPortableIri(url)) return await dereferencePortable(url);
137535
+ if (isPortableIri(url)) {
137536
+ // A reference in a portable actor's own document, e.g., its outbox,
137537
+ // has no location hints, so the actor's gateways are used instead:
137538
+ return await dereferencePortable(
137539
+ url,
137540
+ options.gateways == null
137541
+ ? { inferredGateways: getReferrerGateways(this, url) }
137542
+ : {},
137543
+ );
137544
+ }
136293
137545
  const lookupUrl = formatIri(url);
136294
137546
  const portableMode = isPortableMode(this, options);
136295
137547
  if (portableMode) {
@@ -136705,7 +137957,16 @@ get gateways(): (URL)[] {
136705
137957
  span.end();
136706
137958
  }
136707
137959
  };
136708
- if (isPortableIri(url)) return await dereferencePortable(url);
137960
+ if (isPortableIri(url)) {
137961
+ // A reference in a portable actor's own document, e.g., its outbox,
137962
+ // has no location hints, so the actor's gateways are used instead:
137963
+ return await dereferencePortable(
137964
+ url,
137965
+ options.gateways == null
137966
+ ? { inferredGateways: getReferrerGateways(this, url) }
137967
+ : {},
137968
+ );
137969
+ }
136709
137970
  const lookupUrl = formatIri(url);
136710
137971
  const portableMode = isPortableMode(this, options);
136711
137972
  if (portableMode) {
@@ -137119,7 +138380,16 @@ get gateways(): (URL)[] {
137119
138380
  span.end();
137120
138381
  }
137121
138382
  };
137122
- if (isPortableIri(url)) return await dereferencePortable(url);
138383
+ if (isPortableIri(url)) {
138384
+ // A reference in a portable actor's own document, e.g., its outbox,
138385
+ // has no location hints, so the actor's gateways are used instead:
138386
+ return await dereferencePortable(
138387
+ url,
138388
+ options.gateways == null
138389
+ ? { inferredGateways: getReferrerGateways(this, url) }
138390
+ : {},
138391
+ );
138392
+ }
137123
138393
  const lookupUrl = formatIri(url);
137124
138394
  const portableMode = isPortableMode(this, options);
137125
138395
  if (portableMode) {
@@ -137531,7 +138801,16 @@ get gateways(): (URL)[] {
137531
138801
  span.end();
137532
138802
  }
137533
138803
  };
137534
- if (isPortableIri(url)) return await dereferencePortable(url);
138804
+ if (isPortableIri(url)) {
138805
+ // A reference in a portable actor's own document, e.g., its outbox,
138806
+ // has no location hints, so the actor's gateways are used instead:
138807
+ return await dereferencePortable(
138808
+ url,
138809
+ options.gateways == null
138810
+ ? { inferredGateways: getReferrerGateways(this, url) }
138811
+ : {},
138812
+ );
138813
+ }
137535
138814
  const lookupUrl = formatIri(url);
137536
138815
  const portableMode = isPortableMode(this, options);
137537
138816
  if (portableMode) {
@@ -137943,7 +139222,16 @@ get gateways(): (URL)[] {
137943
139222
  span.end();
137944
139223
  }
137945
139224
  };
137946
- if (isPortableIri(url)) return await dereferencePortable(url);
139225
+ if (isPortableIri(url)) {
139226
+ // A reference in a portable actor's own document, e.g., its outbox,
139227
+ // has no location hints, so the actor's gateways are used instead:
139228
+ return await dereferencePortable(
139229
+ url,
139230
+ options.gateways == null
139231
+ ? { inferredGateways: getReferrerGateways(this, url) }
139232
+ : {},
139233
+ );
139234
+ }
137947
139235
  const lookupUrl = formatIri(url);
137948
139236
  const portableMode = isPortableMode(this, options);
137949
139237
  if (portableMode) {
@@ -138352,7 +139640,16 @@ get gateways(): (URL)[] {
138352
139640
  span.end();
138353
139641
  }
138354
139642
  };
138355
- if (isPortableIri(url)) return await dereferencePortable(url);
139643
+ if (isPortableIri(url)) {
139644
+ // A reference in a portable actor's own document, e.g., its outbox,
139645
+ // has no location hints, so the actor's gateways are used instead:
139646
+ return await dereferencePortable(
139647
+ url,
139648
+ options.gateways == null
139649
+ ? { inferredGateways: getReferrerGateways(this, url) }
139650
+ : {},
139651
+ );
139652
+ }
138356
139653
  const lookupUrl = formatIri(url);
138357
139654
  const portableMode = isPortableMode(this, options);
138358
139655
  if (portableMode) {
@@ -138841,7 +140138,16 @@ get gateways(): (URL)[] {
138841
140138
  span.end();
138842
140139
  }
138843
140140
  };
138844
- if (isPortableIri(url)) return await dereferencePortable(url);
140141
+ if (isPortableIri(url)) {
140142
+ // A reference in a portable actor's own document, e.g., its outbox,
140143
+ // has no location hints, so the actor's gateways are used instead:
140144
+ return await dereferencePortable(
140145
+ url,
140146
+ options.gateways == null
140147
+ ? { inferredGateways: getReferrerGateways(this, url) }
140148
+ : {},
140149
+ );
140150
+ }
138845
140151
  const lookupUrl = formatIri(url);
138846
140152
  const portableMode = isPortableMode(this, options);
138847
140153
  if (portableMode) {
@@ -139309,7 +140615,16 @@ get gateways(): (URL)[] {
139309
140615
  span.end();
139310
140616
  }
139311
140617
  };
139312
- if (isPortableIri(url)) return await dereferencePortable(url);
140618
+ if (isPortableIri(url)) {
140619
+ // A reference in a portable actor's own document, e.g., its outbox,
140620
+ // has no location hints, so the actor's gateways are used instead:
140621
+ return await dereferencePortable(
140622
+ url,
140623
+ options.gateways == null
140624
+ ? { inferredGateways: getReferrerGateways(this, url) }
140625
+ : {},
140626
+ );
140627
+ }
139313
140628
  const lookupUrl = formatIri(url);
139314
140629
  const portableMode = isPortableMode(this, options);
139315
140630
  if (portableMode) {
@@ -139945,7 +141260,16 @@ get gateways(): (URL)[] {
139945
141260
  span.end();
139946
141261
  }
139947
141262
  };
139948
- if (isPortableIri(url)) return await dereferencePortable(url);
141263
+ if (isPortableIri(url)) {
141264
+ // A reference in a portable actor's own document, e.g., its outbox,
141265
+ // has no location hints, so the actor's gateways are used instead:
141266
+ return await dereferencePortable(
141267
+ url,
141268
+ options.gateways == null
141269
+ ? { inferredGateways: getReferrerGateways(this, url) }
141270
+ : {},
141271
+ );
141272
+ }
139949
141273
  const lookupUrl = formatIri(url);
139950
141274
  const portableMode = isPortableMode(this, options);
139951
141275
  if (portableMode) {