@qualityunit/liveagent-components-editor 0.0.62 → 0.0.64

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 (149) hide show
  1. package/dist/{af-CIJdOI1R.js → af-OLEnbSyW.js} +3 -3
  2. package/dist/{af.umd-D8Oq4WTB.js → af.umd-B8xgNcsN.js} +4 -4
  3. package/dist/{ar-CNJiLs0r.js → ar-BmYicPoH.js} +3 -3
  4. package/dist/{ar.umd-B-Ip_iuO.js → ar.umd-DOrLWJNZ.js} +4 -4
  5. package/dist/{ast-cLuPH3Dj.js → ast-Cen4kg86.js} +3 -3
  6. package/dist/{ast.umd-CUlJY99W.js → ast.umd-CedYaMqk.js} +8 -8
  7. package/dist/{az-B08uT9Vq.js → az-CuGithd9.js} +3 -3
  8. package/dist/{az.umd-B44eCMx6.js → az.umd-DyO9Uchq.js} +4 -4
  9. package/dist/{bg-CIrR_q-g.js → bg-Bfefka0n.js} +3 -3
  10. package/dist/{bg.umd-42JniZfP.js → bg.umd-CVId39GX.js} +4 -4
  11. package/dist/{bn-DGzNvAl-.js → bn-BXUDRsSF.js} +4 -4
  12. package/dist/{bn.umd-BHchKczN.js → bn.umd-HvRSHBBc.js} +5 -5
  13. package/dist/{bs-J7kU5pP8.js → bs-C9HED1Uu.js} +3 -3
  14. package/dist/{bs.umd-BvyepSSX.js → bs.umd-D39VUsCW.js} +8 -8
  15. package/dist/{ca-BwBs3RTu.js → ca-DpNcvBDU.js} +3 -3
  16. package/dist/{ca.umd-tyduLD1S.js → ca.umd-CAcMJjVg.js} +4 -4
  17. package/dist/ckeditor.js +1 -1
  18. package/dist/{ckeditor5-CiFYmPZ9.js → ckeditor5-D7fStb4M.js} +17919 -18762
  19. package/dist/{cs-BceXfgFi.js → cs-BJmg9EPI.js} +3 -3
  20. package/dist/{cs.umd-DXWvj9EV.js → cs.umd-CPZ6iWIg.js} +4 -4
  21. package/dist/{da-CJNE63ku.js → da-MbCHd_aJ.js} +3 -3
  22. package/dist/{da.umd-Bd5DgCS1.js → da.umd-CGLlzmrc.js} +10 -10
  23. package/dist/{de-onshyCzh.js → de-BU7sjUZN.js} +3 -3
  24. package/dist/{de-ch-DZeCX_V_.js → de-ch-Cpd8-ct7.js} +3 -3
  25. package/dist/{de-ch.umd-C-WR8x4v.js → de-ch.umd-D0Dq4XoD.js} +4 -4
  26. package/dist/{de.umd-mPonvjxM.js → de.umd-CKngoVN4.js} +9 -9
  27. package/dist/editor-lib.js +205 -199
  28. package/dist/{el-DayIvAbS.js → el-BTN9fWiF.js} +3 -3
  29. package/dist/{el.umd-D7VoBc43.js → el.umd-CDaVAmdI.js} +4 -4
  30. package/dist/{en-CXcWbcAK.js → en-CfmG1wgA.js} +3 -3
  31. package/dist/{en-au-C8iglOMD.js → en-au-DmEbVK-b.js} +5 -5
  32. package/dist/{en-au.umd-JDcdZnRa.js → en-au.umd-DiRa2LRT.js} +20 -20
  33. package/dist/{en-gb-BKGRfquV.js → en-gb-DHdhYZHy.js} +3 -3
  34. package/dist/{en-gb.umd-D_0_KgPT.js → en-gb.umd-Bl1JwfAc.js} +8 -8
  35. package/dist/{en.umd-BnbOY9Qu.js → en.umd-CqzDS9Ew.js} +8 -8
  36. package/dist/{eo-Bq7Ufp3i.js → eo-U6Q1C5_E.js} +3 -3
  37. package/dist/{eo.umd-BiQR7po-.js → eo.umd-C_36ZmIS.js} +4 -4
  38. package/dist/{es-co-D3EQzA-d.js → es-co-BHRl8ocA.js} +3 -3
  39. package/dist/{es-co.umd-DTIQQjoV.js → es-co.umd-DZmPYe0C.js} +4 -4
  40. package/dist/{es-AxMCRZe-.js → es-sMq6N_Y5.js} +3 -3
  41. package/dist/{es.umd-TNcpnu1Y.js → es.umd-DU02kYat.js} +4 -4
  42. package/dist/{et-mPuuWWtr.js → et-BkHqAKud.js} +3 -3
  43. package/dist/{et.umd-DYKfuslq.js → et.umd-DDO0YmK5.js} +6 -6
  44. package/dist/{eu-CAO2llPd.js → eu-D8T1OJh8.js} +3 -3
  45. package/dist/{eu.umd-BUEnbYAn.js → eu.umd-D0KcLyVa.js} +6 -6
  46. package/dist/{fa-CsfGpEsM.js → fa-NpZx_G2x.js} +3 -3
  47. package/dist/{fa.umd-BihUafdI.js → fa.umd-DEddBu7c.js} +4 -4
  48. package/dist/{fi-CwHDc07z.js → fi-C7ACmRJD.js} +3 -3
  49. package/dist/{fi.umd-DcikNVX8.js → fi.umd-DD3lre9Q.js} +4 -4
  50. package/dist/{fr-CG3Tma1S.js → fr-BK5l-ZLo.js} +3 -3
  51. package/dist/{fr.umd-CogJltaH.js → fr.umd-CNZE3mbe.js} +4 -4
  52. package/dist/{gl-5pRFUBUx.js → gl-B8L4gJWO.js} +3 -3
  53. package/dist/{gl.umd-BBgTjviU.js → gl.umd-mTCLDEBN.js} +4 -4
  54. package/dist/{gu-BhKqn-Ck.js → gu-Bq9eFId5.js} +3 -3
  55. package/dist/{gu.umd-BD8BDDvf.js → gu.umd-CRtSnqEQ.js} +8 -8
  56. package/dist/{he-CfUc31rq.js → he-Dn8UPxNP.js} +3 -3
  57. package/dist/{he.umd-8Yy_M3HI.js → he.umd-BraxJKxO.js} +4 -4
  58. package/dist/{hi-BR8KqsBN.js → hi-CJw0ZrLH.js} +3 -3
  59. package/dist/{hi.umd-BJC6gQjX.js → hi.umd-CHJSKt8L.js} +4 -4
  60. package/dist/{hr-T_6m2tE-.js → hr-DrmwaURm.js} +3 -3
  61. package/dist/{hr.umd-BVZP_7DC.js → hr.umd-B8K7JPFI.js} +8 -8
  62. package/dist/{hu-BWu6Vqm1.js → hu-guip6Kue.js} +3 -3
  63. package/dist/{hu.umd-B1ljVM63.js → hu.umd-Cg4Z9lLK.js} +4 -4
  64. package/dist/{hy-DZGdZbJQ.js → hy-D8SXNFIA.js} +3 -3
  65. package/dist/{hy.umd-BQbvkH0r.js → hy.umd-CI73SnSZ.js} +8 -8
  66. package/dist/{id-CJG1DnlJ.js → id-BPHiYT9r.js} +3 -3
  67. package/dist/{id.umd-BBPTZ6gc.js → id.umd-CIa13bgB.js} +4 -4
  68. package/dist/{it-HuEHrGiX.js → it-QFsp7Phx.js} +3 -3
  69. package/dist/{it.umd-CMeJcd5z.js → it.umd-D-Mc7ZZz.js} +4 -4
  70. package/dist/{ja-CcP_jgW4.js → ja-C7iTwiJh.js} +3 -3
  71. package/dist/{ja.umd-egYXQ0Cr.js → ja.umd-koZThu08.js} +4 -4
  72. package/dist/{jv-BYnxyjxj.js → jv-C57vsj4u.js} +3 -3
  73. package/dist/{jv.umd-BN_ztzb1.js → jv.umd-Ct0pqTvf.js} +13 -13
  74. package/dist/{kk-Cq9uO_wG.js → kk-BDgU5M4I.js} +3 -3
  75. package/dist/{kk.umd-DRyORDrc.js → kk.umd-DPsVCZPw.js} +8 -8
  76. package/dist/{km-CZaxSYa7.js → km-CSOb8_LI.js} +3 -3
  77. package/dist/{km.umd-B0WDv1v4.js → km.umd-DJ5rNa7u.js} +4 -4
  78. package/dist/{kn-0JLBdw3A.js → kn-CXIHX3zk.js} +3 -3
  79. package/dist/{kn.umd-BTY-xN5c.js → kn.umd-DrKuI0qC.js} +8 -8
  80. package/dist/{ko-BHmqHsua.js → ko-BEW2ID_m.js} +3 -3
  81. package/dist/{ko.umd-CcMqy_T9.js → ko.umd-D6_FVyxj.js} +4 -4
  82. package/dist/{ku-CgUWDwi7.js → ku-B4JB5pIA.js} +3 -3
  83. package/dist/{ku.umd-DC6UnrKQ.js → ku.umd-B9R9MGew.js} +8 -8
  84. package/dist/liveagent-components-editor.css +3 -3
  85. package/dist/{lt-Btc3QMJO.js → lt-BDs3H1fC.js} +3 -3
  86. package/dist/{lt.umd-CbeO7ZRQ.js → lt.umd-pCNRM6xf.js} +10 -10
  87. package/dist/{lv-BpM8Ikmc.js → lv-DB_B1KBH.js} +3 -3
  88. package/dist/{lv.umd-C3R_We0j.js → lv.umd-CkG6Viuy.js} +4 -4
  89. package/dist/{ms-54laGUYV.js → ms-CLSS74k_.js} +3 -3
  90. package/dist/{ms.umd-zSDX-nep.js → ms.umd-WuzZ6_9N.js} +8 -8
  91. package/dist/{nb-C37MxnKM.js → nb-CIXxFV6E.js} +3 -3
  92. package/dist/{nb.umd-D51nq2uV.js → nb.umd-CpBrQtpg.js} +4 -4
  93. package/dist/{ne-DfsIFuVQ.js → ne-Bo79eFgQ.js} +3 -3
  94. package/dist/{ne.umd-CUwiN9ji.js → ne.umd-CuNvvlK_.js} +8 -8
  95. package/dist/{nl-oPqycFNX.js → nl-DiCAZgZp.js} +3 -3
  96. package/dist/{nl.umd-KYKzSp0A.js → nl.umd-D1teOZZk.js} +8 -8
  97. package/dist/{no-Csgyj6Cb.js → no-BSfx1UZR.js} +3 -3
  98. package/dist/{no.umd-DvNqhm3y.js → no.umd-DUVMBQNT.js} +4 -4
  99. package/dist/{oc-BdqnYoWE.js → oc-BTrHj_fc.js} +3 -3
  100. package/dist/{oc.umd-AqbDyTQh.js → oc.umd-BfT5RnV6.js} +12 -12
  101. package/dist/{pl-DkIxaKab.js → pl-B-AaAsp4.js} +3 -3
  102. package/dist/{pl.umd-a48uNdyI.js → pl.umd-BymNe-qd.js} +6 -6
  103. package/dist/{pt-br-B0moiHb9.js → pt-br-BqGxhYgG.js} +3 -3
  104. package/dist/{pt-br.umd-Dl6ibQ5e.js → pt-br.umd-DQs0cQwo.js} +16 -16
  105. package/dist/{pt-CL4tvBzQ.js → pt-cOv7pn5W.js} +3 -3
  106. package/dist/{pt.umd-CzLLUCAO.js → pt.umd-GS6lVSwc.js} +10 -10
  107. package/dist/{ro-ozc-u-9x.js → ro-CPFGP4_V.js} +3 -3
  108. package/dist/{ro.umd-Cof6hEHy.js → ro.umd-BEBp00IQ.js} +4 -4
  109. package/dist/{ru-BYjb63UD.js → ru-CJ1bWKso.js} +3 -3
  110. package/dist/{ru.umd-CCZ9LtLS.js → ru.umd-jX7FPHxW.js} +4 -4
  111. package/dist/{si-CKXZVpSb.js → si-D1bdmWUf.js} +3 -3
  112. package/dist/{si.umd-C-324APQ.js → si.umd-CvFuJStL.js} +8 -8
  113. package/dist/{sk-Ci8Q58zY.js → sk-DoB4vMyn.js} +3 -3
  114. package/dist/{sk.umd-SkNipKIM.js → sk.umd-BUUbQ9ew.js} +4 -4
  115. package/dist/{sl-OLlmbSUC.js → sl-CTqOz-gZ.js} +3 -3
  116. package/dist/{sl.umd-8rOS-has.js → sl.umd-BC1PYuwA.js} +4 -4
  117. package/dist/{sq-QyXuP5BU.js → sq-BvaQPZZF.js} +3 -3
  118. package/dist/{sq.umd-B7CbcRfG.js → sq.umd-ElP4Q1s6.js} +8 -8
  119. package/dist/{sr-Sges4GVV.js → sr-CSUgjs3i.js} +3 -3
  120. package/dist/{sr-latn-EAF8dA2B.js → sr-latn-D4xYEy3V.js} +3 -3
  121. package/dist/{sr-latn.umd-Dm54k4hO.js → sr-latn.umd-BIcrAvxM.js} +4 -4
  122. package/dist/{sr.umd-B4ssFkxa.js → sr.umd-lQfQuXIC.js} +11 -11
  123. package/dist/{sv-6c5S_wBI.js → sv-DEZLMsBN.js} +3 -3
  124. package/dist/{sv.umd-CoiRjSUG.js → sv.umd-CJHAn4Eb.js} +4 -4
  125. package/dist/{th-D13bAKgT.js → th-DSWOPCzT.js} +3 -3
  126. package/dist/{th.umd-BYiiKbpg.js → th.umd-DOi9nccJ.js} +4 -4
  127. package/dist/{ti-CizHxZcV.js → ti-B19StfN-.js} +3 -3
  128. package/dist/{ti.umd-Bg-92Hf4.js → ti.umd-BVFHt0U5.js} +8 -8
  129. package/dist/{tk-C-A4oWrB.js → tk-D60vRypT.js} +3 -3
  130. package/dist/{tk.umd-Cf6HghuD.js → tk.umd-CISiyzlg.js} +4 -4
  131. package/dist/{tr-pGx482Bj.js → tr-C9F5xPAk.js} +3 -3
  132. package/dist/{tr.umd-C2XnEI2x.js → tr.umd-Nctk-bS1.js} +8 -8
  133. package/dist/{tt-BvUDRKXp.js → tt-B8xvoi2k.js} +3 -3
  134. package/dist/{tt.umd-Drb4_jP_.js → tt.umd-CmAl-kJi.js} +8 -8
  135. package/dist/{ug-CFpWxaeG.js → ug-BG0uHRWA.js} +3 -3
  136. package/dist/{ug.umd-CtKrEWP4.js → ug.umd-CBNdNEUG.js} +4 -4
  137. package/dist/{uk-DMPFRS0Y.js → uk-EdXdOIz4.js} +3 -3
  138. package/dist/{uk.umd-IL1SQTpu.js → uk.umd-DPdo-wSD.js} +6 -6
  139. package/dist/{ur-BiF5IiPx.js → ur-DF4yosP-.js} +3 -3
  140. package/dist/{ur.umd-DmXyBWO_.js → ur.umd-BC3p9xPw.js} +8 -8
  141. package/dist/{uz-B-U-PcEM.js → uz-CUaUHp_S.js} +3 -3
  142. package/dist/{uz.umd-D9uNkuG6.js → uz.umd-CWOay6L1.js} +4 -4
  143. package/dist/{vi-DfdnoqoQ.js → vi-C8cYXnkQ.js} +3 -3
  144. package/dist/{vi.umd-Dv7g8Kpw.js → vi.umd-TxGvZysz.js} +7 -7
  145. package/dist/{zh-CGibO9C5.js → zh-CkXvQU55.js} +3 -3
  146. package/dist/{zh-cn-DI3cvxwh.js → zh-cn-Ck2wb4R3.js} +3 -3
  147. package/dist/{zh-cn.umd-ByGdISOe.js → zh-cn.umd-KxlyfTGP.js} +4 -4
  148. package/dist/{zh.umd-CC7vyDbG.js → zh.umd-Ncp93bAX.js} +4 -4
  149. package/package.json +7 -7
@@ -1,177 +1,167 @@
1
- import { b as W, h as g, a as $, E as fe, H as j, r as Y, s as q, c as T, d as M, e as C, p as K, f as x, U as ve, i as oe, j as ee, I as k, k as z, l as ce, m as _e, n as de, o as he, q as be, t as ge, u as me, v as G, w as Ee, x as ye, y as pe, z as Ne, A as xe, B as Te, C as Ae, D as Ie, F as ke, G as we, J as He, K as ae, L as te, M as Me, N as w, O as re, P as F, Q as R, R as ne, S as L, T as H, V as S, W as X, X as Ce, Y as I, Z as D, _ as Re, $ as Se, a0 as De } from "./ckeditor5-CiFYmPZ9.js";
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
2
  function Le(e, a, t = !1) {
3
- g && $();
4
- var r = e, n = null, l = null, v = ve, c = t ? fe : 0, o = !1;
5
- const h = (i, u = !0) => {
6
- o = !0, _(u, i);
7
- }, _ = (i, u) => {
8
- if (v === (v = i)) return;
9
- let s = !1;
10
- if (g) {
11
- const f = (
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
12
  /** @type {Comment} */
13
- r.data === j
13
+ r.data === $
14
14
  );
15
- !!v === f && (r = Y(), q(r), T(!1), s = !0);
15
+ !!u === o && (r = O(), U(r), N(!1), f = !0);
16
16
  }
17
- v ? (n ? M(n) : u && (n = C(() => u(r))), l && K(l, () => {
18
- l = null;
19
- })) : (l ? M(l) : u && (l = C(() => u(r))), n && K(n, () => {
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
20
  n = null;
21
- })), s && T(!0);
21
+ })), f && N(!0);
22
22
  };
23
- W(() => {
24
- o = !1, a(h), o || _(null, null);
25
- }, c), g && (r = x);
23
+ Q(() => {
24
+ c = !1, a(h), c || l(null, null);
25
+ }, d), b && (r = x);
26
26
  }
27
27
  function Pe(e, a) {
28
28
  return a;
29
29
  }
30
30
  function Ve(e, a, t, r) {
31
- for (var n = [], l = a.length, v = 0; v < l; v++)
32
- _e(a[v].e, n, !0);
33
- var c = l > 0 && n.length === 0 && t !== null;
34
- if (c) {
35
- var o = (
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 = (
36
36
  /** @type {Element} */
37
37
  /** @type {Element} */
38
38
  t.parentNode
39
39
  );
40
- de(o), o.append(
40
+ _e(c), c.append(
41
41
  /** @type {Element} */
42
42
  t
43
- ), r.clear(), N(e, a[0].prev, a[l - 1].next);
43
+ ), r.clear(), p(e, a[0].prev, a[i - 1].next);
44
44
  }
45
- he(n, () => {
46
- for (var h = 0; h < l; h++) {
47
- var _ = a[h];
48
- c || (r.delete(_.k), N(e, _.prev, _.next)), be(_.e, !c);
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
49
  }
50
50
  });
51
51
  }
52
- function Be(e, a, t, r, n, l = null) {
53
- var v = e, c = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
54
- g && $();
55
- var o = null, h = !1;
56
- W(() => {
57
- var _ = t(), i = oe(_) ? _ : _ == null ? [] : ee(_), u = i.length;
58
- if (h && u === 0)
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);
58
+ });
59
+ Q(() => {
60
+ var v = A(l), s = v.length;
61
+ if (h && s === 0)
59
62
  return;
60
- h = u === 0;
61
- let s = !1;
62
- if (g) {
63
- var f = (
63
+ h = s === 0;
64
+ let f = !1;
65
+ if (b) {
66
+ var o = (
64
67
  /** @type {Comment} */
65
- v.data === j
68
+ u.data === $
66
69
  );
67
- f !== (u === 0) && (v = Y(), q(v), T(!1), s = !0);
70
+ o !== (s === 0) && (u = O(), U(u), N(!1), f = !0);
68
71
  }
69
- if (g) {
70
- for (var b = null, y, m = 0; m < u; m++) {
72
+ if (b) {
73
+ for (var m = null, E, _ = 0; _ < s; _++) {
71
74
  if (x.nodeType === 8 && /** @type {Comment} */
72
75
  x.data === ye) {
73
- v = /** @type {Comment} */
74
- x, s = !0, T(!1);
76
+ u = /** @type {Comment} */
77
+ x, f = !0, N(!1);
75
78
  break;
76
79
  }
77
- var d = i[m], E = r(d, m);
78
- y = se(
80
+ var g = v[_], T = r(g, _);
81
+ E = ne(
79
82
  x,
80
- c,
81
- b,
82
- null,
83
83
  d,
84
- E,
85
84
  m,
85
+ null,
86
+ g,
87
+ T,
88
+ _,
86
89
  n,
87
- a
88
- ), c.items.set(E, y), b = y;
90
+ a,
91
+ t
92
+ ), d.items.set(T, E), m = E;
89
93
  }
90
- u > 0 && q(Y());
91
- }
92
- if (!g) {
93
- var P = (
94
- /** @type {Effect} */
95
- ge
96
- );
97
- Fe(
98
- i,
99
- c,
100
- v,
101
- n,
102
- a,
103
- (P.f & k) !== 0,
104
- r
105
- );
94
+ s > 0 && U(O());
106
95
  }
107
- l !== null && (u === 0 ? o ? M(o) : o = C(() => l(v)) : o !== null && K(o, () => {
108
- o = null;
109
- })), s && T(!0), t();
110
- }), g && (v = x);
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);
111
100
  }
112
- function Fe(e, a, t, r, n, l, v, c) {
113
- var o = e.length, h = a.items, _ = a.first, i = _, u, s = null, f = [], b = [], y, m, d, E;
114
- for (E = 0; E < o; E += 1) {
115
- if (y = e[E], m = v(y, E), d = h.get(m), d === void 0) {
116
- var P = i ? (
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 ? (
117
106
  /** @type {TemplateNode} */
118
- i.e.nodes_start
107
+ l.e.nodes_start
119
108
  ) : t;
120
- s = se(
121
- P,
109
+ s = ne(
110
+ T,
122
111
  a,
123
112
  s,
124
113
  s === null ? a.first : s.next,
125
- y,
126
114
  m,
127
115
  E,
116
+ g,
128
117
  r,
129
- n
130
- ), h.set(m, s), f = [], b = [], i = s.next;
118
+ n,
119
+ u
120
+ ), c.set(E, s), f = [], o = [], l = s.next;
131
121
  continue;
132
122
  }
133
- if (Oe(d, y, E), d.e.f & k && M(d.e), d !== i) {
134
- if (u !== void 0 && u.has(d)) {
135
- if (f.length < b.length) {
136
- var A = b[0], p;
137
- s = A.prev;
138
- var Z = f[0], V = f[f.length - 1];
139
- for (p = 0; p < f.length; p += 1)
140
- J(f[p], A, t);
141
- for (p = 0; p < b.length; p += 1)
142
- u.delete(b[p]);
143
- N(a, Z.prev, V.next), N(a, s, Z), N(a, V, A), i = A, s = V, E -= 1, f = [], b = [];
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 = [];
144
134
  } else
145
- u.delete(d), J(d, i, t), N(a, d.prev, d.next), N(a, d, s === null ? a.first : s.next), N(a, s, d), s = d;
135
+ v.delete(_), G(_, l, t), p(a, _.prev, _.next), p(a, _, s === null ? a.first : s.next), p(a, s, _), s = _;
146
136
  continue;
147
137
  }
148
- for (f = [], b = []; i !== null && i.k !== m; )
149
- (l || !(i.e.f & k)) && (u ?? (u = /* @__PURE__ */ new Set())).add(i), b.push(i), i = i.next;
150
- if (i === null)
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)
151
141
  continue;
152
- d = i;
142
+ _ = l;
153
143
  }
154
- f.push(d), s = d, i = d.next;
144
+ f.push(_), s = _, l = _.next;
155
145
  }
156
- if (i !== null || u !== void 0) {
157
- for (var B = u === void 0 ? [] : ee(u); i !== null; )
158
- (l || !(i.e.f & k)) && B.push(i), i = i.next;
159
- var ie = B.length;
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;
160
150
  if (ie > 0) {
161
- var ue = null;
162
- Ve(a, B, ue, h);
151
+ var fe = null;
152
+ Ve(a, P, fe, c);
163
153
  }
164
154
  }
165
- z.first = a.first && a.first.e, z.last = s && s.e;
155
+ Z.first = a.first && a.first.e, Z.last = s && s.e;
166
156
  }
167
- function Oe(e, a, t, r) {
168
- ce(e.v, a), e.i = t;
157
+ function Fe(e, a, t, r) {
158
+ oe(e.v, a), e.i = t;
169
159
  }
170
- function se(e, a, t, r, n, l, v, c, o, h) {
171
- var _ = (o & pe) !== 0, i = (o & Ne) === 0, u = _ ? i ? me(n) : G(n) : n, s = o & Ee ? G(v) : v, f = {
172
- i: s,
173
- v: u,
174
- k: l,
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,
175
165
  a: null,
176
166
  // @ts-expect-error
177
167
  e: null,
@@ -179,171 +169,187 @@ function se(e, a, t, r, n, l, v, c, o, h) {
179
169
  next: r
180
170
  };
181
171
  try {
182
- return f.e = C(() => c(e, u, s), g), f.e.prev = t && t.e, f.e.next = r && r.e, t === null ? a.first = f : (t.next = f, t.e.next = f.e), r !== null && (r.prev = f, r.e.prev = f.e), f;
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;
183
173
  } finally {
184
174
  }
185
175
  }
186
- function J(e, a, t) {
176
+ function G(e, a, t) {
187
177
  for (var r = e.next ? (
188
178
  /** @type {TemplateNode} */
189
179
  e.next.e.nodes_start
190
180
  ) : t, n = a ? (
191
181
  /** @type {TemplateNode} */
192
182
  a.e.nodes_start
193
- ) : t, l = (
183
+ ) : t, i = (
194
184
  /** @type {TemplateNode} */
195
185
  e.e.nodes_start
196
- ); l !== r; ) {
197
- var v = (
186
+ ); i !== r; ) {
187
+ var u = (
198
188
  /** @type {TemplateNode} */
199
- xe(l)
189
+ Ae(i)
200
190
  );
201
- n.before(l), l = v;
191
+ n.before(i), i = u;
202
192
  }
203
193
  }
204
- function N(e, a, t) {
194
+ function p(e, a, t) {
205
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);
206
196
  }
207
- function Ue(e, a, t, r) {
197
+ function se(e) {
198
+ var a, t, r = "";
199
+ if (typeof e == "string" || typeof e == "number") r += e;
200
+ else if (typeof e == "object") if (Array.isArray(e)) {
201
+ 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);
204
+ return r;
205
+ }
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);
208
+ return r;
209
+ }
210
+ function Ue(e) {
211
+ return typeof e == "object" ? Oe(e) : e ?? "";
212
+ }
213
+ function Ye(e, a, t, r) {
208
214
  var n = e.__attributes ?? (e.__attributes = {});
209
- g && (n[a] = e.getAttribute(a)), n[a] !== (n[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && Ye(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
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));
210
216
  }
211
- var Q = /* @__PURE__ */ new Map();
212
- function Ye(e) {
213
- var a = Q.get(e.nodeName);
217
+ var J = /* @__PURE__ */ new Map();
218
+ function Ke(e) {
219
+ var a = J.get(e.nodeName);
214
220
  if (a) return a;
215
- Q.set(e.nodeName, a = []);
221
+ J.set(e.nodeName, a = []);
216
222
  for (var t, r = e, n = Element.prototype; n !== r; ) {
217
- t = Ae(r);
218
- for (var l in t)
219
- t[l].set && a.push(l);
220
- r = Te(r);
223
+ t = Te(r);
224
+ for (var i in t)
225
+ t[i].set && a.push(i);
226
+ r = Ne(r);
221
227
  }
222
228
  return a;
223
229
  }
224
- function qe(e, a) {
225
- var t = e.__className, r = Ke(a);
226
- g && e.className === r ? e.__className = r : (t !== r || g && e.className !== r) && (a == null ? e.removeAttribute("class") : e.className = r, e.__className = r);
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);
227
233
  }
228
- function Ke(e) {
229
- return e ?? "";
234
+ function Ze(e, a) {
235
+ return (e ?? "") + "";
230
236
  }
231
- function Xe(e, a, t = a) {
237
+ function ze(e, a, t = a) {
232
238
  var r = Ie();
233
239
  ke(e, "input", (n) => {
234
- var l = n ? e.defaultValue : e.value;
235
- if (l = O(e) ? U(l) : l, t(l), r && l !== (l = a())) {
236
- var v = e.selectionStart, c = e.selectionEnd;
237
- e.value = l ?? "", c !== null && (e.selectionStart = v, e.selectionEnd = Math.min(c, e.value.length));
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));
238
244
  }
239
245
  }), // If we are hydrating and the value has since changed,
240
246
  // then use the updated value from the input instead.
241
- (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
247
+ (b && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
242
248
  // TODO Svelte 6: remove input.value check and set to empty string?
243
- we(a) == null && e.value) && t(O(e) ? U(e.value) : e.value), He(() => {
249
+ we(a) == null && e.value) && t(B(e) ? F(e.value) : e.value), He(() => {
244
250
  var n = a();
245
- O(e) && n === U(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
251
+ B(e) && n === F(e.value) || e.type === "date" && !n && !e.value || n !== e.value && (e.value = n ?? "");
246
252
  });
247
253
  }
248
- function O(e) {
254
+ function B(e) {
249
255
  var a = e.type;
250
256
  return a === "number" || a === "range";
251
257
  }
252
- function U(e) {
258
+ function F(e) {
253
259
  return e === "" ? null : +e;
254
260
  }
255
- var Ze = L("<button> </button>"), ze = L('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
261
+ var Ge = D("<button> </button>"), Je = D('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
256
262
  function le(e, a) {
257
- te(a, !1);
263
+ ae(a, !1);
258
264
  const t = Me();
259
- let r = w(a, "buttons", 28, () => []);
265
+ let r = k(a, "buttons", 28, () => []);
260
266
  function n() {
261
267
  t("html", {});
262
268
  }
263
- function l() {
269
+ function i() {
264
270
  t("plain", {});
265
271
  }
266
- re();
267
- var v = ze(), c = S(v), o = X(c, 2), h = X(o, 2);
268
- return Be(h, 1, r, Pe, (_, i) => {
269
- var u = Ze(), s = S(u, !0);
270
- D(u), Ce(() => {
271
- qe(u, I(i).style), Ue(u, "title", I(i).text), Re(s, I(i).text);
272
- }), F("click", u, function(...f) {
273
- var b;
274
- (b = I(i).handler) == null || b.apply(this, f);
275
- }), R(_, u);
276
- }), D(v), F("click", c, n), F("click", o, l), R(e, v), ne({
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) {
279
+ 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({
277
283
  get buttons() {
278
284
  return r();
279
285
  },
280
- set buttons(_) {
281
- r(_), H();
286
+ set buttons(l) {
287
+ r(l), w();
282
288
  }
283
289
  });
284
290
  }
285
- ae(le, { buttons: {} }, [], [], !0);
286
- var Ge = L("<textarea></textarea>"), Je = L('<main><div class="Editor"><!></div> <!></main>');
287
- function Qe(e, a) {
288
- te(a, !1);
289
- let t = w(a, "value", 12, ""), r = w(a, "buttons", 28, () => []), n = w(a, "html", 12, !0);
290
- function l() {
291
+ 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() {
291
297
  n() || n(!0);
292
298
  }
293
- function v() {
299
+ function u() {
294
300
  n() && (t(t().replace(/<[^>]*>?/gm, "")), n(!1));
295
301
  }
296
- re();
297
- var c = Je(), o = S(c), h = S(o);
302
+ te();
303
+ var d = We(), c = R(d), h = R(c);
298
304
  {
299
- var _ = (s) => {
300
- Se(s, {
305
+ var l = (f) => {
306
+ Se(f, {
301
307
  get value() {
302
308
  return t();
303
309
  },
304
- set value(f) {
305
- t(f);
310
+ set value(o) {
311
+ t(o);
306
312
  },
307
313
  $$legacy: !0
308
314
  });
309
- }, i = (s) => {
310
- var f = Ge();
311
- De(f), Xe(f, t), R(s, f);
315
+ }, v = (f) => {
316
+ var o = Qe();
317
+ De(o), ze(o, t), C(f, o);
312
318
  };
313
- Le(h, (s) => {
314
- n() ? s(_) : s(i, !1);
319
+ Le(h, (f) => {
320
+ n() ? f(l) : f(v, !1);
315
321
  });
316
322
  }
317
- D(o);
318
- var u = X(o, 2);
319
- return le(u, {
323
+ S(c);
324
+ var s = K(c, 2);
325
+ return le(s, {
320
326
  get buttons() {
321
327
  return r();
322
328
  },
323
- set buttons(s) {
324
- r(s);
329
+ set buttons(f) {
330
+ r(f);
325
331
  },
326
- $$events: { html: l, plain: v },
332
+ $$events: { html: i, plain: u },
327
333
  $$legacy: !0
328
- }), D(c), R(e, c), ne({
334
+ }), S(d), C(e, d), re({
329
335
  get value() {
330
336
  return t();
331
337
  },
332
- set value(s) {
333
- t(s), H();
338
+ set value(f) {
339
+ t(f), w();
334
340
  },
335
341
  get buttons() {
336
342
  return r();
337
343
  },
338
- set buttons(s) {
339
- r(s), H();
344
+ set buttons(f) {
345
+ r(f), w();
340
346
  },
341
347
  get html() {
342
348
  return n();
343
349
  },
344
- set html(s) {
345
- n(s), H();
350
+ set html(f) {
351
+ n(f), w();
346
352
  }
347
353
  });
348
354
  }
349
- customElements.define("switchable-editor", ae(Qe, { value: {}, buttons: {}, html: {} }, [], [], !1));
355
+ customElements.define("switchable-editor", ee($e, { value: {}, buttons: {}, html: {} }, [], [], !1));