entropic-bond 1.53.1 → 1.53.2

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.
@@ -46,38 +46,38 @@ class I {
46
46
  var f = [];
47
47
  for (var U = 0; U < 256; ++U)
48
48
  f.push((U + 256).toString(16).slice(1));
49
- function L(i, e = 0) {
49
+ function Q(i, e = 0) {
50
50
  return (f[i[e + 0]] + f[i[e + 1]] + f[i[e + 2]] + f[i[e + 3]] + "-" + f[i[e + 4]] + f[i[e + 5]] + "-" + f[i[e + 6]] + f[i[e + 7]] + "-" + f[i[e + 8]] + f[i[e + 9]] + "-" + f[i[e + 10]] + f[i[e + 11]] + f[i[e + 12]] + f[i[e + 13]] + f[i[e + 14]] + f[i[e + 15]]).toLowerCase();
51
51
  }
52
- var j, W = new Uint8Array(16);
53
- function Q() {
52
+ var j, q = new Uint8Array(16);
53
+ function Y() {
54
54
  if (!j && (j = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !j))
55
55
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
56
- return j(W);
56
+ return j(q);
57
57
  }
58
- var q = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
59
- const V = {
60
- randomUUID: q
58
+ var z = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
59
+ const $ = {
60
+ randomUUID: z
61
61
  };
62
- function Y(i, e, t) {
63
- if (V.randomUUID && !e && !i)
64
- return V.randomUUID();
62
+ function H(i, e, t) {
63
+ if ($.randomUUID && !e && !i)
64
+ return $.randomUUID();
65
65
  i = i || {};
66
- var r = i.random || (i.rng || Q)();
66
+ var r = i.random || (i.rng || Y)();
67
67
  if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
68
68
  t = t || 0;
69
69
  for (var s = 0; s < 16; ++s)
70
70
  e[t + s] = r[s];
71
71
  return e;
72
72
  }
73
- return L(r);
73
+ return Q(r);
74
74
  }
75
- var z = Object.defineProperty, H = Object.getOwnPropertyDescriptor, J = (i, e, t, r) => {
76
- for (var s = r > 1 ? void 0 : r ? H(e, t) : e, n = i.length - 1, o; n >= 0; n--)
75
+ var J = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, G = (i, e, t, r) => {
76
+ for (var s = r > 1 ? void 0 : r ? Z(e, t) : e, n = i.length - 1, o; n >= 0; n--)
77
77
  (o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
78
- return r && s && z(e, t, s), s;
78
+ return r && s && J(e, t, s), s;
79
79
  }, d;
80
- const T = (d = class {
80
+ const x = (d = class {
81
81
  /**
82
82
  * Registers a class to be used by the persistence engine.
83
83
  * @param className the name of the class to be registered
@@ -139,7 +139,7 @@ const T = (d = class {
139
139
  * Returns a new instance of Persistent class.
140
140
  * @param className the initial id of this instance. If not provided, a new id will be generated
141
141
  */
142
- constructor(e = Y()) {
142
+ constructor(e = H()) {
143
143
  this._id = e;
144
144
  }
145
145
  /**
@@ -319,8 +319,12 @@ const T = (d = class {
319
319
  return typeof t.storeInCollection == "function" ? r = t.storeInCollection(e, t) : r = t.storeInCollection ?? e.className, r;
320
320
  }
321
321
  toReferenceObj(e, t) {
322
+ var s;
322
323
  const r = this[e.name];
323
- return Array.isArray(r) ? r.map((s) => (e.isPureReference || this.pushDocument(t, d.collectionPath(s, e), s), this.buildRefObject(s, d.collectionPath(s, e), e.cachedProps))) : (e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), e.cachedProps));
324
+ return Array.isArray(r) ? r.map((n) => {
325
+ var o;
326
+ return e.isPureReference || this.pushDocument(t, d.collectionPath(n, e), n), this.buildRefObject(n, d.collectionPath(n, e), (o = e.cachedPropsConfig) == null ? void 0 : o.cachedProps);
327
+ }) : (e.isPureReference || this.pushDocument(t, d.collectionPath(r, e), r), this.buildRefObject(r, d.collectionPath(r, e), (s = e.cachedPropsConfig) == null ? void 0 : s.cachedProps));
324
328
  }
325
329
  buildRefObject(e, t, r) {
326
330
  const s = r == null ? void 0 : r.reduce((n, o) => (e[o] !== void 0 && (n[o] = e[o]), n), {});
@@ -373,55 +377,60 @@ const T = (d = class {
373
377
  static getSystemRegisteredReferencesWithCachedProps() {
374
378
  return d.registeredClasses().reduce((r, s) => {
375
379
  const o = d.createInstance(s).getPersistentProperties().filter(
376
- (c) => c.cachedProps
380
+ (c) => {
381
+ var h;
382
+ return (h = c.cachedPropsConfig) == null ? void 0 : h.cachedProps;
383
+ }
377
384
  );
378
385
  return o.length > 0 && (r[s] = o), r;
379
386
  }, {});
380
387
  }
381
388
  }, d._factoryMap = {}, d);
382
- J([
389
+ G([
383
390
  R
384
- ], T.prototype, "_id", 2);
385
- let l = T;
391
+ ], x.prototype, "_id", 2);
392
+ let l = x;
386
393
  function R(i, e) {
387
- return _()(i, e);
394
+ return y()(i, e);
388
395
  }
389
- function ne(i) {
396
+ function ae(i) {
390
397
  return function(e, t) {
391
- return _({
398
+ return y({
392
399
  storeInCollection: i,
393
400
  isReference: !0
394
401
  })(e, t);
395
402
  };
396
403
  }
397
- function oe(i, e) {
398
- return _({ isReference: !0 })(i, e);
404
+ function ce(i, e) {
405
+ return y({ isReference: !0 })(i, e);
399
406
  }
400
- function ae(i, e, t) {
401
- return function(r, s) {
402
- return _({
407
+ function ue(i, e, t) {
408
+ const r = Array.isArray(i) ? { cachedProps: i } : i;
409
+ return function(s, n) {
410
+ return y({
403
411
  isReference: !0,
404
- cachedProps: i,
405
412
  storeInCollection: e,
406
- typeName: t
407
- })(r, s);
413
+ typeName: t,
414
+ cachedPropsConfig: r
415
+ })(s, n);
408
416
  };
409
417
  }
410
- function ce(i, e, t) {
411
- return _({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
418
+ function he(i, e, t) {
419
+ return y({ isReference: !0, isPureReference: !0, storeInCollection: t })(i, e);
412
420
  }
413
- function ue(i, e, t) {
421
+ function le(i, e, t) {
414
422
  return function(r, s) {
415
- return _({
423
+ const n = Array.isArray(i) ? { cachedProps: i } : i;
424
+ return y({
416
425
  isReference: !0,
417
426
  isPureReference: !0,
418
- cachedProps: i,
419
427
  storeInCollection: e,
420
- typeName: t
428
+ typeName: t,
429
+ cachedPropsConfig: n
421
430
  })(r, s);
422
431
  };
423
432
  }
424
- function _(i) {
433
+ function y(i) {
425
434
  return function(e, t) {
426
435
  Object.getOwnPropertyDescriptor(e, "_persistentProperties") || (e._persistentProperties ? e._persistentProperties = [...e._persistentProperties] : e._persistentProperties = []);
427
436
  const r = e._persistentProperties.find((s) => s.name === t);
@@ -431,28 +440,28 @@ function _(i) {
431
440
  });
432
441
  };
433
442
  }
434
- function Z(i, e) {
443
+ function K(i, e) {
435
444
  return (t) => {
436
445
  l.registerFactory(i, t, e), t.prototype.__className = i;
437
446
  };
438
447
  }
439
- function he(i) {
448
+ function de(i) {
440
449
  return (e) => {
441
450
  l.registerFactory(i, e);
442
451
  };
443
452
  }
444
- function le(i, e) {
445
- return _({ searchableArray: !0 })(i, e);
453
+ function fe(i, e) {
454
+ return y({ searchableArray: !0 })(i, e);
446
455
  }
447
- function de(i, e) {
448
- return _({ validator: (t) => t != null })(i, e);
456
+ function pe(i, e) {
457
+ return y({ validator: (t) => t != null })(i, e);
449
458
  }
450
- function fe(i = (e) => e != null) {
459
+ function me(i = (e) => e != null) {
451
460
  return function(e, t) {
452
- return _({ validator: i })(e, t);
461
+ return y({ validator: i })(e, t);
453
462
  };
454
463
  }
455
- class pe extends l {
464
+ class ge extends l {
456
465
  constructor() {
457
466
  super(...arguments), this._onChange = new I();
458
467
  }
@@ -590,7 +599,7 @@ const E = class E {
590
599
  * @returns a Query object
591
600
  */
592
601
  find() {
593
- return new G(this);
602
+ return new X(this);
594
603
  }
595
604
  /**
596
605
  * Define the search conditions. You pass query operations and how the query
@@ -680,7 +689,7 @@ E.error = {
680
689
  invalidQueryOrder: "Cannot add where calls after or calls"
681
690
  };
682
691
  let S = E;
683
- class G {
692
+ class X {
684
693
  constructor(e) {
685
694
  this.queryObject = { operations: [] }, this.model = e;
686
695
  }
@@ -744,8 +753,8 @@ class G {
744
753
  throw new Error(S.error.invalidQueryOrder);
745
754
  const n = e.split(".");
746
755
  let o = {}, c = n.length > 1 ? o : r;
747
- return n.slice(1).forEach((b, O) => {
748
- o[b] = O < n.length - 2 ? {} : r, o = o[b];
756
+ return n.slice(1).forEach((g, O) => {
757
+ o[g] = O < n.length - 2 ? {} : r, o = o[g];
749
758
  }), (u = this.queryObject.operations) == null || u.push({
750
759
  property: n[0],
751
760
  operator: t,
@@ -903,7 +912,7 @@ class G {
903
912
  return this.model.count(this.queryObject);
904
913
  }
905
914
  }
906
- const y = class y {
915
+ const v = class v {
907
916
  constructor() {
908
917
  }
909
918
  /**
@@ -919,7 +928,7 @@ const y = class y {
919
928
  * @returns the data source
920
929
  */
921
930
  static get dataSource() {
922
- return y._dataSource;
931
+ return v._dataSource;
923
932
  }
924
933
  /**
925
934
  * Retrieves a model for a collection
@@ -927,9 +936,9 @@ const y = class y {
927
936
  * @returns the model for the collection
928
937
  */
929
938
  static getModel(e) {
930
- if (!y._dataSource)
939
+ if (!v._dataSource)
931
940
  throw new Error(this.error.shouldBeRegistered);
932
- return new S(y._dataSource, e);
941
+ return new S(v._dataSource, e);
933
942
  }
934
943
  /**
935
944
  * Retrieves a model for a subcollection
@@ -938,9 +947,9 @@ const y = class y {
938
947
  * @returns the model for the subcollection
939
948
  */
940
949
  static getModelForSubCollection(e, t) {
941
- if (!y._dataSource)
950
+ if (!v._dataSource)
942
951
  throw new Error(this.error.shouldBeRegistered);
943
- return new S(y._dataSource, e, t);
952
+ return new S(v._dataSource, e, t);
944
953
  }
945
954
  /**
946
955
  * Populates property references with actual data from the store.
@@ -974,8 +983,8 @@ const y = class y {
974
983
  ) : e.__documentReference === void 0;
975
984
  }
976
985
  };
977
- y.error = { shouldBeRegistered: "You should register a data source before using the data Store." };
978
- let F = y;
986
+ v.error = { shouldBeRegistered: "You should register a data source before using the data Store." };
987
+ let F = v;
979
988
  class C {
980
989
  installCachedPropsUpdaters(e = {}) {
981
990
  C.onUpdate = e.onUpdate;
@@ -1053,28 +1062,28 @@ class C {
1053
1062
  static async onDocumentChange(e, t) {
1054
1063
  if (e.before)
1055
1064
  return t.map(async (r) => {
1056
- var c;
1065
+ var c, h;
1057
1066
  const s = F.getModel(r.collectionPropOwner);
1058
1067
  let n = s.find();
1059
- (c = r.prop.cachedProps) == null || c.forEach((h) => {
1060
- const a = e.before[h], u = e.after[h];
1061
- a !== u && (n = n.orDeepProp(`${r.prop.name}.${h}`, "==", a));
1068
+ (h = (c = r.prop.cachedPropsConfig) == null ? void 0 : c.cachedProps) == null || h.forEach((a) => {
1069
+ const u = e.before[a], g = e.after[a];
1070
+ u !== g && (n = n.orDeepProp(`${r.prop.name}.${a}`, "==", u));
1062
1071
  });
1063
1072
  const o = await n.get();
1064
1073
  return Promise.all([
1065
- o.map(async (h) => {
1066
- var a;
1067
- (a = r.prop.cachedProps) == null || a.forEach(async (u) => {
1068
- var N;
1069
- const b = e.before[u], O = e.after[u];
1070
- b !== O && (h[`_${r.prop.name}`][`_${u}`] = O, await s.save(h), (N = this.onUpdate) == null || N.call(this, h, r.prop));
1074
+ o.map(async (a) => {
1075
+ var u, g;
1076
+ (g = (u = r.prop.cachedPropsConfig) == null ? void 0 : u.cachedProps) == null || g.forEach(async (O) => {
1077
+ var V;
1078
+ const W = e.before[O], N = e.after[O];
1079
+ W !== N && (a[`_${r.prop.name}`][`_${O}`] = N, await s.save(a), (V = this.onUpdate) == null || V.call(this, a, r.prop));
1071
1080
  });
1072
1081
  })
1073
1082
  ]);
1074
1083
  });
1075
1084
  }
1076
1085
  }
1077
- class me extends C {
1086
+ class _e extends C {
1078
1087
  /**
1079
1088
  * @param jsonRawData the JSON object to be used as data store
1080
1089
  */
@@ -1208,7 +1217,7 @@ class me extends C {
1208
1217
  "<=": (a, u) => a <= u,
1209
1218
  ">": (a, u) => a > u,
1210
1219
  ">=": (a, u) => a >= u,
1211
- containsAny: (a, u) => a == null ? void 0 : a.some((b) => u == null ? void 0 : u.includes(b)),
1220
+ containsAny: (a, u) => a == null ? void 0 : a.some((g) => u == null ? void 0 : u.includes(g)),
1212
1221
  contains: (a, u) => a == null ? void 0 : a.includes(u)
1213
1222
  }, { property: s, value: n, operator: o } = t, [c, h] = this.retrieveValuesToCompare(e, s, n);
1214
1223
  return r[o](c, h);
@@ -1235,12 +1244,12 @@ class me extends C {
1235
1244
  ), t;
1236
1245
  }
1237
1246
  }
1238
- const v = class v {
1247
+ const P = class P {
1239
1248
  static registerCloudStorage(e, t) {
1240
- v._cloudStorageFactoryMap[e] = t;
1249
+ P._cloudStorageFactoryMap[e] = t;
1241
1250
  }
1242
1251
  static createInstance(e) {
1243
- const t = v._cloudStorageFactoryMap[e];
1252
+ const t = P._cloudStorageFactoryMap[e];
1244
1253
  if (!t)
1245
1254
  throw new Error(`You should register the ${e} cloud storage provider prior to use it`);
1246
1255
  return t();
@@ -1249,27 +1258,27 @@ const v = class v {
1249
1258
  return this.__className;
1250
1259
  }
1251
1260
  static useCloudStorage(e) {
1252
- v._defaultCloudStorage = e;
1261
+ P._defaultCloudStorage = e;
1253
1262
  }
1254
1263
  static get defaultCloudStorage() {
1255
- if (!v._defaultCloudStorage)
1264
+ if (!P._defaultCloudStorage)
1256
1265
  throw new Error("You should define a default cloud storage provider prior to use it");
1257
- return v._defaultCloudStorage;
1266
+ return P._defaultCloudStorage;
1258
1267
  }
1259
1268
  };
1260
- v._cloudStorageFactoryMap = {};
1261
- let P = v;
1262
- function K(i, e) {
1263
- return P.registerCloudStorage(i, e), (t) => {
1269
+ P._cloudStorageFactoryMap = {};
1270
+ let w = P;
1271
+ function ee(i, e) {
1272
+ return w.registerCloudStorage(i, e), (t) => {
1264
1273
  t.prototype.__className = i;
1265
1274
  };
1266
1275
  }
1267
- var X = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (i, e, t, r) => {
1268
- for (var s = r > 1 ? void 0 : r ? ee(e, t) : e, n = i.length - 1, o; n >= 0; n--)
1276
+ var te = Object.defineProperty, re = Object.getOwnPropertyDescriptor, se = (i, e, t, r) => {
1277
+ for (var s = r > 1 ? void 0 : r ? re(e, t) : e, n = i.length - 1, o; n >= 0; n--)
1269
1278
  (o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
1270
- return r && s && X(e, t, s), s;
1279
+ return r && s && te(e, t, s), s;
1271
1280
  };
1272
- let A = class extends P {
1281
+ let A = class extends w {
1273
1282
  constructor(i = "") {
1274
1283
  super(), this._simulateDelay = 0, this._pendingPromises = [], this.mockFileSystem = {}, this._pathToMockFiles = i;
1275
1284
  }
@@ -1318,21 +1327,21 @@ let A = class extends P {
1318
1327
  return delete this.mockFileSystem[i], this.resolveWithDelay();
1319
1328
  }
1320
1329
  };
1321
- A = te([
1322
- K("MockCloudStorage", () => new A())
1330
+ A = se([
1331
+ ee("MockCloudStorage", () => new A())
1323
1332
  ], A);
1324
- var re = Object.defineProperty, se = Object.getOwnPropertyDescriptor, D = (i, e, t, r) => {
1325
- for (var s = r > 1 ? void 0 : r ? se(e, t) : e, n = i.length - 1, o; n >= 0; n--)
1333
+ var ie = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, D = (i, e, t, r) => {
1334
+ for (var s = r > 1 ? void 0 : r ? ne(e, t) : e, n = i.length - 1, o; n >= 0; n--)
1326
1335
  (o = i[n]) && (s = (r ? o(e, t, s) : o(s)) || s);
1327
- return r && s && re(e, t, s), s;
1328
- }, ie = /* @__PURE__ */ ((i) => (i[i.stored = 0] = "stored", i[i.pendingDataSet = 1] = "pendingDataSet", i[i.deleted = 2] = "deleted", i))(ie || {});
1329
- let w = class extends l {
1336
+ return r && s && ie(e, t, s), s;
1337
+ }, oe = /* @__PURE__ */ ((i) => (i[i.stored = 0] = "stored", i[i.pendingDataSet = 1] = "pendingDataSet", i[i.deleted = 2] = "deleted", i))(oe || {});
1338
+ let b = class extends l {
1330
1339
  constructor() {
1331
1340
  super(...arguments), this._onChange = new I();
1332
1341
  }
1333
1342
  async save({ data: i, fileName: e, progress: t, cloudStorageProvider: r } = {}) {
1334
1343
  const s = i || this._pendingData;
1335
- s && (this._reference && await this.delete(), this.provider = r || P.defaultCloudStorage, this._originalFileName = e || (s instanceof File ? s.name : void 0), this._reference = await this.provider.save(this.id, s, t), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
1344
+ s && (this._reference && await this.delete(), this.provider = r || w.defaultCloudStorage, this._originalFileName = e || (s instanceof File ? s.name : void 0), this._reference = await this.provider.save(this.id, s, t), this._url = await this.provider.getUrl(this._reference), this._pendingData = void 0, this._onChange.notify({ event: 0, storedFile: this }));
1336
1345
  }
1337
1346
  uploadControl() {
1338
1347
  return this.provider.uploadControl();
@@ -1348,9 +1357,9 @@ let w = class extends l {
1348
1357
  get provider() {
1349
1358
  if (!this._provider)
1350
1359
  try {
1351
- this._provider = P.createInstance(this._cloudStorageProviderName);
1360
+ this._provider = w.createInstance(this._cloudStorageProviderName);
1352
1361
  } catch {
1353
- this._provider = P.defaultCloudStorage;
1362
+ this._provider = w.defaultCloudStorage;
1354
1363
  }
1355
1364
  return this._provider;
1356
1365
  }
@@ -1376,25 +1385,25 @@ let w = class extends l {
1376
1385
  };
1377
1386
  D([
1378
1387
  R
1379
- ], w.prototype, "_reference", 2);
1388
+ ], b.prototype, "_reference", 2);
1380
1389
  D([
1381
1390
  R
1382
- ], w.prototype, "_url", 2);
1391
+ ], b.prototype, "_url", 2);
1383
1392
  D([
1384
1393
  R
1385
- ], w.prototype, "_cloudStorageProviderName", 2);
1394
+ ], b.prototype, "_cloudStorageProviderName", 2);
1386
1395
  D([
1387
1396
  R
1388
- ], w.prototype, "_originalFileName", 2);
1397
+ ], b.prototype, "_originalFileName", 2);
1389
1398
  D([
1390
1399
  R
1391
- ], w.prototype, "_mimeType", 2);
1392
- w = D([
1393
- Z("StoredFile")
1394
- ], w);
1395
- class x {
1400
+ ], b.prototype, "_mimeType", 2);
1401
+ b = D([
1402
+ K("StoredFile")
1403
+ ], b);
1404
+ class B {
1396
1405
  }
1397
- const p = class p extends x {
1406
+ const p = class p extends B {
1398
1407
  constructor() {
1399
1408
  if (super(), this._onAuthStateChange = new I(), !p._authService)
1400
1409
  throw new Error(p.error.shouldBeRegistered);
@@ -1521,8 +1530,8 @@ const p = class p extends x {
1521
1530
  }
1522
1531
  };
1523
1532
  p.error = { shouldBeRegistered: "You should register an auth service before using Auth." }, p._instance = void 0;
1524
- let $ = p;
1525
- class ge extends x {
1533
+ let k = p;
1534
+ class ye extends B {
1526
1535
  constructor() {
1527
1536
  super(...arguments), this.pendingPromises = [], this._fakeRegisteredUsers = {};
1528
1537
  }
@@ -1596,7 +1605,7 @@ class ge extends x {
1596
1605
  };
1597
1606
  }
1598
1607
  }
1599
- const g = class g {
1608
+ const _ = class _ {
1600
1609
  constructor() {
1601
1610
  }
1602
1611
  static useCloudFunctionsService(e) {
@@ -1604,14 +1613,14 @@ const g = class g {
1604
1613
  }
1605
1614
  static get instance() {
1606
1615
  if (!this._cloudFunctionsService)
1607
- throw new Error(g.error.shouldBeRegistered);
1608
- return g._instance || (g._instance = new g());
1616
+ throw new Error(_.error.shouldBeRegistered);
1617
+ return _._instance || (_._instance = new _());
1609
1618
  }
1610
1619
  getRawFunction(e) {
1611
- return g._cloudFunctionsService.retrieveFunction(e);
1620
+ return _._cloudFunctionsService.retrieveFunction(e);
1612
1621
  }
1613
1622
  getFunction(e) {
1614
- const t = g._cloudFunctionsService.callFunction, r = this.getRawFunction(e);
1623
+ const t = _._cloudFunctionsService.callFunction, r = this.getRawFunction(e);
1615
1624
  return async (s) => {
1616
1625
  const n = await t(r, this.processParam(s));
1617
1626
  return this.processResult(n);
@@ -1626,9 +1635,9 @@ const g = class g {
1626
1635
  return e.__className ? l.createInstance(e) : Array.isArray(e) ? e.map((t) => this.processResult(t)) : typeof e == "object" ? Object.entries(e).reduce((t, [r, s]) => (t[r] = this.processResult(s), t), {}) : e;
1627
1636
  }
1628
1637
  };
1629
- g.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
1630
- let k = g;
1631
- class _e {
1638
+ _.error = { shouldBeRegistered: "You should register a cloud functions service with useCloudFunctionsService static method before using CloudFunctions." };
1639
+ let M = _;
1640
+ class ve {
1632
1641
  constructor(e) {
1633
1642
  this._registeredFunctions = e;
1634
1643
  }
@@ -1642,9 +1651,9 @@ class _e {
1642
1651
  return e(t);
1643
1652
  }
1644
1653
  }
1645
- class B {
1654
+ class L {
1646
1655
  }
1647
- const m = class m extends B {
1656
+ const m = class m extends L {
1648
1657
  constructor() {
1649
1658
  super();
1650
1659
  }
@@ -1670,8 +1679,8 @@ const m = class m extends B {
1670
1679
  }
1671
1680
  };
1672
1681
  m.error = { shouldBeRegistered: "You should register a Server Auth service before using the Server Auth." }, m._instance = void 0;
1673
- let M = m;
1674
- class ye extends B {
1682
+ let T = m;
1683
+ class Pe extends L {
1675
1684
  constructor(e) {
1676
1685
  super(), this._userCredentials = e;
1677
1686
  }
@@ -1698,63 +1707,63 @@ class ye extends B {
1698
1707
  return this._userCredentials;
1699
1708
  }
1700
1709
  }
1701
- function ve(i, e) {
1710
+ function we(i, e) {
1702
1711
  return i ? i.replace(/\${\s*(\w*)\s*}/g, function(t, r) {
1703
1712
  return e[r] || "";
1704
1713
  }) : "";
1705
1714
  }
1706
- function Pe(i) {
1715
+ function be(i) {
1707
1716
  return i ? i.replace(
1708
1717
  /([-_ ][\w])/g,
1709
1718
  (e) => e.toUpperCase().replace("-", "").replace("_", "").replace(" ", "")
1710
1719
  ) : "";
1711
1720
  }
1712
- function we(i, e = "-") {
1721
+ function Ce(i, e = "-") {
1713
1722
  if (!i)
1714
1723
  return "";
1715
1724
  const t = i.slice(1).replace(/( |[A-Z])/g, (r) => r === " " ? "-" : e + r[0].toLowerCase());
1716
1725
  return i[0].toLocaleLowerCase() + t.replace(/--/g, "-");
1717
1726
  }
1718
- function be(i, e) {
1727
+ function Se(i, e) {
1719
1728
  return e.split(".").reduce((t, r) => t[r], i);
1720
1729
  }
1721
1730
  export {
1722
- $ as Auth,
1723
- ge as AuthMock,
1724
- x as AuthService,
1725
- k as CloudFunctions,
1726
- _e as CloudFunctionsMock,
1727
- P as CloudStorage,
1731
+ k as Auth,
1732
+ ye as AuthMock,
1733
+ B as AuthService,
1734
+ M as CloudFunctions,
1735
+ ve as CloudFunctionsMock,
1736
+ w as CloudStorage,
1728
1737
  C as DataSource,
1729
- pe as EntropicComponent,
1730
- me as JsonDataSource,
1738
+ ge as EntropicComponent,
1739
+ _e as JsonDataSource,
1731
1740
  A as MockCloudStorage,
1732
1741
  S as Model,
1733
1742
  I as Observable,
1734
1743
  l as Persistent,
1735
- G as Query,
1736
- M as ServerAuth,
1737
- ye as ServerAuthMock,
1738
- B as ServerAuthService,
1744
+ X as Query,
1745
+ T as ServerAuth,
1746
+ Pe as ServerAuthMock,
1747
+ L as ServerAuthService,
1739
1748
  F as Store,
1740
- w as StoredFile,
1741
- ie as StoredFileEvent,
1742
- Pe as camelCase,
1743
- be as getDeepValue,
1749
+ b as StoredFile,
1750
+ oe as StoredFileEvent,
1751
+ be as camelCase,
1752
+ Se as getDeepValue,
1744
1753
  R as persistent,
1745
- _ as persistentParser,
1746
- ce as persistentPureReference,
1747
- ue as persistentPureReferenceWithCachedProps,
1748
- oe as persistentReference,
1749
- ne as persistentReferenceAt,
1750
- ae as persistentReferenceWithCachedProps,
1751
- K as registerCloudStorage,
1752
- he as registerLegacyClassName,
1753
- Z as registerPersistentClass,
1754
- ve as replaceValue,
1755
- de as required,
1756
- fe as requiredWithValidator,
1757
- le as searchableArray,
1758
- we as snakeCase
1754
+ y as persistentParser,
1755
+ he as persistentPureReference,
1756
+ le as persistentPureReferenceWithCachedProps,
1757
+ ce as persistentReference,
1758
+ ae as persistentReferenceAt,
1759
+ ue as persistentReferenceWithCachedProps,
1760
+ ee as registerCloudStorage,
1761
+ de as registerLegacyClassName,
1762
+ K as registerPersistentClass,
1763
+ we as replaceValue,
1764
+ pe as required,
1765
+ me as requiredWithValidator,
1766
+ fe as searchableArray,
1767
+ Ce as snakeCase
1759
1768
  };
1760
1769
  //# sourceMappingURL=entropic-bond.js.map