pushfeedback 0.1.23 → 0.1.24

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.
@@ -1,1466 +1 @@
1
- const NAMESPACE = 'pushfeedback';
2
-
3
- /**
4
- * Virtual DOM patching algorithm based on Snabbdom by
5
- * Simon Friis Vindum (@paldepind)
6
- * Licensed under the MIT License
7
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
- *
9
- * Modified for Stencil's renderer and slot projection
10
- */
11
- let scopeId;
12
- let hostTagName;
13
- let isSvgMode = false;
14
- let queuePending = false;
15
- const createTime = (fnName, tagName = '') => {
16
- {
17
- return () => {
18
- return;
19
- };
20
- }
21
- };
22
- const uniqueTime = (key, measureText) => {
23
- {
24
- return () => {
25
- return;
26
- };
27
- }
28
- };
29
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
- /**
31
- * Default style mode id
32
- */
33
- /**
34
- * Reusable empty obj/array
35
- * Don't add values to these!!
36
- */
37
- const EMPTY_OBJ = {};
38
- /**
39
- * Namespaces
40
- */
41
- const SVG_NS = 'http://www.w3.org/2000/svg';
42
- const HTML_NS = 'http://www.w3.org/1999/xhtml';
43
- const isDef = (v) => v != null;
44
- const isComplexType = (o) => {
45
- // https://jsperf.com/typeof-fn-object/5
46
- o = typeof o;
47
- return o === 'object' || o === 'function';
48
- };
49
- /**
50
- * Helper method for querying a `meta` tag that contains a nonce value
51
- * out of a DOM's head.
52
- *
53
- * @param doc The DOM containing the `head` to query against
54
- * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
55
- * exists or the tag has no content.
56
- */
57
- function queryNonceMetaTagContent(doc) {
58
- var _a, _b, _c;
59
- return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
60
- }
61
- /**
62
- * Production h() function based on Preact by
63
- * Jason Miller (@developit)
64
- * Licensed under the MIT License
65
- * https://github.com/developit/preact/blob/master/LICENSE
66
- *
67
- * Modified for Stencil's compiler and vdom
68
- */
69
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
70
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
71
- const h = (nodeName, vnodeData, ...children) => {
72
- let child = null;
73
- let simple = false;
74
- let lastSimple = false;
75
- const vNodeChildren = [];
76
- const walk = (c) => {
77
- for (let i = 0; i < c.length; i++) {
78
- child = c[i];
79
- if (Array.isArray(child)) {
80
- walk(child);
81
- }
82
- else if (child != null && typeof child !== 'boolean') {
83
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
84
- child = String(child);
85
- }
86
- if (simple && lastSimple) {
87
- // If the previous child was simple (string), we merge both
88
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
89
- }
90
- else {
91
- // Append a new vNode, if it's text, we create a text vNode
92
- vNodeChildren.push(simple ? newVNode(null, child) : child);
93
- }
94
- lastSimple = simple;
95
- }
96
- }
97
- };
98
- walk(children);
99
- if (vnodeData) {
100
- {
101
- const classData = vnodeData.className || vnodeData.class;
102
- if (classData) {
103
- vnodeData.class =
104
- typeof classData !== 'object'
105
- ? classData
106
- : Object.keys(classData)
107
- .filter((k) => classData[k])
108
- .join(' ');
109
- }
110
- }
111
- }
112
- const vnode = newVNode(nodeName, null);
113
- vnode.$attrs$ = vnodeData;
114
- if (vNodeChildren.length > 0) {
115
- vnode.$children$ = vNodeChildren;
116
- }
117
- return vnode;
118
- };
119
- /**
120
- * A utility function for creating a virtual DOM node from a tag and some
121
- * possible text content.
122
- *
123
- * @param tag the tag for this element
124
- * @param text possible text content for the node
125
- * @returns a newly-minted virtual DOM node
126
- */
127
- const newVNode = (tag, text) => {
128
- const vnode = {
129
- $flags$: 0,
130
- $tag$: tag,
131
- $text$: text,
132
- $elm$: null,
133
- $children$: null,
134
- };
135
- {
136
- vnode.$attrs$ = null;
137
- }
138
- return vnode;
139
- };
140
- const Host = {};
141
- /**
142
- * Check whether a given node is a Host node or not
143
- *
144
- * @param node the virtual DOM node to check
145
- * @returns whether it's a Host node or not
146
- */
147
- const isHost = (node) => node && node.$tag$ === Host;
148
- /**
149
- * Parse a new property value for a given property type.
150
- *
151
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
152
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
153
- * 1. `any`, the type given to `propValue` in the function signature
154
- * 2. the type stored from `propType`.
155
- *
156
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
157
- *
158
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
159
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
160
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
161
- * ```tsx
162
- * <my-cmp prop-val={0}></my-cmp>
163
- * ```
164
- *
165
- * HTML prop values on the other hand, will always a string
166
- *
167
- * @param propValue the new value to coerce to some type
168
- * @param propType the type of the prop, expressed as a binary number
169
- * @returns the parsed/coerced value
170
- */
171
- const parsePropertyValue = (propValue, propType) => {
172
- // ensure this value is of the correct prop type
173
- if (propValue != null && !isComplexType(propValue)) {
174
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
175
- // per the HTML spec, any string value means it is a boolean true value
176
- // but we'll cheat here and say that the string "false" is the boolean false
177
- return propValue === 'false' ? false : propValue === '' || !!propValue;
178
- }
179
- if (propType & 1 /* MEMBER_FLAGS.String */) {
180
- // could have been passed as a number or boolean
181
- // but we still want it as a string
182
- return String(propValue);
183
- }
184
- // redundant return here for better minification
185
- return propValue;
186
- }
187
- // not sure exactly what type we want
188
- // so no need to change to a different type
189
- return propValue;
190
- };
191
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
192
- /**
193
- * Helper function to create & dispatch a custom Event on a provided target
194
- * @param elm the target of the Event
195
- * @param name the name to give the custom Event
196
- * @param opts options for configuring a custom Event
197
- * @returns the custom Event
198
- */
199
- const emitEvent = (elm, name, opts) => {
200
- const ev = plt.ce(name, opts);
201
- elm.dispatchEvent(ev);
202
- return ev;
203
- };
204
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
205
- const registerStyle = (scopeId, cssText, allowCS) => {
206
- let style = styles.get(scopeId);
207
- if (supportsConstructableStylesheets && allowCS) {
208
- style = (style || new CSSStyleSheet());
209
- if (typeof style === 'string') {
210
- style = cssText;
211
- }
212
- else {
213
- style.replaceSync(cssText);
214
- }
215
- }
216
- else {
217
- style = cssText;
218
- }
219
- styles.set(scopeId, style);
220
- };
221
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
222
- var _a;
223
- let scopeId = getScopeId(cmpMeta);
224
- const style = styles.get(scopeId);
225
- // if an element is NOT connected then getRootNode() will return the wrong root node
226
- // so the fallback is to always use the document for the root node in those cases
227
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
228
- if (style) {
229
- if (typeof style === 'string') {
230
- styleContainerNode = styleContainerNode.head || styleContainerNode;
231
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
232
- let styleElm;
233
- if (!appliedStyles) {
234
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
235
- }
236
- if (!appliedStyles.has(scopeId)) {
237
- {
238
- {
239
- styleElm = doc.createElement('style');
240
- styleElm.innerHTML = style;
241
- }
242
- // Apply CSP nonce to the style tag if it exists
243
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
244
- if (nonce != null) {
245
- styleElm.setAttribute('nonce', nonce);
246
- }
247
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
248
- }
249
- if (appliedStyles) {
250
- appliedStyles.add(scopeId);
251
- }
252
- }
253
- }
254
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
255
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
256
- }
257
- }
258
- return scopeId;
259
- };
260
- const attachStyles = (hostRef) => {
261
- const cmpMeta = hostRef.$cmpMeta$;
262
- const elm = hostRef.$hostElement$;
263
- const flags = cmpMeta.$flags$;
264
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
265
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
266
- if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
267
- // only required when we're NOT using native shadow dom (slot)
268
- // or this browser doesn't support native shadow dom
269
- // and this host element was NOT created with SSR
270
- // let's pick out the inner content for slot projection
271
- // create a node to represent where the original
272
- // content was first placed, which is useful later on
273
- // DOM WRITE!!
274
- elm['s-sc'] = scopeId;
275
- elm.classList.add(scopeId + '-h');
276
- }
277
- endAttachStyles();
278
- };
279
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
280
- /**
281
- * Production setAccessor() function based on Preact by
282
- * Jason Miller (@developit)
283
- * Licensed under the MIT License
284
- * https://github.com/developit/preact/blob/master/LICENSE
285
- *
286
- * Modified for Stencil's compiler and vdom
287
- */
288
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
289
- if (oldValue !== newValue) {
290
- let isProp = isMemberInElement(elm, memberName);
291
- let ln = memberName.toLowerCase();
292
- if (memberName === 'class') {
293
- const classList = elm.classList;
294
- const oldClasses = parseClassList(oldValue);
295
- const newClasses = parseClassList(newValue);
296
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
297
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
298
- }
299
- else if (memberName === 'style') {
300
- // update style attribute, css properties and values
301
- {
302
- for (const prop in oldValue) {
303
- if (!newValue || newValue[prop] == null) {
304
- if (prop.includes('-')) {
305
- elm.style.removeProperty(prop);
306
- }
307
- else {
308
- elm.style[prop] = '';
309
- }
310
- }
311
- }
312
- }
313
- for (const prop in newValue) {
314
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
315
- if (prop.includes('-')) {
316
- elm.style.setProperty(prop, newValue[prop]);
317
- }
318
- else {
319
- elm.style[prop] = newValue[prop];
320
- }
321
- }
322
- }
323
- }
324
- else if (memberName === 'ref') {
325
- // minifier will clean this up
326
- if (newValue) {
327
- newValue(elm);
328
- }
329
- }
330
- else if ((!isProp ) &&
331
- memberName[0] === 'o' &&
332
- memberName[1] === 'n') {
333
- // Event Handlers
334
- // so if the member name starts with "on" and the 3rd characters is
335
- // a capital letter, and it's not already a member on the element,
336
- // then we're assuming it's an event listener
337
- if (memberName[2] === '-') {
338
- // on- prefixed events
339
- // allows to be explicit about the dom event to listen without any magic
340
- // under the hood:
341
- // <my-cmp on-click> // listens for "click"
342
- // <my-cmp on-Click> // listens for "Click"
343
- // <my-cmp on-ionChange> // listens for "ionChange"
344
- // <my-cmp on-EVENTS> // listens for "EVENTS"
345
- memberName = memberName.slice(3);
346
- }
347
- else if (isMemberInElement(win, ln)) {
348
- // standard event
349
- // the JSX attribute could have been "onMouseOver" and the
350
- // member name "onmouseover" is on the window's prototype
351
- // so let's add the listener "mouseover", which is all lowercased
352
- memberName = ln.slice(2);
353
- }
354
- else {
355
- // custom event
356
- // the JSX attribute could have been "onMyCustomEvent"
357
- // so let's trim off the "on" prefix and lowercase the first character
358
- // and add the listener "myCustomEvent"
359
- // except for the first character, we keep the event name case
360
- memberName = ln[2] + memberName.slice(3);
361
- }
362
- if (oldValue) {
363
- plt.rel(elm, memberName, oldValue, false);
364
- }
365
- if (newValue) {
366
- plt.ael(elm, memberName, newValue, false);
367
- }
368
- }
369
- else {
370
- // Set property if it exists and it's not a SVG
371
- const isComplex = isComplexType(newValue);
372
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
373
- try {
374
- if (!elm.tagName.includes('-')) {
375
- const n = newValue == null ? '' : newValue;
376
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
377
- if (memberName === 'list') {
378
- isProp = false;
379
- }
380
- else if (oldValue == null || elm[memberName] != n) {
381
- elm[memberName] = n;
382
- }
383
- }
384
- else {
385
- elm[memberName] = newValue;
386
- }
387
- }
388
- catch (e) { }
389
- }
390
- if (newValue == null || newValue === false) {
391
- if (newValue !== false || elm.getAttribute(memberName) === '') {
392
- {
393
- elm.removeAttribute(memberName);
394
- }
395
- }
396
- }
397
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
398
- newValue = newValue === true ? '' : newValue;
399
- {
400
- elm.setAttribute(memberName, newValue);
401
- }
402
- }
403
- }
404
- }
405
- };
406
- const parseClassListRegex = /\s/;
407
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
408
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
409
- // if the element passed in is a shadow root, which is a document fragment
410
- // then we want to be adding attrs/props to the shadow root's "host" element
411
- // if it's not a shadow root, then we add attrs/props to the same element
412
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
413
- ? newVnode.$elm$.host
414
- : newVnode.$elm$;
415
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
416
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
417
- {
418
- // remove attributes no longer present on the vnode by setting them to undefined
419
- for (memberName in oldVnodeAttrs) {
420
- if (!(memberName in newVnodeAttrs)) {
421
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
422
- }
423
- }
424
- }
425
- // add new & update changed attributes
426
- for (memberName in newVnodeAttrs) {
427
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
428
- }
429
- };
430
- /**
431
- * Create a DOM Node corresponding to one of the children of a given VNode.
432
- *
433
- * @param oldParentVNode the parent VNode from the previous render
434
- * @param newParentVNode the parent VNode from the current render
435
- * @param childIndex the index of the VNode, in the _new_ parent node's
436
- * children, for which we will create a new DOM node
437
- * @param parentElm the parent DOM node which our new node will be a child of
438
- * @returns the newly created node
439
- */
440
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
441
- // tslint:disable-next-line: prefer-const
442
- const newVNode = newParentVNode.$children$[childIndex];
443
- let i = 0;
444
- let elm;
445
- let childNode;
446
- if (newVNode.$text$ !== null) {
447
- // create text node
448
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
449
- }
450
- else {
451
- if (!isSvgMode) {
452
- isSvgMode = newVNode.$tag$ === 'svg';
453
- }
454
- // create element
455
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
456
- );
457
- if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
458
- isSvgMode = false;
459
- }
460
- // add css classes, attrs, props, listeners, etc.
461
- {
462
- updateElement(null, newVNode, isSvgMode);
463
- }
464
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
465
- // if there is a scopeId and this is the initial render
466
- // then let's add the scopeId as a css class
467
- elm.classList.add((elm['s-si'] = scopeId));
468
- }
469
- if (newVNode.$children$) {
470
- for (i = 0; i < newVNode.$children$.length; ++i) {
471
- // create the node
472
- childNode = createElm(oldParentVNode, newVNode, i);
473
- // return node could have been null
474
- if (childNode) {
475
- // append our new node
476
- elm.appendChild(childNode);
477
- }
478
- }
479
- }
480
- {
481
- if (newVNode.$tag$ === 'svg') {
482
- // Only reset the SVG context when we're exiting <svg> element
483
- isSvgMode = false;
484
- }
485
- else if (elm.tagName === 'foreignObject') {
486
- // Reenter SVG context when we're exiting <foreignObject> element
487
- isSvgMode = true;
488
- }
489
- }
490
- }
491
- return elm;
492
- };
493
- /**
494
- * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
495
- * add them to the DOM in the appropriate place.
496
- *
497
- * @param parentElm the DOM node which should be used as a parent for the new
498
- * DOM nodes
499
- * @param before a child of the `parentElm` which the new children should be
500
- * inserted before (optional)
501
- * @param parentVNode the parent virtual DOM node
502
- * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
503
- * @param startIdx the index in the child virtual DOM nodes at which to start
504
- * creating DOM nodes (inclusive)
505
- * @param endIdx the index in the child virtual DOM nodes at which to stop
506
- * creating DOM nodes (inclusive)
507
- */
508
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
509
- let containerElm = (parentElm);
510
- let childNode;
511
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
512
- containerElm = containerElm.shadowRoot;
513
- }
514
- for (; startIdx <= endIdx; ++startIdx) {
515
- if (vnodes[startIdx]) {
516
- childNode = createElm(null, parentVNode, startIdx);
517
- if (childNode) {
518
- vnodes[startIdx].$elm$ = childNode;
519
- containerElm.insertBefore(childNode, before);
520
- }
521
- }
522
- }
523
- };
524
- /**
525
- * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
526
- * This can be used to, for instance, clean up after a list of children which
527
- * should no longer be shown.
528
- *
529
- * This function also handles some of Stencil's slot relocation logic.
530
- *
531
- * @param vnodes a list of virtual DOM nodes to remove
532
- * @param startIdx the index at which to start removing nodes (inclusive)
533
- * @param endIdx the index at which to stop removing nodes (inclusive)
534
- * @param vnode a VNode
535
- * @param elm an element
536
- */
537
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
538
- for (; startIdx <= endIdx; ++startIdx) {
539
- if ((vnode = vnodes[startIdx])) {
540
- elm = vnode.$elm$;
541
- callNodeRefs(vnode);
542
- // remove the vnode's element from the dom
543
- elm.remove();
544
- }
545
- }
546
- };
547
- /**
548
- * Reconcile the children of a new VNode with the children of an old VNode by
549
- * traversing the two collections of children, identifying nodes that are
550
- * conserved or changed, calling out to `patch` to make any necessary
551
- * updates to the DOM, and rearranging DOM nodes as needed.
552
- *
553
- * The algorithm for reconciling children works by analyzing two 'windows' onto
554
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
555
- * 'windows' by storing start and end indices and references to the
556
- * corresponding array entries. Initially the two 'windows' are basically equal
557
- * to the entire array, but we progressively narrow the windows until there are
558
- * no children left to update by doing the following:
559
- *
560
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
561
- * that if we have an initial array like the following we'll end up dealing
562
- * only with a window bounded by the highlighted elements:
563
- *
564
- * [null, null, VNode1 , ... , VNode2, null, null]
565
- * ^^^^^^ ^^^^^^
566
- *
567
- * 2. Check to see if the elements at the head and tail positions are equal
568
- * across the windows. This will basically detect elements which haven't
569
- * been added, removed, or changed position, i.e. if you had the following
570
- * VNode elements (represented as HTML):
571
- *
572
- * oldVNode: `<div><p><span>HEY</span></p></div>`
573
- * newVNode: `<div><p><span>THERE</span></p></div>`
574
- *
575
- * Then when comparing the children of the `<div>` tag we check the equality
576
- * of the VNodes corresponding to the `<p>` tags and, since they are the
577
- * same tag in the same position, we'd be able to avoid completely
578
- * re-rendering the subtree under them with a new DOM element and would just
579
- * call out to `patch` to handle reconciling their children and so on.
580
- *
581
- * 3. Check, for both windows, to see if the element at the beginning of the
582
- * window corresponds to the element at the end of the other window. This is
583
- * a heuristic which will let us identify _some_ situations in which
584
- * elements have changed position, for instance it _should_ detect that the
585
- * children nodes themselves have not changed but merely moved in the
586
- * following example:
587
- *
588
- * oldVNode: `<div><element-one /><element-two /></div>`
589
- * newVNode: `<div><element-two /><element-one /></div>`
590
- *
591
- * If we find cases like this then we also need to move the concrete DOM
592
- * elements corresponding to the moved children to write the re-order to the
593
- * DOM.
594
- *
595
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
596
- * nodes in the old children which have the same key as the first element in
597
- * our window on the new children. If we find such a node we handle calling
598
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
599
- * what we find.
600
- *
601
- * Finally, once we've narrowed our 'windows' to the point that either of them
602
- * collapse (i.e. they have length 0) we then handle any remaining VNode
603
- * insertion or deletion that needs to happen to get a DOM state that correctly
604
- * reflects the new child VNodes. If, for instance, after our window on the old
605
- * children has collapsed we still have more nodes on the new children that
606
- * we haven't dealt with yet then we need to add them, or if the new children
607
- * collapse but we still have unhandled _old_ children then we need to make
608
- * sure the corresponding DOM nodes are removed.
609
- *
610
- * @param parentElm the node into which the parent VNode is rendered
611
- * @param oldCh the old children of the parent node
612
- * @param newVNode the new VNode which will replace the parent
613
- * @param newCh the new children of the parent node
614
- */
615
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
616
- let oldStartIdx = 0;
617
- let newStartIdx = 0;
618
- let oldEndIdx = oldCh.length - 1;
619
- let oldStartVnode = oldCh[0];
620
- let oldEndVnode = oldCh[oldEndIdx];
621
- let newEndIdx = newCh.length - 1;
622
- let newStartVnode = newCh[0];
623
- let newEndVnode = newCh[newEndIdx];
624
- let node;
625
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
626
- if (oldStartVnode == null) {
627
- // VNode might have been moved left
628
- oldStartVnode = oldCh[++oldStartIdx];
629
- }
630
- else if (oldEndVnode == null) {
631
- oldEndVnode = oldCh[--oldEndIdx];
632
- }
633
- else if (newStartVnode == null) {
634
- newStartVnode = newCh[++newStartIdx];
635
- }
636
- else if (newEndVnode == null) {
637
- newEndVnode = newCh[--newEndIdx];
638
- }
639
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
640
- // if the start nodes are the same then we should patch the new VNode
641
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
642
- // indices to reflect that. We don't need to move any DOM Nodes around
643
- // since things are matched up in order.
644
- patch(oldStartVnode, newStartVnode);
645
- oldStartVnode = oldCh[++oldStartIdx];
646
- newStartVnode = newCh[++newStartIdx];
647
- }
648
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
649
- // likewise, if the end nodes are the same we patch new onto old and
650
- // decrement our end indices, and also likewise in this case we don't
651
- // need to move any DOM Nodes.
652
- patch(oldEndVnode, newEndVnode);
653
- oldEndVnode = oldCh[--oldEndIdx];
654
- newEndVnode = newCh[--newEndIdx];
655
- }
656
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
657
- patch(oldStartVnode, newEndVnode);
658
- // We need to move the element for `oldStartVnode` into a position which
659
- // will be appropriate for `newEndVnode`. For this we can use
660
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
661
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
662
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
663
- //
664
- // <old-start-node />
665
- // <some-intervening-node />
666
- // <old-end-node />
667
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
668
- // <next-sibling />
669
- //
670
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
671
- // the node for `oldStartVnode` at the end of the children of
672
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
673
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
674
- // append it to the children of the parent element.
675
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
676
- oldStartVnode = oldCh[++oldStartIdx];
677
- newEndVnode = newCh[--newEndIdx];
678
- }
679
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
680
- patch(oldEndVnode, newStartVnode);
681
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
682
- // the same node, so since we're here we know that they are not. Thus we
683
- // can move the element for `oldEndVnode` _before_ the element for
684
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
685
- // future.
686
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
687
- oldEndVnode = oldCh[--oldEndIdx];
688
- newStartVnode = newCh[++newStartIdx];
689
- }
690
- else {
691
- {
692
- // We either didn't find an element in the old children that matches
693
- // the key of the first new child OR the build is not using `key`
694
- // attributes at all. In either case we need to create a new element
695
- // for the new node.
696
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
697
- newStartVnode = newCh[++newStartIdx];
698
- }
699
- if (node) {
700
- // if we created a new node then handle inserting it to the DOM
701
- {
702
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
703
- }
704
- }
705
- }
706
- }
707
- if (oldStartIdx > oldEndIdx) {
708
- // we have some more new nodes to add which don't match up with old nodes
709
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
710
- }
711
- else if (newStartIdx > newEndIdx) {
712
- // there are nodes in the `oldCh` array which no longer correspond to nodes
713
- // in the new array, so lets remove them (which entails cleaning up the
714
- // relevant DOM nodes)
715
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
716
- }
717
- };
718
- /**
719
- * Compare two VNodes to determine if they are the same
720
- *
721
- * **NB**: This function is an equality _heuristic_ based on the available
722
- * information set on the two VNodes and can be misleading under certain
723
- * circumstances. In particular, if the two nodes do not have `key` attrs
724
- * (available under `$key$` on VNodes) then the function falls back on merely
725
- * checking that they have the same tag.
726
- *
727
- * So, in other words, if `key` attrs are not set on VNodes which may be
728
- * changing order within a `children` array or something along those lines then
729
- * we could obtain a false negative and then have to do needless re-rendering
730
- * (i.e. we'd say two VNodes aren't equal when in fact they should be).
731
- *
732
- * @param leftVNode the first VNode to check
733
- * @param rightVNode the second VNode to check
734
- * @returns whether they're equal or not
735
- */
736
- const isSameVnode = (leftVNode, rightVNode) => {
737
- // compare if two vnode to see if they're "technically" the same
738
- // need to have the same element tag, and same key to be the same
739
- if (leftVNode.$tag$ === rightVNode.$tag$) {
740
- return true;
741
- }
742
- return false;
743
- };
744
- /**
745
- * Handle reconciling an outdated VNode with a new one which corresponds to
746
- * it. This function handles flushing updates to the DOM and reconciling the
747
- * children of the two nodes (if any).
748
- *
749
- * @param oldVNode an old VNode whose DOM element and children we want to update
750
- * @param newVNode a new VNode representing an updated version of the old one
751
- */
752
- const patch = (oldVNode, newVNode) => {
753
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
754
- const oldChildren = oldVNode.$children$;
755
- const newChildren = newVNode.$children$;
756
- const tag = newVNode.$tag$;
757
- const text = newVNode.$text$;
758
- if (text === null) {
759
- {
760
- // test if we're rendering an svg element, or still rendering nodes inside of one
761
- // only add this to the when the compiler sees we're using an svg somewhere
762
- isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
763
- }
764
- {
765
- if (tag === 'slot')
766
- ;
767
- else {
768
- // either this is the first render of an element OR it's an update
769
- // AND we already know it's possible it could have changed
770
- // this updates the element's css classes, attrs, props, listeners, etc.
771
- updateElement(oldVNode, newVNode, isSvgMode);
772
- }
773
- }
774
- if (oldChildren !== null && newChildren !== null) {
775
- // looks like there's child vnodes for both the old and new vnodes
776
- // so we need to call `updateChildren` to reconcile them
777
- updateChildren(elm, oldChildren, newVNode, newChildren);
778
- }
779
- else if (newChildren !== null) {
780
- // no old child vnodes, but there are new child vnodes to add
781
- if (oldVNode.$text$ !== null) {
782
- // the old vnode was text, so be sure to clear it out
783
- elm.textContent = '';
784
- }
785
- // add the new vnode children
786
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
787
- }
788
- else if (oldChildren !== null) {
789
- // no new child vnodes, but there are old child vnodes to remove
790
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
791
- }
792
- if (isSvgMode && tag === 'svg') {
793
- isSvgMode = false;
794
- }
795
- }
796
- else if (oldVNode.$text$ !== text) {
797
- // update the text content for the text only vnode
798
- // and also only if the text is different than before
799
- elm.data = text;
800
- }
801
- };
802
- const callNodeRefs = (vNode) => {
803
- {
804
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
805
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
806
- }
807
- };
808
- /**
809
- * The main entry point for Stencil's virtual DOM-based rendering engine
810
- *
811
- * Given a {@link d.HostRef} container and some virtual DOM nodes, this
812
- * function will handle creating a virtual DOM tree with a single root, patching
813
- * the current virtual DOM tree onto an old one (if any), dealing with slot
814
- * relocation, and reflecting attributes.
815
- *
816
- * @param hostRef data needed to root and render the virtual DOM tree, such as
817
- * the DOM node into which it should be rendered.
818
- * @param renderFnResults the virtual DOM nodes to be rendered
819
- */
820
- const renderVdom = (hostRef, renderFnResults) => {
821
- const hostElm = hostRef.$hostElement$;
822
- const cmpMeta = hostRef.$cmpMeta$;
823
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
824
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
825
- hostTagName = hostElm.tagName;
826
- if (cmpMeta.$attrsToReflect$) {
827
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
828
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
829
- }
830
- rootVnode.$tag$ = null;
831
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
832
- hostRef.$vnode$ = rootVnode;
833
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
834
- {
835
- scopeId = hostElm['s-sc'];
836
- }
837
- // synchronous patch
838
- patch(oldVNode, rootVnode);
839
- };
840
- const attachToAncestor = (hostRef, ancestorComponent) => {
841
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
842
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
843
- }
844
- };
845
- const scheduleUpdate = (hostRef, isInitialLoad) => {
846
- {
847
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
848
- }
849
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
850
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
851
- return;
852
- }
853
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
854
- // there is no ancestor component or the ancestor component
855
- // has already fired off its lifecycle update then
856
- // fire off the initial update
857
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
858
- return writeTask(dispatch) ;
859
- };
860
- const dispatchHooks = (hostRef, isInitialLoad) => {
861
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
862
- const instance = hostRef.$lazyInstance$ ;
863
- let promise;
864
- if (isInitialLoad) {
865
- {
866
- promise = safeCall(instance, 'componentWillLoad');
867
- }
868
- }
869
- endSchedule();
870
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
871
- };
872
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
873
- // updateComponent
874
- const elm = hostRef.$hostElement$;
875
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
876
- const rc = elm['s-rc'];
877
- if (isInitialLoad) {
878
- // DOM WRITE!
879
- attachStyles(hostRef);
880
- }
881
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
882
- {
883
- callRender(hostRef, instance);
884
- }
885
- if (rc) {
886
- // ok, so turns out there are some child host elements
887
- // waiting on this parent element to load
888
- // let's fire off all update callbacks waiting
889
- rc.map((cb) => cb());
890
- elm['s-rc'] = undefined;
891
- }
892
- endRender();
893
- endUpdate();
894
- {
895
- const childrenPromises = elm['s-p'];
896
- const postUpdate = () => postUpdateComponent(hostRef);
897
- if (childrenPromises.length === 0) {
898
- postUpdate();
899
- }
900
- else {
901
- Promise.all(childrenPromises).then(postUpdate);
902
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
903
- childrenPromises.length = 0;
904
- }
905
- }
906
- };
907
- const callRender = (hostRef, instance, elm) => {
908
- try {
909
- instance = instance.render() ;
910
- {
911
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
912
- }
913
- {
914
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
915
- }
916
- {
917
- {
918
- // looks like we've got child nodes to render into this host element
919
- // or we need to update the css class/attrs on the host element
920
- // DOM WRITE!
921
- {
922
- renderVdom(hostRef, instance);
923
- }
924
- }
925
- }
926
- }
927
- catch (e) {
928
- consoleError(e, hostRef.$hostElement$);
929
- }
930
- return null;
931
- };
932
- const postUpdateComponent = (hostRef) => {
933
- const tagName = hostRef.$cmpMeta$.$tagName$;
934
- const elm = hostRef.$hostElement$;
935
- const endPostUpdate = createTime('postUpdate', tagName);
936
- const instance = hostRef.$lazyInstance$ ;
937
- const ancestorComponent = hostRef.$ancestorComponent$;
938
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
939
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
940
- {
941
- // DOM WRITE!
942
- addHydratedFlag(elm);
943
- }
944
- {
945
- safeCall(instance, 'componentDidLoad');
946
- }
947
- endPostUpdate();
948
- {
949
- hostRef.$onReadyResolve$(elm);
950
- if (!ancestorComponent) {
951
- appDidLoad();
952
- }
953
- }
954
- }
955
- else {
956
- endPostUpdate();
957
- }
958
- // load events fire from bottom to top
959
- // the deepest elements load first then bubbles up
960
- {
961
- if (hostRef.$onRenderResolve$) {
962
- hostRef.$onRenderResolve$();
963
- hostRef.$onRenderResolve$ = undefined;
964
- }
965
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
966
- nextTick(() => scheduleUpdate(hostRef, false));
967
- }
968
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
969
- }
970
- // ( •_•)
971
- // ( •_•)>⌐■-■
972
- // (⌐■_■)
973
- };
974
- const appDidLoad = (who) => {
975
- // on appload
976
- // we have finish the first big initial render
977
- {
978
- addHydratedFlag(doc.documentElement);
979
- }
980
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
981
- };
982
- const safeCall = (instance, method, arg) => {
983
- if (instance && instance[method]) {
984
- try {
985
- return instance[method](arg);
986
- }
987
- catch (e) {
988
- consoleError(e);
989
- }
990
- }
991
- return undefined;
992
- };
993
- const then = (promise, thenFn) => {
994
- return promise && promise.then ? promise.then(thenFn) : thenFn();
995
- };
996
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
997
- ;
998
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
999
- const setValue = (ref, propName, newVal, cmpMeta) => {
1000
- // check our new property value against our internal value
1001
- const hostRef = getHostRef(ref);
1002
- const oldVal = hostRef.$instanceValues$.get(propName);
1003
- const flags = hostRef.$flags$;
1004
- const instance = hostRef.$lazyInstance$ ;
1005
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1006
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1007
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1008
- const didValueChange = newVal !== oldVal && !areBothNaN;
1009
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1010
- // gadzooks! the property's value has changed!!
1011
- // set our new value!
1012
- hostRef.$instanceValues$.set(propName, newVal);
1013
- if (instance) {
1014
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1015
- // looks like this value actually changed, so we've got work to do!
1016
- // but only if we've already rendered, otherwise just chill out
1017
- // queue that we need to do an update, but don't worry about queuing
1018
- // up millions cuz this function ensures it only runs once
1019
- scheduleUpdate(hostRef, false);
1020
- }
1021
- }
1022
- }
1023
- };
1024
- /**
1025
- * Attach a series of runtime constructs to a compiled Stencil component
1026
- * constructor, including getters and setters for the `@Prop` and `@State`
1027
- * decorators, callbacks for when attributes change, and so on.
1028
- *
1029
- * @param Cstr the constructor for a component that we need to process
1030
- * @param cmpMeta metadata collected previously about the component
1031
- * @param flags a number used to store a series of bit flags
1032
- * @returns a reference to the same constructor passed in (but now mutated)
1033
- */
1034
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1035
- if (cmpMeta.$members$) {
1036
- // It's better to have a const than two Object.entries()
1037
- const members = Object.entries(cmpMeta.$members$);
1038
- const prototype = Cstr.prototype;
1039
- members.map(([memberName, [memberFlags]]) => {
1040
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1041
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1042
- // proxyComponent - prop
1043
- Object.defineProperty(prototype, memberName, {
1044
- get() {
1045
- // proxyComponent, get value
1046
- return getValue(this, memberName);
1047
- },
1048
- set(newValue) {
1049
- // proxyComponent, set value
1050
- setValue(this, memberName, newValue, cmpMeta);
1051
- },
1052
- configurable: true,
1053
- enumerable: true,
1054
- });
1055
- }
1056
- });
1057
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1058
- const attrNameToPropName = new Map();
1059
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1060
- plt.jmp(() => {
1061
- const propName = attrNameToPropName.get(attrName);
1062
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1063
- // in the case where an attribute was set inline.
1064
- // ```html
1065
- // <my-component some-attribute="some-value"></my-component>
1066
- // ```
1067
- //
1068
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1069
- // programmatically changes it before it has been upgraded as shown below:
1070
- //
1071
- // ```html
1072
- // <!-- this component has _not_ been upgraded yet -->
1073
- // <my-component id="test" some-attribute="some-value"></my-component>
1074
- // <script>
1075
- // // grab non-upgraded component
1076
- // el = document.querySelector("#test");
1077
- // el.someAttribute = "another-value";
1078
- // // upgrade component
1079
- // customElements.define('my-component', MyComponent);
1080
- // </script>
1081
- // ```
1082
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1083
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1084
- // to the value that was set inline i.e. "some-value" from above example. When
1085
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1086
- //
1087
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1088
- // by connectedCallback as this attributeChangedCallback will not fire.
1089
- //
1090
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1091
- //
1092
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1093
- // properties here given that this goes against best practices outlined here
1094
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1095
- if (this.hasOwnProperty(propName)) {
1096
- newValue = this[propName];
1097
- delete this[propName];
1098
- }
1099
- else if (prototype.hasOwnProperty(propName) &&
1100
- typeof this[propName] === 'number' &&
1101
- this[propName] == newValue) {
1102
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1103
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1104
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1105
- return;
1106
- }
1107
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1108
- });
1109
- };
1110
- // create an array of attributes to observe
1111
- // and also create a map of html attribute name to js property name
1112
- Cstr.observedAttributes = members
1113
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1114
- .map(([propName, m]) => {
1115
- const attrName = m[1] || propName;
1116
- attrNameToPropName.set(attrName, propName);
1117
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1118
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1119
- }
1120
- return attrName;
1121
- });
1122
- }
1123
- }
1124
- return Cstr;
1125
- };
1126
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1127
- // initializeComponent
1128
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1129
- {
1130
- // we haven't initialized this element yet
1131
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1132
- // lazy loaded components
1133
- // request the component's implementation to be
1134
- // wired up with the host element
1135
- Cstr = loadModule(cmpMeta);
1136
- if (Cstr.then) {
1137
- // Await creates a micro-task avoid if possible
1138
- const endLoad = uniqueTime();
1139
- Cstr = await Cstr;
1140
- endLoad();
1141
- }
1142
- if (!Cstr.isProxied) {
1143
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1144
- Cstr.isProxied = true;
1145
- }
1146
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1147
- // ok, time to construct the instance
1148
- // but let's keep track of when we start and stop
1149
- // so that the getters/setters don't incorrectly step on data
1150
- {
1151
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1152
- }
1153
- // construct the lazy-loaded component implementation
1154
- // passing the hostRef is very important during
1155
- // construction in order to directly wire together the
1156
- // host element and the lazy-loaded instance
1157
- try {
1158
- new Cstr(hostRef);
1159
- }
1160
- catch (e) {
1161
- consoleError(e);
1162
- }
1163
- {
1164
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1165
- }
1166
- endNewInstance();
1167
- fireConnectedCallback(hostRef.$lazyInstance$);
1168
- }
1169
- if (Cstr.style) {
1170
- // this component has styles but we haven't registered them yet
1171
- let style = Cstr.style;
1172
- const scopeId = getScopeId(cmpMeta);
1173
- if (!styles.has(scopeId)) {
1174
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1175
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1176
- endRegisterStyles();
1177
- }
1178
- }
1179
- }
1180
- // we've successfully created a lazy instance
1181
- const ancestorComponent = hostRef.$ancestorComponent$;
1182
- const schedule = () => scheduleUpdate(hostRef, true);
1183
- if (ancestorComponent && ancestorComponent['s-rc']) {
1184
- // this is the initial load and this component it has an ancestor component
1185
- // but the ancestor component has NOT fired its will update lifecycle yet
1186
- // so let's just cool our jets and wait for the ancestor to continue first
1187
- // this will get fired off when the ancestor component
1188
- // finally gets around to rendering its lazy self
1189
- // fire off the initial update
1190
- ancestorComponent['s-rc'].push(schedule);
1191
- }
1192
- else {
1193
- schedule();
1194
- }
1195
- };
1196
- const fireConnectedCallback = (instance) => {
1197
- {
1198
- safeCall(instance, 'connectedCallback');
1199
- }
1200
- };
1201
- const connectedCallback = (elm) => {
1202
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1203
- const hostRef = getHostRef(elm);
1204
- const cmpMeta = hostRef.$cmpMeta$;
1205
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1206
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1207
- // first time this component has connected
1208
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1209
- {
1210
- // find the first ancestor component (if there is one) and register
1211
- // this component as one of the actively loading child components for its ancestor
1212
- let ancestorComponent = elm;
1213
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1214
- // climb up the ancestors looking for the first
1215
- // component that hasn't finished its lifecycle update yet
1216
- if (ancestorComponent['s-p']) {
1217
- // we found this components first ancestor component
1218
- // keep a reference to this component's ancestor component
1219
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1220
- break;
1221
- }
1222
- }
1223
- }
1224
- // Lazy properties
1225
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1226
- if (cmpMeta.$members$) {
1227
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1228
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1229
- const value = elm[memberName];
1230
- delete elm[memberName];
1231
- elm[memberName] = value;
1232
- }
1233
- });
1234
- }
1235
- {
1236
- initializeComponent(elm, hostRef, cmpMeta);
1237
- }
1238
- }
1239
- else {
1240
- // fire off connectedCallback() on component instance
1241
- fireConnectedCallback(hostRef.$lazyInstance$);
1242
- }
1243
- endConnected();
1244
- }
1245
- };
1246
- const disconnectedCallback = (elm) => {
1247
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1248
- const hostRef = getHostRef(elm);
1249
- const instance = hostRef.$lazyInstance$ ;
1250
- {
1251
- safeCall(instance, 'disconnectedCallback');
1252
- }
1253
- }
1254
- };
1255
- const bootstrapLazy = (lazyBundles, options = {}) => {
1256
- var _a;
1257
- const endBootstrap = createTime();
1258
- const cmpTags = [];
1259
- const exclude = options.exclude || [];
1260
- const customElements = win.customElements;
1261
- const head = doc.head;
1262
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1263
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1264
- const deferredConnectedCallbacks = [];
1265
- let appLoadFallback;
1266
- let isBootstrapping = true;
1267
- Object.assign(plt, options);
1268
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1269
- lazyBundles.map((lazyBundle) => {
1270
- lazyBundle[1].map((compactMeta) => {
1271
- const cmpMeta = {
1272
- $flags$: compactMeta[0],
1273
- $tagName$: compactMeta[1],
1274
- $members$: compactMeta[2],
1275
- $listeners$: compactMeta[3],
1276
- };
1277
- {
1278
- cmpMeta.$members$ = compactMeta[2];
1279
- }
1280
- {
1281
- cmpMeta.$attrsToReflect$ = [];
1282
- }
1283
- const tagName = cmpMeta.$tagName$;
1284
- const HostElement = class extends HTMLElement {
1285
- // StencilLazyHost
1286
- constructor(self) {
1287
- // @ts-ignore
1288
- super(self);
1289
- self = this;
1290
- registerHost(self, cmpMeta);
1291
- if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1292
- // this component is using shadow dom
1293
- // and this browser supports shadow dom
1294
- // add the read-only property "shadowRoot" to the host element
1295
- // adding the shadow root build conditionals to minimize runtime
1296
- {
1297
- {
1298
- self.attachShadow({ mode: 'open' });
1299
- }
1300
- }
1301
- }
1302
- }
1303
- connectedCallback() {
1304
- if (appLoadFallback) {
1305
- clearTimeout(appLoadFallback);
1306
- appLoadFallback = null;
1307
- }
1308
- if (isBootstrapping) {
1309
- // connectedCallback will be processed once all components have been registered
1310
- deferredConnectedCallbacks.push(this);
1311
- }
1312
- else {
1313
- plt.jmp(() => connectedCallback(this));
1314
- }
1315
- }
1316
- disconnectedCallback() {
1317
- plt.jmp(() => disconnectedCallback(this));
1318
- }
1319
- componentOnReady() {
1320
- return getHostRef(this).$onReadyPromise$;
1321
- }
1322
- };
1323
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1324
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1325
- cmpTags.push(tagName);
1326
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1327
- }
1328
- });
1329
- });
1330
- {
1331
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1332
- visibilityStyle.setAttribute('data-styles', '');
1333
- // Apply CSP nonce to the style tag if it exists
1334
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1335
- if (nonce != null) {
1336
- visibilityStyle.setAttribute('nonce', nonce);
1337
- }
1338
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1339
- }
1340
- // Process deferred connectedCallbacks now all components have been registered
1341
- isBootstrapping = false;
1342
- if (deferredConnectedCallbacks.length) {
1343
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1344
- }
1345
- else {
1346
- {
1347
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1348
- }
1349
- }
1350
- // Fallback appLoad event
1351
- endBootstrap();
1352
- };
1353
- /**
1354
- * Assigns the given value to the nonce property on the runtime platform object.
1355
- * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1356
- * @param nonce The value to be assigned to the platform nonce property.
1357
- * @returns void
1358
- */
1359
- const setNonce = (nonce) => (plt.$nonce$ = nonce);
1360
- const hostRefs = /*@__PURE__*/ new WeakMap();
1361
- const getHostRef = (ref) => hostRefs.get(ref);
1362
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1363
- const registerHost = (elm, cmpMeta) => {
1364
- const hostRef = {
1365
- $flags$: 0,
1366
- $hostElement$: elm,
1367
- $cmpMeta$: cmpMeta,
1368
- $instanceValues$: new Map(),
1369
- };
1370
- {
1371
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1372
- elm['s-p'] = [];
1373
- elm['s-rc'] = [];
1374
- }
1375
- return hostRefs.set(elm, hostRef);
1376
- };
1377
- const isMemberInElement = (elm, memberName) => memberName in elm;
1378
- const consoleError = (e, el) => (0, console.error)(e, el);
1379
- const cmpModules = /*@__PURE__*/ new Map();
1380
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1381
- // loadModuleImport
1382
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1383
- const bundleId = cmpMeta.$lazyBundleId$;
1384
- const module = cmpModules.get(bundleId) ;
1385
- if (module) {
1386
- return module[exportName];
1387
- }
1388
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1389
- return import(
1390
- /* @vite-ignore */
1391
- /* webpackInclude: /\.entry\.js$/ */
1392
- /* webpackExclude: /\.system\.entry\.js$/ */
1393
- /* webpackMode: "lazy" */
1394
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
1395
- {
1396
- cmpModules.set(bundleId, importedModule);
1397
- }
1398
- return importedModule[exportName];
1399
- }, consoleError);
1400
- };
1401
- const styles = /*@__PURE__*/ new Map();
1402
- const win = typeof window !== 'undefined' ? window : {};
1403
- const doc = win.document || { head: {} };
1404
- const plt = {
1405
- $flags$: 0,
1406
- $resourcesUrl$: '',
1407
- jmp: (h) => h(),
1408
- raf: (h) => requestAnimationFrame(h),
1409
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1410
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1411
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
1412
- };
1413
- const promiseResolve = (v) => Promise.resolve(v);
1414
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1415
- try {
1416
- new CSSStyleSheet();
1417
- return typeof new CSSStyleSheet().replaceSync === 'function';
1418
- }
1419
- catch (e) { }
1420
- return false;
1421
- })()
1422
- ;
1423
- const queueDomReads = [];
1424
- const queueDomWrites = [];
1425
- const queueTask = (queue, write) => (cb) => {
1426
- queue.push(cb);
1427
- if (!queuePending) {
1428
- queuePending = true;
1429
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1430
- nextTick(flush);
1431
- }
1432
- else {
1433
- plt.raf(flush);
1434
- }
1435
- }
1436
- };
1437
- const consume = (queue) => {
1438
- for (let i = 0; i < queue.length; i++) {
1439
- try {
1440
- queue[i](performance.now());
1441
- }
1442
- catch (e) {
1443
- consoleError(e);
1444
- }
1445
- }
1446
- queue.length = 0;
1447
- };
1448
- const flush = () => {
1449
- // always force a bunch of medium callbacks to run, but still have
1450
- // a throttle on how many can run in a certain time
1451
- // DOM READS!!!
1452
- consume(queueDomReads);
1453
- // DOM WRITES!!!
1454
- {
1455
- consume(queueDomWrites);
1456
- if ((queuePending = queueDomReads.length > 0)) {
1457
- // still more to do yet, but we've run out of time
1458
- // let's let this thing cool off and try again in the next tick
1459
- plt.raf(flush);
1460
- }
1461
- }
1462
- };
1463
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1464
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1465
-
1466
- export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1
+ const _0x4b2f13=_0x2932;(function(_0x113121,_0xe19e49){const _0x4eb903=_0x2932,_0x3f9ce4=_0x113121();while(!![]){try{const _0x17a585=parseInt(_0x4eb903(0x1ee))/0x1*(-parseInt(_0x4eb903(0x206))/0x2)+parseInt(_0x4eb903(0x217))/0x3+parseInt(_0x4eb903(0x270))/0x4+parseInt(_0x4eb903(0x2c8))/0x5*(parseInt(_0x4eb903(0x27b))/0x6)+-parseInt(_0x4eb903(0x302))/0x7+parseInt(_0x4eb903(0x289))/0x8+-parseInt(_0x4eb903(0x283))/0x9;if(_0x17a585===_0xe19e49)break;else _0x3f9ce4['push'](_0x3f9ce4['shift']());}catch(_0x284a81){_0x3f9ce4['push'](_0x3f9ce4['shift']());}}}(_0x4cf8,0x8b3db));const NAMESPACE='pushfeedback';function _0x4cf8(){const _0x1d75f1=['QLFuK','$lazyInstance$','s-p','ljFxW','WJCXe','yPnVv','split','jmp','Ehwaa','prototype','1|2|4|3|0','vgyYW','UnhoD','documentElement','YQUfU','disconnectedCallback','ufmmU','3286458XFcVlG','parentNode','getAttribute','false','mrIkr','slice','replaceSync','$onRenderResolve$','uXFEK','classList','observedAttributes','set','attributeChangedCallback','OqxUO','nonce','$vnode$','$attrsToReflect$','then','2NoBDWU','Emhbb','ref','isProxied','sJjBY','RHRrh','TPcsl','$tagName$','define','customElements','bziwi','IxHgk','oDkvc','hEoBx','osfdZ','aEVCw','pDYNc','$hostElement$','sc-','$nonce$','iRkqU','femMr','adoptedStyleSheets','setAttribute','727746nbYEzu','NwSMe','pgfhD','ytkyj','http://www.w3.org/1999/xhtml','dlMox','firstChild','AwuZq','filter','HKkaT','createInstance','XnsXy','tagName','entries','componentOnReady','RNKaA','Sorii','1041345sxBZre','open','dKnCH','LFixc','egnfZ','style','nfkxX','appload','lHFKk','ScKpr','JTbGI','KqCyQ','data-styles','length','ghqAZ','defineProperty','cKpEn','link','exclude','zxcxN','raf','shadowRoot','map','removeEventListener','ByAZq','registerStyles','$onReadyResolve$','$ancestorComponent$','SNWtP','RWGIR','nckMy','Fsmbm','XGAcs','oInXP','FOzxC','innerHTML','EXGXW','pQtKi','egaMT','wpwrf','textContent','isArray','className','LibiV','document','oJIAt','kwfPA','KjXoZ','$instanceValues$','kIKxn','cnHCF','AayzK','gJvzs','removeAttribute','xLdIF','dnbue','ael','BZkGM','XpjYW','AWaEG','$tag$','qdxwg','FLfZm','host','SIWRT','sfqJE','includes','DUjFm','HZDek','class','TbTgY','uSNJU','object','$resourcesUrl$','uHaVk','XeyGe','head','rAxxq','GYdbT','add','replace','dispatchEvent','postUpdate','jzrRy','undefined','wRWFb','attachStyles','uVkTm','hasOwnProperty','4124112qyxEkM','ulysr','s-si','tCmdu','update','vgCeK','$elm$','5|0|6|1|2|4|3','pqXEZ','$cmpMeta$','vCXfV','978pcIFQK','componentWillLoad','$onReadyPromise$','NxyEK','Eihnm','znJlQ','createTextNode','QRClp','11509578IotJoC','$flags$','scheduleUpdate','gvueL','BoBdx','lPLqS','8817368OgrQWe','http://www.w3.org/2000/svg','LCsUo','jJeJg','maGgn','NxhUm','mUnme','TpLYf','PApak','nextSibling','createElementNS','meta[name=\x22csp-nonce\x22]','appendChild','$attrs$','FzLWC','GnhOT','FCaVH','CyBrD','removeProperty','QnGwW','CJpyu','jglBa','$children$','ojdqd','UOQVS','tNndS','Sqhxm','FhtQJ','boolean','wkfpN','oWKCl','.entry.js','$lazyBundleId$','string','OVIKw','kEbav','ennpp','keys','MuSFR','insertBefore','FtPap','QiqWr','cxORg','querySelector','ENNBD','JuBMn','nGnWl','number','nodeType','get','hydrated','gBuiq','attachShadow','kXwPO','{visibility:hidden}.hydrated{visibility:inherit}','PUYVA','setProperty','TPKzK','svg','push','ipsNA','getRootNode','oGvmE','17365YMZWqQ','isNaN','oGCiS','bhEKf','foreignObject','addEventListener','slot','JIlrV','QqnmV','$text$','YVjmE','remove','FaFOR','UGySK','JJTxo','toLowerCase','content','ZRsvK','connectedCallback','nFBSQ','zMuFH','wqCHC','uNkQg','render','umykZ','SAJrb','NzRrg','clQWs','rel','resourcesUrl','CDbUL','s-sc','assign','$members$','all','YfrEe','createElement','s-rc','jHdmY','join','xicnc'];_0x4cf8=function(){return _0x1d75f1;};return _0x4cf8();}let scopeId,hostTagName,isSvgMode=![],queuePending=![];const createTime=(_0x3b4678,_0x1913b6='')=>{{return()=>{return;};}},uniqueTime=(_0x14505f,_0x43b809)=>{{return()=>{return;};}},HYDRATED_CSS=_0x4b2f13(0x2bf),EMPTY_OBJ={},SVG_NS=_0x4b2f13(0x28a),HTML_NS=_0x4b2f13(0x20a),isDef=_0x589b2d=>_0x589b2d!=null,isComplexType=_0x3ebc5d=>{const _0x10db63=_0x4b2f13,_0x32e717={'ipsNA':function(_0x129933,_0x44ad24){return _0x129933===_0x44ad24;},'aSIQT':_0x10db63(0x25f),'HZDek':function(_0x5abae4,_0x410dd3){return _0x5abae4===_0x410dd3;},'KqCyQ':'function'};return _0x3ebc5d=typeof _0x3ebc5d,_0x32e717[_0x10db63(0x2c5)](_0x3ebc5d,_0x32e717['aSIQT'])||_0x32e717[_0x10db63(0x25b)](_0x3ebc5d,_0x32e717[_0x10db63(0x222)]);};function _0x2932(_0x3ead53,_0xad132f){const _0x4cf84b=_0x4cf8();return _0x2932=function(_0x29322b,_0x12252b){_0x29322b=_0x29322b-0x1e5;let _0x54ef54=_0x4cf84b[_0x29322b];return _0x54ef54;},_0x2932(_0x3ead53,_0xad132f);}function queryNonceMetaTagContent(_0xb1f129){const _0x325180=_0x4b2f13,_0x1ce744={'QiqWr':function(_0x2dca26,_0x41e4c2){return _0x2dca26===_0x41e4c2;},'GsYVt':function(_0x2f6c76,_0x21c5ab){return _0x2f6c76===_0x21c5ab;},'zMuFH':_0x325180(0x2d8)};var _0x5b207d,_0x516fe4,_0x3899ed;return(_0x3899ed=_0x1ce744[_0x325180(0x2b2)](_0x516fe4=_0x1ce744['GsYVt'](_0x5b207d=_0xb1f129[_0x325180(0x263)],null)||_0x5b207d===void 0x0?void 0x0:_0x5b207d[_0x325180(0x2b4)](_0x325180(0x294)),null)||_0x1ce744[_0x325180(0x2b2)](_0x516fe4,void 0x0)?void 0x0:_0x516fe4[_0x325180(0x304)](_0x1ce744[_0x325180(0x2dc)]))!==null&&_0x3899ed!==void 0x0?_0x3899ed:undefined;}const h=(_0x7fbcb7,_0x35b975,..._0x4ef559)=>{const _0x5a222f=_0x4b2f13,_0x5d9667={'GYdbT':function(_0x46f5e5,_0x551953){return _0x46f5e5(_0x551953);},'dKnCH':function(_0x3cee44,_0x520cc2){return _0x3cee44!=_0x520cc2;},'GLPEp':_0x5a222f(0x2a5),'ljFxW':function(_0x5ea0b1,_0x331c63){return _0x5ea0b1!==_0x331c63;},'pqXEZ':function(_0x7b8526,_0x534958){return _0x7b8526(_0x534958);},'IxHgk':function(_0x3e295e,_0x4bfe15){return _0x3e295e&&_0x4bfe15;},'XnsXy':function(_0x1e958a,_0x2262c7){return _0x1e958a-_0x2262c7;},'AzUxr':function(_0x569ac1,_0x291c35){return _0x569ac1(_0x291c35);},'ufmmU':'object','jglBa':function(_0x4fe77c,_0x54336c,_0x3ff32a){return _0x4fe77c(_0x54336c,_0x3ff32a);},'ewZSf':function(_0x503776,_0xc1b512){return _0x503776>_0xc1b512;}};let _0x485e0b=null,_0x959f1a=![],_0x35e5ec=![];const _0x59bc7b=[],_0x44f8ce=_0x2e6c84=>{const _0xe8101=_0x5a222f;for(let _0x326272=0x0;_0x326272<_0x2e6c84[_0xe8101(0x224)];_0x326272++){_0x485e0b=_0x2e6c84[_0x326272];if(Array[_0xe8101(0x240)](_0x485e0b))_0x5d9667[_0xe8101(0x265)](_0x44f8ce,_0x485e0b);else _0x5d9667[_0xe8101(0x219)](_0x485e0b,null)&&typeof _0x485e0b!==_0x5d9667['GLPEp']&&((_0x959f1a=_0x5d9667[_0xe8101(0x2f4)](typeof _0x7fbcb7,'function')&&!_0x5d9667[_0xe8101(0x278)](isComplexType,_0x485e0b))&&(_0x485e0b=_0x5d9667['GYdbT'](String,_0x485e0b)),_0x5d9667[_0xe8101(0x1f9)](_0x959f1a,_0x35e5ec)?_0x59bc7b[_0x5d9667[_0xe8101(0x211)](_0x59bc7b[_0xe8101(0x224)],0x1)][_0xe8101(0x2d1)]+=_0x485e0b:_0x59bc7b['push'](_0x959f1a?newVNode(null,_0x485e0b):_0x485e0b),_0x35e5ec=_0x959f1a);}};_0x5d9667['AzUxr'](_0x44f8ce,_0x4ef559);if(_0x35b975){const _0x1e7dfd=_0x35b975[_0x5a222f(0x241)]||_0x35b975[_0x5a222f(0x25c)];_0x1e7dfd&&(_0x35b975[_0x5a222f(0x25c)]=_0x5d9667['ljFxW'](typeof _0x1e7dfd,_0x5d9667[_0x5a222f(0x301)])?_0x1e7dfd:Object[_0x5a222f(0x2ae)](_0x1e7dfd)[_0x5a222f(0x20e)](_0x34c262=>_0x1e7dfd[_0x34c262])[_0x5a222f(0x2ef)]('\x20'));}const _0x18d455=_0x5d9667[_0x5a222f(0x29e)](newVNode,_0x7fbcb7,null);return _0x18d455[_0x5a222f(0x296)]=_0x35b975,_0x5d9667['ewZSf'](_0x59bc7b[_0x5a222f(0x224)],0x0)&&(_0x18d455[_0x5a222f(0x29f)]=_0x59bc7b),_0x18d455;},newVNode=(_0xd9c8f5,_0xc21974)=>{const _0x265dc1={'$flags$':0x0,'$tag$':_0xd9c8f5,'$text$':_0xc21974,'$elm$':null,'$children$':null};{_0x265dc1['$attrs$']=null;}return _0x265dc1;},Host={},isHost=_0x181a92=>_0x181a92&&_0x181a92['$tag$']===Host,parsePropertyValue=(_0x4dfa06,_0x9bbadc)=>{const _0xd39c6b=_0x4b2f13,_0x3ad4db={'XeyGe':function(_0x73e80f,_0x49020c){return _0x73e80f(_0x49020c);},'kwfPA':function(_0x1e676c,_0x1551c7){return _0x1e676c&_0x1551c7;},'UUmch':function(_0x5a07be,_0x436bcf){return _0x5a07be===_0x436bcf;},'LCsUo':_0xd39c6b(0x305),'DUjFm':function(_0x5a71c3,_0xaff9a){return _0x5a71c3&_0xaff9a;}};if(_0x4dfa06!=null&&!_0x3ad4db['XeyGe'](isComplexType,_0x4dfa06)){if(_0x3ad4db[_0xd39c6b(0x245)](_0x9bbadc,0x4))return _0x3ad4db['UUmch'](_0x4dfa06,_0x3ad4db[_0xd39c6b(0x28b)])?![]:_0x3ad4db['UUmch'](_0x4dfa06,'')||!!_0x4dfa06;if(_0x3ad4db[_0xd39c6b(0x25a)](_0x9bbadc,0x1))return _0x3ad4db[_0xd39c6b(0x262)](String,_0x4dfa06);return _0x4dfa06;}return _0x4dfa06;},getElement=_0x5900e9=>getHostRef(_0x5900e9)[_0x4b2f13(0x1ff)],emitEvent=(_0x582e00,_0x51e006,_0x437b7d)=>{const _0x2d2154=_0x4b2f13,_0x55711a=plt['ce'](_0x51e006,_0x437b7d);return _0x582e00[_0x2d2154(0x268)](_0x55711a),_0x55711a;},rootAppliedStyles=new WeakMap(),registerStyle=(_0x382024,_0x315443,_0x2829fa)=>{const _0x525012=_0x4b2f13,_0x5d5bc2={'eyUYI':function(_0xca214a,_0x3c4609){return _0xca214a&&_0x3c4609;},'RHRrh':function(_0x5dd27b,_0x10eddd){return _0x5dd27b===_0x10eddd;}};let _0x1a79b5=styles[_0x525012(0x2ba)](_0x382024);_0x5d5bc2['eyUYI'](supportsConstructableStylesheets,_0x2829fa)?(_0x1a79b5=_0x1a79b5||new CSSStyleSheet(),_0x5d5bc2[_0x525012(0x1f3)](typeof _0x1a79b5,_0x525012(0x2aa))?_0x1a79b5=_0x315443:_0x1a79b5[_0x525012(0x308)](_0x315443)):_0x1a79b5=_0x315443,styles[_0x525012(0x1e7)](_0x382024,_0x1a79b5);},addStyle=(_0x15ebbb,_0x52cc2b,_0x1b3d04,_0x571903)=>{const _0x59bf1a=_0x4b2f13,_0x2e454a={'TPKzK':function(_0x2fcad6,_0x42597e){return _0x2fcad6(_0x42597e);},'uNkQg':function(_0x495fb4,_0x270a87){return _0x495fb4===_0x270a87;},'wRWFb':function(_0x2b3d11,_0xcdd27e){return _0x2b3d11!==_0xcdd27e;},'TpLYf':function(_0x52dfaf,_0x157453){return _0x52dfaf!=_0x157453;},'WDABI':_0x59bf1a(0x1ea),'FhtQJ':_0x59bf1a(0x228)};var _0x452bf0;let _0x5c068b=_0x2e454a[_0x59bf1a(0x2c2)](getScopeId,_0x52cc2b);const _0xe9c876=styles['get'](_0x5c068b);_0x15ebbb=_0x2e454a[_0x59bf1a(0x2de)](_0x15ebbb[_0x59bf1a(0x2b9)],0xb)?_0x15ebbb:doc;if(_0xe9c876){if(_0x2e454a['uNkQg'](typeof _0xe9c876,_0x59bf1a(0x2aa))){_0x15ebbb=_0x15ebbb[_0x59bf1a(0x263)]||_0x15ebbb;let _0x2c7903=rootAppliedStyles[_0x59bf1a(0x2ba)](_0x15ebbb),_0x268fb6;!_0x2c7903&&rootAppliedStyles[_0x59bf1a(0x1e7)](_0x15ebbb,_0x2c7903=new Set());if(!_0x2c7903['has'](_0x5c068b)){{{_0x268fb6=doc[_0x59bf1a(0x2ec)]('style'),_0x268fb6[_0x59bf1a(0x23a)]=_0xe9c876;}const _0x1f9011=_0x2e454a[_0x59bf1a(0x26c)](_0x452bf0=plt[_0x59bf1a(0x201)],null)&&_0x452bf0!==void 0x0?_0x452bf0:_0x2e454a[_0x59bf1a(0x2c2)](queryNonceMetaTagContent,doc);_0x2e454a[_0x59bf1a(0x290)](_0x1f9011,null)&&_0x268fb6['setAttribute'](_0x2e454a['WDABI'],_0x1f9011),_0x15ebbb[_0x59bf1a(0x2b0)](_0x268fb6,_0x15ebbb[_0x59bf1a(0x2b4)](_0x2e454a[_0x59bf1a(0x2a4)]));}_0x2c7903&&_0x2c7903['add'](_0x5c068b);}}else!_0x15ebbb[_0x59bf1a(0x204)]['includes'](_0xe9c876)&&(_0x15ebbb[_0x59bf1a(0x204)]=[..._0x15ebbb[_0x59bf1a(0x204)],_0xe9c876]);}return _0x5c068b;},attachStyles=_0x4377e9=>{const _0x291663=_0x4b2f13,_0x2d5a9a={'Fsmbm':function(_0x594a67,_0x99aeaf,_0x1f9766){return _0x594a67(_0x99aeaf,_0x1f9766);},'kXwPO':_0x291663(0x26d),'UnhoD':function(_0xf0785a,_0xa2e396){return _0xf0785a&_0xa2e396;},'Sorii':'s-sc','FaFOR':function(_0x1e6038,_0x3ca76b){return _0x1e6038+_0x3ca76b;},'KjXoZ':function(_0x1d4cec){return _0x1d4cec();}},_0x93dd0f=_0x4377e9[_0x291663(0x279)],_0x5789fd=_0x4377e9['$hostElement$'],_0x11b86a=_0x93dd0f[_0x291663(0x284)],_0x421ae4=_0x2d5a9a[_0x291663(0x236)](createTime,_0x2d5a9a[_0x291663(0x2be)],_0x93dd0f[_0x291663(0x1f5)]),_0x352b16=addStyle(_0x5789fd[_0x291663(0x22c)]?_0x5789fd[_0x291663(0x22c)]:_0x5789fd[_0x291663(0x2c6)](),_0x93dd0f);_0x2d5a9a[_0x291663(0x2fd)](_0x11b86a,0xa)&&(_0x5789fd[_0x2d5a9a[_0x291663(0x216)]]=_0x352b16,_0x5789fd[_0x291663(0x1e5)][_0x291663(0x266)](_0x2d5a9a[_0x291663(0x2d4)](_0x352b16,'-h'))),_0x2d5a9a[_0x291663(0x246)](_0x421ae4);},getScopeId=(_0x3a2c4f,_0x3f3e5d)=>_0x4b2f13(0x200)+_0x3a2c4f[_0x4b2f13(0x1f5)],setAccessor=(_0x136233,_0x14968a,_0x51125e,_0x2724c1,_0x529c05,_0x5c33cf)=>{const _0x537e7d=_0x4b2f13,_0x1fe8e2={'oJIAt':function(_0x4e0cb9,_0x10932d){return _0x4e0cb9!==_0x10932d;},'pdRmi':function(_0x2e4017,_0x40f1f9,_0x336c35){return _0x2e4017(_0x40f1f9,_0x336c35);},'femMr':function(_0x193164,_0x521072){return _0x193164===_0x521072;},'MuSFR':_0x537e7d(0x25c),'FzLWC':function(_0x1af7e3,_0x4f52b3){return _0x1af7e3(_0x4f52b3);},'lNeSW':_0x537e7d(0x21c),'nfkxX':function(_0x50155b,_0x474ae5){return _0x50155b==_0x474ae5;},'iRkqU':function(_0x4456cd,_0x3d96a0){return _0x4456cd!==_0x3d96a0;},'uSNJU':function(_0x8c2f34,_0x3a5661){return _0x8c2f34===_0x3a5661;},'xLdIF':_0x537e7d(0x1f0),'YVjmE':function(_0x41b449,_0x1ea0ff){return _0x41b449===_0x1ea0ff;},'NzRrg':function(_0x48102f,_0x1e8a54){return _0x48102f===_0x1e8a54;},'ZJmOQ':function(_0x53ca8c,_0x496e7f){return _0x53ca8c+_0x496e7f;},'kIKxn':function(_0xf5d379,_0x1bf6c2){return _0xf5d379(_0x1bf6c2);},'pQtKi':'list','jJeJg':function(_0x5f51b7,_0x664700){return _0x5f51b7==_0x664700;},'FCaVH':function(_0x13deba,_0x3971ab){return _0x13deba!=_0x3971ab;},'ENNBD':function(_0x4920ce,_0x20d91e){return _0x4920ce==_0x20d91e;},'oDkvc':function(_0x2d5fc1,_0x24b885){return _0x2d5fc1===_0x24b885;},'YfrEe':function(_0x1daf7e,_0x3f0a57){return _0x1daf7e!==_0x3f0a57;},'dlMox':function(_0x316a54,_0x52cd10){return _0x316a54&_0x52cd10;}};if(_0x1fe8e2[_0x537e7d(0x244)](_0x51125e,_0x2724c1)){let _0x152d25=_0x1fe8e2['pdRmi'](isMemberInElement,_0x136233,_0x14968a),_0x1f7a15=_0x14968a[_0x537e7d(0x2d7)]();if(_0x1fe8e2[_0x537e7d(0x203)](_0x14968a,_0x1fe8e2[_0x537e7d(0x2af)])){const _0x32d283=_0x136233[_0x537e7d(0x1e5)],_0x146071=_0x1fe8e2[_0x537e7d(0x297)](parseClassList,_0x51125e),_0x254a60=parseClassList(_0x2724c1);_0x32d283[_0x537e7d(0x2d3)](..._0x146071['filter'](_0x4ab408=>_0x4ab408&&!_0x254a60[_0x537e7d(0x259)](_0x4ab408))),_0x32d283[_0x537e7d(0x266)](..._0x254a60[_0x537e7d(0x20e)](_0x19813c=>_0x19813c&&!_0x146071[_0x537e7d(0x259)](_0x19813c)));}else{if(_0x1fe8e2[_0x537e7d(0x203)](_0x14968a,_0x1fe8e2['lNeSW'])){{for(const _0x5ee0a1 in _0x51125e){(!_0x2724c1||_0x1fe8e2[_0x537e7d(0x21d)](_0x2724c1[_0x5ee0a1],null))&&(_0x5ee0a1[_0x537e7d(0x259)]('-')?_0x136233['style'][_0x537e7d(0x29b)](_0x5ee0a1):_0x136233[_0x537e7d(0x21c)][_0x5ee0a1]='');}}for(const _0xb1b04a in _0x2724c1){(!_0x51125e||_0x1fe8e2['iRkqU'](_0x2724c1[_0xb1b04a],_0x51125e[_0xb1b04a]))&&(_0xb1b04a[_0x537e7d(0x259)]('-')?_0x136233[_0x537e7d(0x21c)][_0x537e7d(0x2c1)](_0xb1b04a,_0x2724c1[_0xb1b04a]):_0x136233['style'][_0xb1b04a]=_0x2724c1[_0xb1b04a]);}}else{if(_0x1fe8e2[_0x537e7d(0x25e)](_0x14968a,_0x1fe8e2[_0x537e7d(0x24d)]))_0x2724c1&&_0x2724c1(_0x136233);else{if(!_0x152d25&&_0x14968a[0x0]==='o'&&_0x1fe8e2[_0x537e7d(0x2d2)](_0x14968a[0x1],'n')){if(_0x1fe8e2[_0x537e7d(0x2e2)](_0x14968a[0x2],'-'))_0x14968a=_0x14968a['slice'](0x3);else _0x1fe8e2['pdRmi'](isMemberInElement,win,_0x1f7a15)?_0x14968a=_0x1f7a15[_0x537e7d(0x307)](0x2):_0x14968a=_0x1fe8e2['ZJmOQ'](_0x1f7a15[0x2],_0x14968a['slice'](0x3));_0x51125e&&plt[_0x537e7d(0x2e4)](_0x136233,_0x14968a,_0x51125e,![]),_0x2724c1&&plt[_0x537e7d(0x24f)](_0x136233,_0x14968a,_0x2724c1,![]);}else{const _0x1f8dc3=_0x1fe8e2[_0x537e7d(0x248)](isComplexType,_0x2724c1);if((_0x152d25||_0x1f8dc3&&_0x1fe8e2[_0x537e7d(0x202)](_0x2724c1,null))&&!_0x529c05)try{if(!_0x136233['tagName'][_0x537e7d(0x259)]('-')){const _0x2bb7b0=_0x2724c1==null?'':_0x2724c1;if(_0x1fe8e2['NzRrg'](_0x14968a,_0x1fe8e2[_0x537e7d(0x23c)]))_0x152d25=![];else(_0x1fe8e2[_0x537e7d(0x28c)](_0x51125e,null)||_0x1fe8e2[_0x537e7d(0x299)](_0x136233[_0x14968a],_0x2bb7b0))&&(_0x136233[_0x14968a]=_0x2bb7b0);}else _0x136233[_0x14968a]=_0x2724c1;}catch(_0x33d424){}if(_0x1fe8e2[_0x537e7d(0x2b5)](_0x2724c1,null)||_0x1fe8e2[_0x537e7d(0x1fa)](_0x2724c1,![])){if(_0x1fe8e2[_0x537e7d(0x2eb)](_0x2724c1,![])||_0x136233[_0x537e7d(0x304)](_0x14968a)===''){_0x136233[_0x537e7d(0x24c)](_0x14968a);}}else{if((!_0x152d25||_0x1fe8e2[_0x537e7d(0x20b)](_0x5c33cf,0x4)||_0x529c05)&&!_0x1f8dc3){_0x2724c1=_0x1fe8e2[_0x537e7d(0x2e2)](_0x2724c1,!![])?'':_0x2724c1;{_0x136233[_0x537e7d(0x205)](_0x14968a,_0x2724c1);}}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0x2ac351=>!_0x2ac351?[]:_0x2ac351[_0x4b2f13(0x2f7)](parseClassListRegex),updateElement=(_0x418fa7,_0x4520ca,_0x270c31,_0x141a65)=>{const _0x365c28=_0x4b2f13,_0x221f0a={'XdHPV':function(_0x51c0b3,_0x4d414c){return _0x51c0b3===_0x4d414c;},'aEVCw':function(_0x2c3160,_0x39b4a4){return _0x2c3160 in _0x39b4a4;},'vgCeK':function(_0x4c3b3c,_0x23ba74,_0x3aab2b,_0x10b655,_0x15422e,_0x164b55,_0x1809fe){return _0x4c3b3c(_0x23ba74,_0x3aab2b,_0x10b655,_0x15422e,_0x164b55,_0x1809fe);}},_0x575c0f=_0x221f0a['XdHPV'](_0x4520ca[_0x365c28(0x276)]['nodeType'],0xb)&&_0x4520ca[_0x365c28(0x276)][_0x365c28(0x256)]?_0x4520ca[_0x365c28(0x276)][_0x365c28(0x256)]:_0x4520ca[_0x365c28(0x276)],_0x2d13af=_0x418fa7&&_0x418fa7[_0x365c28(0x296)]||EMPTY_OBJ,_0x3ee4db=_0x4520ca[_0x365c28(0x296)]||EMPTY_OBJ;{for(_0x141a65 in _0x2d13af){!_0x221f0a[_0x365c28(0x1fd)](_0x141a65,_0x3ee4db)&&_0x221f0a['vgCeK'](setAccessor,_0x575c0f,_0x141a65,_0x2d13af[_0x141a65],undefined,_0x270c31,_0x4520ca['$flags$']);}}for(_0x141a65 in _0x3ee4db){_0x221f0a[_0x365c28(0x275)](setAccessor,_0x575c0f,_0x141a65,_0x2d13af[_0x141a65],_0x3ee4db[_0x141a65],_0x270c31,_0x4520ca[_0x365c28(0x284)]);}},createElm=(_0x3ec45c,_0x2956c6,_0x36d98c,_0x8ee466)=>{const _0x5cd6bd=_0x4b2f13,_0x31960e={'JIlrV':function(_0x269407,_0x48f73f){return _0x269407!==_0x48f73f;},'nGnWl':function(_0xed1a0d,_0x42d365){return _0xed1a0d(_0x42d365);},'xicnc':_0x5cd6bd(0x272),'PApak':function(_0x575e9e,_0x235ba3){return _0x575e9e===_0x235ba3;},'cxORg':'svg','OVIKw':_0x5cd6bd(0x2cc),'wpwrf':function(_0x3a59e2,_0x4f5d20){return _0x3a59e2<_0x4f5d20;},'SIWRT':function(_0x20e237,_0x173c58,_0x1e7e8f,_0x582a62){return _0x20e237(_0x173c58,_0x1e7e8f,_0x582a62);},'DhSTN':function(_0x2d039b,_0x45be67){return _0x2d039b===_0x45be67;}},_0x2afc0d=_0x2956c6[_0x5cd6bd(0x29f)][_0x36d98c];let _0x269244=0x0,_0x344da3,_0x1a5dcf;if(_0x31960e[_0x5cd6bd(0x2cf)](_0x2afc0d[_0x5cd6bd(0x2d1)],null))_0x344da3=_0x2afc0d[_0x5cd6bd(0x276)]=doc[_0x5cd6bd(0x281)](_0x2afc0d[_0x5cd6bd(0x2d1)]);else{const _0x52e799=_0x5cd6bd(0x277)[_0x5cd6bd(0x2f7)]('|');let _0x5b4bd8=0x0;while(!![]){switch(_0x52e799[_0x5b4bd8++]){case'0':_0x344da3=_0x2afc0d[_0x5cd6bd(0x276)]=doc[_0x5cd6bd(0x293)](isSvgMode?SVG_NS:HTML_NS,_0x2afc0d[_0x5cd6bd(0x253)]);continue;case'1':{updateElement(null,_0x2afc0d,isSvgMode);}continue;case'2':_0x31960e[_0x5cd6bd(0x2b7)](isDef,scopeId)&&_0x31960e[_0x5cd6bd(0x2cf)](_0x344da3[_0x5cd6bd(0x272)],scopeId)&&_0x344da3[_0x5cd6bd(0x1e5)][_0x5cd6bd(0x266)](_0x344da3[_0x31960e[_0x5cd6bd(0x2f0)]]=scopeId);continue;case'3':{if(_0x31960e[_0x5cd6bd(0x291)](_0x2afc0d[_0x5cd6bd(0x253)],_0x31960e[_0x5cd6bd(0x2b3)]))isSvgMode=![];else _0x344da3[_0x5cd6bd(0x212)]===_0x31960e[_0x5cd6bd(0x2ab)]&&(isSvgMode=!![]);}continue;case'4':if(_0x2afc0d[_0x5cd6bd(0x29f)])for(_0x269244=0x0;_0x31960e[_0x5cd6bd(0x23e)](_0x269244,_0x2afc0d[_0x5cd6bd(0x29f)][_0x5cd6bd(0x224)]);++_0x269244){_0x1a5dcf=_0x31960e[_0x5cd6bd(0x257)](createElm,_0x3ec45c,_0x2afc0d,_0x269244),_0x1a5dcf&&_0x344da3[_0x5cd6bd(0x295)](_0x1a5dcf);}continue;case'5':!isSvgMode&&(isSvgMode=_0x2afc0d[_0x5cd6bd(0x253)]===_0x31960e['cxORg']);continue;case'6':isSvgMode&&_0x31960e['DhSTN'](_0x2afc0d[_0x5cd6bd(0x253)],_0x31960e[_0x5cd6bd(0x2ab)])&&(isSvgMode=![]);continue;}break;}}return _0x344da3;},addVnodes=(_0x44aa5c,_0x2b3a04,_0x13a99b,_0x3ce1e1,_0x3999d8,_0x228c15)=>{const _0x5ae607=_0x4b2f13,_0x22a81b={'mUnme':function(_0x6029b0,_0x57c91c){return _0x6029b0===_0x57c91c;},'hEoBx':function(_0x192600,_0xee51f9){return _0x192600<=_0xee51f9;},'OqxUO':function(_0x39819d,_0x2186de,_0x2416e2,_0x4be806){return _0x39819d(_0x2186de,_0x2416e2,_0x4be806);}};let _0x25a707=_0x44aa5c,_0x28d8c0;_0x25a707[_0x5ae607(0x22c)]&&_0x22a81b[_0x5ae607(0x28f)](_0x25a707['tagName'],hostTagName)&&(_0x25a707=_0x25a707['shadowRoot']);for(;_0x22a81b[_0x5ae607(0x1fb)](_0x3999d8,_0x228c15);++_0x3999d8){_0x3ce1e1[_0x3999d8]&&(_0x28d8c0=_0x22a81b[_0x5ae607(0x1e9)](createElm,null,_0x13a99b,_0x3999d8),_0x28d8c0&&(_0x3ce1e1[_0x3999d8][_0x5ae607(0x276)]=_0x28d8c0,_0x25a707[_0x5ae607(0x2b0)](_0x28d8c0,_0x2b3a04)));}},removeVnodes=(_0x362bd2,_0x2a8e2c,_0x1f4ea6,_0x505293,_0x168e76)=>{const _0x5422b8=_0x4b2f13,_0x5da3ba={'AFlle':function(_0x1011d5,_0x5863fc){return _0x1011d5<=_0x5863fc;},'hWBvR':function(_0x512eb7,_0x4dd2fb){return _0x512eb7(_0x4dd2fb);}};for(;_0x5da3ba['AFlle'](_0x2a8e2c,_0x1f4ea6);++_0x2a8e2c){(_0x505293=_0x362bd2[_0x2a8e2c])&&(_0x168e76=_0x505293[_0x5422b8(0x276)],_0x5da3ba['hWBvR'](callNodeRefs,_0x505293),_0x168e76[_0x5422b8(0x2d3)]());}},updateChildren=(_0x1b5de2,_0x3ee4f6,_0x2751ce,_0x276475)=>{const _0x2f288c=_0x4b2f13,_0x91af2={'tNndS':function(_0x4788fc,_0x32156e){return _0x4788fc-_0x32156e;},'RWGIR':function(_0x4f3c45,_0x1e98b6){return _0x4f3c45<=_0x1e98b6;},'oGCiS':function(_0x2c1a0f,_0x131c1f){return _0x2c1a0f<=_0x131c1f;},'NxyEK':function(_0x17233f,_0x3c0432){return _0x17233f==_0x3c0432;},'cnHCF':function(_0x1a4f78,_0x241eb1){return _0x1a4f78==_0x241eb1;},'nFBSQ':function(_0x1cf6a2,_0x3ae7f7,_0x1d848f){return _0x1cf6a2(_0x3ae7f7,_0x1d848f);},'TPcsl':function(_0x48244c,_0xd5539f,_0x4b77ef){return _0x48244c(_0xd5539f,_0x4b77ef);},'HXTxd':function(_0x280510,_0x1ae784,_0x12114f){return _0x280510(_0x1ae784,_0x12114f);},'QLFuK':function(_0xd79180,_0x2d3726,_0x203541){return _0xd79180(_0x2d3726,_0x203541);},'QnGwW':function(_0x2eb4fe,_0x4bd7d7,_0x123982){return _0x2eb4fe(_0x4bd7d7,_0x123982);},'CJpyu':function(_0x43d432,_0x35f77f){return _0x43d432>_0x35f77f;},'ojdqd':function(_0x308cbf,_0x525ebb,_0x2abc70,_0x1cac3f,_0x31ac1a,_0x12b9e9,_0x4e50b3){return _0x308cbf(_0x525ebb,_0x2abc70,_0x1cac3f,_0x31ac1a,_0x12b9e9,_0x4e50b3);},'vgyYW':function(_0x167a54,_0x287aaa){return _0x167a54==_0x287aaa;},'PlqQZ':function(_0x4ea13c,_0x23e12b){return _0x4ea13c+_0x23e12b;},'XpjYW':function(_0x2907e5,_0x237798){return _0x2907e5+_0x237798;},'wwcly':function(_0x3ff601,_0x5b490d){return _0x3ff601>_0x5b490d;},'WJCXe':function(_0x4c9d32,_0x3d94d6,_0x4fc921,_0x58e375){return _0x4c9d32(_0x3d94d6,_0x4fc921,_0x58e375);}};let _0xb91fb3=0x0,_0x532eec=0x0,_0x52b68e=_0x3ee4f6[_0x2f288c(0x224)]-0x1,_0x119126=_0x3ee4f6[0x0],_0x1e7ba8=_0x3ee4f6[_0x52b68e],_0x14cbfa=_0x91af2[_0x2f288c(0x2a2)](_0x276475[_0x2f288c(0x224)],0x1),_0x35de10=_0x276475[0x0],_0x479a02=_0x276475[_0x14cbfa],_0x3956ea;while(_0x91af2[_0x2f288c(0x234)](_0xb91fb3,_0x52b68e)&&_0x91af2[_0x2f288c(0x2ca)](_0x532eec,_0x14cbfa)){if(_0x91af2['NxyEK'](_0x119126,null))_0x119126=_0x3ee4f6[++_0xb91fb3];else{if(_0x91af2[_0x2f288c(0x27e)](_0x1e7ba8,null))_0x1e7ba8=_0x3ee4f6[--_0x52b68e];else{if(_0x91af2[_0x2f288c(0x249)](_0x35de10,null))_0x35de10=_0x276475[++_0x532eec];else{if(_0x91af2[_0x2f288c(0x27e)](_0x479a02,null))_0x479a02=_0x276475[--_0x14cbfa];else{if(_0x91af2[_0x2f288c(0x2db)](isSameVnode,_0x119126,_0x35de10))_0x91af2[_0x2f288c(0x1f4)](patch,_0x119126,_0x35de10),_0x119126=_0x3ee4f6[++_0xb91fb3],_0x35de10=_0x276475[++_0x532eec];else{if(_0x91af2['HXTxd'](isSameVnode,_0x1e7ba8,_0x479a02))_0x91af2[_0x2f288c(0x2f1)](patch,_0x1e7ba8,_0x479a02),_0x1e7ba8=_0x3ee4f6[--_0x52b68e],_0x479a02=_0x276475[--_0x14cbfa];else{if(_0x91af2[_0x2f288c(0x1f4)](isSameVnode,_0x119126,_0x479a02))_0x91af2['QnGwW'](patch,_0x119126,_0x479a02),_0x1b5de2[_0x2f288c(0x2b0)](_0x119126[_0x2f288c(0x276)],_0x1e7ba8[_0x2f288c(0x276)][_0x2f288c(0x292)]),_0x119126=_0x3ee4f6[++_0xb91fb3],_0x479a02=_0x276475[--_0x14cbfa];else{if(isSameVnode(_0x1e7ba8,_0x35de10))_0x91af2[_0x2f288c(0x29c)](patch,_0x1e7ba8,_0x35de10),_0x1b5de2[_0x2f288c(0x2b0)](_0x1e7ba8['$elm$'],_0x119126['$elm$']),_0x1e7ba8=_0x3ee4f6[--_0x52b68e],_0x35de10=_0x276475[++_0x532eec];else{{_0x3956ea=createElm(_0x3ee4f6&&_0x3ee4f6[_0x532eec],_0x2751ce,_0x532eec),_0x35de10=_0x276475[++_0x532eec];}if(_0x3956ea){_0x119126['$elm$'][_0x2f288c(0x303)]['insertBefore'](_0x3956ea,_0x119126['$elm$']);}}}}}}}}}}if(_0x91af2[_0x2f288c(0x29d)](_0xb91fb3,_0x52b68e))_0x91af2[_0x2f288c(0x2a0)](addVnodes,_0x1b5de2,_0x91af2[_0x2f288c(0x2fc)](_0x276475[_0x91af2['PlqQZ'](_0x14cbfa,0x1)],null)?null:_0x276475[_0x91af2[_0x2f288c(0x251)](_0x14cbfa,0x1)][_0x2f288c(0x276)],_0x2751ce,_0x276475,_0x532eec,_0x14cbfa);else _0x91af2['wwcly'](_0x532eec,_0x14cbfa)&&_0x91af2[_0x2f288c(0x2f5)](removeVnodes,_0x3ee4f6,_0xb91fb3,_0x52b68e);},isSameVnode=(_0x50f964,_0x25faeb)=>{const _0x815eb9=_0x4b2f13,_0x310b07={'TbTgY':function(_0x2e1828,_0x384fc7){return _0x2e1828===_0x384fc7;}};if(_0x310b07[_0x815eb9(0x25d)](_0x50f964['$tag$'],_0x25faeb[_0x815eb9(0x253)]))return!![];return![];},patch=(_0x30dd4d,_0x562564)=>{const _0x432e2e=_0x4b2f13,_0x339934={'CDbUL':function(_0x4dbf83,_0x26440b){return _0x4dbf83===_0x26440b;},'QRClp':function(_0x2d6e98,_0x47f4fe){return _0x2d6e98===_0x47f4fe;},'jHdmY':_0x432e2e(0x2c3),'yPnVv':function(_0xf4dac2,_0x482b01){return _0xf4dac2===_0x482b01;},'gvueL':_0x432e2e(0x2ce),'LibiV':function(_0x8946d1,_0x32e8e2){return _0x8946d1!==_0x32e8e2;},'nckMy':function(_0x585217,_0x43a85a,_0x42c7a4,_0x1964b2,_0x3b0289,_0x4ce6d5,_0x239ab0){return _0x585217(_0x43a85a,_0x42c7a4,_0x1964b2,_0x3b0289,_0x4ce6d5,_0x239ab0);},'ulysr':function(_0x448dc5,_0x4f238f){return _0x448dc5-_0x4f238f;},'QqnmV':function(_0x185830,_0x462fc5){return _0x185830!==_0x462fc5;},'osfdZ':function(_0x25c064,_0x394da3,_0x47e9a4,_0x14b05d){return _0x25c064(_0x394da3,_0x47e9a4,_0x14b05d);},'uHaVk':function(_0x54c957,_0x249b02){return _0x54c957-_0x249b02;},'lPLqS':function(_0x13f31f,_0xb6d488){return _0x13f31f===_0xb6d488;}},_0x564b9d=_0x562564[_0x432e2e(0x276)]=_0x30dd4d[_0x432e2e(0x276)],_0x4bfc36=_0x30dd4d[_0x432e2e(0x29f)],_0x346f53=_0x562564[_0x432e2e(0x29f)],_0x4eed82=_0x562564[_0x432e2e(0x253)],_0x2951af=_0x562564[_0x432e2e(0x2d1)];if(_0x339934[_0x432e2e(0x2e6)](_0x2951af,null)){{isSvgMode=_0x339934[_0x432e2e(0x282)](_0x4eed82,_0x339934[_0x432e2e(0x2ee)])?!![]:_0x339934[_0x432e2e(0x2e6)](_0x4eed82,_0x432e2e(0x2cc))?![]:isSvgMode;}{if(_0x339934[_0x432e2e(0x2f6)](_0x4eed82,_0x339934[_0x432e2e(0x286)]));else updateElement(_0x30dd4d,_0x562564,isSvgMode);}if(_0x339934[_0x432e2e(0x242)](_0x4bfc36,null)&&_0x339934['LibiV'](_0x346f53,null))updateChildren(_0x564b9d,_0x4bfc36,_0x562564,_0x346f53);else{if(_0x346f53!==null)_0x30dd4d[_0x432e2e(0x2d1)]!==null&&(_0x564b9d[_0x432e2e(0x23f)]=''),_0x339934[_0x432e2e(0x235)](addVnodes,_0x564b9d,null,_0x562564,_0x346f53,0x0,_0x339934[_0x432e2e(0x271)](_0x346f53['length'],0x1));else _0x339934[_0x432e2e(0x2d0)](_0x4bfc36,null)&&_0x339934[_0x432e2e(0x1fc)](removeVnodes,_0x4bfc36,0x0,_0x339934[_0x432e2e(0x261)](_0x4bfc36[_0x432e2e(0x224)],0x1));}isSvgMode&&_0x339934[_0x432e2e(0x288)](_0x4eed82,_0x339934[_0x432e2e(0x2ee)])&&(isSvgMode=![]);}else _0x30dd4d[_0x432e2e(0x2d1)]!==_0x2951af&&(_0x564b9d['data']=_0x2951af);},callNodeRefs=_0x5b741e=>{const _0x154804=_0x4b2f13;{_0x5b741e[_0x154804(0x296)]&&_0x5b741e[_0x154804(0x296)][_0x154804(0x1f0)]&&_0x5b741e[_0x154804(0x296)][_0x154804(0x1f0)](null),_0x5b741e[_0x154804(0x29f)]&&_0x5b741e[_0x154804(0x29f)][_0x154804(0x22d)](callNodeRefs);}},renderVdom=(_0x566e08,_0x233067)=>{const _0x19abef=_0x4b2f13,_0x2afe14={'BoBdx':function(_0xe70a8d,_0x436e8e){return _0xe70a8d(_0x436e8e);},'jzrRy':function(_0x2ea7ea,_0x33a90c,_0x48c64c,_0x5da5fe){return _0x2ea7ea(_0x33a90c,_0x48c64c,_0x5da5fe);},'YGbXs':function(_0x57029e,_0x1a8746,_0xa6abae){return _0x57029e(_0x1a8746,_0xa6abae);}},_0x4b9d8a=_0x566e08['$hostElement$'],_0x2697dd=_0x566e08['$cmpMeta$'],_0x2eddf2=_0x566e08['$vnode$']||newVNode(null,null),_0x1add88=_0x2afe14[_0x19abef(0x287)](isHost,_0x233067)?_0x233067:_0x2afe14[_0x19abef(0x26a)](h,null,null,_0x233067);hostTagName=_0x4b9d8a[_0x19abef(0x212)];_0x2697dd['$attrsToReflect$']&&(_0x1add88[_0x19abef(0x296)]=_0x1add88[_0x19abef(0x296)]||{},_0x2697dd[_0x19abef(0x1ec)][_0x19abef(0x22d)](([_0x8b3659,_0x46218f])=>_0x1add88[_0x19abef(0x296)][_0x46218f]=_0x4b9d8a[_0x8b3659]));_0x1add88['$tag$']=null,_0x1add88[_0x19abef(0x284)]|=0x4,_0x566e08[_0x19abef(0x1eb)]=_0x1add88,_0x1add88['$elm$']=_0x2eddf2[_0x19abef(0x276)]=_0x4b9d8a[_0x19abef(0x22c)]||_0x4b9d8a;{scopeId=_0x4b9d8a[_0x19abef(0x2e7)];}_0x2afe14['YGbXs'](patch,_0x2eddf2,_0x1add88);},attachToAncestor=(_0xc6f76e,_0x77ec81)=>{const _0x42d432=_0x4b2f13,_0x40f7ca={'maGgn':_0x42d432(0x2f3)};_0x77ec81&&!_0xc6f76e['$onRenderResolve$']&&_0x77ec81[_0x40f7ca[_0x42d432(0x28d)]]&&_0x77ec81[_0x42d432(0x2f3)]['push'](new Promise(_0xf44e4c=>_0xc6f76e[_0x42d432(0x309)]=_0xf44e4c));},scheduleUpdate=(_0x1bed46,_0x2c284f)=>{const _0x14d349=_0x4b2f13,_0x40efdf={'Eihnm':function(_0x1e6553,_0x580294,_0x429f17){return _0x1e6553(_0x580294,_0x429f17);},'bziwi':function(_0x3f8b40,_0x6dbcd3){return _0x3f8b40(_0x6dbcd3);}};{_0x1bed46[_0x14d349(0x284)]|=0x10;}if(_0x1bed46[_0x14d349(0x284)]&0x4){_0x1bed46[_0x14d349(0x284)]|=0x200;return;}_0x40efdf[_0x14d349(0x27f)](attachToAncestor,_0x1bed46,_0x1bed46['$ancestorComponent$']);const _0x2ec720=()=>dispatchHooks(_0x1bed46,_0x2c284f);return _0x40efdf[_0x14d349(0x1f8)](writeTask,_0x2ec720);},dispatchHooks=(_0x53931a,_0x133446)=>{const _0x53e553=_0x4b2f13,_0x492775={'RAvBo':function(_0x20c416,_0x493980,_0x47e7fd){return _0x20c416(_0x493980,_0x47e7fd);},'HKkaT':_0x53e553(0x285),'lHFKk':function(_0x179cf6){return _0x179cf6();}},_0x59f0c1=_0x492775['RAvBo'](createTime,_0x492775[_0x53e553(0x20f)],_0x53931a['$cmpMeta$']['$tagName$']),_0xf26597=_0x53931a[_0x53e553(0x2f2)];let _0x2c3074;if(_0x133446){_0x2c3074=_0x492775['RAvBo'](safeCall,_0xf26597,_0x53e553(0x27c));}return _0x492775[_0x53e553(0x21f)](_0x59f0c1),then(_0x2c3074,()=>updateComponent(_0x53931a,_0xf26597,_0x133446));},updateComponent=async(_0x36e390,_0x4055c4,_0x5aa060)=>{const _0x484844=_0x4b2f13,_0x360adf={'egaMT':_0x484844(0x274),'ennpp':'s-rc','dnbue':function(_0x6b9089,_0x1d3586){return _0x6b9089(_0x1d3586);},'JePvu':function(_0x504241,_0x3efeeb,_0x2fea7b){return _0x504241(_0x3efeeb,_0x2fea7b);},'XGAcs':function(_0x5ba815){return _0x5ba815();},'clQWs':function(_0x47dd59,_0x495839){return _0x47dd59===_0x495839;}},_0x21912b=_0x36e390[_0x484844(0x1ff)],_0x1af85c=createTime(_0x360adf[_0x484844(0x23d)],_0x36e390[_0x484844(0x279)][_0x484844(0x1f5)]),_0x1b66ac=_0x21912b[_0x360adf[_0x484844(0x2ad)]];_0x5aa060&&_0x360adf[_0x484844(0x24e)](attachStyles,_0x36e390);const _0x364903=_0x360adf['JePvu'](createTime,_0x484844(0x2df),_0x36e390[_0x484844(0x279)][_0x484844(0x1f5)]);{_0x360adf['JePvu'](callRender,_0x36e390,_0x4055c4);}_0x1b66ac&&(_0x1b66ac[_0x484844(0x22d)](_0x1aabbb=>_0x1aabbb()),_0x21912b[_0x360adf[_0x484844(0x2ad)]]=undefined);_0x360adf[_0x484844(0x237)](_0x364903),_0x1af85c();{const _0x4b08bd=_0x21912b[_0x484844(0x2f3)],_0x1627e9=()=>postUpdateComponent(_0x36e390);_0x360adf[_0x484844(0x2e3)](_0x4b08bd[_0x484844(0x224)],0x0)?_0x1627e9():(Promise[_0x484844(0x2ea)](_0x4b08bd)['then'](_0x1627e9),_0x36e390[_0x484844(0x284)]|=0x4,_0x4b08bd[_0x484844(0x224)]=0x0);}},callRender=(_0x425d31,_0x2bc08f,_0xcf70e4)=>{const _0x1ccaaf=_0x4b2f13,_0x327c5d={'cKpEn':function(_0x15d900,_0xd5c93d,_0x421b31){return _0x15d900(_0xd5c93d,_0x421b31);}};try{_0x2bc08f=_0x2bc08f[_0x1ccaaf(0x2df)]();{_0x425d31[_0x1ccaaf(0x284)]&=~0x10;}{_0x425d31['$flags$']|=0x2;}{{{_0x327c5d['cKpEn'](renderVdom,_0x425d31,_0x2bc08f);}}}}catch(_0x1f78ea){_0x327c5d[_0x1ccaaf(0x227)](consoleError,_0x1f78ea,_0x425d31['$hostElement$']);}return null;},postUpdateComponent=_0x4b354d=>{const _0x53fb1b=_0x4b2f13,_0x798034={'FLfZm':function(_0x7874d6,_0x1d3d09,_0x8b6633){return _0x7874d6(_0x1d3d09,_0x8b6633);},'IaRei':_0x53fb1b(0x269),'znJlQ':function(_0x142d86,_0xd5af9){return _0x142d86&_0xd5af9;},'pDYNc':function(_0x135d91){return _0x135d91();},'oWKCl':function(_0x4deb36,_0x64ee93){return _0x4deb36(_0x64ee93);},'doVeN':function(_0x560358,_0x37491e){return _0x560358|_0x37491e;}},_0x38e768=_0x4b354d['$cmpMeta$'][_0x53fb1b(0x1f5)],_0x154e04=_0x4b354d[_0x53fb1b(0x1ff)],_0x2c110b=_0x798034[_0x53fb1b(0x255)](createTime,_0x798034['IaRei'],_0x38e768),_0x33e882=_0x4b354d[_0x53fb1b(0x2f2)],_0x579738=_0x4b354d[_0x53fb1b(0x232)];if(!_0x798034[_0x53fb1b(0x280)](_0x4b354d[_0x53fb1b(0x284)],0x40)){const _0x178963=_0x53fb1b(0x2fb)[_0x53fb1b(0x2f7)]('|');let _0x375d72=0x0;while(!![]){switch(_0x178963[_0x375d72++]){case'0':{_0x4b354d[_0x53fb1b(0x231)](_0x154e04),!_0x579738&&appDidLoad();}continue;case'1':_0x4b354d[_0x53fb1b(0x284)]|=0x40;continue;case'2':{addHydratedFlag(_0x154e04);}continue;case'3':_0x798034['pDYNc'](_0x2c110b);continue;case'4':{safeCall(_0x33e882,'componentDidLoad');}continue;}break;}}else _0x798034[_0x53fb1b(0x1fe)](_0x2c110b);{_0x4b354d[_0x53fb1b(0x309)]&&(_0x4b354d[_0x53fb1b(0x309)](),_0x4b354d[_0x53fb1b(0x309)]=undefined),_0x4b354d[_0x53fb1b(0x284)]&0x200&&_0x798034[_0x53fb1b(0x2a7)](nextTick,()=>scheduleUpdate(_0x4b354d,![])),_0x4b354d[_0x53fb1b(0x284)]&=~_0x798034['doVeN'](0x4,0x200);}},appDidLoad=_0x353a38=>{const _0x2479f3=_0x4b2f13,_0x1e1829={'uVkTm':function(_0x4b605b,_0x4dc776){return _0x4b605b(_0x4dc776);}};{_0x1e1829[_0x2479f3(0x26e)](addHydratedFlag,doc[_0x2479f3(0x2fe)]);}_0x1e1829[_0x2479f3(0x26e)](nextTick,()=>emitEvent(win,_0x2479f3(0x21e),{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x4387bf,_0x3cc4a9,_0x6d0f60)=>{const _0x1a4c76=_0x4b2f13,_0x3df275={'SNWtP':function(_0x117994,_0x1a7eac){return _0x117994(_0x1a7eac);}};if(_0x4387bf&&_0x4387bf[_0x3cc4a9])try{return _0x4387bf[_0x3cc4a9](_0x6d0f60);}catch(_0x4f2183){_0x3df275[_0x1a4c76(0x233)](consoleError,_0x4f2183);}return undefined;},then=(_0x38dfbc,_0x103495)=>{const _0x1ba105=_0x4b2f13;return _0x38dfbc&&_0x38dfbc[_0x1ba105(0x1ed)]?_0x38dfbc[_0x1ba105(0x1ed)](_0x103495):_0x103495();},addHydratedFlag=_0x2a5e18=>_0x2a5e18[_0x4b2f13(0x1e5)][_0x4b2f13(0x266)](_0x4b2f13(0x2bb)),getValue=(_0x2eb53a,_0x41b8cc)=>getHostRef(_0x2eb53a)[_0x4b2f13(0x247)][_0x4b2f13(0x2ba)](_0x41b8cc),setValue=(_0x3ff3fa,_0x533c9d,_0x4eefac,_0x34b738)=>{const _0x58e622=_0x4b2f13,_0x327b6f={'UOQVS':function(_0x11e235,_0x26ba5e,_0x4e6638){return _0x11e235(_0x26ba5e,_0x4e6638);},'pgfhD':function(_0x55379f,_0x178d23){return _0x55379f!==_0x178d23;},'zxcxN':function(_0xab5231,_0x3fb855){return _0xab5231&_0x3fb855;},'AayzK':function(_0x257185,_0x21e154){return _0x257185===_0x21e154;},'egnfZ':function(_0x53fea7,_0x3fb295,_0x35e8dc){return _0x53fea7(_0x3fb295,_0x35e8dc);}},_0x24d0f1=getHostRef(_0x3ff3fa),_0x39e80e=_0x24d0f1[_0x58e622(0x247)][_0x58e622(0x2ba)](_0x533c9d),_0x2cbbaa=_0x24d0f1['$flags$'],_0x288c28=_0x24d0f1[_0x58e622(0x2f2)];_0x4eefac=_0x327b6f[_0x58e622(0x2a1)](parsePropertyValue,_0x4eefac,_0x34b738[_0x58e622(0x2e9)][_0x533c9d][0x0]);const _0x580638=Number[_0x58e622(0x2c9)](_0x39e80e)&&Number[_0x58e622(0x2c9)](_0x4eefac),_0x2c8156=_0x327b6f[_0x58e622(0x208)](_0x4eefac,_0x39e80e)&&!_0x580638;(!_0x327b6f[_0x58e622(0x22a)](_0x2cbbaa,0x8)||_0x39e80e===undefined)&&_0x2c8156&&(_0x24d0f1[_0x58e622(0x247)][_0x58e622(0x1e7)](_0x533c9d,_0x4eefac),_0x288c28&&(_0x327b6f[_0x58e622(0x24a)](_0x2cbbaa&(0x2|0x10),0x2)&&_0x327b6f[_0x58e622(0x21b)](scheduleUpdate,_0x24d0f1,![])));},proxyComponent=(_0x105150,_0x4e01d2,_0x59b71a)=>{const _0xa93ff3=_0x4b2f13,_0xd63cfd={'ytkyj':function(_0x6c364a,_0x30f2a1,_0x41a86b){return _0x6c364a(_0x30f2a1,_0x41a86b);},'DcGnJ':function(_0x1a6212,_0x2f9391){return _0x1a6212&_0x2f9391;},'mNbUV':function(_0x38576d,_0x576532){return _0x38576d&_0x576532;},'RNKaA':function(_0xb272de,_0x2d17f0){return _0xb272de===_0x2d17f0;},'XARhT':_0xa93ff3(0x2b8),'gJvzs':function(_0xaf4aed,_0x5935f1){return _0xaf4aed==_0x5935f1;},'LFixc':function(_0x576d87,_0x3105ee){return _0x576d87===_0x3105ee;},'oInXP':'boolean','AwuZq':function(_0x1c635a,_0x592ade){return _0x1c635a&_0x592ade;},'FtPap':function(_0x6fdd56,_0x12a575){return _0x6fdd56&_0x12a575;}};if(_0x4e01d2[_0xa93ff3(0x2e9)]){const _0x15207f=Object[_0xa93ff3(0x213)](_0x4e01d2[_0xa93ff3(0x2e9)]),_0x39368f=_0x105150[_0xa93ff3(0x2fa)];_0x15207f[_0xa93ff3(0x22d)](([_0x168310,[_0x2dd9ef]])=>{const _0x468cb8=_0xa93ff3;(_0xd63cfd['DcGnJ'](_0x2dd9ef,0x1f)||_0xd63cfd['DcGnJ'](_0x59b71a,0x2)&&_0xd63cfd['mNbUV'](_0x2dd9ef,0x20))&&Object[_0x468cb8(0x226)](_0x39368f,_0x168310,{'get'(){const _0x174768=_0x468cb8;return _0xd63cfd[_0x174768(0x209)](getValue,this,_0x168310);},'set'(_0x399404){setValue(this,_0x168310,_0x399404,_0x4e01d2);},'configurable':!![],'enumerable':!![]});});if(_0xd63cfd[_0xa93ff3(0x2b1)](_0x59b71a,0x1)){const _0x89bd49=new Map();_0x39368f[_0xa93ff3(0x1e8)]=function(_0x4cf8cb,_0x2e2cdc,_0x39e576){const _0x362bfc=_0xa93ff3;plt[_0x362bfc(0x2f8)](()=>{const _0x2a58f8=_0x362bfc,_0x51400a=_0x89bd49[_0x2a58f8(0x2ba)](_0x4cf8cb);if(this[_0x2a58f8(0x26f)](_0x51400a))_0x39e576=this[_0x51400a],delete this[_0x51400a];else{if(_0x39368f[_0x2a58f8(0x26f)](_0x51400a)&&_0xd63cfd[_0x2a58f8(0x215)](typeof this[_0x51400a],_0xd63cfd['XARhT'])&&_0xd63cfd[_0x2a58f8(0x24b)](this[_0x51400a],_0x39e576))return;}this[_0x51400a]=_0xd63cfd[_0x2a58f8(0x21a)](_0x39e576,null)&&_0xd63cfd['LFixc'](typeof this[_0x51400a],_0xd63cfd[_0x2a58f8(0x238)])?![]:_0x39e576;});},_0x105150[_0xa93ff3(0x1e6)]=_0x15207f[_0xa93ff3(0x20e)](([_0x1ca7dd,_0x194063])=>_0x194063[0x0]&0xf)[_0xa93ff3(0x22d)](([_0x21100b,_0x515d15])=>{const _0x1b2ce9=_0xa93ff3,_0x8af0f5=_0x515d15[0x1]||_0x21100b;return _0x89bd49['set'](_0x8af0f5,_0x21100b),_0xd63cfd[_0x1b2ce9(0x20d)](_0x515d15[0x0],0x200)&&_0x4e01d2[_0x1b2ce9(0x1ec)][_0x1b2ce9(0x2c4)]([_0x21100b,_0x8af0f5]),_0x8af0f5;});}}return _0x105150;},initializeComponent=async(_0x2a7608,_0x334575,_0x441732,_0x52bc0,_0x53f0f0)=>{const _0x3c7184=_0x4b2f13,_0x39a885={'yDjns':function(_0x165acd,_0x3461f7){return _0x165acd===_0x3461f7;},'EXGXW':function(_0x3fd41a,_0x382bbf){return _0x3fd41a&_0x382bbf;},'Sqhxm':function(_0x22d8d3,_0x36f92f){return _0x22d8d3(_0x36f92f);},'ScKpr':function(_0x476b36){return _0x476b36();},'sJjBY':function(_0x5e7055){return _0x5e7055();},'tCmdu':function(_0x119970,_0x4e111a,_0x3a1491,_0x1e96f1){return _0x119970(_0x4e111a,_0x3a1491,_0x1e96f1);},'NxhUm':function(_0x1ad8ee,_0x231719,_0x5f2dae){return _0x1ad8ee(_0x231719,_0x5f2dae);},'oGvmE':_0x3c7184(0x210),'bhEKf':function(_0x3c2791,_0x4edda7){return _0x3c2791(_0x4edda7);},'gBuiq':_0x3c7184(0x230),'SAJrb':function(_0x15476e){return _0x15476e();},'YQUfU':_0x3c7184(0x2ed)};if(_0x39a885['yDjns'](_0x39a885[_0x3c7184(0x23b)](_0x334575['$flags$'],0x20),0x0)){{_0x334575[_0x3c7184(0x284)]|=0x20,_0x53f0f0=_0x39a885[_0x3c7184(0x2a3)](loadModule,_0x441732);if(_0x53f0f0[_0x3c7184(0x1ed)]){const _0x4703c2=_0x39a885[_0x3c7184(0x220)](uniqueTime);_0x53f0f0=await _0x53f0f0,_0x39a885['sJjBY'](_0x4703c2);}!_0x53f0f0[_0x3c7184(0x1f1)]&&(_0x39a885[_0x3c7184(0x273)](proxyComponent,_0x53f0f0,_0x441732,0x2),_0x53f0f0['isProxied']=!![]);const _0x8ecc92=_0x39a885['NxhUm'](createTime,_0x39a885[_0x3c7184(0x2c7)],_0x441732[_0x3c7184(0x1f5)]);{_0x334575[_0x3c7184(0x284)]|=0x8;}try{new _0x53f0f0(_0x334575);}catch(_0x1da747){_0x39a885[_0x3c7184(0x2cb)](consoleError,_0x1da747);}{_0x334575[_0x3c7184(0x284)]&=~0x8;}_0x8ecc92(),_0x39a885['bhEKf'](fireConnectedCallback,_0x334575[_0x3c7184(0x2f2)]);}if(_0x53f0f0[_0x3c7184(0x21c)]){let _0x423292=_0x53f0f0[_0x3c7184(0x21c)];const _0x23f64e=getScopeId(_0x441732);if(!styles['has'](_0x23f64e)){const _0x48c3ac=_0x39a885[_0x3c7184(0x28e)](createTime,_0x39a885[_0x3c7184(0x2bc)],_0x441732[_0x3c7184(0x1f5)]);_0x39a885['tCmdu'](registerStyle,_0x23f64e,_0x423292,!!(_0x441732['$flags$']&0x1)),_0x39a885[_0x3c7184(0x2e1)](_0x48c3ac);}}}const _0xb14b7f=_0x334575[_0x3c7184(0x232)],_0x1d0079=()=>scheduleUpdate(_0x334575,!![]);_0xb14b7f&&_0xb14b7f[_0x39a885[_0x3c7184(0x2ff)]]?_0xb14b7f[_0x39a885[_0x3c7184(0x2ff)]][_0x3c7184(0x2c4)](_0x1d0079):_0x39a885[_0x3c7184(0x1f2)](_0x1d0079);},fireConnectedCallback=_0x2ea983=>{const _0x5baba2=_0x4b2f13,_0x2a056c={'BZkGM':function(_0x4fc082,_0x551b39,_0x31c46b){return _0x4fc082(_0x551b39,_0x31c46b);},'CyBrD':'connectedCallback'};{_0x2a056c[_0x5baba2(0x250)](safeCall,_0x2ea983,_0x2a056c[_0x5baba2(0x29a)]);}},connectedCallback=_0x3adab8=>{const _0x4716a7=_0x4b2f13,_0x1d8c94={'Emhbb':function(_0x58e058,_0x1d461d){return _0x58e058&_0x1d461d;},'AWaEG':function(_0x4641c8,_0x4349fa){return _0x4641c8===_0x4349fa;},'JuBMn':function(_0xec3f4f,_0x2942aa){return _0xec3f4f(_0x2942aa);},'VowNl':function(_0x5dbd03,_0x288048,_0x8eb154){return _0x5dbd03(_0x288048,_0x8eb154);},'fMSMv':_0x4716a7(0x2da),'Ehwaa':function(_0x40cdd8,_0x1420ab){return _0x40cdd8&_0x1420ab;},'PUYVA':function(_0x30d501,_0x1d4105,_0x57fbc2){return _0x30d501(_0x1d4105,_0x57fbc2);},'umykZ':function(_0x598620,_0x3059fc,_0x3459c7,_0x49be19){return _0x598620(_0x3059fc,_0x3459c7,_0x49be19);},'akhyu':function(_0x5a60b2,_0xce37bc){return _0x5a60b2(_0xce37bc);},'sfqJE':function(_0x2fda26){return _0x2fda26();}};if(_0x1d8c94[_0x4716a7(0x252)](_0x1d8c94[_0x4716a7(0x1ef)](plt[_0x4716a7(0x284)],0x1),0x0)){const _0x491a1c=_0x1d8c94[_0x4716a7(0x2b6)](getHostRef,_0x3adab8),_0x535004=_0x491a1c[_0x4716a7(0x279)],_0x298abe=_0x1d8c94['VowNl'](createTime,_0x1d8c94['fMSMv'],_0x535004[_0x4716a7(0x1f5)]);if(!_0x1d8c94[_0x4716a7(0x2f9)](_0x491a1c[_0x4716a7(0x284)],0x1)){_0x491a1c[_0x4716a7(0x284)]|=0x1;{let _0x50136a=_0x3adab8;while(_0x50136a=_0x50136a['parentNode']||_0x50136a[_0x4716a7(0x256)]){if(_0x50136a[_0x4716a7(0x2f3)]){_0x1d8c94[_0x4716a7(0x2c0)](attachToAncestor,_0x491a1c,_0x491a1c[_0x4716a7(0x232)]=_0x50136a);break;}}}_0x535004[_0x4716a7(0x2e9)]&&Object[_0x4716a7(0x213)](_0x535004[_0x4716a7(0x2e9)])[_0x4716a7(0x22d)](([_0x1c1af5,[_0x598e06]])=>{const _0x39f93a=_0x4716a7;if(_0x1d8c94[_0x39f93a(0x1ef)](_0x598e06,0x1f)&&_0x3adab8[_0x39f93a(0x26f)](_0x1c1af5)){const _0x30f6f4=_0x3adab8[_0x1c1af5];delete _0x3adab8[_0x1c1af5],_0x3adab8[_0x1c1af5]=_0x30f6f4;}});{_0x1d8c94[_0x4716a7(0x2e0)](initializeComponent,_0x3adab8,_0x491a1c,_0x535004);}}else _0x1d8c94['akhyu'](fireConnectedCallback,_0x491a1c['$lazyInstance$']);_0x1d8c94[_0x4716a7(0x258)](_0x298abe);}},disconnectedCallback=_0x102b1f=>{const _0x31d423=_0x4b2f13,_0x4bbff9={'VvHzZ':function(_0x1585b2,_0x2aac20){return _0x1585b2(_0x2aac20);}};if((plt['$flags$']&0x1)===0x0){const _0x4981ff=_0x4bbff9['VvHzZ'](getHostRef,_0x102b1f),_0x9079c1=_0x4981ff[_0x31d423(0x2f2)];{safeCall(_0x9079c1,_0x31d423(0x300));}}},bootstrapLazy=(_0xfa7b6d,_0xfea790={})=>{const _0x571978=_0x4b2f13,_0x3f1d22={'ghqAZ':function(_0x45796e,_0xa5e123){return _0x45796e(_0xa5e123);},'UGySK':_0x571978(0x218),'GnhOT':function(_0x19ee23){return _0x19ee23();},'JTbGI':'meta[charset]','rAxxq':_0x571978(0x21c),'wqCHC':function(_0x4267b0,_0x377a55){return _0x4267b0+_0x377a55;},'vCXfV':_0x571978(0x223),'qdxwg':function(_0x15d3db,_0x3fa8a9){return _0x15d3db!==_0x3fa8a9;},'wkfpN':function(_0x1b29a5,_0x4f0616){return _0x1b29a5(_0x4f0616);},'hsbsp':_0x571978(0x1ea)};var _0x4191f9;const _0x1356eb=_0x3f1d22[_0x571978(0x298)](createTime),_0x3f6695=[],_0x2a21f3=_0xfea790[_0x571978(0x229)]||[],_0x509bc6=win[_0x571978(0x1f7)],_0x1e1958=doc[_0x571978(0x263)],_0x227692=_0x1e1958[_0x571978(0x2b4)](_0x3f1d22[_0x571978(0x221)]),_0x2069d6=doc[_0x571978(0x2ec)](_0x3f1d22[_0x571978(0x264)]),_0x28b412=[];let _0x426386,_0xbe832b=!![];Object[_0x571978(0x2e8)](plt,_0xfea790),plt[_0x571978(0x260)]=new URL(_0xfea790[_0x571978(0x2e5)]||'./',doc['baseURI'])['href'],_0xfa7b6d['map'](_0x17c8d5=>{const _0x32f3be=_0x571978,_0x29b9ee={'mrIkr':function(_0x258635,_0x279aca){return _0x258635&_0x279aca;},'ZRsvK':_0x3f1d22[_0x32f3be(0x2d5)]};_0x17c8d5[0x1]['map'](_0x42934b=>{const _0x4c5068=_0x32f3be,_0x168c6d={'NwSMe':function(_0x575648,_0x39f831){const _0x12776c=_0x2932;return _0x3f1d22[_0x12776c(0x225)](_0x575648,_0x39f831);}},_0x3bc51e={'$flags$':_0x42934b[0x0],'$tagName$':_0x42934b[0x1],'$members$':_0x42934b[0x2],'$listeners$':_0x42934b[0x3]};{_0x3bc51e['$members$']=_0x42934b[0x2];}{_0x3bc51e[_0x4c5068(0x1ec)]=[];}const _0x498920=_0x3bc51e[_0x4c5068(0x1f5)],_0x539dc5=class extends HTMLElement{constructor(_0x530945){const _0x403d89=_0x4c5068;super(_0x530945),_0x530945=this,registerHost(_0x530945,_0x3bc51e);if(_0x29b9ee[_0x403d89(0x306)](_0x3bc51e[_0x403d89(0x284)],0x1)){{_0x530945[_0x403d89(0x2bd)]({'mode':_0x29b9ee[_0x403d89(0x2d9)]});}}}['connectedCallback'](){const _0x3c4227=_0x4c5068;_0x426386&&(_0x168c6d[_0x3c4227(0x207)](clearTimeout,_0x426386),_0x426386=null),_0xbe832b?_0x28b412[_0x3c4227(0x2c4)](this):plt[_0x3c4227(0x2f8)](()=>connectedCallback(this));}[_0x4c5068(0x300)](){const _0x4c323b=_0x4c5068;plt[_0x4c323b(0x2f8)](()=>disconnectedCallback(this));}[_0x4c5068(0x214)](){const _0x2819e4=_0x4c5068;return _0x168c6d[_0x2819e4(0x207)](getHostRef,this)[_0x2819e4(0x27d)];}};_0x3bc51e[_0x4c5068(0x2a9)]=_0x17c8d5[0x0],!_0x2a21f3[_0x4c5068(0x259)](_0x498920)&&!_0x509bc6['get'](_0x498920)&&(_0x3f6695['push'](_0x498920),_0x509bc6[_0x4c5068(0x1f6)](_0x498920,proxyComponent(_0x539dc5,_0x3bc51e,0x1)));});});{_0x2069d6['innerHTML']=_0x3f1d22[_0x571978(0x2dd)](_0x3f6695,HYDRATED_CSS),_0x2069d6['setAttribute'](_0x3f1d22[_0x571978(0x27a)],'');const _0x4dfa56=(_0x4191f9=plt[_0x571978(0x201)])!==null&&_0x3f1d22[_0x571978(0x254)](_0x4191f9,void 0x0)?_0x4191f9:_0x3f1d22[_0x571978(0x2a6)](queryNonceMetaTagContent,doc);_0x4dfa56!=null&&_0x2069d6['setAttribute'](_0x3f1d22['hsbsp'],_0x4dfa56),_0x1e1958['insertBefore'](_0x2069d6,_0x227692?_0x227692['nextSibling']:_0x1e1958[_0x571978(0x20c)]);}_0xbe832b=![];if(_0x28b412['length'])_0x28b412[_0x571978(0x22d)](_0x385aa2=>_0x385aa2[_0x571978(0x2da)]());else{plt['jmp'](()=>_0x426386=setTimeout(appDidLoad,0x1e));}_0x3f1d22[_0x571978(0x298)](_0x1356eb);},setNonce=_0x1a54d2=>plt['$nonce$']=_0x1a54d2,hostRefs=new WeakMap(),getHostRef=_0x8bfc8a=>hostRefs[_0x4b2f13(0x2ba)](_0x8bfc8a),registerInstance=(_0xba73c4,_0x310e24)=>hostRefs[_0x4b2f13(0x1e7)](_0x310e24[_0x4b2f13(0x2f2)]=_0xba73c4,_0x310e24),registerHost=(_0x3ed59a,_0x502d10)=>{const _0x265473=_0x4b2f13,_0x28428c={'ByAZq':'s-p'},_0x42dcda={'$flags$':0x0,'$hostElement$':_0x3ed59a,'$cmpMeta$':_0x502d10,'$instanceValues$':new Map()};{_0x42dcda[_0x265473(0x27d)]=new Promise(_0x34eacc=>_0x42dcda[_0x265473(0x231)]=_0x34eacc),_0x3ed59a[_0x28428c[_0x265473(0x22f)]]=[],_0x3ed59a[_0x265473(0x2ed)]=[];}return hostRefs[_0x265473(0x1e7)](_0x3ed59a,_0x42dcda);},isMemberInElement=(_0x3e9d81,_0x541709)=>_0x541709 in _0x3e9d81,consoleError=(_0x11d94e,_0x32f41e)=>(0x0,console['error'])(_0x11d94e,_0x32f41e),cmpModules=new Map(),loadModule=(_0x491746,_0x520eed,_0x2b0166)=>{const _0x19f6fd=_0x4b2f13,_0x4f37a2=_0x491746[_0x19f6fd(0x1f5)][_0x19f6fd(0x267)](/-/g,'_'),_0x516a56=_0x491746[_0x19f6fd(0x2a9)],_0x1a822d=cmpModules[_0x19f6fd(0x2ba)](_0x516a56);if(_0x1a822d)return _0x1a822d[_0x4f37a2];return import('./'+_0x516a56+_0x19f6fd(0x2a8))['then'](_0x49b4e5=>{const _0x1e8c57=_0x19f6fd;{cmpModules[_0x1e8c57(0x1e7)](_0x516a56,_0x49b4e5);}return _0x49b4e5[_0x4f37a2];},consoleError);},styles=new Map(),win=typeof window!==_0x4b2f13(0x26b)?window:{},doc=win[_0x4b2f13(0x243)]||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x1565b5=>_0x1565b5(),'raf':_0x1c0a54=>requestAnimationFrame(_0x1c0a54),'ael':(_0x4185fa,_0xc715f0,_0x4a29c1,_0x4ba42d)=>_0x4185fa[_0x4b2f13(0x2cd)](_0xc715f0,_0x4a29c1,_0x4ba42d),'rel':(_0x4f6c31,_0x56af23,_0x2ff9e7,_0x2c65e8)=>_0x4f6c31[_0x4b2f13(0x22e)](_0x56af23,_0x2ff9e7,_0x2c65e8),'ce':(_0x5f238d,_0x4fa123)=>new CustomEvent(_0x5f238d,_0x4fa123)},promiseResolve=_0x1e8d5b=>Promise['resolve'](_0x1e8d5b),supportsConstructableStylesheets=((()=>{const _0x4170da=_0x4b2f13;try{return new CSSStyleSheet(),typeof new CSSStyleSheet()[_0x4170da(0x308)]==='function';}catch(_0x3be6e4){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0x344cf4,_0x30a1b9)=>_0x2fb6d0=>{const _0x299a37=_0x4b2f13,_0x4e53bc={'FOzxC':function(_0x3bbe1f,_0x484222){return _0x3bbe1f&_0x484222;}};_0x344cf4['push'](_0x2fb6d0),!queuePending&&(queuePending=!![],_0x30a1b9&&_0x4e53bc[_0x299a37(0x239)](plt['$flags$'],0x4)?nextTick(flush):plt[_0x299a37(0x22b)](flush));},consume=_0x19c5c6=>{const _0x5c58ab=_0x4b2f13,_0x4af86d={'JJTxo':function(_0x4f4564,_0xc85f41){return _0x4f4564(_0xc85f41);}};for(let _0x1450e8=0x0;_0x1450e8<_0x19c5c6[_0x5c58ab(0x224)];_0x1450e8++){try{_0x19c5c6[_0x1450e8](performance['now']());}catch(_0x4b9a6f){_0x4af86d[_0x5c58ab(0x2d6)](consoleError,_0x4b9a6f);}}_0x19c5c6[_0x5c58ab(0x224)]=0x0;},flush=()=>{const _0x2b3b98=_0x4b2f13,_0x5ef8c9={'uXFEK':function(_0xc72bcf,_0x5ce28b){return _0xc72bcf(_0x5ce28b);},'kEbav':function(_0x13a90a,_0x1639cb){return _0x13a90a(_0x1639cb);}};_0x5ef8c9[_0x2b3b98(0x30a)](consume,queueDomReads);{_0x5ef8c9[_0x2b3b98(0x2ac)](consume,queueDomWrites),(queuePending=queueDomReads[_0x2b3b98(0x224)]>0x0)&&plt[_0x2b3b98(0x22b)](flush);}},nextTick=_0x8dea87=>promiseResolve()[_0x4b2f13(0x1ed)](_0x8dea87),writeTask=queueTask(queueDomWrites,!![]);export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};