@rijkshuisstijl-community/web-components-stencil 1.0.0-alpha.9 → 1.0.0-alpha.91

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 (65) hide show
  1. package/dist/cjs/{index-79e96916.js → index-80074f45.js} +42 -8
  2. package/dist/cjs/index-80074f45.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/rhc-icon-arrow-right.cjs.entry.js +1 -1
  5. package/dist/cjs/rhc-icon-calendar.cjs.entry.js +1 -1
  6. package/dist/cjs/rhc-icon-error.cjs.entry.js +1 -1
  7. package/dist/cjs/rhc-icon-info_2.cjs.entry.js +2 -2
  8. package/dist/cjs/rhc-icon-info_2.cjs.entry.js.map +1 -1
  9. package/dist/cjs/rhc-icon-success.cjs.entry.js +1 -1
  10. package/dist/cjs/rhc-icon-warning.cjs.entry.js +1 -1
  11. package/dist/cjs/rhc.cjs.js +2 -2
  12. package/dist/cjs/rhc.cjs.js.map +1 -1
  13. package/dist/collection/collection-manifest.json +2 -2
  14. package/dist/collection/logo.css +23 -16
  15. package/dist/components/index.d.ts +0 -12
  16. package/dist/components/index.js +1 -28
  17. package/dist/components/index.js.map +1 -1
  18. package/dist/components/p-4acef7c0.js +988 -0
  19. package/dist/components/p-4acef7c0.js.map +1 -0
  20. package/dist/components/rhc-icon-arrow-right.js +2 -2
  21. package/dist/components/rhc-icon-calendar.js +2 -2
  22. package/dist/components/rhc-icon-error.js +2 -2
  23. package/dist/components/rhc-icon-info.js +2 -2
  24. package/dist/components/rhc-icon-success.js +2 -2
  25. package/dist/components/rhc-icon-warning.js +2 -2
  26. package/dist/components/rhc-logo.js +3 -3
  27. package/dist/components/rhc-logo.js.map +1 -1
  28. package/dist/esm/{index-0eb79357.js → index-9ca29f9a.js} +42 -8
  29. package/dist/esm/index-9ca29f9a.js.map +1 -0
  30. package/dist/esm/loader.js +2 -2
  31. package/dist/esm/rhc-icon-arrow-right.entry.js +1 -1
  32. package/dist/esm/rhc-icon-calendar.entry.js +1 -1
  33. package/dist/esm/rhc-icon-error.entry.js +1 -1
  34. package/dist/esm/rhc-icon-info_2.entry.js +2 -2
  35. package/dist/esm/rhc-icon-info_2.entry.js.map +1 -1
  36. package/dist/esm/rhc-icon-success.entry.js +1 -1
  37. package/dist/esm/rhc-icon-warning.entry.js +1 -1
  38. package/dist/esm/rhc.js +3 -3
  39. package/dist/esm/rhc.js.map +1 -1
  40. package/dist/rhc/{p-566be07a.entry.js → p-1acb2e8e.entry.js} +2 -2
  41. package/dist/rhc/{p-5adfb6ac.entry.js → p-35f8abc1.entry.js} +2 -2
  42. package/dist/rhc/p-59356d58.entry.js +2 -0
  43. package/dist/rhc/p-59356d58.entry.js.map +1 -0
  44. package/dist/rhc/{p-0d031d9b.entry.js → p-5d412544.entry.js} +2 -2
  45. package/dist/rhc/p-6a55adb6.js +3 -0
  46. package/dist/rhc/p-6a55adb6.js.map +1 -0
  47. package/dist/rhc/{p-0c06d3c7.entry.js → p-8f6f35ce.entry.js} +2 -2
  48. package/dist/rhc/{p-994c6c79.entry.js → p-b2b4cc61.entry.js} +2 -2
  49. package/dist/rhc/rhc.esm.js +1 -1
  50. package/dist/rhc/rhc.esm.js.map +1 -1
  51. package/dist/stencil.config.js +3 -3
  52. package/dist/stencil.config.js.map +1 -1
  53. package/dist/types/stencil-public-runtime.d.ts +6 -0
  54. package/package.json +10 -9
  55. package/dist/cjs/index-79e96916.js.map +0 -1
  56. package/dist/esm/index-0eb79357.js.map +0 -1
  57. package/dist/rhc/p-1b63fdd4.entry.js +0 -2
  58. package/dist/rhc/p-1b63fdd4.entry.js.map +0 -1
  59. package/dist/rhc/p-62f5168e.js +0 -3
  60. package/dist/rhc/p-62f5168e.js.map +0 -1
  61. /package/dist/rhc/{p-566be07a.entry.js.map → p-1acb2e8e.entry.js.map} +0 -0
  62. /package/dist/rhc/{p-5adfb6ac.entry.js.map → p-35f8abc1.entry.js.map} +0 -0
  63. /package/dist/rhc/{p-0d031d9b.entry.js.map → p-5d412544.entry.js.map} +0 -0
  64. /package/dist/rhc/{p-0c06d3c7.entry.js.map → p-8f6f35ce.entry.js.map} +0 -0
  65. /package/dist/rhc/{p-994c6c79.entry.js.map → p-b2b4cc61.entry.js.map} +0 -0
@@ -0,0 +1,988 @@
1
+ const NAMESPACE = 'rhc';
2
+ const BUILD = /* rhc */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: false, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: false, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
3
+
4
+ /*
5
+ Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ */
7
+ var __defProp = Object.defineProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var hostRefs = /* @__PURE__ */ new WeakMap();
13
+ var getHostRef = (ref) => hostRefs.get(ref);
14
+ var registerHost = (hostElement, cmpMeta) => {
15
+ const hostRef = {
16
+ $flags$: 0,
17
+ $hostElement$: hostElement,
18
+ $cmpMeta$: cmpMeta,
19
+ $instanceValues$: /* @__PURE__ */ new Map()
20
+ };
21
+ {
22
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
23
+ hostElement["s-p"] = [];
24
+ hostElement["s-rc"] = [];
25
+ }
26
+ return hostRefs.set(hostElement, hostRef);
27
+ };
28
+ var isMemberInElement = (elm, memberName) => memberName in elm;
29
+ var consoleError = (e, el) => (0, console.error)(e, el);
30
+
31
+ // src/client/client-style.ts
32
+ var styles = /* @__PURE__ */ new Map();
33
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
34
+ var win = typeof window !== "undefined" ? window : {};
35
+ var doc = win.document || { head: {} };
36
+ var H = win.HTMLElement || class {
37
+ };
38
+ var plt = {
39
+ $flags$: 0,
40
+ $resourcesUrl$: "",
41
+ jmp: (h2) => h2(),
42
+ raf: (h2) => requestAnimationFrame(h2),
43
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
44
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
45
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
46
+ };
47
+ var promiseResolve = (v) => Promise.resolve(v);
48
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
49
+ try {
50
+ new CSSStyleSheet();
51
+ return typeof new CSSStyleSheet().replaceSync === "function";
52
+ } catch (e) {
53
+ }
54
+ return false;
55
+ })() ;
56
+ var queuePending = false;
57
+ var queueDomReads = [];
58
+ var queueDomWrites = [];
59
+ var queueTask = (queue, write) => (cb) => {
60
+ queue.push(cb);
61
+ if (!queuePending) {
62
+ queuePending = true;
63
+ if (write && plt.$flags$ & 4 /* queueSync */) {
64
+ nextTick(flush);
65
+ } else {
66
+ plt.raf(flush);
67
+ }
68
+ }
69
+ };
70
+ var consume = (queue) => {
71
+ for (let i2 = 0; i2 < queue.length; i2++) {
72
+ try {
73
+ queue[i2](performance.now());
74
+ } catch (e) {
75
+ consoleError(e);
76
+ }
77
+ }
78
+ queue.length = 0;
79
+ };
80
+ var flush = () => {
81
+ consume(queueDomReads);
82
+ {
83
+ consume(queueDomWrites);
84
+ if (queuePending = queueDomReads.length > 0) {
85
+ plt.raf(flush);
86
+ }
87
+ }
88
+ };
89
+ var nextTick = (cb) => promiseResolve().then(cb);
90
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
91
+
92
+ // src/runtime/asset-path.ts
93
+ var getAssetPath = (path) => {
94
+ const assetUrl = new URL(path, plt.$resourcesUrl$);
95
+ return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
96
+ };
97
+ var setAssetPath = (path) => plt.$resourcesUrl$ = path;
98
+
99
+ // src/utils/constants.ts
100
+ var EMPTY_OBJ = {};
101
+ var SVG_NS = "http://www.w3.org/2000/svg";
102
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
103
+
104
+ // src/utils/helpers.ts
105
+ var isDef = (v) => v != null;
106
+ var isComplexType = (o) => {
107
+ o = typeof o;
108
+ return o === "object" || o === "function";
109
+ };
110
+
111
+ // src/utils/query-nonce-meta-tag-content.ts
112
+ function queryNonceMetaTagContent(doc2) {
113
+ var _a, _b, _c;
114
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
115
+ }
116
+
117
+ // src/utils/result.ts
118
+ var result_exports = {};
119
+ __export(result_exports, {
120
+ err: () => err,
121
+ map: () => map,
122
+ ok: () => ok,
123
+ unwrap: () => unwrap,
124
+ unwrapErr: () => unwrapErr
125
+ });
126
+ var ok = (value) => ({
127
+ isOk: true,
128
+ isErr: false,
129
+ value
130
+ });
131
+ var err = (value) => ({
132
+ isOk: false,
133
+ isErr: true,
134
+ value
135
+ });
136
+ function map(result, fn) {
137
+ if (result.isOk) {
138
+ const val = fn(result.value);
139
+ if (val instanceof Promise) {
140
+ return val.then((newVal) => ok(newVal));
141
+ } else {
142
+ return ok(val);
143
+ }
144
+ }
145
+ if (result.isErr) {
146
+ const value = result.value;
147
+ return err(value);
148
+ }
149
+ throw "should never get here";
150
+ }
151
+ var unwrap = (result) => {
152
+ if (result.isOk) {
153
+ return result.value;
154
+ } else {
155
+ throw result.value;
156
+ }
157
+ };
158
+ var unwrapErr = (result) => {
159
+ if (result.isErr) {
160
+ return result.value;
161
+ } else {
162
+ throw result.value;
163
+ }
164
+ };
165
+ var createTime = (fnName, tagName = "") => {
166
+ {
167
+ return () => {
168
+ return;
169
+ };
170
+ }
171
+ };
172
+ var h = (nodeName, vnodeData, ...children) => {
173
+ let child = null;
174
+ let key = null;
175
+ let simple = false;
176
+ let lastSimple = false;
177
+ const vNodeChildren = [];
178
+ const walk = (c) => {
179
+ for (let i2 = 0; i2 < c.length; i2++) {
180
+ child = c[i2];
181
+ if (Array.isArray(child)) {
182
+ walk(child);
183
+ } else if (child != null && typeof child !== "boolean") {
184
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
185
+ child = String(child);
186
+ }
187
+ if (simple && lastSimple) {
188
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
189
+ } else {
190
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
191
+ }
192
+ lastSimple = simple;
193
+ }
194
+ }
195
+ };
196
+ walk(children);
197
+ if (vnodeData) {
198
+ if (vnodeData.key) {
199
+ key = vnodeData.key;
200
+ }
201
+ {
202
+ const classData = vnodeData.className || vnodeData.class;
203
+ if (classData) {
204
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
205
+ }
206
+ }
207
+ }
208
+ const vnode = newVNode(nodeName, null);
209
+ vnode.$attrs$ = vnodeData;
210
+ if (vNodeChildren.length > 0) {
211
+ vnode.$children$ = vNodeChildren;
212
+ }
213
+ {
214
+ vnode.$key$ = key;
215
+ }
216
+ return vnode;
217
+ };
218
+ var newVNode = (tag, text) => {
219
+ const vnode = {
220
+ $flags$: 0,
221
+ $tag$: tag,
222
+ $text$: text,
223
+ $elm$: null,
224
+ $children$: null
225
+ };
226
+ {
227
+ vnode.$attrs$ = null;
228
+ }
229
+ {
230
+ vnode.$key$ = null;
231
+ }
232
+ return vnode;
233
+ };
234
+ var Host = {};
235
+ var isHost = (node) => node && node.$tag$ === Host;
236
+ var parsePropertyValue = (propValue, propType) => {
237
+ if (propValue != null && !isComplexType(propValue)) {
238
+ if (propType & 1 /* String */) {
239
+ return String(propValue);
240
+ }
241
+ return propValue;
242
+ }
243
+ return propValue;
244
+ };
245
+ var emitEvent = (elm, name, opts) => {
246
+ const ev = plt.ce(name, opts);
247
+ elm.dispatchEvent(ev);
248
+ return ev;
249
+ };
250
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
251
+ var registerStyle = (scopeId2, cssText, allowCS) => {
252
+ let style = styles.get(scopeId2);
253
+ if (supportsConstructableStylesheets && allowCS) {
254
+ style = style || new CSSStyleSheet();
255
+ if (typeof style === "string") {
256
+ style = cssText;
257
+ } else {
258
+ style.replaceSync(cssText);
259
+ }
260
+ } else {
261
+ style = cssText;
262
+ }
263
+ styles.set(scopeId2, style);
264
+ };
265
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
266
+ var _a;
267
+ const scopeId2 = getScopeId(cmpMeta);
268
+ const style = styles.get(scopeId2);
269
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
270
+ if (style) {
271
+ if (typeof style === "string") {
272
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
273
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
274
+ let styleElm;
275
+ if (!appliedStyles) {
276
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
277
+ }
278
+ if (!appliedStyles.has(scopeId2)) {
279
+ {
280
+ styleElm = doc.createElement("style");
281
+ styleElm.innerHTML = style;
282
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
283
+ if (nonce != null) {
284
+ styleElm.setAttribute("nonce", nonce);
285
+ }
286
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
287
+ if (styleContainerNode.nodeName === "HEAD") {
288
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
289
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
290
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
291
+ } else if ("host" in styleContainerNode) {
292
+ if (supportsConstructableStylesheets) {
293
+ const stylesheet = new CSSStyleSheet();
294
+ stylesheet.replaceSync(style);
295
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
296
+ } else {
297
+ const existingStyleContainer = styleContainerNode.querySelector("style");
298
+ if (existingStyleContainer) {
299
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
300
+ } else {
301
+ styleContainerNode.prepend(styleElm);
302
+ }
303
+ }
304
+ } else {
305
+ styleContainerNode.append(styleElm);
306
+ }
307
+ }
308
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
309
+ styleContainerNode.insertBefore(styleElm, null);
310
+ }
311
+ }
312
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
313
+ styleElm.innerHTML += SLOT_FB_CSS;
314
+ }
315
+ if (appliedStyles) {
316
+ appliedStyles.add(scopeId2);
317
+ }
318
+ }
319
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
320
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
321
+ }
322
+ }
323
+ return scopeId2;
324
+ };
325
+ var attachStyles = (hostRef) => {
326
+ const cmpMeta = hostRef.$cmpMeta$;
327
+ const elm = hostRef.$hostElement$;
328
+ const flags = cmpMeta.$flags$;
329
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
330
+ const scopeId2 = addStyle(
331
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
332
+ cmpMeta);
333
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
334
+ elm["s-sc"] = scopeId2;
335
+ elm.classList.add(scopeId2 + "-h");
336
+ }
337
+ endAttachStyles();
338
+ };
339
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
340
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
341
+ if (oldValue !== newValue) {
342
+ let isProp = isMemberInElement(elm, memberName);
343
+ memberName.toLowerCase();
344
+ if (memberName === "class") {
345
+ const classList = elm.classList;
346
+ const oldClasses = parseClassList(oldValue);
347
+ const newClasses = parseClassList(newValue);
348
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
349
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
350
+ } else if (memberName === "key") ; else {
351
+ const isComplex = isComplexType(newValue);
352
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
353
+ try {
354
+ if (!elm.tagName.includes("-")) {
355
+ const n = newValue == null ? "" : newValue;
356
+ if (memberName === "list") {
357
+ isProp = false;
358
+ } else if (oldValue == null || elm[memberName] != n) {
359
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
360
+ elm[memberName] = n;
361
+ } else {
362
+ elm.setAttribute(memberName, n);
363
+ }
364
+ }
365
+ } else {
366
+ elm[memberName] = newValue;
367
+ }
368
+ } catch (e) {
369
+ }
370
+ }
371
+ if (newValue == null || newValue === false) {
372
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
373
+ {
374
+ elm.removeAttribute(memberName);
375
+ }
376
+ }
377
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
378
+ newValue = newValue === true ? "" : newValue;
379
+ {
380
+ elm.setAttribute(memberName, newValue);
381
+ }
382
+ }
383
+ }
384
+ }
385
+ };
386
+ var parseClassListRegex = /\s/;
387
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
388
+
389
+ // src/runtime/vdom/update-element.ts
390
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
391
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
392
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
393
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
394
+ {
395
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
396
+ if (!(memberName in newVnodeAttrs)) {
397
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
398
+ }
399
+ }
400
+ }
401
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
402
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
403
+ }
404
+ };
405
+ function sortedAttrNames(attrNames) {
406
+ return attrNames.includes("ref") ? (
407
+ // we need to sort these to ensure that `'ref'` is the last attr
408
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
409
+ ) : (
410
+ // no need to sort, return the original array
411
+ attrNames
412
+ );
413
+ }
414
+
415
+ // src/runtime/vdom/vdom-render.ts
416
+ var scopeId;
417
+ var hostTagName;
418
+ var useNativeShadowDom = false;
419
+ var isSvgMode = false;
420
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
421
+ const newVNode2 = newParentVNode.$children$[childIndex];
422
+ let i2 = 0;
423
+ let elm;
424
+ let childNode;
425
+ if (newVNode2.$text$ !== null) {
426
+ elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
427
+ } else {
428
+ if (!isSvgMode) {
429
+ isSvgMode = newVNode2.$tag$ === "svg";
430
+ }
431
+ elm = newVNode2.$elm$ = doc.createElementNS(
432
+ isSvgMode ? SVG_NS : HTML_NS,
433
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
434
+ ) ;
435
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
436
+ isSvgMode = false;
437
+ }
438
+ {
439
+ updateElement(null, newVNode2, isSvgMode);
440
+ }
441
+ const rootNode = elm.getRootNode();
442
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
443
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
444
+ elm.classList.add(elm["s-si"] = scopeId);
445
+ }
446
+ if (newVNode2.$children$) {
447
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
448
+ childNode = createElm(oldParentVNode, newVNode2, i2);
449
+ if (childNode) {
450
+ elm.appendChild(childNode);
451
+ }
452
+ }
453
+ }
454
+ {
455
+ if (newVNode2.$tag$ === "svg") {
456
+ isSvgMode = false;
457
+ } else if (elm.tagName === "foreignObject") {
458
+ isSvgMode = true;
459
+ }
460
+ }
461
+ }
462
+ elm["s-hn"] = hostTagName;
463
+ return elm;
464
+ };
465
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
466
+ let containerElm = parentElm;
467
+ let childNode;
468
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
469
+ containerElm = containerElm.shadowRoot;
470
+ }
471
+ for (; startIdx <= endIdx; ++startIdx) {
472
+ if (vnodes[startIdx]) {
473
+ childNode = createElm(null, parentVNode, startIdx);
474
+ if (childNode) {
475
+ vnodes[startIdx].$elm$ = childNode;
476
+ insertBefore(containerElm, childNode, before);
477
+ }
478
+ }
479
+ }
480
+ };
481
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
482
+ for (let index = startIdx; index <= endIdx; ++index) {
483
+ const vnode = vnodes[index];
484
+ if (vnode) {
485
+ const elm = vnode.$elm$;
486
+ if (elm) {
487
+ elm.remove();
488
+ }
489
+ }
490
+ }
491
+ };
492
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
493
+ let oldStartIdx = 0;
494
+ let newStartIdx = 0;
495
+ let idxInOld = 0;
496
+ let i2 = 0;
497
+ let oldEndIdx = oldCh.length - 1;
498
+ let oldStartVnode = oldCh[0];
499
+ let oldEndVnode = oldCh[oldEndIdx];
500
+ let newEndIdx = newCh.length - 1;
501
+ let newStartVnode = newCh[0];
502
+ let newEndVnode = newCh[newEndIdx];
503
+ let node;
504
+ let elmToMove;
505
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
506
+ if (oldStartVnode == null) {
507
+ oldStartVnode = oldCh[++oldStartIdx];
508
+ } else if (oldEndVnode == null) {
509
+ oldEndVnode = oldCh[--oldEndIdx];
510
+ } else if (newStartVnode == null) {
511
+ newStartVnode = newCh[++newStartIdx];
512
+ } else if (newEndVnode == null) {
513
+ newEndVnode = newCh[--newEndIdx];
514
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
515
+ patch(oldStartVnode, newStartVnode, isInitialRender);
516
+ oldStartVnode = oldCh[++oldStartIdx];
517
+ newStartVnode = newCh[++newStartIdx];
518
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
519
+ patch(oldEndVnode, newEndVnode, isInitialRender);
520
+ oldEndVnode = oldCh[--oldEndIdx];
521
+ newEndVnode = newCh[--newEndIdx];
522
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
523
+ patch(oldStartVnode, newEndVnode, isInitialRender);
524
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
525
+ oldStartVnode = oldCh[++oldStartIdx];
526
+ newEndVnode = newCh[--newEndIdx];
527
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
528
+ patch(oldEndVnode, newStartVnode, isInitialRender);
529
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
530
+ oldEndVnode = oldCh[--oldEndIdx];
531
+ newStartVnode = newCh[++newStartIdx];
532
+ } else {
533
+ idxInOld = -1;
534
+ {
535
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
536
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
537
+ idxInOld = i2;
538
+ break;
539
+ }
540
+ }
541
+ }
542
+ if (idxInOld >= 0) {
543
+ elmToMove = oldCh[idxInOld];
544
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
545
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
546
+ } else {
547
+ patch(elmToMove, newStartVnode, isInitialRender);
548
+ oldCh[idxInOld] = void 0;
549
+ node = elmToMove.$elm$;
550
+ }
551
+ newStartVnode = newCh[++newStartIdx];
552
+ } else {
553
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
554
+ newStartVnode = newCh[++newStartIdx];
555
+ }
556
+ if (node) {
557
+ {
558
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
559
+ }
560
+ }
561
+ }
562
+ }
563
+ if (oldStartIdx > oldEndIdx) {
564
+ addVnodes(
565
+ parentElm,
566
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
567
+ newVNode2,
568
+ newCh,
569
+ newStartIdx,
570
+ newEndIdx
571
+ );
572
+ } else if (newStartIdx > newEndIdx) {
573
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
574
+ }
575
+ };
576
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
577
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
578
+ if (!isInitialRender) {
579
+ return leftVNode.$key$ === rightVNode.$key$;
580
+ }
581
+ return true;
582
+ }
583
+ return false;
584
+ };
585
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
586
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
587
+ const oldChildren = oldVNode.$children$;
588
+ const newChildren = newVNode2.$children$;
589
+ const tag = newVNode2.$tag$;
590
+ const text = newVNode2.$text$;
591
+ if (text === null) {
592
+ {
593
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
594
+ }
595
+ {
596
+ {
597
+ updateElement(oldVNode, newVNode2, isSvgMode);
598
+ }
599
+ }
600
+ if (oldChildren !== null && newChildren !== null) {
601
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
602
+ } else if (newChildren !== null) {
603
+ if (oldVNode.$text$ !== null) {
604
+ elm.textContent = "";
605
+ }
606
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
607
+ } else if (
608
+ // don't do this on initial render as it can cause non-hydrated content to be removed
609
+ !isInitialRender && BUILD.updatable && oldChildren !== null
610
+ ) {
611
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
612
+ }
613
+ if (isSvgMode && tag === "svg") {
614
+ isSvgMode = false;
615
+ }
616
+ } else if (oldVNode.$text$ !== text) {
617
+ elm.data = text;
618
+ }
619
+ };
620
+ var insertBefore = (parent, newNode, reference) => {
621
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
622
+ return inserted;
623
+ };
624
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
625
+ const hostElm = hostRef.$hostElement$;
626
+ const cmpMeta = hostRef.$cmpMeta$;
627
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
628
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
629
+ hostTagName = hostElm.tagName;
630
+ if (isInitialLoad && rootVnode.$attrs$) {
631
+ for (const key of Object.keys(rootVnode.$attrs$)) {
632
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
633
+ rootVnode.$attrs$[key] = hostElm[key];
634
+ }
635
+ }
636
+ }
637
+ rootVnode.$tag$ = null;
638
+ rootVnode.$flags$ |= 4 /* isHost */;
639
+ hostRef.$vnode$ = rootVnode;
640
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
641
+ {
642
+ scopeId = hostElm["s-sc"];
643
+ }
644
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
645
+ patch(oldVNode, rootVnode, isInitialLoad);
646
+ };
647
+
648
+ // src/runtime/update-component.ts
649
+ var attachToAncestor = (hostRef, ancestorComponent) => {
650
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
651
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
652
+ }
653
+ };
654
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
655
+ {
656
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
657
+ }
658
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
659
+ hostRef.$flags$ |= 512 /* needsRerender */;
660
+ return;
661
+ }
662
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
663
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
664
+ return writeTask(dispatch) ;
665
+ };
666
+ var dispatchHooks = (hostRef, isInitialLoad) => {
667
+ const elm = hostRef.$hostElement$;
668
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
669
+ const instance = elm;
670
+ if (!instance) {
671
+ throw new Error(
672
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
673
+ );
674
+ }
675
+ let maybePromise;
676
+ endSchedule();
677
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
678
+ };
679
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
680
+ console.error(err2);
681
+ fn();
682
+ }) : fn();
683
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
684
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
685
+ var _a;
686
+ const elm = hostRef.$hostElement$;
687
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
688
+ const rc = elm["s-rc"];
689
+ if (isInitialLoad) {
690
+ attachStyles(hostRef);
691
+ }
692
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
693
+ {
694
+ callRender(hostRef, instance, elm, isInitialLoad);
695
+ }
696
+ if (rc) {
697
+ rc.map((cb) => cb());
698
+ elm["s-rc"] = void 0;
699
+ }
700
+ endRender();
701
+ endUpdate();
702
+ {
703
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
704
+ const postUpdate = () => postUpdateComponent(hostRef);
705
+ if (childrenPromises.length === 0) {
706
+ postUpdate();
707
+ } else {
708
+ Promise.all(childrenPromises).then(postUpdate);
709
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
710
+ childrenPromises.length = 0;
711
+ }
712
+ }
713
+ };
714
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
715
+ try {
716
+ instance = instance.render() ;
717
+ {
718
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
719
+ }
720
+ {
721
+ hostRef.$flags$ |= 2 /* hasRendered */;
722
+ }
723
+ {
724
+ {
725
+ {
726
+ renderVdom(hostRef, instance, isInitialLoad);
727
+ }
728
+ }
729
+ }
730
+ } catch (e) {
731
+ consoleError(e, hostRef.$hostElement$);
732
+ }
733
+ return null;
734
+ };
735
+ var postUpdateComponent = (hostRef) => {
736
+ const tagName = hostRef.$cmpMeta$.$tagName$;
737
+ const elm = hostRef.$hostElement$;
738
+ const endPostUpdate = createTime("postUpdate", tagName);
739
+ const ancestorComponent = hostRef.$ancestorComponent$;
740
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
741
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
742
+ {
743
+ addHydratedFlag(elm);
744
+ }
745
+ endPostUpdate();
746
+ {
747
+ hostRef.$onReadyResolve$(elm);
748
+ if (!ancestorComponent) {
749
+ appDidLoad();
750
+ }
751
+ }
752
+ } else {
753
+ endPostUpdate();
754
+ }
755
+ {
756
+ if (hostRef.$onRenderResolve$) {
757
+ hostRef.$onRenderResolve$();
758
+ hostRef.$onRenderResolve$ = void 0;
759
+ }
760
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
761
+ nextTick(() => scheduleUpdate(hostRef, false));
762
+ }
763
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
764
+ }
765
+ };
766
+ var appDidLoad = (who) => {
767
+ {
768
+ addHydratedFlag(doc.documentElement);
769
+ }
770
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
771
+ };
772
+ var addHydratedFlag = (elm) => {
773
+ var _a;
774
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
775
+ };
776
+
777
+ // src/runtime/set-value.ts
778
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
779
+ var setValue = (ref, propName, newVal, cmpMeta) => {
780
+ const hostRef = getHostRef(ref);
781
+ const oldVal = hostRef.$instanceValues$.get(propName);
782
+ const flags = hostRef.$flags$;
783
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
784
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
785
+ const didValueChange = newVal !== oldVal && !areBothNaN;
786
+ if (didValueChange) {
787
+ hostRef.$instanceValues$.set(propName, newVal);
788
+ {
789
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
790
+ scheduleUpdate(hostRef, false);
791
+ }
792
+ }
793
+ }
794
+ };
795
+
796
+ // src/runtime/proxy-component.ts
797
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
798
+ var _a, _b;
799
+ const prototype = Cstr.prototype;
800
+ if (cmpMeta.$members$ || BUILD.watchCallback ) {
801
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
802
+ members.map(([memberName, [memberFlags]]) => {
803
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
804
+ Object.defineProperty(prototype, memberName, {
805
+ get() {
806
+ return getValue(this, memberName);
807
+ },
808
+ set(newValue) {
809
+ setValue(this, memberName, newValue, cmpMeta);
810
+ },
811
+ configurable: true,
812
+ enumerable: true
813
+ });
814
+ }
815
+ });
816
+ {
817
+ const attrNameToPropName = /* @__PURE__ */ new Map();
818
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
819
+ plt.jmp(() => {
820
+ var _a2;
821
+ const propName = attrNameToPropName.get(attrName);
822
+ if (this.hasOwnProperty(propName)) {
823
+ newValue = this[propName];
824
+ delete this[propName];
825
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
826
+ this[propName] == newValue) {
827
+ return;
828
+ } else if (propName == null) {
829
+ const hostRef = getHostRef(this);
830
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
831
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
832
+ const elm = this;
833
+ const instance = elm;
834
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
835
+ entry == null ? void 0 : entry.forEach((callbackName) => {
836
+ if (instance[callbackName] != null) {
837
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
838
+ }
839
+ });
840
+ }
841
+ return;
842
+ }
843
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
844
+ });
845
+ };
846
+ Cstr.observedAttributes = Array.from(
847
+ /* @__PURE__ */ new Set([
848
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
849
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
850
+ const attrName = m[1] || propName;
851
+ attrNameToPropName.set(attrName, propName);
852
+ return attrName;
853
+ })
854
+ ])
855
+ );
856
+ }
857
+ }
858
+ return Cstr;
859
+ };
860
+
861
+ // src/runtime/initialize-component.ts
862
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
863
+ let Cstr;
864
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
865
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
866
+ {
867
+ Cstr = elm.constructor;
868
+ const cmpTag = elm.localName;
869
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
870
+ }
871
+ if (Cstr && Cstr.style) {
872
+ let style;
873
+ if (typeof Cstr.style === "string") {
874
+ style = Cstr.style;
875
+ }
876
+ const scopeId2 = getScopeId(cmpMeta);
877
+ if (!styles.has(scopeId2)) {
878
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
879
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
880
+ endRegisterStyles();
881
+ }
882
+ }
883
+ }
884
+ const ancestorComponent = hostRef.$ancestorComponent$;
885
+ const schedule = () => scheduleUpdate(hostRef, true);
886
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
887
+ ancestorComponent["s-rc"].push(schedule);
888
+ } else {
889
+ schedule();
890
+ }
891
+ };
892
+ var fireConnectedCallback = (instance) => {
893
+ };
894
+
895
+ // src/runtime/connected-callback.ts
896
+ var connectedCallback = (elm) => {
897
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
898
+ const hostRef = getHostRef(elm);
899
+ const cmpMeta = hostRef.$cmpMeta$;
900
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
901
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
902
+ hostRef.$flags$ |= 1 /* hasConnected */;
903
+ {
904
+ let ancestorComponent = elm;
905
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
906
+ if (ancestorComponent["s-p"]) {
907
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
908
+ break;
909
+ }
910
+ }
911
+ }
912
+ if (cmpMeta.$members$) {
913
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
914
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
915
+ const value = elm[memberName];
916
+ delete elm[memberName];
917
+ elm[memberName] = value;
918
+ }
919
+ });
920
+ }
921
+ {
922
+ initializeComponent(elm, hostRef, cmpMeta);
923
+ }
924
+ } else {
925
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
926
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
927
+ }
928
+ }
929
+ endConnected();
930
+ }
931
+ };
932
+ var disconnectedCallback = async (elm) => {
933
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
934
+ getHostRef(elm);
935
+ }
936
+ };
937
+ var proxyCustomElement = (Cstr, compactMeta) => {
938
+ const cmpMeta = {
939
+ $flags$: compactMeta[0],
940
+ $tagName$: compactMeta[1]
941
+ };
942
+ {
943
+ cmpMeta.$members$ = compactMeta[2];
944
+ }
945
+ let hasHostListenerAttached = false;
946
+ Object.assign(Cstr.prototype, {
947
+ __registerHost() {
948
+ registerHost(this, cmpMeta);
949
+ },
950
+ connectedCallback() {
951
+ if (!hasHostListenerAttached) {
952
+ getHostRef(this);
953
+ hasHostListenerAttached = true;
954
+ }
955
+ connectedCallback(this);
956
+ },
957
+ disconnectedCallback() {
958
+ disconnectedCallback(this);
959
+ },
960
+ __attachShadow() {
961
+ {
962
+ if (!this.shadowRoot) {
963
+ {
964
+ this.attachShadow({ mode: "open" });
965
+ }
966
+ } else {
967
+ if (this.shadowRoot.mode !== "open") {
968
+ throw new Error(
969
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
970
+ );
971
+ }
972
+ }
973
+ }
974
+ }
975
+ });
976
+ Cstr.is = cmpMeta.$tagName$;
977
+ return proxyComponent(Cstr, cmpMeta);
978
+ };
979
+
980
+ // src/runtime/nonce.ts
981
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
982
+
983
+ // src/runtime/platform-options.ts
984
+ var setPlatformOptions = (opts) => Object.assign(plt, opts);
985
+
986
+ export { H, setNonce as a, setPlatformOptions as b, getAssetPath as g, h, proxyCustomElement as p, setAssetPath as s };
987
+
988
+ //# sourceMappingURL=p-4acef7c0.js.map