@uva-glass/component-library 3.42.3 → 3.42.5

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 (61) hide show
  1. package/dist/{Lexical.prod-qYl_ifJ6.js → Lexical.prod-nXWuyOKD.js} +1299 -1322
  2. package/dist/Lexical.prod-nXWuyOKD.js.map +1 -0
  3. package/dist/{LexicalClipboard.prod-DIGbXq4v.js → LexicalClipboard.prod-BP8LNbol.js} +104 -104
  4. package/dist/LexicalClipboard.prod-BP8LNbol.js.map +1 -0
  5. package/dist/{LexicalLink.prod-ZZwC5ABn.js → LexicalLink.prod-Brzpgs_K.js} +51 -51
  6. package/dist/{LexicalLink.prod-ZZwC5ABn.js.map → LexicalLink.prod-Brzpgs_K.js.map} +1 -1
  7. package/dist/{LexicalList.prod-UurCu6DK.js → LexicalList.prod-D6IAptR7.js} +53 -53
  8. package/dist/{LexicalList.prod-UurCu6DK.js.map → LexicalList.prod-D6IAptR7.js.map} +1 -1
  9. package/dist/LexicalSelection.prod-ZvNRDI9l.js +119 -0
  10. package/dist/LexicalSelection.prod-ZvNRDI9l.js.map +1 -0
  11. package/dist/LexicalTable.prod-DJktN6jF.js +1763 -0
  12. package/dist/LexicalTable.prod-DJktN6jF.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-C3To3vrm.js → LexicalUtils.prod-Ckfw0Hjt.js} +34 -34
  14. package/dist/{LexicalUtils.prod-C3To3vrm.js.map → LexicalUtils.prod-Ckfw0Hjt.js.map} +1 -1
  15. package/dist/{TableCellResizerPlugin-B9MT1fxA.js → TableCellResizerPlugin-DFzNK-ve.js} +32 -32
  16. package/dist/{TableCellResizerPlugin-B9MT1fxA.js.map → TableCellResizerPlugin-DFzNK-ve.js.map} +1 -1
  17. package/dist/{TablePlugin-FQQwnq2m.js → TablePlugin-CAoOq8iA.js} +52 -52
  18. package/dist/{TablePlugin-FQQwnq2m.js.map → TablePlugin-CAoOq8iA.js.map} +1 -1
  19. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  20. package/dist/components/FormInput/FormInput.js +1 -1
  21. package/dist/components/InputField/InputField.stories.js +1 -1
  22. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  24. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  25. package/dist/components/MultiSelect/index.js +1 -1
  26. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  27. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  28. package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
  29. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  30. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +6 -6
  31. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +6 -6
  32. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +35 -35
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  36. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +27 -27
  37. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
  38. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +4 -4
  39. package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
  40. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  41. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +4 -4
  42. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +7 -7
  43. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  44. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +18 -18
  45. package/dist/components/RteEditor/Plugins/index.js +2 -2
  46. package/dist/components/RteEditor/RteEditor.js +233 -233
  47. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  48. package/dist/components/RteEditor/helpers.js +32 -33
  49. package/dist/components/RteEditor/helpers.js.map +1 -1
  50. package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +16 -16
  51. package/dist/components/index.js +1 -1
  52. package/dist/{helpers-D3SODeVc.js → helpers-mE437H2Y.js} +38 -38
  53. package/dist/{helpers-D3SODeVc.js.map → helpers-mE437H2Y.js.map} +1 -1
  54. package/dist/index.js +1 -1
  55. package/package.json +6 -6
  56. package/dist/Lexical.prod-qYl_ifJ6.js.map +0 -1
  57. package/dist/LexicalClipboard.prod-DIGbXq4v.js.map +0 -1
  58. package/dist/LexicalSelection.prod-DXruZeFN.js +0 -103
  59. package/dist/LexicalSelection.prod-DXruZeFN.js.map +0 -1
  60. package/dist/LexicalTable.prod-COFf1Spn.js +0 -1763
  61. package/dist/LexicalTable.prod-COFf1Spn.js.map +0 -1
@@ -0,0 +1,119 @@
1
+ import { a7 as T, a8 as _, a9 as b, ab as B, h as a, ao as E, a6 as F, ap as M, aq as O, a5 as C, ar as p, w as V, k as j, m as q } from "./Lexical.prod-nXWuyOKD.js";
2
+ const h = /* @__PURE__ */ new Map();
3
+ function w(n) {
4
+ const t = {};
5
+ if (!n) return t;
6
+ const e = n.split(";");
7
+ for (const s of e) if (s !== "") {
8
+ const [r, o] = s.split(/:([^]+)/);
9
+ r && o && (t[r.trim()] = o.trim());
10
+ }
11
+ return t;
12
+ }
13
+ function H(n) {
14
+ let t = h.get(n);
15
+ return t === void 0 && (t = w(n), h.set(n, t)), t;
16
+ }
17
+ function k(n) {
18
+ const t = q().getElementByKey(n.getKey());
19
+ if (t === null) return null;
20
+ const e = t.ownerDocument.defaultView;
21
+ return e === null ? null : e.getComputedStyle(t);
22
+ }
23
+ function K(n) {
24
+ return k(F(n) ? n : n.getParentOrThrow());
25
+ }
26
+ function J(n) {
27
+ const t = K(n);
28
+ return t !== null && t.direction === "rtl";
29
+ }
30
+ function L(n, t) {
31
+ const e = n.getStartEndPoints();
32
+ if (t.isSelected(n) && !M(t) && e !== null) {
33
+ const [s, r] = e, o = n.isBackward(), i = s.getNode(), c = r.getNode(), f = t.is(i), g = t.is(c);
34
+ if (f || g) {
35
+ const [u, l] = O(n), I = i.is(c), P = t.is(o ? c : i), S = t.is(o ? i : c);
36
+ let d, y = 0;
37
+ I ? (y = u > l ? l : u, d = u > l ? u : l) : P ? (y = o ? l : u, d = void 0) : S && (y = 0, d = o ? u : l), t.__text = t.__text.slice(y, d);
38
+ }
39
+ }
40
+ return t;
41
+ }
42
+ function Q(n) {
43
+ const t = n.getStyle(), e = w(t);
44
+ h.set(t, e);
45
+ }
46
+ function z(n, t) {
47
+ const e = n.getFormatType(), s = n.getIndent();
48
+ e !== t.getFormatType() && t.setFormat(e), s !== t.getIndent() && t.setIndent(s);
49
+ }
50
+ function R(n, t, e = z) {
51
+ if (n === null) return;
52
+ const s = n.getStartEndPoints(), r = /* @__PURE__ */ new Map();
53
+ let o = null;
54
+ if (s) {
55
+ const [i, c] = s;
56
+ o = C(), o.anchor.set(i.key, i.offset, i.type), o.focus.set(c.key, c.offset, c.type);
57
+ const f = m(i.getNode(), p), g = m(c.getNode(), p);
58
+ a(f) && r.set(f.getKey(), f), a(g) && r.set(g.getKey(), g);
59
+ }
60
+ for (const i of n.getNodes()) if (a(i) && p(i)) r.set(i.getKey(), i);
61
+ else if (s === null) {
62
+ const c = m(i, p);
63
+ a(c) && r.set(c.getKey(), c);
64
+ }
65
+ for (const [i, c] of r) {
66
+ const f = t();
67
+ e(c, f), c.replace(f, !0), o && (i === o.anchor.key && o.anchor.set(f.getKey(), o.anchor.offset, o.anchor.type), i === o.focus.key && o.focus.set(f.getKey(), o.focus.offset, o.focus.type));
68
+ }
69
+ o && n.is(V()) && j(o);
70
+ }
71
+ function N(n) {
72
+ const t = v(n);
73
+ return t !== null && t.writingMode === "vertical-rl";
74
+ }
75
+ function v(n) {
76
+ const t = n.anchor.getNode();
77
+ return a(t) ? k(t) : K(t);
78
+ }
79
+ function Y(n, t) {
80
+ let e = N(n) ? !t : t;
81
+ x(n) && (e = !e);
82
+ const s = T(n.focus, e ? "previous" : "next");
83
+ if (_(s)) return !1;
84
+ for (const r of b(s)) {
85
+ if (B(r)) return !r.origin.isInline();
86
+ if (!a(r.origin)) {
87
+ if (E(r.origin)) return !0;
88
+ break;
89
+ }
90
+ }
91
+ return !1;
92
+ }
93
+ function D(n, t, e, s) {
94
+ n.modify(t ? "extend" : "move", e, s);
95
+ }
96
+ function x(n) {
97
+ const t = v(n);
98
+ return t !== null && t.direction === "rtl";
99
+ }
100
+ function Z(n, t, e) {
101
+ const s = x(n);
102
+ let r;
103
+ r = N(n) || s ? !e : e, D(n, t, r, "character");
104
+ }
105
+ function m(n, t) {
106
+ let e = n;
107
+ for (; e !== null && e.getParent() !== null && !t(e); ) e = e.getParentOrThrow();
108
+ return t(e) ? e : null;
109
+ }
110
+ export {
111
+ H as B,
112
+ R as H,
113
+ Q as L,
114
+ Y as Q,
115
+ J as R,
116
+ Z as e,
117
+ L as z
118
+ };
119
+ //# sourceMappingURL=LexicalSelection.prod-ZvNRDI9l.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LexicalSelection.prod-ZvNRDI9l.js","sources":["../node_modules/@lexical/selection/LexicalSelection.prod.mjs"],"sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport{$isTextNode as e,$getEditor as t,$isRootNode as n,$isTokenOrSegmented as o,$getCharacterOffsets as l,$isElementNode as r,$getNodeByKey as s,$getPreviousSelection as i,$createTextNode as c,$isRangeSelection as f,$getSelection as u,$caretRangeFromSelection as g,$createRangeSelection as a,INTERNAL_$isBlock as d,$setSelection as p,$isRootOrShadowRoot as h,$hasAncestor as y,$isLeafNode as m,$caretFromPoint as S,$isExtendableTextPointCaret as x,$extendCaretToRange as T,$isChildCaret as w,$isDecoratorNode as v}from\"lexical\";export{$cloneWithProperties,$selectAll}from\"lexical\";function N(e,...t){const n=new URL(\"https://lexical.dev/docs/error\"),o=new URLSearchParams;o.append(\"code\",e);for(const e of t)o.append(\"v\",e);throw n.search=o.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}const C=new Map;function P(e){let t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function K(e){const t=e.parentNode;if(null==t)throw new Error(\"Should never happen\");return[t,Array.from(t.childNodes).indexOf(e)]}function E(t,n,o,l,r){const s=n.getKey(),i=l.getKey(),c=document.createRange();let f=t.getElementByKey(s),u=t.getElementByKey(i),g=o,a=r;if(e(n)&&(f=P(f)),e(l)&&(u=P(u)),void 0===n||void 0===l||null===f||null===u)return null;\"BR\"===f.nodeName&&([f,g]=K(f)),\"BR\"===u.nodeName&&([u,a]=K(u));const d=f.firstChild;f===u&&null!=d&&\"BR\"===d.nodeName&&0===g&&0===a&&(a=1);try{c.setStart(f,g),c.setEnd(u,a)}catch(e){return null}return!c.collapsed||g===a&&s===i||(c.setStart(u,a),c.setEnd(f,g)),c}function k(e,t){const n=e.getRootElement();if(null===n)return[];const o=n.getBoundingClientRect(),l=getComputedStyle(n),r=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),s=Array.from(t.getClientRects());let i,c=s.length;s.sort(((e,t)=>{const n=e.top-t.top;return Math.abs(n)<=3?e.left-t.left:n}));for(let e=0;e<c;e++){const t=s[e],n=i&&i.top<=t.top&&i.top+i.height>t.top&&i.left+i.width>t.left,l=t.width+r===o.width;n||l?(s.splice(e--,1),c--):i=t}return s}function I(e){const t={};if(!e)return t;const n=e.split(\";\");for(const e of n)if(\"\"!==e){const[n,o]=e.split(/:([^]+)/);n&&o&&(t[n.trim()]=o.trim())}return t}function B(e){let t=C.get(e);return void 0===t&&(t=I(e),C.set(e,t)),t}function F(e){let t=\"\";for(const n in e)n&&(t+=`${n}: ${e[n]};`);return t}function b(e){const n=t().getElementByKey(e.getKey());if(null===n)return null;const o=n.ownerDocument.defaultView;return null===o?null:o.getComputedStyle(n)}function O(e){return b(n(e)?e:e.getParentOrThrow())}function R(e){const t=O(e);return null!==t&&\"rtl\"===t.direction}function z(e,t){const n=e.getStartEndPoints();if(t.isSelected(e)&&!o(t)&&null!==n){const[o,r]=n,s=e.isBackward(),i=o.getNode(),c=r.getNode(),f=t.is(i),u=t.is(c);if(f||u){const[n,o]=l(e),r=i.is(c),f=t.is(s?c:i),u=t.is(s?i:c);let g,a=0;if(r)a=n>o?o:n,g=n>o?n:o;else if(f){a=s?o:n,g=void 0}else if(u){a=0,g=s?n:o}t.__text=t.__text.slice(a,g)}}return t}function A(e){if(\"text\"===e.type)return e.offset===e.getNode().getTextContentSize();const t=e.getNode();return r(t)||N(177),e.offset===t.getChildrenSize()}function M(t,o,l){let u=o.getNode(),g=l;if(r(u)){const e=u.getDescendantByIndex(o.offset);null!==e&&(u=e)}for(;g>0&&null!==u;){if(r(u)){const e=u.getLastDescendant();null!==e&&(u=e)}let l=u.getPreviousSibling(),a=0;if(null===l){let e=u.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(e=e.getParent(),null===e){l=null;break}t=e.getPreviousSibling()}null!==e&&(a=e.isInline()?0:2,l=t)}let d=u.getTextContent();\"\"===d&&r(u)&&!u.isInline()&&(d=\"\\n\\n\");const p=d.length;if(!e(u)||g>=p){const e=u.getParent();u.remove(),null==e||0!==e.getChildrenSize()||n(e)||e.remove(),g-=p+a,u=l}else{const n=u.getKey(),l=t.getEditorState().read((()=>{const t=s(n);return e(t)&&t.isSimpleText()?t.getTextContent():null})),r=p-g,a=d.slice(0,r);if(null!==l&&l!==d){const e=i();let t=u;if(u.isSimpleText())u.setTextContent(l);else{const e=c(l);u.replace(e),t=e}if(f(e)&&e.isCollapsed()){const n=e.anchor.offset;t.select(n,n)}}else if(u.isSimpleText()){const e=o.key===n;let t=o.offset;t<g&&(t=p);const l=e?t-g:0,s=e?t:r;if(e&&0===l){const[e]=u.splitText(l,s);e.remove()}else{const[,e]=u.splitText(l,s);e.remove()}}else{const e=c(a);u.replace(e)}g=0}}}function L(e){const t=e.getStyle(),n=I(t);C.set(t,n)}function $(t,n){(f(t)?t.isCollapsed():e(t)||r(t))||N(280);const o=B(f(t)?t.style:e(t)?t.getStyle():t.getTextStyle()),l=Object.entries(n).reduce(((e,[n,l])=>(\"function\"==typeof l?e[n]=l(o[n],t):null===l?delete e[n]:e[n]=l,e)),{...o}),s=F(l);f(t)||e(t)?t.setStyle(s):t.setTextStyle(s),C.set(s,l)}function _(e,t){if(f(e)&&e.isCollapsed()){$(e,t);const n=e.anchor.getNode();r(n)&&n.isEmpty()&&$(n,t)}D((e=>{$(e,t)}))}function D(t){const n=u();if(!n)return;const l=new Map;if(f(n))for(const e of g(n).getTextSlices())e&&l.set(e.caret.origin.getKey(),e.getSliceIndices());const r=n.getNodes();for(const n of r){if(!e(n)||!n.canHaveFormat())continue;const[r,i]=(s=n,l.get(s.getKey())||[0,s.getTextContentSize()]);if(i!==r)if(o(n)||0===r&&i===n.getTextContentSize())t(n);else{t(n.splitText(r,i)[0===r?0:1])}}var s;f(n)&&\"text\"===n.anchor.type&&\"text\"===n.focus.type&&n.anchor.key===n.focus.key&&U(n)}function U(e){if(e.isBackward()){const{anchor:t,focus:n}=e,{key:o,offset:l,type:r}=t;t.set(n.key,n.offset,n.type),n.set(o,l,r)}}function j(e,t){const n=e.getFormatType(),o=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),o!==t.getIndent()&&t.setIndent(o)}function H(e,t,n=j){if(null===e)return;const o=e.getStartEndPoints(),l=new Map;let s=null;if(o){const[e,t]=o;s=a(),s.anchor.set(e.key,e.offset,e.type),s.focus.set(t.key,t.offset,t.type);const n=oe(e.getNode(),d),i=oe(t.getNode(),d);r(n)&&l.set(n.getKey(),n),r(i)&&l.set(i.getKey(),i)}for(const t of e.getNodes())if(r(t)&&d(t))l.set(t.getKey(),t);else if(null===o){const e=oe(t,d);r(e)&&l.set(e.getKey(),e)}for(const[e,o]of l){const l=t();n(o,l),o.replace(l,!0),s&&(e===s.anchor.key&&s.anchor.set(l.getKey(),s.anchor.offset,s.anchor.type),e===s.focus.key&&s.focus.set(l.getKey(),s.focus.offset,s.focus.type))}s&&e.is(u())&&p(s)}function V(e){return e.getNode().isAttached()}function W(e){let t=e;for(;null!==t&&!h(t);){const e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}function X(e,t,n=null){const o=e.getStartEndPoints(),l=o?o[0]:null,r=e.getNodes(),s=r.length;if(null!==l&&(0===s||1===s&&\"element\"===l.type&&0===l.getNode().getChildrenSize())){const e=\"text\"===l.type?l.getNode().getParentOrThrow():l.getNode(),o=e.getChildren();let r=t();return r.setFormat(e.getFormatType()),r.setIndent(e.getIndent()),o.forEach((e=>r.append(e))),n&&(r=n.append(r)),void e.replace(r)}let i=null,c=[];for(let o=0;o<s;o++){const l=r[o];h(l)?(q(e,c,c.length,t,n),c=[],i=l):null===i||null!==i&&y(l,i)?c.push(l):(q(e,c,c.length,t,n),c=[l])}q(e,c,c.length,t,n)}function q(e,t,n,o,l=null){if(0===t.length)return;const s=t[0],c=new Map,u=[];let g=r(s)?s:s.getParentOrThrow();g.isInline()&&(g=g.getParentOrThrow());let a=!1;for(;null!==g;){const e=g.getPreviousSibling();if(null!==e){g=e,a=!0;break}if(g=g.getParentOrThrow(),h(g))break}const d=new Set;for(let e=0;e<n;e++){const n=t[e];r(n)&&0===n.getChildrenSize()&&d.add(n.getKey())}const y=new Set;for(let e=0;e<n;e++){const n=t[e];let l=n.getParent();if(null!==l&&l.isInline()&&(l=l.getParent()),null!==l&&m(n)&&!y.has(n.getKey())){const e=l.getKey();if(void 0===c.get(e)){const t=o();t.setFormat(l.getFormatType()),t.setIndent(l.getIndent()),u.push(t),c.set(e,t),l.getChildren().forEach((e=>{t.append(e),y.add(e.getKey()),r(e)&&e.getChildrenKeys().forEach((e=>y.add(e)))})),W(l)}}else if(d.has(n.getKey())){r(n)||N(179);const e=o();e.setFormat(n.getFormatType()),e.setIndent(n.getIndent()),u.push(e),n.remove(!0)}}if(null!==l)for(let e=0;e<u.length;e++){const t=u[e];l.append(t)}let S=null;if(h(g))if(a)if(null!==l)g.insertAfter(l);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t)}else{const e=g.getFirstChild();if(r(e)&&(g=e),null===e)if(l)g.append(l);else for(let e=0;e<u.length;e++){const t=u[e];g.append(t),S=t}else if(null!==l)e.insertBefore(l);else for(let t=0;t<u.length;t++){const n=u[t];e.insertBefore(n),S=n}}else if(l)g.insertAfter(l);else for(let e=u.length-1;e>=0;e--){const t=u[e];g.insertAfter(t),S=t}const x=i();f(x)&&V(x.anchor)&&V(x.focus)?p(x.clone()):null!==S?S.selectEnd():e.dirty=!0}function G(e){const t=J(e);return null!==t&&\"vertical-rl\"===t.writingMode}function J(e){const t=e.anchor.getNode();return r(t)?b(t):O(t)}function Q(e,t){let n=G(e)?!t:t;Z(e)&&(n=!n);const o=S(e.focus,n?\"previous\":\"next\");if(x(o))return!1;for(const e of T(o)){if(w(e))return!e.origin.isInline();if(!r(e.origin)){if(v(e.origin))return!0;break}}return!1}function Y(e,t,n,o){e.modify(t?\"extend\":\"move\",n,o)}function Z(e){const t=J(e);return null!==t&&\"rtl\"===t.direction}function ee(e,t,n){const o=Z(e);let l;l=G(e)||o?!n:n,Y(e,t,l,\"character\")}function te(e,t,n){const o=B(e.getStyle());return null!==o&&o[t]||n}function ne(t,n,o=\"\"){let l=null;const r=t.getNodes(),s=t.anchor,i=t.focus,c=t.isBackward(),u=c?i.offset:s.offset,g=c?i.getNode():s.getNode();if(f(t)&&t.isCollapsed()&&\"\"!==t.style){const e=B(t.style);if(null!==e&&n in e)return e[n]}for(let t=0;t<r.length;t++){const s=r[t];if((0===t||0!==u||!s.is(g))&&e(s)){const e=te(s,n,o);if(null===l)l=e;else if(l!==e){l=\"\";break}}}return null===l?o:l}function oe(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}const le=M;export{L as $addNodeStyle,j as $copyBlockFormatIndent,U as $ensureForwardRangeSelection,D as $forEachSelectedTextNode,b as $getComputedStyleForElement,O as $getComputedStyleForParent,ne as $getSelectionStyleValueForProperty,A as $isAtNodeEnd,Z as $isParentElementRTL,R as $isParentRTL,Y as $moveCaretSelection,ee as $moveCharacter,_ as $patchStyleText,H as $setBlocksType,Q as $shouldOverrideDefaultCharacterSelection,z as $sliceSelectedTextNodeContent,M as $trimTextContentFromAnchor,X as $wrapNodes,E as createDOMRange,k as createRectsFromDOMRange,F as getCSSFromStyleObject,B as getStyleObjectFromCSS,le as trimTextContentFromAnchor};\n"],"names":["C","I","e","n","B","b","t","o","O","R","z","s","u","l","r","f","g","a","L","j","H","oe","d","i","p","G","J","Q","Z","S","x","T","w","v","Y","ee"],"mappings":";AAQ65B,MAAMA,IAAE,oBAAI;AAAoqC,SAASC,EAAEC,GAAE;AAAC,QAAM,IAAE,CAAA;AAAG,MAAG,CAACA,EAAE,QAAO;AAAE,QAAMC,IAAED,EAAE,MAAM,GAAG;AAAE,aAAUA,KAAKC,EAAE,KAAQD,MAAL,IAAO;AAAC,UAAK,CAACC,GAAE,CAAC,IAAED,EAAE,MAAM,SAAS;AAAE,IAAAC,KAAG,MAAI,EAAEA,EAAE,KAAI,CAAE,IAAE,EAAE,KAAI;AAAA,EAAG;AAAC,SAAO;AAAC;AAAC,SAASC,EAAEF,GAAE;AAAC,MAAI,IAAEF,EAAE,IAAIE,CAAC;AAAE,SAAgB,MAAT,WAAa,IAAED,EAAEC,CAAC,GAAEF,EAAE,IAAIE,GAAE,CAAC,IAAG;AAAC;AAA2E,SAASG,EAAEH,GAAE;AAAC,QA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