skeleton-webcomponent-loader 2.1.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/index-BKUCi6S8.js +1522 -0
  3. package/dist/cjs/loader.cjs.js +7 -29
  4. package/dist/cjs/nb-skeleton.cjs.entry.js +168 -114
  5. package/dist/cjs/skeleton-webcomponent.cjs.js +17 -15
  6. package/dist/collection/collection-manifest.json +4 -3
  7. package/dist/collection/components/skeleton/skeleton.js +460 -304
  8. package/dist/{custom-elements → components}/index.d.ts +13 -23
  9. package/dist/components/index.js +1 -0
  10. package/dist/components/nb-skeleton.d.ts +11 -0
  11. package/dist/components/nb-skeleton.js +1 -0
  12. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  13. package/dist/esm/index-D_NQrSVN.js +1515 -0
  14. package/dist/esm/loader.js +7 -27
  15. package/dist/esm/nb-skeleton.entry.js +168 -112
  16. package/dist/esm/skeleton-webcomponent.js +15 -15
  17. package/dist/esm-es5/app-globals-DQuL1Twl.js +1 -0
  18. package/dist/esm-es5/index-D_NQrSVN.js +2 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/nb-skeleton.entry.js +1 -1
  21. package/dist/esm-es5/skeleton-webcomponent.js +1 -1
  22. package/dist/skeleton-webcomponent/p-0ab2f3bc.system.entry.js +1 -0
  23. package/dist/skeleton-webcomponent/p-BbPAtVJG.system.js +1 -0
  24. package/dist/skeleton-webcomponent/p-CEkATbjM.system.js +2 -0
  25. package/dist/skeleton-webcomponent/p-DQuL1Twl.js +1 -0
  26. package/dist/skeleton-webcomponent/p-D_NQrSVN.js +2 -0
  27. package/dist/skeleton-webcomponent/p-DikQ2aXB.system.js +1 -0
  28. package/dist/skeleton-webcomponent/p-e5fc5295.entry.js +1 -0
  29. package/dist/skeleton-webcomponent/skeleton-webcomponent.esm.js +1 -1
  30. package/dist/skeleton-webcomponent/skeleton-webcomponent.js +14 -19
  31. package/dist/types/components/skeleton/skeleton.d.ts +101 -67
  32. package/dist/types/components.d.ts +75 -2
  33. package/dist/types/stencil-public-runtime.d.ts +335 -40
  34. package/loader/cdn.js +1 -2
  35. package/loader/index.cjs.js +1 -2
  36. package/loader/index.d.ts +13 -1
  37. package/loader/index.es2017.js +1 -2
  38. package/loader/index.js +1 -2
  39. package/package.json +5 -6
  40. package/readme.md +0 -1
  41. package/CHANGELOG.md +0 -26
  42. package/dist/cjs/css-shim-b3e497ca.js +0 -6
  43. package/dist/cjs/index-b5d2dca0.js +0 -1156
  44. package/dist/custom-elements/index.js +0 -142
  45. package/dist/esm/css-shim-2f04a37a.js +0 -4
  46. package/dist/esm/index-63fd3905.js +0 -1128
  47. package/dist/esm/polyfills/css-shim.js +0 -1
  48. package/dist/esm-es5/css-shim-2f04a37a.js +0 -1
  49. package/dist/esm-es5/index-63fd3905.js +0 -1
  50. package/dist/skeleton-webcomponent/p-12077897.js +0 -1
  51. package/dist/skeleton-webcomponent/p-16aec442.system.js +0 -1
  52. package/dist/skeleton-webcomponent/p-63ed3b45.entry.js +0 -1
  53. package/dist/skeleton-webcomponent/p-7e96e5d4.js +0 -1
  54. package/dist/skeleton-webcomponent/p-8bef7229.system.js +0 -1
  55. package/dist/skeleton-webcomponent/p-dc1bf577.system.entry.js +0 -1
  56. package/dist/skeleton-webcomponent/p-f59432d4.system.js +0 -1
  57. package/loader/package.json +0 -10
  58. /package/dist/skeleton-webcomponent/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
@@ -1,1128 +0,0 @@
1
- const NAMESPACE = 'skeleton-webcomponent';
2
-
3
- let scopeId;
4
- let hostTagName;
5
- let isSvgMode = false;
6
- let queuePending = false;
7
- const win = typeof window !== 'undefined' ? window : {};
8
- const CSS = win.CSS ;
9
- const doc = win.document || { head: {} };
10
- const plt = {
11
- $flags$: 0,
12
- $resourcesUrl$: '',
13
- jmp: (h) => h(),
14
- raf: (h) => requestAnimationFrame(h),
15
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
16
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
17
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
18
- };
19
- const promiseResolve = (v) => Promise.resolve(v);
20
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
21
- try {
22
- new CSSStyleSheet();
23
- return typeof new CSSStyleSheet().replace === 'function';
24
- }
25
- catch (e) { }
26
- return false;
27
- })()
28
- ;
29
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
- const createTime = (fnName, tagName = '') => {
31
- {
32
- return () => {
33
- return;
34
- };
35
- }
36
- };
37
- const uniqueTime = (key, measureText) => {
38
- {
39
- return () => {
40
- return;
41
- };
42
- }
43
- };
44
- const rootAppliedStyles = new WeakMap();
45
- const registerStyle = (scopeId, cssText, allowCS) => {
46
- let style = styles.get(scopeId);
47
- if (supportsConstructibleStylesheets && allowCS) {
48
- style = (style || new CSSStyleSheet());
49
- style.replace(cssText);
50
- }
51
- else {
52
- style = cssText;
53
- }
54
- styles.set(scopeId, style);
55
- };
56
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
57
- let scopeId = getScopeId(cmpMeta);
58
- let style = styles.get(scopeId);
59
- // if an element is NOT connected then getRootNode() will return the wrong root node
60
- // so the fallback is to always use the document for the root node in those cases
61
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
62
- if (style) {
63
- if (typeof style === 'string') {
64
- styleContainerNode = styleContainerNode.head || styleContainerNode;
65
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
66
- let styleElm;
67
- if (!appliedStyles) {
68
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
69
- }
70
- if (!appliedStyles.has(scopeId)) {
71
- {
72
- if (plt.$cssShim$) {
73
- styleElm = plt.$cssShim$.createHostStyle(hostElm, scopeId, style, !!(cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */));
74
- const newScopeId = styleElm['s-sc'];
75
- if (newScopeId) {
76
- scopeId = newScopeId;
77
- // we don't want to add this styleID to the appliedStyles Set
78
- // since the cssVarShim might need to apply several different
79
- // stylesheets for the same component
80
- appliedStyles = null;
81
- }
82
- }
83
- else {
84
- styleElm = doc.createElement('style');
85
- styleElm.innerHTML = style;
86
- }
87
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
88
- }
89
- if (appliedStyles) {
90
- appliedStyles.add(scopeId);
91
- }
92
- }
93
- }
94
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
95
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
96
- }
97
- }
98
- return scopeId;
99
- };
100
- const attachStyles = (hostRef) => {
101
- const cmpMeta = hostRef.$cmpMeta$;
102
- const elm = hostRef.$hostElement$;
103
- const flags = cmpMeta.$flags$;
104
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
105
- const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta, hostRef.$modeName$, elm);
106
- if (flags & 10 /* needsScopedEncapsulation */) {
107
- // only required when we're NOT using native shadow dom (slot)
108
- // or this browser doesn't support native shadow dom
109
- // and this host element was NOT created with SSR
110
- // let's pick out the inner content for slot projection
111
- // create a node to represent where the original
112
- // content was first placed, which is useful later on
113
- // DOM WRITE!!
114
- elm['s-sc'] = scopeId;
115
- elm.classList.add(scopeId + '-h');
116
- }
117
- endAttachStyles();
118
- };
119
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
120
- /**
121
- * Default style mode id
122
- */
123
- /**
124
- * Reusable empty obj/array
125
- * Don't add values to these!!
126
- */
127
- const EMPTY_OBJ = {};
128
- const isDef = (v) => v != null;
129
- const isComplexType = (o) => {
130
- // https://jsperf.com/typeof-fn-object/5
131
- o = typeof o;
132
- return o === 'object' || o === 'function';
133
- };
134
- /**
135
- * Production h() function based on Preact by
136
- * Jason Miller (@developit)
137
- * Licensed under the MIT License
138
- * https://github.com/developit/preact/blob/master/LICENSE
139
- *
140
- * Modified for Stencil's compiler and vdom
141
- */
142
- // const stack: any[] = [];
143
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
144
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
145
- const h = (nodeName, vnodeData, ...children) => {
146
- let child = null;
147
- let key = null;
148
- let simple = false;
149
- let lastSimple = false;
150
- let vNodeChildren = [];
151
- const walk = (c) => {
152
- for (let i = 0; i < c.length; i++) {
153
- child = c[i];
154
- if (Array.isArray(child)) {
155
- walk(child);
156
- }
157
- else if (child != null && typeof child !== 'boolean') {
158
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
159
- child = String(child);
160
- }
161
- if (simple && lastSimple) {
162
- // If the previous child was simple (string), we merge both
163
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
164
- }
165
- else {
166
- // Append a new vNode, if it's text, we create a text vNode
167
- vNodeChildren.push(simple ? newVNode(null, child) : child);
168
- }
169
- lastSimple = simple;
170
- }
171
- }
172
- };
173
- walk(children);
174
- if (vnodeData) {
175
- // normalize class / classname attributes
176
- if (vnodeData.key) {
177
- key = vnodeData.key;
178
- }
179
- {
180
- const classData = vnodeData.className || vnodeData.class;
181
- if (classData) {
182
- vnodeData.class =
183
- typeof classData !== 'object'
184
- ? classData
185
- : Object.keys(classData)
186
- .filter((k) => classData[k])
187
- .join(' ');
188
- }
189
- }
190
- }
191
- const vnode = newVNode(nodeName, null);
192
- vnode.$attrs$ = vnodeData;
193
- if (vNodeChildren.length > 0) {
194
- vnode.$children$ = vNodeChildren;
195
- }
196
- {
197
- vnode.$key$ = key;
198
- }
199
- return vnode;
200
- };
201
- const newVNode = (tag, text) => {
202
- const vnode = {
203
- $flags$: 0,
204
- $tag$: tag,
205
- $text$: text,
206
- $elm$: null,
207
- $children$: null,
208
- };
209
- {
210
- vnode.$attrs$ = null;
211
- }
212
- {
213
- vnode.$key$ = null;
214
- }
215
- return vnode;
216
- };
217
- const Host = {};
218
- const isHost = (node) => node && node.$tag$ === Host;
219
- /**
220
- * Production setAccessor() function based on Preact by
221
- * Jason Miller (@developit)
222
- * Licensed under the MIT License
223
- * https://github.com/developit/preact/blob/master/LICENSE
224
- *
225
- * Modified for Stencil's compiler and vdom
226
- */
227
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
228
- if (oldValue !== newValue) {
229
- let isProp = isMemberInElement(elm, memberName);
230
- memberName.toLowerCase();
231
- if (memberName === 'class') {
232
- const classList = elm.classList;
233
- const oldClasses = parseClassList(oldValue);
234
- const newClasses = parseClassList(newValue);
235
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
236
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
237
- }
238
- else if (memberName === 'style') {
239
- // update style attribute, css properties and values
240
- {
241
- for (const prop in oldValue) {
242
- if (!newValue || newValue[prop] == null) {
243
- if (prop.includes('-')) {
244
- elm.style.removeProperty(prop);
245
- }
246
- else {
247
- elm.style[prop] = '';
248
- }
249
- }
250
- }
251
- }
252
- for (const prop in newValue) {
253
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
254
- if (prop.includes('-')) {
255
- elm.style.setProperty(prop, newValue[prop]);
256
- }
257
- else {
258
- elm.style[prop] = newValue[prop];
259
- }
260
- }
261
- }
262
- }
263
- else if (memberName === 'key')
264
- ;
265
- else {
266
- // Set property if it exists and it's not a SVG
267
- const isComplex = isComplexType(newValue);
268
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
269
- try {
270
- if (!elm.tagName.includes('-')) {
271
- let n = newValue == null ? '' : newValue;
272
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
273
- if (memberName === 'list') {
274
- isProp = false;
275
- }
276
- else if (oldValue == null || elm[memberName] != n) {
277
- elm[memberName] = n;
278
- }
279
- }
280
- else {
281
- elm[memberName] = newValue;
282
- }
283
- }
284
- catch (e) { }
285
- }
286
- if (newValue == null || newValue === false) {
287
- if (newValue !== false || elm.getAttribute(memberName) === '') {
288
- {
289
- elm.removeAttribute(memberName);
290
- }
291
- }
292
- }
293
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
294
- newValue = newValue === true ? '' : newValue;
295
- {
296
- elm.setAttribute(memberName, newValue);
297
- }
298
- }
299
- }
300
- }
301
- };
302
- const parseClassListRegex = /\s/;
303
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
304
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
305
- // if the element passed in is a shadow root, which is a document fragment
306
- // then we want to be adding attrs/props to the shadow root's "host" element
307
- // if it's not a shadow root, then we add attrs/props to the same element
308
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
309
- ? newVnode.$elm$.host
310
- : newVnode.$elm$;
311
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
312
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
313
- {
314
- // remove attributes no longer present on the vnode by setting them to undefined
315
- for (memberName in oldVnodeAttrs) {
316
- if (!(memberName in newVnodeAttrs)) {
317
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
318
- }
319
- }
320
- }
321
- // add new & update changed attributes
322
- for (memberName in newVnodeAttrs) {
323
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
324
- }
325
- };
326
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
327
- // tslint:disable-next-line: prefer-const
328
- let newVNode = newParentVNode.$children$[childIndex];
329
- let i = 0;
330
- let elm;
331
- let childNode;
332
- {
333
- // create element
334
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
335
- // add css classes, attrs, props, listeners, etc.
336
- {
337
- updateElement(null, newVNode, isSvgMode);
338
- }
339
- if (isDef(scopeId) && elm['s-si'] !== scopeId) {
340
- // if there is a scopeId and this is the initial render
341
- // then let's add the scopeId as a css class
342
- elm.classList.add((elm['s-si'] = scopeId));
343
- }
344
- if (newVNode.$children$) {
345
- for (i = 0; i < newVNode.$children$.length; ++i) {
346
- // create the node
347
- childNode = createElm(oldParentVNode, newVNode, i);
348
- // return node could have been null
349
- if (childNode) {
350
- // append our new node
351
- elm.appendChild(childNode);
352
- }
353
- }
354
- }
355
- }
356
- return elm;
357
- };
358
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
359
- let containerElm = (parentElm);
360
- let childNode;
361
- if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
362
- containerElm = containerElm.shadowRoot;
363
- }
364
- for (; startIdx <= endIdx; ++startIdx) {
365
- if (vnodes[startIdx]) {
366
- childNode = createElm(null, parentVNode, startIdx);
367
- if (childNode) {
368
- vnodes[startIdx].$elm$ = childNode;
369
- containerElm.insertBefore(childNode, before);
370
- }
371
- }
372
- }
373
- };
374
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
375
- for (; startIdx <= endIdx; ++startIdx) {
376
- if ((vnode = vnodes[startIdx])) {
377
- elm = vnode.$elm$;
378
- // remove the vnode's element from the dom
379
- elm.remove();
380
- }
381
- }
382
- };
383
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
384
- let oldStartIdx = 0;
385
- let newStartIdx = 0;
386
- let idxInOld = 0;
387
- let i = 0;
388
- let oldEndIdx = oldCh.length - 1;
389
- let oldStartVnode = oldCh[0];
390
- let oldEndVnode = oldCh[oldEndIdx];
391
- let newEndIdx = newCh.length - 1;
392
- let newStartVnode = newCh[0];
393
- let newEndVnode = newCh[newEndIdx];
394
- let node;
395
- let elmToMove;
396
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
397
- if (oldStartVnode == null) {
398
- // Vnode might have been moved left
399
- oldStartVnode = oldCh[++oldStartIdx];
400
- }
401
- else if (oldEndVnode == null) {
402
- oldEndVnode = oldCh[--oldEndIdx];
403
- }
404
- else if (newStartVnode == null) {
405
- newStartVnode = newCh[++newStartIdx];
406
- }
407
- else if (newEndVnode == null) {
408
- newEndVnode = newCh[--newEndIdx];
409
- }
410
- else if (isSameVnode(oldStartVnode, newStartVnode)) {
411
- patch(oldStartVnode, newStartVnode);
412
- oldStartVnode = oldCh[++oldStartIdx];
413
- newStartVnode = newCh[++newStartIdx];
414
- }
415
- else if (isSameVnode(oldEndVnode, newEndVnode)) {
416
- patch(oldEndVnode, newEndVnode);
417
- oldEndVnode = oldCh[--oldEndIdx];
418
- newEndVnode = newCh[--newEndIdx];
419
- }
420
- else if (isSameVnode(oldStartVnode, newEndVnode)) {
421
- patch(oldStartVnode, newEndVnode);
422
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
423
- oldStartVnode = oldCh[++oldStartIdx];
424
- newEndVnode = newCh[--newEndIdx];
425
- }
426
- else if (isSameVnode(oldEndVnode, newStartVnode)) {
427
- patch(oldEndVnode, newStartVnode);
428
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
429
- oldEndVnode = oldCh[--oldEndIdx];
430
- newStartVnode = newCh[++newStartIdx];
431
- }
432
- else {
433
- // createKeyToOldIdx
434
- idxInOld = -1;
435
- {
436
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
437
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
438
- idxInOld = i;
439
- break;
440
- }
441
- }
442
- }
443
- if (idxInOld >= 0) {
444
- elmToMove = oldCh[idxInOld];
445
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
446
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
447
- }
448
- else {
449
- patch(elmToMove, newStartVnode);
450
- oldCh[idxInOld] = undefined;
451
- node = elmToMove.$elm$;
452
- }
453
- newStartVnode = newCh[++newStartIdx];
454
- }
455
- else {
456
- // new element
457
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
458
- newStartVnode = newCh[++newStartIdx];
459
- }
460
- if (node) {
461
- {
462
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
463
- }
464
- }
465
- }
466
- }
467
- if (oldStartIdx > oldEndIdx) {
468
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
469
- }
470
- else if (newStartIdx > newEndIdx) {
471
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
472
- }
473
- };
474
- const isSameVnode = (vnode1, vnode2) => {
475
- // compare if two vnode to see if they're "technically" the same
476
- // need to have the same element tag, and same key to be the same
477
- if (vnode1.$tag$ === vnode2.$tag$) {
478
- {
479
- return vnode1.$key$ === vnode2.$key$;
480
- }
481
- }
482
- return false;
483
- };
484
- const patch = (oldVNode, newVNode) => {
485
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
486
- const oldChildren = oldVNode.$children$;
487
- const newChildren = newVNode.$children$;
488
- {
489
- // element node
490
- {
491
- {
492
- // either this is the first render of an element OR it's an update
493
- // AND we already know it's possible it could have changed
494
- // this updates the element's css classes, attrs, props, listeners, etc.
495
- updateElement(oldVNode, newVNode, isSvgMode);
496
- }
497
- }
498
- if (oldChildren !== null && newChildren !== null) {
499
- // looks like there's child vnodes for both the old and new vnodes
500
- updateChildren(elm, oldChildren, newVNode, newChildren);
501
- }
502
- else if (newChildren !== null) {
503
- // add the new vnode children
504
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
505
- }
506
- else if (oldChildren !== null) {
507
- // no new child vnodes, but there are old child vnodes to remove
508
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
509
- }
510
- }
511
- };
512
- const renderVdom = (hostRef, renderFnResults) => {
513
- const hostElm = hostRef.$hostElement$;
514
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
515
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
516
- hostTagName = hostElm.tagName;
517
- rootVnode.$tag$ = null;
518
- rootVnode.$flags$ |= 4 /* isHost */;
519
- hostRef.$vnode$ = rootVnode;
520
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
521
- {
522
- scopeId = hostElm['s-sc'];
523
- }
524
- // synchronous patch
525
- patch(oldVNode, rootVnode);
526
- };
527
- /**
528
- * Helper function to create & dispatch a custom Event on a provided target
529
- * @param elm the target of the Event
530
- * @param name the name to give the custom Event
531
- * @param opts options for configuring a custom Event
532
- * @returns the custom Event
533
- */
534
- const emitEvent = (elm, name, opts) => {
535
- const ev = plt.ce(name, opts);
536
- elm.dispatchEvent(ev);
537
- return ev;
538
- };
539
- const attachToAncestor = (hostRef, ancestorComponent) => {
540
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
541
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
542
- }
543
- };
544
- const scheduleUpdate = (hostRef, isInitialLoad) => {
545
- {
546
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
547
- }
548
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
549
- hostRef.$flags$ |= 512 /* needsRerender */;
550
- return;
551
- }
552
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
553
- // there is no ancestor component or the ancestor component
554
- // has already fired off its lifecycle update then
555
- // fire off the initial update
556
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
557
- return writeTask(dispatch) ;
558
- };
559
- const dispatchHooks = (hostRef, isInitialLoad) => {
560
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
561
- const instance = hostRef.$lazyInstance$ ;
562
- let promise;
563
- if (isInitialLoad) {
564
- {
565
- promise = safeCall(instance, 'componentWillLoad');
566
- }
567
- }
568
- else {
569
- {
570
- promise = safeCall(instance, 'componentWillUpdate');
571
- }
572
- }
573
- endSchedule();
574
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
575
- };
576
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
577
- // updateComponent
578
- const elm = hostRef.$hostElement$;
579
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
580
- const rc = elm['s-rc'];
581
- if (isInitialLoad) {
582
- // DOM WRITE!
583
- attachStyles(hostRef);
584
- }
585
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
586
- {
587
- callRender(hostRef, instance);
588
- }
589
- if (plt.$cssShim$) {
590
- plt.$cssShim$.updateHost(elm);
591
- }
592
- if (rc) {
593
- // ok, so turns out there are some child host elements
594
- // waiting on this parent element to load
595
- // let's fire off all update callbacks waiting
596
- rc.map((cb) => cb());
597
- elm['s-rc'] = undefined;
598
- }
599
- endRender();
600
- endUpdate();
601
- {
602
- const childrenPromises = elm['s-p'];
603
- const postUpdate = () => postUpdateComponent(hostRef);
604
- if (childrenPromises.length === 0) {
605
- postUpdate();
606
- }
607
- else {
608
- Promise.all(childrenPromises).then(postUpdate);
609
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
610
- childrenPromises.length = 0;
611
- }
612
- }
613
- };
614
- const callRender = (hostRef, instance, elm) => {
615
- try {
616
- instance = instance.render() ;
617
- {
618
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
619
- }
620
- {
621
- hostRef.$flags$ |= 2 /* hasRendered */;
622
- }
623
- {
624
- {
625
- // looks like we've got child nodes to render into this host element
626
- // or we need to update the css class/attrs on the host element
627
- // DOM WRITE!
628
- {
629
- renderVdom(hostRef, instance);
630
- }
631
- }
632
- }
633
- }
634
- catch (e) {
635
- consoleError(e, hostRef.$hostElement$);
636
- }
637
- return null;
638
- };
639
- const postUpdateComponent = (hostRef) => {
640
- const tagName = hostRef.$cmpMeta$.$tagName$;
641
- const elm = hostRef.$hostElement$;
642
- const endPostUpdate = createTime('postUpdate', tagName);
643
- const ancestorComponent = hostRef.$ancestorComponent$;
644
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
645
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
646
- {
647
- // DOM WRITE!
648
- addHydratedFlag(elm);
649
- }
650
- endPostUpdate();
651
- {
652
- hostRef.$onReadyResolve$(elm);
653
- if (!ancestorComponent) {
654
- appDidLoad();
655
- }
656
- }
657
- }
658
- else {
659
- endPostUpdate();
660
- }
661
- // load events fire from bottom to top
662
- // the deepest elements load first then bubbles up
663
- {
664
- if (hostRef.$onRenderResolve$) {
665
- hostRef.$onRenderResolve$();
666
- hostRef.$onRenderResolve$ = undefined;
667
- }
668
- if (hostRef.$flags$ & 512 /* needsRerender */) {
669
- nextTick(() => scheduleUpdate(hostRef, false));
670
- }
671
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
672
- }
673
- // ( •_•)
674
- // ( •_•)>⌐■-■
675
- // (⌐■_■)
676
- };
677
- const appDidLoad = (who) => {
678
- // on appload
679
- // we have finish the first big initial render
680
- {
681
- addHydratedFlag(doc.documentElement);
682
- }
683
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
684
- };
685
- const safeCall = (instance, method, arg) => {
686
- if (instance && instance[method]) {
687
- try {
688
- return instance[method](arg);
689
- }
690
- catch (e) {
691
- consoleError(e);
692
- }
693
- }
694
- return undefined;
695
- };
696
- const then = (promise, thenFn) => {
697
- return promise && promise.then ? promise.then(thenFn) : thenFn();
698
- };
699
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
700
- ;
701
- const parsePropertyValue = (propValue, propType) => {
702
- // ensure this value is of the correct prop type
703
- if (propValue != null && !isComplexType(propValue)) {
704
- if (propType & 4 /* Boolean */) {
705
- // per the HTML spec, any string value means it is a boolean true value
706
- // but we'll cheat here and say that the string "false" is the boolean false
707
- return propValue === 'false' ? false : propValue === '' || !!propValue;
708
- }
709
- if (propType & 2 /* Number */) {
710
- // force it to be a number
711
- return parseFloat(propValue);
712
- }
713
- if (propType & 1 /* String */) {
714
- // could have been passed as a number or boolean
715
- // but we still want it as a string
716
- return String(propValue);
717
- }
718
- // redundant return here for better minification
719
- return propValue;
720
- }
721
- // not sure exactly what type we want
722
- // so no need to change to a different type
723
- return propValue;
724
- };
725
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
726
- const setValue = (ref, propName, newVal, cmpMeta) => {
727
- // check our new property value against our internal value
728
- const hostRef = getHostRef(ref);
729
- const oldVal = hostRef.$instanceValues$.get(propName);
730
- const flags = hostRef.$flags$;
731
- const instance = hostRef.$lazyInstance$ ;
732
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
733
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
734
- // gadzooks! the property's value has changed!!
735
- // set our new value!
736
- hostRef.$instanceValues$.set(propName, newVal);
737
- if (instance) {
738
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
739
- // looks like this value actually changed, so we've got work to do!
740
- // but only if we've already rendered, otherwise just chill out
741
- // queue that we need to do an update, but don't worry about queuing
742
- // up millions cuz this function ensures it only runs once
743
- scheduleUpdate(hostRef, false);
744
- }
745
- }
746
- }
747
- };
748
- const proxyComponent = (Cstr, cmpMeta, flags) => {
749
- if (cmpMeta.$members$) {
750
- // It's better to have a const than two Object.entries()
751
- const members = Object.entries(cmpMeta.$members$);
752
- const prototype = Cstr.prototype;
753
- members.map(([memberName, [memberFlags]]) => {
754
- if ((memberFlags & 31 /* Prop */ ||
755
- ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
756
- // proxyComponent - prop
757
- Object.defineProperty(prototype, memberName, {
758
- get() {
759
- // proxyComponent, get value
760
- return getValue(this, memberName);
761
- },
762
- set(newValue) {
763
- // proxyComponent, set value
764
- setValue(this, memberName, newValue, cmpMeta);
765
- },
766
- configurable: true,
767
- enumerable: true,
768
- });
769
- }
770
- });
771
- if ((flags & 1 /* isElementConstructor */)) {
772
- const attrNameToPropName = new Map();
773
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
774
- plt.jmp(() => {
775
- const propName = attrNameToPropName.get(attrName);
776
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
777
- // in the case where an attribute was set inline.
778
- // ```html
779
- // <my-component some-attribute="some-value"></my-component>
780
- // ```
781
- //
782
- // There is an edge case where a developer sets the attribute inline on a custom element and then
783
- // programmatically changes it before it has been upgraded as shown below:
784
- //
785
- // ```html
786
- // <!-- this component has _not_ been upgraded yet -->
787
- // <my-component id="test" some-attribute="some-value"></my-component>
788
- // <script>
789
- // // grab non-upgraded component
790
- // el = document.querySelector("#test");
791
- // el.someAttribute = "another-value";
792
- // // upgrade component
793
- // customElements.define('my-component', MyComponent);
794
- // </script>
795
- // ```
796
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
797
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
798
- // to the value that was set inline i.e. "some-value" from above example. When
799
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
800
- //
801
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
802
- // by connectedCallback as this attributeChangedCallback will not fire.
803
- //
804
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
805
- //
806
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
807
- // properties here given that this goes against best practices outlined here
808
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
809
- if (this.hasOwnProperty(propName)) {
810
- newValue = this[propName];
811
- delete this[propName];
812
- }
813
- else if (prototype.hasOwnProperty(propName) &&
814
- typeof this[propName] === 'number' &&
815
- this[propName] == newValue) {
816
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
817
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
818
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
819
- return;
820
- }
821
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
822
- });
823
- };
824
- // create an array of attributes to observe
825
- // and also create a map of html attribute name to js property name
826
- Cstr.observedAttributes = members
827
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
828
- .map(([propName, m]) => {
829
- const attrName = m[1] || propName;
830
- attrNameToPropName.set(attrName, propName);
831
- return attrName;
832
- });
833
- }
834
- }
835
- return Cstr;
836
- };
837
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
838
- // initializeComponent
839
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
840
- {
841
- // we haven't initialized this element yet
842
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
843
- // lazy loaded components
844
- // request the component's implementation to be
845
- // wired up with the host element
846
- Cstr = loadModule(cmpMeta);
847
- if (Cstr.then) {
848
- // Await creates a micro-task avoid if possible
849
- const endLoad = uniqueTime();
850
- Cstr = await Cstr;
851
- endLoad();
852
- }
853
- if (!Cstr.isProxied) {
854
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
855
- Cstr.isProxied = true;
856
- }
857
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
858
- // ok, time to construct the instance
859
- // but let's keep track of when we start and stop
860
- // so that the getters/setters don't incorrectly step on data
861
- {
862
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
863
- }
864
- // construct the lazy-loaded component implementation
865
- // passing the hostRef is very important during
866
- // construction in order to directly wire together the
867
- // host element and the lazy-loaded instance
868
- try {
869
- new Cstr(hostRef);
870
- }
871
- catch (e) {
872
- consoleError(e);
873
- }
874
- {
875
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
876
- }
877
- endNewInstance();
878
- }
879
- if (Cstr.style) {
880
- // this component has styles but we haven't registered them yet
881
- let style = Cstr.style;
882
- const scopeId = getScopeId(cmpMeta);
883
- if (!styles.has(scopeId)) {
884
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
885
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
886
- endRegisterStyles();
887
- }
888
- }
889
- }
890
- // we've successfully created a lazy instance
891
- const ancestorComponent = hostRef.$ancestorComponent$;
892
- const schedule = () => scheduleUpdate(hostRef, true);
893
- if (ancestorComponent && ancestorComponent['s-rc']) {
894
- // this is the initial load and this component it has an ancestor component
895
- // but the ancestor component has NOT fired its will update lifecycle yet
896
- // so let's just cool our jets and wait for the ancestor to continue first
897
- // this will get fired off when the ancestor component
898
- // finally gets around to rendering its lazy self
899
- // fire off the initial update
900
- ancestorComponent['s-rc'].push(schedule);
901
- }
902
- else {
903
- schedule();
904
- }
905
- };
906
- const connectedCallback = (elm) => {
907
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
908
- const hostRef = getHostRef(elm);
909
- const cmpMeta = hostRef.$cmpMeta$;
910
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
911
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
912
- // first time this component has connected
913
- hostRef.$flags$ |= 1 /* hasConnected */;
914
- {
915
- // find the first ancestor component (if there is one) and register
916
- // this component as one of the actively loading child components for its ancestor
917
- let ancestorComponent = elm;
918
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
919
- // climb up the ancestors looking for the first
920
- // component that hasn't finished its lifecycle update yet
921
- if (ancestorComponent['s-p']) {
922
- // we found this components first ancestor component
923
- // keep a reference to this component's ancestor component
924
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
925
- break;
926
- }
927
- }
928
- }
929
- // Lazy properties
930
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
931
- if (cmpMeta.$members$) {
932
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
933
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
934
- const value = elm[memberName];
935
- delete elm[memberName];
936
- elm[memberName] = value;
937
- }
938
- });
939
- }
940
- {
941
- initializeComponent(elm, hostRef, cmpMeta);
942
- }
943
- }
944
- endConnected();
945
- }
946
- };
947
- const disconnectedCallback = (elm) => {
948
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
949
- getHostRef(elm);
950
- // clear CSS var-shim tracking
951
- if (plt.$cssShim$) {
952
- plt.$cssShim$.removeHost(elm);
953
- }
954
- }
955
- };
956
- const bootstrapLazy = (lazyBundles, options = {}) => {
957
- const endBootstrap = createTime();
958
- const cmpTags = [];
959
- const exclude = options.exclude || [];
960
- const customElements = win.customElements;
961
- const head = doc.head;
962
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
963
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
964
- const deferredConnectedCallbacks = [];
965
- let appLoadFallback;
966
- let isBootstrapping = true;
967
- Object.assign(plt, options);
968
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
969
- lazyBundles.map((lazyBundle) => {
970
- lazyBundle[1].map((compactMeta) => {
971
- const cmpMeta = {
972
- $flags$: compactMeta[0],
973
- $tagName$: compactMeta[1],
974
- $members$: compactMeta[2],
975
- $listeners$: compactMeta[3],
976
- };
977
- {
978
- cmpMeta.$members$ = compactMeta[2];
979
- }
980
- const tagName = cmpMeta.$tagName$;
981
- const HostElement = class extends HTMLElement {
982
- // StencilLazyHost
983
- constructor(self) {
984
- // @ts-ignore
985
- super(self);
986
- self = this;
987
- registerHost(self, cmpMeta);
988
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
989
- // this component is using shadow dom
990
- // and this browser supports shadow dom
991
- // add the read-only property "shadowRoot" to the host element
992
- // adding the shadow root build conditionals to minimize runtime
993
- {
994
- {
995
- self.attachShadow({ mode: 'open' });
996
- }
997
- }
998
- }
999
- }
1000
- connectedCallback() {
1001
- if (appLoadFallback) {
1002
- clearTimeout(appLoadFallback);
1003
- appLoadFallback = null;
1004
- }
1005
- if (isBootstrapping) {
1006
- // connectedCallback will be processed once all components have been registered
1007
- deferredConnectedCallbacks.push(this);
1008
- }
1009
- else {
1010
- plt.jmp(() => connectedCallback(this));
1011
- }
1012
- }
1013
- disconnectedCallback() {
1014
- plt.jmp(() => disconnectedCallback(this));
1015
- }
1016
- componentOnReady() {
1017
- return getHostRef(this).$onReadyPromise$;
1018
- }
1019
- };
1020
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1021
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1022
- cmpTags.push(tagName);
1023
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1024
- }
1025
- });
1026
- });
1027
- {
1028
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1029
- visibilityStyle.setAttribute('data-styles', '');
1030
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1031
- }
1032
- // Process deferred connectedCallbacks now all components have been registered
1033
- isBootstrapping = false;
1034
- if (deferredConnectedCallbacks.length) {
1035
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1036
- }
1037
- else {
1038
- {
1039
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1040
- }
1041
- }
1042
- // Fallback appLoad event
1043
- endBootstrap();
1044
- };
1045
- const hostRefs = new WeakMap();
1046
- const getHostRef = (ref) => hostRefs.get(ref);
1047
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1048
- const registerHost = (elm, cmpMeta) => {
1049
- const hostRef = {
1050
- $flags$: 0,
1051
- $hostElement$: elm,
1052
- $cmpMeta$: cmpMeta,
1053
- $instanceValues$: new Map(),
1054
- };
1055
- {
1056
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1057
- elm['s-p'] = [];
1058
- elm['s-rc'] = [];
1059
- }
1060
- return hostRefs.set(elm, hostRef);
1061
- };
1062
- const isMemberInElement = (elm, memberName) => memberName in elm;
1063
- const consoleError = (e, el) => (0, console.error)(e, el);
1064
- const cmpModules = /*@__PURE__*/ new Map();
1065
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1066
- // loadModuleImport
1067
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1068
- const bundleId = cmpMeta.$lazyBundleId$;
1069
- const module = cmpModules.get(bundleId) ;
1070
- if (module) {
1071
- return module[exportName];
1072
- }
1073
- return import(
1074
- /* webpackInclude: /\.entry\.js$/ */
1075
- /* webpackExclude: /\.system\.entry\.js$/ */
1076
- /* webpackMode: "lazy" */
1077
- `./${bundleId}.entry.js${''}`).then((importedModule) => {
1078
- {
1079
- cmpModules.set(bundleId, importedModule);
1080
- }
1081
- return importedModule[exportName];
1082
- }, consoleError);
1083
- };
1084
- const styles = new Map();
1085
- const queueDomReads = [];
1086
- const queueDomWrites = [];
1087
- const queueTask = (queue, write) => (cb) => {
1088
- queue.push(cb);
1089
- if (!queuePending) {
1090
- queuePending = true;
1091
- if (write && plt.$flags$ & 4 /* queueSync */) {
1092
- nextTick(flush);
1093
- }
1094
- else {
1095
- plt.raf(flush);
1096
- }
1097
- }
1098
- };
1099
- const consume = (queue) => {
1100
- for (let i = 0; i < queue.length; i++) {
1101
- try {
1102
- queue[i](performance.now());
1103
- }
1104
- catch (e) {
1105
- consoleError(e);
1106
- }
1107
- }
1108
- queue.length = 0;
1109
- };
1110
- const flush = () => {
1111
- // always force a bunch of medium callbacks to run, but still have
1112
- // a throttle on how many can run in a certain time
1113
- // DOM READS!!!
1114
- consume(queueDomReads);
1115
- // DOM WRITES!!!
1116
- {
1117
- consume(queueDomWrites);
1118
- if ((queuePending = queueDomReads.length > 0)) {
1119
- // still more to do yet, but we've run out of time
1120
- // let's let this thing cool off and try again in the next tick
1121
- plt.raf(flush);
1122
- }
1123
- }
1124
- };
1125
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1126
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1127
-
1128
- export { CSS as C, promiseResolve as a, bootstrapLazy as b, h, plt as p, registerInstance as r, win as w };