@telia-ace/widget-runtime-flamingo 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controllers/actions-controller.d.ts +4 -0
- package/dist/controllers/actions-controller.d.ts.map +1 -1
- package/dist/{index-7657bfd2.js → index-212dab55.js} +1255 -1025
- package/dist/index-212dab55.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -9
- package/dist/mixins/{node.mixin.d.ts → widget-component.mixin.d.ts} +7 -3
- package/dist/mixins/widget-component.mixin.d.ts.map +1 -0
- package/dist/render-2f9819b1.js +462 -0
- package/dist/render-2f9819b1.js.map +1 -0
- package/dist/ui/area.d.ts +5 -3
- package/dist/ui/area.d.ts.map +1 -1
- package/dist/ui/branding.d.ts.map +1 -1
- package/dist/ui/render.d.ts +0 -1
- package/dist/ui/render.d.ts.map +1 -1
- package/dist/ui/wrapper.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-7657bfd2.js.map +0 -1
- package/dist/mixins/node.mixin.d.ts.map +0 -1
- package/dist/render-500e6f90.js +0 -616
- package/dist/render-500e6f90.js.map +0 -1
- package/dist/ui/component.d.ts +0 -8
- package/dist/ui/component.d.ts.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var qr = Object.defineProperty, Jr = Object.defineProperties;
|
|
2
|
+
var Kr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var un = Object.getOwnPropertySymbols, Gr = Object.getPrototypeOf, Yr = Object.prototype.hasOwnProperty, Zr = Object.prototype.propertyIsEnumerable, Qr = Reflect.get;
|
|
4
|
+
var dn = (n, t, e) => t in n ? qr(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, tt = (n, t) => {
|
|
5
5
|
for (var e in t || (t = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
6
|
+
Yr.call(t, e) && dn(n, e, t[e]);
|
|
7
|
+
if (un)
|
|
8
|
+
for (var e of un(t))
|
|
9
|
+
Zr.call(t, e) && dn(n, e, t[e]);
|
|
10
10
|
return n;
|
|
11
|
-
},
|
|
12
|
-
var
|
|
13
|
-
var
|
|
11
|
+
}, Mt = (n, t) => Jr(n, Kr(t));
|
|
12
|
+
var pn = (n, t, e) => Qr(Gr(n), e, t);
|
|
13
|
+
var B = (n, t, e) => new Promise((r, s) => {
|
|
14
14
|
var i = (c) => {
|
|
15
15
|
try {
|
|
16
16
|
a(e.next(c));
|
|
@@ -26,7 +26,7 @@ var z = (n, t, e) => new Promise((r, s) => {
|
|
|
26
26
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);
|
|
27
27
|
a((e = e.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
|
-
const
|
|
29
|
+
const Pe = (n, t, e, ...r) => {
|
|
30
30
|
const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
|
|
31
31
|
switch (t) {
|
|
32
32
|
case "info":
|
|
@@ -39,16 +39,16 @@ const Ee = (n, t, e, ...r) => {
|
|
|
39
39
|
console.error(s, ...r);
|
|
40
40
|
break;
|
|
41
41
|
}
|
|
42
|
-
},
|
|
42
|
+
}, Xr = (n) => {
|
|
43
43
|
const t = n.container || n;
|
|
44
44
|
return {
|
|
45
|
-
info: (e, ...r) =>
|
|
46
|
-
warn: (e, ...r) =>
|
|
47
|
-
error: (e, ...r) =>
|
|
45
|
+
info: (e, ...r) => Pe(t, "info", e, ...r),
|
|
46
|
+
warn: (e, ...r) => Pe(t, "warning", e, ...r),
|
|
47
|
+
error: (e, ...r) => Pe(t, "error", e, ...r)
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
var
|
|
51
|
-
const
|
|
50
|
+
var he = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(he || {}), mt = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(mt || {});
|
|
51
|
+
const ts = (n, t, e, r) => {
|
|
52
52
|
try {
|
|
53
53
|
const s = new t(e, r);
|
|
54
54
|
return {
|
|
@@ -72,23 +72,23 @@ const Gr = (n, t, e, r) => {
|
|
|
72
72
|
throw s;
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
function
|
|
75
|
+
function gn(n, t) {
|
|
76
76
|
return typeof n == "undefined" ? t : n;
|
|
77
77
|
}
|
|
78
|
-
let
|
|
78
|
+
let es = class {
|
|
79
79
|
constructor(t = {}) {
|
|
80
80
|
this.part = t;
|
|
81
81
|
}
|
|
82
82
|
createCommand(t, e, r) {
|
|
83
83
|
let s;
|
|
84
84
|
typeof e == "function" ? s = {
|
|
85
|
-
scope:
|
|
86
|
-
stage:
|
|
85
|
+
scope: he.Widget,
|
|
86
|
+
stage: mt.Post,
|
|
87
87
|
defaultArgs: void 0,
|
|
88
88
|
handlerResolver: e
|
|
89
89
|
} : s = {
|
|
90
|
-
scope:
|
|
91
|
-
stage:
|
|
90
|
+
scope: gn(e.scope, he.Widget),
|
|
91
|
+
stage: gn(e.stage, mt.Post),
|
|
92
92
|
defaultArgs: e.defaultArgs,
|
|
93
93
|
handlerResolver: r
|
|
94
94
|
};
|
|
@@ -102,26 +102,26 @@ let Yr = class {
|
|
|
102
102
|
return this.part;
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
const
|
|
106
|
-
const t = new
|
|
105
|
+
const Xe = (n) => {
|
|
106
|
+
const t = new es({});
|
|
107
107
|
return n(t), t.get();
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
Xe((n) => {
|
|
110
110
|
n.createCommand(
|
|
111
111
|
"types.register",
|
|
112
|
-
{ scope:
|
|
112
|
+
{ scope: he.Implementation, stage: mt.Pre },
|
|
113
113
|
(t) => (e, r) => {
|
|
114
114
|
t.container.get("$types")[e] = r;
|
|
115
115
|
}
|
|
116
116
|
).createCommand(
|
|
117
117
|
"type",
|
|
118
|
-
{ stage:
|
|
118
|
+
{ stage: mt.Pre },
|
|
119
119
|
(t) => (e) => {
|
|
120
120
|
t.container.register("$type", e);
|
|
121
121
|
}
|
|
122
122
|
).createCommand(
|
|
123
123
|
"settings",
|
|
124
|
-
{ stage:
|
|
124
|
+
{ stage: mt.Pre, defaultArgs: [null] },
|
|
125
125
|
(t) => (e) => {
|
|
126
126
|
t.events.dispatch(
|
|
127
127
|
"settings:change",
|
|
@@ -131,7 +131,7 @@ Je((n) => {
|
|
|
131
131
|
}
|
|
132
132
|
).createCommand(
|
|
133
133
|
"plugin",
|
|
134
|
-
{ stage:
|
|
134
|
+
{ stage: mt.Pre },
|
|
135
135
|
(t) => (e, r, s) => {
|
|
136
136
|
const { container: i } = t;
|
|
137
137
|
let o = null, a = e, c = r;
|
|
@@ -144,7 +144,7 @@ Je((n) => {
|
|
|
144
144
|
a
|
|
145
145
|
) : r;
|
|
146
146
|
try {
|
|
147
|
-
const p =
|
|
147
|
+
const p = ts(
|
|
148
148
|
o,
|
|
149
149
|
a,
|
|
150
150
|
i,
|
|
@@ -152,7 +152,7 @@ Je((n) => {
|
|
|
152
152
|
);
|
|
153
153
|
i.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
154
154
|
} catch (p) {
|
|
155
|
-
|
|
155
|
+
Xr(t).warn("Error when initializing plugin", p);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
|
|
@@ -185,8 +185,8 @@ Je((n) => {
|
|
|
185
185
|
}
|
|
186
186
|
);
|
|
187
187
|
});
|
|
188
|
-
var
|
|
189
|
-
let
|
|
188
|
+
var nr = /* @__PURE__ */ ((n) => (n.Activating = "activating", n.Loading = "loading", n.Activated = "activated", n.Deactivating = "deactivating", n.Deactivated = "deactivated", n))(nr || {});
|
|
189
|
+
let ns = class {
|
|
190
190
|
/**
|
|
191
191
|
* Creates a new `Widget` instance.
|
|
192
192
|
* @param container The `Container` instance to base the widget upon.
|
|
@@ -197,16 +197,16 @@ let Zr = class {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
var
|
|
200
|
+
var fn = Object.getOwnPropertySymbols, rs = Object.prototype.hasOwnProperty, ss = Object.prototype.propertyIsEnumerable, is = (n, t) => {
|
|
201
201
|
var e = {};
|
|
202
202
|
for (var r in n)
|
|
203
|
-
|
|
204
|
-
if (n != null &&
|
|
205
|
-
for (var r of
|
|
206
|
-
t.indexOf(r) < 0 &&
|
|
203
|
+
rs.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
|
|
204
|
+
if (n != null && fn)
|
|
205
|
+
for (var r of fn(n))
|
|
206
|
+
t.indexOf(r) < 0 && ss.call(n, r) && (e[r] = n[r]);
|
|
207
207
|
return e;
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function os(n = {}) {
|
|
210
210
|
const t = n, {
|
|
211
211
|
phrase: e = "",
|
|
212
212
|
category: r,
|
|
@@ -221,7 +221,7 @@ function es(n = {}) {
|
|
|
221
221
|
tag: d,
|
|
222
222
|
tagId: p,
|
|
223
223
|
tagTitle: b
|
|
224
|
-
} = t, v =
|
|
224
|
+
} = t, v = is(t, [
|
|
225
225
|
"phrase",
|
|
226
226
|
"category",
|
|
227
227
|
"guideCategory",
|
|
@@ -236,33 +236,33 @@ function es(n = {}) {
|
|
|
236
236
|
"tagId",
|
|
237
237
|
"tagTitle"
|
|
238
238
|
]), g = {};
|
|
239
|
-
return Object.keys(v).forEach((
|
|
240
|
-
typeof n[
|
|
239
|
+
return Object.keys(v).forEach((E) => {
|
|
240
|
+
typeof n[E] == "string" && (g[E] = n[E]);
|
|
241
241
|
}), typeof e == "string" && e.length && (g.phrase = e), e === null && (g.phrase = e), typeof s == "string" && s !== "0" && (g.guideCategory = s), typeof s == "number" && s !== 0 && (g.guideCategory = s), typeof s == "object" && s !== null && (typeof s.id == "string" && s.id !== "0" && (g.guideCategory = s.id), typeof s.id == "number" && s.id !== 0 && (g.guideCategory = s.id)), typeof i == "string" && i !== "0" && (g.contactCategory = i), typeof i == "number" && i !== 0 && (g.contactCategory = i), typeof i == "object" && i !== null && (typeof i.id == "string" && i.id !== "0" && (g.contactCategory = i.id), typeof i.id == "number" && i.id !== 0 && (g.contactCategory = i.id)), typeof r == "string" && r !== "0" && (g.category = r), typeof r == "number" && r !== 0 && (g.category = r), typeof r == "object" && r !== null && (typeof r.id == "string" && r.id !== "0" && (g.category = r.id), typeof r.id == "number" && r.id !== 0 && (g.category = r.id)), h && (g.id = h), l && (+g.category || +g.guideCategory || +g.guide || +g.contactCategory || +g.contactMethod) && (g.uriName = l), a && (g.connectionKey = a), o && (g.take = o), u && (g.sorting = u), typeof c == "string" && c.length > 0 && (g.accordion = c), typeof d == "string" && d !== "0" && (g.tag = d), typeof d == "number" && d !== 0 && (g.tag = d), Array.isArray(d) && d.length && (g.tag = d), (typeof p == "string" || typeof p == "number") && (g.tagId = p), typeof b == "string" && (g.tagTitle = b), typeof g.tag == "string" && (g.tag = g.tag.split(",")), g;
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const be = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), Rt = class {
|
|
244
244
|
constructor() {
|
|
245
|
-
this.keys = [], this.log = (t, ...e) => this.lookup(t, () =>
|
|
245
|
+
this.keys = [], this.log = (t, ...e) => this.lookup(t, () => Rt.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => Rt.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => Rt.error(...e)), this.info = (t, ...e) => this.lookup(t, () => Rt.info(...e));
|
|
246
246
|
}
|
|
247
247
|
lookup(t, e) {
|
|
248
248
|
this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
let I =
|
|
252
|
-
I.log = (...n) =>
|
|
253
|
-
I.warn = (...n) =>
|
|
254
|
-
I.error = (...n) =>
|
|
255
|
-
I.info = (...n) =>
|
|
256
|
-
const
|
|
251
|
+
let I = Rt;
|
|
252
|
+
I.log = (...n) => be(console.log, ...n);
|
|
253
|
+
I.warn = (...n) => be(console.warn, ...n);
|
|
254
|
+
I.error = (...n) => be(console.error, ...n);
|
|
255
|
+
I.info = (...n) => be(console.info, ...n);
|
|
256
|
+
const rr = (n) => {
|
|
257
257
|
let t = {}, e, r;
|
|
258
258
|
if (typeof n != "object" || n === null)
|
|
259
259
|
return n;
|
|
260
260
|
t = Array.isArray(n) ? [] : {};
|
|
261
261
|
for (r in n)
|
|
262
|
-
e = n[r], t[r] = typeof e == "object" && e !== null ?
|
|
262
|
+
e = n[r], t[r] = typeof e == "object" && e !== null ? rr(e) : e;
|
|
263
263
|
return t;
|
|
264
|
-
},
|
|
265
|
-
function
|
|
264
|
+
}, as = rr;
|
|
265
|
+
function mn(n) {
|
|
266
266
|
let t = 0;
|
|
267
267
|
if (n.length === 0)
|
|
268
268
|
return t.toString();
|
|
@@ -272,7 +272,7 @@ function un(n) {
|
|
|
272
272
|
}
|
|
273
273
|
return t.toString();
|
|
274
274
|
}
|
|
275
|
-
let
|
|
275
|
+
let cs = class {
|
|
276
276
|
constructor(t, e) {
|
|
277
277
|
this.lockWarningTime = t, this.lockErrorTime = e, this.tasks = [], this.current = Promise.resolve(), this.next = this.next.bind(this);
|
|
278
278
|
}
|
|
@@ -302,16 +302,16 @@ let rs = class {
|
|
|
302
302
|
});
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
|
-
const
|
|
306
|
-
function
|
|
307
|
-
return
|
|
308
|
-
const o =
|
|
305
|
+
const Gt = /* @__PURE__ */ new WeakMap();
|
|
306
|
+
function X(n, t = 5e3, e = 1e3) {
|
|
307
|
+
return Gt.has(n) || Gt.set(n, new cs(t, e)), (r) => new Promise((s, i) => {
|
|
308
|
+
const o = Gt.get(n);
|
|
309
309
|
o.add(r, s, i, () => {
|
|
310
|
-
o.tasks.length ||
|
|
310
|
+
o.tasks.length || Gt.delete(n);
|
|
311
311
|
});
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
const
|
|
314
|
+
const hs = (n, t) => {
|
|
315
315
|
const e = () => t.querySelectorAll("[data-loading=true]").length > 0, r = (() => {
|
|
316
316
|
let s = !1;
|
|
317
317
|
return () => {
|
|
@@ -331,7 +331,7 @@ const ss = (n, t) => {
|
|
|
331
331
|
childList: !0,
|
|
332
332
|
subtree: !0
|
|
333
333
|
});
|
|
334
|
-
},
|
|
334
|
+
}, ls = (n, t) => {
|
|
335
335
|
n.get("$widget").container.getAsync("components").then((e) => {
|
|
336
336
|
e.events.subscribeOnce("components:component-model-initialized", () => {
|
|
337
337
|
let r = e.nodes.visible.reduce(
|
|
@@ -347,7 +347,7 @@ const ss = (n, t) => {
|
|
|
347
347
|
const u = l.getAttribute && l.getAttribute("data-name");
|
|
348
348
|
return u && r.indexOf(u) > -1 && h.push(u), h;
|
|
349
349
|
}, []);
|
|
350
|
-
r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0,
|
|
350
|
+
r = r.filter((h) => c.indexOf(h) === -1), !s && r.length === 0 && (s = !0, hs(n, t), o.disconnect());
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
353
|
}).observe(t, {
|
|
@@ -360,9 +360,9 @@ const ss = (n, t) => {
|
|
|
360
360
|
});
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
},
|
|
363
|
+
}, us = ls, ds = (n = {}) => (Object.keys(n).forEach((t) => {
|
|
364
364
|
(n[t] === null || typeof n[t] == "undefined") && delete n[t];
|
|
365
|
-
}), n),
|
|
365
|
+
}), n), $t = ds, vn = (n, t) => {
|
|
366
366
|
let e = !0;
|
|
367
367
|
return Object.keys(n).length !== Object.keys(t).length || Object.keys(n).some((r) => !Object.keys(t).some((s) => r === s)) ? !1 : (Object.keys(n).forEach((r) => {
|
|
368
368
|
if (e) {
|
|
@@ -370,19 +370,19 @@ const ss = (n, t) => {
|
|
|
370
370
|
e = s.toString() === i.toString();
|
|
371
371
|
}
|
|
372
372
|
}), e);
|
|
373
|
-
},
|
|
374
|
-
function
|
|
375
|
-
return
|
|
373
|
+
}, ot = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
374
|
+
function qt() {
|
|
375
|
+
return ot() + ot() + "-" + ot() + "-" + ot() + "-" + ot() + "-" + ot() + ot() + ot();
|
|
376
376
|
}
|
|
377
|
-
var
|
|
377
|
+
var ps = Object.defineProperty, gs = Object.defineProperties, fs = Object.getOwnPropertyDescriptors, yn = Object.getOwnPropertySymbols, ms = Object.prototype.hasOwnProperty, vs = Object.prototype.propertyIsEnumerable, bn = (n, t, e) => t in n ? ps(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ys = (n, t) => {
|
|
378
378
|
for (var e in t || (t = {}))
|
|
379
|
-
|
|
380
|
-
if (
|
|
381
|
-
for (var e of
|
|
382
|
-
|
|
379
|
+
ms.call(t, e) && bn(n, e, t[e]);
|
|
380
|
+
if (yn)
|
|
381
|
+
for (var e of yn(t))
|
|
382
|
+
vs.call(t, e) && bn(n, e, t[e]);
|
|
383
383
|
return n;
|
|
384
|
-
},
|
|
385
|
-
class
|
|
384
|
+
}, bs = (n, t) => gs(n, fs(t));
|
|
385
|
+
class ws {
|
|
386
386
|
constructor(t) {
|
|
387
387
|
const { events: e } = t.get("$widget");
|
|
388
388
|
this.events = e.createChild(this);
|
|
@@ -397,7 +397,7 @@ class fs {
|
|
|
397
397
|
);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
const
|
|
400
|
+
const sr = (n) => {
|
|
401
401
|
const t = [];
|
|
402
402
|
return [
|
|
403
403
|
(e, r) => {
|
|
@@ -410,7 +410,7 @@ const tr = (n) => {
|
|
|
410
410
|
}
|
|
411
411
|
];
|
|
412
412
|
};
|
|
413
|
-
let
|
|
413
|
+
let Nt = class {
|
|
414
414
|
constructor(t, e = []) {
|
|
415
415
|
this.platform = t, this.rules = e;
|
|
416
416
|
}
|
|
@@ -424,16 +424,16 @@ let Pt = class {
|
|
|
424
424
|
return this.rules.push({ id: t }), this;
|
|
425
425
|
}
|
|
426
426
|
select() {
|
|
427
|
-
return new
|
|
427
|
+
return new $s(this.platform, this);
|
|
428
428
|
}
|
|
429
|
-
},
|
|
429
|
+
}, tn = class {
|
|
430
430
|
constructor(t, e, r) {
|
|
431
|
-
this.platform = t, this.node = e, this.actions = new
|
|
431
|
+
this.platform = t, this.node = e, this.actions = new we(
|
|
432
432
|
t,
|
|
433
|
-
new
|
|
433
|
+
new Nt(t).withId(e.id),
|
|
434
434
|
r
|
|
435
435
|
);
|
|
436
|
-
const [s, i] =
|
|
436
|
+
const [s, i] = sr(this.platform.events);
|
|
437
437
|
this.subscribe = s, this.unsubscribe = i;
|
|
438
438
|
}
|
|
439
439
|
properties(t) {
|
|
@@ -462,9 +462,9 @@ let Pt = class {
|
|
|
462
462
|
this.unsubscribe(), this.actions.dispose();
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
|
-
class
|
|
465
|
+
class $s {
|
|
466
466
|
constructor(t, e, r = !0) {
|
|
467
|
-
this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new
|
|
467
|
+
this.platform = t, this.target = e, this.clearOnDispose = r, this.removes = [], this.actions = new we(this.platform, this.target);
|
|
468
468
|
}
|
|
469
469
|
writeProperties(t, e) {
|
|
470
470
|
this.removes.push(
|
|
@@ -502,12 +502,12 @@ class ms {
|
|
|
502
502
|
}), this.actions.dispose();
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
const
|
|
505
|
+
const Os = (n, t, e) => {
|
|
506
506
|
const r = n.concat(), s = (i, o, a) => {
|
|
507
507
|
let c = !0;
|
|
508
508
|
if (r.length) {
|
|
509
509
|
const h = r.shift(), l = (u, d) => (c = !1, s(u, Object.assign({}, o, d), a));
|
|
510
|
-
return Promise.resolve(h(i, l, a)).then((u) =>
|
|
510
|
+
return Promise.resolve(h(i, l, a)).then((u) => bs(ys({}, u), {
|
|
511
511
|
cancelled: c
|
|
512
512
|
}));
|
|
513
513
|
}
|
|
@@ -515,7 +515,7 @@ const vs = (n, t, e) => {
|
|
|
515
515
|
};
|
|
516
516
|
return s(t, {}, e);
|
|
517
517
|
};
|
|
518
|
-
let
|
|
518
|
+
let we = class {
|
|
519
519
|
constructor(t, e, r) {
|
|
520
520
|
this.platform = t, this.target = e, this.ns = r, this.subscriptions = [], this.create = this.create.bind(this);
|
|
521
521
|
}
|
|
@@ -547,12 +547,12 @@ let ge = class {
|
|
|
547
547
|
), c = this.platform.actionsState.watchers.filter((h) => h.key === t && (!h.ns || !this.ns || h.ns === this.ns) && a.some((l) => h.target.match(l))).map((h) => h.fn);
|
|
548
548
|
return Promise.all(
|
|
549
549
|
a.map((h) => {
|
|
550
|
-
const l = new
|
|
550
|
+
const l = new tn(
|
|
551
551
|
this.platform,
|
|
552
552
|
h,
|
|
553
553
|
this.ns
|
|
554
554
|
);
|
|
555
|
-
return
|
|
555
|
+
return Os(c, e, l).then((u) => {
|
|
556
556
|
const { data: d = {}, options: p, cancelled: b } = u;
|
|
557
557
|
return Promise.resolve(
|
|
558
558
|
b ? {} : o.fn(d, p, l)
|
|
@@ -586,7 +586,7 @@ let ge = class {
|
|
|
586
586
|
this.subscriptions.forEach((t) => t());
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
|
-
|
|
589
|
+
Xe((n) => {
|
|
590
590
|
n.createCommand("components", (t) => (e) => {
|
|
591
591
|
t.events.subscribeOnce("components:platform-created", (r, { platform: s }) => {
|
|
592
592
|
e.handlers && e.handlers.forEach(([i, o]) => {
|
|
@@ -595,9 +595,9 @@ Je((n) => {
|
|
|
595
595
|
});
|
|
596
596
|
});
|
|
597
597
|
});
|
|
598
|
-
let
|
|
598
|
+
let qe = class {
|
|
599
599
|
constructor(t, e) {
|
|
600
|
-
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id =
|
|
600
|
+
this.events = t, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = qt(), this.type = e, this.attributes = {
|
|
601
601
|
context: {},
|
|
602
602
|
properties: {},
|
|
603
603
|
layout: {},
|
|
@@ -680,49 +680,49 @@ let Be = class {
|
|
|
680
680
|
}), delete t.parent;
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
|
-
const
|
|
683
|
+
const ir = (n, t, e) => {
|
|
684
684
|
for (let r = 0, s = n.length; r < s && e(n[r]) !== !0; r++) {
|
|
685
685
|
const i = t[n[r].id] || "default", o = n[r].getChildren(i);
|
|
686
|
-
|
|
686
|
+
ir(o, t, e);
|
|
687
687
|
}
|
|
688
|
-
},
|
|
688
|
+
}, $e = (n, t, e) => {
|
|
689
689
|
if (e(n) !== !0) {
|
|
690
690
|
const r = t[n.id] || "default", s = n.children[r];
|
|
691
|
-
|
|
691
|
+
ir(s, t, e);
|
|
692
692
|
}
|
|
693
|
-
},
|
|
693
|
+
}, ne = (n, t) => {
|
|
694
694
|
const e = [];
|
|
695
|
-
return
|
|
695
|
+
return $e(n, t, (r) => {
|
|
696
696
|
e.push(r);
|
|
697
697
|
}), e;
|
|
698
|
-
},
|
|
698
|
+
}, or = (n, t, e) => {
|
|
699
699
|
let r;
|
|
700
|
-
return
|
|
700
|
+
return $e(n, t, (s) => {
|
|
701
701
|
if (e(s))
|
|
702
702
|
return r = s, !0;
|
|
703
703
|
}), r;
|
|
704
704
|
};
|
|
705
|
-
let
|
|
705
|
+
let Es = class {
|
|
706
706
|
constructor(t, e, r) {
|
|
707
707
|
this.root = t, this.switches = e, this.all = [], this.visible = [], this.detached = [], r.subscribe("components:node-appended", (s, i) => {
|
|
708
|
-
this.all.push(i.node), this.visible =
|
|
708
|
+
this.all.push(i.node), this.visible = ne(t, e);
|
|
709
709
|
}), r.subscribe("components:node-removed", (s, i) => {
|
|
710
710
|
let o = this.all.indexOf(i.node);
|
|
711
|
-
o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(i.node), o > -1 && this.visible.splice(o, 1), this.visible =
|
|
711
|
+
o > -1 && this.all.splice(o, 1), o = this.visible.indexOf(i.node), o > -1 && this.visible.splice(o, 1), this.visible = ne(t, e);
|
|
712
712
|
}), r.subscribe("components:node-switched", (s, i) => {
|
|
713
|
-
this.visible =
|
|
713
|
+
this.visible = ne(t, e);
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
query(t = {}) {
|
|
717
717
|
const e = [];
|
|
718
|
-
return
|
|
718
|
+
return $e(this.root, this.switches, (r) => {
|
|
719
719
|
Object.keys(t).every((s) => t[s] === r[s]) && e.push(r);
|
|
720
720
|
}), e;
|
|
721
721
|
}
|
|
722
722
|
get(t) {
|
|
723
|
-
return
|
|
723
|
+
return or(this.root, this.switches, (e) => e.id === t) || this.detached.find((e) => e.id === t);
|
|
724
724
|
}
|
|
725
|
-
},
|
|
725
|
+
}, xs = class {
|
|
726
726
|
constructor() {
|
|
727
727
|
this.handlers = /* @__PURE__ */ new Map();
|
|
728
728
|
}
|
|
@@ -733,43 +733,43 @@ let ys = class {
|
|
|
733
733
|
return this.handlers.get(t);
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
|
-
const
|
|
736
|
+
const _s = (n) => {
|
|
737
737
|
let t = n, e = 0;
|
|
738
738
|
for (; t.parent; )
|
|
739
739
|
e = e + 1, t = t.parent;
|
|
740
740
|
return e;
|
|
741
|
-
},
|
|
741
|
+
}, As = (n) => n.map(([t, e]) => [_s(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), Ce = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), et = (n, ...t) => {
|
|
742
742
|
if (!t.length)
|
|
743
743
|
return n;
|
|
744
744
|
const e = t.shift();
|
|
745
|
-
if (
|
|
745
|
+
if (Ce(n) && Ce(e))
|
|
746
746
|
for (const r in e)
|
|
747
|
-
|
|
748
|
-
return
|
|
749
|
-
},
|
|
747
|
+
Ce(e[r]) ? (n[r] || Object.assign(n, { [r]: {} }), et(n[r], e[r])) : Object.assign(n, { [r]: e[r] });
|
|
748
|
+
return et(n, ...t);
|
|
749
|
+
}, Ps = (n, t) => !n || n === "all" ? !0 : n.some((e) => t.indexOf(e) > -1), Cs = (n, t) => {
|
|
750
750
|
let e = [], r = [], s;
|
|
751
751
|
const i = () => {
|
|
752
752
|
process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
|
|
753
|
-
const a = /* @__PURE__ */ new Map(), c =
|
|
753
|
+
const a = /* @__PURE__ */ new Map(), c = As(e.map((l, u) => [l, r[u]])), h = (l, u) => {
|
|
754
754
|
var d;
|
|
755
755
|
const p = a.get(l) || {}, b = u.context && !p.context, v = u.properties && !p.properties, g = u.layout && !p.layout;
|
|
756
756
|
a.set(l, {
|
|
757
757
|
context: p.context || b,
|
|
758
758
|
properties: p.properties || v,
|
|
759
759
|
layout: p.layout || g
|
|
760
|
-
}), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context =
|
|
761
|
-
const
|
|
760
|
+
}), v && (l.attributes.properties = {}), g && (l.attributes.layout = {}), b && (l.attributes.context = et({}, (d = l.parent) == null ? void 0 : d.attributes.context));
|
|
761
|
+
const E = [], R = [], F = [];
|
|
762
762
|
if (l.changesets.forEach((H) => {
|
|
763
763
|
const [k, U] = H;
|
|
764
|
-
|
|
764
|
+
Ps(U.breakpoints, n.breakpoints) && (v && (typeof k.properties == "function" ? E.push(
|
|
765
765
|
k.properties
|
|
766
|
-
) :
|
|
767
|
-
}),
|
|
768
|
-
|
|
769
|
-
}),
|
|
770
|
-
|
|
771
|
-
}),
|
|
772
|
-
|
|
766
|
+
) : et(l.attributes.properties, k.properties)), g && (typeof k.layout == "function" ? R.push(k.layout) : et(l.attributes.layout, k.layout)), b && (typeof k.context == "function" ? F.push(k.context) : et(l.attributes.context, k.context)));
|
|
767
|
+
}), E.forEach((H) => {
|
|
768
|
+
et(l.attributes.properties, H(l.attributes.properties));
|
|
769
|
+
}), R.forEach((H) => {
|
|
770
|
+
et(l.attributes.layout, H(l.attributes.layout));
|
|
771
|
+
}), F.forEach((H) => {
|
|
772
|
+
et(l.attributes.context, H(l.attributes.context));
|
|
773
773
|
}), b || u.recursive) {
|
|
774
774
|
const H = n.getBranch(l), k = u.recursive ? u : {
|
|
775
775
|
context: !!b
|
|
@@ -794,12 +794,12 @@ const ws = (n) => {
|
|
|
794
794
|
return e.push(a), r.push(c), o();
|
|
795
795
|
};
|
|
796
796
|
};
|
|
797
|
-
let
|
|
797
|
+
let Jt = class {
|
|
798
798
|
constructor(t, e = {}) {
|
|
799
|
-
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new
|
|
800
|
-
const r = new
|
|
801
|
-
r.name = `root-${t.name}`, this.nodes = new
|
|
802
|
-
const s = this.processNode =
|
|
799
|
+
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new xs(), this.events = t.events.createChild(this);
|
|
800
|
+
const r = new qe(this.events, "root");
|
|
801
|
+
r.name = `root-${t.name}`, this.nodes = new Es(r, this.switches, this.events);
|
|
802
|
+
const s = this.processNode = Cs(this, (i) => {
|
|
803
803
|
const o = Array.from(i.keys());
|
|
804
804
|
process.env.NODE_ENV !== "production" && console.info(`STATE PROCESSOR: ${o.length} node(s) processed:
|
|
805
805
|
${o.map(
|
|
@@ -904,17 +904,17 @@ ${o.map(
|
|
|
904
904
|
* @param type Type of node.
|
|
905
905
|
*/
|
|
906
906
|
createNode(t, e = {}) {
|
|
907
|
-
const r = new
|
|
907
|
+
const r = new qe(this.events, t);
|
|
908
908
|
return e.detached && this.nodes.detached.push(r), r;
|
|
909
909
|
}
|
|
910
910
|
components() {
|
|
911
|
-
return new
|
|
911
|
+
return new Nt(this);
|
|
912
912
|
}
|
|
913
913
|
actions(t, e) {
|
|
914
|
-
return new
|
|
914
|
+
return new we(this, t, e);
|
|
915
915
|
}
|
|
916
916
|
write(t) {
|
|
917
|
-
const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key ||
|
|
917
|
+
const { provider: e, target: r, attributes: s, options: i = {}, removable: o } = t, a = t.key || qt(), c = { changeset: [s, i], target: r, removes: [] };
|
|
918
918
|
if (e) {
|
|
919
919
|
const h = this.providers[e];
|
|
920
920
|
h.write(a, r, s, i), c.removes.push(() => {
|
|
@@ -945,7 +945,7 @@ ${o.map(
|
|
|
945
945
|
this.subscriptions.forEach((t) => t());
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
|
-
const
|
|
948
|
+
const Ss = (n) => {
|
|
949
949
|
if (Array.isArray(n)) {
|
|
950
950
|
const [t, ...e] = n;
|
|
951
951
|
return {
|
|
@@ -957,14 +957,14 @@ const As = (n) => {
|
|
|
957
957
|
definitionId: n,
|
|
958
958
|
overrides: []
|
|
959
959
|
};
|
|
960
|
-
},
|
|
960
|
+
}, le = (n, t, e, r, s, i) => {
|
|
961
961
|
e.forEach((o) => {
|
|
962
|
-
const a =
|
|
962
|
+
const a = Ss(o), c = r[a.definitionId];
|
|
963
963
|
if (a.definitionId === "view") {
|
|
964
964
|
const h = n.createNode("view");
|
|
965
965
|
h.name = "view", Object.keys(s).forEach((l) => {
|
|
966
966
|
const u = s[l];
|
|
967
|
-
|
|
967
|
+
le(n, h, [u.entry], r, s, l);
|
|
968
968
|
}), t.appendChild(h), a.overrides.forEach((l) => {
|
|
969
969
|
l.properties && h.writeProperties(l.properties, {
|
|
970
970
|
breakpoints: l.breakpoints
|
|
@@ -992,10 +992,10 @@ const As = (n) => {
|
|
|
992
992
|
l.name = a.definitionId, l.tags = h.tags || [], h.properties && l.writeProperties(h.properties), h.context && l.writeContext(h.context), h.layout && l.writeLayout(h.layout), t.appendChild(l, i), a.overrides.forEach((u) => {
|
|
993
993
|
const d = { breakpoints: u.breakpoints };
|
|
994
994
|
u.properties && l.writeProperties(u.properties, d), u.context && l.writeContext(u.context, d), u.layout && l.writeLayout(u.layout, d);
|
|
995
|
-
}), h.children &&
|
|
995
|
+
}), h.children && le(n, l, h.children, r, s);
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
|
-
},
|
|
998
|
+
}, ar = (n, t) => {
|
|
999
999
|
const { entry: e, components: r, breakpoints: s, views: i } = t, o = [];
|
|
1000
1000
|
return Object.keys(s).forEach((a) => {
|
|
1001
1001
|
const c = s[a], h = window.matchMedia(c);
|
|
@@ -1004,24 +1004,24 @@ const As = (n) => {
|
|
|
1004
1004
|
u.matches ? n.addBreakpoint(a) : n.removeBreakpoint(a);
|
|
1005
1005
|
};
|
|
1006
1006
|
h.addListener(l), o.push(() => h.removeListener(l));
|
|
1007
|
-
}),
|
|
1007
|
+
}), le(n, n.nodes.root, [e], r, i), () => o.forEach((a) => {
|
|
1008
1008
|
a();
|
|
1009
1009
|
});
|
|
1010
|
-
},
|
|
1010
|
+
}, Je = (n, t) => ({
|
|
1011
1011
|
id: n.id,
|
|
1012
1012
|
type: n.type,
|
|
1013
1013
|
name: n.name,
|
|
1014
1014
|
branch: t || "default"
|
|
1015
|
-
}),
|
|
1015
|
+
}), cr = (n, t, e, r = qt(), s = {}) => n.getAsync("components").then((i) => {
|
|
1016
1016
|
let o;
|
|
1017
1017
|
if (typeof t == "string") {
|
|
1018
|
-
const h = new
|
|
1018
|
+
const h = new Nt(i);
|
|
1019
1019
|
h.ofType(t), o = h;
|
|
1020
1020
|
} else
|
|
1021
1021
|
o = t;
|
|
1022
1022
|
const a = {}, c = (h) => {
|
|
1023
1023
|
const l = a[h.id];
|
|
1024
|
-
return l ? Promise.resolve(l.controller) :
|
|
1024
|
+
return l ? Promise.resolve(l.controller) : Jt.getInstance(n).then((u) => new tn(u, h, r));
|
|
1025
1025
|
};
|
|
1026
1026
|
i.events.subscribe(
|
|
1027
1027
|
"components:node-enter",
|
|
@@ -1043,7 +1043,7 @@ const As = (n) => {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
);
|
|
1045
1045
|
});
|
|
1046
|
-
class
|
|
1046
|
+
class ks {
|
|
1047
1047
|
constructor(t) {
|
|
1048
1048
|
this.aliases = /* @__PURE__ */ new Map(), this.components = /* @__PURE__ */ new Map(), this.logger = new I();
|
|
1049
1049
|
const { events: e } = t.get("$widget");
|
|
@@ -1075,32 +1075,32 @@ class _s {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
|
-
var
|
|
1079
|
-
const
|
|
1078
|
+
var J = /* @__PURE__ */ ((n) => (n.open = "open", n.closed = "closed", n.hidden = "hidden", n))(J || {});
|
|
1079
|
+
const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1080
1080
|
__proto__: null,
|
|
1081
|
-
ActionResolver:
|
|
1082
|
-
ActionsController:
|
|
1083
|
-
ComponentNode:
|
|
1084
|
-
ComponentNodeController:
|
|
1085
|
-
ComponentPlatform:
|
|
1086
|
-
ComponentQuery:
|
|
1087
|
-
ComponentResolver:
|
|
1088
|
-
WidgetRenderState:
|
|
1089
|
-
asDescriptor:
|
|
1090
|
-
createChildren:
|
|
1091
|
-
createComponentModel:
|
|
1092
|
-
createEventSubscriber:
|
|
1093
|
-
extendComponent:
|
|
1094
|
-
findComponent:
|
|
1095
|
-
findVisibleComponents:
|
|
1096
|
-
traverseComponents:
|
|
1081
|
+
ActionResolver: ws,
|
|
1082
|
+
ActionsController: we,
|
|
1083
|
+
ComponentNode: qe,
|
|
1084
|
+
ComponentNodeController: tn,
|
|
1085
|
+
ComponentPlatform: Jt,
|
|
1086
|
+
ComponentQuery: Nt,
|
|
1087
|
+
ComponentResolver: ks,
|
|
1088
|
+
WidgetRenderState: J,
|
|
1089
|
+
asDescriptor: Je,
|
|
1090
|
+
createChildren: le,
|
|
1091
|
+
createComponentModel: ar,
|
|
1092
|
+
createEventSubscriber: sr,
|
|
1093
|
+
extendComponent: cr,
|
|
1094
|
+
findComponent: or,
|
|
1095
|
+
findVisibleComponents: ne,
|
|
1096
|
+
traverseComponents: $e
|
|
1097
1097
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1098
|
-
function
|
|
1098
|
+
function hr(n) {
|
|
1099
1099
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1101
|
+
var lr = function() {
|
|
1102
1102
|
};
|
|
1103
|
-
process.env.NODE_ENV !== "production" && (
|
|
1103
|
+
process.env.NODE_ENV !== "production" && (lr = function(n, t, e) {
|
|
1104
1104
|
var r = arguments.length;
|
|
1105
1105
|
e = new Array(r > 2 ? r - 2 : 0);
|
|
1106
1106
|
for (var s = 2; s < r; s++)
|
|
@@ -1124,9 +1124,9 @@ process.env.NODE_ENV !== "production" && (or = function(n, t, e) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
});
|
|
1127
|
-
var
|
|
1128
|
-
const
|
|
1129
|
-
var
|
|
1127
|
+
var Ns = lr;
|
|
1128
|
+
const nt = /* @__PURE__ */ hr(Ns);
|
|
1129
|
+
var Ls = function(n, t, e, r, s, i, o, a) {
|
|
1130
1130
|
if (process.env.NODE_ENV !== "production" && t === void 0)
|
|
1131
1131
|
throw new Error("invariant requires an error message argument");
|
|
1132
1132
|
if (!n) {
|
|
@@ -1145,19 +1145,19 @@ var Ps = function(n, t, e, r, s, i, o, a) {
|
|
|
1145
1145
|
}
|
|
1146
1146
|
throw c.framesToPop = 1, c;
|
|
1147
1147
|
}
|
|
1148
|
-
},
|
|
1149
|
-
const
|
|
1150
|
-
function
|
|
1148
|
+
}, Ms = Ls;
|
|
1149
|
+
const Ds = /* @__PURE__ */ hr(Ms);
|
|
1150
|
+
function Yt(n) {
|
|
1151
1151
|
return n.charAt(0) === "/";
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function Se(n, t) {
|
|
1154
1154
|
for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)
|
|
1155
1155
|
n[e] = n[r];
|
|
1156
1156
|
n.pop();
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n &&
|
|
1160
|
-
if (n &&
|
|
1158
|
+
function js(n) {
|
|
1159
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Yt(n), i = t && Yt(t), o = s || i;
|
|
1160
|
+
if (n && Yt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
|
|
1161
1161
|
return "/";
|
|
1162
1162
|
var a = void 0;
|
|
1163
1163
|
if (r.length) {
|
|
@@ -1167,24 +1167,24 @@ function Ns(n) {
|
|
|
1167
1167
|
a = !1;
|
|
1168
1168
|
for (var h = 0, l = r.length; l >= 0; l--) {
|
|
1169
1169
|
var u = r[l];
|
|
1170
|
-
u === "." ?
|
|
1170
|
+
u === "." ? Se(r, l) : u === ".." ? (Se(r, l), h++) : h && (Se(r, l), h--);
|
|
1171
1171
|
}
|
|
1172
1172
|
if (!o)
|
|
1173
1173
|
for (; h--; h)
|
|
1174
1174
|
r.unshift("..");
|
|
1175
|
-
o && r[0] !== "" && (!r[0] || !
|
|
1175
|
+
o && r[0] !== "" && (!r[0] || !Yt(r[0])) && r.unshift("");
|
|
1176
1176
|
var d = r.join("/");
|
|
1177
1177
|
return a && d.substr(-1) !== "/" && (d += "/"), d;
|
|
1178
1178
|
}
|
|
1179
|
-
var
|
|
1179
|
+
var Rs = function(t) {
|
|
1180
1180
|
return t.charAt(0) === "/" ? t : "/" + t;
|
|
1181
|
-
},
|
|
1181
|
+
}, ur = function(t, e) {
|
|
1182
1182
|
return new RegExp("^" + e + "(\\/|\\?|#|$)", "i").test(t);
|
|
1183
|
-
},
|
|
1184
|
-
return
|
|
1185
|
-
},
|
|
1183
|
+
}, Ts = function(t, e) {
|
|
1184
|
+
return ur(t, e) ? t.substr(e.length) : t;
|
|
1185
|
+
}, Is = function(t) {
|
|
1186
1186
|
return t.charAt(t.length - 1) === "/" ? t.slice(0, -1) : t;
|
|
1187
|
-
},
|
|
1187
|
+
}, Hs = function(t) {
|
|
1188
1188
|
var e = t || "/", r = "", s = "", i = e.indexOf("#");
|
|
1189
1189
|
i !== -1 && (s = e.substr(i), e = e.substr(0, i));
|
|
1190
1190
|
var o = e.indexOf("?");
|
|
@@ -1193,34 +1193,34 @@ var Ms = function(t) {
|
|
|
1193
1193
|
search: r === "?" ? "" : r,
|
|
1194
1194
|
hash: s === "#" ? "" : s
|
|
1195
1195
|
};
|
|
1196
|
-
},
|
|
1196
|
+
}, dr = function(t) {
|
|
1197
1197
|
var e = t.pathname, r = t.search, s = t.hash, i = e || "/";
|
|
1198
1198
|
return r && r !== "?" && (i += r.charAt(0) === "?" ? r : "?" + r), s && s !== "#" && (i += s.charAt(0) === "#" ? s : "#" + s), i;
|
|
1199
|
-
},
|
|
1199
|
+
}, Us = Object.assign || function(n) {
|
|
1200
1200
|
for (var t = 1; t < arguments.length; t++) {
|
|
1201
1201
|
var e = arguments[t];
|
|
1202
1202
|
for (var r in e)
|
|
1203
1203
|
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
1204
1204
|
}
|
|
1205
1205
|
return n;
|
|
1206
|
-
},
|
|
1206
|
+
}, vt = function(t, e, r, s) {
|
|
1207
1207
|
var i = void 0;
|
|
1208
|
-
typeof t == "string" ? (i =
|
|
1208
|
+
typeof t == "string" ? (i = Hs(t), i.state = e) : (i = Us({}, t), i.pathname === void 0 && (i.pathname = ""), i.search ? i.search.charAt(0) !== "?" && (i.search = "?" + i.search) : i.search = "", i.hash ? i.hash.charAt(0) !== "#" && (i.hash = "#" + i.hash) : i.hash = "", e !== void 0 && i.state === void 0 && (i.state = e));
|
|
1209
1209
|
try {
|
|
1210
1210
|
i.pathname = decodeURI(i.pathname);
|
|
1211
1211
|
} catch (o) {
|
|
1212
1212
|
throw o instanceof URIError ? new URIError('Pathname "' + i.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : o;
|
|
1213
1213
|
}
|
|
1214
|
-
return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname =
|
|
1215
|
-
},
|
|
1214
|
+
return r && (i.key = r), s ? i.pathname ? i.pathname.charAt(0) !== "/" && (i.pathname = js(i.pathname, s.pathname)) : i.pathname = s.pathname : i.pathname || (i.pathname = "/"), i;
|
|
1215
|
+
}, pr = function() {
|
|
1216
1216
|
var t = null, e = function(c) {
|
|
1217
|
-
return
|
|
1217
|
+
return nt(t == null, "A history supports only one prompt at a time"), t = c, function() {
|
|
1218
1218
|
t === c && (t = null);
|
|
1219
1219
|
};
|
|
1220
1220
|
}, r = function(c, h, l, u) {
|
|
1221
1221
|
if (t != null) {
|
|
1222
1222
|
var d = typeof t == "function" ? t(c, h) : t;
|
|
1223
|
-
typeof d == "string" ? typeof l == "function" ? l(d, u) : (
|
|
1223
|
+
typeof d == "string" ? typeof l == "function" ? l(d, u) : (nt(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), u(!0)) : u(d !== !1);
|
|
1224
1224
|
} else
|
|
1225
1225
|
u(!0);
|
|
1226
1226
|
}, s = [], i = function(c) {
|
|
@@ -1245,196 +1245,196 @@ var Ms = function(t) {
|
|
|
1245
1245
|
appendListener: i,
|
|
1246
1246
|
notifyListeners: o
|
|
1247
1247
|
};
|
|
1248
|
-
},
|
|
1248
|
+
}, Vs = !!(typeof window != "undefined" && window.document && window.document.createElement), wn = function(t, e, r) {
|
|
1249
1249
|
return t.addEventListener ? t.addEventListener(e, r, !1) : t.attachEvent("on" + e, r);
|
|
1250
|
-
},
|
|
1250
|
+
}, $n = function(t, e, r) {
|
|
1251
1251
|
return t.removeEventListener ? t.removeEventListener(e, r, !1) : t.detachEvent("on" + e, r);
|
|
1252
|
-
},
|
|
1252
|
+
}, Bs = function(t, e) {
|
|
1253
1253
|
return e(window.confirm(t));
|
|
1254
|
-
},
|
|
1254
|
+
}, zs = function() {
|
|
1255
1255
|
var t = window.navigator.userAgent;
|
|
1256
1256
|
return (t.indexOf("Android 2.") !== -1 || t.indexOf("Android 4.0") !== -1) && t.indexOf("Mobile Safari") !== -1 && t.indexOf("Chrome") === -1 && t.indexOf("Windows Phone") === -1 ? !1 : window.history && "pushState" in window.history;
|
|
1257
|
-
},
|
|
1257
|
+
}, Ws = function() {
|
|
1258
1258
|
return window.navigator.userAgent.indexOf("Trident") === -1;
|
|
1259
|
-
},
|
|
1259
|
+
}, Fs = function(t) {
|
|
1260
1260
|
return t.state === void 0 && navigator.userAgent.indexOf("CriOS") === -1;
|
|
1261
|
-
},
|
|
1261
|
+
}, On = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
1262
1262
|
return typeof n;
|
|
1263
1263
|
} : function(n) {
|
|
1264
1264
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1265
|
-
},
|
|
1265
|
+
}, qs = Object.assign || function(n) {
|
|
1266
1266
|
for (var t = 1; t < arguments.length; t++) {
|
|
1267
1267
|
var e = arguments[t];
|
|
1268
1268
|
for (var r in e)
|
|
1269
1269
|
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
1270
1270
|
}
|
|
1271
1271
|
return n;
|
|
1272
|
-
},
|
|
1272
|
+
}, En = "popstate", xn = "hashchange", _n = function() {
|
|
1273
1273
|
try {
|
|
1274
1274
|
return window.history.state || {};
|
|
1275
1275
|
} catch (t) {
|
|
1276
1276
|
return {};
|
|
1277
1277
|
}
|
|
1278
|
-
},
|
|
1278
|
+
}, Js = function() {
|
|
1279
1279
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1280
|
-
|
|
1281
|
-
var e = window.history, r =
|
|
1282
|
-
var
|
|
1283
|
-
return
|
|
1280
|
+
Ds(Vs, "Browser history needs a DOM");
|
|
1281
|
+
var e = window.history, r = zs(), s = !Ws(), i = t.forceRefresh, o = i === void 0 ? !1 : i, a = t.getUserConfirmation, c = a === void 0 ? Bs : a, h = t.keyLength, l = h === void 0 ? 6 : h, u = t.basename ? Is(Rs(t.basename)) : "", d = function(m) {
|
|
1282
|
+
var O = m || {}, L = O.key, M = O.state, K = window.location, G = K.pathname, it = K.search, Q = K.hash, q = G + it + Q;
|
|
1283
|
+
return nt(!u || ur(q, u), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + q + '" to begin with "' + u + '".'), u && (q = Ts(q, u)), vt(q, M, L);
|
|
1284
1284
|
}, p = function() {
|
|
1285
1285
|
return Math.random().toString(36).substr(2, l);
|
|
1286
|
-
}, b =
|
|
1287
|
-
|
|
1286
|
+
}, b = pr(), v = function(m) {
|
|
1287
|
+
qs(A, m), A.length = e.length, b.notifyListeners(A.location, A.action);
|
|
1288
1288
|
}, g = function(m) {
|
|
1289
|
-
|
|
1290
|
-
},
|
|
1291
|
-
|
|
1292
|
-
},
|
|
1293
|
-
if (
|
|
1294
|
-
|
|
1289
|
+
Fs(m) || F(d(m.state));
|
|
1290
|
+
}, E = function() {
|
|
1291
|
+
F(d(_n()));
|
|
1292
|
+
}, R = !1, F = function(m) {
|
|
1293
|
+
if (R)
|
|
1294
|
+
R = !1, v();
|
|
1295
1295
|
else {
|
|
1296
|
-
var
|
|
1297
|
-
b.confirmTransitionTo(m,
|
|
1298
|
-
|
|
1296
|
+
var O = "POP";
|
|
1297
|
+
b.confirmTransitionTo(m, O, c, function(L) {
|
|
1298
|
+
L ? v({ action: O, location: m }) : H(m);
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
1301
|
}, H = function(m) {
|
|
1302
|
-
var
|
|
1303
|
-
M === -1 && (M = 0);
|
|
1304
|
-
var L = U.indexOf(m.key);
|
|
1302
|
+
var O = A.location, L = U.indexOf(O.key);
|
|
1305
1303
|
L === -1 && (L = 0);
|
|
1306
|
-
var
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
},
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1304
|
+
var M = U.indexOf(m.key);
|
|
1305
|
+
M === -1 && (M = 0);
|
|
1306
|
+
var K = L - M;
|
|
1307
|
+
K && (R = !0, D(K));
|
|
1308
|
+
}, k = d(_n()), U = [k.key], x = function(m) {
|
|
1309
|
+
return u + dr(m);
|
|
1310
|
+
}, N = function(m, O) {
|
|
1311
|
+
nt(!((typeof m == "undefined" ? "undefined" : On(m)) === "object" && m.state !== void 0 && O !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1312
|
+
var L = "PUSH", M = vt(m, O, p(), A.location);
|
|
1313
|
+
b.confirmTransitionTo(M, L, c, function(K) {
|
|
1314
|
+
if (K) {
|
|
1315
|
+
var G = x(M), it = M.key, Q = M.state;
|
|
1316
1316
|
if (r)
|
|
1317
|
-
if (e.pushState({ key:
|
|
1318
|
-
window.location.href =
|
|
1317
|
+
if (e.pushState({ key: it, state: Q }, null, G), o)
|
|
1318
|
+
window.location.href = G;
|
|
1319
1319
|
else {
|
|
1320
|
-
var
|
|
1321
|
-
|
|
1320
|
+
var q = U.indexOf(A.location.key), ln = U.slice(0, q === -1 ? 0 : q + 1);
|
|
1321
|
+
ln.push(M.key), U = ln, v({ action: L, location: M });
|
|
1322
1322
|
}
|
|
1323
1323
|
else
|
|
1324
|
-
|
|
1324
|
+
nt(Q === void 0, "Browser history cannot push state in browsers that do not support HTML5 history"), window.location.href = G;
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1329
|
-
var
|
|
1330
|
-
b.confirmTransitionTo(
|
|
1331
|
-
if (
|
|
1332
|
-
var
|
|
1327
|
+
}, S = function(m, O) {
|
|
1328
|
+
nt(!((typeof m == "undefined" ? "undefined" : On(m)) === "object" && m.state !== void 0 && O !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1329
|
+
var L = "REPLACE", M = vt(m, O, p(), A.location);
|
|
1330
|
+
b.confirmTransitionTo(M, L, c, function(K) {
|
|
1331
|
+
if (K) {
|
|
1332
|
+
var G = x(M), it = M.key, Q = M.state;
|
|
1333
1333
|
if (r)
|
|
1334
|
-
if (e.replaceState({ key:
|
|
1335
|
-
window.location.replace(
|
|
1334
|
+
if (e.replaceState({ key: it, state: Q }, null, G), o)
|
|
1335
|
+
window.location.replace(G);
|
|
1336
1336
|
else {
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1337
|
+
var q = U.indexOf(A.location.key);
|
|
1338
|
+
q !== -1 && (U[q] = M.key), v({ action: L, location: M });
|
|
1339
1339
|
}
|
|
1340
1340
|
else
|
|
1341
|
-
|
|
1341
|
+
nt(Q === void 0, "Browser history cannot replace state in browsers that do not support HTML5 history"), window.location.replace(G);
|
|
1342
1342
|
}
|
|
1343
1343
|
});
|
|
1344
1344
|
}, D = function(m) {
|
|
1345
1345
|
e.go(m);
|
|
1346
|
-
},
|
|
1346
|
+
}, z = function() {
|
|
1347
1347
|
return D(-1);
|
|
1348
|
-
},
|
|
1348
|
+
}, V = function() {
|
|
1349
1349
|
return D(1);
|
|
1350
|
-
},
|
|
1351
|
-
|
|
1350
|
+
}, T = 0, f = function(m) {
|
|
1351
|
+
T += m, T === 1 ? (wn(window, En, g), s && wn(window, xn, E)) : T === 0 && ($n(window, En, g), s && $n(window, xn, E));
|
|
1352
1352
|
}, w = !1, y = function() {
|
|
1353
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1,
|
|
1353
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, O = b.setPrompt(m);
|
|
1354
1354
|
return w || (f(1), w = !0), function() {
|
|
1355
|
-
return w && (w = !1, f(-1)),
|
|
1355
|
+
return w && (w = !1, f(-1)), O();
|
|
1356
1356
|
};
|
|
1357
1357
|
}, $ = function(m) {
|
|
1358
|
-
var
|
|
1358
|
+
var O = b.appendListener(m);
|
|
1359
1359
|
return f(1), function() {
|
|
1360
|
-
f(-1),
|
|
1360
|
+
f(-1), O();
|
|
1361
1361
|
};
|
|
1362
|
-
},
|
|
1362
|
+
}, A = {
|
|
1363
1363
|
length: e.length,
|
|
1364
1364
|
action: "POP",
|
|
1365
1365
|
location: k,
|
|
1366
|
-
createHref:
|
|
1366
|
+
createHref: x,
|
|
1367
1367
|
push: N,
|
|
1368
|
-
replace:
|
|
1368
|
+
replace: S,
|
|
1369
1369
|
go: D,
|
|
1370
|
-
goBack:
|
|
1371
|
-
goForward:
|
|
1370
|
+
goBack: z,
|
|
1371
|
+
goForward: V,
|
|
1372
1372
|
block: y,
|
|
1373
1373
|
listen: $
|
|
1374
1374
|
};
|
|
1375
|
-
return
|
|
1376
|
-
},
|
|
1375
|
+
return A;
|
|
1376
|
+
}, An = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
1377
1377
|
return typeof n;
|
|
1378
1378
|
} : function(n) {
|
|
1379
1379
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
1380
|
-
},
|
|
1380
|
+
}, Ks = Object.assign || function(n) {
|
|
1381
1381
|
for (var t = 1; t < arguments.length; t++) {
|
|
1382
1382
|
var e = arguments[t];
|
|
1383
1383
|
for (var r in e)
|
|
1384
1384
|
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
1385
1385
|
}
|
|
1386
1386
|
return n;
|
|
1387
|
-
},
|
|
1387
|
+
}, Pn = function(t, e, r) {
|
|
1388
1388
|
return Math.min(Math.max(t, e), r);
|
|
1389
|
-
},
|
|
1390
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? ["/"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h =
|
|
1391
|
-
|
|
1389
|
+
}, Gs = function() {
|
|
1390
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.getUserConfirmation, r = t.initialEntries, s = r === void 0 ? ["/"] : r, i = t.initialIndex, o = i === void 0 ? 0 : i, a = t.keyLength, c = a === void 0 ? 6 : a, h = pr(), l = function(S) {
|
|
1391
|
+
Ks(x, S), x.length = x.entries.length, h.notifyListeners(x.location, x.action);
|
|
1392
1392
|
}, u = function() {
|
|
1393
1393
|
return Math.random().toString(36).substr(2, c);
|
|
1394
|
-
}, d =
|
|
1395
|
-
return typeof N == "string" ?
|
|
1396
|
-
}), b =
|
|
1397
|
-
|
|
1398
|
-
var
|
|
1399
|
-
h.confirmTransitionTo(
|
|
1400
|
-
if (
|
|
1401
|
-
var f =
|
|
1402
|
-
y.length > w ? y.splice(w, y.length - w,
|
|
1403
|
-
action:
|
|
1404
|
-
location:
|
|
1394
|
+
}, d = Pn(o, 0, s.length - 1), p = s.map(function(N) {
|
|
1395
|
+
return typeof N == "string" ? vt(N, void 0, u()) : vt(N, void 0, N.key || u());
|
|
1396
|
+
}), b = dr, v = function(S, D) {
|
|
1397
|
+
nt(!((typeof S == "undefined" ? "undefined" : An(S)) === "object" && S.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1398
|
+
var z = "PUSH", V = vt(S, D, u(), x.location);
|
|
1399
|
+
h.confirmTransitionTo(V, z, e, function(T) {
|
|
1400
|
+
if (T) {
|
|
1401
|
+
var f = x.index, w = f + 1, y = x.entries.slice(0);
|
|
1402
|
+
y.length > w ? y.splice(w, y.length - w, V) : y.push(V), l({
|
|
1403
|
+
action: z,
|
|
1404
|
+
location: V,
|
|
1405
1405
|
index: w,
|
|
1406
1406
|
entries: y
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
1409
|
});
|
|
1410
|
-
}, g = function(
|
|
1411
|
-
|
|
1412
|
-
var
|
|
1413
|
-
h.confirmTransitionTo(
|
|
1414
|
-
|
|
1410
|
+
}, g = function(S, D) {
|
|
1411
|
+
nt(!((typeof S == "undefined" ? "undefined" : An(S)) === "object" && S.state !== void 0 && D !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");
|
|
1412
|
+
var z = "REPLACE", V = vt(S, D, u(), x.location);
|
|
1413
|
+
h.confirmTransitionTo(V, z, e, function(T) {
|
|
1414
|
+
T && (x.entries[x.index] = V, l({ action: z, location: V }));
|
|
1415
1415
|
});
|
|
1416
|
-
},
|
|
1417
|
-
var D =
|
|
1418
|
-
h.confirmTransitionTo(
|
|
1419
|
-
|
|
1420
|
-
action:
|
|
1421
|
-
location:
|
|
1416
|
+
}, E = function(S) {
|
|
1417
|
+
var D = Pn(x.index + S, 0, x.entries.length - 1), z = "POP", V = x.entries[D];
|
|
1418
|
+
h.confirmTransitionTo(V, z, e, function(T) {
|
|
1419
|
+
T ? l({
|
|
1420
|
+
action: z,
|
|
1421
|
+
location: V,
|
|
1422
1422
|
index: D
|
|
1423
1423
|
}) : l();
|
|
1424
1424
|
});
|
|
1425
|
-
},
|
|
1426
|
-
return
|
|
1427
|
-
},
|
|
1428
|
-
return
|
|
1429
|
-
}, H = function(
|
|
1430
|
-
var D =
|
|
1431
|
-
return D >= 0 && D <
|
|
1425
|
+
}, R = function() {
|
|
1426
|
+
return E(-1);
|
|
1427
|
+
}, F = function() {
|
|
1428
|
+
return E(1);
|
|
1429
|
+
}, H = function(S) {
|
|
1430
|
+
var D = x.index + S;
|
|
1431
|
+
return D >= 0 && D < x.entries.length;
|
|
1432
1432
|
}, k = function() {
|
|
1433
|
-
var
|
|
1434
|
-
return h.setPrompt(
|
|
1435
|
-
}, U = function(
|
|
1436
|
-
return h.appendListener(
|
|
1437
|
-
},
|
|
1433
|
+
var S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1434
|
+
return h.setPrompt(S);
|
|
1435
|
+
}, U = function(S) {
|
|
1436
|
+
return h.appendListener(S);
|
|
1437
|
+
}, x = {
|
|
1438
1438
|
length: p.length,
|
|
1439
1439
|
action: "POP",
|
|
1440
1440
|
location: p[d],
|
|
@@ -1443,22 +1443,22 @@ var Ms = function(t) {
|
|
|
1443
1443
|
createHref: b,
|
|
1444
1444
|
push: v,
|
|
1445
1445
|
replace: g,
|
|
1446
|
-
go:
|
|
1447
|
-
goBack:
|
|
1448
|
-
goForward:
|
|
1446
|
+
go: E,
|
|
1447
|
+
goBack: R,
|
|
1448
|
+
goForward: F,
|
|
1449
1449
|
canGo: H,
|
|
1450
1450
|
block: k,
|
|
1451
1451
|
listen: U
|
|
1452
1452
|
};
|
|
1453
|
-
return
|
|
1454
|
-
},
|
|
1453
|
+
return x;
|
|
1454
|
+
}, Ys = Object.defineProperty, Cn = Object.getOwnPropertySymbols, Zs = Object.prototype.hasOwnProperty, Qs = Object.prototype.propertyIsEnumerable, Sn = (n, t, e) => t in n ? Ys(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, xt = (n, t) => {
|
|
1455
1455
|
for (var e in t || (t = {}))
|
|
1456
|
-
|
|
1457
|
-
if (
|
|
1458
|
-
for (var e of
|
|
1459
|
-
|
|
1456
|
+
Zs.call(t, e) && Sn(n, e, t[e]);
|
|
1457
|
+
if (Cn)
|
|
1458
|
+
for (var e of Cn(t))
|
|
1459
|
+
Qs.call(t, e) && Sn(n, e, t[e]);
|
|
1460
1460
|
return n;
|
|
1461
|
-
},
|
|
1461
|
+
}, Zt = (n, t, e) => new Promise((r, s) => {
|
|
1462
1462
|
var i = (c) => {
|
|
1463
1463
|
try {
|
|
1464
1464
|
a(e.next(c));
|
|
@@ -1473,13 +1473,13 @@ var Ms = function(t) {
|
|
|
1473
1473
|
}
|
|
1474
1474
|
}, a = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(i, o);
|
|
1475
1475
|
a((e = e.apply(n, t)).next());
|
|
1476
|
-
}),
|
|
1477
|
-
const
|
|
1476
|
+
}), P = /* @__PURE__ */ ((n) => (n.Cookie = "cookie", n.Local = "local", n.Session = "session", n))(P || {}), Lt = /* @__PURE__ */ ((n) => (n.Tenant = "tenant", n.Implementation = "implementation", n.Widget = "widget", n))(Lt || {}), C = /* @__PURE__ */ ((n) => (n.Necessary = "necessary", n.Functional = "functional", n.Analytical = "analytical", n.Marketing = "marketing", n))(C || {});
|
|
1477
|
+
const rt = (n, t, e, r = {}) => kn(n, e).then((s) => (process.env.NODE_ENV !== "production" && s && I.warn(
|
|
1478
1478
|
`createStorageWriter: Attempted to create storage writer using unallowed category.
|
|
1479
1479
|
Key: ${t}
|
|
1480
1480
|
Category: ${JSON.stringify(e)}
|
|
1481
1481
|
Options: ${JSON.stringify(r)}`
|
|
1482
|
-
), (i) => (
|
|
1482
|
+
), (i) => (sn(n), kn(n, e).then((o) => {
|
|
1483
1483
|
if (o) {
|
|
1484
1484
|
process.env.NODE_ENV !== "production" && I.warn(
|
|
1485
1485
|
`storageWriter: Attempted to write to storage using unallowed category.
|
|
@@ -1491,104 +1491,104 @@ const et = (n, t, e, r = {}) => xn(n, e).then((s) => (process.env.NODE_ENV !== "
|
|
|
1491
1491
|
return;
|
|
1492
1492
|
}
|
|
1493
1493
|
const {
|
|
1494
|
-
scope: a =
|
|
1495
|
-
medium: c =
|
|
1494
|
+
scope: a = Lt.Widget,
|
|
1495
|
+
medium: c = P.Session,
|
|
1496
1496
|
duration: h
|
|
1497
|
-
} = r, l =
|
|
1498
|
-
return l[a][t] =
|
|
1499
|
-
})))),
|
|
1497
|
+
} = r, l = ti();
|
|
1498
|
+
return l[a][t] = rn(i, e, h), c === P.Cookie ? si(n, l) : oi(n, c, l);
|
|
1499
|
+
})))), Z = (n, t, e = P.Session) => (sn(n), typeof t == "undefined" ? (process.env.NODE_ENV !== "production" && I.warn("readStorage: Undefined key passed when reading storage. ", t, e), Promise.resolve(void 0)) : e === P.Cookie ? ri(n).then((r) => de(r, t)) : ii(n, e).then((r) => de(r, t))), Ct = (n) => !!Object.entries(n).filter(([t, e]) => typeof e != "undefined").length, ke = (n) => Object.entries(n).filter(([t, e]) => typeof e != "undefined").forEach(([t, { value: e }]) => {
|
|
1500
1500
|
typeof e == "undefined" && delete n[t];
|
|
1501
|
-
}),
|
|
1501
|
+
}), gr = (n, t) => {
|
|
1502
1502
|
const e = {
|
|
1503
|
-
tenant:
|
|
1504
|
-
implementation:
|
|
1505
|
-
widget:
|
|
1503
|
+
tenant: xt(xt({}, n.tenant), t.tenant),
|
|
1504
|
+
implementation: xt(xt({}, n.implementation), t.implementation),
|
|
1505
|
+
widget: xt(xt({}, n.widget), t.widget)
|
|
1506
1506
|
};
|
|
1507
|
-
return
|
|
1508
|
-
},
|
|
1507
|
+
return ke(e.tenant), ke(e.implementation), ke(e.widget), e;
|
|
1508
|
+
}, Xs = (n) => Object.entries(n).reduce((t, e) => {
|
|
1509
1509
|
const [r, s] = e;
|
|
1510
1510
|
return Object.entries(s).forEach((i) => {
|
|
1511
1511
|
const [o, { expiration: a }] = i;
|
|
1512
1512
|
a && t.push(a);
|
|
1513
1513
|
}), t;
|
|
1514
|
-
}, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() ||
|
|
1514
|
+
}, []).slice().sort((t, e) => new Date(e).valueOf() - new Date(t).valueOf()).shift() || Ee(), Oe = (n) => {
|
|
1515
1515
|
const {
|
|
1516
1516
|
name: t,
|
|
1517
1517
|
implementation: { name: e, tenant: r }
|
|
1518
1518
|
} = n.get("$widget");
|
|
1519
1519
|
return [
|
|
1520
1520
|
`humany_${r}`,
|
|
1521
|
-
`humany_${
|
|
1522
|
-
`humany_${
|
|
1521
|
+
`humany_${mn(r + e)}`,
|
|
1522
|
+
`humany_${mn(r + e + t)}`
|
|
1523
1523
|
];
|
|
1524
|
-
},
|
|
1524
|
+
}, Ne = (n) => {
|
|
1525
1525
|
const t = new RegExp(`(?:^|;)\\s?${n}=(.*?)(?:;|$)`, "i"), e = document.cookie.match(t);
|
|
1526
1526
|
return e && e[1] && JSON.parse(e[1]) || void 0;
|
|
1527
|
-
},
|
|
1527
|
+
}, Le = (n, t, e) => {
|
|
1528
1528
|
const r = `${n}=${JSON.stringify(t).trim()}`, s = `expires=${new Date(e).toUTCString()}`, i = "path=/", o = "SameSite=None;Secure";
|
|
1529
1529
|
return document.cookie = `${r}; ${s}; ${i}; ${o}`;
|
|
1530
|
-
},
|
|
1531
|
-
const [t, e, r] =
|
|
1530
|
+
}, nn = (n) => {
|
|
1531
|
+
const [t, e, r] = Oe(n), s = Ne(t) || {}, i = Ne(e) || {}, o = Ne(r) || {};
|
|
1532
1532
|
return {
|
|
1533
1533
|
tenant: s,
|
|
1534
1534
|
implementation: i,
|
|
1535
1535
|
widget: o
|
|
1536
1536
|
};
|
|
1537
|
-
},
|
|
1538
|
-
const e =
|
|
1539
|
-
|
|
1537
|
+
}, fr = (n, t) => {
|
|
1538
|
+
const e = nn(n), r = gr(e, t), [s, i, o] = Oe(n), { tenant: a, implementation: c, widget: h } = r, l = Xs(t), u = Ee({ days: -1 });
|
|
1539
|
+
Le(s, a, Ct(a) ? l : u), Le(
|
|
1540
1540
|
i,
|
|
1541
1541
|
c,
|
|
1542
|
-
|
|
1543
|
-
),
|
|
1544
|
-
},
|
|
1545
|
-
const [e, r, s] =
|
|
1542
|
+
Ct(c) ? l : u
|
|
1543
|
+
), Le(o, h, Ct(h) ? l : u);
|
|
1544
|
+
}, ue = (n, t) => {
|
|
1545
|
+
const [e, r, s] = Oe(n), i = t.getItem(e) || "{}", o = t.getItem(r) || "{}", a = t.getItem(s) || "{}";
|
|
1546
1546
|
return {
|
|
1547
1547
|
tenant: JSON.parse(i),
|
|
1548
1548
|
implementation: JSON.parse(o),
|
|
1549
1549
|
widget: JSON.parse(a)
|
|
1550
1550
|
};
|
|
1551
|
-
},
|
|
1552
|
-
const r =
|
|
1553
|
-
|
|
1554
|
-
},
|
|
1551
|
+
}, Ke = (n, t, e) => {
|
|
1552
|
+
const r = ue(n, t), s = gr(r, e), [i, o, a] = Oe(n), { tenant: c, implementation: h, widget: l } = s;
|
|
1553
|
+
Ct(c) ? t.setItem(i, JSON.stringify(c)) : t.removeItem(i), Ct(h) ? t.setItem(o, JSON.stringify(h)) : t.removeItem(o), Ct(l) ? t.setItem(a, JSON.stringify(l)) : t.removeItem(a);
|
|
1554
|
+
}, ti = () => ({ tenant: {}, implementation: {}, widget: {} }), ei = (n) => n ? !!n && /* @__PURE__ */ new Date() > new Date(n) : !1, de = (n, t) => {
|
|
1555
1555
|
const e = n.widget[t] || n.implementation[t] || n.tenant[t];
|
|
1556
1556
|
return e == null ? void 0 : e.value;
|
|
1557
|
-
},
|
|
1557
|
+
}, rn = (n, t, e) => e ? {
|
|
1558
1558
|
value: n,
|
|
1559
1559
|
category: t,
|
|
1560
|
-
expiration: typeof e == "object" ?
|
|
1560
|
+
expiration: typeof e == "object" ? Ee(e) : e
|
|
1561
1561
|
} : {
|
|
1562
1562
|
value: n,
|
|
1563
1563
|
category: t
|
|
1564
|
-
},
|
|
1565
|
-
const e =
|
|
1564
|
+
}, re = (n, t) => {
|
|
1565
|
+
const e = as(n);
|
|
1566
1566
|
return Object.entries(e).forEach(([r, s]) => {
|
|
1567
1567
|
Object.entries(s).forEach(([i, o]) => {
|
|
1568
1568
|
const { expiration: a, category: c } = o;
|
|
1569
|
-
(
|
|
1569
|
+
(ei(a) || ni(t, c)) && (s[i] = rn(void 0, c, a));
|
|
1570
1570
|
});
|
|
1571
1571
|
}), e;
|
|
1572
|
-
},
|
|
1573
|
-
(e = [
|
|
1574
|
-
),
|
|
1575
|
-
const t =
|
|
1572
|
+
}, kn = (n, t) => Z(n, "storagePolicy", P.Cookie).then(
|
|
1573
|
+
(e = [C.Necessary]) => !!t && e.indexOf(t) === -1
|
|
1574
|
+
), ni = (n = [C.Necessary], t) => !!t && n.indexOf(t) === -1, sn = (n) => {
|
|
1575
|
+
const t = nn(n), e = ue(n, window.localStorage), r = ue(n, sessionStorage), s = de(t, "storagePolicy"), [i, o, a] = [
|
|
1576
1576
|
t,
|
|
1577
1577
|
e,
|
|
1578
1578
|
r
|
|
1579
|
-
].map((c) =>
|
|
1580
|
-
|
|
1581
|
-
},
|
|
1579
|
+
].map((c) => re(c, s));
|
|
1580
|
+
fr(n, i), Ke(n, window.localStorage, o), Ke(n, window.sessionStorage, a);
|
|
1581
|
+
}, Ee = (n = { days: 30 }) => {
|
|
1582
1582
|
const { days: t = 0, hours: e = 0, minutes: r = 0, seconds: s = 0 } = n, i = /* @__PURE__ */ new Date();
|
|
1583
1583
|
return i.setTime(i.getTime() + e * 60 * 60 * 1e3), i.setTime(i.getTime() + t * 24 * 60 * 60 * 1e3), i.setTime(i.getTime() + r * 60 * 1e3), i.setTime(i.getTime() + s * 1e3), i.toISOString();
|
|
1584
|
-
},
|
|
1585
|
-
const e = t ===
|
|
1586
|
-
return
|
|
1587
|
-
},
|
|
1588
|
-
const r = t ===
|
|
1589
|
-
return
|
|
1584
|
+
}, ri = (n) => X(document)(() => nn(n)), si = (n, t) => X(document)(() => fr(n, t)), ii = (n, t) => {
|
|
1585
|
+
const e = t === P.Local ? window.localStorage : window.sessionStorage;
|
|
1586
|
+
return X(e)(() => ue(n, e));
|
|
1587
|
+
}, oi = (n, t, e) => {
|
|
1588
|
+
const r = t === P.Local ? window.localStorage : window.sessionStorage;
|
|
1589
|
+
return X(r)(() => Ke(n, r, e));
|
|
1590
1590
|
};
|
|
1591
|
-
let
|
|
1591
|
+
let se = class {
|
|
1592
1592
|
constructor() {
|
|
1593
1593
|
this.memory = {
|
|
1594
1594
|
tenant: {},
|
|
@@ -1597,13 +1597,13 @@ let Xt = class {
|
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
1599
|
setItem(t, e) {
|
|
1600
|
-
return
|
|
1601
|
-
return
|
|
1602
|
-
const o =
|
|
1603
|
-
o[a][r] =
|
|
1600
|
+
return Zt(this, arguments, function* (r, s, i = {}) {
|
|
1601
|
+
return X(this)(() => {
|
|
1602
|
+
const o = re(this.memory, [C.Necessary]), { scope: a = Lt.Tenant, expiration: c } = i;
|
|
1603
|
+
o[a][r] = rn(
|
|
1604
1604
|
s,
|
|
1605
|
-
|
|
1606
|
-
(c == null ? void 0 : c.toISOString()) ||
|
|
1605
|
+
C.Necessary,
|
|
1606
|
+
(c == null ? void 0 : c.toISOString()) || Ee()
|
|
1607
1607
|
), this.memory = o, process.env.NODE_ENV !== "production" && I.warn(
|
|
1608
1608
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.
|
|
1609
1609
|
Key: ${r}
|
|
@@ -1615,23 +1615,23 @@ let Xt = class {
|
|
|
1615
1615
|
});
|
|
1616
1616
|
}
|
|
1617
1617
|
getItem(t) {
|
|
1618
|
-
return
|
|
1619
|
-
return
|
|
1620
|
-
const e =
|
|
1618
|
+
return Zt(this, null, function* () {
|
|
1619
|
+
return X(this)(() => {
|
|
1620
|
+
const e = re(this.memory, [C.Necessary]);
|
|
1621
1621
|
process.env.NODE_ENV !== "production" && I.warn(
|
|
1622
1622
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.
|
|
1623
1623
|
Key: ${t}
|
|
1624
1624
|
Memory: ${JSON.stringify(e)}`
|
|
1625
1625
|
);
|
|
1626
|
-
const r =
|
|
1626
|
+
const r = de(e, t);
|
|
1627
1627
|
return this.memory = e, r;
|
|
1628
1628
|
});
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
1631
1631
|
removeItem(t) {
|
|
1632
|
-
return
|
|
1633
|
-
return
|
|
1634
|
-
const e =
|
|
1632
|
+
return Zt(this, null, function* () {
|
|
1633
|
+
return X(this)(() => {
|
|
1634
|
+
const e = re(this.memory, [C.Necessary]);
|
|
1635
1635
|
delete e.tenant[t], delete e.implementation[t], delete e.widget[t], this.memory = e, process.env.NODE_ENV !== "production" && I.warn(
|
|
1636
1636
|
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.
|
|
1637
1637
|
Key: ${t}
|
|
@@ -1641,16 +1641,16 @@ let Xt = class {
|
|
|
1641
1641
|
});
|
|
1642
1642
|
}
|
|
1643
1643
|
clear() {
|
|
1644
|
-
return
|
|
1644
|
+
return Zt(this, null, function* () {
|
|
1645
1645
|
return Promise.resolve();
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
|
-
},
|
|
1648
|
+
}, ai = class {
|
|
1649
1649
|
constructor() {
|
|
1650
|
-
this.cookies = new
|
|
1650
|
+
this.cookies = new se(), this.session = new se(), this.local = new se();
|
|
1651
1651
|
}
|
|
1652
1652
|
};
|
|
1653
|
-
const
|
|
1653
|
+
const Me = (n, t, e, ...r) => {
|
|
1654
1654
|
const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
|
|
1655
1655
|
switch (t) {
|
|
1656
1656
|
case "info":
|
|
@@ -1663,16 +1663,16 @@ const Pe = (n, t, e, ...r) => {
|
|
|
1663
1663
|
console.error(s, ...r);
|
|
1664
1664
|
break;
|
|
1665
1665
|
}
|
|
1666
|
-
},
|
|
1666
|
+
}, ci = (n) => {
|
|
1667
1667
|
const t = n.container || n;
|
|
1668
1668
|
return {
|
|
1669
|
-
info: (e, ...r) =>
|
|
1670
|
-
warn: (e, ...r) =>
|
|
1671
|
-
error: (e, ...r) =>
|
|
1669
|
+
info: (e, ...r) => Me(t, "info", e, ...r),
|
|
1670
|
+
warn: (e, ...r) => Me(t, "warning", e, ...r),
|
|
1671
|
+
error: (e, ...r) => Me(t, "error", e, ...r)
|
|
1672
1672
|
};
|
|
1673
1673
|
};
|
|
1674
|
-
var
|
|
1675
|
-
const
|
|
1674
|
+
var pe = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(pe || {}), yt = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(yt || {});
|
|
1675
|
+
const hi = (n, t, e, r) => {
|
|
1676
1676
|
try {
|
|
1677
1677
|
const s = new t(e, r);
|
|
1678
1678
|
return {
|
|
@@ -1696,23 +1696,23 @@ const ii = (n, t, e, r) => {
|
|
|
1696
1696
|
throw s;
|
|
1697
1697
|
}
|
|
1698
1698
|
};
|
|
1699
|
-
function
|
|
1699
|
+
function Nn(n, t) {
|
|
1700
1700
|
return typeof n == "undefined" ? t : n;
|
|
1701
1701
|
}
|
|
1702
|
-
let
|
|
1702
|
+
let li = class {
|
|
1703
1703
|
constructor(t = {}) {
|
|
1704
1704
|
this.part = t;
|
|
1705
1705
|
}
|
|
1706
1706
|
createCommand(t, e, r) {
|
|
1707
1707
|
let s;
|
|
1708
1708
|
typeof e == "function" ? s = {
|
|
1709
|
-
scope:
|
|
1710
|
-
stage:
|
|
1709
|
+
scope: pe.Widget,
|
|
1710
|
+
stage: yt.Post,
|
|
1711
1711
|
defaultArgs: void 0,
|
|
1712
1712
|
handlerResolver: e
|
|
1713
1713
|
} : s = {
|
|
1714
|
-
scope:
|
|
1715
|
-
stage:
|
|
1714
|
+
scope: Nn(e.scope, pe.Widget),
|
|
1715
|
+
stage: Nn(e.stage, yt.Post),
|
|
1716
1716
|
defaultArgs: e.defaultArgs,
|
|
1717
1717
|
handlerResolver: r
|
|
1718
1718
|
};
|
|
@@ -1726,26 +1726,26 @@ let oi = class {
|
|
|
1726
1726
|
return this.part;
|
|
1727
1727
|
}
|
|
1728
1728
|
};
|
|
1729
|
-
const
|
|
1730
|
-
const t = new
|
|
1729
|
+
const mr = (n) => {
|
|
1730
|
+
const t = new li({});
|
|
1731
1731
|
return n(t), t.get();
|
|
1732
1732
|
};
|
|
1733
|
-
|
|
1733
|
+
mr((n) => {
|
|
1734
1734
|
n.createCommand(
|
|
1735
1735
|
"types.register",
|
|
1736
|
-
{ scope:
|
|
1736
|
+
{ scope: pe.Implementation, stage: yt.Pre },
|
|
1737
1737
|
(t) => (e, r) => {
|
|
1738
1738
|
t.container.get("$types")[e] = r;
|
|
1739
1739
|
}
|
|
1740
1740
|
).createCommand(
|
|
1741
1741
|
"type",
|
|
1742
|
-
{ stage:
|
|
1742
|
+
{ stage: yt.Pre },
|
|
1743
1743
|
(t) => (e) => {
|
|
1744
1744
|
t.container.register("$type", e);
|
|
1745
1745
|
}
|
|
1746
1746
|
).createCommand(
|
|
1747
1747
|
"settings",
|
|
1748
|
-
{ stage:
|
|
1748
|
+
{ stage: yt.Pre, defaultArgs: [null] },
|
|
1749
1749
|
(t) => (e) => {
|
|
1750
1750
|
t.events.dispatch(
|
|
1751
1751
|
"settings:change",
|
|
@@ -1755,7 +1755,7 @@ dr((n) => {
|
|
|
1755
1755
|
}
|
|
1756
1756
|
).createCommand(
|
|
1757
1757
|
"plugin",
|
|
1758
|
-
{ stage:
|
|
1758
|
+
{ stage: yt.Pre },
|
|
1759
1759
|
(t) => (e, r, s) => {
|
|
1760
1760
|
const { container: i } = t;
|
|
1761
1761
|
let o = null, a = e, c = r;
|
|
@@ -1768,7 +1768,7 @@ dr((n) => {
|
|
|
1768
1768
|
a
|
|
1769
1769
|
) : r;
|
|
1770
1770
|
try {
|
|
1771
|
-
const p =
|
|
1771
|
+
const p = hi(
|
|
1772
1772
|
o,
|
|
1773
1773
|
a,
|
|
1774
1774
|
i,
|
|
@@ -1776,7 +1776,7 @@ dr((n) => {
|
|
|
1776
1776
|
);
|
|
1777
1777
|
i.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
1778
1778
|
} catch (p) {
|
|
1779
|
-
|
|
1779
|
+
ci(t).warn("Error when initializing plugin", p);
|
|
1780
1780
|
}
|
|
1781
1781
|
};
|
|
1782
1782
|
t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
|
|
@@ -1809,7 +1809,7 @@ dr((n) => {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
);
|
|
1811
1811
|
});
|
|
1812
|
-
|
|
1812
|
+
mr((n) => {
|
|
1813
1813
|
n.createCommand("storage", (t) => (e = {}) => {
|
|
1814
1814
|
const { consent: r } = e;
|
|
1815
1815
|
if (typeof r != "undefined") {
|
|
@@ -1830,56 +1830,56 @@ dr((n) => {
|
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
1832
1832
|
const s = [
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1833
|
+
C.Necessary,
|
|
1834
|
+
C.Functional,
|
|
1835
|
+
C.Analytical,
|
|
1836
|
+
C.Marketing
|
|
1837
1837
|
].filter((i, o, a) => typeof r == "number" ? r > o : typeof r == "string" ? a.indexOf(r) + 1 > o : Array.isArray(r) ? r.findIndex((c) => c === o + 1 || c === i) > -1 : !0);
|
|
1838
|
-
return s.indexOf(
|
|
1839
|
-
`storagePolicyConfigurationApi: passed consent does not include category: '${
|
|
1838
|
+
return s.indexOf(C.Necessary) === -1 && (process.env.NODE_ENV !== "production" && I.warn(
|
|
1839
|
+
`storagePolicyConfigurationApi: passed consent does not include category: '${C.Necessary}'. Consent has to atleast include the '${C.Necessary}' category.
|
|
1840
1840
|
Passed consent: ${JSON.stringify(r)}`
|
|
1841
|
-
), s.unshift(
|
|
1841
|
+
), s.unshift(C.Necessary)), rt(
|
|
1842
1842
|
t.container,
|
|
1843
1843
|
"storagePolicy",
|
|
1844
|
-
|
|
1844
|
+
C.Necessary,
|
|
1845
1845
|
{
|
|
1846
|
-
medium:
|
|
1847
|
-
scope:
|
|
1846
|
+
medium: P.Cookie,
|
|
1847
|
+
scope: Lt.Tenant,
|
|
1848
1848
|
duration: { days: 365 }
|
|
1849
1849
|
}
|
|
1850
1850
|
).then((i) => i(s)).then(() => {
|
|
1851
|
-
|
|
1851
|
+
sn(t.container), t.events.dispatch("storage:policy-changed", s);
|
|
1852
1852
|
});
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
});
|
|
1856
|
-
const
|
|
1856
|
+
const ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1857
1857
|
__proto__: null,
|
|
1858
|
-
StorageCategory:
|
|
1859
|
-
StorageMedium:
|
|
1860
|
-
StorageProvider:
|
|
1861
|
-
StorageScope:
|
|
1862
|
-
StorageService:
|
|
1863
|
-
createStorageWriter:
|
|
1864
|
-
readStorage:
|
|
1858
|
+
StorageCategory: C,
|
|
1859
|
+
StorageMedium: P,
|
|
1860
|
+
StorageProvider: ai,
|
|
1861
|
+
StorageScope: Lt,
|
|
1862
|
+
StorageService: se,
|
|
1863
|
+
createStorageWriter: rt,
|
|
1864
|
+
readStorage: Z
|
|
1865
1865
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1866
|
-
var
|
|
1866
|
+
var di = Object.defineProperty, pi = Object.defineProperties, gi = Object.getOwnPropertyDescriptors, ge = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, yr = Object.prototype.propertyIsEnumerable, Ln = (n, t, e) => t in n ? di(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, At = (n, t) => {
|
|
1867
1867
|
for (var e in t || (t = {}))
|
|
1868
|
-
|
|
1869
|
-
if (
|
|
1870
|
-
for (var e of
|
|
1871
|
-
|
|
1868
|
+
vr.call(t, e) && Ln(n, e, t[e]);
|
|
1869
|
+
if (ge)
|
|
1870
|
+
for (var e of ge(t))
|
|
1871
|
+
yr.call(t, e) && Ln(n, e, t[e]);
|
|
1872
1872
|
return n;
|
|
1873
|
-
},
|
|
1873
|
+
}, br = (n, t) => pi(n, gi(t)), fi = (n, t) => {
|
|
1874
1874
|
var e = {};
|
|
1875
1875
|
for (var r in n)
|
|
1876
|
-
|
|
1877
|
-
if (n != null &&
|
|
1878
|
-
for (var r of
|
|
1879
|
-
t.indexOf(r) < 0 &&
|
|
1876
|
+
vr.call(n, r) && t.indexOf(r) < 0 && (e[r] = n[r]);
|
|
1877
|
+
if (n != null && ge)
|
|
1878
|
+
for (var r of ge(n))
|
|
1879
|
+
t.indexOf(r) < 0 && yr.call(n, r) && (e[r] = n[r]);
|
|
1880
1880
|
return e;
|
|
1881
1881
|
};
|
|
1882
|
-
function
|
|
1882
|
+
function wr(n) {
|
|
1883
1883
|
if (n.__esModule)
|
|
1884
1884
|
return n;
|
|
1885
1885
|
var t = n.default;
|
|
@@ -1906,9 +1906,9 @@ function mr(n) {
|
|
|
1906
1906
|
});
|
|
1907
1907
|
}), e;
|
|
1908
1908
|
}
|
|
1909
|
-
var
|
|
1909
|
+
var $r = function() {
|
|
1910
1910
|
};
|
|
1911
|
-
process.env.NODE_ENV !== "production" && (
|
|
1911
|
+
process.env.NODE_ENV !== "production" && ($r = function(n, t, e) {
|
|
1912
1912
|
var r = arguments.length;
|
|
1913
1913
|
e = new Array(r > 2 ? r - 2 : 0);
|
|
1914
1914
|
for (var s = 2; s < r; s++)
|
|
@@ -1932,19 +1932,19 @@ process.env.NODE_ENV !== "production" && (vr = function(n, t, e) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
|
-
var
|
|
1936
|
-
function
|
|
1935
|
+
var mi = $r, vi = mi, Mn = yi(vi);
|
|
1936
|
+
function yi(n) {
|
|
1937
1937
|
return n && n.__esModule ? n : { default: n };
|
|
1938
1938
|
}
|
|
1939
|
-
var
|
|
1939
|
+
var bi = function() {
|
|
1940
1940
|
var n = null, t = function(o) {
|
|
1941
|
-
return (0,
|
|
1941
|
+
return (0, Mn.default)(n == null, "A history supports only one prompt at a time"), n = o, function() {
|
|
1942
1942
|
n === o && (n = null);
|
|
1943
1943
|
};
|
|
1944
1944
|
}, e = function(o, a, c, h) {
|
|
1945
1945
|
if (n != null) {
|
|
1946
1946
|
var l = typeof n == "function" ? n(o, a) : n;
|
|
1947
|
-
typeof l == "string" ? typeof c == "function" ? c(l, h) : ((0,
|
|
1947
|
+
typeof l == "string" ? typeof c == "function" ? c(l, h) : ((0, Mn.default)(!1, "A history needs a getUserConfirmation function in order to use a prompt message"), h(!0)) : h(l !== !1);
|
|
1948
1948
|
} else
|
|
1949
1949
|
h(!0);
|
|
1950
1950
|
}, r = [], s = function(o) {
|
|
@@ -1969,21 +1969,21 @@ var fi = function() {
|
|
|
1969
1969
|
appendListener: s,
|
|
1970
1970
|
notifyListeners: i
|
|
1971
1971
|
};
|
|
1972
|
-
},
|
|
1973
|
-
|
|
1972
|
+
}, Or = bi, Er;
|
|
1973
|
+
Er = function(n, t) {
|
|
1974
1974
|
return t(window.confirm(n));
|
|
1975
1975
|
};
|
|
1976
|
-
function
|
|
1976
|
+
function Qt(n) {
|
|
1977
1977
|
return n.charAt(0) === "/";
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function De(n, t) {
|
|
1980
1980
|
for (var e = t, r = e + 1, s = n.length; r < s; e += 1, r += 1)
|
|
1981
1981
|
n[e] = n[r];
|
|
1982
1982
|
n.pop();
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1985
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n &&
|
|
1986
|
-
if (n &&
|
|
1984
|
+
function wi(n) {
|
|
1985
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", e = n && n.split("/") || [], r = t && t.split("/") || [], s = n && Qt(n), i = t && Qt(t), o = s || i;
|
|
1986
|
+
if (n && Qt(n) ? r = e : e.length && (r.pop(), r = r.concat(e)), !r.length)
|
|
1987
1987
|
return "/";
|
|
1988
1988
|
var a = void 0;
|
|
1989
1989
|
if (r.length) {
|
|
@@ -1993,69 +1993,69 @@ function mi(n) {
|
|
|
1993
1993
|
a = !1;
|
|
1994
1994
|
for (var h = 0, l = r.length; l >= 0; l--) {
|
|
1995
1995
|
var u = r[l];
|
|
1996
|
-
u === "." ?
|
|
1996
|
+
u === "." ? De(r, l) : u === ".." ? (De(r, l), h++) : h && (De(r, l), h--);
|
|
1997
1997
|
}
|
|
1998
1998
|
if (!o)
|
|
1999
1999
|
for (; h--; h)
|
|
2000
2000
|
r.unshift("..");
|
|
2001
|
-
o && r[0] !== "" && (!r[0] || !
|
|
2001
|
+
o && r[0] !== "" && (!r[0] || !Qt(r[0])) && r.unshift("");
|
|
2002
2002
|
var d = r.join("/");
|
|
2003
2003
|
return a && d.substr(-1) !== "/" && (d += "/"), d;
|
|
2004
2004
|
}
|
|
2005
|
-
const
|
|
2005
|
+
const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2006
2006
|
__proto__: null,
|
|
2007
|
-
default:
|
|
2008
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2009
|
-
var
|
|
2007
|
+
default: wi
|
|
2008
|
+
}, Symbol.toStringTag, { value: "Module" })), Oi = /* @__PURE__ */ wr($i);
|
|
2009
|
+
var Dn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
2010
2010
|
return typeof n;
|
|
2011
2011
|
} : function(n) {
|
|
2012
2012
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
2013
2013
|
};
|
|
2014
|
-
function
|
|
2014
|
+
function ie(n, t) {
|
|
2015
2015
|
if (n === t)
|
|
2016
2016
|
return !0;
|
|
2017
2017
|
if (n == null || t == null)
|
|
2018
2018
|
return !1;
|
|
2019
2019
|
if (Array.isArray(n))
|
|
2020
2020
|
return Array.isArray(t) && n.length === t.length && n.every(function(c, h) {
|
|
2021
|
-
return
|
|
2021
|
+
return ie(c, t[h]);
|
|
2022
2022
|
});
|
|
2023
|
-
var e = typeof n == "undefined" ? "undefined" :
|
|
2023
|
+
var e = typeof n == "undefined" ? "undefined" : Dn(n), r = typeof t == "undefined" ? "undefined" : Dn(t);
|
|
2024
2024
|
if (e !== r)
|
|
2025
2025
|
return !1;
|
|
2026
2026
|
if (e === "object") {
|
|
2027
2027
|
var s = n.valueOf(), i = t.valueOf();
|
|
2028
2028
|
if (s !== n || i !== t)
|
|
2029
|
-
return
|
|
2029
|
+
return ie(s, i);
|
|
2030
2030
|
var o = Object.keys(n), a = Object.keys(t);
|
|
2031
2031
|
return o.length !== a.length ? !1 : o.every(function(c) {
|
|
2032
|
-
return
|
|
2032
|
+
return ie(n[c], t[c]);
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
2035
|
return !1;
|
|
2036
2036
|
}
|
|
2037
|
-
const
|
|
2037
|
+
const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2038
2038
|
__proto__: null,
|
|
2039
|
-
default:
|
|
2040
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2041
|
-
var
|
|
2042
|
-
|
|
2043
|
-
|
|
2039
|
+
default: ie
|
|
2040
|
+
}, Symbol.toStringTag, { value: "Module" })), xi = /* @__PURE__ */ wr(Ei);
|
|
2041
|
+
var st = {}, at, xr, Ge, Ut;
|
|
2042
|
+
st.__esModule = !0;
|
|
2043
|
+
Ut = st.addLeadingSlash = function(n) {
|
|
2044
2044
|
return n.charAt(0) === "/" ? n : "/" + n;
|
|
2045
2045
|
};
|
|
2046
|
-
|
|
2046
|
+
Ge = st.stripLeadingSlash = function(n) {
|
|
2047
2047
|
return n.charAt(0) === "/" ? n.substr(1) : n;
|
|
2048
2048
|
};
|
|
2049
|
-
var
|
|
2049
|
+
var _i = st.hasBasename = function(n, t) {
|
|
2050
2050
|
return new RegExp("^" + t + "(\\/|\\?|#|$)", "i").test(n);
|
|
2051
2051
|
};
|
|
2052
|
-
|
|
2053
|
-
return
|
|
2052
|
+
st.stripBasename = function(n, t) {
|
|
2053
|
+
return _i(n, t) ? n.substr(t.length) : n;
|
|
2054
2054
|
};
|
|
2055
|
-
|
|
2055
|
+
xr = st.stripTrailingSlash = function(n) {
|
|
2056
2056
|
return n.charAt(n.length - 1) === "/" ? n.slice(0, -1) : n;
|
|
2057
2057
|
};
|
|
2058
|
-
|
|
2058
|
+
st.parsePath = function(n) {
|
|
2059
2059
|
var t = n || "/", e = "", r = "", s = t.indexOf("#");
|
|
2060
2060
|
s !== -1 && (r = t.substr(s), t = t.substr(0, s));
|
|
2061
2061
|
var i = t.indexOf("?");
|
|
@@ -2065,35 +2065,35 @@ nt.parsePath = function(n) {
|
|
|
2065
2065
|
hash: r === "#" ? "" : r
|
|
2066
2066
|
};
|
|
2067
2067
|
};
|
|
2068
|
-
|
|
2068
|
+
at = st.createPath = function(n) {
|
|
2069
2069
|
var t = n.pathname, e = n.search, r = n.hash, s = t || "/";
|
|
2070
2070
|
return e && e !== "?" && (s += e.charAt(0) === "?" ? e : "?" + e), r && r !== "#" && (s += r.charAt(0) === "#" ? r : "#" + r), s;
|
|
2071
2071
|
};
|
|
2072
|
-
var
|
|
2072
|
+
var xe, _r = xe = void 0, Ai = Object.assign || function(n) {
|
|
2073
2073
|
for (var t = 1; t < arguments.length; t++) {
|
|
2074
2074
|
var e = arguments[t];
|
|
2075
2075
|
for (var r in e)
|
|
2076
2076
|
Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]);
|
|
2077
2077
|
}
|
|
2078
2078
|
return n;
|
|
2079
|
-
},
|
|
2080
|
-
function
|
|
2079
|
+
}, Pi = Oi, Ci = Ar(Pi), Si = xi, ki = Ar(Si), Ni = st;
|
|
2080
|
+
function Ar(n) {
|
|
2081
2081
|
return n && n.__esModule ? n : { default: n };
|
|
2082
2082
|
}
|
|
2083
|
-
|
|
2083
|
+
xe = function(n, t, e, r) {
|
|
2084
2084
|
var s = void 0;
|
|
2085
|
-
typeof n == "string" ? (s = (0,
|
|
2085
|
+
typeof n == "string" ? (s = (0, Ni.parsePath)(n), s.state = t) : (s = Ai({}, n), s.pathname === void 0 && (s.pathname = ""), s.search ? s.search.charAt(0) !== "?" && (s.search = "?" + s.search) : s.search = "", s.hash ? s.hash.charAt(0) !== "#" && (s.hash = "#" + s.hash) : s.hash = "", t !== void 0 && s.state === void 0 && (s.state = t));
|
|
2086
2086
|
try {
|
|
2087
2087
|
s.pathname = decodeURI(s.pathname);
|
|
2088
2088
|
} catch (i) {
|
|
2089
2089
|
throw i instanceof URIError ? new URIError('Pathname "' + s.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.') : i;
|
|
2090
2090
|
}
|
|
2091
|
-
return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== "/" && (s.pathname = (0,
|
|
2091
|
+
return e && (s.key = e), r ? s.pathname ? s.pathname.charAt(0) !== "/" && (s.pathname = (0, Ci.default)(s.pathname, r.pathname)) : s.pathname = r.pathname : s.pathname || (s.pathname = "/"), s;
|
|
2092
2092
|
};
|
|
2093
|
-
|
|
2094
|
-
return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0,
|
|
2093
|
+
_r = function(n, t) {
|
|
2094
|
+
return n.pathname === t.pathname && n.search === t.search && n.hash === t.hash && n.key === t.key && (0, ki.default)(n.state, t.state);
|
|
2095
2095
|
};
|
|
2096
|
-
const
|
|
2096
|
+
const Pr = "/", Cr = "./", Li = new RegExp(
|
|
2097
2097
|
[
|
|
2098
2098
|
// Match escaped characters that would otherwise appear in future matches.
|
|
2099
2099
|
// This allows the user to escape special characters that won't transform.
|
|
@@ -2106,38 +2106,38 @@ const Or = "/", Ar = "./", Pi = new RegExp(
|
|
|
2106
2106
|
"(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"
|
|
2107
2107
|
].join("|"),
|
|
2108
2108
|
"g"
|
|
2109
|
-
),
|
|
2109
|
+
), Sr = (n, t) => {
|
|
2110
2110
|
const e = [];
|
|
2111
2111
|
let r = 0, s = 0, i = "";
|
|
2112
|
-
const o = t && t.delimiter ||
|
|
2112
|
+
const o = t && t.delimiter || Pr, a = t && t.delimiters || Cr;
|
|
2113
2113
|
let c = !1, h;
|
|
2114
|
-
for (; (h =
|
|
2114
|
+
for (; (h = Li.exec(n)) !== null; ) {
|
|
2115
2115
|
const l = h[0], u = h[1], d = h.index;
|
|
2116
2116
|
if (i += n.slice(s, d), s = d + l.length, u) {
|
|
2117
2117
|
i += u[1], c = !0;
|
|
2118
2118
|
continue;
|
|
2119
2119
|
}
|
|
2120
2120
|
let p = "";
|
|
2121
|
-
const b = n[s], v = h[2], g = h[3],
|
|
2121
|
+
const b = n[s], v = h[2], g = h[3], E = h[4], R = h[5];
|
|
2122
2122
|
if (!c && i.length) {
|
|
2123
2123
|
const N = i.length - 1;
|
|
2124
2124
|
a.indexOf(i[N]) > -1 && (p = i[N], i = i.slice(0, N));
|
|
2125
2125
|
}
|
|
2126
2126
|
i && (e.push(i), i = "", c = !1);
|
|
2127
|
-
const
|
|
2127
|
+
const F = p !== "" && b !== void 0 && b !== p, H = R === "+" || R === "*", k = R === "?" || R === "*", U = p || o, x = g || E;
|
|
2128
2128
|
e.push({
|
|
2129
2129
|
delimiter: U,
|
|
2130
2130
|
optional: k,
|
|
2131
2131
|
repeat: H,
|
|
2132
|
-
partial:
|
|
2132
|
+
partial: F,
|
|
2133
2133
|
name: v || r++,
|
|
2134
2134
|
// tslint:disable-line:no-increment-decrement
|
|
2135
2135
|
prefix: p,
|
|
2136
|
-
pattern:
|
|
2136
|
+
pattern: x ? ji(x) : "[^" + Tt(U) + "]+?"
|
|
2137
2137
|
});
|
|
2138
2138
|
}
|
|
2139
2139
|
return (i || s < n.length) && e.push(i + n.substr(s)), e;
|
|
2140
|
-
},
|
|
2140
|
+
}, Mi = (n, t) => Di(Sr(n, t)), Di = (n) => {
|
|
2141
2141
|
const t = new Array(n.length);
|
|
2142
2142
|
for (let e = 0; e < n.length; e++)
|
|
2143
2143
|
typeof n[e] == "object" && (t[e] = new RegExp("^(?:" + n[e].pattern + ")$"));
|
|
@@ -2189,7 +2189,7 @@ const Or = "/", Ar = "./", Pi = new RegExp(
|
|
|
2189
2189
|
}
|
|
2190
2190
|
return s;
|
|
2191
2191
|
};
|
|
2192
|
-
},
|
|
2192
|
+
}, Tt = (n) => n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"), ji = (n) => n.replace(/([=!:$/()])/g, "\\$1"), kr = (n) => n && n.sensitive ? "" : "i", Ri = (n, t) => {
|
|
2193
2193
|
if (!t)
|
|
2194
2194
|
return n;
|
|
2195
2195
|
const e = n.source.match(/\((?!\?)/g);
|
|
@@ -2205,56 +2205,56 @@ const Or = "/", Ar = "./", Pi = new RegExp(
|
|
|
2205
2205
|
pattern: ""
|
|
2206
2206
|
});
|
|
2207
2207
|
return n;
|
|
2208
|
-
},
|
|
2208
|
+
}, Ti = (n, t, e) => {
|
|
2209
2209
|
const r = [];
|
|
2210
2210
|
for (let s = 0; s < n.length; s++)
|
|
2211
|
-
r.push(
|
|
2212
|
-
return new RegExp("(?:" + r.join("|") + ")",
|
|
2213
|
-
},
|
|
2211
|
+
r.push(Nr(n[s], t, e).source);
|
|
2212
|
+
return new RegExp("(?:" + r.join("|") + ")", kr(e));
|
|
2213
|
+
}, Ii = (n, t, e) => Hi(Sr(n, e), t, e), Hi = (n, t, e) => {
|
|
2214
2214
|
e = e || {};
|
|
2215
|
-
const r = e.strict, s = e.end !== !1, i =
|
|
2215
|
+
const r = e.strict, s = e.end !== !1, i = Tt(e.delimiter || Pr), o = e.delimiters || Cr, a = [].concat(e.endsWith || []).map(Tt).concat("$").join("|");
|
|
2216
2216
|
let c = "", h = !1;
|
|
2217
2217
|
for (let l = 0; l < n.length; l++) {
|
|
2218
2218
|
const u = n[l];
|
|
2219
2219
|
if (typeof u == "string")
|
|
2220
|
-
c +=
|
|
2220
|
+
c += Tt(u), h = l === n.length - 1 && o.indexOf(u[u.length - 1]) > -1;
|
|
2221
2221
|
else {
|
|
2222
|
-
const d =
|
|
2222
|
+
const d = Tt(u.prefix), p = u.repeat ? "(?:" + u.pattern + ")(?:" + d + "(?:" + u.pattern + "))*" : u.pattern;
|
|
2223
2223
|
t && t.push(u), u.optional ? u.partial ? c += d + "(" + p + ")?" : c += "(?:" + d + "(" + p + "))?" : c += d + "(" + p + ")";
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
return s ? (r || (c += "(?:" + i + ")?"), c += a === "$" ? "$" : "(?=" + a + ")") : (r || (c += "(?:" + i + "(?=" + a + "))?"), h || (c += "(?=" + i + "|" + a + ")")), new RegExp("^" + c,
|
|
2227
|
-
},
|
|
2228
|
-
var
|
|
2229
|
-
const
|
|
2230
|
-
const e = [], r =
|
|
2226
|
+
return s ? (r || (c += "(?:" + i + ")?"), c += a === "$" ? "$" : "(?=" + a + ")") : (r || (c += "(?:" + i + "(?=" + a + "))?"), h || (c += "(?=" + i + "|" + a + ")")), new RegExp("^" + c, kr(e));
|
|
2227
|
+
}, Nr = (n, t, e) => n instanceof RegExp ? Ri(n, t || []) : Array.isArray(n) ? Ti(n, t, e) : Ii(n, t, e), fe = Nr;
|
|
2228
|
+
var Y = /* @__PURE__ */ ((n) => (n.scopedHash = "scopedHash", n.hash = "hash", n.browser = "browser", n.memory = "memory", n))(Y || {}), ft = /* @__PURE__ */ ((n) => (n.storage = "storage", n.path = "path", n.initialPath = "initial", n))(ft || {});
|
|
2229
|
+
const It = (n, t) => {
|
|
2230
|
+
const e = [], r = fe(t, e).exec(n);
|
|
2231
2231
|
if (!r)
|
|
2232
2232
|
return {};
|
|
2233
2233
|
const [s, ...i] = r;
|
|
2234
2234
|
return e.reduce((o, a, c) => (o[a.name] = i[c], o), {});
|
|
2235
|
-
},
|
|
2235
|
+
}, Ui = (n) => Object.keys(n).reduce((t, e) => {
|
|
2236
2236
|
const r = typeof n[e] == "string" ? n[e].replace("&", "%20") : n[e];
|
|
2237
2237
|
let s = `${e}=${r}`;
|
|
2238
2238
|
return t.length > 1 && (s = "&".concat(s)), t.concat(s);
|
|
2239
|
-
}, "?"),
|
|
2239
|
+
}, "?"), je = (n, t) => {
|
|
2240
2240
|
const e = t.find((r) => r.name === n);
|
|
2241
2241
|
if (!e) {
|
|
2242
2242
|
process.env.NODE_ENV !== "production" && I.warn(`Unable to find route with specified name: ${n}`);
|
|
2243
2243
|
return;
|
|
2244
2244
|
}
|
|
2245
2245
|
return e;
|
|
2246
|
-
},
|
|
2246
|
+
}, Lr = (n) => n.length ? n.slice(1).split("&").map((t) => t.split("=")).reduce((t, e) => {
|
|
2247
2247
|
const [r, s] = e.map(encodeURI).map(decodeURIComponent);
|
|
2248
|
-
return
|
|
2249
|
-
}, {}) : {},
|
|
2250
|
-
const e = t.map((r) =>
|
|
2248
|
+
return br(At({}, t), { [r]: decodeURIComponent(s).replace("%20", "&") });
|
|
2249
|
+
}, {}) : {}, Vi = (n, t) => {
|
|
2250
|
+
const e = t.map((r) => oe(n, r)).reduce(
|
|
2251
2251
|
(r, s) => {
|
|
2252
2252
|
if (s === null)
|
|
2253
2253
|
return r;
|
|
2254
2254
|
const i = s.split("?")[1];
|
|
2255
2255
|
let o = 0;
|
|
2256
2256
|
if (i) {
|
|
2257
|
-
const a =
|
|
2257
|
+
const a = Lr(`?${i}`);
|
|
2258
2258
|
o = Object.keys(a).length;
|
|
2259
2259
|
}
|
|
2260
2260
|
return !r.path || r.count && o < r.count ? {
|
|
@@ -2265,15 +2265,15 @@ const Lt = (n, t) => {
|
|
|
2265
2265
|
{ count: void 0, path: void 0 }
|
|
2266
2266
|
);
|
|
2267
2267
|
return e ? e.path : t[0];
|
|
2268
|
-
},
|
|
2269
|
-
const e =
|
|
2268
|
+
}, oe = (n, t) => {
|
|
2269
|
+
const e = $t(n);
|
|
2270
2270
|
if (Array.isArray(t)) {
|
|
2271
|
-
const c =
|
|
2271
|
+
const c = Vi(e, t);
|
|
2272
2272
|
if (!c)
|
|
2273
2273
|
throw new Error("Unable to match path.");
|
|
2274
2274
|
return c;
|
|
2275
2275
|
}
|
|
2276
|
-
const r =
|
|
2276
|
+
const r = Mi(t);
|
|
2277
2277
|
let s = t;
|
|
2278
2278
|
try {
|
|
2279
2279
|
s = r(e);
|
|
@@ -2281,28 +2281,28 @@ const Lt = (n, t) => {
|
|
|
2281
2281
|
return null;
|
|
2282
2282
|
}
|
|
2283
2283
|
const i = [];
|
|
2284
|
-
|
|
2284
|
+
fe(t, i);
|
|
2285
2285
|
const o = Object.keys(e).reduce((c, h) => (i.find((l) => l.name === h) || c.push(h), c), []), a = {};
|
|
2286
|
-
return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${
|
|
2287
|
-
},
|
|
2286
|
+
return o.forEach((c) => a[c] = e[c]), Object.keys(a).forEach((c) => a[c] === null && delete a[c]), Object.keys(a).length > 0 ? `${s}${Ui(a)}` : s;
|
|
2287
|
+
}, _t = (n, t) => {
|
|
2288
2288
|
let e = n;
|
|
2289
2289
|
return e.indexOf("?") > -1 && (e = e.substring(0, e.indexOf("?"))), e.indexOf(";") > -1 && (e = e.substring(0, e.indexOf(";"))), e === "" && (e = "/"), t.reduce((r, s) => {
|
|
2290
2290
|
if (Array.isArray(s.path))
|
|
2291
|
-
return s.path.reduce((o, a) =>
|
|
2291
|
+
return s.path.reduce((o, a) => fe(a, []).exec(e || "") && !o ? e : o, void 0) && !r ? s : r;
|
|
2292
2292
|
if (!s.path)
|
|
2293
2293
|
return r;
|
|
2294
2294
|
const i = [];
|
|
2295
|
-
return
|
|
2295
|
+
return fe(s.path, i).exec(e || "") && !r ? s : r;
|
|
2296
2296
|
}, void 0);
|
|
2297
|
-
},
|
|
2297
|
+
}, Bi = (n) => {
|
|
2298
2298
|
let t = n.get("historyTransitionManager");
|
|
2299
|
-
return t || (t =
|
|
2300
|
-
},
|
|
2299
|
+
return t || (t = Or(), n.parent && n.parent.register("historyTransitionManager", t)), t;
|
|
2300
|
+
}, Ht = (n, t = null) => n ? xe(t ? t(n) : n) : {
|
|
2301
2301
|
pathname: "",
|
|
2302
2302
|
search: "",
|
|
2303
2303
|
hash: ""
|
|
2304
|
-
},
|
|
2305
|
-
if (
|
|
2304
|
+
}, zi = (n, t) => {
|
|
2305
|
+
if ($t(n), $t(t), Object.keys(n).length !== Object.keys(t).length)
|
|
2306
2306
|
return !1;
|
|
2307
2307
|
if (Object.keys(n).length === 0 && Object.keys(t).length === 0)
|
|
2308
2308
|
return !0;
|
|
@@ -2310,44 +2310,44 @@ const Lt = (n, t) => {
|
|
|
2310
2310
|
return Object.keys(t).forEach((r) => {
|
|
2311
2311
|
t[r] !== n[r] && (e = !1);
|
|
2312
2312
|
}), e;
|
|
2313
|
-
},
|
|
2313
|
+
}, Wi = (n) => {
|
|
2314
2314
|
if (typeof n.mode == "string") {
|
|
2315
|
-
if (n.mode ===
|
|
2315
|
+
if (n.mode === Y.memory)
|
|
2316
2316
|
return !0;
|
|
2317
2317
|
} else if (n.mode[1]) {
|
|
2318
2318
|
const [t, { sticky: e }] = n.mode;
|
|
2319
|
-
if (t ===
|
|
2319
|
+
if (t === Y.memory)
|
|
2320
2320
|
return typeof e == "undefined" ? !0 : e;
|
|
2321
2321
|
}
|
|
2322
2322
|
return !1;
|
|
2323
|
-
},
|
|
2323
|
+
}, Re = (n) => {
|
|
2324
2324
|
const { views: t } = n.get("$settings"), e = Object.keys(t).reduce((r, s) => typeof t[s].path == "undefined" ? s : r, void 0);
|
|
2325
2325
|
return e ? {
|
|
2326
2326
|
name: e,
|
|
2327
2327
|
params: {}
|
|
2328
2328
|
} : null;
|
|
2329
|
-
},
|
|
2329
|
+
}, jn = "hashchange", Fi = {
|
|
2330
2330
|
hashbang: {
|
|
2331
|
-
encodePath: (n) => n.charAt(0) === "!" ? n : "!/" +
|
|
2331
|
+
encodePath: (n) => n.charAt(0) === "!" ? n : "!/" + Ge(n),
|
|
2332
2332
|
decodePath: (n) => n.charAt(0) === "!" ? n.substr(1) : n
|
|
2333
2333
|
},
|
|
2334
2334
|
noslash: {
|
|
2335
|
-
encodePath:
|
|
2336
|
-
decodePath:
|
|
2335
|
+
encodePath: Ge,
|
|
2336
|
+
decodePath: Ut
|
|
2337
2337
|
},
|
|
2338
2338
|
slash: {
|
|
2339
|
-
encodePath:
|
|
2340
|
-
decodePath:
|
|
2339
|
+
encodePath: Ut,
|
|
2340
|
+
decodePath: Ut
|
|
2341
2341
|
}
|
|
2342
|
-
},
|
|
2342
|
+
}, ct = () => {
|
|
2343
2343
|
const n = window.location.href, t = n.indexOf("#");
|
|
2344
2344
|
return t === -1 ? "" : n.substring(t + 1);
|
|
2345
|
-
},
|
|
2345
|
+
}, Rn = (n) => window.location.hash = n, Tn = (n) => {
|
|
2346
2346
|
const t = window.location.href.indexOf("#");
|
|
2347
2347
|
window.location.replace(
|
|
2348
2348
|
window.location.href.slice(0, t >= 0 ? t : 0) + "#" + n
|
|
2349
2349
|
);
|
|
2350
|
-
},
|
|
2350
|
+
}, ae = (n = "") => {
|
|
2351
2351
|
const t = n.replace(";", "?"), e = [
|
|
2352
2352
|
{ from: /\;+/gi, to: "&" },
|
|
2353
2353
|
{ from: /:+/gi, to: "=" }
|
|
@@ -2356,29 +2356,29 @@ const Lt = (n, t) => {
|
|
|
2356
2356
|
return e.forEach(({ to: s, from: i }) => {
|
|
2357
2357
|
r = r.replace(i, s);
|
|
2358
2358
|
}), r;
|
|
2359
|
-
},
|
|
2360
|
-
const t = window.history, { getUserConfirmation: e =
|
|
2361
|
-
const f =
|
|
2362
|
-
return
|
|
2363
|
-
}, a = n.transitionManager ||
|
|
2364
|
-
Object.assign(
|
|
2359
|
+
}, qi = (n = {}) => {
|
|
2360
|
+
const t = window.history, { getUserConfirmation: e = Er, hashType: r = "slash" } = n, s = n.basename ? xr(Ut(n.basename)) : "", { encodePath: i } = Fi[r], o = () => {
|
|
2361
|
+
const f = ct(), w = l(f);
|
|
2362
|
+
return Ht(w, ae);
|
|
2363
|
+
}, a = n.transitionManager || Or(), c = (f) => {
|
|
2364
|
+
Object.assign(T, f), T.length = t.length, a.notifyListeners(T.location, T.action, n.widgetName);
|
|
2365
2365
|
};
|
|
2366
2366
|
let h = !1;
|
|
2367
2367
|
const l = (f) => {
|
|
2368
2368
|
const w = ($) => {
|
|
2369
|
-
function _
|
|
2370
|
-
const
|
|
2371
|
-
let
|
|
2372
|
-
for (;
|
|
2373
|
-
|
|
2374
|
-
return
|
|
2369
|
+
function A(_, m) {
|
|
2370
|
+
const O = {};
|
|
2371
|
+
let L;
|
|
2372
|
+
for (; L = m.exec(_); )
|
|
2373
|
+
O[L[1]] = L[2];
|
|
2374
|
+
return O;
|
|
2375
2375
|
}
|
|
2376
|
-
return
|
|
2376
|
+
return A($, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
|
|
2377
2377
|
}, y = "humany-" + n.widgetName;
|
|
2378
2378
|
return w(f)[y];
|
|
2379
2379
|
}, u = () => {
|
|
2380
|
-
const f = o(), w =
|
|
2381
|
-
!h &&
|
|
2380
|
+
const f = o(), w = T.location;
|
|
2381
|
+
!h && _r(w, f) || d(f);
|
|
2382
2382
|
}, d = (f) => {
|
|
2383
2383
|
if (h)
|
|
2384
2384
|
h = !1, c();
|
|
@@ -2394,19 +2394,19 @@ const Lt = (n, t) => {
|
|
|
2394
2394
|
);
|
|
2395
2395
|
}
|
|
2396
2396
|
}, p = (f) => {
|
|
2397
|
-
const w =
|
|
2398
|
-
let y = g.lastIndexOf(
|
|
2397
|
+
const w = T.location;
|
|
2398
|
+
let y = g.lastIndexOf(at(w));
|
|
2399
2399
|
y === -1 && (y = 0);
|
|
2400
|
-
let $ = g.lastIndexOf(
|
|
2400
|
+
let $ = g.lastIndexOf(at(f));
|
|
2401
2401
|
$ === -1 && ($ = 0);
|
|
2402
|
-
const
|
|
2403
|
-
|
|
2404
|
-
}, b =
|
|
2405
|
-
b !== v &&
|
|
2402
|
+
const A = y - $;
|
|
2403
|
+
A && (h = !0, x(A));
|
|
2404
|
+
}, b = ct(), v = i(b);
|
|
2405
|
+
b !== v && Tn(v);
|
|
2406
2406
|
let g = [];
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2409
|
-
const
|
|
2407
|
+
const E = o();
|
|
2408
|
+
E.pathname !== null && g.push(at(E));
|
|
2409
|
+
const R = (f = "") => {
|
|
2410
2410
|
const w = [
|
|
2411
2411
|
{ from: /\?+/gi, to: ";" },
|
|
2412
2412
|
{ from: /\&+/gi, to: ";" },
|
|
@@ -2414,87 +2414,87 @@ const Lt = (n, t) => {
|
|
|
2414
2414
|
{ from: /=+/gi, to: ":" }
|
|
2415
2415
|
];
|
|
2416
2416
|
let y = f;
|
|
2417
|
-
return w.forEach(({ to: $, from:
|
|
2418
|
-
y = y.replace(
|
|
2417
|
+
return w.forEach(({ to: $, from: A }) => {
|
|
2418
|
+
y = y.replace(A, $);
|
|
2419
2419
|
}), y;
|
|
2420
|
-
},
|
|
2421
|
-
let $ = "",
|
|
2422
|
-
return f.split("&").forEach((
|
|
2423
|
-
const m =
|
|
2424
|
-
if (
|
|
2425
|
-
if (
|
|
2420
|
+
}, F = (f, w, y) => {
|
|
2421
|
+
let $ = "", A = !1;
|
|
2422
|
+
return f.split("&").forEach((_) => {
|
|
2423
|
+
const m = _.split("="), O = m[0], L = m[1];
|
|
2424
|
+
if (O === w) {
|
|
2425
|
+
if (A = !0, y === null)
|
|
2426
2426
|
return;
|
|
2427
|
-
$.length > 0 && ($ += "&"), typeof y != "undefined" ? $ +=
|
|
2427
|
+
$.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += O + "=" + y : $ += O;
|
|
2428
2428
|
} else
|
|
2429
|
-
|
|
2430
|
-
}), !
|
|
2429
|
+
O && ($.length > 0 && ($ += "&"), $ += O + "=" + L);
|
|
2430
|
+
}), !A && y !== null && ($.length > 0 && ($ += "&"), typeof y != "undefined" ? $ += w + "=" + y : $ += w), $;
|
|
2431
2431
|
}, H = (f) => {
|
|
2432
|
-
const w = f.pathname, y =
|
|
2433
|
-
return `#${
|
|
2432
|
+
const w = f.pathname, y = R(f.search), $ = w + (y ? `;${y}` : ""), A = `humany-${n.widgetName}`, _ = ct();
|
|
2433
|
+
return `#${F(_, A, $).replace(";;", ";")}`;
|
|
2434
2434
|
}, k = (f, w) => {
|
|
2435
|
-
const y = "PUSH", $ =
|
|
2436
|
-
a.confirmTransitionTo($, y, e, (
|
|
2437
|
-
if (!
|
|
2435
|
+
const y = "PUSH", $ = Ht(f, ae), A = $.pathname, _ = R($.search), m = A + (_ ? `${_}` : ""), O = `humany-${n.widgetName}`, L = ct(), M = F(L, O, m);
|
|
2436
|
+
a.confirmTransitionTo($, y, e, (K) => {
|
|
2437
|
+
if (!K)
|
|
2438
2438
|
return;
|
|
2439
|
-
const
|
|
2440
|
-
if (
|
|
2441
|
-
|
|
2442
|
-
const
|
|
2443
|
-
|
|
2439
|
+
const G = at($), it = i(M);
|
|
2440
|
+
if (ct() !== it) {
|
|
2441
|
+
Rn(it);
|
|
2442
|
+
const Q = g.lastIndexOf(at(T.location)), q = g.slice(0, Q === -1 ? 0 : Q + 1);
|
|
2443
|
+
q.push(G), g = q, c({ action: y, location: $ });
|
|
2444
2444
|
} else
|
|
2445
2445
|
c();
|
|
2446
2446
|
});
|
|
2447
2447
|
}, U = (f, w) => {
|
|
2448
|
-
const y = "REPLACE", $ =
|
|
2449
|
-
a.confirmTransitionTo($, y, e, (
|
|
2450
|
-
if (!
|
|
2448
|
+
const y = "REPLACE", $ = Ht(f, ae);
|
|
2449
|
+
a.confirmTransitionTo($, y, e, (A) => {
|
|
2450
|
+
if (!A)
|
|
2451
2451
|
return;
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2452
|
+
const _ = at($), m = i(s + _);
|
|
2453
|
+
ct() !== m && Tn(m);
|
|
2454
|
+
const O = g.indexOf(at(T.location));
|
|
2455
|
+
O !== -1 && (g[O] = _), c({ action: y, location: $ });
|
|
2456
2456
|
});
|
|
2457
|
-
},
|
|
2457
|
+
}, x = (f) => {
|
|
2458
2458
|
t.go(f);
|
|
2459
|
-
}, N = () =>
|
|
2459
|
+
}, N = () => x(-1), S = () => x(1);
|
|
2460
2460
|
let D = 0;
|
|
2461
|
-
const
|
|
2462
|
-
D += f, D === 1 ? window.addEventListener(
|
|
2461
|
+
const z = (f) => {
|
|
2462
|
+
D += f, D === 1 ? window.addEventListener(jn, u) : D === 0 && window.removeEventListener(jn, u);
|
|
2463
2463
|
};
|
|
2464
|
-
let
|
|
2465
|
-
const
|
|
2464
|
+
let V = !1;
|
|
2465
|
+
const T = {
|
|
2466
2466
|
createHref: H,
|
|
2467
|
-
createLocation:
|
|
2467
|
+
createLocation: Ht,
|
|
2468
2468
|
push: k,
|
|
2469
2469
|
replace: U,
|
|
2470
|
-
go:
|
|
2470
|
+
go: x,
|
|
2471
2471
|
goBack: N,
|
|
2472
|
-
goForward:
|
|
2472
|
+
goForward: S,
|
|
2473
2473
|
block: (f = !1) => {
|
|
2474
2474
|
const w = a.setPrompt(f);
|
|
2475
|
-
return
|
|
2475
|
+
return V || (z(1), V = !0), () => (V && (V = !1, z(-1)), w());
|
|
2476
2476
|
},
|
|
2477
2477
|
listen: (f) => {
|
|
2478
2478
|
const w = a.appendListener(f);
|
|
2479
|
-
return
|
|
2480
|
-
|
|
2479
|
+
return z(1), () => {
|
|
2480
|
+
z(-1), w();
|
|
2481
2481
|
};
|
|
2482
2482
|
},
|
|
2483
2483
|
stop: () => {
|
|
2484
|
-
const f =
|
|
2485
|
-
|
|
2484
|
+
const f = ct(), w = F(f, `humany-${n.widgetName}`, null), y = i(w);
|
|
2485
|
+
Rn(y);
|
|
2486
2486
|
},
|
|
2487
2487
|
length: t.length,
|
|
2488
2488
|
action: "POP",
|
|
2489
|
-
location:
|
|
2489
|
+
location: E
|
|
2490
2490
|
};
|
|
2491
|
-
return
|
|
2492
|
-
},
|
|
2491
|
+
return T;
|
|
2492
|
+
}, Mr = qi, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2493
2493
|
__proto__: null,
|
|
2494
|
-
decodeSearch:
|
|
2495
|
-
default:
|
|
2496
|
-
getHashPath:
|
|
2497
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2494
|
+
decodeSearch: ae,
|
|
2495
|
+
default: Mr,
|
|
2496
|
+
getHashPath: ct
|
|
2497
|
+
}, Symbol.toStringTag, { value: "Module" })), Ki = (n, t) => {
|
|
2498
2498
|
const e = (s) => {
|
|
2499
2499
|
function i(o, a) {
|
|
2500
2500
|
const c = {};
|
|
@@ -2506,10 +2506,10 @@ const Lt = (n, t) => {
|
|
|
2506
2506
|
return i(s, /([^#?&=]+)=([^&#]*)(?!.*?\#)/gi) || null;
|
|
2507
2507
|
}, r = `humany-${t}`;
|
|
2508
2508
|
return e(n)[r];
|
|
2509
|
-
},
|
|
2509
|
+
}, Gi = () => {
|
|
2510
2510
|
const n = window.location.href, t = n.indexOf("#");
|
|
2511
2511
|
return t === -1 ? "" : n.substring(t + 1);
|
|
2512
|
-
},
|
|
2512
|
+
}, Yi = (n = "") => {
|
|
2513
2513
|
const t = n.replace(";", "?"), e = [
|
|
2514
2514
|
{ from: /\;+/gi, to: "&" },
|
|
2515
2515
|
{ from: /:+/gi, to: "=" }
|
|
@@ -2518,18 +2518,18 @@ const Lt = (n, t) => {
|
|
|
2518
2518
|
return e.forEach(({ to: s, from: i }) => {
|
|
2519
2519
|
r = r.replace(i, s);
|
|
2520
2520
|
}), r;
|
|
2521
|
-
},
|
|
2521
|
+
}, Zi = (n, t = null) => n ? xe(t ? t(n) : n) : {
|
|
2522
2522
|
pathname: "",
|
|
2523
2523
|
search: "",
|
|
2524
2524
|
hash: ""
|
|
2525
|
-
},
|
|
2526
|
-
const t =
|
|
2527
|
-
return
|
|
2528
|
-
},
|
|
2525
|
+
}, Dr = (n) => {
|
|
2526
|
+
const t = Gi(), e = Ki(t, n);
|
|
2527
|
+
return Zi(e, Yi);
|
|
2528
|
+
}, on = (n) => {
|
|
2529
2529
|
const { name: t } = n.get("$widget");
|
|
2530
|
-
return !!
|
|
2530
|
+
return !!Dr(t).pathname;
|
|
2531
2531
|
};
|
|
2532
|
-
|
|
2532
|
+
Xe((n) => {
|
|
2533
2533
|
n.createCommand("routing", (t) => (e) => {
|
|
2534
2534
|
const r = {
|
|
2535
2535
|
mode: e.mode
|
|
@@ -2537,13 +2537,13 @@ Je((n) => {
|
|
|
2537
2537
|
e.basePath && (r.basePath = e.basePath), t.container.register("routingSettings", r);
|
|
2538
2538
|
});
|
|
2539
2539
|
});
|
|
2540
|
-
const
|
|
2541
|
-
class
|
|
2540
|
+
const In = "routeData";
|
|
2541
|
+
class Qi {
|
|
2542
2542
|
constructor(t, e) {
|
|
2543
2543
|
this.container = t, this.steps = [], this.historyListenSubscription = () => {
|
|
2544
2544
|
}, this.sticky = !1, this.storageWriter = null, this.widget = t.get("$widget");
|
|
2545
|
-
const r = e, { routes: s } = r, i =
|
|
2546
|
-
this.settings =
|
|
2545
|
+
const r = e, { routes: s } = r, i = fi(r, ["routes"]);
|
|
2546
|
+
this.settings = At(At({}, i), t.get("routingSettings")), this.sticky = Wi(this.settings), this.storageMedium = this.sticky ? P.Local : P.Session, rt(t, In, C.Necessary, {
|
|
2547
2547
|
medium: this.storageMedium
|
|
2548
2548
|
}).then((o) => this.storageWriter = o), this.routes = s;
|
|
2549
2549
|
}
|
|
@@ -2559,7 +2559,7 @@ class Ki {
|
|
|
2559
2559
|
const e = this.getRouteData(), r = {
|
|
2560
2560
|
routeData: e,
|
|
2561
2561
|
location: this.location
|
|
2562
|
-
}, s = this.steps[0], i = e.name === (s == null ? void 0 : s.routeData.name), o =
|
|
2562
|
+
}, s = this.steps[0], i = e.name === (s == null ? void 0 : s.routeData.name), o = vn(
|
|
2563
2563
|
e.params,
|
|
2564
2564
|
(s == null ? void 0 : s.routeData.params) || {}
|
|
2565
2565
|
);
|
|
@@ -2578,13 +2578,13 @@ class Ki {
|
|
|
2578
2578
|
* @param params Optional: route params
|
|
2579
2579
|
*/
|
|
2580
2580
|
generate(t, e = {}) {
|
|
2581
|
-
const r =
|
|
2581
|
+
const r = je(t, this.routes);
|
|
2582
2582
|
if (!r || !this.history)
|
|
2583
2583
|
throw `No route found for ${t}`;
|
|
2584
|
-
const s =
|
|
2584
|
+
const s = oe(e, r.path);
|
|
2585
2585
|
if (!s)
|
|
2586
2586
|
throw `Unable to generate path for "${t}".`;
|
|
2587
|
-
const i =
|
|
2587
|
+
const i = Ht(s, this.settings.decodeSearch);
|
|
2588
2588
|
let o = this.history.createHref(i);
|
|
2589
2589
|
const { mode: a, basePath: c } = this.settings;
|
|
2590
2590
|
return a === "browser" && c && (o = o.replace(c, "")), o.charAt(0) !== "/" && (o = `/${o}`), o;
|
|
@@ -2595,13 +2595,13 @@ class Ki {
|
|
|
2595
2595
|
* @param params Optional: route params
|
|
2596
2596
|
*/
|
|
2597
2597
|
navigate(t, e = {}) {
|
|
2598
|
-
const r =
|
|
2598
|
+
const r = je(t, this.routes);
|
|
2599
2599
|
if (!r || !this.history)
|
|
2600
2600
|
return;
|
|
2601
|
-
const s =
|
|
2601
|
+
const s = oe(e, r.path);
|
|
2602
2602
|
if (!s)
|
|
2603
2603
|
return;
|
|
2604
|
-
const i = this.getRouteData(), o = i && i.name === t &&
|
|
2604
|
+
const i = this.getRouteData(), o = i && i.name === t && zi(i.params, e);
|
|
2605
2605
|
if (this.steps[0] && o)
|
|
2606
2606
|
return;
|
|
2607
2607
|
const { decodeSearch: a } = this.settings, c = a ? a(s) : s;
|
|
@@ -2616,7 +2616,7 @@ class Ki {
|
|
|
2616
2616
|
hasBack() {
|
|
2617
2617
|
if (this.steps.length > 1)
|
|
2618
2618
|
return !0;
|
|
2619
|
-
const t = this.getRouteData(this.settings.initialPath), e = this.getRouteData(), r = e.name === t.name, s =
|
|
2619
|
+
const t = this.getRouteData(this.settings.initialPath), e = this.getRouteData(), r = e.name === t.name, s = vn(e.params, t.params);
|
|
2620
2620
|
return !r || !s;
|
|
2621
2621
|
}
|
|
2622
2622
|
/**
|
|
@@ -2628,7 +2628,7 @@ class Ki {
|
|
|
2628
2628
|
e && e.name && (this.navigate(e.name, e.params), this.steps = []);
|
|
2629
2629
|
} else {
|
|
2630
2630
|
const e = t >= this.steps.length ? this.steps.length - 1 : t, { routeData: r } = this.steps[e];
|
|
2631
|
-
this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name,
|
|
2631
|
+
this.steps = [...this.steps.slice(e + 1)], this.navigate(r.name, os(r.params));
|
|
2632
2632
|
}
|
|
2633
2633
|
}
|
|
2634
2634
|
/**
|
|
@@ -2652,11 +2652,11 @@ class Ki {
|
|
|
2652
2652
|
return this.routes.find((r) => r.name === t) || (this.routes.length > 0 ? this.routes[0] : (process.env.NODE_ENV !== "production" && I.warn("Unable to get initial route as no routes are defined."), null));
|
|
2653
2653
|
}
|
|
2654
2654
|
getRouteData(t) {
|
|
2655
|
-
const e =
|
|
2655
|
+
const e = Re(this.container);
|
|
2656
2656
|
if (t) {
|
|
2657
|
-
const r =
|
|
2657
|
+
const r = _t(t, this.routes);
|
|
2658
2658
|
return r ? {
|
|
2659
|
-
params:
|
|
2659
|
+
params: $t(It(t, r.path)),
|
|
2660
2660
|
name: r.name
|
|
2661
2661
|
} : e || {
|
|
2662
2662
|
name: "",
|
|
@@ -2665,15 +2665,15 @@ class Ki {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
if (this.location) {
|
|
2667
2667
|
const { pathname: r, search: s } = this.location;
|
|
2668
|
-
if (this.currentRoute = this.currentRoute ||
|
|
2668
|
+
if (this.currentRoute = this.currentRoute || _t(r, this.routes), this.currentRoute) {
|
|
2669
2669
|
const { path: i, name: o } = this.currentRoute;
|
|
2670
2670
|
this.match || (this.match = {
|
|
2671
|
-
params:
|
|
2671
|
+
params: It(r, i),
|
|
2672
2672
|
isExact: !0,
|
|
2673
2673
|
path: i,
|
|
2674
2674
|
url: r
|
|
2675
2675
|
});
|
|
2676
|
-
const a =
|
|
2676
|
+
const a = $t(At(At({}, this.match.params), s.length > 0 && Lr(s)));
|
|
2677
2677
|
return {
|
|
2678
2678
|
name: o,
|
|
2679
2679
|
params: a
|
|
@@ -2692,31 +2692,31 @@ class Ki {
|
|
|
2692
2692
|
* Setup and load the initial route based on router configuration
|
|
2693
2693
|
*/
|
|
2694
2694
|
setupInitialRoute() {
|
|
2695
|
-
return
|
|
2695
|
+
return Z(this.container, In, this.storageMedium).then(
|
|
2696
2696
|
(t) => {
|
|
2697
2697
|
if (!this.location || !this.history)
|
|
2698
2698
|
return;
|
|
2699
2699
|
const { initialPath: e, mode: r } = this.settings;
|
|
2700
2700
|
switch ((() => {
|
|
2701
|
-
const s =
|
|
2702
|
-
return r ===
|
|
2701
|
+
const s = on(this.container);
|
|
2702
|
+
return r === Y.browser || s ? ft.path : r === Y.memory && t ? ft.storage : ft.initialPath;
|
|
2703
2703
|
})()) {
|
|
2704
|
-
case
|
|
2704
|
+
case ft.initialPath: {
|
|
2705
2705
|
const s = this.getRouteData(e);
|
|
2706
2706
|
return s && s.name ? this.navigate(s.name, s.params) : void 0;
|
|
2707
2707
|
}
|
|
2708
|
-
case
|
|
2708
|
+
case ft.path: {
|
|
2709
2709
|
const { pathname: s } = this.location;
|
|
2710
|
-
if (this.currentRoute =
|
|
2710
|
+
if (this.currentRoute = _t(s, this.routes), this.currentRoute) {
|
|
2711
2711
|
const { path: o } = this.currentRoute;
|
|
2712
2712
|
return this.setMatch({
|
|
2713
|
-
params:
|
|
2713
|
+
params: It(s, o),
|
|
2714
2714
|
isExact: !0,
|
|
2715
2715
|
path: o,
|
|
2716
2716
|
url: s
|
|
2717
2717
|
});
|
|
2718
2718
|
}
|
|
2719
|
-
const i =
|
|
2719
|
+
const i = Re(this.container);
|
|
2720
2720
|
return i ? this.setMatch({
|
|
2721
2721
|
params: {},
|
|
2722
2722
|
isExact: !0,
|
|
@@ -2724,14 +2724,14 @@ class Ki {
|
|
|
2724
2724
|
url: s
|
|
2725
2725
|
}) : void 0;
|
|
2726
2726
|
}
|
|
2727
|
-
case
|
|
2727
|
+
case ft.storage: {
|
|
2728
2728
|
const { pathname: s } = this.location;
|
|
2729
|
-
this.currentRoute =
|
|
2730
|
-
const { name: i = "", params: o = {} } = t || {}, a =
|
|
2729
|
+
this.currentRoute = _t(s, this.routes);
|
|
2730
|
+
const { name: i = "", params: o = {} } = t || {}, a = je(i, this.routes);
|
|
2731
2731
|
if (a) {
|
|
2732
|
-
const c =
|
|
2732
|
+
const c = oe(o, a.path);
|
|
2733
2733
|
if (c)
|
|
2734
|
-
return this.history.push(c), this.location =
|
|
2734
|
+
return this.history.push(c), this.location = br(At({}, this.location), { pathname: c }), this.currentRoute = _t(c, this.routes), this.setMatch({
|
|
2735
2735
|
params: o,
|
|
2736
2736
|
isExact: !0,
|
|
2737
2737
|
path: a.path,
|
|
@@ -2748,18 +2748,18 @@ class Ki {
|
|
|
2748
2748
|
return this.setupInitialRoute();
|
|
2749
2749
|
}
|
|
2750
2750
|
stop() {
|
|
2751
|
-
return this.history && (this.settings.mode ===
|
|
2751
|
+
return this.history && (this.settings.mode === Y.scopedHash && this.history.stop(), this.steps = [], this.storageWriter) ? this.storageWriter() : Promise.resolve();
|
|
2752
2752
|
}
|
|
2753
2753
|
handleLocationChange(t, e) {
|
|
2754
2754
|
const { pathname: r } = t, { mode: s } = this.settings;
|
|
2755
|
-
if (r.indexOf("?") > -1 || r.indexOf(";") > -1 || s ===
|
|
2755
|
+
if (r.indexOf("?") > -1 || r.indexOf(";") > -1 || s === Y.scopedHash && e !== this.widget.name)
|
|
2756
2756
|
return;
|
|
2757
|
-
this.location = t, this.currentRoute =
|
|
2758
|
-
const i =
|
|
2757
|
+
this.location = t, this.currentRoute = _t(r, this.routes);
|
|
2758
|
+
const i = Re(this.container);
|
|
2759
2759
|
if (this.currentRoute) {
|
|
2760
2760
|
const { path: o } = this.currentRoute;
|
|
2761
2761
|
this.setMatch({
|
|
2762
|
-
params:
|
|
2762
|
+
params: It(r, o),
|
|
2763
2763
|
isExact: !0,
|
|
2764
2764
|
path: o,
|
|
2765
2765
|
url: r
|
|
@@ -2775,9 +2775,9 @@ class Ki {
|
|
|
2775
2775
|
createHistory() {
|
|
2776
2776
|
return new Promise((t) => {
|
|
2777
2777
|
const { mode: e, basePath: r } = this.settings;
|
|
2778
|
-
if (e ===
|
|
2779
|
-
const s = this.widget.name, i =
|
|
2780
|
-
return Promise.resolve().then(() =>
|
|
2778
|
+
if (e === Y.scopedHash) {
|
|
2779
|
+
const s = this.widget.name, i = Bi(this.container);
|
|
2780
|
+
return Promise.resolve().then(() => Ji).then((o) => {
|
|
2781
2781
|
const a = o.default({
|
|
2782
2782
|
widgetName: s,
|
|
2783
2783
|
transitionManager: i,
|
|
@@ -2786,23 +2786,23 @@ class Ki {
|
|
|
2786
2786
|
return t(a);
|
|
2787
2787
|
});
|
|
2788
2788
|
}
|
|
2789
|
-
if (e ===
|
|
2790
|
-
return t(
|
|
2791
|
-
if (e ===
|
|
2792
|
-
return t(
|
|
2789
|
+
if (e === Y.memory)
|
|
2790
|
+
return t(Gs());
|
|
2791
|
+
if (e === Y.browser)
|
|
2792
|
+
return t(Js({ basename: r }));
|
|
2793
2793
|
throw "RoutingService: History could not be created.";
|
|
2794
2794
|
});
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
|
-
const
|
|
2797
|
+
const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2798
2798
|
__proto__: null,
|
|
2799
|
-
HistoryMode:
|
|
2800
|
-
RoutingService:
|
|
2801
|
-
createHashHistory:
|
|
2802
|
-
getScopedHashDOMLocation:
|
|
2803
|
-
matchParams:
|
|
2804
|
-
onWidgetUrl:
|
|
2805
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2799
|
+
HistoryMode: Y,
|
|
2800
|
+
RoutingService: Qi,
|
|
2801
|
+
createHashHistory: Mr,
|
|
2802
|
+
getScopedHashDOMLocation: Dr,
|
|
2803
|
+
matchParams: It,
|
|
2804
|
+
onWidgetUrl: on
|
|
2805
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = (n, t, e, ...r) => {
|
|
2806
2806
|
const s = `[${n.get("$environment").name || "webprovisions"}] ${e}`;
|
|
2807
2807
|
switch (t) {
|
|
2808
2808
|
case "info":
|
|
@@ -2815,16 +2815,16 @@ const Gi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2815
2815
|
console.error(s, ...r);
|
|
2816
2816
|
break;
|
|
2817
2817
|
}
|
|
2818
|
-
},
|
|
2818
|
+
}, to = (n) => {
|
|
2819
2819
|
const t = n.container || n;
|
|
2820
2820
|
return {
|
|
2821
|
-
info: (e, ...r) =>
|
|
2822
|
-
warn: (e, ...r) =>
|
|
2823
|
-
error: (e, ...r) =>
|
|
2821
|
+
info: (e, ...r) => Te(t, "info", e, ...r),
|
|
2822
|
+
warn: (e, ...r) => Te(t, "warning", e, ...r),
|
|
2823
|
+
error: (e, ...r) => Te(t, "error", e, ...r)
|
|
2824
2824
|
};
|
|
2825
2825
|
};
|
|
2826
|
-
var
|
|
2827
|
-
const
|
|
2826
|
+
var Bt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(Bt || {}), ut = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(ut || {});
|
|
2827
|
+
const eo = (n, t, e, r) => {
|
|
2828
2828
|
try {
|
|
2829
2829
|
const s = new t(e, r);
|
|
2830
2830
|
return {
|
|
@@ -2848,23 +2848,23 @@ const Zi = (n, t, e, r) => {
|
|
|
2848
2848
|
throw s;
|
|
2849
2849
|
}
|
|
2850
2850
|
};
|
|
2851
|
-
function
|
|
2851
|
+
function Hn(n, t) {
|
|
2852
2852
|
return typeof n == "undefined" ? t : n;
|
|
2853
2853
|
}
|
|
2854
|
-
class
|
|
2854
|
+
class no {
|
|
2855
2855
|
constructor(t = {}) {
|
|
2856
2856
|
this.part = t;
|
|
2857
2857
|
}
|
|
2858
2858
|
createCommand(t, e, r) {
|
|
2859
2859
|
let s;
|
|
2860
2860
|
typeof e == "function" ? s = {
|
|
2861
|
-
scope:
|
|
2862
|
-
stage:
|
|
2861
|
+
scope: Bt.Widget,
|
|
2862
|
+
stage: ut.Post,
|
|
2863
2863
|
defaultArgs: void 0,
|
|
2864
2864
|
handlerResolver: e
|
|
2865
2865
|
} : s = {
|
|
2866
|
-
scope:
|
|
2867
|
-
stage:
|
|
2866
|
+
scope: Hn(e.scope, Bt.Widget),
|
|
2867
|
+
stage: Hn(e.stage, ut.Post),
|
|
2868
2868
|
defaultArgs: e.defaultArgs,
|
|
2869
2869
|
handlerResolver: r
|
|
2870
2870
|
};
|
|
@@ -2878,26 +2878,26 @@ class Qi {
|
|
|
2878
2878
|
return this.part;
|
|
2879
2879
|
}
|
|
2880
2880
|
}
|
|
2881
|
-
const
|
|
2882
|
-
const t = new
|
|
2881
|
+
const jr = (n) => {
|
|
2882
|
+
const t = new no({});
|
|
2883
2883
|
return n(t), t.get();
|
|
2884
2884
|
};
|
|
2885
|
-
|
|
2885
|
+
jr((n) => {
|
|
2886
2886
|
n.createCommand(
|
|
2887
2887
|
"types.register",
|
|
2888
|
-
{ scope:
|
|
2888
|
+
{ scope: Bt.Implementation, stage: ut.Pre },
|
|
2889
2889
|
(t) => (e, r) => {
|
|
2890
2890
|
t.container.get("$types")[e] = r;
|
|
2891
2891
|
}
|
|
2892
2892
|
).createCommand(
|
|
2893
2893
|
"type",
|
|
2894
|
-
{ stage:
|
|
2894
|
+
{ stage: ut.Pre },
|
|
2895
2895
|
(t) => (e) => {
|
|
2896
2896
|
t.container.register("$type", e);
|
|
2897
2897
|
}
|
|
2898
2898
|
).createCommand(
|
|
2899
2899
|
"settings",
|
|
2900
|
-
{ stage:
|
|
2900
|
+
{ stage: ut.Pre, defaultArgs: [null] },
|
|
2901
2901
|
(t) => (e) => {
|
|
2902
2902
|
t.events.dispatch(
|
|
2903
2903
|
"settings:change",
|
|
@@ -2907,7 +2907,7 @@ Nr((n) => {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
).createCommand(
|
|
2909
2909
|
"plugin",
|
|
2910
|
-
{ stage:
|
|
2910
|
+
{ stage: ut.Pre },
|
|
2911
2911
|
(t) => (e, r, s) => {
|
|
2912
2912
|
const { container: i } = t;
|
|
2913
2913
|
let o = null, a = e, c = r;
|
|
@@ -2920,7 +2920,7 @@ Nr((n) => {
|
|
|
2920
2920
|
a
|
|
2921
2921
|
) : r;
|
|
2922
2922
|
try {
|
|
2923
|
-
const p =
|
|
2923
|
+
const p = eo(
|
|
2924
2924
|
o,
|
|
2925
2925
|
a,
|
|
2926
2926
|
i,
|
|
@@ -2928,7 +2928,7 @@ Nr((n) => {
|
|
|
2928
2928
|
);
|
|
2929
2929
|
i.get("$plugins").push(p), l && p.invoke("initialize", null);
|
|
2930
2930
|
} catch (p) {
|
|
2931
|
-
|
|
2931
|
+
to(t).warn("Error when initializing plugin", p);
|
|
2932
2932
|
}
|
|
2933
2933
|
};
|
|
2934
2934
|
t.container.get("$instance") ? h(!0) : t.events.subscribeOnce("widget:instance-created", () => h(!1));
|
|
@@ -2961,45 +2961,45 @@ Nr((n) => {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
);
|
|
2963
2963
|
});
|
|
2964
|
-
function
|
|
2964
|
+
function ro(n) {
|
|
2965
2965
|
const t = {};
|
|
2966
2966
|
return [].filter.call(n.attributes, (e) => /^data-/.test(e.name)).map((e) => e.name).forEach((e) => t[e.substr(5)] = n.getAttribute(e)), t;
|
|
2967
2967
|
}
|
|
2968
|
-
const
|
|
2969
|
-
const r =
|
|
2968
|
+
const Un = (n, t, e) => {
|
|
2969
|
+
const r = ro(n);
|
|
2970
2970
|
e({
|
|
2971
2971
|
sourceDOMElement: n,
|
|
2972
2972
|
eventType: t,
|
|
2973
2973
|
data: r
|
|
2974
2974
|
});
|
|
2975
2975
|
};
|
|
2976
|
-
function
|
|
2976
|
+
function Vn(n, t, e) {
|
|
2977
2977
|
n.forEach((r) => {
|
|
2978
|
-
r.dataset.attached !== "true" && (t === "load" ?
|
|
2979
|
-
s.preventDefault(),
|
|
2978
|
+
r.dataset.attached !== "true" && (t === "load" ? Un(r, t, e) : r.addEventListener(t, (s) => {
|
|
2979
|
+
s.preventDefault(), Un(r, t, e);
|
|
2980
2980
|
}), r.dataset.monitored = "true");
|
|
2981
2981
|
});
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function so(n, t, e) {
|
|
2984
2984
|
const r = n.container.get("bootstrapping.monitor");
|
|
2985
2985
|
r && r.events.subscribe("bootstrap:trigger-elements-updated", (i, o) => {
|
|
2986
|
-
|
|
2986
|
+
Vn(
|
|
2987
2987
|
o.triggerElements,
|
|
2988
2988
|
t,
|
|
2989
2989
|
e
|
|
2990
2990
|
);
|
|
2991
2991
|
});
|
|
2992
2992
|
const s = n.container.get("triggerElements");
|
|
2993
|
-
s &&
|
|
2993
|
+
s && Vn(
|
|
2994
2994
|
s,
|
|
2995
2995
|
t,
|
|
2996
2996
|
e
|
|
2997
2997
|
);
|
|
2998
2998
|
}
|
|
2999
|
-
|
|
2999
|
+
jr((n) => {
|
|
3000
3000
|
n.createCommand(
|
|
3001
3001
|
"ready",
|
|
3002
|
-
{ scope:
|
|
3002
|
+
{ scope: Bt.Implementation, stage: ut.Pre },
|
|
3003
3003
|
(t) => (e) => {
|
|
3004
3004
|
const { container: r } = t, s = r.owner;
|
|
3005
3005
|
r.get("bootstrapping").ready ? e(s) : s.events.subscribeOnce("bootstrap:ready", () => {
|
|
@@ -3008,7 +3008,7 @@ Nr((n) => {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
);
|
|
3010
3010
|
});
|
|
3011
|
-
const
|
|
3011
|
+
const io = (n) => {
|
|
3012
3012
|
const t = (s, i) => {
|
|
3013
3013
|
s && (i ? s.classList.add("ace-tabbing") : s.classList.remove("ace-tabbing"));
|
|
3014
3014
|
}, e = (s) => {
|
|
@@ -3020,7 +3020,7 @@ const eo = (n) => {
|
|
|
3020
3020
|
document.removeEventListener("keydown", e), document.removeEventListener("click", r);
|
|
3021
3021
|
};
|
|
3022
3022
|
};
|
|
3023
|
-
function
|
|
3023
|
+
function oo(n, t) {
|
|
3024
3024
|
const {
|
|
3025
3025
|
// symbol,
|
|
3026
3026
|
widgetName: e,
|
|
@@ -3028,19 +3028,19 @@ function no(n, t) {
|
|
|
3028
3028
|
ariaLabel: s = "",
|
|
3029
3029
|
tooltip: i = ""
|
|
3030
3030
|
} = t;
|
|
3031
|
-
return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add("trigger-has-text"), s.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", s), s.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), i.length && !n.getAttribute("title") && n.setAttribute("title", i),
|
|
3031
|
+
return n.classList.add("ace-widget-trigger"), n.classList.add(`ace-widget_${e}`), r.length && n.classList.add("trigger-has-text"), s.length && !n.getAttribute("aria-label") && n.setAttribute("aria-label", s), s.length && !n.getAttribute("tabindex") && n.setAttribute("tabindex", "0"), i.length && !n.getAttribute("title") && n.setAttribute("title", i), io(n);
|
|
3032
3032
|
}
|
|
3033
|
-
function
|
|
3033
|
+
function ao(n, t) {
|
|
3034
3034
|
n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.remove("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
|
|
3035
3035
|
t && e.setAttribute("title", t), e.classList.remove("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
3036
3036
|
});
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function co(n) {
|
|
3039
3039
|
n instanceof HTMLElement ? (n.classList.remove("ace-trigger-active"), n.classList.add("ace-trigger-loading")) : n instanceof Array && n.forEach((t) => {
|
|
3040
3040
|
t.classList.remove("ace-trigger-active"), t.classList.add("ace-trigger-loading");
|
|
3041
3041
|
});
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3043
|
+
function Rr(n, t) {
|
|
3044
3044
|
n instanceof HTMLElement ? (t && n.setAttribute("title", t), n.classList.add("ace-trigger-active"), n.classList.remove("ace-trigger-loading")) : n instanceof Array && n.forEach((e) => {
|
|
3045
3045
|
t && e.setAttribute("title", t), e.classList.add("ace-trigger-active"), e.classList.remove("ace-trigger-loading");
|
|
3046
3046
|
});
|
|
@@ -3050,19 +3050,19 @@ function Mr(n, t) {
|
|
|
3050
3050
|
* Copyright 2019 Google LLC
|
|
3051
3051
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3052
3052
|
*/
|
|
3053
|
-
const
|
|
3054
|
-
let
|
|
3053
|
+
const ce = window, an = ce.ShadowRoot && (ce.ShadyCSS === void 0 || ce.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, cn = Symbol(), Bn = /* @__PURE__ */ new WeakMap();
|
|
3054
|
+
let Tr = class {
|
|
3055
3055
|
constructor(t, e, r) {
|
|
3056
|
-
if (this._$cssResult$ = !0, r !==
|
|
3056
|
+
if (this._$cssResult$ = !0, r !== cn)
|
|
3057
3057
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
3058
3058
|
this.cssText = t, this.t = e;
|
|
3059
3059
|
}
|
|
3060
3060
|
get styleSheet() {
|
|
3061
3061
|
let t = this.o;
|
|
3062
3062
|
const e = this.t;
|
|
3063
|
-
if (
|
|
3063
|
+
if (an && t === void 0) {
|
|
3064
3064
|
const r = e !== void 0 && e.length === 1;
|
|
3065
|
-
r && (t =
|
|
3065
|
+
r && (t = Bn.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Bn.set(e, t));
|
|
3066
3066
|
}
|
|
3067
3067
|
return t;
|
|
3068
3068
|
}
|
|
@@ -3070,7 +3070,7 @@ let Lr = class {
|
|
|
3070
3070
|
return this.cssText;
|
|
3071
3071
|
}
|
|
3072
3072
|
};
|
|
3073
|
-
const
|
|
3073
|
+
const ho = (n) => new Tr(typeof n == "string" ? n : n + "", void 0, cn), Ir = (n, ...t) => {
|
|
3074
3074
|
const e = n.length === 1 ? n[0] : t.reduce((r, s, i) => r + ((o) => {
|
|
3075
3075
|
if (o._$cssResult$ === !0)
|
|
3076
3076
|
return o.cssText;
|
|
@@ -3078,28 +3078,28 @@ const io = (n) => new Lr(typeof n == "string" ? n : n + "", void 0, en), oo = (n
|
|
|
3078
3078
|
return o;
|
|
3079
3079
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
3080
3080
|
})(s) + n[i + 1], n[0]);
|
|
3081
|
-
return new
|
|
3082
|
-
},
|
|
3083
|
-
|
|
3084
|
-
const r = document.createElement("style"), s =
|
|
3081
|
+
return new Tr(e, n, cn);
|
|
3082
|
+
}, lo = (n, t) => {
|
|
3083
|
+
an ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
|
|
3084
|
+
const r = document.createElement("style"), s = ce.litNonce;
|
|
3085
3085
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, n.appendChild(r);
|
|
3086
3086
|
});
|
|
3087
|
-
},
|
|
3087
|
+
}, zn = an ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
3088
3088
|
let e = "";
|
|
3089
3089
|
for (const r of t.cssRules)
|
|
3090
3090
|
e += r.cssText;
|
|
3091
|
-
return
|
|
3091
|
+
return ho(e);
|
|
3092
3092
|
})(n) : n;
|
|
3093
3093
|
/**
|
|
3094
3094
|
* @license
|
|
3095
3095
|
* Copyright 2017 Google LLC
|
|
3096
3096
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3097
3097
|
*/
|
|
3098
|
-
var
|
|
3099
|
-
const
|
|
3098
|
+
var Ie;
|
|
3099
|
+
const me = window, Wn = me.trustedTypes, uo = Wn ? Wn.emptyScript : "", Fn = me.reactiveElementPolyfillSupport, Ye = { toAttribute(n, t) {
|
|
3100
3100
|
switch (t) {
|
|
3101
3101
|
case Boolean:
|
|
3102
|
-
n = n ?
|
|
3102
|
+
n = n ? uo : null;
|
|
3103
3103
|
break;
|
|
3104
3104
|
case Object:
|
|
3105
3105
|
case Array:
|
|
@@ -3124,8 +3124,8 @@ const ue = window, Hn = ue.trustedTypes, co = Hn ? Hn.emptyScript : "", Un = ue.
|
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
3126
|
return e;
|
|
3127
|
-
} },
|
|
3128
|
-
let
|
|
3127
|
+
} }, Hr = (n, t) => t !== n && (t == t || n == n), He = { attribute: !0, type: String, converter: Ye, reflect: !1, hasChanged: Hr }, Ze = "finalized";
|
|
3128
|
+
let Pt = class extends HTMLElement {
|
|
3129
3129
|
constructor() {
|
|
3130
3130
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
|
|
3131
3131
|
}
|
|
@@ -3141,7 +3141,7 @@ let At = class extends HTMLElement {
|
|
|
3141
3141
|
s !== void 0 && (this._$Ev.set(s, r), t.push(s));
|
|
3142
3142
|
}), t;
|
|
3143
3143
|
}
|
|
3144
|
-
static createProperty(t, e =
|
|
3144
|
+
static createProperty(t, e = He) {
|
|
3145
3145
|
if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
|
|
3146
3146
|
const r = typeof t == "symbol" ? Symbol() : "__" + t, s = this.getPropertyDescriptor(t, r, e);
|
|
3147
3147
|
s !== void 0 && Object.defineProperty(this.prototype, t, s);
|
|
@@ -3156,12 +3156,12 @@ let At = class extends HTMLElement {
|
|
|
3156
3156
|
}, configurable: !0, enumerable: !0 };
|
|
3157
3157
|
}
|
|
3158
3158
|
static getPropertyOptions(t) {
|
|
3159
|
-
return this.elementProperties.get(t) ||
|
|
3159
|
+
return this.elementProperties.get(t) || He;
|
|
3160
3160
|
}
|
|
3161
3161
|
static finalize() {
|
|
3162
|
-
if (this.hasOwnProperty(
|
|
3162
|
+
if (this.hasOwnProperty(Ze))
|
|
3163
3163
|
return !1;
|
|
3164
|
-
this[
|
|
3164
|
+
this[Ze] = !0;
|
|
3165
3165
|
const t = Object.getPrototypeOf(this);
|
|
3166
3166
|
if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
3167
3167
|
const e = this.properties, r = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
|
@@ -3175,9 +3175,9 @@ let At = class extends HTMLElement {
|
|
|
3175
3175
|
if (Array.isArray(t)) {
|
|
3176
3176
|
const r = new Set(t.flat(1 / 0).reverse());
|
|
3177
3177
|
for (const s of r)
|
|
3178
|
-
e.unshift(
|
|
3178
|
+
e.unshift(zn(s));
|
|
3179
3179
|
} else
|
|
3180
|
-
t !== void 0 && e.push(
|
|
3180
|
+
t !== void 0 && e.push(zn(t));
|
|
3181
3181
|
return e;
|
|
3182
3182
|
}
|
|
3183
3183
|
static _$Ep(t, e) {
|
|
@@ -3204,7 +3204,7 @@ let At = class extends HTMLElement {
|
|
|
3204
3204
|
createRenderRoot() {
|
|
3205
3205
|
var t;
|
|
3206
3206
|
const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
|
|
3207
|
-
return
|
|
3207
|
+
return lo(e, this.constructor.elementStyles), e;
|
|
3208
3208
|
}
|
|
3209
3209
|
connectedCallback() {
|
|
3210
3210
|
var t;
|
|
@@ -3225,11 +3225,11 @@ let At = class extends HTMLElement {
|
|
|
3225
3225
|
attributeChangedCallback(t, e, r) {
|
|
3226
3226
|
this._$AK(t, r);
|
|
3227
3227
|
}
|
|
3228
|
-
_$EO(t, e, r =
|
|
3228
|
+
_$EO(t, e, r = He) {
|
|
3229
3229
|
var s;
|
|
3230
3230
|
const i = this.constructor._$Ep(t, r);
|
|
3231
3231
|
if (i !== void 0 && r.reflect === !0) {
|
|
3232
|
-
const o = (((s = r.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? r.converter :
|
|
3232
|
+
const o = (((s = r.converter) === null || s === void 0 ? void 0 : s.toAttribute) !== void 0 ? r.converter : Ye).toAttribute(e, r.type);
|
|
3233
3233
|
this._$El = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$El = null;
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
@@ -3237,16 +3237,16 @@ let At = class extends HTMLElement {
|
|
|
3237
3237
|
var r;
|
|
3238
3238
|
const s = this.constructor, i = s._$Ev.get(t);
|
|
3239
3239
|
if (i !== void 0 && this._$El !== i) {
|
|
3240
|
-
const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
|
3240
|
+
const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? o.converter : Ye;
|
|
3241
3241
|
this._$El = i, this[i] = a.fromAttribute(e, o.type), this._$El = null;
|
|
3242
3242
|
}
|
|
3243
3243
|
}
|
|
3244
3244
|
requestUpdate(t, e, r) {
|
|
3245
3245
|
let s = !0;
|
|
3246
|
-
t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged ||
|
|
3246
|
+
t !== void 0 && (((r = r || this.constructor.getPropertyOptions(t)).hasChanged || Hr)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), r.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, r))) : s = !1), !this.isUpdatePending && s && (this._$E_ = this._$Ej());
|
|
3247
3247
|
}
|
|
3248
3248
|
_$Ej() {
|
|
3249
|
-
return
|
|
3249
|
+
return B(this, null, function* () {
|
|
3250
3250
|
this.isUpdatePending = !0;
|
|
3251
3251
|
try {
|
|
3252
3252
|
yield this._$E_;
|
|
@@ -3306,94 +3306,94 @@ let At = class extends HTMLElement {
|
|
|
3306
3306
|
firstUpdated(t) {
|
|
3307
3307
|
}
|
|
3308
3308
|
};
|
|
3309
|
-
|
|
3309
|
+
Pt[Ze] = !0, Pt.elementProperties = /* @__PURE__ */ new Map(), Pt.elementStyles = [], Pt.shadowRootOptions = { mode: "open" }, Fn == null || Fn({ ReactiveElement: Pt }), ((Ie = me.reactiveElementVersions) !== null && Ie !== void 0 ? Ie : me.reactiveElementVersions = []).push("1.6.3");
|
|
3310
3310
|
/**
|
|
3311
3311
|
* @license
|
|
3312
3312
|
* Copyright 2017 Google LLC
|
|
3313
3313
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3314
3314
|
*/
|
|
3315
|
-
var
|
|
3316
|
-
const
|
|
3317
|
-
\f\r]`,
|
|
3318
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
3319
|
-
function
|
|
3315
|
+
var Ue;
|
|
3316
|
+
const ve = window, St = ve.trustedTypes, qn = St ? St.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Qe = "$lit$", ht = `lit$${(Math.random() + "").slice(9)}$`, Ur = "?" + ht, po = `<${Ur}>`, Ot = document, zt = () => Ot.createComment(""), Wt = (n) => n === null || typeof n != "object" && typeof n != "function", Vr = Array.isArray, go = (n) => Vr(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Ve = `[
|
|
3317
|
+
\f\r]`, Dt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Jn = /-->/g, Kn = />/g, pt = RegExp(`>|${Ve}(?:([^\\s"'>=/]+)(${Ve}*=${Ve}*(?:[^
|
|
3318
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Gn = /'/g, Yn = /"/g, Br = /^(?:script|style|textarea|title)$/i, fo = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Xt = fo(1), Et = Symbol.for("lit-noChange"), j = Symbol.for("lit-nothing"), Zn = /* @__PURE__ */ new WeakMap(), bt = Ot.createTreeWalker(Ot, 129, null, !1);
|
|
3319
|
+
function zr(n, t) {
|
|
3320
3320
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
|
3321
3321
|
throw Error("invalid template strings array");
|
|
3322
|
-
return
|
|
3322
|
+
return qn !== void 0 ? qn.createHTML(t) : t;
|
|
3323
3323
|
}
|
|
3324
|
-
const
|
|
3324
|
+
const mo = (n, t) => {
|
|
3325
3325
|
const e = n.length - 1, r = [];
|
|
3326
|
-
let s, i = t === 2 ? "<svg>" : "", o =
|
|
3326
|
+
let s, i = t === 2 ? "<svg>" : "", o = Dt;
|
|
3327
3327
|
for (let a = 0; a < e; a++) {
|
|
3328
3328
|
const c = n[a];
|
|
3329
3329
|
let h, l, u = -1, d = 0;
|
|
3330
3330
|
for (; d < c.length && (o.lastIndex = d, l = o.exec(c), l !== null); )
|
|
3331
|
-
d = o.lastIndex, o ===
|
|
3332
|
-
const p = o ===
|
|
3333
|
-
i += o ===
|
|
3331
|
+
d = o.lastIndex, o === Dt ? l[1] === "!--" ? o = Jn : l[1] !== void 0 ? o = Kn : l[2] !== void 0 ? (Br.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = pt) : l[3] !== void 0 && (o = pt) : o === pt ? l[0] === ">" ? (o = s != null ? s : Dt, u = -1) : l[1] === void 0 ? u = -2 : (u = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? pt : l[3] === '"' ? Yn : Gn) : o === Yn || o === Gn ? o = pt : o === Jn || o === Kn ? o = Dt : (o = pt, s = void 0);
|
|
3332
|
+
const p = o === pt && n[a + 1].startsWith("/>") ? " " : "";
|
|
3333
|
+
i += o === Dt ? c + po : u >= 0 ? (r.push(h), c.slice(0, u) + Qe + c.slice(u) + ht + p) : c + ht + (u === -2 ? (r.push(void 0), a) : p);
|
|
3334
3334
|
}
|
|
3335
|
-
return [
|
|
3335
|
+
return [zr(n, i + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
|
|
3336
3336
|
};
|
|
3337
|
-
class
|
|
3337
|
+
class Ft {
|
|
3338
3338
|
constructor({ strings: t, _$litType$: e }, r) {
|
|
3339
3339
|
let s;
|
|
3340
3340
|
this.parts = [];
|
|
3341
3341
|
let i = 0, o = 0;
|
|
3342
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
3343
|
-
if (this.el =
|
|
3342
|
+
const a = t.length - 1, c = this.parts, [h, l] = mo(t, e);
|
|
3343
|
+
if (this.el = Ft.createElement(h, r), bt.currentNode = this.el.content, e === 2) {
|
|
3344
3344
|
const u = this.el.content, d = u.firstChild;
|
|
3345
3345
|
d.remove(), u.append(...d.childNodes);
|
|
3346
3346
|
}
|
|
3347
|
-
for (; (s =
|
|
3347
|
+
for (; (s = bt.nextNode()) !== null && c.length < a; ) {
|
|
3348
3348
|
if (s.nodeType === 1) {
|
|
3349
3349
|
if (s.hasAttributes()) {
|
|
3350
3350
|
const u = [];
|
|
3351
3351
|
for (const d of s.getAttributeNames())
|
|
3352
|
-
if (d.endsWith(
|
|
3352
|
+
if (d.endsWith(Qe) || d.startsWith(ht)) {
|
|
3353
3353
|
const p = l[o++];
|
|
3354
3354
|
if (u.push(d), p !== void 0) {
|
|
3355
|
-
const b = s.getAttribute(p.toLowerCase() +
|
|
3356
|
-
c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === "." ?
|
|
3355
|
+
const b = s.getAttribute(p.toLowerCase() + Qe).split(ht), v = /([.?@])?(.*)/.exec(p);
|
|
3356
|
+
c.push({ type: 1, index: i, name: v[2], strings: b, ctor: v[1] === "." ? yo : v[1] === "?" ? wo : v[1] === "@" ? $o : _e });
|
|
3357
3357
|
} else
|
|
3358
3358
|
c.push({ type: 6, index: i });
|
|
3359
3359
|
}
|
|
3360
3360
|
for (const d of u)
|
|
3361
3361
|
s.removeAttribute(d);
|
|
3362
3362
|
}
|
|
3363
|
-
if (
|
|
3364
|
-
const u = s.textContent.split(
|
|
3363
|
+
if (Br.test(s.tagName)) {
|
|
3364
|
+
const u = s.textContent.split(ht), d = u.length - 1;
|
|
3365
3365
|
if (d > 0) {
|
|
3366
|
-
s.textContent =
|
|
3366
|
+
s.textContent = St ? St.emptyScript : "";
|
|
3367
3367
|
for (let p = 0; p < d; p++)
|
|
3368
|
-
s.append(u[p],
|
|
3369
|
-
s.append(u[d],
|
|
3368
|
+
s.append(u[p], zt()), bt.nextNode(), c.push({ type: 2, index: ++i });
|
|
3369
|
+
s.append(u[d], zt());
|
|
3370
3370
|
}
|
|
3371
3371
|
}
|
|
3372
3372
|
} else if (s.nodeType === 8)
|
|
3373
|
-
if (s.data ===
|
|
3373
|
+
if (s.data === Ur)
|
|
3374
3374
|
c.push({ type: 2, index: i });
|
|
3375
3375
|
else {
|
|
3376
3376
|
let u = -1;
|
|
3377
|
-
for (; (u = s.data.indexOf(
|
|
3378
|
-
c.push({ type: 7, index: i }), u +=
|
|
3377
|
+
for (; (u = s.data.indexOf(ht, u + 1)) !== -1; )
|
|
3378
|
+
c.push({ type: 7, index: i }), u += ht.length - 1;
|
|
3379
3379
|
}
|
|
3380
3380
|
i++;
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
3383
3383
|
static createElement(t, e) {
|
|
3384
|
-
const r =
|
|
3384
|
+
const r = Ot.createElement("template");
|
|
3385
3385
|
return r.innerHTML = t, r;
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
|
-
function
|
|
3388
|
+
function kt(n, t, e = n, r) {
|
|
3389
3389
|
var s, i, o, a;
|
|
3390
|
-
if (t ===
|
|
3390
|
+
if (t === Et)
|
|
3391
3391
|
return t;
|
|
3392
3392
|
let c = r !== void 0 ? (s = e._$Co) === null || s === void 0 ? void 0 : s[r] : e._$Cl;
|
|
3393
|
-
const h =
|
|
3394
|
-
return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t =
|
|
3393
|
+
const h = Wt(t) ? void 0 : t._$litDirective$;
|
|
3394
|
+
return (c == null ? void 0 : c.constructor) !== h && ((i = c == null ? void 0 : c._$AO) === null || i === void 0 || i.call(c, !1), h === void 0 ? c = void 0 : (c = new h(n), c._$AT(n, e, r)), r !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[r] = c : e._$Cl = c), c !== void 0 && (t = kt(n, c._$AS(n, t.values), c, r)), t;
|
|
3395
3395
|
}
|
|
3396
|
-
class
|
|
3396
|
+
class vo {
|
|
3397
3397
|
constructor(t, e) {
|
|
3398
3398
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
3399
3399
|
}
|
|
@@ -3405,17 +3405,17 @@ class go {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
u(t) {
|
|
3407
3407
|
var e;
|
|
3408
|
-
const { el: { content: r }, parts: s } = this._$AD, i = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e :
|
|
3409
|
-
|
|
3410
|
-
let o =
|
|
3408
|
+
const { el: { content: r }, parts: s } = this._$AD, i = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : Ot).importNode(r, !0);
|
|
3409
|
+
bt.currentNode = i;
|
|
3410
|
+
let o = bt.nextNode(), a = 0, c = 0, h = s[0];
|
|
3411
3411
|
for (; h !== void 0; ) {
|
|
3412
3412
|
if (a === h.index) {
|
|
3413
3413
|
let l;
|
|
3414
|
-
h.type === 2 ? l = new
|
|
3414
|
+
h.type === 2 ? l = new Kt(o, o.nextSibling, this, t) : h.type === 1 ? l = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (l = new Oo(o, this, t)), this._$AV.push(l), h = s[++c];
|
|
3415
3415
|
}
|
|
3416
|
-
a !== (h == null ? void 0 : h.index) && (o =
|
|
3416
|
+
a !== (h == null ? void 0 : h.index) && (o = bt.nextNode(), a++);
|
|
3417
3417
|
}
|
|
3418
|
-
return
|
|
3418
|
+
return bt.currentNode = Ot, i;
|
|
3419
3419
|
}
|
|
3420
3420
|
v(t) {
|
|
3421
3421
|
let e = 0;
|
|
@@ -3423,10 +3423,10 @@ class go {
|
|
|
3423
3423
|
r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
3426
|
-
class
|
|
3426
|
+
class Kt {
|
|
3427
3427
|
constructor(t, e, r, s) {
|
|
3428
3428
|
var i;
|
|
3429
|
-
this.type = 2, this._$AH =
|
|
3429
|
+
this.type = 2, this._$AH = j, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = s, this._$Cp = (i = s == null ? void 0 : s.isConnected) === null || i === void 0 || i;
|
|
3430
3430
|
}
|
|
3431
3431
|
get _$AU() {
|
|
3432
3432
|
var t, e;
|
|
@@ -3444,7 +3444,7 @@ class Vt {
|
|
|
3444
3444
|
return this._$AB;
|
|
3445
3445
|
}
|
|
3446
3446
|
_$AI(t, e = this) {
|
|
3447
|
-
t =
|
|
3447
|
+
t = kt(this, t, e), Wt(t) ? t === j || t == null || t === "" ? (this._$AH !== j && this._$AR(), this._$AH = j) : t !== this._$AH && t !== Et && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : go(t) ? this.T(t) : this._(t);
|
|
3448
3448
|
}
|
|
3449
3449
|
k(t) {
|
|
3450
3450
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -3453,28 +3453,28 @@ class Vt {
|
|
|
3453
3453
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
|
3454
3454
|
}
|
|
3455
3455
|
_(t) {
|
|
3456
|
-
this._$AH !==
|
|
3456
|
+
this._$AH !== j && Wt(this._$AH) ? this._$AA.nextSibling.data = t : this.$(Ot.createTextNode(t)), this._$AH = t;
|
|
3457
3457
|
}
|
|
3458
3458
|
g(t) {
|
|
3459
3459
|
var e;
|
|
3460
|
-
const { values: r, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
|
3460
|
+
const { values: r, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Ft.createElement(zr(s.h, s.h[0]), this.options)), s);
|
|
3461
3461
|
if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === i)
|
|
3462
3462
|
this._$AH.v(r);
|
|
3463
3463
|
else {
|
|
3464
|
-
const o = new
|
|
3464
|
+
const o = new vo(i, this), a = o.u(this.options);
|
|
3465
3465
|
o.v(r), this.$(a), this._$AH = o;
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
3468
3468
|
_$AC(t) {
|
|
3469
|
-
let e =
|
|
3470
|
-
return e === void 0 &&
|
|
3469
|
+
let e = Zn.get(t.strings);
|
|
3470
|
+
return e === void 0 && Zn.set(t.strings, e = new Ft(t)), e;
|
|
3471
3471
|
}
|
|
3472
3472
|
T(t) {
|
|
3473
|
-
|
|
3473
|
+
Vr(this._$AH) || (this._$AH = [], this._$AR());
|
|
3474
3474
|
const e = this._$AH;
|
|
3475
3475
|
let r, s = 0;
|
|
3476
3476
|
for (const i of t)
|
|
3477
|
-
s === e.length ? e.push(r = new
|
|
3477
|
+
s === e.length ? e.push(r = new Kt(this.k(zt()), this.k(zt()), this, this.options)) : r = e[s], r._$AI(i), s++;
|
|
3478
3478
|
s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
|
|
3479
3479
|
}
|
|
3480
3480
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -3489,9 +3489,9 @@ class Vt {
|
|
|
3489
3489
|
this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
class
|
|
3492
|
+
class _e {
|
|
3493
3493
|
constructor(t, e, r, s, i) {
|
|
3494
|
-
this.type = 1, this._$AH =
|
|
3494
|
+
this.type = 1, this._$AH = j, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = i, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = j;
|
|
3495
3495
|
}
|
|
3496
3496
|
get tagName() {
|
|
3497
3497
|
return this.element.tagName;
|
|
@@ -3503,45 +3503,45 @@ class we {
|
|
|
3503
3503
|
const i = this.strings;
|
|
3504
3504
|
let o = !1;
|
|
3505
3505
|
if (i === void 0)
|
|
3506
|
-
t =
|
|
3506
|
+
t = kt(this, t, e, 0), o = !Wt(t) || t !== this._$AH && t !== Et, o && (this._$AH = t);
|
|
3507
3507
|
else {
|
|
3508
3508
|
const a = t;
|
|
3509
3509
|
let c, h;
|
|
3510
3510
|
for (t = i[0], c = 0; c < i.length - 1; c++)
|
|
3511
|
-
h =
|
|
3511
|
+
h = kt(this, a[r + c], e, c), h === Et && (h = this._$AH[c]), o || (o = !Wt(h) || h !== this._$AH[c]), h === j ? t = j : t !== j && (t += (h != null ? h : "") + i[c + 1]), this._$AH[c] = h;
|
|
3512
3512
|
}
|
|
3513
3513
|
o && !s && this.j(t);
|
|
3514
3514
|
}
|
|
3515
3515
|
j(t) {
|
|
3516
|
-
t ===
|
|
3516
|
+
t === j ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
|
|
3517
3517
|
}
|
|
3518
3518
|
}
|
|
3519
|
-
class
|
|
3519
|
+
class yo extends _e {
|
|
3520
3520
|
constructor() {
|
|
3521
3521
|
super(...arguments), this.type = 3;
|
|
3522
3522
|
}
|
|
3523
3523
|
j(t) {
|
|
3524
|
-
this.element[this.name] = t ===
|
|
3524
|
+
this.element[this.name] = t === j ? void 0 : t;
|
|
3525
3525
|
}
|
|
3526
3526
|
}
|
|
3527
|
-
const
|
|
3528
|
-
class
|
|
3527
|
+
const bo = St ? St.emptyScript : "";
|
|
3528
|
+
class wo extends _e {
|
|
3529
3529
|
constructor() {
|
|
3530
3530
|
super(...arguments), this.type = 4;
|
|
3531
3531
|
}
|
|
3532
3532
|
j(t) {
|
|
3533
|
-
t && t !==
|
|
3533
|
+
t && t !== j ? this.element.setAttribute(this.name, bo) : this.element.removeAttribute(this.name);
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
3536
|
-
class
|
|
3536
|
+
class $o extends _e {
|
|
3537
3537
|
constructor(t, e, r, s, i) {
|
|
3538
3538
|
super(t, e, r, s, i), this.type = 5;
|
|
3539
3539
|
}
|
|
3540
3540
|
_$AI(t, e = this) {
|
|
3541
3541
|
var r;
|
|
3542
|
-
if ((t = (r =
|
|
3542
|
+
if ((t = (r = kt(this, t, e, 0)) !== null && r !== void 0 ? r : j) === Et)
|
|
3543
3543
|
return;
|
|
3544
|
-
const s = this._$AH, i = t ===
|
|
3544
|
+
const s = this._$AH, i = t === j && s !== j || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== j && (s === j || i);
|
|
3545
3545
|
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
3546
3546
|
}
|
|
3547
3547
|
handleEvent(t) {
|
|
@@ -3549,7 +3549,7 @@ class yo extends we {
|
|
|
3549
3549
|
typeof this._$AH == "function" ? this._$AH.call((r = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && r !== void 0 ? r : this.element, t) : this._$AH.handleEvent(t);
|
|
3550
3550
|
}
|
|
3551
3551
|
}
|
|
3552
|
-
class
|
|
3552
|
+
class Oo {
|
|
3553
3553
|
constructor(t, e, r) {
|
|
3554
3554
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
3555
3555
|
}
|
|
@@ -3557,18 +3557,18 @@ class bo {
|
|
|
3557
3557
|
return this._$AM._$AU;
|
|
3558
3558
|
}
|
|
3559
3559
|
_$AI(t) {
|
|
3560
|
-
|
|
3560
|
+
kt(this, t);
|
|
3561
3561
|
}
|
|
3562
3562
|
}
|
|
3563
|
-
const
|
|
3564
|
-
|
|
3565
|
-
const
|
|
3563
|
+
const Qn = ve.litHtmlPolyfillSupport;
|
|
3564
|
+
Qn == null || Qn(Ft, Kt), ((Ue = ve.litHtmlVersions) !== null && Ue !== void 0 ? Ue : ve.litHtmlVersions = []).push("2.8.0");
|
|
3565
|
+
const Eo = (n, t, e) => {
|
|
3566
3566
|
var r, s;
|
|
3567
3567
|
const i = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : t;
|
|
3568
3568
|
let o = i._$litPart$;
|
|
3569
3569
|
if (o === void 0) {
|
|
3570
3570
|
const a = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : null;
|
|
3571
|
-
i._$litPart$ = o = new
|
|
3571
|
+
i._$litPart$ = o = new Kt(t.insertBefore(zt(), a), a, void 0, e != null ? e : {});
|
|
3572
3572
|
}
|
|
3573
3573
|
return o._$AI(n), o;
|
|
3574
3574
|
};
|
|
@@ -3577,8 +3577,8 @@ const wo = (n, t, e) => {
|
|
|
3577
3577
|
* Copyright 2017 Google LLC
|
|
3578
3578
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3579
3579
|
*/
|
|
3580
|
-
var
|
|
3581
|
-
let
|
|
3580
|
+
var Be, ze;
|
|
3581
|
+
let Vt = class extends Pt {
|
|
3582
3582
|
constructor() {
|
|
3583
3583
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
3584
3584
|
}
|
|
@@ -3589,7 +3589,7 @@ let jt = class extends At {
|
|
|
3589
3589
|
}
|
|
3590
3590
|
update(t) {
|
|
3591
3591
|
const e = this.render();
|
|
3592
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
3592
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Eo(e, this.renderRoot, this.renderOptions);
|
|
3593
3593
|
}
|
|
3594
3594
|
connectedCallback() {
|
|
3595
3595
|
var t;
|
|
@@ -3600,52 +3600,70 @@ let jt = class extends At {
|
|
|
3600
3600
|
super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
|
|
3601
3601
|
}
|
|
3602
3602
|
render() {
|
|
3603
|
-
return
|
|
3603
|
+
return Et;
|
|
3604
3604
|
}
|
|
3605
3605
|
};
|
|
3606
|
-
|
|
3607
|
-
const
|
|
3608
|
-
|
|
3609
|
-
((
|
|
3606
|
+
Vt.finalized = !0, Vt._$litElement$ = !0, (Be = globalThis.litElementHydrateSupport) === null || Be === void 0 || Be.call(globalThis, { LitElement: Vt });
|
|
3607
|
+
const Xn = globalThis.litElementPolyfillSupport;
|
|
3608
|
+
Xn == null || Xn({ LitElement: Vt });
|
|
3609
|
+
((ze = globalThis.litElementVersions) !== null && ze !== void 0 ? ze : globalThis.litElementVersions = []).push("3.3.3");
|
|
3610
3610
|
/**
|
|
3611
3611
|
* @license
|
|
3612
3612
|
* Copyright 2017 Google LLC
|
|
3613
3613
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3614
3614
|
*/
|
|
3615
|
-
const
|
|
3615
|
+
const xo = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? Mt(tt({}, t), { finisher(e) {
|
|
3616
3616
|
e.createProperty(t.key, n);
|
|
3617
3617
|
} }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
|
|
3618
3618
|
typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
|
|
3619
3619
|
}, finisher(e) {
|
|
3620
3620
|
e.createProperty(t.key, n);
|
|
3621
|
-
} },
|
|
3621
|
+
} }, _o = (n, t, e) => {
|
|
3622
3622
|
t.constructor.createProperty(e, n);
|
|
3623
3623
|
};
|
|
3624
|
-
function
|
|
3625
|
-
return (t, e) => e !== void 0 ?
|
|
3624
|
+
function ye(n) {
|
|
3625
|
+
return (t, e) => e !== void 0 ? _o(n, t, e) : xo(n, t);
|
|
3626
3626
|
}
|
|
3627
3627
|
/**
|
|
3628
3628
|
* @license
|
|
3629
3629
|
* Copyright 2017 Google LLC
|
|
3630
3630
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3631
3631
|
*/
|
|
3632
|
-
function
|
|
3633
|
-
return
|
|
3632
|
+
function lt(n) {
|
|
3633
|
+
return ye(Mt(tt({}, n), { state: !0 }));
|
|
3634
3634
|
}
|
|
3635
|
+
/**
|
|
3636
|
+
* @license
|
|
3637
|
+
* Copyright 2017 Google LLC
|
|
3638
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3639
|
+
*/
|
|
3640
|
+
const Ao = ({ finisher: n, descriptor: t }) => (e, r) => {
|
|
3641
|
+
var s;
|
|
3642
|
+
if (r === void 0) {
|
|
3643
|
+
const i = (s = e.originalKey) !== null && s !== void 0 ? s : e.key, o = t != null ? { kind: "method", placement: "prototype", key: i, descriptor: t(e.key) } : Mt(tt({}, e), { key: i });
|
|
3644
|
+
return n != null && (o.finisher = function(a) {
|
|
3645
|
+
n(a, i);
|
|
3646
|
+
}), o;
|
|
3647
|
+
}
|
|
3648
|
+
{
|
|
3649
|
+
const i = e.constructor;
|
|
3650
|
+
t !== void 0 && Object.defineProperty(e, r, t(r)), n == null || n(i, r);
|
|
3651
|
+
}
|
|
3652
|
+
};
|
|
3635
3653
|
/**
|
|
3636
3654
|
* @license
|
|
3637
3655
|
* Copyright 2021 Google LLC
|
|
3638
3656
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3639
3657
|
*/
|
|
3640
|
-
var
|
|
3641
|
-
((
|
|
3658
|
+
var We;
|
|
3659
|
+
((We = window.HTMLSlotElement) === null || We === void 0 ? void 0 : We.prototype.assignedElements) != null;
|
|
3642
3660
|
/**
|
|
3643
3661
|
* @license
|
|
3644
3662
|
* Copyright 2017 Google LLC
|
|
3645
3663
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3646
3664
|
*/
|
|
3647
|
-
const
|
|
3648
|
-
class
|
|
3665
|
+
const Po = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Co = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
3666
|
+
let So = class {
|
|
3649
3667
|
constructor(t) {
|
|
3650
3668
|
}
|
|
3651
3669
|
get _$AU() {
|
|
@@ -3660,16 +3678,16 @@ class xo {
|
|
|
3660
3678
|
update(t, e) {
|
|
3661
3679
|
return this.render(...e);
|
|
3662
3680
|
}
|
|
3663
|
-
}
|
|
3681
|
+
};
|
|
3664
3682
|
/**
|
|
3665
3683
|
* @license
|
|
3666
3684
|
* Copyright 2018 Google LLC
|
|
3667
3685
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3668
3686
|
*/
|
|
3669
|
-
const
|
|
3687
|
+
const ko = Co(class extends So {
|
|
3670
3688
|
constructor(n) {
|
|
3671
3689
|
var t;
|
|
3672
|
-
if (super(n), n.type !==
|
|
3690
|
+
if (super(n), n.type !== Po.ATTRIBUTE || n.name !== "class" || ((t = n.strings) === null || t === void 0 ? void 0 : t.length) > 2)
|
|
3673
3691
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
3674
3692
|
}
|
|
3675
3693
|
render(n) {
|
|
@@ -3691,29 +3709,29 @@ const _o = Ao(class extends xo {
|
|
|
3691
3709
|
const o = !!t[i];
|
|
3692
3710
|
o === this.it.has(i) || !((r = this.nt) === null || r === void 0) && r.has(i) || (o ? (s.add(i), this.it.add(i)) : (s.remove(i), this.it.delete(i)));
|
|
3693
3711
|
}
|
|
3694
|
-
return
|
|
3712
|
+
return Et;
|
|
3695
3713
|
}
|
|
3696
3714
|
});
|
|
3697
|
-
var
|
|
3698
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
3715
|
+
var No = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ae = (n, t, e, r) => {
|
|
3716
|
+
for (var s = r > 1 ? void 0 : r ? Lo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
|
3699
3717
|
(o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);
|
|
3700
|
-
return r && s &&
|
|
3718
|
+
return r && s && No(t, e, s), s;
|
|
3701
3719
|
};
|
|
3702
|
-
class
|
|
3720
|
+
class dt extends Vt {
|
|
3703
3721
|
constructor() {
|
|
3704
3722
|
super(...arguments), this.active = !1, this.loaded = !1;
|
|
3705
3723
|
}
|
|
3706
3724
|
connectedCallback() {
|
|
3707
|
-
return
|
|
3708
|
-
|
|
3725
|
+
return B(this, null, function* () {
|
|
3726
|
+
pn(dt.prototype, this, "connectedCallback").call(this), this.icon = yield this._renderSymbol(this.symbol), this.loaded = !0;
|
|
3709
3727
|
});
|
|
3710
3728
|
}
|
|
3711
3729
|
_toggleActive() {
|
|
3712
3730
|
this.active = !this.active;
|
|
3713
3731
|
}
|
|
3714
3732
|
_renderSymbol(t) {
|
|
3715
|
-
return
|
|
3716
|
-
const e = (r) =>
|
|
3733
|
+
return B(this, null, function* () {
|
|
3734
|
+
const e = (r) => B(this, null, function* () {
|
|
3717
3735
|
return yield import("./index-9688347a.js").then((i) => i[r]);
|
|
3718
3736
|
});
|
|
3719
3737
|
if (t) {
|
|
@@ -3721,28 +3739,28 @@ class lt extends jt {
|
|
|
3721
3739
|
switch (r) {
|
|
3722
3740
|
case "Telia": {
|
|
3723
3741
|
const i = yield e(s);
|
|
3724
|
-
return i ?
|
|
3742
|
+
return i ? Xt`<telia-icon
|
|
3725
3743
|
class="trigger-icon"
|
|
3726
3744
|
svg=${i.svg}
|
|
3727
3745
|
size="lg"
|
|
3728
|
-
></telia-icon>` :
|
|
3746
|
+
></telia-icon>` : j;
|
|
3729
3747
|
}
|
|
3730
3748
|
case "FontAwesome":
|
|
3731
|
-
return
|
|
3749
|
+
return Xt`<i class="trigger-fa-icon fa fa-${s}"></i>`;
|
|
3732
3750
|
case "Uri":
|
|
3733
|
-
return
|
|
3751
|
+
return Xt`<i
|
|
3734
3752
|
class="trigger-custom-icon"
|
|
3735
3753
|
style="background: url(${s}) no-repeat center center;background-size: contain;"
|
|
3736
3754
|
></i>`;
|
|
3737
3755
|
default:
|
|
3738
|
-
return
|
|
3756
|
+
return j;
|
|
3739
3757
|
}
|
|
3740
3758
|
}
|
|
3741
3759
|
});
|
|
3742
3760
|
}
|
|
3743
3761
|
render() {
|
|
3744
|
-
return
|
|
3745
|
-
class=${
|
|
3762
|
+
return Xt`<button
|
|
3763
|
+
class=${ko({
|
|
3746
3764
|
trigger: !0,
|
|
3747
3765
|
active: this.active,
|
|
3748
3766
|
rendered: this.loaded
|
|
@@ -3780,8 +3798,8 @@ class lt extends jt {
|
|
|
3780
3798
|
</button>`;
|
|
3781
3799
|
}
|
|
3782
3800
|
}
|
|
3783
|
-
|
|
3784
|
-
|
|
3801
|
+
dt.styles = [
|
|
3802
|
+
Ir`
|
|
3785
3803
|
:host {
|
|
3786
3804
|
--voca-rem-multiplier: 0.625;
|
|
3787
3805
|
display: block;
|
|
@@ -3853,25 +3871,25 @@ lt.styles = [
|
|
|
3853
3871
|
}
|
|
3854
3872
|
`
|
|
3855
3873
|
];
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
],
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
],
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
],
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
],
|
|
3868
|
-
var
|
|
3869
|
-
const
|
|
3874
|
+
Ae([
|
|
3875
|
+
ye({ attribute: !1 })
|
|
3876
|
+
], dt.prototype, "symbol", 2);
|
|
3877
|
+
Ae([
|
|
3878
|
+
lt()
|
|
3879
|
+
], dt.prototype, "active", 2);
|
|
3880
|
+
Ae([
|
|
3881
|
+
lt()
|
|
3882
|
+
], dt.prototype, "loaded", 2);
|
|
3883
|
+
Ae([
|
|
3884
|
+
lt()
|
|
3885
|
+
], dt.prototype, "icon", 2);
|
|
3886
|
+
var wt = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Link = "link", n.Badge = "badge", n.Unsupported = "unsupported", n))(wt || {});
|
|
3887
|
+
const Mo = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "none", Wr = (n) => n ? typeof n == "boolean" && n ? "link" : typeof n == "object" && !Array.isArray(n) ? "badge" : "unsupported" : "inline", Do = (n, t, e, r, s = !1) => B(void 0, null, function* () {
|
|
3870
3888
|
var h, l;
|
|
3871
|
-
const i =
|
|
3889
|
+
const i = Mo(
|
|
3872
3890
|
t,
|
|
3873
3891
|
e
|
|
3874
|
-
), o =
|
|
3892
|
+
), o = Wr(r), a = {
|
|
3875
3893
|
widgetDOMElement: t ? t.cloneNode(!0) : void 0,
|
|
3876
3894
|
triggerDOMElement: e ? e.cloneNode(!0) : void 0
|
|
3877
3895
|
}, c = {
|
|
@@ -3912,7 +3930,7 @@ const Co = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "non
|
|
|
3912
3930
|
document.createElement("div")
|
|
3913
3931
|
);
|
|
3914
3932
|
if (c.widgetDOMElement = u, o !== "inline") {
|
|
3915
|
-
customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger",
|
|
3933
|
+
customElements.get("ace-widget-trigger") || customElements.define("ace-widget-trigger", dt);
|
|
3916
3934
|
const d = document.createElement("ace-widget-trigger");
|
|
3917
3935
|
d.symbol = r.symbol, document.body.appendChild(d), console.log("Created trigger"), c.triggerDOMElement = d;
|
|
3918
3936
|
}
|
|
@@ -3920,8 +3938,8 @@ const Co = (n, t) => n && t ? "both" : n ? "widgetDOM" : t ? "triggerDOM" : "non
|
|
|
3920
3938
|
}
|
|
3921
3939
|
}
|
|
3922
3940
|
return c;
|
|
3923
|
-
}),
|
|
3924
|
-
class
|
|
3941
|
+
}), jo = "modals";
|
|
3942
|
+
class Ro {
|
|
3925
3943
|
constructor(t, e) {
|
|
3926
3944
|
this.options = e, this.unsubscribe = [], this.container = t.createChild(this), this.container.register("widgetDOMElement", this.options.widgetDOMElement), this.container.register(
|
|
3927
3945
|
"triggerDOMElement",
|
|
@@ -3940,17 +3958,17 @@ class Mo {
|
|
|
3940
3958
|
*/
|
|
3941
3959
|
render() {
|
|
3942
3960
|
const { widgetDOMElement: t, triggerDOMElement: e } = this.options, r = this.container.get("$widget");
|
|
3943
|
-
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType ===
|
|
3944
|
-
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType ===
|
|
3961
|
+
return t.getAttribute("data-rendered") === "true" ? Promise.resolve() : (e && this.options.triggerType === wt.Badge && co(e), import("./render-2f9819b1.js").then((s) => s.default(this.container, t)).then(() => {
|
|
3962
|
+
if (t.setAttribute("data-rendered", "true"), e && this.options.triggerType === wt.Badge) {
|
|
3945
3963
|
const i = this.options.triggerOptions.openTooltip;
|
|
3946
|
-
|
|
3964
|
+
Rr(e, i);
|
|
3947
3965
|
}
|
|
3948
|
-
|
|
3966
|
+
us(this.container, t);
|
|
3949
3967
|
const s = this.container.get("$environment").widgets.all();
|
|
3950
|
-
|
|
3968
|
+
Z(
|
|
3951
3969
|
this.container,
|
|
3952
|
-
|
|
3953
|
-
|
|
3970
|
+
jo,
|
|
3971
|
+
P.Session
|
|
3954
3972
|
).then((i) => {
|
|
3955
3973
|
i && i.forEach((o) => {
|
|
3956
3974
|
s.find(
|
|
@@ -3967,7 +3985,7 @@ class Mo {
|
|
|
3967
3985
|
e.getAttribute("role") || e.setAttribute("role", "button");
|
|
3968
3986
|
const { name: r } = this.container.get("$widget"), { label: s, symbol: i, ariaLabel: o, closedTooltip: a, openTooltip: c } = t, h = { closedTooltip: a, openTooltip: c };
|
|
3969
3987
|
this.options.triggerOptions = h;
|
|
3970
|
-
const l =
|
|
3988
|
+
const l = oo(e, {
|
|
3971
3989
|
label: s,
|
|
3972
3990
|
symbol: i,
|
|
3973
3991
|
ariaLabel: o,
|
|
@@ -3977,7 +3995,7 @@ class Mo {
|
|
|
3977
3995
|
this.unsubscribe.push(l);
|
|
3978
3996
|
}
|
|
3979
3997
|
dispose() {
|
|
3980
|
-
return
|
|
3998
|
+
return B(this, null, function* () {
|
|
3981
3999
|
var r, s, i, o;
|
|
3982
4000
|
const { triggerDOMElement: t, widgetDOMElement: e } = this.options;
|
|
3983
4001
|
this.options.cachedOriginals.widgetDOMElement && e && ((r = e.parentNode) == null || r.replaceChild(
|
|
@@ -3992,45 +4010,45 @@ class Mo {
|
|
|
3992
4010
|
});
|
|
3993
4011
|
}
|
|
3994
4012
|
}
|
|
3995
|
-
const
|
|
4013
|
+
const te = "changesets", To = (n) => {
|
|
3996
4014
|
const t = { tags: n.tags };
|
|
3997
4015
|
return n.context && typeof n.context != "function" && (t.context = n.context), n.properties && typeof n.properties != "function" && (t.properties = n.properties), n.layout && typeof n.layout != "function" && (t.layout = n.layout), t;
|
|
3998
4016
|
};
|
|
3999
|
-
class
|
|
4017
|
+
class hn {
|
|
4000
4018
|
constructor(t, e) {
|
|
4001
4019
|
this.container = t, this.storageWriter = e;
|
|
4002
4020
|
}
|
|
4003
4021
|
static create(t) {
|
|
4004
|
-
return
|
|
4022
|
+
return rt(
|
|
4005
4023
|
t,
|
|
4006
|
-
|
|
4007
|
-
|
|
4024
|
+
te,
|
|
4025
|
+
C.Necessary,
|
|
4008
4026
|
{
|
|
4009
|
-
medium:
|
|
4027
|
+
medium: P.Local
|
|
4010
4028
|
}
|
|
4011
4029
|
).then(
|
|
4012
|
-
(e) => new
|
|
4030
|
+
(e) => new hn(t, e)
|
|
4013
4031
|
);
|
|
4014
4032
|
}
|
|
4015
4033
|
write(t, e, r, s) {
|
|
4016
|
-
return
|
|
4034
|
+
return X(this)(() => Z(
|
|
4017
4035
|
this.container,
|
|
4018
|
-
|
|
4019
|
-
|
|
4036
|
+
te,
|
|
4037
|
+
P.Local
|
|
4020
4038
|
).then((i = {}) => {
|
|
4021
4039
|
const { keys: o = [], items: a = {} } = i, c = o.indexOf(t);
|
|
4022
4040
|
return c > -1 && o.splice(c, 1), o.push(t), a[t] = {
|
|
4023
4041
|
options: s,
|
|
4024
|
-
attributes:
|
|
4042
|
+
attributes: To(r),
|
|
4025
4043
|
rules: e.rules
|
|
4026
4044
|
}, this.storageWriter({ keys: o, items: a });
|
|
4027
4045
|
}));
|
|
4028
4046
|
}
|
|
4029
4047
|
remove(t) {
|
|
4030
|
-
return
|
|
4048
|
+
return X(this)(() => Z(
|
|
4031
4049
|
this.container,
|
|
4032
|
-
|
|
4033
|
-
|
|
4050
|
+
te,
|
|
4051
|
+
P.Local
|
|
4034
4052
|
).then((e = {}) => {
|
|
4035
4053
|
const { keys: r = [], items: s = {} } = e, i = r.indexOf(t);
|
|
4036
4054
|
if (i > -1)
|
|
@@ -4038,10 +4056,10 @@ class rn {
|
|
|
4038
4056
|
}));
|
|
4039
4057
|
}
|
|
4040
4058
|
load(t) {
|
|
4041
|
-
return
|
|
4059
|
+
return X(this)(() => Z(
|
|
4042
4060
|
this.container,
|
|
4043
|
-
|
|
4044
|
-
|
|
4061
|
+
te,
|
|
4062
|
+
P.Local
|
|
4045
4063
|
).then((e = {}) => {
|
|
4046
4064
|
const { keys: r = [], items: s = {} } = e;
|
|
4047
4065
|
r.forEach((i) => {
|
|
@@ -4051,27 +4069,27 @@ class rn {
|
|
|
4051
4069
|
t.write({
|
|
4052
4070
|
attributes: c,
|
|
4053
4071
|
options: h,
|
|
4054
|
-
target: new
|
|
4072
|
+
target: new Nt(t, a)
|
|
4055
4073
|
});
|
|
4056
4074
|
}
|
|
4057
4075
|
});
|
|
4058
4076
|
}));
|
|
4059
4077
|
}
|
|
4060
4078
|
}
|
|
4061
|
-
const
|
|
4079
|
+
const Io = (n) => {
|
|
4062
4080
|
const { container: t } = n;
|
|
4063
|
-
return
|
|
4081
|
+
return hn.create(t).then(
|
|
4064
4082
|
(e) => {
|
|
4065
|
-
const r = t.get("$settings"), s = { localStorage: e }, i = new
|
|
4083
|
+
const r = t.get("$settings"), s = { localStorage: e }, i = new Jt(n, s), o = ar(i, r);
|
|
4066
4084
|
return n.events.subscribe(
|
|
4067
4085
|
"widget:state-change",
|
|
4068
4086
|
(a, c) => {
|
|
4069
|
-
c.state ===
|
|
4087
|
+
c.state === nr.Deactivating && o();
|
|
4070
4088
|
}
|
|
4071
4089
|
), i;
|
|
4072
4090
|
}
|
|
4073
4091
|
);
|
|
4074
|
-
},
|
|
4092
|
+
}, Ho = (n) => Promise.resolve().then(() => Xi).then(
|
|
4075
4093
|
({ RoutingService: t, HistoryMode: e }) => n.get("settings").then((r) => {
|
|
4076
4094
|
const {
|
|
4077
4095
|
routing: {
|
|
@@ -4091,8 +4109,8 @@ const Do = (n) => {
|
|
|
4091
4109
|
basePath: o
|
|
4092
4110
|
});
|
|
4093
4111
|
})
|
|
4094
|
-
),
|
|
4095
|
-
class
|
|
4112
|
+
), Uo = (n) => Promise.resolve().then(() => ui).then(({ StorageProvider: t }) => new t()), Vo = (n) => Promise.resolve().then(() => en).then(({ ActionResolver: t }) => new t(n)), Bo = (n) => Promise.resolve().then(() => en).then(({ ComponentResolver: t }) => new t(n)), zo = (n) => Promise.resolve().then(() => en).then(() => Io(n.get("$widget"))), Fe = "$settings", ee = "open", tr = "activeStickyWidget";
|
|
4113
|
+
class Ca extends ns {
|
|
4096
4114
|
constructor(t) {
|
|
4097
4115
|
super(t), this.outlets = /* @__PURE__ */ new Map(), this.activated = void 0, this.subs = [], this.handleBootstrapping = (e) => {
|
|
4098
4116
|
const r = {
|
|
@@ -4108,23 +4126,23 @@ class la extends Zr {
|
|
|
4108
4126
|
});
|
|
4109
4127
|
}, this.container.registerAsync(
|
|
4110
4128
|
"storage",
|
|
4111
|
-
() =>
|
|
4112
|
-
), this.container.registerFactory("settings", () =>
|
|
4129
|
+
() => Uo(this.container)
|
|
4130
|
+
), this.container.registerFactory("settings", () => Z(
|
|
4113
4131
|
this.container,
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
).then((e = {}) =>
|
|
4132
|
+
Fe,
|
|
4133
|
+
P.Local
|
|
4134
|
+
).then((e = {}) => tt(tt({}, this.container.get("$settings")), e))), so(this, "load", this.handleBootstrapping), this.container.registerAsync(
|
|
4117
4135
|
"componentResolver",
|
|
4118
|
-
() =>
|
|
4136
|
+
() => Bo(this.container)
|
|
4119
4137
|
), this.container.registerAsync(
|
|
4120
4138
|
"router",
|
|
4121
|
-
() =>
|
|
4139
|
+
() => Ho(this.container)
|
|
4122
4140
|
), this.container.registerAsync(
|
|
4123
4141
|
"actionResolver",
|
|
4124
|
-
() =>
|
|
4142
|
+
() => Vo(this.container)
|
|
4125
4143
|
), this.container.register("matchMedia", window.matchMedia), this.container.registerAsync(
|
|
4126
4144
|
"components",
|
|
4127
|
-
() =>
|
|
4145
|
+
() => zo(this.container)
|
|
4128
4146
|
);
|
|
4129
4147
|
}
|
|
4130
4148
|
initialize() {
|
|
@@ -4153,10 +4171,10 @@ class la extends Zr {
|
|
|
4153
4171
|
"router:change",
|
|
4154
4172
|
(l, { previous: u = { routeData: {} }, next: d = { routeData: {} } }) => {
|
|
4155
4173
|
const { routeData: p } = u, { routeData: b } = d, v = Object.keys(o.views).reduce(
|
|
4156
|
-
(g,
|
|
4174
|
+
(g, E) => typeof o.views[E].path == "undefined" ? E : g,
|
|
4157
4175
|
""
|
|
4158
4176
|
);
|
|
4159
|
-
!b.name && v ? a(v) : a(b.name),
|
|
4177
|
+
!b.name && v ? a(v) : a(b.name), $t(p && p.params), $t(b && b.params), this.container.getAsync("actionResolver").then((g) => {
|
|
4160
4178
|
g.action(this.widget.name, "routeChange", {
|
|
4161
4179
|
next: b,
|
|
4162
4180
|
previous: p
|
|
@@ -4168,14 +4186,14 @@ class la extends Zr {
|
|
|
4168
4186
|
);
|
|
4169
4187
|
}
|
|
4170
4188
|
attach(t = {}) {
|
|
4171
|
-
return this.container.get("settings").then((r) =>
|
|
4189
|
+
return this.container.get("settings").then((r) => B(this, [r], function* ({ trigger: e }) {
|
|
4172
4190
|
var p, b;
|
|
4173
4191
|
const {
|
|
4174
4192
|
widgetDOMElement: s,
|
|
4175
|
-
key: i =
|
|
4193
|
+
key: i = qt(),
|
|
4176
4194
|
triggerDOMElement: o,
|
|
4177
4195
|
withRenderState: a
|
|
4178
|
-
} = t, h =
|
|
4196
|
+
} = t, h = Wr(e) === wt.Inline && ((o == null ? void 0 : o.childElementCount) || 0) > 0, l = yield Do(
|
|
4179
4197
|
this.widget.name,
|
|
4180
4198
|
s,
|
|
4181
4199
|
o,
|
|
@@ -4184,32 +4202,32 @@ class la extends Zr {
|
|
|
4184
4202
|
);
|
|
4185
4203
|
this.outlets.size < 1 && !a && this.setRenderState("unset");
|
|
4186
4204
|
const u = () => {
|
|
4187
|
-
const v = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"),
|
|
4205
|
+
const v = () => g.querySelectorAll("[data-loading=true]").length === 0, [g] = this.widget.container.get("widgetDOMElements"), E = (H, k) => {
|
|
4188
4206
|
v() && (l.callback && l.callback(), k.disconnect());
|
|
4189
|
-
},
|
|
4207
|
+
}, R = {
|
|
4190
4208
|
attributes: !0,
|
|
4191
4209
|
subtree: !0,
|
|
4192
4210
|
childList: !0
|
|
4193
4211
|
};
|
|
4194
|
-
v() && l.callback && l.callback(), new MutationObserver(
|
|
4212
|
+
v() && l.callback && l.callback(), new MutationObserver(E).observe(g, R);
|
|
4195
4213
|
};
|
|
4196
4214
|
h && this.widget.container.getAsync("dataClient").then(({ events: v }) => {
|
|
4197
4215
|
v.subscribe(
|
|
4198
4216
|
"data-client:fetched",
|
|
4199
|
-
(g,
|
|
4200
|
-
|
|
4217
|
+
(g, E) => {
|
|
4218
|
+
E.unresolvedQueries === 0 && u();
|
|
4201
4219
|
}
|
|
4202
4220
|
);
|
|
4203
4221
|
});
|
|
4204
4222
|
const d = this.getOrCreateViewOutlet(i, l);
|
|
4205
|
-
if (this.outlets.set(i, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), l.triggerType ===
|
|
4223
|
+
if (this.outlets.set(i, d), this.widget.events.dispatch("widget:attached", {}, { bubbles: !0 }), l.triggerType === wt.Badge && e && ((p = l.triggerDOMElement) == null || p.setAttribute(
|
|
4206
4224
|
"aria-expanded",
|
|
4207
4225
|
"false"
|
|
4208
|
-
), d == null || d.renderBadge(e)), l.triggerType !==
|
|
4226
|
+
), d == null || d.renderBadge(e)), l.triggerType !== wt.Inline && ((b = l.triggerDOMElement) == null || b.addEventListener(
|
|
4209
4227
|
"click",
|
|
4210
4228
|
(v) => {
|
|
4211
4229
|
v.preventDefault(), this.container.get("settings").then(({ trigger: g }) => {
|
|
4212
|
-
d.render().then(() => this.renderState()).then((
|
|
4230
|
+
d.render().then(() => this.renderState()).then((E) => g && g.action && g.action === "hide" ? E === J.open ? this.hide() : this.open() : E === J.open ? this.close() : this.open());
|
|
4213
4231
|
});
|
|
4214
4232
|
}
|
|
4215
4233
|
)), this.outlets.size > 1)
|
|
@@ -4218,7 +4236,7 @@ class la extends Zr {
|
|
|
4218
4236
|
});
|
|
4219
4237
|
if (a)
|
|
4220
4238
|
return a === "storage" ? this.renderState().then((v) => {
|
|
4221
|
-
if (l.triggerType ===
|
|
4239
|
+
if (l.triggerType === wt.Inline) {
|
|
4222
4240
|
this.triggerStateIfApplicable("open");
|
|
4223
4241
|
return;
|
|
4224
4242
|
}
|
|
@@ -4258,13 +4276,13 @@ class la extends Zr {
|
|
|
4258
4276
|
});
|
|
4259
4277
|
}
|
|
4260
4278
|
getOrCreateViewOutlet(t, e) {
|
|
4261
|
-
return this.outlets.has(t) ? this.outlets.get(t) : new
|
|
4279
|
+
return this.outlets.has(t) ? this.outlets.get(t) : new Ro(this.container, e);
|
|
4262
4280
|
}
|
|
4263
4281
|
render(t = {}) {
|
|
4264
4282
|
if (process.env.NODE_ENV !== "production" && console.warn(
|
|
4265
4283
|
"widget.render() is deprecated. Use widget.attach() instead."
|
|
4266
4284
|
), t.open) {
|
|
4267
|
-
const e =
|
|
4285
|
+
const e = Mt(tt({}, t), {
|
|
4268
4286
|
withRenderState: "open"
|
|
4269
4287
|
/* Open */
|
|
4270
4288
|
});
|
|
@@ -4281,25 +4299,25 @@ class la extends Zr {
|
|
|
4281
4299
|
setSettings(t) {
|
|
4282
4300
|
return Promise.all([
|
|
4283
4301
|
this.container.get("settings"),
|
|
4284
|
-
|
|
4302
|
+
rt(
|
|
4285
4303
|
this.container,
|
|
4286
|
-
|
|
4287
|
-
|
|
4304
|
+
Fe,
|
|
4305
|
+
C.Necessary,
|
|
4288
4306
|
{
|
|
4289
|
-
medium:
|
|
4307
|
+
medium: P.Local
|
|
4290
4308
|
}
|
|
4291
4309
|
)
|
|
4292
4310
|
]).then(([e, r]) => Promise.resolve(t(e)).then((s) => r(s).then(() => {
|
|
4293
|
-
const i =
|
|
4311
|
+
const i = tt(tt({}, e), s);
|
|
4294
4312
|
return this.widget.events.dispatch("widget:settings-updated", i), i;
|
|
4295
4313
|
})));
|
|
4296
4314
|
}
|
|
4297
4315
|
clearSettings() {
|
|
4298
|
-
return
|
|
4316
|
+
return rt(
|
|
4299
4317
|
this.container,
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
{ medium:
|
|
4318
|
+
Fe,
|
|
4319
|
+
C.Necessary,
|
|
4320
|
+
{ medium: P.Local }
|
|
4303
4321
|
).then((t) => t()).then(() => this.container.get("settings")).then((t) => {
|
|
4304
4322
|
this.widget.events.dispatch("widget:settings-updated", t);
|
|
4305
4323
|
});
|
|
@@ -4310,18 +4328,18 @@ class la extends Zr {
|
|
|
4310
4328
|
});
|
|
4311
4329
|
}
|
|
4312
4330
|
renderState() {
|
|
4313
|
-
if (
|
|
4314
|
-
return Promise.resolve(
|
|
4315
|
-
const t = () =>
|
|
4331
|
+
if (on(this.container))
|
|
4332
|
+
return Promise.resolve(J.open);
|
|
4333
|
+
const t = () => Z(
|
|
4316
4334
|
this.container,
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
).then((r =
|
|
4335
|
+
ee,
|
|
4336
|
+
P.Session
|
|
4337
|
+
).then((r = J.closed) => r), e = () => Z(
|
|
4320
4338
|
this.container,
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
).then((r =
|
|
4324
|
-
return this.container.getAsync("router").then((r) => r.isSticky() ? e().then((s) => s ===
|
|
4339
|
+
ee,
|
|
4340
|
+
P.Session
|
|
4341
|
+
).then((r = J.closed) => r);
|
|
4342
|
+
return this.container.getAsync("router").then((r) => r.isSticky() ? e().then((s) => s === J.open ? s : t()) : t());
|
|
4325
4343
|
}
|
|
4326
4344
|
hide() {
|
|
4327
4345
|
return this.outlets.size < 1 ? (process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -4350,9 +4368,9 @@ class la extends Zr {
|
|
|
4350
4368
|
case "close":
|
|
4351
4369
|
case "open":
|
|
4352
4370
|
case "hide":
|
|
4353
|
-
const r = t === "open" ?
|
|
4371
|
+
const r = t === "open" ? J.open : t === "close" ? J.closed : J.hidden;
|
|
4354
4372
|
return this.setRenderState(r).then(() => {
|
|
4355
|
-
this.setTriggerState(r ===
|
|
4373
|
+
this.setTriggerState(r === J.open), r !== J.hidden ? r === J.open ? this.onOpen() : this.onClose() : this.outlets.forEach(
|
|
4356
4374
|
(s) => {
|
|
4357
4375
|
var i;
|
|
4358
4376
|
return (i = s.options.triggerDOMElement) == null ? void 0 : i.setAttribute(
|
|
@@ -4367,20 +4385,20 @@ class la extends Zr {
|
|
|
4367
4385
|
setRenderState(t) {
|
|
4368
4386
|
const { invoke: e, events: r } = this.container.get("$widget");
|
|
4369
4387
|
return Promise.all([
|
|
4370
|
-
|
|
4388
|
+
rt(
|
|
4371
4389
|
this.container,
|
|
4372
|
-
|
|
4373
|
-
|
|
4390
|
+
ee,
|
|
4391
|
+
C.Necessary,
|
|
4374
4392
|
{
|
|
4375
|
-
medium:
|
|
4393
|
+
medium: P.Session
|
|
4376
4394
|
}
|
|
4377
4395
|
),
|
|
4378
|
-
|
|
4396
|
+
rt(
|
|
4379
4397
|
this.container,
|
|
4380
|
-
|
|
4381
|
-
|
|
4398
|
+
ee,
|
|
4399
|
+
C.Necessary,
|
|
4382
4400
|
{
|
|
4383
|
-
medium:
|
|
4401
|
+
medium: P.Local,
|
|
4384
4402
|
duration: { minutes: 5 }
|
|
4385
4403
|
}
|
|
4386
4404
|
),
|
|
@@ -4443,23 +4461,23 @@ class la extends Zr {
|
|
|
4443
4461
|
const {
|
|
4444
4462
|
options: { triggerDOMElement: r, triggerOptions: s }
|
|
4445
4463
|
} = e, { openTooltip: i, closedTooltip: o } = s || {};
|
|
4446
|
-
r && (t ?
|
|
4464
|
+
r && (t ? Rr(r, i) : ao(r, o));
|
|
4447
4465
|
});
|
|
4448
4466
|
}
|
|
4449
4467
|
deactivate() {
|
|
4450
4468
|
this.subs.forEach((e) => e());
|
|
4451
4469
|
const t = [];
|
|
4452
|
-
return this.outlets.forEach((e) => t.push(e.dispose())),
|
|
4470
|
+
return this.outlets.forEach((e) => t.push(e.dispose())), Z(
|
|
4453
4471
|
this.container,
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
).then((e) => e === this.widget.name ?
|
|
4472
|
+
tr,
|
|
4473
|
+
P.Local
|
|
4474
|
+
).then((e) => e === this.widget.name ? rt(
|
|
4457
4475
|
this.container,
|
|
4458
|
-
|
|
4459
|
-
|
|
4476
|
+
tr,
|
|
4477
|
+
C.Necessary,
|
|
4460
4478
|
{
|
|
4461
|
-
medium:
|
|
4462
|
-
scope:
|
|
4479
|
+
medium: P.Local,
|
|
4480
|
+
scope: Lt.Implementation
|
|
4463
4481
|
}
|
|
4464
4482
|
).then((r) => r()).then(() => Promise.all(t)) : Promise.all(t));
|
|
4465
4483
|
}
|
|
@@ -4469,7 +4487,7 @@ class la extends Zr {
|
|
|
4469
4487
|
* Copyright 2021 Google LLC
|
|
4470
4488
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4471
4489
|
*/
|
|
4472
|
-
let
|
|
4490
|
+
let Fr = class extends Event {
|
|
4473
4491
|
constructor(t, e, r) {
|
|
4474
4492
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = r != null && r;
|
|
4475
4493
|
}
|
|
@@ -4484,7 +4502,7 @@ let Uo = class extends Event {
|
|
|
4484
4502
|
* Copyright 2021 Google LLC
|
|
4485
4503
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4486
4504
|
*/
|
|
4487
|
-
class
|
|
4505
|
+
let Wo = class {
|
|
4488
4506
|
constructor(t, e, r, s) {
|
|
4489
4507
|
var i;
|
|
4490
4508
|
if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, a) => {
|
|
@@ -4503,49 +4521,121 @@ class Yn {
|
|
|
4503
4521
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
4504
4522
|
}
|
|
4505
4523
|
dispatchRequest() {
|
|
4506
|
-
this.host.dispatchEvent(new
|
|
4524
|
+
this.host.dispatchEvent(new Fr(this.context, this.t, this.subscribe));
|
|
4525
|
+
}
|
|
4526
|
+
};
|
|
4527
|
+
/**
|
|
4528
|
+
* @license
|
|
4529
|
+
* Copyright 2021 Google LLC
|
|
4530
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4531
|
+
*/
|
|
4532
|
+
class Fo {
|
|
4533
|
+
constructor(t) {
|
|
4534
|
+
this.subscriptions = /* @__PURE__ */ new Map(), this.updateObservers = () => {
|
|
4535
|
+
for (const [e, { disposer: r }] of this.subscriptions)
|
|
4536
|
+
e(this.o, r);
|
|
4537
|
+
}, t !== void 0 && (this.value = t);
|
|
4538
|
+
}
|
|
4539
|
+
get value() {
|
|
4540
|
+
return this.o;
|
|
4541
|
+
}
|
|
4542
|
+
set value(t) {
|
|
4543
|
+
this.setValue(t);
|
|
4544
|
+
}
|
|
4545
|
+
setValue(t, e = !1) {
|
|
4546
|
+
const r = e || !Object.is(t, this.o);
|
|
4547
|
+
this.o = t, r && this.updateObservers();
|
|
4548
|
+
}
|
|
4549
|
+
addCallback(t, e, r) {
|
|
4550
|
+
if (!r)
|
|
4551
|
+
return void t(this.value);
|
|
4552
|
+
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
|
4553
|
+
this.subscriptions.delete(t);
|
|
4554
|
+
}, consumerHost: e });
|
|
4555
|
+
const { disposer: s } = this.subscriptions.get(t);
|
|
4556
|
+
t(this.value, s);
|
|
4557
|
+
}
|
|
4558
|
+
clearCallbacks() {
|
|
4559
|
+
this.subscriptions.clear();
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4562
|
+
/**
|
|
4563
|
+
* @license
|
|
4564
|
+
* Copyright 2021 Google LLC
|
|
4565
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4566
|
+
*/
|
|
4567
|
+
class qo extends Event {
|
|
4568
|
+
constructor(t) {
|
|
4569
|
+
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
|
4570
|
+
}
|
|
4571
|
+
}
|
|
4572
|
+
class jt extends Fo {
|
|
4573
|
+
constructor(t, e, r) {
|
|
4574
|
+
super(e.context !== void 0 ? e.initialValue : r), this.onContextRequest = (s) => {
|
|
4575
|
+
const i = s.composedPath()[0];
|
|
4576
|
+
s.context === this.context && i !== this.host && (s.stopPropagation(), this.addCallback(s.callback, i, s.subscribe));
|
|
4577
|
+
}, this.onProviderRequest = (s) => {
|
|
4578
|
+
const i = s.composedPath()[0];
|
|
4579
|
+
if (s.context === this.context && i !== this.host) {
|
|
4580
|
+
for (const [o, { consumerHost: a }] of this.subscriptions)
|
|
4581
|
+
a.dispatchEvent(new Fr(this.context, o, !0));
|
|
4582
|
+
s.stopPropagation();
|
|
4583
|
+
}
|
|
4584
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), this.host.addController(this);
|
|
4585
|
+
}
|
|
4586
|
+
attachListeners() {
|
|
4587
|
+
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
4588
|
+
}
|
|
4589
|
+
hostConnected() {
|
|
4590
|
+
this.host.dispatchEvent(new qo(this.context));
|
|
4507
4591
|
}
|
|
4508
4592
|
}
|
|
4509
|
-
|
|
4510
|
-
|
|
4593
|
+
/**
|
|
4594
|
+
* @license
|
|
4595
|
+
* Copyright 2022 Google LLC
|
|
4596
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
4597
|
+
*/
|
|
4598
|
+
function Jo({ context: n, subscribe: t }) {
|
|
4599
|
+
return Ao({ finisher: (e, r) => {
|
|
4600
|
+
e.addInitializer((s) => {
|
|
4601
|
+
new Wo(s, { context: n, callback: (i) => {
|
|
4602
|
+
s[r] = i;
|
|
4603
|
+
}, subscribe: t });
|
|
4604
|
+
});
|
|
4605
|
+
} });
|
|
4606
|
+
}
|
|
4607
|
+
const Ko = "children", Go = "descriptor", Yo = "container", Zo = "context", Qo = "layout", Xo = "properties";
|
|
4608
|
+
class ta {
|
|
4511
4609
|
constructor(t) {
|
|
4512
|
-
(this.host = t).addController(this)
|
|
4513
|
-
t,
|
|
4514
|
-
Vo,
|
|
4515
|
-
(e) => {
|
|
4516
|
-
this._container = e, this.host.requestUpdate();
|
|
4517
|
-
},
|
|
4518
|
-
!0
|
|
4519
|
-
), new Yn(
|
|
4520
|
-
t,
|
|
4521
|
-
Bo,
|
|
4522
|
-
(e) => {
|
|
4523
|
-
this._descriptor = e, this.host.requestUpdate();
|
|
4524
|
-
},
|
|
4525
|
-
!0
|
|
4526
|
-
);
|
|
4610
|
+
(this.host = t).addController(this);
|
|
4527
4611
|
}
|
|
4528
4612
|
hostConnected() {
|
|
4529
4613
|
}
|
|
4530
4614
|
hostDisconnected() {
|
|
4531
4615
|
}
|
|
4616
|
+
setDescriptor(t) {
|
|
4617
|
+
this._descriptor = t;
|
|
4618
|
+
}
|
|
4619
|
+
setContainer(t) {
|
|
4620
|
+
this._container = t;
|
|
4621
|
+
}
|
|
4532
4622
|
dispatch(t, e) {
|
|
4533
|
-
return
|
|
4623
|
+
return B(this, null, function* () {
|
|
4534
4624
|
if (!this._container || !this._descriptor)
|
|
4535
4625
|
return;
|
|
4536
|
-
const r = yield
|
|
4626
|
+
const r = yield Jt.getInstance(
|
|
4537
4627
|
this._container
|
|
4538
|
-
), s = new
|
|
4628
|
+
), s = new Nt(r).withId(
|
|
4539
4629
|
this._descriptor.id
|
|
4540
4630
|
);
|
|
4541
4631
|
yield r.actions(
|
|
4542
4632
|
s,
|
|
4543
|
-
this._descriptor.type ||
|
|
4633
|
+
this._descriptor.type || qt()
|
|
4544
4634
|
).dispatch(t, e);
|
|
4545
4635
|
});
|
|
4546
4636
|
}
|
|
4547
4637
|
}
|
|
4548
|
-
const
|
|
4638
|
+
const ea = (n, t) => B(void 0, null, function* () {
|
|
4549
4639
|
const e = n.properties().provider;
|
|
4550
4640
|
let r = {}, s = "";
|
|
4551
4641
|
Array.isArray(e) ? (s = e[0], r = e[1]) : s = e || "";
|
|
@@ -4553,19 +4643,19 @@ const zo = (n, t) => z(void 0, null, function* () {
|
|
|
4553
4643
|
if (!i)
|
|
4554
4644
|
throw new Error("No provider defined in ListComponent");
|
|
4555
4645
|
return i.applyComponentNodeSettings(n.node.id, r), { provider: i, settings: r };
|
|
4556
|
-
}),
|
|
4557
|
-
const { provider: e, settings: r = {} } = yield
|
|
4646
|
+
}), Na = (n, t) => B(void 0, null, function* () {
|
|
4647
|
+
const { provider: e, settings: r = {} } = yield ea(n, t);
|
|
4558
4648
|
return {
|
|
4559
4649
|
addResource: (s, i) => e.addResource(s, i),
|
|
4560
4650
|
getData: (s, i) => e.getData(s, i, r)
|
|
4561
4651
|
};
|
|
4562
4652
|
});
|
|
4563
|
-
class
|
|
4653
|
+
class na {
|
|
4564
4654
|
constructor(t) {
|
|
4565
4655
|
this.container = t, this.resources = /* @__PURE__ */ new Map(), this.nodeConfiguration = /* @__PURE__ */ new Map();
|
|
4566
4656
|
}
|
|
4567
4657
|
getData(t, e, r) {
|
|
4568
|
-
return
|
|
4658
|
+
return B(this, null, function* () {
|
|
4569
4659
|
const s = this.resources.get(t);
|
|
4570
4660
|
if (!s)
|
|
4571
4661
|
throw new Error(`Unable to get EntityProvider for "${t}"`);
|
|
@@ -4579,62 +4669,202 @@ class Wo {
|
|
|
4579
4669
|
this.nodeConfiguration.set(t, e);
|
|
4580
4670
|
}
|
|
4581
4671
|
}
|
|
4582
|
-
const
|
|
4672
|
+
const er = (n) => ({
|
|
4583
4673
|
title: n.Title,
|
|
4584
4674
|
id: n.Id.toString()
|
|
4585
4675
|
});
|
|
4586
|
-
class
|
|
4676
|
+
class ra extends na {
|
|
4587
4677
|
constructor(t) {
|
|
4588
4678
|
super(t), this.addResource("item", {
|
|
4589
|
-
query: (e, r) =>
|
|
4679
|
+
query: (e, r) => B(this, null, function* () {
|
|
4590
4680
|
const s = e.itemId, i = "78aacc09-ae6f-5485-5ca3-9dacebb95825", o = t.get("$widget").name, a = r.projection || "", h = yield (yield fetch(
|
|
4591
4681
|
`${a}/guides/${s}?client=${i}&funnel=${o}&site=%2F%2Fdemo.humany.cc%2Fadmin%2Finterfaces&phrase=&connectionId=&p.LastGuideId=2857`
|
|
4592
4682
|
)).json();
|
|
4593
|
-
return h ?
|
|
4683
|
+
return h ? er(h) : null;
|
|
4594
4684
|
})
|
|
4595
4685
|
}), this.addResource("items", {
|
|
4596
|
-
query: (e, r) =>
|
|
4686
|
+
query: (e, r) => B(this, null, function* () {
|
|
4597
4687
|
const s = "", i = t.get("$widget").name, o = r.projection || "", u = yield (yield fetch(
|
|
4598
4688
|
`${o}/guides?client=${s}&funnel=${i}&site=&phrase=&skip=0&take=10&sorting.type=popularity&sorting.direction=descending`
|
|
4599
4689
|
)).json();
|
|
4600
4690
|
return {
|
|
4601
|
-
items: (u.Matches || []).map((d) =>
|
|
4691
|
+
items: (u.Matches || []).map((d) => er(d)),
|
|
4602
4692
|
totalItems: (u == null ? void 0 : u.TotalMatches) || 0
|
|
4603
4693
|
};
|
|
4604
4694
|
})
|
|
4605
4695
|
});
|
|
4606
4696
|
}
|
|
4607
4697
|
}
|
|
4608
|
-
const
|
|
4609
|
-
n.registerAsync("guideProvider", () => new
|
|
4610
|
-
}),
|
|
4611
|
-
}), t, s)))
|
|
4698
|
+
const La = (n) => B(void 0, null, function* () {
|
|
4699
|
+
n.registerAsync("guideProvider", () => new ra(n));
|
|
4700
|
+
}), Ma = (n, t, e, r, s) => n.getAsync("componentResolver").then((i) => (i.registerComponent(t, e), cr(n, t, r || (() => {
|
|
4701
|
+
}), t, s))), W = (n, t, e) => {
|
|
4702
|
+
n && e.style.setProperty(t, n);
|
|
4703
|
+
}, sa = (n, t) => {
|
|
4704
|
+
var e, r, s, i, o, a, c, h, l, u, d;
|
|
4705
|
+
W((e = n.colors) == null ? void 0 : e.primary, "--primary-color", t), W((r = n.colors) == null ? void 0 : r.secondary, "--secondary-color", t), W((s = n.colors) == null ? void 0 : s.text, "--text-color", t), W((i = n.colors) == null ? void 0 : i.link, "--link-color", t), W((o = n.colors) == null ? void 0 : o.gray, "--gray-color", t), W((a = n.colors) == null ? void 0 : a.grayDark, "--gray-dark-color", t), W((c = n.spacing) == null ? void 0 : c.xs, "--spacing-xs", t), W((h = n.spacing) == null ? void 0 : h.sm, "--spacing-sm", t), W((l = n.spacing) == null ? void 0 : l.md, "--spacing-md", t), W((u = n.spacing) == null ? void 0 : u.lg, "--spacing-lg", t), W((d = n.spacing) == null ? void 0 : d.xl, "--spacing-xl", t), W(n.boxShadow, "--box-shadow", t), W(n.borderRadius, "--border-radius", t), W(n.borderRadiusSm, "--border-radius-sm", t), W(n.fontFamily, "--font-family", t);
|
|
4706
|
+
}, ia = (n) => {
|
|
4707
|
+
const t = {};
|
|
4708
|
+
return Object.keys(n).forEach((e) => {
|
|
4709
|
+
e.indexOf("css-") > -1 && (t[e] = n[e]);
|
|
4710
|
+
}), t;
|
|
4711
|
+
}, oa = (n, t) => {
|
|
4712
|
+
const e = ia(t);
|
|
4713
|
+
Object.entries(e).forEach(([r, s]) => {
|
|
4714
|
+
n.style.setProperty(r.replace("css-", ""), s);
|
|
4715
|
+
});
|
|
4716
|
+
};
|
|
4717
|
+
var aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, gt = (n, t, e, r) => {
|
|
4718
|
+
for (var s = r > 1 ? void 0 : r ? ca(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
|
4719
|
+
(o = n[i]) && (s = (r ? o(t, e, s) : o(s)) || s);
|
|
4720
|
+
return r && s && aa(t, e, s), s;
|
|
4721
|
+
};
|
|
4722
|
+
const Da = (n) => {
|
|
4723
|
+
var e;
|
|
4724
|
+
class t extends n {
|
|
4725
|
+
constructor() {
|
|
4726
|
+
super(...arguments), this.entry = "", this._descriptorProvider = new jt(
|
|
4727
|
+
this,
|
|
4728
|
+
Go,
|
|
4729
|
+
void 0
|
|
4730
|
+
), this._childrenProvider = new jt(this, Ko, []), this._propertiesProvider = new jt(this, Xo, {}), this._contextProvider = new jt(this, Zo, {}), this._layoutProvider = new jt(this, Qo, {}), this.actions = new ta(this), this.context = {}, this.layout = {}, this.properties = {};
|
|
4731
|
+
}
|
|
4732
|
+
connectedCallback() {
|
|
4733
|
+
super.connectedCallback(), this.container && (this.actions.setContainer(this.container), Jt.getInstance(this.container).then(
|
|
4734
|
+
(s) => B(this, null, function* () {
|
|
4735
|
+
var o;
|
|
4736
|
+
const i = s.nodes.get(this.entry);
|
|
4737
|
+
if (i) {
|
|
4738
|
+
this._propertyChangeListener = s.events.subscribe(
|
|
4739
|
+
"components:properties-changed",
|
|
4740
|
+
(u, d) => {
|
|
4741
|
+
i.id === d.node.id && this._setProperties(d.node.attributes.properties);
|
|
4742
|
+
}
|
|
4743
|
+
), this._contextChangeListener = s.events.subscribe(
|
|
4744
|
+
"components:context-changed",
|
|
4745
|
+
(u, d) => {
|
|
4746
|
+
i.id === d.node.id && this._setContext(d.node.attributes.context);
|
|
4747
|
+
}
|
|
4748
|
+
), this._layoutChangeListener = s.events.subscribe(
|
|
4749
|
+
"components:layout-changed",
|
|
4750
|
+
(u, d) => {
|
|
4751
|
+
i.id === d.node.id && this._setLayout(d.node.attributes.layout);
|
|
4752
|
+
}
|
|
4753
|
+
);
|
|
4754
|
+
const a = "default";
|
|
4755
|
+
this._unmountNode = i.mount(this.container), this._setDescriptor(Je(i, a)), this._setProperties(i.attributes.properties), this._setContext(i.attributes.context), this._setLayout(this.layout);
|
|
4756
|
+
const c = i.getChildren(a).map((u) => Je(u));
|
|
4757
|
+
this._childrenProvider.setValue(c);
|
|
4758
|
+
const l = (yield this.container.getAsync("componentResolver")).getComponent(
|
|
4759
|
+
((o = this.descriptor) == null ? void 0 : o.type) || ""
|
|
4760
|
+
);
|
|
4761
|
+
l.then && l.then((u) => {
|
|
4762
|
+
this.component = u.default;
|
|
4763
|
+
});
|
|
4764
|
+
}
|
|
4765
|
+
})
|
|
4766
|
+
));
|
|
4767
|
+
}
|
|
4768
|
+
disconnectedCallback() {
|
|
4769
|
+
super.disconnectedCallback(), this._propertyChangeListener && this._propertyChangeListener(), this._contextChangeListener && this._contextChangeListener(), this._layoutChangeListener && this._layoutChangeListener(), this._unmountNode && this._unmountNode();
|
|
4770
|
+
}
|
|
4771
|
+
updated() {
|
|
4772
|
+
sa(this.context, this.renderRoot.host), this.renderRoot.host.style.setProperty(
|
|
4773
|
+
"--width",
|
|
4774
|
+
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
|
4775
|
+
), oa(this.renderRoot.host, this.properties);
|
|
4776
|
+
}
|
|
4777
|
+
_setProperties(s) {
|
|
4778
|
+
this._propertiesProvider.setValue(s), this.properties = s;
|
|
4779
|
+
}
|
|
4780
|
+
_setContext(s) {
|
|
4781
|
+
this._contextProvider.setValue(s), this.context = s;
|
|
4782
|
+
}
|
|
4783
|
+
_setLayout(s) {
|
|
4784
|
+
this._layoutProvider.setValue(s), this.layout = s;
|
|
4785
|
+
}
|
|
4786
|
+
_setDescriptor(s) {
|
|
4787
|
+
this.descriptor = s, this._descriptorProvider.setValue(s), this.actions.setDescriptor(s);
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
return t.styles = [
|
|
4791
|
+
(e = n.styles) != null ? e : [],
|
|
4792
|
+
Ir`
|
|
4793
|
+
:host {
|
|
4794
|
+
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
4795
|
+
--spacing-xs: 0.2rem;
|
|
4796
|
+
--spacing-sm: 0.5rem;
|
|
4797
|
+
--spacing-md: 1rem;
|
|
4798
|
+
--spacing-lg: 1.2rem;
|
|
4799
|
+
--spacing-xl: 1.8rem;
|
|
4800
|
+
|
|
4801
|
+
--primary-color: #29003e;
|
|
4802
|
+
--secondary-color: #00558f;
|
|
4803
|
+
--text-color: #222222;
|
|
4804
|
+
--link-color: #990ae3;
|
|
4805
|
+
--gray-color: #efefef;
|
|
4806
|
+
--gray-dark-color: #a6a6a6;
|
|
4807
|
+
|
|
4808
|
+
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
4809
|
+
--border-radius: 1rem;
|
|
4810
|
+
--border-radius-sm: 0.3rem;
|
|
4811
|
+
|
|
4812
|
+
font-family: var(--font-family);
|
|
4813
|
+
grid-column: span var(--width);
|
|
4814
|
+
max-width: 100%;
|
|
4815
|
+
overflow: hidden;
|
|
4816
|
+
box-sizing: border-box;
|
|
4817
|
+
display: block;
|
|
4818
|
+
}
|
|
4819
|
+
* {
|
|
4820
|
+
box-sizing: border-box;
|
|
4821
|
+
}
|
|
4822
|
+
`
|
|
4823
|
+
], gt([
|
|
4824
|
+
Jo({ context: Yo }),
|
|
4825
|
+
ye({ attribute: !1 })
|
|
4826
|
+
], t.prototype, "container", 2), gt([
|
|
4827
|
+
ye()
|
|
4828
|
+
], t.prototype, "entry", 2), gt([
|
|
4829
|
+
lt()
|
|
4830
|
+
], t.prototype, "descriptor", 2), gt([
|
|
4831
|
+
lt()
|
|
4832
|
+
], t.prototype, "component", 2), gt([
|
|
4833
|
+
lt()
|
|
4834
|
+
], t.prototype, "context", 2), gt([
|
|
4835
|
+
lt()
|
|
4836
|
+
], t.prototype, "layout", 2), gt([
|
|
4837
|
+
lt()
|
|
4838
|
+
], t.prototype, "properties", 2), t;
|
|
4839
|
+
};
|
|
4612
4840
|
export {
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4841
|
+
j as A,
|
|
4842
|
+
na as D,
|
|
4843
|
+
La as G,
|
|
4844
|
+
Et as T,
|
|
4845
|
+
Da as W,
|
|
4846
|
+
jt as a,
|
|
4847
|
+
Ir as b,
|
|
4848
|
+
Yo as c,
|
|
4849
|
+
lt as d,
|
|
4850
|
+
Co as e,
|
|
4851
|
+
sa as f,
|
|
4852
|
+
oa as g,
|
|
4853
|
+
Ca as h,
|
|
4854
|
+
So as i,
|
|
4855
|
+
Ko as j,
|
|
4856
|
+
Go as k,
|
|
4857
|
+
Zo as l,
|
|
4858
|
+
J as m,
|
|
4859
|
+
ye as n,
|
|
4860
|
+
Qo as o,
|
|
4861
|
+
Jt as p,
|
|
4862
|
+
Xo as q,
|
|
4863
|
+
ta as r,
|
|
4864
|
+
Vt as s,
|
|
4865
|
+
Po as t,
|
|
4866
|
+
Na as u,
|
|
4867
|
+
Ma as v,
|
|
4868
|
+
Xt as x
|
|
4639
4869
|
};
|
|
4640
|
-
//# sourceMappingURL=index-
|
|
4870
|
+
//# sourceMappingURL=index-212dab55.js.map
|