@stll/folio-vue 0.2.0 → 0.4.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-BaILr4AO.js +3612 -0
- package/dist/ListButtons-CC7_7-e3.cjs +4 -0
- package/dist/WatermarkDialog-D-uTab0-.js +7022 -0
- package/dist/WatermarkDialog-SzyoSZmL.cjs +15 -0
- package/dist/components/DocxEditor/pagedEditorRef.d.ts +9 -4
- package/dist/components/DocxEditor/types.d.ts +25 -1
- package/dist/components/dialogs/index.d.ts +13 -9
- package/dist/components/tableStylePresets.d.ts +2 -6
- package/dist/composables/useDocxEditor.d.ts +2 -0
- package/dist/composables/useOutlineSidebar.d.ts +1 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +1 -1
- package/dist/dialogs.cjs +1 -1
- package/dist/dialogs.js +5 -3
- package/dist/folio-vue.css +1 -1
- package/dist/index.cjs +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1371 -1218
- package/dist/ui/folio-ui.d.ts +120 -8
- package/dist/ui.cjs +1 -1
- package/dist/ui.d.ts +14 -2
- package/dist/ui.js +97 -98
- package/dist/useZoom-8M2AQIMJ.cjs +1 -0
- package/dist/{useZoom-CIIRid8U.js → useZoom-BR--m9w3.js} +140 -140
- 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/PageSetupDialog-DsjAfJy0.js +0 -4873
- package/dist/TablePropertiesDialog-A-1Pm1f9.cjs +0 -1
- package/dist/TablePropertiesDialog-PyXEJC_o.js +0 -887
- package/dist/useZoom-BryUw3Cu.cjs +0 -1
|
@@ -1,4873 +0,0 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, inject as s, nextTick as c, normalizeClass as l, openBlock as u, provide as d, ref as f, renderList as p, toDisplayString as m, toValue as h, unref as g, vModelCheckbox as _, vModelSelect as v, vModelText as y, watch as b, withDirectives as x, withKeys as S, withModifiers as C } from "vue";
|
|
2
|
-
import { TextSelection as w } from "prosemirror-state";
|
|
3
|
-
import { getFolioMessages as T } from "@stll/folio-core/i18n/messages";
|
|
4
|
-
import { TWIPS_PER_INCH as E } from "@stll/folio-core/utils/units";
|
|
5
|
-
//#region \0rolldown/runtime.js
|
|
6
|
-
var D = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), O = (e, t) => {
|
|
7
|
-
let n = e.__vccOpts || e;
|
|
8
|
-
for (let [e, r] of t) n[e] = r;
|
|
9
|
-
return n;
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
//#region ../../node_modules/.bun/@formatjs+fast-memoize@3.1.6/node_modules/@formatjs/fast-memoize/index.js
|
|
13
|
-
function k(e, t) {
|
|
14
|
-
let n = t && t.cache ? t.cache : z, r = t && t.serializer ? t.serializer : L;
|
|
15
|
-
return (t && t.strategy ? t.strategy : P)(e, {
|
|
16
|
-
cache: n,
|
|
17
|
-
serializer: r
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function A(e) {
|
|
21
|
-
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
22
|
-
}
|
|
23
|
-
function j(e, t, n, r) {
|
|
24
|
-
let i = A(r) ? r : n(r), a = t.get(i);
|
|
25
|
-
return a === void 0 && (a = e.call(this, r), t.set(i, a)), a;
|
|
26
|
-
}
|
|
27
|
-
function M(e, t, n) {
|
|
28
|
-
let r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
29
|
-
return a === void 0 && (a = e.apply(this, r), t.set(i, a)), a;
|
|
30
|
-
}
|
|
31
|
-
function N(e, t, n, r, i) {
|
|
32
|
-
return n.bind(t, e, r, i);
|
|
33
|
-
}
|
|
34
|
-
function P(e, t) {
|
|
35
|
-
let n = e.length === 1 ? j : M;
|
|
36
|
-
return N(e, this, n, t.cache.create(), t.serializer);
|
|
37
|
-
}
|
|
38
|
-
function F(e, t) {
|
|
39
|
-
return N(e, this, M, t.cache.create(), t.serializer);
|
|
40
|
-
}
|
|
41
|
-
function I(e, t) {
|
|
42
|
-
return N(e, this, j, t.cache.create(), t.serializer);
|
|
43
|
-
}
|
|
44
|
-
var L = function() {
|
|
45
|
-
return JSON.stringify(arguments);
|
|
46
|
-
}, R = class {
|
|
47
|
-
constructor() {
|
|
48
|
-
this.cache = Object.create(null);
|
|
49
|
-
}
|
|
50
|
-
get(e) {
|
|
51
|
-
return this.cache[e];
|
|
52
|
-
}
|
|
53
|
-
set(e, t) {
|
|
54
|
-
this.cache[e] = t;
|
|
55
|
-
}
|
|
56
|
-
}, z = { create: function() {
|
|
57
|
-
return new R();
|
|
58
|
-
} }, B = {
|
|
59
|
-
variadic: F,
|
|
60
|
-
monadic: I
|
|
61
|
-
}, V = class extends Error {
|
|
62
|
-
constructor(e, t) {
|
|
63
|
-
let n = e;
|
|
64
|
-
t && (n += ": " + t), super(n), this.code = e, t && (this.originalMessage = t);
|
|
65
|
-
}
|
|
66
|
-
}, H = function(e) {
|
|
67
|
-
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
|
-
}(H || {});
|
|
69
|
-
function ee() {
|
|
70
|
-
return {
|
|
71
|
-
dateTime: {},
|
|
72
|
-
number: {},
|
|
73
|
-
message: {},
|
|
74
|
-
relativeTime: {},
|
|
75
|
-
pluralRules: {},
|
|
76
|
-
list: {},
|
|
77
|
-
displayNames: {}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function te(e, t) {
|
|
81
|
-
return k(e, {
|
|
82
|
-
cache: (n = t, { create: () => ({
|
|
83
|
-
get: (e) => n[e],
|
|
84
|
-
set(e, t) {
|
|
85
|
-
n[e] = t;
|
|
86
|
-
}
|
|
87
|
-
}) }),
|
|
88
|
-
strategy: B.variadic
|
|
89
|
-
});
|
|
90
|
-
var n;
|
|
91
|
-
}
|
|
92
|
-
function U(e, t) {
|
|
93
|
-
return te(((...t) => new e(...t)), t);
|
|
94
|
-
}
|
|
95
|
-
function W(e) {
|
|
96
|
-
return {
|
|
97
|
-
getDateTimeFormat: U(Intl.DateTimeFormat, e.dateTime),
|
|
98
|
-
getNumberFormat: U(Intl.NumberFormat, e.number),
|
|
99
|
-
getPluralRules: U(Intl.PluralRules, e.pluralRules),
|
|
100
|
-
getRelativeTimeFormat: U(Intl.RelativeTimeFormat, e.relativeTime),
|
|
101
|
-
getListFormat: U(Intl.ListFormat, e.list),
|
|
102
|
-
getDisplayNames: U(Intl.DisplayNames, e.displayNames)
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ../../node_modules/.bun/react@19.2.7/node_modules/react/cjs/react.production.js
|
|
107
|
-
var ne = /* @__PURE__ */ D(((e) => {
|
|
108
|
-
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
|
-
function m(e) {
|
|
110
|
-
return typeof e != "object" || !e ? null : (e = p && e[p] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
111
|
-
}
|
|
112
|
-
var h = {
|
|
113
|
-
isMounted: function() {
|
|
114
|
-
return !1;
|
|
115
|
-
},
|
|
116
|
-
enqueueForceUpdate: function() {},
|
|
117
|
-
enqueueReplaceState: function() {},
|
|
118
|
-
enqueueSetState: function() {}
|
|
119
|
-
}, g = Object.assign, _ = {};
|
|
120
|
-
function v(e, t, n) {
|
|
121
|
-
this.props = e, this.context = t, this.refs = _, this.updater = n || h;
|
|
122
|
-
}
|
|
123
|
-
v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
|
|
124
|
-
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.");
|
|
125
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
126
|
-
}, v.prototype.forceUpdate = function(e) {
|
|
127
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
128
|
-
};
|
|
129
|
-
function y() {}
|
|
130
|
-
y.prototype = v.prototype;
|
|
131
|
-
function b(e, t, n) {
|
|
132
|
-
this.props = e, this.context = t, this.refs = _, this.updater = n || h;
|
|
133
|
-
}
|
|
134
|
-
var x = b.prototype = new y();
|
|
135
|
-
x.constructor = b, g(x, v.prototype), x.isPureReactComponent = !0;
|
|
136
|
-
var S = Array.isArray;
|
|
137
|
-
function C() {}
|
|
138
|
-
var w = {
|
|
139
|
-
H: null,
|
|
140
|
-
A: null,
|
|
141
|
-
T: null,
|
|
142
|
-
S: null
|
|
143
|
-
}, T = Object.prototype.hasOwnProperty;
|
|
144
|
-
function E(e, n, r) {
|
|
145
|
-
var i = r.ref;
|
|
146
|
-
return {
|
|
147
|
-
$$typeof: t,
|
|
148
|
-
type: e,
|
|
149
|
-
key: n,
|
|
150
|
-
ref: i === void 0 ? null : i,
|
|
151
|
-
props: r
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
function D(e, t) {
|
|
155
|
-
return E(e.type, t, e.props);
|
|
156
|
-
}
|
|
157
|
-
function O(e) {
|
|
158
|
-
return typeof e == "object" && !!e && e.$$typeof === t;
|
|
159
|
-
}
|
|
160
|
-
function k(e) {
|
|
161
|
-
var t = {
|
|
162
|
-
"=": "=0",
|
|
163
|
-
":": "=2"
|
|
164
|
-
};
|
|
165
|
-
return "$" + e.replace(/[=:]/g, function(e) {
|
|
166
|
-
return t[e];
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
var A = /\/+/g;
|
|
170
|
-
function j(e, t) {
|
|
171
|
-
return typeof e == "object" && e && e.key != null ? k("" + e.key) : t.toString(36);
|
|
172
|
-
}
|
|
173
|
-
function M(e) {
|
|
174
|
-
switch (e.status) {
|
|
175
|
-
case "fulfilled": return e.value;
|
|
176
|
-
case "rejected": throw e.reason;
|
|
177
|
-
default: switch (typeof e.status == "string" ? e.then(C, C) : (e.status = "pending", e.then(function(t) {
|
|
178
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
179
|
-
}, function(t) {
|
|
180
|
-
e.status === "pending" && (e.status = "rejected", e.reason = t);
|
|
181
|
-
})), e.status) {
|
|
182
|
-
case "fulfilled": return e.value;
|
|
183
|
-
case "rejected": throw e.reason;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
throw e;
|
|
187
|
-
}
|
|
188
|
-
function N(e, r, i, a, o) {
|
|
189
|
-
var s = typeof e;
|
|
190
|
-
(s === "undefined" || s === "boolean") && (e = null);
|
|
191
|
-
var c = !1;
|
|
192
|
-
if (e === null) c = !0;
|
|
193
|
-
else switch (s) {
|
|
194
|
-
case "bigint":
|
|
195
|
-
case "string":
|
|
196
|
-
case "number":
|
|
197
|
-
c = !0;
|
|
198
|
-
break;
|
|
199
|
-
case "object": switch (e.$$typeof) {
|
|
200
|
-
case t:
|
|
201
|
-
case n:
|
|
202
|
-
c = !0;
|
|
203
|
-
break;
|
|
204
|
-
case d: return c = e._init, N(c(e._payload), r, i, a, o);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
if (c) return o = o(e), c = a === "" ? "." + j(e, 0) : a, S(o) ? (i = "", c != null && (i = c.replace(A, "$&/") + "/"), N(o, r, i, "", function(e) {
|
|
208
|
-
return e;
|
|
209
|
-
})) : o != null && (O(o) && (o = D(o, i + (o.key == null || e && e.key === o.key ? "" : ("" + o.key).replace(A, "$&/") + "/") + c)), r.push(o)), 1;
|
|
210
|
-
c = 0;
|
|
211
|
-
var l = a === "" ? "." : a + ":";
|
|
212
|
-
if (S(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + j(a, u), c += N(a, r, i, s, o);
|
|
213
|
-
else if (u = m(e), typeof u == "function") for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + j(a, u++), c += N(a, r, i, s, o);
|
|
214
|
-
else if (s === "object") {
|
|
215
|
-
if (typeof e.then == "function") return N(M(e), r, i, a, o);
|
|
216
|
-
throw r = String(e), Error("Objects are not valid as a React child (found: " + (r === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
|
|
217
|
-
}
|
|
218
|
-
return c;
|
|
219
|
-
}
|
|
220
|
-
function P(e, t, n) {
|
|
221
|
-
if (e == null) return e;
|
|
222
|
-
var r = [], i = 0;
|
|
223
|
-
return N(e, r, "", "", function(e) {
|
|
224
|
-
return t.call(n, e, i++);
|
|
225
|
-
}), r;
|
|
226
|
-
}
|
|
227
|
-
function F(e) {
|
|
228
|
-
if (e._status === -1) {
|
|
229
|
-
var t = e._result;
|
|
230
|
-
t = t(), t.then(function(t) {
|
|
231
|
-
(e._status === 0 || e._status === -1) && (e._status = 1, e._result = t);
|
|
232
|
-
}, function(t) {
|
|
233
|
-
(e._status === 0 || e._status === -1) && (e._status = 2, e._result = t);
|
|
234
|
-
}), e._status === -1 && (e._status = 0, e._result = t);
|
|
235
|
-
}
|
|
236
|
-
if (e._status === 1) return e._result.default;
|
|
237
|
-
throw e._result;
|
|
238
|
-
}
|
|
239
|
-
var I = typeof reportError == "function" ? reportError : function(e) {
|
|
240
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
241
|
-
var t = new window.ErrorEvent("error", {
|
|
242
|
-
bubbles: !0,
|
|
243
|
-
cancelable: !0,
|
|
244
|
-
message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
|
|
245
|
-
error: e
|
|
246
|
-
});
|
|
247
|
-
if (!window.dispatchEvent(t)) return;
|
|
248
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
249
|
-
process.emit("uncaughtException", e);
|
|
250
|
-
return;
|
|
251
|
-
}
|
|
252
|
-
console.error(e);
|
|
253
|
-
}, L = {
|
|
254
|
-
map: P,
|
|
255
|
-
forEach: function(e, t, n) {
|
|
256
|
-
P(e, function() {
|
|
257
|
-
t.apply(this, arguments);
|
|
258
|
-
}, n);
|
|
259
|
-
},
|
|
260
|
-
count: function(e) {
|
|
261
|
-
var t = 0;
|
|
262
|
-
return P(e, function() {
|
|
263
|
-
t++;
|
|
264
|
-
}), t;
|
|
265
|
-
},
|
|
266
|
-
toArray: function(e) {
|
|
267
|
-
return P(e, function(e) {
|
|
268
|
-
return e;
|
|
269
|
-
}) || [];
|
|
270
|
-
},
|
|
271
|
-
only: function(e) {
|
|
272
|
-
if (!O(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
273
|
-
return e;
|
|
274
|
-
}
|
|
275
|
-
};
|
|
276
|
-
e.Activity = f, e.Children = L, e.Component = v, e.Fragment = r, e.Profiler = a, e.PureComponent = b, e.StrictMode = i, e.Suspense = l, e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = w, e.__COMPILER_RUNTIME = {
|
|
277
|
-
__proto__: null,
|
|
278
|
-
c: function(e) {
|
|
279
|
-
return w.H.useMemoCache(e);
|
|
280
|
-
}
|
|
281
|
-
}, e.cache = function(e) {
|
|
282
|
-
return function() {
|
|
283
|
-
return e.apply(null, arguments);
|
|
284
|
-
};
|
|
285
|
-
}, e.cacheSignal = function() {
|
|
286
|
-
return null;
|
|
287
|
-
}, e.cloneElement = function(e, t, n) {
|
|
288
|
-
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
289
|
-
var r = g({}, e.props), i = e.key;
|
|
290
|
-
if (t != null) for (a in t.key !== void 0 && (i = "" + t.key), t) !T.call(t, a) || a === "key" || a === "__self" || a === "__source" || a === "ref" && t.ref === void 0 || (r[a] = t[a]);
|
|
291
|
-
var a = arguments.length - 2;
|
|
292
|
-
if (a === 1) r.children = n;
|
|
293
|
-
else if (1 < a) {
|
|
294
|
-
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
295
|
-
r.children = o;
|
|
296
|
-
}
|
|
297
|
-
return E(e.type, i, r);
|
|
298
|
-
}, e.createContext = function(e) {
|
|
299
|
-
return e = {
|
|
300
|
-
$$typeof: s,
|
|
301
|
-
_currentValue: e,
|
|
302
|
-
_currentValue2: e,
|
|
303
|
-
_threadCount: 0,
|
|
304
|
-
Provider: null,
|
|
305
|
-
Consumer: null
|
|
306
|
-
}, e.Provider = e, e.Consumer = {
|
|
307
|
-
$$typeof: o,
|
|
308
|
-
_context: e
|
|
309
|
-
}, e;
|
|
310
|
-
}, e.createElement = function(e, t, n) {
|
|
311
|
-
var r, i = {}, a = null;
|
|
312
|
-
if (t != null) for (r in t.key !== void 0 && (a = "" + t.key), t) T.call(t, r) && r !== "key" && r !== "__self" && r !== "__source" && (i[r] = t[r]);
|
|
313
|
-
var o = arguments.length - 2;
|
|
314
|
-
if (o === 1) i.children = n;
|
|
315
|
-
else if (1 < o) {
|
|
316
|
-
for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2];
|
|
317
|
-
i.children = s;
|
|
318
|
-
}
|
|
319
|
-
if (e && e.defaultProps) for (r in o = e.defaultProps, o) i[r] === void 0 && (i[r] = o[r]);
|
|
320
|
-
return E(e, a, i);
|
|
321
|
-
}, e.createRef = function() {
|
|
322
|
-
return { current: null };
|
|
323
|
-
}, e.forwardRef = function(e) {
|
|
324
|
-
return {
|
|
325
|
-
$$typeof: c,
|
|
326
|
-
render: e
|
|
327
|
-
};
|
|
328
|
-
}, e.isValidElement = O, e.lazy = function(e) {
|
|
329
|
-
return {
|
|
330
|
-
$$typeof: d,
|
|
331
|
-
_payload: {
|
|
332
|
-
_status: -1,
|
|
333
|
-
_result: e
|
|
334
|
-
},
|
|
335
|
-
_init: F
|
|
336
|
-
};
|
|
337
|
-
}, e.memo = function(e, t) {
|
|
338
|
-
return {
|
|
339
|
-
$$typeof: u,
|
|
340
|
-
type: e,
|
|
341
|
-
compare: t === void 0 ? null : t
|
|
342
|
-
};
|
|
343
|
-
}, e.startTransition = function(e) {
|
|
344
|
-
var t = w.T, n = {};
|
|
345
|
-
w.T = n;
|
|
346
|
-
try {
|
|
347
|
-
var r = e(), i = w.S;
|
|
348
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && r.then(C, I);
|
|
349
|
-
} catch (e) {
|
|
350
|
-
I(e);
|
|
351
|
-
} finally {
|
|
352
|
-
t !== null && n.types !== null && (t.types = n.types), w.T = t;
|
|
353
|
-
}
|
|
354
|
-
}, e.unstable_useCacheRefresh = function() {
|
|
355
|
-
return w.H.useCacheRefresh();
|
|
356
|
-
}, e.use = function(e) {
|
|
357
|
-
return w.H.use(e);
|
|
358
|
-
}, e.useActionState = function(e, t, n) {
|
|
359
|
-
return w.H.useActionState(e, t, n);
|
|
360
|
-
}, e.useCallback = function(e, t) {
|
|
361
|
-
return w.H.useCallback(e, t);
|
|
362
|
-
}, e.useContext = function(e) {
|
|
363
|
-
return w.H.useContext(e);
|
|
364
|
-
}, e.useDebugValue = function() {}, e.useDeferredValue = function(e, t) {
|
|
365
|
-
return w.H.useDeferredValue(e, t);
|
|
366
|
-
}, e.useEffect = function(e, t) {
|
|
367
|
-
return w.H.useEffect(e, t);
|
|
368
|
-
}, e.useEffectEvent = function(e) {
|
|
369
|
-
return w.H.useEffectEvent(e);
|
|
370
|
-
}, e.useId = function() {
|
|
371
|
-
return w.H.useId();
|
|
372
|
-
}, e.useImperativeHandle = function(e, t, n) {
|
|
373
|
-
return w.H.useImperativeHandle(e, t, n);
|
|
374
|
-
}, e.useInsertionEffect = function(e, t) {
|
|
375
|
-
return w.H.useInsertionEffect(e, t);
|
|
376
|
-
}, e.useLayoutEffect = function(e, t) {
|
|
377
|
-
return w.H.useLayoutEffect(e, t);
|
|
378
|
-
}, e.useMemo = function(e, t) {
|
|
379
|
-
return w.H.useMemo(e, t);
|
|
380
|
-
}, e.useOptimistic = function(e, t) {
|
|
381
|
-
return w.H.useOptimistic(e, t);
|
|
382
|
-
}, e.useReducer = function(e, t, n) {
|
|
383
|
-
return w.H.useReducer(e, t, n);
|
|
384
|
-
}, e.useRef = function(e) {
|
|
385
|
-
return w.H.useRef(e);
|
|
386
|
-
}, e.useState = function(e) {
|
|
387
|
-
return w.H.useState(e);
|
|
388
|
-
}, e.useSyncExternalStore = function(e, t, n) {
|
|
389
|
-
return w.H.useSyncExternalStore(e, t, n);
|
|
390
|
-
}, e.useTransition = function() {
|
|
391
|
-
return w.H.useTransition();
|
|
392
|
-
}, e.version = "19.2.7";
|
|
393
|
-
})), re = /* @__PURE__ */ D(((e, t) => {
|
|
394
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
395
|
-
function n(e, t) {
|
|
396
|
-
Object.defineProperty(a.prototype, e, { get: function() {
|
|
397
|
-
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
398
|
-
} });
|
|
399
|
-
}
|
|
400
|
-
function r(e) {
|
|
401
|
-
return typeof e != "object" || !e ? null : (e = re && e[re] || e["@@iterator"], typeof e == "function" ? e : null);
|
|
402
|
-
}
|
|
403
|
-
function i(e, t) {
|
|
404
|
-
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
405
|
-
var n = e + "." + t;
|
|
406
|
-
G[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), G[n] = !0);
|
|
407
|
-
}
|
|
408
|
-
function a(e, t, n) {
|
|
409
|
-
this.props = e, this.context = t, this.refs = oe, this.updater = n || ie;
|
|
410
|
-
}
|
|
411
|
-
function o() {}
|
|
412
|
-
function s(e, t, n) {
|
|
413
|
-
this.props = e, this.context = t, this.refs = oe, this.updater = n || ie;
|
|
414
|
-
}
|
|
415
|
-
function c() {}
|
|
416
|
-
function l(e) {
|
|
417
|
-
return "" + e;
|
|
418
|
-
}
|
|
419
|
-
function u(e) {
|
|
420
|
-
try {
|
|
421
|
-
l(e);
|
|
422
|
-
var t = !1;
|
|
423
|
-
} catch {
|
|
424
|
-
t = !0;
|
|
425
|
-
}
|
|
426
|
-
if (t) {
|
|
427
|
-
t = console;
|
|
428
|
-
var n = t.error, r = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
429
|
-
return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", r), l(e);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
function d(e) {
|
|
433
|
-
if (e == null) return null;
|
|
434
|
-
if (typeof e == "function") return e.$$typeof === ce ? null : e.displayName || e.name || null;
|
|
435
|
-
if (typeof e == "string") return e;
|
|
436
|
-
switch (e) {
|
|
437
|
-
case L: return "Fragment";
|
|
438
|
-
case z: return "Profiler";
|
|
439
|
-
case R: return "StrictMode";
|
|
440
|
-
case ee: return "Suspense";
|
|
441
|
-
case te: return "SuspenseList";
|
|
442
|
-
case ne: return "Activity";
|
|
443
|
-
}
|
|
444
|
-
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
|
-
case I: return "Portal";
|
|
446
|
-
case V: return e.displayName || "Context";
|
|
447
|
-
case B: return (e._context.displayName || "Context") + ".Consumer";
|
|
448
|
-
case H:
|
|
449
|
-
var t = e.render;
|
|
450
|
-
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
451
|
-
case U: return t = e.displayName || null, t === null ? d(e.type) || "Memo" : t;
|
|
452
|
-
case W:
|
|
453
|
-
t = e._payload, e = e._init;
|
|
454
|
-
try {
|
|
455
|
-
return d(e(t));
|
|
456
|
-
} catch {}
|
|
457
|
-
}
|
|
458
|
-
return null;
|
|
459
|
-
}
|
|
460
|
-
function f(e) {
|
|
461
|
-
if (e === L) return "<>";
|
|
462
|
-
if (typeof e == "object" && e && e.$$typeof === W) return "<...>";
|
|
463
|
-
try {
|
|
464
|
-
var t = d(e);
|
|
465
|
-
return t ? "<" + t + ">" : "<...>";
|
|
466
|
-
} catch {
|
|
467
|
-
return "<...>";
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
function p() {
|
|
471
|
-
var e = q.A;
|
|
472
|
-
return e === null ? null : e.getOwner();
|
|
473
|
-
}
|
|
474
|
-
function m() {
|
|
475
|
-
return Error("react-stack-top-frame");
|
|
476
|
-
}
|
|
477
|
-
function h(e) {
|
|
478
|
-
if (le.call(e, "key")) {
|
|
479
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
480
|
-
if (t && t.isReactWarning) return !1;
|
|
481
|
-
}
|
|
482
|
-
return e.key !== void 0;
|
|
483
|
-
}
|
|
484
|
-
function g(e, t) {
|
|
485
|
-
function n() {
|
|
486
|
-
de || (de = !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
|
-
}
|
|
488
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
489
|
-
get: n,
|
|
490
|
-
configurable: !0
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
function _() {
|
|
494
|
-
var e = d(this.type);
|
|
495
|
-
return pe[e] || (pe[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
|
-
}
|
|
497
|
-
function v(e, t, n, r, i, a) {
|
|
498
|
-
var o = n.ref;
|
|
499
|
-
return e = {
|
|
500
|
-
$$typeof: F,
|
|
501
|
-
type: e,
|
|
502
|
-
key: t,
|
|
503
|
-
props: n,
|
|
504
|
-
_owner: r
|
|
505
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
506
|
-
enumerable: !1,
|
|
507
|
-
value: null
|
|
508
|
-
}) : Object.defineProperty(e, "ref", {
|
|
509
|
-
enumerable: !1,
|
|
510
|
-
get: _
|
|
511
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
512
|
-
configurable: !1,
|
|
513
|
-
enumerable: !1,
|
|
514
|
-
writable: !0,
|
|
515
|
-
value: 0
|
|
516
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
517
|
-
configurable: !1,
|
|
518
|
-
enumerable: !1,
|
|
519
|
-
writable: !0,
|
|
520
|
-
value: null
|
|
521
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
522
|
-
configurable: !1,
|
|
523
|
-
enumerable: !1,
|
|
524
|
-
writable: !0,
|
|
525
|
-
value: i
|
|
526
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
527
|
-
configurable: !1,
|
|
528
|
-
enumerable: !1,
|
|
529
|
-
writable: !0,
|
|
530
|
-
value: a
|
|
531
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
532
|
-
}
|
|
533
|
-
function y(e, t) {
|
|
534
|
-
return t = v(e.type, t, e.props, e._owner, e._debugStack, e._debugTask), e._store && (t._store.validated = e._store.validated), t;
|
|
535
|
-
}
|
|
536
|
-
function b(e) {
|
|
537
|
-
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === W && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
538
|
-
}
|
|
539
|
-
function x(e) {
|
|
540
|
-
return typeof e == "object" && !!e && e.$$typeof === F;
|
|
541
|
-
}
|
|
542
|
-
function S(e) {
|
|
543
|
-
var t = {
|
|
544
|
-
"=": "=0",
|
|
545
|
-
":": "=2"
|
|
546
|
-
};
|
|
547
|
-
return "$" + e.replace(/[=:]/g, function(e) {
|
|
548
|
-
return t[e];
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
function C(e, t) {
|
|
552
|
-
return typeof e == "object" && e && e.key != null ? (u(e.key), S("" + e.key)) : t.toString(36);
|
|
553
|
-
}
|
|
554
|
-
function w(e) {
|
|
555
|
-
switch (e.status) {
|
|
556
|
-
case "fulfilled": return e.value;
|
|
557
|
-
case "rejected": throw e.reason;
|
|
558
|
-
default: switch (typeof e.status == "string" ? e.then(c, c) : (e.status = "pending", e.then(function(t) {
|
|
559
|
-
e.status === "pending" && (e.status = "fulfilled", e.value = t);
|
|
560
|
-
}, function(t) {
|
|
561
|
-
e.status === "pending" && (e.status = "rejected", e.reason = t);
|
|
562
|
-
})), e.status) {
|
|
563
|
-
case "fulfilled": return e.value;
|
|
564
|
-
case "rejected": throw e.reason;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
throw e;
|
|
568
|
-
}
|
|
569
|
-
function T(e, t, n, i, a) {
|
|
570
|
-
var o = typeof e;
|
|
571
|
-
(o === "undefined" || o === "boolean") && (e = null);
|
|
572
|
-
var s = !1;
|
|
573
|
-
if (e === null) s = !0;
|
|
574
|
-
else switch (o) {
|
|
575
|
-
case "bigint":
|
|
576
|
-
case "string":
|
|
577
|
-
case "number":
|
|
578
|
-
s = !0;
|
|
579
|
-
break;
|
|
580
|
-
case "object": switch (e.$$typeof) {
|
|
581
|
-
case F:
|
|
582
|
-
case I:
|
|
583
|
-
s = !0;
|
|
584
|
-
break;
|
|
585
|
-
case W: return s = e._init, T(s(e._payload), t, n, i, a);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
if (s) {
|
|
589
|
-
s = e, a = a(s);
|
|
590
|
-
var c = i === "" ? "." + C(s, 0) : i;
|
|
591
|
-
return se(a) ? (n = "", c != null && (n = c.replace(_e, "$&/") + "/"), T(a, t, n, "", function(e) {
|
|
592
|
-
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(_e, "$&/") + "/") + 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
|
-
}
|
|
595
|
-
if (s = 0, c = i === "" ? "." : i + ":", se(e)) for (var l = 0; l < e.length; l++) i = e[l], o = c + C(i, l), s += T(i, t, n, o, a);
|
|
596
|
-
else if (l = r(e), typeof l == "function") for (l === e.entries && (ge || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), ge = !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
|
-
else if (o === "object") {
|
|
598
|
-
if (typeof e.then == "function") return T(w(e), t, n, i, a);
|
|
599
|
-
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.");
|
|
600
|
-
}
|
|
601
|
-
return s;
|
|
602
|
-
}
|
|
603
|
-
function E(e, t, n) {
|
|
604
|
-
if (e == null) return e;
|
|
605
|
-
var r = [], i = 0;
|
|
606
|
-
return T(e, r, "", "", function(e) {
|
|
607
|
-
return t.call(n, e, i++);
|
|
608
|
-
}), r;
|
|
609
|
-
}
|
|
610
|
-
function D(e) {
|
|
611
|
-
if (e._status === -1) {
|
|
612
|
-
var t = e._ioInfo;
|
|
613
|
-
t != null && (t.start = t.end = performance.now()), t = e._result;
|
|
614
|
-
var n = t();
|
|
615
|
-
if (n.then(function(t) {
|
|
616
|
-
if (e._status === 0 || e._status === -1) {
|
|
617
|
-
e._status = 1, e._result = t;
|
|
618
|
-
var r = e._ioInfo;
|
|
619
|
-
r != null && (r.end = performance.now()), n.status === void 0 && (n.status = "fulfilled", n.value = t);
|
|
620
|
-
}
|
|
621
|
-
}, function(t) {
|
|
622
|
-
if (e._status === 0 || e._status === -1) {
|
|
623
|
-
e._status = 2, e._result = t;
|
|
624
|
-
var r = e._ioInfo;
|
|
625
|
-
r != null && (r.end = performance.now()), n.status === void 0 && (n.status = "rejected", n.reason = t);
|
|
626
|
-
}
|
|
627
|
-
}), t = e._ioInfo, t != null) {
|
|
628
|
-
t.value = n;
|
|
629
|
-
var r = n.displayName;
|
|
630
|
-
typeof r == "string" && (t.name = r);
|
|
631
|
-
}
|
|
632
|
-
e._status === -1 && (e._status = 0, e._result = n);
|
|
633
|
-
}
|
|
634
|
-
if (e._status === 1) return t = e._result, t === void 0 && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", t), "default" in t || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", t), t.default;
|
|
635
|
-
throw e._result;
|
|
636
|
-
}
|
|
637
|
-
function O() {
|
|
638
|
-
var e = q.H;
|
|
639
|
-
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
|
-
}
|
|
641
|
-
function k() {
|
|
642
|
-
q.asyncTransitions--;
|
|
643
|
-
}
|
|
644
|
-
function A(e) {
|
|
645
|
-
if (J === null) try {
|
|
646
|
-
var n = ("require" + Math.random()).slice(0, 7);
|
|
647
|
-
J = (t && t[n]).call(t, "timers").setImmediate;
|
|
648
|
-
} catch {
|
|
649
|
-
J = function(e) {
|
|
650
|
-
!1 === ye && (ye = !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
|
-
var t = new MessageChannel();
|
|
652
|
-
t.port1.onmessage = e, t.port2.postMessage(void 0);
|
|
653
|
-
};
|
|
654
|
-
}
|
|
655
|
-
return J(e);
|
|
656
|
-
}
|
|
657
|
-
function j(e) {
|
|
658
|
-
return 1 < e.length && typeof AggregateError == "function" ? AggregateError(e) : e[0];
|
|
659
|
-
}
|
|
660
|
-
function M(e, t) {
|
|
661
|
-
t !== Y - 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. "), Y = t;
|
|
662
|
-
}
|
|
663
|
-
function N(e, t, n) {
|
|
664
|
-
var r = q.actQueue;
|
|
665
|
-
if (r !== null) if (r.length !== 0) try {
|
|
666
|
-
P(r), A(function() {
|
|
667
|
-
return N(e, t, n);
|
|
668
|
-
});
|
|
669
|
-
return;
|
|
670
|
-
} catch (e) {
|
|
671
|
-
q.thrownErrors.push(e);
|
|
672
|
-
}
|
|
673
|
-
else q.actQueue = null;
|
|
674
|
-
0 < q.thrownErrors.length ? (r = j(q.thrownErrors), q.thrownErrors.length = 0, n(r)) : t(e);
|
|
675
|
-
}
|
|
676
|
-
function P(e) {
|
|
677
|
-
if (!be) {
|
|
678
|
-
be = !0;
|
|
679
|
-
var t = 0;
|
|
680
|
-
try {
|
|
681
|
-
for (; t < e.length; t++) {
|
|
682
|
-
var n = e[t];
|
|
683
|
-
do {
|
|
684
|
-
q.didUsePromise = !1;
|
|
685
|
-
var r = n(!1);
|
|
686
|
-
if (r !== null) {
|
|
687
|
-
if (q.didUsePromise) {
|
|
688
|
-
e[t] = n, e.splice(0, t);
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
n = r;
|
|
692
|
-
} else break;
|
|
693
|
-
} while (1);
|
|
694
|
-
}
|
|
695
|
-
e.length = 0;
|
|
696
|
-
} catch (n) {
|
|
697
|
-
e.splice(0, t + 1), q.thrownErrors.push(n);
|
|
698
|
-
} finally {
|
|
699
|
-
be = !1;
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
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"), ne = Symbol.for("react.activity"), re = Symbol.iterator, G = {}, ie = {
|
|
705
|
-
isMounted: function() {
|
|
706
|
-
return !1;
|
|
707
|
-
},
|
|
708
|
-
enqueueForceUpdate: function(e) {
|
|
709
|
-
i(e, "forceUpdate");
|
|
710
|
-
},
|
|
711
|
-
enqueueReplaceState: function(e) {
|
|
712
|
-
i(e, "replaceState");
|
|
713
|
-
},
|
|
714
|
-
enqueueSetState: function(e) {
|
|
715
|
-
i(e, "setState");
|
|
716
|
-
}
|
|
717
|
-
}, ae = Object.assign, oe = {};
|
|
718
|
-
Object.freeze(oe), a.prototype.isReactComponent = {}, a.prototype.setState = function(e, t) {
|
|
719
|
-
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
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
721
|
-
}, a.prototype.forceUpdate = function(e) {
|
|
722
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
723
|
-
};
|
|
724
|
-
var K = {
|
|
725
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
726
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
727
|
-
};
|
|
728
|
-
for (Z in K) K.hasOwnProperty(Z) && n(Z, K[Z]);
|
|
729
|
-
o.prototype = a.prototype, K = s.prototype = new o(), K.constructor = s, ae(K, a.prototype), K.isPureReactComponent = !0;
|
|
730
|
-
var se = Array.isArray, ce = Symbol.for("react.client.reference"), q = {
|
|
731
|
-
H: null,
|
|
732
|
-
A: null,
|
|
733
|
-
T: null,
|
|
734
|
-
S: null,
|
|
735
|
-
actQueue: null,
|
|
736
|
-
asyncTransitions: 0,
|
|
737
|
-
isBatchingLegacy: !1,
|
|
738
|
-
didScheduleLegacyUpdate: !1,
|
|
739
|
-
didUsePromise: !1,
|
|
740
|
-
thrownErrors: [],
|
|
741
|
-
getCurrentStack: null,
|
|
742
|
-
recentlyCreatedOwnerStacks: 0
|
|
743
|
-
}, le = Object.prototype.hasOwnProperty, ue = console.createTask ? console.createTask : function() {
|
|
744
|
-
return null;
|
|
745
|
-
};
|
|
746
|
-
K = { react_stack_bottom_frame: function(e) {
|
|
747
|
-
return e();
|
|
748
|
-
} };
|
|
749
|
-
var de, fe, pe = {}, me = K.react_stack_bottom_frame.bind(K, m)(), he = ue(f(m)), ge = !1, _e = /\/+/g, ve = typeof reportError == "function" ? reportError : function(e) {
|
|
750
|
-
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
751
|
-
var t = new window.ErrorEvent("error", {
|
|
752
|
-
bubbles: !0,
|
|
753
|
-
cancelable: !0,
|
|
754
|
-
message: typeof e == "object" && e && typeof e.message == "string" ? String(e.message) : String(e),
|
|
755
|
-
error: e
|
|
756
|
-
});
|
|
757
|
-
if (!window.dispatchEvent(t)) return;
|
|
758
|
-
} else if (typeof process == "object" && typeof process.emit == "function") {
|
|
759
|
-
process.emit("uncaughtException", e);
|
|
760
|
-
return;
|
|
761
|
-
}
|
|
762
|
-
console.error(e);
|
|
763
|
-
}, ye = !1, J = null, Y = 0, X = !1, be = !1, xe = typeof queueMicrotask == "function" ? function(e) {
|
|
764
|
-
queueMicrotask(function() {
|
|
765
|
-
return queueMicrotask(e);
|
|
766
|
-
});
|
|
767
|
-
} : A;
|
|
768
|
-
K = Object.freeze({
|
|
769
|
-
__proto__: null,
|
|
770
|
-
c: function(e) {
|
|
771
|
-
return O().useMemoCache(e);
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
var Z = {
|
|
775
|
-
map: E,
|
|
776
|
-
forEach: function(e, t, n) {
|
|
777
|
-
E(e, function() {
|
|
778
|
-
t.apply(this, arguments);
|
|
779
|
-
}, n);
|
|
780
|
-
},
|
|
781
|
-
count: function(e) {
|
|
782
|
-
var t = 0;
|
|
783
|
-
return E(e, function() {
|
|
784
|
-
t++;
|
|
785
|
-
}), t;
|
|
786
|
-
},
|
|
787
|
-
toArray: function(e) {
|
|
788
|
-
return E(e, function(e) {
|
|
789
|
-
return e;
|
|
790
|
-
}) || [];
|
|
791
|
-
},
|
|
792
|
-
only: function(e) {
|
|
793
|
-
if (!x(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
794
|
-
return e;
|
|
795
|
-
}
|
|
796
|
-
};
|
|
797
|
-
e.Activity = ne, e.Children = Z, 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 = q, e.__COMPILER_RUNTIME = K, e.act = function(e) {
|
|
798
|
-
var t = q.actQueue, n = Y;
|
|
799
|
-
Y++;
|
|
800
|
-
var r = q.actQueue = t === null ? [] : t, i = !1;
|
|
801
|
-
try {
|
|
802
|
-
var a = e();
|
|
803
|
-
} catch (e) {
|
|
804
|
-
q.thrownErrors.push(e);
|
|
805
|
-
}
|
|
806
|
-
if (0 < q.thrownErrors.length) throw M(t, n), e = j(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
807
|
-
if (typeof a == "object" && a && typeof a.then == "function") {
|
|
808
|
-
var o = a;
|
|
809
|
-
return xe(function() {
|
|
810
|
-
i || X || (X = !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
|
-
}), { then: function(e, a) {
|
|
812
|
-
i = !0, o.then(function(i) {
|
|
813
|
-
if (M(t, n), n === 0) {
|
|
814
|
-
try {
|
|
815
|
-
P(r), A(function() {
|
|
816
|
-
return N(i, e, a);
|
|
817
|
-
});
|
|
818
|
-
} catch (e) {
|
|
819
|
-
q.thrownErrors.push(e);
|
|
820
|
-
}
|
|
821
|
-
if (0 < q.thrownErrors.length) {
|
|
822
|
-
var o = j(q.thrownErrors);
|
|
823
|
-
q.thrownErrors.length = 0, a(o);
|
|
824
|
-
}
|
|
825
|
-
} else e(i);
|
|
826
|
-
}, function(e) {
|
|
827
|
-
M(t, n), 0 < q.thrownErrors.length ? (e = j(q.thrownErrors), q.thrownErrors.length = 0, a(e)) : a(e);
|
|
828
|
-
});
|
|
829
|
-
} };
|
|
830
|
-
}
|
|
831
|
-
var s = a;
|
|
832
|
-
if (M(t, n), n === 0 && (P(r), r.length !== 0 && xe(function() {
|
|
833
|
-
i || X || (X = !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(() => ...)"));
|
|
834
|
-
}), q.actQueue = null), 0 < q.thrownErrors.length) throw e = j(q.thrownErrors), q.thrownErrors.length = 0, e;
|
|
835
|
-
return { then: function(e, t) {
|
|
836
|
-
i = !0, n === 0 ? (q.actQueue = r, A(function() {
|
|
837
|
-
return N(s, e, t);
|
|
838
|
-
})) : e(s);
|
|
839
|
-
} };
|
|
840
|
-
}, e.cache = function(e) {
|
|
841
|
-
return function() {
|
|
842
|
-
return e.apply(null, arguments);
|
|
843
|
-
};
|
|
844
|
-
}, e.cacheSignal = function() {
|
|
845
|
-
return null;
|
|
846
|
-
}, e.captureOwnerStack = function() {
|
|
847
|
-
var e = q.getCurrentStack;
|
|
848
|
-
return e === null ? null : e();
|
|
849
|
-
}, e.cloneElement = function(e, t, n) {
|
|
850
|
-
if (e == null) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
851
|
-
var r = ae({}, e.props), i = e.key, a = e._owner;
|
|
852
|
-
if (t != null) {
|
|
853
|
-
var o;
|
|
854
|
-
a: {
|
|
855
|
-
if (le.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
856
|
-
o = !1;
|
|
857
|
-
break a;
|
|
858
|
-
}
|
|
859
|
-
o = t.ref !== void 0;
|
|
860
|
-
}
|
|
861
|
-
for (s in o && (a = p()), h(t) && (u(t.key), i = "" + t.key), t) !le.call(t, s) || s === "key" || s === "__self" || s === "__source" || s === "ref" && t.ref === void 0 || (r[s] = t[s]);
|
|
862
|
-
}
|
|
863
|
-
var s = arguments.length - 2;
|
|
864
|
-
if (s === 1) r.children = n;
|
|
865
|
-
else if (1 < s) {
|
|
866
|
-
o = Array(s);
|
|
867
|
-
for (var c = 0; c < s; c++) o[c] = arguments[c + 2];
|
|
868
|
-
r.children = o;
|
|
869
|
-
}
|
|
870
|
-
for (r = v(e.type, i, r, a, e._debugStack, e._debugTask), i = 2; i < arguments.length; i++) b(arguments[i]);
|
|
871
|
-
return r;
|
|
872
|
-
}, e.createContext = function(e) {
|
|
873
|
-
return e = {
|
|
874
|
-
$$typeof: V,
|
|
875
|
-
_currentValue: e,
|
|
876
|
-
_currentValue2: e,
|
|
877
|
-
_threadCount: 0,
|
|
878
|
-
Provider: null,
|
|
879
|
-
Consumer: null
|
|
880
|
-
}, e.Provider = e, e.Consumer = {
|
|
881
|
-
$$typeof: B,
|
|
882
|
-
_context: e
|
|
883
|
-
}, e._currentRenderer = null, e._currentRenderer2 = null, e;
|
|
884
|
-
}, e.createElement = function(e, t, n) {
|
|
885
|
-
for (var r = 2; r < arguments.length; r++) b(arguments[r]);
|
|
886
|
-
r = {};
|
|
887
|
-
var i = null;
|
|
888
|
-
if (t != null) for (c in fe || !("__self" in t) || "key" in t || (fe = !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) le.call(t, c) && c !== "key" && c !== "__self" && c !== "__source" && (r[c] = t[c]);
|
|
889
|
-
var a = arguments.length - 2;
|
|
890
|
-
if (a === 1) r.children = n;
|
|
891
|
-
else if (1 < a) {
|
|
892
|
-
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
893
|
-
Object.freeze && Object.freeze(o), r.children = o;
|
|
894
|
-
}
|
|
895
|
-
if (e && e.defaultProps) for (c in a = e.defaultProps, a) r[c] === void 0 && (r[c] = a[c]);
|
|
896
|
-
i && g(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e);
|
|
897
|
-
var c = 1e4 > q.recentlyCreatedOwnerStacks++;
|
|
898
|
-
return v(e, i, r, p(), c ? Error("react-stack-top-frame") : me, c ? ue(f(e)) : he);
|
|
899
|
-
}, e.createRef = function() {
|
|
900
|
-
var e = { current: null };
|
|
901
|
-
return Object.seal(e), e;
|
|
902
|
-
}, e.forwardRef = function(e) {
|
|
903
|
-
e != null && e.$$typeof === U ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e == "function" ? e.length !== 0 && e.length !== 2 && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.") : console.error("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), e != null && e.defaultProps != null && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
904
|
-
var t = {
|
|
905
|
-
$$typeof: H,
|
|
906
|
-
render: e
|
|
907
|
-
}, n;
|
|
908
|
-
return Object.defineProperty(t, "displayName", {
|
|
909
|
-
enumerable: !1,
|
|
910
|
-
configurable: !0,
|
|
911
|
-
get: function() {
|
|
912
|
-
return n;
|
|
913
|
-
},
|
|
914
|
-
set: function(t) {
|
|
915
|
-
n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
916
|
-
}
|
|
917
|
-
}), t;
|
|
918
|
-
}, e.isValidElement = x, e.lazy = function(e) {
|
|
919
|
-
e = {
|
|
920
|
-
_status: -1,
|
|
921
|
-
_result: e
|
|
922
|
-
};
|
|
923
|
-
var t = {
|
|
924
|
-
$$typeof: W,
|
|
925
|
-
_payload: e,
|
|
926
|
-
_init: D
|
|
927
|
-
}, n = {
|
|
928
|
-
name: "lazy",
|
|
929
|
-
start: -1,
|
|
930
|
-
end: -1,
|
|
931
|
-
value: null,
|
|
932
|
-
owner: null,
|
|
933
|
-
debugStack: Error("react-stack-top-frame"),
|
|
934
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
935
|
-
};
|
|
936
|
-
return e._ioInfo = n, t._debugInfo = [{ awaited: n }], t;
|
|
937
|
-
}, e.memo = function(e, t) {
|
|
938
|
-
e ?? console.error("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e), t = {
|
|
939
|
-
$$typeof: U,
|
|
940
|
-
type: e,
|
|
941
|
-
compare: t === void 0 ? null : t
|
|
942
|
-
};
|
|
943
|
-
var n;
|
|
944
|
-
return Object.defineProperty(t, "displayName", {
|
|
945
|
-
enumerable: !1,
|
|
946
|
-
configurable: !0,
|
|
947
|
-
get: function() {
|
|
948
|
-
return n;
|
|
949
|
-
},
|
|
950
|
-
set: function(t) {
|
|
951
|
-
n = t, e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
952
|
-
}
|
|
953
|
-
}), t;
|
|
954
|
-
}, e.startTransition = function(e) {
|
|
955
|
-
var t = q.T, n = {};
|
|
956
|
-
n._updatedFibers = /* @__PURE__ */ new Set(), q.T = n;
|
|
957
|
-
try {
|
|
958
|
-
var r = e(), i = q.S;
|
|
959
|
-
i !== null && i(n, r), typeof r == "object" && r && typeof r.then == "function" && (q.asyncTransitions++, r.then(k, k), r.then(c, ve));
|
|
960
|
-
} catch (e) {
|
|
961
|
-
ve(e);
|
|
962
|
-
} 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), q.T = t;
|
|
964
|
-
}
|
|
965
|
-
}, e.unstable_useCacheRefresh = function() {
|
|
966
|
-
return O().useCacheRefresh();
|
|
967
|
-
}, e.use = function(e) {
|
|
968
|
-
return O().use(e);
|
|
969
|
-
}, e.useActionState = function(e, t, n) {
|
|
970
|
-
return O().useActionState(e, t, n);
|
|
971
|
-
}, e.useCallback = function(e, t) {
|
|
972
|
-
return O().useCallback(e, t);
|
|
973
|
-
}, e.useContext = function(e) {
|
|
974
|
-
var t = O();
|
|
975
|
-
return e.$$typeof === B && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"), t.useContext(e);
|
|
976
|
-
}, e.useDebugValue = function(e, t) {
|
|
977
|
-
return O().useDebugValue(e, t);
|
|
978
|
-
}, e.useDeferredValue = function(e, t) {
|
|
979
|
-
return O().useDeferredValue(e, t);
|
|
980
|
-
}, e.useEffect = function(e, t) {
|
|
981
|
-
return e ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"), O().useEffect(e, t);
|
|
982
|
-
}, e.useEffectEvent = function(e) {
|
|
983
|
-
return O().useEffectEvent(e);
|
|
984
|
-
}, e.useId = function() {
|
|
985
|
-
return O().useId();
|
|
986
|
-
}, e.useImperativeHandle = function(e, t, n) {
|
|
987
|
-
return O().useImperativeHandle(e, t, n);
|
|
988
|
-
}, e.useInsertionEffect = function(e, t) {
|
|
989
|
-
return e ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"), O().useInsertionEffect(e, t);
|
|
990
|
-
}, e.useLayoutEffect = function(e, t) {
|
|
991
|
-
return e ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"), O().useLayoutEffect(e, t);
|
|
992
|
-
}, e.useMemo = function(e, t) {
|
|
993
|
-
return O().useMemo(e, t);
|
|
994
|
-
}, e.useOptimistic = function(e, t) {
|
|
995
|
-
return O().useOptimistic(e, t);
|
|
996
|
-
}, e.useReducer = function(e, t, n) {
|
|
997
|
-
return O().useReducer(e, t, n);
|
|
998
|
-
}, e.useRef = function(e) {
|
|
999
|
-
return O().useRef(e);
|
|
1000
|
-
}, e.useState = function(e) {
|
|
1001
|
-
return O().useState(e);
|
|
1002
|
-
}, e.useSyncExternalStore = function(e, t, n) {
|
|
1003
|
-
return O().useSyncExternalStore(e, t, n);
|
|
1004
|
-
}, e.useTransition = function() {
|
|
1005
|
-
return O().useTransition();
|
|
1006
|
-
}, 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
|
-
})();
|
|
1008
|
-
})), G = (/* @__PURE__ */ D(((e, t) => {
|
|
1009
|
-
process.env.NODE_ENV === "production" ? t.exports = ne() : t.exports = re();
|
|
1010
|
-
})))(), ie = /(?:[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;
|
|
1011
|
-
function ae(e) {
|
|
1012
|
-
let t = {};
|
|
1013
|
-
return e.replace(ie, (e) => {
|
|
1014
|
-
let n = e.length;
|
|
1015
|
-
switch (e[0]) {
|
|
1016
|
-
case "G":
|
|
1017
|
-
t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1018
|
-
break;
|
|
1019
|
-
case "y":
|
|
1020
|
-
t.year = n === 2 ? "2-digit" : "numeric";
|
|
1021
|
-
break;
|
|
1022
|
-
case "Y":
|
|
1023
|
-
case "u":
|
|
1024
|
-
case "U":
|
|
1025
|
-
case "r": throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
1026
|
-
case "q":
|
|
1027
|
-
case "Q": throw RangeError("`q/Q` (quarter) patterns are not supported");
|
|
1028
|
-
case "M":
|
|
1029
|
-
case "L":
|
|
1030
|
-
t.month = [
|
|
1031
|
-
"numeric",
|
|
1032
|
-
"2-digit",
|
|
1033
|
-
"short",
|
|
1034
|
-
"long",
|
|
1035
|
-
"narrow"
|
|
1036
|
-
][n - 1];
|
|
1037
|
-
break;
|
|
1038
|
-
case "w":
|
|
1039
|
-
case "W": throw RangeError("`w/W` (week) patterns are not supported");
|
|
1040
|
-
case "d":
|
|
1041
|
-
t.day = ["numeric", "2-digit"][n - 1];
|
|
1042
|
-
break;
|
|
1043
|
-
case "D":
|
|
1044
|
-
case "F":
|
|
1045
|
-
case "g": throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
1046
|
-
case "E":
|
|
1047
|
-
t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
|
|
1048
|
-
break;
|
|
1049
|
-
case "e":
|
|
1050
|
-
if (n < 4) throw RangeError("`e..eee` (weekday) patterns are not supported");
|
|
1051
|
-
t.weekday = [
|
|
1052
|
-
"short",
|
|
1053
|
-
"long",
|
|
1054
|
-
"narrow",
|
|
1055
|
-
"short"
|
|
1056
|
-
][n - 4];
|
|
1057
|
-
break;
|
|
1058
|
-
case "c":
|
|
1059
|
-
if (n < 4) throw RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
1060
|
-
t.weekday = [
|
|
1061
|
-
"short",
|
|
1062
|
-
"long",
|
|
1063
|
-
"narrow",
|
|
1064
|
-
"short"
|
|
1065
|
-
][n - 4];
|
|
1066
|
-
break;
|
|
1067
|
-
case "a":
|
|
1068
|
-
t.hour12 = !0;
|
|
1069
|
-
break;
|
|
1070
|
-
case "b":
|
|
1071
|
-
case "B": throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
1072
|
-
case "h":
|
|
1073
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1074
|
-
break;
|
|
1075
|
-
case "H":
|
|
1076
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1077
|
-
break;
|
|
1078
|
-
case "K":
|
|
1079
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1080
|
-
break;
|
|
1081
|
-
case "k":
|
|
1082
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
|
|
1083
|
-
break;
|
|
1084
|
-
case "j":
|
|
1085
|
-
case "J":
|
|
1086
|
-
case "C": throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
1087
|
-
case "m":
|
|
1088
|
-
t.minute = ["numeric", "2-digit"][n - 1];
|
|
1089
|
-
break;
|
|
1090
|
-
case "s":
|
|
1091
|
-
t.second = ["numeric", "2-digit"][n - 1];
|
|
1092
|
-
break;
|
|
1093
|
-
case "S":
|
|
1094
|
-
case "A": throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
1095
|
-
case "z":
|
|
1096
|
-
t.timeZoneName = n < 4 ? "short" : "long";
|
|
1097
|
-
break;
|
|
1098
|
-
case "Z":
|
|
1099
|
-
case "O":
|
|
1100
|
-
case "v":
|
|
1101
|
-
case "V":
|
|
1102
|
-
case "X":
|
|
1103
|
-
case "x": throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
1104
|
-
}
|
|
1105
|
-
return "";
|
|
1106
|
-
}), t;
|
|
1107
|
-
}
|
|
1108
|
-
var oe = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1109
|
-
function K(e) {
|
|
1110
|
-
if (e.length === 0) throw Error("Number skeleton cannot be empty");
|
|
1111
|
-
let t = e.split(oe).filter((e) => e.length > 0), n = [];
|
|
1112
|
-
for (let e of t) {
|
|
1113
|
-
let t = e.split("/");
|
|
1114
|
-
if (t.length === 0) throw Error("Invalid number skeleton");
|
|
1115
|
-
let [r, ...i] = t;
|
|
1116
|
-
for (let e of i) if (e.length === 0) throw Error("Invalid number skeleton");
|
|
1117
|
-
n.push({
|
|
1118
|
-
stem: r,
|
|
1119
|
-
options: i
|
|
1120
|
-
});
|
|
1121
|
-
}
|
|
1122
|
-
return n;
|
|
1123
|
-
}
|
|
1124
|
-
function se(e) {
|
|
1125
|
-
return e.replace(/^(.*?)-/, "");
|
|
1126
|
-
}
|
|
1127
|
-
var ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, q = /^(@+)?(\+|#+)?[rs]?$/g, le = /(\*)(0+)|(#+)(0+)|(0+)/g, ue = /^(0+)$/;
|
|
1128
|
-
function de(e) {
|
|
1129
|
-
let t = {};
|
|
1130
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(q, function(e, n, r) {
|
|
1131
|
-
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
|
-
}), t;
|
|
1133
|
-
}
|
|
1134
|
-
function fe(e) {
|
|
1135
|
-
switch (e) {
|
|
1136
|
-
case "sign-auto": return { signDisplay: "auto" };
|
|
1137
|
-
case "sign-accounting":
|
|
1138
|
-
case "()": return { currencySign: "accounting" };
|
|
1139
|
-
case "sign-always":
|
|
1140
|
-
case "+!": return { signDisplay: "always" };
|
|
1141
|
-
case "sign-accounting-always":
|
|
1142
|
-
case "()!": return {
|
|
1143
|
-
signDisplay: "always",
|
|
1144
|
-
currencySign: "accounting"
|
|
1145
|
-
};
|
|
1146
|
-
case "sign-except-zero":
|
|
1147
|
-
case "+?": return { signDisplay: "exceptZero" };
|
|
1148
|
-
case "sign-accounting-except-zero":
|
|
1149
|
-
case "()?": return {
|
|
1150
|
-
signDisplay: "exceptZero",
|
|
1151
|
-
currencySign: "accounting"
|
|
1152
|
-
};
|
|
1153
|
-
case "sign-never":
|
|
1154
|
-
case "+_": return { signDisplay: "never" };
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
function pe(e) {
|
|
1158
|
-
let t;
|
|
1159
|
-
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
|
-
let n = e.slice(0, 2);
|
|
1161
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ue.test(e)) throw Error("Malformed concise eng/scientific notation");
|
|
1162
|
-
t.minimumIntegerDigits = e.length;
|
|
1163
|
-
}
|
|
1164
|
-
return t;
|
|
1165
|
-
}
|
|
1166
|
-
function me(e) {
|
|
1167
|
-
return fe(e) || {};
|
|
1168
|
-
}
|
|
1169
|
-
function he(e) {
|
|
1170
|
-
let t = {};
|
|
1171
|
-
for (let n of e) {
|
|
1172
|
-
switch (n.stem) {
|
|
1173
|
-
case "percent":
|
|
1174
|
-
case "%":
|
|
1175
|
-
t.style = "percent";
|
|
1176
|
-
continue;
|
|
1177
|
-
case "%x100":
|
|
1178
|
-
t.style = "percent", t.scale = 100;
|
|
1179
|
-
continue;
|
|
1180
|
-
case "currency":
|
|
1181
|
-
t.style = "currency", t.currency = n.options[0];
|
|
1182
|
-
continue;
|
|
1183
|
-
case "group-off":
|
|
1184
|
-
case ",_":
|
|
1185
|
-
t.useGrouping = !1;
|
|
1186
|
-
continue;
|
|
1187
|
-
case "precision-integer":
|
|
1188
|
-
case ".":
|
|
1189
|
-
t.maximumFractionDigits = 0;
|
|
1190
|
-
continue;
|
|
1191
|
-
case "measure-unit":
|
|
1192
|
-
case "unit":
|
|
1193
|
-
t.style = "unit", t.unit = se(n.options[0]);
|
|
1194
|
-
continue;
|
|
1195
|
-
case "compact-short":
|
|
1196
|
-
case "K":
|
|
1197
|
-
t.notation = "compact", t.compactDisplay = "short";
|
|
1198
|
-
continue;
|
|
1199
|
-
case "compact-long":
|
|
1200
|
-
case "KK":
|
|
1201
|
-
t.notation = "compact", t.compactDisplay = "long";
|
|
1202
|
-
continue;
|
|
1203
|
-
case "scientific":
|
|
1204
|
-
t = {
|
|
1205
|
-
...t,
|
|
1206
|
-
notation: "scientific",
|
|
1207
|
-
...n.options.reduce((e, t) => ({
|
|
1208
|
-
...e,
|
|
1209
|
-
...me(t)
|
|
1210
|
-
}), {})
|
|
1211
|
-
};
|
|
1212
|
-
continue;
|
|
1213
|
-
case "engineering":
|
|
1214
|
-
t = {
|
|
1215
|
-
...t,
|
|
1216
|
-
notation: "engineering",
|
|
1217
|
-
...n.options.reduce((e, t) => ({
|
|
1218
|
-
...e,
|
|
1219
|
-
...me(t)
|
|
1220
|
-
}), {})
|
|
1221
|
-
};
|
|
1222
|
-
continue;
|
|
1223
|
-
case "notation-simple":
|
|
1224
|
-
t.notation = "standard";
|
|
1225
|
-
continue;
|
|
1226
|
-
case "unit-width-narrow":
|
|
1227
|
-
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
1228
|
-
continue;
|
|
1229
|
-
case "unit-width-short":
|
|
1230
|
-
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
1231
|
-
continue;
|
|
1232
|
-
case "unit-width-full-name":
|
|
1233
|
-
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
1234
|
-
continue;
|
|
1235
|
-
case "unit-width-iso-code":
|
|
1236
|
-
t.currencyDisplay = "symbol";
|
|
1237
|
-
continue;
|
|
1238
|
-
case "scale":
|
|
1239
|
-
t.scale = parseFloat(n.options[0]);
|
|
1240
|
-
continue;
|
|
1241
|
-
case "rounding-mode-floor":
|
|
1242
|
-
t.roundingMode = "floor";
|
|
1243
|
-
continue;
|
|
1244
|
-
case "rounding-mode-ceiling":
|
|
1245
|
-
t.roundingMode = "ceil";
|
|
1246
|
-
continue;
|
|
1247
|
-
case "rounding-mode-down":
|
|
1248
|
-
t.roundingMode = "trunc";
|
|
1249
|
-
continue;
|
|
1250
|
-
case "rounding-mode-up":
|
|
1251
|
-
t.roundingMode = "expand";
|
|
1252
|
-
continue;
|
|
1253
|
-
case "rounding-mode-half-even":
|
|
1254
|
-
t.roundingMode = "halfEven";
|
|
1255
|
-
continue;
|
|
1256
|
-
case "rounding-mode-half-down":
|
|
1257
|
-
t.roundingMode = "halfTrunc";
|
|
1258
|
-
continue;
|
|
1259
|
-
case "rounding-mode-half-up":
|
|
1260
|
-
t.roundingMode = "halfExpand";
|
|
1261
|
-
continue;
|
|
1262
|
-
case "integer-width":
|
|
1263
|
-
if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
|
|
1264
|
-
n.options[0].replace(le, function(e, n, r, i, a, o) {
|
|
1265
|
-
if (n) t.minimumIntegerDigits = r.length;
|
|
1266
|
-
else if (i && a) throw Error("We currently do not support maximum integer digits");
|
|
1267
|
-
else if (o) throw Error("We currently do not support exact integer digits");
|
|
1268
|
-
return "";
|
|
1269
|
-
});
|
|
1270
|
-
continue;
|
|
1271
|
-
}
|
|
1272
|
-
if (ue.test(n.stem)) {
|
|
1273
|
-
t.minimumIntegerDigits = n.stem.length;
|
|
1274
|
-
continue;
|
|
1275
|
-
}
|
|
1276
|
-
if (ce.test(n.stem)) {
|
|
1277
|
-
if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
|
|
1278
|
-
n.stem.replace(ce, function(e, n, r, i, a, o) {
|
|
1279
|
-
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
|
-
});
|
|
1281
|
-
let e = n.options[0];
|
|
1282
|
-
e === "w" ? t = {
|
|
1283
|
-
...t,
|
|
1284
|
-
trailingZeroDisplay: "stripIfInteger"
|
|
1285
|
-
} : e && (t = {
|
|
1286
|
-
...t,
|
|
1287
|
-
...de(e)
|
|
1288
|
-
});
|
|
1289
|
-
continue;
|
|
1290
|
-
}
|
|
1291
|
-
if (q.test(n.stem)) {
|
|
1292
|
-
t = {
|
|
1293
|
-
...t,
|
|
1294
|
-
...de(n.stem)
|
|
1295
|
-
};
|
|
1296
|
-
continue;
|
|
1297
|
-
}
|
|
1298
|
-
let e = fe(n.stem);
|
|
1299
|
-
e && (t = {
|
|
1300
|
-
...t,
|
|
1301
|
-
...e
|
|
1302
|
-
});
|
|
1303
|
-
let r = pe(n.stem);
|
|
1304
|
-
r && (t = {
|
|
1305
|
-
...t,
|
|
1306
|
-
...r
|
|
1307
|
-
});
|
|
1308
|
-
}
|
|
1309
|
-
return t;
|
|
1310
|
-
}
|
|
1311
|
-
//#endregion
|
|
1312
|
-
//#region ../../node_modules/.bun/@formatjs+icu-messageformat-parser@3.5.12/node_modules/@formatjs/icu-messageformat-parser/index.js
|
|
1313
|
-
var ge = /* @__PURE__ */ function(e) {
|
|
1314
|
-
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
|
-
}({});
|
|
1316
|
-
function _e(e) {
|
|
1317
|
-
return e.type === 0;
|
|
1318
|
-
}
|
|
1319
|
-
function ve(e) {
|
|
1320
|
-
return e.type === 1;
|
|
1321
|
-
}
|
|
1322
|
-
function ye(e) {
|
|
1323
|
-
return e.type === 2;
|
|
1324
|
-
}
|
|
1325
|
-
function J(e) {
|
|
1326
|
-
return e.type === 3;
|
|
1327
|
-
}
|
|
1328
|
-
function Y(e) {
|
|
1329
|
-
return e.type === 4;
|
|
1330
|
-
}
|
|
1331
|
-
function X(e) {
|
|
1332
|
-
return e.type === 5;
|
|
1333
|
-
}
|
|
1334
|
-
function be(e) {
|
|
1335
|
-
return e.type === 6;
|
|
1336
|
-
}
|
|
1337
|
-
function xe(e) {
|
|
1338
|
-
return e.type === 7;
|
|
1339
|
-
}
|
|
1340
|
-
function Z(e) {
|
|
1341
|
-
return e.type === 8;
|
|
1342
|
-
}
|
|
1343
|
-
function Se(e) {
|
|
1344
|
-
return !!(e && typeof e == "object" && e.type === 0);
|
|
1345
|
-
}
|
|
1346
|
-
function Ce(e) {
|
|
1347
|
-
return !!(e && typeof e == "object" && e.type === 1);
|
|
1348
|
-
}
|
|
1349
|
-
var we = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Te = {
|
|
1350
|
-
"001": ["H", "h"],
|
|
1351
|
-
419: [
|
|
1352
|
-
"h",
|
|
1353
|
-
"H",
|
|
1354
|
-
"hB",
|
|
1355
|
-
"hb"
|
|
1356
|
-
],
|
|
1357
|
-
AC: [
|
|
1358
|
-
"H",
|
|
1359
|
-
"h",
|
|
1360
|
-
"hb",
|
|
1361
|
-
"hB"
|
|
1362
|
-
],
|
|
1363
|
-
AD: ["H", "hB"],
|
|
1364
|
-
AE: [
|
|
1365
|
-
"h",
|
|
1366
|
-
"hB",
|
|
1367
|
-
"hb",
|
|
1368
|
-
"H"
|
|
1369
|
-
],
|
|
1370
|
-
AF: [
|
|
1371
|
-
"H",
|
|
1372
|
-
"hb",
|
|
1373
|
-
"hB",
|
|
1374
|
-
"h"
|
|
1375
|
-
],
|
|
1376
|
-
AG: [
|
|
1377
|
-
"h",
|
|
1378
|
-
"hb",
|
|
1379
|
-
"H",
|
|
1380
|
-
"hB"
|
|
1381
|
-
],
|
|
1382
|
-
AI: [
|
|
1383
|
-
"H",
|
|
1384
|
-
"h",
|
|
1385
|
-
"hb",
|
|
1386
|
-
"hB"
|
|
1387
|
-
],
|
|
1388
|
-
AL: [
|
|
1389
|
-
"h",
|
|
1390
|
-
"H",
|
|
1391
|
-
"hB"
|
|
1392
|
-
],
|
|
1393
|
-
AM: ["H", "hB"],
|
|
1394
|
-
AO: ["H", "hB"],
|
|
1395
|
-
AR: [
|
|
1396
|
-
"h",
|
|
1397
|
-
"H",
|
|
1398
|
-
"hB",
|
|
1399
|
-
"hb"
|
|
1400
|
-
],
|
|
1401
|
-
AS: ["h", "H"],
|
|
1402
|
-
AT: ["H", "hB"],
|
|
1403
|
-
AU: [
|
|
1404
|
-
"h",
|
|
1405
|
-
"hb",
|
|
1406
|
-
"H",
|
|
1407
|
-
"hB"
|
|
1408
|
-
],
|
|
1409
|
-
AW: ["H", "hB"],
|
|
1410
|
-
AX: ["H"],
|
|
1411
|
-
AZ: [
|
|
1412
|
-
"H",
|
|
1413
|
-
"hB",
|
|
1414
|
-
"h"
|
|
1415
|
-
],
|
|
1416
|
-
BA: [
|
|
1417
|
-
"H",
|
|
1418
|
-
"hB",
|
|
1419
|
-
"h"
|
|
1420
|
-
],
|
|
1421
|
-
BB: [
|
|
1422
|
-
"h",
|
|
1423
|
-
"hb",
|
|
1424
|
-
"H",
|
|
1425
|
-
"hB"
|
|
1426
|
-
],
|
|
1427
|
-
BD: [
|
|
1428
|
-
"h",
|
|
1429
|
-
"hB",
|
|
1430
|
-
"H"
|
|
1431
|
-
],
|
|
1432
|
-
BE: ["H", "hB"],
|
|
1433
|
-
BF: ["H", "hB"],
|
|
1434
|
-
BG: [
|
|
1435
|
-
"H",
|
|
1436
|
-
"hB",
|
|
1437
|
-
"h"
|
|
1438
|
-
],
|
|
1439
|
-
BH: [
|
|
1440
|
-
"h",
|
|
1441
|
-
"hB",
|
|
1442
|
-
"hb",
|
|
1443
|
-
"H"
|
|
1444
|
-
],
|
|
1445
|
-
BI: ["H", "h"],
|
|
1446
|
-
BJ: ["H", "hB"],
|
|
1447
|
-
BL: ["H", "hB"],
|
|
1448
|
-
BM: [
|
|
1449
|
-
"h",
|
|
1450
|
-
"hb",
|
|
1451
|
-
"H",
|
|
1452
|
-
"hB"
|
|
1453
|
-
],
|
|
1454
|
-
BN: [
|
|
1455
|
-
"hb",
|
|
1456
|
-
"hB",
|
|
1457
|
-
"h",
|
|
1458
|
-
"H"
|
|
1459
|
-
],
|
|
1460
|
-
BO: [
|
|
1461
|
-
"h",
|
|
1462
|
-
"H",
|
|
1463
|
-
"hB",
|
|
1464
|
-
"hb"
|
|
1465
|
-
],
|
|
1466
|
-
BQ: ["H"],
|
|
1467
|
-
BR: ["H", "hB"],
|
|
1468
|
-
BS: [
|
|
1469
|
-
"h",
|
|
1470
|
-
"hb",
|
|
1471
|
-
"H",
|
|
1472
|
-
"hB"
|
|
1473
|
-
],
|
|
1474
|
-
BT: ["h", "H"],
|
|
1475
|
-
BW: [
|
|
1476
|
-
"H",
|
|
1477
|
-
"h",
|
|
1478
|
-
"hb",
|
|
1479
|
-
"hB"
|
|
1480
|
-
],
|
|
1481
|
-
BY: ["H", "h"],
|
|
1482
|
-
BZ: [
|
|
1483
|
-
"H",
|
|
1484
|
-
"h",
|
|
1485
|
-
"hb",
|
|
1486
|
-
"hB"
|
|
1487
|
-
],
|
|
1488
|
-
CA: [
|
|
1489
|
-
"h",
|
|
1490
|
-
"hb",
|
|
1491
|
-
"H",
|
|
1492
|
-
"hB"
|
|
1493
|
-
],
|
|
1494
|
-
CC: [
|
|
1495
|
-
"H",
|
|
1496
|
-
"h",
|
|
1497
|
-
"hb",
|
|
1498
|
-
"hB"
|
|
1499
|
-
],
|
|
1500
|
-
CD: ["hB", "H"],
|
|
1501
|
-
CF: [
|
|
1502
|
-
"H",
|
|
1503
|
-
"h",
|
|
1504
|
-
"hB"
|
|
1505
|
-
],
|
|
1506
|
-
CG: ["H", "hB"],
|
|
1507
|
-
CH: [
|
|
1508
|
-
"H",
|
|
1509
|
-
"hB",
|
|
1510
|
-
"h"
|
|
1511
|
-
],
|
|
1512
|
-
CI: ["H", "hB"],
|
|
1513
|
-
CK: [
|
|
1514
|
-
"H",
|
|
1515
|
-
"h",
|
|
1516
|
-
"hb",
|
|
1517
|
-
"hB"
|
|
1518
|
-
],
|
|
1519
|
-
CL: [
|
|
1520
|
-
"h",
|
|
1521
|
-
"H",
|
|
1522
|
-
"hB",
|
|
1523
|
-
"hb"
|
|
1524
|
-
],
|
|
1525
|
-
CM: [
|
|
1526
|
-
"H",
|
|
1527
|
-
"h",
|
|
1528
|
-
"hB"
|
|
1529
|
-
],
|
|
1530
|
-
CN: [
|
|
1531
|
-
"H",
|
|
1532
|
-
"hB",
|
|
1533
|
-
"hb",
|
|
1534
|
-
"h"
|
|
1535
|
-
],
|
|
1536
|
-
CO: [
|
|
1537
|
-
"h",
|
|
1538
|
-
"H",
|
|
1539
|
-
"hB",
|
|
1540
|
-
"hb"
|
|
1541
|
-
],
|
|
1542
|
-
CP: ["H"],
|
|
1543
|
-
CR: [
|
|
1544
|
-
"h",
|
|
1545
|
-
"H",
|
|
1546
|
-
"hB",
|
|
1547
|
-
"hb"
|
|
1548
|
-
],
|
|
1549
|
-
CU: [
|
|
1550
|
-
"h",
|
|
1551
|
-
"H",
|
|
1552
|
-
"hB",
|
|
1553
|
-
"hb"
|
|
1554
|
-
],
|
|
1555
|
-
CV: ["H", "hB"],
|
|
1556
|
-
CW: ["H", "hB"],
|
|
1557
|
-
CX: [
|
|
1558
|
-
"H",
|
|
1559
|
-
"h",
|
|
1560
|
-
"hb",
|
|
1561
|
-
"hB"
|
|
1562
|
-
],
|
|
1563
|
-
CY: [
|
|
1564
|
-
"h",
|
|
1565
|
-
"H",
|
|
1566
|
-
"hb",
|
|
1567
|
-
"hB"
|
|
1568
|
-
],
|
|
1569
|
-
CZ: ["H"],
|
|
1570
|
-
DE: ["H", "hB"],
|
|
1571
|
-
DG: [
|
|
1572
|
-
"H",
|
|
1573
|
-
"h",
|
|
1574
|
-
"hb",
|
|
1575
|
-
"hB"
|
|
1576
|
-
],
|
|
1577
|
-
DJ: ["h", "H"],
|
|
1578
|
-
DK: ["H"],
|
|
1579
|
-
DM: [
|
|
1580
|
-
"h",
|
|
1581
|
-
"hb",
|
|
1582
|
-
"H",
|
|
1583
|
-
"hB"
|
|
1584
|
-
],
|
|
1585
|
-
DO: [
|
|
1586
|
-
"h",
|
|
1587
|
-
"H",
|
|
1588
|
-
"hB",
|
|
1589
|
-
"hb"
|
|
1590
|
-
],
|
|
1591
|
-
DZ: [
|
|
1592
|
-
"h",
|
|
1593
|
-
"hB",
|
|
1594
|
-
"hb",
|
|
1595
|
-
"H"
|
|
1596
|
-
],
|
|
1597
|
-
EA: [
|
|
1598
|
-
"H",
|
|
1599
|
-
"h",
|
|
1600
|
-
"hB",
|
|
1601
|
-
"hb"
|
|
1602
|
-
],
|
|
1603
|
-
EC: [
|
|
1604
|
-
"h",
|
|
1605
|
-
"H",
|
|
1606
|
-
"hB",
|
|
1607
|
-
"hb"
|
|
1608
|
-
],
|
|
1609
|
-
EE: ["H", "hB"],
|
|
1610
|
-
EG: [
|
|
1611
|
-
"h",
|
|
1612
|
-
"hB",
|
|
1613
|
-
"hb",
|
|
1614
|
-
"H"
|
|
1615
|
-
],
|
|
1616
|
-
EH: [
|
|
1617
|
-
"h",
|
|
1618
|
-
"hB",
|
|
1619
|
-
"hb",
|
|
1620
|
-
"H"
|
|
1621
|
-
],
|
|
1622
|
-
ER: ["h", "H"],
|
|
1623
|
-
ES: [
|
|
1624
|
-
"H",
|
|
1625
|
-
"hB",
|
|
1626
|
-
"h",
|
|
1627
|
-
"hb"
|
|
1628
|
-
],
|
|
1629
|
-
ET: [
|
|
1630
|
-
"hB",
|
|
1631
|
-
"hb",
|
|
1632
|
-
"h",
|
|
1633
|
-
"H"
|
|
1634
|
-
],
|
|
1635
|
-
FI: ["H"],
|
|
1636
|
-
FJ: [
|
|
1637
|
-
"h",
|
|
1638
|
-
"hb",
|
|
1639
|
-
"H",
|
|
1640
|
-
"hB"
|
|
1641
|
-
],
|
|
1642
|
-
FK: [
|
|
1643
|
-
"H",
|
|
1644
|
-
"h",
|
|
1645
|
-
"hb",
|
|
1646
|
-
"hB"
|
|
1647
|
-
],
|
|
1648
|
-
FM: [
|
|
1649
|
-
"h",
|
|
1650
|
-
"hb",
|
|
1651
|
-
"H",
|
|
1652
|
-
"hB"
|
|
1653
|
-
],
|
|
1654
|
-
FO: ["H", "h"],
|
|
1655
|
-
FR: ["H", "hB"],
|
|
1656
|
-
GA: ["H", "hB"],
|
|
1657
|
-
GB: [
|
|
1658
|
-
"H",
|
|
1659
|
-
"h",
|
|
1660
|
-
"hb",
|
|
1661
|
-
"hB"
|
|
1662
|
-
],
|
|
1663
|
-
GD: [
|
|
1664
|
-
"h",
|
|
1665
|
-
"hb",
|
|
1666
|
-
"H",
|
|
1667
|
-
"hB"
|
|
1668
|
-
],
|
|
1669
|
-
GE: [
|
|
1670
|
-
"H",
|
|
1671
|
-
"hB",
|
|
1672
|
-
"h"
|
|
1673
|
-
],
|
|
1674
|
-
GF: ["H", "hB"],
|
|
1675
|
-
GG: [
|
|
1676
|
-
"H",
|
|
1677
|
-
"h",
|
|
1678
|
-
"hb",
|
|
1679
|
-
"hB"
|
|
1680
|
-
],
|
|
1681
|
-
GH: ["h", "H"],
|
|
1682
|
-
GI: [
|
|
1683
|
-
"H",
|
|
1684
|
-
"h",
|
|
1685
|
-
"hb",
|
|
1686
|
-
"hB"
|
|
1687
|
-
],
|
|
1688
|
-
GL: ["H", "h"],
|
|
1689
|
-
GM: [
|
|
1690
|
-
"h",
|
|
1691
|
-
"hb",
|
|
1692
|
-
"H",
|
|
1693
|
-
"hB"
|
|
1694
|
-
],
|
|
1695
|
-
GN: ["H", "hB"],
|
|
1696
|
-
GP: ["H", "hB"],
|
|
1697
|
-
GQ: [
|
|
1698
|
-
"H",
|
|
1699
|
-
"hB",
|
|
1700
|
-
"h",
|
|
1701
|
-
"hb"
|
|
1702
|
-
],
|
|
1703
|
-
GR: [
|
|
1704
|
-
"h",
|
|
1705
|
-
"H",
|
|
1706
|
-
"hb",
|
|
1707
|
-
"hB"
|
|
1708
|
-
],
|
|
1709
|
-
GS: [
|
|
1710
|
-
"H",
|
|
1711
|
-
"h",
|
|
1712
|
-
"hb",
|
|
1713
|
-
"hB"
|
|
1714
|
-
],
|
|
1715
|
-
GT: [
|
|
1716
|
-
"h",
|
|
1717
|
-
"H",
|
|
1718
|
-
"hB",
|
|
1719
|
-
"hb"
|
|
1720
|
-
],
|
|
1721
|
-
GU: [
|
|
1722
|
-
"h",
|
|
1723
|
-
"hb",
|
|
1724
|
-
"H",
|
|
1725
|
-
"hB"
|
|
1726
|
-
],
|
|
1727
|
-
GW: ["H", "hB"],
|
|
1728
|
-
GY: [
|
|
1729
|
-
"h",
|
|
1730
|
-
"hb",
|
|
1731
|
-
"H",
|
|
1732
|
-
"hB"
|
|
1733
|
-
],
|
|
1734
|
-
HK: [
|
|
1735
|
-
"h",
|
|
1736
|
-
"hB",
|
|
1737
|
-
"hb",
|
|
1738
|
-
"H"
|
|
1739
|
-
],
|
|
1740
|
-
HN: [
|
|
1741
|
-
"h",
|
|
1742
|
-
"H",
|
|
1743
|
-
"hB",
|
|
1744
|
-
"hb"
|
|
1745
|
-
],
|
|
1746
|
-
HR: ["H", "hB"],
|
|
1747
|
-
HU: ["H", "h"],
|
|
1748
|
-
IC: [
|
|
1749
|
-
"H",
|
|
1750
|
-
"h",
|
|
1751
|
-
"hB",
|
|
1752
|
-
"hb"
|
|
1753
|
-
],
|
|
1754
|
-
ID: ["H"],
|
|
1755
|
-
IE: [
|
|
1756
|
-
"H",
|
|
1757
|
-
"h",
|
|
1758
|
-
"hb",
|
|
1759
|
-
"hB"
|
|
1760
|
-
],
|
|
1761
|
-
IL: ["H", "hB"],
|
|
1762
|
-
IM: [
|
|
1763
|
-
"H",
|
|
1764
|
-
"h",
|
|
1765
|
-
"hb",
|
|
1766
|
-
"hB"
|
|
1767
|
-
],
|
|
1768
|
-
IN: ["h", "H"],
|
|
1769
|
-
IO: [
|
|
1770
|
-
"H",
|
|
1771
|
-
"h",
|
|
1772
|
-
"hb",
|
|
1773
|
-
"hB"
|
|
1774
|
-
],
|
|
1775
|
-
IQ: [
|
|
1776
|
-
"h",
|
|
1777
|
-
"hB",
|
|
1778
|
-
"hb",
|
|
1779
|
-
"H"
|
|
1780
|
-
],
|
|
1781
|
-
IR: ["hB", "H"],
|
|
1782
|
-
IS: ["H"],
|
|
1783
|
-
IT: ["H", "hB"],
|
|
1784
|
-
JE: [
|
|
1785
|
-
"H",
|
|
1786
|
-
"h",
|
|
1787
|
-
"hb",
|
|
1788
|
-
"hB"
|
|
1789
|
-
],
|
|
1790
|
-
JM: [
|
|
1791
|
-
"h",
|
|
1792
|
-
"hb",
|
|
1793
|
-
"H",
|
|
1794
|
-
"hB"
|
|
1795
|
-
],
|
|
1796
|
-
JO: [
|
|
1797
|
-
"h",
|
|
1798
|
-
"hB",
|
|
1799
|
-
"hb",
|
|
1800
|
-
"H"
|
|
1801
|
-
],
|
|
1802
|
-
JP: [
|
|
1803
|
-
"H",
|
|
1804
|
-
"K",
|
|
1805
|
-
"h"
|
|
1806
|
-
],
|
|
1807
|
-
KE: [
|
|
1808
|
-
"hB",
|
|
1809
|
-
"hb",
|
|
1810
|
-
"H",
|
|
1811
|
-
"h"
|
|
1812
|
-
],
|
|
1813
|
-
KG: [
|
|
1814
|
-
"H",
|
|
1815
|
-
"h",
|
|
1816
|
-
"hB",
|
|
1817
|
-
"hb"
|
|
1818
|
-
],
|
|
1819
|
-
KH: [
|
|
1820
|
-
"hB",
|
|
1821
|
-
"h",
|
|
1822
|
-
"H",
|
|
1823
|
-
"hb"
|
|
1824
|
-
],
|
|
1825
|
-
KI: [
|
|
1826
|
-
"h",
|
|
1827
|
-
"hb",
|
|
1828
|
-
"H",
|
|
1829
|
-
"hB"
|
|
1830
|
-
],
|
|
1831
|
-
KM: [
|
|
1832
|
-
"H",
|
|
1833
|
-
"h",
|
|
1834
|
-
"hB",
|
|
1835
|
-
"hb"
|
|
1836
|
-
],
|
|
1837
|
-
KN: [
|
|
1838
|
-
"h",
|
|
1839
|
-
"hb",
|
|
1840
|
-
"H",
|
|
1841
|
-
"hB"
|
|
1842
|
-
],
|
|
1843
|
-
KP: [
|
|
1844
|
-
"h",
|
|
1845
|
-
"H",
|
|
1846
|
-
"hB",
|
|
1847
|
-
"hb"
|
|
1848
|
-
],
|
|
1849
|
-
KR: [
|
|
1850
|
-
"h",
|
|
1851
|
-
"H",
|
|
1852
|
-
"hB",
|
|
1853
|
-
"hb"
|
|
1854
|
-
],
|
|
1855
|
-
KW: [
|
|
1856
|
-
"h",
|
|
1857
|
-
"hB",
|
|
1858
|
-
"hb",
|
|
1859
|
-
"H"
|
|
1860
|
-
],
|
|
1861
|
-
KY: [
|
|
1862
|
-
"h",
|
|
1863
|
-
"hb",
|
|
1864
|
-
"H",
|
|
1865
|
-
"hB"
|
|
1866
|
-
],
|
|
1867
|
-
KZ: ["H", "hB"],
|
|
1868
|
-
LA: [
|
|
1869
|
-
"H",
|
|
1870
|
-
"hb",
|
|
1871
|
-
"hB",
|
|
1872
|
-
"h"
|
|
1873
|
-
],
|
|
1874
|
-
LB: [
|
|
1875
|
-
"h",
|
|
1876
|
-
"hB",
|
|
1877
|
-
"hb",
|
|
1878
|
-
"H"
|
|
1879
|
-
],
|
|
1880
|
-
LC: [
|
|
1881
|
-
"h",
|
|
1882
|
-
"hb",
|
|
1883
|
-
"H",
|
|
1884
|
-
"hB"
|
|
1885
|
-
],
|
|
1886
|
-
LI: [
|
|
1887
|
-
"H",
|
|
1888
|
-
"hB",
|
|
1889
|
-
"h"
|
|
1890
|
-
],
|
|
1891
|
-
LK: [
|
|
1892
|
-
"H",
|
|
1893
|
-
"h",
|
|
1894
|
-
"hB",
|
|
1895
|
-
"hb"
|
|
1896
|
-
],
|
|
1897
|
-
LR: [
|
|
1898
|
-
"h",
|
|
1899
|
-
"hb",
|
|
1900
|
-
"H",
|
|
1901
|
-
"hB"
|
|
1902
|
-
],
|
|
1903
|
-
LS: ["h", "H"],
|
|
1904
|
-
LT: [
|
|
1905
|
-
"H",
|
|
1906
|
-
"h",
|
|
1907
|
-
"hb",
|
|
1908
|
-
"hB"
|
|
1909
|
-
],
|
|
1910
|
-
LU: [
|
|
1911
|
-
"H",
|
|
1912
|
-
"h",
|
|
1913
|
-
"hB"
|
|
1914
|
-
],
|
|
1915
|
-
LV: [
|
|
1916
|
-
"H",
|
|
1917
|
-
"hB",
|
|
1918
|
-
"hb",
|
|
1919
|
-
"h"
|
|
1920
|
-
],
|
|
1921
|
-
LY: [
|
|
1922
|
-
"h",
|
|
1923
|
-
"hB",
|
|
1924
|
-
"hb",
|
|
1925
|
-
"H"
|
|
1926
|
-
],
|
|
1927
|
-
MA: [
|
|
1928
|
-
"H",
|
|
1929
|
-
"h",
|
|
1930
|
-
"hB",
|
|
1931
|
-
"hb"
|
|
1932
|
-
],
|
|
1933
|
-
MC: ["H", "hB"],
|
|
1934
|
-
MD: ["H", "hB"],
|
|
1935
|
-
ME: [
|
|
1936
|
-
"H",
|
|
1937
|
-
"hB",
|
|
1938
|
-
"h"
|
|
1939
|
-
],
|
|
1940
|
-
MF: ["H", "hB"],
|
|
1941
|
-
MG: ["H", "h"],
|
|
1942
|
-
MH: [
|
|
1943
|
-
"h",
|
|
1944
|
-
"hb",
|
|
1945
|
-
"H",
|
|
1946
|
-
"hB"
|
|
1947
|
-
],
|
|
1948
|
-
MK: [
|
|
1949
|
-
"H",
|
|
1950
|
-
"h",
|
|
1951
|
-
"hb",
|
|
1952
|
-
"hB"
|
|
1953
|
-
],
|
|
1954
|
-
ML: ["H"],
|
|
1955
|
-
MM: [
|
|
1956
|
-
"hB",
|
|
1957
|
-
"hb",
|
|
1958
|
-
"H",
|
|
1959
|
-
"h"
|
|
1960
|
-
],
|
|
1961
|
-
MN: [
|
|
1962
|
-
"H",
|
|
1963
|
-
"h",
|
|
1964
|
-
"hb",
|
|
1965
|
-
"hB"
|
|
1966
|
-
],
|
|
1967
|
-
MO: [
|
|
1968
|
-
"h",
|
|
1969
|
-
"hB",
|
|
1970
|
-
"hb",
|
|
1971
|
-
"H"
|
|
1972
|
-
],
|
|
1973
|
-
MP: [
|
|
1974
|
-
"h",
|
|
1975
|
-
"hb",
|
|
1976
|
-
"H",
|
|
1977
|
-
"hB"
|
|
1978
|
-
],
|
|
1979
|
-
MQ: ["H", "hB"],
|
|
1980
|
-
MR: [
|
|
1981
|
-
"h",
|
|
1982
|
-
"hB",
|
|
1983
|
-
"hb",
|
|
1984
|
-
"H"
|
|
1985
|
-
],
|
|
1986
|
-
MS: [
|
|
1987
|
-
"H",
|
|
1988
|
-
"h",
|
|
1989
|
-
"hb",
|
|
1990
|
-
"hB"
|
|
1991
|
-
],
|
|
1992
|
-
MT: ["H", "h"],
|
|
1993
|
-
MU: ["H", "h"],
|
|
1994
|
-
MV: ["H", "h"],
|
|
1995
|
-
MW: [
|
|
1996
|
-
"h",
|
|
1997
|
-
"hb",
|
|
1998
|
-
"H",
|
|
1999
|
-
"hB"
|
|
2000
|
-
],
|
|
2001
|
-
MX: [
|
|
2002
|
-
"h",
|
|
2003
|
-
"H",
|
|
2004
|
-
"hB",
|
|
2005
|
-
"hb"
|
|
2006
|
-
],
|
|
2007
|
-
MY: [
|
|
2008
|
-
"hb",
|
|
2009
|
-
"hB",
|
|
2010
|
-
"h",
|
|
2011
|
-
"H"
|
|
2012
|
-
],
|
|
2013
|
-
MZ: ["H", "hB"],
|
|
2014
|
-
NA: [
|
|
2015
|
-
"h",
|
|
2016
|
-
"H",
|
|
2017
|
-
"hB",
|
|
2018
|
-
"hb"
|
|
2019
|
-
],
|
|
2020
|
-
NC: ["H", "hB"],
|
|
2021
|
-
NE: ["H"],
|
|
2022
|
-
NF: [
|
|
2023
|
-
"H",
|
|
2024
|
-
"h",
|
|
2025
|
-
"hb",
|
|
2026
|
-
"hB"
|
|
2027
|
-
],
|
|
2028
|
-
NG: [
|
|
2029
|
-
"H",
|
|
2030
|
-
"h",
|
|
2031
|
-
"hb",
|
|
2032
|
-
"hB"
|
|
2033
|
-
],
|
|
2034
|
-
NI: [
|
|
2035
|
-
"h",
|
|
2036
|
-
"H",
|
|
2037
|
-
"hB",
|
|
2038
|
-
"hb"
|
|
2039
|
-
],
|
|
2040
|
-
NL: ["H", "hB"],
|
|
2041
|
-
NO: ["H", "h"],
|
|
2042
|
-
NP: [
|
|
2043
|
-
"H",
|
|
2044
|
-
"h",
|
|
2045
|
-
"hB"
|
|
2046
|
-
],
|
|
2047
|
-
NR: [
|
|
2048
|
-
"H",
|
|
2049
|
-
"h",
|
|
2050
|
-
"hb",
|
|
2051
|
-
"hB"
|
|
2052
|
-
],
|
|
2053
|
-
NU: [
|
|
2054
|
-
"H",
|
|
2055
|
-
"h",
|
|
2056
|
-
"hb",
|
|
2057
|
-
"hB"
|
|
2058
|
-
],
|
|
2059
|
-
NZ: [
|
|
2060
|
-
"h",
|
|
2061
|
-
"hb",
|
|
2062
|
-
"H",
|
|
2063
|
-
"hB"
|
|
2064
|
-
],
|
|
2065
|
-
OM: [
|
|
2066
|
-
"h",
|
|
2067
|
-
"hB",
|
|
2068
|
-
"hb",
|
|
2069
|
-
"H"
|
|
2070
|
-
],
|
|
2071
|
-
PA: [
|
|
2072
|
-
"h",
|
|
2073
|
-
"H",
|
|
2074
|
-
"hB",
|
|
2075
|
-
"hb"
|
|
2076
|
-
],
|
|
2077
|
-
PE: [
|
|
2078
|
-
"h",
|
|
2079
|
-
"H",
|
|
2080
|
-
"hB",
|
|
2081
|
-
"hb"
|
|
2082
|
-
],
|
|
2083
|
-
PF: [
|
|
2084
|
-
"H",
|
|
2085
|
-
"h",
|
|
2086
|
-
"hB"
|
|
2087
|
-
],
|
|
2088
|
-
PG: ["h", "H"],
|
|
2089
|
-
PH: [
|
|
2090
|
-
"h",
|
|
2091
|
-
"hB",
|
|
2092
|
-
"hb",
|
|
2093
|
-
"H"
|
|
2094
|
-
],
|
|
2095
|
-
PK: [
|
|
2096
|
-
"h",
|
|
2097
|
-
"hB",
|
|
2098
|
-
"H"
|
|
2099
|
-
],
|
|
2100
|
-
PL: ["H", "h"],
|
|
2101
|
-
PM: ["H", "hB"],
|
|
2102
|
-
PN: [
|
|
2103
|
-
"H",
|
|
2104
|
-
"h",
|
|
2105
|
-
"hb",
|
|
2106
|
-
"hB"
|
|
2107
|
-
],
|
|
2108
|
-
PR: [
|
|
2109
|
-
"h",
|
|
2110
|
-
"H",
|
|
2111
|
-
"hB",
|
|
2112
|
-
"hb"
|
|
2113
|
-
],
|
|
2114
|
-
PS: [
|
|
2115
|
-
"h",
|
|
2116
|
-
"hB",
|
|
2117
|
-
"hb",
|
|
2118
|
-
"H"
|
|
2119
|
-
],
|
|
2120
|
-
PT: ["H", "hB"],
|
|
2121
|
-
PW: ["h", "H"],
|
|
2122
|
-
PY: [
|
|
2123
|
-
"h",
|
|
2124
|
-
"H",
|
|
2125
|
-
"hB",
|
|
2126
|
-
"hb"
|
|
2127
|
-
],
|
|
2128
|
-
QA: [
|
|
2129
|
-
"h",
|
|
2130
|
-
"hB",
|
|
2131
|
-
"hb",
|
|
2132
|
-
"H"
|
|
2133
|
-
],
|
|
2134
|
-
RE: ["H", "hB"],
|
|
2135
|
-
RO: ["H", "hB"],
|
|
2136
|
-
RS: [
|
|
2137
|
-
"H",
|
|
2138
|
-
"hB",
|
|
2139
|
-
"h"
|
|
2140
|
-
],
|
|
2141
|
-
RU: ["H"],
|
|
2142
|
-
RW: ["H", "h"],
|
|
2143
|
-
SA: [
|
|
2144
|
-
"h",
|
|
2145
|
-
"hB",
|
|
2146
|
-
"hb",
|
|
2147
|
-
"H"
|
|
2148
|
-
],
|
|
2149
|
-
SB: [
|
|
2150
|
-
"h",
|
|
2151
|
-
"hb",
|
|
2152
|
-
"H",
|
|
2153
|
-
"hB"
|
|
2154
|
-
],
|
|
2155
|
-
SC: [
|
|
2156
|
-
"H",
|
|
2157
|
-
"h",
|
|
2158
|
-
"hB"
|
|
2159
|
-
],
|
|
2160
|
-
SD: [
|
|
2161
|
-
"h",
|
|
2162
|
-
"hB",
|
|
2163
|
-
"hb",
|
|
2164
|
-
"H"
|
|
2165
|
-
],
|
|
2166
|
-
SE: ["H"],
|
|
2167
|
-
SG: [
|
|
2168
|
-
"h",
|
|
2169
|
-
"hb",
|
|
2170
|
-
"H",
|
|
2171
|
-
"hB"
|
|
2172
|
-
],
|
|
2173
|
-
SH: [
|
|
2174
|
-
"H",
|
|
2175
|
-
"h",
|
|
2176
|
-
"hb",
|
|
2177
|
-
"hB"
|
|
2178
|
-
],
|
|
2179
|
-
SI: ["H", "hB"],
|
|
2180
|
-
SJ: ["H"],
|
|
2181
|
-
SK: ["H"],
|
|
2182
|
-
SL: [
|
|
2183
|
-
"h",
|
|
2184
|
-
"hb",
|
|
2185
|
-
"H",
|
|
2186
|
-
"hB"
|
|
2187
|
-
],
|
|
2188
|
-
SM: [
|
|
2189
|
-
"H",
|
|
2190
|
-
"h",
|
|
2191
|
-
"hB"
|
|
2192
|
-
],
|
|
2193
|
-
SN: [
|
|
2194
|
-
"H",
|
|
2195
|
-
"h",
|
|
2196
|
-
"hB"
|
|
2197
|
-
],
|
|
2198
|
-
SO: ["h", "H"],
|
|
2199
|
-
SR: ["H", "hB"],
|
|
2200
|
-
SS: [
|
|
2201
|
-
"h",
|
|
2202
|
-
"hb",
|
|
2203
|
-
"H",
|
|
2204
|
-
"hB"
|
|
2205
|
-
],
|
|
2206
|
-
ST: ["H", "hB"],
|
|
2207
|
-
SV: [
|
|
2208
|
-
"h",
|
|
2209
|
-
"H",
|
|
2210
|
-
"hB",
|
|
2211
|
-
"hb"
|
|
2212
|
-
],
|
|
2213
|
-
SX: [
|
|
2214
|
-
"H",
|
|
2215
|
-
"h",
|
|
2216
|
-
"hb",
|
|
2217
|
-
"hB"
|
|
2218
|
-
],
|
|
2219
|
-
SY: [
|
|
2220
|
-
"h",
|
|
2221
|
-
"hB",
|
|
2222
|
-
"hb",
|
|
2223
|
-
"H"
|
|
2224
|
-
],
|
|
2225
|
-
SZ: [
|
|
2226
|
-
"h",
|
|
2227
|
-
"hb",
|
|
2228
|
-
"H",
|
|
2229
|
-
"hB"
|
|
2230
|
-
],
|
|
2231
|
-
TA: [
|
|
2232
|
-
"H",
|
|
2233
|
-
"h",
|
|
2234
|
-
"hb",
|
|
2235
|
-
"hB"
|
|
2236
|
-
],
|
|
2237
|
-
TC: [
|
|
2238
|
-
"h",
|
|
2239
|
-
"hb",
|
|
2240
|
-
"H",
|
|
2241
|
-
"hB"
|
|
2242
|
-
],
|
|
2243
|
-
TD: [
|
|
2244
|
-
"h",
|
|
2245
|
-
"H",
|
|
2246
|
-
"hB"
|
|
2247
|
-
],
|
|
2248
|
-
TF: [
|
|
2249
|
-
"H",
|
|
2250
|
-
"h",
|
|
2251
|
-
"hB"
|
|
2252
|
-
],
|
|
2253
|
-
TG: ["H", "hB"],
|
|
2254
|
-
TH: ["H", "h"],
|
|
2255
|
-
TJ: ["H", "h"],
|
|
2256
|
-
TL: [
|
|
2257
|
-
"H",
|
|
2258
|
-
"hB",
|
|
2259
|
-
"hb",
|
|
2260
|
-
"h"
|
|
2261
|
-
],
|
|
2262
|
-
TM: ["H", "h"],
|
|
2263
|
-
TN: [
|
|
2264
|
-
"h",
|
|
2265
|
-
"hB",
|
|
2266
|
-
"hb",
|
|
2267
|
-
"H"
|
|
2268
|
-
],
|
|
2269
|
-
TO: ["h", "H"],
|
|
2270
|
-
TR: ["H", "hB"],
|
|
2271
|
-
TT: [
|
|
2272
|
-
"h",
|
|
2273
|
-
"hb",
|
|
2274
|
-
"H",
|
|
2275
|
-
"hB"
|
|
2276
|
-
],
|
|
2277
|
-
TW: [
|
|
2278
|
-
"hB",
|
|
2279
|
-
"hb",
|
|
2280
|
-
"h",
|
|
2281
|
-
"H"
|
|
2282
|
-
],
|
|
2283
|
-
TZ: [
|
|
2284
|
-
"hB",
|
|
2285
|
-
"hb",
|
|
2286
|
-
"H",
|
|
2287
|
-
"h"
|
|
2288
|
-
],
|
|
2289
|
-
UA: [
|
|
2290
|
-
"H",
|
|
2291
|
-
"hB",
|
|
2292
|
-
"h"
|
|
2293
|
-
],
|
|
2294
|
-
UG: [
|
|
2295
|
-
"hB",
|
|
2296
|
-
"hb",
|
|
2297
|
-
"H",
|
|
2298
|
-
"h"
|
|
2299
|
-
],
|
|
2300
|
-
UM: [
|
|
2301
|
-
"h",
|
|
2302
|
-
"hb",
|
|
2303
|
-
"H",
|
|
2304
|
-
"hB"
|
|
2305
|
-
],
|
|
2306
|
-
US: [
|
|
2307
|
-
"h",
|
|
2308
|
-
"hb",
|
|
2309
|
-
"H",
|
|
2310
|
-
"hB"
|
|
2311
|
-
],
|
|
2312
|
-
UY: [
|
|
2313
|
-
"h",
|
|
2314
|
-
"H",
|
|
2315
|
-
"hB",
|
|
2316
|
-
"hb"
|
|
2317
|
-
],
|
|
2318
|
-
UZ: [
|
|
2319
|
-
"H",
|
|
2320
|
-
"hB",
|
|
2321
|
-
"h"
|
|
2322
|
-
],
|
|
2323
|
-
VA: [
|
|
2324
|
-
"H",
|
|
2325
|
-
"h",
|
|
2326
|
-
"hB"
|
|
2327
|
-
],
|
|
2328
|
-
VC: [
|
|
2329
|
-
"h",
|
|
2330
|
-
"hb",
|
|
2331
|
-
"H",
|
|
2332
|
-
"hB"
|
|
2333
|
-
],
|
|
2334
|
-
VE: [
|
|
2335
|
-
"h",
|
|
2336
|
-
"H",
|
|
2337
|
-
"hB",
|
|
2338
|
-
"hb"
|
|
2339
|
-
],
|
|
2340
|
-
VG: [
|
|
2341
|
-
"h",
|
|
2342
|
-
"hb",
|
|
2343
|
-
"H",
|
|
2344
|
-
"hB"
|
|
2345
|
-
],
|
|
2346
|
-
VI: [
|
|
2347
|
-
"h",
|
|
2348
|
-
"hb",
|
|
2349
|
-
"H",
|
|
2350
|
-
"hB"
|
|
2351
|
-
],
|
|
2352
|
-
VN: ["H", "h"],
|
|
2353
|
-
VU: ["h", "H"],
|
|
2354
|
-
WF: ["H", "hB"],
|
|
2355
|
-
WS: ["h", "H"],
|
|
2356
|
-
XK: [
|
|
2357
|
-
"H",
|
|
2358
|
-
"hB",
|
|
2359
|
-
"h"
|
|
2360
|
-
],
|
|
2361
|
-
YE: [
|
|
2362
|
-
"h",
|
|
2363
|
-
"hB",
|
|
2364
|
-
"hb",
|
|
2365
|
-
"H"
|
|
2366
|
-
],
|
|
2367
|
-
YT: ["H", "hB"],
|
|
2368
|
-
ZA: [
|
|
2369
|
-
"H",
|
|
2370
|
-
"h",
|
|
2371
|
-
"hb",
|
|
2372
|
-
"hB"
|
|
2373
|
-
],
|
|
2374
|
-
ZM: [
|
|
2375
|
-
"h",
|
|
2376
|
-
"hb",
|
|
2377
|
-
"H",
|
|
2378
|
-
"hB"
|
|
2379
|
-
],
|
|
2380
|
-
ZW: ["H", "h"],
|
|
2381
|
-
"af-ZA": [
|
|
2382
|
-
"H",
|
|
2383
|
-
"h",
|
|
2384
|
-
"hB",
|
|
2385
|
-
"hb"
|
|
2386
|
-
],
|
|
2387
|
-
"ar-001": [
|
|
2388
|
-
"h",
|
|
2389
|
-
"hB",
|
|
2390
|
-
"hb",
|
|
2391
|
-
"H"
|
|
2392
|
-
],
|
|
2393
|
-
"ca-ES": [
|
|
2394
|
-
"H",
|
|
2395
|
-
"h",
|
|
2396
|
-
"hB"
|
|
2397
|
-
],
|
|
2398
|
-
"en-001": [
|
|
2399
|
-
"h",
|
|
2400
|
-
"hb",
|
|
2401
|
-
"H",
|
|
2402
|
-
"hB"
|
|
2403
|
-
],
|
|
2404
|
-
"en-HK": [
|
|
2405
|
-
"h",
|
|
2406
|
-
"hb",
|
|
2407
|
-
"H",
|
|
2408
|
-
"hB"
|
|
2409
|
-
],
|
|
2410
|
-
"en-IL": [
|
|
2411
|
-
"H",
|
|
2412
|
-
"h",
|
|
2413
|
-
"hb",
|
|
2414
|
-
"hB"
|
|
2415
|
-
],
|
|
2416
|
-
"en-MY": [
|
|
2417
|
-
"h",
|
|
2418
|
-
"hb",
|
|
2419
|
-
"H",
|
|
2420
|
-
"hB"
|
|
2421
|
-
],
|
|
2422
|
-
"es-BR": [
|
|
2423
|
-
"H",
|
|
2424
|
-
"h",
|
|
2425
|
-
"hB",
|
|
2426
|
-
"hb"
|
|
2427
|
-
],
|
|
2428
|
-
"es-ES": [
|
|
2429
|
-
"H",
|
|
2430
|
-
"h",
|
|
2431
|
-
"hB",
|
|
2432
|
-
"hb"
|
|
2433
|
-
],
|
|
2434
|
-
"es-GQ": [
|
|
2435
|
-
"H",
|
|
2436
|
-
"h",
|
|
2437
|
-
"hB",
|
|
2438
|
-
"hb"
|
|
2439
|
-
],
|
|
2440
|
-
"fr-CA": [
|
|
2441
|
-
"H",
|
|
2442
|
-
"h",
|
|
2443
|
-
"hB"
|
|
2444
|
-
],
|
|
2445
|
-
"gl-ES": [
|
|
2446
|
-
"H",
|
|
2447
|
-
"h",
|
|
2448
|
-
"hB"
|
|
2449
|
-
],
|
|
2450
|
-
"gu-IN": [
|
|
2451
|
-
"hB",
|
|
2452
|
-
"hb",
|
|
2453
|
-
"h",
|
|
2454
|
-
"H"
|
|
2455
|
-
],
|
|
2456
|
-
"hi-IN": [
|
|
2457
|
-
"hB",
|
|
2458
|
-
"h",
|
|
2459
|
-
"H"
|
|
2460
|
-
],
|
|
2461
|
-
"it-CH": [
|
|
2462
|
-
"H",
|
|
2463
|
-
"h",
|
|
2464
|
-
"hB"
|
|
2465
|
-
],
|
|
2466
|
-
"it-IT": [
|
|
2467
|
-
"H",
|
|
2468
|
-
"h",
|
|
2469
|
-
"hB"
|
|
2470
|
-
],
|
|
2471
|
-
"kn-IN": [
|
|
2472
|
-
"hB",
|
|
2473
|
-
"h",
|
|
2474
|
-
"H"
|
|
2475
|
-
],
|
|
2476
|
-
"ku-SY": ["H", "hB"],
|
|
2477
|
-
"ml-IN": [
|
|
2478
|
-
"hB",
|
|
2479
|
-
"h",
|
|
2480
|
-
"H"
|
|
2481
|
-
],
|
|
2482
|
-
"mr-IN": [
|
|
2483
|
-
"hB",
|
|
2484
|
-
"hb",
|
|
2485
|
-
"h",
|
|
2486
|
-
"H"
|
|
2487
|
-
],
|
|
2488
|
-
"pa-IN": [
|
|
2489
|
-
"hB",
|
|
2490
|
-
"hb",
|
|
2491
|
-
"h",
|
|
2492
|
-
"H"
|
|
2493
|
-
],
|
|
2494
|
-
"ta-IN": [
|
|
2495
|
-
"hB",
|
|
2496
|
-
"h",
|
|
2497
|
-
"hb",
|
|
2498
|
-
"H"
|
|
2499
|
-
],
|
|
2500
|
-
"te-IN": [
|
|
2501
|
-
"hB",
|
|
2502
|
-
"h",
|
|
2503
|
-
"H"
|
|
2504
|
-
],
|
|
2505
|
-
"zu-ZA": [
|
|
2506
|
-
"H",
|
|
2507
|
-
"hB",
|
|
2508
|
-
"hb",
|
|
2509
|
-
"h"
|
|
2510
|
-
]
|
|
2511
|
-
};
|
|
2512
|
-
function Ee(e, t) {
|
|
2513
|
-
let n = "";
|
|
2514
|
-
for (let r = 0; r < e.length; r++) {
|
|
2515
|
-
let i = e.charAt(r);
|
|
2516
|
-
if (i === "j") {
|
|
2517
|
-
let a = 0;
|
|
2518
|
-
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 = De(t);
|
|
2520
|
-
for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
|
|
2521
|
-
for (; o-- > 0;) n = c + n;
|
|
2522
|
-
} else i === "J" ? n += "H" : n += i;
|
|
2523
|
-
}
|
|
2524
|
-
return n;
|
|
2525
|
-
}
|
|
2526
|
-
function De(e) {
|
|
2527
|
-
let t = e.hourCycle;
|
|
2528
|
-
if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
|
|
2529
|
-
case "h24": return "k";
|
|
2530
|
-
case "h23": return "H";
|
|
2531
|
-
case "h12": return "h";
|
|
2532
|
-
case "h11": return "K";
|
|
2533
|
-
default: throw Error("Invalid hourCycle");
|
|
2534
|
-
}
|
|
2535
|
-
let n = e.language, r;
|
|
2536
|
-
return n !== "root" && (r = e.maximize().region), (Te[r || ""] || Te[n || ""] || Te[`${n}-001`] || Te["001"])[0];
|
|
2537
|
-
}
|
|
2538
|
-
var Oe = RegExp(`^${we.source}*`), ke = RegExp(`${we.source}*$`);
|
|
2539
|
-
function Q(e, t) {
|
|
2540
|
-
return {
|
|
2541
|
-
start: e,
|
|
2542
|
-
end: t
|
|
2543
|
-
};
|
|
2544
|
-
}
|
|
2545
|
-
var Ae = !!Object.fromEntries, je = !!String.prototype.trimStart, Me = !!String.prototype.trimEnd, Ne = Ae ? Object.fromEntries : function(e) {
|
|
2546
|
-
let t = {};
|
|
2547
|
-
for (let [n, r] of e) t[n] = r;
|
|
2548
|
-
return t;
|
|
2549
|
-
}, Pe = je ? function(e) {
|
|
2550
|
-
return e.trimStart();
|
|
2551
|
-
} : function(e) {
|
|
2552
|
-
return e.replace(Oe, "");
|
|
2553
|
-
}, Fe = Me ? function(e) {
|
|
2554
|
-
return e.trimEnd();
|
|
2555
|
-
} : function(e) {
|
|
2556
|
-
return e.replace(ke, "");
|
|
2557
|
-
}, Ie = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2558
|
-
function Le(e, t) {
|
|
2559
|
-
return Ie.lastIndex = t, Ie.exec(e)[1] ?? "";
|
|
2560
|
-
}
|
|
2561
|
-
function Re(e) {
|
|
2562
|
-
if (e.length === 0) return null;
|
|
2563
|
-
let t = 1, n = 1;
|
|
2564
|
-
for (let r = 0; r < e.length;) {
|
|
2565
|
-
let i = e.charCodeAt(r);
|
|
2566
|
-
switch (i) {
|
|
2567
|
-
case 35:
|
|
2568
|
-
case 39:
|
|
2569
|
-
case 60:
|
|
2570
|
-
case 123:
|
|
2571
|
-
case 125: return null;
|
|
2572
|
-
}
|
|
2573
|
-
if (i === 10) t++, n = 1, r++;
|
|
2574
|
-
else if (n++, i >= 55296 && i <= 56319 && r + 1 < e.length) {
|
|
2575
|
-
let t = e.charCodeAt(r + 1);
|
|
2576
|
-
r += t >= 56320 && t <= 57343 ? 2 : 1;
|
|
2577
|
-
} else r++;
|
|
2578
|
-
}
|
|
2579
|
-
return {
|
|
2580
|
-
offset: e.length,
|
|
2581
|
-
line: t,
|
|
2582
|
-
column: n
|
|
2583
|
-
};
|
|
2584
|
-
}
|
|
2585
|
-
var ze = class {
|
|
2586
|
-
constructor(e, t = {}) {
|
|
2587
|
-
this.message = e, this.position = {
|
|
2588
|
-
offset: 0,
|
|
2589
|
-
line: 1,
|
|
2590
|
-
column: 1
|
|
2591
|
-
}, this.ignoreTag = !!t.ignoreTag, this.locale = t.locale, this.requiresOtherClause = !!t.requiresOtherClause, this.shouldParseSkeletons = !!t.shouldParseSkeletons;
|
|
2592
|
-
}
|
|
2593
|
-
parse() {
|
|
2594
|
-
if (this.offset() !== 0) throw Error("parser can only be used once");
|
|
2595
|
-
if (this.message.length > 0) {
|
|
2596
|
-
let e = this.message.charCodeAt(0);
|
|
2597
|
-
if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
|
|
2598
|
-
let e = Re(this.message);
|
|
2599
|
-
if (e) {
|
|
2600
|
-
let t = this.clonePosition();
|
|
2601
|
-
return this.position = e, {
|
|
2602
|
-
val: [{
|
|
2603
|
-
type: 0,
|
|
2604
|
-
value: this.message,
|
|
2605
|
-
location: Q(t, this.clonePosition())
|
|
2606
|
-
}],
|
|
2607
|
-
err: null
|
|
2608
|
-
};
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
}
|
|
2612
|
-
return this.parseMessage(0, "", !1);
|
|
2613
|
-
}
|
|
2614
|
-
parseMessage(e, t, n) {
|
|
2615
|
-
let r = [];
|
|
2616
|
-
for (; !this.isEOF();) {
|
|
2617
|
-
let i = this.char();
|
|
2618
|
-
if (i === 123) {
|
|
2619
|
-
let t = this.parseArgument(e, n);
|
|
2620
|
-
if (t.err) return t;
|
|
2621
|
-
r.push(t.val);
|
|
2622
|
-
} else if (i === 125 && e > 0) break;
|
|
2623
|
-
else if (i === 35 && (t === "plural" || t === "selectordinal")) {
|
|
2624
|
-
let e = this.clonePosition();
|
|
2625
|
-
this.bump(), r.push({
|
|
2626
|
-
type: 7,
|
|
2627
|
-
location: Q(e, this.clonePosition())
|
|
2628
|
-
});
|
|
2629
|
-
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2630
|
-
if (n) break;
|
|
2631
|
-
return this.error(26, Q(this.clonePosition(), this.clonePosition()));
|
|
2632
|
-
} else if (i === 60 && !this.ignoreTag && Be(this.peek() || 0)) {
|
|
2633
|
-
let n = this.parseTag(e, t);
|
|
2634
|
-
if (n.err) return n;
|
|
2635
|
-
r.push(n.val);
|
|
2636
|
-
} else {
|
|
2637
|
-
let n = this.parseLiteral(e, t);
|
|
2638
|
-
if (n.err) return n;
|
|
2639
|
-
r.push(n.val);
|
|
2640
|
-
}
|
|
2641
|
-
}
|
|
2642
|
-
return {
|
|
2643
|
-
val: r,
|
|
2644
|
-
err: null
|
|
2645
|
-
};
|
|
2646
|
-
}
|
|
2647
|
-
parseTag(e, t) {
|
|
2648
|
-
let n = this.clonePosition();
|
|
2649
|
-
this.bump();
|
|
2650
|
-
let r = this.parseTagName();
|
|
2651
|
-
if (this.bumpSpace(), this.bumpIf("/>")) return {
|
|
2652
|
-
val: {
|
|
2653
|
-
type: 0,
|
|
2654
|
-
value: `<${r}/>`,
|
|
2655
|
-
location: Q(n, this.clonePosition())
|
|
2656
|
-
},
|
|
2657
|
-
err: null
|
|
2658
|
-
};
|
|
2659
|
-
if (this.bumpIf(">")) {
|
|
2660
|
-
let i = this.parseMessage(e + 1, t, !0);
|
|
2661
|
-
if (i.err) return i;
|
|
2662
|
-
let a = i.val, o = this.clonePosition();
|
|
2663
|
-
if (this.bumpIf("</")) {
|
|
2664
|
-
if (this.isEOF() || !Be(this.char())) return this.error(23, Q(o, this.clonePosition()));
|
|
2665
|
-
let e = this.clonePosition();
|
|
2666
|
-
return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2667
|
-
val: {
|
|
2668
|
-
type: 8,
|
|
2669
|
-
value: r,
|
|
2670
|
-
children: a,
|
|
2671
|
-
location: Q(n, this.clonePosition())
|
|
2672
|
-
},
|
|
2673
|
-
err: null
|
|
2674
|
-
} : this.error(23, Q(o, this.clonePosition()))) : this.error(26, Q(e, this.clonePosition()));
|
|
2675
|
-
} else return this.error(27, Q(n, this.clonePosition()));
|
|
2676
|
-
} else return this.error(23, Q(n, this.clonePosition()));
|
|
2677
|
-
}
|
|
2678
|
-
parseTagName() {
|
|
2679
|
-
let e = this.offset();
|
|
2680
|
-
for (this.bump(); !this.isEOF() && He(this.char());) this.bump();
|
|
2681
|
-
return this.message.slice(e, this.offset());
|
|
2682
|
-
}
|
|
2683
|
-
parseLiteral(e, t) {
|
|
2684
|
-
let n = this.clonePosition(), r = "";
|
|
2685
|
-
for (;;) {
|
|
2686
|
-
let n = this.tryParseQuote(t);
|
|
2687
|
-
if (n) {
|
|
2688
|
-
r += n;
|
|
2689
|
-
continue;
|
|
2690
|
-
}
|
|
2691
|
-
let i = this.tryParseUnquoted(e, t);
|
|
2692
|
-
if (i) {
|
|
2693
|
-
r += i;
|
|
2694
|
-
continue;
|
|
2695
|
-
}
|
|
2696
|
-
let a = this.tryParseLeftAngleBracket();
|
|
2697
|
-
if (a) {
|
|
2698
|
-
r += a;
|
|
2699
|
-
continue;
|
|
2700
|
-
}
|
|
2701
|
-
break;
|
|
2702
|
-
}
|
|
2703
|
-
let i = Q(n, this.clonePosition());
|
|
2704
|
-
return {
|
|
2705
|
-
val: {
|
|
2706
|
-
type: 0,
|
|
2707
|
-
value: r,
|
|
2708
|
-
location: i
|
|
2709
|
-
},
|
|
2710
|
-
err: null
|
|
2711
|
-
};
|
|
2712
|
-
}
|
|
2713
|
-
tryParseLeftAngleBracket() {
|
|
2714
|
-
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Ve(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2715
|
-
}
|
|
2716
|
-
tryParseQuote(e) {
|
|
2717
|
-
if (this.isEOF() || this.char() !== 39) return null;
|
|
2718
|
-
switch (this.peek()) {
|
|
2719
|
-
case 39: return this.bump(), this.bump(), "'";
|
|
2720
|
-
case 123:
|
|
2721
|
-
case 60:
|
|
2722
|
-
case 62:
|
|
2723
|
-
case 125: break;
|
|
2724
|
-
case 35:
|
|
2725
|
-
if (e === "plural" || e === "selectordinal") break;
|
|
2726
|
-
return null;
|
|
2727
|
-
default: return null;
|
|
2728
|
-
}
|
|
2729
|
-
this.bump();
|
|
2730
|
-
let t = [this.char()];
|
|
2731
|
-
for (this.bump(); !this.isEOF();) {
|
|
2732
|
-
let e = this.char();
|
|
2733
|
-
if (e === 39) if (this.peek() === 39) t.push(39), this.bump();
|
|
2734
|
-
else {
|
|
2735
|
-
this.bump();
|
|
2736
|
-
break;
|
|
2737
|
-
}
|
|
2738
|
-
else t.push(e);
|
|
2739
|
-
this.bump();
|
|
2740
|
-
}
|
|
2741
|
-
return String.fromCodePoint(...t);
|
|
2742
|
-
}
|
|
2743
|
-
tryParseUnquoted(e, t) {
|
|
2744
|
-
if (this.isEOF()) return null;
|
|
2745
|
-
let n = this.char();
|
|
2746
|
-
return n === 60 || n === 123 || n === 35 && (t === "plural" || t === "selectordinal") || n === 125 && e > 0 ? null : (this.bump(), String.fromCodePoint(n));
|
|
2747
|
-
}
|
|
2748
|
-
parseArgument(e, t) {
|
|
2749
|
-
let n = this.clonePosition();
|
|
2750
|
-
if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, Q(n, this.clonePosition()));
|
|
2751
|
-
if (this.char() === 125) return this.bump(), this.error(2, Q(n, this.clonePosition()));
|
|
2752
|
-
let r = this.parseIdentifierIfPossible().value;
|
|
2753
|
-
if (!r) return this.error(3, Q(n, this.clonePosition()));
|
|
2754
|
-
if (this.bumpSpace(), this.isEOF()) return this.error(1, Q(n, this.clonePosition()));
|
|
2755
|
-
switch (this.char()) {
|
|
2756
|
-
case 125: return this.bump(), {
|
|
2757
|
-
val: {
|
|
2758
|
-
type: 1,
|
|
2759
|
-
value: r,
|
|
2760
|
-
location: Q(n, this.clonePosition())
|
|
2761
|
-
},
|
|
2762
|
-
err: null
|
|
2763
|
-
};
|
|
2764
|
-
case 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, Q(n, this.clonePosition())) : this.parseArgumentOptions(e, t, r, n);
|
|
2765
|
-
default: return this.error(3, Q(n, this.clonePosition()));
|
|
2766
|
-
}
|
|
2767
|
-
}
|
|
2768
|
-
parseIdentifierIfPossible() {
|
|
2769
|
-
let e = this.clonePosition(), t = this.offset(), n = Le(this.message, t), r = t + n.length;
|
|
2770
|
-
return this.bumpTo(r), {
|
|
2771
|
-
value: n,
|
|
2772
|
-
location: Q(e, this.clonePosition())
|
|
2773
|
-
};
|
|
2774
|
-
}
|
|
2775
|
-
parseArgumentOptions(e, t, n, r) {
|
|
2776
|
-
let i = this.clonePosition(), a = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2777
|
-
switch (a) {
|
|
2778
|
-
case "": return this.error(4, Q(i, o));
|
|
2779
|
-
case "number":
|
|
2780
|
-
case "date":
|
|
2781
|
-
case "time": {
|
|
2782
|
-
this.bumpSpace();
|
|
2783
|
-
let e = null;
|
|
2784
|
-
if (this.bumpIf(",")) {
|
|
2785
|
-
this.bumpSpace();
|
|
2786
|
-
let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
|
|
2787
|
-
if (n.err) return n;
|
|
2788
|
-
let r = Fe(n.val);
|
|
2789
|
-
if (r.length === 0) return this.error(6, Q(this.clonePosition(), this.clonePosition()));
|
|
2790
|
-
e = {
|
|
2791
|
-
style: r,
|
|
2792
|
-
styleLocation: Q(t, this.clonePosition())
|
|
2793
|
-
};
|
|
2794
|
-
}
|
|
2795
|
-
let t = this.tryParseArgumentClose(r);
|
|
2796
|
-
if (t.err) return t;
|
|
2797
|
-
let i = Q(r, this.clonePosition());
|
|
2798
|
-
if (e && e.style.startsWith("::")) {
|
|
2799
|
-
let t = Pe(e.style.slice(2));
|
|
2800
|
-
if (a === "number") {
|
|
2801
|
-
let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
|
|
2802
|
-
return r.err ? r : {
|
|
2803
|
-
val: {
|
|
2804
|
-
type: 2,
|
|
2805
|
-
value: n,
|
|
2806
|
-
location: i,
|
|
2807
|
-
style: r.val
|
|
2808
|
-
},
|
|
2809
|
-
err: null
|
|
2810
|
-
};
|
|
2811
|
-
} else {
|
|
2812
|
-
if (t.length === 0) return this.error(10, i);
|
|
2813
|
-
let r = t;
|
|
2814
|
-
this.locale && (r = Ee(t, this.locale));
|
|
2815
|
-
let o = {
|
|
2816
|
-
type: 1,
|
|
2817
|
-
pattern: r,
|
|
2818
|
-
location: e.styleLocation,
|
|
2819
|
-
parsedOptions: this.shouldParseSkeletons ? ae(r) : {}
|
|
2820
|
-
};
|
|
2821
|
-
return {
|
|
2822
|
-
val: {
|
|
2823
|
-
type: a === "date" ? 3 : 4,
|
|
2824
|
-
value: n,
|
|
2825
|
-
location: i,
|
|
2826
|
-
style: o
|
|
2827
|
-
},
|
|
2828
|
-
err: null
|
|
2829
|
-
};
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
return {
|
|
2833
|
-
val: {
|
|
2834
|
-
type: a === "number" ? 2 : a === "date" ? 3 : 4,
|
|
2835
|
-
value: n,
|
|
2836
|
-
location: i,
|
|
2837
|
-
style: e?.style ?? null
|
|
2838
|
-
},
|
|
2839
|
-
err: null
|
|
2840
|
-
};
|
|
2841
|
-
}
|
|
2842
|
-
case "plural":
|
|
2843
|
-
case "selectordinal":
|
|
2844
|
-
case "select": {
|
|
2845
|
-
let i = this.clonePosition();
|
|
2846
|
-
if (this.bumpSpace(), !this.bumpIf(",")) return this.error(12, Q(i, { ...i }));
|
|
2847
|
-
this.bumpSpace();
|
|
2848
|
-
let o = this.parseIdentifierIfPossible(), s = 0;
|
|
2849
|
-
if (a !== "select" && o.value === "offset") {
|
|
2850
|
-
if (!this.bumpIf(":")) return this.error(13, Q(this.clonePosition(), this.clonePosition()));
|
|
2851
|
-
this.bumpSpace();
|
|
2852
|
-
let e = this.tryParseDecimalInteger(13, 14);
|
|
2853
|
-
if (e.err) return e;
|
|
2854
|
-
this.bumpSpace(), o = this.parseIdentifierIfPossible(), s = e.val;
|
|
2855
|
-
}
|
|
2856
|
-
let c = this.tryParsePluralOrSelectOptions(e, a, t, o);
|
|
2857
|
-
if (c.err) return c;
|
|
2858
|
-
let l = this.tryParseArgumentClose(r);
|
|
2859
|
-
if (l.err) return l;
|
|
2860
|
-
let u = Q(r, this.clonePosition());
|
|
2861
|
-
return a === "select" ? {
|
|
2862
|
-
val: {
|
|
2863
|
-
type: 5,
|
|
2864
|
-
value: n,
|
|
2865
|
-
options: Ne(c.val),
|
|
2866
|
-
location: u
|
|
2867
|
-
},
|
|
2868
|
-
err: null
|
|
2869
|
-
} : {
|
|
2870
|
-
val: {
|
|
2871
|
-
type: 6,
|
|
2872
|
-
value: n,
|
|
2873
|
-
options: Ne(c.val),
|
|
2874
|
-
offset: s,
|
|
2875
|
-
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2876
|
-
location: u
|
|
2877
|
-
},
|
|
2878
|
-
err: null
|
|
2879
|
-
};
|
|
2880
|
-
}
|
|
2881
|
-
default: return this.error(5, Q(i, o));
|
|
2882
|
-
}
|
|
2883
|
-
}
|
|
2884
|
-
tryParseArgumentClose(e) {
|
|
2885
|
-
return this.isEOF() || this.char() !== 125 ? this.error(1, Q(e, this.clonePosition())) : (this.bump(), {
|
|
2886
|
-
val: !0,
|
|
2887
|
-
err: null
|
|
2888
|
-
});
|
|
2889
|
-
}
|
|
2890
|
-
parseSimpleArgStyleIfPossible() {
|
|
2891
|
-
let e = 0, t = this.clonePosition();
|
|
2892
|
-
for (; !this.isEOF();) switch (this.char()) {
|
|
2893
|
-
case 39: {
|
|
2894
|
-
this.bump();
|
|
2895
|
-
let e = this.clonePosition();
|
|
2896
|
-
if (!this.bumpUntil("'")) return this.error(11, Q(e, this.clonePosition()));
|
|
2897
|
-
this.bump();
|
|
2898
|
-
break;
|
|
2899
|
-
}
|
|
2900
|
-
case 123:
|
|
2901
|
-
e += 1, this.bump();
|
|
2902
|
-
break;
|
|
2903
|
-
case 125:
|
|
2904
|
-
if (e > 0) --e;
|
|
2905
|
-
else return {
|
|
2906
|
-
val: this.message.slice(t.offset, this.offset()),
|
|
2907
|
-
err: null
|
|
2908
|
-
};
|
|
2909
|
-
break;
|
|
2910
|
-
default:
|
|
2911
|
-
this.bump();
|
|
2912
|
-
break;
|
|
2913
|
-
}
|
|
2914
|
-
return {
|
|
2915
|
-
val: this.message.slice(t.offset, this.offset()),
|
|
2916
|
-
err: null
|
|
2917
|
-
};
|
|
2918
|
-
}
|
|
2919
|
-
parseNumberSkeletonFromString(e, t) {
|
|
2920
|
-
let n = [];
|
|
2921
|
-
try {
|
|
2922
|
-
n = K(e);
|
|
2923
|
-
} catch {
|
|
2924
|
-
return this.error(7, t);
|
|
2925
|
-
}
|
|
2926
|
-
return {
|
|
2927
|
-
val: {
|
|
2928
|
-
type: 0,
|
|
2929
|
-
tokens: n,
|
|
2930
|
-
location: t,
|
|
2931
|
-
parsedOptions: this.shouldParseSkeletons ? he(n) : {}
|
|
2932
|
-
},
|
|
2933
|
-
err: null
|
|
2934
|
-
};
|
|
2935
|
-
}
|
|
2936
|
-
tryParsePluralOrSelectOptions(e, t, n, r) {
|
|
2937
|
-
let i = !1, a = [], o = /* @__PURE__ */ new Set(), { value: s, location: c } = r;
|
|
2938
|
-
for (;;) {
|
|
2939
|
-
if (s.length === 0) {
|
|
2940
|
-
let e = this.clonePosition();
|
|
2941
|
-
if (t !== "select" && this.bumpIf("=")) {
|
|
2942
|
-
let t = this.tryParseDecimalInteger(16, 19);
|
|
2943
|
-
if (t.err) return t;
|
|
2944
|
-
c = Q(e, this.clonePosition()), s = this.message.slice(e.offset, this.offset());
|
|
2945
|
-
} else break;
|
|
2946
|
-
}
|
|
2947
|
-
if (o.has(s)) return this.error(t === "select" ? 21 : 20, c);
|
|
2948
|
-
s === "other" && (i = !0), this.bumpSpace();
|
|
2949
|
-
let r = this.clonePosition();
|
|
2950
|
-
if (!this.bumpIf("{")) return this.error(t === "select" ? 17 : 18, Q(this.clonePosition(), this.clonePosition()));
|
|
2951
|
-
let l = this.parseMessage(e + 1, t, n);
|
|
2952
|
-
if (l.err) return l;
|
|
2953
|
-
let u = this.tryParseArgumentClose(r);
|
|
2954
|
-
if (u.err) return u;
|
|
2955
|
-
a.push([s, {
|
|
2956
|
-
value: l.val,
|
|
2957
|
-
location: Q(r, this.clonePosition())
|
|
2958
|
-
}]), o.add(s), this.bumpSpace(), {value: s, location: c} = this.parseIdentifierIfPossible();
|
|
2959
|
-
}
|
|
2960
|
-
return a.length === 0 ? this.error(t === "select" ? 15 : 16, Q(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i ? this.error(22, Q(this.clonePosition(), this.clonePosition())) : {
|
|
2961
|
-
val: a,
|
|
2962
|
-
err: null
|
|
2963
|
-
};
|
|
2964
|
-
}
|
|
2965
|
-
tryParseDecimalInteger(e, t) {
|
|
2966
|
-
let n = 1, r = this.clonePosition();
|
|
2967
|
-
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2968
|
-
let i = !1, a = 0;
|
|
2969
|
-
for (; !this.isEOF();) {
|
|
2970
|
-
let e = this.char();
|
|
2971
|
-
if (e >= 48 && e <= 57) i = !0, a = a * 10 + (e - 48), this.bump();
|
|
2972
|
-
else break;
|
|
2973
|
-
}
|
|
2974
|
-
let o = Q(r, this.clonePosition());
|
|
2975
|
-
return i ? (a *= n, Number.isSafeInteger(a) ? {
|
|
2976
|
-
val: a,
|
|
2977
|
-
err: null
|
|
2978
|
-
} : this.error(t, o)) : this.error(e, o);
|
|
2979
|
-
}
|
|
2980
|
-
offset() {
|
|
2981
|
-
return this.position.offset;
|
|
2982
|
-
}
|
|
2983
|
-
isEOF() {
|
|
2984
|
-
return this.offset() === this.message.length;
|
|
2985
|
-
}
|
|
2986
|
-
clonePosition() {
|
|
2987
|
-
return {
|
|
2988
|
-
offset: this.position.offset,
|
|
2989
|
-
line: this.position.line,
|
|
2990
|
-
column: this.position.column
|
|
2991
|
-
};
|
|
2992
|
-
}
|
|
2993
|
-
char() {
|
|
2994
|
-
let e = this.position.offset;
|
|
2995
|
-
if (e >= this.message.length) throw Error("out of bound");
|
|
2996
|
-
let t = this.message.codePointAt(e);
|
|
2997
|
-
if (t === void 0) throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);
|
|
2998
|
-
return t;
|
|
2999
|
-
}
|
|
3000
|
-
error(e, t) {
|
|
3001
|
-
return {
|
|
3002
|
-
val: null,
|
|
3003
|
-
err: {
|
|
3004
|
-
kind: e,
|
|
3005
|
-
message: this.message,
|
|
3006
|
-
location: t
|
|
3007
|
-
}
|
|
3008
|
-
};
|
|
3009
|
-
}
|
|
3010
|
-
bump() {
|
|
3011
|
-
if (this.isEOF()) return;
|
|
3012
|
-
let e = this.char();
|
|
3013
|
-
e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
|
|
3014
|
-
}
|
|
3015
|
-
bumpIf(e) {
|
|
3016
|
-
if (this.message.startsWith(e, this.offset())) {
|
|
3017
|
-
for (let t = 0; t < e.length; t++) this.bump();
|
|
3018
|
-
return !0;
|
|
3019
|
-
}
|
|
3020
|
-
return !1;
|
|
3021
|
-
}
|
|
3022
|
-
bumpUntil(e) {
|
|
3023
|
-
let t = this.offset(), n = this.message.indexOf(e, t);
|
|
3024
|
-
return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
|
|
3025
|
-
}
|
|
3026
|
-
bumpTo(e) {
|
|
3027
|
-
if (this.offset() > e) throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);
|
|
3028
|
-
for (e = Math.min(e, this.message.length);;) {
|
|
3029
|
-
let t = this.offset();
|
|
3030
|
-
if (t === e) break;
|
|
3031
|
-
if (t > e) throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);
|
|
3032
|
-
if (this.bump(), this.isEOF()) break;
|
|
3033
|
-
}
|
|
3034
|
-
}
|
|
3035
|
-
bumpSpace() {
|
|
3036
|
-
for (; !this.isEOF() && Ue(this.char());) this.bump();
|
|
3037
|
-
}
|
|
3038
|
-
peek() {
|
|
3039
|
-
if (this.isEOF()) return null;
|
|
3040
|
-
let e = this.char(), t = this.offset();
|
|
3041
|
-
return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
|
|
3042
|
-
}
|
|
3043
|
-
};
|
|
3044
|
-
function Be(e) {
|
|
3045
|
-
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3046
|
-
}
|
|
3047
|
-
function Ve(e) {
|
|
3048
|
-
return Be(e) || e === 47;
|
|
3049
|
-
}
|
|
3050
|
-
function He(e) {
|
|
3051
|
-
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
|
-
}
|
|
3053
|
-
function Ue(e) {
|
|
3054
|
-
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3055
|
-
}
|
|
3056
|
-
function We(e) {
|
|
3057
|
-
e.forEach((e) => {
|
|
3058
|
-
if (delete e.location, X(e) || be(e)) for (let t in e.options) delete e.options[t].location, We(e.options[t].value);
|
|
3059
|
-
else ye(e) && Se(e.style) || (J(e) || Y(e)) && Ce(e.style) ? delete e.style.location : Z(e) && We(e.children);
|
|
3060
|
-
});
|
|
3061
|
-
}
|
|
3062
|
-
function Ge(e, t = {}) {
|
|
3063
|
-
t = {
|
|
3064
|
-
shouldParseSkeletons: !0,
|
|
3065
|
-
requiresOtherClause: !0,
|
|
3066
|
-
...t
|
|
3067
|
-
};
|
|
3068
|
-
let n = new ze(e, t).parse();
|
|
3069
|
-
if (n.err) {
|
|
3070
|
-
let e = SyntaxError(ge[n.err.kind]);
|
|
3071
|
-
throw e.location = n.err.location, e.originalMessage = n.err.message, e;
|
|
3072
|
-
}
|
|
3073
|
-
return t?.captureLocation || We(n.val), n.val;
|
|
3074
|
-
}
|
|
3075
|
-
//#endregion
|
|
3076
|
-
//#region ../../node_modules/.bun/intl-messageformat@11.2.9/node_modules/intl-messageformat/index.js
|
|
3077
|
-
var Ke = class extends Error {
|
|
3078
|
-
constructor(e, t, n) {
|
|
3079
|
-
super(e), this.code = t, this.originalMessage = n;
|
|
3080
|
-
}
|
|
3081
|
-
toString() {
|
|
3082
|
-
return `[formatjs Error: ${this.code}] ${this.message}`;
|
|
3083
|
-
}
|
|
3084
|
-
}, qe = class extends Ke {
|
|
3085
|
-
constructor(e, t, n, r) {
|
|
3086
|
-
super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
|
|
3087
|
-
}
|
|
3088
|
-
}, Je = class extends Ke {
|
|
3089
|
-
constructor(e, t, n) {
|
|
3090
|
-
super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
|
|
3091
|
-
}
|
|
3092
|
-
}, Ye = class extends Ke {
|
|
3093
|
-
constructor(e, t) {
|
|
3094
|
-
super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
|
|
3095
|
-
}
|
|
3096
|
-
};
|
|
3097
|
-
function Xe(e) {
|
|
3098
|
-
return e.length < 2 ? e : e.reduce((e, t) => {
|
|
3099
|
-
let n = e[e.length - 1];
|
|
3100
|
-
return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
|
|
3101
|
-
}, []);
|
|
3102
|
-
}
|
|
3103
|
-
function Ze(e) {
|
|
3104
|
-
return typeof e == "function";
|
|
3105
|
-
}
|
|
3106
|
-
function Qe(e, t, n, r, i, a, o) {
|
|
3107
|
-
if (e.length === 1 && _e(e[0])) return [{
|
|
3108
|
-
type: 0,
|
|
3109
|
-
value: e[0].value
|
|
3110
|
-
}];
|
|
3111
|
-
let s = [];
|
|
3112
|
-
for (let c of e) {
|
|
3113
|
-
if (_e(c)) {
|
|
3114
|
-
s.push({
|
|
3115
|
-
type: 0,
|
|
3116
|
-
value: c.value
|
|
3117
|
-
});
|
|
3118
|
-
continue;
|
|
3119
|
-
}
|
|
3120
|
-
if (xe(c)) {
|
|
3121
|
-
typeof a == "number" && s.push({
|
|
3122
|
-
type: 0,
|
|
3123
|
-
value: n.getNumberFormat(t).format(a)
|
|
3124
|
-
});
|
|
3125
|
-
continue;
|
|
3126
|
-
}
|
|
3127
|
-
let { value: e } = c;
|
|
3128
|
-
if (!(i && e in i)) throw new Ye(e, o);
|
|
3129
|
-
let l = i[e];
|
|
3130
|
-
if (ve(c)) {
|
|
3131
|
-
(!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
|
-
type: typeof l == "string" ? 0 : 1,
|
|
3133
|
-
value: l
|
|
3134
|
-
});
|
|
3135
|
-
continue;
|
|
3136
|
-
}
|
|
3137
|
-
if (J(c)) {
|
|
3138
|
-
let e = typeof c.style == "string" ? r.date[c.style] : Ce(c.style) ? c.style.parsedOptions : void 0;
|
|
3139
|
-
s.push({
|
|
3140
|
-
type: 0,
|
|
3141
|
-
value: n.getDateTimeFormat(t, e).format(l)
|
|
3142
|
-
});
|
|
3143
|
-
continue;
|
|
3144
|
-
}
|
|
3145
|
-
if (Y(c)) {
|
|
3146
|
-
let e = typeof c.style == "string" ? r.time[c.style] : Ce(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3147
|
-
s.push({
|
|
3148
|
-
type: 0,
|
|
3149
|
-
value: n.getDateTimeFormat(t, e).format(l)
|
|
3150
|
-
});
|
|
3151
|
-
continue;
|
|
3152
|
-
}
|
|
3153
|
-
if (ye(c)) {
|
|
3154
|
-
let e = typeof c.style == "string" ? r.number[c.style] : Se(c.style) ? c.style.parsedOptions : void 0;
|
|
3155
|
-
if (e && e.scale) {
|
|
3156
|
-
let t = e.scale || 1;
|
|
3157
|
-
if (typeof l == "bigint") {
|
|
3158
|
-
if (!Number.isInteger(t)) throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);
|
|
3159
|
-
l *= BigInt(t);
|
|
3160
|
-
} else l *= t;
|
|
3161
|
-
}
|
|
3162
|
-
s.push({
|
|
3163
|
-
type: 0,
|
|
3164
|
-
value: n.getNumberFormat(t, e).format(l)
|
|
3165
|
-
});
|
|
3166
|
-
continue;
|
|
3167
|
-
}
|
|
3168
|
-
if (Z(c)) {
|
|
3169
|
-
let { children: e, value: l } = c, u = i[l];
|
|
3170
|
-
if (!Ze(u)) throw new Je(l, "function", o);
|
|
3171
|
-
let d = u(Qe(e, t, n, r, i, a).map((e) => e.value));
|
|
3172
|
-
Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
|
|
3173
|
-
type: typeof e == "string" ? 0 : 1,
|
|
3174
|
-
value: e
|
|
3175
|
-
})));
|
|
3176
|
-
}
|
|
3177
|
-
if (X(c)) {
|
|
3178
|
-
let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
|
|
3179
|
-
if (!a) throw new qe(c.value, l, Object.keys(c.options), o);
|
|
3180
|
-
s.push(...Qe(a.value, t, n, r, i));
|
|
3181
|
-
continue;
|
|
3182
|
-
}
|
|
3183
|
-
if (be(c)) {
|
|
3184
|
-
let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
|
|
3185
|
-
if (!a) {
|
|
3186
|
-
if (!Intl.PluralRules) throw new Ke("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
|
|
3187
|
-
let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
|
|
3188
|
-
a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
|
|
3189
|
-
}
|
|
3190
|
-
if (!a) throw new qe(c.value, l, Object.keys(c.options), o);
|
|
3191
|
-
let u = typeof l == "bigint" ? Number(l) : l;
|
|
3192
|
-
s.push(...Qe(a.value, t, n, r, i, u - (c.offset || 0)));
|
|
3193
|
-
continue;
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
return Xe(s);
|
|
3197
|
-
}
|
|
3198
|
-
function $e(e, t) {
|
|
3199
|
-
return t ? {
|
|
3200
|
-
...e,
|
|
3201
|
-
...t,
|
|
3202
|
-
...Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3203
|
-
...e[r],
|
|
3204
|
-
...t[r]
|
|
3205
|
-
}, n), {})
|
|
3206
|
-
} : e;
|
|
3207
|
-
}
|
|
3208
|
-
function et(e, t) {
|
|
3209
|
-
return t ? Object.keys(e).reduce((n, r) => (n[r] = $e(e[r], t[r]), n), { ...e }) : e;
|
|
3210
|
-
}
|
|
3211
|
-
function tt(e) {
|
|
3212
|
-
return { create() {
|
|
3213
|
-
return {
|
|
3214
|
-
get(t) {
|
|
3215
|
-
return e[t];
|
|
3216
|
-
},
|
|
3217
|
-
set(t, n) {
|
|
3218
|
-
e[t] = n;
|
|
3219
|
-
}
|
|
3220
|
-
};
|
|
3221
|
-
} };
|
|
3222
|
-
}
|
|
3223
|
-
function nt(e = {
|
|
3224
|
-
number: {},
|
|
3225
|
-
dateTime: {},
|
|
3226
|
-
pluralRules: {}
|
|
3227
|
-
}) {
|
|
3228
|
-
return {
|
|
3229
|
-
getNumberFormat: k((...e) => new Intl.NumberFormat(...e), {
|
|
3230
|
-
cache: tt(e.number),
|
|
3231
|
-
strategy: B.variadic
|
|
3232
|
-
}),
|
|
3233
|
-
getDateTimeFormat: k((...e) => new Intl.DateTimeFormat(...e), {
|
|
3234
|
-
cache: tt(e.dateTime),
|
|
3235
|
-
strategy: B.variadic
|
|
3236
|
-
}),
|
|
3237
|
-
getPluralRules: k((...e) => new Intl.PluralRules(...e), {
|
|
3238
|
-
cache: tt(e.pluralRules),
|
|
3239
|
-
strategy: B.variadic
|
|
3240
|
-
})
|
|
3241
|
-
};
|
|
3242
|
-
}
|
|
3243
|
-
var rt = class e {
|
|
3244
|
-
constructor(t, n = e.defaultLocale, r, i) {
|
|
3245
|
-
if (this.formatterCache = {
|
|
3246
|
-
number: {},
|
|
3247
|
-
dateTime: {},
|
|
3248
|
-
pluralRules: {}
|
|
3249
|
-
}, this.format = (e) => {
|
|
3250
|
-
let t = this.formatToParts(e);
|
|
3251
|
-
if (t.length === 1) return t[0].value;
|
|
3252
|
-
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
|
-
return n.length <= 1 ? n[0] || "" : n;
|
|
3254
|
-
}, this.formatToParts = (e) => Qe(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
|
-
if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3256
|
-
let { ...n } = i || {};
|
|
3257
|
-
this.ast = e.__parse(t, {
|
|
3258
|
-
...n,
|
|
3259
|
-
locale: this.resolvedLocale
|
|
3260
|
-
});
|
|
3261
|
-
} else this.ast = t;
|
|
3262
|
-
if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
|
|
3263
|
-
this.formats = et(e.formats, r), this.formatters = i && i.formatters || nt(this.formatterCache);
|
|
3264
|
-
}
|
|
3265
|
-
static {
|
|
3266
|
-
this.memoizedDefaultLocale = null;
|
|
3267
|
-
}
|
|
3268
|
-
static get defaultLocale() {
|
|
3269
|
-
return e.memoizedDefaultLocale ||= new Intl.NumberFormat().resolvedOptions().locale, e.memoizedDefaultLocale;
|
|
3270
|
-
}
|
|
3271
|
-
static {
|
|
3272
|
-
this.resolveLocale = (e) => {
|
|
3273
|
-
if (Intl.Locale === void 0) return;
|
|
3274
|
-
let t = Intl.NumberFormat.supportedLocalesOf(e);
|
|
3275
|
-
return t.length > 0 ? new Intl.Locale(t[0]) : new Intl.Locale(typeof e == "string" ? e : e[0]);
|
|
3276
|
-
};
|
|
3277
|
-
}
|
|
3278
|
-
static {
|
|
3279
|
-
this.__parse = Ge;
|
|
3280
|
-
}
|
|
3281
|
-
static {
|
|
3282
|
-
this.formats = {
|
|
3283
|
-
number: {
|
|
3284
|
-
integer: { maximumFractionDigits: 0 },
|
|
3285
|
-
currency: { style: "currency" },
|
|
3286
|
-
percent: { style: "percent" }
|
|
3287
|
-
},
|
|
3288
|
-
date: {
|
|
3289
|
-
short: {
|
|
3290
|
-
month: "numeric",
|
|
3291
|
-
day: "numeric",
|
|
3292
|
-
year: "2-digit"
|
|
3293
|
-
},
|
|
3294
|
-
medium: {
|
|
3295
|
-
month: "short",
|
|
3296
|
-
day: "numeric",
|
|
3297
|
-
year: "numeric"
|
|
3298
|
-
},
|
|
3299
|
-
long: {
|
|
3300
|
-
month: "long",
|
|
3301
|
-
day: "numeric",
|
|
3302
|
-
year: "numeric"
|
|
3303
|
-
},
|
|
3304
|
-
full: {
|
|
3305
|
-
weekday: "long",
|
|
3306
|
-
month: "long",
|
|
3307
|
-
day: "numeric",
|
|
3308
|
-
year: "numeric"
|
|
3309
|
-
}
|
|
3310
|
-
},
|
|
3311
|
-
time: {
|
|
3312
|
-
short: {
|
|
3313
|
-
hour: "numeric",
|
|
3314
|
-
minute: "numeric"
|
|
3315
|
-
},
|
|
3316
|
-
medium: {
|
|
3317
|
-
hour: "numeric",
|
|
3318
|
-
minute: "numeric",
|
|
3319
|
-
second: "numeric"
|
|
3320
|
-
},
|
|
3321
|
-
long: {
|
|
3322
|
-
hour: "numeric",
|
|
3323
|
-
minute: "numeric",
|
|
3324
|
-
second: "numeric",
|
|
3325
|
-
timeZoneName: "short"
|
|
3326
|
-
},
|
|
3327
|
-
full: {
|
|
3328
|
-
hour: "numeric",
|
|
3329
|
-
minute: "numeric",
|
|
3330
|
-
second: "numeric",
|
|
3331
|
-
timeZoneName: "short"
|
|
3332
|
-
}
|
|
3333
|
-
}
|
|
3334
|
-
};
|
|
3335
|
-
}
|
|
3336
|
-
};
|
|
3337
|
-
//#endregion
|
|
3338
|
-
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/format-message/index.js
|
|
3339
|
-
function it(...[e, t, n, r]) {
|
|
3340
|
-
if (Array.isArray(t)) throw new V(H.INVALID_MESSAGE, void 0);
|
|
3341
|
-
if (typeof t == "object") throw new V(H.INSUFFICIENT_PATH, void 0);
|
|
3342
|
-
if (typeof t == "string") {
|
|
3343
|
-
let e = function(e, t) {
|
|
3344
|
-
return t || /'[{}]/.test(e) ? void 0 : e;
|
|
3345
|
-
}(t, n);
|
|
3346
|
-
if (e) return e;
|
|
3347
|
-
}
|
|
3348
|
-
let { cache: i, formats: a, formatters: o, globalFormats: s, locale: c, timeZone: l } = r, u;
|
|
3349
|
-
o.getMessageFormat ||= function(e, t) {
|
|
3350
|
-
return te(((...e) => new rt(e[0], e[1], e[2], {
|
|
3351
|
-
formatters: t,
|
|
3352
|
-
...e[3]
|
|
3353
|
-
})), e.message);
|
|
3354
|
-
}(i, o);
|
|
3355
|
-
try {
|
|
3356
|
-
u = o.getMessageFormat(t, c, function(e, t, n) {
|
|
3357
|
-
let r = rt.formats.date, i = rt.formats.time, a = {
|
|
3358
|
-
...e?.dateTime,
|
|
3359
|
-
...t?.dateTime
|
|
3360
|
-
}, o = {
|
|
3361
|
-
date: {
|
|
3362
|
-
...r,
|
|
3363
|
-
...a
|
|
3364
|
-
},
|
|
3365
|
-
time: {
|
|
3366
|
-
...i,
|
|
3367
|
-
...a
|
|
3368
|
-
},
|
|
3369
|
-
number: {
|
|
3370
|
-
...e?.number,
|
|
3371
|
-
...t?.number
|
|
3372
|
-
}
|
|
3373
|
-
};
|
|
3374
|
-
return n && ["date", "time"].forEach(((e) => {
|
|
3375
|
-
let t = o[e];
|
|
3376
|
-
for (let [e, r] of Object.entries(t)) t[e] = {
|
|
3377
|
-
timeZone: n,
|
|
3378
|
-
...r
|
|
3379
|
-
};
|
|
3380
|
-
})), o;
|
|
3381
|
-
}(s, a, l), { formatters: {
|
|
3382
|
-
...o,
|
|
3383
|
-
getDateTimeFormat: (e, t) => o.getDateTimeFormat(e, {
|
|
3384
|
-
...t,
|
|
3385
|
-
timeZone: t?.timeZone ?? l
|
|
3386
|
-
})
|
|
3387
|
-
} });
|
|
3388
|
-
} catch {
|
|
3389
|
-
throw new V(H.INVALID_MESSAGE, void 0);
|
|
3390
|
-
}
|
|
3391
|
-
let d = u.format(n);
|
|
3392
|
-
return (0, G.isValidElement)(d) || Array.isArray(d) || typeof d == "string" ? d : String(d);
|
|
3393
|
-
}
|
|
3394
|
-
it.raw = !0;
|
|
3395
|
-
//#endregion
|
|
3396
|
-
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/initializeConfig-CHgjheii.js
|
|
3397
|
-
function at(...e) {
|
|
3398
|
-
return e.filter(Boolean).join(".");
|
|
3399
|
-
}
|
|
3400
|
-
function ot(e) {
|
|
3401
|
-
return at(e.namespace, e.key);
|
|
3402
|
-
}
|
|
3403
|
-
function st(e) {
|
|
3404
|
-
console.error(e);
|
|
3405
|
-
}
|
|
3406
|
-
function ct(e, t, n, r) {
|
|
3407
|
-
let i = at(r, n);
|
|
3408
|
-
if (!t) throw Error(i);
|
|
3409
|
-
let a = t;
|
|
3410
|
-
return n.split(".").forEach(((t) => {
|
|
3411
|
-
let n = a[t];
|
|
3412
|
-
if (t == null || n == null) throw Error(i + ` (${e})`);
|
|
3413
|
-
a = n;
|
|
3414
|
-
})), a;
|
|
3415
|
-
}
|
|
3416
|
-
function lt(e) {
|
|
3417
|
-
let t = function(e, t, n) {
|
|
3418
|
-
try {
|
|
3419
|
-
if (!t) throw Error(void 0);
|
|
3420
|
-
let r = n ? ct(e, t, n) : t;
|
|
3421
|
-
if (!r) throw Error(n);
|
|
3422
|
-
return r;
|
|
3423
|
-
} catch (e) {
|
|
3424
|
-
return new V(H.MISSING_MESSAGE, e.message);
|
|
3425
|
-
}
|
|
3426
|
-
}(e.locale, e.messages, e.namespace);
|
|
3427
|
-
return function({ cache: e, formats: t, formatters: n, getMessageFallback: r = ot, locale: i, messagesOrError: a, namespace: o, onError: s, timeZone: c }) {
|
|
3428
|
-
let l = a instanceof V;
|
|
3429
|
-
function u(e, t, n, i) {
|
|
3430
|
-
let a = new V(t, n);
|
|
3431
|
-
return s(a), i ?? r({
|
|
3432
|
-
error: a,
|
|
3433
|
-
key: e,
|
|
3434
|
-
namespace: o
|
|
3435
|
-
});
|
|
3436
|
-
}
|
|
3437
|
-
function d(d, f, p, m) {
|
|
3438
|
-
let h = m, g;
|
|
3439
|
-
if (l) {
|
|
3440
|
-
if (!h) return s(a), r({
|
|
3441
|
-
error: a,
|
|
3442
|
-
key: d,
|
|
3443
|
-
namespace: o
|
|
3444
|
-
});
|
|
3445
|
-
g = h;
|
|
3446
|
-
} else {
|
|
3447
|
-
let e = a;
|
|
3448
|
-
try {
|
|
3449
|
-
g = ct(i, e, d, o);
|
|
3450
|
-
} catch (e) {
|
|
3451
|
-
if (!h) return u(d, H.MISSING_MESSAGE, e.message, h);
|
|
3452
|
-
g = h;
|
|
3453
|
-
}
|
|
3454
|
-
}
|
|
3455
|
-
try {
|
|
3456
|
-
return it(at(o, d), g, f && function(e) {
|
|
3457
|
-
let t = {};
|
|
3458
|
-
return Object.keys(e).forEach(((n) => {
|
|
3459
|
-
let r = 0, i = e[n], a;
|
|
3460
|
-
a = typeof i == "function" ? (e) => {
|
|
3461
|
-
let t = i(e);
|
|
3462
|
-
return (0, G.isValidElement)(t) ? (0, G.cloneElement)(t, { key: n + r++ }) : t;
|
|
3463
|
-
} : i, t[n] = a;
|
|
3464
|
-
})), t;
|
|
3465
|
-
}(f), {
|
|
3466
|
-
cache: e,
|
|
3467
|
-
formatters: n,
|
|
3468
|
-
globalFormats: t,
|
|
3469
|
-
formats: p,
|
|
3470
|
-
locale: i,
|
|
3471
|
-
timeZone: c
|
|
3472
|
-
});
|
|
3473
|
-
} catch (e) {
|
|
3474
|
-
let t, n;
|
|
3475
|
-
return e instanceof V ? (t = e.code, n = e.originalMessage) : (t = H.FORMATTING_ERROR, n = e.message), u(d, t, n, h);
|
|
3476
|
-
}
|
|
3477
|
-
}
|
|
3478
|
-
function f(e, t, n, r) {
|
|
3479
|
-
let i = d(e, t, n, r);
|
|
3480
|
-
return typeof i == "string" ? i : u(e, H.INVALID_MESSAGE, void 0);
|
|
3481
|
-
}
|
|
3482
|
-
return f.rich = d, f.markup = (e, t, n, r) => d(e, t, n, r), f.raw = (e) => {
|
|
3483
|
-
if (l) return s(a), r({
|
|
3484
|
-
error: a,
|
|
3485
|
-
key: e,
|
|
3486
|
-
namespace: o
|
|
3487
|
-
});
|
|
3488
|
-
let t = a;
|
|
3489
|
-
try {
|
|
3490
|
-
return ct(i, t, e, o);
|
|
3491
|
-
} catch (t) {
|
|
3492
|
-
return u(e, H.MISSING_MESSAGE, t.message);
|
|
3493
|
-
}
|
|
3494
|
-
}, f.has = (e) => {
|
|
3495
|
-
if (l) return !1;
|
|
3496
|
-
try {
|
|
3497
|
-
return ct(i, a, e, o), !0;
|
|
3498
|
-
} catch {
|
|
3499
|
-
return !1;
|
|
3500
|
-
}
|
|
3501
|
-
}, f;
|
|
3502
|
-
}({
|
|
3503
|
-
...e,
|
|
3504
|
-
messagesOrError: t
|
|
3505
|
-
});
|
|
3506
|
-
}
|
|
3507
|
-
function ut(e, t) {
|
|
3508
|
-
return e === t ? void 0 : e.slice((t + ".").length);
|
|
3509
|
-
}
|
|
3510
|
-
var dt = 86400;
|
|
3511
|
-
7 * dt, 365 * dt;
|
|
3512
|
-
//#endregion
|
|
3513
|
-
//#region ../../node_modules/.bun/use-intl@4.13.0+e14d3f224186685e/node_modules/use-intl/dist/esm/production/core.js
|
|
3514
|
-
function ft({ _cache: e = ee(), _formatters: t = W(e), getMessageFallback: n = ot, messages: r, namespace: i, onError: a = st, ...o }) {
|
|
3515
|
-
return function({ messages: e, namespace: t, ...n }, r) {
|
|
3516
|
-
return e = e[r], t = ut(t, r), lt({
|
|
3517
|
-
...n,
|
|
3518
|
-
messages: e,
|
|
3519
|
-
namespace: t
|
|
3520
|
-
});
|
|
3521
|
-
}({
|
|
3522
|
-
...o,
|
|
3523
|
-
onError: a,
|
|
3524
|
-
cache: e,
|
|
3525
|
-
formatters: t,
|
|
3526
|
-
getMessageFallback: n,
|
|
3527
|
-
messages: { "!": r },
|
|
3528
|
-
namespace: i ? `!.${i}` : "!"
|
|
3529
|
-
}, "!");
|
|
3530
|
-
}
|
|
3531
|
-
//#endregion
|
|
3532
|
-
//#region src/i18n/index.ts
|
|
3533
|
-
var pt = "en", mt = (e) => ft({
|
|
3534
|
-
locale: e,
|
|
3535
|
-
messages: T(e),
|
|
3536
|
-
namespace: "folio"
|
|
3537
|
-
}), ht = Symbol("folioTranslator"), gt = t(() => mt("en")), _t = (e = "en") => {
|
|
3538
|
-
d(ht, t(() => mt(h(e))));
|
|
3539
|
-
}, $ = () => {
|
|
3540
|
-
let e = s(ht, gt);
|
|
3541
|
-
return { t: (t, n) => e.value(t, n) };
|
|
3542
|
-
}, vt = { install(e, n = "en") {
|
|
3543
|
-
e.provide(ht, t(() => mt(h(n))));
|
|
3544
|
-
} }, yt = { class: "find-replace-dialog__header" }, bt = { class: "find-replace-dialog__title" }, xt = ["title"], St = { class: "find-replace-dialog__body" }, Ct = { class: "find-replace-dialog__row" }, wt = ["placeholder", "aria-label"], Tt = { class: "find-replace-dialog__count" }, Et = ["title"], Dt = ["title"], Ot = { class: "find-replace-dialog__options" }, kt = ["title"], At = {
|
|
3545
|
-
key: 0,
|
|
3546
|
-
class: "find-replace-dialog__row"
|
|
3547
|
-
}, jt = [
|
|
3548
|
-
"placeholder",
|
|
3549
|
-
"aria-label",
|
|
3550
|
-
"onKeydown"
|
|
3551
|
-
], Mt = ["title"], Nt = ["title"], Pt = /*#__PURE__*/ O(/* @__PURE__ */ o({
|
|
3552
|
-
__name: "FindReplaceDialog",
|
|
3553
|
-
props: {
|
|
3554
|
-
isOpen: { type: Boolean },
|
|
3555
|
-
view: {},
|
|
3556
|
-
scrollVisiblePositionIntoView: { type: Function }
|
|
3557
|
-
},
|
|
3558
|
-
emits: ["close"],
|
|
3559
|
-
setup(e, { emit: o }) {
|
|
3560
|
-
let { t: s } = $(), d = e, p = o, h = f(null), v = f(""), T = f(""), E = f(!1), D = f(!1), O = f(!1), k = f([]), A = f(-1), j = t(() => v.value.trim() ? k.value.length === 0 ? s("findReplace.noResults") : A.value < 0 ? s("dialogs.findReplace.matchesFound", { total: k.value.length }) : s("findReplace.matchCounter", {
|
|
3561
|
-
current: A.value + 1,
|
|
3562
|
-
total: k.value.length
|
|
3563
|
-
}) : "");
|
|
3564
|
-
b(() => d.isOpen, async (e) => {
|
|
3565
|
-
e ? (await c(), h.value?.focus(), h.value?.select(), N()) : z();
|
|
3566
|
-
});
|
|
3567
|
-
function M() {
|
|
3568
|
-
z(), p("close");
|
|
3569
|
-
}
|
|
3570
|
-
function N() {
|
|
3571
|
-
k.value = [], A.value = -1;
|
|
3572
|
-
let e = d.view;
|
|
3573
|
-
if (!e || !v.value.trim()) {
|
|
3574
|
-
z();
|
|
3575
|
-
return;
|
|
3576
|
-
}
|
|
3577
|
-
let t = e.state.doc, n = v.value, r = !E.value, i = [];
|
|
3578
|
-
t.descendants((e, a) => {
|
|
3579
|
-
if (!e.isTextblock) return !0;
|
|
3580
|
-
let o = t.textBetween(a + 1, a + e.nodeSize - 1, "", "");
|
|
3581
|
-
if (!o) return !1;
|
|
3582
|
-
let s = r ? n.toLowerCase() : n, c = r ? o.toLowerCase() : o, l = 0;
|
|
3583
|
-
for (; l < c.length;) {
|
|
3584
|
-
let e;
|
|
3585
|
-
if (D.value) {
|
|
3586
|
-
let t = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), n = r ? "gi" : "g", i = RegExp(`\\b${t}\\b`, n);
|
|
3587
|
-
i.lastIndex = l;
|
|
3588
|
-
let a = i.exec(c);
|
|
3589
|
-
if (!a) break;
|
|
3590
|
-
e = a.index;
|
|
3591
|
-
} else if (e = c.indexOf(s, l), e === -1) break;
|
|
3592
|
-
let t = a + 1 + e, o = t + n.length;
|
|
3593
|
-
i.push({
|
|
3594
|
-
from: t,
|
|
3595
|
-
to: o
|
|
3596
|
-
}), l = e + Math.max(1, n.length);
|
|
3597
|
-
}
|
|
3598
|
-
return !1;
|
|
3599
|
-
}), k.value = i, i.length > 0 && (A.value = 0, P(0));
|
|
3600
|
-
}
|
|
3601
|
-
function P(e) {
|
|
3602
|
-
let t = d.view;
|
|
3603
|
-
if (!t || k.value.length === 0) return;
|
|
3604
|
-
let n = k.value.at(e);
|
|
3605
|
-
if (!n) return;
|
|
3606
|
-
A.value = e;
|
|
3607
|
-
let { from: r, to: i } = n;
|
|
3608
|
-
try {
|
|
3609
|
-
let e = t.state.doc.resolve(r), n = t.state.doc.resolve(i), a = w.between(e, n);
|
|
3610
|
-
t.dispatch(t.state.tr.setSelection(a)), d.scrollVisiblePositionIntoView?.(r);
|
|
3611
|
-
} catch {}
|
|
3612
|
-
}
|
|
3613
|
-
function F() {
|
|
3614
|
-
if (k.value.length === 0) {
|
|
3615
|
-
N();
|
|
3616
|
-
return;
|
|
3617
|
-
}
|
|
3618
|
-
P((A.value + 1) % k.value.length);
|
|
3619
|
-
}
|
|
3620
|
-
function I() {
|
|
3621
|
-
k.value.length !== 0 && P((A.value - 1 + k.value.length) % k.value.length);
|
|
3622
|
-
}
|
|
3623
|
-
function L() {
|
|
3624
|
-
let e = d.view;
|
|
3625
|
-
if (!e || A.value < 0 || k.value.length === 0) return;
|
|
3626
|
-
let t = k.value.at(A.value);
|
|
3627
|
-
if (t) {
|
|
3628
|
-
try {
|
|
3629
|
-
let n = T.value ? e.state.tr.replaceWith(t.from, t.to, e.state.schema.text(T.value)) : e.state.tr.delete(t.from, t.to);
|
|
3630
|
-
e.dispatch(n);
|
|
3631
|
-
} catch {}
|
|
3632
|
-
N();
|
|
3633
|
-
}
|
|
3634
|
-
}
|
|
3635
|
-
function R() {
|
|
3636
|
-
let e = d.view;
|
|
3637
|
-
if (!e || k.value.length === 0) return;
|
|
3638
|
-
let t = [...k.value].sort((e, t) => t.from - e.from), n = e.state.tr;
|
|
3639
|
-
for (let r of t) try {
|
|
3640
|
-
n = T.value ? n.replaceWith(r.from, r.to, e.state.schema.text(T.value)) : n.delete(r.from, r.to);
|
|
3641
|
-
} catch {}
|
|
3642
|
-
e.dispatch(n), N();
|
|
3643
|
-
}
|
|
3644
|
-
function z() {
|
|
3645
|
-
k.value = [], A.value = -1;
|
|
3646
|
-
}
|
|
3647
|
-
function B(e) {
|
|
3648
|
-
e.key === "Enter" ? (e.preventDefault(), e.shiftKey ? I() : F()) : e.key === "Escape" && M();
|
|
3649
|
-
}
|
|
3650
|
-
return (t, o) => e.isOpen ? (u(), r("div", {
|
|
3651
|
-
key: 0,
|
|
3652
|
-
class: "find-replace-dialog",
|
|
3653
|
-
onMousedown: o[5] ||= C(() => {}, ["stop"]),
|
|
3654
|
-
onKeydown: o[6] ||= C(() => {}, ["stop"])
|
|
3655
|
-
}, [i("div", yt, [i("span", bt, m(O.value ? g(s)("findReplace.findAndReplace") : g(s)("findReplace.find")), 1), i("button", {
|
|
3656
|
-
class: "find-replace-dialog__close",
|
|
3657
|
-
onClick: M,
|
|
3658
|
-
title: g(s)("findReplace.close")
|
|
3659
|
-
}, " ✕ ", 8, xt)]), i("div", St, [
|
|
3660
|
-
i("div", Ct, [
|
|
3661
|
-
x(i("input", {
|
|
3662
|
-
ref_key: "searchInputRef",
|
|
3663
|
-
ref: h,
|
|
3664
|
-
"onUpdate:modelValue": o[0] ||= (e) => v.value = e,
|
|
3665
|
-
class: "find-replace-dialog__input",
|
|
3666
|
-
placeholder: g(s)("findReplace.findPlaceholder"),
|
|
3667
|
-
"aria-label": g(s)("findReplace.findText"),
|
|
3668
|
-
onKeydown: B,
|
|
3669
|
-
onInput: N
|
|
3670
|
-
}, null, 40, wt), [[y, v.value]]),
|
|
3671
|
-
i("span", Tt, m(j.value), 1),
|
|
3672
|
-
i("button", {
|
|
3673
|
-
title: g(s)("findReplace.previous"),
|
|
3674
|
-
onMousedown: C(I, ["prevent"])
|
|
3675
|
-
}, "▲", 40, Et),
|
|
3676
|
-
i("button", {
|
|
3677
|
-
title: g(s)("findReplace.next"),
|
|
3678
|
-
onMousedown: C(F, ["prevent"])
|
|
3679
|
-
}, "▼", 40, Dt)
|
|
3680
|
-
]),
|
|
3681
|
-
i("div", Ot, [
|
|
3682
|
-
i("label", null, [x(i("input", {
|
|
3683
|
-
type: "checkbox",
|
|
3684
|
-
"onUpdate:modelValue": o[1] ||= (e) => E.value = e,
|
|
3685
|
-
onChange: N
|
|
3686
|
-
}, null, 544), [[_, E.value]]), a(" " + m(g(s)("findReplace.matchCase")), 1)]),
|
|
3687
|
-
i("label", null, [x(i("input", {
|
|
3688
|
-
type: "checkbox",
|
|
3689
|
-
"onUpdate:modelValue": o[2] ||= (e) => D.value = e,
|
|
3690
|
-
onChange: N
|
|
3691
|
-
}, null, 544), [[_, D.value]]), a(" " + m(g(s)("findReplace.wholeWords")), 1)]),
|
|
3692
|
-
i("button", {
|
|
3693
|
-
class: l(["find-replace-dialog__toggle", { active: O.value }]),
|
|
3694
|
-
onMousedown: o[3] ||= C((e) => O.value = !O.value, ["prevent"]),
|
|
3695
|
-
title: g(s)("dialogs.findReplace.toggleReplace")
|
|
3696
|
-
}, " ↔ " + m(g(s)("dialogs.findReplace.replaceButton")), 43, kt)
|
|
3697
|
-
]),
|
|
3698
|
-
O.value ? (u(), r("div", At, [
|
|
3699
|
-
x(i("input", {
|
|
3700
|
-
"onUpdate:modelValue": o[4] ||= (e) => T.value = e,
|
|
3701
|
-
class: "find-replace-dialog__input",
|
|
3702
|
-
placeholder: g(s)("findReplace.replacePlaceholder"),
|
|
3703
|
-
"aria-label": g(s)("findReplace.replaceText"),
|
|
3704
|
-
onKeydown: S(C(L, ["prevent"]), ["enter"])
|
|
3705
|
-
}, null, 40, jt), [[y, T.value]]),
|
|
3706
|
-
i("button", {
|
|
3707
|
-
title: g(s)("findReplace.replaceCurrent"),
|
|
3708
|
-
onMousedown: C(L, ["prevent"])
|
|
3709
|
-
}, m(g(s)("dialogs.findReplace.replaceButton")), 41, Mt),
|
|
3710
|
-
i("button", {
|
|
3711
|
-
title: g(s)("findReplace.replaceAll"),
|
|
3712
|
-
onMousedown: C(R, ["prevent"])
|
|
3713
|
-
}, m(g(s)("findReplace.replaceAll")), 41, Nt)
|
|
3714
|
-
])) : n("", !0)
|
|
3715
|
-
])], 32)) : n("", !0);
|
|
3716
|
-
}
|
|
3717
|
-
}), [["__scopeId", "data-v-def26526"]]), Ft = { class: "dialog__header" }, It = { class: "dialog__title" }, Lt = ["aria-label"], Rt = { class: "dialog__body" }, zt = {
|
|
3718
|
-
key: 0,
|
|
3719
|
-
class: "link-tabs",
|
|
3720
|
-
role: "tablist"
|
|
3721
|
-
}, Bt = ["aria-selected"], Vt = ["aria-selected"], Ht = {
|
|
3722
|
-
key: 1,
|
|
3723
|
-
class: "field"
|
|
3724
|
-
}, Ut = { class: "field__label" }, Wt = [
|
|
3725
|
-
"placeholder",
|
|
3726
|
-
"aria-invalid",
|
|
3727
|
-
"onKeydown"
|
|
3728
|
-
], Gt = {
|
|
3729
|
-
key: 0,
|
|
3730
|
-
class: "field__error"
|
|
3731
|
-
}, Kt = {
|
|
3732
|
-
key: 1,
|
|
3733
|
-
class: "field__hint"
|
|
3734
|
-
}, qt = {
|
|
3735
|
-
key: 2,
|
|
3736
|
-
class: "field"
|
|
3737
|
-
}, Jt = { class: "field__label" }, Yt = ["onKeydown"], Xt = { value: "" }, Zt = ["value"], Qt = { class: "field" }, $t = { class: "field__label" }, en = ["placeholder"], tn = { class: "field__hint" }, nn = { class: "field" }, rn = { class: "field__label" }, an = ["placeholder"], on = { class: "dialog__actions" }, sn = ["disabled"], cn = /*#__PURE__*/ O(/* @__PURE__ */ o({
|
|
3738
|
-
__name: "HyperlinkDialog",
|
|
3739
|
-
props: {
|
|
3740
|
-
isOpen: { type: Boolean },
|
|
3741
|
-
view: {},
|
|
3742
|
-
bookmarks: {}
|
|
3743
|
-
},
|
|
3744
|
-
emits: [
|
|
3745
|
-
"close",
|
|
3746
|
-
"submit",
|
|
3747
|
-
"remove"
|
|
3748
|
-
],
|
|
3749
|
-
setup(a, { emit: o }) {
|
|
3750
|
-
let { t: s } = $(), d = a, h = o, _ = f(null), w = f(null), T = f("url"), E = f(""), D = f(""), O = f(""), k = f(""), A = f(!1), j = f(""), M = f(!1), N = t(() => d.bookmarks ?? []), P = t(() => T.value === "bookmark" ? !!D.value : !!E.value.trim() && !j.value);
|
|
3751
|
-
b(E, () => {
|
|
3752
|
-
j.value &&= "";
|
|
3753
|
-
});
|
|
3754
|
-
function F(e) {
|
|
3755
|
-
let t = e.trim();
|
|
3756
|
-
if (!t) return !1;
|
|
3757
|
-
if (/^(mailto:|tel:)/i.test(t)) return t.replace(/^(mailto:|tel:)/i, "").length > 0;
|
|
3758
|
-
if (/^ftp:\/\//i.test(t)) return t.length > 6;
|
|
3759
|
-
try {
|
|
3760
|
-
let e = new URL(/^https?:\/\//i.test(t) ? t : `https://${t}`);
|
|
3761
|
-
return e.protocol === "http:" || e.protocol === "https:";
|
|
3762
|
-
} catch {
|
|
3763
|
-
return !1;
|
|
3764
|
-
}
|
|
3765
|
-
}
|
|
3766
|
-
function I(e) {
|
|
3767
|
-
let t = e.trim();
|
|
3768
|
-
return /^(https?:\/\/|mailto:|tel:|ftp:\/\/)/i.test(t) ? t : `https://${t}`;
|
|
3769
|
-
}
|
|
3770
|
-
b(() => d.isOpen, async (e) => {
|
|
3771
|
-
if (e) {
|
|
3772
|
-
let e = d.view;
|
|
3773
|
-
if (e) {
|
|
3774
|
-
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
|
-
if (a) {
|
|
3776
|
-
let e = a.attrs.href || "";
|
|
3777
|
-
e.startsWith("#") ? (T.value = "bookmark", D.value = e.slice(1), E.value = "") : (T.value = "url", E.value = e, D.value = ""), k.value = a.attrs.tooltip || "", A.value = !0;
|
|
3778
|
-
} else T.value = "url", E.value = "", D.value = "", k.value = "", A.value = !1;
|
|
3779
|
-
n ? O.value = "" : O.value = e.state.doc.textBetween(r, i);
|
|
3780
|
-
}
|
|
3781
|
-
await c(), T.value === "bookmark" ? w.value?.focus() : _.value?.focus();
|
|
3782
|
-
} else M.value = !1, j.value = "";
|
|
3783
|
-
});
|
|
3784
|
-
function L() {
|
|
3785
|
-
h("close");
|
|
3786
|
-
}
|
|
3787
|
-
function R() {
|
|
3788
|
-
if (T.value === "bookmark") {
|
|
3789
|
-
if (!D.value) return;
|
|
3790
|
-
h("submit", {
|
|
3791
|
-
bookmark: D.value,
|
|
3792
|
-
displayText: O.value,
|
|
3793
|
-
tooltip: k.value
|
|
3794
|
-
}), L();
|
|
3795
|
-
return;
|
|
3796
|
-
}
|
|
3797
|
-
if (M.value = !0, !F(E.value)) {
|
|
3798
|
-
j.value = E.value.trim() ? s("dialogs.hyperlink.invalidUrl") : s("dialogs.hyperlink.urlRequired");
|
|
3799
|
-
return;
|
|
3800
|
-
}
|
|
3801
|
-
h("submit", {
|
|
3802
|
-
url: I(E.value),
|
|
3803
|
-
displayText: O.value,
|
|
3804
|
-
tooltip: k.value
|
|
3805
|
-
}), L();
|
|
3806
|
-
}
|
|
3807
|
-
function z() {
|
|
3808
|
-
if (T.value === "url") {
|
|
3809
|
-
if (M.value = !0, !E.value.trim()) {
|
|
3810
|
-
j.value = "";
|
|
3811
|
-
return;
|
|
3812
|
-
}
|
|
3813
|
-
j.value = F(E.value) ? "" : s("dialogs.hyperlink.invalidUrl");
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3816
|
-
function B() {
|
|
3817
|
-
h("remove"), L();
|
|
3818
|
-
}
|
|
3819
|
-
return (t, o) => a.isOpen ? (u(), r("div", {
|
|
3820
|
-
key: 0,
|
|
3821
|
-
class: "dialog-overlay",
|
|
3822
|
-
onMousedown: C(L, ["self"])
|
|
3823
|
-
}, [i("div", {
|
|
3824
|
-
class: "dialog",
|
|
3825
|
-
onMousedown: o[6] ||= C(() => {}, ["stop"]),
|
|
3826
|
-
onKeydown: o[7] ||= C(() => {}, ["stop"])
|
|
3827
|
-
}, [i("div", Ft, [i("span", It, m(A.value ? g(s)("dialogs.hyperlink.titleEdit") : g(s)("dialogs.hyperlink.titleInsert")), 1), i("button", {
|
|
3828
|
-
class: "dialog__close",
|
|
3829
|
-
"aria-label": g(s)("common.closeDialog"),
|
|
3830
|
-
onClick: L
|
|
3831
|
-
}, " ✕ ", 8, Lt)]), i("div", Rt, [
|
|
3832
|
-
N.value.length > 0 ? (u(), r("div", zt, [i("button", {
|
|
3833
|
-
class: l(["link-tab", { active: T.value === "url" }]),
|
|
3834
|
-
role: "tab",
|
|
3835
|
-
"aria-selected": T.value === "url",
|
|
3836
|
-
onMousedown: o[0] ||= C((e) => T.value = "url", ["prevent"])
|
|
3837
|
-
}, m(g(s)("dialogs.hyperlink.tabWebAddress")), 43, Bt), i("button", {
|
|
3838
|
-
class: l(["link-tab", { active: T.value === "bookmark" }]),
|
|
3839
|
-
role: "tab",
|
|
3840
|
-
"aria-selected": T.value === "bookmark",
|
|
3841
|
-
onMousedown: o[1] ||= C((e) => T.value = "bookmark", ["prevent"])
|
|
3842
|
-
}, m(g(s)("dialogs.hyperlink.tabBookmark")), 43, Vt)])) : n("", !0),
|
|
3843
|
-
T.value === "url" ? (u(), r("div", Ht, [
|
|
3844
|
-
i("label", Ut, m(g(s)("dialogs.hyperlink.urlLabel")), 1),
|
|
3845
|
-
x(i("input", {
|
|
3846
|
-
ref_key: "urlInputRef",
|
|
3847
|
-
ref: _,
|
|
3848
|
-
"onUpdate:modelValue": o[2] ||= (e) => E.value = e,
|
|
3849
|
-
class: l(["field__input", { "field__input--error": M.value && !!j.value }]),
|
|
3850
|
-
placeholder: g(s)("dialogs.hyperlink.urlPlaceholder"),
|
|
3851
|
-
"aria-invalid": M.value && !!j.value,
|
|
3852
|
-
onKeydown: S(C(R, ["prevent"]), ["enter"]),
|
|
3853
|
-
onBlur: z
|
|
3854
|
-
}, null, 42, Wt), [[y, E.value]]),
|
|
3855
|
-
M.value && j.value ? (u(), r("div", Gt, m(j.value), 1)) : (u(), r("div", Kt, m(g(s)("dialogs.hyperlink.urlHint")), 1))
|
|
3856
|
-
])) : (u(), r("div", qt, [i("label", Jt, m(g(s)("dialogs.hyperlink.bookmarkLabel")), 1), x(i("select", {
|
|
3857
|
-
ref_key: "bookmarkSelectRef",
|
|
3858
|
-
ref: w,
|
|
3859
|
-
"onUpdate:modelValue": o[3] ||= (e) => D.value = e,
|
|
3860
|
-
class: "field__input",
|
|
3861
|
-
onKeydown: S(C(R, ["prevent"]), ["enter"])
|
|
3862
|
-
}, [i("option", Xt, m(g(s)("dialogs.hyperlink.bookmarkPlaceholder")), 1), (u(!0), r(e, null, p(N.value, (e) => (u(), r("option", {
|
|
3863
|
-
key: e.name,
|
|
3864
|
-
value: e.name
|
|
3865
|
-
}, m(e.label || e.name), 9, Zt))), 128))], 40, Yt), [[v, D.value]])])),
|
|
3866
|
-
i("div", Qt, [
|
|
3867
|
-
i("label", $t, m(g(s)("dialogs.hyperlink.displayTextLabel")), 1),
|
|
3868
|
-
x(i("input", {
|
|
3869
|
-
"onUpdate:modelValue": o[4] ||= (e) => O.value = e,
|
|
3870
|
-
class: "field__input",
|
|
3871
|
-
placeholder: g(s)("dialogs.hyperlink.displayTextPlaceholder")
|
|
3872
|
-
}, null, 8, en), [[y, O.value]]),
|
|
3873
|
-
i("div", tn, m(g(s)("dialogs.hyperlink.displayTextHint")), 1)
|
|
3874
|
-
]),
|
|
3875
|
-
i("div", nn, [i("label", rn, m(g(s)("dialogs.hyperlink.tooltipLabel")), 1), x(i("input", {
|
|
3876
|
-
"onUpdate:modelValue": o[5] ||= (e) => k.value = e,
|
|
3877
|
-
class: "field__input",
|
|
3878
|
-
placeholder: g(s)("dialogs.hyperlink.tooltipPlaceholder")
|
|
3879
|
-
}, null, 8, an), [[y, k.value]])]),
|
|
3880
|
-
i("div", on, [
|
|
3881
|
-
A.value ? (u(), r("button", {
|
|
3882
|
-
key: 0,
|
|
3883
|
-
class: "dialog__btn dialog__btn--danger",
|
|
3884
|
-
onMousedown: C(B, ["prevent"])
|
|
3885
|
-
}, m(g(s)("dialogs.hyperlink.removeLink")), 33)) : n("", !0),
|
|
3886
|
-
o[8] ||= i("div", { style: { flex: "1" } }, null, -1),
|
|
3887
|
-
i("button", {
|
|
3888
|
-
class: "dialog__btn",
|
|
3889
|
-
onClick: L
|
|
3890
|
-
}, m(g(s)("common.cancel")), 1),
|
|
3891
|
-
i("button", {
|
|
3892
|
-
class: "dialog__btn dialog__btn--primary",
|
|
3893
|
-
onMousedown: C(R, ["prevent"]),
|
|
3894
|
-
disabled: !P.value
|
|
3895
|
-
}, m(A.value ? g(s)("common.update") : g(s)("common.insert")), 41, sn)
|
|
3896
|
-
])
|
|
3897
|
-
])], 32)], 32)) : n("", !0);
|
|
3898
|
-
}
|
|
3899
|
-
}), [["__scopeId", "data-v-933171e9"]]), ln = { class: "dialog__header" }, un = { class: "dialog__title" }, dn = ["aria-label"], fn = { class: "dialog__body" }, pn = { class: "field" }, mn = { class: "field__label" }, hn = ["placeholder"], gn = { class: "field" }, _n = { class: "field__label" }, vn = { value: "inline" }, yn = { value: "wrapRight" }, bn = { value: "wrapLeft" }, xn = { value: "topAndBottom" }, Sn = { value: "behind" }, Cn = { value: "inFront" }, wn = { class: "field" }, Tn = { class: "field__label" }, En = { class: "field-row" }, Dn = { value: "solid" }, On = { value: "dashed" }, kn = { value: "dotted" }, An = { value: "double" }, jn = { class: "field" }, Mn = { class: "field__label" }, Nn = { class: "field-row" }, Pn = ["value"], Fn = ["value"], In = { class: "field__checkbox" }, Ln = { class: "dialog__actions" }, Rn = /*#__PURE__*/ O(/* @__PURE__ */ o({
|
|
3900
|
-
__name: "ImagePropertiesDialog",
|
|
3901
|
-
props: {
|
|
3902
|
-
isOpen: { type: Boolean },
|
|
3903
|
-
view: {},
|
|
3904
|
-
pmPos: {}
|
|
3905
|
-
},
|
|
3906
|
-
emits: ["close"],
|
|
3907
|
-
setup(e, { emit: t }) {
|
|
3908
|
-
let { t: o } = $(), s = e, c = t, l = f(""), d = f("inline"), p = f(0), h = f("solid"), S = f("#000000"), w = f(200), T = f(150), E = f(!0), D = 1;
|
|
3909
|
-
b(() => s.isOpen, (e) => {
|
|
3910
|
-
if (!(!e || !s.view || s.pmPos === null)) try {
|
|
3911
|
-
let e = s.view.state.doc.nodeAt(s.pmPos);
|
|
3912
|
-
if (e && e.type.name === "image") {
|
|
3913
|
-
let t = e.attrs;
|
|
3914
|
-
l.value = t.alt || "", p.value = t.borderWidth || 0, h.value = t.borderStyle || "solid", S.value = t.borderColor || "#000000", w.value = t.width || 200, T.value = t.height || 150, D = w.value / (T.value || 1), E.value = !0;
|
|
3915
|
-
let n = t.displayMode, r = t.cssFloat, i = t.wrapType;
|
|
3916
|
-
n === "float" && r === "left" ? d.value = "wrapRight" : n === "float" && r === "right" ? d.value = "wrapLeft" : n === "block" ? d.value = "topAndBottom" : i === "behind" ? d.value = "behind" : i === "inFront" ? d.value = "inFront" : d.value = "inline";
|
|
3917
|
-
}
|
|
3918
|
-
} catch {}
|
|
3919
|
-
});
|
|
3920
|
-
function O(e) {
|
|
3921
|
-
if (!(e.target instanceof HTMLInputElement)) return;
|
|
3922
|
-
let t = Number(e.target.value);
|
|
3923
|
-
isNaN(t) || t < 1 || (w.value = t, E.value && D > 0 && (T.value = Math.round(t / D)));
|
|
3924
|
-
}
|
|
3925
|
-
function k(e) {
|
|
3926
|
-
if (!(e.target instanceof HTMLInputElement)) return;
|
|
3927
|
-
let t = Number(e.target.value);
|
|
3928
|
-
isNaN(t) || t < 1 || (T.value = t, E.value && D > 0 && (w.value = Math.round(t * D)));
|
|
3929
|
-
}
|
|
3930
|
-
function A() {
|
|
3931
|
-
c("close");
|
|
3932
|
-
}
|
|
3933
|
-
function j() {
|
|
3934
|
-
let e = s.view;
|
|
3935
|
-
if (!(!e || s.pmPos === null)) {
|
|
3936
|
-
try {
|
|
3937
|
-
let t = e.state.doc.nodeAt(s.pmPos);
|
|
3938
|
-
if (!t || t.type.name !== "image") return;
|
|
3939
|
-
let n = "inline", r = null, i = "inline";
|
|
3940
|
-
switch (d.value) {
|
|
3941
|
-
case "wrapRight":
|
|
3942
|
-
n = "float", r = "left", i = "square";
|
|
3943
|
-
break;
|
|
3944
|
-
case "wrapLeft":
|
|
3945
|
-
n = "float", r = "right", i = "square";
|
|
3946
|
-
break;
|
|
3947
|
-
case "topAndBottom":
|
|
3948
|
-
n = "block", i = "topAndBottom";
|
|
3949
|
-
break;
|
|
3950
|
-
case "behind":
|
|
3951
|
-
n = "float", r = "none", i = "behind";
|
|
3952
|
-
break;
|
|
3953
|
-
case "inFront":
|
|
3954
|
-
n = "float", r = "none", i = "inFront";
|
|
3955
|
-
break;
|
|
3956
|
-
default:
|
|
3957
|
-
n = "inline", i = "inline";
|
|
3958
|
-
break;
|
|
3959
|
-
}
|
|
3960
|
-
let a = e.state.tr.setNodeMarkup(s.pmPos, void 0, {
|
|
3961
|
-
...t.attrs,
|
|
3962
|
-
alt: l.value,
|
|
3963
|
-
width: w.value,
|
|
3964
|
-
height: T.value,
|
|
3965
|
-
borderWidth: p.value || void 0,
|
|
3966
|
-
borderStyle: p.value > 0 ? h.value : void 0,
|
|
3967
|
-
borderColor: p.value > 0 ? S.value : void 0,
|
|
3968
|
-
displayMode: n,
|
|
3969
|
-
cssFloat: r,
|
|
3970
|
-
wrapType: i
|
|
3971
|
-
});
|
|
3972
|
-
e.dispatch(a);
|
|
3973
|
-
} catch {}
|
|
3974
|
-
A();
|
|
3975
|
-
}
|
|
3976
|
-
}
|
|
3977
|
-
return (t, s) => e.isOpen ? (u(), r("div", {
|
|
3978
|
-
key: 0,
|
|
3979
|
-
class: "dialog-overlay",
|
|
3980
|
-
onMousedown: C(A, ["self"])
|
|
3981
|
-
}, [i("div", {
|
|
3982
|
-
class: "dialog",
|
|
3983
|
-
onMousedown: s[6] ||= C(() => {}, ["stop"]),
|
|
3984
|
-
onKeydown: s[7] ||= C(() => {}, ["stop"])
|
|
3985
|
-
}, [i("div", ln, [i("span", un, m(g(o)("dialogs.imageProperties.title")), 1), i("button", {
|
|
3986
|
-
class: "dialog__close",
|
|
3987
|
-
"aria-label": g(o)("common.closeDialog"),
|
|
3988
|
-
onClick: A
|
|
3989
|
-
}, " ✕ ", 8, dn)]), i("div", fn, [
|
|
3990
|
-
i("div", pn, [i("label", mn, m(g(o)("dialogs.imageProperties.altText")), 1), x(i("textarea", {
|
|
3991
|
-
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
3992
|
-
class: "field__textarea",
|
|
3993
|
-
placeholder: g(o)("dialogs.imageProperties.altTextPlaceholder"),
|
|
3994
|
-
rows: "2"
|
|
3995
|
-
}, null, 8, hn), [[y, l.value]])]),
|
|
3996
|
-
i("div", gn, [i("label", _n, m(g(o)("dialogs.imageProperties.textWrapping")), 1), x(i("select", {
|
|
3997
|
-
"onUpdate:modelValue": s[1] ||= (e) => d.value = e,
|
|
3998
|
-
class: "field__select"
|
|
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"
|
|
4028
|
-
}, [
|
|
4029
|
-
i("option", Dn, m(g(o)("dialogs.imageProperties.borderStyles.solid")), 1),
|
|
4030
|
-
i("option", On, m(g(o)("dialogs.imageProperties.borderStyles.dashed")), 1),
|
|
4031
|
-
i("option", kn, m(g(o)("dialogs.imageProperties.borderStyles.dotted")), 1),
|
|
4032
|
-
i("option", An, m(g(o)("dialogs.imageProperties.borderStyles.double")), 1)
|
|
4033
|
-
], 512), [[v, h.value]])]),
|
|
4034
|
-
i("label", null, [a(m(g(o)("dialogs.imageProperties.color")) + ": ", 1), x(i("input", {
|
|
4035
|
-
"onUpdate:modelValue": s[4] ||= (e) => S.value = e,
|
|
4036
|
-
type: "color",
|
|
4037
|
-
class: "field__color"
|
|
4038
|
-
}, null, 512), [[y, S.value]])])
|
|
4039
|
-
])]),
|
|
4040
|
-
i("div", jn, [
|
|
4041
|
-
i("label", Mn, m(g(o)("dialogs.imageProperties.dimensions")), 1),
|
|
4042
|
-
i("div", Nn, [i("label", null, [
|
|
4043
|
-
a(m(g(o)("dialogs.imageProperties.widthLabel")) + " ", 1),
|
|
4044
|
-
i("input", {
|
|
4045
|
-
value: w.value,
|
|
4046
|
-
type: "number",
|
|
4047
|
-
min: "1",
|
|
4048
|
-
max: "2000",
|
|
4049
|
-
class: "field__input--small",
|
|
4050
|
-
onInput: O
|
|
4051
|
-
}, null, 40, Pn),
|
|
4052
|
-
a(m(g(o)("common.px")), 1)
|
|
4053
|
-
]), i("label", null, [
|
|
4054
|
-
a(m(g(o)("dialogs.imageProperties.heightLabel")) + " ", 1),
|
|
4055
|
-
i("input", {
|
|
4056
|
-
value: T.value,
|
|
4057
|
-
type: "number",
|
|
4058
|
-
min: "1",
|
|
4059
|
-
max: "2000",
|
|
4060
|
-
class: "field__input--small",
|
|
4061
|
-
onInput: k
|
|
4062
|
-
}, null, 40, Fn),
|
|
4063
|
-
a(m(g(o)("common.px")), 1)
|
|
4064
|
-
])]),
|
|
4065
|
-
i("label", In, [x(i("input", {
|
|
4066
|
-
"onUpdate:modelValue": s[5] ||= (e) => E.value = e,
|
|
4067
|
-
type: "checkbox"
|
|
4068
|
-
}, null, 512), [[_, E.value]]), a(" " + m(g(o)("dialogs.imageProperties.lockAspectRatio")), 1)])
|
|
4069
|
-
]),
|
|
4070
|
-
i("div", Ln, [i("button", {
|
|
4071
|
-
class: "dialog__btn",
|
|
4072
|
-
onClick: A
|
|
4073
|
-
}, m(g(o)("common.cancel")), 1), i("button", {
|
|
4074
|
-
class: "dialog__btn dialog__btn--primary",
|
|
4075
|
-
onMousedown: C(j, ["prevent"])
|
|
4076
|
-
}, m(g(o)("common.apply")), 33)])
|
|
4077
|
-
])], 32)], 32)) : n("", !0);
|
|
4078
|
-
}
|
|
4079
|
-
}), [["__scopeId", "data-v-344c90fe"]]), zn = { class: "dialog__header" }, Bn = { class: "dialog__title" }, Vn = ["title"], Hn = { class: "dialog__body" }, Un = ["placeholder"], Wn = {
|
|
4080
|
-
key: 0,
|
|
4081
|
-
class: "symbol-tabs"
|
|
4082
|
-
}, Gn = ["onMousedown"], Kn = { class: "symbol-grid" }, qn = [
|
|
4083
|
-
"title",
|
|
4084
|
-
"onClick",
|
|
4085
|
-
"onDblclick"
|
|
4086
|
-
], Jn = {
|
|
4087
|
-
key: 0,
|
|
4088
|
-
class: "symbol-empty"
|
|
4089
|
-
}, Yn = {
|
|
4090
|
-
key: 1,
|
|
4091
|
-
class: "symbol-preview"
|
|
4092
|
-
}, Xn = { class: "symbol-preview__char" }, Zn = { class: "symbol-preview__info" }, Qn = {
|
|
4093
|
-
key: 2,
|
|
4094
|
-
class: "symbol-recent"
|
|
4095
|
-
}, $n = { class: "symbol-recent__label" }, er = ["onDblclick", "onClick"], tr = { class: "dialog__actions" }, nr = ["disabled"], rr = /*#__PURE__*/ O(/* @__PURE__ */ o({
|
|
4096
|
-
__name: "InsertSymbolDialog",
|
|
4097
|
-
props: { isOpen: { type: Boolean } },
|
|
4098
|
-
emits: ["close", "insert"],
|
|
4099
|
-
setup(a, { emit: o }) {
|
|
4100
|
-
let { t: s } = $(), d = a, h = o, _ = f(null), v = f(""), w = f("Common"), T = f(""), E = f([]), D = [
|
|
4101
|
-
{
|
|
4102
|
-
name: "Common",
|
|
4103
|
-
nameKey: "dialogs.insertSymbol.categories.common",
|
|
4104
|
-
symbols: [
|
|
4105
|
-
{
|
|
4106
|
-
char: "©",
|
|
4107
|
-
name: "Copyright"
|
|
4108
|
-
},
|
|
4109
|
-
{
|
|
4110
|
-
char: "®",
|
|
4111
|
-
name: "Registered"
|
|
4112
|
-
},
|
|
4113
|
-
{
|
|
4114
|
-
char: "™",
|
|
4115
|
-
name: "Trademark"
|
|
4116
|
-
},
|
|
4117
|
-
{
|
|
4118
|
-
char: "•",
|
|
4119
|
-
name: "Bullet"
|
|
4120
|
-
},
|
|
4121
|
-
{
|
|
4122
|
-
char: "…",
|
|
4123
|
-
name: "Ellipsis"
|
|
4124
|
-
},
|
|
4125
|
-
{
|
|
4126
|
-
char: "—",
|
|
4127
|
-
name: "Em dash"
|
|
4128
|
-
},
|
|
4129
|
-
{
|
|
4130
|
-
char: "–",
|
|
4131
|
-
name: "En dash"
|
|
4132
|
-
},
|
|
4133
|
-
{
|
|
4134
|
-
char: "±",
|
|
4135
|
-
name: "Plus-minus"
|
|
4136
|
-
},
|
|
4137
|
-
{
|
|
4138
|
-
char: "×",
|
|
4139
|
-
name: "Multiply"
|
|
4140
|
-
},
|
|
4141
|
-
{
|
|
4142
|
-
char: "÷",
|
|
4143
|
-
name: "Divide"
|
|
4144
|
-
},
|
|
4145
|
-
{
|
|
4146
|
-
char: "≠",
|
|
4147
|
-
name: "Not equal"
|
|
4148
|
-
},
|
|
4149
|
-
{
|
|
4150
|
-
char: "≈",
|
|
4151
|
-
name: "Approximately"
|
|
4152
|
-
},
|
|
4153
|
-
{
|
|
4154
|
-
char: "≤",
|
|
4155
|
-
name: "Less or equal"
|
|
4156
|
-
},
|
|
4157
|
-
{
|
|
4158
|
-
char: "≥",
|
|
4159
|
-
name: "Greater or equal"
|
|
4160
|
-
},
|
|
4161
|
-
{
|
|
4162
|
-
char: "°",
|
|
4163
|
-
name: "Degree"
|
|
4164
|
-
},
|
|
4165
|
-
{
|
|
4166
|
-
char: "µ",
|
|
4167
|
-
name: "Micro"
|
|
4168
|
-
},
|
|
4169
|
-
{
|
|
4170
|
-
char: "¶",
|
|
4171
|
-
name: "Pilcrow"
|
|
4172
|
-
},
|
|
4173
|
-
{
|
|
4174
|
-
char: "§",
|
|
4175
|
-
name: "Section"
|
|
4176
|
-
},
|
|
4177
|
-
{
|
|
4178
|
-
char: "†",
|
|
4179
|
-
name: "Dagger"
|
|
4180
|
-
},
|
|
4181
|
-
{
|
|
4182
|
-
char: "‡",
|
|
4183
|
-
name: "Double dagger"
|
|
4184
|
-
},
|
|
4185
|
-
{
|
|
4186
|
-
char: "¿",
|
|
4187
|
-
name: "Inverted question"
|
|
4188
|
-
},
|
|
4189
|
-
{
|
|
4190
|
-
char: "¡",
|
|
4191
|
-
name: "Inverted exclamation"
|
|
4192
|
-
},
|
|
4193
|
-
{
|
|
4194
|
-
char: "‰",
|
|
4195
|
-
name: "Per mille"
|
|
4196
|
-
},
|
|
4197
|
-
{
|
|
4198
|
-
char: "∞",
|
|
4199
|
-
name: "Infinity"
|
|
4200
|
-
}
|
|
4201
|
-
]
|
|
4202
|
-
},
|
|
4203
|
-
{
|
|
4204
|
-
name: "Arrows",
|
|
4205
|
-
nameKey: "dialogs.insertSymbol.categories.arrows",
|
|
4206
|
-
symbols: [
|
|
4207
|
-
{
|
|
4208
|
-
char: "←",
|
|
4209
|
-
name: "Left"
|
|
4210
|
-
},
|
|
4211
|
-
{
|
|
4212
|
-
char: "→",
|
|
4213
|
-
name: "Right"
|
|
4214
|
-
},
|
|
4215
|
-
{
|
|
4216
|
-
char: "↑",
|
|
4217
|
-
name: "Up"
|
|
4218
|
-
},
|
|
4219
|
-
{
|
|
4220
|
-
char: "↓",
|
|
4221
|
-
name: "Down"
|
|
4222
|
-
},
|
|
4223
|
-
{
|
|
4224
|
-
char: "↔",
|
|
4225
|
-
name: "Left-right"
|
|
4226
|
-
},
|
|
4227
|
-
{
|
|
4228
|
-
char: "↕",
|
|
4229
|
-
name: "Up-down"
|
|
4230
|
-
},
|
|
4231
|
-
{
|
|
4232
|
-
char: "⇐",
|
|
4233
|
-
name: "Double left"
|
|
4234
|
-
},
|
|
4235
|
-
{
|
|
4236
|
-
char: "⇒",
|
|
4237
|
-
name: "Double right"
|
|
4238
|
-
},
|
|
4239
|
-
{
|
|
4240
|
-
char: "⇑",
|
|
4241
|
-
name: "Double up"
|
|
4242
|
-
},
|
|
4243
|
-
{
|
|
4244
|
-
char: "⇓",
|
|
4245
|
-
name: "Double down"
|
|
4246
|
-
},
|
|
4247
|
-
{
|
|
4248
|
-
char: "⇔",
|
|
4249
|
-
name: "Double left-right"
|
|
4250
|
-
},
|
|
4251
|
-
{
|
|
4252
|
-
char: "➡",
|
|
4253
|
-
name: "Heavy right"
|
|
4254
|
-
},
|
|
4255
|
-
{
|
|
4256
|
-
char: "↩",
|
|
4257
|
-
name: "Return"
|
|
4258
|
-
},
|
|
4259
|
-
{
|
|
4260
|
-
char: "↪",
|
|
4261
|
-
name: "Curved right"
|
|
4262
|
-
},
|
|
4263
|
-
{
|
|
4264
|
-
char: "↻",
|
|
4265
|
-
name: "Clockwise"
|
|
4266
|
-
},
|
|
4267
|
-
{
|
|
4268
|
-
char: "↺",
|
|
4269
|
-
name: "Counter-clockwise"
|
|
4270
|
-
}
|
|
4271
|
-
]
|
|
4272
|
-
},
|
|
4273
|
-
{
|
|
4274
|
-
name: "Math",
|
|
4275
|
-
nameKey: "dialogs.insertSymbol.categories.math",
|
|
4276
|
-
symbols: [
|
|
4277
|
-
{
|
|
4278
|
-
char: "∑",
|
|
4279
|
-
name: "Summation"
|
|
4280
|
-
},
|
|
4281
|
-
{
|
|
4282
|
-
char: "∏",
|
|
4283
|
-
name: "Product"
|
|
4284
|
-
},
|
|
4285
|
-
{
|
|
4286
|
-
char: "∫",
|
|
4287
|
-
name: "Integral"
|
|
4288
|
-
},
|
|
4289
|
-
{
|
|
4290
|
-
char: "√",
|
|
4291
|
-
name: "Square root"
|
|
4292
|
-
},
|
|
4293
|
-
{
|
|
4294
|
-
char: "∂",
|
|
4295
|
-
name: "Partial diff"
|
|
4296
|
-
},
|
|
4297
|
-
{
|
|
4298
|
-
char: "∇",
|
|
4299
|
-
name: "Nabla"
|
|
4300
|
-
},
|
|
4301
|
-
{
|
|
4302
|
-
char: "∈",
|
|
4303
|
-
name: "Element of"
|
|
4304
|
-
},
|
|
4305
|
-
{
|
|
4306
|
-
char: "∉",
|
|
4307
|
-
name: "Not element"
|
|
4308
|
-
},
|
|
4309
|
-
{
|
|
4310
|
-
char: "⊂",
|
|
4311
|
-
name: "Subset"
|
|
4312
|
-
},
|
|
4313
|
-
{
|
|
4314
|
-
char: "⊃",
|
|
4315
|
-
name: "Superset"
|
|
4316
|
-
},
|
|
4317
|
-
{
|
|
4318
|
-
char: "∪",
|
|
4319
|
-
name: "Union"
|
|
4320
|
-
},
|
|
4321
|
-
{
|
|
4322
|
-
char: "∩",
|
|
4323
|
-
name: "Intersection"
|
|
4324
|
-
},
|
|
4325
|
-
{
|
|
4326
|
-
char: "∧",
|
|
4327
|
-
name: "And"
|
|
4328
|
-
},
|
|
4329
|
-
{
|
|
4330
|
-
char: "∨",
|
|
4331
|
-
name: "Or"
|
|
4332
|
-
},
|
|
4333
|
-
{
|
|
4334
|
-
char: "¬",
|
|
4335
|
-
name: "Not"
|
|
4336
|
-
},
|
|
4337
|
-
{
|
|
4338
|
-
char: "∀",
|
|
4339
|
-
name: "For all"
|
|
4340
|
-
},
|
|
4341
|
-
{
|
|
4342
|
-
char: "∃",
|
|
4343
|
-
name: "Exists"
|
|
4344
|
-
},
|
|
4345
|
-
{
|
|
4346
|
-
char: "∅",
|
|
4347
|
-
name: "Empty set"
|
|
4348
|
-
},
|
|
4349
|
-
{
|
|
4350
|
-
char: "∝",
|
|
4351
|
-
name: "Proportional"
|
|
4352
|
-
},
|
|
4353
|
-
{
|
|
4354
|
-
char: "∠",
|
|
4355
|
-
name: "Angle"
|
|
4356
|
-
}
|
|
4357
|
-
]
|
|
4358
|
-
},
|
|
4359
|
-
{
|
|
4360
|
-
name: "Greek",
|
|
4361
|
-
nameKey: "dialogs.insertSymbol.categories.greek",
|
|
4362
|
-
symbols: [
|
|
4363
|
-
{
|
|
4364
|
-
char: "α",
|
|
4365
|
-
name: "alpha"
|
|
4366
|
-
},
|
|
4367
|
-
{
|
|
4368
|
-
char: "β",
|
|
4369
|
-
name: "beta"
|
|
4370
|
-
},
|
|
4371
|
-
{
|
|
4372
|
-
char: "γ",
|
|
4373
|
-
name: "gamma"
|
|
4374
|
-
},
|
|
4375
|
-
{
|
|
4376
|
-
char: "δ",
|
|
4377
|
-
name: "delta"
|
|
4378
|
-
},
|
|
4379
|
-
{
|
|
4380
|
-
char: "ε",
|
|
4381
|
-
name: "epsilon"
|
|
4382
|
-
},
|
|
4383
|
-
{
|
|
4384
|
-
char: "ζ",
|
|
4385
|
-
name: "zeta"
|
|
4386
|
-
},
|
|
4387
|
-
{
|
|
4388
|
-
char: "η",
|
|
4389
|
-
name: "eta"
|
|
4390
|
-
},
|
|
4391
|
-
{
|
|
4392
|
-
char: "θ",
|
|
4393
|
-
name: "theta"
|
|
4394
|
-
},
|
|
4395
|
-
{
|
|
4396
|
-
char: "λ",
|
|
4397
|
-
name: "lambda"
|
|
4398
|
-
},
|
|
4399
|
-
{
|
|
4400
|
-
char: "μ",
|
|
4401
|
-
name: "mu"
|
|
4402
|
-
},
|
|
4403
|
-
{
|
|
4404
|
-
char: "π",
|
|
4405
|
-
name: "pi"
|
|
4406
|
-
},
|
|
4407
|
-
{
|
|
4408
|
-
char: "ρ",
|
|
4409
|
-
name: "rho"
|
|
4410
|
-
},
|
|
4411
|
-
{
|
|
4412
|
-
char: "σ",
|
|
4413
|
-
name: "sigma"
|
|
4414
|
-
},
|
|
4415
|
-
{
|
|
4416
|
-
char: "τ",
|
|
4417
|
-
name: "tau"
|
|
4418
|
-
},
|
|
4419
|
-
{
|
|
4420
|
-
char: "φ",
|
|
4421
|
-
name: "phi"
|
|
4422
|
-
},
|
|
4423
|
-
{
|
|
4424
|
-
char: "ψ",
|
|
4425
|
-
name: "psi"
|
|
4426
|
-
},
|
|
4427
|
-
{
|
|
4428
|
-
char: "ω",
|
|
4429
|
-
name: "omega"
|
|
4430
|
-
},
|
|
4431
|
-
{
|
|
4432
|
-
char: "Δ",
|
|
4433
|
-
name: "Delta"
|
|
4434
|
-
},
|
|
4435
|
-
{
|
|
4436
|
-
char: "Σ",
|
|
4437
|
-
name: "Sigma"
|
|
4438
|
-
},
|
|
4439
|
-
{
|
|
4440
|
-
char: "Ω",
|
|
4441
|
-
name: "Omega"
|
|
4442
|
-
},
|
|
4443
|
-
{
|
|
4444
|
-
char: "Π",
|
|
4445
|
-
name: "Pi"
|
|
4446
|
-
},
|
|
4447
|
-
{
|
|
4448
|
-
char: "Φ",
|
|
4449
|
-
name: "Phi"
|
|
4450
|
-
},
|
|
4451
|
-
{
|
|
4452
|
-
char: "Ψ",
|
|
4453
|
-
name: "Psi"
|
|
4454
|
-
},
|
|
4455
|
-
{
|
|
4456
|
-
char: "Θ",
|
|
4457
|
-
name: "Theta"
|
|
4458
|
-
}
|
|
4459
|
-
]
|
|
4460
|
-
},
|
|
4461
|
-
{
|
|
4462
|
-
name: "Currency",
|
|
4463
|
-
nameKey: "dialogs.insertSymbol.categories.currency",
|
|
4464
|
-
symbols: [
|
|
4465
|
-
{
|
|
4466
|
-
char: "$",
|
|
4467
|
-
name: "Dollar"
|
|
4468
|
-
},
|
|
4469
|
-
{
|
|
4470
|
-
char: "€",
|
|
4471
|
-
name: "Euro"
|
|
4472
|
-
},
|
|
4473
|
-
{
|
|
4474
|
-
char: "£",
|
|
4475
|
-
name: "Pound"
|
|
4476
|
-
},
|
|
4477
|
-
{
|
|
4478
|
-
char: "¥",
|
|
4479
|
-
name: "Yen"
|
|
4480
|
-
},
|
|
4481
|
-
{
|
|
4482
|
-
char: "₹",
|
|
4483
|
-
name: "Rupee"
|
|
4484
|
-
},
|
|
4485
|
-
{
|
|
4486
|
-
char: "₽",
|
|
4487
|
-
name: "Ruble"
|
|
4488
|
-
},
|
|
4489
|
-
{
|
|
4490
|
-
char: "₩",
|
|
4491
|
-
name: "Won"
|
|
4492
|
-
},
|
|
4493
|
-
{
|
|
4494
|
-
char: "₿",
|
|
4495
|
-
name: "Bitcoin"
|
|
4496
|
-
},
|
|
4497
|
-
{
|
|
4498
|
-
char: "¢",
|
|
4499
|
-
name: "Cent"
|
|
4500
|
-
},
|
|
4501
|
-
{
|
|
4502
|
-
char: "₫",
|
|
4503
|
-
name: "Dong"
|
|
4504
|
-
},
|
|
4505
|
-
{
|
|
4506
|
-
char: "₺",
|
|
4507
|
-
name: "Lira"
|
|
4508
|
-
},
|
|
4509
|
-
{
|
|
4510
|
-
char: "₴",
|
|
4511
|
-
name: "Hryvnia"
|
|
4512
|
-
}
|
|
4513
|
-
]
|
|
4514
|
-
},
|
|
4515
|
-
{
|
|
4516
|
-
name: "Shapes",
|
|
4517
|
-
nameKey: "dialogs.insertSymbol.categories.shapes",
|
|
4518
|
-
symbols: [
|
|
4519
|
-
{
|
|
4520
|
-
char: "■",
|
|
4521
|
-
name: "Black square"
|
|
4522
|
-
},
|
|
4523
|
-
{
|
|
4524
|
-
char: "□",
|
|
4525
|
-
name: "White square"
|
|
4526
|
-
},
|
|
4527
|
-
{
|
|
4528
|
-
char: "▲",
|
|
4529
|
-
name: "Up triangle"
|
|
4530
|
-
},
|
|
4531
|
-
{
|
|
4532
|
-
char: "▼",
|
|
4533
|
-
name: "Down triangle"
|
|
4534
|
-
},
|
|
4535
|
-
{
|
|
4536
|
-
char: "●",
|
|
4537
|
-
name: "Black circle"
|
|
4538
|
-
},
|
|
4539
|
-
{
|
|
4540
|
-
char: "○",
|
|
4541
|
-
name: "White circle"
|
|
4542
|
-
},
|
|
4543
|
-
{
|
|
4544
|
-
char: "◆",
|
|
4545
|
-
name: "Black diamond"
|
|
4546
|
-
},
|
|
4547
|
-
{
|
|
4548
|
-
char: "◇",
|
|
4549
|
-
name: "White diamond"
|
|
4550
|
-
},
|
|
4551
|
-
{
|
|
4552
|
-
char: "★",
|
|
4553
|
-
name: "Black star"
|
|
4554
|
-
},
|
|
4555
|
-
{
|
|
4556
|
-
char: "☆",
|
|
4557
|
-
name: "White star"
|
|
4558
|
-
},
|
|
4559
|
-
{
|
|
4560
|
-
char: "♠",
|
|
4561
|
-
name: "Spade"
|
|
4562
|
-
},
|
|
4563
|
-
{
|
|
4564
|
-
char: "♥",
|
|
4565
|
-
name: "Heart"
|
|
4566
|
-
},
|
|
4567
|
-
{
|
|
4568
|
-
char: "♦",
|
|
4569
|
-
name: "Diamond"
|
|
4570
|
-
},
|
|
4571
|
-
{
|
|
4572
|
-
char: "♣",
|
|
4573
|
-
name: "Club"
|
|
4574
|
-
},
|
|
4575
|
-
{
|
|
4576
|
-
char: "✓",
|
|
4577
|
-
name: "Check mark"
|
|
4578
|
-
},
|
|
4579
|
-
{
|
|
4580
|
-
char: "✗",
|
|
4581
|
-
name: "Ballot X"
|
|
4582
|
-
},
|
|
4583
|
-
{
|
|
4584
|
-
char: "✦",
|
|
4585
|
-
name: "Four pointed star"
|
|
4586
|
-
},
|
|
4587
|
-
{
|
|
4588
|
-
char: "◌",
|
|
4589
|
-
name: "Dotted circle"
|
|
4590
|
-
}
|
|
4591
|
-
]
|
|
4592
|
-
}
|
|
4593
|
-
], O = t(() => {
|
|
4594
|
-
let e = [];
|
|
4595
|
-
for (let t of D) for (let n of t.symbols) e.push({
|
|
4596
|
-
...n,
|
|
4597
|
-
category: t.name
|
|
4598
|
-
});
|
|
4599
|
-
return e;
|
|
4600
|
-
}), k = t(() => {
|
|
4601
|
-
if (v.value) {
|
|
4602
|
-
let e = v.value.toLowerCase();
|
|
4603
|
-
return O.value.filter((t) => t.name.toLowerCase().includes(e) || t.char === e);
|
|
4604
|
-
}
|
|
4605
|
-
let e = D.find((e) => e.name === w.value);
|
|
4606
|
-
return e ? e.symbols.map((t) => ({
|
|
4607
|
-
...t,
|
|
4608
|
-
category: e.name
|
|
4609
|
-
})) : [];
|
|
4610
|
-
});
|
|
4611
|
-
b(() => d.isOpen, async (e) => {
|
|
4612
|
-
e && (await c(), _.value?.focus());
|
|
4613
|
-
});
|
|
4614
|
-
function A() {
|
|
4615
|
-
h("close");
|
|
4616
|
-
}
|
|
4617
|
-
function j(e) {
|
|
4618
|
-
e && (E.value = [e, ...E.value.filter((t) => t !== e)].slice(0, 10), h("insert", e));
|
|
4619
|
-
}
|
|
4620
|
-
return (t, o) => a.isOpen ? (u(), r("div", {
|
|
4621
|
-
key: 0,
|
|
4622
|
-
class: "dialog-overlay",
|
|
4623
|
-
onMousedown: C(A, ["self"])
|
|
4624
|
-
}, [i("div", {
|
|
4625
|
-
class: "dialog symbol-dialog",
|
|
4626
|
-
onMousedown: o[2] ||= C(() => {}, ["stop"]),
|
|
4627
|
-
onKeydown: o[3] ||= C(() => {}, ["stop"])
|
|
4628
|
-
}, [i("div", zn, [i("span", Bn, m(g(s)("dialogs.insertSymbol.title")), 1), i("button", {
|
|
4629
|
-
class: "dialog__close",
|
|
4630
|
-
title: g(s)("common.closeDialog"),
|
|
4631
|
-
onClick: A
|
|
4632
|
-
}, "✕", 8, Vn)]), i("div", Hn, [
|
|
4633
|
-
x(i("input", {
|
|
4634
|
-
ref_key: "searchRef",
|
|
4635
|
-
ref: _,
|
|
4636
|
-
"onUpdate:modelValue": o[0] ||= (e) => v.value = e,
|
|
4637
|
-
class: "symbol-search",
|
|
4638
|
-
placeholder: g(s)("dialogs.insertSymbol.searchPlaceholder"),
|
|
4639
|
-
onKeydown: S(A, ["escape"])
|
|
4640
|
-
}, null, 40, Un), [[y, v.value]]),
|
|
4641
|
-
v.value ? n("", !0) : (u(), r("div", Wn, [(u(), r(e, null, p(D, (e) => i("button", {
|
|
4642
|
-
key: e.name,
|
|
4643
|
-
class: l(["symbol-tab", { active: w.value === e.name }]),
|
|
4644
|
-
onMousedown: C((t) => w.value = e.name, ["prevent"])
|
|
4645
|
-
}, m(g(s)(e.nameKey)), 43, Gn)), 64))])),
|
|
4646
|
-
i("div", Kn, [(u(!0), r(e, null, p(k.value, (e) => (u(), r("button", {
|
|
4647
|
-
key: e.char,
|
|
4648
|
-
class: l(["symbol-cell", { selected: T.value === e.char }]),
|
|
4649
|
-
title: e.name,
|
|
4650
|
-
onClick: (t) => T.value = e.char,
|
|
4651
|
-
onDblclick: (t) => j(e.char)
|
|
4652
|
-
}, m(e.char), 43, qn))), 128)), k.value.length === 0 ? (u(), r("div", Jn, m(v.value ? g(s)("dialogs.insertSymbol.noResults", { query: v.value }) : g(s)("dialogs.insertSymbol.noResultsEmpty")), 1)) : n("", !0)]),
|
|
4653
|
-
T.value ? (u(), r("div", Yn, [i("span", Xn, m(T.value), 1), i("span", Zn, "U+" + m(T.value.codePointAt(0)?.toString(16).toUpperCase().padStart(4, "0")), 1)])) : n("", !0),
|
|
4654
|
-
E.value.length > 0 && !v.value ? (u(), r("div", Qn, [i("div", $n, m(g(s)("dialogs.insertSymbol.recent")), 1), (u(!0), r(e, null, p(E.value, (e) => (u(), r("button", {
|
|
4655
|
-
key: e,
|
|
4656
|
-
class: "symbol-cell symbol-cell--small",
|
|
4657
|
-
onDblclick: (t) => j(e),
|
|
4658
|
-
onClick: (t) => T.value = e
|
|
4659
|
-
}, m(e), 41, er))), 128))])) : n("", !0),
|
|
4660
|
-
i("div", tr, [i("button", {
|
|
4661
|
-
class: "dialog__btn",
|
|
4662
|
-
onClick: A
|
|
4663
|
-
}, m(g(s)("common.cancel")), 1), i("button", {
|
|
4664
|
-
class: "dialog__btn dialog__btn--primary",
|
|
4665
|
-
onMousedown: o[1] ||= C((e) => j(T.value), ["prevent"]),
|
|
4666
|
-
disabled: !T.value
|
|
4667
|
-
}, m(g(s)("common.insert")), 41, nr)])
|
|
4668
|
-
])], 32)], 32)) : n("", !0);
|
|
4669
|
-
}
|
|
4670
|
-
}), [["__scopeId", "data-v-227ee4aa"]]), ir = ["aria-label"], ar = { class: "ps-header" }, or = { class: "ps-body" }, sr = { class: "ps-section-label" }, cr = { class: "ps-row" }, lr = { class: "ps-label" }, ur = ["value"], dr = ["value"], fr = {
|
|
4671
|
-
key: 0,
|
|
4672
|
-
value: -1
|
|
4673
|
-
}, pr = { class: "ps-row" }, mr = { class: "ps-label" }, hr = ["value"], gr = { value: "portrait" }, _r = { value: "landscape" }, vr = { class: "ps-section-label ps-section-label--spaced" }, yr = { class: "ps-row" }, br = { class: "ps-label" }, xr = { class: "ps-row" }, Sr = { class: "ps-label" }, Cr = { class: "ps-row" }, wr = { class: "ps-label" }, Tr = { class: "ps-row" }, Er = { class: "ps-label" }, Dr = { class: "ps-footer" }, Or = 12240, kr = 15840, Ar = 1440, jr = /*#__PURE__*/ O(/* @__PURE__ */ o({
|
|
4674
|
-
__name: "PageSetupDialog",
|
|
4675
|
-
props: {
|
|
4676
|
-
isOpen: { type: Boolean },
|
|
4677
|
-
sectionProperties: {}
|
|
4678
|
-
},
|
|
4679
|
-
emits: ["close", "apply"],
|
|
4680
|
-
setup(a, { emit: o }) {
|
|
4681
|
-
let { t: s } = $(), c = [
|
|
4682
|
-
{
|
|
4683
|
-
labelKey: "dialogs.pageSetup.pageSizes.letter",
|
|
4684
|
-
width: 12240,
|
|
4685
|
-
height: 15840
|
|
4686
|
-
},
|
|
4687
|
-
{
|
|
4688
|
-
labelKey: "dialogs.pageSetup.pageSizes.a4",
|
|
4689
|
-
width: 11906,
|
|
4690
|
-
height: 16838
|
|
4691
|
-
},
|
|
4692
|
-
{
|
|
4693
|
-
labelKey: "dialogs.pageSetup.pageSizes.legal",
|
|
4694
|
-
width: 12240,
|
|
4695
|
-
height: 20160
|
|
4696
|
-
},
|
|
4697
|
-
{
|
|
4698
|
-
labelKey: "dialogs.pageSetup.pageSizes.a3",
|
|
4699
|
-
width: 16838,
|
|
4700
|
-
height: 23811
|
|
4701
|
-
},
|
|
4702
|
-
{
|
|
4703
|
-
labelKey: "dialogs.pageSetup.pageSizes.a5",
|
|
4704
|
-
width: 8391,
|
|
4705
|
-
height: 11906
|
|
4706
|
-
},
|
|
4707
|
-
{
|
|
4708
|
-
labelKey: "dialogs.pageSetup.pageSizes.b5",
|
|
4709
|
-
width: 9979,
|
|
4710
|
-
height: 14175
|
|
4711
|
-
},
|
|
4712
|
-
{
|
|
4713
|
-
labelKey: "dialogs.pageSetup.pageSizes.executive",
|
|
4714
|
-
width: 10440,
|
|
4715
|
-
height: 15120
|
|
4716
|
-
}
|
|
4717
|
-
], l = a, d = o, h = f(Or), _ = f(kr), v = f("portrait"), S = f(1), w = f(1), T = f(1), D = f(1);
|
|
4718
|
-
function O(e) {
|
|
4719
|
-
return Math.round(e / E * 100) / 100;
|
|
4720
|
-
}
|
|
4721
|
-
function k(e) {
|
|
4722
|
-
return Math.round((Number(e) || 0) * E);
|
|
4723
|
-
}
|
|
4724
|
-
let A = t(() => {
|
|
4725
|
-
let e = Math.min(h.value, _.value), t = Math.max(h.value, _.value);
|
|
4726
|
-
return c.findIndex((n) => Math.abs(n.width - e) < 20 && Math.abs(n.height - t) < 20);
|
|
4727
|
-
});
|
|
4728
|
-
b(() => l.isOpen, (e) => {
|
|
4729
|
-
if (!e) return;
|
|
4730
|
-
let t = l.sectionProperties, n = t?.pageWidth || Or, r = t?.pageHeight || kr;
|
|
4731
|
-
h.value = n, _.value = r, v.value = t?.orientation || (n > r ? "landscape" : "portrait"), S.value = O(t?.marginTop ?? Ar), w.value = O(t?.marginBottom ?? Ar), T.value = O(t?.marginLeft ?? Ar), D.value = O(t?.marginRight ?? Ar);
|
|
4732
|
-
}, { immediate: !0 });
|
|
4733
|
-
function j(e) {
|
|
4734
|
-
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
4735
|
-
let t = Number(e.target.value), n = c.at(t);
|
|
4736
|
-
t < 0 || !n || (v.value === "landscape" ? (h.value = n.height, _.value = n.width) : (h.value = n.width, _.value = n.height));
|
|
4737
|
-
}
|
|
4738
|
-
function M(e) {
|
|
4739
|
-
if (!(e.target instanceof HTMLSelectElement)) return;
|
|
4740
|
-
let t = e.target.value === "landscape" ? "landscape" : "portrait";
|
|
4741
|
-
if (t === v.value) return;
|
|
4742
|
-
v.value = t;
|
|
4743
|
-
let n = h.value;
|
|
4744
|
-
h.value = _.value, _.value = n;
|
|
4745
|
-
}
|
|
4746
|
-
function N() {
|
|
4747
|
-
d("close");
|
|
4748
|
-
}
|
|
4749
|
-
function P() {
|
|
4750
|
-
d("apply", {
|
|
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();
|
|
4759
|
-
}
|
|
4760
|
-
function F(e) {
|
|
4761
|
-
e.key === "Escape" && N(), e.key === "Enter" && P();
|
|
4762
|
-
}
|
|
4763
|
-
return (t, o) => a.isOpen ? (u(), r("div", {
|
|
4764
|
-
key: 0,
|
|
4765
|
-
class: "ps-overlay",
|
|
4766
|
-
onMousedown: C(N, ["self"]),
|
|
4767
|
-
onKeydown: F
|
|
4768
|
-
}, [i("div", {
|
|
4769
|
-
class: "ps-dialog",
|
|
4770
|
-
role: "dialog",
|
|
4771
|
-
"aria-label": g(s)("dialogs.pageSetup.title"),
|
|
4772
|
-
onMousedown: o[4] ||= C(() => {}, ["stop"])
|
|
4773
|
-
}, [
|
|
4774
|
-
i("div", ar, m(g(s)("dialogs.pageSetup.title")), 1),
|
|
4775
|
-
i("div", or, [
|
|
4776
|
-
i("div", sr, m(g(s)("dialogs.pageSetup.pageSize")), 1),
|
|
4777
|
-
i("div", cr, [i("label", lr, m(g(s)("dialogs.pageSetup.sizeLabel")), 1), i("select", {
|
|
4778
|
-
class: "ps-input",
|
|
4779
|
-
value: A.value,
|
|
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", {
|
|
4811
|
-
class: "ps-input",
|
|
4812
|
-
type: "number",
|
|
4813
|
-
min: "0",
|
|
4814
|
-
max: "10",
|
|
4815
|
-
step: "0.1",
|
|
4816
|
-
"onUpdate:modelValue": o[1] ||= (e) => w.value = e
|
|
4817
|
-
}, null, 512), [[
|
|
4818
|
-
y,
|
|
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", {
|
|
4828
|
-
class: "ps-input",
|
|
4829
|
-
type: "number",
|
|
4830
|
-
min: "0",
|
|
4831
|
-
max: "10",
|
|
4832
|
-
step: "0.1",
|
|
4833
|
-
"onUpdate:modelValue": o[2] ||= (e) => T.value = e
|
|
4834
|
-
}, null, 512), [[
|
|
4835
|
-
y,
|
|
4836
|
-
T.value,
|
|
4837
|
-
void 0,
|
|
4838
|
-
{ number: !0 }
|
|
4839
|
-
]]),
|
|
4840
|
-
o[7] ||= i("span", { class: "ps-unit" }, "in", -1)
|
|
4841
|
-
]),
|
|
4842
|
-
i("div", Tr, [
|
|
4843
|
-
i("label", Er, m(g(s)("dialogs.pageSetup.right")), 1),
|
|
4844
|
-
x(i("input", {
|
|
4845
|
-
class: "ps-input",
|
|
4846
|
-
type: "number",
|
|
4847
|
-
min: "0",
|
|
4848
|
-
max: "10",
|
|
4849
|
-
step: "0.1",
|
|
4850
|
-
"onUpdate:modelValue": o[3] ||= (e) => D.value = e
|
|
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
|
-
])
|
|
4859
|
-
]),
|
|
4860
|
-
i("div", Dr, [i("button", {
|
|
4861
|
-
type: "button",
|
|
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);
|
|
4870
|
-
}
|
|
4871
|
-
}), [["__scopeId", "data-v-72f7da99"]]);
|
|
4872
|
-
//#endregion
|
|
4873
|
-
export { Pt as a, _t as c, cn as i, $ as l, rr as n, pt as o, Rn as r, vt as s, jr as t, O as u };
|