nam-rich-text-editor 9.1.2 → 9.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -214,12 +214,12 @@ function Ln(h, v) {
214
214
  if (!f || f.rangeCount === 0) return;
215
215
  const d = f.getRangeAt(0);
216
216
  if (!d.collapsed) {
217
- const M = document.createElement("span");
218
- M.style[h] = v;
217
+ const _ = document.createElement("span");
218
+ _.style[h] = v;
219
219
  const C = d.extractContents();
220
- M.appendChild(C), d.insertNode(M), f.removeAllRanges();
221
- const N = document.createRange();
222
- N.selectNodeContents(M), f.addRange(N), me(N);
220
+ _.appendChild(C), d.insertNode(_), f.removeAllRanges();
221
+ const P = document.createRange();
222
+ P.selectNodeContents(_), f.addRange(P), me(P);
223
223
  return;
224
224
  }
225
225
  const y = document.createElement("span");
@@ -295,7 +295,7 @@ function Oo() {
295
295
  d.appendChild(y), d.title = f.title, d.style.border = "1px solid #e1e1e1", d.style.backgroundColor = "#ffffff", d.style.padding = "6px 10px", d.style.borderRadius = "3px", d.style.cursor = "pointer", d.style.color = "#000000", d.onmouseover = () => d.style.backgroundColor = "#f0f0f0", d.onmouseout = () => d.style.backgroundColor = "#ffffff", d.onclick = () => document.execCommand(f.command), h.appendChild(d);
296
296
  }), h;
297
297
  }
298
- function Po() {
298
+ function Ao() {
299
299
  const h = document.createDocumentFragment();
300
300
  return [
301
301
  { command: "undo", icon: ko, title: "Undo" },
@@ -309,7 +309,7 @@ function Po() {
309
309
  d.appendChild(y), d.title = f.title, d.style.border = "1px solid #e1e1e1", d.style.backgroundColor = "#ffffff", d.style.padding = "6px 10px", d.style.borderRadius = "3px", d.style.cursor = "pointer", d.style.color = "#000000", d.onmouseover = () => d.style.backgroundColor = "#f0f0f0", d.onmouseout = () => d.style.backgroundColor = "#ffffff", d.onclick = () => document.execCommand(f.command), h.appendChild(d);
310
310
  }), h;
311
311
  }
312
- function Ao() {
312
+ function Po() {
313
313
  const h = document.createElement("div");
314
314
  h.setAttribute("role", "button"), h.tabIndex = 0, h.style.userSelect = "none", h.addEventListener("keydown", (f) => {
315
315
  (f.key === "Enter" || f.key === " ") && (f.preventDefault(), h.click());
@@ -319,8 +319,8 @@ function Ao() {
319
319
  }
320
320
  function Do() {
321
321
  const h = document.createElement("div");
322
- h.setAttribute("role", "button"), h.tabIndex = 0, h.style.userSelect = "none", h.addEventListener("keydown", (M) => {
323
- (M.key === "Enter" || M.key === " ") && (M.preventDefault(), h.click());
322
+ h.setAttribute("role", "button"), h.tabIndex = 0, h.style.userSelect = "none", h.addEventListener("keydown", (_) => {
323
+ (_.key === "Enter" || _.key === " ") && (_.preventDefault(), h.click());
324
324
  });
325
325
  const v = ye(po, {
326
326
  width: 16,
@@ -332,25 +332,25 @@ function Do() {
332
332
  h.appendChild(v), h.title = "Toggle Fullscreen", h.style.border = "1px solid #e1e1e1", h.style.backgroundColor = "#ffffff", h.style.padding = "6px 10px", h.style.borderRadius = "3px", h.style.cursor = "pointer", h.style.color = "#000000", h.onmouseover = () => h.style.backgroundColor = "#f0f0f0", h.onmouseout = () => h.style.backgroundColor = "#ffffff";
333
333
  let d = !1, y = "", x = "";
334
334
  return h.onclick = () => {
335
- const M = document.querySelector(
335
+ const _ = document.querySelector(
336
336
  ".editor-container"
337
337
  );
338
- if (!M) return;
339
- const C = M.querySelector(".editor");
338
+ if (!_) return;
339
+ const C = _.querySelector(".editor");
340
340
  if (d)
341
- y ? M.setAttribute("style", y) : M.removeAttribute("style"), C && (x ? C.setAttribute("style", x) : C.removeAttribute("style")), h.replaceChild(v, f), d = !1;
341
+ y ? _.setAttribute("style", y) : _.removeAttribute("style"), C && (x ? C.setAttribute("style", x) : C.removeAttribute("style")), h.replaceChild(v, f), d = !1;
342
342
  else {
343
- y = M.getAttribute("style") || "", x = C && C.getAttribute("style") || "", M.style.position = "fixed", M.style.top = "0", M.style.left = "0", M.style.width = "100vw", M.style.height = "100vh";
343
+ y = _.getAttribute("style") || "", x = C && C.getAttribute("style") || "", _.style.position = "fixed", _.style.top = "0", _.style.left = "0", _.style.width = "100vw", _.style.height = "100vh";
344
344
  try {
345
- let N = 9998;
346
- document.querySelectorAll("body *").forEach((O) => {
347
- const T = window.getComputedStyle(O).getPropertyValue("z-index"), oe = parseInt(T, 10);
348
- !isNaN(oe) && oe > 0 && (N = Math.max(N, oe));
349
- }), M.style.zIndex = String(Math.max(N + 1, 9999));
345
+ let P = 9998;
346
+ document.querySelectorAll("body *").forEach((I) => {
347
+ const M = window.getComputedStyle(I).getPropertyValue("z-index"), $ = parseInt(M, 10);
348
+ !isNaN($) && $ > 0 && (P = Math.max(P, $));
349
+ }), _.style.zIndex = String(Math.max(P + 1, 9999));
350
350
  } catch {
351
- M.style.zIndex = "9999";
351
+ _.style.zIndex = "9999";
352
352
  }
353
- M.style.backgroundColor = "#ffffff", M.style.display = "flex", M.style.flexDirection = "column", C && (C.style.flexGrow = "1", C.style.overflowY = "auto", C.style.border = "none", C.style.borderRadius = "0", C.style.boxShadow = "none"), h.replaceChild(f, v), d = !0;
353
+ _.style.backgroundColor = "#ffffff", _.style.display = "flex", _.style.flexDirection = "column", C && (C.style.flexGrow = "1", C.style.overflowY = "auto", C.style.border = "none", C.style.borderRadius = "0", C.style.boxShadow = "none"), h.replaceChild(f, v), d = !0;
354
354
  }
355
355
  }, h;
356
356
  }
@@ -363,84 +363,84 @@ function No(h) {
363
363
  y.textContent = "Insert Hyperlink", y.style.margin = "0 0 15px 0", y.style.fontSize = "18px", y.style.fontWeight = "bold";
364
364
  const x = document.createElement("input");
365
365
  x.type = "url", x.placeholder = "Enter URL (e.g., https://example.com)", x.style.width = "100%", x.style.padding = "8px", x.style.border = "1px solid #ccc", x.style.borderRadius = "4px", x.style.marginBottom = "15px", x.style.boxSizing = "border-box";
366
- const M = document.createElement("div");
367
- M.style.display = "flex", M.style.gap = "10px", M.style.justifyContent = "flex-end";
366
+ const _ = document.createElement("div");
367
+ _.style.display = "flex", _.style.gap = "10px", _.style.justifyContent = "flex-end";
368
368
  const C = document.createElement("div");
369
- C.setAttribute("role", "button"), C.tabIndex = 0, C.style.userSelect = "none", C.textContent = "Cancel", C.style.padding = "8px 16px", C.style.border = "1px solid #ccc", C.style.borderRadius = "4px", C.style.backgroundColor = "#f5f5f5", C.style.cursor = "pointer", C.addEventListener("keydown", (P) => {
370
- (P.key === "Enter" || P.key === " " || P.key === "Escape") && (P.preventDefault(), C.click());
369
+ C.setAttribute("role", "button"), C.tabIndex = 0, C.style.userSelect = "none", C.textContent = "Cancel", C.style.padding = "8px 16px", C.style.border = "1px solid #ccc", C.style.borderRadius = "4px", C.style.backgroundColor = "#f5f5f5", C.style.cursor = "pointer", C.addEventListener("keydown", (A) => {
370
+ (A.key === "Enter" || A.key === " " || A.key === "Escape") && (A.preventDefault(), C.click());
371
371
  }), C.onclick = () => {
372
- f.style.display = "none", x.value = "", N = null;
372
+ f.style.display = "none", x.value = "", P = null;
373
373
  };
374
- let N = null;
375
- const O = document.createElement("div");
376
- O.setAttribute("role", "button"), O.tabIndex = 0, O.style.userSelect = "none", O.textContent = "Insert", O.style.padding = "8px 16px", O.style.border = "none", O.style.borderRadius = "4px", O.style.backgroundColor = "#007bff", O.style.color = "#fff", O.style.cursor = "pointer", O.addEventListener("keydown", (P) => {
377
- (P.key === "Enter" || P.key === " ") && (P.preventDefault(), O.click());
378
- }), O.onclick = () => {
379
- const P = x.value.trim();
380
- if (P)
381
- if (N)
382
- N.setAttribute("href", P), N.setAttribute("target", "_blank"), N.setAttribute("rel", "noopener noreferrer"), N.setAttribute("tabindex", "0");
374
+ let P = null;
375
+ const I = document.createElement("div");
376
+ I.setAttribute("role", "button"), I.tabIndex = 0, I.style.userSelect = "none", I.textContent = "Insert", I.style.padding = "8px 16px", I.style.border = "none", I.style.borderRadius = "4px", I.style.backgroundColor = "#007bff", I.style.color = "#fff", I.style.cursor = "pointer", I.addEventListener("keydown", (A) => {
377
+ (A.key === "Enter" || A.key === " ") && (A.preventDefault(), I.click());
378
+ }), I.onclick = () => {
379
+ const A = x.value.trim();
380
+ if (A)
381
+ if (P)
382
+ P.setAttribute("href", A), P.setAttribute("target", "_blank"), P.setAttribute("rel", "noopener noreferrer"), P.setAttribute("tabindex", "0");
383
383
  else {
384
- Ne(), document.execCommand("createLink", !1, P);
385
- const Z = window.getSelection();
386
- if (Z && Z.rangeCount > 0) {
387
- let X = Z.getRangeAt(0).startContainer;
388
- for (; X && X.nodeType !== Node.ELEMENT_NODE; )
389
- X = X.parentNode;
390
- let U = X;
391
- for (; U && U !== document.body; ) {
392
- if (U.tagName === "A") {
393
- const re = U;
394
- re.setAttribute("target", "_blank"), re.setAttribute("rel", "noopener noreferrer"), re.setAttribute("tabindex", "0");
384
+ Ne(), document.execCommand("createLink", !1, A);
385
+ const ee = window.getSelection();
386
+ if (ee && ee.rangeCount > 0) {
387
+ let G = ee.getRangeAt(0).startContainer;
388
+ for (; G && G.nodeType !== Node.ELEMENT_NODE; )
389
+ G = G.parentNode;
390
+ let X = G;
391
+ for (; X && X !== document.body; ) {
392
+ if (X.tagName === "A") {
393
+ const oe = X;
394
+ oe.setAttribute("target", "_blank"), oe.setAttribute("rel", "noopener noreferrer"), oe.setAttribute("tabindex", "0");
395
395
  break;
396
396
  }
397
- U = U.parentElement;
397
+ X = X.parentElement;
398
398
  }
399
399
  }
400
400
  }
401
- f.style.display = "none", x.value = "", N = null;
402
- }, M.appendChild(C), M.appendChild(O), d.appendChild(y), d.appendChild(x), d.appendChild(M), f.appendChild(d), document.body.appendChild(f), x.onkeydown = (P) => {
403
- P.key === "Enter" ? O.click() : P.key === "Escape" && C.click();
401
+ f.style.display = "none", x.value = "", P = null;
402
+ }, _.appendChild(C), _.appendChild(I), d.appendChild(y), d.appendChild(x), d.appendChild(_), f.appendChild(d), document.body.appendChild(f), x.onkeydown = (A) => {
403
+ A.key === "Enter" ? I.click() : A.key === "Escape" && C.click();
404
404
  };
405
- const T = document.createElement("div");
406
- T.setAttribute("role", "button"), T.tabIndex = 0, T.style.userSelect = "none";
407
- const oe = ye(ao, { width: 16, height: 16 });
408
- T.appendChild(oe), T.title = "Insert Hyperlink", T.style.border = "1px solid #e1e1e1", T.style.backgroundColor = "#ffffff", T.style.padding = "6px 10px", T.style.borderRadius = "3px", T.style.cursor = "pointer", T.style.color = "#000000", T.onmouseover = () => T.style.backgroundColor = "#f0f0f0", T.onmouseout = () => T.style.backgroundColor = "#ffffff", T.onmousedown = () => {
409
- N = null;
410
- const P = window.getSelection();
411
- if (P && P.rangeCount > 0) {
412
- let X = P.getRangeAt(0).startContainer;
413
- for (; X && X.nodeType !== Node.ELEMENT_NODE; )
414
- X = X.parentNode;
415
- let U = X;
416
- for (; U && U !== document.body; ) {
417
- if (U.tagName === "A") {
418
- N = U, x.value = N.getAttribute("href") || "";
405
+ const M = document.createElement("div");
406
+ M.setAttribute("role", "button"), M.tabIndex = 0, M.style.userSelect = "none";
407
+ const $ = ye(ao, { width: 16, height: 16 });
408
+ M.appendChild($), M.title = "Insert Hyperlink", M.style.border = "1px solid #e1e1e1", M.style.backgroundColor = "#ffffff", M.style.padding = "6px 10px", M.style.borderRadius = "3px", M.style.cursor = "pointer", M.style.color = "#000000", M.onmouseover = () => M.style.backgroundColor = "#f0f0f0", M.onmouseout = () => M.style.backgroundColor = "#ffffff", M.onmousedown = () => {
409
+ P = null;
410
+ const A = window.getSelection();
411
+ if (A && A.rangeCount > 0) {
412
+ let G = A.getRangeAt(0).startContainer;
413
+ for (; G && G.nodeType !== Node.ELEMENT_NODE; )
414
+ G = G.parentNode;
415
+ let X = G;
416
+ for (; X && X !== document.body; ) {
417
+ if (X.tagName === "A") {
418
+ P = X, x.value = P.getAttribute("href") || "";
419
419
  break;
420
420
  }
421
- U = U.parentElement;
421
+ X = X.parentElement;
422
422
  }
423
423
  }
424
424
  me();
425
- }, T.addEventListener("keydown", (P) => {
426
- (P.key === "Enter" || P.key === " ") && (P.preventDefault(), T.click());
427
- }), T.onclick = () => {
425
+ }, M.addEventListener("keydown", (A) => {
426
+ (A.key === "Enter" || A.key === " ") && (A.preventDefault(), M.click());
427
+ }), M.onclick = () => {
428
428
  f.style.display = "flex", x.focus();
429
- }, v.appendChild(T);
430
- const ne = h.querySelector(".editor");
431
- return ne && ne.addEventListener("click", (P) => {
432
- const Z = P.target;
433
- if (Z.tagName === "A") {
434
- P.preventDefault();
435
- const X = Z.getAttribute("href");
436
- X && window.open(X, "_blank");
429
+ }, v.appendChild(M);
430
+ const re = h.querySelector(".editor");
431
+ return re && re.addEventListener("click", (A) => {
432
+ const ee = A.target;
433
+ if (ee.tagName === "A") {
434
+ A.preventDefault();
435
+ const G = ee.getAttribute("href");
436
+ G && window.open(G, "_blank");
437
437
  }
438
438
  }), v;
439
439
  }
440
440
  function zo() {
441
441
  const h = document.createDocumentFragment(), v = document.createElement("div");
442
- v.setAttribute("role", "button"), v.tabIndex = 0, v.style.userSelect = "none", v.addEventListener("keydown", (G) => {
443
- (G.key === "Enter" || G.key === " ") && (G.preventDefault(), v.click());
442
+ v.setAttribute("role", "button"), v.tabIndex = 0, v.style.userSelect = "none", v.addEventListener("keydown", (K) => {
443
+ (K.key === "Enter" || K.key === " ") && (K.preventDefault(), v.click());
444
444
  });
445
445
  const f = ye(ho, { width: 16, height: 16 });
446
446
  v.appendChild(f), v.title = "Insert Quote", v.style.border = "1px solid #e1e1e1", v.style.backgroundColor = "#ffffff", v.style.padding = "6px 10px", v.style.borderRadius = "3px", v.style.cursor = "pointer", v.style.color = "#000000", v.onmouseover = () => v.style.backgroundColor = "#f0f0f0", v.onmouseout = () => v.style.backgroundColor = "#ffffff";
@@ -450,58 +450,58 @@ function zo() {
450
450
  y.className = "rte-modal";
451
451
  const x = document.createElement("div");
452
452
  x.className = "rte-modal-header";
453
- const M = document.createElement("h3");
454
- M.textContent = "Insert Quote", M.className = "rte-modal-title";
453
+ const _ = document.createElement("h3");
454
+ _.textContent = "Insert Quote", _.className = "rte-modal-title";
455
455
  const C = document.createElement("div");
456
456
  C.setAttribute("role", "button"), C.tabIndex = 0, C.style.userSelect = "none", C.className = "rte-modal-close", C.innerHTML = "×", C.onclick = () => {
457
- d.style.display = "none", Q = null;
458
- }, x.appendChild(M), x.appendChild(C);
459
- const N = document.createElement("div");
460
- N.className = "rte-modal-form";
461
- const O = document.createElement("label");
462
- O.textContent = "Title", O.className = "rte-label";
463
- const T = document.createElement("input");
464
- T.type = "text", T.placeholder = "e.g., Article title or source", T.className = "rte-input";
465
- const oe = document.createElement("label");
466
- oe.textContent = "Source URL", oe.className = "rte-label";
467
- const ne = document.createElement("input");
468
- ne.type = "url", ne.placeholder = "https://example.com", ne.className = "rte-input";
457
+ d.style.display = "none", Z = null;
458
+ }, x.appendChild(_), x.appendChild(C);
469
459
  const P = document.createElement("div");
470
- P.className = "rte-preview-label", P.textContent = "Preview";
471
- const Z = document.createElement("div");
472
- Z.className = "rte-modal-preview";
460
+ P.className = "rte-modal-form";
461
+ const I = document.createElement("label");
462
+ I.textContent = "Title", I.className = "rte-label";
463
+ const M = document.createElement("input");
464
+ M.type = "text", M.placeholder = "e.g., Article title or source", M.className = "rte-input";
465
+ const $ = document.createElement("label");
466
+ $.textContent = "Source URL", $.className = "rte-label";
467
+ const re = document.createElement("input");
468
+ re.type = "url", re.placeholder = "https://example.com", re.className = "rte-input";
469
+ const A = document.createElement("div");
470
+ A.className = "rte-preview-label", A.textContent = "Preview";
471
+ const ee = document.createElement("div");
472
+ ee.className = "rte-modal-preview";
473
+ const G = document.createElement("div");
474
+ G.className = "rte-blockquote-title";
473
475
  const X = document.createElement("div");
474
- X.className = "rte-blockquote-title";
476
+ X.className = "rte-blockquote-content";
477
+ const oe = document.createElement("div");
478
+ oe.className = "rte-blockquote-footer", ee.appendChild(G), ee.appendChild(X), ee.appendChild(oe), P.appendChild(I), P.appendChild(M), P.appendChild($), P.appendChild(re), P.appendChild(A), P.appendChild(ee);
475
479
  const U = document.createElement("div");
476
- U.className = "rte-blockquote-content";
477
- const re = document.createElement("div");
478
- re.className = "rte-blockquote-footer", Z.appendChild(X), Z.appendChild(U), Z.appendChild(re), N.appendChild(O), N.appendChild(T), N.appendChild(oe), N.appendChild(ne), N.appendChild(P), N.appendChild(Z);
479
- const W = document.createElement("div");
480
- W.className = "rte-modal-actions";
481
- const ee = document.createElement("div");
482
- ee.setAttribute("role", "button"), ee.tabIndex = 0, ee.style.userSelect = "none", ee.className = "rte-btn-danger", ee.textContent = "Remove", ee.style.display = "none", ee.onclick = () => {
483
- Q && (Q.remove(), Q = null), d.style.display = "none";
480
+ U.className = "rte-modal-actions";
481
+ const te = document.createElement("div");
482
+ te.setAttribute("role", "button"), te.tabIndex = 0, te.style.userSelect = "none", te.className = "rte-btn-danger", te.textContent = "Remove", te.style.display = "none", te.onclick = () => {
483
+ Z && (Z.remove(), Z = null), d.style.display = "none";
484
484
  };
485
- const J = document.createElement("div");
486
- J.setAttribute("role", "button"), J.tabIndex = 0, J.style.userSelect = "none", J.className = "rte-btn-muted", J.textContent = "Cancel", J.onclick = () => {
487
- d.style.display = "none", Q = null;
485
+ const Q = document.createElement("div");
486
+ Q.setAttribute("role", "button"), Q.tabIndex = 0, Q.style.userSelect = "none", Q.className = "rte-btn-muted", Q.textContent = "Cancel", Q.onclick = () => {
487
+ d.style.display = "none", Z = null;
488
488
  };
489
489
  const ie = document.createElement("div");
490
490
  ie.setAttribute("role", "button"), ie.tabIndex = 0, ie.style.userSelect = "none", ie.className = "rte-btn-primary", ie.textContent = "Apply", ie.onclick = () => {
491
- const G = T.value.trim();
492
- let z = ne.value.trim();
493
- if (z && !/^https?:\/\//i.test(z) && (z = `https://${z}`), Q) {
494
- const le = Q.querySelector(
491
+ const K = M.value.trim();
492
+ let z = re.value.trim();
493
+ if (z && !/^https?:\/\//i.test(z) && (z = `https://${z}`), Z) {
494
+ const le = Z.querySelector(
495
495
  ".rte-blockquote-title"
496
496
  );
497
- if (G)
498
- if (le) le.textContent = G;
497
+ if (K)
498
+ if (le) le.textContent = K;
499
499
  else {
500
500
  const V = document.createElement("div");
501
- V.className = "rte-blockquote-title", V.textContent = G, Q.insertBefore(V, Q.firstChild);
501
+ V.className = "rte-blockquote-title", V.textContent = K, Z.insertBefore(V, Z.firstChild);
502
502
  }
503
503
  else le && le.remove();
504
- const ce = Q.querySelector(
504
+ const ce = Z.querySelector(
505
505
  ".rte-blockquote-footer"
506
506
  );
507
507
  if (z)
@@ -512,7 +512,7 @@ function zo() {
512
512
  const V = document.createElement("footer");
513
513
  V.className = "rte-blockquote-footer";
514
514
  const Y = document.createElement("cite"), H = document.createElement("a");
515
- H.href = z, H.textContent = z, H.target = "_blank", H.rel = "noopener noreferrer", Y.appendChild(H), V.appendChild(Y), Q.appendChild(V);
515
+ H.href = z, H.textContent = z, H.target = "_blank", H.rel = "noopener noreferrer", Y.appendChild(H), V.appendChild(Y), Z.appendChild(V);
516
516
  }
517
517
  else ce && ce.remove();
518
518
  } else {
@@ -523,29 +523,29 @@ function zo() {
523
523
  return;
524
524
  }
525
525
  const ce = le.getRangeAt(0), V = ce.extractContents(), Y = document.createElement("blockquote");
526
- if (Y.className = "rte-blockquote", G) {
527
- const K = document.createElement("div");
528
- K.className = "rte-blockquote-title", K.textContent = G, Y.appendChild(K);
526
+ if (Y.className = "rte-blockquote", K) {
527
+ const J = document.createElement("div");
528
+ J.className = "rte-blockquote-title", J.textContent = K, Y.appendChild(J);
529
529
  }
530
530
  const H = document.createElement("p");
531
531
  if (H.appendChild(V), Y.appendChild(H), z) {
532
- const K = document.createElement("footer");
533
- K.className = "rte-blockquote-footer";
532
+ const J = document.createElement("footer");
533
+ J.className = "rte-blockquote-footer";
534
534
  const se = document.createElement("cite"), de = document.createElement("a");
535
- de.href = z, de.textContent = z, de.target = "_blank", de.rel = "noopener noreferrer", se.appendChild(de), K.appendChild(se), Y.appendChild(K);
535
+ de.href = z, de.textContent = z, de.target = "_blank", de.rel = "noopener noreferrer", se.appendChild(de), J.appendChild(se), Y.appendChild(J);
536
536
  }
537
537
  ce.insertNode(Y), le.removeAllRanges();
538
- const te = document.createRange();
539
- te.setStartAfter(Y), te.collapse(!0), le.addRange(te), me(te);
538
+ const ne = document.createRange();
539
+ ne.setStartAfter(Y), ne.collapse(!0), le.addRange(ne), me(ne);
540
540
  }
541
- d.style.display = "none", T.value = "", ne.value = "", Q = null;
542
- }, W.appendChild(ee), W.appendChild(J), W.appendChild(ie), y.appendChild(x), y.appendChild(N), y.appendChild(W), d.appendChild(y), document.body.appendChild(d);
543
- let Q = null, g = "";
541
+ d.style.display = "none", M.value = "", re.value = "", Z = null;
542
+ }, U.appendChild(te), U.appendChild(Q), U.appendChild(ie), y.appendChild(x), y.appendChild(P), y.appendChild(U), d.appendChild(y), document.body.appendChild(d);
543
+ let Z = null, g = "";
544
544
  return v.onmousedown = () => {
545
- Q = null, g = "";
546
- const G = window.getSelection();
547
- if (G && G.rangeCount > 0) {
548
- const z = G.getRangeAt(0), le = document.createElement("div");
545
+ Z = null, g = "";
546
+ const K = window.getSelection();
547
+ if (K && K.rangeCount > 0) {
548
+ const z = K.getRangeAt(0), le = document.createElement("div");
549
549
  le.appendChild(z.cloneContents()), g = le.innerHTML || z.toString();
550
550
  let ce = z.startContainer;
551
551
  for (; ce && ce.nodeType !== Node.ELEMENT_NODE; )
@@ -553,30 +553,30 @@ function zo() {
553
553
  let V = ce;
554
554
  for (; V && V !== document.body; ) {
555
555
  if (V.tagName === "BLOCKQUOTE") {
556
- Q = V;
557
- const Y = Q.querySelector(
556
+ Z = V;
557
+ const Y = Z.querySelector(
558
558
  ".rte-blockquote-title"
559
- ), H = Q.querySelector(
559
+ ), H = Z.querySelector(
560
560
  ".rte-blockquote-footer a"
561
561
  );
562
- T.value = Y && Y.textContent || "", ne.value = H && H.href || "", ee.style.display = "inline-block";
563
- const te = Q.querySelector("p");
564
- U.innerHTML = te ? te.innerHTML : Q.innerHTML, X.textContent = Y && Y.textContent || "", re.innerHTML = H ? `<a href="${H.href}">${H.href}</a>` : "";
562
+ M.value = Y && Y.textContent || "", re.value = H && H.href || "", te.style.display = "inline-block";
563
+ const ne = Z.querySelector("p");
564
+ X.innerHTML = ne ? ne.innerHTML : Z.innerHTML, G.textContent = Y && Y.textContent || "", oe.innerHTML = H ? `<a href="${H.href}">${H.href}</a>` : "";
565
565
  break;
566
566
  }
567
567
  V = V.parentElement;
568
568
  }
569
569
  }
570
- Q || (U.innerHTML = g || "<em>Selected text will appear here</em>", X.textContent = "", re.innerHTML = "", ee.style.display = "none"), me();
571
- }, T.oninput = () => X.textContent = T.value, ne.oninput = () => {
572
- const G = ne.value.trim();
573
- if (!G) re.innerHTML = "";
570
+ Z || (X.innerHTML = g || "<em>Selected text will appear here</em>", G.textContent = "", oe.innerHTML = "", te.style.display = "none"), me();
571
+ }, M.oninput = () => G.textContent = M.value, re.oninput = () => {
572
+ const K = re.value.trim();
573
+ if (!K) oe.innerHTML = "";
574
574
  else {
575
- const z = /^https?:\/\//i.test(G) ? G : `https://${G}`;
576
- re.innerHTML = `<a href="${z}" target="_blank" rel="noopener noreferrer">${z}</a>`;
575
+ const z = /^https?:\/\//i.test(K) ? K : `https://${K}`;
576
+ oe.innerHTML = `<a href="${z}" target="_blank" rel="noopener noreferrer">${z}</a>`;
577
577
  }
578
578
  }, v.onclick = () => {
579
- d.style.display = "flex", T.focus();
579
+ d.style.display = "flex", M.focus();
580
580
  }, h.appendChild(v), h;
581
581
  }
582
582
  function Lo() {
@@ -596,69 +596,69 @@ function jo(h) {
596
596
  y.className = "rte-modal-header";
597
597
  const x = document.createElement("h3");
598
598
  x.className = "rte-modal-title", x.textContent = "Insert Video";
599
- const M = document.createElement("div");
600
- M.setAttribute("role", "button"), M.tabIndex = 0, M.style.userSelect = "none", M.className = "rte-modal-close", M.innerHTML = "&times;", M.onclick = () => f.style.display = "none", y.appendChild(x), y.appendChild(M);
599
+ const _ = document.createElement("div");
600
+ _.setAttribute("role", "button"), _.tabIndex = 0, _.style.userSelect = "none", _.className = "rte-modal-close", _.innerHTML = "&times;", _.onclick = () => f.style.display = "none", y.appendChild(x), y.appendChild(_);
601
601
  const C = document.createElement("div");
602
602
  C.className = "rte-modal-form";
603
- const N = document.createElement("label");
604
- N.className = "rte-label", N.textContent = "Video URL";
605
- const O = document.createElement("input");
606
- O.type = "url", O.className = "rte-input", O.placeholder = "https://... or YouTube URL";
607
- const T = document.createElement("div");
608
- T.className = "rte-preview-label", T.textContent = "Preview";
609
- const oe = document.createElement("div");
610
- oe.className = "rte-modal-preview";
611
- const ne = document.createElement("div");
612
- ne.className = "rte-form-left";
613
- const P = document.createElement("div");
614
- P.className = "rte-form-right";
615
- const Z = document.createElement("div");
616
- Z.className = "rte-field", Z.appendChild(N), Z.appendChild(O);
617
- const X = document.createElement("div");
618
- X.className = "rte-dim-row";
619
- const U = document.createElement("div");
620
- U.style.display = "flex", U.style.flexDirection = "column";
621
- const re = document.createElement("label");
622
- re.className = "rte-label", re.textContent = "Width (px)";
623
- const W = document.createElement("input");
624
- W.type = "text", W.className = "rte-dim-input", W.placeholder = "e.g., 560", U.appendChild(re), U.appendChild(W);
603
+ const P = document.createElement("label");
604
+ P.className = "rte-label", P.textContent = "Video URL";
605
+ const I = document.createElement("input");
606
+ I.type = "url", I.className = "rte-input", I.placeholder = "https://... or YouTube URL";
607
+ const M = document.createElement("div");
608
+ M.className = "rte-preview-label", M.textContent = "Preview";
609
+ const $ = document.createElement("div");
610
+ $.className = "rte-modal-preview";
611
+ const re = document.createElement("div");
612
+ re.className = "rte-form-left";
613
+ const A = document.createElement("div");
614
+ A.className = "rte-form-right";
625
615
  const ee = document.createElement("div");
626
- ee.style.display = "flex", ee.style.flexDirection = "column";
627
- const J = document.createElement("label");
628
- J.className = "rte-label", J.textContent = "Height (px)";
616
+ ee.className = "rte-field", ee.appendChild(P), ee.appendChild(I);
617
+ const G = document.createElement("div");
618
+ G.className = "rte-dim-row";
619
+ const X = document.createElement("div");
620
+ X.style.display = "flex", X.style.flexDirection = "column";
621
+ const oe = document.createElement("label");
622
+ oe.className = "rte-label", oe.textContent = "Width (px)";
623
+ const U = document.createElement("input");
624
+ U.type = "text", U.className = "rte-dim-input", U.placeholder = "e.g., 560", X.appendChild(oe), X.appendChild(U);
625
+ const te = document.createElement("div");
626
+ te.style.display = "flex", te.style.flexDirection = "column";
627
+ const Q = document.createElement("label");
628
+ Q.className = "rte-label", Q.textContent = "Height (px)";
629
629
  const ie = document.createElement("input");
630
- ie.type = "text", ie.className = "rte-dim-input", ie.placeholder = "e.g., 315", ee.appendChild(J), ee.appendChild(ie), X.appendChild(U), X.appendChild(ee), ne.appendChild(Z), ne.appendChild(X), P.appendChild(T), P.appendChild(oe), C.appendChild(ne), C.appendChild(P);
631
- const Q = document.createElement("div");
632
- Q.className = "rte-modal-actions";
630
+ ie.type = "text", ie.className = "rte-dim-input", ie.placeholder = "e.g., 315", te.appendChild(Q), te.appendChild(ie), G.appendChild(X), G.appendChild(te), re.appendChild(ee), re.appendChild(G), A.appendChild(M), A.appendChild($), C.appendChild(re), C.appendChild(A);
631
+ const Z = document.createElement("div");
632
+ Z.className = "rte-modal-actions";
633
633
  const g = document.createElement("div");
634
634
  g.setAttribute("role", "button"), g.tabIndex = 0, g.style.userSelect = "none", g.className = "rte-btn-muted", g.textContent = "Cancel", g.onclick = () => f.style.display = "none";
635
- const G = document.createElement("div");
636
- G.setAttribute("role", "button"), G.tabIndex = 0, G.style.userSelect = "none", G.className = "rte-btn-primary", G.textContent = "Insert", Q.appendChild(g), Q.appendChild(G), d.appendChild(y), d.appendChild(C), d.appendChild(Q), f.appendChild(d), document.body.appendChild(f);
635
+ const K = document.createElement("div");
636
+ K.setAttribute("role", "button"), K.tabIndex = 0, K.style.userSelect = "none", K.className = "rte-btn-primary", K.textContent = "Insert", Z.appendChild(g), Z.appendChild(K), d.appendChild(y), d.appendChild(C), d.appendChild(Z), f.appendChild(d), document.body.appendChild(f);
637
637
  const z = document.createElement("div");
638
638
  z.setAttribute("role", "button"), z.tabIndex = 0, z.style.userSelect = "none";
639
639
  const le = ye(Co, { width: 16, height: 16 });
640
640
  z.appendChild(le), z.title = "Insert Video", z.style.border = "1px solid #e1e1e1", z.style.backgroundColor = "#ffffff", z.style.padding = "6px 10px", z.style.borderRadius = "3px", z.style.cursor = "pointer", z.style.color = "#000000", z.onmouseover = () => z.style.backgroundColor = "#f0f0f0", z.onmouseout = () => z.style.backgroundColor = "#ffffff", z.onmousedown = () => me(), z.addEventListener("keydown", (Y) => {
641
641
  (Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), z.click());
642
642
  }), z.onclick = () => {
643
- oe.innerHTML = "<em>No URL entered</em>", O.value = "", f.style.display = "flex", O.focus();
643
+ $.innerHTML = "<em>No URL entered</em>", I.value = "", f.style.display = "flex", I.focus();
644
644
  };
645
645
  const ce = () => {
646
- const Y = O.value.trim(), H = W && W.value.trim() || "", te = ie && ie.value.trim() || "", K = parseInt(H, 10), se = parseInt(te, 10);
646
+ const Y = I.value.trim(), H = U && U.value.trim() || "", ne = ie && ie.value.trim() || "", J = parseInt(H, 10), se = parseInt(ne, 10);
647
647
  if (!Y) {
648
- oe.innerHTML = "<em>No preview</em>";
648
+ $.innerHTML = "<em>No preview</em>";
649
649
  return;
650
650
  }
651
651
  const de = Y.match(/(?:youtube.com\/watch\?v=|youtu.be\/)([\w-]+)/i);
652
652
  if (de) {
653
- const b = de[1], A = Number.isFinite(K) ? K : 320, L = Number.isFinite(se) ? se : 180;
654
- oe.innerHTML = `<iframe width="${A}" height="${L}" src="https://www.youtube.com/embed/${b}" frameborder="0" allowfullscreen></iframe>`;
653
+ const b = de[1], D = Number.isFinite(J) ? J : 320, L = Number.isFinite(se) ? se : 180;
654
+ $.innerHTML = `<iframe width="${D}" height="${L}" src="https://www.youtube.com/embed/${b}" frameborder="0" allowfullscreen></iframe>`;
655
655
  return;
656
656
  }
657
- const pe = Number.isFinite(K) ? `${K}px` : "320px", fe = Number.isFinite(se) ? `${se}px` : "auto";
658
- oe.innerHTML = `<video controls style="max-width:100%; width:${pe}; height:${fe};" src="${Y}"></video>`;
657
+ const pe = Number.isFinite(J) ? `${J}px` : "320px", fe = Number.isFinite(se) ? `${se}px` : "auto";
658
+ $.innerHTML = `<video controls style="max-width:100%; width:${pe}; height:${fe};" src="${Y}"></video>`;
659
659
  };
660
- O.oninput = ce, typeof W < "u" && (W.oninput = ce), typeof ie < "u" && (ie.oninput = ce), G.onclick = () => {
661
- const Y = O.value.trim(), H = W && W.value.trim() || "", te = ie && ie.value.trim() || "", K = parseInt(H, 10), se = parseInt(te, 10);
660
+ I.oninput = ce, typeof U < "u" && (U.oninput = ce), typeof ie < "u" && (ie.oninput = ce), K.onclick = () => {
661
+ const Y = I.value.trim(), H = U && U.value.trim() || "", ne = ie && ie.value.trim() || "", J = parseInt(H, 10), se = parseInt(ne, 10);
662
662
  if (!Y) {
663
663
  f.style.display = "none";
664
664
  return;
@@ -672,21 +672,21 @@ function jo(h) {
672
672
  const pe = de.getRangeAt(0), fe = Y.match(/(?:youtube.com\/watch\?v=|youtu.be\/)([\w-]+)/i);
673
673
  let b;
674
674
  if (fe) {
675
- const L = fe[1], B = document.createElement("div"), xe = Number.isFinite(K) ? K : 560, we = Number.isFinite(se) ? se : 315;
675
+ const L = fe[1], B = document.createElement("div"), xe = Number.isFinite(J) ? J : 560, we = Number.isFinite(se) ? se : 315;
676
676
  B.innerHTML = `<iframe width="${xe}" height="${we}" src="https://www.youtube.com/embed/${L}" frameborder="0" allowfullscreen></iframe>`, B.contentEditable = "false", B.className = "editor-video-wrapper", B.style.display = "block", B.style.maxWidth = "100%", B.style.width = "auto", B.style.height = "auto", B.style.boxSizing = "border-box", B.style.userSelect = "none", b = B;
677
677
  } else {
678
678
  const L = document.createElement("div"), B = document.createElement("video");
679
- B.controls = !0, B.src = Y, Number.isFinite(K) && (B.width = K), Number.isFinite(se) && (B.height = se), B.style.maxWidth = "100%", B.style.display = "block", L.appendChild(B), L.contentEditable = "false", L.className = "editor-video-wrapper", L.style.display = "block", L.style.maxWidth = "100%", L.style.width = "auto", L.style.height = "auto", L.style.boxSizing = "border-box", L.style.userSelect = "none", b = L;
679
+ B.controls = !0, B.src = Y, Number.isFinite(J) && (B.width = J), Number.isFinite(se) && (B.height = se), B.style.maxWidth = "100%", B.style.display = "block", L.appendChild(B), L.contentEditable = "false", L.className = "editor-video-wrapper", L.style.display = "block", L.style.maxWidth = "100%", L.style.width = "auto", L.style.height = "auto", L.style.boxSizing = "border-box", L.style.userSelect = "none", b = L;
680
680
  }
681
681
  pe.insertNode(b), de.removeAllRanges();
682
- const A = document.createRange();
683
- A.setStartAfter(b), A.collapse(!0), de.addRange(A), me(A);
682
+ const D = document.createRange();
683
+ D.setStartAfter(b), D.collapse(!0), de.addRange(D), me(D);
684
684
  try {
685
685
  const L = V;
686
686
  L && typeof L.focus == "function" && (L.focus(), L.dispatchEvent(new Event("input", { bubbles: !0 })));
687
687
  } catch {
688
688
  }
689
- f.style.display = "none", O.value = "", oe.innerHTML = "";
689
+ f.style.display = "none", I.value = "", $.innerHTML = "";
690
690
  };
691
691
  const V = h.querySelector(".editor");
692
692
  return V && V.addEventListener("click", (Y) => {
@@ -713,24 +713,24 @@ function Fo(h) {
713
713
  <option value="h3">Heading 3</option>
714
714
  <option value="h4">Heading 4</option>
715
715
  `, d.onchange = () => {
716
- const re = d.value, W = re === "p" ? "P" : re.toUpperCase();
717
- document.execCommand("formatBlock", !1, `<${W}>`);
716
+ const oe = d.value, U = oe === "p" ? "P" : oe.toUpperCase();
717
+ document.execCommand("formatBlock", !1, `<${U}>`);
718
718
  }, v.appendChild(d), document.addEventListener("selectionchange", () => {
719
719
  try {
720
- const re = window.getSelection();
721
- if (!re || !re.anchorNode) return;
722
- let W = re.anchorNode;
723
- for (; W && W.nodeType !== Node.ELEMENT_NODE; )
724
- W = W.parentNode;
725
- if (!W) return;
726
- let ee = W;
727
- for (; ee && ee !== document.body && ee !== v.parentElement; ) {
728
- const J = ee.tagName?.toUpperCase?.();
729
- if (J === "H1" || J === "H2" || J === "H3" || J === "H4" || J === "P") {
730
- d.value = J === "P" ? "p" : J.toLowerCase();
720
+ const oe = window.getSelection();
721
+ if (!oe || !oe.anchorNode) return;
722
+ let U = oe.anchorNode;
723
+ for (; U && U.nodeType !== Node.ELEMENT_NODE; )
724
+ U = U.parentNode;
725
+ if (!U) return;
726
+ let te = U;
727
+ for (; te && te !== document.body && te !== v.parentElement; ) {
728
+ const Q = te.tagName?.toUpperCase?.();
729
+ if (Q === "H1" || Q === "H2" || Q === "H3" || Q === "H4" || Q === "P") {
730
+ d.value = Q === "P" ? "p" : Q.toLowerCase();
731
731
  return;
732
732
  }
733
- ee = ee.parentElement;
733
+ te = te.parentElement;
734
734
  }
735
735
  d.value = "p";
736
736
  } catch {
@@ -748,28 +748,28 @@ function Fo(h) {
748
748
  `, y.style.border = "1px solid #e1e1e1", y.style.backgroundColor = "#ffffff", y.style.padding = "4px", y.style.borderRadius = "3px", y.style.color = "#000000", y.onchange = () => document.execCommand("fontSize", !1, y.value), v.appendChild(y);
749
749
  const x = So();
750
750
  v.appendChild(x);
751
- const M = Mo();
752
- v.appendChild(M);
751
+ const _ = Mo();
752
+ v.appendChild(_);
753
753
  const C = Ro();
754
754
  v.appendChild(C);
755
- const N = Io();
756
- v.appendChild(N);
757
- const O = Oo();
758
- v.appendChild(O);
759
- const T = Po();
760
- v.appendChild(T);
761
- const oe = Ao();
762
- v.appendChild(oe);
763
- const ne = No(h);
764
- v.appendChild(ne);
765
- const P = zo();
755
+ const P = Io();
766
756
  v.appendChild(P);
767
- const Z = Lo();
768
- v.appendChild(Z);
769
- const X = jo(h);
770
- v.appendChild(X);
771
- const U = Do();
772
- return v.appendChild(U), v;
757
+ const I = Oo();
758
+ v.appendChild(I);
759
+ const M = Ao();
760
+ v.appendChild(M);
761
+ const $ = Po();
762
+ v.appendChild($);
763
+ const re = No(h);
764
+ v.appendChild(re);
765
+ const A = zo();
766
+ v.appendChild(A);
767
+ const ee = Lo();
768
+ v.appendChild(ee);
769
+ const G = jo(h);
770
+ v.appendChild(G);
771
+ const X = Do();
772
+ return v.appendChild(X), v;
773
773
  }
774
774
  function Ho(h, v) {
775
775
  const f = document.createElement("div");
@@ -780,15 +780,17 @@ function Ho(h, v) {
780
780
  const y = d.dataTransfer?.files;
781
781
  if (y && y.length > 0)
782
782
  for (let x = 0; x < y.length; x++) {
783
- const M = y[x];
784
- if (M.type.startsWith("image/")) {
783
+ const _ = y[x];
784
+ if (_.type.startsWith("image/")) {
785
785
  const C = new FileReader();
786
- C.onload = (N) => {
787
- const O = document.createElement("img");
788
- O.src = N.target?.result, O.style.maxWidth = "100%", O.style.width = "100%", O.style.height = "auto", O.style.cursor = "pointer", O.draggable = !1;
789
- const T = document.createElement("div");
790
- T.className = "editor-image-wrapper", T.style.display = "inline-block", T.style.position = "relative", T.style.maxWidth = "100%", T.style.width = "auto", T.style.height = "auto", T.contentEditable = "false", T.style.userSelect = "none", T.style.boxSizing = "border-box", T.style.touchAction = "none", T.appendChild(O), f.appendChild(T);
791
- }, C.readAsDataURL(M);
786
+ C.onload = (P) => {
787
+ const I = document.createElement("img");
788
+ I.src = P.target?.result, I.style.maxWidth = "100%", I.style.width = "100%", I.style.height = "auto", I.style.cursor = "pointer", I.draggable = !1;
789
+ const M = document.createElement("div");
790
+ M.className = "editor-image-wrapper", M.style.display = "inline-block", M.style.position = "relative", M.style.maxWidth = "100%", M.style.width = "auto", M.style.height = "auto", M.contentEditable = "false", M.style.userSelect = "none", M.style.boxSizing = "border-box", M.style.touchAction = "none", M.appendChild(I);
791
+ const $ = document.createElement("p");
792
+ $.style.margin = "10px 0", $.style.textAlign = "left", $.appendChild(M), f.appendChild($);
793
+ }, C.readAsDataURL(_);
792
794
  }
793
795
  }
794
796
  }), f.addEventListener("click", (d) => {
@@ -831,7 +833,7 @@ function Vo() {
831
833
  for (var e = 1; e < arguments.length; e++) {
832
834
  var n = arguments[e] != null ? arguments[e] : {};
833
835
  e % 2 ? f(Object(n), !0).forEach((function(r) {
834
- N(t, r, n[r]);
836
+ P(t, r, n[r]);
835
837
  })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : f(Object(n)).forEach((function(r) {
836
838
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
837
839
  }));
@@ -848,37 +850,37 @@ function Vo() {
848
850
  function x(t, e) {
849
851
  if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
850
852
  }
851
- function M(t, e) {
853
+ function _(t, e) {
852
854
  for (var n = 0; n < e.length; n++) {
853
855
  var r = e[n];
854
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, X(r.key), r);
856
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, G(r.key), r);
855
857
  }
856
858
  }
857
859
  function C(t, e, n) {
858
- return e && M(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
860
+ return e && _(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
859
861
  }
860
- function N(t, e, n) {
861
- return (e = X(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
862
+ function P(t, e, n) {
863
+ return (e = G(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
862
864
  }
863
- function O(t, e) {
865
+ function I(t, e) {
864
866
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
865
- t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && oe(t, e);
867
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && $(t, e);
866
868
  }
867
- function T(t) {
868
- return T = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
869
+ function M(t) {
870
+ return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
869
871
  return e.__proto__ || Object.getPrototypeOf(e);
870
- }, T(t);
872
+ }, M(t);
871
873
  }
872
- function oe(t, e) {
873
- return oe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
874
+ function $(t, e) {
875
+ return $ = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
874
876
  return n.__proto__ = r, n;
875
- }, oe(t, e);
877
+ }, $(t, e);
876
878
  }
877
- function ne(t) {
879
+ function re(t) {
878
880
  if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
879
881
  return t;
880
882
  }
881
- function P(t) {
883
+ function A(t) {
882
884
  var e = (function() {
883
885
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
884
886
  if (typeof Proxy == "function") return !0;
@@ -890,31 +892,31 @@ function Vo() {
890
892
  }
891
893
  })();
892
894
  return function() {
893
- var n, r = T(t);
895
+ var n, r = M(t);
894
896
  if (e) {
895
- var o = T(this).constructor;
897
+ var o = M(this).constructor;
896
898
  n = Reflect.construct(r, arguments, o);
897
899
  } else n = r.apply(this, arguments);
898
900
  return (function(i, a) {
899
901
  if (a && (typeof a == "object" || typeof a == "function")) return a;
900
902
  if (a !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
901
- return ne(i);
903
+ return re(i);
902
904
  })(this, n);
903
905
  };
904
906
  }
905
- function Z() {
906
- return Z = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(t, e, n) {
907
+ function ee() {
908
+ return ee = typeof Reflect < "u" && Reflect.get ? Reflect.get.bind() : function(t, e, n) {
907
909
  var r = (function(i, a) {
908
- for (; !Object.prototype.hasOwnProperty.call(i, a) && (i = T(i)) !== null; ) ;
910
+ for (; !Object.prototype.hasOwnProperty.call(i, a) && (i = M(i)) !== null; ) ;
909
911
  return i;
910
912
  })(t, e);
911
913
  if (r) {
912
914
  var o = Object.getOwnPropertyDescriptor(r, e);
913
915
  return o.get ? o.get.call(arguments.length < 3 ? t : n) : o.value;
914
916
  }
915
- }, Z.apply(this, arguments);
917
+ }, ee.apply(this, arguments);
916
918
  }
917
- function X(t) {
919
+ function G(t) {
918
920
  var e = (function(n, r) {
919
921
  if (typeof n != "object" || n === null) return n;
920
922
  var o = n[Symbol.toPrimitive];
@@ -927,27 +929,27 @@ function Vo() {
927
929
  })(t, "string");
928
930
  return typeof e == "symbol" ? e : e + "";
929
931
  }
930
- var U = function(t) {
932
+ var X = function(t) {
931
933
  return !(!t || !t.Window) && t instanceof t.Window;
932
- }, re = void 0, W = void 0;
933
- function ee(t) {
934
- re = t;
934
+ }, oe = void 0, U = void 0;
935
+ function te(t) {
936
+ oe = t;
935
937
  var e = t.document.createTextNode("");
936
- e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), W = t;
938
+ e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), U = t;
937
939
  }
938
- function J(t) {
939
- return U(t) ? t : (t.ownerDocument || t).defaultView || W.window;
940
+ function Q(t) {
941
+ return X(t) ? t : (t.ownerDocument || t).defaultView || U.window;
940
942
  }
941
- typeof window < "u" && window && ee(window);
943
+ typeof window < "u" && window && te(window);
942
944
  var ie = function(t) {
943
945
  return !!t && y(t) === "object";
944
- }, Q = function(t) {
946
+ }, Z = function(t) {
945
947
  return typeof t == "function";
946
948
  }, g = { window: function(t) {
947
- return t === W || U(t);
949
+ return t === U || X(t);
948
950
  }, docFrag: function(t) {
949
951
  return ie(t) && t.nodeType === 11;
950
- }, object: ie, func: Q, number: function(t) {
952
+ }, object: ie, func: Z, number: function(t) {
951
953
  return typeof t == "number";
952
954
  }, bool: function(t) {
953
955
  return typeof t == "boolean";
@@ -955,14 +957,14 @@ function Vo() {
955
957
  return typeof t == "string";
956
958
  }, element: function(t) {
957
959
  if (!t || y(t) !== "object") return !1;
958
- var e = J(t) || W;
960
+ var e = Q(t) || U;
959
961
  return /object|function/.test(typeof Element > "u" ? "undefined" : y(Element)) ? t instanceof Element || t instanceof e.Element : t.nodeType === 1 && typeof t.nodeName == "string";
960
962
  }, plainObject: function(t) {
961
963
  return ie(t) && !!t.constructor && /function Object\b/.test(t.constructor.toString());
962
964
  }, array: function(t) {
963
- return ie(t) && t.length !== void 0 && Q(t.splice);
965
+ return ie(t) && t.length !== void 0 && Z(t.splice);
964
966
  } };
965
- function G(t) {
967
+ function K(t) {
966
968
  var e = t.interaction;
967
969
  if (e.prepared.name === "drag") {
968
970
  var n = e.prepared.axis;
@@ -982,12 +984,12 @@ function Vo() {
982
984
  var le = { id: "actions/drag", install: function(t) {
983
985
  var e = t.actions, n = t.Interactable, r = t.defaults;
984
986
  n.prototype.draggable = le.draggable, e.map.drag = le, e.methodDict.drag = "draggable", r.actions.drag = le.defaults;
985
- }, listeners: { "interactions:before-action-move": G, "interactions:action-resume": G, "interactions:action-move": z, "auto-start:check": function(t) {
987
+ }, listeners: { "interactions:before-action-move": K, "interactions:action-resume": K, "interactions:action-move": z, "auto-start:check": function(t) {
986
988
  var e = t.interaction, n = t.interactable, r = t.buttons, o = n.options.drag;
987
989
  if (o && o.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (r & n.options.drag.mouseButtons) != 0)) return t.action = { name: "drag", axis: o.lockAxis === "start" ? o.startAxis : o.lockAxis }, !1;
988
990
  } }, draggable: function(t) {
989
991
  return g.object(t) ? (this.options.drag.enabled = t.enabled !== !1, this.setPerAction("drag", t), this.setOnEvents("drag", t), /^(xy|x|y|start)$/.test(t.lockAxis) && (this.options.drag.lockAxis = t.lockAxis), /^(xy|x|y)$/.test(t.startAxis) && (this.options.drag.startAxis = t.startAxis), this) : g.bool(t) ? (this.options.drag.enabled = t, this) : this.options.drag;
990
- }, beforeMove: G, move: z, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
992
+ }, beforeMove: K, move: z, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
991
993
  return "move";
992
994
  }, filterEventType: function(t) {
993
995
  return t.search("drag") === 0;
@@ -997,10 +999,10 @@ function Vo() {
997
999
  }, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
998
1000
  function Y() {
999
1001
  }
1000
- var H = V, te = { init: function(t) {
1002
+ var H = V, ne = { init: function(t) {
1001
1003
  var e = H.Element, n = t.navigator || {};
1002
- te.supportsTouch = "ontouchstart" in t || g.func(t.DocumentTouch) && H.document instanceof t.DocumentTouch, te.supportsPointerEvent = n.pointerEnabled !== !1 && !!H.PointerEvent, te.isIOS = /iP(hone|od|ad)/.test(n.platform), te.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), te.isIe9 = /MSIE 9/.test(n.userAgent), te.isOperaMobile = n.appName === "Opera" && te.supportsTouch && /Presto/.test(n.userAgent), te.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", te.pEventTypes = te.supportsPointerEvent ? H.PointerEvent === t.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel" } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel" } : null, te.wheelEvent = H.document && "onmousewheel" in H.document ? "mousewheel" : "wheel";
1003
- }, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, K = te;
1004
+ ne.supportsTouch = "ontouchstart" in t || g.func(t.DocumentTouch) && H.document instanceof t.DocumentTouch, ne.supportsPointerEvent = n.pointerEnabled !== !1 && !!H.PointerEvent, ne.isIOS = /iP(hone|od|ad)/.test(n.platform), ne.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), ne.isIe9 = /MSIE 9/.test(n.userAgent), ne.isOperaMobile = n.appName === "Opera" && ne.supportsTouch && /Presto/.test(n.userAgent), ne.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", ne.pEventTypes = ne.supportsPointerEvent ? H.PointerEvent === t.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel" } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel" } : null, ne.wheelEvent = H.document && "onmousewheel" in H.document ? "mousewheel" : "wheel";
1005
+ }, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, J = ne;
1004
1006
  function se(t, e) {
1005
1007
  if (t.contains) return t.contains(e);
1006
1008
  for (; e; ) {
@@ -1025,12 +1027,12 @@ function Vo() {
1025
1027
  return e;
1026
1028
  }
1027
1029
  function fe(t, e) {
1028
- return W !== re && (e = e.replace(/\/deep\//g, " ")), t[K.prefixedMatchesSelector](e);
1030
+ return U !== oe && (e = e.replace(/\/deep\//g, " ")), t[J.prefixedMatchesSelector](e);
1029
1031
  }
1030
1032
  var b = function(t) {
1031
1033
  return t.parentNode || t.host;
1032
1034
  };
1033
- function A(t, e) {
1035
+ function D(t, e) {
1034
1036
  for (var n, r = [], o = t; (n = b(o)) && o !== e && n !== o.ownerDocument; ) r.unshift(o), o = n;
1035
1037
  return r;
1036
1038
  }
@@ -1050,8 +1052,8 @@ function Vo() {
1050
1052
  }
1051
1053
  function we(t) {
1052
1054
  var e, n = xe(t);
1053
- if (!K.isIOS7 && n) {
1054
- var r = { x: (e = (e = J(t)) || W).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
1055
+ if (!J.isIOS7 && n) {
1056
+ var r = { x: (e = (e = Q(t)) || U).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
1055
1057
  n.left += r.x, n.right += r.x, n.top += r.y, n.bottom += r.y;
1056
1058
  }
1057
1059
  return n;
@@ -1139,7 +1141,7 @@ function Vo() {
1139
1141
  return t = t || "page", (n = n || {}).x = e[t + "X"], n.y = e[t + "Y"], n;
1140
1142
  }
1141
1143
  function qt(t, e) {
1142
- return e = e || { x: 0, y: 0 }, K.isOperaMobile && Bt(t) ? (rt("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : rt("page", t, e), e;
1144
+ return e = e || { x: 0, y: 0 }, J.isOperaMobile && Bt(t) ? (rt("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : rt("page", t, e), e;
1143
1145
  }
1144
1146
  function Fe(t) {
1145
1147
  return g.number(t.pointerId) ? t.pointerId : t.identifier;
@@ -1147,7 +1149,7 @@ function Vo() {
1147
1149
  function Fn(t, e, n) {
1148
1150
  var r = e.length > 1 ? Vt(e) : e[0];
1149
1151
  qt(r, t.page), (function(o, i) {
1150
- i = i || {}, K.isOperaMobile && Bt(o) ? rt("screen", o, i) : rt("client", o, i);
1152
+ i = i || {}, J.isOperaMobile && Bt(o) ? rt("screen", o, i) : rt("client", o, i);
1151
1153
  })(r, t.client), t.timeStamp = n;
1152
1154
  }
1153
1155
  function mt(t) {
@@ -1210,9 +1212,9 @@ function Vo() {
1210
1212
  return -1;
1211
1213
  }, Be = function(t, e) {
1212
1214
  return t[He(t, e)];
1213
- }, Ae = (function(t) {
1214
- O(n, t);
1215
- var e = P(n);
1215
+ }, Pe = (function(t) {
1216
+ I(n, t);
1217
+ var e = A(n);
1216
1218
  function n(r, o, i) {
1217
1219
  var a;
1218
1220
  x(this, n), (a = e.call(this, o._interaction)).dropzone = void 0, a.dragEvent = void 0, a.relatedTarget = void 0, a.draggable = void 0, a.propagationStopped = !1, a.immediatePropagationStopped = !1;
@@ -1268,38 +1270,38 @@ function Vo() {
1268
1270
  a.push(E ? p : null);
1269
1271
  }
1270
1272
  var w = (function(k) {
1271
- for (var _, S, I, F = [], $ = 0; $ < k.length; $++) {
1272
- var D = k[$], q = k[_];
1273
- if (D && $ !== _) if (q) {
1274
- var ve = b(D), ae = b(q);
1275
- if (ve !== D.ownerDocument) if (ae !== D.ownerDocument) if (ve !== ae) {
1276
- F = F.length ? F : A(q);
1273
+ for (var T, S, O, F = [], W = 0; W < k.length; W++) {
1274
+ var N = k[W], q = k[T];
1275
+ if (N && W !== T) if (q) {
1276
+ var ve = b(N), ae = b(q);
1277
+ if (ve !== N.ownerDocument) if (ae !== N.ownerDocument) if (ve !== ae) {
1278
+ F = F.length ? F : D(q);
1277
1279
  var ge = void 0;
1278
- if (q instanceof H.HTMLElement && D instanceof H.SVGElement && !(D instanceof H.SVGSVGElement)) {
1279
- if (D === ae) continue;
1280
- ge = D.ownerSVGElement;
1281
- } else ge = D;
1282
- for (var be = A(ge, q.ownerDocument), Se = 0; be[Se] && be[Se] === F[Se]; ) Se++;
1280
+ if (q instanceof H.HTMLElement && N instanceof H.SVGElement && !(N instanceof H.SVGSVGElement)) {
1281
+ if (N === ae) continue;
1282
+ ge = N.ownerSVGElement;
1283
+ } else ge = N;
1284
+ for (var be = D(ge, q.ownerDocument), Se = 0; be[Se] && be[Se] === F[Se]; ) Se++;
1283
1285
  var ft = [be[Se - 1], be[Se], F[Se]];
1284
1286
  if (ft[0]) for (var Ue = ft[0].lastChild; Ue; ) {
1285
1287
  if (Ue === ft[1]) {
1286
- _ = $, F = be;
1288
+ T = W, F = be;
1287
1289
  break;
1288
1290
  }
1289
1291
  if (Ue === ft[2]) break;
1290
1292
  Ue = Ue.previousSibling;
1291
1293
  }
1292
- } else I = q, (parseInt(J(S = D).getComputedStyle(S).zIndex, 10) || 0) >= (parseInt(J(I).getComputedStyle(I).zIndex, 10) || 0) && (_ = $);
1293
- else _ = $;
1294
- } else _ = $;
1294
+ } else O = q, (parseInt(Q(S = N).getComputedStyle(S).zIndex, 10) || 0) >= (parseInt(Q(O).getComputedStyle(O).zIndex, 10) || 0) && (T = W);
1295
+ else T = W;
1296
+ } else T = W;
1295
1297
  }
1296
- return _;
1298
+ return T;
1297
1299
  })(a);
1298
1300
  return r.activeDrops[w] || null;
1299
1301
  }
1300
1302
  function wt(t, e, n) {
1301
1303
  var r = t.dropState, o = { enter: null, leave: null, activate: null, deactivate: null, move: null, drop: null };
1302
- return n.type === "dragstart" && (o.activate = new Ae(r, n, "dropactivate"), o.activate.target = null, o.activate.dropzone = null), n.type === "dragend" && (o.deactivate = new Ae(r, n, "dropdeactivate"), o.deactivate.target = null, o.deactivate.dropzone = null), r.rejected || (r.cur.element !== r.prev.element && (r.prev.dropzone && (o.leave = new Ae(r, n, "dragleave"), n.dragLeave = o.leave.target = r.prev.element, n.prevDropzone = o.leave.dropzone = r.prev.dropzone), r.cur.dropzone && (o.enter = new Ae(r, n, "dragenter"), n.dragEnter = r.cur.element, n.dropzone = r.cur.dropzone)), n.type === "dragend" && r.cur.dropzone && (o.drop = new Ae(r, n, "drop"), n.dropzone = r.cur.dropzone, n.relatedTarget = r.cur.element), n.type === "dragmove" && r.cur.dropzone && (o.move = new Ae(r, n, "dropmove"), n.dropzone = r.cur.dropzone)), o;
1304
+ return n.type === "dragstart" && (o.activate = new Pe(r, n, "dropactivate"), o.activate.target = null, o.activate.dropzone = null), n.type === "dragend" && (o.deactivate = new Pe(r, n, "dropdeactivate"), o.deactivate.target = null, o.deactivate.dropzone = null), r.rejected || (r.cur.element !== r.prev.element && (r.prev.dropzone && (o.leave = new Pe(r, n, "dragleave"), n.dragLeave = o.leave.target = r.prev.element, n.prevDropzone = o.leave.dropzone = r.prev.dropzone), r.cur.dropzone && (o.enter = new Pe(r, n, "dragenter"), n.dragEnter = r.cur.element, n.dropzone = r.cur.dropzone)), n.type === "dragend" && r.cur.dropzone && (o.drop = new Pe(r, n, "drop"), n.dropzone = r.cur.dropzone, n.relatedTarget = r.cur.element), n.type === "dragmove" && r.cur.dropzone && (o.move = new Pe(r, n, "dropmove"), n.dropzone = r.cur.dropzone)), o;
1303
1305
  }
1304
1306
  function Et(t, e) {
1305
1307
  var n = t.dropState, r = n.activeDrops, o = n.cur, i = n.prev;
@@ -1330,22 +1332,22 @@ function Vo() {
1330
1332
  return g.bool(s) ? (a.options.drop.enabled = s, a) : a.options.drop;
1331
1333
  })(this, i);
1332
1334
  }, r.prototype.dropCheck = function(i, a, s, l, u, c) {
1333
- return (function(p, m, E, w, k, _, S) {
1334
- var I = !1;
1335
- if (!(S = S || p.getRect(_))) return !!p.options.drop.checker && p.options.drop.checker(m, E, I, p, _, w, k);
1335
+ return (function(p, m, E, w, k, T, S) {
1336
+ var O = !1;
1337
+ if (!(S = S || p.getRect(T))) return !!p.options.drop.checker && p.options.drop.checker(m, E, O, p, T, w, k);
1336
1338
  var F = p.options.drop.overlap;
1337
1339
  if (F === "pointer") {
1338
- var $ = Le(w, k, "drag"), D = qt(m);
1339
- D.x += $.x, D.y += $.y;
1340
- var q = D.x > S.left && D.x < S.right, ve = D.y > S.top && D.y < S.bottom;
1341
- I = q && ve;
1340
+ var W = Le(w, k, "drag"), N = qt(m);
1341
+ N.x += W.x, N.y += W.y;
1342
+ var q = N.x > S.left && N.x < S.right, ve = N.y > S.top && N.y < S.bottom;
1343
+ O = q && ve;
1342
1344
  }
1343
1345
  var ae = w.getRect(k);
1344
1346
  if (ae && F === "center") {
1345
1347
  var ge = ae.left + ae.width / 2, be = ae.top + ae.height / 2;
1346
- I = ge >= S.left && ge <= S.right && be >= S.top && be <= S.bottom;
1348
+ O = ge >= S.left && ge <= S.right && be >= S.top && be <= S.bottom;
1347
1349
  }
1348
- return ae && g.number(F) && (I = Math.max(0, Math.min(S.right, ae.right) - Math.max(S.left, ae.left)) * Math.max(0, Math.min(S.bottom, ae.bottom) - Math.max(S.top, ae.top)) / (ae.width * ae.height) >= F), p.options.drop.checker && (I = p.options.drop.checker(m, E, I, p, _, w, k)), I;
1350
+ return ae && g.number(F) && (O = Math.max(0, Math.min(S.right, ae.right) - Math.max(S.left, ae.left)) * Math.max(0, Math.min(S.bottom, ae.bottom) - Math.max(S.top, ae.top)) / (ae.width * ae.height) >= F), p.options.drop.checker && (O = p.options.drop.checker(m, E, O, p, T, w, k)), O;
1349
1351
  })(this, i, a, s, l, u, c);
1350
1352
  }, n.dynamicDrop = function(i) {
1351
1353
  return g.bool(i) ? (t.dynamicDrop = i, n) : t.dynamicDrop;
@@ -1562,7 +1564,7 @@ function Vo() {
1562
1564
  }
1563
1565
  } };
1564
1566
  function en(t, e, n) {
1565
- return (g.string(t) ? Qe(t, e, n) : t) || J(n);
1567
+ return (g.string(t) ? Qe(t, e, n) : t) || Q(n);
1566
1568
  }
1567
1569
  function tn(t) {
1568
1570
  return g.window(t) && (t = window.document.body), { x: t.scrollLeft, y: t.scrollTop };
@@ -1582,7 +1584,7 @@ function Vo() {
1582
1584
  function qe(t, e) {
1583
1585
  var n = !1;
1584
1586
  return function() {
1585
- return n || (W.console.warn(e), n = !0), t.apply(this, arguments);
1587
+ return n || (U.console.warn(e), n = !0), t.apply(this, arguments);
1586
1588
  };
1587
1589
  }
1588
1590
  function St(t, e) {
@@ -1699,12 +1701,12 @@ function Vo() {
1699
1701
  if (w !== n.interactable) {
1700
1702
  var k = n.interactable.options.drag;
1701
1703
  if (!k.manualStart && w.testIgnoreAllow(k, p, r)) {
1702
- var _ = w.getAction(n.downPointer, n.downEvent, n, p);
1703
- if (_ && _.name === "drag" && (function(S, I) {
1704
- if (!I) return !1;
1705
- var F = I.options.drag.startAxis;
1704
+ var T = w.getAction(n.downPointer, n.downEvent, n, p);
1705
+ if (T && T.name === "drag" && (function(S, O) {
1706
+ if (!O) return !1;
1707
+ var F = O.options.drag.startAxis;
1706
1708
  return S === "xy" || F === "xy" || F === S;
1707
- })(c, w) && _t.validateAction(_, w, p, r, e)) return w;
1709
+ })(c, w) && _t.validateAction(T, w, p, r, e)) return w;
1708
1710
  }
1709
1711
  }
1710
1712
  }; g.element(p); ) {
@@ -1756,7 +1758,7 @@ function Vo() {
1756
1758
  var a = r.options.preventDefault;
1757
1759
  if (a !== "never") if (a !== "always") {
1758
1760
  if (o.events.supportsPassive && /^touch(start|move)$/.test(i.type)) {
1759
- var s = J(i.target).document, l = o.getDocOptions(s);
1761
+ var s = Q(i.target).document, l = o.getDocOptions(s);
1760
1762
  if (!l || !l.events || l.events.passive !== !1) return;
1761
1763
  }
1762
1764
  /^(mouse|pointer|touch)*(down|start)/i.test(i.type) || g.element(i.target) && fe(i.target, "input,select,textarea,[contenteditable=true],[contenteditable=true] *") || i.preventDefault();
@@ -1817,9 +1819,9 @@ function Vo() {
1817
1819
  (c = p.methods) != null && c.set && this.shouldDo(m, r, n) && (e.state = p, w = p.methods.set(e), et(e.edges, e.rect, { x: e.coords.x - E.x, y: e.coords.y - E.y })), l.eventProps.push(w);
1818
1820
  }
1819
1821
  R(this.edges, e.edges), l.delta.x = e.coords.x - e.pageCoords.x, l.delta.y = e.coords.y - e.pageCoords.y, l.rectDelta.left = e.rect.left - i.left, l.rectDelta.right = e.rect.right - i.right, l.rectDelta.top = e.rect.top - i.top, l.rectDelta.bottom = e.rect.bottom - i.bottom;
1820
- var k = this.result.coords, _ = this.result.rect;
1821
- if (k && _) {
1822
- var S = l.rect.left !== _.left || l.rect.right !== _.right || l.rect.top !== _.top || l.rect.bottom !== _.bottom;
1822
+ var k = this.result.coords, T = this.result.rect;
1823
+ if (k && T) {
1824
+ var S = l.rect.left !== T.left || l.rect.right !== T.right || l.rect.top !== T.top || l.rect.bottom !== T.bottom;
1823
1825
  l.changed = S || k.x !== l.coords.x || k.y !== l.coords.y;
1824
1826
  }
1825
1827
  return l;
@@ -1930,13 +1932,13 @@ function Vo() {
1930
1932
  }, "interactions:stop": function(t) {
1931
1933
  return t.interaction.modification.stop(t);
1932
1934
  } } }, cn = or, un = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, It = (function(t) {
1933
- O(n, t);
1934
- var e = P(n);
1935
+ I(n, t);
1936
+ var e = A(n);
1935
1937
  function n(r, o, i, a, s, l, u) {
1936
1938
  var c;
1937
1939
  x(this, n), (c = e.call(this, r)).relatedTarget = null, c.screenX = void 0, c.screenY = void 0, c.button = void 0, c.buttons = void 0, c.ctrlKey = void 0, c.shiftKey = void 0, c.altKey = void 0, c.metaKey = void 0, c.page = void 0, c.client = void 0, c.delta = void 0, c.rect = void 0, c.x0 = void 0, c.y0 = void 0, c.t0 = void 0, c.dt = void 0, c.duration = void 0, c.clientX0 = void 0, c.clientY0 = void 0, c.velocity = void 0, c.speed = void 0, c.swipe = void 0, c.axes = void 0, c.preEnd = void 0, s = s || r.element;
1938
- var p = r.interactable, m = (p && p.options || un).deltaSource, E = Le(p, s, i), w = a === "start", k = a === "end", _ = w ? ne(c) : r.prevEvent, S = w ? r.coords.start : k ? { page: _.page, client: _.client, timeStamp: r.coords.cur.timeStamp } : r.coords.cur;
1939
- return c.page = R({}, S.page), c.client = R({}, S.client), c.rect = R({}, r.rect), c.timeStamp = S.timeStamp, k || (c.page.x -= E.x, c.page.y -= E.y, c.client.x -= E.x, c.client.y -= E.y), c.ctrlKey = o.ctrlKey, c.altKey = o.altKey, c.shiftKey = o.shiftKey, c.metaKey = o.metaKey, c.button = o.button, c.buttons = o.buttons, c.target = s, c.currentTarget = s, c.preEnd = l, c.type = u || i + (a || ""), c.interactable = p, c.t0 = w ? r.pointers[r.pointers.length - 1].downTime : _.t0, c.x0 = r.coords.start.page.x - E.x, c.y0 = r.coords.start.page.y - E.y, c.clientX0 = r.coords.start.client.x - E.x, c.clientY0 = r.coords.start.client.y - E.y, c.delta = w || k ? { x: 0, y: 0 } : { x: c[m].x - _[m].x, y: c[m].y - _[m].y }, c.dt = r.coords.delta.timeStamp, c.duration = c.timeStamp - c.t0, c.velocity = R({}, r.coords.velocity[m]), c.speed = je(c.velocity.x, c.velocity.y), c.swipe = k || a === "inertiastart" ? c.getSwipe() : null, c;
1940
+ var p = r.interactable, m = (p && p.options || un).deltaSource, E = Le(p, s, i), w = a === "start", k = a === "end", T = w ? re(c) : r.prevEvent, S = w ? r.coords.start : k ? { page: T.page, client: T.client, timeStamp: r.coords.cur.timeStamp } : r.coords.cur;
1941
+ return c.page = R({}, S.page), c.client = R({}, S.client), c.rect = R({}, r.rect), c.timeStamp = S.timeStamp, k || (c.page.x -= E.x, c.page.y -= E.y, c.client.x -= E.x, c.client.y -= E.y), c.ctrlKey = o.ctrlKey, c.altKey = o.altKey, c.shiftKey = o.shiftKey, c.metaKey = o.metaKey, c.button = o.button, c.buttons = o.buttons, c.target = s, c.currentTarget = s, c.preEnd = l, c.type = u || i + (a || ""), c.interactable = p, c.t0 = w ? r.pointers[r.pointers.length - 1].downTime : T.t0, c.x0 = r.coords.start.page.x - E.x, c.y0 = r.coords.start.page.y - E.y, c.clientX0 = r.coords.start.client.x - E.x, c.clientY0 = r.coords.start.client.y - E.y, c.delta = w || k ? { x: 0, y: 0 } : { x: c[m].x - T[m].x, y: c[m].y - T[m].y }, c.dt = r.coords.delta.timeStamp, c.duration = c.timeStamp - c.t0, c.velocity = R({}, r.coords.velocity[m]), c.speed = je(c.velocity.x, c.velocity.y), c.swipe = k || a === "inertiastart" ? c.getSwipe() : null, c;
1940
1942
  }
1941
1943
  return C(n, [{ key: "getSwipe", value: function() {
1942
1944
  var r = this._interaction;
@@ -2266,39 +2268,39 @@ function Vo() {
2266
2268
  var k = Ye(w);
2267
2269
  if (!r[m]) {
2268
2270
  r[m] = [];
2269
- for (var _ = 0; _ < o.length; _++) {
2270
- var S = o[_];
2271
+ for (var T = 0; T < o.length; T++) {
2272
+ var S = o[T];
2271
2273
  a(S, m, l), a(S, m, u, !0);
2272
2274
  }
2273
2275
  }
2274
- var I = r[m], F = Be(I, (function($) {
2275
- return $.selector === c && $.context === p;
2276
+ var O = r[m], F = Be(O, (function(W) {
2277
+ return W.selector === c && W.context === p;
2276
2278
  }));
2277
- F || (F = { selector: c, context: p, listeners: [] }, I.push(F)), F.listeners.push({ func: E, options: k });
2279
+ F || (F = { selector: c, context: p, listeners: [] }, O.push(F)), F.listeners.push({ func: E, options: k });
2278
2280
  }, removeDelegate: function(c, p, m, E, w) {
2279
- var k, _ = Ye(w), S = r[m], I = !1;
2281
+ var k, T = Ye(w), S = r[m], O = !1;
2280
2282
  if (S)
2281
2283
  for (k = S.length - 1; k >= 0; k--) {
2282
2284
  var F = S[k];
2283
2285
  if (F.selector === c && F.context === p) {
2284
- for (var $ = F.listeners, D = $.length - 1; D >= 0; D--) {
2285
- var q = $[D];
2286
- if (q.func === E && ct(q.options, _)) {
2287
- $.splice(D, 1), $.length || (S.splice(k, 1), s(p, m, l), s(p, m, u, !0)), I = !0;
2286
+ for (var W = F.listeners, N = W.length - 1; N >= 0; N--) {
2287
+ var q = W[N];
2288
+ if (q.func === E && ct(q.options, T)) {
2289
+ W.splice(N, 1), W.length || (S.splice(k, 1), s(p, m, l), s(p, m, u, !0)), O = !0;
2288
2290
  break;
2289
2291
  }
2290
2292
  }
2291
- if (I) break;
2293
+ if (O) break;
2292
2294
  }
2293
2295
  }
2294
2296
  }, delegateListener: l, delegateUseCapture: u, delegatedEvents: r, documents: o, targets: n, supportsOptions: !1, supportsPassive: !1 };
2295
2297
  function a(c, p, m, E) {
2296
2298
  if (c.addEventListener) {
2297
- var w = Ye(E), k = Be(n, (function(_) {
2298
- return _.eventTarget === c;
2299
+ var w = Ye(E), k = Be(n, (function(T) {
2300
+ return T.eventTarget === c;
2299
2301
  }));
2300
- k || (k = { eventTarget: c, events: {} }, n.push(k)), k.events[p] || (k.events[p] = []), Be(k.events[p], (function(_) {
2301
- return _.func === m && ct(_.options, w);
2302
+ k || (k = { eventTarget: c, events: {} }, n.push(k)), k.events[p] || (k.events[p] = []), Be(k.events[p], (function(T) {
2303
+ return T.func === m && ct(T.options, w);
2302
2304
  })) || (c.addEventListener(p, m, i.supportsOptions ? w : w.capture), k.events[p].push({ func: m, options: w }));
2303
2305
  }
2304
2306
  }
@@ -2308,41 +2310,41 @@ function Vo() {
2308
2310
  return ve.eventTarget === c;
2309
2311
  })), k = n[w];
2310
2312
  if (k && k.events) if (p !== "all") {
2311
- var _ = !1, S = k.events[p];
2313
+ var T = !1, S = k.events[p];
2312
2314
  if (S) {
2313
2315
  if (m === "all") {
2314
- for (var I = S.length - 1; I >= 0; I--) {
2315
- var F = S[I];
2316
+ for (var O = S.length - 1; O >= 0; O--) {
2317
+ var F = S[O];
2316
2318
  s(c, p, F.func, F.options);
2317
2319
  }
2318
2320
  return;
2319
2321
  }
2320
- for (var $ = Ye(E), D = 0; D < S.length; D++) {
2321
- var q = S[D];
2322
- if (q.func === m && ct(q.options, $)) {
2323
- c.removeEventListener(p, m, i.supportsOptions ? $ : $.capture), S.splice(D, 1), S.length === 0 && (delete k.events[p], _ = !0);
2322
+ for (var W = Ye(E), N = 0; N < S.length; N++) {
2323
+ var q = S[N];
2324
+ if (q.func === m && ct(q.options, W)) {
2325
+ c.removeEventListener(p, m, i.supportsOptions ? W : W.capture), S.splice(N, 1), S.length === 0 && (delete k.events[p], T = !0);
2324
2326
  break;
2325
2327
  }
2326
2328
  }
2327
2329
  }
2328
- _ && !Object.keys(k.events).length && n.splice(w, 1);
2330
+ T && !Object.keys(k.events).length && n.splice(w, 1);
2329
2331
  } else for (p in k.events) k.events.hasOwnProperty(p) && s(c, p, "all");
2330
2332
  }
2331
2333
  }
2332
2334
  function l(c, p) {
2333
- for (var m = Ye(p), E = new hr(c), w = r[c.type], k = $t(c)[0], _ = k; g.element(_); ) {
2335
+ for (var m = Ye(p), E = new hr(c), w = r[c.type], k = $t(c)[0], T = k; g.element(T); ) {
2334
2336
  for (var S = 0; S < w.length; S++) {
2335
- var I = w[S], F = I.selector, $ = I.context;
2336
- if (fe(_, F) && se($, k) && se($, _)) {
2337
- var D = I.listeners;
2338
- E.currentTarget = _;
2339
- for (var q = 0; q < D.length; q++) {
2340
- var ve = D[q];
2337
+ var O = w[S], F = O.selector, W = O.context;
2338
+ if (fe(T, F) && se(W, k) && se(W, T)) {
2339
+ var N = O.listeners;
2340
+ E.currentTarget = T;
2341
+ for (var q = 0; q < N.length; q++) {
2342
+ var ve = N[q];
2341
2343
  ct(ve.options, m) && ve.func(E);
2342
2344
  }
2343
2345
  }
2344
2346
  }
2345
- _ = pe(_);
2347
+ T = pe(T);
2346
2348
  }
2347
2349
  }
2348
2350
  function u(c) {
@@ -2353,9 +2355,9 @@ function Vo() {
2353
2355
  }, get passive() {
2354
2356
  return i.supportsPassive = !0;
2355
2357
  } }), t.events = i, i;
2356
- } }, Pt = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(t) {
2357
- for (var e = 0, n = Pt.methodOrder; e < n.length; e++) {
2358
- var r = n[e], o = Pt[r](t);
2358
+ } }, At = { methodOrder: ["simulationResume", "mouseOrPen", "hasPointer", "idle"], search: function(t) {
2359
+ for (var e = 0, n = At.methodOrder; e < n.length; e++) {
2360
+ var r = n[e], o = At[r](t);
2359
2361
  if (o) return o;
2360
2362
  }
2361
2363
  return null;
@@ -2409,7 +2411,7 @@ function Vo() {
2409
2411
  return n.id === e;
2410
2412
  }));
2411
2413
  }
2412
- var mr = Pt, At = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
2414
+ var mr = At, Pt = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
2413
2415
  function xn(t, e) {
2414
2416
  return function(n) {
2415
2417
  var r = e.interactions.list, o = Yt(n), i = $t(n), a = i[0], s = i[1], l = [];
@@ -2421,18 +2423,18 @@ function Vo() {
2421
2423
  }
2422
2424
  } else {
2423
2425
  var w = !1;
2424
- if (!K.supportsPointerEvent && /mouse/.test(n.type)) {
2426
+ if (!J.supportsPointerEvent && /mouse/.test(n.type)) {
2425
2427
  for (var k = 0; k < r.length && !w; k++) w = r[k].pointerType !== "mouse" && r[k].pointerIsDown;
2426
2428
  w = w || e.now() - e.prevTouchTime < 500 || n.timeStamp === 0;
2427
2429
  }
2428
2430
  if (!w) {
2429
- var _ = { pointer: n, pointerId: Fe(n), pointerType: o, eventType: n.type, curEventTarget: s, eventTarget: a, scope: e }, S = wn(_);
2430
- l.push([_.pointer, _.eventTarget, _.curEventTarget, S]);
2431
+ var T = { pointer: n, pointerId: Fe(n), pointerType: o, eventType: n.type, curEventTarget: s, eventTarget: a, scope: e }, S = wn(T);
2432
+ l.push([T.pointer, T.eventTarget, T.curEventTarget, S]);
2431
2433
  }
2432
2434
  }
2433
- for (var I = 0; I < l.length; I++) {
2434
- var F = l[I], $ = F[0], D = F[1], q = F[2];
2435
- F[3][t]($, n, D, q);
2435
+ for (var O = 0; O < l.length; O++) {
2436
+ var F = l[O], W = F[0], N = F[1], q = F[2];
2437
+ F[3][t](W, n, N, q);
2436
2438
  }
2437
2439
  };
2438
2440
  }
@@ -2449,11 +2451,11 @@ function Vo() {
2449
2451
  }
2450
2452
  }
2451
2453
  var gr = { id: "core/interactions", install: function(t) {
2452
- for (var e = {}, n = 0; n < At.length; n++) {
2453
- var r = At[n];
2454
+ for (var e = {}, n = 0; n < Pt.length; n++) {
2455
+ var r = Pt[n];
2454
2456
  e[r] = xn(r, t);
2455
2457
  }
2456
- var o, i = K.pEventTypes;
2458
+ var o, i = J.pEventTypes;
2457
2459
  function a() {
2458
2460
  for (var s = 0, l = t.interactions.list; s < l.length; s++) {
2459
2461
  var u = l[s];
@@ -2469,8 +2471,8 @@ function Vo() {
2469
2471
  for (var l = 0, u = t.interactions.list; l < u.length; l++)
2470
2472
  u[l].documentBlur(s);
2471
2473
  } }), t.prevTouchTime = 0, t.Interaction = (function(s) {
2472
- O(u, s);
2473
- var l = P(u);
2474
+ I(u, s);
2475
+ var l = A(u);
2474
2476
  function u() {
2475
2477
  return x(this, u), l.apply(this, arguments);
2476
2478
  }
@@ -2497,11 +2499,11 @@ function Vo() {
2497
2499
  var o = e.interactions.list[r];
2498
2500
  o.interactable === n && (o.stop(), e.fire("interactions:destroy", { interaction: o }), o.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(r, 1));
2499
2501
  }
2500
- } }, onDocSignal: Dt, doOnInteractions: xn, methodNames: At }, yr = gr, Me = (function(t) {
2502
+ } }, onDocSignal: Dt, doOnInteractions: xn, methodNames: Pt }, yr = gr, Me = (function(t) {
2501
2503
  return t[t.On = 0] = "On", t[t.Off = 1] = "Off", t;
2502
2504
  })(Me || {}), br = (function() {
2503
2505
  function t(e, n, r, o) {
2504
- x(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new yn(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = n.actions, this.target = e, this._context = n.context || r, this._win = J(Ee(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = o, this.set(n);
2506
+ x(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new yn(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = n.actions, this.target = e, this._context = n.context || r, this._win = Q(Ee(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = o, this.set(n);
2505
2507
  }
2506
2508
  return C(t, [{ key: "_defaults", get: function() {
2507
2509
  return { base: {}, perAction: {}, actions: {} };
@@ -2555,7 +2557,7 @@ function Vo() {
2555
2557
  g.object(n) && !g.array(n) && (o = r, r = null);
2556
2558
  var a = Ie(n, r, i);
2557
2559
  for (var s in a) {
2558
- s === "wheel" && (s = K.wheelEvent);
2560
+ s === "wheel" && (s = J.wheelEvent);
2559
2561
  for (var l = 0, u = a[s]; l < u.length; l++) {
2560
2562
  var c = u[l];
2561
2563
  at(s, this._actions) ? this.events[e === Me.On ? "on" : "off"](s, c) : g.string(this.target) ? this._scopeEvents[e === Me.On ? "addDelegate" : "removeDelegate"](this.target, this._context, s, c, o) : this._scopeEvents[e === Me.On ? "add" : "remove"](this.target, s, c, o);
@@ -2610,7 +2612,7 @@ function Vo() {
2610
2612
  })(), wr = (function() {
2611
2613
  function t() {
2612
2614
  var e = this;
2613
- x(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = K, this.defaults = De(un), this.Eventable = yn, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = (function(r) {
2615
+ x(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = J, this.defaults = De(un), this.Eventable = yn, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = (function(r) {
2614
2616
  var o = function i(a, s) {
2615
2617
  var l = r.interactables.getExisting(a, s);
2616
2618
  return l || ((l = r.interactables.new(a, s)).events.global = i.globalEvents), l;
@@ -2649,9 +2651,9 @@ function Vo() {
2649
2651
  }), "The interact.off() method is being deprecated"), o.debug = function() {
2650
2652
  return this.scope;
2651
2653
  }, o.supportsTouch = function() {
2652
- return K.supportsTouch;
2654
+ return J.supportsTouch;
2653
2655
  }, o.supportsPointerEvent = function() {
2654
- return K.supportsPointerEvent;
2656
+ return J.supportsPointerEvent;
2655
2657
  }, o.stop = function() {
2656
2658
  for (var i = 0, a = this.scope.interactions.list; i < a.length; i++) a[i].stop();
2657
2659
  return this;
@@ -2667,17 +2669,17 @@ function Vo() {
2667
2669
  };
2668
2670
  var n = this;
2669
2671
  this.Interactable = (function(r) {
2670
- O(i, r);
2671
- var o = P(i);
2672
+ I(i, r);
2673
+ var o = A(i);
2672
2674
  function i() {
2673
2675
  return x(this, i), o.apply(this, arguments);
2674
2676
  }
2675
2677
  return C(i, [{ key: "_defaults", get: function() {
2676
2678
  return n.defaults;
2677
2679
  } }, { key: "set", value: function(a) {
2678
- return Z(T(i.prototype), "set", this).call(this, a), n.fire("interactable:set", { options: a, interactable: this }), this;
2680
+ return ee(M(i.prototype), "set", this).call(this, a), n.fire("interactable:set", { options: a, interactable: this }), this;
2679
2681
  } }, { key: "unset", value: function() {
2680
- Z(T(i.prototype), "unset", this).call(this);
2682
+ ee(M(i.prototype), "unset", this).call(this);
2681
2683
  var a = n.interactables.list.indexOf(this);
2682
2684
  a < 0 || (n.interactables.list.splice(a, 1), n.fire("interactable:unset", { interactable: this }));
2683
2685
  } }]), i;
@@ -2692,7 +2694,7 @@ function Vo() {
2692
2694
  }
2693
2695
  } }, { key: "init", value: function(e) {
2694
2696
  return this.isInitialized ? this : (function(n, r) {
2695
- return n.isInitialized = !0, g.window(r) && ee(r), H.init(r), K.init(r), Te.init(r), n.window = r, n.document = r.document, n.usePlugin(yr), n.usePlugin(vr), n;
2697
+ return n.isInitialized = !0, g.window(r) && te(r), H.init(r), J.init(r), Te.init(r), n.window = r, n.document = r.document, n.usePlugin(yr), n.usePlugin(vr), n;
2696
2698
  })(this, e);
2697
2699
  } }, { key: "pluginIsInstalled", value: function(e) {
2698
2700
  var n = e.id;
@@ -2712,10 +2714,10 @@ function Vo() {
2712
2714
  return this;
2713
2715
  } }, { key: "addDocument", value: function(e, n) {
2714
2716
  if (this.getDocIndex(e) !== -1) return !1;
2715
- var r = J(e);
2717
+ var r = Q(e);
2716
2718
  n = n ? R({}, n) : {}, this.documents.push({ doc: e, options: n }), this.events.documents.push(e), e !== this.document && this.events.add(r, "unload", this.onWindowUnload), this.fire("scope:add-document", { doc: e, window: r, scope: this, options: n });
2717
2719
  } }, { key: "removeDocument", value: function(e) {
2718
- var n = this.getDocIndex(e), r = J(e), o = this.documents[n].options;
2720
+ var n = this.getDocIndex(e), r = Q(e), o = this.documents[n].options;
2719
2721
  this.events.remove(r, "unload", this.onWindowUnload), this.documents.splice(n, 1), this.events.documents.splice(n, 1), this.fire("scope:remove-document", { doc: e, window: r, scope: this, options: o });
2720
2722
  } }, { key: "getDocIndex", value: function(e) {
2721
2723
  for (var n = 0; n < this.documents.length; n++) if (this.documents[n].doc === e) return n;
@@ -2740,8 +2742,8 @@ function Vo() {
2740
2742
  return o in t || i in t;
2741
2743
  })), n = function(r, o) {
2742
2744
  for (var i = t.range, a = t.limits, s = a === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : a, l = t.offset, u = l === void 0 ? { x: 0, y: 0 } : l, c = { range: i, grid: t, x: null, y: null }, p = 0; p < e.length; p++) {
2743
- var m = e[p], E = m[0], w = m[1], k = Math.round((r - u.x) / t[E]), _ = Math.round((o - u.y) / t[w]);
2744
- c[E] = Math.max(s.left, Math.min(s.right, k * t[E] + u.x)), c[w] = Math.max(s.top, Math.min(s.bottom, _ * t[w] + u.y));
2745
+ var m = e[p], E = m[0], w = m[1], k = Math.round((r - u.x) / t[E]), T = Math.round((o - u.y) / t[w]);
2746
+ c[E] = Math.max(s.left, Math.min(s.right, k * t[E] + u.x)), c[w] = Math.max(s.top, Math.min(s.bottom, T * t[w] + u.y));
2745
2747
  }
2746
2748
  return c;
2747
2749
  };
@@ -2787,13 +2789,13 @@ function Vo() {
2787
2789
  };
2788
2790
  Cn._defaults = {};
2789
2791
  var ut = Cn;
2790
- function Pe(t, e, n) {
2792
+ function Ae(t, e, n) {
2791
2793
  return g.func(t) ? ze(t, e.interactable, e.element, [n.x, n.y, e]) : ze(t, e.interactable, e.element);
2792
2794
  }
2793
2795
  var dt = { start: function(t) {
2794
2796
  var e = t.rect, n = t.startOffset, r = t.state, o = t.interaction, i = t.pageCoords, a = r.options, s = a.elementRect, l = R({ left: 0, top: 0, right: 0, bottom: 0 }, a.offset || {});
2795
2797
  if (e && s) {
2796
- var u = Pe(a.restriction, o, i);
2798
+ var u = Ae(a.restriction, o, i);
2797
2799
  if (u) {
2798
2800
  var c = u.right - u.left - e.width, p = u.bottom - u.top - e.height;
2799
2801
  c < 0 && (l.left += c, l.right += c), p < 0 && (l.top += p, l.bottom += p);
@@ -2802,7 +2804,7 @@ function Vo() {
2802
2804
  }
2803
2805
  r.offset = l;
2804
2806
  }, set: function(t) {
2805
- var e = t.coords, n = t.interaction, r = t.state, o = r.options, i = r.offset, a = Pe(o.restriction, n, e);
2807
+ var e = t.coords, n = t.interaction, r = t.state, o = r.options, i = r.offset, a = Ae(o.restriction, n, e);
2806
2808
  if (a) {
2807
2809
  var s = (function(l) {
2808
2810
  return !l || "left" in l && "top" in l || ((l = R({}, l)).left = l.x || 0, l.top = l.y || 0, l.right = l.right || l.left + l.width, l.bottom = l.bottom || l.top + l.height), l;
@@ -2819,22 +2821,22 @@ function Vo() {
2819
2821
  }
2820
2822
  var $e = { noInner: Sn, noOuter: Tn, start: function(t) {
2821
2823
  var e, n = t.interaction, r = t.startOffset, o = t.state, i = o.options;
2822
- i && (e = Ze(Pe(i.offset, n, n.coords.start.page))), e = e || { x: 0, y: 0 }, o.offset = { top: e.y + r.top, left: e.x + r.left, bottom: e.y - r.bottom, right: e.x - r.right };
2824
+ i && (e = Ze(Ae(i.offset, n, n.coords.start.page))), e = e || { x: 0, y: 0 }, o.offset = { top: e.y + r.top, left: e.x + r.left, bottom: e.y - r.bottom, right: e.x - r.right };
2823
2825
  }, set: function(t) {
2824
2826
  var e = t.coords, n = t.edges, r = t.interaction, o = t.state, i = o.offset, a = o.options;
2825
2827
  if (n) {
2826
- var s = R({}, e), l = Pe(a.inner, r, s) || {}, u = Pe(a.outer, r, s) || {};
2828
+ var s = R({}, e), l = Ae(a.inner, r, s) || {}, u = Ae(a.outer, r, s) || {};
2827
2829
  _n(l, Sn), _n(u, Tn), n.top ? e.y = Math.min(Math.max(u.top + i.top, s.y), l.top + i.top) : n.bottom && (e.y = Math.max(Math.min(u.bottom + i.bottom, s.y), l.bottom + i.bottom)), n.left ? e.x = Math.min(Math.max(u.left + i.left, s.x), l.left + i.left) : n.right && (e.x = Math.max(Math.min(u.right + i.right, s.x), l.right + i.right));
2828
2830
  }
2829
- }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, Or = _e($e, "restrictEdges"), Pr = R({ get elementRect() {
2831
+ }, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, Or = _e($e, "restrictEdges"), Ar = R({ get elementRect() {
2830
2832
  return { top: 0, left: 0, bottom: 1, right: 1 };
2831
2833
  }, set elementRect(t) {
2832
- } }, dt.defaults), Ar = _e({ start: dt.start, set: dt.set, defaults: Pr }, "restrictRect"), Dr = { width: -1 / 0, height: -1 / 0 }, Nr = { width: 1 / 0, height: 1 / 0 }, zr = _e({ start: function(t) {
2834
+ } }, dt.defaults), Pr = _e({ start: dt.start, set: dt.set, defaults: Ar }, "restrictRect"), Dr = { width: -1 / 0, height: -1 / 0 }, Nr = { width: 1 / 0, height: 1 / 0 }, zr = _e({ start: function(t) {
2833
2835
  return $e.start(t);
2834
2836
  }, set: function(t) {
2835
2837
  var e = t.interaction, n = t.state, r = t.rect, o = t.edges, i = n.options;
2836
2838
  if (o) {
2837
- var a = vt(Pe(i.min, e, t.coords)) || Dr, s = vt(Pe(i.max, e, t.coords)) || Nr;
2839
+ var a = vt(Ae(i.min, e, t.coords)) || Dr, s = vt(Ae(i.max, e, t.coords)) || Nr;
2838
2840
  n.options = { endOnly: i.endOnly, inner: R({}, $e.noInner), outer: R({}, $e.noOuter) }, o.top ? (n.options.inner.top = r.bottom - a.height, n.options.outer.top = r.bottom - s.height) : o.bottom && (n.options.inner.bottom = r.top + a.height, n.options.outer.bottom = r.top + s.height), o.left ? (n.options.inner.left = r.right - a.width, n.options.outer.left = r.right - s.width) : o.right && (n.options.inner.right = r.left + a.width, n.options.outer.right = r.left + s.width), $e.set(t), n.options = i;
2839
2841
  }
2840
2842
  }, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), Nt = { start: function(t) {
@@ -2855,14 +2857,14 @@ function Vo() {
2855
2857
  var e = t.interaction, n = t.coords, r = t.state, o = r.options, i = r.offsets, a = Le(e.interactable, e.element, e.prepared.name), s = R({}, n), l = [];
2856
2858
  o.offsetWithOrigin || (s.x -= a.x, s.y -= a.y);
2857
2859
  for (var u = 0, c = i; u < c.length; u++) for (var p = c[u], m = s.x - p.x, E = s.y - p.y, w = 0, k = o.targets.length; w < k; w++) {
2858
- var _ = o.targets[w], S = void 0;
2859
- (S = g.func(_) ? _(m, E, e._proxy, p, w) : _) && l.push({ x: (g.number(S.x) ? S.x : m) + p.x, y: (g.number(S.y) ? S.y : E) + p.y, range: g.number(S.range) ? S.range : o.range, source: _, index: w, offset: p });
2860
+ var T = o.targets[w], S = void 0;
2861
+ (S = g.func(T) ? T(m, E, e._proxy, p, w) : T) && l.push({ x: (g.number(S.x) ? S.x : m) + p.x, y: (g.number(S.y) ? S.y : E) + p.y, range: g.number(S.range) ? S.range : o.range, source: T, index: w, offset: p });
2860
2862
  }
2861
- for (var I = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, F = 0; F < l.length; F++) {
2862
- var $ = l[F], D = $.range, q = $.x - s.x, ve = $.y - s.y, ae = je(q, ve), ge = ae <= D;
2863
- D === 1 / 0 && I.inRange && I.range !== 1 / 0 && (ge = !1), I.target && !(ge ? I.inRange && D !== 1 / 0 ? ae / D < I.distance / I.range : D === 1 / 0 && I.range !== 1 / 0 || ae < I.distance : !I.inRange && ae < I.distance) || (I.target = $, I.distance = ae, I.range = D, I.inRange = ge, I.delta.x = q, I.delta.y = ve);
2863
+ for (var O = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, F = 0; F < l.length; F++) {
2864
+ var W = l[F], N = W.range, q = W.x - s.x, ve = W.y - s.y, ae = je(q, ve), ge = ae <= N;
2865
+ N === 1 / 0 && O.inRange && O.range !== 1 / 0 && (ge = !1), O.target && !(ge ? O.inRange && N !== 1 / 0 ? ae / N < O.distance / O.range : N === 1 / 0 && O.range !== 1 / 0 || ae < O.distance : !O.inRange && ae < O.distance) || (O.target = W, O.distance = ae, O.range = N, O.inRange = ge, O.delta.x = q, O.delta.y = ve);
2864
2866
  }
2865
- return I.inRange && (n.x = I.target.x, n.y = I.target.y), r.closest = I, I;
2867
+ return O.inRange && (n.x = O.target.x, n.y = O.target.y), r.closest = O, O;
2866
2868
  }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, Lr = _e(Nt, "snap"), pt = { start: function(t) {
2867
2869
  var e = t.state, n = t.edges, r = e.options;
2868
2870
  if (!n) return null;
@@ -2883,9 +2885,9 @@ function Vo() {
2883
2885
  n.options.targets.push(c);
2884
2886
  }
2885
2887
  }
2886
- var _ = Nt.set(t);
2887
- return n.options = o, _;
2888
- }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, jr = _e(pt, "snapSize"), zt = { aspectRatio: Rr, restrictEdges: Or, restrict: Ir, restrictRect: Ar, restrictSize: zr, snapEdges: _e({ start: function(t) {
2888
+ var T = Nt.set(t);
2889
+ return n.options = o, T;
2890
+ }, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, jr = _e(pt, "snapSize"), zt = { aspectRatio: Rr, restrictEdges: Or, restrict: Ir, restrictRect: Pr, restrictSize: zr, snapEdges: _e({ start: function(t) {
2889
2891
  var e = t.edges;
2890
2892
  return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], pt.start(t)) : null;
2891
2893
  }, set: pt.set, defaults: R(De(pt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: Lr, snapSize: jr, spring: ut, avoid: ut, transform: ut, rubberband: ut }, Fr = { id: "modifiers", install: function(t) {
@@ -2895,11 +2897,11 @@ function Vo() {
2895
2897
  o._methods = i, t.defaults.perAction[n] = o;
2896
2898
  }
2897
2899
  } }, Hr = Fr, Mn = (function(t) {
2898
- O(n, t);
2899
- var e = P(n);
2900
+ I(n, t);
2901
+ var e = A(n);
2900
2902
  function n(r, o, i, a, s, l) {
2901
2903
  var u;
2902
- if (x(this, n), tt(ne(u = e.call(this, s)), i), i !== o && tt(ne(u), o), u.timeStamp = l, u.originalEvent = i, u.type = r, u.pointerId = Fe(o), u.pointerType = Yt(o), u.target = a, u.currentTarget = null, r === "tap") {
2904
+ if (x(this, n), tt(re(u = e.call(this, s)), i), i !== o && tt(re(u), o), u.timeStamp = l, u.originalEvent = i, u.type = r, u.pointerId = Fe(o), u.pointerType = Yt(o), u.target = a, u.currentTarget = null, r === "tap") {
2903
2905
  var c = s.getPointerIndex(o);
2904
2906
  u.dt = u.timeStamp - s.pointers[c].downTime;
2905
2907
  var p = u.timeStamp - s.tapTime;
@@ -2934,8 +2936,8 @@ function Vo() {
2934
2936
  p.node = E, r.fire("pointerEvents:collect-targets", p);
2935
2937
  }
2936
2938
  if (p.targets.length) {
2937
- for (var w = 1 / 0, k = 0, _ = p.targets; k < _.length; k++) {
2938
- var S = _[k].eventable.options.holdDuration;
2939
+ for (var w = 1 / 0, k = 0, T = p.targets; k < T.length; k++) {
2940
+ var S = T[k].eventable.options.holdDuration;
2939
2941
  S < w && (w = S);
2940
2942
  }
2941
2943
  u.duration = w, u.timeout = setTimeout((function() {
@@ -3044,7 +3046,7 @@ function Vo() {
3044
3046
  w._reflowResolve = S;
3045
3047
  })));
3046
3048
  else {
3047
- var k = vt(m), _ = /* @__PURE__ */ (function(S) {
3049
+ var k = vt(m), T = /* @__PURE__ */ (function(S) {
3048
3050
  return { coords: S, get page() {
3049
3051
  return this.coords.page;
3050
3052
  }, get client() {
@@ -3072,14 +3074,14 @@ function Vo() {
3072
3074
  }, preventDefault: function() {
3073
3075
  } };
3074
3076
  })({ page: { x: k.x, y: k.y }, client: { x: k.x, y: k.y }, timeStamp: i.now() });
3075
- E = (function(S, I, F, $, D) {
3076
- var q = S.interactions.new({ pointerType: "reflow" }), ve = { interaction: q, event: D, pointer: D, eventTarget: F, phase: "reflow" };
3077
- q.interactable = I, q.element = F, q.prevEvent = D, q.updatePointer(D, D, F, !0), Ht(q.coords.delta), St(q.prepared, $), q._doPhase(ve);
3077
+ E = (function(S, O, F, W, N) {
3078
+ var q = S.interactions.new({ pointerType: "reflow" }), ve = { interaction: q, event: N, pointer: N, eventTarget: F, phase: "reflow" };
3079
+ q.interactable = O, q.element = F, q.prevEvent = N, q.updatePointer(N, N, F, !0), Ht(q.coords.delta), St(q.prepared, W), q._doPhase(ve);
3078
3080
  var ae = S.window, ge = ae.Promise, be = ge ? new ge((function(Se) {
3079
3081
  q._reflowResolve = Se;
3080
3082
  })) : void 0;
3081
- return q._reflowPromise = be, q.start($, I, F), q._interacting ? (q.move(ve), q.end(D)) : (q.stop(), q._reflowResolve()), q.removePointer(D, D), be;
3082
- })(i, r, p, o, _);
3083
+ return q._reflowPromise = be, q.start(W, O, F), q._interacting ? (q.move(ve), q.end(N)) : (q.stop(), q._reflowResolve()), q.removePointer(N, N), be;
3084
+ })(i, r, p, o, T);
3083
3085
  }
3084
3086
  l && l.push(E);
3085
3087
  }, c = 0; c < a.length && !u(); c++) ;
@@ -3104,28 +3106,30 @@ function Vo() {
3104
3106
  }
3105
3107
  var Yo = /* @__PURE__ */ Vo();
3106
3108
  const jt = /* @__PURE__ */ Bo(Yo);
3107
- function Pn(h) {
3109
+ function An(h) {
3108
3110
  const v = document.createElement("input");
3109
3111
  v.type = "file", v.accept = "image/*", v.onchange = (f) => {
3110
3112
  const d = f.target.files?.[0];
3111
3113
  if (d) {
3112
3114
  const y = new FileReader();
3113
3115
  y.onload = (x) => {
3114
- const M = document.createElement("img");
3115
- M.src = x.target?.result, M.style.maxWidth = "100%", M.style.width = "100%", M.style.height = "auto", M.style.cursor = "pointer", M.draggable = !1;
3116
+ const _ = document.createElement("img");
3117
+ _.src = x.target?.result, _.style.maxWidth = "100%", _.style.width = "100%", _.style.height = "auto", _.style.cursor = "pointer", _.draggable = !1;
3116
3118
  const C = document.createElement("div");
3117
- C.className = "editor-image-wrapper", C.style.display = "inline-block", C.style.position = "relative", C.style.maxWidth = "100%", C.style.width = "auto", C.style.height = "auto", C.contentEditable = "false", C.style.boxSizing = "border-box", C.style.touchAction = "none", C.style.userSelect = "none", C.appendChild(M);
3119
+ C.className = "editor-image-wrapper", C.style.display = "inline-block", C.style.position = "relative", C.style.maxWidth = "100%", C.style.width = "auto", C.style.height = "auto", C.contentEditable = "false", C.style.boxSizing = "border-box", C.style.touchAction = "none", C.style.userSelect = "none", C.appendChild(_);
3120
+ const P = document.createElement("p");
3121
+ P.style.margin = "10px 0", P.style.textAlign = "left", P.appendChild(C);
3118
3122
  try {
3119
3123
  Ne();
3120
- const N = window.getSelection();
3121
- if (N && N.rangeCount > 0) {
3122
- N.getRangeAt(0).insertNode(C), N.removeAllRanges();
3123
- const T = document.createRange();
3124
- T.setStartAfter(C), T.collapse(!0), N.addRange(T), me(T);
3124
+ const I = window.getSelection();
3125
+ if (I && I.rangeCount > 0) {
3126
+ I.getRangeAt(0).insertNode(P), I.removeAllRanges();
3127
+ const $ = document.createRange();
3128
+ $.setStartAfter(P), $.collapse(!0), I.addRange($), me($);
3125
3129
  } else
3126
- h.appendChild(C), h.focus(), me();
3130
+ h.appendChild(P), h.focus(), me();
3127
3131
  } catch {
3128
- h.appendChild(C), h.focus(), me();
3132
+ h.appendChild(P), h.focus(), me();
3129
3133
  }
3130
3134
  }, y.readAsDataURL(d);
3131
3135
  }
@@ -3166,13 +3170,13 @@ class Wo {
3166
3170
  editor;
3167
3171
  constructor() {
3168
3172
  this.container = document.createElement("div"), this.container.classList.add("editor-container"), this.editor = Ho(
3169
- () => Pn(this.editor),
3173
+ () => An(this.editor),
3170
3174
  (f) => $o(f)
3171
3175
  ), this.toolbar = Fo(this.container);
3172
3176
  const v = this.toolbar.querySelector(
3173
3177
  '[role="button"][title="Insert Image"]'
3174
3178
  );
3175
- v && (v.onclick = () => Pn(this.editor)), this.container.appendChild(this.toolbar), this.container.appendChild(this.editor);
3179
+ v && (v.onclick = () => An(this.editor)), this.container.appendChild(this.toolbar), this.container.appendChild(this.editor);
3176
3180
  }
3177
3181
  getElement() {
3178
3182
  return this.container;
@@ -3185,14 +3189,14 @@ class Wo {
3185
3189
  }
3186
3190
  }
3187
3191
  var ht = { exports: {} }, Xe = {};
3188
- var An;
3192
+ var Pn;
3189
3193
  function Uo() {
3190
- if (An) return Xe;
3191
- An = 1;
3194
+ if (Pn) return Xe;
3195
+ Pn = 1;
3192
3196
  var h = Symbol.for("react.transitional.element"), v = Symbol.for("react.fragment");
3193
3197
  function f(d, y, x) {
3194
- var M = null;
3195
- if (x !== void 0 && (M = "" + x), y.key !== void 0 && (M = "" + y.key), "key" in y) {
3198
+ var _ = null;
3199
+ if (x !== void 0 && (_ = "" + x), y.key !== void 0 && (_ = "" + y.key), "key" in y) {
3196
3200
  x = {};
3197
3201
  for (var C in y)
3198
3202
  C !== "key" && (x[C] = y[C]);
@@ -3200,7 +3204,7 @@ function Uo() {
3200
3204
  return y = x.ref, {
3201
3205
  $$typeof: h,
3202
3206
  type: d,
3203
- key: M,
3207
+ key: _,
3204
3208
  ref: y !== void 0 ? y : null,
3205
3209
  props: x
3206
3210
  };
@@ -3217,13 +3221,13 @@ function Xo() {
3217
3221
  return b.$$typeof === ce ? null : b.displayName || b.name || null;
3218
3222
  if (typeof b == "string") return b;
3219
3223
  switch (b) {
3220
- case U:
3224
+ case X:
3221
3225
  return "Fragment";
3222
- case W:
3226
+ case U:
3223
3227
  return "Profiler";
3224
- case re:
3228
+ case oe:
3225
3229
  return "StrictMode";
3226
- case Q:
3230
+ case Z:
3227
3231
  return "Suspense";
3228
3232
  case g:
3229
3233
  return "SuspenseList";
@@ -3234,21 +3238,21 @@ function Xo() {
3234
3238
  switch (typeof b.tag == "number" && console.error(
3235
3239
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
3236
3240
  ), b.$$typeof) {
3237
- case X:
3241
+ case G:
3238
3242
  return "Portal";
3239
- case J:
3243
+ case Q:
3240
3244
  return b.displayName || "Context";
3241
- case ee:
3245
+ case te:
3242
3246
  return (b._context.displayName || "Context") + ".Consumer";
3243
3247
  case ie:
3244
- var A = b.render;
3245
- return b = b.displayName, b || (b = A.displayName || A.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
3246
- case G:
3247
- return A = b.displayName || null, A !== null ? A : h(b.type) || "Memo";
3248
+ var D = b.render;
3249
+ return b = b.displayName, b || (b = D.displayName || D.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
3250
+ case K:
3251
+ return D = b.displayName || null, D !== null ? D : h(b.type) || "Memo";
3248
3252
  case z:
3249
- A = b._payload, b = b._init;
3253
+ D = b._payload, b = b._init;
3250
3254
  try {
3251
- return h(b(A));
3255
+ return h(b(D));
3252
3256
  } catch {
3253
3257
  }
3254
3258
  }
@@ -3260,27 +3264,27 @@ function Xo() {
3260
3264
  function f(b) {
3261
3265
  try {
3262
3266
  v(b);
3263
- var A = !1;
3267
+ var D = !1;
3264
3268
  } catch {
3265
- A = !0;
3269
+ D = !0;
3266
3270
  }
3267
- if (A) {
3268
- A = console;
3269
- var L = A.error, B = typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object";
3271
+ if (D) {
3272
+ D = console;
3273
+ var L = D.error, B = typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object";
3270
3274
  return L.call(
3271
- A,
3275
+ D,
3272
3276
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
3273
3277
  B
3274
3278
  ), v(b);
3275
3279
  }
3276
3280
  }
3277
3281
  function d(b) {
3278
- if (b === U) return "<>";
3282
+ if (b === X) return "<>";
3279
3283
  if (typeof b == "object" && b !== null && b.$$typeof === z)
3280
3284
  return "<...>";
3281
3285
  try {
3282
- var A = h(b);
3283
- return A ? "<" + A + ">" : "<...>";
3286
+ var D = h(b);
3287
+ return D ? "<" + D + ">" : "<...>";
3284
3288
  } catch {
3285
3289
  return "<...>";
3286
3290
  }
@@ -3292,18 +3296,18 @@ function Xo() {
3292
3296
  function x() {
3293
3297
  return Error("react-stack-top-frame");
3294
3298
  }
3295
- function M(b) {
3299
+ function _(b) {
3296
3300
  if (Y.call(b, "key")) {
3297
- var A = Object.getOwnPropertyDescriptor(b, "key").get;
3298
- if (A && A.isReactWarning) return !1;
3301
+ var D = Object.getOwnPropertyDescriptor(b, "key").get;
3302
+ if (D && D.isReactWarning) return !1;
3299
3303
  }
3300
3304
  return b.key !== void 0;
3301
3305
  }
3302
- function C(b, A) {
3306
+ function C(b, D) {
3303
3307
  function L() {
3304
- K || (K = !0, console.error(
3308
+ J || (J = !0, console.error(
3305
3309
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
3306
- A
3310
+ D
3307
3311
  ));
3308
3312
  }
3309
3313
  L.isReactWarning = !0, Object.defineProperty(b, "key", {
@@ -3311,23 +3315,23 @@ function Xo() {
3311
3315
  configurable: !0
3312
3316
  });
3313
3317
  }
3314
- function N() {
3318
+ function P() {
3315
3319
  var b = h(this.type);
3316
3320
  return se[b] || (se[b] = !0, console.error(
3317
3321
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
3318
3322
  )), b = this.props.ref, b !== void 0 ? b : null;
3319
3323
  }
3320
- function O(b, A, L, B, xe, we) {
3324
+ function I(b, D, L, B, xe, we) {
3321
3325
  var ue = L.ref;
3322
3326
  return b = {
3323
- $$typeof: Z,
3327
+ $$typeof: ee,
3324
3328
  type: b,
3325
- key: A,
3329
+ key: D,
3326
3330
  props: L,
3327
3331
  _owner: B
3328
3332
  }, (ue !== void 0 ? ue : null) !== null ? Object.defineProperty(b, "ref", {
3329
3333
  enumerable: !1,
3330
- get: N
3334
+ get: P
3331
3335
  }) : Object.defineProperty(b, "ref", { enumerable: !1, value: null }), b._store = {}, Object.defineProperty(b._store, "validated", {
3332
3336
  configurable: !1,
3333
3337
  enumerable: !1,
@@ -3350,22 +3354,22 @@ function Xo() {
3350
3354
  value: we
3351
3355
  }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
3352
3356
  }
3353
- function T(b, A, L, B, xe, we) {
3354
- var ue = A.children;
3357
+ function M(b, D, L, B, xe, we) {
3358
+ var ue = D.children;
3355
3359
  if (ue !== void 0)
3356
3360
  if (B)
3357
3361
  if (H(ue)) {
3358
3362
  for (B = 0; B < ue.length; B++)
3359
- oe(ue[B]);
3363
+ $(ue[B]);
3360
3364
  Object.freeze && Object.freeze(ue);
3361
3365
  } else
3362
3366
  console.error(
3363
3367
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
3364
3368
  );
3365
- else oe(ue);
3366
- if (Y.call(A, "key")) {
3369
+ else $(ue);
3370
+ if (Y.call(D, "key")) {
3367
3371
  ue = h(b);
3368
- var Ee = Object.keys(A).filter(function(Qe) {
3372
+ var Ee = Object.keys(D).filter(function(Qe) {
3369
3373
  return Qe !== "key";
3370
3374
  });
3371
3375
  B = 0 < Ee.length ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}", fe[ue + B] || (Ee = 0 < Ee.length ? "{" + Ee.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -3381,15 +3385,15 @@ React keys must be passed directly to JSX without using spread:
3381
3385
  ue
3382
3386
  ), fe[ue + B] = !0);
3383
3387
  }
3384
- if (ue = null, L !== void 0 && (f(L), ue = "" + L), M(A) && (f(A.key), ue = "" + A.key), "key" in A) {
3388
+ if (ue = null, L !== void 0 && (f(L), ue = "" + L), _(D) && (f(D.key), ue = "" + D.key), "key" in D) {
3385
3389
  L = {};
3386
- for (var R in A)
3387
- R !== "key" && (L[R] = A[R]);
3388
- } else L = A;
3390
+ for (var R in D)
3391
+ R !== "key" && (L[R] = D[R]);
3392
+ } else L = D;
3389
3393
  return ue && C(
3390
3394
  L,
3391
3395
  typeof b == "function" ? b.displayName || b.name || "Unknown" : b
3392
- ), O(
3396
+ ), I(
3393
3397
  b,
3394
3398
  ue,
3395
3399
  L,
@@ -3398,43 +3402,43 @@ React keys must be passed directly to JSX without using spread:
3398
3402
  we
3399
3403
  );
3400
3404
  }
3401
- function oe(b) {
3402
- ne(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === z && (b._payload.status === "fulfilled" ? ne(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
3405
+ function $(b) {
3406
+ re(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === z && (b._payload.status === "fulfilled" ? re(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
3403
3407
  }
3404
- function ne(b) {
3405
- return typeof b == "object" && b !== null && b.$$typeof === Z;
3408
+ function re(b) {
3409
+ return typeof b == "object" && b !== null && b.$$typeof === ee;
3406
3410
  }
3407
- var P = Jr, Z = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), re = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), ee = Symbol.for("react.consumer"), J = Symbol.for("react.context"), ie = Symbol.for("react.forward_ref"), Q = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), G = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), V = P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, H = Array.isArray, te = console.createTask ? console.createTask : function() {
3411
+ var A = Jr, ee = Symbol.for("react.transitional.element"), G = Symbol.for("react.portal"), X = Symbol.for("react.fragment"), oe = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), te = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), ie = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), K = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), V = A.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, H = Array.isArray, ne = console.createTask ? console.createTask : function() {
3408
3412
  return null;
3409
3413
  };
3410
- P = {
3414
+ A = {
3411
3415
  react_stack_bottom_frame: function(b) {
3412
3416
  return b();
3413
3417
  }
3414
3418
  };
3415
- var K, se = {}, de = P.react_stack_bottom_frame.bind(
3416
- P,
3419
+ var J, se = {}, de = A.react_stack_bottom_frame.bind(
3420
+ A,
3417
3421
  x
3418
- )(), pe = te(d(x)), fe = {};
3419
- Ge.Fragment = U, Ge.jsx = function(b, A, L) {
3422
+ )(), pe = ne(d(x)), fe = {};
3423
+ Ge.Fragment = X, Ge.jsx = function(b, D, L) {
3420
3424
  var B = 1e4 > V.recentlyCreatedOwnerStacks++;
3421
- return T(
3425
+ return M(
3422
3426
  b,
3423
- A,
3427
+ D,
3424
3428
  L,
3425
3429
  !1,
3426
3430
  B ? Error("react-stack-top-frame") : de,
3427
- B ? te(d(b)) : pe
3431
+ B ? ne(d(b)) : pe
3428
3432
  );
3429
- }, Ge.jsxs = function(b, A, L) {
3433
+ }, Ge.jsxs = function(b, D, L) {
3430
3434
  var B = 1e4 > V.recentlyCreatedOwnerStacks++;
3431
- return T(
3435
+ return M(
3432
3436
  b,
3433
- A,
3437
+ D,
3434
3438
  L,
3435
3439
  !0,
3436
3440
  B ? Error("react-stack-top-frame") : de,
3437
- B ? te(d(b)) : pe
3441
+ B ? ne(d(b)) : pe
3438
3442
  );
3439
3443
  };
3440
3444
  })()), Ge;
@@ -3453,8 +3457,8 @@ const Qo = ({
3453
3457
  if (d.current && !f.current) {
3454
3458
  f.current = new Wo(), d.current.appendChild(f.current.getElement()), v && f.current.setHTML(v);
3455
3459
  const y = f.current.getElement(), x = () => {
3456
- const M = f.current?.getHTML() || "";
3457
- h?.(M);
3460
+ const _ = f.current?.getHTML() || "";
3461
+ h?.(_);
3458
3462
  };
3459
3463
  y.addEventListener("input", x), y.addEventListener("keyup", x), y.addEventListener("paste", x);
3460
3464
  }