@firebase/firestore 4.4.0-canary.2e32eebb5 → 4.4.0-canary.50b2182d7

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.
@@ -66,7 +66,7 @@ User.MOCK_USER = new User("mock-user");
66
66
  * See the License for the specific language governing permissions and
67
67
  * limitations under the License.
68
68
  */
69
- let S = "10.7.1-canary.2e32eebb5";
69
+ let S = "10.7.1-canary.50b2182d7";
70
70
 
71
71
  /**
72
72
  * @license
@@ -5837,16 +5837,16 @@ class BloomFilter {
5837
5837
  throw new __PRIVATE_BloomFilterError(`Invalid padding when bitmap length is 0: ${t}`);
5838
5838
  this.Te = 8 * e.length - t,
5839
5839
  // Set the bit count in Integer to avoid repetition in mightContain().
5840
- this.Ee = Integer.fromNumber(this.Te);
5840
+ this.de = Integer.fromNumber(this.Te);
5841
5841
  }
5842
5842
  // Calculate the ith hash value based on the hashed 64bit integers,
5843
5843
  // and calculate its corresponding bit index in the bitmap to be checked.
5844
- de(e, t, n) {
5844
+ Ee(e, t, n) {
5845
5845
  // Calculate hashed value h(i) = h1 + (i * h2).
5846
5846
  let r = e.add(t.multiply(Integer.fromNumber(n)));
5847
5847
  // Wrap if hash value overflow 64bit.
5848
5848
  return 1 === r.compare(le) && (r = new Integer([ r.getBits(0), r.getBits(1) ], 0)),
5849
- r.modulo(this.Ee).toNumber();
5849
+ r.modulo(this.de).toNumber();
5850
5850
  }
5851
5851
  // Return whether the bit on the given index in the bitmap is set to 1.
5852
5852
  Ae(e) {
@@ -5857,7 +5857,7 @@ class BloomFilter {
5857
5857
  if (0 === this.Te) return !1;
5858
5858
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5859
5859
  for (let e = 0; e < this.hashCount; e++) {
5860
- const t = this.de(n, r, e);
5860
+ const t = this.Ee(n, r, e);
5861
5861
  if (!this.Ae(t)) return !1;
5862
5862
  }
5863
5863
  return !0;
@@ -5870,7 +5870,7 @@ class BloomFilter {
5870
5870
  if (0 === this.Te) return;
5871
5871
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5872
5872
  for (let e = 0; e < this.hashCount; e++) {
5873
- const t = this.de(n, r, e);
5873
+ const t = this.Ee(n, r, e);
5874
5874
  this.Re(t);
5875
5875
  }
5876
5876
  }
@@ -7583,18 +7583,18 @@ class __PRIVATE_FirestoreIndexValueWriter {
7583
7583
  }
7584
7584
  Pt(e, t) {
7585
7585
  if ("nullValue" in e) this.Tt(t, 5); else if ("booleanValue" in e) this.Tt(t, 10),
7586
- t.Et(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Tt(t, 15), t.Et(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7586
+ t.dt(e.booleanValue ? 1 : 0); else if ("integerValue" in e) this.Tt(t, 15), t.dt(__PRIVATE_normalizeNumber(e.integerValue)); else if ("doubleValue" in e) {
7587
7587
  const n = __PRIVATE_normalizeNumber(e.doubleValue);
7588
7588
  isNaN(n) ? this.Tt(t, 13) : (this.Tt(t, 15), __PRIVATE_isNegativeZero(n) ?
7589
7589
  // -0.0, 0 and 0.0 are all considered the same
7590
- t.Et(0) : t.Et(n));
7590
+ t.dt(0) : t.dt(n));
7591
7591
  } else if ("timestampValue" in e) {
7592
7592
  const n = e.timestampValue;
7593
- this.Tt(t, 20), "string" == typeof n ? t.dt(n) : (t.dt(`${n.seconds || ""}`), t.Et(n.nanos || 0));
7593
+ this.Tt(t, 20), "string" == typeof n ? t.Et(n) : (t.Et(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7594
7594
  } else if ("stringValue" in e) this.At(e.stringValue, t), this.Rt(t); else if ("bytesValue" in e) this.Tt(t, 30),
7595
7595
  t.Vt(__PRIVATE_normalizeByteString(e.bytesValue)), this.Rt(t); else if ("referenceValue" in e) this.ft(e.referenceValue, t); else if ("geoPointValue" in e) {
7596
7596
  const n = e.geoPointValue;
7597
- this.Tt(t, 45), t.Et(n.latitude || 0), t.Et(n.longitude || 0);
7597
+ this.Tt(t, 45), t.dt(n.latitude || 0), t.dt(n.longitude || 0);
7598
7598
  } else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Tt(t, Number.MAX_SAFE_INTEGER) : (this.gt(e.mapValue, t),
7599
7599
  this.Rt(t)) : "arrayValue" in e ? (this.yt(e.arrayValue, t), this.Rt(t)) : fail();
7600
7600
  }
@@ -7602,7 +7602,7 @@ class __PRIVATE_FirestoreIndexValueWriter {
7602
7602
  this.Tt(t, 25), this.wt(e, t);
7603
7603
  }
7604
7604
  wt(e, t) {
7605
- t.dt(e);
7605
+ t.Et(e);
7606
7606
  }
7607
7607
  gt(e, t) {
7608
7608
  const n = e.fields || {};
@@ -7621,13 +7621,13 @@ class __PRIVATE_FirestoreIndexValueWriter {
7621
7621
  }));
7622
7622
  }
7623
7623
  Tt(e, t) {
7624
- e.Et(t);
7624
+ e.dt(t);
7625
7625
  }
7626
7626
  Rt(e) {
7627
7627
  // While the SDK does not implement truncation, the truncation marker is
7628
7628
  // used to terminate all variable length values (which are strings, bytes,
7629
7629
  // references, arrays and maps).
7630
- e.Et(2);
7630
+ e.dt(2);
7631
7631
  }
7632
7632
  }
7633
7633
 
@@ -7814,10 +7814,10 @@ class __PRIVATE_AscendingIndexByteEncoder {
7814
7814
  Vt(e) {
7815
7815
  this.Wt.bt(e);
7816
7816
  }
7817
- dt(e) {
7817
+ Et(e) {
7818
7818
  this.Wt.xt(e);
7819
7819
  }
7820
- Et(e) {
7820
+ dt(e) {
7821
7821
  this.Wt.Nt(e);
7822
7822
  }
7823
7823
  It() {
@@ -7832,10 +7832,10 @@ class __PRIVATE_DescendingIndexByteEncoder {
7832
7832
  Vt(e) {
7833
7833
  this.Wt.vt(e);
7834
7834
  }
7835
- dt(e) {
7835
+ Et(e) {
7836
7836
  this.Wt.Ot(e);
7837
7837
  }
7838
- Et(e) {
7838
+ dt(e) {
7839
7839
  this.Wt.kt(e);
7840
7840
  }
7841
7841
  It() {
@@ -8566,7 +8566,7 @@ class __PRIVATE_IndexedDbIndexManager {
8566
8566
  // combined with the values from the query bounds.
8567
8567
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8568
8568
  for (let c = 0; c < _; ++c) {
8569
- const _ = t ? this.In(t[c / a]) : Te, l = this.Tn(e, _, n[c % a], r), h = this.En(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8569
+ const _ = t ? this.In(t[c / a]) : Te, l = this.Tn(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8570
8570
  /* inclusive= */ !0)));
8571
8571
  u.push(...this.createRange(l, h, P));
8572
8572
  }
@@ -8576,7 +8576,7 @@ class __PRIVATE_IndexedDbIndexManager {
8576
8576
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8577
8577
  return r ? i : i.Ht();
8578
8578
  }
8579
- /** Generates the upper bound for `arrayValue` and `directionalValue`. */ En(e, t, n, r) {
8579
+ /** Generates the upper bound for `arrayValue` and `directionalValue`. */ dn(e, t, n, r) {
8580
8580
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8581
8581
  return r ? i.Ht() : i;
8582
8582
  }
@@ -8624,7 +8624,7 @@ class __PRIVATE_IndexedDbIndexManager {
8624
8624
  * Returns the byte encoded form of the directional values in the field index.
8625
8625
  * Returns `null` if the document does not have all fields specified in the
8626
8626
  * index.
8627
- */ dn(e, t) {
8627
+ */ En(e, t) {
8628
8628
  const n = new __PRIVATE_IndexByteEncoder;
8629
8629
  for (const r of __PRIVATE_fieldIndexGetDirectionalSegments(e)) {
8630
8630
  const e = t.data.field(r.fieldPath);
@@ -8757,7 +8757,7 @@ class __PRIVATE_IndexedDbIndexManager {
8757
8757
  }
8758
8758
  /** Creates the index entries for the given document. */ pn(e, t) {
8759
8759
  let n = new SortedSet(__PRIVATE_indexEntryComparator);
8760
- const r = this.dn(t, e);
8760
+ const r = this.En(t, e);
8761
8761
  if (null == r) return n;
8762
8762
  const i = __PRIVATE_fieldIndexGetArraySegment(t);
8763
8763
  if (null != i) {
@@ -8906,7 +8906,7 @@ function __PRIVATE_getMinOffsetFromFieldIndexes(e) {
8906
8906
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8907
8907
  * See the License for the specific language governing permissions and
8908
8908
  * limitations under the License.
8909
- */ const Ee = {
8909
+ */ const de = {
8910
8910
  didRun: !1,
8911
8911
  sequenceNumbersCollected: 0,
8912
8912
  targetsRemoved: 0,
@@ -9639,8 +9639,8 @@ class __PRIVATE_TargetIdGenerator {
9639
9639
  }
9640
9640
  collect(e, t) {
9641
9641
  return -1 === this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", "Garbage collection skipped; disabled"),
9642
- PersistencePromise.resolve(Ee)) : this.getCacheSize(e).next((n => n < this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", `Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),
9643
- Ee) : this.Jn(e, t)));
9642
+ PersistencePromise.resolve(de)) : this.getCacheSize(e).next((n => n < this.params.cacheSizeCollectionThreshold ? (__PRIVATE_logDebug("LruGarbageCollector", `Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),
9643
+ de) : this.Jn(e, t)));
9644
9644
  }
9645
9645
  getCacheSize(e) {
9646
9646
  return this.zn.getCacheSize(e);
@@ -10691,14 +10691,14 @@ class OverlayedDocument {
10691
10691
  const n = new __PRIVATE_DocReference(e, t);
10692
10692
  this.hr = this.hr.add(n), this.Ir = this.Ir.add(n);
10693
10693
  }
10694
- /** Add references to the given document keys for the given ID. */ Er(e, t) {
10694
+ /** Add references to the given document keys for the given ID. */ dr(e, t) {
10695
10695
  e.forEach((e => this.addReference(e, t)));
10696
10696
  }
10697
10697
  /**
10698
10698
  * Removes a reference to the given document key for the given
10699
10699
  * ID.
10700
10700
  */ removeReference(e, t) {
10701
- this.dr(new __PRIVATE_DocReference(e, t));
10701
+ this.Er(new __PRIVATE_DocReference(e, t));
10702
10702
  }
10703
10703
  Ar(e, t) {
10704
10704
  e.forEach((e => this.removeReference(e, t)));
@@ -10709,13 +10709,13 @@ class OverlayedDocument {
10709
10709
  */ Rr(e) {
10710
10710
  const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
10711
10711
  return this.Ir.forEachInRange([ n, r ], (e => {
10712
- this.dr(e), i.push(e.key);
10712
+ this.Er(e), i.push(e.key);
10713
10713
  })), i;
10714
10714
  }
10715
10715
  Vr() {
10716
- this.hr.forEach((e => this.dr(e)));
10716
+ this.hr.forEach((e => this.Er(e)));
10717
10717
  }
10718
- dr(e) {
10718
+ Er(e) {
10719
10719
  this.hr = this.hr.delete(e), this.Ir = this.Ir.delete(e);
10720
10720
  }
10721
10721
  mr(e) {
@@ -11117,7 +11117,7 @@ class __PRIVATE_MemoryRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuf
11117
11117
  return PersistencePromise.resolve(n);
11118
11118
  }
11119
11119
  addMatchingKeys(e, t, n) {
11120
- return this.Or.Er(t, n), PersistencePromise.resolve();
11120
+ return this.Or.dr(t, n), PersistencePromise.resolve();
11121
11121
  }
11122
11122
  removeMatchingKeys(e, t, n) {
11123
11123
  this.Or.Ar(t, n);
@@ -11655,7 +11655,7 @@ function __PRIVATE_createQueryCache(e) {
11655
11655
  }), e.createObjectStore("targetGlobal");
11656
11656
  }
11657
11657
 
11658
- const de = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";
11658
+ const Ee = "Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.";
11659
11659
 
11660
11660
  /**
11661
11661
  * Oldest acceptable age in milliseconds for client metadata before the client
@@ -11736,7 +11736,7 @@ class __PRIVATE_IndexedDbPersistence {
11736
11736
  this.serializer = new __PRIVATE_LocalSerializer(_), this.Ti = new __PRIVATE_SimpleDb(this.Ii, this.ai, new __PRIVATE_SchemaConverter(this.serializer)),
11737
11737
  this.qr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
11738
11738
  this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
11739
- this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ei = this.window.localStorage : (this.Ei = null,
11739
+ this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.di = this.window.localStorage : (this.di = null,
11740
11740
  !1 === u && __PRIVATE_logError("IndexedDbPersistence", "LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."));
11741
11741
  }
11742
11742
  /**
@@ -11747,11 +11747,11 @@ class __PRIVATE_IndexedDbPersistence {
11747
11747
  // NOTE: This is expected to fail sometimes (in the case of another tab
11748
11748
  // already having the persistence lock), so it's the first thing we should
11749
11749
  // do.
11750
- return this.di().then((() => {
11750
+ return this.Ei().then((() => {
11751
11751
  if (!this.isPrimary && !this.allowTabSynchronization)
11752
11752
  // Fail `start()` if `synchronizeTabs` is disabled and we cannot
11753
11753
  // obtain the primary lease.
11754
- throw new FirestoreError(D.FAILED_PRECONDITION, de);
11754
+ throw new FirestoreError(D.FAILED_PRECONDITION, Ee);
11755
11755
  return this.Ai(), this.Ri(), this.Vi(), this.runTransaction("getHighestListenSequenceNumber", "readonly", (e => this.qr.getHighestSequenceNumber(e)));
11756
11756
  })).then((e => {
11757
11757
  this.Lr = new __PRIVATE_ListenSequence(e, this.oi);
@@ -11791,7 +11791,7 @@ class __PRIVATE_IndexedDbPersistence {
11791
11791
  // Schedule a primary lease refresh for immediate execution. The eventual
11792
11792
  // lease update will be propagated via `primaryStateListener`.
11793
11793
  this.si.enqueueAndForget((async () => {
11794
- this.started && await this.di();
11794
+ this.started && await this.Ei();
11795
11795
  })));
11796
11796
  }
11797
11797
  /**
@@ -11799,7 +11799,7 @@ class __PRIVATE_IndexedDbPersistence {
11799
11799
  * extend the primary lease for the local client. Asynchronously notifies the
11800
11800
  * primary state listener if the client either newly obtained or released its
11801
11801
  * primary lease.
11802
- */ di() {
11802
+ */ Ei() {
11803
11803
  return this.runTransaction("updateClientMetadataAndTryBecomePrimary", "readwrite", (e => __PRIVATE_clientMetadataStore(e).put({
11804
11804
  clientId: this.clientId,
11805
11805
  updateTimeMs: Date.now(),
@@ -11848,14 +11848,14 @@ class __PRIVATE_IndexedDbPersistence {
11848
11848
  // Ideally we'd delete the IndexedDb and LocalStorage zombie entries for
11849
11849
  // the client atomically, but we can't. So we opt to delete the IndexedDb
11850
11850
  // entries first to avoid potentially reviving a zombied client.
11851
- if (this.Ei) for (const t of e) this.Ei.removeItem(this.vi(t.clientId));
11851
+ if (this.di) for (const t of e) this.di.removeItem(this.vi(t.clientId));
11852
11852
  }
11853
11853
  }
11854
11854
  /**
11855
11855
  * Schedules a recurring timer to update the client metadata and to either
11856
11856
  * extend or acquire the primary lease if the client is eligible.
11857
11857
  */ Vi() {
11858
- this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.di().then((() => this.bi())).then((() => this.Vi()))));
11858
+ this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.Ei().then((() => this.bi())).then((() => this.Vi()))));
11859
11859
  }
11860
11860
  /** Checks whether `client` is the local client. */ wi(e) {
11861
11861
  return !!e && e.ownerId === this.clientId;
@@ -11893,7 +11893,7 @@ class __PRIVATE_IndexedDbPersistence {
11893
11893
  // settings is not supported.
11894
11894
  // TODO(b/114226234): Remove this check when `synchronizeTabs` can
11895
11895
  // no longer be turned off.
11896
- throw new FirestoreError(D.FAILED_PRECONDITION, de);
11896
+ throw new FirestoreError(D.FAILED_PRECONDITION, Ee);
11897
11897
  return !1;
11898
11898
  }
11899
11899
  }
@@ -11984,7 +11984,7 @@ class __PRIVATE_IndexedDbPersistence {
11984
11984
  // be turned off.
11985
11985
  Li(e) {
11986
11986
  return __PRIVATE_primaryClientStore(e).get("owner").next((e => {
11987
- if (null !== e && this.Di(e.leaseTimestampMs, 5e3) && !this.Fi(e.ownerId) && !this.wi(e) && !(this._i || this.allowTabSynchronization && e.allowTabSynchronization)) throw new FirestoreError(D.FAILED_PRECONDITION, de);
11987
+ if (null !== e && this.Di(e.leaseTimestampMs, 5e3) && !this.Fi(e.ownerId) && !this.wi(e) && !(this._i || this.allowTabSynchronization && e.allowTabSynchronization)) throw new FirestoreError(D.FAILED_PRECONDITION, Ee);
11988
11988
  }));
11989
11989
  }
11990
11990
  /**
@@ -12014,7 +12014,7 @@ class __PRIVATE_IndexedDbPersistence {
12014
12014
  Ai() {
12015
12015
  null !== this.document && "function" == typeof this.document.addEventListener && (this.ci = () => {
12016
12016
  this.si.enqueueAndForget((() => (this.inForeground = "visible" === this.document.visibilityState,
12017
- this.di())));
12017
+ this.Ei())));
12018
12018
  }, this.document.addEventListener("visibilitychange", this.ci), this.inForeground = "visible" === this.document.visibilityState);
12019
12019
  }
12020
12020
  xi() {
@@ -12055,7 +12055,7 @@ class __PRIVATE_IndexedDbPersistence {
12055
12055
  */ Fi(e) {
12056
12056
  var t;
12057
12057
  try {
12058
- const n = null !== (null === (t = this.Ei) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12058
+ const n = null !== (null === (t = this.di) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12059
12059
  return __PRIVATE_logDebug("IndexedDbPersistence", `Client '${e}' ${n ? "is" : "is not"} zombied in LocalStorage`),
12060
12060
  n;
12061
12061
  } catch (e) {
@@ -12068,16 +12068,16 @@ class __PRIVATE_IndexedDbPersistence {
12068
12068
  * Record client as zombied (a client that had its tab closed). Zombied
12069
12069
  * clients are ignored during primary tab selection.
12070
12070
  */ Mi() {
12071
- if (this.Ei) try {
12072
- this.Ei.setItem(this.vi(this.clientId), String(Date.now()));
12071
+ if (this.di) try {
12072
+ this.di.setItem(this.vi(this.clientId), String(Date.now()));
12073
12073
  } catch (e) {
12074
12074
  // Gracefully handle if LocalStorage isn't available / working.
12075
12075
  __PRIVATE_logError("Failed to set zombie client id.", e);
12076
12076
  }
12077
12077
  }
12078
12078
  /** Removes the zombied client entry if it exists. */ Ni() {
12079
- if (this.Ei) try {
12080
- this.Ei.removeItem(this.vi(this.clientId));
12079
+ if (this.di) try {
12080
+ this.di.removeItem(this.vi(this.clientId));
12081
12081
  } catch (e) {
12082
12082
  // Ignore
12083
12083
  }
@@ -12891,7 +12891,7 @@ class __PRIVATE_MutationMetadata {
12891
12891
  s && (i = new FirestoreError(r.error.code, r.error.message))), s ? new __PRIVATE_MutationMetadata(e, t, r.state, i) : (__PRIVATE_logError("SharedClientState", `Failed to parse mutation state for ID '${t}': ${n}`),
12892
12892
  null);
12893
12893
  }
12894
- Es() {
12894
+ ds() {
12895
12895
  const e = {
12896
12896
  state: this.state,
12897
12897
  updateTimeMs: Date.now()
@@ -12922,7 +12922,7 @@ class __PRIVATE_QueryTargetMetadata {
12922
12922
  i && (r = new FirestoreError(n.error.code, n.error.message))), i ? new __PRIVATE_QueryTargetMetadata(e, n.state, r) : (__PRIVATE_logError("SharedClientState", `Failed to parse target state for ID '${e}': ${t}`),
12923
12923
  null);
12924
12924
  }
12925
- Es() {
12925
+ ds() {
12926
12926
  const e = {
12927
12927
  state: this.state,
12928
12928
  updateTimeMs: Date.now()
@@ -12987,7 +12987,7 @@ class __PRIVATE_LocalClientState {
12987
12987
  constructor() {
12988
12988
  this.activeTargetIds = __PRIVATE_targetIdSet();
12989
12989
  }
12990
- ds(e) {
12990
+ Es(e) {
12991
12991
  this.activeTargetIds = this.activeTargetIds.add(e);
12992
12992
  }
12993
12993
  As(e) {
@@ -12996,7 +12996,7 @@ class __PRIVATE_LocalClientState {
12996
12996
  /**
12997
12997
  * Converts this entry into a JSON-encoded format we can use for WebStorage.
12998
12998
  * Does not encode `clientId` as it is part of the key in WebStorage.
12999
- */ Es() {
12999
+ */ ds() {
13000
13000
  const e = {
13001
13001
  activeTargetIds: this.activeTargetIds.toArray(),
13002
13002
  updateTimeMs: Date.now()
@@ -13131,7 +13131,7 @@ class __PRIVATE_LocalClientState {
13131
13131
  r && (t = r.state);
13132
13132
  }
13133
13133
  }
13134
- return this.Ls.ds(e), this.Fs(), t;
13134
+ return this.Ls.Es(e), this.Fs(), t;
13135
13135
  }
13136
13136
  removeLocalQueryTarget(e) {
13137
13137
  this.Ls.As(e), this.Fs();
@@ -13233,11 +13233,11 @@ class __PRIVATE_LocalClientState {
13233
13233
  return this.gs.get(this.Rs);
13234
13234
  }
13235
13235
  Fs() {
13236
- this.setItem(this.ys, this.Ls.Es());
13236
+ this.setItem(this.ys, this.Ls.ds());
13237
13237
  }
13238
13238
  Ns(e, t, n) {
13239
13239
  const r = new __PRIVATE_MutationMetadata(this.currentUser, e, t, n), i = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
13240
- this.setItem(i, r.Es());
13240
+ this.setItem(i, r.ds());
13241
13241
  }
13242
13242
  Bs(e) {
13243
13243
  const t = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
@@ -13252,7 +13252,7 @@ class __PRIVATE_LocalClientState {
13252
13252
  }
13253
13253
  ks(e, t, n) {
13254
13254
  const r = createWebStorageQueryTargetMetadataKey(this.persistenceKey, e), i = new __PRIVATE_QueryTargetMetadata(e, t, n);
13255
- this.setItem(r, i.Es());
13255
+ this.setItem(r, i.ds());
13256
13256
  }
13257
13257
  Qs(e) {
13258
13258
  const t = JSON.stringify(Array.from(e));
@@ -13340,7 +13340,7 @@ class __PRIVATE_MemorySharedClientState {
13340
13340
  // No op.
13341
13341
  }
13342
13342
  addLocalQueryTarget(e) {
13343
- return this.eo.ds(e), this.no[e] || "not-current";
13343
+ return this.eo.Es(e), this.no[e] || "not-current";
13344
13344
  }
13345
13345
  updateQueryState(e, t, n) {
13346
13346
  this.no[e] = t;
@@ -14354,7 +14354,7 @@ class __PRIVATE_PersistentStream {
14354
14354
  * Sends an initial streamToken to the server, performing the handshake
14355
14355
  * required to make the StreamingWrite RPC work. Subsequent
14356
14356
  * calls should wait until onHandshakeComplete was called.
14357
- */ E_() {
14357
+ */ d_() {
14358
14358
  // TODO(dimond): Support stream resumption. We intentionally do not set the
14359
14359
  // stream token on the handshake, ignoring any stream token we might have.
14360
14360
  const e = {};
@@ -14397,10 +14397,10 @@ class __PRIVATE_PersistentStream {
14397
14397
  class __PRIVATE_DatastoreImpl extends class Datastore {} {
14398
14398
  constructor(e, t, n, r) {
14399
14399
  super(), this.authCredentials = e, this.appCheckCredentials = t, this.connection = n,
14400
- this.serializer = r, this.d_ = !1;
14400
+ this.serializer = r, this.E_ = !1;
14401
14401
  }
14402
14402
  A_() {
14403
- if (this.d_) throw new FirestoreError(D.FAILED_PRECONDITION, "The client has already been terminated.");
14403
+ if (this.E_) throw new FirestoreError(D.FAILED_PRECONDITION, "The client has already been terminated.");
14404
14404
  }
14405
14405
  /** Invokes the provided RPC with auth and AppCheck tokens. */ wo(e, t, n) {
14406
14406
  return this.A_(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([r, i]) => this.connection.wo(e, t, n, r, i))).catch((e => {
@@ -14415,7 +14415,7 @@ class __PRIVATE_DatastoreImpl extends class Datastore {} {
14415
14415
  }));
14416
14416
  }
14417
14417
  terminate() {
14418
- this.d_ = !0, this.connection.terminate();
14418
+ this.E_ = !0, this.connection.terminate();
14419
14419
  }
14420
14420
  }
14421
14421
 
@@ -14875,7 +14875,7 @@ function __PRIVATE_startWriteStream(e) {
14875
14875
  }
14876
14876
 
14877
14877
  async function __PRIVATE_onWriteStreamOpen(e) {
14878
- __PRIVATE_ensureWriteStream(e).E_();
14878
+ __PRIVATE_ensureWriteStream(e).d_();
14879
14879
  }
14880
14880
 
14881
14881
  async function __PRIVATE_onWriteHandshakeComplete(e) {
@@ -15807,7 +15807,7 @@ class __PRIVATE_RemovedLimboDocument {
15807
15807
  }
15808
15808
  /**
15809
15809
  * Returns whether the doc for the given key should be in limbo.
15810
- */ Ea(e) {
15810
+ */ da(e) {
15811
15811
  // If the remote end says it's part of this query, it's not in limbo.
15812
15812
  return !this.ia.has(e) && (
15813
15813
  // The local store doesn't think it's a result, so it shouldn't be in limbo.
@@ -15827,7 +15827,7 @@ class __PRIVATE_RemovedLimboDocument {
15827
15827
  // updating many documents.
15828
15828
  const e = this.oa;
15829
15829
  this.oa = __PRIVATE_documentKeySet(), this.aa.forEach((e => {
15830
- this.Ea(e.key) && (this.oa = this.oa.add(e.key));
15830
+ this.da(e.key) && (this.oa = this.oa.add(e.key));
15831
15831
  }));
15832
15832
  // Diff the new limbo docs with the old limbo docs.
15833
15833
  const t = [];
@@ -15857,7 +15857,7 @@ class __PRIVATE_RemovedLimboDocument {
15857
15857
  * @returns The ViewChange that resulted from this synchronization.
15858
15858
  */
15859
15859
  // PORTING NOTE: Multi-tab only.
15860
- da(e) {
15860
+ Ea(e) {
15861
15861
  this.ia = e.ls, this.oa = __PRIVATE_documentKeySet();
15862
15862
  const t = this.ca(e.documents);
15863
15863
  return this.applyChanges(t, /* limboResolutionEnabled= */ !0);
@@ -16412,7 +16412,7 @@ function __PRIVATE_syncEngineGetRemoteKeysForTarget(e, t) {
16412
16412
  * from persistence.
16413
16413
  */ async function __PRIVATE_synchronizeViewAndComputeSnapshot(e, t) {
16414
16414
  const n = __PRIVATE_debugCast(e), r = await __PRIVATE_localStoreExecuteQuery(n.localStore, t.query,
16415
- /* usePreviousResults= */ !0), i = t.view.da(r);
16415
+ /* usePreviousResults= */ !0), i = t.view.Ea(r);
16416
16416
  return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.Ta),
16417
16417
  i;
16418
16418
  }
@@ -19281,11 +19281,11 @@ function __PRIVATE_isWrite(e) {
19281
19281
  /** Returns a new context with the specified settings overwritten. */ Tu(e) {
19282
19282
  return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
19283
19283
  }
19284
- Eu(e) {
19284
+ du(e) {
19285
19285
  var t;
19286
19286
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19287
19287
  path: n,
19288
- du: !1
19288
+ Eu: !1
19289
19289
  });
19290
19290
  return r.Au(e), r;
19291
19291
  }
@@ -19293,7 +19293,7 @@ function __PRIVATE_isWrite(e) {
19293
19293
  var t;
19294
19294
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19295
19295
  path: n,
19296
- du: !1
19296
+ Eu: !1
19297
19297
  });
19298
19298
  return r.Pu(), r;
19299
19299
  }
@@ -19302,7 +19302,7 @@ function __PRIVATE_isWrite(e) {
19302
19302
  // undefined.
19303
19303
  return this.Tu({
19304
19304
  path: void 0,
19305
- du: !0
19305
+ Eu: !0
19306
19306
  });
19307
19307
  }
19308
19308
  mu(e) {
@@ -19335,7 +19335,7 @@ function __PRIVATE_isWrite(e) {
19335
19335
  methodName: t,
19336
19336
  gu: n,
19337
19337
  path: FieldPath$1.emptyPath(),
19338
- du: !1,
19338
+ Eu: !1,
19339
19339
  fu: r
19340
19340
  }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);
19341
19341
  }
@@ -19395,7 +19395,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19395
19395
  Iu: 3 /* UserDataSource.Argument */ ,
19396
19396
  gu: t.settings.gu,
19397
19397
  methodName: e._methodName,
19398
- du: n
19398
+ Eu: n
19399
19399
  }, t.databaseId, t.serializer, t.ignoreUndefinedProperties);
19400
19400
  }
19401
19401
 
@@ -19557,7 +19557,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19557
19557
  // the set of values to be included for the IN query) that may directly
19558
19558
  // contain additional arrays (each representing an individual field
19559
19559
  // value), so we disable this validation.
19560
- if (t.settings.du && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19560
+ if (t.settings.Eu && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19561
19561
  return function __PRIVATE_parseArray(e, t) {
19562
19562
  const n = [];
19563
19563
  let r = 0;
@@ -19636,7 +19636,7 @@ function __PRIVATE_parseObject(e, t) {
19636
19636
  // If we encounter an empty object, we explicitly add it to the update
19637
19637
  // mask to ensure that the server creates a map entry.
19638
19638
  t.path && t.path.length > 0 && t.fieldMask.push(t.path) : forEach(e, ((e, r) => {
19639
- const i = __PRIVATE_parseData(r, t.Eu(e));
19639
+ const i = __PRIVATE_parseData(r, t.du(e));
19640
19640
  null != i && (n[e] = i);
19641
19641
  })), {
19642
19642
  mapValue: {
@@ -21796,9 +21796,9 @@ let Se = null;
21796
21796
  return r = Object.assign({
21797
21797
  useFetchStreams: t
21798
21798
  }, r), s._setSettings(r), s;
21799
- }), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.4.0-canary.2e32eebb5", e),
21799
+ }), "PUBLIC").setMultipleInstances(!0)), registerVersion(w, "4.4.0-canary.50b2182d7", e),
21800
21800
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21801
- registerVersion(w, "4.4.0-canary.2e32eebb5", "esm2017");
21801
+ registerVersion(w, "4.4.0-canary.50b2182d7", "esm2017");
21802
21802
  }();
21803
21803
 
21804
21804
  export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, fe as CACHE_SIZE_UNLIMITED, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, LoadBundleTask, PersistentCacheIndexManager, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, SnapshotMetadata, Timestamp, Transaction, WriteBatch, __PRIVATE_AutoId as _AutoId, ByteString as _ByteString, DatabaseId as _DatabaseId, DocumentKey as _DocumentKey, __PRIVATE_EmptyAppCheckTokenProvider as _EmptyAppCheckTokenProvider, __PRIVATE_EmptyAuthCredentialsProvider as _EmptyAuthCredentialsProvider, FieldPath$1 as _FieldPath, TestingHooks as _TestingHooks, __PRIVATE_cast as _cast, __PRIVATE_debugAssert as _debugAssert, __PRIVATE_isBase64Available as _isBase64Available, __PRIVATE_logWarn as _logWarn, __PRIVATE_validateIsNotUsedTogether as _validateIsNotUsedTogether, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, clearIndexedDbPersistence, collection, collectionGroup, connectFirestoreEmulator, count, deleteAllPersistentCacheIndexes, deleteDoc, deleteField, disableNetwork, disablePersistentCacheIndexAutoCreation, doc, documentId, enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence, enableNetwork, enablePersistentCacheIndexAutoCreation, endAt, endBefore, ensureFirestoreConfigured, executeWrite, getAggregateFromServer, getCountFromServer, getDoc, getDocFromCache, getDocFromServer, getDocs, getDocsFromCache, getDocsFromServer, getFirestore, getPersistentCacheIndexManager, increment, initializeFirestore, limit, limitToLast, loadBundle, memoryEagerGarbageCollector, memoryLocalCache, memoryLruGarbageCollector, namedQuery, onSnapshot, onSnapshotsInSync, or, orderBy, persistentLocalCache, persistentMultipleTabManager, persistentSingleTabManager, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setIndexConfiguration, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, waitForPendingWrites, where, writeBatch };