@instantdb/core 0.22.86-experimental.split-store.20247691802.1 → 0.22.86-experimental.split-store.20249702529.1

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.
@@ -64,7 +64,7 @@ function st(t) {
64
64
  function it(t) {
65
65
  return Object.getPrototypeOf(t) === Map.prototype;
66
66
  }
67
- function U(t) {
67
+ function L(t) {
68
68
  var e;
69
69
  return (e = t.copy) !== null && e !== void 0 ? e : t.original;
70
70
  }
@@ -116,7 +116,7 @@ function he(t, e, n) {
116
116
  }
117
117
  function De(t, e) {
118
118
  const n = S(t);
119
- return (n ? U(n) : t)[e];
119
+ return (n ? L(n) : t)[e];
120
120
  }
121
121
  function Q(t, e) {
122
122
  return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
@@ -449,13 +449,13 @@ const Ae = (t, e, n = !1) => {
449
449
  throw new Error("Strict mode: Mutable data cannot be accessed directly, please use 'unsafe(callback)' wrap.");
450
450
  }, ze = {
451
451
  get size() {
452
- return U(S(this)).size;
452
+ return L(S(this)).size;
453
453
  },
454
454
  has(t) {
455
- return U(S(this)).has(t);
455
+ return L(S(this)).has(t);
456
456
  },
457
457
  set(t, e) {
458
- const n = S(this), r = U(n);
458
+ const n = S(this), r = L(n);
459
459
  return (!r.has(t) || !Q(r.get(t), e)) && (j(n), V(n), n.assignedMap.set(t, !0), n.copy.set(t, e), ct(n, t, e, fe)), this;
460
460
  },
461
461
  delete(t) {
@@ -475,13 +475,13 @@ const Ae = (t, e, n = !1) => {
475
475
  },
476
476
  forEach(t, e) {
477
477
  const n = S(this);
478
- U(n).forEach((r, s) => {
478
+ L(n).forEach((r, s) => {
479
479
  t.call(e, this.get(s), s, this);
480
480
  });
481
481
  },
482
482
  get(t) {
483
483
  var e, n;
484
- const r = S(this), s = U(r).get(t), i = ((n = (e = r.options).mark) === null || n === void 0 ? void 0 : n.call(e, s, F)) === F.mutable;
484
+ const r = S(this), s = L(r).get(t), i = ((n = (e = r.options).mark) === null || n === void 0 ? void 0 : n.call(e, s, F)) === F.mutable;
485
485
  if (r.options.strict && Ae(s, r.options, i), i || r.finalized || !q(s, r.options) || s !== r.original.get(t))
486
486
  return s;
487
487
  const o = rt.createDraft({
@@ -494,7 +494,7 @@ const Ae = (t, e, n = !1) => {
494
494
  return j(r), r.copy.set(t, o), o;
495
495
  },
496
496
  keys() {
497
- return U(S(this)).keys();
497
+ return L(S(this)).keys();
498
498
  },
499
499
  values() {
500
500
  const t = this.keys();
@@ -653,7 +653,7 @@ const rr = Reflect.ownKeys(ve), rn = /* @__PURE__ */ new WeakSet(), sn = {
653
653
  if (o = t.options.mark(u, F), o === F.mutable)
654
654
  return t.options.strict && Ae(u, t.options, !0), u;
655
655
  }
656
- const a = U(t);
656
+ const a = L(t);
657
657
  if (a instanceof Map && nr.includes(e)) {
658
658
  if (e === "size")
659
659
  return Object.getOwnPropertyDescriptor(ze, "size").get.call(t.proxy);
@@ -700,20 +700,20 @@ const rr = Reflect.ownKeys(ve), rn = /* @__PURE__ */ new WeakSet(), sn = {
700
700
  let s;
701
701
  if (t.type === 1 && e !== "length" && !(Number.isInteger(s = Number(e)) && s >= 0 && (e === 0 || s === 0 || String(s) === String(e))))
702
702
  throw new Error("Only supports setting array indices and the 'length' property.");
703
- const i = wt(U(t), e);
703
+ const i = wt(L(t), e);
704
704
  if (i != null && i.set)
705
705
  return i.set.call(t.proxy, n), !0;
706
- const o = De(U(t), e), a = S(o);
706
+ const o = De(L(t), e), a = S(o);
707
707
  return a && Q(a.original, n) ? (t.copy[e] = n, t.assignedMap = (r = t.assignedMap) !== null && r !== void 0 ? r : /* @__PURE__ */ new Map(), t.assignedMap.set(e, !1), !0) : (Q(n, o) && (n !== void 0 || ce(t.original, e)) || (j(t), V(t), ce(t.original, e) && Q(n, t.original[e]) ? t.assignedMap.delete(e) : t.assignedMap.set(e, !0), t.copy[e] = n, ct(t, e, n, fe)), !0);
708
708
  },
709
709
  has(t, e) {
710
- return e in U(t);
710
+ return e in L(t);
711
711
  },
712
712
  ownKeys(t) {
713
- return Reflect.ownKeys(U(t));
713
+ return Reflect.ownKeys(L(t));
714
714
  },
715
715
  getOwnPropertyDescriptor(t, e) {
716
- const n = U(t), r = Reflect.getOwnPropertyDescriptor(n, e);
716
+ const n = L(t), r = Reflect.getOwnPropertyDescriptor(n, e);
717
717
  return r && {
718
718
  writable: !0,
719
719
  configurable: t.type !== 1 || e !== "length",
@@ -877,9 +877,9 @@ const or = (t) => function e(n, r, s) {
877
877
  for (const M of l.mark) {
878
878
  if (typeof M != "function")
879
879
  throw new Error(`Invalid mark: ${M}, 'mark' should be a function.`);
880
- const x = M(m, O);
881
- if (x)
882
- return x;
880
+ const U = M(m, O);
881
+ if (U)
882
+ return U;
883
883
  }
884
884
  } : l.mark, h = (i = l.enablePatches) !== null && i !== void 0 ? i : !1, p = (o = l.strict) !== null && o !== void 0 ? o : !1, b = {
885
885
  enableAutoFreeze: (a = l.enableAutoFreeze) !== null && a !== void 0 ? a : !1,
@@ -906,9 +906,9 @@ const or = (t) => function e(n, r, s) {
906
906
  if (!J(m)) {
907
907
  if (m !== void 0 && !Q(m, g) && (O != null && O.operated))
908
908
  throw new Error("Either the value is returned as a new non-draft value, or only the draft is modified without returning any value.");
909
- const x = m == null ? void 0 : m[Bn];
910
- if (x) {
911
- const $e = x[0];
909
+ const U = m == null ? void 0 : m[Bn];
910
+ if (U) {
911
+ const $e = U[0];
912
912
  return b.strict && typeof m == "object" && m !== null && Ve({
913
913
  rootDraft: O,
914
914
  value: m,
@@ -1372,7 +1372,7 @@ class H {
1372
1372
  for (const e of Object.values(this.attrs))
1373
1373
  if (dt(e)) {
1374
1374
  const [n, r, s] = e["forward-identity"];
1375
- L(this.blobAttrs, [r, s], e);
1375
+ D(this.blobAttrs, [r, s], e);
1376
1376
  }
1377
1377
  return this._blobAttrs;
1378
1378
  }
@@ -1383,7 +1383,7 @@ class H {
1383
1383
  for (const e of Object.values(this.attrs))
1384
1384
  if (e["primary?"]) {
1385
1385
  const [n, r] = e["forward-identity"];
1386
- L(this._primaryKeys, [r], e);
1386
+ D(this._primaryKeys, [r], e);
1387
1387
  }
1388
1388
  return this._primaryKeys;
1389
1389
  }
@@ -1393,7 +1393,7 @@ class H {
1393
1393
  this._forwardIdents = /* @__PURE__ */ new Map();
1394
1394
  for (const e of Object.values(this.attrs)) {
1395
1395
  const n = e["forward-identity"], [r, s, i] = n;
1396
- L(this._forwardIdents, [s, i], e);
1396
+ D(this._forwardIdents, [s, i], e);
1397
1397
  }
1398
1398
  return this._forwardIdents;
1399
1399
  }
@@ -1405,7 +1405,7 @@ class H {
1405
1405
  const n = e["reverse-identity"];
1406
1406
  if (n) {
1407
1407
  const [r, s, i] = n;
1408
- L(this._revIdents, [s, i], e);
1408
+ D(this._revIdents, [s, i], e);
1409
1409
  }
1410
1410
  }
1411
1411
  return this._revIdents;
@@ -1435,7 +1435,7 @@ function K(t, e) {
1435
1435
  const [n, ...r] = e;
1436
1436
  t.has(n) && K(t.get(n), r);
1437
1437
  }
1438
- function L(t, e, n) {
1438
+ function D(t, e, n) {
1439
1439
  let r = t;
1440
1440
  const s = e.length - 1;
1441
1441
  for (let i = 0; i < s; i++) {
@@ -1454,13 +1454,13 @@ function ln(t, e, n) {
1454
1454
  console.warn("no such attr", c, a);
1455
1455
  continue;
1456
1456
  }
1457
- l["checked-data-type"] === "date" && n && (u = Ie(u), o[2] = u), ft(l) && L(i, [u, c, a], o), L(r, [a, c, u], o), L(s, [c, a, u], o);
1457
+ l["checked-data-type"] === "date" && n && (u = Ie(u), o[2] = u), ft(l) && D(i, [u, c, a], o), D(r, [a, c, u], o), D(s, [c, a, u], o);
1458
1458
  }
1459
1459
  return { eav: r, aev: s, vae: i };
1460
1460
  }
1461
1461
  function fn(t) {
1462
1462
  return {
1463
- triples: D(t.eav, 3),
1463
+ triples: R(t.eav, 3),
1464
1464
  cardinalityInference: t.cardinalityInference,
1465
1465
  useDateObjects: t.useDateObjects,
1466
1466
  version: 1
@@ -1498,7 +1498,7 @@ function pe(t, e) {
1498
1498
  const [o, a] = e[0], c = t.aev.get(o);
1499
1499
  if (!c)
1500
1500
  return null;
1501
- n = (s = D(c, 2).find((l) => l[2] === a)) == null ? void 0 : s[0];
1501
+ n = (s = R(c, 2).find((l) => l[2] === a)) == null ? void 0 : s[0];
1502
1502
  } else
1503
1503
  n = e[0];
1504
1504
  if (!n)
@@ -1508,7 +1508,7 @@ function pe(t, e) {
1508
1508
  const [o, a] = r, c = t.aev.get(o);
1509
1509
  if (!c)
1510
1510
  return null;
1511
- const l = (i = D(c, 2).find((y) => y[2] === a)) == null ? void 0 : i[0];
1511
+ const l = (i = R(c, 2).find((y) => y[2] === a)) == null ? void 0 : i[0];
1512
1512
  if (!l)
1513
1513
  return null;
1514
1514
  const [f, d, h, ...p] = e;
@@ -1542,7 +1542,7 @@ function bn(t, e, n) {
1542
1542
  return;
1543
1543
  a["checked-data-type"] === "date" && t.useDateObjects && (o = Ie(o));
1544
1544
  const c = re(t.eav, [s, i, o]), u = (c == null ? void 0 : c[3]) ?? yn(t, a, r), l = [s, i, o, u];
1545
- kr(a) ? (L(t.eav, [s, i], /* @__PURE__ */ new Map([[o, l]])), L(t.aev, [i, s], /* @__PURE__ */ new Map([[o, l]]))) : (L(t.eav, [s, i, o], l), L(t.aev, [i, s, o], l)), ft(a) && L(t.vae, [o, i, s], l);
1545
+ kr(a) ? (D(t.eav, [s, i], /* @__PURE__ */ new Map([[o, l]])), D(t.aev, [i, s], /* @__PURE__ */ new Map([[o, l]]))) : (D(t.eav, [s, i, o], l), D(t.aev, [i, s, o], l)), ft(a) && D(t.vae, [o, i, s], l);
1546
1546
  }
1547
1547
  function Cr(t, e, n) {
1548
1548
  var h;
@@ -1563,7 +1563,7 @@ function Cr(t, e, n) {
1563
1563
  f,
1564
1564
  yn(t, a, u)
1565
1565
  ];
1566
- L(t.eav, [s, i], /* @__PURE__ */ new Map([[f, d]]));
1566
+ D(t.eav, [s, i], /* @__PURE__ */ new Map([[f, d]])), D(t.aev, [i, s], /* @__PURE__ */ new Map([[f, d]]));
1567
1567
  }
1568
1568
  function Qe(t, e, n) {
1569
1569
  var u, l;
@@ -1574,7 +1574,7 @@ function Qe(t, e, n) {
1574
1574
  if (a) {
1575
1575
  for (const f of a.keys()) {
1576
1576
  const d = e.getAttr(f);
1577
- d && d["on-delete-reverse"] === "cascade" && D(a.get(f), 1).forEach(
1577
+ d && d["on-delete-reverse"] === "cascade" && R(a.get(f), 1).forEach(
1578
1578
  ([h, p, y]) => {
1579
1579
  var b;
1580
1580
  return Qe(t, e, [y, (b = d["reverse-identity"]) == null ? void 0 : b[1]]);
@@ -1587,7 +1587,7 @@ function Qe(t, e, n) {
1587
1587
  }
1588
1588
  a.size === 0 && K(t.eav, [o]);
1589
1589
  }
1590
- const c = t.vae.get(o) && D(t.vae.get(o), 2);
1590
+ const c = t.vae.get(o) && R(t.vae.get(o), 2);
1591
1591
  c && c.forEach((f) => {
1592
1592
  var b, g, _;
1593
1593
  const [d, h, p] = f, y = e.getAttr(h);
@@ -1608,7 +1608,7 @@ function Mr(t, [e]) {
1608
1608
  t.addAttr(e);
1609
1609
  }
1610
1610
  function gn(t) {
1611
- return D(t.eav, 3);
1611
+ return R(t.eav, 3);
1612
1612
  }
1613
1613
  function Pr(t, e, [n]) {
1614
1614
  if (!e.getAttr(n)) return;
@@ -1650,7 +1650,7 @@ function $r(t, e, n) {
1650
1650
  throw new Error(`unhandled transaction action: ${r}`);
1651
1651
  }
1652
1652
  }
1653
- function D(t, e, n = []) {
1653
+ function R(t, e, n = []) {
1654
1654
  if (!t || e === 0)
1655
1655
  return n;
1656
1656
  if (e === 1) {
@@ -1659,7 +1659,7 @@ function D(t, e, n = []) {
1659
1659
  return n;
1660
1660
  }
1661
1661
  for (const r of t.values())
1662
- D(r, e - 1, n);
1662
+ R(r, e - 1, n);
1663
1663
  return n;
1664
1664
  }
1665
1665
  function ye(t, e, n) {
@@ -1687,7 +1687,7 @@ function ye(t, e, n) {
1687
1687
  return r;
1688
1688
  }
1689
1689
  if (n != null && n.$comparator)
1690
- return D(e, 1).filter(n.$op);
1690
+ return R(e, 1).filter(n.$op);
1691
1691
  const s = n.in || n.$in || [n];
1692
1692
  for (const o of s) {
1693
1693
  const a = e.get(o);
@@ -1704,11 +1704,11 @@ function Rr(t, [e, n, r]) {
1704
1704
  switch (Dr(e, n, r)) {
1705
1705
  case "e": {
1706
1706
  const a = t.eav.get(e);
1707
- return D(a, 2);
1707
+ return R(a, 2);
1708
1708
  }
1709
1709
  case "ea": {
1710
1710
  const a = (i = t.eav.get(e)) == null ? void 0 : i.get(n);
1711
- return D(a, 1);
1711
+ return R(a, 1);
1712
1712
  }
1713
1713
  case "eav": {
1714
1714
  const a = (o = t.eav.get(e)) == null ? void 0 : o.get(n);
@@ -1725,7 +1725,7 @@ function Rr(t, [e, n, r]) {
1725
1725
  }
1726
1726
  case "a": {
1727
1727
  const a = t.aev.get(n);
1728
- return D(a, 2);
1728
+ return R(a, 2);
1729
1729
  }
1730
1730
  case "av": {
1731
1731
  const a = t.aev.get(n);
@@ -1744,7 +1744,7 @@ function Rr(t, [e, n, r]) {
1744
1744
  return a;
1745
1745
  }
1746
1746
  default:
1747
- return D(t.eav, 3);
1747
+ return R(t.eav, 3);
1748
1748
  }
1749
1749
  }
1750
1750
  function xr(t, e, n) {
@@ -1753,7 +1753,7 @@ function xr(t, e, n) {
1753
1753
  if (!e)
1754
1754
  return r;
1755
1755
  for (const [i, o] of e.entries()) {
1756
- const a = (s = t.eav.get(n)) == null ? void 0 : s.get(o.id), c = D(a, 1);
1756
+ const a = (s = t.eav.get(n)) == null ? void 0 : s.get(o.id), c = R(a, 1);
1757
1757
  for (const u of c)
1758
1758
  r[i] = u[2];
1759
1759
  }
@@ -2323,8 +2323,8 @@ function Cs(t, e, { etype: n, pageInfo: r, dq: s, form: i }) {
2323
2323
  if (f && ((y = f == null ? void 0 : f["forward-identity"]) == null ? void 0 : y[2]) !== "id") {
2324
2324
  const b = f["checked-data-type"] === "date", g = f.id;
2325
2325
  u = u.map(([_]) => {
2326
- var A, m, O, M, x;
2327
- let T = (x = (M = (O = (m = (A = t.eav.get(_)) == null ? void 0 : A.get(g)) == null ? void 0 : m.values()) == null ? void 0 : O.next()) == null ? void 0 : M.value) == null ? void 0 : x[2];
2326
+ var A, m, O, M, U;
2327
+ let T = (U = (M = (O = (m = (A = t.eav.get(_)) == null ? void 0 : A.get(g)) == null ? void 0 : m.values()) == null ? void 0 : O.next()) == null ? void 0 : M.value) == null ? void 0 : U[2];
2328
2328
  return b && (T = He(T)), [_, T];
2329
2329
  });
2330
2330
  }
@@ -2539,7 +2539,7 @@ function Ks(t, e, n) {
2539
2539
  function Ze(t) {
2540
2540
  return typeof t == "string" && !Ee(t) ? null : typeof t == "string" && Ee(t) ? kn(t) : Fs(t);
2541
2541
  }
2542
- function R(t, e, n) {
2542
+ function x(t, e, n) {
2543
2543
  const r = Ze(n);
2544
2544
  if (r === null)
2545
2545
  return n;
@@ -2550,7 +2550,7 @@ function R(t, e, n) {
2550
2550
  }
2551
2551
  function In(t, e, n, r) {
2552
2552
  var o;
2553
- const s = R(t, e, n);
2553
+ const s = x(t, e, n);
2554
2554
  return Array.isArray(s) ? [[
2555
2555
  "add-triple",
2556
2556
  s,
@@ -2563,18 +2563,18 @@ function qs({ attrsStore: t }, [e, n, r]) {
2563
2563
  const a = Array.isArray(o) ? o : [o], c = E(t, e, i), u = Z(t, e, i);
2564
2564
  return a.map((l) => c ? [
2565
2565
  "add-triple",
2566
- R(t, e, n),
2566
+ x(t, e, n),
2567
2567
  c.id,
2568
2568
  // Uses `!` because if we get here, we should have created the attr if it doesn't
2569
2569
  // already exist
2570
- R(t, c["reverse-identity"][1], l)
2570
+ x(t, c["reverse-identity"][1], l)
2571
2571
  ] : [
2572
2572
  "add-triple",
2573
2573
  // Uses `!` because if we get here, we should have created the attr if it doesn't
2574
2574
  // already exist
2575
- R(t, u["forward-identity"][1], l),
2575
+ x(t, u["forward-identity"][1], l),
2576
2576
  u == null ? void 0 : u.id,
2577
- R(t, e, n)
2577
+ x(t, e, n)
2578
2578
  ]);
2579
2579
  });
2580
2580
  return In(t, e, n, s);
@@ -2584,18 +2584,18 @@ function zs({ attrsStore: t }, [e, n, r]) {
2584
2584
  const a = Array.isArray(o) ? o : [o], c = E(t, e, i), u = Z(t, e, i);
2585
2585
  return a.map((l) => c ? [
2586
2586
  "retract-triple",
2587
- R(t, e, n),
2587
+ x(t, e, n),
2588
2588
  c.id,
2589
2589
  // Uses `!` because if we get here, we should have created the attr if it doesn't
2590
2590
  // already exist
2591
- R(t, c["reverse-identity"][1], l)
2591
+ x(t, c["reverse-identity"][1], l)
2592
2592
  ] : [
2593
2593
  "retract-triple",
2594
2594
  // Uses `!` because if we get here, we should have created the attr if it doesn't
2595
2595
  // already exist
2596
- R(t, u["forward-identity"][1], l),
2596
+ x(t, u["forward-identity"][1], l),
2597
2597
  u.id,
2598
- R(t, e, n)
2598
+ x(t, e, n)
2599
2599
  ]);
2600
2600
  });
2601
2601
  return In(t, e, n, s);
@@ -2607,7 +2607,7 @@ function Vs(t, e, n, r) {
2607
2607
  for (const a of t || []) {
2608
2608
  const c = a == null ? void 0 : a.aev.get(i);
2609
2609
  if (c) {
2610
- for (const [u, l, f] of D(c, 2))
2610
+ for (const [u, l, f] of R(c, 2))
2611
2611
  if (f === o)
2612
2612
  return !0;
2613
2613
  }
@@ -2627,14 +2627,14 @@ function Cn({ stores: t, attrsStore: e }, [n, r, s, i]) {
2627
2627
  return (i == null ? void 0 : i.upsert) === !1 ? { mode: "update" } : (i == null ? void 0 : i.upsert) === !0 ? null : Vs(t, e, n, r) ? { mode: "update" } : null;
2628
2628
  }
2629
2629
  function Ws(t, e) {
2630
- const { attrsStore: n } = t, [r, s, i, o] = e, a = lt(i), c = R(n, r, s);
2630
+ const { attrsStore: n } = t, [r, s, i, o] = e, a = lt(i), c = x(n, r, s);
2631
2631
  return [["id", c]].concat(Object.entries(a)).map(([l, f]) => {
2632
2632
  const d = E(n, r, l);
2633
2633
  return d["checked-data-type"] === "date" && t.useDateObjects && (f = Ie(f)), ["add-triple", c, d.id, f, { mode: "create" }];
2634
2634
  });
2635
2635
  }
2636
2636
  function Qs(t, e) {
2637
- const { attrsStore: n } = t, [r, s, i, o] = e, a = lt(i), c = R(n, r, s), u = Cn(t, [r, c, i, o]);
2637
+ const { attrsStore: n } = t, [r, s, i, o] = e, a = lt(i), c = x(n, r, s), u = Cn(t, [r, c, i, o]);
2638
2638
  return [["id", c]].concat(Object.entries(a)).map(([f, d]) => {
2639
2639
  const h = E(n, r, f);
2640
2640
  return h["checked-data-type"] === "date" && t.useDateObjects && (d = Ie(d)), [
@@ -2647,10 +2647,10 @@ function Qs(t, e) {
2647
2647
  });
2648
2648
  }
2649
2649
  function Gs({ attrsStore: t }, [e, n]) {
2650
- return [["delete-entity", R(t, e, n), e]];
2650
+ return [["delete-entity", x(t, e, n), e]];
2651
2651
  }
2652
2652
  function Bs(t, e) {
2653
- const { attrsStore: n } = t, [r, s, i, o] = e, a = lt(i), c = R(n, r, s), u = Cn(t, [r, c, i, o]), l = Object.entries(a).map(([d, h]) => {
2653
+ const { attrsStore: n } = t, [r, s, i, o] = e, a = lt(i), c = x(n, r, s), u = Cn(t, [r, c, i, o]), l = Object.entries(a).map(([d, h]) => {
2654
2654
  const p = E(n, r, d);
2655
2655
  return [
2656
2656
  "deep-merge-triple",
@@ -2669,7 +2669,7 @@ function Bs(t, e) {
2669
2669
  ]].concat(l);
2670
2670
  }
2671
2671
  function Hs({ attrsStore: t }, [e, n, r]) {
2672
- return [["rule-params", R(t, e, n), e, r]];
2672
+ return [["rule-params", x(t, e, n), e, r]];
2673
2673
  }
2674
2674
  function Js(t) {
2675
2675
  const [e, n, r, s, i] = t;
@@ -3639,7 +3639,7 @@ function Kt(t) {
3639
3639
  }, e;
3640
3640
  }, {});
3641
3641
  }
3642
- const Rn = "v0.22.86-experimental.split-store.20247691802.1";
3642
+ const Rn = "v0.22.86-experimental.split-store.20249702529.1";
3643
3643
  function Mi(t, e) {
3644
3644
  return {
3645
3645
  info: t ? (...n) => console.info(...n, e()) : () => {
@@ -5300,13 +5300,13 @@ class oo {
5300
5300
  });
5301
5301
  const b = Jt(y.entries()), g = d.map((_) => {
5302
5302
  var yt, bt, _t, gt;
5303
- const T = _["instaql-query"], A = _["instaql-result"], m = P(T), O = Nt(A), M = this.ensureAttrs(), x = Se(
5303
+ const T = _["instaql-query"], A = _["instaql-result"], m = P(T), O = Nt(A), M = this.ensureAttrs(), U = Se(
5304
5304
  M,
5305
5305
  O,
5306
5306
  r,
5307
5307
  this.config.useDateObjects
5308
5308
  ), { store: $e, attrsStore: zn } = this._applyOptimisticUpdates(
5309
- x,
5309
+ U,
5310
5310
  M,
5311
5311
  b,
5312
5312
  p
@@ -5322,12 +5322,12 @@ class oo {
5322
5322
  });
5323
5323
  g.forEach(
5324
5324
  ({ hash: _, q: T, store: A, attrsStore: m, pageInfo: O, aggregate: M }) => {
5325
- this.querySubs.updateInPlace((x) => {
5326
- if (!x[_]) {
5325
+ this.querySubs.updateInPlace((U) => {
5326
+ if (!U[_]) {
5327
5327
  this._log.error("Missing value in querySubs", { hash: _, q: T });
5328
5328
  return;
5329
5329
  }
5330
- x[_].result = {
5330
+ U[_].result = {
5331
5331
  store: A,
5332
5332
  attrsStore: m,
5333
5333
  pageInfo: O,
@@ -5364,7 +5364,7 @@ class oo {
5364
5364
  b.push(_);
5365
5365
  }
5366
5366
  if (b.length) {
5367
- const g = Object.values(this.ensureAttrs());
5367
+ const g = Object.values(this.ensureAttrs().attrs);
5368
5368
  this._setAttrs([...g, ...b]), this._setAttrs(b);
5369
5369
  }
5370
5370
  this._finishTransaction("synced", d), this._cleanupPendingMutationsTimeout();
@@ -5918,7 +5918,7 @@ class oo {
5918
5918
  notifyAttrsSubs() {
5919
5919
  if (!this.attrs) return;
5920
5920
  const e = this.optimisticAttrs();
5921
- this.attrsCbs.forEach((n) => n(e));
5921
+ this.attrsCbs.forEach((n) => n(e.attrs));
5922
5922
  }
5923
5923
  notifyConnectionStatusSubs(e) {
5924
5924
  this.connectionStatusCbs.forEach((n) => n(e));