nam-rich-text-editor 9.1.0 → 9.1.1

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,8 +214,8 @@ function Ln(h, v) {
214
214
  M.style[h] = v;
215
215
  const k = d.extractContents();
216
216
  M.appendChild(k), d.insertNode(M), f.removeAllRanges();
217
- const z = document.createRange();
218
- z.selectNodeContents(M), f.addRange(z), me(z);
217
+ const A = document.createRange();
218
+ A.selectNodeContents(M), f.addRange(A), me(A);
219
219
  return;
220
220
  }
221
221
  const y = document.createElement("span");
@@ -305,7 +305,21 @@ function Do() {
305
305
  );
306
306
  if (!M) return;
307
307
  const k = M.querySelector(".editor");
308
- d ? (y ? M.setAttribute("style", y) : M.removeAttribute("style"), k && (C ? k.setAttribute("style", C) : k.removeAttribute("style")), h.replaceChild(v, f), d = !1) : (y = M.getAttribute("style") || "", C = k && k.getAttribute("style") || "", M.style.position = "fixed", M.style.top = "0", M.style.left = "0", M.style.width = "100vw", M.style.height = "100vh", M.style.zIndex = "9999", M.style.backgroundColor = "#ffffff", M.style.display = "flex", M.style.flexDirection = "column", k && (k.style.flexGrow = "1", k.style.overflowY = "auto", k.style.border = "none", k.style.borderRadius = "0", k.style.boxShadow = "none"), h.replaceChild(f, v), d = !0);
308
+ if (d)
309
+ y ? M.setAttribute("style", y) : M.removeAttribute("style"), k && (C ? k.setAttribute("style", C) : k.removeAttribute("style")), h.replaceChild(v, f), d = !1;
310
+ else {
311
+ y = M.getAttribute("style") || "", C = k && k.getAttribute("style") || "", M.style.position = "fixed", M.style.top = "0", M.style.left = "0", M.style.width = "100vw", M.style.height = "100vh";
312
+ try {
313
+ let A = 0;
314
+ document.querySelectorAll("body *").forEach((z) => {
315
+ const _ = window.getComputedStyle(z).getPropertyValue("z-index"), ne = Number(_);
316
+ isNaN(ne) || (A = Math.max(A, ne));
317
+ }), M.style.zIndex = String(A + 1);
318
+ } catch {
319
+ M.style.zIndex = String(2147483647);
320
+ }
321
+ M.style.backgroundColor = "#ffffff", M.style.display = "flex", M.style.flexDirection = "column", k && (k.style.flexGrow = "1", k.style.overflowY = "auto", k.style.border = "none", k.style.borderRadius = "0", k.style.boxShadow = "none"), h.replaceChild(f, v), d = !0;
322
+ }
309
323
  }, h;
310
324
  }
311
325
  function No(h) {
@@ -321,17 +335,17 @@ function No(h) {
321
335
  M.style.display = "flex", M.style.gap = "10px", M.style.justifyContent = "flex-end";
322
336
  const k = document.createElement("button");
323
337
  k.textContent = "Cancel", k.style.padding = "8px 16px", k.style.border = "1px solid #ccc", k.style.borderRadius = "4px", k.style.backgroundColor = "#f5f5f5", k.style.cursor = "pointer", k.onclick = () => {
324
- f.style.display = "none", C.value = "", z = null;
338
+ f.style.display = "none", C.value = "", A = null;
325
339
  };
326
- let z = null;
327
- const N = document.createElement("button");
328
- N.textContent = "Insert", N.style.padding = "8px 16px", N.style.border = "none", N.style.borderRadius = "4px", N.style.backgroundColor = "#007bff", N.style.color = "#fff", N.style.cursor = "pointer", N.onclick = () => {
329
- const V = C.value.trim();
330
- if (V)
331
- if (z)
332
- z.setAttribute("href", V), z.setAttribute("target", "_blank"), z.setAttribute("rel", "noopener noreferrer"), z.setAttribute("tabindex", "0");
340
+ let A = null;
341
+ const z = document.createElement("button");
342
+ z.textContent = "Insert", z.style.padding = "8px 16px", z.style.border = "none", z.style.borderRadius = "4px", z.style.backgroundColor = "#007bff", z.style.color = "#fff", z.style.cursor = "pointer", z.onclick = () => {
343
+ const Y = C.value.trim();
344
+ if (Y)
345
+ if (A)
346
+ A.setAttribute("href", Y), A.setAttribute("target", "_blank"), A.setAttribute("rel", "noopener noreferrer"), A.setAttribute("tabindex", "0");
333
347
  else {
334
- Ne(), document.execCommand("createLink", !1, V);
348
+ Ne(), document.execCommand("createLink", !1, Y);
335
349
  const J = window.getSelection();
336
350
  if (J && J.rangeCount > 0) {
337
351
  let X = J.getRangeAt(0).startContainer;
@@ -348,22 +362,22 @@ function No(h) {
348
362
  }
349
363
  }
350
364
  }
351
- f.style.display = "none", C.value = "", z = null;
352
- }, M.appendChild(k), M.appendChild(N), d.appendChild(y), d.appendChild(C), d.appendChild(M), f.appendChild(d), document.body.appendChild(f), C.onkeydown = (V) => {
353
- V.key === "Enter" ? N.click() : V.key === "Escape" && k.click();
365
+ f.style.display = "none", C.value = "", A = null;
366
+ }, M.appendChild(k), M.appendChild(z), d.appendChild(y), d.appendChild(C), d.appendChild(M), f.appendChild(d), document.body.appendChild(f), C.onkeydown = (Y) => {
367
+ Y.key === "Enter" ? z.click() : Y.key === "Escape" && k.click();
354
368
  };
355
- const _ = document.createElement("button"), ae = ye(ao, { width: 16, height: 16 });
356
- _.appendChild(ae), _.title = "Insert Hyperlink", _.style.border = "1px solid #e1e1e1", _.style.backgroundColor = "#ffffff", _.style.padding = "6px 10px", _.style.borderRadius = "3px", _.style.cursor = "pointer", _.style.color = "#000000", _.onmouseover = () => _.style.backgroundColor = "#f0f0f0", _.onmouseout = () => _.style.backgroundColor = "#ffffff", _.onmousedown = () => {
357
- z = null;
358
- const V = window.getSelection();
359
- if (V && V.rangeCount > 0) {
360
- let X = V.getRangeAt(0).startContainer;
369
+ const _ = document.createElement("button"), ne = ye(ao, { width: 16, height: 16 });
370
+ _.appendChild(ne), _.title = "Insert Hyperlink", _.style.border = "1px solid #e1e1e1", _.style.backgroundColor = "#ffffff", _.style.padding = "6px 10px", _.style.borderRadius = "3px", _.style.cursor = "pointer", _.style.color = "#000000", _.onmouseover = () => _.style.backgroundColor = "#f0f0f0", _.onmouseout = () => _.style.backgroundColor = "#ffffff", _.onmousedown = () => {
371
+ A = null;
372
+ const Y = window.getSelection();
373
+ if (Y && Y.rangeCount > 0) {
374
+ let X = Y.getRangeAt(0).startContainer;
361
375
  for (; X && X.nodeType !== Node.ELEMENT_NODE; )
362
376
  X = X.parentNode;
363
377
  let U = X;
364
378
  for (; U && U !== document.body; ) {
365
379
  if (U.tagName === "A") {
366
- z = U, C.value = z.getAttribute("href") || "";
380
+ A = U, C.value = A.getAttribute("href") || "";
367
381
  break;
368
382
  }
369
383
  U = U.parentElement;
@@ -374,10 +388,10 @@ function No(h) {
374
388
  f.style.display = "flex", C.focus();
375
389
  }, v.appendChild(_);
376
390
  const ee = h.querySelector(".editor");
377
- return ee && ee.addEventListener("click", (V) => {
378
- const J = V.target;
391
+ return ee && ee.addEventListener("click", (Y) => {
392
+ const J = Y.target;
379
393
  if (J.tagName === "A") {
380
- V.preventDefault();
394
+ Y.preventDefault();
381
395
  const X = J.getAttribute("href");
382
396
  X && window.open(X, "_blank");
383
397
  }
@@ -398,18 +412,18 @@ function zo() {
398
412
  k.className = "rte-modal-close", k.innerHTML = "×", k.onclick = () => {
399
413
  d.style.display = "none", K = null;
400
414
  }, C.appendChild(M), C.appendChild(k);
401
- const z = document.createElement("div");
402
- z.className = "rte-modal-form";
403
- const N = document.createElement("label");
404
- N.textContent = "Title", N.className = "rte-label";
415
+ const A = document.createElement("div");
416
+ A.className = "rte-modal-form";
417
+ const z = document.createElement("label");
418
+ z.textContent = "Title", z.className = "rte-label";
405
419
  const _ = document.createElement("input");
406
420
  _.type = "text", _.placeholder = "e.g., Article title or source", _.className = "rte-input";
407
- const ae = document.createElement("label");
408
- ae.textContent = "Source URL", ae.className = "rte-label";
421
+ const ne = document.createElement("label");
422
+ ne.textContent = "Source URL", ne.className = "rte-label";
409
423
  const ee = document.createElement("input");
410
424
  ee.type = "url", ee.placeholder = "https://example.com", ee.className = "rte-input";
411
- const V = document.createElement("div");
412
- V.className = "rte-preview-label", V.textContent = "Preview";
425
+ const Y = document.createElement("div");
426
+ Y.className = "rte-preview-label", Y.textContent = "Preview";
413
427
  const J = document.createElement("div");
414
428
  J.className = "rte-modal-preview";
415
429
  const X = document.createElement("div");
@@ -417,11 +431,11 @@ function zo() {
417
431
  const U = document.createElement("div");
418
432
  U.className = "rte-blockquote-content";
419
433
  const te = document.createElement("div");
420
- te.className = "rte-blockquote-footer", J.appendChild(X), J.appendChild(U), J.appendChild(te), z.appendChild(N), z.appendChild(_), z.appendChild(ae), z.appendChild(ee), z.appendChild(V), z.appendChild(J);
434
+ te.className = "rte-blockquote-footer", J.appendChild(X), J.appendChild(U), J.appendChild(te), A.appendChild(z), A.appendChild(_), A.appendChild(ne), A.appendChild(ee), A.appendChild(Y), A.appendChild(J);
421
435
  const $ = document.createElement("div");
422
436
  $.className = "rte-modal-actions";
423
- const ne = document.createElement("button");
424
- ne.className = "rte-btn-danger", ne.textContent = "Remove", ne.style.display = "none", ne.onclick = () => {
437
+ const re = document.createElement("button");
438
+ re.className = "rte-btn-danger", re.textContent = "Remove", re.style.display = "none", re.onclick = () => {
425
439
  K && (K.remove(), K = null), d.style.display = "none";
426
440
  };
427
441
  const Q = document.createElement("button");
@@ -430,17 +444,17 @@ function zo() {
430
444
  };
431
445
  const se = document.createElement("button");
432
446
  se.className = "rte-btn-primary", se.textContent = "Apply", se.onclick = () => {
433
- const re = _.value.trim();
447
+ const oe = _.value.trim();
434
448
  let L = ee.value.trim();
435
449
  if (L && !/^https?:\/\//i.test(L) && (L = `https://${L}`), K) {
436
450
  const le = K.querySelector(
437
451
  ".rte-blockquote-title"
438
452
  );
439
- if (re)
440
- if (le) le.textContent = re;
453
+ if (oe)
454
+ if (le) le.textContent = oe;
441
455
  else {
442
456
  const q = document.createElement("div");
443
- q.className = "rte-blockquote-title", q.textContent = re, K.insertBefore(q, K.firstChild);
457
+ q.className = "rte-blockquote-title", q.textContent = oe, K.insertBefore(q, K.firstChild);
444
458
  }
445
459
  else le && le.remove();
446
460
  const ce = K.querySelector(
@@ -465,29 +479,29 @@ function zo() {
465
479
  return;
466
480
  }
467
481
  const ce = le.getRangeAt(0), q = ce.extractContents(), W = document.createElement("blockquote");
468
- if (W.className = "rte-blockquote", re) {
482
+ if (W.className = "rte-blockquote", oe) {
469
483
  const G = document.createElement("div");
470
- G.className = "rte-blockquote-title", G.textContent = re, W.appendChild(G);
484
+ G.className = "rte-blockquote-title", G.textContent = oe, W.appendChild(G);
471
485
  }
472
486
  const F = document.createElement("p");
473
487
  if (F.appendChild(q), W.appendChild(F), L) {
474
488
  const G = document.createElement("footer");
475
489
  G.className = "rte-blockquote-footer";
476
- const ie = document.createElement("cite"), de = document.createElement("a");
477
- de.href = L, de.textContent = L, de.target = "_blank", de.rel = "noopener noreferrer", ie.appendChild(de), G.appendChild(ie), W.appendChild(G);
490
+ const ae = document.createElement("cite"), de = document.createElement("a");
491
+ de.href = L, de.textContent = L, de.target = "_blank", de.rel = "noopener noreferrer", ae.appendChild(de), G.appendChild(ae), W.appendChild(G);
478
492
  }
479
493
  ce.insertNode(W), le.removeAllRanges();
480
494
  const Z = document.createRange();
481
495
  Z.setStartAfter(W), Z.collapse(!0), le.addRange(Z), me(Z);
482
496
  }
483
497
  d.style.display = "none", _.value = "", ee.value = "", K = null;
484
- }, $.appendChild(ne), $.appendChild(Q), $.appendChild(se), y.appendChild(C), y.appendChild(z), y.appendChild($), d.appendChild(y), document.body.appendChild(d);
498
+ }, $.appendChild(re), $.appendChild(Q), $.appendChild(se), y.appendChild(C), y.appendChild(A), y.appendChild($), d.appendChild(y), document.body.appendChild(d);
485
499
  let K = null, g = "";
486
500
  return v.onmousedown = () => {
487
501
  K = null, g = "";
488
- const re = window.getSelection();
489
- if (re && re.rangeCount > 0) {
490
- const L = re.getRangeAt(0), le = document.createElement("div");
502
+ const oe = window.getSelection();
503
+ if (oe && oe.rangeCount > 0) {
504
+ const L = oe.getRangeAt(0), le = document.createElement("div");
491
505
  le.appendChild(L.cloneContents()), g = le.innerHTML || L.toString();
492
506
  let ce = L.startContainer;
493
507
  for (; ce && ce.nodeType !== Node.ELEMENT_NODE; )
@@ -501,7 +515,7 @@ function zo() {
501
515
  ), F = K.querySelector(
502
516
  ".rte-blockquote-footer a"
503
517
  );
504
- _.value = W && W.textContent || "", ee.value = F && F.href || "", ne.style.display = "inline-block";
518
+ _.value = W && W.textContent || "", ee.value = F && F.href || "", re.style.display = "inline-block";
505
519
  const Z = K.querySelector("p");
506
520
  U.innerHTML = Z ? Z.innerHTML : K.innerHTML, X.textContent = W && W.textContent || "", te.innerHTML = F ? `<a href="${F.href}">${F.href}</a>` : "";
507
521
  break;
@@ -509,12 +523,12 @@ function zo() {
509
523
  q = q.parentElement;
510
524
  }
511
525
  }
512
- K || (U.innerHTML = g || "<em>Selected text will appear here</em>", X.textContent = "", te.innerHTML = "", ne.style.display = "none"), me();
526
+ K || (U.innerHTML = g || "<em>Selected text will appear here</em>", X.textContent = "", te.innerHTML = "", re.style.display = "none"), me();
513
527
  }, _.oninput = () => X.textContent = _.value, ee.oninput = () => {
514
- const re = ee.value.trim();
515
- if (!re) te.innerHTML = "";
528
+ const oe = ee.value.trim();
529
+ if (!oe) te.innerHTML = "";
516
530
  else {
517
- const L = /^https?:\/\//i.test(re) ? re : `https://${re}`;
531
+ const L = /^https?:\/\//i.test(oe) ? oe : `https://${oe}`;
518
532
  te.innerHTML = `<a href="${L}" target="_blank" rel="noopener noreferrer">${L}</a>`;
519
533
  }
520
534
  }, v.onclick = () => {
@@ -538,20 +552,20 @@ function jo(h) {
538
552
  M.className = "rte-modal-close", M.innerHTML = "&times;", M.onclick = () => f.style.display = "none", y.appendChild(C), y.appendChild(M);
539
553
  const k = document.createElement("div");
540
554
  k.className = "rte-modal-form";
541
- const z = document.createElement("label");
542
- z.className = "rte-label", z.textContent = "Video URL";
543
- const N = document.createElement("input");
544
- N.type = "url", N.className = "rte-input", N.placeholder = "https://... or YouTube URL";
555
+ const A = document.createElement("label");
556
+ A.className = "rte-label", A.textContent = "Video URL";
557
+ const z = document.createElement("input");
558
+ z.type = "url", z.className = "rte-input", z.placeholder = "https://... or YouTube URL";
545
559
  const _ = document.createElement("div");
546
560
  _.className = "rte-preview-label", _.textContent = "Preview";
547
- const ae = document.createElement("div");
548
- ae.className = "rte-modal-preview";
561
+ const ne = document.createElement("div");
562
+ ne.className = "rte-modal-preview";
549
563
  const ee = document.createElement("div");
550
564
  ee.className = "rte-form-left";
551
- const V = document.createElement("div");
552
- V.className = "rte-form-right";
565
+ const Y = document.createElement("div");
566
+ Y.className = "rte-form-right";
553
567
  const J = document.createElement("div");
554
- J.className = "rte-field", J.appendChild(z), J.appendChild(N);
568
+ J.className = "rte-field", J.appendChild(A), J.appendChild(z);
555
569
  const X = document.createElement("div");
556
570
  X.className = "rte-dim-row";
557
571
  const U = document.createElement("div");
@@ -560,39 +574,39 @@ function jo(h) {
560
574
  te.className = "rte-label", te.textContent = "Width (px)";
561
575
  const $ = document.createElement("input");
562
576
  $.type = "text", $.className = "rte-dim-input", $.placeholder = "e.g., 560", U.appendChild(te), U.appendChild($);
563
- const ne = document.createElement("div");
564
- ne.style.display = "flex", ne.style.flexDirection = "column";
577
+ const re = document.createElement("div");
578
+ re.style.display = "flex", re.style.flexDirection = "column";
565
579
  const Q = document.createElement("label");
566
580
  Q.className = "rte-label", Q.textContent = "Height (px)";
567
581
  const se = document.createElement("input");
568
- se.type = "text", se.className = "rte-dim-input", se.placeholder = "e.g., 315", ne.appendChild(Q), ne.appendChild(se), X.appendChild(U), X.appendChild(ne), ee.appendChild(J), ee.appendChild(X), V.appendChild(_), V.appendChild(ae), k.appendChild(ee), k.appendChild(V);
582
+ se.type = "text", se.className = "rte-dim-input", se.placeholder = "e.g., 315", re.appendChild(Q), re.appendChild(se), X.appendChild(U), X.appendChild(re), ee.appendChild(J), ee.appendChild(X), Y.appendChild(_), Y.appendChild(ne), k.appendChild(ee), k.appendChild(Y);
569
583
  const K = document.createElement("div");
570
584
  K.className = "rte-modal-actions";
571
585
  const g = document.createElement("button");
572
586
  g.className = "rte-btn-muted", g.textContent = "Cancel", g.onclick = () => f.style.display = "none";
573
- const re = document.createElement("button");
574
- re.className = "rte-btn-primary", re.textContent = "Insert", K.appendChild(g), K.appendChild(re), d.appendChild(y), d.appendChild(k), d.appendChild(K), f.appendChild(d), document.body.appendChild(f);
587
+ const oe = document.createElement("button");
588
+ oe.className = "rte-btn-primary", oe.textContent = "Insert", K.appendChild(g), K.appendChild(oe), d.appendChild(y), d.appendChild(k), d.appendChild(K), f.appendChild(d), document.body.appendChild(f);
575
589
  const L = document.createElement("button"), le = ye(ko, { width: 16, height: 16 });
576
590
  L.appendChild(le), L.title = "Insert Video", L.style.border = "1px solid #e1e1e1", L.style.backgroundColor = "#ffffff", L.style.padding = "6px 10px", L.style.borderRadius = "3px", L.style.cursor = "pointer", L.style.color = "#000000", L.onmouseover = () => L.style.backgroundColor = "#f0f0f0", L.onmouseout = () => L.style.backgroundColor = "#ffffff", L.onmousedown = () => me(), L.onclick = () => {
577
- ae.innerHTML = "<em>No URL entered</em>", N.value = "", f.style.display = "flex", N.focus();
591
+ ne.innerHTML = "<em>No URL entered</em>", z.value = "", f.style.display = "flex", z.focus();
578
592
  };
579
593
  const ce = () => {
580
- const W = N.value.trim(), F = $ && $.value.trim() || "", Z = se && se.value.trim() || "", G = parseInt(F, 10), ie = parseInt(Z, 10);
594
+ const W = z.value.trim(), F = $ && $.value.trim() || "", Z = se && se.value.trim() || "", G = parseInt(F, 10), ae = parseInt(Z, 10);
581
595
  if (!W) {
582
- ae.innerHTML = "<em>No preview</em>";
596
+ ne.innerHTML = "<em>No preview</em>";
583
597
  return;
584
598
  }
585
599
  const de = W.match(/(?:youtube.com\/watch\?v=|youtu.be\/)([\w-]+)/i);
586
600
  if (de) {
587
- const b = de[1], P = Number.isFinite(G) ? G : 320, A = Number.isFinite(ie) ? ie : 180;
588
- ae.innerHTML = `<iframe width="${P}" height="${A}" src="https://www.youtube.com/embed/${b}" frameborder="0" allowfullscreen></iframe>`;
601
+ const b = de[1], P = Number.isFinite(G) ? G : 320, D = Number.isFinite(ae) ? ae : 180;
602
+ ne.innerHTML = `<iframe width="${P}" height="${D}" src="https://www.youtube.com/embed/${b}" frameborder="0" allowfullscreen></iframe>`;
589
603
  return;
590
604
  }
591
- const pe = Number.isFinite(G) ? `${G}px` : "320px", fe = Number.isFinite(ie) ? `${ie}px` : "auto";
592
- ae.innerHTML = `<video controls style="max-width:100%; width:${pe}; height:${fe};" src="${W}"></video>`;
605
+ const pe = Number.isFinite(G) ? `${G}px` : "320px", fe = Number.isFinite(ae) ? `${ae}px` : "auto";
606
+ ne.innerHTML = `<video controls style="max-width:100%; width:${pe}; height:${fe};" src="${W}"></video>`;
593
607
  };
594
- N.oninput = ce, typeof $ < "u" && ($.oninput = ce), typeof se < "u" && (se.oninput = ce), re.onclick = () => {
595
- const W = N.value.trim(), F = $ && $.value.trim() || "", Z = se && se.value.trim() || "", G = parseInt(F, 10), ie = parseInt(Z, 10);
608
+ z.oninput = ce, typeof $ < "u" && ($.oninput = ce), typeof se < "u" && (se.oninput = ce), oe.onclick = () => {
609
+ const W = z.value.trim(), F = $ && $.value.trim() || "", Z = se && se.value.trim() || "", G = parseInt(F, 10), ae = parseInt(Z, 10);
596
610
  if (!W) {
597
611
  f.style.display = "none";
598
612
  return;
@@ -606,21 +620,21 @@ function jo(h) {
606
620
  const pe = de.getRangeAt(0), fe = W.match(/(?:youtube.com\/watch\?v=|youtu.be\/)([\w-]+)/i);
607
621
  let b;
608
622
  if (fe) {
609
- const A = fe[1], H = document.createElement("div"), xe = Number.isFinite(G) ? G : 560, we = Number.isFinite(ie) ? ie : 315;
610
- H.innerHTML = `<iframe width="${xe}" height="${we}" src="https://www.youtube.com/embed/${A}" frameborder="0" allowfullscreen></iframe>`, H.contentEditable = "false", H.className = "editor-video-wrapper", H.style.display = "block", H.style.maxWidth = "100%", H.style.width = "auto", H.style.height = "auto", H.style.boxSizing = "border-box", H.style.userSelect = "none", b = H;
623
+ const D = fe[1], H = document.createElement("div"), xe = Number.isFinite(G) ? G : 560, we = Number.isFinite(ae) ? ae : 315;
624
+ H.innerHTML = `<iframe width="${xe}" height="${we}" src="https://www.youtube.com/embed/${D}" frameborder="0" allowfullscreen></iframe>`, H.contentEditable = "false", H.className = "editor-video-wrapper", H.style.display = "block", H.style.maxWidth = "100%", H.style.width = "auto", H.style.height = "auto", H.style.boxSizing = "border-box", H.style.userSelect = "none", b = H;
611
625
  } else {
612
- const A = document.createElement("div"), H = document.createElement("video");
613
- H.controls = !0, H.src = W, Number.isFinite(G) && (H.width = G), Number.isFinite(ie) && (H.height = ie), H.style.maxWidth = "100%", H.style.display = "block", A.appendChild(H), A.contentEditable = "false", A.className = "editor-video-wrapper", A.style.display = "block", A.style.maxWidth = "100%", A.style.width = "auto", A.style.height = "auto", A.style.boxSizing = "border-box", A.style.userSelect = "none", b = A;
626
+ const D = document.createElement("div"), H = document.createElement("video");
627
+ H.controls = !0, H.src = W, Number.isFinite(G) && (H.width = G), Number.isFinite(ae) && (H.height = ae), H.style.maxWidth = "100%", H.style.display = "block", D.appendChild(H), D.contentEditable = "false", D.className = "editor-video-wrapper", D.style.display = "block", D.style.maxWidth = "100%", D.style.width = "auto", D.style.height = "auto", D.style.boxSizing = "border-box", D.style.userSelect = "none", b = D;
614
628
  }
615
629
  pe.insertNode(b), de.removeAllRanges();
616
630
  const P = document.createRange();
617
631
  P.setStartAfter(b), P.collapse(!0), de.addRange(P), me(P);
618
632
  try {
619
- const A = q;
620
- A && typeof A.focus == "function" && (A.focus(), A.dispatchEvent(new Event("input", { bubbles: !0 })));
633
+ const D = q;
634
+ D && typeof D.focus == "function" && (D.focus(), D.dispatchEvent(new Event("input", { bubbles: !0 })));
621
635
  } catch {
622
636
  }
623
- f.style.display = "none", N.value = "", ae.innerHTML = "";
637
+ f.style.display = "none", z.value = "", ne.innerHTML = "";
624
638
  };
625
639
  const q = h.querySelector(".editor");
626
640
  return q && q.addEventListener("click", (W) => {
@@ -657,14 +671,14 @@ function Fo(h) {
657
671
  for (; $ && $.nodeType !== Node.ELEMENT_NODE; )
658
672
  $ = $.parentNode;
659
673
  if (!$) return;
660
- let ne = $;
661
- for (; ne && ne !== document.body && ne !== v.parentElement; ) {
662
- const Q = ne.tagName?.toUpperCase?.();
674
+ let re = $;
675
+ for (; re && re !== document.body && re !== v.parentElement; ) {
676
+ const Q = re.tagName?.toUpperCase?.();
663
677
  if (Q === "H1" || Q === "H2" || Q === "H3" || Q === "H4" || Q === "P") {
664
678
  d.value = Q === "P" ? "p" : Q.toLowerCase();
665
679
  return;
666
680
  }
667
- ne = ne.parentElement;
681
+ re = re.parentElement;
668
682
  }
669
683
  d.value = "p";
670
684
  } catch {
@@ -686,18 +700,18 @@ function Fo(h) {
686
700
  v.appendChild(M);
687
701
  const k = Ro();
688
702
  v.appendChild(k);
689
- const z = Oo();
703
+ const A = Oo();
704
+ v.appendChild(A);
705
+ const z = Po();
690
706
  v.appendChild(z);
691
- const N = Po();
692
- v.appendChild(N);
693
707
  const _ = Io();
694
708
  v.appendChild(_);
695
- const ae = Ao();
696
- v.appendChild(ae);
709
+ const ne = Ao();
710
+ v.appendChild(ne);
697
711
  const ee = No(h);
698
712
  v.appendChild(ee);
699
- const V = zo();
700
- v.appendChild(V);
713
+ const Y = zo();
714
+ v.appendChild(Y);
701
715
  const J = Lo();
702
716
  v.appendChild(J);
703
717
  const X = jo(h);
@@ -717,11 +731,11 @@ function Ho(h, v) {
717
731
  const M = y[C];
718
732
  if (M.type.startsWith("image/")) {
719
733
  const k = new FileReader();
720
- k.onload = (z) => {
721
- const N = document.createElement("img");
722
- N.src = z.target?.result, N.style.maxWidth = "100%", N.style.width = "100%", N.style.height = "auto", N.style.cursor = "pointer", N.draggable = !1;
734
+ k.onload = (A) => {
735
+ const z = document.createElement("img");
736
+ z.src = A.target?.result, z.style.maxWidth = "100%", z.style.width = "100%", z.style.height = "auto", z.style.cursor = "pointer", z.draggable = !1;
723
737
  const _ = document.createElement("div");
724
- _.className = "editor-image-wrapper", _.style.display = "inline-block", _.style.position = "relative", _.style.maxWidth = "100%", _.style.width = "auto", _.style.height = "auto", _.contentEditable = "false", _.style.userSelect = "none", _.style.boxSizing = "border-box", _.style.touchAction = "none", _.appendChild(N), f.appendChild(_);
738
+ _.className = "editor-image-wrapper", _.style.display = "inline-block", _.style.position = "relative", _.style.maxWidth = "100%", _.style.width = "auto", _.style.height = "auto", _.contentEditable = "false", _.style.userSelect = "none", _.style.boxSizing = "border-box", _.style.touchAction = "none", _.appendChild(z), f.appendChild(_);
725
739
  }, k.readAsDataURL(M);
726
740
  }
727
741
  }
@@ -746,7 +760,7 @@ function Bo(h) {
746
760
  return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
747
761
  }
748
762
  var Ke = { exports: {} }, qo = Ke.exports, Pn;
749
- function Yo() {
763
+ function Vo() {
750
764
  return Pn || (Pn = 1, (function(h, v) {
751
765
  (function(f, d) {
752
766
  h.exports = d();
@@ -765,7 +779,7 @@ function Yo() {
765
779
  for (var e = 1; e < arguments.length; e++) {
766
780
  var n = arguments[e] != null ? arguments[e] : {};
767
781
  e % 2 ? f(Object(n), !0).forEach((function(r) {
768
- z(t, r, n[r]);
782
+ A(t, r, n[r]);
769
783
  })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : f(Object(n)).forEach((function(r) {
770
784
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
771
785
  }));
@@ -791,28 +805,28 @@ function Yo() {
791
805
  function k(t, e, n) {
792
806
  return e && M(t.prototype, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
793
807
  }
794
- function z(t, e, n) {
808
+ function A(t, e, n) {
795
809
  return (e = X(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
796
810
  }
797
- function N(t, e) {
811
+ function z(t, e) {
798
812
  if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function");
799
- t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && ae(t, e);
813
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && ne(t, e);
800
814
  }
801
815
  function _(t) {
802
816
  return _ = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
803
817
  return e.__proto__ || Object.getPrototypeOf(e);
804
818
  }, _(t);
805
819
  }
806
- function ae(t, e) {
807
- return ae = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
820
+ function ne(t, e) {
821
+ return ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, r) {
808
822
  return n.__proto__ = r, n;
809
- }, ae(t, e);
823
+ }, ne(t, e);
810
824
  }
811
825
  function ee(t) {
812
826
  if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
813
827
  return t;
814
828
  }
815
- function V(t) {
829
+ function Y(t) {
816
830
  var e = (function() {
817
831
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
818
832
  if (typeof Proxy == "function") return !0;
@@ -864,7 +878,7 @@ function Yo() {
864
878
  var U = function(t) {
865
879
  return !(!t || !t.Window) && t instanceof t.Window;
866
880
  }, te = void 0, $ = void 0;
867
- function ne(t) {
881
+ function re(t) {
868
882
  te = t;
869
883
  var e = t.document.createTextNode("");
870
884
  e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), $ = t;
@@ -872,7 +886,7 @@ function Yo() {
872
886
  function Q(t) {
873
887
  return U(t) ? t : (t.ownerDocument || t).defaultView || $.window;
874
888
  }
875
- typeof window < "u" && window && ne(window);
889
+ typeof window < "u" && window && re(window);
876
890
  var se = function(t) {
877
891
  return !!t && y(t) === "object";
878
892
  }, K = function(t) {
@@ -896,7 +910,7 @@ function Yo() {
896
910
  }, array: function(t) {
897
911
  return se(t) && t.length !== void 0 && K(t.splice);
898
912
  } };
899
- function re(t) {
913
+ function oe(t) {
900
914
  var e = t.interaction;
901
915
  if (e.prepared.name === "drag") {
902
916
  var n = e.prepared.axis;
@@ -916,12 +930,12 @@ function Yo() {
916
930
  var le = { id: "actions/drag", install: function(t) {
917
931
  var e = t.actions, n = t.Interactable, r = t.defaults;
918
932
  n.prototype.draggable = le.draggable, e.map.drag = le, e.methodDict.drag = "draggable", r.actions.drag = le.defaults;
919
- }, listeners: { "interactions:before-action-move": re, "interactions:action-resume": re, "interactions:action-move": L, "auto-start:check": function(t) {
933
+ }, listeners: { "interactions:before-action-move": oe, "interactions:action-resume": oe, "interactions:action-move": L, "auto-start:check": function(t) {
920
934
  var e = t.interaction, n = t.interactable, r = t.buttons, o = n.options.drag;
921
935
  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;
922
936
  } }, draggable: function(t) {
923
937
  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;
924
- }, beforeMove: re, move: L, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
938
+ }, beforeMove: oe, move: L, defaults: { startAxis: "xy", lockAxis: "xy" }, getCursor: function() {
925
939
  return "move";
926
940
  }, filterEventType: function(t) {
927
941
  return t.search("drag") === 0;
@@ -935,7 +949,7 @@ function Yo() {
935
949
  var e = F.Element, n = t.navigator || {};
936
950
  Z.supportsTouch = "ontouchstart" in t || g.func(t.DocumentTouch) && F.document instanceof t.DocumentTouch, Z.supportsPointerEvent = n.pointerEnabled !== !1 && !!F.PointerEvent, Z.isIOS = /iP(hone|od|ad)/.test(n.platform), Z.isIOS7 = /iP(hone|od|ad)/.test(n.platform) && /OS 7[^\d]/.test(n.appVersion), Z.isIe9 = /MSIE 9/.test(n.userAgent), Z.isOperaMobile = n.appName === "Opera" && Z.supportsTouch && /Presto/.test(n.userAgent), Z.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", Z.pEventTypes = Z.supportsPointerEvent ? F.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, Z.wheelEvent = F.document && "onmousewheel" in F.document ? "mousewheel" : "wheel";
937
951
  }, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, G = Z;
938
- function ie(t, e) {
952
+ function ae(t, e) {
939
953
  if (t.contains) return t.contains(e);
940
954
  for (; e; ) {
941
955
  if (e === t) return !0;
@@ -968,7 +982,7 @@ function Yo() {
968
982
  for (var n, r = [], o = t; (n = b(o)) && o !== e && n !== o.ownerDocument; ) r.unshift(o), o = n;
969
983
  return r;
970
984
  }
971
- function A(t, e, n) {
985
+ function D(t, e, n) {
972
986
  for (; g.element(t); ) {
973
987
  if (fe(t, e)) return !0;
974
988
  if ((t = pe(t)) === n) return fe(t, e);
@@ -1079,7 +1093,7 @@ function Yo() {
1079
1093
  return g.number(t.pointerId) ? t.pointerId : t.identifier;
1080
1094
  }
1081
1095
  function Fn(t, e, n) {
1082
- var r = e.length > 1 ? Yt(e) : e[0];
1096
+ var r = e.length > 1 ? Vt(e) : e[0];
1083
1097
  qt(r, t.page), (function(o, i) {
1084
1098
  i = i || {}, G.isOperaMobile && Bt(o) ? rt("screen", o, i) : rt("client", o, i);
1085
1099
  })(r, t.client), t.timeStamp = n;
@@ -1088,7 +1102,7 @@ function Yo() {
1088
1102
  var e = [];
1089
1103
  return g.array(t) ? (e[0] = t[0], e[1] = t[1]) : t.type === "touchend" ? t.touches.length === 1 ? (e[0] = t.touches[0], e[1] = t.changedTouches[0]) : t.touches.length === 0 && (e[0] = t.changedTouches[0], e[1] = t.changedTouches[1]) : (e[0] = t.touches[0], e[1] = t.touches[1]), e;
1090
1104
  }
1091
- function Yt(t) {
1105
+ function Vt(t) {
1092
1106
  for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, n = 0; n < t.length; n++) {
1093
1107
  var r = t[n];
1094
1108
  for (var o in e) e[o] += r[o];
@@ -1109,7 +1123,7 @@ function Yo() {
1109
1123
  var n = e + "X", r = e + "Y", o = mt(t), i = o[1][n] - o[0][n], a = o[1][r] - o[0][r];
1110
1124
  return 180 * Math.atan2(a, i) / Math.PI;
1111
1125
  }
1112
- function Vt(t) {
1126
+ function Yt(t) {
1113
1127
  return g.string(t.pointerType) ? t.pointerType : g.number(t.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][t.pointerType] : /touch/.test(t.type || "") || t instanceof F.Touch ? "touch" : "mouse";
1114
1128
  }
1115
1129
  function $t(t) {
@@ -1145,8 +1159,8 @@ function Yo() {
1145
1159
  }, Be = function(t, e) {
1146
1160
  return t[He(t, e)];
1147
1161
  }, Ae = (function(t) {
1148
- N(n, t);
1149
- var e = V(n);
1162
+ z(n, t);
1163
+ var e = Y(n);
1150
1164
  function n(r, o, i) {
1151
1165
  var a;
1152
1166
  C(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;
@@ -1202,30 +1216,30 @@ function Yo() {
1202
1216
  a.push(w ? p : null);
1203
1217
  }
1204
1218
  var x = (function(E) {
1205
- for (var S, T, O, j = [], Y = 0; Y < E.length; Y++) {
1206
- var I = E[Y], B = E[S];
1207
- if (I && Y !== S) if (B) {
1208
- var ve = b(I), oe = b(B);
1209
- if (ve !== I.ownerDocument) if (oe !== I.ownerDocument) if (ve !== oe) {
1219
+ for (var S, T, O, j = [], V = 0; V < E.length; V++) {
1220
+ var I = E[V], B = E[S];
1221
+ if (I && V !== S) if (B) {
1222
+ var ve = b(I), ie = b(B);
1223
+ if (ve !== I.ownerDocument) if (ie !== I.ownerDocument) if (ve !== ie) {
1210
1224
  j = j.length ? j : P(B);
1211
1225
  var ge = void 0;
1212
1226
  if (B instanceof F.HTMLElement && I instanceof F.SVGElement && !(I instanceof F.SVGSVGElement)) {
1213
- if (I === oe) continue;
1227
+ if (I === ie) continue;
1214
1228
  ge = I.ownerSVGElement;
1215
1229
  } else ge = I;
1216
1230
  for (var be = P(ge, B.ownerDocument), Te = 0; be[Te] && be[Te] === j[Te]; ) Te++;
1217
1231
  var ft = [be[Te - 1], be[Te], j[Te]];
1218
1232
  if (ft[0]) for (var Ue = ft[0].lastChild; Ue; ) {
1219
1233
  if (Ue === ft[1]) {
1220
- S = Y, j = be;
1234
+ S = V, j = be;
1221
1235
  break;
1222
1236
  }
1223
1237
  if (Ue === ft[2]) break;
1224
1238
  Ue = Ue.previousSibling;
1225
1239
  }
1226
- } else O = B, (parseInt(Q(T = I).getComputedStyle(T).zIndex, 10) || 0) >= (parseInt(Q(O).getComputedStyle(O).zIndex, 10) || 0) && (S = Y);
1227
- else S = Y;
1228
- } else S = Y;
1240
+ } else O = B, (parseInt(Q(T = I).getComputedStyle(T).zIndex, 10) || 0) >= (parseInt(Q(O).getComputedStyle(O).zIndex, 10) || 0) && (S = V);
1241
+ else S = V;
1242
+ } else S = V;
1229
1243
  }
1230
1244
  return S;
1231
1245
  })(a);
@@ -1269,17 +1283,17 @@ function Yo() {
1269
1283
  if (!(T = T || p.getRect(S))) return !!p.options.drop.checker && p.options.drop.checker(m, w, O, p, S, x, E);
1270
1284
  var j = p.options.drop.overlap;
1271
1285
  if (j === "pointer") {
1272
- var Y = Le(x, E, "drag"), I = qt(m);
1273
- I.x += Y.x, I.y += Y.y;
1286
+ var V = Le(x, E, "drag"), I = qt(m);
1287
+ I.x += V.x, I.y += V.y;
1274
1288
  var B = I.x > T.left && I.x < T.right, ve = I.y > T.top && I.y < T.bottom;
1275
1289
  O = B && ve;
1276
1290
  }
1277
- var oe = x.getRect(E);
1278
- if (oe && j === "center") {
1279
- var ge = oe.left + oe.width / 2, be = oe.top + oe.height / 2;
1291
+ var ie = x.getRect(E);
1292
+ if (ie && j === "center") {
1293
+ var ge = ie.left + ie.width / 2, be = ie.top + ie.height / 2;
1280
1294
  O = ge >= T.left && ge <= T.right && be >= T.top && be <= T.bottom;
1281
1295
  }
1282
- return oe && g.number(j) && (O = Math.max(0, Math.min(T.right, oe.right) - Math.max(T.left, oe.left)) * Math.max(0, Math.min(T.bottom, oe.bottom) - Math.max(T.top, oe.top)) / (oe.width * oe.height) >= j), p.options.drop.checker && (O = p.options.drop.checker(m, w, O, p, S, x, E)), O;
1296
+ return ie && g.number(j) && (O = Math.max(0, Math.min(T.right, ie.right) - Math.max(T.left, ie.left)) * Math.max(0, Math.min(T.bottom, ie.bottom) - Math.max(T.top, ie.top)) / (ie.width * ie.height) >= j), p.options.drop.checker && (O = p.options.drop.checker(m, w, O, p, S, x, E)), O;
1283
1297
  })(this, i, a, s, l, u, c);
1284
1298
  }, n.dynamicDrop = function(i) {
1285
1299
  return g.bool(i) ? (t.dynamicDrop = i, n) : t.dynamicDrop;
@@ -1359,7 +1373,7 @@ function Yo() {
1359
1373
  if (t === "right") return n.x > (s >= 0 ? i.right : i.left) - a;
1360
1374
  if (t === "bottom") return n.y > (l >= 0 ? i.bottom : i.top) - a;
1361
1375
  }
1362
- return !!g.element(r) && (g.element(e) ? e === r : A(r, e, o));
1376
+ return !!g.element(r) && (g.element(e) ? e === r : D(r, e, o));
1363
1377
  }
1364
1378
  function Qt(t) {
1365
1379
  var e = t.iEvent, n = t.interaction;
@@ -1443,8 +1457,8 @@ function Yo() {
1443
1457
  return i;
1444
1458
  }, filterEventType: function(t) {
1445
1459
  return t.search("resize") === 0;
1446
- }, defaultMargin: null }, Yn = ke, Vn = { id: "actions", install: function(t) {
1447
- t.usePlugin(Bn), t.usePlugin(Yn), t.usePlugin(ce), t.usePlugin(Hn);
1460
+ }, defaultMargin: null }, Vn = ke, Yn = { id: "actions", install: function(t) {
1461
+ t.usePlugin(Bn), t.usePlugin(Vn), t.usePlugin(ce), t.usePlugin(Hn);
1448
1462
  } }, Zt = 0, Se = { request: function(t) {
1449
1463
  return Ce(t);
1450
1464
  }, cancel: function(t) {
@@ -1462,37 +1476,37 @@ function Yo() {
1462
1476
  }, Pe = function(o) {
1463
1477
  return clearTimeout(o);
1464
1478
  });
1465
- } }, D = { defaults: { enabled: !1, margin: 60, container: null, speed: 300 }, now: Date.now, interaction: null, i: 0, x: 0, y: 0, isScrolling: !1, prevTime: 0, margin: 0, speed: 0, start: function(t) {
1466
- D.isScrolling = !0, Se.cancel(D.i), t.autoScroll = D, D.interaction = t, D.prevTime = D.now(), D.i = Se.request(D.scroll);
1479
+ } }, N = { defaults: { enabled: !1, margin: 60, container: null, speed: 300 }, now: Date.now, interaction: null, i: 0, x: 0, y: 0, isScrolling: !1, prevTime: 0, margin: 0, speed: 0, start: function(t) {
1480
+ N.isScrolling = !0, Se.cancel(N.i), t.autoScroll = N, N.interaction = t, N.prevTime = N.now(), N.i = Se.request(N.scroll);
1467
1481
  }, stop: function() {
1468
- D.isScrolling = !1, D.interaction && (D.interaction.autoScroll = null), Se.cancel(D.i);
1482
+ N.isScrolling = !1, N.interaction && (N.interaction.autoScroll = null), Se.cancel(N.i);
1469
1483
  }, scroll: function() {
1470
- var t = D.interaction, e = t.interactable, n = t.element, r = t.prepared.name, o = e.options[r].autoScroll, i = en(o.container, e, n), a = D.now(), s = (a - D.prevTime) / 1e3, l = o.speed * s;
1484
+ var t = N.interaction, e = t.interactable, n = t.element, r = t.prepared.name, o = e.options[r].autoScroll, i = en(o.container, e, n), a = N.now(), s = (a - N.prevTime) / 1e3, l = o.speed * s;
1471
1485
  if (l >= 1) {
1472
- var u = { x: D.x * l, y: D.y * l };
1486
+ var u = { x: N.x * l, y: N.y * l };
1473
1487
  if (u.x || u.y) {
1474
1488
  var c = tn(i);
1475
1489
  g.window(i) ? i.scrollBy(u.x, u.y) : i && (i.scrollLeft += u.x, i.scrollTop += u.y);
1476
1490
  var p = tn(i), m = { x: p.x - c.x, y: p.y - c.y };
1477
1491
  (m.x || m.y) && e.fire({ type: "autoscroll", target: n, interactable: e, delta: m, interaction: t, container: i });
1478
1492
  }
1479
- D.prevTime = a;
1493
+ N.prevTime = a;
1480
1494
  }
1481
- D.isScrolling && (Se.cancel(D.i), D.i = Se.request(D.scroll));
1495
+ N.isScrolling && (Se.cancel(N.i), N.i = Se.request(N.scroll));
1482
1496
  }, check: function(t, e) {
1483
1497
  var n;
1484
1498
  return (n = t.options[e].autoScroll) == null ? void 0 : n.enabled;
1485
1499
  }, onInteractionMove: function(t) {
1486
1500
  var e = t.interaction, n = t.pointer;
1487
- if (e.interacting() && D.check(e.interactable, e.prepared.name)) if (e.simulation) D.x = D.y = 0;
1501
+ if (e.interacting() && N.check(e.interactable, e.prepared.name)) if (e.simulation) N.x = N.y = 0;
1488
1502
  else {
1489
1503
  var r, o, i, a, s = e.interactable, l = e.element, u = e.prepared.name, c = s.options[u].autoScroll, p = en(c.container, s, l);
1490
- if (g.window(p)) a = n.clientX < D.margin, r = n.clientY < D.margin, o = n.clientX > p.innerWidth - D.margin, i = n.clientY > p.innerHeight - D.margin;
1504
+ if (g.window(p)) a = n.clientX < N.margin, r = n.clientY < N.margin, o = n.clientX > p.innerWidth - N.margin, i = n.clientY > p.innerHeight - N.margin;
1491
1505
  else {
1492
1506
  var m = xe(p);
1493
- a = n.clientX < m.left + D.margin, r = n.clientY < m.top + D.margin, o = n.clientX > m.right - D.margin, i = n.clientY > m.bottom - D.margin;
1507
+ a = n.clientX < m.left + N.margin, r = n.clientY < m.top + N.margin, o = n.clientX > m.right - N.margin, i = n.clientY > m.bottom - N.margin;
1494
1508
  }
1495
- D.x = o ? 1 : a ? -1 : 0, D.y = i ? 1 : r ? -1 : 0, D.isScrolling || (D.margin = c.margin, D.speed = c.speed, D.start(e));
1509
+ N.x = o ? 1 : a ? -1 : 0, N.y = i ? 1 : r ? -1 : 0, N.isScrolling || (N.margin = c.margin, N.speed = c.speed, N.start(e));
1496
1510
  }
1497
1511
  } };
1498
1512
  function en(t, e, n) {
@@ -1503,15 +1517,15 @@ function Yo() {
1503
1517
  }
1504
1518
  var $n = { id: "auto-scroll", install: function(t) {
1505
1519
  var e = t.defaults, n = t.actions;
1506
- t.autoScroll = D, D.now = function() {
1520
+ t.autoScroll = N, N.now = function() {
1507
1521
  return t.now();
1508
- }, n.phaselessTypes.autoscroll = !0, e.perAction.autoScroll = D.defaults;
1522
+ }, n.phaselessTypes.autoscroll = !0, e.perAction.autoScroll = N.defaults;
1509
1523
  }, listeners: { "interactions:new": function(t) {
1510
1524
  t.interaction.autoScroll = null;
1511
1525
  }, "interactions:destroy": function(t) {
1512
- t.interaction.autoScroll = null, D.stop(), D.interaction && (D.interaction = null);
1513
- }, "interactions:stop": D.stop, "interactions:action-move": function(t) {
1514
- return D.onInteractionMove(t);
1526
+ t.interaction.autoScroll = null, N.stop(), N.interaction && (N.interaction = null);
1527
+ }, "interactions:stop": N.stop, "interactions:action-move": function(t) {
1528
+ return N.onInteractionMove(t);
1515
1529
  } } }, Wn = $n;
1516
1530
  function qe(t, e) {
1517
1531
  var n = !1;
@@ -1699,7 +1713,7 @@ function Yo() {
1699
1713
  }, t.interactions.docEvents.push({ type: "dragstart", listener: function(n) {
1700
1714
  for (var r = 0, o = t.interactions.list; r < o.length; r++) {
1701
1715
  var i = o[r];
1702
- if (i.element && (i.element === n.target || ie(i.element, n.target))) return void i.interactable.checkAndPreventDefault(n);
1716
+ if (i.element && (i.element === n.target || ae(i.element, n.target))) return void i.interactable.checkAndPreventDefault(n);
1703
1717
  }
1704
1718
  } });
1705
1719
  }, listeners: ["down", "move", "up", "cancel"].reduce((function(t, e) {
@@ -1839,7 +1853,7 @@ function Yo() {
1839
1853
  };
1840
1854
  return e && typeof e == "string" && (o._defaults = n, o._methods = r), o;
1841
1855
  }
1842
- function Ye(t) {
1856
+ function Ve(t) {
1843
1857
  var e = t.iEvent, n = t.interaction.modification.result;
1844
1858
  n && (e.modifiers = n.eventProps);
1845
1859
  }
@@ -1857,15 +1871,15 @@ function Yo() {
1857
1871
  }, "interactions:before-action-end": function(t) {
1858
1872
  var e = t.interaction, n = e.modification, r = n.beforeEnd(t);
1859
1873
  return e.edges = n.startEdges, r;
1860
- }, "interactions:action-start": Ye, "interactions:action-move": Ye, "interactions:action-end": Ye, "interactions:after-action-start": function(t) {
1874
+ }, "interactions:action-start": Ve, "interactions:action-move": Ve, "interactions:action-end": Ve, "interactions:after-action-start": function(t) {
1861
1875
  return t.interaction.modification.restoreInteractionCoords(t);
1862
1876
  }, "interactions:after-action-move": function(t) {
1863
1877
  return t.interaction.modification.restoreInteractionCoords(t);
1864
1878
  }, "interactions:stop": function(t) {
1865
1879
  return t.interaction.modification.stop(t);
1866
1880
  } } }, cn = or, un = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Ot = (function(t) {
1867
- N(n, t);
1868
- var e = V(n);
1881
+ z(n, t);
1882
+ var e = Y(n);
1869
1883
  function n(r, o, i, a, s, l, u) {
1870
1884
  var c;
1871
1885
  C(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;
@@ -2135,7 +2149,7 @@ function Yo() {
2135
2149
  e.stop(t), e.start(t, t.interaction.coords.cur.page), e.applyToInteraction(t);
2136
2150
  }, "interactions:before-action-inertiastart": function(t) {
2137
2151
  return t.interaction.modification.setAndApply(t);
2138
- }, "interactions:action-resume": Ye, "interactions:action-inertiastart": Ye, "interactions:after-action-inertiastart": function(t) {
2152
+ }, "interactions:action-resume": Ve, "interactions:action-inertiastart": Ve, "interactions:after-action-inertiastart": function(t) {
2139
2153
  return t.interaction.modification.restoreInteractionCoords(t);
2140
2154
  }, "interactions:after-action-resume": function(t) {
2141
2155
  return t.interaction.modification.restoreInteractionCoords(t);
@@ -2189,7 +2203,7 @@ function Yo() {
2189
2203
  this.originalEvent.stopImmediatePropagation();
2190
2204
  } }]), t;
2191
2205
  })();
2192
- function Ve(t) {
2206
+ function Ye(t) {
2193
2207
  return g.object(t) ? { capture: !!t.capture, passive: !!t.passive } : { capture: !!t, passive: !1 };
2194
2208
  }
2195
2209
  function ct(t, e) {
@@ -2197,7 +2211,7 @@ function Yo() {
2197
2211
  }
2198
2212
  var vr = { id: "events", install: function(t) {
2199
2213
  var e, n = [], r = {}, o = [], i = { add: a, remove: s, addDelegate: function(c, p, m, w, x) {
2200
- var E = Ve(x);
2214
+ var E = Ye(x);
2201
2215
  if (!r[m]) {
2202
2216
  r[m] = [];
2203
2217
  for (var S = 0; S < o.length; S++) {
@@ -2205,20 +2219,20 @@ function Yo() {
2205
2219
  a(T, m, l), a(T, m, u, !0);
2206
2220
  }
2207
2221
  }
2208
- var O = r[m], j = Be(O, (function(Y) {
2209
- return Y.selector === c && Y.context === p;
2222
+ var O = r[m], j = Be(O, (function(V) {
2223
+ return V.selector === c && V.context === p;
2210
2224
  }));
2211
2225
  j || (j = { selector: c, context: p, listeners: [] }, O.push(j)), j.listeners.push({ func: w, options: E });
2212
2226
  }, removeDelegate: function(c, p, m, w, x) {
2213
- var E, S = Ve(x), T = r[m], O = !1;
2227
+ var E, S = Ye(x), T = r[m], O = !1;
2214
2228
  if (T)
2215
2229
  for (E = T.length - 1; E >= 0; E--) {
2216
2230
  var j = T[E];
2217
2231
  if (j.selector === c && j.context === p) {
2218
- for (var Y = j.listeners, I = Y.length - 1; I >= 0; I--) {
2219
- var B = Y[I];
2232
+ for (var V = j.listeners, I = V.length - 1; I >= 0; I--) {
2233
+ var B = V[I];
2220
2234
  if (B.func === w && ct(B.options, S)) {
2221
- Y.splice(I, 1), Y.length || (T.splice(E, 1), s(p, m, l), s(p, m, u, !0)), O = !0;
2235
+ V.splice(I, 1), V.length || (T.splice(E, 1), s(p, m, l), s(p, m, u, !0)), O = !0;
2222
2236
  break;
2223
2237
  }
2224
2238
  }
@@ -2228,7 +2242,7 @@ function Yo() {
2228
2242
  }, delegateListener: l, delegateUseCapture: u, delegatedEvents: r, documents: o, targets: n, supportsOptions: !1, supportsPassive: !1 };
2229
2243
  function a(c, p, m, w) {
2230
2244
  if (c.addEventListener) {
2231
- var x = Ve(w), E = Be(n, (function(S) {
2245
+ var x = Ye(w), E = Be(n, (function(S) {
2232
2246
  return S.eventTarget === c;
2233
2247
  }));
2234
2248
  E || (E = { eventTarget: c, events: {} }, n.push(E)), E.events[p] || (E.events[p] = []), Be(E.events[p], (function(S) {
@@ -2251,10 +2265,10 @@ function Yo() {
2251
2265
  }
2252
2266
  return;
2253
2267
  }
2254
- for (var Y = Ve(w), I = 0; I < T.length; I++) {
2268
+ for (var V = Ye(w), I = 0; I < T.length; I++) {
2255
2269
  var B = T[I];
2256
- if (B.func === m && ct(B.options, Y)) {
2257
- c.removeEventListener(p, m, i.supportsOptions ? Y : Y.capture), T.splice(I, 1), T.length === 0 && (delete E.events[p], S = !0);
2270
+ if (B.func === m && ct(B.options, V)) {
2271
+ c.removeEventListener(p, m, i.supportsOptions ? V : V.capture), T.splice(I, 1), T.length === 0 && (delete E.events[p], S = !0);
2258
2272
  break;
2259
2273
  }
2260
2274
  }
@@ -2264,10 +2278,10 @@ function Yo() {
2264
2278
  }
2265
2279
  }
2266
2280
  function l(c, p) {
2267
- for (var m = Ve(p), w = new hr(c), x = r[c.type], E = $t(c)[0], S = E; g.element(S); ) {
2281
+ for (var m = Ye(p), w = new hr(c), x = r[c.type], E = $t(c)[0], S = E; g.element(S); ) {
2268
2282
  for (var T = 0; T < x.length; T++) {
2269
- var O = x[T], j = O.selector, Y = O.context;
2270
- if (fe(S, j) && ie(Y, E) && ie(Y, S)) {
2283
+ var O = x[T], j = O.selector, V = O.context;
2284
+ if (fe(S, j) && ae(V, E) && ae(V, S)) {
2271
2285
  var I = O.listeners;
2272
2286
  w.currentTarget = S;
2273
2287
  for (var B = 0; B < I.length; B++) {
@@ -2346,7 +2360,7 @@ function Yo() {
2346
2360
  var mr = It, At = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
2347
2361
  function xn(t, e) {
2348
2362
  return function(n) {
2349
- var r = e.interactions.list, o = Vt(n), i = $t(n), a = i[0], s = i[1], l = [];
2363
+ var r = e.interactions.list, o = Yt(n), i = $t(n), a = i[0], s = i[1], l = [];
2350
2364
  if (/^touch/.test(n.type)) {
2351
2365
  e.prevTouchTime = e.now();
2352
2366
  for (var u = 0, c = n.changedTouches; u < c.length; u++) {
@@ -2365,8 +2379,8 @@ function Yo() {
2365
2379
  }
2366
2380
  }
2367
2381
  for (var O = 0; O < l.length; O++) {
2368
- var j = l[O], Y = j[0], I = j[1], B = j[2];
2369
- j[3][t](Y, n, I, B);
2382
+ var j = l[O], V = j[0], I = j[1], B = j[2];
2383
+ j[3][t](V, n, I, B);
2370
2384
  }
2371
2385
  };
2372
2386
  }
@@ -2394,7 +2408,7 @@ function Yo() {
2394
2408
  if (u.pointerIsDown && u.pointerType === "touch" && !u._interacting) for (var c = function() {
2395
2409
  var w = m[p];
2396
2410
  t.documents.some((function(x) {
2397
- return ie(x.doc, w.downTarget);
2411
+ return ae(x.doc, w.downTarget);
2398
2412
  })) || u.removePointer(w.pointer, w.event);
2399
2413
  }, p = 0, m = u.pointers; p < m.length; p++) c();
2400
2414
  }
@@ -2403,8 +2417,8 @@ function Yo() {
2403
2417
  for (var l = 0, u = t.interactions.list; l < u.length; l++)
2404
2418
  u[l].documentBlur(s);
2405
2419
  } }), t.prevTouchTime = 0, t.Interaction = (function(s) {
2406
- N(u, s);
2407
- var l = V(u);
2420
+ z(u, s);
2421
+ var l = Y(u);
2408
2422
  function u() {
2409
2423
  return C(this, u), l.apply(this, arguments);
2410
2424
  }
@@ -2476,13 +2490,13 @@ function Yo() {
2476
2490
  } }, { key: "context", value: function() {
2477
2491
  return this._context;
2478
2492
  } }, { key: "inContext", value: function(e) {
2479
- return this._context === e.ownerDocument || ie(this._context, e);
2493
+ return this._context === e.ownerDocument || ae(this._context, e);
2480
2494
  } }, { key: "testIgnoreAllow", value: function(e, n, r) {
2481
2495
  return !this.testIgnore(e.ignoreFrom, n, r) && this.testAllow(e.allowFrom, n, r);
2482
2496
  } }, { key: "testAllow", value: function(e, n, r) {
2483
- return !e || !!g.element(r) && (g.string(e) ? A(r, e, n) : !!g.element(e) && ie(e, r));
2497
+ return !e || !!g.element(r) && (g.string(e) ? D(r, e, n) : !!g.element(e) && ae(e, r));
2484
2498
  } }, { key: "testIgnore", value: function(e, n, r) {
2485
- return !(!e || !g.element(r)) && (g.string(e) ? A(r, e, n) : !!g.element(e) && ie(e, r));
2499
+ return !(!e || !g.element(r)) && (g.string(e) ? D(r, e, n) : !!g.element(e) && ae(e, r));
2486
2500
  } }, { key: "fire", value: function(e) {
2487
2501
  return this.events.fire(e), this;
2488
2502
  } }, { key: "_onOff", value: function(e, n, r, o, i) {
@@ -2549,7 +2563,7 @@ function Yo() {
2549
2563
  var l = r.interactables.getExisting(a, s);
2550
2564
  return l || ((l = r.interactables.new(a, s)).events.global = i.globalEvents), l;
2551
2565
  };
2552
- return o.getPointerAverage = Yt, o.getTouchBBox = gt, o.getTouchDistance = yt, o.getTouchAngle = bt, o.getElementRect = we, o.getElementClientRect = xe, o.matchesSelector = fe, o.closest = de, o.globalEvents = {}, o.version = "1.10.27", o.scope = r, o.use = function(i, a) {
2566
+ return o.getPointerAverage = Vt, o.getTouchBBox = gt, o.getTouchDistance = yt, o.getTouchAngle = bt, o.getElementRect = we, o.getElementClientRect = xe, o.matchesSelector = fe, o.closest = de, o.globalEvents = {}, o.version = "1.10.27", o.scope = r, o.use = function(i, a) {
2553
2567
  return this.scope.usePlugin(i, a), this;
2554
2568
  }, o.isSet = function(i, a) {
2555
2569
  return !!this.scope.interactables.get(i, a && a.context);
@@ -2601,8 +2615,8 @@ function Yo() {
2601
2615
  };
2602
2616
  var n = this;
2603
2617
  this.Interactable = (function(r) {
2604
- N(i, r);
2605
- var o = V(i);
2618
+ z(i, r);
2619
+ var o = Y(i);
2606
2620
  function i() {
2607
2621
  return C(this, i), o.apply(this, arguments);
2608
2622
  }
@@ -2626,7 +2640,7 @@ function Yo() {
2626
2640
  }
2627
2641
  } }, { key: "init", value: function(e) {
2628
2642
  return this.isInitialized ? this : (function(n, r) {
2629
- return n.isInitialized = !0, g.window(r) && ne(r), F.init(r), G.init(r), Se.init(r), n.window = r, n.document = r.document, n.usePlugin(yr), n.usePlugin(vr), n;
2643
+ return n.isInitialized = !0, g.window(r) && re(r), F.init(r), G.init(r), Se.init(r), n.window = r, n.document = r.document, n.usePlugin(yr), n.usePlugin(vr), n;
2630
2644
  })(this, e);
2631
2645
  } }, { key: "pluginIsInstalled", value: function(e) {
2632
2646
  var n = e.id;
@@ -2793,8 +2807,8 @@ function Yo() {
2793
2807
  (T = g.func(S) ? S(m, w, e._proxy, p, x) : S) && l.push({ x: (g.number(T.x) ? T.x : m) + p.x, y: (g.number(T.y) ? T.y : w) + p.y, range: g.number(T.range) ? T.range : o.range, source: S, index: x, offset: p });
2794
2808
  }
2795
2809
  for (var O = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, j = 0; j < l.length; j++) {
2796
- var Y = l[j], I = Y.range, B = Y.x - s.x, ve = Y.y - s.y, oe = je(B, ve), ge = oe <= I;
2797
- I === 1 / 0 && O.inRange && O.range !== 1 / 0 && (ge = !1), O.target && !(ge ? O.inRange && I !== 1 / 0 ? oe / I < O.distance / O.range : I === 1 / 0 && O.range !== 1 / 0 || oe < O.distance : !O.inRange && oe < O.distance) || (O.target = Y, O.distance = oe, O.range = I, O.inRange = ge, O.delta.x = B, O.delta.y = ve);
2810
+ var V = l[j], I = V.range, B = V.x - s.x, ve = V.y - s.y, ie = je(B, ve), ge = ie <= I;
2811
+ I === 1 / 0 && O.inRange && O.range !== 1 / 0 && (ge = !1), O.target && !(ge ? O.inRange && I !== 1 / 0 ? ie / I < O.distance / O.range : I === 1 / 0 && O.range !== 1 / 0 || ie < O.distance : !O.inRange && ie < O.distance) || (O.target = V, O.distance = ie, O.range = I, O.inRange = ge, O.delta.x = B, O.delta.y = ve);
2798
2812
  }
2799
2813
  return O.inRange && (n.x = O.target.x, n.y = O.target.y), r.closest = O, O;
2800
2814
  }, 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) {
@@ -2829,11 +2843,11 @@ function Yo() {
2829
2843
  o._methods = i, t.defaults.perAction[n] = o;
2830
2844
  }
2831
2845
  } }, Hr = Fr, Mn = (function(t) {
2832
- N(n, t);
2833
- var e = V(n);
2846
+ z(n, t);
2847
+ var e = Y(n);
2834
2848
  function n(r, o, i, a, s, l) {
2835
2849
  var u;
2836
- if (C(this, n), tt(ee(u = e.call(this, s)), i), i !== o && tt(ee(u), o), u.timeStamp = l, u.originalEvent = i, u.type = r, u.pointerId = Fe(o), u.pointerType = Vt(o), u.target = a, u.currentTarget = null, r === "tap") {
2850
+ if (C(this, n), tt(ee(u = e.call(this, s)), i), i !== o && tt(ee(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") {
2837
2851
  var c = s.getPointerIndex(o);
2838
2852
  u.dt = u.timeStamp - s.pointers[c].downTime;
2839
2853
  var p = u.timeStamp - s.tapTime;
@@ -2921,7 +2935,7 @@ function Yo() {
2921
2935
  var e = t.interaction;
2922
2936
  e.holdIntervalHandle && (clearInterval(e.holdIntervalHandle), e.holdIntervalHandle = null);
2923
2937
  }
2924
- var Yr = { id: "pointer-events/holdRepeat", install: function(t) {
2938
+ var Vr = { id: "pointer-events/holdRepeat", install: function(t) {
2925
2939
  t.usePlugin(We);
2926
2940
  var e = t.pointerEvents;
2927
2941
  e.defaults.holdRepeatInterval = 0, e.types.holdrepeat = t.actions.phaselessTypes.holdrepeat = !0;
@@ -2938,7 +2952,7 @@ function Yo() {
2938
2952
  e.pointerEvents.fire({ interaction: n, eventTarget: o, type: "hold", pointer: r, event: r }, e);
2939
2953
  }), a));
2940
2954
  }
2941
- } }) }, Vr = Yr, $r = { id: "pointer-events/interactableTargets", install: function(t) {
2955
+ } }) }, Yr = Vr, $r = { id: "pointer-events/interactableTargets", install: function(t) {
2942
2956
  var e = t.Interactable;
2943
2957
  e.prototype.pointerEvents = function(r) {
2944
2958
  return R(this.events.options, r), this;
@@ -2963,7 +2977,7 @@ function Yo() {
2963
2977
  var n = t.interactable, r = t.options;
2964
2978
  R(n.events.options, e.pointerEvents.defaults), R(n.events.options, r.pointerEvents || {});
2965
2979
  } } }, Wr = $r, Ur = { id: "pointer-events", install: function(t) {
2966
- t.usePlugin(Br), t.usePlugin(Vr), t.usePlugin(Wr);
2980
+ t.usePlugin(Br), t.usePlugin(Yr), t.usePlugin(Wr);
2967
2981
  } }, Xr = Ur, Gr = { id: "reflow", install: function(t) {
2968
2982
  var e = t.Interactable;
2969
2983
  t.actions.phases.reflow = !0, e.prototype.reflow = function(n) {
@@ -3006,13 +3020,13 @@ function Yo() {
3006
3020
  }, preventDefault: function() {
3007
3021
  } };
3008
3022
  })({ page: { x: E.x, y: E.y }, client: { x: E.x, y: E.y }, timeStamp: i.now() });
3009
- w = (function(T, O, j, Y, I) {
3023
+ w = (function(T, O, j, V, I) {
3010
3024
  var B = T.interactions.new({ pointerType: "reflow" }), ve = { interaction: B, event: I, pointer: I, eventTarget: j, phase: "reflow" };
3011
- B.interactable = O, B.element = j, B.prevEvent = I, B.updatePointer(I, I, j, !0), Ht(B.coords.delta), Tt(B.prepared, Y), B._doPhase(ve);
3012
- var oe = T.window, ge = oe.Promise, be = ge ? new ge((function(Te) {
3025
+ B.interactable = O, B.element = j, B.prevEvent = I, B.updatePointer(I, I, j, !0), Ht(B.coords.delta), Tt(B.prepared, V), B._doPhase(ve);
3026
+ var ie = T.window, ge = ie.Promise, be = ge ? new ge((function(Te) {
3013
3027
  B._reflowResolve = Te;
3014
3028
  })) : void 0;
3015
- return B._reflowPromise = be, B.start(Y, O, j), B._interacting ? (B.move(ve), B.end(I)) : (B.stop(), B._reflowResolve()), B.removePointer(I, I), be;
3029
+ return B._reflowPromise = be, B.start(V, O, j), B._interacting ? (B.move(ve), B.end(I)) : (B.stop(), B._reflowResolve()), B.removePointer(I, I), be;
3016
3030
  })(i, r, p, o, S);
3017
3031
  }
3018
3032
  l && l.push(w);
@@ -3028,7 +3042,7 @@ function Yo() {
3028
3042
  r.splice(r.indexOf(o), 1);
3029
3043
  })(e.interactions.list, n));
3030
3044
  } } }, Kr = Gr;
3031
- if (he.use(ln), he.use(hn), he.use(Xr), he.use(fr), he.use(Hr), he.use(tr), he.use(Vn), he.use(Wn), he.use(Kr), he.default = he, y(h) === "object" && h) try {
3045
+ if (he.use(ln), he.use(hn), he.use(Xr), he.use(fr), he.use(Hr), he.use(tr), he.use(Yn), he.use(Wn), he.use(Kr), he.default = he, y(h) === "object" && h) try {
3032
3046
  h.exports = he;
3033
3047
  } catch {
3034
3048
  }
@@ -3036,8 +3050,8 @@ function Yo() {
3036
3050
  }));
3037
3051
  })(Ke, Ke.exports)), Ke.exports;
3038
3052
  }
3039
- var Vo = /* @__PURE__ */ Yo();
3040
- const jt = /* @__PURE__ */ Bo(Vo);
3053
+ var Yo = /* @__PURE__ */ Vo();
3054
+ const jt = /* @__PURE__ */ Bo(Yo);
3041
3055
  function In(h) {
3042
3056
  const v = document.createElement("input");
3043
3057
  v.type = "file", v.accept = "image/*", v.onchange = (f) => {
@@ -3051,11 +3065,11 @@ function In(h) {
3051
3065
  k.className = "editor-image-wrapper", k.style.display = "inline-block", k.style.position = "relative", k.style.maxWidth = "100%", k.style.width = "auto", k.style.height = "auto", k.contentEditable = "false", k.style.boxSizing = "border-box", k.style.touchAction = "none", k.style.userSelect = "none", k.appendChild(M);
3052
3066
  try {
3053
3067
  Ne();
3054
- const z = window.getSelection();
3055
- if (z && z.rangeCount > 0) {
3056
- z.getRangeAt(0).insertNode(k), z.removeAllRanges();
3068
+ const A = window.getSelection();
3069
+ if (A && A.rangeCount > 0) {
3070
+ A.getRangeAt(0).insertNode(k), A.removeAllRanges();
3057
3071
  const _ = document.createRange();
3058
- _.setStartAfter(k), _.collapse(!0), z.addRange(_), me(_);
3072
+ _.setStartAfter(k), _.collapse(!0), A.addRange(_), me(_);
3059
3073
  } else
3060
3074
  h.appendChild(k), h.focus(), me();
3061
3075
  } catch {
@@ -3172,12 +3186,12 @@ function Xo() {
3172
3186
  return "Portal";
3173
3187
  case Q:
3174
3188
  return b.displayName || "Context";
3175
- case ne:
3189
+ case re:
3176
3190
  return (b._context.displayName || "Context") + ".Consumer";
3177
3191
  case se:
3178
3192
  var P = b.render;
3179
3193
  return b = b.displayName, b || (b = P.displayName || P.name || "", b = b !== "" ? "ForwardRef(" + b + ")" : "ForwardRef"), b;
3180
- case re:
3194
+ case oe:
3181
3195
  return P = b.displayName || null, P !== null ? P : h(b.type) || "Memo";
3182
3196
  case L:
3183
3197
  P = b._payload, b = b._init;
@@ -3200,8 +3214,8 @@ function Xo() {
3200
3214
  }
3201
3215
  if (P) {
3202
3216
  P = console;
3203
- var A = P.error, H = typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object";
3204
- return A.call(
3217
+ var D = P.error, H = typeof Symbol == "function" && Symbol.toStringTag && b[Symbol.toStringTag] || b.constructor.name || "Object";
3218
+ return D.call(
3205
3219
  P,
3206
3220
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
3207
3221
  H
@@ -3234,34 +3248,34 @@ function Xo() {
3234
3248
  return b.key !== void 0;
3235
3249
  }
3236
3250
  function k(b, P) {
3237
- function A() {
3251
+ function D() {
3238
3252
  G || (G = !0, console.error(
3239
3253
  "%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)",
3240
3254
  P
3241
3255
  ));
3242
3256
  }
3243
- A.isReactWarning = !0, Object.defineProperty(b, "key", {
3244
- get: A,
3257
+ D.isReactWarning = !0, Object.defineProperty(b, "key", {
3258
+ get: D,
3245
3259
  configurable: !0
3246
3260
  });
3247
3261
  }
3248
- function z() {
3262
+ function A() {
3249
3263
  var b = h(this.type);
3250
- return ie[b] || (ie[b] = !0, console.error(
3264
+ return ae[b] || (ae[b] = !0, console.error(
3251
3265
  "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."
3252
3266
  )), b = this.props.ref, b !== void 0 ? b : null;
3253
3267
  }
3254
- function N(b, P, A, H, xe, we) {
3255
- var ue = A.ref;
3268
+ function z(b, P, D, H, xe, we) {
3269
+ var ue = D.ref;
3256
3270
  return b = {
3257
3271
  $$typeof: J,
3258
3272
  type: b,
3259
3273
  key: P,
3260
- props: A,
3274
+ props: D,
3261
3275
  _owner: H
3262
3276
  }, (ue !== void 0 ? ue : null) !== null ? Object.defineProperty(b, "ref", {
3263
3277
  enumerable: !1,
3264
- get: z
3278
+ get: A
3265
3279
  }) : Object.defineProperty(b, "ref", { enumerable: !1, value: null }), b._store = {}, Object.defineProperty(b._store, "validated", {
3266
3280
  configurable: !1,
3267
3281
  enumerable: !1,
@@ -3284,19 +3298,19 @@ function Xo() {
3284
3298
  value: we
3285
3299
  }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
3286
3300
  }
3287
- function _(b, P, A, H, xe, we) {
3301
+ function _(b, P, D, H, xe, we) {
3288
3302
  var ue = P.children;
3289
3303
  if (ue !== void 0)
3290
3304
  if (H)
3291
3305
  if (F(ue)) {
3292
3306
  for (H = 0; H < ue.length; H++)
3293
- ae(ue[H]);
3307
+ ne(ue[H]);
3294
3308
  Object.freeze && Object.freeze(ue);
3295
3309
  } else
3296
3310
  console.error(
3297
3311
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
3298
3312
  );
3299
- else ae(ue);
3313
+ else ne(ue);
3300
3314
  if (W.call(P, "key")) {
3301
3315
  ue = h(b);
3302
3316
  var Ee = Object.keys(P).filter(function(Qe) {
@@ -3315,57 +3329,57 @@ React keys must be passed directly to JSX without using spread:
3315
3329
  ue
3316
3330
  ), fe[ue + H] = !0);
3317
3331
  }
3318
- if (ue = null, A !== void 0 && (f(A), ue = "" + A), M(P) && (f(P.key), ue = "" + P.key), "key" in P) {
3319
- A = {};
3332
+ if (ue = null, D !== void 0 && (f(D), ue = "" + D), M(P) && (f(P.key), ue = "" + P.key), "key" in P) {
3333
+ D = {};
3320
3334
  for (var R in P)
3321
- R !== "key" && (A[R] = P[R]);
3322
- } else A = P;
3335
+ R !== "key" && (D[R] = P[R]);
3336
+ } else D = P;
3323
3337
  return ue && k(
3324
- A,
3338
+ D,
3325
3339
  typeof b == "function" ? b.displayName || b.name || "Unknown" : b
3326
- ), N(
3340
+ ), z(
3327
3341
  b,
3328
3342
  ue,
3329
- A,
3343
+ D,
3330
3344
  y(),
3331
3345
  xe,
3332
3346
  we
3333
3347
  );
3334
3348
  }
3335
- function ae(b) {
3349
+ function ne(b) {
3336
3350
  ee(b) ? b._store && (b._store.validated = 1) : typeof b == "object" && b !== null && b.$$typeof === L && (b._payload.status === "fulfilled" ? ee(b._payload.value) && b._payload.value._store && (b._payload.value._store.validated = 1) : b._store && (b._store.validated = 1));
3337
3351
  }
3338
3352
  function ee(b) {
3339
3353
  return typeof b == "object" && b !== null && b.$$typeof === J;
3340
3354
  }
3341
- var V = Jr, J = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), ne = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), q = V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, F = Array.isArray, Z = console.createTask ? console.createTask : function() {
3355
+ var Y = Jr, J = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), re = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), oe = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), q = Y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, F = Array.isArray, Z = console.createTask ? console.createTask : function() {
3342
3356
  return null;
3343
3357
  };
3344
- V = {
3358
+ Y = {
3345
3359
  react_stack_bottom_frame: function(b) {
3346
3360
  return b();
3347
3361
  }
3348
3362
  };
3349
- var G, ie = {}, de = V.react_stack_bottom_frame.bind(
3350
- V,
3363
+ var G, ae = {}, de = Y.react_stack_bottom_frame.bind(
3364
+ Y,
3351
3365
  C
3352
3366
  )(), pe = Z(d(C)), fe = {};
3353
- Ge.Fragment = U, Ge.jsx = function(b, P, A) {
3367
+ Ge.Fragment = U, Ge.jsx = function(b, P, D) {
3354
3368
  var H = 1e4 > q.recentlyCreatedOwnerStacks++;
3355
3369
  return _(
3356
3370
  b,
3357
3371
  P,
3358
- A,
3372
+ D,
3359
3373
  !1,
3360
3374
  H ? Error("react-stack-top-frame") : de,
3361
3375
  H ? Z(d(b)) : pe
3362
3376
  );
3363
- }, Ge.jsxs = function(b, P, A) {
3377
+ }, Ge.jsxs = function(b, P, D) {
3364
3378
  var H = 1e4 > q.recentlyCreatedOwnerStacks++;
3365
3379
  return _(
3366
3380
  b,
3367
3381
  P,
3368
- A,
3382
+ D,
3369
3383
  !0,
3370
3384
  H ? Error("react-stack-top-frame") : de,
3371
3385
  H ? Z(d(b)) : pe