@stll/folio-vue 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ListButtons-3UeVXRAK.cjs +4 -0
- package/dist/ListButtons-CDkmhg3v.js +3612 -0
- package/dist/{PageSetupDialog-DsjAfJy0.js → PageSetupDialog-Djs8aW5A.js} +1726 -851
- package/dist/PageSetupDialog-GGWMpoe-.cjs +15 -0
- package/dist/TablePropertiesDialog-B399kZgL.js +901 -0
- package/dist/TablePropertiesDialog-DYbjwevC.cjs +1 -0
- package/dist/components/DocxEditor/pagedEditorRef.d.ts +9 -4
- package/dist/components/DocxEditor/types.d.ts +23 -1
- package/dist/components/tableStylePresets.d.ts +2 -6
- package/dist/composables/useOutlineSidebar.d.ts +1 -0
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +2 -2
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.js +1279 -1130
- package/dist/ui/folio-ui.d.ts +120 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +8 -0
- package/dist/ui.js +98 -98
- package/dist/utils/pageText.d.ts +14 -0
- package/package.json +1 -1
- package/dist/ListButtons-B498PX1d.js +0 -4256
- package/dist/ListButtons-D-zMJ7rl.cjs +0 -4
- package/dist/PageSetupDialog-CGBaBVzo.cjs +0 -15
- package/dist/TablePropertiesDialog-A-1Pm1f9.cjs +0 -1
- package/dist/TablePropertiesDialog-PyXEJC_o.js +0 -887
|
@@ -1,49 +1,249 @@
|
|
|
1
|
-
import { Fragment as e,
|
|
2
|
-
import {
|
|
3
|
-
import { getFolioMessages as
|
|
4
|
-
import {
|
|
1
|
+
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, mergeProps as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as g, openBlock as _, provide as v, ref as y, renderList as b, renderSlot as x, toDisplayString as S, toValue as C, unref as w, vModelCheckbox as T, vModelSelect as E, vModelText as D, watch as O, withCtx as k, withDirectives as A, withKeys as j, withModifiers as M } from "vue";
|
|
2
|
+
import { generateThemeTintShadeMatrix as N, resolveColor as P, resolveColorToHex as F, resolveHighlightColor as I } from "@stll/folio-core/utils/colorResolver";
|
|
3
|
+
import { getFolioMessages as L } from "@stll/folio-core/i18n/messages";
|
|
4
|
+
import { TextSelection as R } from "prosemirror-state";
|
|
5
|
+
import { TWIPS_PER_INCH as z } from "@stll/folio-core/utils/units";
|
|
5
6
|
//#region \0rolldown/runtime.js
|
|
6
|
-
var
|
|
7
|
+
var B = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), V = (e, t) => {
|
|
7
8
|
let n = e.__vccOpts || e;
|
|
8
9
|
for (let [e, r] of t) n[e] = r;
|
|
9
10
|
return n;
|
|
10
|
-
}
|
|
11
|
+
}, H = {
|
|
12
|
+
undo: ["M280-200v-80h284q63 0 109.5-40T720-420q0-60-46.5-100T564-560H312l104 104-56 56-200-200 200-200 56 56-104 104h252q97 0 166.5 63T800-420q0 94-69.5 157T564-200H280Z"],
|
|
13
|
+
redo: ["M396-200q-97 0-166.5-63T160-420q0-94 69.5-157T396-640h252L544-744l56-56 200 200-200 200-56-56 104-104H396q-63 0-109.5 40T240-420q0 60 46.5 100T396-280h284v80H396Z"],
|
|
14
|
+
print: ["M640-640v-120H320v120h-80v-200h480v200h-80Zm-480 80h640-640Zm560 100q17 0 28.5-11.5T760-500q0-17-11.5-28.5T720-540q-17 0-28.5 11.5T680-500q0 17 11.5 28.5T720-460Zm-80 260v-160H320v160h320Zm80 80H240v-160H80v-240q0-51 35-85.5t85-34.5h560q51 0 85.5 34.5T880-520v240H720v160Zm80-240v-160q0-17-11.5-28.5T760-560H200q-17 0-28.5 11.5T160-520v160h80v-80h480v80h80Z"],
|
|
15
|
+
file_download: ["M480-320 280-520l56-58 104 104v-326h80v326l104-104 56 58-200 200ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"],
|
|
16
|
+
file_upload: ["M440-320v-326L336-542l-56-58 200-200 200 200-56 58-104-104v326h-80ZM240-160q-33 0-56.5-23.5T160-240v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-160H240Z"],
|
|
17
|
+
format_bold: ["M272-200v-560h221q65 0 120 40t55 111q0 51-23 78.5T602-491q25 11 55.5 41t30.5 90q0 89-65 124.5T501-200H272Zm121-112h104q48 0 58.5-24.5T566-372q0-11-10.5-35.5T494-432H393v120Zm0-228h93q33 0 48-17t15-38q0-24-17-39t-44-15h-95v109Z"],
|
|
18
|
+
format_italic: ["M200-200v-100h160l120-360H320v-100h400v100H580L460-300h140v100H200Z"],
|
|
19
|
+
format_underlined: ["M200-120v-80h560v80H200Zm123-223q-56-63-56-167v-330h103v336q0 56 28 91t82 35q54 0 82-35t28-91v-336h103v330q0 104-56 167t-157 63q-101 0-157-63Z"],
|
|
20
|
+
strikethrough_s: ["M486-160q-76 0-135-45t-85-123l88-38q14 48 48.5 79t85.5 31q42 0 76-20t34-64q0-18-7-33t-19-27h112q5 14 7.5 28.5T694-340q0 86-61.5 133T486-160ZM80-480v-80h800v80H80Zm402-326q66 0 115.5 32.5T674-674l-88 39q-9-29-33.5-52T484-710q-41 0-68 18.5T386-640h-96q2-69 54.5-117.5T482-806Z"],
|
|
21
|
+
superscript: ["M760-600v-80q0-17 11.5-28.5T800-720h80v-40H760v-40h120q17 0 28.5 11.5T920-760v40q0 17-11.5 28.5T880-680h-80v40h120v40H760ZM235-160l185-291-172-269h106l124 200h4l123-200h107L539-451l186 291H618L482-377h-4L342-160H235Z"],
|
|
22
|
+
subscript: ["M760-160v-80q0-17 11.5-28.5T800-280h80v-40H760v-40h120q17 0 28.5 11.5T920-320v40q0 17-11.5 28.5T880-240h-80v40h120v40H760Zm-525-80 185-291-172-269h106l124 200h4l123-200h107L539-531l186 291H618L482-457h-4L342-240H235Z"],
|
|
23
|
+
link: ["M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"],
|
|
24
|
+
format_clear: ["m528-546-93-93-121-121h486v120H568l-40 94ZM792-56 460-388l-80 188H249l119-280L56-792l56-56 736 736-56 56Z"],
|
|
25
|
+
format_align_left: ["M120-120v-80h720v80H120Zm0-160v-80h480v80H120Zm0-160v-80h720v80H120Zm0-160v-80h480v80H120Zm0-160v-80h720v80H120Z"],
|
|
26
|
+
format_align_center: ["M120-120v-80h720v80H120Zm160-160v-80h400v80H280ZM120-440v-80h720v80H120Zm160-160v-80h400v80H280ZM120-760v-80h720v80H120Z"],
|
|
27
|
+
format_align_right: ["M120-760v-80h720v80H120Zm240 160v-80h480v80H360ZM120-440v-80h720v80H120Zm240 160v-80h480v80H360ZM120-120v-80h720v80H120Z"],
|
|
28
|
+
format_align_justify: ["M120-120v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Zm0-160v-80h720v80H120Z"],
|
|
29
|
+
format_line_spacing: ["M240-160 80-320l56-56 64 62v-332l-64 62-56-56 160-160 160 160-56 56-64-62v332l64-62 56 56-160 160Zm240-40v-80h400v80H480Zm0-240v-80h400v80H480Zm0-240v-80h400v80H480Z"],
|
|
30
|
+
format_list_bulleted: ["M360-200v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360ZM200-160q-33 0-56.5-23.5T120-240q0-33 23.5-56.5T200-320q33 0 56.5 23.5T280-240q0 33-23.5 56.5T200-160Zm0-240q-33 0-56.5-23.5T120-480q0-33 23.5-56.5T200-560q33 0 56.5 23.5T280-480q0 33-23.5 56.5T200-400Zm-56.5-263.5Q120-687 120-720t23.5-56.5Q167-800 200-800t56.5 23.5Q280-753 280-720t-23.5 56.5Q233-640 200-640t-56.5-23.5Z"],
|
|
31
|
+
format_list_numbered: ["M120-80v-60h100v-30h-60v-60h60v-30H120v-60h120q17 0 28.5 11.5T280-280v40q0 17-11.5 28.5T240-200q17 0 28.5 11.5T280-160v40q0 17-11.5 28.5T240-80H120Zm0-280v-110q0-17 11.5-28.5T160-510h60v-30H120v-60h120q17 0 28.5 11.5T280-560v70q0 17-11.5 28.5T240-450h-60v30h100v60H120Zm60-280v-180h-60v-60h120v240h-60Zm180 440v-80h480v80H360Zm0-240v-80h480v80H360Zm0-240v-80h480v80H360Z"],
|
|
32
|
+
format_indent_increase: ["M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm0 440v-320l160 160-160 160Z"],
|
|
33
|
+
format_indent_decrease: ["M120-120v-80h720v80H120Zm320-160v-80h400v80H440Zm0-160v-80h400v80H440Zm0-160v-80h400v80H440ZM120-760v-80h720v80H120Zm160 440L120-480l160-160v320Z"],
|
|
34
|
+
format_color_text: ["M80 0v-160h800V0H80Zm140-280 210-560h100l210 560h-96l-50-144H368l-52 144h-96Zm176-224h168l-82-232h-4l-82 232Z"],
|
|
35
|
+
ink_highlighter: ["M544-400 440-504 240-304l104 104 200-200Zm-47-161 104 104 199-199-104-104-199 199Zm-84-28 216 216-229 229q-24 24-56 24t-56-24l-2-2-26 26H60l126-126-2-2q-24-24-24-56t24-56l229-229Zm0 0 227-227q24-24 56-24t56 24l104 104q24 24 24 56t-24 56L629-373 413-589Z"],
|
|
36
|
+
format_color_reset: ["M800-436q0 36-8 69t-22 63l-62-60q6-17 9-34.5t3-37.5q0-47-17.5-89T650-600L480-768l-88 86-56-56 144-142 226 222q44 42 69 99.5T800-436Zm-8 380L668-180q-41 29-88 44.5T480-120q-133 0-226.5-92.5T160-436q0-51 16-98t48-90L56-792l56-56 736 736-56 56ZM480-200q36 0 68.5-10t61.5-28L280-566q-21 32-30.5 64t-9.5 66q0 98 70 167t170 69Zm-37-204Zm110-116Z"],
|
|
37
|
+
arrow_drop_down: ["M480-360 280-560h400L480-360Z"],
|
|
38
|
+
table: ["M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm240-240H200v160h240v-160Zm80 0v160h240v-160H520Zm-80-80v-160H200v160h240Zm80 0h240v-160H520v160ZM200-680h560v-80H200v80Z"],
|
|
39
|
+
table_chart: ["M760-120H200q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120ZM200-640h560v-120H200v120Zm100 80H200v360h100v-360Zm360 0v360h100v-360H660Zm-80 0H380v360h200v-360Z"],
|
|
40
|
+
grid_on: ["M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h133v-133H200v133Zm213 0h134v-133H413v133Zm214 0h133v-133H627v133ZM200-413h133v-134H200v134Zm213 0h134v-134H413v134Zm214 0h133v-134H627v134ZM200-627h133v-133H200v133Zm213 0h134v-133H413v133Zm214 0h133v-133H627v133Z"],
|
|
41
|
+
table_rows: ["M760-200v-120H200v120h560Zm0-200v-160H200v160h560Zm0-240v-120H200v120h560ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Z"],
|
|
42
|
+
view_column: ["M121-280v-400q0-33 23.5-56.5T201-760h559q33 0 56.5 23.5T840-680v400q0 33-23.5 56.5T760-200H201q-33 0-56.5-23.5T121-280Zm79 0h133v-400H200v400Zm213 0h133v-400H413v400Zm213 0h133v-400H626v400Z"],
|
|
43
|
+
border_all: ["M120-120v-720h720v720H120Zm640-80v-240H520v240h240Zm0-560H520v240h240v-240Zm-560 0v240h240v-240H200Zm0 560h240v-240H200v240Z"],
|
|
44
|
+
select_all: ["M360-360h240v-240H360v240ZM200-120q-33 0-56.5-23.5T120-200h80v80Zm-80-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T200-840v80Zm80 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm160 640v-80h80q0 33-23.5 56.5T760-120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80q33 0 56.5 23.5T840-760h-80Z"],
|
|
45
|
+
border_outer: ["M200-200h560v-560H200v560Zm-80 80v-720h720v720H120Zm160-320v-80h80v80h-80Zm160 160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 160v-80h80v80h-80Z"],
|
|
46
|
+
border_inner: ["M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-640v-80h80v80h-80Zm320 640v-80h80v80h-80Zm160 0v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm-160 0v-80h80v80h-80ZM440-120v-320H120v-80h320v-320h80v320h320v80H520v320h-80Z"],
|
|
47
|
+
border_clear: ["M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z"],
|
|
48
|
+
add: ["M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"],
|
|
49
|
+
remove: ["M200-440v-80h560v80H200Z"],
|
|
50
|
+
delete: ["M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z"],
|
|
51
|
+
delete_sweep: ["M600-240v-80h160v80H600Zm0-320v-80h280v80H600Zm0 160v-80h240v80H600ZM120-640H80v-80h160v-60h160v60h160v80h-40v360q0 33-23.5 56.5T440-200H200q-33 0-56.5-23.5T120-280v-360Zm80 0v360h240v-360H200Zm0 0v360-360Z"],
|
|
52
|
+
call_merge: ["m296-160-56-56 200-200v-269L337-582l-57-57 200-200 201 201-57 57-104-104v301L296-160Zm368 1L536-286l57-57 127 128-56 56Z"],
|
|
53
|
+
call_split: ["M440-160v-304L240-664v104h-80v-240h240v80H296l224 224v336h-80Zm154-376-58-58 128-126H560v-80h240v240h-80v-104L594-536Z"],
|
|
54
|
+
drag_indicator: ["M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z"],
|
|
55
|
+
image: ["M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm40-80h480L570-480 450-320l-90-120-120 160Zm-40 80v-560 560Z"],
|
|
56
|
+
format_image_left: ["M120-280v-400h400v400H120Zm80-80h240v-240H200v240Zm-80-400v-80h720v80H120Zm480 160v-80h240v80H600Zm0 160v-80h240v80H600Zm0 160v-80h240v80H600ZM120-120v-80h720v80H120Z"],
|
|
57
|
+
format_image_right: ["M440-280v-400h400v400H440Zm80-80h240v-240H520v240ZM120-120v-80h720v80H120Zm0-160v-80h240v80H120Zm0-160v-80h240v80H120Zm0-160v-80h240v80H120Zm0-160v-80h720v80H120Z"],
|
|
58
|
+
horizontal_rule: ["M160-440v-80h640v80H160Z"],
|
|
59
|
+
flip_to_back: ["M200-120q-33 0-56.5-23.5T120-200v-480h80v480h480v80H200Zm160-240v80q-33 0-56.5-23.5T280-360h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm80-160h-80q0-33 23.5-56.5T360-840v80Zm80 480v-80h80v80h-80Zm0-480v-80h80v80h-80Zm160 0v-80h80v80h-80Zm0 480v-80h80v80h-80Zm160-480v-80q33 0 56.5 23.5T840-760h-80Zm0 400h80q0 33-23.5 56.5T760-280v-80Zm0-80v-80h80v80h-80Zm0-160v-80h80v80h-80Z"],
|
|
60
|
+
flip_to_front: ["M360-280q-33 0-56.5-23.5T280-360v-400q0-33 23.5-56.5T360-840h400q33 0 56.5 23.5T840-760v400q0 33-23.5 56.5T760-280H360Zm0-80h400v-400H360v400ZM200-200v80q-33 0-56.5-23.5T120-200h80Zm-80-80v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 480v-80h80v80h-80Zm160 0v-80h80v80h-80Zm160 0v-80h80v80h-80Z"],
|
|
61
|
+
open_with: ["M480-80 310-250l57-57 73 73v-166h80v165l72-73 58 58L480-80ZM250-310 80-480l169-169 57 57-72 72h166v80H235l73 72-58 58Zm460 0-57-57 73-73H560v-80h165l-73-72 58-58 170 170-170 170ZM440-560v-166l-73 73-57-57 170-170 170 170-57 57-73-73v166h-80Z"],
|
|
62
|
+
tune: ["M440-120v-240h80v80h320v80H520v80h-80Zm-320-80v-80h240v80H120Zm160-160v-80H120v-80h160v-80h80v240h-80Zm160-80v-80h400v80H440Zm160-160v-240h80v80h160v80H680v80h-80Zm-480-80v-80h400v80H120Z"],
|
|
63
|
+
rotate_right: ["M522-80v-82q34-5 66.5-18t61.5-34l56 58q-42 32-88 51.5T522-80Zm-80 0Q304-98 213-199.5T122-438q0-75 28.5-140.5t77-114q48.5-48.5 114-77T482-798h6l-62-62 56-58 160 160-160 160-56-56 64-64h-8q-117 0-198.5 81.5T202-438q0 104 68 182.5T442-162v82Zm322-134-58-56q21-29 34-61.5t18-66.5h82q-5 50-24.5 96T764-214Zm76-264h-82q-5-34-18-66.5T706-606l58-56q32 39 51 86t25 98Z"],
|
|
64
|
+
rotate_left: ["M440-80q-50-5-96-24.5T256-156l56-58q29 21 61.5 34t66.5 18v82Zm80 0v-82q104-15 172-93.5T760-438q0-117-81.5-198.5T480-718h-8l64 64-56 56-160-160 160-160 56 58-62 62h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-438q0 137-91 238.5T520-80ZM198-214q-32-42-51.5-88T122-398h82q5 34 18 66.5t34 61.5l-58 56Zm-76-264q6-51 25-98t51-86l58 56q-21 29-34 61.5T204-478h-82Z"],
|
|
65
|
+
swap_horiz: ["M280-160 80-360l200-200 56 57-103 103h287v80H233l103 103-56 57Zm400-240-56-57 103-103H440v-80h287L624-743l56-57 200 200-200 200Z"],
|
|
66
|
+
swap_vert: ["M320-440v-287L217-624l-57-56 200-200 200 200-57 56-103-103v287h-80ZM600-80 400-280l57-56 103 103v-287h80v287l103-103 57 56L600-80Z"],
|
|
67
|
+
shapes: ["M600-360ZM320-242q10 1 19.5 1.5t20.5.5q11 0 20.5-.5T400-242v82h400v-400h-82q1-10 1.5-19.5t.5-20.5q0-11-.5-20.5T718-640h82q33 0 56.5 23.5T880-560v400q0 33-23.5 56.5T800-80H400q-33 0-56.5-23.5T320-160v-82Zm40-78q-117 0-198.5-81.5T80-600q0-117 81.5-198.5T360-880q117 0 198.5 81.5T640-600q0 117-81.5 198.5T360-320Zm0-80q83 0 141.5-58.5T560-600q0-83-58.5-141.5T360-800q-83 0-141.5 58.5T160-600q0 83 58.5 141.5T360-400Zm0-200Z"],
|
|
68
|
+
format_paint: ["M440-80q-33 0-56.5-23.5T360-160v-160H240q-33 0-56.5-23.5T160-400v-280q0-66 47-113t113-47h480v440q0 33-23.5 56.5T720-320H600v160q0 33-23.5 56.5T520-80h-80ZM240-560h480v-200h-40v160h-80v-160h-40v80h-80v-80H320q-33 0-56.5 23.5T240-680v120Zm0 160h480v-80H240v80Zm0 0v-80 80Z"],
|
|
69
|
+
expand_more: ["M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"],
|
|
70
|
+
expand_less: ["m296-345-56-56 240-240 240 240-56 56-184-184-184 184Z"],
|
|
71
|
+
border_top: ["M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h720v80H120Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z"],
|
|
72
|
+
border_bottom: ["M120-120v-80h720v80H120Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 480v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z"],
|
|
73
|
+
border_left: ["M120-120v-720h80v720h-80Zm160 0v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Z"],
|
|
74
|
+
border_right: ["M120-120v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm0-160v-80h80v80h-80Zm160 640v-80h80v80h-80Zm0-320v-80h80v80h-80Zm0-320v-80h80v80h-80Zm160 640v-720h80v720h-80Z"],
|
|
75
|
+
border_horizontal: ["M120-120v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h720v60H120Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-660v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-660v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-165v-60h60v60h-60Z"],
|
|
76
|
+
border_vertical: ["M120-120v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-330v-60h60v60h-60Zm165 660v-720h60v720h-60Zm165 0v-60h60v60h-60Zm0-330v-60h60v60h-60Zm0-330v-60h60v60h-60Zm165 660v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Zm0-165v-60h60v60h-60Z"],
|
|
77
|
+
padding: ["M320-600q17 0 28.5-11.5T360-640q0-17-11.5-28.5T320-680q-17 0-28.5 11.5T280-640q0 17 11.5 28.5T320-600Zm160 0q17 0 28.5-11.5T520-640q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640q0 17 11.5 28.5T480-600Zm160 0q17 0 28.5-11.5T680-640q0-17-11.5-28.5T640-680q-17 0-28.5 11.5T600-640q0 17 11.5 28.5T640-600ZM200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Z"],
|
|
78
|
+
text_rotation_none: ["M160-200v-80h528l-42-42 56-56 138 138-138 138-56-56 42-42H160Zm116-200 164-440h80l164 440h-76l-38-112H392l-40 112h-76Zm138-176h132l-64-182h-4l-64 182Z"],
|
|
79
|
+
wrap_text: ["M588-132 440-280l148-148 56 58-50 50h96q29 0 49.5-20.5T760-390q0-29-20.5-49.5T690-460H160v-80h530q63 0 106.5 43.5T840-390q0 63-43.5 106.5T690-240h-96l50 50-56 58ZM160-240v-80h200v80H160Zm0-440v-80h640v80H160Z"],
|
|
80
|
+
height: ["M480-120 320-280l56-56 64 63v-414l-64 63-56-56 160-160 160 160-56 57-64-64v414l64-63 56 56-160 160Z"],
|
|
81
|
+
fit_width: ["M120-120v-720h80v720h-80Zm640 0v-720h80v720h-80ZM280-440v-80h80v80h-80Zm160 0v-80h80v80h-80Zm160 0v-80h80v80h-80Z"],
|
|
82
|
+
settings: ["m370-80-16-128q-13-5-24.5-12T307-235l-119 50L78-375l103-78q-1-7-1-13.5v-27q0-6.5 1-13.5L78-585l110-190 119 50q11-8 23-15t24-12l16-128h220l16 128q13 5 24.5 12t22.5 15l119-50 110 190-103 78q1 7 1 13.5v27q0 6.5-2 13.5l103 78-110 190-118-50q-11 8-23 15t-24 12L590-80H370Zm70-80h79l14-106q31-8 57.5-23.5T639-327l99 41 39-68-86-65q5-14 7-29.5t2-31.5q0-16-2-31.5t-7-29.5l86-65-39-68-99 42q-22-23-48.5-38.5T533-694l-13-106h-79l-14 106q-31 8-57.5 23.5T321-633l-99-41-39 68 86 64q-5 15-7 30t-2 32q0 16 2 31t7 30l-86 65 39 68 99-42q22 23 48.5 38.5T427-266l13 106Zm42-180q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Zm-2-140Z"],
|
|
83
|
+
border_color: ["M80 0v-160h800V0H80Zm160-320h56l312-311-29-29-28-28-311 312v56Zm-80 80v-170l448-447q11-11 25.5-17t30.5-6q16 0 31 6t27 18l55 56q12 11 17.5 26t5.5 31q0 15-5.5 29.5T777-687L330-240H160Zm560-504-56-56 56 56ZM608-631l-29-29-28-28 57 57Z"],
|
|
84
|
+
format_color_fill: ["m247-904 57-56 343 343q23 23 23 57t-23 57L457-313q-23 23-57 23t-57-23L153-503q-23-23-23-57t23-57l190-191-96-96Zm153 153L209-560h382L400-751Zm360 471q-33 0-56.5-23.5T680-360q0-21 12.5-45t27.5-45q9-12 19-25t21-25q11 12 21 25t19 25q15 21 27.5 45t12.5 45q0 33-23.5 56.5T760-280ZM80 0v-160h800V0H80Z"],
|
|
85
|
+
vertical_align_top: ["M160-760v-80h640v80H160Zm280 640v-408L336-424l-56-56 200-200 200 200-56 56-104-104v408h-80Z"],
|
|
86
|
+
vertical_align_center: ["M440-80v-168l-64 64-56-56 160-160 160 160-56 56-64-64v168h-80ZM160-440v-80h640v80H160Zm320-120L320-720l56-56 64 64v-168h80v168l64-64 56 56-160 160Z"],
|
|
87
|
+
vertical_align_bottom: ["M160-120v-80h640v80H160Zm320-160L280-480l56-56 104 104v-408h80v408l104-104 56 56-200 200Z"],
|
|
88
|
+
line_weight: ["M120-160v-40h720v40H120Zm0-120v-80h720v80H120Zm0-160v-120h720v120H120Zm0-200v-160h720v160H120Z"],
|
|
89
|
+
keyboard_arrow_up: ["M480-528 296-344l-56-56 240-240 240 240-56 56-184-184Z"],
|
|
90
|
+
keyboard_arrow_down: ["M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"],
|
|
91
|
+
keyboard_arrow_left: ["M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z"],
|
|
92
|
+
keyboard_arrow_right: ["M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z"],
|
|
93
|
+
more_vert: ["M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"],
|
|
94
|
+
page_break: ["M120-440v-80h160v80H120Zm200 0v-80h160v80H320Zm200 0v-80h160v80H520Zm200 0v-80h120v80H720ZM240-120q-33 0-56.5-23.5T160-200v-120h80v120h480v-120h80v120q0 33-23.5 56.5T720-120H240Zm-80-520v-120q0-33 23.5-56.5T240-840h480q33 0 56.5 23.5T800-760v120h-80v-120H240v120h-80Z"],
|
|
95
|
+
arrow_back: ["M313-440l224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"],
|
|
96
|
+
branding_watermark: ["M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm0-80h640v-480H160v480Zm320-60q66 0 113-37t47-93q0-29-13-58t-34-55q-21-26-50-49t-50-31q-21 8-50 31t-50 49q-21 26-34 55t-13 58q0 56 47 93t140 37Z"],
|
|
97
|
+
done_all: ["M268-240 42-466l57-56 170 170 56 56-57 56Zm226 0L268-466l56-57 170 170 368-368 57 57-425 424Zm0-226-57-56 198-198 57 56-198 198Z"],
|
|
98
|
+
check_circle: ["m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"],
|
|
99
|
+
chat_bubble_outline: ["M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"],
|
|
100
|
+
chat_bubble_check: ["M80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"],
|
|
101
|
+
check: ["M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"],
|
|
102
|
+
close: ["m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z"],
|
|
103
|
+
add_comment: ["M440-400h80v-120h120v-80H520v-120h-80v120H320v80h120v120ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"],
|
|
104
|
+
comment: ["M240-400h480v-80H240v80Zm0-120h480v-80H240v80Zm0-120h480v-80H240v80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"],
|
|
105
|
+
edit_note: ["M160-400h280v-80H160v80Zm0-160h440v-80H160v80Zm0-160h440v-80H160v80Zm360 360v-123l221-220q9-9 20-13t22-4q12 0 23 4.5t20 13.5l37 37q8 9 12.5 20t4.5 22q0 11-4 22.5T863-380L643-160H520Zm300-263-37-37 37 37ZM580-220h38l121-122-18-19-19-18-122 121v38Zm141-141-19-18 37 37-18-19Z"],
|
|
106
|
+
rate_review: ["M240-400h122l200-200q9-9 13.5-20.5T580-643q0-11-5-21.5T562-684l-36-38q-9-9-20-13.5t-23-4.5q-11 0-22.5 4.5T440-722L240-522v122Zm280-243-37-37 37 37ZM300-460v-38l101-101 20 18 18 20-101 101h-38Zm121-121 18 20-38-38 20 18Zm26 181h273v-80H527l-80 80ZM80-80v-720q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H240L80-80Zm126-240h594v-480H160v525l46-45Zm-46 0v-480 480Z"],
|
|
107
|
+
visibility: ["M480-320q75 0 127.5-52.5T660-500q0-75-52.5-127.5T480-680q-75 0-127.5 52.5T300-500q0 75 52.5 127.5T480-320Zm0-72q-45 0-76.5-31.5T372-500q0-45 31.5-76.5T480-608q45 0 76.5 31.5T588-500q0 45-31.5 76.5T480-392Zm0 192q-146 0-266-81.5T40-500q54-137 174-218.5T480-800q146 0 266 81.5T920-500q-54 137-174 218.5T480-200Zm0-300Zm0 220q113 0 207.5-59.5T832-500q-50-101-144.5-160.5T480-720q-113 0-207.5 59.5T128-500q50 101 144.5 160.5T480-280Z"],
|
|
108
|
+
format_textdirection_l_to_r: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm0-280v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80ZM680-80l-56-56 64-64H120v-80h568l-64-64 56-56 160 160L680-80Z"],
|
|
109
|
+
format_textdirection_r_to_l: ["M360-360v-200q-66 0-113-47t-47-113q0-66 47-113t113-47h320v80h-80v440h-80v-440h-80v440h-80Zm-88 160 64 64-56 56-160-160 160-160 56 56-64 64h568v80H272Zm88-440v-160q-33 0-56.5 23.5T280-720q0 33 23.5 56.5T360-640Zm0-80Z"],
|
|
110
|
+
"agent-sparkle": ["m760-600-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110Zm0 560-50-110-110-50 110-50 50-110 50 110 110 50-110 50-50 110ZM360-160 260-380 40-480l220-100 100-220 100 220 220 100-220 100-100 220Zm0-194 40-86 86-40-86-40-40-86-40 86-86 40 86 40 40 86Zm0-126Z"]
|
|
111
|
+
}, ee = ["width", "height"], te = ["d"], U = /* @__PURE__ */ l({
|
|
112
|
+
__name: "MaterialSymbol",
|
|
113
|
+
props: {
|
|
114
|
+
name: {},
|
|
115
|
+
size: { default: 20 },
|
|
116
|
+
className: { default: "" },
|
|
117
|
+
style: {}
|
|
118
|
+
},
|
|
119
|
+
setup(t) {
|
|
120
|
+
let r = t, i = H, o = n(() => i[r.name] || (typeof console < "u" && console.warn(`Icon not found: ${r.name}`), null));
|
|
121
|
+
return (n, r) => o.value ? (_(), a("svg", {
|
|
122
|
+
key: 0,
|
|
123
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
124
|
+
width: t.size,
|
|
125
|
+
height: t.size,
|
|
126
|
+
viewBox: "0 -960 960 960",
|
|
127
|
+
fill: "currentColor",
|
|
128
|
+
class: p(t.className),
|
|
129
|
+
style: m({
|
|
130
|
+
display: "inline-flex",
|
|
131
|
+
flexShrink: 0,
|
|
132
|
+
...t.style ?? {}
|
|
133
|
+
}),
|
|
134
|
+
"aria-hidden": "true"
|
|
135
|
+
}, [(_(!0), a(e, null, b(o.value, (e, t) => (_(), a("path", {
|
|
136
|
+
key: t,
|
|
137
|
+
d: e
|
|
138
|
+
}, null, 8, te))), 128))], 14, ee)) : (_(), a("span", {
|
|
139
|
+
key: 1,
|
|
140
|
+
class: p(t.className),
|
|
141
|
+
style: m({
|
|
142
|
+
fontSize: `${t.size}px`,
|
|
143
|
+
width: `${t.size}px`,
|
|
144
|
+
height: `${t.size}px`,
|
|
145
|
+
display: "inline-flex",
|
|
146
|
+
...t.style ?? {}
|
|
147
|
+
})
|
|
148
|
+
}, S(t.name), 7));
|
|
149
|
+
}
|
|
150
|
+
}), W = ["disabled"], G = "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", K = /* @__PURE__ */ l({
|
|
151
|
+
__name: "Button",
|
|
152
|
+
props: {
|
|
153
|
+
variant: { default: "default" },
|
|
154
|
+
size: { default: "default" },
|
|
155
|
+
disabled: {
|
|
156
|
+
type: Boolean,
|
|
157
|
+
default: !1
|
|
158
|
+
},
|
|
159
|
+
className: { default: "" }
|
|
160
|
+
},
|
|
161
|
+
emits: ["click"],
|
|
162
|
+
setup(e) {
|
|
163
|
+
let t = e, r = {
|
|
164
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
165
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
166
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
167
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
168
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
169
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
170
|
+
}, i = {
|
|
171
|
+
default: "h-10 px-4 py-2",
|
|
172
|
+
sm: "h-9 rounded-md px-3",
|
|
173
|
+
lg: "h-11 rounded-md px-8",
|
|
174
|
+
icon: "h-9 w-9",
|
|
175
|
+
"icon-sm": "h-7 w-7",
|
|
176
|
+
xs: "h-7 rounded-md px-2 text-xs",
|
|
177
|
+
"icon-xs": "h-7 w-7"
|
|
178
|
+
}, o = n(() => [
|
|
179
|
+
G,
|
|
180
|
+
r[t.variant],
|
|
181
|
+
i[t.size],
|
|
182
|
+
t.className
|
|
183
|
+
].filter(Boolean).join(" "));
|
|
184
|
+
return (t, n) => (_(), a("button", {
|
|
185
|
+
type: "button",
|
|
186
|
+
class: p(o.value),
|
|
187
|
+
disabled: e.disabled,
|
|
188
|
+
onClick: n[0] ||= (e) => t.$emit("click", e)
|
|
189
|
+
}, [x(t.$slots, "default")], 10, W));
|
|
190
|
+
}
|
|
191
|
+
}), ne = ["checked"], re = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
192
|
+
__name: "Checkbox",
|
|
193
|
+
props: {
|
|
194
|
+
checked: { type: Boolean },
|
|
195
|
+
className: {}
|
|
196
|
+
},
|
|
197
|
+
emits: ["update:checked"],
|
|
198
|
+
setup(e, { emit: t }) {
|
|
199
|
+
let n = t;
|
|
200
|
+
function r(e) {
|
|
201
|
+
e.target instanceof HTMLInputElement && n("update:checked", e.target.checked);
|
|
202
|
+
}
|
|
203
|
+
return (t, n) => (_(), a("input", {
|
|
204
|
+
type: "checkbox",
|
|
205
|
+
class: p(["folio-default-checkbox", e.className]),
|
|
206
|
+
checked: e.checked,
|
|
207
|
+
onChange: r
|
|
208
|
+
}, null, 42, ne));
|
|
209
|
+
}
|
|
210
|
+
}), [["__scopeId", "data-v-cc413720"]]);
|
|
11
211
|
//#endregion
|
|
12
212
|
//#region ../../node_modules/.bun/@formatjs+fast-memoize@3.1.6/node_modules/@formatjs/fast-memoize/index.js
|
|
13
|
-
function
|
|
14
|
-
let n = t && t.cache ? t.cache :
|
|
15
|
-
return (t && t.strategy ? t.strategy :
|
|
213
|
+
function q(e, t) {
|
|
214
|
+
let n = t && t.cache ? t.cache : de, r = t && t.serializer ? t.serializer : le;
|
|
215
|
+
return (t && t.strategy ? t.strategy : Y)(e, {
|
|
16
216
|
cache: n,
|
|
17
217
|
serializer: r
|
|
18
218
|
});
|
|
19
219
|
}
|
|
20
|
-
function
|
|
220
|
+
function ie(e) {
|
|
21
221
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
22
222
|
}
|
|
23
|
-
function
|
|
24
|
-
let i =
|
|
223
|
+
function J(e, t, n, r) {
|
|
224
|
+
let i = ie(r) ? r : n(r), a = t.get(i);
|
|
25
225
|
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
26
226
|
}
|
|
27
|
-
function
|
|
227
|
+
function ae(e, t, n) {
|
|
28
228
|
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
29
229
|
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
30
230
|
}
|
|
31
|
-
function
|
|
231
|
+
function oe(e, t, n, r, i) {
|
|
32
232
|
return n.bind(t, e, r, i);
|
|
33
233
|
}
|
|
34
|
-
function
|
|
35
|
-
let n = e.length === 1 ?
|
|
36
|
-
return
|
|
234
|
+
function Y(e, t) {
|
|
235
|
+
let n = e.length === 1 ? J : ae;
|
|
236
|
+
return oe(e, this, n, t.cache.create(), t.serializer);
|
|
37
237
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
238
|
+
function se(e, t) {
|
|
239
|
+
return oe(e, this, ae, t.cache.create(), t.serializer);
|
|
40
240
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
241
|
+
function ce(e, t) {
|
|
242
|
+
return oe(e, this, J, t.cache.create(), t.serializer);
|
|
43
243
|
}
|
|
44
|
-
var
|
|
244
|
+
var le = function() {
|
|
45
245
|
return JSON.stringify(arguments);
|
|
46
|
-
},
|
|
246
|
+
}, ue = class {
|
|
47
247
|
constructor() {
|
|
48
248
|
this.cache = Object.create(null);
|
|
49
249
|
}
|
|
@@ -53,20 +253,20 @@ var L = function() {
|
|
|
53
253
|
set(e, t) {
|
|
54
254
|
this.cache[e] = t;
|
|
55
255
|
}
|
|
56
|
-
},
|
|
57
|
-
return new
|
|
58
|
-
} },
|
|
59
|
-
variadic:
|
|
60
|
-
monadic:
|
|
61
|
-
},
|
|
256
|
+
}, de = { create: function() {
|
|
257
|
+
return new ue();
|
|
258
|
+
} }, fe = {
|
|
259
|
+
variadic: se,
|
|
260
|
+
monadic: ce
|
|
261
|
+
}, X = class extends Error {
|
|
62
262
|
constructor(e, t) {
|
|
63
263
|
let n = e;
|
|
64
264
|
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
65
265
|
}
|
|
66
|
-
},
|
|
266
|
+
}, Z = function(e) {
|
|
67
267
|
return e.MISSING_MESSAGE = "MISSING_MESSAGE", e.MISSING_FORMAT = "MISSING_FORMAT", e.ENVIRONMENT_FALLBACK = "ENVIRONMENT_FALLBACK", e.INSUFFICIENT_PATH = "INSUFFICIENT_PATH", e.INVALID_MESSAGE = "INVALID_MESSAGE", e.INVALID_KEY = "INVALID_KEY", e.FORMATTING_ERROR = "FORMATTING_ERROR", e;
|
|
68
|
-
}(
|
|
69
|
-
function
|
|
268
|
+
}(Z || {});
|
|
269
|
+
function pe() {
|
|
70
270
|
return {
|
|
71
271
|
dateTime: {},
|
|
72
272
|
number: {},
|
|
@@ -77,34 +277,34 @@ function ee() {
|
|
|
77
277
|
displayNames: {}
|
|
78
278
|
};
|
|
79
279
|
}
|
|
80
|
-
function
|
|
81
|
-
return
|
|
280
|
+
function me(e, t) {
|
|
281
|
+
return q(e, {
|
|
82
282
|
cache: (n = t, { create: () => ({
|
|
83
283
|
get: (e) => n[e],
|
|
84
284
|
set(e, t) {
|
|
85
285
|
n[e] = t;
|
|
86
286
|
}
|
|
87
287
|
}) }),
|
|
88
|
-
strategy:
|
|
288
|
+
strategy: fe.variadic
|
|
89
289
|
});
|
|
90
290
|
var n;
|
|
91
291
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
292
|
+
function Q(e, t) {
|
|
293
|
+
return me(((...t) => new e(...t)), t);
|
|
94
294
|
}
|
|
95
|
-
function
|
|
295
|
+
function he(e) {
|
|
96
296
|
return {
|
|
97
|
-
getDateTimeFormat:
|
|
98
|
-
getNumberFormat:
|
|
99
|
-
getPluralRules:
|
|
100
|
-
getRelativeTimeFormat:
|
|
101
|
-
getListFormat:
|
|
102
|
-
getDisplayNames:
|
|
297
|
+
getDateTimeFormat: Q(Intl.DateTimeFormat, e.dateTime),
|
|
298
|
+
getNumberFormat: Q(Intl.NumberFormat, e.number),
|
|
299
|
+
getPluralRules: Q(Intl.PluralRules, e.pluralRules),
|
|
300
|
+
getRelativeTimeFormat: Q(Intl.RelativeTimeFormat, e.relativeTime),
|
|
301
|
+
getListFormat: Q(Intl.ListFormat, e.list),
|
|
302
|
+
getDisplayNames: Q(Intl.DisplayNames, e.displayNames)
|
|
103
303
|
};
|
|
104
304
|
}
|
|
105
305
|
//#endregion
|
|
106
306
|
//#region ../../node_modules/.bun/react@19.2.7/node_modules/react/cjs/react.production.js
|
|
107
|
-
var
|
|
307
|
+
var ge = /* @__PURE__ */ B(((e) => {
|
|
108
308
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
|
|
109
309
|
function m(e) {
|
|
110
310
|
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
@@ -390,7 +590,7 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
390
590
|
}, e.useTransition = function() {
|
|
391
591
|
return w.H.useTransition();
|
|
392
592
|
}, e.version = "19.2.7";
|
|
393
|
-
})),
|
|
593
|
+
})), _e = /* @__PURE__ */ B(((e, t) => {
|
|
394
594
|
process.env.NODE_ENV !== "production" && (function() {
|
|
395
595
|
function n(e, t) {
|
|
396
596
|
Object.defineProperty(a.prototype, e, { get: function() {
|
|
@@ -398,19 +598,19 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
398
598
|
} });
|
|
399
599
|
}
|
|
400
600
|
function r(e) {
|
|
401
|
-
return typeof e != "object" || !e ? null : (e =
|
|
601
|
+
return typeof e != "object" || !e ? null : (e = K && e[K] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
402
602
|
}
|
|
403
603
|
function i(e, t) {
|
|
404
604
|
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
405
605
|
var n = e + "." + t;
|
|
406
|
-
|
|
606
|
+
ne[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), ne[n] = !0);
|
|
407
607
|
}
|
|
408
608
|
function a(e, t, n) {
|
|
409
|
-
this.props = e, this.context = t, this.refs =
|
|
609
|
+
this.props = e, this.context = t, this.refs = ie, this.updater = n || re;
|
|
410
610
|
}
|
|
411
611
|
function o() {}
|
|
412
612
|
function s(e, t, n) {
|
|
413
|
-
this.props = e, this.context = t, this.refs =
|
|
613
|
+
this.props = e, this.context = t, this.refs = ie, this.updater = n || re;
|
|
414
614
|
}
|
|
415
615
|
function c() {}
|
|
416
616
|
function l(e) {
|
|
@@ -431,7 +631,7 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
431
631
|
}
|
|
432
632
|
function d(e) {
|
|
433
633
|
if (e == null) return null;
|
|
434
|
-
if (typeof e == "function") return e.$$typeof ===
|
|
634
|
+
if (typeof e == "function") return e.$$typeof === oe ? null : e.displayName || e.name || null;
|
|
435
635
|
if (typeof e == "string") return e;
|
|
436
636
|
switch (e) {
|
|
437
637
|
case L: return "Fragment";
|
|
@@ -439,7 +639,7 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
439
639
|
case R: return "StrictMode";
|
|
440
640
|
case ee: return "Suspense";
|
|
441
641
|
case te: return "SuspenseList";
|
|
442
|
-
case
|
|
642
|
+
case G: return "Activity";
|
|
443
643
|
}
|
|
444
644
|
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
445
645
|
case I: return "Portal";
|
|
@@ -468,14 +668,14 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
468
668
|
}
|
|
469
669
|
}
|
|
470
670
|
function p() {
|
|
471
|
-
var e =
|
|
671
|
+
var e = Y.A;
|
|
472
672
|
return e === null ? null : e.getOwner();
|
|
473
673
|
}
|
|
474
674
|
function m() {
|
|
475
675
|
return Error("react-stack-top-frame");
|
|
476
676
|
}
|
|
477
677
|
function h(e) {
|
|
478
|
-
if (
|
|
678
|
+
if (se.call(e, "key")) {
|
|
479
679
|
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
480
680
|
if (t && t.isReactWarning) return !1;
|
|
481
681
|
}
|
|
@@ -483,7 +683,7 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
483
683
|
}
|
|
484
684
|
function g(e, t) {
|
|
485
685
|
function n() {
|
|
486
|
-
|
|
686
|
+
le || (le = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
487
687
|
}
|
|
488
688
|
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
489
689
|
get: n,
|
|
@@ -492,7 +692,7 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
492
692
|
}
|
|
493
693
|
function _() {
|
|
494
694
|
var e = d(this.type);
|
|
495
|
-
return
|
|
695
|
+
return de[e] || (de[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
496
696
|
}
|
|
497
697
|
function v(e, t, n, r, i, a) {
|
|
498
698
|
var o = n.ref;
|
|
@@ -588,12 +788,12 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
588
788
|
if (s) {
|
|
589
789
|
s = e, a = a(s);
|
|
590
790
|
var c = i === "" ? "." + C(s, 0) : i;
|
|
591
|
-
return
|
|
791
|
+
return ae(a) ? (n = "", c != null && (n = c.replace(pe, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
592
792
|
return e;
|
|
593
|
-
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(
|
|
793
|
+
})) : a != null && (x(a) && (a.key != null && (s && s.key === a.key || u(a.key)), n = y(a, n + (a.key == null || s && s.key === a.key ? "" : ("" + a.key).replace(pe, "$&/") + "/") + c), i !== "" && s != null && x(s) && s.key == null && s._store && !s._store.validated && (n._store.validated = 2), a = n), t.push(a)), 1;
|
|
594
794
|
}
|
|
595
|
-
if (s = 0, c = i === "" ? "." : i + ":",
|
|
596
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (
|
|
795
|
+
if (s = 0, c = i === "" ? "." : i + ":", ae(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
796
|
+
else if (l = r(e), typeof l == "function") for (l === e.entries && (Z || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Z = !0), e = l.call(e), l = 0; !(i = e.next()).done;) i = i.value, o = c + C(i, l++), s += T(i, t, n, o, a);
|
|
597
797
|
else if (o === "object") {
|
|
598
798
|
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
599
799
|
throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
@@ -635,56 +835,56 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
635
835
|
throw e._result;
|
|
636
836
|
}
|
|
637
837
|
function O() {
|
|
638
|
-
var e =
|
|
838
|
+
var e = Y.H;
|
|
639
839
|
return e === null && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."), e;
|
|
640
840
|
}
|
|
641
841
|
function k() {
|
|
642
|
-
|
|
842
|
+
Y.asyncTransitions--;
|
|
643
843
|
}
|
|
644
844
|
function A(e) {
|
|
645
|
-
if (
|
|
845
|
+
if (he === null) try {
|
|
646
846
|
var n = ("require" + Math.random()).slice(0, 7);
|
|
647
|
-
|
|
847
|
+
he = (t && t[n]).call(t, "timers").setImmediate;
|
|
648
848
|
} catch {
|
|
649
|
-
|
|
650
|
-
!1 ===
|
|
849
|
+
he = function(e) {
|
|
850
|
+
!1 === Q && (Q = !0, typeof MessageChannel > "u" && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
651
851
|
var t = new MessageChannel();
|
|
652
852
|
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
653
853
|
};
|
|
654
854
|
}
|
|
655
|
-
return
|
|
855
|
+
return he(e);
|
|
656
856
|
}
|
|
657
857
|
function j(e) {
|
|
658
858
|
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
659
859
|
}
|
|
660
860
|
function M(e, t) {
|
|
661
|
-
t !==
|
|
861
|
+
t !== ge - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ge = t;
|
|
662
862
|
}
|
|
663
863
|
function N(e, t, n) {
|
|
664
|
-
var r =
|
|
864
|
+
var r = Y.actQueue;
|
|
665
865
|
if (r !== null) if (r.length !== 0) try {
|
|
666
866
|
P(r), A(function() {
|
|
667
867
|
return N(e, t, n);
|
|
668
868
|
});
|
|
669
869
|
return;
|
|
670
870
|
} catch (e) {
|
|
671
|
-
|
|
871
|
+
Y.thrownErrors.push(e);
|
|
672
872
|
}
|
|
673
|
-
else
|
|
674
|
-
0 <
|
|
873
|
+
else Y.actQueue = null;
|
|
874
|
+
0 < Y.thrownErrors.length ? (r = j(Y.thrownErrors), Y.thrownErrors.length = 0, n(r)) : t(e);
|
|
675
875
|
}
|
|
676
876
|
function P(e) {
|
|
677
|
-
if (!
|
|
678
|
-
|
|
877
|
+
if (!ve) {
|
|
878
|
+
ve = !0;
|
|
679
879
|
var t = 0;
|
|
680
880
|
try {
|
|
681
881
|
for (; t < e.length; t++) {
|
|
682
882
|
var n = e[t];
|
|
683
883
|
do {
|
|
684
|
-
|
|
884
|
+
Y.didUsePromise = !1;
|
|
685
885
|
var r = n(!1);
|
|
686
886
|
if (r !== null) {
|
|
687
|
-
if (
|
|
887
|
+
if (Y.didUsePromise) {
|
|
688
888
|
e[t] = n, e.splice(0, t);
|
|
689
889
|
return;
|
|
690
890
|
}
|
|
@@ -694,14 +894,14 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
694
894
|
}
|
|
695
895
|
e.length = 0;
|
|
696
896
|
} catch (n) {
|
|
697
|
-
e.splice(0, t + 1),
|
|
897
|
+
e.splice(0, t + 1), Y.thrownErrors.push(n);
|
|
698
898
|
} finally {
|
|
699
|
-
|
|
899
|
+
ve = !1;
|
|
700
900
|
}
|
|
701
901
|
}
|
|
702
902
|
}
|
|
703
903
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
704
|
-
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), V = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), W = Symbol.for("react.lazy"),
|
|
904
|
+
var F = Symbol.for("react.transitional.element"), I = Symbol.for("react.portal"), L = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), z = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), V = Symbol.for("react.context"), H = Symbol.for("react.forward_ref"), ee = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), K = Symbol.iterator, ne = {}, re = {
|
|
705
905
|
isMounted: function() {
|
|
706
906
|
return !1;
|
|
707
907
|
},
|
|
@@ -714,20 +914,20 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
714
914
|
enqueueSetState: function(e) {
|
|
715
915
|
i(e, "setState");
|
|
716
916
|
}
|
|
717
|
-
},
|
|
718
|
-
Object.freeze(
|
|
917
|
+
}, q = Object.assign, ie = {};
|
|
918
|
+
Object.freeze(ie), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
719
919
|
if (typeof e != "object" && typeof e != "function" && e != null) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
720
920
|
this.updater.enqueueSetState(this, e, t, "setState");
|
|
721
921
|
}, a.prototype.forceUpdate = function(e) {
|
|
722
922
|
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
723
923
|
};
|
|
724
|
-
var
|
|
924
|
+
var J = {
|
|
725
925
|
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
726
926
|
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
727
927
|
};
|
|
728
|
-
for (
|
|
729
|
-
o.prototype = a.prototype,
|
|
730
|
-
var
|
|
928
|
+
for (be in J) J.hasOwnProperty(be) && n(be, J[be]);
|
|
929
|
+
o.prototype = a.prototype, J = s.prototype = new o(), J.constructor = s, q(J, a.prototype), J.isPureReactComponent = !0;
|
|
930
|
+
var ae = Array.isArray, oe = Symbol.for("react.client.reference"), Y = {
|
|
731
931
|
H: null,
|
|
732
932
|
A: null,
|
|
733
933
|
T: null,
|
|
@@ -740,13 +940,13 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
740
940
|
thrownErrors: [],
|
|
741
941
|
getCurrentStack: null,
|
|
742
942
|
recentlyCreatedOwnerStacks: 0
|
|
743
|
-
},
|
|
943
|
+
}, se = Object.prototype.hasOwnProperty, ce = console.createTask ? console.createTask : function() {
|
|
744
944
|
return null;
|
|
745
945
|
};
|
|
746
|
-
|
|
946
|
+
J = { react_stack_bottom_frame: function(e) {
|
|
747
947
|
return e();
|
|
748
948
|
} };
|
|
749
|
-
var
|
|
949
|
+
var le, ue, de = {}, fe = J.react_stack_bottom_frame.bind(J, m)(), X = ce(f(m)), Z = !1, pe = /\/+/g, me = typeof reportError == "function" ? reportError : function(e) {
|
|
750
950
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
751
951
|
var t = new window.ErrorEvent("error", {
|
|
752
952
|
bubbles: !0,
|
|
@@ -760,18 +960,18 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
760
960
|
return;
|
|
761
961
|
}
|
|
762
962
|
console.error(e);
|
|
763
|
-
},
|
|
963
|
+
}, Q = !1, he = null, ge = 0, _e = !1, ve = !1, ye = typeof queueMicrotask == "function" ? function(e) {
|
|
764
964
|
queueMicrotask(function() {
|
|
765
965
|
return queueMicrotask(e);
|
|
766
966
|
});
|
|
767
967
|
} : A;
|
|
768
|
-
|
|
968
|
+
J = Object.freeze({
|
|
769
969
|
__proto__: null,
|
|
770
970
|
c: function(e) {
|
|
771
971
|
return O().useMemoCache(e);
|
|
772
972
|
}
|
|
773
973
|
});
|
|
774
|
-
var
|
|
974
|
+
var be = {
|
|
775
975
|
map: E,
|
|
776
976
|
forEach: function(e, t, n) {
|
|
777
977
|
E(e, function() {
|
|
@@ -794,20 +994,20 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
794
994
|
return e;
|
|
795
995
|
}
|
|
796
996
|
};
|
|
797
|
-
e.Activity =
|
|
798
|
-
var t =
|
|
799
|
-
|
|
800
|
-
var r =
|
|
997
|
+
e.Activity = G, e.Children = be, e.Component = a, e.Fragment = L, e.Profiler = z, e.PureComponent = s, e.StrictMode = R, e.Suspense = ee, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Y, e.__COMPILER_RUNTIME = J, e.act = function(e) {
|
|
998
|
+
var t = Y.actQueue, n = ge;
|
|
999
|
+
ge++;
|
|
1000
|
+
var r = Y.actQueue = t === null ? [] : t, i = !1;
|
|
801
1001
|
try {
|
|
802
1002
|
var a = e();
|
|
803
1003
|
} catch (e) {
|
|
804
|
-
|
|
1004
|
+
Y.thrownErrors.push(e);
|
|
805
1005
|
}
|
|
806
|
-
if (0 <
|
|
1006
|
+
if (0 < Y.thrownErrors.length) throw M(t, n), e = j(Y.thrownErrors), Y.thrownErrors.length = 0, e;
|
|
807
1007
|
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
808
1008
|
var o = a;
|
|
809
|
-
return
|
|
810
|
-
i ||
|
|
1009
|
+
return ye(function() {
|
|
1010
|
+
i || _e || (_e = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
811
1011
|
}), { then: function(e, a) {
|
|
812
1012
|
i = !0, o.then(function(i) {
|
|
813
1013
|
if (M(t, n), n === 0) {
|
|
@@ -816,24 +1016,24 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
816
1016
|
return N(i, e, a);
|
|
817
1017
|
});
|
|
818
1018
|
} catch (e) {
|
|
819
|
-
|
|
1019
|
+
Y.thrownErrors.push(e);
|
|
820
1020
|
}
|
|
821
|
-
if (0 <
|
|
822
|
-
var o = j(
|
|
823
|
-
|
|
1021
|
+
if (0 < Y.thrownErrors.length) {
|
|
1022
|
+
var o = j(Y.thrownErrors);
|
|
1023
|
+
Y.thrownErrors.length = 0, a(o);
|
|
824
1024
|
}
|
|
825
1025
|
} else e(i);
|
|
826
1026
|
}, function(e) {
|
|
827
|
-
M(t, n), 0 <
|
|
1027
|
+
M(t, n), 0 < Y.thrownErrors.length ? (e = j(Y.thrownErrors), Y.thrownErrors.length = 0, a(e)) : a(e);
|
|
828
1028
|
});
|
|
829
1029
|
} };
|
|
830
1030
|
}
|
|
831
1031
|
var s = a;
|
|
832
|
-
if (M(t, n), n === 0 && (P(r), r.length !== 0 &&
|
|
833
|
-
i ||
|
|
834
|
-
}),
|
|
1032
|
+
if (M(t, n), n === 0 && (P(r), r.length !== 0 && ye(function() {
|
|
1033
|
+
i || _e || (_e = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
1034
|
+
}), Y.actQueue = null), 0 < Y.thrownErrors.length) throw e = j(Y.thrownErrors), Y.thrownErrors.length = 0, e;
|
|
835
1035
|
return { then: function(e, t) {
|
|
836
|
-
i = !0, n === 0 ? (
|
|
1036
|
+
i = !0, n === 0 ? (Y.actQueue = r, A(function() {
|
|
837
1037
|
return N(s, e, t);
|
|
838
1038
|
})) : e(s);
|
|
839
1039
|
} };
|
|
@@ -844,21 +1044,21 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
844
1044
|
}, e.cacheSignal = function() {
|
|
845
1045
|
return null;
|
|
846
1046
|
}, e.captureOwnerStack = function() {
|
|
847
|
-
var e =
|
|
1047
|
+
var e = Y.getCurrentStack;
|
|
848
1048
|
return e === null ? null : e();
|
|
849
1049
|
}, e.cloneElement = function(e, t, n) {
|
|
850
1050
|
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
851
|
-
var r =
|
|
1051
|
+
var r = q({}, e.props), i = e.key, a = e._owner;
|
|
852
1052
|
if (t != null) {
|
|
853
1053
|
var o;
|
|
854
1054
|
a: {
|
|
855
|
-
if (
|
|
1055
|
+
if (se.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
856
1056
|
o = !1;
|
|
857
1057
|
break a;
|
|
858
1058
|
}
|
|
859
1059
|
o = t.ref !== void 0;
|
|
860
1060
|
}
|
|
861
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !
|
|
1061
|
+
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !se.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
862
1062
|
}
|
|
863
1063
|
var s = arguments.length - 2;
|
|
864
1064
|
if (s === 1) r.children = n;
|
|
@@ -885,7 +1085,7 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
885
1085
|
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
886
1086
|
r = {};
|
|
887
1087
|
var i = null;
|
|
888
|
-
if (t != null) for (c in
|
|
1088
|
+
if (t != null) for (c in ue || !("__self" in t) || "key" in t || (ue = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), h(t) && (u(t.key), i = "" + t.key), t) se.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
889
1089
|
var a = arguments.length - 2;
|
|
890
1090
|
if (a === 1) r.children = n;
|
|
891
1091
|
else if (1 < a) {
|
|
@@ -894,8 +1094,8 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
894
1094
|
}
|
|
895
1095
|
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
896
1096
|
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
897
|
-
var c = 1e4 >
|
|
898
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") :
|
|
1097
|
+
var c = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
1098
|
+
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : fe, c ? ce(f(e)) : X);
|
|
899
1099
|
}, e.createRef = function() {
|
|
900
1100
|
var e = { current: null };
|
|
901
1101
|
return Object.seal(e), e;
|
|
@@ -952,15 +1152,15 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
952
1152
|
}
|
|
953
1153
|
}), t;
|
|
954
1154
|
}, e.startTransition = function(e) {
|
|
955
|
-
var t =
|
|
956
|
-
n._updatedFibers = /* @__PURE__ */ new Set(),
|
|
1155
|
+
var t = Y.T, n = {};
|
|
1156
|
+
n._updatedFibers = /* @__PURE__ */ new Set(), Y.T = n;
|
|
957
1157
|
try {
|
|
958
|
-
var r = e(), i =
|
|
959
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (
|
|
1158
|
+
var r = e(), i = Y.S;
|
|
1159
|
+
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (Y.asyncTransitions++, r.then(k, k), r.then(c, me));
|
|
960
1160
|
} catch (e) {
|
|
961
|
-
|
|
1161
|
+
me(e);
|
|
962
1162
|
} finally {
|
|
963
|
-
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types),
|
|
1163
|
+
t === null && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), t !== null && n.types !== null && (t.types !== null && t.types !== n.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), t.types = n.types), Y.T = t;
|
|
964
1164
|
}
|
|
965
1165
|
}, e.unstable_useCacheRefresh = function() {
|
|
966
1166
|
return O().useCacheRefresh();
|
|
@@ -1005,12 +1205,12 @@ var ne = /* @__PURE__ */ D(((e) => {
|
|
|
1005
1205
|
return O().useTransition();
|
|
1006
1206
|
}, e.version = "19.2.7", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1007
1207
|
})();
|
|
1008
|
-
})),
|
|
1009
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
1010
|
-
})))(),
|
|
1011
|
-
function
|
|
1208
|
+
})), ve = (/* @__PURE__ */ B(((e, t) => {
|
|
1209
|
+
process.env.NODE_ENV === "production" ? t.exports = ge() : t.exports = _e();
|
|
1210
|
+
})))(), ye = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1211
|
+
function be(e) {
|
|
1012
1212
|
let t = {};
|
|
1013
|
-
return e.replace(
|
|
1213
|
+
return e.replace(ye, (e) => {
|
|
1014
1214
|
let n = e.length;
|
|
1015
1215
|
switch (e[0]) {
|
|
1016
1216
|
case "G":
|
|
@@ -1105,10 +1305,10 @@ function ae(e) {
|
|
|
1105
1305
|
return "";
|
|
1106
1306
|
}), t;
|
|
1107
1307
|
}
|
|
1108
|
-
var
|
|
1109
|
-
function
|
|
1308
|
+
var xe = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1309
|
+
function Se(e) {
|
|
1110
1310
|
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1111
|
-
let t = e.split(
|
|
1311
|
+
let t = e.split(xe).filter((e) => e.length > 0), n = [];
|
|
1112
1312
|
for (let e of t) {
|
|
1113
1313
|
let t = e.split("/");
|
|
1114
1314
|
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
@@ -1121,17 +1321,17 @@ function K(e) {
|
|
|
1121
1321
|
}
|
|
1122
1322
|
return n;
|
|
1123
1323
|
}
|
|
1124
|
-
function
|
|
1324
|
+
function Ce(e) {
|
|
1125
1325
|
return e.replace(/^(.*?)-/, "");
|
|
1126
1326
|
}
|
|
1127
|
-
var
|
|
1128
|
-
function
|
|
1327
|
+
var we = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Te = /^(@+)?(\+|#+)?[rs]?$/g, Ee = /(\*)(0+)|(#+)(0+)|(0+)/g, De = /^(0+)$/;
|
|
1328
|
+
function Oe(e) {
|
|
1129
1329
|
let t = {};
|
|
1130
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1330
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Te, function(e, n, r) {
|
|
1131
1331
|
return typeof r == "string" ? r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), "";
|
|
1132
1332
|
}), t;
|
|
1133
1333
|
}
|
|
1134
|
-
function
|
|
1334
|
+
function ke(e) {
|
|
1135
1335
|
switch (e) {
|
|
1136
1336
|
case "sign-auto": return { signDisplay: "auto" };
|
|
1137
1337
|
case "sign-accounting":
|
|
@@ -1154,19 +1354,19 @@ function fe(e) {
|
|
|
1154
1354
|
case "+_": return { signDisplay: "never" };
|
|
1155
1355
|
}
|
|
1156
1356
|
}
|
|
1157
|
-
function
|
|
1357
|
+
function Ae(e) {
|
|
1158
1358
|
let t;
|
|
1159
1359
|
if (e[0] === "E" && e[1] === "E" ? (t = { notation: "engineering" }, e = e.slice(2)) : e[0] === "E" && (t = { notation: "scientific" }, e = e.slice(1)), t) {
|
|
1160
1360
|
let n = e.slice(0, 2);
|
|
1161
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1361
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !De.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1162
1362
|
t.minimumIntegerDigits = e.length;
|
|
1163
1363
|
}
|
|
1164
1364
|
return t;
|
|
1165
1365
|
}
|
|
1166
|
-
function
|
|
1167
|
-
return
|
|
1366
|
+
function je(e) {
|
|
1367
|
+
return ke(e) || {};
|
|
1168
1368
|
}
|
|
1169
|
-
function
|
|
1369
|
+
function Me(e) {
|
|
1170
1370
|
let t = {};
|
|
1171
1371
|
for (let n of e) {
|
|
1172
1372
|
switch (n.stem) {
|
|
@@ -1190,7 +1390,7 @@ function he(e) {
|
|
|
1190
1390
|
continue;
|
|
1191
1391
|
case "measure-unit":
|
|
1192
1392
|
case "unit":
|
|
1193
|
-
t.style = "unit", t.unit =
|
|
1393
|
+
t.style = "unit", t.unit = Ce(n.options[0]);
|
|
1194
1394
|
continue;
|
|
1195
1395
|
case "compact-short":
|
|
1196
1396
|
case "K":
|
|
@@ -1206,7 +1406,7 @@ function he(e) {
|
|
|
1206
1406
|
notation: "scientific",
|
|
1207
1407
|
...n.options.reduce((e, t) => ({
|
|
1208
1408
|
...e,
|
|
1209
|
-
...
|
|
1409
|
+
...je(t)
|
|
1210
1410
|
}), {})
|
|
1211
1411
|
};
|
|
1212
1412
|
continue;
|
|
@@ -1216,7 +1416,7 @@ function he(e) {
|
|
|
1216
1416
|
notation: "engineering",
|
|
1217
1417
|
...n.options.reduce((e, t) => ({
|
|
1218
1418
|
...e,
|
|
1219
|
-
...
|
|
1419
|
+
...je(t)
|
|
1220
1420
|
}), {})
|
|
1221
1421
|
};
|
|
1222
1422
|
continue;
|
|
@@ -1261,7 +1461,7 @@ function he(e) {
|
|
|
1261
1461
|
continue;
|
|
1262
1462
|
case "integer-width":
|
|
1263
1463
|
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1264
|
-
n.options[0].replace(
|
|
1464
|
+
n.options[0].replace(Ee, function(e, n, r, i, a, o) {
|
|
1265
1465
|
if (n) t.minimumIntegerDigits = r.length;
|
|
1266
1466
|
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1267
1467
|
else if (o) throw Error("We currently do not support exact integer digits");
|
|
@@ -1269,13 +1469,13 @@ function he(e) {
|
|
|
1269
1469
|
});
|
|
1270
1470
|
continue;
|
|
1271
1471
|
}
|
|
1272
|
-
if (
|
|
1472
|
+
if (De.test(n.stem)) {
|
|
1273
1473
|
t.minimumIntegerDigits = n.stem.length;
|
|
1274
1474
|
continue;
|
|
1275
1475
|
}
|
|
1276
|
-
if (
|
|
1476
|
+
if (we.test(n.stem)) {
|
|
1277
1477
|
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1278
|
-
n.stem.replace(
|
|
1478
|
+
n.stem.replace(we, function(e, n, r, i, a, o) {
|
|
1279
1479
|
return r === "*" ? t.minimumFractionDigits = n.length : i && i[0] === "#" ? t.maximumFractionDigits = i.length : a && o ? (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length + o.length) : (t.minimumFractionDigits = n.length, t.maximumFractionDigits = n.length), "";
|
|
1280
1480
|
});
|
|
1281
1481
|
let e = n.options[0];
|
|
@@ -1284,23 +1484,23 @@ function he(e) {
|
|
|
1284
1484
|
trailingZeroDisplay: "stripIfInteger"
|
|
1285
1485
|
} : e && (t = {
|
|
1286
1486
|
...t,
|
|
1287
|
-
...
|
|
1487
|
+
...Oe(e)
|
|
1288
1488
|
});
|
|
1289
1489
|
continue;
|
|
1290
1490
|
}
|
|
1291
|
-
if (
|
|
1491
|
+
if (Te.test(n.stem)) {
|
|
1292
1492
|
t = {
|
|
1293
1493
|
...t,
|
|
1294
|
-
...
|
|
1494
|
+
...Oe(n.stem)
|
|
1295
1495
|
};
|
|
1296
1496
|
continue;
|
|
1297
1497
|
}
|
|
1298
|
-
let e =
|
|
1498
|
+
let e = ke(n.stem);
|
|
1299
1499
|
e && (t = {
|
|
1300
1500
|
...t,
|
|
1301
1501
|
...e
|
|
1302
1502
|
});
|
|
1303
|
-
let r =
|
|
1503
|
+
let r = Ae(n.stem);
|
|
1304
1504
|
r && (t = {
|
|
1305
1505
|
...t,
|
|
1306
1506
|
...r
|
|
@@ -1310,43 +1510,43 @@ function he(e) {
|
|
|
1310
1510
|
}
|
|
1311
1511
|
//#endregion
|
|
1312
1512
|
//#region ../../node_modules/.bun/@formatjs+icu-messageformat-parser@3.5.12/node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
1313
|
-
var
|
|
1513
|
+
var Ne = /* @__PURE__ */ function(e) {
|
|
1314
1514
|
return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
|
|
1315
1515
|
}({});
|
|
1316
|
-
function
|
|
1516
|
+
function Pe(e) {
|
|
1317
1517
|
return e.type === 0;
|
|
1318
1518
|
}
|
|
1319
|
-
function
|
|
1519
|
+
function Fe(e) {
|
|
1320
1520
|
return e.type === 1;
|
|
1321
1521
|
}
|
|
1322
|
-
function
|
|
1522
|
+
function Ie(e) {
|
|
1323
1523
|
return e.type === 2;
|
|
1324
1524
|
}
|
|
1325
|
-
function
|
|
1525
|
+
function Le(e) {
|
|
1326
1526
|
return e.type === 3;
|
|
1327
1527
|
}
|
|
1328
|
-
function
|
|
1528
|
+
function Re(e) {
|
|
1329
1529
|
return e.type === 4;
|
|
1330
1530
|
}
|
|
1331
|
-
function
|
|
1531
|
+
function ze(e) {
|
|
1332
1532
|
return e.type === 5;
|
|
1333
1533
|
}
|
|
1334
|
-
function
|
|
1534
|
+
function Be(e) {
|
|
1335
1535
|
return e.type === 6;
|
|
1336
1536
|
}
|
|
1337
|
-
function
|
|
1537
|
+
function Ve(e) {
|
|
1338
1538
|
return e.type === 7;
|
|
1339
1539
|
}
|
|
1340
|
-
function
|
|
1540
|
+
function He(e) {
|
|
1341
1541
|
return e.type === 8;
|
|
1342
1542
|
}
|
|
1343
|
-
function
|
|
1543
|
+
function Ue(e) {
|
|
1344
1544
|
return !!(e && typeof e == "object" && e.type === 0);
|
|
1345
1545
|
}
|
|
1346
|
-
function
|
|
1546
|
+
function We(e) {
|
|
1347
1547
|
return !!(e && typeof e == "object" && e.type === 1);
|
|
1348
1548
|
}
|
|
1349
|
-
var
|
|
1549
|
+
var Ge = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ke = {
|
|
1350
1550
|
"001": ["H", "h"],
|
|
1351
1551
|
419: [
|
|
1352
1552
|
"h",
|
|
@@ -2509,21 +2709,21 @@ var we = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Te = {
|
|
|
2509
2709
|
"h"
|
|
2510
2710
|
]
|
|
2511
2711
|
};
|
|
2512
|
-
function
|
|
2712
|
+
function qe(e, t) {
|
|
2513
2713
|
let n = "";
|
|
2514
2714
|
for (let r = 0; r < e.length; r++) {
|
|
2515
2715
|
let i = e.charAt(r);
|
|
2516
2716
|
if (i === "j") {
|
|
2517
2717
|
let a = 0;
|
|
2518
2718
|
for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
|
|
2519
|
-
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c =
|
|
2719
|
+
let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = Je(t);
|
|
2520
2720
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
2521
2721
|
for (; o-- > 0;) n = c + n;
|
|
2522
2722
|
} else i === "J" ? n += "H" : n += i;
|
|
2523
2723
|
}
|
|
2524
2724
|
return n;
|
|
2525
2725
|
}
|
|
2526
|
-
function
|
|
2726
|
+
function Je(e) {
|
|
2527
2727
|
let t = e.hourCycle;
|
|
2528
2728
|
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
2529
2729
|
case "h24": return "k";
|
|
@@ -2533,32 +2733,32 @@ function De(e) {
|
|
|
2533
2733
|
default: throw Error("Invalid hourCycle");
|
|
2534
2734
|
}
|
|
2535
2735
|
let n = e.language, r;
|
|
2536
|
-
return n !== "root" && (r = e.maximize().region), (
|
|
2736
|
+
return n !== "root" && (r = e.maximize().region), (Ke[r || ""] || Ke[n || ""] || Ke[`${n}-001`] || Ke["001"])[0];
|
|
2537
2737
|
}
|
|
2538
|
-
var
|
|
2539
|
-
function
|
|
2738
|
+
var Ye = RegExp(`^${Ge.source}*`), Xe = RegExp(`${Ge.source}*$`);
|
|
2739
|
+
function $(e, t) {
|
|
2540
2740
|
return {
|
|
2541
2741
|
start: e,
|
|
2542
2742
|
end: t
|
|
2543
2743
|
};
|
|
2544
2744
|
}
|
|
2545
|
-
var
|
|
2745
|
+
var Ze = !!Object.fromEntries, Qe = !!String.prototype.trimStart, $e = !!String.prototype.trimEnd, et = Ze ? Object.fromEntries : function(e) {
|
|
2546
2746
|
let t = {};
|
|
2547
2747
|
for (let [n, r] of e) t[n] = r;
|
|
2548
2748
|
return t;
|
|
2549
|
-
},
|
|
2749
|
+
}, tt = Qe ? function(e) {
|
|
2550
2750
|
return e.trimStart();
|
|
2551
2751
|
} : function(e) {
|
|
2552
|
-
return e.replace(
|
|
2553
|
-
},
|
|
2752
|
+
return e.replace(Ye, "");
|
|
2753
|
+
}, nt = $e ? function(e) {
|
|
2554
2754
|
return e.trimEnd();
|
|
2555
2755
|
} : function(e) {
|
|
2556
|
-
return e.replace(
|
|
2557
|
-
},
|
|
2558
|
-
function
|
|
2559
|
-
return
|
|
2756
|
+
return e.replace(Xe, "");
|
|
2757
|
+
}, rt = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2758
|
+
function it(e, t) {
|
|
2759
|
+
return rt.lastIndex = t, rt.exec(e)[1] ?? "";
|
|
2560
2760
|
}
|
|
2561
|
-
function
|
|
2761
|
+
function at(e) {
|
|
2562
2762
|
if (e.length === 0) return null;
|
|
2563
2763
|
let t = 1, n = 1;
|
|
2564
2764
|
for (let r = 0; r < e.length;) {
|
|
@@ -2582,7 +2782,7 @@ function Re(e) {
|
|
|
2582
2782
|
column: n
|
|
2583
2783
|
};
|
|
2584
2784
|
}
|
|
2585
|
-
var
|
|
2785
|
+
var ot = class {
|
|
2586
2786
|
constructor(e, t = {}) {
|
|
2587
2787
|
this.message = e, this.position = {
|
|
2588
2788
|
offset: 0,
|
|
@@ -2595,14 +2795,14 @@ var ze = class {
|
|
|
2595
2795
|
if (this.message.length > 0) {
|
|
2596
2796
|
let e = this.message.charCodeAt(0);
|
|
2597
2797
|
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
2598
|
-
let e =
|
|
2798
|
+
let e = at(this.message);
|
|
2599
2799
|
if (e) {
|
|
2600
2800
|
let t = this.clonePosition();
|
|
2601
2801
|
return this.position = e, {
|
|
2602
2802
|
val: [{
|
|
2603
2803
|
type: 0,
|
|
2604
2804
|
value: this.message,
|
|
2605
|
-
location:
|
|
2805
|
+
location: $(t, this.clonePosition())
|
|
2606
2806
|
}],
|
|
2607
2807
|
err: null
|
|
2608
2808
|
};
|
|
@@ -2624,12 +2824,12 @@ var ze = class {
|
|
|
2624
2824
|
let e = this.clonePosition();
|
|
2625
2825
|
this.bump(), r.push({
|
|
2626
2826
|
type: 7,
|
|
2627
|
-
location:
|
|
2827
|
+
location: $(e, this.clonePosition())
|
|
2628
2828
|
});
|
|
2629
2829
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2630
2830
|
if (n) break;
|
|
2631
|
-
return this.error(26,
|
|
2632
|
-
} else if (i === 60 && !this.ignoreTag &&
|
|
2831
|
+
return this.error(26, $(this.clonePosition(), this.clonePosition()));
|
|
2832
|
+
} else if (i === 60 && !this.ignoreTag && st(this.peek() || 0)) {
|
|
2633
2833
|
let n = this.parseTag(e, t);
|
|
2634
2834
|
if (n.err) return n;
|
|
2635
2835
|
r.push(n.val);
|
|
@@ -2652,7 +2852,7 @@ var ze = class {
|
|
|
2652
2852
|
val: {
|
|
2653
2853
|
type: 0,
|
|
2654
2854
|
value: `<${r}/>`,
|
|
2655
|
-
location:
|
|
2855
|
+
location: $(n, this.clonePosition())
|
|
2656
2856
|
},
|
|
2657
2857
|
err: null
|
|
2658
2858
|
};
|
|
@@ -2661,23 +2861,23 @@ var ze = class {
|
|
|
2661
2861
|
if (i.err) return i;
|
|
2662
2862
|
let a = i.val, o = this.clonePosition();
|
|
2663
2863
|
if (this.bumpIf("</")) {
|
|
2664
|
-
if (this.isEOF() || !
|
|
2864
|
+
if (this.isEOF() || !st(this.char())) return this.error(23, $(o, this.clonePosition()));
|
|
2665
2865
|
let e = this.clonePosition();
|
|
2666
2866
|
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2667
2867
|
val: {
|
|
2668
2868
|
type: 8,
|
|
2669
2869
|
value: r,
|
|
2670
2870
|
children: a,
|
|
2671
|
-
location:
|
|
2871
|
+
location: $(n, this.clonePosition())
|
|
2672
2872
|
},
|
|
2673
2873
|
err: null
|
|
2674
|
-
} : this.error(23,
|
|
2675
|
-
} else return this.error(27,
|
|
2676
|
-
} else return this.error(23,
|
|
2874
|
+
} : this.error(23, $(o, this.clonePosition()))) : this.error(26, $(e, this.clonePosition()));
|
|
2875
|
+
} else return this.error(27, $(n, this.clonePosition()));
|
|
2876
|
+
} else return this.error(23, $(n, this.clonePosition()));
|
|
2677
2877
|
}
|
|
2678
2878
|
parseTagName() {
|
|
2679
2879
|
let e = this.offset();
|
|
2680
|
-
for (this.bump(); !this.isEOF() &&
|
|
2880
|
+
for (this.bump(); !this.isEOF() && lt(this.char());) this.bump();
|
|
2681
2881
|
return this.message.slice(e, this.offset());
|
|
2682
2882
|
}
|
|
2683
2883
|
parseLiteral(e, t) {
|
|
@@ -2700,7 +2900,7 @@ var ze = class {
|
|
|
2700
2900
|
}
|
|
2701
2901
|
break;
|
|
2702
2902
|
}
|
|
2703
|
-
let i =
|
|
2903
|
+
let i = $(n, this.clonePosition());
|
|
2704
2904
|
return {
|
|
2705
2905
|
val: {
|
|
2706
2906
|
type: 0,
|
|
@@ -2711,7 +2911,7 @@ var ze = class {
|
|
|
2711
2911
|
};
|
|
2712
2912
|
}
|
|
2713
2913
|
tryParseLeftAngleBracket() {
|
|
2714
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !
|
|
2914
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !ct(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2715
2915
|
}
|
|
2716
2916
|
tryParseQuote(e) {
|
|
2717
2917
|
if (this.isEOF() || this.char() !== 39) return null;
|
|
@@ -2747,35 +2947,35 @@ var ze = class {
|
|
|
2747
2947
|
}
|
|
2748
2948
|
parseArgument(e, t) {
|
|
2749
2949
|
let n = this.clonePosition();
|
|
2750
|
-
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
2751
|
-
if (this.char() === 125) return this.bump(), this.error(2,
|
|
2950
|
+
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, $(n, this.clonePosition()));
|
|
2951
|
+
if (this.char() === 125) return this.bump(), this.error(2, $(n, this.clonePosition()));
|
|
2752
2952
|
let r = this.parseIdentifierIfPossible().value;
|
|
2753
|
-
if (!r) return this.error(3,
|
|
2754
|
-
if (this.bumpSpace(), this.isEOF()) return this.error(1,
|
|
2953
|
+
if (!r) return this.error(3, $(n, this.clonePosition()));
|
|
2954
|
+
if (this.bumpSpace(), this.isEOF()) return this.error(1, $(n, this.clonePosition()));
|
|
2755
2955
|
switch (this.char()) {
|
|
2756
2956
|
case 125: return this.bump(), {
|
|
2757
2957
|
val: {
|
|
2758
2958
|
type: 1,
|
|
2759
2959
|
value: r,
|
|
2760
|
-
location:
|
|
2960
|
+
location: $(n, this.clonePosition())
|
|
2761
2961
|
},
|
|
2762
2962
|
err: null
|
|
2763
2963
|
};
|
|
2764
|
-
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1,
|
|
2765
|
-
default: return this.error(3,
|
|
2964
|
+
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, $(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
|
|
2965
|
+
default: return this.error(3, $(n, this.clonePosition()));
|
|
2766
2966
|
}
|
|
2767
2967
|
}
|
|
2768
2968
|
parseIdentifierIfPossible() {
|
|
2769
|
-
let e = this.clonePosition(), t = this.offset(), n =
|
|
2969
|
+
let e = this.clonePosition(), t = this.offset(), n = it(this.message, t), r = t + n.length;
|
|
2770
2970
|
return this.bumpTo(r), {
|
|
2771
2971
|
value: n,
|
|
2772
|
-
location:
|
|
2972
|
+
location: $(e, this.clonePosition())
|
|
2773
2973
|
};
|
|
2774
2974
|
}
|
|
2775
2975
|
parseArgumentOptions(e, t, n, r) {
|
|
2776
2976
|
let i = this.clonePosition(), a = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2777
2977
|
switch (a) {
|
|
2778
|
-
case "": return this.error(4,
|
|
2978
|
+
case "": return this.error(4, $(i, o));
|
|
2779
2979
|
case "number":
|
|
2780
2980
|
case "date":
|
|
2781
2981
|
case "time": {
|
|
@@ -2785,18 +2985,18 @@ var ze = class {
|
|
|
2785
2985
|
this.bumpSpace();
|
|
2786
2986
|
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
2787
2987
|
if (n.err) return n;
|
|
2788
|
-
let r =
|
|
2789
|
-
if (r.length === 0) return this.error(6,
|
|
2988
|
+
let r = nt(n.val);
|
|
2989
|
+
if (r.length === 0) return this.error(6, $(this.clonePosition(), this.clonePosition()));
|
|
2790
2990
|
e = {
|
|
2791
2991
|
style: r,
|
|
2792
|
-
styleLocation:
|
|
2992
|
+
styleLocation: $(t, this.clonePosition())
|
|
2793
2993
|
};
|
|
2794
2994
|
}
|
|
2795
2995
|
let t = this.tryParseArgumentClose(r);
|
|
2796
2996
|
if (t.err) return t;
|
|
2797
|
-
let i =
|
|
2997
|
+
let i = $(r, this.clonePosition());
|
|
2798
2998
|
if (e && e.style.startsWith("::")) {
|
|
2799
|
-
let t =
|
|
2999
|
+
let t = tt(e.style.slice(2));
|
|
2800
3000
|
if (a === "number") {
|
|
2801
3001
|
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
2802
3002
|
return r.err ? r : {
|
|
@@ -2811,12 +3011,12 @@ var ze = class {
|
|
|
2811
3011
|
} else {
|
|
2812
3012
|
if (t.length === 0) return this.error(10, i);
|
|
2813
3013
|
let r = t;
|
|
2814
|
-
this.locale && (r =
|
|
3014
|
+
this.locale && (r = qe(t, this.locale));
|
|
2815
3015
|
let o = {
|
|
2816
3016
|
type: 1,
|
|
2817
3017
|
pattern: r,
|
|
2818
3018
|
location: e.styleLocation,
|
|
2819
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3019
|
+
parsedOptions: this.shouldParseSkeletons ? be(r) : {}
|
|
2820
3020
|
};
|
|
2821
3021
|
return {
|
|
2822
3022
|
val: {
|
|
@@ -2843,11 +3043,11 @@ var ze = class {
|
|
|
2843
3043
|
case "selectordinal":
|
|
2844
3044
|
case "select": {
|
|
2845
3045
|
let i = this.clonePosition();
|
|
2846
|
-
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12,
|
|
3046
|
+
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12, $(i, { ...i }));
|
|
2847
3047
|
this.bumpSpace();
|
|
2848
3048
|
let o = this.parseIdentifierIfPossible(), s = 0;
|
|
2849
3049
|
if (a !== "select" && o.value === "offset") {
|
|
2850
|
-
if (!this.bumpIf(":")) return this.error(13,
|
|
3050
|
+
if (!this.bumpIf(":")) return this.error(13, $(this.clonePosition(), this.clonePosition()));
|
|
2851
3051
|
this.bumpSpace();
|
|
2852
3052
|
let e = this.tryParseDecimalInteger(13, 14);
|
|
2853
3053
|
if (e.err) return e;
|
|
@@ -2857,12 +3057,12 @@ var ze = class {
|
|
|
2857
3057
|
if (c.err) return c;
|
|
2858
3058
|
let l = this.tryParseArgumentClose(r);
|
|
2859
3059
|
if (l.err) return l;
|
|
2860
|
-
let u =
|
|
3060
|
+
let u = $(r, this.clonePosition());
|
|
2861
3061
|
return a === "select" ? {
|
|
2862
3062
|
val: {
|
|
2863
3063
|
type: 5,
|
|
2864
3064
|
value: n,
|
|
2865
|
-
options:
|
|
3065
|
+
options: et(c.val),
|
|
2866
3066
|
location: u
|
|
2867
3067
|
},
|
|
2868
3068
|
err: null
|
|
@@ -2870,7 +3070,7 @@ var ze = class {
|
|
|
2870
3070
|
val: {
|
|
2871
3071
|
type: 6,
|
|
2872
3072
|
value: n,
|
|
2873
|
-
options:
|
|
3073
|
+
options: et(c.val),
|
|
2874
3074
|
offset: s,
|
|
2875
3075
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2876
3076
|
location: u
|
|
@@ -2878,11 +3078,11 @@ var ze = class {
|
|
|
2878
3078
|
err: null
|
|
2879
3079
|
};
|
|
2880
3080
|
}
|
|
2881
|
-
default: return this.error(5,
|
|
3081
|
+
default: return this.error(5, $(i, o));
|
|
2882
3082
|
}
|
|
2883
3083
|
}
|
|
2884
3084
|
tryParseArgumentClose(e) {
|
|
2885
|
-
return this.isEOF() || this.char() !== 125 ? this.error(1,
|
|
3085
|
+
return this.isEOF() || this.char() !== 125 ? this.error(1, $(e, this.clonePosition())) : (this.bump(), {
|
|
2886
3086
|
val: !0,
|
|
2887
3087
|
err: null
|
|
2888
3088
|
});
|
|
@@ -2893,7 +3093,7 @@ var ze = class {
|
|
|
2893
3093
|
case 39: {
|
|
2894
3094
|
this.bump();
|
|
2895
3095
|
let e = this.clonePosition();
|
|
2896
|
-
if (!this.bumpUntil("'")) return this.error(11,
|
|
3096
|
+
if (!this.bumpUntil("'")) return this.error(11, $(e, this.clonePosition()));
|
|
2897
3097
|
this.bump();
|
|
2898
3098
|
break;
|
|
2899
3099
|
}
|
|
@@ -2919,7 +3119,7 @@ var ze = class {
|
|
|
2919
3119
|
parseNumberSkeletonFromString(e, t) {
|
|
2920
3120
|
let n = [];
|
|
2921
3121
|
try {
|
|
2922
|
-
n =
|
|
3122
|
+
n = Se(e);
|
|
2923
3123
|
} catch {
|
|
2924
3124
|
return this.error(7, t);
|
|
2925
3125
|
}
|
|
@@ -2928,7 +3128,7 @@ var ze = class {
|
|
|
2928
3128
|
type: 0,
|
|
2929
3129
|
tokens: n,
|
|
2930
3130
|
location: t,
|
|
2931
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3131
|
+
parsedOptions: this.shouldParseSkeletons ? Me(n) : {}
|
|
2932
3132
|
},
|
|
2933
3133
|
err: null
|
|
2934
3134
|
};
|
|
@@ -2941,23 +3141,23 @@ var ze = class {
|
|
|
2941
3141
|
if (t !== "select" && this.bumpIf("=")) {
|
|
2942
3142
|
let t = this.tryParseDecimalInteger(16, 19);
|
|
2943
3143
|
if (t.err) return t;
|
|
2944
|
-
c =
|
|
3144
|
+
c = $(e, this.clonePosition()), s = this.message.slice(e.offset, this.offset());
|
|
2945
3145
|
} else break;
|
|
2946
3146
|
}
|
|
2947
3147
|
if (o.has(s)) return this.error(t === "select" ? 21 : 20, c);
|
|
2948
3148
|
s === "other" && (i = !0), this.bumpSpace();
|
|
2949
3149
|
let r = this.clonePosition();
|
|
2950
|
-
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18,
|
|
3150
|
+
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18, $(this.clonePosition(), this.clonePosition()));
|
|
2951
3151
|
let l = this.parseMessage(e + 1, t, n);
|
|
2952
3152
|
if (l.err) return l;
|
|
2953
3153
|
let u = this.tryParseArgumentClose(r);
|
|
2954
3154
|
if (u.err) return u;
|
|
2955
3155
|
a.push([s, {
|
|
2956
3156
|
value: l.val,
|
|
2957
|
-
location:
|
|
3157
|
+
location: $(r, this.clonePosition())
|
|
2958
3158
|
}]), o.add(s), this.bumpSpace(), {value: s, location: c} = this.parseIdentifierIfPossible();
|
|
2959
3159
|
}
|
|
2960
|
-
return a.length === 0 ? this.error(t === "select" ? 15 : 16,
|
|
3160
|
+
return a.length === 0 ? this.error(t === "select" ? 15 : 16, $(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(22, $(this.clonePosition(), this.clonePosition())) : {
|
|
2961
3161
|
val: a,
|
|
2962
3162
|
err: null
|
|
2963
3163
|
};
|
|
@@ -2971,7 +3171,7 @@ var ze = class {
|
|
|
2971
3171
|
if (e >= 48 && e <= 57) i = !0, a = a * 10 + (e - 48), this.bump();
|
|
2972
3172
|
else break;
|
|
2973
3173
|
}
|
|
2974
|
-
let o =
|
|
3174
|
+
let o = $(r, this.clonePosition());
|
|
2975
3175
|
return i ? (a *= n, Number.isSafeInteger(a) ? {
|
|
2976
3176
|
val: a,
|
|
2977
3177
|
err: null
|
|
@@ -3033,7 +3233,7 @@ var ze = class {
|
|
|
3033
3233
|
}
|
|
3034
3234
|
}
|
|
3035
3235
|
bumpSpace() {
|
|
3036
|
-
for (; !this.isEOF() &&
|
|
3236
|
+
for (; !this.isEOF() && ut(this.char());) this.bump();
|
|
3037
3237
|
}
|
|
3038
3238
|
peek() {
|
|
3039
3239
|
if (this.isEOF()) return null;
|
|
@@ -3041,83 +3241,83 @@ var ze = class {
|
|
|
3041
3241
|
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
3042
3242
|
}
|
|
3043
3243
|
};
|
|
3044
|
-
function
|
|
3244
|
+
function st(e) {
|
|
3045
3245
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3046
3246
|
}
|
|
3047
|
-
function
|
|
3048
|
-
return
|
|
3247
|
+
function ct(e) {
|
|
3248
|
+
return st(e) || e === 47;
|
|
3049
3249
|
}
|
|
3050
|
-
function
|
|
3250
|
+
function lt(e) {
|
|
3051
3251
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3052
3252
|
}
|
|
3053
|
-
function
|
|
3253
|
+
function ut(e) {
|
|
3054
3254
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3055
3255
|
}
|
|
3056
|
-
function
|
|
3256
|
+
function dt(e) {
|
|
3057
3257
|
e.forEach((e) => {
|
|
3058
|
-
if (delete e.location,
|
|
3059
|
-
else
|
|
3258
|
+
if (delete e.location, ze(e) || Be(e)) for (let t in e.options) delete e.options[t].location, dt(e.options[t].value);
|
|
3259
|
+
else Ie(e) && Ue(e.style) || (Le(e) || Re(e)) && We(e.style) ? delete e.style.location : He(e) && dt(e.children);
|
|
3060
3260
|
});
|
|
3061
3261
|
}
|
|
3062
|
-
function
|
|
3262
|
+
function ft(e, t = {}) {
|
|
3063
3263
|
t = {
|
|
3064
3264
|
shouldParseSkeletons: !0,
|
|
3065
3265
|
requiresOtherClause: !0,
|
|
3066
3266
|
...t
|
|
3067
3267
|
};
|
|
3068
|
-
let n = new
|
|
3268
|
+
let n = new ot(e, t).parse();
|
|
3069
3269
|
if (n.err) {
|
|
3070
|
-
let e = SyntaxError(
|
|
3270
|
+
let e = SyntaxError(Ne[n.err.kind]);
|
|
3071
3271
|
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
3072
3272
|
}
|
|
3073
|
-
return t?.captureLocation ||
|
|
3273
|
+
return t?.captureLocation || dt(n.val), n.val;
|
|
3074
3274
|
}
|
|
3075
3275
|
//#endregion
|
|
3076
3276
|
//#region ../../node_modules/.bun/intl-messageformat@11.2.9/node_modules/intl-messageformat/index.js
|
|
3077
|
-
var
|
|
3277
|
+
var pt = class extends Error {
|
|
3078
3278
|
constructor(e, t, n) {
|
|
3079
3279
|
super(e), this.code = t, this.originalMessage = n;
|
|
3080
3280
|
}
|
|
3081
3281
|
toString() {
|
|
3082
3282
|
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3083
3283
|
}
|
|
3084
|
-
},
|
|
3284
|
+
}, mt = class extends pt {
|
|
3085
3285
|
constructor(e, t, n, r) {
|
|
3086
3286
|
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
3087
3287
|
}
|
|
3088
|
-
},
|
|
3288
|
+
}, ht = class extends pt {
|
|
3089
3289
|
constructor(e, t, n) {
|
|
3090
3290
|
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
3091
3291
|
}
|
|
3092
|
-
},
|
|
3292
|
+
}, gt = class extends pt {
|
|
3093
3293
|
constructor(e, t) {
|
|
3094
3294
|
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
3095
3295
|
}
|
|
3096
3296
|
};
|
|
3097
|
-
function
|
|
3297
|
+
function _t(e) {
|
|
3098
3298
|
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
3099
3299
|
let n = e[e.length - 1];
|
|
3100
3300
|
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
3101
3301
|
}, []);
|
|
3102
3302
|
}
|
|
3103
|
-
function
|
|
3303
|
+
function vt(e) {
|
|
3104
3304
|
return typeof e == "function";
|
|
3105
3305
|
}
|
|
3106
|
-
function
|
|
3107
|
-
if (e.length === 1 &&
|
|
3306
|
+
function yt(e, t, n, r, i, a, o) {
|
|
3307
|
+
if (e.length === 1 && Pe(e[0])) return [{
|
|
3108
3308
|
type: 0,
|
|
3109
3309
|
value: e[0].value
|
|
3110
3310
|
}];
|
|
3111
3311
|
let s = [];
|
|
3112
3312
|
for (let c of e) {
|
|
3113
|
-
if (
|
|
3313
|
+
if (Pe(c)) {
|
|
3114
3314
|
s.push({
|
|
3115
3315
|
type: 0,
|
|
3116
3316
|
value: c.value
|
|
3117
3317
|
});
|
|
3118
3318
|
continue;
|
|
3119
3319
|
}
|
|
3120
|
-
if (
|
|
3320
|
+
if (Ve(c)) {
|
|
3121
3321
|
typeof a == "number" && s.push({
|
|
3122
3322
|
type: 0,
|
|
3123
3323
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3125,33 +3325,33 @@ function Qe(e, t, n, r, i, a, o) {
|
|
|
3125
3325
|
continue;
|
|
3126
3326
|
}
|
|
3127
3327
|
let { value: e } = c;
|
|
3128
|
-
if (!(i && e in i)) throw new
|
|
3328
|
+
if (!(i && e in i)) throw new gt(e, o);
|
|
3129
3329
|
let l = i[e];
|
|
3130
|
-
if (
|
|
3330
|
+
if (Fe(c)) {
|
|
3131
3331
|
(!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
|
|
3132
3332
|
type: typeof l == "string" ? 0 : 1,
|
|
3133
3333
|
value: l
|
|
3134
3334
|
});
|
|
3135
3335
|
continue;
|
|
3136
3336
|
}
|
|
3137
|
-
if (
|
|
3138
|
-
let e = typeof c.style == "string" ? r.date[c.style] :
|
|
3337
|
+
if (Le(c)) {
|
|
3338
|
+
let e = typeof c.style == "string" ? r.date[c.style] : We(c.style) ? c.style.parsedOptions : void 0;
|
|
3139
3339
|
s.push({
|
|
3140
3340
|
type: 0,
|
|
3141
3341
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3142
3342
|
});
|
|
3143
3343
|
continue;
|
|
3144
3344
|
}
|
|
3145
|
-
if (
|
|
3146
|
-
let e = typeof c.style == "string" ? r.time[c.style] :
|
|
3345
|
+
if (Re(c)) {
|
|
3346
|
+
let e = typeof c.style == "string" ? r.time[c.style] : We(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3147
3347
|
s.push({
|
|
3148
3348
|
type: 0,
|
|
3149
3349
|
value: n.getDateTimeFormat(t, e).format(l)
|
|
3150
3350
|
});
|
|
3151
3351
|
continue;
|
|
3152
3352
|
}
|
|
3153
|
-
if (
|
|
3154
|
-
let e = typeof c.style == "string" ? r.number[c.style] :
|
|
3353
|
+
if (Ie(c)) {
|
|
3354
|
+
let e = typeof c.style == "string" ? r.number[c.style] : Ue(c.style) ? c.style.parsedOptions : void 0;
|
|
3155
3355
|
if (e && e.scale) {
|
|
3156
3356
|
let t = e.scale || 1;
|
|
3157
3357
|
if (typeof l == "bigint") {
|
|
@@ -3165,37 +3365,37 @@ function Qe(e, t, n, r, i, a, o) {
|
|
|
3165
3365
|
});
|
|
3166
3366
|
continue;
|
|
3167
3367
|
}
|
|
3168
|
-
if (
|
|
3368
|
+
if (He(c)) {
|
|
3169
3369
|
let { children: e, value: l } = c, u = i[l];
|
|
3170
|
-
if (!
|
|
3171
|
-
let d = u(
|
|
3370
|
+
if (!vt(u)) throw new ht(l, "function", o);
|
|
3371
|
+
let d = u(yt(e, t, n, r, i, a).map((e) => e.value));
|
|
3172
3372
|
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
3173
3373
|
type: typeof e == "string" ? 0 : 1,
|
|
3174
3374
|
value: e
|
|
3175
3375
|
})));
|
|
3176
3376
|
}
|
|
3177
|
-
if (
|
|
3377
|
+
if (ze(c)) {
|
|
3178
3378
|
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
3179
|
-
if (!a) throw new
|
|
3180
|
-
s.push(...
|
|
3379
|
+
if (!a) throw new mt(c.value, l, Object.keys(c.options), o);
|
|
3380
|
+
s.push(...yt(a.value, t, n, r, i));
|
|
3181
3381
|
continue;
|
|
3182
3382
|
}
|
|
3183
|
-
if (
|
|
3383
|
+
if (Be(c)) {
|
|
3184
3384
|
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
3185
3385
|
if (!a) {
|
|
3186
|
-
if (!Intl.PluralRules) throw new
|
|
3386
|
+
if (!Intl.PluralRules) throw new pt("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
3187
3387
|
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
3188
3388
|
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
3189
3389
|
}
|
|
3190
|
-
if (!a) throw new
|
|
3390
|
+
if (!a) throw new mt(c.value, l, Object.keys(c.options), o);
|
|
3191
3391
|
let u = typeof l == "bigint" ? Number(l) : l;
|
|
3192
|
-
s.push(...
|
|
3392
|
+
s.push(...yt(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
3193
3393
|
continue;
|
|
3194
3394
|
}
|
|
3195
3395
|
}
|
|
3196
|
-
return
|
|
3396
|
+
return _t(s);
|
|
3197
3397
|
}
|
|
3198
|
-
function
|
|
3398
|
+
function bt(e, t) {
|
|
3199
3399
|
return t ? {
|
|
3200
3400
|
...e,
|
|
3201
3401
|
...t,
|
|
@@ -3205,10 +3405,10 @@ function $e(e, t) {
|
|
|
3205
3405
|
}, n), {})
|
|
3206
3406
|
} : e;
|
|
3207
3407
|
}
|
|
3208
|
-
function
|
|
3209
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] =
|
|
3408
|
+
function xt(e, t) {
|
|
3409
|
+
return t ? Object.keys(e).reduce((n, r) => (n[r] = bt(e[r], t[r]), n), { ...e }) : e;
|
|
3210
3410
|
}
|
|
3211
|
-
function
|
|
3411
|
+
function St(e) {
|
|
3212
3412
|
return { create() {
|
|
3213
3413
|
return {
|
|
3214
3414
|
get(t) {
|
|
@@ -3220,27 +3420,27 @@ function tt(e) {
|
|
|
3220
3420
|
};
|
|
3221
3421
|
} };
|
|
3222
3422
|
}
|
|
3223
|
-
function
|
|
3423
|
+
function Ct(e = {
|
|
3224
3424
|
number: {},
|
|
3225
3425
|
dateTime: {},
|
|
3226
3426
|
pluralRules: {}
|
|
3227
3427
|
}) {
|
|
3228
3428
|
return {
|
|
3229
|
-
getNumberFormat:
|
|
3230
|
-
cache:
|
|
3231
|
-
strategy:
|
|
3429
|
+
getNumberFormat: q((...e) => new Intl.NumberFormat(...e), {
|
|
3430
|
+
cache: St(e.number),
|
|
3431
|
+
strategy: fe.variadic
|
|
3232
3432
|
}),
|
|
3233
|
-
getDateTimeFormat:
|
|
3234
|
-
cache:
|
|
3235
|
-
strategy:
|
|
3433
|
+
getDateTimeFormat: q((...e) => new Intl.DateTimeFormat(...e), {
|
|
3434
|
+
cache: St(e.dateTime),
|
|
3435
|
+
strategy: fe.variadic
|
|
3236
3436
|
}),
|
|
3237
|
-
getPluralRules:
|
|
3238
|
-
cache:
|
|
3239
|
-
strategy:
|
|
3437
|
+
getPluralRules: q((...e) => new Intl.PluralRules(...e), {
|
|
3438
|
+
cache: St(e.pluralRules),
|
|
3439
|
+
strategy: fe.variadic
|
|
3240
3440
|
})
|
|
3241
3441
|
};
|
|
3242
3442
|
}
|
|
3243
|
-
var
|
|
3443
|
+
var wt = class e {
|
|
3244
3444
|
constructor(t, n = e.defaultLocale, r, i) {
|
|
3245
3445
|
if (this.formatterCache = {
|
|
3246
3446
|
number: {},
|
|
@@ -3251,7 +3451,7 @@ var rt = class e {
|
|
|
3251
3451
|
if (t.length === 1) return t[0].value;
|
|
3252
3452
|
let n = t.reduce((e, t) => (!e.length || t.type !== 0 || typeof e[e.length - 1] != "string" ? e.push(t.value) : e[e.length - 1] += t.value, e), []);
|
|
3253
3453
|
return n.length <= 1 ? n[0] || "" : n;
|
|
3254
|
-
}, this.formatToParts = (e) =>
|
|
3454
|
+
}, this.formatToParts = (e) => yt(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3255
3455
|
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3256
3456
|
let { ...n } = i || {};
|
|
3257
3457
|
this.ast = e.__parse(t, {
|
|
@@ -3260,7 +3460,7 @@ var rt = class e {
|
|
|
3260
3460
|
});
|
|
3261
3461
|
} else this.ast = t;
|
|
3262
3462
|
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
3263
|
-
this.formats =
|
|
3463
|
+
this.formats = xt(e.formats, r), this.formatters = i && i.formatters || Ct(this.formatterCache);
|
|
3264
3464
|
}
|
|
3265
3465
|
static {
|
|
3266
3466
|
this.memoizedDefaultLocale = null;
|
|
@@ -3276,7 +3476,7 @@ var rt = class e {
|
|
|
3276
3476
|
};
|
|
3277
3477
|
}
|
|
3278
3478
|
static {
|
|
3279
|
-
this.__parse =
|
|
3479
|
+
this.__parse = ft;
|
|
3280
3480
|
}
|
|
3281
3481
|
static {
|
|
3282
3482
|
this.formats = {
|
|
@@ -3336,9 +3536,9 @@ var rt = class e {
|
|
|
3336
3536
|
};
|
|
3337
3537
|
//#endregion
|
|
3338
3538
|
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3339
|
-
function
|
|
3340
|
-
if (Array.isArray(t)) throw new
|
|
3341
|
-
if (typeof t == "object") throw new
|
|
3539
|
+
function Tt(...[e, t, n, r]) {
|
|
3540
|
+
if (Array.isArray(t)) throw new X(Z.INVALID_MESSAGE, void 0);
|
|
3541
|
+
if (typeof t == "object") throw new X(Z.INSUFFICIENT_PATH, void 0);
|
|
3342
3542
|
if (typeof t == "string") {
|
|
3343
3543
|
let e = function(e, t) {
|
|
3344
3544
|
return t || /'[{}]/.test(e) ? void 0 : e;
|
|
@@ -3347,14 +3547,14 @@ function it(...[e, t, n, r]) {
|
|
|
3347
3547
|
}
|
|
3348
3548
|
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3349
3549
|
o.getMessageFormat ||= function(e, t) {
|
|
3350
|
-
return
|
|
3550
|
+
return me(((...e) => new wt(e[0], e[1], e[2], {
|
|
3351
3551
|
formatters: t,
|
|
3352
3552
|
...e[3]
|
|
3353
3553
|
})), e.message);
|
|
3354
3554
|
}(i, o);
|
|
3355
3555
|
try {
|
|
3356
3556
|
u = o.getMessageFormat(t, c, function(e, t, n) {
|
|
3357
|
-
let r =
|
|
3557
|
+
let r = wt.formats.date, i = wt.formats.time, a = {
|
|
3358
3558
|
...e?.dateTime,
|
|
3359
3559
|
...t?.dateTime
|
|
3360
3560
|
}, o = {
|
|
@@ -3386,25 +3586,25 @@ function it(...[e, t, n, r]) {
|
|
|
3386
3586
|
})
|
|
3387
3587
|
} });
|
|
3388
3588
|
} catch {
|
|
3389
|
-
throw new
|
|
3589
|
+
throw new X(Z.INVALID_MESSAGE, void 0);
|
|
3390
3590
|
}
|
|
3391
3591
|
let d = u.format(n);
|
|
3392
|
-
return (0,
|
|
3592
|
+
return (0, ve.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3393
3593
|
}
|
|
3394
|
-
|
|
3594
|
+
Tt.raw = !0;
|
|
3395
3595
|
//#endregion
|
|
3396
3596
|
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
3397
|
-
function
|
|
3597
|
+
function Et(...e) {
|
|
3398
3598
|
return e.filter(Boolean).join(".");
|
|
3399
3599
|
}
|
|
3400
|
-
function
|
|
3401
|
-
return
|
|
3600
|
+
function Dt(e) {
|
|
3601
|
+
return Et(e.namespace, e.key);
|
|
3402
3602
|
}
|
|
3403
|
-
function
|
|
3603
|
+
function Ot(e) {
|
|
3404
3604
|
console.error(e);
|
|
3405
3605
|
}
|
|
3406
|
-
function
|
|
3407
|
-
let i =
|
|
3606
|
+
function kt(e, t, n, r) {
|
|
3607
|
+
let i = Et(r, n);
|
|
3408
3608
|
if (!t) throw Error(i);
|
|
3409
3609
|
let a = t;
|
|
3410
3610
|
return n.split(".").forEach(((t) => {
|
|
@@ -3413,21 +3613,21 @@ function ct(e, t, n, r) {
|
|
|
3413
3613
|
a = n;
|
|
3414
3614
|
})), a;
|
|
3415
3615
|
}
|
|
3416
|
-
function
|
|
3616
|
+
function At(e) {
|
|
3417
3617
|
let t = function(e, t, n) {
|
|
3418
3618
|
try {
|
|
3419
3619
|
if (!t) throw Error(void 0);
|
|
3420
|
-
let r = n ?
|
|
3620
|
+
let r = n ? kt(e, t, n) : t;
|
|
3421
3621
|
if (!r) throw Error(n);
|
|
3422
3622
|
return r;
|
|
3423
3623
|
} catch (e) {
|
|
3424
|
-
return new
|
|
3624
|
+
return new X(Z.MISSING_MESSAGE, e.message);
|
|
3425
3625
|
}
|
|
3426
3626
|
}(e.locale, e.messages, e.namespace);
|
|
3427
|
-
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r =
|
|
3428
|
-
let l = a instanceof
|
|
3627
|
+
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = Dt, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3628
|
+
let l = a instanceof X;
|
|
3429
3629
|
function u(e, t, n, i) {
|
|
3430
|
-
let a = new
|
|
3630
|
+
let a = new X(t, n);
|
|
3431
3631
|
return s(a), i ?? r({
|
|
3432
3632
|
error: a,
|
|
3433
3633
|
key: e,
|
|
@@ -3446,20 +3646,20 @@ function lt(e) {
|
|
|
3446
3646
|
} else {
|
|
3447
3647
|
let e = a;
|
|
3448
3648
|
try {
|
|
3449
|
-
g =
|
|
3649
|
+
g = kt(i, e, d, o);
|
|
3450
3650
|
} catch (e) {
|
|
3451
|
-
if (!h) return u(d,
|
|
3651
|
+
if (!h) return u(d, Z.MISSING_MESSAGE, e.message, h);
|
|
3452
3652
|
g = h;
|
|
3453
3653
|
}
|
|
3454
3654
|
}
|
|
3455
3655
|
try {
|
|
3456
|
-
return
|
|
3656
|
+
return Tt(Et(o, d), g, f && function(e) {
|
|
3457
3657
|
let t = {};
|
|
3458
3658
|
return Object.keys(e).forEach(((n) => {
|
|
3459
3659
|
let r = 0, i = e[n], a;
|
|
3460
3660
|
a = typeof i == "function" ? (e) => {
|
|
3461
3661
|
let t = i(e);
|
|
3462
|
-
return (0,
|
|
3662
|
+
return (0, ve.isValidElement)(t) ? (0, ve.cloneElement)(t, { key: n + r++ }) : t;
|
|
3463
3663
|
} : i, t[n] = a;
|
|
3464
3664
|
})), t;
|
|
3465
3665
|
}(f), {
|
|
@@ -3472,12 +3672,12 @@ function lt(e) {
|
|
|
3472
3672
|
});
|
|
3473
3673
|
} catch (e) {
|
|
3474
3674
|
let t, n;
|
|
3475
|
-
return e instanceof
|
|
3675
|
+
return e instanceof X ? (t = e.code, n = e.originalMessage) : (t = Z.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3476
3676
|
}
|
|
3477
3677
|
}
|
|
3478
3678
|
function f(e, t, n, r) {
|
|
3479
3679
|
let i = d(e, t, n, r);
|
|
3480
|
-
return typeof i == "string" ? i : u(e,
|
|
3680
|
+
return typeof i == "string" ? i : u(e, Z.INVALID_MESSAGE, void 0);
|
|
3481
3681
|
}
|
|
3482
3682
|
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3483
3683
|
if (l) return s(a), r({
|
|
@@ -3487,14 +3687,14 @@ function lt(e) {
|
|
|
3487
3687
|
});
|
|
3488
3688
|
let t = a;
|
|
3489
3689
|
try {
|
|
3490
|
-
return
|
|
3690
|
+
return kt(i, t, e, o);
|
|
3491
3691
|
} catch (t) {
|
|
3492
|
-
return u(e,
|
|
3692
|
+
return u(e, Z.MISSING_MESSAGE, t.message);
|
|
3493
3693
|
}
|
|
3494
3694
|
}, f.has = (e) => {
|
|
3495
3695
|
if (l) return !1;
|
|
3496
3696
|
try {
|
|
3497
|
-
return
|
|
3697
|
+
return kt(i, a, e, o), !0;
|
|
3498
3698
|
} catch {
|
|
3499
3699
|
return !1;
|
|
3500
3700
|
}
|
|
@@ -3504,16 +3704,16 @@ function lt(e) {
|
|
|
3504
3704
|
messagesOrError: t
|
|
3505
3705
|
});
|
|
3506
3706
|
}
|
|
3507
|
-
function
|
|
3707
|
+
function jt(e, t) {
|
|
3508
3708
|
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3509
3709
|
}
|
|
3510
|
-
var
|
|
3511
|
-
7 *
|
|
3710
|
+
var Mt = 86400;
|
|
3711
|
+
7 * Mt, 365 * Mt;
|
|
3512
3712
|
//#endregion
|
|
3513
3713
|
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/core.js
|
|
3514
|
-
function
|
|
3714
|
+
function Nt({ _cache: e = pe(), _formatters: t = he(e), getMessageFallback: n = Dt, messages: r, namespace: i, onError: a = Ot, ...o }) {
|
|
3515
3715
|
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3516
|
-
return e = e[r], t =
|
|
3716
|
+
return e = e[r], t = jt(t, r), At({
|
|
3517
3717
|
...n,
|
|
3518
3718
|
messages: e,
|
|
3519
3719
|
namespace: t
|
|
@@ -3530,25 +3730,653 @@ function ft({ _cache: e = ee(), _formatters: t = W(e), getMessageFallback: n = o
|
|
|
3530
3730
|
}
|
|
3531
3731
|
//#endregion
|
|
3532
3732
|
//#region src/i18n/index.ts
|
|
3533
|
-
var
|
|
3733
|
+
var Pt = "en", Ft = (e) => Nt({
|
|
3534
3734
|
locale: e,
|
|
3535
|
-
messages:
|
|
3735
|
+
messages: L(e),
|
|
3536
3736
|
namespace: "folio"
|
|
3537
|
-
}),
|
|
3538
|
-
|
|
3539
|
-
},
|
|
3540
|
-
let e =
|
|
3737
|
+
}), It = Symbol("folioTranslator"), Lt = n(() => Ft("en")), Rt = (e = "en") => {
|
|
3738
|
+
v(It, n(() => Ft(C(e))));
|
|
3739
|
+
}, zt = () => {
|
|
3740
|
+
let e = u(It, Lt);
|
|
3541
3741
|
return { t: (t, n) => e.value(t, n) };
|
|
3542
|
-
},
|
|
3543
|
-
e.provide(
|
|
3544
|
-
} },
|
|
3742
|
+
}, Bt = { install(e, t = "en") {
|
|
3743
|
+
e.provide(It, n(() => Ft(C(t))));
|
|
3744
|
+
} }, Vt = [
|
|
3745
|
+
"disabled",
|
|
3746
|
+
"title",
|
|
3747
|
+
"aria-label"
|
|
3748
|
+
], Ht = [
|
|
3749
|
+
"disabled",
|
|
3750
|
+
"title",
|
|
3751
|
+
"aria-label",
|
|
3752
|
+
"aria-expanded"
|
|
3753
|
+
], Ut = [
|
|
3754
|
+
"disabled",
|
|
3755
|
+
"title",
|
|
3756
|
+
"aria-label",
|
|
3757
|
+
"aria-expanded"
|
|
3758
|
+
], Wt = { class: "docx-color-picker__button-stack" }, Gt = ["aria-label"], Kt = {
|
|
3545
3759
|
key: 0,
|
|
3546
|
-
class: "
|
|
3547
|
-
},
|
|
3548
|
-
|
|
3760
|
+
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--none"
|
|
3761
|
+
}, qt = {
|
|
3762
|
+
key: 1,
|
|
3763
|
+
class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--auto"
|
|
3764
|
+
}, Jt = { class: "docx-color-picker__section-label" }, Yt = { class: "docx-color-picker__grid" }, Xt = [
|
|
3765
|
+
"title",
|
|
3549
3766
|
"aria-label",
|
|
3550
|
-
"
|
|
3551
|
-
|
|
3767
|
+
"aria-selected",
|
|
3768
|
+
"onClick"
|
|
3769
|
+
], Zt = { class: "docx-color-picker__section-label" }, Qt = { class: "docx-color-picker__grid" }, $t = [
|
|
3770
|
+
"title",
|
|
3771
|
+
"aria-label",
|
|
3772
|
+
"aria-selected",
|
|
3773
|
+
"onClick"
|
|
3774
|
+
], en = { class: "docx-color-picker__section-label" }, tn = { class: "docx-color-picker__custom" }, nn = ["onKeydown"], rn = ["disabled"], an = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
3775
|
+
__name: "ColorPicker",
|
|
3776
|
+
props: {
|
|
3777
|
+
mode: {},
|
|
3778
|
+
value: {},
|
|
3779
|
+
theme: {},
|
|
3780
|
+
disabled: {
|
|
3781
|
+
type: Boolean,
|
|
3782
|
+
default: !1
|
|
3783
|
+
},
|
|
3784
|
+
className: {},
|
|
3785
|
+
style: {},
|
|
3786
|
+
title: {},
|
|
3787
|
+
icon: {},
|
|
3788
|
+
autoLabel: {},
|
|
3789
|
+
splitButton: {
|
|
3790
|
+
type: Boolean,
|
|
3791
|
+
default: !0
|
|
3792
|
+
},
|
|
3793
|
+
defaultColor: {}
|
|
3794
|
+
},
|
|
3795
|
+
emits: ["change"],
|
|
3796
|
+
setup(t, { emit: r }) {
|
|
3797
|
+
let l = t, u = r, { t: d } = zt(), f = [
|
|
3798
|
+
{
|
|
3799
|
+
nameKey: "colorPicker.colors.darkRed",
|
|
3800
|
+
hex: "C00000"
|
|
3801
|
+
},
|
|
3802
|
+
{
|
|
3803
|
+
nameKey: "colorPicker.colors.red",
|
|
3804
|
+
hex: "FF0000"
|
|
3805
|
+
},
|
|
3806
|
+
{
|
|
3807
|
+
nameKey: "colorPicker.colors.orange",
|
|
3808
|
+
hex: "FFC000"
|
|
3809
|
+
},
|
|
3810
|
+
{
|
|
3811
|
+
nameKey: "colorPicker.colors.yellow",
|
|
3812
|
+
hex: "FFFF00"
|
|
3813
|
+
},
|
|
3814
|
+
{
|
|
3815
|
+
nameKey: "colorPicker.colors.lightGreen",
|
|
3816
|
+
hex: "92D050"
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
nameKey: "colorPicker.colors.green",
|
|
3820
|
+
hex: "00B050"
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
nameKey: "colorPicker.colors.lightBlue",
|
|
3824
|
+
hex: "00B0F0"
|
|
3825
|
+
},
|
|
3826
|
+
{
|
|
3827
|
+
nameKey: "colorPicker.colors.blue",
|
|
3828
|
+
hex: "0070C0"
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
nameKey: "colorPicker.colors.darkBlue",
|
|
3832
|
+
hex: "002060"
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
nameKey: "colorPicker.colors.purple",
|
|
3836
|
+
hex: "7030A0"
|
|
3837
|
+
}
|
|
3838
|
+
];
|
|
3839
|
+
function v(e) {
|
|
3840
|
+
return e ? typeof e == "string" ? l.mode === "highlight" ? I(e) || (e === "none" ? "transparent" : e.startsWith("#") ? e : `#${e}`) : e.startsWith("#") ? e : `#${e}` : P(e, l.theme) : l.mode === "text" || l.mode === "border" ? "#000000" : "transparent";
|
|
3841
|
+
}
|
|
3842
|
+
function x(e) {
|
|
3843
|
+
return /^[0-9A-Fa-f]{6}$/.test(e.replace(/^#/, ""));
|
|
3844
|
+
}
|
|
3845
|
+
function C(e) {
|
|
3846
|
+
let t = e.replace(/^#/, "");
|
|
3847
|
+
if (t.length !== 6) return !1;
|
|
3848
|
+
let n = parseInt(t.slice(0, 2), 16), r = parseInt(t.slice(2, 4), 16), i = parseInt(t.slice(4, 6), 16);
|
|
3849
|
+
return (n * 299 + r * 587 + i * 114) / 1e3 > 230;
|
|
3850
|
+
}
|
|
3851
|
+
function T(e, t) {
|
|
3852
|
+
return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : F(e, l.theme)) === t.toUpperCase() : !1;
|
|
3853
|
+
}
|
|
3854
|
+
function E(e) {
|
|
3855
|
+
return e === "highlight" ? "FFFF00" : e === "border" ? { rgb: "000000" } : { rgb: "FF0000" };
|
|
3856
|
+
}
|
|
3857
|
+
function k(e) {
|
|
3858
|
+
return d(e === "text" ? "fontColor" : e === "highlight" ? "formattingBar.highlightColor" : "table.borderColor");
|
|
3859
|
+
}
|
|
3860
|
+
function L(e) {
|
|
3861
|
+
return e === "text" ? "format_color_text" : e === "highlight" ? "ink_highlighter" : "border_color";
|
|
3862
|
+
}
|
|
3863
|
+
let R = y(!1), z = y(""), B = y(null), V = y(null), H = y(l.defaultColor ?? E(l.mode)), ee = n(() => N(l.theme?.colorScheme ?? null)), te = n(() => ee.value.flatMap((e, t) => e.map((e, n) => ({
|
|
3864
|
+
...e,
|
|
3865
|
+
key: `${t}-${n}`
|
|
3866
|
+
})))), W = n(() => v(l.value)), G = n(() => v(H.value)), K = n(() => k(l.mode)), ne = n(() => l.icon ?? L(l.mode));
|
|
3867
|
+
O(() => [
|
|
3868
|
+
l.value,
|
|
3869
|
+
l.mode,
|
|
3870
|
+
l.theme
|
|
3871
|
+
], () => {
|
|
3872
|
+
let e = v(l.value).replace(/^#/, "");
|
|
3873
|
+
/^[0-9A-Fa-f]{6}$/.test(e) && (z.value = e.toUpperCase());
|
|
3874
|
+
}, { immediate: !0 });
|
|
3875
|
+
let re = y({});
|
|
3876
|
+
function q() {
|
|
3877
|
+
let e = B.value;
|
|
3878
|
+
if (!e) return;
|
|
3879
|
+
let t = e.getBoundingClientRect();
|
|
3880
|
+
re.value = {
|
|
3881
|
+
top: `${t.bottom + 4}px`,
|
|
3882
|
+
left: `${t.left}px`
|
|
3883
|
+
};
|
|
3884
|
+
}
|
|
3885
|
+
function ie() {
|
|
3886
|
+
l.disabled || (R.value || q(), R.value = !R.value);
|
|
3887
|
+
}
|
|
3888
|
+
function J(e, t = !0) {
|
|
3889
|
+
t && (H.value = e), u("change", e), R.value = !1;
|
|
3890
|
+
}
|
|
3891
|
+
function ae() {
|
|
3892
|
+
l.disabled || u("change", H.value);
|
|
3893
|
+
}
|
|
3894
|
+
function oe(e) {
|
|
3895
|
+
if (l.mode === "highlight") {
|
|
3896
|
+
J(e.hex);
|
|
3897
|
+
return;
|
|
3898
|
+
}
|
|
3899
|
+
let t = {
|
|
3900
|
+
themeColor: e.themeSlot,
|
|
3901
|
+
rgb: e.hex
|
|
3902
|
+
};
|
|
3903
|
+
e.tint && (t.themeTint = e.tint), e.shade && (t.themeShade = e.shade), J(t);
|
|
3904
|
+
}
|
|
3905
|
+
function Y(e) {
|
|
3906
|
+
J(l.mode === "highlight" ? e : { rgb: e });
|
|
3907
|
+
}
|
|
3908
|
+
function se() {
|
|
3909
|
+
J(l.mode === "highlight" ? "none" : { auto: !0 }, !1);
|
|
3910
|
+
}
|
|
3911
|
+
function ce() {
|
|
3912
|
+
let e = z.value.replace(/^#/, "").toUpperCase();
|
|
3913
|
+
x(e) && (J(l.mode === "highlight" ? e : { rgb: e }), z.value = "");
|
|
3914
|
+
}
|
|
3915
|
+
function le(e) {
|
|
3916
|
+
e.target instanceof HTMLInputElement || e.preventDefault();
|
|
3917
|
+
}
|
|
3918
|
+
function ue(e) {
|
|
3919
|
+
if (!R.value) return;
|
|
3920
|
+
let t = e.target;
|
|
3921
|
+
t instanceof Node && (B.value?.contains(t) || V.value?.contains(t) || (R.value = !1));
|
|
3922
|
+
}
|
|
3923
|
+
return g(() => document.addEventListener("mousedown", ue)), h(() => document.removeEventListener("mousedown", ue)), (n, r) => (_(), a("div", {
|
|
3924
|
+
ref_key: "containerRef",
|
|
3925
|
+
ref: B,
|
|
3926
|
+
class: p(["docx-color-picker", t.className]),
|
|
3927
|
+
style: m(t.style)
|
|
3928
|
+
}, [t.splitButton ? (_(), a("div", {
|
|
3929
|
+
key: 0,
|
|
3930
|
+
class: p(["docx-color-picker__split", { "is-disabled": t.disabled }])
|
|
3931
|
+
}, [o("button", {
|
|
3932
|
+
type: "button",
|
|
3933
|
+
class: "docx-color-picker__apply",
|
|
3934
|
+
disabled: t.disabled,
|
|
3935
|
+
title: t.title ?? K.value,
|
|
3936
|
+
"aria-label": t.title ?? K.value,
|
|
3937
|
+
onMousedown: r[0] ||= M(() => {}, ["prevent"]),
|
|
3938
|
+
onClick: ae
|
|
3939
|
+
}, [c(U, {
|
|
3940
|
+
name: ne.value,
|
|
3941
|
+
size: 18
|
|
3942
|
+
}, null, 8, ["name"]), o("span", {
|
|
3943
|
+
class: p(["docx-color-picker__bar", { "is-light": G.value === "transparent" || C(G.value) }]),
|
|
3944
|
+
style: m({ background: G.value === "transparent" ? "#fff" : G.value })
|
|
3945
|
+
}, null, 6)], 40, Vt), o("button", {
|
|
3946
|
+
type: "button",
|
|
3947
|
+
class: p(["docx-color-picker__arrow", { "is-open": R.value }]),
|
|
3948
|
+
disabled: t.disabled,
|
|
3949
|
+
title: t.title ?? K.value,
|
|
3950
|
+
"aria-label": t.title ?? K.value,
|
|
3951
|
+
"aria-haspopup": "true",
|
|
3952
|
+
"aria-expanded": R.value,
|
|
3953
|
+
onMousedown: r[1] ||= M(() => {}, ["prevent"]),
|
|
3954
|
+
onClick: ie
|
|
3955
|
+
}, [c(U, {
|
|
3956
|
+
name: "arrow_drop_down",
|
|
3957
|
+
size: 18
|
|
3958
|
+
})], 42, Ht)], 2)) : (_(), a("button", {
|
|
3959
|
+
key: 1,
|
|
3960
|
+
type: "button",
|
|
3961
|
+
class: p(["docx-color-picker__button", { "is-open": R.value }]),
|
|
3962
|
+
disabled: t.disabled,
|
|
3963
|
+
title: t.title ?? K.value,
|
|
3964
|
+
"aria-label": t.title ?? K.value,
|
|
3965
|
+
"aria-haspopup": "true",
|
|
3966
|
+
"aria-expanded": R.value,
|
|
3967
|
+
onMousedown: r[2] ||= M(() => {}, ["prevent"]),
|
|
3968
|
+
onClick: ie
|
|
3969
|
+
}, [o("span", Wt, [c(U, {
|
|
3970
|
+
name: ne.value,
|
|
3971
|
+
size: 18
|
|
3972
|
+
}, null, 8, ["name"]), o("span", {
|
|
3973
|
+
class: p(["docx-color-picker__bar", { "is-light": W.value === "transparent" || C(W.value) }]),
|
|
3974
|
+
style: m({ background: W.value === "transparent" ? "#fff" : W.value })
|
|
3975
|
+
}, null, 6)]), c(U, {
|
|
3976
|
+
name: "arrow_drop_down",
|
|
3977
|
+
size: 14
|
|
3978
|
+
})], 42, Ut)), R.value && !t.disabled ? (_(), a("div", {
|
|
3979
|
+
key: 2,
|
|
3980
|
+
ref_key: "panelRef",
|
|
3981
|
+
ref: V,
|
|
3982
|
+
class: "docx-color-picker__panel",
|
|
3983
|
+
style: m(re.value),
|
|
3984
|
+
role: "dialog",
|
|
3985
|
+
"aria-label": w(d)("colorPicker.ariaLabel", { type: K.value }),
|
|
3986
|
+
onMousedown: le
|
|
3987
|
+
}, [
|
|
3988
|
+
o("button", {
|
|
3989
|
+
type: "button",
|
|
3990
|
+
class: "docx-color-picker__auto",
|
|
3991
|
+
onMousedown: r[3] ||= M(() => {}, ["prevent"]),
|
|
3992
|
+
onClick: se
|
|
3993
|
+
}, [t.mode === "highlight" ? (_(), a("span", Kt, [...r[10] ||= [o("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (_(), a("span", qt)), s(" " + S(t.autoLabel ?? (t.mode === "highlight" ? w(d)("colorPicker.noColor") : w(d)("colorPicker.automatic"))), 1)], 32),
|
|
3994
|
+
r[12] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
3995
|
+
o("div", Jt, S(w(d)("colorPicker.themeColors")), 1),
|
|
3996
|
+
o("div", Yt, [(_(!0), a(e, null, b(te.value, (e) => (_(), a("button", {
|
|
3997
|
+
key: e.key,
|
|
3998
|
+
type: "button",
|
|
3999
|
+
class: p(["docx-color-picker__cell", { "is-selected": T(t.value, e.hex) }]),
|
|
4000
|
+
style: m({ background: "#" + e.hex }),
|
|
4001
|
+
title: e.label,
|
|
4002
|
+
"aria-label": e.label,
|
|
4003
|
+
"aria-selected": T(t.value, e.hex),
|
|
4004
|
+
onMousedown: r[4] ||= M(() => {}, ["prevent"]),
|
|
4005
|
+
onClick: (t) => oe(e)
|
|
4006
|
+
}, null, 46, Xt))), 128))]),
|
|
4007
|
+
r[13] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4008
|
+
o("div", Zt, S(w(d)("colorPicker.standardColors")), 1),
|
|
4009
|
+
o("div", Qt, [(_(), a(e, null, b(f, (e) => o("button", {
|
|
4010
|
+
key: e.hex,
|
|
4011
|
+
type: "button",
|
|
4012
|
+
class: p(["docx-color-picker__cell", { "is-selected": T(t.value, e.hex) }]),
|
|
4013
|
+
style: m({ background: "#" + e.hex }),
|
|
4014
|
+
title: w(d)(e.nameKey),
|
|
4015
|
+
"aria-label": w(d)(e.nameKey),
|
|
4016
|
+
"aria-selected": T(t.value, e.hex),
|
|
4017
|
+
onMousedown: r[5] ||= M(() => {}, ["prevent"]),
|
|
4018
|
+
onClick: (t) => Y(e.hex)
|
|
4019
|
+
}, null, 46, $t)), 64))]),
|
|
4020
|
+
r[14] ||= o("div", { class: "docx-color-picker__divider" }, null, -1),
|
|
4021
|
+
o("div", en, S(w(d)("colorPicker.customColor")), 1),
|
|
4022
|
+
o("div", tn, [
|
|
4023
|
+
r[11] ||= o("span", { class: "docx-color-picker__hash" }, "#", -1),
|
|
4024
|
+
A(o("input", {
|
|
4025
|
+
"onUpdate:modelValue": r[6] ||= (e) => z.value = e,
|
|
4026
|
+
type: "text",
|
|
4027
|
+
class: "docx-color-picker__hex",
|
|
4028
|
+
placeholder: "FF0000",
|
|
4029
|
+
maxlength: "6",
|
|
4030
|
+
"aria-label": "Custom hex color",
|
|
4031
|
+
onInput: r[7] ||= (e) => z.value = z.value.replace(/[^0-9A-Fa-f]/g, "").slice(0, 6),
|
|
4032
|
+
onKeydown: j(M(ce, ["prevent"]), ["enter"]),
|
|
4033
|
+
onMousedown: r[8] ||= M(() => {}, ["stop"])
|
|
4034
|
+
}, null, 40, nn), [[D, z.value]]),
|
|
4035
|
+
o("button", {
|
|
4036
|
+
type: "button",
|
|
4037
|
+
class: "docx-color-picker__apply-btn",
|
|
4038
|
+
disabled: !x(z.value),
|
|
4039
|
+
onMousedown: r[9] ||= M(() => {}, ["prevent"]),
|
|
4040
|
+
onClick: ce
|
|
4041
|
+
}, S(w(d)("common.apply")), 41, rn)
|
|
4042
|
+
])
|
|
4043
|
+
], 44, Gt)) : i("", !0)], 6));
|
|
4044
|
+
}
|
|
4045
|
+
}), [["__scopeId", "data-v-ea5dcc9f"]]), on = ["value", "autofocus"], sn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4046
|
+
__name: "DatePickerPopover",
|
|
4047
|
+
props: {
|
|
4048
|
+
value: {},
|
|
4049
|
+
defaultOpen: {
|
|
4050
|
+
type: Boolean,
|
|
4051
|
+
default: !1
|
|
4052
|
+
}
|
|
4053
|
+
},
|
|
4054
|
+
emits: ["change"],
|
|
4055
|
+
setup(e, { emit: t }) {
|
|
4056
|
+
let r = e, i = t;
|
|
4057
|
+
function o(e) {
|
|
4058
|
+
return e === null ? "" : e instanceof Date ? `${e.getFullYear().toString().padStart(4, "0")}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${e.getDate().toString().padStart(2, "0")}` : e.length >= 10 ? e.slice(0, 10) : e;
|
|
4059
|
+
}
|
|
4060
|
+
let s = n(() => o(r.value));
|
|
4061
|
+
function c(e) {
|
|
4062
|
+
e.target instanceof HTMLInputElement && i("change", e.target.value || null);
|
|
4063
|
+
}
|
|
4064
|
+
return (t, n) => (_(), a("input", {
|
|
4065
|
+
class: "folio-default-date-input",
|
|
4066
|
+
type: "date",
|
|
4067
|
+
value: s.value,
|
|
4068
|
+
autofocus: e.defaultOpen,
|
|
4069
|
+
onChange: c
|
|
4070
|
+
}, null, 40, on));
|
|
4071
|
+
}
|
|
4072
|
+
}), [["__scopeId", "data-v-9009c416"]]), cn = ["aria-label"], ln = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4073
|
+
inheritAttrs: !1,
|
|
4074
|
+
__name: "Dialog",
|
|
4075
|
+
props: {
|
|
4076
|
+
open: { type: Boolean },
|
|
4077
|
+
ariaLabel: {},
|
|
4078
|
+
className: {},
|
|
4079
|
+
backdropClass: {},
|
|
4080
|
+
closeOnBackdrop: {
|
|
4081
|
+
type: Boolean,
|
|
4082
|
+
default: !0
|
|
4083
|
+
}
|
|
4084
|
+
},
|
|
4085
|
+
emits: ["update:open", "close"],
|
|
4086
|
+
setup(e, { emit: n }) {
|
|
4087
|
+
let s = e, c = n;
|
|
4088
|
+
function l() {
|
|
4089
|
+
c("update:open", !1), c("close");
|
|
4090
|
+
}
|
|
4091
|
+
function u() {
|
|
4092
|
+
s.closeOnBackdrop && l();
|
|
4093
|
+
}
|
|
4094
|
+
return (n, s) => (_(), r(t, { to: "body" }, [e.open ? (_(), a("div", {
|
|
4095
|
+
key: 0,
|
|
4096
|
+
class: p(["folio-default-dialog-backdrop", e.backdropClass]),
|
|
4097
|
+
onMousedown: M(u, ["self"])
|
|
4098
|
+
}, [o("div", d({
|
|
4099
|
+
class: ["folio-default-dialog-popup", e.className],
|
|
4100
|
+
role: "dialog",
|
|
4101
|
+
"aria-label": e.ariaLabel
|
|
4102
|
+
}, n.$attrs, {
|
|
4103
|
+
onKeydown: j(l, ["escape"]),
|
|
4104
|
+
onMousedown: s[0] ||= M(() => {}, ["stop"])
|
|
4105
|
+
}), [x(n.$slots, "default", {}, void 0, !0)], 16, cn)], 34)) : i("", !0)]));
|
|
4106
|
+
}
|
|
4107
|
+
}), [["__scopeId", "data-v-e043cdc9"]]), un = ["value"], dn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4108
|
+
__name: "Input",
|
|
4109
|
+
props: {
|
|
4110
|
+
modelValue: {},
|
|
4111
|
+
className: {},
|
|
4112
|
+
size: { default: "default" }
|
|
4113
|
+
},
|
|
4114
|
+
emits: ["update:modelValue"],
|
|
4115
|
+
setup(e, { expose: t, emit: n }) {
|
|
4116
|
+
let r = n;
|
|
4117
|
+
function i(e) {
|
|
4118
|
+
e.target instanceof HTMLInputElement && r("update:modelValue", e.target.value);
|
|
4119
|
+
}
|
|
4120
|
+
let o = y(null);
|
|
4121
|
+
return t({
|
|
4122
|
+
focus: () => o.value?.focus(),
|
|
4123
|
+
select: () => o.value?.select()
|
|
4124
|
+
}), (t, n) => (_(), a("input", {
|
|
4125
|
+
ref_key: "inputRef",
|
|
4126
|
+
ref: o,
|
|
4127
|
+
class: p(["folio-default-input", [e.className, e.size && `folio-default-input--${e.size}`]]),
|
|
4128
|
+
value: e.modelValue,
|
|
4129
|
+
onInput: i
|
|
4130
|
+
}, null, 42, un));
|
|
4131
|
+
}
|
|
4132
|
+
}), [["__scopeId", "data-v-bfe0d407"]]), fn = 4, pn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4133
|
+
__name: "Popover",
|
|
4134
|
+
props: {
|
|
4135
|
+
open: { type: Boolean },
|
|
4136
|
+
placement: { default: "bottom-left" },
|
|
4137
|
+
panelClass: {},
|
|
4138
|
+
panelStyle: {},
|
|
4139
|
+
closeOnScroll: {
|
|
4140
|
+
type: Boolean,
|
|
4141
|
+
default: !0
|
|
4142
|
+
}
|
|
4143
|
+
},
|
|
4144
|
+
emits: ["close", "update:open"],
|
|
4145
|
+
setup(e, { emit: t }) {
|
|
4146
|
+
let n = e, r = t, o = y(null), s = y(null), c = y({ position: "fixed" });
|
|
4147
|
+
function l() {
|
|
4148
|
+
let e = o.value;
|
|
4149
|
+
if (!e) return;
|
|
4150
|
+
let t = e.getBoundingClientRect(), r = { position: "fixed" };
|
|
4151
|
+
n.placement.startsWith("top") ? (r.bottom = `${Math.round(window.innerHeight - t.top + fn)}px`, r.top = "auto") : (r.top = `${Math.round(t.bottom + fn)}px`, r.bottom = "auto"), n.placement.endsWith("right") ? (r.right = `${Math.round(window.innerWidth - t.right)}px`, r.left = "auto") : (r.left = `${Math.round(t.left)}px`, r.right = "auto"), c.value = r;
|
|
4152
|
+
}
|
|
4153
|
+
function u() {
|
|
4154
|
+
r("update:open", !n.open), n.open && r("close");
|
|
4155
|
+
}
|
|
4156
|
+
function d() {
|
|
4157
|
+
r("update:open", !1), r("close");
|
|
4158
|
+
}
|
|
4159
|
+
function f(e) {
|
|
4160
|
+
if (!n.open) return;
|
|
4161
|
+
let t = e.target;
|
|
4162
|
+
t instanceof Node && (o.value?.contains(t) || s.value?.contains(t) || d());
|
|
4163
|
+
}
|
|
4164
|
+
function v(e) {
|
|
4165
|
+
e.key === "Escape" && n.open && d();
|
|
4166
|
+
}
|
|
4167
|
+
function b(e) {
|
|
4168
|
+
!n.closeOnScroll || !n.open || e.target instanceof Node && s.value?.contains(e.target) || d();
|
|
4169
|
+
}
|
|
4170
|
+
function S() {
|
|
4171
|
+
n.open && l();
|
|
4172
|
+
}
|
|
4173
|
+
function C() {
|
|
4174
|
+
document.addEventListener("mousedown", f), document.addEventListener("keydown", v), window.addEventListener("scroll", b, !0), window.addEventListener("resize", S);
|
|
4175
|
+
}
|
|
4176
|
+
function w() {
|
|
4177
|
+
document.removeEventListener("mousedown", f), document.removeEventListener("keydown", v), window.removeEventListener("scroll", b, !0), window.removeEventListener("resize", S);
|
|
4178
|
+
}
|
|
4179
|
+
return O(() => n.open, (e) => {
|
|
4180
|
+
e ? (l(), C()) : w();
|
|
4181
|
+
}), O(() => n.placement, () => n.open && l()), g(() => {
|
|
4182
|
+
n.open && (l(), C());
|
|
4183
|
+
}), h(w), (t, n) => (_(), a("span", {
|
|
4184
|
+
ref_key: "rootRef",
|
|
4185
|
+
ref: o,
|
|
4186
|
+
class: "docx-popover"
|
|
4187
|
+
}, [x(t.$slots, "trigger", {
|
|
4188
|
+
toggle: u,
|
|
4189
|
+
open: e.open
|
|
4190
|
+
}, void 0, !0), e.open ? (_(), a("div", {
|
|
4191
|
+
key: 0,
|
|
4192
|
+
ref_key: "panelRef",
|
|
4193
|
+
ref: s,
|
|
4194
|
+
class: p(["docx-popover__panel", e.panelClass]),
|
|
4195
|
+
style: m([c.value, e.panelStyle ?? {}]),
|
|
4196
|
+
onMousedown: n[0] ||= M(() => {}, ["stop"])
|
|
4197
|
+
}, [x(t.$slots, "panel", {}, void 0, !0)], 38)) : i("", !0)], 512));
|
|
4198
|
+
}
|
|
4199
|
+
}), [["__scopeId", "data-v-0f634953"]]), mn = ["disabled", "onClick"], hn = {
|
|
4200
|
+
key: 0,
|
|
4201
|
+
class: "docx-menu-dropdown__separator"
|
|
4202
|
+
}, gn = ["onMouseenter", "onMouseleave"], _n = ["disabled", "onClick"], vn = { class: "docx-menu-dropdown__label" }, yn = {
|
|
4203
|
+
key: 1,
|
|
4204
|
+
class: "docx-menu-dropdown__shortcut"
|
|
4205
|
+
}, bn = {
|
|
4206
|
+
key: 2,
|
|
4207
|
+
class: "docx-menu-dropdown__chevron"
|
|
4208
|
+
}, xn = {
|
|
4209
|
+
key: 0,
|
|
4210
|
+
class: "docx-menu-dropdown__submenu"
|
|
4211
|
+
}, Sn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4212
|
+
__name: "MenuDropdown",
|
|
4213
|
+
props: {
|
|
4214
|
+
label: {},
|
|
4215
|
+
items: {},
|
|
4216
|
+
disabled: { type: Boolean },
|
|
4217
|
+
showChevron: {
|
|
4218
|
+
type: Boolean,
|
|
4219
|
+
default: !1
|
|
4220
|
+
}
|
|
4221
|
+
},
|
|
4222
|
+
setup(t) {
|
|
4223
|
+
function n(e) {
|
|
4224
|
+
return "type" in e && e.type === "separator";
|
|
4225
|
+
}
|
|
4226
|
+
let l = y(!1), u = y(null);
|
|
4227
|
+
function d() {
|
|
4228
|
+
l.value = !1, u.value = null;
|
|
4229
|
+
}
|
|
4230
|
+
function f(e) {
|
|
4231
|
+
e.disabled || e.submenu || (e.onClick?.(), d());
|
|
4232
|
+
}
|
|
4233
|
+
return (m, h) => (_(), r(pn, {
|
|
4234
|
+
open: l.value,
|
|
4235
|
+
"onUpdate:open": h[2] ||= (e) => l.value = e,
|
|
4236
|
+
onClose: d
|
|
4237
|
+
}, {
|
|
4238
|
+
trigger: k(({ toggle: e }) => [o("button", {
|
|
4239
|
+
type: "button",
|
|
4240
|
+
class: p(["docx-menu-dropdown__trigger", { "docx-menu-dropdown__trigger--open": l.value }]),
|
|
4241
|
+
disabled: t.disabled,
|
|
4242
|
+
onMousedown: h[0] ||= M(() => {}, ["prevent"]),
|
|
4243
|
+
onClick: M(e, ["prevent"])
|
|
4244
|
+
}, [s(S(t.label) + " ", 1), t.showChevron ? (_(), r(U, {
|
|
4245
|
+
key: 0,
|
|
4246
|
+
name: "arrow_drop_down",
|
|
4247
|
+
size: 16
|
|
4248
|
+
})) : i("", !0)], 42, mn)]),
|
|
4249
|
+
panel: k(() => [o("div", {
|
|
4250
|
+
class: "docx-menu-dropdown__menu",
|
|
4251
|
+
onMousedown: h[1] ||= M(() => {}, ["prevent"])
|
|
4252
|
+
}, [(_(!0), a(e, null, b(t.items, (t, s) => (_(), a(e, { key: s }, [n(t) ? (_(), a("div", hn)) : (_(), a("div", {
|
|
4253
|
+
key: 1,
|
|
4254
|
+
class: "docx-menu-dropdown__wrap",
|
|
4255
|
+
onMouseenter: (e) => t.submenu ? u.value = s : void 0,
|
|
4256
|
+
onMouseleave: (e) => t.submenu ? u.value = null : void 0
|
|
4257
|
+
}, [o("button", {
|
|
4258
|
+
type: "button",
|
|
4259
|
+
class: p(["docx-menu-dropdown__item", { "docx-menu-dropdown__item--disabled": t.disabled }]),
|
|
4260
|
+
disabled: t.disabled,
|
|
4261
|
+
onClick: M((e) => f(t), ["prevent"])
|
|
4262
|
+
}, [
|
|
4263
|
+
t.icon ? (_(), r(U, {
|
|
4264
|
+
key: 0,
|
|
4265
|
+
name: t.icon,
|
|
4266
|
+
size: 18
|
|
4267
|
+
}, null, 8, ["name"])) : i("", !0),
|
|
4268
|
+
o("span", vn, S(t.label), 1),
|
|
4269
|
+
t.shortcut ? (_(), a("span", yn, S(t.shortcut), 1)) : i("", !0),
|
|
4270
|
+
t.submenu ? (_(), a("span", bn, [c(U, {
|
|
4271
|
+
name: "keyboard_arrow_right",
|
|
4272
|
+
size: 16
|
|
4273
|
+
})])) : i("", !0)
|
|
4274
|
+
], 10, _n), t.submenu && u.value === s ? (_(), a("div", xn, [x(m.$slots, "submenu", {
|
|
4275
|
+
item: t,
|
|
4276
|
+
closeMenu: d
|
|
4277
|
+
}, void 0, !0)])) : i("", !0)], 40, gn))], 64))), 128))], 32)]),
|
|
4278
|
+
_: 3
|
|
4279
|
+
}, 8, ["open"]));
|
|
4280
|
+
}
|
|
4281
|
+
}), [["__scopeId", "data-v-d89898cc"]]), Cn = ["aria-label"], wn = [
|
|
4282
|
+
"aria-current",
|
|
4283
|
+
"title",
|
|
4284
|
+
"onMousedown"
|
|
4285
|
+
], Tn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4286
|
+
__name: "OutlineRail",
|
|
4287
|
+
props: {
|
|
4288
|
+
items: {},
|
|
4289
|
+
getScrollContainer: { type: Function },
|
|
4290
|
+
onJump: { type: Function },
|
|
4291
|
+
activeId: {},
|
|
4292
|
+
ariaLabel: {}
|
|
4293
|
+
},
|
|
4294
|
+
setup(t) {
|
|
4295
|
+
let n = t;
|
|
4296
|
+
function r(e) {
|
|
4297
|
+
let t = n.getScrollContainer();
|
|
4298
|
+
t && n.onJump(e, t);
|
|
4299
|
+
}
|
|
4300
|
+
return (n, s) => t.items.length > 0 ? (_(), a("ul", {
|
|
4301
|
+
key: 0,
|
|
4302
|
+
class: "folio-default-outline-list",
|
|
4303
|
+
"aria-label": t.ariaLabel
|
|
4304
|
+
}, [(_(!0), a(e, null, b(t.items, (e) => (_(), a("li", { key: e.id }, [o("button", {
|
|
4305
|
+
type: "button",
|
|
4306
|
+
class: p(["folio-default-outline-item", { "folio-default-outline-item--active": e.id === t.activeId }]),
|
|
4307
|
+
"aria-current": e.id === t.activeId ? "true" : void 0,
|
|
4308
|
+
style: m({ paddingInlineStart: `${e.level * 16 + 8}px` }),
|
|
4309
|
+
title: e.label,
|
|
4310
|
+
onMousedown: M((t) => r(e.id), ["prevent"])
|
|
4311
|
+
}, S(e.label), 47, wn)]))), 128))], 8, Cn)) : i("", !0);
|
|
4312
|
+
}
|
|
4313
|
+
}), [["__scopeId", "data-v-3ae44c67"]]), En = ["disabled", "value"], Dn = {
|
|
4314
|
+
key: 0,
|
|
4315
|
+
disabled: "",
|
|
4316
|
+
value: ""
|
|
4317
|
+
}, On = ["disabled", "value"], kn = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4318
|
+
__name: "Select",
|
|
4319
|
+
props: {
|
|
4320
|
+
value: {},
|
|
4321
|
+
items: {},
|
|
4322
|
+
disabled: { type: Boolean },
|
|
4323
|
+
placeholder: {},
|
|
4324
|
+
className: {}
|
|
4325
|
+
},
|
|
4326
|
+
emits: ["change"],
|
|
4327
|
+
setup(t, { emit: n }) {
|
|
4328
|
+
let r = n;
|
|
4329
|
+
function o(e) {
|
|
4330
|
+
e.target instanceof HTMLSelectElement && r("change", e.target.value);
|
|
4331
|
+
}
|
|
4332
|
+
return (n, r) => (_(), a("select", {
|
|
4333
|
+
class: p(["folio-default-select", t.className]),
|
|
4334
|
+
disabled: t.disabled,
|
|
4335
|
+
value: t.value,
|
|
4336
|
+
onChange: o
|
|
4337
|
+
}, [t.placeholder && t.value === void 0 ? (_(), a("option", Dn, S(t.placeholder), 1)) : i("", !0), (_(!0), a(e, null, b(t.items, (e) => (_(), a("option", {
|
|
4338
|
+
key: e.value,
|
|
4339
|
+
disabled: e.disabled,
|
|
4340
|
+
value: e.value
|
|
4341
|
+
}, S(e.label), 9, On))), 128))], 42, En));
|
|
4342
|
+
}
|
|
4343
|
+
}), [["__scopeId", "data-v-ddb0c377"]]), An = {
|
|
4344
|
+
Button: K,
|
|
4345
|
+
Dialog: ln,
|
|
4346
|
+
Select: kn,
|
|
4347
|
+
Menu: Sn,
|
|
4348
|
+
Popover: pn,
|
|
4349
|
+
Input: dn,
|
|
4350
|
+
Checkbox: re,
|
|
4351
|
+
ColorPicker: an,
|
|
4352
|
+
DatePickerPopover: sn,
|
|
4353
|
+
OutlineRail: Tn
|
|
4354
|
+
}, jn = Symbol("folio-ui-components");
|
|
4355
|
+
function Mn(e) {
|
|
4356
|
+
return e ? {
|
|
4357
|
+
...An,
|
|
4358
|
+
...e
|
|
4359
|
+
} : An;
|
|
4360
|
+
}
|
|
4361
|
+
function Nn(e) {
|
|
4362
|
+
v(jn, Mn(e));
|
|
4363
|
+
}
|
|
4364
|
+
function Pn() {
|
|
4365
|
+
return u(jn, An);
|
|
4366
|
+
}
|
|
4367
|
+
var Fn = l({
|
|
4368
|
+
name: "FolioUIProvider",
|
|
4369
|
+
props: { components: {
|
|
4370
|
+
type: Object,
|
|
4371
|
+
default: void 0
|
|
4372
|
+
} },
|
|
4373
|
+
setup(e, { slots: t }) {
|
|
4374
|
+
return Nn(e.components), () => t.default?.();
|
|
4375
|
+
}
|
|
4376
|
+
}), In = { class: "find-replace-dialog__header" }, Ln = { class: "find-replace-dialog__title" }, Rn = { class: "find-replace-dialog__body" }, zn = { class: "find-replace-dialog__row" }, Bn = { class: "find-replace-dialog__count" }, Vn = { class: "find-replace-dialog__options" }, Hn = {
|
|
4377
|
+
key: 0,
|
|
4378
|
+
class: "find-replace-dialog__row"
|
|
4379
|
+
}, Un = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
3552
4380
|
__name: "FindReplaceDialog",
|
|
3553
4381
|
props: {
|
|
3554
4382
|
isOpen: { type: Boolean },
|
|
@@ -3556,25 +4384,25 @@ var pt = "en", mt = (e) => ft({
|
|
|
3556
4384
|
scrollVisiblePositionIntoView: { type: Function }
|
|
3557
4385
|
},
|
|
3558
4386
|
emits: ["close"],
|
|
3559
|
-
setup(e, { emit:
|
|
3560
|
-
let { t:
|
|
3561
|
-
current:
|
|
3562
|
-
total:
|
|
4387
|
+
setup(e, { emit: t }) {
|
|
4388
|
+
let { t: r } = zt(), { Button: l, Input: u, Checkbox: d } = Pn(), m = e, h = t, g = y(null), v = y(""), b = y(""), x = y(!1), C = y(!1), T = y(!1), E = y([]), D = y(-1), A = n(() => v.value.trim() ? E.value.length === 0 ? r("findReplace.noResults") : D.value < 0 ? r("dialogs.findReplace.matchesFound", { total: E.value.length }) : r("findReplace.matchCounter", {
|
|
4389
|
+
current: D.value + 1,
|
|
4390
|
+
total: E.value.length
|
|
3563
4391
|
}) : "");
|
|
3564
|
-
|
|
3565
|
-
e ? (await
|
|
4392
|
+
O(() => m.isOpen, async (e) => {
|
|
4393
|
+
e ? (await f(), g.value?.focus(), g.value?.select(), P()) : V();
|
|
3566
4394
|
});
|
|
3567
|
-
function M() {
|
|
3568
|
-
z(), p("close");
|
|
3569
|
-
}
|
|
3570
4395
|
function N() {
|
|
3571
|
-
|
|
3572
|
-
|
|
4396
|
+
V(), h("close");
|
|
4397
|
+
}
|
|
4398
|
+
function P() {
|
|
4399
|
+
E.value = [], D.value = -1;
|
|
4400
|
+
let e = m.view;
|
|
3573
4401
|
if (!e || !v.value.trim()) {
|
|
3574
|
-
|
|
4402
|
+
V();
|
|
3575
4403
|
return;
|
|
3576
4404
|
}
|
|
3577
|
-
let t = e.state.doc, n = v.value, r = !
|
|
4405
|
+
let t = e.state.doc, n = v.value, r = !x.value, i = [];
|
|
3578
4406
|
t.descendants((e, a) => {
|
|
3579
4407
|
if (!e.isTextblock) return !0;
|
|
3580
4408
|
let o = t.textBetween(a + 1, a + e.nodeSize - 1, "", "");
|
|
@@ -3582,7 +4410,7 @@ var pt = "en", mt = (e) => ft({
|
|
|
3582
4410
|
let s = r ? n.toLowerCase() : n, c = r ? o.toLowerCase() : o, l = 0;
|
|
3583
4411
|
for (; l < c.length;) {
|
|
3584
4412
|
let e;
|
|
3585
|
-
if (
|
|
4413
|
+
if (C.value) {
|
|
3586
4414
|
let t = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = r ? "gi" : "g", i = RegExp(`\\b${t}\\b`, n);
|
|
3587
4415
|
i.lastIndex = l;
|
|
3588
4416
|
let a = i.exec(c);
|
|
@@ -3596,145 +4424,188 @@ var pt = "en", mt = (e) => ft({
|
|
|
3596
4424
|
}), l = e + Math.max(1, n.length);
|
|
3597
4425
|
}
|
|
3598
4426
|
return !1;
|
|
3599
|
-
}),
|
|
4427
|
+
}), E.value = i, i.length > 0 && (D.value = 0, F(0));
|
|
3600
4428
|
}
|
|
3601
|
-
function
|
|
3602
|
-
let t =
|
|
3603
|
-
if (!t ||
|
|
3604
|
-
let n =
|
|
4429
|
+
function F(e) {
|
|
4430
|
+
let t = m.view;
|
|
4431
|
+
if (!t || E.value.length === 0) return;
|
|
4432
|
+
let n = E.value.at(e);
|
|
3605
4433
|
if (!n) return;
|
|
3606
|
-
|
|
4434
|
+
D.value = e;
|
|
3607
4435
|
let { from: r, to: i } = n;
|
|
3608
4436
|
try {
|
|
3609
|
-
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a =
|
|
3610
|
-
t.dispatch(t.state.tr.setSelection(a)),
|
|
4437
|
+
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a = R.between(e, n);
|
|
4438
|
+
t.dispatch(t.state.tr.setSelection(a)), m.scrollVisiblePositionIntoView?.(r);
|
|
3611
4439
|
} catch {}
|
|
3612
4440
|
}
|
|
3613
|
-
function
|
|
3614
|
-
if (
|
|
3615
|
-
|
|
4441
|
+
function I() {
|
|
4442
|
+
if (E.value.length === 0) {
|
|
4443
|
+
P();
|
|
3616
4444
|
return;
|
|
3617
4445
|
}
|
|
3618
|
-
|
|
3619
|
-
}
|
|
3620
|
-
function I() {
|
|
3621
|
-
k.value.length !== 0 && P((A.value - 1 + k.value.length) % k.value.length);
|
|
4446
|
+
F((D.value + 1) % E.value.length);
|
|
3622
4447
|
}
|
|
3623
4448
|
function L() {
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
4449
|
+
E.value.length !== 0 && F((D.value - 1 + E.value.length) % E.value.length);
|
|
4450
|
+
}
|
|
4451
|
+
function z() {
|
|
4452
|
+
let e = m.view;
|
|
4453
|
+
if (!e || D.value < 0 || E.value.length === 0) return;
|
|
4454
|
+
let t = E.value.at(D.value);
|
|
3627
4455
|
if (t) {
|
|
3628
4456
|
try {
|
|
3629
|
-
let n =
|
|
4457
|
+
let n = b.value ? e.state.tr.replaceWith(t.from, t.to, e.state.schema.text(b.value)) : e.state.tr.delete(t.from, t.to);
|
|
3630
4458
|
e.dispatch(n);
|
|
3631
4459
|
} catch {}
|
|
3632
|
-
|
|
4460
|
+
P();
|
|
3633
4461
|
}
|
|
3634
4462
|
}
|
|
3635
|
-
function
|
|
3636
|
-
let e =
|
|
3637
|
-
if (!e ||
|
|
3638
|
-
let t = [...
|
|
4463
|
+
function B() {
|
|
4464
|
+
let e = m.view;
|
|
4465
|
+
if (!e || E.value.length === 0) return;
|
|
4466
|
+
let t = [...E.value].sort((e, t) => t.from - e.from), n = e.state.tr;
|
|
3639
4467
|
for (let r of t) try {
|
|
3640
|
-
n =
|
|
4468
|
+
n = b.value ? n.replaceWith(r.from, r.to, e.state.schema.text(b.value)) : n.delete(r.from, r.to);
|
|
3641
4469
|
} catch {}
|
|
3642
|
-
e.dispatch(n),
|
|
4470
|
+
e.dispatch(n), P();
|
|
3643
4471
|
}
|
|
3644
|
-
function
|
|
3645
|
-
|
|
4472
|
+
function V() {
|
|
4473
|
+
E.value = [], D.value = -1;
|
|
3646
4474
|
}
|
|
3647
|
-
function
|
|
3648
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ?
|
|
4475
|
+
function H(e) {
|
|
4476
|
+
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? L() : I()) : e.key === "Escape" && N();
|
|
3649
4477
|
}
|
|
3650
|
-
return (t,
|
|
4478
|
+
return (t, n) => e.isOpen ? (_(), a("div", {
|
|
3651
4479
|
key: 0,
|
|
3652
4480
|
class: "find-replace-dialog",
|
|
3653
|
-
onMousedown:
|
|
3654
|
-
onKeydown:
|
|
3655
|
-
}, [
|
|
4481
|
+
onMousedown: n[5] ||= M(() => {}, ["stop"]),
|
|
4482
|
+
onKeydown: n[6] ||= M(() => {}, ["stop"])
|
|
4483
|
+
}, [o("div", In, [o("span", Ln, S(T.value ? w(r)("findReplace.findAndReplace") : w(r)("findReplace.find")), 1), c(w(l), {
|
|
3656
4484
|
class: "find-replace-dialog__close",
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
4485
|
+
variant: "ghost",
|
|
4486
|
+
size: "icon-xs",
|
|
4487
|
+
onClick: N,
|
|
4488
|
+
title: w(r)("findReplace.close")
|
|
4489
|
+
}, {
|
|
4490
|
+
default: k(() => [...n[7] ||= [s(" ✕ ", -1)]]),
|
|
4491
|
+
_: 1
|
|
4492
|
+
}, 8, ["title"])]), o("div", Rn, [
|
|
4493
|
+
o("div", zn, [
|
|
4494
|
+
c(w(u), {
|
|
3662
4495
|
ref_key: "searchInputRef",
|
|
3663
|
-
ref:
|
|
3664
|
-
|
|
4496
|
+
ref: g,
|
|
4497
|
+
modelValue: v.value,
|
|
4498
|
+
"onUpdate:modelValue": n[0] ||= (e) => v.value = e,
|
|
3665
4499
|
class: "find-replace-dialog__input",
|
|
3666
|
-
placeholder:
|
|
3667
|
-
"aria-label":
|
|
3668
|
-
onKeydown:
|
|
3669
|
-
onInput:
|
|
3670
|
-
}, null,
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
4500
|
+
placeholder: w(r)("findReplace.findPlaceholder"),
|
|
4501
|
+
"aria-label": w(r)("findReplace.findText"),
|
|
4502
|
+
onKeydown: H,
|
|
4503
|
+
onInput: P
|
|
4504
|
+
}, null, 8, [
|
|
4505
|
+
"modelValue",
|
|
4506
|
+
"placeholder",
|
|
4507
|
+
"aria-label"
|
|
4508
|
+
]),
|
|
4509
|
+
o("span", Bn, S(A.value), 1),
|
|
4510
|
+
c(w(l), {
|
|
4511
|
+
variant: "ghost",
|
|
4512
|
+
size: "icon-xs",
|
|
4513
|
+
title: w(r)("findReplace.previous"),
|
|
4514
|
+
onMousedown: M(L, ["prevent"])
|
|
4515
|
+
}, {
|
|
4516
|
+
default: k(() => [...n[8] ||= [s("▲", -1)]]),
|
|
4517
|
+
_: 1
|
|
4518
|
+
}, 8, ["title"]),
|
|
4519
|
+
c(w(l), {
|
|
4520
|
+
variant: "ghost",
|
|
4521
|
+
size: "icon-xs",
|
|
4522
|
+
title: w(r)("findReplace.next"),
|
|
4523
|
+
onMousedown: M(I, ["prevent"])
|
|
4524
|
+
}, {
|
|
4525
|
+
default: k(() => [...n[9] ||= [s("▼", -1)]]),
|
|
4526
|
+
_: 1
|
|
4527
|
+
}, 8, ["title"])
|
|
3680
4528
|
]),
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
"onUpdate:
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
4529
|
+
o("div", Vn, [
|
|
4530
|
+
o("label", null, [c(w(d), {
|
|
4531
|
+
checked: x.value,
|
|
4532
|
+
"onUpdate:checked": n[1] ||= (e) => {
|
|
4533
|
+
x.value = e, P();
|
|
4534
|
+
}
|
|
4535
|
+
}, null, 8, ["checked"]), s(" " + S(w(r)("findReplace.matchCase")), 1)]),
|
|
4536
|
+
o("label", null, [c(w(d), {
|
|
4537
|
+
checked: C.value,
|
|
4538
|
+
"onUpdate:checked": n[2] ||= (e) => {
|
|
4539
|
+
C.value = e, P();
|
|
4540
|
+
}
|
|
4541
|
+
}, null, 8, ["checked"]), s(" " + S(w(r)("findReplace.wholeWords")), 1)]),
|
|
4542
|
+
c(w(l), {
|
|
4543
|
+
class: p(["find-replace-dialog__toggle", { active: T.value }]),
|
|
4544
|
+
variant: "ghost",
|
|
4545
|
+
size: "xs",
|
|
4546
|
+
onMousedown: n[3] ||= M((e) => T.value = !T.value, ["prevent"]),
|
|
4547
|
+
title: w(r)("dialogs.findReplace.toggleReplace")
|
|
4548
|
+
}, {
|
|
4549
|
+
default: k(() => [s(" ↔ " + S(w(r)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4550
|
+
_: 1
|
|
4551
|
+
}, 8, ["class", "title"])
|
|
3697
4552
|
]),
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
4553
|
+
T.value ? (_(), a("div", Hn, [
|
|
4554
|
+
c(w(u), {
|
|
4555
|
+
modelValue: b.value,
|
|
4556
|
+
"onUpdate:modelValue": n[4] ||= (e) => b.value = e,
|
|
3701
4557
|
class: "find-replace-dialog__input",
|
|
3702
|
-
placeholder:
|
|
3703
|
-
"aria-label":
|
|
3704
|
-
onKeydown:
|
|
3705
|
-
}, null,
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
4558
|
+
placeholder: w(r)("findReplace.replacePlaceholder"),
|
|
4559
|
+
"aria-label": w(r)("findReplace.replaceText"),
|
|
4560
|
+
onKeydown: j(M(z, ["prevent"]), ["enter"])
|
|
4561
|
+
}, null, 8, [
|
|
4562
|
+
"modelValue",
|
|
4563
|
+
"placeholder",
|
|
4564
|
+
"aria-label",
|
|
4565
|
+
"onKeydown"
|
|
4566
|
+
]),
|
|
4567
|
+
c(w(l), {
|
|
4568
|
+
variant: "ghost",
|
|
4569
|
+
size: "xs",
|
|
4570
|
+
title: w(r)("findReplace.replaceCurrent"),
|
|
4571
|
+
onMousedown: M(z, ["prevent"])
|
|
4572
|
+
}, {
|
|
4573
|
+
default: k(() => [s(S(w(r)("dialogs.findReplace.replaceButton")), 1)]),
|
|
4574
|
+
_: 1
|
|
4575
|
+
}, 8, ["title"]),
|
|
4576
|
+
c(w(l), {
|
|
4577
|
+
variant: "ghost",
|
|
4578
|
+
size: "xs",
|
|
4579
|
+
title: w(r)("findReplace.replaceAll"),
|
|
4580
|
+
onMousedown: M(B, ["prevent"])
|
|
4581
|
+
}, {
|
|
4582
|
+
default: k(() => [s(S(w(r)("findReplace.replaceAll")), 1)]),
|
|
4583
|
+
_: 1
|
|
4584
|
+
}, 8, ["title"])
|
|
4585
|
+
])) : i("", !0)
|
|
4586
|
+
])], 32)) : i("", !0);
|
|
3716
4587
|
}
|
|
3717
|
-
}), [["__scopeId", "data-v-
|
|
4588
|
+
}), [["__scopeId", "data-v-816520e0"]]), Wn = { class: "dialog__header" }, Gn = { class: "dialog__title" }, Kn = ["aria-label"], qn = { class: "dialog__body" }, Jn = {
|
|
3718
4589
|
key: 0,
|
|
3719
4590
|
class: "link-tabs",
|
|
3720
4591
|
role: "tablist"
|
|
3721
|
-
},
|
|
4592
|
+
}, Yn = ["aria-selected"], Xn = ["aria-selected"], Zn = {
|
|
3722
4593
|
key: 1,
|
|
3723
4594
|
class: "field"
|
|
3724
|
-
},
|
|
4595
|
+
}, Qn = { class: "field__label" }, $n = [
|
|
3725
4596
|
"placeholder",
|
|
3726
4597
|
"aria-invalid",
|
|
3727
4598
|
"onKeydown"
|
|
3728
|
-
],
|
|
4599
|
+
], er = {
|
|
3729
4600
|
key: 0,
|
|
3730
4601
|
class: "field__error"
|
|
3731
|
-
},
|
|
4602
|
+
}, tr = {
|
|
3732
4603
|
key: 1,
|
|
3733
4604
|
class: "field__hint"
|
|
3734
|
-
},
|
|
4605
|
+
}, nr = {
|
|
3735
4606
|
key: 2,
|
|
3736
4607
|
class: "field"
|
|
3737
|
-
},
|
|
4608
|
+
}, rr = { class: "field__label" }, ir = ["onKeydown"], ar = { value: "" }, or = ["value"], sr = { class: "field" }, cr = { class: "field__label" }, lr = ["placeholder"], ur = { class: "field__hint" }, dr = { class: "field" }, fr = { class: "field__label" }, pr = ["placeholder"], mr = { class: "dialog__actions" }, hr = ["disabled"], gr = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
3738
4609
|
__name: "HyperlinkDialog",
|
|
3739
4610
|
props: {
|
|
3740
4611
|
isOpen: { type: Boolean },
|
|
@@ -3746,10 +4617,10 @@ var pt = "en", mt = (e) => ft({
|
|
|
3746
4617
|
"submit",
|
|
3747
4618
|
"remove"
|
|
3748
4619
|
],
|
|
3749
|
-
setup(
|
|
3750
|
-
let { t: s } =
|
|
3751
|
-
|
|
3752
|
-
|
|
4620
|
+
setup(t, { emit: r }) {
|
|
4621
|
+
let { t: s } = zt(), c = t, l = r, u = y(null), d = y(null), m = y("url"), h = y(""), g = y(""), v = y(""), x = y(""), C = y(!1), T = y(""), k = y(!1), N = n(() => c.bookmarks ?? []), P = n(() => m.value === "bookmark" ? !!g.value : !!h.value.trim() && !T.value);
|
|
4622
|
+
O(h, () => {
|
|
4623
|
+
T.value &&= "";
|
|
3753
4624
|
});
|
|
3754
4625
|
function F(e) {
|
|
3755
4626
|
let t = e.trim();
|
|
@@ -3767,136 +4638,136 @@ var pt = "en", mt = (e) => ft({
|
|
|
3767
4638
|
let t = e.trim();
|
|
3768
4639
|
return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
|
|
3769
4640
|
}
|
|
3770
|
-
|
|
4641
|
+
O(() => c.isOpen, async (e) => {
|
|
3771
4642
|
if (e) {
|
|
3772
|
-
let e =
|
|
4643
|
+
let e = c.view;
|
|
3773
4644
|
if (e) {
|
|
3774
4645
|
let { $from: t, empty: n, from: r, to: i } = e.state.selection, a = (e.state.storedMarks || t.marks()).find((e) => e.type.name === "hyperlink");
|
|
3775
4646
|
if (a) {
|
|
3776
4647
|
let e = a.attrs.href || "";
|
|
3777
|
-
e.startsWith("#") ? (
|
|
3778
|
-
} else
|
|
3779
|
-
n ?
|
|
4648
|
+
e.startsWith("#") ? (m.value = "bookmark", g.value = e.slice(1), h.value = "") : (m.value = "url", h.value = e, g.value = ""), x.value = a.attrs.tooltip || "", C.value = !0;
|
|
4649
|
+
} else m.value = "url", h.value = "", g.value = "", x.value = "", C.value = !1;
|
|
4650
|
+
n ? v.value = "" : v.value = e.state.doc.textBetween(r, i);
|
|
3780
4651
|
}
|
|
3781
|
-
await
|
|
3782
|
-
} else
|
|
4652
|
+
await f(), m.value === "bookmark" ? d.value?.focus() : u.value?.focus();
|
|
4653
|
+
} else k.value = !1, T.value = "";
|
|
3783
4654
|
});
|
|
3784
4655
|
function L() {
|
|
3785
|
-
|
|
4656
|
+
l("close");
|
|
3786
4657
|
}
|
|
3787
4658
|
function R() {
|
|
3788
|
-
if (
|
|
3789
|
-
if (!
|
|
3790
|
-
|
|
3791
|
-
bookmark:
|
|
3792
|
-
displayText:
|
|
3793
|
-
tooltip:
|
|
4659
|
+
if (m.value === "bookmark") {
|
|
4660
|
+
if (!g.value) return;
|
|
4661
|
+
l("submit", {
|
|
4662
|
+
bookmark: g.value,
|
|
4663
|
+
displayText: v.value,
|
|
4664
|
+
tooltip: x.value
|
|
3794
4665
|
}), L();
|
|
3795
4666
|
return;
|
|
3796
4667
|
}
|
|
3797
|
-
if (
|
|
3798
|
-
|
|
4668
|
+
if (k.value = !0, !F(h.value)) {
|
|
4669
|
+
T.value = h.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
|
|
3799
4670
|
return;
|
|
3800
4671
|
}
|
|
3801
|
-
|
|
3802
|
-
url: I(
|
|
3803
|
-
displayText:
|
|
3804
|
-
tooltip:
|
|
4672
|
+
l("submit", {
|
|
4673
|
+
url: I(h.value),
|
|
4674
|
+
displayText: v.value,
|
|
4675
|
+
tooltip: x.value
|
|
3805
4676
|
}), L();
|
|
3806
4677
|
}
|
|
3807
4678
|
function z() {
|
|
3808
|
-
if (
|
|
3809
|
-
if (
|
|
3810
|
-
|
|
4679
|
+
if (m.value === "url") {
|
|
4680
|
+
if (k.value = !0, !h.value.trim()) {
|
|
4681
|
+
T.value = "";
|
|
3811
4682
|
return;
|
|
3812
4683
|
}
|
|
3813
|
-
|
|
4684
|
+
T.value = F(h.value) ? "" : s("dialogs.hyperlink.invalidUrl");
|
|
3814
4685
|
}
|
|
3815
4686
|
}
|
|
3816
4687
|
function B() {
|
|
3817
|
-
|
|
4688
|
+
l("remove"), L();
|
|
3818
4689
|
}
|
|
3819
|
-
return (
|
|
4690
|
+
return (n, r) => t.isOpen ? (_(), a("div", {
|
|
3820
4691
|
key: 0,
|
|
3821
4692
|
class: "dialog-overlay",
|
|
3822
|
-
onMousedown:
|
|
3823
|
-
}, [
|
|
4693
|
+
onMousedown: M(L, ["self"])
|
|
4694
|
+
}, [o("div", {
|
|
3824
4695
|
class: "dialog",
|
|
3825
|
-
onMousedown:
|
|
3826
|
-
onKeydown:
|
|
3827
|
-
}, [
|
|
4696
|
+
onMousedown: r[6] ||= M(() => {}, ["stop"]),
|
|
4697
|
+
onKeydown: r[7] ||= M(() => {}, ["stop"])
|
|
4698
|
+
}, [o("div", Wn, [o("span", Gn, S(C.value ? w(s)("dialogs.hyperlink.titleEdit") : w(s)("dialogs.hyperlink.titleInsert")), 1), o("button", {
|
|
3828
4699
|
class: "dialog__close",
|
|
3829
|
-
"aria-label":
|
|
4700
|
+
"aria-label": w(s)("common.closeDialog"),
|
|
3830
4701
|
onClick: L
|
|
3831
|
-
}, " ✕ ", 8,
|
|
3832
|
-
N.value.length > 0 ? (
|
|
3833
|
-
class:
|
|
4702
|
+
}, " ✕ ", 8, Kn)]), o("div", qn, [
|
|
4703
|
+
N.value.length > 0 ? (_(), a("div", Jn, [o("button", {
|
|
4704
|
+
class: p(["link-tab", { active: m.value === "url" }]),
|
|
3834
4705
|
role: "tab",
|
|
3835
|
-
"aria-selected":
|
|
3836
|
-
onMousedown:
|
|
3837
|
-
},
|
|
3838
|
-
class:
|
|
4706
|
+
"aria-selected": m.value === "url",
|
|
4707
|
+
onMousedown: r[0] ||= M((e) => m.value = "url", ["prevent"])
|
|
4708
|
+
}, S(w(s)("dialogs.hyperlink.tabWebAddress")), 43, Yn), o("button", {
|
|
4709
|
+
class: p(["link-tab", { active: m.value === "bookmark" }]),
|
|
3839
4710
|
role: "tab",
|
|
3840
|
-
"aria-selected":
|
|
3841
|
-
onMousedown:
|
|
3842
|
-
},
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
4711
|
+
"aria-selected": m.value === "bookmark",
|
|
4712
|
+
onMousedown: r[1] ||= M((e) => m.value = "bookmark", ["prevent"])
|
|
4713
|
+
}, S(w(s)("dialogs.hyperlink.tabBookmark")), 43, Xn)])) : i("", !0),
|
|
4714
|
+
m.value === "url" ? (_(), a("div", Zn, [
|
|
4715
|
+
o("label", Qn, S(w(s)("dialogs.hyperlink.urlLabel")), 1),
|
|
4716
|
+
A(o("input", {
|
|
3846
4717
|
ref_key: "urlInputRef",
|
|
3847
|
-
ref:
|
|
3848
|
-
"onUpdate:modelValue":
|
|
3849
|
-
class:
|
|
3850
|
-
placeholder:
|
|
3851
|
-
"aria-invalid":
|
|
3852
|
-
onKeydown:
|
|
4718
|
+
ref: u,
|
|
4719
|
+
"onUpdate:modelValue": r[2] ||= (e) => h.value = e,
|
|
4720
|
+
class: p(["field__input", { "field__input--error": k.value && !!T.value }]),
|
|
4721
|
+
placeholder: w(s)("dialogs.hyperlink.urlPlaceholder"),
|
|
4722
|
+
"aria-invalid": k.value && !!T.value,
|
|
4723
|
+
onKeydown: j(M(R, ["prevent"]), ["enter"]),
|
|
3853
4724
|
onBlur: z
|
|
3854
|
-
}, null, 42,
|
|
3855
|
-
|
|
3856
|
-
])) : (
|
|
4725
|
+
}, null, 42, $n), [[D, h.value]]),
|
|
4726
|
+
k.value && T.value ? (_(), a("div", er, S(T.value), 1)) : (_(), a("div", tr, S(w(s)("dialogs.hyperlink.urlHint")), 1))
|
|
4727
|
+
])) : (_(), a("div", nr, [o("label", rr, S(w(s)("dialogs.hyperlink.bookmarkLabel")), 1), A(o("select", {
|
|
3857
4728
|
ref_key: "bookmarkSelectRef",
|
|
3858
|
-
ref:
|
|
3859
|
-
"onUpdate:modelValue":
|
|
4729
|
+
ref: d,
|
|
4730
|
+
"onUpdate:modelValue": r[3] ||= (e) => g.value = e,
|
|
3860
4731
|
class: "field__input",
|
|
3861
|
-
onKeydown:
|
|
3862
|
-
}, [
|
|
4732
|
+
onKeydown: j(M(R, ["prevent"]), ["enter"])
|
|
4733
|
+
}, [o("option", ar, S(w(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (_(!0), a(e, null, b(N.value, (e) => (_(), a("option", {
|
|
3863
4734
|
key: e.name,
|
|
3864
4735
|
value: e.name
|
|
3865
|
-
},
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
"onUpdate:modelValue":
|
|
4736
|
+
}, S(e.label || e.name), 9, or))), 128))], 40, ir), [[E, g.value]])])),
|
|
4737
|
+
o("div", sr, [
|
|
4738
|
+
o("label", cr, S(w(s)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
4739
|
+
A(o("input", {
|
|
4740
|
+
"onUpdate:modelValue": r[4] ||= (e) => v.value = e,
|
|
3870
4741
|
class: "field__input",
|
|
3871
|
-
placeholder:
|
|
3872
|
-
}, null, 8,
|
|
3873
|
-
|
|
4742
|
+
placeholder: w(s)("dialogs.hyperlink.displayTextPlaceholder")
|
|
4743
|
+
}, null, 8, lr), [[D, v.value]]),
|
|
4744
|
+
o("div", ur, S(w(s)("dialogs.hyperlink.displayTextHint")), 1)
|
|
3874
4745
|
]),
|
|
3875
|
-
|
|
3876
|
-
"onUpdate:modelValue":
|
|
4746
|
+
o("div", dr, [o("label", fr, S(w(s)("dialogs.hyperlink.tooltipLabel")), 1), A(o("input", {
|
|
4747
|
+
"onUpdate:modelValue": r[5] ||= (e) => x.value = e,
|
|
3877
4748
|
class: "field__input",
|
|
3878
|
-
placeholder:
|
|
3879
|
-
}, null, 8,
|
|
3880
|
-
|
|
3881
|
-
|
|
4749
|
+
placeholder: w(s)("dialogs.hyperlink.tooltipPlaceholder")
|
|
4750
|
+
}, null, 8, pr), [[D, x.value]])]),
|
|
4751
|
+
o("div", mr, [
|
|
4752
|
+
C.value ? (_(), a("button", {
|
|
3882
4753
|
key: 0,
|
|
3883
4754
|
class: "dialog__btn dialog__btn--danger",
|
|
3884
|
-
onMousedown:
|
|
3885
|
-
},
|
|
3886
|
-
|
|
3887
|
-
|
|
4755
|
+
onMousedown: M(B, ["prevent"])
|
|
4756
|
+
}, S(w(s)("dialogs.hyperlink.removeLink")), 33)) : i("", !0),
|
|
4757
|
+
r[8] ||= o("div", { style: { flex: "1" } }, null, -1),
|
|
4758
|
+
o("button", {
|
|
3888
4759
|
class: "dialog__btn",
|
|
3889
4760
|
onClick: L
|
|
3890
|
-
},
|
|
3891
|
-
|
|
4761
|
+
}, S(w(s)("common.cancel")), 1),
|
|
4762
|
+
o("button", {
|
|
3892
4763
|
class: "dialog__btn dialog__btn--primary",
|
|
3893
|
-
onMousedown:
|
|
4764
|
+
onMousedown: M(R, ["prevent"]),
|
|
3894
4765
|
disabled: !P.value
|
|
3895
|
-
},
|
|
4766
|
+
}, S(C.value ? w(s)("common.update") : w(s)("common.insert")), 41, hr)
|
|
3896
4767
|
])
|
|
3897
|
-
])], 32)], 32)) :
|
|
4768
|
+
])], 32)], 32)) : i("", !0);
|
|
3898
4769
|
}
|
|
3899
|
-
}), [["__scopeId", "data-v-
|
|
4770
|
+
}), [["__scopeId", "data-v-e1cb1c4d"]]), _r = { class: "dialog__header" }, vr = { class: "dialog__title" }, yr = ["aria-label"], br = { class: "dialog__body" }, xr = { class: "field" }, Sr = { class: "field__label" }, Cr = ["placeholder"], wr = { class: "field" }, Tr = { class: "field__label" }, Er = { value: "inline" }, Dr = { value: "wrapRight" }, Or = { value: "wrapLeft" }, kr = { value: "topAndBottom" }, Ar = { value: "behind" }, jr = { value: "inFront" }, Mr = { class: "field" }, Nr = { class: "field__label" }, Pr = { class: "field-row" }, Fr = { value: "solid" }, Ir = { value: "dashed" }, Lr = { value: "dotted" }, Rr = { value: "double" }, zr = { class: "field" }, Br = { class: "field__label" }, Vr = { class: "field-row" }, Hr = ["value"], Ur = ["value"], Wr = { class: "field__checkbox" }, Gr = { class: "dialog__actions" }, Kr = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
3900
4771
|
__name: "ImagePropertiesDialog",
|
|
3901
4772
|
props: {
|
|
3902
4773
|
isOpen: { type: Boolean },
|
|
@@ -3905,39 +4776,39 @@ var pt = "en", mt = (e) => ft({
|
|
|
3905
4776
|
},
|
|
3906
4777
|
emits: ["close"],
|
|
3907
4778
|
setup(e, { emit: t }) {
|
|
3908
|
-
let { t:
|
|
3909
|
-
|
|
3910
|
-
if (!(!e || !
|
|
3911
|
-
let e =
|
|
4779
|
+
let { t: n } = zt(), { Dialog: i } = Pn(), a = e, c = t, l = y(""), u = y("inline"), d = y(0), f = y("solid"), p = y("#000000"), m = y(200), h = y(150), g = y(!0), v = 1;
|
|
4780
|
+
O(() => a.isOpen, (e) => {
|
|
4781
|
+
if (!(!e || !a.view || a.pmPos === null)) try {
|
|
4782
|
+
let e = a.view.state.doc.nodeAt(a.pmPos);
|
|
3912
4783
|
if (e && e.type.name === "image") {
|
|
3913
4784
|
let t = e.attrs;
|
|
3914
|
-
l.value = t.alt || "",
|
|
4785
|
+
l.value = t.alt || "", d.value = t.borderWidth || 0, f.value = t.borderStyle || "solid", p.value = t.borderColor || "#000000", m.value = t.width || 200, h.value = t.height || 150, v = m.value / (h.value || 1), g.value = !0;
|
|
3915
4786
|
let n = t.displayMode, r = t.cssFloat, i = t.wrapType;
|
|
3916
|
-
n === "float" && r === "left" ?
|
|
4787
|
+
n === "float" && r === "left" ? u.value = "wrapRight" : n === "float" && r === "right" ? u.value = "wrapLeft" : n === "block" ? u.value = "topAndBottom" : i === "behind" ? u.value = "behind" : i === "inFront" ? u.value = "inFront" : u.value = "inline";
|
|
3917
4788
|
}
|
|
3918
4789
|
} catch {}
|
|
3919
4790
|
});
|
|
3920
|
-
function
|
|
4791
|
+
function b(e) {
|
|
3921
4792
|
if (!(e.target instanceof HTMLInputElement)) return;
|
|
3922
4793
|
let t = Number(e.target.value);
|
|
3923
|
-
isNaN(t) || t < 1 || (
|
|
4794
|
+
isNaN(t) || t < 1 || (m.value = t, g.value && v > 0 && (h.value = Math.round(t / v)));
|
|
3924
4795
|
}
|
|
3925
|
-
function
|
|
4796
|
+
function x(e) {
|
|
3926
4797
|
if (!(e.target instanceof HTMLInputElement)) return;
|
|
3927
4798
|
let t = Number(e.target.value);
|
|
3928
|
-
isNaN(t) || t < 1 || (
|
|
4799
|
+
isNaN(t) || t < 1 || (h.value = t, g.value && v > 0 && (m.value = Math.round(t * v)));
|
|
3929
4800
|
}
|
|
3930
|
-
function
|
|
4801
|
+
function C() {
|
|
3931
4802
|
c("close");
|
|
3932
4803
|
}
|
|
3933
4804
|
function j() {
|
|
3934
|
-
let e =
|
|
3935
|
-
if (!(!e ||
|
|
4805
|
+
let e = a.view;
|
|
4806
|
+
if (!(!e || a.pmPos === null)) {
|
|
3936
4807
|
try {
|
|
3937
|
-
let t = e.state.doc.nodeAt(
|
|
4808
|
+
let t = e.state.doc.nodeAt(a.pmPos);
|
|
3938
4809
|
if (!t || t.type.name !== "image") return;
|
|
3939
4810
|
let n = "inline", r = null, i = "inline";
|
|
3940
|
-
switch (
|
|
4811
|
+
switch (u.value) {
|
|
3941
4812
|
case "wrapRight":
|
|
3942
4813
|
n = "float", r = "left", i = "square";
|
|
3943
4814
|
break;
|
|
@@ -3957,147 +4828,150 @@ var pt = "en", mt = (e) => ft({
|
|
|
3957
4828
|
n = "inline", i = "inline";
|
|
3958
4829
|
break;
|
|
3959
4830
|
}
|
|
3960
|
-
let
|
|
4831
|
+
let o = e.state.tr.setNodeMarkup(a.pmPos, void 0, {
|
|
3961
4832
|
...t.attrs,
|
|
3962
4833
|
alt: l.value,
|
|
3963
|
-
width:
|
|
3964
|
-
height:
|
|
3965
|
-
borderWidth:
|
|
3966
|
-
borderStyle:
|
|
3967
|
-
borderColor:
|
|
4834
|
+
width: m.value,
|
|
4835
|
+
height: h.value,
|
|
4836
|
+
borderWidth: d.value || void 0,
|
|
4837
|
+
borderStyle: d.value > 0 ? f.value : void 0,
|
|
4838
|
+
borderColor: d.value > 0 ? p.value : void 0,
|
|
3968
4839
|
displayMode: n,
|
|
3969
4840
|
cssFloat: r,
|
|
3970
4841
|
wrapType: i
|
|
3971
4842
|
});
|
|
3972
|
-
e.dispatch(
|
|
4843
|
+
e.dispatch(o);
|
|
3973
4844
|
} catch {}
|
|
3974
|
-
|
|
4845
|
+
C();
|
|
3975
4846
|
}
|
|
3976
4847
|
}
|
|
3977
|
-
return (t,
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
},
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
"
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
"
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
i("option", vn, m(g(o)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4001
|
-
i("option", yn, m(g(o)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4002
|
-
i("option", bn, m(g(o)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4003
|
-
i("option", xn, m(g(o)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4004
|
-
i("option", Sn, m(g(o)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4005
|
-
i("option", Cn, m(g(o)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4006
|
-
], 512), [[v, d.value]])]),
|
|
4007
|
-
i("div", wn, [i("label", Tn, m(g(o)("dialogs.imageProperties.border")), 1), i("div", En, [
|
|
4008
|
-
i("label", null, [
|
|
4009
|
-
a(m(g(o)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4010
|
-
x(i("input", {
|
|
4011
|
-
"onUpdate:modelValue": s[2] ||= (e) => p.value = e,
|
|
4012
|
-
type: "number",
|
|
4013
|
-
min: "0",
|
|
4014
|
-
max: "20",
|
|
4015
|
-
step: "0.5",
|
|
4016
|
-
class: "field__input--small"
|
|
4017
|
-
}, null, 512), [[
|
|
4018
|
-
y,
|
|
4019
|
-
p.value,
|
|
4020
|
-
void 0,
|
|
4021
|
-
{ number: !0 }
|
|
4022
|
-
]]),
|
|
4023
|
-
a(m(g(o)("common.px")), 1)
|
|
4024
|
-
]),
|
|
4025
|
-
i("label", null, [a(m(g(o)("dialogs.imageProperties.style")) + ": ", 1), x(i("select", {
|
|
4026
|
-
"onUpdate:modelValue": s[3] ||= (e) => h.value = e,
|
|
4027
|
-
class: "field__select--small"
|
|
4848
|
+
return (t, a) => (_(), r(w(i), {
|
|
4849
|
+
open: e.isOpen,
|
|
4850
|
+
"aria-label": w(n)("dialogs.imageProperties.title"),
|
|
4851
|
+
style: {
|
|
4852
|
+
minWidth: "400px",
|
|
4853
|
+
maxWidth: "90vw"
|
|
4854
|
+
},
|
|
4855
|
+
onClose: C
|
|
4856
|
+
}, {
|
|
4857
|
+
default: k(() => [o("div", _r, [o("span", vr, S(w(n)("dialogs.imageProperties.title")), 1), o("button", {
|
|
4858
|
+
class: "dialog__close",
|
|
4859
|
+
"aria-label": w(n)("common.closeDialog"),
|
|
4860
|
+
onClick: C
|
|
4861
|
+
}, " ✕ ", 8, yr)]), o("div", br, [
|
|
4862
|
+
o("div", xr, [o("label", Sr, S(w(n)("dialogs.imageProperties.altText")), 1), A(o("textarea", {
|
|
4863
|
+
"onUpdate:modelValue": a[0] ||= (e) => l.value = e,
|
|
4864
|
+
class: "field__textarea",
|
|
4865
|
+
placeholder: w(n)("dialogs.imageProperties.altTextPlaceholder"),
|
|
4866
|
+
rows: "2"
|
|
4867
|
+
}, null, 8, Cr), [[D, l.value]])]),
|
|
4868
|
+
o("div", wr, [o("label", Tr, S(w(n)("dialogs.imageProperties.textWrapping")), 1), A(o("select", {
|
|
4869
|
+
"onUpdate:modelValue": a[1] ||= (e) => u.value = e,
|
|
4870
|
+
class: "field__select"
|
|
4028
4871
|
}, [
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4872
|
+
o("option", Er, S(w(n)("dialogs.imageProperties.wrapOptions.inline")), 1),
|
|
4873
|
+
o("option", Dr, S(w(n)("dialogs.imageProperties.wrapOptions.wrapRight")), 1),
|
|
4874
|
+
o("option", Or, S(w(n)("dialogs.imageProperties.wrapOptions.wrapLeft")), 1),
|
|
4875
|
+
o("option", kr, S(w(n)("dialogs.imageProperties.wrapOptions.topAndBottom")), 1),
|
|
4876
|
+
o("option", Ar, S(w(n)("dialogs.imageProperties.wrapOptions.behind")), 1),
|
|
4877
|
+
o("option", jr, S(w(n)("dialogs.imageProperties.wrapOptions.inFront")), 1)
|
|
4878
|
+
], 512), [[E, u.value]])]),
|
|
4879
|
+
o("div", Mr, [o("label", Nr, S(w(n)("dialogs.imageProperties.border")), 1), o("div", Pr, [
|
|
4880
|
+
o("label", null, [
|
|
4881
|
+
s(S(w(n)("dialogs.imageProperties.width")) + ": ", 1),
|
|
4882
|
+
A(o("input", {
|
|
4883
|
+
"onUpdate:modelValue": a[2] ||= (e) => d.value = e,
|
|
4884
|
+
type: "number",
|
|
4885
|
+
min: "0",
|
|
4886
|
+
max: "20",
|
|
4887
|
+
step: "0.5",
|
|
4888
|
+
class: "field__input--small"
|
|
4889
|
+
}, null, 512), [[
|
|
4890
|
+
D,
|
|
4891
|
+
d.value,
|
|
4892
|
+
void 0,
|
|
4893
|
+
{ number: !0 }
|
|
4894
|
+
]]),
|
|
4895
|
+
s(S(w(n)("common.px")), 1)
|
|
4896
|
+
]),
|
|
4897
|
+
o("label", null, [s(S(w(n)("dialogs.imageProperties.style")) + ": ", 1), A(o("select", {
|
|
4898
|
+
"onUpdate:modelValue": a[3] ||= (e) => f.value = e,
|
|
4899
|
+
class: "field__select--small"
|
|
4900
|
+
}, [
|
|
4901
|
+
o("option", Fr, S(w(n)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4902
|
+
o("option", Ir, S(w(n)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4903
|
+
o("option", Lr, S(w(n)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4904
|
+
o("option", Rr, S(w(n)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4905
|
+
], 512), [[E, f.value]])]),
|
|
4906
|
+
o("label", null, [s(S(w(n)("dialogs.imageProperties.color")) + ": ", 1), A(o("input", {
|
|
4907
|
+
"onUpdate:modelValue": a[4] ||= (e) => p.value = e,
|
|
4908
|
+
type: "color",
|
|
4909
|
+
class: "field__color"
|
|
4910
|
+
}, null, 512), [[D, p.value]])])
|
|
4064
4911
|
])]),
|
|
4065
|
-
|
|
4066
|
-
"
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4912
|
+
o("div", zr, [
|
|
4913
|
+
o("label", Br, S(w(n)("dialogs.imageProperties.dimensions")), 1),
|
|
4914
|
+
o("div", Vr, [o("label", null, [
|
|
4915
|
+
s(S(w(n)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4916
|
+
o("input", {
|
|
4917
|
+
value: m.value,
|
|
4918
|
+
type: "number",
|
|
4919
|
+
min: "1",
|
|
4920
|
+
max: "2000",
|
|
4921
|
+
class: "field__input--small",
|
|
4922
|
+
onInput: b
|
|
4923
|
+
}, null, 40, Hr),
|
|
4924
|
+
s(S(w(n)("common.px")), 1)
|
|
4925
|
+
]), o("label", null, [
|
|
4926
|
+
s(S(w(n)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
4927
|
+
o("input", {
|
|
4928
|
+
value: h.value,
|
|
4929
|
+
type: "number",
|
|
4930
|
+
min: "1",
|
|
4931
|
+
max: "2000",
|
|
4932
|
+
class: "field__input--small",
|
|
4933
|
+
onInput: x
|
|
4934
|
+
}, null, 40, Ur),
|
|
4935
|
+
s(S(w(n)("common.px")), 1)
|
|
4936
|
+
])]),
|
|
4937
|
+
o("label", Wr, [A(o("input", {
|
|
4938
|
+
"onUpdate:modelValue": a[5] ||= (e) => g.value = e,
|
|
4939
|
+
type: "checkbox"
|
|
4940
|
+
}, null, 512), [[T, g.value]]), s(" " + S(w(n)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4941
|
+
]),
|
|
4942
|
+
o("div", Gr, [o("button", {
|
|
4943
|
+
class: "dialog__btn",
|
|
4944
|
+
onClick: C
|
|
4945
|
+
}, S(w(n)("common.cancel")), 1), o("button", {
|
|
4946
|
+
class: "dialog__btn dialog__btn--primary",
|
|
4947
|
+
onMousedown: M(j, ["prevent"])
|
|
4948
|
+
}, S(w(n)("common.apply")), 33)])
|
|
4949
|
+
])]),
|
|
4950
|
+
_: 1
|
|
4951
|
+
}, 8, ["open", "aria-label"]));
|
|
4078
4952
|
}
|
|
4079
|
-
}), [["__scopeId", "data-v-
|
|
4953
|
+
}), [["__scopeId", "data-v-1af2dcf5"]]), qr = { class: "dialog__header" }, Jr = { class: "dialog__title" }, Yr = ["title"], Xr = { class: "dialog__body" }, Zr = ["placeholder"], Qr = {
|
|
4080
4954
|
key: 0,
|
|
4081
4955
|
class: "symbol-tabs"
|
|
4082
|
-
},
|
|
4956
|
+
}, $r = ["onMousedown"], ei = { class: "symbol-grid" }, ti = [
|
|
4083
4957
|
"title",
|
|
4084
4958
|
"onClick",
|
|
4085
4959
|
"onDblclick"
|
|
4086
|
-
],
|
|
4960
|
+
], ni = {
|
|
4087
4961
|
key: 0,
|
|
4088
4962
|
class: "symbol-empty"
|
|
4089
|
-
},
|
|
4963
|
+
}, ri = {
|
|
4090
4964
|
key: 1,
|
|
4091
4965
|
class: "symbol-preview"
|
|
4092
|
-
},
|
|
4966
|
+
}, ii = { class: "symbol-preview__char" }, ai = { class: "symbol-preview__info" }, oi = {
|
|
4093
4967
|
key: 2,
|
|
4094
4968
|
class: "symbol-recent"
|
|
4095
|
-
},
|
|
4969
|
+
}, si = { class: "symbol-recent__label" }, ci = ["onDblclick", "onClick"], li = { class: "dialog__actions" }, ui = ["disabled"], di = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4096
4970
|
__name: "InsertSymbolDialog",
|
|
4097
4971
|
props: { isOpen: { type: Boolean } },
|
|
4098
4972
|
emits: ["close", "insert"],
|
|
4099
|
-
setup(
|
|
4100
|
-
let { t: s } =
|
|
4973
|
+
setup(t, { emit: r }) {
|
|
4974
|
+
let { t: s } = zt(), c = t, l = r, u = y(null), d = y(""), m = y("Common"), h = y(""), g = y([]), v = [
|
|
4101
4975
|
{
|
|
4102
4976
|
name: "Common",
|
|
4103
4977
|
nameKey: "dialogs.insertSymbol.categories.common",
|
|
@@ -4590,95 +5464,95 @@ var pt = "en", mt = (e) => ft({
|
|
|
4590
5464
|
}
|
|
4591
5465
|
]
|
|
4592
5466
|
}
|
|
4593
|
-
],
|
|
5467
|
+
], x = n(() => {
|
|
4594
5468
|
let e = [];
|
|
4595
|
-
for (let t of
|
|
5469
|
+
for (let t of v) for (let n of t.symbols) e.push({
|
|
4596
5470
|
...n,
|
|
4597
5471
|
category: t.name
|
|
4598
5472
|
});
|
|
4599
5473
|
return e;
|
|
4600
|
-
}),
|
|
4601
|
-
if (
|
|
4602
|
-
let e =
|
|
4603
|
-
return
|
|
5474
|
+
}), C = n(() => {
|
|
5475
|
+
if (d.value) {
|
|
5476
|
+
let e = d.value.toLowerCase();
|
|
5477
|
+
return x.value.filter((t) => t.name.toLowerCase().includes(e) || t.char === e);
|
|
4604
5478
|
}
|
|
4605
|
-
let e =
|
|
5479
|
+
let e = v.find((e) => e.name === m.value);
|
|
4606
5480
|
return e ? e.symbols.map((t) => ({
|
|
4607
5481
|
...t,
|
|
4608
5482
|
category: e.name
|
|
4609
5483
|
})) : [];
|
|
4610
5484
|
});
|
|
4611
|
-
|
|
4612
|
-
e && (await
|
|
5485
|
+
O(() => c.isOpen, async (e) => {
|
|
5486
|
+
e && (await f(), u.value?.focus());
|
|
4613
5487
|
});
|
|
4614
|
-
function
|
|
4615
|
-
|
|
5488
|
+
function T() {
|
|
5489
|
+
l("close");
|
|
4616
5490
|
}
|
|
4617
|
-
function
|
|
4618
|
-
e && (
|
|
5491
|
+
function E(e) {
|
|
5492
|
+
e && (g.value = [e, ...g.value.filter((t) => t !== e)].slice(0, 10), l("insert", e));
|
|
4619
5493
|
}
|
|
4620
|
-
return (
|
|
5494
|
+
return (n, r) => t.isOpen ? (_(), a("div", {
|
|
4621
5495
|
key: 0,
|
|
4622
5496
|
class: "dialog-overlay",
|
|
4623
|
-
onMousedown:
|
|
4624
|
-
}, [
|
|
5497
|
+
onMousedown: M(T, ["self"])
|
|
5498
|
+
}, [o("div", {
|
|
4625
5499
|
class: "dialog symbol-dialog",
|
|
4626
|
-
onMousedown:
|
|
4627
|
-
onKeydown:
|
|
4628
|
-
}, [
|
|
5500
|
+
onMousedown: r[2] ||= M(() => {}, ["stop"]),
|
|
5501
|
+
onKeydown: r[3] ||= M(() => {}, ["stop"])
|
|
5502
|
+
}, [o("div", qr, [o("span", Jr, S(w(s)("dialogs.insertSymbol.title")), 1), o("button", {
|
|
4629
5503
|
class: "dialog__close",
|
|
4630
|
-
title:
|
|
4631
|
-
onClick:
|
|
4632
|
-
}, "✕", 8,
|
|
4633
|
-
|
|
5504
|
+
title: w(s)("common.closeDialog"),
|
|
5505
|
+
onClick: T
|
|
5506
|
+
}, "✕", 8, Yr)]), o("div", Xr, [
|
|
5507
|
+
A(o("input", {
|
|
4634
5508
|
ref_key: "searchRef",
|
|
4635
|
-
ref:
|
|
4636
|
-
"onUpdate:modelValue":
|
|
5509
|
+
ref: u,
|
|
5510
|
+
"onUpdate:modelValue": r[0] ||= (e) => d.value = e,
|
|
4637
5511
|
class: "symbol-search",
|
|
4638
|
-
placeholder:
|
|
4639
|
-
onKeydown:
|
|
4640
|
-
}, null, 40,
|
|
4641
|
-
|
|
5512
|
+
placeholder: w(s)("dialogs.insertSymbol.searchPlaceholder"),
|
|
5513
|
+
onKeydown: j(T, ["escape"])
|
|
5514
|
+
}, null, 40, Zr), [[D, d.value]]),
|
|
5515
|
+
d.value ? i("", !0) : (_(), a("div", Qr, [(_(), a(e, null, b(v, (e) => o("button", {
|
|
4642
5516
|
key: e.name,
|
|
4643
|
-
class:
|
|
4644
|
-
onMousedown:
|
|
4645
|
-
},
|
|
4646
|
-
|
|
5517
|
+
class: p(["symbol-tab", { active: m.value === e.name }]),
|
|
5518
|
+
onMousedown: M((t) => m.value = e.name, ["prevent"])
|
|
5519
|
+
}, S(w(s)(e.nameKey)), 43, $r)), 64))])),
|
|
5520
|
+
o("div", ei, [(_(!0), a(e, null, b(C.value, (e) => (_(), a("button", {
|
|
4647
5521
|
key: e.char,
|
|
4648
|
-
class:
|
|
5522
|
+
class: p(["symbol-cell", { selected: h.value === e.char }]),
|
|
4649
5523
|
title: e.name,
|
|
4650
|
-
onClick: (t) =>
|
|
4651
|
-
onDblclick: (t) =>
|
|
4652
|
-
},
|
|
4653
|
-
|
|
4654
|
-
|
|
5524
|
+
onClick: (t) => h.value = e.char,
|
|
5525
|
+
onDblclick: (t) => E(e.char)
|
|
5526
|
+
}, S(e.char), 43, ti))), 128)), C.value.length === 0 ? (_(), a("div", ni, S(d.value ? w(s)("dialogs.insertSymbol.noResults", { query: d.value }) : w(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : i("", !0)]),
|
|
5527
|
+
h.value ? (_(), a("div", ri, [o("span", ii, S(h.value), 1), o("span", ai, "U+" + S(h.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : i("", !0),
|
|
5528
|
+
g.value.length > 0 && !d.value ? (_(), a("div", oi, [o("div", si, S(w(s)("dialogs.insertSymbol.recent")), 1), (_(!0), a(e, null, b(g.value, (e) => (_(), a("button", {
|
|
4655
5529
|
key: e,
|
|
4656
5530
|
class: "symbol-cell symbol-cell--small",
|
|
4657
|
-
onDblclick: (t) =>
|
|
4658
|
-
onClick: (t) =>
|
|
4659
|
-
},
|
|
4660
|
-
|
|
5531
|
+
onDblclick: (t) => E(e),
|
|
5532
|
+
onClick: (t) => h.value = e
|
|
5533
|
+
}, S(e), 41, ci))), 128))])) : i("", !0),
|
|
5534
|
+
o("div", li, [o("button", {
|
|
4661
5535
|
class: "dialog__btn",
|
|
4662
|
-
onClick:
|
|
4663
|
-
},
|
|
5536
|
+
onClick: T
|
|
5537
|
+
}, S(w(s)("common.cancel")), 1), o("button", {
|
|
4664
5538
|
class: "dialog__btn dialog__btn--primary",
|
|
4665
|
-
onMousedown:
|
|
4666
|
-
disabled: !
|
|
4667
|
-
},
|
|
4668
|
-
])], 32)], 32)) :
|
|
5539
|
+
onMousedown: r[1] ||= M((e) => E(h.value), ["prevent"]),
|
|
5540
|
+
disabled: !h.value
|
|
5541
|
+
}, S(w(s)("common.insert")), 41, ui)])
|
|
5542
|
+
])], 32)], 32)) : i("", !0);
|
|
4669
5543
|
}
|
|
4670
|
-
}), [["__scopeId", "data-v-
|
|
5544
|
+
}), [["__scopeId", "data-v-b758388e"]]), fi = { class: "ps-header" }, pi = { class: "ps-body" }, mi = { class: "ps-section-label" }, hi = { class: "ps-row" }, gi = { class: "ps-label" }, _i = ["value"], vi = ["value"], yi = {
|
|
4671
5545
|
key: 0,
|
|
4672
5546
|
value: -1
|
|
4673
|
-
},
|
|
5547
|
+
}, bi = { class: "ps-row" }, xi = { class: "ps-label" }, Si = ["value"], Ci = { value: "portrait" }, wi = { value: "landscape" }, Ti = { class: "ps-section-label ps-section-label--spaced" }, Ei = { class: "ps-row" }, Di = { class: "ps-label" }, Oi = { class: "ps-row" }, ki = { class: "ps-label" }, Ai = { class: "ps-row" }, ji = { class: "ps-label" }, Mi = { class: "ps-row" }, Ni = { class: "ps-label" }, Pi = { class: "ps-footer" }, Fi = 12240, Ii = 15840, Li = 1440, Ri = /*#__PURE__*/ V(/* @__PURE__ */ l({
|
|
4674
5548
|
__name: "PageSetupDialog",
|
|
4675
5549
|
props: {
|
|
4676
5550
|
isOpen: { type: Boolean },
|
|
4677
5551
|
sectionProperties: {}
|
|
4678
5552
|
},
|
|
4679
5553
|
emits: ["close", "apply"],
|
|
4680
|
-
setup(
|
|
4681
|
-
let { t:
|
|
5554
|
+
setup(t, { emit: s }) {
|
|
5555
|
+
let { t: c } = zt(), { Dialog: l } = Pn(), u = [
|
|
4682
5556
|
{
|
|
4683
5557
|
labelKey: "dialogs.pageSetup.pageSizes.letter",
|
|
4684
5558
|
width: 12240,
|
|
@@ -4714,160 +5588,161 @@ var pt = "en", mt = (e) => ft({
|
|
|
4714
5588
|
width: 10440,
|
|
4715
5589
|
height: 15120
|
|
4716
5590
|
}
|
|
4717
|
-
],
|
|
4718
|
-
function
|
|
4719
|
-
return Math.round(e /
|
|
5591
|
+
], d = t, f = s, p = y(Fi), m = y(Ii), h = y("portrait"), g = y(1), v = y(1), x = y(1), C = y(1);
|
|
5592
|
+
function T(e) {
|
|
5593
|
+
return Math.round(e / z * 100) / 100;
|
|
4720
5594
|
}
|
|
4721
|
-
function
|
|
4722
|
-
return Math.round((Number(e) || 0) *
|
|
5595
|
+
function E(e) {
|
|
5596
|
+
return Math.round((Number(e) || 0) * z);
|
|
4723
5597
|
}
|
|
4724
|
-
let
|
|
4725
|
-
let e = Math.min(
|
|
4726
|
-
return
|
|
5598
|
+
let M = n(() => {
|
|
5599
|
+
let e = Math.min(p.value, m.value), t = Math.max(p.value, m.value);
|
|
5600
|
+
return u.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
|
|
4727
5601
|
});
|
|
4728
|
-
|
|
5602
|
+
O(() => d.isOpen, (e) => {
|
|
4729
5603
|
if (!e) return;
|
|
4730
|
-
let t =
|
|
4731
|
-
|
|
5604
|
+
let t = d.sectionProperties, n = t?.pageWidth || Fi, r = t?.pageHeight || Ii;
|
|
5605
|
+
p.value = n, m.value = r, h.value = t?.orientation || (n > r ? "landscape" : "portrait"), g.value = T(t?.marginTop ?? Li), v.value = T(t?.marginBottom ?? Li), x.value = T(t?.marginLeft ?? Li), C.value = T(t?.marginRight ?? Li);
|
|
4732
5606
|
}, { immediate: !0 });
|
|
4733
|
-
function
|
|
5607
|
+
function N(e) {
|
|
4734
5608
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
4735
|
-
let t = Number(e.target.value), n =
|
|
4736
|
-
t < 0 || !n || (
|
|
5609
|
+
let t = Number(e.target.value), n = u.at(t);
|
|
5610
|
+
t < 0 || !n || (h.value === "landscape" ? (p.value = n.height, m.value = n.width) : (p.value = n.width, m.value = n.height));
|
|
4737
5611
|
}
|
|
4738
|
-
function
|
|
5612
|
+
function P(e) {
|
|
4739
5613
|
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
4740
5614
|
let t = e.target.value === "landscape" ? "landscape" : "portrait";
|
|
4741
|
-
if (t ===
|
|
4742
|
-
|
|
4743
|
-
let n =
|
|
4744
|
-
|
|
4745
|
-
}
|
|
4746
|
-
function N() {
|
|
4747
|
-
d("close");
|
|
5615
|
+
if (t === h.value) return;
|
|
5616
|
+
h.value = t;
|
|
5617
|
+
let n = p.value;
|
|
5618
|
+
p.value = m.value, m.value = n;
|
|
4748
5619
|
}
|
|
4749
|
-
function
|
|
4750
|
-
|
|
4751
|
-
pageWidth: h.value,
|
|
4752
|
-
pageHeight: _.value,
|
|
4753
|
-
orientation: v.value,
|
|
4754
|
-
marginTop: k(S.value),
|
|
4755
|
-
marginBottom: k(w.value),
|
|
4756
|
-
marginLeft: k(T.value),
|
|
4757
|
-
marginRight: k(D.value)
|
|
4758
|
-
}), N();
|
|
5620
|
+
function F() {
|
|
5621
|
+
f("close");
|
|
4759
5622
|
}
|
|
4760
|
-
function
|
|
4761
|
-
|
|
5623
|
+
function I() {
|
|
5624
|
+
f("apply", {
|
|
5625
|
+
pageWidth: p.value,
|
|
5626
|
+
pageHeight: m.value,
|
|
5627
|
+
orientation: h.value,
|
|
5628
|
+
marginTop: E(g.value),
|
|
5629
|
+
marginBottom: E(v.value),
|
|
5630
|
+
marginLeft: E(x.value),
|
|
5631
|
+
marginRight: E(C.value)
|
|
5632
|
+
}), F();
|
|
4762
5633
|
}
|
|
4763
|
-
return (
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
onChange: j
|
|
4781
|
-
}, [(u(), r(e, null, p(c, (e, t) => i("option", {
|
|
4782
|
-
key: e.labelKey,
|
|
4783
|
-
value: t
|
|
4784
|
-
}, m(g(s)(e.labelKey)), 9, dr)), 64)), A.value < 0 ? (u(), r("option", fr, m(g(s)("dialogs.pageSetup.custom")), 1)) : n("", !0)], 40, ur)]),
|
|
4785
|
-
i("div", pr, [i("label", mr, m(g(s)("dialogs.pageSetup.orientation")), 1), i("select", {
|
|
4786
|
-
class: "ps-input",
|
|
4787
|
-
value: v.value,
|
|
4788
|
-
onChange: M
|
|
4789
|
-
}, [i("option", gr, m(g(s)("dialogs.pageSetup.portrait")), 1), i("option", _r, m(g(s)("dialogs.pageSetup.landscape")), 1)], 40, hr)]),
|
|
4790
|
-
i("div", vr, m(g(s)("dialogs.pageSetup.margins")), 1),
|
|
4791
|
-
i("div", yr, [
|
|
4792
|
-
i("label", br, m(g(s)("dialogs.pageSetup.top")), 1),
|
|
4793
|
-
x(i("input", {
|
|
4794
|
-
class: "ps-input",
|
|
4795
|
-
type: "number",
|
|
4796
|
-
min: "0",
|
|
4797
|
-
max: "10",
|
|
4798
|
-
step: "0.1",
|
|
4799
|
-
"onUpdate:modelValue": o[0] ||= (e) => S.value = e
|
|
4800
|
-
}, null, 512), [[
|
|
4801
|
-
y,
|
|
4802
|
-
S.value,
|
|
4803
|
-
void 0,
|
|
4804
|
-
{ number: !0 }
|
|
4805
|
-
]]),
|
|
4806
|
-
o[5] ||= i("span", { class: "ps-unit" }, "in", -1)
|
|
4807
|
-
]),
|
|
4808
|
-
i("div", xr, [
|
|
4809
|
-
i("label", Sr, m(g(s)("dialogs.pageSetup.bottom")), 1),
|
|
4810
|
-
x(i("input", {
|
|
5634
|
+
return (n, s) => (_(), r(w(l), {
|
|
5635
|
+
open: t.isOpen,
|
|
5636
|
+
"aria-label": w(c)("dialogs.pageSetup.title"),
|
|
5637
|
+
style: {
|
|
5638
|
+
minWidth: "400px",
|
|
5639
|
+
maxWidth: "480px",
|
|
5640
|
+
width: "100%",
|
|
5641
|
+
margin: "20px"
|
|
5642
|
+
},
|
|
5643
|
+
onClose: F,
|
|
5644
|
+
onKeydown: j(I, ["enter"])
|
|
5645
|
+
}, {
|
|
5646
|
+
default: k(() => [
|
|
5647
|
+
o("div", fi, S(w(c)("dialogs.pageSetup.title")), 1),
|
|
5648
|
+
o("div", pi, [
|
|
5649
|
+
o("div", mi, S(w(c)("dialogs.pageSetup.pageSize")), 1),
|
|
5650
|
+
o("div", hi, [o("label", gi, S(w(c)("dialogs.pageSetup.sizeLabel")), 1), o("select", {
|
|
4811
5651
|
class: "ps-input",
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
},
|
|
4818
|
-
|
|
4819
|
-
w.value,
|
|
4820
|
-
void 0,
|
|
4821
|
-
{ number: !0 }
|
|
4822
|
-
]]),
|
|
4823
|
-
o[6] ||= i("span", { class: "ps-unit" }, "in", -1)
|
|
4824
|
-
]),
|
|
4825
|
-
i("div", Cr, [
|
|
4826
|
-
i("label", wr, m(g(s)("dialogs.pageSetup.left")), 1),
|
|
4827
|
-
x(i("input", {
|
|
5652
|
+
value: M.value,
|
|
5653
|
+
onChange: N
|
|
5654
|
+
}, [(_(), a(e, null, b(u, (e, t) => o("option", {
|
|
5655
|
+
key: e.labelKey,
|
|
5656
|
+
value: t
|
|
5657
|
+
}, S(w(c)(e.labelKey)), 9, vi)), 64)), M.value < 0 ? (_(), a("option", yi, S(w(c)("dialogs.pageSetup.custom")), 1)) : i("", !0)], 40, _i)]),
|
|
5658
|
+
o("div", bi, [o("label", xi, S(w(c)("dialogs.pageSetup.orientation")), 1), o("select", {
|
|
4828
5659
|
class: "ps-input",
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
5660
|
+
value: h.value,
|
|
5661
|
+
onChange: P
|
|
5662
|
+
}, [o("option", Ci, S(w(c)("dialogs.pageSetup.portrait")), 1), o("option", wi, S(w(c)("dialogs.pageSetup.landscape")), 1)], 40, Si)]),
|
|
5663
|
+
o("div", Ti, S(w(c)("dialogs.pageSetup.margins")), 1),
|
|
5664
|
+
o("div", Ei, [
|
|
5665
|
+
o("label", Di, S(w(c)("dialogs.pageSetup.top")), 1),
|
|
5666
|
+
A(o("input", {
|
|
5667
|
+
class: "ps-input",
|
|
5668
|
+
type: "number",
|
|
5669
|
+
min: "0",
|
|
5670
|
+
max: "10",
|
|
5671
|
+
step: "0.1",
|
|
5672
|
+
"onUpdate:modelValue": s[0] ||= (e) => g.value = e
|
|
5673
|
+
}, null, 512), [[
|
|
5674
|
+
D,
|
|
5675
|
+
g.value,
|
|
5676
|
+
void 0,
|
|
5677
|
+
{ number: !0 }
|
|
5678
|
+
]]),
|
|
5679
|
+
s[4] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5680
|
+
]),
|
|
5681
|
+
o("div", Oi, [
|
|
5682
|
+
o("label", ki, S(w(c)("dialogs.pageSetup.bottom")), 1),
|
|
5683
|
+
A(o("input", {
|
|
5684
|
+
class: "ps-input",
|
|
5685
|
+
type: "number",
|
|
5686
|
+
min: "0",
|
|
5687
|
+
max: "10",
|
|
5688
|
+
step: "0.1",
|
|
5689
|
+
"onUpdate:modelValue": s[1] ||= (e) => v.value = e
|
|
5690
|
+
}, null, 512), [[
|
|
5691
|
+
D,
|
|
5692
|
+
v.value,
|
|
5693
|
+
void 0,
|
|
5694
|
+
{ number: !0 }
|
|
5695
|
+
]]),
|
|
5696
|
+
s[5] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5697
|
+
]),
|
|
5698
|
+
o("div", Ai, [
|
|
5699
|
+
o("label", ji, S(w(c)("dialogs.pageSetup.left")), 1),
|
|
5700
|
+
A(o("input", {
|
|
5701
|
+
class: "ps-input",
|
|
5702
|
+
type: "number",
|
|
5703
|
+
min: "0",
|
|
5704
|
+
max: "10",
|
|
5705
|
+
step: "0.1",
|
|
5706
|
+
"onUpdate:modelValue": s[2] ||= (e) => x.value = e
|
|
5707
|
+
}, null, 512), [[
|
|
5708
|
+
D,
|
|
5709
|
+
x.value,
|
|
5710
|
+
void 0,
|
|
5711
|
+
{ number: !0 }
|
|
5712
|
+
]]),
|
|
5713
|
+
s[6] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5714
|
+
]),
|
|
5715
|
+
o("div", Mi, [
|
|
5716
|
+
o("label", Ni, S(w(c)("dialogs.pageSetup.right")), 1),
|
|
5717
|
+
A(o("input", {
|
|
5718
|
+
class: "ps-input",
|
|
5719
|
+
type: "number",
|
|
5720
|
+
min: "0",
|
|
5721
|
+
max: "10",
|
|
5722
|
+
step: "0.1",
|
|
5723
|
+
"onUpdate:modelValue": s[3] ||= (e) => C.value = e
|
|
5724
|
+
}, null, 512), [[
|
|
5725
|
+
D,
|
|
5726
|
+
C.value,
|
|
5727
|
+
void 0,
|
|
5728
|
+
{ number: !0 }
|
|
5729
|
+
]]),
|
|
5730
|
+
s[7] ||= o("span", { class: "ps-unit" }, "in", -1)
|
|
5731
|
+
])
|
|
4841
5732
|
]),
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
}, null, 512), [[
|
|
4852
|
-
y,
|
|
4853
|
-
D.value,
|
|
4854
|
-
void 0,
|
|
4855
|
-
{ number: !0 }
|
|
4856
|
-
]]),
|
|
4857
|
-
o[8] ||= i("span", { class: "ps-unit" }, "in", -1)
|
|
4858
|
-
])
|
|
5733
|
+
o("div", Pi, [o("button", {
|
|
5734
|
+
type: "button",
|
|
5735
|
+
class: "ps-btn",
|
|
5736
|
+
onClick: F
|
|
5737
|
+
}, S(w(c)("common.cancel")), 1), o("button", {
|
|
5738
|
+
type: "button",
|
|
5739
|
+
class: "ps-btn ps-btn--primary",
|
|
5740
|
+
onClick: I
|
|
5741
|
+
}, S(w(c)("common.apply")), 1)])
|
|
4859
5742
|
]),
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
class: "ps-btn",
|
|
4863
|
-
onClick: N
|
|
4864
|
-
}, m(g(s)("common.cancel")), 1), i("button", {
|
|
4865
|
-
type: "button",
|
|
4866
|
-
class: "ps-btn ps-btn--primary",
|
|
4867
|
-
onClick: P
|
|
4868
|
-
}, m(g(s)("common.apply")), 1)])
|
|
4869
|
-
], 40, ir)], 32)) : n("", !0);
|
|
5743
|
+
_: 1
|
|
5744
|
+
}, 8, ["open", "aria-label"]));
|
|
4870
5745
|
}
|
|
4871
|
-
}), [["__scopeId", "data-v-
|
|
5746
|
+
}), [["__scopeId", "data-v-22e50d36"]]);
|
|
4872
5747
|
//#endregion
|
|
4873
|
-
export {
|
|
5748
|
+
export { re as C, V as E, zt as S, U as T, sn as _, Un as a, Bt as b, Nn as c, kn as d, Tn as f, ln as g, dn as h, gr as i, Mn as l, pn as m, di as n, An as o, Sn as p, Kr as r, Fn as s, Ri as t, Pn as u, an as v, K as w, Rt as x, Pt as y };
|