okno 1.0.0-beta.26 → 1.0.0-beta.27

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 (2) hide show
  1. package/dist/editor/index.js +316 -309
  2. package/package.json +1 -1
@@ -39,8 +39,8 @@ function f5() {
39
39
  }
40
40
  return o;
41
41
  }
42
- const Ii = [], p5 = 1e3;
43
- function ws(o, t, r) {
42
+ const $i = [], p5 = 1e3;
43
+ function _s(o, t, r) {
44
44
  const n = r.map((i) => {
45
45
  if (typeof i == "string") return i;
46
46
  if (i instanceof Error) return `${i.name}: ${i.message}
@@ -51,21 +51,21 @@ ${i.stack}`;
51
51
  return String(i);
52
52
  }
53
53
  }).join(" ");
54
- Ii.push({ timestamp: Date.now(), module: o, level: t, message: n }), Ii.length > p5 && Ii.shift();
54
+ $i.push({ timestamp: Date.now(), module: o, level: t, message: n }), $i.length > p5 && $i.shift();
55
55
  }
56
56
  function Mr(o) {
57
57
  return {
58
58
  info: (...t) => {
59
- ws(o, "info", t);
59
+ _s(o, "info", t);
60
60
  },
61
61
  error: (...t) => {
62
- ws(o, "error", t);
62
+ _s(o, "error", t);
63
63
  },
64
64
  warn: (...t) => {
65
- ws(o, "warn", t);
65
+ _s(o, "warn", t);
66
66
  },
67
67
  ok: (...t) => {
68
- ws(o, "ok", t);
68
+ _s(o, "ok", t);
69
69
  },
70
70
  table: (t, r) => {
71
71
  console.table(t, r);
@@ -230,7 +230,7 @@ class b5 extends Ot {
230
230
  this.user = null, this.msg = { type: "info", text: "", visible: !1 }, this.emit("auth:logout");
231
231
  }
232
232
  }
233
- const _s = Mr("bus");
233
+ const Ls = Mr("bus");
234
234
  class k5 extends Ot {
235
235
  handlers = /* @__PURE__ */ new Map();
236
236
  on(t, r) {
@@ -241,15 +241,15 @@ class k5 extends Ot {
241
241
  emit(t, ...r) {
242
242
  const n = this.handlers.get(t);
243
243
  if (!n || n.size === 0) {
244
- !t.startsWith("hover:") && !t.startsWith("keys:") && _s.warn(`No listeners for "${t}"`);
244
+ !t.startsWith("hover:") && !t.startsWith("keys:") && Ls.warn(`No listeners for "${t}"`);
245
245
  return;
246
246
  }
247
247
  const i = r[0];
248
- ["keys:pressed"].includes(t) || _s.info(`${t}`, i), n.forEach((s) => {
248
+ ["keys:pressed"].includes(t) || Ls.info(`${t}`, i), n.forEach((s) => {
249
249
  try {
250
250
  s(i);
251
251
  } catch (a) {
252
- _s.error(`Error in handler for "${t}":`, a);
252
+ Ls.error(`Error in handler for "${t}":`, a);
253
253
  }
254
254
  });
255
255
  }
@@ -257,11 +257,11 @@ class k5 extends Ot {
257
257
  return (this.handlers.get(t)?.size ?? 0) > 0;
258
258
  }
259
259
  debug() {
260
- _s.info("Registered events:", Array.from(this.handlers.entries()).map(([t, r]) => `${t}: ${r.size}`));
260
+ Ls.info("Registered events:", Array.from(this.handlers.entries()).map(([t, r]) => `${t}: ${r.size}`));
261
261
  }
262
262
  }
263
263
  const y5 = Mr("session"), j1 = "okno-github-token", $a = "okno-github-refresh", Js = "okno-github-expires", x5 = 300 * 1e3;
264
- function Ni() {
264
+ function Hi() {
265
265
  try {
266
266
  return localStorage.getItem(j1);
267
267
  } catch {
@@ -302,7 +302,7 @@ function Xl() {
302
302
  }
303
303
  })(), ki);
304
304
  }
305
- const Wu = typeof window < "u" ? window.location.origin : "", hl = `okno-current-repo:${Wu}`, xd = "okno-github-token", Cd = 300 * 1e3, Ls = `okno-repo-token:${Wu}`;
305
+ const Wu = typeof window < "u" ? window.location.origin : "", hl = `okno-current-repo:${Wu}`, xd = "okno-github-token", Cd = 300 * 1e3, Ss = `okno-repo-token:${Wu}`;
306
306
  if (typeof window < "u")
307
307
  try {
308
308
  localStorage.removeItem("okno-current-repo"), sessionStorage.removeItem("okno-repo-token");
@@ -438,7 +438,7 @@ let _5 = class extends Ot {
438
438
  setCurrentRepo(t) {
439
439
  this.currentRepo = t, this.projectId = null, this.repoToken = null, this.repoTokenInflight = null;
440
440
  try {
441
- !this.isDev && t ? localStorage.setItem(hl, JSON.stringify(t)) : localStorage.removeItem(hl), sessionStorage.removeItem(Ls);
441
+ !this.isDev && t ? localStorage.setItem(hl, JSON.stringify(t)) : localStorage.removeItem(hl), sessionStorage.removeItem(Ss);
442
442
  } catch {
443
443
  }
444
444
  this.emit("project:repo-changed", { repo: t });
@@ -493,7 +493,7 @@ let _5 = class extends Ot {
493
493
  * switch within the same tab session. */
494
494
  restoreTokenFromSession(t) {
495
495
  try {
496
- const r = sessionStorage.getItem(Ls);
496
+ const r = sessionStorage.getItem(Ss);
497
497
  if (!r) return !1;
498
498
  const n = JSON.parse(r);
499
499
  return n.repoKey !== t || Date.now() > n.expiresAt - Cd ? !1 : (this.repoToken = n, !0);
@@ -504,7 +504,7 @@ let _5 = class extends Ot {
504
504
  persistTokenToSession() {
505
505
  if (this.repoToken)
506
506
  try {
507
- sessionStorage.setItem(Ls, JSON.stringify(this.repoToken));
507
+ sessionStorage.setItem(Ss, JSON.stringify(this.repoToken));
508
508
  } catch {
509
509
  }
510
510
  }
@@ -516,7 +516,7 @@ let _5 = class extends Ot {
516
516
  invalidateRepoToken() {
517
517
  this.repoToken = null, this.repoTokenInflight = null;
518
518
  try {
519
- sessionStorage.removeItem(Ls);
519
+ sessionStorage.removeItem(Ss);
520
520
  } catch {
521
521
  }
522
522
  }
@@ -706,7 +706,7 @@ class P5 extends Ot {
706
706
  return !!this.modules.auth.user || this.modules.project.demo;
707
707
  }
708
708
  start() {
709
- this.viewport = { w: window.innerWidth, h: window.innerHeight }, !Ni() && !this.modules.project.demo && (this.opened = !1), this.modules.keys.bind("e", () => {
709
+ this.viewport = { w: window.innerWidth, h: window.innerHeight }, !Hi() && !this.modules.project.demo && (this.opened = !1), this.modules.keys.bind("e", () => {
710
710
  if (this.authed && !this.modules.keys.hasFocus()) {
711
711
  if (!this.opened) {
712
712
  this.open();
@@ -756,7 +756,7 @@ class O5 extends Ot {
756
756
  this.error = t, this.emit("status:error", { error: t });
757
757
  }
758
758
  }
759
- function Xi(o) {
759
+ function Ji(o) {
760
760
  const t = o.currentRepo;
761
761
  if (!t) throw new Error("No current repo selected");
762
762
  return `https://api.github.com/repos/${t.owner}/${t.repo}`;
@@ -773,7 +773,7 @@ async function _d(o, t = "application/vnd.github+json") {
773
773
  "X-GitHub-Api-Version": "2022-11-28"
774
774
  };
775
775
  }
776
- async function Ji(o, t, r) {
776
+ async function Qi(o, t, r) {
777
777
  const n = await _d(o, r), i = await fetch(t, { headers: n, cache: "no-store" });
778
778
  if (i.status !== 401) return i;
779
779
  o.invalidateRepoToken();
@@ -786,31 +786,31 @@ function T5(o) {
786
786
  return new TextDecoder("utf-8").decode(r);
787
787
  }
788
788
  async function ja(o) {
789
- const t = `${Xi(o)}/git/trees/${E5(o)}?recursive=1`, r = await Ji(o, t, "application/vnd.github+json");
789
+ const t = `${Ji(o)}/git/trees/${E5(o)}?recursive=1`, r = await Qi(o, t, "application/vnd.github+json");
790
790
  if (!r.ok) throw new Error(`tree ${r.status}`);
791
791
  return r.json();
792
792
  }
793
793
  async function R1(o, t) {
794
- const r = `${Xi(o)}/git/blobs/${t}`, n = await Ji(o, r, "application/vnd.github+json");
794
+ const r = `${Ji(o)}/git/blobs/${t}`, n = await Qi(o, r, "application/vnd.github+json");
795
795
  if (!n.ok) throw new Error(`blob ${t} ${n.status}`);
796
796
  const i = await n.json();
797
797
  return i.encoding === "base64" ? T5(i.content) : i.content;
798
798
  }
799
799
  async function Ld(o, t) {
800
- const r = `${Xi(o)}/git/blobs/${t}`, n = await Ji(o, r, "application/vnd.github.raw");
800
+ const r = `${Ji(o)}/git/blobs/${t}`, n = await Qi(o, r, "application/vnd.github.raw");
801
801
  if (!n.ok) throw new Error(`blob ${t} ${n.status}`);
802
802
  return n.blob();
803
803
  }
804
- async function $i(o, t) {
804
+ async function ji(o, t) {
805
805
  return (await ja(o)).tree.find((n) => n.type === "blob" && n.path === t)?.sha;
806
806
  }
807
807
  async function A5(o) {
808
- const t = `${Xi(o)}/branches?per_page=100`, r = await Ji(o, t, "application/vnd.github+json");
808
+ const t = `${Ji(o)}/branches?per_page=100`, r = await Qi(o, t, "application/vnd.github+json");
809
809
  if (!r.ok) throw new Error(`branches ${r.status}`);
810
810
  return await r.json();
811
811
  }
812
812
  async function I5(o, t, r) {
813
- const n = `${Xi(o)}/compare/${encodeURIComponent(t)}...${encodeURIComponent(r)}`, i = await Ji(o, n, "application/vnd.github+json");
813
+ const n = `${Ji(o)}/compare/${encodeURIComponent(t)}...${encodeURIComponent(r)}`, i = await Qi(o, n, "application/vnd.github+json");
814
814
  if (!i.ok) throw new Error(`compare ${i.status}`);
815
815
  const s = await i.json();
816
816
  return {
@@ -1014,7 +1014,7 @@ function z5(o, t) {
1014
1014
  function Zu(o, t) {
1015
1015
  return o === "" || o == null ? "empty" : JSON.stringify(o) !== JSON.stringify(t) ? "modified" : "clean";
1016
1016
  }
1017
- function Qi(o, t, r = {}) {
1017
+ function es(o, t, r = {}) {
1018
1018
  if (!o?.fields) return [];
1019
1019
  const n = [], i = (s, a, l, c, u) => ({
1020
1020
  kind: "field",
@@ -1036,7 +1036,7 @@ function Qi(o, t, r = {}) {
1036
1036
  return n;
1037
1037
  }
1038
1038
  function Sd(o, t, r = {}) {
1039
- return Qi(o, t, r).filter((n) => n.kind === "field").map((n) => n.item);
1039
+ return es(o, t, r).filter((n) => n.kind === "field").map((n) => n.item);
1040
1040
  }
1041
1041
  function z1(o, t) {
1042
1042
  const r = t?.draft ?? t?.data ?? {}, n = ct(r);
@@ -1051,7 +1051,7 @@ function z1(o, t) {
1051
1051
  i in n || (n[i] = "");
1052
1052
  return n;
1053
1053
  }
1054
- function Ss(o, t) {
1054
+ function Ms(o, t) {
1055
1055
  const r = new Map(t.map((s) => [s.slug, s.name])), n = /* @__PURE__ */ new Set(), i = [];
1056
1056
  for (const s of o ?? []) {
1057
1057
  if (typeof s == "string") {
@@ -1355,7 +1355,7 @@ let N5 = class extends Ot {
1355
1355
  addModal: "new-page",
1356
1356
  kind: "pages",
1357
1357
  items: r,
1358
- nodes: Ss(t?.pages, r)
1358
+ nodes: Ms(t?.pages, r)
1359
1359
  },
1360
1360
  {
1361
1361
  id: "group-collections",
@@ -1364,7 +1364,7 @@ let N5 = class extends Ot {
1364
1364
  addModal: "new-collection",
1365
1365
  kind: "collections",
1366
1366
  items: n,
1367
- nodes: Ss(t?.collections, n)
1367
+ nodes: Ms(t?.collections, n)
1368
1368
  },
1369
1369
  {
1370
1370
  id: "group-globals",
@@ -1373,7 +1373,7 @@ let N5 = class extends Ot {
1373
1373
  addModal: "new-global",
1374
1374
  kind: "globals",
1375
1375
  items: i,
1376
- nodes: Ss(t?.globals, i)
1376
+ nodes: Ms(t?.globals, i)
1377
1377
  },
1378
1378
  {
1379
1379
  id: "group-blocks",
@@ -1382,7 +1382,7 @@ let N5 = class extends Ot {
1382
1382
  addModal: "new-block",
1383
1383
  kind: "blocks",
1384
1384
  items: s,
1385
- nodes: Ss(t?.blocks, s)
1385
+ nodes: Ms(t?.blocks, s)
1386
1386
  }
1387
1387
  ];
1388
1388
  });
@@ -1659,7 +1659,7 @@ function Ra(o) {
1659
1659
  return n ? { token: n[1] } : { literal: r };
1660
1660
  });
1661
1661
  }
1662
- function Ms(o) {
1662
+ function Ds(o) {
1663
1663
  return Ra(o).filter((t) => t.token).map((t) => t.token);
1664
1664
  }
1665
1665
  function Ku(o) {
@@ -3929,7 +3929,7 @@ class k0 {
3929
3929
  this.cleanupEffect = e.effect_root(() => {
3930
3930
  e.user_effect(() => {
3931
3931
  localStorage.setItem(rh, this.mode), this.apply();
3932
- }), e.user_effect(() => Ds(nh, this.hueOverride === null ? null : String(this.hueOverride))), e.user_effect(() => Ds(Ad, vl(this.reduceTransparencyOverride))), e.user_effect(() => Ds(Id, vl(this.compactStructureOverride))), e.user_effect(() => Ds($d, vl(this.minimizeOnClickAwayOverride))), e.user_effect(() => {
3932
+ }), e.user_effect(() => Ps(nh, this.hueOverride === null ? null : String(this.hueOverride))), e.user_effect(() => Ps(Ad, vl(this.reduceTransparencyOverride))), e.user_effect(() => Ps(Id, vl(this.compactStructureOverride))), e.user_effect(() => Ps($d, vl(this.minimizeOnClickAwayOverride))), e.user_effect(() => {
3933
3933
  this.hue, this.applyHue();
3934
3934
  }), e.user_effect(() => {
3935
3935
  this.reduceTransparency, this.applyRT();
@@ -3977,7 +3977,7 @@ class k0 {
3977
3977
  function vl(o) {
3978
3978
  return o === null ? null : o ? "1" : "0";
3979
3979
  }
3980
- function Ds(o, t) {
3980
+ function Ps(o, t) {
3981
3981
  typeof localStorage > "u" || (t === null ? localStorage.removeItem(o) : localStorage.setItem(o, t));
3982
3982
  }
3983
3983
  let y0 = class extends Ot {
@@ -5148,14 +5148,14 @@ function mt(o, t) {
5148
5148
  function vn(we) {
5149
5149
  return Math.max(f().w, Math.min(t.maxSize?.w ?? 1 / 0, we));
5150
5150
  }
5151
- function ys(we) {
5151
+ function xs(we) {
5152
5152
  return Math.max(f().h, Math.min(t.maxSize?.h ?? 1 / 0, we));
5153
5153
  }
5154
5154
  function jr(we) {
5155
5155
  if (!e.get(Ie)) return;
5156
5156
  const Ne = we.clientX - e.get(Ie).x, bt = we.clientY - e.get(Ie).y, { dir: Ft, w: gt, h: vt, px: ar, py: ro } = e.get(Ie);
5157
- let Yr = gt, Dn = vt, xs = ar, Cs = ro;
5158
- Ft.includes("e") && (Yr = vn(gt + Ne)), Ft.includes("s") && (Dn = ys(vt + bt)), Ft.includes("w") && (Yr = vn(gt - Ne), xs = ar + (gt - Yr)), Ft.includes("n") && (Dn = ys(vt - bt), Cs = Math.max(0, ro + (vt - Dn))), Me.current = { w: Yr, h: Dn }, ye.current = { x: xs, y: Cs };
5157
+ let Yr = gt, Dn = vt, Cs = ar, ws = ro;
5158
+ Ft.includes("e") && (Yr = vn(gt + Ne)), Ft.includes("s") && (Dn = xs(vt + bt)), Ft.includes("w") && (Yr = vn(gt - Ne), Cs = ar + (gt - Yr)), Ft.includes("n") && (Dn = xs(vt - bt), ws = Math.max(0, ro + (vt - Dn))), Me.current = { w: Yr, h: Dn }, ye.current = { x: Cs, y: ws };
5159
5159
  }
5160
5160
  function mr() {
5161
5161
  e.set(Ie, null), document.removeEventListener("pointermove", jr), document.removeEventListener("pointerup", mr), te && ce();
@@ -5266,7 +5266,7 @@ function mt(o, t) {
5266
5266
  });
5267
5267
  }
5268
5268
  e.append(xt, Nt);
5269
- }, xs = (xt) => {
5269
+ }, Cs = (xt) => {
5270
5270
  var Nt = n4(), nr = e.child(Nt), zr = e.child(nr), Dr = e.child(zr);
5271
5271
  {
5272
5272
  var Pn = (He) => {
@@ -5378,7 +5378,7 @@ function mt(o, t) {
5378
5378
  });
5379
5379
  }
5380
5380
  e.reset(Wt), e.reset(Nt), e.template_effect(() => e.set_style(nr, `width: ${ht.current ?? ""}px`)), e.delegated("pointerdown", zr, ze), e.append(xt, Nt);
5381
- }, Cs = (xt) => {
5381
+ }, ws = (xt) => {
5382
5382
  var Nt = s4(), nr = e.first_child(Nt);
5383
5383
  {
5384
5384
  let Pr = e.derived(() => e.get(Te) ? Je : void 0), Fr = e.derived(() => w() ? Fe : void 0);
@@ -5447,7 +5447,7 @@ function mt(o, t) {
5447
5447
  e.append(xt, Nt);
5448
5448
  };
5449
5449
  e.if(Yr, (xt) => {
5450
- B() ? xt(Dn) : t.sidebar ? xt(xs, 1) : xt(Cs, -1);
5450
+ B() ? xt(Dn) : t.sidebar ? xt(Cs, 1) : xt(ws, -1);
5451
5451
  });
5452
5452
  }
5453
5453
  var Jp = e.sibling(Yr, 2);
@@ -6008,7 +6008,7 @@ function Xe(o, t) {
6008
6008
  function O4(o) {
6009
6009
  return typeof o == "function";
6010
6010
  }
6011
- function es(o) {
6011
+ function ts(o) {
6012
6012
  return o !== null && typeof o == "object";
6013
6013
  }
6014
6014
  const E4 = ["string", "number", "bigint", "boolean"];
@@ -6034,18 +6034,18 @@ function ne(o, t) {
6034
6034
  }
6035
6035
  };
6036
6036
  }
6037
- function ts(o) {
6038
- return es(o) && Qo in o;
6037
+ function rs(o) {
6038
+ return ts(o) && Qo in o;
6039
6039
  }
6040
6040
  function H1(o) {
6041
- return ts(o) && Na in o;
6041
+ return rs(o) && Na in o;
6042
6042
  }
6043
6043
  function Mh(o) {
6044
- return ts(o) ? o : O4(o) ? ne(o) : hr(o);
6044
+ return rs(o) ? o : O4(o) ? ne(o) : hr(o);
6045
6045
  }
6046
6046
  function T4(o) {
6047
6047
  return Object.entries(o).reduce(
6048
- (t, [r, n]) => ts(n) ? (H1(n) ? Object.defineProperty(t, r, {
6048
+ (t, [r, n]) => rs(n) ? (H1(n) ? Object.defineProperty(t, r, {
6049
6049
  get() {
6050
6050
  return n.current;
6051
6051
  },
@@ -6099,7 +6099,7 @@ Mo.from = Mh;
6099
6099
  Mo.with = ne;
6100
6100
  Mo.flatten = T4;
6101
6101
  Mo.readonly = A4;
6102
- Mo.isBox = ts;
6102
+ Mo.isBox = rs;
6103
6103
  Mo.isWritableBox = H1;
6104
6104
  function Dh(...o) {
6105
6105
  return function(t) {
@@ -6249,7 +6249,7 @@ function X4(o) {
6249
6249
  function J4(o) {
6250
6250
  return o ? o[0].toLowerCase() + o.slice(1) : "";
6251
6251
  }
6252
- function Ti(o) {
6252
+ function Ai(o) {
6253
6253
  if (!o)
6254
6254
  return {};
6255
6255
  const t = {};
@@ -6300,7 +6300,7 @@ function t8(o) {
6300
6300
  return Object.keys(o).map((t) => `${e8(t)}: ${o[t]};`).join(`
6301
6301
  `);
6302
6302
  }
6303
- function rs(o = {}) {
6303
+ function ns(o = {}) {
6304
6304
  return t8(o).replace(`
6305
6305
  `, " ");
6306
6306
  }
@@ -6432,13 +6432,13 @@ function Be(...o) {
6432
6432
  if (u && d)
6433
6433
  t[i] = { ...s, ...a };
6434
6434
  else if (u && h) {
6435
- const p = Ti(a);
6435
+ const p = Ai(a);
6436
6436
  t[i] = { ...s, ...p };
6437
6437
  } else if (f && d) {
6438
- const p = Ti(s);
6438
+ const p = Ai(s);
6439
6439
  t[i] = { ...p, ...a };
6440
6440
  } else if (f && h) {
6441
- const p = Ti(s), g = Ti(a);
6441
+ const p = Ai(s), g = Ai(a);
6442
6442
  t[i] = { ...p, ...g };
6443
6443
  } else u ? t[i] = s : d ? t[i] = a : f ? t[i] = s : h && (t[i] = a);
6444
6444
  } else
@@ -6450,7 +6450,7 @@ function Be(...o) {
6450
6450
  }
6451
6451
  }
6452
6452
  }
6453
- return typeof t.style == "object" && (t.style = rs(t.style).replaceAll(`
6453
+ return typeof t.style == "object" && (t.style = ns(t.style).replaceAll(`
6454
6454
  `, " ")), t.hidden === !1 && (t.hidden = void 0, delete t.hidden), t.disabled === !1 && (t.disabled = void 0, delete t.disabled), t;
6455
6455
  }
6456
6456
  const Eh = {
@@ -6464,7 +6464,7 @@ const Eh = {
6464
6464
  whiteSpace: "nowrap",
6465
6465
  borderWidth: "0",
6466
6466
  transform: "translateX(-100%)"
6467
- }, i8 = rs(Eh);
6467
+ }, i8 = ns(Eh);
6468
6468
  function Kr(o) {
6469
6469
  e.user_effect(() => () => {
6470
6470
  o();
@@ -6481,16 +6481,16 @@ function xr(o) {
6481
6481
  }
6482
6482
  const a8 = 1, l8 = 9, c8 = 11;
6483
6483
  function i1(o) {
6484
- return es(o) && o.nodeType === a8 && typeof o.nodeName == "string";
6484
+ return ts(o) && o.nodeType === a8 && typeof o.nodeName == "string";
6485
6485
  }
6486
6486
  function Th(o) {
6487
- return es(o) && o.nodeType === l8;
6487
+ return ts(o) && o.nodeType === l8;
6488
6488
  }
6489
6489
  function d8(o) {
6490
- return es(o) && o.constructor?.name === "VisualViewport";
6490
+ return ts(o) && o.constructor?.name === "VisualViewport";
6491
6491
  }
6492
6492
  function u8(o) {
6493
- return es(o) && o.nodeType !== void 0;
6493
+ return ts(o) && o.nodeType !== void 0;
6494
6494
  }
6495
6495
  function Ah(o) {
6496
6496
  return u8(o) && o.nodeType === c8 && "host" in o;
@@ -6553,7 +6553,7 @@ class Jn {
6553
6553
  }
6554
6554
  function ut(o, t) {
6555
6555
  return {
6556
- [a5()]: (r) => ts(o) ? (o.current = r, Ue(() => t?.(r)), () => {
6556
+ [a5()]: (r) => rs(o) ? (o.current = r, Ue(() => t?.(r)), () => {
6557
6557
  "isConnected" in r && r.isConnected || (o.current = null, t?.(null));
6558
6558
  }) : (o(r), Ue(() => t?.(r)), () => {
6559
6559
  "isConnected" in r && r.isConnected || (o(null), t?.(null));
@@ -6770,7 +6770,7 @@ class y8 {
6770
6770
  return `[${this.getAttr(t, r)}]`;
6771
6771
  }
6772
6772
  }
6773
- function ns(o) {
6773
+ function os(o) {
6774
6774
  const t = new y8(o);
6775
6775
  return {
6776
6776
  ...t.attrs,
@@ -6778,7 +6778,7 @@ function ns(o) {
6778
6778
  getAttr: t.getAttr
6779
6779
  };
6780
6780
  }
6781
- const wn = "ArrowDown", un = "ArrowLeft", hn = "ArrowRight", Wn = "ArrowUp", jh = "Backspace", Rh = "End", os = "Enter", x8 = "Escape", zh = "Home", C8 = "PageDown", w8 = "PageUp", Do = " ", is = "Tab", s1 = "a", Fh = "P", a1 = "A", _8 = "p";
6781
+ const wn = "ArrowDown", un = "ArrowLeft", hn = "ArrowRight", Wn = "ArrowUp", jh = "Backspace", Rh = "End", is = "Enter", x8 = "Escape", zh = "Home", C8 = "PageDown", w8 = "PageUp", Do = " ", ss = "Tab", s1 = "a", Fh = "P", a1 = "A", _8 = "p";
6782
6782
  function L8(o) {
6783
6783
  return window.getComputedStyle(o).getPropertyValue("direction");
6784
6784
  }
@@ -7123,7 +7123,7 @@ function V8(o, t) {
7123
7123
  const { clientX: r, clientY: n } = o, i = t.getBoundingClientRect();
7124
7124
  return r < i.left || r > i.right || n < i.top || n > i.bottom;
7125
7125
  }
7126
- const l1 = [os, Do], B8 = [wn, w8, zh], Bh = [Wn, C8, Rh], Z8 = [...B8, ...Bh], U8 = {
7126
+ const l1 = [is, Do], B8 = [wn, w8, zh], Bh = [Wn, C8, Rh], Z8 = [...B8, ...Bh], U8 = {
7127
7127
  ltr: [...l1, hn],
7128
7128
  rtl: [...l1, un]
7129
7129
  }, K8 = {
@@ -7380,7 +7380,7 @@ var Zh = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert]
7380
7380
  throw new Error("No node provided");
7381
7381
  return xo.call(t, c6) === !1 ? !1 : ua(r, t);
7382
7382
  };
7383
- function ji() {
7383
+ function Ri() {
7384
7384
  return {
7385
7385
  getShadowRoot: !0,
7386
7386
  displayCheck: (
@@ -7392,21 +7392,21 @@ function ji() {
7392
7392
  };
7393
7393
  }
7394
7394
  function d6(o, t) {
7395
- if (!Wa(o, ji()))
7395
+ if (!Wa(o, Ri()))
7396
7396
  return u6(o, t);
7397
- const r = Xn(o), n = Jh(r.body, ji());
7397
+ const r = Xn(o), n = Jh(r.body, Ri());
7398
7398
  t === "prev" && n.reverse();
7399
7399
  const i = n.indexOf(o);
7400
7400
  return i === -1 ? r.body : n.slice(i + 1)[0];
7401
7401
  }
7402
7402
  function u6(o, t) {
7403
7403
  const r = Xn(o);
7404
- if (!ef(o, ji()))
7404
+ if (!ef(o, Ri()))
7405
7405
  return r.body;
7406
- const n = Qh(r.body, ji());
7406
+ const n = Qh(r.body, Ri());
7407
7407
  t === "prev" && n.reverse();
7408
7408
  const i = n.indexOf(o);
7409
- return i === -1 ? r.body : n.slice(i + 1).find((a) => Wa(a, ji())) ?? r.body;
7409
+ return i === -1 ? r.body : n.slice(i + 1).find((a) => Wa(a, Ri())) ?? r.body;
7410
7410
  }
7411
7411
  function h6(o, t) {
7412
7412
  const r = [];
@@ -7480,7 +7480,7 @@ class g6 {
7480
7480
  return this.#t.current;
7481
7481
  }
7482
7482
  }
7483
- const Z1 = "data-context-menu-trigger", v6 = "data-context-menu-content", rf = new vr("Menu.Root"), Co = new vr("Menu.Root | Menu.Sub"), U1 = new vr("Menu.Content"), K1 = new W8("bitsmenuopen", { bubbles: !1, cancelable: !0 }), m6 = ns({
7483
+ const Z1 = "data-context-menu-trigger", v6 = "data-context-menu-content", rf = new vr("Menu.Root"), Co = new vr("Menu.Root | Menu.Sub"), U1 = new vr("Menu.Content"), K1 = new W8("bitsmenuopen", { bubbles: !1, cancelable: !0 }), m6 = os({
7484
7484
  component: "menu",
7485
7485
  parts: [
7486
7486
  "trigger",
@@ -7833,9 +7833,9 @@ class Va {
7833
7833
  }
7834
7834
  getBitsAttr = (t) => m6.getAttr(t, this.opts.variant.current);
7835
7835
  }
7836
- class ss {
7836
+ class as {
7837
7837
  static create(t, r) {
7838
- return Co.set(new ss(t, r, null));
7838
+ return Co.set(new as(t, r, null));
7839
7839
  }
7840
7840
  opts;
7841
7841
  root;
@@ -7878,9 +7878,9 @@ class ss {
7878
7878
  this.opts.open.current = !1;
7879
7879
  }
7880
7880
  }
7881
- class as {
7881
+ class ls {
7882
7882
  static create(t) {
7883
- return U1.set(new as(t, Co.get()));
7883
+ return U1.set(new ls(t, Co.get()));
7884
7884
  }
7885
7885
  opts;
7886
7886
  parentMenu;
@@ -7986,7 +7986,7 @@ class as {
7986
7986
  }
7987
7987
  onkeydown(t) {
7988
7988
  if (t.defaultPrevented) return;
7989
- if (t.key === is) {
7989
+ if (t.key === ss) {
7990
7990
  this.handleTabKeyDown(t);
7991
7991
  return;
7992
7992
  }
@@ -8296,7 +8296,7 @@ class X1 {
8296
8296
  };
8297
8297
  onkeydown = (t) => {
8298
8298
  if (!this.opts.disabled.current) {
8299
- if (t.key === Do || t.key === os) {
8299
+ if (t.key === Do || t.key === is) {
8300
8300
  this.parentMenu.toggleOpen(), t.preventDefault();
8301
8301
  return;
8302
8302
  }
@@ -8395,7 +8395,7 @@ class J1 {
8395
8395
  class _6 {
8396
8396
  static create(t) {
8397
8397
  const r = Co.get();
8398
- return Co.set(new ss(t, r.root, r));
8398
+ return Co.set(new as(t, r.root, r));
8399
8399
  }
8400
8400
  }
8401
8401
  globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
@@ -8784,11 +8784,11 @@ class nc {
8784
8784
  const i2 = (o) => o.style.userSelect || o.style.webkitUserSelect;
8785
8785
  function T6(o, t) {
8786
8786
  const r = i2(t), n = i2(o);
8787
- return Ps(t, "none"), Ps(o, "text"), () => {
8788
- Ps(t, r), Ps(o, n);
8787
+ return Os(t, "none"), Os(o, "text"), () => {
8788
+ Os(t, r), Os(o, n);
8789
8789
  };
8790
8790
  }
8791
- function Ps(o, t) {
8791
+ function Os(o, t) {
8792
8792
  o.style.userSelect = t, o.style.webkitUserSelect = t;
8793
8793
  }
8794
8794
  function A6(o) {
@@ -8834,7 +8834,7 @@ class $6 {
8834
8834
  }
8835
8835
  }
8836
8836
  const Bs = new s5();
8837
- let Os = e.state(null), yl = null, Ci = null, wi = !1;
8837
+ let Es = e.state(null), yl = null, Ci = null, wi = !1;
8838
8838
  const s2 = ne(() => {
8839
8839
  for (const o of Bs.values())
8840
8840
  if (o) return !0;
@@ -8843,7 +8843,7 @@ const s2 = ne(() => {
8843
8843
  let xl = null;
8844
8844
  const j6 = new $6(() => {
8845
8845
  function o() {
8846
- document.body.setAttribute("style", e.get(Os) ?? ""), document.body.style.removeProperty("--scrollbar-width"), Jd && yl?.(), e.set(Os, null);
8846
+ document.body.setAttribute("style", e.get(Es) ?? ""), document.body.style.removeProperty("--scrollbar-width"), Jd && yl?.(), e.set(Es, null);
8847
8847
  }
8848
8848
  function t() {
8849
8849
  Ci !== null && (window.clearTimeout(Ci), Ci = null);
@@ -8856,7 +8856,7 @@ const j6 = new $6(() => {
8856
8856
  Ci = window.setTimeout(l, c);
8857
8857
  }
8858
8858
  function n() {
8859
- e.get(Os) === null && Bs.size === 0 && !wi && e.set(Os, document.body.getAttribute("style"), !0);
8859
+ e.get(Es) === null && Bs.size === 0 && !wi && e.set(Es, document.body.getAttribute("style"), !0);
8860
8860
  }
8861
8861
  return it(() => s2.current, () => {
8862
8862
  if (!s2.current) return;
@@ -8917,7 +8917,7 @@ function Cl(o, t) {
8917
8917
  return o - t * Math.floor(o / t);
8918
8918
  }
8919
8919
  const sf = 1721426;
8920
- function Es(o, t, r, n) {
8920
+ function Ts(o, t, r, n) {
8921
8921
  t = oc(o, t);
8922
8922
  let i = t - 1, s = -2;
8923
8923
  return r <= 2 ? s = 0 : Zs(t) && (s = -1), sf - 1 + 365 * i + Math.floor(i / 4) - Math.floor(i / 100) + Math.floor(i / 400) + Math.floor((367 * r - 362) / 12 + s + n);
@@ -8967,13 +8967,13 @@ const F6 = {
8967
8967
  };
8968
8968
  class ei {
8969
8969
  fromJulianDay(t) {
8970
- let r = t, n = r - sf, i = Math.floor(n / 146097), s = Cl(n, 146097), a = Math.floor(s / 36524), l = Cl(s, 36524), c = Math.floor(l / 1461), u = Cl(l, 1461), d = Math.floor(u / 365), f = i * 400 + a * 100 + c * 4 + d + (a !== 4 && d !== 4 ? 1 : 0), [h, p] = z6(f), g = r - Es(h, p, 1, 1), v = 2;
8971
- r < Es(h, p, 3, 1) ? v = 0 : Zs(p) && (v = 1);
8972
- let m = Math.floor(((g + v) * 12 + 373) / 367), b = r - Es(h, p, m, 1) + 1;
8970
+ let r = t, n = r - sf, i = Math.floor(n / 146097), s = Cl(n, 146097), a = Math.floor(s / 36524), l = Cl(s, 36524), c = Math.floor(l / 1461), u = Cl(l, 1461), d = Math.floor(u / 365), f = i * 400 + a * 100 + c * 4 + d + (a !== 4 && d !== 4 ? 1 : 0), [h, p] = z6(f), g = r - Ts(h, p, 1, 1), v = 2;
8971
+ r < Ts(h, p, 3, 1) ? v = 0 : Zs(p) && (v = 1);
8972
+ let m = Math.floor(((g + v) * 12 + 373) / 367), b = r - Ts(h, p, m, 1) + 1;
8973
8973
  return new Zn(h, p, m, b);
8974
8974
  }
8975
8975
  toJulianDay(t) {
8976
- return Es(t.era, t.year, t.month, t.day);
8976
+ return Ts(t.era, t.year, t.month, t.day);
8977
8977
  }
8978
8978
  getDaysInMonth(t) {
8979
8979
  return F6[Zs(t.year) ? "leapyear" : "standard"][t.month - 1];
@@ -9209,7 +9209,7 @@ function df(o, t, r, n, i, s, a) {
9209
9209
  let l = /* @__PURE__ */ new Date();
9210
9210
  return l.setUTCHours(n, i, s, a), l.setUTCFullYear(o, t - 1, r), l.getTime();
9211
9211
  }
9212
- function Hi(o, t) {
9212
+ function Wi(o, t) {
9213
9213
  if (t === "UTC") return 0;
9214
9214
  if (o > 0 && t === zn() && !cf()) return new Date(o).getTimezoneOffset() * -6e4;
9215
9215
  let { year: r, month: n, day: i, hour: s, minute: a, second: l } = uf(o, t);
@@ -9243,7 +9243,7 @@ function uf(o, t) {
9243
9243
  }
9244
9244
  const ha = 864e5;
9245
9245
  function q6(o, t) {
9246
- let r = Vn(o), n = r - Hi(r - ha, t), i = r - Hi(r + ha, t);
9246
+ let r = Vn(o), n = r - Wi(r - ha, t), i = r - Wi(r + ha, t);
9247
9247
  return hf(o, t, n, i);
9248
9248
  }
9249
9249
  function hf(o, t, r, n) {
@@ -9266,7 +9266,7 @@ function tn(o, t, r = "compatible") {
9266
9266
  let c = /* @__PURE__ */ new Date(), u = oc(n.era, n.year);
9267
9267
  return c.setFullYear(u, n.month - 1, n.day), c.setHours(n.hour, n.minute, n.second, n.millisecond), c.getTime();
9268
9268
  }
9269
- let i = Vn(n), s = Hi(i - ha, t), a = Hi(i + ha, t), l = hf(n, t, i - s, i - a);
9269
+ let i = Vn(n), s = Wi(i - ha, t), a = Wi(i + ha, t), l = hf(n, t, i - s, i - a);
9270
9270
  if (l.length === 1) return l[0];
9271
9271
  if (l.length > 1) switch (r) {
9272
9272
  // 'compatible' means 'earlier' for "fall back" transitions
@@ -9293,7 +9293,7 @@ function ff(o, t, r = "compatible") {
9293
9293
  return new Date(tn(o, t, r));
9294
9294
  }
9295
9295
  function nn(o, t) {
9296
- let r = Hi(o, t), n = new Date(o + r), i = n.getUTCFullYear(), s = n.getUTCMonth() + 1, a = n.getUTCDate(), l = n.getUTCHours(), c = n.getUTCMinutes(), u = n.getUTCSeconds(), d = n.getUTCMilliseconds();
9296
+ let r = Wi(o, t), n = new Date(o + r), i = n.getUTCFullYear(), s = n.getUTCMonth() + 1, a = n.getUTCDate(), l = n.getUTCHours(), c = n.getUTCMinutes(), u = n.getUTCSeconds(), d = n.getUTCMilliseconds();
9297
9297
  return new cn(i < 1 ? "BC" : "AD", i < 1 ? -i + 1 : i, s, a, t, r, l, c, u, d);
9298
9298
  }
9299
9299
  function J6(o) {
@@ -9376,14 +9376,14 @@ function fa(o, t) {
9376
9376
  return t.hour != null && (r.hour = t.hour), t.minute != null && (r.minute = t.minute), t.second != null && (r.second = t.second), t.millisecond != null && (r.millisecond = t.millisecond), ov(r), r;
9377
9377
  }
9378
9378
  function nv(o) {
9379
- o.second += Math.floor(o.millisecond / 1e3), o.millisecond = Ts(o.millisecond, 1e3), o.minute += Math.floor(o.second / 60), o.second = Ts(o.second, 60), o.hour += Math.floor(o.minute / 60), o.minute = Ts(o.minute, 60);
9379
+ o.second += Math.floor(o.millisecond / 1e3), o.millisecond = As(o.millisecond, 1e3), o.minute += Math.floor(o.second / 60), o.second = As(o.second, 60), o.hour += Math.floor(o.minute / 60), o.minute = As(o.minute, 60);
9380
9380
  let t = Math.floor(o.hour / 24);
9381
- return o.hour = Ts(o.hour, 24), t;
9381
+ return o.hour = As(o.hour, 24), t;
9382
9382
  }
9383
9383
  function ov(o) {
9384
9384
  o.millisecond = Math.max(0, Math.min(o.millisecond, 1e3)), o.second = Math.max(0, Math.min(o.second, 59)), o.minute = Math.max(0, Math.min(o.minute, 59)), o.hour = Math.max(0, Math.min(o.hour, 23));
9385
9385
  }
9386
- function Ts(o, t) {
9386
+ function As(o, t) {
9387
9387
  let r = o % t;
9388
9388
  return r < 0 && (r += t), r;
9389
9389
  }
@@ -9936,7 +9936,7 @@ function uc(o) {
9936
9936
  function ga(o) {
9937
9937
  return wv(o) || uc(o);
9938
9938
  }
9939
- function Wi(o) {
9939
+ function Vi(o) {
9940
9940
  if (o instanceof Date) {
9941
9941
  const t = o.getFullYear(), r = o.getMonth() + 1;
9942
9942
  return new Date(t, r, 0).getDate();
@@ -9957,11 +9957,11 @@ function h2(o, t, r) {
9957
9957
  const n = af(o, r), i = t === 0 ? 6 : t - 1;
9958
9958
  return n === i ? o : n > i ? o.add({ days: 7 - n + i }) : o.add({ days: i - n });
9959
9959
  }
9960
- const Za = ["day", "month", "year"], hc = ["hour", "minute", "second", "dayPeriod"], Lv = ["literal", "timeZoneName"], ls = [
9960
+ const Za = ["day", "month", "year"], hc = ["hour", "minute", "second", "dayPeriod"], Lv = ["literal", "timeZoneName"], cs = [
9961
9961
  ...Za,
9962
9962
  ...hc
9963
9963
  ], Sv = [
9964
- ...ls,
9964
+ ...cs,
9965
9965
  ...Lv
9966
9966
  ], Mv = [
9967
9967
  "ach",
@@ -10143,7 +10143,7 @@ function Av(o) {
10143
10143
  return Intl.Locale ? new Intl.Locale(o).language : o.split("-")[0];
10144
10144
  }
10145
10145
  function Ol(o) {
10146
- const t = ["hour", "minute", "second"], r = ls.map((n) => n === "dayPeriod" ? [n, "AM"] : [n, null]).filter(([n]) => n === "literal" || n === null ? !1 : o === "day" ? !t.includes(n) : !0);
10146
+ const t = ["hour", "minute", "second"], r = cs.map((n) => n === "dayPeriod" ? [n, "AM"] : [n, null]).filter(([n]) => n === "literal" || n === null ? !1 : o === "day" ? !t.includes(n) : !0);
10147
10147
  return Object.fromEntries(r);
10148
10148
  }
10149
10149
  function Iv(o) {
@@ -10228,7 +10228,7 @@ function Rv(o, t) {
10228
10228
  return o === "day" && (delete r.second, delete r.hour, delete r.minute, delete r.timeZoneName), o === "hour" && delete r.minute, o === "minute" && delete r.second, r;
10229
10229
  }
10230
10230
  function p2() {
10231
- return ls.reduce((o, t) => (o[t] = {
10231
+ return cs.reduce((o, t) => (o[t] = {
10232
10232
  lastKeyZero: !1,
10233
10233
  hasLeftFocus: !0,
10234
10234
  updating: null
@@ -10238,13 +10238,13 @@ function Ua(o) {
10238
10238
  return Za.includes(o);
10239
10239
  }
10240
10240
  function Sf(o) {
10241
- return ls.includes(o);
10241
+ return cs.includes(o);
10242
10242
  }
10243
10243
  function zv(o) {
10244
10244
  return Sv.includes(o);
10245
10245
  }
10246
10246
  function Mf(o) {
10247
- return !fn || !o ? [] : gc(o).map((r) => r.dataset.segment).filter((r) => ls.includes(r));
10247
+ return !fn || !o ? [] : gc(o).map((r) => r.dataset.segment).filter((r) => cs.includes(r));
10248
10248
  }
10249
10249
  function Fv(o) {
10250
10250
  const { segmentObj: t, fieldNode: r, dateRef: n } = o, i = Mf(r);
@@ -10281,7 +10281,7 @@ function Wv(o, t) {
10281
10281
  }
10282
10282
  function fc(o) {
10283
10283
  return !!([
10284
- os,
10284
+ is,
10285
10285
  Wn,
10286
10286
  wn,
10287
10287
  un,
@@ -10305,7 +10305,7 @@ function Bv(o) {
10305
10305
  a.innerText = `Selected Date: ${s}`;
10306
10306
  else {
10307
10307
  const l = i.createElement("div");
10308
- l.style.cssText = rs({
10308
+ l.style.cssText = ns({
10309
10309
  display: "none"
10310
10310
  }), l.id = t, l.innerText = `Selected Date: ${s}`, i.body.appendChild(l);
10311
10311
  }
@@ -10319,7 +10319,7 @@ function Zv(o, t) {
10319
10319
  function Df(o) {
10320
10320
  return new Intl.DateTimeFormat(o, { hour: "numeric" }).formatToParts(/* @__PURE__ */ new Date("2023-01-01T13:00:00")).find((i) => i.type === "hour")?.value === "1" ? 12 : 24;
10321
10321
  }
10322
- function cs(o, t) {
10322
+ function ds(o, t) {
10323
10323
  const r = o.currentTarget;
10324
10324
  if (!Zt(r))
10325
10325
  return;
@@ -10372,7 +10372,7 @@ function Of(o, t) {
10372
10372
  const { prev: n } = pc(r, t);
10373
10373
  n && n.focus();
10374
10374
  }
10375
- function ds(o) {
10375
+ function us(o) {
10376
10376
  return o === hn || o === un;
10377
10377
  }
10378
10378
  function gc(o) {
@@ -10471,7 +10471,7 @@ function g2(o, t) {
10471
10471
  return r;
10472
10472
  }
10473
10473
  function El(o) {
10474
- const { dateObj: t, weekStartsOn: r, fixedWeeks: n, locale: i } = o, s = Wi(t), a = Array.from({ length: s }, (m, b) => t.set({ day: b + 1 })), l = d1(t), c = K6(t), u = r !== void 0 ? u2(l, r, "en-US") : u2(l, 0, i), d = r !== void 0 ? h2(c, r, "en-US") : h2(c, 0, i), f = g2(u.subtract({ days: 1 }), l), h = g2(c, d.add({ days: 1 })), p = f.length + a.length + h.length;
10474
+ const { dateObj: t, weekStartsOn: r, fixedWeeks: n, locale: i } = o, s = Vi(t), a = Array.from({ length: s }, (m, b) => t.set({ day: b + 1 })), l = d1(t), c = K6(t), u = r !== void 0 ? u2(l, r, "en-US") : u2(l, 0, i), d = r !== void 0 ? h2(c, r, "en-US") : h2(c, 0, i), f = g2(u.subtract({ days: 1 }), l), h = g2(c, d.add({ days: 1 })), p = f.length + a.length + h.length;
10475
10475
  if (n && p < 42) {
10476
10476
  const m = 42 - p;
10477
10477
  let b = h[h.length - 1];
@@ -10487,7 +10487,7 @@ function El(o) {
10487
10487
  const g = f.concat(a, h), v = h6(g, 7);
10488
10488
  return { value: t, dates: g, weeks: v };
10489
10489
  }
10490
- function us(o) {
10490
+ function hs(o) {
10491
10491
  const { numberOfMonths: t, dateObj: r, ...n } = o, i = [];
10492
10492
  if (!t || t === 1)
10493
10493
  return i.push(El({ ...n, dateObj: r })), i;
@@ -10554,7 +10554,7 @@ const m2 = [
10554
10554
  Wn,
10555
10555
  un,
10556
10556
  hn
10557
- ], b2 = [os, Do];
10557
+ ], b2 = [is, Do];
10558
10558
  function Xv({ event: o, handleCellClick: t, shiftFocus: r, placeholderValue: n }) {
10559
10559
  const i = o.target;
10560
10560
  if (!Gv(i) || !m2.includes(o.key) && !b2.includes(o.key)) return;
@@ -10590,7 +10590,7 @@ function Jv({
10590
10590
  if (n)
10591
10591
  l(c.add({ months: r }));
10592
10592
  else {
10593
- const u = c.add({ months: 1 }), d = us({
10593
+ const u = c.add({ months: 1 }), d = hs({
10594
10594
  dateObj: u,
10595
10595
  weekStartsOn: i,
10596
10596
  locale: s,
@@ -10615,7 +10615,7 @@ function Qv({
10615
10615
  if (n)
10616
10616
  l(c.subtract({ months: r }));
10617
10617
  else {
10618
- const u = c.subtract({ months: 1 }), d = us({
10618
+ const u = c.subtract({ months: 1 }), d = hs({
10619
10619
  dateObj: u,
10620
10620
  weekStartsOn: i,
10621
10621
  locale: s,
@@ -10637,13 +10637,13 @@ function tm(o) {
10637
10637
  const s = o.placeholder.current;
10638
10638
  if (!s) return;
10639
10639
  const a = { weekStartsOn: t, locale: r, fixedWeeks: n, numberOfMonths: i };
10640
- o.setMonths(us({ ...a, dateObj: s }));
10640
+ o.setMonths(hs({ ...a, dateObj: s }));
10641
10641
  });
10642
10642
  });
10643
10643
  }
10644
10644
  function rm({ calendarNode: o, label: t, accessibleHeadingId: r }) {
10645
10645
  const n = Xn(o), i = n.createElement("div");
10646
- i.style.cssText = rs({
10646
+ i.style.cssText = ns({
10647
10647
  border: "0px",
10648
10648
  clip: "rect(0px, 0px, 0px, 0px)",
10649
10649
  clipPath: "inset(50%)",
@@ -10680,7 +10680,7 @@ function nm({
10680
10680
  fixedWeeks: i.current,
10681
10681
  numberOfMonths: s.current
10682
10682
  };
10683
- a(us({ ...l, dateObj: o.current }));
10683
+ a(hs({ ...l, dateObj: o.current }));
10684
10684
  });
10685
10685
  });
10686
10686
  }
@@ -10754,7 +10754,7 @@ function um(o, t) {
10754
10754
  second: t.second
10755
10755
  }) : o;
10756
10756
  }
10757
- const hm = ns({
10757
+ const hm = os({
10758
10758
  component: "calendar",
10759
10759
  parts: [
10760
10760
  "root",
@@ -10818,7 +10818,7 @@ class vc {
10818
10818
  yearFormat: this.opts.yearFormat
10819
10819
  }), this.setMonths = this.setMonths.bind(this), this.nextPage = this.nextPage.bind(this), this.prevPage = this.prevPage.bind(this), this.prevYear = this.prevYear.bind(this), this.nextYear = this.nextYear.bind(this), this.setYear = this.setYear.bind(this), this.setMonth = this.setMonth.bind(this), this.isOutsideVisibleMonths = this.isOutsideVisibleMonths.bind(this), this.isDateDisabled = this.isDateDisabled.bind(this), this.isDateSelected = this.isDateSelected.bind(this), this.shiftFocus = this.shiftFocus.bind(this), this.handleCellClick = this.handleCellClick.bind(this), this.handleMultipleUpdate = this.handleMultipleUpdate.bind(this), this.handleSingleUpdate = this.handleSingleUpdate.bind(this), this.onkeydown = this.onkeydown.bind(this), this.getBitsAttr = this.getBitsAttr.bind(this), Sr(() => {
10820
10820
  this.announcer = pa(this.domContext.getDocument());
10821
- }), this.months = us({
10821
+ }), this.months = hs({
10822
10822
  dateObj: this.opts.placeholder.current,
10823
10823
  weekStartsOn: this.opts.weekStartsOn.current,
10824
10824
  locale: this.opts.locale.current,
@@ -11936,7 +11936,7 @@ function Bm(o, t) {
11936
11936
  }
11937
11937
  e.append(o, s), e.pop();
11938
11938
  }
11939
- const Zm = ["top", "right", "bottom", "left"], Un = Math.min, yr = Math.max, va = Math.round, As = Math.floor, sn = (o) => ({
11939
+ const Zm = ["top", "right", "bottom", "left"], Un = Math.min, yr = Math.max, va = Math.round, Is = Math.floor, sn = (o) => ({
11940
11940
  x: o,
11941
11941
  y: o
11942
11942
  }), Um = {
@@ -12585,7 +12585,7 @@ function Mn(o) {
12585
12585
  function S2(o) {
12586
12586
  return !Ka() || typeof ShadowRoot > "u" ? !1 : o instanceof ShadowRoot || o instanceof _r(o).ShadowRoot;
12587
12587
  }
12588
- function hs(o) {
12588
+ function fs(o) {
12589
12589
  const {
12590
12590
  overflow: t,
12591
12591
  overflowX: r,
@@ -12658,17 +12658,17 @@ function Kn(o) {
12658
12658
  }
12659
12659
  function jf(o) {
12660
12660
  const t = Kn(o);
12661
- return ti(t) ? o.ownerDocument ? o.ownerDocument.body : o.body : Mn(t) && hs(t) ? t : jf(t);
12661
+ return ti(t) ? o.ownerDocument ? o.ownerDocument.body : o.body : Mn(t) && fs(t) ? t : jf(t);
12662
12662
  }
12663
- function Vi(o, t, r) {
12663
+ function Bi(o, t, r) {
12664
12664
  var n;
12665
12665
  t === void 0 && (t = []), r === void 0 && (r = !0);
12666
12666
  const i = jf(o), s = i === ((n = o.ownerDocument) == null ? void 0 : n.body), a = _r(i);
12667
12667
  if (s) {
12668
12668
  const l = g1(a);
12669
- return t.concat(a, a.visualViewport || [], hs(i) ? i : [], l && r ? Vi(l) : []);
12669
+ return t.concat(a, a.visualViewport || [], fs(i) ? i : [], l && r ? Bi(l) : []);
12670
12670
  } else
12671
- return t.concat(i, Vi(i, [], r));
12671
+ return t.concat(i, Bi(i, [], r));
12672
12672
  }
12673
12673
  function g1(o) {
12674
12674
  return o.parent && Object.getPrototypeOf(o.parent) ? o.frameElement : null;
@@ -12760,7 +12760,7 @@ function mb(o) {
12760
12760
  scrollTop: 0
12761
12761
  }, u = sn(1);
12762
12762
  const d = sn(0), f = Mn(n);
12763
- if ((f || !f && !s) && ((hi(n) !== "body" || hs(a)) && (c = Ga(n)), f)) {
12763
+ if ((f || !f && !s) && ((hi(n) !== "body" || fs(a)) && (c = Ga(n)), f)) {
12764
12764
  const p = Lo(n);
12765
12765
  u = Yo(n), d.x = p.x + n.clientLeft, d.y = p.y + n.clientTop;
12766
12766
  }
@@ -12843,12 +12843,12 @@ function Cb(o, t) {
12843
12843
  const r = t.get(o);
12844
12844
  if (r)
12845
12845
  return r;
12846
- let n = Vi(o, [], !1).filter((l) => Zr(l) && hi(l) !== "body"), i = null;
12846
+ let n = Bi(o, [], !1).filter((l) => Zr(l) && hi(l) !== "body"), i = null;
12847
12847
  const s = Ur(o).position === "fixed";
12848
12848
  let a = s ? Kn(o) : o;
12849
12849
  for (; Zr(a) && !ti(a); ) {
12850
12850
  const l = Ur(a), c = Oc(a);
12851
- !c && l.position === "fixed" && (i = null), (s ? !c && !i : !c && l.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || hs(a) && !c && Nf(o, a)) ? n = n.filter((d) => d !== a) : i = l, a = Kn(a);
12851
+ !c && l.position === "fixed" && (i = null), (s ? !c && !i : !c && l.position === "static" && !!i && (i.position === "absolute" || i.position === "fixed") || fs(a) && !c && Nf(o, a)) ? n = n.filter((d) => d !== a) : i = l, a = Kn(a);
12852
12852
  }
12853
12853
  return t.set(o, n), n;
12854
12854
  }
@@ -12893,7 +12893,7 @@ function Lb(o, t, r) {
12893
12893
  c.x = qa(i);
12894
12894
  }
12895
12895
  if (n || !n && !s)
12896
- if ((hi(t) !== "body" || hs(i)) && (l = Ga(t)), n) {
12896
+ if ((hi(t) !== "body" || fs(i)) && (l = Ga(t)), n) {
12897
12897
  const p = Lo(t, !0, s, t);
12898
12898
  c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
12899
12899
  } else i && u();
@@ -12982,7 +12982,7 @@ function Pb(o, t) {
12982
12982
  } = u;
12983
12983
  if (l || t(), !h || !p)
12984
12984
  return;
12985
- const g = As(f), v = As(i.clientWidth - (d + h)), m = As(i.clientHeight - (f + p)), b = As(d), y = {
12985
+ const g = Is(f), v = Is(i.clientWidth - (d + h)), m = Is(i.clientHeight - (f + p)), b = Is(d), y = {
12986
12986
  rootMargin: -g + "px " + -v + "px " + -m + "px " + -b + "px",
12987
12987
  threshold: yr(0, Un(1, c)) || 1
12988
12988
  };
@@ -13019,7 +13019,7 @@ function Ob(o, t, r, n) {
13019
13019
  elementResize: a = typeof ResizeObserver == "function",
13020
13020
  layoutShift: l = typeof IntersectionObserver == "function",
13021
13021
  animationFrame: c = !1
13022
- } = n, u = Tc(o), d = i || s ? [...u ? Vi(u) : [], ...t ? Vi(t) : []] : [];
13022
+ } = n, u = Tc(o), d = i || s ? [...u ? Bi(u) : [], ...t ? Bi(t) : []] : [];
13023
13023
  d.forEach((b) => {
13024
13024
  i && b.addEventListener("scroll", r, {
13025
13025
  passive: !0
@@ -13227,7 +13227,7 @@ class ya {
13227
13227
  // ids
13228
13228
  arrowId = hr(Po());
13229
13229
  #e = e.derived(() => {
13230
- if (typeof this.opts.style == "string") return Ti(this.opts.style);
13230
+ if (typeof this.opts.style == "string") return Ai(this.opts.style);
13231
13231
  if (!this.opts.style) return {};
13232
13232
  });
13233
13233
  #t = void 0;
@@ -13371,7 +13371,7 @@ class ya {
13371
13371
  #w = e.derived(() => ({
13372
13372
  "data-side": this.placedSide,
13373
13373
  "data-align": this.placedAlign,
13374
- style: rs({ ...e.get(this.#e) }),
13374
+ style: ns({ ...e.get(this.#e) }),
13375
13375
  ...this.contentAttachment
13376
13376
  }));
13377
13377
  get props() {
@@ -13843,7 +13843,7 @@ var Xb = /* @__PURE__ */ new Set([
13843
13843
  "ref",
13844
13844
  "shouldRender"
13845
13845
  ]);
13846
- function fs(o, t) {
13846
+ function ps(o, t) {
13847
13847
  let r = e.prop(t, "interactOutsideBehavior", 3, "close"), n = e.prop(t, "trapFocus", 3, !0), i = e.prop(t, "isValidEvent", 3, () => !1), s = e.prop(t, "customAnchor", 3, null), a = e.prop(t, "isStatic", 3, !1), l = e.rest_props(t, Xb);
13848
13848
  var c = e.comment(), u = e.first_child(c);
13849
13849
  {
@@ -14009,7 +14009,7 @@ var Jb = /* @__PURE__ */ new Set([
14009
14009
  "isStatic",
14010
14010
  "enabled"
14011
14011
  ]);
14012
- function ps(o, t) {
14012
+ function gs(o, t) {
14013
14013
  let r = e.prop(t, "interactOutsideBehavior", 3, "close"), n = e.prop(t, "trapFocus", 3, !0), i = e.prop(t, "isValidEvent", 3, () => !1), s = e.prop(t, "customAnchor", 3, null), a = e.prop(t, "isStatic", 3, !1), l = e.rest_props(t, Jb);
14014
14014
  Bf(o, e.spread_props(
14015
14015
  {
@@ -14134,7 +14134,7 @@ function Qb(o, t) {
14134
14134
  r(!1), i()?.(!1);
14135
14135
  }
14136
14136
  });
14137
- ss.create(
14137
+ as.create(
14138
14138
  {
14139
14139
  open: ne(() => r(), (l) => {
14140
14140
  r(l), i()(l);
@@ -14230,7 +14230,7 @@ var ok = /* @__PURE__ */ new Set([
14230
14230
  function ik(o, t) {
14231
14231
  e.push(t, !0);
14232
14232
  let r = e.prop(t, "id", 19, Po), n = e.prop(t, "ref", 15, null), i = e.prop(t, "loop", 3, !0), s = e.prop(t, "onInteractOutside", 3, je), a = e.prop(t, "onCloseAutoFocus", 3, je), l = e.prop(t, "onOpenAutoFocus", 3, je), c = e.prop(t, "preventScroll", 3, !0), u = e.prop(t, "side", 3, "right"), d = e.prop(t, "sideOffset", 3, 2), f = e.prop(t, "align", 3, "start"), h = e.prop(t, "onEscapeKeydown", 3, je), p = e.prop(t, "forceMount", 3, !1), g = e.prop(t, "trapFocus", 3, !1), v = e.rest_props(t, ok);
14233
- const m = as.create({
14233
+ const m = ls.create({
14234
14234
  id: ne(() => r()),
14235
14235
  loop: ne(() => i()),
14236
14236
  ref: ne(() => n(), (O) => n(O)),
@@ -14303,7 +14303,7 @@ function ik(o, t) {
14303
14303
  }
14304
14304
  e.append(M, $);
14305
14305
  };
14306
- ps(O, e.spread_props(() => e.get(b), () => m.popperProps, {
14306
+ gs(O, e.spread_props(() => e.get(b), () => m.popperProps, {
14307
14307
  get enabled() {
14308
14308
  return m.parentMenu.opts.open.current;
14309
14309
  },
@@ -14343,7 +14343,7 @@ function ik(o, t) {
14343
14343
  }
14344
14344
  e.append(M, $);
14345
14345
  };
14346
- fs(O, e.spread_props(() => e.get(b), () => m.popperProps, {
14346
+ ps(O, e.spread_props(() => e.get(b), () => m.popperProps, {
14347
14347
  get open() {
14348
14348
  return m.parentMenu.opts.open.current;
14349
14349
  },
@@ -14469,7 +14469,7 @@ function fk(o, t) {
14469
14469
  const r = e.props_id();
14470
14470
  e.push(t, !0);
14471
14471
  let n = e.prop(t, "id", 19, () => Mt(r)), i = e.prop(t, "ref", 15, null), s = e.prop(t, "loop", 3, !0), a = e.prop(t, "onInteractOutside", 3, je), l = e.prop(t, "forceMount", 3, !1), c = e.prop(t, "onEscapeKeydown", 3, je), u = e.prop(t, "interactOutsideBehavior", 3, "defer-otherwise-close"), d = e.prop(t, "escapeKeydownBehavior", 3, "defer-otherwise-close"), f = e.prop(t, "onOpenAutoFocus", 3, je), h = e.prop(t, "onCloseAutoFocus", 3, je), p = e.prop(t, "onFocusOutside", 3, je), g = e.prop(t, "side", 3, "right"), v = e.prop(t, "trapFocus", 3, !1), m = e.rest_props(t, hk);
14472
- const b = as.create({
14472
+ const b = ls.create({
14473
14473
  id: ne(() => n()),
14474
14474
  loop: ne(() => s()),
14475
14475
  ref: ne(() => i(), (S) => i(S)),
@@ -14540,7 +14540,7 @@ function fk(o, t) {
14540
14540
  }
14541
14541
  e.append($, I);
14542
14542
  };
14543
- ps(S, e.spread_props(() => e.get(x), {
14543
+ gs(S, e.spread_props(() => e.get(x), {
14544
14544
  get ref() {
14545
14545
  return b.opts.ref;
14546
14546
  },
@@ -14603,7 +14603,7 @@ function fk(o, t) {
14603
14603
  }
14604
14604
  e.append($, I);
14605
14605
  };
14606
- fs(S, e.spread_props(() => e.get(x), {
14606
+ ps(S, e.spread_props(() => e.get(x), {
14607
14607
  get ref() {
14608
14608
  return b.opts.ref;
14609
14609
  },
@@ -14693,7 +14693,7 @@ function vk(o, t) {
14693
14693
  $$slots: { default: !0 }
14694
14694
  }), e.pop();
14695
14695
  }
14696
- const jc = ns({
14696
+ const jc = os({
14697
14697
  component: "date-field",
14698
14698
  parts: ["input", "label", "segment"]
14699
14699
  }), pi = {
@@ -14701,7 +14701,7 @@ const jc = ns({
14701
14701
  min: 1,
14702
14702
  max: (o) => {
14703
14703
  const t = o.segmentValues.month, r = o.value.current ?? o.placeholder.current;
14704
- return Wi(t ? r.set({ month: Number.parseInt(t) }) : r);
14704
+ return Vi(t ? r.set({ month: Number.parseInt(t) }) : r);
14705
14705
  },
14706
14706
  cycle: 1,
14707
14707
  padZero: !0
@@ -15015,7 +15015,7 @@ class Rc {
15015
15015
  if (t === "month") {
15016
15016
  const f = d(u);
15017
15017
  if (this.states.month.updating = f, f !== null && a.day !== null) {
15018
- const h = c.set({ month: Number.parseInt(f) }), p = Wi(pr(h));
15018
+ const h = c.set({ month: Number.parseInt(f) }), p = Vi(pr(h));
15019
15019
  Number.parseInt(a.day) > p && (a.day = `${p}`);
15020
15020
  }
15021
15021
  l = { ...a, [t]: f };
@@ -15055,7 +15055,7 @@ class Rc {
15055
15055
  const u = a[t], d = r, f = d(u);
15056
15056
  if (t === "month" && f !== null && a.day !== null) {
15057
15057
  this.states.month.updating = f;
15058
- const h = c.set({ month: Number.parseInt(f) }), p = Wi(pr(h));
15058
+ const h = c.set({ month: Number.parseInt(f) }), p = Vi(pr(h));
15059
15059
  Number.parseInt(a.day) > p && (a.day = `${p}`), l = { ...a, [t]: f };
15060
15060
  } else if (t === "year") {
15061
15061
  const h = d(u);
@@ -15191,7 +15191,7 @@ class gi {
15191
15191
  }
15192
15192
  onkeydown(t) {
15193
15193
  const r = this.root.value.current ?? this.root.placeholder.current;
15194
- if (!(t.ctrlKey || t.metaKey || this.root.disabled.current) && !((this.part === "hour" || this.part === "minute" || this.part === "second") && !(this.part in r)) && (t.key !== is && t.preventDefault(), !!fc(t.key))) {
15194
+ if (!(t.ctrlKey || t.metaKey || this.root.disabled.current) && !((this.part === "hour" || this.part === "minute" || this.part === "second") && !(this.part in r)) && (t.key !== ss && t.preventDefault(), !!fc(t.key))) {
15195
15195
  if (Vc(t.key)) {
15196
15196
  this.#o(r);
15197
15197
  return;
@@ -15208,7 +15208,7 @@ class gi {
15208
15208
  this.#a(t);
15209
15209
  return;
15210
15210
  }
15211
- ds(t.key) && cs(t, this.root.getFieldNode());
15211
+ us(t.key) && ds(t, this.root.getFieldNode());
15212
15212
  }
15213
15213
  }
15214
15214
  #o(t) {
@@ -15304,7 +15304,7 @@ class mk extends gi {
15304
15304
  super(t, r, "year", pi.year);
15305
15305
  }
15306
15306
  onkeydown(t) {
15307
- if (!(t.ctrlKey || t.metaKey || this.root.disabled.current) && (t.key !== is && t.preventDefault(), !!fc(t.key))) {
15307
+ if (!(t.ctrlKey || t.metaKey || this.root.disabled.current) && (t.key !== ss && t.preventDefault(), !!fc(t.key))) {
15308
15308
  if (Vc(t.key)) {
15309
15309
  this.#r(), super.onkeydown(t);
15310
15310
  return;
@@ -15321,7 +15321,7 @@ class mk extends gi {
15321
15321
  this.#i(t);
15322
15322
  return;
15323
15323
  }
15324
- ds(t.key) && cs(t, this.root.getFieldNode());
15324
+ us(t.key) && ds(t, this.root.getFieldNode());
15325
15325
  }
15326
15326
  }
15327
15327
  #r() {
@@ -15410,7 +15410,7 @@ class Nc {
15410
15410
  this.opts = t, this.root = r, this.#e = this.root.announcer, this.onkeydown = this.onkeydown.bind(this), this.attachment = ut(t.ref, (n) => this.root.dayPeriodNode = n);
15411
15411
  }
15412
15412
  onkeydown(t) {
15413
- if (!(t.ctrlKey || t.metaKey || this.root.disabled.current) && (t.key !== is && t.preventDefault(), !!_k(t.key))) {
15413
+ if (!(t.ctrlKey || t.metaKey || this.root.disabled.current) && (t.key !== ss && t.preventDefault(), !!_k(t.key))) {
15414
15414
  if (Vc(t.key) || Bc(t.key)) {
15415
15415
  this.root.updateSegment("dayPeriod", (r) => {
15416
15416
  if (r === "AM")
@@ -15423,7 +15423,7 @@ class Nc {
15423
15423
  Zc(t.key) && (this.root.states.dayPeriod.hasLeftFocus = !1, this.root.updateSegment("dayPeriod", () => (this.#e.announce("AM"), "AM"))), (t.key === a1 || t.key === Fh || s1) && this.root.updateSegment("dayPeriod", () => {
15424
15424
  const r = t.key === a1 || t.key === s1 ? "AM" : "PM";
15425
15425
  return this.#e.announce(r), r;
15426
- }), ds(t.key) && cs(t, this.root.getFieldNode());
15426
+ }), us(t.key) && ds(t, this.root.getFieldNode());
15427
15427
  }
15428
15428
  }
15429
15429
  #t = e.derived(() => {
@@ -15486,7 +15486,7 @@ class Wc {
15486
15486
  this.opts = t, this.root = r, this.onkeydown = this.onkeydown.bind(this), this.attachment = ut(t.ref);
15487
15487
  }
15488
15488
  onkeydown(t) {
15489
- t.key !== is && t.preventDefault(), !this.root.disabled.current && ds(t.key) && cs(t, this.root.getFieldNode());
15489
+ t.key !== ss && t.preventDefault(), !this.root.disabled.current && us(t.key) && ds(t, this.root.getFieldNode());
15490
15490
  }
15491
15491
  #e = e.derived(() => ({
15492
15492
  role: "textbox",
@@ -15903,7 +15903,7 @@ class Uf {
15903
15903
  }
15904
15904
  }
15905
15905
  }
15906
- const v1 = ns({
15906
+ const v1 = os({
15907
15907
  component: "popover",
15908
15908
  parts: ["root", "trigger", "content", "close", "overlay"]
15909
15909
  }), Kc = new vr("Popover.Root");
@@ -16057,7 +16057,7 @@ class Yc {
16057
16057
  }
16058
16058
  }
16059
16059
  onkeydown(t) {
16060
- this.opts.disabled.current || (t.key === os || t.key === Do) && (t.preventDefault(), this.#i(), this.root.toggleOpen());
16060
+ this.opts.disabled.current || (t.key === is || t.key === Do) && (t.preventDefault(), this.#i(), this.root.toggleOpen());
16061
16061
  }
16062
16062
  #s() {
16063
16063
  if (this.root.opts.open.current && this.root.contentNode?.id)
@@ -16386,7 +16386,7 @@ function Kf(o, t) {
16386
16386
  }
16387
16387
  e.append(P, T);
16388
16388
  };
16389
- ps(C, e.spread_props(() => e.get(v), () => g.popperProps, {
16389
+ gs(C, e.spread_props(() => e.get(v), () => g.popperProps, {
16390
16390
  get ref() {
16391
16391
  return g.opts.ref;
16392
16392
  },
@@ -16450,7 +16450,7 @@ function Kf(o, t) {
16450
16450
  }
16451
16451
  e.append(P, T);
16452
16452
  };
16453
- fs(C, e.spread_props(() => e.get(v), () => g.popperProps, {
16453
+ ps(C, e.spread_props(() => e.get(v), () => g.popperProps, {
16454
16454
  get ref() {
16455
16455
  return g.opts.ref;
16456
16456
  },
@@ -16562,10 +16562,10 @@ function Wk(o, t) {
16562
16562
  e.push(t, !0);
16563
16563
  let r = e.prop(t, "ref", 15, null), n = e.rest_props(t, Hk);
16564
16564
  function i(a) {
16565
- if (ds(a.key)) {
16565
+ if (us(a.key)) {
16566
16566
  const c = a.currentTarget.closest(jc.selector("input"));
16567
16567
  if (!c) return;
16568
- cs(a, c);
16568
+ ds(a, c);
16569
16569
  }
16570
16570
  }
16571
16571
  const s = e.derived(() => Be({ onkeydown: t.onkeydown }, { onkeydown: i }));
@@ -16590,7 +16590,7 @@ function Vk(o, t) {
16590
16590
  },
16591
16591
  shouldSkipExitAnimation: () => l()?.() ?? !1
16592
16592
  });
16593
- ss.create(
16593
+ as.create(
16594
16594
  {
16595
16595
  open: ne(() => r(), (u) => {
16596
16596
  r(u), i()(u);
@@ -16626,7 +16626,7 @@ function Zk(o, t) {
16626
16626
  const r = e.props_id();
16627
16627
  e.push(t, !0);
16628
16628
  let n = e.prop(t, "id", 19, () => Mt(r)), i = e.prop(t, "ref", 15, null), s = e.prop(t, "loop", 3, !0), a = e.prop(t, "onInteractOutside", 3, je), l = e.prop(t, "onEscapeKeydown", 3, je), c = e.prop(t, "onCloseAutoFocus", 3, je), u = e.prop(t, "forceMount", 3, !1), d = e.prop(t, "trapFocus", 3, !1), f = e.rest_props(t, Bk);
16629
- const h = as.create({
16629
+ const h = ls.create({
16630
16630
  id: ne(() => n()),
16631
16631
  loop: ne(() => s()),
16632
16632
  ref: ne(() => i(), (x) => i(x)),
@@ -16678,7 +16678,7 @@ function Zk(o, t) {
16678
16678
  }
16679
16679
  e.append(C, M);
16680
16680
  };
16681
- ps(x, e.spread_props(() => e.get(p), () => h.popperProps, {
16681
+ gs(x, e.spread_props(() => e.get(p), () => h.popperProps, {
16682
16682
  get ref() {
16683
16683
  return h.opts.ref;
16684
16684
  },
@@ -16736,7 +16736,7 @@ function Zk(o, t) {
16736
16736
  }
16737
16737
  e.append(C, M);
16738
16738
  };
16739
- fs(x, e.spread_props(() => e.get(p), () => h.popperProps, {
16739
+ ps(x, e.spread_props(() => e.get(p), () => h.popperProps, {
16740
16740
  get ref() {
16741
16741
  return h.opts.ref;
16742
16742
  },
@@ -16852,7 +16852,7 @@ class m1 {
16852
16852
  }, this.#e);
16853
16853
  }
16854
16854
  }
16855
- const Gf = ns({ component: "tooltip", parts: ["content", "trigger"] }), qf = new vr("Tooltip.Provider"), qc = new vr("Tooltip.Root");
16855
+ const Gf = os({ component: "tooltip", parts: ["content", "trigger"] }), qf = new vr("Tooltip.Provider"), qc = new vr("Tooltip.Root");
16856
16856
  class qk {
16857
16857
  #e = e.state(e.proxy(/* @__PURE__ */ new Map()));
16858
16858
  get triggers() {
@@ -17456,7 +17456,7 @@ function Qk(o, t) {
17456
17456
  e.append(M, $);
17457
17457
  };
17458
17458
  let _ = e.derived(() => b.root.disableHoverableContent ? "none" : "auto");
17459
- ps(P, e.spread_props(() => e.get(y), () => b.popperProps, {
17459
+ gs(P, e.spread_props(() => e.get(y), () => b.popperProps, {
17460
17460
  get enabled() {
17461
17461
  return b.root.opts.open.current;
17462
17462
  },
@@ -17514,7 +17514,7 @@ function Qk(o, t) {
17514
17514
  e.append(M, $);
17515
17515
  };
17516
17516
  let _ = e.derived(() => b.root.disableHoverableContent ? "none" : "auto");
17517
- fs(P, e.spread_props(() => e.get(y), () => b.popperProps, {
17517
+ ps(P, e.spread_props(() => e.get(y), () => b.popperProps, {
17518
17518
  get open() {
17519
17519
  return b.root.opts.open.current;
17520
17520
  },
@@ -18555,7 +18555,7 @@ function dt(o) {
18555
18555
  }), e.append(o, t);
18556
18556
  }
18557
18557
  var Fy = e.from_html("<!> <!>", 1);
18558
- function Bi(o, t) {
18558
+ function Zi(o, t) {
18559
18559
  e.push(t, !0);
18560
18560
  let r = e.prop(t, "selected", 19, () => []), n = e.prop(t, "emptyLabel", 3, "Any"), i = e.prop(t, "allLabel", 3, "All"), s = e.prop(t, "disabled", 3, !1), a = e.prop(t, "required", 3, !1);
18561
18561
  const l = e.derived(() => t.groups ?? (t.options ? [{ options: t.options }] : [])), c = e.derived(() => e.get(l).flatMap((f) => f.options));
@@ -18664,7 +18664,7 @@ function Xf(o, t) {
18664
18664
  var d = (h) => {
18665
18665
  {
18666
18666
  let p = e.derived(() => e.get(n).length === 0 ? "No options" : "Select"), g = e.derived(() => e.get(n).length === 0);
18667
- Bi(h, {
18667
+ Zi(h, {
18668
18668
  get label() {
18669
18669
  return t.label;
18670
18670
  },
@@ -18835,7 +18835,7 @@ function Yy() {
18835
18835
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18836
18836
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
18837
18837
  }
18838
- function gs(o, t) {
18838
+ function vs(o, t) {
18839
18839
  var r = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
18840
18840
  if (!r) {
18841
18841
  if (Array.isArray(o) || (r = td(o)) || t) {
@@ -18899,7 +18899,7 @@ function Gn(o, t, r) {
18899
18899
  }
18900
18900
  }));
18901
18901
  }
18902
- var Qa = "draggedEntered", vs = "draggedLeft", el = "draggedOverIndex", rd = "draggedLeftDocument", wa = {
18902
+ var Qa = "draggedEntered", ms = "draggedLeft", el = "draggedOverIndex", rd = "draggedLeftDocument", wa = {
18903
18903
  LEFT_FOR_ANOTHER: "leftForAnother",
18904
18904
  OUTSIDE_OF_ANY: "outsideOfAny"
18905
18905
  };
@@ -18912,7 +18912,7 @@ function Xy(o, t, r) {
18912
18912
  }));
18913
18913
  }
18914
18914
  function Jy(o, t, r) {
18915
- o.dispatchEvent(new CustomEvent(vs, {
18915
+ o.dispatchEvent(new CustomEvent(ms, {
18916
18916
  detail: {
18917
18917
  draggedEl: t,
18918
18918
  type: wa.LEFT_FOR_ANOTHER,
@@ -18921,7 +18921,7 @@ function Jy(o, t, r) {
18921
18921
  }));
18922
18922
  }
18923
18923
  function Qy(o, t) {
18924
- o.dispatchEvent(new CustomEvent(vs, {
18924
+ o.dispatchEvent(new CustomEvent(ms, {
18925
18925
  detail: {
18926
18926
  draggedEl: t,
18927
18927
  type: wa.OUTSIDE_OF_ANY
@@ -18948,7 +18948,7 @@ var tr = {
18948
18948
  DRAGGED_ENTERED: Qa,
18949
18949
  DRAGGED_ENTERED_ANOTHER: "dragEnteredAnother",
18950
18950
  DRAGGED_OVER_INDEX: el,
18951
- DRAGGED_LEFT: vs,
18951
+ DRAGGED_LEFT: ms,
18952
18952
  DRAGGED_LEFT_ALL: "draggedLeftAll",
18953
18953
  DROPPED_INTO_ZONE: "droppedIntoZone",
18954
18954
  DROPPED_INTO_ANOTHER: "droppedIntoAnother",
@@ -19018,7 +19018,7 @@ function rp(o) {
19018
19018
  function ox(o, t) {
19019
19019
  return Math.sqrt(Math.pow(o.x - t.x, 2) + Math.pow(o.y - t.y, 2));
19020
19020
  }
19021
- function Ri(o, t) {
19021
+ function zi(o, t) {
19022
19022
  return o.y <= t.bottom && o.y >= t.top && o.x >= t.left && o.x <= t.right;
19023
19023
  }
19024
19024
  function np(o) {
@@ -19083,7 +19083,7 @@ function ax(o) {
19083
19083
  }
19084
19084
  function lx(o, t) {
19085
19085
  var r = x1(t);
19086
- if (!Ri(o, r))
19086
+ if (!zi(o, r))
19087
19087
  return null;
19088
19088
  var n = t.children;
19089
19089
  if (n.length === 0)
@@ -19093,9 +19093,9 @@ function lx(o, t) {
19093
19093
  };
19094
19094
  for (var i = ax(t), s = 0; s < n.length; s++) {
19095
19095
  var a = x1(n[s]);
19096
- if (Ri(o, a)) {
19096
+ if (zi(o, a)) {
19097
19097
  var l = Go.has(t) && Go.get(t).get(s);
19098
- return l && !Ri(o, l) ? {
19098
+ return l && !zi(o, l) ? {
19099
19099
  index: i,
19100
19100
  isProximityBased: !1
19101
19101
  } : {
@@ -19163,7 +19163,7 @@ function hx(o, t) {
19163
19163
  return;
19164
19164
  }
19165
19165
  c = f;
19166
- var p = !1, g = gs(u), v;
19166
+ var p = !1, g = vs(u), v;
19167
19167
  try {
19168
19168
  for (g.s(); !(v = g.n()).done; ) {
19169
19169
  var m = v.value;
@@ -19239,7 +19239,7 @@ function gx(o, t) {
19239
19239
  left: 0,
19240
19240
  right: window.innerWidth
19241
19241
  } : t.getBoundingClientRect();
19242
- return Ri(o, r) ? {
19242
+ return zi(o, r) ? {
19243
19243
  top: o.y - r.top,
19244
19244
  bottom: r.bottom - o.y,
19245
19245
  left: o.x - r.left,
@@ -19255,7 +19255,7 @@ function vx() {
19255
19255
  if (!c || !n)
19256
19256
  return !1;
19257
19257
  for (var u = n.filter(function(h) {
19258
- return Ri(c, h.getBoundingClientRect()) || h === document.scrollingElement;
19258
+ return zi(c, h.getBoundingClientRect()) || h === document.scrollingElement;
19259
19259
  }), d = 0; d < u.length; d++) {
19260
19260
  var f = s(c, u[d]);
19261
19261
  if (f)
@@ -19284,7 +19284,7 @@ function mx(o) {
19284
19284
  return t;
19285
19285
  }
19286
19286
  function bx(o) {
19287
- var t = /* @__PURE__ */ new Set(), r = gs(o), n;
19287
+ var t = /* @__PURE__ */ new Set(), r = vs(o), n;
19288
19288
  try {
19289
19289
  for (r.s(); !(n = r.n()).done; ) {
19290
19290
  var i = n.value;
@@ -19300,7 +19300,7 @@ function bx(o) {
19300
19300
  return (document.scrollingElement.scrollHeight > document.scrollingElement.clientHeight || document.scrollingElement.scrollWidth > document.scrollingElement.clientHeight) && t.add(document.scrollingElement), t;
19301
19301
  }
19302
19302
  function kx(o) {
19303
- var t = o.cloneNode(!0), r = [], n = o.tagName === "SELECT", i = n ? [o] : $r(o.querySelectorAll("select")), s = gs(i), a;
19303
+ var t = o.cloneNode(!0), r = [], n = o.tagName === "SELECT", i = n ? [o] : $r(o.querySelectorAll("select")), s = vs(i), a;
19304
19304
  try {
19305
19305
  for (s.s(); !(a = s.n()).done; ) {
19306
19306
  var l = a.value;
@@ -19324,12 +19324,12 @@ function kx(o) {
19324
19324
  }
19325
19325
  return t;
19326
19326
  }
19327
- var Zi = Object.freeze({
19327
+ var Ui = Object.freeze({
19328
19328
  // This flag exists as a workaround for issue 454 (basically a browser bug) - seems like these rect values take time to update when in grid layout. Setting it to true can cause strange behaviour in the REPL for non-grid zones, see issue 470
19329
19329
  USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT: "USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT"
19330
- }), yx = ri({}, Zi.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT, !1);
19330
+ }), yx = ri({}, Ui.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT, !1);
19331
19331
  function ip(o) {
19332
- if (!Zi[o]) throw new Error("Can't get non existing feature flag ".concat(o, "! Supported flags: ").concat(Object.keys(Zi)));
19332
+ if (!Ui[o]) throw new Error("Can't get non existing feature flag ".concat(o, "! Supported flags: ").concat(Object.keys(Ui)));
19333
19333
  return yx[o];
19334
19334
  }
19335
19335
  var xx = 0.2;
@@ -19361,14 +19361,14 @@ function _x(o, t, r, n) {
19361
19361
  left: (r - s.left) / s.width,
19362
19362
  top: (n - s.top) / s.height
19363
19363
  };
19364
- ip(Zi.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT) || (o.style.height = "".concat(i.height, "px"), o.style.width = "".concat(i.width, "px")), o.style.left = "".concat(parseFloat(o.style.left) - c.left * a, "px"), o.style.top = "".concat(parseFloat(o.style.top) - c.top * l, "px");
19364
+ ip(Ui.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT) || (o.style.height = "".concat(i.height, "px"), o.style.width = "".concat(i.width, "px")), o.style.left = "".concat(parseFloat(o.style.left) - c.left * a, "px"), o.style.top = "".concat(parseFloat(o.style.top) - c.top * l, "px");
19365
19365
  }
19366
19366
  }
19367
19367
  function sp(o, t) {
19368
19368
  var r = window.getComputedStyle(o);
19369
19369
  Array.from(r).filter(function(n) {
19370
19370
  return n.startsWith("background") || n.startsWith("padding") || n.startsWith("font") || n.startsWith("text") || n.startsWith("align") || n.startsWith("justify") || n.startsWith("display") || n.startsWith("flex") || n.startsWith("border") || n === "opacity" || n === "color" || n === "list-style-type" || // copying with and height to make up for rect update timing issues in some browsers
19371
- ip(Zi.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT) && (n === "width" || n === "height");
19371
+ ip(Ui.USE_COMPUTED_STYLE_INSTEAD_OF_BOUNDING_RECT) && (n === "width" || n === "height");
19372
19372
  }).forEach(function(n) {
19373
19373
  return t.style.setProperty(n, r.getPropertyValue(n), r.getPropertyPriority(n));
19374
19374
  });
@@ -19423,9 +19423,9 @@ function Dx(o) {
19423
19423
  o.style.minHeight = t, o.style.minWidth = r;
19424
19424
  };
19425
19425
  }
19426
- var Px = "--any--", Ox = 100, Ex = 20, Is = 3, Tx = 80, Z2 = {
19426
+ var Px = "--any--", Ox = 100, Ex = 20, $s = 3, Tx = 80, Z2 = {
19427
19427
  outline: "rgba(255, 255, 102, 0.7) solid 2px"
19428
- }, U2 = "data-is-dnd-original-dragged-item", cr, Vt, ur, nl, _t, ol, Hn, Jt, Xr, Yt, In = !1, id = !1, sd, ms = !1, Ys = [], zi, Jr, Ai = !1, ad = !1, Wr = /* @__PURE__ */ new Map(), At = /* @__PURE__ */ new Map(), Rl = /* @__PURE__ */ new WeakMap();
19428
+ }, U2 = "data-is-dnd-original-dragged-item", cr, Vt, ur, nl, _t, ol, Hn, Jt, Xr, Yt, In = !1, id = !1, sd, bs = !1, Ys = [], Fi, Jr, Ii = !1, ad = !1, Wr = /* @__PURE__ */ new Map(), At = /* @__PURE__ */ new Map(), Rl = /* @__PURE__ */ new WeakMap();
19429
19429
  function Ax(o, t) {
19430
19430
  Wr.has(t) || Wr.set(t, /* @__PURE__ */ new Set()), Wr.get(t).has(o) || (Wr.get(t).add(o), Qf());
19431
19431
  }
@@ -19433,11 +19433,11 @@ function K2(o, t) {
19433
19433
  Wr.get(t).delete(o), ep(), Wr.get(t).size === 0 && Wr.delete(t);
19434
19434
  }
19435
19435
  function Ix() {
19436
- var o = Wr.get(nl), t = gs(o), r;
19436
+ var o = Wr.get(nl), t = vs(o), r;
19437
19437
  try {
19438
19438
  for (t.s(); !(r = t.n()).done; ) {
19439
19439
  var n = r.value;
19440
- n.addEventListener(Qa, lp), n.addEventListener(vs, cp), n.addEventListener(el, dp);
19440
+ n.addEventListener(Qa, lp), n.addEventListener(ms, cp), n.addEventListener(el, dp);
19441
19441
  }
19442
19442
  } catch (l) {
19443
19443
  t.e(l);
@@ -19448,7 +19448,7 @@ function Ix() {
19448
19448
  var i = Math.max.apply(Math, $r(Array.from(o.keys()).map(function(l) {
19449
19449
  return At.get(l).dropAnimationDurationMs;
19450
19450
  }))), s = i === 0 ? Ex : Math.max(i, Ox);
19451
- zi = vx(o, function() {
19451
+ Fi = vx(o, function() {
19452
19452
  return Yt;
19453
19453
  });
19454
19454
  var a = ad ? function() {
@@ -19459,21 +19459,21 @@ function Ix() {
19459
19459
  } : function() {
19460
19460
  return np(Vt);
19461
19461
  };
19462
- hx(Vt, o, s * 1.07, zi, a);
19462
+ hx(Vt, o, s * 1.07, Fi, a);
19463
19463
  }
19464
19464
  function $x() {
19465
- var o = Wr.get(nl), t = gs(o), r;
19465
+ var o = Wr.get(nl), t = vs(o), r;
19466
19466
  try {
19467
19467
  for (t.s(); !(r = t.n()).done; ) {
19468
19468
  var n = r.value;
19469
- n.removeEventListener(Qa, lp), n.removeEventListener(vs, cp), n.removeEventListener(el, dp);
19469
+ n.removeEventListener(Qa, lp), n.removeEventListener(ms, cp), n.removeEventListener(el, dp);
19470
19470
  }
19471
19471
  } catch (i) {
19472
19472
  t.e(i);
19473
19473
  } finally {
19474
19474
  t.f();
19475
19475
  }
19476
- window.removeEventListener(rd, oi), zi && (zi.destroy(), zi = void 0), fx();
19476
+ window.removeEventListener(rd, oi), Fi && (Fi.destroy(), Fi = void 0), fx();
19477
19477
  }
19478
19478
  function il(o) {
19479
19479
  return o.findIndex(function(t) {
@@ -19487,7 +19487,7 @@ function jx(o) {
19487
19487
  function lp(o) {
19488
19488
  var t = At.get(o.currentTarget), r = t.items, n = t.dropFromOthersDisabled;
19489
19489
  if (!(n && o.currentTarget !== _t)) {
19490
- if (ms = !1, r = r.filter(function(l) {
19490
+ if (bs = !1, r = r.filter(function(l) {
19491
19491
  return l[Bt] !== Hn[Bt] && l[Bt] !== Jf;
19492
19492
  }), _t !== o.currentTarget) {
19493
19493
  var i = At.get(_t).items, s = i.filter(function(l) {
@@ -19517,7 +19517,7 @@ function cp(o) {
19517
19517
  Jt = void 0;
19518
19518
  var l = o.detail, c = l.type, u = l.theOtherDz;
19519
19519
  if (c === wa.OUTSIDE_OF_ANY || c === wa.LEFT_FOR_ANOTHER && u !== _t && At.get(u).dropFromOthersDisabled) {
19520
- ms = !0, Jt = _t;
19520
+ bs = !0, Jt = _t;
19521
19521
  var d = a === _t ? i : $r(At.get(_t).items);
19522
19522
  d.splice(ol, 0, Hn), Gn(_t, d, {
19523
19523
  trigger: tr.DRAGGED_LEFT_ALL,
@@ -19537,7 +19537,7 @@ function dp(o) {
19537
19537
  var t = At.get(o.currentTarget), r = t.items, n = t.dropFromOthersDisabled;
19538
19538
  if (!(n && o.currentTarget !== _t)) {
19539
19539
  var i = $r(r);
19540
- ms = !1;
19540
+ bs = !1;
19541
19541
  var s = o.detail.indexObj.index, a = il(i);
19542
19542
  a !== -1 && i.splice(a, 1), i.splice(s, 0, Hn), Gn(o.currentTarget, i, {
19543
19543
  trigger: tr.DRAGGED_OVER_INDEX,
@@ -19568,7 +19568,7 @@ function oi() {
19568
19568
  });
19569
19569
  function i() {
19570
19570
  sd(), ni(Jt, t, {
19571
- trigger: ms ? tr.DROPPED_OUTSIDE_OF_ANY : tr.DROPPED_INTO_ZONE,
19571
+ trigger: bs ? tr.DROPPED_OUTSIDE_OF_ANY : tr.DROPPED_INTO_ZONE,
19572
19572
  id: ur[Bt],
19573
19573
  source: rr.POINTER
19574
19574
  }), Jt !== _t && ni(_t, At.get(_t).items, {
@@ -19599,7 +19599,7 @@ function zx(o, t) {
19599
19599
  });
19600
19600
  }
19601
19601
  function Fx() {
19602
- Vt && Vt.remove && Vt.remove(), cr && cr.remove && cr.remove(), Vt = void 0, cr = void 0, ur = void 0, nl = void 0, _t = void 0, ol = void 0, Hn = void 0, Jt = void 0, Xr = void 0, Yt = void 0, In = !1, id = !1, sd = void 0, ms = !1, Jr && clearTimeout(Jr), Jr = void 0, Ai = !1, ad = !1, Ys.length && (Ys.forEach(function(o) {
19602
+ Vt && Vt.remove && Vt.remove(), cr && cr.remove && cr.remove(), Vt = void 0, cr = void 0, ur = void 0, nl = void 0, _t = void 0, ol = void 0, Hn = void 0, Jt = void 0, Xr = void 0, Yt = void 0, In = !1, id = !1, sd = void 0, bs = !1, Jr && clearTimeout(Jr), Jr = void 0, Ii = !1, ad = !1, Ys.length && (Ys.forEach(function(o) {
19603
19603
  var t = o.dz, r = o.destroy;
19604
19604
  r(), t.remove();
19605
19605
  }), Ys = []);
@@ -19634,7 +19634,7 @@ function Nx(o, t) {
19634
19634
  });
19635
19635
  }
19636
19636
  function a() {
19637
- window.removeEventListener("mousemove", c), window.removeEventListener("touchmove", c), window.removeEventListener("mouseup", l), window.removeEventListener("touchend", l), Jr && (clearTimeout(Jr), Jr = void 0, Ai = !1);
19637
+ window.removeEventListener("mousemove", c), window.removeEventListener("touchmove", c), window.removeEventListener("mouseup", l), window.removeEventListener("touchend", l), Jr && (clearTimeout(Jr), Jr = void 0, Ii = !1);
19638
19638
  }
19639
19639
  function l(h) {
19640
19640
  if (a(), cr = void 0, Xr = void 0, Yt = void 0, h.type === "touchend") {
@@ -19647,17 +19647,17 @@ function Nx(o, t) {
19647
19647
  }
19648
19648
  function c(h) {
19649
19649
  var p = !!h.touches, g = p ? h.touches[0] : h;
19650
- if (p && n.delayTouchStartMs > 0 && !Ai) {
19650
+ if (p && n.delayTouchStartMs > 0 && !Ii) {
19651
19651
  Yt = {
19652
19652
  x: g.clientX,
19653
19653
  y: g.clientY
19654
- }, (Math.abs(Yt.x - Xr.x) >= Is || Math.abs(Yt.y - Xr.y) >= Is) && (Jr && (clearTimeout(Jr), Jr = void 0), l(h));
19654
+ }, (Math.abs(Yt.x - Xr.x) >= $s || Math.abs(Yt.y - Xr.y) >= $s) && (Jr && (clearTimeout(Jr), Jr = void 0), l(h));
19655
19655
  return;
19656
19656
  }
19657
19657
  h.preventDefault(), Yt = {
19658
19658
  x: g.clientX,
19659
19659
  y: g.clientY
19660
- }, (Math.abs(Yt.x - Xr.x) >= Is || Math.abs(Yt.y - Xr.y) >= Is) && (a(), d());
19660
+ }, (Math.abs(Yt.x - Xr.x) >= $s || Math.abs(Yt.y - Xr.y) >= $s) && (a(), d());
19661
19661
  }
19662
19662
  function u(h) {
19663
19663
  if (!(h.target !== h.currentTarget && (h.target.value !== void 0 || h.target.isContentEditable)) && !h.button && !In) {
@@ -19667,8 +19667,8 @@ function Nx(o, t) {
19667
19667
  Xr = {
19668
19668
  x: v.clientX,
19669
19669
  y: v.clientY
19670
- }, Yt = Fn({}, Xr), cr = h.currentTarget, g && (Ai = !1, Jr = window.setTimeout(function() {
19671
- cr && (Ai = !0, a(), d());
19670
+ }, Yt = Fn({}, Xr), cr = h.currentTarget, g && (Ii = !1, Jr = window.setTimeout(function() {
19671
+ cr && (Ii = !0, a(), d());
19672
19672
  }, n.delayTouchStartMs)), s();
19673
19673
  }
19674
19674
  }
@@ -19749,10 +19749,10 @@ function Nx(o, t) {
19749
19749
  }
19750
19750
  };
19751
19751
  }
19752
- var $s, w1 = {
19752
+ var js, w1 = {
19753
19753
  DND_ZONE_ACTIVE: "dnd-zone-active",
19754
19754
  DND_ZONE_DRAG_DISABLED: "dnd-zone-drag-disabled"
19755
- }, up = ($s = {}, ri($s, w1.DND_ZONE_ACTIVE, "Tab to one the items and press space-bar or enter to start dragging it"), ri($s, w1.DND_ZONE_DRAG_DISABLED, "This is a disabled drag and drop list"), $s), Hx = "dnd-action-aria-alert", $t;
19755
+ }, up = (js = {}, ri(js, w1.DND_ZONE_ACTIVE, "Tab to one the items and press space-bar or enter to start dragging it"), ri(js, w1.DND_ZONE_DRAG_DISABLED, "This is a disabled drag and drop list"), js), Hx = "dnd-action-aria-alert", $t;
19756
19756
  function _1() {
19757
19757
  $t || ($t = document.createElement("div"), (function() {
19758
19758
  $t.id = Hx, $t.style.position = "fixed", $t.style.bottom = "0", $t.style.left = "0", $t.style.zIndex = "-5", $t.style.opacity = "0", $t.style.height = "0", $t.style.width = "0", $t.setAttribute("role", "alert");
@@ -19788,13 +19788,13 @@ function Ux(o, t) {
19788
19788
  Hr.size === 0 && (Da = Wx(), window.addEventListener("keydown", hp), window.addEventListener("click", fp)), Hr.has(t) || Hr.set(t, /* @__PURE__ */ new Set()), Hr.get(t).has(o) || (Hr.get(t).add(o), Qf());
19789
19789
  }
19790
19790
  function X2(o, t) {
19791
- Qt === o && Ui(), Hr.get(t).delete(o), ep(), Hr.get(t).size === 0 && Hr.delete(t), Hr.size === 0 && (window.removeEventListener("keydown", hp), window.removeEventListener("click", fp), Da = void 0, Vx());
19791
+ Qt === o && Ki(), Hr.get(t).delete(o), ep(), Hr.get(t).size === 0 && Hr.delete(t), Hr.size === 0 && (window.removeEventListener("keydown", hp), window.removeEventListener("click", fp), Da = void 0, Vx());
19792
19792
  }
19793
19793
  function hp(o) {
19794
- Ar && o.key === "Escape" && Ui();
19794
+ Ar && o.key === "Escape" && Ki();
19795
19795
  }
19796
19796
  function fp() {
19797
- Ar && (Ma.has(document.activeElement) || Ui());
19797
+ Ar && (Ma.has(document.activeElement) || Ki());
19798
19798
  }
19799
19799
  function Kx(o) {
19800
19800
  if (Ar) {
@@ -19824,7 +19824,7 @@ function pp() {
19824
19824
  return r(Xt.get(t));
19825
19825
  });
19826
19826
  }
19827
- function Ui() {
19827
+ function Ki() {
19828
19828
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
19829
19829
  Xt.get(Qt).autoAriaDisabled || qo("Stopped dragging item ".concat(Nn)), Ma.has(document.activeElement) && document.activeElement.blur(), o && Gn(Qt, Xt.get(Qt).items, {
19830
19830
  trigger: tr.DRAG_STOPPED,
@@ -19857,7 +19857,7 @@ function Yx(o, t) {
19857
19857
  case " ": {
19858
19858
  if ((d.target.disabled !== void 0 || d.target.href || d.target.isContentEditable) && !Ma.has(d.target))
19859
19859
  return;
19860
- d.preventDefault(), d.stopPropagation(), Ar ? Ui() : s(d);
19860
+ d.preventDefault(), d.stopPropagation(), Ar ? Ki() : s(d);
19861
19861
  break;
19862
19862
  }
19863
19863
  case "ArrowDown":
@@ -19906,7 +19906,7 @@ function Yx(o, t) {
19906
19906
  }), pp();
19907
19907
  }
19908
19908
  function a(d) {
19909
- Ar && d.currentTarget !== ho && (d.stopPropagation(), Ui(!1), s(d));
19909
+ Ar && d.currentTarget !== ho && (d.stopPropagation(), Ki(!1), s(d));
19910
19910
  }
19911
19911
  function l(d) {
19912
19912
  var f = Xt.get(o), h = f.items, p = Array.from(o.children), g = p.indexOf(d);
@@ -20116,7 +20116,7 @@ function ii(o, t) {
20116
20116
  }
20117
20117
  e.delegate(["click"]);
20118
20118
  var tC = e.from_html('<div class="superellipse flex-center rounded-[20px] bg-white/[0.03] px-16 py-8 text-[13px] text-(--fg-muted)"><!></div>');
20119
- function Ki(o, t) {
20119
+ function Yi(o, t) {
20120
20120
  var r = tC(), n = e.child(r);
20121
20121
  e.snippet(n, () => t.children), e.reset(r), e.append(o, r);
20122
20122
  }
@@ -20158,10 +20158,10 @@ function si(o, t) {
20158
20158
  function cd(o) {
20159
20159
  typeof document > "u" || document.dispatchEvent(new CustomEvent("okno:structure", { detail: o }));
20160
20160
  }
20161
- function bs(o, t, r) {
20161
+ function ks(o, t, r) {
20162
20162
  t !== r && cd({ list: o, op: "reorder", from: t, to: r });
20163
20163
  }
20164
- function Yi(o, t) {
20164
+ function Gi(o, t) {
20165
20165
  cd({ list: o, op: "remove", index: t });
20166
20166
  }
20167
20167
  function sC(o, t) {
@@ -20303,7 +20303,7 @@ function MC(o, t) {
20303
20303
  e.set(g, !1), he.length !== 0 && _(e.get(c) ? [...e.get(f), ...he] : [he[0]]);
20304
20304
  }
20305
20305
  function S(Y) {
20306
- _(e.get(f).filter((se, ge) => ge !== Y)), e.get(l) && e.get(c) && Yi(e.get(b), Y);
20306
+ _(e.get(f).filter((se, ge) => ge !== Y)), e.get(l) && e.get(c) && Gi(e.get(b), Y);
20307
20307
  }
20308
20308
  function R(Y) {
20309
20309
  e.set(m, Y, !0), e.get(p)?.click();
@@ -20364,7 +20364,7 @@ function MC(o, t) {
20364
20364
  getRows: () => e.get(D),
20365
20365
  setRows: (Y) => e.set(D, Y, !0),
20366
20366
  onReorder: (Y, se) => {
20367
- _(Y.map((ge) => ge.item)), e.get(l) && bs(e.get(b), se.from, se.to);
20367
+ _(Y.map((ge) => ge.item)), e.get(l) && ks(e.get(b), se.from, se.to);
20368
20368
  }
20369
20369
  });
20370
20370
  function H(Y) {
@@ -20456,7 +20456,7 @@ function MC(o, t) {
20456
20456
  var se = gC(), ge = e.first_child(se);
20457
20457
  {
20458
20458
  var he = (le) => {
20459
- Ki(le, {
20459
+ Yi(le, {
20460
20460
  children: (fe, ve) => {
20461
20461
  e.next();
20462
20462
  var ue = e.text("No media");
@@ -20859,7 +20859,7 @@ function MC(o, t) {
20859
20859
  ]))), e.delegated("click", ge, () => U(e.get(h).src)), e.append(Y, se);
20860
20860
  }, de = (Y) => {
20861
20861
  var se = LC(), ge = e.first_child(se);
20862
- Ki(ge, {
20862
+ Yi(ge, {
20863
20863
  children: (Q, ee) => {
20864
20864
  e.next();
20865
20865
  var le = e.text("No media");
@@ -20949,7 +20949,7 @@ function IC(o, t) {
20949
20949
  getRows: () => e.get(C),
20950
20950
  setRows: (A) => e.set(C, A, !0),
20951
20951
  onReorder: (A, D) => {
20952
- t.onchange(A.map((I) => I.slug)), e.get(d) && bs(e.get(f), D.from, D.to);
20952
+ t.onchange(A.map((I) => I.slug)), e.get(d) && ks(e.get(f), D.from, D.to);
20953
20953
  }
20954
20954
  });
20955
20955
  function O() {
@@ -20974,12 +20974,12 @@ function IC(o, t) {
20974
20974
  to: `${e.get(l)}.${H}`
20975
20975
  } : void 0
20976
20976
  });
20977
- } else N.length === 1 && I.length === 0 && Yi(e.get(f), A.indexOf(N[0]));
20977
+ } else N.length === 1 && I.length === 0 && Gi(e.get(f), A.indexOf(N[0]));
20978
20978
  }
20979
20979
  function M(A) {
20980
20980
  if (e.get(c)) {
20981
20981
  const D = e.get(m).indexOf(A);
20982
- t.onchange(e.get(m).filter((I) => I !== A)), e.get(d) && D >= 0 && Yi(e.get(f), D);
20982
+ t.onchange(e.get(m).filter((I) => I !== A)), e.get(d) && D >= 0 && Gi(e.get(f), D);
20983
20983
  } else
20984
20984
  t.onchange(null);
20985
20985
  }
@@ -20995,7 +20995,7 @@ function IC(o, t) {
20995
20995
  var D = EC(), I = e.child(D);
20996
20996
  {
20997
20997
  var N = (Z) => {
20998
- Ki(Z, {
20998
+ Yi(Z, {
20999
20999
  children: (q, U) => {
21000
21000
  e.next();
21001
21001
  var X = e.text("No items yet");
@@ -21228,7 +21228,7 @@ function VC(o, t) {
21228
21228
  getRows: () => e.get(c),
21229
21229
  setRows: (L) => e.set(c, L, !0),
21230
21230
  onReorder: (L, T) => {
21231
- s.updateField(t.field.path, L.map((S) => S.data)), e.get(a) && bs(e.get(l), T.from, T.to);
21231
+ s.updateField(t.field.path, L.map((S) => S.data)), e.get(a) && ks(e.get(l), T.from, T.to);
21232
21232
  }
21233
21233
  }), p = e.derived(() => t.field.def.block), g = e.derived(() => r.schema.blocks?.[e.get(p)] ?? null), v = e.derived(() => e.get(g)?.name ?? Ir(e.get(p))), m = e.derived(() => e.get(g)?.fields ? Object.entries(e.get(g).fields) : []);
21234
21234
  function b(L, T) {
@@ -21260,7 +21260,7 @@ function VC(o, t) {
21260
21260
  s.updateField(t.field.path, [...e.get(x), z1(e.get(g), null)]), e.get(a) && dd(e.get(l), L);
21261
21261
  }
21262
21262
  function C(L) {
21263
- s.updateField(t.field.path, e.get(x).filter((T, S) => S !== L)), e.get(a) && Yi(e.get(l), L);
21263
+ s.updateField(t.field.path, e.get(x).filter((T, S) => S !== L)), e.get(a) && Gi(e.get(l), L);
21264
21264
  }
21265
21265
  var E = e.comment(), P = e.first_child(E);
21266
21266
  {
@@ -21271,7 +21271,7 @@ function VC(o, t) {
21271
21271
  var T = HC(), S = e.child(T);
21272
21272
  {
21273
21273
  var R = (A) => {
21274
- Ki(A, {
21274
+ Yi(A, {
21275
21275
  children: (D, I) => {
21276
21276
  e.next();
21277
21277
  var N = e.text();
@@ -21862,12 +21862,12 @@ function bp(o, t) {
21862
21862
  });
21863
21863
  }), e.append(o, u), e.pop();
21864
21864
  }
21865
- let js;
21865
+ let Rs;
21866
21866
  function ew() {
21867
- if (js !== void 0) return js;
21868
- if (typeof document > "u") return js = null;
21867
+ if (Rs !== void 0) return Rs;
21868
+ if (typeof document > "u") return Rs = null;
21869
21869
  const o = document.createElement("canvas");
21870
- return o.width = o.height = 1, js = o.getContext("2d");
21870
+ return o.width = o.height = 1, Rs = o.getContext("2d");
21871
21871
  }
21872
21872
  function tw(o) {
21873
21873
  const t = o.trim();
@@ -22173,7 +22173,7 @@ function yp(o, t) {
22173
22173
  L[_] = M, h(L), p(_, M);
22174
22174
  }
22175
22175
  function v(_) {
22176
- h(e.get(d).filter((M, L) => L !== _).map((M) => M.value)), e.get(s) && Yi(e.get(a), _);
22176
+ h(e.get(d).filter((M, L) => L !== _).map((M) => M.value)), e.get(s) && Gi(e.get(a), _);
22177
22177
  }
22178
22178
  function m() {
22179
22179
  const _ = e.get(
@@ -22190,13 +22190,13 @@ function yp(o, t) {
22190
22190
  getRows: () => e.get(d),
22191
22191
  setRows: (_) => e.set(d, _, !0),
22192
22192
  onReorder: (_, M) => {
22193
- h(_.map((L) => L.value)), e.get(s) && bs(e.get(a), M.from, M.to);
22193
+ h(_.map((L) => L.value)), e.get(s) && ks(e.get(a), M.from, M.to);
22194
22194
  }
22195
22195
  }), k = "superellipse first:rounded-t-[20px] last:rounded-b-[20px] has-[:focus-visible]:outline-2 has-[:focus-visible]:-outline-offset-2 has-[:focus-visible]:outline-sky-500";
22196
22196
  var y = gw(), x = e.child(y);
22197
22197
  {
22198
22198
  var w = (_) => {
22199
- Ki(_, {
22199
+ Yi(_, {
22200
22200
  children: (M, L) => {
22201
22201
  e.next();
22202
22202
  var T = e.text("No items yet");
@@ -23698,7 +23698,7 @@ function Zw(o, t) {
23698
23698
  e.push(t, !0);
23699
23699
  const { content: r, router: n, modals: i, can: s } = Se(), a = Ke(), l = e.derived(() => n.key), c = e.derived(() => n.itemId);
23700
23700
  e.derived(() => n.isNew);
23701
- const u = e.derived(() => e.get(l) ? r.getSchema(e.get(l)) : null), d = e.derived(() => Qi(e.get(u), r.formData, r.originalData)), f = e.derived(() => e.get(l) ? n.view === "page" ? { kind: "pages", parent: e.get(l) } : n.view === "collection-item" || n.view === "collection" ? { kind: "collections", parent: e.get(l) } : null : null), h = e.derived(() => e.get(f) !== null && s.editStructure), p = e.derived(() => n.view === "page"), g = e.derived(() => e.get(p) && s.editStructure);
23701
+ const u = e.derived(() => e.get(l) ? r.getSchema(e.get(l)) : null), d = e.derived(() => es(e.get(u), r.formData, r.originalData)), f = e.derived(() => e.get(l) ? n.view === "page" ? { kind: "pages", parent: e.get(l) } : n.view === "collection-item" || n.view === "collection" ? { kind: "collections", parent: e.get(l) } : null : null), h = e.derived(() => e.get(f) !== null && s.editStructure), p = e.derived(() => n.view === "page"), g = e.derived(() => e.get(p) && s.editStructure);
23702
23702
  function v() {
23703
23703
  e.get(f) && i.open("edit-fields", {
23704
23704
  kind: e.get(f).kind,
@@ -24385,7 +24385,7 @@ function Mp(o, t) {
24385
24385
  });
24386
24386
  }), e.append(o, s), e.pop();
24387
24387
  }
24388
- var d_ = e.from_html("<!> <!> <!>", 1), Rs = e.from_html("<!> <!>", 1), u_ = e.from_html('<!> <label><span class="flex size-30 shrink-0 items-center justify-center text-(--fg-muted)"><!></span> <input type="text" placeholder="Search" autocomplete="off" spellcheck="false" class="min-w-0 flex-1 select-text bg-transparent pr-12 pb-1 text-[15px]/[110%] text-(--fg) outline-none placeholder:text-(--fg-muted)"/></label> <!>', 1), h_ = e.from_html("<!> <!> <!> <!> <!> <!>", 1);
24388
+ var d_ = e.from_html("<!> <!> <!>", 1), zs = e.from_html("<!> <!>", 1), u_ = e.from_html('<!> <label><span class="flex size-30 shrink-0 items-center justify-center text-(--fg-muted)"><!></span> <input type="text" placeholder="Search" autocomplete="off" spellcheck="false" class="min-w-0 flex-1 select-text bg-transparent pr-12 pb-1 text-[15px]/[110%] text-(--fg) outline-none placeholder:text-(--fg-muted)"/></label> <!>', 1), h_ = e.from_html("<!> <!> <!> <!> <!> <!>", 1);
24389
24389
  function f_(o, t) {
24390
24390
  e.push(t, !0);
24391
24391
  const { content: r, router: n, modals: i, can: s } = Se(), a = Ke(), l = e.derived(() => n.key), c = e.derived(() => e.get(l) ? r.getSchema(e.get(l)) : null), u = e.derived(() => l5(e.get(l) ? r.getRecords(e.get(l)) : [], (T) => T.slug ?? T.id, e.get(c)?.order));
@@ -24445,7 +24445,7 @@ function f_(o, t) {
24445
24445
  });
24446
24446
  to(o, {
24447
24447
  actions: (S) => {
24448
- var R = Rs(), $ = e.first_child(R);
24448
+ var R = zs(), $ = e.first_child(R);
24449
24449
  {
24450
24450
  var F = (A) => {
24451
24451
  var D = u_(), I = e.first_child(D);
@@ -24461,7 +24461,7 @@ function f_(o, t) {
24461
24461
  align: "start",
24462
24462
  origin: "origin-top-left",
24463
24463
  children: (oe, j) => {
24464
- var W = Rs(), K = e.first_child(W);
24464
+ var W = zs(), K = e.first_child(W);
24465
24465
  {
24466
24466
  var G = (te) => {
24467
24467
  var re = d_(), ae = e.first_child(re);
@@ -24601,7 +24601,7 @@ function f_(o, t) {
24601
24601
  var Z = e.sibling(V, 2);
24602
24602
  {
24603
24603
  var q = (j) => {
24604
- var W = Rs(), K = e.first_child(W);
24604
+ var W = zs(), K = e.first_child(W);
24605
24605
  me(K, {
24606
24606
  icon: "input-text",
24607
24607
  onclick: x,
@@ -24642,7 +24642,7 @@ function f_(o, t) {
24642
24642
  var X = e.sibling(U, 2);
24643
24643
  {
24644
24644
  var oe = (j) => {
24645
- var W = Rs(), K = e.first_child(W);
24645
+ var W = zs(), K = e.first_child(W);
24646
24646
  dt(K);
24647
24647
  var G = e.sibling(K, 2);
24648
24648
  me(G, {
@@ -24726,7 +24726,7 @@ function f_(o, t) {
24726
24726
  var p_ = e.from_html('<div class="mt-10 first:mt-0"><!></div>'), g_ = e.from_html('<div class="flex flex-col p-10 space-y-24"><!> <!></div>');
24727
24727
  function Dp(o, t) {
24728
24728
  e.push(t, !0);
24729
- const { content: r, router: n } = Se(), i = e.derived(() => n.key), s = e.derived(() => n.itemId), a = e.derived(() => e.get(i) ? r.getSchema(e.get(i)) : null), l = e.derived(() => Qi(e.get(a), r.formData, r.originalData)), c = e.derived(() => !!e.get(a)?.drafts), u = e.derived(() => r.formData?.status === "draft");
24729
+ const { content: r, router: n } = Se(), i = e.derived(() => n.key), s = e.derived(() => n.itemId), a = e.derived(() => e.get(i) ? r.getSchema(e.get(i)) : null), l = e.derived(() => es(e.get(a), r.formData, r.originalData)), c = e.derived(() => !!e.get(a)?.drafts), u = e.derived(() => r.formData?.status === "draft");
24730
24730
  function d(p) {
24731
24731
  r.updateField("status", p);
24732
24732
  }
@@ -24903,7 +24903,7 @@ function m_(o, t) {
24903
24903
  var b_ = e.from_html("<!> <!> <!> <!> <!>", 1), k_ = e.from_html('<div class="mt-10 first:mt-0"><!></div>'), y_ = e.from_html('<div class="flex flex-col gap-8 p-10"></div>');
24904
24904
  function x_(o, t) {
24905
24905
  e.push(t, !0);
24906
- const { content: r, router: n, modals: i, can: s } = Se(), a = Ke(), l = e.derived(() => n.key), c = e.derived(() => e.get(l) ? r.getSchema(e.get(l)) : null), u = e.derived(() => Qi(e.get(c), r.formData, r.originalData)), d = e.derived(() => e.get(l) ? e.get(c)?.name ?? e.get(c)?.label ?? e.get(l) : ""), f = e.derived(() => !!e.get(l) && s.editStructure);
24906
+ const { content: r, router: n, modals: i, can: s } = Se(), a = Ke(), l = e.derived(() => n.key), c = e.derived(() => e.get(l) ? r.getSchema(e.get(l)) : null), u = e.derived(() => es(e.get(c), r.formData, r.originalData)), d = e.derived(() => e.get(l) ? e.get(c)?.name ?? e.get(c)?.label ?? e.get(l) : ""), f = e.derived(() => !!e.get(l) && s.editStructure);
24907
24907
  function h() {
24908
24908
  e.get(l) && i.open("edit-fields", { kind: "globals", parent: e.get(l) });
24909
24909
  }
@@ -25118,7 +25118,7 @@ class L_ {
25118
25118
  };
25119
25119
  }
25120
25120
  var S_ = e.from_html('<div class="absolute inset-0 bg-black/10 dark:bg-white/10 rounded-[10px] superellipse z-0"></div>'), M_ = e.from_html('<div role="option"><div class="relative aspect-square w-full"><!> <!></div> <div class="flex w-full min-w-0 flex-col items-center gap-2"><p class="w-full min-w-0 text-center text-[13px]/[1.25] font-medium wrap-break-word"><span><!></span></p></div></div>'), D_ = e.from_html('<div role="option"><div class="flex-center size-24 shrink-0"><!></div> <p class="min-w-0 flex-1 truncate text-[13px]/[1.2] font-medium"><!></p> <!></div>');
25121
- function zs(o, t) {
25121
+ function Fs(o, t) {
25122
25122
  e.push(t, !0);
25123
25123
  let r = e.prop(t, "editing", 3, !1), n = e.prop(t, "layout", 3, "grid"), i = e.prop(t, "draggable", 3, !1), s = e.prop(t, "highlighted", 3, !1), a = e.prop(t, "cut", 3, !1), l = e.prop(t, "ghost", 3, !1), c = e.prop(t, "suffix", 3, "");
25124
25124
  const u = e.derived(() => s() || t.selected), d = new L_({
@@ -25327,7 +25327,7 @@ function cu(o, t) {
25327
25327
  e.set_attribute(f, "width", e.get(d)), e.set_attribute(f, "height", e.get(d)), e.set_attribute(f, "viewBox", `0 0 ${e.get(d)} ${e.get(d)}`), e.set_class(f, 0, e.clsx(["-rotate-90 shrink-0 text-sky-500", t.class]), "svelte-17bcvty"), e.set_attribute(h, "cx", e.get(u)), e.set_attribute(h, "cy", e.get(u)), e.set_attribute(h, "r", n()), e.set_attribute(h, "stroke-width", i());
25328
25328
  }), e.append(o, f), e.pop();
25329
25329
  }
25330
- const Fi = `<svg xmlns="http://www.w3.org/2000/svg" width="92" height="76" viewBox="0 0 92 76" fill="none"><g filter="url(#a)"><path fill="#0ea5e9" d="M0 14.2v47.037c0 2.333 0 4.127.117 5.562.119 1.45.36 2.595.88 3.612a9.14 9.14 0 0 0 3.992 3.993c1.018.519 2.162.76 3.613.88 1.434.116 3.228.116 5.561.116h63.074c2.333 0 4.127 0 5.562-.117 1.45-.118 2.595-.36 3.612-.879a9.14 9.14 0 0 0 3.993-3.993c.519-1.017.76-2.162.88-3.612.116-1.435.116-3.229.116-5.561V22.239c0-2.333 0-4.127-.117-5.561-.118-1.45-.36-2.595-.879-3.613a9.14 9.14 0 0 0-3.993-3.993c-1.017-.518-2.162-.76-3.612-.879-1.435-.117-3.229-.117-5.562-.117H46.33c-2.111 0-3.052-.004-3.929-.216a7.7 7.7 0 0 1-2.247-.937c-.767-.474-1.445-1.15-2.957-2.677l-.09-.09c-1.406-1.42-2.202-2.224-3.125-2.794A9.1 9.1 0 0 0 31.327.256C30.267 0 29.15 0 27.165 0H14.163c-2.333 0-4.127 0-5.561.117-1.45.119-2.595.36-3.613.88A9.14 9.14 0 0 0 .996 4.988C.478 6.007.236 7.151.117 8.602 0 10.036 0 11.83 0 14.163z"/></g><g filter="url(#b)"><path fill="url(#c)" d="M90.7 61.2v-33c0-4.726 0-7.089-.92-8.894a8.44 8.44 0 0 0-3.688-3.687c-1.805-.92-4.167-.92-8.893-.92h-63c-4.725 0-7.088 0-8.893.92a8.44 8.44 0 0 0-3.687 3.687c-.92 1.805-.92 4.168-.92 8.893v33c0 4.726 0 7.088.92 8.893a8.44 8.44 0 0 0 3.687 3.688c1.805.92 4.168.92 8.893.92h63c4.726 0 7.088 0 8.893-.92a8.44 8.44 0 0 0 3.688-3.688c.92-1.805.92-4.167.92-8.893"/></g><defs><filter id="a" width="91.402" height="76.4" x="0" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="1"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="shape" result="effect1_innerShadow_1031_96"/></filter><filter id="b" width="90" height="61" x=".699" y="14.699" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="1"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="shape" result="effect1_innerShadow_1031_96"/></filter><linearGradient id="c" x1="45.699" x2="45.699" y1="14.699" y2="74.699" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity=".5"/><stop offset="1" stop-color="#fff" stop-opacity=".2"/></linearGradient></defs></svg>
25330
+ const Ni = `<svg xmlns="http://www.w3.org/2000/svg" width="92" height="76" viewBox="0 0 92 76" fill="none"><g filter="url(#a)"><path fill="#0ea5e9" d="M0 14.2v47.037c0 2.333 0 4.127.117 5.562.119 1.45.36 2.595.88 3.612a9.14 9.14 0 0 0 3.992 3.993c1.018.519 2.162.76 3.613.88 1.434.116 3.228.116 5.561.116h63.074c2.333 0 4.127 0 5.562-.117 1.45-.118 2.595-.36 3.612-.879a9.14 9.14 0 0 0 3.993-3.993c.519-1.017.76-2.162.88-3.612.116-1.435.116-3.229.116-5.561V22.239c0-2.333 0-4.127-.117-5.561-.118-1.45-.36-2.595-.879-3.613a9.14 9.14 0 0 0-3.993-3.993c-1.017-.518-2.162-.76-3.612-.879-1.435-.117-3.229-.117-5.562-.117H46.33c-2.111 0-3.052-.004-3.929-.216a7.7 7.7 0 0 1-2.247-.937c-.767-.474-1.445-1.15-2.957-2.677l-.09-.09c-1.406-1.42-2.202-2.224-3.125-2.794A9.1 9.1 0 0 0 31.327.256C30.267 0 29.15 0 27.165 0H14.163c-2.333 0-4.127 0-5.561.117-1.45.119-2.595.36-3.613.88A9.14 9.14 0 0 0 .996 4.988C.478 6.007.236 7.151.117 8.602 0 10.036 0 11.83 0 14.163z"/></g><g filter="url(#b)"><path fill="url(#c)" d="M90.7 61.2v-33c0-4.726 0-7.089-.92-8.894a8.44 8.44 0 0 0-3.688-3.687c-1.805-.92-4.167-.92-8.893-.92h-63c-4.725 0-7.088 0-8.893.92a8.44 8.44 0 0 0-3.687 3.687c-.92 1.805-.92 4.168-.92 8.893v33c0 4.726 0 7.088.92 8.893a8.44 8.44 0 0 0 3.687 3.688c1.805.92 4.168.92 8.893.92h63c4.726 0 7.088 0 8.893-.92a8.44 8.44 0 0 0 3.688-3.688c.92-1.805.92-4.167.92-8.893"/></g><defs><filter id="a" width="91.402" height="76.4" x="0" y="0" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="1"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="shape" result="effect1_innerShadow_1031_96"/></filter><filter id="b" width="90" height="61" x=".699" y="14.699" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dy="1"/><feGaussianBlur stdDeviation="1"/><feComposite in2="hardAlpha" k2="-1" k3="1" operator="arithmetic"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0"/><feBlend in2="shape" result="effect1_innerShadow_1031_96"/></filter><linearGradient id="c" x1="45.699" x2="45.699" y1="14.699" y2="74.699" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" stop-opacity=".5"/><stop offset="1" stop-color="#fff" stop-opacity=".2"/></linearGradient></defs></svg>
25331
25331
  `, Nl = `<svg width="74" height="88" viewBox="0 0 74 88" fill="none" xmlns="http://www.w3.org/2000/svg">
25332
25332
  <path d="M5.139 0H68.86L74 9H0L5.139 0Z" fill="white" fill-opacity="0.8"/>
25333
25333
  <g filter="url(#filter0_ii_1106_106)">
@@ -25542,7 +25542,7 @@ function Op(o, t) {
25542
25542
  }
25543
25543
  function $(j, W, K) {
25544
25544
  if (!j.dataTransfer) return;
25545
- const G = document.createElement("div"), J = K.startsWith("files/"), te = K === "bin", re = J ? i.dragPreviews[K] : null, ae = te ? Nl : J ? u : Fi, ie = J ? K.split("/").pop() ?? "" : i.displayNameOf(K), de = W > 1 ? `<span style="position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#e11d48;color:white;font-size:11px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,0.25)">${W}</span>` : "", Y = W > 1 ? '<div style="position:absolute;inset:0;border-radius:6px;background:#fff;border:1px solid #e5e5e5;transform:translate(6px,6px)"></div><div style="position:absolute;inset:0;border-radius:6px;background:#fff;border:1px solid #e5e5e5;transform:translate(3px,3px)"></div>' : "";
25545
+ const G = document.createElement("div"), J = K.startsWith("files/"), te = K === "bin", re = J ? i.dragPreviews[K] : null, ae = te ? Nl : J ? u : Ni, ie = J ? K.split("/").pop() ?? "" : i.displayNameOf(K), de = W > 1 ? `<span style="position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#e11d48;color:white;font-size:11px;font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,0.25)">${W}</span>` : "", Y = W > 1 ? '<div style="position:absolute;inset:0;border-radius:6px;background:#fff;border:1px solid #e5e5e5;transform:translate(6px,6px)"></div><div style="position:absolute;inset:0;border-radius:6px;background:#fff;border:1px solid #e5e5e5;transform:translate(3px,3px)"></div>' : "";
25546
25546
  if (i.viewMode === "grid") {
25547
25547
  G.style.cssText = "position:absolute;top:-1000px;left:-1000px;width:80px;font:500 12px/1.3 system-ui,sans-serif;color:#111;text-align:center";
25548
25548
  const se = re ? `<img src="${re}" style="width:100%;aspect-ratio:1/1;border-radius:6px;object-fit:contain" alt=""/>` : `<div style="width:100%;aspect-ratio:1/1">${R(ae, "100%")}</div>`;
@@ -25676,7 +25676,7 @@ function Op(o, t) {
25676
25676
  const { base: fe, ext: ve } = c(e.get(re).entry.name);
25677
25677
  return { base: fe, ext: ve };
25678
25678
  });
25679
- zs(pe, {
25679
+ Fs(pe, {
25680
25680
  get index() {
25681
25681
  return e.get(ae);
25682
25682
  },
@@ -25805,7 +25805,7 @@ function Op(o, t) {
25805
25805
  e.append(ue, Me);
25806
25806
  };
25807
25807
  let le = e.derived(() => i.selected.has("bin")), fe = e.derived(() => e.get(ae) === i.focusIndex), ve = e.derived(() => e.get(M) === ":bin");
25808
- zs(pe, {
25808
+ Fs(pe, {
25809
25809
  get index() {
25810
25810
  return e.get(ae);
25811
25811
  },
@@ -25837,10 +25837,10 @@ function Op(o, t) {
25837
25837
  {
25838
25838
  var De = (ye) => {
25839
25839
  var be = Y_();
25840
- e.html(be, () => Fi, !0), e.reset(be), e.append(ye, be);
25840
+ e.html(be, () => Ni, !0), e.reset(be), e.append(ye, be);
25841
25841
  }, Me = (ye) => {
25842
25842
  var be = G_();
25843
- e.html(be, () => Fi, !0), e.reset(be), e.append(ye, be);
25843
+ e.html(be, () => Ni, !0), e.reset(be), e.append(ye, be);
25844
25844
  };
25845
25845
  e.if(Le, (ye) => {
25846
25846
  i.viewMode === "grid" ? ye(De) : ye(Me, -1);
@@ -25849,7 +25849,7 @@ function Op(o, t) {
25849
25849
  e.append(ue, xe);
25850
25850
  };
25851
25851
  let ee = e.derived(() => i.selected.has(e.get(re).id)), le = e.derived(() => e.get(ae) === i.focusIndex), fe = e.derived(() => i.editingId === e.get(re).id), ve = e.derived(() => e.get(M) === e.get(re).id);
25852
- zs(pe, {
25852
+ Fs(pe, {
25853
25853
  get index() {
25854
25854
  return e.get(ae);
25855
25855
  },
@@ -25948,7 +25948,7 @@ function Op(o, t) {
25948
25948
  ), e.append(De, Pe);
25949
25949
  };
25950
25950
  let ve = e.derived(() => i.selected.has(e.get(re).id)), ue = e.derived(() => e.get(ae) === i.focusIndex), xe = e.derived(() => i.editingId === e.get(re).id), Le = e.derived(() => i.clipboard?.mode === "cut" && i.clipboard.ids.includes(e.get(re).id));
25951
- zs(pe, {
25951
+ Fs(pe, {
25952
25952
  get index() {
25953
25953
  return e.get(ae);
25954
25954
  },
@@ -27501,7 +27501,7 @@ const lo = (o, t = e.noop, r = e.noop) => {
27501
27501
  var a = e.sibling(i, 2), l = e.child(a);
27502
27502
  e.snippet(l, r), e.reset(a), e.reset(n), e.template_effect(() => e.set_text(s, t())), e.append(o, n);
27503
27503
  };
27504
- var XL = e.from_html('<section class="flex flex-col gap-16 py-20 first:pt-4"><!> <!></section>'), JL = e.from_html('<div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400"> </span> <div class="flex flex-wrap items-center gap-10"><!></div></div>'), Pi = e.from_html("<!> <!>", 1), Fs = e.from_html("<!> <!> <!> <!> <!>", 1), QL = e.from_html('<span class="text-center text-[11px]/none font-medium text-neutral-400"> </span>'), eS = e.from_html('<div class="flex justify-center"><!></div>'), tS = e.from_html('<span class="text-[11px]/none text-neutral-400"> </span> <!>', 1), rS = e.from_html('<div class="flex flex-col gap-20"><div class="grid grid-cols-[4.5rem_repeat(2,minmax(0,1fr))] items-center gap-x-10 gap-y-12"><span></span> <!> <!></div> <!> <!> <!></div>'), Oi = e.from_html("<!> <!> <!>", 1), nS = e.from_html('<div class="flex flex-wrap items-center gap-10 pl-8"><!> <!> <!> <!> <!></div>'), oS = e.from_html('<div class="self-center"><!></div>'), iS = e.from_html('<div class="pl-8"><!></div>'), sS = e.from_html('<div class="relative"><!> <button type="button"><!></button></div>'), aS = e.from_html('<div class="flex flex-col gap-10 pl-8"><!> <!> <!> <!> <!> <!></div>'), lS = e.from_html('<div class="flex flex-col gap-16"><!> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Toggle field</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Multi-select field — label + checkbox dropdown</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Select field — single-select dropdown (sky tint when set)</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Toggle field — grouped in a List</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Checkbox</span> <div class="flex items-center gap-10"><!> <!> <!></div> <!></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Radio</span> <div class="flex items-center gap-10"><!> <!> <!></div> <!></div></div>'), cS = e.from_html('<div class="flex flex-col gap-16"><!> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Skeleton</span> <div class="flex flex-col gap-6"><!> <!></div></div></div>'), dS = e.from_html(
27504
+ var XL = e.from_html('<section class="flex flex-col gap-16 py-20 first:pt-4"><!> <!></section>'), JL = e.from_html('<div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400"> </span> <div class="flex flex-wrap items-center gap-10"><!></div></div>'), Pi = e.from_html("<!> <!>", 1), Ns = e.from_html("<!> <!> <!> <!> <!>", 1), QL = e.from_html('<span class="text-center text-[11px]/none font-medium text-neutral-400"> </span>'), eS = e.from_html('<div class="flex justify-center"><!></div>'), tS = e.from_html('<span class="text-[11px]/none text-neutral-400"> </span> <!>', 1), rS = e.from_html('<div class="flex flex-col gap-20"><div class="grid grid-cols-[4.5rem_repeat(2,minmax(0,1fr))] items-center gap-x-10 gap-y-12"><span></span> <!> <!></div> <!> <!> <!></div>'), Oi = e.from_html("<!> <!> <!>", 1), nS = e.from_html('<div class="flex flex-wrap items-center gap-10 pl-8"><!> <!> <!> <!> <!></div>'), oS = e.from_html('<div class="self-center"><!></div>'), iS = e.from_html('<div class="pl-8"><!></div>'), sS = e.from_html('<div class="relative"><!> <button type="button"><!></button></div>'), aS = e.from_html('<div class="flex flex-col gap-10 pl-8"><!> <!> <!> <!> <!> <!></div>'), lS = e.from_html('<div class="flex flex-col gap-16"><!> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Toggle field</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Multi-select field — label + checkbox dropdown</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Select field — single-select dropdown (sky tint when set)</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Toggle field — grouped in a List</span> <div class="max-w-340"><!></div></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Checkbox</span> <div class="flex items-center gap-10"><!> <!> <!></div> <!></div> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Radio</span> <div class="flex items-center gap-10"><!> <!> <!></div> <!></div></div>'), cS = e.from_html('<div class="flex flex-col gap-16"><!> <div class="flex flex-col gap-7 pl-8"><span class="text-[11px]/none text-neutral-400">Skeleton</span> <div class="flex flex-col gap-6"><!> <!></div></div></div>'), dS = e.from_html(
27505
27505
  `<h1>The type scale</h1> <p>Body copy sets the rhythm — fifteen pixels, a calm line height, muted ink. Every other
27506
27506
  level is measured against it.</p> <section class="flex flex-col gap-6"><h2>Section heading</h2> <p>Breaks a topic into parts. Weighted, full-strength ink, no caps. Inline <code>code</code> and <a href="#prose">links</a> sit here too.</p></section> <section class="flex flex-col gap-6"><h3>Sub-heading</h3> <p>The quietest level, for the occasional aside.</p></section> <!>`,
27507
27507
  1
@@ -27539,7 +27539,7 @@ function fS(o) {
27539
27539
  $$slots: { default: !0 }
27540
27540
  }), e.append(U, X);
27541
27541
  }, Z = (U) => {
27542
- var X = Fs(), oe = e.first_child(X);
27542
+ var X = Ns(), oe = e.first_child(X);
27543
27543
  ke(oe, {
27544
27544
  icon: "upload",
27545
27545
  children: (J, te) => {
@@ -27581,7 +27581,7 @@ function fS(o) {
27581
27581
  var G = e.sibling(K, 2);
27582
27582
  ke(G, { icon: "check", "aria-label": "Confirm" }), e.append(U, X);
27583
27583
  }, q = (U) => {
27584
- var X = Fs(), oe = e.first_child(X);
27584
+ var X = Ns(), oe = e.first_child(X);
27585
27585
  ke(oe, {
27586
27586
  loading: !0,
27587
27587
  children: (J, te) => {
@@ -27668,7 +27668,7 @@ function fS(o) {
27668
27668
  zt(A, {
27669
27669
  label: "Options",
27670
27670
  children: (B, V) => {
27671
- var Z = Fs(), q = e.first_child(Z);
27671
+ var Z = Ns(), q = e.first_child(Z);
27672
27672
  me(q, {
27673
27673
  icon: "upload",
27674
27674
  children: (W, K) => {
@@ -27835,7 +27835,7 @@ function fS(o) {
27835
27835
  var z = iS(), A = e.child(z);
27836
27836
  Xe(A, {
27837
27837
  children: (D, I) => {
27838
- var N = Fs(), H = e.first_child(N);
27838
+ var N = Ns(), H = e.first_child(N);
27839
27839
  Pt(H, {
27840
27840
  icon: "file-text",
27841
27841
  title: "About",
@@ -28045,7 +28045,7 @@ function fS(o) {
28045
28045
  Xe(V, {
28046
28046
  children: (pe, Q) => {
28047
28047
  var ee = Pi(), le = e.first_child(ee);
28048
- Bi(le, {
28048
+ Zi(le, {
28049
28049
  label: "Allowed types",
28050
28050
  options: [
28051
28051
  { value: "image", label: "Images" },
@@ -28060,7 +28060,7 @@ function fS(o) {
28060
28060
  onchange: (ve) => e.set(d, ve, !0)
28061
28061
  });
28062
28062
  var fe = e.sibling(le, 2);
28063
- Bi(fe, {
28063
+ Zi(fe, {
28064
28064
  label: "Formatting",
28065
28065
  groups: [
28066
28066
  {
@@ -29442,7 +29442,7 @@ function CM(o, t) {
29442
29442
  {
29443
29443
  var z = (D) => {
29444
29444
  var I = yM(), N = e.child(I);
29445
- e.html(N, () => Fi, !0), e.reset(N);
29445
+ e.html(N, () => Ni, !0), e.reset(N);
29446
29446
  var H = e.sibling(N, 2), B = e.child(H), V = e.child(B, !0);
29447
29447
  e.reset(B);
29448
29448
  var Z = e.sibling(B, 2), q = e.child(Z);
@@ -29559,7 +29559,7 @@ function MM(o, t) {
29559
29559
  e.template_effect(() => e.set_attribute(z, "src", e.get(d))), e.append(F, z);
29560
29560
  }, M = e.derived(() => e.get(d) && e.get(a) && !yo(e.get(a).filename)), L = (F) => {
29561
29561
  var z = _M();
29562
- e.html(z, () => Fi, !0), e.reset(z), e.append(F, z);
29562
+ e.html(z, () => Ni, !0), e.reset(z), e.append(F, z);
29563
29563
  }, T = (F) => {
29564
29564
  si(F, {
29565
29565
  get ext() {
@@ -30146,7 +30146,7 @@ function pu(o, t) {
30146
30146
  }
30147
30147
  };
30148
30148
  }
30149
- const Ns = (o, t = e.noop) => {
30149
+ const Hs = (o, t = e.noop) => {
30150
30150
  var r = GM();
30151
30151
  e.template_effect(() => e.set_class(r, 1, e.clsx([
30152
30152
  "pointer-events-none absolute inset-x-0 z-10 h-2 rounded-full bg-primary",
@@ -30163,7 +30163,7 @@ function lD(o, t) {
30163
30163
  var F = e.child($);
30164
30164
  {
30165
30165
  var z = (V) => {
30166
- Ns(V, () => "above");
30166
+ Hs(V, () => "above");
30167
30167
  };
30168
30168
  e.if(F, (V) => {
30169
30169
  e.get(R) === "above" && V(z);
@@ -30172,7 +30172,7 @@ function lD(o, t) {
30172
30172
  var A = e.sibling(F, 2);
30173
30173
  {
30174
30174
  var D = (V) => {
30175
- Ns(V, () => "below");
30175
+ Hs(V, () => "below");
30176
30176
  };
30177
30177
  e.if(A, (V) => {
30178
30178
  e.get(R) === "below" && V(D);
@@ -30412,7 +30412,7 @@ function lD(o, t) {
30412
30412
  var oe = iD(), j = e.child(oe), W = e.child(j);
30413
30413
  {
30414
30414
  var K = (Y) => {
30415
- Ns(Y, () => "above");
30415
+ Hs(Y, () => "above");
30416
30416
  };
30417
30417
  e.if(W, (Y) => {
30418
30418
  e.get(U) === "above" && Y(K);
@@ -30421,7 +30421,7 @@ function lD(o, t) {
30421
30421
  var G = e.sibling(W, 2);
30422
30422
  {
30423
30423
  var J = (Y) => {
30424
- Ns(Y, () => "below");
30424
+ Hs(Y, () => "below");
30425
30425
  };
30426
30426
  e.if(G, (Y) => {
30427
30427
  e.get(U) === "below" && Y(J);
@@ -33986,8 +33986,8 @@ function lO(o, t) {
33986
33986
  e.get(_).length > 0 ? jr(Et) : jr(yt, -1);
33987
33987
  });
33988
33988
  }
33989
- var vn = e.sibling(pt, 2), ys = e.child(vn);
33990
- ke(ys, {
33989
+ var vn = e.sibling(pt, 2), xs = e.child(vn);
33990
+ ke(xs, {
33991
33991
  tone: "idle",
33992
33992
  icon: "plus",
33993
33993
  onclick: S,
@@ -34034,7 +34034,7 @@ function lO(o, t) {
34034
34034
  Xe(ce, {
34035
34035
  children: (Ce, $e) => {
34036
34036
  var Oe = wu(), Ve = e.first_child(Oe);
34037
- Bi(Ve, {
34037
+ Zi(Ve, {
34038
34038
  label: "Allowed types",
34039
34039
  get options() {
34040
34040
  return d;
@@ -34072,7 +34072,7 @@ function lO(o, t) {
34072
34072
  { options: Cp },
34073
34073
  { options: wp }
34074
34074
  ]);
34075
- Bi(Ce, {
34075
+ Zi(Ce, {
34076
34076
  label: "Formatting",
34077
34077
  get groups() {
34078
34078
  return e.get(Oe);
@@ -34646,7 +34646,7 @@ function mO(o, t) {
34646
34646
  }
34647
34647
  e.delegate(["click"]);
34648
34648
  var bO = e.from_html('<div class="self-start pl-10 text-[12px]/none text-neutral-400"> </div>'), kO = e.from_html('<button type="button" title="Edit slug" class="group/slug flex items-center gap-5 self-start pl-10 text-[12px]/none text-neutral-400 transition-colors cursor-pointer hover:text-neutral-600 dark:hover:text-white/70"><span class="group-hover/slug:underline"> </span> <!></button>'), yO = e.from_html(`<div class="relative"><!> <button type="button" aria-label="Follow the name again" title="Locked — won't follow the name. Click to follow it again." class="flex-center absolute bottom-0 right-0 size-28 cursor-pointer rounded-md text-white/40 transition-colors hover:bg-white/10 hover:text-white active:bg-white/20"><!></button></div>`), xO = e.from_html('<div class="flex flex-col gap-4"><!> <!></div> <!>', 1);
34649
- function ks(o, t) {
34649
+ function ys(o, t) {
34650
34650
  e.push(t, !0);
34651
34651
  let r = e.prop(t, "name", 15, ""), n = e.prop(t, "slug", 15, ""), i = e.prop(t, "nameLabel", 3, "Name"), s = e.prop(t, "namePlaceholder", 3, ""), a = e.prop(t, "startLocked", 3, !1), l = e.prop(t, "readonly", 3, !1), c = e.state(e.proxy(a())), u = e.state(void 0);
34652
34652
  const d = e.derived(() => Zo(r()));
@@ -34761,14 +34761,14 @@ function IO(o, t) {
34761
34761
  if (!B.startsWith("/") || !e.get(x) && B.includes("[")) return !1;
34762
34762
  const V = B.replace(/\[[A-Za-z0-9_]+\]/g, "");
34763
34763
  return /^[A-Za-z0-9\-._~/]*$/.test(V);
34764
- }), E = e.derived(() => e.get(x) && e.get(l) ? n.schema.collections?.[e.get(l).slug]?.fields ?? {} : {}), P = e.derived(() => e.get(x) ? Ku({ fields: e.get(E) }) : null), O = /* @__PURE__ */ new Set(["slug", "string", "enum", "reference"]), _ = e.derived(() => e.get(x) ? Ms(e.get(f)).map((B) => {
34764
+ }), E = e.derived(() => e.get(x) && e.get(l) ? n.schema.collections?.[e.get(l).slug]?.fields ?? {} : {}), P = e.derived(() => e.get(x) ? Ku({ fields: e.get(E) }) : null), O = /* @__PURE__ */ new Set(["slug", "string", "enum", "reference"]), _ = e.derived(() => e.get(x) ? Ds(e.get(f)).map((B) => {
34765
34765
  const V = e.get(E)[B];
34766
34766
  if (!V) return { name: B, ok: !1, label: "no such field" };
34767
34767
  const Z = O.has(V.type) && !V.multiple, q = Z ? V.type : V.multiple ? `${V.type}, multiple — not allowed` : `${V.type} — can't be a segment`;
34768
34768
  return { name: B, ok: Z, label: q };
34769
- }) : []), M = e.derived(() => !e.get(x) || !!e.get(P) && Ms(e.get(f)).includes(e.get(P))), L = e.derived(() => !e.get(x) || e.get(f).trim() === "" ? !0 : e.get(C) && e.get(_).length > 0 && e.get(_).every((B) => B.ok) && e.get(M)), T = /* @__PURE__ */ new Set(["slug", "reference", "enum"]), S = e.derived(() => e.get(x) ? Object.entries(e.get(E)).filter(([, B]) => T.has(B.type) && !B.multiple).map(([B, V]) => ({ name: B, type: V.type })) : []), R = e.derived(() => e.get(_).filter((B) => !B.ok).map((B) => B.name));
34769
+ }) : []), M = e.derived(() => !e.get(x) || !!e.get(P) && Ds(e.get(f)).includes(e.get(P))), L = e.derived(() => !e.get(x) || e.get(f).trim() === "" ? !0 : e.get(C) && e.get(_).length > 0 && e.get(_).every((B) => B.ok) && e.get(M)), T = /* @__PURE__ */ new Set(["slug", "reference", "enum"]), S = e.derived(() => e.get(x) ? Object.entries(e.get(E)).filter(([, B]) => T.has(B.type) && !B.multiple).map(([B, V]) => ({ name: B, type: V.type })) : []), R = e.derived(() => e.get(_).filter((B) => !B.ok).map((B) => B.name));
34770
34770
  function $(B) {
34771
- if (Ms(e.get(f)).includes(B))
34771
+ if (Ds(e.get(f)).includes(B))
34772
34772
  e.set(f, e.get(f).replace(new RegExp(`/?\\[${B}\\]`), ""), !0), e.get(f) && !e.get(f).startsWith("/") && e.set(f, "/" + e.get(f));
34773
34773
  else {
34774
34774
  const V = e.get(f).trim(), Z = `[${B}]`;
@@ -34868,7 +34868,7 @@ function IO(o, t) {
34868
34868
  e.key(G, () => e.get(l)?.slug, (Y) => {
34869
34869
  {
34870
34870
  let se = e.derived(() => !e.get(b));
34871
- ks(Y, {
34871
+ ys(Y, {
34872
34872
  get startLocked() {
34873
34873
  return e.get(b);
34874
34874
  },
@@ -34955,7 +34955,7 @@ function IO(o, t) {
34955
34955
  var Ie = (Ee) => {
34956
34956
  var Ae = MO();
34957
34957
  e.each(Ae, 21, () => e.get(S), (Ge) => Ge.name, (Ge, qe) => {
34958
- const kt = e.derived(() => Ms(e.get(f)).includes(e.get(qe).name));
34958
+ const kt = e.derived(() => Ds(e.get(f)).includes(e.get(qe).name));
34959
34959
  var wt = SO(), Lt = e.child(wt, !0);
34960
34960
  e.reset(wt), e.template_effect(() => {
34961
34961
  e.set_class(wt, 1, e.clsx([
@@ -35108,7 +35108,7 @@ function HO(o, t) {
35108
35108
  },
35109
35109
  children: (b, k) => {
35110
35110
  var y = NO(), x = e.child(y);
35111
- ks(x, {
35111
+ ys(x, {
35112
35112
  get name() {
35113
35113
  return e.get(c);
35114
35114
  },
@@ -35238,7 +35238,7 @@ function ZO(o, t) {
35238
35238
  },
35239
35239
  children: (v, m) => {
35240
35240
  var b = BO(), k = e.child(b);
35241
- ks(k, {
35241
+ ys(k, {
35242
35242
  get name() {
35243
35243
  return e.get(l);
35244
35244
  },
@@ -35335,7 +35335,7 @@ function GO(o, t) {
35335
35335
  },
35336
35336
  children: (g, v) => {
35337
35337
  var m = YO(), b = e.child(m);
35338
- ks(b, {
35338
+ ys(b, {
35339
35339
  get name() {
35340
35340
  return e.get(a);
35341
35341
  },
@@ -35432,7 +35432,7 @@ function QO(o, t) {
35432
35432
  },
35433
35433
  children: (v, m) => {
35434
35434
  var b = JO(), k = e.child(b);
35435
- ks(k, {
35435
+ ys(k, {
35436
35436
  get name() {
35437
35437
  return e.get(l);
35438
35438
  },
@@ -37236,7 +37236,7 @@ function gT(o, t) {
37236
37236
  e.push(t, !0);
37237
37237
  const { content: r, can: n, modals: i, win: s } = Se(), a = Ke(), l = t.entry.session;
37238
37238
  li(Qn, l);
37239
- const c = e.derived(() => r.getSchema(l.key)), u = e.derived(() => Qi(e.get(c), l.formData, l.originalData)), d = e.derived(() => l.formData?.title?.trim() || l.itemId), f = e.derived(() => n.editStructure), h = e.derived(() => n.canDelete("collections")), p = e.derived(() => cl(s, 380)), g = e.derived(() => ({
37239
+ const c = e.derived(() => r.getSchema(l.key)), u = e.derived(() => es(e.get(c), l.formData, l.originalData)), d = e.derived(() => l.formData?.title?.trim() || l.itemId), f = e.derived(() => n.editStructure), h = e.derived(() => n.canDelete("collections")), p = e.derived(() => cl(s, 380)), g = e.derived(() => ({
37240
37240
  x: e.get(p).pos.x + t.index * 28,
37241
37241
  y: e.get(p).pos.y + t.index * 28
37242
37242
  }));
@@ -38064,7 +38064,7 @@ function WT(o, t) {
38064
38064
  const oe = X.clientX - D + A.width / 2, j = X.clientY - I + A.height / 2, K = document.elementFromPoint(oe, j)?.closest("[data-okno-item]")?.getAttribute("data-okno-item")?.match(F);
38065
38065
  if (!K) return;
38066
38066
  const G = Number(K[1]);
38067
- G !== Z && (bs(R, Z, G), Z = G);
38067
+ G !== Z && (ks(R, Z, G), Z = G);
38068
38068
  }, U = (X) => {
38069
38069
  window.removeEventListener("pointermove", q), window.removeEventListener("pointerup", U), N.remove(), z.classList.remove("okno-pin-dragsource"), e.set(u, !1), i.dragging = !1, Z !== $ && (E(R, $, Z), i.rescanMaps(), y(`${C(R)}.${Z}`), document.elementFromPoint(X.clientX, X.clientY)?.dispatchEvent(new PointerEvent("pointerover", { bubbles: !0, clientX: X.clientX, clientY: X.clientY })));
38070
38070
  };
@@ -38250,7 +38250,7 @@ class ZT {
38250
38250
  project;
38251
38251
  cleanup;
38252
38252
  get authHeaders() {
38253
- const t = Ni(), r = {};
38253
+ const t = Hi(), r = {};
38254
38254
  t && (r.Authorization = `Bearer ${t}`);
38255
38255
  const n = this.project.repoHeader;
38256
38256
  n && (r["X-Okno-Repo"] = n);
@@ -38263,7 +38263,7 @@ class ZT {
38263
38263
  console.error("OKNO_API_URL not configured - cannot authenticate"), this.auth.setUser(null);
38264
38264
  return;
38265
38265
  }
38266
- if (Ni()) {
38266
+ if (Hi()) {
38267
38267
  this.auth.loading = !0;
38268
38268
  let r = !1;
38269
38269
  C5() && localStorage.getItem($a) && (r = !0, await Xl());
@@ -38704,7 +38704,7 @@ function rA(o) {
38704
38704
  const t = { values: {}, slots: {} };
38705
38705
  return o && typeof o == "object" && !Array.isArray(o) && Bp(o, "", t), t;
38706
38706
  }
38707
- const nA = "okno-cache", oA = 1, Gi = "blobs", I1 = "trees", qi = "thumbs";
38707
+ const nA = "okno-cache", oA = 1, qi = "blobs", I1 = "trees", Xi = "thumbs";
38708
38708
  let Tn = null;
38709
38709
  function gd() {
38710
38710
  return Tn || (typeof indexedDB > "u" ? (Tn = new Promise(() => {
@@ -38712,7 +38712,7 @@ function gd() {
38712
38712
  const r = indexedDB.open(nA, oA);
38713
38713
  r.onerror = () => t(r.error), r.onsuccess = () => o(r.result), r.onupgradeneeded = () => {
38714
38714
  const n = r.result;
38715
- n.objectStoreNames.contains(Gi) || n.createObjectStore(Gi), n.objectStoreNames.contains(I1) || n.createObjectStore(I1), n.objectStoreNames.contains(qi) || n.createObjectStore(qi);
38715
+ n.objectStoreNames.contains(qi) || n.createObjectStore(qi), n.objectStoreNames.contains(I1) || n.createObjectStore(I1), n.objectStoreNames.contains(Xi) || n.createObjectStore(Xi);
38716
38716
  };
38717
38717
  }), Tn.catch(() => {
38718
38718
  Tn = null;
@@ -38761,7 +38761,7 @@ function ot(o, t, r, n) {
38761
38761
  function iA(o, t, r) {
38762
38762
  return `${o}/${t}/${r}`;
38763
38763
  }
38764
- const sA = (o, t) => vd(Gi, o, t), aA = (o) => Kp(Gi, o), St = (o) => Up(Gi, o), lA = (o, t) => vd(I1, o, t), cA = (o, t) => vd(qi, o, t), dA = (o) => Kp(qi, o), Yl = (o) => Up(qi, o), nt = Mr("content-controller"), uA = "okno", Gl = /^([a-z]{2,3}(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?)\/(.+)$/;
38764
+ const sA = (o, t) => vd(qi, o, t), aA = (o) => Kp(qi, o), St = (o) => Up(qi, o), lA = (o, t) => vd(I1, o, t), cA = (o, t) => vd(Xi, o, t), dA = (o) => Kp(Xi, o), Yl = (o) => Up(Xi, o), nt = Mr("content-controller"), uA = "okno", Gl = /^([a-z]{2,3}(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?)\/(.+)$/;
38765
38765
  class md {
38766
38766
  constructor(t, r, n, i, s, a, l, c, u, d, f, h) {
38767
38767
  this.content = t, this.project = r, this.auth = n, this.locale = i, this.router = s, this.billing = a, this.confirms = l, this.toasts = c, this.bus = u, this.win = d, this.schema = f, this.theme = h, this.content.requestSave = () => this.saveCurrent();
@@ -38857,7 +38857,7 @@ class md {
38857
38857
  /** Optimistic paint from the SWR cache. No-op once content is ready, without a
38858
38858
  * token, or with no cache. Idempotent — safe to call at boot AND in load(). */
38859
38859
  hydrateContentCache() {
38860
- if (this.content.ready || !Ni() && !this.project.demo) return;
38860
+ if (this.content.ready || !Hi() && !this.project.demo) return;
38861
38861
  const t = this.cacheKey;
38862
38862
  if (!t) return;
38863
38863
  const r = Wp(t);
@@ -40023,7 +40023,7 @@ class bd {
40023
40023
  /** Optimistic paint from the SWR cache. No-op once items exist, without a token,
40024
40024
  * or with no cache. Thumbnails re-hydrate from the IDB thumb cache by sha. */
40025
40025
  hydrateFilesCache() {
40026
- if (this.files.items.length || !Ni() && !this.project.demo) return;
40026
+ if (this.files.items.length || !Hi() && !this.project.demo) return;
40027
40027
  const t = this.filesCacheKey;
40028
40028
  if (!t) return;
40029
40029
  const r = Wp(t);
@@ -41601,7 +41601,7 @@ class DA {
41601
41601
  async snapBackToUpstream() {
41602
41602
  if (!this.project.isDev)
41603
41603
  try {
41604
- const t = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, r = await $i(this.project, `${t}schema.ts`);
41604
+ const t = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, r = await ji(this.project, `${t}schema.ts`);
41605
41605
  r && (this.content.shas["schema.ts"] = r);
41606
41606
  } catch (t) {
41607
41607
  br.warn("snapBackToUpstream failed:", t);
@@ -41610,11 +41610,11 @@ class DA {
41610
41610
  async refreshShasFor(t, r) {
41611
41611
  if (!this.project.isDev)
41612
41612
  try {
41613
- const n = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, i = await $i(this.project, `${n}schema.ts`);
41613
+ const n = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, i = await ji(this.project, `${n}schema.ts`);
41614
41614
  i && (this.content.shas["schema.ts"] = i);
41615
41615
  const s = t === "collections" || t === "blocks" ? null : `${t}/${r}.ts`;
41616
41616
  if (s) {
41617
- const a = await $i(this.project, `${n}${s}`);
41617
+ const a = await ji(this.project, `${n}${s}`);
41618
41618
  a && (this.content.shas[s] = a);
41619
41619
  }
41620
41620
  } catch (n) {
@@ -42005,7 +42005,7 @@ class EA {
42005
42005
  }
42006
42006
  async refreshSha() {
42007
42007
  try {
42008
- const t = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, r = await $i(this.project, `${t}users.json`);
42008
+ const t = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, r = await ji(this.project, `${t}users.json`);
42009
42009
  r && (this.content.shas["users.json"] = r);
42010
42010
  } catch (t) {
42011
42011
  Ei.warn("refreshSha failed:", t);
@@ -42123,14 +42123,14 @@ class AA {
42123
42123
  }
42124
42124
  async refreshSha() {
42125
42125
  try {
42126
- const t = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, r = await $i(this.project, `${t}origins.json`);
42126
+ const t = this.project.oknoDir.endsWith("/") ? this.project.oknoDir : `${this.project.oknoDir}/`, r = await ji(this.project, `${t}origins.json`);
42127
42127
  r && (this.content.shas["origins.json"] = r);
42128
42128
  } catch (t) {
42129
42129
  Ru.warn("refreshSha failed:", t);
42130
42130
  }
42131
42131
  }
42132
42132
  }
42133
- const Hs = Mr("app");
42133
+ const Ti = Mr("app");
42134
42134
  function IA(o, t, r) {
42135
42135
  const n = [], i = performance.now(), s = (c) => c ? (c.shadowRoot?.textContent?.length ?? 0) + (c.textContent?.length ?? 0) : 0, a = () => {
42136
42136
  const c = o.setup, u = o.project, d = o.router, f = o.content, h = o.files, p = o.win;
@@ -42197,14 +42197,14 @@ const $A = (o) => {
42197
42197
  users: new EA(t.content, t.project, t.auth, t.toasts),
42198
42198
  origins: new AA(t.content, t.project, t.toasts)
42199
42199
  };
42200
- Hs.ok("All modules initialized.");
42200
+ Ti.ok("All modules initialized.");
42201
42201
  const i = o.floatingRoot;
42202
42202
  return window.okno = {
42203
42203
  modules: t,
42204
42204
  controllers: n,
42205
42205
  /** Build marker — bump/rename to confirm which editor bundle is actually
42206
42206
  * loaded (worktree vs main dist). Check `window.okno.build` in the console. */
42207
- build: "windowframe-unified-r21-boottrace-logs",
42207
+ build: "windowframe-unified-r22-dedupe-setupready-load",
42208
42208
  /** Boot timing milestones (ms since page load): `window.okno.perf()`. */
42209
42209
  perf: () => f5(),
42210
42210
  /** Boot flash tracer dump — set localStorage.oknoTrace="1", reload, then call
@@ -42220,7 +42220,7 @@ const $A = (o) => {
42220
42220
  * flash to see exactly what ran (content loaded 1× or 2×? setup re-ran?
42221
42221
  * branch churned?) with ms since the first entry. */
42222
42222
  logs: () => {
42223
- const l = Ii[0]?.timestamp ?? 0, c = Ii.map((u) => ({
42223
+ const l = $i[0]?.timestamp ?? 0, c = $i.map((u) => ({
42224
42224
  ms: u.timestamp - l,
42225
42225
  module: u.module,
42226
42226
  level: u.level,
@@ -42245,10 +42245,10 @@ const $A = (o) => {
42245
42245
  reconnectProject: () => n.setup.reconnect()
42246
42246
  }, console.warn("[okno] build:", window.okno.build, "· App exposed: window.okno (modules, controllers, apiUrl, …)"), { modules: t, controllers: n, start: async () => {
42247
42247
  const l = typeof __OKNO_IS_DEV__ < "u" && __OKNO_IS_DEV__ || typeof document < "u" && document.querySelector('script[src="/__okno_bootstrap.js"]') !== null, c = typeof __OKNO_DEMO__ < "u" && __OKNO_DEMO__ || globalThis.__oknoDemo === !0;
42248
- t.project.setDev(l), t.project.setDemo(c), t.project.setApiUrl(__OKNO_API_URL__), t.project.setBakedRepo(typeof __OKNO_REPO__ < "u" ? __OKNO_REPO__ : null), t.project.setBakedRoot(typeof __OKNO_ROOT__ < "u" ? __OKNO_ROOT__ : null), console.log("[okno] start: apiUrl =", __OKNO_API_URL__), Object.values(t).forEach((d) => {
42249
- d.start && d.start();
42250
- }), console.log("[okno] start: modules started"), Object.values(n).forEach((d) => {
42251
- d.start && d.start();
42248
+ t.project.setDev(l), t.project.setDemo(c), t.project.setApiUrl(__OKNO_API_URL__), t.project.setBakedRepo(typeof __OKNO_REPO__ < "u" ? __OKNO_REPO__ : null), t.project.setBakedRoot(typeof __OKNO_ROOT__ < "u" ? __OKNO_ROOT__ : null), console.log("[okno] start: apiUrl =", __OKNO_API_URL__), Object.values(t).forEach((f) => {
42249
+ f.start && f.start();
42250
+ }), console.log("[okno] start: modules started"), Object.values(n).forEach((f) => {
42251
+ f.start && f.start();
42252
42252
  }), console.log("[okno] start: controllers started");
42253
42253
  try {
42254
42254
  typeof localStorage < "u" && localStorage.getItem("oknoTrace") === "1" && IA(t, o.wrapper, o.floatingRoot);
@@ -42256,19 +42256,26 @@ const $A = (o) => {
42256
42256
  }
42257
42257
  if (c) {
42258
42258
  t.project.currentRepo = { owner: "okno", repo: "demo", branch: "main" }, t.setup.setStatus({ hasInstallation: !0, initialized: !0, installUrl: null }), await Promise.all([n.content.load(), n.files.load()]);
42259
- const d = t.content.users[0];
42260
- d && t.auth.setUser(d), n.content.initLocaleFromUrl(), t.router.applyUrlRoute(), console.log("[okno] start: demo ready (login-less, static content)");
42259
+ const f = t.content.users[0];
42260
+ f && t.auth.setUser(f), n.content.initLocaleFromUrl(), t.router.applyUrlRoute(), console.log("[okno] start: demo ready (login-less, static content)");
42261
42261
  return;
42262
42262
  }
42263
42263
  t.bus.on("auth:login", async () => {
42264
- Hs.info("bus auth:login → setup.start()"), await n.setup.start();
42265
- }), t.bus.on("setup:ready", async () => {
42266
- Hs.info("bus setup:ready load content+files"), await Promise.all([n.content.load(), n.files.load()]), n.content.initLocaleFromUrl(), t.router.applyUrlRoute(), Hs.info("bus setup:ready → load done + route applied");
42264
+ Ti.info("bus auth:login → setup.start()"), await n.setup.start();
42265
+ });
42266
+ let u = null;
42267
+ t.bus.on("setup:ready", async () => {
42268
+ const f = t.project.currentRepo, h = f ? `${f.owner}/${f.repo}@${f.branch}` : "none";
42269
+ if (h === u && t.content.ready) {
42270
+ Ti.info(`bus setup:ready (dup, ${h}) → skip redundant reload`);
42271
+ return;
42272
+ }
42273
+ u = h, Ti.info(`bus setup:ready (${h}) → load content+files`), await Promise.all([n.content.load(), n.files.load()]), n.content.initLocaleFromUrl(), t.router.applyUrlRoute(), Ti.info("bus setup:ready → load done + route applied");
42267
42274
  }), t.bus.on("content:reload", () => {
42268
42275
  n.content.load();
42269
42276
  }), console.log("[okno] start: calling auth.init()"), await n.auth.init(), console.log("[okno] start: auth.init() resolved — auth.user:", t.auth.user ? "logged-in" : "anonymous");
42270
- const u = window.__okno_autostart;
42271
- u && (window.__okno_autostart = !1, u !== "session" && !t.auth.user && n.authToolbar.show());
42277
+ const d = window.__okno_autostart;
42278
+ d && (window.__okno_autostart = !1, d !== "session" && !t.auth.user && n.authToolbar.show());
42272
42279
  }, destroy: () => {
42273
42280
  Object.values(n).forEach((l) => {
42274
42281
  l.destroy && l.destroy();