@oslokommune/punkt-react 13.0.0 → 13.0.2
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/CHANGELOG.md +38 -0
- package/dist/index.d.ts +5 -1
- package/dist/punkt-react.es.js +666 -661
- package/dist/punkt-react.umd.js +63 -63
- package/package.json +2 -2
- package/src/components/checkbox/Checkbox.tsx +5 -2
- package/src/components/inputwrapper/InputWrapper.tsx +1 -1
- package/src/components/radio/RadioButton.tsx +7 -1
package/dist/punkt-react.es.js
CHANGED
|
@@ -96,14 +96,14 @@ var Xv = {};
|
|
|
96
96
|
var cE;
|
|
97
97
|
function QL() {
|
|
98
98
|
return cE || (cE = 1, process.env.NODE_ENV !== "production" && function() {
|
|
99
|
-
var r = cn, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), D = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"),
|
|
99
|
+
var r = cn, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), D = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), I = Symbol.iterator, J = "@@iterator";
|
|
100
100
|
function V(G) {
|
|
101
101
|
if (G === null || typeof G != "object")
|
|
102
102
|
return null;
|
|
103
|
-
var Fe =
|
|
103
|
+
var Fe = I && G[I] || G[J];
|
|
104
104
|
return typeof Fe == "function" ? Fe : null;
|
|
105
105
|
}
|
|
106
|
-
var
|
|
106
|
+
var we = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
107
107
|
function q(G) {
|
|
108
108
|
{
|
|
109
109
|
for (var Fe = arguments.length, Ze = new Array(Fe > 1 ? Fe - 1 : 0), dt = 1; dt < Fe; dt++)
|
|
@@ -113,7 +113,7 @@ function QL() {
|
|
|
113
113
|
}
|
|
114
114
|
function W(G, Fe, Ze) {
|
|
115
115
|
{
|
|
116
|
-
var dt =
|
|
116
|
+
var dt = we.ReactDebugCurrentFrame, zt = dt.getStackAddendum();
|
|
117
117
|
zt !== "" && (Fe += "%s", Ze = Ze.concat([zt]));
|
|
118
118
|
var Bt = Ze.map(function(Ht) {
|
|
119
119
|
return String(Ht);
|
|
@@ -247,7 +247,7 @@ function QL() {
|
|
|
247
247
|
rt < 0 && q("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
var st =
|
|
250
|
+
var st = we.ReactCurrentDispatcher, mt;
|
|
251
251
|
function gt(G, Fe, Ze) {
|
|
252
252
|
{
|
|
253
253
|
if (mt === void 0)
|
|
@@ -373,7 +373,7 @@ function QL() {
|
|
|
373
373
|
}
|
|
374
374
|
return "";
|
|
375
375
|
}
|
|
376
|
-
var mn = Object.prototype.hasOwnProperty, vr = {}, qi =
|
|
376
|
+
var mn = Object.prototype.hasOwnProperty, vr = {}, qi = we.ReactDebugCurrentFrame;
|
|
377
377
|
function Nr(G) {
|
|
378
378
|
if (G) {
|
|
379
379
|
var Fe = G._owner, Ze = In(G.type, G._source, Fe ? Fe.type : null);
|
|
@@ -424,7 +424,7 @@ function QL() {
|
|
|
424
424
|
if (an(G))
|
|
425
425
|
return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", gn(G)), pe(G);
|
|
426
426
|
}
|
|
427
|
-
var be =
|
|
427
|
+
var be = we.ReactCurrentOwner, $e = {
|
|
428
428
|
key: !0,
|
|
429
429
|
ref: !0,
|
|
430
430
|
__self: !0,
|
|
@@ -518,7 +518,7 @@ function QL() {
|
|
|
518
518
|
return Cr(G, Zt, br, zt, dt, be.current, Ht);
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
-
var ca =
|
|
521
|
+
var ca = we.ReactCurrentOwner, pr = we.ReactDebugCurrentFrame;
|
|
522
522
|
function Mn(G) {
|
|
523
523
|
if (G) {
|
|
524
524
|
var Fe = G._owner, Ze = In(G.type, G._source, Fe ? Fe.type : null);
|
|
@@ -701,12 +701,12 @@ const KL = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
701
701
|
}, yi = ({ react: r, tagName: n, elementClass: i, events: l, displayName: c }) => {
|
|
702
702
|
const h = new Set(Object.keys(l ?? {})), m = r.forwardRef((D, x) => {
|
|
703
703
|
const E = r.useRef(/* @__PURE__ */ new Map()), $ = r.useRef(null), N = {}, R = {};
|
|
704
|
-
for (const [O,
|
|
704
|
+
for (const [O, I] of Object.entries(D)) KL.has(O) ? N[O === "className" ? "class" : O] = I : h.has(O) || O in i.prototype ? R[O] = I : N[O] = I;
|
|
705
705
|
return r.useLayoutEffect(() => {
|
|
706
706
|
if ($.current === null) return;
|
|
707
707
|
const O = /* @__PURE__ */ new Map();
|
|
708
|
-
for (const
|
|
709
|
-
for (const [
|
|
708
|
+
for (const I in R) fE($.current, I, D[I], E.current.get(I), l), E.current.delete(I), O.set(I, D[I]);
|
|
709
|
+
for (const [I, J] of E.current) fE($.current, I, void 0, J, l);
|
|
710
710
|
E.current = O;
|
|
711
711
|
}), r.useLayoutEffect(() => {
|
|
712
712
|
var O;
|
|
@@ -724,7 +724,7 @@ const KL = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
724
724
|
*/
|
|
725
725
|
const dw = globalThis, fw = dw.trustedTypes, pE = fw ? fw.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, oF = "$lit$", bf = `lit$${Math.random().toFixed(9).slice(2)}$`, sF = "?" + bf, ZL = `<${sF}>`, ah = document, gy = () => ah.createComment(""), vy = (r) => r === null || typeof r != "object" && typeof r != "function", HS = Array.isArray, eO = (r) => HS(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", jD = `[
|
|
726
726
|
\f\r]`, Jv = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, hE = /-->/g, mE = />/g, qp = RegExp(`>|${jD}(?:([^\\s"'>=/]+)(${jD}*=${jD}*(?:[^
|
|
727
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), gE = /'/g, vE = /"/g, lF = /^(?:script|style|textarea|title)$/i, tO = (r) => (n, ...i) => ({ _$litType$: r, strings: n, values: i }),
|
|
727
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), gE = /'/g, vE = /"/g, lF = /^(?:script|style|textarea|title)$/i, tO = (r) => (n, ...i) => ({ _$litType$: r, strings: n, values: i }), De = tO(1), Wo = Symbol.for("lit-noChange"), Ge = Symbol.for("lit-nothing"), yE = /* @__PURE__ */ new WeakMap(), eh = ah.createTreeWalker(ah, 129);
|
|
728
728
|
function uF(r, n) {
|
|
729
729
|
if (!HS(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
730
730
|
return pE !== void 0 ? pE.createHTML(n) : n;
|
|
@@ -754,8 +754,8 @@ class yy {
|
|
|
754
754
|
for (; (c = eh.nextNode()) !== null && x.length < D; ) {
|
|
755
755
|
if (c.nodeType === 1) {
|
|
756
756
|
if (c.hasAttributes()) for (const N of c.getAttributeNames()) if (N.endsWith(oF)) {
|
|
757
|
-
const R = $[m++], O = c.getAttribute(N).split(bf),
|
|
758
|
-
x.push({ type: 1, index: h, name:
|
|
757
|
+
const R = $[m++], O = c.getAttribute(N).split(bf), I = /([.?@])?(.*)/.exec(R);
|
|
758
|
+
x.push({ type: 1, index: h, name: I[2], strings: O, ctor: I[1] === "." ? aO : I[1] === "?" ? iO : I[1] === "@" ? oO : Sw }), c.removeAttribute(N);
|
|
759
759
|
} else N.startsWith(bf) && (x.push({ type: 6, index: h }), c.removeAttribute(N));
|
|
760
760
|
if (lF.test(c.tagName)) {
|
|
761
761
|
const N = c.textContent.split(bf), R = N.length - 1;
|
|
@@ -1326,7 +1326,7 @@ function DO() {
|
|
|
1326
1326
|
}, enqueueForceUpdate: function() {
|
|
1327
1327
|
}, enqueueReplaceState: function() {
|
|
1328
1328
|
}, enqueueSetState: function() {
|
|
1329
|
-
} },
|
|
1329
|
+
} }, I = Object.assign, J = {};
|
|
1330
1330
|
function V(Q, le, at) {
|
|
1331
1331
|
this.props = Q, this.context = le, this.refs = J, this.updater = at || O;
|
|
1332
1332
|
}
|
|
@@ -1336,14 +1336,14 @@ function DO() {
|
|
|
1336
1336
|
}, V.prototype.forceUpdate = function(Q) {
|
|
1337
1337
|
this.updater.enqueueForceUpdate(this, Q, "forceUpdate");
|
|
1338
1338
|
};
|
|
1339
|
-
function
|
|
1339
|
+
function we() {
|
|
1340
1340
|
}
|
|
1341
|
-
|
|
1341
|
+
we.prototype = V.prototype;
|
|
1342
1342
|
function q(Q, le, at) {
|
|
1343
1343
|
this.props = Q, this.context = le, this.refs = J, this.updater = at || O;
|
|
1344
1344
|
}
|
|
1345
|
-
var W = q.prototype = new
|
|
1346
|
-
W.constructor = q,
|
|
1345
|
+
var W = q.prototype = new we();
|
|
1346
|
+
W.constructor = q, I(W, V.prototype), W.isPureReactComponent = !0;
|
|
1347
1347
|
var K = Array.isArray, X = Object.prototype.hasOwnProperty, ae = { current: null }, ue = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1348
1348
|
function Ce(Q, le, at) {
|
|
1349
1349
|
var Xe, ft = {}, st = null, mt = null;
|
|
@@ -1443,7 +1443,7 @@ function DO() {
|
|
|
1443
1443
|
return Q;
|
|
1444
1444
|
} }, kn.Component = V, kn.Fragment = i, kn.Profiler = c, kn.PureComponent = q, kn.StrictMode = l, kn.Suspense = x, kn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Ne, kn.act = Se, kn.cloneElement = function(Q, le, at) {
|
|
1445
1445
|
if (Q == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + Q + ".");
|
|
1446
|
-
var Xe =
|
|
1446
|
+
var Xe = I({}, Q.props), ft = Q.key, st = Q.ref, mt = Q._owner;
|
|
1447
1447
|
if (le != null) {
|
|
1448
1448
|
if (le.ref !== void 0 && (st = le.ref, mt = ae.current), le.key !== void 0 && (ft = "" + le.key), Q.type && Q.type.defaultProps) var gt = Q.type.defaultProps;
|
|
1449
1449
|
for (_t in le) X.call(le, _t) && !ue.hasOwnProperty(_t) && (Xe[_t] = le[_t] === void 0 && gt !== void 0 ? gt[_t] : le[_t]);
|
|
@@ -1524,11 +1524,11 @@ function SO() {
|
|
|
1524
1524
|
return TE || (TE = 1, function(r, n) {
|
|
1525
1525
|
process.env.NODE_ENV !== "production" && function() {
|
|
1526
1526
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1527
|
-
var i = "18.3.1", l = Symbol.for("react.element"), c = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), E = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"),
|
|
1527
|
+
var i = "18.3.1", l = Symbol.for("react.element"), c = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), E = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), J = Symbol.for("react.offscreen"), V = Symbol.iterator, we = "@@iterator";
|
|
1528
1528
|
function q(A) {
|
|
1529
1529
|
if (A === null || typeof A != "object")
|
|
1530
1530
|
return null;
|
|
1531
|
-
var Y = V && A[V] || A[
|
|
1531
|
+
var Y = V && A[V] || A[we];
|
|
1532
1532
|
return typeof Y == "function" ? Y : null;
|
|
1533
1533
|
}
|
|
1534
1534
|
var W = {
|
|
@@ -1769,7 +1769,7 @@ function SO() {
|
|
|
1769
1769
|
case O:
|
|
1770
1770
|
var ke = A.displayName || null;
|
|
1771
1771
|
return ke !== null ? ke : yr(A.type) || "Memo";
|
|
1772
|
-
case
|
|
1772
|
+
case I: {
|
|
1773
1773
|
var Ue = A, Tt = Ue._payload, Qe = Ue._init;
|
|
1774
1774
|
try {
|
|
1775
1775
|
return yr(Qe(Tt));
|
|
@@ -2132,7 +2132,7 @@ Your code should look like:
|
|
|
2132
2132
|
_status: ar,
|
|
2133
2133
|
_result: A
|
|
2134
2134
|
}, he = {
|
|
2135
|
-
$$typeof:
|
|
2135
|
+
$$typeof: I,
|
|
2136
2136
|
_payload: Y,
|
|
2137
2137
|
_init: Di
|
|
2138
2138
|
};
|
|
@@ -2189,7 +2189,7 @@ Your code should look like:
|
|
|
2189
2189
|
var G;
|
|
2190
2190
|
G = Symbol.for("react.module.reference");
|
|
2191
2191
|
function Fe(A) {
|
|
2192
|
-
return !!(typeof A == "string" || typeof A == "function" || A === h || A === D || je || A === m || A === N || A === R || Je || A === J || Ve || He || Be || typeof A == "object" && A !== null && (A.$$typeof ===
|
|
2192
|
+
return !!(typeof A == "string" || typeof A == "function" || A === h || A === D || je || A === m || A === N || A === R || Je || A === J || Ve || He || Be || typeof A == "object" && A !== null && (A.$$typeof === I || A.$$typeof === O || A.$$typeof === x || A.$$typeof === E || A.$$typeof === $ || // This needs to include all possible module reference object
|
|
2193
2193
|
// types supported by any Flight configuration anywhere since
|
|
2194
2194
|
// we don't know which Flight build this will end up being used
|
|
2195
2195
|
// with.
|
|
@@ -2469,7 +2469,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
2469
2469
|
return ti(A.render);
|
|
2470
2470
|
case O:
|
|
2471
2471
|
return Xo(A.type, Y, he);
|
|
2472
|
-
case
|
|
2472
|
+
case I: {
|
|
2473
2473
|
var ke = A, Ue = ke._payload, Tt = ke._init;
|
|
2474
2474
|
try {
|
|
2475
2475
|
return Xo(Tt(Ue), Y, he);
|
|
@@ -2836,7 +2836,7 @@ function xO() {
|
|
|
2836
2836
|
return m.now() - D;
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
|
-
var x = [], E = [], $ = 1, N = null, R = 3, O = !1,
|
|
2839
|
+
var x = [], E = [], $ = 1, N = null, R = 3, O = !1, I = !1, J = !1, V = typeof setTimeout == "function" ? setTimeout : null, we = typeof clearTimeout == "function" ? clearTimeout : null, q = typeof setImmediate < "u" ? setImmediate : null;
|
|
2840
2840
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
2841
2841
|
function W(ce) {
|
|
2842
2842
|
for (var Ne = i(E); Ne !== null; ) {
|
|
@@ -2847,14 +2847,14 @@ function xO() {
|
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
2849
|
function K(ce) {
|
|
2850
|
-
if (J = !1, W(ce), !
|
|
2850
|
+
if (J = !1, W(ce), !I) if (i(x) !== null) I = !0, Re(X);
|
|
2851
2851
|
else {
|
|
2852
2852
|
var Ne = i(E);
|
|
2853
2853
|
Ne !== null && Ae(K, Ne.startTime - ce);
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
2856
|
function X(ce, Ne) {
|
|
2857
|
-
|
|
2857
|
+
I = !1, J && (J = !1, we(Ce), Ce = -1), O = !0;
|
|
2858
2858
|
var Se = R;
|
|
2859
2859
|
try {
|
|
2860
2860
|
for (W(Ne), N = i(x); N !== null && (!(N.expirationTime > Ne) || ce && !He()); ) {
|
|
@@ -2915,7 +2915,7 @@ function xO() {
|
|
|
2915
2915
|
r.unstable_IdlePriority = 5, r.unstable_ImmediatePriority = 1, r.unstable_LowPriority = 4, r.unstable_NormalPriority = 3, r.unstable_Profiling = null, r.unstable_UserBlockingPriority = 2, r.unstable_cancelCallback = function(ce) {
|
|
2916
2916
|
ce.callback = null;
|
|
2917
2917
|
}, r.unstable_continueExecution = function() {
|
|
2918
|
-
|
|
2918
|
+
I || O || (I = !0, Re(X));
|
|
2919
2919
|
}, r.unstable_forceFrameRate = function(ce) {
|
|
2920
2920
|
0 > ce || 125 < ce ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : ye = 0 < ce ? Math.floor(1e3 / ce) : 5;
|
|
2921
2921
|
}, r.unstable_getCurrentPriorityLevel = function() {
|
|
@@ -2977,7 +2977,7 @@ function xO() {
|
|
|
2977
2977
|
default:
|
|
2978
2978
|
le = 5e3;
|
|
2979
2979
|
}
|
|
2980
|
-
return le = Se + le, ce = { id: $++, callback: Ne, priorityLevel: ce, startTime: Se, expirationTime: le, sortIndex: -1 }, Se > Q ? (ce.sortIndex = Se, n(E, ce), i(x) === null && ce === i(E) && (J ? (
|
|
2980
|
+
return le = Se + le, ce = { id: $++, callback: Ne, priorityLevel: ce, startTime: Se, expirationTime: le, sortIndex: -1 }, Se > Q ? (ce.sortIndex = Se, n(E, ce), i(x) === null && ce === i(E) && (J ? (we(Ce), Ce = -1) : J = !0, Ae(K, Se - Q))) : (ce.sortIndex = le, n(x, ce), I || O || (I = !0, Re(X))), ce;
|
|
2981
2981
|
}, r.unstable_shouldYield = He, r.unstable_wrapCallback = function(ce) {
|
|
2982
2982
|
var Ne = R;
|
|
2983
2983
|
return function() {
|
|
@@ -3045,16 +3045,16 @@ function CO() {
|
|
|
3045
3045
|
var Ye = Ee.sortIndex - Oe.sortIndex;
|
|
3046
3046
|
return Ye !== 0 ? Ye : Ee.id - Oe.id;
|
|
3047
3047
|
}
|
|
3048
|
-
var E = 1, $ = 2, N = 3, R = 4, O = 5,
|
|
3049
|
-
if (
|
|
3048
|
+
var E = 1, $ = 2, N = 3, R = 4, O = 5, I = typeof performance == "object" && typeof performance.now == "function";
|
|
3049
|
+
if (I) {
|
|
3050
3050
|
var J = performance;
|
|
3051
3051
|
r.unstable_now = function() {
|
|
3052
3052
|
return J.now();
|
|
3053
3053
|
};
|
|
3054
3054
|
} else {
|
|
3055
|
-
var V = Date,
|
|
3055
|
+
var V = Date, we = V.now();
|
|
3056
3056
|
r.unstable_now = function() {
|
|
3057
|
-
return V.now() -
|
|
3057
|
+
return V.now() - we;
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
3060
|
var q = 1073741823, W = -1, K = 250, X = 5e3, ae = 1e4, ue = q, Ce = [], ye = [], Ve = 1, He = null, Be = N, Je = !1, je = !1, rt = !1, Re = typeof setTimeout == "function" ? setTimeout : null, Ae = typeof clearTimeout == "function" ? clearTimeout : null, ce = typeof setImmediate < "u" ? setImmediate : null;
|
|
@@ -3308,7 +3308,7 @@ function _O() {
|
|
|
3308
3308
|
return !1;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function I(a, o, d, v) {
|
|
3312
3312
|
if (o === null || typeof o > "u" || O(a, o, d, v)) return !0;
|
|
3313
3313
|
if (v) return !1;
|
|
3314
3314
|
if (d !== null) switch (d.type) {
|
|
@@ -3347,21 +3347,21 @@ function _O() {
|
|
|
3347
3347
|
}), ["rowSpan", "start"].forEach(function(a) {
|
|
3348
3348
|
V[a] = new J(a, 5, !1, a.toLowerCase(), null, !1, !1);
|
|
3349
3349
|
});
|
|
3350
|
-
var
|
|
3350
|
+
var we = /[\-:]([a-z])/g;
|
|
3351
3351
|
function q(a) {
|
|
3352
3352
|
return a[1].toUpperCase();
|
|
3353
3353
|
}
|
|
3354
3354
|
"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a) {
|
|
3355
3355
|
var o = a.replace(
|
|
3356
|
-
|
|
3356
|
+
we,
|
|
3357
3357
|
q
|
|
3358
3358
|
);
|
|
3359
3359
|
V[o] = new J(o, 1, !1, a, null, !1, !1);
|
|
3360
3360
|
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
|
|
3361
|
-
var o = a.replace(
|
|
3361
|
+
var o = a.replace(we, q);
|
|
3362
3362
|
V[o] = new J(o, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
|
|
3363
3363
|
}), ["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
|
|
3364
|
-
var o = a.replace(
|
|
3364
|
+
var o = a.replace(we, q);
|
|
3365
3365
|
V[o] = new J(o, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
3366
3366
|
}), ["tabIndex", "crossOrigin"].forEach(function(a) {
|
|
3367
3367
|
V[a] = new J(a, 1, !1, a.toLowerCase(), null, !1, !1);
|
|
@@ -3370,7 +3370,7 @@ function _O() {
|
|
|
3370
3370
|
});
|
|
3371
3371
|
function W(a, o, d, v) {
|
|
3372
3372
|
var b = V.hasOwnProperty(o) ? V[o] : null;
|
|
3373
|
-
(b !== null ? b.type !== 0 : v || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (
|
|
3373
|
+
(b !== null ? b.type !== 0 : v || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (I(o, d, b, v) && (d = null), v || b === null ? R(o) && (d === null ? a.removeAttribute(o) : a.setAttribute(o, "" + d)) : b.mustUseProperty ? a[b.propertyName] = d === null ? b.type === 3 ? !1 : "" : d : (o = b.attributeName, v = b.attributeNamespace, d === null ? a.removeAttribute(o) : (b = b.type, d = b === 3 || b === 4 && d === !0 ? "" : "" + d, v ? a.setAttributeNS(v, o, d) : a.setAttribute(o, d))));
|
|
3374
3374
|
}
|
|
3375
3375
|
var K = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, X = Symbol.for("react.element"), ae = Symbol.for("react.portal"), ue = Symbol.for("react.fragment"), Ce = Symbol.for("react.strict_mode"), ye = Symbol.for("react.profiler"), Ve = Symbol.for("react.provider"), He = Symbol.for("react.context"), Be = Symbol.for("react.forward_ref"), Je = Symbol.for("react.suspense"), je = Symbol.for("react.suspense_list"), rt = Symbol.for("react.memo"), Re = Symbol.for("react.lazy"), Ae = Symbol.for("react.offscreen"), ce = Symbol.iterator;
|
|
3376
3376
|
function Ne(a) {
|
|
@@ -8477,7 +8477,7 @@ function EO() {
|
|
|
8477
8477
|
y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
|
|
8478
8478
|
}
|
|
8479
8479
|
}
|
|
8480
|
-
var x = 0, E = 1, $ = 2, N = 3, R = 4, O = 5,
|
|
8480
|
+
var x = 0, E = 1, $ = 2, N = 3, R = 4, O = 5, I = 6, J = 7, V = 8, we = 9, q = 10, W = 11, K = 12, X = 13, ae = 14, ue = 15, Ce = 16, ye = 17, Ve = 18, He = 19, Be = 21, Je = 22, je = 23, rt = 24, Re = 25, Ae = !0, ce = !1, Ne = !1, Se = !1, Q = !1, le = !0, at = !0, Xe = !0, ft = !0, st = /* @__PURE__ */ new Set(), mt = {}, gt = {};
|
|
8481
8481
|
function _t(e, t) {
|
|
8482
8482
|
Kt(e, t), Kt(e + "Capture", t);
|
|
8483
8483
|
}
|
|
@@ -9007,12 +9007,12 @@ function EO() {
|
|
|
9007
9007
|
e[_] = s;
|
|
9008
9008
|
return;
|
|
9009
9009
|
}
|
|
9010
|
-
var B = p.attributeName,
|
|
9010
|
+
var B = p.attributeName, M = p.attributeNamespace;
|
|
9011
9011
|
if (s === null)
|
|
9012
9012
|
e.removeAttribute(B);
|
|
9013
9013
|
else {
|
|
9014
9014
|
var re = p.type, te;
|
|
9015
|
-
re === pe || re === ee && s === !0 ? te = "" : (mn(s, B), te = "" + s, p.sanitizeURL && xs(te.toString())),
|
|
9015
|
+
re === pe || re === ee && s === !0 ? te = "" : (mn(s, B), te = "" + s, p.sanitizeURL && xs(te.toString())), M ? e.setAttributeNS(M, B, te) : e.setAttribute(B, te);
|
|
9016
9016
|
}
|
|
9017
9017
|
}
|
|
9018
9018
|
}
|
|
@@ -9154,18 +9154,18 @@ function EO() {
|
|
|
9154
9154
|
if (ge && u && typeof ge.stack == "string") {
|
|
9155
9155
|
for (var _ = ge.stack.split(`
|
|
9156
9156
|
`), F = u.stack.split(`
|
|
9157
|
-
`), B = _.length - 1,
|
|
9158
|
-
|
|
9159
|
-
for (; B >= 1 &&
|
|
9160
|
-
if (_[B] !== F[
|
|
9161
|
-
if (B !== 1 ||
|
|
9157
|
+
`), B = _.length - 1, M = F.length - 1; B >= 1 && M >= 0 && _[B] !== F[M]; )
|
|
9158
|
+
M--;
|
|
9159
|
+
for (; B >= 1 && M >= 0; B--, M--)
|
|
9160
|
+
if (_[B] !== F[M]) {
|
|
9161
|
+
if (B !== 1 || M !== 1)
|
|
9162
9162
|
do
|
|
9163
|
-
if (B--,
|
|
9163
|
+
if (B--, M--, M < 0 || _[B] !== F[M]) {
|
|
9164
9164
|
var re = `
|
|
9165
9165
|
` + _[B].replace(" at new ", " at ");
|
|
9166
9166
|
return e.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", e.displayName)), typeof e == "function" && Ji.set(e, re), re;
|
|
9167
9167
|
}
|
|
9168
|
-
while (B >= 1 &&
|
|
9168
|
+
while (B >= 1 && M >= 0);
|
|
9169
9169
|
break;
|
|
9170
9170
|
}
|
|
9171
9171
|
}
|
|
@@ -9316,7 +9316,7 @@ Error generating stack: ` + u.message + `
|
|
|
9316
9316
|
switch (t) {
|
|
9317
9317
|
case rt:
|
|
9318
9318
|
return "Cache";
|
|
9319
|
-
case
|
|
9319
|
+
case we:
|
|
9320
9320
|
var u = s;
|
|
9321
9321
|
return wo(u) + ".Consumer";
|
|
9322
9322
|
case q:
|
|
@@ -9334,7 +9334,7 @@ Error generating stack: ` + u.message + `
|
|
|
9334
9334
|
return "Portal";
|
|
9335
9335
|
case N:
|
|
9336
9336
|
return "Root";
|
|
9337
|
-
case
|
|
9337
|
+
case I:
|
|
9338
9338
|
return "Text";
|
|
9339
9339
|
case Ce:
|
|
9340
9340
|
return yn(s);
|
|
@@ -9611,8 +9611,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
9611
9611
|
p[F].selected !== B && (p[F].selected = B), B && u && (p[F].defaultSelected = !0);
|
|
9612
9612
|
}
|
|
9613
9613
|
} else {
|
|
9614
|
-
for (var
|
|
9615
|
-
if (p[te].value ===
|
|
9614
|
+
for (var M = Sa(Si(s)), re = null, te = 0; te < p.length; te++) {
|
|
9615
|
+
if (p[te].value === M) {
|
|
9616
9616
|
p[te].selected = !0, u && (p[te].defaultSelected = !0);
|
|
9617
9617
|
return;
|
|
9618
9618
|
}
|
|
@@ -10606,9 +10606,9 @@ Check the render method of \`` + e + "`." : "";
|
|
|
10606
10606
|
return m("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.", t), Mr[t] = !0, !0;
|
|
10607
10607
|
var F = ca(t), B = F !== null && F.type === sn;
|
|
10608
10608
|
if (kc.hasOwnProperty(p)) {
|
|
10609
|
-
var
|
|
10610
|
-
if (
|
|
10611
|
-
return m("Invalid DOM property `%s`. Did you mean `%s`?", t,
|
|
10609
|
+
var M = kc[p];
|
|
10610
|
+
if (M !== t)
|
|
10611
|
+
return m("Invalid DOM property `%s`. Did you mean `%s`?", t, M), Mr[t] = !0, !0;
|
|
10612
10612
|
} else if (!B && t !== p)
|
|
10613
10613
|
return m("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.", t, p), Mr[t] = !0, !0;
|
|
10614
10614
|
return typeof s == "boolean" && Cr(t, s, F, !1) ? (s ? m('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.', s, t, t, s, t) : m('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.', s, t, t, s, t, t, t), Mr[t] = !0, !0) : B ? !0 : Cr(t, s, F, !1) ? (Mr[t] = !0, !1) : ((s === "false" || s === "true") && F !== null && F.type === pe && (m("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?", s, t, s === "false" ? "The browser will interpret it as a truthy value." : 'Although this works, it will not work as expected if you pass the string "false".', t, s), Mr[t] = !0), !0);
|
|
@@ -10746,8 +10746,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
10746
10746
|
var B = Array.prototype.slice.call(arguments, 3);
|
|
10747
10747
|
try {
|
|
10748
10748
|
t.apply(s, B);
|
|
10749
|
-
} catch (
|
|
10750
|
-
this.onError(
|
|
10749
|
+
} catch (M) {
|
|
10750
|
+
this.onError(M);
|
|
10751
10751
|
}
|
|
10752
10752
|
}
|
|
10753
10753
|
var _o = Cc;
|
|
@@ -10756,13 +10756,13 @@ Check the render method of \`` + e + "`." : "";
|
|
|
10756
10756
|
_o = function(e, t, s, u, p, y, w, _, F) {
|
|
10757
10757
|
if (typeof document > "u" || document === null)
|
|
10758
10758
|
throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
|
|
10759
|
-
var B = document.createEvent("Event"),
|
|
10759
|
+
var B = document.createEvent("Event"), M = !1, re = !0, te = window.event, fe = Object.getOwnPropertyDescriptor(window, "event");
|
|
10760
10760
|
function ge() {
|
|
10761
10761
|
Md.removeEventListener(se, nt, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = te);
|
|
10762
10762
|
}
|
|
10763
10763
|
var _e = Array.prototype.slice.call(arguments, 3);
|
|
10764
10764
|
function nt() {
|
|
10765
|
-
|
|
10765
|
+
M = !0, ge(), t.apply(s, _e), re = !1;
|
|
10766
10766
|
}
|
|
10767
10767
|
var Dt, Pt = !1, fn = !1;
|
|
10768
10768
|
function ln(xe) {
|
|
@@ -10773,7 +10773,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
10773
10773
|
}
|
|
10774
10774
|
}
|
|
10775
10775
|
var se = "react-" + (e || "invokeguardedcallback");
|
|
10776
|
-
if (window.addEventListener("error", ln), Md.addEventListener(se, nt, !1), B.initEvent(se, !1, !1), Md.dispatchEvent(B), fe && Object.defineProperty(window, "event", fe),
|
|
10776
|
+
if (window.addEventListener("error", ln), Md.addEventListener(se, nt, !1), B.initEvent(se, !1, !1), Md.dispatchEvent(B), fe && Object.defineProperty(window, "event", fe), M && re && (Pt ? fn && (Dt = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Dt = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Dt)), window.removeEventListener("error", ln), !M)
|
|
10777
10777
|
return ge(), Cc.apply(this, arguments);
|
|
10778
10778
|
};
|
|
10779
10779
|
}
|
|
@@ -10976,28 +10976,28 @@ Check the render method of \`` + e + "`." : "";
|
|
|
10976
10976
|
if (u.return !== p.return)
|
|
10977
10977
|
u = y, p = w;
|
|
10978
10978
|
else {
|
|
10979
|
-
for (var B = !1,
|
|
10980
|
-
if (
|
|
10979
|
+
for (var B = !1, M = y.child; M; ) {
|
|
10980
|
+
if (M === u) {
|
|
10981
10981
|
B = !0, u = y, p = w;
|
|
10982
10982
|
break;
|
|
10983
10983
|
}
|
|
10984
|
-
if (
|
|
10984
|
+
if (M === p) {
|
|
10985
10985
|
B = !0, p = y, u = w;
|
|
10986
10986
|
break;
|
|
10987
10987
|
}
|
|
10988
|
-
|
|
10988
|
+
M = M.sibling;
|
|
10989
10989
|
}
|
|
10990
10990
|
if (!B) {
|
|
10991
|
-
for (
|
|
10992
|
-
if (
|
|
10991
|
+
for (M = w.child; M; ) {
|
|
10992
|
+
if (M === u) {
|
|
10993
10993
|
B = !0, u = w, p = y;
|
|
10994
10994
|
break;
|
|
10995
10995
|
}
|
|
10996
|
-
if (
|
|
10996
|
+
if (M === p) {
|
|
10997
10997
|
B = !0, p = w, u = y;
|
|
10998
10998
|
break;
|
|
10999
10999
|
}
|
|
11000
|
-
|
|
11000
|
+
M = M.sibling;
|
|
11001
11001
|
}
|
|
11002
11002
|
if (!B)
|
|
11003
11003
|
throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
|
|
@@ -11015,7 +11015,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11015
11015
|
return t !== null ? Sn(t) : null;
|
|
11016
11016
|
}
|
|
11017
11017
|
function Sn(e) {
|
|
11018
|
-
if (e.tag === O || e.tag ===
|
|
11018
|
+
if (e.tag === O || e.tag === I)
|
|
11019
11019
|
return e;
|
|
11020
11020
|
for (var t = e.child; t !== null; ) {
|
|
11021
11021
|
var s = Sn(t);
|
|
@@ -11030,7 +11030,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11030
11030
|
return t !== null ? Ni(t) : null;
|
|
11031
11031
|
}
|
|
11032
11032
|
function Ni(e) {
|
|
11033
|
-
if (e.tag === O || e.tag ===
|
|
11033
|
+
if (e.tag === O || e.tag === I)
|
|
11034
11034
|
return e;
|
|
11035
11035
|
for (var t = e.child; t !== null; ) {
|
|
11036
11036
|
if (t.tag !== R) {
|
|
@@ -11435,14 +11435,14 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11435
11435
|
if (t !== T && t !== u && // If we already suspended with a delay, then interrupting is fine. Don't
|
|
11436
11436
|
// bother waiting until the root is complete.
|
|
11437
11437
|
(t & p) === T) {
|
|
11438
|
-
var
|
|
11438
|
+
var M = Ou(u), re = Ou(t);
|
|
11439
11439
|
if (
|
|
11440
11440
|
// Tests whether the next lane is equal or lower priority than the wip
|
|
11441
11441
|
// one. This works because the bits decrease in priority as you go left.
|
|
11442
|
-
|
|
11442
|
+
M >= re || // Default priority updates should not interrupt transition updates. The
|
|
11443
11443
|
// only difference between default updates and transition updates is that
|
|
11444
11444
|
// default updates do not support refresh transitions.
|
|
11445
|
-
|
|
11445
|
+
M === qe && (re & Jt) !== T
|
|
11446
11446
|
)
|
|
11447
11447
|
return t;
|
|
11448
11448
|
}
|
|
@@ -11834,8 +11834,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11834
11834
|
return Vc.set(B, Yd(Vc.get(B) || null, e, t, s, u, F)), !0;
|
|
11835
11835
|
}
|
|
11836
11836
|
case "gotpointercapture": {
|
|
11837
|
-
var
|
|
11838
|
-
return Hr.set(re, Yd(Hr.get(re) || null, e, t, s, u,
|
|
11837
|
+
var M = p, re = M.pointerId;
|
|
11838
|
+
return Hr.set(re, Yd(Hr.get(re) || null, e, t, s, u, M)), !0;
|
|
11839
11839
|
}
|
|
11840
11840
|
}
|
|
11841
11841
|
return !1;
|
|
@@ -12630,9 +12630,9 @@ Check the render method of \`` + e + "`." : "";
|
|
|
12630
12630
|
function kt(e, t, s, u, p, y, w) {
|
|
12631
12631
|
var _ = s ? dm(s) : window, F, B;
|
|
12632
12632
|
if (a(_) ? F = b : mb(_) ? S ? F = lt : (F = Le, B = me) : Ie(_) && (F = Pe), F) {
|
|
12633
|
-
var
|
|
12634
|
-
if (
|
|
12635
|
-
Qd(e,
|
|
12633
|
+
var M = F(t, s);
|
|
12634
|
+
if (M) {
|
|
12635
|
+
Qd(e, M, u, p);
|
|
12636
12636
|
return;
|
|
12637
12637
|
}
|
|
12638
12638
|
}
|
|
@@ -12649,26 +12649,26 @@ Check the render method of \`` + e + "`." : "";
|
|
|
12649
12649
|
return;
|
|
12650
12650
|
}
|
|
12651
12651
|
if (!(!F && !_)) {
|
|
12652
|
-
var
|
|
12652
|
+
var M;
|
|
12653
12653
|
if (p.window === p)
|
|
12654
|
-
|
|
12654
|
+
M = p;
|
|
12655
12655
|
else {
|
|
12656
12656
|
var re = p.ownerDocument;
|
|
12657
|
-
re ?
|
|
12657
|
+
re ? M = re.defaultView || re.parentWindow : M = window;
|
|
12658
12658
|
}
|
|
12659
12659
|
var te, fe;
|
|
12660
12660
|
if (F) {
|
|
12661
12661
|
var ge = u.relatedTarget || u.toElement;
|
|
12662
12662
|
if (te = s, fe = ge ? Fp(ge) : null, fe !== null) {
|
|
12663
12663
|
var _e = oi(fe);
|
|
12664
|
-
(fe !== _e || fe.tag !== O && fe.tag !==
|
|
12664
|
+
(fe !== _e || fe.tag !== O && fe.tag !== I) && (fe = null);
|
|
12665
12665
|
}
|
|
12666
12666
|
} else
|
|
12667
12667
|
te = null, fe = s;
|
|
12668
12668
|
if (te !== fe) {
|
|
12669
12669
|
var nt = Ul, Dt = "onMouseLeave", Pt = "onMouseEnter", fn = "mouse";
|
|
12670
12670
|
(t === "pointerout" || t === "pointerover") && (nt = ob, Dt = "onPointerLeave", Pt = "onPointerEnter", fn = "pointer");
|
|
12671
|
-
var ln = te == null ?
|
|
12671
|
+
var ln = te == null ? M : dm(te), se = fe == null ? M : dm(fe), xe = new nt(Dt, fn + "leave", te, u, p);
|
|
12672
12672
|
xe.target = ln, xe.relatedTarget = se;
|
|
12673
12673
|
var de = null, ze = Fp(p);
|
|
12674
12674
|
if (ze === s) {
|
|
@@ -12736,18 +12736,18 @@ Check the render method of \`` + e + "`." : "";
|
|
|
12736
12736
|
return va(e, p, y, w, _);
|
|
12737
12737
|
}
|
|
12738
12738
|
function va(e, t, s, u, p) {
|
|
12739
|
-
var y = 0, w = -1, _ = -1, F = 0, B = 0,
|
|
12739
|
+
var y = 0, w = -1, _ = -1, F = 0, B = 0, M = e, re = null;
|
|
12740
12740
|
e: for (; ; ) {
|
|
12741
|
-
for (var te = null;
|
|
12742
|
-
re =
|
|
12741
|
+
for (var te = null; M === t && (s === 0 || M.nodeType === xo) && (w = y + s), M === u && (p === 0 || M.nodeType === xo) && (_ = y + p), M.nodeType === xo && (y += M.nodeValue.length), (te = M.firstChild) !== null; )
|
|
12742
|
+
re = M, M = te;
|
|
12743
12743
|
for (; ; ) {
|
|
12744
|
-
if (
|
|
12744
|
+
if (M === e)
|
|
12745
12745
|
break e;
|
|
12746
|
-
if (re === t && ++F === s && (w = y), re === u && ++B === p && (_ = y), (te =
|
|
12746
|
+
if (re === t && ++F === s && (w = y), re === u && ++B === p && (_ = y), (te = M.nextSibling) !== null)
|
|
12747
12747
|
break;
|
|
12748
|
-
|
|
12748
|
+
M = re, re = M.parentNode;
|
|
12749
12749
|
}
|
|
12750
|
-
|
|
12750
|
+
M = te;
|
|
12751
12751
|
}
|
|
12752
12752
|
return w === -1 || _ === -1 ? null : {
|
|
12753
12753
|
start: w,
|
|
@@ -12762,12 +12762,12 @@ Check the render method of \`` + e + "`." : "";
|
|
|
12762
12762
|
var F = _;
|
|
12763
12763
|
_ = w, w = F;
|
|
12764
12764
|
}
|
|
12765
|
-
var B = Nt(e, w),
|
|
12766
|
-
if (B &&
|
|
12767
|
-
if (p.rangeCount === 1 && p.anchorNode === B.node && p.anchorOffset === B.offset && p.focusNode ===
|
|
12765
|
+
var B = Nt(e, w), M = Nt(e, _);
|
|
12766
|
+
if (B && M) {
|
|
12767
|
+
if (p.rangeCount === 1 && p.anchorNode === B.node && p.anchorOffset === B.offset && p.focusNode === M.node && p.focusOffset === M.offset)
|
|
12768
12768
|
return;
|
|
12769
12769
|
var re = s.createRange();
|
|
12770
|
-
re.setStart(B.node, B.offset), p.removeAllRanges(), w > _ ? (p.addRange(re), p.extend(
|
|
12770
|
+
re.setStart(B.node, B.offset), p.removeAllRanges(), w > _ ? (p.addRange(re), p.extend(M.node, M.offset)) : (re.setEnd(M.node, M.offset), p.addRange(re));
|
|
12771
12771
|
}
|
|
12772
12772
|
}
|
|
12773
12773
|
}
|
|
@@ -13017,13 +13017,13 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13017
13017
|
F = ob;
|
|
13018
13018
|
break;
|
|
13019
13019
|
}
|
|
13020
|
-
var
|
|
13020
|
+
var M = (y & _i) !== 0;
|
|
13021
13021
|
{
|
|
13022
|
-
var re = !
|
|
13022
|
+
var re = !M && // TODO: ideally, we'd eventually add all events from
|
|
13023
13023
|
// nonDelegatedEvents list in DOMPluginEventSystem.
|
|
13024
13024
|
// Then we can remove this special list.
|
|
13025
13025
|
// This is a breaking change that can wait until React 18.
|
|
13026
|
-
t === "scroll", te = w$(s, _, u.type,
|
|
13026
|
+
t === "scroll", te = w$(s, _, u.type, M, re);
|
|
13027
13027
|
if (te.length > 0) {
|
|
13028
13028
|
var fe = new F(_, B, null, u, p);
|
|
13029
13029
|
e.push({
|
|
@@ -13056,7 +13056,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13056
13056
|
}
|
|
13057
13057
|
else
|
|
13058
13058
|
for (var B = 0; B < t.length; B++) {
|
|
13059
|
-
var
|
|
13059
|
+
var M = t[B], re = M.instance, te = M.currentTarget, fe = M.listener;
|
|
13060
13060
|
if (re !== u && e.isPropagationStopped())
|
|
13061
13061
|
return;
|
|
13062
13062
|
Ix(e, fe, te), u = re;
|
|
@@ -13115,21 +13115,21 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13115
13115
|
if (Ux(B, w))
|
|
13116
13116
|
break;
|
|
13117
13117
|
if (F === R)
|
|
13118
|
-
for (var
|
|
13119
|
-
var re =
|
|
13118
|
+
for (var M = _.return; M !== null; ) {
|
|
13119
|
+
var re = M.tag;
|
|
13120
13120
|
if (re === N || re === R) {
|
|
13121
|
-
var te =
|
|
13121
|
+
var te = M.stateNode.containerInfo;
|
|
13122
13122
|
if (Ux(te, w))
|
|
13123
13123
|
return;
|
|
13124
13124
|
}
|
|
13125
|
-
|
|
13125
|
+
M = M.return;
|
|
13126
13126
|
}
|
|
13127
13127
|
for (; B !== null; ) {
|
|
13128
13128
|
var fe = Fp(B);
|
|
13129
13129
|
if (fe === null)
|
|
13130
13130
|
return;
|
|
13131
13131
|
var ge = fe.tag;
|
|
13132
|
-
if (ge === O || ge ===
|
|
13132
|
+
if (ge === O || ge === I) {
|
|
13133
13133
|
_ = y = fe;
|
|
13134
13134
|
continue e;
|
|
13135
13135
|
}
|
|
@@ -13152,11 +13152,11 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13152
13152
|
};
|
|
13153
13153
|
}
|
|
13154
13154
|
function w$(e, t, s, u, p, y) {
|
|
13155
|
-
for (var w = t !== null ? t + "Capture" : null, _ = u ? w : t, F = [], B = e,
|
|
13155
|
+
for (var w = t !== null ? t + "Capture" : null, _ = u ? w : t, F = [], B = e, M = null; B !== null; ) {
|
|
13156
13156
|
var re = B, te = re.stateNode, fe = re.tag;
|
|
13157
|
-
if (fe === O && te !== null && (
|
|
13157
|
+
if (fe === O && te !== null && (M = te, _ !== null)) {
|
|
13158
13158
|
var ge = rs(B, _);
|
|
13159
|
-
ge != null && F.push(Zg(B, ge,
|
|
13159
|
+
ge != null && F.push(Zg(B, ge, M));
|
|
13160
13160
|
}
|
|
13161
13161
|
if (p)
|
|
13162
13162
|
break;
|
|
@@ -13170,8 +13170,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13170
13170
|
if (_ === O && w !== null) {
|
|
13171
13171
|
var F = w, B = rs(p, s);
|
|
13172
13172
|
B != null && u.unshift(Zg(p, B, F));
|
|
13173
|
-
var
|
|
13174
|
-
|
|
13173
|
+
var M = rs(p, t);
|
|
13174
|
+
M != null && u.push(Zg(p, M, F));
|
|
13175
13175
|
}
|
|
13176
13176
|
p = p.return;
|
|
13177
13177
|
}
|
|
@@ -13203,11 +13203,11 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13203
13203
|
}
|
|
13204
13204
|
function Hx(e, t, s, u, p) {
|
|
13205
13205
|
for (var y = t._reactName, w = [], _ = s; _ !== null && _ !== u; ) {
|
|
13206
|
-
var F = _, B = F.alternate,
|
|
13206
|
+
var F = _, B = F.alternate, M = F.stateNode, re = F.tag;
|
|
13207
13207
|
if (B !== null && B === u)
|
|
13208
13208
|
break;
|
|
13209
|
-
if (re === O &&
|
|
13210
|
-
var te =
|
|
13209
|
+
if (re === O && M !== null) {
|
|
13210
|
+
var te = M;
|
|
13211
13211
|
if (p) {
|
|
13212
13212
|
var fe = rs(_, y);
|
|
13213
13213
|
fe != null && w.unshift(Zg(_, fe, te));
|
|
@@ -13320,8 +13320,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13320
13320
|
is: t.is
|
|
13321
13321
|
});
|
|
13322
13322
|
else if (w = y.createElement(e), e === "select") {
|
|
13323
|
-
var
|
|
13324
|
-
t.multiple ?
|
|
13323
|
+
var M = w;
|
|
13324
|
+
t.multiple ? M.multiple = !0 : t.size && (M.size = t.size);
|
|
13325
13325
|
}
|
|
13326
13326
|
} else
|
|
13327
13327
|
w = y.createElementNS(_, e);
|
|
@@ -13411,13 +13411,13 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13411
13411
|
break;
|
|
13412
13412
|
}
|
|
13413
13413
|
Ad(t, _);
|
|
13414
|
-
var F, B,
|
|
13414
|
+
var F, B, M = null;
|
|
13415
13415
|
for (F in w)
|
|
13416
13416
|
if (!(_.hasOwnProperty(F) || !w.hasOwnProperty(F) || w[F] == null))
|
|
13417
13417
|
if (F === Tp) {
|
|
13418
13418
|
var re = w[F];
|
|
13419
13419
|
for (B in re)
|
|
13420
|
-
re.hasOwnProperty(B) && (
|
|
13420
|
+
re.hasOwnProperty(B) && (M || (M = {}), M[B] = "");
|
|
13421
13421
|
} else F === ev || F === Ep || F === wb || F === Zd || F === Wx || (mt.hasOwnProperty(F) ? y || (y = []) : (y = y || []).push(F, null));
|
|
13422
13422
|
for (F in _) {
|
|
13423
13423
|
var te = _[F], fe = w != null ? w[F] : void 0;
|
|
@@ -13425,17 +13425,17 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13425
13425
|
if (F === Tp)
|
|
13426
13426
|
if (te && Object.freeze(te), fe) {
|
|
13427
13427
|
for (B in fe)
|
|
13428
|
-
fe.hasOwnProperty(B) && (!te || !te.hasOwnProperty(B)) && (
|
|
13428
|
+
fe.hasOwnProperty(B) && (!te || !te.hasOwnProperty(B)) && (M || (M = {}), M[B] = "");
|
|
13429
13429
|
for (B in te)
|
|
13430
|
-
te.hasOwnProperty(B) && fe[B] !== te[B] && (
|
|
13430
|
+
te.hasOwnProperty(B) && fe[B] !== te[B] && (M || (M = {}), M[B] = te[B]);
|
|
13431
13431
|
} else
|
|
13432
|
-
|
|
13432
|
+
M || (y || (y = []), y.push(F, M)), M = te;
|
|
13433
13433
|
else if (F === ev) {
|
|
13434
13434
|
var ge = te ? te[Db] : void 0, _e = fe ? fe[Db] : void 0;
|
|
13435
13435
|
ge != null && _e !== ge && (y = y || []).push(F, ge);
|
|
13436
13436
|
} else F === Ep ? (typeof te == "string" || typeof te == "number") && (y = y || []).push(F, "" + te) : F === wb || F === Zd || (mt.hasOwnProperty(F) ? (te != null && (typeof te != "function" && xb(F, te), F === "onScroll" && Ar("scroll", e)), !y && fe !== te && (y = [])) : (y = y || []).push(F, te));
|
|
13437
13437
|
}
|
|
13438
|
-
return
|
|
13438
|
+
return M && (_h(M, _[Tp]), (y = y || []).push(Tp, M)), y;
|
|
13439
13439
|
}
|
|
13440
13440
|
function R$(e, t, s, u, p) {
|
|
13441
13441
|
s === "input" && p.type === "radio" && p.name != null && A(e, p);
|
|
@@ -13501,8 +13501,8 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13501
13501
|
Ad(t, s);
|
|
13502
13502
|
{
|
|
13503
13503
|
F = /* @__PURE__ */ new Set();
|
|
13504
|
-
for (var
|
|
13505
|
-
var te =
|
|
13504
|
+
for (var M = e.attributes, re = 0; re < M.length; re++) {
|
|
13505
|
+
var te = M[re].name.toLowerCase();
|
|
13506
13506
|
switch (te) {
|
|
13507
13507
|
case "value":
|
|
13508
13508
|
break;
|
|
@@ -13511,7 +13511,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13511
13511
|
case "selected":
|
|
13512
13512
|
break;
|
|
13513
13513
|
default:
|
|
13514
|
-
F.add(
|
|
13514
|
+
F.add(M[re].name);
|
|
13515
13515
|
}
|
|
13516
13516
|
}
|
|
13517
13517
|
}
|
|
@@ -13778,12 +13778,12 @@ Check the render method of \`` + e + "`." : "";
|
|
|
13778
13778
|
var F = _.tag, B = !!y + "|" + e + "|" + F;
|
|
13779
13779
|
if (!Qx[B]) {
|
|
13780
13780
|
Qx[B] = !0;
|
|
13781
|
-
var
|
|
13782
|
-
if (e === "#text" ? /\S/.test(t) ?
|
|
13781
|
+
var M = e, re = "";
|
|
13782
|
+
if (e === "#text" ? /\S/.test(t) ? M = "Text nodes" : (M = "Whitespace text nodes", re = " Make sure you don't have any extra whitespace between tags on each line of your source code.") : M = "<" + e + ">", y) {
|
|
13783
13783
|
var te = "";
|
|
13784
|
-
F === "table" && e === "tr" && (te += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), m("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",
|
|
13784
|
+
F === "table" && e === "tr" && (te += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), m("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s", M, F, re, te);
|
|
13785
13785
|
} else
|
|
13786
|
-
m("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",
|
|
13786
|
+
m("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.", M, F);
|
|
13787
13787
|
}
|
|
13788
13788
|
}
|
|
13789
13789
|
};
|
|
@@ -14172,10 +14172,10 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14172
14172
|
}
|
|
14173
14173
|
function ef(e) {
|
|
14174
14174
|
var t = e[cm] || e[sv];
|
|
14175
|
-
return t && (t.tag === O || t.tag ===
|
|
14175
|
+
return t && (t.tag === O || t.tag === I || t.tag === X || t.tag === N) ? t : null;
|
|
14176
14176
|
}
|
|
14177
14177
|
function dm(e) {
|
|
14178
|
-
if (e.tag === O || e.tag ===
|
|
14178
|
+
if (e.tag === O || e.tag === I)
|
|
14179
14179
|
return e.stateNode;
|
|
14180
14180
|
throw new Error("getNodeFromInstance: Invalid argument.");
|
|
14181
14181
|
}
|
|
@@ -14397,7 +14397,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14397
14397
|
Np(), Xs[Js++] = td, Xs[Js++] = nd, Xs[Js++] = Ap, Ap = e;
|
|
14398
14398
|
var u = td, p = nd, y = Ub(u) - 1, w = u & ~(1 << y), _ = s + 1, F = Ub(t) + y;
|
|
14399
14399
|
if (F > 30) {
|
|
14400
|
-
var B = y - y % 5,
|
|
14400
|
+
var B = y - y % 5, M = (1 << B) - 1, re = (w & M).toString(32), te = w >> B, fe = y - B, ge = Ub(t) + fe, _e = _ << fe, nt = _e | te, Dt = re + p;
|
|
14401
14401
|
td = 1 << ge | nt, nd = Dt;
|
|
14402
14402
|
} else {
|
|
14403
14403
|
var Pt = _ << y, fn = Pt | w, ln = p;
|
|
@@ -14497,7 +14497,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14497
14497
|
var u = t.type;
|
|
14498
14498
|
t.pendingProps, IN(s, u);
|
|
14499
14499
|
break;
|
|
14500
|
-
case
|
|
14500
|
+
case I:
|
|
14501
14501
|
var p = t.pendingProps;
|
|
14502
14502
|
MN(s, p);
|
|
14503
14503
|
break;
|
|
@@ -14508,7 +14508,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14508
14508
|
var y = e.type, w = e.memoizedProps, _ = e.stateNode;
|
|
14509
14509
|
switch (t.tag) {
|
|
14510
14510
|
case O: {
|
|
14511
|
-
var F = t.type, B = t.pendingProps,
|
|
14511
|
+
var F = t.type, B = t.pendingProps, M = (e.mode & tn) !== xt;
|
|
14512
14512
|
HN(
|
|
14513
14513
|
y,
|
|
14514
14514
|
w,
|
|
@@ -14516,11 +14516,11 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14516
14516
|
F,
|
|
14517
14517
|
B,
|
|
14518
14518
|
// TODO: Delete this argument when we remove the legacy root API.
|
|
14519
|
-
|
|
14519
|
+
M
|
|
14520
14520
|
);
|
|
14521
14521
|
break;
|
|
14522
14522
|
}
|
|
14523
|
-
case
|
|
14523
|
+
case I: {
|
|
14524
14524
|
var re = t.pendingProps, te = (e.mode & tn) !== xt;
|
|
14525
14525
|
WN(
|
|
14526
14526
|
y,
|
|
@@ -14542,7 +14542,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14542
14542
|
var _e = t.type;
|
|
14543
14543
|
t.pendingProps, zN(ge, _e);
|
|
14544
14544
|
break;
|
|
14545
|
-
case
|
|
14545
|
+
case I:
|
|
14546
14546
|
var nt = t.pendingProps;
|
|
14547
14547
|
UN(ge, nt);
|
|
14548
14548
|
break;
|
|
@@ -14565,7 +14565,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14565
14565
|
var u = bN(t, s);
|
|
14566
14566
|
return u !== null ? (e.stateNode = u, si = e, Qs = xN(u), !0) : !1;
|
|
14567
14567
|
}
|
|
14568
|
-
case
|
|
14568
|
+
case I: {
|
|
14569
14569
|
var p = e.pendingProps, y = kN(t, p);
|
|
14570
14570
|
return y !== null ? (e.stateNode = y, si = e, Qs = null, !0) : !1;
|
|
14571
14571
|
}
|
|
@@ -14634,7 +14634,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14634
14634
|
break;
|
|
14635
14635
|
}
|
|
14636
14636
|
case O: {
|
|
14637
|
-
var _ = p.type, F = p.memoizedProps, B = p.stateNode,
|
|
14637
|
+
var _ = p.type, F = p.memoizedProps, B = p.stateNode, M = (p.mode & tn) !== xt;
|
|
14638
14638
|
LN(
|
|
14639
14639
|
_,
|
|
14640
14640
|
F,
|
|
@@ -14642,7 +14642,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14642
14642
|
t,
|
|
14643
14643
|
s,
|
|
14644
14644
|
// TODO: Delete this argument when we remove the legacy root API.
|
|
14645
|
-
|
|
14645
|
+
M
|
|
14646
14646
|
);
|
|
14647
14647
|
break;
|
|
14648
14648
|
}
|
|
@@ -14791,14 +14791,14 @@ Please update the following components: %s`, F);
|
|
|
14791
14791
|
Please update the following components: %s`, B);
|
|
14792
14792
|
}
|
|
14793
14793
|
if (s.size > 0) {
|
|
14794
|
-
var
|
|
14794
|
+
var M = Rp(s);
|
|
14795
14795
|
h(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
14796
14796
|
|
|
14797
14797
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
14798
14798
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
14799
14799
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
14800
14800
|
|
|
14801
|
-
Please update the following components: %s`,
|
|
14801
|
+
Please update the following components: %s`, M);
|
|
14802
14802
|
}
|
|
14803
14803
|
if (p.size > 0) {
|
|
14804
14804
|
var re = Rp(p);
|
|
@@ -14888,11 +14888,11 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
14888
14888
|
var B = "" + u;
|
|
14889
14889
|
if (t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === B)
|
|
14890
14890
|
return t.ref;
|
|
14891
|
-
var
|
|
14891
|
+
var M = function(re) {
|
|
14892
14892
|
var te = F.refs;
|
|
14893
14893
|
re === null ? delete te[B] : te[B] = re;
|
|
14894
14894
|
};
|
|
14895
|
-
return
|
|
14895
|
+
return M._stringRef = B, M;
|
|
14896
14896
|
} else {
|
|
14897
14897
|
if (typeof u != "string")
|
|
14898
14898
|
throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");
|
|
@@ -14959,7 +14959,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
14959
14959
|
return e && se.alternate === null && (se.flags |= Er), se;
|
|
14960
14960
|
}
|
|
14961
14961
|
function _(se, xe, de, ze) {
|
|
14962
|
-
if (xe === null || xe.tag !==
|
|
14962
|
+
if (xe === null || xe.tag !== I) {
|
|
14963
14963
|
var ct = TD(de, se.mode, ze);
|
|
14964
14964
|
return ct.return = se, ct;
|
|
14965
14965
|
} else {
|
|
@@ -14970,7 +14970,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
14970
14970
|
function F(se, xe, de, ze) {
|
|
14971
14971
|
var ct = de.type;
|
|
14972
14972
|
if (ct === vo)
|
|
14973
|
-
return
|
|
14973
|
+
return M(se, xe, de.props.children, ze, de.key);
|
|
14974
14974
|
if (xe !== null && (xe.elementType === ct || // Keep this check inline so it only runs on the false path:
|
|
14975
14975
|
T_(xe, de) || // Lazy types should reconcile their resolved type.
|
|
14976
14976
|
// We need to do this after the Hot Reloading check above,
|
|
@@ -14992,7 +14992,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
14992
14992
|
return ot.return = se, ot;
|
|
14993
14993
|
}
|
|
14994
14994
|
}
|
|
14995
|
-
function
|
|
14995
|
+
function M(se, xe, de, ze, ct) {
|
|
14996
14996
|
if (xe === null || xe.tag !== J) {
|
|
14997
14997
|
var ot = gf(de, se.mode, ze, ct);
|
|
14998
14998
|
return ot.return = se, ot;
|
|
@@ -15045,7 +15045,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15045
15045
|
}
|
|
15046
15046
|
}
|
|
15047
15047
|
if (Wt(de) || Et(de))
|
|
15048
|
-
return ct !== null ? null :
|
|
15048
|
+
return ct !== null ? null : M(se, xe, de, ze, null);
|
|
15049
15049
|
qb(se, de);
|
|
15050
15050
|
}
|
|
15051
15051
|
return typeof de == "function" && Vb(se), null;
|
|
@@ -15071,7 +15071,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15071
15071
|
}
|
|
15072
15072
|
if (Wt(ze) || Et(ze)) {
|
|
15073
15073
|
var sa = se.get(de) || null;
|
|
15074
|
-
return
|
|
15074
|
+
return M(xe, sa, ze, ct, null);
|
|
15075
15075
|
}
|
|
15076
15076
|
qb(xe, ze);
|
|
15077
15077
|
}
|
|
@@ -15207,7 +15207,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15207
15207
|
return sa;
|
|
15208
15208
|
}
|
|
15209
15209
|
function Dt(se, xe, de, ze) {
|
|
15210
|
-
if (xe !== null && xe.tag ===
|
|
15210
|
+
if (xe !== null && xe.tag === I) {
|
|
15211
15211
|
s(se, xe.sibling);
|
|
15212
15212
|
var ct = p(xe, de);
|
|
15213
15213
|
return ct.return = se, ct;
|
|
@@ -15349,8 +15349,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15349
15349
|
F.tag = Qb;
|
|
15350
15350
|
var B = u.updateQueue;
|
|
15351
15351
|
if (B !== null) {
|
|
15352
|
-
var
|
|
15353
|
-
re === null ? F.next = F : (F.next = re.next, re.next = F),
|
|
15352
|
+
var M = B.shared, re = M.pending;
|
|
15353
|
+
re === null ? F.next = F : (F.next = re.next, re.next = F), M.pending = F;
|
|
15354
15354
|
}
|
|
15355
15355
|
}
|
|
15356
15356
|
u.lanes = Qt(u.lanes, s);
|
|
@@ -15562,8 +15562,8 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15562
15562
|
return;
|
|
15563
15563
|
}
|
|
15564
15564
|
}
|
|
15565
|
-
var
|
|
15566
|
-
|
|
15565
|
+
var M = s.lastBaseUpdate;
|
|
15566
|
+
M === null ? s.firstBaseUpdate = t : M.next = t, s.lastBaseUpdate = t;
|
|
15567
15567
|
}
|
|
15568
15568
|
function EP(e, t, s, u, p, y) {
|
|
15569
15569
|
switch (s.tag) {
|
|
@@ -15621,9 +15621,9 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15621
15621
|
p.shared.pending = null;
|
|
15622
15622
|
var F = _, B = F.next;
|
|
15623
15623
|
F.next = null, w === null ? y = B : w.next = B, w = F;
|
|
15624
|
-
var
|
|
15625
|
-
if (
|
|
15626
|
-
var re =
|
|
15624
|
+
var M = e.alternate;
|
|
15625
|
+
if (M !== null) {
|
|
15626
|
+
var re = M.updateQueue, te = re.lastBaseUpdate;
|
|
15627
15627
|
te !== w && (te === null ? re.firstBaseUpdate = B : te.next = B, re.lastBaseUpdate = F);
|
|
15628
15628
|
}
|
|
15629
15629
|
}
|
|
@@ -15984,7 +15984,7 @@ Incoming: %s`, Te, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
15984
15984
|
y.baseQueue !== w && m("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), y.baseQueue = w = _, p.pending = null;
|
|
15985
15985
|
}
|
|
15986
15986
|
if (w !== null) {
|
|
15987
|
-
var
|
|
15987
|
+
var M = w.next, re = y.baseState, te = null, fe = null, ge = null, _e = M;
|
|
15988
15988
|
do {
|
|
15989
15989
|
var nt = _e.lane;
|
|
15990
15990
|
if (zc(Bp, nt)) {
|
|
@@ -16018,7 +16018,7 @@ Incoming: %s`, Te, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
16018
16018
|
ge === null ? (fe = ge = fn, te = re) : ge = ge.next = fn, er.lanes = Qt(er.lanes, nt), Uv(nt);
|
|
16019
16019
|
}
|
|
16020
16020
|
_e = _e.next;
|
|
16021
|
-
} while (_e !== null && _e !==
|
|
16021
|
+
} while (_e !== null && _e !== M);
|
|
16022
16022
|
ge === null ? te = re : ge.next = fe, ie(re, u.memoizedState) || $v(), u.memoizedState = re, u.baseState = te, u.baseQueue = ge, p.lastRenderedState = re;
|
|
16023
16023
|
}
|
|
16024
16024
|
var ln = p.interleaved;
|
|
@@ -16042,8 +16042,8 @@ Incoming: %s`, Te, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
16042
16042
|
p.pending = null;
|
|
16043
16043
|
var F = w.next, B = F;
|
|
16044
16044
|
do {
|
|
16045
|
-
var
|
|
16046
|
-
_ = e(_,
|
|
16045
|
+
var M = B.action;
|
|
16046
|
+
_ = e(_, M), B = B.next;
|
|
16047
16047
|
} while (B !== F);
|
|
16048
16048
|
ie(_, u.memoizedState) || $v(), u.memoizedState = _, u.baseQueue === null && (u.baseState = _), p.lastRenderedState = _;
|
|
16049
16049
|
}
|
|
@@ -16085,10 +16085,10 @@ Incoming: %s`, Te, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
16085
16085
|
// checking whether we scheduled a subscription effect above.
|
|
16086
16086
|
Pa !== null && Pa.memoizedState.tag & Aa) {
|
|
16087
16087
|
u.flags |= Ua, Sv(Aa | ui, UC.bind(null, u, B, y, t), void 0, null);
|
|
16088
|
-
var
|
|
16089
|
-
if (
|
|
16088
|
+
var M = Ik();
|
|
16089
|
+
if (M === null)
|
|
16090
16090
|
throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");
|
|
16091
|
-
zh(
|
|
16091
|
+
zh(M, Bp) || zC(u, t, y);
|
|
16092
16092
|
}
|
|
16093
16093
|
return y;
|
|
16094
16094
|
}
|
|
@@ -16400,10 +16400,10 @@ Incoming: %s`, Te, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
|
|
|
16400
16400
|
}
|
|
16401
16401
|
}
|
|
16402
16402
|
}
|
|
16403
|
-
var
|
|
16404
|
-
if (
|
|
16403
|
+
var M = TC(e, t, p, u);
|
|
16404
|
+
if (M !== null) {
|
|
16405
16405
|
var re = uo();
|
|
16406
|
-
Ba(
|
|
16406
|
+
Ba(M, e, u, re), t1(M, t, u);
|
|
16407
16407
|
}
|
|
16408
16408
|
}
|
|
16409
16409
|
n1(e, u);
|
|
@@ -17184,25 +17184,25 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, p)
|
|
|
17184
17184
|
var B = t.contextTypes;
|
|
17185
17185
|
u = B != null, y = u ? pm(e, p) : vs;
|
|
17186
17186
|
}
|
|
17187
|
-
var
|
|
17187
|
+
var M = new t(s, y);
|
|
17188
17188
|
if (e.mode & Wn) {
|
|
17189
17189
|
Zn(!0);
|
|
17190
17190
|
try {
|
|
17191
|
-
|
|
17191
|
+
M = new t(s, y);
|
|
17192
17192
|
} finally {
|
|
17193
17193
|
Zn(!1);
|
|
17194
17194
|
}
|
|
17195
17195
|
}
|
|
17196
|
-
var re = e.memoizedState =
|
|
17197
|
-
m1(e,
|
|
17196
|
+
var re = e.memoizedState = M.state !== null && M.state !== void 0 ? M.state : null;
|
|
17197
|
+
m1(e, M);
|
|
17198
17198
|
{
|
|
17199
17199
|
if (typeof t.getDerivedStateFromProps == "function" && re === null) {
|
|
17200
17200
|
var te = yn(t) || "Component";
|
|
17201
|
-
x2.has(te) || (x2.add(te), m("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", te,
|
|
17201
|
+
x2.has(te) || (x2.add(te), m("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", te, M.state === null ? "null" : "undefined", te));
|
|
17202
17202
|
}
|
|
17203
|
-
if (typeof t.getDerivedStateFromProps == "function" || typeof
|
|
17203
|
+
if (typeof t.getDerivedStateFromProps == "function" || typeof M.getSnapshotBeforeUpdate == "function") {
|
|
17204
17204
|
var fe = null, ge = null, _e = null;
|
|
17205
|
-
if (typeof
|
|
17205
|
+
if (typeof M.componentWillMount == "function" && M.componentWillMount.__suppressDeprecationWarning !== !0 ? fe = "componentWillMount" : typeof M.UNSAFE_componentWillMount == "function" && (fe = "UNSAFE_componentWillMount"), typeof M.componentWillReceiveProps == "function" && M.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? ge = "componentWillReceiveProps" : typeof M.UNSAFE_componentWillReceiveProps == "function" && (ge = "UNSAFE_componentWillReceiveProps"), typeof M.componentWillUpdate == "function" && M.componentWillUpdate.__suppressDeprecationWarning !== !0 ? _e = "componentWillUpdate" : typeof M.UNSAFE_componentWillUpdate == "function" && (_e = "UNSAFE_componentWillUpdate"), fe !== null || ge !== null || _e !== null) {
|
|
17206
17206
|
var nt = yn(t) || "Component", Dt = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
17207
17207
|
_2.has(nt) || (_2.add(nt), m(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
17208
17208
|
|
|
@@ -17216,7 +17216,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, nt, Dt, fe !== null ? `
|
|
|
17216
17216
|
}
|
|
17217
17217
|
}
|
|
17218
17218
|
}
|
|
17219
|
-
return u && iC(e, p, y),
|
|
17219
|
+
return u && iC(e, p, y), M;
|
|
17220
17220
|
}
|
|
17221
17221
|
function qP(e, t) {
|
|
17222
17222
|
var s = t.state;
|
|
@@ -17267,7 +17267,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, nt, Dt, fe !== null ? `
|
|
|
17267
17267
|
var B = fm(e, t, !0);
|
|
17268
17268
|
F = pm(e, B);
|
|
17269
17269
|
}
|
|
17270
|
-
var
|
|
17270
|
+
var M = t.getDerivedStateFromProps, re = typeof M == "function" || typeof p.getSnapshotBeforeUpdate == "function";
|
|
17271
17271
|
!re && (typeof p.UNSAFE_componentWillReceiveProps == "function" || typeof p.componentWillReceiveProps == "function") && (y !== s || w !== F) && v1(e, p, s, F), NC();
|
|
17272
17272
|
var te = e.memoizedState, fe = p.state = te;
|
|
17273
17273
|
if (tk(e, s, p, u), fe = e.memoizedState, y === s && te === fe && !Ob() && !nk()) {
|
|
@@ -17277,7 +17277,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, nt, Dt, fe !== null ? `
|
|
|
17277
17277
|
}
|
|
17278
17278
|
return !1;
|
|
17279
17279
|
}
|
|
17280
|
-
typeof
|
|
17280
|
+
typeof M == "function" && ($2(e, t, M, s), fe = e.memoizedState);
|
|
17281
17281
|
var _e = nk() || h1(e, t, y, s, te, fe, F);
|
|
17282
17282
|
if (_e) {
|
|
17283
17283
|
if (!re && (typeof p.UNSAFE_componentWillMount == "function" || typeof p.componentWillMount == "function") && (typeof p.componentWillMount == "function" && p.componentWillMount(), typeof p.UNSAFE_componentWillMount == "function" && p.UNSAFE_componentWillMount()), typeof p.componentDidMount == "function") {
|
|
@@ -17298,9 +17298,9 @@ https://reactjs.org/link/unsafe-component-lifecycles`, nt, Dt, fe !== null ? `
|
|
|
17298
17298
|
$C(e, t);
|
|
17299
17299
|
var w = t.memoizedProps, _ = t.type === t.elementType ? w : Jl(t.type, w);
|
|
17300
17300
|
y.props = _;
|
|
17301
|
-
var F = t.pendingProps, B = y.context,
|
|
17302
|
-
if (typeof
|
|
17303
|
-
re = ya(
|
|
17301
|
+
var F = t.pendingProps, B = y.context, M = s.contextType, re = vs;
|
|
17302
|
+
if (typeof M == "object" && M !== null)
|
|
17303
|
+
re = ya(M);
|
|
17304
17304
|
else {
|
|
17305
17305
|
var te = fm(t, s, !0);
|
|
17306
17306
|
re = pm(t, te);
|
|
@@ -17353,8 +17353,8 @@ https://reactjs.org/link/unsafe-component-lifecycles`, nt, Dt, fe !== null ? `
|
|
|
17353
17353
|
B = `Consider adding an error boundary to your tree to customize error handling behavior.
|
|
17354
17354
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;
|
|
17355
17355
|
else {
|
|
17356
|
-
var
|
|
17357
|
-
B = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " +
|
|
17356
|
+
var M = Lt(e) || "Anonymous";
|
|
17357
|
+
B = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + M + ".");
|
|
17358
17358
|
}
|
|
17359
17359
|
var re = F + `
|
|
17360
17360
|
` + w + `
|
|
@@ -17480,11 +17480,11 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17480
17480
|
do {
|
|
17481
17481
|
switch (B.tag) {
|
|
17482
17482
|
case N: {
|
|
17483
|
-
var
|
|
17483
|
+
var M = u;
|
|
17484
17484
|
B.flags |= Ha;
|
|
17485
17485
|
var re = pp(p);
|
|
17486
17486
|
B.lanes = Qt(B.lanes, re);
|
|
17487
|
-
var te = y1(B,
|
|
17487
|
+
var te = y1(B, M, re);
|
|
17488
17488
|
H0(B, te);
|
|
17489
17489
|
return;
|
|
17490
17490
|
}
|
|
@@ -17565,13 +17565,13 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17565
17565
|
return B.ref = t.ref, B.return = t, t.child = B, B;
|
|
17566
17566
|
}
|
|
17567
17567
|
{
|
|
17568
|
-
var
|
|
17568
|
+
var M = s.type, re = M.propTypes;
|
|
17569
17569
|
re && ql(
|
|
17570
17570
|
re,
|
|
17571
17571
|
u,
|
|
17572
17572
|
// Resolved props
|
|
17573
17573
|
"prop",
|
|
17574
|
-
yn(
|
|
17574
|
+
yn(M)
|
|
17575
17575
|
);
|
|
17576
17576
|
}
|
|
17577
17577
|
var te = e.child, fe = J2(e, p);
|
|
@@ -17605,10 +17605,10 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17605
17605
|
}
|
|
17606
17606
|
}
|
|
17607
17607
|
if (e !== null) {
|
|
17608
|
-
var
|
|
17609
|
-
if (We(
|
|
17608
|
+
var M = e.memoizedProps;
|
|
17609
|
+
if (We(M, u) && e.ref === t.ref && // Prevent bailout if the implementation changed due to hot reload.
|
|
17610
17610
|
t.type === e.type)
|
|
17611
|
-
if (Ql = !1, t.pendingProps = u =
|
|
17611
|
+
if (Ql = !1, t.pendingProps = u = M, J2(e, p))
|
|
17612
17612
|
(e.flags & ss) !== St && (Ql = !0);
|
|
17613
17613
|
else return t.lanes = e.lanes, ad(e, t, p);
|
|
17614
17614
|
}
|
|
@@ -17634,19 +17634,19 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17634
17634
|
var F = y !== null ? y.baseLanes : s;
|
|
17635
17635
|
Mk(t, F);
|
|
17636
17636
|
} else {
|
|
17637
|
-
var B = null,
|
|
17637
|
+
var B = null, M;
|
|
17638
17638
|
if (y !== null) {
|
|
17639
17639
|
var re = y.baseLanes;
|
|
17640
|
-
|
|
17640
|
+
M = Qt(re, s);
|
|
17641
17641
|
} else
|
|
17642
|
-
|
|
17642
|
+
M = s;
|
|
17643
17643
|
t.lanes = t.childLanes = ao;
|
|
17644
17644
|
var te = {
|
|
17645
|
-
baseLanes:
|
|
17645
|
+
baseLanes: M,
|
|
17646
17646
|
cachePool: B,
|
|
17647
17647
|
transitions: null
|
|
17648
17648
|
};
|
|
17649
|
-
return t.memoizedState = te, t.updateQueue = null, Mk(t,
|
|
17649
|
+
return t.memoizedState = te, t.updateQueue = null, Mk(t, M), null;
|
|
17650
17650
|
}
|
|
17651
17651
|
else {
|
|
17652
17652
|
var fe;
|
|
@@ -17718,9 +17718,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17718
17718
|
}
|
|
17719
17719
|
case !0: {
|
|
17720
17720
|
t.flags |= bt, t.flags |= Ha;
|
|
17721
|
-
var B = new Error("Simulated error coming from DevTools"),
|
|
17722
|
-
t.lanes = Qt(t.lanes,
|
|
17723
|
-
var re = O2(t, jp(B, t),
|
|
17721
|
+
var B = new Error("Simulated error coming from DevTools"), M = pp(p);
|
|
17722
|
+
t.lanes = Qt(t.lanes, M);
|
|
17723
|
+
var re = O2(t, jp(B, t), M);
|
|
17724
17724
|
H0(t, re);
|
|
17725
17725
|
break;
|
|
17726
17726
|
}
|
|
@@ -17795,8 +17795,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17795
17795
|
transitions: w.transitions
|
|
17796
17796
|
}, B = t.updateQueue;
|
|
17797
17797
|
if (B.baseState = F, t.memoizedState = F, t.flags & ha) {
|
|
17798
|
-
var
|
|
17799
|
-
return F1(e, t, _, s,
|
|
17798
|
+
var M = jp(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."), t);
|
|
17799
|
+
return F1(e, t, _, s, M);
|
|
17800
17800
|
} else if (_ !== y) {
|
|
17801
17801
|
var re = jp(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), t);
|
|
17802
17802
|
return F1(e, t, _, s, re);
|
|
@@ -17829,20 +17829,20 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17829
17829
|
Tk(e, t);
|
|
17830
17830
|
var p = t.pendingProps, y = s, w = y._payload, _ = y._init, F = _(w);
|
|
17831
17831
|
t.type = F;
|
|
17832
|
-
var B = t.tag = oL(F),
|
|
17832
|
+
var B = t.tag = oL(F), M = Jl(F, p), re;
|
|
17833
17833
|
switch (B) {
|
|
17834
17834
|
case x:
|
|
17835
|
-
return W2(t, F), t.type = F = Rm(F), re = U2(null, t, F,
|
|
17835
|
+
return W2(t, F), t.type = F = Rm(F), re = U2(null, t, F, M, u), re;
|
|
17836
17836
|
case E:
|
|
17837
|
-
return t.type = F = kD(F), re = E1(null, t, F,
|
|
17837
|
+
return t.type = F = kD(F), re = E1(null, t, F, M, u), re;
|
|
17838
17838
|
case W:
|
|
17839
|
-
return t.type = F = wD(F), re = D1(null, t, F,
|
|
17839
|
+
return t.type = F = wD(F), re = D1(null, t, F, M, u), re;
|
|
17840
17840
|
case ae: {
|
|
17841
17841
|
if (t.type !== t.elementType) {
|
|
17842
17842
|
var te = F.propTypes;
|
|
17843
17843
|
te && ql(
|
|
17844
17844
|
te,
|
|
17845
|
-
|
|
17845
|
+
M,
|
|
17846
17846
|
// Resolved for outer only
|
|
17847
17847
|
"prop",
|
|
17848
17848
|
yn(F)
|
|
@@ -17852,7 +17852,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17852
17852
|
null,
|
|
17853
17853
|
t,
|
|
17854
17854
|
F,
|
|
17855
|
-
Jl(F.type,
|
|
17855
|
+
Jl(F.type, M),
|
|
17856
17856
|
// The inner type can have defaults too
|
|
17857
17857
|
u
|
|
17858
17858
|
), re;
|
|
@@ -17884,8 +17884,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17884
17884
|
t.mode & Wn && Yl.recordLegacyContextWarning(t, null), _r(!0), Tv.current = t, _ = Cm(null, t, s, p, y, u), F = _m(), _r(!1);
|
|
17885
17885
|
}
|
|
17886
17886
|
if (Jr(), t.flags |= Ti, typeof _ == "object" && _ !== null && typeof _.render == "function" && _.$$typeof === void 0) {
|
|
17887
|
-
var
|
|
17888
|
-
Fv[
|
|
17887
|
+
var M = yn(s) || "Unknown";
|
|
17888
|
+
Fv[M] || (m("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", M, M, M), Fv[M] = !0);
|
|
17889
17889
|
}
|
|
17890
17890
|
if (
|
|
17891
17891
|
// Run these checks in production only if the flag is off.
|
|
@@ -17978,9 +17978,9 @@ Check the render method of \`` + u + "`.");
|
|
|
17978
17978
|
if (F !== null)
|
|
17979
17979
|
return v3(t, F);
|
|
17980
17980
|
}
|
|
17981
|
-
var B = u.children,
|
|
17981
|
+
var B = u.children, M = u.fallback;
|
|
17982
17982
|
if (y) {
|
|
17983
|
-
var re = p3(t, B,
|
|
17983
|
+
var re = p3(t, B, M, s), te = t.child;
|
|
17984
17984
|
return te.memoizedState = V2(s), t.memoizedState = q2, re;
|
|
17985
17985
|
} else
|
|
17986
17986
|
return Y2(t, B);
|
|
@@ -18047,8 +18047,8 @@ Check the render method of \`` + u + "`.");
|
|
|
18047
18047
|
// only codepath.)
|
|
18048
18048
|
t.child !== w
|
|
18049
18049
|
) {
|
|
18050
|
-
var
|
|
18051
|
-
B =
|
|
18050
|
+
var M = t.child;
|
|
18051
|
+
B = M, B.childLanes = T, B.pendingProps = F, t.mode & En && (B.actualDuration = 0, B.actualStartTime = -1, B.selfBaseDuration = w.selfBaseDuration, B.treeBaseDuration = w.treeBaseDuration), t.deletions = null;
|
|
18052
18052
|
} else
|
|
18053
18053
|
B = $1(w, F), B.subtreeFlags = w.subtreeFlags & wr;
|
|
18054
18054
|
var re;
|
|
@@ -18078,8 +18078,8 @@ Check the render method of \`` + u + "`.");
|
|
|
18078
18078
|
} else {
|
|
18079
18079
|
if (t.memoizedState !== null)
|
|
18080
18080
|
return t.child = e.child, t.flags |= bt, null;
|
|
18081
|
-
var F = u.children, B = u.fallback,
|
|
18082
|
-
return re.memoizedState = V2(w), t.memoizedState = q2,
|
|
18081
|
+
var F = u.children, B = u.fallback, M = g3(e, t, F, B, w), re = t.child;
|
|
18082
|
+
return re.memoizedState = V2(w), t.memoizedState = q2, M;
|
|
18083
18083
|
}
|
|
18084
18084
|
else {
|
|
18085
18085
|
if (iP(), (t.mode & tn) === xt)
|
|
@@ -18242,13 +18242,13 @@ Check the render method of \`` + u + "`.");
|
|
|
18242
18242
|
else
|
|
18243
18243
|
switch (p) {
|
|
18244
18244
|
case "forwards": {
|
|
18245
|
-
var
|
|
18246
|
-
|
|
18245
|
+
var M = k3(t.child), re;
|
|
18246
|
+
M === null ? (re = t.child, t.child = null) : (re = M.sibling, M.sibling = null), X2(
|
|
18247
18247
|
t,
|
|
18248
18248
|
!1,
|
|
18249
18249
|
// isBackwards
|
|
18250
18250
|
re,
|
|
18251
|
-
|
|
18251
|
+
M,
|
|
18252
18252
|
y
|
|
18253
18253
|
);
|
|
18254
18254
|
break;
|
|
@@ -18314,8 +18314,8 @@ Check the render method of \`` + u + "`.");
|
|
|
18314
18314
|
} else
|
|
18315
18315
|
wP(t, p, s);
|
|
18316
18316
|
}
|
|
18317
|
-
var
|
|
18318
|
-
return so(e, t,
|
|
18317
|
+
var M = y.children;
|
|
18318
|
+
return so(e, t, M, s), t.child;
|
|
18319
18319
|
}
|
|
18320
18320
|
var O1 = !1;
|
|
18321
18321
|
function _3(e, t, s) {
|
|
@@ -18397,8 +18397,8 @@ Check the render method of \`` + u + "`.");
|
|
|
18397
18397
|
if (F !== null) {
|
|
18398
18398
|
if (F.dehydrated !== null)
|
|
18399
18399
|
return lf(t, wm(Gl.current)), t.flags |= bt, null;
|
|
18400
|
-
var B = t.child,
|
|
18401
|
-
if (Ri(s,
|
|
18400
|
+
var B = t.child, M = B.childLanes;
|
|
18401
|
+
if (Ri(s, M))
|
|
18402
18402
|
return A1(e, t, s);
|
|
18403
18403
|
lf(t, wm(Gl.current));
|
|
18404
18404
|
var re = ad(e, t, s);
|
|
@@ -18453,7 +18453,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18453
18453
|
return s3(e, t, F, s);
|
|
18454
18454
|
}
|
|
18455
18455
|
case x: {
|
|
18456
|
-
var B = t.type,
|
|
18456
|
+
var B = t.type, M = t.pendingProps, re = t.elementType === B ? M : Jl(B, M);
|
|
18457
18457
|
return U2(e, t, B, re, s);
|
|
18458
18458
|
}
|
|
18459
18459
|
case E: {
|
|
@@ -18464,7 +18464,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18464
18464
|
return a3(e, t, s);
|
|
18465
18465
|
case O:
|
|
18466
18466
|
return i3(e, t, s);
|
|
18467
|
-
case
|
|
18467
|
+
case I:
|
|
18468
18468
|
return o3(e, t);
|
|
18469
18469
|
case X:
|
|
18470
18470
|
return A1(e, t, s);
|
|
@@ -18482,7 +18482,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18482
18482
|
return r3(e, t, s);
|
|
18483
18483
|
case q:
|
|
18484
18484
|
return C3(e, t, s);
|
|
18485
|
-
case
|
|
18485
|
+
case we:
|
|
18486
18486
|
return _3(e, t, s);
|
|
18487
18487
|
case ae: {
|
|
18488
18488
|
var Pt = t.type, fn = t.pendingProps, ln = Jl(Pt, fn);
|
|
@@ -18522,7 +18522,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18522
18522
|
var I1, Q2, M1, z1;
|
|
18523
18523
|
I1 = function(e, t, s, u) {
|
|
18524
18524
|
for (var p = t.child; p !== null; ) {
|
|
18525
|
-
if (p.tag === O || p.tag ===
|
|
18525
|
+
if (p.tag === O || p.tag === I)
|
|
18526
18526
|
J$(e, p.stateNode);
|
|
18527
18527
|
else if (p.tag !== R && p.child !== null) {
|
|
18528
18528
|
p.child.return = p, p = p.child;
|
|
@@ -18581,8 +18581,8 @@ Check the render method of \`` + u + "`.");
|
|
|
18581
18581
|
s = Qt(s, Qt(B.lanes, B.childLanes)), u |= B.subtreeFlags, u |= B.flags, _ += B.actualDuration, F += B.treeBaseDuration, B = B.sibling;
|
|
18582
18582
|
e.actualDuration = _, e.treeBaseDuration = F;
|
|
18583
18583
|
} else
|
|
18584
|
-
for (var
|
|
18585
|
-
s = Qt(s, Qt(
|
|
18584
|
+
for (var M = e.child; M !== null; )
|
|
18585
|
+
s = Qt(s, Qt(M.lanes, M.childLanes)), u |= M.subtreeFlags, u |= M.flags, M.return = e, M = M.sibling;
|
|
18586
18586
|
e.subtreeFlags |= u;
|
|
18587
18587
|
}
|
|
18588
18588
|
return e.childLanes = s, t;
|
|
@@ -18627,7 +18627,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18627
18627
|
case J:
|
|
18628
18628
|
case V:
|
|
18629
18629
|
case K:
|
|
18630
|
-
case
|
|
18630
|
+
case we:
|
|
18631
18631
|
case ae:
|
|
18632
18632
|
return ci(t), null;
|
|
18633
18633
|
case E: {
|
|
@@ -18659,18 +18659,18 @@ Check the render method of \`` + u + "`.");
|
|
|
18659
18659
|
throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
|
|
18660
18660
|
return ci(t), null;
|
|
18661
18661
|
}
|
|
18662
|
-
var
|
|
18662
|
+
var M = q0(), re = Hb(t);
|
|
18663
18663
|
if (re)
|
|
18664
|
-
uP(t, F,
|
|
18664
|
+
uP(t, F, M) && Em(t);
|
|
18665
18665
|
else {
|
|
18666
|
-
var te = X$(B, u, F,
|
|
18666
|
+
var te = X$(B, u, F, M, t);
|
|
18667
18667
|
I1(te, t, !1, !1), t.stateNode = te, Q$(te, B, u, F) && Em(t);
|
|
18668
18668
|
}
|
|
18669
18669
|
t.ref !== null && j1(t);
|
|
18670
18670
|
}
|
|
18671
18671
|
return ci(t), null;
|
|
18672
18672
|
}
|
|
18673
|
-
case
|
|
18673
|
+
case I: {
|
|
18674
18674
|
var fe = u;
|
|
18675
18675
|
if (e && t.stateNode != null) {
|
|
18676
18676
|
var ge = e.memoizedProps;
|
|
@@ -18994,7 +18994,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18994
18994
|
break;
|
|
18995
18995
|
}
|
|
18996
18996
|
case O:
|
|
18997
|
-
case
|
|
18997
|
+
case I:
|
|
18998
18998
|
case R:
|
|
18999
18999
|
case ye:
|
|
19000
19000
|
break;
|
|
@@ -19067,8 +19067,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19067
19067
|
B.passiveEffectDuration += s;
|
|
19068
19068
|
break e;
|
|
19069
19069
|
case K:
|
|
19070
|
-
var
|
|
19071
|
-
|
|
19070
|
+
var M = F.stateNode;
|
|
19071
|
+
M.passiveEffectDuration += s;
|
|
19072
19072
|
break e;
|
|
19073
19073
|
}
|
|
19074
19074
|
F = F.return;
|
|
@@ -19139,14 +19139,14 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19139
19139
|
break;
|
|
19140
19140
|
}
|
|
19141
19141
|
case O: {
|
|
19142
|
-
var
|
|
19142
|
+
var M = s.stateNode;
|
|
19143
19143
|
if (t === null && s.flags & pn) {
|
|
19144
19144
|
var re = s.type, te = s.memoizedProps;
|
|
19145
|
-
aN(
|
|
19145
|
+
aN(M, re, te);
|
|
19146
19146
|
}
|
|
19147
19147
|
break;
|
|
19148
19148
|
}
|
|
19149
|
-
case
|
|
19149
|
+
case I:
|
|
19150
19150
|
break;
|
|
19151
19151
|
case R:
|
|
19152
19152
|
break;
|
|
@@ -19228,7 +19228,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19228
19228
|
gr(e, e.return, w);
|
|
19229
19229
|
}
|
|
19230
19230
|
}
|
|
19231
|
-
} else if (u.tag ===
|
|
19231
|
+
} else if (u.tag === I) {
|
|
19232
19232
|
if (s === null)
|
|
19233
19233
|
try {
|
|
19234
19234
|
var y = u.stateNode;
|
|
@@ -19310,7 +19310,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19310
19310
|
return null;
|
|
19311
19311
|
t = t.return;
|
|
19312
19312
|
}
|
|
19313
|
-
for (t.sibling.return = t.return, t = t.sibling; t.tag !== O && t.tag !==
|
|
19313
|
+
for (t.sibling.return = t.return, t = t.sibling; t.tag !== O && t.tag !== I && t.tag !== Ve; ) {
|
|
19314
19314
|
if (t.flags & Er || t.child === null || t.tag === R)
|
|
19315
19315
|
continue e;
|
|
19316
19316
|
t.child.return = t, t = t.child;
|
|
@@ -19340,7 +19340,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19340
19340
|
}
|
|
19341
19341
|
}
|
|
19342
19342
|
function Z2(e, t, s) {
|
|
19343
|
-
var u = e.tag, p = u === O || u ===
|
|
19343
|
+
var u = e.tag, p = u === O || u === I;
|
|
19344
19344
|
if (p) {
|
|
19345
19345
|
var y = e.stateNode;
|
|
19346
19346
|
t ? cN(s, y, t) : lN(s, y);
|
|
@@ -19354,7 +19354,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19354
19354
|
}
|
|
19355
19355
|
}
|
|
19356
19356
|
function eD(e, t, s) {
|
|
19357
|
-
var u = e.tag, p = u === O || u ===
|
|
19357
|
+
var u = e.tag, p = u === O || u === I;
|
|
19358
19358
|
if (p) {
|
|
19359
19359
|
var y = e.stateNode;
|
|
19360
19360
|
t ? uN(s, y, t) : sN(s, y);
|
|
@@ -19402,7 +19402,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19402
19402
|
switch (tp(s), s.tag) {
|
|
19403
19403
|
case O:
|
|
19404
19404
|
di || Am(s, t);
|
|
19405
|
-
case
|
|
19405
|
+
case I: {
|
|
19406
19406
|
{
|
|
19407
19407
|
var u = fi, p = Zl;
|
|
19408
19408
|
fi = null, ff(e, t, s), fi = u, Zl = p, fi !== null && (Zl ? fN(fi, s.stateNode) : dN(fi, s.stateNode));
|
|
@@ -19429,11 +19429,11 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19429
19429
|
if (_ !== null) {
|
|
19430
19430
|
var F = _.lastEffect;
|
|
19431
19431
|
if (F !== null) {
|
|
19432
|
-
var B = F.next,
|
|
19432
|
+
var B = F.next, M = B;
|
|
19433
19433
|
do {
|
|
19434
|
-
var re =
|
|
19435
|
-
te !== void 0 && ((fe & Gu) !== jo ? Ak(s, t, te) : (fe & $a) !== jo && (Nc(s), s.mode & En ? (Ku(), Ak(s, t, te), Qu(s)) : Ak(s, t, te), rp())),
|
|
19436
|
-
} while (
|
|
19434
|
+
var re = M, te = re.destroy, fe = re.tag;
|
|
19435
|
+
te !== void 0 && ((fe & Gu) !== jo ? Ak(s, t, te) : (fe & $a) !== jo && (Nc(s), s.mode & En ? (Ku(), Ak(s, t, te), Qu(s)) : Ak(s, t, te), rp())), M = M.next;
|
|
19436
|
+
} while (M !== B);
|
|
19437
19437
|
}
|
|
19438
19438
|
}
|
|
19439
19439
|
}
|
|
@@ -19571,10 +19571,10 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19571
19571
|
if (p & pn) {
|
|
19572
19572
|
var w = e.stateNode;
|
|
19573
19573
|
if (w != null) {
|
|
19574
|
-
var _ = e.memoizedProps, F = u !== null ? u.memoizedProps : _, B = e.type,
|
|
19575
|
-
if (e.updateQueue = null,
|
|
19574
|
+
var _ = e.memoizedProps, F = u !== null ? u.memoizedProps : _, B = e.type, M = e.updateQueue;
|
|
19575
|
+
if (e.updateQueue = null, M !== null)
|
|
19576
19576
|
try {
|
|
19577
|
-
iN(w,
|
|
19577
|
+
iN(w, M, B, F, _, e);
|
|
19578
19578
|
} catch (Ot) {
|
|
19579
19579
|
gr(e, e.return, Ot);
|
|
19580
19580
|
}
|
|
@@ -19583,7 +19583,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19583
19583
|
}
|
|
19584
19584
|
return;
|
|
19585
19585
|
}
|
|
19586
|
-
case
|
|
19586
|
+
case I: {
|
|
19587
19587
|
if (eu(t, e), Zu(e), p & pn) {
|
|
19588
19588
|
if (e.stateNode === null)
|
|
19589
19589
|
throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
|
|
@@ -19689,8 +19689,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19689
19689
|
tD(e, t, s);
|
|
19690
19690
|
continue;
|
|
19691
19691
|
} else {
|
|
19692
|
-
var F = p.alternate, B = F !== null && F.memoizedState !== null,
|
|
19693
|
-
Fk = _, di =
|
|
19692
|
+
var F = p.alternate, B = F !== null && F.memoizedState !== null, M = B || di, re = Fk, te = di;
|
|
19693
|
+
Fk = _, di = M, di && !te && (yt = p, K3(p));
|
|
19694
19694
|
for (var fe = y; fe !== null; )
|
|
19695
19695
|
yt = fe, t_(
|
|
19696
19696
|
fe,
|
|
@@ -20185,8 +20185,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
20185
20185
|
if (w === aD)
|
|
20186
20186
|
mf(e, p);
|
|
20187
20187
|
else {
|
|
20188
|
-
var B = !zh(e, p),
|
|
20189
|
-
if (B && !_R(
|
|
20188
|
+
var B = !zh(e, p), M = e.current.alternate;
|
|
20189
|
+
if (B && !_R(M)) {
|
|
20190
20190
|
if (w = zk(e, p), w === Mp) {
|
|
20191
20191
|
var re = Mh(e);
|
|
20192
20192
|
re !== T && (p = re, w = fD(e, re));
|
|
@@ -20196,7 +20196,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
20196
20196
|
throw Up(e, T), mf(e, p), Mo(e, Lr()), te;
|
|
20197
20197
|
}
|
|
20198
20198
|
}
|
|
20199
|
-
e.finishedWork =
|
|
20199
|
+
e.finishedWork = M, e.finishedLanes = p, CR(e, w, p);
|
|
20200
20200
|
}
|
|
20201
20201
|
}
|
|
20202
20202
|
return Mo(e, Lr()), e.callbackNode === s ? d_.bind(null, e) : null;
|
|
@@ -20553,10 +20553,10 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
20553
20553
|
if (_ || F) {
|
|
20554
20554
|
var B = pi.transition;
|
|
20555
20555
|
pi.transition = null;
|
|
20556
|
-
var
|
|
20556
|
+
var M = ps();
|
|
20557
20557
|
ia(Li);
|
|
20558
20558
|
var re = xn;
|
|
20559
|
-
xn |= el, rD.current = null, L3(e, p), c1(), X3(e, p, y), G$(e.containerInfo), e.current = p, Pl(y), J3(p, e, y), Rc(), Kf(), xn = re, ia(
|
|
20559
|
+
xn |= el, rD.current = null, L3(e, p), c1(), X3(e, p, y), G$(e.containerInfo), e.current = p, Pl(y), J3(p, e, y), Rc(), Kf(), xn = re, ia(M), pi.transition = B;
|
|
20560
20560
|
} else
|
|
20561
20561
|
e.current = p, c1();
|
|
20562
20562
|
var te = zp;
|
|
@@ -20943,16 +20943,16 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
20943
20943
|
}
|
|
20944
20944
|
if (tl === null)
|
|
20945
20945
|
throw new Error("Expected resolveFamily to be set during hot reload.");
|
|
20946
|
-
var B = !1,
|
|
20946
|
+
var B = !1, M = !1;
|
|
20947
20947
|
if (F !== null) {
|
|
20948
20948
|
var re = tl(F);
|
|
20949
|
-
re !== void 0 && (s.has(re) ?
|
|
20949
|
+
re !== void 0 && (s.has(re) ? M = !0 : t.has(re) && (w === E ? M = !0 : B = !0));
|
|
20950
20950
|
}
|
|
20951
|
-
if (Pm !== null && (Pm.has(e) || u !== null && Pm.has(u)) && (
|
|
20951
|
+
if (Pm !== null && (Pm.has(e) || u !== null && Pm.has(u)) && (M = !0), M && (e._debugNeedsRemount = !0), M || B) {
|
|
20952
20952
|
var te = Bo(e, U);
|
|
20953
20953
|
te !== null && Ba(te, e, U, sr);
|
|
20954
20954
|
}
|
|
20955
|
-
p !== null && !
|
|
20955
|
+
p !== null && !M && DD(p, t, s), y !== null && DD(y, t, s);
|
|
20956
20956
|
}
|
|
20957
20957
|
}
|
|
20958
20958
|
var tL = function(e, t) {
|
|
@@ -21130,7 +21130,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
21130
21130
|
w = q;
|
|
21131
21131
|
break e;
|
|
21132
21132
|
case G:
|
|
21133
|
-
w =
|
|
21133
|
+
w = we;
|
|
21134
21134
|
break e;
|
|
21135
21135
|
case Fe:
|
|
21136
21136
|
w = W, _ = wD(_);
|
|
@@ -21153,8 +21153,8 @@ Check the render method of \`` + B + "`.");
|
|
|
21153
21153
|
throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) " + ("but got: " + (e == null ? e : typeof e) + "." + F));
|
|
21154
21154
|
}
|
|
21155
21155
|
}
|
|
21156
|
-
var
|
|
21157
|
-
return
|
|
21156
|
+
var M = ys(w, s, t, p);
|
|
21157
|
+
return M.elementType = e, M.type = _, M.lanes = y, M._debugOwner = u, M;
|
|
21158
21158
|
}
|
|
21159
21159
|
function ED(e, t, s) {
|
|
21160
21160
|
var u = null;
|
|
@@ -21191,7 +21191,7 @@ Check the render method of \`` + B + "`.");
|
|
|
21191
21191
|
return p.stateNode = y, p;
|
|
21192
21192
|
}
|
|
21193
21193
|
function TD(e, t, s) {
|
|
21194
|
-
var u = ys(
|
|
21194
|
+
var u = ys(I, e, null, t);
|
|
21195
21195
|
return u.lanes = s, u;
|
|
21196
21196
|
}
|
|
21197
21197
|
function fL() {
|
|
@@ -21231,8 +21231,8 @@ Check the render method of \`` + B + "`.");
|
|
|
21231
21231
|
}
|
|
21232
21232
|
}
|
|
21233
21233
|
function N_(e, t, s, u, p, y, w, _, F, B) {
|
|
21234
|
-
var
|
|
21235
|
-
|
|
21234
|
+
var M = new hL(e, t, s, _, F), re = lL(t, y);
|
|
21235
|
+
M.current = re, re.stateNode = M;
|
|
21236
21236
|
{
|
|
21237
21237
|
var te = {
|
|
21238
21238
|
element: u,
|
|
@@ -21244,7 +21244,7 @@ Check the render method of \`` + B + "`.");
|
|
|
21244
21244
|
};
|
|
21245
21245
|
re.memoizedState = te;
|
|
21246
21246
|
}
|
|
21247
|
-
return U0(re),
|
|
21247
|
+
return U0(re), M;
|
|
21248
21248
|
}
|
|
21249
21249
|
var AD = "18.3.1";
|
|
21250
21250
|
function mL(e, t, s) {
|
|
@@ -21303,7 +21303,7 @@ Check the render method of \`` + B + "`.");
|
|
|
21303
21303
|
return N_(e, t, F, B, s, u, p, y, w);
|
|
21304
21304
|
}
|
|
21305
21305
|
function L_(e, t, s, u, p, y, w, _, F, B) {
|
|
21306
|
-
var
|
|
21306
|
+
var M = !0, re = N_(s, u, M, e, p, y, w, _, F);
|
|
21307
21307
|
re.context = P_(null);
|
|
21308
21308
|
var te = re.current, fe = uo(), ge = hf(te), _e = rd(fe, ge);
|
|
21309
21309
|
return _e.callback = t ?? null, of(te, _e, ge), SR(re, ge, fe), re;
|
|
@@ -21596,8 +21596,8 @@ Check the render method of %s.`, Lt(ra) || "Unknown"));
|
|
|
21596
21596
|
s != null && (s.unstable_strictMode === !0 && (y = !0), s.identifierPrefix !== void 0 && (_ = s.identifierPrefix), s.onRecoverableError !== void 0 && (F = s.onRecoverableError));
|
|
21597
21597
|
var B = L_(t, null, e, Ib, u, y, w, _, F);
|
|
21598
21598
|
if (Nb(B.current, e), Kg(e), p)
|
|
21599
|
-
for (var
|
|
21600
|
-
var re = p[
|
|
21599
|
+
for (var M = 0; M < p.length; M++) {
|
|
21600
|
+
var re = p[M];
|
|
21601
21601
|
NP(B, re);
|
|
21602
21602
|
}
|
|
21603
21603
|
return new qk(B);
|
|
@@ -21658,11 +21658,11 @@ Check the render method of %s.`, Lt(ra) || "Unknown"));
|
|
|
21658
21658
|
if (typeof u == "function") {
|
|
21659
21659
|
var B = u;
|
|
21660
21660
|
u = function() {
|
|
21661
|
-
var te = Wk(
|
|
21661
|
+
var te = Wk(M);
|
|
21662
21662
|
B.call(te);
|
|
21663
21663
|
};
|
|
21664
21664
|
}
|
|
21665
|
-
var
|
|
21665
|
+
var M = R_(
|
|
21666
21666
|
e,
|
|
21667
21667
|
nf,
|
|
21668
21668
|
null,
|
|
@@ -21675,11 +21675,11 @@ Check the render method of %s.`, Lt(ra) || "Unknown"));
|
|
|
21675
21675
|
// identifierPrefix
|
|
21676
21676
|
aE
|
|
21677
21677
|
);
|
|
21678
|
-
e._reactRootContainer =
|
|
21678
|
+
e._reactRootContainer = M, Nb(M.current, e);
|
|
21679
21679
|
var re = e.nodeType === Kn ? e.parentNode : e;
|
|
21680
21680
|
return Kg(re), sd(function() {
|
|
21681
|
-
qv(t,
|
|
21682
|
-
}),
|
|
21681
|
+
qv(t, M, s, u);
|
|
21682
|
+
}), M;
|
|
21683
21683
|
}
|
|
21684
21684
|
}
|
|
21685
21685
|
function $L(e, t) {
|
|
@@ -22316,7 +22316,7 @@ let ih = class extends ka {
|
|
|
22316
22316
|
), this._updatedProps = []) : this._updatedProps.includes(n) || this._updatedProps.push(n);
|
|
22317
22317
|
}
|
|
22318
22318
|
render() {
|
|
22319
|
-
return
|
|
22319
|
+
return De`${this.name && this.icon}`;
|
|
22320
22320
|
}
|
|
22321
22321
|
};
|
|
22322
22322
|
Ey([
|
|
@@ -22387,7 +22387,7 @@ let al = class extends ka {
|
|
|
22387
22387
|
"pkt-alert__noTitle": !this.title,
|
|
22388
22388
|
"pkt-alert__noDate": !this.date
|
|
22389
22389
|
};
|
|
22390
|
-
return
|
|
22390
|
+
return De`
|
|
22391
22391
|
<div class=${Gt(n)} aria-live=${this["aria-live"]}>
|
|
22392
22392
|
<div class=${Gt(i)}>
|
|
22393
22393
|
<pkt-icon
|
|
@@ -22396,7 +22396,7 @@ let al = class extends ka {
|
|
|
22396
22396
|
name=${this.skin === "info" ? "alert-information" : `alert-${this.skin}`}
|
|
22397
22397
|
></pkt-icon>
|
|
22398
22398
|
|
|
22399
|
-
${this.closeAlert ?
|
|
22399
|
+
${this.closeAlert ? De`
|
|
22400
22400
|
<div class="pkt-alert__close">
|
|
22401
22401
|
<pkt-button
|
|
22402
22402
|
tabindex="0"
|
|
@@ -22411,11 +22411,11 @@ let al = class extends ka {
|
|
|
22411
22411
|
</pkt-button>
|
|
22412
22412
|
</div>
|
|
22413
22413
|
` : Ge}
|
|
22414
|
-
${this.title ?
|
|
22414
|
+
${this.title ? De`<div class="pkt-alert__title">${this.title}</div>` : Ge}
|
|
22415
22415
|
|
|
22416
22416
|
<div class="pkt-alert__text" ${un(this.defaultSlot)}></div>
|
|
22417
22417
|
|
|
22418
|
-
${this.date ?
|
|
22418
|
+
${this.date ? De`<div class="pkt-alert__date">Sist oppdatert: ${this.date}</div>` : Ge}
|
|
22419
22419
|
</div>
|
|
22420
22420
|
</div>
|
|
22421
22421
|
`;
|
|
@@ -22469,7 +22469,7 @@ let Zm = class extends Xm {
|
|
|
22469
22469
|
"pkt-accordion--compact": this.compact,
|
|
22470
22470
|
[`pkt-accordion--${this.skin}`]: this.skin
|
|
22471
22471
|
};
|
|
22472
|
-
return
|
|
22472
|
+
return De`
|
|
22473
22473
|
<div
|
|
22474
22474
|
part="container"
|
|
22475
22475
|
class=${Gt(n)}
|
|
@@ -22509,7 +22509,7 @@ let Sf = class extends ka {
|
|
|
22509
22509
|
"pkt-accordion-item--compact": this.compact,
|
|
22510
22510
|
[`pkt-accordion-item--${this.skin}`]: !!this.skin
|
|
22511
22511
|
};
|
|
22512
|
-
return
|
|
22512
|
+
return De`
|
|
22513
22513
|
<details
|
|
22514
22514
|
class=${Gt(n)}
|
|
22515
22515
|
id=${this.id}
|
|
@@ -22574,7 +22574,7 @@ let eg = class extends ka {
|
|
|
22574
22574
|
n === "arialabel" && this.removeAttribute("arialabel"), n === "href" && this.removeAttribute("href"), n === "text" && this.removeAttribute("text"), super.attributeChangedCallback(n, i, l);
|
|
22575
22575
|
}
|
|
22576
22576
|
render() {
|
|
22577
|
-
return
|
|
22577
|
+
return De`<nav
|
|
22578
22578
|
class="pkt-back-link"
|
|
22579
22579
|
aria-label=${this.ariaLabel || "Gå tilbake til forrige side"}
|
|
22580
22580
|
>
|
|
@@ -22645,7 +22645,7 @@ let mo = class extends ka {
|
|
|
22645
22645
|
"pkt-btn--disabled": !!this.disabled,
|
|
22646
22646
|
"pkt-btn--isLoading": !!this.isLoading
|
|
22647
22647
|
};
|
|
22648
|
-
return
|
|
22648
|
+
return De`
|
|
22649
22649
|
<button
|
|
22650
22650
|
class=${Gt(i)}
|
|
22651
22651
|
type=${this.type}
|
|
@@ -22654,14 +22654,14 @@ let mo = class extends ka {
|
|
|
22654
22654
|
aria-disabled=${rn(this.disabled || this.isLoading ? "true" : void 0)}
|
|
22655
22655
|
form=${rn(n)}
|
|
22656
22656
|
>
|
|
22657
|
-
${this.isLoading ?
|
|
22657
|
+
${this.isLoading ? De`<pkt-icon
|
|
22658
22658
|
class="pkt-btn__icon pkt-btn__spinner"
|
|
22659
22659
|
name="spinner-blue"
|
|
22660
22660
|
path=${rn(this.loadingAnimationPath)}
|
|
22661
22661
|
></pkt-icon>` : Ge}
|
|
22662
|
-
${this.variant !== "label-only" ?
|
|
22662
|
+
${this.variant !== "label-only" ? De`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : Ge}
|
|
22663
22663
|
<span class="pkt-btn__text" ${un(this.defaultSlot)}></span>
|
|
22664
|
-
${this.variant === "icons-right-and-left" ?
|
|
22664
|
+
${this.variant === "icons-right-and-left" ? De`<pkt-icon class="pkt-btn__icon" name=${this.secondIconName}></pkt-icon>` : Ge}
|
|
22665
22665
|
</button>
|
|
22666
22666
|
`;
|
|
22667
22667
|
}
|
|
@@ -23894,26 +23894,26 @@ function fj(r, n, i) {
|
|
|
23894
23894
|
const D = Ew(), x = D.locale ?? GB, E = D.firstWeekContainsDate ?? ((c = (l = D.locale) == null ? void 0 : l.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, $ = D.weekStartsOn ?? ((m = (h = D.locale) == null ? void 0 : h.options) == null ? void 0 : m.weekStartsOn) ?? 0, N = Yo(r, void 0);
|
|
23895
23895
|
if (!fB(N))
|
|
23896
23896
|
throw new RangeError("Invalid time value");
|
|
23897
|
-
let R = n.match(lj).map((
|
|
23898
|
-
const J =
|
|
23897
|
+
let R = n.match(lj).map((I) => {
|
|
23898
|
+
const J = I[0];
|
|
23899
23899
|
if (J === "p" || J === "P") {
|
|
23900
23900
|
const V = ZB[J];
|
|
23901
|
-
return V(
|
|
23901
|
+
return V(I, x.formatLong);
|
|
23902
23902
|
}
|
|
23903
|
-
return
|
|
23904
|
-
}).join("").match(sj).map((
|
|
23905
|
-
if (
|
|
23903
|
+
return I;
|
|
23904
|
+
}).join("").match(sj).map((I) => {
|
|
23905
|
+
if (I === "''")
|
|
23906
23906
|
return { isToken: !1, value: "'" };
|
|
23907
|
-
const J =
|
|
23907
|
+
const J = I[0];
|
|
23908
23908
|
if (J === "'")
|
|
23909
|
-
return { isToken: !1, value: pj(
|
|
23909
|
+
return { isToken: !1, value: pj(I) };
|
|
23910
23910
|
if (UE[J])
|
|
23911
|
-
return { isToken: !0, value:
|
|
23911
|
+
return { isToken: !0, value: I };
|
|
23912
23912
|
if (J.match(dj))
|
|
23913
23913
|
throw new RangeError(
|
|
23914
23914
|
"Format string contains an unescaped latin alphabet character `" + J + "`"
|
|
23915
23915
|
);
|
|
23916
|
-
return { isToken: !1, value:
|
|
23916
|
+
return { isToken: !1, value: I };
|
|
23917
23917
|
});
|
|
23918
23918
|
x.localize.preprocessor && (R = x.localize.preprocessor(N, R));
|
|
23919
23919
|
const O = {
|
|
@@ -23921,9 +23921,9 @@ function fj(r, n, i) {
|
|
|
23921
23921
|
weekStartsOn: $,
|
|
23922
23922
|
locale: x
|
|
23923
23923
|
};
|
|
23924
|
-
return R.map((
|
|
23925
|
-
if (!
|
|
23926
|
-
const J =
|
|
23924
|
+
return R.map((I) => {
|
|
23925
|
+
if (!I.isToken) return I.value;
|
|
23926
|
+
const J = I.value;
|
|
23927
23927
|
(aj(J) || rj(J)) && ij(J, n, String(r));
|
|
23928
23928
|
const V = UE[J[0]];
|
|
23929
23929
|
return V(N, J, x.localize, O);
|
|
@@ -24246,7 +24246,7 @@ let ur = class extends ka {
|
|
|
24246
24246
|
* Component functionality and render
|
|
24247
24247
|
*/
|
|
24248
24248
|
render() {
|
|
24249
|
-
return
|
|
24249
|
+
return De`
|
|
24250
24250
|
<div
|
|
24251
24251
|
class="pkt-calendar ${this.weeknumbers ? "pkt-cal-weeknumbers" : Ge}"
|
|
24252
24252
|
@focusout=${this.closeEvent}
|
|
@@ -24306,19 +24306,19 @@ let ur = class extends ka {
|
|
|
24306
24306
|
}
|
|
24307
24307
|
renderDayNames() {
|
|
24308
24308
|
const n = [];
|
|
24309
|
-
this.weeknumbers && n.push(
|
|
24309
|
+
this.weeknumbers && n.push(De`<th><div>${this.weekString}</div></th>`);
|
|
24310
24310
|
for (let i = 0; i < this.dayStrings.length; i++)
|
|
24311
24311
|
n.push(
|
|
24312
|
-
|
|
24312
|
+
De`<th><div aria-label="${this.dayStringsLong[i]}">${this.dayStrings[i]}</div></th>`
|
|
24313
24313
|
);
|
|
24314
|
-
return
|
|
24314
|
+
return De`<tr class="pkt-cal-week-row">
|
|
24315
24315
|
${n}
|
|
24316
24316
|
</tr>`;
|
|
24317
24317
|
}
|
|
24318
24318
|
renderMonthNav() {
|
|
24319
24319
|
let n = [];
|
|
24320
24320
|
return this.withcontrols ? n.push(
|
|
24321
|
-
|
|
24321
|
+
De`<div class="pkt-cal-month-picker">
|
|
24322
24322
|
<label for="${this.id}-monthnav" class="pkt-hide">${this.strings.dates.month}</label>
|
|
24323
24323
|
<select
|
|
24324
24324
|
aria-label="${this.strings.dates.month}"
|
|
@@ -24329,7 +24329,7 @@ let ur = class extends ka {
|
|
|
24329
24329
|
}}
|
|
24330
24330
|
>
|
|
24331
24331
|
${this.monthStrings.map(
|
|
24332
|
-
(i, l) =>
|
|
24332
|
+
(i, l) => De`<option value=${l} ?selected=${this.month === l}>${i}</option>`
|
|
24333
24333
|
)}
|
|
24334
24334
|
</select>
|
|
24335
24335
|
<label for="${this.id}-yearnav" class="pkt-hide">${this.strings.dates.year}</label>
|
|
@@ -24347,7 +24347,7 @@ let ur = class extends ka {
|
|
|
24347
24347
|
/>
|
|
24348
24348
|
</div> `
|
|
24349
24349
|
) : n.push(
|
|
24350
|
-
|
|
24350
|
+
De`<div class="pkt-txt-16-medium" aria-live="polite">
|
|
24351
24351
|
${this.monthStrings[this.month]} ${this.year}
|
|
24352
24352
|
</div>`
|
|
24353
24353
|
), n;
|
|
@@ -24365,7 +24365,7 @@ let ur = class extends ka {
|
|
|
24365
24365
|
"pkt-cal-in-range-last": this.range && this.selected.length === 2 && m === this.selected[1],
|
|
24366
24366
|
"pkt-cal-range-hover": this.rangeHovered !== null && m === Qa(this.rangeHovered)
|
|
24367
24367
|
};
|
|
24368
|
-
return
|
|
24368
|
+
return De`<td class=${Gt(R)}>
|
|
24369
24369
|
<div
|
|
24370
24370
|
?aria-selected=${x}
|
|
24371
24371
|
role="gridcell"
|
|
@@ -24396,12 +24396,12 @@ let ur = class extends ka {
|
|
|
24396
24396
|
const E = [];
|
|
24397
24397
|
for (let $ = 0; $ < m; $++) {
|
|
24398
24398
|
const N = [];
|
|
24399
|
-
this.weeknumbers && N.push(
|
|
24399
|
+
this.weeknumbers && N.push(De`<td class="pkt-cal-week">${this.week}</td>`), this.week++;
|
|
24400
24400
|
for (let R = 1; R < 8; R++)
|
|
24401
24401
|
if ($ === 0 && R < c + 1) {
|
|
24402
24402
|
const O = D - (c - R);
|
|
24403
24403
|
N.push(
|
|
24404
|
-
|
|
24404
|
+
De`<td class="pkt-cal-other">
|
|
24405
24405
|
<div
|
|
24406
24406
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
24407
24407
|
data-disabled="disabled"
|
|
@@ -24411,7 +24411,7 @@ let ur = class extends ka {
|
|
|
24411
24411
|
</td>`
|
|
24412
24412
|
);
|
|
24413
24413
|
} else x > h ? (N.push(
|
|
24414
|
-
|
|
24414
|
+
De`<td class="pkt-cal-other">
|
|
24415
24415
|
<div
|
|
24416
24416
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--label-only"
|
|
24417
24417
|
data-disabled="disabled"
|
|
@@ -24421,7 +24421,7 @@ let ur = class extends ka {
|
|
|
24421
24421
|
</td>`
|
|
24422
24422
|
), x++) : (N.push(this.renderDayView(x, n, R)), x++);
|
|
24423
24423
|
E.push(
|
|
24424
|
-
|
|
24424
|
+
De`<tr class="pkt-cal-week-row" role="row">
|
|
24425
24425
|
${N}
|
|
24426
24426
|
</tr>`
|
|
24427
24427
|
);
|
|
@@ -24689,7 +24689,7 @@ let il = class extends ka {
|
|
|
24689
24689
|
"pkt-btn--icons-right-and-left": this.closeTag && !!this.iconName,
|
|
24690
24690
|
"pkt-hide": this._isClosed
|
|
24691
24691
|
};
|
|
24692
|
-
return this.closeTag ?
|
|
24692
|
+
return this.closeTag ? De`
|
|
24693
24693
|
<button
|
|
24694
24694
|
class=${Gt(i)}
|
|
24695
24695
|
type=${this.type}
|
|
@@ -24697,13 +24697,13 @@ let il = class extends ka {
|
|
|
24697
24697
|
aria-label=${rn(this.ariaLabel || void 0)}
|
|
24698
24698
|
aria-description=${rn(this._ariaDescription || void 0)}
|
|
24699
24699
|
>
|
|
24700
|
-
${this.iconName &&
|
|
24700
|
+
${this.iconName && De`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
24701
24701
|
<span ${un(this.defaultSlot)}></span>
|
|
24702
24702
|
<pkt-icon class="pkt-tag__close-btn" name="close"></pkt-icon>
|
|
24703
24703
|
</button>
|
|
24704
|
-
` :
|
|
24704
|
+
` : De`
|
|
24705
24705
|
<span class=${Gt(n)}>
|
|
24706
|
-
${this.iconName &&
|
|
24706
|
+
${this.iconName && De`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
|
|
24707
24707
|
<span ${un(this.defaultSlot)}></span>
|
|
24708
24708
|
</span>
|
|
24709
24709
|
`;
|
|
@@ -24780,7 +24780,7 @@ let ja = class extends ka {
|
|
|
24780
24780
|
[`pkt-card--padding-${this.padding}`]: this.padding,
|
|
24781
24781
|
"pkt-card--border-on-hover": this.borderOnHover
|
|
24782
24782
|
}, c = ((n = this.ariaLabel) == null ? void 0 : n.trim()) || (this.heading ? `${this.heading} lenkekort` : "lenkekort"), h = ((i = this.ariaLabel) == null ? void 0 : i.trim()) || (this.heading ? this.heading : "kort");
|
|
24783
|
-
return
|
|
24783
|
+
return De`
|
|
24784
24784
|
<article
|
|
24785
24785
|
class=${Gt(l)}
|
|
24786
24786
|
aria-label=${rn(this.clickCardLink ? c : h)}
|
|
@@ -24802,8 +24802,8 @@ let ja = class extends ka {
|
|
|
24802
24802
|
"pkt-card__image": !0,
|
|
24803
24803
|
[`pkt-card__image-${this.imageShape}`]: this.imageShape
|
|
24804
24804
|
};
|
|
24805
|
-
return
|
|
24806
|
-
${this.image.src &&
|
|
24805
|
+
return De`
|
|
24806
|
+
${this.image.src && De`
|
|
24807
24807
|
<div class=${Gt(n)}>
|
|
24808
24808
|
<img src=${this.image.src} alt=${this.image.alt || ""} />
|
|
24809
24809
|
</div>
|
|
@@ -24813,8 +24813,8 @@ let ja = class extends ka {
|
|
|
24813
24813
|
// Do not render heading if link is present, render link heading instead
|
|
24814
24814
|
// Combine the rendering for headings into a renderHeader method
|
|
24815
24815
|
renderHeading() {
|
|
24816
|
-
return
|
|
24817
|
-
${this.heading && !this.clickCardLink ?
|
|
24816
|
+
return De`
|
|
24817
|
+
${this.heading && !this.clickCardLink ? De`
|
|
24818
24818
|
<pkt-heading
|
|
24819
24819
|
class="pkt-card__heading"
|
|
24820
24820
|
.level=${this.headinglevel || 3}
|
|
@@ -24827,8 +24827,8 @@ let ja = class extends ka {
|
|
|
24827
24827
|
`;
|
|
24828
24828
|
}
|
|
24829
24829
|
renderLinkHeading() {
|
|
24830
|
-
return
|
|
24831
|
-
${this.clickCardLink ?
|
|
24830
|
+
return De`
|
|
24831
|
+
${this.clickCardLink ? De`
|
|
24832
24832
|
<pkt-heading
|
|
24833
24833
|
class="pkt-card__link-heading pkt-card__heading"
|
|
24834
24834
|
.level=${this.headinglevel || 3}
|
|
@@ -24846,16 +24846,16 @@ let ja = class extends ka {
|
|
|
24846
24846
|
`;
|
|
24847
24847
|
}
|
|
24848
24848
|
renderSubheading() {
|
|
24849
|
-
return
|
|
24850
|
-
${this.subheading ?
|
|
24849
|
+
return De`
|
|
24850
|
+
${this.subheading ? De` <p class="pkt-card__subheading ">${this.subheading}</p> ` : Ge}
|
|
24851
24851
|
`;
|
|
24852
24852
|
}
|
|
24853
24853
|
// Render header
|
|
24854
24854
|
// prettier-ignore
|
|
24855
24855
|
renderHeader() {
|
|
24856
24856
|
const n = !!this.heading || !!this.subheading;
|
|
24857
|
-
return
|
|
24858
|
-
${n ?
|
|
24857
|
+
return De`
|
|
24858
|
+
${n ? De`
|
|
24859
24859
|
<header class="pkt-card__header">
|
|
24860
24860
|
${this.renderHeading()}
|
|
24861
24861
|
${this.renderLinkHeading()}
|
|
@@ -24869,15 +24869,15 @@ let ja = class extends ka {
|
|
|
24869
24869
|
"pkt-card__tags": !0,
|
|
24870
24870
|
[`pkt-card__tags-${this.tagPosition}`]: this.tagPosition
|
|
24871
24871
|
};
|
|
24872
|
-
return
|
|
24873
|
-
${this.tags.length > 0 ?
|
|
24872
|
+
return De`
|
|
24873
|
+
${this.tags.length > 0 ? De`
|
|
24874
24874
|
<div
|
|
24875
24875
|
class=${Gt(n)}
|
|
24876
24876
|
role="list"
|
|
24877
24877
|
aria-label=${this.tags.length > 1 ? "merkelapper" : "merkelapp"}
|
|
24878
24878
|
>
|
|
24879
24879
|
${this.tags.map(
|
|
24880
|
-
(i) =>
|
|
24880
|
+
(i) => De`
|
|
24881
24881
|
<pkt-tag
|
|
24882
24882
|
role="listitem"
|
|
24883
24883
|
textStyle="normal-text"
|
|
@@ -24894,16 +24894,16 @@ let ja = class extends ka {
|
|
|
24894
24894
|
`;
|
|
24895
24895
|
}
|
|
24896
24896
|
renderSlot() {
|
|
24897
|
-
return
|
|
24898
|
-
${this.defaultSlot &&
|
|
24897
|
+
return De`
|
|
24898
|
+
${this.defaultSlot && De`<section class="pkt-card__content" ${un(this.defaultSlot)}></section>`}
|
|
24899
24899
|
`;
|
|
24900
24900
|
}
|
|
24901
24901
|
renderMetadata() {
|
|
24902
|
-
return
|
|
24903
|
-
${this.metaLead || this.metaTrail ?
|
|
24902
|
+
return De`
|
|
24903
|
+
${this.metaLead || this.metaTrail ? De`
|
|
24904
24904
|
<footer class="pkt-card__metadata">
|
|
24905
|
-
${this.metaLead ?
|
|
24906
|
-
${this.metaTrail ?
|
|
24905
|
+
${this.metaLead ? De`<span class="pkt-card__metadata-lead">${this.metaLead}</span>` : Ge}
|
|
24906
|
+
${this.metaTrail ? De`<span class="pkt-card__metadata-trail">${this.metaTrail}</span>` : Ge}
|
|
24907
24907
|
</footer>
|
|
24908
24908
|
` : Ge}
|
|
24909
24909
|
`;
|
|
@@ -24988,24 +24988,24 @@ const JE = (r, n, i) => {
|
|
|
24988
24988
|
const c = jO(r), { values: h, keys: m } = this.dt(n, i, l);
|
|
24989
24989
|
if (!Array.isArray(c)) return this.ut = m, h;
|
|
24990
24990
|
const D = this.ut ?? (this.ut = []), x = [];
|
|
24991
|
-
let E, $, N = 0, R = c.length - 1, O = 0,
|
|
24992
|
-
for (; N <= R && O <=
|
|
24991
|
+
let E, $, N = 0, R = c.length - 1, O = 0, I = h.length - 1;
|
|
24992
|
+
for (; N <= R && O <= I; ) if (c[N] === null) N++;
|
|
24993
24993
|
else if (c[R] === null) R--;
|
|
24994
24994
|
else if (D[N] === m[O]) x[O] = Vp(c[N], h[O]), N++, O++;
|
|
24995
|
-
else if (D[R] === m[
|
|
24996
|
-
else if (D[N] === m[
|
|
24995
|
+
else if (D[R] === m[I]) x[I] = Vp(c[R], h[I]), R--, I--;
|
|
24996
|
+
else if (D[N] === m[I]) x[I] = Vp(c[N], h[I]), Kv(r, x[I + 1], c[N]), N++, I--;
|
|
24997
24997
|
else if (D[R] === m[O]) x[O] = Vp(c[R], h[O]), Kv(r, c[N], c[R]), R--, O++;
|
|
24998
|
-
else if (E === void 0 && (E = JE(m, O,
|
|
24998
|
+
else if (E === void 0 && (E = JE(m, O, I), $ = JE(D, N, R)), E.has(D[N])) if (E.has(D[R])) {
|
|
24999
24999
|
const J = $.get(m[O]), V = J !== void 0 ? c[J] : null;
|
|
25000
25000
|
if (V === null) {
|
|
25001
|
-
const
|
|
25002
|
-
Vp(
|
|
25001
|
+
const we = Kv(r, c[N]);
|
|
25002
|
+
Vp(we, h[O]), x[O] = we;
|
|
25003
25003
|
} else x[O] = Vp(V, h[O]), Kv(r, c[N], V), c[J] = null;
|
|
25004
25004
|
O++;
|
|
25005
25005
|
} else UD(c[R]), R--;
|
|
25006
25006
|
else UD(c[N]), N++;
|
|
25007
|
-
for (; O <=
|
|
25008
|
-
const J = Kv(r, x[
|
|
25007
|
+
for (; O <= I; ) {
|
|
25008
|
+
const J = Kv(r, x[I + 1]);
|
|
25009
25009
|
Vp(J, h[O]), x[O++] = J;
|
|
25010
25010
|
}
|
|
25011
25011
|
for (; N <= R; ) {
|
|
@@ -25056,7 +25056,7 @@ const JE = (r, n, i) => {
|
|
|
25056
25056
|
};
|
|
25057
25057
|
(function() {
|
|
25058
25058
|
(function(r) {
|
|
25059
|
-
const n = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(),
|
|
25059
|
+
const n = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), V = {
|
|
25060
25060
|
ariaAtomic: "aria-atomic",
|
|
25061
25061
|
ariaAutoComplete: "aria-autocomplete",
|
|
25062
25062
|
ariaBusy: "aria-busy",
|
|
@@ -25099,7 +25099,7 @@ const JE = (r, n, i) => {
|
|
|
25099
25099
|
ariaValueNow: "aria-valuenow",
|
|
25100
25100
|
ariaValueText: "aria-valuetext",
|
|
25101
25101
|
role: "role"
|
|
25102
|
-
},
|
|
25102
|
+
}, we = (pe, ee) => {
|
|
25103
25103
|
for (let be in V) {
|
|
25104
25104
|
ee[be] = null;
|
|
25105
25105
|
let $e = null;
|
|
@@ -25368,7 +25368,7 @@ const JE = (r, n, i) => {
|
|
|
25368
25368
|
if (!ee || !ee.tagName || ee.tagName.indexOf("-") === -1)
|
|
25369
25369
|
throw new TypeError("Illegal constructor");
|
|
25370
25370
|
const be = ee.getRootNode(), $e = new mt();
|
|
25371
|
-
this.states = new Ft(ee), n.set(this, ee), i.set(this, $e), c.set(ee, this),
|
|
25371
|
+
this.states = new Ft(ee), n.set(this, ee), i.set(this, $e), c.set(ee, this), we(ee, this), je(ee, this), Object.seal(this), be instanceof DocumentFragment && Ce(be);
|
|
25372
25372
|
}
|
|
25373
25373
|
checkValidity() {
|
|
25374
25374
|
const ee = n.get(this);
|
|
@@ -25493,7 +25493,7 @@ const JE = (r, n, i) => {
|
|
|
25493
25493
|
if ($e.formAssociated) {
|
|
25494
25494
|
const Oe = $e.prototype.connectedCallback;
|
|
25495
25495
|
$e.prototype.connectedCallback = function() {
|
|
25496
|
-
|
|
25496
|
+
I.has(this) || (I.set(this, !0), this.hasAttribute("disabled") && He(this, !0)), Oe != null && Oe.apply(this), ft(this);
|
|
25497
25497
|
};
|
|
25498
25498
|
}
|
|
25499
25499
|
ee.call(this, be, $e, Ee);
|
|
@@ -25806,7 +25806,7 @@ let fd = class extends ka {
|
|
|
25806
25806
|
}, i = Gt({
|
|
25807
25807
|
"pkt-inputwrapper__helptext-container": !0,
|
|
25808
25808
|
"pkt-inputwrapper__has-helptext": this.helptext || this.helptextDropdown || this.filledSlots.size > 0
|
|
25809
|
-
}), l = () => this.helptextDropdown ?
|
|
25809
|
+
}), l = () => this.helptextDropdown ? De`<div class="pkt-inputwrapper__helptext-expandable">
|
|
25810
25810
|
<button
|
|
25811
25811
|
class="pkt-link pkt-link--icon-right pkt-btn pkt-btn--small pkt-btn--tertiary pkt-btn--icon-right"
|
|
25812
25812
|
type="button"
|
|
@@ -25828,7 +25828,7 @@ let fd = class extends ka {
|
|
|
25828
25828
|
${aw(this.helptextDropdown)}
|
|
25829
25829
|
</div>
|
|
25830
25830
|
</div>` : Ge;
|
|
25831
|
-
return
|
|
25831
|
+
return De`${De`<div class="${i}">
|
|
25832
25832
|
<div class="pkt-inputwrapper__helptext" id="${this.forId}-helptext">
|
|
25833
25833
|
<div class="pkt-contents" ${un(this.defaultSlot)} name="helptext"></div>
|
|
25834
25834
|
${this.helptext && aw(this.helptext)}
|
|
@@ -25890,29 +25890,29 @@ let Ir = class extends ka {
|
|
|
25890
25890
|
"pkt-tag--thin-text": !0,
|
|
25891
25891
|
"pkt-tag--blue-light": this.optionalTag,
|
|
25892
25892
|
"pkt-tag--beige": !this.optionalTag && this.requiredTag
|
|
25893
|
-
}, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : Ge, c = () => this.optionalTag || this.requiredTag ?
|
|
25893
|
+
}, l = this.ariaDescribedby ? this.ariaDescribedby : this.helptext ? `${this.forId}-helptext` : Ge, c = () => this.optionalTag || this.requiredTag ? De`<span class=${Gt(i)}
|
|
25894
25894
|
>${this.optionalTag ? this.optionalText : this.requiredTag ? this.requiredText : Ge}</span
|
|
25895
|
-
>` : Ge, h = () => this.useWrapper ? this.hasFieldset ?
|
|
25895
|
+
>` : Ge, h = () => this.useWrapper ? this.hasFieldset ? De`<legend
|
|
25896
25896
|
class="pkt-inputwrapper__legend"
|
|
25897
25897
|
id="${this.forId}-label"
|
|
25898
25898
|
@click=${this.handleLabelClick}
|
|
25899
25899
|
>
|
|
25900
25900
|
${this.label} ${c()}
|
|
25901
|
-
</legend>` :
|
|
25901
|
+
</legend>` : De`<label
|
|
25902
25902
|
class="pkt-inputwrapper__label"
|
|
25903
25903
|
for="${this.forId}"
|
|
25904
25904
|
aria-describedby="${l}"
|
|
25905
25905
|
id="${this.forId}-label"
|
|
25906
25906
|
@click=${this.handleLabelClick}
|
|
25907
25907
|
>${this.label}${c()}</label
|
|
25908
|
-
>` :
|
|
25908
|
+
>` : De`<label
|
|
25909
25909
|
for="${this.forId}"
|
|
25910
25910
|
class="pkt-sr-only"
|
|
25911
25911
|
aria-describedby="${l}"
|
|
25912
25912
|
id="${this.forId}-label"
|
|
25913
25913
|
>
|
|
25914
25914
|
${this.label}
|
|
25915
|
-
</label>`, m = () =>
|
|
25915
|
+
</label>`, m = () => De`
|
|
25916
25916
|
<pkt-helptext
|
|
25917
25917
|
class="${rn(this.useWrapper ? void 0 : "pkt-hide")}"
|
|
25918
25918
|
.forId=${this.forId}
|
|
@@ -25925,10 +25925,10 @@ let Ir = class extends ka {
|
|
|
25925
25925
|
${un(this.helptextSlot)}
|
|
25926
25926
|
name="helptext"
|
|
25927
25927
|
></pkt-helptext>
|
|
25928
|
-
`, D = () => this.counter ?
|
|
25928
|
+
`, D = () => this.counter ? De`<div class="pkt-input__counter" aria-live="polite" aria-atomic="true">
|
|
25929
25929
|
${this.counterError ? this.counterError : Ge} ${this.counterCurrent || 0}
|
|
25930
25930
|
${this.counterMaxLength ? `/${this.counterMaxLength}` : Ge}
|
|
25931
|
-
</div>` : Ge, x = () => this.hasError && this.errorMessage ?
|
|
25931
|
+
</div>` : Ge, x = () => this.hasError && this.errorMessage ? De`<div
|
|
25932
25932
|
role="alert"
|
|
25933
25933
|
class="pkt-alert pkt-alert--error pkt-alert--compact"
|
|
25934
25934
|
aria-live="assertive"
|
|
@@ -25937,17 +25937,17 @@ let Ir = class extends ka {
|
|
|
25937
25937
|
>
|
|
25938
25938
|
<pkt-icon name="alert-error" class="pkt-alert__icon"></pkt-icon>
|
|
25939
25939
|
<div class="pkt-alert__text">${aw(this.errorMessage)}</div>
|
|
25940
|
-
</div>` : Ge, E = () =>
|
|
25940
|
+
</div>` : Ge, E = () => De`
|
|
25941
25941
|
${h()}
|
|
25942
25942
|
${m()}
|
|
25943
25943
|
${this.counterPosition === "top" ? D() : Ge}
|
|
25944
25944
|
<div class="pkt-contents" ${un(this.defaultSlot)}></div>
|
|
25945
25945
|
${this.counterPosition === "bottom" ? D() : Ge}
|
|
25946
25946
|
${x()}
|
|
25947
|
-
`, $ = () => this.hasFieldset ?
|
|
25947
|
+
`, $ = () => this.hasFieldset ? De`<fieldset class="pkt-inputwrapper__fieldset" aria-describedby="${l}">
|
|
25948
25948
|
${E()}
|
|
25949
|
-
</fieldset>` :
|
|
25950
|
-
return
|
|
25949
|
+
</fieldset>` : De`<div class="pkt-inputwrapper__fieldset">${E()}</div>`;
|
|
25950
|
+
return De`<div class=${Gt(n)}>${$()}</div> `;
|
|
25951
25951
|
}
|
|
25952
25952
|
toggleDropdown(n) {
|
|
25953
25953
|
this.dispatchEvent(
|
|
@@ -26057,7 +26057,7 @@ let gi = class extends ka {
|
|
|
26057
26057
|
}
|
|
26058
26058
|
// Render methods
|
|
26059
26059
|
render() {
|
|
26060
|
-
return
|
|
26060
|
+
return De`
|
|
26061
26061
|
<div
|
|
26062
26062
|
class=${Gt({
|
|
26063
26063
|
"pkt-listbox": !0,
|
|
@@ -26078,7 +26078,7 @@ let gi = class extends ka {
|
|
|
26078
26078
|
`;
|
|
26079
26079
|
}
|
|
26080
26080
|
renderCheckboxOrCheckIcon(n, i) {
|
|
26081
|
-
return this.isMultiSelect ?
|
|
26081
|
+
return this.isMultiSelect ? De`
|
|
26082
26082
|
<input
|
|
26083
26083
|
class="pkt-input-check__input-checkbox"
|
|
26084
26084
|
type="checkbox"
|
|
@@ -26089,14 +26089,14 @@ let gi = class extends ka {
|
|
|
26089
26089
|
aria-labelledby=${this.id + "-option-label-" + i}
|
|
26090
26090
|
?disabled=${this.disabled || n.disabled || this.maxIsReached && !n.selected}
|
|
26091
26091
|
/>
|
|
26092
|
-
` : n.selected ?
|
|
26092
|
+
` : n.selected ? De`<pkt-icon name="check-big"></pkt-icon>` : Ge;
|
|
26093
26093
|
}
|
|
26094
26094
|
renderList() {
|
|
26095
|
-
return
|
|
26095
|
+
return De`
|
|
26096
26096
|
${VS(
|
|
26097
26097
|
this._filteredOptions,
|
|
26098
26098
|
(n) => n.value,
|
|
26099
|
-
(n, i) =>
|
|
26099
|
+
(n, i) => De`
|
|
26100
26100
|
<li
|
|
26101
26101
|
@click=${() => {
|
|
26102
26102
|
this.toggleOption(n);
|
|
@@ -26118,10 +26118,10 @@ let gi = class extends ka {
|
|
|
26118
26118
|
>
|
|
26119
26119
|
${this.renderCheckboxOrCheckIcon(n, i)}
|
|
26120
26120
|
<span class="pkt-listbox__option-label" id=${this.id + "-option-label-" + i}>
|
|
26121
|
-
${n.prefix ?
|
|
26121
|
+
${n.prefix ? De`<span class="pkt-listbox__option-prefix">${n.prefix}</span>` : Ge}
|
|
26122
26122
|
${n.label || n.value}
|
|
26123
26123
|
</span>
|
|
26124
|
-
${n.description ?
|
|
26124
|
+
${n.description ? De`<span class="pkt-listbox__option-description pkt-txt-14-light"
|
|
26125
26125
|
>${n.description}</span
|
|
26126
26126
|
>` : Ge}
|
|
26127
26127
|
</li>
|
|
@@ -26130,7 +26130,7 @@ let gi = class extends ka {
|
|
|
26130
26130
|
`;
|
|
26131
26131
|
}
|
|
26132
26132
|
renderNewOptionBanner() {
|
|
26133
|
-
return this.allowUserInput && this.customUserInput ?
|
|
26133
|
+
return this.allowUserInput && this.customUserInput ? De`
|
|
26134
26134
|
<div
|
|
26135
26135
|
class="pkt-listbox__banner pkt-listbox__banner--new-option pkt-listbox__option"
|
|
26136
26136
|
data-type="new-option"
|
|
@@ -26148,14 +26148,14 @@ let gi = class extends ka {
|
|
|
26148
26148
|
` : Ge;
|
|
26149
26149
|
}
|
|
26150
26150
|
renderMaximumReachedBanner() {
|
|
26151
|
-
return this._selectedOptions = this.options.filter((n) => n.selected).length, this.isMultiSelect && this._selectedOptions > 0 && this.maxLength > 0 ?
|
|
26151
|
+
return this._selectedOptions = this.options.filter((n) => n.selected).length, this.isMultiSelect && this._selectedOptions > 0 && this.maxLength > 0 ? De`
|
|
26152
26152
|
<div class="pkt-listbox__banner pkt-listbox__banner--maximum-reached">
|
|
26153
26153
|
${this._selectedOptions} av maks ${this.maxLength} mulige er valgt.
|
|
26154
26154
|
</div>
|
|
26155
26155
|
` : Ge;
|
|
26156
26156
|
}
|
|
26157
26157
|
renderUserMessage() {
|
|
26158
|
-
return this.userMessage ?
|
|
26158
|
+
return this.userMessage ? De`<div class="pkt-listbox__banner pkt-listbox__banner--user-message">
|
|
26159
26159
|
<pkt-icon
|
|
26160
26160
|
class="pkt-listbox__banner-icon"
|
|
26161
26161
|
name="exclamation-mark-circle"
|
|
@@ -26165,7 +26165,7 @@ let gi = class extends ka {
|
|
|
26165
26165
|
</div>` : Ge;
|
|
26166
26166
|
}
|
|
26167
26167
|
renderSearch() {
|
|
26168
|
-
return this.includeSearch ?
|
|
26168
|
+
return this.includeSearch ? De`
|
|
26169
26169
|
<div class="pkt-listbox__search">
|
|
26170
26170
|
<span class="pkt-listbox__search-icon">
|
|
26171
26171
|
<pkt-icon name="magnifying-glass-small" size="large"></pkt-icon>
|
|
@@ -26456,7 +26456,7 @@ let Vr = class extends dn {
|
|
|
26456
26456
|
}
|
|
26457
26457
|
// Render methods
|
|
26458
26458
|
render() {
|
|
26459
|
-
return
|
|
26459
|
+
return De`
|
|
26460
26460
|
<pkt-input-wrapper
|
|
26461
26461
|
.label=${this.label}
|
|
26462
26462
|
.helptext=${this.helptext}
|
|
@@ -26489,7 +26489,7 @@ let Vr = class extends dn {
|
|
|
26489
26489
|
tabindex="-1"
|
|
26490
26490
|
@click=${this.handleInputClick}
|
|
26491
26491
|
>
|
|
26492
|
-
${this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ?
|
|
26492
|
+
${this.placeholder && (!this._value.length || this.multiple && this.tagPlacement == "outside") && !this._inputFocus ? De`<span class="pkt-combobox__placeholder">${this.placeholder}</span>` : this.tagPlacement !== "outside" ? this.renderSingleOrMultipleValues() : Ge}
|
|
26493
26493
|
${this.renderInputField()}
|
|
26494
26494
|
<div
|
|
26495
26495
|
class="pkt-btn pkt-btn--tertiary pkt-combobox__arrow"
|
|
@@ -26539,14 +26539,14 @@ let Vr = class extends dn {
|
|
|
26539
26539
|
></pkt-listbox>
|
|
26540
26540
|
</div>
|
|
26541
26541
|
|
|
26542
|
-
${this.tagPlacement === "outside" && this.multiple ?
|
|
26542
|
+
${this.tagPlacement === "outside" && this.multiple ? De`<div class="pkt-combobox__tags-outside">
|
|
26543
26543
|
${this.renderSingleOrMultipleValues()}
|
|
26544
26544
|
</div>` : Ge}
|
|
26545
26545
|
</pkt-input-wrapper>
|
|
26546
26546
|
`;
|
|
26547
26547
|
}
|
|
26548
26548
|
renderInputField() {
|
|
26549
|
-
return this.typeahead || this.allowUserInput ?
|
|
26549
|
+
return this.typeahead || this.allowUserInput ? De`
|
|
26550
26550
|
<div class="pkt-combobox__input-div combobox__input">
|
|
26551
26551
|
<input
|
|
26552
26552
|
type="text"
|
|
@@ -26568,7 +26568,7 @@ let Vr = class extends dn {
|
|
|
26568
26568
|
${un(this.inputRef)}
|
|
26569
26569
|
/>
|
|
26570
26570
|
</div>
|
|
26571
|
-
` :
|
|
26571
|
+
` : De`
|
|
26572
26572
|
<input
|
|
26573
26573
|
type="hidden"
|
|
26574
26574
|
id="${this.id}-input"
|
|
@@ -26585,7 +26585,7 @@ let Vr = class extends dn {
|
|
|
26585
26585
|
(c) => {
|
|
26586
26586
|
var h;
|
|
26587
26587
|
const m = this.findValueInOptions(c), D = (h = this.options.find((x) => x.value === c)) == null ? void 0 : h.tagSkinColor;
|
|
26588
|
-
return
|
|
26588
|
+
return De`
|
|
26589
26589
|
<pkt-tag
|
|
26590
26590
|
skin=${D || "blue-dark"}
|
|
26591
26591
|
?closeTag=${!this.disabled}
|
|
@@ -26602,12 +26602,12 @@ let Vr = class extends dn {
|
|
|
26602
26602
|
if (!n) return "";
|
|
26603
26603
|
switch (this.displayValueAs) {
|
|
26604
26604
|
case "prefixAndValue":
|
|
26605
|
-
return
|
|
26605
|
+
return De`<span data-focusfix=${this.id}>${n.prefix || ""} ${n.value}</span>`;
|
|
26606
26606
|
case "value":
|
|
26607
|
-
return
|
|
26607
|
+
return De`<span data-focusfix=${this.id}>${n.value}</span>`;
|
|
26608
26608
|
case "label":
|
|
26609
26609
|
default:
|
|
26610
|
-
return
|
|
26610
|
+
return De`<span data-focusfix=${this.id}>${n.label || n.value}</span>`;
|
|
26611
26611
|
}
|
|
26612
26612
|
}
|
|
26613
26613
|
// Event handlers
|
|
@@ -26751,11 +26751,11 @@ let Vr = class extends dn {
|
|
|
26751
26751
|
if (this.disabled) return;
|
|
26752
26752
|
this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
|
|
26753
26753
|
const c = ((i = this.findValueInOptions(n)) == null ? void 0 : i.value) || null, h = this._value.includes(n || c || ""), m = !!c, D = ((l = this._options.find((V) => V.value === n)) == null ? void 0 : l.disabled) || !1, x = !(n != null && n.trim()), E = !this.multiple, $ = this.multiple, N = this.isMaxItemsReached();
|
|
26754
|
-
let R = !1, O = !0,
|
|
26755
|
-
D || (!m && this.allowUserInput && !x ? (this.addNewUserValue(n),
|
|
26754
|
+
let R = !1, O = !0, I = "", J = "";
|
|
26755
|
+
D || (!m && this.allowUserInput && !x ? (this.addNewUserValue(n), I = "Ny verdi lagt til", R = !$) : !m && !this.allowUserInput ? (E && this._value[0] && this.removeValue(this._value[0]), O = !1, R = !0, I = "Ingen treff i søket") : h ? (this.removeValue(c), R = !0) : x && E ? (this.removeAllSelected(), R = !0) : E ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(c), R = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : $ && !N ? (this.setSelected(c), R = !0) : $ && N ? (this._userInfoMessage = "Maks antall valg nådd", O = !1, J = n) : (E && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", O = !1, R = !0, J = n), this._isOptionsOpen = R, R || window.setTimeout(() => {
|
|
26756
26756
|
var V;
|
|
26757
26757
|
(V = this.focusRef.value) == null || V.focus();
|
|
26758
|
-
}, 0), this._userInfoMessage =
|
|
26758
|
+
}, 0), this._userInfoMessage = I, this._search = J || "", this.resetComboboxInput(O), $ && this.isMaxItemsReached());
|
|
26759
26759
|
}
|
|
26760
26760
|
setSelected(n) {
|
|
26761
26761
|
if (!this._value.includes(n)) {
|
|
@@ -27009,17 +27009,17 @@ let ol = class extends ka {
|
|
|
27009
27009
|
n.preventDefault(), (i = window.cookieBanner) != null && i.cookieConsent || this.triggerInit(), setTimeout(() => window.cookieBanner.openCookieModal());
|
|
27010
27010
|
}
|
|
27011
27011
|
render() {
|
|
27012
|
-
return this.triggerType === "link" ?
|
|
27012
|
+
return this.triggerType === "link" ? De`<a href="#" class="pkt-link" @click=${this.openModal}>${this.triggerText}</a>` : this.triggerType === "footerlink" ? De`<a href="#" class="pkt-footer__link" @click=${this.openModal}>
|
|
27013
27013
|
<pkt-icon name="chevron-right" class="pkt-footer__link-icon"></pkt-icon>
|
|
27014
27014
|
${this.triggerText}
|
|
27015
|
-
</a>` : this.triggerType === "icon" ?
|
|
27015
|
+
</a>` : this.triggerType === "icon" ? De`<pkt-button
|
|
27016
27016
|
skin="tertiary"
|
|
27017
27017
|
variant="icon-only"
|
|
27018
27018
|
iconName="cookie"
|
|
27019
27019
|
@click=${this.openModal}
|
|
27020
27020
|
>
|
|
27021
27021
|
>${this.triggerText}</pkt-button
|
|
27022
|
-
>` :
|
|
27022
|
+
>` : De`<pkt-button @click=${this.openModal}>${this.triggerText}</pkt-button>`;
|
|
27023
27023
|
}
|
|
27024
27024
|
};
|
|
27025
27025
|
lc([
|
|
@@ -27084,13 +27084,13 @@ let au = class extends dn {
|
|
|
27084
27084
|
"pkt-input-check__input-label--left": this.labelPosition === "left",
|
|
27085
27085
|
"pkt-input-check__input-label--right": this.labelPosition === "right",
|
|
27086
27086
|
"pkt-sr-only": this.hideLabel
|
|
27087
|
-
}), c = () =>
|
|
27087
|
+
}), c = () => De`
|
|
27088
27088
|
<label class=${l} for=${this.id + "-internal"}>
|
|
27089
27089
|
${this.label}
|
|
27090
|
-
${this.checkHelptext ?
|
|
27090
|
+
${this.checkHelptext ? De`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : Ge}
|
|
27091
27091
|
</label>
|
|
27092
27092
|
`;
|
|
27093
|
-
return
|
|
27093
|
+
return De`
|
|
27094
27094
|
<div class="pkt-input-check">
|
|
27095
27095
|
<div class=${n}>
|
|
27096
27096
|
${this.labelPosition === "left" ? c() : Ge}
|
|
@@ -27221,7 +27221,7 @@ let ea = class extends dn {
|
|
|
27221
27221
|
* Rendering
|
|
27222
27222
|
*/
|
|
27223
27223
|
renderInput() {
|
|
27224
|
-
return
|
|
27224
|
+
return De`
|
|
27225
27225
|
<input
|
|
27226
27226
|
class="${Gt(this.inputClasses)}"
|
|
27227
27227
|
.type=${this.inputType}
|
|
@@ -27262,8 +27262,8 @@ let ea = class extends dn {
|
|
|
27262
27262
|
"pkt-input-prefix": this.showRangeLabels,
|
|
27263
27263
|
"pkt-hide": !this.showRangeLabels
|
|
27264
27264
|
};
|
|
27265
|
-
return
|
|
27266
|
-
${this.showRangeLabels ?
|
|
27265
|
+
return De`
|
|
27266
|
+
${this.showRangeLabels ? De` <div class="pkt-input-prefix">${this.strings.generic.from}</div> ` : Ge}
|
|
27267
27267
|
<input
|
|
27268
27268
|
class=${Gt(this.inputClasses)}
|
|
27269
27269
|
.type=${this.inputType}
|
|
@@ -27304,7 +27304,7 @@ let ea = class extends dn {
|
|
|
27304
27304
|
<div class="${Gt(n)}" id="${this.id}-to-label">
|
|
27305
27305
|
${this.strings.generic.to}
|
|
27306
27306
|
</div>
|
|
27307
|
-
${this.showRangeLabels ? Ge :
|
|
27307
|
+
${this.showRangeLabels ? Ge : De` <div class="pkt-input-separator">–</div> `}
|
|
27308
27308
|
<input
|
|
27309
27309
|
class=${Gt(this.inputClasses)}
|
|
27310
27310
|
.type=${this.inputType}
|
|
@@ -27356,7 +27356,7 @@ let ea = class extends dn {
|
|
|
27356
27356
|
`;
|
|
27357
27357
|
}
|
|
27358
27358
|
renderMultipleInput() {
|
|
27359
|
-
return
|
|
27359
|
+
return De`
|
|
27360
27360
|
<input
|
|
27361
27361
|
class=${Gt(this.inputClasses)}
|
|
27362
27362
|
.type=${this.inputType}
|
|
@@ -27392,12 +27392,12 @@ let ea = class extends dn {
|
|
|
27392
27392
|
`;
|
|
27393
27393
|
}
|
|
27394
27394
|
renderTags() {
|
|
27395
|
-
return
|
|
27395
|
+
return De`
|
|
27396
27396
|
<div class="pkt-datepicker__tags" aria-live="polite">
|
|
27397
27397
|
${this._value[0] ? VS(
|
|
27398
27398
|
this._value ?? [],
|
|
27399
27399
|
(n) => n,
|
|
27400
|
-
(n) =>
|
|
27400
|
+
(n) => De`
|
|
27401
27401
|
<pkt-tag
|
|
27402
27402
|
.id="${this.id + n + "-tag"}"
|
|
27403
27403
|
closeTag
|
|
@@ -27417,7 +27417,7 @@ let ea = class extends dn {
|
|
|
27417
27417
|
`;
|
|
27418
27418
|
}
|
|
27419
27419
|
renderCalendar() {
|
|
27420
|
-
return
|
|
27420
|
+
return De`<div
|
|
27421
27421
|
class="pkt-calendar-popup pkt-${this.calendarOpen ? "show" : "hide"}"
|
|
27422
27422
|
@focusout=${(n) => {
|
|
27423
27423
|
this.calendarOpen && this.handleFocusOut(n);
|
|
@@ -27461,7 +27461,7 @@ let ea = class extends dn {
|
|
|
27461
27461
|
"pkt-btn": !0,
|
|
27462
27462
|
"pkt-btn--icon-only": !0,
|
|
27463
27463
|
"pkt-btn--tertiary": !0
|
|
27464
|
-
},
|
|
27464
|
+
}, De`
|
|
27465
27465
|
<pkt-input-wrapper
|
|
27466
27466
|
label="${this.label}"
|
|
27467
27467
|
forId="${this.id}-input"
|
|
@@ -27629,7 +27629,7 @@ let tg = class extends xw {
|
|
|
27629
27629
|
), this.classList.add("pkt-heading"), this.size && this.classList.add(`pkt-heading--${this.size}`), this.visuallyHidden && this.classList.add("pkt-sr-only"), this.align && this.classList.add(`pkt-heading--${this.align}`);
|
|
27630
27630
|
}
|
|
27631
27631
|
render() {
|
|
27632
|
-
return
|
|
27632
|
+
return De`<slot></slot>`;
|
|
27633
27633
|
}
|
|
27634
27634
|
};
|
|
27635
27635
|
Ty([
|
|
@@ -27676,12 +27676,12 @@ let xf = class extends ka {
|
|
|
27676
27676
|
"pkt-link--icon-right": !!this.iconName && this.iconPosition === "right",
|
|
27677
27677
|
"pkt-link--external": this.external
|
|
27678
27678
|
};
|
|
27679
|
-
return
|
|
27679
|
+
return De`<a
|
|
27680
27680
|
class=${Gt(n)}
|
|
27681
27681
|
href=${this.href}
|
|
27682
27682
|
.target=${this.target}
|
|
27683
27683
|
.rel=${this.external ? "noopener noreferrer" : Ge}
|
|
27684
|
-
>${this.iconName ?
|
|
27684
|
+
>${this.iconName ? De`<pkt-icon name=${this.iconName} class="pkt-link__icon"></pkt-icon>` : ""} <span ${un(this.defaultSlot)}>Link</span></a
|
|
27685
27685
|
>`;
|
|
27686
27686
|
}
|
|
27687
27687
|
};
|
|
@@ -27714,15 +27714,15 @@ let pd = class extends ka {
|
|
|
27714
27714
|
}
|
|
27715
27715
|
render() {
|
|
27716
27716
|
const n = ["pkt-linkcard", this.skin && `pkt-linkcard--${this.skin}`].filter(Boolean).join(" "), i = ["pkt-linkcard__title", this.external && "pkt-link pkt-link--external"].filter(Boolean).join(" ");
|
|
27717
|
-
return
|
|
27717
|
+
return De`
|
|
27718
27718
|
<a
|
|
27719
27719
|
href=${this.href}
|
|
27720
27720
|
class=${n}
|
|
27721
27721
|
target=${this.openInNewTab ? "_blank" : "_self"}
|
|
27722
27722
|
rel=${this.openInNewTab ?? "noopener noreferrer"}
|
|
27723
27723
|
>
|
|
27724
|
-
${this.iconName &&
|
|
27725
|
-
${this.title &&
|
|
27724
|
+
${this.iconName && De`<pkt-icon class="pkt-link__icon" name="${this.iconName}" />`}
|
|
27725
|
+
${this.title && De`<div class=${i}>${this.title}</div>`}
|
|
27726
27726
|
|
|
27727
27727
|
<div class="pkt-linkcard__text" ${un(this.defaultSlot)}></div>
|
|
27728
27728
|
</a>
|
|
@@ -27775,14 +27775,14 @@ let iu = class extends ka {
|
|
|
27775
27775
|
"pkt-contents": !0,
|
|
27776
27776
|
"pkt-hide": this.isLoading
|
|
27777
27777
|
});
|
|
27778
|
-
return
|
|
27779
|
-
${this.isLoading && this._shouldDisplayLoader ?
|
|
27778
|
+
return De`<div role="status" aria-live="polite" .aria-busy=${this.isLoading} class=${n}>
|
|
27779
|
+
${this.isLoading && this._shouldDisplayLoader ? De`<div class="pkt-loader__spinner">
|
|
27780
27780
|
<pkt-icon
|
|
27781
27781
|
name=${this.getVariant(this.variant)}
|
|
27782
27782
|
path=${this.loadingAnimationPath}
|
|
27783
27783
|
class="pkt-loader__svg pkt-loader__${this.variant}"
|
|
27784
27784
|
></pkt-icon>
|
|
27785
|
-
${this.message &&
|
|
27785
|
+
${this.message && De`<p>${this.message}</p>`}
|
|
27786
27786
|
</div>` : Ge}
|
|
27787
27787
|
<div class=${i} ${un(this.defaultSlot)}></div>
|
|
27788
27788
|
</div>`;
|
|
@@ -27867,8 +27867,8 @@ let Cf = class extends ka {
|
|
|
27867
27867
|
"pkt-messagebox--closable": this.closable,
|
|
27868
27868
|
"pkt-hide": this._isClosed
|
|
27869
27869
|
};
|
|
27870
|
-
return
|
|
27871
|
-
${this.closable ?
|
|
27870
|
+
return De`<div class=${Gt(r)}>
|
|
27871
|
+
${this.closable ? De`<div class="pkt-messagebox__close">
|
|
27872
27872
|
<button
|
|
27873
27873
|
@click=${this.close}
|
|
27874
27874
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
@@ -27876,7 +27876,7 @@ let Cf = class extends ka {
|
|
|
27876
27876
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
27877
27877
|
</button>
|
|
27878
27878
|
</div>` : Ge}
|
|
27879
|
-
${this.title ?
|
|
27879
|
+
${this.title ? De`<div class="pkt-messagebox__title">${this.title}</div>` : Ge}
|
|
27880
27880
|
<div class="pkt-messagebox__text" ${un(this.defaultSlot)}></div>
|
|
27881
27881
|
</div>`;
|
|
27882
27882
|
}
|
|
@@ -27987,7 +27987,7 @@ let Ss = class extends ka {
|
|
|
27987
27987
|
"pkt-btn--icon-only": !0,
|
|
27988
27988
|
"pkt-btn--medium": !0
|
|
27989
27989
|
};
|
|
27990
|
-
return
|
|
27990
|
+
return De`
|
|
27991
27991
|
<dialog
|
|
27992
27992
|
class=${Gt(n)}
|
|
27993
27993
|
${un(this.dialogRef)}
|
|
@@ -27996,12 +27996,12 @@ let Ss = class extends ka {
|
|
|
27996
27996
|
@close=${(D) => this.close(D, !0)}
|
|
27997
27997
|
>
|
|
27998
27998
|
<div class="pkt-modal__wrapper">
|
|
27999
|
-
${this.headingText || !this.hideCloseButton ?
|
|
27999
|
+
${this.headingText || !this.hideCloseButton ? De`<div class="pkt-modal__header">
|
|
28000
28000
|
<div class="pkt-modal__header-background"></div>
|
|
28001
|
-
${this.headingText ?
|
|
28001
|
+
${this.headingText ? De`<h1 id="pkt-modal__headingText" class=${Gt(i)}>
|
|
28002
28002
|
${this.headingText}
|
|
28003
|
-
</h1>` :
|
|
28004
|
-
${this.hideCloseButton ?
|
|
28003
|
+
</h1>` : De`<div class="pkt-modal__headingText"></div>`}
|
|
28004
|
+
${this.hideCloseButton ? De`<div class="pkt-modal__noCloseButton"></div>` : De`<div class="${Gt(h)}">
|
|
28005
28005
|
<pkt-button
|
|
28006
28006
|
@click=${(D) => this.close(D)}
|
|
28007
28007
|
class=${Gt(m)}
|
|
@@ -28119,7 +28119,7 @@ let la = class extends ka {
|
|
|
28119
28119
|
"pkt-progressbar__status-placement--center": this.statusPlacement === "center",
|
|
28120
28120
|
"pkt-progressbar__status-placement--left": this.statusPlacement === "left"
|
|
28121
28121
|
});
|
|
28122
|
-
return
|
|
28122
|
+
return De` <div
|
|
28123
28123
|
class="pkt-progressbar__container"
|
|
28124
28124
|
.ref=${this.progressBarRef}
|
|
28125
28125
|
style=${mI({
|
|
@@ -28127,13 +28127,13 @@ let la = class extends ka {
|
|
|
28127
28127
|
"--pkt-progress-width": `${l}%`
|
|
28128
28128
|
})}
|
|
28129
28129
|
>
|
|
28130
|
-
${this.title ?
|
|
28130
|
+
${this.title ? De`<p id=${`${this.progressBarId}-title`} class=${m}>${this.title}</p>` : Ge}
|
|
28131
28131
|
|
|
28132
28132
|
<div class="pkt-progressbar__bar-wrapper">
|
|
28133
28133
|
<div class=${h}></div>
|
|
28134
28134
|
</div>
|
|
28135
28135
|
|
|
28136
|
-
${r ?
|
|
28136
|
+
${r ? De`<div class=${D}>
|
|
28137
28137
|
<span class=${x} ${un(this.labelRef)}>
|
|
28138
28138
|
${this.statusType === "percentage" ? `${l}%` : c}
|
|
28139
28139
|
</span>
|
|
@@ -28235,13 +28235,13 @@ let hd = class extends dn {
|
|
|
28235
28235
|
"pkt-input-check__input-label": !0,
|
|
28236
28236
|
"pkt-input-check__input-label--disabled": this.disabled,
|
|
28237
28237
|
"pkt-sr-only": this.hideLabel
|
|
28238
|
-
}), l = () =>
|
|
28238
|
+
}), l = () => De`
|
|
28239
28239
|
<label class=${i} for=${this.id + "-internal"}>
|
|
28240
28240
|
${this.label}
|
|
28241
|
-
${this.checkHelptext ?
|
|
28241
|
+
${this.checkHelptext ? De`<div class="pkt-input-check__input-helptext">${this.checkHelptext}</div>` : Ge}
|
|
28242
28242
|
</label>
|
|
28243
28243
|
`;
|
|
28244
|
-
return
|
|
28244
|
+
return De`
|
|
28245
28245
|
<div class="pkt-input-check">
|
|
28246
28246
|
<div class=${r}>
|
|
28247
28247
|
<input
|
|
@@ -28338,7 +28338,7 @@ let ng = class extends dn {
|
|
|
28338
28338
|
"pkt-input--fullwidth": this.fullwidth,
|
|
28339
28339
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
28340
28340
|
}), i = this.ariaLabelledby || `${this.id}-input-label`;
|
|
28341
|
-
return
|
|
28341
|
+
return De`<pkt-input-wrapper
|
|
28342
28342
|
label=${this.label}
|
|
28343
28343
|
?counter=${this.counter}
|
|
28344
28344
|
?disabled=${this.disabled}
|
|
@@ -28430,7 +28430,7 @@ let ou = class extends dn {
|
|
|
28430
28430
|
"pkt-input--fullwidth": this.fullwidth,
|
|
28431
28431
|
"pkt-input--counter-error": this.counter && this.counterMaxLength && this.value.length && this.value.length > this.counterMaxLength
|
|
28432
28432
|
}), l = this.ariaLabelledby || `${this.id}-input-label`;
|
|
28433
|
-
return
|
|
28433
|
+
return De`
|
|
28434
28434
|
<pkt-input-wrapper
|
|
28435
28435
|
label="${this.label}"
|
|
28436
28436
|
?counter=${this.counter}
|
|
@@ -28456,7 +28456,7 @@ let ou = class extends dn {
|
|
|
28456
28456
|
>
|
|
28457
28457
|
<div class="pkt-contents" ${un(this.helptextSlot)} name="helptext" slot="helptext"></div>
|
|
28458
28458
|
<div class="pkt-input__container">
|
|
28459
|
-
${this.prefix ?
|
|
28459
|
+
${this.prefix ? De`<div class="pkt-input-prefix">${this.prefix}</div>` : Ge}
|
|
28460
28460
|
<input
|
|
28461
28461
|
${un(this.inputRef)}
|
|
28462
28462
|
class=${i}
|
|
@@ -28497,19 +28497,19 @@ let ou = class extends dn {
|
|
|
28497
28497
|
}
|
|
28498
28498
|
}}
|
|
28499
28499
|
/>
|
|
28500
|
-
${this.suffix ?
|
|
28500
|
+
${this.suffix ? De`<div class="pkt-input-suffix">
|
|
28501
28501
|
${this.suffix}
|
|
28502
|
-
${this.iconNameRight ?
|
|
28502
|
+
${this.iconNameRight ? De`<pkt-icon
|
|
28503
28503
|
class="pkt-input-suffix-icon"
|
|
28504
28504
|
name=${this.iconNameRight}
|
|
28505
28505
|
></pkt-icon>` : Ge}
|
|
28506
|
-
${n ?
|
|
28506
|
+
${n ? De`<pkt-icon
|
|
28507
28507
|
class="pkt-input-suffix-icon"
|
|
28508
28508
|
name="magnifying-glass-big"
|
|
28509
28509
|
></pkt-icon>` : Ge}
|
|
28510
28510
|
</div>` : Ge}
|
|
28511
|
-
${!this.suffix && this.iconNameRight ?
|
|
28512
|
-
${!this.suffix && n ?
|
|
28511
|
+
${!this.suffix && this.iconNameRight ? De`<pkt-icon class="pkt-input-icon" name=${this.iconNameRight}></pkt-icon>` : Ge}
|
|
28512
|
+
${!this.suffix && n ? De`<pkt-icon class="pkt-input-icon" name="magnifying-glass-big"></pkt-icon>` : Ge}
|
|
28513
28513
|
</div>
|
|
28514
28514
|
</pkt-input-wrapper>
|
|
28515
28515
|
`;
|
|
@@ -28614,7 +28614,7 @@ let wy = class extends dn {
|
|
|
28614
28614
|
}
|
|
28615
28615
|
render() {
|
|
28616
28616
|
const r = `pkt-input ${this.fullwidth ? "pkt-input--fullwidth" : ""}`;
|
|
28617
|
-
return
|
|
28617
|
+
return De`
|
|
28618
28618
|
<pkt-input-wrapper
|
|
28619
28619
|
?counter=${this.counter}
|
|
28620
28620
|
?disabled=${this.disabled}
|
|
@@ -28659,7 +28659,7 @@ let wy = class extends dn {
|
|
|
28659
28659
|
${un(this.inputRef)}
|
|
28660
28660
|
>
|
|
28661
28661
|
${this._options.length > 0 && this._options.map(
|
|
28662
|
-
(n) =>
|
|
28662
|
+
(n) => De`<option
|
|
28663
28663
|
value=${n.value}
|
|
28664
28664
|
?selected=${this.value == n.value || n.selected}
|
|
28665
28665
|
?disabled=${n.disabled}
|
|
@@ -28715,7 +28715,7 @@ let rg = class extends ka {
|
|
|
28715
28715
|
"pkt-component--has-list": this.strings.length > 0,
|
|
28716
28716
|
"pkt-darkmode": this.darkmode
|
|
28717
28717
|
};
|
|
28718
|
-
return
|
|
28718
|
+
return De`
|
|
28719
28719
|
<div class="${Gt(r)}">
|
|
28720
28720
|
<h1 class="pkt-txt-28">${this.string}</h1>
|
|
28721
28721
|
|
|
@@ -28742,9 +28742,9 @@ let rg = class extends ka {
|
|
|
28742
28742
|
`;
|
|
28743
28743
|
}
|
|
28744
28744
|
renderList(r) {
|
|
28745
|
-
return
|
|
28745
|
+
return De`
|
|
28746
28746
|
<ul>
|
|
28747
|
-
${r.map((n) =>
|
|
28747
|
+
${r.map((n) => De`<li>${n}</li>`)}
|
|
28748
28748
|
</ul>
|
|
28749
28749
|
`;
|
|
28750
28750
|
}
|
|
@@ -28878,7 +28878,7 @@ const _f = xr(
|
|
|
28878
28878
|
disabled: N = void 0,
|
|
28879
28879
|
loadingAnimationPath: R = window.pktAnimationPath,
|
|
28880
28880
|
...O
|
|
28881
|
-
},
|
|
28881
|
+
}, I) => {
|
|
28882
28882
|
const J = [
|
|
28883
28883
|
n,
|
|
28884
28884
|
"pkt-btn",
|
|
@@ -28898,7 +28898,7 @@ const _f = xr(
|
|
|
28898
28898
|
disabled: N,
|
|
28899
28899
|
className: J,
|
|
28900
28900
|
type: m,
|
|
28901
|
-
ref:
|
|
28901
|
+
ref: I,
|
|
28902
28902
|
children: [
|
|
28903
28903
|
$ && /* @__PURE__ */ L.jsx(Vn, { className: "pkt-btn__icon pkt-btn__spinner", name: "spinner-blue", path: R }),
|
|
28904
28904
|
D !== "label-only" && /* @__PURE__ */ L.jsx(Vn, { className: "pkt-btn__icon", name: i }),
|
|
@@ -28932,21 +28932,23 @@ const YS = xr(
|
|
|
28932
28932
|
isSwitch: D = !1,
|
|
28933
28933
|
hideLabel: x = !1,
|
|
28934
28934
|
labelPosition: E,
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28935
|
+
defaultChecked: $,
|
|
28936
|
+
checked: N,
|
|
28937
|
+
...R
|
|
28938
|
+
}, O) => {
|
|
28939
|
+
const I = [m, "pkt-input-check"].filter(Boolean).join(" ");
|
|
28940
|
+
return /* @__PURE__ */ L.jsx("div", { className: I, children: /* @__PURE__ */ L.jsxs("div", { className: `pkt-input-check__input ${n ? "pkt-input-check__input--tile" : ""}`, children: [
|
|
28940
28941
|
/* @__PURE__ */ L.jsx(
|
|
28941
28942
|
"input",
|
|
28942
28943
|
{
|
|
28943
28944
|
role: D ? "switch" : "checkbox",
|
|
28944
|
-
ref:
|
|
28945
|
+
ref: O,
|
|
28945
28946
|
className: `pkt-input-check__input-checkbox ${h ? "pkt-input-check__input-checkbox--error" : ""}`,
|
|
28946
28947
|
type: "checkbox",
|
|
28947
28948
|
id: r,
|
|
28948
28949
|
disabled: i,
|
|
28949
|
-
...N
|
|
28950
|
+
...N !== void 0 ? { checked: N } : { defaultChecked: $ },
|
|
28951
|
+
...R
|
|
28950
28952
|
}
|
|
28951
28953
|
),
|
|
28952
28954
|
/* @__PURE__ */ L.jsxs("label", { className: "pkt-input-check__input-label", htmlFor: r, children: [
|
|
@@ -29017,11 +29019,11 @@ const qH = ({
|
|
|
29017
29019
|
cookieDomain: N = null,
|
|
29018
29020
|
cookieSecure: R = null,
|
|
29019
29021
|
cookieExpiryDays: O = null,
|
|
29020
|
-
onToggleConsent:
|
|
29022
|
+
onToggleConsent: I = (J) => {
|
|
29021
29023
|
console.log(J.detail);
|
|
29022
29024
|
}
|
|
29023
29025
|
}) => {
|
|
29024
|
-
var V,
|
|
29026
|
+
var V, we;
|
|
29025
29027
|
const J = [l, "pkt-footer"].filter(Boolean).join(" ");
|
|
29026
29028
|
return /* @__PURE__ */ L.jsx("footer", { className: J, "data-mode": "dark", children: /* @__PURE__ */ L.jsxs("div", { className: "pkt-footer__container", children: [
|
|
29027
29029
|
/* @__PURE__ */ L.jsxs("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
@@ -29048,7 +29050,7 @@ const qH = ({
|
|
|
29048
29050
|
/* @__PURE__ */ L.jsx("h2", { className: "pkt-footer__title", children: n.title }),
|
|
29049
29051
|
/* @__PURE__ */ L.jsxs("ul", { className: "pkt-footer__list", children: [
|
|
29050
29052
|
n.text && /* @__PURE__ */ L.jsx("li", { className: "pkt-footer__text", children: n.text }),
|
|
29051
|
-
(
|
|
29053
|
+
(we = n.links) == null ? void 0 : we.map((q, W) => /* @__PURE__ */ L.jsx("li", { className: "pkt-footer__list-item", children: /* @__PURE__ */ L.jsxs(
|
|
29052
29054
|
"a",
|
|
29053
29055
|
{
|
|
29054
29056
|
className: `pkt-footer__link ${q.external ? "pkt-link--external" : ""}`,
|
|
@@ -29102,7 +29104,7 @@ const qH = ({
|
|
|
29102
29104
|
cookieDomain: N,
|
|
29103
29105
|
cookieSecure: R,
|
|
29104
29106
|
cookieExpiryDays: O,
|
|
29105
|
-
onToggleConsent:
|
|
29107
|
+
onToggleConsent: I
|
|
29106
29108
|
}
|
|
29107
29109
|
) })
|
|
29108
29110
|
] })
|
|
@@ -29151,16 +29153,16 @@ const qH = ({
|
|
|
29151
29153
|
}) => {
|
|
29152
29154
|
const O = [R, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
29153
29155
|
return /* @__PURE__ */ L.jsx("footer", { className: O, "data-mode": "dark", children: /* @__PURE__ */ L.jsx("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ L.jsxs("ul", { className: "pkt-footer-simple__list", children: [
|
|
29154
|
-
r.map((
|
|
29156
|
+
r.map((I, J) => /* @__PURE__ */ L.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ L.jsxs(
|
|
29155
29157
|
"a",
|
|
29156
29158
|
{
|
|
29157
|
-
className: `pkt-footer-simple__link ${
|
|
29158
|
-
href:
|
|
29159
|
-
target:
|
|
29160
|
-
rel:
|
|
29159
|
+
className: `pkt-footer-simple__link ${I.external ? " pkt-link--external" : ""}`,
|
|
29160
|
+
href: I.href,
|
|
29161
|
+
target: I.openInNewTab || n ? "_blank" : "_self",
|
|
29162
|
+
rel: I.openInNewTab || n ? "noopener noreferrer" : void 0,
|
|
29161
29163
|
children: [
|
|
29162
29164
|
/* @__PURE__ */ L.jsx(Vn, { className: "pkt-footer-simple__link-icon", name: "chevron-right" }),
|
|
29163
|
-
|
|
29165
|
+
I.text
|
|
29164
29166
|
]
|
|
29165
29167
|
}
|
|
29166
29168
|
) }, J)),
|
|
@@ -29258,10 +29260,10 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29258
29260
|
showMenuButton: N = !1,
|
|
29259
29261
|
showLogOutButton: R = !1,
|
|
29260
29262
|
openMenu: O,
|
|
29261
|
-
logOut:
|
|
29263
|
+
logOut: I,
|
|
29262
29264
|
changeRepresentation: J,
|
|
29263
29265
|
children: V,
|
|
29264
|
-
...
|
|
29266
|
+
...we
|
|
29265
29267
|
}, q) => {
|
|
29266
29268
|
const W = cn.useMemo(() => typeof (h == null ? void 0 : h.lastLoggedIn) == "string" ? h.lastLoggedIn : h != null && h.lastLoggedIn ? new Date(h.lastLoggedIn).toLocaleString("nb-NO", {
|
|
29267
29269
|
year: "numeric",
|
|
@@ -29286,7 +29288,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29286
29288
|
return /* @__PURE__ */ L.jsxs(
|
|
29287
29289
|
"header",
|
|
29288
29290
|
{
|
|
29289
|
-
...
|
|
29291
|
+
...we,
|
|
29290
29292
|
id: "pkt-header",
|
|
29291
29293
|
"data-testid": "pkt-header",
|
|
29292
29294
|
"aria-label": "Topp",
|
|
@@ -29400,7 +29402,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29400
29402
|
je.iconName && /* @__PURE__ */ L.jsx(Vn, { name: je.iconName, className: "pkt-link__icon" }),
|
|
29401
29403
|
je.title
|
|
29402
29404
|
] }) }, `userOptions-${rt}`)),
|
|
29403
|
-
!R && /* @__PURE__ */ L.jsx("li", { children: /* @__PURE__ */ L.jsxs("button", { className: "pkt-link-button pkt-link", onClick:
|
|
29405
|
+
!R && /* @__PURE__ */ L.jsx("li", { children: /* @__PURE__ */ L.jsxs("button", { className: "pkt-link-button pkt-link", onClick: I, children: [
|
|
29404
29406
|
/* @__PURE__ */ L.jsx(Vn, { name: "exit", className: "pkt-link__icon" }),
|
|
29405
29407
|
"Logg ut"
|
|
29406
29408
|
] }) })
|
|
@@ -29417,7 +29419,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29417
29419
|
className: "pkt-header__user-btn pkt-header__user-btn-logout",
|
|
29418
29420
|
iconName: "exit",
|
|
29419
29421
|
role: "button",
|
|
29420
|
-
onClick:
|
|
29422
|
+
onClick: I,
|
|
29421
29423
|
skin: "secondary",
|
|
29422
29424
|
variant: "icon-right",
|
|
29423
29425
|
children: "Logg ut"
|
|
@@ -29464,10 +29466,10 @@ const $y = xr(
|
|
|
29464
29466
|
requiredText: N = "Må fylles ut",
|
|
29465
29467
|
hasError: R = !1,
|
|
29466
29468
|
errorMessage: O,
|
|
29467
|
-
disabled:
|
|
29469
|
+
disabled: I = !1,
|
|
29468
29470
|
inline: J = !1,
|
|
29469
29471
|
ariaDescribedby: V,
|
|
29470
|
-
useWrapper:
|
|
29472
|
+
useWrapper: we = !0,
|
|
29471
29473
|
children: q,
|
|
29472
29474
|
className: W = "",
|
|
29473
29475
|
hasFieldset: K = !1,
|
|
@@ -29478,7 +29480,7 @@ const $y = xr(
|
|
|
29478
29480
|
"pkt-inputwrapper",
|
|
29479
29481
|
W,
|
|
29480
29482
|
R ? "pkt-inputwrapper--error" : "",
|
|
29481
|
-
|
|
29483
|
+
I ? "pkt-inputwrapper--disabled" : "",
|
|
29482
29484
|
J ? "pkt-inputwrapper--inline" : ""
|
|
29483
29485
|
].filter(Boolean).join(" "), Ae = [
|
|
29484
29486
|
"pkt-tag",
|
|
@@ -29495,9 +29497,9 @@ const $y = xr(
|
|
|
29495
29497
|
" ",
|
|
29496
29498
|
Ve && /* @__PURE__ */ L.jsx("span", { className: Ae, children: Ve })
|
|
29497
29499
|
] });
|
|
29498
|
-
return
|
|
29500
|
+
return we ? K ? /* @__PURE__ */ L.jsx("legend", { className: "pkt-inputwrapper__legend", id: `${r}-label`, children: le }) : /* @__PURE__ */ L.jsx("label", { className: "pkt-inputwrapper__label", htmlFor: r, "aria-describedby": He, id: `${r}-label`, children: le }) : /* @__PURE__ */ L.jsx("label", { htmlFor: r, className: "pkt-sr-only", "aria-describedby": He, id: `${r}-label`, children: n });
|
|
29499
29501
|
}, Se = () => !i && !l ? null : /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
29500
|
-
i && /* @__PURE__ */ L.jsx("div", { className: "pkt-inputwrapper__helptext", id: `${r}-helptext`, children: i }),
|
|
29502
|
+
i && we && /* @__PURE__ */ L.jsx("div", { className: "pkt-inputwrapper__helptext", id: `${r}-helptext`, children: i }),
|
|
29501
29503
|
l && /* @__PURE__ */ L.jsxs("div", { className: "pkt-inputwrapper__helptext-expandable", children: [
|
|
29502
29504
|
/* @__PURE__ */ L.jsx(
|
|
29503
29505
|
_f,
|
|
@@ -29681,7 +29683,7 @@ function ow(r, n, i) {
|
|
|
29681
29683
|
return "{}";
|
|
29682
29684
|
ty.push(r);
|
|
29683
29685
|
var D = "{" + h.newLine + x.map(function($, N) {
|
|
29684
|
-
var R = x.length - 1 === N ? h.newLine : "," + h.newLineOrSpace, O = typeof $ == "symbol",
|
|
29686
|
+
var R = x.length - 1 === N ? h.newLine : "," + h.newLineOrSpace, O = typeof $ == "symbol", I = !O && /^[a-z$_][a-z$_0-9]*$/i.test($.toString()), J = O || I ? $ : ow($, c), V = ow(r[$], c, i + c.indent);
|
|
29685
29687
|
return c.transform && (V = c.transform(r, $, V)), h.indent + String(J) + ": " + V + R;
|
|
29686
29688
|
}).join("") + h.pad + "}";
|
|
29687
29689
|
return ty.pop(), m(D);
|
|
@@ -29705,12 +29707,12 @@ var eT;
|
|
|
29705
29707
|
function oM() {
|
|
29706
29708
|
if (eT) return nr;
|
|
29707
29709
|
eT = 1;
|
|
29708
|
-
var r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), m = Symbol.for("react.context"), D = Symbol.for("react.server_context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"),
|
|
29709
|
-
|
|
29710
|
+
var r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), m = Symbol.for("react.context"), D = Symbol.for("react.server_context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), I;
|
|
29711
|
+
I = Symbol.for("react.module.reference");
|
|
29710
29712
|
function J(V) {
|
|
29711
29713
|
if (typeof V == "object" && V !== null) {
|
|
29712
|
-
var
|
|
29713
|
-
switch (
|
|
29714
|
+
var we = V.$$typeof;
|
|
29715
|
+
switch (we) {
|
|
29714
29716
|
case r:
|
|
29715
29717
|
switch (V = V.type, V) {
|
|
29716
29718
|
case i:
|
|
@@ -29729,11 +29731,11 @@ function oM() {
|
|
|
29729
29731
|
case h:
|
|
29730
29732
|
return V;
|
|
29731
29733
|
default:
|
|
29732
|
-
return
|
|
29734
|
+
return we;
|
|
29733
29735
|
}
|
|
29734
29736
|
}
|
|
29735
29737
|
case n:
|
|
29736
|
-
return
|
|
29738
|
+
return we;
|
|
29737
29739
|
}
|
|
29738
29740
|
}
|
|
29739
29741
|
}
|
|
@@ -29766,7 +29768,7 @@ function oM() {
|
|
|
29766
29768
|
}, nr.isSuspenseList = function(V) {
|
|
29767
29769
|
return J(V) === $;
|
|
29768
29770
|
}, nr.isValidElementType = function(V) {
|
|
29769
|
-
return typeof V == "string" || typeof V == "function" || V === i || V === c || V === l || V === E || V === $ || V === O || typeof V == "object" && V !== null && (V.$$typeof === R || V.$$typeof === N || V.$$typeof === h || V.$$typeof === m || V.$$typeof === x || V.$$typeof ===
|
|
29771
|
+
return typeof V == "string" || typeof V == "function" || V === i || V === c || V === l || V === E || V === $ || V === O || typeof V == "object" && V !== null && (V.$$typeof === R || V.$$typeof === N || V.$$typeof === h || V.$$typeof === m || V.$$typeof === x || V.$$typeof === I || V.getModuleId !== void 0);
|
|
29770
29772
|
}, nr.typeOf = J, nr;
|
|
29771
29773
|
}
|
|
29772
29774
|
var rr = {};
|
|
@@ -29782,10 +29784,10 @@ var rr = {};
|
|
|
29782
29784
|
var tT;
|
|
29783
29785
|
function sM() {
|
|
29784
29786
|
return tT || (tT = 1, process.env.NODE_ENV !== "production" && function() {
|
|
29785
|
-
var r = !1, n = !1, i = !1, l = !1, c = !1, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), N = Symbol.for("react.context"), R = Symbol.for("react.server_context"), O = Symbol.for("react.forward_ref"),
|
|
29787
|
+
var r = !1, n = !1, i = !1, l = !1, c = !1, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), N = Symbol.for("react.context"), R = Symbol.for("react.server_context"), O = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), we = Symbol.for("react.lazy"), q = Symbol.for("react.offscreen"), W;
|
|
29786
29788
|
W = Symbol.for("react.module.reference");
|
|
29787
29789
|
function K(it) {
|
|
29788
|
-
return !!(typeof it == "string" || typeof it == "function" || it === D || it === E || c || it === x || it ===
|
|
29790
|
+
return !!(typeof it == "string" || typeof it == "function" || it === D || it === E || c || it === x || it === I || it === J || l || it === q || r || n || i || typeof it == "object" && it !== null && (it.$$typeof === we || it.$$typeof === V || it.$$typeof === $ || it.$$typeof === N || it.$$typeof === O || // This needs to include all possible module reference object
|
|
29789
29791
|
// types supported by any Flight configuration anywhere since
|
|
29790
29792
|
// we don't know which Flight build this will end up being used
|
|
29791
29793
|
// with.
|
|
@@ -29801,7 +29803,7 @@ function sM() {
|
|
|
29801
29803
|
case D:
|
|
29802
29804
|
case E:
|
|
29803
29805
|
case x:
|
|
29804
|
-
case
|
|
29806
|
+
case I:
|
|
29805
29807
|
case J:
|
|
29806
29808
|
return mn;
|
|
29807
29809
|
default:
|
|
@@ -29810,7 +29812,7 @@ function sM() {
|
|
|
29810
29812
|
case R:
|
|
29811
29813
|
case N:
|
|
29812
29814
|
case O:
|
|
29813
|
-
case
|
|
29815
|
+
case we:
|
|
29814
29816
|
case V:
|
|
29815
29817
|
case $:
|
|
29816
29818
|
return vr;
|
|
@@ -29823,7 +29825,7 @@ function sM() {
|
|
|
29823
29825
|
}
|
|
29824
29826
|
}
|
|
29825
29827
|
}
|
|
29826
|
-
var ae = N, ue = $, Ce = h, ye = O, Ve = D, He =
|
|
29828
|
+
var ae = N, ue = $, Ce = h, ye = O, Ve = D, He = we, Be = V, Je = m, je = E, rt = x, Re = I, Ae = J, ce = !1, Ne = !1;
|
|
29827
29829
|
function Se(it) {
|
|
29828
29830
|
return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
29829
29831
|
}
|
|
@@ -29846,7 +29848,7 @@ function sM() {
|
|
|
29846
29848
|
return X(it) === D;
|
|
29847
29849
|
}
|
|
29848
29850
|
function mt(it) {
|
|
29849
|
-
return X(it) ===
|
|
29851
|
+
return X(it) === we;
|
|
29850
29852
|
}
|
|
29851
29853
|
function gt(it) {
|
|
29852
29854
|
return X(it) === V;
|
|
@@ -29861,7 +29863,7 @@ function sM() {
|
|
|
29861
29863
|
return X(it) === x;
|
|
29862
29864
|
}
|
|
29863
29865
|
function jn(it) {
|
|
29864
|
-
return X(it) ===
|
|
29866
|
+
return X(it) === I;
|
|
29865
29867
|
}
|
|
29866
29868
|
function Ft(it) {
|
|
29867
29869
|
return X(it) === J;
|
|
@@ -30041,12 +30043,12 @@ var wM = function(n) {
|
|
|
30041
30043
|
if (!n && !l)
|
|
30042
30044
|
throw new Error('The prop "'.concat(r, '" has no value and no default: could not be formatted'));
|
|
30043
30045
|
var x = n ? i : c, E = D.useBooleanShorthandSyntax, $ = D.tabStop, N = xM(x, h, m, D), R = " ", O = `
|
|
30044
|
-
`.concat(dd(m + 1, $)),
|
|
30046
|
+
`.concat(dd(m + 1, $)), I = N.includes(`
|
|
30045
30047
|
`);
|
|
30046
30048
|
return E && N === "{false}" && !l ? (R = "", O = "") : E && N === "{true}" ? (R += "".concat(r), O += "".concat(r)) : (R += "".concat(r, "=").concat(N), O += "".concat(r, "=").concat(N)), {
|
|
30047
30049
|
attributeFormattedInline: R,
|
|
30048
30050
|
attributeFormattedMultiline: O,
|
|
30049
|
-
isMultilineAttribute:
|
|
30051
|
+
isMultilineAttribute: I
|
|
30050
30052
|
};
|
|
30051
30053
|
}, _M = function(r, n) {
|
|
30052
30054
|
var i = r.slice(0, r.length > 0 ? r.length - 1 : 0), l = r[r.length - 1];
|
|
@@ -30092,11 +30094,11 @@ var AM = function(n, i, l, c, h) {
|
|
|
30092
30094
|
var c = r.type, h = r.displayName, m = h === void 0 ? "" : h, D = r.childrens, x = r.props, E = x === void 0 ? {} : x, $ = r.defaultProps, N = $ === void 0 ? {} : $;
|
|
30093
30095
|
if (c !== "ReactElement")
|
|
30094
30096
|
throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(c));
|
|
30095
|
-
var R = l.filterProps, O = l.maxInlineAttributesLineLength,
|
|
30097
|
+
var R = l.filterProps, O = l.maxInlineAttributesLineLength, I = l.showDefaultProps, J = l.sortProps, V = l.tabStop, we = "<".concat(m), q = we, W = we, K = !1, X = [], ae = FM(E, R);
|
|
30096
30098
|
Object.keys(E).filter(ae).filter(NM(N, E)).forEach(function(ye) {
|
|
30097
30099
|
return X.push(ye);
|
|
30098
30100
|
}), Object.keys(N).filter(ae).filter(function() {
|
|
30099
|
-
return
|
|
30101
|
+
return I;
|
|
30100
30102
|
}).filter(function(ye) {
|
|
30101
30103
|
return !X.includes(ye);
|
|
30102
30104
|
}).forEach(function(ye) {
|
|
@@ -30107,15 +30109,15 @@ var AM = function(n, i, l, c, h) {
|
|
|
30107
30109
|
var Ve = CM(ye, Object.keys(E).includes(ye), E[ye], Object.keys(N).includes(ye), N[ye], n, i, l), He = Ve.attributeFormattedInline, Be = Ve.attributeFormattedMultiline, Je = Ve.isMultilineAttribute;
|
|
30108
30110
|
Je && (K = !0), q += He, W += Be;
|
|
30109
30111
|
}), W += `
|
|
30110
|
-
`.concat(dd(i, V)), PM(ue, q, K, n, i, V, O) ?
|
|
30112
|
+
`.concat(dd(i, V)), PM(ue, q, K, n, i, V, O) ? we = W : we = q, D && D.length > 0) {
|
|
30111
30113
|
var Ce = i + 1;
|
|
30112
|
-
|
|
30113
|
-
`,
|
|
30114
|
-
`.concat(dd(Ce, V))), n || (
|
|
30115
|
-
`,
|
|
30114
|
+
we += ">", n || (we += `
|
|
30115
|
+
`, we += dd(Ce, V)), we += D.reduce(_M, []).map($M(n, Ce, l)).join(n ? "" : `
|
|
30116
|
+
`.concat(dd(Ce, V))), n || (we += `
|
|
30117
|
+
`, we += dd(Ce - 1, V)), we += "</".concat(m, ">");
|
|
30116
30118
|
} else
|
|
30117
|
-
jF(ue, q, i, V, O) || (
|
|
30118
|
-
return
|
|
30119
|
+
jF(ue, q, i, V, O) || (we += " "), we += "/>";
|
|
30120
|
+
return we;
|
|
30119
30121
|
}, RM = "", oT = "React.Fragment", LM = function(n, i, l) {
|
|
30120
30122
|
var c = {};
|
|
30121
30123
|
return i && (c = {
|
|
@@ -30161,7 +30163,7 @@ var AM = function(n, i, l, c, h) {
|
|
|
30161
30163
|
}, HM = function(r, n) {
|
|
30162
30164
|
return Fw(r, !1, 0, n);
|
|
30163
30165
|
}, WM = function(n) {
|
|
30164
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = i.filterProps, c = l === void 0 ? [] : l, h = i.showDefaultProps, m = h === void 0 ? !0 : h, D = i.showFunctions, x = D === void 0 ? !1 : D, E = i.functionValue, $ = i.tabStop, N = $ === void 0 ? 2 : $, R = i.useBooleanShorthandSyntax, O = R === void 0 ? !0 : R,
|
|
30166
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = i.filterProps, c = l === void 0 ? [] : l, h = i.showDefaultProps, m = h === void 0 ? !0 : h, D = i.showFunctions, x = D === void 0 ? !1 : D, E = i.functionValue, $ = i.tabStop, N = $ === void 0 ? 2 : $, R = i.useBooleanShorthandSyntax, O = R === void 0 ? !0 : R, I = i.useFragmentShortSyntax, J = I === void 0 ? !0 : I, V = i.sortProps, we = V === void 0 ? !0 : V, q = i.maxInlineAttributesLineLength, W = i.displayName;
|
|
30165
30167
|
if (!n)
|
|
30166
30168
|
throw new Error("react-element-to-jsx-string: Expected a ReactElement");
|
|
30167
30169
|
var K = {
|
|
@@ -30172,7 +30174,7 @@ var AM = function(n, i, l, c, h) {
|
|
|
30172
30174
|
tabStop: N,
|
|
30173
30175
|
useBooleanShorthandSyntax: O,
|
|
30174
30176
|
useFragmentShortSyntax: J,
|
|
30175
|
-
sortProps:
|
|
30177
|
+
sortProps: we,
|
|
30176
30178
|
maxInlineAttributesLineLength: q,
|
|
30177
30179
|
displayName: W
|
|
30178
30180
|
};
|
|
@@ -30194,9 +30196,9 @@ var AM = function(n, i, l, c, h) {
|
|
|
30194
30196
|
}
|
|
30195
30197
|
var i = /\r\n|[\n\r\u2028\u2029]/;
|
|
30196
30198
|
function l(h, m, D) {
|
|
30197
|
-
let x = Object.assign({ column: 0, line: -1 }, h.start), E = Object.assign({}, x, h.end), { linesAbove: $ = 2, linesBelow: N = 3 } = D || {}, R = x.line, O = x.column,
|
|
30198
|
-
R === -1 && (V = 0),
|
|
30199
|
-
let q =
|
|
30199
|
+
let x = Object.assign({ column: 0, line: -1 }, h.start), E = Object.assign({}, x, h.end), { linesAbove: $ = 2, linesBelow: N = 3 } = D || {}, R = x.line, O = x.column, I = E.line, J = E.column, V = Math.max(R - ($ + 1), 0), we = Math.min(m.length, I + N);
|
|
30200
|
+
R === -1 && (V = 0), I === -1 && (we = m.length);
|
|
30201
|
+
let q = I - R, W = {};
|
|
30200
30202
|
if (q) for (let K = 0; K <= q; K++) {
|
|
30201
30203
|
let X = K + R;
|
|
30202
30204
|
if (!O) W[X] = !0;
|
|
@@ -30210,11 +30212,11 @@ var AM = function(n, i, l, c, h) {
|
|
|
30210
30212
|
}
|
|
30211
30213
|
}
|
|
30212
30214
|
else O === J ? O ? W[R] = [O, 0] : W[R] = !0 : W[R] = [O, J - O];
|
|
30213
|
-
return { start: V, end:
|
|
30215
|
+
return { start: V, end: we, markerLines: W };
|
|
30214
30216
|
}
|
|
30215
30217
|
function c(h, m, D = {}) {
|
|
30216
|
-
let x = n(), E = h.split(i), { start: $, end: N, markerLines: R } = l(m, E, D), O = m.start && typeof m.start.column == "number",
|
|
30217
|
-
let q = $ + 1 +
|
|
30218
|
+
let x = n(), E = h.split(i), { start: $, end: N, markerLines: R } = l(m, E, D), O = m.start && typeof m.start.column == "number", I = String(N).length, J = h.split(i, N).slice($, N).map((V, we) => {
|
|
30219
|
+
let q = $ + 1 + we, W = ` ${` ${q}`.slice(-I)} |`, K = R[q], X = !R[q + 1];
|
|
30218
30220
|
if (K) {
|
|
30219
30221
|
let ae = "";
|
|
30220
30222
|
if (Array.isArray(K)) {
|
|
@@ -30226,7 +30228,7 @@ var AM = function(n, i, l, c, h) {
|
|
|
30226
30228
|
} else return ` ${x.gutter(W)}${V.length > 0 ? ` ${V}` : ""}`;
|
|
30227
30229
|
}).join(`
|
|
30228
30230
|
`);
|
|
30229
|
-
return D.message && !O && (J = `${" ".repeat(
|
|
30231
|
+
return D.message && !O && (J = `${" ".repeat(I + 1)}${D.message}
|
|
30230
30232
|
${J}`), J;
|
|
30231
30233
|
}
|
|
30232
30234
|
r.codeFrameColumns = c;
|
|
@@ -30249,10 +30251,10 @@ dc.prototype = { diff: function(r, n) {
|
|
|
30249
30251
|
r = this.castInput(r, l), n = this.castInput(n, l), r = this.removeEmpty(this.tokenize(r, l)), n = this.removeEmpty(this.tokenize(n, l));
|
|
30250
30252
|
var D = n.length, x = r.length, E = 1, $ = D + x;
|
|
30251
30253
|
l.maxEditLength != null && ($ = Math.min($, l.maxEditLength));
|
|
30252
|
-
var N = (i = l.timeout) !== null && i !== void 0 ? i : 1 / 0, R = Date.now() + N, O = [{ oldPos: -1, lastComponent: void 0 }],
|
|
30253
|
-
if (O[0].oldPos + 1 >= x &&
|
|
30254
|
+
var N = (i = l.timeout) !== null && i !== void 0 ? i : 1 / 0, R = Date.now() + N, O = [{ oldPos: -1, lastComponent: void 0 }], I = this.extractCommon(O[0], n, r, 0, l);
|
|
30255
|
+
if (O[0].oldPos + 1 >= x && I + 1 >= D) return m(sT(h, O[0].lastComponent, n, r, h.useLongestToken));
|
|
30254
30256
|
var J = -1 / 0, V = 1 / 0;
|
|
30255
|
-
function
|
|
30257
|
+
function we() {
|
|
30256
30258
|
for (var W = Math.max(J, -E); W <= Math.min(V, E); W += 2) {
|
|
30257
30259
|
var K = void 0, X = O[W - 1], ae = O[W + 1];
|
|
30258
30260
|
X && (O[W - 1] = void 0);
|
|
@@ -30266,19 +30268,19 @@ dc.prototype = { diff: function(r, n) {
|
|
|
30266
30268
|
O[W] = void 0;
|
|
30267
30269
|
continue;
|
|
30268
30270
|
}
|
|
30269
|
-
if (!ye || ue && X.oldPos < ae.oldPos ? K = h.addToPath(ae, !0, !1, 0, l) : K = h.addToPath(X, !1, !0, 1, l),
|
|
30270
|
-
O[W] = K, K.oldPos + 1 >= x && (V = Math.min(V, W - 1)),
|
|
30271
|
+
if (!ye || ue && X.oldPos < ae.oldPos ? K = h.addToPath(ae, !0, !1, 0, l) : K = h.addToPath(X, !1, !0, 1, l), I = h.extractCommon(K, n, r, W, l), K.oldPos + 1 >= x && I + 1 >= D) return m(sT(h, K.lastComponent, n, r, h.useLongestToken));
|
|
30272
|
+
O[W] = K, K.oldPos + 1 >= x && (V = Math.min(V, W - 1)), I + 1 >= D && (J = Math.max(J, W + 1));
|
|
30271
30273
|
}
|
|
30272
30274
|
E++;
|
|
30273
30275
|
}
|
|
30274
30276
|
if (c) (function W() {
|
|
30275
30277
|
setTimeout(function() {
|
|
30276
30278
|
if (E > $ || Date.now() > R) return c();
|
|
30277
|
-
|
|
30279
|
+
we() || W();
|
|
30278
30280
|
}, 0);
|
|
30279
30281
|
})();
|
|
30280
30282
|
else for (; E <= $ && Date.now() <= R; ) {
|
|
30281
|
-
var q =
|
|
30283
|
+
var q = we();
|
|
30282
30284
|
if (q) return q;
|
|
30283
30285
|
}
|
|
30284
30286
|
}, addToPath: function(r, n, i, l, c) {
|
|
@@ -30310,8 +30312,8 @@ function sT(r, n, i, l, c) {
|
|
|
30310
30312
|
else {
|
|
30311
30313
|
if (!N.added && c) {
|
|
30312
30314
|
var R = i.slice(E, E + N.count);
|
|
30313
|
-
R = R.map(function(O,
|
|
30314
|
-
var J = l[$ +
|
|
30315
|
+
R = R.map(function(O, I) {
|
|
30316
|
+
var J = l[$ + I];
|
|
30315
30317
|
return J.length > O.length ? J : O;
|
|
30316
30318
|
}), N.value = r.join(R);
|
|
30317
30319
|
} else N.value = r.join(i.slice(E, E + N.count));
|
|
@@ -30411,11 +30413,11 @@ function dT(r, n, i, l) {
|
|
|
30411
30413
|
else if (r && l) {
|
|
30412
30414
|
var $ = l.value.match(/^\s*/)[0], N = n.value.match(/^\s*/)[0], R = n.value.match(/\s*$/)[0], O = lT($, N);
|
|
30413
30415
|
n.value = ry(n.value, O);
|
|
30414
|
-
var
|
|
30415
|
-
n.value = Qk(n.value,
|
|
30416
|
+
var I = uT(ry($, O), R);
|
|
30417
|
+
n.value = Qk(n.value, I), l.value = bS(l.value, $, I), r.value = kS(r.value, $, $.slice(0, $.length - I.length));
|
|
30416
30418
|
} else if (l) {
|
|
30417
|
-
var J = l.value.match(/^\s*/)[0], V = n.value.match(/\s*$/)[0],
|
|
30418
|
-
n.value = Qk(n.value,
|
|
30419
|
+
var J = l.value.match(/^\s*/)[0], V = n.value.match(/\s*$/)[0], we = cT(V, J);
|
|
30420
|
+
n.value = Qk(n.value, we);
|
|
30419
30421
|
} else if (r) {
|
|
30420
30422
|
var q = r.value.match(/\s*$/)[0], W = n.value.match(/^\s*/)[0], K = cT(q, W);
|
|
30421
30423
|
n.value = ry(n.value, K);
|
|
@@ -30937,25 +30939,25 @@ function Y4(r, n, i) {
|
|
|
30937
30939
|
}
|
|
30938
30940
|
function CS(r, n, i) {
|
|
30939
30941
|
let l = n.type === "dedent" ? r.queue.slice(0, -1) : [...r.queue, n], c = "", h = 0, m = 0, D = 0;
|
|
30940
|
-
for (let
|
|
30942
|
+
for (let I of l) switch (I.type) {
|
|
30941
30943
|
case "indent":
|
|
30942
30944
|
$(), i.useTabs ? x(1) : E(i.tabWidth);
|
|
30943
30945
|
break;
|
|
30944
30946
|
case "stringAlign":
|
|
30945
|
-
$(), c +=
|
|
30947
|
+
$(), c += I.n, h += I.n.length;
|
|
30946
30948
|
break;
|
|
30947
30949
|
case "numberAlign":
|
|
30948
|
-
m += 1, D +=
|
|
30950
|
+
m += 1, D += I.n;
|
|
30949
30951
|
break;
|
|
30950
30952
|
default:
|
|
30951
|
-
throw new Error(`Unexpected type '${
|
|
30953
|
+
throw new Error(`Unexpected type '${I.type}'`);
|
|
30952
30954
|
}
|
|
30953
30955
|
return R(), { ...r, value: c, length: h, queue: l };
|
|
30954
|
-
function x(
|
|
30955
|
-
c += " ".repeat(
|
|
30956
|
+
function x(I) {
|
|
30957
|
+
c += " ".repeat(I), h += i.tabWidth * I;
|
|
30956
30958
|
}
|
|
30957
|
-
function E(
|
|
30958
|
-
c += " ".repeat(
|
|
30959
|
+
function E(I) {
|
|
30960
|
+
c += " ".repeat(I), h += I;
|
|
30959
30961
|
}
|
|
30960
30962
|
function $() {
|
|
30961
30963
|
i.useTabs ? N() : R();
|
|
@@ -31007,7 +31009,7 @@ function Kk(r, n, i, l, c, h) {
|
|
|
31007
31009
|
case md:
|
|
31008
31010
|
case fc: {
|
|
31009
31011
|
let R = N === md ? $ : $.parts, O = $[xS] ?? 0;
|
|
31010
|
-
for (let
|
|
31012
|
+
for (let I = R.length - 1; I >= O; I--) D.push({ mode: E, doc: R[I] });
|
|
31011
31013
|
break;
|
|
31012
31014
|
}
|
|
31013
31015
|
case vd:
|
|
@@ -31047,27 +31049,27 @@ function Kk(r, n, i, l, c, h) {
|
|
|
31047
31049
|
function Lw(r, n) {
|
|
31048
31050
|
let i = {}, l = n.printWidth, c = ex(n.endOfLine), h = 0, m = [{ ind: QF(), mode: Ho, doc: r }], D = [], x = !1, E = [], $ = 0;
|
|
31049
31051
|
for (y4(r); m.length > 0; ) {
|
|
31050
|
-
let { ind: R, mode: O, doc:
|
|
31051
|
-
switch (ph(
|
|
31052
|
+
let { ind: R, mode: O, doc: I } = m.pop();
|
|
31053
|
+
switch (ph(I)) {
|
|
31052
31054
|
case dh: {
|
|
31053
31055
|
let J = c !== `
|
|
31054
|
-
` ? $w(!1,
|
|
31055
|
-
`, c) :
|
|
31056
|
+
` ? $w(!1, I, `
|
|
31057
|
+
`, c) : I;
|
|
31056
31058
|
D.push(J), m.length > 0 && (h += ax(J));
|
|
31057
31059
|
break;
|
|
31058
31060
|
}
|
|
31059
31061
|
case md:
|
|
31060
|
-
for (let J =
|
|
31062
|
+
for (let J = I.length - 1; J >= 0; J--) m.push({ ind: R, mode: O, doc: I[J] });
|
|
31061
31063
|
break;
|
|
31062
31064
|
case fh:
|
|
31063
31065
|
if ($ >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
31064
31066
|
D.push(Hm), $++;
|
|
31065
31067
|
break;
|
|
31066
31068
|
case vd:
|
|
31067
|
-
m.push({ ind: V4(R, n), mode: O, doc:
|
|
31069
|
+
m.push({ ind: V4(R, n), mode: O, doc: I.contents });
|
|
31068
31070
|
break;
|
|
31069
31071
|
case yd:
|
|
31070
|
-
m.push({ ind: Y4(R,
|
|
31072
|
+
m.push({ ind: Y4(R, I.n, n), mode: O, doc: I.contents });
|
|
31071
31073
|
break;
|
|
31072
31074
|
case bd:
|
|
31073
31075
|
h -= _S(D);
|
|
@@ -31076,38 +31078,38 @@ function Lw(r, n) {
|
|
|
31076
31078
|
switch (O) {
|
|
31077
31079
|
case rc:
|
|
31078
31080
|
if (!x) {
|
|
31079
|
-
m.push({ ind: R, mode:
|
|
31081
|
+
m.push({ ind: R, mode: I.break ? Ho : rc, doc: I.contents });
|
|
31080
31082
|
break;
|
|
31081
31083
|
}
|
|
31082
31084
|
case Ho: {
|
|
31083
31085
|
x = !1;
|
|
31084
|
-
let J = { ind: R, mode: rc, doc:
|
|
31085
|
-
if (!
|
|
31086
|
-
else if (
|
|
31087
|
-
let q = Ka(!1,
|
|
31088
|
-
if (
|
|
31086
|
+
let J = { ind: R, mode: rc, doc: I.contents }, V = l - h, we = E.length > 0;
|
|
31087
|
+
if (!I.break && Kk(J, m, V, we, i)) m.push(J);
|
|
31088
|
+
else if (I.expandedStates) {
|
|
31089
|
+
let q = Ka(!1, I.expandedStates, -1);
|
|
31090
|
+
if (I.break) {
|
|
31089
31091
|
m.push({ ind: R, mode: Ho, doc: q });
|
|
31090
31092
|
break;
|
|
31091
|
-
} else for (let W = 1; W <
|
|
31093
|
+
} else for (let W = 1; W < I.expandedStates.length + 1; W++) if (W >= I.expandedStates.length) {
|
|
31092
31094
|
m.push({ ind: R, mode: Ho, doc: q });
|
|
31093
31095
|
break;
|
|
31094
31096
|
} else {
|
|
31095
|
-
let K =
|
|
31096
|
-
if (Kk(X, m, V,
|
|
31097
|
+
let K = I.expandedStates[W], X = { ind: R, mode: rc, doc: K };
|
|
31098
|
+
if (Kk(X, m, V, we, i)) {
|
|
31097
31099
|
m.push(X);
|
|
31098
31100
|
break;
|
|
31099
31101
|
}
|
|
31100
31102
|
}
|
|
31101
|
-
} else m.push({ ind: R, mode: Ho, doc:
|
|
31103
|
+
} else m.push({ ind: R, mode: Ho, doc: I.contents });
|
|
31102
31104
|
break;
|
|
31103
31105
|
}
|
|
31104
31106
|
}
|
|
31105
|
-
|
|
31107
|
+
I.id && (i[I.id] = Ka(!1, m, -1).mode);
|
|
31106
31108
|
break;
|
|
31107
31109
|
case fc: {
|
|
31108
|
-
let J = l - h, V =
|
|
31110
|
+
let J = l - h, V = I[xS] ?? 0, { parts: we } = I, q = we.length - V;
|
|
31109
31111
|
if (q === 0) break;
|
|
31110
|
-
let W =
|
|
31112
|
+
let W = we[V + 0], K = we[V + 1], X = { ind: R, mode: rc, doc: W }, ae = { ind: R, mode: Ho, doc: W }, ue = Kk(X, [], J, E.length > 0, i, !0);
|
|
31111
31113
|
if (q === 1) {
|
|
31112
31114
|
ue ? m.push(X) : m.push(ae);
|
|
31113
31115
|
break;
|
|
@@ -31117,25 +31119,25 @@ function Lw(r, n) {
|
|
|
31117
31119
|
ue ? m.push(Ce, X) : m.push(ye, ae);
|
|
31118
31120
|
break;
|
|
31119
31121
|
}
|
|
31120
|
-
let Ve =
|
|
31122
|
+
let Ve = we[V + 2], He = { ind: R, mode: O, doc: { ...I, [xS]: V + 2 } };
|
|
31121
31123
|
Kk({ ind: R, mode: rc, doc: [W, K, Ve] }, [], J, E.length > 0, i, !0) ? m.push(He, Ce, X) : ue ? m.push(He, ye, X) : m.push(He, ye, ae);
|
|
31122
31124
|
break;
|
|
31123
31125
|
}
|
|
31124
31126
|
case Ds:
|
|
31125
31127
|
case kd: {
|
|
31126
|
-
let J =
|
|
31128
|
+
let J = I.groupId ? i[I.groupId] : O;
|
|
31127
31129
|
if (J === Ho) {
|
|
31128
|
-
let V =
|
|
31130
|
+
let V = I.type === Ds ? I.breakContents : I.negate ? I.contents : kw(I.contents);
|
|
31129
31131
|
V && m.push({ ind: R, mode: O, doc: V });
|
|
31130
31132
|
}
|
|
31131
31133
|
if (J === rc) {
|
|
31132
|
-
let V =
|
|
31134
|
+
let V = I.type === Ds ? I.flatContents : I.negate ? kw(I.contents) : I.contents;
|
|
31133
31135
|
V && m.push({ ind: R, mode: O, doc: V });
|
|
31134
31136
|
}
|
|
31135
31137
|
break;
|
|
31136
31138
|
}
|
|
31137
31139
|
case wd:
|
|
31138
|
-
E.push({ ind: R, mode: O, doc:
|
|
31140
|
+
E.push({ ind: R, mode: O, doc: I.contents });
|
|
31139
31141
|
break;
|
|
31140
31142
|
case Dd:
|
|
31141
31143
|
E.length > 0 && m.push({ ind: R, mode: O, doc: rx });
|
|
@@ -31143,27 +31145,27 @@ function Lw(r, n) {
|
|
|
31143
31145
|
case vi:
|
|
31144
31146
|
switch (O) {
|
|
31145
31147
|
case rc:
|
|
31146
|
-
if (
|
|
31148
|
+
if (I.hard) x = !0;
|
|
31147
31149
|
else {
|
|
31148
|
-
|
|
31150
|
+
I.soft || (D.push(" "), h += 1);
|
|
31149
31151
|
break;
|
|
31150
31152
|
}
|
|
31151
31153
|
case Ho:
|
|
31152
31154
|
if (E.length > 0) {
|
|
31153
|
-
m.push({ ind: R, mode: O, doc:
|
|
31155
|
+
m.push({ ind: R, mode: O, doc: I }, ...E.reverse()), E.length = 0;
|
|
31154
31156
|
break;
|
|
31155
31157
|
}
|
|
31156
|
-
|
|
31158
|
+
I.literal ? R.root ? (D.push(c, R.root.value), h = R.root.length) : (D.push(c), h = 0) : (h -= _S(D), D.push(c + R.value), h = R.length);
|
|
31157
31159
|
break;
|
|
31158
31160
|
}
|
|
31159
31161
|
break;
|
|
31160
31162
|
case pc:
|
|
31161
|
-
m.push({ ind: R, mode: O, doc:
|
|
31163
|
+
m.push({ ind: R, mode: O, doc: I.contents });
|
|
31162
31164
|
break;
|
|
31163
31165
|
case sl:
|
|
31164
31166
|
break;
|
|
31165
31167
|
default:
|
|
31166
|
-
throw new ag(
|
|
31168
|
+
throw new ag(I);
|
|
31167
31169
|
}
|
|
31168
31170
|
m.length === 0 && E.length > 0 && (m.push(...E.reverse()), E.length = 0);
|
|
31169
31171
|
}
|
|
@@ -31171,8 +31173,8 @@ function Lw(r, n) {
|
|
|
31171
31173
|
if (N !== -1) {
|
|
31172
31174
|
let R = D.indexOf(Hm, N + 1);
|
|
31173
31175
|
if (R === -1) return { formatted: D.filter((V) => V !== Hm).join("") };
|
|
31174
|
-
let O = D.slice(0, N).join(""),
|
|
31175
|
-
return { formatted: O +
|
|
31176
|
+
let O = D.slice(0, N).join(""), I = D.slice(N + 1, R).join(""), J = D.slice(R + 1).join("");
|
|
31177
|
+
return { formatted: O + I + J, cursorNodeStart: O.length, cursorNodeText: I };
|
|
31176
31178
|
}
|
|
31177
31179
|
return { formatted: D.join("") };
|
|
31178
31180
|
}
|
|
@@ -31405,21 +31407,21 @@ function sx(r, n) {
|
|
|
31405
31407
|
function nA(r, n, i, l) {
|
|
31406
31408
|
let { locStart: c, locEnd: h } = i, m = c(n), D = h(n), x = sx(r, i), E, $, N = 0, R = x.length;
|
|
31407
31409
|
for (; N < R; ) {
|
|
31408
|
-
let O = N + R >> 1,
|
|
31409
|
-
if (J <= m && D <= V) return nA(
|
|
31410
|
+
let O = N + R >> 1, I = x[O], J = c(I), V = h(I);
|
|
31411
|
+
if (J <= m && D <= V) return nA(I, n, i, I);
|
|
31410
31412
|
if (V <= m) {
|
|
31411
|
-
E =
|
|
31413
|
+
E = I, N = O + 1;
|
|
31412
31414
|
continue;
|
|
31413
31415
|
}
|
|
31414
31416
|
if (D <= J) {
|
|
31415
|
-
$ =
|
|
31417
|
+
$ = I, R = O;
|
|
31416
31418
|
continue;
|
|
31417
31419
|
}
|
|
31418
31420
|
throw new Error("Comment location overlaps with node location");
|
|
31419
31421
|
}
|
|
31420
31422
|
if ((l == null ? void 0 : l.type) === "TemplateLiteral") {
|
|
31421
|
-
let { quasis: O } = l,
|
|
31422
|
-
E && nS(O, E, i) !==
|
|
31423
|
+
let { quasis: O } = l, I = nS(O, n, i);
|
|
31424
|
+
E && nS(O, E, i) !== I && (E = null), $ && nS(O, $, i) !== I && ($ = null);
|
|
31423
31425
|
}
|
|
31424
31426
|
return { enclosingNode: l, precedingNode: E, followingNode: $ };
|
|
31425
31427
|
}
|
|
@@ -31427,9 +31429,9 @@ var tS = () => !1;
|
|
|
31427
31429
|
function u8(r, n) {
|
|
31428
31430
|
let { comments: i } = r;
|
|
31429
31431
|
if (delete r.comments, !i8(i) || !n.printer.canAttachComment) return;
|
|
31430
|
-
let l = [], { locStart: c, locEnd: h, printer: { experimentalFeatures: { avoidAstMutation: m = !1 } = {}, handleComments: D = {} }, originalText: x } = n, { ownLine: E = tS, endOfLine: $ = tS, remaining: N = tS } = D, R = i.map((O,
|
|
31431
|
-
for (let [O,
|
|
31432
|
-
let { comment: J, precedingNode: V, enclosingNode:
|
|
31432
|
+
let l = [], { locStart: c, locEnd: h, printer: { experimentalFeatures: { avoidAstMutation: m = !1 } = {}, handleComments: D = {} }, originalText: x } = n, { ownLine: E = tS, endOfLine: $ = tS, remaining: N = tS } = D, R = i.map((O, I) => ({ ...nA(r, O, n), comment: O, text: x, options: n, ast: r, isLastComment: i.length - 1 === I }));
|
|
31433
|
+
for (let [O, I] of R.entries()) {
|
|
31434
|
+
let { comment: J, precedingNode: V, enclosingNode: we, followingNode: q, text: W, options: K, ast: X, isLastComment: ae } = I;
|
|
31433
31435
|
if (K.parser === "json" || K.parser === "json5" || K.parser === "jsonc" || K.parser === "__js_expression" || K.parser === "__ts_expression" || K.parser === "__vue_expression" || K.parser === "__vue_ts_expression") {
|
|
31434
31436
|
if (c(J) - c(X) <= 0) {
|
|
31435
31437
|
Wm(X, J);
|
|
@@ -31441,12 +31443,12 @@ function u8(r, n) {
|
|
|
31441
31443
|
}
|
|
31442
31444
|
}
|
|
31443
31445
|
let ue;
|
|
31444
|
-
if (m ? ue = [
|
|
31445
|
-
else if (d8(W, K, R, O)) J.placement = "endOfLine", $(...ue) || (V ? qm(V, J) : q ? Wm(q, J) : Kp(
|
|
31446
|
+
if (m ? ue = [I] : (J.enclosingNode = we, J.precedingNode = V, J.followingNode = q, ue = [J, W, K, X, ae]), c8(W, K, R, O)) J.placement = "ownLine", E(...ue) || (q ? Wm(q, J) : V ? qm(V, J) : Kp(we || X, J));
|
|
31447
|
+
else if (d8(W, K, R, O)) J.placement = "endOfLine", $(...ue) || (V ? qm(V, J) : q ? Wm(q, J) : Kp(we || X, J));
|
|
31446
31448
|
else if (J.placement = "remaining", !N(...ue)) if (V && q) {
|
|
31447
31449
|
let Ce = l.length;
|
|
31448
|
-
Ce > 0 && l[Ce - 1].followingNode !== q && mT(l, K), l.push(
|
|
31449
|
-
} else V ? qm(V, J) : q ? Wm(q, J) : Kp(
|
|
31450
|
+
Ce > 0 && l[Ce - 1].followingNode !== q && mT(l, K), l.push(I);
|
|
31451
|
+
} else V ? qm(V, J) : q ? Wm(q, J) : Kp(we || X, J);
|
|
31450
31452
|
}
|
|
31451
31453
|
if (mT(l, n), !m) for (let O of i) delete O.precedingNode, delete O.enclosingNode, delete O.followingNode;
|
|
31452
31454
|
}
|
|
@@ -31917,10 +31919,10 @@ var H8 = class extends Ff {
|
|
|
31917
31919
|
}, E = ({ value: N, redirectTo: R }) => {
|
|
31918
31920
|
let O = _T(m.deprecated(N, this._utils), D, !0);
|
|
31919
31921
|
if (O !== !1) if (O === !0) this._hasDeprecationWarned(h) || this._utils.logger.warn(this._deprecatedHandler(h, R, this._utils));
|
|
31920
|
-
else for (let { value:
|
|
31921
|
-
let J = { key: h, value:
|
|
31922
|
+
else for (let { value: I } of O) {
|
|
31923
|
+
let J = { key: h, value: I };
|
|
31922
31924
|
if (!this._hasDeprecationWarned(J)) {
|
|
31923
|
-
let V = typeof R == "string" ? { key: R, value:
|
|
31925
|
+
let V = typeof R == "string" ? { key: R, value: I } : R;
|
|
31924
31926
|
this._utils.logger.warn(this._deprecatedHandler(J, V, this._utils));
|
|
31925
31927
|
}
|
|
31926
31928
|
}
|
|
@@ -31986,9 +31988,9 @@ function Q8(r, n, { logger: i = !1, isCLI: l = !1, passThrough: c = !1, FlagSche
|
|
|
31986
31988
|
if (!h) throw new Error("'FlagSchema' option is required.");
|
|
31987
31989
|
if (!m) throw new Error("'descriptor' option is required.");
|
|
31988
31990
|
} else m = Vm;
|
|
31989
|
-
let D = c ? Array.isArray(c) ? (R, O) => c.includes(R) ? { [R]: O } : void 0 : (R, O) => ({ [R]: O }) : (R, O,
|
|
31990
|
-
let { _: J, ...V } =
|
|
31991
|
-
return cA(R, O, { ...
|
|
31991
|
+
let D = c ? Array.isArray(c) ? (R, O) => c.includes(R) ? { [R]: O } : void 0 : (R, O) => ({ [R]: O }) : (R, O, I) => {
|
|
31992
|
+
let { _: J, ...V } = I.schemas;
|
|
31993
|
+
return cA(R, O, { ...I, schemas: V });
|
|
31992
31994
|
}, x = K8(n, { isCLI: l, FlagSchema: h }), E = new J8(x, { logger: i, unknown: D, descriptor: m }), $ = i !== !1;
|
|
31993
31995
|
$ && aS && (E._hasDeprecationWarned = aS);
|
|
31994
31996
|
let N = E.normalize(r);
|
|
@@ -32109,28 +32111,28 @@ async function l6(r, n, i, l, c) {
|
|
|
32109
32111
|
let E = Bw(m.getVisitorKeys ?? x), $ = [];
|
|
32110
32112
|
O();
|
|
32111
32113
|
let N = r.stack;
|
|
32112
|
-
for (let { print:
|
|
32114
|
+
for (let { print: I, node: J, pathStack: V } of $) try {
|
|
32113
32115
|
r.stack = V;
|
|
32114
|
-
let
|
|
32115
|
-
|
|
32116
|
-
} catch (
|
|
32117
|
-
if (globalThis.PRETTIER_DEBUG) throw
|
|
32116
|
+
let we = await I(R, n, r, i);
|
|
32117
|
+
we && c.set(J, we);
|
|
32118
|
+
} catch (we) {
|
|
32119
|
+
if (globalThis.PRETTIER_DEBUG) throw we;
|
|
32118
32120
|
}
|
|
32119
32121
|
r.stack = N;
|
|
32120
|
-
function R(
|
|
32121
|
-
return u6(
|
|
32122
|
+
function R(I, J) {
|
|
32123
|
+
return u6(I, J, i, l);
|
|
32122
32124
|
}
|
|
32123
32125
|
function O() {
|
|
32124
|
-
let { node:
|
|
32125
|
-
if (
|
|
32126
|
-
for (let V of E(
|
|
32126
|
+
let { node: I } = r;
|
|
32127
|
+
if (I === null || typeof I != "object" || D(r)) return;
|
|
32128
|
+
for (let V of E(I)) Array.isArray(I[V]) ? r.each(O, V) : r.call(O, V);
|
|
32127
32129
|
let J = m(r, i);
|
|
32128
32130
|
if (J) {
|
|
32129
32131
|
if (typeof J == "function") {
|
|
32130
|
-
$.push({ print: J, node:
|
|
32132
|
+
$.push({ print: J, node: I, pathStack: [...r.stack] });
|
|
32131
32133
|
return;
|
|
32132
32134
|
}
|
|
32133
|
-
c.set(
|
|
32135
|
+
c.set(I, J);
|
|
32134
32136
|
}
|
|
32135
32137
|
}
|
|
32136
32138
|
}
|
|
@@ -32193,13 +32195,13 @@ function f6(r, n) {
|
|
|
32193
32195
|
let E, $, N = -1, R = Number.POSITIVE_INFINITY;
|
|
32194
32196
|
for (; x.length > 0 && (E === void 0 || $ === void 0); ) {
|
|
32195
32197
|
D = x.pop();
|
|
32196
|
-
let O = E !== void 0,
|
|
32198
|
+
let O = E !== void 0, I = $ !== void 0;
|
|
32197
32199
|
for (let J of Ow(D, { getVisitorKeys: h })) {
|
|
32198
32200
|
if (!O) {
|
|
32199
32201
|
let V = c(J);
|
|
32200
32202
|
V <= i && V > N && (E = J, N = V);
|
|
32201
32203
|
}
|
|
32202
|
-
if (!
|
|
32204
|
+
if (!I) {
|
|
32203
32205
|
let V = l(J);
|
|
32204
32206
|
V >= i && V < R && ($ = J, R = V);
|
|
32205
32207
|
}
|
|
@@ -32298,7 +32300,7 @@ function S6(r, n, i) {
|
|
|
32298
32300
|
TS.ok(c > l);
|
|
32299
32301
|
let D = r.slice(l, c).search(/\S/u), x = D === -1;
|
|
32300
32302
|
if (!x) for (l += D; c > l && !/\S/u.test(r[c - 1]); --c) ;
|
|
32301
|
-
let E = AS(i, l, n, (O,
|
|
32303
|
+
let E = AS(i, l, n, (O, I) => PT(n, O, I), [], "rangeStart"), $ = x ? E : AS(i, c, n, (O) => PT(n, O), [], "rangeEnd");
|
|
32302
32304
|
if (!E || !$) return { rangeStart: 0, rangeEnd: 0 };
|
|
32303
32305
|
let N, R;
|
|
32304
32306
|
if (y6(n)) {
|
|
@@ -32326,18 +32328,18 @@ async function bA(r, n, i = 0) {
|
|
|
32326
32328
|
else {
|
|
32327
32329
|
if (!n.nodeBeforeCursor && !n.nodeAfterCursor) throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");
|
|
32328
32330
|
x = n.nodeBeforeCursor ? n.locEnd(n.nodeBeforeCursor) : 0;
|
|
32329
|
-
let
|
|
32330
|
-
E = c.slice(x,
|
|
32331
|
+
let we = n.nodeAfterCursor ? n.locStart(n.nodeAfterCursor) : c.length;
|
|
32332
|
+
E = c.slice(x, we);
|
|
32331
32333
|
}
|
|
32332
32334
|
else x = 0, E = c, $ = 0, N = m.formatted;
|
|
32333
32335
|
let R = n.cursorOffset - x;
|
|
32334
32336
|
if (E === N) return { formatted: m.formatted, cursorOffset: $ + R, comments: D };
|
|
32335
32337
|
let O = E.split("");
|
|
32336
32338
|
O.splice(R, 0, RT);
|
|
32337
|
-
let
|
|
32338
|
-
for (let
|
|
32339
|
-
if (
|
|
32340
|
-
} else V +=
|
|
32339
|
+
let I = N.split(""), J = s4(O, I), V = $;
|
|
32340
|
+
for (let we of J) if (we.removed) {
|
|
32341
|
+
if (we.value.includes(RT)) break;
|
|
32342
|
+
} else V += we.count;
|
|
32341
32343
|
return { formatted: m.formatted, cursorOffset: V, comments: D };
|
|
32342
32344
|
}
|
|
32343
32345
|
return { formatted: m.formatted, cursorOffset: -1, comments: D };
|
|
@@ -32348,11 +32350,11 @@ async function x6(r, n) {
|
|
|
32348
32350
|
R > h ? R += N.length - m.length : $.cursorOffset >= 0 && (R = $.cursorOffset + c);
|
|
32349
32351
|
let O = l.slice(0, c) + N + l.slice(h);
|
|
32350
32352
|
if (n.endOfLine !== "lf") {
|
|
32351
|
-
let
|
|
32352
|
-
R >= 0 &&
|
|
32353
|
+
let I = ex(n.endOfLine);
|
|
32354
|
+
R >= 0 && I === `\r
|
|
32353
32355
|
` && (R += UF(O.slice(0, R), `
|
|
32354
32356
|
`)), O = $w(!1, O, `
|
|
32355
|
-
`,
|
|
32357
|
+
`, I);
|
|
32356
32358
|
}
|
|
32357
32359
|
return { formatted: O, cursorOffset: R, comments: $.comments };
|
|
32358
32360
|
}
|
|
@@ -32520,11 +32522,11 @@ var o5 = Zp(oA, 0), s5 = { parse: Zp(C6), formatAST: Zp(_6), formatDoc: Zp(E6),
|
|
|
32520
32522
|
}, E = (f, g, k, C) => {
|
|
32521
32523
|
if (g && typeof g == "object" || typeof g == "function") for (let T of c(g)) !h.call(f, T) && T !== k && i(f, T, { get: () => g[T], enumerable: !(C = l(g, T)) || C.enumerable });
|
|
32522
32524
|
return f;
|
|
32523
|
-
}, $ = (f) => E(i({}, "__esModule", { value: !0 }), f), N = (f, g, k) => D(f, typeof g != "symbol" ? g + "" : g, k), R = (f, g, k) => g.has(f) || m("Cannot " + k), O = (f, g, k) => (R(f, g, "read from private field"), k ? k.call(f) : g.get(f)),
|
|
32525
|
+
}, $ = (f) => E(i({}, "__esModule", { value: !0 }), f), N = (f, g, k) => D(f, typeof g != "symbol" ? g + "" : g, k), R = (f, g, k) => g.has(f) || m("Cannot " + k), O = (f, g, k) => (R(f, g, "read from private field"), k ? k.call(f) : g.get(f)), I = (f, g, k) => g.has(f) ? m("Cannot add the same private member more than once") : g instanceof WeakSet ? g.add(f) : g.set(f, k), J = (f, g, k, C) => (R(f, g, "write to private field"), g.set(f, k), k), V = {};
|
|
32524
32526
|
x(V, { languages: () => Sc, options: () => wg, parsers: () => Xf, printers: () => Or });
|
|
32525
|
-
var
|
|
32527
|
+
var we = (f, g, k, C) => {
|
|
32526
32528
|
if (!(f && g == null)) return g.replaceAll ? g.replaceAll(k, C) : k.global ? g.replace(k, C) : g.split(k).join(C);
|
|
32527
|
-
}, q =
|
|
32529
|
+
}, q = we, W = "string", K = "array", X = "cursor", ae = "indent", ue = "align", Ce = "trim", ye = "group", Ve = "fill", He = "if-break", Be = "indent-if-break", Je = "line-suffix", je = "line-suffix-boundary", rt = "line", Re = "label", Ae = "break-parent", ce = /* @__PURE__ */ new Set([X, ae, ue, Ce, ye, Ve, He, Be, Je, je, rt, Re, Ae]), Ne = (f, g, k) => {
|
|
32528
32530
|
if (!(f && g == null)) return Array.isArray(g) || typeof g == "string" ? g[k < 0 ? g.length + k : k] : g.at(k);
|
|
32529
32531
|
}, Se = Ne;
|
|
32530
32532
|
function Q(f) {
|
|
@@ -32641,7 +32643,7 @@ Expected it to be ${C}.`;
|
|
|
32641
32643
|
}
|
|
32642
32644
|
var Ct, Mt = class {
|
|
32643
32645
|
constructor(f) {
|
|
32644
|
-
|
|
32646
|
+
I(this, Ct), J(this, Ct, new Set(f));
|
|
32645
32647
|
}
|
|
32646
32648
|
getLeadingWhitespaceCount(f) {
|
|
32647
32649
|
let g = O(this, Ct), k = 0;
|
|
@@ -34889,7 +34891,7 @@ ${g}`, k), j = C;
|
|
|
34889
34891
|
}
|
|
34890
34892
|
var np = Nl, Ru = { attrs: !0, children: !0, cases: !0, expression: !0 }, Ya = /* @__PURE__ */ new Set(["parent"]), Jr, $c, Hd, us = class ly {
|
|
34891
34893
|
constructor(g = {}) {
|
|
34892
|
-
|
|
34894
|
+
I(this, Jr), N(this, "type"), N(this, "parent");
|
|
34893
34895
|
for (let k of /* @__PURE__ */ new Set([...Ya, ...Object.keys(g)])) this.setProperty(k, g[k]);
|
|
34894
34896
|
}
|
|
34895
34897
|
setProperty(g, k) {
|
|
@@ -35276,12 +35278,12 @@ function NA(r) {
|
|
|
35276
35278
|
className: MT(D.className)
|
|
35277
35279
|
});
|
|
35278
35280
|
else {
|
|
35279
|
-
var O = Object.keys(i).reduce(function(
|
|
35281
|
+
var O = Object.keys(i).reduce(function(we, q) {
|
|
35280
35282
|
return q.split(".").forEach(function(W) {
|
|
35281
|
-
|
|
35282
|
-
}),
|
|
35283
|
-
}, []),
|
|
35284
|
-
return !O.includes(
|
|
35283
|
+
we.includes(W) || we.push(W);
|
|
35284
|
+
}), we;
|
|
35285
|
+
}, []), I = D.className && D.className.includes("token") ? ["token"] : [], J = D.className && I.concat(D.className.filter(function(we) {
|
|
35286
|
+
return !O.includes(we);
|
|
35285
35287
|
}));
|
|
35286
35288
|
R = Gm(Gm({}, D), {}, {
|
|
35287
35289
|
className: MT(J) || void 0,
|
|
@@ -35379,17 +35381,17 @@ function RA(r, n, i) {
|
|
|
35379
35381
|
return h;
|
|
35380
35382
|
}
|
|
35381
35383
|
function cw(r) {
|
|
35382
|
-
var n = r.children, i = r.lineNumber, l = r.lineNumberStyle, c = r.largestLineNumber, h = r.showInlineLineNumbers, m = r.lineProps, D = m === void 0 ? {} : m, x = r.className, E = x === void 0 ? [] : x, $ = r.showLineNumbers, N = r.wrapLongLines, R = r.wrapLines, O = R === void 0 ? !1 : R,
|
|
35383
|
-
if (
|
|
35384
|
+
var n = r.children, i = r.lineNumber, l = r.lineNumberStyle, c = r.largestLineNumber, h = r.showInlineLineNumbers, m = r.lineProps, D = m === void 0 ? {} : m, x = r.className, E = x === void 0 ? [] : x, $ = r.showLineNumbers, N = r.wrapLongLines, R = r.wrapLines, O = R === void 0 ? !1 : R, I = O ? kf({}, typeof D == "function" ? D(i) : D) : {};
|
|
35385
|
+
if (I.className = I.className ? [].concat(RS(I.className.trim().split(/\s+/)), RS(E)) : E, i && h) {
|
|
35384
35386
|
var J = RA(l, i, c);
|
|
35385
35387
|
n.unshift(PA(i, J));
|
|
35386
35388
|
}
|
|
35387
|
-
return N & $ && (
|
|
35389
|
+
return N & $ && (I.style = kf({
|
|
35388
35390
|
display: "flex"
|
|
35389
|
-
},
|
|
35391
|
+
}, I.style)), {
|
|
35390
35392
|
type: "element",
|
|
35391
35393
|
tagName: "span",
|
|
35392
|
-
properties:
|
|
35394
|
+
properties: I,
|
|
35393
35395
|
children: n
|
|
35394
35396
|
};
|
|
35395
35397
|
}
|
|
@@ -35412,7 +35414,7 @@ function LA(r) {
|
|
|
35412
35414
|
}
|
|
35413
35415
|
function T5(r, n, i, l, c, h, m, D, x) {
|
|
35414
35416
|
var E, $ = LA(r.value), N = [], R = -1, O = 0;
|
|
35415
|
-
function
|
|
35417
|
+
function I(X, ae) {
|
|
35416
35418
|
var ue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
35417
35419
|
return cw({
|
|
35418
35420
|
children: X,
|
|
@@ -35436,9 +35438,9 @@ function T5(r, n, i, l, c, h, m, D, x) {
|
|
|
35436
35438
|
}
|
|
35437
35439
|
function V(X, ae) {
|
|
35438
35440
|
var ue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
35439
|
-
return n || ue.length > 0 ?
|
|
35441
|
+
return n || ue.length > 0 ? I(X, ae, ue) : J(X, ae);
|
|
35440
35442
|
}
|
|
35441
|
-
for (var
|
|
35443
|
+
for (var we = function() {
|
|
35442
35444
|
var ae = $[O], ue = ae.children[0].value, Ce = x5(ue);
|
|
35443
35445
|
if (Ce) {
|
|
35444
35446
|
var ye = ue.split(`
|
|
@@ -35478,7 +35480,7 @@ function T5(r, n, i, l, c, h, m, D, x) {
|
|
|
35478
35480
|
}
|
|
35479
35481
|
O++;
|
|
35480
35482
|
}; O < $.length; )
|
|
35481
|
-
|
|
35483
|
+
we();
|
|
35482
35484
|
if (R !== $.length - 1) {
|
|
35483
35485
|
var q = $.slice(R + 1, $.length);
|
|
35484
35486
|
if (q && q.length) {
|
|
@@ -35528,7 +35530,7 @@ function $5(r, n) {
|
|
|
35528
35530
|
var c = l.language, h = l.children, m = l.style, D = m === void 0 ? n : m, x = l.customStyle, E = x === void 0 ? {} : x, $ = l.codeTagProps, N = $ === void 0 ? {
|
|
35529
35531
|
className: c ? "language-".concat(c) : void 0,
|
|
35530
35532
|
style: kf(kf({}, D['code[class*="language-"]']), D['code[class*="language-'.concat(c, '"]')])
|
|
35531
|
-
} : $, R = l.useInlineStyles, O = R === void 0 ? !0 : R,
|
|
35533
|
+
} : $, R = l.useInlineStyles, O = R === void 0 ? !0 : R, I = l.showLineNumbers, J = I === void 0 ? !1 : I, V = l.showInlineLineNumbers, we = V === void 0 ? !0 : V, q = l.startingLineNumber, W = q === void 0 ? 1 : q, K = l.lineNumberContainerStyle, X = l.lineNumberStyle, ae = X === void 0 ? {} : X, ue = l.wrapLines, Ce = l.wrapLongLines, ye = Ce === void 0 ? !1 : Ce, Ve = l.lineProps, He = Ve === void 0 ? {} : Ve, Be = l.renderer, Je = l.PreTag, je = Je === void 0 ? "pre" : Je, rt = l.CodeTag, Re = rt === void 0 ? "code" : rt, Ae = l.code, ce = Ae === void 0 ? (Array.isArray(h) ? h[0] : h) || "" : Ae, Ne = l.astGenerator, Se = c5(l, D5);
|
|
35532
35534
|
Ne = Ne || r;
|
|
35533
35535
|
var Q = J ? /* @__PURE__ */ cn.createElement(_5, {
|
|
35534
35536
|
containerStyle: K,
|
|
@@ -35564,8 +35566,8 @@ function $5(r, n) {
|
|
|
35564
35566
|
var mt = st.value.length;
|
|
35565
35567
|
mt === 1 && st.value[0].type === "text" && (mt = st.value[0].value.split(`
|
|
35566
35568
|
`).length);
|
|
35567
|
-
var gt = mt + W, _t = T5(st, ue, He, J,
|
|
35568
|
-
return /* @__PURE__ */ cn.createElement(je, Xe, /* @__PURE__ */ cn.createElement(Re, N, !
|
|
35569
|
+
var gt = mt + W, _t = T5(st, ue, He, J, we, W, gt, ae, ye);
|
|
35570
|
+
return /* @__PURE__ */ cn.createElement(je, Xe, /* @__PURE__ */ cn.createElement(Re, N, !we && Q, Be({
|
|
35569
35571
|
rows: _t,
|
|
35570
35572
|
stylesheet: D,
|
|
35571
35573
|
useInlineStyles: O
|
|
@@ -36418,11 +36420,11 @@ function xU(r, n) {
|
|
|
36418
36420
|
return (i.position.indent || i.position.start) && (i.indent = i.position.indent || [], i.position = i.position.start), CU(r, i);
|
|
36419
36421
|
}
|
|
36420
36422
|
function CU(r, n) {
|
|
36421
|
-
var i = n.additional, l = n.nonTerminated, c = n.text, h = n.reference, m = n.warning, D = n.textContext, x = n.referenceContext, E = n.warningContext, $ = n.position, N = n.indent || [], R = r.length, O = 0,
|
|
36423
|
+
var i = n.additional, l = n.nonTerminated, c = n.text, h = n.reference, m = n.warning, D = n.textContext, x = n.referenceContext, E = n.warningContext, $ = n.position, N = n.indent || [], R = r.length, O = 0, I = -1, J = $.column || 1, V = $.line || 1, we = "", q = [], W, K, X, ae, ue, Ce, ye, Ve, He, Be, Je, je, rt, Re, Ae, ce, Ne, Se, Q;
|
|
36422
36424
|
for (typeof i == "string" && (i = i.charCodeAt(0)), ce = le(), Ve = m ? at : pU, O--, R++; ++O < R; )
|
|
36423
|
-
if (ue === nF && (J = N[
|
|
36425
|
+
if (ue === nF && (J = N[I] || 1), ue = r.charCodeAt(O), ue === rF) {
|
|
36424
36426
|
if (ye = r.charCodeAt(O + 1), ye === hU || ye === nF || ye === mU || ye === gU || ye === rF || ye === yU || ye !== ye || i && ye === i) {
|
|
36425
|
-
|
|
36427
|
+
we += jm(ue), J++;
|
|
36426
36428
|
continue;
|
|
36427
36429
|
}
|
|
36428
36430
|
for (rt = O + 1, je = rt, Q = rt, ye === kU ? (Q = ++je, ye = r.charCodeAt(Q), ye === wU || ye === DU ? (Re = kx, Q = ++je) : Re = wx) : Re = zm, W = "", Je = "", ae = "", Ae = Iw[Re], Q--; ++Q < R && (ye = r.charCodeAt(Q), !!Ae(ye)); )
|
|
@@ -36432,9 +36434,9 @@ function CU(r, n) {
|
|
|
36432
36434
|
Ce,
|
|
36433
36435
|
{ start: ce, end: Ne },
|
|
36434
36436
|
r.slice(rt - 1, Q)
|
|
36435
|
-
), ce = Ne) : (ae = r.slice(rt - 1, Q),
|
|
36437
|
+
), ce = Ne) : (ae = r.slice(rt - 1, Q), we += ae, J += ae.length, O = Q - 1);
|
|
36436
36438
|
} else
|
|
36437
|
-
ue === 10 && (V++,
|
|
36439
|
+
ue === 10 && (V++, I++, J = 0), ue === ue ? (we += jm(ue), J++) : Xe();
|
|
36438
36440
|
return q.join("");
|
|
36439
36441
|
function le() {
|
|
36440
36442
|
return {
|
|
@@ -36448,7 +36450,7 @@ function CU(r, n) {
|
|
|
36448
36450
|
mt.column += st, mt.offset += st, m.call(E, Af[ft], mt, ft);
|
|
36449
36451
|
}
|
|
36450
36452
|
function Xe() {
|
|
36451
|
-
|
|
36453
|
+
we && (q.push(we), c && c.call(D, we, { start: ce, end: le() }), we = "");
|
|
36452
36454
|
}
|
|
36453
36455
|
}
|
|
36454
36456
|
function _U(r) {
|
|
@@ -36994,7 +36996,7 @@ var n$ = { exports: {} };
|
|
|
36994
36996
|
delete W.rest;
|
|
36995
36997
|
}
|
|
36996
36998
|
var ae = new N();
|
|
36997
|
-
return R(ae, ae.head, q), $(q, ae, W, ae.head, 0),
|
|
36999
|
+
return R(ae, ae.head, q), $(q, ae, W, ae.head, 0), I(ae);
|
|
36998
37000
|
},
|
|
36999
37001
|
/**
|
|
37000
37002
|
* @namespace
|
|
@@ -37135,7 +37137,7 @@ var n$ = { exports: {} };
|
|
|
37135
37137
|
X = X.next;
|
|
37136
37138
|
W.next = X, X.prev = W, q.length -= ae;
|
|
37137
37139
|
}
|
|
37138
|
-
function
|
|
37140
|
+
function I(q) {
|
|
37139
37141
|
for (var W = [], K = q.head.next; K !== q.tail; )
|
|
37140
37142
|
W.push(K.value), K = K.next;
|
|
37141
37143
|
return W;
|
|
@@ -37151,8 +37153,8 @@ var n$ = { exports: {} };
|
|
|
37151
37153
|
D.manual || D.highlightAll();
|
|
37152
37154
|
}
|
|
37153
37155
|
if (!D.manual) {
|
|
37154
|
-
var
|
|
37155
|
-
|
|
37156
|
+
var we = document.readyState;
|
|
37157
|
+
we === "loading" || we === "interactive" && J && J.defer ? document.addEventListener("DOMContentLoaded", V) : window.requestAnimationFrame ? window.requestAnimationFrame(V) : window.setTimeout(V, 16);
|
|
37156
37158
|
}
|
|
37157
37159
|
return D;
|
|
37158
37160
|
}(n);
|
|
@@ -37908,12 +37910,12 @@ function Fx(r) {
|
|
|
37908
37910
|
tagName: D(R.content[0].content[1]),
|
|
37909
37911
|
openedBraces: 0
|
|
37910
37912
|
}) : $.length > 0 && R.type === "punctuation" && R.content === "{" ? $[$.length - 1].openedBraces++ : $.length > 0 && $[$.length - 1].openedBraces > 0 && R.type === "punctuation" && R.content === "}" ? $[$.length - 1].openedBraces-- : O = !0), (O || typeof R == "string") && $.length > 0 && $[$.length - 1].openedBraces === 0) {
|
|
37911
|
-
var
|
|
37912
|
-
N < E.length - 1 && (typeof E[N + 1] == "string" || E[N + 1].type === "plain-text") && (
|
|
37913
|
+
var I = D(R);
|
|
37914
|
+
N < E.length - 1 && (typeof E[N + 1] == "string" || E[N + 1].type === "plain-text") && (I += D(E[N + 1]), E.splice(N + 1, 1)), N > 0 && (typeof E[N - 1] == "string" || E[N - 1].type === "plain-text") && (I = D(E[N - 1]) + I, E.splice(N - 1, 1), N--), E[N] = new n.Token(
|
|
37913
37915
|
"plain-text",
|
|
37914
|
-
|
|
37916
|
+
I,
|
|
37915
37917
|
null,
|
|
37916
|
-
|
|
37918
|
+
I
|
|
37917
37919
|
);
|
|
37918
37920
|
}
|
|
37919
37921
|
R.content && typeof R.content != "string" && x(R.content);
|
|
@@ -38007,10 +38009,10 @@ const ZU = xr(
|
|
|
38007
38009
|
helptextDropdown: N,
|
|
38008
38010
|
helptextDropdownButton: R,
|
|
38009
38011
|
iconNameRight: O,
|
|
38010
|
-
inline:
|
|
38012
|
+
inline: I = !1,
|
|
38011
38013
|
fullwidth: J = !1,
|
|
38012
38014
|
label: V,
|
|
38013
|
-
name:
|
|
38015
|
+
name: we,
|
|
38014
38016
|
optionalTag: q = !1,
|
|
38015
38017
|
optionalText: W,
|
|
38016
38018
|
requiredTag: K = !1,
|
|
@@ -38053,7 +38055,7 @@ const ZU = xr(
|
|
|
38053
38055
|
helptext: $,
|
|
38054
38056
|
helptextDropdown: N,
|
|
38055
38057
|
helptextDropdownButton: R,
|
|
38056
|
-
inline:
|
|
38058
|
+
inline: I,
|
|
38057
38059
|
label: V,
|
|
38058
38060
|
optionalTag: q,
|
|
38059
38061
|
optionalText: W,
|
|
@@ -38078,7 +38080,7 @@ const ZU = xr(
|
|
|
38078
38080
|
ref: ft,
|
|
38079
38081
|
className: `pkt-input ${J ? "pkt-input--fullwidth" : ""} ${h && _t > h ? "pkt-input--counter-error" : ""}`,
|
|
38080
38082
|
type: ye,
|
|
38081
|
-
name: `${
|
|
38083
|
+
name: `${we || r}`,
|
|
38082
38084
|
value: gt,
|
|
38083
38085
|
id: It,
|
|
38084
38086
|
placeholder: ae,
|
|
@@ -38210,10 +38212,10 @@ const ZU = xr(
|
|
|
38210
38212
|
inline: N = !1,
|
|
38211
38213
|
fullwidth: R = !1,
|
|
38212
38214
|
label: O,
|
|
38213
|
-
name:
|
|
38215
|
+
name: I,
|
|
38214
38216
|
optionalTag: J = !1,
|
|
38215
38217
|
optionalText: V,
|
|
38216
|
-
requiredTag:
|
|
38218
|
+
requiredTag: we = !1,
|
|
38217
38219
|
requiredText: q,
|
|
38218
38220
|
...W
|
|
38219
38221
|
}, K) => {
|
|
@@ -38229,7 +38231,7 @@ const ZU = xr(
|
|
|
38229
38231
|
helptextDropdownButton: E,
|
|
38230
38232
|
optionalTag: J,
|
|
38231
38233
|
optionalText: V,
|
|
38232
|
-
requiredTag:
|
|
38234
|
+
requiredTag: we,
|
|
38233
38235
|
requiredText: q,
|
|
38234
38236
|
hasError: m,
|
|
38235
38237
|
errorMessage: h,
|
|
@@ -38246,7 +38248,7 @@ const ZU = xr(
|
|
|
38246
38248
|
"aria-labelledby": n || void 0,
|
|
38247
38249
|
disabled: c,
|
|
38248
38250
|
id: `${$}-input`,
|
|
38249
|
-
name:
|
|
38251
|
+
name: I || $,
|
|
38250
38252
|
...W,
|
|
38251
38253
|
children: i
|
|
38252
38254
|
}
|
|
@@ -40067,7 +40069,7 @@ const ZU = xr(
|
|
|
40067
40069
|
propKey: N,
|
|
40068
40070
|
props: E,
|
|
40069
40071
|
spec: R,
|
|
40070
|
-
handleChange: (O,
|
|
40072
|
+
handleChange: (O, I) => m($, O, I)
|
|
40071
40073
|
},
|
|
40072
40074
|
N
|
|
40073
40075
|
)),
|
|
@@ -40090,7 +40092,7 @@ const ZU = xr(
|
|
|
40090
40092
|
Cy.registerLanguage("jsx", QU);
|
|
40091
40093
|
const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
40092
40094
|
var je, rt;
|
|
40093
|
-
const l = r.props && typeof r.props == "object" && !Array.isArray(r.props) ? Object.entries(r.props).reduce((Re, [Ae, ce]) => (typeof ce == "object" && !Array.isArray(ce) && ce.previewDefault !== void 0 && ce.previewDefault !== null ? (ce.previewDefault === "false" && (ce.previewDefault = !1), ce.previewDefault === "true" && (ce.previewDefault = !0), Re[Ae] = ce.previewDefault) : typeof ce == "object" && !Array.isArray(ce) && ce.default !== void 0 && ce.default !== null && (ce.default === "false" && (ce.default = !1), ce.default === "true" && (ce.default = !0), Re[Ae] = ce.default), Re), {}) : {}, [c, h] = nu(0), [m, D] = nu(l), [x, E] = nu("light"), [$, N] = nu(""), [R, O] = nu(""), [
|
|
40095
|
+
const l = r.props && typeof r.props == "object" && !Array.isArray(r.props) ? Object.entries(r.props).reduce((Re, [Ae, ce]) => (typeof ce == "object" && !Array.isArray(ce) && ce.previewDefault !== void 0 && ce.previewDefault !== null ? (ce.previewDefault === "false" && (ce.previewDefault = !1), ce.previewDefault === "true" && (ce.previewDefault = !0), Re[Ae] = ce.previewDefault) : typeof ce == "object" && !Array.isArray(ce) && ce.default !== void 0 && ce.default !== null && (ce.default === "false" && (ce.default = !1), ce.default === "true" && (ce.default = !0), Re[Ae] = ce.default), Re), {}) : {}, [c, h] = nu(0), [m, D] = nu(l), [x, E] = nu("light"), [$, N] = nu(""), [R, O] = nu(""), [I, J] = nu(""), [V, we] = nu("Rediger innhold"), [q, W] = nu([
|
|
40094
40096
|
{
|
|
40095
40097
|
text: "Rediger",
|
|
40096
40098
|
icon: "adjust",
|
|
@@ -40149,7 +40151,7 @@ const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
|
40149
40151
|
J(Re), console.log("Copied to clipboard", Re);
|
|
40150
40152
|
});
|
|
40151
40153
|
}, ye = (Re) => Array.isArray(Re) && Re.length === 0, Ve = (Re) => Re && typeof Re == "object" && !Object.keys(Re).length, He = (Re, Ae) => /* @__PURE__ */ L.jsxs("div", { className: "pkt-preview__copy", children: [
|
|
40152
|
-
|
|
40154
|
+
I === Re && /* @__PURE__ */ L.jsx("span", { className: "pkt-preview__copied", children: "Kode kopiert til utklippstavle" }),
|
|
40153
40155
|
/* @__PURE__ */ L.jsx(
|
|
40154
40156
|
_f,
|
|
40155
40157
|
{
|
|
@@ -40211,7 +40213,7 @@ const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
|
40211
40213
|
helptext: r.slots.default.description || "Innholdet i slot",
|
|
40212
40214
|
type: "text",
|
|
40213
40215
|
value: V,
|
|
40214
|
-
onChange: (Re) =>
|
|
40216
|
+
onChange: (Re) => we(Re.currentTarget.value)
|
|
40215
40217
|
}
|
|
40216
40218
|
)
|
|
40217
40219
|
] }),
|
|
@@ -40260,10 +40262,12 @@ const iH = xr(
|
|
|
40260
40262
|
disabled: h = !1,
|
|
40261
40263
|
checkHelptext: m,
|
|
40262
40264
|
hasError: D = !1,
|
|
40263
|
-
|
|
40264
|
-
|
|
40265
|
-
|
|
40266
|
-
|
|
40265
|
+
defaultChecked: x,
|
|
40266
|
+
checked: E,
|
|
40267
|
+
...$
|
|
40268
|
+
}, N) => {
|
|
40269
|
+
const R = [l, "pkt-input-check"].filter(Boolean).join(" ");
|
|
40270
|
+
return /* @__PURE__ */ L.jsx("div", { className: R, children: /* @__PURE__ */ L.jsxs(
|
|
40267
40271
|
"div",
|
|
40268
40272
|
{
|
|
40269
40273
|
className: `pkt-input-check__input ${c ? "pkt-input-check__input--tile" : ""} ${h && c ? "pkt-input-check__input--tile-disabled" : ""}`,
|
|
@@ -40271,13 +40275,14 @@ const iH = xr(
|
|
|
40271
40275
|
/* @__PURE__ */ L.jsx(
|
|
40272
40276
|
"input",
|
|
40273
40277
|
{
|
|
40274
|
-
ref:
|
|
40278
|
+
ref: N,
|
|
40275
40279
|
id: r,
|
|
40276
40280
|
type: "radio",
|
|
40277
40281
|
name: n,
|
|
40278
40282
|
disabled: h,
|
|
40279
40283
|
className: `pkt-input-check__input-checkbox ${D ? "pkt-input-check__input-checkbox--error" : ""}`,
|
|
40280
|
-
...x
|
|
40284
|
+
...E !== void 0 ? { checked: E } : { defaultChecked: x },
|
|
40285
|
+
...$
|
|
40281
40286
|
}
|
|
40282
40287
|
),
|
|
40283
40288
|
/* @__PURE__ */ L.jsxs("label", { className: "pkt-input-check__input-label", htmlFor: r, children: [
|
|
@@ -40306,11 +40311,11 @@ const XH = xr(
|
|
|
40306
40311
|
onChange: N,
|
|
40307
40312
|
onSearch: R,
|
|
40308
40313
|
onSuggestionClick: O,
|
|
40309
|
-
...
|
|
40314
|
+
...I
|
|
40310
40315
|
}, J) => {
|
|
40311
40316
|
const V = (K, X) => {
|
|
40312
40317
|
K ? K() : O && O(X);
|
|
40313
|
-
},
|
|
40318
|
+
}, we = (K) => {
|
|
40314
40319
|
x = K.target.value;
|
|
40315
40320
|
}, q = `pkt-searchinput pkt-searchinput--${r} ${i ? "pkt-searchinput--fullwidth" : ""}`;
|
|
40316
40321
|
let W;
|
|
@@ -40332,11 +40337,11 @@ const XH = xr(
|
|
|
40332
40337
|
"aria-autocomplete": "list",
|
|
40333
40338
|
ref: J,
|
|
40334
40339
|
"aria-controls": `${l}-suggestions`,
|
|
40335
|
-
onChange: N ||
|
|
40340
|
+
onChange: N || we,
|
|
40336
40341
|
onKeyUp: R && ((K) => {
|
|
40337
40342
|
K.key === "Enter" && (K.preventDefault(), R(x));
|
|
40338
40343
|
}),
|
|
40339
|
-
...
|
|
40344
|
+
...I
|
|
40340
40345
|
}
|
|
40341
40346
|
),
|
|
40342
40347
|
/* @__PURE__ */ L.jsx(
|
|
@@ -40426,10 +40431,10 @@ const XH = xr(
|
|
|
40426
40431
|
helptextDropdownButton: N,
|
|
40427
40432
|
inline: R,
|
|
40428
40433
|
fullwidth: O = !1,
|
|
40429
|
-
label:
|
|
40434
|
+
label: I,
|
|
40430
40435
|
name: J,
|
|
40431
40436
|
optionalTag: V = !1,
|
|
40432
|
-
optionalText:
|
|
40437
|
+
optionalText: we,
|
|
40433
40438
|
requiredTag: q = !1,
|
|
40434
40439
|
requiredText: W,
|
|
40435
40440
|
placeholder: K,
|
|
@@ -40465,9 +40470,9 @@ const XH = xr(
|
|
|
40465
40470
|
helptextDropdown: $,
|
|
40466
40471
|
helptextDropdownButton: N,
|
|
40467
40472
|
inline: R,
|
|
40468
|
-
label:
|
|
40473
|
+
label: I,
|
|
40469
40474
|
optionalTag: V,
|
|
40470
|
-
optionalText:
|
|
40475
|
+
optionalText: we,
|
|
40471
40476
|
requiredTag: q,
|
|
40472
40477
|
requiredText: W,
|
|
40473
40478
|
useWrapper: ae,
|