@bedrock-layout/solid 1.7.3 → 1.7.4

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.
package/lib/index.m.js CHANGED
@@ -1,7 +1,7 @@
1
- import oe from "open-props";
2
- import { splitProps as X, createMemo as O, sharedConfig as g, untrack as B, createRenderEffect as w, createComponent as T, mergeProps as d, createContext as ce, useContext as le, createSignal as P, onMount as U, createEffect as q, onCleanup as Q, children as fe } from "solid-js";
1
+ import rt from "open-props";
2
+ import { splitProps as X, untrack as W, createRenderEffect as w, createMemo as M, sharedConfig as g, createComponent as T, mergeProps as d, createContext as ct, useContext as lt, createSignal as O, onMount as U, createEffect as q, onCleanup as Q, children as at } from "solid-js";
3
3
  import { init as Y, registerCallback as J } from "@bedrock-layout/register-resize-callback";
4
- const ae = [
4
+ const ft = [
5
5
  "allowfullscreen",
6
6
  "async",
7
7
  "autofocus",
@@ -27,7 +27,7 @@ const ae = [
27
27
  "reversed",
28
28
  "seamless",
29
29
  "selected"
30
- ], ue = /* @__PURE__ */ new Set([
30
+ ], ut = /* @__PURE__ */ new Set([
31
31
  "className",
32
32
  "value",
33
33
  "readOnly",
@@ -35,16 +35,16 @@ const ae = [
35
35
  "isMap",
36
36
  "noModule",
37
37
  "playsInline",
38
- ...ae
39
- ]), de = /* @__PURE__ */ new Set([
38
+ ...ft
39
+ ]), dt = /* @__PURE__ */ new Set([
40
40
  "innerHTML",
41
41
  "textContent",
42
42
  "innerText",
43
43
  "children"
44
- ]), ye = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
44
+ ]), yt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
45
45
  className: "class",
46
46
  htmlFor: "for"
47
- }), ge = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
47
+ }), gt = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
48
48
  class: "className",
49
49
  formnovalidate: {
50
50
  $: "formNoValidate",
@@ -69,11 +69,11 @@ const ae = [
69
69
  TEXTAREA: 1
70
70
  }
71
71
  });
72
- function me(e, t) {
73
- const n = ge[e];
74
- return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
72
+ function mt(t, e) {
73
+ const n = gt[t];
74
+ return typeof n == "object" ? n[e] ? n.$ : void 0 : n;
75
75
  }
76
- const he = /* @__PURE__ */ new Set([
76
+ const ht = /* @__PURE__ */ new Set([
77
77
  "beforeinput",
78
78
  "click",
79
79
  "dblclick",
@@ -96,7 +96,7 @@ const he = /* @__PURE__ */ new Set([
96
96
  "touchend",
97
97
  "touchmove",
98
98
  "touchstart"
99
- ]), be = /* @__PURE__ */ new Set([
99
+ ]), bt = /* @__PURE__ */ new Set([
100
100
  "altGlyph",
101
101
  "altGlyphDef",
102
102
  "altGlyphItem",
@@ -174,353 +174,357 @@ const he = /* @__PURE__ */ new Set([
174
174
  "use",
175
175
  "view",
176
176
  "vkern"
177
- ]), $e = {
177
+ ]), $t = {
178
178
  xlink: "http://www.w3.org/1999/xlink",
179
179
  xml: "http://www.w3.org/XML/1998/namespace"
180
180
  };
181
- function Se(e, t, n) {
182
- let i = n.length, s = t.length, r = i, c = 0, o = 0, l = t[s - 1].nextSibling, f = null;
183
- for (; c < s || o < r; ) {
184
- if (t[c] === n[o]) {
185
- c++, o++;
181
+ function St(t, e, n) {
182
+ let i = n.length, s = e.length, o = i, c = 0, r = 0, l = e[s - 1].nextSibling, a = null;
183
+ for (; c < s || r < o; ) {
184
+ if (e[c] === n[r]) {
185
+ c++, r++;
186
186
  continue;
187
187
  }
188
- for (; t[s - 1] === n[r - 1]; )
189
- s--, r--;
188
+ for (; e[s - 1] === n[o - 1]; )
189
+ s--, o--;
190
190
  if (s === c) {
191
- const a = r < i ? o ? n[o - 1].nextSibling : n[r - o] : l;
192
- for (; o < r; ) e.insertBefore(n[o++], a);
193
- } else if (r === o)
191
+ const f = o < i ? r ? n[r - 1].nextSibling : n[o - r] : l;
192
+ for (; r < o; ) t.insertBefore(n[r++], f);
193
+ } else if (o === r)
194
194
  for (; c < s; )
195
- (!f || !f.has(t[c])) && t[c].remove(), c++;
196
- else if (t[c] === n[r - 1] && n[o] === t[s - 1]) {
197
- const a = t[--s].nextSibling;
198
- e.insertBefore(n[o++], t[c++].nextSibling), e.insertBefore(n[--r], a), t[s] = n[r];
195
+ (!a || !a.has(e[c])) && e[c].remove(), c++;
196
+ else if (e[c] === n[o - 1] && n[r] === e[s - 1]) {
197
+ const f = e[--s].nextSibling;
198
+ t.insertBefore(n[r++], e[c++].nextSibling), t.insertBefore(n[--o], f), e[s] = n[o];
199
199
  } else {
200
- if (!f) {
201
- f = /* @__PURE__ */ new Map();
202
- let y = o;
203
- for (; y < r; ) f.set(n[y], y++);
200
+ if (!a) {
201
+ a = /* @__PURE__ */ new Map();
202
+ let y = r;
203
+ for (; y < o; ) a.set(n[y], y++);
204
204
  }
205
- const a = f.get(t[c]);
206
- if (a != null)
207
- if (o < a && a < r) {
205
+ const f = a.get(e[c]);
206
+ if (f != null)
207
+ if (r < f && f < o) {
208
208
  let y = c, u = 1, $;
209
- for (; ++y < s && y < r && !(($ = f.get(t[y])) == null || $ !== a + u); )
209
+ for (; ++y < s && y < o && !(($ = a.get(e[y])) == null || $ !== f + u); )
210
210
  u++;
211
- if (u > a - o) {
212
- const C = t[c];
213
- for (; o < a; ) e.insertBefore(n[o++], C);
214
- } else e.replaceChild(n[o++], t[c++]);
211
+ if (u > f - r) {
212
+ const C = e[c];
213
+ for (; r < f; ) t.insertBefore(n[r++], C);
214
+ } else t.replaceChild(n[r++], e[c++]);
215
215
  } else c++;
216
- else t[c++].remove();
216
+ else e[c++].remove();
217
217
  }
218
218
  }
219
219
  }
220
- const v = "_$DX_DELEGATE";
221
- function Z(e, t, n) {
222
- let i;
223
- const s = () => {
224
- const c = document.createElement("template");
225
- return c.innerHTML = e, c.content.firstChild;
226
- }, r = t ? () => B(() => document.importNode(i || (i = s()), !0)) : () => (i || (i = s())).cloneNode(!0);
227
- return r.cloneNode = r, r;
228
- }
229
- function xe(e, t = window.document) {
230
- const n = t[v] || (t[v] = /* @__PURE__ */ new Set());
231
- for (let i = 0, s = e.length; i < s; i++) {
232
- const r = e[i];
233
- n.has(r) || (n.add(r), t.addEventListener(r, Pe));
220
+ const R = "_$DX_DELEGATE";
221
+ function Z(t, e, n, i) {
222
+ let s;
223
+ const o = () => {
224
+ const r = document.createElement("template");
225
+ return r.innerHTML = t, r.content.firstChild;
226
+ }, c = e ? () => W(() => document.importNode(s || (s = o()), !0)) : () => (s || (s = o())).cloneNode(!0);
227
+ return c.cloneNode = c, c;
228
+ }
229
+ function xt(t, e = window.document) {
230
+ const n = e[R] || (e[R] = /* @__PURE__ */ new Set());
231
+ for (let i = 0, s = t.length; i < s; i++) {
232
+ const o = t[i];
233
+ n.has(o) || (n.add(o), e.addEventListener(o, Ot));
234
234
  }
235
235
  }
236
- function N(e, t, n) {
237
- j(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
236
+ function N(t, e, n) {
237
+ j(t) || (n == null ? t.removeAttribute(e) : t.setAttribute(e, n));
238
238
  }
239
- function we(e, t, n, i) {
240
- j(e) || (i == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, i));
239
+ function wt(t, e, n, i) {
240
+ j(t) || (i == null ? t.removeAttributeNS(e, n) : t.setAttributeNS(e, n, i));
241
241
  }
242
- function je(e, t, n) {
243
- j(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
242
+ function jt(t, e, n) {
243
+ j(t) || (n ? t.setAttribute(e, "") : t.removeAttribute(e));
244
244
  }
245
- function Ae(e, t) {
246
- j(e) || (t == null ? e.removeAttribute("class") : e.className = t);
245
+ function At(t, e) {
246
+ j(t) || (e == null ? t.removeAttribute("class") : t.className = e);
247
247
  }
248
- function Ce(e, t, n, i) {
248
+ function Ct(t, e, n, i) {
249
249
  if (i)
250
- Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
250
+ Array.isArray(n) ? (t[`$$${e}`] = n[0], t[`$$${e}Data`] = n[1]) : t[`$$${e}`] = n;
251
251
  else if (Array.isArray(n)) {
252
252
  const s = n[0];
253
- e.addEventListener(t, n[0] = (r) => s.call(e, n[1], r));
254
- } else e.addEventListener(t, n, typeof n != "function" && n);
255
- }
256
- function Ee(e, t, n = {}) {
257
- const i = Object.keys(t || {}), s = Object.keys(n);
258
- let r, c;
259
- for (r = 0, c = s.length; r < c; r++) {
260
- const o = s[r];
261
- !o || o === "undefined" || t[o] || (G(e, o, !1), delete n[o]);
253
+ t.addEventListener(e, n[0] = (o) => s.call(t, n[1], o));
254
+ } else t.addEventListener(e, n, typeof n != "function" && n);
255
+ }
256
+ function Et(t, e, n = {}) {
257
+ const i = Object.keys(e || {}), s = Object.keys(n);
258
+ let o, c;
259
+ for (o = 0, c = s.length; o < c; o++) {
260
+ const r = s[o];
261
+ !r || r === "undefined" || e[r] || (G(t, r, !1), delete n[r]);
262
262
  }
263
- for (r = 0, c = i.length; r < c; r++) {
264
- const o = i[r], l = !!t[o];
265
- !o || o === "undefined" || n[o] === l || !l || (G(e, o, !0), n[o] = l);
263
+ for (o = 0, c = i.length; o < c; o++) {
264
+ const r = i[o], l = !!e[r];
265
+ !r || r === "undefined" || n[r] === l || !l || (G(t, r, !0), n[r] = l);
266
266
  }
267
267
  return n;
268
268
  }
269
- function K(e, t, n) {
270
- if (!t) return n ? N(e, "style") : t;
271
- const i = e.style;
272
- if (typeof t == "string") return i.cssText = t;
273
- typeof n == "string" && (i.cssText = n = void 0), n || (n = {}), t || (t = {});
274
- let s, r;
275
- for (r in n)
276
- t[r] == null && i.removeProperty(r), delete n[r];
277
- for (r in t)
278
- s = t[r], s !== n[r] && (i.setProperty(r, s), n[r] = s);
269
+ function K(t, e, n) {
270
+ if (!e) return n ? N(t, "style") : e;
271
+ const i = t.style;
272
+ if (typeof e == "string") return i.cssText = e;
273
+ typeof n == "string" && (i.cssText = n = void 0), n || (n = {}), e || (e = {});
274
+ let s, o;
275
+ for (o in n)
276
+ e[o] == null && i.removeProperty(o), delete n[o];
277
+ for (o in e)
278
+ s = e[o], s !== n[o] && (i.setProperty(o, s), n[o] = s);
279
279
  return n;
280
280
  }
281
- function Te(e, t = {}, n, i) {
281
+ function Tt(t, e = {}, n, i) {
282
282
  const s = {};
283
283
  return w(
284
- () => s.children = I(e, t.children, s.children)
285
- ), w(() => typeof t.ref == "function" && p(t.ref, e)), w(() => Ie(e, t, n, !0, s, !0)), s;
284
+ () => s.children = I(t, e.children, s.children)
285
+ ), w(() => typeof e.ref == "function" && p(e.ref, t)), w(() => It(t, e, n, !0, s, !0)), s;
286
286
  }
287
- function p(e, t, n) {
288
- return B(() => e(t, n));
287
+ function p(t, e, n) {
288
+ return W(() => t(e, n));
289
289
  }
290
- function ee(e, t, n, i) {
291
- if (typeof t != "function") return I(e, t, i, n);
292
- w((s) => I(e, t(), s, n), i);
290
+ function tt(t, e, n, i) {
291
+ if (typeof e != "function") return I(t, e, i, n);
292
+ w((s) => I(t, e(), s, n), i);
293
293
  }
294
- function Ie(e, t, n, i, s = {}, r = !1) {
295
- t || (t = {});
294
+ function It(t, e, n, i, s = {}, o = !1) {
295
+ e || (e = {});
296
296
  for (const c in s)
297
- if (!(c in t)) {
297
+ if (!(c in e)) {
298
298
  if (c === "children") continue;
299
- s[c] = H(e, c, null, s[c], n, r, t);
299
+ s[c] = H(t, c, null, s[c], n, o, e);
300
300
  }
301
- for (const c in t) {
301
+ for (const c in e) {
302
302
  if (c === "children")
303
303
  continue;
304
- const o = t[c];
305
- s[c] = H(e, c, o, s[c], n, r, t);
304
+ const r = e[c];
305
+ s[c] = H(t, c, r, s[c], n, o, e);
306
306
  }
307
307
  }
308
- function ke(e) {
309
- let t, n;
310
- return !j() || !(t = g.registry.get(n = Me())) ? e() : (g.completed && g.completed.add(t), g.registry.delete(n), t);
308
+ function vt(t) {
309
+ let e, n;
310
+ return !j() || !(e = g.registry.get(n = Pt())) ? t() : (g.completed && g.completed.add(e), g.registry.delete(n), e);
311
311
  }
312
- function j(e) {
313
- return !!g.context && !g.done && (!e || e.isConnected);
312
+ function j(t) {
313
+ return !!g.context && !g.done && (!t || t.isConnected);
314
314
  }
315
- function Oe(e) {
316
- return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
315
+ function Mt(t) {
316
+ return t.toLowerCase().replace(/-([a-z])/g, (e, n) => n.toUpperCase());
317
317
  }
318
- function G(e, t, n) {
319
- const i = t.trim().split(/\s+/);
320
- for (let s = 0, r = i.length; s < r; s++)
321
- e.classList.toggle(i[s], n);
318
+ function G(t, e, n) {
319
+ const i = e.trim().split(/\s+/);
320
+ for (let s = 0, o = i.length; s < o; s++)
321
+ t.classList.toggle(i[s], n);
322
322
  }
323
- function H(e, t, n, i, s, r, c) {
324
- let o, l, f, a, y;
325
- if (t === "style") return K(e, n, i);
326
- if (t === "classList") return Ee(e, n, i);
323
+ function H(t, e, n, i, s, o, c) {
324
+ let r, l, a, f, y;
325
+ if (e === "style") return K(t, n, i);
326
+ if (e === "classList") return Et(t, n, i);
327
327
  if (n === i) return i;
328
- if (t === "ref")
329
- r || n(e);
330
- else if (t.slice(0, 3) === "on:") {
331
- const u = t.slice(3);
332
- i && e.removeEventListener(u, i, typeof i != "function" && i), n && e.addEventListener(u, n, typeof n != "function" && n);
333
- } else if (t.slice(0, 10) === "oncapture:") {
334
- const u = t.slice(10);
335
- i && e.removeEventListener(u, i, !0), n && e.addEventListener(u, n, !0);
336
- } else if (t.slice(0, 2) === "on") {
337
- const u = t.slice(2).toLowerCase(), $ = he.has(u);
328
+ if (e === "ref")
329
+ o || n(t);
330
+ else if (e.slice(0, 3) === "on:") {
331
+ const u = e.slice(3);
332
+ i && t.removeEventListener(u, i, typeof i != "function" && i), n && t.addEventListener(u, n, typeof n != "function" && n);
333
+ } else if (e.slice(0, 10) === "oncapture:") {
334
+ const u = e.slice(10);
335
+ i && t.removeEventListener(u, i, !0), n && t.addEventListener(u, n, !0);
336
+ } else if (e.slice(0, 2) === "on") {
337
+ const u = e.slice(2).toLowerCase(), $ = ht.has(u);
338
338
  if (!$ && i) {
339
339
  const C = Array.isArray(i) ? i[0] : i;
340
- e.removeEventListener(u, C);
340
+ t.removeEventListener(u, C);
341
341
  }
342
- ($ || n) && (Ce(e, u, n, $), $ && xe([u]));
343
- } else if (t.slice(0, 5) === "attr:")
344
- N(e, t.slice(5), n);
345
- else if (t.slice(0, 5) === "bool:")
346
- je(e, t.slice(5), n);
347
- else if ((y = t.slice(0, 5) === "prop:") || (f = de.has(t)) || !s && ((a = me(t, e.tagName)) || (l = ue.has(t))) || (o = e.nodeName.includes("-") || "is" in c)) {
342
+ ($ || n) && (Ct(t, u, n, $), $ && xt([u]));
343
+ } else if (e.slice(0, 5) === "attr:")
344
+ N(t, e.slice(5), n);
345
+ else if (e.slice(0, 5) === "bool:")
346
+ jt(t, e.slice(5), n);
347
+ else if ((y = e.slice(0, 5) === "prop:") || (a = dt.has(e)) || !s && ((f = mt(e, t.tagName)) || (l = ut.has(e))) || (r = t.nodeName.includes("-") || "is" in c)) {
348
348
  if (y)
349
- t = t.slice(5), l = !0;
350
- else if (j(e)) return n;
351
- t === "class" || t === "className" ? Ae(e, n) : o && !l && !f ? e[Oe(t)] = n : e[a || t] = n;
349
+ e = e.slice(5), l = !0;
350
+ else if (j(t)) return n;
351
+ e === "class" || e === "className" ? At(t, n) : r && !l && !a ? t[Mt(e)] = n : t[f || e] = n;
352
352
  } else {
353
- const u = s && t.indexOf(":") > -1 && $e[t.split(":")[0]];
354
- u ? we(e, u, t, n) : N(e, ye[t] || t, n);
353
+ const u = s && e.indexOf(":") > -1 && $t[e.split(":")[0]];
354
+ u ? wt(t, u, e, n) : N(t, yt[e] || e, n);
355
355
  }
356
356
  return n;
357
357
  }
358
- function Pe(e) {
359
- if (g.registry && g.events && g.events.find(([l, f]) => f === e))
358
+ function Ot(t) {
359
+ if (g.registry && g.events && g.events.find(([l, a]) => a === t))
360
360
  return;
361
- let t = e.target;
362
- const n = `$$${e.type}`, i = e.target, s = e.currentTarget, r = (l) => Object.defineProperty(e, "target", {
361
+ let e = t.target;
362
+ const n = `$$${t.type}`, i = t.target, s = t.currentTarget, o = (l) => Object.defineProperty(t, "target", {
363
363
  configurable: !0,
364
364
  value: l
365
365
  }), c = () => {
366
- const l = t[n];
367
- if (l && !t.disabled) {
368
- const f = t[`${n}Data`];
369
- if (f !== void 0 ? l.call(t, f, e) : l.call(t, e), e.cancelBubble) return;
366
+ const l = e[n];
367
+ if (l && !e.disabled) {
368
+ const a = e[`${n}Data`];
369
+ if (a !== void 0 ? l.call(e, a, t) : l.call(e, t), t.cancelBubble) return;
370
370
  }
371
- return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && r(t.host), !0;
372
- }, o = () => {
373
- for (; c() && (t = t._$host || t.parentNode || t.host); ) ;
371
+ return e.host && typeof e.host != "string" && !e.host._$host && e.contains(t.target) && o(e.host), !0;
372
+ }, r = () => {
373
+ for (; c() && (e = e._$host || e.parentNode || e.host); ) ;
374
374
  };
375
- if (Object.defineProperty(e, "currentTarget", {
375
+ if (Object.defineProperty(t, "currentTarget", {
376
376
  configurable: !0,
377
377
  get() {
378
- return t || document;
378
+ return e || document;
379
379
  }
380
- }), g.registry && !g.done && (g.done = _$HY.done = !0), e.composedPath) {
381
- const l = e.composedPath();
382
- r(l[0]);
383
- for (let f = 0; f < l.length - 2 && (t = l[f], !!c()); f++) {
384
- if (t._$host) {
385
- t = t._$host, o();
380
+ }), g.registry && !g.done && (g.done = _$HY.done = !0), t.composedPath) {
381
+ const l = t.composedPath();
382
+ o(l[0]);
383
+ for (let a = 0; a < l.length - 2 && (e = l[a], !!c()); a++) {
384
+ if (e._$host) {
385
+ e = e._$host, r();
386
386
  break;
387
387
  }
388
- if (t.parentNode === s)
388
+ if (e.parentNode === s)
389
389
  break;
390
390
  }
391
- } else o();
392
- r(i);
393
- }
394
- function I(e, t, n, i, s) {
395
- const r = j(e);
396
- if (r) {
397
- !n && (n = [...e.childNodes]);
398
- let o = [];
391
+ } else r();
392
+ o(i);
393
+ }
394
+ function I(t, e, n, i, s) {
395
+ const o = j(t);
396
+ if (o) {
397
+ !n && (n = [...t.childNodes]);
398
+ let r = [];
399
399
  for (let l = 0; l < n.length; l++) {
400
- const f = n[l];
401
- f.nodeType === 8 && f.data.slice(0, 2) === "!$" ? f.remove() : o.push(f);
400
+ const a = n[l];
401
+ a.nodeType === 8 && a.data.slice(0, 2) === "!$" ? a.remove() : r.push(a);
402
402
  }
403
- n = o;
403
+ n = r;
404
404
  }
405
405
  for (; typeof n == "function"; ) n = n();
406
- if (t === n) return n;
407
- const c = typeof t;
408
- if (e = e, c === "string" || c === "number") {
409
- if (r || c === "number" && (t = t.toString(), t === n))
406
+ if (e === n) return n;
407
+ const c = typeof e;
408
+ if (t = t, c === "string" || c === "number") {
409
+ if (o || c === "number" && (e = e.toString(), e === n))
410
410
  return n;
411
- n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
412
- } else if (t == null || c === "boolean") {
413
- if (r) return n;
414
- n = k(e, n, i);
411
+ n !== "" && typeof n == "string" ? n = t.firstChild.data = e : n = t.textContent = e;
412
+ } else if (e == null || c === "boolean") {
413
+ if (o) return n;
414
+ n = v(t, n, i);
415
415
  } else {
416
416
  if (c === "function")
417
417
  return w(() => {
418
- let o = t();
419
- for (; typeof o == "function"; ) o = o();
420
- n = I(e, o, n, i);
418
+ let r = e();
419
+ for (; typeof r == "function"; ) r = r();
420
+ n = I(t, r, n, i);
421
421
  }), () => n;
422
- if (Array.isArray(t)) {
423
- const o = [], l = n && Array.isArray(n);
424
- if (L(o, t, n, s))
425
- return w(() => n = I(e, o, n, i, !0)), () => n;
426
- if (r)
427
- return o.length ? n = [...e.childNodes] : n;
428
- o.length === 0 ? n = k(e, n, i) : l ? n.length === 0 ? _(e, o, i) : Se(e, n, o) : (n && k(e), _(e, o)), n = o;
429
- } else if (t.nodeType) {
430
- if (r && t.parentNode) return n = t;
431
- Array.isArray(n) ? k(e, n, null, t) : n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild), n = t;
422
+ if (Array.isArray(e)) {
423
+ const r = [], l = n && Array.isArray(n);
424
+ if (k(r, e, n, s))
425
+ return w(() => n = I(t, r, n, i, !0)), () => n;
426
+ if (o)
427
+ return r.length ? n = [...t.childNodes] : n;
428
+ r.length === 0 ? n = v(t, n, i) : l ? n.length === 0 ? _(t, r, i) : St(t, n, r) : (n && v(t), _(t, r)), n = r;
429
+ } else if (e.nodeType) {
430
+ if (o && e.parentNode) return n = e;
431
+ Array.isArray(n) ? v(t, n, null, e) : n == null || n === "" || !t.firstChild ? t.appendChild(e) : t.replaceChild(e, t.firstChild), n = e;
432
432
  }
433
433
  }
434
434
  return n;
435
435
  }
436
- function L(e, t, n, i) {
436
+ function k(t, e, n, i) {
437
437
  let s = !1;
438
- for (let r = 0, c = t.length; r < c; r++) {
439
- let o = t[r], l = n && n[e.length], f;
440
- if (!(o == null || o === !0 || o === !1)) if ((f = typeof o) == "object" && o.nodeType)
441
- e.push(o);
442
- else if (Array.isArray(o))
443
- s = L(e, o, l) || s;
444
- else if (f === "function")
438
+ for (let o = 0, c = e.length; o < c; o++) {
439
+ let r = e[o], l = n && n[t.length], a;
440
+ if (!(r == null || r === !0 || r === !1)) if ((a = typeof r) == "object" && r.nodeType)
441
+ t.push(r);
442
+ else if (Array.isArray(r))
443
+ s = k(t, r, l) || s;
444
+ else if (a === "function")
445
445
  if (i) {
446
- for (; typeof o == "function"; ) o = o();
447
- s = L(
448
- e,
449
- Array.isArray(o) ? o : [o],
446
+ for (; typeof r == "function"; ) r = r();
447
+ s = k(
448
+ t,
449
+ Array.isArray(r) ? r : [r],
450
450
  Array.isArray(l) ? l : [l]
451
451
  ) || s;
452
452
  } else
453
- e.push(o), s = !0;
453
+ t.push(r), s = !0;
454
454
  else {
455
- const a = String(o);
456
- l && l.nodeType === 3 && l.data === a ? e.push(l) : e.push(document.createTextNode(a));
455
+ const f = String(r);
456
+ l && l.nodeType === 3 && l.data === f ? t.push(l) : t.push(document.createTextNode(f));
457
457
  }
458
458
  }
459
459
  return s;
460
460
  }
461
- function _(e, t, n = null) {
462
- for (let i = 0, s = t.length; i < s; i++) e.insertBefore(t[i], n);
461
+ function _(t, e, n = null) {
462
+ for (let i = 0, s = e.length; i < s; i++) t.insertBefore(e[i], n);
463
463
  }
464
- function k(e, t, n, i) {
465
- if (n === void 0) return e.textContent = "";
464
+ function v(t, e, n, i) {
465
+ if (n === void 0) return t.textContent = "";
466
466
  const s = i || document.createTextNode("");
467
- if (t.length) {
468
- let r = !1;
469
- for (let c = t.length - 1; c >= 0; c--) {
470
- const o = t[c];
471
- if (s !== o) {
472
- const l = o.parentNode === e;
473
- !r && !c ? l ? e.replaceChild(s, o) : e.insertBefore(s, n) : l && o.remove();
474
- } else r = !0;
467
+ if (e.length) {
468
+ let o = !1;
469
+ for (let c = e.length - 1; c >= 0; c--) {
470
+ const r = e[c];
471
+ if (s !== r) {
472
+ const l = r.parentNode === t;
473
+ !o && !c ? l ? t.replaceChild(s, r) : t.insertBefore(s, n) : l && r.remove();
474
+ } else o = !0;
475
475
  }
476
- } else e.insertBefore(s, n);
476
+ } else t.insertBefore(s, n);
477
477
  return [s];
478
478
  }
479
- function Me() {
479
+ function Pt() {
480
480
  return g.getNextContextId();
481
481
  }
482
- const ze = "http://www.w3.org/2000/svg";
483
- function Ne(e, t = !1) {
484
- return t ? document.createElementNS(ze, e) : document.createElement(e);
482
+ const zt = "http://www.w3.org/2000/svg";
483
+ function Nt(t, e = !1) {
484
+ return e ? document.createElementNS(zt, t) : document.createElement(t);
485
485
  }
486
- function Le(e) {
487
- const [t, n] = X(e, ["component"]), i = O(() => t.component);
488
- return O(() => {
489
- const s = i();
490
- switch (typeof s) {
486
+ function kt(t, e) {
487
+ const n = M(t);
488
+ return M(() => {
489
+ const i = n();
490
+ switch (typeof i) {
491
491
  case "function":
492
- return B(() => s(n));
492
+ return W(() => i(e));
493
493
  case "string":
494
- const r = be.has(s), c = g.context ? ke() : Ne(s, r);
495
- return Te(c, n, r), c;
494
+ const s = bt.has(i), o = g.context ? vt() : Nt(i, s);
495
+ return Tt(o, e, s), o;
496
496
  }
497
497
  });
498
498
  }
499
- function A(e) {
500
- return e ?? void 0;
499
+ function Lt(t) {
500
+ const [, e] = X(t, ["component"]);
501
+ return kt(() => t.component, e);
501
502
  }
502
- function m(e, t) {
503
- return Object.keys(e).filter((n) => !t.includes(n)).reduce((n, i) => Object.defineProperty({
503
+ function A(t) {
504
+ return t ?? void 0;
505
+ }
506
+ function m(t, e) {
507
+ return Object.keys(t).filter((n) => !e.includes(n)).reduce((n, i) => Object.defineProperty({
504
508
  ...n
505
509
  }, i, {
506
510
  get() {
507
- return e[i];
511
+ return t[i];
508
512
  },
509
513
  configurable: !0,
510
514
  enumerable: !0
511
515
  }), {});
512
516
  }
513
- function h(e, t) {
514
- return T(Le, d({
517
+ function h(t, e) {
518
+ return T(Lt, d({
515
519
  get component() {
516
- return e();
520
+ return t();
517
521
  }
518
- }, t));
522
+ }, e));
519
523
  }
520
- function b(e) {
521
- return Object.values(e).every((t) => typeof t == "function") ? Object.keys(e).reduce((t, n) => {
522
- const i = e[n];
523
- return Object.defineProperty(t, n, {
524
+ function b(t) {
525
+ return Object.values(t).every((e) => typeof e == "function") ? Object.keys(t).reduce((e, n) => {
526
+ const i = t[n];
527
+ return Object.defineProperty(e, n, {
524
528
  get() {
525
529
  return i();
526
530
  },
@@ -529,185 +533,185 @@ function b(e) {
529
533
  });
530
534
  }, {}) : new Error("Please provide an object with accessor values only.");
531
535
  }
532
- const te = /^--\D{1}.{0,100}$/;
533
- function ne(e) {
534
- return te.test(e);
536
+ const et = /^--\D{1}.{0,100}$/;
537
+ function nt(t) {
538
+ return et.test(t);
535
539
  }
536
- function D(e) {
537
- return typeof e != "string" ? !1 : [/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/, /^var\(--\D{1}.{0,100}\)$/, te].some((t) => t.test(e));
540
+ function B(t) {
541
+ return typeof t != "string" ? !1 : [/^[0-9]{0,10000}\.?[0-9]{1,10000}(vmin|vmax|vh|vw|%|ch|ex|em|rem|in|cm|mm|pt|pc|px)$/, /^var\(--\D{1}.{0,100}\)$/, et].some((e) => e.test(t));
538
542
  }
539
543
  const {
540
- sizeXxs: We,
541
- sizeXs: Be,
542
- sizeSm: De,
543
- sizeMd: Re,
544
- sizeLg: ve,
545
- sizeXl: Ge,
546
- sizeXxl: He,
547
- sizeContent1: _e,
548
- sizeContent2: Fe,
549
- sizeContent3: Ve,
550
- sizeHeader1: Xe,
551
- sizeHeader2: Ue,
552
- sizeHeader3: qe,
553
- size000: Qe,
554
- size00: Ye,
555
- size1: Je,
556
- size2: Ze,
557
- size3: Ke,
558
- size4: pe,
559
- size5: et,
560
- size6: tt,
561
- size7: nt,
562
- size8: it,
563
- size9: st,
564
- size10: rt,
565
- size11: ot,
566
- size12: ct,
567
- size13: lt,
568
- size14: ft,
569
- size15: at
570
- } = oe, ut = {
571
- size000: Qe,
572
- size00: Ye,
573
- size1: Je,
574
- size2: Ze,
575
- size3: Ke,
576
- size4: pe,
577
- size5: et,
578
- size6: tt,
579
- size7: nt,
580
- size8: it,
581
- size9: st,
582
- size10: rt,
583
- size11: ot,
584
- size12: ct,
585
- size13: lt,
586
- size14: ft,
587
- size15: at
588
- }, dt = {
589
- sizeXxs: We,
590
- sizeXs: Be,
591
- sizeSm: De,
592
- sizeMd: Re,
593
- sizeLg: ve,
594
- sizeXl: Ge,
595
- sizeXxl: He,
596
- sizeContent1: _e,
597
- sizeContent2: Fe,
598
- sizeContent3: Ve,
599
- sizeHeader1: Xe,
600
- sizeHeader2: Ue,
601
- sizeHeader3: qe
602
- }, yt = ut, gt = dt;
603
- function ie(e) {
604
- return e.reduce((t, [n, i]) => ({
605
- ...t,
544
+ sizeXxs: Wt,
545
+ sizeXs: Bt,
546
+ sizeSm: Dt,
547
+ sizeMd: Rt,
548
+ sizeLg: Gt,
549
+ sizeXl: Ht,
550
+ sizeXxl: _t,
551
+ sizeContent1: Ft,
552
+ sizeContent2: Vt,
553
+ sizeContent3: Xt,
554
+ sizeHeader1: Ut,
555
+ sizeHeader2: qt,
556
+ sizeHeader3: Qt,
557
+ size000: Yt,
558
+ size00: Jt,
559
+ size1: Zt,
560
+ size2: Kt,
561
+ size3: pt,
562
+ size4: te,
563
+ size5: ee,
564
+ size6: ne,
565
+ size7: ie,
566
+ size8: se,
567
+ size9: oe,
568
+ size10: re,
569
+ size11: ce,
570
+ size12: le,
571
+ size13: ae,
572
+ size14: fe,
573
+ size15: ue
574
+ } = rt, de = {
575
+ size000: Yt,
576
+ size00: Jt,
577
+ size1: Zt,
578
+ size2: Kt,
579
+ size3: pt,
580
+ size4: te,
581
+ size5: ee,
582
+ size6: ne,
583
+ size7: ie,
584
+ size8: se,
585
+ size9: oe,
586
+ size10: re,
587
+ size11: ce,
588
+ size12: le,
589
+ size13: ae,
590
+ size14: fe,
591
+ size15: ue
592
+ }, ye = {
593
+ sizeXxs: Wt,
594
+ sizeXs: Bt,
595
+ sizeSm: Dt,
596
+ sizeMd: Rt,
597
+ sizeLg: Gt,
598
+ sizeXl: Ht,
599
+ sizeXxl: _t,
600
+ sizeContent1: Ft,
601
+ sizeContent2: Vt,
602
+ sizeContent3: Xt,
603
+ sizeHeader1: Ut,
604
+ sizeHeader2: qt,
605
+ sizeHeader3: Qt
606
+ }, ge = de, me = ye;
607
+ function it(t) {
608
+ return t.reduce((e, [n, i]) => ({
609
+ ...e,
606
610
  [n]: i
607
611
  }), {});
608
612
  }
609
- function F(e, t) {
610
- if (t !== void 0)
611
- return typeof t == "number" && t >= 0 ? `${t}px` : typeof t == "string" && D(t) ? ne(t) ? `var(${t})` : t : A(S(e, t));
613
+ function F(t, e) {
614
+ if (e !== void 0)
615
+ return typeof e == "number" && e >= 0 ? `${e}px` : typeof e == "string" && B(e) ? nt(e) ? `var(${e})` : e : A(S(t, e));
612
616
  }
613
- function S(e, t) {
614
- const n = e.space ?? yt, i = ie(Object.entries(n).map(([s, r]) => [s, typeof r == "number" ? `${r}px` : r]));
615
- return A(i[t]);
617
+ function S(t, e) {
618
+ const n = t.space ?? ge, i = it(Object.entries(n).map(([s, o]) => [s, typeof o == "number" ? `${o}px` : o]));
619
+ return A(i[e]);
616
620
  }
617
- function M(e, t) {
618
- if (t === void 0) return;
619
- if (typeof t == "number" && t >= 0) return `${t}px`;
620
- if (typeof t == "string" && D(t)) return ne(t) ? `var(${t})` : t;
621
- const n = e.sizes ?? gt, i = ie(Object.entries(n).map(([s, r]) => [s, typeof r == "number" ? `${r}px` : r]));
622
- return A(i[t]);
621
+ function P(t, e) {
622
+ if (e === void 0) return;
623
+ if (typeof e == "number" && e >= 0) return `${e}px`;
624
+ if (typeof e == "string" && B(e)) return nt(e) ? `var(${e})` : e;
625
+ const n = t.sizes ?? me, i = it(Object.entries(n).map(([s, o]) => [s, typeof o == "number" ? `${o}px` : o]));
626
+ return A(i[e]);
623
627
  }
624
- function mt(e) {
625
- return e === void 0 ? "100%" : typeof e == "number" ? `${e}px` : e;
628
+ function he(t) {
629
+ return t === void 0 ? "100%" : typeof t == "number" ? `${t}px` : t;
626
630
  }
627
- function vt(e) {
628
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), n = () => `--maxWidth: ${mt(e.maxWidth)};`, i = () => e.centerText ? "center-text" : "", s = () => e.centerChildren ? "center-children" : "", r = () => [i(), s()].filter(Boolean).join(" "), c = () => [t(), n()].join("; ");
629
- return h(() => e.as ?? "div", d(m(e, ["as", "maxWidth", "centerText", "centerChildren"]), b({
631
+ function Ge(t) {
632
+ const e = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((r, [l, a]) => r + `${l}:${a};`, ""), n = () => `--maxWidth: ${he(t.maxWidth)};`, i = () => t.centerText ? "center-text" : "", s = () => t.centerChildren ? "center-children" : "", o = () => [i(), s()].filter(Boolean).join(" "), c = () => [e(), n()].join("; ");
633
+ return h(() => t.as ?? "div", d(m(t, ["as", "maxWidth", "centerText", "centerChildren"]), b({
630
634
  style: c,
631
- "data-bedrock-center": r
635
+ "data-br-center": o
632
636
  })));
633
637
  }
634
- const se = ce({});
635
- function Gt(e) {
636
- return T(se.Provider, {
638
+ const st = ct({});
639
+ function He(t) {
640
+ return T(st.Provider, {
637
641
  get value() {
638
- return e.theme;
642
+ return t.theme;
639
643
  },
640
644
  get children() {
641
- return e.children;
645
+ return t.children;
642
646
  }
643
647
  });
644
648
  }
645
649
  function x() {
646
650
  try {
647
- return le(se);
651
+ return lt(st);
648
652
  } catch {
649
653
  return {};
650
654
  }
651
655
  }
652
- function ht(e, t) {
653
- return M(e, t);
656
+ function be(t, e) {
657
+ return P(t, e);
654
658
  }
655
- function Ht(e) {
656
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${ht(t, e.minItemWidth)}`, r = () => e.noStretchedColumns === !0 ? "no-stretched-columns" : "", c = () => [n(), i(), s()].join("; ");
657
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "minItemWidth", "noStretchedColumns"]), b({
659
+ function _e(t) {
660
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((r, [l, a]) => r + `${l}:${a};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${be(e, t.minItemWidth)}`, o = () => t.noStretchedColumns === !0 ? "no-stretched-columns" : "", c = () => [n(), i(), s()].join("; ");
661
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter", "minItemWidth", "noStretchedColumns"]), b({
658
662
  style: c,
659
- "data-bedrock-column-drop": r
663
+ "data-br-column-drop": o
660
664
  })));
661
665
  }
662
- function _t(e, t) {
663
- const [n, i] = P(!1), [s, r] = P();
666
+ function Fe(t, e) {
667
+ const [n, i] = O(!1), [s, o] = O();
664
668
  return U(() => {
665
669
  Y();
666
670
  }), q(() => {
667
671
  if (A(s()) === void 0) return;
668
- t && t(s());
669
- const c = J(s(), (o) => {
670
- var f;
671
- const l = ((f = o.borderBoxSize) == null ? void 0 : f.inlineSize) ?? o.contentRect.width;
672
+ e && e(s());
673
+ const c = J(s(), (r) => {
674
+ var a;
675
+ const l = ((a = r.borderBoxSize) == null ? void 0 : a.inlineSize) ?? r.contentRect.width;
672
676
  if (l > 0) {
673
- const a = l <= e;
674
- i(a);
677
+ const f = l <= t;
678
+ i(f);
675
679
  }
676
680
  });
677
681
  Q(c);
678
- }), [n, r];
682
+ }), [n, o];
679
683
  }
680
- function bt(e) {
681
- return Array.isArray(e) && e.length === 2 && e.every(Number.isFinite) || typeof e == "string" && /^\d{1,1000} {0,1}\/ {0,1}\d{1,1000}$/.test(e);
684
+ function $e(t) {
685
+ return Array.isArray(t) && t.length === 2 && t.every(Number.isFinite) || typeof t == "string" && /^\d{1,1000} {0,1}\/ {0,1}\d{1,1000}$/.test(t);
682
686
  }
683
- function $t(e) {
684
- return Array.isArray(e) ? e.join("/") : e;
687
+ function Se(t) {
688
+ return Array.isArray(t) ? t.join("/") : t;
685
689
  }
686
- function St(e) {
687
- return bt(e) ? $t(e) : void 0;
690
+ function xe(t) {
691
+ return $e(t) ? Se(t) : void 0;
688
692
  }
689
- function Ft(e) {
690
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => St(e.ratio), i = () => n() ? `--ratio: ${n()}` : "", s = () => typeof e.position == "string" ? `--position: ${e.position}` : "50%", r = () => [t(), i(), s()].join("; ");
691
- return h(() => e.as ?? "div", d(m(e, ["as", "ratio", "position"]), b({
692
- style: r,
693
- "data-bedrock-frame": () => ""
693
+ function Ve(t) {
694
+ const e = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((c, [r, l]) => c + `${r}:${l};`, ""), n = () => xe(t.ratio), i = () => n() ? `--ratio: ${n()}` : "", s = () => typeof t.position == "string" ? `--position: ${t.position}` : "50%", o = () => [e(), i(), s()].join("; ");
695
+ return h(() => t.as ?? "div", d(m(t, ["as", "ratio", "position"]), b({
696
+ style: o,
697
+ "data-br-frame": () => ""
694
698
  })));
695
699
  }
696
- function xt(e) {
697
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth ?? 0}px`};`, r = () => [n(), i(), s()].join("; ");
698
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "minItemWidth"]), b({
699
- style: r,
700
- "data-bedrock-grid": () => e.variant === "masonry" ? "variant:masonry" : ""
700
+ function we(t) {
701
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((c, [r, l]) => c + `${r}:${l};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => `--minItemWidth: ${typeof t.minItemWidth == "string" ? t.minItemWidth : `${t.minItemWidth ?? 0}px`};`, o = () => [n(), i(), s()].join("; ");
702
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter", "minItemWidth"]), b({
703
+ style: o,
704
+ "data-br-grid": () => t.variant === "masonry" ? "variant:masonry" : ""
701
705
  })));
702
706
  }
703
707
  const E = 96;
704
- function re(e) {
705
- const t = String(e), n = parseFloat(t), [, i] = t.match(/[\d.\-+]*\s*(.*)/) ?? ["", ""];
708
+ function ot(t) {
709
+ const e = String(t), n = parseFloat(e), [, i] = e.match(/[\d.\-+]*\s*(.*)/) ?? ["", ""];
706
710
  return [n, i];
707
711
  }
708
- function R(e, t) {
709
- if (!e) return;
710
- const n = t ?? document.body, i = (e ?? "px").trim().toLowerCase();
712
+ function D(t, e) {
713
+ if (!t) return;
714
+ const n = e ?? document.body, i = (t ?? "px").trim().toLowerCase();
711
715
  switch (i) {
712
716
  case "vmin":
713
717
  case "vmax":
@@ -717,11 +721,11 @@ function R(e, t) {
717
721
  return;
718
722
  case "ch":
719
723
  case "ex":
720
- return wt(i, n);
724
+ return je(i, n);
721
725
  case "em":
722
- return W(n, "font-size");
726
+ return L(n, "font-size");
723
727
  case "rem":
724
- return W(document.body, "font-size");
728
+ return L(document.body, "font-size");
725
729
  case "in":
726
730
  return E;
727
731
  case "cm":
@@ -735,95 +739,95 @@ function R(e, t) {
735
739
  case "px":
736
740
  return 1;
737
741
  default: {
738
- const [s, r] = re(i);
742
+ const [s, o] = ot(i);
739
743
  if (isNaN(s)) return;
740
- if (!r) return s;
741
- const c = R(r, t);
744
+ if (!o) return s;
745
+ const c = D(o, e);
742
746
  return typeof c == "number" ? s * c : void 0;
743
747
  }
744
748
  }
745
749
  }
746
- function W(e, t) {
747
- const [n, i] = re(
748
- getComputedStyle(e).getPropertyValue(t)
750
+ function L(t, e) {
751
+ const [n, i] = ot(
752
+ getComputedStyle(t).getPropertyValue(e)
749
753
  );
750
- return n * (R(i, e) ?? 1);
754
+ return n * (D(i, t) ?? 1);
751
755
  }
752
- function wt(e, t) {
756
+ function je(t, e) {
753
757
  const n = document.createElement("div");
754
- n.style.height = "128" + e, t.appendChild(n);
755
- const i = W(n, "height") / 128;
756
- return t.removeChild(n), i;
758
+ n.style.height = "128" + t, e.appendChild(n);
759
+ const i = L(n, "height") / 128;
760
+ return e.removeChild(n), i;
757
761
  }
758
- var jt = /* @__PURE__ */ Z("<div>");
759
- const z = 1, At = typeof window == "object" && typeof document == "object" && document.nodeType === 9, Ct = (e) => {
760
- const [t, n] = P(1), [i, s] = P(), r = x();
762
+ var Ae = /* @__PURE__ */ Z("<div>");
763
+ const z = 1, Ce = typeof window == "object" && typeof document == "object" && document.nodeType === 9, Ee = (t) => {
764
+ const [e, n] = O(1), [i, s] = O(), o = x();
761
765
  return U(() => (Y(), 0)), q(() => {
762
766
  const c = A(i());
763
767
  if (c === void 0) return;
764
- const o = J(c, ({
768
+ const r = J(c, ({
765
769
  target: l
766
770
  }) => {
767
771
  n(1);
768
- const f = e.gutter ? S(r, e.gutter) ?? "1px" : "1px", a = At ? R(f, l) : void 0, y = Math.max(a ?? z, z), [u] = Array.from(l.children), $ = 1 + Math.min(l.scrollHeight, u.scrollHeight), C = Math.max(Math.ceil($ / y), z);
772
+ const a = t.gutter ? S(o, t.gutter) ?? "1px" : "1px", f = Ce ? D(a, l) : void 0, y = Math.max(f ?? z, z), [u] = Array.from(l.children), $ = 1 + Math.min(l.scrollHeight, u.scrollHeight), C = Math.max(Math.ceil($ / y), z);
769
773
  return n(C), 0;
770
774
  });
771
- return Q(o), 0;
775
+ return Q(r), 0;
772
776
  }), (() => {
773
- var c = jt();
774
- return p(s, c), ee(c, () => e.children), w((o) => K(c, `grid-row: span ${t()};`, o)), c;
777
+ var c = Ae();
778
+ return p(s, c), tt(c, () => t.children), w((r) => K(c, `grid-row: span ${e()};`, r)), c;
775
779
  })();
776
- }, Vt = (e) => {
777
- const t = fe(() => e.children), i = [].concat(t()).filter(Boolean).map((s) => T(Ct, {
780
+ }, Xe = (t) => {
781
+ const e = at(() => t.children), i = [].concat(e()).filter(Boolean).map((s) => T(Ee, {
778
782
  get gutter() {
779
- return e.gutter;
783
+ return t.gutter;
780
784
  },
781
785
  children: s
782
786
  }));
783
- return T(xt, d({
787
+ return T(we, d({
784
788
  style: "grid-template-rows: 1px;"
785
- }, e, {
789
+ }, t, {
786
790
  children: i
787
791
  }));
788
- }, Et = {
792
+ }, Te = {
789
793
  start: "justify:start",
790
794
  end: "justify:end",
791
795
  center: "justify:center",
792
796
  "space-between": "justify:space-between",
793
797
  "space-around": "justify:space-around"
794
- }, Tt = {
798
+ }, Ie = {
795
799
  start: "align:start",
796
800
  end: "align:end",
797
801
  center: "align:center",
798
802
  stretch: "align:stretch"
799
803
  };
800
- function Xt(e) {
801
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => e.justify !== void 0 ? Et[e.justify] : void 0, r = () => e.align !== void 0 ? Tt[e.align] : void 0, c = () => [n(), i()].join("; "), o = () => [s(), r()].filter(Boolean).join(" ");
802
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "justify", "align"]), b({
804
+ function Ue(t) {
805
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((l, [a, f]) => l + `${a}:${f};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => t.justify !== void 0 ? Te[t.justify] : void 0, o = () => t.align !== void 0 ? Ie[t.align] : void 0, c = () => [n(), i()].join("; "), r = () => [s(), o()].filter(Boolean).join(" ");
806
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter", "justify", "align"]), b({
803
807
  style: c,
804
- "data-bedrock-inline-cluster": o
808
+ "data-br-inline-cluster": r
805
809
  })));
806
810
  }
807
- const It = {
811
+ const ve = {
808
812
  start: "justify:start",
809
813
  end: "justify:end",
810
814
  center: "justify:center",
811
815
  "space-between": "justify:space-between",
812
816
  "space-around": "justify:space-around"
813
- }, kt = {
817
+ }, Me = {
814
818
  start: "align:start",
815
819
  end: "align:end",
816
820
  center: "align:center",
817
821
  stretch: "align:stretch"
818
822
  };
819
- function Ut(e) {
820
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((y, [u, $]) => y + `${u}:${$};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, r = () => e.switchAt ? `--switchAt: ${M(t, e.switchAt) ?? "0px"};` : "", c = () => e.justify !== void 0 ? It[e.justify] : void 0, o = () => e.align !== void 0 ? kt[e.align] : void 0, l = () => e.stretch ? `stretch:${e.stretch}` : void 0, f = () => [n(), i(), r(), s()].join("; "), a = () => [c(), o(), l()].filter(Boolean).join(" ");
821
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "justify", "align", "stretch", "switchAt"]), b({
822
- style: f,
823
- "data-bedrock-inline": a
823
+ function qe(t) {
824
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((y, [u, $]) => y + `${u}:${$};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => t.minItemWidth ? `--minItemWidth: ${typeof t.minItemWidth == "string" ? t.minItemWidth : `${t.minItemWidth}px`};` : void 0, o = () => t.switchAt ? `--switchAt: ${P(e, t.switchAt) ?? "0px"};` : "", c = () => t.justify !== void 0 ? ve[t.justify] : void 0, r = () => t.align !== void 0 ? Me[t.align] : void 0, l = () => t.stretch ? `stretch:${t.stretch}` : void 0, a = () => [n(), i(), o(), s()].join("; "), f = () => [c(), r(), l()].filter(Boolean).join(" ");
825
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter", "justify", "align", "stretch", "switchAt"]), b({
826
+ style: a,
827
+ "data-br-inline": f
824
828
  })));
825
829
  }
826
- const Ot = (e) => ({
830
+ const Oe = (t) => ({
827
831
  left: "padding-inline-start",
828
832
  right: "padding-inline-end",
829
833
  top: "padding-block-start",
@@ -832,28 +836,28 @@ const Ot = (e) => ({
832
836
  inlineEnd: "padding-inline-end",
833
837
  blockStart: "padding-block-start",
834
838
  blockEnd: "padding-block-end"
835
- })[e], Pt = (e, t) => {
836
- if (!t) return "";
837
- if (Array.isArray(t) && t.length > 4)
839
+ })[t], Pe = (t, e) => {
840
+ if (!e) return "";
841
+ if (Array.isArray(e) && e.length > 4)
838
842
  throw new Error("padding arrays can only be 4 or less in length");
839
- const n = typeof t == "object" && !Array.isArray(t) ? Object.entries(t).reduce((i, [s, r]) => ({
843
+ const n = typeof e == "object" && !Array.isArray(e) ? Object.entries(e).reduce((i, [s, o]) => ({
840
844
  ...i,
841
- [Ot(s)]: F(e, r) ?? "0px"
845
+ [Oe(s)]: F(t, o) ?? "0px"
842
846
  }), {}) : {
843
- padding: Array.from(Array.isArray(t) ? t : [t]).map((i) => F(e, i) ?? "0px").join(" ")
847
+ padding: Array.from(Array.isArray(e) ? e : [e]).map((i) => F(t, i) ?? "0px").join(" ")
844
848
  };
845
- return Object.entries(n).reduce((i, [s, r]) => i + `${s}:${r};`, "");
849
+ return Object.entries(n).reduce((i, [s, o]) => i + `${s}:${o};`, "");
846
850
  };
847
- function qt(e) {
848
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((r, [c, o]) => r + `${c}:${o};`, ""), i = () => Pt(t, e.padding), s = () => [n(), i()].join("; ");
849
- return h(() => e.as ?? "div", d(m(e, ["as", "padding"]), b({
851
+ function Qe(t) {
852
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((o, [c, r]) => o + `${c}:${r};`, ""), i = () => Pe(e, t.padding), s = () => [n(), i()].join("; ");
853
+ return h(() => t.as ?? "div", d(m(t, ["as", "padding"]), b({
850
854
  style: s,
851
- "data-bedrock-padbox": () => ""
855
+ "data-br-padbox": () => ""
852
856
  })));
853
857
  }
854
- function Qt(e) {
855
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => {
856
- switch (e.snapType) {
858
+ function Ye(t) {
859
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((c, [r, l]) => c + `${r}:${l};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => {
860
+ switch (t.snapType) {
857
861
  case "none":
858
862
  return "snapType:none";
859
863
  case "proximity":
@@ -863,10 +867,10 @@ function Qt(e) {
863
867
  default:
864
868
  return "snapType:none";
865
869
  }
866
- }, r = () => [n(), i()].join("; ");
867
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter"]), b({
868
- style: r,
869
- "data-bedrock-reel": s
870
+ }, o = () => [n(), i()].join("; ");
871
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter"]), b({
872
+ style: o,
873
+ "data-br-reel": s
870
874
  })));
871
875
  }
872
876
  const V = {
@@ -878,85 +882,85 @@ const V = {
878
882
  "auto-start": "fraction:auto-start",
879
883
  "auto-end": "fraction:auto-end"
880
884
  };
881
- function Yt(e) {
882
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((l, [f, a]) => l + `${f}:${a};`, ""), i = () => e.switchAt ? `--switchAt: ${M(t, e.switchAt) ?? "0px"};` : "", s = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, r = () => V[e.fraction ?? "1/2"] ?? V["1/2"], c = () => e.minItemWidth ? `--minItemWidth: ${typeof e.minItemWidth == "string" ? e.minItemWidth : `${e.minItemWidth}px`};` : void 0, o = () => [n(), s(), i(), c()].join("; ");
883
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "fraction"]), b({
884
- style: o,
885
- "data-bedrock-split": r
885
+ function Je(t) {
886
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((l, [a, f]) => l + `${a}:${f};`, ""), i = () => t.switchAt ? `--switchAt: ${P(e, t.switchAt) ?? "0px"};` : "", s = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, o = () => V[t.fraction ?? "1/2"] ?? V["1/2"], c = () => t.minItemWidth ? `--minItemWidth: ${typeof t.minItemWidth == "string" ? t.minItemWidth : `${t.minItemWidth}px`};` : void 0, r = () => [n(), s(), i(), c()].join("; ");
887
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter", "fraction"]), b({
888
+ style: r,
889
+ "data-br-split": o
886
890
  })));
887
891
  }
888
- const Mt = {
892
+ const ze = {
889
893
  start: "align:start",
890
894
  end: "align:end",
891
895
  center: "align:center",
892
896
  stretch: "align:stretch"
893
897
  };
894
- function Jt(e) {
895
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => [n(), i()].join("; "), r = () => e.align !== void 0 ? Mt[e.align] : void 0, c = () => [r()].filter(Boolean).join(" ");
896
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter"]), b({
898
+ function Ze(t) {
899
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((r, [l, a]) => r + `${l}:${a};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => [n(), i()].join("; "), o = () => t.align !== void 0 ? ze[t.align] : void 0, c = () => [o()].filter(Boolean).join(" ");
900
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter"]), b({
897
901
  style: s,
898
- "data-bedrock-stack": c
902
+ "data-br-stack": c
899
903
  })));
900
904
  }
901
- var zt = /* @__PURE__ */ Z("<div data-bedrock-cover-centered>");
902
- function Nt(e) {
903
- return typeof e == "number" ? `${e}px` : e && D(e) ? e : "100vh";
905
+ var Ne = /* @__PURE__ */ Z("<div data-br-cover-centered>");
906
+ function ke(t) {
907
+ return typeof t == "number" ? `${t}px` : t && B(t) ? t : "100vh";
904
908
  }
905
- function Lt(e) {
906
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--minHeight: ${Nt(e.minHeight)};`, r = () => e.variant === "stretch-content" || e.stretchContent === !0 ? "stretch-content" : "", c = () => [n(), i(), s()].join("; ");
907
- return h(() => e.as ?? "div", d(m(e, ["as", "minHeight", "stretchContent"]), b({
909
+ function Le(t) {
910
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((r, [l, a]) => r + `${l}:${a};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => `--minHeight: ${ke(t.minHeight)};`, o = () => t.variant === "stretch-content" || t.stretchContent === !0 ? "stretch-content" : "", c = () => [n(), i(), s()].join("; ");
911
+ return h(() => t.as ?? "div", d(m(t, ["as", "minHeight", "stretchContent"]), b({
908
912
  style: c,
909
- "data-bedrock-cover": r
913
+ "data-br-cover": o
910
914
  })));
911
915
  }
912
- function Zt(e) {
913
- const [t, n] = X(e, ["children", "top", "bottom"]);
914
- return T(Lt, d(n, {
916
+ function Ke(t) {
917
+ const [e, n] = X(t, ["children", "top", "bottom"]);
918
+ return T(Le, d(n, {
915
919
  get children() {
916
- return [O(() => t.top), (() => {
917
- var i = zt();
918
- return ee(i, () => t.children), i;
919
- })(), O(() => t.bottom)];
920
+ return [M(() => e.top), (() => {
921
+ var i = Ne();
922
+ return tt(i, () => e.children), i;
923
+ })(), M(() => e.bottom)];
920
924
  }
921
925
  }));
922
926
  }
923
- function Kt(e) {
924
- const t = x(), n = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((o, [l, f]) => o + `${l}:${f};`, ""), i = () => `--gutter: ${S(t, e.gap ?? e.gutter ?? "size00") ?? "0px"}`, s = () => `--columns: ${A(Math.max(e.colCount ?? e.columns ?? 1, 1)) ?? 1};`, r = () => e.switchAt ? `--switchAt: ${M(t, e.switchAt) ?? "0px"};` : "", c = () => [n(), i(), s(), r()].filter(Boolean).join("; ");
925
- return h(() => e.as ?? "div", d(m(e, ["as", "gutter", "columns", "colCount", "switchAt"]), b({
927
+ function pe(t) {
928
+ const e = x(), n = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((r, [l, a]) => r + `${l}:${a};`, ""), i = () => `--gutter: ${S(e, t.gap ?? t.gutter ?? "size00") ?? "0px"}`, s = () => `--columns: ${A(Math.max(t.colCount ?? t.columns ?? 1, 1)) ?? 1};`, o = () => t.switchAt ? `--switchAt: ${P(e, t.switchAt) ?? "0px"};` : "", c = () => [n(), i(), s(), o()].filter(Boolean).join("; ");
929
+ return h(() => t.as ?? "div", d(m(t, ["as", "gutter", "columns", "colCount", "switchAt"]), b({
926
930
  style: c,
927
- "data-bedrock-columns": () => ""
931
+ "data-br-columns": () => ""
928
932
  })));
929
933
  }
930
- const Wt = (e) => typeof e == "number" ? e : 1;
931
- function pt(e) {
932
- const t = () => typeof e.style == "string" ? e.style : Object.entries(e.style ?? {}).reduce((c, [o, l]) => c + `${o}:${l};`, ""), n = () => `--span: ${Wt(e.span)};`, i = () => e.offsetStart && e.offsetStart > 0 ? `--offsetStart: ${e.offsetStart};` : "", s = () => e.offsetEnd && e.offsetEnd > 0 ? `--offsetEnd: ${e.offsetEnd};` : "", r = () => [t(), n(), i(), s()].join("; ");
933
- return h(() => e.as ?? "div", d(m(e, ["as", "span", "offsetStart", "offsetEnd"]), b({
934
- style: r,
935
- "data-bedrock-column": () => ""
934
+ const We = (t) => typeof t == "number" ? t : 1;
935
+ function tn(t) {
936
+ const e = () => typeof t.style == "string" ? t.style : Object.entries(t.style ?? {}).reduce((c, [r, l]) => c + `${r}:${l};`, ""), n = () => `--span: ${We(t.span)};`, i = () => t.offsetStart && t.offsetStart > 0 ? `--offsetStart: ${t.offsetStart};` : "", s = () => t.offsetEnd && t.offsetEnd > 0 ? `--offsetEnd: ${t.offsetEnd};` : "", o = () => [e(), n(), i(), s()].join("; ");
937
+ return h(() => t.as ?? "div", d(m(t, ["as", "span", "offsetStart", "offsetEnd"]), b({
938
+ style: o,
939
+ "data-br-column": () => ""
936
940
  })));
937
941
  }
938
942
  export {
939
- vt as Center,
940
- pt as Column,
941
- Ht as ColumnDrop,
942
- Kt as Columns,
943
- Zt as Cover,
944
- Ft as Frame,
945
- xt as Grid,
946
- Ut as Inline,
947
- Xt as InlineCluster,
948
- Vt as MasonryGrid,
949
- qt as PadBox,
950
- Qt as Reel,
951
- Yt as Split,
952
- Jt as Stack,
953
- Gt as ThemeProvider,
954
- D as checkIsCSSLength,
955
- _t as createContainerQuery,
943
+ Ge as Center,
944
+ tn as Column,
945
+ _e as ColumnDrop,
946
+ pe as Columns,
947
+ Ke as Cover,
948
+ Ve as Frame,
949
+ we as Grid,
950
+ qe as Inline,
951
+ Ue as InlineCluster,
952
+ Xe as MasonryGrid,
953
+ Qe as PadBox,
954
+ Ye as Reel,
955
+ Je as Split,
956
+ Ze as Stack,
957
+ He as ThemeProvider,
958
+ B as checkIsCSSLength,
959
+ Fe as createContainerQuery,
956
960
  F as getSafeGutter,
957
- M as getSizeValue,
961
+ P as getSizeValue,
958
962
  S as getSpacingValue,
959
- gt as sizes,
960
- yt as spacing,
963
+ me as sizes,
964
+ ge as spacing,
961
965
  x as useTheme
962
966
  };