@firebase/firestore 4.7.1-canary.16d62d4fa → 4.7.1-canary.ca4dbcf3f

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.
@@ -72,7 +72,7 @@ O.MOCK_USER = new O("mock-user");
72
72
  * See the License for the specific language governing permissions and
73
73
  * limitations under the License.
74
74
  */
75
- var P = "10.13.1-canary.16d62d4fa", R = new l("@firebase/firestore");
75
+ var P = "10.13.1-canary.ca4dbcf3f", R = new l("@firebase/firestore");
76
76
 
77
77
  /**
78
78
  * @license
@@ -5621,7 +5621,7 @@ var Ti = /** @class */ function() {
5621
5621
  }
5622
5622
  // Calculate the ith hash value based on the hashed 64bit integers,
5623
5623
  // and calculate its corresponding bit index in the bitmap to be checked.
5624
- return t.prototype.de = function(t, e, n) {
5624
+ return t.prototype.Ee = function(t, e, n) {
5625
5625
  // Calculate hashed value h(i) = h1 + (i * h2).
5626
5626
  var r = t.add(e.multiply(b.fromNumber(n)));
5627
5627
  // Wrap if hash value overflow 64bit.
@@ -5629,14 +5629,14 @@ var Ti = /** @class */ function() {
5629
5629
  r.modulo(this.Te).toNumber();
5630
5630
  },
5631
5631
  // Return whether the bit on the given index in the bitmap is set to 1.
5632
- t.prototype.Ee = function(t) {
5632
+ t.prototype.de = function(t) {
5633
5633
  return 0 != (this.bitmap[Math.floor(t / 8)] & 1 << t % 8);
5634
5634
  }, t.prototype.mightContain = function(t) {
5635
5635
  // Empty bitmap should always return false on membership check.
5636
5636
  if (0 === this.Ie) return !1;
5637
5637
  for (var e = _i(Ii(t)), n = e[0], r = e[1], i = 0; i < this.hashCount; i++) {
5638
- var o = this.de(n, r, i);
5639
- if (!this.Ee(o)) return !1;
5638
+ var o = this.Ee(n, r, i);
5639
+ if (!this.de(o)) return !1;
5640
5640
  }
5641
5641
  return !0;
5642
5642
  },
@@ -5647,7 +5647,7 @@ var Ti = /** @class */ function() {
5647
5647
  })), o;
5648
5648
  }, t.prototype.insert = function(t) {
5649
5649
  if (0 !== this.Ie) for (var e = _i(Ii(t)), n = e[0], r = e[1], i = 0; i < this.hashCount; i++) {
5650
- var o = this.de(n, r, i);
5650
+ var o = this.Ee(n, r, i);
5651
5651
  this.Ae(o);
5652
5652
  }
5653
5653
  }, t.prototype.Ae = function(t) {
@@ -7201,56 +7201,56 @@ function Co(t, e, n, r) {
7201
7201
  this.Tt(t, e),
7202
7202
  // Write separator to split index values
7203
7203
  // (see go/firestore-storage-format#encodings).
7204
- e.dt();
7204
+ e.Et();
7205
7205
  }, t.prototype.Tt = function(t, e) {
7206
- if ("nullValue" in t) this.Et(e, 5); else if ("booleanValue" in t) this.Et(e, 10),
7207
- e.At(t.booleanValue ? 1 : 0); else if ("integerValue" in t) this.Et(e, 15), e.At(qe(t.integerValue)); else if ("doubleValue" in t) {
7206
+ if ("nullValue" in t) this.dt(e, 5); else if ("booleanValue" in t) this.dt(e, 10),
7207
+ e.At(t.booleanValue ? 1 : 0); else if ("integerValue" in t) this.dt(e, 15), e.At(qe(t.integerValue)); else if ("doubleValue" in t) {
7208
7208
  var n = qe(t.doubleValue);
7209
- isNaN(n) ? this.Et(e, 13) : (this.Et(e, 15), Kt(n) ?
7209
+ isNaN(n) ? this.dt(e, 13) : (this.dt(e, 15), Kt(n) ?
7210
7210
  // -0.0, 0 and 0.0 are all considered the same
7211
7211
  e.At(0) : e.At(n));
7212
7212
  } else if ("timestampValue" in t) {
7213
7213
  var r = t.timestampValue;
7214
- this.Et(e, 20), "string" == typeof r && (r = Le(r)), e.Rt("".concat(r.seconds || "")),
7214
+ this.dt(e, 20), "string" == typeof r && (r = Le(r)), e.Rt("".concat(r.seconds || "")),
7215
7215
  e.At(r.nanos || 0);
7216
- } else if ("stringValue" in t) this.Vt(t.stringValue, e), this.ft(e); else if ("bytesValue" in t) this.Et(e, 30),
7216
+ } else if ("stringValue" in t) this.Vt(t.stringValue, e), this.ft(e); else if ("bytesValue" in t) this.dt(e, 30),
7217
7217
  e.gt(Ue(t.bytesValue)), this.ft(e); else if ("referenceValue" in t) this.yt(t.referenceValue, e); else if ("geoPointValue" in t) {
7218
7218
  var i = t.geoPointValue;
7219
- this.Et(e, 45), e.At(i.latitude || 0), e.At(i.longitude || 0);
7220
- } else "mapValue" in t ? fn(t) ? this.Et(e, Number.MAX_SAFE_INTEGER) : ln(t) ? this.wt(t.mapValue, e) : (this.St(t.mapValue, e),
7219
+ this.dt(e, 45), e.At(i.latitude || 0), e.At(i.longitude || 0);
7220
+ } else "mapValue" in t ? fn(t) ? this.dt(e, Number.MAX_SAFE_INTEGER) : ln(t) ? this.wt(t.mapValue, e) : (this.St(t.mapValue, e),
7221
7221
  this.ft(e)) : "arrayValue" in t ? (this.bt(t.arrayValue, e), this.ft(e)) : B();
7222
7222
  }, t.prototype.Vt = function(t, e) {
7223
- this.Et(e, 25), this.Dt(t, e);
7223
+ this.dt(e, 25), this.Dt(t, e);
7224
7224
  }, t.prototype.Dt = function(t, e) {
7225
7225
  e.Rt(t);
7226
7226
  }, t.prototype.St = function(t, e) {
7227
7227
  var n = t.fields || {};
7228
- this.Et(e, 55);
7228
+ this.dt(e, 55);
7229
7229
  for (var r = 0, i = Object.keys(n); r < i.length; r++) {
7230
7230
  var o = i[r];
7231
7231
  this.Vt(o, e), this.Tt(n[o], e);
7232
7232
  }
7233
7233
  }, t.prototype.wt = function(t, e) {
7234
7234
  var n, r, i = t.fields || {};
7235
- this.Et(e, 53);
7235
+ this.dt(e, 53);
7236
7236
  // Vectors sort first by length
7237
7237
  var o = "value", a = (null === (r = null === (n = i[o].arrayValue) || void 0 === n ? void 0 : n.values) || void 0 === r ? void 0 : r.length) || 0;
7238
- this.Et(e, 15), e.At(qe(a)),
7238
+ this.dt(e, 15), e.At(qe(a)),
7239
7239
  // Vectors then sort by position value
7240
7240
  this.Vt(o, e), this.Tt(i[o], e);
7241
7241
  }, t.prototype.bt = function(t, e) {
7242
7242
  var n = t.values || [];
7243
- this.Et(e, 50);
7243
+ this.dt(e, 50);
7244
7244
  for (var r = 0, i = n; r < i.length; r++) {
7245
7245
  var o = i[r];
7246
7246
  this.Tt(o, e);
7247
7247
  }
7248
7248
  }, t.prototype.yt = function(t, e) {
7249
7249
  var n = this;
7250
- this.Et(e, 37), pt.fromName(t).path.forEach((function(t) {
7251
- n.Et(e, 60), n.Dt(t, e);
7250
+ this.dt(e, 37), pt.fromName(t).path.forEach((function(t) {
7251
+ n.dt(e, 60), n.Dt(t, e);
7252
7252
  }));
7253
- }, t.prototype.Et = function(t, e) {
7253
+ }, t.prototype.dt = function(t, e) {
7254
7254
  t.At(e);
7255
7255
  }, t.prototype.ft = function(t) {
7256
7256
  // While the SDK does not implement truncation, the truncation marker is
@@ -7454,7 +7454,7 @@ var Lo = /** @class */ function() {
7454
7454
  this.jt.Lt(t);
7455
7455
  }, t.prototype.At = function(t) {
7456
7456
  this.jt.kt(t);
7457
- }, t.prototype.dt = function() {
7457
+ }, t.prototype.Et = function() {
7458
7458
  this.jt.$t();
7459
7459
  }, t;
7460
7460
  }(), Uo = /** @class */ function() {
@@ -7467,7 +7467,7 @@ var Lo = /** @class */ function() {
7467
7467
  this.jt.Bt(t);
7468
7468
  }, t.prototype.At = function(t) {
7469
7469
  this.jt.Kt(t);
7470
- }, t.prototype.dt = function() {
7470
+ }, t.prototype.Et = function() {
7471
7471
  this.jt.Wt();
7472
7472
  }, t;
7473
7473
  }(), Bo = /** @class */ function() {
@@ -8113,7 +8113,7 @@ var ea = /** @class */ function() {
8113
8113
  n.push(u.value), r && (r = u.inclusive);
8114
8114
  }
8115
8115
  return new In(n, r);
8116
- }(o, i), h = n.In(i, o, c), f = n.In(i, o, l), d = n.Tn(i, o, s), p = n.dn(i.indexId, u, h, c.inclusive, f, l.inclusive, d);
8116
+ }(o, i), h = n.In(i, o, c), f = n.In(i, o, l), d = n.Tn(i, o, s), p = n.En(i.indexId, u, h, c.inclusive, f, l.inclusive, d);
8117
8117
  return Nt.forEach(p, (function(n) {
8118
8118
  return r.G(n, e.limit).next((function(e) {
8119
8119
  e.forEach((function(e) {
@@ -8138,9 +8138,9 @@ var ea = /** @class */ function() {
8138
8138
  * Constructs a key range query on `DbIndexEntryStore` that unions all
8139
8139
  * bounds.
8140
8140
  */
8141
- t.prototype.dn = function(t, e, n, r, i, o, a) {
8141
+ t.prototype.En = function(t, e, n, r, i, o, a) {
8142
8142
  for (var u = this, s = (null != e ? e.length : 1) * Math.max(n.length, i.length), c = s / (null != e ? e.length : 1), l = [], h = function(s) {
8143
- var h = e ? f.En(e[s / c]) : ra, d = f.An(t, h, n[s % c], r), p = f.Rn(t, h, i[s % c], o), v = a.map((function(e) {
8143
+ var h = e ? f.dn(e[s / c]) : ra, d = f.An(t, h, n[s % c], r), p = f.Rn(t, h, i[s % c], o), v = a.map((function(e) {
8144
8144
  return u.An(t, h, e,
8145
8145
  /* inclusive= */ !0);
8146
8146
  }));
@@ -8219,7 +8219,7 @@ var ea = /** @class */ function() {
8219
8219
  }
8220
8220
  return n.zt();
8221
8221
  },
8222
- /** Encodes a single value to the ascending index format. */ t.prototype.En = function(t) {
8222
+ /** Encodes a single value to the ascending index format. */ t.prototype.dn = function(t) {
8223
8223
  var e = new Bo;
8224
8224
  return Mo.vt.It(t, e.Yt(0 /* IndexKind.ASCENDING */)), e.zt();
8225
8225
  },
@@ -8361,7 +8361,7 @@ var ea = /** @class */ function() {
8361
8361
  var o = t.data.field(i.fieldPath);
8362
8362
  if (an(o)) for (var a = 0, u = o.arrayValue.values || []; a < u.length; a++) {
8363
8363
  var s = u[a];
8364
- n = n.add(new zo(e.indexId, t.key, this.En(s), r));
8364
+ n = n.add(new zo(e.indexId, t.key, this.dn(s), r));
8365
8365
  }
8366
8366
  } else n = n.add(new zo(e.indexId, t.key, ra, r));
8367
8367
  return n;
@@ -10350,9 +10350,9 @@ e) {
10350
10350
  }(), ja = /** @class */ function() {
10351
10351
  function t() {
10352
10352
  // A set of outstanding references to a document sorted by key.
10353
- this.Tr = new Ae(Qa.dr),
10353
+ this.Tr = new Ae(Qa.Er),
10354
10354
  // A set of outstanding references to a document sorted by target id.
10355
- this.Er = new Ae(Qa.Ar)
10355
+ this.dr = new Ae(Qa.Ar)
10356
10356
  /** Returns true if the reference set contains no references. */;
10357
10357
  }
10358
10358
  return t.prototype.isEmpty = function() {
@@ -10360,7 +10360,7 @@ e) {
10360
10360
  },
10361
10361
  /** Adds a reference to the given document key for the given ID. */ t.prototype.addReference = function(t, e) {
10362
10362
  var n = new Qa(t, e);
10363
- this.Tr = this.Tr.add(n), this.Er = this.Er.add(n);
10363
+ this.Tr = this.Tr.add(n), this.dr = this.dr.add(n);
10364
10364
  },
10365
10365
  /** Add references to the given document keys for the given ID. */ t.prototype.Rr = function(t, e) {
10366
10366
  var n = this;
@@ -10386,7 +10386,7 @@ e) {
10386
10386
  */
10387
10387
  t.prototype.gr = function(t) {
10388
10388
  var e = this, n = new pt(new ht([])), r = new Qa(n, t), i = new Qa(n, t + 1), o = [];
10389
- return this.Er.forEachInRange([ r, i ], (function(t) {
10389
+ return this.dr.forEachInRange([ r, i ], (function(t) {
10390
10390
  e.Vr(t), o.push(t.key);
10391
10391
  })), o;
10392
10392
  }, t.prototype.pr = function() {
@@ -10395,10 +10395,10 @@ e) {
10395
10395
  return t.Vr(e);
10396
10396
  }));
10397
10397
  }, t.prototype.Vr = function(t) {
10398
- this.Tr = this.Tr.delete(t), this.Er = this.Er.delete(t);
10398
+ this.Tr = this.Tr.delete(t), this.dr = this.dr.delete(t);
10399
10399
  }, t.prototype.yr = function(t) {
10400
10400
  var e = new pt(new ht([])), n = new Qa(e, t), r = new Qa(e, t + 1), i = Cr();
10401
- return this.Er.forEachInRange([ n, r ], (function(t) {
10401
+ return this.dr.forEachInRange([ n, r ], (function(t) {
10402
10402
  i = i.add(t.key);
10403
10403
  })), i;
10404
10404
  }, t.prototype.containsKey = function(t) {
@@ -10410,7 +10410,7 @@ e) {
10410
10410
  this.key = t, this.wr = e
10411
10411
  /** Compare by key then by ID */;
10412
10412
  }
10413
- return t.dr = function(t, e) {
10413
+ return t.Er = function(t, e) {
10414
10414
  return pt.comparator(t.key, e.key) || ot(t.wr, e.wr);
10415
10415
  },
10416
10416
  /** Compare by ID then by key */ t.Ar = function(t, e) {
@@ -10427,7 +10427,7 @@ e) {
10427
10427
  /** Next value to use when assigning sequential IDs to each mutation batch. */
10428
10428
  this.Sr = 1,
10429
10429
  /** An ordered mapping between documents and the mutations batch IDs. */
10430
- this.br = new Ae(Qa.dr);
10430
+ this.br = new Ae(Qa.Er);
10431
10431
  }
10432
10432
  return t.prototype.checkEmpty = function(t) {
10433
10433
  return Nt.resolve(0 === this.mutationQueue.length);
@@ -11273,9 +11273,9 @@ var ru = "Failed to obtain exclusive access to the persistence layer. To allow s
11273
11273
  /** The client metadata refresh task. */
11274
11274
  this.Ti = null,
11275
11275
  /** The last time we garbage collected the client metadata object store. */
11276
- this.di = Number.NEGATIVE_INFINITY,
11276
+ this.Ei = Number.NEGATIVE_INFINITY,
11277
11277
  /** A listener to notify on primary state changes. */
11278
- this.Ei = function(t) {
11278
+ this.di = function(t) {
11279
11279
  return Promise.resolve();
11280
11280
  }, !t.D()) throw new Q(j.UNIMPLEMENTED, "This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");
11281
11281
  this.referenceDelegate = new Na(this, i), this.Ai = n + "main", this.serializer = new yo(s),
@@ -11317,7 +11317,7 @@ var ru = "Failed to obtain exclusive access to the persistence layer. To allow s
11317
11317
  */
11318
11318
  t.prototype.yi = function(t) {
11319
11319
  var r = this;
11320
- return this.Ei = function(i) {
11320
+ return this.di = function(i) {
11321
11321
  return e(r, void 0, void 0, (function() {
11322
11322
  return n(this, (function(e) {
11323
11323
  return this.started ? [ 2 /*return*/ , t(i) ] : [ 2 /*return*/ ];
@@ -11395,7 +11395,7 @@ var ru = "Failed to obtain exclusive access to the persistence layer. To allow s
11395
11395
  }).next((function() {
11396
11396
  if (t.isPrimary) return t.wi(e).next((function(e) {
11397
11397
  e || (t.isPrimary = !1, t.ui.enqueueRetryable((function() {
11398
- return t.Ei(!1);
11398
+ return t.di(!1);
11399
11399
  })));
11400
11400
  }));
11401
11401
  })).next((function() {
@@ -11417,7 +11417,7 @@ var ru = "Failed to obtain exclusive access to the persistence layer. To allow s
11417
11417
  /* isPrimary= */ !1;
11418
11418
  })).then((function(e) {
11419
11419
  t.isPrimary !== e && t.ui.enqueueRetryable((function() {
11420
- return t.Ei(e);
11420
+ return t.di(e);
11421
11421
  })), t.isPrimary = e;
11422
11422
  }));
11423
11423
  }, t.prototype.wi = function(t) {
@@ -11439,7 +11439,7 @@ var ru = "Failed to obtain exclusive access to the persistence layer. To allow s
11439
11439
  return n(this, (function(n) {
11440
11440
  switch (n.label) {
11441
11441
  case 0:
11442
- return !this.isPrimary || this.Mi(this.di, 18e5) ? [ 3 /*break*/ , 2 ] : (this.di = Date.now(),
11442
+ return !this.isPrimary || this.Mi(this.Ei, 18e5) ? [ 3 /*break*/ , 2 ] : (this.Ei = Date.now(),
11443
11443
  [ 4 /*yield*/ , this.runTransaction("maybeGarbageCollectMultiClientState", "readwrite-primary", (function(t) {
11444
11444
  var e = _e(t, "clientMetadata");
11445
11445
  return e.U().next((function(t) {
@@ -11633,7 +11633,7 @@ var ru = "Failed to obtain exclusive access to the persistence layer. To allow s
11633
11633
  })).next((function(e) {
11634
11634
  if (!e) throw L("Failed to obtain primary lease for action '".concat(t, "'.")),
11635
11635
  r.isPrimary = !1, r.ui.enqueueRetryable((function() {
11636
- return r.Ei(!1);
11636
+ return r.di(!1);
11637
11637
  })), new Q(j.FAILED_PRECONDITION, xt);
11638
11638
  return n(i);
11639
11639
  })).next((function(t) {
@@ -12531,8 +12531,8 @@ function Eu(t, e, n) {
12531
12531
  return n(this, (function(n) {
12532
12532
  switch (n.label) {
12533
12533
  case 0:
12534
- for (e = K(t), a = Cr(), u = wr(), s = 0, c = i; s < c.length; s++) l = c[s], h = r.ds(l.metadata.name),
12535
- l.document && (a = a.add(h)), (f = r.Es(l)).setReadTime(r.As(l.metadata.readTime)),
12534
+ for (e = K(t), a = Cr(), u = wr(), s = 0, c = i; s < c.length; s++) l = c[s], h = r.Es(l.metadata.name),
12535
+ l.document && (a = a.add(h)), (f = r.ds(l)).setReadTime(r.As(l.metadata.readTime)),
12536
12536
  u = u.insert(h, f);
12537
12537
  return d = e.cs.newChangeBuffer({
12538
12538
  trackRemovals: !0
@@ -13777,7 +13777,7 @@ function ju() {
13777
13777
  }));
13778
13778
  })), this.stream.onMessage((function(t) {
13779
13779
  r((function() {
13780
- return 1 == ++n.e_ ? n.d_(t) : n.onNext(t);
13780
+ return 1 == ++n.e_ ? n.E_(t) : n.onNext(t);
13781
13781
  }));
13782
13782
  }));
13783
13783
  }, t.prototype.i_ = function() {
@@ -13822,7 +13822,7 @@ function ju() {
13822
13822
  }
13823
13823
  return t(n, e), n.prototype.T_ = function(t, e) {
13824
13824
  return this.connection.Bo("Listen", t, e);
13825
- }, n.prototype.d_ = function(t) {
13825
+ }, n.prototype.E_ = function(t) {
13826
13826
  return this.onNext(t);
13827
13827
  }, n.prototype.onNext = function(t) {
13828
13828
  // A successful response means the stream is healthy
@@ -13886,7 +13886,7 @@ function ju() {
13886
13886
  var e = t.targetChange;
13887
13887
  return e.targetIds && e.targetIds.length ? ct.min() : e.readTime ? zi(e.readTime) : ct.min();
13888
13888
  }(t);
13889
- return this.listener.E_(e, n);
13889
+ return this.listener.d_(e, n);
13890
13890
  },
13891
13891
  /**
13892
13892
  * Registers interest in the results of the given target. If the target
@@ -13973,7 +13973,7 @@ function ju() {
13973
13973
  this.V_ && this.m_([]);
13974
13974
  }, n.prototype.T_ = function(t, e) {
13975
13975
  return this.connection.Bo("Write", t, e);
13976
- }, n.prototype.d_ = function(t) {
13976
+ }, n.prototype.E_ = function(t) {
13977
13977
  // Always capture the last stream token.
13978
13978
  return z(!!t.streamToken), this.lastStreamToken = t.streamToken,
13979
13979
  // The first response is always the handshake response
@@ -14831,7 +14831,7 @@ function Es(t, r) {
14831
14831
  Eo: hs.bind(null, t),
14832
14832
  Ro: fs.bind(null, t),
14833
14833
  mo: ds.bind(null, t),
14834
- E_: ps.bind(null, t)
14834
+ d_: ps.bind(null, t)
14835
14835
  }), t.B_.push((function(i) {
14836
14836
  return e(r, void 0, void 0, (function() {
14837
14837
  return n(this, (function(e) {
@@ -15428,14 +15428,14 @@ var Gs = /** @class */ function() {
15428
15428
  function t(t) {
15429
15429
  this.serializer = t;
15430
15430
  }
15431
- return t.prototype.ds = function(t) {
15431
+ return t.prototype.Es = function(t) {
15432
15432
  return Wi(this.serializer, t);
15433
15433
  },
15434
15434
  /**
15435
15435
  * Converts a BundleDocument to a MutableDocument.
15436
15436
  */
15437
- t.prototype.Es = function(t) {
15438
- return t.metadata.exists ? $i(this.serializer, t.document, !1) : bn.newNoDocument(this.ds(t.metadata.name), this.As(t.metadata.readTime));
15437
+ t.prototype.ds = function(t) {
15438
+ return t.metadata.exists ? $i(this.serializer, t.document, !1) : bn.newNoDocument(this.Es(t.metadata.name), this.As(t.metadata.readTime));
15439
15439
  }, t.prototype.As = function(t) {
15440
15440
  return zi(t);
15441
15441
  }, t;
@@ -15471,7 +15471,7 @@ var Gs = /** @class */ function() {
15471
15471
  }, t.prototype.ha = function(t) {
15472
15472
  for (var e = new Map, n = new js(this.serializer), r = 0, i = t; r < i.length; r++) {
15473
15473
  var o = i[r];
15474
- if (o.metadata.queries) for (var a = n.ds(o.metadata.name), u = 0, s = o.metadata.queries; u < s.length; u++) {
15474
+ if (o.metadata.queries) for (var a = n.Es(o.metadata.name), u = 0, s = o.metadata.queries; u < s.length; u++) {
15475
15475
  var c = s[u], l = (e.get(c) || Cr()).add(a);
15476
15476
  e.set(c, l);
15477
15477
  }
@@ -15574,7 +15574,7 @@ function Ws(t) {
15574
15574
  function t(t,
15575
15575
  /** Documents included in the remote target */
15576
15576
  e) {
15577
- this.query = t, this.Ta = e, this.da = null, this.hasCachedResults = !1,
15577
+ this.query = t, this.Ta = e, this.Ea = null, this.hasCachedResults = !1,
15578
15578
  /**
15579
15579
  * A flag whether the view is current with the backend. A view is considered
15580
15580
  * current after it has seen the current flag from the backend and did not
@@ -15583,7 +15583,7 @@ function Ws(t) {
15583
15583
  */
15584
15584
  this.current = !1,
15585
15585
  /** Documents in the view but not in the remote target */
15586
- this.Ea = Cr(),
15586
+ this.da = Cr(),
15587
15587
  /** Document Keys that have local changes */
15588
15588
  this.mutatedKeys = Cr(), this.Aa = vr(t), this.Ra = new Os(this.Aa);
15589
15589
  }
@@ -15705,10 +15705,10 @@ function Ws(t) {
15705
15705
  return n(t) - n(e);
15706
15706
  }(t.type, e.type) || i.Aa(t.doc, e.doc);
15707
15707
  })), this.pa(n), r = null != r && r;
15708
- var u = e && !r ? this.ya() : [], s = 0 === this.Ea.size && this.current && !r ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , c = s !== this.da;
15708
+ var u = e && !r ? this.ya() : [], s = 0 === this.da.size && this.current && !r ? 1 /* SyncState.Synced */ : 0 /* SyncState.Local */ , c = s !== this.Ea;
15709
15709
  // We are at synced state if there is no limbo docs are waiting to be resolved, view is current
15710
15710
  // with the backend, and the query is not pending to reset due to existence filter mismatch.
15711
- return this.da = s, 0 !== a.length || c ? {
15711
+ return this.Ea = s, 0 !== a.length || c ? {
15712
15712
  snapshot: new Rs(this.query, t.Ra, o, a, t.mutatedKeys, 0 /* SyncState.Local */ === s, c,
15713
15713
  /* excludesMetadataChanges= */ !1, !!n && n.resumeToken.approximateByteSize() > 0),
15714
15714
  wa: u
@@ -15763,15 +15763,15 @@ function Ws(t) {
15763
15763
  if (!this.current) return [];
15764
15764
  // TODO(klimt): Do this incrementally so that it's not quadratic when
15765
15765
  // updating many documents.
15766
- var e = this.Ea;
15767
- this.Ea = Cr(), this.Ra.forEach((function(e) {
15768
- t.Sa(e.key) && (t.Ea = t.Ea.add(e.key));
15766
+ var e = this.da;
15767
+ this.da = Cr(), this.Ra.forEach((function(e) {
15768
+ t.Sa(e.key) && (t.da = t.da.add(e.key));
15769
15769
  }));
15770
15770
  // Diff the new limbo docs with the old limbo docs.
15771
15771
  var n = [];
15772
15772
  return e.forEach((function(e) {
15773
- t.Ea.has(e) || n.push(new Js(e));
15774
- })), this.Ea.forEach((function(t) {
15773
+ t.da.has(e) || n.push(new Js(e));
15774
+ })), this.da.forEach((function(t) {
15775
15775
  e.has(t) || n.push(new Hs(t));
15776
15776
  })), n;
15777
15777
  },
@@ -15796,7 +15796,7 @@ function Ws(t) {
15796
15796
  */
15797
15797
  // PORTING NOTE: Multi-tab only.
15798
15798
  t.prototype.ba = function(t) {
15799
- this.Ta = t.Ts, this.Ea = Cr();
15799
+ this.Ta = t.Ts, this.da = Cr();
15800
15800
  var e = this.ma(t.documents);
15801
15801
  return this.applyChanges(e, /* limboResolutionEnabled= */ !0);
15802
15802
  },
@@ -15807,7 +15807,7 @@ function Ws(t) {
15807
15807
  */
15808
15808
  // PORTING NOTE: Multi-tab only.
15809
15809
  t.prototype.Da = function() {
15810
- return Rs.fromInitialDocuments(this.query, this.Ra, this.mutatedKeys, 0 /* SyncState.Local */ === this.da, this.hasCachedResults);
15810
+ return Rs.fromInitialDocuments(this.query, this.Ra, this.mutatedKeys, 0 /* SyncState.Local */ === this.Ea, this.hasCachedResults);
15811
15811
  }, t;
15812
15812
  }(), Xs = function(
15813
15813
  /**
@@ -16215,7 +16215,7 @@ function nc(t, r, i, o) {
16215
16215
  o[i].Z_(e) && (r = !0);
16216
16216
  }
16217
16217
  })), r && zs(n);
16218
- }(r.eventManager, e), i.length && r.Ca.E_(i), r.onlineState = e, r.isPrimaryClient && r.sharedClientState.setOnlineState(e);
16218
+ }(r.eventManager, e), i.length && r.Ca.d_(i), r.onlineState = e, r.isPrimaryClient && r.sharedClientState.setOnlineState(e);
16219
16219
  }
16220
16220
  }
16221
16221
 
@@ -16503,7 +16503,7 @@ function bc(t, r, i) {
16503
16503
  })), [ 4 /*yield*/ , Promise.all(s) ]);
16504
16504
 
16505
16505
  case 1:
16506
- return c.sent(), o.Ca.E_(a), [ 4 /*yield*/ , function(t, r) {
16506
+ return c.sent(), o.Ca.d_(a), [ 4 /*yield*/ , function(t, r) {
16507
16507
  return e(this, void 0, void 0, (function() {
16508
16508
  var e, i, o, a, u, s, c, l, h;
16509
16509
  return n(this, (function(n) {
@@ -16794,7 +16794,7 @@ function Dc(t, r, i) {
16794
16794
  return a++, [ 3 /*break*/ , 1 ];
16795
16795
 
16796
16796
  case 13:
16797
- return [ 2 /*return*/ , (e.Ca.E_(o), i) ];
16797
+ return [ 2 /*return*/ , (e.Ca.d_(o), i) ];
16798
16798
  }
16799
16799
  }));
16800
16800
  }));
@@ -16939,7 +16939,7 @@ function Ac(t, r, i, o) {
16939
16939
  function Oc(t) {
16940
16940
  var e = K(t);
16941
16941
  return e.remoteStore.remoteSyncer.applyRemoteEvent = uc.bind(null, e), e.remoteStore.remoteSyncer.getRemoteKeysForTarget = _c.bind(null, e),
16942
- e.remoteStore.remoteSyncer.rejectListen = cc.bind(null, e), e.Ca.E_ = Us.bind(null, e.eventManager),
16942
+ e.remoteStore.remoteSyncer.rejectListen = cc.bind(null, e), e.Ca.d_ = Us.bind(null, e.eventManager),
16943
16943
  e.Ca.$a = Bs.bind(null, e.eventManager), e;
16944
16944
  }
16945
16945
 
@@ -18761,12 +18761,12 @@ var Sl = /** @class */ function() {
18761
18761
  // Visibility handler that triggers an immediate retry of all retryable
18762
18762
  // operations. Meant to speed up recovery when we regain file system access
18763
18763
  // after page comes into foreground.
18764
- this.du = function() {
18764
+ this.Eu = function() {
18765
18765
  var e = Qu();
18766
18766
  e && F("AsyncQueue", "Visibility state changed to " + e.visibilityState), t.t_.jo();
18767
18767
  };
18768
18768
  var e = Qu();
18769
- e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.du);
18769
+ e && "function" == typeof e.addEventListener && e.addEventListener("visibilitychange", this.Eu);
18770
18770
  }
18771
18771
  return Object.defineProperty(t.prototype, "isShuttingDown", {
18772
18772
  get: function() {
@@ -18783,18 +18783,18 @@ var Sl = /** @class */ function() {
18783
18783
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
18784
18784
  this.enqueue(t);
18785
18785
  }, t.prototype.enqueueAndForgetEvenWhileRestricted = function(t) {
18786
- this.Eu(),
18786
+ this.du(),
18787
18787
  // eslint-disable-next-line @typescript-eslint/no-floating-promises
18788
18788
  this.Au(t);
18789
18789
  }, t.prototype.enterRestrictedMode = function(t) {
18790
18790
  if (!this.cu) {
18791
18791
  this.cu = !0, this.Iu = t || !1;
18792
18792
  var e = Qu();
18793
- e && "function" == typeof e.removeEventListener && e.removeEventListener("visibilitychange", this.du);
18793
+ e && "function" == typeof e.removeEventListener && e.removeEventListener("visibilitychange", this.Eu);
18794
18794
  }
18795
18795
  }, t.prototype.enqueue = function(t) {
18796
18796
  var e = this;
18797
- if (this.Eu(), this.cu)
18797
+ if (this.du(), this.cu)
18798
18798
  // Return a Promise which never resolves.
18799
18799
  return new Promise((function() {}));
18800
18800
  // Create a deferred Promise that we can return to the callee. This
@@ -18884,14 +18884,14 @@ var Sl = /** @class */ function() {
18884
18884
  return this.au = n, n;
18885
18885
  }, t.prototype.enqueueAfterDelay = function(t, e, n) {
18886
18886
  var r = this;
18887
- this.Eu(),
18887
+ this.du(),
18888
18888
  // Fast-forward delays for timerIds that have been overridden.
18889
18889
  this.Tu.indexOf(t) > -1 && (e = 0);
18890
18890
  var i = Cs.createAndSchedule(this, t, e, n, (function(t) {
18891
18891
  return r.Vu(t);
18892
18892
  }));
18893
18893
  return this.lu.push(i), i;
18894
- }, t.prototype.Eu = function() {
18894
+ }, t.prototype.du = function() {
18895
18895
  this.hu && B();
18896
18896
  }, t.prototype.verifyOperationInProgress = function() {},
18897
18897
  /**
@@ -22831,9 +22831,9 @@ function ld(t) {
22831
22831
  return r = Object.assign({
22832
22832
  useFetchStreams: dd
22833
22833
  }, r), o._setSettings(r), o;
22834
- }), "PUBLIC").setMultipleInstances(!0)), a(k, "4.7.1-canary.16d62d4fa", fd),
22834
+ }), "PUBLIC").setMultipleInstances(!0)), a(k, "4.7.1-canary.ca4dbcf3f", fd),
22835
22835
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
22836
- a(k, "4.7.1-canary.16d62d4fa", "esm5");
22836
+ a(k, "4.7.1-canary.ca4dbcf3f", "esm5");
22837
22837
 
22838
22838
  export { $h as AbstractUserDataWriter, jl as AggregateField, Ql as AggregateQuerySnapshot, Wl as Bytes, Cl as CACHE_SIZE_UNLIMITED, wl as CollectionReference, gl as DocumentReference, cf as DocumentSnapshot, Hl as FieldPath, Yl as FieldValue, Nl as Firestore, Q as FirestoreError, Xl as GeoPoint, Dl as LoadBundleTask, rd as PersistentCacheIndexManager, yl as Query, Rh as QueryCompositeFilterConstraint, Ah as QueryConstraint, lf as QueryDocumentSnapshot, jh as QueryEndAtConstraint, Oh as QueryFieldFilterConstraint, qh as QueryLimitConstraint, Fh as QueryOrderByConstraint, hf as QuerySnapshot, zh as QueryStartAtConstraint, sf as SnapshotMetadata, st as Timestamp, Qf as Transaction, Zl as VectorValue, Kf as WriteBatch, it as _AutoId, Ve as _ByteString, je as _DatabaseId, pt as _DocumentKey, nt as _EmptyAppCheckTokenProvider, J as _EmptyAuthCredentialsProvider, dt as _FieldPath, pd as _TestingHooks, fl as _cast, G as _debugAssert, hd as _internalAggregationQueryToProtoRunAggregationQueryRequest, ld as _internalQueryToProtoQueryTarget, Me as _isBase64Available, q as _logWarn, sl as _validateIsNotUsedTogether, Ef as addDoc, af as aggregateFieldEqual, uf as aggregateQuerySnapshotEqual, Vh as and, Xf as arrayRemove, Yf as arrayUnion, rf as average, Fl as clearIndexedDbPersistence, bl as collection, Il as collectionGroup, ml as connectFirestoreEmulator, of as count, ud as deleteAllPersistentCacheIndexes, Tf as deleteDoc, Hf as deleteField, Ul as disableNetwork, ad as disablePersistentCacheIndexAutoCreation, _l as doc, Jl as documentId, Rl as enableIndexedDbPersistence, Ml as enableMultiTabIndexedDbPersistence, ql as enableNetwork, od as enablePersistentCacheIndexAutoCreation, Wh as endAt, Qh as endBefore, Ol as ensureFirestoreConfigured, Df as executeWrite, Af as getAggregateFromServer, Nf as getCountFromServer, pf as getDoc, mf as getDocFromCache, yf as getDocFromServer, gf as getDocs, wf as getDocsFromCache, bf as getDocsFromServer, kl as getFirestore, id as getPersistentCacheIndexManager, Zf as increment, Al as initializeFirestore, Uh as limit, Bh as limitToLast, zl as loadBundle, Mf as memoryEagerGarbageCollector, Ff as memoryLocalCache, Vf as memoryLruGarbageCollector, Gl as namedQuery, Sf as onSnapshot, xf as onSnapshotsInSync, Mh as or, Lh as orderBy, Lf as persistentLocalCache, zf as persistentMultipleTabManager, Bf as persistentSingleTabManager, kh as query, El as queryEqual, Tl as refEqual, Wf as runTransaction, Jf as serverTimestamp, If as setDoc, ed as setIndexConfiguration, V as setLogLevel, df as snapshotEqual, Kh as startAfter, Gh as startAt, nf as sum, Bl as terminate, _f as updateDoc, $f as vector, Ll as waitForPendingWrites, Ph as where, td as writeBatch };
22839
22839
  //# sourceMappingURL=index.esm5.js.map
@@ -34,7 +34,7 @@ var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
34
34
  var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
35
35
 
36
36
  const name = "@firebase/firestore";
37
- const version$1 = "4.7.1-canary.16d62d4fa";
37
+ const version$1 = "4.7.1-canary.ca4dbcf3f";
38
38
 
39
39
  /**
40
40
  * @license
@@ -87,7 +87,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
87
87
  User.FIRST_PARTY = new User('first-party-uid');
88
88
  User.MOCK_USER = new User('mock-user');
89
89
 
90
- const version = "10.13.1-canary.16d62d4fa";
90
+ const version = "10.13.1-canary.ca4dbcf3f";
91
91
 
92
92
  /**
93
93
  * @license
@@ -9,7 +9,7 @@ import * as grpc from '@grpc/grpc-js';
9
9
  import * as protoLoader from '@grpc/proto-loader';
10
10
 
11
11
  const name = "@firebase/firestore";
12
- const version$1 = "4.7.1-canary.16d62d4fa";
12
+ const version$1 = "4.7.1-canary.ca4dbcf3f";
13
13
 
14
14
  /**
15
15
  * @license
@@ -62,7 +62,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
62
62
  User.FIRST_PARTY = new User('first-party-uid');
63
63
  User.MOCK_USER = new User('mock-user');
64
64
 
65
- const version = "10.13.1-canary.16d62d4fa";
65
+ const version = "10.13.1-canary.ca4dbcf3f";
66
66
 
67
67
  /**
68
68
  * @license