@templatical/editor 0.8.4 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/{AiChatSidebar-CnRXeK77.js → AiChatSidebar-BUKj9n02.js} +5 -5
  2. package/dist/{AiFeatureMenu-BYDDrpj6.js → AiFeatureMenu-Co14YVJt.js} +3 -3
  3. package/dist/{BlockIssueBadge-DM-vXeD6.js → BlockIssueBadge-DThKKeub.js} +2 -2
  4. package/dist/{CloudEditor-B9a_K6Cm.js → CloudEditor-CAtw_sFC.js} +218 -217
  5. package/dist/{CollaboratorBar-HN4whzM-.js → CollaboratorBar-Bc6q0gB9.js} +2 -2
  6. package/dist/{CommentsSidebar-_llWQ4VT.js → CommentsSidebar-DiH4R4F0.js} +3 -3
  7. package/dist/{CountdownBlock-I99sC0C5.js → CountdownBlock-BTPefclD.js} +2 -2
  8. package/dist/{CountdownToolbar-BUhOUiQ9.js → CountdownToolbar-Dvr2icg-.js} +2 -2
  9. package/dist/{DesignReferenceSidebar-0GwjUn2V.js → DesignReferenceSidebar-BP32MgpS.js} +3 -3
  10. package/dist/{IssuesPanel-4MKZe8yP.js → IssuesPanel-B1LT91IX.js} +2 -2
  11. package/dist/{ModuleBrowserModal-DPZBsvqk.js → ModuleBrowserModal-CWegFoOA.js} +77 -85
  12. package/dist/{ModulePreviewCanvas-CK4j11-e.js → ModulePreviewCanvas-D9WUSSRT.js} +2 -2
  13. package/dist/{NumberWithSuffix-CxMFy_j3.js → NumberWithSuffix-CxUBW_V2.js} +2 -2
  14. package/dist/{ParagraphEditor-DBus_iHH.js → ParagraphEditor-DrAz2yot.js} +126 -126
  15. package/dist/{RichTextEditorContent-B_KCY6T1.js → RichTextEditorContent-gR169m1-.js} +4 -4
  16. package/dist/{SaveModuleDialog-DORRSbBo.js → SaveModuleDialog-DWidA0c9.js} +6 -6
  17. package/dist/{SnapshotHistory-DTMVEk03.js → SnapshotHistory-CIo2Jaw-.js} +4 -4
  18. package/dist/{TemplateScoringPanel-BIwEwFxD.js → TemplateScoringPanel-seBvvn8O.js} +2 -2
  19. package/dist/{TestEmailModal-DJmYp0Qi.js → TestEmailModal-BuCuWp3N.js} +3 -3
  20. package/dist/{TitleEditor-70d9AF1V.js → TitleEditor-BmW0uMl7.js} +67 -67
  21. package/dist/{TplModal-BEfwlvPC.js → TplModal-YFpBaiLj.js} +4 -4
  22. package/dist/{blockTypeIcons-2DRoPa3K.js → blockTypeIcons-DCkHXPhx.js} +19 -11
  23. package/dist/bundle-stats.json +8 -8
  24. package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js → AiFeatureMenu-Dayzk2H7.js} +2 -2
  25. package/dist/cdn/chunks/{AiFeatureMenu-CcuKnisc.js.map → AiFeatureMenu-Dayzk2H7.js.map} +1 -1
  26. package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js → BlockIssueBadge-D_US2wqo.js} +4 -4
  27. package/dist/cdn/chunks/{BlockIssueBadge-Sr3is7Wr.js.map → BlockIssueBadge-D_US2wqo.js.map} +1 -1
  28. package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js → CloudEditor-CyJItWsK.js} +186 -185
  29. package/dist/cdn/chunks/{CloudEditor-Bi10d2Gq.js.map → CloudEditor-CyJItWsK.js.map} +1 -1
  30. package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js → CollaboratorBar-C4CFs5EJ.js} +3 -3
  31. package/dist/cdn/chunks/{CollaboratorBar-C0zeecvl.js.map → CollaboratorBar-C4CFs5EJ.js.map} +1 -1
  32. package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js → CountdownBlock-D6lCXhZA.js} +2 -2
  33. package/dist/cdn/chunks/{CountdownBlock-CpSUUDDs.js.map → CountdownBlock-D6lCXhZA.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js → CountdownToolbar-BsGUxoRv.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownToolbar-BBzdR-00.js.map → CountdownToolbar-BsGUxoRv.js.map} +1 -1
  36. package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js → IssuesPanel-DeHTmRDz.js} +5 -5
  37. package/dist/cdn/chunks/{IssuesPanel-Bthq6qoZ.js.map → IssuesPanel-DeHTmRDz.js.map} +1 -1
  38. package/dist/cdn/chunks/{ModuleBrowserModal-CFMd6M7E.js → ModuleBrowserModal-Cgjz4xAz.js} +8 -8
  39. package/dist/cdn/chunks/ModuleBrowserModal-Cgjz4xAz.js.map +1 -0
  40. package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js → ModulePreviewCanvas-CeS9PsAA.js} +2 -2
  41. package/dist/cdn/chunks/{ModulePreviewCanvas-BkcPcF5C.js.map → ModulePreviewCanvas-CeS9PsAA.js.map} +1 -1
  42. package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js → NumberWithSuffix-Bp-idLCc.js} +2 -2
  43. package/dist/cdn/chunks/{NumberWithSuffix-C2hH_ZIK.js.map → NumberWithSuffix-Bp-idLCc.js.map} +1 -1
  44. package/dist/cdn/chunks/{ParagraphEditor-BIWXLPfu.js → ParagraphEditor-fM9aFu8T.js} +116 -116
  45. package/dist/cdn/chunks/ParagraphEditor-fM9aFu8T.js.map +1 -0
  46. package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js → RichTextEditorContent-DwNPE5H5.js} +4 -4
  47. package/dist/cdn/chunks/{RichTextEditorContent-DU0gc4bi.js.map → RichTextEditorContent-DwNPE5H5.js.map} +1 -1
  48. package/dist/cdn/chunks/{SaveModuleDialog-DR9EZlWe.js → SaveModuleDialog-BrtDXzIz.js} +4 -4
  49. package/dist/cdn/chunks/SaveModuleDialog-BrtDXzIz.js.map +1 -0
  50. package/dist/cdn/chunks/TitleEditor-D0rSnye0.js +175 -0
  51. package/dist/cdn/chunks/TitleEditor-D0rSnye0.js.map +1 -0
  52. package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js → blockTypeIcons-YOEe5mDE.js} +3 -3
  53. package/dist/cdn/chunks/{blockTypeIcons-eVGGIdne.js.map → blockTypeIcons-YOEe5mDE.js.map} +1 -1
  54. package/dist/{de-ED7c5RpG.js → cdn/chunks/de-CATfXDKV.js} +14 -1
  55. package/dist/cdn/chunks/{de-ED7c5RpG.js.map → de-CATfXDKV.js.map} +1 -1
  56. package/dist/cdn/chunks/{en-ivilDUn0.js → en-CwCAgYL5.js} +13 -2
  57. package/dist/cdn/chunks/{en-ivilDUn0.js.map → en-CwCAgYL5.js.map} +1 -1
  58. package/dist/cdn/chunks/{extensions-CvCoOuWB.js → extensions-GYsbQFPr.js} +26 -23
  59. package/dist/cdn/chunks/extensions-GYsbQFPr.js.map +1 -0
  60. package/dist/cdn/chunks/{features-CUYy5kZQ.js → features-D-2kVhHY.js} +1264 -1188
  61. package/dist/cdn/chunks/features-D-2kVhHY.js.map +1 -0
  62. package/dist/cdn/chunks/{icons-C4zY5-I3.js → icons-fZoyKV_s.js} +2 -2
  63. package/dist/cdn/chunks/{icons-C4zY5-I3.js.map → icons-fZoyKV_s.js.map} +1 -1
  64. package/dist/cdn/chunks/{media-library-BNt3msId.js → media-library-CO2WOETY.js} +240 -240
  65. package/dist/cdn/chunks/{media-library-BNt3msId.js.map → media-library-CO2WOETY.js.map} +1 -1
  66. package/dist/{pt-BR-B5tm2iBl.js → cdn/chunks/pt-BR-D3Mg7AKe.js} +14 -1
  67. package/dist/cdn/chunks/{pt-BR-B5tm2iBl.js.map → pt-BR-D3Mg7AKe.js.map} +1 -1
  68. package/dist/cdn/chunks/{quality-BTPRPGB-.js → quality-BxPiS-wv.js} +603 -577
  69. package/dist/cdn/chunks/{quality-BTPRPGB-.js.map → quality-BxPiS-wv.js.map} +1 -1
  70. package/dist/cdn/chunks/{renderer-IOmuuZjJ.js → renderer-7z2t_bYQ.js} +142 -108
  71. package/dist/cdn/chunks/{renderer-IOmuuZjJ.js.map → renderer-7z2t_bYQ.js.map} +1 -1
  72. package/dist/cdn/chunks/{src-Dp0ZFQ4-.js → src-ftxPuuQh.js} +4 -4
  73. package/dist/cdn/chunks/{src-Dp0ZFQ4-.js.map → src-ftxPuuQh.js.map} +1 -1
  74. package/dist/cdn/chunks/{styles-DtgjgsBH.js → styles-o0HIrw9F.js} +877 -622
  75. package/dist/cdn/chunks/styles-o0HIrw9F.js.map +1 -0
  76. package/dist/cdn/chunks/{tiptap-BErAJEvo.js → tiptap-BBbH3IT9.js} +849 -725
  77. package/dist/cdn/chunks/tiptap-BBbH3IT9.js.map +1 -0
  78. package/dist/cdn/editor.css +1 -1
  79. package/dist/cdn/editor.js +102 -101
  80. package/dist/cdn/editor.js.map +1 -1
  81. package/dist/{cloud-Dz8Ay2FM.js → cloud-VxYMtfXC.js} +1 -1
  82. package/dist/{cdn/chunks/de-ED7c5RpG.js → de-CATfXDKV.js} +12 -3
  83. package/dist/{dist-BygsE-n3.js → dist-BDgf2G-V.js} +453 -314
  84. package/dist/{dist-BtDBsF3N.js → dist-BxP6TB0l.js} +2 -2
  85. package/dist/{dist-DWhP3Dp2.js → dist-BzuC8o3y.js} +1209 -1217
  86. package/dist/{dist-v-O2Subd.js → dist-C0jo8wtG.js} +2 -2
  87. package/dist/{dist-BTgujVMy.js → dist-C8wMh_gi.js} +2 -2
  88. package/dist/{dist-Cipw2HFH.js → dist-CIV3Brg-.js} +37 -4
  89. package/dist/{dist-HO0vjY5Z.js → dist-CNLAS2v2.js} +130 -124
  90. package/dist/{dist-BS5Oi67L.js → dist-CUpJmrjt.js} +2 -2
  91. package/dist/dist-D5lmdi1F.js +5 -0
  92. package/dist/{dist-T-ORzNfM.js → dist-D8C6jIXM.js} +168 -175
  93. package/dist/dist-DILjuzSv.js +5 -0
  94. package/dist/{dist-CDtcJMB2.js → dist-DXaxGLsw.js} +33 -33
  95. package/dist/{dist-DnGTaPRX.js → dist-DYO-w_Jf.js} +2 -2
  96. package/dist/{dist-CDZCyoRy.js → dist-UK-lbEBc.js} +2 -2
  97. package/dist/{en-ivilDUn0.js → en-CwCAgYL5.js} +12 -1
  98. package/dist/{extensions-BmGiz8Oo.js → extensions-Mj2-D8uK.js} +32 -29
  99. package/dist/{keys-B8K7Z7Ef.js → keys-BiQlvx51.js} +3 -3
  100. package/dist/{cdn/chunks/pt-BR-B5tm2iBl.js → pt-BR-D3Mg7AKe.js} +12 -3
  101. package/dist/style.css +1 -1
  102. package/dist/{styles-DFeOGKa_.js → styles-CJtcKmsx.js} +857 -601
  103. package/dist/templatical-editor.js +104 -103
  104. package/dist/{useCloudI18n-DFzVgYhJ.js → useCloudI18n-DKWJg6rJ.js} +1 -1
  105. package/dist/{useEditorCore-BXz-UXPd.js → useEditorCore-CEkf_VWX.js} +663 -633
  106. package/dist/{useI18n-CBbStVlD.js → useI18n-Besvmtxy.js} +1 -1
  107. package/dist/useMergeTag-WNzaCpXR.js +44 -0
  108. package/dist/{usePopoverRoot-62PlZQQ3.js → usePopoverRoot-CKt956u-.js} +1 -1
  109. package/package.json +21 -21
  110. package/dist/cdn/chunks/ModuleBrowserModal-CFMd6M7E.js.map +0 -1
  111. package/dist/cdn/chunks/ParagraphEditor-BIWXLPfu.js.map +0 -1
  112. package/dist/cdn/chunks/SaveModuleDialog-DR9EZlWe.js.map +0 -1
  113. package/dist/cdn/chunks/TitleEditor-DZcx2N4R.js +0 -175
  114. package/dist/cdn/chunks/TitleEditor-DZcx2N4R.js.map +0 -1
  115. package/dist/cdn/chunks/extensions-CvCoOuWB.js.map +0 -1
  116. package/dist/cdn/chunks/features-CUYy5kZQ.js.map +0 -1
  117. package/dist/cdn/chunks/styles-DtgjgsBH.js.map +0 -1
  118. package/dist/cdn/chunks/tiptap-BErAJEvo.js.map +0 -1
  119. package/dist/dist-BySzGkeC.js +0 -5
  120. package/dist/dist-D7JUZ2Kd.js +0 -5
  121. package/dist/useMergeTag-CS2bmWA0.js +0 -34
@@ -1,5 +1,5 @@
1
- import { Kt as e, c as t, ft as n, i as r } from "./dist-DWhP3Dp2.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4_/node_modules/@tiptap/extension-text-style/dist/index.js
1
+ import { Gt as e, c as t, dt as n, i as r } from "./dist-BzuC8o3y.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6_/node_modules/@tiptap/extension-text-style/dist/index.js
3
3
  var i = 20, a = (e, t = 0) => {
4
4
  let n = [];
5
5
  return !e.children.length || t > i || Array.from(e.children).forEach((e) => {
@@ -1,5 +1,5 @@
1
- import { Kt as e, c as t } from "./dist-DWhP3Dp2.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4__@tiptap+pm@3.23.4/node_modules/@tiptap/extension-subscript/dist/index.js
1
+ import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-subscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-subscript/dist/index.js
3
3
  var n = t.create({
4
4
  name: "subscript",
5
5
  addOptions() {
@@ -326,7 +326,7 @@ function q(e, t) {
326
326
  return n ? n.label : e;
327
327
  }
328
328
  function J(e, t) {
329
- return e.replace(/(<span[^>]*\sdata-merge-tag="([^"]*)"[^>]*>)(.*?)(<\/span>)/g, (e, n, r, i, a) => `${n}${q(r, t)}${a}`);
329
+ return $(e, "data-merge-tag", (e) => q(e, t));
330
330
  }
331
331
  function Y(e, t) {
332
332
  if (!e) return !1;
@@ -341,9 +341,42 @@ function Z(e, t) {
341
341
  return r && r[1] ? r[1].toUpperCase() : e;
342
342
  }
343
343
  function Q(e, t) {
344
- return e.replace(/(<span[^>]*\sdata-logic-merge-tag="([^"]*)"[^>]*>)(.*?)(<\/span>)/g, (e, n, r, i, a) => `${n}${Z(r, t)}${a}`);
344
+ return $(e, "data-logic-merge-tag", (e) => Z(e, t));
345
+ }
346
+ function $(e, t, n) {
347
+ let r = RegExp(`(?:^|\\s)${t}="([^"<>]*)"`), i = "", a = 0;
348
+ for (; a < e.length;) {
349
+ let t = e.indexOf("<span", a);
350
+ if (t === -1) {
351
+ i += e.substring(a);
352
+ break;
353
+ }
354
+ let o = e[t + 5];
355
+ if (o !== ">" && o !== " " && o !== " " && o !== "\n" && o !== "\r" && o !== "/") {
356
+ i += e.substring(a, t + 5), a = t + 5;
357
+ continue;
358
+ }
359
+ let s = e.indexOf(">", t + 5);
360
+ if (s === -1) {
361
+ i += e.substring(a);
362
+ break;
363
+ }
364
+ let c = e.indexOf("</span>", s + 1);
365
+ if (c === -1) {
366
+ i += e.substring(a);
367
+ break;
368
+ }
369
+ let l = e.substring(t + 5, s), u = r.exec(l);
370
+ if (!u) {
371
+ i += e.substring(a, t + 5), a = t + 5;
372
+ continue;
373
+ }
374
+ let d = u[1], f = n(d);
375
+ i += e.substring(a, s + 1), i += f, i += "</span>", a = c + 7;
376
+ }
377
+ return i;
345
378
  }
346
- var $ = class extends Error {
379
+ var ee = class extends Error {
347
380
  constructor(e, t) {
348
381
  super(e), this.statusCode = t, this.name = "SdkError";
349
382
  }
@@ -359,4 +392,4 @@ var $ = class extends Error {
359
392
  }
360
393
  };
361
394
  //#endregion
362
- export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, $ as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
395
+ export { J as A, Z as C, X as D, t as E, K as O, b as S, U as T, A as _, Y as a, C as b, I as c, D as d, M as f, O as g, w as h, B as i, W as j, Q as k, R as l, N as m, V as n, z as o, T as p, ee as r, E as s, e as t, v as u, j as v, q as w, k as x, F as y };
@@ -1,20 +1,20 @@
1
- import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, Z as c, d as l, q as u, rt as d, tt as f, w as p, x as m } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
1
+ import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, X as c, Z as l, d as u, q as d, rt as f, tt as p, w as m, x as h } from "./vue.runtime.esm-bundler-BDSGA5hA.js";
2
2
  //#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
- function h(e, t) {
4
- return s() ? (u(e, t), !0) : !1;
3
+ function g(e, t) {
4
+ return s() ? (d(e, t), !0) : !1;
5
5
  }
6
- var g = /* @__PURE__ */ new WeakMap(), _ = (...t) => {
7
- let n = t[0], r = m()?.proxy ?? s();
6
+ var _ = /* @__PURE__ */ new WeakMap(), v = (...t) => {
7
+ let n = t[0], r = h()?.proxy ?? s();
8
8
  if (r == null && !e()) throw Error("injectLocal must be called in setup");
9
- return r && g.has(r) && n in g.get(r) ? g.get(r)[n] : p(...t);
10
- }, v = typeof window < "u" && typeof document < "u";
9
+ return r && _.has(r) && n in _.get(r) ? _.get(r)[n] : m(...t);
10
+ }, y = typeof window < "u" && typeof document < "u";
11
11
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
- var y = (e) => e != null, b = Object.prototype.toString, x = (e) => b.call(e) === "[object Object]", S = () => {}, C = /* @__PURE__ */ w();
13
- function w() {
12
+ var b = (e) => e != null, x = Object.prototype.toString, S = (e) => x.call(e) === "[object Object]", C = () => {}, w = /* @__PURE__ */ T();
13
+ function T() {
14
14
  var e, t;
15
- return v && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
15
+ return y && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
16
16
  }
17
- function T(e, t) {
17
+ function E(e, t) {
18
18
  function n(...n) {
19
19
  return new Promise((r, i) => {
20
20
  Promise.resolve(e(() => t.apply(this, n), {
@@ -26,13 +26,13 @@ function T(e, t) {
26
26
  }
27
27
  return n;
28
28
  }
29
- var E = (e) => e();
30
- function D(e, t = {}) {
31
- let n, r, i = S, a = (e) => {
32
- clearTimeout(e), i(), i = S;
29
+ var D = (e) => e();
30
+ function O(e, t = {}) {
31
+ let n, r, i = C, a = (e) => {
32
+ clearTimeout(e), i(), i = C;
33
33
  }, o;
34
34
  return (s) => {
35
- let c = f(e), l = f(t.maxWait);
35
+ let c = p(e), l = p(t.maxWait);
36
36
  return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
37
37
  i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
38
38
  n && a(n), r = void 0, e(o());
@@ -42,83 +42,89 @@ function D(e, t = {}) {
42
42
  });
43
43
  };
44
44
  }
45
- function O(e) {
45
+ function k(e) {
46
46
  return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
47
47
  }
48
- function k(e) {
48
+ function A(e) {
49
49
  return Array.isArray(e) ? e : [e];
50
50
  }
51
- function A(e) {
52
- return e || m();
51
+ function j(e) {
52
+ return e || h();
53
+ }
54
+ function M(e, t = 200, n = {}) {
55
+ return E(O(t, n), e);
53
56
  }
54
- function j(e, t = 200, n = {}) {
55
- return T(D(t, n), e);
57
+ function N(e, t = 200, n = {}) {
58
+ let i = c(p(e)), a = M(() => {
59
+ i.value = e.value;
60
+ }, t, n);
61
+ return r(e, () => a()), l(i);
56
62
  }
57
- function M(e, t, n = {}) {
58
- let { eventFilter: i = E, ...a } = n;
59
- return r(e, T(i, t), a);
63
+ function P(e, t, n = {}) {
64
+ let { eventFilter: i = D, ...a } = n;
65
+ return r(e, E(i, t), a);
60
66
  }
61
- function N(e, n = !0, r) {
62
- A(r) ? i(e, r) : n ? e() : t(e);
67
+ function F(e, n = !0, r) {
68
+ j(r) ? i(e, r) : n ? e() : t(e);
63
69
  }
64
- function P(e, t = 1e3, i = {}) {
65
- let { immediate: o = !0, immediateCallback: s = !1 } = i, l = null, u = a(!1);
70
+ function I(e, t = 1e3, i = {}) {
71
+ let { immediate: o = !0, immediateCallback: s = !1 } = i, c = null, u = a(!1);
66
72
  function d() {
67
- l &&= (clearInterval(l), null);
73
+ c &&= (clearInterval(c), null);
68
74
  }
69
- function p() {
75
+ function f() {
70
76
  u.value = !1, d();
71
77
  }
72
78
  function m() {
73
- let n = f(t);
74
- n <= 0 || (u.value = !0, s && e(), d(), u.value && (l = setInterval(e, n)));
79
+ let n = p(t);
80
+ n <= 0 || (u.value = !0, s && e(), d(), u.value && (c = setInterval(e, n)));
75
81
  }
76
- return o && v && m(), (n(t) || typeof t == "function") && h(r(t, () => {
77
- u.value && v && m();
78
- })), h(p), {
79
- isActive: c(u),
80
- pause: p,
82
+ return o && y && m(), (n(t) || typeof t == "function") && g(r(t, () => {
83
+ u.value && y && m();
84
+ })), g(f), {
85
+ isActive: l(u),
86
+ pause: f,
81
87
  resume: m
82
88
  };
83
89
  }
84
- function F(e, t, n = {}) {
90
+ function L(e, t, n = {}) {
85
91
  let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
86
- function l() {
92
+ function c() {
87
93
  s &&= (clearTimeout(s), void 0);
88
94
  }
89
95
  function u() {
90
- o.value = !1, l();
96
+ o.value = !1, c();
91
97
  }
92
98
  function d(...n) {
93
- i && e(), l(), o.value = !0, s = setTimeout(() => {
99
+ i && e(), c(), o.value = !0, s = setTimeout(() => {
94
100
  o.value = !1, s = void 0, e(...n);
95
- }, f(t));
101
+ }, p(t));
96
102
  }
97
- return r && (o.value = !0, v && d()), h(u), {
98
- isPending: c(o),
103
+ return r && (o.value = !0, y && d()), g(u), {
104
+ isPending: l(o),
99
105
  start: d,
100
106
  stop: u
101
107
  };
102
108
  }
103
- function I(e = !1, t = {}) {
109
+ function R(e = !1, t = {}) {
104
110
  let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
105
111
  function c(e) {
106
112
  if (arguments.length) return s.value = e, s.value;
107
113
  {
108
- let e = f(r);
109
- return s.value = s.value === e ? f(i) : e, s.value;
114
+ let e = p(r);
115
+ return s.value = s.value === e ? p(i) : e, s.value;
110
116
  }
111
117
  }
112
118
  return o ? c : [s, c];
113
119
  }
114
- function L(e, t, n = {}) {
120
+ function z(e, t, n = {}) {
115
121
  let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
116
- return M(e, t, {
122
+ return P(e, t, {
117
123
  ...a,
118
- eventFilter: D(r, { maxWait: i })
124
+ eventFilter: O(r, { maxWait: i })
119
125
  });
120
126
  }
121
- function R(e, t, n) {
127
+ function B(e, t, n) {
122
128
  return r(e, t, {
123
129
  ...n,
124
130
  immediate: !0
@@ -126,60 +132,60 @@ function R(e, t, n) {
126
132
  }
127
133
  //#endregion
128
134
  //#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.34_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
129
- var z = v ? window : void 0;
130
- v && window.document, v && window.navigator, v && window.location;
131
- function B(e) {
132
- let t = f(e);
135
+ var V = y ? window : void 0;
136
+ y && window.document, y && window.navigator, y && window.location;
137
+ function H(e) {
138
+ let t = p(e);
133
139
  return t?.$el ?? t;
134
140
  }
135
- function V(...e) {
136
- let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = l(() => {
137
- let t = k(f(e[0])).filter((e) => e != null);
141
+ function U(...e) {
142
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = u(() => {
143
+ let t = A(p(e[0])).filter((e) => e != null);
138
144
  return t.every((e) => typeof e != "string") ? t : void 0;
139
145
  });
140
- return R(() => [
141
- n.value?.map((e) => B(e)) ?? [z].filter((e) => e != null),
142
- k(f(n.value ? e[1] : e[0])),
143
- k(d(n.value ? e[2] : e[1])),
144
- f(n.value ? e[3] : e[2])
146
+ return B(() => [
147
+ n.value?.map((e) => H(e)) ?? [V].filter((e) => e != null),
148
+ A(p(n.value ? e[1] : e[0])),
149
+ A(f(n.value ? e[2] : e[1])),
150
+ p(n.value ? e[3] : e[2])
145
151
  ], ([e, n, r, i], a, o) => {
146
152
  if (!e?.length || !n?.length || !r?.length) return;
147
- let s = x(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
153
+ let s = S(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
148
154
  o(() => {
149
155
  c.forEach((e) => e());
150
156
  });
151
157
  }, { flush: "post" });
152
158
  }
153
- var H = !1;
154
- function U(e, t, n = {}) {
155
- let { window: r = z, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
159
+ var W = !1;
160
+ function G(e, t, n = {}) {
161
+ let { window: r = V, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
156
162
  if (!r) return s ? {
157
- stop: S,
158
- cancel: S,
159
- trigger: S
160
- } : S;
161
- if (C && !H) {
162
- H = !0;
163
+ stop: C,
164
+ cancel: C,
165
+ trigger: C
166
+ } : C;
167
+ if (w && !W) {
168
+ W = !0;
163
169
  let e = { passive: !0 };
164
- Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", S, e)), r.document.documentElement.addEventListener("click", S, e);
170
+ Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", C, e)), r.document.documentElement.addEventListener("click", C, e);
165
171
  }
166
- let c = !0, l = (e) => f(i).some((t) => {
172
+ let c = !0, l = (e) => p(i).some((t) => {
167
173
  if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
168
174
  {
169
- let n = B(t);
175
+ let n = H(t);
170
176
  return n && (e.target === n || e.composedPath().includes(n));
171
177
  }
172
178
  });
173
179
  function u(e) {
174
- let t = f(e);
180
+ let t = p(e);
175
181
  return t && t.$.subTree.shapeFlag === 16;
176
182
  }
177
183
  function d(e, t) {
178
- let n = f(e), r = n.$.subTree && n.$.subTree.children;
184
+ let n = p(e), r = n.$.subTree && n.$.subTree.children;
179
185
  return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
180
186
  }
181
- let p = (n) => {
182
- let r = B(e);
187
+ let f = (n) => {
188
+ let r = H(e);
183
189
  if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
184
190
  if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
185
191
  c = !0;
@@ -188,21 +194,21 @@ function U(e, t, n = {}) {
188
194
  t(n);
189
195
  }
190
196
  }, m = !1, h = [
191
- V(r, "click", (e) => {
197
+ U(r, "click", (e) => {
192
198
  m || (m = !0, setTimeout(() => {
193
199
  m = !1;
194
- }, 0), p(e));
200
+ }, 0), f(e));
195
201
  }, {
196
202
  passive: !0,
197
203
  capture: a
198
204
  }),
199
- V(r, "pointerdown", (t) => {
200
- let n = B(e);
205
+ U(r, "pointerdown", (t) => {
206
+ let n = H(e);
201
207
  c = !l(t) && !!(n && !t.composedPath().includes(n));
202
208
  }, { passive: !0 }),
203
- o && V(r, "blur", (n) => {
209
+ o && U(r, "blur", (n) => {
204
210
  setTimeout(() => {
205
- let i = B(e), a = r.document.activeElement;
211
+ let i = H(e), a = r.document.activeElement;
206
212
  for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
207
213
  a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
208
214
  }, 0);
@@ -214,68 +220,68 @@ function U(e, t, n = {}) {
214
220
  c = !1;
215
221
  },
216
222
  trigger: (e) => {
217
- c = !0, p(e), c = !1;
223
+ c = !0, f(e), c = !1;
218
224
  }
219
225
  } : g;
220
226
  }
221
- function W() {
222
- let e = a(!1), t = m();
227
+ function K() {
228
+ let e = a(!1), t = h();
223
229
  return t && i(() => {
224
230
  e.value = !0;
225
231
  }, t), e;
226
232
  }
227
233
  /* @__NO_SIDE_EFFECTS__ */
228
- function G(e) {
229
- let t = W();
230
- return l(() => (t.value, !!e()));
234
+ function q(e) {
235
+ let t = K();
236
+ return u(() => (t.value, !!e()));
231
237
  }
232
- function K(e, t, n = {}) {
233
- let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "MutationObserver" in i), c = () => {
238
+ function J(e, t, n = {}) {
239
+ let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "MutationObserver" in i), c = () => {
234
240
  o &&= (o.disconnect(), void 0);
235
- }, u = r(l(() => {
236
- let t = k(f(e)).map(B).filter(y);
241
+ }, l = r(u(() => {
242
+ let t = A(p(e)).map(H).filter(b);
237
243
  return new Set(t);
238
244
  }), (e) => {
239
245
  c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
240
246
  }, {
241
247
  immediate: !0,
242
248
  flush: "post"
243
- }), d = () => o?.takeRecords(), p = () => {
244
- u(), c();
249
+ }), d = () => o?.takeRecords(), f = () => {
250
+ l(), c();
245
251
  };
246
- return h(p), {
252
+ return g(f), {
247
253
  isSupported: s,
248
- stop: p,
254
+ stop: f,
249
255
  takeRecords: d
250
256
  };
251
257
  }
252
- var q = Symbol("vueuse-ssr-width");
258
+ var Y = Symbol("vueuse-ssr-width");
253
259
  /* @__NO_SIDE_EFFECTS__ */
254
- function J() {
255
- let t = e() ? _(q, null) : null;
260
+ function X() {
261
+ let t = e() ? v(Y, null) : null;
256
262
  return typeof t == "number" ? t : void 0;
257
263
  }
258
- function Y(e, t = {}) {
259
- let { window: n = z, ssrWidth: r = /* @__PURE__ */ J() } = t, i = /* @__PURE__ */ G(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), u = a(!1);
264
+ function Z(e, t = {}) {
265
+ let { window: n = V, ssrWidth: r = /* @__PURE__ */ X() } = t, i = /* @__PURE__ */ q(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), l = a(!1);
260
266
  return o(() => {
261
267
  if (s.value) {
262
- s.value = !i.value, u.value = f(e).split(",").some((e) => {
268
+ s.value = !i.value, l.value = p(e).split(",").some((e) => {
263
269
  let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
264
- return n && a && (a = r >= O(n[1])), i && a && (a = r <= O(i[1])), t ? !a : a;
270
+ return n && a && (a = r >= k(n[1])), i && a && (a = r <= k(i[1])), t ? !a : a;
265
271
  });
266
272
  return;
267
273
  }
268
- i.value && (c.value = n.matchMedia(f(e)), u.value = c.value.matches);
269
- }), V(c, "change", (e) => {
270
- u.value = e.matches;
271
- }, { passive: !0 }), l(() => u.value);
274
+ i.value && (c.value = n.matchMedia(p(e)), l.value = c.value.matches);
275
+ }), U(c, "change", (e) => {
276
+ l.value = e.matches;
277
+ }, { passive: !0 }), u(() => l.value);
272
278
  }
273
- function X(e, t, n = {}) {
274
- let { window: i = z, ...a } = n, o, s = /* @__PURE__ */ G(() => i && "ResizeObserver" in i), c = () => {
279
+ function Q(e, t, n = {}) {
280
+ let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "ResizeObserver" in i), c = () => {
275
281
  o &&= (o.disconnect(), void 0);
276
- }, u = r(l(() => {
277
- let t = f(e);
278
- return Array.isArray(t) ? t.map((e) => B(e)) : [B(t)];
282
+ }, l = r(u(() => {
283
+ let t = p(e);
284
+ return Array.isArray(t) ? t.map((e) => H(e)) : [H(t)];
279
285
  }), (e) => {
280
286
  if (c(), s.value && i) {
281
287
  o = new ResizeObserver(t);
@@ -285,17 +291,17 @@ function X(e, t, n = {}) {
285
291
  immediate: !0,
286
292
  flush: "post"
287
293
  }), d = () => {
288
- c(), u();
294
+ c(), l();
289
295
  };
290
- return h(d), {
296
+ return g(d), {
291
297
  isSupported: s,
292
298
  stop: d
293
299
  };
294
300
  }
295
- function Z(e, t = {}) {
301
+ function $(e, t = {}) {
296
302
  let { reset: n = !0, windowResize: i = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = t, l = a(0), u = a(0), d = a(0), f = a(0), p = a(0), m = a(0), h = a(0), g = a(0);
297
303
  function _() {
298
- let t = B(e);
304
+ let t = H(e);
299
305
  if (!t) {
300
306
  n && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
301
307
  return;
@@ -306,10 +312,10 @@ function Z(e, t = {}) {
306
312
  function v() {
307
313
  c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
308
314
  }
309
- return X(e, v), r(() => B(e), (e) => !e && v()), K(e, v, { attributeFilter: ["style", "class"] }), o && V("scroll", v, {
315
+ return Q(e, v), r(() => H(e), (e) => !e && v()), J(e, v, { attributeFilter: ["style", "class"] }), o && U("scroll", v, {
310
316
  capture: !0,
311
317
  passive: !0
312
- }), i && V("resize", v, { passive: !0 }), N(() => {
318
+ }), i && U("resize", v, { passive: !0 }), F(() => {
313
319
  s && v();
314
320
  }), {
315
321
  height: l,
@@ -324,4 +330,4 @@ function Z(e, t = {}) {
324
330
  };
325
331
  }
326
332
  //#endregion
327
- export { j as a, I as c, Y as i, L as l, Z as n, P as o, V as r, F as s, U as t };
333
+ export { N as a, L as c, Z as i, R as l, $ as n, M as o, U as r, I as s, G as t, z as u };
@@ -1,5 +1,5 @@
1
- import { Kt as e, c as t } from "./dist-DWhP3Dp2.js";
2
- //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.4_@tiptap+core@3.23.4_@tiptap+pm@3.23.4__@tiptap+pm@3.23.4/node_modules/@tiptap/extension-superscript/dist/index.js
1
+ import { Gt as e, c as t } from "./dist-BzuC8o3y.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-superscript@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__@tiptap+pm@3.23.6/node_modules/@tiptap/extension-superscript/dist/index.js
3
3
  var n = t.create({
4
4
  name: "superscript",
5
5
  addOptions() {
@@ -0,0 +1,5 @@
1
+ import { FontFamily as e } from "./dist-C0jo8wtG.js";
2
+ //#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.23.6_@tiptap+extension-text-style@3.23.6_@tiptap+core@3.23.6_@tiptap+pm@3.23.6__/node_modules/@tiptap/extension-font-family/dist/index.js
3
+ var t = e;
4
+ //#endregion
5
+ export { e as FontFamily, t as default };