@gridsheet/preact-core 3.4.0 → 3.4.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.
@@ -3281,7 +3281,7 @@ let Y$1 = class Y {
3281
3281
  if (!Dt.is(this._stripped))
3282
3282
  return this._stripped;
3283
3283
  let s = this;
3284
- for (; s instanceof Y; )
3284
+ for (; Y.is(s); )
3285
3285
  s = (i = Ve({ sheet: s, raise: t, at: e })[0]) == null ? void 0 : i[0];
3286
3286
  return this._stripped = s, this._stripped;
3287
3287
  }
@@ -3670,7 +3670,7 @@ const we = ({ value: r, sheet: t, point: e, raise: s = true, resolution: i = "RE
3670
3670
  throw t.finishSolvedCache(e, u), u;
3671
3671
  return u;
3672
3672
  }
3673
- return W$1.is(l) ? l = t.spill(e, l.matrix) : t.finishSolvedCache(e, l), i === "RESOLVED" && l instanceof Y$1 && (l = ut({ value: l, raise: s, at: n })), L.is(l) && t.finishSolvedCache(e, l), l;
3673
+ return W$1.is(l) ? l = t.spill(e, l.matrix) : t.finishSolvedCache(e, l), i === "RESOLVED" && Y$1.is(l) && (l = ut({ value: l, raise: s, at: n })), L.is(l) && t.finishSolvedCache(e, l), l;
3674
3674
  }, Ve = ({ sheet: r, raise: t = true, at: e }) => {
3675
3675
  const s = r.area;
3676
3676
  return r._toValueMatrix({ area: s, at: e, resolution: "SYSTEM" }).map((n, o) => {
@@ -3696,7 +3696,7 @@ const we = ({ value: r, sheet: t, point: e, raise: s = true, resolution: i = "RE
3696
3696
  }
3697
3697
  });
3698
3698
  });
3699
- }, ut = ({ value: r, at: t, raise: e = true }) => r instanceof Y$1 ? r.strip({ raise: e, at: t }) : r, xe = new _t("asyncCacheMiss"), Ci = (r) => r.some((t) => L.is(t)), ps = (r) => (r == null ? void 0 : r.__gsType) === "Sheet", Pt = (r, t) => {
3699
+ }, ut = ({ value: r, at: t, raise: e = true }) => Y$1.is(r) ? r.strip({ raise: e, at: t }) : r, xe = new _t("asyncCacheMiss"), Ci = (r) => r.some((t) => L.is(t)), ps = (r) => (r == null ? void 0 : r.__gsType) === "Sheet", Pt = (r, t) => {
3700
3700
  for (const e of r)
3701
3701
  if (L.is(e) || Array.isArray(e) && Pt(e, t) || W$1.is(e) && Pt(e.matrix, t) || ps(e) && Pt(e._toValueMatrix({ at: t }), t))
3702
3702
  return true;
@@ -3775,7 +3775,7 @@ const we = ({ value: r, sheet: t, point: e, raise: s = true, resolution: i = "RE
3775
3775
  return e;
3776
3776
  if (!r)
3777
3777
  return 0;
3778
- if (r instanceof Y$1) {
3778
+ if (Y$1.is(r)) {
3779
3779
  const n = ut({ value: r });
3780
3780
  return O(n, { alternative: e });
3781
3781
  }
@@ -3799,7 +3799,7 @@ const we = ({ value: r, sheet: t, point: e, raise: s = true, resolution: i = "RE
3799
3799
  return "0";
3800
3800
  if (!r)
3801
3801
  return "";
3802
- if (r instanceof Y$1) {
3802
+ if (Y$1.is(r)) {
3803
3803
  const t = ut({ value: r });
3804
3804
  return Q$1(t);
3805
3805
  }
@@ -3817,7 +3817,7 @@ const we = ({ value: r, sheet: t, point: e, raise: s = true, resolution: i = "RE
3817
3817
  return e;
3818
3818
  if (r === null)
3819
3819
  return false;
3820
- if (r instanceof Y$1) {
3820
+ if (Y$1.is(r)) {
3821
3821
  const i = ut({ value: r });
3822
3822
  return Wt(i, t);
3823
3823
  }
@@ -3835,7 +3835,7 @@ const we = ({ value: r, sheet: t, point: e, raise: s = true, resolution: i = "RE
3835
3835
  function Ni(r) {
3836
3836
  if (L.is(r) || r instanceof Date)
3837
3837
  return r;
3838
- if (r instanceof Y$1) {
3838
+ if (Y$1.is(r)) {
3839
3839
  const t = ut({ value: r });
3840
3840
  return Ni(t);
3841
3841
  }
@@ -3871,7 +3871,7 @@ const vi = /^(<=|>=|<>|>|<|=)?(.*)$/, ki = (r, t) => {
3871
3871
  }
3872
3872
  return Oe(r, n) === o;
3873
3873
  }, dt = (r, t, e) => {
3874
- if (r instanceof Y$1) {
3874
+ if (Y$1.is(r)) {
3875
3875
  const s = r.solve({ at: e });
3876
3876
  for (let i = 0; i < s.length; i++)
3877
3877
  for (let n = 0; n < s[i].length; n++)
@@ -4702,7 +4702,7 @@ class Pr extends A {
4702
4702
  ], this.category = "logical", this.broadcastDisabled = true;
4703
4703
  }
4704
4704
  main(t) {
4705
- return W$1.is(t) ? t : t instanceof Y$1 ? t._toValueMatrix() : Array.isArray(t) ? t : [[t]];
4705
+ return W$1.is(t) ? t : Y$1.is(t) ? t._toValueMatrix() : Array.isArray(t) ? t : [[t]];
4706
4706
  }
4707
4707
  }
4708
4708
  const gs = {
@@ -7186,4 +7186,4 @@ export {
7186
7186
  arrow as y,
7187
7187
  escape as z
7188
7188
  };
7189
- //# sourceMappingURL=hooks-BTcuh87d.mjs.map
7189
+ //# sourceMappingURL=hooks-BHtHkTAN.mjs.map