@qualityunit/liveagent-components-editor 0.0.64 → 0.0.66

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 (150) hide show
  1. package/dist/{af-OLEnbSyW.js → af-D9iy9Trq.js} +1 -1
  2. package/dist/{af.umd-B8xgNcsN.js → af.umd-PXSGPEnq.js} +2 -2
  3. package/dist/{ar-BmYicPoH.js → ar-BKhab0xh.js} +1 -1
  4. package/dist/{ar.umd-DOrLWJNZ.js → ar.umd-Dp-w7ku9.js} +2 -2
  5. package/dist/{ast-Cen4kg86.js → ast-n_TMDS7U.js} +1 -1
  6. package/dist/{ast.umd-CedYaMqk.js → ast.umd-CZG8z0JA.js} +2 -2
  7. package/dist/{az-CuGithd9.js → az-Dh7vDxMr.js} +1 -1
  8. package/dist/{az.umd-DyO9Uchq.js → az.umd-Dg9YEMIx.js} +2 -2
  9. package/dist/{bg-Bfefka0n.js → bg-DMZ6f9WZ.js} +1 -1
  10. package/dist/{bg.umd-CVId39GX.js → bg.umd-jrpHwafJ.js} +2 -2
  11. package/dist/bn-B-S77Zsa.js +12 -0
  12. package/dist/bn.umd-GjXU0340.js +41 -0
  13. package/dist/{bs-C9HED1Uu.js → bs-CLP23HTb.js} +1 -1
  14. package/dist/{bs.umd-D39VUsCW.js → bs.umd-C8UO5kL7.js} +2 -2
  15. package/dist/{ca-DpNcvBDU.js → ca-BOzo87c6.js} +1 -1
  16. package/dist/{ca.umd-CAcMJjVg.js → ca.umd-BmrSeDor.js} +2 -2
  17. package/dist/ckeditor.js +1 -1
  18. package/dist/{ckeditor5-D7fStb4M.js → ckeditor5-CGyCZTbL.js} +12292 -11714
  19. package/dist/{cs-BJmg9EPI.js → cs-DocHE2jw.js} +1 -1
  20. package/dist/{cs.umd-CPZ6iWIg.js → cs.umd-DxSrYcnl.js} +2 -2
  21. package/dist/{da-MbCHd_aJ.js → da-DIDd7atq.js} +1 -1
  22. package/dist/{da.umd-CGLlzmrc.js → da.umd-DSziYlsc.js} +2 -2
  23. package/dist/{de-BU7sjUZN.js → de-Bip6e7Px.js} +1 -1
  24. package/dist/{de-ch-Cpd8-ct7.js → de-ch-CbKDFbAQ.js} +1 -1
  25. package/dist/{de-ch.umd-D0Dq4XoD.js → de-ch.umd-HdBQccGE.js} +2 -2
  26. package/dist/{de.umd-CKngoVN4.js → de.umd-Bt7DVF3K.js} +2 -2
  27. package/dist/editor-lib.js +243 -223
  28. package/dist/{el-BTN9fWiF.js → el-DVchT-ah.js} +1 -1
  29. package/dist/{el.umd-CDaVAmdI.js → el.umd-BgvJ2mEW.js} +2 -2
  30. package/dist/{en-CfmG1wgA.js → en-DdUbswXt.js} +1 -1
  31. package/dist/{en-au-DmEbVK-b.js → en-au-DhaWlYaL.js} +1 -1
  32. package/dist/{en-au.umd-DiRa2LRT.js → en-au.umd-DrcP9fVm.js} +2 -2
  33. package/dist/{en-gb-DHdhYZHy.js → en-gb-B-YD4rrZ.js} +1 -1
  34. package/dist/{en-gb.umd-Bl1JwfAc.js → en-gb.umd-CdHI-gZ8.js} +2 -2
  35. package/dist/{en.umd-CqzDS9Ew.js → en.umd-Bhg86mi1.js} +2 -2
  36. package/dist/{eo-U6Q1C5_E.js → eo-DVaUzb33.js} +1 -1
  37. package/dist/{eo.umd-C_36ZmIS.js → eo.umd-DpkXX_us.js} +2 -2
  38. package/dist/{es-co-BHRl8ocA.js → es-co-JcGqDxvM.js} +1 -1
  39. package/dist/{es-co.umd-DZmPYe0C.js → es-co.umd-CunJmpMw.js} +2 -2
  40. package/dist/{es-sMq6N_Y5.js → es-nnuRT4u0.js} +1 -1
  41. package/dist/{es.umd-DU02kYat.js → es.umd-BCnb83D6.js} +2 -2
  42. package/dist/{et-BkHqAKud.js → et-CQ9qOMgh.js} +1 -1
  43. package/dist/{et.umd-DDO0YmK5.js → et.umd-C_Psndyo.js} +2 -2
  44. package/dist/{eu-D8T1OJh8.js → eu-CffwdRQn.js} +1 -1
  45. package/dist/{eu.umd-D0KcLyVa.js → eu.umd-Ckgddxsv.js} +2 -2
  46. package/dist/{fa-NpZx_G2x.js → fa-BEQ0Lgbx.js} +1 -1
  47. package/dist/{fa.umd-DEddBu7c.js → fa.umd-CgsqI4Gd.js} +2 -2
  48. package/dist/{fi-C7ACmRJD.js → fi-q2B3WODs.js} +1 -1
  49. package/dist/{fi.umd-DD3lre9Q.js → fi.umd-DsO0sES4.js} +2 -2
  50. package/dist/{fr-BK5l-ZLo.js → fr-DQgg9Cnf.js} +1 -1
  51. package/dist/{fr.umd-CNZE3mbe.js → fr.umd-CiQg0owK.js} +2 -2
  52. package/dist/{gl-B8L4gJWO.js → gl-7JhMRgp6.js} +1 -1
  53. package/dist/{gl.umd-mTCLDEBN.js → gl.umd-g4pGYJze.js} +2 -2
  54. package/dist/{gu-Bq9eFId5.js → gu-C4cIWw-L.js} +1 -1
  55. package/dist/{gu.umd-CRtSnqEQ.js → gu.umd-CJ6eay8f.js} +2 -2
  56. package/dist/{he-Dn8UPxNP.js → he-D8fESlR0.js} +1 -1
  57. package/dist/{he.umd-BraxJKxO.js → he.umd-B_uCNxPi.js} +2 -2
  58. package/dist/{hi-CJw0ZrLH.js → hi-BC_Ekbrq.js} +1 -1
  59. package/dist/{hi.umd-CHJSKt8L.js → hi.umd-CMgJAYRZ.js} +2 -2
  60. package/dist/{hr-DrmwaURm.js → hr-CZ0iJCzh.js} +1 -1
  61. package/dist/{hr.umd-B8K7JPFI.js → hr.umd-9gRRymly.js} +2 -2
  62. package/dist/{hu-guip6Kue.js → hu-WYkHgEQb.js} +1 -1
  63. package/dist/{hu.umd-Cg4Z9lLK.js → hu.umd-CSuJtYTo.js} +2 -2
  64. package/dist/{hy-D8SXNFIA.js → hy-BJEtQZ_o.js} +1 -1
  65. package/dist/{hy.umd-CI73SnSZ.js → hy.umd-DAUUtFAn.js} +2 -2
  66. package/dist/{id-BPHiYT9r.js → id-BcOKSd9_.js} +1 -1
  67. package/dist/{id.umd-CIa13bgB.js → id.umd-B-AyVjzE.js} +2 -2
  68. package/dist/{it-QFsp7Phx.js → it-CR8Q2FGK.js} +1 -1
  69. package/dist/{it.umd-D-Mc7ZZz.js → it.umd-BUHTNYpS.js} +2 -2
  70. package/dist/{ja-C7iTwiJh.js → ja-CsLnt5wE.js} +1 -1
  71. package/dist/{ja.umd-koZThu08.js → ja.umd-DjEhAtJA.js} +2 -2
  72. package/dist/{jv-C57vsj4u.js → jv-C7gpKmrf.js} +1 -1
  73. package/dist/{jv.umd-Ct0pqTvf.js → jv.umd-v7UMRpUr.js} +2 -2
  74. package/dist/{kk-BDgU5M4I.js → kk-B0SsP2xy.js} +1 -1
  75. package/dist/{kk.umd-DPsVCZPw.js → kk.umd-BC3bDe1l.js} +2 -2
  76. package/dist/{km-CSOb8_LI.js → km-n9pdTCAX.js} +1 -1
  77. package/dist/{km.umd-DJ5rNa7u.js → km.umd-NeE548bJ.js} +2 -2
  78. package/dist/{kn-CXIHX3zk.js → kn-DAcYnnqf.js} +1 -1
  79. package/dist/{kn.umd-DrKuI0qC.js → kn.umd-BtNIYFbH.js} +2 -2
  80. package/dist/{ko-BEW2ID_m.js → ko-DDoL4zSZ.js} +1 -1
  81. package/dist/{ko.umd-D6_FVyxj.js → ko.umd-EwpaxlNw.js} +2 -2
  82. package/dist/{ku-B4JB5pIA.js → ku-DVDD8yCJ.js} +1 -1
  83. package/dist/{ku.umd-B9R9MGew.js → ku.umd-IGcHlbG3.js} +2 -2
  84. package/dist/{lt-BDs3H1fC.js → lt-CFgNL2mH.js} +1 -1
  85. package/dist/{lt.umd-pCNRM6xf.js → lt.umd-CcLqPhgs.js} +2 -2
  86. package/dist/{lv-DB_B1KBH.js → lv-Cb12ezVs.js} +1 -1
  87. package/dist/{lv.umd-CkG6Viuy.js → lv.umd-Ch06XIJb.js} +2 -2
  88. package/dist/{ms-CLSS74k_.js → ms-BExoNisn.js} +1 -1
  89. package/dist/{ms.umd-WuzZ6_9N.js → ms.umd-B1KG-C_x.js} +2 -2
  90. package/dist/{nb-CIXxFV6E.js → nb-e3mpMMIe.js} +1 -1
  91. package/dist/{nb.umd-CpBrQtpg.js → nb.umd-Ci5P-GKt.js} +2 -2
  92. package/dist/{ne-Bo79eFgQ.js → ne-CMWzKlQY.js} +1 -1
  93. package/dist/{ne.umd-CuNvvlK_.js → ne.umd-Cf0Aa8K4.js} +2 -2
  94. package/dist/{nl-DiCAZgZp.js → nl-odzV5l54.js} +1 -1
  95. package/dist/{nl.umd-D1teOZZk.js → nl.umd-D77jvLVk.js} +2 -2
  96. package/dist/{no-BSfx1UZR.js → no-Br9RevjM.js} +1 -1
  97. package/dist/{no.umd-DUVMBQNT.js → no.umd-Cs5TUpgX.js} +2 -2
  98. package/dist/{oc-BTrHj_fc.js → oc-CQeRyzFl.js} +1 -1
  99. package/dist/{oc.umd-BfT5RnV6.js → oc.umd-BZxS9qdA.js} +2 -2
  100. package/dist/{pl-B-AaAsp4.js → pl-C830XLqJ.js} +1 -1
  101. package/dist/{pl.umd-BymNe-qd.js → pl.umd-Bkt0ceWa.js} +2 -2
  102. package/dist/{pt-cOv7pn5W.js → pt-CYApiKrx.js} +1 -1
  103. package/dist/{pt-br-BqGxhYgG.js → pt-br-BWNn7bt0.js} +1 -1
  104. package/dist/{pt-br.umd-DQs0cQwo.js → pt-br.umd-Cby0FMfW.js} +2 -2
  105. package/dist/{pt.umd-GS6lVSwc.js → pt.umd-B1DJqq88.js} +2 -2
  106. package/dist/{ro-CPFGP4_V.js → ro-Dg5h-Qp_.js} +1 -1
  107. package/dist/{ro.umd-BEBp00IQ.js → ro.umd-ChrcddZF.js} +2 -2
  108. package/dist/{ru-CJ1bWKso.js → ru-Cta053-m.js} +1 -1
  109. package/dist/{ru.umd-jX7FPHxW.js → ru.umd-D37HkCin.js} +2 -2
  110. package/dist/{si-D1bdmWUf.js → si-CWWceCBv.js} +1 -1
  111. package/dist/{si.umd-CvFuJStL.js → si.umd-BpmaY9zD.js} +2 -2
  112. package/dist/{sk-DoB4vMyn.js → sk-v7iV_Zd-.js} +1 -1
  113. package/dist/{sk.umd-BUUbQ9ew.js → sk.umd-LoRuwK_o.js} +2 -2
  114. package/dist/{sl-CTqOz-gZ.js → sl-DCt_Vcsh.js} +1 -1
  115. package/dist/{sl.umd-BC1PYuwA.js → sl.umd-MATanepb.js} +2 -2
  116. package/dist/{sq-BvaQPZZF.js → sq-d6FdIP1k.js} +1 -1
  117. package/dist/{sq.umd-ElP4Q1s6.js → sq.umd-D4SMRpDW.js} +2 -2
  118. package/dist/{sr-CSUgjs3i.js → sr-BAOdkH75.js} +1 -1
  119. package/dist/{sr-latn-D4xYEy3V.js → sr-latn-DazZHo4G.js} +1 -1
  120. package/dist/{sr-latn.umd-BIcrAvxM.js → sr-latn.umd-CpqkMs6y.js} +2 -2
  121. package/dist/{sr.umd-lQfQuXIC.js → sr.umd-BJccZRKa.js} +2 -2
  122. package/dist/{sv-DEZLMsBN.js → sv-DKNA3ojV.js} +1 -1
  123. package/dist/{sv.umd-CJHAn4Eb.js → sv.umd-DhFa7pXD.js} +2 -2
  124. package/dist/{th-DSWOPCzT.js → th-DG7MJz8i.js} +1 -1
  125. package/dist/{th.umd-DOi9nccJ.js → th.umd-bN90GC27.js} +2 -2
  126. package/dist/{ti-B19StfN-.js → ti-CsFom50z.js} +1 -1
  127. package/dist/{ti.umd-BVFHt0U5.js → ti.umd-BiEA6es3.js} +2 -2
  128. package/dist/{tk-D60vRypT.js → tk-CGyohOEl.js} +1 -1
  129. package/dist/{tk.umd-CISiyzlg.js → tk.umd-COPOdMGA.js} +2 -2
  130. package/dist/{tr-C9F5xPAk.js → tr-CW9yc2xy.js} +1 -1
  131. package/dist/{tr.umd-Nctk-bS1.js → tr.umd-BMVxwiqM.js} +2 -2
  132. package/dist/{tt-B8xvoi2k.js → tt-BMP0SraD.js} +1 -1
  133. package/dist/{tt.umd-CmAl-kJi.js → tt.umd-dYZEez0Q.js} +2 -2
  134. package/dist/{ug-BG0uHRWA.js → ug-DtJNLTzg.js} +1 -1
  135. package/dist/{ug.umd-CBNdNEUG.js → ug.umd-CMfDZoKu.js} +2 -2
  136. package/dist/{uk-EdXdOIz4.js → uk-ByOaOdvP.js} +1 -1
  137. package/dist/{uk.umd-DPdo-wSD.js → uk.umd-BvvNSoO1.js} +2 -2
  138. package/dist/{ur-DF4yosP-.js → ur-_XEztS0n.js} +1 -1
  139. package/dist/{ur.umd-BC3p9xPw.js → ur.umd-CdQCvle-.js} +2 -2
  140. package/dist/{uz-CUaUHp_S.js → uz-gOHY0ENQ.js} +1 -1
  141. package/dist/{uz.umd-CWOay6L1.js → uz.umd-BsBVtTYT.js} +2 -2
  142. package/dist/{vi-C8cYXnkQ.js → vi-leygrz-k.js} +1 -1
  143. package/dist/{vi.umd-TxGvZysz.js → vi.umd-DX4xCYtp.js} +2 -2
  144. package/dist/{zh-cn-Ck2wb4R3.js → zh-cn-6E_LuBO1.js} +1 -1
  145. package/dist/{zh-cn.umd-KxlyfTGP.js → zh-cn.umd-DhPRTm8V.js} +2 -2
  146. package/dist/{zh-CkXvQU55.js → zh-wH-ajcst.js} +1 -1
  147. package/dist/{zh.umd-Ncp93bAX.js → zh.umd-CuEqE7OC.js} +2 -2
  148. package/package.json +6 -6
  149. package/dist/bn-BXUDRsSF.js +0 -12
  150. package/dist/bn.umd-HvRSHBBc.js +0 -41
@@ -1,355 +1,375 @@
1
- import { b as Q, h as b, a as W, E as ue, H as $, r as O, s as U, c as N, d as H, e as M, p as Y, f as x, U as ve, i as A, I as V, j, k as Z, l as oe, m as ce, n as _e, o as de, q as he, t as be, u as ge, v as z, w as me, x as Ee, y as ye, z as pe, A as xe, B as Ae, C as Ne, D as Te, F as Ie, G as ke, J as we, K as He, L as ee, M as ae, N as Me, O as k, P as te, Q as q, R as C, S as re, T as D, V as w, W as R, X as K, Y as S, Z as Ce, _ as Re, $ as Se, a0 as De } from "./ckeditor5-D7fStb4M.js";
2
- function Le(e, a, t = !1) {
3
- b && W();
4
- var r = e, n = null, i = null, u = ve, d = t ? ue : 0, c = !1;
5
- const h = (v, s = !0) => {
6
- c = !0, l(s, v);
7
- }, l = (v, s) => {
8
- if (u === (u = v)) return;
9
- let f = !1;
10
- if (b) {
11
- const o = (
12
- /** @type {Comment} */
13
- r.data === $
14
- );
15
- !!u === o && (r = O(), U(r), N(!1), f = !0);
1
+ import { b as Q, E as fe, r as k, a as w, p as q, U as ve, h as g, c as W, H as oe, d as $, e as B, s as F, f as I, i as A, j as y, k as ce, I as U, l as j, m as Z, n as _e, o as he, q as z, t as de, u as be, v as ge, w as me, x as Ee, y as pe, z as Te, A as Ae, B as ye, C as Ie, N as Ne, D as Se, F as Me, G as He, J as ke, K as we, L as Re, M as ee, O as te, P as Ce, Q as M, R as ae, S as D, T as V, V as R, W as re, X as H, Y as C, Z as K, _ as L, $ as Le, a0 as De, a1 as Pe, a2 as Oe } from "./ckeditor5-CGyCZTbL.js";
2
+ function Ue(e, t, [a, r] = [0, 0]) {
3
+ g && a === 0 && W();
4
+ var n = e, l = null, f = null, v = ve, _ = a > 0 ? fe : 0, d = !1;
5
+ const i = (u, s = !0) => {
6
+ d = !0, c(s, u);
7
+ }, c = (u, s) => {
8
+ if (v === (v = u)) return;
9
+ let o = !1;
10
+ if (g && r !== -1) {
11
+ if (a === 0) {
12
+ const b = (
13
+ /** @type {Comment} */
14
+ n.data
15
+ );
16
+ b === oe ? r = 0 : b === $ ? r = 1 / 0 : (r = parseInt(b.substring(1)), r !== r && (r = v ? 1 / 0 : -1));
17
+ }
18
+ const m = r > a;
19
+ !!v === m && (n = B(), F(n), I(!1), o = !0, r = -1);
16
20
  }
17
- u ? (n ? H(n) : s && (n = M(() => s(r))), i && Y(i, () => {
18
- i = null;
19
- })) : (i ? H(i) : s && (i = M(() => s(r))), n && Y(n, () => {
20
- n = null;
21
- })), f && N(!0);
21
+ v ? (l ? k(l) : s && (l = w(() => s(n))), f && q(f, () => {
22
+ f = null;
23
+ })) : (f ? k(f) : s && (f = w(() => s(n, [a + 1, r]))), l && q(l, () => {
24
+ l = null;
25
+ })), o && I(!0);
22
26
  };
23
27
  Q(() => {
24
- c = !1, a(h), c || l(null, null);
25
- }, d), b && (r = x);
28
+ d = !1, t(i), d || c(null, null);
29
+ }, _), g && (n = A);
26
30
  }
27
- function Pe(e, a) {
28
- return a;
31
+ function Ve(e, t) {
32
+ return t;
29
33
  }
30
- function Ve(e, a, t, r) {
31
- for (var n = [], i = a.length, u = 0; u < i; u++)
32
- ce(a[u].e, n, !0);
33
- var d = i > 0 && n.length === 0 && t !== null;
34
- if (d) {
35
- var c = (
34
+ function xe(e, t, a, r) {
35
+ for (var n = [], l = t.length, f = 0; f < l; f++)
36
+ ge(t[f].e, n, !0);
37
+ var v = l > 0 && n.length === 0 && a !== null;
38
+ if (v) {
39
+ var _ = (
36
40
  /** @type {Element} */
37
41
  /** @type {Element} */
38
- t.parentNode
42
+ a.parentNode
39
43
  );
40
- _e(c), c.append(
44
+ me(_), _.append(
41
45
  /** @type {Element} */
42
- t
43
- ), r.clear(), p(e, a[0].prev, a[i - 1].next);
46
+ a
47
+ ), r.clear(), T(e, t[0].prev, t[l - 1].next);
44
48
  }
45
- de(n, () => {
46
- for (var h = 0; h < i; h++) {
47
- var l = a[h];
48
- d || (r.delete(l.k), p(e, l.prev, l.next)), he(l.e, !d);
49
+ Ee(n, () => {
50
+ for (var d = 0; d < l; d++) {
51
+ var i = t[d];
52
+ v || (r.delete(i.k), T(e, i.prev, i.next)), pe(i.e, !v);
49
53
  }
50
54
  });
51
55
  }
52
- function qe(e, a, t, r, n, i = null) {
53
- var u = e, d = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
54
- b && W();
55
- var c = null, h = !1, l = be(() => {
56
- var v = t();
57
- return Ee(v) ? v : v == null ? [] : j(v);
56
+ function Ye(e, t, a, r, n, l = null) {
57
+ var f = e, v = { flags: t, items: /* @__PURE__ */ new Map(), first: null };
58
+ g && W();
59
+ var _ = null, d = !1, i = ce(() => {
60
+ var c = a();
61
+ return de(c) ? c : c == null ? [] : j(c);
58
62
  });
59
63
  Q(() => {
60
- var v = A(l), s = v.length;
61
- if (h && s === 0)
64
+ var c = y(i), u = c.length;
65
+ if (d && u === 0)
62
66
  return;
63
- h = s === 0;
64
- let f = !1;
65
- if (b) {
67
+ d = u === 0;
68
+ let s = !1;
69
+ if (g) {
66
70
  var o = (
67
71
  /** @type {Comment} */
68
- u.data === $
72
+ f.data === $
69
73
  );
70
- o !== (s === 0) && (u = O(), U(u), N(!1), f = !0);
74
+ o !== (u === 0) && (f = B(), F(f), I(!1), s = !0);
71
75
  }
72
- if (b) {
73
- for (var m = null, E, _ = 0; _ < s; _++) {
74
- if (x.nodeType === 8 && /** @type {Comment} */
75
- x.data === ye) {
76
- u = /** @type {Comment} */
77
- x, f = !0, N(!1);
76
+ if (g) {
77
+ for (var m = null, b, h = 0; h < u; h++) {
78
+ if (A.nodeType === 8 && /** @type {Comment} */
79
+ A.data === Ie) {
80
+ f = /** @type {Comment} */
81
+ A, s = !0, I(!1);
78
82
  break;
79
83
  }
80
- var g = v[_], T = r(g, _);
81
- E = ne(
82
- x,
83
- d,
84
+ var E = c[h], N = r(E, h);
85
+ b = ne(
86
+ A,
87
+ v,
84
88
  m,
85
89
  null,
86
- g,
87
- T,
88
- _,
90
+ E,
91
+ N,
92
+ h,
89
93
  n,
90
- a,
91
- t
92
- ), d.items.set(T, E), m = E;
94
+ t,
95
+ a
96
+ ), v.items.set(N, b), m = b;
93
97
  }
94
- s > 0 && U(O());
98
+ u > 0 && F(B());
95
99
  }
96
- b || Be(v, d, u, n, a, r, t), i !== null && (s === 0 ? c ? H(c) : c = M(() => i(u)) : c !== null && Y(c, () => {
97
- c = null;
98
- })), f && N(!0), A(l);
99
- }), b && (u = x);
100
+ g || qe(c, v, f, n, t, r, a), l !== null && (u === 0 ? _ ? k(_) : _ = w(() => l(f)) : _ !== null && q(_, () => {
101
+ _ = null;
102
+ })), s && I(!0), y(i);
103
+ }), g && (f = A);
100
104
  }
101
- function Be(e, a, t, r, n, i, u) {
102
- var d = e.length, c = a.items, h = a.first, l = h, v, s = null, f = [], o = [], m, E, _, g;
103
- for (g = 0; g < d; g += 1) {
104
- if (m = e[g], E = i(m, g), _ = c.get(E), _ === void 0) {
105
- var T = l ? (
105
+ function qe(e, t, a, r, n, l, f) {
106
+ var v = e.length, _ = t.items, d = t.first, i = d, c, u = null, s = [], o = [], m, b, h, E;
107
+ for (E = 0; E < v; E += 1) {
108
+ if (m = e[E], b = l(m, E), h = _.get(b), h === void 0) {
109
+ var N = i ? (
106
110
  /** @type {TemplateNode} */
107
- l.e.nodes_start
108
- ) : t;
109
- s = ne(
110
- T,
111
- a,
112
- s,
113
- s === null ? a.first : s.next,
111
+ i.e.nodes_start
112
+ ) : a;
113
+ u = ne(
114
+ N,
115
+ t,
116
+ u,
117
+ u === null ? t.first : u.next,
114
118
  m,
119
+ b,
115
120
  E,
116
- g,
117
121
  r,
118
122
  n,
119
- u
120
- ), c.set(E, s), f = [], o = [], l = s.next;
123
+ f
124
+ ), _.set(b, u), s = [], o = [], i = u.next;
121
125
  continue;
122
126
  }
123
- if (Fe(_, m, g), _.e.f & V && H(_.e), _ !== l) {
124
- if (v !== void 0 && v.has(_)) {
125
- if (f.length < o.length) {
126
- var I = o[0], y;
127
- s = I.prev;
128
- var X = f[0], L = f[f.length - 1];
129
- for (y = 0; y < f.length; y += 1)
130
- G(f[y], I, t);
131
- for (y = 0; y < o.length; y += 1)
132
- v.delete(o[y]);
133
- p(a, X.prev, L.next), p(a, s, X), p(a, L, I), l = I, s = L, g -= 1, f = [], o = [];
127
+ if (Be(h, m, E), (h.e.f & U) !== 0 && k(h.e), h !== i) {
128
+ if (c !== void 0 && c.has(h)) {
129
+ if (s.length < o.length) {
130
+ var S = o[0], p;
131
+ u = S.prev;
132
+ var X = s[0], P = s[s.length - 1];
133
+ for (p = 0; p < s.length; p += 1)
134
+ G(s[p], S, a);
135
+ for (p = 0; p < o.length; p += 1)
136
+ c.delete(o[p]);
137
+ T(t, X.prev, P.next), T(t, u, X), T(t, P, S), i = S, u = P, E -= 1, s = [], o = [];
134
138
  } else
135
- v.delete(_), G(_, l, t), p(a, _.prev, _.next), p(a, _, s === null ? a.first : s.next), p(a, s, _), s = _;
139
+ c.delete(h), G(h, i, a), T(t, h.prev, h.next), T(t, h, u === null ? t.first : u.next), T(t, u, h), u = h;
136
140
  continue;
137
141
  }
138
- for (f = [], o = []; l !== null && l.k !== E; )
139
- l.e.f & V || (v ?? (v = /* @__PURE__ */ new Set())).add(l), o.push(l), l = l.next;
140
- if (l === null)
142
+ for (s = [], o = []; i !== null && i.k !== b; )
143
+ (i.e.f & U) === 0 && (c ?? (c = /* @__PURE__ */ new Set())).add(i), o.push(i), i = i.next;
144
+ if (i === null)
141
145
  continue;
142
- _ = l;
146
+ h = i;
143
147
  }
144
- f.push(_), s = _, l = _.next;
148
+ s.push(h), u = h, i = h.next;
145
149
  }
146
- if (l !== null || v !== void 0) {
147
- for (var P = v === void 0 ? [] : j(v); l !== null; )
148
- l.e.f & V || P.push(l), l = l.next;
149
- var ie = P.length;
150
+ if (i !== null || c !== void 0) {
151
+ for (var O = c === void 0 ? [] : j(c); i !== null; )
152
+ (i.e.f & U) === 0 && O.push(i), i = i.next;
153
+ var ie = O.length;
150
154
  if (ie > 0) {
151
- var fe = null;
152
- Ve(a, P, fe, c);
155
+ var ue = null;
156
+ xe(t, O, ue, _);
153
157
  }
154
158
  }
155
- Z.first = a.first && a.first.e, Z.last = s && s.e;
159
+ Z.first = t.first && t.first.e, Z.last = u && u.e;
156
160
  }
157
- function Fe(e, a, t, r) {
158
- oe(e.v, a), e.i = t;
161
+ function Be(e, t, a, r) {
162
+ _e(e.v, t), e.i = a;
159
163
  }
160
- function ne(e, a, t, r, n, i, u, d, c, h) {
161
- var l = (c & pe) !== 0, v = (c & xe) === 0, s = l ? v ? ge(n) : z(n) : n, f = c & me ? z(u) : u, o = {
162
- i: f,
163
- v: s,
164
- k: i,
164
+ function ne(e, t, a, r, n, l, f, v, _, d) {
165
+ var i = (_ & Ae) !== 0, c = (_ & ye) === 0, u = i ? c ? he(n) : z(n) : n, s = (_ & be) === 0 ? f : z(f), o = {
166
+ i: s,
167
+ v: u,
168
+ k: l,
165
169
  a: null,
166
170
  // @ts-expect-error
167
171
  e: null,
168
- prev: t,
172
+ prev: a,
169
173
  next: r
170
174
  };
171
175
  try {
172
- return o.e = M(() => d(e, s, f, h), b), o.e.prev = t && t.e, o.e.next = r && r.e, t === null ? a.first = o : (t.next = o, t.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
176
+ return o.e = w(() => v(e, u, s, d), g), o.e.prev = a && a.e, o.e.next = r && r.e, a === null ? t.first = o : (a.next = o, a.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
173
177
  } finally {
174
178
  }
175
179
  }
176
- function G(e, a, t) {
180
+ function G(e, t, a) {
177
181
  for (var r = e.next ? (
178
182
  /** @type {TemplateNode} */
179
183
  e.next.e.nodes_start
180
- ) : t, n = a ? (
184
+ ) : a, n = t ? (
181
185
  /** @type {TemplateNode} */
182
- a.e.nodes_start
183
- ) : t, i = (
186
+ t.e.nodes_start
187
+ ) : a, l = (
184
188
  /** @type {TemplateNode} */
185
189
  e.e.nodes_start
186
- ); i !== r; ) {
187
- var u = (
190
+ ); l !== r; ) {
191
+ var f = (
188
192
  /** @type {TemplateNode} */
189
- Ae(i)
193
+ Te(l)
190
194
  );
191
- n.before(i), i = u;
195
+ n.before(l), l = f;
192
196
  }
193
197
  }
194
- function p(e, a, t) {
195
- a === null ? e.first = t : (a.next = t, a.e.next = t && t.e), t !== null && (t.prev = a, t.e.prev = a && a.e);
198
+ function T(e, t, a) {
199
+ t === null ? e.first = a : (t.next = a, t.e.next = a && a.e), a !== null && (a.prev = t, a.e.prev = t && t.e);
196
200
  }
197
201
  function se(e) {
198
- var a, t, r = "";
202
+ var t, a, r = "";
199
203
  if (typeof e == "string" || typeof e == "number") r += e;
200
204
  else if (typeof e == "object") if (Array.isArray(e)) {
201
205
  var n = e.length;
202
- for (a = 0; a < n; a++) e[a] && (t = se(e[a])) && (r && (r += " "), r += t);
203
- } else for (t in e) e[t] && (r && (r += " "), r += t);
206
+ for (t = 0; t < n; t++) e[t] && (a = se(e[t])) && (r && (r += " "), r += a);
207
+ } else for (a in e) e[a] && (r && (r += " "), r += a);
204
208
  return r;
205
209
  }
206
- function Oe() {
207
- for (var e, a, t = 0, r = "", n = arguments.length; t < n; t++) (e = arguments[t]) && (a = se(e)) && (r && (r += " "), r += a);
210
+ function Fe() {
211
+ for (var e, t, a = 0, r = "", n = arguments.length; a < n; a++) (e = arguments[a]) && (t = se(e)) && (r && (r += " "), r += t);
208
212
  return r;
209
213
  }
210
- function Ue(e) {
211
- return typeof e == "object" ? Oe(e) : e ?? "";
214
+ function Ke(e) {
215
+ return typeof e == "object" ? Fe(e) : e ?? "";
212
216
  }
213
- function Ye(e, a, t, r) {
214
- var n = e.__attributes ?? (e.__attributes = {});
215
- b && (n[a] = e.getAttribute(a)), n[a] !== (n[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && Ke(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
217
+ function Xe(e, t, a) {
218
+ var r = e == null ? "" : "" + e;
219
+ return r === "" ? null : r;
216
220
  }
217
- var J = /* @__PURE__ */ new Map();
218
- function Ke(e) {
219
- var a = J.get(e.nodeName);
220
- if (a) return a;
221
- J.set(e.nodeName, a = []);
222
- for (var t, r = e, n = Element.prototype; n !== r; ) {
223
- t = Te(r);
224
- for (var i in t)
225
- t[i].set && a.push(i);
226
- r = Ne(r);
221
+ function Ze(e, t, a, r, n, l) {
222
+ var f = e.__className;
223
+ if (g || f !== a) {
224
+ var v = Xe(a);
225
+ (!g || v !== e.getAttribute("class")) && (v == null ? e.removeAttribute("class") : e.className = v), e.__className = a;
227
226
  }
228
- return a;
227
+ return l;
228
+ }
229
+ const ze = Symbol("is custom element"), Ge = Symbol("is html");
230
+ function Je(e, t, a, r) {
231
+ var n = Qe(e);
232
+ g && (n[t] = e.getAttribute(t)), n[t] !== (n[t] = a) && (a == null ? e.removeAttribute(t) : typeof a != "string" && We(e).includes(t) ? e[t] = a : e.setAttribute(t, a));
229
233
  }
230
- function Xe(e, a, t) {
231
- var r = e.__className, n = Ze(a);
232
- b && e.className === n ? e.__className = n : (r !== n || b && e.className !== n) && (a == null ? e.removeAttribute("class") : e.className = n, e.__className = n);
234
+ function Qe(e) {
235
+ return (
236
+ /** @type {Record<string | symbol, unknown>} **/
237
+ // @ts-expect-error
238
+ e.__attributes ?? (e.__attributes = {
239
+ [ze]: e.nodeName.includes("-"),
240
+ [Ge]: e.namespaceURI === Ne
241
+ })
242
+ );
233
243
  }
234
- function Ze(e, a) {
235
- return (e ?? "") + "";
244
+ var J = /* @__PURE__ */ new Map();
245
+ function We(e) {
246
+ var t = J.get(e.nodeName);
247
+ if (t) return t;
248
+ J.set(e.nodeName, t = []);
249
+ for (var a, r = e, n = Element.prototype; n !== r; ) {
250
+ a = Me(r);
251
+ for (var l in a)
252
+ a[l].set && t.push(l);
253
+ r = Se(r);
254
+ }
255
+ return t;
236
256
  }
237
- function ze(e, a, t = a) {
238
- var r = Ie();
257
+ function $e(e, t, a = t) {
258
+ var r = He();
239
259
  ke(e, "input", (n) => {
240
- var i = n ? e.defaultValue : e.value;
241
- if (i = B(e) ? F(i) : i, t(i), r && i !== (i = a())) {
242
- var u = e.selectionStart, d = e.selectionEnd;
243
- e.value = i ?? "", d !== null && (e.selectionStart = u, e.selectionEnd = Math.min(d, e.value.length));
260
+ var l = n ? e.defaultValue : e.value;
261
+ if (l = x(e) ? Y(l) : l, a(l), r && l !== (l = t())) {
262
+ var f = e.selectionStart, v = e.selectionEnd;
263
+ e.value = l ?? "", v !== null && (e.selectionStart = f, e.selectionEnd = Math.min(v, e.value.length));
244
264
  }
245
265
  }), // If we are hydrating and the value has since changed,
246
266
  // then use the updated value from the input instead.
247
- (b && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
267
+ (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
248
268
  // TODO Svelte 6: remove input.value check and set to empty string?
249
- we(a) == null && e.value) && t(B(e) ? F(e.value) : e.value), He(() => {
250
- var n = a();
251
- B(e) && n === F(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
269
+ we(t) == null && e.value) && a(x(e) ? Y(e.value) : e.value), Re(() => {
270
+ var n = t();
271
+ x(e) && n === Y(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
252
272
  });
253
273
  }
254
- function B(e) {
255
- var a = e.type;
256
- return a === "number" || a === "range";
274
+ function x(e) {
275
+ var t = e.type;
276
+ return t === "number" || t === "range";
257
277
  }
258
- function F(e) {
278
+ function Y(e) {
259
279
  return e === "" ? null : +e;
260
280
  }
261
- var Ge = D("<button> </button>"), Je = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
262
- function le(e, a) {
263
- ae(a, !1);
264
- const t = Me();
265
- let r = k(a, "buttons", 28, () => []);
281
+ var je = D("<button> </button>"), et = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
282
+ function le(e, t) {
283
+ te(t, !1);
284
+ const a = Ce();
285
+ let r = M(t, "buttons", 28, () => []);
266
286
  function n() {
267
- t("html", {});
287
+ a("html", {});
268
288
  }
269
- function i() {
270
- t("plain", {});
289
+ function l() {
290
+ a("plain", {});
271
291
  }
272
- te();
273
- var u = Je(), d = R(u), c = K(d, 2), h = K(c, 2);
274
- return qe(h, 1, r, Pe, (l, v) => {
275
- var s = Ge(), f = R(s, !0);
276
- S(s), Ce(() => {
277
- Xe(s, Ue(A(v).style)), Ye(s, "title", A(v).text), Re(f, A(v).text);
278
- }), q("click", s, function(...o) {
292
+ ae();
293
+ var f = et(), v = C(f), _ = K(v, 2), d = K(_, 2);
294
+ return Ye(d, 1, r, Ve, (i, c) => {
295
+ var u = je(), s = C(u, !0);
296
+ L(u), Le(() => {
297
+ Ze(u, 1, Ke(y(c).style)), Je(u, "title", y(c).text), De(s, y(c).text);
298
+ }), V("click", u, function(...o) {
279
299
  var m;
280
- (m = A(v).handler) == null || m.apply(this, o);
281
- }), C(l, s);
282
- }), S(u), q("click", d, n), q("click", c, i), C(e, u), re({
300
+ (m = y(c).handler) == null || m.apply(this, o);
301
+ }), R(i, u);
302
+ }), L(f), V("click", v, n), V("click", _, l), R(e, f), re({
283
303
  get buttons() {
284
304
  return r();
285
305
  },
286
- set buttons(l) {
287
- r(l), w();
306
+ set buttons(i) {
307
+ r(i), H();
288
308
  }
289
309
  });
290
310
  }
291
311
  ee(le, { buttons: {} }, [], [], !0);
292
- var Qe = D("<textarea></textarea>"), We = D('<main><div class="Editor"><!></div> <!></main>');
293
- function $e(e, a) {
294
- ae(a, !1);
295
- let t = k(a, "value", 12, ""), r = k(a, "buttons", 28, () => []), n = k(a, "html", 12, !0);
296
- function i() {
312
+ var tt = D("<textarea></textarea>"), at = D('<main><div class="Editor"><!></div> <!></main>');
313
+ function rt(e, t) {
314
+ te(t, !1);
315
+ let a = M(t, "value", 12, ""), r = M(t, "buttons", 28, () => []), n = M(t, "html", 12, !0);
316
+ function l() {
297
317
  n() || n(!0);
298
318
  }
299
- function u() {
300
- n() && (t(t().replace(/<[^>]*>?/gm, "")), n(!1));
319
+ function f() {
320
+ n() && (a(a().replace(/<[^>]*>?/gm, "")), n(!1));
301
321
  }
302
- te();
303
- var d = We(), c = R(d), h = R(c);
322
+ ae();
323
+ var v = at(), _ = C(v), d = C(_);
304
324
  {
305
- var l = (f) => {
306
- Se(f, {
325
+ var i = (s) => {
326
+ Pe(s, {
307
327
  get value() {
308
- return t();
328
+ return a();
309
329
  },
310
330
  set value(o) {
311
- t(o);
331
+ a(o);
312
332
  },
313
333
  $$legacy: !0
314
334
  });
315
- }, v = (f) => {
316
- var o = Qe();
317
- De(o), ze(o, t), C(f, o);
335
+ }, c = (s) => {
336
+ var o = tt();
337
+ Oe(o), $e(o, a), R(s, o);
318
338
  };
319
- Le(h, (f) => {
320
- n() ? f(l) : f(v, !1);
339
+ Ue(d, (s) => {
340
+ n() ? s(i) : s(c, !1);
321
341
  });
322
342
  }
323
- S(c);
324
- var s = K(c, 2);
325
- return le(s, {
343
+ L(_);
344
+ var u = K(_, 2);
345
+ return le(u, {
326
346
  get buttons() {
327
347
  return r();
328
348
  },
329
- set buttons(f) {
330
- r(f);
349
+ set buttons(s) {
350
+ r(s);
331
351
  },
332
- $$events: { html: i, plain: u },
352
+ $$events: { html: l, plain: f },
333
353
  $$legacy: !0
334
- }), S(d), C(e, d), re({
354
+ }), L(v), R(e, v), re({
335
355
  get value() {
336
- return t();
356
+ return a();
337
357
  },
338
- set value(f) {
339
- t(f), w();
358
+ set value(s) {
359
+ a(s), H();
340
360
  },
341
361
  get buttons() {
342
362
  return r();
343
363
  },
344
- set buttons(f) {
345
- r(f), w();
364
+ set buttons(s) {
365
+ r(s), H();
346
366
  },
347
367
  get html() {
348
368
  return n();
349
369
  },
350
- set html(f) {
351
- n(f), w();
370
+ set html(s) {
371
+ n(s), H();
352
372
  }
353
373
  });
354
374
  }
355
- customElements.define("switchable-editor", ee($e, { value: {}, buttons: {}, html: {} }, [], [], !1));
375
+ customElements.define("switchable-editor", ee(rt, { value: {}, buttons: {}, html: {} }, [], [], !1));