@famibee/skynovel 1.64.11 → 1.64.13
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/CmnTween.js +118 -125
- package/dist/CmnTween.js.map +1 -1
- package/dist/EventMng.js +91 -92
- package/dist/EventMng.js.map +1 -1
- package/dist/GrpLayer.js +16 -11
- package/dist/GrpLayer.js.map +1 -1
- package/dist/LayerMng.js +92 -93
- package/dist/LayerMng.js.map +1 -1
- package/dist/Main.js.map +1 -1
- package/dist/PropParser.js +60 -58
- package/dist/PropParser.js.map +1 -1
- package/dist/Reading.js +5 -4
- package/dist/Reading.js.map +1 -1
- package/dist/ScriptIterator.js +97 -97
- package/dist/ScriptIterator.js.map +1 -1
- package/dist/SndBuf.js +37 -35
- package/dist/SndBuf.js.map +1 -1
- package/dist/Variable.js +89 -94
- package/dist/Variable.js.map +1 -1
- package/dist/sn/CmnTween.d.ts +4 -15
- package/dist/sn/CmnTween.d.ts.map +1 -1
- package/dist/sn/EventMng.d.ts.map +1 -1
- package/dist/sn/GrpLayer.d.ts +1 -1
- package/dist/sn/GrpLayer.d.ts.map +1 -1
- package/dist/sn/Layer.d.ts +1 -1
- package/dist/sn/Layer.d.ts.map +1 -1
- package/dist/sn/LayerMng.d.ts.map +1 -1
- package/dist/sn/Main.d.ts.map +1 -1
- package/dist/sn/PropParser.d.ts +7 -4
- package/dist/sn/PropParser.d.ts.map +1 -1
- package/dist/sn/Reading.d.ts +1 -1
- package/dist/sn/Reading.d.ts.map +1 -1
- package/dist/sn/ScriptIterator.d.ts.map +1 -1
- package/dist/sn/SndBuf.d.ts.map +1 -1
- package/dist/sn/Variable.d.ts.map +1 -1
- package/dist/web2.js +3 -3
- package/dist/web2.js.map +1 -1
- package/dist_app/CmnTween.js +118 -125
- package/dist_app/CmnTween.js.map +1 -1
- package/dist_app/EventMng.js +244 -245
- package/dist_app/EventMng.js.map +1 -1
- package/dist_app/GrpLayer.js +16 -11
- package/dist_app/GrpLayer.js.map +1 -1
- package/dist_app/LayerMng.js +59 -60
- package/dist_app/LayerMng.js.map +1 -1
- package/dist_app/Main.js.map +1 -1
- package/dist_app/PropParser.js +37 -35
- package/dist_app/PropParser.js.map +1 -1
- package/dist_app/Reading.js +5 -4
- package/dist_app/Reading.js.map +1 -1
- package/dist_app/ScriptIterator.js +151 -151
- package/dist_app/ScriptIterator.js.map +1 -1
- package/dist_app/SndBuf.js +37 -35
- package/dist_app/SndBuf.js.map +1 -1
- package/dist_app/Variable.js +89 -94
- package/dist_app/Variable.js.map +1 -1
- package/dist_app/app2.js +3 -3
- package/dist_app/app2.js.map +1 -1
- package/dist_app/sn/CmnTween.d.ts +4 -15
- package/dist_app/sn/CmnTween.d.ts.map +1 -1
- package/dist_app/sn/EventMng.d.ts.map +1 -1
- package/dist_app/sn/GrpLayer.d.ts +1 -1
- package/dist_app/sn/GrpLayer.d.ts.map +1 -1
- package/dist_app/sn/Layer.d.ts +1 -1
- package/dist_app/sn/Layer.d.ts.map +1 -1
- package/dist_app/sn/LayerMng.d.ts.map +1 -1
- package/dist_app/sn/Main.d.ts.map +1 -1
- package/dist_app/sn/PropParser.d.ts +7 -4
- package/dist_app/sn/PropParser.d.ts.map +1 -1
- package/dist_app/sn/Reading.d.ts +1 -1
- package/dist_app/sn/Reading.d.ts.map +1 -1
- package/dist_app/sn/ScriptIterator.d.ts.map +1 -1
- package/dist_app/sn/SndBuf.d.ts.map +1 -1
- package/dist_app/sn/Variable.d.ts.map +1 -1
- package/package.json +5 -5
package/dist_app/EventMng.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import { E as se, o as ht, H as G, a as it, w as Ee, d as Te, I as Oe, J as ke, e as J, K as _e, S as Lt, M as Me } from "./app2.js";
|
|
2
2
|
import { T as Se } from "./TxtLayer.js";
|
|
3
3
|
import { Button as Jt } from "./Button.js";
|
|
4
|
-
import { R as
|
|
4
|
+
import { R as L, a as k } from "./Reading.js";
|
|
5
5
|
class De {
|
|
6
6
|
#e = [];
|
|
7
7
|
#t = -1;
|
|
8
|
-
#
|
|
8
|
+
#o = new se();
|
|
9
9
|
destroy() {
|
|
10
|
-
this.#e = [], this.#t = -1, this.#
|
|
10
|
+
this.#e = [], this.#t = -1, this.#o.clear();
|
|
11
11
|
}
|
|
12
12
|
add(t, e, n) {
|
|
13
|
-
if (this.#e.findIndex((
|
|
13
|
+
if (this.#e.findIndex((r) => r.btn === t) >= 0) return;
|
|
14
14
|
if (t instanceof ht) {
|
|
15
15
|
t.on("pointerdown", () => {
|
|
16
|
-
for (let
|
|
17
|
-
if (this.#e[
|
|
18
|
-
this.#t =
|
|
16
|
+
for (let r = this.#e.length - 1; r >= 0; --r)
|
|
17
|
+
if (this.#e[r].btn === t) {
|
|
18
|
+
this.#t = r;
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
21
|
this.#t = -1;
|
|
22
22
|
}), this.#e.push({ btn: t, on: e, off: n });
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
this.#
|
|
26
|
-
for (let
|
|
27
|
-
if (this.#e[
|
|
28
|
-
this.#t =
|
|
25
|
+
this.#o.add(t, "focus", () => {
|
|
26
|
+
for (let r = this.#e.length - 1; r >= 0; --r)
|
|
27
|
+
if (this.#e[r].btn === t) {
|
|
28
|
+
this.#t = r;
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
this.#t = -1;
|
|
32
32
|
});
|
|
33
|
-
let
|
|
34
|
-
}, s = t.localName === "button" || t.localName === "a" ? (
|
|
33
|
+
let o = (r) => {
|
|
34
|
+
}, s = t.localName === "button" || t.localName === "a" ? (r) => !r.isTrusted && r.key === "Enter" : (r) => r.key === "Enter";
|
|
35
35
|
const l = t;
|
|
36
36
|
switch (l.type ?? "") {
|
|
37
37
|
// switch (btn.getAttribute('type') ?? '') { // textareaで''になる
|
|
38
38
|
case "checkbox":
|
|
39
|
-
|
|
39
|
+
o = () => {
|
|
40
40
|
l.checked = !l.checked;
|
|
41
41
|
};
|
|
42
42
|
break;
|
|
43
43
|
case "":
|
|
44
|
-
t.querySelectorAll("input[type]").length > 0 && (
|
|
44
|
+
t.querySelectorAll("input[type]").length > 0 && (o = (r) => this.#a(t, r.key), s = () => !1);
|
|
45
45
|
break;
|
|
46
46
|
case "range":
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
o = (r) => {
|
|
48
|
+
r.isTrusted || (r.key === "ArrowUp" ? l.stepUp() : l.stepDown());
|
|
49
49
|
};
|
|
50
50
|
break;
|
|
51
51
|
case "text":
|
|
52
52
|
case "textarea":
|
|
53
|
-
|
|
54
|
-
if (
|
|
55
|
-
let a = (l.selectionStart ?? 0) + (
|
|
53
|
+
o = (r) => {
|
|
54
|
+
if (r.isTrusted) return;
|
|
55
|
+
let a = (l.selectionStart ?? 0) + (r.key === "ArrowUp" ? -1 : 1);
|
|
56
56
|
a < 0 && (a = 0), l.setSelectionRange(a, a);
|
|
57
57
|
};
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
60
|
-
this.#
|
|
61
|
-
if (!(
|
|
62
|
-
if (
|
|
60
|
+
this.#o.add(t, G, (r) => {
|
|
61
|
+
if (!(r.key !== "ArrowUp" && r.key !== "ArrowDown" && r.key !== "Enter")) {
|
|
62
|
+
if (r.stopImmediatePropagation(), s(r)) {
|
|
63
63
|
t.dispatchEvent(new MouseEvent("click"));
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
r
|
|
66
|
+
o(r);
|
|
67
67
|
}
|
|
68
68
|
}, { passive: !0 }), t.hasAttribute("tabindex") || (t.tabIndex = 0), this.#e.push({ btn: t, on: e, off: n });
|
|
69
69
|
}
|
|
@@ -72,10 +72,10 @@ class De {
|
|
|
72
72
|
e < 0 || (this.#e.splice(e, 1), this.#e.length === 0 ? this.#t = -1 : e <= this.#t && --this.#t);
|
|
73
73
|
}
|
|
74
74
|
#a(t, e) {
|
|
75
|
-
const n = t.querySelectorAll("input[type]"),
|
|
76
|
-
for (let s = 0; s <
|
|
75
|
+
const n = t.querySelectorAll("input[type]"), o = n.length;
|
|
76
|
+
for (let s = 0; s < o; ++s)
|
|
77
77
|
if (n[s].checked) {
|
|
78
|
-
n[(s +
|
|
78
|
+
n[(s + o + (e === "ArrowUp" ? -1 : 1)) % o].checked = !0;
|
|
79
79
|
break;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -83,7 +83,7 @@ class De {
|
|
|
83
83
|
return this.#t < 0 ? !1 : this.#e[this.#t].btn === t;
|
|
84
84
|
}
|
|
85
85
|
prev() {
|
|
86
|
-
this.#
|
|
86
|
+
this.#r();
|
|
87
87
|
const t = this.#e.length;
|
|
88
88
|
if (t !== 0) {
|
|
89
89
|
--this.#t < 0 && (this.#t = t - 1);
|
|
@@ -98,7 +98,7 @@ class De {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
next() {
|
|
101
|
-
this.#
|
|
101
|
+
this.#r();
|
|
102
102
|
const t = this.#e.length;
|
|
103
103
|
if (t !== 0) {
|
|
104
104
|
++this.#t >= t && (this.#t = 0);
|
|
@@ -116,14 +116,14 @@ class De {
|
|
|
116
116
|
};
|
|
117
117
|
getFocus() {
|
|
118
118
|
if (this.#t < 0) return null;
|
|
119
|
-
this.#
|
|
119
|
+
this.#r(), this.#t >= this.#e.length && (this.#t = 0);
|
|
120
120
|
const t = this.#e[this.#t];
|
|
121
121
|
return t.on() ? t.btn : null;
|
|
122
122
|
}
|
|
123
123
|
blur() {
|
|
124
|
-
this.#
|
|
124
|
+
this.#r(), this.#t = -1, globalThis.focus();
|
|
125
125
|
}
|
|
126
|
-
#
|
|
126
|
+
#r() {
|
|
127
127
|
for (let t = this.#e.length - 1; t >= 0; --t) {
|
|
128
128
|
const e = this.#e[t];
|
|
129
129
|
!(e.btn instanceof ht) || e.btn.parent ? e.off() : this.#e.splice(t, 1);
|
|
@@ -164,10 +164,10 @@ function Ht(i) {
|
|
|
164
164
|
function We(i) {
|
|
165
165
|
var t = i.state;
|
|
166
166
|
Object.keys(t.elements).forEach(function(e) {
|
|
167
|
-
var n = t.styles[e] || {},
|
|
168
|
-
!j(s) || !W(s) || (Object.assign(s.style, n), Object.keys(
|
|
169
|
-
var
|
|
170
|
-
|
|
167
|
+
var n = t.styles[e] || {}, o = t.attributes[e] || {}, s = t.elements[e];
|
|
168
|
+
!j(s) || !W(s) || (Object.assign(s.style, n), Object.keys(o).forEach(function(l) {
|
|
169
|
+
var r = o[l];
|
|
170
|
+
r === !1 ? s.removeAttribute(l) : s.setAttribute(l, r === !0 ? "" : r);
|
|
171
171
|
}));
|
|
172
172
|
});
|
|
173
173
|
}
|
|
@@ -186,11 +186,11 @@ function Be(i) {
|
|
|
186
186
|
};
|
|
187
187
|
return Object.assign(t.elements.popper.style, e.popper), t.styles = e, t.elements.arrow && Object.assign(t.elements.arrow.style, e.arrow), function() {
|
|
188
188
|
Object.keys(t.elements).forEach(function(n) {
|
|
189
|
-
var
|
|
189
|
+
var o = t.elements[n], s = t.attributes[n] || {}, l = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : e[n]), r = l.reduce(function(a, u) {
|
|
190
190
|
return a[u] = "", a;
|
|
191
191
|
}, {});
|
|
192
|
-
!j(
|
|
193
|
-
|
|
192
|
+
!j(o) || !W(o) || (Object.assign(o.style, r), Object.keys(s).forEach(function(a) {
|
|
193
|
+
o.removeAttribute(a);
|
|
194
194
|
}));
|
|
195
195
|
});
|
|
196
196
|
};
|
|
@@ -206,7 +206,7 @@ const Ne = {
|
|
|
206
206
|
function A(i) {
|
|
207
207
|
return i.split("-")[0];
|
|
208
208
|
}
|
|
209
|
-
var Q = Math.max, Ot = Math.min,
|
|
209
|
+
var Q = Math.max, Ot = Math.min, ot = Math.round;
|
|
210
210
|
function Ct() {
|
|
211
211
|
var i = navigator.userAgentData;
|
|
212
212
|
return i != null && i.brands && Array.isArray(i.brands) ? i.brands.map(function(t) {
|
|
@@ -216,24 +216,24 @@ function Ct() {
|
|
|
216
216
|
function ce() {
|
|
217
217
|
return !/^((?!chrome|android).)*safari/i.test(Ct());
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function rt(i, t, e) {
|
|
220
220
|
t === void 0 && (t = !1), e === void 0 && (e = !1);
|
|
221
|
-
var n = i.getBoundingClientRect(),
|
|
222
|
-
t && j(i) && (
|
|
223
|
-
var l = tt(i) ? H(i) : window,
|
|
221
|
+
var n = i.getBoundingClientRect(), o = 1, s = 1;
|
|
222
|
+
t && j(i) && (o = i.offsetWidth > 0 && ot(n.width) / i.offsetWidth || 1, s = i.offsetHeight > 0 && ot(n.height) / i.offsetHeight || 1);
|
|
223
|
+
var l = tt(i) ? H(i) : window, r = l.visualViewport, a = !ce() && e, u = (n.left + (a && r ? r.offsetLeft : 0)) / o, h = (n.top + (a && r ? r.offsetTop : 0)) / s, p = n.width / o, y = n.height / s;
|
|
224
224
|
return {
|
|
225
225
|
width: p,
|
|
226
|
-
height:
|
|
226
|
+
height: y,
|
|
227
227
|
top: h,
|
|
228
228
|
right: u + p,
|
|
229
|
-
bottom: h +
|
|
229
|
+
bottom: h + y,
|
|
230
230
|
left: u,
|
|
231
231
|
x: u,
|
|
232
232
|
y: h
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
235
|
function jt(i) {
|
|
236
|
-
var t =
|
|
236
|
+
var t = rt(i), e = i.offsetWidth, n = i.offsetHeight;
|
|
237
237
|
return Math.abs(t.width - e) <= 1 && (e = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
|
|
238
238
|
x: i.offsetLeft,
|
|
239
239
|
y: i.offsetTop,
|
|
@@ -290,12 +290,12 @@ function Ie(i) {
|
|
|
290
290
|
if (n.position === "fixed")
|
|
291
291
|
return null;
|
|
292
292
|
}
|
|
293
|
-
var
|
|
294
|
-
for (Ht(
|
|
295
|
-
var s = B(
|
|
293
|
+
var o = kt(i);
|
|
294
|
+
for (Ht(o) && (o = o.host); j(o) && ["html", "body"].indexOf(W(o)) < 0; ) {
|
|
295
|
+
var s = B(o);
|
|
296
296
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || t && s.willChange === "filter" || t && s.filter && s.filter !== "none")
|
|
297
|
-
return
|
|
298
|
-
|
|
297
|
+
return o;
|
|
298
|
+
o = o.parentNode;
|
|
299
299
|
}
|
|
300
300
|
return null;
|
|
301
301
|
}
|
|
@@ -336,15 +336,15 @@ var Ue = function(t, e) {
|
|
|
336
336
|
})) : t, de(typeof t != "number" ? t : fe(t, vt));
|
|
337
337
|
};
|
|
338
338
|
function Ke(i) {
|
|
339
|
-
var t, e = i.state, n = i.name,
|
|
339
|
+
var t, e = i.state, n = i.name, o = i.options, s = e.elements.arrow, l = e.modifiersData.popperOffsets, r = A(e.placement), a = Rt(r), u = [Y, $].indexOf(r) >= 0, h = u ? "height" : "width";
|
|
340
340
|
if (!(!s || !l)) {
|
|
341
|
-
var p = Ue(
|
|
341
|
+
var p = Ue(o.padding, e), y = jt(s), d = a === "y" ? C : Y, m = a === "y" ? R : $, v = e.rects.reference[h] + e.rects.reference[a] - l[a] - e.rects.popper[h], g = l[a] - e.rects.reference[a], w = mt(s), c = w ? a === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, f = v / 2 - g / 2, b = p[d], E = c - y[h] - p[m], x = c / 2 - y[h] / 2 + f, T = ut(b, x, E), S = a;
|
|
342
342
|
e.modifiersData[n] = (t = {}, t[S] = T, t.centerOffset = T - x, t);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
function Je(i) {
|
|
346
|
-
var t = i.state, e = i.options, n = e.element,
|
|
347
|
-
|
|
346
|
+
var t = i.state, e = i.options, n = e.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
|
347
|
+
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || he(t.elements.popper, o) && (t.elements.arrow = o));
|
|
348
348
|
}
|
|
349
349
|
const Ge = {
|
|
350
350
|
name: "arrow",
|
|
@@ -365,25 +365,25 @@ var Ze = {
|
|
|
365
365
|
left: "auto"
|
|
366
366
|
};
|
|
367
367
|
function Qe(i, t) {
|
|
368
|
-
var e = i.x, n = i.y,
|
|
368
|
+
var e = i.x, n = i.y, o = t.devicePixelRatio || 1;
|
|
369
369
|
return {
|
|
370
|
-
x:
|
|
371
|
-
y:
|
|
370
|
+
x: ot(e * o) / o || 0,
|
|
371
|
+
y: ot(n * o) / o || 0
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
374
|
function Qt(i) {
|
|
375
|
-
var t, e = i.popper, n = i.popperRect,
|
|
375
|
+
var t, e = i.popper, n = i.popperRect, o = i.placement, s = i.variation, l = i.offsets, r = i.position, a = i.gpuAcceleration, u = i.adaptive, h = i.roundOffsets, p = i.isFixed, y = l.x, d = y === void 0 ? 0 : y, m = l.y, v = m === void 0 ? 0 : m, g = typeof h == "function" ? h({
|
|
376
376
|
x: d,
|
|
377
377
|
y: v
|
|
378
378
|
}) : {
|
|
379
379
|
x: d,
|
|
380
380
|
y: v
|
|
381
381
|
};
|
|
382
|
-
d =
|
|
382
|
+
d = g.x, v = g.y;
|
|
383
383
|
var w = l.hasOwnProperty("x"), c = l.hasOwnProperty("y"), f = Y, b = C, E = window;
|
|
384
384
|
if (u) {
|
|
385
385
|
var x = mt(e), T = "clientHeight", S = "clientWidth";
|
|
386
|
-
if (x === H(e) && (x = q(e), B(x).position !== "static" &&
|
|
386
|
+
if (x === H(e) && (x = q(e), B(x).position !== "static" && r === "absolute" && (T = "scrollHeight", S = "scrollWidth")), x = x, o === C || (o === Y || o === $) && s === ft) {
|
|
387
387
|
b = R;
|
|
388
388
|
var M = p && x === E && E.visualViewport ? E.visualViewport.height : (
|
|
389
389
|
// $FlowFixMe[prop-missing]
|
|
@@ -391,7 +391,7 @@ function Qt(i) {
|
|
|
391
391
|
);
|
|
392
392
|
v -= M - n.height, v *= a ? 1 : -1;
|
|
393
393
|
}
|
|
394
|
-
if (
|
|
394
|
+
if (o === Y || (o === C || o === R) && s === ft) {
|
|
395
395
|
f = $;
|
|
396
396
|
var _ = p && x === E && E.visualViewport ? E.visualViewport.width : (
|
|
397
397
|
// $FlowFixMe[prop-missing]
|
|
@@ -401,27 +401,27 @@ function Qt(i) {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
var O = Object.assign({
|
|
404
|
-
position:
|
|
405
|
-
}, u && Ze),
|
|
404
|
+
position: r
|
|
405
|
+
}, u && Ze), D = h === !0 ? Qe({
|
|
406
406
|
x: d,
|
|
407
407
|
y: v
|
|
408
408
|
}, H(e)) : {
|
|
409
409
|
x: d,
|
|
410
410
|
y: v
|
|
411
411
|
};
|
|
412
|
-
if (d =
|
|
413
|
-
var
|
|
414
|
-
return Object.assign({}, O, (
|
|
412
|
+
if (d = D.x, v = D.y, a) {
|
|
413
|
+
var P;
|
|
414
|
+
return Object.assign({}, O, (P = {}, P[b] = c ? "0" : "", P[f] = w ? "0" : "", P.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + d + "px, " + v + "px)" : "translate3d(" + d + "px, " + v + "px, 0)", P));
|
|
415
415
|
}
|
|
416
416
|
return Object.assign({}, O, (t = {}, t[b] = c ? v + "px" : "", t[f] = w ? d + "px" : "", t.transform = "", t));
|
|
417
417
|
}
|
|
418
418
|
function ti(i) {
|
|
419
|
-
var t = i.state, e = i.options, n = e.gpuAcceleration,
|
|
419
|
+
var t = i.state, e = i.options, n = e.gpuAcceleration, o = n === void 0 ? !0 : n, s = e.adaptive, l = s === void 0 ? !0 : s, r = e.roundOffsets, a = r === void 0 ? !0 : r, u = {
|
|
420
420
|
placement: A(t.placement),
|
|
421
421
|
variation: st(t.placement),
|
|
422
422
|
popper: t.elements.popper,
|
|
423
423
|
popperRect: t.rects.popper,
|
|
424
|
-
gpuAcceleration:
|
|
424
|
+
gpuAcceleration: o,
|
|
425
425
|
isFixed: t.options.strategy === "fixed"
|
|
426
426
|
};
|
|
427
427
|
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Qt(Object.assign({}, u, {
|
|
@@ -449,13 +449,13 @@ var Et = {
|
|
|
449
449
|
passive: !0
|
|
450
450
|
};
|
|
451
451
|
function ii(i) {
|
|
452
|
-
var t = i.state, e = i.instance, n = i.options,
|
|
452
|
+
var t = i.state, e = i.instance, n = i.options, o = n.scroll, s = o === void 0 ? !0 : o, l = n.resize, r = l === void 0 ? !0 : l, a = H(t.elements.popper), u = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
|
453
453
|
return s && u.forEach(function(h) {
|
|
454
454
|
h.addEventListener("scroll", e.update, Et);
|
|
455
|
-
}),
|
|
455
|
+
}), r && a.addEventListener("resize", e.update, Et), function() {
|
|
456
456
|
s && u.forEach(function(h) {
|
|
457
457
|
h.removeEventListener("scroll", e.update, Et);
|
|
458
|
-
}),
|
|
458
|
+
}), r && a.removeEventListener("resize", e.update, Et);
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
461
|
const ni = {
|
|
@@ -467,7 +467,7 @@ const ni = {
|
|
|
467
467
|
effect: ii,
|
|
468
468
|
data: {}
|
|
469
469
|
};
|
|
470
|
-
var
|
|
470
|
+
var oi = {
|
|
471
471
|
left: "right",
|
|
472
472
|
right: "left",
|
|
473
473
|
bottom: "top",
|
|
@@ -475,16 +475,16 @@ var ri = {
|
|
|
475
475
|
};
|
|
476
476
|
function Tt(i) {
|
|
477
477
|
return i.replace(/left|right|bottom|top/g, function(t) {
|
|
478
|
-
return
|
|
478
|
+
return oi[t];
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
|
-
var
|
|
481
|
+
var ri = {
|
|
482
482
|
start: "end",
|
|
483
483
|
end: "start"
|
|
484
484
|
};
|
|
485
485
|
function te(i) {
|
|
486
486
|
return i.replace(/start|end/g, function(t) {
|
|
487
|
-
return
|
|
487
|
+
return ri[t];
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
function $t(i) {
|
|
@@ -495,34 +495,34 @@ function $t(i) {
|
|
|
495
495
|
};
|
|
496
496
|
}
|
|
497
497
|
function Ft(i) {
|
|
498
|
-
return
|
|
498
|
+
return rt(q(i)).left + $t(i).scrollLeft;
|
|
499
499
|
}
|
|
500
500
|
function si(i, t) {
|
|
501
|
-
var e = H(i), n = q(i),
|
|
502
|
-
if (
|
|
503
|
-
s =
|
|
501
|
+
var e = H(i), n = q(i), o = e.visualViewport, s = n.clientWidth, l = n.clientHeight, r = 0, a = 0;
|
|
502
|
+
if (o) {
|
|
503
|
+
s = o.width, l = o.height;
|
|
504
504
|
var u = ce();
|
|
505
|
-
(u || !u && t === "fixed") && (
|
|
505
|
+
(u || !u && t === "fixed") && (r = o.offsetLeft, a = o.offsetTop);
|
|
506
506
|
}
|
|
507
507
|
return {
|
|
508
508
|
width: s,
|
|
509
509
|
height: l,
|
|
510
|
-
x:
|
|
510
|
+
x: r + Ft(i),
|
|
511
511
|
y: a
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
function ai(i) {
|
|
515
|
-
var t, e = q(i), n = $t(i),
|
|
516
|
-
return B(
|
|
515
|
+
var t, e = q(i), n = $t(i), o = (t = i.ownerDocument) == null ? void 0 : t.body, s = Q(e.scrollWidth, e.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), l = Q(e.scrollHeight, e.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), r = -n.scrollLeft + Ft(i), a = -n.scrollTop;
|
|
516
|
+
return B(o || e).direction === "rtl" && (r += Q(e.clientWidth, o ? o.clientWidth : 0) - s), {
|
|
517
517
|
width: s,
|
|
518
518
|
height: l,
|
|
519
|
-
x:
|
|
519
|
+
x: r,
|
|
520
520
|
y: a
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
523
|
function Vt(i) {
|
|
524
|
-
var t = B(i), e = t.overflow, n = t.overflowX,
|
|
525
|
-
return /auto|scroll|overlay|hidden/.test(e +
|
|
524
|
+
var t = B(i), e = t.overflow, n = t.overflowX, o = t.overflowY;
|
|
525
|
+
return /auto|scroll|overlay|hidden/.test(e + o + n);
|
|
526
526
|
}
|
|
527
527
|
function pe(i) {
|
|
528
528
|
return ["html", "body", "#document"].indexOf(W(i)) >= 0 ? i.ownerDocument.body : j(i) && Vt(i) ? i : pe(kt(i));
|
|
@@ -530,10 +530,10 @@ function pe(i) {
|
|
|
530
530
|
function dt(i, t) {
|
|
531
531
|
var e;
|
|
532
532
|
t === void 0 && (t = []);
|
|
533
|
-
var n = pe(i),
|
|
534
|
-
return
|
|
533
|
+
var n = pe(i), o = n === ((e = i.ownerDocument) == null ? void 0 : e.body), s = H(n), l = o ? [s].concat(s.visualViewport || [], Vt(n) ? n : []) : n, r = t.concat(l);
|
|
534
|
+
return o ? r : (
|
|
535
535
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
536
|
-
|
|
536
|
+
r.concat(dt(kt(l)))
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
539
|
function Yt(i) {
|
|
@@ -545,7 +545,7 @@ function Yt(i) {
|
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
function li(i, t) {
|
|
548
|
-
var e =
|
|
548
|
+
var e = rt(i, !1, t === "fixed");
|
|
549
549
|
return e.top = e.top + i.clientTop, e.left = e.left + i.clientLeft, e.bottom = e.top + i.clientHeight, e.right = e.left + i.clientWidth, e.width = i.clientWidth, e.height = i.clientHeight, e.x = e.left, e.y = e.top, e;
|
|
550
550
|
}
|
|
551
551
|
function ee(i, t, e) {
|
|
@@ -553,20 +553,20 @@ function ee(i, t, e) {
|
|
|
553
553
|
}
|
|
554
554
|
function ci(i) {
|
|
555
555
|
var t = dt(kt(i)), e = ["absolute", "fixed"].indexOf(B(i).position) >= 0, n = e && j(i) ? mt(i) : i;
|
|
556
|
-
return tt(n) ? t.filter(function(
|
|
557
|
-
return tt(
|
|
556
|
+
return tt(n) ? t.filter(function(o) {
|
|
557
|
+
return tt(o) && he(o, n) && W(o) !== "body";
|
|
558
558
|
}) : [];
|
|
559
559
|
}
|
|
560
560
|
function hi(i, t, e, n) {
|
|
561
|
-
var
|
|
561
|
+
var o = t === "clippingParents" ? ci(i) : [].concat(t), s = [].concat(o, [e]), l = s[0], r = s.reduce(function(a, u) {
|
|
562
562
|
var h = ee(i, u, n);
|
|
563
563
|
return a.top = Q(h.top, a.top), a.right = Ot(h.right, a.right), a.bottom = Ot(h.bottom, a.bottom), a.left = Q(h.left, a.left), a;
|
|
564
564
|
}, ee(i, l, n));
|
|
565
|
-
return
|
|
565
|
+
return r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
566
566
|
}
|
|
567
567
|
function ve(i) {
|
|
568
|
-
var t = i.reference, e = i.element, n = i.placement,
|
|
569
|
-
switch (
|
|
568
|
+
var t = i.reference, e = i.element, n = i.placement, o = n ? A(n) : null, s = n ? st(n) : null, l = t.x + t.width / 2 - e.width / 2, r = t.y + t.height / 2 - e.height / 2, a;
|
|
569
|
+
switch (o) {
|
|
570
570
|
case C:
|
|
571
571
|
a = {
|
|
572
572
|
x: l,
|
|
@@ -582,13 +582,13 @@ function ve(i) {
|
|
|
582
582
|
case $:
|
|
583
583
|
a = {
|
|
584
584
|
x: t.x + t.width,
|
|
585
|
-
y:
|
|
585
|
+
y: r
|
|
586
586
|
};
|
|
587
587
|
break;
|
|
588
588
|
case Y:
|
|
589
589
|
a = {
|
|
590
590
|
x: t.x - e.width,
|
|
591
|
-
y:
|
|
591
|
+
y: r
|
|
592
592
|
};
|
|
593
593
|
break;
|
|
594
594
|
default:
|
|
@@ -597,7 +597,7 @@ function ve(i) {
|
|
|
597
597
|
y: t.y
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
var u =
|
|
600
|
+
var u = o ? Rt(o) : null;
|
|
601
601
|
if (u != null) {
|
|
602
602
|
var h = u === "y" ? "height" : "width";
|
|
603
603
|
switch (s) {
|
|
@@ -613,37 +613,37 @@ function ve(i) {
|
|
|
613
613
|
}
|
|
614
614
|
function pt(i, t) {
|
|
615
615
|
t === void 0 && (t = {});
|
|
616
|
-
var e = t, n = e.placement,
|
|
616
|
+
var e = t, n = e.placement, o = n === void 0 ? i.placement : n, s = e.strategy, l = s === void 0 ? i.strategy : s, r = e.boundary, a = r === void 0 ? Pe : r, u = e.rootBoundary, h = u === void 0 ? ae : u, p = e.elementContext, y = p === void 0 ? ct : p, d = e.altBoundary, m = d === void 0 ? !1 : d, v = e.padding, g = v === void 0 ? 0 : v, w = de(typeof g != "number" ? g : fe(g, vt)), c = y === ct ? Le : ct, f = i.rects.popper, b = i.elements[m ? c : y], E = hi(tt(b) ? b : b.contextElement || q(i.elements.popper), a, h, l), x = rt(i.elements.reference), T = ve({
|
|
617
617
|
reference: x,
|
|
618
618
|
element: f,
|
|
619
|
-
placement:
|
|
620
|
-
}), S = Yt(Object.assign({}, f, T)), M =
|
|
619
|
+
placement: o
|
|
620
|
+
}), S = Yt(Object.assign({}, f, T)), M = y === ct ? S : x, _ = {
|
|
621
621
|
top: E.top - M.top + w.top,
|
|
622
622
|
bottom: M.bottom - E.bottom + w.bottom,
|
|
623
623
|
left: E.left - M.left + w.left,
|
|
624
624
|
right: M.right - E.right + w.right
|
|
625
625
|
}, O = i.modifiersData.offset;
|
|
626
|
-
if (
|
|
627
|
-
var
|
|
628
|
-
Object.keys(_).forEach(function(
|
|
629
|
-
var F = [$, R].indexOf(
|
|
630
|
-
_[
|
|
626
|
+
if (y === ct && O) {
|
|
627
|
+
var D = O[o];
|
|
628
|
+
Object.keys(_).forEach(function(P) {
|
|
629
|
+
var F = [$, R].indexOf(P) >= 0 ? 1 : -1, I = [C, R].indexOf(P) >= 0 ? "y" : "x";
|
|
630
|
+
_[P] += D[I] * F;
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
633
|
return _;
|
|
634
634
|
}
|
|
635
635
|
function ui(i, t) {
|
|
636
636
|
t === void 0 && (t = {});
|
|
637
|
-
var e = t, n = e.placement,
|
|
637
|
+
var e = t, n = e.placement, o = e.boundary, s = e.rootBoundary, l = e.padding, r = e.flipVariations, a = e.allowedAutoPlacements, u = a === void 0 ? le : a, h = st(n), p = h ? r ? Gt : Gt.filter(function(m) {
|
|
638
638
|
return st(m) === h;
|
|
639
|
-
}) : vt,
|
|
639
|
+
}) : vt, y = p.filter(function(m) {
|
|
640
640
|
return u.indexOf(m) >= 0;
|
|
641
641
|
});
|
|
642
|
-
|
|
643
|
-
var d =
|
|
642
|
+
y.length === 0 && (y = p);
|
|
643
|
+
var d = y.reduce(function(m, v) {
|
|
644
644
|
return m[v] = pt(i, {
|
|
645
645
|
placement: v,
|
|
646
|
-
boundary:
|
|
646
|
+
boundary: o,
|
|
647
647
|
rootBoundary: s,
|
|
648
648
|
padding: l
|
|
649
649
|
})[A(v)], m;
|
|
@@ -661,7 +661,7 @@ function di(i) {
|
|
|
661
661
|
function fi(i) {
|
|
662
662
|
var t = i.state, e = i.options, n = i.name;
|
|
663
663
|
if (!t.modifiersData[n]._skip) {
|
|
664
|
-
for (var
|
|
664
|
+
for (var o = e.mainAxis, s = o === void 0 ? !0 : o, l = e.altAxis, r = l === void 0 ? !0 : l, a = e.fallbackPlacements, u = e.padding, h = e.boundary, p = e.rootBoundary, y = e.altBoundary, d = e.flipVariations, m = d === void 0 ? !0 : d, v = e.allowedAutoPlacements, g = t.options.placement, w = A(g), c = w === g, f = a || (c || !m ? [Tt(g)] : di(g)), b = [g].concat(f).reduce(function(et, N) {
|
|
665
665
|
return et.concat(A(N) === Xt ? ui(t, {
|
|
666
666
|
placement: N,
|
|
667
667
|
boundary: h,
|
|
@@ -671,16 +671,16 @@ function fi(i) {
|
|
|
671
671
|
allowedAutoPlacements: v
|
|
672
672
|
}) : N);
|
|
673
673
|
}, []), E = t.rects.reference, x = t.rects.popper, T = /* @__PURE__ */ new Map(), S = !0, M = b[0], _ = 0; _ < b.length; _++) {
|
|
674
|
-
var O = b[_],
|
|
674
|
+
var O = b[_], D = A(O), P = st(O) === nt, F = [C, R].indexOf(D) >= 0, I = F ? "width" : "height", X = pt(t, {
|
|
675
675
|
placement: O,
|
|
676
676
|
boundary: h,
|
|
677
677
|
rootBoundary: p,
|
|
678
|
-
altBoundary:
|
|
678
|
+
altBoundary: y,
|
|
679
679
|
padding: u
|
|
680
|
-
}), V = F ?
|
|
680
|
+
}), V = F ? P ? $ : Y : P ? R : C;
|
|
681
681
|
E[I] > x[I] && (V = Tt(V));
|
|
682
682
|
var gt = Tt(V), z = [];
|
|
683
|
-
if (s && z.push(X[
|
|
683
|
+
if (s && z.push(X[D] <= 0), r && z.push(X[V] <= 0, X[gt] <= 0), z.every(function(et) {
|
|
684
684
|
return et;
|
|
685
685
|
})) {
|
|
686
686
|
M = O, S = !1;
|
|
@@ -733,11 +733,11 @@ function ne(i) {
|
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
735
|
function vi(i) {
|
|
736
|
-
var t = i.state, e = i.name, n = t.rects.reference,
|
|
736
|
+
var t = i.state, e = i.name, n = t.rects.reference, o = t.rects.popper, s = t.modifiersData.preventOverflow, l = pt(t, {
|
|
737
737
|
elementContext: "reference"
|
|
738
|
-
}),
|
|
738
|
+
}), r = pt(t, {
|
|
739
739
|
altBoundary: !0
|
|
740
|
-
}), a = ie(l, n), u = ie(
|
|
740
|
+
}), a = ie(l, n), u = ie(r, o, s), h = ne(a), p = ne(u);
|
|
741
741
|
t.modifiersData[e] = {
|
|
742
742
|
referenceClippingOffsets: a,
|
|
743
743
|
popperEscapeOffsets: u,
|
|
@@ -756,21 +756,21 @@ const mi = {
|
|
|
756
756
|
fn: vi
|
|
757
757
|
};
|
|
758
758
|
function gi(i, t, e) {
|
|
759
|
-
var n = A(i),
|
|
759
|
+
var n = A(i), o = [Y, C].indexOf(n) >= 0 ? -1 : 1, s = typeof e == "function" ? e(Object.assign({}, t, {
|
|
760
760
|
placement: i
|
|
761
|
-
})) : e, l = s[0],
|
|
762
|
-
return l = l || 0,
|
|
763
|
-
x:
|
|
761
|
+
})) : e, l = s[0], r = s[1];
|
|
762
|
+
return l = l || 0, r = (r || 0) * o, [Y, $].indexOf(n) >= 0 ? {
|
|
763
|
+
x: r,
|
|
764
764
|
y: l
|
|
765
765
|
} : {
|
|
766
766
|
x: l,
|
|
767
|
-
y:
|
|
767
|
+
y: r
|
|
768
768
|
};
|
|
769
769
|
}
|
|
770
770
|
function yi(i) {
|
|
771
|
-
var t = i.state, e = i.options, n = i.name,
|
|
771
|
+
var t = i.state, e = i.options, n = i.name, o = e.offset, s = o === void 0 ? [0, 0] : o, l = le.reduce(function(h, p) {
|
|
772
772
|
return h[p] = gi(p, t.rects, s), h;
|
|
773
|
-
}, {}),
|
|
773
|
+
}, {}), r = l[t.placement], a = r.x, u = r.y;
|
|
774
774
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += a, t.modifiersData.popperOffsets.y += u), t.modifiersData[n] = l;
|
|
775
775
|
}
|
|
776
776
|
const bi = {
|
|
@@ -799,7 +799,7 @@ function Ei(i) {
|
|
|
799
799
|
return i === "x" ? "y" : "x";
|
|
800
800
|
}
|
|
801
801
|
function Ti(i) {
|
|
802
|
-
var t = i.state, e = i.options, n = i.name,
|
|
802
|
+
var t = i.state, e = i.options, n = i.name, o = e.mainAxis, s = o === void 0 ? !0 : o, l = e.altAxis, r = l === void 0 ? !1 : l, a = e.boundary, u = e.rootBoundary, h = e.altBoundary, p = e.padding, y = e.tether, d = y === void 0 ? !0 : y, m = e.tetherOffset, v = m === void 0 ? 0 : m, g = pt(t, {
|
|
803
803
|
boundary: a,
|
|
804
804
|
rootBoundary: u,
|
|
805
805
|
padding: p,
|
|
@@ -812,23 +812,23 @@ function Ti(i) {
|
|
|
812
812
|
} : Object.assign({
|
|
813
813
|
mainAxis: 0,
|
|
814
814
|
altAxis: 0
|
|
815
|
-
}, M), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
|
|
815
|
+
}, M), O = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, D = {
|
|
816
816
|
x: 0,
|
|
817
817
|
y: 0
|
|
818
818
|
};
|
|
819
819
|
if (x) {
|
|
820
820
|
if (s) {
|
|
821
|
-
var
|
|
821
|
+
var P, F = b === "y" ? C : Y, I = b === "y" ? R : $, X = b === "y" ? "height" : "width", V = x[b], gt = V + g[F], z = V - g[I], yt = d ? -S[X] / 2 : 0, Mt = c === nt ? T[X] : S[X], at = c === nt ? -S[X] : -T[X], bt = t.elements.arrow, et = d && bt ? jt(bt) : {
|
|
822
822
|
width: 0,
|
|
823
823
|
height: 0
|
|
824
|
-
}, N = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ue(), lt = N[F], wt = N[I], U = ut(0, T[X], et[X]), St = f ? T[X] / 2 - yt - U - lt - _.mainAxis : Mt - U - lt - _.mainAxis, me = f ? -T[X] / 2 + yt + U + wt + _.mainAxis : at + U + wt + _.mainAxis, Dt = t.elements.arrow && mt(t.elements.arrow), ge = Dt ? b === "y" ? Dt.clientTop || 0 : Dt.clientLeft || 0 : 0, At = (
|
|
825
|
-
x[b] = Wt,
|
|
824
|
+
}, N = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ue(), lt = N[F], wt = N[I], U = ut(0, T[X], et[X]), St = f ? T[X] / 2 - yt - U - lt - _.mainAxis : Mt - U - lt - _.mainAxis, me = f ? -T[X] / 2 + yt + U + wt + _.mainAxis : at + U + wt + _.mainAxis, Dt = t.elements.arrow && mt(t.elements.arrow), ge = Dt ? b === "y" ? Dt.clientTop || 0 : Dt.clientLeft || 0 : 0, At = (P = O?.[b]) != null ? P : 0, ye = V + St - At - ge, be = V + me - At, Wt = ut(d ? Ot(gt, ye) : gt, V, d ? Q(z, be) : z);
|
|
825
|
+
x[b] = Wt, D[b] = Wt - V;
|
|
826
826
|
}
|
|
827
|
-
if (
|
|
828
|
-
var Bt, we = b === "x" ? C : Y, xe = b === "x" ? R : $, K = x[E], xt = E === "y" ? "height" : "width", Nt = K +
|
|
829
|
-
x[E] = Kt,
|
|
827
|
+
if (r) {
|
|
828
|
+
var Bt, we = b === "x" ? C : Y, xe = b === "x" ? R : $, K = x[E], xt = E === "y" ? "height" : "width", Nt = K + g[we], qt = K - g[xe], Pt = [C, Y].indexOf(w) !== -1, It = (Bt = O?.[E]) != null ? Bt : 0, zt = Pt ? Nt : K - T[xt] - S[xt] - It + _.altAxis, Ut = Pt ? K + T[xt] + S[xt] - It - _.altAxis : qt, Kt = d && Pt ? ze(zt, K, Ut) : ut(d ? zt : Nt, K, d ? Ut : qt);
|
|
829
|
+
x[E] = Kt, D[E] = Kt - K;
|
|
830
830
|
}
|
|
831
|
-
t.modifiersData[n] =
|
|
831
|
+
t.modifiersData[n] = D;
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
const Oi = {
|
|
@@ -848,12 +848,12 @@ function _i(i) {
|
|
|
848
848
|
return i === H(i) || !j(i) ? $t(i) : ki(i);
|
|
849
849
|
}
|
|
850
850
|
function Mi(i) {
|
|
851
|
-
var t = i.getBoundingClientRect(), e =
|
|
851
|
+
var t = i.getBoundingClientRect(), e = ot(t.width) / i.offsetWidth || 1, n = ot(t.height) / i.offsetHeight || 1;
|
|
852
852
|
return e !== 1 || n !== 1;
|
|
853
853
|
}
|
|
854
854
|
function Si(i, t, e) {
|
|
855
855
|
e === void 0 && (e = !1);
|
|
856
|
-
var n = j(t),
|
|
856
|
+
var n = j(t), o = j(t) && Mi(t), s = q(t), l = rt(i, o, e), r = {
|
|
857
857
|
scrollLeft: 0,
|
|
858
858
|
scrollTop: 0
|
|
859
859
|
}, a = {
|
|
@@ -861,9 +861,9 @@ function Si(i, t, e) {
|
|
|
861
861
|
y: 0
|
|
862
862
|
};
|
|
863
863
|
return (n || !n && !e) && ((W(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
864
|
-
Vt(s)) && (
|
|
865
|
-
x: l.left +
|
|
866
|
-
y: l.top +
|
|
864
|
+
Vt(s)) && (r = _i(t)), j(t) ? (a = rt(t, !0), a.x += t.clientLeft, a.y += t.clientTop) : s && (a.x = Ft(s))), {
|
|
865
|
+
x: l.left + r.scrollLeft - a.x,
|
|
866
|
+
y: l.top + r.scrollTop - a.y,
|
|
867
867
|
width: l.width,
|
|
868
868
|
height: l.height
|
|
869
869
|
};
|
|
@@ -873,25 +873,25 @@ function Di(i) {
|
|
|
873
873
|
i.forEach(function(s) {
|
|
874
874
|
t.set(s.name, s);
|
|
875
875
|
});
|
|
876
|
-
function
|
|
876
|
+
function o(s) {
|
|
877
877
|
e.add(s.name);
|
|
878
878
|
var l = [].concat(s.requires || [], s.requiresIfExists || []);
|
|
879
|
-
l.forEach(function(
|
|
880
|
-
if (!e.has(
|
|
881
|
-
var a = t.get(
|
|
882
|
-
a &&
|
|
879
|
+
l.forEach(function(r) {
|
|
880
|
+
if (!e.has(r)) {
|
|
881
|
+
var a = t.get(r);
|
|
882
|
+
a && o(a);
|
|
883
883
|
}
|
|
884
884
|
}), n.push(s);
|
|
885
885
|
}
|
|
886
886
|
return i.forEach(function(s) {
|
|
887
|
-
e.has(s.name) ||
|
|
887
|
+
e.has(s.name) || o(s);
|
|
888
888
|
}), n;
|
|
889
889
|
}
|
|
890
890
|
function Pi(i) {
|
|
891
891
|
var t = Di(i);
|
|
892
892
|
return Ae.reduce(function(e, n) {
|
|
893
|
-
return e.concat(t.filter(function(
|
|
894
|
-
return
|
|
893
|
+
return e.concat(t.filter(function(o) {
|
|
894
|
+
return o.phase === n;
|
|
895
895
|
}));
|
|
896
896
|
}, []);
|
|
897
897
|
}
|
|
@@ -907,22 +907,22 @@ function Li(i) {
|
|
|
907
907
|
}
|
|
908
908
|
function Ci(i) {
|
|
909
909
|
var t = i.reduce(function(e, n) {
|
|
910
|
-
var
|
|
911
|
-
return e[n.name] =
|
|
912
|
-
options: Object.assign({},
|
|
913
|
-
data: Object.assign({},
|
|
910
|
+
var o = e[n.name];
|
|
911
|
+
return e[n.name] = o ? Object.assign({}, o, n, {
|
|
912
|
+
options: Object.assign({}, o.options, n.options),
|
|
913
|
+
data: Object.assign({}, o.data, n.data)
|
|
914
914
|
}) : n, e;
|
|
915
915
|
}, {});
|
|
916
916
|
return Object.keys(t).map(function(e) {
|
|
917
917
|
return t[e];
|
|
918
918
|
});
|
|
919
919
|
}
|
|
920
|
-
var
|
|
920
|
+
var oe = {
|
|
921
921
|
placement: "bottom",
|
|
922
922
|
modifiers: [],
|
|
923
923
|
strategy: "absolute"
|
|
924
924
|
};
|
|
925
|
-
function
|
|
925
|
+
function re() {
|
|
926
926
|
for (var i = arguments.length, t = new Array(i), e = 0; e < i; e++)
|
|
927
927
|
t[e] = arguments[e];
|
|
928
928
|
return !t.some(function(n) {
|
|
@@ -931,26 +931,26 @@ function oe() {
|
|
|
931
931
|
}
|
|
932
932
|
function Yi(i) {
|
|
933
933
|
i === void 0 && (i = {});
|
|
934
|
-
var t = i, e = t.defaultModifiers, n = e === void 0 ? [] : e,
|
|
935
|
-
return function(
|
|
934
|
+
var t = i, e = t.defaultModifiers, n = e === void 0 ? [] : e, o = t.defaultOptions, s = o === void 0 ? oe : o;
|
|
935
|
+
return function(r, a, u) {
|
|
936
936
|
u === void 0 && (u = s);
|
|
937
937
|
var h = {
|
|
938
938
|
placement: "bottom",
|
|
939
939
|
orderedModifiers: [],
|
|
940
|
-
options: Object.assign({},
|
|
940
|
+
options: Object.assign({}, oe, s),
|
|
941
941
|
modifiersData: {},
|
|
942
942
|
elements: {
|
|
943
|
-
reference:
|
|
943
|
+
reference: r,
|
|
944
944
|
popper: a
|
|
945
945
|
},
|
|
946
946
|
attributes: {},
|
|
947
947
|
styles: {}
|
|
948
|
-
}, p = [],
|
|
948
|
+
}, p = [], y = !1, d = {
|
|
949
949
|
state: h,
|
|
950
950
|
setOptions: function(w) {
|
|
951
951
|
var c = typeof w == "function" ? w(h.options) : w;
|
|
952
952
|
v(), h.options = Object.assign({}, s, h.options, c), h.scrollParents = {
|
|
953
|
-
reference: tt(
|
|
953
|
+
reference: tt(r) ? dt(r) : r.contextElement ? dt(r.contextElement) : [],
|
|
954
954
|
popper: dt(a)
|
|
955
955
|
};
|
|
956
956
|
var f = Pi(Ci([].concat(n, h.options.modifiers)));
|
|
@@ -964,9 +964,9 @@ function Yi(i) {
|
|
|
964
964
|
// For high frequency updates (e.g. `resize` and `scroll` events), always
|
|
965
965
|
// prefer the async Popper#update method
|
|
966
966
|
forceUpdate: function() {
|
|
967
|
-
if (!
|
|
967
|
+
if (!y) {
|
|
968
968
|
var w = h.elements, c = w.reference, f = w.popper;
|
|
969
|
-
if (
|
|
969
|
+
if (re(c, f)) {
|
|
970
970
|
h.rects = {
|
|
971
971
|
reference: Si(c, mt(f), h.options.strategy === "fixed"),
|
|
972
972
|
popper: jt(f)
|
|
@@ -992,22 +992,22 @@ function Yi(i) {
|
|
|
992
992
|
// Async and optimistically optimized update – it will not be executed if
|
|
993
993
|
// not necessary (debounced to run at most once-per-tick)
|
|
994
994
|
update: Li(function() {
|
|
995
|
-
return new Promise(function(
|
|
996
|
-
d.forceUpdate(),
|
|
995
|
+
return new Promise(function(g) {
|
|
996
|
+
d.forceUpdate(), g(h);
|
|
997
997
|
});
|
|
998
998
|
}),
|
|
999
999
|
destroy: function() {
|
|
1000
|
-
v(),
|
|
1000
|
+
v(), y = !0;
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
|
-
if (!
|
|
1003
|
+
if (!re(r, a))
|
|
1004
1004
|
return d;
|
|
1005
|
-
d.setOptions(u).then(function(
|
|
1006
|
-
!
|
|
1005
|
+
d.setOptions(u).then(function(g) {
|
|
1006
|
+
!y && u.onFirstUpdate && u.onFirstUpdate(g);
|
|
1007
1007
|
});
|
|
1008
1008
|
function m() {
|
|
1009
|
-
h.orderedModifiers.forEach(function(
|
|
1010
|
-
var w =
|
|
1009
|
+
h.orderedModifiers.forEach(function(g) {
|
|
1010
|
+
var w = g.name, c = g.options, f = c === void 0 ? {} : c, b = g.effect;
|
|
1011
1011
|
if (typeof b == "function") {
|
|
1012
1012
|
var E = b({
|
|
1013
1013
|
state: h,
|
|
@@ -1021,8 +1021,8 @@ function Yi(i) {
|
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
1023
|
function v() {
|
|
1024
|
-
p.forEach(function(
|
|
1025
|
-
return
|
|
1024
|
+
p.forEach(function(g) {
|
|
1025
|
+
return g();
|
|
1026
1026
|
}), p = [];
|
|
1027
1027
|
}
|
|
1028
1028
|
return d;
|
|
@@ -1073,46 +1073,46 @@ class _t {
|
|
|
1073
1073
|
this.handlers[t][n](e);
|
|
1074
1074
|
}
|
|
1075
1075
|
onTouchStart(t) {
|
|
1076
|
-
var e, n,
|
|
1077
|
-
let
|
|
1076
|
+
var e, n, o, s, l, r, a, u, h, p, y, d, m, v, g, w, c, f, b, E, x, T, S, M, _, O;
|
|
1077
|
+
let D = !1;
|
|
1078
1078
|
if (t.type !== "mousedown") {
|
|
1079
|
-
if (this.touch1 || (this.touch1 = t.changedTouches[0],
|
|
1080
|
-
this.touch2 = [...t.changedTouches].find((
|
|
1079
|
+
if (this.touch1 || (this.touch1 = t.changedTouches[0], D = !0), (D && t.changedTouches.length > 1 || !D) && !this.touch2) {
|
|
1080
|
+
this.touch2 = [...t.changedTouches].find((P) => {
|
|
1081
1081
|
var F;
|
|
1082
|
-
return
|
|
1083
|
-
}) || null, this.originalDistance = Math.sqrt(Math.pow(((n = (e = this.touch2) === null || e === void 0 ? void 0 : e.screenX) !== null && n !== void 0 ? n : 0) - ((
|
|
1082
|
+
return P.identifier !== ((F = this.touch1) === null || F === void 0 ? void 0 : F.identifier);
|
|
1083
|
+
}) || null, this.originalDistance = Math.sqrt(Math.pow(((n = (e = this.touch2) === null || e === void 0 ? void 0 : e.screenX) !== null && n !== void 0 ? n : 0) - ((r = (s = (o = this.touchMove1) === null || o === void 0 ? void 0 : o.screenX) !== null && s !== void 0 ? s : (l = this.touch1) === null || l === void 0 ? void 0 : l.screenX) !== null && r !== void 0 ? r : 0), 2) + Math.pow(((u = (a = this.touch2) === null || a === void 0 ? void 0 : a.screenY) !== null && u !== void 0 ? u : 0) - ((d = (p = (h = this.touchMove1) === null || h === void 0 ? void 0 : h.screenY) !== null && p !== void 0 ? p : (y = this.touch1) === null || y === void 0 ? void 0 : y.screenY) !== null && d !== void 0 ? d : 0), 2)), this.originalAngle = Math.atan2(((v = (m = this.touch2) === null || m === void 0 ? void 0 : m.screenY) !== null && v !== void 0 ? v : 0) - ((f = (w = (g = this.touchMove1) === null || g === void 0 ? void 0 : g.screenY) !== null && w !== void 0 ? w : (c = this.touch1) === null || c === void 0 ? void 0 : c.screenY) !== null && f !== void 0 ? f : 0), ((E = (b = this.touch2) === null || b === void 0 ? void 0 : b.screenX) !== null && E !== void 0 ? E : 0) - ((M = (T = (x = this.touchMove1) === null || x === void 0 ? void 0 : x.screenX) !== null && T !== void 0 ? T : (S = this.touch1) === null || S === void 0 ? void 0 : S.screenX) !== null && M !== void 0 ? M : 0)) / (Math.PI / 180);
|
|
1084
1084
|
return;
|
|
1085
1085
|
}
|
|
1086
|
-
if (!
|
|
1086
|
+
if (!D)
|
|
1087
1087
|
return;
|
|
1088
1088
|
}
|
|
1089
|
-
(
|
|
1089
|
+
(D || t.type === "mousedown") && (this.thresholdX = this.opts.threshold("x", this), this.thresholdY = this.opts.threshold("y", this), this.disregardVelocityThresholdX = this.opts.disregardVelocityThreshold("x", this), this.disregardVelocityThresholdY = this.opts.disregardVelocityThreshold("y", this), this.touchStartX = t.type === "mousedown" ? t.screenX : ((_ = this.touch1) === null || _ === void 0 ? void 0 : _.screenX) || 0, this.touchStartY = t.type === "mousedown" ? t.screenY : ((O = this.touch1) === null || O === void 0 ? void 0 : O.screenY) || 0, this.touchMoveX = null, this.touchMoveY = null, this.touchEndX = null, this.touchEndY = null, this.swipingDirection = null, this.longPressTimer = setTimeout(() => this.fire("longpress", t), this.opts.longPressTime), this.scale = 1, this.rotation = 0, this.fire("panstart", t));
|
|
1090
1090
|
}
|
|
1091
1091
|
onTouchMove(t) {
|
|
1092
|
-
var e, n,
|
|
1092
|
+
var e, n, o, s, l, r, a, u, h, p, y, d, m;
|
|
1093
1093
|
if (t.type === "mousemove" && (!this.touchStartX || this.touchEndX !== null))
|
|
1094
1094
|
return;
|
|
1095
|
-
let v,
|
|
1095
|
+
let v, g;
|
|
1096
1096
|
if (t.type !== "mousemove" && (v = [...t.changedTouches].find((w) => {
|
|
1097
1097
|
var c;
|
|
1098
1098
|
return w.identifier === ((c = this.touch1) === null || c === void 0 ? void 0 : c.identifier);
|
|
1099
|
-
}), this.touchMove1 = v || this.touchMove1,
|
|
1099
|
+
}), this.touchMove1 = v || this.touchMove1, g = [...t.changedTouches].find((w) => {
|
|
1100
1100
|
var c;
|
|
1101
1101
|
return w.identifier === ((c = this.touch2) === null || c === void 0 ? void 0 : c.identifier);
|
|
1102
|
-
}), this.touchMove2 =
|
|
1102
|
+
}), this.touchMove2 = g || this.touchMove2), t.type === "mousemove" || v) {
|
|
1103
1103
|
const w = (t.type === "mousemove" ? t.screenX : (e = v?.screenX) !== null && e !== void 0 ? e : 0) - ((n = this.touchStartX) !== null && n !== void 0 ? n : 0);
|
|
1104
|
-
this.velocityX = w - ((
|
|
1104
|
+
this.velocityX = w - ((o = this.touchMoveX) !== null && o !== void 0 ? o : 0), this.touchMoveX = w;
|
|
1105
1105
|
const c = (t.type === "mousemove" ? t.screenY : (s = v?.screenY) !== null && s !== void 0 ? s : 0) - ((l = this.touchStartY) !== null && l !== void 0 ? l : 0);
|
|
1106
|
-
this.velocityY = c - ((
|
|
1106
|
+
this.velocityY = c - ((r = this.touchMoveY) !== null && r !== void 0 ? r : 0), this.touchMoveY = c;
|
|
1107
1107
|
const f = Math.abs(this.touchMoveX), b = Math.abs(this.touchMoveY);
|
|
1108
1108
|
this.swipingHorizontal = f > this.thresholdX, this.swipingVertical = b > this.thresholdY, this.swipingDirection = f > b ? this.swipingHorizontal ? "horizontal" : "pre-horizontal" : this.swipingVertical ? "vertical" : "pre-vertical", Math.max(f, b) > this.opts.pressThreshold && clearTimeout((a = this.longPressTimer) !== null && a !== void 0 ? a : void 0), this.fire("panmove", t);
|
|
1109
1109
|
}
|
|
1110
|
-
t.type !== "mousemove" && this.touchMove1 != null && this.touchMove2 != null && (this.newDistance = Math.sqrt(Math.pow(this.touchMove2.screenX - this.touchMove1.screenX, 2) + Math.pow(this.touchMove2.screenY - this.touchMove1.screenY, 2)), this.scale = this.newDistance / ((u = this.originalDistance) !== null && u !== void 0 ? u : 0), this.fire("pinch", t), this.newAngle = Math.atan2(((h = this.touchMove2.screenY) !== null && h !== void 0 ? h : 0) - ((p = this.touchMove1.screenY) !== null && p !== void 0 ? p : 0), ((
|
|
1110
|
+
t.type !== "mousemove" && this.touchMove1 != null && this.touchMove2 != null && (this.newDistance = Math.sqrt(Math.pow(this.touchMove2.screenX - this.touchMove1.screenX, 2) + Math.pow(this.touchMove2.screenY - this.touchMove1.screenY, 2)), this.scale = this.newDistance / ((u = this.originalDistance) !== null && u !== void 0 ? u : 0), this.fire("pinch", t), this.newAngle = Math.atan2(((h = this.touchMove2.screenY) !== null && h !== void 0 ? h : 0) - ((p = this.touchMove1.screenY) !== null && p !== void 0 ? p : 0), ((y = this.touchMove2.screenX) !== null && y !== void 0 ? y : 0) - ((d = this.touchMove1.screenX) !== null && d !== void 0 ? d : 0)) / (Math.PI / 180), this.rotation = this.newAngle - ((m = this.originalAngle) !== null && m !== void 0 ? m : 0), this.fire("rotate", t));
|
|
1111
1111
|
}
|
|
1112
1112
|
onTouchEnd(t) {
|
|
1113
|
-
var e, n,
|
|
1114
|
-
let
|
|
1115
|
-
if (t.type !== "mouseup" && (
|
|
1113
|
+
var e, n, o, s, l, r, a, u, h, p;
|
|
1114
|
+
let y;
|
|
1115
|
+
if (t.type !== "mouseup" && (y = [...t.changedTouches].find((d) => {
|
|
1116
1116
|
var m;
|
|
1117
1117
|
return d.identifier === ((m = this.touch1) === null || m === void 0 ? void 0 : m.identifier);
|
|
1118
1118
|
}), [...t.touches].find((d) => {
|
|
@@ -1122,10 +1122,10 @@ class _t {
|
|
|
1122
1122
|
var m;
|
|
1123
1123
|
return d.identifier === ((m = this.touch2) === null || m === void 0 ? void 0 : m.identifier);
|
|
1124
1124
|
}) || (this.touch2 = null, this.touchMove2 = null)), !(t.type === "mouseup" && (!this.touchStartX || this.touchEndX !== null))) {
|
|
1125
|
-
if (t.type === "mouseup" ||
|
|
1126
|
-
this.touchEndX = t.type === "mouseup" ? t.screenX : (e =
|
|
1127
|
-
const d = this.touchEndX - ((s = this.touchStartX) !== null && s !== void 0 ? s : 0), m = Math.abs(d), v = this.touchEndY - ((l = this.touchStartY) !== null && l !== void 0 ? l : 0),
|
|
1128
|
-
m > this.thresholdX ||
|
|
1125
|
+
if (t.type === "mouseup" || y) {
|
|
1126
|
+
this.touchEndX = t.type === "mouseup" ? t.screenX : (e = y?.screenX) !== null && e !== void 0 ? e : 0, this.touchEndY = t.type === "mouseup" ? t.screenY : (n = y?.screenY) !== null && n !== void 0 ? n : 0, this.fire("panend", t), clearTimeout((o = this.longPressTimer) !== null && o !== void 0 ? o : void 0);
|
|
1127
|
+
const d = this.touchEndX - ((s = this.touchStartX) !== null && s !== void 0 ? s : 0), m = Math.abs(d), v = this.touchEndY - ((l = this.touchStartY) !== null && l !== void 0 ? l : 0), g = Math.abs(v), w = Math.sqrt(Math.pow(d, 2) + Math.pow(v, 2)), c = Math.abs(w), f = g / m;
|
|
1128
|
+
m > this.thresholdX || g > this.thresholdY || this.opts.diagonalSwipes && (c > this.thresholdX || c > this.thresholdY) ? (this.swipedHorizontal = m > this.thresholdX || this.opts.diagonalSwipes && c > this.thresholdX, this.swipedVertical = g > this.thresholdY || this.opts.diagonalSwipes && c > this.thresholdY, (!this.opts.diagonalSwipes || f < Math.tan((45 - this.opts.diagonalLimit) * Math.PI / 180) || f > Math.tan((45 + this.opts.diagonalLimit) * Math.PI / 180)) && (m >= g && (this.swipedVertical = !1), g > m && (this.swipedHorizontal = !1)), this.swipedHorizontal && (d < 0 ? (((r = this.velocityX) !== null && r !== void 0 ? r : 0) < -this.opts.velocityThreshold || w < -this.disregardVelocityThresholdX) && this.fire("swipeleft", t) : (((a = this.velocityX) !== null && a !== void 0 ? a : 0) > this.opts.velocityThreshold || w > this.disregardVelocityThresholdX) && this.fire("swiperight", t)), this.swipedVertical && (v < 0 ? (((u = this.velocityY) !== null && u !== void 0 ? u : 0) < -this.opts.velocityThreshold || w < -this.disregardVelocityThresholdY) && this.fire("swipeup", t) : (((h = this.velocityY) !== null && h !== void 0 ? h : 0) > this.opts.velocityThreshold || w > this.disregardVelocityThresholdY) && this.fire("swipedown", t))) : m < this.opts.pressThreshold && g < this.opts.pressThreshold && (this.doubleTapWaiting ? (this.doubleTapWaiting = !1, clearTimeout((p = this.doubleTapTimer) !== null && p !== void 0 ? p : void 0), this.fire("doubletap", t)) : (this.doubleTapWaiting = !0, this.doubleTapTimer = setTimeout(() => this.doubleTapWaiting = !1, this.opts.doubleTapTime), this.fire("tap", t)));
|
|
1129
1129
|
}
|
|
1130
1130
|
!this.touch1 && !this.touch2 && (this.fire("pinchend", t), this.fire("rotateend", t), this.originalDistance = null, this.newDistance = null, this.scale = null, this.originalAngle = null, this.newAngle = null, this.rotation = null);
|
|
1131
1131
|
}
|
|
@@ -1152,8 +1152,8 @@ try {
|
|
|
1152
1152
|
} catch {
|
|
1153
1153
|
}
|
|
1154
1154
|
class Vi {
|
|
1155
|
-
constructor(t, e, n,
|
|
1156
|
-
if (this.cfg = t, this.hTag = e, this.appPixi = n, this.main =
|
|
1155
|
+
constructor(t, e, n, o, s, l, r, a, u) {
|
|
1156
|
+
if (this.cfg = t, this.hTag = e, this.appPixi = n, this.main = o, this.layMng = s, this.val = l, this.scrItr = a, this.sys = u, e.clear_event = (c) => L.clear_event(c), e.event = (c) => this.#b(c), e.set_cancel_skip = () => !1, e.set_focus = (c) => this.#w(c), r.setEvtMng(this), a.setOtherObj(this, s), Se.setEvtMng(this, u, a), s.setEvtMng(this), k.setFcs(this.#t), u.setFire((c, f) => k.fire(c, f)), it.isDbg) {
|
|
1157
1157
|
const c = {
|
|
1158
1158
|
pause: () => {
|
|
1159
1159
|
if (!k.isWait) return;
|
|
@@ -1199,37 +1199,37 @@ class Vi {
|
|
|
1199
1199
|
.sn_hint[data-popper-placement^='bottom'] > .sn_hint_ar {top: -4px;}
|
|
1200
1200
|
.sn_hint[data-popper-placement^='left'] > .sn_hint_ar {right: -4px;}
|
|
1201
1201
|
.sn_hint[data-popper-placement^='right'] > .sn_hint_ar {left: -4px;}
|
|
1202
|
-
`),
|
|
1202
|
+
`), o.cvs.parentElement?.insertAdjacentHTML("beforeend", `
|
|
1203
1203
|
<div class="sn_hint" role="tooltip">
|
|
1204
1204
|
<span>Dummy</span>
|
|
1205
1205
|
<div class="sn_hint_ar" data-popper-arrow></div>
|
|
1206
|
-
</div>`), this.#i = document.querySelector(".sn_hint"), this.#u = this.#i.querySelector("span"), this.#d = Hi(this.#v, this.#i), this.#i.hidden = !0, n.stage.interactive = !0, this.#e.add(document.body, G, (c) => this.#
|
|
1206
|
+
</div>`), this.#i = document.querySelector(".sn_hint"), this.#u = this.#i.querySelector("span"), this.#d = Hi(this.#v, this.#i), this.#i.hidden = !0, n.stage.interactive = !0, this.#e.add(document.body, G, (c) => this.#r(c)), this.#e.add(document.body, "keyup", () => L.resetFired()), this.#e.add(o.cvs, "contextmenu", (c) => {
|
|
1207
1207
|
const f = this.#s(c) + "rightclick";
|
|
1208
1208
|
k.fire(f, c, !0), c.preventDefault();
|
|
1209
1209
|
});
|
|
1210
|
-
const { width: h, height: p } = t.oCfg.window,
|
|
1211
|
-
this.#
|
|
1210
|
+
const { width: h, height: p } = t.oCfg.window, y = Math.floor(h > p ? p / 3 : h / 3);
|
|
1211
|
+
this.#o = new _t(o.cvs, {
|
|
1212
1212
|
velocityThreshold: 0,
|
|
1213
|
-
disregardVelocityThreshold: (c) => Math.floor(
|
|
1213
|
+
disregardVelocityThreshold: (c) => Math.floor(y * (c === "x" ? 1 : 0.5))
|
|
1214
1214
|
});
|
|
1215
1215
|
let d = !1;
|
|
1216
|
-
this.#
|
|
1216
|
+
this.#o.on("tap", (c) => {
|
|
1217
1217
|
if (d) return;
|
|
1218
1218
|
if (c instanceof TouchEvent) {
|
|
1219
|
-
k.fire("click", c, !0),
|
|
1219
|
+
k.fire("click", c, !0), L.resetFired();
|
|
1220
1220
|
return;
|
|
1221
1221
|
}
|
|
1222
1222
|
if (c.button > 1) return;
|
|
1223
1223
|
const f = this.#s(c) + `${this.#a.get(c.button) ?? ""}click`;
|
|
1224
|
-
k.fire(f, c, !0),
|
|
1225
|
-
}), this.#e.add(window, "pointerup", () =>
|
|
1224
|
+
k.fire(f, c, !0), L.resetFired();
|
|
1225
|
+
}), this.#e.add(window, "pointerup", () => L.resetFired()), this.#e.add(window, "pointerout", () => L.resetFired()), this.#o.on("longpress", (c) => {
|
|
1226
1226
|
if (d = !0, c instanceof TouchEvent) {
|
|
1227
1227
|
k.fire("longpress", c, !0);
|
|
1228
1228
|
return;
|
|
1229
1229
|
}
|
|
1230
1230
|
const f = this.#s(c) + `${this.#a.get(c.button) ?? ""}longpress`;
|
|
1231
1231
|
k.fire(f, c, !0);
|
|
1232
|
-
}), this.#
|
|
1232
|
+
}), this.#o.on("panend", () => {
|
|
1233
1233
|
d && queueMicrotask(() => {
|
|
1234
1234
|
d = !1;
|
|
1235
1235
|
});
|
|
@@ -1239,7 +1239,7 @@ class Vi {
|
|
|
1239
1239
|
"swipeup",
|
|
1240
1240
|
"swipedown"
|
|
1241
1241
|
].forEach((c) => {
|
|
1242
|
-
this.#
|
|
1242
|
+
this.#o.on(c, (f) => {
|
|
1243
1243
|
if (f instanceof TouchEvent) {
|
|
1244
1244
|
k.fire(c, f, !0);
|
|
1245
1245
|
return;
|
|
@@ -1254,15 +1254,15 @@ class Vi {
|
|
|
1254
1254
|
}), m();
|
|
1255
1255
|
const v = (c) => {
|
|
1256
1256
|
it.isDarkMode = c.matches, l.setVal_Nochk("tmp", "const.sn.isDarkMode", it.isDarkMode);
|
|
1257
|
-
},
|
|
1258
|
-
v(
|
|
1257
|
+
}, g = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
1258
|
+
v(g), this.#e.add(g, "change", (c) => {
|
|
1259
1259
|
v(c), k.fire("sn:chgDarkMode", c);
|
|
1260
1260
|
});
|
|
1261
1261
|
let w = (c, f) => {
|
|
1262
1262
|
};
|
|
1263
|
-
"WheelEvent" in globalThis && (this.#e.add(
|
|
1263
|
+
"WheelEvent" in globalThis && (this.#e.add(o.cvs, "wheel", (c) => this.#f(c), { passive: !0 }), this.#l = (c) => this.#e.add(c, "wheel", (f) => this.#f(f), { passive: !0 }), w = (c, f) => c.add(o.cvs, "wheel", (b) => {
|
|
1264
1264
|
b.deltaY <= 0 || (b.stopPropagation(), f());
|
|
1265
|
-
})), k.init(t, e,
|
|
1265
|
+
})), k.init(t, e, o, l, a, s, this, r, w), import("./gamepad.js").then((c) => c.g).then(({ GamepadListener: c }) => {
|
|
1266
1266
|
const f = new c({
|
|
1267
1267
|
analog: !1,
|
|
1268
1268
|
deadZone: 0.3
|
|
@@ -1327,14 +1327,14 @@ class Vi {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
#e = new se();
|
|
1329
1329
|
#t = new De();
|
|
1330
|
-
#
|
|
1330
|
+
#o;
|
|
1331
1331
|
#a = /* @__PURE__ */ new Map([
|
|
1332
1332
|
[0, ""],
|
|
1333
1333
|
[1, "middle"]
|
|
1334
1334
|
// [2, 'right'],
|
|
1335
1335
|
]);
|
|
1336
1336
|
resvFlameEvent(t) {
|
|
1337
|
-
this.#e.add(t, G, (e) => this.#
|
|
1337
|
+
this.#e.add(t, G, (e) => this.#r(e)), this.#e.add(t, "contextmenu", (e) => {
|
|
1338
1338
|
k.fire(this.#s(e) + "rightclick", e, !0), e.preventDefault();
|
|
1339
1339
|
}), this.#l(t), this.#e.add(t, Oe, (e) => {
|
|
1340
1340
|
if (e instanceof TouchEvent) {
|
|
@@ -1344,11 +1344,11 @@ class Vi {
|
|
|
1344
1344
|
if (e.button > 1) return;
|
|
1345
1345
|
const n = this.#s(e) + `${this.#a.get(e.button) ?? ""}click`;
|
|
1346
1346
|
k.fire(n, e, !0);
|
|
1347
|
-
}), this.#e.add(t, "pointerup", () =>
|
|
1347
|
+
}), this.#e.add(t, "pointerup", () => L.resetFired()), this.#e.add(t, "pointerout", () => L.resetFired());
|
|
1348
1348
|
}
|
|
1349
1349
|
#l = (t) => {
|
|
1350
1350
|
};
|
|
1351
|
-
#
|
|
1351
|
+
#r(t) {
|
|
1352
1352
|
t.isComposing || (t.key in this.#n && (this.#n[t.key] = t.repeat ? 2 : 1), t.preventDefault(), k.fire(ke.modKey(t) + t.key, t, !0));
|
|
1353
1353
|
}
|
|
1354
1354
|
#s(t) {
|
|
@@ -1377,22 +1377,21 @@ class Vi {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
destroy() {
|
|
1379
1379
|
for (const t of Array.from(document.getElementsByClassName("sn_hint"))) t.parentElement?.removeChild(t);
|
|
1380
|
-
this.#
|
|
1380
|
+
this.#o.destroy(), L.destroy(), this.#t.destroy(), this.#e.clear();
|
|
1381
1381
|
}
|
|
1382
1382
|
unButton(t) {
|
|
1383
1383
|
this.#t.remove(t);
|
|
1384
1384
|
}
|
|
1385
|
-
button(t, e, n,
|
|
1385
|
+
button(t, e, n, o, s) {
|
|
1386
1386
|
!t.fn && !t.label && !t.url && this.main.errScript("fnまたはlabelまたはurlは必須です"), t.fn ??= this.scrItr.scriptFn, e.interactive = !0, e.cursor = "pointer";
|
|
1387
|
-
const l = t.key?.toLowerCase() ?? " ",
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
g.preventDefault(), D.isFirstFire() && k.fire(l, g, !0);
|
|
1387
|
+
const l = t.key?.toLowerCase() ?? " ", r = J(t, "global", !1);
|
|
1388
|
+
L.setEvt2Fnc(r, l, () => this.main.resumeByJumpOrCall(t)), e.on(_e, (p) => {
|
|
1389
|
+
p.preventDefault?.(), k.fire(l, p, !0);
|
|
1391
1390
|
});
|
|
1392
1391
|
const a = t.hint ? () => this.#y(t, e) : () => {
|
|
1393
1392
|
}, u = () => {
|
|
1394
1393
|
n(), this.#i.hidden = !0;
|
|
1395
|
-
}, h = () => (a(),
|
|
1394
|
+
}, h = () => (a(), o());
|
|
1396
1395
|
if (e.on("pointerover", h), e.on("pointerout", () => {
|
|
1397
1396
|
this.#t.isFocus(e) ? h() : u();
|
|
1398
1397
|
}), e.on("pointerdown", () => {
|
|
@@ -1411,12 +1410,12 @@ class Vi {
|
|
|
1411
1410
|
})), t.leavese && (t.leavesebuf ??= "SYS", this.cfg.searchPath(t.leavese, Lt.SOUND), e.on("pointerout", () => {
|
|
1412
1411
|
this.hTag.playse({ fn: t.leavese, buf: t.leavesebuf, join: !1 });
|
|
1413
1412
|
})), t.onenter) {
|
|
1414
|
-
const p = l + t.onenter.toLowerCase(),
|
|
1415
|
-
|
|
1413
|
+
const p = l + t.onenter.toLowerCase(), y = { fn: t.fn, label: t.onenter, call: !0, key: p };
|
|
1414
|
+
L.setEvt2Fnc(r, p, () => this.main.resumeByJumpOrCall(y)), e.on("pointerover", (d) => k.fire(p, d));
|
|
1416
1415
|
}
|
|
1417
1416
|
if (t.onleave) {
|
|
1418
|
-
const p = l + t.onleave.toLowerCase(),
|
|
1419
|
-
|
|
1417
|
+
const p = l + t.onleave.toLowerCase(), y = { fn: t.fn, label: t.onleave, call: !0, key: p };
|
|
1418
|
+
L.setEvt2Fnc(r, p, () => this.main.resumeByJumpOrCall(y)), e.on("pointerout", (d) => k.fire(p, d));
|
|
1420
1419
|
}
|
|
1421
1420
|
}
|
|
1422
1421
|
#v = {
|
|
@@ -1472,14 +1471,14 @@ class Vi {
|
|
|
1472
1471
|
#b(t) {
|
|
1473
1472
|
const e = t.key;
|
|
1474
1473
|
if (!e) throw "keyは必須です";
|
|
1475
|
-
const n = e.toLowerCase(),
|
|
1474
|
+
const n = e.toLowerCase(), o = J(t, "call", !1), s = J(t, "global", !1), { fn: l, label: r, url: a } = t;
|
|
1476
1475
|
if (J(t, "del", !1)) {
|
|
1477
|
-
if (l ||
|
|
1478
|
-
return
|
|
1476
|
+
if (l || r || o || a) throw "fn/label/callとdelは同時指定できません";
|
|
1477
|
+
return L.clear_eventer(e, s, n), !1;
|
|
1479
1478
|
}
|
|
1480
|
-
if (!l && !
|
|
1479
|
+
if (!l && !r && !a) throw "fn,label,url いずれかは必須です";
|
|
1481
1480
|
if (t.fn ??= this.scrItr.scriptFn, e.startsWith("dom=")) {
|
|
1482
|
-
const u =
|
|
1481
|
+
const u = L.getHtmlElmList(e);
|
|
1483
1482
|
if (u.el.length === 0) {
|
|
1484
1483
|
if (J(t, "need_err", !0)) throw `HTML内にセレクタ(${u.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
1485
1484
|
return !1;
|
|
@@ -1498,15 +1497,15 @@ class Vi {
|
|
|
1498
1497
|
h = ["input", "change"];
|
|
1499
1498
|
break;
|
|
1500
1499
|
}
|
|
1501
|
-
const
|
|
1502
|
-
for (let d = 0; d <
|
|
1500
|
+
const y = h.length;
|
|
1501
|
+
for (let d = 0; d < y; ++d) {
|
|
1503
1502
|
const m = h[d];
|
|
1504
1503
|
u.el.forEach((v) => {
|
|
1505
|
-
this.#e.add(v, m, (
|
|
1506
|
-
if (!k.isWait || this.layMng.getFrmDisabled(u.id) || m === G &&
|
|
1504
|
+
this.#e.add(v, m, (g) => {
|
|
1505
|
+
if (!k.isWait || this.layMng.getFrmDisabled(u.id) || m === G && g.key !== "Enter") return;
|
|
1507
1506
|
const w = v.dataset;
|
|
1508
1507
|
for (const [c, f] of Object.entries(w)) this.val.setVal_Nochk("tmp", `sn.event.domdata.${c}`, f);
|
|
1509
|
-
k.fire(e,
|
|
1508
|
+
k.fire(e, g);
|
|
1510
1509
|
}), d === 0 && this.#t.add(
|
|
1511
1510
|
v,
|
|
1512
1511
|
() => this.#g(v) ? (v.focus(), !0) : !1,
|
|
@@ -1516,7 +1515,7 @@ class Vi {
|
|
|
1516
1515
|
});
|
|
1517
1516
|
}
|
|
1518
1517
|
}
|
|
1519
|
-
return
|
|
1518
|
+
return L.setEvt2Fnc(s, n, () => this.main.resumeByJumpOrCall(t)), !1;
|
|
1520
1519
|
}
|
|
1521
1520
|
#g(t) {
|
|
1522
1521
|
if (!t || t.offsetParent === null) return !1;
|
|
@@ -1529,9 +1528,9 @@ class Vi {
|
|
|
1529
1528
|
}
|
|
1530
1529
|
// フォーカス移動
|
|
1531
1530
|
#w(t) {
|
|
1532
|
-
const { add: e, del: n, to:
|
|
1531
|
+
const { add: e, del: n, to: o } = t;
|
|
1533
1532
|
if (e?.startsWith("dom=")) {
|
|
1534
|
-
const s =
|
|
1533
|
+
const s = L.getHtmlElmList(e);
|
|
1535
1534
|
if (s.el.length === 0 && J(t, "need_err", !0)) throw `HTML内にセレクタ(${s.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
1536
1535
|
return s.el.forEach((l) => this.#t.add(
|
|
1537
1536
|
l,
|
|
@@ -1541,12 +1540,12 @@ class Vi {
|
|
|
1541
1540
|
)), !1;
|
|
1542
1541
|
}
|
|
1543
1542
|
if (n?.startsWith("dom=")) {
|
|
1544
|
-
const s =
|
|
1543
|
+
const s = L.getHtmlElmList(n);
|
|
1545
1544
|
if (s.el.length === 0 && J(t, "need_err", !0)) throw `HTML内にセレクタ(${s.sel})に対応する要素が見つかりません。存在しない場合を許容するなら、need_err=false と指定してください`;
|
|
1546
1545
|
return s.el.forEach((l) => this.#t.remove(l)), !1;
|
|
1547
1546
|
}
|
|
1548
|
-
if (!
|
|
1549
|
-
switch (
|
|
1547
|
+
if (!o) throw "[set_focus] add か to は必須です";
|
|
1548
|
+
switch (o) {
|
|
1550
1549
|
case "null":
|
|
1551
1550
|
this.#t.blur();
|
|
1552
1551
|
break;
|