@unicom-cloud/ui 0.8.110 → 0.8.112
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.
- package/Affix.js +3 -3
- package/Alert.js +1 -1
- package/AutoComplete.js +1 -1
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +2 -2
- package/Countdown.js +17 -17
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +19 -19
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Flex.js +18 -18
- package/Form.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +19 -19
- package/List.js +1 -1
- package/Loading.js +18 -18
- package/Marquee.js +19 -19
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +18 -18
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +18 -18
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/RichText.js +13 -70
- package/Segmented.js +20 -20
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +18 -18
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +19 -19
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +2 -2
- package/affix/index.js +3 -3
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +2 -2
- package/cascader/Cascader.js +3 -3
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{Y_GQsZUt.js → 0BhDjhcd.js} +1 -1
- package/chunk/{BDMqvmVH.js → BCmfDFV4.js} +28 -30
- package/chunk/{n1tirBXA.js → BfVlSL8A.js} +3 -3
- package/chunk/BiZSULcr.js +1872 -0
- package/chunk/{BcEZk8pT.js → C1vY8016.js} +14 -14
- package/chunk/{qsVvkBLU.js → C3kH2ES3.js} +1 -1
- package/chunk/{BGJspFG9.js → C5CbL5ku.js} +1 -1
- package/chunk/CAA93JLq.js +6 -0
- package/chunk/{B8W1N4er.js → CHQ8c547.js} +11 -10
- package/chunk/{Dbw0YUY1.js → CYssV-zz.js} +36 -36
- package/chunk/CrOzsnI0.js +51 -0
- package/chunk/{CFyN9Eio.js → CtCFA4ht.js} +4 -4
- package/chunk/{BnUWOu3_.js → Cx92e1S8.js} +3 -3
- package/chunk/{BeHcDey_.js → CylbdYce.js} +1 -1
- package/chunk/{BUNoUPLs.js → DMv8Hn4u.js} +1 -1
- package/chunk/{zFFM4RBT.js → DfUcAhyT.js} +703 -680
- package/chunk/{DSqW_efI.js → DfbO4QTS.js} +152 -156
- package/chunk/{CgN4U7Ou.js → DhAvt6tJ.js} +2 -2
- package/chunk/DsuIQH0F.js +200 -0
- package/chunk/{Lyh0cz3R.js → KPBMJlOB.js} +1 -1
- package/chunk/{B_c0gPsX.js → vP3qfmKM.js} +24 -23
- package/collapse/Collapse.js +1 -1
- package/collapse/Item.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +2 -2
- package/countdown/index.js +17 -17
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +19 -19
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +1 -1
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +18 -18
- package/form/Form.js +2 -2
- package/form/FormItem.js +1 -1
- package/form/index.js +1 -1
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +96 -97
- package/hooks/useId.js +1 -1
- package/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/hooks/useResizeObserver.js +58 -2
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +22 -22
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +691 -693
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +2 -2
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +2 -2
- package/input-number/index.js +1 -1
- package/input-number/useSelectionRange.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +24 -24
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +1 -1
- package/loading/index.js +18 -18
- package/marquee/index.js +22 -22
- package/marquee-/index.js +22 -22
- package/mentions/index.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +2 -2
- package/notice/index.js +18 -18
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +2 -2
- package/overflow-ellipsis/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/CircleProgress.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +18 -18
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +2 -2
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/rich-text/core.js +1 -1
- package/rich-text/index.js +65 -128
- package/rich-text/rich.js +406 -936
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +71 -74
- package/row-col/Row.js +1 -1
- package/segmented/index.js +23 -23
- package/select/Option.js +1 -1
- package/select/Select.js +4 -4
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +18 -18
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +3 -3
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +61 -11
- package/table/index.js +4 -4
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +27 -27
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +3 -3
- package/tree-select/index.js +1 -1
- package/trigger/index.js +2 -2
- package/types/common/hooks/src/use-size/index.d.ts +1 -1
- package/types/common/hooks/src/use-theme/index.d.ts +2 -2
- package/types/common/hooks/src/utils/isBrowser.d.ts +1 -1
- package/types/common/hooks/useResizeObserver.d.ts +1 -5
- package/types/common/hooks/useWindowSize.d.ts +1 -1
- package/types/common/utils/emitter.d.ts +1 -0
- package/types/common/utils/index.d.ts +1 -1
- package/types/pc/index.d.ts +1 -1
- package/types/pc/menu/context.d.ts +1 -1
- package/types/pc/rich-text/blots/scroll.d.ts +2 -8
- package/types/pc/rich-text/core/emitter.d.ts +2 -3
- package/types/pc/rich-text/core/rich.d.ts +11 -44
- package/types/pc/rich-text/core/selection.d.ts +1 -8
- package/types/pc/rich-text/core/theme.d.ts +3 -0
- package/types/pc/rich-text/parchment/blot/abstract/parent.d.ts +2 -4
- package/types/pc/rich-text/themes/base.d.ts +3 -0
- package/types/pc/rich-text/themes/{snow.d.ts → pqb.d.ts} +2 -2
- package/types/pc/rich-text/ui/tooltip.d.ts +2 -0
- package/types/pc/utils/emitter.d.ts +1 -0
- package/types/pc/utils/index.d.ts +1 -1
- package/typography/Base.js +2 -2
- package/typography/Ellipsis.js +3 -3
- package/typography/Operations.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/useEllipsis.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/emitter.js +5 -0
- package/utils/index.js +3 -3
- package/utils/resizeObserver.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +2 -2
- package/watermark/Watermark.js +1 -1
- package/chunk/BDgzrqDN.js +0 -154
- package/chunk/COc48wzV.js +0 -64
- package/chunk/COsRZOz1.js +0 -1813
- package/chunk/CylJZkp8.js +0 -6
- package/chunk/Di5KBCVQ.js +0 -4
- package/chunk/cW_5U6dL.js +0 -28
- package/rich-text/eventemitter/index.d.ts +0 -135
- package/types/common/utils/mitt.d.ts +0 -1
- package/types/pc/rich-text/eventemitter/index.d.ts +0 -101
- package/types/pc/rich-text/themes/bubble.d.ts +0 -18
- package/types/pc/utils/mitt.d.ts +0 -1
- package/utils/mitt.js +0 -5
package/rich-text/rich.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { A as
|
|
3
|
-
import { RICH_TEXT_CLASS_NAME_PREFIX as
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { S as M, C as G, B as N, b as T, R as n, c as w, E as ht, d as W, e as dt, f as ut, T as pt, g as ft, h as m, i as bt, j as xt, D as A, k as X, M as H, t as gt, n as mt, l as K, m as p, a as yt, o as vt, F as kt, p as At, q as Q, r as J, s as wt, u as Y, v as tt, w as et, x as qt, y as Et, z as st, G as St, H as Lt } from "../chunk/BCmfDFV4.js";
|
|
2
|
+
import { A as De, O as Pe, I as Fe, P as ze } from "../chunk/BCmfDFV4.js";
|
|
3
|
+
import { RICH_TEXT_CLASS_NAME_PREFIX as o } from "./constant.js";
|
|
4
|
+
import it from "lodash/merge";
|
|
5
|
+
import { names as Nt } from "@unicom-cloud/utils/tinycolor";
|
|
6
|
+
import * as Tt from "@unicom-cloud/utils/ui-color";
|
|
7
|
+
class It extends G {
|
|
6
8
|
add(t, e) {
|
|
7
9
|
let s = 0;
|
|
8
10
|
if (e === "+1" || e === "-1") {
|
|
@@ -20,13 +22,13 @@ class It extends W {
|
|
|
20
22
|
}
|
|
21
23
|
const Ct = new It(
|
|
22
24
|
"indent",
|
|
23
|
-
`${
|
|
25
|
+
`${o}-indent`,
|
|
24
26
|
{
|
|
25
|
-
scope:
|
|
27
|
+
scope: M.BLOCK,
|
|
26
28
|
whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
|
|
27
29
|
}
|
|
28
30
|
);
|
|
29
|
-
class $t extends
|
|
31
|
+
class $t extends N {
|
|
30
32
|
static {
|
|
31
33
|
this.blotName = "blockquote";
|
|
32
34
|
}
|
|
@@ -34,7 +36,7 @@ class $t extends $ {
|
|
|
34
36
|
this.tagName = "blockquote";
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
|
-
class Rt extends
|
|
39
|
+
class Rt extends N {
|
|
38
40
|
static {
|
|
39
41
|
this.blotName = "header";
|
|
40
42
|
}
|
|
@@ -45,11 +47,11 @@ class Rt extends $ {
|
|
|
45
47
|
return this.tagName.indexOf(t.tagName) + 1;
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
class
|
|
50
|
+
class q extends T {
|
|
49
51
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
class
|
|
52
|
+
q.blotName = "list-container";
|
|
53
|
+
q.tagName = "OL";
|
|
54
|
+
class E extends N {
|
|
53
55
|
static create(t) {
|
|
54
56
|
const e = super.create();
|
|
55
57
|
return e.setAttribute("data-list", t), e;
|
|
@@ -58,14 +60,14 @@ class N extends $ {
|
|
|
58
60
|
return t.getAttribute("data-list") || void 0;
|
|
59
61
|
}
|
|
60
62
|
static register() {
|
|
61
|
-
|
|
63
|
+
n.register(q);
|
|
62
64
|
}
|
|
63
65
|
constructor(t, e) {
|
|
64
66
|
super(t, e);
|
|
65
|
-
const s = e.ownerDocument.createElement("span"), i = (
|
|
67
|
+
const s = e.ownerDocument.createElement("span"), i = (r) => {
|
|
66
68
|
if (!t.isEnabled()) return;
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
+
const a = this.statics.formats(e, t);
|
|
70
|
+
a === "checked" ? (this.format("list", "unchecked"), r.preventDefault()) : a === "unchecked" && (this.format("list", "checked"), r.preventDefault());
|
|
69
71
|
};
|
|
70
72
|
s.addEventListener("mousedown", i), s.addEventListener("touchstart", i), this.attachUI(s);
|
|
71
73
|
}
|
|
@@ -73,11 +75,11 @@ class N extends $ {
|
|
|
73
75
|
t === this.statics.blotName && e ? this.domNode.setAttribute("data-list", e) : super.format(t, e);
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class
|
|
78
|
+
E.blotName = "list";
|
|
79
|
+
E.tagName = "LI";
|
|
80
|
+
q.allowedChildren = [E];
|
|
81
|
+
E.requiredContainer = q;
|
|
82
|
+
class B extends w {
|
|
81
83
|
static {
|
|
82
84
|
this.blotName = "bold";
|
|
83
85
|
}
|
|
@@ -94,7 +96,7 @@ class U extends L {
|
|
|
94
96
|
super.optimize(t), this.domNode.tagName !== this.statics.tagName[0] && this.replaceWith(this.statics.blotName);
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
|
-
class Mt extends
|
|
99
|
+
class Mt extends B {
|
|
98
100
|
static {
|
|
99
101
|
this.blotName = "italic";
|
|
100
102
|
}
|
|
@@ -102,7 +104,7 @@ class Mt extends U {
|
|
|
102
104
|
this.tagName = ["EM", "I"];
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
|
-
class
|
|
107
|
+
class S extends w {
|
|
106
108
|
static {
|
|
107
109
|
this.blotName = "link";
|
|
108
110
|
}
|
|
@@ -129,13 +131,13 @@ class I extends L {
|
|
|
129
131
|
t !== this.statics.blotName || !e ? super.format(t, e) : this.domNode.setAttribute("href", this.constructor.sanitize(e));
|
|
130
132
|
}
|
|
131
133
|
}
|
|
132
|
-
function rt(
|
|
134
|
+
function rt(l, t) {
|
|
133
135
|
const e = document.createElement("a");
|
|
134
|
-
e.href =
|
|
136
|
+
e.href = l;
|
|
135
137
|
const s = e.href.slice(0, e.href.indexOf(":"));
|
|
136
138
|
return t.indexOf(s) > -1;
|
|
137
139
|
}
|
|
138
|
-
class Ht extends
|
|
140
|
+
class Ht extends w {
|
|
139
141
|
static {
|
|
140
142
|
this.blotName = "script";
|
|
141
143
|
}
|
|
@@ -150,7 +152,7 @@ class Ht extends L {
|
|
|
150
152
|
if (t.tagName === "SUP") return "super";
|
|
151
153
|
}
|
|
152
154
|
}
|
|
153
|
-
class Bt extends
|
|
155
|
+
class Bt extends B {
|
|
154
156
|
static {
|
|
155
157
|
this.blotName = "strike";
|
|
156
158
|
}
|
|
@@ -158,7 +160,7 @@ class Bt extends U {
|
|
|
158
160
|
this.tagName = ["S", "STRIKE"];
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
|
-
class Ot extends
|
|
163
|
+
class Ot extends w {
|
|
162
164
|
static {
|
|
163
165
|
this.blotName = "underline";
|
|
164
166
|
}
|
|
@@ -166,12 +168,12 @@ class Ot extends L {
|
|
|
166
168
|
this.tagName = "U";
|
|
167
169
|
}
|
|
168
170
|
}
|
|
169
|
-
class
|
|
171
|
+
class Vt extends ht {
|
|
170
172
|
static {
|
|
171
173
|
this.blotName = "formula";
|
|
172
174
|
}
|
|
173
175
|
static {
|
|
174
|
-
this.className = `${
|
|
176
|
+
this.className = `${o}-formula`;
|
|
175
177
|
}
|
|
176
178
|
static {
|
|
177
179
|
this.tagName = "SPAN";
|
|
@@ -193,8 +195,8 @@ class Ut extends pt {
|
|
|
193
195
|
return `<span>${t}</span>`;
|
|
194
196
|
}
|
|
195
197
|
}
|
|
196
|
-
const
|
|
197
|
-
class
|
|
198
|
+
const Z = ["alt", "height", "width"];
|
|
199
|
+
class Ut extends W {
|
|
198
200
|
static {
|
|
199
201
|
this.blotName = "image";
|
|
200
202
|
}
|
|
@@ -206,7 +208,7 @@ class Vt extends X {
|
|
|
206
208
|
return typeof t == "string" && e.setAttribute("src", this.sanitize(t)), e;
|
|
207
209
|
}
|
|
208
210
|
static formats(t) {
|
|
209
|
-
return
|
|
211
|
+
return Z.reduce(
|
|
210
212
|
(e, s) => (t.hasAttribute(s) && (e[s] = t.getAttribute(s)), e),
|
|
211
213
|
{}
|
|
212
214
|
);
|
|
@@ -221,16 +223,16 @@ class Vt extends X {
|
|
|
221
223
|
return t.getAttribute("src");
|
|
222
224
|
}
|
|
223
225
|
format(t, e) {
|
|
224
|
-
|
|
226
|
+
Z.indexOf(t) > -1 ? e ? this.domNode.setAttribute(t, e) : this.domNode.removeAttribute(t) : super.format(t, e);
|
|
225
227
|
}
|
|
226
228
|
}
|
|
227
|
-
const
|
|
228
|
-
class Zt extends
|
|
229
|
+
const D = ["height", "width"];
|
|
230
|
+
class Zt extends dt {
|
|
229
231
|
static {
|
|
230
232
|
this.blotName = "video";
|
|
231
233
|
}
|
|
232
234
|
static {
|
|
233
|
-
this.className = `${
|
|
235
|
+
this.className = `${o}-video`;
|
|
234
236
|
}
|
|
235
237
|
static {
|
|
236
238
|
this.tagName = "IFRAME";
|
|
@@ -240,49 +242,49 @@ class Zt extends ft {
|
|
|
240
242
|
return e.setAttribute("frameborder", "0"), e.setAttribute("allowfullscreen", "true"), e.setAttribute("src", this.sanitize(t)), e;
|
|
241
243
|
}
|
|
242
244
|
static formats(t) {
|
|
243
|
-
return
|
|
245
|
+
return D.reduce(
|
|
244
246
|
(e, s) => (t.hasAttribute(s) && (e[s] = t.getAttribute(s)), e),
|
|
245
247
|
{}
|
|
246
248
|
);
|
|
247
249
|
}
|
|
248
250
|
static sanitize(t) {
|
|
249
|
-
return
|
|
251
|
+
return S.sanitize(t);
|
|
250
252
|
}
|
|
251
253
|
static value(t) {
|
|
252
254
|
return t.getAttribute("src");
|
|
253
255
|
}
|
|
254
256
|
format(t, e) {
|
|
255
|
-
|
|
257
|
+
D.indexOf(t) > -1 ? e ? this.domNode.setAttribute(t, e) : this.domNode.removeAttribute(t) : super.format(t, e);
|
|
256
258
|
}
|
|
257
259
|
html() {
|
|
258
260
|
const { video: t } = this.value();
|
|
259
261
|
return `<a href="${t}">${t}</a>`;
|
|
260
262
|
}
|
|
261
263
|
}
|
|
262
|
-
const
|
|
263
|
-
scope:
|
|
264
|
+
const v = new G("code-token", "hljs", {
|
|
265
|
+
scope: M.INLINE
|
|
264
266
|
});
|
|
265
|
-
class f extends
|
|
267
|
+
class f extends w {
|
|
266
268
|
static formats(t, e) {
|
|
267
269
|
for (; t != null && t !== e.domNode; ) {
|
|
268
|
-
if (t.classList && t.classList.contains(
|
|
270
|
+
if (t.classList && t.classList.contains(m.className))
|
|
269
271
|
return super.formats(t, e);
|
|
270
272
|
t = t.parentNode;
|
|
271
273
|
}
|
|
272
274
|
}
|
|
273
275
|
constructor(t, e, s) {
|
|
274
|
-
super(t, e, s),
|
|
276
|
+
super(t, e, s), v.add(this.domNode, s);
|
|
275
277
|
}
|
|
276
278
|
format(t, e) {
|
|
277
|
-
t !== f.blotName ? super.format(t, e) : e ?
|
|
279
|
+
t !== f.blotName ? super.format(t, e) : e ? v.add(this.domNode, e) : (v.remove(this.domNode), this.domNode.classList.remove(this.statics.className));
|
|
278
280
|
}
|
|
279
281
|
optimize(...t) {
|
|
280
|
-
super.optimize(...t),
|
|
282
|
+
super.optimize(...t), v.value(this.domNode) || this.unwrap();
|
|
281
283
|
}
|
|
282
284
|
}
|
|
283
285
|
f.blotName = "code-token";
|
|
284
|
-
f.className = `${
|
|
285
|
-
class
|
|
286
|
+
f.className = `${o}-token`;
|
|
287
|
+
class h extends m {
|
|
286
288
|
static create(t) {
|
|
287
289
|
const e = super.create(t);
|
|
288
290
|
return typeof t == "string" && e.setAttribute("data-language", t), e;
|
|
@@ -300,64 +302,64 @@ class u extends y {
|
|
|
300
302
|
return this.formatAt(0, this.length(), f.blotName, !1), super.replaceWith(t, e);
|
|
301
303
|
}
|
|
302
304
|
}
|
|
303
|
-
class
|
|
305
|
+
class k extends bt {
|
|
304
306
|
attach() {
|
|
305
307
|
super.attach(), this.forceNext = !1, this.scroll.emitMount(this);
|
|
306
308
|
}
|
|
307
309
|
format(t, e) {
|
|
308
|
-
t ===
|
|
310
|
+
t === h.blotName && (this.forceNext = !0, this.children.forEach((s) => {
|
|
309
311
|
s.format(t, e);
|
|
310
312
|
}));
|
|
311
313
|
}
|
|
312
314
|
formatAt(t, e, s, i) {
|
|
313
|
-
s ===
|
|
315
|
+
s === h.blotName && (this.forceNext = !0), super.formatAt(t, e, s, i);
|
|
314
316
|
}
|
|
315
317
|
highlight(t, e = !1) {
|
|
316
318
|
if (this.children.head == null) return;
|
|
317
319
|
const i = `${Array.from(this.domNode.childNodes).filter(
|
|
318
|
-
(
|
|
319
|
-
).map((
|
|
320
|
+
(a) => a !== this.uiNode
|
|
321
|
+
).map((a) => a.textContent).join(`
|
|
320
322
|
`)}
|
|
321
|
-
`,
|
|
323
|
+
`, r = h.formats(this.children.head.domNode);
|
|
322
324
|
if (e || this.forceNext || this.cachedText !== i) {
|
|
323
325
|
if (i.trim().length > 0 || this.cachedText == null) {
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
[
|
|
327
|
-
}),
|
|
326
|
+
const a = this.children.reduce((u, x) => u.concat(xt(x, !1)), new A()), c = t(i, r);
|
|
327
|
+
a.diff(c).reduce((u, { retain: x, attributes: C }) => x ? (C && Object.keys(C).forEach(($) => {
|
|
328
|
+
[h.blotName, f.blotName].includes($) && this.formatAt(u, x, $, C[$]);
|
|
329
|
+
}), u + x) : u, 0);
|
|
328
330
|
}
|
|
329
331
|
this.cachedText = i, this.forceNext = !1;
|
|
330
332
|
}
|
|
331
333
|
}
|
|
332
334
|
html(t, e) {
|
|
333
335
|
const [s] = this.children.find(t);
|
|
334
|
-
return `<pre data-language="${s ?
|
|
335
|
-
${
|
|
336
|
+
return `<pre data-language="${s ? h.formats(s.domNode) : "plain"}">
|
|
337
|
+
${X(
|
|
336
338
|
this.code(t, e)
|
|
337
339
|
)}
|
|
338
340
|
</pre>`;
|
|
339
341
|
}
|
|
340
342
|
optimize(t) {
|
|
341
343
|
if (super.optimize(t), this.parent != null && this.children.head != null && this.uiNode != null) {
|
|
342
|
-
const e =
|
|
344
|
+
const e = h.formats(this.children.head.domNode);
|
|
343
345
|
e !== this.uiNode.value && (this.uiNode.value = e);
|
|
344
346
|
}
|
|
345
347
|
}
|
|
346
348
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
const Dt = (
|
|
351
|
-
if (typeof
|
|
352
|
-
const s =
|
|
349
|
+
k.allowedChildren = [h];
|
|
350
|
+
h.requiredContainer = k;
|
|
351
|
+
h.allowedChildren = [f, ut, pt, ft];
|
|
352
|
+
const Dt = (l, t, e) => {
|
|
353
|
+
if (typeof l.versionString == "string") {
|
|
354
|
+
const s = l.versionString.split(".")[0];
|
|
353
355
|
if (parseInt(s, 10) >= 11)
|
|
354
|
-
return
|
|
356
|
+
return l.highlight(e, { language: t }).value;
|
|
355
357
|
}
|
|
356
|
-
return
|
|
358
|
+
return l.highlight(t, e).value;
|
|
357
359
|
};
|
|
358
|
-
class lt extends
|
|
360
|
+
class lt extends H {
|
|
359
361
|
static register() {
|
|
360
|
-
|
|
362
|
+
n.register(f, !0), n.register(h, !0), n.register(k, !0);
|
|
361
363
|
}
|
|
362
364
|
constructor(t, e) {
|
|
363
365
|
if (super(t, e), this.options.hljs == null)
|
|
@@ -370,20 +372,20 @@ class lt extends B {
|
|
|
370
372
|
), this.highlightBlot = this.highlightBlot.bind(this), this.initListener(), this.initTimer();
|
|
371
373
|
}
|
|
372
374
|
initListener() {
|
|
373
|
-
this.rich.on(
|
|
374
|
-
if (!(t instanceof
|
|
375
|
+
this.rich.on(n.events.SCROLL_BLOT_MOUNT, (t) => {
|
|
376
|
+
if (!(t instanceof k)) return;
|
|
375
377
|
const e = this.rich.root.ownerDocument.createElement("select");
|
|
376
378
|
this.options.languages.forEach(({ key: s, label: i }) => {
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
+
const r = e.ownerDocument.createElement("option");
|
|
380
|
+
r.textContent = i, r.setAttribute("value", s), e.appendChild(r);
|
|
379
381
|
}), e.addEventListener("change", () => {
|
|
380
|
-
t.format(
|
|
381
|
-
}), t.uiNode == null && (t.attachUI(e), t.children.head && (e.value =
|
|
382
|
+
t.format(h.blotName, e.value), this.rich.root.focus(), this.highlight(t, !0);
|
|
383
|
+
}), t.uiNode == null && (t.attachUI(e), t.children.head && (e.value = h.formats(t.children.head.domNode)));
|
|
382
384
|
});
|
|
383
385
|
}
|
|
384
386
|
initTimer() {
|
|
385
387
|
let t = null;
|
|
386
|
-
this.rich.on(
|
|
388
|
+
this.rich.on(n.events.SCROLL_OPTIMIZE, () => {
|
|
387
389
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
388
390
|
this.highlight(), t = null;
|
|
389
391
|
}, this.options.interval);
|
|
@@ -391,35 +393,35 @@ class lt extends B {
|
|
|
391
393
|
}
|
|
392
394
|
highlight(t = null, e = !1) {
|
|
393
395
|
if (this.rich.selection.composing) return;
|
|
394
|
-
this.rich.update(
|
|
396
|
+
this.rich.update(n.sources.USER);
|
|
395
397
|
const s = this.rich.getSelection();
|
|
396
|
-
(t == null ? this.rich.scroll.descendants(
|
|
397
|
-
|
|
398
|
-
}), this.rich.update(
|
|
398
|
+
(t == null ? this.rich.scroll.descendants(k) : [t]).forEach((r) => {
|
|
399
|
+
r.highlight(this.highlightBlot, e);
|
|
400
|
+
}), this.rich.update(n.sources.SILENT), s != null && this.rich.setSelection(s, n.sources.SILENT);
|
|
399
401
|
}
|
|
400
402
|
highlightBlot(t, e = "plain") {
|
|
401
403
|
if (e = this.languages[e] ? e : "plain", e === "plain")
|
|
402
|
-
return
|
|
403
|
-
`).reduce((i,
|
|
404
|
-
`, { [
|
|
404
|
+
return X(t).split(`
|
|
405
|
+
`).reduce((i, r, a) => (a !== 0 && i.insert(`
|
|
406
|
+
`, { [m.blotName]: e }), i.insert(r)), new A());
|
|
405
407
|
const s = this.rich.root.ownerDocument.createElement("div");
|
|
406
|
-
return s.classList.add(
|
|
408
|
+
return s.classList.add(m.className), s.innerHTML = Dt(this.options.hljs, e, t), gt(
|
|
407
409
|
this.rich.scroll,
|
|
408
410
|
s,
|
|
409
411
|
[
|
|
410
|
-
(i,
|
|
411
|
-
const
|
|
412
|
-
return
|
|
413
|
-
new
|
|
414
|
-
[f.blotName]:
|
|
412
|
+
(i, r) => {
|
|
413
|
+
const a = v.value(i);
|
|
414
|
+
return a ? r.compose(
|
|
415
|
+
new A().retain(r.length(), {
|
|
416
|
+
[f.blotName]: a
|
|
415
417
|
})
|
|
416
|
-
) :
|
|
418
|
+
) : r;
|
|
417
419
|
}
|
|
418
420
|
],
|
|
419
421
|
[
|
|
420
|
-
(i,
|
|
421
|
-
`).reduce((
|
|
422
|
-
`, { [
|
|
422
|
+
(i, r) => i.data.split(`
|
|
423
|
+
`).reduce((a, c, u) => (u !== 0 && a.insert(`
|
|
424
|
+
`, { [m.blotName]: e }), a.insert(c)), r)
|
|
423
425
|
],
|
|
424
426
|
/* @__PURE__ */ new WeakMap()
|
|
425
427
|
);
|
|
@@ -445,7 +447,7 @@ lt.DEFAULTS = {
|
|
|
445
447
|
{ key: "sql", label: "SQL" }
|
|
446
448
|
]
|
|
447
449
|
};
|
|
448
|
-
class
|
|
450
|
+
class d extends N {
|
|
449
451
|
static {
|
|
450
452
|
this.blotName = "table";
|
|
451
453
|
}
|
|
@@ -454,7 +456,7 @@ class p extends $ {
|
|
|
454
456
|
}
|
|
455
457
|
static create(t) {
|
|
456
458
|
const e = super.create();
|
|
457
|
-
return t ? e.setAttribute("data-row", t) : e.setAttribute("data-row",
|
|
459
|
+
return t ? e.setAttribute("data-row", t) : e.setAttribute("data-row", O()), e;
|
|
458
460
|
}
|
|
459
461
|
static formats(t) {
|
|
460
462
|
if (t.hasAttribute("data-row"))
|
|
@@ -464,7 +466,7 @@ class p extends $ {
|
|
|
464
466
|
return this.parent ? this.parent.children.indexOf(this) : -1;
|
|
465
467
|
}
|
|
466
468
|
format(t, e) {
|
|
467
|
-
t ===
|
|
469
|
+
t === d.blotName && e ? this.domNode.setAttribute("data-row", e) : super.format(t, e);
|
|
468
470
|
}
|
|
469
471
|
row() {
|
|
470
472
|
return this.parent;
|
|
@@ -476,7 +478,7 @@ class p extends $ {
|
|
|
476
478
|
return this.row() && this.row().table();
|
|
477
479
|
}
|
|
478
480
|
}
|
|
479
|
-
class g extends
|
|
481
|
+
class g extends T {
|
|
480
482
|
static {
|
|
481
483
|
this.blotName = "table-row";
|
|
482
484
|
}
|
|
@@ -495,8 +497,8 @@ class g extends R {
|
|
|
495
497
|
if (e.next == null) return;
|
|
496
498
|
const s = e.formats(), i = e.next.formats();
|
|
497
499
|
if (s.table !== i.table) {
|
|
498
|
-
const
|
|
499
|
-
|
|
500
|
+
const r = this.splitAfter(e);
|
|
501
|
+
r && r.optimize(), this.prev && this.prev.optimize();
|
|
500
502
|
}
|
|
501
503
|
});
|
|
502
504
|
}
|
|
@@ -507,7 +509,7 @@ class g extends R {
|
|
|
507
509
|
return this.parent && this.parent.parent;
|
|
508
510
|
}
|
|
509
511
|
}
|
|
510
|
-
class
|
|
512
|
+
class b extends T {
|
|
511
513
|
static {
|
|
512
514
|
this.blotName = "table-body";
|
|
513
515
|
}
|
|
@@ -515,7 +517,7 @@ class x extends R {
|
|
|
515
517
|
this.tagName = "TBODY";
|
|
516
518
|
}
|
|
517
519
|
}
|
|
518
|
-
class
|
|
520
|
+
class L extends T {
|
|
519
521
|
static {
|
|
520
522
|
this.blotName = "table-container";
|
|
521
523
|
}
|
|
@@ -527,9 +529,9 @@ class C extends R {
|
|
|
527
529
|
t.forEach((s) => {
|
|
528
530
|
new Array(e - s.children.length).fill(0).forEach(() => {
|
|
529
531
|
let i;
|
|
530
|
-
s.children.head != null && (i =
|
|
531
|
-
const
|
|
532
|
-
s.appendChild(
|
|
532
|
+
s.children.head != null && (i = d.formats(s.children.head.domNode));
|
|
533
|
+
const r = this.scroll.create(d.blotName, i);
|
|
534
|
+
s.appendChild(r), r.optimize();
|
|
533
535
|
});
|
|
534
536
|
});
|
|
535
537
|
}
|
|
@@ -537,74 +539,74 @@ class C extends R {
|
|
|
537
539
|
return this.rows().map((e) => e.children.at(t));
|
|
538
540
|
}
|
|
539
541
|
deleteColumn(t) {
|
|
540
|
-
const [e] = this.descendant(
|
|
542
|
+
const [e] = this.descendant(b);
|
|
541
543
|
e == null || e.children.head == null || e.children.forEach((s) => {
|
|
542
544
|
const i = s.children.at(t);
|
|
543
545
|
i?.remove();
|
|
544
546
|
});
|
|
545
547
|
}
|
|
546
548
|
insertColumn(t) {
|
|
547
|
-
const [e] = this.descendant(
|
|
549
|
+
const [e] = this.descendant(b);
|
|
548
550
|
e == null || e.children.head == null || e.children.forEach((s) => {
|
|
549
|
-
const i = s.children.at(t),
|
|
550
|
-
s.insertBefore(
|
|
551
|
+
const i = s.children.at(t), r = d.formats(s.children.head.domNode), a = this.scroll.create(d.blotName, r);
|
|
552
|
+
s.insertBefore(a, i);
|
|
551
553
|
});
|
|
552
554
|
}
|
|
553
555
|
insertRow(t) {
|
|
554
|
-
const [e] = this.descendant(
|
|
556
|
+
const [e] = this.descendant(b);
|
|
555
557
|
if (e == null || e.children.head == null) return;
|
|
556
|
-
const s =
|
|
558
|
+
const s = O(), i = this.scroll.create(g.blotName);
|
|
557
559
|
e.children.head.children.forEach(() => {
|
|
558
|
-
const
|
|
559
|
-
i.appendChild(
|
|
560
|
+
const a = this.scroll.create(d.blotName, s);
|
|
561
|
+
i.appendChild(a);
|
|
560
562
|
});
|
|
561
|
-
const
|
|
562
|
-
e.insertBefore(i,
|
|
563
|
+
const r = e.children.at(t);
|
|
564
|
+
e.insertBefore(i, r);
|
|
563
565
|
}
|
|
564
566
|
rows() {
|
|
565
567
|
const t = this.children.head;
|
|
566
568
|
return t == null ? [] : t.children.map((e) => e);
|
|
567
569
|
}
|
|
568
570
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
g.requiredContainer =
|
|
573
|
-
g.allowedChildren = [
|
|
574
|
-
|
|
575
|
-
function
|
|
571
|
+
L.allowedChildren = [b];
|
|
572
|
+
b.requiredContainer = L;
|
|
573
|
+
b.allowedChildren = [g];
|
|
574
|
+
g.requiredContainer = b;
|
|
575
|
+
g.allowedChildren = [d];
|
|
576
|
+
d.requiredContainer = g;
|
|
577
|
+
function O() {
|
|
576
578
|
return `row-${Math.random().toString(36).slice(2, 6)}`;
|
|
577
579
|
}
|
|
578
|
-
class
|
|
580
|
+
class Pt extends H {
|
|
579
581
|
static register() {
|
|
580
|
-
|
|
582
|
+
n.register(d), n.register(g), n.register(b), n.register(L);
|
|
581
583
|
}
|
|
582
584
|
constructor(...t) {
|
|
583
585
|
super(...t), this.listenBalanceCells();
|
|
584
586
|
}
|
|
585
587
|
balanceTables() {
|
|
586
|
-
this.rich.scroll.descendants(
|
|
588
|
+
this.rich.scroll.descendants(L).forEach((t) => {
|
|
587
589
|
t.balanceCells();
|
|
588
590
|
});
|
|
589
591
|
}
|
|
590
592
|
deleteColumn() {
|
|
591
593
|
const [t, , e] = this.getTable();
|
|
592
|
-
e != null && (t.deleteColumn(e.cellOffset()), this.rich.update(
|
|
594
|
+
e != null && (t.deleteColumn(e.cellOffset()), this.rich.update(n.sources.USER));
|
|
593
595
|
}
|
|
594
596
|
deleteRow() {
|
|
595
597
|
const [, t] = this.getTable();
|
|
596
|
-
t != null && (t.remove(), this.rich.update(
|
|
598
|
+
t != null && (t.remove(), this.rich.update(n.sources.USER));
|
|
597
599
|
}
|
|
598
600
|
deleteTable() {
|
|
599
601
|
const [t] = this.getTable();
|
|
600
602
|
if (t == null) return;
|
|
601
603
|
const e = t.offset();
|
|
602
|
-
t.remove(), this.rich.update(
|
|
604
|
+
t.remove(), this.rich.update(n.sources.USER), this.rich.setSelection(e, n.sources.SILENT);
|
|
603
605
|
}
|
|
604
606
|
getTable(t = this.rich.getSelection()) {
|
|
605
607
|
if (t == null) return [null, null, null, -1];
|
|
606
608
|
const [e, s] = this.rich.getLine(t.index);
|
|
607
|
-
if (e == null || e.statics.blotName !==
|
|
609
|
+
if (e == null || e.statics.blotName !== d.blotName)
|
|
608
610
|
return [null, null, null, -1];
|
|
609
611
|
const i = e.parent;
|
|
610
612
|
return [i.parent.parent, i, e, s];
|
|
@@ -612,15 +614,15 @@ class Ft extends B {
|
|
|
612
614
|
insertColumn(t) {
|
|
613
615
|
const e = this.rich.getSelection();
|
|
614
616
|
if (!e) return;
|
|
615
|
-
const [s, i,
|
|
616
|
-
if (
|
|
617
|
-
const
|
|
618
|
-
s.insertColumn(
|
|
619
|
-
let
|
|
620
|
-
t === 0 && (
|
|
621
|
-
e.index +
|
|
617
|
+
const [s, i, r] = this.getTable(e);
|
|
618
|
+
if (r == null) return;
|
|
619
|
+
const a = r.cellOffset();
|
|
620
|
+
s.insertColumn(a + t), this.rich.update(n.sources.USER);
|
|
621
|
+
let c = i.rowOffset();
|
|
622
|
+
t === 0 && (c += 1), this.rich.setSelection(
|
|
623
|
+
e.index + c,
|
|
622
624
|
e.length,
|
|
623
|
-
|
|
625
|
+
n.sources.SILENT
|
|
624
626
|
);
|
|
625
627
|
}
|
|
626
628
|
insertColumnLeft() {
|
|
@@ -632,13 +634,13 @@ class Ft extends B {
|
|
|
632
634
|
insertRow(t) {
|
|
633
635
|
const e = this.rich.getSelection();
|
|
634
636
|
if (!e) return;
|
|
635
|
-
const [s, i,
|
|
636
|
-
if (
|
|
637
|
-
const
|
|
638
|
-
s.insertRow(
|
|
637
|
+
const [s, i, r] = this.getTable(e);
|
|
638
|
+
if (r == null) return;
|
|
639
|
+
const a = i.rowOffset();
|
|
640
|
+
s.insertRow(a + t), this.rich.update(n.sources.USER), t > 0 ? this.rich.setSelection(e, n.sources.SILENT) : this.rich.setSelection(
|
|
639
641
|
e.index + i.children.length,
|
|
640
642
|
e.length,
|
|
641
|
-
|
|
643
|
+
n.sources.SILENT
|
|
642
644
|
);
|
|
643
645
|
}
|
|
644
646
|
insertRowAbove() {
|
|
@@ -650,42 +652,38 @@ class Ft extends B {
|
|
|
650
652
|
insertTable(t, e) {
|
|
651
653
|
const s = this.rich.getSelection();
|
|
652
654
|
if (s == null) return;
|
|
653
|
-
const i = new Array(t).fill(0).reduce((
|
|
654
|
-
const
|
|
655
|
+
const i = new Array(t).fill(0).reduce((r) => {
|
|
656
|
+
const a = new Array(e).fill(`
|
|
655
657
|
`).join("");
|
|
656
|
-
return
|
|
657
|
-
}, new
|
|
658
|
-
this.rich.updateContents(i,
|
|
658
|
+
return r.insert(a, { table: O() });
|
|
659
|
+
}, new A().retain(s.index));
|
|
660
|
+
this.rich.updateContents(i, n.sources.USER), this.rich.setSelection(s.index, n.sources.SILENT), this.balanceTables();
|
|
659
661
|
}
|
|
660
662
|
listenBalanceCells() {
|
|
661
|
-
this.rich.on(
|
|
663
|
+
this.rich.on(n.events.SCROLL_OPTIMIZE, (t) => {
|
|
662
664
|
t.some((e) => ["TD", "TR", "TBODY", "TABLE"].includes(
|
|
663
665
|
e.target.tagName
|
|
664
|
-
) ? (this.rich.once(
|
|
665
|
-
|
|
666
|
+
) ? (this.rich.once(n.events.TEXT_CHANGE, (s, i, r) => {
|
|
667
|
+
r === n.sources.USER && this.balanceTables();
|
|
666
668
|
}), !0) : !1);
|
|
667
669
|
});
|
|
668
670
|
}
|
|
669
671
|
}
|
|
670
|
-
const
|
|
671
|
-
class
|
|
672
|
+
const P = mt("rich:toolbar");
|
|
673
|
+
class V extends H {
|
|
672
674
|
constructor(t, e) {
|
|
673
|
-
if (super(t, e), Array.isArray(this.options.container)) {
|
|
674
|
-
|
|
675
|
-
s.setAttribute("role", "toolbar"), zt(s, this.options.container), t.container?.parentNode?.insertBefore(s, t.container), this.container = s;
|
|
676
|
-
} else typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container;
|
|
677
|
-
if (!(this.container instanceof HTMLElement)) {
|
|
678
|
-
z.error("Container required for toolbar", this.options);
|
|
675
|
+
if (super(t, e), Array.isArray(this.options.container) ? (this.container = document.createElement("div"), this.container.setAttribute("role", "toolbar"), Ft(this.container, this.options.container), t.container?.parentNode?.insertBefore(this.container, t.container)) : typeof this.options.container == "string" ? this.container = document.querySelector(this.options.container) : this.container = this.options.container, !(this.container instanceof HTMLElement)) {
|
|
676
|
+
P.error("Container required for toolbar", this.options);
|
|
679
677
|
return;
|
|
680
678
|
}
|
|
681
|
-
this.container.classList.add(`${
|
|
679
|
+
this.container.classList.add(`${o}-toolbar`), this.controls = [], this.handlers = {}, this.options.handlers && Object.keys(this.options.handlers).forEach((s) => {
|
|
682
680
|
const i = this.options.handlers?.[s];
|
|
683
681
|
i && this.addHandler(s, i);
|
|
684
682
|
}), Array.from(this.container.querySelectorAll("button, select")).forEach(
|
|
685
683
|
(s) => {
|
|
686
684
|
this.attach(s);
|
|
687
685
|
}
|
|
688
|
-
), this.rich.on(
|
|
686
|
+
), this.rich.on(n.events.EDITOR_CHANGE, () => {
|
|
689
687
|
const [s] = this.rich.selection.getRange();
|
|
690
688
|
this.update(s);
|
|
691
689
|
});
|
|
@@ -694,125 +692,126 @@ class Z extends B {
|
|
|
694
692
|
this.handlers[t] = e;
|
|
695
693
|
}
|
|
696
694
|
attach(t) {
|
|
697
|
-
let e = Array.from(t.classList).find((i) => i.indexOf(`${
|
|
695
|
+
let e = Array.from(t.classList).find((i) => i.indexOf(`${o}-`) === 0);
|
|
698
696
|
if (!e) return;
|
|
699
|
-
if (e = e.slice(`${
|
|
700
|
-
|
|
697
|
+
if (e = e.slice(`${o}-`.length), t.tagName === "BUTTON" && t.setAttribute("type", "button"), this.handlers[e] == null && this.rich.scroll.query(e) == null) {
|
|
698
|
+
P.warn("ignoring attaching to nonexistent format", e, t);
|
|
701
699
|
return;
|
|
702
700
|
}
|
|
703
701
|
const s = t.tagName === "SELECT" ? "change" : "click";
|
|
704
702
|
t.addEventListener(s, (i) => {
|
|
705
|
-
let
|
|
703
|
+
let r;
|
|
706
704
|
if (t.tagName === "SELECT") {
|
|
707
|
-
if (t.selectedIndex < 0)
|
|
708
|
-
|
|
709
|
-
|
|
705
|
+
if (t.selectedIndex < 0)
|
|
706
|
+
return;
|
|
707
|
+
const c = t.options[t.selectedIndex];
|
|
708
|
+
c.hasAttribute("selected") ? r = !1 : r = c.value || !1;
|
|
710
709
|
} else
|
|
711
|
-
t.classList.contains(`${
|
|
710
|
+
t.classList.contains(`${o}-active`) ? r = !1 : r = t.value || !t.hasAttribute("value"), i.preventDefault();
|
|
712
711
|
this.rich.focus();
|
|
713
|
-
const [
|
|
712
|
+
const [a] = this.rich.selection.getRange();
|
|
714
713
|
if (this.handlers[e] != null)
|
|
715
|
-
this.handlers[e].call(this,
|
|
716
|
-
else if (this.rich.scroll.query(e).prototype instanceof
|
|
717
|
-
if (
|
|
714
|
+
this.handlers[e].call(this, r);
|
|
715
|
+
else if (this.rich.scroll.query(e).prototype instanceof W) {
|
|
716
|
+
if (r = prompt(`Enter ${e}`), !r) return;
|
|
718
717
|
this.rich.updateContents(
|
|
719
|
-
new
|
|
720
|
-
|
|
718
|
+
new A().retain(a.index).delete(a.length).insert({ [e]: r }),
|
|
719
|
+
n.sources.USER
|
|
721
720
|
);
|
|
722
721
|
} else
|
|
723
|
-
this.rich.format(e,
|
|
724
|
-
this.update(
|
|
722
|
+
this.rich.format(e, r, n.sources.USER);
|
|
723
|
+
this.update(a);
|
|
725
724
|
}), this.controls.push([e, t]);
|
|
726
725
|
}
|
|
727
726
|
update(t) {
|
|
728
727
|
const e = t == null ? {} : this.rich.getFormat(t);
|
|
729
728
|
this.controls.forEach((s) => {
|
|
730
|
-
const [i,
|
|
731
|
-
if (
|
|
732
|
-
let
|
|
729
|
+
const [i, r] = s;
|
|
730
|
+
if (r.tagName === "SELECT") {
|
|
731
|
+
let a = null;
|
|
733
732
|
if (t == null)
|
|
734
|
-
|
|
733
|
+
a = null;
|
|
735
734
|
else if (e[i] == null)
|
|
736
|
-
|
|
735
|
+
a = r.querySelector("option[selected]");
|
|
737
736
|
else if (!Array.isArray(e[i])) {
|
|
738
|
-
let
|
|
739
|
-
typeof
|
|
737
|
+
let c = e[i];
|
|
738
|
+
typeof c == "string" && (c = c.replace(/"/g, '\\"')), a = r.querySelector(`option[value="${c}" i]`);
|
|
740
739
|
}
|
|
741
|
-
|
|
740
|
+
a == null ? (r.value = "", r.selectedIndex = -1) : a.selected = !0;
|
|
742
741
|
} else if (t == null)
|
|
743
|
-
|
|
744
|
-
else if (
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
`${
|
|
748
|
-
|
|
749
|
-
),
|
|
742
|
+
r.classList.remove(`${o}-active`), r.setAttribute("aria-pressed", "false");
|
|
743
|
+
else if (r.hasAttribute("value")) {
|
|
744
|
+
const a = e[i], c = a === r.getAttribute("value") || a != null && a.toString() === r.getAttribute("value") || a == null && !r.getAttribute("value");
|
|
745
|
+
r.classList.toggle(
|
|
746
|
+
`${o}-active`,
|
|
747
|
+
c
|
|
748
|
+
), r.setAttribute("aria-pressed", c.toString());
|
|
750
749
|
} else {
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
`${
|
|
754
|
-
|
|
755
|
-
),
|
|
750
|
+
const a = e[i] != null;
|
|
751
|
+
r.classList.toggle(
|
|
752
|
+
`${o}-active`,
|
|
753
|
+
a
|
|
754
|
+
), r.setAttribute("aria-pressed", a.toString());
|
|
756
755
|
}
|
|
757
756
|
});
|
|
758
757
|
}
|
|
759
758
|
}
|
|
760
|
-
|
|
761
|
-
function
|
|
759
|
+
V.DEFAULTS = {};
|
|
760
|
+
function F(l, t, e) {
|
|
762
761
|
const s = document.createElement("button");
|
|
763
|
-
s.setAttribute("type", "button"), s.classList.add(`${
|
|
762
|
+
s.setAttribute("type", "button"), s.classList.add(`${o}-${t}`), s.setAttribute("aria-pressed", "false"), e != null ? (s.value = e, s.setAttribute("aria-label", `${t}: ${e}`)) : s.setAttribute("aria-label", t), l.appendChild(s);
|
|
764
763
|
}
|
|
765
|
-
function
|
|
764
|
+
function Ft(l, t) {
|
|
766
765
|
Array.isArray(t[0]) || (t = [t]), t.forEach((e) => {
|
|
767
766
|
const s = document.createElement("span");
|
|
768
|
-
s.classList.add(`${
|
|
767
|
+
s.classList.add(`${o}-formats`), e.forEach((i) => {
|
|
769
768
|
if (typeof i == "string")
|
|
770
|
-
|
|
769
|
+
F(s, i);
|
|
771
770
|
else {
|
|
772
|
-
const
|
|
773
|
-
Array.isArray(
|
|
771
|
+
const r = Object.keys(i)[0], a = i[r];
|
|
772
|
+
Array.isArray(a) ? zt(s, r, a) : F(s, r, a);
|
|
774
773
|
}
|
|
775
|
-
}),
|
|
774
|
+
}), l.appendChild(s);
|
|
776
775
|
});
|
|
777
776
|
}
|
|
778
|
-
function
|
|
777
|
+
function zt(l, t, e) {
|
|
779
778
|
const s = document.createElement("select");
|
|
780
|
-
s.classList.add(`${
|
|
781
|
-
const
|
|
782
|
-
i !== !1 ?
|
|
783
|
-
}),
|
|
779
|
+
s.classList.add(`${o}-${t}`), e.forEach((i) => {
|
|
780
|
+
const r = document.createElement("option");
|
|
781
|
+
i !== !1 ? r.setAttribute("value", String(i)) : r.setAttribute("selected", "selected"), s.appendChild(r);
|
|
782
|
+
}), l.appendChild(s);
|
|
784
783
|
}
|
|
785
|
-
|
|
784
|
+
V.DEFAULTS = {
|
|
786
785
|
container: null,
|
|
787
786
|
handlers: {
|
|
788
787
|
clean() {
|
|
789
|
-
const
|
|
790
|
-
if (
|
|
791
|
-
if (
|
|
788
|
+
const l = this.rich.getSelection();
|
|
789
|
+
if (l != null)
|
|
790
|
+
if (l.length === 0) {
|
|
792
791
|
const t = this.rich.getFormat();
|
|
793
792
|
Object.keys(t).forEach((e) => {
|
|
794
|
-
this.rich.scroll.query(e,
|
|
793
|
+
this.rich.scroll.query(e, M.INLINE) != null && this.rich.format(e, !1, n.sources.USER);
|
|
795
794
|
});
|
|
796
795
|
} else
|
|
797
|
-
this.rich.removeFormat(
|
|
796
|
+
this.rich.removeFormat(l.index, l.length, n.sources.USER);
|
|
798
797
|
},
|
|
799
|
-
direction(
|
|
798
|
+
direction(l) {
|
|
800
799
|
const { align: t } = this.rich.getFormat();
|
|
801
|
-
|
|
800
|
+
l === "rtl" && t == null ? this.rich.format("align", "right", n.sources.USER) : !l && t === "right" && this.rich.format("align", !1, n.sources.USER), this.rich.format("direction", l, n.sources.USER);
|
|
802
801
|
},
|
|
803
|
-
indent(
|
|
802
|
+
indent(l) {
|
|
804
803
|
const t = this.rich.getSelection(), e = this.rich.getFormat(t), s = parseInt(e.indent || 0, 10);
|
|
805
|
-
if (
|
|
806
|
-
let i =
|
|
807
|
-
e.direction === "rtl" && (i *= -1), this.rich.format("indent", s + i,
|
|
804
|
+
if (l === "+1" || l === "-1") {
|
|
805
|
+
let i = l === "+1" ? 1 : -1;
|
|
806
|
+
e.direction === "rtl" && (i *= -1), this.rich.format("indent", s + i, n.sources.USER);
|
|
808
807
|
}
|
|
809
808
|
},
|
|
810
|
-
link(
|
|
811
|
-
|
|
809
|
+
link(l) {
|
|
810
|
+
l === !0 && (l = prompt("Enter link URL:")), this.rich.format("link", l, n.sources.USER);
|
|
812
811
|
},
|
|
813
|
-
list(
|
|
812
|
+
list(l) {
|
|
814
813
|
const t = this.rich.getSelection(), e = this.rich.getFormat(t);
|
|
815
|
-
|
|
814
|
+
l === "check" ? e.list === "checked" || e.list === "unchecked" ? this.rich.format("list", !1, n.sources.USER) : this.rich.format("list", "unchecked", n.sources.USER) : this.rich.format("list", l, n.sources.USER);
|
|
816
815
|
},
|
|
817
816
|
redo() {
|
|
818
817
|
this.rich.history.redo();
|
|
@@ -822,19 +821,15 @@ Z.DEFAULTS = {
|
|
|
822
821
|
}
|
|
823
822
|
}
|
|
824
823
|
};
|
|
825
|
-
const
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
`;
|
|
830
|
-
let _ = 0;
|
|
831
|
-
function j(r, t) {
|
|
832
|
-
r.setAttribute(
|
|
824
|
+
const jt = '<svg viewbox="0 0 18 18"><polygon class="pqb-rich-text-stroke" points="7 11 9 13 11 11 7 11"></polygon><polygon class="pqb-rich-text-stroke" points="7 7 9 5 11 7 7 7"></polygon></svg>';
|
|
825
|
+
let z = 0;
|
|
826
|
+
function j(l, t) {
|
|
827
|
+
l.setAttribute(
|
|
833
828
|
t,
|
|
834
|
-
`${
|
|
829
|
+
`${l.getAttribute(t) !== "true"}`
|
|
835
830
|
);
|
|
836
831
|
}
|
|
837
|
-
class
|
|
832
|
+
class I {
|
|
838
833
|
constructor(t) {
|
|
839
834
|
this.select = t, this.container = document.createElement("span"), this.buildPicker(), this.select.style.display = "none", this.select.parentNode.insertBefore(this.container, this.select), this.label.addEventListener("mousedown", () => {
|
|
840
835
|
this.togglePicker();
|
|
@@ -850,11 +845,11 @@ class M {
|
|
|
850
845
|
}), this.select.addEventListener("change", this.update.bind(this));
|
|
851
846
|
}
|
|
852
847
|
togglePicker() {
|
|
853
|
-
this.container.classList.toggle(`${
|
|
848
|
+
this.container.classList.toggle(`${o}-expanded`), j(this.label, "aria-expanded"), j(this.options, "aria-hidden");
|
|
854
849
|
}
|
|
855
850
|
buildItem(t) {
|
|
856
851
|
const e = document.createElement("span");
|
|
857
|
-
e.tabIndex = "0", e.setAttribute("role", "button"), e.classList.add(`${
|
|
852
|
+
e.tabIndex = "0", e.setAttribute("role", "button"), e.classList.add(`${o}-picker-item`);
|
|
858
853
|
const s = t.getAttribute("value");
|
|
859
854
|
return s && e.setAttribute("data-value", s), t.textContent && e.setAttribute("data-label", t.textContent), e.addEventListener("click", () => {
|
|
860
855
|
this.selectItem(e, !0);
|
|
@@ -871,11 +866,11 @@ class M {
|
|
|
871
866
|
}
|
|
872
867
|
buildLabel() {
|
|
873
868
|
const t = document.createElement("span");
|
|
874
|
-
return t.classList.add(`${
|
|
869
|
+
return t.classList.add(`${o}-picker-label`), t.innerHTML = jt, t.tabIndex = "0", t.setAttribute("role", "button"), t.setAttribute("aria-expanded", "false"), this.container.appendChild(t), t;
|
|
875
870
|
}
|
|
876
871
|
buildOptions() {
|
|
877
872
|
const t = document.createElement("span");
|
|
878
|
-
t.classList.add(`${
|
|
873
|
+
t.classList.add(`${o}-picker-options`), t.setAttribute("aria-hidden", "true"), t.tabIndex = "-1", t.id = `${o}-picker-options-${z}`, z += 1, this.label.setAttribute("aria-controls", t.id), this.options = t, Array.from(this.select.options).forEach((e) => {
|
|
879
874
|
const s = this.buildItem(e);
|
|
880
875
|
t.appendChild(s), e.selected === !0 && this.selectItem(s);
|
|
881
876
|
}), this.container.appendChild(t);
|
|
@@ -883,46 +878,46 @@ class M {
|
|
|
883
878
|
buildPicker() {
|
|
884
879
|
Array.from(this.select.attributes).forEach((t) => {
|
|
885
880
|
this.container.setAttribute(t.name, t.value);
|
|
886
|
-
}), this.container.classList.add(`${
|
|
881
|
+
}), this.container.classList.add(`${o}-picker`), this.label = this.buildLabel(), this.buildOptions();
|
|
887
882
|
}
|
|
888
883
|
escape() {
|
|
889
884
|
this.close(), setTimeout(() => this.label.focus(), 1);
|
|
890
885
|
}
|
|
891
886
|
close() {
|
|
892
|
-
this.container.classList.remove(`${
|
|
887
|
+
this.container.classList.remove(`${o}-expanded`), this.label.setAttribute("aria-expanded", "false"), this.options.setAttribute("aria-hidden", "true");
|
|
893
888
|
}
|
|
894
889
|
selectItem(t, e = !1) {
|
|
895
890
|
const s = this.container.querySelector(
|
|
896
|
-
`.${
|
|
891
|
+
`.${o}-selected`
|
|
897
892
|
);
|
|
898
|
-
t !== s && (s?.classList.remove(`${
|
|
893
|
+
t !== s && (s?.classList.remove(`${o}-selected`), t != null && (t.classList.add(`${o}-selected`), this.select.selectedIndex = Array.from(t.parentNode.children).indexOf(
|
|
899
894
|
t
|
|
900
895
|
), t.hasAttribute("data-value") ? this.label.setAttribute("data-value", t.getAttribute("data-value")) : this.label.removeAttribute("data-value"), t.hasAttribute("data-label") ? this.label.setAttribute("data-label", t.getAttribute("data-label")) : this.label.removeAttribute("data-label"), e && (this.select.dispatchEvent(new Event("change")), this.close())));
|
|
901
896
|
}
|
|
902
897
|
update() {
|
|
903
898
|
let t;
|
|
904
899
|
if (this.select.selectedIndex > -1) {
|
|
905
|
-
const
|
|
906
|
-
`.${
|
|
900
|
+
const r = this.container.querySelector(
|
|
901
|
+
`.${o}-picker-options`
|
|
907
902
|
).children[this.select.selectedIndex];
|
|
908
|
-
t = this.select.options[this.select.selectedIndex], this.selectItem(
|
|
903
|
+
t = this.select.options[this.select.selectedIndex], this.selectItem(r);
|
|
909
904
|
} else
|
|
910
905
|
this.selectItem(null);
|
|
911
906
|
const e = t != null && t !== this.select.querySelector("option[selected]");
|
|
912
907
|
this.label.classList.toggle(
|
|
913
|
-
`${
|
|
908
|
+
`${o}-active`,
|
|
914
909
|
e
|
|
915
910
|
);
|
|
916
911
|
}
|
|
917
912
|
}
|
|
918
|
-
class ot extends
|
|
913
|
+
class ot extends I {
|
|
919
914
|
constructor(t, e) {
|
|
920
|
-
super(t), this.label.innerHTML = e, this.container.classList.add(`${
|
|
915
|
+
super(t), this.label.innerHTML = e, this.container.classList.add(`${o}-color-picker`), Array.from(
|
|
921
916
|
this.container.querySelectorAll(
|
|
922
|
-
`.${
|
|
917
|
+
`.${o}-picker-item`
|
|
923
918
|
)
|
|
924
919
|
).slice(0, 7).forEach((s) => {
|
|
925
|
-
s.classList.add(`${
|
|
920
|
+
s.classList.add(`${o}-primary`);
|
|
926
921
|
});
|
|
927
922
|
}
|
|
928
923
|
buildItem(t) {
|
|
@@ -932,21 +927,21 @@ class ot extends M {
|
|
|
932
927
|
selectItem(t, e) {
|
|
933
928
|
super.selectItem(t, e);
|
|
934
929
|
const s = this.label.querySelector(
|
|
935
|
-
`.${
|
|
930
|
+
`.${o}-color-label`
|
|
936
931
|
), i = t && t.getAttribute("data-value") || "";
|
|
937
932
|
s && (s.tagName === "line" ? s.style.stroke = i : s.style.fill = i);
|
|
938
933
|
}
|
|
939
934
|
}
|
|
940
|
-
class
|
|
935
|
+
class at extends I {
|
|
941
936
|
constructor(t, e) {
|
|
942
|
-
super(t), this.container.classList.add(`${
|
|
937
|
+
super(t), this.container.classList.add(`${o}-icon-picker`), Array.from(
|
|
943
938
|
this.container.querySelectorAll(
|
|
944
|
-
`.${
|
|
939
|
+
`.${o}-picker-item`
|
|
945
940
|
)
|
|
946
941
|
).forEach((s) => {
|
|
947
942
|
s.innerHTML = e[s.getAttribute("data-value") || ""];
|
|
948
943
|
}), this.defaultItem = this.container.querySelector(
|
|
949
|
-
`.${
|
|
944
|
+
`.${o}-selected`
|
|
950
945
|
), this.selectItem(this.defaultItem);
|
|
951
946
|
}
|
|
952
947
|
selectItem(t, e) {
|
|
@@ -958,429 +953,11 @@ class ct extends M {
|
|
|
958
953
|
}
|
|
959
954
|
}
|
|
960
955
|
}
|
|
961
|
-
const jt = `<svg viewbox="0 0 18 18">
|
|
962
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
963
|
-
<line class="pqb-rich-text-stroke" x1="14" x2="4" y1="14" y2="14"></line>
|
|
964
|
-
<line class="pqb-rich-text-stroke" x1="12" x2="6" y1="4" y2="4"></line>
|
|
965
|
-
</svg>
|
|
966
|
-
`, Gt = `<svg viewbox="0 0 18 18">
|
|
967
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
968
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="3" y1="14" y2="14"></line>
|
|
969
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="3" y1="4" y2="4"></line>
|
|
970
|
-
</svg>
|
|
971
|
-
`, Wt = `<svg viewbox="0 0 18 18">
|
|
972
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="15" y1="9" y2="9"></line>
|
|
973
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="13" y1="14" y2="14"></line>
|
|
974
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="9" y1="4" y2="4"></line>
|
|
975
|
-
</svg>
|
|
976
|
-
`, Xt = `<svg viewbox="0 0 18 18">
|
|
977
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
978
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="5" y1="14" y2="14"></line>
|
|
979
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="9" y1="4" y2="4"></line>
|
|
980
|
-
</svg>
|
|
981
|
-
`, Kt = `<svg viewbox="0 0 18 18">
|
|
982
|
-
<g class="pqb-rich-text-fill pqb-rich-text-color-label">
|
|
983
|
-
<polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon>
|
|
984
|
-
<rect height="1" width="1" x="4" y="4"></rect>
|
|
985
|
-
<polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon>
|
|
986
|
-
<rect height="1" width="1" x="2" y="6"></rect>
|
|
987
|
-
<rect height="1" width="1" x="3" y="5"></rect>
|
|
988
|
-
<rect height="1" width="1" x="4" y="7"></rect>
|
|
989
|
-
<polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon>
|
|
990
|
-
<rect height="1" width="1" x="2" y="12"></rect>
|
|
991
|
-
<rect height="1" width="1" x="2" y="9"></rect>
|
|
992
|
-
<rect height="1" width="1" x="2" y="15"></rect>
|
|
993
|
-
<polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon>
|
|
994
|
-
<rect height="1" width="1" x="3" y="8"></rect>
|
|
995
|
-
<path
|
|
996
|
-
d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"
|
|
997
|
-
></path>
|
|
998
|
-
<path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"></path>
|
|
999
|
-
<path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"></path>
|
|
1000
|
-
<rect height="1" width="1" x="12" y="2"></rect>
|
|
1001
|
-
<rect height="1" width="1" x="11" y="3"></rect>
|
|
1002
|
-
<path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"></path>
|
|
1003
|
-
<rect height="1" width="1" x="2" y="3"></rect>
|
|
1004
|
-
<rect height="1" width="1" x="6" y="2"></rect>
|
|
1005
|
-
<rect height="1" width="1" x="3" y="2"></rect>
|
|
1006
|
-
<rect height="1" width="1" x="5" y="3"></rect>
|
|
1007
|
-
<rect height="1" width="1" x="9" y="2"></rect>
|
|
1008
|
-
<rect height="1" width="1" x="15" y="14"></rect>
|
|
1009
|
-
<polygon
|
|
1010
|
-
points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"
|
|
1011
|
-
></polygon>
|
|
1012
|
-
<rect height="1" width="1" x="13" y="7"></rect>
|
|
1013
|
-
<rect height="1" width="1" x="15" y="5"></rect>
|
|
1014
|
-
<rect height="1" width="1" x="14" y="6"></rect>
|
|
1015
|
-
<rect height="1" width="1" x="15" y="8"></rect>
|
|
1016
|
-
<rect height="1" width="1" x="14" y="9"></rect>
|
|
1017
|
-
<path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"></path>
|
|
1018
|
-
<rect height="1" width="1" x="14" y="3"></rect>
|
|
1019
|
-
<polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon>
|
|
1020
|
-
<rect height="1" width="1" x="15" y="2"></rect>
|
|
1021
|
-
<rect height="1" width="1" x="12" y="5"></rect>
|
|
1022
|
-
<rect height="1" width="1" x="13" y="4"></rect>
|
|
1023
|
-
<polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon>
|
|
1024
|
-
<rect height="1" width="1" x="9" y="14"></rect>
|
|
1025
|
-
<rect height="1" width="1" x="8" y="15"></rect>
|
|
1026
|
-
<path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"></path>
|
|
1027
|
-
<rect height="1" width="1" x="5" y="15"></rect>
|
|
1028
|
-
<path
|
|
1029
|
-
d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"
|
|
1030
|
-
></path>
|
|
1031
|
-
<rect height="1" width="1" x="11" y="15"></rect>
|
|
1032
|
-
<path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"></path>
|
|
1033
|
-
<rect height="1" width="1" x="14" y="15"></rect>
|
|
1034
|
-
<rect height="1" width="1" x="15" y="11"></rect>
|
|
1035
|
-
</g>
|
|
1036
|
-
<polyline class="pqb-rich-text-stroke" points="5.5 13 9 5 12.5 13"></polyline>
|
|
1037
|
-
<line
|
|
1038
|
-
class="pqb-rich-text-stroke"
|
|
1039
|
-
x1="11.63"
|
|
1040
|
-
x2="6.38"
|
|
1041
|
-
y1="11"
|
|
1042
|
-
y2="11"
|
|
1043
|
-
></line>
|
|
1044
|
-
</svg>
|
|
1045
|
-
`, Qt = `<svg viewbox="0 0 18 18">
|
|
1046
|
-
<rect
|
|
1047
|
-
class="pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1048
|
-
height="3"
|
|
1049
|
-
width="3"
|
|
1050
|
-
x="4"
|
|
1051
|
-
y="5"
|
|
1052
|
-
></rect>
|
|
1053
|
-
<rect
|
|
1054
|
-
class="pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1055
|
-
height="3"
|
|
1056
|
-
width="3"
|
|
1057
|
-
x="11"
|
|
1058
|
-
y="5"
|
|
1059
|
-
></rect>
|
|
1060
|
-
<path
|
|
1061
|
-
class="pqb-rich-text-even pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1062
|
-
d="M7,8c0,4.031-3,5-3,5"
|
|
1063
|
-
></path>
|
|
1064
|
-
<path
|
|
1065
|
-
class="pqb-rich-text-even pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1066
|
-
d="M14,8c0,4.031-3,5-3,5"
|
|
1067
|
-
></path>
|
|
1068
|
-
</svg>
|
|
1069
|
-
`, Jt = `<svg viewbox="0 0 18 18">
|
|
1070
|
-
<path
|
|
1071
|
-
class="pqb-rich-text-stroke"
|
|
1072
|
-
d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"
|
|
1073
|
-
></path>
|
|
1074
|
-
<path
|
|
1075
|
-
class="pqb-rich-text-stroke"
|
|
1076
|
-
d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"
|
|
1077
|
-
></path>
|
|
1078
|
-
</svg>
|
|
1079
|
-
`, Yt = `<svg class="" viewbox="0 0 18 18">
|
|
1080
|
-
<line class="pqb-rich-text-stroke" x1="5" x2="13" y1="3" y2="3"></line>
|
|
1081
|
-
<line class="pqb-rich-text-stroke" x1="6" x2="9.35" y1="12" y2="3"></line>
|
|
1082
|
-
<line class="pqb-rich-text-stroke" x1="11" x2="15" y1="11" y2="15"></line>
|
|
1083
|
-
<line class="pqb-rich-text-stroke" x1="15" x2="11" y1="11" y2="15"></line>
|
|
1084
|
-
<rect
|
|
1085
|
-
class="pqb-rich-text-fill"
|
|
1086
|
-
height="1"
|
|
1087
|
-
rx="0.5"
|
|
1088
|
-
ry="0.5"
|
|
1089
|
-
width="7"
|
|
1090
|
-
x="2"
|
|
1091
|
-
y="14"
|
|
1092
|
-
></rect>
|
|
1093
|
-
</svg>
|
|
1094
|
-
`, G = `<svg viewbox="0 0 18 18">
|
|
1095
|
-
<polyline
|
|
1096
|
-
class="pqb-rich-text-even pqb-rich-text-stroke"
|
|
1097
|
-
points="5 7 3 9 5 11"
|
|
1098
|
-
></polyline>
|
|
1099
|
-
<polyline
|
|
1100
|
-
class="pqb-rich-text-even pqb-rich-text-stroke"
|
|
1101
|
-
points="13 7 15 9 13 11"
|
|
1102
|
-
></polyline>
|
|
1103
|
-
<line class="pqb-rich-text-stroke" x1="10" x2="8" y1="5" y2="13"></line>
|
|
1104
|
-
</svg>
|
|
1105
|
-
`, te = `<svg viewbox="0 0 18 18">
|
|
1106
|
-
<line
|
|
1107
|
-
class="pqb-rich-text-color-label pqb-rich-text-stroke pqb-rich-text-transparent"
|
|
1108
|
-
x1="3"
|
|
1109
|
-
x2="15"
|
|
1110
|
-
y1="15"
|
|
1111
|
-
y2="15"
|
|
1112
|
-
></line>
|
|
1113
|
-
<polyline class="pqb-rich-text-stroke" points="5.5 11 9 3 12.5 11"></polyline>
|
|
1114
|
-
<line class="pqb-rich-text-stroke" x1="11.63" x2="6.38" y1="9" y2="9"></line>
|
|
1115
|
-
</svg>
|
|
1116
|
-
`, ee = `<svg viewbox="0 0 18 18">
|
|
1117
|
-
<polygon
|
|
1118
|
-
class="pqb-rich-text-stroke pqb-rich-text-fill"
|
|
1119
|
-
points="3 11 5 9 3 7 3 11"
|
|
1120
|
-
></polygon>
|
|
1121
|
-
<line
|
|
1122
|
-
class="pqb-rich-text-stroke pqb-rich-text-fill"
|
|
1123
|
-
x1="15"
|
|
1124
|
-
x2="11"
|
|
1125
|
-
y1="4"
|
|
1126
|
-
y2="4"
|
|
1127
|
-
></line>
|
|
1128
|
-
<path class="pqb-rich-text-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"></path>
|
|
1129
|
-
<rect class="pqb-rich-text-fill" height="11" width="1" x="11" y="4"></rect>
|
|
1130
|
-
<rect class="pqb-rich-text-fill" height="11" width="1" x="13" y="4"></rect>
|
|
1131
|
-
</svg>
|
|
1132
|
-
`, se = `<svg viewbox="0 0 18 18">
|
|
1133
|
-
<polygon
|
|
1134
|
-
class="pqb-rich-text-stroke pqb-rich-text-fill"
|
|
1135
|
-
points="15 12 13 10 15 8 15 12"
|
|
1136
|
-
></polygon>
|
|
1137
|
-
<line
|
|
1138
|
-
class="pqb-rich-text-stroke pqb-rich-text-fill"
|
|
1139
|
-
x1="9"
|
|
1140
|
-
x2="5"
|
|
1141
|
-
y1="4"
|
|
1142
|
-
y2="4"
|
|
1143
|
-
></line>
|
|
1144
|
-
<path class="pqb-rich-text-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"></path>
|
|
1145
|
-
<rect class="pqb-rich-text-fill" height="11" width="1" x="5" y="4"></rect>
|
|
1146
|
-
<rect class="pqb-rich-text-fill" height="11" width="1" x="7" y="4"></rect>
|
|
1147
|
-
</svg>
|
|
1148
|
-
`, ie = `<svg viewbox="0 0 18 18">
|
|
1149
|
-
<path
|
|
1150
|
-
class="pqb-rich-text-fill"
|
|
1151
|
-
d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"
|
|
1152
|
-
></path>
|
|
1153
|
-
<rect
|
|
1154
|
-
class="pqb-rich-text-fill"
|
|
1155
|
-
height="1.6"
|
|
1156
|
-
rx="0.8"
|
|
1157
|
-
ry="0.8"
|
|
1158
|
-
width="5"
|
|
1159
|
-
x="5.15"
|
|
1160
|
-
y="6.2"
|
|
1161
|
-
></rect>
|
|
1162
|
-
<path
|
|
1163
|
-
class="pqb-rich-text-fill"
|
|
1164
|
-
d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"
|
|
1165
|
-
></path>
|
|
1166
|
-
</svg>
|
|
1167
|
-
`, ne = `<svg viewBox="0 0 18 18">
|
|
1168
|
-
<path
|
|
1169
|
-
class="pqb-rich-text-fill"
|
|
1170
|
-
d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"
|
|
1171
|
-
/>
|
|
1172
|
-
</svg>
|
|
1173
|
-
`, re = `<svg viewBox="0 0 18 18">
|
|
1174
|
-
<path
|
|
1175
|
-
class="pqb-rich-text-fill"
|
|
1176
|
-
d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"
|
|
1177
|
-
/>
|
|
1178
|
-
</svg>
|
|
1179
|
-
`, le = `<svg viewBox="0 0 18 18">
|
|
1180
|
-
<path
|
|
1181
|
-
class="pqb-rich-text-fill"
|
|
1182
|
-
d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"
|
|
1183
|
-
/>
|
|
1184
|
-
</svg>
|
|
1185
|
-
`, oe = `<svg viewBox="0 0 18 18">
|
|
1186
|
-
<path
|
|
1187
|
-
class="pqb-rich-text-fill"
|
|
1188
|
-
d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"
|
|
1189
|
-
/>
|
|
1190
|
-
</svg>
|
|
1191
|
-
`, ce = `<svg viewBox="0 0 18 18">
|
|
1192
|
-
<path
|
|
1193
|
-
class="pqb-rich-text-fill"
|
|
1194
|
-
d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"
|
|
1195
|
-
/>
|
|
1196
|
-
</svg>
|
|
1197
|
-
`, ae = `<svg viewBox="0 0 18 18">
|
|
1198
|
-
<path
|
|
1199
|
-
class="pqb-rich-text-fill"
|
|
1200
|
-
d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"
|
|
1201
|
-
/>
|
|
1202
|
-
</svg>
|
|
1203
|
-
`, he = `<svg viewbox="0 0 18 18">
|
|
1204
|
-
<rect class="pqb-rich-text-stroke" height="10" width="12" x="3" y="4"></rect>
|
|
1205
|
-
<circle class="pqb-rich-text-fill" cx="6" cy="7" r="1"></circle>
|
|
1206
|
-
<polyline
|
|
1207
|
-
class="pqb-rich-text-even pqb-rich-text-fill"
|
|
1208
|
-
points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"
|
|
1209
|
-
></polyline>
|
|
1210
|
-
</svg>
|
|
1211
|
-
`, de = `<svg viewbox="0 0 18 18">
|
|
1212
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="15" y1="14" y2="14"></line>
|
|
1213
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="15" y1="4" y2="4"></line>
|
|
1214
|
-
<line class="pqb-rich-text-stroke" x1="9" x2="15" y1="9" y2="9"></line>
|
|
1215
|
-
<polyline
|
|
1216
|
-
class="pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1217
|
-
points="3 7 3 11 5 9 3 7"
|
|
1218
|
-
></polyline>
|
|
1219
|
-
</svg>
|
|
1220
|
-
`, ue = `<svg viewbox="0 0 18 18">
|
|
1221
|
-
<line class="pqb-rich-text-stroke" x1="7" x2="13" y1="4" y2="4"></line>
|
|
1222
|
-
<line class="pqb-rich-text-stroke" x1="5" x2="11" y1="14" y2="14"></line>
|
|
1223
|
-
<line class="pqb-rich-text-stroke" x1="8" x2="10" y1="14" y2="4"></line>
|
|
1224
|
-
</svg>
|
|
1225
|
-
`, pe = `<svg viewbox="0 0 18 18">
|
|
1226
|
-
<line class="pqb-rich-text-stroke" x1="7" x2="11" y1="7" y2="11"></line>
|
|
1227
|
-
<path
|
|
1228
|
-
class="pqb-rich-text-even pqb-rich-text-stroke"
|
|
1229
|
-
d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"
|
|
1230
|
-
></path>
|
|
1231
|
-
<path
|
|
1232
|
-
class="pqb-rich-text-even pqb-rich-text-stroke"
|
|
1233
|
-
d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"
|
|
1234
|
-
></path>
|
|
1235
|
-
</svg>
|
|
1236
|
-
`, fe = `<svg viewbox="0 0 18 18">
|
|
1237
|
-
<line class="pqb-rich-text-stroke" x1="6" x2="15" y1="4" y2="4"></line>
|
|
1238
|
-
<line class="pqb-rich-text-stroke" x1="6" x2="15" y1="9" y2="9"></line>
|
|
1239
|
-
<line class="pqb-rich-text-stroke" x1="6" x2="15" y1="14" y2="14"></line>
|
|
1240
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="3" y1="4" y2="4"></line>
|
|
1241
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="3" y1="9" y2="9"></line>
|
|
1242
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="3" y1="14" y2="14"></line>
|
|
1243
|
-
</svg>
|
|
1244
|
-
`, be = `<svg class="" viewbox="0 0 18 18">
|
|
1245
|
-
<line class="pqb-rich-text-stroke" x1="9" x2="15" y1="4" y2="4"></line>
|
|
1246
|
-
<polyline class="pqb-rich-text-stroke" points="3 4 4 5 6 3"></polyline>
|
|
1247
|
-
<line class="pqb-rich-text-stroke" x1="9" x2="15" y1="14" y2="14"></line>
|
|
1248
|
-
<polyline class="pqb-rich-text-stroke" points="3 14 4 15 6 13"></polyline>
|
|
1249
|
-
<line class="pqb-rich-text-stroke" x1="9" x2="15" y1="9" y2="9"></line>
|
|
1250
|
-
<polyline class="pqb-rich-text-stroke" points="3 9 4 10 6 8"></polyline>
|
|
1251
|
-
</svg>
|
|
1252
|
-
`, xe = `<svg viewbox="0 0 18 18">
|
|
1253
|
-
<line class="pqb-rich-text-stroke" x1="7" x2="15" y1="4" y2="4"></line>
|
|
1254
|
-
<line class="pqb-rich-text-stroke" x1="7" x2="15" y1="9" y2="9"></line>
|
|
1255
|
-
<line class="pqb-rich-text-stroke" x1="7" x2="15" y1="14" y2="14"></line>
|
|
1256
|
-
<line
|
|
1257
|
-
class="pqb-rich-text-stroke pqb-rich-text-thin"
|
|
1258
|
-
x1="2.5"
|
|
1259
|
-
x2="4.5"
|
|
1260
|
-
y1="5.5"
|
|
1261
|
-
y2="5.5"
|
|
1262
|
-
></line>
|
|
1263
|
-
<path
|
|
1264
|
-
class="pqb-rich-text-fill"
|
|
1265
|
-
d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"
|
|
1266
|
-
></path>
|
|
1267
|
-
<path
|
|
1268
|
-
class="pqb-rich-text-stroke pqb-rich-text-thin"
|
|
1269
|
-
d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"
|
|
1270
|
-
></path>
|
|
1271
|
-
<path
|
|
1272
|
-
class="pqb-rich-text-stroke pqb-rich-text-thin"
|
|
1273
|
-
d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"
|
|
1274
|
-
></path>
|
|
1275
|
-
</svg>
|
|
1276
|
-
`, ge = `<svg viewbox="0 0 18 18">
|
|
1277
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="15" y1="14" y2="14"></line>
|
|
1278
|
-
<line class="pqb-rich-text-stroke" x1="3" x2="15" y1="4" y2="4"></line>
|
|
1279
|
-
<line class="pqb-rich-text-stroke" x1="9" x2="15" y1="9" y2="9"></line>
|
|
1280
|
-
<polyline class="pqb-rich-text-stroke" points="5 7 5 11 3 9 5 7"></polyline>
|
|
1281
|
-
</svg>
|
|
1282
|
-
`, me = `<svg viewbox="0 0 18 18">
|
|
1283
|
-
<polygon
|
|
1284
|
-
class="pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1285
|
-
points="12 10 14 12 16 10 12 10"
|
|
1286
|
-
></polygon>
|
|
1287
|
-
<path
|
|
1288
|
-
class="pqb-rich-text-stroke"
|
|
1289
|
-
d="M9.91,13.91A4.6,4.6,0,0,1,9,14a5,5,0,1,1,5-5"
|
|
1290
|
-
></path>
|
|
1291
|
-
</svg>
|
|
1292
|
-
`, ye = `<svg viewbox="0 0 18 18">
|
|
1293
|
-
<line
|
|
1294
|
-
class="pqb-rich-text-stroke pqb-rich-text-thin"
|
|
1295
|
-
x1="15.5"
|
|
1296
|
-
x2="2.5"
|
|
1297
|
-
y1="8.5"
|
|
1298
|
-
y2="9.5"
|
|
1299
|
-
></line>
|
|
1300
|
-
<path
|
|
1301
|
-
class="pqb-rich-text-fill"
|
|
1302
|
-
d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"
|
|
1303
|
-
></path>
|
|
1304
|
-
<path
|
|
1305
|
-
class="pqb-rich-text-fill"
|
|
1306
|
-
d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"
|
|
1307
|
-
></path>
|
|
1308
|
-
</svg>
|
|
1309
|
-
`, ve = `<svg viewbox="0 0 18 18">
|
|
1310
|
-
<path
|
|
1311
|
-
class="pqb-rich-text-fill"
|
|
1312
|
-
d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"
|
|
1313
|
-
/>
|
|
1314
|
-
<path
|
|
1315
|
-
class="pqb-rich-text-fill"
|
|
1316
|
-
d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"
|
|
1317
|
-
/>
|
|
1318
|
-
</svg>
|
|
1319
|
-
`, ke = `<svg viewbox="0 0 18 18">
|
|
1320
|
-
<path
|
|
1321
|
-
class="pqb-rich-text-fill"
|
|
1322
|
-
d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"
|
|
1323
|
-
/>
|
|
1324
|
-
<path
|
|
1325
|
-
class="pqb-rich-text-fill"
|
|
1326
|
-
d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"
|
|
1327
|
-
/>
|
|
1328
|
-
</svg>
|
|
1329
|
-
`, Ae = `<svg viewbox="0 0 18 18">
|
|
1330
|
-
<rect class="pqb-rich-text-stroke" height="12" width="12" x="3" y="3"></rect>
|
|
1331
|
-
<rect class="pqb-rich-text-fill" height="2" width="3" x="5" y="5"></rect>
|
|
1332
|
-
<rect class="pqb-rich-text-fill" height="2" width="4" x="9" y="5"></rect>
|
|
1333
|
-
<g class="pqb-rich-text-fill pqb-rich-text-transparent">
|
|
1334
|
-
<rect height="2" width="3" x="5" y="8"></rect>
|
|
1335
|
-
<rect height="2" width="4" x="9" y="8"></rect>
|
|
1336
|
-
<rect height="2" width="3" x="5" y="11"></rect>
|
|
1337
|
-
<rect height="2" width="4" x="9" y="11"></rect>
|
|
1338
|
-
</g>
|
|
1339
|
-
</svg>
|
|
1340
|
-
`, we = `<svg viewbox="0 0 18 18">
|
|
1341
|
-
<path
|
|
1342
|
-
class="pqb-rich-text-stroke"
|
|
1343
|
-
d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"
|
|
1344
|
-
></path>
|
|
1345
|
-
<rect
|
|
1346
|
-
class="pqb-rich-text-fill"
|
|
1347
|
-
height="1"
|
|
1348
|
-
rx="0.5"
|
|
1349
|
-
ry="0.5"
|
|
1350
|
-
width="12"
|
|
1351
|
-
x="3"
|
|
1352
|
-
y="15"
|
|
1353
|
-
></rect>
|
|
1354
|
-
</svg>
|
|
1355
|
-
`, qe = `<svg viewbox="0 0 18 18">
|
|
1356
|
-
<polygon
|
|
1357
|
-
class="pqb-rich-text-fill pqb-rich-text-stroke"
|
|
1358
|
-
points="6 10 4 12 2 10 6 10"
|
|
1359
|
-
></polygon>
|
|
1360
|
-
<path
|
|
1361
|
-
class="pqb-rich-text-stroke"
|
|
1362
|
-
d="M8.09,13.91A4.6,4.6,0,0,0,9,14,5,5,0,1,0,4,9"
|
|
1363
|
-
></path>
|
|
1364
|
-
</svg>
|
|
1365
|
-
`, Ee = `<svg viewbox="0 0 18 18">
|
|
1366
|
-
<rect class="pqb-rich-text-stroke" height="12" width="12" x="3" y="3"></rect>
|
|
1367
|
-
<rect class="pqb-rich-text-fill" height="12" width="1" x="5" y="3"></rect>
|
|
1368
|
-
<rect class="pqb-rich-text-fill" height="12" width="1" x="12" y="3"></rect>
|
|
1369
|
-
<rect class="pqb-rich-text-fill" height="2" width="8" x="5" y="8"></rect>
|
|
1370
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="5"></rect>
|
|
1371
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="7"></rect>
|
|
1372
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="10"></rect>
|
|
1373
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="12"></rect>
|
|
1374
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="5"></rect>
|
|
1375
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="7"></rect>
|
|
1376
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="10"></rect>
|
|
1377
|
-
<rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="12"></rect>
|
|
1378
|
-
</svg>
|
|
1379
|
-
`, E = {
|
|
956
|
+
const _t = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="15" x2="3" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="14" x2="4" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="12" x2="6" y1="4" y2="4"></line></svg>', Gt = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="15" x2="3" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="15" x2="3" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="15" x2="3" y1="4" y2="4"></line></svg>', Wt = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="3" x2="15" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="3" x2="13" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="3" x2="9" y1="4" y2="4"></line></svg>', Xt = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="15" x2="3" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="15" x2="5" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="15" x2="9" y1="4" y2="4"></line></svg>', Kt = '<svg viewbox="0 0 18 18"><g class="pqb-rich-text-fill pqb-rich-text-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon><rect height="1" width="1" x="4" y="4"></rect><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon><rect height="1" width="1" x="2" y="6"></rect><rect height="1" width="1" x="3" y="5"></rect><rect height="1" width="1" x="4" y="7"></rect><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon><rect height="1" width="1" x="2" y="12"></rect><rect height="1" width="1" x="2" y="9"></rect><rect height="1" width="1" x="2" y="15"></rect><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon><rect height="1" width="1" x="3" y="8"></rect><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"></path><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"></path><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"></path><rect height="1" width="1" x="12" y="2"></rect><rect height="1" width="1" x="11" y="3"></rect><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"></path><rect height="1" width="1" x="2" y="3"></rect><rect height="1" width="1" x="6" y="2"></rect><rect height="1" width="1" x="3" y="2"></rect><rect height="1" width="1" x="5" y="3"></rect><rect height="1" width="1" x="9" y="2"></rect><rect height="1" width="1" x="15" y="14"></rect><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon><rect height="1" width="1" x="13" y="7"></rect><rect height="1" width="1" x="15" y="5"></rect><rect height="1" width="1" x="14" y="6"></rect><rect height="1" width="1" x="15" y="8"></rect><rect height="1" width="1" x="14" y="9"></rect><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"></path><rect height="1" width="1" x="14" y="3"></rect><polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon><rect height="1" width="1" x="15" y="2"></rect><rect height="1" width="1" x="12" y="5"></rect><rect height="1" width="1" x="13" y="4"></rect><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon><rect height="1" width="1" x="9" y="14"></rect><rect height="1" width="1" x="8" y="15"></rect><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"></path><rect height="1" width="1" x="5" y="15"></rect><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"></path><rect height="1" width="1" x="11" y="15"></rect><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"></path><rect height="1" width="1" x="14" y="15"></rect><rect height="1" width="1" x="15" y="11"></rect></g><polyline class="pqb-rich-text-stroke" points="5.5 13 9 5 12.5 13"></polyline><line class="pqb-rich-text-stroke" x1="11.63" x2="6.38" y1="11" y2="11"></line></svg>', Qt = '<svg viewbox="0 0 18 18"><rect class="pqb-rich-text-fill pqb-rich-text-stroke" height="3" width="3" x="4" y="5"></rect><rect class="pqb-rich-text-fill pqb-rich-text-stroke" height="3" width="3" x="11" y="5"></rect><path class="pqb-rich-text-even pqb-rich-text-fill pqb-rich-text-stroke" d="M7,8c0,4.031-3,5-3,5"></path><path class="pqb-rich-text-even pqb-rich-text-fill pqb-rich-text-stroke" d="M14,8c0,4.031-3,5-3,5"></path></svg>', Jt = '<svg viewbox="0 0 18 18"><path class="pqb-rich-text-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"></path><path class="pqb-rich-text-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"></path></svg>', Yt = '<svg class="" viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="5" x2="13" y1="3" y2="3"></line><line class="pqb-rich-text-stroke" x1="6" x2="9.35" y1="12" y2="3"></line><line class="pqb-rich-text-stroke" x1="11" x2="15" y1="11" y2="15"></line><line class="pqb-rich-text-stroke" x1="15" x2="11" y1="11" y2="15"></line><rect class="pqb-rich-text-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"></rect></svg>', _ = '<svg viewbox="0 0 18 18"><polyline class="pqb-rich-text-even pqb-rich-text-stroke" points="5 7 3 9 5 11"></polyline><polyline class="pqb-rich-text-even pqb-rich-text-stroke" points="13 7 15 9 13 11"></polyline><line class="pqb-rich-text-stroke" x1="10" x2="8" y1="5" y2="13"></line></svg>', te = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-color-label pqb-rich-text-stroke pqb-rich-text-transparent" x1="3" x2="15" y1="15" y2="15"></line><polyline class="pqb-rich-text-stroke" points="5.5 11 9 3 12.5 11"></polyline><line class="pqb-rich-text-stroke" x1="11.63" x2="6.38" y1="9" y2="9"></line></svg>', ee = '<svg viewbox="0 0 18 18"><polygon class="pqb-rich-text-stroke pqb-rich-text-fill" points="3 11 5 9 3 7 3 11"></polygon><line class="pqb-rich-text-stroke pqb-rich-text-fill" x1="15" x2="11" y1="4" y2="4"></line><path class="pqb-rich-text-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"></path><rect class="pqb-rich-text-fill" height="11" width="1" x="11" y="4"></rect><rect class="pqb-rich-text-fill" height="11" width="1" x="13" y="4"></rect></svg>', se = '<svg viewbox="0 0 18 18"><polygon class="pqb-rich-text-stroke pqb-rich-text-fill" points="15 12 13 10 15 8 15 12"></polygon><line class="pqb-rich-text-stroke pqb-rich-text-fill" x1="9" x2="5" y1="4" y2="4"></line><path class="pqb-rich-text-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"></path><rect class="pqb-rich-text-fill" height="11" width="1" x="5" y="4"></rect><rect class="pqb-rich-text-fill" height="11" width="1" x="7" y="4"></rect></svg>', ie = '<svg viewbox="0 0 18 18"><path class="pqb-rich-text-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"></path><rect class="pqb-rich-text-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"></rect><path class="pqb-rich-text-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"></path></svg>', re = '<svg viewBox="0 0 18 18"><path class="pqb-rich-text-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', le = '<svg viewBox="0 0 18 18"><path class="pqb-rich-text-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', oe = '<svg viewBox="0 0 18 18"><path class="pqb-rich-text-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>', ae = '<svg viewBox="0 0 18 18"><path class="pqb-rich-text-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>', ne = '<svg viewBox="0 0 18 18"><path class="pqb-rich-text-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>', ce = '<svg viewBox="0 0 18 18"><path class="pqb-rich-text-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>', he = '<svg viewbox="0 0 18 18"><rect class="pqb-rich-text-stroke" height="10" width="12" x="3" y="4"></rect><circle class="pqb-rich-text-fill" cx="6" cy="7" r="1"></circle><polyline class="pqb-rich-text-even pqb-rich-text-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline></svg>', de = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="3" x2="15" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="3" x2="15" y1="4" y2="4"></line><line class="pqb-rich-text-stroke" x1="9" x2="15" y1="9" y2="9"></line><polyline class="pqb-rich-text-fill pqb-rich-text-stroke" points="3 7 3 11 5 9 3 7"></polyline></svg>', ue = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="7" x2="13" y1="4" y2="4"></line><line class="pqb-rich-text-stroke" x1="5" x2="11" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="8" x2="10" y1="14" y2="4"></line></svg>', pe = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="7" x2="11" y1="7" y2="11"></line><path class="pqb-rich-text-even pqb-rich-text-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"></path><path class="pqb-rich-text-even pqb-rich-text-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"></path></svg>', fe = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="6" x2="15" y1="4" y2="4"></line><line class="pqb-rich-text-stroke" x1="6" x2="15" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="6" x2="15" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="3" x2="3" y1="4" y2="4"></line><line class="pqb-rich-text-stroke" x1="3" x2="3" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="3" x2="3" y1="14" y2="14"></line></svg>', be = '<svg class="" viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="9" x2="15" y1="4" y2="4"></line><polyline class="pqb-rich-text-stroke" points="3 4 4 5 6 3"></polyline><line class="pqb-rich-text-stroke" x1="9" x2="15" y1="14" y2="14"></line><polyline class="pqb-rich-text-stroke" points="3 14 4 15 6 13"></polyline><line class="pqb-rich-text-stroke" x1="9" x2="15" y1="9" y2="9"></line><polyline class="pqb-rich-text-stroke" points="3 9 4 10 6 8"></polyline></svg>', xe = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="7" x2="15" y1="4" y2="4"></line><line class="pqb-rich-text-stroke" x1="7" x2="15" y1="9" y2="9"></line><line class="pqb-rich-text-stroke" x1="7" x2="15" y1="14" y2="14"></line><line class="pqb-rich-text-stroke pqb-rich-text-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"></line><path class="pqb-rich-text-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"></path><path class="pqb-rich-text-stroke pqb-rich-text-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"></path><path class="pqb-rich-text-stroke pqb-rich-text-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"></path></svg>', ge = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke" x1="3" x2="15" y1="14" y2="14"></line><line class="pqb-rich-text-stroke" x1="3" x2="15" y1="4" y2="4"></line><line class="pqb-rich-text-stroke" x1="9" x2="15" y1="9" y2="9"></line><polyline class="pqb-rich-text-stroke" points="5 7 5 11 3 9 5 7"></polyline></svg>', me = '<svg viewbox="0 0 18 18"><polygon class="pqb-rich-text-fill pqb-rich-text-stroke" points="12 10 14 12 16 10 12 10"></polygon><path class="pqb-rich-text-stroke" d="M9.91,13.91A4.6,4.6,0,0,1,9,14a5,5,0,1,1,5-5"></path></svg>', ye = '<svg viewbox="0 0 18 18"><line class="pqb-rich-text-stroke pqb-rich-text-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"></line><path class="pqb-rich-text-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"></path><path class="pqb-rich-text-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"></path></svg>', ve = '<svg viewbox="0 0 18 18"><path class="pqb-rich-text-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="pqb-rich-text-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>', ke = '<svg viewbox="0 0 18 18"><path class="pqb-rich-text-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="pqb-rich-text-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>', Ae = '<svg viewbox="0 0 18 18"><rect class="pqb-rich-text-stroke" height="12" width="12" x="3" y="3"></rect><rect class="pqb-rich-text-fill" height="2" width="3" x="5" y="5"></rect><rect class="pqb-rich-text-fill" height="2" width="4" x="9" y="5"></rect><g class="pqb-rich-text-fill pqb-rich-text-transparent"><rect height="2" width="3" x="5" y="8"></rect><rect height="2" width="4" x="9" y="8"></rect><rect height="2" width="3" x="5" y="11"></rect><rect height="2" width="4" x="9" y="11"></rect></g></svg>', we = '<svg viewbox="0 0 18 18"><path class="pqb-rich-text-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"></path><rect class="pqb-rich-text-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"></rect></svg>', qe = '<svg viewbox="0 0 18 18"><polygon class="pqb-rich-text-fill pqb-rich-text-stroke" points="6 10 4 12 2 10 6 10"></polygon><path class="pqb-rich-text-stroke" d="M8.09,13.91A4.6,4.6,0,0,0,9,14,5,5,0,1,0,4,9"></path></svg>', Ee = '<svg viewbox="0 0 18 18"><rect class="pqb-rich-text-stroke" height="12" width="12" x="3" y="3"></rect><rect class="pqb-rich-text-fill" height="12" width="1" x="5" y="3"></rect><rect class="pqb-rich-text-fill" height="12" width="1" x="12" y="3"></rect><rect class="pqb-rich-text-fill" height="2" width="8" x="5" y="8"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="5"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="7"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="10"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="3" y="12"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="5"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="7"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="10"></rect><rect class="pqb-rich-text-fill" height="1" width="3" x="12" y="12"></rect></svg>', R = {
|
|
1380
957
|
align: {
|
|
1381
958
|
"": Wt,
|
|
1382
959
|
// left: alignLeftIcon,
|
|
1383
|
-
center:
|
|
960
|
+
center: _t,
|
|
1384
961
|
right: Xt,
|
|
1385
962
|
justify: Gt
|
|
1386
963
|
},
|
|
@@ -1388,8 +965,8 @@ const jt = `<svg viewbox="0 0 18 18">
|
|
|
1388
965
|
blockquote: Qt,
|
|
1389
966
|
bold: Jt,
|
|
1390
967
|
clean: Yt,
|
|
1391
|
-
code:
|
|
1392
|
-
"code-block":
|
|
968
|
+
code: _,
|
|
969
|
+
"code-block": _,
|
|
1393
970
|
color: te,
|
|
1394
971
|
direction: {
|
|
1395
972
|
"": ee,
|
|
@@ -1398,12 +975,12 @@ const jt = `<svg viewbox="0 0 18 18">
|
|
|
1398
975
|
},
|
|
1399
976
|
formula: ie,
|
|
1400
977
|
header: {
|
|
1401
|
-
1:
|
|
1402
|
-
2:
|
|
1403
|
-
3:
|
|
1404
|
-
4:
|
|
1405
|
-
5:
|
|
1406
|
-
6:
|
|
978
|
+
1: ce,
|
|
979
|
+
2: re,
|
|
980
|
+
3: le,
|
|
981
|
+
4: oe,
|
|
982
|
+
5: ae,
|
|
983
|
+
6: ne
|
|
1407
984
|
},
|
|
1408
985
|
italic: ue,
|
|
1409
986
|
image: he,
|
|
@@ -1427,72 +1004,44 @@ const jt = `<svg viewbox="0 0 18 18">
|
|
|
1427
1004
|
video: Ee,
|
|
1428
1005
|
redo: me,
|
|
1429
1006
|
undo: qe
|
|
1430
|
-
},
|
|
1431
|
-
const { overflowY: t } = getComputedStyle(
|
|
1007
|
+
}, Se = (l) => {
|
|
1008
|
+
const { overflowY: t } = getComputedStyle(l, null);
|
|
1432
1009
|
return t !== "visible" && t !== "clip";
|
|
1433
1010
|
};
|
|
1434
|
-
class
|
|
1011
|
+
class nt {
|
|
1012
|
+
static {
|
|
1013
|
+
this.TEMPLATE = "";
|
|
1014
|
+
}
|
|
1435
1015
|
constructor(t, e) {
|
|
1436
|
-
this.rich = t, this.
|
|
1016
|
+
this.rich = t, this.root = t.addContainer(
|
|
1017
|
+
`${o}-tooltip`
|
|
1018
|
+
), this.root.innerHTML = this.constructor.TEMPLATE;
|
|
1019
|
+
const s = getComputedStyle(this.root).position === "fixed";
|
|
1020
|
+
this.boundsContainer = document.body, s ? this.boundsContainer = document.body : this.boundsContainer = e || this.boundsContainer, Se(this.rich.root) && this.rich.root.addEventListener("scroll", () => {
|
|
1437
1021
|
this.root.style.marginTop = `${-1 * this.rich.root.scrollTop}px`;
|
|
1438
1022
|
}), this.hide();
|
|
1439
1023
|
}
|
|
1440
1024
|
hide() {
|
|
1441
|
-
this.root.classList.add(`${
|
|
1025
|
+
this.root.classList.add(`${o}-hidden`);
|
|
1442
1026
|
}
|
|
1443
1027
|
position(t) {
|
|
1444
|
-
const e = t.left + t.width / 2 - this.root.offsetWidth / 2,
|
|
1445
|
-
this.root.style.left = `${
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
this.root.style.top = `${s - h}px`, this.root.classList.add(`${l}-flip`);
|
|
1028
|
+
const e = this.rich.container.getBoundingClientRect(), s = this.boundsContainer.getBoundingClientRect(), i = this.root.getBoundingClientRect(), r = t.left + t.width / 2 - this.root.offsetWidth / 2 + e.left, a = t.bottom + this.rich.root.scrollTop + e.top;
|
|
1029
|
+
this.root.style.left = `${r}px`, this.root.style.top = `${a}px`, this.root.classList.remove(`${o}-flip`);
|
|
1030
|
+
let c = 0;
|
|
1031
|
+
if (i.right > s.right && (c = s.right - i.right, this.root.style.left = `${r + c}px`), i.left < s.left && (c = s.left - i.left, this.root.style.left = `${r + c}px`), i.bottom > s.bottom) {
|
|
1032
|
+
const u = i.bottom - i.top, x = t.bottom - t.top + u;
|
|
1033
|
+
this.root.style.top = `${a - x}px`, this.root.classList.add(`${o}-flip`);
|
|
1451
1034
|
}
|
|
1452
|
-
return
|
|
1035
|
+
return c;
|
|
1453
1036
|
}
|
|
1454
1037
|
show() {
|
|
1455
|
-
this.root.classList.remove(`${
|
|
1038
|
+
this.root.classList.remove(`${o}-editing`), this.root.classList.remove(`${o}-hidden`);
|
|
1039
|
+
}
|
|
1040
|
+
edit(t = "link", e = null) {
|
|
1456
1041
|
}
|
|
1457
1042
|
}
|
|
1458
|
-
const
|
|
1459
|
-
|
|
1460
|
-
"#e60000",
|
|
1461
|
-
"#ff9900",
|
|
1462
|
-
"#ffff00",
|
|
1463
|
-
"#008a00",
|
|
1464
|
-
"#0066cc",
|
|
1465
|
-
"#9933ff",
|
|
1466
|
-
"#ffffff",
|
|
1467
|
-
"#facccc",
|
|
1468
|
-
"#ffebcc",
|
|
1469
|
-
"#ffffcc",
|
|
1470
|
-
"#cce8cc",
|
|
1471
|
-
"#cce0f5",
|
|
1472
|
-
"#ebd6ff",
|
|
1473
|
-
"#bbbbbb",
|
|
1474
|
-
"#f06666",
|
|
1475
|
-
"#ffc266",
|
|
1476
|
-
"#ffff66",
|
|
1477
|
-
"#66b966",
|
|
1478
|
-
"#66a3e0",
|
|
1479
|
-
"#c285ff",
|
|
1480
|
-
"#888888",
|
|
1481
|
-
"#a10000",
|
|
1482
|
-
"#b26b00",
|
|
1483
|
-
"#b2b200",
|
|
1484
|
-
"#006100",
|
|
1485
|
-
"#0047b2",
|
|
1486
|
-
"#6b24b2",
|
|
1487
|
-
"#444444",
|
|
1488
|
-
"#5c0000",
|
|
1489
|
-
"#663d00",
|
|
1490
|
-
"#666600",
|
|
1491
|
-
"#003700",
|
|
1492
|
-
"#002966",
|
|
1493
|
-
"#3d1466"
|
|
1494
|
-
], Te = [!1, "serif", "monospace"], Ie = ["1", "2", "3", !1], Ce = ["small", !1, "large", "huge"];
|
|
1495
|
-
class T extends Q {
|
|
1043
|
+
const Le = [!1, "center", "right", "justify"], Ne = [].concat(Tt.colors.map((l) => l.value)).concat(Object.values(Nt)).map((l) => l.toLowerCase()), Te = [!1, "serif", "monospace"], Ie = ["1", "2", "3", !1], Ce = ["small", !1, "large", "huge"];
|
|
1044
|
+
class U extends K {
|
|
1496
1045
|
constructor(t, e) {
|
|
1497
1046
|
super(t, e);
|
|
1498
1047
|
const s = (i) => {
|
|
@@ -1500,58 +1049,60 @@ class T extends Q {
|
|
|
1500
1049
|
document.body.removeEventListener("click", s);
|
|
1501
1050
|
return;
|
|
1502
1051
|
}
|
|
1503
|
-
this.tooltip != null && !this.tooltip.root.contains(i.target) && document.activeElement !== this.tooltip.textbox && !this.rich.hasFocus() && this.tooltip.hide(), this.pickers != null && this.pickers.forEach((
|
|
1504
|
-
|
|
1052
|
+
this.tooltip != null && !this.tooltip.root.contains(i.target) && document.activeElement !== this.tooltip.textbox && !this.rich.hasFocus() && this.tooltip.hide(), this.pickers != null && this.pickers.forEach((r) => {
|
|
1053
|
+
r.container.contains(i.target) || r.close();
|
|
1505
1054
|
});
|
|
1506
1055
|
};
|
|
1507
1056
|
t.emitter.listenDOM("click", document.body, s);
|
|
1508
1057
|
}
|
|
1058
|
+
extendToolbar(t) {
|
|
1059
|
+
}
|
|
1509
1060
|
addModule(t) {
|
|
1510
1061
|
const e = super.addModule(t);
|
|
1511
1062
|
return t === "toolbar" && this.extendToolbar(e), e;
|
|
1512
1063
|
}
|
|
1513
1064
|
buildButtons(t, e) {
|
|
1514
1065
|
Array.from(t).forEach((s) => {
|
|
1515
|
-
(s.getAttribute("class") || "").split(/\s+/).forEach((
|
|
1516
|
-
if (
|
|
1517
|
-
if (
|
|
1518
|
-
s.innerHTML = e[
|
|
1519
|
-
else if (typeof e[
|
|
1520
|
-
s.innerHTML = e[
|
|
1066
|
+
(s.getAttribute("class") || "").split(/\s+/).forEach((r) => {
|
|
1067
|
+
if (r.startsWith(`${o}-`) && (r = r.slice(`${o}-`.length), e[r] != null))
|
|
1068
|
+
if (r === "direction")
|
|
1069
|
+
s.innerHTML = e[r][""] + e[r].rtl;
|
|
1070
|
+
else if (typeof e[r] == "string")
|
|
1071
|
+
s.innerHTML = e[r];
|
|
1521
1072
|
else {
|
|
1522
|
-
const
|
|
1523
|
-
|
|
1073
|
+
const a = s.value || "";
|
|
1074
|
+
a != null && e[r][a] && (s.innerHTML = e[r][a]);
|
|
1524
1075
|
}
|
|
1525
1076
|
});
|
|
1526
1077
|
});
|
|
1527
1078
|
}
|
|
1528
1079
|
buildPickers(t, e) {
|
|
1529
1080
|
this.pickers = Array.from(t).map((i) => {
|
|
1530
|
-
if (i.classList.contains(`${
|
|
1531
|
-
return new
|
|
1081
|
+
if (i.classList.contains(`${o}-align`) && (i.querySelector("option") == null && y(i, Le), typeof e.align == "object"))
|
|
1082
|
+
return new at(i, e.align);
|
|
1532
1083
|
if (i.classList.contains(
|
|
1533
|
-
`${
|
|
1534
|
-
) || i.classList.contains(`${
|
|
1535
|
-
const
|
|
1536
|
-
`${
|
|
1084
|
+
`${o}-background`
|
|
1085
|
+
) || i.classList.contains(`${o}-color`)) {
|
|
1086
|
+
const r = i.classList.contains(
|
|
1087
|
+
`${o}-background`
|
|
1537
1088
|
) ? "background" : "color";
|
|
1538
|
-
return i.querySelector("option") == null &&
|
|
1089
|
+
return i.querySelector("option") == null && y(
|
|
1539
1090
|
i,
|
|
1540
1091
|
Ne,
|
|
1541
|
-
|
|
1542
|
-
), new ot(i, e[
|
|
1092
|
+
r === "background" ? "#ffffff" : "#000000"
|
|
1093
|
+
), new ot(i, e[r]);
|
|
1543
1094
|
}
|
|
1544
|
-
return i.querySelector("option") == null && (i.classList.contains(`${
|
|
1095
|
+
return i.querySelector("option") == null && (i.classList.contains(`${o}-font`) ? y(i, Te) : i.classList.contains(`${o}-header`) ? y(i, Ie) : i.classList.contains(`${o}-size`) && y(i, Ce)), new I(i);
|
|
1545
1096
|
});
|
|
1546
1097
|
const s = () => {
|
|
1547
1098
|
this.pickers.forEach((i) => {
|
|
1548
1099
|
i.update();
|
|
1549
1100
|
});
|
|
1550
1101
|
};
|
|
1551
|
-
this.rich.on(
|
|
1102
|
+
this.rich.on(p.events.EDITOR_CHANGE, s);
|
|
1552
1103
|
}
|
|
1553
1104
|
}
|
|
1554
|
-
|
|
1105
|
+
U.DEFAULTS = it({}, K.DEFAULTS, {
|
|
1555
1106
|
modules: {
|
|
1556
1107
|
toolbar: {
|
|
1557
1108
|
handlers: {
|
|
@@ -1559,16 +1110,16 @@ T.DEFAULTS = O({}, Q.DEFAULTS, {
|
|
|
1559
1110
|
this.rich.theme.tooltip.edit("formula");
|
|
1560
1111
|
},
|
|
1561
1112
|
image() {
|
|
1562
|
-
let
|
|
1563
|
-
`input.${
|
|
1113
|
+
let l = this.container.querySelector(
|
|
1114
|
+
`input.${o}-image[type=file]`
|
|
1564
1115
|
);
|
|
1565
|
-
|
|
1116
|
+
l == null && (l = document.createElement("input"), l.setAttribute("type", "file"), l.setAttribute(
|
|
1566
1117
|
"accept",
|
|
1567
1118
|
this.rich.uploader.options.mimetypes.join(", ")
|
|
1568
|
-
),
|
|
1119
|
+
), l.classList.add(`${o}-image`), l.addEventListener("change", () => {
|
|
1569
1120
|
const t = this.rich.getSelection(!0);
|
|
1570
|
-
this.rich.uploader.upload(t,
|
|
1571
|
-
}), this.container.appendChild(
|
|
1121
|
+
this.rich.uploader.upload(t, l.files), l.value = "";
|
|
1122
|
+
}), this.container.appendChild(l)), l.click();
|
|
1572
1123
|
},
|
|
1573
1124
|
video() {
|
|
1574
1125
|
this.rich.theme.tooltip.edit("video");
|
|
@@ -1577,7 +1128,10 @@ T.DEFAULTS = O({}, Q.DEFAULTS, {
|
|
|
1577
1128
|
}
|
|
1578
1129
|
}
|
|
1579
1130
|
});
|
|
1580
|
-
class
|
|
1131
|
+
class $e extends nt {
|
|
1132
|
+
static {
|
|
1133
|
+
this.TEMPLATE = "";
|
|
1134
|
+
}
|
|
1581
1135
|
constructor(t, e) {
|
|
1582
1136
|
super(t, e), this.textbox = this.root.querySelector('input[type="text"]'), this.listen();
|
|
1583
1137
|
}
|
|
@@ -1590,9 +1144,11 @@ class ht extends at {
|
|
|
1590
1144
|
this.hide(), this.restoreFocus();
|
|
1591
1145
|
}
|
|
1592
1146
|
edit(t = "link", e = null) {
|
|
1593
|
-
if (this.root.classList.remove(`${
|
|
1147
|
+
if (super.edit(t, e), this.root.classList.remove(`${o}-hidden`), this.root.classList.add(`${o}-editing`), this.textbox == null) return;
|
|
1594
1148
|
e != null ? this.textbox.value = e : t !== this.root.getAttribute("data-mode") && (this.textbox.value = "");
|
|
1595
|
-
const s = this.rich.getBounds(
|
|
1149
|
+
const s = this.rich.getBounds(
|
|
1150
|
+
this.rich.selection.savedRange
|
|
1151
|
+
);
|
|
1596
1152
|
s != null && this.position(s), this.textbox.select(), this.textbox.setAttribute(
|
|
1597
1153
|
"placeholder",
|
|
1598
1154
|
this.textbox.getAttribute(`data-${t}`) || ""
|
|
@@ -1610,13 +1166,12 @@ class ht extends at {
|
|
|
1610
1166
|
this.linkRange,
|
|
1611
1167
|
"link",
|
|
1612
1168
|
t,
|
|
1613
|
-
|
|
1614
|
-
), delete this.linkRange) : (this.restoreFocus(), this.rich.format("link", t,
|
|
1169
|
+
p.sources.USER
|
|
1170
|
+
), delete this.linkRange) : (this.restoreFocus(), this.rich.format("link", t, p.sources.USER)), this.rich.root.scrollTop = e;
|
|
1615
1171
|
break;
|
|
1616
1172
|
}
|
|
1617
1173
|
case "video":
|
|
1618
|
-
t =
|
|
1619
|
-
// eslint-disable-next-line no-fallthrough
|
|
1174
|
+
t = t;
|
|
1620
1175
|
case "formula": {
|
|
1621
1176
|
if (!t) break;
|
|
1622
1177
|
const e = this.rich.getSelection(!0);
|
|
@@ -1626,8 +1181,8 @@ class ht extends at {
|
|
|
1626
1181
|
s,
|
|
1627
1182
|
this.root.getAttribute("data-mode"),
|
|
1628
1183
|
t,
|
|
1629
|
-
|
|
1630
|
-
), this.root.getAttribute("data-mode") === "formula" && this.rich.insertText(s + 1, " ",
|
|
1184
|
+
p.sources.USER
|
|
1185
|
+
), this.root.getAttribute("data-mode") === "formula" && this.rich.insertText(s + 1, " ", p.sources.USER), this.rich.setSelection(s + 2, p.sources.USER);
|
|
1631
1186
|
}
|
|
1632
1187
|
break;
|
|
1633
1188
|
}
|
|
@@ -1635,138 +1190,52 @@ class ht extends at {
|
|
|
1635
1190
|
this.textbox.value = "", this.hide();
|
|
1636
1191
|
}
|
|
1637
1192
|
}
|
|
1638
|
-
function
|
|
1639
|
-
let t = r.match(
|
|
1640
|
-
/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/
|
|
1641
|
-
) || r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
|
|
1642
|
-
return t ? `${t[1] || "https"}://www.youtube.com/embed/${t[2]}?showinfo=0` : (t = r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) ? `${t[1] || "https"}://player.vimeo.com/video/${t[2]}/` : r;
|
|
1643
|
-
}
|
|
1644
|
-
function k(r, t, e = !1) {
|
|
1193
|
+
function y(l, t, e = !1) {
|
|
1645
1194
|
t.forEach((s) => {
|
|
1646
1195
|
const i = document.createElement("option");
|
|
1647
|
-
s === e ? i.setAttribute("selected", "selected") : i.setAttribute("value", String(s)),
|
|
1196
|
+
s === e ? i.setAttribute("selected", "selected") : i.setAttribute("value", String(s)), l.appendChild(i);
|
|
1648
1197
|
});
|
|
1649
1198
|
}
|
|
1650
1199
|
const Re = [
|
|
1651
|
-
["bold", "italic", "link"],
|
|
1652
|
-
[{ header: 1 }, { header: 2 }, "blockquote"]
|
|
1653
|
-
];
|
|
1654
|
-
class Me extends ht {
|
|
1655
|
-
static {
|
|
1656
|
-
this.TEMPLATE = [
|
|
1657
|
-
`<span class="${l}-tooltip-arrow"></span>`,
|
|
1658
|
-
`<div class="${l}-tooltip-editor">`,
|
|
1659
|
-
'<input type="text" data-formula="e=mc^2" data-link="https://xxx.com" data-video="嵌入URL">',
|
|
1660
|
-
`<a class="${l}-close"></a>`,
|
|
1661
|
-
"</div>"
|
|
1662
|
-
].join("");
|
|
1663
|
-
}
|
|
1664
|
-
constructor(t, e) {
|
|
1665
|
-
super(t, e), this.rich.on(
|
|
1666
|
-
d.events.EDITOR_CHANGE,
|
|
1667
|
-
(s, i, n, o) => {
|
|
1668
|
-
if (s === d.events.SELECTION_CHANGE)
|
|
1669
|
-
if (i != null && i.length > 0 && o === d.sources.USER) {
|
|
1670
|
-
this.show(), this.root.style.left = "0px", this.root.style.width = "", this.root.style.width = `${this.root.offsetWidth}px`;
|
|
1671
|
-
const a = this.rich.getLines(i.index, i.length);
|
|
1672
|
-
if (a.length === 1) {
|
|
1673
|
-
const h = this.rich.getBounds(i);
|
|
1674
|
-
h != null && this.position(h);
|
|
1675
|
-
} else {
|
|
1676
|
-
const h = a[a.length - 1], b = this.rich.getIndex(h), v = Math.min(
|
|
1677
|
-
h.length() - 1,
|
|
1678
|
-
i.index + i.length - b
|
|
1679
|
-
), m = this.rich.getBounds(new J(b, v));
|
|
1680
|
-
m != null && this.position(m);
|
|
1681
|
-
}
|
|
1682
|
-
} else document.activeElement !== this.textbox && this.rich.hasFocus() && this.hide();
|
|
1683
|
-
}
|
|
1684
|
-
);
|
|
1685
|
-
}
|
|
1686
|
-
listen() {
|
|
1687
|
-
super.listen(), this.root.querySelector(`.${l}-close`).addEventListener("click", () => {
|
|
1688
|
-
this.root.classList.remove(`${l}-editing`);
|
|
1689
|
-
}), this.rich.on(d.events.SCROLL_OPTIMIZE, () => {
|
|
1690
|
-
setTimeout(() => {
|
|
1691
|
-
if (this.root.classList.contains(`${l}-hidden`))
|
|
1692
|
-
return;
|
|
1693
|
-
const t = this.rich.getSelection();
|
|
1694
|
-
if (t != null) {
|
|
1695
|
-
const e = this.rich.getBounds(t);
|
|
1696
|
-
e != null && this.position(e);
|
|
1697
|
-
}
|
|
1698
|
-
}, 1);
|
|
1699
|
-
});
|
|
1700
|
-
}
|
|
1701
|
-
cancel() {
|
|
1702
|
-
this.show();
|
|
1703
|
-
}
|
|
1704
|
-
position(t) {
|
|
1705
|
-
const e = super.position(t), s = this.root.querySelector(
|
|
1706
|
-
`.${l}-tooltip-arrow`
|
|
1707
|
-
);
|
|
1708
|
-
return s.style.marginLeft = "", e !== 0 && (s.style.marginLeft = `${-1 * e - s.offsetWidth / 2}px`), e;
|
|
1709
|
-
}
|
|
1710
|
-
}
|
|
1711
|
-
class dt extends T {
|
|
1712
|
-
constructor(t, e) {
|
|
1713
|
-
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = Re), super(t, e), this.rich.container.classList.add(`${l}-bubble`);
|
|
1714
|
-
}
|
|
1715
|
-
extendToolbar(t) {
|
|
1716
|
-
this.tooltip = new Me(this.rich, this.options.bounds), t.container != null && (this.tooltip.root.appendChild(t.container), this.buildButtons(t.container.querySelectorAll("button"), E), this.buildPickers(t.container.querySelectorAll("select"), E));
|
|
1717
|
-
}
|
|
1718
|
-
}
|
|
1719
|
-
dt.DEFAULTS = O({}, T.DEFAULTS, {
|
|
1720
|
-
modules: {
|
|
1721
|
-
toolbar: {
|
|
1722
|
-
handlers: {
|
|
1723
|
-
link(r) {
|
|
1724
|
-
r ? this.rich.theme.tooltip.edit() : this.rich.format("link", !1, c.sources.USER);
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
});
|
|
1730
|
-
const He = [
|
|
1731
1200
|
[{ header: ["1", "2", "3", !1] }],
|
|
1732
1201
|
["bold", "italic", "underline", "link"],
|
|
1733
1202
|
[{ list: "ordered" }, { list: "bullet" }],
|
|
1734
1203
|
["clean"]
|
|
1735
1204
|
];
|
|
1736
|
-
class
|
|
1205
|
+
class Me extends $e {
|
|
1737
1206
|
constructor() {
|
|
1738
|
-
super(...arguments), this.preview = this.root.querySelector(`a.${
|
|
1207
|
+
super(...arguments), this.preview = this.root.querySelector(`a.${o}-preview`);
|
|
1739
1208
|
}
|
|
1740
1209
|
static {
|
|
1741
1210
|
this.TEMPLATE = [
|
|
1742
|
-
`<a class="${
|
|
1211
|
+
`<a class="${o}-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>`,
|
|
1743
1212
|
'<input type="text" data-formula="e=mc^2" data-link="https://xxx.com" data-video="嵌入URL">',
|
|
1744
|
-
`<a class="${
|
|
1745
|
-
`<a class="${
|
|
1213
|
+
`<a class="${o}-action"></a>`,
|
|
1214
|
+
`<a class="${o}-remove"></a>`
|
|
1746
1215
|
].join("");
|
|
1747
1216
|
}
|
|
1748
1217
|
listen() {
|
|
1749
|
-
super.listen(), this.root.querySelector(`a.${
|
|
1750
|
-
this.root.classList.contains(`${
|
|
1751
|
-
}), this.root.querySelector(`a.${
|
|
1218
|
+
super.listen(), this.root.querySelector(`a.${o}-action`).addEventListener("click", (t) => {
|
|
1219
|
+
this.root.classList.contains(`${o}-editing`) ? this.save() : this.edit("link", this.preview.textContent), t.preventDefault();
|
|
1220
|
+
}), this.root.querySelector(`a.${o}-remove`).addEventListener("click", (t) => {
|
|
1752
1221
|
if (this.linkRange != null) {
|
|
1753
1222
|
const e = this.linkRange;
|
|
1754
|
-
this.restoreFocus(), this.rich.formatText(e, "link", !1,
|
|
1223
|
+
this.restoreFocus(), this.rich.formatText(e, "link", !1, p.sources.USER), delete this.linkRange;
|
|
1755
1224
|
}
|
|
1756
1225
|
t.preventDefault(), this.hide();
|
|
1757
|
-
}), this.rich.on(
|
|
1226
|
+
}), this.rich.on(p.events.SELECTION_CHANGE, (t, e, s) => {
|
|
1758
1227
|
if (t != null) {
|
|
1759
|
-
if (t.length === 0 && s ===
|
|
1760
|
-
const [i,
|
|
1761
|
-
|
|
1228
|
+
if (t.length === 0 && s === p.sources.USER) {
|
|
1229
|
+
const [i, r] = this.rich.scroll.descendant(
|
|
1230
|
+
S,
|
|
1762
1231
|
t.index
|
|
1763
1232
|
);
|
|
1764
1233
|
if (i != null) {
|
|
1765
|
-
this.linkRange = new
|
|
1766
|
-
const
|
|
1767
|
-
this.preview.textContent =
|
|
1768
|
-
const
|
|
1769
|
-
|
|
1234
|
+
this.linkRange = new yt(t.index - r, i.length());
|
|
1235
|
+
const a = S.formats(i.domNode);
|
|
1236
|
+
this.preview.textContent = a, this.preview.setAttribute("href", a), this.show();
|
|
1237
|
+
const c = this.rich.getBounds(this.linkRange);
|
|
1238
|
+
c != null && this.position(c);
|
|
1770
1239
|
return;
|
|
1771
1240
|
}
|
|
1772
1241
|
} else
|
|
@@ -1779,25 +1248,27 @@ class Be extends ht {
|
|
|
1779
1248
|
super.show(), this.root.removeAttribute("data-mode");
|
|
1780
1249
|
}
|
|
1781
1250
|
}
|
|
1782
|
-
class
|
|
1251
|
+
class ct extends U {
|
|
1783
1252
|
constructor(t, e) {
|
|
1784
|
-
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container =
|
|
1253
|
+
e.modules.toolbar != null && e.modules.toolbar.container == null && (e.modules.toolbar.container = Re), super(t, e);
|
|
1785
1254
|
}
|
|
1786
1255
|
extendToolbar(t) {
|
|
1787
|
-
|
|
1256
|
+
super.extendToolbar(t);
|
|
1257
|
+
const e = t.container;
|
|
1258
|
+
e && (this.buildButtons(e.querySelectorAll("button"), R), this.buildPickers(e.querySelectorAll("select"), R), this.tooltip = new Me(this.rich, this.options.bounds), e.querySelector(`.${o}-link`) && this.rich.keyboard.addBinding(
|
|
1788
1259
|
{ key: "k", shortKey: !0 },
|
|
1789
|
-
(
|
|
1790
|
-
t.handlers.link.call(t, !
|
|
1260
|
+
(s, i) => {
|
|
1261
|
+
t.handlers.link.call(t, !i.format.link);
|
|
1791
1262
|
}
|
|
1792
1263
|
));
|
|
1793
1264
|
}
|
|
1794
1265
|
}
|
|
1795
|
-
|
|
1266
|
+
ct.DEFAULTS = it({}, U.DEFAULTS, {
|
|
1796
1267
|
modules: {
|
|
1797
1268
|
toolbar: {
|
|
1798
1269
|
handlers: {
|
|
1799
|
-
link(
|
|
1800
|
-
if (
|
|
1270
|
+
link(l) {
|
|
1271
|
+
if (l) {
|
|
1801
1272
|
const t = this.rich.getSelection();
|
|
1802
1273
|
if (t == null || t.length === 0) return;
|
|
1803
1274
|
let e = this.rich.getText(t);
|
|
@@ -1805,73 +1276,72 @@ ut.DEFAULTS = O({}, T.DEFAULTS, {
|
|
|
1805
1276
|
const { tooltip: s } = this.rich.theme;
|
|
1806
1277
|
s.edit("link", e);
|
|
1807
1278
|
} else
|
|
1808
|
-
this.rich.format("link", !1,
|
|
1279
|
+
this.rich.format("link", !1, n.sources.USER);
|
|
1809
1280
|
}
|
|
1810
1281
|
}
|
|
1811
1282
|
}
|
|
1812
1283
|
}
|
|
1813
1284
|
});
|
|
1814
|
-
|
|
1285
|
+
n.register(
|
|
1815
1286
|
{
|
|
1816
|
-
"attributors/attribute/direction":
|
|
1817
|
-
"attributors/class/align":
|
|
1818
|
-
"attributors/class/background":
|
|
1819
|
-
"attributors/class/color":
|
|
1820
|
-
"attributors/class/direction":
|
|
1821
|
-
"attributors/class/font":
|
|
1822
|
-
"attributors/class/size":
|
|
1823
|
-
"attributors/style/align":
|
|
1824
|
-
"attributors/style/background":
|
|
1825
|
-
"attributors/style/color":
|
|
1826
|
-
"attributors/style/direction":
|
|
1827
|
-
"attributors/style/font":
|
|
1828
|
-
"attributors/style/size":
|
|
1287
|
+
"attributors/attribute/direction": St,
|
|
1288
|
+
"attributors/class/align": st,
|
|
1289
|
+
"attributors/class/background": Et,
|
|
1290
|
+
"attributors/class/color": qt,
|
|
1291
|
+
"attributors/class/direction": et,
|
|
1292
|
+
"attributors/class/font": tt,
|
|
1293
|
+
"attributors/class/size": Y,
|
|
1294
|
+
"attributors/style/align": wt,
|
|
1295
|
+
"attributors/style/background": J,
|
|
1296
|
+
"attributors/style/color": Q,
|
|
1297
|
+
"attributors/style/direction": At,
|
|
1298
|
+
"attributors/style/font": kt,
|
|
1299
|
+
"attributors/style/size": vt
|
|
1829
1300
|
},
|
|
1830
1301
|
!0
|
|
1831
1302
|
);
|
|
1832
|
-
|
|
1303
|
+
n.register(
|
|
1833
1304
|
{
|
|
1834
|
-
"formats/align":
|
|
1835
|
-
"formats/direction":
|
|
1305
|
+
"formats/align": st,
|
|
1306
|
+
"formats/direction": et,
|
|
1836
1307
|
"formats/indent": Ct,
|
|
1837
|
-
"formats/background":
|
|
1838
|
-
"formats/color":
|
|
1839
|
-
"formats/font":
|
|
1840
|
-
"formats/size":
|
|
1308
|
+
"formats/background": J,
|
|
1309
|
+
"formats/color": Q,
|
|
1310
|
+
"formats/font": tt,
|
|
1311
|
+
"formats/size": Y,
|
|
1841
1312
|
"formats/blockquote": $t,
|
|
1842
|
-
"formats/code-block":
|
|
1313
|
+
"formats/code-block": m,
|
|
1843
1314
|
"formats/header": Rt,
|
|
1844
|
-
"formats/list":
|
|
1845
|
-
"formats/bold":
|
|
1846
|
-
"formats/code":
|
|
1315
|
+
"formats/list": E,
|
|
1316
|
+
"formats/bold": B,
|
|
1317
|
+
"formats/code": Lt,
|
|
1847
1318
|
"formats/italic": Mt,
|
|
1848
|
-
"formats/link":
|
|
1319
|
+
"formats/link": S,
|
|
1849
1320
|
"formats/script": Ht,
|
|
1850
1321
|
"formats/strike": Bt,
|
|
1851
1322
|
"formats/underline": Ot,
|
|
1852
|
-
"formats/formula":
|
|
1853
|
-
"formats/image":
|
|
1323
|
+
"formats/formula": Vt,
|
|
1324
|
+
"formats/image": Ut,
|
|
1854
1325
|
"formats/video": Zt,
|
|
1855
1326
|
"modules/syntax": lt,
|
|
1856
|
-
"modules/table":
|
|
1857
|
-
"modules/toolbar":
|
|
1858
|
-
"themes/
|
|
1859
|
-
"
|
|
1860
|
-
"ui/
|
|
1861
|
-
"ui/picker":
|
|
1862
|
-
"ui/icon-picker": ct,
|
|
1327
|
+
"modules/table": Pt,
|
|
1328
|
+
"modules/toolbar": V,
|
|
1329
|
+
"themes/pqb": ct,
|
|
1330
|
+
"ui/icons": R,
|
|
1331
|
+
"ui/picker": I,
|
|
1332
|
+
"ui/icon-picker": at,
|
|
1863
1333
|
"ui/color-picker": ot,
|
|
1864
|
-
"ui/tooltip":
|
|
1334
|
+
"ui/tooltip": nt
|
|
1865
1335
|
},
|
|
1866
1336
|
!0
|
|
1867
1337
|
);
|
|
1868
1338
|
export {
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1339
|
+
De as AttributeMap,
|
|
1340
|
+
A as Delta,
|
|
1341
|
+
H as Module,
|
|
1342
|
+
Pe as Op,
|
|
1343
|
+
Fe as OpIterator,
|
|
1344
|
+
ze as Parchment,
|
|
1345
|
+
yt as Range,
|
|
1346
|
+
n as default
|
|
1877
1347
|
};
|