@ixon-cdk/iframe-adapter 1.19.0-next.0 → 1.20.0-next.1

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/index.js CHANGED
@@ -1,60 +1,60 @@
1
- var x = Object.defineProperty;
2
- var ee = (t, e, n) => e in t ? x(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var p = (t, e, n) => (ee(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- const c = "cdk:cmpctx:", s = {
1
+ var P = Object.defineProperty;
2
+ var j = (t, e, n) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var p = (t, e, n) => (j(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ const l = "cdk:cmpctx:", r = {
5
5
  // Lifecycle
6
- Create: `${c}create`,
7
- Created: `${c}created`,
8
- Destroy: `${c}destroy`,
6
+ Create: `${l}create`,
7
+ Created: `${l}created`,
8
+ Destroy: `${l}destroy`,
9
9
  // BackendComponentClient
10
- BackendComponentClientCreate: `${c}bcc:create`,
11
- BackendComponentClientDestroy: `${c}bcc:destroy`,
12
- BackendComponentClientCall: `${c}bcc:call`,
13
- BackendComponentClientCallResult: `${c}bcc:callresult`,
10
+ BackendComponentClientCreate: `${l}bcc:create`,
11
+ BackendComponentClientDestroy: `${l}bcc:destroy`,
12
+ BackendComponentClientCall: `${l}bcc:call`,
13
+ BackendComponentClientCallResult: `${l}bcc:callresult`,
14
14
  // LoggingDataClient
15
- LoggingDataClientCreate: `${c}ldc:create`,
16
- LoggingDataClientDestroy: `${c}ldc:destroy`,
17
- LoggingDataClientQuery: `${c}ldc:query`,
18
- LoggingDataClientQueryResult: `${c}ldc:queryresult`,
15
+ LoggingDataClientCreate: `${l}ldc:create`,
16
+ LoggingDataClientDestroy: `${l}ldc:destroy`,
17
+ LoggingDataClientQuery: `${l}ldc:query`,
18
+ LoggingDataClientQueryResult: `${l}ldc:queryresult`,
19
19
  // ResourceDataClient
20
- ResourceDataClientCreate: `${c}rdc:create`,
21
- ResourceDataClientDestroy: `${c}rdc:destroy`,
22
- ResourceDataClientQuery: `${c}rdc:query`,
23
- ResourceDataClientQueryResult: `${c}rdc:queryresult`,
24
- ResourceDataClientRender: `${c}rdc:render`,
25
- ResourceDataClientRenderResult: `${c}rdc:renderresult`,
26
- ResourceDataClientUpdate: `${c}rdc:update`,
27
- ResourceDataClientUpdated: `${c}rdc:updated`,
20
+ ResourceDataClientCreate: `${l}rdc:create`,
21
+ ResourceDataClientDestroy: `${l}rdc:destroy`,
22
+ ResourceDataClientQuery: `${l}rdc:query`,
23
+ ResourceDataClientQueryResult: `${l}rdc:queryresult`,
24
+ ResourceDataClientRender: `${l}rdc:render`,
25
+ ResourceDataClientRenderResult: `${l}rdc:renderresult`,
26
+ ResourceDataClientUpdate: `${l}rdc:update`,
27
+ ResourceDataClientUpdated: `${l}rdc:updated`,
28
28
  // ActionMenu
29
- OpenActionMenu: `${c}openactionmenu`,
30
- OpenActionMenuResult: `${c}openactionmenuresult`,
29
+ OpenActionMenu: `${l}openactionmenu`,
30
+ OpenActionMenuResult: `${l}openactionmenuresult`,
31
31
  // ActionBottomSheet
32
- OpenActionBottomSheet: `${c}openactionbottomsheet`,
33
- OpenActionBottomSheetResult: `${c}openactionbottomsheetresult`,
32
+ OpenActionBottomSheet: `${l}openactionbottomsheet`,
33
+ OpenActionBottomSheetResult: `${l}openactionbottomsheetresult`,
34
34
  // Dialogs
35
- OpenAlertDialog: `${c}openalertdialog`,
36
- OpenAlertDialogResult: `${c}openalertdialogresult`,
37
- OpenConfirmDialog: `${c}openconfirmdialog`,
38
- OpenConfirmDialogResult: `${c}openconfirmdialogresult`,
39
- OpenContentDialog: `${c}opencontentdialog`,
40
- OpenContentDialogResult: `${c}opencontentdialogresult`,
41
- OpenFormDialog: `${c}openformdialog`,
42
- OpenFormDialogResult: `${c}openformdialogresult`,
35
+ OpenAlertDialog: `${l}openalertdialog`,
36
+ OpenAlertDialogResult: `${l}openalertdialogresult`,
37
+ OpenConfirmDialog: `${l}openconfirmdialog`,
38
+ OpenConfirmDialogResult: `${l}openconfirmdialogresult`,
39
+ OpenContentDialog: `${l}opencontentdialog`,
40
+ OpenContentDialogResult: `${l}opencontentdialogresult`,
41
+ OpenFormDialog: `${l}openformdialog`,
42
+ OpenFormDialogResult: `${l}openformdialogresult`,
43
43
  // SelectPanel
44
- OpenSelectPanel: `${c}openselectpanel`,
45
- OpenSelectPanelResult: `${c}openselectpanelresult`,
44
+ OpenSelectPanel: `${l}openselectpanel`,
45
+ OpenSelectPanelResult: `${l}openselectpanelresult`,
46
46
  // Toast
47
- OpenToast: `${c}opentoast`,
48
- OpenToastResult: `${c}opentoastresult`,
47
+ OpenToast: `${l}opentoast`,
48
+ OpenToastResult: `${l}opentoastresult`,
49
49
  // VPN
50
- ShowVpnStatusDetails: `${c}showvpnstatusdetails`,
51
- ToggleVpn: `${c}togglevpn`,
52
- VpnClientStatusChange: `${c}vpnclientstatuschange`,
50
+ ShowVpnStatusDetails: `${l}showvpnstatusdetails`,
51
+ ToggleVpn: `${l}togglevpn`,
52
+ VpnClientStatusChange: `${l}vpnclientstatuschange`,
53
53
  // Miscellaneous
54
- NavigateByUrl: `${c}navigatebyurl`,
55
- SetTimeRange: `${c}settimerange`,
56
- TimeRangeChange: `${c}timerangechange`
57
- }, te = [
54
+ NavigateByUrl: `${l}navigatebyurl`,
55
+ SetTimeRange: `${l}settimerange`,
56
+ TimeRangeChange: `${l}timerangechange`
57
+ }, B = [
58
58
  "color-scheme",
59
59
  "background",
60
60
  "on-background",
@@ -67,11 +67,11 @@ const c = "cdk:cmpctx:", s = {
67
67
  "success",
68
68
  "on-success"
69
69
  ];
70
- function Mt({ iframe: t, context: e }) {
71
- return window.addEventListener("message", a, !1), e.ontimerangechange = (...o) => {
70
+ function nt({ iframe: t, context: e }) {
71
+ return window.addEventListener("message", s, !1), e.ontimerangechange = (...o) => {
72
72
  t.contentWindow && t.contentWindow.postMessage(
73
73
  {
74
- type: s.TimeRangeChange,
74
+ type: r.TimeRangeChange,
75
75
  payload: o
76
76
  },
77
77
  "*"
@@ -79,20 +79,20 @@ function Mt({ iframe: t, context: e }) {
79
79
  }, e.onvpnclientstatuschange = (...o) => {
80
80
  t.contentWindow && t.contentWindow.postMessage(
81
81
  {
82
- type: s.VpnClientStatusChange,
82
+ type: r.VpnClientStatusChange,
83
83
  payload: o
84
84
  },
85
85
  "*"
86
86
  );
87
87
  }, {
88
88
  destroy() {
89
- window.removeEventListener("message", a, !1);
89
+ window.removeEventListener("message", s, !1);
90
90
  }
91
91
  };
92
92
  function n(o) {
93
93
  return {
94
94
  _apiLinkEntries: [...o._getApiLinks().entries()],
95
- _designTokenEntries: te.map((r) => [r, o.getDesignToken(r)]),
95
+ _designTokenEntries: B.map((a) => [a, o.getDesignToken(a)]),
96
96
  appData: o.appData,
97
97
  componentBaseUrl: o.componentBaseUrl,
98
98
  destroyed: o.destroyed,
@@ -103,62 +103,62 @@ function Mt({ iframe: t, context: e }) {
103
103
  vpnClientStatus: o.vpnClientStatus
104
104
  };
105
105
  }
106
- function a(o) {
107
- if (a._clients = a._clients || /* @__PURE__ */ new Map([]), o.source === t.contentWindow)
106
+ function s(o) {
107
+ if (s._clients = s._clients || /* @__PURE__ */ new Map([]), o.source === t.contentWindow)
108
108
  switch (o.data.type) {
109
- case s.Create:
109
+ case r.Create:
110
110
  t.contentWindow.postMessage(
111
111
  {
112
- type: s.Created,
112
+ type: r.Created,
113
113
  payload: n(e)
114
114
  },
115
115
  "*"
116
116
  );
117
117
  break;
118
- case s.Destroy:
118
+ case r.Destroy:
119
119
  e.destroy();
120
120
  break;
121
- case s.BackendComponentClientCreate: {
122
- const { clientId: r } = o.data.payload, i = e.createBackendComponentClient(r);
123
- a._clients.set(r, i);
121
+ case r.BackendComponentClientCreate: {
122
+ const { clientId: a } = o.data.payload, i = e.createBackendComponentClient(a);
123
+ s._clients.set(a, i);
124
124
  break;
125
125
  }
126
- case s.BackendComponentClientDestroy: {
127
- const { clientId: r } = o.data.payload;
128
- a._clients.has(r) && (a._clients.get(r).destroy(), a._clients.delete(r));
126
+ case r.BackendComponentClientDestroy: {
127
+ const { clientId: a } = o.data.payload;
128
+ s._clients.has(a) && (s._clients.get(a).destroy(), s._clients.delete(a));
129
129
  break;
130
130
  }
131
- case s.BackendComponentClientCall: {
132
- const { clientId: r, callId: i, functionName: d, functionArguments: l } = o.data.payload;
133
- let u = a._clients.get(r);
134
- u && !u._destroyed && u.call(d, l).then((g) => {
131
+ case r.BackendComponentClientCall: {
132
+ const { clientId: a, callId: i, functionName: c, functionArguments: d } = o.data.payload;
133
+ let u = s._clients.get(a);
134
+ u && !u._destroyed && u.call(c, d).then((b) => {
135
135
  u && !u.destroyed && t.contentWindow.postMessage(
136
136
  {
137
- type: s.BackendComponentClientCallResult,
138
- payload: { callId: i, result: g }
137
+ type: r.BackendComponentClientCallResult,
138
+ payload: { callId: i, result: b }
139
139
  },
140
140
  "*"
141
141
  );
142
142
  });
143
143
  break;
144
144
  }
145
- case s.LoggingDataClientCreate: {
146
- const { clientId: r } = o.data.payload, i = e.createLoggingDataClient(r);
147
- a._clients.set(r, i);
145
+ case r.LoggingDataClientCreate: {
146
+ const { clientId: a } = o.data.payload, i = e.createLoggingDataClient(a);
147
+ s._clients.set(a, i);
148
148
  break;
149
149
  }
150
- case s.LoggingDataClientDestroy: {
151
- const { clientId: r } = o.data.payload;
152
- a._clients.has(r) && (a._clients.get(r).destroy(), a._clients.delete(r));
150
+ case r.LoggingDataClientDestroy: {
151
+ const { clientId: a } = o.data.payload;
152
+ s._clients.has(a) && (s._clients.get(a).destroy(), s._clients.delete(a));
153
153
  break;
154
154
  }
155
- case s.LoggingDataClientQuery: {
156
- const { clientId: r, queryId: i, query: d } = o.data.payload;
157
- let l = a._clients.get(r);
158
- l && !l._destroyed && l.query(d, (u) => {
159
- l._destroyed || t.contentWindow.postMessage(
155
+ case r.LoggingDataClientQuery: {
156
+ const { clientId: a, queryId: i, query: c } = o.data.payload;
157
+ let d = s._clients.get(a);
158
+ d && !d._destroyed && d.query(c, (u) => {
159
+ d._destroyed || t.contentWindow.postMessage(
160
160
  {
161
- type: s.LoggingDataClientQueryResult,
161
+ type: r.LoggingDataClientQueryResult,
162
162
  payload: { queryId: i, results: u }
163
163
  },
164
164
  "*"
@@ -166,23 +166,23 @@ function Mt({ iframe: t, context: e }) {
166
166
  });
167
167
  break;
168
168
  }
169
- case s.ResourceDataClientCreate: {
170
- const { clientId: r } = o.data.payload, i = e.createResourceDataClient(r);
171
- a._clients.set(r, i);
169
+ case r.ResourceDataClientCreate: {
170
+ const { clientId: a } = o.data.payload, i = e.createResourceDataClient(a);
171
+ s._clients.set(a, i);
172
172
  break;
173
173
  }
174
- case s.ResourceDataClientDestroy: {
175
- const { clientId: r } = o.data.payload;
176
- a._clients.has(r) && (a._clients.get(r).destroy(), a._clients.delete(r));
174
+ case r.ResourceDataClientDestroy: {
175
+ const { clientId: a } = o.data.payload;
176
+ s._clients.has(a) && (s._clients.get(a).destroy(), s._clients.delete(a));
177
177
  break;
178
178
  }
179
- case s.ResourceDataClientQuery: {
180
- const { clientId: r, queryId: i, query: d } = o.data.payload;
181
- let l = a._clients.get(r);
182
- l && !l._destroyed && l.query(d, (u) => {
183
- l._destroyed || t.contentWindow.postMessage(
179
+ case r.ResourceDataClientQuery: {
180
+ const { clientId: a, queryId: i, query: c } = o.data.payload;
181
+ let d = s._clients.get(a);
182
+ d && !d._destroyed && d.query(c, (u) => {
183
+ d._destroyed || t.contentWindow.postMessage(
184
184
  {
185
- type: s.ResourceDataClientQueryResult,
185
+ type: r.ResourceDataClientQueryResult,
186
186
  payload: { queryId: i, results: u }
187
187
  },
188
188
  "*"
@@ -190,13 +190,13 @@ function Mt({ iframe: t, context: e }) {
190
190
  });
191
191
  break;
192
192
  }
193
- case s.ResourceDataClientRender: {
194
- const { clientId: r, queryId: i, query: d } = o.data.payload;
195
- let l = a._clients.get(r);
196
- l && !l._destroyed && l.render(d, (u) => {
197
- l._destroyed || t.contentWindow.postMessage(
193
+ case r.ResourceDataClientRender: {
194
+ const { clientId: a, queryId: i, query: c } = o.data.payload;
195
+ let d = s._clients.get(a);
196
+ d && !d._destroyed && d.render(c, (u) => {
197
+ d._destroyed || t.contentWindow.postMessage(
198
198
  {
199
- type: s.ResourceDataClientRenderResult,
199
+ type: r.ResourceDataClientRenderResult,
200
200
  payload: { queryId: i, results: u }
201
201
  },
202
202
  "*"
@@ -204,13 +204,13 @@ function Mt({ iframe: t, context: e }) {
204
204
  });
205
205
  break;
206
206
  }
207
- case s.ResourceDataClientUpdate: {
208
- const { clientId: r, updateId: i, update: d } = o.data.payload;
209
- let l = a._clients.get(r);
210
- l && !l._destroyed && l.update(d).then(() => {
211
- l && !l._destroyed && t.contentWindow.postMessage(
207
+ case r.ResourceDataClientUpdate: {
208
+ const { clientId: a, updateId: i, update: c } = o.data.payload;
209
+ let d = s._clients.get(a);
210
+ d && !d._destroyed && d.update(c).then(() => {
211
+ d && !d._destroyed && t.contentWindow.postMessage(
212
212
  {
213
- type: s.ResourceDataClientUpdated,
213
+ type: r.ResourceDataClientUpdated,
214
214
  payload: { updateId: i }
215
215
  },
216
216
  "*"
@@ -218,144 +218,144 @@ function Mt({ iframe: t, context: e }) {
218
218
  });
219
219
  break;
220
220
  }
221
- case s.OpenActionBottomSheet:
222
- e.openActionBottomSheet(o.data.payload.options).then((r) => {
223
- t.contentWindow.postMessage({ type: s.OpenActionBottomSheetResult, payload: { result: r } }, "*");
221
+ case r.OpenActionBottomSheet:
222
+ e.openActionBottomSheet(o.data.payload.options).then((a) => {
223
+ t.contentWindow.postMessage({ type: r.OpenActionBottomSheetResult, payload: { result: a } }, "*");
224
224
  });
225
225
  break;
226
- case s.OpenActionMenu:
226
+ case r.OpenActionMenu:
227
227
  {
228
- const r = t.contentDocument.querySelector(o.data.payload.selector), i = {
228
+ const a = o.data.payload.targetRect, i = {
229
229
  getBoundingClientRect: () => {
230
- const d = t.getBoundingClientRect(), l = r.getBoundingClientRect();
230
+ const c = t.getBoundingClientRect();
231
231
  return {
232
- ...JSON.parse(JSON.stringify(l)),
233
- top: d.top + l.top,
234
- x: d.x + l.x
232
+ ...JSON.parse(JSON.stringify(a)),
233
+ top: c.top + a.top,
234
+ x: c.x + a.x
235
235
  };
236
236
  }
237
237
  };
238
- e.openActionMenu(i, o.data.payload.options).then((d) => {
239
- t.contentWindow.postMessage({ type: s.OpenActionMenuResult, payload: { result: d } }, "*");
238
+ e.openActionMenu(i, o.data.payload.options).then((c) => {
239
+ t.contentWindow.postMessage({ type: r.OpenActionMenuResult, payload: { result: c } }, "*");
240
240
  });
241
241
  }
242
242
  break;
243
- case s.OpenAlertDialog:
244
- e.openAlertDialog(o.data.payload.options).then((r) => {
245
- t.contentWindow.postMessage({ type: s.OpenAlertDialogResult, payload: { result: r } }, "*");
243
+ case r.OpenAlertDialog:
244
+ e.openAlertDialog(o.data.payload.options).then((a) => {
245
+ t.contentWindow.postMessage({ type: r.OpenAlertDialogResult, payload: { result: a } }, "*");
246
246
  });
247
247
  break;
248
- case s.OpenConfirmDialog:
249
- e.openConfirmDialog(o.data.payload.options).then((r) => {
250
- t.contentWindow.postMessage({ type: s.OpenConfirmDialogResult, payload: { result: r } }, "*");
248
+ case r.OpenConfirmDialog:
249
+ e.openConfirmDialog(o.data.payload.options).then((a) => {
250
+ t.contentWindow.postMessage({ type: r.OpenConfirmDialogResult, payload: { result: a } }, "*");
251
251
  });
252
252
  break;
253
- case s.OpenContentDialog:
254
- e.openContentDialog(o.data.payload.options).then((r) => {
255
- t.contentWindow.postMessage({ type: s.OpenContentDialogResult, payload: { result: r } }, "*");
253
+ case r.OpenContentDialog:
254
+ e.openContentDialog(o.data.payload.options).then((a) => {
255
+ t.contentWindow.postMessage({ type: r.OpenContentDialogResult, payload: { result: a } }, "*");
256
256
  });
257
257
  break;
258
- case s.OpenFormDialog:
259
- e.openFormDialog(o.data.payload.options).then((r) => {
260
- t.contentWindow.postMessage({ type: s.OpenFormDialogResult, payload: { result: r } }, "*");
258
+ case r.OpenFormDialog:
259
+ e.openFormDialog(o.data.payload.options).then((a) => {
260
+ t.contentWindow.postMessage({ type: r.OpenFormDialogResult, payload: { result: a } }, "*");
261
261
  });
262
262
  break;
263
- case s.OpenSelectPanel:
263
+ case r.OpenSelectPanel:
264
264
  {
265
- const r = t.contentDocument.querySelector(o.data.payload.selector), i = {
265
+ const a = o.data.payload.targetRect, i = {
266
266
  getBoundingClientRect: () => {
267
- const d = t.getBoundingClientRect(), l = r.getBoundingClientRect();
267
+ const c = t.getBoundingClientRect();
268
268
  return {
269
- ...JSON.parse(JSON.stringify(l)),
270
- top: d.top + l.top,
271
- x: d.x + l.x
269
+ ...JSON.parse(JSON.stringify(a)),
270
+ top: c.top + a.top,
271
+ x: c.x + a.x
272
272
  };
273
273
  }
274
274
  };
275
- e.openSelectPanel(i, o.data.payload.options).then((d) => {
276
- t.contentWindow.postMessage({ type: s.OpenSelectPanelResult, payload: { result: d } }, "*");
275
+ e.openSelectPanel(i, o.data.payload.options).then((c) => {
276
+ t.contentWindow.postMessage({ type: r.OpenSelectPanelResult, payload: { result: c } }, "*");
277
277
  });
278
278
  }
279
279
  break;
280
- case s.OpenToast:
281
- e.openToast(o.data.payload.options).then((r) => {
280
+ case r.OpenToast:
281
+ e.openToast(o.data.payload.options).then((a) => {
282
282
  const { id: i } = o.data.payload;
283
- t.contentWindow && t.contentWindow.postMessage({ type: s.OpenToastResult, payload: { id: i, result: r } }, "*");
283
+ t.contentWindow && t.contentWindow.postMessage({ type: r.OpenToastResult, payload: { id: i, result: a } }, "*");
284
284
  });
285
285
  break;
286
- case s.ShowVpnStatusDetails:
286
+ case r.ShowVpnStatusDetails:
287
287
  e.showVpnStatusDetails(o.data.payload.agentId);
288
288
  break;
289
- case s.ToggleVpn:
289
+ case r.ToggleVpn:
290
290
  e.toggleVpn(o.data.payload.agentId);
291
291
  break;
292
- case s.NavigateByUrl:
292
+ case r.NavigateByUrl:
293
293
  e.navigateByUrl(o.data.payload.url);
294
294
  break;
295
- case s.SetTimeRange:
295
+ case r.SetTimeRange:
296
296
  e.setTimeRange(o.data.payload.timeRange);
297
297
  break;
298
298
  }
299
299
  }
300
300
  }
301
- class ne {
302
- constructor(e, n, a, o) {
303
- this.query = e, this.variable = n, this.tag = a, this._onCancel = o, Object.freeze(this);
301
+ class F {
302
+ constructor(e, n, s, o) {
303
+ this.query = e, this.variable = n, this.tag = s, this._onCancel = o, Object.freeze(this);
304
304
  }
305
305
  cancel() {
306
306
  this._onCancel && this._onCancel();
307
307
  }
308
308
  }
309
- var ae = typeof global == "object" && global && global.Object === Object && global;
310
- const oe = ae;
311
- var re = typeof self == "object" && self && self.Object === Object && self, se = oe || re || Function("return this")();
312
- const L = se;
313
- var ie = L.Symbol;
314
- const S = ie;
315
- var H = Object.prototype, le = H.hasOwnProperty, ce = H.toString, C = S ? S.toStringTag : void 0;
316
- function de(t) {
317
- var e = le.call(t, C), n = t[C];
309
+ var H = typeof global == "object" && global && global.Object === Object && global;
310
+ const V = H;
311
+ var N = typeof self == "object" && self && self.Object === Object && self, W = V || N || Function("return this")();
312
+ const $ = W;
313
+ var Q = $.Symbol;
314
+ const C = Q;
315
+ var E = Object.prototype, z = E.hasOwnProperty, G = E.toString, f = C ? C.toStringTag : void 0;
316
+ function J(t) {
317
+ var e = z.call(t, f), n = t[f];
318
318
  try {
319
- t[C] = void 0;
320
- var a = !0;
319
+ t[f] = void 0;
320
+ var s = !0;
321
321
  } catch {
322
322
  }
323
- var o = ce.call(t);
324
- return a && (e ? t[C] = n : delete t[C]), o;
323
+ var o = G.call(t);
324
+ return s && (e ? t[f] = n : delete t[f]), o;
325
325
  }
326
- var ue = Object.prototype, pe = ue.toString;
327
- function ge(t) {
328
- return pe.call(t);
326
+ var K = Object.prototype, X = K.toString;
327
+ function Y(t) {
328
+ return X.call(t);
329
329
  }
330
- var ye = "[object Null]", fe = "[object Undefined]", U = S ? S.toStringTag : void 0;
331
- function he(t) {
332
- return t == null ? t === void 0 ? fe : ye : U && U in Object(t) ? de(t) : ge(t);
330
+ var Z = "[object Null]", x = "[object Undefined]", M = C ? C.toStringTag : void 0;
331
+ function ee(t) {
332
+ return t == null ? t === void 0 ? x : Z : M && M in Object(t) ? J(t) : Y(t);
333
333
  }
334
- function V(t) {
334
+ function L(t) {
335
335
  var e = typeof t;
336
336
  return t != null && (e == "object" || e == "function");
337
337
  }
338
- var me = "[object AsyncFunction]", we = "[object Function]", Ce = "[object GeneratorFunction]", _e = "[object Proxy]";
339
- function De(t) {
340
- if (!V(t))
338
+ var te = "[object AsyncFunction]", ae = "[object Function]", ne = "[object GeneratorFunction]", oe = "[object Proxy]";
339
+ function se(t) {
340
+ if (!L(t))
341
341
  return !1;
342
- var e = he(t);
343
- return e == we || e == Ce || e == me || e == _e;
342
+ var e = ee(t);
343
+ return e == ae || e == ne || e == te || e == oe;
344
344
  }
345
- var Re = L["__core-js_shared__"];
346
- const v = Re;
347
- var k = function() {
348
- var t = /[^.]+$/.exec(v && v.keys && v.keys.IE_PROTO || "");
345
+ var re = $["__core-js_shared__"];
346
+ const O = re;
347
+ var v = function() {
348
+ var t = /[^.]+$/.exec(O && O.keys && O.keys.IE_PROTO || "");
349
349
  return t ? "Symbol(src)_1." + t : "";
350
350
  }();
351
- function be(t) {
352
- return !!k && k in t;
351
+ function ie(t) {
352
+ return !!v && v in t;
353
353
  }
354
- var Se = Function.prototype, Oe = Se.toString;
355
- function $e(t) {
354
+ var le = Function.prototype, de = le.toString;
355
+ function ce(t) {
356
356
  if (t != null) {
357
357
  try {
358
- return Oe.call(t);
358
+ return de.call(t);
359
359
  } catch {
360
360
  }
361
361
  try {
@@ -365,166 +365,166 @@ function $e(t) {
365
365
  }
366
366
  return "";
367
367
  }
368
- var Me = /[\\^$.*+?()[\]{}|]/g, Ee = /^\[object .+?Constructor\]$/, ve = Function.prototype, Te = Object.prototype, Ie = ve.toString, Le = Te.hasOwnProperty, qe = RegExp(
369
- "^" + Ie.call(Le).replace(Me, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
368
+ var pe = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, ge = Function.prototype, ye = Object.prototype, he = ge.toString, we = ye.hasOwnProperty, fe = RegExp(
369
+ "^" + he.call(we).replace(pe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
370
370
  );
371
- function Ae(t) {
372
- if (!V(t) || be(t))
371
+ function me(t) {
372
+ if (!L(t) || ie(t))
373
373
  return !1;
374
- var e = De(t) ? qe : Ee;
375
- return e.test($e(t));
374
+ var e = se(t) ? fe : ue;
375
+ return e.test(ce(t));
376
376
  }
377
- function Ue(t, e) {
377
+ function Ce(t, e) {
378
378
  return t == null ? void 0 : t[e];
379
379
  }
380
- function W(t, e) {
381
- var n = Ue(t, e);
382
- return Ae(n) ? n : void 0;
380
+ function k(t, e) {
381
+ var n = Ce(t, e);
382
+ return me(n) ? n : void 0;
383
383
  }
384
- function ke(t, e) {
384
+ function _e(t, e) {
385
385
  return t === e || t !== t && e !== e;
386
386
  }
387
- var Ne = W(Object, "create");
388
- const _ = Ne;
389
- function Pe() {
390
- this.__data__ = _ ? _(null) : {}, this.size = 0;
387
+ var De = k(Object, "create");
388
+ const m = De;
389
+ function Re() {
390
+ this.__data__ = m ? m(null) : {}, this.size = 0;
391
391
  }
392
- function je(t) {
392
+ function be(t) {
393
393
  var e = this.has(t) && delete this.__data__[t];
394
394
  return this.size -= e ? 1 : 0, e;
395
395
  }
396
- var Be = "__lodash_hash_undefined__", Fe = Object.prototype, He = Fe.hasOwnProperty;
397
- function Ve(t) {
396
+ var Oe = "__lodash_hash_undefined__", Se = Object.prototype, $e = Se.hasOwnProperty;
397
+ function Ie(t) {
398
398
  var e = this.__data__;
399
- if (_) {
399
+ if (m) {
400
400
  var n = e[t];
401
- return n === Be ? void 0 : n;
401
+ return n === Oe ? void 0 : n;
402
402
  }
403
- return He.call(e, t) ? e[t] : void 0;
403
+ return $e.call(e, t) ? e[t] : void 0;
404
404
  }
405
- var We = Object.prototype, ze = We.hasOwnProperty;
406
- function Qe(t) {
405
+ var Me = Object.prototype, ve = Me.hasOwnProperty;
406
+ function Te(t) {
407
407
  var e = this.__data__;
408
- return _ ? e[t] !== void 0 : ze.call(e, t);
408
+ return m ? e[t] !== void 0 : ve.call(e, t);
409
409
  }
410
- var Ge = "__lodash_hash_undefined__";
411
- function Je(t, e) {
410
+ var Ee = "__lodash_hash_undefined__";
411
+ function Le(t, e) {
412
412
  var n = this.__data__;
413
- return this.size += this.has(t) ? 0 : 1, n[t] = _ && e === void 0 ? Ge : e, this;
413
+ return this.size += this.has(t) ? 0 : 1, n[t] = m && e === void 0 ? Ee : e, this;
414
414
  }
415
- function h(t) {
415
+ function y(t) {
416
416
  var e = -1, n = t == null ? 0 : t.length;
417
417
  for (this.clear(); ++e < n; ) {
418
- var a = t[e];
419
- this.set(a[0], a[1]);
418
+ var s = t[e];
419
+ this.set(s[0], s[1]);
420
420
  }
421
421
  }
422
- h.prototype.clear = Pe;
423
- h.prototype.delete = je;
424
- h.prototype.get = Ve;
425
- h.prototype.has = Qe;
426
- h.prototype.set = Je;
427
- function Ke() {
422
+ y.prototype.clear = Re;
423
+ y.prototype.delete = be;
424
+ y.prototype.get = Ie;
425
+ y.prototype.has = Te;
426
+ y.prototype.set = Le;
427
+ function ke() {
428
428
  this.__data__ = [], this.size = 0;
429
429
  }
430
- function O(t, e) {
430
+ function _(t, e) {
431
431
  for (var n = t.length; n--; )
432
- if (ke(t[n][0], e))
432
+ if (_e(t[n][0], e))
433
433
  return n;
434
434
  return -1;
435
435
  }
436
- var Xe = Array.prototype, Ye = Xe.splice;
437
- function Ze(t) {
438
- var e = this.__data__, n = O(e, t);
436
+ var Ae = Array.prototype, Ue = Ae.splice;
437
+ function qe(t) {
438
+ var e = this.__data__, n = _(e, t);
439
439
  if (n < 0)
440
440
  return !1;
441
- var a = e.length - 1;
442
- return n == a ? e.pop() : Ye.call(e, n, 1), --this.size, !0;
441
+ var s = e.length - 1;
442
+ return n == s ? e.pop() : Ue.call(e, n, 1), --this.size, !0;
443
443
  }
444
- function xe(t) {
445
- var e = this.__data__, n = O(e, t);
444
+ function Pe(t) {
445
+ var e = this.__data__, n = _(e, t);
446
446
  return n < 0 ? void 0 : e[n][1];
447
447
  }
448
- function et(t) {
449
- return O(this.__data__, t) > -1;
448
+ function je(t) {
449
+ return _(this.__data__, t) > -1;
450
450
  }
451
- function tt(t, e) {
452
- var n = this.__data__, a = O(n, t);
453
- return a < 0 ? (++this.size, n.push([t, e])) : n[a][1] = e, this;
451
+ function Be(t, e) {
452
+ var n = this.__data__, s = _(n, t);
453
+ return s < 0 ? (++this.size, n.push([t, e])) : n[s][1] = e, this;
454
454
  }
455
455
  function w(t) {
456
456
  var e = -1, n = t == null ? 0 : t.length;
457
457
  for (this.clear(); ++e < n; ) {
458
- var a = t[e];
459
- this.set(a[0], a[1]);
460
- }
461
- }
462
- w.prototype.clear = Ke;
463
- w.prototype.delete = Ze;
464
- w.prototype.get = xe;
465
- w.prototype.has = et;
466
- w.prototype.set = tt;
467
- var nt = W(L, "Map");
468
- const at = nt;
469
- function ot() {
458
+ var s = t[e];
459
+ this.set(s[0], s[1]);
460
+ }
461
+ }
462
+ w.prototype.clear = ke;
463
+ w.prototype.delete = qe;
464
+ w.prototype.get = Pe;
465
+ w.prototype.has = je;
466
+ w.prototype.set = Be;
467
+ var Fe = k($, "Map");
468
+ const He = Fe;
469
+ function Ve() {
470
470
  this.size = 0, this.__data__ = {
471
- hash: new h(),
472
- map: new (at || w)(),
473
- string: new h()
471
+ hash: new y(),
472
+ map: new (He || w)(),
473
+ string: new y()
474
474
  };
475
475
  }
476
- function rt(t) {
476
+ function Ne(t) {
477
477
  var e = typeof t;
478
478
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
479
479
  }
480
- function $(t, e) {
480
+ function D(t, e) {
481
481
  var n = t.__data__;
482
- return rt(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
482
+ return Ne(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
483
483
  }
484
- function st(t) {
485
- var e = $(this, t).delete(t);
484
+ function We(t) {
485
+ var e = D(this, t).delete(t);
486
486
  return this.size -= e ? 1 : 0, e;
487
487
  }
488
- function it(t) {
489
- return $(this, t).get(t);
488
+ function Qe(t) {
489
+ return D(this, t).get(t);
490
490
  }
491
- function lt(t) {
492
- return $(this, t).has(t);
491
+ function ze(t) {
492
+ return D(this, t).has(t);
493
493
  }
494
- function ct(t, e) {
495
- var n = $(this, t), a = n.size;
496
- return n.set(t, e), this.size += n.size == a ? 0 : 1, this;
494
+ function Ge(t, e) {
495
+ var n = D(this, t), s = n.size;
496
+ return n.set(t, e), this.size += n.size == s ? 0 : 1, this;
497
497
  }
498
- function m(t) {
498
+ function h(t) {
499
499
  var e = -1, n = t == null ? 0 : t.length;
500
500
  for (this.clear(); ++e < n; ) {
501
- var a = t[e];
502
- this.set(a[0], a[1]);
501
+ var s = t[e];
502
+ this.set(s[0], s[1]);
503
503
  }
504
504
  }
505
- m.prototype.clear = ot;
506
- m.prototype.delete = st;
507
- m.prototype.get = it;
508
- m.prototype.has = lt;
509
- m.prototype.set = ct;
510
- var dt = "Expected a function";
511
- function q(t, e) {
505
+ h.prototype.clear = Ve;
506
+ h.prototype.delete = We;
507
+ h.prototype.get = Qe;
508
+ h.prototype.has = ze;
509
+ h.prototype.set = Ge;
510
+ var Je = "Expected a function";
511
+ function I(t, e) {
512
512
  if (typeof t != "function" || e != null && typeof e != "function")
513
- throw new TypeError(dt);
513
+ throw new TypeError(Je);
514
514
  var n = function() {
515
- var a = arguments, o = e ? e.apply(this, a) : a[0], r = n.cache;
516
- if (r.has(o))
517
- return r.get(o);
518
- var i = t.apply(this, a);
519
- return n.cache = r.set(o, i) || r, i;
515
+ var s = arguments, o = e ? e.apply(this, s) : s[0], a = n.cache;
516
+ if (a.has(o))
517
+ return a.get(o);
518
+ var i = t.apply(this, s);
519
+ return n.cache = a.set(o, i) || a, i;
520
520
  };
521
- return n.cache = new (q.Cache || m)(), n;
521
+ return n.cache = new (I.Cache || h)(), n;
522
522
  }
523
- q.Cache = m;
524
- const ut = 2, z = 1, Q = "";
525
- class M {
526
- constructor(e, n, a) {
527
- this.locale = e, this.queryRef = n, this.rawValue = a;
523
+ I.Cache = h;
524
+ const Ke = 2, A = 1, U = "";
525
+ class R {
526
+ constructor(e, n, s) {
527
+ this.locale = e, this.queryRef = n, this.rawValue = s;
528
528
  }
529
529
  /**
530
530
  * Creates a LoggingDataValue.
@@ -533,19 +533,19 @@ class M {
533
533
  * @param queryRef a reference to the query that produced this value
534
534
  * @param rawValue the raw value
535
535
  */
536
- static create(e, n, a) {
537
- return n.query.postAggr === "count" ? new pt(e, n, a) : new M(e, n, a);
536
+ static create(e, n, s) {
537
+ return n.query.postAggr === "count" ? new Xe(e, n, s) : new R(e, n, s);
538
538
  }
539
- getDecimals(e = ut) {
539
+ getDecimals(e = Ke) {
540
540
  return this.decimals ?? this.queryRef.query.decimals ?? e;
541
541
  }
542
542
  getFactor() {
543
- var e, n, a;
544
- return this.factor ?? this.queryRef.query.factor ?? ((n = (e = this.queryRef.tag) == null ? void 0 : e.variable) != null && n.factor ? parseFloat(this.queryRef.tag.variable.factor) : null) ?? ((a = this.queryRef.variable) != null && a.factor ? parseFloat(this.queryRef.variable.factor) : null) ?? z;
543
+ var e, n, s;
544
+ return this.factor ?? this.queryRef.query.factor ?? ((n = (e = this.queryRef.tag) == null ? void 0 : e.variable) != null && n.factor ? parseFloat(this.queryRef.tag.variable.factor) : null) ?? ((s = this.queryRef.variable) != null && s.factor ? parseFloat(this.queryRef.variable.factor) : null) ?? A;
545
545
  }
546
546
  getUnit() {
547
- var e, n, a;
548
- return this.unit ?? this.queryRef.query.unit ?? ((n = (e = this.queryRef.tag) == null ? void 0 : e.variable) == null ? void 0 : n.unit) ?? ((a = this.queryRef.variable) == null ? void 0 : a.unit) ?? Q;
547
+ var e, n, s;
548
+ return this.unit ?? this.queryRef.query.unit ?? ((n = (e = this.queryRef.tag) == null ? void 0 : e.variable) == null ? void 0 : n.unit) ?? ((s = this.queryRef.variable) == null ? void 0 : s.unit) ?? U;
549
549
  }
550
550
  setDecimals(e) {
551
551
  this.decimals = e;
@@ -561,16 +561,16 @@ class M {
561
561
  return this.rawValue;
562
562
  }
563
563
  toString() {
564
- var a, o, r, i;
565
- const e = this.locale ?? void 0, n = q((d, l, u, g) => {
566
- const Z = {
564
+ var s, o, a, i;
565
+ const e = this.locale ?? void 0, n = I((c, d, u, b) => {
566
+ const q = {
567
567
  style: "decimal",
568
- minimumFractionDigits: Math.floor(l),
569
- maximumFractionDigits: Math.floor(l)
568
+ minimumFractionDigits: Math.floor(d),
569
+ maximumFractionDigits: Math.floor(d)
570
570
  };
571
- return `${new Intl.NumberFormat(g, Z).format(d)}${u ? " " + u : ""}`;
571
+ return `${new Intl.NumberFormat(b, q).format(c)}${u ? " " + u : ""}`;
572
572
  });
573
- return this.rawValue === null ? "" : this.queryRef.query.postAggr === "count" ? n(this.rawValue, this.getDecimals(0), this.unit ?? this.queryRef.query.unit, e) : ((a = this.queryRef.variable) == null ? void 0 : a.type) === "str" ? this.rawValue : ((o = this.queryRef.variable) == null ? void 0 : o.type) === "bool" ? this.rawValue ? "True" : "False" : ((r = this.queryRef.variable) == null ? void 0 : r.type) === "int" ? n(
573
+ return this.rawValue === null ? "" : this.queryRef.query.postAggr === "count" ? n(this.rawValue, this.getDecimals(0), this.unit ?? this.queryRef.query.unit, e) : ((s = this.queryRef.variable) == null ? void 0 : s.type) === "str" ? this.rawValue : ((o = this.queryRef.variable) == null ? void 0 : o.type) === "bool" ? this.rawValue ? "True" : "False" : ((a = this.queryRef.variable) == null ? void 0 : a.type) === "int" ? n(
574
574
  this.rawValue,
575
575
  Number.isInteger(this.getFactor()) ? this.getDecimals(0) : this.getDecimals(),
576
576
  this.getUnit(),
@@ -578,205 +578,30 @@ class M {
578
578
  ) : ((i = this.queryRef.variable) == null ? void 0 : i.type) === "float" ? n(this.rawValue, this.getDecimals(), this.getUnit(), e) : String(this.getValue());
579
579
  }
580
580
  }
581
- class pt extends M {
581
+ class Xe extends R {
582
582
  getFactor() {
583
- return this.factor ?? this.queryRef.query.factor ?? z;
583
+ return this.factor ?? this.queryRef.query.factor ?? A;
584
584
  }
585
585
  getUnit() {
586
- return this.unit ?? this.queryRef.query.unit ?? Q;
586
+ return this.unit ?? this.queryRef.query.unit ?? U;
587
587
  }
588
588
  }
589
- function N(t) {
590
- return t.map(({ queryRef: n, time: a, value: o }) => {
591
- const r = new ne(n.query, n.variable, n.tag), i = M.create(o.locale, r, o.rawValue);
589
+ function T(t) {
590
+ return t.map(({ queryRef: n, time: s, value: o }) => {
591
+ const a = new F(n.query, n.variable, n.tag), i = R.create(o.locale, a, o.rawValue);
592
592
  return {
593
- queryRef: r,
594
- time: a,
593
+ queryRef: a,
594
+ time: s,
595
595
  value: i
596
596
  };
597
597
  });
598
598
  }
599
- let y, A, G;
600
- function P(t, e) {
601
- if (G = /* @__PURE__ */ new Date(), t.nodeType !== Node.ELEMENT_NODE)
602
- throw new Error("Can't generate CSS selector for non-element node type.");
603
- if (t.tagName.toLowerCase() === "html")
604
- return "html";
605
- const n = {
606
- root: document.body,
607
- idName: (o) => !0,
608
- className: (o) => !0,
609
- tagName: (o) => !0,
610
- attr: (o, r) => !1,
611
- seedMinLength: 1,
612
- optimizedMinLength: 2,
613
- threshold: 1e3,
614
- maxNumberOfTries: 1e4,
615
- timeoutMs: void 0
616
- };
617
- y = { ...n, ...e }, A = gt(y.root, n);
618
- let a = D(t, "all", () => D(t, "two", () => D(t, "one", () => D(t, "none"))));
619
- if (a) {
620
- const o = X(Y(a, t));
621
- return o.length > 0 && (a = o[0]), E(a);
622
- } else
623
- throw new Error("Selector was not found.");
624
- }
625
- function gt(t, e) {
626
- return t.nodeType === Node.DOCUMENT_NODE ? t : t === e.root ? t.ownerDocument : t;
627
- }
628
- function D(t, e, n) {
629
- let a = null, o = [], r = t, i = 0;
630
- for (; r; ) {
631
- const d = (/* @__PURE__ */ new Date()).getTime() - G.getTime();
632
- if (y.timeoutMs !== void 0 && d > y.timeoutMs)
633
- throw new Error(`Timeout: Can't find a unique selector after ${d}ms`);
634
- let l = b(yt(r)) || b(...ft(r)) || b(...ht(r)) || b(mt(r)) || [F()];
635
- const u = wt(r);
636
- if (e == "all")
637
- u && (l = l.concat(l.filter(T).map((g) => R(g, u))));
638
- else if (e == "two")
639
- l = l.slice(0, 1), u && (l = l.concat(l.filter(T).map((g) => R(g, u))));
640
- else if (e == "one") {
641
- const [g] = l = l.slice(0, 1);
642
- u && T(g) && (l = [R(g, u)]);
643
- } else
644
- e == "none" && (l = [F()], u && (l = [R(l[0], u)]));
645
- for (let g of l)
646
- g.level = i;
647
- if (o.push(l), o.length >= y.seedMinLength && (a = j(o, n), a))
648
- break;
649
- r = r.parentElement, i++;
650
- }
651
- return a || (a = j(o, n)), !a && n ? n() : a;
652
- }
653
- function j(t, e) {
654
- const n = X(K(t));
655
- if (n.length > y.threshold)
656
- return e ? e() : null;
657
- for (let a of n)
658
- if (J(a))
659
- return a;
660
- return null;
661
- }
662
- function E(t) {
663
- let e = t[0], n = e.name;
664
- for (let a = 1; a < t.length; a++) {
665
- const o = t[a].level || 0;
666
- e.level === o - 1 ? n = `${t[a].name} > ${n}` : n = `${t[a].name} ${n}`, e = t[a];
667
- }
668
- return n;
669
- }
670
- function B(t) {
671
- return t.map((e) => e.penalty).reduce((e, n) => e + n, 0);
672
- }
673
- function J(t) {
674
- const e = E(t);
675
- switch (A.querySelectorAll(e).length) {
676
- case 0:
677
- throw new Error(`Can't select any node with this selector: ${e}`);
678
- case 1:
679
- return !0;
680
- default:
681
- return !1;
682
- }
683
- }
684
- function yt(t) {
685
- const e = t.getAttribute("id");
686
- return e && y.idName(e) ? {
687
- name: "#" + CSS.escape(e),
688
- penalty: 0
689
- } : null;
690
- }
691
- function ft(t) {
692
- return Array.from(t.attributes).filter((n) => y.attr(n.name, n.value)).map((n) => ({
693
- name: `[${CSS.escape(n.name)}="${CSS.escape(n.value)}"]`,
694
- penalty: 0.5
695
- }));
696
- }
697
- function ht(t) {
698
- return Array.from(t.classList).filter(y.className).map((n) => ({
699
- name: "." + CSS.escape(n),
700
- penalty: 1
701
- }));
702
- }
703
- function mt(t) {
704
- const e = t.tagName.toLowerCase();
705
- return y.tagName(e) ? {
706
- name: e,
707
- penalty: 2
708
- } : null;
709
- }
710
- function F() {
711
- return {
712
- name: "*",
713
- penalty: 3
714
- };
715
- }
716
- function wt(t) {
717
- const e = t.parentNode;
718
- if (!e)
719
- return null;
720
- let n = e.firstChild;
721
- if (!n)
722
- return null;
723
- let a = 0;
724
- for (; n && (n.nodeType === Node.ELEMENT_NODE && a++, n !== t); )
725
- n = n.nextSibling;
726
- return a;
727
- }
728
- function R(t, e) {
729
- return {
730
- name: t.name + `:nth-child(${e})`,
731
- penalty: t.penalty + 1
732
- };
733
- }
734
- function T(t) {
735
- return t.name !== "html" && !t.name.startsWith("#");
736
- }
737
- function b(...t) {
738
- const e = t.filter(Ct);
739
- return e.length > 0 ? e : null;
740
- }
741
- function Ct(t) {
742
- return t != null;
743
- }
744
- function* K(t, e = []) {
745
- if (t.length > 0)
746
- for (let n of t[0])
747
- yield* K(t.slice(1, t.length), e.concat(n));
748
- else
749
- yield e;
750
- }
751
- function X(t) {
752
- return [...t].sort((e, n) => B(e) - B(n));
753
- }
754
- function* Y(t, e, n = {
755
- counter: 0,
756
- visited: /* @__PURE__ */ new Map()
757
- }) {
758
- if (t.length > 2 && t.length > y.optimizedMinLength)
759
- for (let a = 1; a < t.length - 1; a++) {
760
- if (n.counter > y.maxNumberOfTries)
761
- return;
762
- n.counter += 1;
763
- const o = [...t];
764
- o.splice(a, 1);
765
- const r = E(o);
766
- if (n.visited.has(r))
767
- return;
768
- J(o) && _t(o, e) && (yield o, n.visited.set(r, !0), yield* Y(o, e, n));
769
- }
770
- }
771
- function _t(t, e) {
772
- return A.querySelector(E(t)) === e;
773
- }
774
- class f extends Error {
599
+ class g extends Error {
775
600
  constructor(e = "Method is not implemented") {
776
601
  super(e), this.name = "NotImplementedError", this.message = e, this.stack = `NotImplementedError: ${e}`;
777
602
  }
778
603
  }
779
- class Dt {
604
+ class Ye {
780
605
  constructor(e) {
781
606
  p(this, "ontimerangechange", null);
782
607
  p(this, "onvpnclientstatuschange", null);
@@ -793,18 +618,18 @@ class Dt {
793
618
  p(this, "vpnClientStatus");
794
619
  p(this, "getDesignToken");
795
620
  this._getApiLinks = () => new Map(e._apiLinkEntries), this._getDesignTokens = () => new Map(e._designTokenEntries), this.appData = e.appData, this.componentBaseUrl = e.componentBaseUrl, this.destroyed = e.destroyed, this.mode = e.mode, this.inputs = e.inputs, this.inputMap = new Map(Object.entries(this.inputs)), this.timeRange = e.timeRange, this.timeRangeIsAdjustable = e.timeRangeIsAdjustable, this.vpnClientStatus = e.vpnClientStatus, this._messageHandler = this._messageHandler.bind(this), window.addEventListener("message", this._messageHandler, !1);
796
- const n = (r) => this._getDesignTokens().get(r) ?? "";
797
- n.var = (r) => `var(--uic-${r})`, this.getDesignToken = n;
798
- const a = new CSSStyleSheet(), o = e._designTokenEntries.map(([r, i]) => `--uic-${r}:${i}`);
799
- a.replaceSync(`:root {${o.join(";")}}`), window.document.adoptedStyleSheets.push(a);
621
+ const n = (a) => this._getDesignTokens().get(a) ?? "";
622
+ n.var = (a) => `var(--uic-${a})`, this.getDesignToken = n;
623
+ const s = new CSSStyleSheet(), o = e._designTokenEntries.map(([a, i]) => `--uic-${a}:${i}`);
624
+ s.replaceSync(`:root {${o.join(";")}}`), window.document.adoptedStyleSheets.push(s);
800
625
  }
801
626
  _messageHandler(e) {
802
627
  if (e.source === window.parent)
803
628
  switch (e.data.type) {
804
- case s.TimeRangeChange:
629
+ case r.TimeRangeChange:
805
630
  this.ontimerangechange && this.ontimerangechange(...e.data.payload);
806
631
  break;
807
- case s.VpnClientStatusChange:
632
+ case r.VpnClientStatusChange:
808
633
  this.onvpnclientstatuschange && this.onvpnclientstatuschange(...e.data.payload);
809
634
  break;
810
635
  }
@@ -813,145 +638,149 @@ class Dt {
813
638
  const e = crypto.randomUUID();
814
639
  return window.parent.postMessage(
815
640
  {
816
- type: s.BackendComponentClientCreate,
641
+ type: r.BackendComponentClientCreate,
817
642
  payload: { clientId: e }
818
643
  },
819
644
  "*"
820
- ), new Rt(e);
645
+ ), new Ze(e);
821
646
  }
822
647
  createLoggingDataClient() {
823
648
  const e = crypto.randomUUID();
824
649
  return window.parent.postMessage(
825
650
  {
826
- type: s.LoggingDataClientCreate,
651
+ type: r.LoggingDataClientCreate,
827
652
  payload: { clientId: e }
828
653
  },
829
654
  "*"
830
- ), new bt(e);
655
+ ), new xe(e);
831
656
  }
832
657
  createObjectStorageClient() {
833
- throw new f();
658
+ throw new g();
834
659
  }
835
660
  createResourceDataClient() {
836
661
  const e = crypto.randomUUID();
837
662
  return window.parent.postMessage(
838
663
  {
839
- type: s.ResourceDataClientCreate,
664
+ type: r.ResourceDataClientCreate,
840
665
  payload: { clientId: e }
841
666
  },
842
667
  "*"
843
- ), new St(e);
668
+ ), new et(e);
844
669
  }
845
670
  createTooltip() {
846
- throw new f();
671
+ throw new g();
847
672
  }
848
673
  destroy() {
849
- window.parent.postMessage({ type: s.Destroy }, "*"), window.removeEventListener("message", this._messageHandler, !1), this.destroyed = !0;
674
+ window.parent.postMessage({ type: r.Destroy }, "*"), window.removeEventListener("message", this._messageHandler, !1), this.destroyed = !0;
850
675
  }
851
676
  getApiUrl(e, n) {
852
- const a = this._getApiLinks().get(e);
853
- if (!a)
677
+ const s = this._getApiLinks().get(e);
678
+ if (!s)
854
679
  throw new Error("IxApiError: entry not found");
855
- return n ? Object.keys(n).sort().reduce((o, r) => {
856
- if (o.includes(`{${r}}`))
857
- return o.replace(`{${r}}`, n[r]);
680
+ return n ? Object.keys(n).sort().reduce((o, a) => {
681
+ if (o.includes(`{${a}}`))
682
+ return o.replace(`{${a}}`, n[a]);
858
683
  const i = new URL(o);
859
- return i.searchParams.set(r, n[r]), decodeURIComponent(i.href);
860
- }, a.href) : a.href;
684
+ return i.searchParams.set(a, n[a]), decodeURIComponent(i.href);
685
+ }, s.href) : s.href;
861
686
  }
862
687
  navigateByUrl(e) {
863
- window.parent.postMessage({ type: s.NavigateByUrl, payload: { url: e } }, "*");
688
+ window.parent.postMessage({ type: r.NavigateByUrl, payload: { url: e } }, "*");
864
689
  }
865
690
  openActionBottomSheet(e) {
866
691
  return new Promise((n) => {
867
- window.addEventListener("message", a, !1), window.parent.postMessage({ type: s.OpenActionBottomSheet, payload: { options: e } }, "*");
868
- function a(o) {
869
- o.source === window.parent && o.data.type === s.OpenActionBottomSheetResult && (window.removeEventListener("message", a, !1), n(o.data.payload.result));
692
+ window.addEventListener("message", s, !1), window.parent.postMessage({ type: r.OpenActionBottomSheet, payload: { options: e } }, "*");
693
+ function s(o) {
694
+ o.source === window.parent && o.data.type === r.OpenActionBottomSheetResult && (window.removeEventListener("message", s, !1), n(o.data.payload.result));
870
695
  }
871
696
  });
872
697
  }
873
698
  openActionMenu(e, n) {
874
- return new Promise((a) => {
875
- window.addEventListener("message", o, !1), window.parent.postMessage({ type: s.OpenActionMenu, payload: { selector: P(e), options: n } }, "*");
876
- function o(r) {
877
- r.source === window.parent && r.data.type === s.OpenActionMenuResult && (window.removeEventListener("message", o, !1), a(r.data.payload.result));
699
+ return new Promise((s) => {
700
+ window.addEventListener("message", a, !1);
701
+ const o = e.getBoundingClientRect();
702
+ window.parent.postMessage({ type: r.OpenActionMenu, payload: { targetRect: o, options: n } }, "*");
703
+ function a(i) {
704
+ i.source === window.parent && i.data.type === r.OpenActionMenuResult && (window.removeEventListener("message", a, !1), s(i.data.payload.result));
878
705
  }
879
706
  });
880
707
  }
881
708
  openAlertDialog(e) {
882
709
  return new Promise((n) => {
883
- window.addEventListener("message", a, !1), window.parent.postMessage({ type: s.OpenAlertDialog, payload: { options: e } }, "*");
884
- function a(o) {
885
- o.source === window.parent && o.data.type === s.OpenAlertDialogResult && (window.removeEventListener("message", a, !1), n(o.data.payload.result));
710
+ window.addEventListener("message", s, !1), window.parent.postMessage({ type: r.OpenAlertDialog, payload: { options: e } }, "*");
711
+ function s(o) {
712
+ o.source === window.parent && o.data.type === r.OpenAlertDialogResult && (window.removeEventListener("message", s, !1), n(o.data.payload.result));
886
713
  }
887
714
  });
888
715
  }
889
716
  openConfirmDialog(e) {
890
717
  return new Promise((n) => {
891
- window.addEventListener("message", a, !1), window.parent.postMessage({ type: s.OpenConfirmDialog, payload: { options: e } }, "*");
892
- function a(o) {
893
- o.source === window.parent && o.data.type === s.OpenConfirmDialogResult && (window.removeEventListener("message", a, !1), n(o.data.payload.result));
718
+ window.addEventListener("message", s, !1), window.parent.postMessage({ type: r.OpenConfirmDialog, payload: { options: e } }, "*");
719
+ function s(o) {
720
+ o.source === window.parent && o.data.type === r.OpenConfirmDialogResult && (window.removeEventListener("message", s, !1), n(o.data.payload.result));
894
721
  }
895
722
  });
896
723
  }
897
724
  openContentDialog(e) {
898
725
  if (typeof e.onopened == "function")
899
- throw new f('The "onopened" option is not implemented');
726
+ throw new g('The "onopened" option is not implemented');
900
727
  if (typeof e.onclose == "function")
901
- throw new f('The "onclose" option is not implemented');
728
+ throw new g('The "onclose" option is not implemented');
902
729
  if (e.pagination)
903
- throw new f('The "pagination" option is not implemented');
730
+ throw new g('The "pagination" option is not implemented');
904
731
  return new Promise((n) => {
905
- window.addEventListener("message", a, !1), window.parent.postMessage(
732
+ window.addEventListener("message", s, !1), window.parent.postMessage(
906
733
  {
907
- type: s.OpenContentDialog,
734
+ type: r.OpenContentDialog,
908
735
  payload: {
909
736
  options: e.htmlContent && typeof e.htmlContent != "string" ? { ...e, htmlContent: e.htmlContent.cloneNode(!0).outerHTML } : e
910
737
  }
911
738
  },
912
739
  "*"
913
740
  );
914
- function a(o) {
915
- o.source === window.parent && o.data.type === s.OpenContentDialogResult && (window.removeEventListener("message", a, !1), n(o.data.payload.result));
741
+ function s(o) {
742
+ o.source === window.parent && o.data.type === r.OpenContentDialogResult && (window.removeEventListener("message", s, !1), n(o.data.payload.result));
916
743
  }
917
744
  });
918
745
  }
919
746
  openFormDialog(e) {
920
747
  return new Promise((n) => {
921
- window.addEventListener("message", a, !1), window.parent.postMessage({ type: s.OpenFormDialog, payload: { options: e } }, "*");
922
- function a(o) {
923
- o.source === window.parent && o.data.type === s.OpenFormDialogResult && (window.removeEventListener("message", a, !1), n(o.data.payload.result));
748
+ window.addEventListener("message", s, !1), window.parent.postMessage({ type: r.OpenFormDialog, payload: { options: e } }, "*");
749
+ function s(o) {
750
+ o.source === window.parent && o.data.type === r.OpenFormDialogResult && (window.removeEventListener("message", s, !1), n(o.data.payload.result));
924
751
  }
925
752
  });
926
753
  }
927
754
  openSelectPanel(e, n) {
928
- return new Promise((a) => {
929
- window.addEventListener("message", o, !1), window.parent.postMessage({ type: s.OpenSelectPanel, payload: { selector: P(e), options: n } }, "*");
930
- function o(r) {
931
- r.source === window.parent && r.data.type === s.OpenSelectPanelResult && (window.removeEventListener("message", o, !1), a(r.data.payload.result));
755
+ return new Promise((s) => {
756
+ window.addEventListener("message", a, !1);
757
+ const o = e.getBoundingClientRect();
758
+ window.parent.postMessage({ type: r.OpenSelectPanel, payload: { targetRect: o, options: n } }, "*");
759
+ function a(i) {
760
+ i.source === window.parent && i.data.type === r.OpenSelectPanelResult && (window.removeEventListener("message", a, !1), s(i.data.payload.result));
932
761
  }
933
762
  });
934
763
  }
935
764
  openToast(...e) {
936
765
  return new Promise((n) => {
937
- window.addEventListener("message", r, !1);
938
- const a = crypto.randomUUID(), o = typeof e[0] == "string" ? { ...e[1], message: e[0] } : e[0];
939
- window.parent.postMessage({ type: s.OpenToast, payload: { id: a, options: o } }, "*");
940
- function r(i) {
941
- i.source === window.parent && i.data.type === s.OpenToastResult && i.data.payload.id === a && (window.removeEventListener("message", r, !1), n(i.data.payload.result));
766
+ window.addEventListener("message", a, !1);
767
+ const s = crypto.randomUUID(), o = typeof e[0] == "string" ? { ...e[1], message: e[0] } : e[0];
768
+ window.parent.postMessage({ type: r.OpenToast, payload: { id: s, options: o } }, "*");
769
+ function a(i) {
770
+ i.source === window.parent && i.data.type === r.OpenToastResult && i.data.payload.id === s && (window.removeEventListener("message", a, !1), n(i.data.payload.result));
942
771
  }
943
772
  });
944
773
  }
945
774
  sanitizeHtml() {
946
- throw new f();
775
+ throw new g();
947
776
  }
948
777
  saveAsFile() {
949
- throw new f();
778
+ throw new g();
950
779
  }
951
780
  setTimeRange(e) {
952
781
  window.parent.postMessage(
953
782
  {
954
- type: s.SetTimeRange,
783
+ type: r.SetTimeRange,
955
784
  payload: { timeRange: e }
956
785
  },
957
786
  "*"
@@ -960,32 +789,32 @@ class Dt {
960
789
  showVpnStatusDetails(e) {
961
790
  window.parent.postMessage(
962
791
  {
963
- type: s.ShowVpnStatusDetails,
792
+ type: r.ShowVpnStatusDetails,
964
793
  payload: { agentId: e }
965
794
  },
966
795
  "*"
967
796
  );
968
797
  }
969
798
  testVpnAccess() {
970
- throw new f();
799
+ throw new g();
971
800
  }
972
801
  toggleVpn(e) {
973
- window.parent.postMessage({ type: s.ToggleVpn, payload: { agentId: e } }, "*");
802
+ window.parent.postMessage({ type: r.ToggleVpn, payload: { agentId: e } }, "*");
974
803
  }
975
804
  translate() {
976
- throw new f();
805
+ throw new g();
977
806
  }
978
807
  }
979
- class Rt {
808
+ class Ze {
980
809
  constructor(e) {
981
810
  this.id = e;
982
811
  }
983
812
  call(e, n) {
984
- return new Promise((a) => {
813
+ return new Promise((s) => {
985
814
  const o = crypto.randomUUID();
986
- window.addEventListener("message", r, !1), window.parent.postMessage(
815
+ window.addEventListener("message", a, !1), window.parent.postMessage(
987
816
  {
988
- type: s.BackendComponentClientCall,
817
+ type: r.BackendComponentClientCall,
989
818
  payload: {
990
819
  clientId: this.id,
991
820
  callId: o,
@@ -995,48 +824,48 @@ class Rt {
995
824
  },
996
825
  "*"
997
826
  );
998
- function r(i) {
999
- i.source === window.parent && i.data.type === s.BackendComponentClientCallResult && i.data.payload.callId === o && (window.removeEventListener("message", r, !1), a(i.data.payload.result));
827
+ function a(i) {
828
+ i.source === window.parent && i.data.type === r.BackendComponentClientCallResult && i.data.payload.callId === o && (window.removeEventListener("message", a, !1), s(i.data.payload.result));
1000
829
  }
1001
830
  });
1002
831
  }
1003
832
  destroy() {
1004
833
  window.parent.postMessage(
1005
834
  {
1006
- type: s.BackendComponentClientDestroy,
835
+ type: r.BackendComponentClientDestroy,
1007
836
  payload: { clientId: this.id }
1008
837
  },
1009
838
  "*"
1010
839
  );
1011
840
  }
1012
841
  }
1013
- class bt {
842
+ class xe {
1014
843
  constructor(e) {
1015
844
  this.id = e;
1016
845
  }
1017
846
  query(e, n) {
1018
- const a = crypto.randomUUID();
847
+ const s = crypto.randomUUID();
1019
848
  return window.addEventListener("message", o, !1), window.parent.postMessage(
1020
849
  {
1021
- type: s.LoggingDataClientQuery,
1022
- payload: { clientId: this.id, queryId: a, query: e }
850
+ type: r.LoggingDataClientQuery,
851
+ payload: { clientId: this.id, queryId: s, query: e }
1023
852
  },
1024
853
  "*"
1025
854
  ), () => {
1026
855
  window.removeEventListener("message", o, !1);
1027
856
  };
1028
- function o(r) {
1029
- if (r.source === window.parent && r.data.type === s.LoggingDataClientQueryResult && r.data.payload.queryId === a) {
1030
- const { results: i } = r.data.payload;
857
+ function o(a) {
858
+ if (a.source === window.parent && a.data.type === r.LoggingDataClientQueryResult && a.data.payload.queryId === s) {
859
+ const { results: i } = a.data.payload;
1031
860
  if (e.length)
1032
861
  if (!e.queries || e.format !== "csv") {
1033
- const d = i.map((l) => N(l));
1034
- n(d);
862
+ const c = i.map((d) => T(d));
863
+ n(c);
1035
864
  } else
1036
- throw new f();
865
+ throw new g();
1037
866
  else {
1038
- const d = N(i);
1039
- n(d);
867
+ const c = T(i);
868
+ n(c);
1040
869
  }
1041
870
  }
1042
871
  }
@@ -1044,90 +873,90 @@ class bt {
1044
873
  destroy() {
1045
874
  window.parent.postMessage(
1046
875
  {
1047
- type: s.LoggingDataClientDestroy,
876
+ type: r.LoggingDataClientDestroy,
1048
877
  payload: { clientId: this.id }
1049
878
  },
1050
879
  "*"
1051
880
  );
1052
881
  }
1053
882
  }
1054
- class St {
883
+ class et {
1055
884
  constructor(e) {
1056
885
  this.id = e;
1057
886
  }
1058
887
  query(e, n) {
1059
- const a = crypto.randomUUID();
888
+ const s = crypto.randomUUID();
1060
889
  return window.addEventListener("message", o, !1), window.parent.postMessage(
1061
890
  {
1062
- type: s.ResourceDataClientQuery,
1063
- payload: { clientId: this.id, queryId: a, query: e }
891
+ type: r.ResourceDataClientQuery,
892
+ payload: { clientId: this.id, queryId: s, query: e }
1064
893
  },
1065
894
  "*"
1066
895
  ), () => {
1067
896
  window.removeEventListener("message", o, !1);
1068
897
  };
1069
- function o(r) {
1070
- r.source === window.parent && r.data.type === s.ResourceDataClientQueryResult && r.data.payload.queryId === a && n(r.data.payload.results);
898
+ function o(a) {
899
+ a.source === window.parent && a.data.type === r.ResourceDataClientQueryResult && a.data.payload.queryId === s && n(a.data.payload.results);
1071
900
  }
1072
901
  }
1073
902
  update(e) {
1074
903
  return new Promise((n) => {
1075
- const a = crypto.randomUUID();
904
+ const s = crypto.randomUUID();
1076
905
  window.addEventListener("message", o, !1), window.parent.postMessage(
1077
906
  {
1078
- type: s.ResourceDataClientUpdate,
1079
- payload: { clientId: this.id, updateId: a, update: e }
907
+ type: r.ResourceDataClientUpdate,
908
+ payload: { clientId: this.id, updateId: s, update: e }
1080
909
  },
1081
910
  "*"
1082
911
  );
1083
- function o(r) {
1084
- r.source === window.parent && r.data.type === s.ResourceDataClientUpdated && r.data.payload.updateId === a && (window.removeEventListener("message", o, !1), n());
912
+ function o(a) {
913
+ a.source === window.parent && a.data.type === r.ResourceDataClientUpdated && a.data.payload.updateId === s && (window.removeEventListener("message", o, !1), n());
1085
914
  }
1086
915
  });
1087
916
  }
1088
917
  render(e, n) {
1089
- const a = crypto.randomUUID();
918
+ const s = crypto.randomUUID();
1090
919
  return window.addEventListener("message", o, !1), window.parent.postMessage(
1091
920
  {
1092
- type: s.ResourceDataClientRender,
1093
- payload: { clientId: this.id, queryId: a, query: e }
921
+ type: r.ResourceDataClientRender,
922
+ payload: { clientId: this.id, queryId: s, query: e }
1094
923
  },
1095
924
  "*"
1096
925
  ), () => {
1097
926
  window.removeEventListener("message", o, !1);
1098
927
  };
1099
- function o(r) {
1100
- r.source === window.parent && r.data.type === s.ResourceDataClientRenderResult && r.data.payload.queryId === a && n(r.data.payload.results);
928
+ function o(a) {
929
+ a.source === window.parent && a.data.type === r.ResourceDataClientRenderResult && a.data.payload.queryId === s && n(a.data.payload.results);
1101
930
  }
1102
931
  }
1103
932
  destroy() {
1104
933
  window.parent.postMessage(
1105
934
  {
1106
- type: s.ResourceDataClientDestroy,
935
+ type: r.ResourceDataClientDestroy,
1107
936
  payload: { clientId: this.id }
1108
937
  },
1109
938
  "*"
1110
939
  );
1111
940
  }
1112
941
  }
1113
- function I(t) {
942
+ function S(t) {
1114
943
  const e = !!(t && t.migrateInputs);
1115
- return !e && I.__cache__ ? Promise.resolve(I.__cache__) : new Promise((n) => {
944
+ return !e && S.__cache__ ? Promise.resolve(S.__cache__) : new Promise((n) => {
1116
945
  window.addEventListener(
1117
946
  "message",
1118
- function a(o) {
1119
- if (o.source === window.parent && o.data && o.data.type === s.Created) {
1120
- let r = o.data.payload;
1121
- e && (r.inputs = t.migrateInputs(r.inputs, null));
1122
- const i = new Dt(r);
1123
- n(i), e || (I.__cache__ = i), window.removeEventListener("message", a, !1);
947
+ function s(o) {
948
+ if (o.source === window.parent && o.data && o.data.type === r.Created) {
949
+ let a = o.data.payload;
950
+ e && (a.inputs = t.migrateInputs(a.inputs, null));
951
+ const i = new Ye(a);
952
+ n(i), e || (S.__cache__ = i), window.removeEventListener("message", s, !1);
1124
953
  }
1125
954
  },
1126
955
  !1
1127
- ), window.parent.postMessage({ type: s.Create }, "*");
956
+ ), window.parent.postMessage({ type: r.Create }, "*");
1128
957
  });
1129
958
  }
1130
959
  export {
1131
- Mt as connect,
1132
- I as getComponentContext
960
+ nt as connect,
961
+ S as getComponentContext
1133
962
  };