firebase 9.6.2-canary.044a8d7f9 → 9.6.2-canary.88d43ec00

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.
Files changed (44) hide show
  1. package/app/dist/index.cjs.js +1 -1
  2. package/app/dist/index.esm.js +1 -1
  3. package/app/dist/index.mjs +1 -1
  4. package/compat/app/dist/index.cjs.js +1 -1
  5. package/compat/app/dist/index.esm.js +1 -1
  6. package/compat/app/dist/index.mjs +1 -1
  7. package/compat/dist/index.esm.js +2 -2
  8. package/compat/dist/index.node.cjs +2 -2
  9. package/compat/dist/index.rn.cjs.js +2 -2
  10. package/firebase-analytics-compat.js +1 -1
  11. package/firebase-analytics.js +5 -5
  12. package/firebase-app-check-compat.js +1 -1
  13. package/firebase-app-check.js +5 -5
  14. package/firebase-app-compat.js +2 -2
  15. package/firebase-app.js +9 -9
  16. package/firebase-auth-compat.js +1 -1
  17. package/firebase-auth.js +3 -3
  18. package/firebase-compat.js +4 -4
  19. package/firebase-compat.js.map +1 -1
  20. package/firebase-database-compat.js +1 -1
  21. package/firebase-database.js +5 -5
  22. package/firebase-firestore-compat.js +1 -1
  23. package/firebase-firestore-compat.js.map +1 -1
  24. package/firebase-firestore-lite.js +129 -129
  25. package/firebase-firestore-lite.js.map +1 -1
  26. package/firebase-firestore.js +874 -874
  27. package/firebase-firestore.js.map +1 -1
  28. package/firebase-functions-compat.js +1 -1
  29. package/firebase-functions.js +3 -3
  30. package/firebase-messaging-compat.js +1 -1
  31. package/firebase-messaging-compat.js.map +1 -1
  32. package/firebase-messaging-sw.js +5 -5
  33. package/firebase-messaging-sw.js.map +1 -1
  34. package/firebase-messaging.js +4 -4
  35. package/firebase-messaging.js.map +1 -1
  36. package/firebase-performance-compat.js +1 -1
  37. package/firebase-performance-standalone-compat.es2017.js +7 -7
  38. package/firebase-performance-standalone-compat.js +1 -1
  39. package/firebase-performance.js +5 -5
  40. package/firebase-remote-config-compat.js +1 -1
  41. package/firebase-remote-config.js +4 -4
  42. package/firebase-storage-compat.js +1 -1
  43. package/firebase-storage.js +2 -2
  44. package/package.json +26 -26
@@ -1,4 +1,4 @@
1
- import { _registerComponent, registerVersion, _getProvider, getApp, _removeServiceInstance, SDK_VERSION } from 'https://www.gstatic.com/firebasejs/9.6.2-canary.044a8d7f9/firebase-app.js';
1
+ import { _registerComponent, registerVersion, _getProvider, getApp, _removeServiceInstance, SDK_VERSION } from 'https://www.gstatic.com/firebasejs/9.6.2-canary.88d43ec00/firebase-app.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -740,7 +740,7 @@ l.MOCK_USER = new l("mock-user");
740
740
  * See the License for the specific language governing permissions and
741
741
  * limitations under the License.
742
742
  */
743
- let f = "9.6.2-canary.044a8d7f9";
743
+ let f = "9.6.2-canary.88d43ec00";
744
744
 
745
745
  /**
746
746
  * @license
@@ -895,7 +895,7 @@ n) {
895
895
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
896
896
  * See the License for the specific language governing permissions and
897
897
  * limitations under the License.
898
- */ const E = "ok", T = "cancelled", I = "unknown", A = "invalid-argument", P = "deadline-exceeded", R = "not-found", V = "already-exists", D = "permission-denied", N = "unauthenticated", $ = "resource-exhausted", F = "failed-precondition", S = "aborted", x = "out-of-range", q = "unimplemented", O = "internal", C = "unavailable", L = "data-loss";
898
+ */ const E = "ok", T = "cancelled", I = "unknown", A = "invalid-argument", R = "deadline-exceeded", P = "not-found", V = "already-exists", D = "permission-denied", N = "unauthenticated", $ = "resource-exhausted", S = "failed-precondition", F = "aborted", x = "out-of-range", q = "unimplemented", O = "internal", C = "unavailable", L = "data-loss";
899
899
 
900
900
  /** An error returned by a Firestore operation. */ class U extends FirebaseError {
901
901
  /** @hideconstructor */
@@ -1575,7 +1575,7 @@ function dt(t) {
1575
1575
 
1576
1576
  case 400:
1577
1577
  // Bad Request
1578
- return F;
1578
+ return S;
1579
1579
 
1580
1580
  // Other possibilities based on the forward mapping
1581
1581
  // return Code.INVALID_ARGUMENT;
@@ -1590,11 +1590,11 @@ function dt(t) {
1590
1590
 
1591
1591
  case 404:
1592
1592
  // Not Found
1593
- return R;
1593
+ return P;
1594
1594
 
1595
1595
  case 409:
1596
1596
  // Conflict
1597
- return S;
1597
+ return F;
1598
1598
 
1599
1599
  // Other possibilities:
1600
1600
  // return Code.ALREADY_EXISTS;
@@ -1627,10 +1627,10 @@ function dt(t) {
1627
1627
 
1628
1628
  case 504:
1629
1629
  // Gateway Timeout
1630
- return P;
1630
+ return R;
1631
1631
 
1632
1632
  default:
1633
- return t >= 200 && t < 300 ? E : t >= 400 && t < 500 ? F : t >= 500 && t < 600 ? O : I;
1633
+ return t >= 200 && t < 300 ? E : t >= 400 && t < 500 ? S : t >= 500 && t < 600 ? O : I;
1634
1634
  }
1635
1635
  }
1636
1636
 
@@ -1797,7 +1797,7 @@ function mt(t) {
1797
1797
  * See the License for the specific language governing permissions and
1798
1798
  * limitations under the License.
1799
1799
  */ class pt {
1800
- static P() {
1800
+ static R() {
1801
1801
  // Alphanumeric characters
1802
1802
  const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", n = Math.floor(256 / t.length) * t.length;
1803
1803
  // The largest byte value that is a multiple of `char.length`.
@@ -2207,7 +2207,7 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2207
2207
  /**
2208
2208
  * Converts the possible Proto values for a timestamp value into a "seconds and
2209
2209
  * nanos" representation.
2210
- */ function Pt(t) {
2210
+ */ function Rt(t) {
2211
2211
  // The json interface (for the browser) will return an iso timestamp string,
2212
2212
  // while the proto js library (for node) will return a
2213
2213
  // google.protobuf.Timestamp instance.
@@ -2230,15 +2230,15 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2230
2230
  };
2231
2231
  }
2232
2232
  return {
2233
- seconds: Rt(t.seconds),
2234
- nanos: Rt(t.nanos)
2233
+ seconds: Pt(t.seconds),
2234
+ nanos: Pt(t.nanos)
2235
2235
  };
2236
2236
  }
2237
2237
 
2238
2238
  /**
2239
2239
  * Converts the possible Proto types for numbers into a JavaScript number.
2240
2240
  * Returns 0 if the value is not numeric.
2241
- */ function Rt(t) {
2241
+ */ function Pt(t) {
2242
2242
  // TODO(bjornick): Handle int64 greater than 53 bits.
2243
2243
  return "number" == typeof t ? t : "string" == typeof t ? Number(t) : 0;
2244
2244
  }
@@ -2298,7 +2298,7 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2298
2298
  /**
2299
2299
  * Returns the local time at which this timestamp was first set.
2300
2300
  */ function $t(t) {
2301
- const n = Pt(t.mapValue.fields.__local_write_time__.timestampValue);
2301
+ const n = Rt(t.mapValue.fields.__local_write_time__.timestampValue);
2302
2302
  return new gt(n.seconds, n.nanos);
2303
2303
  }
2304
2304
 
@@ -2318,14 +2318,14 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2318
2318
  * See the License for the specific language governing permissions and
2319
2319
  * limitations under the License.
2320
2320
  */
2321
- /** Extracts the backend's type order for the provided value. */ function Ft(t) {
2321
+ /** Extracts the backend's type order for the provided value. */ function St(t) {
2322
2322
  return "nullValue" in t ? 0 /* NullValue */ : "booleanValue" in t ? 1 /* BooleanValue */ : "integerValue" in t || "doubleValue" in t ? 2 /* NumberValue */ : "timestampValue" in t ? 3 /* TimestampValue */ : "stringValue" in t ? 5 /* StringValue */ : "bytesValue" in t ? 6 /* BlobValue */ : "referenceValue" in t ? 7 /* RefValue */ : "geoPointValue" in t ? 8 /* GeoPointValue */ : "arrayValue" in t ? 9 /* ArrayValue */ : "mapValue" in t ? Dt(t) ? 4 /* ServerTimestampValue */ : 10 /* ObjectValue */ : g();
2323
2323
  }
2324
2324
 
2325
- /** Tests `left` and `right` for equality based on the backend semantics. */ function St(t, n) {
2325
+ /** Tests `left` and `right` for equality based on the backend semantics. */ function Ft(t, n) {
2326
2326
  if (t === n) return !0;
2327
- const e = Ft(t);
2328
- if (e !== Ft(n)) return !1;
2327
+ const e = St(t);
2328
+ if (e !== St(n)) return !1;
2329
2329
  switch (e) {
2330
2330
  case 0 /* NullValue */ :
2331
2331
  return !0;
@@ -2341,7 +2341,7 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2341
2341
  if ("string" == typeof t.timestampValue && "string" == typeof n.timestampValue && t.timestampValue.length === n.timestampValue.length)
2342
2342
  // Use string equality for ISO 8601 timestamps
2343
2343
  return t.timestampValue === n.timestampValue;
2344
- const e = Pt(t.timestampValue), r = Pt(n.timestampValue);
2344
+ const e = Rt(t.timestampValue), r = Rt(n.timestampValue);
2345
2345
  return e.seconds === r.seconds && e.nanos === r.nanos;
2346
2346
  }(t, n);
2347
2347
 
@@ -2358,27 +2358,27 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2358
2358
 
2359
2359
  case 8 /* GeoPointValue */ :
2360
2360
  return function(t, n) {
2361
- return Rt(t.geoPointValue.latitude) === Rt(n.geoPointValue.latitude) && Rt(t.geoPointValue.longitude) === Rt(n.geoPointValue.longitude);
2361
+ return Pt(t.geoPointValue.latitude) === Pt(n.geoPointValue.latitude) && Pt(t.geoPointValue.longitude) === Pt(n.geoPointValue.longitude);
2362
2362
  }(t, n);
2363
2363
 
2364
2364
  case 2 /* NumberValue */ :
2365
2365
  return function(t, n) {
2366
- if ("integerValue" in t && "integerValue" in n) return Rt(t.integerValue) === Rt(n.integerValue);
2366
+ if ("integerValue" in t && "integerValue" in n) return Pt(t.integerValue) === Pt(n.integerValue);
2367
2367
  if ("doubleValue" in t && "doubleValue" in n) {
2368
- const e = Rt(t.doubleValue), r = Rt(n.doubleValue);
2368
+ const e = Pt(t.doubleValue), r = Pt(n.doubleValue);
2369
2369
  return e === r ? at(e) === at(r) : isNaN(e) && isNaN(r);
2370
2370
  }
2371
2371
  return !1;
2372
2372
  }(t, n);
2373
2373
 
2374
2374
  case 9 /* ArrayValue */ :
2375
- return _t(t.arrayValue.values || [], n.arrayValue.values || [], St);
2375
+ return _t(t.arrayValue.values || [], n.arrayValue.values || [], Ft);
2376
2376
 
2377
2377
  case 10 /* ObjectValue */ :
2378
2378
  return function(t, n) {
2379
2379
  const e = t.mapValue.fields || {}, r = n.mapValue.fields || {};
2380
2380
  if (bt(e) !== bt(r)) return !1;
2381
- for (const t in e) if (e.hasOwnProperty(t) && (void 0 === r[t] || !St(e[t], r[t]))) return !1;
2381
+ for (const t in e) if (e.hasOwnProperty(t) && (void 0 === r[t] || !Ft(e[t], r[t]))) return !1;
2382
2382
  return !0;
2383
2383
  }
2384
2384
  /** Returns true if the ArrayValue contains the specified element. */ (t, n);
@@ -2389,12 +2389,12 @@ const At = new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);
2389
2389
  }
2390
2390
 
2391
2391
  function xt(t, n) {
2392
- return void 0 !== (t.values || []).find((t => St(t, n)));
2392
+ return void 0 !== (t.values || []).find((t => Ft(t, n)));
2393
2393
  }
2394
2394
 
2395
2395
  function qt(t, n) {
2396
2396
  if (t === n) return 0;
2397
- const e = Ft(t), r = Ft(n);
2397
+ const e = St(t), r = St(n);
2398
2398
  if (e !== r) return yt(e, r);
2399
2399
  switch (e) {
2400
2400
  case 0 /* NullValue */ :
@@ -2405,7 +2405,7 @@ function qt(t, n) {
2405
2405
 
2406
2406
  case 2 /* NumberValue */ :
2407
2407
  return function(t, n) {
2408
- const e = Rt(t.integerValue || t.doubleValue), r = Rt(n.integerValue || n.doubleValue);
2408
+ const e = Pt(t.integerValue || t.doubleValue), r = Pt(n.integerValue || n.doubleValue);
2409
2409
  return e < r ? -1 : e > r ? 1 : e === r ? 0 :
2410
2410
  // one or both are NaN.
2411
2411
  isNaN(e) ? isNaN(r) ? 0 : -1 : 1;
@@ -2438,9 +2438,9 @@ function qt(t, n) {
2438
2438
 
2439
2439
  case 8 /* GeoPointValue */ :
2440
2440
  return function(t, n) {
2441
- const e = yt(Rt(t.latitude), Rt(n.latitude));
2441
+ const e = yt(Pt(t.latitude), Pt(n.latitude));
2442
2442
  if (0 !== e) return e;
2443
- return yt(Rt(t.longitude), Rt(n.longitude));
2443
+ return yt(Pt(t.longitude), Pt(n.longitude));
2444
2444
  }(t.geoPointValue, n.geoPointValue);
2445
2445
 
2446
2446
  case 9 /* ArrayValue */ :
@@ -2478,7 +2478,7 @@ function qt(t, n) {
2478
2478
 
2479
2479
  function Ot(t, n) {
2480
2480
  if ("string" == typeof t && "string" == typeof n && t.length === n.length) return yt(t, n);
2481
- const e = Pt(t), r = Pt(n), s = yt(e.seconds, r.seconds);
2481
+ const e = Rt(t), r = Rt(n), s = yt(e.seconds, r.seconds);
2482
2482
  return 0 !== s ? s : yt(e.nanos, r.nanos);
2483
2483
  }
2484
2484
 
@@ -2608,7 +2608,7 @@ function Ct(t, n) {
2608
2608
  jt(n) && n.mapValue.fields && delete n.mapValue.fields[t.lastSegment()];
2609
2609
  }
2610
2610
  isEqual(t) {
2611
- return St(this.value, t.value);
2611
+ return Ft(this.value, t.value);
2612
2612
  }
2613
2613
  /**
2614
2614
  * Returns the map that contains the leaf element of `path`. If the parent
@@ -2771,7 +2771,7 @@ function Ct(t, n) {
2771
2771
  class Gt {
2772
2772
  constructor(t, n = null, e = [], r = [], s = null, i = null, o = null) {
2773
2773
  this.path = t, this.collectionGroup = n, this.orderBy = e, this.filters = r, this.limit = s,
2774
- this.startAt = i, this.endAt = o, this.R = null;
2774
+ this.startAt = i, this.endAt = o, this.P = null;
2775
2775
  }
2776
2776
  }
2777
2777
 
@@ -2801,7 +2801,7 @@ class Wt extends class {} {
2801
2801
  matches(t) {
2802
2802
  const n = t.data.field(this.field);
2803
2803
  // Types do not have to match in NOT_EQUAL filters.
2804
- return "!=" /* NOT_EQUAL */ === this.op ? null !== n && this.D(qt(n, this.value)) : null !== n && Ft(this.value) === Ft(n) && this.D(qt(n, this.value));
2804
+ return "!=" /* NOT_EQUAL */ === this.op ? null !== n && this.D(qt(n, this.value)) : null !== n && St(this.value) === St(n) && this.D(qt(n, this.value));
2805
2805
  // Only compare types with matching backend order (such as double and int).
2806
2806
  }
2807
2807
  D(t) {
@@ -2946,7 +2946,7 @@ function on(t, n) {
2946
2946
  if (null === n) return !1;
2947
2947
  if (t.before !== n.before || t.position.length !== n.position.length) return !1;
2948
2948
  for (let e = 0; e < t.position.length; e++) {
2949
- if (!St(t.position[e], n.position[e])) return !1;
2949
+ if (!Ft(t.position[e], n.position[e])) return !1;
2950
2950
  }
2951
2951
  return !0;
2952
2952
  }
@@ -2982,7 +2982,7 @@ function on(t, n) {
2982
2982
  this.path = t, this.collectionGroup = n, this.explicitOrderBy = e, this.filters = r,
2983
2983
  this.limit = s, this.limitType = i, this.startAt = o, this.endAt = u, this.$ = null,
2984
2984
  // The corresponding `Target` of this `Query` instance.
2985
- this.F = null, this.startAt, this.endAt;
2985
+ this.S = null, this.startAt, this.endAt;
2986
2986
  }
2987
2987
  }
2988
2988
 
@@ -3042,7 +3042,7 @@ function ln(t) {
3042
3042
  * Converts this `Query` instance to it's corresponding `Target` representation.
3043
3043
  */ function dn(t) {
3044
3044
  const n = b(t);
3045
- if (!n.F) if ("F" /* First */ === n.limitType) n.F = Qt(n.path, n.collectionGroup, fn(n), n.filters, n.limit, n.startAt, n.endAt); else {
3045
+ if (!n.S) if ("F" /* First */ === n.limitType) n.S = Qt(n.path, n.collectionGroup, fn(n), n.filters, n.limit, n.startAt, n.endAt); else {
3046
3046
  // Flip the orderBy directions since we want the last results
3047
3047
  const t = [];
3048
3048
  for (const e of fn(n)) {
@@ -3052,9 +3052,9 @@ function ln(t) {
3052
3052
  // We need to swap the cursors to match the now-flipped query ordering.
3053
3053
  const e = n.endAt ? new en(n.endAt.position, !n.endAt.before) : null, r = n.startAt ? new en(n.startAt.position, !n.startAt.before) : null;
3054
3054
  // Now return as a LimitType.First query.
3055
- n.F = Qt(n.path, n.collectionGroup, t, n.filters, n.limit, e, r);
3055
+ n.S = Qt(n.path, n.collectionGroup, t, n.filters, n.limit, e, r);
3056
3056
  }
3057
- return n.F;
3057
+ return n.S;
3058
3058
  }
3059
3059
 
3060
3060
  function wn(t, n) {
@@ -3064,7 +3064,7 @@ function wn(t, n) {
3064
3064
  for (let e = 0; e < t.orderBy.length; e++) if (!sn(t.orderBy[e], n.orderBy[e])) return !1;
3065
3065
  if (t.filters.length !== n.filters.length) return !1;
3066
3066
  for (let s = 0; s < t.filters.length; s++) if (e = t.filters[s], r = n.filters[s],
3067
- e.op !== r.op || !e.field.isEqual(r.field) || !St(e.value, r.value)) return !1;
3067
+ e.op !== r.op || !e.field.isEqual(r.field) || !Ft(e.value, r.value)) return !1;
3068
3068
  var e, r;
3069
3069
  return t.collectionGroup === n.collectionGroup && !!t.path.isEqual(n.path) && !!on(t.startAt, n.startAt) && on(t.endAt, n.endAt);
3070
3070
  }(dn(t), dn(n)) && t.limitType === n.limitType;
@@ -3107,7 +3107,7 @@ function mn(t, n) {
3107
3107
  integerValue: "" + t
3108
3108
  };
3109
3109
  }(n) : function(t, n) {
3110
- if (t.S) {
3110
+ if (t.F) {
3111
3111
  if (isNaN(n)) return {
3112
3112
  doubleValue: "NaN"
3113
3113
  };
@@ -3294,7 +3294,7 @@ function mn(t, n) {
3294
3294
  }
3295
3295
  }
3296
3296
 
3297
- /** A mutation that deletes the document at the given key. */ class Pn extends Tn {
3297
+ /** A mutation that deletes the document at the given key. */ class Rn extends Tn {
3298
3298
  constructor(t, n) {
3299
3299
  super(), this.key = t, this.precondition = n, this.type = 2 /* Delete */ , this.fieldTransforms = [];
3300
3300
  }
@@ -3306,7 +3306,7 @@ function mn(t, n) {
3306
3306
  *
3307
3307
  * The `verify` operation is only used in Transactions, and this class serves
3308
3308
  * primarily to facilitate serialization into protos.
3309
- */ class Rn extends Tn {
3309
+ */ class Pn extends Tn {
3310
3310
  constructor(t, n) {
3311
3311
  super(), this.key = t, this.precondition = n, this.type = 3 /* Verify */ , this.fieldTransforms = [];
3312
3312
  }
@@ -3365,7 +3365,7 @@ function mn(t, n) {
3365
3365
  */
3366
3366
  class Nn {
3367
3367
  constructor(t, n) {
3368
- this.databaseId = t, this.S = n;
3368
+ this.databaseId = t, this.F = n;
3369
3369
  }
3370
3370
  }
3371
3371
 
@@ -3381,7 +3381,7 @@ class Nn {
3381
3381
  * Returns a value for a Date that's appropriate to put into a proto.
3382
3382
  */
3383
3383
  function $n(t, n) {
3384
- if (t.S) {
3384
+ if (t.F) {
3385
3385
  return `${new Date(1e3 * n.seconds).toISOString().replace(/\.\d*/, "").replace("Z", "")}.${("000000000" + n.nanoseconds).slice(-9)}Z`;
3386
3386
  }
3387
3387
  return {
@@ -3395,17 +3395,17 @@ function $n(t, n) {
3395
3395
  *
3396
3396
  * Visible for testing.
3397
3397
  */
3398
- function Fn(t, n) {
3399
- return t.S ? n.toBase64() : n.toUint8Array();
3398
+ function Sn(t, n) {
3399
+ return t.F ? n.toBase64() : n.toUint8Array();
3400
3400
  }
3401
3401
 
3402
- function Sn(t, n) {
3402
+ function Fn(t, n) {
3403
3403
  return $n(t, n.toTimestamp());
3404
3404
  }
3405
3405
 
3406
3406
  function xn(t) {
3407
3407
  return v(!!t), vt.fromTimestamp(function(t) {
3408
- const n = Pt(t);
3408
+ const n = Rt(t);
3409
3409
  return new gt(n.seconds, n.nanos);
3410
3410
  }(t));
3411
3411
  }
@@ -3466,13 +3466,13 @@ function Mn(t, n) {
3466
3466
  let e;
3467
3467
  if (n instanceof In) e = {
3468
3468
  update: kn(t, n.key, n.value)
3469
- }; else if (n instanceof Pn) e = {
3469
+ }; else if (n instanceof Rn) e = {
3470
3470
  delete: On(t, n.key)
3471
3471
  }; else if (n instanceof An) e = {
3472
3472
  update: kn(t, n.key, n.data),
3473
3473
  updateMask: Yn(n.fieldMask)
3474
3474
  }; else {
3475
- if (!(n instanceof Rn)) return g();
3475
+ if (!(n instanceof Pn)) return g();
3476
3476
  e = {
3477
3477
  verify: On(t, n.key)
3478
3478
  };
@@ -3502,7 +3502,7 @@ function Mn(t, n) {
3502
3502
  throw g();
3503
3503
  }(0, t)))), n.precondition.isNone || (e.currentDocument = function(t, n) {
3504
3504
  return void 0 !== n.updateTime ? {
3505
- updateTime: Sn(t, n.updateTime)
3505
+ updateTime: Fn(t, n.updateTime)
3506
3506
  } : void 0 !== n.exists ? {
3507
3507
  exists: n.exists
3508
3508
  } : g();
@@ -3582,7 +3582,7 @@ function Bn(t, n) {
3582
3582
  }(n.orderBy);
3583
3583
  i && (e.structuredQuery.orderBy = i);
3584
3584
  const o = function(t, n) {
3585
- return t.S || ct(n) ? n : {
3585
+ return t.F || ct(n) ? n : {
3586
3586
  value: n
3587
3587
  };
3588
3588
  }(t, n.limit);
@@ -3773,7 +3773,7 @@ class Xn extends class {} {
3773
3773
  this.J = !1;
3774
3774
  }
3775
3775
  X() {
3776
- if (this.J) throw new U(F, "The client has already been terminated.");
3776
+ if (this.J) throw new U(S, "The client has already been terminated.");
3777
3777
  }
3778
3778
  /** Invokes the provided RPC with auth and AppCheck tokens. */ m(t, n, e) {
3779
3779
  return this.X(), Promise.all([ this.authCredentials.getToken(), this.appCheckCredentials.getToken() ]).then((([r, s]) => this.K.m(t, n, e, r, s))).catch((t => {
@@ -3857,7 +3857,7 @@ async function ne(t, n) {
3857
3857
  * instance is terminated.
3858
3858
  */
3859
3859
  function re(t) {
3860
- if (t._terminated) throw new U(F, "The client has already been terminated.");
3860
+ if (t._terminated) throw new U(S, "The client has already been terminated.");
3861
3861
  if (!ee.has(t)) {
3862
3862
  m("ComponentProvider", "Initializing Datastore");
3863
3863
  const i = function(t) {
@@ -3957,17 +3957,17 @@ class se {
3957
3957
  * {@link getFirestore}. If the custom settings are empty, this function is
3958
3958
  * equivalent to calling {@link getFirestore}.
3959
3959
  *
3960
- * @param app - The {@link https://www.gstatic.com/firebasejs/9.6.2-canary.044a8d7f9/firebase-app.js#FirebaseApp} with which the `Firestore` instance will
3960
+ * @param app - The {@link https://www.gstatic.com/firebasejs/9.6.2-canary.88d43ec00/firebase-app.js#FirebaseApp} with which the `Firestore` instance will
3961
3961
  * be associated.
3962
3962
  * @param settings - A settings object to configure the `Firestore` instance.
3963
3963
  * @returns A newly initialized `Firestore` instance.
3964
3964
  */ (t));
3965
3965
  }
3966
3966
  /**
3967
- * The {@link https://www.gstatic.com/firebasejs/9.6.2-canary.044a8d7f9/firebase-app.js#FirebaseApp} associated with this `Firestore` service
3967
+ * The {@link https://www.gstatic.com/firebasejs/9.6.2-canary.88d43ec00/firebase-app.js#FirebaseApp} associated with this `Firestore` service
3968
3968
  * instance.
3969
3969
  */ get app() {
3970
- if (!this._app) throw new U(F, "Firestore was not initialized using the Firebase SDK. 'app' is not available");
3970
+ if (!this._app) throw new U(S, "Firestore was not initialized using the Firebase SDK. 'app' is not available");
3971
3971
  return this._app;
3972
3972
  }
3973
3973
  get _initialized() {
@@ -3977,7 +3977,7 @@ class se {
3977
3977
  return void 0 !== this._terminateTask;
3978
3978
  }
3979
3979
  _setSettings(t) {
3980
- if (this._settingsFrozen) throw new U(F, "Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
3980
+ if (this._settingsFrozen) throw new U(S, "Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");
3981
3981
  this._settings = new se(t), void 0 !== t.credentials && (this._authCredentials = function(t) {
3982
3982
  if (!t) return new M;
3983
3983
  switch (t.type) {
@@ -4027,7 +4027,7 @@ class se {
4027
4027
 
4028
4028
  function oe(t, n) {
4029
4029
  const e = _getProvider(t, "firestore/lite");
4030
- if (e.isInitialized()) throw new U(F, "Firestore can only be initialized once per app.");
4030
+ if (e.isInitialized()) throw new U(S, "Firestore can only be initialized once per app.");
4031
4031
  return e.initialize({
4032
4032
  options: n
4033
4033
  });
@@ -4035,10 +4035,10 @@ function oe(t, n) {
4035
4035
 
4036
4036
  /**
4037
4037
  * Returns the existing `Firestore` instance that is associated with the
4038
- * provided {@link https://www.gstatic.com/firebasejs/9.6.2-canary.044a8d7f9/firebase-app.js#FirebaseApp}. If no instance exists, initializes a new
4038
+ * provided {@link https://www.gstatic.com/firebasejs/9.6.2-canary.88d43ec00/firebase-app.js#FirebaseApp}. If no instance exists, initializes a new
4039
4039
  * instance with default settings.
4040
4040
  *
4041
- * @param app - The {@link https://www.gstatic.com/firebasejs/9.6.2-canary.044a8d7f9/firebase-app.js#FirebaseApp} instance that the returned `Firestore`
4041
+ * @param app - The {@link https://www.gstatic.com/firebasejs/9.6.2-canary.88d43ec00/firebase-app.js#FirebaseApp} instance that the returned `Firestore`
4042
4042
  * instance is associated with.
4043
4043
  * @returns The `Firestore` instance of the provided app.
4044
4044
  */ function ue(n = getApp()) {
@@ -4267,7 +4267,7 @@ function me(t, n, ...e) {
4267
4267
  if (t = getModularInstance(t),
4268
4268
  // We allow omission of 'pathString' but explicitly prohibit passing in both
4269
4269
  // 'undefined' and 'null'.
4270
- 1 === arguments.length && (n = pt.P()), et("doc", "path", n), t instanceof ie) {
4270
+ 1 === arguments.length && (n = pt.R()), et("doc", "path", n), t instanceof ie) {
4271
4271
  const r = X.fromString(n, ...e);
4272
4272
  return rt(r), new he(t,
4273
4273
  /* converter= */ null, new nt(r));
@@ -4558,7 +4558,7 @@ function me(t, n, ...e) {
4558
4558
  }
4559
4559
  }
4560
4560
 
4561
- function Pe(t) {
4561
+ function Re(t) {
4562
4562
  switch (t) {
4563
4563
  case 0 /* Set */ :
4564
4564
  // fall through
@@ -4576,7 +4576,7 @@ function Pe(t) {
4576
4576
  }
4577
4577
  }
4578
4578
 
4579
- /** A "context" object passed around while parsing user data. */ class Re {
4579
+ /** A "context" object passed around while parsing user data. */ class Pe {
4580
4580
  /**
4581
4581
  * Initializes a ParseContext with the given source and path.
4582
4582
  *
@@ -4608,7 +4608,7 @@ function Pe(t) {
4608
4608
  return this.settings.tt;
4609
4609
  }
4610
4610
  /** Returns a new context with the specified settings overwritten. */ nt(t) {
4611
- return new Re(Object.assign(Object.assign({}, this.settings), t), this.databaseId, this.q, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
4611
+ return new Pe(Object.assign(Object.assign({}, this.settings), t), this.databaseId, this.q, this.ignoreUndefinedProperties, this.fieldTransforms, this.fieldMask);
4612
4612
  }
4613
4613
  et(t) {
4614
4614
  var n;
@@ -4647,7 +4647,7 @@ function Pe(t) {
4647
4647
  }
4648
4648
  st(t) {
4649
4649
  if (0 === t.length) throw this.ut("Document fields must not be empty");
4650
- if (Pe(this.tt) && Te.test(t)) throw this.ut('Document fields cannot begin and end with "__"');
4650
+ if (Re(this.tt) && Te.test(t)) throw this.ut('Document fields cannot begin and end with "__"');
4651
4651
  }
4652
4652
  }
4653
4653
 
@@ -4659,7 +4659,7 @@ function Pe(t) {
4659
4659
  this.databaseId = t, this.ignoreUndefinedProperties = n, this.q = e || Kn(t);
4660
4660
  }
4661
4661
  /** Creates a new top-level parse context. */ ht(t, n, e, r = !1) {
4662
- return new Re({
4662
+ return new Pe({
4663
4663
  tt: t,
4664
4664
  methodName: n,
4665
4665
  at: e,
@@ -4719,8 +4719,8 @@ class $e extends be {
4719
4719
  * context.
4720
4720
  * @param context - The parent context.
4721
4721
  * @param arrayElement - Whether or not the FieldValue has an array.
4722
- */ function Fe(t, n, e) {
4723
- return new Re({
4722
+ */ function Se(t, n, e) {
4723
+ return new Pe({
4724
4724
  tt: 3 /* Argument */ ,
4725
4725
  at: n.settings.at,
4726
4726
  methodName: t._methodName,
@@ -4728,12 +4728,12 @@ class $e extends be {
4728
4728
  }, n.databaseId, n.q, n.ignoreUndefinedProperties);
4729
4729
  }
4730
4730
 
4731
- class Se extends be {
4731
+ class Fe extends be {
4732
4732
  _toFieldTransform(t) {
4733
4733
  return new bn(t.path, new yn);
4734
4734
  }
4735
4735
  isEqual(t) {
4736
- return t instanceof Se;
4736
+ return t instanceof Fe;
4737
4737
  }
4738
4738
  }
4739
4739
 
@@ -4742,7 +4742,7 @@ class xe extends be {
4742
4742
  super(t), this.lt = n;
4743
4743
  }
4744
4744
  _toFieldTransform(t) {
4745
- const n = Fe(this, t,
4745
+ const n = Se(this, t,
4746
4746
  /*array=*/ !0), e = this.lt.map((t => ke(t, n))), r = new _n(e);
4747
4747
  return new bn(t.path, r);
4748
4748
  }
@@ -4757,7 +4757,7 @@ class qe extends be {
4757
4757
  super(t), this.lt = n;
4758
4758
  }
4759
4759
  _toFieldTransform(t) {
4760
- const n = Fe(this, t,
4760
+ const n = Se(this, t,
4761
4761
  /*array=*/ !0), e = this.lt.map((t => ke(t, n))), r = new gn(e);
4762
4762
  return new bn(t.path, r);
4763
4763
  }
@@ -4851,7 +4851,7 @@ class Oe extends be {
4851
4851
  // from firestore-exp.
4852
4852
  t = getModularInstance(t))) return Be("Unsupported field value:", n, t), je(t, n);
4853
4853
  if (t instanceof be)
4854
- // FieldValues usually parse into transforms (except FieldValue.delete())
4854
+ // FieldValues usually parse into transforms (except deleteField())
4855
4855
  // in which case we do not want to include this field in our parsed data
4856
4856
  // (as doing so will overwrite the field directly prior to the transform
4857
4857
  // trying to transform it). So we don't add this location to
@@ -4862,7 +4862,7 @@ class Oe extends be {
4862
4862
  */
4863
4863
  return function(t, n) {
4864
4864
  // Sentinels are only supported with writes, and not within arrays.
4865
- if (!Pe(n.tt)) throw n.ut(`${t._methodName}() can only be used with update() and set()`);
4865
+ if (!Re(n.tt)) throw n.ut(`${t._methodName}() can only be used with update() and set()`);
4866
4866
  if (!n.path) throw n.ut(`${t._methodName}() is not currently supported inside arrays`);
4867
4867
  const e = t._toFieldTransform(n);
4868
4868
  e && n.fieldTransforms.push(e);
@@ -4940,7 +4940,7 @@ class Oe extends be {
4940
4940
  }
4941
4941
  };
4942
4942
  if (t instanceof ve) return {
4943
- bytesValue: Fn(n.q, t._byteString)
4943
+ bytesValue: Sn(n.q, t._byteString)
4944
4944
  };
4945
4945
  if (t instanceof he) {
4946
4946
  const e = n.databaseId, r = t.firestore._databaseId;
@@ -4999,7 +4999,7 @@ function Be(t, n, e) {
4999
4999
  // FieldPath.
5000
5000
  n = getModularInstance(n)) instanceof _e) return n._internalPath;
5001
5001
  if ("string" == typeof n) return Qe(t, n);
5002
- throw We("Field path arguments must be of type string or FieldPath.", t,
5002
+ throw We("Field path arguments must be of type string or ", t,
5003
5003
  /* hasConverter= */ !1,
5004
5004
  /* path= */ void 0, e);
5005
5005
  }
@@ -5244,7 +5244,7 @@ class er extends tr {
5244
5244
  const n = De(t.firestore), e = function(t, n, e, r, s, i, o) {
5245
5245
  let u;
5246
5246
  if (s.isKeyField()) {
5247
- if ("array-contains" /* ARRAY_CONTAINS */ === i || "array-contains-any" /* ARRAY_CONTAINS_ANY */ === i) throw new U(A, `Invalid Query. You can't perform '${i}' queries on FieldPath.documentId().`);
5247
+ if ("array-contains" /* ARRAY_CONTAINS */ === i || "array-contains-any" /* ARRAY_CONTAINS_ANY */ === i) throw new U(A, `Invalid Query. You can't perform '${i}' queries on documentId().`);
5248
5248
  if ("in" /* IN */ === i || "not-in" /* NOT_IN */ === i) {
5249
5249
  yr(o, i);
5250
5250
  const n = [];
@@ -5454,7 +5454,7 @@ function wr(...t) {
5454
5454
 
5455
5455
  /** Helper function to create a bound from a document or fields */ function mr(t, n, e, r) {
5456
5456
  if (e[0] = getModularInstance(e[0]), e[0] instanceof He) return function(t, n, e, r, s) {
5457
- if (!r) throw new U(R, `Can't use a DocumentSnapshot that doesn't exist for ${e}().`);
5457
+ if (!r) throw new U(P, `Can't use a DocumentSnapshot that doesn't exist for ${e}().`);
5458
5458
  const i = [];
5459
5459
  // Because people expect to continue/end a query at the exact document
5460
5460
  // provided, we need to use the implicit sort order rather than the explicit
@@ -5488,9 +5488,9 @@ function wr(...t) {
5488
5488
  const c = s[i];
5489
5489
  if (o[i].field.isKeyField()) {
5490
5490
  if ("string" != typeof c) throw new U(A, `Invalid query. Expected a string for document ID in ${r}(), but got a ${typeof c}`);
5491
- if (!ln(t) && -1 !== c.indexOf("/")) throw new U(A, `Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to ${r}() must be a plain document ID, but '${c}' contains a slash.`);
5491
+ if (!ln(t) && -1 !== c.indexOf("/")) throw new U(A, `Invalid query. When querying a collection and ordering by documentId(), the value passed to ${r}() must be a plain document ID, but '${c}' contains a slash.`);
5492
5492
  const e = t.path.child(X.fromString(c));
5493
- if (!nt.isDocumentKey(e)) throw new U(A, `Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to ${r}() must result in a valid document path, but '${e}' is not because it contains an odd number of segments.`);
5493
+ if (!nt.isDocumentKey(e)) throw new U(A, `Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${r}() must result in a valid document path, but '${e}' is not because it contains an odd number of segments.`);
5494
5494
  const s = new nt(e);
5495
5495
  u.push(Ct(n, s));
5496
5496
  } else {
@@ -5510,14 +5510,14 @@ function wr(...t) {
5510
5510
 
5511
5511
  function pr(t, n, e) {
5512
5512
  if ("string" == typeof (e = getModularInstance(e))) {
5513
- if ("" === e) throw new U(A, "Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");
5514
- if (!ln(n) && -1 !== e.indexOf("/")) throw new U(A, `Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '${e}' contains a '/' character.`);
5513
+ if ("" === e) throw new U(A, "Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");
5514
+ if (!ln(n) && -1 !== e.indexOf("/")) throw new U(A, `Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${e}' contains a '/' character.`);
5515
5515
  const r = n.path.child(X.fromString(e));
5516
- if (!nt.isDocumentKey(r)) throw new U(A, `Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);
5516
+ if (!nt.isDocumentKey(r)) throw new U(A, `Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);
5517
5517
  return Ct(t, new nt(r));
5518
5518
  }
5519
5519
  if (e instanceof he) return Ct(t, e._key);
5520
- throw new U(A, `Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: ${it(e)}.`);
5520
+ throw new U(A, `Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${it(e)}.`);
5521
5521
  }
5522
5522
 
5523
5523
  /**
@@ -5590,7 +5590,7 @@ function gr(t, n, e) {
5590
5590
 
5591
5591
  class vr extends class {
5592
5592
  convertValue(t, n = "none") {
5593
- switch (Ft(t)) {
5593
+ switch (St(t)) {
5594
5594
  case 0 /* NullValue */ :
5595
5595
  return null;
5596
5596
 
@@ -5598,7 +5598,7 @@ class vr extends class {
5598
5598
  return t.booleanValue;
5599
5599
 
5600
5600
  case 2 /* NumberValue */ :
5601
- return Rt(t.integerValue || t.doubleValue);
5601
+ return Pt(t.integerValue || t.doubleValue);
5602
5602
 
5603
5603
  case 3 /* TimestampValue */ :
5604
5604
  return this.convertTimestamp(t.timestampValue);
@@ -5635,7 +5635,7 @@ class vr extends class {
5635
5635
  })), e;
5636
5636
  }
5637
5637
  convertGeoPoint(t) {
5638
- return new Ee(Rt(t.latitude), Rt(t.longitude));
5638
+ return new Ee(Pt(t.latitude), Pt(t.longitude));
5639
5639
  }
5640
5640
  convertArray(t, n) {
5641
5641
  return (t.values || []).map((t => this.convertValue(t, n)));
@@ -5654,7 +5654,7 @@ class vr extends class {
5654
5654
  }
5655
5655
  }
5656
5656
  convertTimestamp(t) {
5657
- const n = Pt(t);
5657
+ const n = Rt(t);
5658
5658
  return new gt(n.seconds, n.nanos);
5659
5659
  }
5660
5660
  convertDocumentKey(t, n) {
@@ -5752,7 +5752,7 @@ function Ir(t, n, e, ...r) {
5752
5752
  * @returns A `Promise` resolved once the document has been successfully
5753
5753
  * deleted from the backend.
5754
5754
  */ function Ar(t) {
5755
- return Zn(re((t = ot(t, he)).firestore), [ new Pn(t._key, En.none()) ]);
5755
+ return Zn(re((t = ot(t, he)).firestore), [ new Rn(t._key, En.none()) ]);
5756
5756
  }
5757
5757
 
5758
5758
  /**
@@ -5769,7 +5769,7 @@ function Ir(t, n, e, ...r) {
5769
5769
  * @throws Error - If the provided input is not a valid Firestore document.
5770
5770
  * @returns A `Promise` resolved with a `DocumentReference` pointing to the
5771
5771
  * newly created document after it has been written to the backend.
5772
- */ function Pr(t, n) {
5772
+ */ function Rr(t, n) {
5773
5773
  const e = me(t = ot(t, fe)), r = gr(t.converter, n), s = Ne(De(t.firestore), "addDoc", e._key, r, null !== e.converter, {});
5774
5774
  return Zn(re(t.firestore), [ s.toMutation(e._key, En.exists(!1)) ]).then((() => e));
5775
5775
  }
@@ -5793,7 +5793,7 @@ function Ir(t, n, e, ...r) {
5793
5793
  /**
5794
5794
  * Returns a sentinel for use with {@link @firebase/firestore/lite#(updateDoc:1)} or
5795
5795
  * {@link @firebase/firestore/lite#(setDoc:1)} with `{merge: true}` to mark a field for deletion.
5796
- */ function Rr() {
5796
+ */ function Pr() {
5797
5797
  return new $e("deleteField");
5798
5798
  }
5799
5799
 
@@ -5801,7 +5801,7 @@ function Ir(t, n, e, ...r) {
5801
5801
  * Returns a sentinel used with {@link @firebase/firestore/lite#(setDoc:1)} or {@link @firebase/firestore/lite#(updateDoc:1)} to
5802
5802
  * include a server-generated timestamp in the written data.
5803
5803
  */ function Vr() {
5804
- return new Se("serverTimestamp");
5804
+ return new Fe("serverTimestamp");
5805
5805
  }
5806
5806
 
5807
5807
  /**
@@ -5882,7 +5882,7 @@ function Ir(t, n, e, ...r) {
5882
5882
  * provides methods for adding writes to the write batch. None of the writes
5883
5883
  * will be committed (or visible locally) until {@link WriteBatch.commit} is
5884
5884
  * called.
5885
- */ class Fr {
5885
+ */ class Sr {
5886
5886
  /** @hideconstructor */
5887
5887
  constructor(t, n) {
5888
5888
  this._firestore = t, this._commitHandler = n, this._mutations = [], this._committed = !1,
@@ -5890,12 +5890,12 @@ function Ir(t, n, e, ...r) {
5890
5890
  }
5891
5891
  set(t, n, e) {
5892
5892
  this._verifyNotCommitted();
5893
- const r = Sr(t, this._firestore), s = gr(r.converter, n, e), i = Ne(this._dataReader, "WriteBatch.set", r._key, s, null !== r.converter, e);
5893
+ const r = Fr(t, this._firestore), s = gr(r.converter, n, e), i = Ne(this._dataReader, "WriteBatch.set", r._key, s, null !== r.converter, e);
5894
5894
  return this._mutations.push(i.toMutation(r._key, En.none())), this;
5895
5895
  }
5896
5896
  update(t, n, e, ...r) {
5897
5897
  this._verifyNotCommitted();
5898
- const s = Sr(t, this._firestore);
5898
+ const s = Fr(t, this._firestore);
5899
5899
  // For Compat types, we have to "extract" the underlying types before
5900
5900
  // performing validation.
5901
5901
  let i;
@@ -5909,8 +5909,8 @@ function Ir(t, n, e, ...r) {
5909
5909
  * @returns This `WriteBatch` instance. Used for chaining method calls.
5910
5910
  */ delete(t) {
5911
5911
  this._verifyNotCommitted();
5912
- const n = Sr(t, this._firestore);
5913
- return this._mutations = this._mutations.concat(new Pn(n._key, En.none())), this;
5912
+ const n = Fr(t, this._firestore);
5913
+ return this._mutations = this._mutations.concat(new Rn(n._key, En.none())), this;
5914
5914
  }
5915
5915
  /**
5916
5916
  * Commits all of the writes in this write batch as a single atomic unit.
@@ -5927,11 +5927,11 @@ function Ir(t, n, e, ...r) {
5927
5927
  return this._verifyNotCommitted(), this._committed = !0, this._mutations.length > 0 ? this._commitHandler(this._mutations) : Promise.resolve();
5928
5928
  }
5929
5929
  _verifyNotCommitted() {
5930
- if (this._committed) throw new U(F, "A write batch can no longer be used after commit() has been called.");
5930
+ if (this._committed) throw new U(S, "A write batch can no longer be used after commit() has been called.");
5931
5931
  }
5932
5932
  }
5933
5933
 
5934
- function Sr(t, n) {
5934
+ function Fr(t, n) {
5935
5935
  if ((t = getModularInstance(t)).firestore !== n) throw new U(A, "Provided document reference is from a different Firestore instance.");
5936
5936
  return t;
5937
5937
  }
@@ -5950,7 +5950,7 @@ function Sr(t, n) {
5950
5950
  * writes.
5951
5951
  */ function xr(t) {
5952
5952
  const n = re(t = ot(t, ie));
5953
- return new Fr(t, (t => Zn(n, t)));
5953
+ return new Sr(t, (t => Zn(n, t)));
5954
5954
  }
5955
5955
 
5956
5956
  /**
@@ -6007,7 +6007,7 @@ function Sr(t, n) {
6007
6007
  this.writtenDocs.add(t.toString());
6008
6008
  }
6009
6009
  delete(t) {
6010
- this.write(new Pn(t, this.precondition(t))), this.writtenDocs.add(t.toString());
6010
+ this.write(new Rn(t, this.precondition(t))), this.writtenDocs.add(t.toString());
6011
6011
  }
6012
6012
  async commit() {
6013
6013
  if (this.ensureCommitNotCalled(), this.lastWriteError) throw this.lastWriteError;
@@ -6020,7 +6020,7 @@ function Sr(t, n) {
6020
6020
  // a `verify` operation.
6021
6021
  t.forEach(((t, n) => {
6022
6022
  const e = nt.fromPath(n);
6023
- this.mutations.push(new Rn(e, this.precondition(e)));
6023
+ this.mutations.push(new Pn(e, this.precondition(e)));
6024
6024
  })), await Zn(this.datastore, this.mutations), this.committed = !0;
6025
6025
  }
6026
6026
  recordVersion(t) {
@@ -6034,7 +6034,7 @@ function Sr(t, n) {
6034
6034
  if (e) {
6035
6035
  if (!n.isEqual(e))
6036
6036
  // This transaction will fail no matter what.
6037
- throw new U(S, "Document version changed between two reads.");
6037
+ throw new U(F, "Document version changed between two reads.");
6038
6038
  } else this.readVersions.set(t.key.toString(), n);
6039
6039
  }
6040
6040
  /**
@@ -6105,19 +6105,19 @@ class Or {
6105
6105
  }
6106
6106
  At() {
6107
6107
  this.It.W((async () => {
6108
- const t = new qr(this.datastore), n = this.Pt(t);
6108
+ const t = new qr(this.datastore), n = this.Rt(t);
6109
6109
  n && n.then((n => {
6110
6110
  this.asyncQueue.enqueueAndForget((() => t.commit().then((() => {
6111
6111
  this.deferred.resolve(n);
6112
6112
  })).catch((t => {
6113
- this.Rt(t);
6113
+ this.Pt(t);
6114
6114
  }))));
6115
6115
  })).catch((t => {
6116
- this.Rt(t);
6116
+ this.Pt(t);
6117
6117
  }));
6118
6118
  }));
6119
6119
  }
6120
- Pt(t) {
6120
+ Rt(t) {
6121
6121
  try {
6122
6122
  const n = this.updateFunction(t);
6123
6123
  return !ct(n) && n.catch && n.then ? n : (this.deferred.reject(Error("Transaction callback must return a Promise")),
@@ -6127,7 +6127,7 @@ class Or {
6127
6127
  return this.deferred.reject(t), null;
6128
6128
  }
6129
6129
  }
6130
- Rt(t) {
6130
+ Pt(t) {
6131
6131
  this.Tt > 0 && this.Vt(t) ? (this.Tt -= 1, this.asyncQueue.enqueueAndForget((() => (this.At(),
6132
6132
  Promise.resolve())))) : this.deferred.reject(t);
6133
6133
  }
@@ -6150,7 +6150,7 @@ class Or {
6150
6150
 
6151
6151
  case T:
6152
6152
  case I:
6153
- case P:
6153
+ case R:
6154
6154
  case $:
6155
6155
  case O:
6156
6156
  case C:
@@ -6160,14 +6160,14 @@ class Or {
6160
6160
  return !1;
6161
6161
 
6162
6162
  case A:
6163
- case R:
6163
+ case P:
6164
6164
  case V:
6165
6165
  case D:
6166
- case F:
6166
+ case S:
6167
6167
  // Aborted might be retried in some scenarios, but that is dependant on
6168
6168
  // the context and should handled individually by the calling code.
6169
6169
  // See https://cloud.google.com/apis/design/errors.
6170
- case S:
6170
+ case F:
6171
6171
  case x:
6172
6172
  case q:
6173
6173
  case L:
@@ -6311,9 +6311,9 @@ class Or {
6311
6311
  this.$t = !1,
6312
6312
  // Operations scheduled to be queued in the future. Operations are
6313
6313
  // automatically removed after they are run or canceled.
6314
- this.Ft = [],
6314
+ this.St = [],
6315
6315
  // visible for testing
6316
- this.St = null,
6316
+ this.Ft = null,
6317
6317
  // Flag set while there's an outstanding AsyncQueue operation, used for
6318
6318
  // assertion sanity-checks.
6319
6319
  this.xt = !1,
@@ -6435,7 +6435,7 @@ class Or {
6435
6435
  }
6436
6436
  Ut(t) {
6437
6437
  const n = this.Dt.then((() => (this.xt = !0, t().catch((t => {
6438
- this.St = t, this.xt = !1;
6438
+ this.Ft = t, this.xt = !1;
6439
6439
  const n =
6440
6440
  /**
6441
6441
  * Chrome includes Error.message in Error.stack. Other browsers do not.
@@ -6484,10 +6484,10 @@ class Or {
6484
6484
  // Fast-forward delays for timerIds that have been overriden.
6485
6485
  this.Ot.indexOf(t) > -1 && (n = 0);
6486
6486
  const r = Lr.createAndSchedule(this, t, n, e, (t => this.jt(t)));
6487
- return this.Ft.push(r), r;
6487
+ return this.St.push(r), r;
6488
6488
  }
6489
6489
  Lt() {
6490
- this.St && g();
6490
+ this.Ft && g();
6491
6491
  }
6492
6492
  verifyOperationInProgress() {}
6493
6493
  /**
@@ -6507,7 +6507,7 @@ class Or {
6507
6507
  * For Tests: Determine if a delayed operation with a particular TimerId
6508
6508
  * exists.
6509
6509
  */ Bt(t) {
6510
- for (const n of this.Ft) if (n.timerId === t) return !0;
6510
+ for (const n of this.St) if (n.timerId === t) return !0;
6511
6511
  return !1;
6512
6512
  }
6513
6513
  /**
@@ -6520,8 +6520,8 @@ class Or {
6520
6520
  // Note that draining may generate more delayed ops, so we do that first.
6521
6521
  return this.Mt().then((() => {
6522
6522
  // Run ops in the same order they'd run if they ran naturally.
6523
- this.Ft.sort(((t, n) => t.targetTimeMs - n.targetTimeMs));
6524
- for (const n of this.Ft) if (n.skipDelay(), "all" /* All */ !== t && n.timerId === t) break;
6523
+ this.St.sort(((t, n) => t.targetTimeMs - n.targetTimeMs));
6524
+ for (const n of this.St) if (n.skipDelay(), "all" /* All */ !== t && n.timerId === t) break;
6525
6525
  return this.Mt();
6526
6526
  }));
6527
6527
  }
@@ -6532,8 +6532,8 @@ class Or {
6532
6532
  }
6533
6533
  /** Called once a DelayedOperation is run or canceled. */ jt(t) {
6534
6534
  // NOTE: indexOf / slice are O(n), but delayedOperations is expected to be small.
6535
- const n = this.Ft.indexOf(t);
6536
- this.Ft.splice(n, 1);
6535
+ const n = this.St.indexOf(t);
6536
+ this.St.splice(n, 1);
6537
6537
  }
6538
6538
  }
6539
6539
 
@@ -6548,7 +6548,7 @@ class kr {
6548
6548
  * @param documentRef - A reference to the document to be read.
6549
6549
  * @returns A `DocumentSnapshot` with the read data.
6550
6550
  */ get(t) {
6551
- const n = Sr(t, this._firestore), e = new vr(this._firestore);
6551
+ const n = Fr(t, this._firestore), e = new vr(this._firestore);
6552
6552
  return this._transaction.lookup([ n._key ]).then((t => {
6553
6553
  if (!t || 1 !== t.length) return g();
6554
6554
  const r = t[0];
@@ -6558,11 +6558,11 @@ class kr {
6558
6558
  }));
6559
6559
  }
6560
6560
  set(t, n, e) {
6561
- const r = Sr(t, this._firestore), s = gr(r.converter, n, e), i = Ne(this._dataReader, "Transaction.set", r._key, s, null !== r.converter, e);
6561
+ const r = Fr(t, this._firestore), s = gr(r.converter, n, e), i = Ne(this._dataReader, "Transaction.set", r._key, s, null !== r.converter, e);
6562
6562
  return this._transaction.set(r._key, i), this;
6563
6563
  }
6564
6564
  update(t, n, e, ...r) {
6565
- const s = Sr(t, this._firestore);
6565
+ const s = Fr(t, this._firestore);
6566
6566
  // For Compat types, we have to "extract" the underlying types before
6567
6567
  // performing validation.
6568
6568
  let i;
@@ -6575,7 +6575,7 @@ class kr {
6575
6575
  * @param documentRef - A reference to the document to be deleted.
6576
6576
  * @returns This `Transaction` instance. Used for chaining method calls.
6577
6577
  */ delete(t) {
6578
- const n = Sr(t, this._firestore);
6578
+ const n = Fr(t, this._firestore);
6579
6579
  return this._transaction.delete(n._key), this;
6580
6580
  }
6581
6581
  }
@@ -6615,8 +6615,8 @@ class kr {
6615
6615
  return n && r._setSettings(n), r;
6616
6616
  }), "PUBLIC")),
6617
6617
  // RUNTIME_ENV and BUILD_TARGET are replaced by real values during the compilation
6618
- registerVersion("firestore-lite", "3.4.2-canary.044a8d7f9", ""), registerVersion("firestore-lite", "3.4.2-canary.044a8d7f9", "esm2017");
6618
+ registerVersion("firestore-lite", "3.4.2-canary.88d43ec00", ""), registerVersion("firestore-lite", "3.4.2-canary.88d43ec00", "esm2017");
6619
6619
 
6620
- export { ve as Bytes, fe as CollectionReference, he as DocumentReference, He as DocumentSnapshot, _e as FieldPath, be as FieldValue, ie as Firestore, U as FirestoreError, Ee as GeoPoint, le as Query, tr as QueryConstraint, Ke as QueryDocumentSnapshot, Je as QuerySnapshot, gt as Timestamp, kr as Transaction, Fr as WriteBatch, Pr as addDoc, Nr as arrayRemove, Dr as arrayUnion, de as collection, we as collectionGroup, ce as connectFirestoreEmulator, Ar as deleteDoc, Rr as deleteField, me as doc, ge as documentId, wr as endAt, dr as endBefore, br as getDoc, Er as getDocs, ue as getFirestore, $r as increment, oe as initializeFirestore, ur as limit, cr as limitToLast, ir as orderBy, nr as query, ye as queryEqual, pe as refEqual, jr as runTransaction, Vr as serverTimestamp, Tr as setDoc, w as setLogLevel, Xe as snapshotEqual, lr as startAfter, hr as startAt, ae as terminate, Ir as updateDoc, rr as where, xr as writeBatch };
6620
+ export { ve as Bytes, fe as CollectionReference, he as DocumentReference, He as DocumentSnapshot, _e as FieldPath, be as FieldValue, ie as Firestore, U as FirestoreError, Ee as GeoPoint, le as Query, tr as QueryConstraint, Ke as QueryDocumentSnapshot, Je as QuerySnapshot, gt as Timestamp, kr as Transaction, Sr as WriteBatch, Rr as addDoc, Nr as arrayRemove, Dr as arrayUnion, de as collection, we as collectionGroup, ce as connectFirestoreEmulator, Ar as deleteDoc, Pr as deleteField, me as doc, ge as documentId, wr as endAt, dr as endBefore, br as getDoc, Er as getDocs, ue as getFirestore, $r as increment, oe as initializeFirestore, ur as limit, cr as limitToLast, ir as orderBy, nr as query, ye as queryEqual, pe as refEqual, jr as runTransaction, Vr as serverTimestamp, Tr as setDoc, w as setLogLevel, Xe as snapshotEqual, lr as startAfter, hr as startAt, ae as terminate, Ir as updateDoc, rr as where, xr as writeBatch };
6621
6621
 
6622
6622
  //# sourceMappingURL=firebase-firestore-lite.js.map