@smarttalks.ai/widget 0.9.20 → 0.11.3

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.js CHANGED
@@ -11,15 +11,15 @@ function bi() {
11
11
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = yi(e)) && (r && (r += " "), r += t);
12
12
  return r;
13
13
  }
14
- const $r = "-", ca = (e) => {
15
- const t = da(e), {
14
+ const $r = "-", ua = (e) => {
15
+ const t = fa(e), {
16
16
  conflictingClassGroups: n,
17
17
  conflictingClassGroupModifiers: r
18
18
  } = e;
19
19
  return {
20
20
  getClassGroupId: (s) => {
21
21
  const a = s.split($r);
22
- return a[0] === "" && a.length !== 1 && a.shift(), wi(a, t) || ua(s);
22
+ return a[0] === "" && a.length !== 1 && a.shift(), wi(a, t) || da(s);
23
23
  },
24
24
  getConflictingClassGroupIds: (s, a) => {
25
25
  const l = n[s] || [];
@@ -38,13 +38,13 @@ const $r = "-", ca = (e) => {
38
38
  return t.validators.find(({
39
39
  validator: s
40
40
  }) => s(i))?.classGroupId;
41
- }, go = /^\[(.+)\]$/, ua = (e) => {
41
+ }, go = /^\[(.+)\]$/, da = (e) => {
42
42
  if (go.test(e)) {
43
43
  const t = go.exec(e)[1], n = t?.substring(0, t.indexOf(":"));
44
44
  if (n)
45
45
  return "arbitrary.." + n;
46
46
  }
47
- }, da = (e) => {
47
+ }, fa = (e) => {
48
48
  const {
49
49
  theme: t,
50
50
  prefix: n
@@ -52,7 +52,7 @@ const $r = "-", ca = (e) => {
52
52
  nextPart: /* @__PURE__ */ new Map(),
53
53
  validators: []
54
54
  };
55
- return ha(Object.entries(e.classGroups), n).forEach(([i, s]) => {
55
+ return ga(Object.entries(e.classGroups), n).forEach(([i, s]) => {
56
56
  cr(s, r, i, t);
57
57
  }), r;
58
58
  }, cr = (e, t, n, r) => {
@@ -63,7 +63,7 @@ const $r = "-", ca = (e) => {
63
63
  return;
64
64
  }
65
65
  if (typeof o == "function") {
66
- if (fa(o)) {
66
+ if (ha(o)) {
67
67
  cr(o(r), t, n, r);
68
68
  return;
69
69
  }
@@ -85,10 +85,10 @@ const $r = "-", ca = (e) => {
85
85
  validators: []
86
86
  }), n = n.nextPart.get(r);
87
87
  }), n;
88
- }, fa = (e) => e.isThemeGetter, ha = (e, t) => t ? e.map(([n, r]) => {
88
+ }, ha = (e) => e.isThemeGetter, ga = (e, t) => t ? e.map(([n, r]) => {
89
89
  const o = r.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([s, a]) => [t + s, a])) : i);
90
90
  return [n, o];
91
- }) : e, ga = (e) => {
91
+ }) : e, pa = (e) => {
92
92
  if (e < 1)
93
93
  return {
94
94
  get: () => {
@@ -112,7 +112,7 @@ const $r = "-", ca = (e) => {
112
112
  n.has(i) ? n.set(i, s) : o(i, s);
113
113
  }
114
114
  };
115
- }, vi = "!", pa = (e) => {
115
+ }, vi = "!", ma = (e) => {
116
116
  const {
117
117
  separator: t,
118
118
  experimentalParseClassName: n
@@ -145,7 +145,7 @@ const $r = "-", ca = (e) => {
145
145
  className: a,
146
146
  parseClassName: s
147
147
  }) : s;
148
- }, ma = (e) => {
148
+ }, ya = (e) => {
149
149
  if (e.length <= 1)
150
150
  return e;
151
151
  const t = [];
@@ -153,16 +153,16 @@ const $r = "-", ca = (e) => {
153
153
  return e.forEach((r) => {
154
154
  r[0] === "[" ? (t.push(...n.sort(), r), n = []) : n.push(r);
155
155
  }), t.push(...n.sort()), t;
156
- }, ya = (e) => ({
157
- cache: ga(e.cacheSize),
158
- parseClassName: pa(e),
159
- ...ca(e)
160
- }), ba = /\s+/, wa = (e, t) => {
156
+ }, ba = (e) => ({
157
+ cache: pa(e.cacheSize),
158
+ parseClassName: ma(e),
159
+ ...ua(e)
160
+ }), wa = /\s+/, va = (e, t) => {
161
161
  const {
162
162
  parseClassName: n,
163
163
  getClassGroupId: r,
164
164
  getConflictingClassGroupIds: o
165
- } = t, i = [], s = e.trim().split(ba);
165
+ } = t, i = [], s = e.trim().split(wa);
166
166
  let a = "";
167
167
  for (let l = s.length - 1; l >= 0; l -= 1) {
168
168
  const c = s[l], {
@@ -183,7 +183,7 @@ const $r = "-", ca = (e) => {
183
183
  }
184
184
  h = !1;
185
185
  }
186
- const m = ma(d).join(":"), b = u ? m + vi : m, w = b + p;
186
+ const m = ya(d).join(":"), b = u ? m + vi : m, w = b + p;
187
187
  if (i.includes(w))
188
188
  continue;
189
189
  i.push(w);
@@ -196,7 +196,7 @@ const $r = "-", ca = (e) => {
196
196
  }
197
197
  return a;
198
198
  };
199
- function va() {
199
+ function xa() {
200
200
  let e = 0, t, n, r = "";
201
201
  for (; e < arguments.length; )
202
202
  (t = arguments[e++]) && (n = xi(t)) && (r && (r += " "), r += n);
@@ -210,35 +210,35 @@ const xi = (e) => {
210
210
  e[r] && (t = xi(e[r])) && (n && (n += " "), n += t);
211
211
  return n;
212
212
  };
213
- function xa(e, ...t) {
213
+ function Sa(e, ...t) {
214
214
  let n, r, o, i = s;
215
215
  function s(l) {
216
216
  const c = t.reduce((d, u) => u(d), e());
217
- return n = ya(c), r = n.cache.get, o = n.cache.set, i = a, a(l);
217
+ return n = ba(c), r = n.cache.get, o = n.cache.set, i = a, a(l);
218
218
  }
219
219
  function a(l) {
220
220
  const c = r(l);
221
221
  if (c)
222
222
  return c;
223
- const d = wa(l, n);
223
+ const d = va(l, n);
224
224
  return o(l, d), d;
225
225
  }
226
226
  return function() {
227
- return i(va.apply(null, arguments));
227
+ return i(xa.apply(null, arguments));
228
228
  };
229
229
  }
230
230
  const X = (e) => {
231
231
  const t = (n) => n[e] || [];
232
232
  return t.isThemeGetter = !0, t;
233
- }, Si = /^\[(?:([a-z-]+):)?(.+)\]$/i, Sa = /^\d+\/\d+$/, ka = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ea = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ca = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oa = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, _a = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Pa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => gt(e) || ka.has(e) || Sa.test(e), He = (e) => vt(e, "length", Fa), gt = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => vt(e, "number", gt), Tt = (e) => !!e && Number.isInteger(Number(e)), Aa = (e) => e.endsWith("%") && gt(e.slice(0, -1)), N = (e) => Si.test(e), We = (e) => Ea.test(e), Ta = /* @__PURE__ */ new Set(["length", "size", "percentage"]), La = (e) => vt(e, Ta, ki), Ma = (e) => vt(e, "position", ki), Da = /* @__PURE__ */ new Set(["image", "url"]), Ia = (e) => vt(e, Da, Na), Ra = (e) => vt(e, "", $a), Lt = () => !0, vt = (e, t, n) => {
233
+ }, Si = /^\[(?:([a-z-]+):)?(.+)\]$/i, ka = /^\d+\/\d+$/, Ea = /* @__PURE__ */ new Set(["px", "full", "screen"]), Ca = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Oa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, _a = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Pa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Aa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ne = (e) => gt(e) || Ea.has(e) || ka.test(e), He = (e) => vt(e, "length", $a), gt = (e) => !!e && !Number.isNaN(Number(e)), jn = (e) => vt(e, "number", gt), Tt = (e) => !!e && Number.isInteger(Number(e)), Ta = (e) => e.endsWith("%") && gt(e.slice(0, -1)), N = (e) => Si.test(e), We = (e) => Ca.test(e), La = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ma = (e) => vt(e, La, ki), Da = (e) => vt(e, "position", ki), Ia = /* @__PURE__ */ new Set(["image", "url"]), Ra = (e) => vt(e, Ia, Ka), Fa = (e) => vt(e, "", Na), Lt = () => !0, vt = (e, t, n) => {
234
234
  const r = Si.exec(e);
235
235
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
236
- }, Fa = (e) => (
236
+ }, $a = (e) => (
237
237
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
238
238
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
239
239
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
240
- Ca.test(e) && !Oa.test(e)
241
- ), ki = () => !1, $a = (e) => _a.test(e), Na = (e) => Pa.test(e), Ka = () => {
240
+ Oa.test(e) && !_a.test(e)
241
+ ), ki = () => !1, Na = (e) => Pa.test(e), Ka = (e) => Aa.test(e), za = () => {
242
242
  const e = X("colors"), t = X("spacing"), n = X("blur"), r = X("brightness"), o = X("borderColor"), i = X("borderRadius"), s = X("borderSpacing"), a = X("borderWidth"), l = X("contrast"), c = X("grayscale"), d = X("hueRotate"), u = X("invert"), f = X("gap"), g = X("gradientColorStops"), h = X("gradientColorStopPositions"), p = X("inset"), m = X("margin"), b = X("opacity"), w = X("padding"), v = X("saturate"), x = X("scale"), _ = X("sepia"), E = X("skew"), k = X("space"), F = X("translate"), P = () => ["auto", "contain", "none"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", N, t], D = () => [N, t], ne = () => ["", Ne, He], W = () => ["auto", gt, N], ce = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], $ = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", N], ut = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], ke = () => [gt, N];
243
243
  return {
244
244
  cacheSize: 500,
@@ -258,7 +258,7 @@ const X = (e) => {
258
258
  invert: oe(),
259
259
  gap: D(),
260
260
  gradientColorStops: [e],
261
- gradientColorStopPositions: [Aa, He],
261
+ gradientColorStopPositions: [Ta, He],
262
262
  inset: M(),
263
263
  margin: M(),
264
264
  opacity: ke(),
@@ -1171,7 +1171,7 @@ const X = (e) => {
1171
1171
  * @see https://tailwindcss.com/docs/background-position
1172
1172
  */
1173
1173
  "bg-position": [{
1174
- bg: [...ce(), Ma]
1174
+ bg: [...ce(), Da]
1175
1175
  }],
1176
1176
  /**
1177
1177
  * Background Repeat
@@ -1187,7 +1187,7 @@ const X = (e) => {
1187
1187
  * @see https://tailwindcss.com/docs/background-size
1188
1188
  */
1189
1189
  "bg-size": [{
1190
- bg: ["auto", "cover", "contain", La]
1190
+ bg: ["auto", "cover", "contain", Ma]
1191
1191
  }],
1192
1192
  /**
1193
1193
  * Background Image
@@ -1196,7 +1196,7 @@ const X = (e) => {
1196
1196
  "bg-image": [{
1197
1197
  bg: ["none", {
1198
1198
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1199
- }, Ia]
1199
+ }, Ra]
1200
1200
  }],
1201
1201
  /**
1202
1202
  * Background Color
@@ -1612,7 +1612,7 @@ const X = (e) => {
1612
1612
  * @see https://tailwindcss.com/docs/box-shadow
1613
1613
  */
1614
1614
  shadow: [{
1615
- shadow: ["", "inner", "none", We, Ra]
1615
+ shadow: ["", "inner", "none", We, Fa]
1616
1616
  }],
1617
1617
  /**
1618
1618
  * Box Shadow Color
@@ -2267,27 +2267,27 @@ const X = (e) => {
2267
2267
  "font-size": ["leading"]
2268
2268
  }
2269
2269
  };
2270
- }, za = /* @__PURE__ */ xa(Ka);
2270
+ }, Ba = /* @__PURE__ */ Sa(za);
2271
2271
  function Qe(...e) {
2272
- return za(bi(e));
2272
+ return Ba(bi(e));
2273
2273
  }
2274
- function Ba(e) {
2274
+ function Va(e) {
2275
2275
  try {
2276
2276
  if (!e)
2277
2277
  return;
2278
- const t = document.querySelector(":root");
2279
- if (!t)
2278
+ const n = document.querySelector("smarttalks-widget") || document.querySelector(":root");
2279
+ if (!n)
2280
2280
  throw new Error("could not find root layer");
2281
- console.log("loading theme for", e.title), e.style.primary && t.style.setProperty(
2281
+ e.style.primary && n.style.setProperty(
2282
2282
  "--primary",
2283
2283
  Xt(e.style.primary)
2284
- ), e.style.primaryForeground && t.style.setProperty(
2284
+ ), e.style.primaryForeground && n.style.setProperty(
2285
2285
  "--primary-foreground",
2286
2286
  Xt(e.style.primaryForeground)
2287
- ), e.style.background && t.style.setProperty(
2287
+ ), e.style.background && n.style.setProperty(
2288
2288
  "--background",
2289
2289
  Xt(e.style.background)
2290
- ), e.style.foreground && t.style.setProperty(
2290
+ ), e.style.foreground && n.style.setProperty(
2291
2291
  "--foreground",
2292
2292
  Xt(e.style.foreground)
2293
2293
  );
@@ -2302,7 +2302,7 @@ function Xt(e) {
2302
2302
  let o = Math.min(t, n, r), i = Math.max(t, n, r), s = i - o, a = 0, l = 0, c = 0;
2303
2303
  return s == 0 ? a = 0 : i == t ? a = (n - r) / s % 6 : i == n ? a = (r - t) / s + 2 : a = (t - n) / s + 4, a = Math.round(a * 60), a < 0 && (a += 360), c = (i + o) / 2, l = s == 0 ? 0 : s / (1 - Math.abs(2 * c - 1)), l = +(l * 100).toFixed(1), c = +(c * 100).toFixed(1), a + "," + l + "%," + c + "%";
2304
2304
  }
2305
- function Va(e) {
2305
+ function Ua(e) {
2306
2306
  if (e.includes("<a") || e.includes("</a>") || e.includes('href="') || e.includes('target="_blank"'))
2307
2307
  return e;
2308
2308
  const t = /(https?\:\/\/)(www\.)?[^\s]+\.[^\s\<]+/g;
@@ -2311,7 +2311,7 @@ function Va(e) {
2311
2311
  return n.includes("<br>") ? n : (r.startsWith("http") || (r = "http://" + n), `<a class="underline" href="${r}" target="_blank">${n}</a>`);
2312
2312
  });
2313
2313
  }
2314
- function Ua(e) {
2314
+ function ja(e) {
2315
2315
  return e && e.replace(/\n/gm, "<br>").replace(/(?:\*)([^*]*)(?:\*)/gm, "<strong>$1</strong>").replace(/(?:_)([^_]*)(?:_)/gm, "<i>$1</i>").replace(/(?:~)([^~]*)(?:~)/gm, "<strike>$1</strike>").replace(/(?:```)([^```]*)(?:```)/gm, "<tt>$1</tt>");
2316
2316
  }
2317
2317
  function mn() {
@@ -2321,7 +2321,7 @@ function mn() {
2321
2321
  throw new Error("could not find widget element");
2322
2322
  return t;
2323
2323
  }
2324
- const ja = {
2324
+ const qa = {
2325
2325
  en: {
2326
2326
  inputPlaceholder: "Type your message here...",
2327
2327
  emptyMessages: "No messages yet...",
@@ -2347,9 +2347,9 @@ const ja = {
2347
2347
  function pt(e) {
2348
2348
  const t = navigator.language?.toLowerCase();
2349
2349
  let n = "en";
2350
- return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), ja[n][e];
2350
+ return (t === "pt-br" || t.includes("pt")) && (n = "pt"), (t === "es-es" || t.includes("es")) && (n = "es"), qa[n][e];
2351
2351
  }
2352
- const yn = "https://heimdall.smarttalks.ai/api", qa = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
2352
+ const yn = "https://heimdall.smarttalks.ai/api", Ha = "wss://heimdall.smarttalks.ai", Ei = "smarttalkswidget";
2353
2353
  function ee(e, ...t) {
2354
2354
  window.postMessage({
2355
2355
  from: Ei,
@@ -2362,7 +2362,7 @@ function re(e, t) {
2362
2362
  n.data?.from === Ei && n.data?.command === e && (n.stopImmediatePropagation(), console.info("received command:", e), t(...n.data.args || []));
2363
2363
  });
2364
2364
  }
2365
- function Ha() {
2365
+ function Wa() {
2366
2366
  typeof window < "u" && (window.SmartTalksWidget = {
2367
2367
  registerContactData: (e) => {
2368
2368
  ee("registerContactData", e);
@@ -2421,25 +2421,25 @@ function Oi(e) {
2421
2421
  const n = JSON.parse(t), r = /* @__PURE__ */ new Date();
2422
2422
  return n.ttl !== 0 && r.getTime() > n.ttl ? (localStorage.removeItem(e), null) : n.value;
2423
2423
  }
2424
- function Wa(e) {
2424
+ function Ga(e) {
2425
2425
  return Object.keys(e).reduce((n, r) => {
2426
2426
  const o = e[r];
2427
- return n[r] = Object.assign({}, o), Pi(o.value) && !Za(o.value) && !Array.isArray(o.value) && (n[r].value = Object.assign({}, o.value)), Array.isArray(o.value) && (n[r].value = o.value.slice(0)), n;
2427
+ return n[r] = Object.assign({}, o), Pi(o.value) && !Qa(o.value) && !Array.isArray(o.value) && (n[r].value = Object.assign({}, o.value)), Array.isArray(o.value) && (n[r].value = o.value.slice(0)), n;
2428
2428
  }, {});
2429
2429
  }
2430
- function Ga(e) {
2430
+ function Ya(e) {
2431
2431
  return e ? Object.keys(e).reduce((n, r) => {
2432
2432
  const o = e[r];
2433
2433
  return n[r] = Pi(o) && "value" in o ? o : {
2434
2434
  value: o
2435
- }, n[r].attribute || (n[r].attribute = Ja(r)), n[r].parse = "parse" in n[r] ? n[r].parse : typeof n[r].value != "string", n;
2435
+ }, n[r].attribute || (n[r].attribute = Za(r)), n[r].parse = "parse" in n[r] ? n[r].parse : typeof n[r].value != "string", n;
2436
2436
  }, {}) : {};
2437
2437
  }
2438
- function Ya(e) {
2438
+ function Xa(e) {
2439
2439
  return Object.keys(e).reduce((n, r) => (n[r] = e[r].value, n), {});
2440
2440
  }
2441
- function Xa(e, t) {
2442
- const n = Wa(t);
2441
+ function Ja(e, t) {
2442
+ const n = Ga(t);
2443
2443
  return Object.keys(t).forEach((o) => {
2444
2444
  const i = n[o], s = e.getAttribute(i.attribute), a = e[o];
2445
2445
  s != null && (i.value = i.parse ? _i(s) : s), a != null && (i.value = Array.isArray(a) ? a.slice(0) : a), i.reflect && mo(e, i.attribute, i.value, !!i.parse), Object.defineProperty(e, o, {
@@ -2470,20 +2470,20 @@ function mo(e, t, n, r) {
2470
2470
  let o = r ? JSON.stringify(n) : n;
2471
2471
  e.__updating[t] = !0, o === "true" && (o = ""), e.setAttribute(t, o), Promise.resolve().then(() => delete e.__updating[t]);
2472
2472
  }
2473
- function Ja(e) {
2473
+ function Za(e) {
2474
2474
  return e.replace(/\.?([A-Z]+)/g, (t, n) => "-" + n.toLowerCase()).replace("_", "-").replace(/^-/, "");
2475
2475
  }
2476
2476
  function Pi(e) {
2477
2477
  return e != null && (typeof e == "object" || typeof e == "function");
2478
2478
  }
2479
- function Za(e) {
2479
+ function Qa(e) {
2480
2480
  return Object.prototype.toString.call(e) === "[object Function]";
2481
2481
  }
2482
- function Qa(e) {
2482
+ function el(e) {
2483
2483
  return typeof e == "function" && e.toString().indexOf("class") === 0;
2484
2484
  }
2485
2485
  let qn;
2486
- function el(e, t) {
2486
+ function tl(e, t) {
2487
2487
  const n = Object.keys(t);
2488
2488
  return class extends e {
2489
2489
  static get observedAttributes() {
@@ -2494,10 +2494,10 @@ function el(e, t) {
2494
2494
  }
2495
2495
  connectedCallback() {
2496
2496
  if (this.__initialized) return;
2497
- this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = Xa(this, t);
2498
- const o = Ya(this.props), i = this.Component, s = qn;
2497
+ this.__releaseCallbacks = [], this.__propertyChangedCallbacks = [], this.__updating = {}, this.props = Ja(this, t);
2498
+ const o = Xa(this.props), i = this.Component, s = qn;
2499
2499
  try {
2500
- qn = this, this.__initialized = !0, Qa(i) ? new i(o, {
2500
+ qn = this, this.__initialized = !0, el(i) ? new i(o, {
2501
2501
  element: this
2502
2502
  }) : i(o, {
2503
2503
  element: this
@@ -2536,7 +2536,7 @@ function el(e, t) {
2536
2536
  }
2537
2537
  };
2538
2538
  }
2539
- function tl(e, t = {}, n = {}) {
2539
+ function nl(e, t = {}, n = {}) {
2540
2540
  const {
2541
2541
  BaseElement: r = HTMLElement,
2542
2542
  extension: o,
@@ -2544,7 +2544,7 @@ function tl(e, t = {}, n = {}) {
2544
2544
  } = n;
2545
2545
  return (s) => {
2546
2546
  let a = i.get(e);
2547
- return a ? (a.prototype.Component = s, a) : (a = el(r, Ga(t)), a.prototype.Component = s, a.prototype.registeredTag = e, i.define(e, a, o), a);
2547
+ return a ? (a.prototype.Component = s, a) : (a = tl(r, Ya(t)), a.prototype.Component = s, a.prototype.registeredTag = e, i.define(e, a, o), a);
2548
2548
  };
2549
2549
  }
2550
2550
  const V = {
@@ -2563,11 +2563,11 @@ function yo(e) {
2563
2563
  const t = String(e), n = t.length - 1;
2564
2564
  return V.context.id + (n ? String.fromCharCode(96 + n) : "") + t;
2565
2565
  }
2566
- function nl(e) {
2566
+ function rl(e) {
2567
2567
  V.context = e;
2568
2568
  }
2569
- const rl = !1, ol = (e, t) => e === t, xe = Symbol("solid-proxy"), Ai = typeof Proxy == "function", ur = Symbol("solid-track"), bn = {
2570
- equals: ol
2569
+ const ol = !1, il = (e, t) => e === t, xe = Symbol("solid-proxy"), Ai = typeof Proxy == "function", ur = Symbol("solid-track"), bn = {
2570
+ equals: il
2571
2571
  };
2572
2572
  let Ti = Ri;
2573
2573
  const qe = 1, wn = 2, Li = {
@@ -2577,7 +2577,7 @@ const qe = 1, wn = 2, Li = {
2577
2577
  owner: null
2578
2578
  }, Hn = {};
2579
2579
  var q = null;
2580
- let Wn = null, il = null, Y = null, le = null, ze = null, Ln = 0;
2580
+ let Wn = null, sl = null, Y = null, le = null, ze = null, Ln = 0;
2581
2581
  function Be(e, t) {
2582
2582
  const n = Y, r = q, o = e.length === 0, i = t === void 0 ? r : t, s = o ? Li : {
2583
2583
  owned: null,
@@ -2611,7 +2611,7 @@ function ie(e, t, n) {
2611
2611
  St(r);
2612
2612
  }
2613
2613
  function L(e, t, n) {
2614
- Ti = fl;
2614
+ Ti = hl;
2615
2615
  const r = Mn(e, t, !1, qe);
2616
2616
  (!n || !n.render) && (r.user = !0), ze ? ze.push(r) : St(r);
2617
2617
  }
@@ -2620,10 +2620,10 @@ function C(e, t, n) {
2620
2620
  const r = Mn(e, t, !0, 0);
2621
2621
  return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, St(r), Di.bind(r);
2622
2622
  }
2623
- function sl(e) {
2623
+ function al(e) {
2624
2624
  return e && typeof e == "object" && "then" in e;
2625
2625
  }
2626
- function al(e, t, n) {
2626
+ function ll(e, t, n) {
2627
2627
  let r, o, i;
2628
2628
  typeof t == "function" ? (r = e, o = t, i = {}) : (r = !0, o = e, i = t || {});
2629
2629
  let s = null, a = Hn, l = null, c = !1, d = "initialValue" in i, u = typeof r == "function" && C(r);
@@ -2646,7 +2646,7 @@ function al(e, t, n) {
2646
2646
  }, !1);
2647
2647
  }
2648
2648
  function k() {
2649
- const P = cl, R = g(), M = p();
2649
+ const P = ul, R = g(), M = p();
2650
2650
  if (M !== void 0 && !s) throw M;
2651
2651
  return Y && Y.user, R;
2652
2652
  }
@@ -2664,7 +2664,7 @@ function al(e, t, n) {
2664
2664
  refetching: P
2665
2665
  })
2666
2666
  );
2667
- return sl(M) ? (s = M, "value" in M ? (M.status === "success" ? _(s, M.value, void 0, R) : _(s, void 0, fr(M.value), R), M) : (c = !0, queueMicrotask(() => c = !1), Ve(() => {
2667
+ return al(M) ? (s = M, "value" in M ? (M.status === "success" ? _(s, M.value, void 0, R) : _(s, void 0, fr(M.value), R), M) : (c = !0, queueMicrotask(() => c = !1), Ve(() => {
2668
2668
  x(d ? "refreshing" : "pending"), w();
2669
2669
  }, !1), M.then(
2670
2670
  (D) => _(M, D, void 0, R),
@@ -2740,7 +2740,7 @@ function dr() {
2740
2740
  function bo() {
2741
2741
  return q;
2742
2742
  }
2743
- function ll(e, t) {
2743
+ function cl(e, t) {
2744
2744
  const n = q, r = Y;
2745
2745
  q = e, Y = null;
2746
2746
  try {
@@ -2755,7 +2755,7 @@ function fe(e, t) {
2755
2755
  const n = Symbol("context");
2756
2756
  return {
2757
2757
  id: n,
2758
- Provider: hl(n),
2758
+ Provider: gl(n),
2759
2759
  defaultValue: e
2760
2760
  };
2761
2761
  }
@@ -2770,7 +2770,7 @@ function Nr(e) {
2770
2770
  return Array.isArray(r) ? r : r != null ? [r] : [];
2771
2771
  }, n;
2772
2772
  }
2773
- let cl;
2773
+ let ul;
2774
2774
  function Di() {
2775
2775
  if (this.sources && this.state)
2776
2776
  if (this.state === qe) St(this);
@@ -2799,13 +2799,13 @@ function St(e) {
2799
2799
  if (!e.fn) return;
2800
2800
  zt(e);
2801
2801
  const t = Ln;
2802
- ul(
2802
+ dl(
2803
2803
  e,
2804
2804
  e.value,
2805
2805
  t
2806
2806
  );
2807
2807
  }
2808
- function ul(e, t, n) {
2808
+ function dl(e, t, n) {
2809
2809
  let r;
2810
2810
  const o = q, i = Y;
2811
2811
  Y = q = e;
@@ -2855,12 +2855,12 @@ function Ve(e, t) {
2855
2855
  t || (le = []), ze ? n = !0 : ze = [], Ln++;
2856
2856
  try {
2857
2857
  const r = e();
2858
- return dl(n), r;
2858
+ return fl(n), r;
2859
2859
  } catch (r) {
2860
2860
  n || (ze = null), le = null, Kr(r);
2861
2861
  }
2862
2862
  }
2863
- function dl(e) {
2863
+ function fl(e) {
2864
2864
  if (le && (Ri(le), le = null), e) return;
2865
2865
  const t = ze;
2866
2866
  ze = null, t.length && Ve(() => Ti(t), !1);
@@ -2868,7 +2868,7 @@ function dl(e) {
2868
2868
  function Ri(e) {
2869
2869
  for (let t = 0; t < e.length; t++) vn(e[t]);
2870
2870
  }
2871
- function fl(e) {
2871
+ function hl(e) {
2872
2872
  let t, n = 0;
2873
2873
  for (t = 0; t < e.length; t++) {
2874
2874
  const r = e[t];
@@ -2879,7 +2879,7 @@ function fl(e) {
2879
2879
  V.effects || (V.effects = []), V.effects.push(...e.slice(0, n));
2880
2880
  return;
2881
2881
  }
2882
- nl();
2882
+ rl();
2883
2883
  }
2884
2884
  for (V.effects && (V.done || !V.count) && (e = [...V.effects, ...e], n += V.effects.length, delete V.effects), t = 0; t < n; t++) vn(e[t]);
2885
2885
  }
@@ -2943,7 +2943,7 @@ function hr(e) {
2943
2943
  }
2944
2944
  return e;
2945
2945
  }
2946
- function hl(e, t) {
2946
+ function gl(e, t) {
2947
2947
  return function(r) {
2948
2948
  let o;
2949
2949
  return ie(
@@ -2955,18 +2955,18 @@ function hl(e, t) {
2955
2955
  ), o;
2956
2956
  };
2957
2957
  }
2958
- const gl = Symbol("fallback");
2958
+ const pl = Symbol("fallback");
2959
2959
  function wo(e) {
2960
2960
  for (let t = 0; t < e.length; t++) e[t]();
2961
2961
  }
2962
- function pl(e, t, n = {}) {
2962
+ function ml(e, t, n = {}) {
2963
2963
  let r = [], o = [], i = [], s = 0, a = t.length > 1 ? [] : null;
2964
2964
  return K(() => wo(i)), () => {
2965
2965
  let l = e() || [], c = l.length, d, u;
2966
2966
  return l[ur], H(() => {
2967
2967
  let g, h, p, m, b, w, v, x, _;
2968
2968
  if (c === 0)
2969
- s !== 0 && (wo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [gl], o[0] = Be((E) => (i[0] = E, n.fallback())), s = 1);
2969
+ s !== 0 && (wo(i), i = [], r = [], o = [], s = 0, a && (a = [])), n.fallback && (r = [pl], o[0] = Be((E) => (i[0] = E, n.fallback())), s = 1);
2970
2970
  else if (s === 0) {
2971
2971
  for (o = new Array(c), u = 0; u < c; u++)
2972
2972
  r[u] = l[u], o[u] = Be(f);
@@ -3027,7 +3027,7 @@ const gr = {
3027
3027
  function Gn(e) {
3028
3028
  return (e = typeof e == "function" ? e() : e) ? e : {};
3029
3029
  }
3030
- function ml() {
3030
+ function yl() {
3031
3031
  for (let e = 0, t = this.length; e < t; ++e) {
3032
3032
  const n = this[e]();
3033
3033
  if (n !== void 0) return n;
@@ -3075,7 +3075,7 @@ function T(...e) {
3075
3075
  r[d] = u.get ? {
3076
3076
  enumerable: !0,
3077
3077
  configurable: !0,
3078
- get: ml.bind(n[d] = [u.get.bind(a)])
3078
+ get: yl.bind(n[d] = [u.get.bind(a)])
3079
3079
  } : u.value !== void 0 ? u : void 0;
3080
3080
  else {
3081
3081
  const f = n[d];
@@ -3133,16 +3133,16 @@ function j(e, ...t) {
3133
3133
  }
3134
3134
  return [...r, n];
3135
3135
  }
3136
- let yl = 0;
3136
+ let bl = 0;
3137
3137
  function Le() {
3138
- return V.context ? V.getNextContextId() : `cl-${yl++}`;
3138
+ return V.context ? V.getNextContextId() : `cl-${bl++}`;
3139
3139
  }
3140
3140
  const $i = (e) => `Stale read from <${e}>.`;
3141
3141
  function bt(e) {
3142
3142
  const t = "fallback" in e && {
3143
3143
  fallback: () => e.fallback
3144
3144
  };
3145
- return C(pl(() => e.each, e.children, t || void 0));
3145
+ return C(ml(() => e.each, e.children, t || void 0));
3146
3146
  }
3147
3147
  function Z(e) {
3148
3148
  const t = e.keyed, n = C(() => e.when, void 0, void 0), r = t ? n : C(n, void 0, {
@@ -3206,7 +3206,7 @@ function Ni(e) {
3206
3206
  function Kt(e) {
3207
3207
  return e;
3208
3208
  }
3209
- const bl = [
3209
+ const wl = [
3210
3210
  "allowfullscreen",
3211
3211
  "async",
3212
3212
  "autofocus",
@@ -3232,7 +3232,7 @@ const bl = [
3232
3232
  "reversed",
3233
3233
  "seamless",
3234
3234
  "selected"
3235
- ], wl = /* @__PURE__ */ new Set([
3235
+ ], vl = /* @__PURE__ */ new Set([
3236
3236
  "className",
3237
3237
  "value",
3238
3238
  "readOnly",
@@ -3240,16 +3240,16 @@ const bl = [
3240
3240
  "isMap",
3241
3241
  "noModule",
3242
3242
  "playsInline",
3243
- ...bl
3244
- ]), vl = /* @__PURE__ */ new Set([
3243
+ ...wl
3244
+ ]), xl = /* @__PURE__ */ new Set([
3245
3245
  "innerHTML",
3246
3246
  "textContent",
3247
3247
  "innerText",
3248
3248
  "children"
3249
- ]), xl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
3249
+ ]), Sl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
3250
3250
  className: "class",
3251
3251
  htmlFor: "for"
3252
- }), Sl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
3252
+ }), kl = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
3253
3253
  class: "className",
3254
3254
  formnovalidate: {
3255
3255
  $: "formNoValidate",
@@ -3274,11 +3274,11 @@ const bl = [
3274
3274
  TEXTAREA: 1
3275
3275
  }
3276
3276
  });
3277
- function kl(e, t) {
3278
- const n = Sl[e];
3277
+ function El(e, t) {
3278
+ const n = kl[e];
3279
3279
  return typeof n == "object" ? n[t] ? n.$ : void 0 : n;
3280
3280
  }
3281
- const El = /* @__PURE__ */ new Set([
3281
+ const Cl = /* @__PURE__ */ new Set([
3282
3282
  "beforeinput",
3283
3283
  "click",
3284
3284
  "dblclick",
@@ -3301,7 +3301,7 @@ const El = /* @__PURE__ */ new Set([
3301
3301
  "touchend",
3302
3302
  "touchmove",
3303
3303
  "touchstart"
3304
- ]), Cl = /* @__PURE__ */ new Set([
3304
+ ]), Ol = /* @__PURE__ */ new Set([
3305
3305
  "altGlyph",
3306
3306
  "altGlyphDef",
3307
3307
  "altGlyphItem",
@@ -3379,11 +3379,11 @@ const El = /* @__PURE__ */ new Set([
3379
3379
  "use",
3380
3380
  "view",
3381
3381
  "vkern"
3382
- ]), Ol = {
3382
+ ]), _l = {
3383
3383
  xlink: "http://www.w3.org/1999/xlink",
3384
3384
  xml: "http://www.w3.org/XML/1998/namespace"
3385
3385
  };
3386
- function _l(e, t, n) {
3386
+ function Pl(e, t, n) {
3387
3387
  let r = n.length, o = t.length, i = r, s = 0, a = 0, l = t[o - 1].nextSibling, c = null;
3388
3388
  for (; s < o || a < i; ) {
3389
3389
  if (t[s] === n[a]) {
@@ -3431,26 +3431,26 @@ function I(e, t, n, r) {
3431
3431
  }, s = () => (o || (o = i())).cloneNode(!0);
3432
3432
  return s.cloneNode = s, s;
3433
3433
  }
3434
- function Pl(e, t = window.document) {
3434
+ function Al(e, t = window.document) {
3435
3435
  const n = t[vo] || (t[vo] = /* @__PURE__ */ new Set());
3436
3436
  for (let r = 0, o = e.length; r < o; r++) {
3437
3437
  const i = e[r];
3438
- n.has(i) || (n.add(i), t.addEventListener(i, Fl));
3438
+ n.has(i) || (n.add(i), t.addEventListener(i, $l));
3439
3439
  }
3440
3440
  }
3441
3441
  function de(e, t, n) {
3442
3442
  at(e) || (n == null ? e.removeAttribute(t) : e.setAttribute(t, n));
3443
3443
  }
3444
- function Al(e, t, n, r) {
3444
+ function Tl(e, t, n, r) {
3445
3445
  at(e) || (r == null ? e.removeAttributeNS(t, n) : e.setAttributeNS(t, n, r));
3446
3446
  }
3447
- function Tl(e, t, n) {
3447
+ function Ll(e, t, n) {
3448
3448
  at(e) || (n ? e.setAttribute(t, "") : e.removeAttribute(t));
3449
3449
  }
3450
3450
  function nt(e, t) {
3451
3451
  at(e) || (t == null ? e.removeAttribute("class") : e.className = t);
3452
3452
  }
3453
- function Ll(e, t, n, r) {
3453
+ function Ml(e, t, n, r) {
3454
3454
  if (r)
3455
3455
  Array.isArray(n) ? (e[`$$${t}`] = n[0], e[`$$${t}Data`] = n[1]) : e[`$$${t}`] = n;
3456
3456
  else if (Array.isArray(n)) {
@@ -3458,7 +3458,7 @@ function Ll(e, t, n, r) {
3458
3458
  e.addEventListener(t, n[0] = (i) => o.call(e, n[1], i));
3459
3459
  } else e.addEventListener(t, n, typeof n != "function" && n);
3460
3460
  }
3461
- function Ml(e, t, n = {}) {
3461
+ function Dl(e, t, n = {}) {
3462
3462
  const r = Object.keys(t || {}), o = Object.keys(n);
3463
3463
  let i, s;
3464
3464
  for (i = 0, s = o.length; i < s; i++) {
@@ -3487,7 +3487,7 @@ function st(e, t = {}, n, r) {
3487
3487
  const o = {};
3488
3488
  return r || ie(
3489
3489
  () => o.children = Bt(e, t.children, o.children)
3490
- ), ie(() => typeof t.ref == "function" && zr(t.ref, e)), ie(() => Dl(e, t, n, !0, o, !0)), o;
3490
+ ), ie(() => typeof t.ref == "function" && zr(t.ref, e)), ie(() => Il(e, t, n, !0, o, !0)), o;
3491
3491
  }
3492
3492
  function zr(e, t, n) {
3493
3493
  return H(() => e(t, n));
@@ -3496,7 +3496,7 @@ function A(e, t, n, r) {
3496
3496
  if (n !== void 0 && !r && (r = []), typeof t != "function") return Bt(e, t, r, n);
3497
3497
  ie((o) => Bt(e, t(), o, n), r);
3498
3498
  }
3499
- function Dl(e, t, n, r, o = {}, i = !1) {
3499
+ function Il(e, t, n, r, o = {}, i = !1) {
3500
3500
  t || (t = {});
3501
3501
  for (const s in o)
3502
3502
  if (!(s in t)) {
@@ -3510,14 +3510,14 @@ function Dl(e, t, n, r, o = {}, i = !1) {
3510
3510
  o[s] = So(e, s, a, o[s], n, i, t);
3511
3511
  }
3512
3512
  }
3513
- function Il(e) {
3513
+ function Rl(e) {
3514
3514
  let t, n;
3515
- return !at() || !(t = V.registry.get(n = $l())) ? e() : (V.completed && V.completed.add(t), V.registry.delete(n), t);
3515
+ return !at() || !(t = V.registry.get(n = Nl())) ? e() : (V.completed && V.completed.add(t), V.registry.delete(n), t);
3516
3516
  }
3517
3517
  function at(e) {
3518
3518
  return !!V.context && !V.done && (!e || e.isConnected);
3519
3519
  }
3520
- function Rl(e) {
3520
+ function Fl(e) {
3521
3521
  return e.toLowerCase().replace(/-([a-z])/g, (t, n) => n.toUpperCase());
3522
3522
  }
3523
3523
  function xo(e, t, n) {
@@ -3528,7 +3528,7 @@ function xo(e, t, n) {
3528
3528
  function So(e, t, n, r, o, i, s) {
3529
3529
  let a, l, c, d, u;
3530
3530
  if (t === "style") return Dn(e, n, r);
3531
- if (t === "classList") return Ml(e, n, r);
3531
+ if (t === "classList") return Dl(e, n, r);
3532
3532
  if (n === r) return r;
3533
3533
  if (t === "ref")
3534
3534
  i || n(e);
@@ -3539,28 +3539,28 @@ function So(e, t, n, r, o, i, s) {
3539
3539
  const f = t.slice(10);
3540
3540
  r && e.removeEventListener(f, r, !0), n && e.addEventListener(f, n, !0);
3541
3541
  } else if (t.slice(0, 2) === "on") {
3542
- const f = t.slice(2).toLowerCase(), g = El.has(f);
3542
+ const f = t.slice(2).toLowerCase(), g = Cl.has(f);
3543
3543
  if (!g && r) {
3544
3544
  const h = Array.isArray(r) ? r[0] : r;
3545
3545
  e.removeEventListener(f, h);
3546
3546
  }
3547
- (g || n) && (Ll(e, f, n, g), g && Pl([f]));
3547
+ (g || n) && (Ml(e, f, n, g), g && Al([f]));
3548
3548
  } else if (t.slice(0, 5) === "attr:")
3549
3549
  de(e, t.slice(5), n);
3550
3550
  else if (t.slice(0, 5) === "bool:")
3551
- Tl(e, t.slice(5), n);
3552
- else if ((u = t.slice(0, 5) === "prop:") || (c = vl.has(t)) || !o && ((d = kl(t, e.tagName)) || (l = wl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3551
+ Ll(e, t.slice(5), n);
3552
+ else if ((u = t.slice(0, 5) === "prop:") || (c = xl.has(t)) || !o && ((d = El(t, e.tagName)) || (l = vl.has(t))) || (a = e.nodeName.includes("-") || "is" in s)) {
3553
3553
  if (u)
3554
3554
  t = t.slice(5), l = !0;
3555
3555
  else if (at(e)) return n;
3556
- t === "class" || t === "className" ? nt(e, n) : a && !l && !c ? e[Rl(t)] = n : e[d || t] = n;
3556
+ t === "class" || t === "className" ? nt(e, n) : a && !l && !c ? e[Fl(t)] = n : e[d || t] = n;
3557
3557
  } else {
3558
- const f = o && t.indexOf(":") > -1 && Ol[t.split(":")[0]];
3559
- f ? Al(e, f, t, n) : de(e, xl[t] || t, n);
3558
+ const f = o && t.indexOf(":") > -1 && _l[t.split(":")[0]];
3559
+ f ? Tl(e, f, t, n) : de(e, Sl[t] || t, n);
3560
3560
  }
3561
3561
  return n;
3562
3562
  }
3563
- function Fl(e) {
3563
+ function $l(e) {
3564
3564
  if (V.registry && V.events && V.events.find(([l, c]) => c === e))
3565
3565
  return;
3566
3566
  let t = e.target;
@@ -3643,7 +3643,7 @@ function Bt(e, t, n, r, o) {
3643
3643
  }
3644
3644
  if (l.length === 0) {
3645
3645
  if (n = dt(e, n, r), a) return n;
3646
- } else c ? n.length === 0 ? ko(e, l, r) : _l(e, n, l) : (n && dt(e), ko(e, l));
3646
+ } else c ? n.length === 0 ? ko(e, l, r) : Pl(e, n, l) : (n && dt(e), ko(e, l));
3647
3647
  n = l;
3648
3648
  } else if (t.nodeType) {
3649
3649
  if (i && t.parentNode) return n = a ? [t] : t;
@@ -3699,19 +3699,19 @@ function dt(e, t, n, r) {
3699
3699
  } else e.insertBefore(o, n);
3700
3700
  return [o];
3701
3701
  }
3702
- function $l() {
3702
+ function Nl() {
3703
3703
  return V.getNextContextId();
3704
3704
  }
3705
- const Nl = !1, Kl = "http://www.w3.org/2000/svg";
3705
+ const Kl = !1, zl = "http://www.w3.org/2000/svg";
3706
3706
  function Ki(e, t = !1) {
3707
- return t ? document.createElementNS(Kl, e) : document.createElement(e);
3707
+ return t ? document.createElementNS(zl, e) : document.createElement(e);
3708
3708
  }
3709
3709
  function zi(e) {
3710
3710
  const { useShadow: t } = e, n = document.createTextNode(""), r = () => e.mount || document.body, o = bo();
3711
3711
  let i, s = !!V.context;
3712
3712
  return L(
3713
3713
  () => {
3714
- s && (bo().user = s = !1), i || (i = ll(o, () => C(() => e.children)));
3714
+ s && (bo().user = s = !1), i || (i = cl(o, () => C(() => e.children)));
3715
3715
  const a = r();
3716
3716
  if (a instanceof HTMLHeadElement) {
3717
3717
  const [l, c] = O(!1), d = () => c(!0);
@@ -3734,7 +3734,7 @@ function zi(e) {
3734
3734
  }
3735
3735
  ), n;
3736
3736
  }
3737
- function zl(e, t) {
3737
+ function Bl(e, t) {
3738
3738
  const n = C(e);
3739
3739
  return C(() => {
3740
3740
  const r = n();
@@ -3742,16 +3742,16 @@ function zl(e, t) {
3742
3742
  case "function":
3743
3743
  return H(() => r(t));
3744
3744
  case "string":
3745
- const o = Cl.has(r), i = V.context ? Il() : Ki(r, o);
3745
+ const o = Ol.has(r), i = V.context ? Rl() : Ki(r, o);
3746
3746
  return st(i, t, o), i;
3747
3747
  }
3748
3748
  });
3749
3749
  }
3750
3750
  function un(e) {
3751
3751
  const [, t] = j(e, ["component"]);
3752
- return zl(() => e.component, t);
3752
+ return Bl(() => e.component, t);
3753
3753
  }
3754
- function Bl(e) {
3754
+ function Vl(e) {
3755
3755
  const t = Object.keys(e), n = {};
3756
3756
  for (let r = 0; r < t.length; r++) {
3757
3757
  const [o, i] = O(e[t[r]]);
@@ -3764,49 +3764,49 @@ function Bl(e) {
3764
3764
  }
3765
3765
  return n;
3766
3766
  }
3767
- function Vl(e) {
3767
+ function Ul(e) {
3768
3768
  if (e.assignedSlot && e.assignedSlot._$owner) return e.assignedSlot._$owner;
3769
3769
  let t = e.parentNode;
3770
3770
  for (; t && !t._$owner && !(t.assignedSlot && t.assignedSlot._$owner); )
3771
3771
  t = t.parentNode;
3772
3772
  return t && t.assignedSlot ? t.assignedSlot._$owner : e._$owner;
3773
3773
  }
3774
- function Ul(e) {
3774
+ function jl(e) {
3775
3775
  return (t, n) => {
3776
3776
  const { element: r } = n;
3777
3777
  return Be((o) => {
3778
- const i = Bl(t);
3778
+ const i = Vl(t);
3779
3779
  r.addPropertyChangedCallback((a, l) => i[a] = l), r.addReleaseCallback(() => {
3780
3780
  r.renderRoot.textContent = "", o();
3781
3781
  });
3782
3782
  const s = e(i, n);
3783
3783
  return A(r.renderRoot, s);
3784
- }, Vl(r));
3784
+ }, Ul(r));
3785
3785
  };
3786
3786
  }
3787
- function jl(e, t, n) {
3788
- return arguments.length === 2 && (n = t, t = {}), tl(e, t)(Ul(n));
3787
+ function ql(e, t, n) {
3788
+ return arguments.length === 2 && (n = t, t = {}), nl(e, t)(jl(n));
3789
3789
  }
3790
- const ql = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-top-12{top:-48px}.bottom-0{bottom:0}.bottom-5{bottom:20px}.bottom-\\[-12px\\]{bottom:-12px}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:8px}.right-0{right:0}.top-0{top:0}.z-20{z-index:20}.z-50{z-index:50}.z-\\[99999\\]{z-index:99999}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.-mx-1{margin-left:-4px;margin-right:-4px}.mx-1{margin-left:4px;margin-right:4px}.mx-\\[-16px\\]{margin-left:-16px;margin-right:-16px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:4px;margin-bottom:4px}.mb-1{margin-bottom:4px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.mt-0{margin-top:0}.mt-2{margin-top:8px}.mt-24{margin-top:96px}.mt-4{margin-top:16px}.box-border{box-sizing:border-box}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:40px;height:40px}.size-14{width:56px;height:56px}.size-2{width:8px;height:8px}.size-3\\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.size-8{width:32px;height:32px}.size-9{width:36px;height:36px}.size-full{width:100%;height:100%}.h-10{height:40px}.h-11{height:44px}.h-2{height:8px}.h-4{height:16px}.h-5{height:20px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[44px\\]{height:44px}.h-\\[85vh\\]{height:85vh}.h-\\[min\\(85vh\\,700px\\)\\]{height:min(85vh,700px)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[120px\\]{max-height:120px}.max-h-\\[80\\%\\]{max-height:80%}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-\\[44px\\]{min-height:44px}.w-11\\/12{width:91.666667%}.w-4{width:16px}.w-5{width:20px}.w-7{width:28px}.w-8{width:32px}.w-\\[100px\\]{width:100px}.w-\\[400px\\]{width:400px}.w-\\[44px\\]{width:44px}.w-\\[90vw\\]{width:90vw}.w-\\[calc\\(var\\(--reference-width\\)-\\(12px\\*2\\)\\)\\]{width:calc(var(--reference-width) - (12px * 2))}.w-full{width:100%}.min-w-\\[128px\\]{min-width:128px}.max-w-64{max-width:256px}.max-w-80{max-width:320px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-\\[var\\(--kb-menu-content-transform-origin\\)\\]{transform-origin:var(--kb-menu-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes content-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}.animate-content-hide{animation:content-hide .2s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:2px}.gap-1\\.5{gap:6px}.gap-2{gap:8px}.gap-3{gap:12px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(16px * var(--tw-space-x-reverse));margin-left:calc(16px * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(16px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(16px * var(--tw-space-y-reverse))}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-xl{border-top-left-radius:calc(var(--radius) + 4px);border-bottom-left-radius:calc(var(--radius) + 4px)}.rounded-r-xl{border-top-right-radius:calc(var(--radius) + 4px);border-bottom-right-radius:calc(var(--radius) + 4px)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-xl{border-top-left-radius:calc(var(--radius) + 4px)}.rounded-tr-xl{border-top-right-radius:calc(var(--radius) + 4px)}.border{border-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/50{background-color:#00000080}.bg-destructive{background-color:hsl(var(--destructive))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-200\\/40{background-color:#e2e8f066}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:4px}.p-3{padding:12px}.p-4{padding:16px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:4px;padding-right:4px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:4px;padding-bottom:4px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}.py-6{padding-top:24px;padding-bottom:24px}.pb-2{padding-bottom:8px}.pb-\\[\\.\\.\\.\\]{padding-bottom:...}.pb-\\[max\\(1rem\\,env\\(safe-area-inset-bottom\\)\\)\\]{padding-bottom:max(1rem,env(safe-area-inset-bottom))}.pl-3{padding-left:12px}.pl-8{padding-left:32px}.pr-1{padding-right:4px}.pr-2{padding-right:8px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-\\[12\\.8px\\]{font-size:12.8px}.text-base{font-size:16px}.text-lg{font-size:18px}.text-sm{font-size:14px}.text-xs{font-size:12px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-primary\\/40{--tw-shadow-color: hsl(var(--primary) / .4);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-80{--tw-enter-opacity: .8}.duration-300{animation-duration:.3s}.delay-150{animation-delay:.15s}.delay-300{animation-delay:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}#smarttalks-widget{--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 346.8 77.2% 49.8%;--radius: 8px}.st-fullscreen{position:fixed!important;top:env(safe-area-inset-top)!important;left:env(safe-area-inset-left)!important;right:env(safe-area-inset-right)!important;bottom:env(safe-area-inset-bottom)!important;width:100dvw!important;height:100dvh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important;z-index:2147483647!important}@supports not (height: 100dvh){.st-fullscreen{inset:0!important;width:100vw!important;height:100vh!important}}@media (max-width: 640px){.container{padding-left:16px;padding-right:16px}}::-webkit-scrollbar{width:8px;height:6.4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:var(--radius);--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-base::file-selector-button{font-size:16px}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-x-0:after{content:var(--tw-content);left:0;right:0}.after\\:top-full:after{content:var(--tw-content);top:100%}.after\\:h-\\[50\\%\\]:after{content:var(--tw-content);height:50%}.after\\:bg-inherit:after{content:var(--tw-content);background-color:inherit}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-accent\\/10:hover{background-color:hsl(var(--accent) / .1)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-green-400:hover{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.hover\\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-primary:hover{--tw-shadow-color: hsl(var(--primary));--tw-shadow: var(--tw-shadow-colored)}.hover\\:brightness-50:hover{--tw-brightness: brightness(.5);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:brightness-75:hover{--tw-brightness: brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[1\\.5px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1.5px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-\\[\\[data-range-end\\]\\]\\:rounded-r-md:has([data-range-end]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-range-start\\]\\]\\:rounded-l-md:has([data-range-start]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:bg-accent:has([data-in-range]){background-color:hsl(var(--accent))}.has-\\[\\[data-outside-range\\]\\[data-in-range\\]\\]\\:bg-accent\\/50:has([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.has-\\[\\[data-in-range\\]\\]\\:first-of-type\\:rounded-l-md:first-of-type:has([data-in-range]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:last-of-type\\:rounded-r-md:last-of-type:has([data-in-range]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}@keyframes content-show{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.data-\\[expanded\\]\\:animate-content-show[data-expanded]{animation:content-show .2s ease-out}.data-\\[selected\\]\\:bg-primary[data-selected]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open],.data-\\[today\\]\\:bg-accent[data-today]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:text-muted-foreground[data-disabled],.data-\\[outside-range\\]\\:text-muted-foreground[data-outside-range]{color:hsl(var(--muted-foreground))}.data-\\[selected\\]\\:text-primary-foreground[data-selected]{color:hsl(var(--primary-foreground))}.data-\\[today\\]\\:text-accent-foreground[data-today]{color:hsl(var(--accent-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled],.data-\\[outside-range\\]\\:opacity-50[data-outside-range]{opacity:.5}.data-\\[selected\\]\\:opacity-100[data-selected]{opacity:1}.data-\\[transitioning\\]\\:transition-colors[data-transitioning]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:transition-transform[data-transitioning]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{transition-duration:.3s}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{animation-duration:.3s}.data-\\[selected\\]\\:hover\\:bg-primary:hover[data-selected]{background-color:hsl(var(--primary))}.data-\\[selected\\]\\:hover\\:text-primary-foreground:hover[data-selected]{color:hsl(var(--primary-foreground))}@media (min-width: 640px){.sm\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:bottom-5{bottom:20px}.md\\:h-\\[min\\(100vh\\,500px\\)\\]{height:min(100vh,500px)}.md\\:max-h-\\[90\\%\\]{max-height:90%}.md\\:w-\\[400px\\]{width:400px}.md\\:w-\\[min\\(100vw\\,425px\\)\\]{width:min(100vw,425px)}.md\\:max-w-\\[90\\%\\]{max-width:90%}.md\\:select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.md\\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.md\\:text-lg{font-size:18px}.md\\:text-sm{font-size:14px}.md\\:file\\:text-sm::file-selector-button{font-size:14px}}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:bg-accent\\/50:is([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:text-muted-foreground:is([data-outside-range][data-in-range]){color:hsl(var(--muted-foreground))}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:opacity-30:is([data-outside-range][data-in-range]){opacity:.3}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:bg-primary:is([data-today][data-selected]){background-color:hsl(var(--primary))}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:text-primary-foreground:is([data-today][data-selected]){color:hsl(var(--primary-foreground))}', [Bi, Br] = O(!1), Vi = [], Hl = (e) => Vi.push(e), Ui = () => {
3790
+ const Hl = '*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-0{left:0;right:0}.-top-12{top:-48px}.bottom-0{bottom:0}.bottom-5{bottom:20px}.bottom-\\[-12px\\]{bottom:-12px}.left-0{left:0}.left-1\\/2{left:50%}.left-2{left:8px}.right-0{right:0}.top-0{top:0}.z-20{z-index:20}.z-50{z-index:50}.z-\\[99999\\]{z-index:99999}.z-\\[9999\\]{z-index:9999}.m-0{margin:0}.-mx-1{margin-left:-4px;margin-right:-4px}.mx-1{margin-left:4px;margin-right:4px}.mx-\\[-16px\\]{margin-left:-16px;margin-right:-16px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:4px;margin-bottom:4px}.mb-1{margin-bottom:4px}.ml-1{margin-left:4px}.ml-auto{margin-left:auto}.mt-0{margin-top:0}.mt-2{margin-top:8px}.mt-24{margin-top:96px}.mt-4{margin-top:16px}.box-border{box-sizing:border-box}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.size-10{width:40px;height:40px}.size-14{width:56px;height:56px}.size-2{width:8px;height:8px}.size-3\\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.size-8{width:32px;height:32px}.size-9{width:36px;height:36px}.size-full{width:100%;height:100%}.h-10{height:40px}.h-11{height:44px}.h-2{height:8px}.h-4{height:16px}.h-5{height:20px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[44px\\]{height:44px}.h-\\[85vh\\]{height:85vh}.h-\\[min\\(85vh\\,700px\\)\\]{height:min(85vh,700px)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-\\[120px\\]{max-height:120px}.max-h-\\[80\\%\\]{max-height:80%}.max-h-full{max-height:100%}.min-h-0{min-height:0}.min-h-\\[44px\\]{min-height:44px}.w-11\\/12{width:91.666667%}.w-4{width:16px}.w-5{width:20px}.w-7{width:28px}.w-8{width:32px}.w-\\[100px\\]{width:100px}.w-\\[400px\\]{width:400px}.w-\\[44px\\]{width:44px}.w-\\[90vw\\]{width:90vw}.w-\\[calc\\(var\\(--reference-width\\)-\\(12px\\*2\\)\\)\\]{width:calc(var(--reference-width) - (12px * 2))}.w-full{width:100%}.min-w-\\[128px\\]{min-width:128px}.max-w-64{max-width:256px}.max-w-80{max-width:320px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.flex-none{flex:none}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.origin-\\[var\\(--kb-menu-content-transform-origin\\)\\]{transform-origin:var(--kb-menu-content-transform-origin)}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes content-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}.animate-content-hide{animation:content-hide .2s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-content-center{place-content:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:2px}.gap-1\\.5{gap:6px}.gap-2{gap:8px}.gap-3{gap:12px}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(4px * var(--tw-space-x-reverse));margin-left:calc(4px * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(16px * var(--tw-space-x-reverse));margin-left:calc(16px * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4px * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(16px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(16px * var(--tw-space-y-reverse))}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-contain{overscroll-behavior:contain}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-l-xl{border-top-left-radius:calc(var(--radius) + 4px);border-bottom-left-radius:calc(var(--radius) + 4px)}.rounded-r-xl{border-top-right-radius:calc(var(--radius) + 4px);border-bottom-right-radius:calc(var(--radius) + 4px)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-xl{border-top-left-radius:calc(var(--radius) + 4px)}.rounded-tr-xl{border-top-right-radius:calc(var(--radius) + 4px)}.border{border-width:1px}.border-t{border-top-width:1px}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/50{background-color:#00000080}.bg-destructive{background-color:hsl(var(--destructive))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-200{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.bg-slate-200\\/40{background-color:#e2e8f066}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:4px}.p-3{padding:12px}.p-4{padding:16px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:4px;padding-right:4px}.px-2{padding-left:8px;padding-right:8px}.px-2\\.5{padding-left:10px;padding-right:10px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:4px;padding-bottom:4px}.py-1\\.5{padding-top:6px;padding-bottom:6px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}.py-6{padding-top:24px;padding-bottom:24px}.pb-2{padding-bottom:8px}.pb-\\[\\.\\.\\.\\]{padding-bottom:...}.pb-\\[max\\(1rem\\,env\\(safe-area-inset-bottom\\)\\)\\]{padding-bottom:max(1rem,env(safe-area-inset-bottom))}.pl-3{padding-left:12px}.pl-8{padding-left:32px}.pr-1{padding-right:4px}.pr-2{padding-right:8px}.pt-1{padding-top:4px}.text-center{text-align:center}.text-\\[10px\\]{font-size:10px}.text-\\[12\\.8px\\]{font-size:12.8px}.text-base{font-size:16px}.text-lg{font-size:18px}.text-sm{font-size:14px}.text-xs{font-size:12px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-600{--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.text-slate-700{--tw-text-opacity: 1;color:rgb(51 65 85 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-primary\\/40{--tw-shadow-color: hsl(var(--primary) / .4);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-150{transition-delay:.15s}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-80{--tw-enter-opacity: .8}.duration-300{animation-duration:.3s}.delay-150{animation-delay:.15s}.delay-300{animation-delay:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}#smarttalks-widget{--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 346.8 77.2% 49.8%;--radius: 8px}.st-fullscreen{position:fixed!important;top:env(safe-area-inset-top)!important;left:env(safe-area-inset-left)!important;right:env(safe-area-inset-right)!important;bottom:env(safe-area-inset-bottom)!important;width:100dvw!important;height:100dvh!important;max-width:100vw!important;max-height:100vh!important;border-radius:0!important;z-index:2147483647!important}@supports not (height: 100dvh){.st-fullscreen{inset:0!important;width:100vw!important;height:100vh!important}}@media (max-width: 640px){.container{padding-left:16px;padding-right:16px}}::-webkit-scrollbar{width:8px;height:6.4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:var(--radius);--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity, 1))}::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(148 163 184 / var(--tw-bg-opacity, 1))}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-base::file-selector-button{font-size:16px}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-x-0:after{content:var(--tw-content);left:0;right:0}.after\\:top-full:after{content:var(--tw-content);top:100%}.after\\:h-\\[50\\%\\]:after{content:var(--tw-content);height:50%}.after\\:bg-inherit:after{content:var(--tw-content);background-color:inherit}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-accent\\/10:hover{background-color:hsl(var(--accent) / .1)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-green-400:hover{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.hover\\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:bg-slate-200:hover{--tw-bg-opacity: 1;background-color:rgb(226 232 240 / var(--tw-bg-opacity, 1))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-primary:hover{--tw-shadow-color: hsl(var(--primary));--tw-shadow: var(--tw-shadow-colored)}.hover\\:brightness-50:hover{--tw-brightness: brightness(.5);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:brightness-75:hover{--tw-brightness: brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-\\[1\\.5px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1.5px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-primary:focus-visible{--tw-ring-color: hsl(var(--primary))}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.has-\\[\\[data-range-end\\]\\]\\:rounded-r-md:has([data-range-end]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-range-start\\]\\]\\:rounded-l-md:has([data-range-start]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:bg-accent:has([data-in-range]){background-color:hsl(var(--accent))}.has-\\[\\[data-outside-range\\]\\[data-in-range\\]\\]\\:bg-accent\\/50:has([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.has-\\[\\[data-in-range\\]\\]\\:first-of-type\\:rounded-l-md:first-of-type:has([data-in-range]){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.has-\\[\\[data-in-range\\]\\]\\:last-of-type\\:rounded-r-md:last-of-type:has([data-in-range]){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}@keyframes content-show{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.data-\\[expanded\\]\\:animate-content-show[data-expanded]{animation:content-show .2s ease-out}.data-\\[selected\\]\\:bg-primary[data-selected]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open],.data-\\[today\\]\\:bg-accent[data-today]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:text-muted-foreground[data-disabled],.data-\\[outside-range\\]\\:text-muted-foreground[data-outside-range]{color:hsl(var(--muted-foreground))}.data-\\[selected\\]\\:text-primary-foreground[data-selected]{color:hsl(var(--primary-foreground))}.data-\\[today\\]\\:text-accent-foreground[data-today]{color:hsl(var(--accent-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled],.data-\\[outside-range\\]\\:opacity-50[data-outside-range]{opacity:.5}.data-\\[selected\\]\\:opacity-100[data-selected]{opacity:1}.data-\\[transitioning\\]\\:transition-colors[data-transitioning]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:transition-transform[data-transitioning]{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{transition-duration:.3s}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[transitioning\\]\\:duration-300[data-transitioning]{animation-duration:.3s}.data-\\[selected\\]\\:hover\\:bg-primary:hover[data-selected]{background-color:hsl(var(--primary))}.data-\\[selected\\]\\:hover\\:text-primary-foreground:hover[data-selected]{color:hsl(var(--primary-foreground))}@media (min-width: 640px){.sm\\:text-left{text-align:left}}@media (min-width: 768px){.md\\:bottom-5{bottom:20px}.md\\:h-\\[min\\(100vh\\,500px\\)\\]{height:min(100vh,500px)}.md\\:max-h-\\[90\\%\\]{max-height:90%}.md\\:w-\\[400px\\]{width:400px}.md\\:w-\\[min\\(100vw\\,425px\\)\\]{width:min(100vw,425px)}.md\\:max-w-\\[90\\%\\]{max-width:90%}.md\\:select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.md\\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.md\\:text-lg{font-size:18px}.md\\:text-sm{font-size:14px}.md\\:file\\:text-sm::file-selector-button{font-size:14px}}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:bg-accent\\/50:is([data-outside-range][data-in-range]){background-color:hsl(var(--accent) / .5)}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:text-muted-foreground:is([data-outside-range][data-in-range]){color:hsl(var(--muted-foreground))}.\\[\\&\\:is\\(\\[data-outside-range\\]\\[data-in-range\\]\\)\\]\\:opacity-30:is([data-outside-range][data-in-range]){opacity:.3}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:bg-primary:is([data-today][data-selected]){background-color:hsl(var(--primary))}.\\[\\&\\:is\\(\\[data-today\\]\\[data-selected\\]\\)\\]\\:text-primary-foreground:is([data-today][data-selected]){color:hsl(var(--primary-foreground))}', [Bi, Br] = O(!1), Vi = [], Wl = (e) => Vi.push(e), Ui = () => {
3791
3791
  Vi.forEach((e) => e());
3792
- }, Wl = () => {
3792
+ }, Gl = () => {
3793
3793
  const e = !Bi();
3794
3794
  Br(e), ee("onToggle"), ee(e ? "onOpen" : "onClose"), Ui();
3795
- }, Gl = () => {
3796
- Br(!1), ee("onClose");
3797
3795
  }, Yl = () => {
3796
+ Br(!1), ee("onClose");
3797
+ }, Xl = () => {
3798
3798
  Br(!0), ee("onOpen"), Ui();
3799
3799
  }, ji = () => ({
3800
3800
  bubble: Bi,
3801
- show: Yl,
3802
- hide: Gl,
3803
- toggle: Wl,
3804
- onOpen: Hl
3801
+ show: Xl,
3802
+ hide: Yl,
3803
+ toggle: Gl,
3804
+ onOpen: Wl
3805
3805
  }), mr = Symbol("store-raw"), mt = Symbol("store-node"), Ke = Symbol("store-has"), qi = Symbol("store-self");
3806
3806
  function Hi(e) {
3807
3807
  let t = e[xe];
3808
3808
  if (!t && (Object.defineProperty(e, xe, {
3809
- value: t = new Proxy(e, Zl)
3809
+ value: t = new Proxy(e, Ql)
3810
3810
  }), !Array.isArray(e))) {
3811
3811
  const n = Object.keys(e), r = Object.getOwnPropertyDescriptors(e);
3812
3812
  for (let o = 0, i = n.length; o < i; o++) {
@@ -3853,17 +3853,17 @@ function Ut(e, t, n) {
3853
3853
  });
3854
3854
  return r.$ = o, e[t] = r;
3855
3855
  }
3856
- function Xl(e, t) {
3856
+ function Jl(e, t) {
3857
3857
  const n = Reflect.getOwnPropertyDescriptor(e, t);
3858
3858
  return !n || n.get || !n.configurable || t === xe || t === mt || (delete n.value, delete n.writable, n.get = () => e[xe][t]), n;
3859
3859
  }
3860
3860
  function Wi(e) {
3861
3861
  dr() && Ut(kn(e, mt), qi)();
3862
3862
  }
3863
- function Jl(e) {
3863
+ function Zl(e) {
3864
3864
  return Wi(e), Reflect.ownKeys(e);
3865
3865
  }
3866
- const Zl = {
3866
+ const Ql = {
3867
3867
  get(e, t, n) {
3868
3868
  if (t === mr) return e;
3869
3869
  if (t === xe) return n;
@@ -3887,8 +3887,8 @@ const Zl = {
3887
3887
  deleteProperty() {
3888
3888
  return !0;
3889
3889
  },
3890
- ownKeys: Jl,
3891
- getOwnPropertyDescriptor: Xl
3890
+ ownKeys: Zl,
3891
+ getOwnPropertyDescriptor: Jl
3892
3892
  };
3893
3893
  function En(e, t, n, r = !1) {
3894
3894
  if (!r && e[t] === n) return;
@@ -3908,7 +3908,7 @@ function Gi(e, t) {
3908
3908
  En(e, o, t[o]);
3909
3909
  }
3910
3910
  }
3911
- function Ql(e, t) {
3911
+ function ec(e, t) {
3912
3912
  if (typeof t == "function" && (t = t(e)), t = Vt(t), Array.isArray(t)) {
3913
3913
  if (e === t) return;
3914
3914
  let n = 0, r = t.length;
@@ -3946,24 +3946,24 @@ function Rt(e, t, n = []) {
3946
3946
  let i = t[0];
3947
3947
  typeof i == "function" && (i = i(o, n), i === o) || r === void 0 && i == null || (i = Vt(i), r === void 0 || Sn(o) && Sn(i) && !Array.isArray(i) ? Gi(o, i) : En(e, r, i));
3948
3948
  }
3949
- function ec(...[e, t]) {
3949
+ function tc(...[e, t]) {
3950
3950
  const n = Vt(e || {}), r = Array.isArray(n), o = Hi(n);
3951
3951
  function i(...s) {
3952
3952
  Oe(() => {
3953
- r && s.length === 1 ? Ql(n, s[0]) : Rt(n, s);
3953
+ r && s.length === 1 ? ec(n, s[0]) : Rt(n, s);
3954
3954
  });
3955
3955
  }
3956
3956
  return [o, i];
3957
3957
  }
3958
3958
  function Yi(e, t, n) {
3959
3959
  return Be(() => {
3960
- const r = Oi(e), [o, i] = ec(
3960
+ const r = Oi(e), [o, i] = tc(
3961
3961
  r ? JSON.parse(r) : t
3962
3962
  );
3963
3963
  return L(() => Ci(e, JSON.stringify(o), n)), [o, i];
3964
3964
  });
3965
3965
  }
3966
- function tc(e, t, n) {
3966
+ function nc(e, t, n) {
3967
3967
  return Be(() => {
3968
3968
  const r = Oi(e), [o, i] = O(
3969
3969
  r ? JSON.parse(r) : t
@@ -3971,8 +3971,8 @@ function tc(e, t, n) {
3971
3971
  return L(() => Ci(e, JSON.stringify(o()), n)), [o, i];
3972
3972
  });
3973
3973
  }
3974
- const [ym, bm] = tc("lang", "en");
3975
- function nc(e) {
3974
+ const [ym, bm] = nc("smarttalks-widget-lang", "en");
3975
+ function rc(e) {
3976
3976
  return {
3977
3977
  type: "chat",
3978
3978
  _id: e._id,
@@ -4000,7 +4000,7 @@ function nc(e) {
4000
4000
  showSettings: !1
4001
4001
  };
4002
4002
  }
4003
- function rc(e) {
4003
+ function oc(e) {
4004
4004
  return {
4005
4005
  type: "form",
4006
4006
  _id: e._id,
@@ -4027,7 +4027,7 @@ function rc(e) {
4027
4027
  }
4028
4028
  };
4029
4029
  }
4030
- const oc = async (e) => {
4030
+ const ic = async (e) => {
4031
4031
  const t = e.split("?"), n = t[0], r = t[1]?.split("&") ?? [];
4032
4032
  if (!n) return;
4033
4033
  console.info("fetching widget:", n);
@@ -4035,9 +4035,9 @@ const oc = async (e) => {
4035
4035
  credentials: "include"
4036
4036
  })).json();
4037
4037
  if (i.type === "flow")
4038
- return nc(i);
4039
- if (i.type === "entity")
4040
4038
  return rc(i);
4039
+ if (i.type === "entity")
4040
+ return oc(i);
4041
4041
  if (i.type === "chat" && r.includes("showSettings") && (i.showSettings = !0), (r.includes("right") || r.includes("left")) && (i.style.position = r.includes("right") ? "right" : "left"), r.some((s) => s.includes("margin"))) {
4042
4042
  const s = r.find((a) => a.includes("margin"));
4043
4043
  s && (i.style.margin = Number(s.split("=")[1] ?? "5"));
@@ -4059,9 +4059,9 @@ const oc = async (e) => {
4059
4059
  }).catch(console.error);
4060
4060
  }
4061
4061
  ), i._id = n, i;
4062
- }, [Xi, ic] = O(""), [rt] = Be(() => al(Xi, oc)), sc = () => {
4062
+ }, [Xi, sc] = O(""), [rt] = Be(() => ll(Xi, ic)), ac = () => {
4063
4063
  if (rt()?.type === "chat") return rt();
4064
- }, ac = () => {
4064
+ }, lc = () => {
4065
4065
  if (rt()?.type === "form") return rt();
4066
4066
  }, Vr = () => {
4067
4067
  const e = rt();
@@ -4072,17 +4072,17 @@ const oc = async (e) => {
4072
4072
  Be(
4073
4073
  () => L(() => {
4074
4074
  const e = rt();
4075
- Ba(e), e && (ee("onLoad"), e.sessionId && (console.log("currentWidget.sessionId", e.sessionId), localStorage.setItem("chat_session_id", e.sessionId)));
4075
+ Va(e), e && (ee("onLoad"), e.sessionId && (console.log("currentWidget.sessionId", e.sessionId), localStorage.setItem("chat_session_id", e.sessionId)));
4076
4076
  })
4077
4077
  );
4078
4078
  const se = () => ({
4079
4079
  widgetId: Xi,
4080
- setWidgetId: ic,
4080
+ setWidgetId: sc,
4081
4081
  widget: rt,
4082
- chatWidget: sc,
4083
- formWidget: ac,
4082
+ chatWidget: ac,
4083
+ formWidget: lc,
4084
4084
  getSessionId: Vr
4085
- }), Eo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Co = bi, lc = (e, t) => (n) => {
4085
+ }), Eo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Co = bi, cc = (e, t) => (n) => {
4086
4086
  var r;
4087
4087
  if (t?.variants == null) return Co(e, n?.class, n?.className);
4088
4088
  const { variants: o, defaultVariants: i } = t, s = Object.keys(o).map((c) => {
@@ -4112,8 +4112,8 @@ const se = () => ({
4112
4112
  }, []);
4113
4113
  return Co(e, s, l, n?.class, n?.className);
4114
4114
  };
4115
- var cc = /* @__PURE__ */ I("<button>");
4116
- const uc = lc("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
4115
+ var uc = /* @__PURE__ */ I("<button>");
4116
+ const dc = cc("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
4117
4117
  variants: {
4118
4118
  variant: {
4119
4119
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
@@ -4137,10 +4137,10 @@ const uc = lc("inline-flex items-center justify-center rounded-md text-sm font-m
4137
4137
  }), _e = (e) => {
4138
4138
  const [, t] = j(e, ["variant", "size", "class"]);
4139
4139
  return (() => {
4140
- var n = cc();
4140
+ var n = uc();
4141
4141
  return st(n, T({
4142
4142
  get class() {
4143
- return Qe(uc({
4143
+ return Qe(dc({
4144
4144
  variant: e.variant,
4145
4145
  size: e.size
4146
4146
  }), e.class);
@@ -4148,11 +4148,11 @@ const uc = lc("inline-flex items-center justify-center rounded-md text-sm font-m
4148
4148
  }, t), !1, !1), n;
4149
4149
  })();
4150
4150
  };
4151
- var dc = /* @__PURE__ */ I('<img alt="widget logo">');
4151
+ var fc = /* @__PURE__ */ I('<img alt="widget logo">');
4152
4152
  const Ji = (e) => {
4153
4153
  const [, t] = j(e, ["class", "src"]);
4154
4154
  return (() => {
4155
- var n = dc();
4155
+ var n = fc();
4156
4156
  return st(n, T({
4157
4157
  get src() {
4158
4158
  return e.src ?? "/src/assets/izi.jpeg";
@@ -4163,13 +4163,13 @@ const Ji = (e) => {
4163
4163
  }, t), !1, !1), n;
4164
4164
  })();
4165
4165
  };
4166
- var fc = /* @__PURE__ */ I('<div class="flex space-x-4"><div class="flex flex-col"><span class="font-bold md:text-lg"></span><span class="text-xs md:text-sm truncate">');
4167
- const hc = () => {
4166
+ var hc = /* @__PURE__ */ I('<div class="flex space-x-4"><div class="flex flex-col"><span class="font-bold md:text-lg"></span><span class="text-xs md:text-sm truncate">');
4167
+ const gc = () => {
4168
4168
  const {
4169
4169
  chatWidget: e
4170
4170
  } = se(), t = () => e()?.title ? (e()?.title?.length || 0) > 24 ? `${e()?.title?.slice(0, 21)}...` : e()?.title : "SmartTalks.ai", n = () => e()?.subtitle ? (e()?.subtitle?.length || 0) > 30 ? `${e()?.subtitle?.slice(0, 27)}...` : e()?.subtitle : "Chat";
4171
4171
  return (() => {
4172
- var r = fc(), o = r.firstChild, i = o.firstChild, s = i.nextSibling;
4172
+ var r = hc(), o = r.firstChild, i = o.firstChild, s = i.nextSibling;
4173
4173
  return A(r, y(Ji, {
4174
4174
  get src() {
4175
4175
  return e()?.avatar;
@@ -4177,13 +4177,13 @@ const hc = () => {
4177
4177
  }), o), A(i, t), A(s, n), r;
4178
4178
  })();
4179
4179
  };
4180
- var gc = /* @__PURE__ */ I("<svg stroke-width=0>");
4180
+ var pc = /* @__PURE__ */ I("<svg stroke-width=0>");
4181
4181
  function Se(e, t) {
4182
4182
  const n = T(e.a, t), [r, o] = j(n, ["src"]), [i, s] = O(""), a = C(() => t.title ? `${e.c}<title>${t.title}</title>` : e.c);
4183
4183
  return L(() => s(a())), K(() => {
4184
4184
  s("");
4185
4185
  }), (() => {
4186
- var l = gc();
4186
+ var l = pc();
4187
4187
  return st(l, T({
4188
4188
  get stroke() {
4189
4189
  return e.a?.stroke;
@@ -4211,28 +4211,28 @@ function Se(e, t) {
4211
4211
  get innerHTML() {
4212
4212
  return i();
4213
4213
  }
4214
- }), !0, !0), A(l, () => Nl), l;
4214
+ }), !0, !0), A(l, () => Kl), l;
4215
4215
  })();
4216
4216
  }
4217
- function pc(e) {
4217
+ function mc(e) {
4218
4218
  return Se({
4219
4219
  a: { fill: "currentColor", viewBox: "0 0 16 16" },
4220
4220
  c: '<path fill-rule="evenodd" d="M12.75 8a4.5 4.5 0 0 1-8.61 1.834l-1.391.565A6.001 6.001 0 0 0 14.25 8 6 6 0 0 0 3.5 4.334V2.5H2v4l.75.75h3.5v-1.5H4.352A4.5 4.5 0 0 1 12.75 8z" clip-rule="evenodd"/>'
4221
4221
  }, e);
4222
4222
  }
4223
- function mc(e) {
4223
+ function yc(e) {
4224
4224
  return Se({
4225
4225
  a: { fill: "currentColor", viewBox: "0 0 16 16" },
4226
4226
  c: '<path fill-rule="evenodd" d="M7.444 13.832a1 1 0 1 0 1.111-1.663 1 1 0 0 0-1.11 1.662zM8 9a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z" clip-rule="evenodd"/>'
4227
4227
  }, e);
4228
4228
  }
4229
- function yc(e) {
4229
+ function bc(e) {
4230
4230
  return Se({
4231
4231
  a: { fill: "currentColor", viewBox: "0 0 16 16" },
4232
4232
  c: '<path fill-rule="evenodd" d="M13.917 7A6.002 6.002 0 0 0 2.083 7H1.071a7.002 7.002 0 0 1 13.858 0h-1.012z" clip-rule="evenodd"/>'
4233
4233
  }, e);
4234
4234
  }
4235
- function bc(e) {
4235
+ function wc(e) {
4236
4236
  return Se({
4237
4237
  a: { fill: "currentColor", viewBox: "0 0 16 16" },
4238
4238
  c: '<path d="m1 1.91.78-.41L15 7.449v.95L1.78 14.33 1 13.91 2.583 8 1 1.91ZM3.612 8.5 2.33 13.13 13.5 7.9 2.33 2.839l1.282 4.6L9 7.5v1H3.612Z"/>'
@@ -4245,7 +4245,7 @@ function Zi(e) {
4245
4245
  n && n(...t);
4246
4246
  };
4247
4247
  }
4248
- function wc(e) {
4248
+ function vc(e) {
4249
4249
  return (...t) => {
4250
4250
  for (let n = e.length - 1; n >= 0; n--) {
4251
4251
  const r = e[n];
@@ -4254,17 +4254,17 @@ function wc(e) {
4254
4254
  };
4255
4255
  }
4256
4256
  const S = (e) => typeof e == "function" && !e.length ? e() : e, Oo = (e) => Array.isArray(e) ? e : e ? [e] : [];
4257
- function vc(e, ...t) {
4257
+ function xc(e, ...t) {
4258
4258
  return typeof e == "function" ? e(...t) : e;
4259
4259
  }
4260
- const xc = K;
4261
- function Sc(e, t, n, r) {
4262
- return e.addEventListener(t, n, r), xc(e.removeEventListener.bind(e, t, n, r));
4263
- }
4260
+ const Sc = K;
4264
4261
  function kc(e, t, n, r) {
4262
+ return e.addEventListener(t, n, r), Sc(e.removeEventListener.bind(e, t, n, r));
4263
+ }
4264
+ function Ec(e, t, n, r) {
4265
4265
  const o = () => {
4266
4266
  Oo(S(e)).forEach((i) => {
4267
- i && Oo(S(t)).forEach((s) => Sc(i, s, n, r));
4267
+ i && Oo(S(t)).forEach((s) => kc(i, s, n, r));
4268
4268
  });
4269
4269
  };
4270
4270
  typeof e == "function" ? L(o) : ie(o);
@@ -4272,7 +4272,7 @@ function kc(e, t, n, r) {
4272
4272
  function Zt() {
4273
4273
  return !0;
4274
4274
  }
4275
- const Ec = {
4275
+ const Cc = {
4276
4276
  get(e, t, n) {
4277
4277
  return t === xe ? n : e.get(t);
4278
4278
  },
@@ -4295,15 +4295,15 @@ const Ec = {
4295
4295
  ownKeys(e) {
4296
4296
  return e.keys();
4297
4297
  }
4298
- }, Cc = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
4298
+ }, Oc = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
4299
4299
  function _o(e) {
4300
4300
  const t = {};
4301
4301
  let n;
4302
- for (; n = Cc.exec(e); )
4302
+ for (; n = Oc.exec(e); )
4303
4303
  t[n[1]] = n[2];
4304
4304
  return t;
4305
4305
  }
4306
- function Oc(e, t) {
4306
+ function _c(e, t) {
4307
4307
  if (typeof e == "string") {
4308
4308
  if (typeof t == "string")
4309
4309
  return `${e};${t}`;
@@ -4319,11 +4319,11 @@ const Yn = (e, t, n) => {
4319
4319
  }
4320
4320
  return r;
4321
4321
  };
4322
- function _c(...e) {
4322
+ function Pc(...e) {
4323
4323
  const t = Array.isArray(e[0]), n = t ? e[0] : e;
4324
4324
  if (n.length === 1)
4325
4325
  return n[0];
4326
- const r = t && e[1]?.reverseEventHandlers ? wc : Zi, o = {};
4326
+ const r = t && e[1]?.reverseEventHandlers ? vc : Zi, o = {};
4327
4327
  for (const s of n) {
4328
4328
  const a = S(s);
4329
4329
  for (const l in a)
@@ -4341,7 +4341,7 @@ function _c(...e) {
4341
4341
  if (typeof s != "string")
4342
4342
  return Reflect.get(i, s);
4343
4343
  if (s === "style")
4344
- return Yn(n, "style", Oc);
4344
+ return Yn(n, "style", _c);
4345
4345
  if (s === "ref") {
4346
4346
  const a = [];
4347
4347
  for (const l of n) {
@@ -4362,28 +4362,28 @@ function _c(...e) {
4362
4362
  keys() {
4363
4363
  return Object.keys(i);
4364
4364
  }
4365
- }, Ec);
4365
+ }, Cc);
4366
4366
  }
4367
4367
  function lt(...e) {
4368
4368
  return Zi(e);
4369
4369
  }
4370
- function Pc(e, t, n = -1) {
4370
+ function Ac(e, t, n = -1) {
4371
4371
  return n in e ? [...e.slice(0, n), t, ...e.slice(n)] : [...e, t];
4372
4372
  }
4373
4373
  function br(e, t) {
4374
4374
  const n = [...e], r = n.indexOf(t);
4375
4375
  return r !== -1 && n.splice(r, 1), n;
4376
4376
  }
4377
- function Ac(e) {
4377
+ function Tc(e) {
4378
4378
  return typeof e == "number";
4379
4379
  }
4380
- function Tc(e) {
4380
+ function Lc(e) {
4381
4381
  return Array.isArray(e);
4382
4382
  }
4383
4383
  function ft(e) {
4384
4384
  return Object.prototype.toString.call(e) === "[object String]";
4385
4385
  }
4386
- function Lc(e) {
4386
+ function Mc(e) {
4387
4387
  return typeof e == "function";
4388
4388
  }
4389
4389
  function Qi(e) {
@@ -4427,21 +4427,21 @@ function Ur(e) {
4427
4427
  function In() {
4428
4428
  return Ur(/^Mac/i);
4429
4429
  }
4430
- function Mc() {
4430
+ function Dc() {
4431
4431
  return Ur(/^iPhone/i);
4432
4432
  }
4433
- function Dc() {
4433
+ function Ic() {
4434
4434
  return Ur(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
4435
4435
  In() && navigator.maxTouchPoints > 1;
4436
4436
  }
4437
- function Ic() {
4438
- return Mc() || Dc();
4439
- }
4440
4437
  function Rc() {
4441
- return In() || Ic();
4438
+ return Dc() || Ic();
4439
+ }
4440
+ function Fc() {
4441
+ return In() || Rc();
4442
4442
  }
4443
4443
  function pe(e, t) {
4444
- return t && (Lc(t) ? t(e) : t[0](t[1], e)), e?.defaultPrevented;
4444
+ return t && (Mc(t) ? t(e) : t[0](t[1], e)), e?.defaultPrevented;
4445
4445
  }
4446
4446
  function we(e) {
4447
4447
  return (t) => {
@@ -4449,20 +4449,20 @@ function we(e) {
4449
4449
  pe(t, n);
4450
4450
  };
4451
4451
  }
4452
- function Fc(e) {
4452
+ function $c(e) {
4453
4453
  return In() ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey;
4454
4454
  }
4455
4455
  function ue(e) {
4456
4456
  if (e)
4457
- if ($c())
4457
+ if (Nc())
4458
4458
  e.focus({ preventScroll: !0 });
4459
4459
  else {
4460
- const t = Nc(e);
4461
- e.focus(), Kc(t);
4460
+ const t = Kc(e);
4461
+ e.focus(), zc(t);
4462
4462
  }
4463
4463
  }
4464
4464
  var Qt = null;
4465
- function $c() {
4465
+ function Nc() {
4466
4466
  if (Qt == null) {
4467
4467
  Qt = !1;
4468
4468
  try {
@@ -4476,7 +4476,7 @@ function $c() {
4476
4476
  }
4477
4477
  return Qt;
4478
4478
  }
4479
- function Nc(e) {
4479
+ function Kc(e) {
4480
4480
  let t = e.parentNode;
4481
4481
  const n = [], r = document.scrollingElement || document.documentElement;
4482
4482
  for (; t instanceof HTMLElement && t !== r; )
@@ -4491,7 +4491,7 @@ function Nc(e) {
4491
4491
  scrollLeft: r.scrollLeft
4492
4492
  }), n;
4493
4493
  }
4494
- function Kc(e) {
4494
+ function zc(e) {
4495
4495
  for (const { element: t, scrollTop: n, scrollLeft: r } of e)
4496
4496
  t.scrollTop = n, t.scrollLeft = r;
4497
4497
  }
@@ -4509,12 +4509,12 @@ var ns = [
4509
4509
  "audio[controls]",
4510
4510
  "video[controls]",
4511
4511
  "[contenteditable]:not([contenteditable='false'])"
4512
- ], zc = [
4512
+ ], Bc = [
4513
4513
  ...ns,
4514
4514
  '[tabindex]:not([tabindex="-1"]):not([disabled])'
4515
4515
  ], jr = `${ns.join(
4516
4516
  ":not([hidden]),"
4517
- )},[tabindex]:not([disabled]):not([hidden])`, Bc = zc.join(
4517
+ )},[tabindex]:not([disabled]):not([hidden])`, Vc = Bc.join(
4518
4518
  ':not([hidden]):not([tabindex="-1"]),'
4519
4519
  );
4520
4520
  function rs(e, t) {
@@ -4529,18 +4529,18 @@ function rs(e, t) {
4529
4529
  }), r;
4530
4530
  }
4531
4531
  function Po(e) {
4532
- return os(e) && !Vc(e);
4532
+ return os(e) && !Uc(e);
4533
4533
  }
4534
4534
  function os(e) {
4535
4535
  return e.matches(jr) && qr(e);
4536
4536
  }
4537
- function Vc(e) {
4537
+ function Uc(e) {
4538
4538
  return Number.parseInt(e.getAttribute("tabindex") || "0", 10) < 0;
4539
4539
  }
4540
4540
  function qr(e, t) {
4541
- return e.nodeName !== "#comment" && Uc(e) && jc(e, t) && (!e.parentElement || qr(e.parentElement, e));
4541
+ return e.nodeName !== "#comment" && jc(e) && qc(e, t) && (!e.parentElement || qr(e.parentElement, e));
4542
4542
  }
4543
- function Uc(e) {
4543
+ function jc(e) {
4544
4544
  if (!(e instanceof HTMLElement) && !(e instanceof SVGElement))
4545
4545
  return !1;
4546
4546
  const { display: t, visibility: n } = e.style;
@@ -4553,11 +4553,11 @@ function Uc(e) {
4553
4553
  }
4554
4554
  return r;
4555
4555
  }
4556
- function jc(e, t) {
4556
+ function qc(e, t) {
4557
4557
  return !e.hasAttribute("hidden") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
4558
4558
  }
4559
- function qc(e, t, n) {
4560
- const r = t?.tabbable ? Bc : jr, o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
4559
+ function Hc(e, t, n) {
4560
+ const r = t?.tabbable ? Vc : jr, o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
4561
4561
  acceptNode(i) {
4562
4562
  return t?.from?.contains(i) ? NodeFilter.FILTER_REJECT : i.matches(r) && qr(i) && (!t?.accept || t.accept(i)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
4563
4563
  }
@@ -4566,19 +4566,19 @@ function qc(e, t, n) {
4566
4566
  }
4567
4567
  function Ao(e) {
4568
4568
  let t = e;
4569
- for (; t && !Hc(t); )
4569
+ for (; t && !Wc(t); )
4570
4570
  t = t.parentElement;
4571
4571
  return t || document.scrollingElement || document.documentElement;
4572
4572
  }
4573
- function Hc(e) {
4573
+ function Wc(e) {
4574
4574
  const t = window.getComputedStyle(e);
4575
4575
  return /(auto|scroll)/.test(
4576
4576
  t.overflow + t.overflowX + t.overflowY
4577
4577
  );
4578
4578
  }
4579
- function Wc() {
4579
+ function Gc() {
4580
4580
  }
4581
- function Gc(e, t) {
4581
+ function Yc(e, t) {
4582
4582
  const [n, r] = e;
4583
4583
  let o = !1;
4584
4584
  const i = t.length;
@@ -4650,7 +4650,7 @@ function Mo(e, t, n) {
4650
4650
  }
4651
4651
  return o;
4652
4652
  }
4653
- function Yc(e, t) {
4653
+ function Xc(e, t) {
4654
4654
  if (document.contains(e)) {
4655
4655
  const n = document.scrollingElement || document.documentElement;
4656
4656
  if (window.getComputedStyle(n).overflow === "hidden") {
@@ -4668,7 +4668,7 @@ function Yc(e, t) {
4668
4668
  }
4669
4669
  }
4670
4670
  }
4671
- var Xc = {
4671
+ var Jc = {
4672
4672
  border: "0",
4673
4673
  clip: "rect(0 0 0 0)",
4674
4674
  "clip-path": "inset(50%)",
@@ -4702,7 +4702,7 @@ function vr(e) {
4702
4702
  return ft(e.getSectionChildren) ? l[e.getSectionChildren] : e.getSectionChildren?.(l);
4703
4703
  };
4704
4704
  for (const l of e.dataSource) {
4705
- if (ft(l) || Ac(l)) {
4705
+ if (ft(l) || Tc(l)) {
4706
4706
  r.push({
4707
4707
  type: "item",
4708
4708
  rawValue: l,
@@ -4757,7 +4757,7 @@ function vr(e) {
4757
4757
  * Credits to the React Spectrum team:
4758
4758
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/collections/src/useCollection.ts
4759
4759
  */
4760
- function Jc(e, t = []) {
4760
+ function Zc(e, t = []) {
4761
4761
  const n = vr({
4762
4762
  dataSource: S(e.dataSource),
4763
4763
  getKey: S(e.getKey),
@@ -4790,21 +4790,21 @@ function Hr(e) {
4790
4790
  const [t, n] = O(e.defaultValue?.()), r = C(() => e.value?.() !== void 0), o = C(() => r() ? e.value?.() : t());
4791
4791
  return [o, (s) => {
4792
4792
  H(() => {
4793
- const a = vc(s, o());
4793
+ const a = xc(s, o());
4794
4794
  return Object.is(a, o()) || (r() || n(a), e.onChange?.(a)), a;
4795
4795
  });
4796
4796
  }];
4797
4797
  }
4798
- function Zc(e) {
4798
+ function Qc(e) {
4799
4799
  const [t, n] = Hr(e);
4800
4800
  return [() => t() ?? !1, n];
4801
4801
  }
4802
- function Qc(e) {
4802
+ function eu(e) {
4803
4803
  const [t, n] = Hr(e);
4804
4804
  return [() => t() ?? [], n];
4805
4805
  }
4806
4806
  function is(e = {}) {
4807
- const [t, n] = Zc({
4807
+ const [t, n] = Qc({
4808
4808
  value: () => S(e.open),
4809
4809
  defaultValue: () => !!S(e.defaultOpen),
4810
4810
  onChange: (s) => e.onOpenChange?.(s)
@@ -4823,7 +4823,7 @@ function is(e = {}) {
4823
4823
  }
4824
4824
  };
4825
4825
  }
4826
- function eu(e) {
4826
+ function tu(e) {
4827
4827
  const t = (n) => {
4828
4828
  n.key === ts.Escape && e.onEscapeKeyDown?.(n);
4829
4829
  };
@@ -4855,45 +4855,45 @@ const je = [];
4855
4855
  function jt(e) {
4856
4856
  return je.findIndex((t) => t.node === e);
4857
4857
  }
4858
- function tu(e) {
4858
+ function nu(e) {
4859
4859
  return je[jt(e)];
4860
4860
  }
4861
- function nu(e) {
4861
+ function ru(e) {
4862
4862
  return je[je.length - 1].node === e;
4863
4863
  }
4864
4864
  function as() {
4865
4865
  return je.filter((e) => e.isPointerBlocking);
4866
4866
  }
4867
- function ru() {
4867
+ function ou() {
4868
4868
  return [...as()].slice(-1)[0];
4869
4869
  }
4870
4870
  function Wr() {
4871
4871
  return as().length > 0;
4872
4872
  }
4873
4873
  function ls(e) {
4874
- const t = jt(ru()?.node);
4874
+ const t = jt(ou()?.node);
4875
4875
  return jt(e) < t;
4876
4876
  }
4877
- function ou(e) {
4877
+ function iu(e) {
4878
4878
  je.push(e);
4879
4879
  }
4880
- function iu(e) {
4880
+ function su(e) {
4881
4881
  const t = jt(e);
4882
4882
  t < 0 || je.splice(t, 1);
4883
4883
  }
4884
- function su() {
4884
+ function au() {
4885
4885
  for (const {
4886
4886
  node: e
4887
4887
  } of je)
4888
4888
  e.style.pointerEvents = ls(e) ? "none" : "auto";
4889
4889
  }
4890
- function au(e) {
4890
+ function lu(e) {
4891
4891
  if (Wr() && !xr) {
4892
4892
  const t = Ue(e);
4893
4893
  ss = document.body.style.pointerEvents, t.body.style.pointerEvents = "none", xr = !0;
4894
4894
  }
4895
4895
  }
4896
- function lu(e) {
4896
+ function cu(e) {
4897
4897
  if (Wr())
4898
4898
  return;
4899
4899
  const t = Ue(e);
@@ -4901,16 +4901,16 @@ function lu(e) {
4901
4901
  }
4902
4902
  const he = {
4903
4903
  layers: je,
4904
- isTopMostLayer: nu,
4904
+ isTopMostLayer: ru,
4905
4905
  hasPointerBlockingLayer: Wr,
4906
4906
  isBelowPointerBlockingLayer: ls,
4907
- addLayer: ou,
4908
- removeLayer: iu,
4907
+ addLayer: iu,
4908
+ removeLayer: su,
4909
4909
  indexOf: jt,
4910
- find: tu,
4911
- assignPointerEventToLayers: su,
4912
- disableBodyPointerEvents: au,
4913
- restoreBodyPointerEvents: lu
4910
+ find: nu,
4911
+ assignPointerEventToLayers: au,
4912
+ disableBodyPointerEvents: lu,
4913
+ restoreBodyPointerEvents: cu
4914
4914
  };
4915
4915
  /*!
4916
4916
  * Portions of this file are based on code from radix-ui-primitives.
@@ -4942,7 +4942,7 @@ const Xn = "focusScope.autoFocusOnMount", Jn = "focusScope.autoFocusOnUnmount",
4942
4942
  this.stack = br(this.stack, e), this.active()?.resume();
4943
4943
  }
4944
4944
  };
4945
- function cu(e, t) {
4945
+ function uu(e, t) {
4946
4946
  const [n, r] = O(!1), o = {
4947
4947
  pause() {
4948
4948
  r(!0);
@@ -4954,7 +4954,7 @@ function cu(e, t) {
4954
4954
  let i = null;
4955
4955
  const s = (h) => e.onMountAutoFocus?.(h), a = (h) => e.onUnmountAutoFocus?.(h), l = () => Ue(t()), c = () => {
4956
4956
  const h = l().createElement("span");
4957
- return h.setAttribute("data-focus-trap", ""), h.tabIndex = 0, Object.assign(h.style, Xc), h;
4957
+ return h.setAttribute("data-focus-trap", ""), h.tabIndex = 0, Object.assign(h.style, Jc), h;
4958
4958
  }, d = () => {
4959
4959
  const h = t();
4960
4960
  return h ? rs(h, !0).filter((p) => !p.hasAttribute("data-focus-trap")) : [];
@@ -5035,7 +5035,7 @@ function cu(e, t) {
5035
5035
  * Credits to the React Spectrum team:
5036
5036
  * https://github.com/adobe/react-spectrum/blob/15e101b74966bd5eb719c6529ce71ce57eaed430/packages/@react-aria/live-announcer/src/LiveAnnouncer.tsx
5037
5037
  */
5038
- const uu = "data-live-announcer";
5038
+ const du = "data-live-announcer";
5039
5039
  /*!
5040
5040
  * This file is based on code from react-spectrum.
5041
5041
  * Apache License Version 2.0, Copyright 2020 Adobe.
@@ -5043,15 +5043,15 @@ const uu = "data-live-announcer";
5043
5043
  * Credits to the React Spectrum team:
5044
5044
  * https://github.com/adobe/react-spectrum/blob/810579b671791f1593108f62cdc1893de3a220e3/packages/@react-aria/overlays/src/ariaHideOutside.ts
5045
5045
  */
5046
- function du(e) {
5046
+ function fu(e) {
5047
5047
  L(() => {
5048
- S(e.isDisabled) || K(fu(S(e.targets), S(e.root)));
5048
+ S(e.isDisabled) || K(hu(S(e.targets), S(e.root)));
5049
5049
  });
5050
5050
  }
5051
5051
  const Dt = /* @__PURE__ */ new WeakMap(), be = [];
5052
- function fu(e, t = document.body) {
5052
+ function hu(e, t = document.body) {
5053
5053
  const n = new Set(e), r = /* @__PURE__ */ new Set(), o = (l) => {
5054
- for (const f of l.querySelectorAll(`[${uu}], [${Cn}]`))
5054
+ for (const f of l.querySelectorAll(`[${du}], [${Cn}]`))
5055
5055
  n.add(f);
5056
5056
  const c = (f) => {
5057
5057
  if (n.has(f) || f.parentElement && r.has(f.parentElement) && f.parentElement.getAttribute("role") !== "row")
@@ -5116,8 +5116,8 @@ function fu(e, t = document.body) {
5116
5116
  * https://github.com/chakra-ui/zag/blob/d1dbf9e240803c9e3ed81ebef363739be4273de0/packages/utilities/interact-outside/src/index.ts
5117
5117
  */
5118
5118
  const Ro = "interactOutside.pointerDownOutside", Fo = "interactOutside.focusOutside";
5119
- function hu(e, t) {
5120
- let n, r = Wc;
5119
+ function gu(e, t) {
5120
+ let n, r = Gc;
5121
5121
  const o = () => Ue(t()), i = (u) => e.onPointerDownOutside?.(u), s = (u) => e.onFocusOutside?.(u), a = (u) => e.onInteractOutside?.(u), l = (u) => {
5122
5122
  const f = u.target;
5123
5123
  return !(f instanceof HTMLElement) || f.closest(`[${Cn}]`) || !Te(o(), f) || Te(t(), f) ? !1 : !e.shouldExcludeElement?.(f);
@@ -5138,7 +5138,7 @@ function hu(e, t) {
5138
5138
  cancelable: !0,
5139
5139
  detail: {
5140
5140
  originalEvent: u,
5141
- isContextMenu: u.button === 2 || Fc(u) && u.button === 0
5141
+ isContextMenu: u.button === 2 || $c(u) && u.button === 0
5142
5142
  }
5143
5143
  });
5144
5144
  h.dispatchEvent(m);
@@ -5179,10 +5179,10 @@ function hu(e, t) {
5179
5179
  * https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/Presence.tsx
5180
5180
  * https://github.com/radix-ui/primitives/blob/21a7c97dc8efa79fecca36428eec49f187294085/packages/react/presence/src/useStateMachine.tsx
5181
5181
  */
5182
- function gu(e) {
5182
+ function pu(e) {
5183
5183
  const [t, n] = O();
5184
5184
  let r = {}, o = e(), i = "none";
5185
- const [s, a] = pu(e() ? "mounted" : "unmounted", {
5185
+ const [s, a] = mu(e() ? "mounted" : "unmounted", {
5186
5186
  mounted: {
5187
5187
  UNMOUNT: "unmounted",
5188
5188
  ANIMATION_OUT: "unmountSuspended"
@@ -5226,7 +5226,7 @@ function gu(e) {
5226
5226
  function en(e) {
5227
5227
  return e?.animationName || "none";
5228
5228
  }
5229
- function pu(e, t) {
5229
+ function mu(e, t) {
5230
5230
  const n = (s, a) => t[s][a] ?? s, [r, o] = O(e);
5231
5231
  return [r, (s) => {
5232
5232
  o((a) => n(a, s));
@@ -5242,7 +5242,7 @@ function On(e) {
5242
5242
  * Credits to the ariakit team:
5243
5243
  * https://github.com/ariakit/ariakit/blob/8a13899ff807bbf39f3d89d2d5964042ba4d5287/packages/ariakit-react-utils/src/hooks.ts
5244
5244
  */
5245
- function mu(e, t) {
5245
+ function yu(e, t) {
5246
5246
  const [n, r] = O($o(t?.()));
5247
5247
  return L(() => {
5248
5248
  r(e()?.tagName.toLowerCase() || $o(t?.()));
@@ -5268,7 +5268,7 @@ function Rn(e) {
5268
5268
  const o = Ko(n, r()?.props ?? {});
5269
5269
  return y(un, o);
5270
5270
  }
5271
- if (Tc(r())) {
5271
+ if (Lc(r())) {
5272
5272
  const o = r().find(No);
5273
5273
  if (o) {
5274
5274
  const i = () => y(bt, {
@@ -5290,12 +5290,12 @@ function Rn(e) {
5290
5290
  }
5291
5291
  throw new Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.");
5292
5292
  }
5293
- const yu = Symbol("$$KobalteAsComponent");
5293
+ const bu = Symbol("$$KobalteAsComponent");
5294
5294
  function No(e) {
5295
- return e?.[yu] === !0;
5295
+ return e?.[bu] === !0;
5296
5296
  }
5297
5297
  function Ko(e, t) {
5298
- return _c([e, t], {
5298
+ return Pc([e, t], {
5299
5299
  reverseEventHandlers: !0
5300
5300
  });
5301
5301
  }
@@ -5306,7 +5306,7 @@ function Ko(e, t) {
5306
5306
  * Credits to the React Spectrum team:
5307
5307
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/utils.ts
5308
5308
  */
5309
- const bu = /* @__PURE__ */ new Set([
5309
+ const wu = /* @__PURE__ */ new Set([
5310
5310
  "Avst",
5311
5311
  "Arab",
5312
5312
  "Armi",
@@ -5319,7 +5319,7 @@ const bu = /* @__PURE__ */ new Set([
5319
5319
  "Adlm",
5320
5320
  "Rohg",
5321
5321
  "Hebr"
5322
- ]), wu = /* @__PURE__ */ new Set([
5322
+ ]), vu = /* @__PURE__ */ new Set([
5323
5323
  "ae",
5324
5324
  "ar",
5325
5325
  "arc",
@@ -5340,16 +5340,16 @@ const bu = /* @__PURE__ */ new Set([
5340
5340
  "ur",
5341
5341
  "yi"
5342
5342
  ]);
5343
- function vu(e) {
5343
+ function xu(e) {
5344
5344
  if (Intl.Locale) {
5345
5345
  const n = new Intl.Locale(e).maximize().script ?? "";
5346
- return bu.has(n);
5346
+ return wu.has(n);
5347
5347
  }
5348
5348
  const t = e.split("-")[0];
5349
- return wu.has(t);
5349
+ return vu.has(t);
5350
5350
  }
5351
- function xu(e) {
5352
- return vu(e) ? "rtl" : "ltr";
5351
+ function Su(e) {
5352
+ return xu(e) ? "rtl" : "ltr";
5353
5353
  }
5354
5354
  /*!
5355
5355
  * Portions of this file are based on code from react-spectrum.
@@ -5368,7 +5368,7 @@ function cs() {
5368
5368
  }
5369
5369
  return {
5370
5370
  locale: e,
5371
- direction: xu(e)
5371
+ direction: Su(e)
5372
5372
  };
5373
5373
  }
5374
5374
  let Sr = cs();
@@ -5378,7 +5378,7 @@ function zo() {
5378
5378
  for (const e of $t)
5379
5379
  e(Sr);
5380
5380
  }
5381
- function Su() {
5381
+ function ku() {
5382
5382
  const [e, t] = O(Sr), n = C(() => e());
5383
5383
  return xt(() => {
5384
5384
  $t.size === 0 && window.addEventListener("languagechange", zo), $t.add(t), K(() => {
@@ -5389,10 +5389,10 @@ function Su() {
5389
5389
  direction: () => n().direction
5390
5390
  };
5391
5391
  }
5392
- const ku = fe();
5392
+ const Eu = fe();
5393
5393
  function Gr() {
5394
- const e = Su();
5395
- return ye(ku) || e;
5394
+ const e = ku();
5395
+ return ye(Eu) || e;
5396
5396
  }
5397
5397
  /*!
5398
5398
  * Portions of this file are based on code from react-spectrum.
@@ -5402,7 +5402,7 @@ function Gr() {
5402
5402
  * https://github.com/adobe/react-spectrum/blob/b35d5c02fe900badccd0cf1a8f23bb593419f238/packages/@react-aria/i18n/src/useCollator.ts
5403
5403
  */
5404
5404
  const Zn = /* @__PURE__ */ new Map();
5405
- function Eu(e) {
5405
+ function Cu(e) {
5406
5406
  const { locale: t } = Gr(), n = C(() => t() + (e ? Object.entries(e).sort((r, o) => r[0] < o[0] ? -1 : 1).join() : ""));
5407
5407
  return C(() => {
5408
5408
  const r = n();
@@ -5426,7 +5426,7 @@ class Ce extends Set {
5426
5426
  super(t), t instanceof Ce ? (this.anchorKey = n || t.anchorKey, this.currentKey = r || t.currentKey) : (this.anchorKey = n, this.currentKey = r);
5427
5427
  }
5428
5428
  }
5429
- function Cu(e) {
5429
+ function Ou(e) {
5430
5430
  const [t, n] = Hr(e);
5431
5431
  return [() => t() ?? new Ce(), n];
5432
5432
  }
@@ -5438,7 +5438,7 @@ function Cu(e) {
5438
5438
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/utils.ts
5439
5439
  */
5440
5440
  function us(e) {
5441
- return Rc() ? e.altKey : e.ctrlKey;
5441
+ return Fc() ? e.altKey : e.ctrlKey;
5442
5442
  }
5443
5443
  function ht(e) {
5444
5444
  return In() ? e.metaKey : e.ctrlKey;
@@ -5446,7 +5446,7 @@ function ht(e) {
5446
5446
  function Bo(e) {
5447
5447
  return new Ce(e);
5448
5448
  }
5449
- function Ou(e, t) {
5449
+ function _u(e, t) {
5450
5450
  if (e.size !== t.size)
5451
5451
  return !1;
5452
5452
  for (const n of e)
@@ -5461,7 +5461,7 @@ function Ou(e, t) {
5461
5461
  * Credits to the React Spectrum team:
5462
5462
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/useMultipleSelectionState.ts
5463
5463
  */
5464
- function _u(e) {
5464
+ function Pu(e) {
5465
5465
  const t = Fe({
5466
5466
  selectionMode: "none",
5467
5467
  selectionBehavior: "toggle"
@@ -5471,12 +5471,12 @@ function _u(e) {
5471
5471
  }), a = C(() => {
5472
5472
  const p = S(t.defaultSelectedKeys);
5473
5473
  return p != null ? Bo(p) : new Ce();
5474
- }), [l, c] = Cu({
5474
+ }), [l, c] = Ou({
5475
5475
  value: s,
5476
5476
  defaultValue: a,
5477
5477
  onChange: (p) => t.onSelectionChange?.(p)
5478
5478
  }), [d, u] = O(S(t.selectionBehavior)), f = () => S(t.selectionMode), g = () => S(t.disallowEmptySelection) ?? !1, h = (p) => {
5479
- (S(t.allowDuplicateSelectionEvents) || !Ou(p, l())) && c(p);
5479
+ (S(t.allowDuplicateSelectionEvents) || !_u(p, l())) && c(p);
5480
5480
  };
5481
5481
  return L(() => {
5482
5482
  const p = l();
@@ -5503,7 +5503,7 @@ function _u(e) {
5503
5503
  * Credits to the React Spectrum team:
5504
5504
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useTypeSelect.ts
5505
5505
  */
5506
- function Pu(e) {
5506
+ function Au(e) {
5507
5507
  const [t, n] = O(""), [r, o] = O(-1);
5508
5508
  return {
5509
5509
  typeSelectHandlers: {
@@ -5513,20 +5513,20 @@ function Pu(e) {
5513
5513
  const a = S(e.keyboardDelegate), l = S(e.selectionManager);
5514
5514
  if (!a.getKeyForSearch)
5515
5515
  return;
5516
- const c = Au(s.key);
5516
+ const c = Tu(s.key);
5517
5517
  if (!c || s.ctrlKey || s.metaKey)
5518
5518
  return;
5519
5519
  c === " " && t().trim().length > 0 && (s.preventDefault(), s.stopPropagation());
5520
5520
  let d = n((f) => f + c), u = a.getKeyForSearch(d, l.focusedKey()) ?? a.getKeyForSearch(d);
5521
- u == null && Tu(d) && (d = d[0], u = a.getKeyForSearch(d, l.focusedKey()) ?? a.getKeyForSearch(d)), u != null && (l.setFocusedKey(u), e.onTypeSelect?.(u)), clearTimeout(r()), o(window.setTimeout(() => n(""), 500));
5521
+ u == null && Lu(d) && (d = d[0], u = a.getKeyForSearch(d, l.focusedKey()) ?? a.getKeyForSearch(d)), u != null && (l.setFocusedKey(u), e.onTypeSelect?.(u)), clearTimeout(r()), o(window.setTimeout(() => n(""), 500));
5522
5522
  }
5523
5523
  }
5524
5524
  };
5525
5525
  }
5526
- function Au(e) {
5526
+ function Tu(e) {
5527
5527
  return e.length === 1 || !/^[A-Z]/i.test(e) ? e : "";
5528
5528
  }
5529
- function Tu(e) {
5529
+ function Lu(e) {
5530
5530
  return e.split("").every((t) => t === e[0]);
5531
5531
  }
5532
5532
  /*!
@@ -5536,19 +5536,19 @@ function Tu(e) {
5536
5536
  * Credits to the React Spectrum team:
5537
5537
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableCollection.ts
5538
5538
  */
5539
- function Lu(e, t, n) {
5539
+ function Mu(e, t, n) {
5540
5540
  const o = T({
5541
5541
  selectOnFocus: () => S(e.selectionManager).selectionBehavior() === "replace"
5542
5542
  }, e), i = () => t(), { direction: s } = Gr();
5543
5543
  let a = { top: 0, left: 0 };
5544
- kc(() => S(o.isVirtualized) ? void 0 : i(), "scroll", () => {
5544
+ Ec(() => S(o.isVirtualized) ? void 0 : i(), "scroll", () => {
5545
5545
  const p = i();
5546
5546
  p && (a = {
5547
5547
  top: p.scrollTop,
5548
5548
  left: p.scrollLeft
5549
5549
  });
5550
5550
  });
5551
- const { typeSelectHandlers: l } = Pu({
5551
+ const { typeSelectHandlers: l } = Au({
5552
5552
  isDisabled: () => S(o.disallowTypeAhead),
5553
5553
  keyboardDelegate: () => S(o.keyboardDelegate),
5554
5554
  selectionManager: () => S(o.selectionManager)
@@ -5634,7 +5634,7 @@ function Lu(e, t, n) {
5634
5634
  if (p.shiftKey)
5635
5635
  m.focus();
5636
5636
  else {
5637
- const k = qc(m, { tabbable: !0 });
5637
+ const k = Hc(m, { tabbable: !0 });
5638
5638
  let F, P;
5639
5639
  do
5640
5640
  P = k.lastChild(), P && (F = P);
@@ -5714,7 +5714,7 @@ function Lu(e, t, n) {
5714
5714
  * Credits to the React Spectrum team:
5715
5715
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableItem.ts
5716
5716
  */
5717
- function Mu(e, t) {
5717
+ function Du(e, t) {
5718
5718
  const n = () => S(e.selectionManager), r = () => S(e.key), o = () => S(e.shouldUseVirtualFocus), i = (w) => {
5719
5719
  n().selectionMode() !== "none" && (n().selectionMode() === "single" ? n().isSelected(r()) && !n().disallowEmptySelection() ? n().toggleSelection(r()) : n().replaceSelection(r()) : w?.shiftKey ? n().extendSelection(r()) : n().selectionBehavior() === "toggle" || ht(w) || "pointerType" in w && w.pointerType === "touch" ? n().toggleSelection(r()) : n().replaceSelection(r()));
5720
5720
  }, s = () => n().isSelected(r()), a = () => S(e.disabled) || n().isDisabled(r()), l = () => !a() && n().canSelectItem(r());
@@ -5765,7 +5765,7 @@ function Mu(e, t) {
5765
5765
  * Credits to the React Spectrum team:
5766
5766
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/selection/src/SelectionManager.ts
5767
5767
  */
5768
- class Du {
5768
+ class Iu {
5769
5769
  collection;
5770
5770
  state;
5771
5771
  constructor(t, n) {
@@ -6033,15 +6033,15 @@ class Vo {
6033
6033
  * Credits to the React Spectrum team:
6034
6034
  * https://github.com/adobe/react-spectrum/blob/bfce84fee12a027d9cbc38b43e1747e3e4b4b169/packages/@react-stately/list/src/useListState.ts
6035
6035
  */
6036
- function Iu(e) {
6037
- const t = _u(e), r = Jc({
6036
+ function Ru(e) {
6037
+ const t = Pu(e), r = Zc({
6038
6038
  dataSource: () => S(e.dataSource),
6039
6039
  getKey: () => S(e.getKey),
6040
6040
  getTextValue: () => S(e.getTextValue),
6041
6041
  getDisabled: () => S(e.getDisabled),
6042
6042
  getSectionChildren: () => S(e.getSectionChildren),
6043
6043
  factory: (i) => e.filter ? new Vo(e.filter(i)) : new Vo(i)
6044
- }, [() => e.filter]), o = new Du(r, t);
6044
+ }, [() => e.filter]), o = new Iu(r, t);
6045
6045
  return Mi(() => {
6046
6046
  const i = t.focusedKey();
6047
6047
  i != null && !r().getItem(i) && t.setFocusedKey(void 0);
@@ -6057,7 +6057,7 @@ function Iu(e) {
6057
6057
  * Credits to the React Spectrum team:
6058
6058
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/ListKeyboardDelegate.ts
6059
6059
  */
6060
- class Ru {
6060
+ class Fu {
6061
6061
  collection;
6062
6062
  ref;
6063
6063
  collator;
@@ -6150,12 +6150,12 @@ class Ru {
6150
6150
  * Credits to the React Spectrum team:
6151
6151
  * https://github.com/adobe/react-spectrum/blob/8f2f2acb3d5850382ebe631f055f88c704aa7d17/packages/@react-aria/selection/src/useSelectableList.ts
6152
6152
  */
6153
- function Fu(e, t, n) {
6154
- const r = Eu({ usage: "search", sensitivity: "base" }), o = C(() => {
6153
+ function $u(e, t, n) {
6154
+ const r = Cu({ usage: "search", sensitivity: "base" }), o = C(() => {
6155
6155
  const i = S(e.keyboardDelegate);
6156
- return i || new Ru(e.collection, t, r);
6156
+ return i || new Fu(e.collection, t, r);
6157
6157
  });
6158
- return Lu({
6158
+ return Mu({
6159
6159
  selectionManager: () => S(e.selectionManager),
6160
6160
  keyboardDelegate: o,
6161
6161
  autoFocus: () => S(e.autoFocus),
@@ -6177,7 +6177,7 @@ function Fu(e, t, n) {
6177
6177
  * Credits to the ariakit team:
6178
6178
  * https://github.com/hope-ui/hope-ui/blob/54125b130195f37161dbeeea0c21dc3b198bc3ac/packages/core/src/button/is-button.ts
6179
6179
  */
6180
- const $u = [
6180
+ const Nu = [
6181
6181
  "button",
6182
6182
  "color",
6183
6183
  "file",
@@ -6185,17 +6185,17 @@ const $u = [
6185
6185
  "reset",
6186
6186
  "submit"
6187
6187
  ];
6188
- function Nu(e) {
6188
+ function Ku(e) {
6189
6189
  const t = e.tagName.toLowerCase();
6190
- return t === "button" ? !0 : t === "input" && e.type ? $u.indexOf(e.type) !== -1 : !1;
6190
+ return t === "button" ? !0 : t === "input" && e.type ? Nu.indexOf(e.type) !== -1 : !1;
6191
6191
  }
6192
- function Ku(e) {
6192
+ function zu(e) {
6193
6193
  let t;
6194
6194
  const n = Fe({
6195
6195
  type: "button"
6196
- }, e), [r, o] = j(n, ["ref", "type", "disabled"]), i = mu(() => t, () => "button"), s = C(() => {
6196
+ }, e), [r, o] = j(n, ["ref", "type", "disabled"]), i = yu(() => t, () => "button"), s = C(() => {
6197
6197
  const c = i();
6198
- return c == null ? !1 : Nu({
6198
+ return c == null ? !1 : Ku({
6199
6199
  tagName: c,
6200
6200
  type: r.type
6201
6201
  });
@@ -6230,7 +6230,7 @@ const ds = fe();
6230
6230
  function fs() {
6231
6231
  return ye(ds);
6232
6232
  }
6233
- function zu() {
6233
+ function Bu() {
6234
6234
  const e = fs();
6235
6235
  if (e === void 0)
6236
6236
  throw new Error("[kobalte]: `useDomCollectionContext` must be used within a `DomCollectionProvider` component");
@@ -6246,7 +6246,7 @@ function zu() {
6246
6246
  function hs(e, t) {
6247
6247
  return !!(t.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_PRECEDING);
6248
6248
  }
6249
- function Bu(e, t) {
6249
+ function Vu(e, t) {
6250
6250
  const n = t.ref();
6251
6251
  if (!n)
6252
6252
  return -1;
@@ -6260,7 +6260,7 @@ function Bu(e, t) {
6260
6260
  }
6261
6261
  return 0;
6262
6262
  }
6263
- function Vu(e) {
6263
+ function Uu(e) {
6264
6264
  const t = e.map((r, o) => [o, r]);
6265
6265
  let n = !1;
6266
6266
  return t.sort(([r, o], [i, s]) => {
@@ -6269,10 +6269,10 @@ function Vu(e) {
6269
6269
  }), n ? t.map(([r, o]) => o) : e;
6270
6270
  }
6271
6271
  function gs(e, t) {
6272
- const n = Vu(e);
6272
+ const n = Uu(e);
6273
6273
  e !== n && t(n);
6274
6274
  }
6275
- function Uu(e) {
6275
+ function ju(e) {
6276
6276
  const t = e[0], n = e[e.length - 1]?.ref();
6277
6277
  let r = t?.ref()?.parentElement;
6278
6278
  for (; r; ) {
@@ -6282,7 +6282,7 @@ function Uu(e) {
6282
6282
  }
6283
6283
  return Ue(r).body;
6284
6284
  }
6285
- function ju(e, t) {
6285
+ function qu(e, t) {
6286
6286
  L(() => {
6287
6287
  const n = setTimeout(() => {
6288
6288
  gs(e(), t);
@@ -6290,9 +6290,9 @@ function ju(e, t) {
6290
6290
  K(() => clearTimeout(n));
6291
6291
  });
6292
6292
  }
6293
- function qu(e, t) {
6293
+ function Hu(e, t) {
6294
6294
  if (typeof IntersectionObserver != "function") {
6295
- ju(e, t);
6295
+ qu(e, t);
6296
6296
  return;
6297
6297
  }
6298
6298
  let n = [];
@@ -6300,7 +6300,7 @@ function qu(e, t) {
6300
6300
  const r = () => {
6301
6301
  const s = !!n.length;
6302
6302
  n = e(), s && gs(e(), t);
6303
- }, o = Uu(e()), i = new IntersectionObserver(r, { root: o });
6303
+ }, o = ju(e()), i = new IntersectionObserver(r, { root: o });
6304
6304
  for (const s of e()) {
6305
6305
  const a = s.ref();
6306
6306
  a && i.observe(a);
@@ -6317,15 +6317,15 @@ function qu(e, t) {
6317
6317
  * https://github.com/ariakit/ariakit/blob/da142672eddefa99365773ced72171facc06fdcb/packages/ariakit/src/collection/collection-state.ts
6318
6318
  * https://github.com/ariakit/ariakit/blob/da142672eddefa99365773ced72171facc06fdcb/packages/ariakit/src/collection/collection-item.ts
6319
6319
  */
6320
- function Hu(e = {}) {
6321
- const [t, n] = Qc({
6320
+ function Wu(e = {}) {
6321
+ const [t, n] = eu({
6322
6322
  value: () => S(e.items),
6323
6323
  onChange: (i) => e.onItemsChange?.(i)
6324
6324
  });
6325
- qu(t, n);
6325
+ Hu(t, n);
6326
6326
  const r = (i) => (n((s) => {
6327
- const a = Bu(s, i);
6328
- return Pc(s, i, a);
6327
+ const a = Vu(s, i);
6328
+ return Ac(s, i, a);
6329
6329
  }), () => {
6330
6330
  n((s) => {
6331
6331
  const a = s.filter((l) => l.ref() !== i.ref());
@@ -6339,8 +6339,8 @@ function Hu(e = {}) {
6339
6339
  }
6340
6340
  }) };
6341
6341
  }
6342
- function Wu(e) {
6343
- const t = zu(), n = Fe({ shouldRegisterItem: !0 }, e);
6342
+ function Gu(e) {
6343
+ const t = Bu(), n = Fe({ shouldRegisterItem: !0 }, e);
6344
6344
  L(() => {
6345
6345
  if (!n.shouldRegisterItem)
6346
6346
  return;
@@ -6356,7 +6356,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6356
6356
  n = n._$host ?? n.parentElement;
6357
6357
  }
6358
6358
  return !1;
6359
- }, tn = /* @__PURE__ */ new Map(), Gu = (e) => {
6359
+ }, tn = /* @__PURE__ */ new Map(), Yu = (e) => {
6360
6360
  L(() => {
6361
6361
  const t = J(e.style) ?? {}, n = J(e.properties) ?? [], r = {};
6362
6362
  for (const i in t)
@@ -6385,26 +6385,26 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6385
6385
  }
6386
6386
  });
6387
6387
  });
6388
- }, Uo = Gu, Yu = (e, t) => {
6388
+ }, Uo = Yu, Xu = (e, t) => {
6389
6389
  switch (t) {
6390
6390
  case "x":
6391
6391
  return [e.clientWidth, e.scrollLeft, e.scrollWidth];
6392
6392
  case "y":
6393
6393
  return [e.clientHeight, e.scrollTop, e.scrollHeight];
6394
6394
  }
6395
- }, Xu = (e, t) => {
6395
+ }, Ju = (e, t) => {
6396
6396
  const n = getComputedStyle(e), r = t === "x" ? n.overflowX : n.overflowY;
6397
6397
  return r === "auto" || r === "scroll" || // The HTML element is a scroll container if it has overflow visible
6398
6398
  e.tagName === "HTML" && r === "visible";
6399
- }, Ju = (e, t, n) => {
6399
+ }, Zu = (e, t, n) => {
6400
6400
  const r = t === "x" && window.getComputedStyle(e).direction === "rtl" ? -1 : 1;
6401
6401
  let o = e, i = 0, s = 0, a = !1;
6402
6402
  do {
6403
- const [l, c, d] = Yu(o, t), u = d - l - r * c;
6404
- (c !== 0 || u !== 0) && Xu(o, t) && (i += u, s += c), o === (n ?? document.documentElement) ? a = !0 : o = o._$host ?? o.parentElement;
6403
+ const [l, c, d] = Xu(o, t), u = d - l - r * c;
6404
+ (c !== 0 || u !== 0) && Ju(o, t) && (i += u, s += c), o === (n ?? document.documentElement) ? a = !0 : o = o._$host ?? o.parentElement;
6405
6405
  } while (o && !a);
6406
6406
  return [i, s];
6407
- }, [jo, qo] = O([]), Zu = (e) => jo().indexOf(e) === jo().length - 1, Qu = (e) => {
6407
+ }, [jo, qo] = O([]), Qu = (e) => jo().indexOf(e) === jo().length - 1, ed = (e) => {
6408
6408
  const t = T({
6409
6409
  element: null,
6410
6410
  enabled: !0,
@@ -6451,7 +6451,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6451
6451
  }
6452
6452
  });
6453
6453
  }), L(() => {
6454
- !Zu(n) || !J(t.enabled) || (document.addEventListener("wheel", a, {
6454
+ !Qu(n) || !J(t.enabled) || (document.addEventListener("wheel", a, {
6455
6455
  passive: !1
6456
6456
  }), document.addEventListener("touchstart", s, {
6457
6457
  passive: !1
@@ -6464,7 +6464,7 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6464
6464
  const s = (c) => {
6465
6465
  r = Ho(c), o = null, i = null;
6466
6466
  }, a = (c) => {
6467
- const d = c.target, u = J(t.element), f = ed(c), g = Math.abs(f[0]) > Math.abs(f[1]) ? "x" : "y", h = g === "x" ? f[0] : f[1], p = Wo(d, g, h, u);
6467
+ const d = c.target, u = J(t.element), f = td(c), g = Math.abs(f[0]) > Math.abs(f[1]) ? "x" : "y", h = g === "x" ? f[0] : f[1], p = Wo(d, g, h, u);
6468
6468
  let m;
6469
6469
  u && kr(u, d) ? m = !p : m = !0, m && c.cancelable && c.preventDefault();
6470
6470
  }, l = (c) => {
@@ -6486,24 +6486,24 @@ var J = (e) => typeof e == "function" ? e() : e, Qn = (e) => requestAnimationFra
6486
6486
  }
6487
6487
  f && c.cancelable && c.preventDefault();
6488
6488
  };
6489
- }, ed = (e) => [e.deltaX, e.deltaY], Ho = (e) => e.changedTouches[0] ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0], Wo = (e, t, n, r) => {
6490
- const o = r !== null && kr(r, e), [i, s] = Ju(e, t, o ? r : void 0);
6489
+ }, td = (e) => [e.deltaX, e.deltaY], Ho = (e) => e.changedTouches[0] ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0], Wo = (e, t, n, r) => {
6490
+ const o = r !== null && kr(r, e), [i, s] = Zu(e, t, o ? r : void 0);
6491
6491
  return !(n > 0 && Math.abs(i) <= 1 || n < 0 && Math.abs(s) < 1);
6492
- }, td = Qu, ps = td;
6492
+ }, nd = ed, ps = nd;
6493
6493
  const ms = fe();
6494
- function nd() {
6494
+ function rd() {
6495
6495
  return ye(ms);
6496
6496
  }
6497
- function rd(e) {
6497
+ function od(e) {
6498
6498
  let t;
6499
- const n = nd(), [r, o] = j(e, ["ref", "disableOutsidePointerEvents", "excludedElements", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onInteractOutside", "onDismiss", "bypassTopMostLayerCheck"]), i = /* @__PURE__ */ new Set([]), s = (u) => {
6499
+ const n = rd(), [r, o] = j(e, ["ref", "disableOutsidePointerEvents", "excludedElements", "onEscapeKeyDown", "onPointerDownOutside", "onFocusOutside", "onInteractOutside", "onDismiss", "bypassTopMostLayerCheck"]), i = /* @__PURE__ */ new Set([]), s = (u) => {
6500
6500
  i.add(u);
6501
6501
  const f = n?.registerNestedLayer(u);
6502
6502
  return () => {
6503
6503
  i.delete(u), f?.();
6504
6504
  };
6505
6505
  };
6506
- hu({
6506
+ gu({
6507
6507
  shouldExcludeElement: (u) => t ? r.excludedElements?.some((f) => Te(f(), u)) || [...i].some((f) => Te(f, u)) : !1,
6508
6508
  onPointerDownOutside: (u) => {
6509
6509
  !t || he.isBelowPointerBlockingLayer(t) || !r.bypassTopMostLayerCheck && !he.isTopMostLayer(t) || (r.onPointerDownOutside?.(u), r.onInteractOutside?.(u), u.defaultPrevented || r.onDismiss?.());
@@ -6511,7 +6511,7 @@ function rd(e) {
6511
6511
  onFocusOutside: (u) => {
6512
6512
  r.onFocusOutside?.(u), r.onInteractOutside?.(u), u.defaultPrevented || r.onDismiss?.();
6513
6513
  }
6514
- }, () => t), eu({
6514
+ }, () => t), tu({
6515
6515
  ownerDocument: () => Ue(t),
6516
6516
  onEscapeKeyDown: (u) => {
6517
6517
  !t || !he.isTopMostLayer(t) || (r.onEscapeKeyDown?.(u), !u.defaultPrevented && r.onDismiss && (u.preventDefault(), r.onDismiss()));
@@ -6555,14 +6555,14 @@ function rd(e) {
6555
6555
  });
6556
6556
  }
6557
6557
  const ys = fe();
6558
- function od() {
6558
+ function id() {
6559
6559
  const e = ye(ys);
6560
6560
  if (e === void 0)
6561
6561
  throw new Error("[kobalte]: `usePopperContext` must be used within a `Popper` component");
6562
6562
  return e;
6563
6563
  }
6564
- function id(e) {
6565
- const t = od(), [n, r] = j(e, ["ref", "style"]);
6564
+ function sd(e) {
6565
+ const t = id(), [n, r] = j(e, ["ref", "style"]);
6566
6566
  return y(Rn, T({
6567
6567
  as: "div",
6568
6568
  ref(o) {
@@ -6581,15 +6581,15 @@ function id(e) {
6581
6581
  }
6582
6582
  }, r));
6583
6583
  }
6584
- const sd = ["top", "right", "bottom", "left"], Xe = Math.min, ge = Math.max, _n = Math.round, nn = Math.floor, Me = (e) => ({
6584
+ const ad = ["top", "right", "bottom", "left"], Xe = Math.min, ge = Math.max, _n = Math.round, nn = Math.floor, Me = (e) => ({
6585
6585
  x: e,
6586
6586
  y: e
6587
- }), ad = {
6587
+ }), ld = {
6588
6588
  left: "right",
6589
6589
  right: "left",
6590
6590
  bottom: "top",
6591
6591
  top: "bottom"
6592
- }, ld = {
6592
+ }, cd = {
6593
6593
  start: "end",
6594
6594
  end: "start"
6595
6595
  };
@@ -6617,20 +6617,20 @@ function ot(e) {
6617
6617
  function Xr(e) {
6618
6618
  return bs(ot(e));
6619
6619
  }
6620
- function cd(e, t, n) {
6620
+ function ud(e, t, n) {
6621
6621
  n === void 0 && (n = !1);
6622
6622
  const r = kt(e), o = Xr(e), i = Yr(o);
6623
6623
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
6624
6624
  return t.reference[i] > t.floating[i] && (s = Pn(s)), [s, Pn(s)];
6625
6625
  }
6626
- function ud(e) {
6626
+ function dd(e) {
6627
6627
  const t = Pn(e);
6628
6628
  return [Cr(e), t, Cr(t)];
6629
6629
  }
6630
6630
  function Cr(e) {
6631
- return e.replace(/start|end/g, (t) => ld[t]);
6631
+ return e.replace(/start|end/g, (t) => cd[t]);
6632
6632
  }
6633
- function dd(e, t, n) {
6633
+ function fd(e, t, n) {
6634
6634
  const r = ["left", "right"], o = ["right", "left"], i = ["top", "bottom"], s = ["bottom", "top"];
6635
6635
  switch (e) {
6636
6636
  case "top":
@@ -6643,15 +6643,15 @@ function dd(e, t, n) {
6643
6643
  return [];
6644
6644
  }
6645
6645
  }
6646
- function fd(e, t, n, r) {
6646
+ function hd(e, t, n, r) {
6647
6647
  const o = kt(e);
6648
- let i = dd(Je(e), n === "start", r);
6648
+ let i = fd(Je(e), n === "start", r);
6649
6649
  return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Cr)))), i;
6650
6650
  }
6651
6651
  function Pn(e) {
6652
- return e.replace(/left|right|bottom|top/g, (t) => ad[t]);
6652
+ return e.replace(/left|right|bottom|top/g, (t) => ld[t]);
6653
6653
  }
6654
- function hd(e) {
6654
+ function gd(e) {
6655
6655
  return {
6656
6656
  top: 0,
6657
6657
  right: 0,
@@ -6661,7 +6661,7 @@ function hd(e) {
6661
6661
  };
6662
6662
  }
6663
6663
  function ws(e) {
6664
- return typeof e != "number" ? hd(e) : {
6664
+ return typeof e != "number" ? gd(e) : {
6665
6665
  top: e,
6666
6666
  right: e,
6667
6667
  bottom: e,
@@ -6734,7 +6734,7 @@ function Go(e, t, n) {
6734
6734
  }
6735
6735
  return g;
6736
6736
  }
6737
- const gd = async (e, t, n) => {
6737
+ const pd = async (e, t, n) => {
6738
6738
  const {
6739
6739
  placement: r = "bottom",
6740
6740
  strategy: o = "absolute",
@@ -6840,7 +6840,7 @@ async function qt(e, t) {
6840
6840
  right: (_.right - b.right + h.right) / x.x
6841
6841
  };
6842
6842
  }
6843
- const pd = (e) => ({
6843
+ const md = (e) => ({
6844
6844
  name: "arrow",
6845
6845
  options: e,
6846
6846
  async fn(t) {
@@ -6877,7 +6877,7 @@ const pd = (e) => ({
6877
6877
  reset: $
6878
6878
  };
6879
6879
  }
6880
- }), md = function(e) {
6880
+ }), yd = function(e) {
6881
6881
  return e === void 0 && (e = {}), {
6882
6882
  name: "flip",
6883
6883
  options: e,
@@ -6901,12 +6901,12 @@ const pd = (e) => ({
6901
6901
  } = ct(e, t);
6902
6902
  if ((n = i.arrow) != null && n.alignmentOffset)
6903
6903
  return {};
6904
- const b = Je(o), w = ot(a), v = Je(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = f || (v || !p ? [Pn(a)] : ud(a)), E = h !== "none";
6905
- !f && E && _.push(...fd(a, p, h, x));
6904
+ const b = Je(o), w = ot(a), v = Je(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = f || (v || !p ? [Pn(a)] : dd(a)), E = h !== "none";
6905
+ !f && E && _.push(...hd(a, p, h, x));
6906
6906
  const k = [a, ..._], F = await qt(t, m), P = [];
6907
6907
  let R = ((r = i.flip) == null ? void 0 : r.overflows) || [];
6908
6908
  if (d && P.push(F[b]), u) {
6909
- const W = cd(o, s, x);
6909
+ const W = ud(o, s, x);
6910
6910
  P.push(F[W[0]], F[W[1]]);
6911
6911
  }
6912
6912
  if (R = [...R, {
@@ -6966,9 +6966,9 @@ function Yo(e, t) {
6966
6966
  };
6967
6967
  }
6968
6968
  function Xo(e) {
6969
- return sd.some((t) => e[t] >= 0);
6969
+ return ad.some((t) => e[t] >= 0);
6970
6970
  }
6971
- const yd = function(e) {
6971
+ const bd = function(e) {
6972
6972
  return e === void 0 && (e = {}), {
6973
6973
  name: "hide",
6974
6974
  options: e,
@@ -7010,7 +7010,7 @@ const yd = function(e) {
7010
7010
  }
7011
7011
  };
7012
7012
  };
7013
- async function bd(e, t) {
7013
+ async function wd(e, t) {
7014
7014
  const {
7015
7015
  placement: n,
7016
7016
  platform: r,
@@ -7037,7 +7037,7 @@ async function bd(e, t) {
7037
7037
  y: g * d
7038
7038
  };
7039
7039
  }
7040
- const wd = function(e) {
7040
+ const vd = function(e) {
7041
7041
  return e === void 0 && (e = 0), {
7042
7042
  name: "offset",
7043
7043
  options: e,
@@ -7048,7 +7048,7 @@ const wd = function(e) {
7048
7048
  y: i,
7049
7049
  placement: s,
7050
7050
  middlewareData: a
7051
- } = t, l = await bd(t, e);
7051
+ } = t, l = await wd(t, e);
7052
7052
  return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
7053
7053
  x: o + l.x,
7054
7054
  y: i + l.y,
@@ -7059,7 +7059,7 @@ const wd = function(e) {
7059
7059
  };
7060
7060
  }
7061
7061
  };
7062
- }, vd = function(e) {
7062
+ }, xd = function(e) {
7063
7063
  return e === void 0 && (e = {}), {
7064
7064
  name: "shift",
7065
7065
  options: e,
@@ -7115,7 +7115,7 @@ const wd = function(e) {
7115
7115
  };
7116
7116
  }
7117
7117
  };
7118
- }, xd = function(e) {
7118
+ }, Sd = function(e) {
7119
7119
  return e === void 0 && (e = {}), {
7120
7120
  name: "size",
7121
7121
  options: e,
@@ -7191,7 +7191,7 @@ function Wt(e) {
7191
7191
  } = Ae(e);
7192
7192
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
7193
7193
  }
7194
- function Sd(e) {
7194
+ function kd(e) {
7195
7195
  return ["table", "td", "th"].includes(Et(e));
7196
7196
  }
7197
7197
  function $n(e) {
@@ -7207,7 +7207,7 @@ function Jr(e) {
7207
7207
  const t = Zr(), n = Pe(e) ? Ae(e) : e;
7208
7208
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
7209
7209
  }
7210
- function kd(e) {
7210
+ function Ed(e) {
7211
7211
  let t = Ze(e);
7212
7212
  for (; Ie(t) && !wt(t); ) {
7213
7213
  if (Jr(t))
@@ -7293,15 +7293,15 @@ function yt(e) {
7293
7293
  y: a
7294
7294
  };
7295
7295
  }
7296
- const Ed = /* @__PURE__ */ Me(0);
7296
+ const Cd = /* @__PURE__ */ Me(0);
7297
7297
  function ks(e) {
7298
7298
  const t = me(e);
7299
- return !Zr() || !t.visualViewport ? Ed : {
7299
+ return !Zr() || !t.visualViewport ? Cd : {
7300
7300
  x: t.visualViewport.offsetLeft,
7301
7301
  y: t.visualViewport.offsetTop
7302
7302
  };
7303
7303
  }
7304
- function Cd(e, t, n) {
7304
+ function Od(e, t, n) {
7305
7305
  return t === void 0 && (t = !1), !n || t && n !== me(e) ? !1 : t;
7306
7306
  }
7307
7307
  function it(e, t, n, r) {
@@ -7309,7 +7309,7 @@ function it(e, t, n, r) {
7309
7309
  const o = e.getBoundingClientRect(), i = Qr(e);
7310
7310
  let s = Me(1);
7311
7311
  t && (r ? Pe(r) && (s = yt(r)) : s = yt(e));
7312
- const a = Cd(i, n, r) ? ks(i) : Me(0);
7312
+ const a = Od(i, n, r) ? ks(i) : Me(0);
7313
7313
  let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, d = o.width / s.x, u = o.height / s.y;
7314
7314
  if (i) {
7315
7315
  const f = me(i), g = r && Pe(r) ? me(r) : r;
@@ -7341,7 +7341,7 @@ function Es(e, t, n) {
7341
7341
  y: i
7342
7342
  };
7343
7343
  }
7344
- function Od(e) {
7344
+ function _d(e) {
7345
7345
  let {
7346
7346
  elements: t,
7347
7347
  rect: n,
@@ -7368,10 +7368,10 @@ function Od(e) {
7368
7368
  y: n.y * c.y - l.scrollTop * c.y + d.y + f.y
7369
7369
  };
7370
7370
  }
7371
- function _d(e) {
7371
+ function Pd(e) {
7372
7372
  return Array.from(e.getClientRects());
7373
7373
  }
7374
- function Pd(e) {
7374
+ function Ad(e) {
7375
7375
  const t = $e(e), n = Nn(e), r = e.ownerDocument.body, o = ge(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = ge(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
7376
7376
  let s = -n.scrollLeft + eo(e);
7377
7377
  const a = -n.scrollTop;
@@ -7382,7 +7382,7 @@ function Pd(e) {
7382
7382
  y: a
7383
7383
  };
7384
7384
  }
7385
- function Ad(e, t) {
7385
+ function Td(e, t) {
7386
7386
  const n = me(e), r = $e(e), o = n.visualViewport;
7387
7387
  let i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
7388
7388
  if (o) {
@@ -7397,7 +7397,7 @@ function Ad(e, t) {
7397
7397
  y: l
7398
7398
  };
7399
7399
  }
7400
- function Td(e, t) {
7400
+ function Ld(e, t) {
7401
7401
  const n = it(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Ie(e) ? yt(e) : Me(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = r * i.y;
7402
7402
  return {
7403
7403
  width: s,
@@ -7409,11 +7409,11 @@ function Td(e, t) {
7409
7409
  function Zo(e, t, n) {
7410
7410
  let r;
7411
7411
  if (t === "viewport")
7412
- r = Ad(e, n);
7412
+ r = Td(e, n);
7413
7413
  else if (t === "document")
7414
- r = Pd($e(e));
7414
+ r = Ad($e(e));
7415
7415
  else if (Pe(t))
7416
- r = Td(t, n);
7416
+ r = Ld(t, n);
7417
7417
  else {
7418
7418
  const o = ks(e);
7419
7419
  r = {
@@ -7429,7 +7429,7 @@ function Cs(e, t) {
7429
7429
  const n = Ze(e);
7430
7430
  return n === t || !Pe(n) || wt(n) ? !1 : Ae(n).position === "fixed" || Cs(n, t);
7431
7431
  }
7432
- function Ld(e, t) {
7432
+ function Md(e, t) {
7433
7433
  const n = t.get(e);
7434
7434
  if (n)
7435
7435
  return n;
@@ -7442,14 +7442,14 @@ function Ld(e, t) {
7442
7442
  }
7443
7443
  return t.set(e, r), r;
7444
7444
  }
7445
- function Md(e) {
7445
+ function Dd(e) {
7446
7446
  let {
7447
7447
  element: t,
7448
7448
  boundary: n,
7449
7449
  rootBoundary: r,
7450
7450
  strategy: o
7451
7451
  } = e;
7452
- const s = [...n === "clippingAncestors" ? $n(t) ? [] : Ld(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, d) => {
7452
+ const s = [...n === "clippingAncestors" ? $n(t) ? [] : Md(t, this._c) : [].concat(n), r], a = s[0], l = s.reduce((c, d) => {
7453
7453
  const u = Zo(t, d, o);
7454
7454
  return c.top = ge(u.top, c.top), c.right = Xe(u.right, c.right), c.bottom = Xe(u.bottom, c.bottom), c.left = ge(u.left, c.left), c;
7455
7455
  }, Zo(t, a, o));
@@ -7460,7 +7460,7 @@ function Md(e) {
7460
7460
  y: l.top
7461
7461
  };
7462
7462
  }
7463
- function Dd(e) {
7463
+ function Id(e) {
7464
7464
  const {
7465
7465
  width: t,
7466
7466
  height: n
@@ -7470,7 +7470,7 @@ function Dd(e) {
7470
7470
  height: n
7471
7471
  };
7472
7472
  }
7473
- function Id(e, t, n) {
7473
+ function Rd(e, t, n) {
7474
7474
  const r = Ie(t), o = $e(t), i = n === "fixed", s = it(e, !0, i, t);
7475
7475
  let a = {
7476
7476
  scrollLeft: 0,
@@ -7515,14 +7515,14 @@ function Os(e, t) {
7515
7515
  return n;
7516
7516
  }
7517
7517
  let r = Qo(e, t);
7518
- for (; r && Sd(r) && er(r); )
7518
+ for (; r && kd(r) && er(r); )
7519
7519
  r = Qo(r, t);
7520
- return r && wt(r) && er(r) && !Jr(r) ? n : r || kd(e) || n;
7520
+ return r && wt(r) && er(r) && !Jr(r) ? n : r || Ed(e) || n;
7521
7521
  }
7522
- const Rd = async function(e) {
7522
+ const Fd = async function(e) {
7523
7523
  const t = this.getOffsetParent || Os, n = this.getDimensions, r = await n(e.floating);
7524
7524
  return {
7525
- reference: Id(e.reference, await t(e.floating), e.strategy),
7525
+ reference: Rd(e.reference, await t(e.floating), e.strategy),
7526
7526
  floating: {
7527
7527
  x: 0,
7528
7528
  y: 0,
@@ -7531,25 +7531,25 @@ const Rd = async function(e) {
7531
7531
  }
7532
7532
  };
7533
7533
  };
7534
- function Fd(e) {
7534
+ function $d(e) {
7535
7535
  return Ae(e).direction === "rtl";
7536
7536
  }
7537
7537
  const _s = {
7538
- convertOffsetParentRelativeRectToViewportRelativeRect: Od,
7538
+ convertOffsetParentRelativeRectToViewportRelativeRect: _d,
7539
7539
  getDocumentElement: $e,
7540
- getClippingRect: Md,
7540
+ getClippingRect: Dd,
7541
7541
  getOffsetParent: Os,
7542
- getElementRects: Rd,
7543
- getClientRects: _d,
7544
- getDimensions: Dd,
7542
+ getElementRects: Fd,
7543
+ getClientRects: Pd,
7544
+ getDimensions: Id,
7545
7545
  getScale: yt,
7546
7546
  isElement: Pe,
7547
- isRTL: Fd
7547
+ isRTL: $d
7548
7548
  };
7549
7549
  function Ps(e, t) {
7550
7550
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
7551
7551
  }
7552
- function $d(e, t) {
7552
+ function Nd(e, t) {
7553
7553
  let n = null, r;
7554
7554
  const o = $e(e);
7555
7555
  function i() {
@@ -7595,7 +7595,7 @@ function $d(e, t) {
7595
7595
  }
7596
7596
  return s(!0), i;
7597
7597
  }
7598
- function Nd(e, t, n, r) {
7598
+ function Kd(e, t, n, r) {
7599
7599
  r === void 0 && (r = {});
7600
7600
  const {
7601
7601
  ancestorScroll: o = !0,
@@ -7609,7 +7609,7 @@ function Nd(e, t, n, r) {
7609
7609
  passive: !0
7610
7610
  }), i && b.addEventListener("resize", n);
7611
7611
  });
7612
- const u = c && a ? $d(c, n) : null;
7612
+ const u = c && a ? Nd(c, n) : null;
7613
7613
  let f = -1, g = null;
7614
7614
  s && (g = new ResizeObserver((b) => {
7615
7615
  let [w] = b;
@@ -7631,7 +7631,7 @@ function Nd(e, t, n, r) {
7631
7631
  }), u?.(), (b = g) == null || b.disconnect(), g = null, l && cancelAnimationFrame(h);
7632
7632
  };
7633
7633
  }
7634
- const Kd = wd, zd = vd, Bd = md, Vd = xd, Ud = yd, jd = pd, qd = (e, t, n) => {
7634
+ const zd = vd, Bd = xd, Vd = yd, Ud = Sd, jd = bd, qd = md, Hd = (e, t, n) => {
7635
7635
  const r = /* @__PURE__ */ new Map(), o = {
7636
7636
  platform: _s,
7637
7637
  ...n
@@ -7639,7 +7639,7 @@ const Kd = wd, zd = vd, Bd = md, Vd = xd, Ud = yd, jd = pd, qd = (e, t, n) => {
7639
7639
  ...o.platform,
7640
7640
  _c: r
7641
7641
  };
7642
- return gd(e, t, {
7642
+ return pd(e, t, {
7643
7643
  ...o,
7644
7644
  platform: i
7645
7645
  });
@@ -7660,7 +7660,7 @@ function ei(e) {
7660
7660
  };
7661
7661
  return { ...i, toJSON: () => i };
7662
7662
  }
7663
- function Hd(e, t) {
7663
+ function Wd(e, t) {
7664
7664
  return {
7665
7665
  contextElement: e,
7666
7666
  getBoundingClientRect: () => {
@@ -7669,20 +7669,20 @@ function Hd(e, t) {
7669
7669
  }
7670
7670
  };
7671
7671
  }
7672
- function Wd(e) {
7672
+ function Gd(e) {
7673
7673
  return /^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e);
7674
7674
  }
7675
- const Gd = {
7675
+ const Yd = {
7676
7676
  top: "bottom",
7677
7677
  right: "left",
7678
7678
  bottom: "top",
7679
7679
  left: "right"
7680
7680
  };
7681
- function Yd(e, t) {
7682
- const [n, r] = e.split("-"), o = Gd[n];
7681
+ function Xd(e, t) {
7682
+ const [n, r] = e.split("-"), o = Yd[n];
7683
7683
  return r ? n === "left" || n === "right" ? `${o} ${r === "start" ? "top" : "bottom"}` : r === "start" ? `${o} ${t === "rtl" ? "right" : "left"}` : `${o} ${t === "rtl" ? "left" : "right"}` : `${o} center`;
7684
7684
  }
7685
- function Xd(e) {
7685
+ function Jd(e) {
7686
7686
  const t = Fe({
7687
7687
  getAnchorRect: (f) => f?.getBoundingClientRect(),
7688
7688
  placement: "bottom",
@@ -7697,7 +7697,7 @@ function Xd(e) {
7697
7697
  detachedPadding: 0,
7698
7698
  arrowPadding: 4,
7699
7699
  overflowPadding: 8
7700
- }, e), [n, r] = O(), [o, i] = O(), [s, a] = O(t.placement), l = () => Hd(t.anchorRef(), t.getAnchorRect), {
7700
+ }, e), [n, r] = O(), [o, i] = O(), [s, a] = O(t.placement), l = () => Wd(t.anchorRef(), t.getAnchorRect), {
7701
7701
  direction: c
7702
7702
  } = Gr();
7703
7703
  async function d() {
@@ -7708,7 +7708,7 @@ function Xd(e) {
7708
7708
  g.style.setProperty("--kb-popper-content-overflow-padding", `${t.overflowPadding}px`), f.getBoundingClientRect();
7709
7709
  const b = [
7710
7710
  // https://floating-ui.com/docs/offset
7711
- Kd(({
7711
+ zd(({
7712
7712
  placement: E
7713
7713
  }) => {
7714
7714
  const k = !!E.split("-")[1];
@@ -7721,18 +7721,18 @@ function Xd(e) {
7721
7721
  ];
7722
7722
  if (t.flip !== !1) {
7723
7723
  const E = typeof t.flip == "string" ? t.flip.split(" ") : void 0;
7724
- if (E !== void 0 && !E.every(Wd))
7724
+ if (E !== void 0 && !E.every(Gd))
7725
7725
  throw new Error("`flip` expects a spaced-delimited list of placements");
7726
- b.push(Bd({
7726
+ b.push(Vd({
7727
7727
  padding: t.overflowPadding,
7728
7728
  fallbackPlacements: E
7729
7729
  }));
7730
7730
  }
7731
- (t.slide || t.overlap) && b.push(zd({
7731
+ (t.slide || t.overlap) && b.push(Bd({
7732
7732
  mainAxis: t.slide,
7733
7733
  crossAxis: t.overlap,
7734
7734
  padding: t.overflowPadding
7735
- })), b.push(Vd({
7735
+ })), b.push(Ud({
7736
7736
  padding: t.overflowPadding,
7737
7737
  apply({
7738
7738
  availableWidth: E,
@@ -7742,13 +7742,13 @@ function Xd(e) {
7742
7742
  const P = Math.round(F.reference.width);
7743
7743
  E = Math.floor(E), k = Math.floor(k), g.style.setProperty("--kb-popper-anchor-width", `${P}px`), g.style.setProperty("--kb-popper-content-available-width", `${E}px`), g.style.setProperty("--kb-popper-content-available-height", `${k}px`), t.sameWidth && (g.style.width = `${P}px`), t.fitViewport && (g.style.maxWidth = `${E}px`, g.style.maxHeight = `${k}px`);
7744
7744
  }
7745
- })), t.hideWhenDetached && b.push(Ud({
7745
+ })), t.hideWhenDetached && b.push(jd({
7746
7746
  padding: t.detachedPadding
7747
- })), h && b.push(jd({
7747
+ })), h && b.push(qd({
7748
7748
  element: h,
7749
7749
  padding: t.arrowPadding
7750
7750
  }));
7751
- const w = await qd(f, g, {
7751
+ const w = await Hd(f, g, {
7752
7752
  placement: t.placement,
7753
7753
  strategy: "absolute",
7754
7754
  middleware: b,
@@ -7759,7 +7759,7 @@ function Xd(e) {
7759
7759
  });
7760
7760
  if (a(w.placement), t.onCurrentPlacementChange?.(w.placement), !g)
7761
7761
  return;
7762
- g.style.setProperty("--kb-popper-content-transform-origin", Yd(w.placement, c()));
7762
+ g.style.setProperty("--kb-popper-content-transform-origin", Xd(w.placement, c()));
7763
7763
  const v = Math.round(w.x), x = Math.round(w.y);
7764
7764
  let _;
7765
7765
  if (t.hideWhenDetached && (_ = w.middlewareData.hide?.referenceHidden ? "hidden" : "visible"), Object.assign(g.style, {
@@ -7783,7 +7783,7 @@ function Xd(e) {
7783
7783
  const f = l(), g = n();
7784
7784
  if (!f || !g)
7785
7785
  return;
7786
- const h = Nd(f, g, d, {
7786
+ const h = Kd(f, g, d, {
7787
7787
  // JSDOM doesn't support ResizeObserver
7788
7788
  elementResize: typeof ResizeObserver == "function"
7789
7789
  });
@@ -7831,24 +7831,24 @@ function Ot() {
7831
7831
  * Credits to the Radix UI team:
7832
7832
  * https://github.com/radix-ui/primitives/blob/81b25f4b40c54f72aeb106ca0e64e1e09655153e/packages/react/menu/src/Menu.tsx
7833
7833
  */
7834
- function Jd(e, t) {
7835
- return t ? Gc([e.clientX, e.clientY], t) : !1;
7834
+ function Zd(e, t) {
7835
+ return t ? Yc([e.clientX, e.clientY], t) : !1;
7836
7836
  }
7837
- function Zd(e) {
7837
+ function Qd(e) {
7838
7838
  const t = Ot(), n = fs(), r = Ts(), o = Fe({
7839
7839
  placement: "bottom-start"
7840
7840
  }, e), [i, s] = j(o, ["open", "defaultOpen", "onOpenChange"]);
7841
7841
  let a = 0, l = null, c = "right";
7842
7842
  const [d, u] = O(), [f, g] = O(), [h, p] = O(), [m, b] = O(), [w, v] = O(!0), [x, _] = O(s.placement), [E, k] = O([]), [F, P] = O([]), {
7843
7843
  DomCollectionProvider: R
7844
- } = Hu({
7844
+ } = Wu({
7845
7845
  items: F,
7846
7846
  onItemsChange: P
7847
7847
  }), M = is({
7848
7848
  open: () => i.open,
7849
7849
  defaultOpen: () => i.defaultOpen,
7850
7850
  onOpenChange: (U) => i.onOpenChange?.(U)
7851
- }), D = gu(() => t.forceMount() || M.isOpen()), ne = Iu({
7851
+ }), D = pu(() => t.forceMount() || M.isOpen()), ne = Ru({
7852
7852
  selectionMode: "none",
7853
7853
  dataSource: F
7854
7854
  }), W = (U) => {
@@ -7866,14 +7866,14 @@ function Zd(e) {
7866
7866
  return () => {
7867
7867
  k((Un) => br(Un, U)), Yt?.();
7868
7868
  };
7869
- }, oe = (U) => c === l?.side && Jd(U, l?.area), ut = (U) => {
7869
+ }, oe = (U) => c === l?.side && Zd(U, l?.area), ut = (U) => {
7870
7870
  oe(U) && U.preventDefault();
7871
7871
  }, ke = (U) => {
7872
7872
  oe(U) || z();
7873
- }, aa = (U) => {
7873
+ }, la = (U) => {
7874
7874
  oe(U) && U.preventDefault();
7875
7875
  };
7876
- du({
7876
+ fu({
7877
7877
  isDisabled: () => !(r == null && M.isOpen() && t.isModal()),
7878
7878
  targets: () => [m(), ...E()].filter(Boolean)
7879
7879
  }), L(() => {
@@ -7885,7 +7885,7 @@ function Zd(e) {
7885
7885
  Yt();
7886
7886
  });
7887
7887
  });
7888
- const la = {
7888
+ const ca = {
7889
7889
  dataset: C(() => ({
7890
7890
  "data-expanded": M.isOpen() ? "" : void 0,
7891
7891
  "data-closed": M.isOpen() ? void 0 : ""
@@ -7910,7 +7910,7 @@ function Zd(e) {
7910
7910
  focusContent: z,
7911
7911
  onItemEnter: ut,
7912
7912
  onItemLeave: ke,
7913
- onTriggerLeave: aa,
7913
+ onTriggerLeave: la,
7914
7914
  setPointerDir: (U) => c = U,
7915
7915
  setPointerGraceTimeoutId: (U) => a = U,
7916
7916
  setPointerGraceIntent: (U) => l = U,
@@ -7922,9 +7922,9 @@ function Zd(e) {
7922
7922
  return y(R, {
7923
7923
  get children() {
7924
7924
  return y(As.Provider, {
7925
- value: la,
7925
+ value: ca,
7926
7926
  get children() {
7927
- return y(Xd, T({
7927
+ return y(Jd, T({
7928
7928
  anchorRef: h,
7929
7929
  contentRef: m,
7930
7930
  onCurrentPlacementChange: _
@@ -7934,15 +7934,15 @@ function Zd(e) {
7934
7934
  }
7935
7935
  });
7936
7936
  }
7937
- const Qd = fe();
7938
- function ef(e) {
7937
+ const ef = fe();
7938
+ function tf(e) {
7939
7939
  let t;
7940
7940
  const n = Ot(), r = Ct(), o = Fe({
7941
7941
  id: n.generateId(`item-${Le()}`)
7942
7942
  }, e), [i, s] = j(o, ["ref", "textValue", "disabled", "closeOnSelect", "checked", "indeterminate", "onSelect", "onPointerMove", "onPointerLeave", "onPointerDown", "onPointerUp", "onClick", "onKeyDown", "onMouseDown", "onFocus"]), [a, l] = O(), [c, d] = O(), [u, f] = O(), g = () => r.listState().selectionManager(), h = () => s.id, p = () => g().focusedKey() === h(), m = () => {
7943
7943
  i.onSelect?.(), i.closeOnSelect && r.close(!0);
7944
7944
  };
7945
- Wu({
7945
+ Gu({
7946
7946
  getItem: () => ({
7947
7947
  ref: () => t,
7948
7948
  type: "item",
@@ -7951,7 +7951,7 @@ function ef(e) {
7951
7951
  disabled: i.disabled ?? !1
7952
7952
  })
7953
7953
  });
7954
- const b = Mu({
7954
+ const b = Du({
7955
7955
  key: h,
7956
7956
  selectionManager: g,
7957
7957
  shouldSelectOnPressUp: !0,
@@ -7989,7 +7989,7 @@ function ef(e) {
7989
7989
  registerLabel: On(l),
7990
7990
  registerDescription: On(d)
7991
7991
  };
7992
- return y(Qd.Provider, {
7992
+ return y(ef.Provider, {
7993
7993
  value: F,
7994
7994
  get children() {
7995
7995
  return y(Rn, T({
@@ -8040,17 +8040,17 @@ function ef(e) {
8040
8040
  }
8041
8041
  });
8042
8042
  }
8043
- const tf = fe();
8043
+ const nf = fe();
8044
8044
  function Ms() {
8045
- return ye(tf);
8045
+ return ye(nf);
8046
8046
  }
8047
- function nf(e) {
8047
+ function rf(e) {
8048
8048
  let t;
8049
8049
  const n = Ot(), r = Ct(), o = Ms(), i = Fe({
8050
8050
  id: n.generateId(`content-${Le()}`)
8051
8051
  }, e), [s, a] = j(i, ["ref", "id", "style", "onOpenAutoFocus", "onCloseAutoFocus", "onEscapeKeyDown", "onFocusOutside", "onPointerEnter", "onPointerMove", "onKeyDown", "onMouseDown", "onFocusIn", "onFocusOut"]);
8052
8052
  let l = 0;
8053
- const c = () => r.parentMenuContext() == null && o === void 0 && n.isModal(), d = Fu({
8053
+ const c = () => r.parentMenuContext() == null && o === void 0 && n.isModal(), d = $u({
8054
8054
  selectionManager: r.listState().selectionManager,
8055
8055
  collection: r.listState().collection,
8056
8056
  autoFocus: r.autoFocus,
@@ -8058,7 +8058,7 @@ function nf(e) {
8058
8058
  shouldFocusWrap: !0,
8059
8059
  disallowTypeAhead: () => !r.listState().selectionManager().isFocused()
8060
8060
  }, () => t);
8061
- cu({
8061
+ uu({
8062
8062
  trapFocus: () => c() && r.isOpen(),
8063
8063
  onMountAutoFocus: (m) => {
8064
8064
  o === void 0 && s.onOpenAutoFocus?.(m);
@@ -8093,9 +8093,9 @@ function nf(e) {
8093
8093
  return r.contentPresence.isPresent();
8094
8094
  },
8095
8095
  get children() {
8096
- return y(id, {
8096
+ return y(sd, {
8097
8097
  get children() {
8098
- return y(rd, T({
8098
+ return y(od, T({
8099
8099
  ref(m) {
8100
8100
  var b = lt((w) => {
8101
8101
  r.setContentRef(w), r.contentPresence.setRef(w), t = w;
@@ -8151,13 +8151,13 @@ function nf(e) {
8151
8151
  }
8152
8152
  });
8153
8153
  }
8154
- function rf(e) {
8154
+ function of(e) {
8155
8155
  let t;
8156
8156
  const n = Ot(), r = Ct(), [o, i] = j(e, ["ref"]);
8157
8157
  return ps({
8158
8158
  element: () => t ?? null,
8159
8159
  enabled: () => r.isOpen() && n.preventScroll()
8160
- }), y(nf, T({
8160
+ }), y(rf, T({
8161
8161
  ref(s) {
8162
8162
  var a = lt((l) => {
8163
8163
  t = l;
@@ -8166,13 +8166,13 @@ function rf(e) {
8166
8166
  }
8167
8167
  }, i));
8168
8168
  }
8169
- function of(e) {
8170
- return y(ef, T({
8169
+ function sf(e) {
8170
+ return y(tf, T({
8171
8171
  role: "menuitem",
8172
8172
  closeOnSelect: !0
8173
8173
  }, e));
8174
8174
  }
8175
- function sf(e) {
8175
+ function af(e) {
8176
8176
  const t = Ct();
8177
8177
  return y(Z, {
8178
8178
  get when() {
@@ -8183,7 +8183,7 @@ function sf(e) {
8183
8183
  }
8184
8184
  });
8185
8185
  }
8186
- function af(e) {
8186
+ function lf(e) {
8187
8187
  const t = `menu-${Le()}`, n = Fe({
8188
8188
  id: t,
8189
8189
  modal: !0
@@ -8201,7 +8201,7 @@ function af(e) {
8201
8201
  return y(Ls.Provider, {
8202
8202
  value: s,
8203
8203
  get children() {
8204
- return y(Zd, T({
8204
+ return y(Qd, T({
8205
8205
  get open() {
8206
8206
  return i.isOpen();
8207
8207
  },
@@ -8212,7 +8212,7 @@ function af(e) {
8212
8212
  }
8213
8213
  });
8214
8214
  }
8215
- function lf(e) {
8215
+ function cf(e) {
8216
8216
  const t = Ot(), n = Ct(), r = Ms(), o = Fe({
8217
8217
  id: t.generateId("trigger")
8218
8218
  }, e), [i, s] = j(o, ["ref", "id", "disabled", "onPointerDown", "onClick", "onKeyDown", "onMouseOver", "onFocus"]);
@@ -8238,7 +8238,7 @@ function lf(e) {
8238
8238
  case "Enter":
8239
8239
  case " ":
8240
8240
  case "ArrowDown":
8241
- h.stopPropagation(), h.preventDefault(), Yc(h.currentTarget), n.toggle("first");
8241
+ h.stopPropagation(), h.preventDefault(), Xc(h.currentTarget), n.toggle("first");
8242
8242
  break;
8243
8243
  case "ArrowUp":
8244
8244
  h.stopPropagation(), h.preventDefault(), n.toggle("last");
@@ -8257,7 +8257,7 @@ function lf(e) {
8257
8257
  }, g = (h) => {
8258
8258
  pe(h, i.onFocus), r !== void 0 && r.setValue(a);
8259
8259
  };
8260
- return L(() => K(n.registerTriggerId(i.id))), y(Ku, T({
8260
+ return L(() => K(n.registerTriggerId(i.id))), y(zu, T({
8261
8261
  ref(h) {
8262
8262
  var p = lt(n.setTriggerRef, i.ref);
8263
8263
  typeof p == "function" && p(h);
@@ -8289,10 +8289,10 @@ function lf(e) {
8289
8289
  role: r !== void 0 ? "menuitem" : void 0
8290
8290
  }, () => n.dataset(), s));
8291
8291
  }
8292
- function cf(e) {
8292
+ function uf(e) {
8293
8293
  const t = Ot(), n = Ct(), [r, o] = j(e, ["onCloseAutoFocus", "onInteractOutside"]);
8294
8294
  let i = !1;
8295
- return y(rf, T({
8295
+ return y(of, T({
8296
8296
  onCloseAutoFocus: (l) => {
8297
8297
  r.onCloseAutoFocus?.(l), i || ue(n.triggerRef()), i = !1, l.preventDefault();
8298
8298
  },
@@ -8301,55 +8301,55 @@ function cf(e) {
8301
8301
  }
8302
8302
  }, o));
8303
8303
  }
8304
- function uf(e) {
8304
+ function df(e) {
8305
8305
  const t = `dropdownmenu-${Le()}`, n = Fe({
8306
8306
  id: t
8307
8307
  }, e);
8308
- return y(af, n);
8308
+ return y(lf, n);
8309
8309
  }
8310
- function df(e) {
8310
+ function ff(e) {
8311
8311
  return Se({
8312
8312
  a: { xmlns: "http://www.w3.org/2000/svg", class: "icon icon-tabler icon-tabler-circle-check-filled", width: "24", height: "24", viewBox: "0 0 24 24", "stroke-width": "2", stroke: "currentColor", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" },
8313
8313
  c: '<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M17 3.34a10 10 0 1 1 -14.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 14.995 -8.336zm-1.293 5.953a1 1 0 0 0 -1.32 -.083l-.094 .083l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.403 1.403l.083 .094l2 2l.094 .083a1 1 0 0 0 1.226 0l.094 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z" stroke-width="0" fill="currentColor"/>'
8314
8314
  }, e);
8315
8315
  }
8316
- function ff(e) {
8316
+ function hf(e) {
8317
8317
  return Se({
8318
8318
  a: { xmlns: "http://www.w3.org/2000/svg", class: "icon icon-tabler icon-tabler-circle", width: "24", height: "24", viewBox: "0 0 24 24", "stroke-width": "2", stroke: "currentColor", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" },
8319
8319
  c: '<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/>'
8320
8320
  }, e);
8321
8321
  }
8322
- function hf(e) {
8322
+ function gf(e) {
8323
8323
  return Se({
8324
8324
  a: { xmlns: "http://www.w3.org/2000/svg", class: "icon icon-tabler icon-tabler-file-download", width: "24", height: "24", viewBox: "0 0 24 24", "stroke-width": "2", stroke: "currentColor", fill: "none", "stroke-linecap": "round", "stroke-linejoin": "round" },
8325
8325
  c: '<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/><path d="M12 17v-6"/><path d="M9.5 14.5l2.5 2.5l2.5 -2.5"/>'
8326
8326
  }, e);
8327
8327
  }
8328
- const gf = (e) => y(uf, T({
8328
+ const pf = (e) => y(df, T({
8329
8329
  gutter: 4
8330
- }, e)), pf = lf, mf = (e) => {
8330
+ }, e)), mf = cf, yf = (e) => {
8331
8331
  const [, t] = j(e, ["class"]);
8332
- return y(sf, {
8332
+ return y(af, {
8333
8333
  get mount() {
8334
8334
  return mn();
8335
8335
  },
8336
8336
  get children() {
8337
- return y(cf, T({
8337
+ return y(uf, T({
8338
8338
  get class() {
8339
8339
  return Qe("z-50 min-w-[128px] origin-[var(--kb-menu-content-transform-origin)] animate-content-hide overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[expanded]:animate-content-show", e.class);
8340
8340
  }
8341
8341
  }, t));
8342
8342
  }
8343
8343
  });
8344
- }, yf = (e) => {
8344
+ }, bf = (e) => {
8345
8345
  const [, t] = j(e, ["class"]);
8346
- return y(of, T({
8346
+ return y(sf, T({
8347
8347
  get class() {
8348
8348
  return Qe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", e.class);
8349
8349
  }
8350
8350
  }, t));
8351
8351
  };
8352
- function bf(e) {
8352
+ function wf(e) {
8353
8353
  return e.type === "buttons" && e.buttons.options.length > 10 ? {
8354
8354
  list: {
8355
8355
  text: e.buttons.text,
@@ -8364,14 +8364,14 @@ function bf(e) {
8364
8364
  createdAt: e.createdAt
8365
8365
  } : e;
8366
8366
  }
8367
- function wf(e) {
8367
+ function vf(e) {
8368
8368
  if (Array.isArray(e)) {
8369
8369
  console.info("----------------------------------------------------------");
8370
8370
  for (const t of e)
8371
8371
  console.info("Executed:", t.type), console.info(t);
8372
8372
  }
8373
8373
  }
8374
- async function vf(e, t, n) {
8374
+ async function xf(e, t, n) {
8375
8375
  const r = `${yn}/v1/messages`, o = Vr(), i = {
8376
8376
  "Content-Type": "application/json"
8377
8377
  };
@@ -8389,7 +8389,7 @@ async function vf(e, t, n) {
8389
8389
  };
8390
8390
  await fetch(r, s);
8391
8391
  }
8392
- async function xf(e, t, n) {
8392
+ async function Sf(e, t, n) {
8393
8393
  if (!e || !t || !n) return;
8394
8394
  const r = `${yn}/v1/widget/${e}/restart`, o = {
8395
8395
  credentials: "include",
@@ -8427,7 +8427,7 @@ function ni(e) {
8427
8427
  return e instanceof Uint8Array ? e : e instanceof ArrayBuffer ? new Uint8Array(e) : new Uint8Array(e.buffer, e.byteOffset, e.byteLength);
8428
8428
  }
8429
8429
  let tr;
8430
- function Sf(e, t) {
8430
+ function kf(e, t) {
8431
8431
  if (Ds && e.data instanceof Blob)
8432
8432
  return e.data.arrayBuffer().then(ni).then(t);
8433
8433
  if (Is && (e.data instanceof ArrayBuffer || Rs(e.data)))
@@ -8439,14 +8439,14 @@ function Sf(e, t) {
8439
8439
  const ri = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Nt = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
8440
8440
  for (let e = 0; e < ri.length; e++)
8441
8441
  Nt[ri.charCodeAt(e)] = e;
8442
- const kf = (e) => {
8442
+ const Ef = (e) => {
8443
8443
  let t = e.length * 0.75, n = e.length, r, o = 0, i, s, a, l;
8444
8444
  e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
8445
8445
  const c = new ArrayBuffer(t), d = new Uint8Array(c);
8446
8446
  for (r = 0; r < n; r += 4)
8447
8447
  i = Nt[e.charCodeAt(r)], s = Nt[e.charCodeAt(r + 1)], a = Nt[e.charCodeAt(r + 2)], l = Nt[e.charCodeAt(r + 3)], d[o++] = i << 2 | s >> 4, d[o++] = (s & 15) << 4 | a >> 2, d[o++] = (a & 3) << 6 | l & 63;
8448
8448
  return c;
8449
- }, Ef = typeof ArrayBuffer == "function", no = (e, t) => {
8449
+ }, Cf = typeof ArrayBuffer == "function", no = (e, t) => {
8450
8450
  if (typeof e != "string")
8451
8451
  return {
8452
8452
  type: "message",
@@ -8455,16 +8455,16 @@ const kf = (e) => {
8455
8455
  const n = e.charAt(0);
8456
8456
  return n === "b" ? {
8457
8457
  type: "message",
8458
- data: Cf(e.substring(1), t)
8458
+ data: Of(e.substring(1), t)
8459
8459
  } : dn[n] ? e.length > 1 ? {
8460
8460
  type: dn[n],
8461
8461
  data: e.substring(1)
8462
8462
  } : {
8463
8463
  type: dn[n]
8464
8464
  } : _r;
8465
- }, Cf = (e, t) => {
8466
- if (Ef) {
8467
- const n = kf(e);
8465
+ }, Of = (e, t) => {
8466
+ if (Cf) {
8467
+ const n = Ef(e);
8468
8468
  return Fs(n, t);
8469
8469
  } else
8470
8470
  return { base64: !0, data: e };
@@ -8476,7 +8476,7 @@ const kf = (e) => {
8476
8476
  default:
8477
8477
  return e instanceof ArrayBuffer ? e : e.buffer;
8478
8478
  }
8479
- }, $s = "", Of = (e, t) => {
8479
+ }, $s = "", _f = (e, t) => {
8480
8480
  const n = e.length, r = new Array(n);
8481
8481
  let o = 0;
8482
8482
  e.forEach((i, s) => {
@@ -8484,7 +8484,7 @@ const kf = (e) => {
8484
8484
  r[s] = a, ++o === n && t(r.join($s));
8485
8485
  });
8486
8486
  });
8487
- }, _f = (e, t) => {
8487
+ }, Pf = (e, t) => {
8488
8488
  const n = e.split($s), r = [];
8489
8489
  for (let o = 0; o < n.length; o++) {
8490
8490
  const i = no(n[o], t);
@@ -8493,10 +8493,10 @@ const kf = (e) => {
8493
8493
  }
8494
8494
  return r;
8495
8495
  };
8496
- function Pf() {
8496
+ function Af() {
8497
8497
  return new TransformStream({
8498
8498
  transform(e, t) {
8499
- Sf(e, (n) => {
8499
+ kf(e, (n) => {
8500
8500
  const r = n.length;
8501
8501
  let o;
8502
8502
  if (r < 126)
@@ -8528,7 +8528,7 @@ function on(e, t) {
8528
8528
  n[o] = e[0][r++], r === e[0].length && (e.shift(), r = 0);
8529
8529
  return e.length && r < e[0].length && (e[0] = e[0].slice(r)), n;
8530
8530
  }
8531
- function Af(e, t) {
8531
+ function Tf(e, t) {
8532
8532
  nr || (nr = new TextDecoder());
8533
8533
  const n = [];
8534
8534
  let r = 0, o = -1, i = !1;
@@ -8570,9 +8570,9 @@ function Af(e, t) {
8570
8570
  }
8571
8571
  const Ns = 4;
8572
8572
  function te(e) {
8573
- if (e) return Tf(e);
8573
+ if (e) return Lf(e);
8574
8574
  }
8575
- function Tf(e) {
8575
+ function Lf(e) {
8576
8576
  for (var t in te.prototype)
8577
8577
  e[t] = te.prototype[t];
8578
8578
  return e;
@@ -8618,19 +8618,19 @@ te.prototype.listeners = function(e) {
8618
8618
  te.prototype.hasListeners = function(e) {
8619
8619
  return !!this.listeners(e).length;
8620
8620
  };
8621
- const Kn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (t) => Promise.resolve().then(t) : (t, n) => n(t, 0), ve = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), Lf = "arraybuffer";
8621
+ const Kn = typeof Promise == "function" && typeof Promise.resolve == "function" ? (t) => Promise.resolve().then(t) : (t, n) => n(t, 0), ve = typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")(), Mf = "arraybuffer";
8622
8622
  function Ks(e, ...t) {
8623
8623
  return t.reduce((n, r) => (e.hasOwnProperty(r) && (n[r] = e[r]), n), {});
8624
8624
  }
8625
- const Mf = ve.setTimeout, Df = ve.clearTimeout;
8625
+ const Df = ve.setTimeout, If = ve.clearTimeout;
8626
8626
  function zn(e, t) {
8627
- t.useNativeTimers ? (e.setTimeoutFn = Mf.bind(ve), e.clearTimeoutFn = Df.bind(ve)) : (e.setTimeoutFn = ve.setTimeout.bind(ve), e.clearTimeoutFn = ve.clearTimeout.bind(ve));
8628
- }
8629
- const If = 1.33;
8630
- function Rf(e) {
8631
- return typeof e == "string" ? Ff(e) : Math.ceil((e.byteLength || e.size) * If);
8627
+ t.useNativeTimers ? (e.setTimeoutFn = Df.bind(ve), e.clearTimeoutFn = If.bind(ve)) : (e.setTimeoutFn = ve.setTimeout.bind(ve), e.clearTimeoutFn = ve.clearTimeout.bind(ve));
8632
8628
  }
8629
+ const Rf = 1.33;
8633
8630
  function Ff(e) {
8631
+ return typeof e == "string" ? $f(e) : Math.ceil((e.byteLength || e.size) * Rf);
8632
+ }
8633
+ function $f(e) {
8634
8634
  let t = 0, n = 0;
8635
8635
  for (let r = 0, o = e.length; r < o; r++)
8636
8636
  t = e.charCodeAt(r), t < 128 ? n += 1 : t < 2048 ? n += 2 : t < 55296 || t >= 57344 ? n += 3 : (r++, n += 4);
@@ -8639,13 +8639,13 @@ function Ff(e) {
8639
8639
  function zs() {
8640
8640
  return Date.now().toString(36).substring(3) + Math.random().toString(36).substring(2, 5);
8641
8641
  }
8642
- function $f(e) {
8642
+ function Nf(e) {
8643
8643
  let t = "";
8644
8644
  for (let n in e)
8645
8645
  e.hasOwnProperty(n) && (t.length && (t += "&"), t += encodeURIComponent(n) + "=" + encodeURIComponent(e[n]));
8646
8646
  return t;
8647
8647
  }
8648
- function Nf(e) {
8648
+ function Kf(e) {
8649
8649
  let t = {}, n = e.split("&");
8650
8650
  for (let r = 0, o = n.length; r < o; r++) {
8651
8651
  let i = n[r].split("=");
@@ -8653,7 +8653,7 @@ function Nf(e) {
8653
8653
  }
8654
8654
  return t;
8655
8655
  }
8656
- class Kf extends Error {
8656
+ class zf extends Error {
8657
8657
  constructor(t, n, r) {
8658
8658
  super(t), this.description = n, this.context = r, this.type = "TransportError";
8659
8659
  }
@@ -8678,7 +8678,7 @@ class ro extends te {
8678
8678
  * @protected
8679
8679
  */
8680
8680
  onError(t, n, r) {
8681
- return super.emitReserved("error", new Kf(t, n, r)), this;
8681
+ return super.emitReserved("error", new zf(t, n, r)), this;
8682
8682
  }
8683
8683
  /**
8684
8684
  * Opens the transport.
@@ -8752,11 +8752,11 @@ class ro extends te {
8752
8752
  return this.opts.port && (this.opts.secure && +(this.opts.port !== 443) || !this.opts.secure && Number(this.opts.port) !== 80) ? ":" + this.opts.port : "";
8753
8753
  }
8754
8754
  _query(t) {
8755
- const n = $f(t);
8755
+ const n = Nf(t);
8756
8756
  return n.length ? "?" + n : "";
8757
8757
  }
8758
8758
  }
8759
- class zf extends ro {
8759
+ class Bf extends ro {
8760
8760
  constructor() {
8761
8761
  super(...arguments), this._polling = !1;
8762
8762
  }
@@ -8812,7 +8812,7 @@ class zf extends ro {
8812
8812
  return this.onClose({ description: "transport closed by the server" }), !1;
8813
8813
  this.onPacket(r);
8814
8814
  };
8815
- _f(t, this.socket.binaryType).forEach(n), this.readyState !== "closed" && (this._polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this._poll());
8815
+ Pf(t, this.socket.binaryType).forEach(n), this.readyState !== "closed" && (this._polling = !1, this.emitReserved("pollComplete"), this.readyState === "open" && this._poll());
8816
8816
  }
8817
8817
  /**
8818
8818
  * For polling, send a close packet.
@@ -8832,7 +8832,7 @@ class zf extends ro {
8832
8832
  * @protected
8833
8833
  */
8834
8834
  write(t) {
8835
- this.writable = !1, Of(t, (n) => {
8835
+ this.writable = !1, _f(t, (n) => {
8836
8836
  this.doWrite(n, () => {
8837
8837
  this.writable = !0, this.emitReserved("drain");
8838
8838
  });
@@ -8853,10 +8853,10 @@ try {
8853
8853
  Bs = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
8854
8854
  } catch {
8855
8855
  }
8856
- const Bf = Bs;
8857
- function Vf() {
8856
+ const Vf = Bs;
8857
+ function Uf() {
8858
8858
  }
8859
- class Uf extends zf {
8859
+ class jf extends Bf {
8860
8860
  /**
8861
8861
  * XHR Polling constructor.
8862
8862
  *
@@ -8969,7 +8969,7 @@ class De extends te {
8969
8969
  */
8970
8970
  _cleanup(t) {
8971
8971
  if (!(typeof this._xhr > "u" || this._xhr === null)) {
8972
- if (this._xhr.onreadystatechange = Vf, t)
8972
+ if (this._xhr.onreadystatechange = Uf, t)
8973
8973
  try {
8974
8974
  this._xhr.abort();
8975
8975
  } catch {
@@ -9009,17 +9009,17 @@ function oi() {
9009
9009
  for (let e in De.requests)
9010
9010
  De.requests.hasOwnProperty(e) && De.requests[e].abort();
9011
9011
  }
9012
- const jf = function() {
9012
+ const qf = function() {
9013
9013
  const e = Vs({
9014
9014
  xdomain: !1
9015
9015
  });
9016
9016
  return e && e.responseType !== null;
9017
9017
  }();
9018
- class qf extends Uf {
9018
+ class Hf extends jf {
9019
9019
  constructor(t) {
9020
9020
  super(t);
9021
9021
  const n = t && t.forceBase64;
9022
- this.supportsBinary = jf && !n;
9022
+ this.supportsBinary = qf && !n;
9023
9023
  }
9024
9024
  request(t = {}) {
9025
9025
  return Object.assign(t, { xd: this.xd }, this.opts), new De(Vs, this.uri(), t);
@@ -9028,7 +9028,7 @@ class qf extends Uf {
9028
9028
  function Vs(e) {
9029
9029
  const t = e.xdomain;
9030
9030
  try {
9031
- if (typeof XMLHttpRequest < "u" && (!t || Bf))
9031
+ if (typeof XMLHttpRequest < "u" && (!t || Vf))
9032
9032
  return new XMLHttpRequest();
9033
9033
  } catch {
9034
9034
  }
@@ -9039,7 +9039,7 @@ function Vs(e) {
9039
9039
  }
9040
9040
  }
9041
9041
  const Us = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
9042
- class Hf extends ro {
9042
+ class Wf extends ro {
9043
9043
  get name() {
9044
9044
  return "websocket";
9045
9045
  }
@@ -9096,7 +9096,7 @@ class Hf extends ro {
9096
9096
  }
9097
9097
  }
9098
9098
  const rr = ve.WebSocket || ve.MozWebSocket;
9099
- class Wf extends Hf {
9099
+ class Gf extends Wf {
9100
9100
  createSocket(t, n, r) {
9101
9101
  return Us ? new rr(t, n, r) : n ? new rr(t, n) : new rr(t);
9102
9102
  }
@@ -9104,7 +9104,7 @@ class Wf extends Hf {
9104
9104
  this.ws.send(n);
9105
9105
  }
9106
9106
  }
9107
- class Gf extends ro {
9107
+ class Yf extends ro {
9108
9108
  get name() {
9109
9109
  return "webtransport";
9110
9110
  }
@@ -9120,7 +9120,7 @@ class Gf extends ro {
9120
9120
  this.onError("webtransport error", t);
9121
9121
  }), this._transport.ready.then(() => {
9122
9122
  this._transport.createBidirectionalStream().then((t) => {
9123
- const n = Af(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = t.readable.pipeThrough(n).getReader(), o = Pf();
9123
+ const n = Tf(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = t.readable.pipeThrough(n).getReader(), o = Af();
9124
9124
  o.readable.pipeTo(t.writable), this._writer = o.writable.getWriter();
9125
9125
  const i = () => {
9126
9126
  r.read().then(({ done: a, value: l }) => {
@@ -9150,11 +9150,11 @@ class Gf extends ro {
9150
9150
  (t = this._transport) === null || t === void 0 || t.close();
9151
9151
  }
9152
9152
  }
9153
- const Yf = {
9154
- websocket: Wf,
9155
- webtransport: Gf,
9156
- polling: qf
9157
- }, Xf = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Jf = [
9153
+ const Xf = {
9154
+ websocket: Gf,
9155
+ webtransport: Yf,
9156
+ polling: Hf
9157
+ }, Jf = /^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, Zf = [
9158
9158
  "source",
9159
9159
  "protocol",
9160
9160
  "authority",
@@ -9175,16 +9175,16 @@ function Pr(e) {
9175
9175
  throw "URI too long";
9176
9176
  const t = e, n = e.indexOf("["), r = e.indexOf("]");
9177
9177
  n != -1 && r != -1 && (e = e.substring(0, n) + e.substring(n, r).replace(/:/g, ";") + e.substring(r, e.length));
9178
- let o = Xf.exec(e || ""), i = {}, s = 14;
9178
+ let o = Jf.exec(e || ""), i = {}, s = 14;
9179
9179
  for (; s--; )
9180
- i[Jf[s]] = o[s] || "";
9181
- return n != -1 && r != -1 && (i.source = t, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Zf(i, i.path), i.queryKey = Qf(i, i.query), i;
9180
+ i[Zf[s]] = o[s] || "";
9181
+ return n != -1 && r != -1 && (i.source = t, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = Qf(i, i.path), i.queryKey = eh(i, i.query), i;
9182
9182
  }
9183
- function Zf(e, t) {
9183
+ function Qf(e, t) {
9184
9184
  const n = /\/{2,9}/g, r = t.replace(n, "/").split("/");
9185
9185
  return (t.slice(0, 1) == "/" || t.length === 0) && r.splice(0, 1), t.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
9186
9186
  }
9187
- function Qf(e, t) {
9187
+ function eh(e, t) {
9188
9188
  const n = {};
9189
9189
  return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, o, i) {
9190
9190
  o && (n[o] = i);
@@ -9202,7 +9202,7 @@ class Ye extends te {
9202
9202
  * @param {Object} opts - options
9203
9203
  */
9204
9204
  constructor(t, n) {
9205
- if (super(), this.binaryType = Lf, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, t && typeof t == "object" && (n = t, t = null), t) {
9205
+ if (super(), this.binaryType = Mf, this.writeBuffer = [], this._prevBufferLen = 0, this._pingInterval = -1, this._pingTimeout = -1, this._maxPayload = -1, this._pingTimeoutTime = 1 / 0, t && typeof t == "object" && (n = t, t = null), t) {
9206
9206
  const r = Pr(t);
9207
9207
  n.hostname = r.host, n.secure = r.protocol === "https" || r.protocol === "wss", n.port = r.port, r.query && (n.query = r.query);
9208
9208
  } else n.host && (n.hostname = Pr(n.host).host);
@@ -9223,7 +9223,7 @@ class Ye extends te {
9223
9223
  },
9224
9224
  transportOptions: {},
9225
9225
  closeOnBeforeunload: !1
9226
- }, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Nf(this.opts.query)), Ar && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
9226
+ }, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = Kf(this.opts.query)), Ar && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
9227
9227
  this.transport && (this.transport.removeAllListeners(), this.transport.close());
9228
9228
  }, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
9229
9229
  this._onClose("transport close", {
@@ -9358,7 +9358,7 @@ class Ye extends te {
9358
9358
  let n = 1;
9359
9359
  for (let r = 0; r < this.writeBuffer.length; r++) {
9360
9360
  const o = this.writeBuffer[r].data;
9361
- if (o && (n += Rf(o)), r > 0 && n > this._maxPayload)
9361
+ if (o && (n += Ff(o)), r > 0 && n > this._maxPayload)
9362
9362
  return this.writeBuffer.slice(0, r);
9363
9363
  n += 2;
9364
9364
  }
@@ -9465,7 +9465,7 @@ class Ye extends te {
9465
9465
  }
9466
9466
  }
9467
9467
  Ye.protocol = Ns;
9468
- class eh extends Ye {
9468
+ class th extends Ye {
9469
9469
  constructor() {
9470
9470
  super(...arguments), this._upgrades = [];
9471
9471
  }
@@ -9537,21 +9537,21 @@ class eh extends Ye {
9537
9537
  return n;
9538
9538
  }
9539
9539
  }
9540
- let th = class extends eh {
9540
+ let nh = class extends th {
9541
9541
  constructor(t, n = {}) {
9542
9542
  const r = typeof t == "object" ? t : n;
9543
- (!r.transports || r.transports && typeof r.transports[0] == "string") && (r.transports = (r.transports || ["polling", "websocket", "webtransport"]).map((o) => Yf[o]).filter((o) => !!o)), super(t, r);
9543
+ (!r.transports || r.transports && typeof r.transports[0] == "string") && (r.transports = (r.transports || ["polling", "websocket", "webtransport"]).map((o) => Xf[o]).filter((o) => !!o)), super(t, r);
9544
9544
  }
9545
9545
  };
9546
- function nh(e, t = "", n) {
9546
+ function rh(e, t = "", n) {
9547
9547
  let r = e;
9548
9548
  n = n || typeof location < "u" && location, e == null && (e = n.protocol + "//" + n.host), typeof e == "string" && (e.charAt(0) === "/" && (e.charAt(1) === "/" ? e = n.protocol + e : e = n.host + e), /^(https?|wss?):\/\//.test(e) || (typeof n < "u" ? e = n.protocol + "//" + e : e = "https://" + e), r = Pr(e)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
9549
9549
  const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
9550
9550
  return r.id = r.protocol + "://" + i + ":" + r.port + t, r.href = r.protocol + "://" + i + (n && n.port === r.port ? "" : ":" + r.port), r;
9551
9551
  }
9552
- const rh = typeof ArrayBuffer == "function", oh = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e.buffer instanceof ArrayBuffer, js = Object.prototype.toString, ih = typeof Blob == "function" || typeof Blob < "u" && js.call(Blob) === "[object BlobConstructor]", sh = typeof File == "function" || typeof File < "u" && js.call(File) === "[object FileConstructor]";
9552
+ const oh = typeof ArrayBuffer == "function", ih = (e) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(e) : e.buffer instanceof ArrayBuffer, js = Object.prototype.toString, sh = typeof Blob == "function" || typeof Blob < "u" && js.call(Blob) === "[object BlobConstructor]", ah = typeof File == "function" || typeof File < "u" && js.call(File) === "[object FileConstructor]";
9553
9553
  function oo(e) {
9554
- return rh && (e instanceof ArrayBuffer || oh(e)) || ih && e instanceof Blob || sh && e instanceof File;
9554
+ return oh && (e instanceof ArrayBuffer || ih(e)) || sh && e instanceof Blob || ah && e instanceof File;
9555
9555
  }
9556
9556
  function hn(e, t) {
9557
9557
  if (!e || typeof e != "object")
@@ -9571,7 +9571,7 @@ function hn(e, t) {
9571
9571
  return !0;
9572
9572
  return !1;
9573
9573
  }
9574
- function ah(e) {
9574
+ function lh(e) {
9575
9575
  const t = [], n = e.data, r = e;
9576
9576
  return r.data = Tr(n, t), r.attachments = t.length, { packet: r, buffers: t };
9577
9577
  }
@@ -9594,7 +9594,7 @@ function Tr(e, t) {
9594
9594
  }
9595
9595
  return e;
9596
9596
  }
9597
- function lh(e, t) {
9597
+ function ch(e, t) {
9598
9598
  return e.data = Lr(e.data, t), delete e.attachments, e;
9599
9599
  }
9600
9600
  function Lr(e, t) {
@@ -9612,7 +9612,7 @@ function Lr(e, t) {
9612
9612
  Object.prototype.hasOwnProperty.call(e, n) && (e[n] = Lr(e[n], t));
9613
9613
  return e;
9614
9614
  }
9615
- const ch = [
9615
+ const uh = [
9616
9616
  "connect",
9617
9617
  "connect_error",
9618
9618
  "disconnect",
@@ -9620,12 +9620,12 @@ const ch = [
9620
9620
  "newListener",
9621
9621
  "removeListener"
9622
9622
  // used by the Node.js EventEmitter
9623
- ], uh = 5;
9623
+ ], dh = 5;
9624
9624
  var B;
9625
9625
  (function(e) {
9626
9626
  e[e.CONNECT = 0] = "CONNECT", e[e.DISCONNECT = 1] = "DISCONNECT", e[e.EVENT = 2] = "EVENT", e[e.ACK = 3] = "ACK", e[e.CONNECT_ERROR = 4] = "CONNECT_ERROR", e[e.BINARY_EVENT = 5] = "BINARY_EVENT", e[e.BINARY_ACK = 6] = "BINARY_ACK";
9627
9627
  })(B || (B = {}));
9628
- class dh {
9628
+ class fh {
9629
9629
  /**
9630
9630
  * Encoder constructor
9631
9631
  *
@@ -9661,7 +9661,7 @@ class dh {
9661
9661
  * a list of buffers.
9662
9662
  */
9663
9663
  encodeAsBinary(t) {
9664
- const n = ah(t), r = this.encodeAsString(n.packet), o = n.buffers;
9664
+ const n = lh(t), r = this.encodeAsString(n.packet), o = n.buffers;
9665
9665
  return o.unshift(r), o;
9666
9666
  }
9667
9667
  }
@@ -9689,7 +9689,7 @@ class io extends te {
9689
9689
  throw new Error("got plaintext data when reconstructing a packet");
9690
9690
  n = this.decodeString(t);
9691
9691
  const r = n.type === B.BINARY_EVENT;
9692
- r || n.type === B.BINARY_ACK ? (n.type = r ? B.EVENT : B.ACK, this.reconstructor = new fh(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
9692
+ r || n.type === B.BINARY_ACK ? (n.type = r ? B.EVENT : B.ACK, this.reconstructor = new hh(n), n.attachments === 0 && super.emitReserved("decoded", n)) : super.emitReserved("decoded", n);
9693
9693
  } else if (oo(t) || t.base64)
9694
9694
  if (this.reconstructor)
9695
9695
  n = this.reconstructor.takeBinaryData(t), n && (this.reconstructor = null, super.emitReserved("decoded", n));
@@ -9767,7 +9767,7 @@ class io extends te {
9767
9767
  return typeof n == "string" || ii(n);
9768
9768
  case B.EVENT:
9769
9769
  case B.BINARY_EVENT:
9770
- return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && ch.indexOf(n[0]) === -1);
9770
+ return Array.isArray(n) && (typeof n[0] == "number" || typeof n[0] == "string" && uh.indexOf(n[0]) === -1);
9771
9771
  case B.ACK:
9772
9772
  case B.BINARY_ACK:
9773
9773
  return Array.isArray(n);
@@ -9780,7 +9780,7 @@ class io extends te {
9780
9780
  this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
9781
9781
  }
9782
9782
  }
9783
- class fh {
9783
+ class hh {
9784
9784
  constructor(t) {
9785
9785
  this.packet = t, this.buffers = [], this.reconPack = t;
9786
9786
  }
@@ -9794,7 +9794,7 @@ class fh {
9794
9794
  */
9795
9795
  takeBinaryData(t) {
9796
9796
  if (this.buffers.push(t), this.buffers.length === this.reconPack.attachments) {
9797
- const n = lh(this.reconPack, this.buffers);
9797
+ const n = ch(this.reconPack, this.buffers);
9798
9798
  return this.finishedReconstruction(), n;
9799
9799
  }
9800
9800
  return null;
@@ -9806,21 +9806,21 @@ class fh {
9806
9806
  this.reconPack = null, this.buffers = [];
9807
9807
  }
9808
9808
  }
9809
- const hh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9809
+ const gh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9810
9810
  __proto__: null,
9811
9811
  Decoder: io,
9812
- Encoder: dh,
9812
+ Encoder: fh,
9813
9813
  get PacketType() {
9814
9814
  return B;
9815
9815
  },
9816
- protocol: uh
9816
+ protocol: dh
9817
9817
  }, Symbol.toStringTag, { value: "Module" }));
9818
9818
  function Ee(e, t, n) {
9819
9819
  return e.on(t, n), function() {
9820
9820
  e.off(t, n);
9821
9821
  };
9822
9822
  }
9823
- const gh = Object.freeze({
9823
+ const ph = Object.freeze({
9824
9824
  connect: 1,
9825
9825
  connect_error: 1,
9826
9826
  disconnect: 1,
@@ -9945,7 +9945,7 @@ class qs extends te {
9945
9945
  */
9946
9946
  emit(t, ...n) {
9947
9947
  var r, o, i;
9948
- if (gh.hasOwnProperty(t))
9948
+ if (ph.hasOwnProperty(t))
9949
9949
  throw new Error('"' + t.toString() + '" is a reserved event name');
9950
9950
  if (n.unshift(t), this._opts.retries && !this.flags.fromQueue && !this.flags.volatile)
9951
9951
  return this._addToQueue(n), this;
@@ -10452,7 +10452,7 @@ class Mr extends te {
10452
10452
  max: this.reconnectionDelayMax(),
10453
10453
  jitter: this.randomizationFactor()
10454
10454
  }), this.timeout(n.timeout == null ? 2e4 : n.timeout), this._readyState = "closed", this.uri = t;
10455
- const o = n.parser || hh;
10455
+ const o = n.parser || gh;
10456
10456
  this.encoder = new o.Encoder(), this.decoder = new o.Decoder(), this._autoConnect = n.autoConnect !== !1, this._autoConnect && this.open();
10457
10457
  }
10458
10458
  reconnection(t) {
@@ -10495,7 +10495,7 @@ class Mr extends te {
10495
10495
  open(t) {
10496
10496
  if (~this._readyState.indexOf("open"))
10497
10497
  return this;
10498
- this.engine = new th(this.uri, this.opts);
10498
+ this.engine = new nh(this.uri, this.opts);
10499
10499
  const n = this.engine, r = this;
10500
10500
  this._readyState = "opening", this.skipReconnect = !1;
10501
10501
  const o = Ee(n, "open", function() {
@@ -10685,7 +10685,7 @@ class Mr extends te {
10685
10685
  const It = {};
10686
10686
  function gn(e, t) {
10687
10687
  typeof e == "object" && (t = e, e = void 0), t = t || {};
10688
- const n = nh(e, t.path || "/socket.io"), r = n.source, o = n.id, i = n.path, s = It[o] && i in It[o].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || s;
10688
+ const n = rh(e, t.path || "/socket.io"), r = n.source, o = n.id, i = n.path, s = It[o] && i in It[o].nsps, a = t.forceNew || t["force new connection"] || t.multiplex === !1 || s;
10689
10689
  let l;
10690
10690
  return a ? l = new Mr(r, t) : (It[o] || (It[o] = new Mr(r, t)), l = It[o]), n.query && !t.query && (t.query = n.queryKey), l.socket(n.path, t);
10691
10691
  }
@@ -10702,7 +10702,7 @@ class Ge {
10702
10702
  static init(t) {
10703
10703
  if (!Ge.instance) {
10704
10704
  const n = Vr();
10705
- Ge.instance = gn(qa, {
10705
+ Ge.instance = gn(Ha, {
10706
10706
  path: "/ws",
10707
10707
  withCredentials: !0,
10708
10708
  extraHeaders: {
@@ -10733,19 +10733,19 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10733
10733
  ), Gs = () => {
10734
10734
  const { widgetId: e } = se();
10735
10735
  return Tn[e()] ?? [];
10736
- }, ph = (e) => {
10736
+ }, mh = (e) => {
10737
10737
  const { widgetId: t } = se();
10738
10738
  Ws({
10739
10739
  ...Tn,
10740
10740
  [t()]: [...Tn[t()] ?? [], e]
10741
10741
  });
10742
- }, mh = () => {
10742
+ }, yh = () => {
10743
10743
  const { widgetId: e } = se();
10744
10744
  Ws({
10745
10745
  ...Tn,
10746
10746
  [e()]: []
10747
10747
  });
10748
- }, [Ys, yh] = Yi(
10748
+ }, [Ys, bh] = Yi(
10749
10749
  "smarttalks-widget-conversationinfo",
10750
10750
  {},
10751
10751
  Hs
@@ -10754,20 +10754,20 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10754
10754
  return Ys[e()] ?? {};
10755
10755
  }, Js = (e) => {
10756
10756
  const { widgetId: t } = se();
10757
- yh({
10757
+ bh({
10758
10758
  ...Ys,
10759
10759
  [t()]: e
10760
10760
  });
10761
- }, [bh, or] = O(!1), [wh, si] = O(!1), Zs = [], ai = () => {
10761
+ }, [wh, or] = O(!1), [vh, si] = O(!1), Zs = [], ai = () => {
10762
10762
  Zs.forEach((e) => e());
10763
- }, vh = (e) => Zs.push(e), Dr = (e) => {
10764
- const t = bf(e);
10765
- if (ph(t), t.type === "media") {
10763
+ }, xh = (e) => Zs.push(e), Dr = (e) => {
10764
+ const t = wf(e);
10765
+ if (mh(t), t.type === "media") {
10766
10766
  setTimeout(ai, 200);
10767
10767
  return;
10768
10768
  }
10769
10769
  ai();
10770
- }, xh = (e, t) => {
10770
+ }, Sh = (e, t) => {
10771
10771
  const { chatWidget: n, widgetId: r } = se(), o = Xs();
10772
10772
  e.trim() && (Dr({
10773
10773
  text: e,
@@ -10781,20 +10781,20 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10781
10781
  });
10782
10782
  for (const s of i.messages)
10783
10783
  Dr(s), ee("onAnswer", s);
10784
- or(!1), wf(i.debug);
10785
- }), or(!0), vf(e, t, n()?._id).catch((i) => {
10784
+ or(!1), vf(i.debug);
10785
+ }), or(!0), xf(e, t, n()?._id).catch((i) => {
10786
10786
  console.error(i), or(!1);
10787
10787
  }));
10788
- }, Sh = () => {
10788
+ }, kh = () => {
10789
10789
  const { chatWidget: e } = se(), t = Xs();
10790
- si(!0), mh(), xf(
10790
+ si(!0), yh(), Sf(
10791
10791
  e()?._id,
10792
10792
  t.contactId,
10793
10793
  t.interactionId
10794
10794
  ).finally(() => {
10795
- Js({}), si(!1), kh();
10795
+ Js({}), si(!1), Qs();
10796
10796
  }), ee("onReset");
10797
- }, kh = () => {
10797
+ }, Qs = () => {
10798
10798
  const { chatWidget: e } = se();
10799
10799
  if (Gs().length === 0 && e()?.balloonMessage) {
10800
10800
  const n = e()?.balloonMessage;
@@ -10807,11 +10807,12 @@ const Hs = 1e3 * 60 * 60 * 24, [Tn, Ws] = Yi(
10807
10807
  }
10808
10808
  }, et = () => ({
10809
10809
  getMessages: Gs,
10810
- pushMessage: xh,
10811
- clearMessages: Sh,
10812
- onMessage: vh,
10813
- typing: bh,
10814
- loading: wh
10810
+ pushMessage: Sh,
10811
+ clearMessages: kh,
10812
+ addBalloonMessage: Qs,
10813
+ onMessage: xh,
10814
+ typing: wh,
10815
+ loading: vh
10815
10816
  });
10816
10817
  var Eh = /* @__PURE__ */ I("<span>");
10817
10818
  const Ch = () => {
@@ -10820,32 +10821,32 @@ const Ch = () => {
10820
10821
  } = et();
10821
10822
  O(!1);
10822
10823
  const [t, n] = O(!1);
10823
- return y(gf, {
10824
+ return y(pf, {
10824
10825
  get open() {
10825
10826
  return t();
10826
10827
  },
10827
10828
  onOpenChange: n,
10828
10829
  get children() {
10829
- return [y(pf, {
10830
+ return [y(mf, {
10830
10831
  get children() {
10831
10832
  return y(_e, {
10832
10833
  variant: "ghost",
10833
10834
  size: "icon",
10834
10835
  class: "hover:bg-accent/10 hover:text-primary-foreground",
10835
10836
  get children() {
10836
- return y(mc, {
10837
+ return y(yc, {
10837
10838
  size: 20
10838
10839
  });
10839
10840
  }
10840
10841
  });
10841
10842
  }
10842
- }), y(mf, {
10843
+ }), y(yf, {
10843
10844
  get children() {
10844
- return y(yf, {
10845
+ return y(bf, {
10845
10846
  class: "flex space-x-2 items-center cursor-pointer",
10846
10847
  onSelect: e,
10847
10848
  get children() {
10848
- return [y(pc, {
10849
+ return [y(mc, {
10849
10850
  size: 14
10850
10851
  }), (() => {
10851
10852
  var r = Eh();
@@ -10952,7 +10953,7 @@ const so = () => {
10952
10953
  c();
10953
10954
  }), (() => {
10954
10955
  var f = Th(), g = f.firstChild;
10955
- return A(f, y(hc, {}), g), A(g, y(_e, {
10956
+ return A(f, y(gc, {}), g), A(g, y(_e, {
10956
10957
  size: "icon",
10957
10958
  variant: "ghost",
10958
10959
  class: "hover:bg-accent/10 hover:text-primary-foreground",
@@ -11002,7 +11003,7 @@ const so = () => {
11002
11003
  })();
11003
11004
  };
11004
11005
  var Lh = /* @__PURE__ */ I("<span>");
11005
- const Qs = ({
11006
+ const ea = ({
11006
11007
  createdAt: e,
11007
11008
  anchor: t = "end"
11008
11009
  }) => (() => {
@@ -11018,7 +11019,7 @@ const Dh = ({
11018
11019
  createdAt: t
11019
11020
  }) => (() => {
11020
11021
  var n = Mh(), r = n.firstChild;
11021
- return A(r, e), A(n, y(Qs, {
11022
+ return A(r, e), A(n, y(ea, {
11022
11023
  createdAt: t,
11023
11024
  anchor: "start"
11024
11025
  }), null), n;
@@ -11027,7 +11028,7 @@ var Ih = /* @__PURE__ */ I("<span>");
11027
11028
  const Pt = (e) => {
11028
11029
  const [, t] = j(e, ["class", "children"]);
11029
11030
  let n = e.children?.toString();
11030
- return n && (n = Va(Ua(n))), (() => {
11031
+ return n && (n = Ua(ja(n))), (() => {
11031
11032
  var r = Ih();
11032
11033
  return r.innerHTML = n, st(r, T({
11033
11034
  get class() {
@@ -11300,7 +11301,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11300
11301
  }, co = cg, ug = (e) => {
11301
11302
  let t, n = !1;
11302
11303
  return () => n ? t : (n = !0, t = C(e));
11303
- }, ea = ug, dg = (e) => C(() => G(e.element)?.tagName.toLowerCase() || e.fallback), fg = dg, di = "button", hg = (e) => {
11304
+ }, ta = ug, dg = (e) => C(() => G(e.element)?.tagName.toLowerCase() || e.fallback), fg = dg, di = "button", hg = (e) => {
11304
11305
  const [t, n] = O(null), [r, o] = j(e, ["as", "ref", "type"]), i = fg({
11305
11306
  element: t,
11306
11307
  fallback: di
@@ -11436,9 +11437,9 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11436
11437
  state: r,
11437
11438
  setState: o
11438
11439
  };
11439
- }, vg = wg, hi = vg, xg = fe(), Sg = (e) => e ? Bn(`dialog-${e}`) : xg, ta = fe(), kg = (e) => e ? Bn(`dialog-internal-${e}`) : ta, At = (e) => {
11440
+ }, vg = wg, hi = vg, xg = fe(), Sg = (e) => e ? Bn(`dialog-${e}`) : xg, na = fe(), kg = (e) => e ? Bn(`dialog-internal-${e}`) : na, At = (e) => {
11440
11441
  if (!e) {
11441
- const n = ye(ta);
11442
+ const n = ye(na);
11442
11443
  if (!n)
11443
11444
  throw new Error("[corvu]: Dialog context not found. Make sure to wrap Dialog components in <Dialog.Root>");
11444
11445
  return n;
@@ -11752,7 +11753,7 @@ var Ir = qh, pn = /* @__PURE__ */ new Map(), Bn = (e, t) => {
11752
11753
  get descriptionId() {
11753
11754
  return a();
11754
11755
  }
11755
- }, v = ea(() => t.children), x = () => {
11756
+ }, v = ta(() => t.children), x = () => {
11756
11757
  const E = v()();
11757
11758
  return Gt(E) ? E(w) : E;
11758
11759
  };
@@ -11948,9 +11949,9 @@ var Vg = (e, t) => {
11948
11949
  }, qg = (e) => y(Fg, T({
11949
11950
  "data-corvu-dialog-trigger": void 0,
11950
11951
  "data-corvu-drawer-trigger": ""
11951
- }, e)), na = fe(), Hg = (e) => e ? Bn(`drawer-${e}`) : na, Wg = (e) => {
11952
+ }, e)), ra = fe(), Hg = (e) => e ? Bn(`drawer-${e}`) : ra, Wg = (e) => {
11952
11953
  if (!e) {
11953
- const n = ye(na);
11954
+ const n = ye(ra);
11954
11955
  if (!n)
11955
11956
  throw new Error("[corvu]: Drawer context not found. Make sure to wrap Drawer components in <Drawer.Root>");
11956
11957
  return n;
@@ -11959,9 +11960,9 @@ var Vg = (e, t) => {
11959
11960
  if (!t)
11960
11961
  throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
11961
11962
  return t;
11962
- }, ra = fe(), Gg = (e) => e ? Bn(`drawer-internal-${e}`) : ra, oa = (e) => {
11963
+ }, oa = fe(), Gg = (e) => e ? Bn(`drawer-internal-${e}`) : oa, ia = (e) => {
11963
11964
  if (!e) {
11964
- const n = ye(ra);
11965
+ const n = ye(oa);
11965
11966
  if (!n)
11966
11967
  throw new Error("[corvu]: Drawer context not found. Make sure to wrap Drawer components in <Drawer.Root>");
11967
11968
  return n;
@@ -11970,7 +11971,7 @@ var Vg = (e, t) => {
11970
11971
  if (!t)
11971
11972
  throw new Error(`[corvu]: Drawer context with id "${e}" not found. Make sure to wrap Drawer components in <Drawer.Root contextId="${e}">`);
11972
11973
  return t;
11973
- }, ia = (e, t, n, r) => {
11974
+ }, sa = (e, t, n, r) => {
11974
11975
  if (n === void 0 || r === void 0)
11975
11976
  return {
11976
11977
  value: e,
@@ -12090,7 +12091,7 @@ var Vg = (e, t) => {
12090
12091
  _($.offsetWidth);
12091
12092
  break;
12092
12093
  }
12093
- }, F = C(() => ia(s(), x())), [P, R] = pi(() => F().offset), M = C(() => x() ? (x() - P()) / x() : 0), D = {
12094
+ }, F = C(() => sa(s(), x())), [P, R] = pi(() => F().offset), M = C(() => x() ? (x() - P()) / x() : 0), D = {
12094
12095
  get snapPoints() {
12095
12096
  return n.snapPoints;
12096
12097
  },
@@ -12134,7 +12135,7 @@ var Vg = (e, t) => {
12134
12135
  get transitionResize() {
12135
12136
  return n.transitionResize;
12136
12137
  }
12137
- }, ne = ea(() => n.children), W = ($) => {
12138
+ }, ne = ta(() => n.children), W = ($) => {
12138
12139
  c(At(n.contextId));
12139
12140
  const z = ne()();
12140
12141
  if (Gt(z)) {
@@ -12217,7 +12218,7 @@ var Vg = (e, t) => {
12217
12218
  }, Qg = Zg, ep = (e) => {
12218
12219
  const [t, n] = j(e, ["contextId", "style"]);
12219
12220
  let r = !1, o = null, i = [0, 0], s, a = 0;
12220
- const l = C(() => oa(t.contextId)), c = C(() => At(t.contextId)), d = C(() => l().snapPoints().map((v, x) => ia(v, l().drawerSize(), x, l().breakPoints()))), u = C(() => {
12221
+ const l = C(() => ia(t.contextId)), c = C(() => At(t.contextId)), d = C(() => l().snapPoints().map((v, x) => sa(v, l().drawerSize(), x, l().breakPoints()))), u = C(() => {
12221
12222
  switch (l().side()) {
12222
12223
  case "top":
12223
12224
  return `translate3d(0, ${-l().translate()}px, 0)`;
@@ -12351,7 +12352,7 @@ var Vg = (e, t) => {
12351
12352
  "data-corvu-drawer-content": ""
12352
12353
  }, n));
12353
12354
  }, tp = ep, np = (e) => {
12354
- const [t, n] = j(e, ["contextId"]), r = C(() => oa(t.contextId));
12355
+ const [t, n] = j(e, ["contextId"]), r = C(() => ia(t.contextId));
12355
12356
  return y(Ag, T({
12356
12357
  get contextId() {
12357
12358
  return t.contextId;
@@ -12479,12 +12480,12 @@ const pp = ({
12479
12480
  return l() === w;
12480
12481
  },
12481
12482
  get fallback() {
12482
- return y(ff, {
12483
+ return y(hf, {
12483
12484
  class: "size-4 text-slate-500"
12484
12485
  });
12485
12486
  },
12486
12487
  get children() {
12487
- return y(df, {
12488
+ return y(ff, {
12488
12489
  class: "size-4 text-slate-500"
12489
12490
  });
12490
12491
  }
@@ -12524,7 +12525,7 @@ const yp = (e) => (() => {
12524
12525
  var bp = /* @__PURE__ */ I('<div class="flex flex-col space-y-2"><a class="self-center hover:brightness-75 transition-all duration-300 flex flex-col items-center justify-between bg-slate-200 rounded-md px-1 py-1 space-y-2 text-slate-700"target=_blank><span class="font-semibold text-sm">');
12525
12526
  const wp = (e) => (() => {
12526
12527
  var t = bp(), n = t.firstChild, r = n.firstChild;
12527
- return A(n, y(hf, {
12528
+ return A(n, y(gf, {
12528
12529
  class: "size-10"
12529
12530
  }), r), A(r, () => e.filename?.trim()), A(t, y(Pt, {
12530
12531
  get children() {
@@ -12564,7 +12565,7 @@ const kp = (e) => (() => {
12564
12565
  }), t;
12565
12566
  })();
12566
12567
  var Ep = /* @__PURE__ */ I("<div>Media type not supported");
12567
- const sa = (e) => e.type === "image" ? y(xp, e) : e.type === "audio" ? y(yp, e) : e.type === "document" ? y(wp, e) : e.type === "video" ? y(kp, e) : Ep(), Fr = ({
12568
+ const aa = (e) => e.type === "image" ? y(xp, e) : e.type === "audio" ? y(yp, e) : e.type === "document" ? y(wp, e) : e.type === "video" ? y(kp, e) : Ep(), Fr = ({
12568
12569
  text: e
12569
12570
  }) => y(Pt, {
12570
12571
  get children() {
@@ -12581,7 +12582,7 @@ const Op = (e) => y(Dh, {
12581
12582
  get text() {
12582
12583
  return e.text;
12583
12584
  }
12584
- }) : e.type === "buttons" ? y(Fh, T(() => e.buttons)) : e.type === "list" ? y(pp, T(() => e.list)) : e.type === "media" ? y(sa, T(() => e.media)) : e.type === "link" ? y(Bh, T(() => e.link)) : e.type === "cards" ? y(Kh, T(() => e.cards)) : e.type === "date" ? y(Fr, {
12585
+ }) : e.type === "buttons" ? y(Fh, T(() => e.buttons)) : e.type === "list" ? y(pp, T(() => e.list)) : e.type === "media" ? y(aa, T(() => e.media)) : e.type === "link" ? y(Bh, T(() => e.link)) : e.type === "cards" ? y(Kh, T(() => e.cards)) : e.type === "date" ? y(Fr, {
12585
12586
  get text() {
12586
12587
  return e.text;
12587
12588
  }
@@ -12599,7 +12600,7 @@ const Tp = ({
12599
12600
  createdAt: t
12600
12601
  }) => (() => {
12601
12602
  var n = Ap(), r = n.firstChild;
12602
- return A(r, e), A(n, y(Qs, {
12603
+ return A(r, e), A(n, y(ea, {
12603
12604
  createdAt: t,
12604
12605
  anchor: "end"
12605
12606
  }), null), n;
@@ -12614,7 +12615,7 @@ const Mp = (e) => y(Tp, {
12614
12615
  get text() {
12615
12616
  return e.text;
12616
12617
  }
12617
- }) : e.type === "media" ? y(sa, T(() => e.media)) : Lp();
12618
+ }) : e.type === "media" ? y(aa, T(() => e.media)) : Lp();
12618
12619
  }
12619
12620
  });
12620
12621
  var Dp = /* @__PURE__ */ I("<div>Unknown message origin");
@@ -12631,32 +12632,33 @@ const uo = () => {
12631
12632
  const {
12632
12633
  getMessages: t,
12633
12634
  onMessage: n,
12634
- clearMessages: r
12635
+ clearMessages: r,
12636
+ addBalloonMessage: o
12635
12637
  } = et(), {
12636
- onOpen: o
12637
- } = ji(), i = (s = 100) => {
12638
+ onOpen: i
12639
+ } = ji(), s = (a = 100) => {
12638
12640
  setTimeout(() => {
12639
12641
  e?.scrollTo(0, e.scrollHeight);
12640
- }, s);
12642
+ }, a);
12641
12643
  };
12642
12644
  return re("reset", () => {
12643
12645
  r();
12644
12646
  }), xt(() => {
12645
- i(200);
12646
- }), n(i), o(() => i(200)), (() => {
12647
- var s = Rp(), a = e;
12648
- return typeof a == "function" ? zr(a, s) : e = s, A(s, y(bt, {
12647
+ o(), s(200);
12648
+ }), n(s), i(() => s(200)), (() => {
12649
+ var a = Rp(), l = e;
12650
+ return typeof l == "function" ? zr(l, a) : e = a, A(a, y(bt, {
12649
12651
  get each() {
12650
12652
  return t();
12651
12653
  },
12652
12654
  get fallback() {
12653
12655
  return (() => {
12654
- var l = Fp();
12655
- return A(l, () => pt("emptyMessages")), l;
12656
+ var c = Fp();
12657
+ return A(c, () => pt("emptyMessages")), c;
12656
12658
  })();
12657
12659
  },
12658
- children: (l) => y(Ip, l)
12659
- })), s;
12660
+ children: (c) => y(Ip, c)
12661
+ })), a;
12660
12662
  })();
12661
12663
  };
12662
12664
  var $p = /* @__PURE__ */ I("<textarea>");
@@ -12714,7 +12716,7 @@ const fo = () => {
12714
12716
  type: "button",
12715
12717
  onClick: r,
12716
12718
  get children() {
12717
- return y(bc, {
12719
+ return y(wc, {
12718
12720
  size: 20
12719
12721
  });
12720
12722
  }
@@ -12928,7 +12930,7 @@ const tm = ({
12928
12930
  var nm = /* @__PURE__ */ I('<div class="absolute bg-black/50 text-white font-bold h-full w-full grid place-content-center z-50">');
12929
12931
  const ho = () => (() => {
12930
12932
  var e = nm();
12931
- return A(e, y(yc, {
12933
+ return A(e, y(bc, {
12932
12934
  size: 45,
12933
12935
  class: "animate-spin"
12934
12936
  })), e;
@@ -13067,7 +13069,7 @@ const fm = ({
13067
13069
  } = se(), s = (e || "default") + "?" + (t ? "&showSettings" : "") + (n ? `&${n}` : "") + (r ? `&margin=${r}` : "") + (o ? `&mode=${o}` : "");
13068
13070
  return i(s), [(() => {
13069
13071
  var a = um();
13070
- return A(a, ql), a;
13072
+ return A(a, Hl), a;
13071
13073
  })(), (() => {
13072
13074
  var a = dm();
13073
13075
  return A(a, y(cm, {})), a;
@@ -13079,7 +13081,7 @@ const fm = ({
13079
13081
  margin: void 0,
13080
13082
  mode: void 0
13081
13083
  }, gm = () => {
13082
- typeof window > "u" || jl("smarttalks-widget", hm, fm);
13084
+ typeof window > "u" || ql("smarttalks-widget", hm, fm);
13083
13085
  };
13084
13086
  gm();
13085
- Ha();
13087
+ Wa();