nnews-react 0.5.0 → 0.5.2

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/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  var E0 = Object.defineProperty;
2
2
  var w0 = (e, t, n) => t in e ? E0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var J = (e, t, n) => w0(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as x, jsxs as U, Fragment as es } from "react/jsx-runtime";
4
+ import { jsx as x, jsxs as U, Fragment as ri } from "react/jsx-runtime";
5
5
  import * as A from "react";
6
6
  import Lt, { createContext as _p, useContext as kp, useMemo as Vn, useRef as ur, useCallback as De, useState as de, useEffect as Cn, createElement as So, createRef as rd, forwardRef as Np } from "react";
7
7
  import * as x0 from "react-dom";
8
8
  import v0 from "react-dom";
9
9
  var Ye = /* @__PURE__ */ ((e) => (e[e.Draft = 0] = "Draft", e[e.Published = 1] = "Published", e[e.Archived = 2] = "Archived", e[e.Scheduled = 3] = "Scheduled", e[e.Review = 4] = "Review", e))(Ye || {}), pn = /* @__PURE__ */ ((e) => (e[e.PlainText = 1] = "PlainText", e[e.Html = 2] = "Html", e[e.MarkDown = 3] = "MarkDown", e))(pn || {});
10
- const ue = (e) => typeof e == "string", Pi = () => {
10
+ const ue = (e) => typeof e == "string", Di = () => {
11
11
  let e, t;
12
12
  const n = new Promise((r, i) => {
13
13
  e = r, t = i;
@@ -17,7 +17,7 @@ const ue = (e) => typeof e == "string", Pi = () => {
17
17
  e.forEach((r) => {
18
18
  t[r] && (n[r] = t[r]);
19
19
  });
20
- }, k0 = /###/g, sd = (e) => e && e.indexOf("###") > -1 ? e.replace(k0, ".") : e, od = (e) => !e || ue(e), Gi = (e, t, n) => {
20
+ }, k0 = /###/g, sd = (e) => e && e.indexOf("###") > -1 ? e.replace(k0, ".") : e, od = (e) => !e || ue(e), Ki = (e, t, n) => {
21
21
  const r = ue(t) ? t.split(".") : t;
22
22
  let i = 0;
23
23
  for (; i < r.length - 1; ) {
@@ -33,26 +33,26 @@ const ue = (e) => typeof e == "string", Pi = () => {
33
33
  const {
34
34
  obj: r,
35
35
  k: i
36
- } = Gi(e, t, Object);
36
+ } = Ki(e, t, Object);
37
37
  if (r !== void 0 || t.length === 1) {
38
38
  r[i] = n;
39
39
  return;
40
40
  }
41
- let s = t[t.length - 1], o = t.slice(0, t.length - 1), a = Gi(e, o, Object);
41
+ let s = t[t.length - 1], o = t.slice(0, t.length - 1), a = Ki(e, o, Object);
42
42
  for (; a.obj === void 0 && o.length; )
43
- s = `${o[o.length - 1]}.${s}`, o = o.slice(0, o.length - 1), a = Gi(e, o, Object), a != null && a.obj && typeof a.obj[`${a.k}.${s}`] < "u" && (a.obj = void 0);
43
+ s = `${o[o.length - 1]}.${s}`, o = o.slice(0, o.length - 1), a = Ki(e, o, Object), a != null && a.obj && typeof a.obj[`${a.k}.${s}`] < "u" && (a.obj = void 0);
44
44
  a.obj[`${a.k}.${s}`] = n;
45
45
  }, N0 = (e, t, n, r) => {
46
46
  const {
47
47
  obj: i,
48
48
  k: s
49
- } = Gi(e, t, Object);
49
+ } = Ki(e, t, Object);
50
50
  i[s] = i[s] || [], i[s].push(n);
51
51
  }, Ao = (e, t) => {
52
52
  const {
53
53
  obj: n,
54
54
  k: r
55
- } = Gi(e, t);
55
+ } = Ki(e, t);
56
56
  if (n && Object.prototype.hasOwnProperty.call(n, r))
57
57
  return n[r];
58
58
  }, S0 = (e, t, n) => {
@@ -1114,7 +1114,7 @@ const z0 = (e) => {
1114
1114
  return ((d = u == null ? void 0 : u.name) == null ? void 0 : d.indexOf("Locize")) > 0 || ((f = (h = u == null ? void 0 : u.constructor) == null ? void 0 : h.name) == null ? void 0 : f.indexOf("Locize")) > 0;
1115
1115
  }));
1116
1116
  };
1117
- class Ki extends Ko {
1117
+ class Wi extends Ko {
1118
1118
  constructor(t = {}, n) {
1119
1119
  if (super(), this.options = md(t), this.services = {}, this.logger = mn, this.modules = {
1120
1120
  external: []
@@ -1167,7 +1167,7 @@ class Ki extends Ko {
1167
1167
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
1168
1168
  this[c] = (...u) => (this.store[c](...u), this);
1169
1169
  });
1170
- const a = Pi(), l = () => {
1170
+ const a = Di(), l = () => {
1171
1171
  const c = (u, d) => {
1172
1172
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(d), n(u, d);
1173
1173
  };
@@ -1195,7 +1195,7 @@ class Ki extends Ko {
1195
1195
  r(null);
1196
1196
  }
1197
1197
  reloadResources(t, n, r) {
1198
- const i = Pi();
1198
+ const i = Di();
1199
1199
  return typeof t == "function" && (r = t, t = void 0), typeof n == "function" && (r = n, n = void 0), t || (t = this.languages), n || (n = this.options.ns), r || (r = Gs), this.services.backendConnector.reload(t, n, (s) => {
1200
1200
  i.resolve(), r(s);
1201
1201
  }), i;
@@ -1219,7 +1219,7 @@ class Ki extends Ko {
1219
1219
  }
1220
1220
  changeLanguage(t, n) {
1221
1221
  this.isLanguageChangingTo = t;
1222
- const r = Pi();
1222
+ const r = Di();
1223
1223
  this.emit("languageChanging", t);
1224
1224
  const i = (a) => {
1225
1225
  this.language = a, this.languages = this.services.languageUtils.toResolveHierarchy(a), this.resolvedLanguage = void 0, this.setResolvedLanguage(a);
@@ -1282,7 +1282,7 @@ class Ki extends Ko {
1282
1282
  return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, t) && (!i || o(s, t)));
1283
1283
  }
1284
1284
  loadNamespaces(t, n) {
1285
- const r = Pi();
1285
+ const r = Di();
1286
1286
  return this.options.ns ? (ue(t) && (t = [t]), t.forEach((i) => {
1287
1287
  this.options.ns.indexOf(i) < 0 && this.options.ns.push(i);
1288
1288
  }), this.loadResources((i) => {
@@ -1290,7 +1290,7 @@ class Ki extends Ko {
1290
1290
  }), r) : (n && n(), Promise.resolve());
1291
1291
  }
1292
1292
  loadLanguages(t, n) {
1293
- const r = Pi();
1293
+ const r = Di();
1294
1294
  ue(t) && (t = [t]);
1295
1295
  const i = this.options.preload || [], s = t.filter((o) => i.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
1296
1296
  return s.length ? (this.options.preload = i.concat(s), this.loadResources((o) => {
@@ -1312,8 +1312,8 @@ class Ki extends Ko {
1312
1312
  return t.toLowerCase().indexOf("-latn") > 1 ? "ltr" : n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1313
1313
  }
1314
1314
  static createInstance(t = {}, n) {
1315
- const r = new Ki(t, n);
1316
- return r.createInstance = Ki.createInstance, r;
1315
+ const r = new Wi(t, n);
1316
+ return r.createInstance = Wi.createInstance, r;
1317
1317
  }
1318
1318
  cloneInstance(t = {}, n = Gs) {
1319
1319
  const r = t.forkResourceStore;
@@ -1322,7 +1322,7 @@ class Ki extends Ko {
1322
1322
  ...this.options,
1323
1323
  ...t,
1324
1324
  isClone: !0
1325
- }, s = new Ki(i);
1325
+ }, s = new Wi(i);
1326
1326
  if ((t.debug !== void 0 || t.prefix !== void 0) && (s.logger = s.logger.clone(t)), ["store", "services", "language"].forEach((a) => {
1327
1327
  s[a] = this[a];
1328
1328
  }), s.services = {
@@ -1364,7 +1364,7 @@ class Ki extends Ko {
1364
1364
  };
1365
1365
  }
1366
1366
  }
1367
- const gt = Ki.createInstance();
1367
+ const gt = Wi.createInstance();
1368
1368
  gt.createInstance;
1369
1369
  gt.dir;
1370
1370
  gt.init;
@@ -2056,10 +2056,10 @@ function P5({
2056
2056
  {
2057
2057
  className: `w-full h-[250px] bg-gray-200 dark:bg-gray-700 overflow-hidden ${r ? "cursor-pointer" : ""}`,
2058
2058
  onClick: () => r == null ? void 0 : r(d),
2059
- children: d.imageName ? /* @__PURE__ */ x(
2059
+ children: d.imageUrl || d.imageName ? /* @__PURE__ */ x(
2060
2060
  "img",
2061
2061
  {
2062
- src: d.imageName,
2062
+ src: d.imageUrl || d.imageName,
2063
2063
  alt: d.title,
2064
2064
  className: "w-full h-[250px] object-cover hover:scale-105 transition-transform duration-300"
2065
2065
  }
@@ -2363,7 +2363,7 @@ eu.prototype.defined = !0;
2363
2363
  function kd(e, t, n) {
2364
2364
  n && (e[t] = n);
2365
2365
  }
2366
- function fi(e) {
2366
+ function hi(e) {
2367
2367
  const t = {}, n = {};
2368
2368
  for (const [r, i] of Object.entries(e.properties)) {
2369
2369
  const s = new eu(
@@ -2376,7 +2376,7 @@ function fi(e) {
2376
2376
  }
2377
2377
  return new gs(t, n, e.space);
2378
2378
  }
2379
- const Bp = fi({
2379
+ const Bp = hi({
2380
2380
  properties: {
2381
2381
  ariaActiveDescendant: null,
2382
2382
  ariaAtomic: qe,
@@ -2438,7 +2438,7 @@ function Fp(e, t) {
2438
2438
  function $p(e, t) {
2439
2439
  return Fp(e, t.toLowerCase());
2440
2440
  }
2441
- const bE = fi({
2441
+ const bE = hi({
2442
2442
  attributes: {
2443
2443
  acceptcharset: "accept-charset",
2444
2444
  classname: "class",
@@ -2799,7 +2799,7 @@ const bE = fi({
2799
2799
  },
2800
2800
  space: "html",
2801
2801
  transform: $p
2802
- }), yE = fi({
2802
+ }), yE = hi({
2803
2803
  attributes: {
2804
2804
  accentHeight: "accent-height",
2805
2805
  alignmentBaseline: "alignment-baseline",
@@ -3358,7 +3358,7 @@ const bE = fi({
3358
3358
  },
3359
3359
  space: "svg",
3360
3360
  transform: Fp
3361
- }), Up = fi({
3361
+ }), Up = hi({
3362
3362
  properties: {
3363
3363
  xLinkActuate: null,
3364
3364
  xLinkArcRole: null,
@@ -3372,12 +3372,12 @@ const bE = fi({
3372
3372
  transform(e, t) {
3373
3373
  return "xlink:" + t.slice(5).toLowerCase();
3374
3374
  }
3375
- }), qp = fi({
3375
+ }), qp = hi({
3376
3376
  attributes: { xmlnsxlink: "xmlns:xlink" },
3377
3377
  properties: { xmlnsXLink: null, xmlns: null },
3378
3378
  space: "xmlns",
3379
3379
  transform: $p
3380
- }), zp = fi({
3380
+ }), zp = hi({
3381
3381
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
3382
3382
  space: "xml",
3383
3383
  transform(e, t) {
@@ -3576,7 +3576,7 @@ function t1(e) {
3576
3576
  if (t && n)
3577
3577
  return { start: t, end: n };
3578
3578
  }
3579
- function Wi(e) {
3579
+ function Vi(e) {
3580
3580
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Rd(e.position) : "start" in e || "end" in e ? Rd(e) : "line" in e || "column" in e ? hc(e) : "";
3581
3581
  }
3582
3582
  function hc(e) {
@@ -3659,7 +3659,7 @@ class ct extends Error {
3659
3659
  l && (s.place = l.position);
3660
3660
  }
3661
3661
  const a = s.place && "start" in s.place ? s.place.start : s.place;
3662
- this.ancestors = s.ancestors || void 0, this.cause = s.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = Wi(s.place) || "1:1", this.place = s.place || void 0, this.reason = this.message, this.ruleId = s.ruleId || void 0, this.source = s.source || void 0, this.stack = o && s.cause && typeof s.cause.stack == "string" ? s.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
3662
+ this.ancestors = s.ancestors || void 0, this.cause = s.cause || void 0, this.column = a ? a.column : void 0, this.fatal = void 0, this.file = "", this.message = i, this.line = a ? a.line : void 0, this.name = Vi(s.place) || "1:1", this.place = s.place || void 0, this.reason = this.message, this.ruleId = s.ruleId || void 0, this.source = s.source || void 0, this.stack = o && s.cause && typeof s.cause.stack == "string" ? s.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
3663
3663
  }
3664
3664
  }
3665
3665
  ct.prototype.file = "";
@@ -4107,7 +4107,7 @@ function Jn(e) {
4107
4107
  return n !== null && n > -1 && e.test(String.fromCharCode(n));
4108
4108
  }
4109
4109
  }
4110
- function hi(e) {
4110
+ function pi(e) {
4111
4111
  const t = [];
4112
4112
  let n = -1, r = 0, i = 0;
4113
4113
  for (; ++n < e.length; ) {
@@ -4289,7 +4289,7 @@ function L1(e) {
4289
4289
  function M1(e, t, n) {
4290
4290
  return we(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
4291
4291
  }
4292
- function ri(e) {
4292
+ function ii(e) {
4293
4293
  if (e === null || Ce(e) || gr(e))
4294
4294
  return 1;
4295
4295
  if (Vo(e))
@@ -4365,7 +4365,7 @@ function P1(e, t) {
4365
4365
  return e;
4366
4366
  }
4367
4367
  function D1(e, t) {
4368
- const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ri(r);
4368
+ const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ii(r);
4369
4369
  let s;
4370
4370
  return o;
4371
4371
  function o(l) {
@@ -4374,7 +4374,7 @@ function D1(e, t) {
4374
4374
  function a(l) {
4375
4375
  if (l === s)
4376
4376
  return e.consume(l), a;
4377
- const c = e.exit("attentionSequence"), u = ri(l), d = !u || u === 2 && i || n.includes(l), h = !i || i === 2 && u || n.includes(r);
4377
+ const c = e.exit("attentionSequence"), u = ii(l), d = !u || u === 2 && i || n.includes(l), h = !i || i === 2 && u || n.includes(r);
4378
4378
  return c._open = !!(s === 42 ? d : d && (i || !h)), c._close = !!(s === 42 ? h : h && (u || !d)), t(l);
4379
4379
  }
4380
4380
  }
@@ -4756,7 +4756,7 @@ class ew {
4756
4756
  const i = n || 0;
4757
4757
  this.setCursor(Math.trunc(t));
4758
4758
  const s = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
4759
- return r && Di(this.left, r), s.reverse();
4759
+ return r && Bi(this.left, r), s.reverse();
4760
4760
  }
4761
4761
  /**
4762
4762
  * Remove and return the highest-numbered item in the array, so
@@ -4791,7 +4791,7 @@ class ew {
4791
4791
  * Nothing.
4792
4792
  */
4793
4793
  pushMany(t) {
4794
- this.setCursor(Number.POSITIVE_INFINITY), Di(this.left, t);
4794
+ this.setCursor(Number.POSITIVE_INFINITY), Bi(this.left, t);
4795
4795
  }
4796
4796
  /**
4797
4797
  * Inserts a single item to the low-numbered side of the array;
@@ -4815,7 +4815,7 @@ class ew {
4815
4815
  * Nothing.
4816
4816
  */
4817
4817
  unshiftMany(t) {
4818
- this.setCursor(0), Di(this.right, t.reverse());
4818
+ this.setCursor(0), Bi(this.right, t.reverse());
4819
4819
  }
4820
4820
  /**
4821
4821
  * Move the cursor to a specific position in the array. Requires
@@ -4833,14 +4833,14 @@ class ew {
4833
4833
  if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
4834
4834
  if (t < this.left.length) {
4835
4835
  const n = this.left.splice(t, Number.POSITIVE_INFINITY);
4836
- Di(this.right, n.reverse());
4836
+ Bi(this.right, n.reverse());
4837
4837
  } else {
4838
4838
  const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
4839
- Di(this.left, n.reverse());
4839
+ Bi(this.left, n.reverse());
4840
4840
  }
4841
4841
  }
4842
4842
  }
4843
- function Di(e, t) {
4843
+ function Bi(e, t) {
4844
4844
  let n = 0;
4845
4845
  if (t.length < 1e4)
4846
4846
  e.push(...t);
@@ -5013,7 +5013,7 @@ function ig(e, t, n, r, i, s) {
5013
5013
  return h === o || h === 92 ? (e.consume(h), u) : u(h);
5014
5014
  }
5015
5015
  }
5016
- function Vi(e, t) {
5016
+ function Yi(e, t) {
5017
5017
  let n;
5018
5018
  return r;
5019
5019
  function r(i) {
@@ -5050,7 +5050,7 @@ function cw(e, t, n) {
5050
5050
  return i = Xt(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), l) : n(f);
5051
5051
  }
5052
5052
  function l(f) {
5053
- return Ce(f) ? Vi(e, c)(f) : c(f);
5053
+ return Ce(f) ? Yi(e, c)(f) : c(f);
5054
5054
  }
5055
5055
  function c(f) {
5056
5056
  return ng(
@@ -5078,7 +5078,7 @@ function cw(e, t, n) {
5078
5078
  function uw(e, t, n) {
5079
5079
  return r;
5080
5080
  function r(a) {
5081
- return Ce(a) ? Vi(e, i)(a) : n(a);
5081
+ return Ce(a) ? Yi(e, i)(a) : n(a);
5082
5082
  }
5083
5083
  function i(a) {
5084
5084
  return ig(e, s, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(a);
@@ -5539,13 +5539,13 @@ function Iw(e, t, n) {
5539
5539
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), i;
5540
5540
  }
5541
5541
  function i(d) {
5542
- return Ce(d) ? Vi(e, s)(d) : s(d);
5542
+ return Ce(d) ? Yi(e, s)(d) : s(d);
5543
5543
  }
5544
5544
  function s(d) {
5545
5545
  return d === 41 ? u(d) : ng(e, o, a, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d);
5546
5546
  }
5547
5547
  function o(d) {
5548
- return Ce(d) ? Vi(e, l)(d) : u(d);
5548
+ return Ce(d) ? Yi(e, l)(d) : u(d);
5549
5549
  }
5550
5550
  function a(d) {
5551
5551
  return n(d);
@@ -5554,7 +5554,7 @@ function Iw(e, t, n) {
5554
5554
  return d === 34 || d === 39 || d === 40 ? ig(e, c, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : u(d);
5555
5555
  }
5556
5556
  function c(d) {
5557
- return Ce(d) ? Vi(e, u)(d) : u(d);
5557
+ return Ce(d) ? Yi(e, u)(d) : u(d);
5558
5558
  }
5559
5559
  function u(d) {
5560
5560
  return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : n(d);
@@ -6488,7 +6488,7 @@ function vx(e) {
6488
6488
  const V = this.stack.pop(), Q = this.tokenStack.pop();
6489
6489
  if (Q)
6490
6490
  Q[0].type !== O.type && (M ? M.call(this, O, Q[0]) : (Q[1] || Hd).call(this, O, Q[0]));
6491
- else throw new Error("Cannot close `" + O.type + "` (" + Wi({
6491
+ else throw new Error("Cannot close `" + O.type + "` (" + Vi({
6492
6492
  start: O.start,
6493
6493
  end: O.end
6494
6494
  }) + "): it’s not open");
@@ -6812,13 +6812,13 @@ function _x(e, t) {
6812
6812
  }
6813
6813
  }
6814
6814
  function Hd(e, t) {
6815
- throw e ? new Error("Cannot close `" + e.type + "` (" + Wi({
6815
+ throw e ? new Error("Cannot close `" + e.type + "` (" + Vi({
6816
6816
  start: e.start,
6817
6817
  end: e.end
6818
- }) + "): a different token (`" + t.type + "`, " + Wi({
6818
+ }) + "): a different token (`" + t.type + "`, " + Vi({
6819
6819
  start: t.start,
6820
6820
  end: t.end
6821
- }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Wi({
6821
+ }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Vi({
6822
6822
  start: t.start,
6823
6823
  end: t.end
6824
6824
  }) + ") is still open");
@@ -6883,7 +6883,7 @@ function Cx(e, t) {
6883
6883
  return e.patch(t, n), e.applyData(t, n);
6884
6884
  }
6885
6885
  function Ox(e, t) {
6886
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = hi(r.toLowerCase()), s = e.footnoteOrder.indexOf(r);
6886
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = pi(r.toLowerCase()), s = e.footnoteOrder.indexOf(r);
6887
6887
  let o, a = e.footnoteCounts.get(r);
6888
6888
  a === void 0 ? (a = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = s + 1, a += 1, e.footnoteCounts.set(r, a);
6889
6889
  const l = {
@@ -6935,13 +6935,13 @@ function Lx(e, t) {
6935
6935
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
6936
6936
  if (!r)
6937
6937
  return cg(e, t);
6938
- const i = { src: hi(r.url || ""), alt: t.alt };
6938
+ const i = { src: pi(r.url || ""), alt: t.alt };
6939
6939
  r.title !== null && r.title !== void 0 && (i.title = r.title);
6940
6940
  const s = { type: "element", tagName: "img", properties: i, children: [] };
6941
6941
  return e.patch(t, s), e.applyData(t, s);
6942
6942
  }
6943
6943
  function Mx(e, t) {
6944
- const n = { src: hi(t.url) };
6944
+ const n = { src: pi(t.url) };
6945
6945
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
6946
6946
  const r = { type: "element", tagName: "img", properties: n, children: [] };
6947
6947
  return e.patch(t, r), e.applyData(t, r);
@@ -6961,7 +6961,7 @@ function Dx(e, t) {
6961
6961
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
6962
6962
  if (!r)
6963
6963
  return cg(e, t);
6964
- const i = { href: hi(r.url || "") };
6964
+ const i = { href: pi(r.url || "") };
6965
6965
  r.title !== null && r.title !== void 0 && (i.title = r.title);
6966
6966
  const s = {
6967
6967
  type: "element",
@@ -6972,7 +6972,7 @@ function Dx(e, t) {
6972
6972
  return e.patch(t, s), e.applyData(t, s);
6973
6973
  }
6974
6974
  function Bx(e, t) {
6975
- const n = { href: hi(t.url) };
6975
+ const n = { href: pi(t.url) };
6976
6976
  t.title !== null && t.title !== void 0 && (n.title = t.title);
6977
6977
  const r = {
6978
6978
  type: "element",
@@ -7188,7 +7188,7 @@ const Zx = {
7188
7188
  };
7189
7189
  function Ks() {
7190
7190
  }
7191
- const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, hg = 8, Wd = typeof self == "object" ? self : globalThis, Xx = (e, t) => {
7191
+ const dg = -1, Zo = 0, Zi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, hg = 8, Wd = typeof self == "object" ? self : globalThis, Xx = (e, t) => {
7192
7192
  const n = (i, s) => (e.set(s, i), i), r = (i) => {
7193
7193
  if (e.has(i))
7194
7194
  return e.get(i);
@@ -7197,7 +7197,7 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7197
7197
  case Zo:
7198
7198
  case dg:
7199
7199
  return n(o, i);
7200
- case Yi: {
7200
+ case Zi: {
7201
7201
  const a = n([], i);
7202
7202
  for (const l of o)
7203
7203
  a.push(r(l));
@@ -7245,14 +7245,14 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7245
7245
  return n(new Wd[s](o), i);
7246
7246
  };
7247
7247
  return r;
7248
- }, Vd = (e) => Xx(/* @__PURE__ */ new Map(), e)(0), Br = "", { toString: Qx } = {}, { keys: Jx } = Object, Bi = (e) => {
7248
+ }, Vd = (e) => Xx(/* @__PURE__ */ new Map(), e)(0), Br = "", { toString: Qx } = {}, { keys: Jx } = Object, Fi = (e) => {
7249
7249
  const t = typeof e;
7250
7250
  if (t !== "object" || !e)
7251
7251
  return [Zo, t];
7252
7252
  const n = Qx.call(e).slice(8, -1);
7253
7253
  switch (n) {
7254
7254
  case "Array":
7255
- return [Yi, Br];
7255
+ return [Zi, Br];
7256
7256
  case "Object":
7257
7257
  return [Ro, Br];
7258
7258
  case "Date":
@@ -7264,9 +7264,9 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7264
7264
  case "Set":
7265
7265
  return [fu, Br];
7266
7266
  case "DataView":
7267
- return [Yi, n];
7267
+ return [Zi, n];
7268
7268
  }
7269
- return n.includes("Array") ? [Yi, n] : n.includes("Error") ? [fg, n] : [Ro, n];
7269
+ return n.includes("Array") ? [Zi, n] : n.includes("Error") ? [fg, n] : [Ro, n];
7270
7270
  }, Ws = ([e, t]) => e === Zo && (t === "function" || t === "symbol"), ev = (e, t, n, r) => {
7271
7271
  const i = (o, a) => {
7272
7272
  const l = r.push(o) - 1;
@@ -7274,7 +7274,7 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7274
7274
  }, s = (o) => {
7275
7275
  if (n.has(o))
7276
7276
  return n.get(o);
7277
- let [a, l] = Bi(o);
7277
+ let [a, l] = Fi(o);
7278
7278
  switch (a) {
7279
7279
  case Zo: {
7280
7280
  let u = o;
@@ -7293,7 +7293,7 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7293
7293
  }
7294
7294
  return i([a, u], o);
7295
7295
  }
7296
- case Yi: {
7296
+ case Zi: {
7297
7297
  if (l) {
7298
7298
  let h = o;
7299
7299
  return l === "DataView" ? h = new Uint8Array(o.buffer) : l === "ArrayBuffer" && (h = new Uint8Array(o)), i([l, [...h]], o);
@@ -7317,7 +7317,7 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7317
7317
  return s(o.toJSON());
7318
7318
  const u = [], d = i([a, u], o);
7319
7319
  for (const h of Jx(o))
7320
- (e || !Ws(Bi(o[h]))) && u.push([s(h), s(o[h])]);
7320
+ (e || !Ws(Fi(o[h]))) && u.push([s(h), s(o[h])]);
7321
7321
  return d;
7322
7322
  }
7323
7323
  case cu:
@@ -7329,13 +7329,13 @@ const dg = -1, Zo = 0, Yi = 1, Ro = 2, cu = 3, uu = 4, du = 5, fu = 6, fg = 7, h
7329
7329
  case du: {
7330
7330
  const u = [], d = i([a, u], o);
7331
7331
  for (const [h, f] of o)
7332
- (e || !(Ws(Bi(h)) || Ws(Bi(f)))) && u.push([s(h), s(f)]);
7332
+ (e || !(Ws(Fi(h)) || Ws(Fi(f)))) && u.push([s(h), s(f)]);
7333
7333
  return d;
7334
7334
  }
7335
7335
  case fu: {
7336
7336
  const u = [], d = i([a, u], o);
7337
7337
  for (const h of o)
7338
- (e || !Ws(Bi(h))) && u.push(s(h));
7338
+ (e || !Ws(Fi(h))) && u.push(s(h));
7339
7339
  return d;
7340
7340
  }
7341
7341
  }
@@ -7373,7 +7373,7 @@ function rv(e) {
7373
7373
  );
7374
7374
  if (!c)
7375
7375
  continue;
7376
- const u = e.all(c), d = String(c.identifier).toUpperCase(), h = hi(d.toLowerCase());
7376
+ const u = e.all(c), d = String(c.identifier).toUpperCase(), h = pi(d.toLowerCase());
7377
7377
  let f = 0;
7378
7378
  const p = [], g = e.footnoteCounts.get(d);
7379
7379
  for (; g !== void 0 && ++f <= g; ) {
@@ -9087,7 +9087,7 @@ function n_(e, t) {
9087
9087
  e.type === "root" ? e.children : [e]
9088
9088
  )
9089
9089
  }), Zv(e, c), o1(e, {
9090
- Fragment: es,
9090
+ Fragment: ri,
9091
9091
  // @ts-expect-error
9092
9092
  // React components are allowed to return numbers,
9093
9093
  // but not according to the types in hast-util-to-jsx-runtime
@@ -9812,7 +9812,7 @@ function rs(e) {
9812
9812
  return "&#x" + e.toString(16).toUpperCase() + ";";
9813
9813
  }
9814
9814
  function Lo(e, t, n) {
9815
- const r = ri(e), i = ri(t);
9815
+ const r = ii(e), i = ii(t);
9816
9816
  return r === void 0 ? i === void 0 ? (
9817
9817
  // Letter inside:
9818
9818
  // we have to encode *both* letters for `_` as it is looser.
@@ -11148,11 +11148,11 @@ function NN(e) {
11148
11148
  return c === 126 && u[u.length - 1][1].type !== "characterEscape" ? l(p) : (o.enter("strikethroughSequenceTemporary"), f(p));
11149
11149
  }
11150
11150
  function f(p) {
11151
- const g = ri(c);
11151
+ const g = ii(c);
11152
11152
  if (p === 126)
11153
11153
  return d > 1 ? l(p) : (o.consume(p), d++, f);
11154
11154
  if (d < 2 && !n) return l(p);
11155
- const b = o.exit("strikethroughSequenceTemporary"), y = ri(p);
11155
+ const b = o.exit("strikethroughSequenceTemporary"), y = ii(p);
11156
11156
  return b._open = !y || y === 2 && !!g, b._close = !g || g === 2 && !!y, a(p);
11157
11157
  }
11158
11158
  }
@@ -22229,7 +22229,7 @@ function aA(e) {
22229
22229
  function lm(e) {
22230
22230
  return e ? typeof e == "string" ? e : e.source : null;
22231
22231
  }
22232
- function Fi(e) {
22232
+ function $i(e) {
22233
22233
  return Ae("(?=", e, ")");
22234
22234
  }
22235
22235
  function Ae(...e) {
@@ -22741,7 +22741,7 @@ function gA(e) {
22741
22741
  ] }
22742
22742
  }, X = {
22743
22743
  scope: "keyword",
22744
- match: Ae(/@/, ft(...hA), Fi(ft(/\(/, /\s+/)))
22744
+ match: Ae(/@/, ft(...hA), $i(ft(/\(/, /\s+/)))
22745
22745
  }, _ = {
22746
22746
  scope: "meta",
22747
22747
  match: Ae(/@/, dn)
@@ -22750,7 +22750,7 @@ function gA(e) {
22750
22750
  X,
22751
22751
  _
22752
22752
  ], re = {
22753
- match: Fi(/\b[A-Z]/),
22753
+ match: $i(/\b[A-Z]/),
22754
22754
  relevance: 0,
22755
22755
  contains: [
22756
22756
  {
@@ -22776,7 +22776,7 @@ function gA(e) {
22776
22776
  },
22777
22777
  {
22778
22778
  // Protocol composition
22779
- match: Ae(/\s+&\s+/, Fi(eo)),
22779
+ match: Ae(/\s+&\s+/, $i(eo)),
22780
22780
  relevance: 0
22781
22781
  }
22782
22782
  ]
@@ -22826,8 +22826,8 @@ function gA(e) {
22826
22826
  ]
22827
22827
  }, Xe = {
22828
22828
  begin: ft(
22829
- Fi(Ae(dn, /\s*:/)),
22830
- Fi(Ae(dn, /\s+/, dn, /\s*:/))
22829
+ $i(Ae(dn, /\s*:/)),
22830
+ $i(Ae(dn, /\s+/, dn, /\s*:/))
22831
22831
  ),
22832
22832
  end: /:/,
22833
22833
  relevance: 0,
@@ -25490,11 +25490,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), _ = I, X = z), j ===
25490
25490
  for (const I in to)
25491
25491
  typeof to[I] == "object" && Em(to[I]);
25492
25492
  return Object.assign(e, to), e;
25493
- }, ii = Om({});
25494
- ii.newInstance = () => Om({});
25495
- var gT = ii;
25496
- ii.HighlightJS = ii;
25497
- ii.default = ii;
25493
+ }, si = Om({});
25494
+ si.newInstance = () => Om({});
25495
+ var gT = si;
25496
+ si.HighlightJS = si;
25497
+ si.default = si;
25498
25498
  const mT = /* @__PURE__ */ ps(gT), $f = {}, bT = "hljs-";
25499
25499
  function yT(e) {
25500
25500
  const t = mT.newInstance();
@@ -25888,7 +25888,7 @@ function D5({
25888
25888
  showActions: r = !1
25889
25889
  }) {
25890
25890
  const { t: i } = en();
25891
- return /* @__PURE__ */ U("div", { className: "mx-auto max-w-4xl", children: [
25891
+ return /* @__PURE__ */ U(ri, { children: [
25892
25892
  (t || r && n) && /* @__PURE__ */ U("div", { className: "mb-6 flex items-center justify-between", children: [
25893
25893
  t && /* @__PURE__ */ U(
25894
25894
  "button",
@@ -25947,7 +25947,7 @@ function D5({
25947
25947
  }
25948
25948
  )
25949
25949
  ] }),
25950
- /* @__PURE__ */ U("article", { className: "rounded-xl bg-white dark:bg-gray-800 p-8 shadow-md border border-gray-200 dark:border-gray-700", children: [
25950
+ /* @__PURE__ */ U("article", { children: [
25951
25951
  /* @__PURE__ */ U("header", { className: "border-b border-gray-200 dark:border-gray-700 pb-6", children: [
25952
25952
  /* @__PURE__ */ x("h1", { className: "text-4xl font-bold text-gray-900 dark:text-gray-100", children: e.title }),
25953
25953
  /* @__PURE__ */ U("div", { className: "mt-6 flex flex-wrap items-center gap-4 text-sm text-gray-500 dark:text-gray-400", children: [
@@ -26016,23 +26016,23 @@ function D5({
26016
26016
  ] })
26017
26017
  ] });
26018
26018
  }
26019
- var Mm = typeof global == "object" && global && global.Object === Object && global, IT = typeof self == "object" && self && self.Object === Object && self, vn = Mm || IT || Function("return this")(), Xn = vn.Symbol, Pm = Object.prototype, LT = Pm.hasOwnProperty, MT = Pm.toString, $i = Xn ? Xn.toStringTag : void 0;
26019
+ var Mm = typeof global == "object" && global && global.Object === Object && global, IT = typeof self == "object" && self && self.Object === Object && self, vn = Mm || IT || Function("return this")(), Xn = vn.Symbol, Pm = Object.prototype, LT = Pm.hasOwnProperty, MT = Pm.toString, Ui = Xn ? Xn.toStringTag : void 0;
26020
26020
  function PT(e) {
26021
- var t = LT.call(e, $i), n = e[$i];
26021
+ var t = LT.call(e, Ui), n = e[Ui];
26022
26022
  try {
26023
- e[$i] = void 0;
26023
+ e[Ui] = void 0;
26024
26024
  var r = !0;
26025
26025
  } catch {
26026
26026
  }
26027
26027
  var i = MT.call(e);
26028
- return r && (t ? e[$i] = n : delete e[$i]), i;
26028
+ return r && (t ? e[Ui] = n : delete e[Ui]), i;
26029
26029
  }
26030
26030
  var DT = Object.prototype, BT = DT.toString;
26031
26031
  function FT(e) {
26032
26032
  return BT.call(e);
26033
26033
  }
26034
26034
  var $T = "[object Null]", UT = "[object Undefined]", qf = Xn ? Xn.toStringTag : void 0;
26035
- function pi(e) {
26035
+ function gi(e) {
26036
26036
  return e == null ? e === void 0 ? UT : $T : qf && qf in Object(e) ? PT(e) : FT(e);
26037
26037
  }
26038
26038
  function On(e) {
@@ -26050,7 +26050,7 @@ var qT = "[object AsyncFunction]", zT = "[object Function]", HT = "[object Gener
26050
26050
  function ku(e) {
26051
26051
  if (!er(e))
26052
26052
  return !1;
26053
- var t = pi(e);
26053
+ var t = gi(e);
26054
26054
  return t == zT || t == HT || t == qT || t == jT;
26055
26055
  }
26056
26056
  var Ll = vn["__core-js_shared__"], zf = function() {
@@ -26238,7 +26238,7 @@ function NC(e, t) {
26238
26238
  }
26239
26239
  var SC = "[object Arguments]";
26240
26240
  function Gf(e) {
26241
- return On(e) && pi(e) == SC;
26241
+ return On(e) && gi(e) == SC;
26242
26242
  }
26243
26243
  var Um = Object.prototype, AC = Um.hasOwnProperty, TC = Um.propertyIsEnumerable, _c = Gf(/* @__PURE__ */ function() {
26244
26244
  return arguments;
@@ -26252,20 +26252,20 @@ var qm = typeof exports == "object" && exports && !exports.nodeType && exports,
26252
26252
  Me[WC] = Me[VC] = Me[YC] = Me[ZC] = Me[XC] = Me[QC] = Me[JC] = Me[eO] = Me[tO] = !0;
26253
26253
  Me[IC] = Me[LC] = Me[GC] = Me[MC] = Me[KC] = Me[PC] = Me[DC] = Me[BC] = Me[FC] = Me[$C] = Me[UC] = Me[qC] = Me[zC] = Me[HC] = Me[jC] = !1;
26254
26254
  function nO(e) {
26255
- return On(e) && $m(e.length) && !!Me[pi(e)];
26255
+ return On(e) && $m(e.length) && !!Me[gi(e)];
26256
26256
  }
26257
26257
  function Au(e) {
26258
26258
  return function(t) {
26259
26259
  return e(t);
26260
26260
  };
26261
26261
  }
26262
- var zm = typeof exports == "object" && exports && !exports.nodeType && exports, Zi = zm && typeof module == "object" && module && !module.nodeType && module, rO = Zi && Zi.exports === zm, Ml = rO && Mm.process, si = function() {
26262
+ var zm = typeof exports == "object" && exports && !exports.nodeType && exports, Xi = zm && typeof module == "object" && module && !module.nodeType && module, rO = Xi && Xi.exports === zm, Ml = rO && Mm.process, oi = function() {
26263
26263
  try {
26264
- var e = Zi && Zi.require && Zi.require("util").types;
26264
+ var e = Xi && Xi.require && Xi.require("util").types;
26265
26265
  return e || Ml && Ml.binding && Ml.binding("util");
26266
26266
  } catch {
26267
26267
  }
26268
- }(), Vf = si && si.isTypedArray, Tu = Vf ? Au(Vf) : nO, iO = Object.prototype, sO = iO.hasOwnProperty;
26268
+ }(), Vf = oi && oi.isTypedArray, Tu = Vf ? Au(Vf) : nO, iO = Object.prototype, sO = iO.hasOwnProperty;
26269
26269
  function Hm(e, t) {
26270
26270
  var n = mr(e), r = !n && _c(e), i = !n && !r && os(e), s = !n && !r && !i && Tu(e), o = n || r || i || s, a = o ? NC(e.length, String) : [], l = a.length;
26271
26271
  for (var c in e)
@@ -26440,7 +26440,7 @@ function $O(e, t) {
26440
26440
  }
26441
26441
  var Km = jm(Object.getPrototypeOf, Object), UO = "[object Object]", qO = Function.prototype, zO = Object.prototype, Wm = qO.toString, HO = zO.hasOwnProperty, jO = Wm.call(Object);
26442
26442
  function GO(e) {
26443
- if (!On(e) || pi(e) != UO)
26443
+ if (!On(e) || gi(e) != UO)
26444
26444
  return !1;
26445
26445
  var t = Km(e);
26446
26446
  if (t === null)
@@ -26510,9 +26510,9 @@ function iR(e, t, n) {
26510
26510
  function kc(e) {
26511
26511
  return iR(e, uO, rR);
26512
26512
  }
26513
- var Nc = Nr(vn, "DataView"), Sc = Nr(vn, "Promise"), Ac = Nr(vn, "Set"), Jf = "[object Map]", sR = "[object Object]", eh = "[object Promise]", th = "[object Set]", nh = "[object WeakMap]", rh = "[object DataView]", oR = kr(Nc), aR = kr(ls), lR = kr(Sc), cR = kr(Ac), uR = kr(vc), Yt = pi;
26513
+ var Nc = Nr(vn, "DataView"), Sc = Nr(vn, "Promise"), Ac = Nr(vn, "Set"), Jf = "[object Map]", sR = "[object Object]", eh = "[object Promise]", th = "[object Set]", nh = "[object WeakMap]", rh = "[object DataView]", oR = kr(Nc), aR = kr(ls), lR = kr(Sc), cR = kr(Ac), uR = kr(vc), Yt = gi;
26514
26514
  (Nc && Yt(new Nc(new ArrayBuffer(1))) != rh || ls && Yt(new ls()) != Jf || Sc && Yt(Sc.resolve()) != eh || Ac && Yt(new Ac()) != th || vc && Yt(new vc()) != nh) && (Yt = function(e) {
26515
- var t = pi(e), n = t == sR ? e.constructor : void 0, r = n ? kr(n) : "";
26515
+ var t = gi(e), n = t == sR ? e.constructor : void 0, r = n ? kr(n) : "";
26516
26516
  if (r)
26517
26517
  switch (r) {
26518
26518
  case oR:
@@ -26596,11 +26596,11 @@ var FR = "[object Map]";
26596
26596
  function $R(e) {
26597
26597
  return On(e) && Yt(e) == FR;
26598
26598
  }
26599
- var oh = si && si.isMap, UR = oh ? Au(oh) : $R, qR = "[object Set]";
26599
+ var oh = oi && oi.isMap, UR = oh ? Au(oh) : $R, qR = "[object Set]";
26600
26600
  function zR(e) {
26601
26601
  return On(e) && Yt(e) == qR;
26602
26602
  }
26603
- var ah = si && si.isSet, HR = ah ? Au(ah) : zR, jR = 1, Qm = "[object Arguments]", GR = "[object Array]", KR = "[object Boolean]", WR = "[object Date]", VR = "[object Error]", Jm = "[object Function]", YR = "[object GeneratorFunction]", ZR = "[object Map]", XR = "[object Number]", eb = "[object Object]", QR = "[object RegExp]", JR = "[object Set]", eI = "[object String]", tI = "[object Symbol]", nI = "[object WeakMap]", rI = "[object ArrayBuffer]", iI = "[object DataView]", sI = "[object Float32Array]", oI = "[object Float64Array]", aI = "[object Int8Array]", lI = "[object Int16Array]", cI = "[object Int32Array]", uI = "[object Uint8Array]", dI = "[object Uint8ClampedArray]", fI = "[object Uint16Array]", hI = "[object Uint32Array]", Re = {};
26603
+ var ah = oi && oi.isSet, HR = ah ? Au(ah) : zR, jR = 1, Qm = "[object Arguments]", GR = "[object Array]", KR = "[object Boolean]", WR = "[object Date]", VR = "[object Error]", Jm = "[object Function]", YR = "[object GeneratorFunction]", ZR = "[object Map]", XR = "[object Number]", eb = "[object Object]", QR = "[object RegExp]", JR = "[object Set]", eI = "[object String]", tI = "[object Symbol]", nI = "[object WeakMap]", rI = "[object ArrayBuffer]", iI = "[object DataView]", sI = "[object Float32Array]", oI = "[object Float64Array]", aI = "[object Int8Array]", lI = "[object Int16Array]", cI = "[object Int32Array]", uI = "[object Uint8Array]", dI = "[object Uint8ClampedArray]", fI = "[object Uint16Array]", hI = "[object Uint32Array]", Re = {};
26604
26604
  Re[Qm] = Re[GR] = Re[rI] = Re[iI] = Re[KR] = Re[WR] = Re[sI] = Re[oI] = Re[aI] = Re[lI] = Re[cI] = Re[ZR] = Re[XR] = Re[eb] = Re[QR] = Re[JR] = Re[eI] = Re[tI] = Re[uI] = Re[dI] = Re[fI] = Re[hI] = !0;
26605
26605
  Re[VR] = Re[Jm] = Re[nI] = !1;
26606
26606
  function yo(e, t, n, r, i, s) {
@@ -26939,7 +26939,7 @@ const ib = class Oc {
26939
26939
  }
26940
26940
  };
26941
26941
  ib.blots = /* @__PURE__ */ new WeakMap();
26942
- let oi = ib;
26942
+ let ai = ib;
26943
26943
  function fh(e, t) {
26944
26944
  return (e.getAttribute("class") || "").split(/\s+/).filter((n) => n.indexOf(`${t}-`) === 0);
26945
26945
  }
@@ -26990,7 +26990,7 @@ class JI {
26990
26990
  }
26991
26991
  build() {
26992
26992
  this.attributes = {};
26993
- const t = oi.find(this.domNode);
26993
+ const t = ai.find(this.domNode);
26994
26994
  if (t == null)
26995
26995
  return;
26996
26996
  const n = En.keys(this.domNode), r = tn.keys(this.domNode), i = tr.keys(this.domNode);
@@ -27019,7 +27019,7 @@ class JI {
27019
27019
  }
27020
27020
  const la = JI, sb = class {
27021
27021
  constructor(t, n) {
27022
- this.scroll = t, this.domNode = n, oi.blots.set(n, this), this.prev = null, this.next = null;
27022
+ this.scroll = t, this.domNode = n, ai.blots.set(n, this), this.prev = null, this.next = null;
27023
27023
  }
27024
27024
  static create(t) {
27025
27025
  if (this.tagName == null)
@@ -27038,7 +27038,7 @@ const la = JI, sb = class {
27038
27038
  return this.scroll.create(t);
27039
27039
  }
27040
27040
  detach() {
27041
- this.parent != null && this.parent.removeChild(this), oi.blots.delete(this.domNode);
27041
+ this.parent != null && this.parent.removeChild(this), ai.blots.delete(this.domNode);
27042
27042
  }
27043
27043
  deleteAt(t, n) {
27044
27044
  this.isolate(t, n).remove();
@@ -27695,7 +27695,7 @@ const Uo = dL, fL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
27695
27695
  InlineBlot: Ou,
27696
27696
  LeafBlot: st,
27697
27697
  ParentBlot: Qt,
27698
- Registry: oi,
27698
+ Registry: ai,
27699
27699
  Scope: ie,
27700
27700
  ScrollBlot: Ru,
27701
27701
  StyleAttributor: tr,
@@ -28127,7 +28127,7 @@ qo.exports;
28127
28127
  return m ? "Symbol(src)_1." + m : "";
28128
28128
  }(), mt = qt.toString, tt = Te.hasOwnProperty, Rt = Te.toString, O = RegExp(
28129
28129
  "^" + mt.call(tt).replace(I, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
28130
- ), M = ke ? N.Buffer : void 0, V = N.Symbol, Q = N.Uint8Array, oe = be(Object.getPrototypeOf, Object), Oe = Object.create, bt = Te.propertyIsEnumerable, ut = le.splice, Ht = Object.getOwnPropertySymbols, It = M ? M.isBuffer : void 0, je = be(Object.keys, Object), Nt = Gt(N, "DataView"), Ke = Gt(N, "Map"), jt = Gt(N, "Promise"), Rr = Gt(N, "Set"), _i = Gt(N, "WeakMap"), nr = Gt(Object, "create"), ki = dt(Nt), rr = dt(Ke), Ni = dt(jt), Si = dt(Rr), Ai = dt(_i), Dn = V ? V.prototype : void 0, Is = Dn ? Dn.valueOf : void 0;
28130
+ ), M = ke ? N.Buffer : void 0, V = N.Symbol, Q = N.Uint8Array, oe = be(Object.getPrototypeOf, Object), Oe = Object.create, bt = Te.propertyIsEnumerable, ut = le.splice, Ht = Object.getOwnPropertySymbols, It = M ? M.isBuffer : void 0, je = be(Object.keys, Object), Nt = Gt(N, "DataView"), Ke = Gt(N, "Map"), jt = Gt(N, "Promise"), Rr = Gt(N, "Set"), ki = Gt(N, "WeakMap"), nr = Gt(Object, "create"), Ni = dt(Nt), rr = dt(Ke), Si = dt(jt), Ai = dt(Rr), Ti = dt(ki), Dn = V ? V.prototype : void 0, Is = Dn ? Dn.valueOf : void 0;
28131
28131
  function _n(m) {
28132
28132
  var w = -1, T = m ? m.length : 0;
28133
28133
  for (this.clear(); ++w < T; ) {
@@ -28153,11 +28153,11 @@ qo.exports;
28153
28153
  var w = this.__data__;
28154
28154
  return nr ? w[m] !== void 0 : tt.call(w, m);
28155
28155
  }
28156
- function Ti(m, w) {
28156
+ function Ci(m, w) {
28157
28157
  var T = this.__data__;
28158
28158
  return T[m] = nr && w === void 0 ? r : w, this;
28159
28159
  }
28160
- _n.prototype.clear = Aa, _n.prototype.delete = Ta, _n.prototype.get = Ca, _n.prototype.has = Ls, _n.prototype.set = Ti;
28160
+ _n.prototype.clear = Aa, _n.prototype.delete = Ta, _n.prototype.get = Ca, _n.prototype.has = Ls, _n.prototype.set = Ci;
28161
28161
  function We(m) {
28162
28162
  var w = -1, T = m ? m.length : 0;
28163
28163
  for (this.clear(); ++w < T; ) {
@@ -28241,7 +28241,7 @@ qo.exports;
28241
28241
  }
28242
28242
  yt.prototype.clear = Ua, yt.prototype.delete = qa, yt.prototype.get = za, yt.prototype.has = Ha, yt.prototype.set = ja;
28243
28243
  function Ir(m, w) {
28244
- var T = Ii(m) || Pr(m) ? Pe(m.length, String) : [], B = T.length, fe = !!B;
28244
+ var T = Li(m) || Pr(m) ? Pe(m.length, String) : [], B = T.length, fe = !!B;
28245
28245
  for (var ae in m)
28246
28246
  tt.call(m, ae) && !(fe && (ae == "length" || il(ae, B))) && T.push(ae);
28247
28247
  return T;
@@ -28257,15 +28257,15 @@ qo.exports;
28257
28257
  return -1;
28258
28258
  }
28259
28259
  function an(m, w) {
28260
- return m && Ri(w, Mi(w), m);
28260
+ return m && Ii(w, Pi(w), m);
28261
28261
  }
28262
- function Ci(m, w, T, B, fe, ae, _e) {
28262
+ function Oi(m, w, T, B, fe, ae, _e) {
28263
28263
  var ve;
28264
28264
  if (B && (ve = ae ? B(m, fe, ae, _e) : B(m)), ve !== void 0)
28265
28265
  return ve;
28266
28266
  if (!cn(m))
28267
28267
  return m;
28268
- var Ue = Ii(m);
28268
+ var Ue = Li(m);
28269
28269
  if (Ue) {
28270
28270
  if (ve = nl(m), !w)
28271
28271
  return Ja(m, ve);
@@ -28281,7 +28281,7 @@ qo.exports;
28281
28281
  } else {
28282
28282
  if (!_[Ne])
28283
28283
  return ae ? m : {};
28284
- ve = rl(m, Ne, Ci, w);
28284
+ ve = rl(m, Ne, Oi, w);
28285
28285
  }
28286
28286
  }
28287
28287
  _e || (_e = new yt());
@@ -28289,9 +28289,9 @@ qo.exports;
28289
28289
  if (Et)
28290
28290
  return Et;
28291
28291
  if (_e.set(m, ve), !Ue)
28292
- var ze = T ? tl(m) : Mi(m);
28292
+ var ze = T ? tl(m) : Pi(m);
28293
28293
  return Ge(ze || m, function(it, Ve) {
28294
- ze && (Ve = it, it = m[Ve]), Ms(ve, Ve, Ci(it, w, T, B, Ve, m, _e));
28294
+ ze && (Ve = it, it = m[Ve]), Ms(ve, Ve, Oi(it, w, T, B, Ve, m, _e));
28295
28295
  }), ve;
28296
28296
  }
28297
28297
  function Ga(m) {
@@ -28299,7 +28299,7 @@ qo.exports;
28299
28299
  }
28300
28300
  function Ka(m, w, T) {
28301
28301
  var B = w(m);
28302
- return Ii(m) ? B : te(B, T(m));
28302
+ return Li(m) ? B : te(B, T(m));
28303
28303
  }
28304
28304
  function Wa(m) {
28305
28305
  return Rt.call(m);
@@ -28307,7 +28307,7 @@ qo.exports;
28307
28307
  function Va(m) {
28308
28308
  if (!cn(m) || ol(m))
28309
28309
  return !1;
28310
- var w = Li(m) || Je(m) ? O : j;
28310
+ var w = Mi(m) || Je(m) ? O : j;
28311
28311
  return w.test(dt(m));
28312
28312
  }
28313
28313
  function Ya(m) {
@@ -28324,12 +28324,12 @@ qo.exports;
28324
28324
  var T = new m.constructor(m.length);
28325
28325
  return m.copy(T), T;
28326
28326
  }
28327
- function Oi(m) {
28327
+ function Ri(m) {
28328
28328
  var w = new m.constructor(m.byteLength);
28329
28329
  return new Q(w).set(new Q(m)), w;
28330
28330
  }
28331
28331
  function ir(m, w) {
28332
- var T = w ? Oi(m.buffer) : m.buffer;
28332
+ var T = w ? Ri(m.buffer) : m.buffer;
28333
28333
  return new m.constructor(T, m.byteOffset, m.byteLength);
28334
28334
  }
28335
28335
  function Ps(m, w, T) {
@@ -28348,7 +28348,7 @@ qo.exports;
28348
28348
  return Is ? Object(Is.call(m)) : {};
28349
28349
  }
28350
28350
  function Qa(m, w) {
28351
- var T = w ? Oi(m.buffer) : m.buffer;
28351
+ var T = w ? Ri(m.buffer) : m.buffer;
28352
28352
  return new m.constructor(T, m.byteOffset, m.length);
28353
28353
  }
28354
28354
  function Ja(m, w) {
@@ -28357,7 +28357,7 @@ qo.exports;
28357
28357
  w[T] = m[T];
28358
28358
  return w;
28359
28359
  }
28360
- function Ri(m, w, T, B) {
28360
+ function Ii(m, w, T, B) {
28361
28361
  T || (T = {});
28362
28362
  for (var fe = -1, ae = w.length; ++fe < ae; ) {
28363
28363
  var _e = w[fe], ve = void 0;
@@ -28366,10 +28366,10 @@ qo.exports;
28366
28366
  return T;
28367
28367
  }
28368
28368
  function el(m, w) {
28369
- return Ri(m, kn(m), w);
28369
+ return Ii(m, kn(m), w);
28370
28370
  }
28371
28371
  function tl(m) {
28372
- return Ka(m, Mi, kn);
28372
+ return Ka(m, Pi, kn);
28373
28373
  }
28374
28374
  function sr(m, w) {
28375
28375
  var T = m.__data__;
@@ -28380,19 +28380,19 @@ qo.exports;
28380
28380
  return Va(T) ? T : void 0;
28381
28381
  }
28382
28382
  var kn = Ht ? be(Ht, Object) : ll, Nn = Wa;
28383
- (Nt && Nn(new Nt(new ArrayBuffer(1))) != k || Ke && Nn(new Ke()) != h || jt && Nn(jt.resolve()) != g || Rr && Nn(new Rr()) != y || _i && Nn(new _i()) != S) && (Nn = function(m) {
28383
+ (Nt && Nn(new Nt(new ArrayBuffer(1))) != k || Ke && Nn(new Ke()) != h || jt && Nn(jt.resolve()) != g || Rr && Nn(new Rr()) != y || ki && Nn(new ki()) != S) && (Nn = function(m) {
28384
28384
  var w = Rt.call(m), T = w == p ? m.constructor : void 0, B = T ? dt(T) : void 0;
28385
28385
  if (B)
28386
28386
  switch (B) {
28387
- case ki:
28387
+ case Ni:
28388
28388
  return k;
28389
28389
  case rr:
28390
28390
  return h;
28391
- case Ni:
28392
- return g;
28393
28391
  case Si:
28394
- return y;
28392
+ return g;
28395
28393
  case Ai:
28394
+ return y;
28395
+ case Ti:
28396
28396
  return S;
28397
28397
  }
28398
28398
  return w;
@@ -28408,7 +28408,7 @@ qo.exports;
28408
28408
  var fe = m.constructor;
28409
28409
  switch (w) {
28410
28410
  case C:
28411
- return Oi(m);
28411
+ return Ri(m);
28412
28412
  case a:
28413
28413
  case l:
28414
28414
  return new fe(+m);
@@ -28465,7 +28465,7 @@ qo.exports;
28465
28465
  return "";
28466
28466
  }
28467
28467
  function Fs(m) {
28468
- return Ci(m, !0, !0);
28468
+ return Oi(m, !0, !0);
28469
28469
  }
28470
28470
  function $s(m, w) {
28471
28471
  return m === w || m !== m && w !== w;
@@ -28473,15 +28473,15 @@ qo.exports;
28473
28473
  function Pr(m) {
28474
28474
  return al(m) && tt.call(m, "callee") && (!bt.call(m, "callee") || Rt.call(m) == s);
28475
28475
  }
28476
- var Ii = Array.isArray;
28476
+ var Li = Array.isArray;
28477
28477
  function Dr(m) {
28478
- return m != null && qs(m.length) && !Li(m);
28478
+ return m != null && qs(m.length) && !Mi(m);
28479
28479
  }
28480
28480
  function al(m) {
28481
28481
  return zs(m) && Dr(m);
28482
28482
  }
28483
28483
  var Us = It || cl;
28484
- function Li(m) {
28484
+ function Mi(m) {
28485
28485
  var w = cn(m) ? Rt.call(m) : "";
28486
28486
  return w == u || w == d;
28487
28487
  }
@@ -28495,7 +28495,7 @@ qo.exports;
28495
28495
  function zs(m) {
28496
28496
  return !!m && typeof m == "object";
28497
28497
  }
28498
- function Mi(m) {
28498
+ function Pi(m) {
28499
28499
  return Dr(m) ? Ir(m) : Ya(m);
28500
28500
  }
28501
28501
  function ll() {
@@ -28573,7 +28573,7 @@ zo.exports;
28573
28573
  return m ? "Symbol(src)_1." + m : "";
28574
28574
  }(), bt = M.toString, ut = RegExp(
28575
28575
  "^" + Q.call(oe).replace(re, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
28576
- ), Ht = xe ? Se.Buffer : void 0, It = Se.Symbol, je = Se.Uint8Array, Nt = M.propertyIsEnumerable, Ke = Rt.splice, jt = It ? It.toStringTag : void 0, Rr = Object.getOwnPropertySymbols, _i = Ht ? Ht.isBuffer : void 0, nr = mt(Object.keys, Object), ki = kn(Se, "DataView"), rr = kn(Se, "Map"), Ni = kn(Se, "Promise"), Si = kn(Se, "Set"), Ai = kn(Se, "WeakMap"), Dn = kn(Object, "create"), Is = dt(ki), _n = dt(rr), Aa = dt(Ni), Ta = dt(Si), Ca = dt(Ai), Ls = It ? It.prototype : void 0, Ti = Ls ? Ls.valueOf : void 0;
28576
+ ), Ht = xe ? Se.Buffer : void 0, It = Se.Symbol, je = Se.Uint8Array, Nt = M.propertyIsEnumerable, Ke = Rt.splice, jt = It ? It.toStringTag : void 0, Rr = Object.getOwnPropertySymbols, ki = Ht ? Ht.isBuffer : void 0, nr = mt(Object.keys, Object), Ni = kn(Se, "DataView"), rr = kn(Se, "Map"), Si = kn(Se, "Promise"), Ai = kn(Se, "Set"), Ti = kn(Se, "WeakMap"), Dn = kn(Object, "create"), Is = dt(Ni), _n = dt(rr), Aa = dt(Si), Ta = dt(Ai), Ca = dt(Ti), Ls = It ? It.prototype : void 0, Ci = Ls ? Ls.valueOf : void 0;
28577
28577
  function We(m) {
28578
28578
  var w = -1, T = m == null ? 0 : m.length;
28579
28579
  for (this.clear(); ++w < T; ) {
@@ -28679,7 +28679,7 @@ zo.exports;
28679
28679
  var w = this.__data__ = new nt(m);
28680
28680
  this.size = w.size;
28681
28681
  }
28682
- function Ci() {
28682
+ function Oi() {
28683
28683
  this.__data__ = new nt(), this.size = 0;
28684
28684
  }
28685
28685
  function Ga(m) {
@@ -28702,7 +28702,7 @@ zo.exports;
28702
28702
  }
28703
28703
  return T.set(m, w), this.size = T.size, this;
28704
28704
  }
28705
- an.prototype.clear = Ci, an.prototype.delete = Ga, an.prototype.get = Ka, an.prototype.has = Wa, an.prototype.set = Va;
28705
+ an.prototype.clear = Oi, an.prototype.delete = Ga, an.prototype.get = Ka, an.prototype.has = Wa, an.prototype.set = Va;
28706
28706
  function Ya(m, w) {
28707
28707
  var T = Pr(m), B = !T && $s(m), fe = !T && !B && Dr(m), ae = !T && !B && !fe && zs(m), _e = T || B || fe || ae, ve = _e ? le(m.length, String) : [], Ue = ve.length;
28708
28708
  for (var Ne in m)
@@ -28719,7 +28719,7 @@ zo.exports;
28719
28719
  return T;
28720
28720
  return -1;
28721
28721
  }
28722
- function Oi(m, w, T) {
28722
+ function Ri(m, w, T) {
28723
28723
  var B = w(m);
28724
28724
  return Pr(m) ? B : be(B, T(m));
28725
28725
  }
@@ -28742,7 +28742,7 @@ zo.exports;
28742
28742
  _e = !0, rt = !1;
28743
28743
  }
28744
28744
  if (ze && !rt)
28745
- return ae || (ae = new an()), _e || zs(m) ? Ri(m, w, T, B, fe, ae) : el(m, w, Ue, T, B, fe, ae);
28745
+ return ae || (ae = new an()), _e || zs(m) ? Ii(m, w, T, B, fe, ae) : el(m, w, Ue, T, B, fe, ae);
28746
28746
  if (!(T & i)) {
28747
28747
  var it = rt && oe.call(m, "__wrapped__"), Ve = Et && oe.call(w, "__wrapped__");
28748
28748
  if (it || Ve) {
@@ -28759,7 +28759,7 @@ zo.exports;
28759
28759
  return w.test(dt(m));
28760
28760
  }
28761
28761
  function Qa(m) {
28762
- return cn(m) && Li(m.length) && !!se[ir(m)];
28762
+ return cn(m) && Mi(m.length) && !!se[ir(m)];
28763
28763
  }
28764
28764
  function Ja(m) {
28765
28765
  if (!ol(m))
@@ -28769,7 +28769,7 @@ zo.exports;
28769
28769
  oe.call(m, T) && T != "constructor" && w.push(T);
28770
28770
  return w;
28771
28771
  }
28772
- function Ri(m, w, T, B, fe, ae) {
28772
+ function Ii(m, w, T, B, fe, ae) {
28773
28773
  var _e = T & i, ve = m.length, Ue = w.length;
28774
28774
  if (ve != Ue && !(_e && Ue > ve))
28775
28775
  return !1;
@@ -28829,11 +28829,11 @@ zo.exports;
28829
28829
  if (Ne)
28830
28830
  return Ne == w;
28831
28831
  B |= s, _e.set(m, w);
28832
- var rt = Ri(ve(m), ve(w), B, fe, ae, _e);
28832
+ var rt = Ii(ve(m), ve(w), B, fe, ae, _e);
28833
28833
  return _e.delete(m), rt;
28834
28834
  case q:
28835
- if (Ti)
28836
- return Ti.call(m) == Ti.call(w);
28835
+ if (Ci)
28836
+ return Ci.call(m) == Ci.call(w);
28837
28837
  }
28838
28838
  return !1;
28839
28839
  }
@@ -28869,7 +28869,7 @@ zo.exports;
28869
28869
  return ae.delete(m), ae.delete(w), Ve;
28870
28870
  }
28871
28871
  function sr(m) {
28872
- return Oi(m, Mi, nl);
28872
+ return Ri(m, Pi, nl);
28873
28873
  }
28874
28874
  function Gt(m, w) {
28875
28875
  var T = m.__data__;
@@ -28894,7 +28894,7 @@ zo.exports;
28894
28894
  return Nt.call(m, w);
28895
28895
  }));
28896
28896
  } : ll, ln = ir;
28897
- (ki && ln(new ki(new ArrayBuffer(1))) != D || rr && ln(new rr()) != g || Ni && ln(Ni.resolve()) != v || Si && ln(new Si()) != k || Ai && ln(new Ai()) != R) && (ln = function(m) {
28897
+ (Ni && ln(new Ni(new ArrayBuffer(1))) != D || rr && ln(new rr()) != g || Si && ln(Si.resolve()) != v || Ai && ln(new Ai()) != k || Ti && ln(new Ti()) != R) && (ln = function(m) {
28898
28898
  var w = ir(m), T = w == E ? m.constructor : void 0, B = T ? dt(T) : "";
28899
28899
  if (B)
28900
28900
  switch (B) {
@@ -28949,10 +28949,10 @@ zo.exports;
28949
28949
  }()) ? Ps : function(m) {
28950
28950
  return cn(m) && oe.call(m, "callee") && !Nt.call(m, "callee");
28951
28951
  }, Pr = Array.isArray;
28952
- function Ii(m) {
28953
- return m != null && Li(m.length) && !Us(m);
28952
+ function Li(m) {
28953
+ return m != null && Mi(m.length) && !Us(m);
28954
28954
  }
28955
- var Dr = _i || cl;
28955
+ var Dr = ki || cl;
28956
28956
  function al(m, w) {
28957
28957
  return Ds(m, w);
28958
28958
  }
@@ -28962,7 +28962,7 @@ zo.exports;
28962
28962
  var w = ir(m);
28963
28963
  return w == f || w == p || w == c || w == S;
28964
28964
  }
28965
- function Li(m) {
28965
+ function Mi(m) {
28966
28966
  return typeof m == "number" && m > -1 && m % 1 == 0 && m <= o;
28967
28967
  }
28968
28968
  function qs(m) {
@@ -28973,8 +28973,8 @@ zo.exports;
28973
28973
  return m != null && typeof m == "object";
28974
28974
  }
28975
28975
  var zs = Je ? qt(Je) : Qa;
28976
- function Mi(m) {
28977
- return Ii(m) ? Ya(m) : Ja(m);
28976
+ function Pi(m) {
28977
+ return Li(m) ? Ya(m) : Ja(m);
28978
28978
  }
28979
28979
  function ll() {
28980
28980
  return [];
@@ -29607,7 +29607,7 @@ const Mt = class Mt extends Ot {
29607
29607
  }
29608
29608
  };
29609
29609
  J(Mt, "blotName", "cursor"), J(Mt, "className", "ql-cursor"), J(Mt, "tagName", "span"), J(Mt, "CONTENTS", "\uFEFF");
29610
- let ai = Mt;
29610
+ let li = Mt;
29611
29611
  var bb = { exports: {} };
29612
29612
  (function(e) {
29613
29613
  var t = Object.prototype.hasOwnProperty, n = "~";
@@ -30169,7 +30169,7 @@ class IL {
30169
30169
  const i = this.delta;
30170
30170
  if (n.length === 1 && n[0].type === "characterData" && // @ts-expect-error Fix me later
30171
30171
  n[0].target.data.match(RL) && this.scroll.find(n[0].target)) {
30172
- const s = this.scroll.find(n[0].target), o = Dt(s), a = s.offset(this.scroll), l = n[0].oldValue.replace(ai.CONTENTS, ""), c = new ne().insert(l), u = new ne().insert(s.value()), d = r && {
30172
+ const s = this.scroll.find(n[0].target), o = Dt(s), a = s.offset(this.scroll), l = n[0].oldValue.replace(li.CONTENTS, ""), c = new ne().insert(l), u = new ne().insert(s.value()), d = r && {
30173
30173
  oldRange: vh(r.oldRange, -a),
30174
30174
  newRange: vh(r.newRange, -a)
30175
30175
  };
@@ -30356,7 +30356,7 @@ class PL {
30356
30356
  this.emitter.emit(ee.events.COMPOSITION_BEFORE_END, t), this.scroll.batchEnd(), this.emitter.emit(ee.events.COMPOSITION_END, t), this.isComposing = !1;
30357
30357
  }
30358
30358
  }
30359
- const Qi = class Qi {
30359
+ const Ji = class Ji {
30360
30360
  constructor(t, n) {
30361
30361
  J(this, "modules", {});
30362
30362
  this.quill = t, this.options = n;
@@ -30371,12 +30371,12 @@ const Qi = class Qi {
30371
30371
  return this.modules[t] = new n(this.quill, this.options.modules[t] || {}), this.modules[t];
30372
30372
  }
30373
30373
  };
30374
- J(Qi, "DEFAULTS", {
30374
+ J(Ji, "DEFAULTS", {
30375
30375
  modules: {}
30376
- }), J(Qi, "themes", {
30377
- default: Qi
30376
+ }), J(Ji, "themes", {
30377
+ default: Ji
30378
30378
  });
30379
- let li = Qi;
30379
+ let ci = Ji;
30380
30380
  const DL = (e) => e.parentElement || e.getRootNode().host || null, BL = (e) => {
30381
30381
  const t = e.getBoundingClientRect(), n = "offsetWidth" in e && Math.abs(t.width) / e.offsetWidth || 1, r = "offsetHeight" in e && Math.abs(t.height) / e.offsetHeight || 1;
30382
30382
  return {
@@ -30419,7 +30419,7 @@ const DL = (e) => e.parentElement || e.getRootNode().host || null, BL = (e) => {
30419
30419
  i = l || u.position === "fixed" ? null : DL(i);
30420
30420
  }
30421
30421
  }, $L = 100, UL = ["block", "break", "cursor", "inline", "scroll", "text"], qL = (e, t, n) => {
30422
- const r = new oi();
30422
+ const r = new ai();
30423
30423
  return UL.forEach((i) => {
30424
30424
  const s = t.query(i);
30425
30425
  s && r.register(s);
@@ -30433,7 +30433,7 @@ const DL = (e) => e.parentElement || e.getRootNode().host || null, BL = (e) => {
30433
30433
  break;
30434
30434
  }
30435
30435
  }), r;
30436
- }, ei = Pn("quill"), so = new oi();
30436
+ }, ei = Pn("quill"), so = new ai();
30437
30437
  Qt.uiClass = "ql-ui";
30438
30438
  const Vt = class Vt {
30439
30439
  static debug(t) {
@@ -30708,7 +30708,7 @@ J(Vt, "DEFAULTS", {
30708
30708
  delta: ne,
30709
30709
  parchment: fL,
30710
30710
  "core/module": rn,
30711
- "core/theme": li
30711
+ "core/theme": ci
30712
30712
  });
30713
30713
  let $ = Vt;
30714
30714
  function kh(e) {
@@ -30730,7 +30730,7 @@ function zL(e, t) {
30730
30730
  const n = kh(e);
30731
30731
  if (!n)
30732
30732
  throw new Error("Invalid Quill container");
30733
- const i = !t.theme || t.theme === $.DEFAULTS.theme ? li : $.import(`themes/${t.theme}`);
30733
+ const i = !t.theme || t.theme === $.DEFAULTS.theme ? ci : $.import(`themes/${t.theme}`);
30734
30734
  if (!i)
30735
30735
  throw new Error(`Invalid theme ${t.theme}. Did you register it?`);
30736
30736
  const {
@@ -31086,7 +31086,7 @@ Tr.blotName = "code-block-container";
31086
31086
  Tr.className = "ql-code-block-container";
31087
31087
  Tr.tagName = "DIV";
31088
31088
  Tr.allowedChildren = [lt];
31089
- lt.allowedChildren = [Jt, nn, ai];
31089
+ lt.allowedChildren = [Jt, nn, li];
31090
31090
  lt.requiredContainer = Tr;
31091
31091
  const qu = {
31092
31092
  scope: ie.BLOCK,
@@ -32229,7 +32229,7 @@ $.register({
32229
32229
  "blots/block/embed": Ft,
32230
32230
  "blots/break": nn,
32231
32231
  "blots/container": Ar,
32232
- "blots/cursor": ai,
32232
+ "blots/cursor": li,
32233
32233
  "blots/embed": Du,
32234
32234
  "blots/inline": wn,
32235
32235
  "blots/scroll": Zr,
@@ -32426,7 +32426,7 @@ class wo extends Ft {
32426
32426
  }
32427
32427
  }
32428
32428
  J(wo, "blotName", "video"), J(wo, "className", "ql-video"), J(wo, "tagName", "IFRAME");
32429
- const ji = new tn("code-token", "hljs", {
32429
+ const Gi = new tn("code-token", "hljs", {
32430
32430
  scope: ie.INLINE
32431
32431
  });
32432
32432
  class Rn extends wn {
@@ -32438,13 +32438,13 @@ class Rn extends wn {
32438
32438
  }
32439
32439
  }
32440
32440
  constructor(t, n, r) {
32441
- super(t, n, r), ji.add(this.domNode, r);
32441
+ super(t, n, r), Gi.add(this.domNode, r);
32442
32442
  }
32443
32443
  format(t, n) {
32444
- t !== Rn.blotName ? super.format(t, n) : n ? ji.add(this.domNode, n) : (ji.remove(this.domNode), this.domNode.classList.remove(this.statics.className));
32444
+ t !== Rn.blotName ? super.format(t, n) : n ? Gi.add(this.domNode, n) : (Gi.remove(this.domNode), this.domNode.classList.remove(this.statics.className));
32445
32445
  }
32446
32446
  optimize() {
32447
- super.optimize(...arguments), ji.value(this.domNode) || this.unwrap();
32447
+ super.optimize(...arguments), Gi.value(this.domNode) || this.unwrap();
32448
32448
  }
32449
32449
  }
32450
32450
  Rn.blotName = "code-token";
@@ -32467,7 +32467,7 @@ class Bt extends lt {
32467
32467
  return this.formatAt(0, this.length(), Rn.blotName, !1), super.replaceWith(t, n);
32468
32468
  }
32469
32469
  }
32470
- class Xi extends Tr {
32470
+ class Qi extends Tr {
32471
32471
  attach() {
32472
32472
  super.attach(), this.forceNext = !1, this.scroll.emitMount(this);
32473
32473
  }
@@ -32514,9 +32514,9 @@ ${ha(this.code(t, n))}
32514
32514
  }
32515
32515
  }
32516
32516
  }
32517
- Xi.allowedChildren = [Bt];
32518
- Bt.requiredContainer = Xi;
32519
- Bt.allowedChildren = [Rn, ai, Jt, nn];
32517
+ Qi.allowedChildren = [Bt];
32518
+ Bt.requiredContainer = Qi;
32519
+ Bt.allowedChildren = [Rn, li, Jt, nn];
32520
32520
  const BM = (e, t, n) => {
32521
32521
  if (typeof e.versionString == "string") {
32522
32522
  const r = e.versionString.split(".")[0];
@@ -32529,7 +32529,7 @@ const BM = (e, t, n) => {
32529
32529
  };
32530
32530
  class Pb extends rn {
32531
32531
  static register() {
32532
- $.register(Rn, !0), $.register(Bt, !0), $.register(Xi, !0);
32532
+ $.register(Rn, !0), $.register(Bt, !0), $.register(Qi, !0);
32533
32533
  }
32534
32534
  constructor(t, n) {
32535
32535
  if (super(t, n), this.options.hljs == null)
@@ -32543,7 +32543,7 @@ class Pb extends rn {
32543
32543
  }
32544
32544
  initListener() {
32545
32545
  this.quill.on($.events.SCROLL_BLOT_MOUNT, (t) => {
32546
- if (!(t instanceof Xi)) return;
32546
+ if (!(t instanceof Qi)) return;
32547
32547
  const n = this.quill.root.ownerDocument.createElement("select");
32548
32548
  this.options.languages.forEach((r) => {
32549
32549
  let {
@@ -32570,7 +32570,7 @@ class Pb extends rn {
32570
32570
  if (this.quill.selection.composing) return;
32571
32571
  this.quill.update($.sources.USER);
32572
32572
  const r = this.quill.getSelection();
32573
- (t == null ? this.quill.scroll.descendants(Xi) : [t]).forEach((s) => {
32573
+ (t == null ? this.quill.scroll.descendants(Qi) : [t]).forEach((s) => {
32574
32574
  s.highlight(this.highlightBlot, n);
32575
32575
  }), this.quill.update($.sources.SILENT), r != null && this.quill.setSelection(r, $.sources.SILENT);
32576
32576
  }
@@ -32584,7 +32584,7 @@ class Pb extends rn {
32584
32584
  }), i.insert(s)), new ne());
32585
32585
  const r = this.quill.root.ownerDocument.createElement("div");
32586
32586
  return r.classList.add(lt.className), r.innerHTML = BM(this.options.hljs, n, t), Hu(this.quill.scroll, r, [(i, s) => {
32587
- const o = ji.value(i);
32587
+ const o = Gi.value(i);
32588
32588
  return o ? s.compose(new ne().retain(s.length(), {
32589
32589
  [Rn.blotName]: o
32590
32590
  })) : s;
@@ -32642,7 +32642,7 @@ Pb.DEFAULTS = {
32642
32642
  label: "SQL"
32643
32643
  }]
32644
32644
  };
32645
- const Ji = class Ji extends Ze {
32645
+ const es = class es extends Ze {
32646
32646
  static create(t) {
32647
32647
  const n = super.create();
32648
32648
  return t ? n.setAttribute("data-row", t) : n.setAttribute("data-row", ju()), n;
@@ -32655,7 +32655,7 @@ const Ji = class Ji extends Ze {
32655
32655
  return this.parent ? this.parent.children.indexOf(this) : -1;
32656
32656
  }
32657
32657
  format(t, n) {
32658
- t === Ji.blotName && n ? this.domNode.setAttribute("data-row", n) : super.format(t, n);
32658
+ t === es.blotName && n ? this.domNode.setAttribute("data-row", n) : super.format(t, n);
32659
32659
  }
32660
32660
  row() {
32661
32661
  return this.parent;
@@ -32667,8 +32667,8 @@ const Ji = class Ji extends Ze {
32667
32667
  return this.row() && this.row().table();
32668
32668
  }
32669
32669
  };
32670
- J(Ji, "blotName", "table"), J(Ji, "tagName", "TD");
32671
- let Zt = Ji;
32670
+ J(es, "blotName", "table"), J(es, "tagName", "TD");
32671
+ let Zt = es;
32672
32672
  class In extends Ar {
32673
32673
  checkMerge() {
32674
32674
  if (super.checkMerge() && this.next.children.head != null) {
@@ -32698,7 +32698,7 @@ J(In, "blotName", "table-row"), J(In, "tagName", "TR");
32698
32698
  class yn extends Ar {
32699
32699
  }
32700
32700
  J(yn, "blotName", "table-body"), J(yn, "tagName", "TBODY");
32701
- class ci extends Ar {
32701
+ class ui extends Ar {
32702
32702
  balanceCells() {
32703
32703
  const t = this.descendants(In), n = t.reduce((r, i) => Math.max(i.children.length, r), 0);
32704
32704
  t.forEach((r) => {
@@ -32743,9 +32743,9 @@ class ci extends Ar {
32743
32743
  return t == null ? [] : t.children.map((n) => n);
32744
32744
  }
32745
32745
  }
32746
- J(ci, "blotName", "table-container"), J(ci, "tagName", "TABLE");
32747
- ci.allowedChildren = [yn];
32748
- yn.requiredContainer = ci;
32746
+ J(ui, "blotName", "table-container"), J(ui, "tagName", "TABLE");
32747
+ ui.allowedChildren = [yn];
32748
+ yn.requiredContainer = ui;
32749
32749
  yn.allowedChildren = [In];
32750
32750
  In.requiredContainer = yn;
32751
32751
  In.allowedChildren = [Zt];
@@ -32755,13 +32755,13 @@ function ju() {
32755
32755
  }
32756
32756
  class FM extends rn {
32757
32757
  static register() {
32758
- $.register(Zt), $.register(In), $.register(yn), $.register(ci);
32758
+ $.register(Zt), $.register(In), $.register(yn), $.register(ui);
32759
32759
  }
32760
32760
  constructor() {
32761
32761
  super(...arguments), this.listenBalanceCells();
32762
32762
  }
32763
32763
  balanceTables() {
32764
- this.quill.scroll.descendants(ci).forEach((t) => {
32764
+ this.quill.scroll.descendants(ui).forEach((t) => {
32765
32765
  t.balanceCells();
32766
32766
  });
32767
32767
  }
@@ -33175,7 +33175,7 @@ class Fb {
33175
33175
  }
33176
33176
  }
33177
33177
  const x2 = [!1, "center", "right", "justify"], v2 = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"], _2 = [!1, "serif", "monospace"], k2 = ["1", "2", "3", !1], N2 = ["small", !1, "large", "huge"];
33178
- class vs extends li {
33178
+ class vs extends ci {
33179
33179
  constructor(t, n) {
33180
33180
  super(t, n);
33181
33181
  const r = (i) => {
@@ -33212,13 +33212,13 @@ class vs extends li {
33212
33212
  }
33213
33213
  buildPickers(t, n) {
33214
33214
  this.pickers = Array.from(t).map((i) => {
33215
- if (i.classList.contains("ql-align") && (i.querySelector("option") == null && Ui(i, x2), typeof n.align == "object"))
33215
+ if (i.classList.contains("ql-align") && (i.querySelector("option") == null && qi(i, x2), typeof n.align == "object"))
33216
33216
  return new Bb(i, n.align);
33217
33217
  if (i.classList.contains("ql-background") || i.classList.contains("ql-color")) {
33218
33218
  const s = i.classList.contains("ql-background") ? "background" : "color";
33219
- return i.querySelector("option") == null && Ui(i, v2, s === "background" ? "#ffffff" : "#000000"), new Db(i, n[s]);
33219
+ return i.querySelector("option") == null && qi(i, v2, s === "background" ? "#ffffff" : "#000000"), new Db(i, n[s]);
33220
33220
  }
33221
- return i.querySelector("option") == null && (i.classList.contains("ql-font") ? Ui(i, _2) : i.classList.contains("ql-header") ? Ui(i, k2) : i.classList.contains("ql-size") && Ui(i, N2)), new ga(i);
33221
+ return i.querySelector("option") == null && (i.classList.contains("ql-font") ? qi(i, _2) : i.classList.contains("ql-header") ? qi(i, k2) : i.classList.contains("ql-size") && qi(i, N2)), new ga(i);
33222
33222
  });
33223
33223
  const r = () => {
33224
33224
  this.pickers.forEach((i) => {
@@ -33228,7 +33228,7 @@ class vs extends li {
33228
33228
  this.quill.on(ee.events.EDITOR_CHANGE, r);
33229
33229
  }
33230
33230
  }
33231
- vs.DEFAULTS = Yn({}, li.DEFAULTS, {
33231
+ vs.DEFAULTS = Yn({}, ci.DEFAULTS, {
33232
33232
  modules: {
33233
33233
  toolbar: {
33234
33234
  handlers: {
@@ -33310,7 +33310,7 @@ function S2(e) {
33310
33310
  let t = e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
33311
33311
  return t ? `${t[1] || "https"}://www.youtube.com/embed/${t[2]}?showinfo=0` : (t = e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? `${t[1] || "https"}://player.vimeo.com/video/${t[2]}/` : e;
33312
33312
  }
33313
- function Ui(e, t) {
33313
+ function qi(e, t) {
33314
33314
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
33315
33315
  t.forEach((r) => {
33316
33316
  const i = document.createElement("option");
@@ -33993,9 +33993,9 @@ function jb(e, t) {
33993
33993
  const { toString: R2 } = Object.prototype, { getPrototypeOf: Ku } = Object, { iterator: ba, toStringTag: Gb } = Symbol, ya = /* @__PURE__ */ ((e) => (t) => {
33994
33994
  const n = R2.call(t);
33995
33995
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
33996
- })(/* @__PURE__ */ Object.create(null)), sn = (e) => (e = e.toLowerCase(), (t) => ya(t) === e), Ea = (e) => (t) => typeof t === e, { isArray: gi } = Array, ui = Ea("undefined");
33996
+ })(/* @__PURE__ */ Object.create(null)), sn = (e) => (e = e.toLowerCase(), (t) => ya(t) === e), Ea = (e) => (t) => typeof t === e, { isArray: mi } = Array, di = Ea("undefined");
33997
33997
  function _s(e) {
33998
- return e !== null && !ui(e) && e.constructor !== null && !ui(e.constructor) && xt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
33998
+ return e !== null && !di(e) && e.constructor !== null && !di(e.constructor) && xt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
33999
33999
  }
34000
34000
  const Kb = sn("ArrayBuffer");
34001
34001
  function I2(e) {
@@ -34024,7 +34024,7 @@ function Ns(e, t, { allOwnKeys: n = !1 } = {}) {
34024
34024
  if (e === null || typeof e > "u")
34025
34025
  return;
34026
34026
  let r, i;
34027
- if (typeof e != "object" && (e = [e]), gi(e))
34027
+ if (typeof e != "object" && (e = [e]), mi(e))
34028
34028
  for (r = 0, i = e.length; r < i; r++)
34029
34029
  t.call(null, e[r], r, e);
34030
34030
  else {
@@ -34047,11 +34047,11 @@ function Vb(e, t) {
34047
34047
  return i;
34048
34048
  return null;
34049
34049
  }
34050
- const dr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yb = (e) => !ui(e) && e !== dr;
34050
+ const dr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yb = (e) => !di(e) && e !== dr;
34051
34051
  function Wc() {
34052
34052
  const { caseless: e, skipUndefined: t } = Yb(this) && this || {}, n = {}, r = (i, s) => {
34053
34053
  const o = e && Vb(n, s) || s;
34054
- xo(n[o]) && xo(i) ? n[o] = Wc(n[o], i) : xo(i) ? n[o] = Wc({}, i) : gi(i) ? n[o] = i.slice() : (!t || !ui(i)) && (n[o] = i);
34054
+ xo(n[o]) && xo(i) ? n[o] = Wc(n[o], i) : xo(i) ? n[o] = Wc({}, i) : mi(i) ? n[o] = i.slice() : (!t || !di(i)) && (n[o] = i);
34055
34055
  };
34056
34056
  for (let i = 0, s = arguments.length; i < s; i++)
34057
34057
  arguments[i] && Ns(arguments[i], r);
@@ -34079,7 +34079,7 @@ const V2 = (e, t, n, { allOwnKeys: r } = {}) => (Ns(t, (i, s) => {
34079
34079
  return r !== -1 && r === n;
34080
34080
  }, J2 = (e) => {
34081
34081
  if (!e) return null;
34082
- if (gi(e)) return e;
34082
+ if (mi(e)) return e;
34083
34083
  let t = e.length;
34084
34084
  if (!Wb(t)) return null;
34085
34085
  const n = new Array(t);
@@ -34131,7 +34131,7 @@ const V2 = (e, t, n, { allOwnKeys: r } = {}) => (Ns(t, (i, s) => {
34131
34131
  n[s] = !0;
34132
34132
  });
34133
34133
  };
34134
- return gi(e) ? r(e) : r(String(e).split(t)), n;
34134
+ return mi(e) ? r(e) : r(String(e).split(t)), n;
34135
34135
  }, lP = () => {
34136
34136
  }, cP = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
34137
34137
  function uP(e) {
@@ -34146,10 +34146,10 @@ const dP = (e) => {
34146
34146
  return r;
34147
34147
  if (!("toJSON" in r)) {
34148
34148
  t[i] = r;
34149
- const s = gi(r) ? [] : {};
34149
+ const s = mi(r) ? [] : {};
34150
34150
  return Ns(r, (o, a) => {
34151
34151
  const l = n(o, i + 1);
34152
- !ui(l) && (s[a] = l);
34152
+ !di(l) && (s[a] = l);
34153
34153
  }), t[i] = void 0, s;
34154
34154
  }
34155
34155
  }
@@ -34164,7 +34164,7 @@ const dP = (e) => {
34164
34164
  typeof setImmediate == "function",
34165
34165
  xt(dr.postMessage)
34166
34166
  ), pP = typeof queueMicrotask < "u" ? queueMicrotask.bind(dr) : typeof process < "u" && process.nextTick || Xb, gP = (e) => e != null && xt(e[ba]), P = {
34167
- isArray: gi,
34167
+ isArray: mi,
34168
34168
  isArrayBuffer: Kb,
34169
34169
  isBuffer: _s,
34170
34170
  isFormData: q2,
@@ -34179,7 +34179,7 @@ const dP = (e) => {
34179
34179
  isRequest: j2,
34180
34180
  isResponse: G2,
34181
34181
  isHeaders: K2,
34182
- isUndefined: ui,
34182
+ isUndefined: di,
34183
34183
  isDate: D2,
34184
34184
  isFile: B2,
34185
34185
  isBlob: F2,
@@ -34621,7 +34621,7 @@ const IP = P.toObjectSet([
34621
34621
  i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), r = o.substring(i + 1).trim(), !(!n || t[n] && IP[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
34622
34622
  }), t;
34623
34623
  }, Wh = Symbol("internals");
34624
- function qi(e) {
34624
+ function zi(e) {
34625
34625
  return e && String(e).trim().toLowerCase();
34626
34626
  }
34627
34627
  function vo(e) {
@@ -34666,7 +34666,7 @@ let vt = class {
34666
34666
  set(t, n, r) {
34667
34667
  const i = this;
34668
34668
  function s(a, l, c) {
34669
- const u = qi(l);
34669
+ const u = zi(l);
34670
34670
  if (!u)
34671
34671
  throw new Error("header name must be a non-empty string");
34672
34672
  const d = P.findKey(i, u);
@@ -34690,7 +34690,7 @@ let vt = class {
34690
34690
  return this;
34691
34691
  }
34692
34692
  get(t, n) {
34693
- if (t = qi(t), t) {
34693
+ if (t = zi(t), t) {
34694
34694
  const r = P.findKey(this, t);
34695
34695
  if (r) {
34696
34696
  const i = this[r];
@@ -34707,7 +34707,7 @@ let vt = class {
34707
34707
  }
34708
34708
  }
34709
34709
  has(t, n) {
34710
- if (t = qi(t), t) {
34710
+ if (t = zi(t), t) {
34711
34711
  const r = P.findKey(this, t);
34712
34712
  return !!(r && this[r] !== void 0 && (!n || Kl(this, this[r], r, n)));
34713
34713
  }
@@ -34717,7 +34717,7 @@ let vt = class {
34717
34717
  const r = this;
34718
34718
  let i = !1;
34719
34719
  function s(o) {
34720
- if (o = qi(o), o) {
34720
+ if (o = zi(o), o) {
34721
34721
  const a = P.findKey(r, o);
34722
34722
  a && (!n || Kl(r, r[a], a, n)) && (delete r[a], i = !0);
34723
34723
  }
@@ -34779,7 +34779,7 @@ let vt = class {
34779
34779
  accessors: {}
34780
34780
  }).accessors, i = this.prototype;
34781
34781
  function s(o) {
34782
- const a = qi(o);
34782
+ const a = zi(o);
34783
34783
  r[a] || (BP(i, o), r[a] = !0);
34784
34784
  }
34785
34785
  return P.isArray(t) ? t.forEach(s) : s(t), this;
@@ -34806,10 +34806,10 @@ function Wl(e, t) {
34806
34806
  function sy(e) {
34807
34807
  return !!(e && e.__CANCEL__);
34808
34808
  }
34809
- function mi(e, t, n) {
34809
+ function bi(e, t, n) {
34810
34810
  pe.call(this, e ?? "canceled", pe.ERR_CANCELED, t, n), this.name = "CanceledError";
34811
34811
  }
34812
- P.inherits(mi, pe, {
34812
+ P.inherits(bi, pe, {
34813
34813
  __CANCEL__: !0
34814
34814
  });
34815
34815
  function oy(e, t, n) {
@@ -35057,7 +35057,7 @@ const ly = (e) => {
35057
35057
  }, s === void 0 && o.setContentType(null), "setRequestHeader" in b && P.forEach(o.toJSON(), function(S, C) {
35058
35058
  b.setRequestHeader(C, S);
35059
35059
  }), P.isUndefined(i.withCredentials) || (b.withCredentials = !!i.withCredentials), a && a !== "json" && (b.responseType = i.responseType), c && ([h, p] = Ho(c, !0), b.addEventListener("progress", h)), l && b.upload && ([d, f] = Ho(l), b.upload.addEventListener("progress", d), b.upload.addEventListener("loadend", f)), (i.cancelToken || i.signal) && (u = (v) => {
35060
- b && (r(!v || v.type ? new mi(null, e, b) : v), b.abort(), b = null);
35060
+ b && (r(!v || v.type ? new bi(null, e, b) : v), b.abort(), b = null);
35061
35061
  }, i.cancelToken && i.cancelToken.subscribe(u), i.signal && (i.signal.aborted ? u() : i.signal.addEventListener("abort", u)));
35062
35062
  const E = FP(i.url);
35063
35063
  if (E && ot.protocols.indexOf(E) === -1) {
@@ -35074,7 +35074,7 @@ const ly = (e) => {
35074
35074
  if (!i) {
35075
35075
  i = !0, a();
35076
35076
  const u = c instanceof Error ? c : this.reason;
35077
- r.abort(u instanceof pe ? u : new mi(u instanceof Error ? u.message : u));
35077
+ r.abort(u instanceof pe ? u : new bi(u instanceof Error ? u.message : u));
35078
35078
  }
35079
35079
  };
35080
35080
  let o = t && setTimeout(() => {
@@ -35362,7 +35362,7 @@ const uy = {
35362
35362
  };
35363
35363
  function Vl(e) {
35364
35364
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
35365
- throw new mi(null, e);
35365
+ throw new bi(null, e);
35366
35366
  }
35367
35367
  function rp(e) {
35368
35368
  return Vl(e), e.headers = vt.from(e.headers), e.data = Wl.call(
@@ -35579,7 +35579,7 @@ let rD = class fy {
35579
35579
  r.unsubscribe(s);
35580
35580
  }, o;
35581
35581
  }, t(function(s, o, a) {
35582
- r.reason || (r.reason = new mi(s, o, a), n(r.reason));
35582
+ r.reason || (r.reason = new bi(s, o, a), n(r.reason));
35583
35583
  });
35584
35584
  }
35585
35585
  /**
@@ -35718,7 +35718,7 @@ function hy(e) {
35718
35718
  }
35719
35719
  const Fe = hy(Ss);
35720
35720
  Fe.Axios = hr;
35721
- Fe.CanceledError = mi;
35721
+ Fe.CanceledError = bi;
35722
35722
  Fe.CancelToken = rD;
35723
35723
  Fe.isCancel = sy;
35724
35724
  Fe.VERSION = dy;
@@ -36493,7 +36493,7 @@ function sp(e, t) {
36493
36493
  return e(t);
36494
36494
  e != null && (e.current = t);
36495
36495
  }
36496
- function bi(...e) {
36496
+ function yi(...e) {
36497
36497
  return (t) => {
36498
36498
  let n = !1;
36499
36499
  const r = e.map((i) => {
@@ -36510,7 +36510,7 @@ function bi(...e) {
36510
36510
  };
36511
36511
  }
36512
36512
  function Or(...e) {
36513
- return A.useCallback(bi(...e), e);
36513
+ return A.useCallback(yi(...e), e);
36514
36514
  }
36515
36515
  function dD(e, t) {
36516
36516
  const n = A.createContext(t), r = (s) => {
@@ -36652,7 +36652,7 @@ function xD(e) {
36652
36652
  const { children: i, ...s } = n;
36653
36653
  if (A.isValidElement(i)) {
36654
36654
  const o = ND(i), a = kD(s, i.props);
36655
- return i.type !== A.Fragment && (a.ref = r ? bi(r, o) : o), A.cloneElement(i, a);
36655
+ return i.type !== A.Fragment && (a.ref = r ? yi(r, o) : o), A.cloneElement(i, a);
36656
36656
  }
36657
36657
  return A.Children.count(i) > 1 ? A.Children.only(null) : null;
36658
36658
  });
@@ -36706,7 +36706,7 @@ var SD = [
36706
36706
  function AD(e, t) {
36707
36707
  e && x0.flushSync(() => e.dispatchEvent(t));
36708
36708
  }
36709
- function di(e) {
36709
+ function fi(e) {
36710
36710
  const t = A.useRef(e);
36711
36711
  return A.useEffect(() => {
36712
36712
  t.current = e;
@@ -36716,7 +36716,7 @@ function di(e) {
36716
36716
  }, []);
36717
36717
  }
36718
36718
  function TD(e, t = globalThis == null ? void 0 : globalThis.document) {
36719
- const n = di(e);
36719
+ const n = fi(e);
36720
36720
  A.useEffect(() => {
36721
36721
  const r = (i) => {
36722
36722
  i.key === "Escape" && n(i);
@@ -36789,7 +36789,7 @@ var ID = "DismissableLayerBranch", LD = A.forwardRef((e, t) => {
36789
36789
  });
36790
36790
  LD.displayName = ID;
36791
36791
  function MD(e, t = globalThis == null ? void 0 : globalThis.document) {
36792
- const n = di(e), r = A.useRef(!1), i = A.useRef(() => {
36792
+ const n = fi(e), r = A.useRef(!1), i = A.useRef(() => {
36793
36793
  });
36794
36794
  return A.useEffect(() => {
36795
36795
  const s = (a) => {
@@ -36819,7 +36819,7 @@ function MD(e, t = globalThis == null ? void 0 : globalThis.document) {
36819
36819
  };
36820
36820
  }
36821
36821
  function PD(e, t = globalThis == null ? void 0 : globalThis.document) {
36822
- const n = di(e), r = A.useRef(!1);
36822
+ const n = fi(e), r = A.useRef(!1);
36823
36823
  return A.useEffect(() => {
36824
36824
  const i = (s) => {
36825
36825
  s.target && !r.current && yy(RD, n, { originalEvent: s }, {
@@ -36858,7 +36858,7 @@ function BD(e) {
36858
36858
  const { children: i, ...s } = n;
36859
36859
  if (A.isValidElement(i)) {
36860
36860
  const o = qD(i), a = UD(s, i.props);
36861
- return i.type !== A.Fragment && (a.ref = r ? bi(r, o) : o), A.cloneElement(i, a);
36861
+ return i.type !== A.Fragment && (a.ref = r ? yi(r, o) : o), A.cloneElement(i, a);
36862
36862
  }
36863
36863
  return A.Children.count(i) > 1 ? A.Children.only(null) : null;
36864
36864
  });
@@ -36915,7 +36915,7 @@ var zD = [
36915
36915
  onMountAutoFocus: i,
36916
36916
  onUnmountAutoFocus: s,
36917
36917
  ...o
36918
- } = e, [a, l] = A.useState(null), c = di(i), u = di(s), d = A.useRef(null), h = Or(t, (g) => l(g)), f = A.useRef({
36918
+ } = e, [a, l] = A.useState(null), c = fi(i), u = fi(s), d = A.useRef(null), h = Or(t, (g) => l(g)), f = A.useRef({
36919
36919
  paused: !1,
36920
36920
  pause() {
36921
36921
  this.paused = !0;
@@ -37055,7 +37055,7 @@ function QD(e) {
37055
37055
  const { children: i, ...s } = n;
37056
37056
  if (A.isValidElement(i)) {
37057
37057
  const o = nB(i), a = tB(s, i.props);
37058
- return i.type !== A.Fragment && (a.ref = r ? bi(r, o) : o), A.cloneElement(i, a);
37058
+ return i.type !== A.Fragment && (a.ref = r ? yi(r, o) : o), A.cloneElement(i, a);
37059
37059
  }
37060
37060
  return A.Children.count(i) > 1 ? A.Children.only(null) : null;
37061
37061
  });
@@ -37196,7 +37196,7 @@ function cB(e) {
37196
37196
  const { children: i, ...s } = n;
37197
37197
  if (A.isValidElement(i)) {
37198
37198
  const o = hB(i), a = fB(s, i.props);
37199
- return i.type !== A.Fragment && (a.ref = r ? bi(r, o) : o), A.cloneElement(i, a);
37199
+ return i.type !== A.Fragment && (a.ref = r ? yi(r, o) : o), A.cloneElement(i, a);
37200
37200
  }
37201
37201
  return A.Children.count(i) > 1 ? A.Children.only(null) : null;
37202
37202
  });
@@ -37925,7 +37925,7 @@ var o4 = A.forwardRef(
37925
37925
  ), Uy = A.forwardRef(
37926
37926
  (e, t) => {
37927
37927
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: s, ...o } = e, a = on(wr, n), l = A.useRef(null), c = Or(t, l);
37928
- return gB(), /* @__PURE__ */ U(es, { children: [
37928
+ return gB(), /* @__PURE__ */ U(ri, { children: [
37929
37929
  /* @__PURE__ */ x(
37930
37930
  Ey,
37931
37931
  {
@@ -37949,7 +37949,7 @@ var o4 = A.forwardRef(
37949
37949
  )
37950
37950
  }
37951
37951
  ),
37952
- /* @__PURE__ */ U(es, { children: [
37952
+ /* @__PURE__ */ U(ri, { children: [
37953
37953
  /* @__PURE__ */ x(l4, { titleId: a.titleId }),
37954
37954
  /* @__PURE__ */ x(u4, { contentRef: l, descriptionId: a.descriptionId })
37955
37955
  ] })
@@ -38241,7 +38241,7 @@ function R4(e, ...t) {
38241
38241
  const Le = (e) => {
38242
38242
  const t = (n) => n[e] || [];
38243
38243
  return t.isThemeGetter = !0, t;
38244
- }, Jy = /^\[(?:([a-z-]+):)?(.+)\]$/i, I4 = /^\d+\/\d+$/, L4 = /* @__PURE__ */ new Set(["px", "full", "screen"]), M4 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, P4 = /\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$/, D4 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, B4 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, F4 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Tn = (e) => ni(e) || L4.has(e) || I4.test(e), $n = (e) => yi(e, "length", K4), ni = (e) => !!e && !Number.isNaN(Number(e)), rc = (e) => yi(e, "number", ni), zi = (e) => !!e && Number.isInteger(Number(e)), $4 = (e) => e.endsWith("%") && ni(e.slice(0, -1)), ge = (e) => Jy.test(e), Un = (e) => M4.test(e), U4 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), q4 = (e) => yi(e, U4, e0), z4 = (e) => yi(e, "position", e0), H4 = /* @__PURE__ */ new Set(["image", "url"]), j4 = (e) => yi(e, H4, V4), G4 = (e) => yi(e, "", W4), Hi = () => !0, yi = (e, t, n) => {
38244
+ }, Jy = /^\[(?:([a-z-]+):)?(.+)\]$/i, I4 = /^\d+\/\d+$/, L4 = /* @__PURE__ */ new Set(["px", "full", "screen"]), M4 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, P4 = /\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$/, D4 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, B4 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, F4 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Tn = (e) => ni(e) || L4.has(e) || I4.test(e), $n = (e) => Ei(e, "length", K4), ni = (e) => !!e && !Number.isNaN(Number(e)), rc = (e) => Ei(e, "number", ni), Hi = (e) => !!e && Number.isInteger(Number(e)), $4 = (e) => e.endsWith("%") && ni(e.slice(0, -1)), ge = (e) => Jy.test(e), Un = (e) => M4.test(e), U4 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), q4 = (e) => Ei(e, U4, e0), z4 = (e) => Ei(e, "position", e0), H4 = /* @__PURE__ */ new Set(["image", "url"]), j4 = (e) => Ei(e, H4, V4), G4 = (e) => Ei(e, "", W4), ji = () => !0, Ei = (e, t, n) => {
38245
38245
  const r = Jy.exec(e);
38246
38246
  return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
38247
38247
  }, K4 = (e) => (
@@ -38255,7 +38255,7 @@ const Le = (e) => {
38255
38255
  cacheSize: 500,
38256
38256
  separator: ":",
38257
38257
  theme: {
38258
- colors: [Hi],
38258
+ colors: [ji],
38259
38259
  spacing: [Tn, $n],
38260
38260
  blur: ["none", "", Un, ge],
38261
38261
  brightness: W(),
@@ -38495,7 +38495,7 @@ const Le = (e) => {
38495
38495
  * @see https://tailwindcss.com/docs/z-index
38496
38496
  */
38497
38497
  z: [{
38498
- z: ["auto", zi, ge]
38498
+ z: ["auto", Hi, ge]
38499
38499
  }],
38500
38500
  // Flexbox and Grid
38501
38501
  /**
@@ -38545,14 +38545,14 @@ const Le = (e) => {
38545
38545
  * @see https://tailwindcss.com/docs/order
38546
38546
  */
38547
38547
  order: [{
38548
- order: ["first", "last", "none", zi, ge]
38548
+ order: ["first", "last", "none", Hi, ge]
38549
38549
  }],
38550
38550
  /**
38551
38551
  * Grid Template Columns
38552
38552
  * @see https://tailwindcss.com/docs/grid-template-columns
38553
38553
  */
38554
38554
  "grid-cols": [{
38555
- "grid-cols": [Hi]
38555
+ "grid-cols": [ji]
38556
38556
  }],
38557
38557
  /**
38558
38558
  * Grid Column Start / End
@@ -38560,7 +38560,7 @@ const Le = (e) => {
38560
38560
  */
38561
38561
  "col-start-end": [{
38562
38562
  col: ["auto", {
38563
- span: ["full", zi, ge]
38563
+ span: ["full", Hi, ge]
38564
38564
  }, ge]
38565
38565
  }],
38566
38566
  /**
@@ -38582,7 +38582,7 @@ const Le = (e) => {
38582
38582
  * @see https://tailwindcss.com/docs/grid-template-rows
38583
38583
  */
38584
38584
  "grid-rows": [{
38585
- "grid-rows": [Hi]
38585
+ "grid-rows": [ji]
38586
38586
  }],
38587
38587
  /**
38588
38588
  * Grid Row Start / End
@@ -38590,7 +38590,7 @@ const Le = (e) => {
38590
38590
  */
38591
38591
  "row-start-end": [{
38592
38592
  row: ["auto", {
38593
- span: [zi, ge]
38593
+ span: [Hi, ge]
38594
38594
  }, ge]
38595
38595
  }],
38596
38596
  /**
@@ -38945,7 +38945,7 @@ const Le = (e) => {
38945
38945
  * @see https://tailwindcss.com/docs/font-family
38946
38946
  */
38947
38947
  "font-family": [{
38948
- font: [Hi]
38948
+ font: [ji]
38949
38949
  }],
38950
38950
  /**
38951
38951
  * Font Variant Numeric
@@ -39630,7 +39630,7 @@ const Le = (e) => {
39630
39630
  * @see https://tailwindcss.com/docs/box-shadow-color
39631
39631
  */
39632
39632
  "shadow-color": [{
39633
- shadow: [Hi]
39633
+ shadow: [ji]
39634
39634
  }],
39635
39635
  /**
39636
39636
  * Opacity
@@ -39909,7 +39909,7 @@ const Le = (e) => {
39909
39909
  * @see https://tailwindcss.com/docs/rotate
39910
39910
  */
39911
39911
  rotate: [{
39912
- rotate: [zi, ge]
39912
+ rotate: [Hi, ge]
39913
39913
  }],
39914
39914
  /**
39915
39915
  * Translate X
@@ -40296,7 +40296,7 @@ const Cs = d4, dF = f4, X4 = h4, Os = y4, t0 = A.forwardRef(({ className: e, ...
40296
40296
  }
40297
40297
  ));
40298
40298
  t0.displayName = "ModalOverlay";
40299
- const Ei = A.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ U(X4, { children: [
40299
+ const wi = A.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ U(X4, { children: [
40300
40300
  /* @__PURE__ */ x(t0, {}),
40301
40301
  /* @__PURE__ */ x(
40302
40302
  g4,
@@ -40315,18 +40315,18 @@ const Ei = A.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
40315
40315
  }
40316
40316
  )
40317
40317
  ] }));
40318
- Ei.displayName = "ModalContent";
40319
- const wi = ({
40318
+ wi.displayName = "ModalContent";
40319
+ const xi = ({
40320
40320
  className: e,
40321
40321
  ...t
40322
40322
  }) => /* @__PURE__ */ x("div", { className: kt("flex flex-col space-y-1.5 px-6 pt-6", e), ...t });
40323
- wi.displayName = "ModalHeader";
40323
+ xi.displayName = "ModalHeader";
40324
40324
  const Rs = ({
40325
40325
  className: e,
40326
40326
  ...t
40327
40327
  }) => /* @__PURE__ */ x("div", { className: kt("px-6 py-4", e), ...t });
40328
40328
  Rs.displayName = "ModalBody";
40329
- const xi = ({
40329
+ const vi = ({
40330
40330
  className: e,
40331
40331
  ...t
40332
40332
  }) => /* @__PURE__ */ x(
@@ -40339,8 +40339,8 @@ const xi = ({
40339
40339
  ...t
40340
40340
  }
40341
40341
  );
40342
- xi.displayName = "ModalFooter";
40343
- const vi = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
40342
+ vi.displayName = "ModalFooter";
40343
+ const _i = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
40344
40344
  m4,
40345
40345
  {
40346
40346
  ref: n,
@@ -40348,7 +40348,7 @@ const vi = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
40348
40348
  ...t
40349
40349
  }
40350
40350
  ));
40351
- vi.displayName = "ModalTitle";
40351
+ _i.displayName = "ModalTitle";
40352
40352
  const Na = A.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
40353
40353
  b4,
40354
40354
  {
@@ -40393,9 +40393,9 @@ function fF({
40393
40393
  const k = "w-full rounded-lg border px-4 py-2.5 bg-white dark:bg-gray-900 text-gray-900 dark:text-gray-100 focus:border-blue-500 dark:focus:border-blue-400 focus:outline-none focus:ring-1 focus:ring-blue-500 dark:focus:ring-blue-400 disabled:opacity-50 disabled:cursor-not-allowed placeholder:text-gray-400 dark:placeholder:text-gray-500", L = f && !a.trim() ? "border-red-400 dark:border-red-500" : "border-gray-300 dark:border-gray-600";
40394
40394
  return `${k} ${L}`;
40395
40395
  };
40396
- return /* @__PURE__ */ x(Cs, { open: n, onOpenChange: v, children: /* @__PURE__ */ U(Ei, { className: "max-w-2xl", children: [
40397
- /* @__PURE__ */ U(wi, { children: [
40398
- /* @__PURE__ */ x(vi, { children: o(e === "create" ? "aiGenerator.createTitle" : "aiGenerator.updateTitle") }),
40396
+ return /* @__PURE__ */ x(Cs, { open: n, onOpenChange: v, children: /* @__PURE__ */ U(wi, { className: "max-w-2xl", children: [
40397
+ /* @__PURE__ */ U(xi, { children: [
40398
+ /* @__PURE__ */ x(_i, { children: o(e === "create" ? "aiGenerator.createTitle" : "aiGenerator.updateTitle") }),
40399
40399
  /* @__PURE__ */ x(Na, { children: o(e === "create" ? "aiGenerator.createDescription" : "aiGenerator.updateDescription") })
40400
40400
  ] }),
40401
40401
  /* @__PURE__ */ x(Rs, { children: /* @__PURE__ */ U("div", { className: "space-y-4", children: [
@@ -40447,7 +40447,7 @@ function fF({
40447
40447
  ] })
40448
40448
  ] }) })
40449
40449
  ] }) }),
40450
- /* @__PURE__ */ U(xi, { children: [
40450
+ /* @__PURE__ */ U(vi, { children: [
40451
40451
  /* @__PURE__ */ x(Os, { asChild: !0, children: /* @__PURE__ */ x(
40452
40452
  "button",
40453
40453
  {
@@ -40464,13 +40464,13 @@ function fF({
40464
40464
  onClick: E,
40465
40465
  disabled: d || a.trim().length < 10,
40466
40466
  className: "rounded-lg bg-gradient-to-r from-blue-600 to-purple-600 px-6 py-2 text-sm font-medium text-white hover:from-blue-700 hover:to-purple-700 disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2 transition-colors",
40467
- children: d ? /* @__PURE__ */ U(es, { children: [
40467
+ children: d ? /* @__PURE__ */ U(ri, { children: [
40468
40468
  /* @__PURE__ */ U("svg", { className: "h-4 w-4 animate-spin", fill: "none", viewBox: "0 0 24 24", children: [
40469
40469
  /* @__PURE__ */ x("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }),
40470
40470
  /* @__PURE__ */ x("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" })
40471
40471
  ] }),
40472
40472
  /* @__PURE__ */ x("span", { children: o("aiGenerator.generating") })
40473
- ] }) : /* @__PURE__ */ U(es, { children: [
40473
+ ] }) : /* @__PURE__ */ U(ri, { children: [
40474
40474
  /* @__PURE__ */ x("svg", { className: "h-4 w-4", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ x("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 10V3L4 14h7v7l9-11h-7z" }) }),
40475
40475
  /* @__PURE__ */ x("span", { children: o(e === "create" ? "aiGenerator.createWithAI" : "aiGenerator.updateWithAI") })
40476
40476
  ] })
@@ -40676,8 +40676,8 @@ function pF({
40676
40676
  }, b = (E) => {
40677
40677
  E || r();
40678
40678
  }, y = t.filter((E) => E.categoryId !== (e == null ? void 0 : e.categoryId));
40679
- return /* @__PURE__ */ x(Cs, { open: n, onOpenChange: b, children: /* @__PURE__ */ U(Ei, { children: [
40680
- /* @__PURE__ */ x(wi, { children: /* @__PURE__ */ x(vi, { children: o(e ? "categoryModal.editCategory" : "categoryModal.createCategory") }) }),
40679
+ return /* @__PURE__ */ x(Cs, { open: n, onOpenChange: b, children: /* @__PURE__ */ U(wi, { children: [
40680
+ /* @__PURE__ */ x(xi, { children: /* @__PURE__ */ x(_i, { children: o(e ? "categoryModal.editCategory" : "categoryModal.createCategory") }) }),
40681
40681
  /* @__PURE__ */ U("form", { onSubmit: g, children: [
40682
40682
  /* @__PURE__ */ x(Rs, { children: /* @__PURE__ */ U("div", { className: "space-y-4", children: [
40683
40683
  /* @__PURE__ */ U("div", { className: "space-y-2", children: [
@@ -40712,7 +40712,7 @@ function pF({
40712
40712
  )
40713
40713
  ] })
40714
40714
  ] }) }),
40715
- /* @__PURE__ */ U(xi, { children: [
40715
+ /* @__PURE__ */ U(vi, { children: [
40716
40716
  /* @__PURE__ */ x(Os, { asChild: !0, children: /* @__PURE__ */ x(
40717
40717
  "button",
40718
40718
  {
@@ -40828,8 +40828,8 @@ function mF({
40828
40828
  };
40829
40829
  return /* @__PURE__ */ x(Cs, { open: t, onOpenChange: (b) => {
40830
40830
  b || n();
40831
- }, children: /* @__PURE__ */ U(Ei, { className: "max-w-md", children: [
40832
- /* @__PURE__ */ x(wi, { children: /* @__PURE__ */ x(vi, { children: s(e ? "tagModal.editTag" : "tagModal.createTag") }) }),
40831
+ }, children: /* @__PURE__ */ U(wi, { className: "max-w-md", children: [
40832
+ /* @__PURE__ */ x(xi, { children: /* @__PURE__ */ x(_i, { children: s(e ? "tagModal.editTag" : "tagModal.createTag") }) }),
40833
40833
  /* @__PURE__ */ U("form", { onSubmit: p, children: [
40834
40834
  /* @__PURE__ */ x(Rs, { children: /* @__PURE__ */ U("div", { className: "space-y-4", children: [
40835
40835
  /* @__PURE__ */ U("div", { className: "space-y-2", children: [
@@ -40863,7 +40863,7 @@ function mF({
40863
40863
  /* @__PURE__ */ x("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: s("tagModal.slugHint") })
40864
40864
  ] })
40865
40865
  ] }) }),
40866
- /* @__PURE__ */ U(xi, { children: [
40866
+ /* @__PURE__ */ U(vi, { children: [
40867
40867
  /* @__PURE__ */ x(Os, { asChild: !0, children: /* @__PURE__ */ x(
40868
40868
  "button",
40869
40869
  {
@@ -40913,9 +40913,9 @@ function bF({
40913
40913
  };
40914
40914
  return /* @__PURE__ */ x(Cs, { open: n, onOpenChange: (g) => {
40915
40915
  g || r();
40916
- }, children: /* @__PURE__ */ U(Ei, { className: "max-w-md", children: [
40917
- /* @__PURE__ */ U(wi, { children: [
40918
- /* @__PURE__ */ x(vi, { children: o("tagMerge.title") }),
40916
+ }, children: /* @__PURE__ */ U(wi, { className: "max-w-md", children: [
40917
+ /* @__PURE__ */ U(xi, { children: [
40918
+ /* @__PURE__ */ x(_i, { children: o("tagMerge.title") }),
40919
40919
  /* @__PURE__ */ x(Na, { children: /* @__PURE__ */ x(
40920
40920
  "span",
40921
40921
  {
@@ -40966,7 +40966,7 @@ function bF({
40966
40966
  ] }),
40967
40967
  d.length === 0 && /* @__PURE__ */ x("div", { className: "rounded-lg bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 p-4", children: /* @__PURE__ */ x("p", { className: "text-sm text-yellow-800 dark:text-yellow-300", children: o("tagMerge.noTagsAvailable") }) })
40968
40968
  ] }) }),
40969
- /* @__PURE__ */ U(xi, { children: [
40969
+ /* @__PURE__ */ U(vi, { children: [
40970
40970
  /* @__PURE__ */ x(Os, { asChild: !0, children: /* @__PURE__ */ x(
40971
40971
  "button",
40972
40972
  {
@@ -41314,7 +41314,7 @@ function s5(e) {
41314
41314
  let { children: i, ...s } = n;
41315
41315
  if (s0(i) && typeof Go == "function" && (i = Go(i._payload)), A.isValidElement(i)) {
41316
41316
  const o = c5(i), a = l5(s, i.props);
41317
- return i.type !== A.Fragment && (a.ref = r ? bi(r, o) : o), A.cloneElement(i, a);
41317
+ return i.type !== A.Fragment && (a.ref = r ? yi(r, o) : o), A.cloneElement(i, a);
41318
41318
  }
41319
41319
  return A.Children.count(i) > 1 ? A.Children.only(null) : null;
41320
41320
  });
@@ -41548,7 +41548,7 @@ d0.displayName = td;
41548
41548
  var f0 = "AvatarImage", h0 = A.forwardRef(
41549
41549
  (e, t) => {
41550
41550
  const { __scopeAvatar: n, src: r, onLoadingStatusChange: i = () => {
41551
- }, ...s } = e, o = u0(f0, n), a = _5(r, s), l = di((c) => {
41551
+ }, ...s } = e, o = u0(f0, n), a = _5(r, s), l = fi((c) => {
41552
41552
  i(c), o.onImageLoadingStatusChange(c);
41553
41553
  });
41554
41554
  return Qn(() => {
@@ -41639,12 +41639,12 @@ function xF({
41639
41639
  variant: a = "default",
41640
41640
  loading: l = !1
41641
41641
  }) {
41642
- return /* @__PURE__ */ x(Cs, { open: e, onOpenChange: t, children: /* @__PURE__ */ U(Ei, { className: "max-w-md", children: [
41643
- /* @__PURE__ */ U(wi, { children: [
41644
- /* @__PURE__ */ x(vi, { children: r }),
41642
+ return /* @__PURE__ */ x(Cs, { open: e, onOpenChange: t, children: /* @__PURE__ */ U(wi, { className: "max-w-md", children: [
41643
+ /* @__PURE__ */ U(xi, { children: [
41644
+ /* @__PURE__ */ x(_i, { children: r }),
41645
41645
  i && /* @__PURE__ */ x(Na, { children: i })
41646
41646
  ] }),
41647
- /* @__PURE__ */ U(xi, { children: [
41647
+ /* @__PURE__ */ U(vi, { children: [
41648
41648
  /* @__PURE__ */ x(Os, { asChild: !0, children: /* @__PURE__ */ x(
41649
41649
  "button",
41650
41650
  {
@@ -41785,13 +41785,13 @@ export {
41785
41785
  Cs as Modal,
41786
41786
  Rs as ModalBody,
41787
41787
  Os as ModalClose,
41788
- Ei as ModalContent,
41788
+ wi as ModalContent,
41789
41789
  Na as ModalDescription,
41790
- xi as ModalFooter,
41791
- wi as ModalHeader,
41790
+ vi as ModalFooter,
41791
+ xi as ModalHeader,
41792
41792
  t0 as ModalOverlay,
41793
41793
  X4 as ModalPortal,
41794
- vi as ModalTitle,
41794
+ _i as ModalTitle,
41795
41795
  dF as ModalTrigger,
41796
41796
  qn as NAMESPACE,
41797
41797
  lF as NNewsProvider,