@raspberrypifoundation/design-system-react 2.7.3 → 2.9.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/README.md +16 -7
- package/dist/design-system-react.css +1 -1
- package/dist/design-system-react.js +3284 -830
- package/dist/design-system-react.umd.cjs +16 -13
- package/dist/scss/components/switch.scss +179 -0
- package/dist/scss/design-system-core.scss +3 -2
- package/dist/scss/properties/colors/_greys.scss +1 -0
- package/dist/scss/utility/_visually-hidden.scss +11 -0
- package/dist/types/lib/main.d.ts +10 -0
- package/dist/types/lib/main.d.ts.map +1 -1
- package/dist/types/src/components/Button/index.d.ts.map +1 -1
- package/dist/types/src/components/Form/Switch/Switch.spec.d.ts +2 -0
- package/dist/types/src/components/Form/Switch/Switch.spec.d.ts.map +1 -0
- package/dist/types/src/components/Form/Switch/Switch.types.d.ts +24 -0
- package/dist/types/src/components/Form/Switch/Switch.types.d.ts.map +1 -0
- package/dist/types/src/components/Form/Switch/index.d.ts +16 -0
- package/dist/types/src/components/Form/Switch/index.d.ts.map +1 -0
- package/dist/types/src/components/Menu/Menu.types.d.ts +6 -0
- package/dist/types/src/components/Menu/Menu.types.d.ts.map +1 -0
- package/dist/types/src/components/Menu/MenuButton/MenuButton.types.d.ts +7 -0
- package/dist/types/src/components/Menu/MenuButton/MenuButton.types.d.ts.map +1 -0
- package/dist/types/src/components/Menu/MenuButton/index.d.ts +4 -0
- package/dist/types/src/components/Menu/MenuButton/index.d.ts.map +1 -0
- package/dist/types/src/components/Menu/MenuItem/MenuItem.types.d.ts +11 -0
- package/dist/types/src/components/Menu/MenuItem/MenuItem.types.d.ts.map +1 -0
- package/dist/types/src/components/Menu/MenuItem/index.d.ts +6 -0
- package/dist/types/src/components/Menu/MenuItem/index.d.ts.map +1 -0
- package/dist/types/src/components/Menu/MenuTitle/MenuTitle.types.d.ts +4 -0
- package/dist/types/src/components/Menu/MenuTitle/MenuTitle.types.d.ts.map +1 -0
- package/dist/types/src/components/Menu/MenuTitle/index.d.ts +5 -0
- package/dist/types/src/components/Menu/MenuTitle/index.d.ts.map +1 -0
- package/dist/types/src/components/Menu/index.d.ts +5 -0
- package/dist/types/src/components/Menu/index.d.ts.map +1 -0
- package/dist/types/src/stories/Menu/Menu.stories.d.ts +8 -0
- package/dist/types/src/stories/Menu/Menu.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Menu/MenuButton.stories.d.ts +7 -0
- package/dist/types/src/stories/Menu/MenuButton.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Menu/MenuItem.stories.d.ts +9 -0
- package/dist/types/src/stories/Menu/MenuItem.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Menu/MenuTitle.stories.d.ts +7 -0
- package/dist/types/src/stories/Menu/MenuTitle.stories.d.ts.map +1 -0
- package/dist/types/src/stories/forms/Switch.stories.d.ts +54 -0
- package/dist/types/src/stories/forms/Switch.stories.d.ts.map +1 -0
- package/package.json +18 -13
- package/CHANGELOG.md +0 -334
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { jsxs as q, jsx as E, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import rr, { forwardRef as kt, useRef as Rt, useEffect as We, useLayoutEffect as On, useState as or, createElement as Tt } from "react";
|
|
4
|
+
import * as ir from "react-dom";
|
|
5
|
+
function An(e) {
|
|
4
6
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
7
|
}
|
|
6
|
-
var
|
|
8
|
+
var at = { exports: {} };
|
|
7
9
|
/*!
|
|
8
10
|
Copyright (c) 2018 Jed Watson.
|
|
9
11
|
Licensed under the MIT License (MIT), see
|
|
10
12
|
http://jedwatson.github.io/classnames
|
|
11
13
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
return
|
|
14
|
+
var Vt;
|
|
15
|
+
function sr() {
|
|
16
|
+
return Vt || (Vt = 1, (function(e) {
|
|
15
17
|
(function() {
|
|
16
18
|
var t = {}.hasOwnProperty;
|
|
17
|
-
function
|
|
18
|
-
for (var
|
|
19
|
-
var
|
|
20
|
-
|
|
19
|
+
function r() {
|
|
20
|
+
for (var i = "", s = 0; s < arguments.length; s++) {
|
|
21
|
+
var a = arguments[s];
|
|
22
|
+
a && (i = o(i, n(a)));
|
|
21
23
|
}
|
|
22
|
-
return
|
|
24
|
+
return i;
|
|
23
25
|
}
|
|
24
|
-
function n(
|
|
25
|
-
if (typeof
|
|
26
|
-
return
|
|
27
|
-
if (typeof
|
|
26
|
+
function n(i) {
|
|
27
|
+
if (typeof i == "string" || typeof i == "number")
|
|
28
|
+
return i;
|
|
29
|
+
if (typeof i != "object")
|
|
28
30
|
return "";
|
|
29
|
-
if (Array.isArray(
|
|
30
|
-
return
|
|
31
|
-
if (
|
|
32
|
-
return
|
|
33
|
-
var
|
|
34
|
-
for (var
|
|
35
|
-
t.call(
|
|
36
|
-
return
|
|
31
|
+
if (Array.isArray(i))
|
|
32
|
+
return r.apply(null, i);
|
|
33
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
34
|
+
return i.toString();
|
|
35
|
+
var s = "";
|
|
36
|
+
for (var a in i)
|
|
37
|
+
t.call(i, a) && i[a] && (s = o(s, a));
|
|
38
|
+
return s;
|
|
37
39
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
+
function o(i, s) {
|
|
41
|
+
return s ? i ? i + " " + s : i + s : i;
|
|
40
42
|
}
|
|
41
|
-
e.exports ? (
|
|
43
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
42
44
|
})();
|
|
43
|
-
}(
|
|
45
|
+
})(at)), at.exports;
|
|
44
46
|
}
|
|
45
|
-
var
|
|
46
|
-
const
|
|
47
|
-
var
|
|
47
|
+
var ar = sr();
|
|
48
|
+
const ee = /* @__PURE__ */ An(ar);
|
|
49
|
+
var Me = { exports: {} }, De = { exports: {} }, Y = {};
|
|
48
50
|
/** @license React v16.13.1
|
|
49
51
|
* react-is.production.min.js
|
|
50
52
|
*
|
|
@@ -53,73 +55,73 @@ var Z = { exports: {} }, K = { exports: {} }, C = {};
|
|
|
53
55
|
* This source code is licensed under the MIT license found in the
|
|
54
56
|
* LICENSE file in the root directory of this source tree.
|
|
55
57
|
*/
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
if (
|
|
59
|
-
|
|
60
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
61
|
-
function
|
|
62
|
-
if (typeof
|
|
63
|
-
var
|
|
64
|
-
switch (
|
|
58
|
+
var Yt;
|
|
59
|
+
function cr() {
|
|
60
|
+
if (Yt) return Y;
|
|
61
|
+
Yt = 1;
|
|
62
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
63
|
+
function y(b) {
|
|
64
|
+
if (typeof b == "object" && b !== null) {
|
|
65
|
+
var k = b.$$typeof;
|
|
66
|
+
switch (k) {
|
|
65
67
|
case t:
|
|
66
|
-
switch (
|
|
67
|
-
case
|
|
68
|
-
case
|
|
68
|
+
switch (b = b.type, b) {
|
|
69
|
+
case l:
|
|
70
|
+
case c:
|
|
69
71
|
case n:
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case
|
|
73
|
-
return
|
|
72
|
+
case i:
|
|
73
|
+
case o:
|
|
74
|
+
case d:
|
|
75
|
+
return b;
|
|
74
76
|
default:
|
|
75
|
-
switch (
|
|
76
|
-
case
|
|
77
|
-
case d:
|
|
78
|
-
case I:
|
|
79
|
-
case A:
|
|
77
|
+
switch (b = b && b.$$typeof, b) {
|
|
78
|
+
case a:
|
|
80
79
|
case f:
|
|
81
|
-
|
|
80
|
+
case v:
|
|
81
|
+
case u:
|
|
82
|
+
case s:
|
|
83
|
+
return b;
|
|
82
84
|
default:
|
|
83
|
-
return
|
|
85
|
+
return k;
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
case
|
|
87
|
-
return
|
|
88
|
+
case r:
|
|
89
|
+
return k;
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
93
|
+
function T(b) {
|
|
94
|
+
return y(b) === c;
|
|
93
95
|
}
|
|
94
|
-
return
|
|
95
|
-
return
|
|
96
|
-
},
|
|
97
|
-
return
|
|
98
|
-
},
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
return typeof
|
|
102
|
-
},
|
|
103
|
-
return
|
|
104
|
-
},
|
|
105
|
-
return
|
|
106
|
-
},
|
|
107
|
-
return
|
|
108
|
-
},
|
|
109
|
-
return
|
|
110
|
-
},
|
|
111
|
-
return
|
|
112
|
-
},
|
|
113
|
-
return
|
|
114
|
-
},
|
|
115
|
-
return
|
|
116
|
-
},
|
|
117
|
-
return
|
|
118
|
-
},
|
|
119
|
-
return typeof
|
|
120
|
-
},
|
|
121
|
-
}
|
|
122
|
-
var
|
|
96
|
+
return Y.AsyncMode = l, Y.ConcurrentMode = c, Y.ContextConsumer = a, Y.ContextProvider = s, Y.Element = t, Y.ForwardRef = f, Y.Fragment = n, Y.Lazy = v, Y.Memo = u, Y.Portal = r, Y.Profiler = i, Y.StrictMode = o, Y.Suspense = d, Y.isAsyncMode = function(b) {
|
|
97
|
+
return T(b) || y(b) === l;
|
|
98
|
+
}, Y.isConcurrentMode = T, Y.isContextConsumer = function(b) {
|
|
99
|
+
return y(b) === a;
|
|
100
|
+
}, Y.isContextProvider = function(b) {
|
|
101
|
+
return y(b) === s;
|
|
102
|
+
}, Y.isElement = function(b) {
|
|
103
|
+
return typeof b == "object" && b !== null && b.$$typeof === t;
|
|
104
|
+
}, Y.isForwardRef = function(b) {
|
|
105
|
+
return y(b) === f;
|
|
106
|
+
}, Y.isFragment = function(b) {
|
|
107
|
+
return y(b) === n;
|
|
108
|
+
}, Y.isLazy = function(b) {
|
|
109
|
+
return y(b) === v;
|
|
110
|
+
}, Y.isMemo = function(b) {
|
|
111
|
+
return y(b) === u;
|
|
112
|
+
}, Y.isPortal = function(b) {
|
|
113
|
+
return y(b) === r;
|
|
114
|
+
}, Y.isProfiler = function(b) {
|
|
115
|
+
return y(b) === i;
|
|
116
|
+
}, Y.isStrictMode = function(b) {
|
|
117
|
+
return y(b) === o;
|
|
118
|
+
}, Y.isSuspense = function(b) {
|
|
119
|
+
return y(b) === d;
|
|
120
|
+
}, Y.isValidElementType = function(b) {
|
|
121
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === o || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === u || b.$$typeof === s || b.$$typeof === a || b.$$typeof === f || b.$$typeof === O || b.$$typeof === A || b.$$typeof === I || b.$$typeof === p);
|
|
122
|
+
}, Y.typeOf = y, Y;
|
|
123
|
+
}
|
|
124
|
+
var U = {};
|
|
123
125
|
/** @license React v16.13.1
|
|
124
126
|
* react-is.development.js
|
|
125
127
|
*
|
|
@@ -128,477 +130,477 @@ var R = {};
|
|
|
128
130
|
* This source code is licensed under the MIT license found in the
|
|
129
131
|
* LICENSE file in the root directory of this source tree.
|
|
130
132
|
*/
|
|
131
|
-
var
|
|
132
|
-
function
|
|
133
|
-
return
|
|
134
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103,
|
|
135
|
-
function
|
|
136
|
-
return typeof
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
function
|
|
140
|
-
if (typeof
|
|
141
|
-
var
|
|
142
|
-
switch (
|
|
133
|
+
var Ut;
|
|
134
|
+
function lr() {
|
|
135
|
+
return Ut || (Ut = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
136
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, d = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, u = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
|
|
137
|
+
function y(C) {
|
|
138
|
+
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
139
|
+
C === n || C === c || C === i || C === o || C === d || C === h || typeof C == "object" && C !== null && (C.$$typeof === v || C.$$typeof === u || C.$$typeof === s || C.$$typeof === a || C.$$typeof === f || C.$$typeof === O || C.$$typeof === A || C.$$typeof === I || C.$$typeof === p);
|
|
140
|
+
}
|
|
141
|
+
function T(C) {
|
|
142
|
+
if (typeof C == "object" && C !== null) {
|
|
143
|
+
var re = C.$$typeof;
|
|
144
|
+
switch (re) {
|
|
143
145
|
case t:
|
|
144
|
-
var
|
|
145
|
-
switch (
|
|
146
|
-
case
|
|
147
|
-
case
|
|
146
|
+
var fe = C.type;
|
|
147
|
+
switch (fe) {
|
|
148
|
+
case l:
|
|
149
|
+
case c:
|
|
148
150
|
case n:
|
|
149
|
-
case
|
|
150
|
-
case
|
|
151
|
-
case
|
|
152
|
-
return
|
|
151
|
+
case i:
|
|
152
|
+
case o:
|
|
153
|
+
case d:
|
|
154
|
+
return fe;
|
|
153
155
|
default:
|
|
154
|
-
var
|
|
155
|
-
switch (
|
|
156
|
-
case
|
|
157
|
-
case d:
|
|
158
|
-
case I:
|
|
159
|
-
case A:
|
|
156
|
+
var ae = fe && fe.$$typeof;
|
|
157
|
+
switch (ae) {
|
|
158
|
+
case a:
|
|
160
159
|
case f:
|
|
161
|
-
|
|
160
|
+
case v:
|
|
161
|
+
case u:
|
|
162
|
+
case s:
|
|
163
|
+
return ae;
|
|
162
164
|
default:
|
|
163
|
-
return
|
|
165
|
+
return re;
|
|
164
166
|
}
|
|
165
167
|
}
|
|
166
|
-
case
|
|
167
|
-
return
|
|
168
|
+
case r:
|
|
169
|
+
return re;
|
|
168
170
|
}
|
|
169
171
|
}
|
|
170
172
|
}
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
return
|
|
173
|
+
var b = l, k = c, H = a, K = s, J = t, Z = f, G = n, B = v, te = u, z = r, L = i, j = o, V = d, M = !1;
|
|
174
|
+
function R(C) {
|
|
175
|
+
return M || (M = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(C) || T(C) === l;
|
|
174
176
|
}
|
|
175
|
-
function
|
|
176
|
-
return
|
|
177
|
+
function m(C) {
|
|
178
|
+
return T(C) === c;
|
|
177
179
|
}
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
+
function w(C) {
|
|
181
|
+
return T(C) === a;
|
|
180
182
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
183
|
+
function F(C) {
|
|
184
|
+
return T(C) === s;
|
|
183
185
|
}
|
|
184
|
-
function
|
|
185
|
-
return typeof
|
|
186
|
+
function W(C) {
|
|
187
|
+
return typeof C == "object" && C !== null && C.$$typeof === t;
|
|
186
188
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
189
|
+
function S(C) {
|
|
190
|
+
return T(C) === f;
|
|
189
191
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
192
|
+
function P(C) {
|
|
193
|
+
return T(C) === n;
|
|
192
194
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
195
|
+
function g(C) {
|
|
196
|
+
return T(C) === v;
|
|
195
197
|
}
|
|
196
|
-
function _(
|
|
197
|
-
return
|
|
198
|
+
function _(C) {
|
|
199
|
+
return T(C) === u;
|
|
198
200
|
}
|
|
199
|
-
function
|
|
200
|
-
return
|
|
201
|
+
function N(C) {
|
|
202
|
+
return T(C) === r;
|
|
201
203
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
204
|
+
function $(C) {
|
|
205
|
+
return T(C) === i;
|
|
204
206
|
}
|
|
205
|
-
function
|
|
206
|
-
return
|
|
207
|
+
function D(C) {
|
|
208
|
+
return T(C) === o;
|
|
207
209
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
210
|
+
function X(C) {
|
|
211
|
+
return T(C) === d;
|
|
210
212
|
}
|
|
211
|
-
|
|
212
|
-
}()),
|
|
213
|
+
U.AsyncMode = b, U.ConcurrentMode = k, U.ContextConsumer = H, U.ContextProvider = K, U.Element = J, U.ForwardRef = Z, U.Fragment = G, U.Lazy = B, U.Memo = te, U.Portal = z, U.Profiler = L, U.StrictMode = j, U.Suspense = V, U.isAsyncMode = R, U.isConcurrentMode = m, U.isContextConsumer = w, U.isContextProvider = F, U.isElement = W, U.isForwardRef = S, U.isFragment = P, U.isLazy = g, U.isMemo = _, U.isPortal = N, U.isProfiler = $, U.isStrictMode = D, U.isSuspense = X, U.isValidElementType = y, U.typeOf = T;
|
|
214
|
+
})()), U;
|
|
213
215
|
}
|
|
214
|
-
var
|
|
215
|
-
function
|
|
216
|
-
return
|
|
216
|
+
var Ht;
|
|
217
|
+
function Pn() {
|
|
218
|
+
return Ht || (Ht = 1, process.env.NODE_ENV === "production" ? De.exports = cr() : De.exports = lr()), De.exports;
|
|
217
219
|
}
|
|
218
220
|
/*
|
|
219
221
|
object-assign
|
|
220
222
|
(c) Sindre Sorhus
|
|
221
223
|
@license MIT
|
|
222
224
|
*/
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
if (
|
|
226
|
-
|
|
227
|
-
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty,
|
|
228
|
-
function n(
|
|
229
|
-
if (
|
|
225
|
+
var ct, Kt;
|
|
226
|
+
function ur() {
|
|
227
|
+
if (Kt) return ct;
|
|
228
|
+
Kt = 1;
|
|
229
|
+
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
230
|
+
function n(i) {
|
|
231
|
+
if (i == null)
|
|
230
232
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
231
|
-
return Object(
|
|
233
|
+
return Object(i);
|
|
232
234
|
}
|
|
233
|
-
function
|
|
235
|
+
function o() {
|
|
234
236
|
try {
|
|
235
237
|
if (!Object.assign)
|
|
236
238
|
return !1;
|
|
237
|
-
var
|
|
238
|
-
if (
|
|
239
|
+
var i = new String("abc");
|
|
240
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
239
241
|
return !1;
|
|
240
|
-
for (var
|
|
241
|
-
|
|
242
|
-
var
|
|
243
|
-
return f
|
|
242
|
+
for (var s = {}, a = 0; a < 10; a++)
|
|
243
|
+
s["_" + String.fromCharCode(a)] = a;
|
|
244
|
+
var l = Object.getOwnPropertyNames(s).map(function(f) {
|
|
245
|
+
return s[f];
|
|
244
246
|
});
|
|
245
|
-
if (
|
|
247
|
+
if (l.join("") !== "0123456789")
|
|
246
248
|
return !1;
|
|
247
|
-
var
|
|
248
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
249
|
-
|
|
250
|
-
}), Object.keys(Object.assign({},
|
|
249
|
+
var c = {};
|
|
250
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
251
|
+
c[f] = f;
|
|
252
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
251
253
|
} catch {
|
|
252
254
|
return !1;
|
|
253
255
|
}
|
|
254
256
|
}
|
|
255
|
-
return
|
|
256
|
-
for (var
|
|
257
|
-
|
|
258
|
-
for (var
|
|
259
|
-
t.call(
|
|
257
|
+
return ct = o() ? Object.assign : function(i, s) {
|
|
258
|
+
for (var a, l = n(i), c, f = 1; f < arguments.length; f++) {
|
|
259
|
+
a = Object(arguments[f]);
|
|
260
|
+
for (var d in a)
|
|
261
|
+
t.call(a, d) && (l[d] = a[d]);
|
|
260
262
|
if (e) {
|
|
261
|
-
|
|
262
|
-
for (var
|
|
263
|
-
|
|
263
|
+
c = e(a);
|
|
264
|
+
for (var h = 0; h < c.length; h++)
|
|
265
|
+
r.call(a, c[h]) && (l[c[h]] = a[c[h]]);
|
|
264
266
|
}
|
|
265
267
|
}
|
|
266
|
-
return
|
|
267
|
-
},
|
|
268
|
+
return l;
|
|
269
|
+
}, ct;
|
|
268
270
|
}
|
|
269
|
-
var
|
|
270
|
-
function
|
|
271
|
-
if (
|
|
272
|
-
|
|
271
|
+
var lt, zt;
|
|
272
|
+
function Mt() {
|
|
273
|
+
if (zt) return lt;
|
|
274
|
+
zt = 1;
|
|
273
275
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
274
|
-
return
|
|
276
|
+
return lt = e, lt;
|
|
275
277
|
}
|
|
276
|
-
var
|
|
277
|
-
function
|
|
278
|
-
return
|
|
278
|
+
var ut, Xt;
|
|
279
|
+
function Nn() {
|
|
280
|
+
return Xt || (Xt = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
|
|
279
281
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
if (
|
|
283
|
-
|
|
282
|
+
var ft, Gt;
|
|
283
|
+
function fr() {
|
|
284
|
+
if (Gt) return ft;
|
|
285
|
+
Gt = 1;
|
|
284
286
|
var e = function() {
|
|
285
287
|
};
|
|
286
288
|
if (process.env.NODE_ENV !== "production") {
|
|
287
|
-
var t = /* @__PURE__ */
|
|
288
|
-
e = function(
|
|
289
|
-
var
|
|
290
|
-
typeof console < "u" && console.error(
|
|
289
|
+
var t = /* @__PURE__ */ Mt(), r = {}, n = /* @__PURE__ */ Nn();
|
|
290
|
+
e = function(i) {
|
|
291
|
+
var s = "Warning: " + i;
|
|
292
|
+
typeof console < "u" && console.error(s);
|
|
291
293
|
try {
|
|
292
|
-
throw new Error(
|
|
294
|
+
throw new Error(s);
|
|
293
295
|
} catch {
|
|
294
296
|
}
|
|
295
297
|
};
|
|
296
298
|
}
|
|
297
|
-
function
|
|
299
|
+
function o(i, s, a, l, c) {
|
|
298
300
|
if (process.env.NODE_ENV !== "production") {
|
|
299
|
-
for (var
|
|
300
|
-
if (n(
|
|
301
|
-
var
|
|
301
|
+
for (var f in i)
|
|
302
|
+
if (n(i, f)) {
|
|
303
|
+
var d;
|
|
302
304
|
try {
|
|
303
|
-
if (typeof
|
|
304
|
-
var
|
|
305
|
-
(
|
|
305
|
+
if (typeof i[f] != "function") {
|
|
306
|
+
var h = Error(
|
|
307
|
+
(l || "React class") + ": " + a + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
306
308
|
);
|
|
307
|
-
throw
|
|
309
|
+
throw h.name = "Invariant Violation", h;
|
|
308
310
|
}
|
|
309
|
-
|
|
310
|
-
} catch (
|
|
311
|
-
|
|
311
|
+
d = i[f](s, f, l, a, null, t);
|
|
312
|
+
} catch (v) {
|
|
313
|
+
d = v;
|
|
312
314
|
}
|
|
313
|
-
if (
|
|
314
|
-
(
|
|
315
|
-
),
|
|
316
|
-
|
|
317
|
-
var
|
|
315
|
+
if (d && !(d instanceof Error) && e(
|
|
316
|
+
(l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
317
|
+
), d instanceof Error && !(d.message in r)) {
|
|
318
|
+
r[d.message] = !0;
|
|
319
|
+
var u = c ? c() : "";
|
|
318
320
|
e(
|
|
319
|
-
"Failed " +
|
|
321
|
+
"Failed " + a + " type: " + d.message + (u ?? "")
|
|
320
322
|
);
|
|
321
323
|
}
|
|
322
324
|
}
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
|
-
return
|
|
326
|
-
process.env.NODE_ENV !== "production" && (
|
|
327
|
-
},
|
|
328
|
-
}
|
|
329
|
-
var
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
332
|
-
|
|
333
|
-
var e =
|
|
327
|
+
return o.resetWarningCache = function() {
|
|
328
|
+
process.env.NODE_ENV !== "production" && (r = {});
|
|
329
|
+
}, ft = o, ft;
|
|
330
|
+
}
|
|
331
|
+
var dt, Zt;
|
|
332
|
+
function dr() {
|
|
333
|
+
if (Zt) return dt;
|
|
334
|
+
Zt = 1;
|
|
335
|
+
var e = Pn(), t = ur(), r = /* @__PURE__ */ Mt(), n = /* @__PURE__ */ Nn(), o = /* @__PURE__ */ fr(), i = function() {
|
|
334
336
|
};
|
|
335
|
-
process.env.NODE_ENV !== "production" && (
|
|
336
|
-
var
|
|
337
|
-
typeof console < "u" && console.error(
|
|
337
|
+
process.env.NODE_ENV !== "production" && (i = function(a) {
|
|
338
|
+
var l = "Warning: " + a;
|
|
339
|
+
typeof console < "u" && console.error(l);
|
|
338
340
|
try {
|
|
339
|
-
throw new Error(
|
|
341
|
+
throw new Error(l);
|
|
340
342
|
} catch {
|
|
341
343
|
}
|
|
342
344
|
});
|
|
343
|
-
function
|
|
345
|
+
function s() {
|
|
344
346
|
return null;
|
|
345
347
|
}
|
|
346
|
-
return
|
|
347
|
-
var
|
|
348
|
-
function
|
|
349
|
-
var
|
|
350
|
-
if (typeof
|
|
351
|
-
return
|
|
352
|
-
}
|
|
353
|
-
var
|
|
354
|
-
array:
|
|
355
|
-
bigint:
|
|
356
|
-
bool:
|
|
357
|
-
func:
|
|
358
|
-
number:
|
|
359
|
-
object:
|
|
360
|
-
string:
|
|
361
|
-
symbol:
|
|
362
|
-
any:
|
|
363
|
-
arrayOf:
|
|
364
|
-
element:
|
|
365
|
-
elementType:
|
|
366
|
-
instanceOf:
|
|
367
|
-
node:
|
|
368
|
-
objectOf:
|
|
369
|
-
oneOf:
|
|
370
|
-
oneOfType:
|
|
371
|
-
shape:
|
|
372
|
-
exact:
|
|
348
|
+
return dt = function(a, l) {
|
|
349
|
+
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
350
|
+
function d(m) {
|
|
351
|
+
var w = m && (c && m[c] || m[f]);
|
|
352
|
+
if (typeof w == "function")
|
|
353
|
+
return w;
|
|
354
|
+
}
|
|
355
|
+
var h = "<<anonymous>>", u = {
|
|
356
|
+
array: A("array"),
|
|
357
|
+
bigint: A("bigint"),
|
|
358
|
+
bool: A("boolean"),
|
|
359
|
+
func: A("function"),
|
|
360
|
+
number: A("number"),
|
|
361
|
+
object: A("object"),
|
|
362
|
+
string: A("string"),
|
|
363
|
+
symbol: A("symbol"),
|
|
364
|
+
any: I(),
|
|
365
|
+
arrayOf: y,
|
|
366
|
+
element: T(),
|
|
367
|
+
elementType: b(),
|
|
368
|
+
instanceOf: k,
|
|
369
|
+
node: Z(),
|
|
370
|
+
objectOf: K,
|
|
371
|
+
oneOf: H,
|
|
372
|
+
oneOfType: J,
|
|
373
|
+
shape: B,
|
|
374
|
+
exact: te
|
|
373
375
|
};
|
|
374
|
-
function
|
|
375
|
-
return
|
|
376
|
+
function v(m, w) {
|
|
377
|
+
return m === w ? m !== 0 || 1 / m === 1 / w : m !== m && w !== w;
|
|
376
378
|
}
|
|
377
|
-
function
|
|
378
|
-
this.message =
|
|
379
|
+
function p(m, w) {
|
|
380
|
+
this.message = m, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
|
|
379
381
|
}
|
|
380
|
-
|
|
381
|
-
function
|
|
382
|
+
p.prototype = Error.prototype;
|
|
383
|
+
function O(m) {
|
|
382
384
|
if (process.env.NODE_ENV !== "production")
|
|
383
|
-
var
|
|
384
|
-
function
|
|
385
|
-
if (
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
385
|
+
var w = {}, F = 0;
|
|
386
|
+
function W(P, g, _, N, $, D, X) {
|
|
387
|
+
if (N = N || h, D = D || _, X !== r) {
|
|
388
|
+
if (l) {
|
|
389
|
+
var C = new Error(
|
|
388
390
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
389
391
|
);
|
|
390
|
-
throw
|
|
392
|
+
throw C.name = "Invariant Violation", C;
|
|
391
393
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
392
|
-
var
|
|
393
|
-
!
|
|
394
|
-
|
|
395
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
396
|
-
),
|
|
394
|
+
var re = N + ":" + _;
|
|
395
|
+
!w[re] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
396
|
+
F < 3 && (i(
|
|
397
|
+
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
398
|
+
), w[re] = !0, F++);
|
|
397
399
|
}
|
|
398
400
|
}
|
|
399
|
-
return
|
|
401
|
+
return g[_] == null ? P ? g[_] === null ? new p("The " + $ + " `" + D + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new p("The " + $ + " `" + D + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : m(g, _, N, $, D);
|
|
400
402
|
}
|
|
401
|
-
var
|
|
402
|
-
return
|
|
403
|
-
}
|
|
404
|
-
function
|
|
405
|
-
function
|
|
406
|
-
var
|
|
407
|
-
if (
|
|
408
|
-
var
|
|
409
|
-
return new
|
|
410
|
-
"Invalid " +
|
|
411
|
-
{ expectedType:
|
|
403
|
+
var S = W.bind(null, !1);
|
|
404
|
+
return S.isRequired = W.bind(null, !0), S;
|
|
405
|
+
}
|
|
406
|
+
function A(m) {
|
|
407
|
+
function w(F, W, S, P, g, _) {
|
|
408
|
+
var N = F[W], $ = j(N);
|
|
409
|
+
if ($ !== m) {
|
|
410
|
+
var D = V(N);
|
|
411
|
+
return new p(
|
|
412
|
+
"Invalid " + P + " `" + g + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + m + "`."),
|
|
413
|
+
{ expectedType: m }
|
|
412
414
|
);
|
|
413
415
|
}
|
|
414
416
|
return null;
|
|
415
417
|
}
|
|
416
|
-
return
|
|
418
|
+
return O(w);
|
|
417
419
|
}
|
|
418
|
-
function
|
|
419
|
-
return
|
|
420
|
+
function I() {
|
|
421
|
+
return O(s);
|
|
420
422
|
}
|
|
421
|
-
function
|
|
422
|
-
function
|
|
423
|
-
if (typeof
|
|
424
|
-
return new
|
|
425
|
-
var _ =
|
|
423
|
+
function y(m) {
|
|
424
|
+
function w(F, W, S, P, g) {
|
|
425
|
+
if (typeof m != "function")
|
|
426
|
+
return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
427
|
+
var _ = F[W];
|
|
426
428
|
if (!Array.isArray(_)) {
|
|
427
|
-
var
|
|
428
|
-
return new
|
|
429
|
+
var N = j(_);
|
|
430
|
+
return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an array."));
|
|
429
431
|
}
|
|
430
|
-
for (var
|
|
431
|
-
var
|
|
432
|
-
if (
|
|
433
|
-
return
|
|
432
|
+
for (var $ = 0; $ < _.length; $++) {
|
|
433
|
+
var D = m(_, $, S, P, g + "[" + $ + "]", r);
|
|
434
|
+
if (D instanceof Error)
|
|
435
|
+
return D;
|
|
434
436
|
}
|
|
435
437
|
return null;
|
|
436
438
|
}
|
|
437
|
-
return
|
|
438
|
-
}
|
|
439
|
-
function
|
|
440
|
-
function
|
|
441
|
-
var
|
|
442
|
-
if (!
|
|
443
|
-
var _ =
|
|
444
|
-
return new
|
|
439
|
+
return O(w);
|
|
440
|
+
}
|
|
441
|
+
function T() {
|
|
442
|
+
function m(w, F, W, S, P) {
|
|
443
|
+
var g = w[F];
|
|
444
|
+
if (!a(g)) {
|
|
445
|
+
var _ = j(g);
|
|
446
|
+
return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement."));
|
|
445
447
|
}
|
|
446
448
|
return null;
|
|
447
449
|
}
|
|
448
|
-
return
|
|
449
|
-
}
|
|
450
|
-
function
|
|
451
|
-
function
|
|
452
|
-
var
|
|
453
|
-
if (!e.isValidElementType(
|
|
454
|
-
var _ =
|
|
455
|
-
return new
|
|
450
|
+
return O(m);
|
|
451
|
+
}
|
|
452
|
+
function b() {
|
|
453
|
+
function m(w, F, W, S, P) {
|
|
454
|
+
var g = w[F];
|
|
455
|
+
if (!e.isValidElementType(g)) {
|
|
456
|
+
var _ = j(g);
|
|
457
|
+
return new p("Invalid " + S + " `" + P + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected a single ReactElement type."));
|
|
456
458
|
}
|
|
457
459
|
return null;
|
|
458
460
|
}
|
|
459
|
-
return
|
|
461
|
+
return O(m);
|
|
460
462
|
}
|
|
461
|
-
function
|
|
462
|
-
function
|
|
463
|
-
if (!(
|
|
464
|
-
var _ =
|
|
465
|
-
return new
|
|
463
|
+
function k(m) {
|
|
464
|
+
function w(F, W, S, P, g) {
|
|
465
|
+
if (!(F[W] instanceof m)) {
|
|
466
|
+
var _ = m.name || h, N = R(F[W]);
|
|
467
|
+
return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected ") + ("instance of `" + _ + "`."));
|
|
466
468
|
}
|
|
467
469
|
return null;
|
|
468
470
|
}
|
|
469
|
-
return
|
|
471
|
+
return O(w);
|
|
470
472
|
}
|
|
471
|
-
function
|
|
472
|
-
if (!Array.isArray(
|
|
473
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
473
|
+
function H(m) {
|
|
474
|
+
if (!Array.isArray(m))
|
|
475
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
474
476
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
475
|
-
) :
|
|
476
|
-
function
|
|
477
|
-
for (var _ =
|
|
478
|
-
if (
|
|
477
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
478
|
+
function w(F, W, S, P, g) {
|
|
479
|
+
for (var _ = F[W], N = 0; N < m.length; N++)
|
|
480
|
+
if (v(_, m[N]))
|
|
479
481
|
return null;
|
|
480
|
-
var
|
|
481
|
-
var
|
|
482
|
-
return
|
|
482
|
+
var $ = JSON.stringify(m, function(X, C) {
|
|
483
|
+
var re = V(C);
|
|
484
|
+
return re === "symbol" ? String(C) : C;
|
|
483
485
|
});
|
|
484
|
-
return new
|
|
486
|
+
return new p("Invalid " + P + " `" + g + "` of value `" + String(_) + "` " + ("supplied to `" + S + "`, expected one of " + $ + "."));
|
|
485
487
|
}
|
|
486
|
-
return
|
|
487
|
-
}
|
|
488
|
-
function
|
|
489
|
-
function
|
|
490
|
-
if (typeof
|
|
491
|
-
return new
|
|
492
|
-
var _ =
|
|
493
|
-
if (
|
|
494
|
-
return new
|
|
495
|
-
for (var
|
|
496
|
-
if (n(_,
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
return
|
|
488
|
+
return O(w);
|
|
489
|
+
}
|
|
490
|
+
function K(m) {
|
|
491
|
+
function w(F, W, S, P, g) {
|
|
492
|
+
if (typeof m != "function")
|
|
493
|
+
return new p("Property `" + g + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
494
|
+
var _ = F[W], N = j(_);
|
|
495
|
+
if (N !== "object")
|
|
496
|
+
return new p("Invalid " + P + " `" + g + "` of type " + ("`" + N + "` supplied to `" + S + "`, expected an object."));
|
|
497
|
+
for (var $ in _)
|
|
498
|
+
if (n(_, $)) {
|
|
499
|
+
var D = m(_, $, S, P, g + "." + $, r);
|
|
500
|
+
if (D instanceof Error)
|
|
501
|
+
return D;
|
|
500
502
|
}
|
|
501
503
|
return null;
|
|
502
504
|
}
|
|
503
|
-
return
|
|
504
|
-
}
|
|
505
|
-
function
|
|
506
|
-
if (!Array.isArray(
|
|
507
|
-
return process.env.NODE_ENV !== "production" &&
|
|
508
|
-
for (var
|
|
509
|
-
var
|
|
510
|
-
if (typeof
|
|
511
|
-
return
|
|
512
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
513
|
-
),
|
|
505
|
+
return O(w);
|
|
506
|
+
}
|
|
507
|
+
function J(m) {
|
|
508
|
+
if (!Array.isArray(m))
|
|
509
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
510
|
+
for (var w = 0; w < m.length; w++) {
|
|
511
|
+
var F = m[w];
|
|
512
|
+
if (typeof F != "function")
|
|
513
|
+
return i(
|
|
514
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + M(F) + " at index " + w + "."
|
|
515
|
+
), s;
|
|
514
516
|
}
|
|
515
|
-
function
|
|
516
|
-
for (var
|
|
517
|
-
var
|
|
518
|
-
if (
|
|
517
|
+
function W(S, P, g, _, N) {
|
|
518
|
+
for (var $ = [], D = 0; D < m.length; D++) {
|
|
519
|
+
var X = m[D], C = X(S, P, g, _, N, r);
|
|
520
|
+
if (C == null)
|
|
519
521
|
return null;
|
|
520
|
-
|
|
522
|
+
C.data && n(C.data, "expectedType") && $.push(C.data.expectedType);
|
|
521
523
|
}
|
|
522
|
-
var
|
|
523
|
-
return new
|
|
524
|
+
var re = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
525
|
+
return new p("Invalid " + _ + " `" + N + "` supplied to " + ("`" + g + "`" + re + "."));
|
|
524
526
|
}
|
|
525
|
-
return
|
|
527
|
+
return O(W);
|
|
526
528
|
}
|
|
527
|
-
function
|
|
528
|
-
function
|
|
529
|
-
return z(
|
|
529
|
+
function Z() {
|
|
530
|
+
function m(w, F, W, S, P) {
|
|
531
|
+
return z(w[F]) ? null : new p("Invalid " + S + " `" + P + "` supplied to " + ("`" + W + "`, expected a ReactNode."));
|
|
530
532
|
}
|
|
531
|
-
return
|
|
533
|
+
return O(m);
|
|
532
534
|
}
|
|
533
|
-
function
|
|
534
|
-
return new
|
|
535
|
-
(
|
|
535
|
+
function G(m, w, F, W, S) {
|
|
536
|
+
return new p(
|
|
537
|
+
(m || "React class") + ": " + w + " type `" + F + "." + W + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
536
538
|
);
|
|
537
539
|
}
|
|
538
|
-
function
|
|
539
|
-
function
|
|
540
|
-
var _ =
|
|
541
|
-
if (
|
|
542
|
-
return new
|
|
543
|
-
for (var
|
|
544
|
-
var
|
|
545
|
-
if (typeof
|
|
546
|
-
return
|
|
547
|
-
var
|
|
548
|
-
if (
|
|
549
|
-
return
|
|
540
|
+
function B(m) {
|
|
541
|
+
function w(F, W, S, P, g) {
|
|
542
|
+
var _ = F[W], N = j(_);
|
|
543
|
+
if (N !== "object")
|
|
544
|
+
return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
545
|
+
for (var $ in m) {
|
|
546
|
+
var D = m[$];
|
|
547
|
+
if (typeof D != "function")
|
|
548
|
+
return G(S, P, g, $, V(D));
|
|
549
|
+
var X = D(_, $, S, P, g + "." + $, r);
|
|
550
|
+
if (X)
|
|
551
|
+
return X;
|
|
550
552
|
}
|
|
551
553
|
return null;
|
|
552
554
|
}
|
|
553
|
-
return
|
|
554
|
-
}
|
|
555
|
-
function
|
|
556
|
-
function
|
|
557
|
-
var _ =
|
|
558
|
-
if (
|
|
559
|
-
return new
|
|
560
|
-
var
|
|
561
|
-
for (var
|
|
562
|
-
var
|
|
563
|
-
if (n(
|
|
564
|
-
return
|
|
565
|
-
if (!
|
|
566
|
-
return new
|
|
567
|
-
"Invalid " +
|
|
568
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
555
|
+
return O(w);
|
|
556
|
+
}
|
|
557
|
+
function te(m) {
|
|
558
|
+
function w(F, W, S, P, g) {
|
|
559
|
+
var _ = F[W], N = j(_);
|
|
560
|
+
if (N !== "object")
|
|
561
|
+
return new p("Invalid " + P + " `" + g + "` of type `" + N + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
562
|
+
var $ = t({}, F[W], m);
|
|
563
|
+
for (var D in $) {
|
|
564
|
+
var X = m[D];
|
|
565
|
+
if (n(m, D) && typeof X != "function")
|
|
566
|
+
return G(S, P, g, D, V(X));
|
|
567
|
+
if (!X)
|
|
568
|
+
return new p(
|
|
569
|
+
"Invalid " + P + " `" + g + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(F[W], null, " ") + `
|
|
570
|
+
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
569
571
|
);
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
return
|
|
572
|
+
var C = X(_, D, S, P, g + "." + D, r);
|
|
573
|
+
if (C)
|
|
574
|
+
return C;
|
|
573
575
|
}
|
|
574
576
|
return null;
|
|
575
577
|
}
|
|
576
|
-
return
|
|
578
|
+
return O(w);
|
|
577
579
|
}
|
|
578
|
-
function z(
|
|
579
|
-
switch (typeof
|
|
580
|
+
function z(m) {
|
|
581
|
+
switch (typeof m) {
|
|
580
582
|
case "number":
|
|
581
583
|
case "string":
|
|
582
584
|
case "undefined":
|
|
583
585
|
return !0;
|
|
584
586
|
case "boolean":
|
|
585
|
-
return !
|
|
587
|
+
return !m;
|
|
586
588
|
case "object":
|
|
587
|
-
if (Array.isArray(
|
|
588
|
-
return
|
|
589
|
-
if (
|
|
589
|
+
if (Array.isArray(m))
|
|
590
|
+
return m.every(z);
|
|
591
|
+
if (m === null || a(m))
|
|
590
592
|
return !0;
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
for (; !(
|
|
596
|
-
if (!z(
|
|
593
|
+
var w = d(m);
|
|
594
|
+
if (w) {
|
|
595
|
+
var F = w.call(m), W;
|
|
596
|
+
if (w !== m.entries) {
|
|
597
|
+
for (; !(W = F.next()).done; )
|
|
598
|
+
if (!z(W.value))
|
|
597
599
|
return !1;
|
|
598
600
|
} else
|
|
599
|
-
for (; !(
|
|
600
|
-
var
|
|
601
|
-
if (
|
|
601
|
+
for (; !(W = F.next()).done; ) {
|
|
602
|
+
var S = W.value;
|
|
603
|
+
if (S && !z(S[1]))
|
|
602
604
|
return !1;
|
|
603
605
|
}
|
|
604
606
|
} else
|
|
@@ -608,68 +610,68 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
608
610
|
return !1;
|
|
609
611
|
}
|
|
610
612
|
}
|
|
611
|
-
function
|
|
612
|
-
return
|
|
613
|
+
function L(m, w) {
|
|
614
|
+
return m === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
|
|
613
615
|
}
|
|
614
|
-
function
|
|
615
|
-
var
|
|
616
|
-
return Array.isArray(
|
|
616
|
+
function j(m) {
|
|
617
|
+
var w = typeof m;
|
|
618
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : L(w, m) ? "symbol" : w;
|
|
617
619
|
}
|
|
618
|
-
function
|
|
619
|
-
if (typeof
|
|
620
|
-
return "" +
|
|
621
|
-
var
|
|
622
|
-
if (
|
|
623
|
-
if (
|
|
620
|
+
function V(m) {
|
|
621
|
+
if (typeof m > "u" || m === null)
|
|
622
|
+
return "" + m;
|
|
623
|
+
var w = j(m);
|
|
624
|
+
if (w === "object") {
|
|
625
|
+
if (m instanceof Date)
|
|
624
626
|
return "date";
|
|
625
|
-
if (
|
|
627
|
+
if (m instanceof RegExp)
|
|
626
628
|
return "regexp";
|
|
627
629
|
}
|
|
628
|
-
return
|
|
630
|
+
return w;
|
|
629
631
|
}
|
|
630
|
-
function
|
|
631
|
-
var
|
|
632
|
-
switch (
|
|
632
|
+
function M(m) {
|
|
633
|
+
var w = V(m);
|
|
634
|
+
switch (w) {
|
|
633
635
|
case "array":
|
|
634
636
|
case "object":
|
|
635
|
-
return "an " +
|
|
637
|
+
return "an " + w;
|
|
636
638
|
case "boolean":
|
|
637
639
|
case "date":
|
|
638
640
|
case "regexp":
|
|
639
|
-
return "a " +
|
|
641
|
+
return "a " + w;
|
|
640
642
|
default:
|
|
641
|
-
return
|
|
643
|
+
return w;
|
|
642
644
|
}
|
|
643
645
|
}
|
|
644
|
-
function
|
|
645
|
-
return !
|
|
646
|
+
function R(m) {
|
|
647
|
+
return !m.constructor || !m.constructor.name ? h : m.constructor.name;
|
|
646
648
|
}
|
|
647
|
-
return
|
|
648
|
-
},
|
|
649
|
+
return u.checkPropTypes = o, u.resetWarningCache = o.resetWarningCache, u.PropTypes = u, u;
|
|
650
|
+
}, dt;
|
|
649
651
|
}
|
|
650
|
-
var
|
|
651
|
-
function
|
|
652
|
-
if (
|
|
653
|
-
|
|
654
|
-
var e = /* @__PURE__ */
|
|
652
|
+
var pt, Jt;
|
|
653
|
+
function pr() {
|
|
654
|
+
if (Jt) return pt;
|
|
655
|
+
Jt = 1;
|
|
656
|
+
var e = /* @__PURE__ */ Mt();
|
|
655
657
|
function t() {
|
|
656
658
|
}
|
|
657
|
-
function
|
|
659
|
+
function r() {
|
|
658
660
|
}
|
|
659
|
-
return
|
|
660
|
-
function n(
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
661
|
+
return r.resetWarningCache = t, pt = function() {
|
|
662
|
+
function n(s, a, l, c, f, d) {
|
|
663
|
+
if (d !== e) {
|
|
664
|
+
var h = new Error(
|
|
663
665
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
664
666
|
);
|
|
665
|
-
throw
|
|
667
|
+
throw h.name = "Invariant Violation", h;
|
|
666
668
|
}
|
|
667
669
|
}
|
|
668
670
|
n.isRequired = n;
|
|
669
|
-
function
|
|
671
|
+
function o() {
|
|
670
672
|
return n;
|
|
671
673
|
}
|
|
672
|
-
var
|
|
674
|
+
var i = {
|
|
673
675
|
array: n,
|
|
674
676
|
bigint: n,
|
|
675
677
|
bool: n,
|
|
@@ -679,489 +681,564 @@ function Ve() {
|
|
|
679
681
|
string: n,
|
|
680
682
|
symbol: n,
|
|
681
683
|
any: n,
|
|
682
|
-
arrayOf:
|
|
684
|
+
arrayOf: o,
|
|
683
685
|
element: n,
|
|
684
686
|
elementType: n,
|
|
685
|
-
instanceOf:
|
|
687
|
+
instanceOf: o,
|
|
686
688
|
node: n,
|
|
687
|
-
objectOf:
|
|
688
|
-
oneOf:
|
|
689
|
-
oneOfType:
|
|
690
|
-
shape:
|
|
691
|
-
exact:
|
|
692
|
-
checkPropTypes:
|
|
689
|
+
objectOf: o,
|
|
690
|
+
oneOf: o,
|
|
691
|
+
oneOfType: o,
|
|
692
|
+
shape: o,
|
|
693
|
+
exact: o,
|
|
694
|
+
checkPropTypes: r,
|
|
693
695
|
resetWarningCache: t
|
|
694
696
|
};
|
|
695
|
-
return
|
|
696
|
-
},
|
|
697
|
-
}
|
|
698
|
-
var
|
|
699
|
-
function
|
|
700
|
-
if (
|
|
701
|
-
if (
|
|
702
|
-
var e =
|
|
703
|
-
|
|
697
|
+
return i.PropTypes = i, i;
|
|
698
|
+
}, pt;
|
|
699
|
+
}
|
|
700
|
+
var Qt;
|
|
701
|
+
function mr() {
|
|
702
|
+
if (Qt) return Me.exports;
|
|
703
|
+
if (Qt = 1, process.env.NODE_ENV !== "production") {
|
|
704
|
+
var e = Pn(), t = !0;
|
|
705
|
+
Me.exports = /* @__PURE__ */ dr()(e.isElement, t);
|
|
704
706
|
} else
|
|
705
|
-
|
|
706
|
-
return
|
|
707
|
-
}
|
|
708
|
-
var
|
|
709
|
-
const
|
|
710
|
-
const
|
|
711
|
-
return /* @__PURE__ */
|
|
712
|
-
/* @__PURE__ */
|
|
707
|
+
Me.exports = /* @__PURE__ */ pr()();
|
|
708
|
+
return Me.exports;
|
|
709
|
+
}
|
|
710
|
+
var hr = /* @__PURE__ */ mr();
|
|
711
|
+
const Le = /* @__PURE__ */ An(hr), vr = ({ content: e, title: t, className: r, id: n = "accordion" }) => {
|
|
712
|
+
const o = ee("rpf-accordion", r);
|
|
713
|
+
return /* @__PURE__ */ q("details", { className: o, id: `${n}`, children: [
|
|
714
|
+
/* @__PURE__ */ q("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
713
715
|
t,
|
|
714
|
-
/* @__PURE__ */
|
|
716
|
+
/* @__PURE__ */ E("span", { className: "rpf-accordion__icon" })
|
|
715
717
|
] }),
|
|
716
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ E("p", { className: "rpf-accordion__text", children: e })
|
|
717
719
|
] });
|
|
718
720
|
};
|
|
719
|
-
|
|
720
|
-
content:
|
|
721
|
-
title:
|
|
722
|
-
id:
|
|
723
|
-
className:
|
|
721
|
+
vr.propTypes = {
|
|
722
|
+
content: Le.string.isRequired,
|
|
723
|
+
title: Le.string.isRequired,
|
|
724
|
+
id: Le.string,
|
|
725
|
+
className: Le.string
|
|
724
726
|
};
|
|
725
|
-
const
|
|
727
|
+
const Re = ({
|
|
726
728
|
text: e,
|
|
727
729
|
href: t,
|
|
728
|
-
title:
|
|
730
|
+
title: r,
|
|
729
731
|
className: n,
|
|
730
|
-
type:
|
|
731
|
-
variant:
|
|
732
|
-
size:
|
|
733
|
-
icon:
|
|
734
|
-
iconOnly:
|
|
735
|
-
iconPosition:
|
|
736
|
-
fullWidth:
|
|
737
|
-
disabled:
|
|
738
|
-
onClick:
|
|
732
|
+
type: o = "primary",
|
|
733
|
+
variant: i = "",
|
|
734
|
+
size: s = "default",
|
|
735
|
+
icon: a = "",
|
|
736
|
+
iconOnly: l = !1,
|
|
737
|
+
iconPosition: c = "left",
|
|
738
|
+
fullWidth: f = !1,
|
|
739
|
+
disabled: d = !1,
|
|
740
|
+
onClick: h = () => {
|
|
739
741
|
},
|
|
740
|
-
"aria-label":
|
|
741
|
-
linkComponent:
|
|
742
|
+
"aria-label": u = "",
|
|
743
|
+
linkComponent: v
|
|
742
744
|
// to pass in react-router-dom Link component
|
|
743
745
|
}) => {
|
|
744
|
-
const
|
|
746
|
+
const p = a && l, O = ee(
|
|
745
747
|
// Static classes
|
|
746
748
|
"rpf-button",
|
|
747
749
|
// Conditional classes
|
|
748
750
|
{
|
|
749
|
-
[`rpf-button--${
|
|
750
|
-
"rpf-button--danger":
|
|
751
|
-
"rpf-button--sm":
|
|
752
|
-
"rpf-button--icon-only":
|
|
753
|
-
"rpf-button--full-width":
|
|
754
|
-
disabled:
|
|
751
|
+
[`rpf-button--${o}`]: o,
|
|
752
|
+
"rpf-button--danger": i === "danger",
|
|
753
|
+
"rpf-button--sm": s === "small",
|
|
754
|
+
"rpf-button--icon-only": p,
|
|
755
|
+
"rpf-button--full-width": f,
|
|
756
|
+
disabled: d
|
|
755
757
|
},
|
|
756
758
|
n
|
|
757
759
|
);
|
|
758
|
-
let
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
k(),
|
|
765
|
-
F("right", i)
|
|
760
|
+
let A = "rpf-button__icon";
|
|
761
|
+
rr.isValidElement(a) ? A += " icon" : A += " material-symbols-sharp";
|
|
762
|
+
const I = (b, k) => !k || c !== b ? null : typeof k == "string" ? /* @__PURE__ */ E("span", { className: A, children: k }) : k, y = () => e && !p && /* @__PURE__ */ E("span", { className: "text", children: e }), T = /* @__PURE__ */ q(Ie, { children: [
|
|
763
|
+
I("left", a),
|
|
764
|
+
y(),
|
|
765
|
+
I("right", a)
|
|
766
766
|
] });
|
|
767
|
-
return t ? /* @__PURE__ */
|
|
768
|
-
|
|
767
|
+
return t ? /* @__PURE__ */ E(
|
|
768
|
+
v || "a",
|
|
769
769
|
{
|
|
770
|
-
className:
|
|
771
|
-
...
|
|
772
|
-
onClick:
|
|
773
|
-
"aria-label":
|
|
774
|
-
children:
|
|
770
|
+
className: O,
|
|
771
|
+
...v ? { to: t } : { href: t, role: "button" },
|
|
772
|
+
onClick: h,
|
|
773
|
+
"aria-label": u,
|
|
774
|
+
children: T
|
|
775
775
|
}
|
|
776
|
-
) : /* @__PURE__ */
|
|
776
|
+
) : /* @__PURE__ */ E(
|
|
777
777
|
"button",
|
|
778
778
|
{
|
|
779
|
-
className:
|
|
780
|
-
title:
|
|
781
|
-
onClick:
|
|
782
|
-
disabled:
|
|
783
|
-
"aria-label":
|
|
784
|
-
children:
|
|
779
|
+
className: O,
|
|
780
|
+
title: r,
|
|
781
|
+
onClick: h,
|
|
782
|
+
disabled: d,
|
|
783
|
+
"aria-label": u,
|
|
784
|
+
children: T
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
|
-
},
|
|
787
|
+
}, Ni = ({
|
|
788
788
|
title: e,
|
|
789
789
|
text: t,
|
|
790
|
-
titleChildren:
|
|
790
|
+
titleChildren: r,
|
|
791
791
|
children: n,
|
|
792
|
-
type:
|
|
793
|
-
actions:
|
|
794
|
-
onClose:
|
|
795
|
-
}) => /* @__PURE__ */
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
/* @__PURE__ */
|
|
798
|
-
|
|
799
|
-
!!
|
|
800
|
-
|
|
792
|
+
type: o,
|
|
793
|
+
actions: i,
|
|
794
|
+
onClose: s
|
|
795
|
+
}) => /* @__PURE__ */ q("div", { className: `rpf-alert rpf-alert--${o}`, children: [
|
|
796
|
+
/* @__PURE__ */ q("div", { className: "rpf-alert__header", children: [
|
|
797
|
+
/* @__PURE__ */ E("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
798
|
+
r ? /* @__PURE__ */ E("div", { className: "rpf-alert__title", children: r }) : e ? /* @__PURE__ */ E("p", { className: "rpf-alert__title", children: e }) : null,
|
|
799
|
+
!!s && /* @__PURE__ */ E("div", { className: "rpf-alert__close", children: /* @__PURE__ */ E(
|
|
800
|
+
Re,
|
|
801
801
|
{
|
|
802
802
|
type: "tertiary",
|
|
803
803
|
icon: "close",
|
|
804
804
|
size: "small",
|
|
805
805
|
iconOnly: !0,
|
|
806
|
-
onClick:
|
|
806
|
+
onClick: s
|
|
807
807
|
}
|
|
808
808
|
) })
|
|
809
809
|
] }),
|
|
810
|
-
(t || n ||
|
|
811
|
-
t ? /* @__PURE__ */
|
|
812
|
-
|
|
813
|
-
|
|
810
|
+
(t || n || i) && /* @__PURE__ */ q("div", { className: "rpf-alert__body", children: [
|
|
811
|
+
t ? /* @__PURE__ */ E("p", { children: t }) : n ? /* @__PURE__ */ E("div", { children: n }) : null,
|
|
812
|
+
i && i.length > 0 && /* @__PURE__ */ E("div", { className: "rpf-alert__actions", children: i.map((a, l) => /* @__PURE__ */ E(
|
|
813
|
+
Re,
|
|
814
814
|
{
|
|
815
|
-
text:
|
|
815
|
+
text: a.label,
|
|
816
816
|
size: "small",
|
|
817
817
|
type: "tertiary",
|
|
818
|
-
href:
|
|
819
|
-
onClick:
|
|
818
|
+
href: a.href,
|
|
819
|
+
onClick: a.onClick
|
|
820
820
|
},
|
|
821
|
-
|
|
821
|
+
l
|
|
822
822
|
)) })
|
|
823
823
|
] })
|
|
824
|
-
] }),
|
|
824
|
+
] }), Ii = ({
|
|
825
825
|
label: e,
|
|
826
826
|
id: t,
|
|
827
|
-
name:
|
|
827
|
+
name: r,
|
|
828
828
|
error: n = "",
|
|
829
|
-
...
|
|
829
|
+
...o
|
|
830
830
|
}) => {
|
|
831
|
-
const { className:
|
|
832
|
-
return /* @__PURE__ */
|
|
833
|
-
/* @__PURE__ */
|
|
831
|
+
const { className: i, ...s } = o;
|
|
832
|
+
return /* @__PURE__ */ q(Ie, { children: [
|
|
833
|
+
/* @__PURE__ */ q(
|
|
834
834
|
"label",
|
|
835
835
|
{
|
|
836
|
-
className:
|
|
836
|
+
className: ee("rpf-input-checkbox", {
|
|
837
837
|
"rpf-input-checkbox--error": n,
|
|
838
|
-
className:
|
|
838
|
+
className: i
|
|
839
839
|
}),
|
|
840
840
|
children: [
|
|
841
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ E("input", { id: t, name: r, type: "checkbox", ...s }),
|
|
842
842
|
e
|
|
843
843
|
]
|
|
844
844
|
}
|
|
845
845
|
),
|
|
846
|
-
n && /* @__PURE__ */
|
|
847
|
-
/* @__PURE__ */
|
|
846
|
+
n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
847
|
+
/* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
848
848
|
n
|
|
849
849
|
] })
|
|
850
850
|
] });
|
|
851
|
-
},
|
|
851
|
+
}, ki = ({
|
|
852
852
|
disabled: e = !1,
|
|
853
853
|
errorText: t = "",
|
|
854
|
-
fullWidth:
|
|
854
|
+
fullWidth: r = !1,
|
|
855
855
|
legendText: n,
|
|
856
|
-
legendHintText:
|
|
857
|
-
children:
|
|
858
|
-
}) => /* @__PURE__ */
|
|
856
|
+
legendHintText: o = "",
|
|
857
|
+
children: i
|
|
858
|
+
}) => /* @__PURE__ */ q(
|
|
859
859
|
"fieldset",
|
|
860
860
|
{
|
|
861
|
-
className:
|
|
861
|
+
className: ee("rpf-fieldset", {
|
|
862
862
|
"rpf-fieldset--disabled": e,
|
|
863
|
-
"rpf-fieldset--full-width":
|
|
863
|
+
"rpf-fieldset--full-width": r,
|
|
864
864
|
"rpf-fieldset--error": t
|
|
865
865
|
}),
|
|
866
866
|
disabled: e,
|
|
867
867
|
children: [
|
|
868
|
-
/* @__PURE__ */
|
|
868
|
+
/* @__PURE__ */ q("legend", { className: "rpf-label", children: [
|
|
869
869
|
n,
|
|
870
|
-
|
|
870
|
+
o.length > 0 ? /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: o }) : null
|
|
871
871
|
] }),
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
t.length > 0 ? /* @__PURE__ */
|
|
874
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ E("div", { className: "rpf-fieldset__inputs", children: i }),
|
|
873
|
+
t.length > 0 ? /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
874
|
+
/* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
875
875
|
t
|
|
876
876
|
] }) : null
|
|
877
877
|
]
|
|
878
878
|
}
|
|
879
|
-
),
|
|
879
|
+
), Dt = ({
|
|
880
880
|
id: e,
|
|
881
881
|
label: t,
|
|
882
|
-
children:
|
|
882
|
+
children: r,
|
|
883
883
|
disabled: n = !1,
|
|
884
|
-
error:
|
|
885
|
-
hint:
|
|
886
|
-
}) => /* @__PURE__ */
|
|
887
|
-
(t ||
|
|
884
|
+
error: o = "",
|
|
885
|
+
hint: i = ""
|
|
886
|
+
}) => /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
|
|
887
|
+
(t || i) && /* @__PURE__ */ q(
|
|
888
888
|
"label",
|
|
889
889
|
{
|
|
890
890
|
htmlFor: e,
|
|
891
|
-
className:
|
|
891
|
+
className: ee("rpf-label", {
|
|
892
892
|
"rpf-label--disabled": n
|
|
893
893
|
}),
|
|
894
894
|
children: [
|
|
895
895
|
t,
|
|
896
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ E("small", { className: "rpf-label__hint", children: i })
|
|
897
897
|
]
|
|
898
898
|
}
|
|
899
899
|
),
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
/* @__PURE__ */
|
|
903
|
-
|
|
900
|
+
r,
|
|
901
|
+
o && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
902
|
+
/* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
903
|
+
o
|
|
904
904
|
] })
|
|
905
|
-
] }),
|
|
905
|
+
] }), Mi = ({
|
|
906
906
|
label: e,
|
|
907
907
|
inputFieldId: t,
|
|
908
|
-
disabled:
|
|
908
|
+
disabled: r = !1,
|
|
909
909
|
hint: n = ""
|
|
910
|
-
}) => /* @__PURE__ */
|
|
910
|
+
}) => /* @__PURE__ */ E("div", { className: "rpf-label", children: /* @__PURE__ */ q(
|
|
911
911
|
"label",
|
|
912
912
|
{
|
|
913
913
|
htmlFor: t,
|
|
914
|
-
className:
|
|
915
|
-
"rpf-label--disabled":
|
|
914
|
+
className: ee("rpf-label", {
|
|
915
|
+
"rpf-label--disabled": r
|
|
916
916
|
}),
|
|
917
917
|
children: [
|
|
918
918
|
e,
|
|
919
|
-
n && /* @__PURE__ */
|
|
919
|
+
n && /* @__PURE__ */ E("div", { className: "rpf-label__hint", children: n })
|
|
920
920
|
]
|
|
921
921
|
}
|
|
922
|
-
) }),
|
|
922
|
+
) }), Di = ({
|
|
923
923
|
label: e,
|
|
924
924
|
id: t,
|
|
925
|
-
name:
|
|
925
|
+
name: r,
|
|
926
926
|
fullWidth: n = !1,
|
|
927
|
-
...
|
|
928
|
-
}) => /* @__PURE__ */
|
|
927
|
+
...o
|
|
928
|
+
}) => /* @__PURE__ */ q(
|
|
929
929
|
"label",
|
|
930
930
|
{
|
|
931
|
-
className:
|
|
932
|
-
"rpf-input-radio--disabled":
|
|
931
|
+
className: ee("rpf-input-radio", {
|
|
932
|
+
"rpf-input-radio--disabled": o.disabled,
|
|
933
933
|
"rpf-input--full-width": n
|
|
934
934
|
}),
|
|
935
935
|
children: [
|
|
936
|
-
/* @__PURE__ */
|
|
936
|
+
/* @__PURE__ */ E("input", { type: "radio", id: t, name: r, ...o }),
|
|
937
937
|
e
|
|
938
938
|
]
|
|
939
939
|
}
|
|
940
|
-
),
|
|
940
|
+
), Li = ({
|
|
941
941
|
label: e,
|
|
942
942
|
inputFieldId: t,
|
|
943
|
-
disabled:
|
|
943
|
+
disabled: r = !1,
|
|
944
944
|
error: n = "",
|
|
945
|
-
hint:
|
|
946
|
-
placeholder:
|
|
947
|
-
defaultValue:
|
|
948
|
-
onClick:
|
|
945
|
+
hint: o = "",
|
|
946
|
+
placeholder: i = "",
|
|
947
|
+
defaultValue: s = "",
|
|
948
|
+
onClick: a = () => {
|
|
949
949
|
},
|
|
950
|
-
onChange:
|
|
950
|
+
onChange: l = () => {
|
|
951
951
|
}
|
|
952
|
-
}) => /* @__PURE__ */
|
|
953
|
-
/* @__PURE__ */
|
|
952
|
+
}) => /* @__PURE__ */ E("search", { children: /* @__PURE__ */ q("form", { className: "rpf-input-field", onSubmit: a, children: [
|
|
953
|
+
/* @__PURE__ */ q(
|
|
954
954
|
"label",
|
|
955
955
|
{
|
|
956
956
|
htmlFor: t,
|
|
957
|
-
className:
|
|
958
|
-
"rpf-label--disabled":
|
|
957
|
+
className: ee("rpf-label", {
|
|
958
|
+
"rpf-label--disabled": r
|
|
959
959
|
}),
|
|
960
960
|
children: [
|
|
961
961
|
e,
|
|
962
|
-
|
|
962
|
+
o && /* @__PURE__ */ E("small", { className: "rpf-label__hint", children: o })
|
|
963
963
|
]
|
|
964
964
|
}
|
|
965
965
|
),
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */
|
|
966
|
+
/* @__PURE__ */ q("div", { className: "rpf-input-search-container", children: [
|
|
967
|
+
/* @__PURE__ */ E(
|
|
968
968
|
"input",
|
|
969
969
|
{
|
|
970
|
-
className:
|
|
971
|
-
"rpf-input--disabled":
|
|
970
|
+
className: ee("rpf-input rpf-input-search", {
|
|
971
|
+
"rpf-input--disabled": r,
|
|
972
972
|
"rpf-input--error": n
|
|
973
973
|
}),
|
|
974
|
-
disabled:
|
|
974
|
+
disabled: r,
|
|
975
975
|
id: t,
|
|
976
976
|
name: "search",
|
|
977
977
|
type: "search",
|
|
978
978
|
"aria-label": "Search",
|
|
979
|
-
defaultValue:
|
|
980
|
-
placeholder:
|
|
981
|
-
onChange:
|
|
979
|
+
defaultValue: s,
|
|
980
|
+
placeholder: i,
|
|
981
|
+
onChange: l
|
|
982
982
|
}
|
|
983
983
|
),
|
|
984
|
-
/* @__PURE__ */
|
|
984
|
+
/* @__PURE__ */ E(
|
|
985
985
|
"button",
|
|
986
986
|
{
|
|
987
987
|
type: "submit",
|
|
988
|
-
className:
|
|
989
|
-
"rpf-button--disabled":
|
|
988
|
+
className: ee("rpf-button rpf-button-search", {
|
|
989
|
+
"rpf-button--disabled": r,
|
|
990
990
|
"rpf-button--error": n
|
|
991
991
|
}),
|
|
992
|
-
disabled:
|
|
993
|
-
onClick:
|
|
994
|
-
children: /* @__PURE__ */
|
|
992
|
+
disabled: r,
|
|
993
|
+
onClick: a,
|
|
994
|
+
children: /* @__PURE__ */ E("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
|
|
995
995
|
}
|
|
996
996
|
)
|
|
997
997
|
] }),
|
|
998
|
-
n && /* @__PURE__ */
|
|
999
|
-
/* @__PURE__ */
|
|
998
|
+
n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
999
|
+
/* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
1000
1000
|
n
|
|
1001
1001
|
] })
|
|
1002
|
-
] }) }),
|
|
1002
|
+
] }) }), Fi = ({
|
|
1003
1003
|
id: e,
|
|
1004
1004
|
label: t,
|
|
1005
|
-
name:
|
|
1005
|
+
name: r,
|
|
1006
1006
|
options: n,
|
|
1007
|
-
disabled:
|
|
1008
|
-
error:
|
|
1009
|
-
fullWidth:
|
|
1010
|
-
hint:
|
|
1011
|
-
onChange:
|
|
1007
|
+
disabled: o = !1,
|
|
1008
|
+
error: i = "",
|
|
1009
|
+
fullWidth: s = !1,
|
|
1010
|
+
hint: a = "",
|
|
1011
|
+
onChange: l = () => {
|
|
1012
1012
|
},
|
|
1013
|
-
placeholder:
|
|
1014
|
-
value:
|
|
1015
|
-
...
|
|
1016
|
-
}) => /* @__PURE__ */
|
|
1017
|
-
|
|
1013
|
+
placeholder: c = "",
|
|
1014
|
+
value: f = "",
|
|
1015
|
+
...d
|
|
1016
|
+
}) => /* @__PURE__ */ E(
|
|
1017
|
+
Dt,
|
|
1018
1018
|
{
|
|
1019
1019
|
id: e,
|
|
1020
|
-
disabled:
|
|
1021
|
-
error:
|
|
1022
|
-
hint:
|
|
1020
|
+
disabled: o,
|
|
1021
|
+
error: i,
|
|
1022
|
+
hint: a,
|
|
1023
1023
|
label: t,
|
|
1024
|
-
children: /* @__PURE__ */
|
|
1024
|
+
children: /* @__PURE__ */ q(
|
|
1025
1025
|
"select",
|
|
1026
1026
|
{
|
|
1027
|
-
className:
|
|
1028
|
-
"rpf-input--error":
|
|
1029
|
-
"rpf-input--full-width":
|
|
1027
|
+
className: ee("rpf-input rpf-input-select", {
|
|
1028
|
+
"rpf-input--error": i,
|
|
1029
|
+
"rpf-input--full-width": s
|
|
1030
1030
|
}),
|
|
1031
|
-
disabled:
|
|
1031
|
+
disabled: o,
|
|
1032
1032
|
id: e,
|
|
1033
|
-
name:
|
|
1034
|
-
onChange:
|
|
1035
|
-
value:
|
|
1036
|
-
...
|
|
1033
|
+
name: r,
|
|
1034
|
+
onChange: l,
|
|
1035
|
+
value: f,
|
|
1036
|
+
...d,
|
|
1037
1037
|
children: [
|
|
1038
|
-
!
|
|
1039
|
-
n.map((
|
|
1038
|
+
!f && !!c && /* @__PURE__ */ E("option", { value: "", disabled: !0, children: c }),
|
|
1039
|
+
n.map((h) => /* @__PURE__ */ E("option", { value: h.key, children: h.value }, h.key))
|
|
1040
1040
|
]
|
|
1041
1041
|
}
|
|
1042
1042
|
)
|
|
1043
1043
|
}
|
|
1044
|
-
), br = (
|
|
1044
|
+
), br = kt(
|
|
1045
|
+
({
|
|
1046
|
+
label: e,
|
|
1047
|
+
id: t,
|
|
1048
|
+
name: r,
|
|
1049
|
+
error: n = "",
|
|
1050
|
+
fullWidth: o = !1,
|
|
1051
|
+
reverse: i = !1,
|
|
1052
|
+
hint: s = "",
|
|
1053
|
+
alignStart: a = !1,
|
|
1054
|
+
hideLabel: l = !1,
|
|
1055
|
+
icon: c = !1,
|
|
1056
|
+
className: f,
|
|
1057
|
+
disabled: d = !1,
|
|
1058
|
+
"aria-describedby": h,
|
|
1059
|
+
...u
|
|
1060
|
+
}, v) => {
|
|
1061
|
+
const p = n ? `${t}-error` : void 0, O = [h, p].filter(Boolean).join(" ") || void 0;
|
|
1062
|
+
return /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
|
|
1063
|
+
/* @__PURE__ */ q(
|
|
1064
|
+
"label",
|
|
1065
|
+
{
|
|
1066
|
+
className: ee(
|
|
1067
|
+
"rpf-switch",
|
|
1068
|
+
{
|
|
1069
|
+
"rpf-switch--full-width": o,
|
|
1070
|
+
"rpf-switch--reverse": i,
|
|
1071
|
+
"rpf-switch--align-start": a,
|
|
1072
|
+
"rpf-switch--icon": c,
|
|
1073
|
+
"rpf-switch--disabled": d,
|
|
1074
|
+
"rpf-switch--error": n
|
|
1075
|
+
},
|
|
1076
|
+
f
|
|
1077
|
+
),
|
|
1078
|
+
children: [
|
|
1079
|
+
/* @__PURE__ */ q("span", { className: "rpf-switch__track", children: [
|
|
1080
|
+
/* @__PURE__ */ E(
|
|
1081
|
+
"input",
|
|
1082
|
+
{
|
|
1083
|
+
ref: v,
|
|
1084
|
+
id: t,
|
|
1085
|
+
name: r,
|
|
1086
|
+
type: "checkbox",
|
|
1087
|
+
role: "switch",
|
|
1088
|
+
className: "rpf-switch__checkbox",
|
|
1089
|
+
disabled: d,
|
|
1090
|
+
"aria-invalid": n ? !0 : void 0,
|
|
1091
|
+
"aria-describedby": O,
|
|
1092
|
+
...u
|
|
1093
|
+
}
|
|
1094
|
+
),
|
|
1095
|
+
/* @__PURE__ */ E("span", { className: "rpf-switch__handle", children: c ? /* @__PURE__ */ E("span", { className: "rpf-switch__icon", "aria-hidden": "true" }) : null })
|
|
1096
|
+
] }),
|
|
1097
|
+
/* @__PURE__ */ q(
|
|
1098
|
+
"span",
|
|
1099
|
+
{
|
|
1100
|
+
className: ee("rpf-label", "rpf-switch__label", {
|
|
1101
|
+
"rpf-label--disabled": d,
|
|
1102
|
+
"rpf-visually-hidden": l
|
|
1103
|
+
}),
|
|
1104
|
+
children: [
|
|
1105
|
+
/* @__PURE__ */ E("span", { children: e }),
|
|
1106
|
+
s ? /* @__PURE__ */ E("span", { className: "rpf-label__hint", children: s }) : null
|
|
1107
|
+
]
|
|
1108
|
+
}
|
|
1109
|
+
)
|
|
1110
|
+
]
|
|
1111
|
+
}
|
|
1112
|
+
),
|
|
1113
|
+
n ? /* @__PURE__ */ q("div", { id: p, className: "rpf-error-message", children: [
|
|
1114
|
+
/* @__PURE__ */ E("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
1115
|
+
n
|
|
1116
|
+
] }) : null
|
|
1117
|
+
] });
|
|
1118
|
+
}
|
|
1119
|
+
);
|
|
1120
|
+
br.displayName = "Switch";
|
|
1121
|
+
const $i = ({
|
|
1045
1122
|
id: e,
|
|
1046
1123
|
label: t,
|
|
1047
|
-
name:
|
|
1124
|
+
name: r,
|
|
1048
1125
|
value: n,
|
|
1049
|
-
disabled:
|
|
1050
|
-
readOnly:
|
|
1051
|
-
error:
|
|
1052
|
-
fullWidth:
|
|
1053
|
-
hint:
|
|
1054
|
-
onChange:
|
|
1126
|
+
disabled: o = !1,
|
|
1127
|
+
readOnly: i = !1,
|
|
1128
|
+
error: s = "",
|
|
1129
|
+
fullWidth: a = !1,
|
|
1130
|
+
hint: l = "",
|
|
1131
|
+
onChange: c = () => {
|
|
1055
1132
|
}
|
|
1056
|
-
}) => /* @__PURE__ */
|
|
1057
|
-
|
|
1133
|
+
}) => /* @__PURE__ */ E(
|
|
1134
|
+
Dt,
|
|
1058
1135
|
{
|
|
1059
1136
|
id: e,
|
|
1060
|
-
disabled:
|
|
1061
|
-
error:
|
|
1062
|
-
hint:
|
|
1137
|
+
disabled: o,
|
|
1138
|
+
error: s,
|
|
1139
|
+
hint: l,
|
|
1063
1140
|
label: t,
|
|
1064
|
-
children: /* @__PURE__ */
|
|
1141
|
+
children: /* @__PURE__ */ E(
|
|
1065
1142
|
"textarea",
|
|
1066
1143
|
{
|
|
1067
|
-
className:
|
|
1068
|
-
"rpf-input--error":
|
|
1069
|
-
"rpf-input--full-width":
|
|
1070
|
-
"rpf-input--disabled":
|
|
1144
|
+
className: ee("rpf-input rpf-input-textarea", {
|
|
1145
|
+
"rpf-input--error": s,
|
|
1146
|
+
"rpf-input--full-width": a,
|
|
1147
|
+
"rpf-input--disabled": o
|
|
1071
1148
|
}),
|
|
1072
|
-
disabled:
|
|
1073
|
-
readOnly:
|
|
1149
|
+
disabled: o,
|
|
1150
|
+
readOnly: i,
|
|
1074
1151
|
id: e,
|
|
1075
|
-
name:
|
|
1076
|
-
onChange:
|
|
1152
|
+
name: r,
|
|
1153
|
+
onChange: c,
|
|
1077
1154
|
value: n
|
|
1078
1155
|
}
|
|
1079
1156
|
)
|
|
1080
1157
|
}
|
|
1081
|
-
),
|
|
1158
|
+
), ji = ({
|
|
1082
1159
|
id: e,
|
|
1083
1160
|
name: t,
|
|
1084
|
-
label:
|
|
1161
|
+
label: r,
|
|
1085
1162
|
error: n = "",
|
|
1086
|
-
fullWidth:
|
|
1087
|
-
hint:
|
|
1088
|
-
type:
|
|
1089
|
-
...
|
|
1090
|
-
}) => /* @__PURE__ */
|
|
1091
|
-
|
|
1163
|
+
fullWidth: o = !1,
|
|
1164
|
+
hint: i = "",
|
|
1165
|
+
type: s = "text",
|
|
1166
|
+
...a
|
|
1167
|
+
}) => /* @__PURE__ */ E(
|
|
1168
|
+
Dt,
|
|
1092
1169
|
{
|
|
1093
1170
|
id: e,
|
|
1094
|
-
disabled:
|
|
1171
|
+
disabled: a.disabled,
|
|
1095
1172
|
error: n,
|
|
1096
|
-
hint:
|
|
1097
|
-
label:
|
|
1098
|
-
children: /* @__PURE__ */
|
|
1173
|
+
hint: i,
|
|
1174
|
+
label: r,
|
|
1175
|
+
children: /* @__PURE__ */ E(
|
|
1099
1176
|
"input",
|
|
1100
1177
|
{
|
|
1101
|
-
className:
|
|
1178
|
+
className: ee("rpf-input rpf-input-text", {
|
|
1102
1179
|
"rpf-input--error": n,
|
|
1103
|
-
"rpf-input--full-width":
|
|
1180
|
+
"rpf-input--full-width": o
|
|
1104
1181
|
}),
|
|
1105
1182
|
id: e,
|
|
1106
1183
|
name: t,
|
|
1107
|
-
type:
|
|
1108
|
-
...
|
|
1184
|
+
type: s,
|
|
1185
|
+
...a
|
|
1109
1186
|
}
|
|
1110
1187
|
)
|
|
1111
1188
|
}
|
|
1112
1189
|
);
|
|
1113
|
-
function
|
|
1114
|
-
const
|
|
1115
|
-
return
|
|
1116
|
-
const
|
|
1117
|
-
|
|
1118
|
-
}, [e]),
|
|
1119
|
-
const
|
|
1120
|
-
if (!
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1190
|
+
function yr(e, t) {
|
|
1191
|
+
const r = Rt(null), n = Rt(null);
|
|
1192
|
+
return We(() => {
|
|
1193
|
+
const o = r.current;
|
|
1194
|
+
o && (e && !o.open ? o.showModal() : !e && o.open && o.close());
|
|
1195
|
+
}, [e]), We(() => {
|
|
1196
|
+
const o = r.current;
|
|
1197
|
+
if (!o) return;
|
|
1198
|
+
const i = () => t(!1), s = (a) => {
|
|
1199
|
+
a.preventDefault(), t(!1);
|
|
1123
1200
|
};
|
|
1124
|
-
return
|
|
1125
|
-
|
|
1201
|
+
return o.addEventListener("close", i), o.addEventListener("cancel", s), () => {
|
|
1202
|
+
o.removeEventListener("close", i), o.removeEventListener("cancel", s);
|
|
1126
1203
|
};
|
|
1127
|
-
}, [t]),
|
|
1128
|
-
const
|
|
1129
|
-
if (!
|
|
1130
|
-
const
|
|
1131
|
-
e && !
|
|
1204
|
+
}, [t]), We(() => {
|
|
1205
|
+
const o = r.current, i = n.current;
|
|
1206
|
+
if (!o || !i) return;
|
|
1207
|
+
const s = (a) => {
|
|
1208
|
+
e && !i.contains(a.target) && t(!1);
|
|
1132
1209
|
};
|
|
1133
|
-
return
|
|
1134
|
-
}, [e, t]), { dialogRef:
|
|
1210
|
+
return o.addEventListener("mousedown", s), () => o.removeEventListener("mousedown", s);
|
|
1211
|
+
}, [e, t]), { dialogRef: r, contentRef: n };
|
|
1135
1212
|
}
|
|
1136
|
-
const
|
|
1213
|
+
const Wi = ({
|
|
1137
1214
|
isOpen: e,
|
|
1138
1215
|
setIsOpen: t,
|
|
1139
|
-
heading:
|
|
1216
|
+
heading: r,
|
|
1140
1217
|
children: n,
|
|
1141
|
-
primaryButtonLink:
|
|
1142
|
-
primaryButtonText:
|
|
1143
|
-
onClickPrimaryButton:
|
|
1144
|
-
secondaryButtonText:
|
|
1145
|
-
secondaryButtonLink:
|
|
1146
|
-
onClickSecondaryButton:
|
|
1147
|
-
tertiaryButtonText:
|
|
1148
|
-
tertiaryButtonLink:
|
|
1149
|
-
onClickTertiaryButton:
|
|
1150
|
-
showCloseButton:
|
|
1218
|
+
primaryButtonLink: o,
|
|
1219
|
+
primaryButtonText: i,
|
|
1220
|
+
onClickPrimaryButton: s,
|
|
1221
|
+
secondaryButtonText: a,
|
|
1222
|
+
secondaryButtonLink: l,
|
|
1223
|
+
onClickSecondaryButton: c,
|
|
1224
|
+
tertiaryButtonText: f,
|
|
1225
|
+
tertiaryButtonLink: d,
|
|
1226
|
+
onClickTertiaryButton: h,
|
|
1227
|
+
showCloseButton: u = !0
|
|
1151
1228
|
}) => {
|
|
1152
|
-
const { dialogRef:
|
|
1153
|
-
return /* @__PURE__ */
|
|
1229
|
+
const { dialogRef: v, contentRef: p } = yr(e, t);
|
|
1230
|
+
return /* @__PURE__ */ E(
|
|
1154
1231
|
"dialog",
|
|
1155
1232
|
{
|
|
1156
|
-
ref:
|
|
1233
|
+
ref: v,
|
|
1157
1234
|
className: "rpf-modal",
|
|
1158
1235
|
"aria-labelledby": "modal-heading",
|
|
1159
1236
|
"aria-describedby": "modal-description",
|
|
1160
|
-
children: /* @__PURE__ */
|
|
1161
|
-
/* @__PURE__ */
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
|
|
1164
|
-
|
|
1237
|
+
children: /* @__PURE__ */ q("div", { ref: p, className: "rpf-modal__wrapper", children: [
|
|
1238
|
+
/* @__PURE__ */ q("div", { className: "rpf-modal__header", children: [
|
|
1239
|
+
/* @__PURE__ */ E("h2", { className: "rpf-modal__title", id: "modal-heading", children: r }),
|
|
1240
|
+
u && /* @__PURE__ */ E(
|
|
1241
|
+
Re,
|
|
1165
1242
|
{
|
|
1166
1243
|
icon: "close",
|
|
1167
1244
|
iconOnly: !0,
|
|
@@ -1171,32 +1248,32 @@ const gr = ({
|
|
|
1171
1248
|
}
|
|
1172
1249
|
)
|
|
1173
1250
|
] }),
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
/* @__PURE__ */
|
|
1177
|
-
|
|
1251
|
+
/* @__PURE__ */ E("div", { id: "modal-description", className: "rpf-modal__content", tabIndex: 0, children: n }),
|
|
1252
|
+
/* @__PURE__ */ q("div", { className: "rpf-modal__buttons", children: [
|
|
1253
|
+
/* @__PURE__ */ E(
|
|
1254
|
+
Re,
|
|
1178
1255
|
{
|
|
1179
|
-
text:
|
|
1180
|
-
href:
|
|
1181
|
-
onClick:
|
|
1256
|
+
text: i,
|
|
1257
|
+
href: o,
|
|
1258
|
+
onClick: s,
|
|
1182
1259
|
type: "primary"
|
|
1183
1260
|
}
|
|
1184
1261
|
),
|
|
1185
|
-
|
|
1186
|
-
|
|
1262
|
+
a && /* @__PURE__ */ E(
|
|
1263
|
+
Re,
|
|
1187
1264
|
{
|
|
1188
|
-
text:
|
|
1189
|
-
href:
|
|
1190
|
-
onClick:
|
|
1265
|
+
text: a,
|
|
1266
|
+
href: l,
|
|
1267
|
+
onClick: c,
|
|
1191
1268
|
type: "secondary"
|
|
1192
1269
|
}
|
|
1193
1270
|
),
|
|
1194
|
-
|
|
1195
|
-
|
|
1271
|
+
f && /* @__PURE__ */ E(
|
|
1272
|
+
Re,
|
|
1196
1273
|
{
|
|
1197
|
-
text:
|
|
1198
|
-
href:
|
|
1199
|
-
onClick:
|
|
1274
|
+
text: f,
|
|
1275
|
+
href: d,
|
|
1276
|
+
onClick: h,
|
|
1200
1277
|
type: "tertiary"
|
|
1201
1278
|
}
|
|
1202
1279
|
)
|
|
@@ -1204,37 +1281,2409 @@ const gr = ({
|
|
|
1204
1281
|
] })
|
|
1205
1282
|
}
|
|
1206
1283
|
);
|
|
1207
|
-
},
|
|
1284
|
+
}, gr = ({ className: e, children: t }) => {
|
|
1285
|
+
const r = ee("rpf-menu", e);
|
|
1286
|
+
return /* @__PURE__ */ E("ul", { className: r, children: t });
|
|
1287
|
+
};
|
|
1288
|
+
function Qe() {
|
|
1289
|
+
return typeof window < "u";
|
|
1290
|
+
}
|
|
1291
|
+
function ye(e) {
|
|
1292
|
+
return In(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1293
|
+
}
|
|
1294
|
+
function ie(e) {
|
|
1295
|
+
var t;
|
|
1296
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1297
|
+
}
|
|
1298
|
+
function ue(e) {
|
|
1299
|
+
var t;
|
|
1300
|
+
return (t = (In(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1301
|
+
}
|
|
1302
|
+
function In(e) {
|
|
1303
|
+
return Qe() ? e instanceof Node || e instanceof ie(e).Node : !1;
|
|
1304
|
+
}
|
|
1305
|
+
function Q(e) {
|
|
1306
|
+
return Qe() ? e instanceof Element || e instanceof ie(e).Element : !1;
|
|
1307
|
+
}
|
|
1308
|
+
function ne(e) {
|
|
1309
|
+
return Qe() ? e instanceof HTMLElement || e instanceof ie(e).HTMLElement : !1;
|
|
1310
|
+
}
|
|
1311
|
+
function St(e) {
|
|
1312
|
+
return !Qe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
|
|
1313
|
+
}
|
|
1314
|
+
function ke(e) {
|
|
1315
|
+
const {
|
|
1316
|
+
overflow: t,
|
|
1317
|
+
overflowX: r,
|
|
1318
|
+
overflowY: n,
|
|
1319
|
+
display: o
|
|
1320
|
+
} = se(e);
|
|
1321
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + r) && o !== "inline" && o !== "contents";
|
|
1322
|
+
}
|
|
1323
|
+
function wr(e) {
|
|
1324
|
+
return /^(table|td|th)$/.test(ye(e));
|
|
1325
|
+
}
|
|
1326
|
+
function et(e) {
|
|
1327
|
+
try {
|
|
1328
|
+
if (e.matches(":popover-open"))
|
|
1329
|
+
return !0;
|
|
1330
|
+
} catch {
|
|
1331
|
+
}
|
|
1332
|
+
try {
|
|
1333
|
+
return e.matches(":modal");
|
|
1334
|
+
} catch {
|
|
1335
|
+
return !1;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
const xr = /transform|translate|scale|rotate|perspective|filter/, Er = /paint|layout|strict|content/, ge = (e) => !!e && e !== "none";
|
|
1339
|
+
let mt;
|
|
1340
|
+
function Lt(e) {
|
|
1341
|
+
const t = Q(e) ? se(e) : e;
|
|
1342
|
+
return ge(t.transform) || ge(t.translate) || ge(t.scale) || ge(t.rotate) || ge(t.perspective) || !tt() && (ge(t.backdropFilter) || ge(t.filter)) || xr.test(t.willChange || "") || Er.test(t.contain || "");
|
|
1343
|
+
}
|
|
1344
|
+
function Rr(e) {
|
|
1345
|
+
let t = pe(e);
|
|
1346
|
+
for (; ne(t) && !be(t); ) {
|
|
1347
|
+
if (Lt(t))
|
|
1348
|
+
return t;
|
|
1349
|
+
if (et(t))
|
|
1350
|
+
return null;
|
|
1351
|
+
t = pe(t);
|
|
1352
|
+
}
|
|
1353
|
+
return null;
|
|
1354
|
+
}
|
|
1355
|
+
function tt() {
|
|
1356
|
+
return mt == null && (mt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), mt;
|
|
1357
|
+
}
|
|
1358
|
+
function be(e) {
|
|
1359
|
+
return /^(html|body|#document)$/.test(ye(e));
|
|
1360
|
+
}
|
|
1361
|
+
function se(e) {
|
|
1362
|
+
return ie(e).getComputedStyle(e);
|
|
1363
|
+
}
|
|
1364
|
+
function nt(e) {
|
|
1365
|
+
return Q(e) ? {
|
|
1366
|
+
scrollLeft: e.scrollLeft,
|
|
1367
|
+
scrollTop: e.scrollTop
|
|
1368
|
+
} : {
|
|
1369
|
+
scrollLeft: e.scrollX,
|
|
1370
|
+
scrollTop: e.scrollY
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
function pe(e) {
|
|
1374
|
+
if (ye(e) === "html")
|
|
1375
|
+
return e;
|
|
1376
|
+
const t = (
|
|
1377
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1378
|
+
e.assignedSlot || // DOM Element detected.
|
|
1379
|
+
e.parentNode || // ShadowRoot detected.
|
|
1380
|
+
St(e) && e.host || // Fallback.
|
|
1381
|
+
ue(e)
|
|
1382
|
+
);
|
|
1383
|
+
return St(t) ? t.host : t;
|
|
1384
|
+
}
|
|
1385
|
+
function kn(e) {
|
|
1386
|
+
const t = pe(e);
|
|
1387
|
+
return be(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ne(t) && ke(t) ? t : kn(t);
|
|
1388
|
+
}
|
|
1389
|
+
function ve(e, t, r) {
|
|
1390
|
+
var n;
|
|
1391
|
+
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
1392
|
+
const o = kn(e), i = o === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ie(o);
|
|
1393
|
+
if (i) {
|
|
1394
|
+
const a = Ct(s);
|
|
1395
|
+
return t.concat(s, s.visualViewport || [], ke(o) ? o : [], a && r ? ve(a) : []);
|
|
1396
|
+
} else
|
|
1397
|
+
return t.concat(o, ve(o, [], r));
|
|
1398
|
+
}
|
|
1399
|
+
function Ct(e) {
|
|
1400
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1401
|
+
}
|
|
1402
|
+
function we(e) {
|
|
1403
|
+
let t = e.activeElement;
|
|
1404
|
+
for (; ((r = t) == null || (r = r.shadowRoot) == null ? void 0 : r.activeElement) != null; ) {
|
|
1405
|
+
var r;
|
|
1406
|
+
t = t.shadowRoot.activeElement;
|
|
1407
|
+
}
|
|
1408
|
+
return t;
|
|
1409
|
+
}
|
|
1410
|
+
function oe(e, t) {
|
|
1411
|
+
if (!e || !t)
|
|
1412
|
+
return !1;
|
|
1413
|
+
const r = t.getRootNode == null ? void 0 : t.getRootNode();
|
|
1414
|
+
if (e.contains(t))
|
|
1415
|
+
return !0;
|
|
1416
|
+
if (r && St(r)) {
|
|
1417
|
+
let n = t;
|
|
1418
|
+
for (; n; ) {
|
|
1419
|
+
if (e === n)
|
|
1420
|
+
return !0;
|
|
1421
|
+
n = n.parentNode || n.host;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
return !1;
|
|
1425
|
+
}
|
|
1426
|
+
function Tr() {
|
|
1427
|
+
const e = navigator.userAgentData;
|
|
1428
|
+
return e != null && e.platform ? e.platform : navigator.platform;
|
|
1429
|
+
}
|
|
1430
|
+
function Mn() {
|
|
1431
|
+
const e = navigator.userAgentData;
|
|
1432
|
+
return e && Array.isArray(e.brands) ? e.brands.map((t) => {
|
|
1433
|
+
let {
|
|
1434
|
+
brand: r,
|
|
1435
|
+
version: n
|
|
1436
|
+
} = t;
|
|
1437
|
+
return r + "/" + n;
|
|
1438
|
+
}).join(" ") : navigator.userAgent;
|
|
1439
|
+
}
|
|
1440
|
+
function Sr(e) {
|
|
1441
|
+
return e.mozInputSource === 0 && e.isTrusted ? !0 : _t() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1442
|
+
}
|
|
1443
|
+
function Cr(e) {
|
|
1444
|
+
return Or() ? !1 : !_t() && e.width === 0 && e.height === 0 || _t() && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
1445
|
+
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
1446
|
+
}
|
|
1447
|
+
function _r() {
|
|
1448
|
+
return /apple/i.test(navigator.vendor);
|
|
1449
|
+
}
|
|
1450
|
+
function _t() {
|
|
1451
|
+
const e = /android/i;
|
|
1452
|
+
return e.test(Tr()) || e.test(Mn());
|
|
1453
|
+
}
|
|
1454
|
+
function Or() {
|
|
1455
|
+
return Mn().includes("jsdom/");
|
|
1456
|
+
}
|
|
1457
|
+
function en(e, t) {
|
|
1458
|
+
return ["mouse", "pen"].includes(e);
|
|
1459
|
+
}
|
|
1460
|
+
function Ar(e) {
|
|
1461
|
+
return "nativeEvent" in e;
|
|
1462
|
+
}
|
|
1463
|
+
function Pr(e) {
|
|
1464
|
+
return e.matches("html,body");
|
|
1465
|
+
}
|
|
1466
|
+
function ce(e) {
|
|
1467
|
+
return (e == null ? void 0 : e.ownerDocument) || document;
|
|
1468
|
+
}
|
|
1469
|
+
function ht(e, t) {
|
|
1470
|
+
if (t == null)
|
|
1471
|
+
return !1;
|
|
1472
|
+
if ("composedPath" in e)
|
|
1473
|
+
return e.composedPath().includes(t);
|
|
1474
|
+
const r = e;
|
|
1475
|
+
return r.target != null && t.contains(r.target);
|
|
1476
|
+
}
|
|
1477
|
+
function Ee(e) {
|
|
1478
|
+
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
1479
|
+
}
|
|
1480
|
+
const Nr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
|
|
1481
|
+
function Dn(e) {
|
|
1482
|
+
return ne(e) && e.matches(Nr);
|
|
1483
|
+
}
|
|
1484
|
+
function vt(e) {
|
|
1485
|
+
e.preventDefault(), e.stopPropagation();
|
|
1486
|
+
}
|
|
1487
|
+
function Ir(e) {
|
|
1488
|
+
return e ? e.getAttribute("role") === "combobox" && Dn(e) : !1;
|
|
1489
|
+
}
|
|
1490
|
+
const qe = Math.min, Te = Math.max, Ve = Math.round, Fe = Math.floor, le = (e) => ({
|
|
1491
|
+
x: e,
|
|
1492
|
+
y: e
|
|
1493
|
+
}), kr = {
|
|
1494
|
+
left: "right",
|
|
1495
|
+
right: "left",
|
|
1496
|
+
bottom: "top",
|
|
1497
|
+
top: "bottom"
|
|
1498
|
+
};
|
|
1499
|
+
function tn(e, t, r) {
|
|
1500
|
+
return Te(e, qe(t, r));
|
|
1501
|
+
}
|
|
1502
|
+
function rt(e, t) {
|
|
1503
|
+
return typeof e == "function" ? e(t) : e;
|
|
1504
|
+
}
|
|
1505
|
+
function Se(e) {
|
|
1506
|
+
return e.split("-")[0];
|
|
1507
|
+
}
|
|
1508
|
+
function ot(e) {
|
|
1509
|
+
return e.split("-")[1];
|
|
1510
|
+
}
|
|
1511
|
+
function Ln(e) {
|
|
1512
|
+
return e === "x" ? "y" : "x";
|
|
1513
|
+
}
|
|
1514
|
+
function Fn(e) {
|
|
1515
|
+
return e === "y" ? "height" : "width";
|
|
1516
|
+
}
|
|
1517
|
+
function he(e) {
|
|
1518
|
+
const t = e[0];
|
|
1519
|
+
return t === "t" || t === "b" ? "y" : "x";
|
|
1520
|
+
}
|
|
1521
|
+
function $n(e) {
|
|
1522
|
+
return Ln(he(e));
|
|
1523
|
+
}
|
|
1524
|
+
function Mr(e, t, r) {
|
|
1525
|
+
r === void 0 && (r = !1);
|
|
1526
|
+
const n = ot(e), o = $n(e), i = Fn(o);
|
|
1527
|
+
let s = o === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
1528
|
+
return t.reference[i] > t.floating[i] && (s = Ye(s)), [s, Ye(s)];
|
|
1529
|
+
}
|
|
1530
|
+
function Dr(e) {
|
|
1531
|
+
const t = Ye(e);
|
|
1532
|
+
return [Ot(e), t, Ot(t)];
|
|
1533
|
+
}
|
|
1534
|
+
function Ot(e) {
|
|
1535
|
+
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
1536
|
+
}
|
|
1537
|
+
const nn = ["left", "right"], rn = ["right", "left"], Lr = ["top", "bottom"], Fr = ["bottom", "top"];
|
|
1538
|
+
function $r(e, t, r) {
|
|
1539
|
+
switch (e) {
|
|
1540
|
+
case "top":
|
|
1541
|
+
case "bottom":
|
|
1542
|
+
return r ? t ? rn : nn : t ? nn : rn;
|
|
1543
|
+
case "left":
|
|
1544
|
+
case "right":
|
|
1545
|
+
return t ? Lr : Fr;
|
|
1546
|
+
default:
|
|
1547
|
+
return [];
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
function jr(e, t, r, n) {
|
|
1551
|
+
const o = ot(e);
|
|
1552
|
+
let i = $r(Se(e), r === "start", n);
|
|
1553
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ot)))), i;
|
|
1554
|
+
}
|
|
1555
|
+
function Ye(e) {
|
|
1556
|
+
const t = Se(e);
|
|
1557
|
+
return kr[t] + e.slice(t.length);
|
|
1558
|
+
}
|
|
1559
|
+
function Wr(e) {
|
|
1560
|
+
return {
|
|
1561
|
+
top: 0,
|
|
1562
|
+
right: 0,
|
|
1563
|
+
bottom: 0,
|
|
1564
|
+
left: 0,
|
|
1565
|
+
...e
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
function Br(e) {
|
|
1569
|
+
return typeof e != "number" ? Wr(e) : {
|
|
1570
|
+
top: e,
|
|
1571
|
+
right: e,
|
|
1572
|
+
bottom: e,
|
|
1573
|
+
left: e
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
function Ue(e) {
|
|
1577
|
+
const {
|
|
1578
|
+
x: t,
|
|
1579
|
+
y: r,
|
|
1580
|
+
width: n,
|
|
1581
|
+
height: o
|
|
1582
|
+
} = e;
|
|
1583
|
+
return {
|
|
1584
|
+
width: n,
|
|
1585
|
+
height: o,
|
|
1586
|
+
top: r,
|
|
1587
|
+
left: t,
|
|
1588
|
+
right: t + n,
|
|
1589
|
+
bottom: r + o,
|
|
1590
|
+
x: t,
|
|
1591
|
+
y: r
|
|
1592
|
+
};
|
|
1593
|
+
}
|
|
1594
|
+
/*!
|
|
1595
|
+
* tabbable 6.4.0
|
|
1596
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1597
|
+
*/
|
|
1598
|
+
var qr = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"], He = /* @__PURE__ */ qr.join(","), jn = typeof Element > "u", Pe = jn ? function() {
|
|
1599
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ke = !jn && Element.prototype.getRootNode ? function(e) {
|
|
1600
|
+
var t;
|
|
1601
|
+
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
1602
|
+
} : function(e) {
|
|
1603
|
+
return e == null ? void 0 : e.ownerDocument;
|
|
1604
|
+
}, ze = function(t, r) {
|
|
1605
|
+
var n;
|
|
1606
|
+
r === void 0 && (r = !0);
|
|
1607
|
+
var o = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "inert"), i = o === "" || o === "true", s = i || r && t && // closest does not exist on shadow roots, so we fall back to a manual
|
|
1608
|
+
// lookup upward, in case it is not defined.
|
|
1609
|
+
(typeof t.closest == "function" ? t.closest("[inert]") : ze(t.parentNode));
|
|
1610
|
+
return s;
|
|
1611
|
+
}, Vr = function(t) {
|
|
1612
|
+
var r, n = t == null || (r = t.getAttribute) === null || r === void 0 ? void 0 : r.call(t, "contenteditable");
|
|
1613
|
+
return n === "" || n === "true";
|
|
1614
|
+
}, Yr = function(t, r, n) {
|
|
1615
|
+
if (ze(t))
|
|
1616
|
+
return [];
|
|
1617
|
+
var o = Array.prototype.slice.apply(t.querySelectorAll(He));
|
|
1618
|
+
return r && Pe.call(t, He) && o.unshift(t), o = o.filter(n), o;
|
|
1619
|
+
}, At = function(t, r, n) {
|
|
1620
|
+
for (var o = [], i = Array.from(t); i.length; ) {
|
|
1621
|
+
var s = i.shift();
|
|
1622
|
+
if (!ze(s, !1))
|
|
1623
|
+
if (s.tagName === "SLOT") {
|
|
1624
|
+
var a = s.assignedElements(), l = a.length ? a : s.children, c = At(l, !0, n);
|
|
1625
|
+
n.flatten ? o.push.apply(o, c) : o.push({
|
|
1626
|
+
scopeParent: s,
|
|
1627
|
+
candidates: c
|
|
1628
|
+
});
|
|
1629
|
+
} else {
|
|
1630
|
+
var f = Pe.call(s, He);
|
|
1631
|
+
f && n.filter(s) && (r || !t.includes(s)) && o.push(s);
|
|
1632
|
+
var d = s.shadowRoot || // check for an undisclosed shadow
|
|
1633
|
+
typeof n.getShadowRoot == "function" && n.getShadowRoot(s), h = !ze(d, !1) && (!n.shadowRootFilter || n.shadowRootFilter(s));
|
|
1634
|
+
if (d && h) {
|
|
1635
|
+
var u = At(d === !0 ? s.children : d.children, !0, n);
|
|
1636
|
+
n.flatten ? o.push.apply(o, u) : o.push({
|
|
1637
|
+
scopeParent: s,
|
|
1638
|
+
candidates: u
|
|
1639
|
+
});
|
|
1640
|
+
} else
|
|
1641
|
+
i.unshift.apply(i, s.children);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
return o;
|
|
1645
|
+
}, Wn = function(t) {
|
|
1646
|
+
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
1647
|
+
}, Bn = function(t) {
|
|
1648
|
+
if (!t)
|
|
1649
|
+
throw new Error("No node provided");
|
|
1650
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Vr(t)) && !Wn(t) ? 0 : t.tabIndex;
|
|
1651
|
+
}, Ur = function(t, r) {
|
|
1652
|
+
var n = Bn(t);
|
|
1653
|
+
return n < 0 && r && !Wn(t) ? 0 : n;
|
|
1654
|
+
}, Hr = function(t, r) {
|
|
1655
|
+
return t.tabIndex === r.tabIndex ? t.documentOrder - r.documentOrder : t.tabIndex - r.tabIndex;
|
|
1656
|
+
}, qn = function(t) {
|
|
1657
|
+
return t.tagName === "INPUT";
|
|
1658
|
+
}, Kr = function(t) {
|
|
1659
|
+
return qn(t) && t.type === "hidden";
|
|
1660
|
+
}, zr = function(t) {
|
|
1661
|
+
var r = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(n) {
|
|
1662
|
+
return n.tagName === "SUMMARY";
|
|
1663
|
+
});
|
|
1664
|
+
return r;
|
|
1665
|
+
}, Xr = function(t, r) {
|
|
1666
|
+
for (var n = 0; n < t.length; n++)
|
|
1667
|
+
if (t[n].checked && t[n].form === r)
|
|
1668
|
+
return t[n];
|
|
1669
|
+
}, Gr = function(t) {
|
|
1670
|
+
if (!t.name)
|
|
1671
|
+
return !0;
|
|
1672
|
+
var r = t.form || Ke(t), n = function(a) {
|
|
1673
|
+
return r.querySelectorAll('input[type="radio"][name="' + a + '"]');
|
|
1674
|
+
}, o;
|
|
1675
|
+
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
1676
|
+
o = n(window.CSS.escape(t.name));
|
|
1677
|
+
else
|
|
1678
|
+
try {
|
|
1679
|
+
o = n(t.name);
|
|
1680
|
+
} catch (s) {
|
|
1681
|
+
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", s.message), !1;
|
|
1682
|
+
}
|
|
1683
|
+
var i = Xr(o, t.form);
|
|
1684
|
+
return !i || i === t;
|
|
1685
|
+
}, Zr = function(t) {
|
|
1686
|
+
return qn(t) && t.type === "radio";
|
|
1687
|
+
}, Jr = function(t) {
|
|
1688
|
+
return Zr(t) && !Gr(t);
|
|
1689
|
+
}, Qr = function(t) {
|
|
1690
|
+
var r, n = t && Ke(t), o = (r = n) === null || r === void 0 ? void 0 : r.host, i = !1;
|
|
1691
|
+
if (n && n !== t) {
|
|
1692
|
+
var s, a, l;
|
|
1693
|
+
for (i = !!((s = o) !== null && s !== void 0 && (a = s.ownerDocument) !== null && a !== void 0 && a.contains(o) || t != null && (l = t.ownerDocument) !== null && l !== void 0 && l.contains(t)); !i && o; ) {
|
|
1694
|
+
var c, f, d;
|
|
1695
|
+
n = Ke(o), o = (c = n) === null || c === void 0 ? void 0 : c.host, i = !!((f = o) !== null && f !== void 0 && (d = f.ownerDocument) !== null && d !== void 0 && d.contains(o));
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
return i;
|
|
1699
|
+
}, on = function(t) {
|
|
1700
|
+
var r = t.getBoundingClientRect(), n = r.width, o = r.height;
|
|
1701
|
+
return n === 0 && o === 0;
|
|
1702
|
+
}, eo = function(t, r) {
|
|
1703
|
+
var n = r.displayCheck, o = r.getShadowRoot;
|
|
1704
|
+
if (n === "full-native" && "checkVisibility" in t) {
|
|
1705
|
+
var i = t.checkVisibility({
|
|
1706
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
1707
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
1708
|
+
checkOpacity: !1,
|
|
1709
|
+
opacityProperty: !1,
|
|
1710
|
+
contentVisibilityAuto: !0,
|
|
1711
|
+
visibilityProperty: !0,
|
|
1712
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
1713
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
1714
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
1715
|
+
// we include it anyway.
|
|
1716
|
+
checkVisibilityCSS: !0
|
|
1717
|
+
});
|
|
1718
|
+
return !i;
|
|
1719
|
+
}
|
|
1720
|
+
if (getComputedStyle(t).visibility === "hidden")
|
|
1721
|
+
return !0;
|
|
1722
|
+
var s = Pe.call(t, "details>summary:first-of-type"), a = s ? t.parentElement : t;
|
|
1723
|
+
if (Pe.call(a, "details:not([open]) *"))
|
|
1724
|
+
return !0;
|
|
1725
|
+
if (!n || n === "full" || // full-native can run this branch when it falls through in case
|
|
1726
|
+
// Element#checkVisibility is unsupported
|
|
1727
|
+
n === "full-native" || n === "legacy-full") {
|
|
1728
|
+
if (typeof o == "function") {
|
|
1729
|
+
for (var l = t; t; ) {
|
|
1730
|
+
var c = t.parentElement, f = Ke(t);
|
|
1731
|
+
if (c && !c.shadowRoot && o(c) === !0)
|
|
1732
|
+
return on(t);
|
|
1733
|
+
t.assignedSlot ? t = t.assignedSlot : !c && f !== t.ownerDocument ? t = f.host : t = c;
|
|
1734
|
+
}
|
|
1735
|
+
t = l;
|
|
1736
|
+
}
|
|
1737
|
+
if (Qr(t))
|
|
1738
|
+
return !t.getClientRects().length;
|
|
1739
|
+
if (n !== "legacy-full")
|
|
1740
|
+
return !0;
|
|
1741
|
+
} else if (n === "non-zero-area")
|
|
1742
|
+
return on(t);
|
|
1743
|
+
return !1;
|
|
1744
|
+
}, to = function(t) {
|
|
1745
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
1746
|
+
for (var r = t.parentElement; r; ) {
|
|
1747
|
+
if (r.tagName === "FIELDSET" && r.disabled) {
|
|
1748
|
+
for (var n = 0; n < r.children.length; n++) {
|
|
1749
|
+
var o = r.children.item(n);
|
|
1750
|
+
if (o.tagName === "LEGEND")
|
|
1751
|
+
return Pe.call(r, "fieldset[disabled] *") ? !0 : !o.contains(t);
|
|
1752
|
+
}
|
|
1753
|
+
return !0;
|
|
1754
|
+
}
|
|
1755
|
+
r = r.parentElement;
|
|
1756
|
+
}
|
|
1757
|
+
return !1;
|
|
1758
|
+
}, no = function(t, r) {
|
|
1759
|
+
return !(r.disabled || Kr(r) || eo(r, t) || // For a details element with a summary, the summary element gets the focus
|
|
1760
|
+
zr(r) || to(r));
|
|
1761
|
+
}, Pt = function(t, r) {
|
|
1762
|
+
return !(Jr(r) || Bn(r) < 0 || !no(t, r));
|
|
1763
|
+
}, ro = function(t) {
|
|
1764
|
+
var r = parseInt(t.getAttribute("tabindex"), 10);
|
|
1765
|
+
return !!(isNaN(r) || r >= 0);
|
|
1766
|
+
}, Vn = function(t) {
|
|
1767
|
+
var r = [], n = [];
|
|
1768
|
+
return t.forEach(function(o, i) {
|
|
1769
|
+
var s = !!o.scopeParent, a = s ? o.scopeParent : o, l = Ur(a, s), c = s ? Vn(o.candidates) : a;
|
|
1770
|
+
l === 0 ? s ? r.push.apply(r, c) : r.push(a) : n.push({
|
|
1771
|
+
documentOrder: i,
|
|
1772
|
+
tabIndex: l,
|
|
1773
|
+
item: o,
|
|
1774
|
+
isScope: s,
|
|
1775
|
+
content: c
|
|
1776
|
+
});
|
|
1777
|
+
}), n.sort(Hr).reduce(function(o, i) {
|
|
1778
|
+
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
1779
|
+
}, []).concat(r);
|
|
1780
|
+
}, Ft = function(t, r) {
|
|
1781
|
+
r = r || {};
|
|
1782
|
+
var n;
|
|
1783
|
+
return r.getShadowRoot ? n = At([t], r.includeContainer, {
|
|
1784
|
+
filter: Pt.bind(null, r),
|
|
1785
|
+
flatten: !1,
|
|
1786
|
+
getShadowRoot: r.getShadowRoot,
|
|
1787
|
+
shadowRootFilter: ro
|
|
1788
|
+
}) : n = Yr(t, r.includeContainer, Pt.bind(null, r)), Vn(n);
|
|
1789
|
+
}, oo = function(t, r) {
|
|
1790
|
+
if (r = r || {}, !t)
|
|
1791
|
+
throw new Error("No node provided");
|
|
1792
|
+
return Pe.call(t, He) === !1 ? !1 : Pt(r, t);
|
|
1793
|
+
};
|
|
1794
|
+
function sn(e, t, r) {
|
|
1795
|
+
let {
|
|
1796
|
+
reference: n,
|
|
1797
|
+
floating: o
|
|
1798
|
+
} = e;
|
|
1799
|
+
const i = he(t), s = $n(t), a = Fn(s), l = Se(t), c = i === "y", f = n.x + n.width / 2 - o.width / 2, d = n.y + n.height / 2 - o.height / 2, h = n[a] / 2 - o[a] / 2;
|
|
1800
|
+
let u;
|
|
1801
|
+
switch (l) {
|
|
1802
|
+
case "top":
|
|
1803
|
+
u = {
|
|
1804
|
+
x: f,
|
|
1805
|
+
y: n.y - o.height
|
|
1806
|
+
};
|
|
1807
|
+
break;
|
|
1808
|
+
case "bottom":
|
|
1809
|
+
u = {
|
|
1810
|
+
x: f,
|
|
1811
|
+
y: n.y + n.height
|
|
1812
|
+
};
|
|
1813
|
+
break;
|
|
1814
|
+
case "right":
|
|
1815
|
+
u = {
|
|
1816
|
+
x: n.x + n.width,
|
|
1817
|
+
y: d
|
|
1818
|
+
};
|
|
1819
|
+
break;
|
|
1820
|
+
case "left":
|
|
1821
|
+
u = {
|
|
1822
|
+
x: n.x - o.width,
|
|
1823
|
+
y: d
|
|
1824
|
+
};
|
|
1825
|
+
break;
|
|
1826
|
+
default:
|
|
1827
|
+
u = {
|
|
1828
|
+
x: n.x,
|
|
1829
|
+
y: n.y
|
|
1830
|
+
};
|
|
1831
|
+
}
|
|
1832
|
+
switch (ot(t)) {
|
|
1833
|
+
case "start":
|
|
1834
|
+
u[s] -= h * (r && c ? -1 : 1);
|
|
1835
|
+
break;
|
|
1836
|
+
case "end":
|
|
1837
|
+
u[s] += h * (r && c ? -1 : 1);
|
|
1838
|
+
break;
|
|
1839
|
+
}
|
|
1840
|
+
return u;
|
|
1841
|
+
}
|
|
1842
|
+
async function io(e, t) {
|
|
1843
|
+
var r;
|
|
1844
|
+
t === void 0 && (t = {});
|
|
1845
|
+
const {
|
|
1846
|
+
x: n,
|
|
1847
|
+
y: o,
|
|
1848
|
+
platform: i,
|
|
1849
|
+
rects: s,
|
|
1850
|
+
elements: a,
|
|
1851
|
+
strategy: l
|
|
1852
|
+
} = e, {
|
|
1853
|
+
boundary: c = "clippingAncestors",
|
|
1854
|
+
rootBoundary: f = "viewport",
|
|
1855
|
+
elementContext: d = "floating",
|
|
1856
|
+
altBoundary: h = !1,
|
|
1857
|
+
padding: u = 0
|
|
1858
|
+
} = rt(t, e), v = Br(u), O = a[h ? d === "floating" ? "reference" : "floating" : d], A = Ue(await i.getClippingRect({
|
|
1859
|
+
element: (r = await (i.isElement == null ? void 0 : i.isElement(O))) == null || r ? O : O.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
1860
|
+
boundary: c,
|
|
1861
|
+
rootBoundary: f,
|
|
1862
|
+
strategy: l
|
|
1863
|
+
})), I = d === "floating" ? {
|
|
1864
|
+
x: n,
|
|
1865
|
+
y: o,
|
|
1866
|
+
width: s.floating.width,
|
|
1867
|
+
height: s.floating.height
|
|
1868
|
+
} : s.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), T = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
|
|
1869
|
+
x: 1,
|
|
1870
|
+
y: 1
|
|
1871
|
+
} : {
|
|
1872
|
+
x: 1,
|
|
1873
|
+
y: 1
|
|
1874
|
+
}, b = Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1875
|
+
elements: a,
|
|
1876
|
+
rect: I,
|
|
1877
|
+
offsetParent: y,
|
|
1878
|
+
strategy: l
|
|
1879
|
+
}) : I);
|
|
1880
|
+
return {
|
|
1881
|
+
top: (A.top - b.top + v.top) / T.y,
|
|
1882
|
+
bottom: (b.bottom - A.bottom + v.bottom) / T.y,
|
|
1883
|
+
left: (A.left - b.left + v.left) / T.x,
|
|
1884
|
+
right: (b.right - A.right + v.right) / T.x
|
|
1885
|
+
};
|
|
1886
|
+
}
|
|
1887
|
+
const so = 50, ao = async (e, t, r) => {
|
|
1888
|
+
const {
|
|
1889
|
+
placement: n = "bottom",
|
|
1890
|
+
strategy: o = "absolute",
|
|
1891
|
+
middleware: i = [],
|
|
1892
|
+
platform: s
|
|
1893
|
+
} = r, a = s.detectOverflow ? s : {
|
|
1894
|
+
...s,
|
|
1895
|
+
detectOverflow: io
|
|
1896
|
+
}, l = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
1897
|
+
let c = await s.getElementRects({
|
|
1898
|
+
reference: e,
|
|
1899
|
+
floating: t,
|
|
1900
|
+
strategy: o
|
|
1901
|
+
}), {
|
|
1902
|
+
x: f,
|
|
1903
|
+
y: d
|
|
1904
|
+
} = sn(c, n, l), h = n, u = 0;
|
|
1905
|
+
const v = {};
|
|
1906
|
+
for (let p = 0; p < i.length; p++) {
|
|
1907
|
+
const O = i[p];
|
|
1908
|
+
if (!O)
|
|
1909
|
+
continue;
|
|
1910
|
+
const {
|
|
1911
|
+
name: A,
|
|
1912
|
+
fn: I
|
|
1913
|
+
} = O, {
|
|
1914
|
+
x: y,
|
|
1915
|
+
y: T,
|
|
1916
|
+
data: b,
|
|
1917
|
+
reset: k
|
|
1918
|
+
} = await I({
|
|
1919
|
+
x: f,
|
|
1920
|
+
y: d,
|
|
1921
|
+
initialPlacement: n,
|
|
1922
|
+
placement: h,
|
|
1923
|
+
strategy: o,
|
|
1924
|
+
middlewareData: v,
|
|
1925
|
+
rects: c,
|
|
1926
|
+
platform: a,
|
|
1927
|
+
elements: {
|
|
1928
|
+
reference: e,
|
|
1929
|
+
floating: t
|
|
1930
|
+
}
|
|
1931
|
+
});
|
|
1932
|
+
f = y ?? f, d = T ?? d, v[A] = {
|
|
1933
|
+
...v[A],
|
|
1934
|
+
...b
|
|
1935
|
+
}, k && u < so && (u++, typeof k == "object" && (k.placement && (h = k.placement), k.rects && (c = k.rects === !0 ? await s.getElementRects({
|
|
1936
|
+
reference: e,
|
|
1937
|
+
floating: t,
|
|
1938
|
+
strategy: o
|
|
1939
|
+
}) : k.rects), {
|
|
1940
|
+
x: f,
|
|
1941
|
+
y: d
|
|
1942
|
+
} = sn(c, h, l)), p = -1);
|
|
1943
|
+
}
|
|
1944
|
+
return {
|
|
1945
|
+
x: f,
|
|
1946
|
+
y: d,
|
|
1947
|
+
placement: h,
|
|
1948
|
+
strategy: o,
|
|
1949
|
+
middlewareData: v
|
|
1950
|
+
};
|
|
1951
|
+
}, co = function(e) {
|
|
1952
|
+
return e === void 0 && (e = {}), {
|
|
1953
|
+
name: "flip",
|
|
1954
|
+
options: e,
|
|
1955
|
+
async fn(t) {
|
|
1956
|
+
var r, n;
|
|
1957
|
+
const {
|
|
1958
|
+
placement: o,
|
|
1959
|
+
middlewareData: i,
|
|
1960
|
+
rects: s,
|
|
1961
|
+
initialPlacement: a,
|
|
1962
|
+
platform: l,
|
|
1963
|
+
elements: c
|
|
1964
|
+
} = t, {
|
|
1965
|
+
mainAxis: f = !0,
|
|
1966
|
+
crossAxis: d = !0,
|
|
1967
|
+
fallbackPlacements: h,
|
|
1968
|
+
fallbackStrategy: u = "bestFit",
|
|
1969
|
+
fallbackAxisSideDirection: v = "none",
|
|
1970
|
+
flipAlignment: p = !0,
|
|
1971
|
+
...O
|
|
1972
|
+
} = rt(e, t);
|
|
1973
|
+
if ((r = i.arrow) != null && r.alignmentOffset)
|
|
1974
|
+
return {};
|
|
1975
|
+
const A = Se(o), I = he(a), y = Se(a) === a, T = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), b = h || (y || !p ? [Ye(a)] : Dr(a)), k = v !== "none";
|
|
1976
|
+
!h && k && b.push(...jr(a, p, v, T));
|
|
1977
|
+
const H = [a, ...b], K = await l.detectOverflow(t, O), J = [];
|
|
1978
|
+
let Z = ((n = i.flip) == null ? void 0 : n.overflows) || [];
|
|
1979
|
+
if (f && J.push(K[A]), d) {
|
|
1980
|
+
const z = Mr(o, s, T);
|
|
1981
|
+
J.push(K[z[0]], K[z[1]]);
|
|
1982
|
+
}
|
|
1983
|
+
if (Z = [...Z, {
|
|
1984
|
+
placement: o,
|
|
1985
|
+
overflows: J
|
|
1986
|
+
}], !J.every((z) => z <= 0)) {
|
|
1987
|
+
var G, B;
|
|
1988
|
+
const z = (((G = i.flip) == null ? void 0 : G.index) || 0) + 1, L = H[z];
|
|
1989
|
+
if (L && (!(d === "alignment" ? I !== he(L) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1990
|
+
// overflows the main axis.
|
|
1991
|
+
Z.every((M) => he(M.placement) === I ? M.overflows[0] > 0 : !0)))
|
|
1992
|
+
return {
|
|
1993
|
+
data: {
|
|
1994
|
+
index: z,
|
|
1995
|
+
overflows: Z
|
|
1996
|
+
},
|
|
1997
|
+
reset: {
|
|
1998
|
+
placement: L
|
|
1999
|
+
}
|
|
2000
|
+
};
|
|
2001
|
+
let j = (B = Z.filter((V) => V.overflows[0] <= 0).sort((V, M) => V.overflows[1] - M.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
2002
|
+
if (!j)
|
|
2003
|
+
switch (u) {
|
|
2004
|
+
case "bestFit": {
|
|
2005
|
+
var te;
|
|
2006
|
+
const V = (te = Z.filter((M) => {
|
|
2007
|
+
if (k) {
|
|
2008
|
+
const R = he(M.placement);
|
|
2009
|
+
return R === I || // Create a bias to the `y` side axis due to horizontal
|
|
2010
|
+
// reading directions favoring greater width.
|
|
2011
|
+
R === "y";
|
|
2012
|
+
}
|
|
2013
|
+
return !0;
|
|
2014
|
+
}).map((M) => [M.placement, M.overflows.filter((R) => R > 0).reduce((R, m) => R + m, 0)]).sort((M, R) => M[1] - R[1])[0]) == null ? void 0 : te[0];
|
|
2015
|
+
V && (j = V);
|
|
2016
|
+
break;
|
|
2017
|
+
}
|
|
2018
|
+
case "initialPlacement":
|
|
2019
|
+
j = a;
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
if (o !== j)
|
|
2023
|
+
return {
|
|
2024
|
+
reset: {
|
|
2025
|
+
placement: j
|
|
2026
|
+
}
|
|
2027
|
+
};
|
|
2028
|
+
}
|
|
2029
|
+
return {};
|
|
2030
|
+
}
|
|
2031
|
+
};
|
|
2032
|
+
}, lo = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2033
|
+
async function uo(e, t) {
|
|
2034
|
+
const {
|
|
2035
|
+
placement: r,
|
|
2036
|
+
platform: n,
|
|
2037
|
+
elements: o
|
|
2038
|
+
} = e, i = await (n.isRTL == null ? void 0 : n.isRTL(o.floating)), s = Se(r), a = ot(r), l = he(r) === "y", c = lo.has(s) ? -1 : 1, f = i && l ? -1 : 1, d = rt(t, e);
|
|
2039
|
+
let {
|
|
2040
|
+
mainAxis: h,
|
|
2041
|
+
crossAxis: u,
|
|
2042
|
+
alignmentAxis: v
|
|
2043
|
+
} = typeof d == "number" ? {
|
|
2044
|
+
mainAxis: d,
|
|
2045
|
+
crossAxis: 0,
|
|
2046
|
+
alignmentAxis: null
|
|
2047
|
+
} : {
|
|
2048
|
+
mainAxis: d.mainAxis || 0,
|
|
2049
|
+
crossAxis: d.crossAxis || 0,
|
|
2050
|
+
alignmentAxis: d.alignmentAxis
|
|
2051
|
+
};
|
|
2052
|
+
return a && typeof v == "number" && (u = a === "end" ? v * -1 : v), l ? {
|
|
2053
|
+
x: u * f,
|
|
2054
|
+
y: h * c
|
|
2055
|
+
} : {
|
|
2056
|
+
x: h * c,
|
|
2057
|
+
y: u * f
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2060
|
+
const fo = function(e) {
|
|
2061
|
+
return e === void 0 && (e = 0), {
|
|
2062
|
+
name: "offset",
|
|
2063
|
+
options: e,
|
|
2064
|
+
async fn(t) {
|
|
2065
|
+
var r, n;
|
|
2066
|
+
const {
|
|
2067
|
+
x: o,
|
|
2068
|
+
y: i,
|
|
2069
|
+
placement: s,
|
|
2070
|
+
middlewareData: a
|
|
2071
|
+
} = t, l = await uo(t, e);
|
|
2072
|
+
return s === ((r = a.offset) == null ? void 0 : r.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
|
|
2073
|
+
x: o + l.x,
|
|
2074
|
+
y: i + l.y,
|
|
2075
|
+
data: {
|
|
2076
|
+
...l,
|
|
2077
|
+
placement: s
|
|
2078
|
+
}
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
};
|
|
2082
|
+
}, po = function(e) {
|
|
2083
|
+
return e === void 0 && (e = {}), {
|
|
2084
|
+
name: "shift",
|
|
2085
|
+
options: e,
|
|
2086
|
+
async fn(t) {
|
|
2087
|
+
const {
|
|
2088
|
+
x: r,
|
|
2089
|
+
y: n,
|
|
2090
|
+
placement: o,
|
|
2091
|
+
platform: i
|
|
2092
|
+
} = t, {
|
|
2093
|
+
mainAxis: s = !0,
|
|
2094
|
+
crossAxis: a = !1,
|
|
2095
|
+
limiter: l = {
|
|
2096
|
+
fn: (A) => {
|
|
2097
|
+
let {
|
|
2098
|
+
x: I,
|
|
2099
|
+
y
|
|
2100
|
+
} = A;
|
|
2101
|
+
return {
|
|
2102
|
+
x: I,
|
|
2103
|
+
y
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
},
|
|
2107
|
+
...c
|
|
2108
|
+
} = rt(e, t), f = {
|
|
2109
|
+
x: r,
|
|
2110
|
+
y: n
|
|
2111
|
+
}, d = await i.detectOverflow(t, c), h = he(Se(o)), u = Ln(h);
|
|
2112
|
+
let v = f[u], p = f[h];
|
|
2113
|
+
if (s) {
|
|
2114
|
+
const A = u === "y" ? "top" : "left", I = u === "y" ? "bottom" : "right", y = v + d[A], T = v - d[I];
|
|
2115
|
+
v = tn(y, v, T);
|
|
2116
|
+
}
|
|
2117
|
+
if (a) {
|
|
2118
|
+
const A = h === "y" ? "top" : "left", I = h === "y" ? "bottom" : "right", y = p + d[A], T = p - d[I];
|
|
2119
|
+
p = tn(y, p, T);
|
|
2120
|
+
}
|
|
2121
|
+
const O = l.fn({
|
|
2122
|
+
...t,
|
|
2123
|
+
[u]: v,
|
|
2124
|
+
[h]: p
|
|
2125
|
+
});
|
|
2126
|
+
return {
|
|
2127
|
+
...O,
|
|
2128
|
+
data: {
|
|
2129
|
+
x: O.x - r,
|
|
2130
|
+
y: O.y - n,
|
|
2131
|
+
enabled: {
|
|
2132
|
+
[u]: s,
|
|
2133
|
+
[h]: a
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
};
|
|
2139
|
+
};
|
|
2140
|
+
function Yn(e) {
|
|
2141
|
+
const t = se(e);
|
|
2142
|
+
let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
2143
|
+
const o = ne(e), i = o ? e.offsetWidth : r, s = o ? e.offsetHeight : n, a = Ve(r) !== i || Ve(n) !== s;
|
|
2144
|
+
return a && (r = i, n = s), {
|
|
2145
|
+
width: r,
|
|
2146
|
+
height: n,
|
|
2147
|
+
$: a
|
|
2148
|
+
};
|
|
2149
|
+
}
|
|
2150
|
+
function $t(e) {
|
|
2151
|
+
return Q(e) ? e : e.contextElement;
|
|
2152
|
+
}
|
|
2153
|
+
function Ae(e) {
|
|
2154
|
+
const t = $t(e);
|
|
2155
|
+
if (!ne(t))
|
|
2156
|
+
return le(1);
|
|
2157
|
+
const r = t.getBoundingClientRect(), {
|
|
2158
|
+
width: n,
|
|
2159
|
+
height: o,
|
|
2160
|
+
$: i
|
|
2161
|
+
} = Yn(t);
|
|
2162
|
+
let s = (i ? Ve(r.width) : r.width) / n, a = (i ? Ve(r.height) : r.height) / o;
|
|
2163
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
2164
|
+
x: s,
|
|
2165
|
+
y: a
|
|
2166
|
+
};
|
|
2167
|
+
}
|
|
2168
|
+
const mo = /* @__PURE__ */ le(0);
|
|
2169
|
+
function Un(e) {
|
|
2170
|
+
const t = ie(e);
|
|
2171
|
+
return !tt() || !t.visualViewport ? mo : {
|
|
2172
|
+
x: t.visualViewport.offsetLeft,
|
|
2173
|
+
y: t.visualViewport.offsetTop
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
function ho(e, t, r) {
|
|
2177
|
+
return t === void 0 && (t = !1), !r || t && r !== ie(e) ? !1 : t;
|
|
2178
|
+
}
|
|
2179
|
+
function Ce(e, t, r, n) {
|
|
2180
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2181
|
+
const o = e.getBoundingClientRect(), i = $t(e);
|
|
2182
|
+
let s = le(1);
|
|
2183
|
+
t && (n ? Q(n) && (s = Ae(n)) : s = Ae(e));
|
|
2184
|
+
const a = ho(i, r, n) ? Un(i) : le(0);
|
|
2185
|
+
let l = (o.left + a.x) / s.x, c = (o.top + a.y) / s.y, f = o.width / s.x, d = o.height / s.y;
|
|
2186
|
+
if (i) {
|
|
2187
|
+
const h = ie(i), u = n && Q(n) ? ie(n) : n;
|
|
2188
|
+
let v = h, p = Ct(v);
|
|
2189
|
+
for (; p && n && u !== v; ) {
|
|
2190
|
+
const O = Ae(p), A = p.getBoundingClientRect(), I = se(p), y = A.left + (p.clientLeft + parseFloat(I.paddingLeft)) * O.x, T = A.top + (p.clientTop + parseFloat(I.paddingTop)) * O.y;
|
|
2191
|
+
l *= O.x, c *= O.y, f *= O.x, d *= O.y, l += y, c += T, v = ie(p), p = Ct(v);
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
return Ue({
|
|
2195
|
+
width: f,
|
|
2196
|
+
height: d,
|
|
2197
|
+
x: l,
|
|
2198
|
+
y: c
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
function it(e, t) {
|
|
2202
|
+
const r = nt(e).scrollLeft;
|
|
2203
|
+
return t ? t.left + r : Ce(ue(e)).left + r;
|
|
2204
|
+
}
|
|
2205
|
+
function Hn(e, t) {
|
|
2206
|
+
const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - it(e, r), o = r.top + t.scrollTop;
|
|
2207
|
+
return {
|
|
2208
|
+
x: n,
|
|
2209
|
+
y: o
|
|
2210
|
+
};
|
|
2211
|
+
}
|
|
2212
|
+
function vo(e) {
|
|
2213
|
+
let {
|
|
2214
|
+
elements: t,
|
|
2215
|
+
rect: r,
|
|
2216
|
+
offsetParent: n,
|
|
2217
|
+
strategy: o
|
|
2218
|
+
} = e;
|
|
2219
|
+
const i = o === "fixed", s = ue(n), a = t ? et(t.floating) : !1;
|
|
2220
|
+
if (n === s || a && i)
|
|
2221
|
+
return r;
|
|
2222
|
+
let l = {
|
|
2223
|
+
scrollLeft: 0,
|
|
2224
|
+
scrollTop: 0
|
|
2225
|
+
}, c = le(1);
|
|
2226
|
+
const f = le(0), d = ne(n);
|
|
2227
|
+
if ((d || !d && !i) && ((ye(n) !== "body" || ke(s)) && (l = nt(n)), d)) {
|
|
2228
|
+
const u = Ce(n);
|
|
2229
|
+
c = Ae(n), f.x = u.x + n.clientLeft, f.y = u.y + n.clientTop;
|
|
2230
|
+
}
|
|
2231
|
+
const h = s && !d && !i ? Hn(s, l) : le(0);
|
|
2232
|
+
return {
|
|
2233
|
+
width: r.width * c.x,
|
|
2234
|
+
height: r.height * c.y,
|
|
2235
|
+
x: r.x * c.x - l.scrollLeft * c.x + f.x + h.x,
|
|
2236
|
+
y: r.y * c.y - l.scrollTop * c.y + f.y + h.y
|
|
2237
|
+
};
|
|
2238
|
+
}
|
|
2239
|
+
function bo(e) {
|
|
2240
|
+
return Array.from(e.getClientRects());
|
|
2241
|
+
}
|
|
2242
|
+
function yo(e) {
|
|
2243
|
+
const t = ue(e), r = nt(e), n = e.ownerDocument.body, o = Te(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), i = Te(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
2244
|
+
let s = -r.scrollLeft + it(e);
|
|
2245
|
+
const a = -r.scrollTop;
|
|
2246
|
+
return se(n).direction === "rtl" && (s += Te(t.clientWidth, n.clientWidth) - o), {
|
|
2247
|
+
width: o,
|
|
2248
|
+
height: i,
|
|
2249
|
+
x: s,
|
|
2250
|
+
y: a
|
|
2251
|
+
};
|
|
2252
|
+
}
|
|
2253
|
+
const an = 25;
|
|
2254
|
+
function go(e, t) {
|
|
2255
|
+
const r = ie(e), n = ue(e), o = r.visualViewport;
|
|
2256
|
+
let i = n.clientWidth, s = n.clientHeight, a = 0, l = 0;
|
|
2257
|
+
if (o) {
|
|
2258
|
+
i = o.width, s = o.height;
|
|
2259
|
+
const f = tt();
|
|
2260
|
+
(!f || f && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
2261
|
+
}
|
|
2262
|
+
const c = it(n);
|
|
2263
|
+
if (c <= 0) {
|
|
2264
|
+
const f = n.ownerDocument, d = f.body, h = getComputedStyle(d), u = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(n.clientWidth - d.clientWidth - u);
|
|
2265
|
+
v <= an && (i -= v);
|
|
2266
|
+
} else c <= an && (i += c);
|
|
2267
|
+
return {
|
|
2268
|
+
width: i,
|
|
2269
|
+
height: s,
|
|
2270
|
+
x: a,
|
|
2271
|
+
y: l
|
|
2272
|
+
};
|
|
2273
|
+
}
|
|
2274
|
+
function wo(e, t) {
|
|
2275
|
+
const r = Ce(e, !0, t === "fixed"), n = r.top + e.clientTop, o = r.left + e.clientLeft, i = ne(e) ? Ae(e) : le(1), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, c = n * i.y;
|
|
2276
|
+
return {
|
|
2277
|
+
width: s,
|
|
2278
|
+
height: a,
|
|
2279
|
+
x: l,
|
|
2280
|
+
y: c
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
function cn(e, t, r) {
|
|
2284
|
+
let n;
|
|
2285
|
+
if (t === "viewport")
|
|
2286
|
+
n = go(e, r);
|
|
2287
|
+
else if (t === "document")
|
|
2288
|
+
n = yo(ue(e));
|
|
2289
|
+
else if (Q(t))
|
|
2290
|
+
n = wo(t, r);
|
|
2291
|
+
else {
|
|
2292
|
+
const o = Un(e);
|
|
2293
|
+
n = {
|
|
2294
|
+
x: t.x - o.x,
|
|
2295
|
+
y: t.y - o.y,
|
|
2296
|
+
width: t.width,
|
|
2297
|
+
height: t.height
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
return Ue(n);
|
|
2301
|
+
}
|
|
2302
|
+
function Kn(e, t) {
|
|
2303
|
+
const r = pe(e);
|
|
2304
|
+
return r === t || !Q(r) || be(r) ? !1 : se(r).position === "fixed" || Kn(r, t);
|
|
2305
|
+
}
|
|
2306
|
+
function xo(e, t) {
|
|
2307
|
+
const r = t.get(e);
|
|
2308
|
+
if (r)
|
|
2309
|
+
return r;
|
|
2310
|
+
let n = ve(e, [], !1).filter((a) => Q(a) && ye(a) !== "body"), o = null;
|
|
2311
|
+
const i = se(e).position === "fixed";
|
|
2312
|
+
let s = i ? pe(e) : e;
|
|
2313
|
+
for (; Q(s) && !be(s); ) {
|
|
2314
|
+
const a = se(s), l = Lt(s);
|
|
2315
|
+
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || ke(s) && !l && Kn(e, s)) ? n = n.filter((f) => f !== s) : o = a, s = pe(s);
|
|
2316
|
+
}
|
|
2317
|
+
return t.set(e, n), n;
|
|
2318
|
+
}
|
|
2319
|
+
function Eo(e) {
|
|
2320
|
+
let {
|
|
2321
|
+
element: t,
|
|
2322
|
+
boundary: r,
|
|
2323
|
+
rootBoundary: n,
|
|
2324
|
+
strategy: o
|
|
2325
|
+
} = e;
|
|
2326
|
+
const s = [...r === "clippingAncestors" ? et(t) ? [] : xo(t, this._c) : [].concat(r), n], a = cn(t, s[0], o);
|
|
2327
|
+
let l = a.top, c = a.right, f = a.bottom, d = a.left;
|
|
2328
|
+
for (let h = 1; h < s.length; h++) {
|
|
2329
|
+
const u = cn(t, s[h], o);
|
|
2330
|
+
l = Te(u.top, l), c = qe(u.right, c), f = qe(u.bottom, f), d = Te(u.left, d);
|
|
2331
|
+
}
|
|
2332
|
+
return {
|
|
2333
|
+
width: c - d,
|
|
2334
|
+
height: f - l,
|
|
2335
|
+
x: d,
|
|
2336
|
+
y: l
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
function Ro(e) {
|
|
2340
|
+
const {
|
|
2341
|
+
width: t,
|
|
2342
|
+
height: r
|
|
2343
|
+
} = Yn(e);
|
|
2344
|
+
return {
|
|
2345
|
+
width: t,
|
|
2346
|
+
height: r
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
function To(e, t, r) {
|
|
2350
|
+
const n = ne(t), o = ue(t), i = r === "fixed", s = Ce(e, !0, i, t);
|
|
2351
|
+
let a = {
|
|
2352
|
+
scrollLeft: 0,
|
|
2353
|
+
scrollTop: 0
|
|
2354
|
+
};
|
|
2355
|
+
const l = le(0);
|
|
2356
|
+
function c() {
|
|
2357
|
+
l.x = it(o);
|
|
2358
|
+
}
|
|
2359
|
+
if (n || !n && !i)
|
|
2360
|
+
if ((ye(t) !== "body" || ke(o)) && (a = nt(t)), n) {
|
|
2361
|
+
const u = Ce(t, !0, i, t);
|
|
2362
|
+
l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
|
|
2363
|
+
} else o && c();
|
|
2364
|
+
i && !n && o && c();
|
|
2365
|
+
const f = o && !n && !i ? Hn(o, a) : le(0), d = s.left + a.scrollLeft - l.x - f.x, h = s.top + a.scrollTop - l.y - f.y;
|
|
2366
|
+
return {
|
|
2367
|
+
x: d,
|
|
2368
|
+
y: h,
|
|
2369
|
+
width: s.width,
|
|
2370
|
+
height: s.height
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
function bt(e) {
|
|
2374
|
+
return se(e).position === "static";
|
|
2375
|
+
}
|
|
2376
|
+
function ln(e, t) {
|
|
2377
|
+
if (!ne(e) || se(e).position === "fixed")
|
|
2378
|
+
return null;
|
|
2379
|
+
if (t)
|
|
2380
|
+
return t(e);
|
|
2381
|
+
let r = e.offsetParent;
|
|
2382
|
+
return ue(e) === r && (r = r.ownerDocument.body), r;
|
|
2383
|
+
}
|
|
2384
|
+
function zn(e, t) {
|
|
2385
|
+
const r = ie(e);
|
|
2386
|
+
if (et(e))
|
|
2387
|
+
return r;
|
|
2388
|
+
if (!ne(e)) {
|
|
2389
|
+
let o = pe(e);
|
|
2390
|
+
for (; o && !be(o); ) {
|
|
2391
|
+
if (Q(o) && !bt(o))
|
|
2392
|
+
return o;
|
|
2393
|
+
o = pe(o);
|
|
2394
|
+
}
|
|
2395
|
+
return r;
|
|
2396
|
+
}
|
|
2397
|
+
let n = ln(e, t);
|
|
2398
|
+
for (; n && wr(n) && bt(n); )
|
|
2399
|
+
n = ln(n, t);
|
|
2400
|
+
return n && be(n) && bt(n) && !Lt(n) ? r : n || Rr(e) || r;
|
|
2401
|
+
}
|
|
2402
|
+
const So = async function(e) {
|
|
2403
|
+
const t = this.getOffsetParent || zn, r = this.getDimensions, n = await r(e.floating);
|
|
2404
|
+
return {
|
|
2405
|
+
reference: To(e.reference, await t(e.floating), e.strategy),
|
|
2406
|
+
floating: {
|
|
2407
|
+
x: 0,
|
|
2408
|
+
y: 0,
|
|
2409
|
+
width: n.width,
|
|
2410
|
+
height: n.height
|
|
2411
|
+
}
|
|
2412
|
+
};
|
|
2413
|
+
};
|
|
2414
|
+
function Co(e) {
|
|
2415
|
+
return se(e).direction === "rtl";
|
|
2416
|
+
}
|
|
2417
|
+
const _o = {
|
|
2418
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: vo,
|
|
2419
|
+
getDocumentElement: ue,
|
|
2420
|
+
getClippingRect: Eo,
|
|
2421
|
+
getOffsetParent: zn,
|
|
2422
|
+
getElementRects: So,
|
|
2423
|
+
getClientRects: bo,
|
|
2424
|
+
getDimensions: Ro,
|
|
2425
|
+
getScale: Ae,
|
|
2426
|
+
isElement: Q,
|
|
2427
|
+
isRTL: Co
|
|
2428
|
+
};
|
|
2429
|
+
function Xn(e, t) {
|
|
2430
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2431
|
+
}
|
|
2432
|
+
function Oo(e, t) {
|
|
2433
|
+
let r = null, n;
|
|
2434
|
+
const o = ue(e);
|
|
2435
|
+
function i() {
|
|
2436
|
+
var a;
|
|
2437
|
+
clearTimeout(n), (a = r) == null || a.disconnect(), r = null;
|
|
2438
|
+
}
|
|
2439
|
+
function s(a, l) {
|
|
2440
|
+
a === void 0 && (a = !1), l === void 0 && (l = 1), i();
|
|
2441
|
+
const c = e.getBoundingClientRect(), {
|
|
2442
|
+
left: f,
|
|
2443
|
+
top: d,
|
|
2444
|
+
width: h,
|
|
2445
|
+
height: u
|
|
2446
|
+
} = c;
|
|
2447
|
+
if (a || t(), !h || !u)
|
|
2448
|
+
return;
|
|
2449
|
+
const v = Fe(d), p = Fe(o.clientWidth - (f + h)), O = Fe(o.clientHeight - (d + u)), A = Fe(f), y = {
|
|
2450
|
+
rootMargin: -v + "px " + -p + "px " + -O + "px " + -A + "px",
|
|
2451
|
+
threshold: Te(0, qe(1, l)) || 1
|
|
2452
|
+
};
|
|
2453
|
+
let T = !0;
|
|
2454
|
+
function b(k) {
|
|
2455
|
+
const H = k[0].intersectionRatio;
|
|
2456
|
+
if (H !== l) {
|
|
2457
|
+
if (!T)
|
|
2458
|
+
return s();
|
|
2459
|
+
H ? s(!1, H) : n = setTimeout(() => {
|
|
2460
|
+
s(!1, 1e-7);
|
|
2461
|
+
}, 1e3);
|
|
2462
|
+
}
|
|
2463
|
+
H === 1 && !Xn(c, e.getBoundingClientRect()) && s(), T = !1;
|
|
2464
|
+
}
|
|
2465
|
+
try {
|
|
2466
|
+
r = new IntersectionObserver(b, {
|
|
2467
|
+
...y,
|
|
2468
|
+
// Handle <iframe>s
|
|
2469
|
+
root: o.ownerDocument
|
|
2470
|
+
});
|
|
2471
|
+
} catch {
|
|
2472
|
+
r = new IntersectionObserver(b, y);
|
|
2473
|
+
}
|
|
2474
|
+
r.observe(e);
|
|
2475
|
+
}
|
|
2476
|
+
return s(!0), i;
|
|
2477
|
+
}
|
|
2478
|
+
function Ao(e, t, r, n) {
|
|
2479
|
+
n === void 0 && (n = {});
|
|
2480
|
+
const {
|
|
2481
|
+
ancestorScroll: o = !0,
|
|
2482
|
+
ancestorResize: i = !0,
|
|
2483
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
2484
|
+
layoutShift: a = typeof IntersectionObserver == "function",
|
|
2485
|
+
animationFrame: l = !1
|
|
2486
|
+
} = n, c = $t(e), f = o || i ? [...c ? ve(c) : [], ...t ? ve(t) : []] : [];
|
|
2487
|
+
f.forEach((A) => {
|
|
2488
|
+
o && A.addEventListener("scroll", r, {
|
|
2489
|
+
passive: !0
|
|
2490
|
+
}), i && A.addEventListener("resize", r);
|
|
2491
|
+
});
|
|
2492
|
+
const d = c && a ? Oo(c, r) : null;
|
|
2493
|
+
let h = -1, u = null;
|
|
2494
|
+
s && (u = new ResizeObserver((A) => {
|
|
2495
|
+
let [I] = A;
|
|
2496
|
+
I && I.target === c && u && t && (u.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
2497
|
+
var y;
|
|
2498
|
+
(y = u) == null || y.observe(t);
|
|
2499
|
+
})), r();
|
|
2500
|
+
}), c && !l && u.observe(c), t && u.observe(t));
|
|
2501
|
+
let v, p = l ? Ce(e) : null;
|
|
2502
|
+
l && O();
|
|
2503
|
+
function O() {
|
|
2504
|
+
const A = Ce(e);
|
|
2505
|
+
p && !Xn(p, A) && r(), p = A, v = requestAnimationFrame(O);
|
|
2506
|
+
}
|
|
2507
|
+
return r(), () => {
|
|
2508
|
+
var A;
|
|
2509
|
+
f.forEach((I) => {
|
|
2510
|
+
o && I.removeEventListener("scroll", r), i && I.removeEventListener("resize", r);
|
|
2511
|
+
}), d == null || d(), (A = u) == null || A.disconnect(), u = null, l && cancelAnimationFrame(v);
|
|
2512
|
+
};
|
|
2513
|
+
}
|
|
2514
|
+
const Po = fo, No = po, Io = co, ko = (e, t, r) => {
|
|
2515
|
+
const n = /* @__PURE__ */ new Map(), o = {
|
|
2516
|
+
platform: _o,
|
|
2517
|
+
...r
|
|
2518
|
+
}, i = {
|
|
2519
|
+
...o.platform,
|
|
2520
|
+
_c: n
|
|
2521
|
+
};
|
|
2522
|
+
return ao(e, t, {
|
|
2523
|
+
...o,
|
|
2524
|
+
platform: i
|
|
2525
|
+
});
|
|
2526
|
+
};
|
|
2527
|
+
var Mo = typeof document < "u", Do = function() {
|
|
2528
|
+
}, Be = Mo ? On : Do;
|
|
2529
|
+
function Xe(e, t) {
|
|
2530
|
+
if (e === t)
|
|
2531
|
+
return !0;
|
|
2532
|
+
if (typeof e != typeof t)
|
|
2533
|
+
return !1;
|
|
2534
|
+
if (typeof e == "function" && e.toString() === t.toString())
|
|
2535
|
+
return !0;
|
|
2536
|
+
let r, n, o;
|
|
2537
|
+
if (e && t && typeof e == "object") {
|
|
2538
|
+
if (Array.isArray(e)) {
|
|
2539
|
+
if (r = e.length, r !== t.length) return !1;
|
|
2540
|
+
for (n = r; n-- !== 0; )
|
|
2541
|
+
if (!Xe(e[n], t[n]))
|
|
2542
|
+
return !1;
|
|
2543
|
+
return !0;
|
|
2544
|
+
}
|
|
2545
|
+
if (o = Object.keys(e), r = o.length, r !== Object.keys(t).length)
|
|
2546
|
+
return !1;
|
|
2547
|
+
for (n = r; n-- !== 0; )
|
|
2548
|
+
if (!{}.hasOwnProperty.call(t, o[n]))
|
|
2549
|
+
return !1;
|
|
2550
|
+
for (n = r; n-- !== 0; ) {
|
|
2551
|
+
const i = o[n];
|
|
2552
|
+
if (!(i === "_owner" && e.$$typeof) && !Xe(e[i], t[i]))
|
|
2553
|
+
return !1;
|
|
2554
|
+
}
|
|
2555
|
+
return !0;
|
|
2556
|
+
}
|
|
2557
|
+
return e !== e && t !== t;
|
|
2558
|
+
}
|
|
2559
|
+
function Gn(e) {
|
|
2560
|
+
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2561
|
+
}
|
|
2562
|
+
function un(e, t) {
|
|
2563
|
+
const r = Gn(e);
|
|
2564
|
+
return Math.round(t * r) / r;
|
|
2565
|
+
}
|
|
2566
|
+
function yt(e) {
|
|
2567
|
+
const t = x.useRef(e);
|
|
2568
|
+
return Be(() => {
|
|
2569
|
+
t.current = e;
|
|
2570
|
+
}), t;
|
|
2571
|
+
}
|
|
2572
|
+
function Lo(e) {
|
|
2573
|
+
e === void 0 && (e = {});
|
|
2574
|
+
const {
|
|
2575
|
+
placement: t = "bottom",
|
|
2576
|
+
strategy: r = "absolute",
|
|
2577
|
+
middleware: n = [],
|
|
2578
|
+
platform: o,
|
|
2579
|
+
elements: {
|
|
2580
|
+
reference: i,
|
|
2581
|
+
floating: s
|
|
2582
|
+
} = {},
|
|
2583
|
+
transform: a = !0,
|
|
2584
|
+
whileElementsMounted: l,
|
|
2585
|
+
open: c
|
|
2586
|
+
} = e, [f, d] = x.useState({
|
|
2587
|
+
x: 0,
|
|
2588
|
+
y: 0,
|
|
2589
|
+
strategy: r,
|
|
2590
|
+
placement: t,
|
|
2591
|
+
middlewareData: {},
|
|
2592
|
+
isPositioned: !1
|
|
2593
|
+
}), [h, u] = x.useState(n);
|
|
2594
|
+
Xe(h, n) || u(n);
|
|
2595
|
+
const [v, p] = x.useState(null), [O, A] = x.useState(null), I = x.useCallback((M) => {
|
|
2596
|
+
M !== k.current && (k.current = M, p(M));
|
|
2597
|
+
}, []), y = x.useCallback((M) => {
|
|
2598
|
+
M !== H.current && (H.current = M, A(M));
|
|
2599
|
+
}, []), T = i || v, b = s || O, k = x.useRef(null), H = x.useRef(null), K = x.useRef(f), J = l != null, Z = yt(l), G = yt(o), B = yt(c), te = x.useCallback(() => {
|
|
2600
|
+
if (!k.current || !H.current)
|
|
2601
|
+
return;
|
|
2602
|
+
const M = {
|
|
2603
|
+
placement: t,
|
|
2604
|
+
strategy: r,
|
|
2605
|
+
middleware: h
|
|
2606
|
+
};
|
|
2607
|
+
G.current && (M.platform = G.current), ko(k.current, H.current, M).then((R) => {
|
|
2608
|
+
const m = {
|
|
2609
|
+
...R,
|
|
2610
|
+
// The floating element's position may be recomputed while it's closed
|
|
2611
|
+
// but still mounted (such as when transitioning out). To ensure
|
|
2612
|
+
// `isPositioned` will be `false` initially on the next open, avoid
|
|
2613
|
+
// setting it to `true` when `open === false` (must be specified).
|
|
2614
|
+
isPositioned: B.current !== !1
|
|
2615
|
+
};
|
|
2616
|
+
z.current && !Xe(K.current, m) && (K.current = m, ir.flushSync(() => {
|
|
2617
|
+
d(m);
|
|
2618
|
+
}));
|
|
2619
|
+
});
|
|
2620
|
+
}, [h, t, r, G, B]);
|
|
2621
|
+
Be(() => {
|
|
2622
|
+
c === !1 && K.current.isPositioned && (K.current.isPositioned = !1, d((M) => ({
|
|
2623
|
+
...M,
|
|
2624
|
+
isPositioned: !1
|
|
2625
|
+
})));
|
|
2626
|
+
}, [c]);
|
|
2627
|
+
const z = x.useRef(!1);
|
|
2628
|
+
Be(() => (z.current = !0, () => {
|
|
2629
|
+
z.current = !1;
|
|
2630
|
+
}), []), Be(() => {
|
|
2631
|
+
if (T && (k.current = T), b && (H.current = b), T && b) {
|
|
2632
|
+
if (Z.current)
|
|
2633
|
+
return Z.current(T, b, te);
|
|
2634
|
+
te();
|
|
2635
|
+
}
|
|
2636
|
+
}, [T, b, te, Z, J]);
|
|
2637
|
+
const L = x.useMemo(() => ({
|
|
2638
|
+
reference: k,
|
|
2639
|
+
floating: H,
|
|
2640
|
+
setReference: I,
|
|
2641
|
+
setFloating: y
|
|
2642
|
+
}), [I, y]), j = x.useMemo(() => ({
|
|
2643
|
+
reference: T,
|
|
2644
|
+
floating: b
|
|
2645
|
+
}), [T, b]), V = x.useMemo(() => {
|
|
2646
|
+
const M = {
|
|
2647
|
+
position: r,
|
|
2648
|
+
left: 0,
|
|
2649
|
+
top: 0
|
|
2650
|
+
};
|
|
2651
|
+
if (!j.floating)
|
|
2652
|
+
return M;
|
|
2653
|
+
const R = un(j.floating, f.x), m = un(j.floating, f.y);
|
|
2654
|
+
return a ? {
|
|
2655
|
+
...M,
|
|
2656
|
+
transform: "translate(" + R + "px, " + m + "px)",
|
|
2657
|
+
...Gn(j.floating) >= 1.5 && {
|
|
2658
|
+
willChange: "transform"
|
|
2659
|
+
}
|
|
2660
|
+
} : {
|
|
2661
|
+
position: r,
|
|
2662
|
+
left: R,
|
|
2663
|
+
top: m
|
|
2664
|
+
};
|
|
2665
|
+
}, [r, a, j.floating, f.x, f.y]);
|
|
2666
|
+
return x.useMemo(() => ({
|
|
2667
|
+
...f,
|
|
2668
|
+
update: te,
|
|
2669
|
+
refs: L,
|
|
2670
|
+
elements: j,
|
|
2671
|
+
floatingStyles: V
|
|
2672
|
+
}), [f, te, L, j, V]);
|
|
2673
|
+
}
|
|
2674
|
+
const Fo = (e, t) => {
|
|
2675
|
+
const r = Po(e);
|
|
2676
|
+
return {
|
|
2677
|
+
name: r.name,
|
|
2678
|
+
fn: r.fn,
|
|
2679
|
+
options: [e, t]
|
|
2680
|
+
};
|
|
2681
|
+
}, $o = (e, t) => {
|
|
2682
|
+
const r = No(e);
|
|
2683
|
+
return {
|
|
2684
|
+
name: r.name,
|
|
2685
|
+
fn: r.fn,
|
|
2686
|
+
options: [e, t]
|
|
2687
|
+
};
|
|
2688
|
+
}, jo = (e, t) => {
|
|
2689
|
+
const r = Io(e);
|
|
2690
|
+
return {
|
|
2691
|
+
name: r.name,
|
|
2692
|
+
fn: r.fn,
|
|
2693
|
+
options: [e, t]
|
|
2694
|
+
};
|
|
2695
|
+
}, Zn = {
|
|
2696
|
+
...x
|
|
2697
|
+
}, Wo = Zn.useInsertionEffect, Bo = Wo || ((e) => e());
|
|
2698
|
+
function me(e) {
|
|
2699
|
+
const t = x.useRef(() => {
|
|
2700
|
+
if (process.env.NODE_ENV !== "production")
|
|
2701
|
+
throw new Error("Cannot call an event handler while rendering.");
|
|
2702
|
+
});
|
|
2703
|
+
return Bo(() => {
|
|
2704
|
+
t.current = e;
|
|
2705
|
+
}), x.useCallback(function() {
|
|
2706
|
+
for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
|
|
2707
|
+
n[o] = arguments[o];
|
|
2708
|
+
return t.current == null ? void 0 : t.current(...n);
|
|
2709
|
+
}, []);
|
|
2710
|
+
}
|
|
2711
|
+
var de = typeof document < "u" ? On : We;
|
|
2712
|
+
function Ge() {
|
|
2713
|
+
return Ge = Object.assign ? Object.assign.bind() : function(e) {
|
|
2714
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
2715
|
+
var r = arguments[t];
|
|
2716
|
+
for (var n in r)
|
|
2717
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
2718
|
+
}
|
|
2719
|
+
return e;
|
|
2720
|
+
}, Ge.apply(this, arguments);
|
|
2721
|
+
}
|
|
2722
|
+
let fn = !1, qo = 0;
|
|
2723
|
+
const dn = () => (
|
|
2724
|
+
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
2725
|
+
// on <React 18
|
|
2726
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + qo++
|
|
2727
|
+
);
|
|
2728
|
+
function Vo() {
|
|
2729
|
+
const [e, t] = x.useState(() => fn ? dn() : void 0);
|
|
2730
|
+
return de(() => {
|
|
2731
|
+
e == null && t(dn());
|
|
2732
|
+
}, []), x.useEffect(() => {
|
|
2733
|
+
fn = !0;
|
|
2734
|
+
}, []), e;
|
|
2735
|
+
}
|
|
2736
|
+
const Yo = Zn.useId, Jn = Yo || Vo;
|
|
2737
|
+
let Nt;
|
|
2738
|
+
process.env.NODE_ENV !== "production" && (Nt = /* @__PURE__ */ new Set());
|
|
2739
|
+
function Uo() {
|
|
2740
|
+
for (var e, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
|
|
2741
|
+
r[n] = arguments[n];
|
|
2742
|
+
const o = "Floating UI: " + r.join(" ");
|
|
2743
|
+
if (!((e = Nt) != null && e.has(o))) {
|
|
2744
|
+
var i;
|
|
2745
|
+
(i = Nt) == null || i.add(o), console.error(o);
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
function Ho() {
|
|
2749
|
+
const e = /* @__PURE__ */ new Map();
|
|
2750
|
+
return {
|
|
2751
|
+
emit(t, r) {
|
|
2752
|
+
var n;
|
|
2753
|
+
(n = e.get(t)) == null || n.forEach((o) => o(r));
|
|
2754
|
+
},
|
|
2755
|
+
on(t, r) {
|
|
2756
|
+
e.set(t, [...e.get(t) || [], r]);
|
|
2757
|
+
},
|
|
2758
|
+
off(t, r) {
|
|
2759
|
+
var n;
|
|
2760
|
+
e.set(t, ((n = e.get(t)) == null ? void 0 : n.filter((o) => o !== r)) || []);
|
|
2761
|
+
}
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
const Ko = /* @__PURE__ */ x.createContext(null), zo = /* @__PURE__ */ x.createContext(null), Qn = () => {
|
|
2765
|
+
var e;
|
|
2766
|
+
return ((e = x.useContext(Ko)) == null ? void 0 : e.id) || null;
|
|
2767
|
+
}, jt = () => x.useContext(zo);
|
|
2768
|
+
function Ze(e) {
|
|
2769
|
+
return "data-floating-ui-" + e;
|
|
2770
|
+
}
|
|
2771
|
+
function gt(e) {
|
|
2772
|
+
const t = Rt(e);
|
|
2773
|
+
return de(() => {
|
|
2774
|
+
t.current = e;
|
|
2775
|
+
}), t;
|
|
2776
|
+
}
|
|
2777
|
+
let pn = 0;
|
|
2778
|
+
function _e(e, t) {
|
|
2779
|
+
t === void 0 && (t = {});
|
|
2780
|
+
const {
|
|
2781
|
+
preventScroll: r = !1,
|
|
2782
|
+
cancelPrevious: n = !0,
|
|
2783
|
+
sync: o = !1
|
|
2784
|
+
} = t;
|
|
2785
|
+
n && cancelAnimationFrame(pn);
|
|
2786
|
+
const i = () => e == null ? void 0 : e.focus({
|
|
2787
|
+
preventScroll: r
|
|
2788
|
+
});
|
|
2789
|
+
o ? i() : pn = requestAnimationFrame(i);
|
|
2790
|
+
}
|
|
2791
|
+
function Xo(e, t) {
|
|
2792
|
+
var r;
|
|
2793
|
+
let n = [], o = (r = e.find((i) => i.id === t)) == null ? void 0 : r.parentId;
|
|
2794
|
+
for (; o; ) {
|
|
2795
|
+
const i = e.find((s) => s.id === o);
|
|
2796
|
+
o = i == null ? void 0 : i.parentId, i && (n = n.concat(i));
|
|
2797
|
+
}
|
|
2798
|
+
return n;
|
|
2799
|
+
}
|
|
2800
|
+
function Ne(e, t) {
|
|
2801
|
+
let r = e.filter((o) => {
|
|
2802
|
+
var i;
|
|
2803
|
+
return o.parentId === t && ((i = o.context) == null ? void 0 : i.open);
|
|
2804
|
+
}), n = r;
|
|
2805
|
+
for (; n.length; )
|
|
2806
|
+
n = e.filter((o) => {
|
|
2807
|
+
var i;
|
|
2808
|
+
return (i = n) == null ? void 0 : i.some((s) => {
|
|
2809
|
+
var a;
|
|
2810
|
+
return o.parentId === s.id && ((a = o.context) == null ? void 0 : a.open);
|
|
2811
|
+
});
|
|
2812
|
+
}), r = r.concat(n);
|
|
2813
|
+
return r;
|
|
2814
|
+
}
|
|
2815
|
+
let Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {}, wt = 0;
|
|
2816
|
+
const Go = () => typeof HTMLElement < "u" && "inert" in HTMLElement.prototype, er = (e) => e && (e.host || er(e.parentNode)), Zo = (e, t) => t.map((r) => {
|
|
2817
|
+
if (e.contains(r))
|
|
2818
|
+
return r;
|
|
2819
|
+
const n = er(r);
|
|
2820
|
+
return e.contains(n) ? n : null;
|
|
2821
|
+
}).filter((r) => r != null);
|
|
2822
|
+
function Jo(e, t, r, n) {
|
|
2823
|
+
const o = "data-floating-ui-inert", i = n ? "inert" : r ? "aria-hidden" : null, s = Zo(t, e), a = /* @__PURE__ */ new Set(), l = new Set(s), c = [];
|
|
2824
|
+
je[o] || (je[o] = /* @__PURE__ */ new WeakMap());
|
|
2825
|
+
const f = je[o];
|
|
2826
|
+
s.forEach(d), h(t), a.clear();
|
|
2827
|
+
function d(u) {
|
|
2828
|
+
!u || a.has(u) || (a.add(u), u.parentNode && d(u.parentNode));
|
|
2829
|
+
}
|
|
2830
|
+
function h(u) {
|
|
2831
|
+
!u || l.has(u) || [].forEach.call(u.children, (v) => {
|
|
2832
|
+
if (ye(v) !== "script")
|
|
2833
|
+
if (a.has(v))
|
|
2834
|
+
h(v);
|
|
2835
|
+
else {
|
|
2836
|
+
const p = i ? v.getAttribute(i) : null, O = p !== null && p !== "false", A = (Oe.get(v) || 0) + 1, I = (f.get(v) || 0) + 1;
|
|
2837
|
+
Oe.set(v, A), f.set(v, I), c.push(v), A === 1 && O && $e.add(v), I === 1 && v.setAttribute(o, ""), !O && i && v.setAttribute(i, "true");
|
|
2838
|
+
}
|
|
2839
|
+
});
|
|
2840
|
+
}
|
|
2841
|
+
return wt++, () => {
|
|
2842
|
+
c.forEach((u) => {
|
|
2843
|
+
const v = (Oe.get(u) || 0) - 1, p = (f.get(u) || 0) - 1;
|
|
2844
|
+
Oe.set(u, v), f.set(u, p), v || (!$e.has(u) && i && u.removeAttribute(i), $e.delete(u)), p || u.removeAttribute(o);
|
|
2845
|
+
}), wt--, wt || (Oe = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakSet(), je = {});
|
|
2846
|
+
};
|
|
2847
|
+
}
|
|
2848
|
+
function mn(e, t, r) {
|
|
2849
|
+
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2850
|
+
const n = ce(e[0]).body;
|
|
2851
|
+
return Jo(e.concat(Array.from(n.querySelectorAll("[aria-live]"))), n, t, r);
|
|
2852
|
+
}
|
|
2853
|
+
const Je = () => ({
|
|
2854
|
+
getShadowRoot: !0,
|
|
2855
|
+
displayCheck: (
|
|
2856
|
+
// JSDOM does not support the `tabbable` library. To solve this we can
|
|
2857
|
+
// check if `ResizeObserver` is a real function (not polyfilled), which
|
|
2858
|
+
// determines if the current environment is JSDOM-like.
|
|
2859
|
+
typeof ResizeObserver == "function" && ResizeObserver.toString().includes("[native code]") ? "full" : "none"
|
|
2860
|
+
)
|
|
2861
|
+
});
|
|
2862
|
+
function tr(e, t) {
|
|
2863
|
+
const r = Ft(e, Je());
|
|
2864
|
+
t === "prev" && r.reverse();
|
|
2865
|
+
const n = r.indexOf(we(ce(e)));
|
|
2866
|
+
return r.slice(n + 1)[0];
|
|
2867
|
+
}
|
|
2868
|
+
function Qo() {
|
|
2869
|
+
return tr(document.body, "next");
|
|
2870
|
+
}
|
|
2871
|
+
function ei() {
|
|
2872
|
+
return tr(document.body, "prev");
|
|
2873
|
+
}
|
|
2874
|
+
function hn(e, t) {
|
|
2875
|
+
const r = t || e.currentTarget, n = e.relatedTarget;
|
|
2876
|
+
return !n || !oe(r, n);
|
|
2877
|
+
}
|
|
2878
|
+
const Wt = {
|
|
2879
|
+
border: 0,
|
|
2880
|
+
clip: "rect(0 0 0 0)",
|
|
2881
|
+
height: "1px",
|
|
2882
|
+
margin: "-1px",
|
|
2883
|
+
overflow: "hidden",
|
|
2884
|
+
padding: 0,
|
|
2885
|
+
position: "fixed",
|
|
2886
|
+
whiteSpace: "nowrap",
|
|
2887
|
+
width: "1px",
|
|
2888
|
+
top: 0,
|
|
2889
|
+
left: 0
|
|
2890
|
+
};
|
|
2891
|
+
let ti;
|
|
2892
|
+
function vn(e) {
|
|
2893
|
+
e.key === "Tab" && (e.target, clearTimeout(ti));
|
|
2894
|
+
}
|
|
2895
|
+
const bn = /* @__PURE__ */ x.forwardRef(function(t, r) {
|
|
2896
|
+
const [n, o] = x.useState();
|
|
2897
|
+
de(() => (_r() && o("button"), document.addEventListener("keydown", vn), () => {
|
|
2898
|
+
document.removeEventListener("keydown", vn);
|
|
2899
|
+
}), []);
|
|
2900
|
+
const i = {
|
|
2901
|
+
ref: r,
|
|
2902
|
+
tabIndex: 0,
|
|
2903
|
+
// Role is only for VoiceOver
|
|
2904
|
+
role: n,
|
|
2905
|
+
"aria-hidden": n ? void 0 : !0,
|
|
2906
|
+
[Ze("focus-guard")]: "",
|
|
2907
|
+
style: Wt
|
|
2908
|
+
};
|
|
2909
|
+
return /* @__PURE__ */ x.createElement("span", Ge({}, t, i));
|
|
2910
|
+
}), ni = /* @__PURE__ */ x.createContext(null), ri = () => x.useContext(ni), It = "data-floating-ui-focusable";
|
|
2911
|
+
function oi(e) {
|
|
2912
|
+
return e ? e.hasAttribute(It) ? e : e.querySelector("[" + It + "]") || e : null;
|
|
2913
|
+
}
|
|
2914
|
+
const yn = 20;
|
|
2915
|
+
let xe = [];
|
|
2916
|
+
function xt(e) {
|
|
2917
|
+
xe = xe.filter((r) => r.isConnected);
|
|
2918
|
+
let t = e;
|
|
2919
|
+
if (!(!t || ye(t) === "body")) {
|
|
2920
|
+
if (!oo(t, Je())) {
|
|
2921
|
+
const r = Ft(t, Je())[0];
|
|
2922
|
+
r && (t = r);
|
|
2923
|
+
}
|
|
2924
|
+
xe.push(t), xe.length > yn && (xe = xe.slice(-yn));
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
function gn() {
|
|
2928
|
+
return xe.slice().reverse().find((e) => e.isConnected);
|
|
2929
|
+
}
|
|
2930
|
+
const ii = /* @__PURE__ */ x.forwardRef(function(t, r) {
|
|
2931
|
+
return /* @__PURE__ */ x.createElement("button", Ge({}, t, {
|
|
2932
|
+
type: "button",
|
|
2933
|
+
ref: r,
|
|
2934
|
+
tabIndex: -1,
|
|
2935
|
+
style: Wt
|
|
2936
|
+
}));
|
|
2937
|
+
});
|
|
2938
|
+
function si(e) {
|
|
2939
|
+
const {
|
|
2940
|
+
context: t,
|
|
2941
|
+
children: r,
|
|
2942
|
+
disabled: n = !1,
|
|
2943
|
+
order: o = ["content"],
|
|
2944
|
+
guards: i = !0,
|
|
2945
|
+
initialFocus: s = 0,
|
|
2946
|
+
returnFocus: a = !0,
|
|
2947
|
+
restoreFocus: l = !1,
|
|
2948
|
+
modal: c = !0,
|
|
2949
|
+
visuallyHiddenDismiss: f = !1,
|
|
2950
|
+
closeOnFocusOut: d = !0
|
|
2951
|
+
} = e, {
|
|
2952
|
+
open: h,
|
|
2953
|
+
refs: u,
|
|
2954
|
+
nodeId: v,
|
|
2955
|
+
onOpenChange: p,
|
|
2956
|
+
events: O,
|
|
2957
|
+
dataRef: A,
|
|
2958
|
+
floatingId: I,
|
|
2959
|
+
elements: {
|
|
2960
|
+
domReference: y,
|
|
2961
|
+
floating: T
|
|
2962
|
+
}
|
|
2963
|
+
} = t, b = typeof s == "number" && s < 0, k = Ir(y) && b, H = Go() ? i : !0, K = gt(o), J = gt(s), Z = gt(a), G = jt(), B = ri(), te = x.useRef(null), z = x.useRef(null), L = x.useRef(!1), j = x.useRef(!1), V = x.useRef(-1), M = B != null, R = oi(T), m = me(function(S) {
|
|
2964
|
+
return S === void 0 && (S = R), S ? Ft(S, Je()) : [];
|
|
2965
|
+
}), w = me((S) => {
|
|
2966
|
+
const P = m(S);
|
|
2967
|
+
return K.current.map((g) => y && g === "reference" ? y : R && g === "floating" ? R : P).filter(Boolean).flat();
|
|
2968
|
+
});
|
|
2969
|
+
x.useEffect(() => {
|
|
2970
|
+
if (n || !c) return;
|
|
2971
|
+
function S(g) {
|
|
2972
|
+
if (g.key === "Tab") {
|
|
2973
|
+
oe(R, we(ce(R))) && m().length === 0 && !k && vt(g);
|
|
2974
|
+
const _ = w(), N = Ee(g);
|
|
2975
|
+
K.current[0] === "reference" && N === y && (vt(g), g.shiftKey ? _e(_[_.length - 1]) : _e(_[1])), K.current[1] === "floating" && N === R && g.shiftKey && (vt(g), _e(_[0]));
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
const P = ce(R);
|
|
2979
|
+
return P.addEventListener("keydown", S), () => {
|
|
2980
|
+
P.removeEventListener("keydown", S);
|
|
2981
|
+
};
|
|
2982
|
+
}, [n, y, R, c, K, k, m, w]), x.useEffect(() => {
|
|
2983
|
+
if (n || !T) return;
|
|
2984
|
+
function S(P) {
|
|
2985
|
+
const g = Ee(P), N = m().indexOf(g);
|
|
2986
|
+
N !== -1 && (V.current = N);
|
|
2987
|
+
}
|
|
2988
|
+
return T.addEventListener("focusin", S), () => {
|
|
2989
|
+
T.removeEventListener("focusin", S);
|
|
2990
|
+
};
|
|
2991
|
+
}, [n, T, m]), x.useEffect(() => {
|
|
2992
|
+
if (n || !d) return;
|
|
2993
|
+
function S() {
|
|
2994
|
+
j.current = !0, setTimeout(() => {
|
|
2995
|
+
j.current = !1;
|
|
2996
|
+
});
|
|
2997
|
+
}
|
|
2998
|
+
function P(g) {
|
|
2999
|
+
const _ = g.relatedTarget;
|
|
3000
|
+
queueMicrotask(() => {
|
|
3001
|
+
const N = !(oe(y, _) || oe(T, _) || oe(_, T) || oe(B == null ? void 0 : B.portalNode, _) || _ != null && _.hasAttribute(Ze("focus-guard")) || G && (Ne(G.nodesRef.current, v).find(($) => {
|
|
3002
|
+
var D, X;
|
|
3003
|
+
return oe((D = $.context) == null ? void 0 : D.elements.floating, _) || oe((X = $.context) == null ? void 0 : X.elements.domReference, _);
|
|
3004
|
+
}) || Xo(G.nodesRef.current, v).find(($) => {
|
|
3005
|
+
var D, X;
|
|
3006
|
+
return ((D = $.context) == null ? void 0 : D.elements.floating) === _ || ((X = $.context) == null ? void 0 : X.elements.domReference) === _;
|
|
3007
|
+
})));
|
|
3008
|
+
if (l && N && we(ce(R)) === ce(R).body) {
|
|
3009
|
+
ne(R) && R.focus();
|
|
3010
|
+
const $ = V.current, D = m(), X = D[$] || D[D.length - 1] || R;
|
|
3011
|
+
ne(X) && X.focus();
|
|
3012
|
+
}
|
|
3013
|
+
(k || !c) && _ && N && !j.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
|
|
3014
|
+
_ !== gn() && (L.current = !0, p(!1, g, "focus-out"));
|
|
3015
|
+
});
|
|
3016
|
+
}
|
|
3017
|
+
if (T && ne(y))
|
|
3018
|
+
return y.addEventListener("focusout", P), y.addEventListener("pointerdown", S), T.addEventListener("focusout", P), () => {
|
|
3019
|
+
y.removeEventListener("focusout", P), y.removeEventListener("pointerdown", S), T.removeEventListener("focusout", P);
|
|
3020
|
+
};
|
|
3021
|
+
}, [n, y, T, R, c, v, G, B, p, d, l, m, k]), x.useEffect(() => {
|
|
3022
|
+
var S;
|
|
3023
|
+
if (n) return;
|
|
3024
|
+
const P = Array.from((B == null || (S = B.portalNode) == null ? void 0 : S.querySelectorAll("[" + Ze("portal") + "]")) || []);
|
|
3025
|
+
if (T) {
|
|
3026
|
+
const g = [T, ...P, te.current, z.current, K.current.includes("reference") || k ? y : null].filter((N) => N != null), _ = c || k ? mn(g, H, !H) : mn(g);
|
|
3027
|
+
return () => {
|
|
3028
|
+
_();
|
|
3029
|
+
};
|
|
3030
|
+
}
|
|
3031
|
+
}, [n, y, T, c, K, B, k, H]), de(() => {
|
|
3032
|
+
if (n || !ne(R)) return;
|
|
3033
|
+
const S = ce(R), P = we(S);
|
|
3034
|
+
queueMicrotask(() => {
|
|
3035
|
+
const g = w(R), _ = J.current, N = (typeof _ == "number" ? g[_] : _.current) || R, $ = oe(R, P);
|
|
3036
|
+
!b && !$ && h && _e(N, {
|
|
3037
|
+
preventScroll: N === R
|
|
3038
|
+
});
|
|
3039
|
+
});
|
|
3040
|
+
}, [n, h, R, b, w, J]), de(() => {
|
|
3041
|
+
if (n || !R) return;
|
|
3042
|
+
let S = !1;
|
|
3043
|
+
const P = ce(R), g = we(P);
|
|
3044
|
+
let N = A.current.openEvent;
|
|
3045
|
+
xt(g);
|
|
3046
|
+
function $(C) {
|
|
3047
|
+
let {
|
|
3048
|
+
open: re,
|
|
3049
|
+
reason: fe,
|
|
3050
|
+
event: ae,
|
|
3051
|
+
nested: st
|
|
3052
|
+
} = C;
|
|
3053
|
+
re && (N = ae), fe === "escape-key" && u.domReference.current && xt(u.domReference.current), fe === "hover" && ae.type === "mouseleave" && (L.current = !0), fe === "outside-press" && (st ? (L.current = !1, S = !0) : L.current = !(Sr(ae) || Cr(ae)));
|
|
3054
|
+
}
|
|
3055
|
+
O.on("openchange", $);
|
|
3056
|
+
const D = P.createElement("span");
|
|
3057
|
+
D.setAttribute("tabindex", "-1"), D.setAttribute("aria-hidden", "true"), Object.assign(D.style, Wt), M && y && y.insertAdjacentElement("afterend", D);
|
|
3058
|
+
function X() {
|
|
3059
|
+
return typeof Z.current == "boolean" ? gn() || D : Z.current.current || D;
|
|
3060
|
+
}
|
|
3061
|
+
return () => {
|
|
3062
|
+
O.off("openchange", $);
|
|
3063
|
+
const C = we(P), re = oe(T, C) || G && Ne(G.nodesRef.current, v).some((st) => {
|
|
3064
|
+
var qt;
|
|
3065
|
+
return oe((qt = st.context) == null ? void 0 : qt.elements.floating, C);
|
|
3066
|
+
});
|
|
3067
|
+
(re || N && ["click", "mousedown"].includes(N.type)) && u.domReference.current && xt(u.domReference.current);
|
|
3068
|
+
const ae = X();
|
|
3069
|
+
queueMicrotask(() => {
|
|
3070
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3071
|
+
Z.current && !L.current && ne(ae) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
3072
|
+
// since it likely entered a different element which should be
|
|
3073
|
+
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
3074
|
+
(!(ae !== C && C !== P.body) || re) && ae.focus({
|
|
3075
|
+
preventScroll: S
|
|
3076
|
+
}), D.remove();
|
|
3077
|
+
});
|
|
3078
|
+
};
|
|
3079
|
+
}, [n, T, R, Z, A, u, O, G, v, M, y]), x.useEffect(() => {
|
|
3080
|
+
queueMicrotask(() => {
|
|
3081
|
+
L.current = !1;
|
|
3082
|
+
});
|
|
3083
|
+
}, [n]), de(() => {
|
|
3084
|
+
if (!n && B)
|
|
3085
|
+
return B.setFocusManagerState({
|
|
3086
|
+
modal: c,
|
|
3087
|
+
closeOnFocusOut: d,
|
|
3088
|
+
open: h,
|
|
3089
|
+
onOpenChange: p,
|
|
3090
|
+
refs: u
|
|
3091
|
+
}), () => {
|
|
3092
|
+
B.setFocusManagerState(null);
|
|
3093
|
+
};
|
|
3094
|
+
}, [n, B, c, h, p, u, d]), de(() => {
|
|
3095
|
+
if (n || !R || typeof MutationObserver != "function" || b) return;
|
|
3096
|
+
const S = () => {
|
|
3097
|
+
const g = R.getAttribute("tabindex"), _ = m(), N = we(ce(T)), $ = _.indexOf(N);
|
|
3098
|
+
$ !== -1 && (V.current = $), K.current.includes("floating") || N !== u.domReference.current && _.length === 0 ? g !== "0" && R.setAttribute("tabindex", "0") : g !== "-1" && R.setAttribute("tabindex", "-1");
|
|
3099
|
+
};
|
|
3100
|
+
S();
|
|
3101
|
+
const P = new MutationObserver(S);
|
|
3102
|
+
return P.observe(R, {
|
|
3103
|
+
childList: !0,
|
|
3104
|
+
subtree: !0,
|
|
3105
|
+
attributes: !0
|
|
3106
|
+
}), () => {
|
|
3107
|
+
P.disconnect();
|
|
3108
|
+
};
|
|
3109
|
+
}, [n, T, R, u, K, m, b]);
|
|
3110
|
+
function F(S) {
|
|
3111
|
+
return n || !f || !c ? null : /* @__PURE__ */ x.createElement(ii, {
|
|
3112
|
+
ref: S === "start" ? te : z,
|
|
3113
|
+
onClick: (P) => p(!1, P.nativeEvent)
|
|
3114
|
+
}, typeof f == "string" ? f : "Dismiss");
|
|
3115
|
+
}
|
|
3116
|
+
const W = !n && H && (c ? !k : !0) && (M || c);
|
|
3117
|
+
return /* @__PURE__ */ x.createElement(x.Fragment, null, W && /* @__PURE__ */ x.createElement(bn, {
|
|
3118
|
+
"data-type": "inside",
|
|
3119
|
+
ref: B == null ? void 0 : B.beforeInsideRef,
|
|
3120
|
+
onFocus: (S) => {
|
|
3121
|
+
if (c) {
|
|
3122
|
+
const g = w();
|
|
3123
|
+
_e(o[0] === "reference" ? g[0] : g[g.length - 1]);
|
|
3124
|
+
} else if (B != null && B.preserveTabOrder && B.portalNode)
|
|
3125
|
+
if (L.current = !1, hn(S, B.portalNode)) {
|
|
3126
|
+
const g = Qo() || y;
|
|
3127
|
+
g == null || g.focus();
|
|
3128
|
+
} else {
|
|
3129
|
+
var P;
|
|
3130
|
+
(P = B.beforeOutsideRef.current) == null || P.focus();
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
}), !k && F("start"), r, F("end"), W && /* @__PURE__ */ x.createElement(bn, {
|
|
3134
|
+
"data-type": "inside",
|
|
3135
|
+
ref: B == null ? void 0 : B.afterInsideRef,
|
|
3136
|
+
onFocus: (S) => {
|
|
3137
|
+
if (c)
|
|
3138
|
+
_e(w()[0]);
|
|
3139
|
+
else if (B != null && B.preserveTabOrder && B.portalNode)
|
|
3140
|
+
if (d && (L.current = !0), hn(S, B.portalNode)) {
|
|
3141
|
+
const g = ei() || y;
|
|
3142
|
+
g == null || g.focus();
|
|
3143
|
+
} else {
|
|
3144
|
+
var P;
|
|
3145
|
+
(P = B.afterOutsideRef.current) == null || P.focus();
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
}));
|
|
3149
|
+
}
|
|
3150
|
+
function wn(e) {
|
|
3151
|
+
return ne(e.target) && e.target.tagName === "BUTTON";
|
|
3152
|
+
}
|
|
3153
|
+
function xn(e) {
|
|
3154
|
+
return Dn(e);
|
|
3155
|
+
}
|
|
3156
|
+
function ai(e, t) {
|
|
3157
|
+
t === void 0 && (t = {});
|
|
3158
|
+
const {
|
|
3159
|
+
open: r,
|
|
3160
|
+
onOpenChange: n,
|
|
3161
|
+
dataRef: o,
|
|
3162
|
+
elements: {
|
|
3163
|
+
domReference: i
|
|
3164
|
+
}
|
|
3165
|
+
} = e, {
|
|
3166
|
+
enabled: s = !0,
|
|
3167
|
+
event: a = "click",
|
|
3168
|
+
toggle: l = !0,
|
|
3169
|
+
ignoreMouse: c = !1,
|
|
3170
|
+
keyboardHandlers: f = !0,
|
|
3171
|
+
stickIfOpen: d = !0
|
|
3172
|
+
} = t, h = x.useRef(), u = x.useRef(!1), v = x.useMemo(() => ({
|
|
3173
|
+
onPointerDown(p) {
|
|
3174
|
+
h.current = p.pointerType;
|
|
3175
|
+
},
|
|
3176
|
+
onMouseDown(p) {
|
|
3177
|
+
const O = h.current;
|
|
3178
|
+
p.button === 0 && a !== "click" && (en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "mousedown") ? n(!1, p.nativeEvent, "click") : (p.preventDefault(), n(!0, p.nativeEvent, "click"))));
|
|
3179
|
+
},
|
|
3180
|
+
onClick(p) {
|
|
3181
|
+
const O = h.current;
|
|
3182
|
+
if (a === "mousedown" && h.current) {
|
|
3183
|
+
h.current = void 0;
|
|
3184
|
+
return;
|
|
3185
|
+
}
|
|
3186
|
+
en(O) && c || (r && l && (!(o.current.openEvent && d) || o.current.openEvent.type === "click") ? n(!1, p.nativeEvent, "click") : n(!0, p.nativeEvent, "click"));
|
|
3187
|
+
},
|
|
3188
|
+
onKeyDown(p) {
|
|
3189
|
+
h.current = void 0, !(p.defaultPrevented || !f || wn(p)) && (p.key === " " && !xn(i) && (p.preventDefault(), u.current = !0), p.key === "Enter" && n(!(r && l), p.nativeEvent, "click"));
|
|
3190
|
+
},
|
|
3191
|
+
onKeyUp(p) {
|
|
3192
|
+
p.defaultPrevented || !f || wn(p) || xn(i) || p.key === " " && u.current && (u.current = !1, n(!(r && l), p.nativeEvent, "click"));
|
|
3193
|
+
}
|
|
3194
|
+
}), [o, i, a, c, f, n, r, d, l]);
|
|
3195
|
+
return x.useMemo(() => s ? {
|
|
3196
|
+
reference: v
|
|
3197
|
+
} : {}, [s, v]);
|
|
3198
|
+
}
|
|
3199
|
+
const ci = {
|
|
3200
|
+
pointerdown: "onPointerDown",
|
|
3201
|
+
mousedown: "onMouseDown",
|
|
3202
|
+
click: "onClick"
|
|
3203
|
+
}, li = {
|
|
3204
|
+
pointerdown: "onPointerDownCapture",
|
|
3205
|
+
mousedown: "onMouseDownCapture",
|
|
3206
|
+
click: "onClickCapture"
|
|
3207
|
+
}, En = (e) => {
|
|
3208
|
+
var t, r;
|
|
3209
|
+
return {
|
|
3210
|
+
escapeKey: typeof e == "boolean" ? e : (t = e == null ? void 0 : e.escapeKey) != null ? t : !1,
|
|
3211
|
+
outsidePress: typeof e == "boolean" ? e : (r = e == null ? void 0 : e.outsidePress) != null ? r : !0
|
|
3212
|
+
};
|
|
3213
|
+
};
|
|
3214
|
+
function ui(e, t) {
|
|
3215
|
+
t === void 0 && (t = {});
|
|
3216
|
+
const {
|
|
3217
|
+
open: r,
|
|
3218
|
+
onOpenChange: n,
|
|
3219
|
+
elements: o,
|
|
3220
|
+
dataRef: i
|
|
3221
|
+
} = e, {
|
|
3222
|
+
enabled: s = !0,
|
|
3223
|
+
escapeKey: a = !0,
|
|
3224
|
+
outsidePress: l = !0,
|
|
3225
|
+
outsidePressEvent: c = "pointerdown",
|
|
3226
|
+
referencePress: f = !1,
|
|
3227
|
+
referencePressEvent: d = "pointerdown",
|
|
3228
|
+
ancestorScroll: h = !1,
|
|
3229
|
+
bubbles: u,
|
|
3230
|
+
capture: v
|
|
3231
|
+
} = t, p = jt(), O = me(typeof l == "function" ? l : () => !1), A = typeof l == "function" ? O : l, I = x.useRef(!1), y = x.useRef(!1), {
|
|
3232
|
+
escapeKey: T,
|
|
3233
|
+
outsidePress: b
|
|
3234
|
+
} = En(u), {
|
|
3235
|
+
escapeKey: k,
|
|
3236
|
+
outsidePress: H
|
|
3237
|
+
} = En(v), K = x.useRef(!1), J = me((L) => {
|
|
3238
|
+
var j;
|
|
3239
|
+
if (!r || !s || !a || L.key !== "Escape" || K.current)
|
|
3240
|
+
return;
|
|
3241
|
+
const V = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, M = p ? Ne(p.nodesRef.current, V) : [];
|
|
3242
|
+
if (!T && (L.stopPropagation(), M.length > 0)) {
|
|
3243
|
+
let R = !0;
|
|
3244
|
+
if (M.forEach((m) => {
|
|
3245
|
+
var w;
|
|
3246
|
+
if ((w = m.context) != null && w.open && !m.context.dataRef.current.__escapeKeyBubbles) {
|
|
3247
|
+
R = !1;
|
|
3248
|
+
return;
|
|
3249
|
+
}
|
|
3250
|
+
}), !R)
|
|
3251
|
+
return;
|
|
3252
|
+
}
|
|
3253
|
+
n(!1, Ar(L) ? L.nativeEvent : L, "escape-key");
|
|
3254
|
+
}), Z = me((L) => {
|
|
3255
|
+
var j;
|
|
3256
|
+
const V = () => {
|
|
3257
|
+
var M;
|
|
3258
|
+
J(L), (M = Ee(L)) == null || M.removeEventListener("keydown", V);
|
|
3259
|
+
};
|
|
3260
|
+
(j = Ee(L)) == null || j.addEventListener("keydown", V);
|
|
3261
|
+
}), G = me((L) => {
|
|
3262
|
+
var j;
|
|
3263
|
+
const V = I.current;
|
|
3264
|
+
I.current = !1;
|
|
3265
|
+
const M = y.current;
|
|
3266
|
+
if (y.current = !1, c === "click" && M || V || typeof A == "function" && !A(L))
|
|
3267
|
+
return;
|
|
3268
|
+
const R = Ee(L), m = "[" + Ze("inert") + "]", w = ce(o.floating).querySelectorAll(m);
|
|
3269
|
+
let F = Q(R) ? R : null;
|
|
3270
|
+
for (; F && !be(F); ) {
|
|
3271
|
+
const g = pe(F);
|
|
3272
|
+
if (be(g) || !Q(g))
|
|
3273
|
+
break;
|
|
3274
|
+
F = g;
|
|
3275
|
+
}
|
|
3276
|
+
if (w.length && Q(R) && !Pr(R) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
3277
|
+
!oe(R, o.floating) && // If the target root element contains none of the markers, then the
|
|
3278
|
+
// element was injected after the floating element rendered.
|
|
3279
|
+
Array.from(w).every((g) => !oe(F, g)))
|
|
3280
|
+
return;
|
|
3281
|
+
if (ne(R) && z) {
|
|
3282
|
+
const g = R.clientWidth > 0 && R.scrollWidth > R.clientWidth, _ = R.clientHeight > 0 && R.scrollHeight > R.clientHeight;
|
|
3283
|
+
let N = _ && L.offsetX > R.clientWidth;
|
|
3284
|
+
if (_ && se(R).direction === "rtl" && (N = L.offsetX <= R.offsetWidth - R.clientWidth), N || g && L.offsetY > R.clientHeight)
|
|
3285
|
+
return;
|
|
3286
|
+
}
|
|
3287
|
+
const W = (j = i.current.floatingContext) == null ? void 0 : j.nodeId, S = p && Ne(p.nodesRef.current, W).some((g) => {
|
|
3288
|
+
var _;
|
|
3289
|
+
return ht(L, (_ = g.context) == null ? void 0 : _.elements.floating);
|
|
3290
|
+
});
|
|
3291
|
+
if (ht(L, o.floating) || ht(L, o.domReference) || S)
|
|
3292
|
+
return;
|
|
3293
|
+
const P = p ? Ne(p.nodesRef.current, W) : [];
|
|
3294
|
+
if (P.length > 0) {
|
|
3295
|
+
let g = !0;
|
|
3296
|
+
if (P.forEach((_) => {
|
|
3297
|
+
var N;
|
|
3298
|
+
if ((N = _.context) != null && N.open && !_.context.dataRef.current.__outsidePressBubbles) {
|
|
3299
|
+
g = !1;
|
|
3300
|
+
return;
|
|
3301
|
+
}
|
|
3302
|
+
}), !g)
|
|
3303
|
+
return;
|
|
3304
|
+
}
|
|
3305
|
+
n(!1, L, "outside-press");
|
|
3306
|
+
}), B = me((L) => {
|
|
3307
|
+
var j;
|
|
3308
|
+
const V = () => {
|
|
3309
|
+
var M;
|
|
3310
|
+
G(L), (M = Ee(L)) == null || M.removeEventListener(c, V);
|
|
3311
|
+
};
|
|
3312
|
+
(j = Ee(L)) == null || j.addEventListener(c, V);
|
|
3313
|
+
});
|
|
3314
|
+
x.useEffect(() => {
|
|
3315
|
+
if (!r || !s)
|
|
3316
|
+
return;
|
|
3317
|
+
i.current.__escapeKeyBubbles = T, i.current.__outsidePressBubbles = b;
|
|
3318
|
+
let L = -1;
|
|
3319
|
+
function j(w) {
|
|
3320
|
+
n(!1, w, "ancestor-scroll");
|
|
3321
|
+
}
|
|
3322
|
+
function V() {
|
|
3323
|
+
window.clearTimeout(L), K.current = !0;
|
|
3324
|
+
}
|
|
3325
|
+
function M() {
|
|
3326
|
+
L = window.setTimeout(
|
|
3327
|
+
() => {
|
|
3328
|
+
K.current = !1;
|
|
3329
|
+
},
|
|
3330
|
+
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
3331
|
+
// Only apply to WebKit for the test to remain 0ms.
|
|
3332
|
+
tt() ? 5 : 0
|
|
3333
|
+
);
|
|
3334
|
+
}
|
|
3335
|
+
const R = ce(o.floating);
|
|
3336
|
+
a && (R.addEventListener("keydown", k ? Z : J, k), R.addEventListener("compositionstart", V), R.addEventListener("compositionend", M)), A && R.addEventListener(c, H ? B : G, H);
|
|
3337
|
+
let m = [];
|
|
3338
|
+
return h && (Q(o.domReference) && (m = ve(o.domReference)), Q(o.floating) && (m = m.concat(ve(o.floating))), !Q(o.reference) && o.reference && o.reference.contextElement && (m = m.concat(ve(o.reference.contextElement)))), m = m.filter((w) => {
|
|
3339
|
+
var F;
|
|
3340
|
+
return w !== ((F = R.defaultView) == null ? void 0 : F.visualViewport);
|
|
3341
|
+
}), m.forEach((w) => {
|
|
3342
|
+
w.addEventListener("scroll", j, {
|
|
3343
|
+
passive: !0
|
|
3344
|
+
});
|
|
3345
|
+
}), () => {
|
|
3346
|
+
a && (R.removeEventListener("keydown", k ? Z : J, k), R.removeEventListener("compositionstart", V), R.removeEventListener("compositionend", M)), A && R.removeEventListener(c, H ? B : G, H), m.forEach((w) => {
|
|
3347
|
+
w.removeEventListener("scroll", j);
|
|
3348
|
+
}), window.clearTimeout(L);
|
|
3349
|
+
};
|
|
3350
|
+
}, [i, o, a, A, c, r, n, h, s, T, b, J, k, Z, G, H, B]), x.useEffect(() => {
|
|
3351
|
+
I.current = !1;
|
|
3352
|
+
}, [A, c]);
|
|
3353
|
+
const te = x.useMemo(() => ({
|
|
3354
|
+
onKeyDown: J,
|
|
3355
|
+
[ci[d]]: (L) => {
|
|
3356
|
+
f && n(!1, L.nativeEvent, "reference-press");
|
|
3357
|
+
}
|
|
3358
|
+
}), [J, n, f, d]), z = x.useMemo(() => ({
|
|
3359
|
+
onKeyDown: J,
|
|
3360
|
+
onMouseDown() {
|
|
3361
|
+
y.current = !0;
|
|
3362
|
+
},
|
|
3363
|
+
onMouseUp() {
|
|
3364
|
+
y.current = !0;
|
|
3365
|
+
},
|
|
3366
|
+
[li[c]]: () => {
|
|
3367
|
+
I.current = !0;
|
|
3368
|
+
}
|
|
3369
|
+
}), [J, c]);
|
|
3370
|
+
return x.useMemo(() => s ? {
|
|
3371
|
+
reference: te,
|
|
3372
|
+
floating: z
|
|
3373
|
+
} : {}, [s, te, z]);
|
|
3374
|
+
}
|
|
3375
|
+
function fi(e) {
|
|
3376
|
+
const {
|
|
3377
|
+
open: t = !1,
|
|
3378
|
+
onOpenChange: r,
|
|
3379
|
+
elements: n
|
|
3380
|
+
} = e, o = Jn(), i = x.useRef({}), [s] = x.useState(() => Ho()), a = Qn() != null;
|
|
3381
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3382
|
+
const u = n.reference;
|
|
3383
|
+
u && !Q(u) && Uo("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3384
|
+
}
|
|
3385
|
+
const [l, c] = x.useState(n.reference), f = me((u, v, p) => {
|
|
3386
|
+
i.current.openEvent = u ? v : void 0, s.emit("openchange", {
|
|
3387
|
+
open: u,
|
|
3388
|
+
event: v,
|
|
3389
|
+
reason: p,
|
|
3390
|
+
nested: a
|
|
3391
|
+
}), r == null || r(u, v, p);
|
|
3392
|
+
}), d = x.useMemo(() => ({
|
|
3393
|
+
setPositionReference: c
|
|
3394
|
+
}), []), h = x.useMemo(() => ({
|
|
3395
|
+
reference: l || n.reference || null,
|
|
3396
|
+
floating: n.floating || null,
|
|
3397
|
+
domReference: n.reference
|
|
3398
|
+
}), [l, n.reference, n.floating]);
|
|
3399
|
+
return x.useMemo(() => ({
|
|
3400
|
+
dataRef: i,
|
|
3401
|
+
open: t,
|
|
3402
|
+
onOpenChange: f,
|
|
3403
|
+
elements: h,
|
|
3404
|
+
events: s,
|
|
3405
|
+
floatingId: o,
|
|
3406
|
+
refs: d
|
|
3407
|
+
}), [t, f, h, s, o, d]);
|
|
3408
|
+
}
|
|
3409
|
+
function di(e) {
|
|
3410
|
+
e === void 0 && (e = {});
|
|
3411
|
+
const {
|
|
3412
|
+
nodeId: t
|
|
3413
|
+
} = e, r = fi({
|
|
3414
|
+
...e,
|
|
3415
|
+
elements: {
|
|
3416
|
+
reference: null,
|
|
3417
|
+
floating: null,
|
|
3418
|
+
...e.elements
|
|
3419
|
+
}
|
|
3420
|
+
}), n = e.rootContext || r, o = n.elements, [i, s] = x.useState(null), [a, l] = x.useState(null), f = (o == null ? void 0 : o.domReference) || i, d = x.useRef(null), h = jt();
|
|
3421
|
+
de(() => {
|
|
3422
|
+
f && (d.current = f);
|
|
3423
|
+
}, [f]);
|
|
3424
|
+
const u = Lo({
|
|
3425
|
+
...e,
|
|
3426
|
+
elements: {
|
|
3427
|
+
...o,
|
|
3428
|
+
...a && {
|
|
3429
|
+
reference: a
|
|
3430
|
+
}
|
|
3431
|
+
}
|
|
3432
|
+
}), v = x.useCallback((y) => {
|
|
3433
|
+
const T = Q(y) ? {
|
|
3434
|
+
getBoundingClientRect: () => y.getBoundingClientRect(),
|
|
3435
|
+
contextElement: y
|
|
3436
|
+
} : y;
|
|
3437
|
+
l(T), u.refs.setReference(T);
|
|
3438
|
+
}, [u.refs]), p = x.useCallback((y) => {
|
|
3439
|
+
(Q(y) || y === null) && (d.current = y, s(y)), (Q(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
3440
|
+
// `null` to support `positionReference` + an unstable `reference`
|
|
3441
|
+
// callback ref.
|
|
3442
|
+
y !== null && !Q(y)) && u.refs.setReference(y);
|
|
3443
|
+
}, [u.refs]), O = x.useMemo(() => ({
|
|
3444
|
+
...u.refs,
|
|
3445
|
+
setReference: p,
|
|
3446
|
+
setPositionReference: v,
|
|
3447
|
+
domReference: d
|
|
3448
|
+
}), [u.refs, p, v]), A = x.useMemo(() => ({
|
|
3449
|
+
...u.elements,
|
|
3450
|
+
domReference: f
|
|
3451
|
+
}), [u.elements, f]), I = x.useMemo(() => ({
|
|
3452
|
+
...u,
|
|
3453
|
+
...n,
|
|
3454
|
+
refs: O,
|
|
3455
|
+
elements: A,
|
|
3456
|
+
nodeId: t
|
|
3457
|
+
}), [u, O, A, t, n]);
|
|
3458
|
+
return de(() => {
|
|
3459
|
+
n.dataRef.current.floatingContext = I;
|
|
3460
|
+
const y = h == null ? void 0 : h.nodesRef.current.find((T) => T.id === t);
|
|
3461
|
+
y && (y.context = I);
|
|
3462
|
+
}), x.useMemo(() => ({
|
|
3463
|
+
...u,
|
|
3464
|
+
context: I,
|
|
3465
|
+
refs: O,
|
|
3466
|
+
elements: A
|
|
3467
|
+
}), [u, O, A, I]);
|
|
3468
|
+
}
|
|
3469
|
+
const Rn = "active", Tn = "selected";
|
|
3470
|
+
function Et(e, t, r) {
|
|
3471
|
+
const n = /* @__PURE__ */ new Map(), o = r === "item";
|
|
3472
|
+
let i = e;
|
|
3473
|
+
if (o && e) {
|
|
3474
|
+
const {
|
|
3475
|
+
[Rn]: s,
|
|
3476
|
+
[Tn]: a,
|
|
3477
|
+
...l
|
|
3478
|
+
} = e;
|
|
3479
|
+
i = l;
|
|
3480
|
+
}
|
|
3481
|
+
return {
|
|
3482
|
+
...r === "floating" && {
|
|
3483
|
+
tabIndex: -1,
|
|
3484
|
+
[It]: ""
|
|
3485
|
+
},
|
|
3486
|
+
...i,
|
|
3487
|
+
...t.map((s) => {
|
|
3488
|
+
const a = s ? s[r] : null;
|
|
3489
|
+
return typeof a == "function" ? e ? a(e) : null : a;
|
|
3490
|
+
}).concat(e).reduce((s, a) => (a && Object.entries(a).forEach((l) => {
|
|
3491
|
+
let [c, f] = l;
|
|
3492
|
+
if (!(o && [Rn, Tn].includes(c)))
|
|
3493
|
+
if (c.indexOf("on") === 0) {
|
|
3494
|
+
if (n.has(c) || n.set(c, []), typeof f == "function") {
|
|
3495
|
+
var d;
|
|
3496
|
+
(d = n.get(c)) == null || d.push(f), s[c] = function() {
|
|
3497
|
+
for (var h, u = arguments.length, v = new Array(u), p = 0; p < u; p++)
|
|
3498
|
+
v[p] = arguments[p];
|
|
3499
|
+
return (h = n.get(c)) == null ? void 0 : h.map((O) => O(...v)).find((O) => O !== void 0);
|
|
3500
|
+
};
|
|
3501
|
+
}
|
|
3502
|
+
} else
|
|
3503
|
+
s[c] = f;
|
|
3504
|
+
}), s), {})
|
|
3505
|
+
};
|
|
3506
|
+
}
|
|
3507
|
+
function pi(e) {
|
|
3508
|
+
e === void 0 && (e = []);
|
|
3509
|
+
const t = e.map((a) => a == null ? void 0 : a.reference), r = e.map((a) => a == null ? void 0 : a.floating), n = e.map((a) => a == null ? void 0 : a.item), o = x.useCallback(
|
|
3510
|
+
(a) => Et(a, e, "reference"),
|
|
3511
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3512
|
+
t
|
|
3513
|
+
), i = x.useCallback(
|
|
3514
|
+
(a) => Et(a, e, "floating"),
|
|
3515
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3516
|
+
r
|
|
3517
|
+
), s = x.useCallback(
|
|
3518
|
+
(a) => Et(a, e, "item"),
|
|
3519
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3520
|
+
n
|
|
3521
|
+
);
|
|
3522
|
+
return x.useMemo(() => ({
|
|
3523
|
+
getReferenceProps: o,
|
|
3524
|
+
getFloatingProps: i,
|
|
3525
|
+
getItemProps: s
|
|
3526
|
+
}), [o, i, s]);
|
|
3527
|
+
}
|
|
3528
|
+
const mi = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
|
|
3529
|
+
function hi(e, t) {
|
|
3530
|
+
var r;
|
|
3531
|
+
t === void 0 && (t = {});
|
|
3532
|
+
const {
|
|
3533
|
+
open: n,
|
|
3534
|
+
floatingId: o
|
|
3535
|
+
} = e, {
|
|
3536
|
+
enabled: i = !0,
|
|
3537
|
+
role: s = "dialog"
|
|
3538
|
+
} = t, a = (r = mi.get(s)) != null ? r : s, l = Jn(), f = Qn() != null, d = x.useMemo(() => a === "tooltip" || s === "label" ? {
|
|
3539
|
+
["aria-" + (s === "label" ? "labelledby" : "describedby")]: n ? o : void 0
|
|
3540
|
+
} : {
|
|
3541
|
+
"aria-expanded": n ? "true" : "false",
|
|
3542
|
+
"aria-haspopup": a === "alertdialog" ? "dialog" : a,
|
|
3543
|
+
"aria-controls": n ? o : void 0,
|
|
3544
|
+
...a === "listbox" && {
|
|
3545
|
+
role: "combobox"
|
|
3546
|
+
},
|
|
3547
|
+
...a === "menu" && {
|
|
3548
|
+
id: l
|
|
3549
|
+
},
|
|
3550
|
+
...a === "menu" && f && {
|
|
3551
|
+
role: "menuitem"
|
|
3552
|
+
},
|
|
3553
|
+
...s === "select" && {
|
|
3554
|
+
"aria-autocomplete": "none"
|
|
3555
|
+
},
|
|
3556
|
+
...s === "combobox" && {
|
|
3557
|
+
"aria-autocomplete": "list"
|
|
3558
|
+
}
|
|
3559
|
+
}, [a, o, f, n, l, s]), h = x.useMemo(() => {
|
|
3560
|
+
const v = {
|
|
3561
|
+
id: o,
|
|
3562
|
+
...a && {
|
|
3563
|
+
role: a
|
|
3564
|
+
}
|
|
3565
|
+
};
|
|
3566
|
+
return a === "tooltip" || s === "label" ? v : {
|
|
3567
|
+
...v,
|
|
3568
|
+
...a === "menu" && {
|
|
3569
|
+
"aria-labelledby": l
|
|
3570
|
+
}
|
|
3571
|
+
};
|
|
3572
|
+
}, [a, o, l, s]), u = x.useCallback((v) => {
|
|
3573
|
+
let {
|
|
3574
|
+
active: p,
|
|
3575
|
+
selected: O
|
|
3576
|
+
} = v;
|
|
3577
|
+
const A = {
|
|
3578
|
+
role: "option",
|
|
3579
|
+
...p && {
|
|
3580
|
+
id: o + "-option"
|
|
3581
|
+
}
|
|
3582
|
+
};
|
|
3583
|
+
switch (s) {
|
|
3584
|
+
case "select":
|
|
3585
|
+
return {
|
|
3586
|
+
...A,
|
|
3587
|
+
"aria-selected": p && O
|
|
3588
|
+
};
|
|
3589
|
+
case "combobox":
|
|
3590
|
+
return {
|
|
3591
|
+
...A,
|
|
3592
|
+
...p && {
|
|
3593
|
+
"aria-selected": !0
|
|
3594
|
+
}
|
|
3595
|
+
};
|
|
3596
|
+
}
|
|
3597
|
+
return {};
|
|
3598
|
+
}, [o, s]);
|
|
3599
|
+
return x.useMemo(() => i ? {
|
|
3600
|
+
reference: d,
|
|
3601
|
+
floating: h,
|
|
3602
|
+
item: u
|
|
3603
|
+
} : {}, [i, d, h, u]);
|
|
3604
|
+
}
|
|
3605
|
+
function vi({ className: e, children: t, buttonText: r }) {
|
|
3606
|
+
const [n, o] = or(!1), { refs: i, floatingStyles: s, context: a } = di({
|
|
3607
|
+
open: n,
|
|
3608
|
+
onOpenChange: o,
|
|
3609
|
+
middleware: [Fo(16), jo(), $o()],
|
|
3610
|
+
whileElementsMounted: Ao,
|
|
3611
|
+
placement: "right"
|
|
3612
|
+
}), l = ai(a), c = ui(a), f = hi(a), { getReferenceProps: d, getFloatingProps: h } = pi([
|
|
3613
|
+
l,
|
|
3614
|
+
c,
|
|
3615
|
+
f
|
|
3616
|
+
]);
|
|
3617
|
+
return /* @__PURE__ */ q(Ie, { children: [
|
|
3618
|
+
/* @__PURE__ */ E("span", { ref: i.setReference, className: e, ...d(), children: /* @__PURE__ */ E(Re, { text: r }) }),
|
|
3619
|
+
n && /* @__PURE__ */ E(si, { context: a, modal: !1, children: /* @__PURE__ */ E(
|
|
3620
|
+
"div",
|
|
3621
|
+
{
|
|
3622
|
+
ref: i.setFloating,
|
|
3623
|
+
style: s,
|
|
3624
|
+
...h(),
|
|
3625
|
+
children: /* @__PURE__ */ E(gr, { children: t })
|
|
3626
|
+
}
|
|
3627
|
+
) })
|
|
3628
|
+
] });
|
|
3629
|
+
}
|
|
3630
|
+
const Bi = ({
|
|
3631
|
+
className: e,
|
|
3632
|
+
children: t,
|
|
3633
|
+
buttonText: r = "Menu button"
|
|
3634
|
+
}) => {
|
|
3635
|
+
const n = ee("rpf-menu-button", e);
|
|
3636
|
+
return /* @__PURE__ */ E(vi, { className: n, buttonText: r, children: t });
|
|
3637
|
+
}, Sn = (e) => e ? /* @__PURE__ */ E("span", { className: "rpf-button__icon material-symbols-sharp", children: e }) : null, Cn = ({ text: e, iconPosition: t, icon: r }) => /* @__PURE__ */ q(Ie, { children: [
|
|
3638
|
+
t === "left" && r !== "" ? Sn(r) : null,
|
|
3639
|
+
e,
|
|
3640
|
+
t === "right" && r !== "" ? Sn(r) : null
|
|
3641
|
+
] }), qi = ({
|
|
3642
|
+
text: e,
|
|
3643
|
+
href: t,
|
|
3644
|
+
icon: r = "",
|
|
3645
|
+
iconPosition: n = "left",
|
|
3646
|
+
danger: o,
|
|
3647
|
+
className: i,
|
|
3648
|
+
onClick: s
|
|
3649
|
+
}) => {
|
|
3650
|
+
const a = ee(
|
|
3651
|
+
"rpf-menu__item",
|
|
3652
|
+
{ "rpf-menu__item--danger": o },
|
|
3653
|
+
i
|
|
3654
|
+
);
|
|
3655
|
+
return /* @__PURE__ */ E("li", { className: a, children: t ? /* @__PURE__ */ E("a", { href: t, children: /* @__PURE__ */ E(Cn, { text: e, iconPosition: n, icon: r }) }) : /* @__PURE__ */ E("button", { type: "button", onClick: s, children: /* @__PURE__ */ E(Cn, { text: e, iconPosition: n, icon: r }) }) });
|
|
3656
|
+
}, Vi = ({ text: e }) => /* @__PURE__ */ E("li", { className: "rpf-menu__title", children: /* @__PURE__ */ E("span", { children: e }) }), Yi = ({
|
|
1208
3657
|
text: e = "",
|
|
1209
3658
|
percent: t,
|
|
1210
|
-
complete:
|
|
3659
|
+
complete: r = !1,
|
|
1211
3660
|
className: n
|
|
1212
|
-
}) => /* @__PURE__ */
|
|
3661
|
+
}) => /* @__PURE__ */ E(
|
|
1213
3662
|
"div",
|
|
1214
3663
|
{
|
|
1215
|
-
className:
|
|
1216
|
-
"rpf-progress-bar--complete":
|
|
3664
|
+
className: ee("rpf-progress-bar", {
|
|
3665
|
+
"rpf-progress-bar--complete": r,
|
|
1217
3666
|
className: n
|
|
1218
3667
|
}),
|
|
1219
|
-
children: /* @__PURE__ */
|
|
1220
|
-
/* @__PURE__ */
|
|
1221
|
-
/* @__PURE__ */
|
|
3668
|
+
children: /* @__PURE__ */ q("label", { className: "rpf-progress-bar__label", children: [
|
|
3669
|
+
/* @__PURE__ */ E("span", { children: e }),
|
|
3670
|
+
/* @__PURE__ */ E("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
1222
3671
|
] })
|
|
1223
3672
|
}
|
|
1224
|
-
),
|
|
3673
|
+
), Ui = ({ children: e }) => /* @__PURE__ */ E("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ E("div", { className: "rpf-table-cell__content", children: e }) });
|
|
1225
3674
|
/**
|
|
1226
3675
|
* @license lucide-react v0.553.0 - ISC
|
|
1227
3676
|
*
|
|
1228
3677
|
* This source code is licensed under the ISC license.
|
|
1229
3678
|
* See the LICENSE file in the root directory of this source tree.
|
|
1230
3679
|
*/
|
|
1231
|
-
const
|
|
3680
|
+
const bi = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (e) => e.replace(
|
|
1232
3681
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
1233
|
-
(t,
|
|
1234
|
-
),
|
|
1235
|
-
const t =
|
|
3682
|
+
(t, r, n) => n ? n.toUpperCase() : r.toLowerCase()
|
|
3683
|
+
), _n = (e) => {
|
|
3684
|
+
const t = yi(e);
|
|
1236
3685
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1237
|
-
},
|
|
3686
|
+
}, nr = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), gi = (e) => {
|
|
1238
3687
|
for (const t in e)
|
|
1239
3688
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
1240
3689
|
return !0;
|
|
@@ -1245,7 +3694,7 @@ const Xe = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = (
|
|
|
1245
3694
|
* This source code is licensed under the ISC license.
|
|
1246
3695
|
* See the LICENSE file in the root directory of this source tree.
|
|
1247
3696
|
*/
|
|
1248
|
-
var
|
|
3697
|
+
var wi = {
|
|
1249
3698
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1250
3699
|
width: 24,
|
|
1251
3700
|
height: 24,
|
|
@@ -1262,32 +3711,32 @@ var er = {
|
|
|
1262
3711
|
* This source code is licensed under the ISC license.
|
|
1263
3712
|
* See the LICENSE file in the root directory of this source tree.
|
|
1264
3713
|
*/
|
|
1265
|
-
const
|
|
3714
|
+
const xi = kt(
|
|
1266
3715
|
({
|
|
1267
3716
|
color: e = "currentColor",
|
|
1268
3717
|
size: t = 24,
|
|
1269
|
-
strokeWidth:
|
|
3718
|
+
strokeWidth: r = 2,
|
|
1270
3719
|
absoluteStrokeWidth: n,
|
|
1271
|
-
className:
|
|
1272
|
-
children:
|
|
1273
|
-
iconNode:
|
|
1274
|
-
...
|
|
1275
|
-
},
|
|
3720
|
+
className: o = "",
|
|
3721
|
+
children: i,
|
|
3722
|
+
iconNode: s,
|
|
3723
|
+
...a
|
|
3724
|
+
}, l) => Tt(
|
|
1276
3725
|
"svg",
|
|
1277
3726
|
{
|
|
1278
|
-
ref:
|
|
1279
|
-
...
|
|
3727
|
+
ref: l,
|
|
3728
|
+
...wi,
|
|
1280
3729
|
width: t,
|
|
1281
3730
|
height: t,
|
|
1282
3731
|
stroke: e,
|
|
1283
|
-
strokeWidth: n ? Number(
|
|
1284
|
-
className:
|
|
1285
|
-
...!
|
|
1286
|
-
...
|
|
3732
|
+
strokeWidth: n ? Number(r) * 24 / Number(t) : r,
|
|
3733
|
+
className: nr("lucide", o),
|
|
3734
|
+
...!i && !gi(a) && { "aria-hidden": "true" },
|
|
3735
|
+
...a
|
|
1287
3736
|
},
|
|
1288
3737
|
[
|
|
1289
|
-
...
|
|
1290
|
-
...Array.isArray(
|
|
3738
|
+
...s.map(([c, f]) => Tt(c, f)),
|
|
3739
|
+
...Array.isArray(i) ? i : [i]
|
|
1291
3740
|
]
|
|
1292
3741
|
)
|
|
1293
3742
|
);
|
|
@@ -1297,20 +3746,20 @@ const rr = $e(
|
|
|
1297
3746
|
* This source code is licensed under the ISC license.
|
|
1298
3747
|
* See the LICENSE file in the root directory of this source tree.
|
|
1299
3748
|
*/
|
|
1300
|
-
const
|
|
1301
|
-
const
|
|
1302
|
-
({ className: n, ...
|
|
1303
|
-
ref:
|
|
3749
|
+
const Bt = (e, t) => {
|
|
3750
|
+
const r = kt(
|
|
3751
|
+
({ className: n, ...o }, i) => Tt(xi, {
|
|
3752
|
+
ref: i,
|
|
1304
3753
|
iconNode: t,
|
|
1305
|
-
className:
|
|
1306
|
-
`lucide-${
|
|
3754
|
+
className: nr(
|
|
3755
|
+
`lucide-${bi(_n(e))}`,
|
|
1307
3756
|
`lucide-${e}`,
|
|
1308
3757
|
n
|
|
1309
3758
|
),
|
|
1310
|
-
...
|
|
3759
|
+
...o
|
|
1311
3760
|
})
|
|
1312
3761
|
);
|
|
1313
|
-
return
|
|
3762
|
+
return r.displayName = _n(e), r;
|
|
1314
3763
|
};
|
|
1315
3764
|
/**
|
|
1316
3765
|
* @license lucide-react v0.553.0 - ISC
|
|
@@ -1318,109 +3767,114 @@ const be = (e, t) => {
|
|
|
1318
3767
|
* This source code is licensed under the ISC license.
|
|
1319
3768
|
* See the LICENSE file in the root directory of this source tree.
|
|
1320
3769
|
*/
|
|
1321
|
-
const
|
|
3770
|
+
const Ei = [
|
|
1322
3771
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
1323
3772
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
1324
3773
|
["path", { d: "m21 8-4-4-4 4", key: "1c9v7m" }],
|
|
1325
3774
|
["path", { d: "M17 4v16", key: "7dpous" }]
|
|
1326
|
-
],
|
|
3775
|
+
], Ri = Bt("arrow-down-up", Ei);
|
|
1327
3776
|
/**
|
|
1328
3777
|
* @license lucide-react v0.553.0 - ISC
|
|
1329
3778
|
*
|
|
1330
3779
|
* This source code is licensed under the ISC license.
|
|
1331
3780
|
* See the LICENSE file in the root directory of this source tree.
|
|
1332
3781
|
*/
|
|
1333
|
-
const
|
|
3782
|
+
const Ti = [
|
|
1334
3783
|
["path", { d: "m3 16 4 4 4-4", key: "1co6wj" }],
|
|
1335
3784
|
["path", { d: "M7 20V4", key: "1yoxec" }],
|
|
1336
3785
|
["path", { d: "M11 4h10", key: "1w87gc" }],
|
|
1337
3786
|
["path", { d: "M11 8h7", key: "djye34" }],
|
|
1338
3787
|
["path", { d: "M11 12h4", key: "q8tih4" }]
|
|
1339
|
-
],
|
|
3788
|
+
], Si = Bt("arrow-down-wide-narrow", Ti);
|
|
1340
3789
|
/**
|
|
1341
3790
|
* @license lucide-react v0.553.0 - ISC
|
|
1342
3791
|
*
|
|
1343
3792
|
* This source code is licensed under the ISC license.
|
|
1344
3793
|
* See the LICENSE file in the root directory of this source tree.
|
|
1345
3794
|
*/
|
|
1346
|
-
const
|
|
3795
|
+
const Ci = [
|
|
1347
3796
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
1348
3797
|
["path", { d: "M7 4v16", key: "1glfcx" }],
|
|
1349
3798
|
["path", { d: "M11 12h4", key: "q8tih4" }],
|
|
1350
3799
|
["path", { d: "M11 16h7", key: "uosisv" }],
|
|
1351
3800
|
["path", { d: "M11 20h10", key: "jvxblo" }]
|
|
1352
|
-
],
|
|
3801
|
+
], _i = Bt("arrow-up-narrow-wide", Ci), Oi = (e, t) => {
|
|
1353
3802
|
if (e)
|
|
1354
3803
|
return t === "up" ? "ascending" : t === "down" ? "descending" : "none";
|
|
1355
|
-
},
|
|
3804
|
+
}, Hi = ({
|
|
1356
3805
|
sortDirection: e,
|
|
1357
3806
|
children: t,
|
|
1358
|
-
onClick:
|
|
3807
|
+
onClick: r
|
|
1359
3808
|
}) => {
|
|
1360
|
-
const n = !!
|
|
1361
|
-
return /* @__PURE__ */
|
|
3809
|
+
const n = !!r, o = e === "up" ? _i : e === "down" ? Si : Ri, i = Oi(n, e);
|
|
3810
|
+
return /* @__PURE__ */ E("th", { className: `rpf-table-cell ${n ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, "aria-sort": i, children: /* @__PURE__ */ E("div", { className: "rpf-table-cell__content", children: n ? /* @__PURE__ */ q("button", { className: "rpf-table-cell__sort-header", onClick: r, children: [
|
|
1362
3811
|
t,
|
|
1363
|
-
/* @__PURE__ */
|
|
1364
|
-
] }) : /* @__PURE__ */
|
|
1365
|
-
},
|
|
3812
|
+
/* @__PURE__ */ E(o, { size: 20 })
|
|
3813
|
+
] }) : /* @__PURE__ */ E(Ie, { children: t }) }) });
|
|
3814
|
+
}, Ki = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ E(
|
|
1366
3815
|
"div",
|
|
1367
3816
|
{
|
|
1368
3817
|
"data-testid": "table-container",
|
|
1369
|
-
className:
|
|
1370
|
-
children: /* @__PURE__ */
|
|
3818
|
+
className: ee("rpf-table", { "rpf-table--full-width": r }),
|
|
3819
|
+
children: /* @__PURE__ */ q(
|
|
1371
3820
|
"table",
|
|
1372
3821
|
{
|
|
1373
|
-
className:
|
|
1374
|
-
"rpf-table__table--full-width":
|
|
3822
|
+
className: ee("rpf-table__table", {
|
|
3823
|
+
"rpf-table__table--full-width": r
|
|
1375
3824
|
}),
|
|
1376
3825
|
children: [
|
|
1377
|
-
/* @__PURE__ */
|
|
1378
|
-
/* @__PURE__ */
|
|
3826
|
+
/* @__PURE__ */ E("thead", { children: /* @__PURE__ */ E("tr", { className: "rpf-table-row", children: e }) }),
|
|
3827
|
+
/* @__PURE__ */ E("tbody", { children: t.map((n, o) => /* @__PURE__ */ E("tr", { className: "rpf-table-row", children: n }, o)) })
|
|
1379
3828
|
]
|
|
1380
3829
|
}
|
|
1381
3830
|
)
|
|
1382
3831
|
}
|
|
1383
|
-
),
|
|
3832
|
+
), zi = ({
|
|
1384
3833
|
text: e,
|
|
1385
3834
|
variant: t,
|
|
1386
|
-
secondary:
|
|
3835
|
+
secondary: r,
|
|
1387
3836
|
icon: n,
|
|
1388
|
-
iconPosition:
|
|
3837
|
+
iconPosition: o
|
|
1389
3838
|
}) => {
|
|
1390
|
-
const
|
|
1391
|
-
n && !
|
|
1392
|
-
const
|
|
1393
|
-
return /* @__PURE__ */
|
|
3839
|
+
const i = n ? /* @__PURE__ */ E("span", { className: "rpf-tag__icon material-symbols-sharp", children: n }) : null;
|
|
3840
|
+
n && !o && (o = "left");
|
|
3841
|
+
const s = t && t !== "default" ? `rpf-tag--${t}` : null;
|
|
3842
|
+
return /* @__PURE__ */ q(
|
|
1394
3843
|
"span",
|
|
1395
3844
|
{
|
|
1396
|
-
className:
|
|
1397
|
-
"rpf-tag--secondary":
|
|
3845
|
+
className: ee("rpf-tag", s, {
|
|
3846
|
+
"rpf-tag--secondary": r
|
|
1398
3847
|
}),
|
|
1399
3848
|
children: [
|
|
1400
|
-
|
|
3849
|
+
o === "left" && i,
|
|
1401
3850
|
e,
|
|
1402
|
-
|
|
3851
|
+
o === "right" && i
|
|
1403
3852
|
]
|
|
1404
3853
|
}
|
|
1405
3854
|
);
|
|
1406
3855
|
};
|
|
1407
3856
|
export {
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
gr as
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
3857
|
+
vr as Accordion,
|
|
3858
|
+
Ni as Alert,
|
|
3859
|
+
Re as Button,
|
|
3860
|
+
Ii as CheckboxInput,
|
|
3861
|
+
ki as Fieldset,
|
|
3862
|
+
Dt as InputField,
|
|
3863
|
+
Mi as InputLabel,
|
|
3864
|
+
gr as Menu,
|
|
3865
|
+
Bi as MenuButton,
|
|
3866
|
+
qi as MenuItem,
|
|
3867
|
+
Vi as MenuTitle,
|
|
3868
|
+
Wi as Modal,
|
|
3869
|
+
Yi as ProgressBar,
|
|
3870
|
+
Di as RadioInput,
|
|
3871
|
+
Li as SearchInput,
|
|
3872
|
+
Fi as SelectInput,
|
|
3873
|
+
br as Switch,
|
|
3874
|
+
Ki as Table,
|
|
3875
|
+
Ui as TableBodyCell,
|
|
3876
|
+
Hi as TableHeaderCell,
|
|
3877
|
+
zi as Tag,
|
|
3878
|
+
ji as TextInput,
|
|
3879
|
+
$i as TextareaInput
|
|
1426
3880
|
};
|