@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.
package/dist/index.rn.js CHANGED
@@ -4,7 +4,7 @@ import { Component as s } from "@firebase/component";
4
4
 
5
5
  import { Logger as o, LogLevel as _ } from "@firebase/logger";
6
6
 
7
- import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as E, getDefaultEmulatorHostnameAndPort as d } from "@firebase/util";
7
+ import { FirebaseError as a, getUA as u, isIndexedDBAvailable as c, base64 as l, DecodeBase64StringError as h, isSafari as P, createMockUserToken as I, getModularInstance as T, deepEqual as d, getDefaultEmulatorHostnameAndPort as E } from "@firebase/util";
8
8
 
9
9
  import { Integer as A, Md5 as R, XhrIo as V, EventType as m, ErrorCode as f, createWebChannelTransport as g, getStatEventTarget as p, WebChannel as y, Event as w, Stat as S } from "@firebase/webchannel-wrapper";
10
10
 
@@ -70,7 +70,7 @@ User.MOCK_USER = new User("mock-user");
70
70
  * See the License for the specific language governing permissions and
71
71
  * limitations under the License.
72
72
  */
73
- let D = "10.7.1-canary.2e32eebb5";
73
+ let D = "10.7.1-canary.50b2182d7";
74
74
 
75
75
  /**
76
76
  * @license
@@ -5848,16 +5848,16 @@ class BloomFilter {
5848
5848
  throw new __PRIVATE_BloomFilterError(`Invalid padding when bitmap length is 0: ${t}`);
5849
5849
  this.Te = 8 * e.length - t,
5850
5850
  // Set the bit count in Integer to avoid repetition in mightContain().
5851
- this.Ee = A.fromNumber(this.Te);
5851
+ this.de = A.fromNumber(this.Te);
5852
5852
  }
5853
5853
  // Calculate the ith hash value based on the hashed 64bit integers,
5854
5854
  // and calculate its corresponding bit index in the bitmap to be checked.
5855
- de(e, t, n) {
5855
+ Ee(e, t, n) {
5856
5856
  // Calculate hashed value h(i) = h1 + (i * h2).
5857
5857
  let r = e.add(t.multiply(A.fromNumber(n)));
5858
5858
  // Wrap if hash value overflow 64bit.
5859
5859
  return 1 === r.compare(Pe) && (r = new A([ r.getBits(0), r.getBits(1) ], 0)),
5860
- r.modulo(this.Ee).toNumber();
5860
+ r.modulo(this.de).toNumber();
5861
5861
  }
5862
5862
  // Return whether the bit on the given index in the bitmap is set to 1.
5863
5863
  Ae(e) {
@@ -5868,7 +5868,7 @@ class BloomFilter {
5868
5868
  if (0 === this.Te) return !1;
5869
5869
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5870
5870
  for (let e = 0; e < this.hashCount; e++) {
5871
- const t = this.de(n, r, e);
5871
+ const t = this.Ee(n, r, e);
5872
5872
  if (!this.Ae(t)) return !1;
5873
5873
  }
5874
5874
  return !0;
@@ -5881,7 +5881,7 @@ class BloomFilter {
5881
5881
  if (0 === this.Te) return;
5882
5882
  const t = __PRIVATE_getMd5HashValue(e), [n, r] = __PRIVATE_get64BitUints(t);
5883
5883
  for (let e = 0; e < this.hashCount; e++) {
5884
- const t = this.de(n, r, e);
5884
+ const t = this.Ee(n, r, e);
5885
5885
  this.Re(t);
5886
5886
  }
5887
5887
  }
@@ -6510,7 +6510,7 @@ const Ie = (() => {
6510
6510
  "array-contains-any": "ARRAY_CONTAINS_ANY"
6511
6511
  };
6512
6512
  return e;
6513
- })(), Ee = (() => {
6513
+ })(), de = (() => {
6514
6514
  const e = {
6515
6515
  and: "AND",
6516
6516
  or: "OR"
@@ -7042,7 +7042,7 @@ function __PRIVATE_toOperatorName(e) {
7042
7042
  }
7043
7043
 
7044
7044
  function __PRIVATE_toCompositeOperatorName(e) {
7045
- return Ee[e];
7045
+ return de[e];
7046
7046
  }
7047
7047
 
7048
7048
  function __PRIVATE_toFieldPathReference(e) {
@@ -7594,18 +7594,18 @@ class __PRIVATE_FirestoreIndexValueWriter {
7594
7594
  }
7595
7595
  Pt(e, t) {
7596
7596
  if ("nullValue" in e) this.Tt(t, 5); else if ("booleanValue" in e) this.Tt(t, 10),
7597
- 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) {
7597
+ 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) {
7598
7598
  const n = __PRIVATE_normalizeNumber(e.doubleValue);
7599
7599
  isNaN(n) ? this.Tt(t, 13) : (this.Tt(t, 15), __PRIVATE_isNegativeZero(n) ?
7600
7600
  // -0.0, 0 and 0.0 are all considered the same
7601
- t.Et(0) : t.Et(n));
7601
+ t.dt(0) : t.dt(n));
7602
7602
  } else if ("timestampValue" in e) {
7603
7603
  const n = e.timestampValue;
7604
- this.Tt(t, 20), "string" == typeof n ? t.dt(n) : (t.dt(`${n.seconds || ""}`), t.Et(n.nanos || 0));
7604
+ this.Tt(t, 20), "string" == typeof n ? t.Et(n) : (t.Et(`${n.seconds || ""}`), t.dt(n.nanos || 0));
7605
7605
  } else if ("stringValue" in e) this.At(e.stringValue, t), this.Rt(t); else if ("bytesValue" in e) this.Tt(t, 30),
7606
7606
  t.Vt(__PRIVATE_normalizeByteString(e.bytesValue)), this.Rt(t); else if ("referenceValue" in e) this.ft(e.referenceValue, t); else if ("geoPointValue" in e) {
7607
7607
  const n = e.geoPointValue;
7608
- this.Tt(t, 45), t.Et(n.latitude || 0), t.Et(n.longitude || 0);
7608
+ this.Tt(t, 45), t.dt(n.latitude || 0), t.dt(n.longitude || 0);
7609
7609
  } else "mapValue" in e ? __PRIVATE_isMaxValue(e) ? this.Tt(t, Number.MAX_SAFE_INTEGER) : (this.gt(e.mapValue, t),
7610
7610
  this.Rt(t)) : "arrayValue" in e ? (this.yt(e.arrayValue, t), this.Rt(t)) : fail();
7611
7611
  }
@@ -7613,7 +7613,7 @@ class __PRIVATE_FirestoreIndexValueWriter {
7613
7613
  this.Tt(t, 25), this.wt(e, t);
7614
7614
  }
7615
7615
  wt(e, t) {
7616
- t.dt(e);
7616
+ t.Et(e);
7617
7617
  }
7618
7618
  gt(e, t) {
7619
7619
  const n = e.fields || {};
@@ -7632,13 +7632,13 @@ class __PRIVATE_FirestoreIndexValueWriter {
7632
7632
  }));
7633
7633
  }
7634
7634
  Tt(e, t) {
7635
- e.Et(t);
7635
+ e.dt(t);
7636
7636
  }
7637
7637
  Rt(e) {
7638
7638
  // While the SDK does not implement truncation, the truncation marker is
7639
7639
  // used to terminate all variable length values (which are strings, bytes,
7640
7640
  // references, arrays and maps).
7641
- e.Et(2);
7641
+ e.dt(2);
7642
7642
  }
7643
7643
  }
7644
7644
 
@@ -7825,10 +7825,10 @@ class __PRIVATE_AscendingIndexByteEncoder {
7825
7825
  Vt(e) {
7826
7826
  this.Wt.bt(e);
7827
7827
  }
7828
- dt(e) {
7828
+ Et(e) {
7829
7829
  this.Wt.xt(e);
7830
7830
  }
7831
- Et(e) {
7831
+ dt(e) {
7832
7832
  this.Wt.Nt(e);
7833
7833
  }
7834
7834
  It() {
@@ -7843,10 +7843,10 @@ class __PRIVATE_DescendingIndexByteEncoder {
7843
7843
  Vt(e) {
7844
7844
  this.Wt.vt(e);
7845
7845
  }
7846
- dt(e) {
7846
+ Et(e) {
7847
7847
  this.Wt.Ot(e);
7848
7848
  }
7849
- Et(e) {
7849
+ dt(e) {
7850
7850
  this.Wt.kt(e);
7851
7851
  }
7852
7852
  It() {
@@ -8363,7 +8363,7 @@ function __PRIVATE_applyDistributionFieldAndCompositeFilters(e, t) {
8363
8363
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8364
8364
  * See the License for the specific language governing permissions and
8365
8365
  * limitations under the License.
8366
- */ const de = new Uint8Array(0);
8366
+ */ const Ee = new Uint8Array(0);
8367
8367
 
8368
8368
  /**
8369
8369
  * A persisted implementation of IndexManager.
@@ -8577,7 +8577,7 @@ class __PRIVATE_IndexedDbIndexManager {
8577
8577
  // combined with the values from the query bounds.
8578
8578
  const _ = (null != t ? t.length : 1) * Math.max(n.length, i.length), a = _ / (null != t ? t.length : 1), u = [];
8579
8579
  for (let c = 0; c < _; ++c) {
8580
- const _ = t ? this.In(t[c / a]) : de, l = this.Tn(e, _, n[c % a], r), h = this.En(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8580
+ const _ = t ? this.In(t[c / a]) : Ee, l = this.Tn(e, _, n[c % a], r), h = this.dn(e, _, i[c % a], s), P = o.map((t => this.Tn(e, _, t,
8581
8581
  /* inclusive= */ !0)));
8582
8582
  u.push(...this.createRange(l, h, P));
8583
8583
  }
@@ -8587,7 +8587,7 @@ class __PRIVATE_IndexedDbIndexManager {
8587
8587
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8588
8588
  return r ? i : i.Ht();
8589
8589
  }
8590
- /** Generates the upper bound for `arrayValue` and `directionalValue`. */ En(e, t, n, r) {
8590
+ /** Generates the upper bound for `arrayValue` and `directionalValue`. */ dn(e, t, n, r) {
8591
8591
  const i = new __PRIVATE_IndexEntry(e, DocumentKey.empty(), t, n);
8592
8592
  return r ? i.Ht() : i;
8593
8593
  }
@@ -8635,7 +8635,7 @@ class __PRIVATE_IndexedDbIndexManager {
8635
8635
  * Returns the byte encoded form of the directional values in the field index.
8636
8636
  * Returns `null` if the document does not have all fields specified in the
8637
8637
  * index.
8638
- */ dn(e, t) {
8638
+ */ En(e, t) {
8639
8639
  const n = new __PRIVATE_IndexByteEncoder;
8640
8640
  for (const r of __PRIVATE_fieldIndexGetDirectionalSegments(e)) {
8641
8641
  const e = t.data.field(r.fieldPath);
@@ -8768,13 +8768,13 @@ class __PRIVATE_IndexedDbIndexManager {
8768
8768
  }
8769
8769
  /** Creates the index entries for the given document. */ pn(e, t) {
8770
8770
  let n = new SortedSet(__PRIVATE_indexEntryComparator);
8771
- const r = this.dn(t, e);
8771
+ const r = this.En(t, e);
8772
8772
  if (null == r) return n;
8773
8773
  const i = __PRIVATE_fieldIndexGetArraySegment(t);
8774
8774
  if (null != i) {
8775
8775
  const s = e.data.field(i.fieldPath);
8776
8776
  if (isArray(s)) for (const i of s.arrayValue.values || []) n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, this.In(i), r));
8777
- } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, de, r));
8777
+ } else n = n.add(new __PRIVATE_IndexEntry(t.indexId, e.key, Ee, r));
8778
8778
  return n;
8779
8779
  }
8780
8780
  /**
@@ -8849,7 +8849,7 @@ class __PRIVATE_IndexedDbIndexManager {
8849
8849
  // If we encounter two bounds that will create an unmatchable key range,
8850
8850
  // then we return an empty set of key ranges.
8851
8851
  if (this.bn(r[e], r[e + 1])) return [];
8852
- const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, de, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, de, [] ];
8852
+ const t = [ r[e].indexId, this.uid, r[e].arrayValue, r[e].directionalValue, Ee, [] ], n = [ r[e + 1].indexId, this.uid, r[e + 1].arrayValue, r[e + 1].directionalValue, Ee, [] ];
8853
8853
  i.push(IDBKeyRange.bound(t, n));
8854
8854
  }
8855
8855
  return i;
@@ -10702,14 +10702,14 @@ class OverlayedDocument {
10702
10702
  const n = new __PRIVATE_DocReference(e, t);
10703
10703
  this.hr = this.hr.add(n), this.Ir = this.Ir.add(n);
10704
10704
  }
10705
- /** Add references to the given document keys for the given ID. */ Er(e, t) {
10705
+ /** Add references to the given document keys for the given ID. */ dr(e, t) {
10706
10706
  e.forEach((e => this.addReference(e, t)));
10707
10707
  }
10708
10708
  /**
10709
10709
  * Removes a reference to the given document key for the given
10710
10710
  * ID.
10711
10711
  */ removeReference(e, t) {
10712
- this.dr(new __PRIVATE_DocReference(e, t));
10712
+ this.Er(new __PRIVATE_DocReference(e, t));
10713
10713
  }
10714
10714
  Ar(e, t) {
10715
10715
  e.forEach((e => this.removeReference(e, t)));
@@ -10720,13 +10720,13 @@ class OverlayedDocument {
10720
10720
  */ Rr(e) {
10721
10721
  const t = new DocumentKey(new ResourcePath([])), n = new __PRIVATE_DocReference(t, e), r = new __PRIVATE_DocReference(t, e + 1), i = [];
10722
10722
  return this.Ir.forEachInRange([ n, r ], (e => {
10723
- this.dr(e), i.push(e.key);
10723
+ this.Er(e), i.push(e.key);
10724
10724
  })), i;
10725
10725
  }
10726
10726
  Vr() {
10727
- this.hr.forEach((e => this.dr(e)));
10727
+ this.hr.forEach((e => this.Er(e)));
10728
10728
  }
10729
- dr(e) {
10729
+ Er(e) {
10730
10730
  this.hr = this.hr.delete(e), this.Ir = this.Ir.delete(e);
10731
10731
  }
10732
10732
  mr(e) {
@@ -11128,7 +11128,7 @@ class __PRIVATE_MemoryRemoteDocumentChangeBuffer extends RemoteDocumentChangeBuf
11128
11128
  return PersistencePromise.resolve(n);
11129
11129
  }
11130
11130
  addMatchingKeys(e, t, n) {
11131
- return this.Or.Er(t, n), PersistencePromise.resolve();
11131
+ return this.Or.dr(t, n), PersistencePromise.resolve();
11132
11132
  }
11133
11133
  removeMatchingKeys(e, t, n) {
11134
11134
  this.Or.Ar(t, n);
@@ -11747,7 +11747,7 @@ class __PRIVATE_IndexedDbPersistence {
11747
11747
  this.serializer = new __PRIVATE_LocalSerializer(_), this.Ti = new __PRIVATE_SimpleDb(this.Ii, this.ai, new __PRIVATE_SchemaConverter(this.serializer)),
11748
11748
  this.qr = new __PRIVATE_IndexedDbTargetCache(this.referenceDelegate, this.serializer),
11749
11749
  this.remoteDocumentCache = __PRIVATE_newIndexedDbRemoteDocumentCache(this.serializer),
11750
- this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.Ei = this.window.localStorage : (this.Ei = null,
11750
+ this.Kr = new __PRIVATE_IndexedDbBundleCache, this.window && this.window.localStorage ? this.di = this.window.localStorage : (this.di = null,
11751
11751
  !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."));
11752
11752
  }
11753
11753
  /**
@@ -11758,7 +11758,7 @@ class __PRIVATE_IndexedDbPersistence {
11758
11758
  // NOTE: This is expected to fail sometimes (in the case of another tab
11759
11759
  // already having the persistence lock), so it's the first thing we should
11760
11760
  // do.
11761
- return this.di().then((() => {
11761
+ return this.Ei().then((() => {
11762
11762
  if (!this.isPrimary && !this.allowTabSynchronization)
11763
11763
  // Fail `start()` if `synchronizeTabs` is disabled and we cannot
11764
11764
  // obtain the primary lease.
@@ -11802,7 +11802,7 @@ class __PRIVATE_IndexedDbPersistence {
11802
11802
  // Schedule a primary lease refresh for immediate execution. The eventual
11803
11803
  // lease update will be propagated via `primaryStateListener`.
11804
11804
  this.si.enqueueAndForget((async () => {
11805
- this.started && await this.di();
11805
+ this.started && await this.Ei();
11806
11806
  })));
11807
11807
  }
11808
11808
  /**
@@ -11810,7 +11810,7 @@ class __PRIVATE_IndexedDbPersistence {
11810
11810
  * extend the primary lease for the local client. Asynchronously notifies the
11811
11811
  * primary state listener if the client either newly obtained or released its
11812
11812
  * primary lease.
11813
- */ di() {
11813
+ */ Ei() {
11814
11814
  return this.runTransaction("updateClientMetadataAndTryBecomePrimary", "readwrite", (e => __PRIVATE_clientMetadataStore(e).put({
11815
11815
  clientId: this.clientId,
11816
11816
  updateTimeMs: Date.now(),
@@ -11859,14 +11859,14 @@ class __PRIVATE_IndexedDbPersistence {
11859
11859
  // Ideally we'd delete the IndexedDb and LocalStorage zombie entries for
11860
11860
  // the client atomically, but we can't. So we opt to delete the IndexedDb
11861
11861
  // entries first to avoid potentially reviving a zombied client.
11862
- if (this.Ei) for (const t of e) this.Ei.removeItem(this.vi(t.clientId));
11862
+ if (this.di) for (const t of e) this.di.removeItem(this.vi(t.clientId));
11863
11863
  }
11864
11864
  }
11865
11865
  /**
11866
11866
  * Schedules a recurring timer to update the client metadata and to either
11867
11867
  * extend or acquire the primary lease if the client is eligible.
11868
11868
  */ Vi() {
11869
- this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.di().then((() => this.bi())).then((() => this.Vi()))));
11869
+ this.li = this.si.enqueueAfterDelay("client_metadata_refresh" /* TimerId.ClientMetadataRefresh */ , 4e3, (() => this.Ei().then((() => this.bi())).then((() => this.Vi()))));
11870
11870
  }
11871
11871
  /** Checks whether `client` is the local client. */ wi(e) {
11872
11872
  return !!e && e.ownerId === this.clientId;
@@ -12025,7 +12025,7 @@ class __PRIVATE_IndexedDbPersistence {
12025
12025
  Ai() {
12026
12026
  null !== this.document && "function" == typeof this.document.addEventListener && (this.ci = () => {
12027
12027
  this.si.enqueueAndForget((() => (this.inForeground = "visible" === this.document.visibilityState,
12028
- this.di())));
12028
+ this.Ei())));
12029
12029
  }, this.document.addEventListener("visibilitychange", this.ci), this.inForeground = "visible" === this.document.visibilityState);
12030
12030
  }
12031
12031
  xi() {
@@ -12066,7 +12066,7 @@ class __PRIVATE_IndexedDbPersistence {
12066
12066
  */ Fi(e) {
12067
12067
  var t;
12068
12068
  try {
12069
- const n = null !== (null === (t = this.Ei) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12069
+ const n = null !== (null === (t = this.di) || void 0 === t ? void 0 : t.getItem(this.vi(e)));
12070
12070
  return __PRIVATE_logDebug("IndexedDbPersistence", `Client '${e}' ${n ? "is" : "is not"} zombied in LocalStorage`),
12071
12071
  n;
12072
12072
  } catch (e) {
@@ -12079,16 +12079,16 @@ class __PRIVATE_IndexedDbPersistence {
12079
12079
  * Record client as zombied (a client that had its tab closed). Zombied
12080
12080
  * clients are ignored during primary tab selection.
12081
12081
  */ Mi() {
12082
- if (this.Ei) try {
12083
- this.Ei.setItem(this.vi(this.clientId), String(Date.now()));
12082
+ if (this.di) try {
12083
+ this.di.setItem(this.vi(this.clientId), String(Date.now()));
12084
12084
  } catch (e) {
12085
12085
  // Gracefully handle if LocalStorage isn't available / working.
12086
12086
  __PRIVATE_logError("Failed to set zombie client id.", e);
12087
12087
  }
12088
12088
  }
12089
12089
  /** Removes the zombied client entry if it exists. */ Ni() {
12090
- if (this.Ei) try {
12091
- this.Ei.removeItem(this.vi(this.clientId));
12090
+ if (this.di) try {
12091
+ this.di.removeItem(this.vi(this.clientId));
12092
12092
  } catch (e) {
12093
12093
  // Ignore
12094
12094
  }
@@ -12902,7 +12902,7 @@ class __PRIVATE_MutationMetadata {
12902
12902
  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}`),
12903
12903
  null);
12904
12904
  }
12905
- Es() {
12905
+ ds() {
12906
12906
  const e = {
12907
12907
  state: this.state,
12908
12908
  updateTimeMs: Date.now()
@@ -12933,7 +12933,7 @@ class __PRIVATE_QueryTargetMetadata {
12933
12933
  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}`),
12934
12934
  null);
12935
12935
  }
12936
- Es() {
12936
+ ds() {
12937
12937
  const e = {
12938
12938
  state: this.state,
12939
12939
  updateTimeMs: Date.now()
@@ -12998,7 +12998,7 @@ class __PRIVATE_LocalClientState {
12998
12998
  constructor() {
12999
12999
  this.activeTargetIds = __PRIVATE_targetIdSet();
13000
13000
  }
13001
- ds(e) {
13001
+ Es(e) {
13002
13002
  this.activeTargetIds = this.activeTargetIds.add(e);
13003
13003
  }
13004
13004
  As(e) {
@@ -13007,7 +13007,7 @@ class __PRIVATE_LocalClientState {
13007
13007
  /**
13008
13008
  * Converts this entry into a JSON-encoded format we can use for WebStorage.
13009
13009
  * Does not encode `clientId` as it is part of the key in WebStorage.
13010
- */ Es() {
13010
+ */ ds() {
13011
13011
  const e = {
13012
13012
  activeTargetIds: this.activeTargetIds.toArray(),
13013
13013
  updateTimeMs: Date.now()
@@ -13142,7 +13142,7 @@ class __PRIVATE_LocalClientState {
13142
13142
  r && (t = r.state);
13143
13143
  }
13144
13144
  }
13145
- return this.Ls.ds(e), this.Fs(), t;
13145
+ return this.Ls.Es(e), this.Fs(), t;
13146
13146
  }
13147
13147
  removeLocalQueryTarget(e) {
13148
13148
  this.Ls.As(e), this.Fs();
@@ -13244,11 +13244,11 @@ class __PRIVATE_LocalClientState {
13244
13244
  return this.gs.get(this.Rs);
13245
13245
  }
13246
13246
  Fs() {
13247
- this.setItem(this.ys, this.Ls.Es());
13247
+ this.setItem(this.ys, this.Ls.ds());
13248
13248
  }
13249
13249
  Ns(e, t, n) {
13250
13250
  const r = new __PRIVATE_MutationMetadata(this.currentUser, e, t, n), i = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
13251
- this.setItem(i, r.Es());
13251
+ this.setItem(i, r.ds());
13252
13252
  }
13253
13253
  Bs(e) {
13254
13254
  const t = createWebStorageMutationBatchKey(this.persistenceKey, this.currentUser, e);
@@ -13263,7 +13263,7 @@ class __PRIVATE_LocalClientState {
13263
13263
  }
13264
13264
  ks(e, t, n) {
13265
13265
  const r = createWebStorageQueryTargetMetadataKey(this.persistenceKey, e), i = new __PRIVATE_QueryTargetMetadata(e, t, n);
13266
- this.setItem(r, i.Es());
13266
+ this.setItem(r, i.ds());
13267
13267
  }
13268
13268
  Qs(e) {
13269
13269
  const t = JSON.stringify(Array.from(e));
@@ -13351,7 +13351,7 @@ class __PRIVATE_MemorySharedClientState {
13351
13351
  // No op.
13352
13352
  }
13353
13353
  addLocalQueryTarget(e) {
13354
- return this.eo.ds(e), this.no[e] || "not-current";
13354
+ return this.eo.Es(e), this.no[e] || "not-current";
13355
13355
  }
13356
13356
  updateQueryState(e, t, n) {
13357
13357
  this.no[e] = t;
@@ -14365,7 +14365,7 @@ class __PRIVATE_PersistentStream {
14365
14365
  * Sends an initial streamToken to the server, performing the handshake
14366
14366
  * required to make the StreamingWrite RPC work. Subsequent
14367
14367
  * calls should wait until onHandshakeComplete was called.
14368
- */ E_() {
14368
+ */ d_() {
14369
14369
  // TODO(dimond): Support stream resumption. We intentionally do not set the
14370
14370
  // stream token on the handshake, ignoring any stream token we might have.
14371
14371
  const e = {};
@@ -14408,10 +14408,10 @@ class __PRIVATE_PersistentStream {
14408
14408
  class __PRIVATE_DatastoreImpl extends class Datastore {} {
14409
14409
  constructor(e, t, n, r) {
14410
14410
  super(), this.authCredentials = e, this.appCheckCredentials = t, this.connection = n,
14411
- this.serializer = r, this.d_ = !1;
14411
+ this.serializer = r, this.E_ = !1;
14412
14412
  }
14413
14413
  A_() {
14414
- if (this.d_) throw new FirestoreError(v.FAILED_PRECONDITION, "The client has already been terminated.");
14414
+ if (this.E_) throw new FirestoreError(v.FAILED_PRECONDITION, "The client has already been terminated.");
14415
14415
  }
14416
14416
  /** Invokes the provided RPC with auth and AppCheck tokens. */ wo(e, t, n) {
14417
14417
  return this.A_(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([r, i]) => this.connection.wo(e, t, n, r, i))).catch((e => {
@@ -14426,7 +14426,7 @@ class __PRIVATE_DatastoreImpl extends class Datastore {} {
14426
14426
  }));
14427
14427
  }
14428
14428
  terminate() {
14429
- this.d_ = !0, this.connection.terminate();
14429
+ this.E_ = !0, this.connection.terminate();
14430
14430
  }
14431
14431
  }
14432
14432
 
@@ -14886,7 +14886,7 @@ function __PRIVATE_startWriteStream(e) {
14886
14886
  }
14887
14887
 
14888
14888
  async function __PRIVATE_onWriteStreamOpen(e) {
14889
- __PRIVATE_ensureWriteStream(e).E_();
14889
+ __PRIVATE_ensureWriteStream(e).d_();
14890
14890
  }
14891
14891
 
14892
14892
  async function __PRIVATE_onWriteHandshakeComplete(e) {
@@ -15818,7 +15818,7 @@ class __PRIVATE_RemovedLimboDocument {
15818
15818
  }
15819
15819
  /**
15820
15820
  * Returns whether the doc for the given key should be in limbo.
15821
- */ Ea(e) {
15821
+ */ da(e) {
15822
15822
  // If the remote end says it's part of this query, it's not in limbo.
15823
15823
  return !this.ia.has(e) && (
15824
15824
  // The local store doesn't think it's a result, so it shouldn't be in limbo.
@@ -15838,7 +15838,7 @@ class __PRIVATE_RemovedLimboDocument {
15838
15838
  // updating many documents.
15839
15839
  const e = this.oa;
15840
15840
  this.oa = __PRIVATE_documentKeySet(), this.aa.forEach((e => {
15841
- this.Ea(e.key) && (this.oa = this.oa.add(e.key));
15841
+ this.da(e.key) && (this.oa = this.oa.add(e.key));
15842
15842
  }));
15843
15843
  // Diff the new limbo docs with the old limbo docs.
15844
15844
  const t = [];
@@ -15868,7 +15868,7 @@ class __PRIVATE_RemovedLimboDocument {
15868
15868
  * @returns The ViewChange that resulted from this synchronization.
15869
15869
  */
15870
15870
  // PORTING NOTE: Multi-tab only.
15871
- da(e) {
15871
+ Ea(e) {
15872
15872
  this.ia = e.ls, this.oa = __PRIVATE_documentKeySet();
15873
15873
  const t = this.ca(e.documents);
15874
15874
  return this.applyChanges(t, /* limboResolutionEnabled= */ !0);
@@ -16423,7 +16423,7 @@ function __PRIVATE_syncEngineGetRemoteKeysForTarget(e, t) {
16423
16423
  * from persistence.
16424
16424
  */ async function __PRIVATE_synchronizeViewAndComputeSnapshot(e, t) {
16425
16425
  const n = __PRIVATE_debugCast(e), r = await __PRIVATE_localStoreExecuteQuery(n.localStore, t.query,
16426
- /* usePreviousResults= */ !0), i = t.view.da(r);
16426
+ /* usePreviousResults= */ !0), i = t.view.Ea(r);
16427
16427
  return n.isPrimaryClient && __PRIVATE_updateTrackedLimbos(n, t.targetId, i.Ta),
16428
16428
  i;
16429
16429
  }
@@ -18638,7 +18638,7 @@ class LoadBundleTask {
18638
18638
  const e = r.getImmediate({
18639
18639
  identifier: n
18640
18640
  }), i = r.getOptions(n);
18641
- if (E(i, t)) return e;
18641
+ if (d(i, t)) return e;
18642
18642
  throw new FirestoreError(v.FAILED_PRECONDITION, "initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.");
18643
18643
  }
18644
18644
  if (void 0 !== t.cacheSizeBytes && void 0 !== t.localCache) throw new FirestoreError(v.INVALID_ARGUMENT, "cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");
@@ -18654,7 +18654,7 @@ function getFirestore(t, n) {
18654
18654
  identifier: i
18655
18655
  });
18656
18656
  if (!s._initialized) {
18657
- const e = d("firestore");
18657
+ const e = E("firestore");
18658
18658
  e && connectFirestoreEmulator(s, ...e);
18659
18659
  }
18660
18660
  return s;
@@ -19292,11 +19292,11 @@ function __PRIVATE_isWrite(e) {
19292
19292
  /** Returns a new context with the specified settings overwritten. */ Tu(e) {
19293
19293
  return new __PRIVATE_ParseContextImpl(Object.assign(Object.assign({}, this.settings), e), this.databaseId, this.serializer, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
19294
19294
  }
19295
- Eu(e) {
19295
+ du(e) {
19296
19296
  var t;
19297
19297
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19298
19298
  path: n,
19299
- du: !1
19299
+ Eu: !1
19300
19300
  });
19301
19301
  return r.Au(e), r;
19302
19302
  }
@@ -19304,7 +19304,7 @@ function __PRIVATE_isWrite(e) {
19304
19304
  var t;
19305
19305
  const n = null === (t = this.path) || void 0 === t ? void 0 : t.child(e), r = this.Tu({
19306
19306
  path: n,
19307
- du: !1
19307
+ Eu: !1
19308
19308
  });
19309
19309
  return r.Pu(), r;
19310
19310
  }
@@ -19313,7 +19313,7 @@ function __PRIVATE_isWrite(e) {
19313
19313
  // undefined.
19314
19314
  return this.Tu({
19315
19315
  path: void 0,
19316
- du: !0
19316
+ Eu: !0
19317
19317
  });
19318
19318
  }
19319
19319
  mu(e) {
@@ -19346,7 +19346,7 @@ function __PRIVATE_isWrite(e) {
19346
19346
  methodName: t,
19347
19347
  gu: n,
19348
19348
  path: FieldPath$1.emptyPath(),
19349
- du: !1,
19349
+ Eu: !1,
19350
19350
  fu: r
19351
19351
  }, this.databaseId, this.serializer, this.ignoreUndefinedProperties);
19352
19352
  }
@@ -19406,7 +19406,7 @@ class __PRIVATE_DeleteFieldValueImpl extends FieldValue {
19406
19406
  Iu: 3 /* UserDataSource.Argument */ ,
19407
19407
  gu: t.settings.gu,
19408
19408
  methodName: e._methodName,
19409
- du: n
19409
+ Eu: n
19410
19410
  }, t.databaseId, t.serializer, t.ignoreUndefinedProperties);
19411
19411
  }
19412
19412
 
@@ -19429,7 +19429,7 @@ class __PRIVATE_ArrayUnionFieldValueImpl extends FieldValue {
19429
19429
  return new FieldTransform(e.path, r);
19430
19430
  }
19431
19431
  isEqual(e) {
19432
- return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && E(this.yu, e.yu);
19432
+ return e instanceof __PRIVATE_ArrayUnionFieldValueImpl && d(this.yu, e.yu);
19433
19433
  }
19434
19434
  }
19435
19435
 
@@ -19443,7 +19443,7 @@ class __PRIVATE_ArrayRemoveFieldValueImpl extends FieldValue {
19443
19443
  return new FieldTransform(e.path, r);
19444
19444
  }
19445
19445
  isEqual(e) {
19446
- return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && E(this.yu, e.yu);
19446
+ return e instanceof __PRIVATE_ArrayRemoveFieldValueImpl && d(this.yu, e.yu);
19447
19447
  }
19448
19448
  }
19449
19449
 
@@ -19568,7 +19568,7 @@ class __PRIVATE_NumericIncrementFieldValueImpl extends FieldValue {
19568
19568
  // the set of values to be included for the IN query) that may directly
19569
19569
  // contain additional arrays (each representing an individual field
19570
19570
  // value), so we disable this validation.
19571
- if (t.settings.du && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19571
+ if (t.settings.Eu && 4 /* UserDataSource.ArrayArgument */ !== t.Iu) throw t.mu("Nested arrays are not supported");
19572
19572
  return function __PRIVATE_parseArray(e, t) {
19573
19573
  const n = [];
19574
19574
  let r = 0;
@@ -19647,7 +19647,7 @@ function __PRIVATE_parseObject(e, t) {
19647
19647
  // If we encounter an empty object, we explicitly add it to the update
19648
19648
  // mask to ensure that the server creates a map entry.
19649
19649
  t.path && t.path.length > 0 && t.fieldMask.push(t.path) : forEach(e, ((e, r) => {
19650
- const i = __PRIVATE_parseData(r, t.Eu(e));
19650
+ const i = __PRIVATE_parseData(r, t.du(e));
19651
19651
  null != i && (n[e] = i);
19652
19652
  })), {
19653
19653
  mapValue: {
@@ -20514,7 +20514,7 @@ class __PRIVATE_LiteUserDataWriter extends AbstractUserDataWriter {
20514
20514
  * @returns `true` if the objects are "equal", as defined above, or `false`
20515
20515
  * otherwise.
20516
20516
  */ function aggregateQuerySnapshotEqual(e, t) {
20517
- return queryEqual(e.query, t.query) && E(e.data(), t.data());
20517
+ return queryEqual(e.query, t.query) && d(e.data(), t.data());
20518
20518
  }
20519
20519
 
20520
20520
  /**
@@ -21818,9 +21818,9 @@ let De = null;
21818
21818
  return r = Object.assign({
21819
21819
  useFetchStreams: t
21820
21820
  }, r), s._setSettings(r), s;
21821
- }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.4.0-canary.2e32eebb5", e),
21821
+ }), "PUBLIC").setMultipleInstances(!0)), r(b, "4.4.0-canary.50b2182d7", e),
21822
21822
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
21823
- r(b, "4.4.0-canary.2e32eebb5", "esm2017");
21823
+ r(b, "4.4.0-canary.50b2182d7", "esm2017");
21824
21824
  }("rn", /* useFetchStreams= */ !1);
21825
21825
 
21826
21826
  export { AbstractUserDataWriter, AggregateField, AggregateQuerySnapshot, Bytes, pe 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 };
@@ -63,7 +63,7 @@ User.MOCK_USER = new User("mock-user");
63
63
  * See the License for the specific language governing permissions and
64
64
  * limitations under the License.
65
65
  */
66
- let d = "10.7.1-canary.2e32eebb5";
66
+ let d = "10.7.1-canary.50b2182d7";
67
67
 
68
68
  /**
69
69
  * @license
@@ -7199,7 +7199,7 @@ class Transaction {
7199
7199
  return r && i._setSettings(r), i;
7200
7200
  }), "PUBLIC").setMultipleInstances(!0)),
7201
7201
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
7202
- registerVersion("firestore-lite", "4.4.0-canary.2e32eebb5", ""), registerVersion("firestore-lite", "4.4.0-canary.2e32eebb5", "esm2017");
7202
+ registerVersion("firestore-lite", "4.4.0-canary.50b2182d7", ""), registerVersion("firestore-lite", "4.4.0-canary.50b2182d7", "esm2017");
7203
7203
  }();
7204
7204
 
7205
7205
  export { AggregateField, AggregateQuerySnapshot, Bytes, CollectionReference, DocumentReference, DocumentSnapshot, FieldPath, FieldValue, Firestore, FirestoreError, GeoPoint, Query, QueryCompositeFilterConstraint, QueryConstraint, QueryDocumentSnapshot, QueryEndAtConstraint, QueryFieldFilterConstraint, QueryLimitConstraint, QueryOrderByConstraint, QuerySnapshot, QueryStartAtConstraint, Timestamp, Transaction, WriteBatch, addDoc, aggregateFieldEqual, aggregateQuerySnapshotEqual, and, arrayRemove, arrayUnion, average, collection, collectionGroup, connectFirestoreEmulator, count, deleteDoc, deleteField, doc, documentId, endAt, endBefore, getAggregate, getCount, getDoc, getDocs, getFirestore, increment, initializeFirestore, limit, limitToLast, or, orderBy, query, queryEqual, refEqual, runTransaction, serverTimestamp, setDoc, setLogLevel, snapshotEqual, startAfter, startAt, sum, terminate, updateDoc, where, writeBatch };
@@ -67,7 +67,7 @@ v.MOCK_USER = new v("mock-user");
67
67
  * See the License for the specific language governing permissions and
68
68
  * limitations under the License.
69
69
  */
70
- var g = "10.7.1-canary.2e32eebb5", w = new l("@firebase/firestore");
70
+ var g = "10.7.1-canary.50b2182d7", w = new l("@firebase/firestore");
71
71
 
72
72
  /**
73
73
  * @license
@@ -6694,7 +6694,7 @@ hi = "".concat(i, "_lite"), g = hi, o(new c("firestore/lite", (function(t, e) {
6694
6694
  return r && o._setSettings(r), o;
6695
6695
  }), "PUBLIC").setMultipleInstances(!0)),
6696
6696
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6697
- a("firestore-lite", "4.4.0-canary.2e32eebb5", ""), a("firestore-lite", "4.4.0-canary.2e32eebb5", "esm5");
6697
+ a("firestore-lite", "4.4.0-canary.50b2182d7", ""), a("firestore-lite", "4.4.0-canary.50b2182d7", "esm5");
6698
6698
 
6699
6699
  export { En as AggregateField, Sn as AggregateQuerySnapshot, Dn as Bytes, An as CollectionReference, In as DocumentReference, lr as DocumentSnapshot, Rn as FieldPath, xn as FieldValue, gn as Firestore, B as FirestoreError, Cn as GeoPoint, kn as Query, br as QueryCompositeFilterConstraint, mr as QueryConstraint, fr as QueryDocumentSnapshot, Or as QueryEndAtConstraint, gr as QueryFieldFilterConstraint, kr as QueryLimitConstraint, Er as QueryOrderByConstraint, hr as QuerySnapshot, Pr as QueryStartAtConstraint, Dt as Timestamp, yi as Transaction, oi as WriteBatch, Qr as addDoc, Zr as aggregateFieldEqual, $r as aggregateQuerySnapshotEqual, Tr as and, ri as arrayRemove, ni as arrayUnion, Jr as average, Pn as collection, Vn as collectionGroup, _n as connectFirestoreEmulator, Xr as count, Gr as deleteDoc, ti as deleteField, Fn as doc, qn as documentId, Dr as endAt, Nr as endBefore, Yr as getAggregate, Wr as getCount, Ur as getDoc, Br as getDocs, bn as getFirestore, ii as increment, wn as initializeFirestore, Ir as limit, Ar as limitToLast, _r as or, Sr as orderBy, vr as query, Nn as queryEqual, On as refEqual, mi as runTransaction, ei as serverTimestamp, zr as setDoc, b as setLogLevel, pr as snapshotEqual, Fr as startAfter, Vr as startAt, Hr as sum, Tn as terminate, Kr as updateDoc, wr as where, ui as writeBatch };
6700
6700
  //# sourceMappingURL=index.browser.esm5.js.map