@orangelogic/design-system 2.101.0 → 2.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/library/chunks/{list-editor.DMjclCWz.js → list-editor.CMakbQyU.js} +181 -183
  2. package/library/chunks/transformation.Dir8s_wm.js +151 -0
  3. package/library/components/asset-link-format.js +867 -672
  4. package/library/components/drawer.js +82 -71
  5. package/library/components/list-editor.js +1 -1
  6. package/library/components/molecules.js +1 -1
  7. package/library/components/tag.js +44 -31
  8. package/library/components/types.js +558 -561
  9. package/library/package.json +1 -1
  10. package/library/packages/atoms/src/components/drawer/drawer.d.ts +8 -0
  11. package/library/packages/atoms/src/components/tag/tag.d.ts +11 -1
  12. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +8 -0
  13. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +4 -0
  14. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +4 -0
  15. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-resize/asset-link-format-resize.d.ts +4 -0
  16. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +4 -0
  17. package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -1
  18. package/library/packages/types/src/asset-link-format.d.ts +2 -0
  19. package/library/packages/types/src/content-builder.d.ts +5 -1
  20. package/library/packages/types/src/tag.d.ts +1 -0
  21. package/library/packages/utils/src/transformation/transformation.d.ts +4 -1
  22. package/library/react-web-component.d.ts +15 -3
  23. package/library/utils.js +1 -1
  24. package/package.json +1 -1
  25. package/library/chunks/transformation.Cqz3hPaQ.js +0 -144
@@ -10,7 +10,7 @@ import { default as Rqt } from "./breadcrumb.js";
10
10
  import { default as Fqt } from "./breadcrumb-item.js";
11
11
  import { C as ki, B as kc, a as Sc } from "../chunks/button.DfRnA70F.js";
12
12
  import u9 from "./button-group.js";
13
- import Ih from "./card.js";
13
+ import Dh from "./card.js";
14
14
  import om from "./checkbox.js";
15
15
  import ck from "./color-picker.js";
16
16
  import UK from "./copy-button.js";
@@ -87,13 +87,13 @@ import { c as Tn } from "../chunks/component.styles.CRO4Odto.js";
87
87
  import { a as GO } from "../chunks/animation-registry.HmpwNuGH.js";
88
88
  import { g as AVt, s as OVt } from "../chunks/animation-registry.HmpwNuGH.js";
89
89
  import { n as $, C as On } from "../chunks/lib-cortex-element.CVMmyPMC.js";
90
- import { c as hY, d as Dh } from "../chunks/debounce.CIEhztrj.js";
90
+ import { c as hY, d as Mh } from "../chunks/debounce.CIEhztrj.js";
91
91
  import { h as DVt, a as MVt, f as PVt, g as NVt, e as LVt, b as RVt, i as BVt, p as FVt, s as zVt } from "../chunks/debounce.CIEhztrj.js";
92
92
  import { c as wn } from "../chunks/custom-element.L4WJXn1j.js";
93
93
  import { l as KO, u as YO } from "../chunks/scroll.xtO5yojm.js";
94
94
  import { g as jVt, s as HVt } from "../chunks/scroll.xtO5yojm.js";
95
95
  import { w as Tt, o as gY, p as zR, q as mY, h as $R, r as fY, t as vY, m as yY, u as bY, v as wY, U as XO, x as uk, l as w9, y as A1, z as jR, S as xY, i as x9, c as kY, A as _Y, d as CY, B as SY, C as TY, f as EY, g as JO, n as AY } from "../chunks/watch.BCJD77bD.js";
96
- import { b as W_, l as eg, c as ZO, g as k9, d as HR, e as UR, f as QO } from "../chunks/dom.0RpWet6y.js";
96
+ import { b as W_, l as tg, c as ZO, g as k9, d as HR, e as UR, f as QO } from "../chunks/dom.0RpWet6y.js";
97
97
  import { k as qVt, j as VVt, a as WVt, h as GVt, i as KVt, s as YVt } from "../chunks/dom.0RpWet6y.js";
98
98
  import { i as bn, x as V, E as ho, r as qR, T as OY, a as IY } from "../chunks/lit-element.jLBm65_O.js";
99
99
  import { r as ye } from "../chunks/state.CSDxrqLd.js";
@@ -103,23 +103,23 @@ import { n as pt } from "../chunks/when.Dr1es41R.js";
103
103
  import { L as Vn } from "../chunks/i18n.DK1uYlJT.js";
104
104
  import { r as JVt } from "../chunks/i18n.DK1uYlJT.js";
105
105
  import { o as no } from "../chunks/map.D8heArFD.js";
106
- import { c as xh, b as DY } from "../chunks/capitalize.CNStXZBq.js";
106
+ import { c as kh, b as DY } from "../chunks/capitalize.CNStXZBq.js";
107
107
  import { o as lr } from "../chunks/style-map.llVFPd__.js";
108
108
  import { readLocalStorageValue as PT, writeLocalStorageValue as MY, isModKey as VR, CortexPopupController as WR, isFormInteracted as PY, omit as NY, getInterval as Jw, PRECISION as G_, findFrameByColAndRow as e7, extractFrames as LY, insertFrameToCache as RY } from "../utils.js";
109
109
  import { DragScroll as QVt, HistoryManager as eWt, KeyboardKey as tWt, downloadAsset as nWt, getBrowserFontVariants as rWt, getFormControls as iWt, isFontFamilyAvailable as oWt, openAssetOverview as aWt, openFolderOverview as sWt, openLink as cWt, parseJsonString as lWt, parseListString as dWt, pick as uWt, serialize as pWt, shareAsset as hWt, sortTypefaceVariants as gWt, testFontAvailability as mWt } from "../utils.js";
110
110
  import { a as hb, d as BY, e as _9, F as NT, i as GR, f as FY, g as O1, h as I1, j as D1, k as M1, l as zY, m as t7, n as n7, o as r7, O as i7, D as K_ } from "../chunks/asset.CtL7ACp7.js";
111
111
  import { H as C9 } from "../chunks/slot.j5oheLJC.js";
112
112
  import { a as vWt, g as yWt } from "../chunks/slot.j5oheLJC.js";
113
- import { d as o7, G as kh, h as nu, s as a7, T as KR, i as dn, j as YR, k as $Y, t as s7, u as jY, f as P1, l as HY, F as If, M as Kv } from "../chunks/string.DUgD4c9f.js";
113
+ import { d as o7, G as _h, h as nu, s as a7, T as KR, i as dn, j as YR, k as $Y, t as s7, u as jY, f as P1, l as HY, F as If, M as Kv } from "../chunks/string.DUgD4c9f.js";
114
114
  import { c as wWt, b as xWt, e as kWt, g as _Wt, p as CWt, v as SWt, r as TWt, a as EWt, o as AWt, m as OWt, n as IWt, q as DWt } from "../chunks/string.DUgD4c9f.js";
115
- import { a as S9, u as dp, I as XR, C as UY } from "../chunks/list-editor.DMjclCWz.js";
115
+ import { a as S9, u as dp, I as XR, C as UY } from "../chunks/list-editor.CMakbQyU.js";
116
116
  import qY from "./bicolor-picker.js";
117
117
  import JR from "./border-input-group.js";
118
118
  import { C as PWt } from "../chunks/color-swatch.GsiCvj1n.js";
119
119
  import { C as T9, a as VY } from "../chunks/confirm-popover.PiSCZY6-.js";
120
120
  import WY from "./corner-position-input-group.js";
121
121
  import { r as pk, R as gb, a as GY, b as qe, j as _e, w as KY, c as YY, C as XY } from "../chunks/cropper.Bib8Abm3.js";
122
- import { h as ur, D as ZR, d as c7, C as Mh, T as E9, e as JY, M as ZY, f as QR } from "../chunks/asset.types.KXRZEtBr.js";
122
+ import { h as ur, D as ZR, d as c7, C as Ph, T as E9, e as JY, M as ZY, f as QR } from "../chunks/asset.types.KXRZEtBr.js";
123
123
  import { o as rr } from "../chunks/if-defined.BRoBj_Rp.js";
124
124
  import { c as Hn } from "../chunks/repeat.DbF2p5ae.js";
125
125
  import A9 from "./dynamic-select.js";
@@ -143,7 +143,7 @@ import mX from "./masonry.js";
143
143
  import { o as up } from "../chunks/unsafe-html.Dff7-rCx.js";
144
144
  import fX from "./padding-input-group.js";
145
145
  import vX from "./position-picker.js";
146
- import { D as Zw, P as Q_, E as Cd, B as vt, a as su, b as Fo, c as iB, A as bg, d as yX, T as m7, f as gk } from "../chunks/content-builder.CcgZciZN.js";
146
+ import { D as Zw, P as Q_, E as Cd, B as vt, a as su, A as ch, b as Fo, c as iB, d as yX, T as m7, f as gk } from "../chunks/content-builder.CcgZciZN.js";
147
147
  import { g as bX, a as f7 } from "../chunks/responsive.Oz9HWjyQ.js";
148
148
  import wX from "./shadow-input-group.js";
149
149
  import { default as qWt } from "./share-option-list.js";
@@ -151,7 +151,7 @@ import { default as WWt } from "./sidebar.js";
151
151
  import xX from "./size-input-group.js";
152
152
  import { default as KWt } from "./stepper-wizard.js";
153
153
  import { t as oB, a as mk } from "../chunks/toString.CL_lYXbK.js";
154
- import { b as LT } from "../chunks/transformation.Cqz3hPaQ.js";
154
+ import { b as LT } from "../chunks/transformation.Dir8s_wm.js";
155
155
  import { default as XWt } from "./typeface.js";
156
156
  import kX from "./asset-link-format.js";
157
157
  import { g as _X } from "../chunks/tabbable.CcMz3mIL.js";
@@ -171,7 +171,7 @@ import { t as TX } from "../chunks/converters.DkDtLstb.js";
171
171
  import { i as EX } from "../chunks/user-agent.D9aPuOyL.js";
172
172
  import { a as sB, U as N9, t as AX } from "../chunks/url.Cj9cIQXJ.js";
173
173
  import { R as mGt, c as fGt, b as vGt, i as yGt } from "../chunks/url.Cj9cIQXJ.js";
174
- import { t as il, f as tg, i as cB, r as OX, m as IX, a as b7, g as w7 } from "../chunks/toast.D3AW3RWv.js";
174
+ import { t as il, f as ng, i as cB, r as OX, m as IX, a as b7, g as w7 } from "../chunks/toast.D3AW3RWv.js";
175
175
  import { e as wGt, c as xGt, d as kGt, b as _Gt } from "../chunks/toast.D3AW3RWv.js";
176
176
  import { p as DX } from "../chunks/purify.es.BIuh5IAZ.js";
177
177
  import { a as L1, r as MX, S as x7, i as fk, b as lB } from "../chunks/isObjectLike.z36Fu426.js";
@@ -285,7 +285,7 @@ let Di = class extends On {
285
285
  this.hasAnimation,
286
286
  () => V`<cx-menu-item class="viewer-config__menu-item" menu="speed"><cx-typography class="viewer-config__menu-item__label" slot="suffix" variant="body3">${this.selectedSpeed}x
287
287
  </cx-typography>${this.localize.term("speed")}</cx-menu-item>`
288
- )}<cx-menu-item class="viewer-config__menu-item" menu="variants"><cx-typography class="viewer-config__menu-item__label" slot="suffix" variant="body3">${xh(this.activeVariant)}</cx-typography>${this.localize.term("variants")}</cx-menu-item><cx-menu-item class="viewer-config__menu-item viewer-config__menu-item--has-switch" value="grid"><div class=${mn({
288
+ )}<cx-menu-item class="viewer-config__menu-item" menu="variants"><cx-typography class="viewer-config__menu-item__label" slot="suffix" variant="body3">${kh(this.activeVariant)}</cx-typography>${this.localize.term("variants")}</cx-menu-item><cx-menu-item class="viewer-config__menu-item viewer-config__menu-item--has-switch" value="grid"><div class=${mn({
289
289
  "viewer-config__item-content": !0,
290
290
  "viewer-config__item-content--loading": this.gridLoading
291
291
  })}><cx-typography variant="body3">${this.localize.term("grid")}</cx-typography><cx-switch name="grid" ?disabled=${this.gridLoading} ?checked=${this.showGrid} @click=${this.handleSwitchClick}></cx-switch></div></cx-menu-item><cx-menu-item class="viewer-config__menu-item viewer-config__menu-item--has-switch" value="shadows"><div class="viewer-config__item-content"><cx-typography variant="body3">${this.localize.term("shadows")}</cx-typography><cx-switch name="shadows" ?checked=${this.showShadows} @click=${this.handleSwitchClick}></cx-switch></div></cx-menu-item><cx-menu-item class="viewer-config__menu-item viewer-config__menu-item--has-switch" value="textures"><div class="viewer-config__item-content"><cx-typography variant="body3">${this.localize.term("textures")}</cx-typography><cx-switch name="textures" ?checked=${this.showTextures} @click=${this.handleSwitchClick}></cx-switch></div></cx-menu-item><cx-menu-item class="viewer-config__menu-item viewer-config__menu-item--has-switch" value="wireframe"><div class="viewer-config__item-content"><cx-typography variant="body3">${this.localize.term("wireframe")}</cx-typography><cx-switch name="wireframe" ?checked=${this.showWireframe} @click=${this.handleSwitchClick}></cx-switch></div></cx-menu-item>`,
@@ -323,7 +323,7 @@ let Di = class extends On {
323
323
  (n) => V`<cx-menu-item data-name=${n} value=${`environment-${n}`} type="checkbox" ?checked=${this.activeVariant === n} ?disabled=${this.activeVariant === n} class=${mn({
324
324
  "viewer-config__sub-menu__item": !0,
325
325
  "viewer-config__sub-menu__item--selected": this.activeVariant === n
326
- })}>${xh(n)}</cx-menu-item>`
326
+ })}>${kh(n)}</cx-menu-item>`
327
327
  )}</cx-menu></cx-dropdown></cx-tooltip></div>`;
328
328
  }
329
329
  };
@@ -1685,18 +1685,18 @@ let Lr = class extends On {
1685
1685
  super.disconnectedCallback(), this.isFullscreen && YO(this), this.dispose();
1686
1686
  }
1687
1687
  async loadBabylon() {
1688
- return window.BABYLON || (await eg(Nl.Babylon), await Promise.all([
1689
- eg(Nl.Loaders),
1690
- eg(Nl.Gui),
1691
- eg(Nl.Materials),
1688
+ return window.BABYLON || (await tg(Nl.Babylon), await Promise.all([
1689
+ tg(Nl.Loaders),
1690
+ tg(Nl.Gui),
1691
+ tg(Nl.Materials),
1692
1692
  ...this.canViewAR ? [
1693
- eg(Nl.Serializers),
1694
- eg(Nl.Fflate)
1693
+ tg(Nl.Serializers),
1694
+ tg(Nl.Fflate)
1695
1695
  ] : []
1696
1696
  ])), window.BABYLON;
1697
1697
  }
1698
1698
  async loadInspector() {
1699
- window.INSPECTOR || (this.inspectorLoading = !0, await eg(Nl.Inspector), this.inspectorLoading = !1);
1699
+ window.INSPECTOR || (this.inspectorLoading = !0, await tg(Nl.Inspector), this.inspectorLoading = !1);
1700
1700
  }
1701
1701
  /**
1702
1702
  * Initializes the Babylon.js engine and scene.
@@ -2541,7 +2541,7 @@ var MJ = Object.defineProperty, PJ = Object.getOwnPropertyDescriptor, t0 = (n, e
2541
2541
  (a = n[o]) && (i = (r ? a(e, t, i) : a(i)) || i);
2542
2542
  return r && i && MJ(e, t, i), i;
2543
2543
  };
2544
- let _h = class extends On {
2544
+ let Ch = class extends On {
2545
2545
  constructor() {
2546
2546
  super(...arguments), this.localize = new Vn(this), this.markup = "", this.isOpen = !1;
2547
2547
  }
@@ -2573,27 +2573,27 @@ let _h = class extends On {
2573
2573
  ${this.markup && this.isOpen ? V`<div class="markdown"><cx-copy-button value=${this.markup}></cx-copy-button><cx-markdown markdown=${"```html\n" + this.markup + "\n```"}></cx-markdown></div>` : ""}</div>`;
2574
2574
  }
2575
2575
  };
2576
- _h.styles = DJ;
2577
- _h.dependencies = {
2576
+ Ch.styles = DJ;
2577
+ Ch.dependencies = {
2578
2578
  "cx-copy-button": UK,
2579
2579
  "cx-icon": io,
2580
2580
  "cx-markdown": p9
2581
2581
  };
2582
2582
  t0([
2583
2583
  ye()
2584
- ], _h.prototype, "markup", 2);
2584
+ ], Ch.prototype, "markup", 2);
2585
2585
  t0([
2586
2586
  ye()
2587
- ], _h.prototype, "isOpen", 2);
2587
+ ], Ch.prototype, "isOpen", 2);
2588
2588
  t0([
2589
2589
  Et(".code-preview__resizer")
2590
- ], _h.prototype, "resizer", 2);
2590
+ ], Ch.prototype, "resizer", 2);
2591
2591
  t0([
2592
2592
  Et(".code-preview__preview")
2593
- ], _h.prototype, "preview", 2);
2594
- _h = t0([
2593
+ ], Ch.prototype, "preview", 2);
2594
+ Ch = t0([
2595
2595
  wn("cx-docs-example")
2596
- ], _h);
2596
+ ], Ch);
2597
2597
  function NJ(n) {
2598
2598
  return n.replace(' slot="html"', "").replace('slot="html" ', "").replace('slot="html', "");
2599
2599
  }
@@ -2763,7 +2763,7 @@ var zJ = Object.defineProperty, $J = Object.getOwnPropertyDescriptor, n0 = (n, e
2763
2763
  return r && i && zJ(e, t, i), i;
2764
2764
  };
2765
2765
  const jJ = 238;
2766
- let Ch = class extends On {
2766
+ let Sh = class extends On {
2767
2767
  constructor() {
2768
2768
  super(...arguments), this.localize = new Vn(this), this.observer = null, this.resolveTarget = null, this.displayStyle = eB.Long, this.durationMs = 0;
2769
2769
  }
@@ -2806,23 +2806,23 @@ let Ch = class extends On {
2806
2806
  );
2807
2807
  }
2808
2808
  };
2809
- Ch.styles = [Tn, FJ];
2810
- Ch.dependencies = { "cx-format-time": PR };
2809
+ Sh.styles = [Tn, FJ];
2810
+ Sh.dependencies = { "cx-format-time": PR };
2811
2811
  n0([
2812
2812
  $({ attribute: !1 })
2813
- ], Ch.prototype, "resolveTarget", 2);
2813
+ ], Sh.prototype, "resolveTarget", 2);
2814
2814
  n0([
2815
2815
  $({ attribute: "display-style", reflect: !0, type: String })
2816
- ], Ch.prototype, "displayStyle", 2);
2816
+ ], Sh.prototype, "displayStyle", 2);
2817
2817
  n0([
2818
2818
  ye()
2819
- ], Ch.prototype, "durationMs", 2);
2819
+ ], Sh.prototype, "durationMs", 2);
2820
2820
  n0([
2821
2821
  Tt("resolveTarget")
2822
- ], Ch.prototype, "onResolveTargetChange", 1);
2823
- Ch = n0([
2822
+ ], Sh.prototype, "onResolveTargetChange", 1);
2823
+ Sh = n0([
2824
2824
  wn("cx-estimated-reading-time")
2825
- ], Ch);
2825
+ ], Sh);
2826
2826
  const HJ = bn`:host{--overridden-highlightable-item-effect-zoom-scale:var(--highlightable-item-effect-zoom-scale,1);--overridden-transition-duration:var(--transition-duration,.5s);--overridden-transition-transform-duration:var(--transition-transform-duration,.5s);--overridden-easing:var(--easing,linear);--overridden-highlightable-item-highlight-background:var(--highlightable-item-highlight-background,transparent);position:relative}:host(:focus-visible){outline:none}:host(:focus-visible):after{content:"";outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width,2px));pointer-events:none;z-index:1;width:100%;height:100%;position:absolute;top:0;left:0}:host([effect=zoom]){overflow:visible}:host([effect=jump]) .highlighter,:host([effect=zoom]) .highlighter{transition:all var(--transition-duration,.5s) var(--easing,linear), transform var(--transition-transform-duration,.5s) var(--easing,linear)}:host([effect=zoom]) .highlighter--zoom-style-pop-out:hover{transform:scale(var(--overridden-highlightable-item-effect-zoom-scale))}:host([effect=jump]) .highlighter:hover{transform:translateY(calc(var(--highlightable-item-effect-jump-distance,0) * -1))}.highlighter--can-hover:hover:after,.highlighter--selected:after,.highlighter--color-overlay:after{content:"";pointer-events:none;width:100%;height:100%;transition:all var(--transition-duration,.5s) var(--easing,linear);position:absolute;top:0;left:0}.highlighter--can-hover:hover:after,.highlighter--selected:after{outline:2px solid var(--cx-color-primary)}.highlighter--border:hover .gallery-item{border-color:var(--highlightable-item-highlight-border-color,var(--cx-color-primary))}.highlighter--color-overlay:hover:after{background-color:var(--highlightable-item-highlight-color-overlay-color,transparent);border-radius:var(--gallery-item-border-radius,none)}.highlighter--drop-shadow:hover .gallery-item{box-shadow:var(--highlightable-item-highlight-drop-shadow,none)}.highlighter--background:hover .gallery-item{--content-background-color:var(--highlightable-item-highlight-background,transparent)}.highlighter--background:hover .gallery-item__image{--highlightable-item-background-color:var(--overridden-highlightable-item-highlight-background)}.highlighter--opacity{opacity:var(--highlightable-item-highlight-opacity,1)}.highlighter--zoom-style-within-borders .gallery-item__image-container{overflow:hidden}:host([effect=zoom]) .highlighter--zoom-style-within-borders .gallery-item__image{transition:transform var(--transition-transform-duration,.5s) var(--easing,linear);transition:transform var(--overridden-transition-transform-duration) var(--overridden-easing)}:host([effect=zoom]) .highlighter--zoom-style-within-borders:hover .gallery-item__image{transform:scale(var(--overridden-highlightable-item-effect-zoom-scale))}.gallery-item{transition:background-color var(--transition-duration,.5s) var(--easing,linear), border-color var(--transition-duration,.5s) var(--easing,linear), box-shadow var(--transition-duration,.5s) var(--easing,linear), opacity var(--transition-duration,.5s) var(--easing,linear), visibility var(--transition-duration,.5s) var(--easing,linear)}.gallery-item__image{--transition-duration:var(--overridden-transition-duration)}.gallery-item__content{--transition-transform-duration:var(--overridden-transition-transform-duration);--easing:var(--overridden-easing)}`, UJ = bn`
2827
2827
  :host {
2828
2828
  --aspect-ratio: inherit;
@@ -3009,7 +3009,7 @@ var qJ = Object.defineProperty, VJ = Object.getOwnPropertyDescriptor, rs = (n, e
3009
3009
  };
3010
3010
  let gi = class extends tY {
3011
3011
  constructor() {
3012
- super(...arguments), this.localize = new Vn(this), this.src = void 0, this.alt = "", this.pageId = "", this.objectFit = Eo.Cover, this.openInNewTab = !1, this.contentVariant = kh.Default, this.showContentType = nu.Always, this.contentPosition = Ai.Top, this.canZoom = !1, this.loading = !1, this.canSelect = !1, this.selected = !1, this.inView = !1, this.isInert = !1, this.itemIndex = 0;
3012
+ super(...arguments), this.localize = new Vn(this), this.src = void 0, this.alt = "", this.pageId = "", this.objectFit = Eo.Cover, this.openInNewTab = !1, this.contentVariant = _h.Default, this.showContentType = nu.Always, this.contentPosition = Ai.Top, this.canZoom = !1, this.loading = !1, this.canSelect = !1, this.selected = !1, this.inView = !1, this.isInert = !1, this.itemIndex = 0;
3013
3013
  }
3014
3014
  get canZoomWithSelectMode() {
3015
3015
  return this.canZoom;
@@ -3029,7 +3029,7 @@ let gi = class extends tY {
3029
3029
  renderHighlighter(n) {
3030
3030
  let e = !1;
3031
3031
  this.showContentType === nu.OnHover || this.effect === Sn.TextReveal ? e = !this.isHovering || !this.hasSlotContent : e = !this.hasSlotContent;
3032
- const t = this.contentVariant === kh.Overlay;
3032
+ const t = this.contentVariant === _h.Overlay;
3033
3033
  return V`<div slot=${rr(n?.slot)} part="highlighter" class=${mn({
3034
3034
  ...this.getHighlighterClass(),
3035
3035
  "highlighter--can-hover": this.canSelect,
@@ -5894,7 +5894,7 @@ function aF(n, e) {
5894
5894
  function sF(n, e) {
5895
5895
  return oF(n, e);
5896
5896
  }
5897
- function og(n, e) {
5897
+ function ag(n, e) {
5898
5898
  return {
5899
5899
  id: n,
5900
5900
  type: "select",
@@ -5905,7 +5905,7 @@ function of(n, e = /* @__PURE__ */ new Set(), t = !1) {
5905
5905
  const r = [];
5906
5906
  for (const [i, o] of n) {
5907
5907
  const a = e.has(i);
5908
- !(o.selected === void 0 && !a) && o.selected !== a && (t && (o.selected = a), r.push(og(o.id, a)));
5908
+ !(o.selected === void 0 && !a) && o.selected !== a && (t && (o.selected = a), r.push(ag(o.id, a)));
5909
5909
  }
5910
5910
  return r;
5911
5911
  }
@@ -7340,7 +7340,7 @@ const nte = qe.memo(DF), m8 = ({ nodes: n, edges: e, defaultNodes: t, defaultEdg
7340
7340
  addSelectedNodes: (b) => {
7341
7341
  const { multiSelectionActive: w, edgeLookup: k, nodeLookup: E, triggerNodeChanges: C, triggerEdgeChanges: A } = m();
7342
7342
  if (w) {
7343
- const D = b.map((z) => og(z, !0));
7343
+ const D = b.map((z) => ag(z, !0));
7344
7344
  C(D);
7345
7345
  return;
7346
7346
  }
@@ -7349,7 +7349,7 @@ const nte = qe.memo(DF), m8 = ({ nodes: n, edges: e, defaultNodes: t, defaultEdg
7349
7349
  addSelectedEdges: (b) => {
7350
7350
  const { multiSelectionActive: w, edgeLookup: k, nodeLookup: E, triggerNodeChanges: C, triggerEdgeChanges: A } = m();
7351
7351
  if (w) {
7352
- const D = b.map((z) => og(z, !0));
7352
+ const D = b.map((z) => ag(z, !0));
7353
7353
  A(D);
7354
7354
  return;
7355
7355
  }
@@ -7358,8 +7358,8 @@ const nte = qe.memo(DF), m8 = ({ nodes: n, edges: e, defaultNodes: t, defaultEdg
7358
7358
  unselectNodesAndEdges: ({ nodes: b, edges: w } = {}) => {
7359
7359
  const { edges: k, nodes: E, nodeLookup: C, triggerNodeChanges: A, triggerEdgeChanges: D } = m(), z = b || E, j = w || k, H = z.map((X) => {
7360
7360
  const B = C.get(X.id);
7361
- return B && (B.selected = !1), og(X.id, !1);
7362
- }), N = j.map((X) => og(X.id, !1));
7361
+ return B && (B.selected = !1), ag(X.id, !1);
7362
+ }), N = j.map((X) => ag(X.id, !1));
7363
7363
  A(H), D(N);
7364
7364
  },
7365
7365
  setMinZoom: (b) => {
@@ -7380,7 +7380,7 @@ const nte = qe.memo(DF), m8 = ({ nodes: n, edges: e, defaultNodes: t, defaultEdg
7380
7380
  const { edges: b, nodes: w, triggerNodeChanges: k, triggerEdgeChanges: E, elementsSelectable: C } = m();
7381
7381
  if (!C)
7382
7382
  return;
7383
- const A = w.reduce((z, j) => j.selected ? [...z, og(j.id, !1)] : z, []), D = b.reduce((z, j) => j.selected ? [...z, og(j.id, !1)] : z, []);
7383
+ const A = w.reduce((z, j) => j.selected ? [...z, ag(j.id, !1)] : z, []), D = b.reduce((z, j) => j.selected ? [...z, ag(j.id, !1)] : z, []);
7384
7384
  k(A), E(D);
7385
7385
  },
7386
7386
  setNodeExtent: (b) => {
@@ -7827,9 +7827,9 @@ function Hte({ nodeId: n, position: e, variant: t = Gf.Handle, className: r, sty
7827
7827
  }, children: o });
7828
7828
  }
7829
7829
  qe.memo(Hte);
7830
- const Ute = "Custom", py = "Temporary", RF = "SelfDecor", ch = "Ghost", BF = "CustomNode", Jp = 360, f8 = 200, Zp = 58, v8 = Zp * 2, Tk = "var(--cx-color-neutral-300)", V9 = 5, W9 = 10, qte = 60, FF = 60, Vte = 50, y8 = 20, G9 = 2, b8 = 1, Wte = Zp / 2, zF = 0.5, $F = 1.5, w8 = 5, jF = {
7830
+ const Ute = "Custom", py = "Temporary", RF = "SelfDecor", lh = "Ghost", BF = "CustomNode", Jp = 360, f8 = 200, Zp = 58, v8 = Zp * 2, Tk = "var(--cx-color-neutral-300)", V9 = 5, W9 = 10, qte = 60, FF = 60, Vte = 50, y8 = 20, G9 = 2, b8 = 1, Wte = Zp / 2, zF = 0.5, $F = 1.5, w8 = 5, jF = {
7831
7831
  UNLINK: "UNLINK"
7832
- }, Gte = 100, Kte = 40, Pg = 132, hC = 80, dg = Pg / 2, Gu = 20, Yte = 840, Xte = 840;
7832
+ }, Gte = 100, Kte = 40, Pg = 132, hC = 80, ug = Pg / 2, Gu = 20, Yte = 840, Xte = 840;
7833
7833
  function fu(n) {
7834
7834
  let e = n / 2, t = 0;
7835
7835
  const r = 5;
@@ -8720,7 +8720,7 @@ const qT = ({
8720
8720
  }), N = sne(
8721
8721
  j,
8722
8722
  a.concat(r),
8723
- H === "horizontal" ? Gu : dg
8723
+ H === "horizontal" ? Gu : ug
8724
8724
  );
8725
8725
  if (N <= s) {
8726
8726
  const X = (C.x - z.x) ** 2 + (C.y - z.y) ** 2;
@@ -8783,7 +8783,7 @@ const qT = ({
8783
8783
  const l = !(c.top > e.top + Gu || c.bottom < e.top - Gu) && c.x < e.upperNodeX, d = !(c.top > e.bottom + Gu || c.bottom < e.bottom - Gu) && c.x < e.lowerNodeX;
8784
8784
  l && o++, d && o++;
8785
8785
  }
8786
- if (!(c.left > e.left - xg + dg || c.right < e.left - xg - dg) && !(c.bottom > e.bottom || c.top < e.top)) {
8786
+ if (!(c.left > e.left - xg + ug || c.right < e.left - xg - ug) && !(c.bottom > e.bottom || c.top < e.top)) {
8787
8787
  const l = Math.max(Math.abs(c.left - e.left));
8788
8788
  s += l, e.left -= l, a++;
8789
8789
  }
@@ -8802,14 +8802,14 @@ const qT = ({
8802
8802
  const l = !(c.top > e.top + Gu || c.bottom < e.top - Gu) && c.x > e.upperNodeX, d = !(c.top > e.bottom + Gu || c.bottom < e.bottom - Gu) && c.x > e.lowerNodeX;
8803
8803
  l && o++, d && o++;
8804
8804
  }
8805
- if (!(c.left > e.right + xg + dg || c.right < e.right + xg - dg) && !(c.bottom > e.bottom || c.top < e.top)) {
8805
+ if (!(c.left > e.right + xg + ug || c.right < e.right + xg - ug) && !(c.bottom > e.bottom || c.top < e.top)) {
8806
8806
  const l = Math.max(Math.abs(c.right - e.right));
8807
8807
  s += l, e.right += l, a++;
8808
8808
  }
8809
8809
  break;
8810
8810
  }
8811
8811
  }
8812
- }), a && (s += dg), { avoidable: a, dir: i, offset: s, unavoidable: o };
8812
+ }), a && (s += ug), { avoidable: a, dir: i, offset: s, unavoidable: o };
8813
8813
  }, une = (n, e, t, r, i, o) => t.reduce((a, s) => s.unavoidable < a.unavoidable || s.unavoidable === a.unavoidable && s.avoidable <= a.avoidable ? s.unavoidable === a.unavoidable && s.avoidable === a.avoidable && VF(
8814
8814
  n,
8815
8815
  e,
@@ -8935,7 +8935,7 @@ const qT = ({
8935
8935
  );
8936
8936
  X = te.sourceHandle, B = te.targetHandle;
8937
8937
  }
8938
- t[`${X}-${B}`] = (t[`${X}-${B}`] ?? 0) + 1, t[`${B}-${X}`] = (t[`${B}-${X}`] ?? 0) + 1, K && (R += dg * (t[`${X}-${B}`] - 1));
8938
+ t[`${X}-${B}`] = (t[`${X}-${B}`] ?? 0) + 1, t[`${B}-${X}`] = (t[`${B}-${X}`] ?? 0) + 1, K && (R += ug * (t[`${X}-${B}`] - 1));
8939
8939
  const L = _8(X, m), Y = _8(B, f), M = af(
8940
8940
  p,
8941
8941
  L.position,
@@ -9561,7 +9561,7 @@ const Yne = (n) => n.data?.unordered && n.data?.unorderedText ? {
9561
9561
  (te, fe) => (te[fe.id] = fe, te),
9562
9562
  {}
9563
9563
  ), r = nre(n, e).filter(
9564
- (te) => te.type !== ch
9564
+ (te) => te.type !== lh
9565
9565
  ), i = e.filter(
9566
9566
  (te) => te.type !== py
9567
9567
  ), a = r.filter((te) => i.filter((fe) => fe.source === te.id).length < (te.data?.transitions?.length ?? 0) || !i.some((fe) => fe.source === te.id)).reduce((te, fe) => {
@@ -9586,7 +9586,7 @@ const Yne = (n) => n.data?.unordered && n.data?.unorderedText ? {
9586
9586
  },
9587
9587
  height: Zp,
9588
9588
  id: Ae,
9589
- type: ch,
9589
+ type: lh,
9590
9590
  width: Jp
9591
9591
  };
9592
9592
  });
@@ -9601,7 +9601,7 @@ const Yne = (n) => n.data?.unordered && n.data?.unorderedText ? {
9601
9601
  },
9602
9602
  height: Zp,
9603
9603
  id: Me,
9604
- type: ch,
9604
+ type: lh,
9605
9605
  width: Jp
9606
9606
  };
9607
9607
  return te.concat(be);
@@ -9741,7 +9741,7 @@ const Yne = (n) => n.data?.unordered && n.data?.unorderedText ? {
9741
9741
  hidden: !1,
9742
9742
  // React Flow expects a position property on the node instead of `x` and `y` fields.
9743
9743
  position: { x: te.x - (te.data.width ?? Jp) / 2, y: te.y },
9744
- selectable: te.data.type === ch ? !1 : void 0
9744
+ selectable: te.data.type === lh ? !1 : void 0
9745
9745
  })), Y = R.reduce(
9746
9746
  (te, fe) => {
9747
9747
  const Me = X[fe.data.id];
@@ -10227,7 +10227,7 @@ const JF = ({ open: n, sourceNode: e, targetNode: t }) => {
10227
10227
  return !C || C.allows_loop !== !1 || k >= f;
10228
10228
  };
10229
10229
  return c.filter(
10230
- (w) => w.id !== e && w.type !== ch && !w.data?.unordered && b(w)
10230
+ (w) => w.id !== e && w.type !== lh && !w.data?.unordered && b(w)
10231
10231
  );
10232
10232
  }, [o, e, c, s]), d = qe.useMemo(() => c.find((f) => f.id === t), [t, c]), p = (f) => {
10233
10233
  const w = f.target.getAttribute("value");
@@ -10235,7 +10235,7 @@ const JF = ({ open: n, sourceNode: e, targetNode: t }) => {
10235
10235
  }, h = (f) => {
10236
10236
  const w = f.target.getAttribute("value");
10237
10237
  w && i?.(w);
10238
- }, m = d && d.type !== ch;
10238
+ }, m = d && d.type !== lh;
10239
10239
  return /* @__PURE__ */ _e.jsxs("cx-menu", { class: "nodrag nopan nowheel", children: [
10240
10240
  Object.entries(s || {}).map(([f, b]) => /* @__PURE__ */ _e.jsxs("cx-menu-item", { "data-node": f, children: [
10241
10241
  b.name,
@@ -10776,7 +10776,7 @@ const dre = ({
10776
10776
  ] });
10777
10777
  }, mre = {
10778
10778
  [BF]: XF,
10779
- [ch]: ZF
10779
+ [lh]: ZF
10780
10780
  }, fre = {
10781
10781
  Custom: lre,
10782
10782
  SelfDecor: gre,
@@ -10958,7 +10958,7 @@ const dre = ({
10958
10958
  }) => {
10959
10959
  if (c)
10960
10960
  return;
10961
- const de = gt.filter((ot) => ot.type !== ch).map((ot) => ot.id);
10961
+ const de = gt.filter((ot) => ot.type !== lh).map((ot) => ot.id);
10962
10962
  i?.({
10963
10963
  nodes: de
10964
10964
  }), ie({});
@@ -11115,7 +11115,7 @@ const xre = KY(yre, gb, YY, {
11115
11115
  }
11116
11116
  });
11117
11117
  customElements.get("graph-view") || customElements.define("graph-view", xre);
11118
- let Sh = class extends On {
11118
+ let Th = class extends On {
11119
11119
  constructor() {
11120
11120
  super(), this.localize = new Vn(this), this.readonly = !1, this.hideControls = !1, this.renderDelay = 0, this.handleAddNode = this.handleAddNode.bind(this), this.handlePaneClick = this.handlePaneClick.bind(this), this.handleSelectEdge = this.handleSelectEdge.bind(this), this.handleSelectNode = this.handleSelectNode.bind(this), this.handleUnlink = this.handleUnlink.bind(this);
11121
11121
  }
@@ -11189,16 +11189,16 @@ let Sh = class extends On {
11189
11189
  return V`<graph-view .ref=${this} .data=${this.data} .handleAddNode=${this.handleAddNode} .handleSelectEdge=${this.handleSelectEdge} .handleSelectNode=${this.handleSelectNode} .handlePaneClick=${this.handlePaneClick} .handleUnlink=${this.handleUnlink} .hideControls=${this.hideControls} .readonly=${this.readonly} .renderDelay=${this.renderDelay} .localize=${this.localize}></graph-view>`;
11190
11190
  }
11191
11191
  };
11192
- Sh.styles = [
11192
+ Th.styles = [
11193
11193
  Tn,
11194
11194
  Jte,
11195
11195
  bn`
11196
11196
  ${qR(WJ)}
11197
11197
  `
11198
11198
  ];
11199
- Sh.dependencies = {
11199
+ Th.dependencies = {
11200
11200
  "cx-badge": Jb,
11201
- "cx-card": Ih,
11201
+ "cx-card": Dh,
11202
11202
  "cx-divider": Ql,
11203
11203
  "cx-dropdown": Rd,
11204
11204
  "cx-icon": io,
@@ -11211,19 +11211,19 @@ Sh.dependencies = {
11211
11211
  };
11212
11212
  l0([
11213
11213
  $({ type: Object })
11214
- ], Sh.prototype, "data", 2);
11214
+ ], Th.prototype, "data", 2);
11215
11215
  l0([
11216
11216
  $({ type: Boolean })
11217
- ], Sh.prototype, "readonly", 2);
11217
+ ], Th.prototype, "readonly", 2);
11218
11218
  l0([
11219
11219
  $({ attribute: "hide-controls", type: Boolean })
11220
- ], Sh.prototype, "hideControls", 2);
11220
+ ], Th.prototype, "hideControls", 2);
11221
11221
  l0([
11222
11222
  $({ attribute: "render-delay", type: Number })
11223
- ], Sh.prototype, "renderDelay", 2);
11224
- Sh = l0([
11223
+ ], Th.prototype, "renderDelay", 2);
11224
+ Th = l0([
11225
11225
  wn("cx-graph-view")
11226
- ], Sh);
11226
+ ], Th);
11227
11227
  /**
11228
11228
  * @license
11229
11229
  * Copyright 2021 Google LLC
@@ -15523,7 +15523,7 @@ const Ire = { categories: ["UI actions"], tags: ["8-bit", "a", "abbreviation", "
15523
15523
  zoom_out: Cst,
15524
15524
  zoom_out_map: Sst
15525
15525
  }, Est = bn`.icon-picker__option{width:100%}.icon-picker__select__prefix-icon{color:var(--cx-color-neutral-600)}.icon-picker__select__footer{background-color:var(--cx-color-neutral-0);width:100%;bottom:calc(-1 * var(--cx-spacing-x-small));margin-bottom:calc(-1 * var(--cx-spacing-x-small));flex-direction:column;display:flex;position:sticky}.icon-picker__select__footer__divider{--spacing:var(--cx-spacing-x-small);padding:0 var(--cx-spacing-small)}.icon-picker__select__footer__option{text-transform:capitalize}`;
15526
- var Ast = Object.defineProperty, Ost = Object.getOwnPropertyDescriptor, Ph = (n, e, t, r) => {
15526
+ var Ast = Object.defineProperty, Ost = Object.getOwnPropertyDescriptor, Nh = (n, e, t, r) => {
15527
15527
  for (var i = r > 1 ? void 0 : r ? Ost(e, t) : e, o = n.length - 1, a; o >= 0; o--)
15528
15528
  (a = n[o]) && (i = (r ? a(e, t, i) : a(i)) || i);
15529
15529
  return r && i && Ast(e, t, i), i;
@@ -15620,13 +15620,13 @@ Gl.dependencies = {
15620
15620
  "cx-select": ed,
15621
15621
  "cx-space": ci
15622
15622
  };
15623
- Ph([
15623
+ Nh([
15624
15624
  Et(".icon-picker__select")
15625
15625
  ], Gl.prototype, "select", 2);
15626
- Ph([
15626
+ Nh([
15627
15627
  Et(".icon-picker__select__footer__option")
15628
15628
  ], Gl.prototype, "customOption", 2);
15629
- Ph([
15629
+ Nh([
15630
15630
  $({
15631
15631
  converter: {
15632
15632
  fromAttribute(n) {
@@ -15644,19 +15644,19 @@ Ph([
15644
15644
  type: Object
15645
15645
  })
15646
15646
  ], Gl.prototype, "value", 2);
15647
- Ph([
15647
+ Nh([
15648
15648
  $({ type: Boolean })
15649
15649
  ], Gl.prototype, "clearable", 2);
15650
- Ph([
15650
+ Nh([
15651
15651
  $({ attribute: "on-request-asset", type: Function })
15652
15652
  ], Gl.prototype, "onRequestAsset", 2);
15653
- Ph([
15653
+ Nh([
15654
15654
  ye()
15655
15655
  ], Gl.prototype, "searchTerm", 2);
15656
- Ph([
15656
+ Nh([
15657
15657
  ye()
15658
15658
  ], Gl.prototype, "showVirtualizer", 2);
15659
- Gl = Ph([
15659
+ Gl = Nh([
15660
15660
  wn("cx-icon-picker")
15661
15661
  ], Gl);
15662
15662
  const Dst = bn`
@@ -16310,7 +16310,7 @@ let hl = class extends On {
16310
16310
  get formattedCardTitle() {
16311
16311
  switch (this.cardTitleFormat) {
16312
16312
  case gy.Capitalize:
16313
- return xh(this.cardTitle);
16313
+ return kh(this.cardTitle);
16314
16314
  case gy.Lowercase:
16315
16315
  return this.cardTitle.toLowerCase();
16316
16316
  case gy.Uppercase:
@@ -16322,7 +16322,7 @@ let hl = class extends On {
16322
16322
  const e = (this.value === void 0 || this.value === null ? "__" : String(this.value)) || "__";
16323
16323
  switch (this.valueFormat) {
16324
16324
  case my.Capitalize:
16325
- return xh(e);
16325
+ return kh(e);
16326
16326
  case my.Lowercase:
16327
16327
  return e.toLowerCase();
16328
16328
  case my.Uppercase:
@@ -16363,7 +16363,7 @@ oz = function() {
16363
16363
  };
16364
16364
  hl.styles = [Tn, Ust];
16365
16365
  hl.dependencies = {
16366
- "cx-card": Ih,
16366
+ "cx-card": Dh,
16367
16367
  "cx-format-bytes": WK,
16368
16368
  "cx-format-number": KK,
16369
16369
  "cx-format-time": PR,
@@ -16641,7 +16641,7 @@ function bz(n) {
16641
16641
  };
16642
16642
  }
16643
16643
  var X9 = bz(function(n, e, t) {
16644
- return e = e.toLowerCase(), n + (t ? xh(e) : e);
16644
+ return e = e.toLowerCase(), n + (t ? kh(e) : e);
16645
16645
  }), Ol = bz(function(n, e, t) {
16646
16646
  return n + (t ? "-" : "") + e.toLowerCase();
16647
16647
  });
@@ -16952,7 +16952,7 @@ let gl = class extends On {
16952
16952
  gl.styles = [Tn, Rct];
16953
16953
  gl.dependencies = {
16954
16954
  "cx-button": ki,
16955
- "cx-card": Ih,
16955
+ "cx-card": Dh,
16956
16956
  "cx-checkbox": om,
16957
16957
  "cx-icon-button": yo,
16958
16958
  "cx-input": jo,
@@ -17976,7 +17976,7 @@ let yu = class extends On {
17976
17976
  yu.styles = [Tn, rlt];
17977
17977
  yu.dependencies = {
17978
17978
  "cx-button": ki,
17979
- "cx-card": Ih,
17979
+ "cx-card": Dh,
17980
17980
  "cx-grid": am,
17981
17981
  "cx-grid-item": sm,
17982
17982
  "cx-icon": io,
@@ -18156,7 +18156,7 @@ oc([
18156
18156
  Ba = oc([
18157
18157
  wn("cx-dashboard-table")
18158
18158
  ], Ba);
18159
- var ag = /* @__PURE__ */ ((n) => (n.Always = "always", n.None = "none", n.Responsive = "responsive", n))(ag || {}), r1 = /* @__PURE__ */ ((n) => (n.Fit = "fit", n.Full = "full", n))(r1 || {});
18159
+ var sg = /* @__PURE__ */ ((n) => (n.Always = "always", n.None = "none", n.Responsive = "responsive", n))(sg || {}), r1 = /* @__PURE__ */ ((n) => (n.Fit = "fit", n.Full = "full", n))(r1 || {});
18160
18160
  const mlt = bn`:host{width:100%;height:fit-content;display:block}.bento-grid{width:100%;max-width:100%;position:relative;container:asset-container/inline-size}.bento-grid--empty{min-height:160px}.bento-grid--empty:before{color:#fff;content:attr(data-empty-label);font-family:var(--cx-font-sans);font-size:clamp(var(--cx-font-size-x-small), 4cqw, var(--cx-font-size-large));font-weight:var(--cx-font-weight-semibold);text-align:center;text-shadow:.05em .05em .1em #000;vertical-align:middle;background-color:#000;justify-content:center;align-items:center;width:100%;height:100%;line-height:1;display:flex;position:absolute}.bento-grid__filler{box-sizing:border-box;background-color:#0000;position:absolute}.bento-grid__item{box-sizing:border-box;position:absolute}.bento-grid__item--effect-zoom:hover{z-index:1;position:relative}.bento-grid__item:hover{z-index:3;animation:none}.bento-grid__item:not(:hover){animation:drop-z var(--transition-transform-duration) forwards}@keyframes drop-z{0%{z-index:2}99%{z-index:2}to{z-index:0}}`;
18161
18161
  function flt(n, e, t) {
18162
18162
  for (let r = 0; r < t; r++)
@@ -18319,7 +18319,7 @@ var _lt = Object.defineProperty, Clt = Object.getOwnPropertyDescriptor, Ir = (n,
18319
18319
  };
18320
18320
  let sr = class extends On {
18321
18321
  constructor() {
18322
- super(), this.localize = new Vn(this), this.bentoLayout = new klt(), this._scrollRaf = !1, this._viewportHeight = 0, this._resizeObserver = null, this._lastEmittedFirst = -1, this._lastEmittedLast = -2, this.data = [], this.breakpoints = [1 / 0, 1 / 0, 1 / 0], this.smallCardContentPosition = Ai.Top, this.largeCardContentPosition = Ai.Left, this.contentVariant = kh.Default, this.filler = ag.None, this.fillerMode = r1.Fit, this.maxColumns = 4, this.maxRows = 1 / 0, this.totalItems = 0, this.showContentType = nu.Always, this.emptyLabel = "", this.itemHeight = "", this.rowGap = "", this.columnGap = "", this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightSiblingsFadeOut = !1, this.effect = Sn.None, this.textRevealStyle = ea.Slide, this.zoomStyle = La.WithinBorders, this.itemAriaRoleDescription = "", this.accessibilityTooltip = void 0, this.easing = zn.Linear, this.containerStyles = {}, this.prevColumnCount = 0, this.filledData = [], this.hoveredItemId = void 0, this.scrollSize = 0, this.scrollOffset = 0, this.virtualFirst = 0, this.virtualLast = -1, this.isTooltipShown = !1, this.galleryItemTag = "cx-gallery-item", this.handleResize = this.handleResize.bind(this), this.handleScroll = this.handleScroll.bind(this);
18322
+ super(), this.localize = new Vn(this), this.bentoLayout = new klt(), this._scrollRaf = !1, this._viewportHeight = 0, this._resizeObserver = null, this._lastEmittedFirst = -1, this._lastEmittedLast = -2, this.data = [], this.breakpoints = [1 / 0, 1 / 0, 1 / 0], this.smallCardContentPosition = Ai.Top, this.largeCardContentPosition = Ai.Left, this.contentVariant = _h.Default, this.filler = sg.None, this.fillerMode = r1.Fit, this.maxColumns = 4, this.maxRows = 1 / 0, this.totalItems = 0, this.showContentType = nu.Always, this.emptyLabel = "", this.itemHeight = "", this.rowGap = "", this.columnGap = "", this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightSiblingsFadeOut = !1, this.effect = Sn.None, this.textRevealStyle = ea.Slide, this.zoomStyle = La.WithinBorders, this.itemAriaRoleDescription = "", this.accessibilityTooltip = void 0, this.easing = zn.Linear, this.containerStyles = {}, this.prevColumnCount = 0, this.filledData = [], this.hoveredItemId = void 0, this.scrollSize = 0, this.scrollOffset = 0, this.virtualFirst = 0, this.virtualLast = -1, this.isTooltipShown = !1, this.galleryItemTag = "cx-gallery-item", this.handleResize = this.handleResize.bind(this), this.handleScroll = this.handleScroll.bind(this);
18323
18323
  }
18324
18324
  /**
18325
18325
  * The gallery item literal tag.
@@ -18424,7 +18424,7 @@ let sr = class extends On {
18424
18424
  setupGrid() {
18425
18425
  const n = this.containerEl?.clientWidth || this.clientWidth || globalThis.innerWidth;
18426
18426
  let e;
18427
- if (this.breakpoints[2] === 1 / 0 && this.breakpoints[1] === 1 / 0 && this.breakpoints[0] === 1 / 0 || n > this.breakpoints[1] ? e = this.maxColumns : n > this.breakpoints[0] && n <= this.breakpoints[1] ? e = 2 : e = 1, this.filler === ag.Always || this.filler === ag.Responsive && e !== this.maxColumns) {
18427
+ if (this.breakpoints[2] === 1 / 0 && this.breakpoints[1] === 1 / 0 && this.breakpoints[0] === 1 / 0 || n > this.breakpoints[1] ? e = this.maxColumns : n > this.breakpoints[0] && n <= this.breakpoints[1] ? e = 2 : e = 1, this.filler === sg.Always || this.filler === sg.Responsive && e !== this.maxColumns) {
18428
18428
  this.filledData = [];
18429
18429
  let i = e;
18430
18430
  this.data.forEach((o, a) => {
@@ -18446,7 +18446,7 @@ let sr = class extends On {
18446
18446
  * Runs BentoLayout.compute() then updates scrollSize and active virtual range.
18447
18447
  */
18448
18448
  computeLayout(n, e) {
18449
- const t = this.filler === ag.None ? this.data : this.filledData;
18449
+ const t = this.filler === sg.None ? this.data : this.filledData;
18450
18450
  if (t.length === 0) {
18451
18451
  this.scrollSize = 0, this.virtualFirst = 0, this.virtualLast = -1, this.containerStyles = {
18452
18452
  ...this.containerStyles,
@@ -18470,7 +18470,7 @@ let sr = class extends On {
18470
18470
  }
18471
18471
  /** Recalculates which items fall within the current scroll viewport. */
18472
18472
  updateActiveRange(n) {
18473
- const e = n ?? (this.filler === ag.None ? this.data : this.filledData), t = this._viewportHeight || globalThis.innerHeight, { first: r, last: i } = this.bentoLayout.getActiveRange(
18473
+ const e = n ?? (this.filler === sg.None ? this.data : this.filledData), t = this._viewportHeight || globalThis.innerHeight, { first: r, last: i } = this.bentoLayout.getActiveRange(
18474
18474
  this.scrollOffset,
18475
18475
  t,
18476
18476
  1e3
@@ -18615,7 +18615,7 @@ let sr = class extends On {
18615
18615
  )}</${i}>`;
18616
18616
  }
18617
18617
  render() {
18618
- const n = this.filler === ag.None ? this.data : this.filledData, e = Math.max(0, this.virtualFirst), t = Math.max(-1, this.virtualLast), r = n.slice(e, t + 1);
18618
+ const n = this.filler === sg.None ? this.data : this.filledData, e = Math.max(0, this.virtualFirst), t = Math.max(-1, this.virtualLast), r = n.slice(e, t + 1);
18619
18619
  return rl`<cx-tooltip class="bento-grid__tooltip" content=${this.accessibilityTooltip} trigger="manual" hoist ?disabled=${this.data.length < 2 || !this.accessibilityTooltip}></cx-tooltip><div part="base" role="list" aria-roledescription=${this.localize.term(
18620
18620
  "galleryOfNSlides",
18621
18621
  this.data.length
@@ -18827,7 +18827,7 @@ Ir([
18827
18827
  ye()
18828
18828
  ], sr.prototype, "virtualLast", 2);
18829
18829
  Ir([
18830
- Dh(100)
18830
+ Mh(100)
18831
18831
  ], sr.prototype, "handleResize", 1);
18832
18832
  Ir([
18833
18833
  M9({ passive: !0 })
@@ -18874,7 +18874,7 @@ JT = _n([
18874
18874
  ], JT);
18875
18875
  let yn = class extends On {
18876
18876
  constructor() {
18877
- super(), this.galleryItemTag = "cx-gallery-item", this.data = [], this.chunk = [0, 1 / 0], this.totalData = 0, this.loop = !1, this.navigation = void 0, this.autoplay = !1, this.autoplayInterval = "3s", this.slidesPerPage = 1, this.slidesPerMove = 1, this.orientation = Gd.Horizontal, this.mouseDragging = !1, this.peekSlides = !1, this.transitionType = au.Slide, this.easing = zn.Linear, this.slideEasing = zn.Linear, this.emptyLabel = "", this.contentVariant = kh.Default, this.contentPosition = Ai.Top, this.showContentType = nu.Always, this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightSiblingsFadeOut = !1, this.effect = Sn.None, this.textRevealStyle = ea.Slide, this.zoomStyle = La.WithinBorders, this.accessibilityTooltip = void 0, this.itemAriaRoleDescription = "", this.activeSlide = 0, this.scrolling = !1, this.dragging = !1, this.transitioning = !1, this.loading = !1, this.pendingSlideChange = !1, this.fadeTimeout = null, this.fadeTransitionToken = 0, this.range = [0, this.slidesPerPage - 1], this.isChunked = !1, this.chunkOffset = 2, this.dragStartPosition = [-1, -1], this.hoveredItemId = void 0, this.dotPaginationFocusCount = 0, this.slideOrderChanged = !1, this.autoplayController = new Slt(
18877
+ super(), this.galleryItemTag = "cx-gallery-item", this.data = [], this.chunk = [0, 1 / 0], this.totalData = 0, this.loop = !1, this.navigation = void 0, this.autoplay = !1, this.autoplayInterval = "3s", this.slidesPerPage = 1, this.slidesPerMove = 1, this.orientation = Gd.Horizontal, this.mouseDragging = !1, this.peekSlides = !1, this.transitionType = au.Slide, this.easing = zn.Linear, this.slideEasing = zn.Linear, this.emptyLabel = "", this.contentVariant = _h.Default, this.contentPosition = Ai.Top, this.showContentType = nu.Always, this.highlightBorder = !1, this.highlightColorOverlay = !1, this.highlightDropShadow = !1, this.highlightBackground = !1, this.highlightSiblingsFadeOut = !1, this.effect = Sn.None, this.textRevealStyle = ea.Slide, this.zoomStyle = La.WithinBorders, this.accessibilityTooltip = void 0, this.itemAriaRoleDescription = "", this.activeSlide = 0, this.scrolling = !1, this.dragging = !1, this.transitioning = !1, this.loading = !1, this.pendingSlideChange = !1, this.fadeTimeout = null, this.fadeTransitionToken = 0, this.range = [0, this.slidesPerPage - 1], this.isChunked = !1, this.chunkOffset = 2, this.dragStartPosition = [-1, -1], this.hoveredItemId = void 0, this.dotPaginationFocusCount = 0, this.slideOrderChanged = !1, this.autoplayController = new Slt(
18878
18878
  this,
18879
18879
  () => this.next()
18880
18880
  ), this.localize = new Vn(this), this.instantScrollGap = 10, this.isTooltipShown = !1, this.pendingNavigationIndex = null, this.isProgrammaticFocus = !1, this.handleMouseDrag = (n) => {
@@ -19890,13 +19890,13 @@ _n([
19890
19890
  M9({ passive: !0 })
19891
19891
  ], yn.prototype, "handleScroll", 1);
19892
19892
  _n([
19893
- Dh(10)
19893
+ Mh(10)
19894
19894
  ], yn.prototype, "synchronizeSlides", 1);
19895
19895
  _n([
19896
- Dh(100)
19896
+ Mh(100)
19897
19897
  ], yn.prototype, "handleSlideContainerResize", 1);
19898
19898
  _n([
19899
- Dh(100),
19899
+ Mh(100),
19900
19900
  Tt("loop", { waitUntilFirstUpdate: !0 }),
19901
19901
  Tt("slidesPerPage", { waitUntilFirstUpdate: !0 }),
19902
19902
  Tt("transitionType", { waitUntilFirstUpdate: !0 }),
@@ -23411,7 +23411,7 @@ function Ry(n) {
23411
23411
  function By(n) {
23412
23412
  return "type" in n && n.type === "number";
23413
23413
  }
23414
- function Th(n) {
23414
+ function Eh(n) {
23415
23415
  return n !== null && typeof n == "object" && !Array.isArray(n);
23416
23416
  }
23417
23417
  function df(n) {
@@ -23424,7 +23424,7 @@ function El(n, e) {
23424
23424
  return;
23425
23425
  if (typeof r == "number" && Array.isArray(t))
23426
23426
  t = t[r];
23427
- else if (typeof r == "string" && Th(t))
23427
+ else if (typeof r == "string" && Eh(t))
23428
23428
  t = t[r];
23429
23429
  else
23430
23430
  return;
@@ -23439,11 +23439,11 @@ function yE(n, e, t) {
23439
23439
  const a = Array.isArray(n) ? [...n] : [];
23440
23440
  return a[r] = yE(a[r], i, t), a;
23441
23441
  }
23442
- const o = Th(n) ? { ...n } : {};
23442
+ const o = Eh(n) ? { ...n } : {};
23443
23443
  return o[r] = yE(o[r], i, t), o;
23444
23444
  }
23445
23445
  function mI(n, e) {
23446
- if (!Gs(n) || !Th(e))
23446
+ if (!Gs(n) || !Eh(e))
23447
23447
  return !1;
23448
23448
  const t = n.properties ?? {};
23449
23449
  for (const [r, i] of Object.entries(t)) {
@@ -23476,7 +23476,7 @@ function V1(n, e) {
23476
23476
  properties: { ...n.properties ?? {} },
23477
23477
  required: [...n.required ?? []]
23478
23478
  };
23479
- if (!Th(e))
23479
+ if (!Eh(e))
23480
23480
  return t;
23481
23481
  for (const r of n.allOf ?? [])
23482
23482
  r.if && r.then && mI(r.if, e) ? Gs(r.then) && (t = fI(t, r.then)) : r.if && r.else && !mI(r.if, e) && Gs(r.else) && (t = fI(t, r.else));
@@ -23511,7 +23511,7 @@ function v5(n) {
23511
23511
  return e.length > 0 && t.length === 1 ? { inner: t[0], nullable: !0 } : { inner: n, nullable: !1 };
23512
23512
  }
23513
23513
  function O$(n, e) {
23514
- if (!Th(e))
23514
+ if (!Eh(e))
23515
23515
  return 0;
23516
23516
  for (let t = 0; t < n.anyOf.length; t++) {
23517
23517
  const r = n.anyOf[t];
@@ -23555,7 +23555,7 @@ function G1(n) {
23555
23555
  if (n !== void 0) {
23556
23556
  if (Array.isArray(n))
23557
23557
  return n.map(G1).filter((e) => e !== void 0);
23558
- if (Th(n)) {
23558
+ if (Eh(n)) {
23559
23559
  const e = {};
23560
23560
  for (const [t, r] of Object.entries(n)) {
23561
23561
  if (r === void 0)
@@ -23574,7 +23574,7 @@ function o1(n, e, t, r) {
23574
23574
  return;
23575
23575
  const s = o;
23576
23576
  if (Pf(s)) {
23577
- if (!Th(e)) {
23577
+ if (!Eh(e)) {
23578
23578
  r.set(i, "Invalid value");
23579
23579
  return;
23580
23580
  }
@@ -23583,7 +23583,7 @@ function o1(n, e, t, r) {
23583
23583
  return;
23584
23584
  }
23585
23585
  if (Gs(s)) {
23586
- if (!Th(e)) {
23586
+ if (!Eh(e)) {
23587
23587
  r.set(i, "Expected object");
23588
23588
  return;
23589
23589
  }
@@ -23786,9 +23786,9 @@ var oht = Object.defineProperty, aht = Object.getOwnPropertyDescriptor, pm = (n,
23786
23786
  (a = n[o]) && (i = (r ? a(e, t, i) : a(i)) || i);
23787
23787
  return r && i && oht(e, t, i), i;
23788
23788
  };
23789
- const sg = (n) => n !== null && typeof n == "object" && !Array.isArray(n);
23789
+ const cg = (n) => n !== null && typeof n == "object" && !Array.isArray(n);
23790
23790
  function yI(n) {
23791
- return sg(n) && (n.type === "AND" || n.type === "OR") && Array.isArray(n.filters);
23791
+ return cg(n) && (n.type === "AND" || n.type === "OR") && Array.isArray(n.filters);
23792
23792
  }
23793
23793
  function qp(n) {
23794
23794
  return "title" in n && typeof n.title == "string" ? n.title : "";
@@ -23813,13 +23813,13 @@ let xu = class extends On {
23813
23813
  this.schemaByPath.clear(), super.willUpdate(n);
23814
23814
  }
23815
23815
  runConnectedCallback() {
23816
- this.value && sg(this.value) ? this.draft = structuredClone(this.value) : Object.keys(this.draft).length === 0 && (this.draft = vI(this.schema)), this.revalidate();
23816
+ this.value && cg(this.value) ? this.draft = structuredClone(this.value) : Object.keys(this.draft).length === 0 && (this.draft = vI(this.schema)), this.revalidate();
23817
23817
  }
23818
23818
  handleSchemaChange() {
23819
23819
  this.draft = vI(this.schema), this.revalidate(), this.emitPlanChange();
23820
23820
  }
23821
23821
  handleValuePropertyChange() {
23822
- this.value && sg(this.value) && (this.draft = structuredClone(this.value), this.revalidate());
23822
+ this.value && cg(this.value) && (this.draft = structuredClone(this.value), this.revalidate());
23823
23823
  }
23824
23824
  /** Returns validation-clean JSON for the current draft. */
23825
23825
  serialize() {
@@ -23933,7 +23933,7 @@ let xu = class extends On {
23933
23933
  return this.renderNullableScalar(r, e, t, n);
23934
23934
  if (Pf(r)) {
23935
23935
  const o = El(this.draft, e);
23936
- return sg(o) ? this.renderAnyOfObject(r, e, t) : this.renderScalarAnyOfPlaceholder(r, e, t);
23936
+ return cg(o) ? this.renderAnyOfObject(r, e, t) : this.renderScalarAnyOfPlaceholder(r, e, t);
23937
23937
  }
23938
23938
  return Gs(r) ? this.renderObject(r, e, t) : Eb(r) ? this.renderArray(r, e, t) : this.renderLeaf(r, e, t);
23939
23939
  }
@@ -23976,10 +23976,10 @@ let xu = class extends On {
23976
23976
  return e;
23977
23977
  }
23978
23978
  renderAnyOfObject(n, e, t) {
23979
- const r = El(this.draft, e), i = O$(n, r), o = n.anyOf.length > 0 ? n.anyOf[i] ?? n.anyOf[0] : void 0, a = yI(r) && (r.type === "AND" || r.type === "OR"), s = this.pathToAttr(e), c = this.anyOfBranchSelectOptions(n), l = V`<cx-space class="anyof-head" direction="vertical" spacing="2x-small"><cx-select data-chart-path=${s} label=${qp(n) || "Variant"} ?disabled=${t.disabled} ?required=${this.controlRequired(t)} value=${String(i)} @cx-change=${this.handleAnyOfDiscriminatorChange}>${c}</cx-select>${this.renderError(e)}</cx-space>`, d = o !== void 0 && Gs(o) && sg(r) ? this.renderObjectBody(o, e, t, r) : ho;
23979
+ const r = El(this.draft, e), i = O$(n, r), o = n.anyOf.length > 0 ? n.anyOf[i] ?? n.anyOf[0] : void 0, a = yI(r) && (r.type === "AND" || r.type === "OR"), s = this.pathToAttr(e), c = this.anyOfBranchSelectOptions(n), l = V`<cx-space class="anyof-head" direction="vertical" spacing="2x-small"><cx-select data-chart-path=${s} label=${qp(n) || "Variant"} ?disabled=${t.disabled} ?required=${this.controlRequired(t)} value=${String(i)} @cx-change=${this.handleAnyOfDiscriminatorChange}>${c}</cx-select>${this.renderError(e)}</cx-space>`, d = o !== void 0 && Gs(o) && cg(r) ? this.renderObjectBody(o, e, t, r) : ho;
23980
23980
  if (a) {
23981
23981
  let p = qp(n) || "Filter group";
23982
- if (sg(r) && typeof r.type == "string") {
23982
+ if (cg(r) && typeof r.type == "string") {
23983
23983
  const h = yI(r) ? r.filters.length : 0;
23984
23984
  p = `${r.type} group (${h})`;
23985
23985
  }
@@ -23988,7 +23988,7 @@ let xu = class extends On {
23988
23988
  return V`<cx-space direction="vertical" spacing="small">${l} ${d}</cx-space>`;
23989
23989
  }
23990
23990
  renderObject(n, e, t) {
23991
- const r = El(this.draft, e), i = sg(r) ? r : {}, o = V1(n, i), a = Qpt(n), s = bI(a), c = [];
23991
+ const r = El(this.draft, e), i = cg(r) ? r : {}, o = V1(n, i), a = Qpt(n), s = bI(a), c = [];
23992
23992
  for (const d of s) {
23993
23993
  const p = eht(n, d);
23994
23994
  if (!p)
@@ -24170,7 +24170,7 @@ const cht = bn`
24170
24170
  pointer-events: none;
24171
24171
  }
24172
24172
  `;
24173
- var dht = Object.defineProperty, uht = Object.getOwnPropertyDescriptor, Nh = (n, e, t, r) => {
24173
+ var dht = Object.defineProperty, uht = Object.getOwnPropertyDescriptor, Lh = (n, e, t, r) => {
24174
24174
  for (var i = r > 1 ? void 0 : r ? uht(e, t) : e, o = n.length - 1, a; o >= 0; o--)
24175
24175
  (a = n[o]) && (i = (r ? a(e, t, i) : a(i)) || i);
24176
24176
  return r && i && dht(e, t, i), i;
@@ -24210,52 +24210,52 @@ Yl.styles = [Tn, lht];
24210
24210
  Yl.dependencies = {
24211
24211
  "cx-range": g9
24212
24212
  };
24213
- Nh([
24213
+ Lh([
24214
24214
  $({
24215
24215
  attribute: "service-id",
24216
24216
  reflect: !0,
24217
24217
  type: String
24218
24218
  })
24219
24219
  ], Yl.prototype, "serviceId", 2);
24220
- Nh([
24220
+ Lh([
24221
24221
  $({
24222
24222
  attribute: "min-node-count",
24223
24223
  reflect: !0,
24224
24224
  type: Number
24225
24225
  })
24226
24226
  ], Yl.prototype, "minNodeCount", 2);
24227
- Nh([
24227
+ Lh([
24228
24228
  $({
24229
24229
  attribute: "max-node-count",
24230
24230
  reflect: !0,
24231
24231
  type: Number
24232
24232
  })
24233
24233
  ], Yl.prototype, "maxNodeCount", 2);
24234
- Nh([
24234
+ Lh([
24235
24235
  $({
24236
24236
  attribute: "running-count",
24237
24237
  reflect: !0,
24238
24238
  type: Number
24239
24239
  })
24240
24240
  ], Yl.prototype, "runningCount", 2);
24241
- Nh([
24241
+ Lh([
24242
24242
  $({
24243
24243
  attribute: "desired-count",
24244
24244
  reflect: !0,
24245
24245
  type: Number
24246
24246
  })
24247
24247
  ], Yl.prototype, "desiredCount", 2);
24248
- Nh([
24248
+ Lh([
24249
24249
  $({
24250
24250
  attribute: "visual-desired-count",
24251
24251
  reflect: !0,
24252
24252
  type: Number
24253
24253
  })
24254
24254
  ], Yl.prototype, "visualDesiredCount", 2);
24255
- Nh([
24255
+ Lh([
24256
24256
  $({ reflect: !0, type: Boolean })
24257
24257
  ], Yl.prototype, "readonly", 2);
24258
- Yl = Nh([
24258
+ Yl = Lh([
24259
24259
  wn("cx-cluster-management-service")
24260
24260
  ], Yl);
24261
24261
  var pht = Object.defineProperty, hht = Object.getOwnPropertyDescriptor, ac = (n, e, t, r) => {
@@ -25428,7 +25428,7 @@ class J1 {
25428
25428
  }
25429
25429
  }
25430
25430
  const yht = /* @__PURE__ */ Object.create(null);
25431
- let mh = class xE {
25431
+ let fh = class xE {
25432
25432
  /**
25433
25433
  @internal
25434
25434
  */
@@ -25797,8 +25797,8 @@ let mh = class xE {
25797
25797
  return o.type.checkAttrs(o.attrs), o;
25798
25798
  }
25799
25799
  };
25800
- mh.prototype.text = void 0;
25801
- class Z1 extends mh {
25800
+ fh.prototype.text = void 0;
25801
+ class Z1 extends fh {
25802
25802
  /**
25803
25803
  @internal
25804
25804
  */
@@ -26304,7 +26304,7 @@ let _I = class W$ {
26304
26304
  create(e = null, t, r) {
26305
26305
  if (this.isText)
26306
26306
  throw new Error("NodeType.create can't construct text nodes");
26307
- return new mh(this, this.computeAttrs(e), $t.from(t), Oi.setFrom(r));
26307
+ return new fh(this, this.computeAttrs(e), $t.from(t), Oi.setFrom(r));
26308
26308
  }
26309
26309
  /**
26310
26310
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -26312,7 +26312,7 @@ let _I = class W$ {
26312
26312
  if it doesn't match.
26313
26313
  */
26314
26314
  createChecked(e = null, t, r) {
26315
- return t = $t.from(t), this.checkContent(t), new mh(this, this.computeAttrs(e), t, Oi.setFrom(r));
26315
+ return t = $t.from(t), this.checkContent(t), new fh(this, this.computeAttrs(e), t, Oi.setFrom(r));
26316
26316
  }
26317
26317
  /**
26318
26318
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -26330,7 +26330,7 @@ let _I = class W$ {
26330
26330
  t = a.append(t);
26331
26331
  }
26332
26332
  let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore($t.empty, !0);
26333
- return o ? new mh(this, e, t.append(o), Oi.setFrom(r)) : null;
26333
+ return o ? new fh(this, e, t.append(o), Oi.setFrom(r)) : null;
26334
26334
  }
26335
26335
  /**
26336
26336
  Returns true if the given fragment is valid content for this node
@@ -26537,7 +26537,7 @@ let Oht = class {
26537
26537
  bound.
26538
26538
  */
26539
26539
  nodeFromJSON(e) {
26540
- return mh.fromJSON(this, e);
26540
+ return fh.fromJSON(this, e);
26541
26541
  }
26542
26542
  /**
26543
26543
  Deserialize a mark from its JSON representation. This method is
@@ -27738,7 +27738,7 @@ let x5 = class SE extends Cs {
27738
27738
  }
27739
27739
  };
27740
27740
  Cs.jsonID("removeNodeMark", x5);
27741
- let Dd = class cg extends Cs {
27741
+ let Dd = class lg extends Cs {
27742
27742
  /**
27743
27743
  The given `slice` should fit the 'gap' between `from` and
27744
27744
  `to`—the depths must line up, and the surrounding nodes must be
@@ -27758,21 +27758,21 @@ let Dd = class cg extends Cs {
27758
27758
  return new Kg([this.from, this.to - this.from, this.slice.size]);
27759
27759
  }
27760
27760
  invert(e) {
27761
- return new cg(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
27761
+ return new lg(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
27762
27762
  }
27763
27763
  map(e) {
27764
27764
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
27765
- return t.deletedAcross && r.deletedAcross ? null : new cg(t.pos, Math.max(t.pos, r.pos), this.slice);
27765
+ return t.deletedAcross && r.deletedAcross ? null : new lg(t.pos, Math.max(t.pos, r.pos), this.slice);
27766
27766
  }
27767
27767
  merge(e) {
27768
- if (!(e instanceof cg) || e.structure || this.structure)
27768
+ if (!(e instanceof lg) || e.structure || this.structure)
27769
27769
  return null;
27770
27770
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
27771
27771
  let t = this.slice.size + e.slice.size == 0 ? un.empty : new un(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
27772
- return new cg(this.from, this.to + (e.to - e.from), t, this.structure);
27772
+ return new lg(this.from, this.to + (e.to - e.from), t, this.structure);
27773
27773
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
27774
27774
  let t = this.slice.size + e.slice.size == 0 ? un.empty : new un(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
27775
- return new cg(e.from, this.to, t, this.structure);
27775
+ return new lg(e.from, this.to, t, this.structure);
27776
27776
  } else
27777
27777
  return null;
27778
27778
  }
@@ -27786,7 +27786,7 @@ let Dd = class cg extends Cs {
27786
27786
  static fromJSON(e, t) {
27787
27787
  if (typeof t.from != "number" || typeof t.to != "number")
27788
27788
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
27789
- return new cg(t.from, t.to, un.fromJSON(e, t.slice), !!t.structure);
27789
+ return new lg(t.from, t.to, un.fromJSON(e, t.slice), !!t.structure);
27790
27790
  }
27791
27791
  };
27792
27792
  Cs.jsonID("replace", Dd);
@@ -28065,7 +28065,7 @@ function Yht(n, e, t = 1, r) {
28065
28065
  }
28066
28066
  n.step(new Dd(e, e, new un(o.append(a), t, t), !0));
28067
28067
  }
28068
- function Lh(n, e) {
28068
+ function Rh(n, e) {
28069
28069
  let t = n.resolve(e), r = t.index();
28070
28070
  return oj(t.nodeBefore, t.nodeAfter) && t.parent.canReplace(r, r + 1);
28071
28071
  }
@@ -29478,7 +29478,7 @@ class Sg {
29478
29478
  let i = new AC(e.schema, e.plugins), o = new Sg(i);
29479
29479
  return i.fields.forEach((a) => {
29480
29480
  if (a.name == "doc")
29481
- o.doc = mh.fromJSON(e.schema, t.doc);
29481
+ o.doc = fh.fromJSON(e.schema, t.doc);
29482
29482
  else if (a.name == "selection")
29483
29483
  o.selection = jn.fromJSON(o.doc, t.selection);
29484
29484
  else if (a.name == "storedMarks")
@@ -29627,7 +29627,7 @@ function m0(n) {
29627
29627
  const Nk = function(n) {
29628
29628
  return n.focusNode && Yg(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
29629
29629
  };
29630
- function ug(n, e) {
29630
+ function pg(n, e) {
29631
29631
  let t = document.createEvent("Event");
29632
29632
  return t.initEvent("keydown", !0, !0), t.keyCode = n, t.key = t.code = e, t;
29633
29633
  }
@@ -29651,9 +29651,9 @@ function ggt(n, e, t) {
29651
29651
  return { node: r.startContainer, offset: Math.min(Fl(r.startContainer), r.startOffset) };
29652
29652
  }
29653
29653
  }
29654
- const ku = typeof navigator < "u" ? navigator : null, $I = typeof document < "u" ? document : null, Rh = ku && ku.userAgent || "", OE = /Edge\/(\d+)/.exec(Rh), fj = /MSIE \d/.exec(Rh), IE = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Rh), Mc = !!(fj || IE || OE), fh = fj ? document.documentMode : IE ? +IE[1] : OE ? +OE[1] : 0, Md = !Mc && /gecko\/(\d+)/i.test(Rh);
29655
- Md && +(/Firefox\/(\d+)/.exec(Rh) || [0, 0])[1];
29656
- const DE = !Mc && /Chrome\/(\d+)/.exec(Rh), fs = !!DE, vj = DE ? +DE[1] : 0, ec = !Mc && !!ku && /Apple Computer/.test(ku.vendor), Xf = ec && (/Mobile\/\w+/.test(Rh) || !!ku && ku.maxTouchPoints > 2), Ll = Xf || (ku ? /Mac/.test(ku.platform) : !1), mgt = ku ? /Win/.test(ku.platform) : !1, op = /Android \d/.test(Rh), f0 = !!$I && "webkitFontSmoothing" in $I.documentElement.style, fgt = f0 ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29654
+ const ku = typeof navigator < "u" ? navigator : null, $I = typeof document < "u" ? document : null, Bh = ku && ku.userAgent || "", OE = /Edge\/(\d+)/.exec(Bh), fj = /MSIE \d/.exec(Bh), IE = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Bh), Mc = !!(fj || IE || OE), vh = fj ? document.documentMode : IE ? +IE[1] : OE ? +OE[1] : 0, Md = !Mc && /gecko\/(\d+)/i.test(Bh);
29655
+ Md && +(/Firefox\/(\d+)/.exec(Bh) || [0, 0])[1];
29656
+ const DE = !Mc && /Chrome\/(\d+)/.exec(Bh), fs = !!DE, vj = DE ? +DE[1] : 0, ec = !Mc && !!ku && /Apple Computer/.test(ku.vendor), Xf = ec && (/Mobile\/\w+/.test(Bh) || !!ku && ku.maxTouchPoints > 2), Ll = Xf || (ku ? /Mac/.test(ku.platform) : !1), mgt = ku ? /Win/.test(ku.platform) : !1, op = /Android \d/.test(Bh), f0 = !!$I && "webkitFontSmoothing" in $I.documentElement.style, fgt = f0 ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
29657
29657
  function vgt(n) {
29658
29658
  let e = n.defaultView && n.defaultView.visualViewport;
29659
29659
  return e ? {
@@ -30412,7 +30412,7 @@ class Xg extends v0 {
30412
30412
  this.spec.destroy && this.spec.destroy(), super.destroy();
30413
30413
  }
30414
30414
  }
30415
- class vh extends v0 {
30415
+ class yh extends v0 {
30416
30416
  constructor(e, t, r, i, o, a, s, c, l) {
30417
30417
  super(e, [], o, a), this.node = t, this.outerDeco = r, this.innerDeco = i, this.nodeDOM = s;
30418
30418
  }
@@ -30440,7 +30440,7 @@ class vh extends v0 {
30440
30440
  } else d || ({ dom: d, contentDOM: p } = Ou.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
30441
30441
  !p && !t.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), t.type.spec.draggable && (d.draggable = !0));
30442
30442
  let h = d;
30443
- return d = Aj(d, r, t), l ? c = new Pgt(e, t, r, i, d, p || null, h, l, o, a + 1) : t.isText ? new Lk(e, t, r, i, d, h, o) : new vh(e, t, r, i, d, p || null, h, o, a + 1);
30443
+ return d = Aj(d, r, t), l ? c = new Pgt(e, t, r, i, d, p || null, h, l, o, a + 1) : t.isText ? new Lk(e, t, r, i, d, h, o) : new yh(e, t, r, i, d, p || null, h, o, a + 1);
30444
30444
  }
30445
30445
  parseRule() {
30446
30446
  if (this.node.type.spec.reparseInView)
@@ -30540,10 +30540,10 @@ class vh extends v0 {
30540
30540
  }
30541
30541
  function GI(n, e, t, r, i) {
30542
30542
  Aj(r, e, n);
30543
- let o = new vh(void 0, n, e, t, r, r, r, i, 0);
30543
+ let o = new yh(void 0, n, e, t, r, r, r, i, 0);
30544
30544
  return o.contentDOM && o.updateChildren(i, 0), o;
30545
30545
  }
30546
- class Lk extends vh {
30546
+ class Lk extends yh {
30547
30547
  constructor(e, t, r, i, o, a, s) {
30548
30548
  super(e, t, r, i, o, null, a, s, 0);
30549
30549
  }
@@ -30600,7 +30600,7 @@ class Sj extends v0 {
30600
30600
  return this.dom.nodeName == "IMG";
30601
30601
  }
30602
30602
  }
30603
- class Pgt extends vh {
30603
+ class Pgt extends yh {
30604
30604
  constructor(e, t, r, i, o, a, s, c, l, d) {
30605
30605
  super(e, t, r, i, o, a, s, l, d), this.spec = c;
30606
30606
  }
@@ -30811,7 +30811,7 @@ class Lgt {
30811
30811
  updateNextNode(e, t, r, i, o, a) {
30812
30812
  for (let s = this.index; s < this.top.children.length; s++) {
30813
30813
  let c = this.top.children[s];
30814
- if (c instanceof vh) {
30814
+ if (c instanceof yh) {
30815
30815
  let l = this.preMatch.matched.get(c);
30816
30816
  if (l != null && l != o)
30817
30817
  return !1;
@@ -30830,7 +30830,7 @@ class Lgt {
30830
30830
  recreateWrapper(e, t, r, i, o, a) {
30831
30831
  if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !Q1(r, e.outerDeco) || !i.eq(e.innerDeco))
30832
30832
  return null;
30833
- let s = vh.create(this.top, t, r, i, o, a);
30833
+ let s = yh.create(this.top, t, r, i, o, a);
30834
30834
  if (s.contentDOM) {
30835
30835
  s.children = e.children, e.children = [];
30836
30836
  for (let c of s.children)
@@ -30840,7 +30840,7 @@ class Lgt {
30840
30840
  }
30841
30841
  // Insert the node as a newly created node desc.
30842
30842
  addNode(e, t, r, i, o) {
30843
- let a = vh.create(this.top, e, t, r, i, o);
30843
+ let a = yh.create(this.top, e, t, r, i, o);
30844
30844
  a.contentDOM && a.updateChildren(i, o + 1), this.top.children.splice(this.index++, 0, a), this.changed = !0;
30845
30845
  }
30846
30846
  placeWidget(e, t, r) {
@@ -31084,7 +31084,7 @@ function Hgt(n) {
31084
31084
  if (!e)
31085
31085
  return;
31086
31086
  let r = n.cursorWrapper.dom, i = r.nodeName == "IMG";
31087
- i ? t.setStart(r.parentNode, Qa(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && Mc && fh <= 11 && (r.disabled = !0, r.disabled = !1);
31087
+ i ? t.setStart(r.parentNode, Qa(r) + 1) : t.setStart(r, 0), t.collapse(!0), e.removeAllRanges(), e.addRange(t), !i && !n.state.selection.visible && Mc && vh <= 11 && (r.disabled = !0, r.disabled = !1);
31088
31088
  }
31089
31089
  function Ij(n, e) {
31090
31090
  if (e instanceof In) {
@@ -31571,7 +31571,7 @@ function omt(n) {
31571
31571
  }
31572
31572
  ec && n.dom.addEventListener("input", () => null), BE(n);
31573
31573
  }
31574
- function lh(n, e) {
31574
+ function dh(n, e) {
31575
31575
  n.input.lastSelectionOrigin = e, n.input.lastSelectionTime = Date.now();
31576
31576
  }
31577
31577
  function amt(n) {
@@ -31611,9 +31611,9 @@ nc.keydown = (n, e) => {
31611
31611
  if (t.keyCode != 229 && n.domObserver.forceFlush(), Xf && t.keyCode == 13 && !t.ctrlKey && !t.altKey && !t.metaKey) {
31612
31612
  let r = Date.now();
31613
31613
  n.input.lastIOSEnter = r, n.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
31614
- n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, ug(13, "Enter"))), n.input.lastIOSEnter = 0);
31614
+ n.input.lastIOSEnter == r && (n.someProp("handleKeyDown", (i) => i(n, pg(13, "Enter"))), n.input.lastIOSEnter = 0);
31615
31615
  }, 200);
31616
- } else n.someProp("handleKeyDown", (r) => r(n, t)) || Xgt(n, t) ? t.preventDefault() : lh(n, "key");
31616
+ } else n.someProp("handleKeyDown", (r) => r(n, t)) || Xgt(n, t) ? t.preventDefault() : dh(n, "key");
31617
31617
  };
31618
31618
  nc.keyup = (n, e) => {
31619
31619
  e.keyCode == 16 && (n.input.shiftKey = !1);
@@ -31712,7 +31712,7 @@ tc.mousedown = (n, e) => {
31712
31712
  let r = D5(n), i = Date.now(), o = "singleClick";
31713
31713
  i - n.input.lastClick.time < 500 && lmt(t, n.input.lastClick) && !t[$j] && (n.input.lastClick.type == "singleClick" ? o = "doubleClick" : n.input.lastClick.type == "doubleClick" && (o = "tripleClick")), n.input.lastClick = { time: i, x: t.clientX, y: t.clientY, type: o };
31714
31714
  let a = n.posAtCoords(Rk(t));
31715
- a && (o == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new fmt(n, a, t, !!r)) : (o == "doubleClick" ? hmt : gmt)(n, a.pos, a.inside, t) ? t.preventDefault() : lh(n, "pointer"));
31715
+ a && (o == "singleClick" ? (n.input.mouseDown && n.input.mouseDown.done(), n.input.mouseDown = new fmt(n, a, t, !!r)) : (o == "doubleClick" ? hmt : gmt)(n, a.pos, a.inside, t) ? t.preventDefault() : dh(n, "pointer"));
31716
31716
  };
31717
31717
  class fmt {
31718
31718
  constructor(e, t, r, i) {
@@ -31734,7 +31734,7 @@ class fmt {
31734
31734
  setUneditable: !!(this.target && Md && !this.target.hasAttribute("contentEditable"))
31735
31735
  }), this.target && this.mightDrag && (this.mightDrag.addAttr || this.mightDrag.setUneditable) && (this.view.domObserver.stop(), this.mightDrag.addAttr && (this.target.draggable = !0), this.mightDrag.setUneditable && setTimeout(() => {
31736
31736
  this.view.input.mouseDown == this && this.target.setAttribute("contentEditable", "false");
31737
- }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), lh(e, "pointer");
31737
+ }, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), dh(e, "pointer");
31738
31738
  }
31739
31739
  done() {
31740
31740
  this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => gp(this.view)), this.view.input.mouseDown = null;
@@ -31743,7 +31743,7 @@ class fmt {
31743
31743
  if (this.done(), !this.view.dom.contains(e.target))
31744
31744
  return;
31745
31745
  let t = this.pos;
31746
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Rk(e))), this.updateAllowDefault(e), this.allowDefault || !t ? lh(this.view, "pointer") : pmt(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
31746
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(Rk(e))), this.updateAllowDefault(e), this.allowDefault || !t ? dh(this.view, "pointer") : pmt(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
31747
31747
  ec && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
31748
31748
  // cursor, but still report that the node is selected
31749
31749
  // when asked through getSelection. You'll then get a
@@ -31751,20 +31751,20 @@ class fmt {
31751
31751
  // (hidden) cursor is doesn't change the selection, and
31752
31752
  // thus doesn't get a reaction from ProseMirror. This
31753
31753
  // works around that.
31754
- fs && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Lf(this.view, jn.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : lh(this.view, "pointer");
31754
+ fs && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (Lf(this.view, jn.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : dh(this.view, "pointer");
31755
31755
  }
31756
31756
  move(e) {
31757
- this.updateAllowDefault(e), lh(this.view, "pointer"), e.buttons == 0 && this.done();
31757
+ this.updateAllowDefault(e), dh(this.view, "pointer"), e.buttons == 0 && this.done();
31758
31758
  }
31759
31759
  updateAllowDefault(e) {
31760
31760
  !this.allowDefault && (Math.abs(this.event.x - e.clientX) > 4 || Math.abs(this.event.y - e.clientY) > 4) && (this.allowDefault = !0);
31761
31761
  }
31762
31762
  }
31763
31763
  tc.touchstart = (n) => {
31764
- n.input.lastTouch = Date.now(), D5(n), lh(n, "pointer");
31764
+ n.input.lastTouch = Date.now(), D5(n), dh(n, "pointer");
31765
31765
  };
31766
31766
  tc.touchmove = (n) => {
31767
- n.input.lastTouch = Date.now(), lh(n, "pointer");
31767
+ n.input.lastTouch = Date.now(), dh(n, "pointer");
31768
31768
  };
31769
31769
  tc.contextmenu = (n) => D5(n);
31770
31770
  function jj(n, e) {
@@ -31847,7 +31847,7 @@ function wmt(n, e) {
31847
31847
  t.parentNode && t.parentNode.removeChild(t), n.focus();
31848
31848
  }, 50);
31849
31849
  }
31850
- const Db = Mc && fh < 15 || Xf && fgt < 604;
31850
+ const Db = Mc && vh < 15 || Xf && fgt < 604;
31851
31851
  tc.copy = nc.cut = (n, e) => {
31852
31852
  let t = e, r = n.state.selection, i = t.type == "cut";
31853
31853
  if (r.empty)
@@ -31972,7 +31972,7 @@ tc.beforeinput = (n, e) => {
31972
31972
  n.domObserver.flushSoon();
31973
31973
  let { domChangeCount: r } = n.input;
31974
31974
  setTimeout(() => {
31975
- if (n.input.domChangeCount != r || (n.dom.blur(), n.focus(), n.someProp("handleKeyDown", (o) => o(n, ug(8, "Backspace")))))
31975
+ if (n.input.domChangeCount != r || (n.dom.blur(), n.focus(), n.someProp("handleKeyDown", (o) => o(n, pg(8, "Backspace")))))
31976
31976
  return;
31977
31977
  let { $cursor: i } = n.state.selection;
31978
31978
  i && i.pos > 0 && n.dispatch(n.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
@@ -32010,7 +32010,7 @@ class nx {
32010
32010
  this.spec.destroy && this.spec.destroy(e);
32011
32011
  }
32012
32012
  }
32013
- class yh {
32013
+ class bh {
32014
32014
  constructor(e, t) {
32015
32015
  this.attrs = e, this.spec = t || Fg;
32016
32016
  }
@@ -32022,10 +32022,10 @@ class yh {
32022
32022
  return t.from < t.to;
32023
32023
  }
32024
32024
  eq(e) {
32025
- return this == e || e instanceof yh && Pb(this.attrs, e.attrs) && Pb(this.spec, e.spec);
32025
+ return this == e || e instanceof bh && Pb(this.attrs, e.attrs) && Pb(this.spec, e.spec);
32026
32026
  }
32027
32027
  static is(e) {
32028
- return e.type instanceof yh;
32028
+ return e.type instanceof bh;
32029
32029
  }
32030
32030
  destroy() {
32031
32031
  }
@@ -32092,7 +32092,7 @@ class Ii {
32092
32092
  each inline node between `from` and `to`.
32093
32093
  */
32094
32094
  static inline(e, t, r, i) {
32095
- return new Ii(e, t, new yh(r, i));
32095
+ return new Ii(e, t, new bh(r, i));
32096
32096
  }
32097
32097
  /**
32098
32098
  Creates a node decoration. `from` and `to` should point precisely
@@ -32113,7 +32113,7 @@ class Ii {
32113
32113
  @internal
32114
32114
  */
32115
32115
  get inline() {
32116
- return this.type instanceof yh;
32116
+ return this.type instanceof bh;
32117
32117
  }
32118
32118
  /**
32119
32119
  @internal
@@ -32244,7 +32244,7 @@ class mr {
32244
32244
  let o = e + 1, a = o + t.content.size;
32245
32245
  for (let s = 0; s < this.local.length; s++) {
32246
32246
  let c = this.local[s];
32247
- if (c.from < a && c.to > o && c.type instanceof yh) {
32247
+ if (c.from < a && c.to > o && c.type instanceof bh) {
32248
32248
  let l = Math.max(o, c.from) - o, d = Math.min(a, c.to) - o;
32249
32249
  l < d && (i || (i = [])).push(c.copy(l, d));
32250
32250
  }
@@ -32283,11 +32283,11 @@ class mr {
32283
32283
  localsInner(e) {
32284
32284
  if (this == hs)
32285
32285
  return Jm;
32286
- if (e.inlineContent || !this.local.some(yh.is))
32286
+ if (e.inlineContent || !this.local.some(bh.is))
32287
32287
  return this.local;
32288
32288
  let t = [];
32289
32289
  for (let r = 0; r < this.local.length; r++)
32290
- this.local[r].type instanceof yh || t.push(this.local[r]);
32290
+ this.local[r].type instanceof bh || t.push(this.local[r]);
32291
32291
  return t;
32292
32292
  }
32293
32293
  forEachSet(e) {
@@ -32496,7 +32496,7 @@ const Smt = {
32496
32496
  attributes: !0,
32497
32497
  attributeOldValue: !0,
32498
32498
  subtree: !0
32499
- }, Tmt = Mc && fh <= 11;
32499
+ }, Tmt = Mc && vh <= 11;
32500
32500
  class Emt {
32501
32501
  constructor() {
32502
32502
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
@@ -32516,7 +32516,7 @@ class Amt {
32516
32516
  this.view = e, this.handleDOMChange = t, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new Emt(), this.onCharData = null, this.suppressingSelectionUpdates = !1, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
32517
32517
  for (let i = 0; i < r.length; i++)
32518
32518
  this.queue.push(r[i]);
32519
- Mc && fh <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
32519
+ Mc && vh <= 11 && r.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
32520
32520
  }), Tmt && (this.onCharData = (r) => {
32521
32521
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
32522
32522
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
@@ -32557,7 +32557,7 @@ class Amt {
32557
32557
  if (QI(this.view)) {
32558
32558
  if (this.suppressingSelectionUpdates)
32559
32559
  return gp(this.view);
32560
- if (Mc && fh <= 11 && !this.view.state.selection.empty) {
32560
+ if (Mc && vh <= 11 && !this.view.state.selection.empty) {
32561
32561
  let e = this.view.domSelectionRange();
32562
32562
  if (e.focusNode && Yg(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
32563
32563
  return this.flushSoon();
@@ -32635,7 +32635,7 @@ class Amt {
32635
32635
  if (r.contentDOM && r.contentDOM != r.dom && !r.contentDOM.contains(e.target))
32636
32636
  return { from: r.posBefore, to: r.posAfter };
32637
32637
  let i = e.previousSibling, o = e.nextSibling;
32638
- if (Mc && fh <= 11 && e.addedNodes.length)
32638
+ if (Mc && vh <= 11 && e.addedNodes.length)
32639
32639
  for (let d = 0; d < e.addedNodes.length; d++) {
32640
32640
  let { previousSibling: p, nextSibling: h } = e.addedNodes[d];
32641
32641
  (!p || Array.prototype.indexOf.call(e.addedNodes, p) < 0) && (i = p), (!h || Array.prototype.indexOf.call(e.addedNodes, h) < 0) && (o = h);
@@ -32734,7 +32734,7 @@ function Lmt(n, e, t, r, i) {
32734
32734
  if (n.input.compositionPendingChanges = 0, e < 0) {
32735
32735
  let N = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, X = E5(n, N);
32736
32736
  if (X && !n.state.selection.eq(X)) {
32737
- if (fs && op && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (R) => R(n, ug(13, "Enter"))))
32737
+ if (fs && op && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (R) => R(n, pg(13, "Enter"))))
32738
32738
  return;
32739
32739
  let B = n.state.tr.setSelection(X);
32740
32740
  N == "pointer" ? B.setMeta("pointer", !0) : N == "key" && B.scrollIntoView(), o && B.setMeta("composition", o), n.dispatch(B);
@@ -32746,7 +32746,7 @@ function Lmt(n, e, t, r, i) {
32746
32746
  let c = n.state.selection, l = Mmt(n, e, t), d = n.state.doc, p = d.slice(l.from, l.to), h, m;
32747
32747
  n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (h = n.state.selection.to, m = "end") : (h = n.state.selection.from, m = "start"), n.input.lastKeyCode = null;
32748
32748
  let f = Fmt(p.content, l.doc.content, l.from, h, m);
32749
- if (f && n.input.domChangeCount++, (Xf && n.input.lastIOSEnter > Date.now() - 225 || op) && i.some((N) => N.nodeType == 1 && !Nmt.test(N.nodeName)) && (!f || f.endA >= f.endB) && n.someProp("handleKeyDown", (N) => N(n, ug(13, "Enter")))) {
32749
+ if (f && n.input.domChangeCount++, (Xf && n.input.lastIOSEnter > Date.now() - 225 || op) && i.some((N) => N.nodeType == 1 && !Nmt.test(N.nodeName)) && (!f || f.endA >= f.endB) && n.someProp("handleKeyDown", (N) => N(n, pg(13, "Enter")))) {
32750
32750
  n.input.lastIOSEnter = 0;
32751
32751
  return;
32752
32752
  }
@@ -32763,25 +32763,25 @@ function Lmt(n, e, t, r, i) {
32763
32763
  }
32764
32764
  return;
32765
32765
  }
32766
- n.state.selection.from < n.state.selection.to && f.start == f.endB && n.state.selection instanceof Mn && (f.start > n.state.selection.from && f.start <= n.state.selection.from + 2 && n.state.selection.from >= l.from ? f.start = n.state.selection.from : f.endA < n.state.selection.to && f.endA >= n.state.selection.to - 2 && n.state.selection.to <= l.to && (f.endB += n.state.selection.to - f.endA, f.endA = n.state.selection.to)), Mc && fh <= 11 && f.endB == f.start + 1 && f.endA == f.start && f.start > l.from && l.doc.textBetween(f.start - l.from - 1, f.start - l.from + 1) == "  " && (f.start--, f.endA--, f.endB--);
32766
+ n.state.selection.from < n.state.selection.to && f.start == f.endB && n.state.selection instanceof Mn && (f.start > n.state.selection.from && f.start <= n.state.selection.from + 2 && n.state.selection.from >= l.from ? f.start = n.state.selection.from : f.endA < n.state.selection.to && f.endA >= n.state.selection.to - 2 && n.state.selection.to <= l.to && (f.endB += n.state.selection.to - f.endA, f.endA = n.state.selection.to)), Mc && vh <= 11 && f.endB == f.start + 1 && f.endA == f.start && f.start > l.from && l.doc.textBetween(f.start - l.from - 1, f.start - l.from + 1) == "  " && (f.start--, f.endA--, f.endB--);
32767
32767
  let b = l.doc.resolveNoCache(f.start - l.from), w = l.doc.resolveNoCache(f.endB - l.from), k = d.resolve(f.start), E = b.sameParent(w) && b.parent.inlineContent && k.end() >= f.endA, C;
32768
- if ((Xf && n.input.lastIOSEnter > Date.now() - 225 && (!E || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !E && b.pos < l.doc.content.size && !b.sameParent(w) && (C = jn.findFrom(l.doc.resolve(b.pos + 1), 1, !0)) && C.head == w.pos) && n.someProp("handleKeyDown", (N) => N(n, ug(13, "Enter")))) {
32768
+ if ((Xf && n.input.lastIOSEnter > Date.now() - 225 && (!E || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !E && b.pos < l.doc.content.size && !b.sameParent(w) && (C = jn.findFrom(l.doc.resolve(b.pos + 1), 1, !0)) && C.head == w.pos) && n.someProp("handleKeyDown", (N) => N(n, pg(13, "Enter")))) {
32769
32769
  n.input.lastIOSEnter = 0;
32770
32770
  return;
32771
32771
  }
32772
- if (n.state.selection.anchor > f.start && Bmt(d, f.start, f.endA, b, w) && n.someProp("handleKeyDown", (N) => N(n, ug(8, "Backspace")))) {
32772
+ if (n.state.selection.anchor > f.start && Bmt(d, f.start, f.endA, b, w) && n.someProp("handleKeyDown", (N) => N(n, pg(8, "Backspace")))) {
32773
32773
  op && fs && n.domObserver.suppressSelectionUpdates();
32774
32774
  return;
32775
32775
  }
32776
32776
  fs && f.endB == f.start && (n.input.lastChromeDelete = Date.now()), op && !E && b.start() != w.start() && w.parentOffset == 0 && b.depth == w.depth && l.sel && l.sel.anchor == l.sel.head && l.sel.head == f.endA && (f.endB -= 2, w = l.doc.resolveNoCache(f.endB - l.from), setTimeout(() => {
32777
32777
  n.someProp("handleKeyDown", function(N) {
32778
- return N(n, ug(13, "Enter"));
32778
+ return N(n, pg(13, "Enter"));
32779
32779
  });
32780
32780
  }, 20));
32781
32781
  let A = f.start, D = f.endA, z, j, H;
32782
32782
  if (E) {
32783
32783
  if (b.pos == w.pos)
32784
- Mc && fh <= 11 && b.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => gp(n), 20)), z = n.state.tr.delete(A, D), j = d.resolve(f.start).marksAcross(d.resolve(f.endA));
32784
+ Mc && vh <= 11 && b.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => gp(n), 20)), z = n.state.tr.delete(A, D), j = d.resolve(f.start).marksAcross(d.resolve(f.endA));
32785
32785
  else if (
32786
32786
  // Adding or removing a mark
32787
32787
  f.endA == f.endB && (H = Rmt(b.parent.content.cut(b.parentOffset, w.parentOffset), k.parent.content.cut(k.parentOffset, f.endA - k.start())))
@@ -33250,7 +33250,7 @@ function vD(n) {
33250
33250
  if (n.spec.state || n.spec.filterTransaction || n.spec.appendTransaction)
33251
33251
  throw new RangeError("Plugins passed directly to the view must not have a state component");
33252
33252
  }
33253
- var Eh = {
33253
+ var Ah = {
33254
33254
  8: "Backspace",
33255
33255
  9: "Tab",
33256
33256
  10: "Enter",
@@ -33329,13 +33329,13 @@ var Eh = {
33329
33329
  221: "}",
33330
33330
  222: '"'
33331
33331
  }, Hmt = typeof navigator < "u" && /Mac/.test(navigator.platform), Umt = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
33332
- for (var es = 0; es < 10; es++) Eh[48 + es] = Eh[96 + es] = String(es);
33333
- for (var es = 1; es <= 24; es++) Eh[es + 111] = "F" + es;
33332
+ for (var es = 0; es < 10; es++) Ah[48 + es] = Ah[96 + es] = String(es);
33333
+ for (var es = 1; es <= 24; es++) Ah[es + 111] = "F" + es;
33334
33334
  for (var es = 65; es <= 90; es++)
33335
- Eh[es] = String.fromCharCode(es + 32), ix[es] = String.fromCharCode(es);
33336
- for (var LC in Eh) ix.hasOwnProperty(LC) || (ix[LC] = Eh[LC]);
33335
+ Ah[es] = String.fromCharCode(es + 32), ix[es] = String.fromCharCode(es);
33336
+ for (var LC in Ah) ix.hasOwnProperty(LC) || (ix[LC] = Ah[LC]);
33337
33337
  function qmt(n) {
33338
- var e = Hmt && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Umt && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? ix : Eh)[n.keyCode] || n.key || "Unidentified";
33338
+ var e = Hmt && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || Umt && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? ix : Ah)[n.keyCode] || n.key || "Unidentified";
33339
33339
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
33340
33340
  }
33341
33341
  const Vmt = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
@@ -33384,7 +33384,7 @@ function Bk(n) {
33384
33384
  if (s && s(t.state, t.dispatch, t))
33385
33385
  return !0;
33386
33386
  }
33387
- if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Eh[r.keyCode]) && o != i) {
33387
+ if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Ah[r.keyCode]) && o != i) {
33388
33388
  let s = e[RC(o, r)];
33389
33389
  if (s && s(t.state, t.dispatch, t))
33390
33390
  return !0;
@@ -33547,7 +33547,7 @@ function R5(n) {
33547
33547
  const Jmt = (n, e) => {
33548
33548
  let t = n.selection, r = t instanceof In, i;
33549
33549
  if (r) {
33550
- if (t.node.isTextblock || !Lh(n.doc, t.from))
33550
+ if (t.node.isTextblock || !Rh(n.doc, t.from))
33551
33551
  return !1;
33552
33552
  i = t.from;
33553
33553
  } else if (i = Dk(n.doc, t.from, -1), i == null)
@@ -33560,7 +33560,7 @@ const Jmt = (n, e) => {
33560
33560
  }, Zmt = (n, e) => {
33561
33561
  let t = n.selection, r;
33562
33562
  if (t instanceof In) {
33563
- if (t.node.isTextblock || !Lh(n.doc, t.to))
33563
+ if (t.node.isTextblock || !Rh(n.doc, t.to))
33564
33564
  return !1;
33565
33565
  r = t.to;
33566
33566
  } else if (r = Dk(n.doc, t.to, 1), r == null)
@@ -33651,7 +33651,7 @@ const nft = tft(), rft = (n, e) => {
33651
33651
  };
33652
33652
  function ift(n, e, t) {
33653
33653
  let r = e.nodeBefore, i = e.nodeAfter, o = e.index();
33654
- return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || Lh(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
33654
+ return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (t && t(n.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || Rh(n.doc, e.pos)) ? !1 : (t && t(n.tr.join(e.pos).scrollIntoView()), !0);
33655
33655
  }
33656
33656
  function aH(n, e, t, r) {
33657
33657
  let i = e.nodeBefore, o = e.nodeAfter, a, s, c = i.type.spec.isolating || o.type.spec.isolating;
@@ -33665,7 +33665,7 @@ function aH(n, e, t, r) {
33665
33665
  f = $t.from(a[k].create(null, f));
33666
33666
  f = $t.from(i.copy(f));
33667
33667
  let b = n.tr.step(new Qs(e.pos - 1, m, e.pos, m, new un(f, 1, 0), a.length, !0)), w = b.doc.resolve(m + 2 * a.length);
33668
- w.nodeAfter && w.nodeAfter.type == i.type && Lh(b.doc, w.pos) && b.join(w.pos), t(b.scrollIntoView());
33668
+ w.nodeAfter && w.nodeAfter.type == i.type && Rh(b.doc, w.pos) && b.join(w.pos), t(b.scrollIntoView());
33669
33669
  }
33670
33670
  return !0;
33671
33671
  }
@@ -33799,7 +33799,7 @@ function pft(n, e, t, r) {
33799
33799
  return !1;
33800
33800
  i.lift(r, s);
33801
33801
  let c = i.mapping.map(o, -1) - 1;
33802
- return Lh(i.doc, c) && i.join(c), e(i.scrollIntoView()), !0;
33802
+ return Rh(i.doc, c) && i.join(c), e(i.scrollIntoView()), !0;
33803
33803
  }
33804
33804
  function hft(n, e, t) {
33805
33805
  let r = n.tr, i = t.parent;
@@ -34857,7 +34857,7 @@ function j5(n, e, t) {
34857
34857
  to: l
34858
34858
  };
34859
34859
  }
34860
- function Bh(n, e) {
34860
+ function Fh(n, e) {
34861
34861
  if (typeof n == "string") {
34862
34862
  if (!e.marks[n])
34863
34863
  throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);
@@ -34866,7 +34866,7 @@ function Bh(n, e) {
34866
34866
  return n;
34867
34867
  }
34868
34868
  const Uft = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
34869
- const o = Bh(n, r.schema), { doc: a, selection: s } = t, { $from: c, from: l, to: d } = s;
34869
+ const o = Fh(n, r.schema), { doc: a, selection: s } = t, { $from: c, from: l, to: d } = s;
34870
34870
  if (i) {
34871
34871
  const p = j5(c, o, e);
34872
34872
  if (p && p.from <= l && p.to >= d) {
@@ -34941,7 +34941,7 @@ function fw(n) {
34941
34941
  return gH(t);
34942
34942
  }
34943
34943
  function ax(n, e, t) {
34944
- if (n instanceof mh || n instanceof $t)
34944
+ if (n instanceof fh || n instanceof $t)
34945
34945
  return n;
34946
34946
  t = {
34947
34947
  slice: !0,
@@ -35142,7 +35142,7 @@ function _D(n, e) {
35142
35142
  const pvt = (n, e) => ({ tr: t, state: r, dispatch: i }) => {
35143
35143
  let o = null, a = null;
35144
35144
  const s = Hk(typeof n == "string" ? n : n.name, r.schema);
35145
- return s ? (s === "node" && (o = ba(n, r.schema)), s === "mark" && (a = Bh(n, r.schema)), i && t.selection.ranges.forEach((c) => {
35145
+ return s ? (s === "node" && (o = ba(n, r.schema)), s === "mark" && (a = Fh(n, r.schema)), i && t.selection.ranges.forEach((c) => {
35146
35146
  r.doc.nodesBetween(c.$from.pos, c.$to.pos, (l, d) => {
35147
35147
  o && o === l.type && t.setNodeMarkup(d, void 0, _D(l.attrs, e)), a && l.marks.length && l.marks.forEach((p) => {
35148
35148
  a === p.type && t.addMark(d, d + l.nodeSize, a.create(_D(p.attrs, e)));
@@ -35178,7 +35178,7 @@ const wvt = (n, e = !1, t = {}, r = {}) => ({ editor: i, tr: o, dispatch: a, com
35178
35178
  });
35179
35179
  };
35180
35180
  function Rf(n, e) {
35181
- const t = Bh(e, n.schema), { from: r, to: i, empty: o } = n.selection, a = [];
35181
+ const t = Fh(e, n.schema), { from: r, to: i, empty: o } = n.selection, a = [];
35182
35182
  o ? (n.storedMarks && a.push(...n.storedMarks), a.push(...n.selection.$head.marks())) : n.doc.nodesBetween(r, i, (c) => {
35183
35183
  a.push(...c.marks);
35184
35184
  });
@@ -35316,7 +35316,7 @@ function Hy(n, e, t) {
35316
35316
  }));
35317
35317
  }
35318
35318
  function HE(n, e, t = {}) {
35319
- const { empty: r, ranges: i } = n.selection, o = e ? Bh(e, n.schema) : null;
35319
+ const { empty: r, ranges: i } = n.selection, o = e ? Fh(e, n.schema) : null;
35320
35320
  if (r)
35321
35321
  return !!(n.storedMarks || n.selection.$from.marks()).filter((p) => o ? o.name === p.type.name : !0).find((p) => ox(p.attrs, t, { strict: !1 }));
35322
35322
  let a = 0;
@@ -35419,7 +35419,7 @@ function Tvt(n, e, t) {
35419
35419
  });
35420
35420
  }
35421
35421
  const Evt = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
35422
- const { selection: o } = t, { empty: a, ranges: s } = o, c = Bh(n, r.schema);
35422
+ const { selection: o } = t, { empty: a, ranges: s } = o, c = Fh(n, r.schema);
35423
35423
  if (i)
35424
35424
  if (a) {
35425
35425
  const l = Rf(r, c);
@@ -35557,7 +35557,7 @@ const Pvt = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edi
35557
35557
  if (r === void 0)
35558
35558
  return !0;
35559
35559
  const i = n.doc.nodeAt(r);
35560
- return t.node.type === i?.type && Lh(n.doc, t.pos) && n.join(t.pos), !0;
35560
+ return t.node.type === i?.type && Rh(n.doc, t.pos) && n.join(t.pos), !0;
35561
35561
  }, zC = (n, e) => {
35562
35562
  const t = pu((a) => a.type === e)(n.selection);
35563
35563
  if (!t)
@@ -35566,7 +35566,7 @@ const Pvt = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edi
35566
35566
  if (r === void 0)
35567
35567
  return !0;
35568
35568
  const i = n.doc.nodeAt(r);
35569
- return t.node.type === i?.type && Lh(n.doc, r) && n.join(r), !0;
35569
+ return t.node.type === i?.type && Rh(n.doc, r) && n.join(r), !0;
35570
35570
  }, Lvt = (n, e, t, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: c, commands: l, can: d }) => {
35571
35571
  const { extensions: p, splittableMarks: h } = i.extensionManager, m = ba(n, a.schema), f = ba(e, a.schema), { selection: b, storedMarks: w } = a, { $from: k, $to: E } = b, C = k.blockRange(E), A = w || b.$to.parentOffset && b.$from.marks();
35572
35572
  if (!C)
@@ -35583,7 +35583,7 @@ const Pvt = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edi
35583
35583
  return o.ensureMarks(j), z ? !0 : l.clearNodes();
35584
35584
  }).wrapInList(m, r).command(() => FC(o, m)).command(() => zC(o, m)).run();
35585
35585
  }, Rvt = (n, e = {}, t = {}) => ({ state: r, commands: i }) => {
35586
- const { extendEmptyMarkRange: o = !1 } = t, a = Bh(n, r.schema);
35586
+ const { extendEmptyMarkRange: o = !1 } = t, a = Fh(n, r.schema);
35587
35587
  return HE(r, a, e) ? i.unsetMark(a, { extendEmptyMarkRange: o }) : i.setMark(a, e);
35588
35588
  }, Bvt = (n, e, t = {}) => ({ state: r, commands: i }) => {
35589
35589
  const o = ba(n, r.schema), a = ba(e, r.schema), s = Nb(r, o, t);
@@ -35619,7 +35619,7 @@ const Pvt = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edi
35619
35619
  }), !0;
35620
35620
  }, jvt = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
35621
35621
  var o;
35622
- const { extendEmptyMarkRange: a = !1 } = e, { selection: s } = t, c = Bh(n, r.schema), { $from: l, empty: d, ranges: p } = s;
35622
+ const { extendEmptyMarkRange: a = !1 } = e, { selection: s } = t, c = Fh(n, r.schema), { $from: l, empty: d, ranges: p } = s;
35623
35623
  if (!i)
35624
35624
  return !0;
35625
35625
  if (d && a) {
@@ -35634,7 +35634,7 @@ const Pvt = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edi
35634
35634
  }, Hvt = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
35635
35635
  let o = null, a = null;
35636
35636
  const s = Hk(typeof n == "string" ? n : n.name, r.schema);
35637
- return s ? (s === "node" && (o = ba(n, r.schema)), s === "mark" && (a = Bh(n, r.schema)), i && t.selection.ranges.forEach((c) => {
35637
+ return s ? (s === "node" && (o = ba(n, r.schema)), s === "mark" && (a = Fh(n, r.schema)), i && t.selection.ranges.forEach((c) => {
35638
35638
  const l = c.$from.pos, d = c.$to.pos;
35639
35639
  let p, h, m, f;
35640
35640
  t.selection.empty ? r.doc.nodesBetween(l, d, (b, w) => {
@@ -35901,7 +35901,7 @@ const Wvt = Mi.create({
35901
35901
  ];
35902
35902
  }
35903
35903
  });
35904
- class pg {
35904
+ class hg {
35905
35905
  get name() {
35906
35906
  return this.node.type.name;
35907
35907
  }
@@ -35960,15 +35960,15 @@ class pg {
35960
35960
  if (this.depth === 0)
35961
35961
  return null;
35962
35962
  const e = this.resolvedPos.start(this.resolvedPos.depth - 1), t = this.resolvedPos.doc.resolve(e);
35963
- return new pg(t, this.editor);
35963
+ return new hg(t, this.editor);
35964
35964
  }
35965
35965
  get before() {
35966
35966
  let e = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
35967
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new pg(e, this.editor);
35967
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new hg(e, this.editor);
35968
35968
  }
35969
35969
  get after() {
35970
35970
  let e = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
35971
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new pg(e, this.editor);
35971
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new hg(e, this.editor);
35972
35972
  }
35973
35973
  get children() {
35974
35974
  const e = [];
@@ -35976,8 +35976,8 @@ class pg {
35976
35976
  const i = t.isBlock && !t.isTextblock, o = t.isAtom && !t.isText, a = this.pos + r + (o ? 0 : 1), s = this.resolvedPos.doc.resolve(a);
35977
35977
  if (!i && s.depth <= this.depth)
35978
35978
  return;
35979
- const c = new pg(s, this.editor, i, i ? t : null);
35980
- i && (c.actualDepth = this.depth + 1), e.push(new pg(s, this.editor, i, i ? t : null));
35979
+ const c = new hg(s, this.editor, i, i ? t : null);
35980
+ i && (c.actualDepth = this.depth + 1), e.push(new hg(s, this.editor, i, i ? t : null));
35981
35981
  }), e;
35982
35982
  }
35983
35983
  get firstChild() {
@@ -36446,7 +36446,7 @@ let V5 = class extends mft {
36446
36446
  }
36447
36447
  $pos(e) {
36448
36448
  const t = this.state.doc.resolve(e);
36449
- return new pg(t, this);
36449
+ return new hg(t, this);
36450
36450
  }
36451
36451
  get $doc() {
36452
36452
  return this.$pos(0);
@@ -36517,7 +36517,7 @@ function bp(n) {
36517
36517
  i().updateAttributes(p, o).run();
36518
36518
  }
36519
36519
  const d = a.doc.resolve(t.from - 1).nodeBefore;
36520
- d && d.type === n.type && Lh(a.doc, t.from - 1) && (!n.joinPredicate || n.joinPredicate(r, d)) && a.join(t.from - 1);
36520
+ d && d.type === n.type && Rh(a.doc, t.from - 1) && (!n.joinPredicate || n.joinPredicate(r, d)) && a.join(t.from - 1);
36521
36521
  }
36522
36522
  });
36523
36523
  }
@@ -38919,7 +38919,7 @@ function Cbt(n) {
38919
38919
  });
38920
38920
  }
38921
38921
  const Sbt = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
38922
- function ng(n, e) {
38922
+ function rg(n, e) {
38923
38923
  const t = [
38924
38924
  "http",
38925
38925
  "https",
@@ -38973,7 +38973,7 @@ const Xk = sc.create({
38973
38973
  rel: "noopener noreferrer nofollow",
38974
38974
  class: null
38975
38975
  },
38976
- isAllowedUri: (n, e) => !!ng(n, e.protocols),
38976
+ isAllowedUri: (n, e) => !!rg(n, e.protocols),
38977
38977
  validate: (n) => !!n,
38978
38978
  shouldAutoLink: (n) => !!n
38979
38979
  };
@@ -39004,7 +39004,7 @@ const Xk = sc.create({
39004
39004
  getAttrs: (n) => {
39005
39005
  const e = n.getAttribute("href");
39006
39006
  return !e || !this.options.isAllowedUri(e, {
39007
- defaultValidate: (t) => !!ng(t, this.options.protocols),
39007
+ defaultValidate: (t) => !!rg(t, this.options.protocols),
39008
39008
  protocols: this.options.protocols,
39009
39009
  defaultProtocol: this.options.defaultProtocol
39010
39010
  }) ? !1 : null;
@@ -39014,7 +39014,7 @@ const Xk = sc.create({
39014
39014
  },
39015
39015
  renderHTML({ HTMLAttributes: n }) {
39016
39016
  return this.options.isAllowedUri(n.href, {
39017
- defaultValidate: (e) => !!ng(e, this.options.protocols),
39017
+ defaultValidate: (e) => !!rg(e, this.options.protocols),
39018
39018
  protocols: this.options.protocols,
39019
39019
  defaultProtocol: this.options.defaultProtocol
39020
39020
  }) ? ["a", Yr(this.options.HTMLAttributes, n), 0] : [
@@ -39028,7 +39028,7 @@ const Xk = sc.create({
39028
39028
  setLink: (n) => ({ chain: e }) => {
39029
39029
  const { href: t } = n;
39030
39030
  return this.options.isAllowedUri(t, {
39031
- defaultValidate: (r) => !!ng(r, this.options.protocols),
39031
+ defaultValidate: (r) => !!rg(r, this.options.protocols),
39032
39032
  protocols: this.options.protocols,
39033
39033
  defaultProtocol: this.options.defaultProtocol
39034
39034
  }) ? e().setMark(this.name, n).setMeta("preventAutolink", !0).run() : !1;
@@ -39036,7 +39036,7 @@ const Xk = sc.create({
39036
39036
  toggleLink: (n) => ({ chain: e }) => {
39037
39037
  const { href: t } = n;
39038
39038
  return this.options.isAllowedUri(t, {
39039
- defaultValidate: (r) => !!ng(r, this.options.protocols),
39039
+ defaultValidate: (r) => !!rg(r, this.options.protocols),
39040
39040
  protocols: this.options.protocols,
39041
39041
  defaultProtocol: this.options.defaultProtocol
39042
39042
  }) ? e().toggleMark(this.name, n, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
@@ -39051,7 +39051,7 @@ const Xk = sc.create({
39051
39051
  const e = [];
39052
39052
  if (n) {
39053
39053
  const { protocols: t, defaultProtocol: r } = this.options, i = bv(n).filter((o) => o.isLink && this.options.isAllowedUri(o.value, {
39054
- defaultValidate: (a) => !!ng(a, t),
39054
+ defaultValidate: (a) => !!rg(a, t),
39055
39055
  protocols: t,
39056
39056
  defaultProtocol: r
39057
39057
  }));
@@ -39081,7 +39081,7 @@ const Xk = sc.create({
39081
39081
  type: this.type,
39082
39082
  defaultProtocol: this.options.defaultProtocol,
39083
39083
  validate: (r) => this.options.isAllowedUri(r, {
39084
- defaultValidate: (i) => !!ng(i, e),
39084
+ defaultValidate: (i) => !!rg(i, e),
39085
39085
  protocols: e,
39086
39086
  defaultProtocol: t
39087
39087
  }),
@@ -39459,7 +39459,7 @@ let fo = class extends On {
39459
39459
  fo.styles = [Tn, Dbt];
39460
39460
  fo.dependencies = {
39461
39461
  "cx-button": ki,
39462
- "cx-card": Ih,
39462
+ "cx-card": Dh,
39463
39463
  "cx-icon-button": yo,
39464
39464
  "cx-input": jo,
39465
39465
  "cx-popup": Pc,
@@ -40643,7 +40643,7 @@ async function z0t({
40643
40643
  BlockType: l4(n)
40644
40644
  },
40645
40645
  method: "POST",
40646
- url: Mh.BLOCK_TEMPLATE
40646
+ url: Ph.BLOCK_TEMPLATE
40647
40647
  })).data;
40648
40648
  } catch {
40649
40649
  return null;
@@ -40681,7 +40681,7 @@ async function K3({ ids: n }) {
40681
40681
  }, {});
40682
40682
  }
40683
40683
  ],
40684
- url: Mh.LIST_BLOCK_TEMPLATES
40684
+ url: Ph.LIST_BLOCK_TEMPLATES
40685
40685
  })).data;
40686
40686
  } catch {
40687
40687
  return {};
@@ -40702,7 +40702,7 @@ async function $0t({
40702
40702
  BlockTemplateClientID: e
40703
40703
  },
40704
40704
  method: "PUT",
40705
- url: Mh.BLOCK_TEMPLATE
40705
+ url: Ph.BLOCK_TEMPLATE
40706
40706
  })).data;
40707
40707
  } catch {
40708
40708
  return null;
@@ -40723,7 +40723,7 @@ async function j0t({ id: n }) {
40723
40723
  return t.permissions;
40724
40724
  }
40725
40725
  ],
40726
- url: Mh.GET_PERMISSION
40726
+ url: Ph.GET_PERMISSION
40727
40727
  })).data;
40728
40728
  } catch {
40729
40729
  return "";
@@ -40750,7 +40750,7 @@ async function H0t(n) {
40750
40750
  })) ?? [];
40751
40751
  }
40752
40752
  ],
40753
- url: Mh.GET_BLOCK_TEMPLATES
40753
+ url: Ph.GET_BLOCK_TEMPLATES
40754
40754
  })).data;
40755
40755
  } catch {
40756
40756
  return [];
@@ -40779,7 +40779,7 @@ async function U0t({
40779
40779
  })).filter((r) => r.id !== "BlockCell");
40780
40780
  }
40781
40781
  ],
40782
- url: Mh.GET_BLOCK_TYPES
40782
+ url: Ph.GET_BLOCK_TYPES
40783
40783
  })).data;
40784
40784
  } catch {
40785
40785
  return [];
@@ -40795,7 +40795,7 @@ async function q0t({ id: n }) {
40795
40795
  } else
40796
40796
  return (await ur.request({
40797
40797
  method: "GET",
40798
- url: Mh.GET_CAN_CREATE_BLOCK_TEMPLATE
40798
+ url: Ph.GET_CAN_CREATE_BLOCK_TEMPLATE
40799
40799
  })).data.canCreate ? Cd.Template : Cd.Content;
40800
40800
  } catch {
40801
40801
  return Cd.Content;
@@ -40816,7 +40816,7 @@ async function V0t({ type: n }) {
40816
40816
  return t.properties[n] ?? [];
40817
40817
  }
40818
40818
  ],
40819
- url: Mh.GET_ADHOC_PROPERTIES
40819
+ url: Ph.GET_ADHOC_PROPERTIES
40820
40820
  })).data;
40821
40821
  } catch {
40822
40822
  return [];
@@ -42874,19 +42874,19 @@ var K0t = {
42874
42874
  ;
42875
42875
  Ja.push(new q(0, U_, ma));
42876
42876
  } else {
42877
- var Hu = ma, Zh = Ja.length, Qh = ge == "rtl" ? 1 : 0;
42877
+ var Hu = ma, Qh = Ja.length, eg = ge == "rtl" ? 1 : 0;
42878
42878
  for (++ma; ma < We && Be[ma] != "L"; ++ma)
42879
42879
  ;
42880
42880
  for (var us = Hu; us < ma; )
42881
42881
  if (F.test(Be[us])) {
42882
- Hu < us && (Ja.splice(Zh, 0, new q(1, Hu, us)), Zh += Qh);
42882
+ Hu < us && (Ja.splice(Qh, 0, new q(1, Hu, us)), Qh += eg);
42883
42883
  var Pm = us;
42884
42884
  for (++us; us < ma && F.test(Be[us]); ++us)
42885
42885
  ;
42886
- Ja.splice(Zh, 0, new q(2, Pm, us)), Zh += Qh, Hu = us;
42886
+ Ja.splice(Qh, 0, new q(2, Pm, us)), Qh += eg, Hu = us;
42887
42887
  } else
42888
42888
  ++us;
42889
- Hu < ma && Ja.splice(Zh, 0, new q(1, Hu, ma));
42889
+ Hu < ma && Ja.splice(Qh, 0, new q(1, Hu, ma));
42890
42890
  }
42891
42891
  return ge == "ltr" && (Ja[0].level == 1 && (Wd = J.match(/^\s+/)) && (Ja[0].from = Wd[0].length, Ja.unshift(new q(0, 0, Wd[0].length))), ot(Ja).level == 1 && (Wd = J.match(/\s+$/)) && (ot(Ja).to -= Wd[0].length, Ja.push(new q(0, We - Wd[0].length, We)))), ge == "rtl" ? Ja.reverse() : Ja;
42892
42892
  };
@@ -43711,7 +43711,7 @@ b`.split(/\n/).length != 3 ? function(u) {
43711
43711
  u.parent = null, Nu(u);
43712
43712
  }
43713
43713
  var Ru = {}, Ap = {};
43714
- function jh(u, g) {
43714
+ function Hh(u, g) {
43715
43715
  if (!u || /^\s*$/.test(u))
43716
43716
  return null;
43717
43717
  var y = g.addModeClass ? Ap : Ru;
@@ -43811,7 +43811,7 @@ b`.split(/\n/).length != 3 ? function(u) {
43811
43811
  var v = u.markedSpans, x = u.text, S = 0;
43812
43812
  if (!v) {
43813
43813
  for (var I = 1; I < y.length; I += 2)
43814
- g.addToken(g, x.slice(S, S = y[I]), jh(y[I + 1], g.cm.options));
43814
+ g.addToken(g, x.slice(S, S = y[I]), Hh(y[I + 1], g.cm.options));
43815
43815
  return;
43816
43816
  }
43817
43817
  for (var F = x.length, q = 0, J = 1, ge = "", ke, We, Be = 0, ht, St, zt, rn, an; ; ) {
@@ -43868,7 +43868,7 @@ b`.split(/\n/).length != 3 ? function(u) {
43868
43868
  }
43869
43869
  q = Ms, zt = "";
43870
43870
  }
43871
- ge = x.slice(S, S = y[J++]), ke = jh(y[J++], g.cm.options);
43871
+ ge = x.slice(S, S = y[J++]), ke = Hh(y[J++], g.cm.options);
43872
43872
  }
43873
43873
  }
43874
43874
  }
@@ -43883,7 +43883,7 @@ b`.split(/\n/).length != 3 ? function(u) {
43883
43883
  return v;
43884
43884
  }
43885
43885
  var gc = null;
43886
- function Hh(u) {
43886
+ function Uh(u) {
43887
43887
  gc ? gc.ops.push(u) : u.ownsGroup = gc = {
43888
43888
  ops: [u],
43889
43889
  delayedCallbacks: []
@@ -43934,7 +43934,7 @@ b`.split(/\n/).length != 3 ? function(u) {
43934
43934
  function mc(u, g, y, v) {
43935
43935
  for (var x = 0; x < g.changes.length; x++) {
43936
43936
  var S = g.changes[x];
43937
- S == "text" ? Uh(u, g) : S == "gutter" ? Yc(u, g, y, v) : S == "class" ? qd(u, g) : S == "widget" && bm(u, g, v);
43937
+ S == "text" ? qh(u, g) : S == "gutter" ? Yc(u, g, y, v) : S == "class" ? qd(u, g) : S == "widget" && bm(u, g, v);
43938
43938
  }
43939
43939
  g.changes = null;
43940
43940
  }
@@ -43954,7 +43954,7 @@ b`.split(/\n/).length != 3 ? function(u) {
43954
43954
  var y = u.display.externalMeasured;
43955
43955
  return y && y.line == g.line ? (u.display.externalMeasured = null, g.measure = y.measure, y.built) : dd(u, g);
43956
43956
  }
43957
- function Uh(u, g) {
43957
+ function qh(u, g) {
43958
43958
  var y = g.text.className, v = Pp(u, g);
43959
43959
  g.text == g.node && (g.node = v.pre), g.text.parentNode.replaceChild(v.pre, g.text), g.text = v.pre, v.bgClass != g.bgClass || v.textClass != g.textClass ? (g.bgClass = v.bgClass, g.textClass = v.textClass, qd(u, g)) : y && (g.text.className = y);
43960
43960
  }
@@ -44006,18 +44006,18 @@ b`.split(/\n/).length != 3 ? function(u) {
44006
44006
  return g.text = g.node = x.pre, x.bgClass && (g.bgClass = x.bgClass), x.textClass && (g.textClass = x.textClass), qd(u, g), Yc(u, g, y, v), Cl(u, g, v), g.node;
44007
44007
  }
44008
44008
  function Cl(u, g, y) {
44009
- if (qh(u, g.line, g, y, !0), g.rest)
44009
+ if (Vh(u, g.line, g, y, !0), g.rest)
44010
44010
  for (var v = 0; v < g.rest.length; v++)
44011
- qh(u, g.rest[v], g, y, !1);
44011
+ Vh(u, g.rest[v], g, y, !1);
44012
44012
  }
44013
- function qh(u, g, y, v, x) {
44013
+ function Vh(u, g, y, v, x) {
44014
44014
  if (g.widgets)
44015
44015
  for (var S = Kc(y), I = 0, F = g.widgets; I < F.length; ++I) {
44016
44016
  var q = F[I], J = K("div", [q.node], "CodeMirror-linewidget" + (q.className ? " " + q.className : ""));
44017
- q.handleMouseEvents || J.setAttribute("cm-ignore-events", "true"), Vh(q, J, y, v), u.display.input.setUneditable(J), x && q.above ? S.insertBefore(J, y.gutter || y.text) : S.appendChild(J), ui(q, "redraw");
44017
+ q.handleMouseEvents || J.setAttribute("cm-ignore-events", "true"), Wh(q, J, y, v), u.display.input.setUneditable(J), x && q.above ? S.insertBefore(J, y.gutter || y.text) : S.appendChild(J), ui(q, "redraw");
44018
44018
  }
44019
44019
  }
44020
- function Vh(u, g, y, v) {
44020
+ function Wh(u, g, y, v) {
44021
44021
  if (u.noHScroll) {
44022
44022
  (y.alignable || (y.alignable = [])).push(g);
44023
44023
  var x = v.wrapperWidth;
@@ -44048,7 +44048,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44048
44048
  function Fu(u) {
44049
44049
  return u.mover.offsetHeight - u.lineSpace.offsetHeight;
44050
44050
  }
44051
- function Wh(u) {
44051
+ function Gh(u) {
44052
44052
  if (u.cachedPaddingH)
44053
44053
  return u.cachedPaddingH;
44054
44054
  var g = R(u.measure, K("pre", "x", "CodeMirror-line-like")), y = window.getComputedStyle ? window.getComputedStyle(g) : g.currentStyle, v = { left: parseInt(y.paddingLeft), right: parseInt(y.paddingRight) };
@@ -44441,7 +44441,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44441
44441
  var q = Re(u, S, I), J;
44442
44442
  if (v && q.xRel > 0 && (J = Lt(u.doc, q.line).text).length == q.ch) {
44443
44443
  var ge = De(J, J.length, u.options.tabSize) - J.length;
44444
- q = Ct(q.line, Math.max(0, Math.round((S - Wh(u.display).left) / it(u.display)) - ge));
44444
+ q = Ct(q.line, Math.max(0, Math.round((S - Gh(u.display).left) / it(u.display)) - ge));
44445
44445
  }
44446
44446
  return q;
44447
44447
  }
@@ -44551,7 +44551,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44551
44551
  return u.top - g.top || u.left - g.left;
44552
44552
  }
44553
44553
  function Aa(u, g, y) {
44554
- var v = u.display, x = u.doc, S = document.createDocumentFragment(), I = Wh(u.display), F = I.left, q = Math.max(v.sizerWidth, Sl(u) - v.sizer.offsetLeft) - I.right, J = x.direction == "ltr";
44554
+ var v = u.display, x = u.doc, S = document.createDocumentFragment(), I = Gh(u.display), F = I.left, q = Math.max(v.sizerWidth, Sl(u) - v.sizer.offsetLeft) - I.right, J = x.direction == "ltr";
44555
44555
  function ge(on, ln, Rn, Nn) {
44556
44556
  ln < 0 && (ln = 0), ln = Math.round(ln), Nn = Math.round(Nn), S.appendChild(K("div", null, "CodeMirror-selected", "position: absolute; left: " + on + `px;
44557
44557
  top: ` + ln + "px; width: " + (Rn ?? q - on) + `px;
@@ -44570,11 +44570,11 @@ b`.split(/\n/).length != 3 ? function(u) {
44570
44570
  return pn(Ms, ln || 0, Rn ?? gr, function(Lo, Ps, Ia, Yo) {
44571
44571
  var Ro = Ia == "ltr", uo = Qi(Lo, Ro ? "left" : "right"), Ns = Qi(Ps - 1, Ro ? "right" : "left"), Mm = ln == null && Lo == 0, jp = Rn == null && Ps == gr, Ja = Yo == 0, Wd = !Ms || Yo == Ms.length - 1;
44572
44572
  if (Ns.top - uo.top <= 3) {
44573
- var ma = (J ? Mm : jp) && Ja, U_ = (J ? jp : Mm) && Wd, Hu = ma ? F : (Ro ? uo : Ns).left, Zh = U_ ? q : (Ro ? Ns : uo).right;
44574
- ge(Hu, uo.top, Zh - Hu, uo.bottom);
44573
+ var ma = (J ? Mm : jp) && Ja, U_ = (J ? jp : Mm) && Wd, Hu = ma ? F : (Ro ? uo : Ns).left, Qh = U_ ? q : (Ro ? Ns : uo).right;
44574
+ ge(Hu, uo.top, Qh - Hu, uo.bottom);
44575
44575
  } else {
44576
- var Qh, us, Pm, q_;
44577
- Ro ? (Qh = J && Mm && Ja ? F : uo.left, us = J ? q : yc(Lo, Ia, "before"), Pm = J ? F : yc(Ps, Ia, "after"), q_ = J && jp && Wd ? q : Ns.right) : (Qh = J ? yc(Lo, Ia, "before") : F, us = !J && Mm && Ja ? q : uo.right, Pm = !J && jp && Wd ? F : Ns.left, q_ = J ? yc(Ps, Ia, "after") : q), ge(Qh, uo.top, us - Qh, uo.bottom), uo.bottom < Ns.top && ge(F, uo.bottom, null, Ns.top), ge(Pm, Ns.top, q_ - Pm, Ns.bottom);
44576
+ var eg, us, Pm, q_;
44577
+ Ro ? (eg = J && Mm && Ja ? F : uo.left, us = J ? q : yc(Lo, Ia, "before"), Pm = J ? F : yc(Ps, Ia, "after"), q_ = J && jp && Wd ? q : Ns.right) : (eg = J ? yc(Lo, Ia, "before") : F, us = !J && Mm && Ja ? q : uo.right, Pm = !J && jp && Wd ? F : Ns.left, q_ = J ? yc(Ps, Ia, "after") : q), ge(eg, uo.top, us - eg, uo.bottom), uo.bottom < Ns.top && ge(F, uo.bottom, null, Ns.top), ge(Pm, Ns.top, q_ - Pm, Ns.bottom);
44578
44578
  }
44579
44579
  (!Si || No(uo, Si) < 0) && (Si = uo), No(Ns, Si) < 0 && (Si = Ns), (!ga || No(uo, ga) < 0) && (ga = uo), No(Ns, ga) < 0 && (ga = Ns);
44580
44580
  }), { start: Si, end: ga };
@@ -44599,14 +44599,14 @@ b`.split(/\n/).length != 3 ? function(u) {
44599
44599
  }
44600
44600
  }
44601
44601
  function Oa(u) {
44602
- u.hasFocus() || (u.display.input.focus(), u.state.focused || Gh(u));
44602
+ u.hasFocus() || (u.display.input.focus(), u.state.focused || Kh(u));
44603
44603
  }
44604
44604
  function hd(u) {
44605
44605
  u.state.delayingBlurEvent = !0, setTimeout(function() {
44606
44606
  u.state.delayingBlurEvent && (u.state.delayingBlurEvent = !1, u.state.focused && wm(u));
44607
44607
  }, 100);
44608
44608
  }
44609
- function Gh(u, g) {
44609
+ function Kh(u, g) {
44610
44610
  u.state.delayingBlurEvent && !u.state.draggingText && (u.state.delayingBlurEvent = !1), u.options.readOnly != "nocursor" && (u.state.focused || (ct(u, "focus", u, g), u.state.focused = !0, le(u.display.wrapper, "CodeMirror-focused"), !u.curOp && u.display.selForContextMenu != u.doc.sel && (u.display.input.reset(), l && setTimeout(function() {
44611
44611
  return u.display.input.reset(!0);
44612
44612
  }, 20)), u.display.input.receivedFocus()), Lp(u));
@@ -44681,14 +44681,14 @@ b`.split(/\n/).length != 3 ? function(u) {
44681
44681
  bottom: Math.max(F.bottom, q.bottom) + v
44682
44682
  };
44683
44683
  var J = x_(u, x), ge = u.doc.scrollTop, ke = u.doc.scrollLeft;
44684
- if (J.scrollTop != null && (Ov(u, J.scrollTop), Math.abs(u.doc.scrollTop - ge) > 1 && (I = !0)), J.scrollLeft != null && (Kh(u, J.scrollLeft), Math.abs(u.doc.scrollLeft - ke) > 1 && (I = !0)), !I)
44684
+ if (J.scrollTop != null && (Ov(u, J.scrollTop), Math.abs(u.doc.scrollTop - ge) > 1 && (I = !0)), J.scrollLeft != null && (Yh(u, J.scrollLeft), Math.abs(u.doc.scrollLeft - ke) > 1 && (I = !0)), !I)
44685
44685
  break;
44686
44686
  }
44687
44687
  return x;
44688
44688
  }
44689
44689
  function MG(u, g) {
44690
44690
  var y = x_(u, g);
44691
- y.scrollTop != null && Ov(u, y.scrollTop), y.scrollLeft != null && Kh(u, y.scrollLeft);
44691
+ y.scrollTop != null && Ov(u, y.scrollTop), y.scrollLeft != null && Yh(u, y.scrollLeft);
44692
44692
  }
44693
44693
  function x_(u, g) {
44694
44694
  var y = u.display, v = Ue(u.display);
@@ -44742,7 +44742,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44742
44742
  function B6(u, g, y) {
44743
44743
  g = Math.max(0, Math.min(u.display.scroller.scrollHeight - u.display.scroller.clientHeight, g)), !(u.display.scroller.scrollTop == g && !y) && (u.doc.scrollTop = g, u.display.scrollbars.setScrollTop(g), u.display.scroller.scrollTop != g && (u.display.scroller.scrollTop = g));
44744
44744
  }
44745
- function Kh(u, g, y, v) {
44745
+ function Yh(u, g, y, v) {
44746
44746
  g = Math.max(0, Math.min(g, u.display.scroller.scrollWidth - u.display.scroller.clientWidth)), !((y ? g == u.doc.scrollLeft : Math.abs(u.doc.scrollLeft - g) < 2) && !v) && (u.doc.scrollLeft = g, H6(u), u.display.scroller.scrollLeft != g && (u.display.scroller.scrollLeft = g), u.display.scrollbars.setScrollLeft(g));
44747
44747
  }
44748
44748
  function Iv(u) {
@@ -44760,7 +44760,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44760
44760
  gutterWidth: y
44761
44761
  };
44762
44762
  }
44763
- var Yh = function(u, g, y) {
44763
+ var Xh = function(u, g, y) {
44764
44764
  this.cm = y;
44765
44765
  var v = this.vert = K("div", [K("div", null, null, "min-width: 1px")], "CodeMirror-vscrollbar"), x = this.horiz = K("div", [K("div", null, null, "height: 100%; min-height: 1px")], "CodeMirror-hscrollbar");
44766
44766
  v.tabIndex = x.tabIndex = -1, u(v), u(x), je(v, "scroll", function() {
@@ -44769,7 +44769,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44769
44769
  x.clientWidth && g(x.scrollLeft, "horizontal");
44770
44770
  }), this.checkedZeroWidth = !1, s && c < 8 && (this.horiz.style.minHeight = this.vert.style.minWidth = "18px");
44771
44771
  };
44772
- Yh.prototype.update = function(u) {
44772
+ Xh.prototype.update = function(u) {
44773
44773
  var g = u.scrollWidth > u.clientWidth + 1, y = u.scrollHeight > u.clientHeight + 1, v = u.nativeBarWidth;
44774
44774
  if (y) {
44775
44775
  this.vert.style.display = "block", this.vert.style.bottom = g ? v + "px" : "0";
@@ -44784,21 +44784,21 @@ b`.split(/\n/).length != 3 ? function(u) {
44784
44784
  } else
44785
44785
  this.horiz.style.display = "", this.horiz.firstChild.style.width = "0";
44786
44786
  return !this.checkedZeroWidth && u.clientHeight > 0 && (v == 0 && this.zeroWidthHack(), this.checkedZeroWidth = !0), { right: y ? v : 0, bottom: g ? v : 0 };
44787
- }, Yh.prototype.setScrollLeft = function(u) {
44787
+ }, Xh.prototype.setScrollLeft = function(u) {
44788
44788
  this.horiz.scrollLeft != u && (this.horiz.scrollLeft = u), this.disableHoriz && this.enableZeroWidthBar(this.horiz, this.disableHoriz, "horiz");
44789
- }, Yh.prototype.setScrollTop = function(u) {
44789
+ }, Xh.prototype.setScrollTop = function(u) {
44790
44790
  this.vert.scrollTop != u && (this.vert.scrollTop = u), this.disableVert && this.enableZeroWidthBar(this.vert, this.disableVert, "vert");
44791
- }, Yh.prototype.zeroWidthHack = function() {
44791
+ }, Xh.prototype.zeroWidthHack = function() {
44792
44792
  var u = C && !f ? "12px" : "18px";
44793
44793
  this.horiz.style.height = this.vert.style.width = u, this.horiz.style.pointerEvents = this.vert.style.pointerEvents = "none", this.disableHoriz = new Ae(), this.disableVert = new Ae();
44794
- }, Yh.prototype.enableZeroWidthBar = function(u, g, y) {
44794
+ }, Xh.prototype.enableZeroWidthBar = function(u, g, y) {
44795
44795
  u.style.pointerEvents = "auto";
44796
44796
  function v() {
44797
44797
  var x = u.getBoundingClientRect(), S = y == "vert" ? document.elementFromPoint(x.right - 1, (x.top + x.bottom) / 2) : document.elementFromPoint((x.right + x.left) / 2, x.bottom - 1);
44798
44798
  S != u ? u.style.pointerEvents = "none" : g.set(1e3, v);
44799
44799
  }
44800
44800
  g.set(1e3, v);
44801
- }, Yh.prototype.clear = function() {
44801
+ }, Xh.prototype.clear = function() {
44802
44802
  var u = this.horiz.parentNode;
44803
44803
  u.removeChild(this.horiz), u.removeChild(this.vert);
44804
44804
  };
@@ -44821,7 +44821,7 @@ b`.split(/\n/).length != 3 ? function(u) {
44821
44821
  var y = u.display, v = y.scrollbars.update(g);
44822
44822
  y.sizer.style.paddingRight = (y.barWidth = v.right) + "px", y.sizer.style.paddingBottom = (y.barHeight = v.bottom) + "px", y.heightForcer.style.borderBottom = v.bottom + "px solid transparent", v.right && v.bottom ? (y.scrollbarFiller.style.display = "block", y.scrollbarFiller.style.height = v.bottom + "px", y.scrollbarFiller.style.width = v.right + "px") : y.scrollbarFiller.style.display = "", v.bottom && u.options.coverGutterNextToScrollbar && u.options.fixedGutter ? (y.gutterFiller.style.display = "block", y.gutterFiller.style.height = v.bottom + "px", y.gutterFiller.style.width = g.gutterWidth + "px") : y.gutterFiller.style.display = "";
44823
44823
  }
44824
- var z6 = { native: Yh, null: Dv };
44824
+ var z6 = { native: Xh, null: Dv };
44825
44825
  function $6(u) {
44826
44826
  u.display.scrollbars && (u.display.scrollbars.clear(), u.display.scrollbars.addClass && X(u.display.wrapper, u.display.scrollbars.addClass)), u.display.scrollbars = new z6[u.options.scrollbarStyle](function(g) {
44827
44827
  u.display.wrapper.insertBefore(g, u.display.scrollbarFiller), je(g, "mousedown", function() {
@@ -44830,11 +44830,11 @@ b`.split(/\n/).length != 3 ? function(u) {
44830
44830
  }, 0);
44831
44831
  }), g.setAttribute("cm-not-content", "true");
44832
44832
  }, function(g, y) {
44833
- y == "horizontal" ? Kh(u, g) : Ov(u, g);
44833
+ y == "horizontal" ? Yh(u, g) : Ov(u, g);
44834
44834
  }, u), u.display.scrollbars.addClass && le(u.display.wrapper, u.display.scrollbars.addClass);
44835
44835
  }
44836
44836
  var NG = 0;
44837
- function Xh(u) {
44837
+ function Jh(u) {
44838
44838
  u.curOp = {
44839
44839
  cm: u,
44840
44840
  viewChanged: !1,
@@ -44867,9 +44867,9 @@ b`.split(/\n/).length != 3 ? function(u) {
44867
44867
  // Unique ID
44868
44868
  markArrays: null
44869
44869
  // Used by addMarkedSpan
44870
- }, Hh(u.curOp);
44870
+ }, Uh(u.curOp);
44871
44871
  }
44872
- function Jh(u) {
44872
+ function Zh(u) {
44873
44873
  var g = u.curOp;
44874
44874
  g && Ud(g, function(y) {
44875
44875
  for (var v = 0; v < y.ops.length; v++)
@@ -44902,13 +44902,13 @@ b`.split(/\n/).length != 3 ? function(u) {
44902
44902
  }
44903
44903
  function zG(u) {
44904
44904
  var g = u.cm;
44905
- u.adjustWidthTo != null && (g.display.sizer.style.minWidth = u.adjustWidthTo + "px", u.maxScrollLeft < g.doc.scrollLeft && Kh(g, Math.min(g.display.scroller.scrollLeft, u.maxScrollLeft), !0), g.display.maxLineChanged = !1);
44905
+ u.adjustWidthTo != null && (g.display.sizer.style.minWidth = u.adjustWidthTo + "px", u.maxScrollLeft < g.doc.scrollLeft && Yh(g, Math.min(g.display.scroller.scrollLeft, u.maxScrollLeft), !0), g.display.maxLineChanged = !1);
44906
44906
  var y = u.focus && u.focus == ie();
44907
44907
  u.preparedSelection && g.display.input.showSelection(u.preparedSelection, y), (u.updatedDisplay || u.startHeight != g.doc.height) && km(g, u.barMeasure), u.updatedDisplay && T_(g, u.barMeasure), u.selectionChanged && Lp(g), g.state.focused && u.updateInput && g.display.input.reset(u.typing), y && Oa(u.cm);
44908
44908
  }
44909
44909
  function $G(u) {
44910
44910
  var g = u.cm, y = g.display, v = g.doc;
44911
- if (u.updatedDisplay && j6(g, u.update), y.wheelStartX != null && (u.scrollTop != null || u.scrollLeft != null || u.scrollToPos) && (y.wheelStartX = y.wheelStartY = null), u.scrollTop != null && B6(g, u.scrollTop, u.forceScroll), u.scrollLeft != null && Kh(g, u.scrollLeft, !0, !0), u.scrollToPos) {
44911
+ if (u.updatedDisplay && j6(g, u.update), y.wheelStartX != null && (u.scrollTop != null || u.scrollLeft != null || u.scrollToPos) && (y.wheelStartX = y.wheelStartY = null), u.scrollTop != null && B6(g, u.scrollTop, u.forceScroll), u.scrollLeft != null && Yh(g, u.scrollLeft, !0, !0), u.scrollToPos) {
44912
44912
  var x = DG(
44913
44913
  g,
44914
44914
  It(v, u.scrollToPos.from),
@@ -44929,22 +44929,22 @@ b`.split(/\n/).length != 3 ? function(u) {
44929
44929
  function vc(u, g) {
44930
44930
  if (u.curOp)
44931
44931
  return g();
44932
- Xh(u);
44932
+ Jh(u);
44933
44933
  try {
44934
44934
  return g();
44935
44935
  } finally {
44936
- Jh(u);
44936
+ Zh(u);
44937
44937
  }
44938
44938
  }
44939
44939
  function pa(u, g) {
44940
44940
  return function() {
44941
44941
  if (u.curOp)
44942
44942
  return g.apply(u, arguments);
44943
- Xh(u);
44943
+ Jh(u);
44944
44944
  try {
44945
44945
  return g.apply(u, arguments);
44946
44946
  } finally {
44947
- Jh(u);
44947
+ Zh(u);
44948
44948
  }
44949
44949
  };
44950
44950
  }
@@ -44952,11 +44952,11 @@ b`.split(/\n/).length != 3 ? function(u) {
44952
44952
  return function() {
44953
44953
  if (this.curOp)
44954
44954
  return u.apply(this, arguments);
44955
- Xh(this);
44955
+ Jh(this);
44956
44956
  try {
44957
44957
  return u.apply(this, arguments);
44958
44958
  } finally {
44959
- Jh(this);
44959
+ Zh(this);
44960
44960
  }
44961
44961
  };
44962
44962
  }
@@ -44965,11 +44965,11 @@ b`.split(/\n/).length != 3 ? function(u) {
44965
44965
  var g = this.cm;
44966
44966
  if (!g || g.curOp)
44967
44967
  return u.apply(this, arguments);
44968
- Xh(g);
44968
+ Jh(g);
44969
44969
  try {
44970
44970
  return u.apply(this, arguments);
44971
44971
  } finally {
44972
- Jh(g);
44972
+ Zh(g);
44973
44973
  }
44974
44974
  };
44975
44975
  }
@@ -45185,7 +45185,7 @@ b`.split(/\n/).length != 3 ? function(u) {
45185
45185
  }
45186
45186
  }
45187
45187
  if (v && !r && !h && Xc != null) {
45188
- x && q && Ov(u, Math.max(0, I.scrollTop + x * Xc)), Kh(u, Math.max(0, I.scrollLeft + v * Xc)), (!x || x && q) && Zn(g), S.wheelStartX = null;
45188
+ x && q && Ov(u, Math.max(0, I.scrollTop + x * Xc)), Yh(u, Math.max(0, I.scrollLeft + v * Xc)), (!x || x && q) && Zn(g), S.wheelStartX = null;
45189
45189
  return;
45190
45190
  }
45191
45191
  if (x && Xc != null) {
@@ -45926,7 +45926,7 @@ b`.split(/\n/).length != 3 ? function(u) {
45926
45926
  zp.prototype.clear = function() {
45927
45927
  if (!this.explicitlyCleared) {
45928
45928
  var u = this.doc.cm, g = u && !u.curOp;
45929
- if (g && Xh(u), $n(this, "clear")) {
45929
+ if (g && Jh(u), $n(this, "clear")) {
45930
45930
  var y = this.find();
45931
45931
  y && ui(this, "clear", y.from, y.to);
45932
45932
  }
@@ -45939,7 +45939,7 @@ b`.split(/\n/).length != 3 ? function(u) {
45939
45939
  var J = Ei(this.lines[q]), ge = Gc(J);
45940
45940
  ge > u.display.maxLineLength && (u.display.maxLine = J, u.display.maxLineLength = ge, u.display.maxLineChanged = !0);
45941
45941
  }
45942
- v != null && u && this.collapsed && Dt(u, v, x + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, u && aO(u.doc)), u && ui(u, "markerCleared", u, this, v, x), g && Jh(u), this.parent && this.parent.clear();
45942
+ v != null && u && this.collapsed && Dt(u, v, x + 1), this.lines.length = 0, this.explicitlyCleared = !0, this.atomic && this.doc.cantEdit && (this.doc.cantEdit = !1, u && aO(u.doc)), u && ui(u, "markerCleared", u, this, v, x), g && Zh(u), this.parent && this.parent.clear();
45943
45943
  }
45944
45944
  }, zp.prototype.find = function(u, g) {
45945
45945
  u == null && this.type == "bookmark" && (u = 1);
@@ -47531,15 +47531,15 @@ b`.split(/\n/).length != 3 ? function(u) {
47531
47531
  specialChars: null
47532
47532
  }, g.autofocus && !E && S.input.focus(), s && c < 11 && setTimeout(function() {
47533
47533
  return y.display.input.reset(!0);
47534
- }, 20), NK(this), uK(), Xh(this), this.curOp.forceUpdate = !0, X6(this, v), g.autofocus && !E || this.hasFocus() ? setTimeout(function() {
47535
- y.hasFocus() && !y.state.focused && Gh(y);
47534
+ }, 20), NK(this), uK(), Jh(this), this.curOp.forceUpdate = !0, X6(this, v), g.autofocus && !E || this.hasFocus() ? setTimeout(function() {
47535
+ y.hasFocus() && !y.state.focused && Kh(y);
47536
47536
  }, 20) : wm(this);
47537
47537
  for (var I in V0)
47538
47538
  V0.hasOwnProperty(I) && V0[I](this, g[I], Im);
47539
47539
  U6(this), g.finishInit && g.finishInit(this);
47540
47540
  for (var F = 0; F < $_.length; ++F)
47541
47541
  $_[F](this);
47542
- Jh(this), l && g.lineWrapping && getComputedStyle(S.lineDiv).textRendering == "optimizelegibility" && (S.lineDiv.style.textRendering = "auto");
47542
+ Zh(this), l && g.lineWrapping && getComputedStyle(S.lineDiv).textRendering == "optimizelegibility" && (S.lineDiv.style.textRendering = "auto");
47543
47543
  }
47544
47544
  Ui.defaults = FO, Ui.optionHandlers = V0;
47545
47545
  function NK(u) {
@@ -47598,7 +47598,7 @@ b`.split(/\n/).length != 3 ? function(u) {
47598
47598
  }
47599
47599
  x();
47600
47600
  }), je(g.scroller, "touchcancel", x), je(g.scroller, "scroll", function() {
47601
- g.scroller.clientHeight && (Ov(u, g.scroller.scrollTop), Kh(u, g.scroller.scrollLeft, !0), ct(u, "scroll", u));
47601
+ g.scroller.clientHeight && (Ov(u, g.scroller.scrollTop), Yh(u, g.scroller.scrollLeft, !0), ct(u, "scroll", u));
47602
47602
  }), je(g.scroller, "mousewheel", function(q) {
47603
47603
  return W6(u, q);
47604
47604
  }), je(g.scroller, "DOMMouseScroll", function(q) {
@@ -47624,7 +47624,7 @@ b`.split(/\n/).length != 3 ? function(u) {
47624
47624
  je(F, "keyup", function(q) {
47625
47625
  return DO.call(u, q);
47626
47626
  }), je(F, "keydown", pa(u, IO)), je(F, "keypress", pa(u, MO)), je(F, "focus", function(q) {
47627
- return Gh(u, q);
47627
+ return Kh(u, q);
47628
47628
  }), je(F, "blur", function(q) {
47629
47629
  return wm(u, q);
47630
47630
  });
@@ -48024,10 +48024,10 @@ b`.split(/\n/).length != 3 ? function(u) {
48024
48024
  return vc(this, v);
48025
48025
  },
48026
48026
  startOperation: function() {
48027
- return Xh(this);
48027
+ return Jh(this);
48028
48028
  },
48029
48029
  endOperation: function() {
48030
- return Jh(this);
48030
+ return Zh(this);
48031
48031
  },
48032
48032
  refresh: ds(function() {
48033
48033
  var v = this.display.cachedTextHeight;
@@ -55685,7 +55685,7 @@ b`.split(/\n/).length != 3 ? function(u) {
55685
55685
  ),
55686
55686
  difference: () => (
55687
55687
  /* reexport */
55688
- Uh
55688
+ qh
55689
55689
  ),
55690
55690
  drop: () => (
55691
55691
  /* reexport */
@@ -55965,7 +55965,7 @@ b`.split(/\n/).length != 3 ? function(u) {
55965
55965
  ),
55966
55966
  min: () => (
55967
55967
  /* reexport */
55968
- jh
55968
+ Hh
55969
55969
  ),
55970
55970
  mixin: () => (
55971
55971
  /* reexport */
@@ -55985,7 +55985,7 @@ b`.split(/\n/).length != 3 ? function(u) {
55985
55985
  ),
55986
55986
  object: () => (
55987
55987
  /* reexport */
55988
- Vh
55988
+ Wh
55989
55989
  ),
55990
55990
  omit: () => (
55991
55991
  /* reexport */
@@ -56069,7 +56069,7 @@ b`.split(/\n/).length != 3 ? function(u) {
56069
56069
  ),
56070
56070
  size: () => (
56071
56071
  /* reexport */
56072
- Hh
56072
+ Uh
56073
56073
  ),
56074
56074
  some: () => (
56075
56075
  /* reexport */
@@ -56165,7 +56165,7 @@ b`.split(/\n/).length != 3 ? function(u) {
56165
56165
  ),
56166
56166
  zip: () => (
56167
56167
  /* reexport */
56168
- qh
56168
+ Vh
56169
56169
  )
56170
56170
  });
56171
56171
  var r = {};
@@ -56190,12 +56190,12 @@ b`.split(/\n/).length != 3 ? function(u) {
56190
56190
  countBy: () => Hd,
56191
56191
  create: () => Xn,
56192
56192
  debounce: () => Hi,
56193
- default: () => Wh,
56193
+ default: () => Gh,
56194
56194
  defaults: () => Do,
56195
56195
  defer: () => ca,
56196
56196
  delay: () => Go,
56197
56197
  detect: () => Pn,
56198
- difference: () => Uh,
56198
+ difference: () => qh,
56199
56199
  drop: () => mc,
56200
56200
  each: () => lo,
56201
56201
  escape: () => Ot,
@@ -56265,12 +56265,12 @@ b`.split(/\n/).length != 3 ? function(u) {
56265
56265
  max: () => Ap,
56266
56266
  memoize: () => Ta,
56267
56267
  methods: () => Qn,
56268
- min: () => jh,
56268
+ min: () => Hh,
56269
56269
  mixin: () => Fu,
56270
56270
  negate: () => la,
56271
56271
  noop: () => sa,
56272
56272
  now: () => ee,
56273
- object: () => Vh,
56273
+ object: () => Wh,
56274
56274
  omit: () => kl,
56275
56275
  once: () => Nu,
56276
56276
  pairs: () => Zr,
@@ -56291,7 +56291,7 @@ b`.split(/\n/).length != 3 ? function(u) {
56291
56291
  sample: () => dd,
56292
56292
  select: () => cs,
56293
56293
  shuffle: () => Op,
56294
- size: () => Hh,
56294
+ size: () => Uh,
56295
56295
  some: () => xl,
56296
56296
  sortBy: () => Ip,
56297
56297
  sortedIndex: () => Ga,
@@ -56315,7 +56315,7 @@ b`.split(/\n/).length != 3 ? function(u) {
56315
56315
  where: () => Ru,
56316
56316
  without: () => qd,
56317
56317
  wrap: () => bo,
56318
- zip: () => qh
56318
+ zip: () => Vh
56319
56319
  });
56320
56320
  var i = "1.13.1", o = typeof self == "object" && self.self === self && self || typeof global == "object" && global.global === global && global || Function("return this")() || {}, a = Array.prototype, s = Object.prototype, c = typeof Symbol < "u" ? Symbol.prototype : null, l = a.push, d = a.slice, p = s.toString, h = s.hasOwnProperty, m = typeof ArrayBuffer < "u", f = typeof DataView < "u", b = Array.isArray, w = Object.keys, k = Object.create, E = m && ArrayBuffer.isView, C = isNaN, A = isFinite, D = !{ toString: null }.propertyIsEnumerable("toString"), z = [
56321
56321
  "valueOf",
@@ -57050,7 +57050,7 @@ __p+='`), Un;
57050
57050
  });
57051
57051
  return Te;
57052
57052
  }
57053
- function jh(W, re, xe) {
57053
+ function Hh(W, re, xe) {
57054
57054
  var Te = 1 / 0, Ve = 1 / 0, Le, at;
57055
57055
  if (re == null || typeof re == "number" && typeof W[0] != "object" && W != null) {
57056
57056
  W = so(W) ? W : Fn(W);
@@ -57115,7 +57115,7 @@ __p+='`), Un;
57115
57115
  function gc(W) {
57116
57116
  return W ? gt(W) ? d.call(W) : Y(W) ? W.match(Bu) : so(W) ? Po(W, xr) : Fn(W) : [];
57117
57117
  }
57118
- function Hh(W) {
57118
+ function Uh(W) {
57119
57119
  return W == null ? 0 : so(W) ? W.length : Dn(W).length;
57120
57120
  }
57121
57121
  function ym(W, re, xe) {
@@ -57154,12 +57154,12 @@ __p+='`), Un;
57154
57154
  function Pp(W, re) {
57155
57155
  return Gr(W, re, !1);
57156
57156
  }
57157
- const Uh = H(function(W, re) {
57157
+ const qh = H(function(W, re) {
57158
57158
  return re = Gr(re, !0, !0), cs(W, function(xe) {
57159
57159
  return !xo(re, xe);
57160
57160
  });
57161
57161
  }), qd = H(function(W, re) {
57162
- return Uh(W, re);
57162
+ return qh(W, re);
57163
57163
  });
57164
57164
  function Yc(W, re, xe, Te) {
57165
57165
  R(re) || (Te = xe, xe = re, re = !1), xe != null && (xe = Fr(xe, Te));
@@ -57189,8 +57189,8 @@ __p+='`), Un;
57189
57189
  xe[Te] = ld(W, Te);
57190
57190
  return xe;
57191
57191
  }
57192
- const qh = H(Cl);
57193
- function Vh(W, re) {
57192
+ const Vh = H(Cl);
57193
+ function Wh(W, re) {
57194
57194
  for (var xe = {}, Te = 0, Ve = Ne(W); Te < Ve; Te++)
57195
57195
  re ? xe[W[Te]] = re[Te] : xe[W[Te][0]] = W[Te][1];
57196
57196
  return xe;
@@ -57232,7 +57232,7 @@ __p+='`), Un;
57232
57232
  return xe != null && (xe = re.apply(xe, arguments)), pd(this, xe);
57233
57233
  };
57234
57234
  });
57235
- const Wh = ne;
57235
+ const Gh = ne;
57236
57236
  var Ea = Fu(r);
57237
57237
  Ea._ = Ea;
57238
57238
  const Sl = Ea;
@@ -57715,7 +57715,7 @@ var Tp = (
57715
57715
  };
57716
57716
  };
57717
57717
  const owt = iwt;
57718
- var Ah = Vr(7058), eA;
57718
+ var Oh = Vr(7058), eA;
57719
57719
  (function(n) {
57720
57720
  n.add = "device:add", n.addBefore = "device:add:before", n.remove = "device:remove", n.removeBefore = "device:remove:before", n.select = "device:select", n.selectBefore = "device:select:before", n.update = "device:update", n.all = "device";
57721
57721
  })(eA || (eA = {}));
@@ -57940,7 +57940,7 @@ var cwt = /* @__PURE__ */ function() {
57940
57940
  return !!(t === "auto" || this.config.infiniteCanvas);
57941
57941
  }, e.prototype.toJSON = function(t) {
57942
57942
  t === void 0 && (t = {});
57943
- var r = Ah.A.prototype.toJSON.call(this, t), i = (0, Q.result)(this, "defaults");
57943
+ var r = Oh.A.prototype.toJSON.call(this, t), i = (0, Q.result)(this, "defaults");
57944
57944
  return t.fromUndo && delete r.component, delete r.styles, delete r.changesCount, r[HM] && delete r.width, r[UM] && delete r.height, r.refFrame && (r.refFrame = r.refFrame.id, delete r.component), (0, Q.forEach)(r, function(o, a) {
57945
57945
  a.indexOf("_") === 0 && delete r[a];
57946
57946
  }), (0, Q.forEach)(i, function(o, a) {
@@ -57949,7 +57949,7 @@ var cwt = /* @__PURE__ */ function() {
57949
57949
  (0, Q.isEmpty)(r[o]) && delete r[o];
57950
57950
  }), r;
57951
57951
  }, e;
57952
- }(Ah.A)
57952
+ }(Oh.A)
57953
57953
  );
57954
57954
  const qH = lwt;
57955
57955
  var dwt = /* @__PURE__ */ function() {
@@ -58081,7 +58081,7 @@ var pwt = /* @__PURE__ */ function() {
58081
58081
  var r = this.attributes, i = r.pointer, o = r.pointerScreen;
58082
58082
  return t === jt.x2.World ? i : o;
58083
58083
  }, e;
58084
- }(Ah.A)
58084
+ }(Oh.A)
58085
58085
  );
58086
58086
  const gwt = hwt;
58087
58087
  var jl = Vr(179), ni = Vr(2225), mwt = /* @__PURE__ */ function() {
@@ -58451,10 +58451,10 @@ const Dwt = function(n, e) {
58451
58451
  s = a.firstChild;
58452
58452
  return s;
58453
58453
  };
58454
- var bh;
58454
+ var wh;
58455
58455
  (function(n) {
58456
58456
  n.html = "parse:html", n.htmlRoot = "parse:html:root", n.htmlBefore = "parse:html:before", n.css = "parse:css", n.cssBefore = "parse:css:before", n.all = "parse";
58457
- })(bh || (bh = {}));
58457
+ })(wh || (wh = {}));
58458
58458
  var bd = function() {
58459
58459
  return bd = Object.assign || function(n) {
58460
58460
  for (var e, t = 1, r = arguments.length; t < r; t++) {
@@ -58647,7 +58647,7 @@ var bd = function() {
58647
58647
  // @ts-ignore Support previous `configParser.htmlType` option
58648
58648
  htmlType: ((o = e.optionsHtml) === null || o === void 0 ? void 0 : o.htmlType) || e.htmlType
58649
58649
  }), i), m = bd(bd({}, h), { asDocument: this.__checkAsDocument(t, h) }), f = m.preParser, b = m.asDocument, w = { input: (0, Q.isFunction)(f) ? f(t, { editor: n?.getEditor() }) : t };
58650
- l?.__emitEvent(bh.htmlBefore, w);
58650
+ l?.__emitEvent(wh.htmlBefore, w);
58651
58651
  var k = w.input, E = (0, Q.isFunction)(p.parserHtml) ? p.parserHtml(k, m) : Dwt(k, m), C = E, A = E;
58652
58652
  b && (C = A.documentElement, d.doctype = (0, Qt.LJ)(A.doctype));
58653
58653
  var D = C.querySelectorAll("script"), z = D.length, j = (0, Q.isUndefined)(c.allowScripts) ? m.allowScripts : c.allowScripts;
@@ -58659,7 +58659,7 @@ var bd = function() {
58659
58659
  X = H[N].innerHTML + X, (s = H[N].parentNode) === null || s === void 0 || s.removeChild(H[N]);
58660
58660
  X && (d.css = r.parse(X));
58661
58661
  }
58662
- l?.__emitEvent(bh.htmlRoot, { input: k, root: C });
58662
+ l?.__emitEvent(wh.htmlRoot, { input: k, root: C });
58663
58663
  var B = [];
58664
58664
  if (b)
58665
58665
  d.head = this.parseNode(A.head, p), d.root = this.parseNodeAttr(C), B = this.parseNode(A.body, p);
@@ -58667,7 +58667,7 @@ var bd = function() {
58667
58667
  var R = this.parseNodes(C, p);
58668
58668
  B = R.length === 1 && !p.returnArray ? R[0] : R;
58669
58669
  }
58670
- return d.html = B, l?.__emitEvent(bh.html, { input: k, output: d, options: m }), d;
58670
+ return d.html = B, l?.__emitEvent(wh.html, { input: k, output: d, options: m }), d;
58671
58671
  },
58672
58672
  __sanitizeNode: function(t, r) {
58673
58673
  var i = this, o = t.attributes || [], a = t.childNodes || [], s = [];
@@ -58691,10 +58691,10 @@ var bd = function() {
58691
58691
  };
58692
58692
  };
58693
58693
  const GH = Pwt;
58694
- var wh;
58694
+ var xh;
58695
58695
  (function(n) {
58696
58696
  n.add = "data:add", n.addBefore = "data:add:before", n.remove = "data:remove", n.removeBefore = "data:remove:before", n.update = "data:update", n.path = "data:path", n.pathSource = "data:pathSource:", n.all = "data";
58697
- })(wh || (wh = {}));
58697
+ })(xh || (xh = {}));
58698
58698
  var oA = "data-collection", Xy = "data-collection-item", Qm = "dataResolver", VM = (
58699
58699
  /** @class */
58700
58700
  function() {
@@ -59034,7 +59034,7 @@ var jwt = (
59034
59034
  }
59035
59035
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
59036
59036
  };
59037
- }(), Oh = "data-condition", qwt = "data-condition-evaluation-changed", h1 = "data-condition-output-changed", YH = (
59037
+ }(), Ih = "data-condition", qwt = "data-condition-evaluation-changed", h1 = "data-condition-output-changed", YH = (
59038
59038
  /** @class */
59039
59039
  function(n) {
59040
59040
  Uwt(e, n);
@@ -59046,7 +59046,7 @@ var jwt = (
59046
59046
  }
59047
59047
  return e.prototype.defaults = function() {
59048
59048
  return {
59049
- type: Oh,
59049
+ type: Ih,
59050
59050
  condition: {
59051
59051
  left: "",
59052
59052
  operator: kd.equalsIgnoreCase,
@@ -59123,7 +59123,7 @@ var jwt = (
59123
59123
  }, e.prototype.toJSON = function() {
59124
59124
  var t = this.getIfTrue(), r = this.getIfFalse();
59125
59125
  return {
59126
- type: Oh,
59126
+ type: Ih,
59127
59127
  condition: this._conditionEvaluator.toJSON(),
59128
59128
  ifTrue: t,
59129
59129
  ifFalse: r
@@ -59291,7 +59291,7 @@ var jwt = (
59291
59291
  n.__changesUp(i);
59292
59292
  };
59293
59293
  function aA(n) {
59294
- return typeof n == "object" && [dl, Oh].includes(n?.type);
59294
+ return typeof n == "object" && [dl, Ih].includes(n?.type);
59295
59295
  }
59296
59296
  function Zg(n) {
59297
59297
  return n?.type === dl;
@@ -59305,7 +59305,7 @@ function ZH(n, e) {
59305
59305
  case dl:
59306
59306
  i = new wv(n, e);
59307
59307
  break;
59308
- case Oh: {
59308
+ case Ih: {
59309
59309
  i = new YH(n, e);
59310
59310
  break;
59311
59311
  }
@@ -59500,7 +59500,7 @@ var n1t = (
59500
59500
  case dl:
59501
59501
  i = this.listenToDataVariable(t);
59502
59502
  break;
59503
- case Oh:
59503
+ case Ih:
59504
59504
  i = this.listenToConditionalVariable(t);
59505
59505
  break;
59506
59506
  }
@@ -59524,7 +59524,7 @@ var n1t = (
59524
59524
  if (!a)
59525
59525
  return i;
59526
59526
  var s = (0, bt.stringToPath)(a || "").join("."), c = r.DataSources.fromPath(a), l = c[0], d = c[1];
59527
- return l && i.push(this.createListener(l.records, "add remove reset", o)), d && i.push(this.createListener(d, "change")), i.push(this.createListener(r.DataSources.all, "add remove reset", o), this.createListener(r, "".concat(wh.path, ":").concat(s))), i;
59527
+ return l && i.push(this.createListener(l.records, "add remove reset", o)), d && i.push(this.createListener(d, "change")), i.push(this.createListener(r.DataSources.all, "add remove reset", o), this.createListener(r, "".concat(xh.path, ":").concat(s))), i;
59528
59528
  }, n.prototype.removeListeners = function() {
59529
59529
  var e = this;
59530
59530
  this.listeners.forEach(function(t) {
@@ -60187,7 +60187,7 @@ var u1t = /* @__PURE__ */ function() {
60187
60187
  }, e;
60188
60188
  }(jt.pM)
60189
60189
  );
60190
- const dh = iU;
60190
+ const uh = iU;
60191
60191
  iU.prototype.model = qs;
60192
60192
  var p1t = /* @__PURE__ */ function() {
60193
60193
  var n = function(e, t) {
@@ -61048,7 +61048,7 @@ var k1t = /* @__PURE__ */ function() {
61048
61048
  i === void 0 && (i = {});
61049
61049
  var o = "change:classes", a = this.get("attributes") || {}, s = a.class, c = _1t(a, ["class"]), l = [this, o, this.initClasses], d = this.get("classes") || s || [], p = (0, Q.isString)(d) ? d.split(" ") : d;
61050
61050
  this.stopListening.apply(this, l);
61051
- var h = this.normalizeClasses(p), m = new dh([]);
61051
+ var h = this.normalizeClasses(p), m = new uh([]);
61052
61052
  return this.set("classes", m, i), m.add(h), m.on("add remove reset", this.__upSymbCls), s && h.length && this.set("attributes", c), this.listenTo.apply(this, l), this;
61053
61053
  }, e.prototype.initComponents = function() {
61054
61054
  var t = "change:components", r = [this, t, this.initComponents];
@@ -62634,14 +62634,14 @@ var K1t = /* @__PURE__ */ function() {
62634
62634
  }
62635
62635
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
62636
62636
  };
62637
- }(), hg = function() {
62638
- return hg = Object.assign || function(n) {
62637
+ }(), gg = function() {
62638
+ return gg = Object.assign || function(n) {
62639
62639
  for (var e, t = 1, r = arguments.length; t < r; t++) {
62640
62640
  e = arguments[t];
62641
62641
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
62642
62642
  }
62643
62643
  return n;
62644
- }, hg.apply(this, arguments);
62644
+ }, gg.apply(this, arguments);
62645
62645
  }, Y1t = function(n, e, t) {
62646
62646
  if (t || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
62647
62647
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
@@ -62725,7 +62725,7 @@ var K1t = /* @__PURE__ */ function() {
62725
62725
  return this.getCanvasView().getElementOffsets(t);
62726
62726
  }, e.prototype.getRect = function() {
62727
62727
  var t, r = (t = this.getCanvasView().getPosition()) !== null && t !== void 0 ? t : {}, i = r.top, o = i === void 0 ? 0 : i, a = r.left, s = a === void 0 ? 0 : a;
62728
- return hg(hg({}, this.getCanvasView().getCanvasOffset()), { topScroll: o, leftScroll: s });
62728
+ return gg(gg({}, this.getCanvasView().getCanvasOffset()), { topScroll: o, leftScroll: s });
62729
62729
  }, e.prototype.getTargetToElementDim = function(t, r, i) {
62730
62730
  i === void 0 && (i = {});
62731
62731
  var o = i || {}, a = this.getCanvasView().getPosition();
@@ -62880,7 +62880,7 @@ var K1t = /* @__PURE__ */ function() {
62880
62880
  return t;
62881
62881
  });
62882
62882
  }, e.prototype.addFrame = function(t, r) {
62883
- return t === void 0 && (t = {}), r === void 0 && (r = {}), this.canvas.frames.add(new qH(this, hg({}, t)), r);
62883
+ return t === void 0 && (t = {}), r === void 0 && (r = {}), this.canvas.frames.add(new qH(this, gg({}, t)), r);
62884
62884
  }, e.prototype.getLastDragResult = function() {
62885
62885
  return this.em.get("dragResult");
62886
62886
  }, e.prototype.addSpot = function(t, r) {
@@ -62891,7 +62891,7 @@ var K1t = /* @__PURE__ */ function() {
62891
62891
  var s = a[0];
62892
62892
  return s.set(o), s;
62893
62893
  }
62894
- var c = o.componentView || ((i = o.component) === null || i === void 0 ? void 0 : i.view), l = new jl.A(this, hg(hg({}, o), { id: o.id || "cs_".concat(o.type, "_").concat(c?.cid), type: o.type || "" }));
62894
+ var c = o.componentView || ((i = o.component) === null || i === void 0 ? void 0 : i.view), l = new jl.A(this, gg(gg({}, o), { id: o.id || "cs_".concat(o.type, "_").concat(c?.cid), type: o.type || "" }));
62895
62895
  return this.spots.add(l, r), l;
62896
62896
  }, e.prototype.getSpots = function(t) {
62897
62897
  return t === void 0 && (t = {}), this.spots.where(t.id ? { id: t.id } : t);
@@ -64386,7 +64386,7 @@ var e2t = /* @__PURE__ */ function() {
64386
64386
  });
64387
64387
  }, e.prototype.initClasses = function() {
64388
64388
  var t = this.model, r = t.classes, i = "change:classes";
64389
- r instanceof dh && (this.stopListening(t, i, this.initClasses), this.listenTo(t, i, this.initClasses), this.listenTo(r, "add remove change reset", this.updateClasses), r.length && this.importClasses());
64389
+ r instanceof uh && (this.stopListening(t, i, this.initClasses), this.listenTo(t, i, this.initClasses), this.listenTo(r, "add remove change reset", this.updateClasses), r.length && this.importClasses());
64390
64390
  }, e.prototype.initComponents = function(t) {
64391
64391
  t === void 0 && (t = {});
64392
64392
  var r = this, i = r.model, o = r.$el, a = r.childrenView, s = "change:components", c = i.get("components"), l = [i, s, this.initComponents];
@@ -64756,14 +64756,14 @@ var p2t = /* @__PURE__ */ function() {
64756
64756
  }
64757
64757
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
64758
64758
  };
64759
- }(), gg = function() {
64760
- return gg = Object.assign || function(n) {
64759
+ }(), mg = function() {
64760
+ return mg = Object.assign || function(n) {
64761
64761
  for (var e, t = 1, r = arguments.length; t < r; t++) {
64762
64762
  e = arguments[t];
64763
64763
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
64764
64764
  }
64765
64765
  return n;
64766
- }, gg.apply(this, arguments);
64766
+ }, mg.apply(this, arguments);
64767
64767
  }, kw = function(n, e, t, r) {
64768
64768
  function i(o) {
64769
64769
  return o instanceof t ? o : new t(function(a) {
@@ -64920,7 +64920,7 @@ var p2t = /* @__PURE__ */ function() {
64920
64920
  case 4:
64921
64921
  return p = h.sent(), s.logError(p), [3, 5];
64922
64922
  case 5:
64923
- return c && (d !== this.lastContent || l.forceSync) ? [4, this.syncContent(gg(gg({}, t), { content: d }))] : [3, 7];
64923
+ return c && (d !== this.lastContent || l.forceSync) ? [4, this.syncContent(mg(mg({}, t), { content: d }))] : [3, 7];
64924
64924
  case 6:
64925
64925
  h.sent(), this.lastContent = "", h.label = 7;
64926
64926
  case 7:
@@ -64960,7 +64960,7 @@ var p2t = /* @__PURE__ */ function() {
64960
64960
  case 2:
64961
64961
  c = h.sent(), h.label = 3;
64962
64962
  case 3:
64963
- return s = c, l = i.components(), d = gg({ fromDisable: 1 }, t), i.set("content", "", d), o?.customRte && !o.customRte.parseContent ? (l.length && l.reset(void 0, gg(gg({}, t), {
64963
+ return s = c, l = i.components(), d = mg({ fromDisable: 1 }, t), i.set("content", "", d), o?.customRte && !o.customRte.parseContent ? (l.length && l.reset(void 0, mg(mg({}, t), {
64964
64964
  // @ts-ignore
64965
64965
  keepIds: hf(l)
64966
64966
  })), i.set("content", s, d)) : l.resetFromString(s, t), [
@@ -65828,8 +65828,8 @@ var dkt = /* @__PURE__ */ function() {
65828
65828
  }, e.prototype.triggerChange = function(t, r) {
65829
65829
  r === void 0 && (r = {});
65830
65830
  var i = this, o = i.dataSource, a = i.em, s = this.getPaths(t), c = { dataSource: o, dataRecord: this, path: s[0], options: r };
65831
- a.trigger(wh.path, c), a.trigger("".concat(wh.pathSource, ":").concat(o.id), c), s.forEach(function(l) {
65832
- return a.trigger("".concat(wh.path, ":").concat(l), f2(f2({}, c), { path: l }));
65831
+ a.trigger(xh.path, c), a.trigger("".concat(xh.pathSource, ":").concat(o.id), c), s.forEach(function(l) {
65832
+ return a.trigger("".concat(xh.path, ":").concat(l), f2(f2({}, c), { path: l }));
65833
65833
  });
65834
65834
  }, e.prototype.set = function(t, r, i) {
65835
65835
  var o = this, a, s;
@@ -66286,7 +66286,7 @@ var Ekt = /* @__PURE__ */ function() {
66286
66286
  }
66287
66287
  return Object.defineProperty(e.prototype, "defaults", {
66288
66288
  get: function() {
66289
- return y2(y2({}, n.prototype.defaults), { droppable: !1, type: Oh, dataResolver: {
66289
+ return y2(y2({}, n.prototype.defaults), { droppable: !1, type: Ih, dataResolver: {
66290
66290
  condition: {
66291
66291
  left: "",
66292
66292
  operator: kd.equalsIgnoreCase,
@@ -66328,7 +66328,7 @@ var Ekt = /* @__PURE__ */ function() {
66328
66328
  var i = this.components().at(t);
66329
66329
  i?.components(r);
66330
66330
  }, e.isComponent = function(t) {
66331
- return (0, bt.toLowerCase)(t.tagName) === Oh;
66331
+ return (0, bt.toLowerCase)(t.tagName) === Ih;
66332
66332
  }, e;
66333
66333
  }(vU)
66334
66334
  );
@@ -66445,7 +66445,7 @@ var Lkt = (
66445
66445
  view: Tkt
66446
66446
  },
66447
66447
  {
66448
- id: Oh,
66448
+ id: Ih,
66449
66449
  model: Okt,
66450
66450
  view: lkt
66451
66451
  },
@@ -66928,14 +66928,14 @@ var qkt = /* @__PURE__ */ function() {
66928
66928
  }
66929
66929
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
66930
66930
  };
66931
- }(), mg = function() {
66932
- return mg = Object.assign || function(n) {
66931
+ }(), fg = function() {
66932
+ return fg = Object.assign || function(n) {
66933
66933
  for (var e, t = 1, r = arguments.length; t < r; t++) {
66934
66934
  e = arguments[t];
66935
66935
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
66936
66936
  }
66937
66937
  return n;
66938
- }, mg.apply(this, arguments);
66938
+ }, fg.apply(this, arguments);
66939
66939
  }, Vkt = function(n, e, t) {
66940
66940
  if (t || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
66941
66941
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
@@ -66968,7 +66968,7 @@ var qkt = /* @__PURE__ */ function() {
66968
66968
  var i = this.em, o = this.changedAttributes();
66969
66969
  o && !(0, bt.isEmptyObj)(o) && i?.changesUp(r);
66970
66970
  }, e.prototype.clone = function() {
66971
- var t = mg({}, this.opt), r = mg({}, this.attributes);
66971
+ var t = fg({}, this.opt), r = fg({}, this.attributes);
66972
66972
  return r.selectors = this.get("selectors").map(function(i) {
66973
66973
  return i.clone();
66974
66974
  }), new this.constructor(r, t);
@@ -66980,7 +66980,7 @@ var qkt = /* @__PURE__ */ function() {
66980
66980
  }).map(function(d) {
66981
66981
  return a ? a.add(d) : d;
66982
66982
  });
66983
- c = new dh(l);
66983
+ c = new uh(l);
66984
66984
  }
66985
66985
  this.set("selectors", c, i), this.listenTo.apply(this, s);
66986
66986
  }, e.prototype.getAtRule = function() {
@@ -66996,7 +66996,7 @@ var qkt = /* @__PURE__ */ function() {
66996
66996
  return s && r.push("".concat(s).concat(c)), o && !t.skipAdd && r.push(o), r.join(", ");
66997
66997
  }, e.prototype.getDeclaration = function(t) {
66998
66998
  t === void 0 && (t = {});
66999
- var r = "", i = this.attributes.important, o = this.selectorsToString(t), a = this.styleToString(mg({ important: i }, t)), s = this.get("singleAtRule");
66999
+ var r = "", i = this.attributes.important, o = this.selectorsToString(t), a = this.styleToString(fg({ important: i }, t)), s = this.get("singleAtRule");
67000
67000
  return (o || s) && (a || t.allowEmpty) && (r = s ? a : "".concat(o, "{").concat(a, "}")), r;
67001
67001
  }, e.prototype.getDevice = function() {
67002
67002
  var t = this.em, r = this.attributes, i = r.atRuleType, o = r.mediaText, a = t?.Devices.getDevices() || [], s = a.filter(function(c) {
@@ -67027,7 +67027,7 @@ var qkt = /* @__PURE__ */ function() {
67027
67027
  o[c] === s && delete o[c];
67028
67028
  }), delete o.style.__p, (0, Q.isEmpty)(o.selectors) && delete o.selectors, (0, Q.isEmpty)(o.style) && delete o.style;
67029
67029
  }
67030
- return mg(mg({}, o), { style: this.dataResolverWatchers.getStylesDefsOrValues(o.style) });
67030
+ return fg(fg({}, o), { style: this.dataResolverWatchers.getStylesDefsOrValues(o.style) });
67031
67031
  }, e.prototype.compare = function(t, r, i, o) {
67032
67032
  var a;
67033
67033
  o === void 0 && (o = {});
@@ -67106,14 +67106,14 @@ var Kkt = /* @__PURE__ */ function() {
67106
67106
  }
67107
67107
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
67108
67108
  };
67109
- }(), fg = function() {
67110
- return fg = Object.assign || function(n) {
67109
+ }(), vg = function() {
67110
+ return vg = Object.assign || function(n) {
67111
67111
  for (var e, t = 1, r = arguments.length; t < r; t++) {
67112
67112
  e = arguments[t];
67113
67113
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
67114
67114
  }
67115
67115
  return n;
67116
- }, fg.apply(this, arguments);
67116
+ }, vg.apply(this, arguments);
67117
67117
  }, Ykt = function(n, e, t) {
67118
67118
  if (t || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
67119
67119
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
@@ -67129,7 +67129,7 @@ var Kkt = /* @__PURE__ */ function() {
67129
67129
  CssRules: iP,
67130
67130
  CssRuleView: d4,
67131
67131
  CssRulesView: iA
67132
- }, r.events = ev, r.Selectors = dh, r.storageKey = "styles";
67132
+ }, r.events = ev, r.Selectors = uh, r.storageKey = "styles";
67133
67133
  var i = r.config, o = i.pStylePrefix;
67134
67134
  return o && (i.stylePrefix = o + i.stylePrefix), i.rules = r.em.config.style || i.rules || "", r.rules = new iP([], i), r;
67135
67135
  }
@@ -67146,7 +67146,7 @@ var Kkt = /* @__PURE__ */ function() {
67146
67146
  });
67147
67147
  }, e.prototype.add = function(t, r, i, o, a) {
67148
67148
  o === void 0 && (o = {}), a === void 0 && (a = {});
67149
- var s = r || "", c = i || "", l = fg({}, o), d = this.get(t, s, c, l);
67149
+ var s = r || "", c = i || "", l = vg({}, o), d = this.get(t, s, c, l);
67150
67150
  return d && d.config && !d.config.singleAtRule || (l.state = s, l.mediaText = c, l.selectors = [], c && !l.atRuleType && (l.atRuleType = "media"), d = new pA(l, this.config), d.get("selectors").add(t, a), this.rules.add(d, a)), d;
67151
67151
  }, e.prototype.get = function(t, r, i, o) {
67152
67152
  var a = t;
@@ -67174,7 +67174,7 @@ var Kkt = /* @__PURE__ */ function() {
67174
67174
  }
67175
67175
  var E = this.get(f, d.state, d.mediaText, d), C = this.add(f, d.state, d.mediaText, d, r), A = !E || !r.avoidUpdateStyle, D = d.style || {};
67176
67176
  if ((0, bt.isObject)(i) && C.set(i, r), A) {
67177
- var z = r.extend ? fg(fg({}, C.getStyle("", { skipResolve: !0 })), D) : D;
67177
+ var z = r.extend ? vg(vg({}, C.getStyle("", { skipResolve: !0 })), D) : D;
67178
67178
  C.setStyle(z, r);
67179
67179
  }
67180
67180
  a.push(C);
@@ -67213,7 +67213,7 @@ var Kkt = /* @__PURE__ */ function() {
67213
67213
  }, e.prototype.setIdRule = function(t, r, i) {
67214
67214
  r === void 0 && (r = {}), i === void 0 && (i = {});
67215
67215
  var o = i.addOpts, a = o === void 0 ? {} : o, s = i.mediaText, c = i.state || "", l = (0, Q.isUndefined)(s) ? this.em.getCurrentMedia() : s, d = this.em.Selectors, p = d.add({ name: t, type: qs.TYPE_ID }, a), h = this.add(p, c, l, {}, a);
67216
- return h.setStyle(r, fg(fg({}, i), a)), h;
67216
+ return h.setStyle(r, vg(vg({}, i), a)), h;
67217
67217
  }, e.prototype.getIdRule = function(t, r) {
67218
67218
  r === void 0 && (r = {});
67219
67219
  var i = r.mediaText, o = r.state || "", a = (0, Q.isUndefined)(i) ? this.em.getCurrentMedia() : i, s = this.em.Selectors.get(t, qs.TYPE_ID);
@@ -68228,10 +68228,10 @@ var lP, dP, uP, pP, hP, C_t = /* @__PURE__ */ function() {
68228
68228
  function(n) {
68229
68229
  C_t(e, n);
68230
68230
  function e(t) {
68231
- var r = n.call(this, t, "SelectorManager", new dh([]), O_t, m_t(), { skipListen: !0 }) || this;
68232
- r.Selector = qs, r.Selectors = dh, r.storageKey = "", (0, Q.bindAll)(r, "__updateSelectedByComponents");
68231
+ var r = n.call(this, t, "SelectorManager", new uh([]), O_t, m_t(), { skipListen: !0 }) || this;
68232
+ r.Selector = qs, r.Selectors = uh, r.storageKey = "", (0, Q.bindAll)(r, "__updateSelectedByComponents");
68233
68233
  var i = r.config, o = i.pStylePrefix;
68234
- o && (i.stylePrefix = o + i.stylePrefix), r.all = new dh(i.selectors), r.selected = new dh([], { em: t, config: i }), r.states = new jt.pM(i.states.map(function(c) {
68234
+ o && (i.stylePrefix = o + i.stylePrefix), r.all = new uh(i.selectors), r.selected = new uh([], { em: t, config: i }), r.states = new jt.pM(i.states.map(function(c) {
68235
68235
  return new pS(c);
68236
68236
  }), { model: pS }), r.model = new jt.Kx({ cFirst: i.componentFirst, _undo: !0 }), r.__update = (0, Q.debounce)(function() {
68237
68237
  return r.__trgCustom();
@@ -68520,7 +68520,7 @@ var F_t = function(n, e) {
68520
68520
  var i = this;
68521
68521
  r === void 0 && (r = {});
68522
68522
  var o = [], a = e.parserCss, s = n?.Editor, c = [], l, d = n?.Parser, p = { input: t };
68523
- d?.__emitEvent(bh.cssBefore, p);
68523
+ d?.__emitEvent(wh.cssBefore, p);
68524
68524
  var h = p.input;
68525
68525
  try {
68526
68526
  c = a ? a(h, s) : B_t(h);
@@ -68530,7 +68530,7 @@ var F_t = function(n, e) {
68530
68530
  }
68531
68531
  return c.forEach(function(m) {
68532
68532
  return o = o.concat(i.checkNode(m));
68533
- }), d?.__emitEvent(bh.css, { input: h, output: o, nodes: c, error: l }), o;
68533
+ }), d?.__emitEvent(wh.css, { input: h, output: o, nodes: c, error: l }), o;
68534
68534
  },
68535
68535
  /**
68536
68536
  * Check the returned node from a custom parser and transforms it to
@@ -68585,7 +68585,7 @@ var $_t = /* @__PURE__ */ function() {
68585
68585
  $_t(e, n);
68586
68586
  function e(t) {
68587
68587
  var r = n.call(this, t, "Parser", P_t()) || this;
68588
- r.events = bh;
68588
+ r.events = wh;
68589
68589
  var i = r.config;
68590
68590
  return r.parserCss = z_t(t, i), r.parserHtml = GH(t, i), r;
68591
68591
  }
@@ -71998,7 +71998,7 @@ var e3t = /* @__PURE__ */ function() {
71998
71998
  e3t(e, n);
71999
71999
  function e(t) {
72000
72000
  var r = n.call(this, t, "LayerManager", BCt()) || this;
72001
- return r.events = n3t, (0, Q.bindAll)(r, "componentChanged", "__onRootChange", "__onComponent"), r.model = new Ah.A(r, { opened: {} }), r.config.stylePrefix = r.config.pStylePrefix, r;
72001
+ return r.events = n3t, (0, Q.bindAll)(r, "componentChanged", "__onRootChange", "__onComponent"), r.model = new Oh.A(r, { opened: {} }), r.config.stylePrefix = r.config.pStylePrefix, r;
72002
72002
  }
72003
72003
  return e.prototype.onLoad = function() {
72004
72004
  var t = this, r = this, i = r.em, o = r.config, a = r.model;
@@ -73396,7 +73396,7 @@ var G3t = /* @__PURE__ */ function() {
73396
73396
  function e(t) {
73397
73397
  var r = n.call(this, t, "PageManager", new W3t([], t), nA) || this;
73398
73398
  r.events = nA, r.storageKey = "pages", (0, Q.bindAll)(r, "_onPageChange");
73399
- var i = new Ah.A(r, { _undo: !0 });
73399
+ var i = new Oh.A(r, { _undo: !0 });
73400
73400
  return r.model = i, r.pages.on("reset", r.__onReset, r), r.pages.on("all", r.__onChange, r), i.on(BP, r._onPageChange), r;
73401
73401
  }
73402
73402
  return Object.defineProperty(e.prototype, "pages", {
@@ -73768,14 +73768,14 @@ var nSt = /* @__PURE__ */ function() {
73768
73768
  }(Fc)
73769
73769
  );
73770
73770
  const iSt = rSt;
73771
- var vg = function() {
73772
- return vg = Object.assign || function(n) {
73771
+ var yg = function() {
73772
+ return yg = Object.assign || function(n) {
73773
73773
  for (var e, t = 1, r = arguments.length; t < r; t++) {
73774
73774
  e = arguments[t];
73775
73775
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
73776
73776
  }
73777
73777
  return n;
73778
- }, vg.apply(this, arguments);
73778
+ }, yg.apply(this, arguments);
73779
73779
  }, oSt = function(n, e) {
73780
73780
  e === void 0 && (e = {});
73781
73781
  var t = e.prefix || "", r = document.createElement("i");
@@ -73818,12 +73818,12 @@ var vg = function() {
73818
73818
  bl: !0,
73819
73819
  bc: !0,
73820
73820
  br: !0
73821
- }, this.opts = vg({}, this.defOpts), this.setOptions(e), (0, Q.bindAll)(this, "handleKeyDown", "handleMouseDown", "move", "stop");
73821
+ }, this.opts = yg({}, this.defOpts), this.setOptions(e), (0, Q.bindAll)(this, "handleKeyDown", "handleMouseDown", "move", "stop");
73822
73822
  }
73823
73823
  return n.prototype.getConfig = function() {
73824
73824
  return this.opts;
73825
73825
  }, n.prototype.setOptions = function(e, t) {
73826
- e === void 0 && (e = {}), this.opts = vg(vg({}, t ? this.defOpts : this.opts), e), this.setup();
73826
+ e === void 0 && (e = {}), this.opts = yg(yg({}, t ? this.defOpts : this.opts), e), this.setup();
73827
73827
  }, n.prototype.setup = function() {
73828
73828
  var e = this.opts, t = e.prefix || "", r = e.appendTo || document.body, i = this.container;
73829
73829
  for (i || (i = document.createElement("div"), i.className = "".concat(t, "resizer-c"), r.appendChild(i), this.container = i); i.firstChild; )
@@ -73932,7 +73932,7 @@ var vg = function() {
73932
73932
  !i.avoidContainerUpdate && a && e.forceShow && (s.display = "block"), (t = this.onUpdateContainer) === null || t === void 0 || t.call(this, {
73933
73933
  el: o,
73934
73934
  resizer: this,
73935
- opts: vg(vg({}, i), e)
73935
+ opts: yg(yg({}, i), e)
73936
73936
  });
73937
73937
  }, n.prototype.getSelectedHandler = function() {
73938
73938
  var e = this.handlers;
@@ -75347,7 +75347,7 @@ var iTt = /* @__PURE__ */ function() {
75347
75347
  }, e.prototype.close = function() {
75348
75348
  this.set("open", !1);
75349
75349
  }, e;
75350
- }(Ah.A)
75350
+ }(Oh.A)
75351
75351
  );
75352
75352
  const aTt = oTt;
75353
75353
  var sTt = /* @__PURE__ */ function() {
@@ -75690,7 +75690,7 @@ var mTt = /* @__PURE__ */ function() {
75690
75690
  enumerable: !1,
75691
75691
  configurable: !0
75692
75692
  }), e;
75693
- }(Ah.A)
75693
+ }(Oh.A)
75694
75694
  );
75695
75695
  const dq = fTt;
75696
75696
  var vTt = /* @__PURE__ */ function() {
@@ -75783,7 +75783,7 @@ var yTt = /* @__PURE__ */ function() {
75783
75783
  enumerable: !1,
75784
75784
  configurable: !0
75785
75785
  }), e;
75786
- }(Ah.A)
75786
+ }(Oh.A)
75787
75787
  );
75788
75788
  const hq = bTt;
75789
75789
  var wTt = /* @__PURE__ */ function() {
@@ -78884,14 +78884,14 @@ var bAt = /* @__PURE__ */ function() {
78884
78884
  }
78885
78885
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
78886
78886
  };
78887
- }(), yg = function() {
78888
- return yg = Object.assign || function(n) {
78887
+ }(), bg = function() {
78888
+ return bg = Object.assign || function(n) {
78889
78889
  for (var e, t = 1, r = arguments.length; t < r; t++) {
78890
78890
  e = arguments[t];
78891
78891
  for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && (n[i] = e[i]);
78892
78892
  }
78893
78893
  return n;
78894
- }, yg.apply(this, arguments);
78894
+ }, bg.apply(this, arguments);
78895
78895
  }, wAt = (
78896
78896
  /** @class */
78897
78897
  function(n) {
@@ -78900,7 +78900,7 @@ var bAt = /* @__PURE__ */ function() {
78900
78900
  return n !== null && n.apply(this, arguments) || this;
78901
78901
  }
78902
78902
  return e.prototype.defaults = function() {
78903
- return yg(yg({}, Vi.getDefaults()), { units: [], unit: "", min: "", max: "", step: 1 });
78903
+ return bg(bg({}, Vi.getDefaults()), { units: [], unit: "", min: "", max: "", step: 1 });
78904
78904
  }, e.prototype.getUnits = function() {
78905
78905
  return this.get("units") || [];
78906
78906
  }, e.prototype.getUnit = function() {
@@ -78918,10 +78918,10 @@ var bAt = /* @__PURE__ */ function() {
78918
78918
  var i = this.get("unit"), o = this.getUnits();
78919
78919
  this.input = (0, bt.hasWin)() ? new jU({ model: this }) : void 0, o.length && !i && this.set("unit", o[0], { silent: !0 }), Vi.callInit(this, t, r);
78920
78920
  }, e.prototype.__getClearProps = function() {
78921
- return yg(yg({}, Vi.prototype.__getClearProps()), { unit: "" });
78921
+ return bg(bg({}, Vi.prototype.__getClearProps()), { unit: "" });
78922
78922
  }, e.prototype.parseValue = function(t, r) {
78923
78923
  r === void 0 && (r = {});
78924
- var i = Vi.prototype.parseValue.apply(this, arguments), o = this.input.validateInputValue(i.value, yg({ deepCheck: 1 }, r)), a = o.value, s = o.unit;
78924
+ var i = Vi.prototype.parseValue.apply(this, arguments), o = this.input.validateInputValue(i.value, bg({ deepCheck: 1 }, r)), a = o.value, s = o.unit;
78925
78925
  return i.value = a, i.unit = s, i;
78926
78926
  }, e.prototype.getFullValue = function() {
78927
78927
  var t = this.get("value"), r = this.get("unit"), i = (0, Q.isUndefined)(t) ? "" : "".concat(t), o = !(0, Q.isUndefined)(r) && i ? r : "", a = "".concat(i).concat(o);
@@ -79317,7 +79317,7 @@ var rh = function() {
79317
79317
  for (var i = 0, r = Object.getOwnPropertySymbols(n); i < r.length; i++)
79318
79318
  e.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[i]) && (t[r[i]] = n[r[i]]);
79319
79319
  return t;
79320
- }, rg = function(n, e, t) {
79320
+ }, ig = function(n, e, t) {
79321
79321
  if (t || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
79322
79322
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
79323
79323
  return n.concat(o || Array.prototype.slice.call(e));
@@ -79330,8 +79330,8 @@ var rh = function() {
79330
79330
  function() {
79331
79331
  function n() {
79332
79332
  this.props = {}, this.typeNumber = "number", this.typeColor = "color", this.typeRadio = "radio", this.typeSelect = "select", this.typeFile = "file", this.typeSlider = "slider", this.typeComposite = "composite", this.typeStack = "stack", this.unitsSize = ["px", "%", "em", "rem", "vh", "vw"], this.unitsSizeNoPerc = ["px", "em", "rem", "vh", "vw"], this.unitsTime = ["s", "ms"], this.unitsAngle = ["deg", "rad", "grad"], this.fixedValues = ["initial", "inherit", "auto"];
79333
- var e = ", sans-serif", t = ["flex-start", "flex-end", "center"], r = rg(rg([], t, !0), ["baseline", "stretch"], !1);
79334
- this.optsBgSize = fa(["auto", "cover", "contain"]), this.optsBgAttach = fa(["scroll", "fixed", "local"]), this.optsBgRepeat = fa(["repeat", "repeat-x", "repeat-y", "no-repeat"]), this.optsWrap = fa(["nowrap", "wrap", "wrap-reverse"]), this.optsOverflow = fa(["visible", "hidden", "scroll", "auto"]), this.optsDir = fa(["row", "row-reverse", "column", "column-reverse"]), this.opstDisplay = fa(["block", "inline", "inline-block", "flex", "none"]), this.optsTransitFn = fa(["linear", "ease", "ease-in", "ease-out", "ease-in-out"]), this.optsCursor = fa(["auto", "pointer", "copy", "crosshair", "grab", "grabbing", "help", "move", "text"]), this.optsFloat = fa(["none", "left", "right"]), this.optsPos = fa(["static", "relative", "absolute", "fixed"]), this.optsTextAlign = fa(["left", "center", "right", "justify"]), this.optsFlexAlign = fa(r), this.optsJustCont = fa(rg(rg([], t, !0), ["space-between", "space-around", "space-evenly"], !1)), this.optsAlignCont = fa(rg(rg([], t, !0), ["space-between", "space-around", "stretch"], !1)), this.optsAlignSelf = fa(rg(["auto"], r, !0)), this.optsTransitProp = fa([
79333
+ var e = ", sans-serif", t = ["flex-start", "flex-end", "center"], r = ig(ig([], t, !0), ["baseline", "stretch"], !1);
79334
+ this.optsBgSize = fa(["auto", "cover", "contain"]), this.optsBgAttach = fa(["scroll", "fixed", "local"]), this.optsBgRepeat = fa(["repeat", "repeat-x", "repeat-y", "no-repeat"]), this.optsWrap = fa(["nowrap", "wrap", "wrap-reverse"]), this.optsOverflow = fa(["visible", "hidden", "scroll", "auto"]), this.optsDir = fa(["row", "row-reverse", "column", "column-reverse"]), this.opstDisplay = fa(["block", "inline", "inline-block", "flex", "none"]), this.optsTransitFn = fa(["linear", "ease", "ease-in", "ease-out", "ease-in-out"]), this.optsCursor = fa(["auto", "pointer", "copy", "crosshair", "grab", "grabbing", "help", "move", "text"]), this.optsFloat = fa(["none", "left", "right"]), this.optsPos = fa(["static", "relative", "absolute", "fixed"]), this.optsTextAlign = fa(["left", "center", "right", "justify"]), this.optsFlexAlign = fa(r), this.optsJustCont = fa(ig(ig([], t, !0), ["space-between", "space-around", "space-evenly"], !1)), this.optsAlignCont = fa(ig(ig([], t, !0), ["space-between", "space-around", "stretch"], !1)), this.optsAlignSelf = fa(ig(["auto"], r, !0)), this.optsTransitProp = fa([
79335
79335
  "all",
79336
79336
  "width",
79337
79337
  "height",
@@ -80239,8 +80239,8 @@ var a9t = /* @__PURE__ */ function() {
80239
80239
  function(n) {
80240
80240
  a9t(e, n);
80241
80241
  function e(t) {
80242
- var r = n.call(this, t, "DataSources", new o9t([], t), wh) || this;
80243
- return r.storageKey = "dataSources", r.events = wh, Object.assign(r, Rx.Events), r;
80242
+ var r = n.call(this, t, "DataSources", new o9t([], t), xh) || this;
80243
+ return r.storageKey = "dataSources", r.events = xh, Object.assign(r, Rx.Events), r;
80244
80244
  }
80245
80245
  return e.prototype.destroy = function() {
80246
80246
  }, e.prototype.add = function(t, r) {
@@ -82916,7 +82916,7 @@ const m4t = {
82916
82916
  "column-gap": "0px",
82917
82917
  "content-position": Ai.TopLeft,
82918
82918
  "content-type": gn.Automatic,
82919
- "content-variant": kh.Overlay,
82919
+ "content-variant": _h.Overlay,
82920
82920
  "data-constraints": !1,
82921
82921
  "details-source-field": "",
82922
82922
  "download-format": "",
@@ -82996,7 +82996,7 @@ const m4t = {
82996
82996
  controlType: "select",
82997
82997
  helpText: (i) => {
82998
82998
  const o = i["card-type"];
82999
- return YR(o) ? n.term(`cardTypeHelpText${xh(o)}`) : "";
82999
+ return YR(o) ? n.term(`cardTypeHelpText${kh(o)}`) : "";
83000
83000
  },
83001
83001
  id: "card-type",
83002
83002
  label: n.term("cardType"),
@@ -84889,7 +84889,7 @@ const N4t = {
84889
84889
  "column-gap": "16px",
84890
84890
  "content-position": Ai.Top,
84891
84891
  "content-type": gn.Automatic,
84892
- "content-variant": kh.Overlay,
84892
+ "content-variant": _h.Overlay,
84893
84893
  "details-source-field": "",
84894
84894
  "download-format": "",
84895
84895
  easing: zn.Linear,
@@ -84970,7 +84970,7 @@ const N4t = {
84970
84970
  controlType: "select",
84971
84971
  helpText: (i) => {
84972
84972
  const o = i["card-type"];
84973
- return YR(o) ? n.term(`cardTypeHelpText${xh(o)}`) : "";
84973
+ return YR(o) ? n.term(`cardTypeHelpText${kh(o)}`) : "";
84974
84974
  },
84975
84975
  id: "card-type",
84976
84976
  label: n.term("cardType"),
@@ -85249,11 +85249,11 @@ const N4t = {
85249
85249
  ...i,
85250
85250
  "can-pin-first-card": !1,
85251
85251
  "content-position": Ai.Bottom,
85252
- "content-variant": kh.Default,
85252
+ "content-variant": _h.Default,
85253
85253
  "slides-per-page": "4"
85254
85254
  } : {
85255
85255
  ...i,
85256
- "content-variant": kh.Overlay
85256
+ "content-variant": _h.Overlay
85257
85257
  },
85258
85258
  controlType: "radio-card-group",
85259
85259
  direction: "vertical",
@@ -88872,7 +88872,7 @@ let zo = class extends On {
88872
88872
  };
88873
88873
  zo.styles = [Tn, w6t];
88874
88874
  zo.dependencies = {
88875
- "cx-card": Ih,
88875
+ "cx-card": Dh,
88876
88876
  "cx-dialog": Ha,
88877
88877
  "cx-grid": am,
88878
88878
  "cx-grid-item": sm,
@@ -106249,12 +106249,16 @@ let za = class extends On {
106249
106249
  this.assetRequestingStatus = n.detail.busy;
106250
106250
  }
106251
106251
  handleAssetSelect(n) {
106252
- Array.isArray(n.detail) || (this.isThumbnailManuallySet = !0, this.editedImage = {
106252
+ if (Array.isArray(n.detail))
106253
+ return;
106254
+ this.isThumbnailManuallySet = !0;
106255
+ const e = n.detail.type === ch.Audio ? n.detail.representative ?? n.detail.src : n.detail.src;
106256
+ this.editedImage = {
106253
106257
  ...this.editedImage,
106254
106258
  id: n.detail.id,
106255
106259
  name: n.detail.name,
106256
- src: n.detail.src
106257
- });
106260
+ src: e
106261
+ };
106258
106262
  }
106259
106263
  handleAssetDelete() {
106260
106264
  this.isThumbnailManuallySet = !1, this.editedImage = {
@@ -106327,7 +106331,7 @@ let za = class extends On {
106327
106331
  ${pt(
106328
106332
  this.showOpenInNewTab,
106329
106333
  () => V`<cx-grid columns="3" spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-checkbox .defaultChecked=${this.editedImage.openInNewTab ?? !0} ?checked=${this.editedImage.openInNewTab ?? !0} @cx-change=${this.handleOpenInNewTabChange}><cx-typography variant="body2">${this.localize.term("openInNewTab")}</cx-typography></cx-checkbox></cx-grid-item></cx-grid>`
106330
- )}<cx-grid columns="3" spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("thumbnail")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-asset-picker id=${this.editedImage.id} name="src" required type="image audio" value=${rr(this.editedImage.src)} record-id=${this.editedImage.rawId || ""} ?disabled=${this.disabledAssetPicker} .onRequestAsset=${this.onRequestAsset} @cx-asset-request-status=${this.handleAssetRequestStatus} @cx-content-builder-asset-select=${this.handleAssetSelect} @cx-content-builder-asset-delete=${this.handleAssetDelete}></cx-asset-picker></cx-grid-item></cx-grid><cx-grid columns="3" spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("crop")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-radio-group data-testid="object-fit-control" horizontal value=${rr(this.editedImage.objectFit)} size="medium" @cx-change=${this.handleObjectFitChange}>${Hn(
106334
+ )}<cx-grid columns="3" spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("thumbnail")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-asset-picker id=${this.editedImage.id} name="src" required type="image audio" use-representative-for="audio" value=${rr(this.editedImage.src)} record-id=${this.editedImage.rawId || ""} ?disabled=${this.disabledAssetPicker} .onRequestAsset=${this.onRequestAsset} @cx-asset-request-status=${this.handleAssetRequestStatus} @cx-content-builder-asset-select=${this.handleAssetSelect} @cx-content-builder-asset-delete=${this.handleAssetDelete}></cx-asset-picker></cx-grid-item></cx-grid><cx-grid columns="3" spacing="var(--cx-spacing-small)" column-spacing="0" wrap="nowrap"><cx-grid-item xs="3" sm="1"><cx-typography variant="body2">${this.localize.term("crop")}</cx-typography></cx-grid-item><cx-grid-item xs="3" sm="2"><cx-radio-group data-testid="object-fit-control" horizontal value=${rr(this.editedImage.objectFit)} size="medium" @cx-change=${this.handleObjectFitChange}>${Hn(
106331
106335
  [
106332
106336
  {
106333
106337
  name: "Fit",
@@ -107303,43 +107307,52 @@ class Z6t {
107303
107307
  "other-picker",
107304
107308
  () => {
107305
107309
  const l = async (p) => {
107306
- const h = Array.isArray(p.detail) ? p.detail : [p.detail], m = h.map((k) => k.id).join(" "), f = h.map((k) => k.src).join(" "), b = h.map((k) => k.name).join(", "), w = h.map((k) => k.type).join(" ");
107310
+ const h = Array.isArray(p.detail) ? p.detail : [p.detail], m = h.map((C) => C.id).join(" "), f = h.map((C) => C.src).join(" "), b = h.map((C) => C.representative ?? "").join(" "), w = h.map((C) => C.name).join(", "), k = h.map((C) => C.type).join(" "), E = h.map((C) => C.extension ?? "").join(" ");
107307
107311
  await o({
107312
+ extension: E,
107308
107313
  id: m,
107309
- name: b,
107314
+ name: w,
107315
+ representative: b,
107310
107316
  src: f,
107311
- type: w
107317
+ type: k
107312
107318
  });
107313
107319
  }, d = async () => {
107314
107320
  await o({
107321
+ extension: "",
107315
107322
  id: "",
107316
107323
  name: "",
107317
- src: ""
107324
+ representative: "",
107325
+ src: "",
107326
+ type: ""
107318
107327
  });
107319
107328
  };
107320
- return V`<cx-asset-picker value=${r} type="other" name=${e[c.pickerConfigs?.name ?? "name"] ?? ""} ?multiple=${c.pickerConfigs?.multiple ?? !1} ?required=${c.required ?? !1} .accepts=${c.pickerConfigs?.accepts ?? []} @cx-content-builder-asset-select=${l} @cx-content-builder-asset-delete=${d} .onRequestAsset=${this.host.onRequestAsset}>${s}</cx-asset-picker>`;
107329
+ return V`<cx-asset-picker value=${r} type="other" name=${e[c.pickerConfigs?.nameKey ?? "name"] ?? ""} ?multiple=${c.pickerConfigs?.multiple ?? !1} ?required=${c.required ?? !1} .accepts=${c.pickerConfigs?.accepts ?? []} @cx-content-builder-asset-select=${l} @cx-content-builder-asset-delete=${d} .onRequestAsset=${this.host.onRequestAsset}>${s}</cx-asset-picker>`;
107321
107330
  }
107322
107331
  ],
107323
107332
  [
107324
107333
  "all-picker",
107325
107334
  () => {
107326
107335
  const l = async (p) => {
107327
- const h = Array.isArray(p.detail) ? p.detail : [p.detail], m = h.map((k) => k.id).join(" "), f = h.map((k) => k.src).join(" "), b = h.map((k) => k.name).join(", "), w = h.map((k) => k.type).join(" ");
107336
+ const h = Array.isArray(p.detail) ? p.detail : [p.detail], m = h.map((C) => C.id).join(" "), f = h.map((C) => C.src).join(" "), b = h.map((C) => C.representative ?? "").join(" "), w = h.map((C) => C.name).join(", "), k = h.map((C) => C.type).join(" "), E = h.map((C) => C.extension ?? "").join(" ");
107328
107337
  await o({
107338
+ extension: E,
107329
107339
  id: m,
107330
- name: b,
107340
+ name: w,
107341
+ representative: b,
107331
107342
  src: f,
107332
- type: w
107343
+ type: k
107333
107344
  });
107334
107345
  }, d = async () => {
107335
107346
  await o({
107347
+ extension: "",
107336
107348
  id: "",
107337
107349
  name: "",
107350
+ representative: "",
107338
107351
  src: "",
107339
107352
  type: ""
107340
107353
  });
107341
107354
  };
107342
- return V`<cx-asset-picker value=${r} type="all" name=${e[c.pickerConfigs?.name ?? "name"] ?? ""} ?multiple=${c.pickerConfigs?.multiple ?? !1} ?required=${c.required ?? !1} .accepts=${c.pickerConfigs?.accepts ?? []} @cx-content-builder-asset-select=${l} @cx-content-builder-asset-delete=${d} .onRequestAsset=${this.host.onRequestAsset}>${s}</cx-asset-picker>`;
107355
+ return V`<cx-asset-picker value=${r} type="all" name=${e[c.pickerConfigs?.nameKey ?? "name"] ?? ""} ?multiple=${c.pickerConfigs?.multiple ?? !1} ?required=${c.required ?? !1} .accepts=${c.pickerConfigs?.accepts ?? []} @cx-content-builder-asset-select=${l} @cx-content-builder-asset-delete=${d} .onRequestAsset=${this.host.onRequestAsset}>${s}</cx-asset-picker>`;
107343
107356
  }
107344
107357
  ],
107345
107358
  [
@@ -107748,28 +107761,20 @@ class Z6t {
107748
107761
  case "other-picker": {
107749
107762
  l = async (d) => {
107750
107763
  if (typeof d == "object" && d !== null) {
107751
- const { id: p, name: h, src: m, type: f } = d;
107752
- p === "" && h === "" && m === "" && (await this.handleConfigChange(
107753
- i,
107754
- "",
107755
- a,
107756
- o.callback
107757
- ), await this.handleConfigChange(
107758
- o.pickerConfigs?.name ?? "name",
107759
- "",
107760
- "attribute",
107761
- o.callback
107762
- ));
107763
- const b = o.callback ? (w) => o.callback({
107764
- ...w,
107765
- extraValue: { id: p, name: h, type: f }
107764
+ const { extension: p, id: h, name: m, representative: f, src: b, type: w } = d;
107765
+ if (h === "" && m === "" && b === "") {
107766
+ const E = o.callback ? (C) => o.callback({
107767
+ ...C,
107768
+ extraValue: { extension: p, id: h, name: m, representative: "", type: "" }
107769
+ }) : void 0;
107770
+ await this.handleConfigChange(i, "", a, E);
107771
+ return;
107772
+ }
107773
+ const k = o.callback ? (E) => o.callback({
107774
+ ...E,
107775
+ extraValue: { extension: p, id: h, name: m, representative: f, type: w }
107766
107776
  }) : void 0;
107767
- await this.handleConfigChange(i, m, a, b), await this.handleConfigChange(
107768
- o.pickerConfigs?.name ?? "name",
107769
- h,
107770
- "attribute",
107771
- b
107772
- );
107777
+ await this.handleConfigChange(i, b, a, k);
107773
107778
  }
107774
107779
  };
107775
107780
  break;
@@ -107777,28 +107782,20 @@ class Z6t {
107777
107782
  case "all-picker": {
107778
107783
  l = async (d) => {
107779
107784
  if (typeof d == "object" && d !== null) {
107780
- const { id: p, name: h, src: m, type: f } = d;
107781
- p === "" && h === "" && m === "" && f === "" && (await this.handleConfigChange(
107782
- i,
107783
- "",
107784
- a,
107785
- o.callback
107786
- ), await this.handleConfigChange(
107787
- o.pickerConfigs?.name ?? "name",
107788
- "",
107789
- "attribute",
107790
- o.callback
107791
- ));
107792
- const b = o.callback ? (w) => o.callback({
107793
- ...w,
107794
- extraValue: { id: p, name: h, type: f }
107785
+ const { extension: p, id: h, name: m, representative: f, src: b, type: w } = d;
107786
+ if (h === "" && m === "" && b === "" && w === "") {
107787
+ const E = o.callback ? (C) => o.callback({
107788
+ ...C,
107789
+ extraValue: { extension: p, id: h, name: m, representative: "", type: "" }
107790
+ }) : void 0;
107791
+ await this.handleConfigChange(i, "", a, E);
107792
+ return;
107793
+ }
107794
+ const k = o.callback ? (E) => o.callback({
107795
+ ...E,
107796
+ extraValue: { extension: p, id: h, name: m, representative: f, type: w }
107795
107797
  }) : void 0;
107796
- await this.handleConfigChange(i, m, a, b), await this.handleConfigChange(
107797
- o.pickerConfigs?.name ?? "name",
107798
- h,
107799
- "attribute",
107800
- b
107801
- );
107798
+ await this.handleConfigChange(i, b, a, k);
107802
107799
  }
107803
107800
  };
107804
107801
  break;
@@ -108281,7 +108278,7 @@ let wr = class extends On {
108281
108278
  () => V`<cx-line-clamp lines="1">${this.dialogTitle}</cx-line-clamp>`,
108282
108279
  () => V`${this.localize.term(
108283
108280
  "settingsTitle",
108284
- xh($Y(this.blockName))
108281
+ kh($Y(this.blockName))
108285
108282
  )}`
108286
108283
  )}</cx-typography>${pt(
108287
108284
  this.templateName,
@@ -108332,7 +108329,7 @@ wr.dependencies = {
108332
108329
  "cx-border-input-group": JR,
108333
108330
  "cx-button": ki,
108334
108331
  "cx-button-group": u9,
108335
- "cx-card": Ih,
108332
+ "cx-card": Dh,
108336
108333
  "cx-checkbox": om,
108337
108334
  "cx-color-swatch-picker": vo,
108338
108335
  "cx-confirm-popover": T9,
@@ -112818,10 +112815,10 @@ var Na;
112818
112815
  n[n.NUM = 35] = "NUM", n[n.SEMI = 59] = "SEMI", n[n.EQUALS = 61] = "EQUALS", n[n.ZERO = 48] = "ZERO", n[n.NINE = 57] = "NINE", n[n.LOWER_A = 97] = "LOWER_A", n[n.LOWER_F = 102] = "LOWER_F", n[n.LOWER_X = 120] = "LOWER_X", n[n.LOWER_Z = 122] = "LOWER_Z", n[n.UPPER_A = 65] = "UPPER_A", n[n.UPPER_F = 70] = "UPPER_F", n[n.UPPER_Z = 90] = "UPPER_Z";
112819
112816
  })(Na || (Na = {}));
112820
112817
  const J7t = 32;
112821
- var uh;
112818
+ var ph;
112822
112819
  (function(n) {
112823
112820
  n[n.VALUE_LENGTH = 49152] = "VALUE_LENGTH", n[n.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", n[n.JUMP_TABLE = 127] = "JUMP_TABLE";
112824
- })(uh || (uh = {}));
112821
+ })(ph || (ph = {}));
112825
112822
  function BA(n) {
112826
112823
  return n >= Na.ZERO && n <= Na.NINE;
112827
112824
  }
@@ -112967,7 +112964,7 @@ class uV {
112967
112964
  */
112968
112965
  stateNamedEntity(e, t) {
112969
112966
  const { decodeTree: r } = this;
112970
- let i = r[this.treeIndex], o = (i & uh.VALUE_LENGTH) >> 14;
112967
+ let i = r[this.treeIndex], o = (i & ph.VALUE_LENGTH) >> 14;
112971
112968
  for (; t < e.length; t++, this.excess++) {
112972
112969
  const a = e.charCodeAt(t);
112973
112970
  if (this.treeIndex = t8t(r, i, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0)
@@ -112975,7 +112972,7 @@ class uV {
112975
112972
  this.decodeMode === rp.Attribute && // We shouldn't have consumed any characters after the entity,
112976
112973
  (o === 0 || // And there should be no invalid characters.
112977
112974
  e8t(a)) ? 0 : this.emitNotTerminatedNamedEntity();
112978
- if (i = r[this.treeIndex], o = (i & uh.VALUE_LENGTH) >> 14, o !== 0) {
112975
+ if (i = r[this.treeIndex], o = (i & ph.VALUE_LENGTH) >> 14, o !== 0) {
112979
112976
  if (a === Na.SEMI)
112980
112977
  return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
112981
112978
  this.decodeMode !== rp.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
@@ -112990,7 +112987,7 @@ class uV {
112990
112987
  */
112991
112988
  emitNotTerminatedNamedEntity() {
112992
112989
  var e;
112993
- const { result: t, decodeTree: r } = this, i = (r[t] & uh.VALUE_LENGTH) >> 14;
112990
+ const { result: t, decodeTree: r } = this, i = (r[t] & ph.VALUE_LENGTH) >> 14;
112994
112991
  return this.emitNamedEntityData(t, i, this.consumed), (e = this.errors) === null || e === void 0 || e.missingSemicolonAfterCharacterReference(), this.consumed;
112995
112992
  }
112996
112993
  /**
@@ -113004,7 +113001,7 @@ class uV {
113004
113001
  */
113005
113002
  emitNamedEntityData(e, t, r) {
113006
113003
  const { decodeTree: i } = this;
113007
- return this.emitCodePoint(t === 1 ? i[e] & ~uh.VALUE_LENGTH : i[e + 1], r), t === 3 && this.emitCodePoint(i[e + 2], r), r;
113004
+ return this.emitCodePoint(t === 1 ? i[e] & ~ph.VALUE_LENGTH : i[e + 1], r), t === 3 && this.emitCodePoint(i[e + 2], r), r;
113008
113005
  }
113009
113006
  /**
113010
113007
  * Signal to the parser that the end of the input was reached.
@@ -113053,7 +113050,7 @@ function pV(n) {
113053
113050
  };
113054
113051
  }
113055
113052
  function t8t(n, e, t, r) {
113056
- const i = (e & uh.BRANCH_LENGTH) >> 7, o = e & uh.JUMP_TABLE;
113053
+ const i = (e & ph.BRANCH_LENGTH) >> 7, o = e & ph.JUMP_TABLE;
113057
113054
  if (i === 0)
113058
113055
  return o !== 0 && r === o ? t : -1;
113059
113056
  if (o) {
@@ -121586,7 +121583,7 @@ function X4(n, e, t) {
121586
121583
  }
121587
121584
  return Bn.fromArray(r);
121588
121585
  }
121589
- class ph extends Ts {
121586
+ class hh extends Ts {
121590
121587
  /**
121591
121588
  Create a mark step.
121592
121589
  */
@@ -121602,10 +121599,10 @@ class ph extends Ts {
121602
121599
  }
121603
121600
  map(e) {
121604
121601
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
121605
- return t.deleted && r.deleted || t.pos >= r.pos ? null : new ph(t.pos, r.pos, this.mark);
121602
+ return t.deleted && r.deleted || t.pos >= r.pos ? null : new hh(t.pos, r.pos, this.mark);
121606
121603
  }
121607
121604
  merge(e) {
121608
- return e instanceof ph && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new ph(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
121605
+ return e instanceof hh && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new hh(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
121609
121606
  }
121610
121607
  toJSON() {
121611
121608
  return {
@@ -121621,10 +121618,10 @@ class ph extends Ts {
121621
121618
  static fromJSON(e, t) {
121622
121619
  if (typeof t.from != "number" || typeof t.to != "number")
121623
121620
  throw new RangeError("Invalid input for AddMarkStep.fromJSON");
121624
- return new ph(t.from, t.to, e.markFromJSON(t.mark));
121621
+ return new hh(t.from, t.to, e.markFromJSON(t.mark));
121625
121622
  }
121626
121623
  }
121627
- Ts.jsonID("addMark", ph);
121624
+ Ts.jsonID("addMark", hh);
121628
121625
  class lu extends Ts {
121629
121626
  /**
121630
121627
  Create a mark-removing step.
@@ -121637,7 +121634,7 @@ class lu extends Ts {
121637
121634
  return ta.fromReplace(e, this.from, this.to, r);
121638
121635
  }
121639
121636
  invert() {
121640
- return new ph(this.from, this.to, this.mark);
121637
+ return new hh(this.from, this.to, this.mark);
121641
121638
  }
121642
121639
  map(e) {
121643
121640
  let t = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
@@ -121664,7 +121661,7 @@ class lu extends Ts {
121664
121661
  }
121665
121662
  }
121666
121663
  Ts.jsonID("removeMark", lu);
121667
- class hh extends Ts {
121664
+ class gh extends Ts {
121668
121665
  /**
121669
121666
  Create a node mark step.
121670
121667
  */
@@ -121685,15 +121682,15 @@ class hh extends Ts {
121685
121682
  if (r.length == t.marks.length) {
121686
121683
  for (let i = 0; i < t.marks.length; i++)
121687
121684
  if (!t.marks[i].isInSet(r))
121688
- return new hh(this.pos, t.marks[i]);
121689
- return new hh(this.pos, this.mark);
121685
+ return new gh(this.pos, t.marks[i]);
121686
+ return new gh(this.pos, this.mark);
121690
121687
  }
121691
121688
  }
121692
121689
  return new rm(this.pos, this.mark);
121693
121690
  }
121694
121691
  map(e) {
121695
121692
  let t = e.mapResult(this.pos, 1);
121696
- return t.deletedAfter ? null : new hh(t.pos, this.mark);
121693
+ return t.deletedAfter ? null : new gh(t.pos, this.mark);
121697
121694
  }
121698
121695
  toJSON() {
121699
121696
  return { stepType: "addNodeMark", pos: this.pos, mark: this.mark.toJSON() };
@@ -121704,10 +121701,10 @@ class hh extends Ts {
121704
121701
  static fromJSON(e, t) {
121705
121702
  if (typeof t.pos != "number")
121706
121703
  throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");
121707
- return new hh(t.pos, e.markFromJSON(t.mark));
121704
+ return new gh(t.pos, e.markFromJSON(t.mark));
121708
121705
  }
121709
121706
  }
121710
- Ts.jsonID("addNodeMark", hh);
121707
+ Ts.jsonID("addNodeMark", gh);
121711
121708
  class rm extends Ts {
121712
121709
  /**
121713
121710
  Create a mark-removing step.
@@ -121724,7 +121721,7 @@ class rm extends Ts {
121724
121721
  }
121725
121722
  invert(e) {
121726
121723
  let t = e.nodeAt(this.pos);
121727
- return !t || !this.mark.isInSet(t.marks) ? this : new hh(this.pos, this.mark);
121724
+ return !t || !this.mark.isInSet(t.marks) ? this : new gh(this.pos, this.mark);
121728
121725
  }
121729
121726
  map(e) {
121730
121727
  let t = e.mapResult(this.pos, 1);
@@ -121877,7 +121874,7 @@ function NMt(n, e, t, r) {
121877
121874
  let h = Math.max(l, e), m = Math.min(l + c.nodeSize, t), f = r.addToSet(p);
121878
121875
  for (let b = 0; b < p.length; b++)
121879
121876
  p[b].isInSet(f) || (a && a.to == h && a.mark.eq(p[b]) ? a.to = m : i.push(a = new lu(h, m, p[b])));
121880
- s && s.to == h ? s.to = m : o.push(s = new ph(h, m, r));
121877
+ s && s.to == h ? s.to = m : o.push(s = new hh(h, m, r));
121881
121878
  }
121882
121879
  }), i.forEach((c) => n.step(c)), o.forEach((c) => n.step(c));
121883
121880
  }
@@ -122585,7 +122582,7 @@ class JMt {
122585
122582
  Add a mark to the node at position `pos`.
122586
122583
  */
122587
122584
  addNodeMark(e, t) {
122588
- return this.step(new hh(e, t)), this;
122585
+ return this.step(new gh(e, t)), this;
122589
122586
  }
122590
122587
  /**
122591
122588
  Remove a mark (or all marks of the given type) from the node at
@@ -128311,7 +128308,7 @@ const aLt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3
128311
128308
  "#BA372A",
128312
128309
  "#843FA1",
128313
128310
  "#236FA1"
128314
- ], ig = {
128311
+ ], og = {
128315
128312
  addColumnAfter: "add_column_right",
128316
128313
  addColumnBefore: "add_column_left",
128317
128314
  addRowAfter: "add_row_below",
@@ -128440,7 +128437,7 @@ const LL = {
128440
128437
  keepRatio: !0,
128441
128438
  src: "",
128442
128439
  title: "",
128443
- type: bg.Image,
128440
+ type: ch.Image,
128444
128441
  width: ""
128445
128442
  };
128446
128443
  let ns = class extends On {
@@ -128556,7 +128553,7 @@ let ns = class extends On {
128556
128553
  async handleBrowserClick() {
128557
128554
  if (this.onRequestAsset)
128558
128555
  try {
128559
- const n = await this.onRequestAsset(bg.Image), { src: e } = n;
128556
+ const n = await this.onRequestAsset(ch.Image), { src: e } = n;
128560
128557
  this.setSrc(e);
128561
128558
  } catch {
128562
128559
  }
@@ -128640,7 +128637,7 @@ let ns = class extends On {
128640
128637
  ns.styles = [Tn, ALt];
128641
128638
  ns.dependencies = {
128642
128639
  "cx-border-input-group": JR,
128643
- "cx-card": Ih,
128640
+ "cx-card": Dh,
128644
128641
  "cx-checkbox": om,
128645
128642
  "cx-color-picker": ck,
128646
128643
  "cx-dialog": Ha,
@@ -129277,47 +129274,47 @@ let Hr = class extends On {
129277
129274
  renderTableControl() {
129278
129275
  const n = this.tiptapEditor;
129279
129276
  return V`<div class="rte-table-bubble-row" data-testid="rte-bubble-menu-table"><cx-space class="action-group" direction="horizontal">${this.renderIconButton(
129280
- ig.deleteTable,
129277
+ og.deleteTable,
129281
129278
  this.localize.term("deleteTable"),
129282
129279
  () => n?.chain().focus().deleteTable().run(),
129283
129280
  void 0,
129284
129281
  () => !n?.can().deleteTable()
129285
129282
  )}</cx-space><div class="rte-bubble-separator" role="separator" aria-hidden="true"></div><cx-space class="action-group" direction="horizontal">${this.renderIconButton(
129286
- ig.addRowBefore,
129283
+ og.addRowBefore,
129287
129284
  this.localize.term("insertRowBefore"),
129288
129285
  () => n?.chain().focus().addRowBefore().run(),
129289
129286
  void 0,
129290
129287
  () => !n?.can().addRowBefore()
129291
129288
  )}
129292
129289
  ${this.renderIconButton(
129293
- ig.addRowAfter,
129290
+ og.addRowAfter,
129294
129291
  this.localize.term("insertRowAfter"),
129295
129292
  () => n?.chain().focus().addRowAfter().run(),
129296
129293
  void 0,
129297
129294
  () => !n?.can().addRowAfter()
129298
129295
  )}
129299
129296
  ${this.renderIconButton(
129300
- ig.deleteRow,
129297
+ og.deleteRow,
129301
129298
  this.localize.term("deleteRow"),
129302
129299
  () => n?.chain().focus().deleteRow().run(),
129303
129300
  void 0,
129304
129301
  () => !n?.can().deleteRow()
129305
129302
  )}</cx-space><div class="rte-bubble-separator" role="separator" aria-hidden="true"></div><cx-space class="action-group" direction="horizontal">${this.renderIconButton(
129306
- ig.addColumnBefore,
129303
+ og.addColumnBefore,
129307
129304
  this.localize.term("insertColumnBefore"),
129308
129305
  () => n?.chain().focus().addColumnBefore().run(),
129309
129306
  void 0,
129310
129307
  () => !n?.can().addColumnBefore()
129311
129308
  )}
129312
129309
  ${this.renderIconButton(
129313
- ig.addColumnAfter,
129310
+ og.addColumnAfter,
129314
129311
  this.localize.term("insertColumnAfter"),
129315
129312
  () => n?.chain().focus().addColumnAfter().run(),
129316
129313
  void 0,
129317
129314
  () => !n?.can().addColumnAfter()
129318
129315
  )}
129319
129316
  ${this.renderIconButton(
129320
- ig.deleteColumn,
129317
+ og.deleteColumn,
129321
129318
  this.localize.term("deleteColumn"),
129322
129319
  () => n?.chain().focus().deleteColumn().run(),
129323
129320
  void 0,
@@ -129380,7 +129377,7 @@ let Hr = class extends On {
129380
129377
  keepRatio: e.keepRatio || !1,
129381
129378
  src: e.src || "",
129382
129379
  title: e.title || "",
129383
- type: bg.Image,
129380
+ type: ch.Image,
129384
129381
  width: e.width || ""
129385
129382
  };
129386
129383
  }
@@ -130733,21 +130730,21 @@ const Pd = (n, e, t) => {
130733
130730
  if (!Pd[t])
130734
130731
  throw new Error("unknown blend mode " + t);
130735
130732
  return Pd[t](n, e);
130736
- }, Fh = (n) => (e, t) => {
130733
+ }, zh = (n) => (e, t) => {
130737
130734
  const r = $r(t).rgb(), i = $r(e).rgb();
130738
130735
  return $r.rgb(n(r, i));
130739
- }, zh = (n) => (e, t) => {
130736
+ }, $h = (n) => (e, t) => {
130740
130737
  const r = [];
130741
130738
  return r[0] = n(e[0], t[0]), r[1] = n(e[1], t[1]), r[2] = n(e[2], t[2]), r;
130742
130739
  }, GRt = (n) => n, KRt = (n, e) => n * e / 255, YRt = (n, e) => n > e ? e : n, XRt = (n, e) => n > e ? n : e, JRt = (n, e) => 255 * (1 - (1 - n / 255) * (1 - e / 255)), ZRt = (n, e) => e < 128 ? 2 * n * e / 255 : 255 * (1 - 2 * (1 - n / 255) * (1 - e / 255)), QRt = (n, e) => 255 * (1 - (1 - e / 255) / (n / 255)), eBt = (n, e) => n === 255 ? 255 : (n = 255 * (e / 255) / (1 - n / 255), n > 255 ? 255 : n);
130743
- Pd.normal = Fh(zh(GRt));
130744
- Pd.multiply = Fh(zh(KRt));
130745
- Pd.screen = Fh(zh(JRt));
130746
- Pd.overlay = Fh(zh(ZRt));
130747
- Pd.darken = Fh(zh(YRt));
130748
- Pd.lighten = Fh(zh(XRt));
130749
- Pd.dodge = Fh(zh(eBt));
130750
- Pd.burn = Fh(zh(QRt));
130740
+ Pd.normal = zh($h(GRt));
130741
+ Pd.multiply = zh($h(KRt));
130742
+ Pd.screen = zh($h(JRt));
130743
+ Pd.overlay = zh($h(ZRt));
130744
+ Pd.darken = zh($h(YRt));
130745
+ Pd.lighten = zh($h(XRt));
130746
+ Pd.dodge = zh($h(eBt));
130747
+ Pd.burn = zh($h(QRt));
130751
130748
  const { pow: tBt, sin: nBt, cos: rBt } = Math;
130752
130749
  function iBt(n = 300, e = -1.5, t = 1, r = 1, i = [0, 1]) {
130753
130750
  let o = 0, a;
@@ -131276,7 +131273,7 @@ function zBt(n) {
131276
131273
  };
131277
131274
  }
131278
131275
  }
131279
- var $Bt = Object.defineProperty, jBt = Object.getOwnPropertyDescriptor, $h = (n, e, t, r) => {
131276
+ var $Bt = Object.defineProperty, jBt = Object.getOwnPropertyDescriptor, jh = (n, e, t, r) => {
131280
131277
  for (var i = r > 1 ? void 0 : r ? jBt(e, t) : e, o = n.length - 1, a; o >= 0; o--)
131281
131278
  (a = n[o]) && (i = (r ? a(e, t, i) : a(i)) || i);
131282
131279
  return r && i && $Bt(e, t, i), i;
@@ -131487,28 +131484,28 @@ Nd.dependencies = {
131487
131484
  "cx-space": ci,
131488
131485
  "cx-typography": mi
131489
131486
  };
131490
- $h([
131487
+ jh([
131491
131488
  $({ reflect: !0, type: Boolean })
131492
131489
  ], Nd.prototype, "open", 2);
131493
- $h([
131490
+ jh([
131494
131491
  $({ attribute: "tiptap-editor", type: Object })
131495
131492
  ], Nd.prototype, "tiptapEditor", 2);
131496
- $h([
131493
+ jh([
131497
131494
  $({ attribute: "handle-dialog-cancel", type: Function })
131498
131495
  ], Nd.prototype, "handleDialogCancel", 2);
131499
- $h([
131496
+ jh([
131500
131497
  $({ attribute: "handle-dialog-confirm", type: Function })
131501
131498
  ], Nd.prototype, "handleDialogConfirm", 2);
131502
- $h([
131499
+ jh([
131503
131500
  $({ type: Object })
131504
131501
  ], Nd.prototype, "boundary", 2);
131505
- $h([
131502
+ jh([
131506
131503
  ye()
131507
131504
  ], Nd.prototype, "tableStyles", 2);
131508
- $h([
131505
+ jh([
131509
131506
  Tt(["open", "tiptapEditor"])
131510
131507
  ], Nd.prototype, "onOpenStateChange", 1);
131511
- Nd = $h([
131508
+ Nd = jh([
131512
131509
  wn("cx-table-dialog")
131513
131510
  ], Nd);
131514
131511
  const HBt = bn`.container{padding:0 var(--cx-spacing-x-small)}.cell{width:var(--cx-spacing-large);height:var(--cx-spacing-large);border:1px solid var(--cx-panel-border-color);border-radius:var(--cx-border-radius-small);cursor:pointer;backgroubnd-color:transparent;transition:background-color .2s ease-in-out;display:block}.cell-highlight{background-color:var(--cx-menu-item-background-color-hover)}`;
@@ -132702,16 +132699,16 @@ let pr = class extends On {
132702
132699
  }
132703
132700
  onRequestAsset(n) {
132704
132701
  return new Promise((t) => {
132705
- n === bg.Image ? t({
132702
+ n === ch.Image ? t({
132706
132703
  id: "example-id",
132707
132704
  name: "test",
132708
132705
  src: "https://local.orangelogic.com/Assets/V2/MQYHu9JLm4ZnRSbesuitQwZ8hlzfNJxU4wZBgf4iFYttUK_5oyLV_BQ0bEo_eJCk0WX5dnIQ@NznXPQckFqBTrb2JJm82cNPJnFi8YvZsLk-/FYGtspJ3sVgnl9ns/moKB596OhaoNyGR1/X1UDJO.jpg",
132709
- type: bg.Image
132710
- }) : n === bg.Video && t({
132706
+ type: ch.Image
132707
+ }) : n === ch.Video && t({
132711
132708
  id: "example-id",
132712
132709
  name: "test",
132713
132710
  src: "https://local.orangelogic.com/Assets/V2/MQYHu9JLm4ZnRSbesuitQ5afXR@WX7dqirSG2kRhB0UFCGLI1jGjzNq2HUNHpjqvU2JRbSR7I_NuWGcVILDK3nYcDEaiHySOrZLsy4WIHgtCfi3nkFxStF7brhoN7pZq/onfezGa0XL4E2hCX/yAjrMTe3nL2_krCV/X1UBDR.mp4",
132714
- type: bg.Video
132711
+ type: ch.Video
132715
132712
  });
132716
132713
  });
132717
132714
  }
@@ -133198,10 +133195,10 @@ Cr([
133198
133195
  Tt("distance", { waitUntilFirstUpdate: !0 })
133199
133196
  ], pr.prototype, "handleHoveredComponentChange", 1);
133200
133197
  Cr([
133201
- Dh(10)
133198
+ Mh(10)
133202
133199
  ], pr.prototype, "handleCanvasMouseMove", 1);
133203
133200
  Cr([
133204
- Dh(10)
133201
+ Mh(10)
133205
133202
  ], pr.prototype, "handleCanvasScroll", 1);
133206
133203
  Cr([
133207
133204
  Tt(["canvasSrc", "containerSelector"], { waitUntilFirstUpdate: !0 })
@@ -134980,8 +134977,8 @@ function lFt() {
134980
134977
  else for (Aa = 0; Aa < hn; ++Aa) yr.push(Yt = Rt[it](tr[Aa])), Yt.onerror = ir;
134981
134978
  }
134982
134979
  function Lp(Oa) {
134983
- Oa = Oa.target.result, yr.forEach(function(hd, Gh) {
134984
- return hd.error != null && (or[Gh] = hd.error);
134980
+ Oa = Oa.target.result, yr.forEach(function(hd, Kh) {
134981
+ return hd.error != null && (or[Kh] = hd.error);
134985
134982
  }), Ut({ numFailures: ls, failures: or, results: it === "delete" ? st : yr.map(function(hd) {
134986
134983
  return hd.result;
134987
134984
  }), lastResult: Oa });
@@ -135050,8 +135047,8 @@ function lFt() {
135050
135047
  }, tr.stop();
135051
135048
  }
135052
135049
  var Lp = new Promise(function(Oa, hd) {
135053
- Oa = Wn(Oa), Yt.onerror = bo(hd), tr.fail = hd, tr.stop = function(Gh) {
135054
- tr.stop = tr.continue = tr.continuePrimaryKey = tr.advance = ls, Oa(Gh);
135050
+ Oa = Wn(Oa), Yt.onerror = bo(hd), tr.fail = hd, tr.stop = function(Kh) {
135051
+ tr.stop = tr.continue = tr.continuePrimaryKey = tr.advance = ls, Oa(Kh);
135055
135052
  };
135056
135053
  });
135057
135054
  return Yt.onsuccess = Wn(function(Oa) {
@@ -135274,7 +135271,7 @@ function lFt() {
135274
135271
  return Vc(U, Z || null, /\&/.test(T), /\*/.test(T), /\+\+/.test(T), s(Z), P === 0);
135275
135272
  });
135276
135273
  }
135277
- var jh = (dd.prototype._parseStoresSpec = function(_, T) {
135274
+ var Hh = (dd.prototype._parseStoresSpec = function(_, T) {
135278
135275
  a(_).forEach(function(P) {
135279
135276
  if (_[P] !== null) {
135280
135277
  var U = Ap(_[P]), Z = U.shift();
@@ -135325,8 +135322,8 @@ function lFt() {
135325
135322
  if (0 < U) throw RangeError();
135326
135323
  if (Dp(_)) return c(_, { from: T, to: P, d: 1 });
135327
135324
  var Z = _.l, U = _.r;
135328
- if (ue(P, _.from) < 0) return Z ? Hd(Z, T, P) : _.l = { from: T, to: P, d: 1, l: null, r: null }, Hh(_);
135329
- if (0 < ue(T, _.to)) return U ? Hd(U, T, P) : _.r = { from: T, to: P, d: 1, l: null, r: null }, Hh(_);
135325
+ if (ue(P, _.from) < 0) return Z ? Hd(Z, T, P) : _.l = { from: T, to: P, d: 1, l: null, r: null }, Uh(_);
135326
+ if (0 < ue(T, _.to)) return U ? Hd(U, T, P) : _.r = { from: T, to: P, d: 1, l: null, r: null }, Uh(_);
135330
135327
  ue(T, _.from) < 0 && (_.from = T, _.l = null, _.d = U ? U.d + 1 : 1), 0 < ue(P, _.to) && (_.to = P, _.r = null, _.d = _.l ? _.l.d + 1 : 1), P = !_.r, Z && !_.l && ud(_, Z), U && P && ud(_, U);
135331
135328
  }
135332
135329
  }
@@ -135365,7 +135362,7 @@ function lFt() {
135365
135362
  return { done: !0 };
135366
135363
  } };
135367
135364
  }
135368
- function Hh(_) {
135365
+ function Uh(_) {
135369
135366
  var T, P, U = (((T = _.r) === null || T === void 0 ? void 0 : T.d) || 0) - (((P = _.l) === null || P === void 0 ? void 0 : P.d) || 0), Z = 1 < U ? "r" : U < -1 ? "l" : "";
135370
135367
  Z && (T = Z == "r" ? "l" : "r", P = r({}, _), U = _[Z], _.from = U.from, _.to = U.to, _[Z] = U[Z], P[Z] = U[T], (_[T] = P).d = ym(P)), _.d = ym(_);
135371
135368
  }
@@ -135435,7 +135432,7 @@ function lFt() {
135435
135432
  _.queries.query[Re] = He;
135436
135433
  }
135437
135434
  }
135438
- function Uh(_) {
135435
+ function qh(_) {
135439
135436
  var T = _._state, P = _._deps.indexedDB;
135440
135437
  if (T.isBeingOpened || _.idbdb) return T.dbReadyPromise.then(function() {
135441
135438
  return T.dbOpenError ? Lt(T.dbOpenError) : _;
@@ -135599,7 +135596,7 @@ function lFt() {
135599
135596
  function Cl(_, T) {
135600
135597
  return T.type === "delete" ? T.keys : T.keys || T.values.map(_.extractKey);
135601
135598
  }
135602
- var qh = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(_) {
135599
+ var Vh = { stack: "dbcore", name: "HooksMiddleware", level: 2, create: function(_) {
135603
135600
  return r(r({}, _), { table: function(T) {
135604
135601
  var P = _.table(T), U = P.schema.primaryKey;
135605
135602
  return r(r({}, P), { mutate: function(Z) {
@@ -135660,7 +135657,7 @@ function lFt() {
135660
135657
  } });
135661
135658
  } });
135662
135659
  } };
135663
- function Vh(_, T, P) {
135660
+ function Wh(_, T, P) {
135664
135661
  try {
135665
135662
  if (!T || T.keys.length < _.length) return null;
135666
135663
  for (var U = [], Z = 0, oe = 0; Z < T.keys.length && oe < _.length; ++Z) ue(T.keys[Z], _[oe]) === 0 && (U.push(P ? K(T.values[Z]) : T.values[Z]), ++oe);
@@ -135674,7 +135671,7 @@ function lFt() {
135674
135671
  var P = _.table(T);
135675
135672
  return r(r({}, P), { getMany: function(U) {
135676
135673
  if (!U.cache) return P.getMany(U);
135677
- var Z = Vh(U.keys, U.trans._cache, U.cache === "clone");
135674
+ var Z = Wh(U.keys, U.trans._cache, U.cache === "clone");
135678
135675
  return Z ? At.resolve(Z) : P.getMany(U).then(function(oe) {
135679
135676
  return U.trans._cache = { keys: U.keys, values: U.cache === "clone" ? K(oe) : oe }, oe;
135680
135677
  });
@@ -135712,7 +135709,7 @@ function lFt() {
135712
135709
  var Xe, Ue, it, st = $e.trans, lt = $e.mutatedParts || ($e.mutatedParts = {}), xt = Ke(""), Ut = Ke(":dels"), Zt = $e.type, nn = $e.type === "deleteRange" ? [$e.range] : $e.type === "delete" ? [$e.keys] : $e.values.length < 50 ? [Cl(me, $e).filter(function(Yt) {
135713
135710
  return Yt;
135714
135711
  }), $e.values] : [], Rt = nn[0], Dt = nn[1], nn = $e.trans._cache;
135715
- return s(Rt) ? (xt.addKeys(Rt), (nn = Zt === "delete" || Rt.length === Dt.length ? Vh(Rt, nn) : null) || Ut.addKeys(Rt), (nn || Dt) && (Xe = Ke, Ue = nn, it = Dt, oe.indexes.forEach(function(Yt) {
135712
+ return s(Rt) ? (xt.addKeys(Rt), (nn = Zt === "delete" || Rt.length === Dt.length ? Wh(Rt, nn) : null) || Ut.addKeys(Rt), (nn || Dt) && (Xe = Ke, Ue = nn, it = Dt, oe.indexes.forEach(function(Yt) {
135716
135713
  var hn = Xe(Yt.name || "");
135717
135714
  function ir(or) {
135718
135715
  return or != null ? Yt.extractKey(or) : null;
@@ -135785,7 +135782,7 @@ function lFt() {
135785
135782
  }), Ye;
135786
135783
  } });
135787
135784
  } };
135788
- function Wh(_, T, P) {
135785
+ function Gh(_, T, P) {
135789
135786
  if (P.numFailures === 0) return T;
135790
135787
  if (T.type === "deleteRange") return null;
135791
135788
  var U = T.keys ? T.keys.length : "values" in T && T.values ? T.values.length : 1;
@@ -135924,11 +135921,11 @@ function lFt() {
135924
135921
  return Se ? (me = U.mutate(oe), oe.type !== "add" && oe.type !== "put" || !(50 <= oe.values.length || Cl(Z, oe).some(function(Re) {
135925
135922
  return Re == null;
135926
135923
  })) ? (Se.optimisticOps.push(oe), oe.mutatedParts && Kc(oe.mutatedParts), me.then(function(Re) {
135927
- 0 < Re.numFailures && (le(Se.optimisticOps, oe), (Re = Wh(0, oe, Re)) && Se.optimisticOps.push(Re), oe.mutatedParts && Kc(oe.mutatedParts));
135924
+ 0 < Re.numFailures && (le(Se.optimisticOps, oe), (Re = Gh(0, oe, Re)) && Se.optimisticOps.push(Re), oe.mutatedParts && Kc(oe.mutatedParts));
135928
135925
  }), me.catch(function() {
135929
135926
  le(Se.optimisticOps, oe), oe.mutatedParts && Kc(oe.mutatedParts);
135930
135927
  })) : me.then(function(Re) {
135931
- var He = Wh(0, r(r({}, oe), { values: oe.values.map(function(Ye, Ie) {
135928
+ var He = Gh(0, r(r({}, oe), { values: oe.values.map(function(Ye, Ie) {
135932
135929
  var Ze;
135933
135930
  return Re.failures[Ie] ? Ye : (Ye = (Ze = Z.keyPath) !== null && Ze !== void 0 && Ze.includes(".") ? K(Ye) : r({}, Ye), j(Ye, Z.keyPath, Re.results[Ie]), Ye);
135934
135931
  }) }), Re);
@@ -136009,7 +136006,7 @@ function lFt() {
136009
136006
  }, at.prototype.open = function() {
136010
136007
  var _ = this;
136011
136008
  return di(Kt, function() {
136012
- return Uh(_);
136009
+ return qh(_);
136013
136010
  });
136014
136011
  }, at.prototype._close = function() {
136015
136012
  var _ = this._state, T = Gn.indexOf(this);
@@ -136175,7 +136172,7 @@ function lFt() {
136175
136172
  var st = Ue.active;
136176
136173
  return Ue.active = !1, Ue.on.error.fire(it), Ue.parent ? Ue.parent._reject(it) : st && Ue.idbtrans && Ue.idbtrans.abort(), Lt(it);
136177
136174
  });
136178
- })), this.Version = (Se = this, qr(jh.prototype, function(Ie) {
136175
+ })), this.Version = (Se = this, qr(Hh.prototype, function(Ie) {
136179
136176
  this.db = Se, this._cfg = { version: Ie, storesSource: null, dbschema: {}, tables: {}, contentUpgrade: null };
136180
136177
  })), this.WhereClause = (Re = this, qr(co.prototype, function(Ie, Ze, $e) {
136181
136178
  if (this.db = Re, this._ctx = { table: Ie, index: Ze === ":id" ? null : Ze, or: $e }, this._cmp = this._ascending = ue, this._descending = function(Ke, Xe) {
@@ -136197,7 +136194,7 @@ function lFt() {
136197
136194
  }).map(function(Ze) {
136198
136195
  return Ze.on("versionchange").fire(Ie);
136199
136196
  });
136200
- }, this.use(Vd), this.use(Te), this.use(Fu), this.use(bm), this.use(qh);
136197
+ }, this.use(Vd), this.use(Te), this.use(Fu), this.use(bm), this.use(Vh);
136201
136198
  var Ye = new Proxy(this, { get: function(Ie, Ze, $e) {
136202
136199
  if (Ze === "_vip") return !0;
136203
136200
  if (Ze === "table") return function(Xe) {
@@ -139168,7 +139165,7 @@ let Or = class extends On {
139168
139165
  const i = n.item.dataset.id;
139169
139166
  let o = t.selectedItemAsArray;
139170
139167
  o.includes(i) || (o = [i]);
139171
- const a = o.length > 1, s = Number(n.newIndex) - 1 + this.start, c = s !== this.filteredItems.length ? tg(
139168
+ const a = o.length > 1, s = Number(n.newIndex) - 1 + this.start, c = s !== this.filteredItems.length ? ng(
139172
139169
  this.items,
139173
139170
  "id",
139174
139171
  this.filteredItems[Math.min(s, this.filteredItems.length)]?.id
@@ -139202,7 +139199,7 @@ let Or = class extends On {
139202
139199
  const o = i.length > 1;
139203
139200
  e = OX(
139204
139201
  e,
139205
- i.map((a) => tg(this.items, "id", a))
139202
+ i.map((a) => ng(this.items, "id", a))
139206
139203
  ), this.handleUpdateEvent(e, n.type, o, n.newIndex);
139207
139204
  }
139208
139205
  handleDefaultSelect(n) {
@@ -139216,11 +139213,11 @@ let Or = class extends On {
139216
139213
  }), this.lastSelectedItem = n;
139217
139214
  }
139218
139215
  handleShiftSelect(n) {
139219
- const e = tg(
139216
+ const e = ng(
139220
139217
  this.filteredItems,
139221
139218
  "id",
139222
139219
  this.lastSelectedItem?.dataset.id
139223
- ), t = tg(this.filteredItems, "id", n.dataset.id);
139220
+ ), t = ng(this.filteredItems, "id", n.dataset.id);
139224
139221
  if (e === -1 || t === -1) {
139225
139222
  this.handleDefaultSelect(n);
139226
139223
  return;
@@ -139272,14 +139269,14 @@ let Or = class extends On {
139272
139269
  e = b7(
139273
139270
  e,
139274
139271
  t.map(
139275
- (o) => tg(this.items, "id", o)
139272
+ (o) => ng(this.items, "id", o)
139276
139273
  ),
139277
139274
  i
139278
139275
  );
139279
139276
  else {
139280
139277
  let o = i;
139281
139278
  o === this.filteredItems.length ? o = this.filteredItems.length - 1 : Number(n.newIndex) < Number(n.oldIndex) && (o = o - 1);
139282
- const a = tg(
139279
+ const a = ng(
139283
139280
  this.items,
139284
139281
  "id",
139285
139282
  this.filteredItems[o].id
@@ -139287,7 +139284,7 @@ let Or = class extends On {
139287
139284
  e = b7(
139288
139285
  e,
139289
139286
  t.map(
139290
- (s) => tg(this.items, "id", s)
139287
+ (s) => ng(this.items, "id", s)
139291
139288
  ),
139292
139289
  a
139293
139290
  );
@@ -139466,7 +139463,7 @@ Wr([
139466
139463
  Tt(["data", "group"])
139467
139464
  ], Or.prototype, "onItemsChanged", 1);
139468
139465
  Wr([
139469
- Dh(200, !0)
139466
+ Mh(200, !0)
139470
139467
  ], Or.prototype, "handleShiftSelect", 1);
139471
139468
  Wr([
139472
139469
  Tt("all")
@@ -141166,7 +141163,7 @@ const x$t = (n) => new Rr({
141166
141163
  0
141167
141164
  ];
141168
141165
  }
141169
- }), gh = sc.create({
141166
+ }), mh = sc.create({
141170
141167
  addAttributes() {
141171
141168
  return {
141172
141169
  sayAs: {
@@ -142027,7 +142024,7 @@ const E$t = [
142027
142024
  placeholder: "Enter a message..."
142028
142025
  }),
142029
142026
  Dg,
142030
- gh,
142027
+ mh,
142031
142028
  Wk,
142032
142029
  J5,
142033
142030
  TH,
@@ -142067,7 +142064,7 @@ function R$t(n, e) {
142067
142064
  function OT(n) {
142068
142065
  return `${R$t(n.name, n.languageCodes)} ${n.isPremiumVoice ? "(premium)" : ""}`.trim();
142069
142066
  }
142070
- const AG = [Yb, Dg, gh], B$t = [w_], F$t = AG.map((n) => n.name);
142067
+ const AG = [Yb, Dg, mh], B$t = [w_], F$t = AG.map((n) => n.name);
142071
142068
  function z$t(n, e) {
142072
142069
  const t = [];
142073
142070
  if (n.marks.some((r) => F$t.includes(r.type.name))) {
@@ -142109,7 +142106,7 @@ function $$t(n, e, t = []) {
142109
142106
  }
142110
142107
  (m || m === 0) && a.lift(h, m);
142111
142108
  }), o.forEach(({ from: s, to: c }) => {
142112
- [gh].forEach((l) => {
142109
+ [mh].forEach((l) => {
142113
142110
  a.removeMark(
142114
142111
  a.mapping.map(s),
142115
142112
  a.mapping.map(c),
@@ -142156,7 +142153,7 @@ const j$t = [
142156
142153
  [/<br\s*\/?>/g, `
142157
142154
  `]
142158
142155
  ];
142159
- function lg(n) {
142156
+ function dg(n) {
142160
142157
  let e = n;
142161
142158
  for (const [t, r] of j$t)
142162
142159
  e = e.replace(t, r);
@@ -142179,7 +142176,7 @@ function ER(n) {
142179
142176
  return e.length + t.length;
142180
142177
  }
142181
142178
  function AR(n, e) {
142182
- let t = lg(n);
142179
+ let t = dg(n);
142183
142180
  t = t.replace("<speak>", "").replace("</speak>", "");
142184
142181
  const { prefix: r, suffix: i } = OG(e);
142185
142182
  return t = H$t(`${r}${t}${i}`), t;
@@ -142211,7 +142208,7 @@ function DT(n) {
142211
142208
  function q$t(n, e) {
142212
142209
  if (n?.length) {
142213
142210
  const t = n?.includes("all"), r = [];
142214
- return n.includes(Yb.options.ssmlTagName) && r.push(e.term("emphasis")), n.includes(Dg.options.ssmlTagName) && (r.push(e.term("volumeWithUnit", "")), r.push(e.term("pitchWithUnit", "")), r.push(e.term("speed"))), n.includes(gh.options.ssmlTagName) && r.push(e.term("interpretTextAs")), n.includes(w_.options.ssmlTagName) && r.push(e.term("pause")), e.term("voiceHelpText", r, t);
142211
+ return n.includes(Yb.options.ssmlTagName) && r.push(e.term("emphasis")), n.includes(Dg.options.ssmlTagName) && (r.push(e.term("volumeWithUnit", "")), r.push(e.term("pitchWithUnit", "")), r.push(e.term("speed"))), n.includes(mh.options.ssmlTagName) && r.push(e.term("interpretTextAs")), n.includes(w_.options.ssmlTagName) && r.push(e.term("pause")), e.term("voiceHelpText", r, t);
142215
142212
  } else
142216
142213
  return "";
142217
142214
  }
@@ -142227,7 +142224,7 @@ const OR = ({
142227
142224
  const r = Ou.fromSchema(t.schema), i = r.serializeFragment(e.content), o = document.createElement("div");
142228
142225
  o.append(i.cloneNode(!0));
142229
142226
  const a = o.innerHTML;
142230
- if (lg(a).length <= n) {
142227
+ if (dg(a).length <= n) {
142231
142228
  const d = [];
142232
142229
  return e.content.forEach((h) => {
142233
142230
  h.type.name !== "style" && d.push(h);
@@ -142241,12 +142238,12 @@ const OR = ({
142241
142238
  const h = [];
142242
142239
  let m = 0;
142243
142240
  for (const f of d.content) {
142244
- const b = r.serializeNode(f), w = b.nodeType === 3 ? b.textContent ?? "" : b.outerHTML ?? "", k = lg(w).length;
142241
+ const b = r.serializeNode(f), w = b.nodeType === 3 ? b.textContent ?? "" : b.outerHTML ?? "", k = dg(w).length;
142245
142242
  if (m + k > p) {
142246
142243
  if (f.isText) {
142247
142244
  const E = r.serializeNode(f);
142248
142245
  if (E instanceof HTMLElement) {
142249
- const A = E.outerHTML ?? "", D = E.innerHTML ?? "", z = lg(A).length - lg(D).length;
142246
+ const A = E.outerHTML ?? "", D = E.innerHTML ?? "", z = dg(A).length - dg(D).length;
142250
142247
  m += z;
142251
142248
  }
142252
142249
  const C = f.textContent || "";
@@ -142263,7 +142260,7 @@ const OR = ({
142263
142260
  }
142264
142261
  }
142265
142262
  } else if (f.isBlock || f.isInline) {
142266
- const E = r.serializeNode(f), C = E.outerHTML ?? "", A = E.innerHTML ?? "", D = lg(C).length - lg(A).length, z = p - D - m;
142263
+ const E = r.serializeNode(f), C = E.outerHTML ?? "", A = E.innerHTML ?? "", D = dg(C).length - dg(A).length, z = p - D - m;
142267
142264
  if (z <= 0)
142268
142265
  break;
142269
142266
  const j = c(f.content, z), H = $t.fromArray(j);
@@ -142640,7 +142637,7 @@ let qn = class extends On {
142640
142637
  element: this.bubbleMenu,
142641
142638
  pluginKey: "bubbleMenu",
142642
142639
  shouldShow: ({ from: r, state: i, to: o }) => {
142643
- const { doc: a, selection: s } = i, { empty: c } = s, l = n.isActive(gh.name);
142640
+ const { doc: a, selection: s } = i, { empty: c } = s, l = n.isActive(mh.name);
142644
142641
  if (l)
142645
142642
  return this.bubbleMenuType = "sayAs", this.requestUpdate(), l;
142646
142643
  const d = !a.textBetween(r, o).length && y0(s), p = UR(
@@ -142661,7 +142658,7 @@ let qn = class extends On {
142661
142658
  },
142662
142659
  onSelectionUpdate: ({ editor: n }) => {
142663
142660
  const { view: e } = n, t = e.state.selection, r = t.empty;
142664
- this.lastPosition = t.from, r !== this.isSelectionEmpty && (this.isSelectionEmpty = r, this.requestUpdate()), t instanceof In ? t.node.type.name === "nodeBreak" && (this.bubbleMenuType = "break", this.requestUpdate()) : n.isActive(gh.name) ? (this.bubbleMenuType = "sayAs", this.requestUpdate()) : (this.bubbleMenuType = null, this.requestUpdate());
142661
+ this.lastPosition = t.from, r !== this.isSelectionEmpty && (this.isSelectionEmpty = r, this.requestUpdate()), t instanceof In ? t.node.type.name === "nodeBreak" && (this.bubbleMenuType = "break", this.requestUpdate()) : n.isActive(mh.name) ? (this.bubbleMenuType = "sayAs", this.requestUpdate()) : (this.bubbleMenuType = null, this.requestUpdate());
142665
142662
  },
142666
142663
  onUpdate: () => {
142667
142664
  this.resetAudio(), this.requestUpdate(), this.emitChangeEvent();
@@ -143060,7 +143057,7 @@ let qn = class extends On {
143060
143057
  },
143061
143058
  {
143062
143059
  defaultValue: Kr[fn.InterpretAs],
143063
- disabled: this._unsupportedSsmlTags.includes(gh.options.ssmlTagName),
143060
+ disabled: this._unsupportedSsmlTags.includes(mh.options.ssmlTagName),
143064
143061
  icon: V`<cx-icon name="info" style=${lr({
143065
143062
  color: So[fn.InterpretAs]
143066
143063
  })} slot="prefix"></cx-icon>`,
@@ -143310,7 +143307,7 @@ let qn = class extends On {
143310
143307
  "prosody-disabled": this._isTextSupportedOnly || this._unsupportedSsmlTags.includes(
143311
143308
  Dg.options.ssmlTagName
143312
143309
  ),
143313
- "say-as-disabled": this._isTextSupportedOnly || this._unsupportedSsmlTags.includes(gh.options.ssmlTagName),
143310
+ "say-as-disabled": this._isTextSupportedOnly || this._unsupportedSsmlTags.includes(mh.options.ssmlTagName),
143314
143311
  "text-editor": !0
143315
143312
  })}><cx-popup id="bubble-menu" strategy="overlay" placement="bottom-start"><div class=${mn({
143316
143313
  "menu-container": !0,
@@ -143928,7 +143925,7 @@ Uo([
143928
143925
  Tt(["duration", "scaleFactor"])
143929
143926
  ], Ki.prototype, "handleScaleFactorChange", 1);
143930
143927
  Uo([
143931
- Dh(50)
143928
+ Mh(50)
143932
143929
  ], Ki.prototype, "debouncedUpdateScaleFactor", 1);
143933
143930
  Ki = Uo([
143934
143931
  wn("cx-video-editor-timeline")
@@ -144981,7 +144978,7 @@ export {
144981
144978
  Fqt as CxBreadcrumbItem,
144982
144979
  ki as CxButton,
144983
144980
  u9 as CxButtonGroup,
144984
- Ih as CxCard,
144981
+ Dh as CxCard,
144985
144982
  yn as CxCarousel,
144986
144983
  xu as CxChartPlanBuilder,
144987
144984
  wi as CxChatbot,
@@ -145004,7 +145001,7 @@ export {
145004
145001
  qg as CxDetailsGroup,
145005
145002
  Ha as CxDialog,
145006
145003
  Ql as CxDivider,
145007
- _h as CxDocsExample,
145004
+ Ch as CxDocsExample,
145008
145005
  VK as CxDotPagination,
145009
145006
  $qt as CxDotStatus,
145010
145007
  bs as CxDownloadFormatPicker,
@@ -145014,7 +145011,7 @@ export {
145014
145011
  A9 as CxDynamicSelect,
145015
145012
  qqt as CxEChart,
145016
145013
  Wqt as CxElementClamp,
145017
- Ch as CxEstimatedReadingTime,
145014
+ Sh as CxEstimatedReadingTime,
145018
145015
  HWt as CxFileOnDemand,
145019
145016
  ws as CxFindAndReplace,
145020
145017
  O9 as CxFolderSelect,
@@ -145023,7 +145020,7 @@ export {
145023
145020
  KK as CxFormatNumber,
145024
145021
  PR as CxFormatTime,
145025
145022
  gi as CxGalleryItem,
145026
- Sh as CxGraphView,
145023
+ Th as CxGraphView,
145027
145024
  am as CxGrid,
145028
145025
  sm as CxGridItem,
145029
145026
  NR as CxHeader,
@@ -145142,7 +145139,7 @@ export {
145142
145139
  ZO as cssValueToPx,
145143
145140
  wn as customElement,
145144
145141
  PGt as customErrorValidityState,
145145
- Dh as debounce,
145142
+ Mh as debounce,
145146
145143
  jX as defaultValue,
145147
145144
  nWt as downloadAsset,
145148
145145
  qX as drag,
@@ -145157,7 +145154,7 @@ export {
145157
145154
  MVt as findContainingBlock,
145158
145155
  PVt as findCuttingAncestor,
145159
145156
  e7 as findFrameByColAndRow,
145160
- tg as findIndexByProp,
145157
+ ng as findIndexByProp,
145161
145158
  NGt as formCollections,
145162
145159
  sGt as formatAspectRatioString,
145163
145160
  RWt as formatDurationPartsManually,
@@ -145215,7 +145212,7 @@ export {
145215
145212
  BVt as isSafari,
145216
145213
  KGt as isSaveSrcValid,
145217
145214
  yGt as isValidUrl,
145218
- eg as loadScript,
145215
+ tg as loadScript,
145219
145216
  KO as lockBodyScrolling,
145220
145217
  DGt as luminanceTextColor,
145221
145218
  b7 as moveMultipleToIndex,