@mgdis/core-ui-helpers 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/.pnpm/@stencil+core@4.45.5/node_modules/@stencil/core/internal/app-data/index.js","../../../../node_modules/.pnpm/@stencil+core@4.45.5/node_modules/@stencil/core/internal/client/index.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/constants.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/utils.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/minify.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/prettify.js","../../src/storybook/stencil/stencil.ts"],"sourcesContent":["// src/app-data/index.ts\nvar BUILD = {\n allRenderFn: false,\n element: true,\n event: true,\n hasRenderFn: true,\n hostListener: true,\n hostListenerTargetWindow: true,\n hostListenerTargetDocument: true,\n hostListenerTargetBody: true,\n hostListenerTargetParent: false,\n hostListenerTarget: true,\n member: true,\n method: true,\n mode: true,\n observeAttribute: true,\n prop: true,\n propMutable: true,\n reflect: true,\n scoped: true,\n shadowDom: true,\n slot: true,\n cssAnnotations: true,\n state: true,\n style: true,\n formAssociated: false,\n svg: true,\n updatable: true,\n vdomAttribute: true,\n vdomXlink: true,\n vdomClass: true,\n vdomFunctional: true,\n vdomKey: true,\n vdomListener: true,\n vdomRef: true,\n vdomPropOrAttr: true,\n vdomRender: true,\n vdomStyle: true,\n vdomText: true,\n propChangeCallback: true,\n taskQueue: true,\n hotModuleReplacement: false,\n isDebug: false,\n isDev: false,\n isTesting: false,\n hydrateServerSide: false,\n hydrateClientSide: false,\n lifecycleDOMEvents: false,\n lazyLoad: false,\n profile: false,\n slotRelocation: true,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: false,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: false,\n hydratedAttribute: false,\n hydratedClass: true,\n // TODO(STENCIL-1305): remove this option\n scriptDataOpts: false,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: false,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: false,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: false,\n invisiblePrehydration: true,\n propBoolean: true,\n propNumber: true,\n propString: true,\n constructableCSS: true,\n devTools: false,\n shadowDelegatesFocus: true,\n shadowSlotAssignmentManual: false,\n initializeNextTick: false,\n asyncLoading: true,\n asyncQueue: false,\n // TODO: deprecated in favour of `setTagTransformer` and `transformTag`. Remove in 5.0\n transformTagName: false,\n attachStyles: true,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: false\n};\nvar Env = {};\nvar NAMESPACE = (\n /* default */\n \"app\"\n);\nexport {\n BUILD,\n Env,\n NAMESPACE\n};\n","/*\n Stencil Client Platform v4.45.5 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-build.ts\nimport { BUILD } from \"@stencil/core/internal/app-data\";\nvar Build = {\n isDev: BUILD.isDev ? true : false,\n isBrowser: true,\n isServer: false,\n isTesting: BUILD.isTesting ? true : false\n};\n\n// src/client/client-host-ref.ts\nimport { BUILD as BUILD3 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/constants.ts\nvar SVG_NS = \"http://www.w3.org/2000/svg\";\nvar HTML_NS = \"http://www.w3.org/1999/xhtml\";\nvar PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {\n PrimitiveType2[\"Undefined\"] = \"undefined\";\n PrimitiveType2[\"Null\"] = \"null\";\n PrimitiveType2[\"String\"] = \"string\";\n PrimitiveType2[\"Number\"] = \"number\";\n PrimitiveType2[\"SpecialNumber\"] = \"number\";\n PrimitiveType2[\"Boolean\"] = \"boolean\";\n PrimitiveType2[\"BigInt\"] = \"bigint\";\n return PrimitiveType2;\n})(PrimitiveType || {});\nvar NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {\n NonPrimitiveType2[\"Array\"] = \"array\";\n NonPrimitiveType2[\"Date\"] = \"date\";\n NonPrimitiveType2[\"Map\"] = \"map\";\n NonPrimitiveType2[\"Object\"] = \"object\";\n NonPrimitiveType2[\"RegularExpression\"] = \"regexp\";\n NonPrimitiveType2[\"Set\"] = \"set\";\n NonPrimitiveType2[\"Channel\"] = \"channel\";\n NonPrimitiveType2[\"Symbol\"] = \"symbol\";\n return NonPrimitiveType2;\n})(NonPrimitiveType || {});\nvar TYPE_CONSTANT = \"type\";\nvar VALUE_CONSTANT = \"value\";\nvar SERIALIZED_PREFIX = \"serialized:\";\n\n// src/utils/es2022-rewire-class-members.ts\nimport { BUILD as BUILD2 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/get-prop-descriptor.ts\nfunction getPropertyDescriptor(obj, memberName, getOnly) {\n const stopAt = typeof HTMLElement !== \"undefined\" ? HTMLElement.prototype : null;\n while (obj && obj !== stopAt) {\n const desc = Object.getOwnPropertyDescriptor(obj, memberName);\n if (desc && (!getOnly || desc.get)) return desc;\n obj = Object.getPrototypeOf(obj);\n }\n return void 0;\n}\n\n// src/utils/es2022-rewire-class-members.ts\nvar reWireGetterSetter = (instance, hostRef) => {\n var _a;\n const cmpMeta = hostRef.$cmpMeta$;\n const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});\n members.map(([memberName, [memberFlags]]) => {\n if ((BUILD2.state || BUILD2.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {\n const ogValue = instance[memberName];\n const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);\n if (ogDescriptor) {\n Object.defineProperty(instance, memberName, {\n get() {\n return ogDescriptor.get.call(this);\n },\n set(newValue) {\n ogDescriptor.set.call(this, newValue);\n },\n configurable: true,\n enumerable: true\n });\n }\n if (hostRef.$instanceValues$.has(memberName)) {\n instance[memberName] = hostRef.$instanceValues$.get(memberName);\n } else if (ogValue !== void 0) {\n instance[memberName] = ogValue;\n }\n }\n });\n};\n\n// src/client/client-host-ref.ts\nvar getHostRef = (ref) => {\n if (ref.__stencil__getHostRef) {\n return ref.__stencil__getHostRef();\n }\n return void 0;\n};\nvar registerInstance = (lazyInstance, hostRef) => {\n if (!hostRef) return;\n lazyInstance.__stencil__getHostRef = () => hostRef;\n hostRef.$lazyInstance$ = lazyInstance;\n if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD3.state || BUILD3.prop)) {\n reWireGetterSetter(lazyInstance, hostRef);\n }\n};\nvar registerHost = (hostElement, cmpMeta) => {\n const hostRef = {\n $flags$: 0,\n $hostElement$: hostElement,\n $cmpMeta$: cmpMeta,\n $instanceValues$: /* @__PURE__ */ new Map(),\n $serializerValues$: /* @__PURE__ */ new Map()\n };\n if (BUILD3.isDev) {\n hostRef.$renderCount$ = 0;\n }\n if (BUILD3.method && BUILD3.lazyLoad) {\n hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);\n }\n if (BUILD3.asyncLoading) {\n hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);\n hostElement[\"s-p\"] = [];\n hostElement[\"s-rc\"] = [];\n }\n if (BUILD3.lazyLoad) {\n hostRef.$fetchedCbList$ = [];\n }\n const ref = hostRef;\n hostElement.__stencil__getHostRef = () => ref;\n if (!BUILD3.lazyLoad && cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD3.state || BUILD3.prop)) {\n reWireGetterSetter(hostElement, hostRef);\n }\n return ref;\n};\nvar isMemberInElement = (elm, memberName) => memberName in elm;\n\n// src/client/client-load-module.ts\nimport { BUILD as BUILD5 } from \"@stencil/core/internal/app-data\";\n\n// src/client/client-log.ts\nimport { BUILD as BUILD4 } from \"@stencil/core/internal/app-data\";\nvar customError;\nvar consoleError = (e, el) => (customError || console.error)(e, el);\nvar STENCIL_DEV_MODE = BUILD4.isTesting ? [\"STENCIL:\"] : [\n \"%cstencil\",\n \"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px\"\n];\nvar consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);\nvar consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);\nvar consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);\nvar setErrorHandler = (handler) => customError = handler;\n\n// src/client/client-load-module.ts\nvar cmpModules = /* @__PURE__ */ new Map();\nvar failedLoadAttempts = /* @__PURE__ */ new Map();\nvar MODULE_IMPORT_PREFIX = \"./\";\nvar loadModule = (cmpMeta, hostRef, hmrVersionId) => {\n var _a;\n const exportName = cmpMeta.$tagName$.replace(/-/g, \"_\");\n const bundleId = cmpMeta.$lazyBundleId$;\n if (BUILD5.isDev && typeof bundleId !== \"string\") {\n consoleDevError(\n `Trying to lazily load component <${cmpMeta.$tagName$}> with style mode \"${hostRef.$modeName$}\", but it does not exist.`\n );\n return void 0;\n } else if (!bundleId) {\n return void 0;\n }\n const module = !BUILD5.hotModuleReplacement ? cmpModules.get(bundleId) : false;\n if (module) {\n return module[exportName];\n }\n const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;\n const cacheBustParams = [\n retryCount > 0 ? `s-retry=${retryCount}` : \"\",\n BUILD5.hotModuleReplacement && hmrVersionId ? `s-hmr=${hmrVersionId}` : \"\"\n ].filter(Boolean).join(\"&\");\n /*!__STENCIL_STATIC_IMPORT_SWITCH__*/\n return import(\n /* @vite-ignore */\n /* turbopackIgnore: true */\n /* webpackInclude: /\\.entry\\.js$/ */\n /* webpackExclude: /\\.system\\.entry\\.js$/ */\n /* webpackMode: \"lazy\" */\n `./${bundleId}.entry.js${cacheBustParams ? \"?\" + cacheBustParams : \"\"}`\n ).then(\n (importedModule) => {\n if (!BUILD5.hotModuleReplacement) {\n failedLoadAttempts.delete(bundleId);\n cmpModules.set(bundleId, importedModule);\n }\n return importedModule[exportName];\n },\n (e) => {\n failedLoadAttempts.set(bundleId, retryCount + 1);\n consoleError(e, hostRef.$hostElement$);\n }\n );\n};\n\n// src/client/client-style.ts\nvar styles = /* @__PURE__ */ new Map();\nvar modeResolver = [];\nvar setScopedSSR = (_opts) => {\n};\nvar needsScopedSSR = () => false;\n\n// src/client/client-task-queue.ts\nimport { BUILD as BUILD7 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/runtime-constants.ts\nvar CONTENT_REF_ID = \"r\";\nvar ORG_LOCATION_ID = \"o\";\nvar SLOT_NODE_ID = \"s\";\nvar TEXT_NODE_ID = \"t\";\nvar COMMENT_NODE_ID = \"c\";\nvar HYDRATE_ID = \"s-id\";\nvar HYDRATED_STYLE_ID = \"sty-id\";\nvar HYDRATE_CHILD_ID = \"c-id\";\nvar HYDRATED_CSS = \"{visibility:hidden}.hydrated{visibility:inherit}\";\nvar STENCIL_DOC_DATA = \"_stencilDocData\";\nvar DEFAULT_DOC_DATA = {\n hostIds: 0,\n rootLevelIds: 0,\n staticComponents: /* @__PURE__ */ new Set()\n};\nvar SLOT_FB_CSS = \"slot-fb{display:contents}slot-fb[hidden]{display:none}\";\nvar XLINK_NS = \"http://www.w3.org/1999/xlink\";\nvar MAX_LAZY_LOAD_RETRIES = 3;\nvar LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;\nvar FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [\n \"formAssociatedCallback\",\n \"formResetCallback\",\n \"formDisabledCallback\",\n \"formStateRestoreCallback\"\n];\n\n// src/client/client-window.ts\nimport { BUILD as BUILD6 } from \"@stencil/core/internal/app-data\";\nvar win = typeof window !== \"undefined\" ? window : {};\nvar H = win.HTMLElement || class {\n};\nvar plt = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (h2) => h2(),\n raf: (h2) => requestAnimationFrame(h2),\n ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),\n rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),\n ce: (eventName, opts) => new CustomEvent(eventName, opts)\n};\nvar setPlatformHelpers = (helpers) => {\n Object.assign(plt, helpers);\n};\nvar supportsShadow = BUILD6.shadowDom;\nvar supportsListenerOptions = /* @__PURE__ */ (() => {\n var _a;\n let supportsListenerOptions2 = false;\n try {\n (_a = win.document) == null ? void 0 : _a.addEventListener(\n \"e\",\n null,\n Object.defineProperty({}, \"passive\", {\n get() {\n supportsListenerOptions2 = true;\n }\n })\n );\n } catch (e) {\n }\n return supportsListenerOptions2;\n})();\nvar promiseResolve = (v) => Promise.resolve(v);\nvar supportsConstructableStylesheets = BUILD6.constructableCSS ? /* @__PURE__ */ (() => {\n try {\n if (!win.document.adoptedStyleSheets) {\n return false;\n }\n new CSSStyleSheet();\n return typeof new CSSStyleSheet().replaceSync === \"function\";\n } catch (e) {\n }\n return false;\n})() : false;\nvar supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, \"length\").writable)() : false;\n\n// src/client/client-task-queue.ts\nvar queueCongestion = 0;\nvar queuePending = false;\nvar queueDomReads = [];\nvar queueDomWrites = [];\nvar queueDomWritesLow = [];\nvar scheduleFlush = () => {\n var _a;\n return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);\n};\nvar queueTask = (queue, write) => (cb) => {\n queue.push(cb);\n if (!queuePending) {\n queuePending = true;\n if (write && plt.$flags$ & 4 /* queueSync */) {\n nextTick(flush);\n } else {\n scheduleFlush();\n }\n }\n};\nvar consume = (queue) => {\n for (let i2 = 0; i2 < queue.length; i2++) {\n try {\n queue[i2](performance.now());\n } catch (e) {\n consoleError(e);\n }\n }\n queue.length = 0;\n};\nvar consumeTimeout = (queue, timeout) => {\n let i2 = 0;\n let ts = 0;\n while (i2 < queue.length && (ts = performance.now()) < timeout) {\n try {\n queue[i2++](ts);\n } catch (e) {\n consoleError(e);\n }\n }\n if (i2 === queue.length) {\n queue.length = 0;\n } else if (i2 !== 0) {\n queue.splice(0, i2);\n }\n};\nvar flush = () => {\n if (BUILD7.asyncQueue) {\n queueCongestion++;\n }\n consume(queueDomReads);\n if (BUILD7.asyncQueue) {\n const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;\n consumeTimeout(queueDomWrites, timeout);\n consumeTimeout(queueDomWritesLow, timeout);\n if (queueDomWrites.length > 0) {\n queueDomWritesLow.push(...queueDomWrites);\n queueDomWrites.length = 0;\n }\n if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {\n scheduleFlush();\n } else {\n queueCongestion = 0;\n }\n } else {\n consume(queueDomWrites);\n if (queuePending = queueDomReads.length > 0) {\n scheduleFlush();\n }\n }\n};\nvar nextTick = (cb) => promiseResolve().then(cb);\nvar readTask = /* @__PURE__ */ queueTask(queueDomReads, false);\nvar writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);\n\n// src/client/index.ts\nimport { BUILD as BUILD31, Env, NAMESPACE as NAMESPACE2 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/asset-path.ts\nvar getAssetPath = (path) => {\n const assetUrl = new URL(path, plt.$resourcesUrl$);\n return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;\n};\nvar setAssetPath = (path) => plt.$resourcesUrl$ = path;\n\n// src/runtime/bootstrap-custom-element.ts\nimport { BUILD as BUILD27 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/shadow-root.ts\nimport { BUILD as BUILD8 } from \"@stencil/core/internal/app-data\";\nimport { globalStyles } from \"@stencil/core/internal/app-globals\";\n\n// src/utils/style.ts\nfunction createStyleSheetIfNeededAndSupported(styles2) {\n if (!styles2 || !supportsConstructableStylesheets) return void 0;\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(styles2);\n return sheet;\n}\n\n// src/utils/shadow-root.ts\nvar globalStyleSheet;\nvar GLOBAL_STYLE_ID = \"sc-global\";\nfunction createShadowRoot(cmpMeta) {\n var _a;\n const opts = { mode: \"open\" };\n if (BUILD8.shadowDelegatesFocus) {\n opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);\n }\n if (BUILD8.shadowSlotAssignmentManual) {\n const isManual = !!(cmpMeta.$flags$ & 1024 /* shadowSlotAssignmentManual */);\n if (isManual) {\n opts.slotAssignment = \"manual\";\n }\n }\n const shadowRoot = this.attachShadow(opts);\n if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;\n if (globalStyleSheet) {\n if (supportsMutableAdoptedStyleSheets) {\n shadowRoot.adoptedStyleSheets.push(globalStyleSheet);\n } else {\n shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];\n }\n } else if (globalStyles && !supportsConstructableStylesheets) {\n const styleElm = document.createElement(\"style\");\n styleElm.innerHTML = globalStyles;\n if (BUILD8.hotModuleReplacement) {\n styleElm.setAttribute(HYDRATED_STYLE_ID, GLOBAL_STYLE_ID);\n }\n shadowRoot.prepend(styleElm);\n }\n}\n\n// src/runtime/connected-callback.ts\nimport { BUILD as BUILD25 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/client-hydrate.ts\nimport { BUILD as BUILD14 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/dom-extras.ts\nimport { BUILD as BUILD10 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/slot-polyfill-utils.ts\nimport { BUILD as BUILD9 } from \"@stencil/core/internal/app-data\";\nvar updateFallbackSlotVisibility = (elm) => {\n const childNodes = internalCall(elm, \"childNodes\");\n if (elm.tagName && elm.tagName.includes(\"-\") && elm[\"s-cr\"] && elm.tagName !== \"SLOT-FB\") {\n getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {\n if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === \"SLOT-FB\") {\n if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {\n slotNode.hidden = true;\n } else {\n slotNode.hidden = false;\n }\n }\n });\n }\n let i2 = 0;\n for (i2 = 0; i2 < childNodes.length; i2++) {\n const childNode = childNodes[i2];\n if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, \"childNodes\").length) {\n updateFallbackSlotVisibility(childNode);\n }\n }\n};\nvar getSlottedChildNodes = (childNodes) => {\n const result = [];\n for (let i2 = 0; i2 < childNodes.length; i2++) {\n const slottedNode = childNodes[i2][\"s-nr\"] || void 0;\n if (slottedNode && slottedNode.isConnected) {\n result.push(slottedNode);\n }\n }\n return result;\n};\nfunction getHostSlotNodes(childNodes, hostName, slotName) {\n let i2 = 0;\n let slottedNodes = [];\n let childNode;\n for (; i2 < childNodes.length; i2++) {\n childNode = childNodes[i2];\n if (childNode[\"s-sr\"] && (!hostName || childNode[\"s-hn\"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {\n slottedNodes.push(childNode);\n if (typeof slotName !== \"undefined\") return slottedNodes;\n }\n slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, \"childNodes\"), hostName, slotName)];\n if (typeof slotName !== \"undefined\" && slottedNodes.length) return slottedNodes;\n }\n return slottedNodes;\n}\nvar getSlotChildSiblings = (slot, slotName, includeSlot = true) => {\n const childNodes = [];\n if (includeSlot && slot[\"s-sr\"] || !slot[\"s-sr\"]) childNodes.push(slot);\n let node = slot;\n while (node = node.nextSibling) {\n if (getSlotName(node) === slotName && (includeSlot || !node[\"s-sr\"])) childNodes.push(node);\n }\n return childNodes;\n};\nvar isNodeLocatedInSlot = (nodeToRelocate, slotName) => {\n if (nodeToRelocate.nodeType === 1 /* ElementNode */) {\n if (nodeToRelocate.getAttribute(\"slot\") === null && slotName === \"\") {\n return true;\n }\n if (nodeToRelocate.getAttribute(\"slot\") === slotName) {\n return true;\n }\n return false;\n }\n if (nodeToRelocate[\"s-sn\"] === slotName) {\n return true;\n }\n return slotName === \"\";\n};\nvar addSlotRelocateNode = (newChild, slotNode, prepend, position) => {\n if (newChild[\"s-ol\"] && newChild[\"s-ol\"].isConnected) {\n return;\n }\n const slottedNodeLocation = document.createTextNode(\"\");\n slottedNodeLocation[\"s-nr\"] = newChild;\n if (!slotNode[\"s-cr\"] || !slotNode[\"s-cr\"].parentNode) return;\n const parent = slotNode[\"s-cr\"].parentNode;\n const appendMethod = prepend ? internalCall(parent, \"prepend\") : internalCall(parent, \"appendChild\");\n if (BUILD9.hydrateClientSide && typeof position !== \"undefined\") {\n slottedNodeLocation[\"s-oo\"] = position;\n const childNodes = internalCall(parent, \"childNodes\");\n const slotRelocateNodes = [slottedNodeLocation];\n childNodes.forEach((n) => {\n if (n[\"s-nr\"]) slotRelocateNodes.push(n);\n });\n slotRelocateNodes.sort((a, b) => {\n if (!a[\"s-oo\"] || a[\"s-oo\"] < (b[\"s-oo\"] || 0)) return -1;\n else if (!b[\"s-oo\"] || b[\"s-oo\"] < a[\"s-oo\"]) return 1;\n return 0;\n });\n slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));\n } else {\n appendMethod.call(parent, slottedNodeLocation);\n }\n newChild[\"s-ol\"] = slottedNodeLocation;\n newChild[\"s-sh\"] = slotNode[\"s-hn\"];\n};\nvar getSlotName = (node) => typeof node[\"s-sn\"] === \"string\" ? node[\"s-sn\"] : node.nodeType === 1 && node.getAttribute(\"slot\") || void 0;\nfunction patchSlotNode(node) {\n if (node.assignedElements || node.assignedNodes || !node[\"s-sr\"]) return;\n const assignedFactory = (elementsOnly) => (function(opts) {\n const toReturn = [];\n const slotName = this[\"s-sn\"];\n if (opts == null ? void 0 : opts.flatten) {\n console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \\`.childNodes\\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `);\n }\n const parent = this[\"s-cr\"].parentElement;\n const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);\n slottedNodes.forEach((n) => {\n if (slotName === getSlotName(n)) {\n toReturn.push(n);\n }\n });\n if (elementsOnly) {\n return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);\n }\n return toReturn;\n }).bind(node);\n node.assignedElements = assignedFactory(true);\n node.assignedNodes = assignedFactory(false);\n}\nfunction dispatchSlotChangeEvent(elm) {\n elm.dispatchEvent(new CustomEvent(\"slotchange\", { bubbles: false, cancelable: false, composed: false }));\n}\nfunction findSlotFromSlottedNode(slottedNode, parentHost) {\n var _a;\n parentHost = parentHost || ((_a = slottedNode[\"s-ol\"]) == null ? void 0 : _a.parentElement);\n if (!parentHost) return { slotNode: null, slotName: \"\" };\n const slotName = slottedNode[\"s-sn\"] = getSlotName(slottedNode) || \"\";\n const childNodes = internalCall(parentHost, \"childNodes\");\n const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];\n return { slotNode, slotName };\n}\n\n// src/runtime/dom-extras.ts\nvar patchPseudoShadowDom = (hostElementPrototype) => {\n patchCloneNode(hostElementPrototype);\n patchSlotAppendChild(hostElementPrototype);\n patchSlotAppend(hostElementPrototype);\n patchSlotPrepend(hostElementPrototype);\n patchSlotInsertAdjacentElement(hostElementPrototype);\n patchSlotInsertAdjacentHTML(hostElementPrototype);\n patchSlotInsertAdjacentText(hostElementPrototype);\n patchInsertBefore(hostElementPrototype);\n patchTextContent(hostElementPrototype);\n patchInnerContentSetters(hostElementPrototype);\n patchChildSlotNodes(hostElementPrototype);\n patchSlotRemoveChild(hostElementPrototype);\n};\nvar patchCloneNode = (HostElementPrototype) => {\n if (HostElementPrototype.__cloneNode) return;\n const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;\n HostElementPrototype.cloneNode = function(deep) {\n const srcNode = this;\n const isShadowDom = BUILD10.shadowDom ? srcNode.shadowRoot && supportsShadow : false;\n const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);\n if (BUILD10.slot && !isShadowDom && deep) {\n let i2 = 0;\n let slotted, nonStencilNode;\n const stencilPrivates = [\n \"s-id\",\n \"s-cr\",\n \"s-lr\",\n \"s-rc\",\n \"s-sc\",\n \"s-p\",\n \"s-cn\",\n \"s-sr\",\n \"s-sn\",\n \"s-hn\",\n \"s-ol\",\n \"s-nr\",\n \"s-si\",\n \"s-rf\",\n \"s-scs\"\n ];\n const childNodes = this.__childNodes || this.childNodes;\n for (; i2 < childNodes.length; i2++) {\n slotted = childNodes[i2][\"s-nr\"];\n nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);\n if (slotted) {\n if (BUILD10.appendChildSlotFix && clonedNode.__appendChild) {\n clonedNode.__appendChild(slotted.cloneNode(true));\n } else {\n clonedNode.appendChild(slotted.cloneNode(true));\n }\n }\n if (nonStencilNode) {\n clonedNode.appendChild(childNodes[i2].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nvar patchSlotAppendChild = (HostElementPrototype) => {\n if (HostElementPrototype.__appendChild) return;\n HostElementPrototype.__appendChild = HostElementPrototype.appendChild;\n HostElementPrototype.appendChild = function(newChild) {\n const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);\n if (slotNode) {\n addSlotRelocateNode(newChild, slotNode);\n const slotChildNodes = getSlotChildSiblings(slotNode, slotName);\n const appendAfter = slotChildNodes[slotChildNodes.length - 1];\n const slotWasEmpty = slotChildNodes.every((node) => node[\"s-sr\"]);\n const parent = internalCall(appendAfter, \"parentNode\");\n const insertedNode = internalCall(parent, \"insertBefore\")(newChild, appendAfter.nextSibling);\n dispatchSlotChangeEvent(slotNode);\n if (slotWasEmpty) {\n updateFallbackSlotVisibility(this);\n }\n return insertedNode;\n }\n return this.__appendChild(newChild);\n };\n};\nvar patchSlotRemoveChild = (ElementPrototype) => {\n if (ElementPrototype.__removeChild) return;\n ElementPrototype.__removeChild = ElementPrototype.removeChild;\n ElementPrototype.removeChild = function(toRemove) {\n if (toRemove && typeof toRemove[\"s-sn\"] !== \"undefined\") {\n const childNodes = this.__childNodes || this.childNodes;\n const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove[\"s-sn\"])[0];\n if (slotNode && toRemove.isConnected) {\n toRemove.remove();\n updateFallbackSlotVisibility(this);\n return;\n }\n }\n return this.__removeChild(toRemove);\n };\n};\nvar patchSlotPrepend = (HostElementPrototype) => {\n if (HostElementPrototype.__prepend) return;\n HostElementPrototype.__prepend = HostElementPrototype.prepend;\n HostElementPrototype.prepend = function(...newChildren) {\n newChildren.forEach((newChild) => {\n if (typeof newChild === \"string\") {\n newChild = this.ownerDocument.createTextNode(newChild);\n }\n const slotName = (newChild[\"s-sn\"] = getSlotName(newChild)) || \"\";\n const childNodes = internalCall(this, \"childNodes\");\n const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];\n if (slotNode) {\n addSlotRelocateNode(newChild, slotNode, true);\n const slotChildNodes = getSlotChildSiblings(slotNode, slotName);\n const appendAfter = slotChildNodes[0];\n const parent = internalCall(appendAfter, \"parentNode\");\n const toReturn = internalCall(parent, \"insertBefore\")(newChild, internalCall(appendAfter, \"nextSibling\"));\n dispatchSlotChangeEvent(slotNode);\n return toReturn;\n }\n if (newChild.nodeType === 1 && !!newChild.getAttribute(\"slot\")) {\n newChild.hidden = true;\n }\n return HostElementPrototype.__prepend.call(this, newChild);\n });\n };\n};\nvar patchSlotAppend = (HostElementPrototype) => {\n if (HostElementPrototype.__append) return;\n HostElementPrototype.__append = HostElementPrototype.append;\n HostElementPrototype.append = function(...newChildren) {\n newChildren.forEach((newChild) => {\n if (typeof newChild === \"string\") {\n newChild = this.ownerDocument.createTextNode(newChild);\n }\n this.appendChild(newChild);\n });\n };\n};\nvar patchSlotInsertAdjacentHTML = (HostElementPrototype) => {\n if (HostElementPrototype.__insertAdjacentHTML) return;\n const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;\n HostElementPrototype.insertAdjacentHTML = function(position, text) {\n if (position !== \"afterbegin\" && position !== \"beforeend\") {\n return originalInsertAdjacentHtml.call(this, position, text);\n }\n const container = this.ownerDocument.createElement(\"_\");\n let node;\n container.innerHTML = text;\n if (position === \"afterbegin\") {\n while (node = container.firstChild) {\n this.prepend(node);\n }\n } else if (position === \"beforeend\") {\n while (node = container.firstChild) {\n this.append(node);\n }\n }\n };\n};\nvar patchSlotInsertAdjacentText = (HostElementPrototype) => {\n if (HostElementPrototype.__insertAdjacentText) return;\n const originalInsertAdjacentText = HostElementPrototype.__insertAdjacentText = HostElementPrototype.insertAdjacentText;\n HostElementPrototype.insertAdjacentText = function(position, text) {\n if (position === \"afterbegin\") {\n this.prepend(this.ownerDocument.createTextNode(String(text)));\n } else if (position === \"beforeend\") {\n this.append(this.ownerDocument.createTextNode(String(text)));\n } else {\n originalInsertAdjacentText.call(this, position, text);\n }\n };\n};\nvar patchInsertBefore = (HostElementPrototype) => {\n if (HostElementPrototype.__insertBefore) return;\n const eleProto = HostElementPrototype;\n if (eleProto.__insertBefore) return;\n eleProto.__insertBefore = HostElementPrototype.insertBefore;\n HostElementPrototype.insertBefore = function(newChild, currentChild) {\n const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);\n if (slotNode) {\n if (currentChild === null) {\n this.appendChild(newChild);\n return newChild;\n }\n const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);\n if (slottedNodes.includes(currentChild)) {\n if (slotName !== currentChild[\"s-sn\"]) {\n this.appendChild(newChild);\n } else {\n addSlotRelocateNode(newChild, slotNode);\n const parent = internalCall(currentChild, \"parentNode\");\n internalCall(parent, \"insertBefore\")(newChild, currentChild);\n dispatchSlotChangeEvent(slotNode);\n }\n return newChild;\n }\n }\n const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;\n if (parentNode && !this.isSameNode(parentNode)) {\n return this.appendChild(newChild);\n }\n return this.__insertBefore(newChild, currentChild);\n };\n};\nvar patchSlotInsertAdjacentElement = (HostElementPrototype) => {\n if (HostElementPrototype.__insertAdjacentElement) return;\n const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;\n HostElementPrototype.insertAdjacentElement = function(position, element) {\n if (position !== \"afterbegin\" && position !== \"beforeend\") {\n return originalInsertAdjacentElement.call(this, position, element);\n }\n if (position === \"afterbegin\") {\n this.prepend(element);\n return element;\n } else if (position === \"beforeend\") {\n this.append(element);\n return element;\n }\n return element;\n };\n};\nvar patchTextContent = (hostElementPrototype) => {\n patchHostOriginalAccessor(\"textContent\", hostElementPrototype);\n Object.defineProperty(hostElementPrototype, \"textContent\", {\n get: function() {\n let text = \"\";\n const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);\n childNodes.forEach((node) => text += node.textContent || \"\");\n return text;\n },\n set: function(value) {\n removeSlottedNodes(this);\n if (value != null && value !== \"\") {\n this.append(this.ownerDocument.createTextNode(String(value)));\n }\n }\n });\n};\nvar patchInnerContentSetters = (hostElementPrototype) => {\n if (!globalThis.HTMLElement) return;\n const patchSetter = (proto, name, insert) => {\n var _a;\n const get = (_a = Object.getOwnPropertyDescriptor(proto, name)) == null ? void 0 : _a.get;\n if (!get) return;\n Object.defineProperty(hostElementPrototype, name, {\n get,\n set: function(value) {\n removeSlottedNodes(this);\n Array.from(internalCall(this, \"childNodes\")).forEach((node) => {\n if (!node[\"s-cn\"] && !node[\"s-nr\"] && node[\"s-hn\"] !== this.tagName) node.remove();\n });\n insert(this, value != null ? value : \"\");\n }\n });\n };\n patchSetter(Element.prototype, \"innerHTML\", (host, value) => host.insertAdjacentHTML(\"beforeend\", value));\n patchSetter(HTMLElement.prototype, \"innerText\", (host, value) => host.append(value));\n};\nvar removeSlottedNodes = (host) => {\n const childNodes = host.__childNodes ? host.childNodes : getSlottedChildNodes(host.childNodes);\n childNodes.forEach((node) => {\n if (node[\"s-ol\"]) node[\"s-ol\"].remove();\n node.remove();\n });\n};\nvar patchChildSlotNodes = (elm) => {\n class FakeNodeList extends Array {\n item(n) {\n return this[n];\n }\n }\n patchHostOriginalAccessor(\"children\", elm);\n Object.defineProperty(elm, \"children\", {\n get() {\n return this.childNodes.filter((n) => n.nodeType === 1);\n }\n });\n Object.defineProperty(elm, \"childElementCount\", {\n get() {\n return this.children.length;\n }\n });\n patchHostOriginalAccessor(\"firstChild\", elm);\n Object.defineProperty(elm, \"firstChild\", {\n get() {\n return this.childNodes[0] || null;\n }\n });\n patchHostOriginalAccessor(\"lastChild\", elm);\n Object.defineProperty(elm, \"lastChild\", {\n get() {\n return this.childNodes[this.childNodes.length - 1] || null;\n }\n });\n patchHostOriginalAccessor(\"childNodes\", elm);\n Object.defineProperty(elm, \"childNodes\", {\n get() {\n const result = new FakeNodeList();\n result.push(...getSlottedChildNodes(this.__childNodes));\n return result;\n }\n });\n};\nvar patchSlottedNode = (node) => {\n if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;\n patchNextSibling(node);\n patchPreviousSibling(node);\n patchParentNode(node);\n if (node.nodeType === Node.ELEMENT_NODE) {\n patchNextElementSibling(node);\n patchPreviousElementSibling(node);\n }\n};\nvar patchNextSibling = (node) => {\n if (!node || node.__nextSibling) return;\n patchHostOriginalAccessor(\"nextSibling\", node);\n Object.defineProperty(node, \"nextSibling\", {\n get: function() {\n var _a;\n const parentNodes = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.childNodes;\n const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);\n if (parentNodes && index > -1) {\n return parentNodes[index + 1] || null;\n }\n return this.__nextSibling;\n }\n });\n};\nvar patchNextElementSibling = (element) => {\n if (!element || element.__nextElementSibling) return;\n patchHostOriginalAccessor(\"nextElementSibling\", element);\n Object.defineProperty(element, \"nextElementSibling\", {\n get: function() {\n var _a;\n const parentEles = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.children;\n const index = parentEles == null ? void 0 : parentEles.indexOf(this);\n if (parentEles && index > -1) {\n return parentEles[index + 1] || null;\n }\n return this.__nextElementSibling;\n }\n });\n};\nvar patchPreviousSibling = (node) => {\n if (!node || node.__previousSibling) return;\n patchHostOriginalAccessor(\"previousSibling\", node);\n Object.defineProperty(node, \"previousSibling\", {\n get: function() {\n var _a;\n const parentNodes = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.childNodes;\n const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);\n if (parentNodes && index > -1) {\n return parentNodes[index - 1] || null;\n }\n return this.__previousSibling;\n }\n });\n};\nvar patchPreviousElementSibling = (element) => {\n if (!element || element.__previousElementSibling) return;\n patchHostOriginalAccessor(\"previousElementSibling\", element);\n Object.defineProperty(element, \"previousElementSibling\", {\n get: function() {\n var _a;\n const parentNodes = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.children;\n const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);\n if (parentNodes && index > -1) {\n return parentNodes[index - 1] || null;\n }\n return this.__previousElementSibling;\n }\n });\n};\nvar patchParentNode = (node) => {\n if (!node || node.__parentNode) return;\n patchHostOriginalAccessor(\"parentNode\", node);\n Object.defineProperty(node, \"parentNode\", {\n get: function() {\n var _a;\n return ((_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode) || this.__parentNode;\n },\n set: function(value) {\n this.__parentNode = value;\n }\n });\n};\nvar validElementPatches = [\"children\", \"nextElementSibling\", \"previousElementSibling\"];\nvar validNodesPatches = [\n \"childNodes\",\n \"firstChild\",\n \"lastChild\",\n \"nextSibling\",\n \"previousSibling\",\n \"textContent\",\n \"parentNode\"\n];\nfunction patchHostOriginalAccessor(accessorName, node) {\n if (!globalThis.Node || !globalThis.Element) {\n return;\n }\n let accessor;\n if (validElementPatches.includes(accessorName)) {\n accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);\n } else if (validNodesPatches.includes(accessorName)) {\n accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);\n }\n if (!accessor) {\n accessor = Object.getOwnPropertyDescriptor(node, accessorName);\n }\n if (accessor) Object.defineProperty(node, \"__\" + accessorName, accessor);\n}\nfunction internalCall(node, method) {\n if (\"__\" + method in node) {\n const toReturn = node[\"__\" + method];\n if (typeof toReturn !== \"function\") return toReturn;\n return toReturn.bind(node);\n } else {\n if (typeof node[method] !== \"function\") return node[method];\n return node[method].bind(node);\n }\n}\n\n// src/runtime/profile.ts\nimport { BUILD as BUILD11 } from \"@stencil/core/internal/app-data\";\nvar i = 0;\nvar createTime = (fnName, tagName = \"\") => {\n if (BUILD11.profile && performance.mark) {\n const key = `st:${fnName}:${tagName}:${i++}`;\n performance.mark(key);\n return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);\n } else {\n return () => {\n return;\n };\n }\n};\nvar uniqueTime = (key, measureText) => {\n if (BUILD11.profile && performance.mark) {\n if (performance.getEntriesByName(key, \"mark\").length === 0) {\n performance.mark(key);\n }\n return () => {\n if (performance.getEntriesByName(measureText, \"measure\").length === 0) {\n performance.measure(measureText, key);\n }\n };\n } else {\n return () => {\n return;\n };\n }\n};\nvar inspect = (ref) => {\n const hostRef = getHostRef(ref);\n if (!hostRef) {\n return void 0;\n }\n const flags = hostRef.$flags$;\n const hostElement = hostRef.$hostElement$;\n return {\n renderCount: hostRef.$renderCount$,\n flags: {\n hasRendered: !!(flags & 2 /* hasRendered */),\n hasConnected: !!(flags & 1 /* hasConnected */),\n isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),\n isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),\n isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),\n hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),\n hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),\n isWatchReady: !!(flags & 128 /* isWatchReady */),\n isListenReady: !!(flags & 256 /* isListenReady */),\n needsRerender: !!(flags & 512 /* needsRerender */)\n },\n instanceValues: hostRef.$instanceValues$,\n serializerValues: hostRef.$serializerValues$,\n ancestorComponent: hostRef.$ancestorComponent$,\n hostElement,\n lazyInstance: hostRef.$lazyInstance$,\n vnode: hostRef.$vnode$,\n modeName: hostRef.$modeName$,\n fetchedCbList: hostRef.$fetchedCbList$,\n onReadyPromise: hostRef.$onReadyPromise$,\n onReadyResolve: hostRef.$onReadyResolve$,\n onInstancePromise: hostRef.$onInstancePromise$,\n onInstanceResolve: hostRef.$onInstanceResolve$,\n onRenderResolve: hostRef.$onRenderResolve$,\n queuedListeners: hostRef.$queuedListeners$,\n rmListeners: hostRef.$rmListeners$,\n [\"s-id\"]: hostElement[\"s-id\"],\n [\"s-cr\"]: hostElement[\"s-cr\"],\n [\"s-lr\"]: hostElement[\"s-lr\"],\n [\"s-p\"]: hostElement[\"s-p\"],\n [\"s-rc\"]: hostElement[\"s-rc\"],\n [\"s-sc\"]: hostElement[\"s-sc\"]\n };\n};\nvar installDevTools = () => {\n if (BUILD11.devTools) {\n const stencil = win.stencil = win.stencil || {};\n const originalInspect = stencil.inspect;\n stencil.inspect = (ref) => {\n let result = inspect(ref);\n if (!result && typeof originalInspect === \"function\") {\n result = originalInspect(ref);\n }\n return result;\n };\n }\n};\n\n// src/runtime/styles.ts\nimport { BUILD as BUILD12 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/query-nonce-meta-tag-content.ts\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) == null ? void 0 : _b.getAttribute(\"content\")) != null ? _c : void 0;\n}\n\n// src/runtime/styles.ts\nvar rootAppliedStyles = /* @__PURE__ */ new WeakMap();\nvar registerStyle = (scopeId2, cssText, allowCS) => {\n let style = styles.get(scopeId2);\n if (supportsConstructableStylesheets && allowCS) {\n style = style || new CSSStyleSheet();\n if (typeof style === \"string\") {\n style = cssText;\n } else {\n style.replaceSync(cssText);\n }\n } else {\n style = cssText;\n }\n styles.set(scopeId2, style);\n};\nvar addStyle = (styleContainerNode, cmpMeta, mode) => {\n var _a, _b, _c;\n const scopeId2 = getScopeId(cmpMeta, mode);\n const style = styles.get(scopeId2);\n if (!BUILD12.attachStyles || !win.document) {\n return scopeId2;\n }\n styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;\n if (style) {\n if (typeof style === \"string\") {\n styleContainerNode = styleContainerNode.head || styleContainerNode;\n let appliedStyles = rootAppliedStyles.get(styleContainerNode);\n let styleElm;\n if (!appliedStyles) {\n rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());\n }\n const existingStyleElm = (BUILD12.hydrateClientSide || BUILD12.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}=\"${scopeId2}\"]`);\n if (existingStyleElm) {\n if (BUILD12.hotModuleReplacement) {\n existingStyleElm.textContent = style;\n }\n appliedStyles.add(scopeId2);\n } else if (!appliedStyles.has(scopeId2)) {\n styleElm = win.document.createElement(\"style\");\n styleElm.textContent = style;\n const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);\n if (nonce != null) {\n styleElm.setAttribute(\"nonce\", nonce);\n }\n if (BUILD12.hydrateServerSide || BUILD12.hotModuleReplacement) {\n styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);\n }\n if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {\n if (styleContainerNode.nodeName === \"HEAD\") {\n const preconnectLinks = styleContainerNode.querySelectorAll(\"link[rel=preconnect]\");\n const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector(\"style\");\n styleContainerNode.insertBefore(\n styleElm,\n (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null\n );\n } else if (\"host\" in styleContainerNode) {\n if (supportsConstructableStylesheets) {\n const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;\n const stylesheet = new currentWindow.CSSStyleSheet();\n stylesheet.replaceSync(style);\n if (supportsMutableAdoptedStyleSheets) {\n styleContainerNode.adoptedStyleSheets.unshift(stylesheet);\n } else {\n styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];\n }\n } else {\n const existingStyleContainer = styleContainerNode.querySelector(\"style\");\n if (existingStyleContainer && !BUILD12.hotModuleReplacement) {\n existingStyleContainer.textContent = style + existingStyleContainer.textContent;\n } else {\n styleContainerNode.prepend(styleElm);\n }\n }\n } else {\n styleContainerNode.append(styleElm);\n }\n }\n if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n styleContainerNode.insertBefore(styleElm, null);\n }\n if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {\n styleElm.textContent += SLOT_FB_CSS;\n }\n if (appliedStyles) {\n appliedStyles.add(scopeId2);\n }\n }\n } else if (BUILD12.constructableCSS) {\n let appliedStyles = rootAppliedStyles.get(styleContainerNode);\n if (!appliedStyles) {\n rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());\n }\n if (!appliedStyles.has(scopeId2)) {\n const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;\n let stylesheet;\n if (style.constructor === currentWindow.CSSStyleSheet) {\n stylesheet = style;\n } else {\n stylesheet = new currentWindow.CSSStyleSheet();\n for (let i2 = 0; i2 < style.cssRules.length; i2++) {\n stylesheet.insertRule(style.cssRules[i2].cssText, i2);\n }\n }\n if (supportsMutableAdoptedStyleSheets) {\n styleContainerNode.adoptedStyleSheets.push(stylesheet);\n } else {\n styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];\n }\n appliedStyles.add(scopeId2);\n if (BUILD12.hydrateClientSide && \"host\" in styleContainerNode) {\n const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}=\"${scopeId2}\"]`);\n if (ssrStyleElm) {\n writeTask(() => ssrStyleElm.remove());\n }\n }\n }\n }\n }\n return scopeId2;\n};\nvar attachStyles = (hostRef) => {\n const cmpMeta = hostRef.$cmpMeta$;\n const elm = hostRef.$hostElement$;\n const flags = cmpMeta.$flags$;\n const endAttachStyles = createTime(\"attachStyles\", cmpMeta.$tagName$);\n const scopeId2 = addStyle(\n BUILD12.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),\n cmpMeta,\n hostRef.$modeName$\n );\n if ((BUILD12.shadowDom || BUILD12.scoped) && BUILD12.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {\n elm[\"s-sc\"] = scopeId2;\n elm.classList.add(scopeId2 + \"-h\");\n }\n endAttachStyles();\n};\nvar getScopeId = (cmp, mode) => \"sc-\" + (BUILD12.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + \"-\" + mode : cmp.$tagName$);\nvar convertScopedToShadow = (css) => css.replace(/\\/\\*!@([^\\/]+)\\*\\/[^\\{]+\\{/g, \"$1{\");\nvar hydrateScopedToShadow = (cmpMetas) => {\n if (!win.document) {\n return;\n }\n const styleElms = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);\n let i2 = 0;\n for (; i2 < styleElms.length; i2++) {\n const scopeId2 = styleElms[i2].getAttribute(HYDRATED_STYLE_ID);\n const isShadowCmpStyle = cmpMetas.some((cmpMeta) => {\n const cmpScopeId = \"sc-\" + cmpMeta.$tagName$;\n return cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && (scopeId2 === cmpScopeId || BUILD12.mode && cmpMeta.$flags$ & 32 /* hasMode */ && scopeId2.startsWith(cmpScopeId + \"-\"));\n });\n if (isShadowCmpStyle) {\n registerStyle(scopeId2, convertScopedToShadow(styleElms[i2].innerHTML), true);\n }\n }\n};\n\n// src/runtime/vdom/h.ts\nimport { BUILD as BUILD13 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/helpers.ts\nvar isDef = (v) => v != null && v !== void 0;\nvar isComplexType = (o) => {\n o = typeof o;\n return o === \"object\" || o === \"function\";\n};\n\n// src/runtime/vdom/h.ts\nvar h = (nodeName, vnodeData, ...children) => {\n if (typeof nodeName === \"string\") {\n nodeName = transformTag(nodeName);\n }\n let child = null;\n let key = null;\n let slotName = null;\n let simple = false;\n let lastSimple = false;\n const vNodeChildren = [];\n const walk = (c) => {\n for (let i2 = 0; i2 < c.length; i2++) {\n child = c[i2];\n if (Array.isArray(child)) {\n walk(child);\n } else if (child != null && typeof child !== \"boolean\") {\n if (simple = typeof nodeName !== \"function\" && !isComplexType(child)) {\n child = String(child);\n } else if (typeof nodeName !== \"function\" && child.$flags$ === void 0) {\n if (BUILD13.isDev) {\n consoleDevError(`vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects.`);\n } else {\n consoleError(\"Invalid vNode child\");\n }\n continue;\n }\n if (simple && lastSimple) {\n vNodeChildren[vNodeChildren.length - 1].$text$ += child;\n } else {\n vNodeChildren.push(simple ? newVNode(null, child) : child);\n }\n lastSimple = simple;\n }\n }\n };\n walk(children);\n if (vnodeData) {\n if (BUILD13.isDev && nodeName === \"input\") {\n validateInputProperties(vnodeData);\n }\n if (BUILD13.vdomKey && vnodeData.key) {\n key = vnodeData.key;\n }\n if (BUILD13.slotRelocation && vnodeData.name) {\n slotName = vnodeData.name;\n }\n if (BUILD13.vdomClass) {\n const classData = vnodeData.className || vnodeData.class;\n if (classData) {\n vnodeData.class = typeof classData !== \"object\" ? classData : Object.keys(classData).filter((k) => classData[k]).join(\" \");\n }\n }\n }\n if (BUILD13.isDev && vNodeChildren.some(isHost)) {\n consoleDevError(`The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function.`);\n }\n if (BUILD13.vdomFunctional && typeof nodeName === \"function\") {\n return nodeName(\n vnodeData === null ? {} : vnodeData,\n vNodeChildren,\n vdomFnUtils\n );\n }\n const vnode = newVNode(nodeName, null);\n vnode.$attrs$ = vnodeData;\n if (vNodeChildren.length > 0) {\n vnode.$children$ = vNodeChildren;\n }\n if (BUILD13.vdomKey) {\n vnode.$key$ = key;\n }\n if (BUILD13.slotRelocation) {\n vnode.$name$ = slotName;\n }\n return vnode;\n};\nvar newVNode = (tag, text) => {\n const vnode = {\n $flags$: 0,\n $tag$: tag,\n // Normalize undefined to null to prevent rendering \"undefined\" as text\n $text$: text != null ? text : null,\n $elm$: null,\n $children$: null\n };\n if (BUILD13.vdomAttribute) {\n vnode.$attrs$ = null;\n }\n if (BUILD13.vdomKey) {\n vnode.$key$ = null;\n }\n if (BUILD13.slotRelocation) {\n vnode.$name$ = null;\n }\n return vnode;\n};\nvar Host = {};\nvar isHost = (node) => node && node.$tag$ === Host;\nvar vdomFnUtils = {\n forEach: (children, cb) => children.map(convertToPublic).forEach(cb),\n map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)\n};\nvar convertToPublic = (node) => ({\n vattrs: node.$attrs$,\n vchildren: node.$children$,\n vkey: node.$key$,\n vname: node.$name$,\n vtag: node.$tag$,\n vtext: node.$text$\n});\nvar convertToPrivate = (node) => {\n if (typeof node.vtag === \"function\") {\n const vnodeData = { ...node.vattrs };\n if (node.vkey) {\n vnodeData.key = node.vkey;\n }\n if (node.vname) {\n vnodeData.name = node.vname;\n }\n return h(node.vtag, vnodeData, ...node.vchildren || []);\n }\n const vnode = newVNode(node.vtag, node.vtext);\n vnode.$attrs$ = node.vattrs;\n vnode.$children$ = node.vchildren;\n vnode.$key$ = node.vkey;\n vnode.$name$ = node.vname;\n return vnode;\n};\nvar validateInputProperties = (inputElm) => {\n const props = Object.keys(inputElm);\n const value = props.indexOf(\"value\");\n if (value === -1) {\n return;\n }\n const typeIndex = props.indexOf(\"type\");\n const minIndex = props.indexOf(\"min\");\n const maxIndex = props.indexOf(\"max\");\n const stepIndex = props.indexOf(\"step\");\n if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {\n consoleDevWarn(`The \"value\" prop of <input> should be set after \"min\", \"max\", \"type\" and \"step\"`);\n }\n};\n\n// src/runtime/client-hydrate.ts\nvar initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {\n var _a, _b, _c, _d;\n const endHydrate = createTime(\"hydrateClient\", tagName);\n const shadowRoot = hostElm.shadowRoot;\n const childRenderNodes = [];\n const slotNodes = [];\n const slottedNodes = [];\n const shadowRootNodes = BUILD14.shadowDom && shadowRoot ? [] : null;\n const vnode = newVNode(tagName, null);\n vnode.$elm$ = hostElm;\n let scopeId2;\n if (BUILD14.scoped) {\n const cmpMeta = hostRef.$cmpMeta$;\n if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm[\"s-sc\"]) {\n scopeId2 = hostElm[\"s-sc\"];\n hostElm.classList.add(scopeId2 + \"-h\");\n } else if (hostElm[\"s-sc\"]) {\n delete hostElm[\"s-sc\"];\n }\n }\n if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {\n initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());\n }\n hostElm[HYDRATE_ID] = hostId;\n hostElm.removeAttribute(HYDRATE_ID);\n hostRef.$vnode$ = clientHydrate(\n vnode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n hostElm,\n hostElm,\n hostId,\n slottedNodes\n );\n let crIndex = 0;\n const crLength = childRenderNodes.length;\n let childRenderNode;\n for (crIndex; crIndex < crLength; crIndex++) {\n childRenderNode = childRenderNodes[crIndex];\n const orgLocationId = childRenderNode.$hostId$ + \".\" + childRenderNode.$nodeId$;\n const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);\n const node = childRenderNode.$elm$;\n if (!shadowRoot) {\n node[\"s-hn\"] = transformTag(tagName).toUpperCase();\n if (childRenderNode.$tag$ === \"slot\") {\n node[\"s-cr\"] = hostElm[\"s-cr\"];\n }\n } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes(\"-\")) && childRenderNode.$tag$ !== \"slot-fb\" && !childRenderNode.$elm$.shadowRoot) {\n const cmpMeta = getHostRef(childRenderNode.$elm$);\n if (cmpMeta) {\n const scopeId3 = getScopeId(\n cmpMeta.$cmpMeta$,\n BUILD14.mode ? childRenderNode.$elm$.getAttribute(\"s-mode\") : void 0\n );\n const styleSheet = win.document.querySelector(`style[sty-id=\"${scopeId3}\"]`);\n if (styleSheet) {\n shadowRootNodes.unshift(styleSheet.cloneNode(true));\n }\n }\n }\n if (childRenderNode.$tag$ === \"slot\") {\n childRenderNode.$name$ = childRenderNode.$elm$[\"s-sn\"] || childRenderNode.$elm$[\"name\"] || null;\n if (childRenderNode.$children$) {\n childRenderNode.$flags$ |= 2 /* isSlotFallback */;\n if (!childRenderNode.$elm$.childNodes.length) {\n childRenderNode.$children$.forEach((c) => {\n childRenderNode.$elm$.appendChild(c.$elm$);\n });\n }\n } else {\n childRenderNode.$flags$ |= 1 /* isSlotReference */;\n }\n }\n if (orgLocationNode && orgLocationNode.isConnected) {\n if (orgLocationNode.parentElement.shadowRoot && orgLocationNode[\"s-en\"] === \"\") {\n orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);\n }\n orgLocationNode.parentNode.removeChild(orgLocationNode);\n if (!shadowRoot) {\n node[\"s-oo\"] = parseInt(childRenderNode.$nodeId$);\n }\n }\n if (orgLocationNode && !orgLocationNode[\"s-id\"]) {\n plt.$orgLocNodes$.delete(orgLocationId);\n }\n }\n const hosts = [];\n const snLen = slottedNodes.length;\n let snIndex = 0;\n let slotGroup;\n let snGroupIdx;\n let snGroupLen;\n let slottedItem;\n let currentPos = 0;\n for (snIndex; snIndex < snLen; snIndex++) {\n slotGroup = slottedNodes[snIndex];\n if (!slotGroup || !slotGroup.length) continue;\n snGroupLen = slotGroup.length;\n snGroupIdx = 0;\n for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {\n slottedItem = slotGroup[snGroupIdx];\n if (!hosts[slottedItem.hostId]) {\n hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);\n }\n if (!hosts[slottedItem.hostId]) continue;\n const hostEle = hosts[slottedItem.hostId];\n if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {\n hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);\n }\n if (!hostEle.shadowRoot || !shadowRoot) {\n if (!slottedItem.slot[\"s-cr\"]) {\n slottedItem.slot[\"s-cr\"] = hostEle[\"s-cr\"];\n if (!slottedItem.slot[\"s-cr\"] && hostEle.shadowRoot) {\n slottedItem.slot[\"s-cr\"] = hostEle;\n } else {\n slottedItem.slot[\"s-cr\"] = (hostEle.__childNodes || hostEle.childNodes)[0];\n }\n }\n addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node[\"s-oo\"] || currentPos);\n if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node[\"getAttribute\"] && slottedItem.node.getAttribute(\"slot\")) {\n slottedItem.node.removeAttribute(\"slot\");\n }\n if (BUILD14.experimentalSlotFixes) {\n patchSlottedNode(slottedItem.node);\n }\n }\n currentPos = (slottedItem.node[\"s-oo\"] || currentPos) + 1;\n }\n }\n if (BUILD14.scoped && scopeId2 && slotNodes.length) {\n slotNodes.forEach((slot) => {\n slot.$elm$.parentElement.classList.add(scopeId2 + \"-s\");\n });\n }\n if (BUILD14.shadowDom && shadowRoot && !shadowRoot.childNodes.length) {\n let rnIdex = 0;\n const rnLen = shadowRootNodes.length;\n if (rnLen) {\n for (rnIdex; rnIdex < rnLen; rnIdex++) {\n const node = shadowRootNodes[rnIdex];\n if (node) {\n shadowRoot.appendChild(node);\n }\n }\n Array.from(hostElm.childNodes).forEach((node) => {\n if (typeof node[\"s-en\"] !== \"string\" && typeof node[\"s-sn\"] !== \"string\") {\n if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {\n node.removeAttribute(\"hidden\");\n } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {\n node.parentNode.removeChild(node);\n }\n }\n });\n }\n }\n hostRef.$hostElement$ = hostElm;\n endHydrate();\n};\nvar clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {\n let childNodeType;\n let childIdSplt;\n let childVNode;\n let i2;\n const scopeId2 = hostElm[\"s-sc\"];\n if (node.nodeType === 1 /* ElementNode */) {\n childNodeType = node.getAttribute(HYDRATE_CHILD_ID);\n if (childNodeType && node !== hostElm) {\n childIdSplt = childNodeType.split(\".\");\n if (childIdSplt[0] === hostId || childIdSplt[0] === \"0\") {\n childVNode = createSimpleVNode({\n $flags$: 0,\n $hostId$: childIdSplt[0],\n $nodeId$: childIdSplt[1],\n $depth$: childIdSplt[2],\n $index$: childIdSplt[3],\n $tag$: node.tagName.toLowerCase(),\n $elm$: node,\n // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch\n // won't try to reconcile them. Classes set on the node will be blown away.\n $attrs$: { class: node.className || \"\" }\n });\n childRenderNodes.push(childVNode);\n node.removeAttribute(HYDRATE_CHILD_ID);\n if (!parentVNode.$children$) {\n parentVNode.$children$ = [];\n }\n if (BUILD14.scoped && scopeId2 && childIdSplt[0] === hostId) {\n node[\"s-si\"] = scopeId2;\n childVNode.$attrs$.class += \" \" + scopeId2;\n }\n const slotName = childVNode.$elm$.getAttribute(\"s-sn\");\n if (typeof slotName === \"string\") {\n if (childVNode.$tag$ === \"slot-fb\") {\n addSlot(\n slotName,\n childIdSplt[2],\n childVNode,\n node,\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n slottedNodes\n );\n if (BUILD14.scoped && scopeId2) {\n node.classList.add(scopeId2);\n }\n }\n childVNode.$elm$[\"s-sn\"] = slotName;\n childVNode.$elm$.removeAttribute(\"s-sn\");\n }\n if (childVNode.$index$ !== void 0) {\n parentVNode.$children$[childVNode.$index$] = childVNode;\n }\n parentVNode = childVNode;\n if (shadowRootNodes && childVNode.$depth$ === \"0\") {\n shadowRootNodes[childVNode.$index$] = childVNode.$elm$;\n }\n }\n }\n if (node.shadowRoot) {\n for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {\n clientHydrate(\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n hostElm,\n node.shadowRoot.childNodes[i2],\n hostId,\n slottedNodes\n );\n }\n }\n const nonShadowNodes = node.__childNodes || node.childNodes;\n for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {\n clientHydrate(\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n hostElm,\n nonShadowNodes[i2],\n hostId,\n slottedNodes\n );\n }\n } else if (node.nodeType === 8 /* CommentNode */) {\n childIdSplt = node.nodeValue.split(\".\");\n if (childIdSplt[1] === hostId || childIdSplt[1] === \"0\") {\n childNodeType = childIdSplt[0];\n childVNode = createSimpleVNode({\n $hostId$: childIdSplt[1],\n $nodeId$: childIdSplt[2],\n $depth$: childIdSplt[3],\n $index$: childIdSplt[4] || \"0\",\n $elm$: node,\n $attrs$: null,\n $children$: null,\n $key$: null,\n $name$: null,\n $tag$: null,\n $text$: null\n });\n if (childNodeType === TEXT_NODE_ID) {\n childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);\n if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {\n childVNode.$text$ = childVNode.$elm$.textContent;\n childRenderNodes.push(childVNode);\n node.remove();\n if (hostId === childVNode.$hostId$) {\n if (!parentVNode.$children$) {\n parentVNode.$children$ = [];\n }\n parentVNode.$children$[childVNode.$index$] = childVNode;\n }\n if (shadowRootNodes && childVNode.$depth$ === \"0\") {\n shadowRootNodes[childVNode.$index$] = childVNode.$elm$;\n }\n }\n } else if (childNodeType === COMMENT_NODE_ID) {\n childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);\n if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {\n childRenderNodes.push(childVNode);\n node.remove();\n }\n } else if (childVNode.$hostId$ === hostId) {\n if (childNodeType === SLOT_NODE_ID) {\n const slotName = node[\"s-sn\"] = childIdSplt[5] || \"\";\n addSlot(\n slotName,\n childIdSplt[2],\n childVNode,\n node,\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n slottedNodes\n );\n } else if (childNodeType === CONTENT_REF_ID) {\n if (BUILD14.shadowDom && shadowRootNodes) {\n node.remove();\n } else if (BUILD14.slotRelocation) {\n hostElm[\"s-cr\"] = node;\n node[\"s-cn\"] = true;\n }\n }\n }\n }\n } else if (parentVNode && parentVNode.$tag$ === \"style\") {\n const vnode = newVNode(null, node.textContent);\n vnode.$elm$ = node;\n vnode.$index$ = \"0\";\n parentVNode.$children$ = [vnode];\n }\n return parentVNode;\n};\nvar initializeDocumentHydrate = (node, orgLocNodes) => {\n if (node.nodeType === 1 /* ElementNode */) {\n const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);\n if (componentId) {\n orgLocNodes.set(componentId, node);\n }\n let i2 = 0;\n if (node.shadowRoot) {\n for (; i2 < node.shadowRoot.childNodes.length; i2++) {\n initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);\n }\n }\n const nonShadowNodes = node.__childNodes || node.childNodes;\n for (i2 = 0; i2 < nonShadowNodes.length; i2++) {\n initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);\n }\n } else if (node.nodeType === 8 /* CommentNode */) {\n const childIdSplt = node.nodeValue.split(\".\");\n if (childIdSplt[0] === ORG_LOCATION_ID) {\n orgLocNodes.set(childIdSplt[1] + \".\" + childIdSplt[2], node);\n node.nodeValue = \"\";\n node[\"s-en\"] = childIdSplt[3];\n }\n }\n};\nvar createSimpleVNode = (vnode) => {\n const defaultVNode = {\n $flags$: 0,\n $hostId$: null,\n $nodeId$: null,\n $depth$: null,\n $index$: \"0\",\n $elm$: null,\n $attrs$: null,\n $children$: null,\n $key$: null,\n $name$: null,\n $tag$: null,\n $text$: null\n };\n return { ...defaultVNode, ...vnode };\n};\nfunction addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {\n node[\"s-sr\"] = true;\n childVNode.$name$ = slotName || null;\n childVNode.$tag$ = \"slot\";\n const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$[\"s-id\"] || parentVNode.$elm$.getAttribute(\"s-id\") : \"\";\n if (BUILD14.shadowDom && shadowRootNodes && win.document) {\n const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);\n if (childVNode.$name$) {\n childVNode.$elm$.setAttribute(\"name\", slotName);\n }\n if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {\n internalCall(parentVNode.$elm$, \"insertBefore\")(slot, internalCall(parentVNode.$elm$, \"children\")[0]);\n } else {\n internalCall(internalCall(node, \"parentNode\"), \"insertBefore\")(slot, node);\n }\n addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);\n node.remove();\n if (childVNode.$depth$ === \"0\") {\n shadowRootNodes[childVNode.$index$] = childVNode.$elm$;\n }\n } else {\n const slot = childVNode.$elm$;\n const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;\n addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);\n patchSlotNode(node);\n if (shouldMove) {\n parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);\n }\n }\n childRenderNodes.push(childVNode);\n slotNodes.push(childVNode);\n if (!parentVNode.$children$) {\n parentVNode.$children$ = [];\n }\n parentVNode.$children$[childVNode.$index$] = childVNode;\n}\nvar addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {\n var _a, _b;\n let slottedNode = slotNode.nextSibling;\n slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];\n if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + \".\"))) return;\n do {\n if (slottedNode && ((slottedNode[\"getAttribute\"] && slottedNode.getAttribute(\"slot\") || slottedNode[\"s-sn\"]) === slotName || slotName === \"\" && !slottedNode[\"s-sn\"] && (!slottedNode[\"getAttribute\"] || !slottedNode.getAttribute(\"slot\")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {\n slottedNode[\"s-sn\"] = slotName;\n slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });\n }\n slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;\n } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + \".\")));\n};\nvar findCorrespondingNode = (node, type) => {\n let sibling = node;\n do {\n sibling = sibling.nextSibling;\n } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));\n return sibling;\n};\n\n// src/runtime/initialize-component.ts\nimport { BUILD as BUILD24 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/regular-expression.ts\nvar escapeRegExpSpecialCharacters = (text) => {\n return text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n};\n\n// src/utils/shadow-css.ts\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */\nvar safeSelector = (selector) => {\n const placeholders = [];\n let index = 0;\n selector = selector.replace(/(\\[\\s*part~=\\s*(\"[^\"]*\"|'[^']*')\\s*\\])/g, (_, keep) => {\n const replaceBy = `__part-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n selector = selector.replace(/(\\[[^\\]]*\\])/g, (_, keep) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n const content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(exp);\n index++;\n return pseudo + replaceBy;\n });\n const ss = {\n content,\n placeholders\n };\n return ss;\n};\nvar restoreSafeSelector = (placeholders, content) => {\n content = content.replace(/__part-(\\d+)__/g, (_, index) => placeholders[+index]);\n return content.replace(/__ph-(\\d+)__/g, (_, index) => placeholders[+index]);\n};\nvar _polyfillHost = \"-shadowcsshost\";\nvar _polyfillSlotted = \"-shadowcssslotted\";\nvar _polyfillHostContext = \"-shadowcsscontext\";\nvar _parenSuffix = \")(?:\\\\(((?:\\\\([^)(]*\\\\)|[^)(]*)+?)\\\\))?([^,{]*)\";\nvar _cssColonHostRe = new RegExp(\"(\" + _polyfillHost + _parenSuffix, \"gim\");\nvar _cssColonHostContextRe = new RegExp(\"(\" + _polyfillHostContext + _parenSuffix, \"gim\");\nvar _cssColonSlottedRe = new RegExp(\"(\" + _polyfillSlotted + _parenSuffix, \"gim\");\nvar _polyfillHostNoCombinator = _polyfillHost + \"-no-combinator\";\nvar _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\nvar _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];\nvar _safePartRe = /__part-(\\d+)__/g;\nvar _selectorReSuffix = \"([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$\";\nvar _polyfillHostRe = /-shadowcsshost/gim;\nvar createSupportsRuleRe = (selector) => {\n const safeSelector2 = escapeRegExpSpecialCharacters(selector);\n return new RegExp(\n // First capture group: match any context before the selector that's not inside @supports selector()\n // Using negative lookahead to avoid matching inside @supports selector(...) condition\n `(^|[^@]|@(?!supports\\\\s+selector\\\\s*\\\\([^{]*?${safeSelector2}))(${safeSelector2}\\\\b)`,\n \"g\"\n );\n};\nvar _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\nvar stripComments = (input) => {\n return input.replace(_commentRe, \"\");\n};\nvar _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;\nvar extractCommentsWithHash = (input) => {\n return input.match(_commentWithHashRe) || [];\n};\nvar _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\nvar _curlyRe = /([{}])/g;\nvar _selectorPartsRe = /(^.*?[^\\\\])??((:+)(.*)|$)/;\nvar OPEN_CURLY = \"{\";\nvar CLOSE_CURLY = \"}\";\nvar BLOCK_PLACEHOLDER = \"%BLOCK%\";\nvar processRules = (input, ruleCallback) => {\n const inputWithEscapedBlocks = escapeBlocks(input);\n let nextBlockIndex = 0;\n return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {\n const selector = m[2];\n let content = \"\";\n let suffix = m[4];\n let contentPrefix = \"\";\n if (suffix && suffix.startsWith(\"{\" + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = \"{\";\n }\n const cssRule = {\n selector,\n content\n };\n const rule = ruleCallback(cssRule);\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n};\nvar escapeBlocks = (input) => {\n const inputParts = input.split(_curlyRe);\n const resultParts = [];\n const escapedBlocks = [];\n let bracketCount = 0;\n let currentBlockParts = [];\n for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {\n const part = inputParts[partIndex];\n if (part === CLOSE_CURLY) {\n bracketCount--;\n }\n if (bracketCount > 0) {\n currentBlockParts.push(part);\n } else {\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(\"\"));\n resultParts.push(BLOCK_PLACEHOLDER);\n currentBlockParts = [];\n }\n resultParts.push(part);\n }\n if (part === OPEN_CURLY) {\n bracketCount++;\n }\n }\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(\"\"));\n resultParts.push(BLOCK_PLACEHOLDER);\n }\n const strEscapedBlocks = {\n escapedString: resultParts.join(\"\"),\n blocks: escapedBlocks\n };\n return strEscapedBlocks;\n};\nvar insertPolyfillHostInCssText = (cssText) => {\n const supportsBlocks = [];\n cssText = cssText.replace(/@supports\\s+selector\\s*\\(\\s*([^)]*)\\s*\\)/g, (_, selectorContent) => {\n const placeholder = `__supports_${supportsBlocks.length}__`;\n supportsBlocks.push(selectorContent);\n return `@supports selector(${placeholder})`;\n });\n const _colonSlottedRe = createSupportsRuleRe(\"::slotted\");\n const _colonHostRe = createSupportsRuleRe(\":host\");\n const _colonHostContextRe = createSupportsRuleRe(\":host-context\");\n cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);\n supportsBlocks.forEach((originalSelector, index) => {\n cssText = cssText.replace(`__supports_${index}__`, originalSelector);\n });\n return cssText;\n};\nvar convertColonRule = (cssText, regExp, partReplacer) => {\n return cssText.replace(regExp, (...m) => {\n if (m[2]) {\n const parts = m[2].split(\",\");\n const r = [];\n for (let i2 = 0; i2 < parts.length; i2++) {\n const p = parts[i2].trim();\n if (!p) break;\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(\",\");\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n};\nvar colonHostPartReplacer = (host, part, suffix) => {\n return host + part.replace(_polyfillHost, \"\") + suffix;\n};\nvar convertColonHost = (cssText) => {\n return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);\n};\nvar colonHostContextPartReplacer = (host, part, suffix) => {\n if (part.indexOf(_polyfillHost) > -1) {\n return colonHostPartReplacer(host, part, suffix);\n } else {\n return host + part + suffix + \", \" + part + \" \" + host + suffix;\n }\n};\nvar convertColonSlotted = (cssText, slotScopeId) => {\n const slotClass = \".\" + slotScopeId + \" > \";\n const selectors = [];\n cssText = cssText.replace(_cssColonSlottedRe, (...m) => {\n if (m[2]) {\n const compound = m[2].trim();\n const suffix = m[3];\n const slottedSelector = slotClass + compound + suffix;\n let prefixSelector = \"\";\n for (let i2 = m[4] - 1; i2 >= 0; i2--) {\n const char = m[5][i2];\n if (char === \"}\" || char === \",\") {\n break;\n }\n prefixSelector = char + prefixSelector;\n }\n const orgSelector = (prefixSelector + slottedSelector).trim();\n const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();\n if (orgSelector !== addedSelector) {\n const updatedSelector = `${addedSelector}, ${orgSelector}`;\n selectors.push({\n orgSelector,\n updatedSelector\n });\n }\n return slottedSelector;\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n return {\n selectors,\n cssText\n };\n};\nvar convertColonHostContext = (cssText) => {\n return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);\n};\nvar convertShadowDOMSelectors = (cssText) => {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, \" \"), cssText);\n};\nvar makeScopeMatcher = (scopeSelector2) => {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector2 = scopeSelector2.replace(lre, \"\\\\[\").replace(rre, \"\\\\]\");\n return new RegExp(\"^(\" + scopeSelector2 + \")\" + _selectorReSuffix, \"m\");\n};\nvar selectorNeedsScoping = (selector, scopeSelector2) => {\n const re = makeScopeMatcher(scopeSelector2);\n return !re.test(selector);\n};\nvar injectScopingSelector = (selector, scopingSelector) => {\n return selector.replace(_selectorPartsRe, (_, before = \"\", _colonGroup, colon = \"\", after = \"\") => {\n return before + scopingSelector + colon + after;\n });\n};\nvar applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `.${hostSelector}`;\n return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + \" \");\n }\n return scopeSelector2 + \" \" + selector;\n};\nvar applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);\n const className = \".\" + scopeSelector2;\n const _scopeSelectorPart = (p) => {\n let scopedP = p.trim();\n if (!scopedP) {\n return \"\";\n }\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);\n } else {\n const t = p.replace(_polyfillHostRe, \"\");\n if (t.length > 0) {\n scopedP = injectScopingSelector(t, className);\n }\n }\n return scopedP;\n };\n const safeContent = safeSelector(selector);\n selector = safeContent.content;\n let scopedSelector = \"\";\n let startIndex = 0;\n let res;\n const sep = /( |>|\\+|~(?!=))(?=(?:[^()]*\\([^()]*\\))*[^()]*$)\\s*/g;\n const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;\n let shouldScope = !hasHost;\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n const part2 = selector.slice(startIndex, res.index).trim();\n shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;\n const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n const part = selector.substring(startIndex);\n shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);\n scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;\n return restoreSafeSelector(safeContent.placeholders, scopedSelector);\n};\nvar scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {\n return selector.split(\",\").map((shallowPart) => {\n if (slotSelector && shallowPart.indexOf(\".\" + slotSelector) > -1) {\n return shallowPart.trim();\n }\n if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {\n return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();\n } else {\n return shallowPart.trim();\n }\n }).join(\", \");\n};\nvar isScopableAtRule = (selector) => selector.startsWith(\"@media\") || selector.startsWith(\"@supports\") || selector.startsWith(\"@page\") || selector.startsWith(\"@document\") || selector.startsWith(\"@layer\") || selector.startsWith(\"@container\");\nvar scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {\n return processRules(cssText, (rule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== \"@\") {\n selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);\n } else if (isScopableAtRule(rule.selector)) {\n content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector);\n }\n const cssRule = {\n selector: selector.replace(/\\s{2,}/g, \" \").trim(),\n content\n };\n return cssRule;\n });\n};\nvar scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {\n cssText = insertPolyfillHostInCssText(cssText);\n cssText = convertColonHost(cssText);\n cssText = convertColonHostContext(cssText);\n const slotted = convertColonSlotted(cssText, slotScopeId);\n cssText = slotted.cssText;\n cssText = convertShadowDOMSelectors(cssText);\n if (scopeId2) {\n cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);\n }\n cssText = replaceShadowCssHost(cssText, hostScopeId);\n cssText = cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm, \" $1 \");\n return {\n cssText: cssText.trim(),\n // We need to replace the shadow CSS host string in each of these selectors since we created\n // them prior to the replacement happening in the components CSS text.\n slottedSelectors: slotted.selectors.map((ref) => ({\n orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),\n updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)\n }))\n };\n};\nvar replaceShadowCssHost = (cssText, hostScopeId) => {\n return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);\n};\nvar expandPartSelectors = (cssText) => {\n const partSelectorRe = /([^\\s,{][^,{]*?)::part\\(\\s*([^)]+?)\\s*\\)((?:[:.][^,{]*)*)/g;\n return processRules(cssText, (rule) => {\n if (rule.selector[0] === \"@\") {\n return rule;\n }\n const selectors = rule.selector.split(\",\").map((sel) => {\n const out = [sel.trim()];\n let m;\n while ((m = partSelectorRe.exec(sel)) !== null) {\n const before = m[1].trimEnd();\n const partNames = m[2].trim().split(/\\s+/);\n const after = m[3] || \"\";\n const partAttr = partNames.flatMap((p) => {\n if (!rule.selector.includes(`[part~=\"${p}\"]`)) {\n return [`[part~=\"${p}\"]`];\n }\n return [];\n }).join(\"\");\n const expanded = `${before} ${partAttr}${after}`;\n if (!!partAttr && expanded !== sel.trim()) {\n out.push(expanded);\n }\n }\n return out.join(\", \");\n });\n rule.selector = selectors.join(\", \");\n return rule;\n });\n};\nvar scopeCss = (cssText, scopeId2, commentOriginalSelector) => {\n const hostScopeId = scopeId2 + \"-h\";\n const slotScopeId = scopeId2 + \"-s\";\n const commentsWithHash = extractCommentsWithHash(cssText);\n cssText = stripComments(cssText);\n const orgSelectors = [];\n if (commentOriginalSelector) {\n const processCommentedSelector = (rule) => {\n const placeholder = `/*!@___${orgSelectors.length}___*/`;\n const comment = `/*!@${rule.selector}*/`;\n orgSelectors.push({ placeholder, comment });\n rule.selector = placeholder + rule.selector;\n return rule;\n };\n const commentSelectors = (input) => processRules(input, (rule) => {\n if (rule.selector[0] !== \"@\") {\n return processCommentedSelector(rule);\n }\n if (isScopableAtRule(rule.selector)) {\n rule.content = commentSelectors(rule.content);\n }\n return rule;\n });\n cssText = commentSelectors(cssText);\n }\n const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);\n cssText = [scoped.cssText, ...commentsWithHash].join(\"\\n\");\n if (commentOriginalSelector) {\n orgSelectors.forEach(({ placeholder, comment }) => {\n cssText = cssText.replace(placeholder, comment);\n });\n }\n scoped.slottedSelectors.forEach((slottedSelector) => {\n const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + \"(?=\\\\s*[,{]|$)\", \"g\");\n cssText = cssText.replace(regex, slottedSelector.updatedSelector);\n });\n cssText = expandPartSelectors(cssText);\n return cssText;\n};\n\n// src/runtime/mode.ts\nvar computeMode = (elm) => modeResolver.map((h2) => h2(elm)).find((m) => !!m);\nvar setMode = (handler) => {\n modeResolver.length = 0;\n modeResolver.push(handler);\n};\nvar getMode = (ref) => {\n var _a;\n return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;\n};\n\n// src/runtime/normalize-watchers.ts\nvar normalizeWatchers = (raw) => {\n if (!raw) return void 0;\n const keys = Object.keys(raw);\n if (keys.length === 0) return void 0;\n let hasLegacy = false;\n for (const propName of keys) {\n if (hasLegacy) break;\n for (const h2 of raw[propName]) {\n if (typeof h2 === \"string\") {\n hasLegacy = true;\n break;\n }\n }\n }\n if (!hasLegacy) return raw;\n const out = {};\n for (const propName of keys) {\n out[propName] = raw[propName].map(\n (h2) => typeof h2 === \"string\" ? { [h2]: 0 } : h2\n );\n }\n return out;\n};\n\n// src/runtime/proxy-component.ts\nimport { BUILD as BUILD23 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/set-value.ts\nimport { BUILD as BUILD22 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/parse-property-value.ts\nimport { BUILD as BUILD15 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/remote-value.ts\nvar RemoteValue = class _RemoteValue {\n /**\n * Deserializes a LocalValue serialized object back to its original JavaScript representation\n *\n * @param serialized The serialized LocalValue object\n * @returns The original JavaScript value/object\n */\n static fromLocalValue(serialized) {\n const type = serialized[TYPE_CONSTANT];\n const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;\n switch (type) {\n case \"string\" /* String */:\n return value;\n case \"boolean\" /* Boolean */:\n return value;\n case \"bigint\" /* BigInt */:\n return BigInt(value);\n case \"undefined\" /* Undefined */:\n return void 0;\n case \"null\" /* Null */:\n return null;\n case \"number\" /* Number */:\n if (value === \"NaN\") return NaN;\n if (value === \"-0\") return -0;\n if (value === \"Infinity\") return Infinity;\n if (value === \"-Infinity\") return -Infinity;\n return value;\n case \"array\" /* Array */:\n return value.map((item) => _RemoteValue.fromLocalValue(item));\n case \"date\" /* Date */:\n return new Date(value);\n case \"map\" /* Map */:\n const map = /* @__PURE__ */ new Map();\n for (const [key, val] of value) {\n const deserializedKey = typeof key === \"object\" && key !== null ? _RemoteValue.fromLocalValue(key) : key;\n const deserializedValue = _RemoteValue.fromLocalValue(val);\n map.set(deserializedKey, deserializedValue);\n }\n return map;\n case \"object\" /* Object */:\n const obj = {};\n for (const [key, val] of value) {\n obj[key] = _RemoteValue.fromLocalValue(val);\n }\n return obj;\n case \"regexp\" /* RegularExpression */:\n const { pattern, flags } = value;\n return new RegExp(pattern, flags);\n case \"set\" /* Set */:\n const set = /* @__PURE__ */ new Set();\n for (const item of value) {\n set.add(_RemoteValue.fromLocalValue(item));\n }\n return set;\n case \"symbol\" /* Symbol */:\n return Symbol(value);\n default:\n throw new Error(`Unsupported type: ${type}`);\n }\n }\n /**\n * Utility method to deserialize multiple LocalValues at once\n *\n * @param serializedValues Array of serialized LocalValue objects\n * @returns Array of deserialized JavaScript values\n */\n static fromLocalValueArray(serializedValues) {\n return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));\n }\n /**\n * Verifies if the given object matches the structure of a serialized LocalValue\n *\n * @param obj Object to verify\n * @returns boolean indicating if the object has LocalValue structure\n */\n static isLocalValueObject(obj) {\n if (typeof obj !== \"object\" || obj === null) {\n return false;\n }\n if (!obj.hasOwnProperty(TYPE_CONSTANT)) {\n return false;\n }\n const type = obj[TYPE_CONSTANT];\n const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);\n if (!hasTypeProperty) {\n return false;\n }\n if (type !== \"null\" /* Null */ && type !== \"undefined\" /* Undefined */) {\n return obj.hasOwnProperty(VALUE_CONSTANT);\n }\n return true;\n }\n};\n\n// src/utils/serialize.ts\nfunction decodeBase64Unicode(base64) {\n const binary = atob(base64);\n const bytes = new Uint8Array(binary.length);\n for (let i2 = 0; i2 < binary.length; i2++) {\n bytes[i2] = binary.charCodeAt(i2);\n }\n return new TextDecoder().decode(bytes);\n}\nfunction deserializeProperty(value) {\n if (typeof value !== \"string\" || !value.startsWith(SERIALIZED_PREFIX)) {\n return value;\n }\n return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));\n}\n\n// src/runtime/parse-property-value.ts\nvar parsePropertyValue = (propValue, propType, isFormAssociated) => {\n if ((BUILD15.hydrateClientSide || BUILD15.hydrateServerSide) && typeof propValue === \"string\" && propValue.startsWith(SERIALIZED_PREFIX)) {\n propValue = deserializeProperty(propValue);\n return propValue;\n }\n if (propValue != null && !isComplexType(propValue)) {\n if (BUILD15.propBoolean && propType & 4 /* Boolean */) {\n if (BUILD15.formAssociated && isFormAssociated && typeof propValue === \"string\") {\n return propValue === \"\" || !!propValue;\n } else {\n return propValue === \"false\" ? false : propValue === \"\" || !!propValue;\n }\n }\n if (BUILD15.propNumber && propType & 2 /* Number */) {\n return typeof propValue === \"string\" ? parseFloat(propValue) : typeof propValue === \"number\" ? propValue : NaN;\n }\n if (BUILD15.propString && propType & 1 /* String */) {\n return String(propValue);\n }\n return propValue;\n }\n return propValue;\n};\n\n// src/runtime/update-component.ts\nimport { BUILD as BUILD21, NAMESPACE } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/event-emitter.ts\nimport { BUILD as BUILD17 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/element.ts\nimport { BUILD as BUILD16 } from \"@stencil/core/internal/app-data\";\nvar getElement = (ref) => {\n var _a;\n return BUILD16.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;\n};\n\n// src/runtime/event-emitter.ts\nvar createEvent = (ref, name, flags) => {\n const elm = getElement(ref);\n return {\n emit: (detail) => {\n if (BUILD17.isDev && !elm.isConnected) {\n consoleDevWarn(`The \"${name}\" event was emitted, but the dispatcher node is no longer connected to the dom.`);\n }\n return emitEvent(elm, name, {\n bubbles: !!(flags & 4 /* Bubbles */),\n composed: !!(flags & 2 /* Composed */),\n cancelable: !!(flags & 1 /* Cancellable */),\n detail\n });\n }\n };\n};\nvar emitEvent = (elm, name, opts) => {\n const ev = plt.ce(name, opts);\n elm.dispatchEvent(ev);\n return ev;\n};\n\n// src/runtime/vdom/vdom-render.ts\nimport { BUILD as BUILD20 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/vdom/update-element.ts\nimport { BUILD as BUILD19 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/vdom/set-accessor.ts\nimport { BUILD as BUILD18 } from \"@stencil/core/internal/app-data\";\nvar setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {\n if (oldValue === newValue) {\n return;\n }\n let isProp = isMemberInElement(elm, memberName);\n let ln = memberName.toLowerCase();\n if (BUILD18.vdomClass && memberName === \"class\") {\n const classList = elm.classList;\n const oldClasses = parseClassList(oldValue);\n let newClasses = parseClassList(newValue);\n if (BUILD18.hydrateClientSide && (elm[\"s-si\"] || elm[\"s-sc\"]) && initialRender) {\n const scopeId2 = elm[\"s-sc\"] || elm[\"s-si\"];\n newClasses.push(scopeId2);\n oldClasses.forEach((c) => {\n if (c.startsWith(scopeId2)) newClasses.push(c);\n });\n newClasses = [...new Set(newClasses)].filter((c) => c);\n classList.add(...newClasses);\n } else {\n let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));\n if (BUILD18.hydrateClientSide && initialRender && !(flags & 4 /* isHost */)) {\n const ownClasses = getOwnHostClasses(elm);\n removedClasses = removedClasses.filter((c) => !ownClasses.includes(c));\n }\n classList.remove(...removedClasses);\n classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));\n }\n } else if (BUILD18.vdomStyle && memberName === \"style\") {\n if (BUILD18.updatable) {\n for (const prop in oldValue) {\n if (!newValue || newValue[prop] == null) {\n if (!BUILD18.hydrateServerSide && prop.includes(\"-\")) {\n elm.style.removeProperty(prop);\n } else {\n elm.style[prop] = \"\";\n }\n }\n }\n }\n for (const prop in newValue) {\n if (!oldValue || newValue[prop] !== oldValue[prop]) {\n if (!BUILD18.hydrateServerSide && prop.includes(\"-\")) {\n elm.style.setProperty(prop, newValue[prop]);\n } else {\n elm.style[prop] = newValue[prop];\n }\n }\n }\n } else if (BUILD18.vdomKey && memberName === \"key\") {\n } else if (BUILD18.vdomRef && memberName === \"ref\") {\n if (newValue) {\n queueRefAttachment(newValue, elm);\n }\n } else if (BUILD18.vdomListener && (BUILD18.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === \"o\" && memberName[1] === \"n\") {\n if (memberName[2] === \"-\") {\n memberName = memberName.slice(3);\n } else if (isMemberInElement(win, ln)) {\n memberName = ln.slice(2);\n } else {\n memberName = ln[2] + memberName.slice(3);\n }\n if (oldValue || newValue) {\n const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);\n memberName = memberName.replace(CAPTURE_EVENT_REGEX, \"\");\n if (oldValue) {\n plt.rel(elm, memberName, oldValue, capture);\n }\n if (newValue) {\n plt.ael(elm, memberName, newValue, capture);\n }\n }\n } else if (BUILD18.vdomPropOrAttr && memberName[0] === \"a\" && memberName.startsWith(\"attr:\")) {\n const propName = memberName.slice(5);\n let attrName;\n if (BUILD18.member) {\n const hostRef = getHostRef(elm);\n if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {\n const memberMeta = hostRef.$cmpMeta$.$members$[propName];\n if (memberMeta && memberMeta[1]) {\n attrName = memberMeta[1];\n }\n }\n }\n if (!attrName) {\n attrName = propName.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n }\n if (newValue == null || newValue === false) {\n if (newValue !== false || elm.getAttribute(attrName) === \"\") {\n elm.removeAttribute(attrName);\n }\n } else {\n elm.setAttribute(attrName, newValue === true ? \"\" : newValue);\n }\n return;\n } else if (BUILD18.vdomPropOrAttr && memberName[0] === \"p\" && memberName.startsWith(\"prop:\")) {\n const propName = memberName.slice(5);\n try {\n elm[propName] = newValue;\n } catch (e) {\n }\n return;\n } else if (BUILD18.vdomPropOrAttr) {\n const isComplex = isComplexType(newValue);\n if ((isProp || isComplex && newValue !== null) && !isSvg) {\n try {\n if (!elm.tagName.includes(\"-\")) {\n const n = newValue == null ? \"\" : newValue;\n if (memberName === \"list\") {\n isProp = false;\n } else if (oldValue == null || elm[memberName] !== n) {\n if (typeof elm.__lookupSetter__(memberName) === \"function\") {\n elm[memberName] = n;\n } else {\n elm.setAttribute(memberName, n);\n }\n }\n } else if (elm[memberName] !== newValue) {\n elm[memberName] = newValue;\n }\n } catch (e) {\n }\n }\n let xlink = false;\n if (BUILD18.vdomXlink) {\n if (ln !== (ln = ln.replace(/^xlink\\:?/, \"\"))) {\n memberName = ln;\n xlink = true;\n }\n }\n if (newValue == null || newValue === false) {\n if (newValue !== false || elm.getAttribute(memberName) === \"\" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {\n if (BUILD18.vdomXlink && xlink) {\n elm.removeAttributeNS(XLINK_NS, memberName);\n } else {\n elm.removeAttribute(memberName);\n }\n }\n } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {\n newValue = newValue === true ? \"\" : newValue;\n if (BUILD18.vdomXlink && xlink) {\n elm.setAttributeNS(XLINK_NS, memberName, newValue);\n } else {\n elm.setAttribute(memberName, newValue);\n }\n }\n }\n};\nvar ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set([\"draggable\", \"contenteditable\", \"spellcheck\"]);\nvar isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith(\"aria-\");\nvar parseClassListRegex = /\\s/;\nvar getOwnHostClasses = (elm) => {\n var _a, _b, _c;\n const hostRef = getHostRef(elm);\n if (!hostRef || !(hostRef.$flags$ & 2 /* hasRendered */)) {\n return [];\n }\n const ownClasses = parseClassList((_b = (_a = hostRef.$vnode$) == null ? void 0 : _a.$attrs$) == null ? void 0 : _b.class);\n if (BUILD18.hydratedClass) {\n ownClasses.push((_c = BUILD18.hydratedSelectorName) != null ? _c : \"hydrated\");\n }\n return ownClasses;\n};\nvar parseClassList = (value) => {\n if (typeof value === \"object\" && value && \"baseVal\" in value) {\n value = value.baseVal;\n }\n if (!value || typeof value !== \"string\") {\n return [];\n }\n return value.split(parseClassListRegex);\n};\nvar CAPTURE_EVENT_SUFFIX = \"Capture\";\nvar CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + \"$\");\n\n// src/runtime/vdom/update-element.ts\nvar updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {\n const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;\n const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};\n const newVnodeAttrs = newVnode.$attrs$ || {};\n if (BUILD19.updatable) {\n for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {\n if (!(memberName in newVnodeAttrs)) {\n setAccessor(\n elm,\n memberName,\n oldVnodeAttrs[memberName],\n void 0,\n isSvgMode2,\n newVnode.$flags$,\n isInitialRender\n );\n }\n }\n }\n for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {\n setAccessor(\n elm,\n memberName,\n oldVnodeAttrs[memberName],\n newVnodeAttrs[memberName],\n isSvgMode2,\n newVnode.$flags$,\n isInitialRender\n );\n }\n};\nfunction sortedAttrNames(attrNames) {\n return attrNames.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...attrNames.filter((attr) => attr !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n attrNames\n );\n}\n\n// src/runtime/vdom/vdom-render.ts\nvar scopeId;\nvar contentRef;\nvar hostTagName;\nvar useNativeShadowDom = false;\nvar checkSlotFallbackVisibility = false;\nvar checkSlotRelocate = false;\nvar isSvgMode = false;\nvar refCallbacksToRemove = [];\nvar refCallbacksToAttach = [];\nvar createElm = (oldParentVNode, newParentVNode, childIndex) => {\n var _a;\n const newVNode2 = newParentVNode.$children$[childIndex];\n let i2 = 0;\n let elm;\n let childNode;\n let oldVNode;\n if (BUILD20.slotRelocation && !useNativeShadowDom) {\n checkSlotRelocate = true;\n if (newVNode2.$tag$ === \"slot\") {\n newVNode2.$flags$ |= newVNode2.$children$ ? (\n // slot element has fallback content\n // still create an element that \"mocks\" the slot element\n 2 /* isSlotFallback */\n ) : (\n // slot element does not have fallback content\n // create an html comment we'll use to always reference\n // where actual slot content should sit next to\n 1 /* isSlotReference */\n );\n }\n }\n if (BUILD20.isDev && newVNode2.$elm$) {\n consoleDevError(\n `The JSX ${newVNode2.$text$ !== null ? `\"${newVNode2.$text$}\" text` : `\"${newVNode2.$tag$}\" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`\n );\n }\n if (BUILD20.vdomText && newVNode2.$text$ != null) {\n elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);\n } else if (BUILD20.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {\n elm = newVNode2.$elm$ = BUILD20.isDebug || BUILD20.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode(\"\");\n if (BUILD20.vdomAttribute) {\n updateElement(null, newVNode2, isSvgMode);\n }\n } else {\n if (BUILD20.svg && !isSvgMode) {\n isSvgMode = newVNode2.$tag$ === \"svg\";\n }\n if (!win.document) {\n throw new Error(\"You are trying to render a Stencil component in an environment that doesn't support the DOM.\");\n }\n elm = newVNode2.$elm$ = BUILD20.svg ? win.document.createElementNS(\n isSvgMode ? SVG_NS : HTML_NS,\n !useNativeShadowDom && BUILD20.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? \"slot-fb\" : newVNode2.$tag$\n ) : win.document.createElement(\n !useNativeShadowDom && BUILD20.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? \"slot-fb\" : newVNode2.$tag$\n );\n if (BUILD20.svg && isSvgMode && newVNode2.$tag$ === \"foreignObject\") {\n isSvgMode = false;\n }\n if (BUILD20.vdomAttribute) {\n updateElement(null, newVNode2, isSvgMode);\n }\n if ((BUILD20.scoped || BUILD20.hydrateServerSide && 128 /* shadowNeedsScopedCss */) && isDef(scopeId) && elm[\"s-si\"] !== scopeId) {\n elm.classList.add(elm[\"s-si\"] = scopeId);\n }\n if (newVNode2.$children$) {\n const appendTarget = newVNode2.$tag$ === \"template\" ? elm.content : elm;\n for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {\n childNode = createElm(oldParentVNode, newVNode2, i2);\n if (childNode) {\n appendTarget.appendChild(childNode);\n }\n }\n }\n if (BUILD20.svg) {\n if (newVNode2.$tag$ === \"svg\") {\n isSvgMode = false;\n } else if (elm.tagName === \"foreignObject\") {\n isSvgMode = true;\n }\n }\n }\n elm[\"s-hn\"] = hostTagName;\n if (BUILD20.slotRelocation) {\n if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {\n elm[\"s-sr\"] = true;\n elm[\"s-cr\"] = contentRef;\n elm[\"s-sn\"] = newVNode2.$name$ || \"\";\n elm[\"s-rf\"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;\n patchSlotNode(elm);\n oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];\n if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {\n relocateToHostRoot(oldParentVNode.$elm$);\n }\n if (BUILD20.scoped || BUILD20.hydrateServerSide && 128 /* shadowNeedsScopedCss */) {\n addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);\n }\n }\n }\n return elm;\n};\nvar relocateToHostRoot = (parentElm) => {\n plt.$flags$ |= 1 /* isTmpDisconnected */;\n const host = parentElm.closest(hostTagName.toLowerCase());\n if (host != null) {\n const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(\n (ref) => ref[\"s-cr\"]\n );\n const childNodeArray = Array.from(\n parentElm.__childNodes || parentElm.childNodes\n );\n for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {\n if (childNode[\"s-sh\"] != null) {\n insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);\n childNode[\"s-sh\"] = void 0;\n checkSlotRelocate = true;\n }\n }\n }\n plt.$flags$ &= ~1 /* isTmpDisconnected */;\n};\nvar putBackInOriginalLocation = (parentElm, recursive) => {\n plt.$flags$ |= 1 /* isTmpDisconnected */;\n const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);\n if (parentElm[\"s-sr\"]) {\n let node = parentElm;\n while (node = node.nextSibling) {\n if (node && node[\"s-sn\"] === parentElm[\"s-sn\"] && node[\"s-sh\"] === hostTagName) {\n oldSlotChildNodes.push(node);\n }\n }\n }\n for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {\n const childNode = oldSlotChildNodes[i2];\n if (childNode[\"s-hn\"] !== hostTagName && childNode[\"s-ol\"]) {\n insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));\n childNode[\"s-ol\"].remove();\n childNode[\"s-ol\"] = void 0;\n childNode[\"s-sh\"] = void 0;\n checkSlotRelocate = true;\n }\n if (recursive) {\n putBackInOriginalLocation(childNode, recursive);\n }\n }\n plt.$flags$ &= ~1 /* isTmpDisconnected */;\n};\nvar addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {\n let containerElm = BUILD20.slotRelocation && parentElm[\"s-cr\"] && parentElm[\"s-cr\"].parentNode || parentElm;\n let childNode;\n if (BUILD20.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {\n containerElm = containerElm.shadowRoot;\n }\n if (parentVNode.$tag$ === \"template\") {\n containerElm = containerElm.content;\n }\n for (; startIdx <= endIdx; ++startIdx) {\n if (vnodes[startIdx]) {\n childNode = createElm(null, parentVNode, startIdx);\n if (childNode) {\n vnodes[startIdx].$elm$ = childNode;\n insertBefore(containerElm, childNode, BUILD20.slotRelocation ? referenceNode(before) : before);\n }\n }\n }\n};\nvar removeVnodes = (vnodes, startIdx, endIdx) => {\n for (let index = startIdx; index <= endIdx; ++index) {\n const vnode = vnodes[index];\n if (vnode) {\n const elm = vnode.$elm$;\n nullifyVNodeRefs(vnode);\n if (elm) {\n if (BUILD20.slotRelocation) {\n checkSlotFallbackVisibility = true;\n if (elm[\"s-ol\"]) {\n elm[\"s-ol\"].remove();\n } else {\n putBackInOriginalLocation(elm, true);\n }\n }\n elm.remove();\n }\n }\n }\n};\nvar updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {\n let oldStartIdx = 0;\n let newStartIdx = 0;\n let idxInOld = 0;\n let i2 = 0;\n let oldEndIdx = oldCh.length - 1;\n let oldStartVnode = oldCh[0];\n let oldEndVnode = oldCh[oldEndIdx];\n let newEndIdx = newCh.length - 1;\n let newStartVnode = newCh[0];\n let newEndVnode = newCh[newEndIdx];\n let node;\n let elmToMove;\n const containerElm = newVNode2.$tag$ === \"template\" ? parentElm.content : parentElm;\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n if (oldStartVnode == null) {\n oldStartVnode = oldCh[++oldStartIdx];\n } else if (oldEndVnode == null) {\n oldEndVnode = oldCh[--oldEndIdx];\n } else if (newStartVnode == null) {\n newStartVnode = newCh[++newStartIdx];\n } else if (newEndVnode == null) {\n newEndVnode = newCh[--newEndIdx];\n } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {\n patch(oldStartVnode, newStartVnode, isInitialRender);\n oldStartVnode = oldCh[++oldStartIdx];\n newStartVnode = newCh[++newStartIdx];\n } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {\n patch(oldEndVnode, newEndVnode, isInitialRender);\n oldEndVnode = oldCh[--oldEndIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {\n if (BUILD20.slotRelocation && (oldStartVnode.$tag$ === \"slot\" || newEndVnode.$tag$ === \"slot\")) {\n putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);\n }\n patch(oldStartVnode, newEndVnode, isInitialRender);\n insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);\n oldStartVnode = oldCh[++oldStartIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {\n if (BUILD20.slotRelocation && (oldStartVnode.$tag$ === \"slot\" || newEndVnode.$tag$ === \"slot\")) {\n putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);\n }\n patch(oldEndVnode, newStartVnode, isInitialRender);\n insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);\n oldEndVnode = oldCh[--oldEndIdx];\n newStartVnode = newCh[++newStartIdx];\n } else {\n idxInOld = -1;\n if (BUILD20.vdomKey) {\n for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {\n if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {\n idxInOld = i2;\n break;\n }\n }\n }\n if (BUILD20.vdomKey && idxInOld >= 0) {\n elmToMove = oldCh[idxInOld];\n if (elmToMove.$tag$ !== newStartVnode.$tag$) {\n node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);\n } else {\n patch(elmToMove, newStartVnode, isInitialRender);\n oldCh[idxInOld] = void 0;\n node = elmToMove.$elm$;\n }\n newStartVnode = newCh[++newStartIdx];\n } else {\n node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);\n newStartVnode = newCh[++newStartIdx];\n }\n if (node) {\n if (BUILD20.slotRelocation) {\n insertBefore(\n referenceNode(oldStartVnode.$elm$).parentNode,\n node,\n referenceNode(oldStartVnode.$elm$)\n );\n } else {\n insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);\n }\n }\n }\n }\n if (oldStartIdx > oldEndIdx) {\n addVnodes(\n parentElm,\n newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,\n newVNode2,\n newCh,\n newStartIdx,\n newEndIdx\n );\n } else if (BUILD20.updatable && newStartIdx > newEndIdx) {\n removeVnodes(oldCh, oldStartIdx, oldEndIdx);\n }\n};\nvar isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {\n if (leftVNode.$tag$ === rightVNode.$tag$) {\n if (BUILD20.slotRelocation && leftVNode.$tag$ === \"slot\") {\n return leftVNode.$name$ === rightVNode.$name$;\n }\n if (BUILD20.vdomKey && !isInitialRender) {\n return leftVNode.$key$ === rightVNode.$key$;\n }\n if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {\n leftVNode.$key$ = rightVNode.$key$;\n }\n return true;\n }\n return false;\n};\nvar referenceNode = (node) => node && node[\"s-ol\"] || node;\nvar patch = (oldVNode, newVNode2, isInitialRender = false) => {\n const elm = newVNode2.$elm$ = oldVNode.$elm$;\n const oldChildren = oldVNode.$children$;\n const newChildren = newVNode2.$children$;\n const tag = newVNode2.$tag$;\n const text = newVNode2.$text$;\n let defaultHolder;\n if (!BUILD20.vdomText || text == null) {\n if (BUILD20.svg) {\n isSvgMode = tag === \"svg\" ? true : tag === \"foreignObject\" ? false : isSvgMode;\n }\n if (BUILD20.vdomAttribute || BUILD20.reflect) {\n if (BUILD20.slot && tag === \"slot\" && !useNativeShadowDom) {\n if (oldVNode.$name$ !== newVNode2.$name$) {\n newVNode2.$elm$[\"s-sn\"] = newVNode2.$name$ || \"\";\n relocateToHostRoot(newVNode2.$elm$.parentElement);\n }\n }\n updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);\n }\n if (BUILD20.updatable && oldChildren !== null && newChildren !== null) {\n updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);\n } else if (newChildren !== null) {\n if (BUILD20.updatable && BUILD20.vdomText && oldVNode.$text$ !== null) {\n elm.textContent = \"\";\n }\n addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);\n } else if (\n // don't do this on initial render as it can cause non-hydrated content to be removed\n !isInitialRender && BUILD20.updatable && oldChildren !== null\n ) {\n removeVnodes(oldChildren, 0, oldChildren.length - 1);\n } else if (BUILD20.hydrateClientSide && isInitialRender && BUILD20.updatable && oldChildren !== null && newChildren === null) {\n newVNode2.$children$ = oldChildren;\n }\n if (BUILD20.svg && isSvgMode && tag === \"svg\") {\n isSvgMode = false;\n }\n } else if (BUILD20.vdomText && BUILD20.slotRelocation && (defaultHolder = elm[\"s-cr\"])) {\n defaultHolder.parentNode.textContent = text;\n } else if (BUILD20.vdomText && oldVNode.$text$ !== text) {\n elm.data = text;\n }\n};\nvar relocateNodes = [];\nvar markSlotContentForRelocation = (elm) => {\n let node;\n let hostContentNodes;\n let j;\n const children = elm.__childNodes || elm.childNodes;\n for (const childNode of children) {\n if (childNode[\"s-sr\"] && (node = childNode[\"s-cr\"]) && node.parentNode) {\n hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;\n const slotName = childNode[\"s-sn\"];\n for (j = hostContentNodes.length - 1; j >= 0; j--) {\n node = hostContentNodes[j];\n if (!node[\"s-cn\"] && !node[\"s-nr\"] && node[\"s-hn\"] !== childNode[\"s-hn\"] && // let an exact named-slot match override a stale default-slot claim. Skip this for\n // `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which\n // would trivially \"match\" on every re-render and force pointless re-insertion.\n (!node[\"s-sh\"] || node[\"s-sh\"] !== childNode[\"s-hn\"] || slotName !== \"\" && getSlotName(node) === slotName)) {\n if (isNodeLocatedInSlot(node, slotName)) {\n let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);\n checkSlotFallbackVisibility = true;\n node[\"s-sn\"] = node[\"s-sn\"] || slotName;\n if (relocateNodeData) {\n relocateNodeData.$nodeToRelocate$[\"s-sh\"] = childNode[\"s-hn\"];\n relocateNodeData.$slotRefNode$ = childNode;\n } else {\n node[\"s-sh\"] = childNode[\"s-hn\"];\n relocateNodes.push({\n $slotRefNode$: childNode,\n $nodeToRelocate$: node\n });\n }\n if (node[\"s-sr\"]) {\n relocateNodes.map((relocateNode) => {\n if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node[\"s-sn\"])) {\n relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);\n if (relocateNodeData && !relocateNode.$slotRefNode$) {\n relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;\n }\n }\n });\n }\n } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {\n relocateNodes.push({\n $nodeToRelocate$: node\n });\n }\n }\n }\n }\n if (childNode.nodeType === 1 /* ElementNode */) {\n markSlotContentForRelocation(childNode);\n }\n }\n};\nvar nullifyVNodeRefs = (vNode) => {\n if (BUILD20.vdomRef) {\n if (vNode.$attrs$ && vNode.$attrs$.ref) {\n refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));\n }\n vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);\n }\n};\nvar queueRefAttachment = (refCallback, elm) => {\n if (BUILD20.vdomRef) {\n refCallbacksToAttach.push(() => refCallback(elm));\n }\n};\nvar flushQueuedRefCallbacks = () => {\n if (BUILD20.vdomRef) {\n refCallbacksToRemove.forEach((cb) => cb());\n refCallbacksToRemove.length = 0;\n refCallbacksToAttach.forEach((cb) => cb());\n refCallbacksToAttach.length = 0;\n }\n};\nvar insertBefore = (parent, newNode, reference, isInitialLoad) => {\n if (BUILD20.slotRelocation) {\n if (BUILD20.scoped && typeof newNode[\"s-sn\"] === \"string\" && !!newNode[\"s-sr\"] && !!newNode[\"s-cr\"]) {\n addRemoveSlotScopedClass(newNode[\"s-cr\"], newNode, parent, newNode.parentElement);\n } else if (typeof newNode[\"s-sn\"] === \"string\") {\n if (BUILD20.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {\n patchParentNode(newNode);\n }\n parent.insertBefore(newNode, reference);\n const { slotNode } = findSlotFromSlottedNode(newNode);\n if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);\n return newNode;\n }\n }\n if (BUILD20.slotRelocation && (parent == null ? void 0 : parent.__insertBefore)) {\n return parent.__insertBefore(newNode, reference);\n } else {\n return parent == null ? void 0 : parent.insertBefore(newNode, reference);\n }\n};\nfunction addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {\n var _a, _b;\n let scopeId2;\n if (reference && typeof slotNode[\"s-sn\"] === \"string\" && !!slotNode[\"s-sr\"] && reference.parentNode && reference.parentNode[\"s-sc\"] && (scopeId2 = slotNode[\"s-si\"] || reference.parentNode[\"s-sc\"])) {\n const scopeName = slotNode[\"s-sn\"];\n const hostName = slotNode[\"s-hn\"];\n (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + \"-s\");\n if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + \"-s\"))) {\n let child = (oldParent.__childNodes || oldParent.childNodes)[0];\n let found = false;\n while (child) {\n if (child[\"s-sn\"] !== scopeName && child[\"s-hn\"] === hostName && !!child[\"s-sr\"]) {\n found = true;\n break;\n }\n child = child.nextSibling;\n }\n if (!found) oldParent.classList.remove(scopeId2 + \"-s\");\n }\n }\n}\nvar renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {\n var _a, _b, _c, _d, _e;\n const hostElm = hostRef.$hostElement$;\n const cmpMeta = hostRef.$cmpMeta$;\n const oldVNode = hostRef.$vnode$ || newVNode(null, null);\n const isHostElement = isHost(renderFnResults);\n const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);\n hostTagName = hostElm.tagName;\n if (BUILD20.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {\n throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of \"${hostTagName.toLowerCase()}\" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);\n }\n if (BUILD20.reflect && cmpMeta.$attrsToReflect$) {\n rootVnode.$attrs$ = rootVnode.$attrs$ || {};\n cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {\n if (BUILD20.serializer && hostRef.$serializerValues$.has(propName)) {\n rootVnode.$attrs$[attribute] = hostRef.$serializerValues$.get(propName);\n } else {\n rootVnode.$attrs$[attribute] = hostElm[propName];\n }\n });\n }\n if (isInitialLoad && rootVnode.$attrs$) {\n for (const key of Object.keys(rootVnode.$attrs$)) {\n if (hostElm.hasAttribute(key) && ![\"key\", \"ref\", \"style\", \"class\"].includes(key)) {\n rootVnode.$attrs$[key] = hostElm[key];\n }\n }\n }\n rootVnode.$tag$ = null;\n rootVnode.$flags$ |= 4 /* isHost */;\n hostRef.$vnode$ = rootVnode;\n rootVnode.$elm$ = oldVNode.$elm$ = BUILD20.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;\n if (BUILD20.scoped || BUILD20.shadowDom) {\n scopeId = hostElm[\"s-sc\"];\n }\n useNativeShadowDom = supportsShadow && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);\n if (BUILD20.slotRelocation) {\n contentRef = hostElm[\"s-cr\"];\n checkSlotFallbackVisibility = false;\n }\n patch(oldVNode, rootVnode, isInitialLoad);\n if (BUILD20.slotRelocation) {\n plt.$flags$ |= 1 /* isTmpDisconnected */;\n if (checkSlotRelocate) {\n markSlotContentForRelocation(rootVnode.$elm$);\n for (const relocateData of relocateNodes) {\n const nodeToRelocate = relocateData.$nodeToRelocate$;\n if (!nodeToRelocate[\"s-ol\"] && win.document) {\n const orgLocationNode = BUILD20.isDebug || BUILD20.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : win.document.createTextNode(\"\");\n orgLocationNode[\"s-nr\"] = nodeToRelocate;\n insertBefore(\n nodeToRelocate.parentNode,\n nodeToRelocate[\"s-ol\"] = orgLocationNode,\n nodeToRelocate,\n isInitialLoad\n );\n }\n }\n for (const relocateData of relocateNodes) {\n const nodeToRelocate = relocateData.$nodeToRelocate$;\n const slotRefNode = relocateData.$slotRefNode$;\n if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {\n nodeToRelocate[\"s-ih\"] = (_a = nodeToRelocate.hidden) != null ? _a : false;\n }\n if (slotRefNode) {\n const parentNodeRef = slotRefNode.parentNode;\n let insertBeforeNode = slotRefNode.nextSibling;\n if (!BUILD20.hydrateServerSide && insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {\n let orgLocationNode = (_b = nodeToRelocate[\"s-ol\"]) == null ? void 0 : _b.previousSibling;\n while (orgLocationNode) {\n let refNode = (_c = orgLocationNode[\"s-nr\"]) != null ? _c : null;\n if (refNode && refNode[\"s-sn\"] === nodeToRelocate[\"s-sn\"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {\n refNode = refNode.nextSibling;\n while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode[\"s-sr\"])) {\n refNode = refNode == null ? void 0 : refNode.nextSibling;\n }\n if (!refNode || !refNode[\"s-nr\"]) {\n insertBeforeNode = refNode;\n break;\n }\n }\n orgLocationNode = orgLocationNode.previousSibling;\n }\n }\n const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;\n const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;\n if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {\n if (nodeToRelocate !== insertBeforeNode) {\n insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);\n if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith(\"s-nt-\")) {\n const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, \"\"));\n textNode[\"s-hn\"] = nodeToRelocate[\"s-hn\"];\n textNode[\"s-sn\"] = nodeToRelocate[\"s-sn\"];\n textNode[\"s-sh\"] = nodeToRelocate[\"s-sh\"];\n textNode[\"s-sr\"] = nodeToRelocate[\"s-sr\"];\n textNode[\"s-ol\"] = nodeToRelocate[\"s-ol\"];\n textNode[\"s-ol\"][\"s-nr\"] = textNode;\n insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);\n nodeToRelocate.parentNode.removeChild(nodeToRelocate);\n }\n if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== \"SLOT-FB\") {\n nodeToRelocate.hidden = (_d = nodeToRelocate[\"s-ih\"]) != null ? _d : false;\n }\n }\n }\n nodeToRelocate && typeof slotRefNode[\"s-rf\"] === \"function\" && slotRefNode[\"s-rf\"](slotRefNode);\n } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {\n nodeToRelocate.hidden = true;\n }\n }\n }\n if (checkSlotFallbackVisibility) {\n updateFallbackSlotVisibility(rootVnode.$elm$);\n }\n plt.$flags$ &= ~1 /* isTmpDisconnected */;\n relocateNodes.length = 0;\n }\n if (BUILD20.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm[\"s-cr\"]) {\n const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;\n for (const childNode of children) {\n if (childNode[\"s-hn\"] !== hostTagName && !childNode[\"s-sh\"]) {\n if (isInitialLoad && childNode[\"s-ih\"] == null) {\n childNode[\"s-ih\"] = (_e = childNode.hidden) != null ? _e : false;\n }\n if (childNode.nodeType === 1 /* ElementNode */) {\n childNode.hidden = true;\n } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {\n const textCommentNode = win.document.createComment(\"s-nt-\" + childNode.nodeValue);\n textCommentNode[\"s-sn\"] = childNode[\"s-sn\"];\n insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);\n childNode.parentNode.removeChild(childNode);\n }\n }\n }\n }\n contentRef = void 0;\n flushQueuedRefCallbacks();\n};\nvar slotReferenceDebugNode = (slotVNode) => {\n var _a;\n return (_a = win.document) == null ? void 0 : _a.createComment(\n `<slot${slotVNode.$name$ ? ' name=\"' + slotVNode.$name$ + '\"' : \"\"}> (host=${hostTagName.toLowerCase()})`\n );\n};\nvar originalLocationDebugNode = (nodeToRelocate) => {\n var _a;\n return (_a = win.document) == null ? void 0 : _a.createComment(\n `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate[\"s-hn\"]})` : `[${nodeToRelocate.textContent}]`)\n );\n};\n\n// src/runtime/update-component.ts\nvar attachToAncestor = (hostRef, ancestorComponent) => {\n if (BUILD21.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent[\"s-p\"]) {\n const index = ancestorComponent[\"s-p\"].push(\n new Promise(\n (r) => hostRef.$onRenderResolve$ = () => {\n ancestorComponent[\"s-p\"].splice(index - 1, 1);\n r();\n }\n )\n );\n }\n};\nvar scheduleUpdate = (hostRef, isInitialLoad) => {\n if (BUILD21.updatable) {\n hostRef.$flags$ |= 16 /* isQueuedForUpdate */;\n }\n if (BUILD21.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {\n hostRef.$flags$ |= 512 /* needsRerender */;\n return;\n }\n attachToAncestor(hostRef, hostRef.$ancestorComponent$);\n const dispatch = () => dispatchHooks(hostRef, isInitialLoad);\n if (isInitialLoad) {\n queueMicrotask(() => {\n dispatch();\n });\n return;\n }\n return BUILD21.taskQueue ? writeTask(dispatch) : dispatch();\n};\nvar dispatchHooks = (hostRef, isInitialLoad) => {\n const elm = hostRef.$hostElement$;\n const endSchedule = createTime(\"scheduleUpdate\", hostRef.$cmpMeta$.$tagName$);\n const instance = BUILD21.lazyLoad ? hostRef.$lazyInstance$ : elm;\n if (!instance) {\n throw new Error(\n `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`\n );\n }\n let maybePromise;\n if (isInitialLoad) {\n if (BUILD21.lazyLoad) {\n if (BUILD21.slotRelocation && hostRef.$deferredConnectedCallback$) {\n hostRef.$deferredConnectedCallback$ = false;\n safeCall(instance, \"connectedCallback\", void 0, elm);\n }\n if (BUILD21.hostListener) {\n hostRef.$flags$ |= 256 /* isListenReady */;\n if (hostRef.$queuedListeners$) {\n hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));\n hostRef.$queuedListeners$ = void 0;\n }\n }\n if (hostRef.$fetchedCbList$.length) {\n hostRef.$fetchedCbList$.forEach((cb) => cb(elm));\n }\n }\n emitLifecycleEvent(elm, \"componentWillLoad\");\n maybePromise = safeCall(instance, \"componentWillLoad\", void 0, elm);\n } else {\n emitLifecycleEvent(elm, \"componentWillUpdate\");\n maybePromise = safeCall(instance, \"componentWillUpdate\", void 0, elm);\n }\n emitLifecycleEvent(elm, \"componentWillRender\");\n maybePromise = enqueue(maybePromise, () => safeCall(instance, \"componentWillRender\", void 0, elm));\n endSchedule();\n return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));\n};\nvar enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {\n console.error(err);\n fn();\n}) : fn();\nvar isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === \"function\";\nvar updateComponent = async (hostRef, instance, isInitialLoad) => {\n var _a;\n const elm = hostRef.$hostElement$;\n const endUpdate = createTime(\"update\", hostRef.$cmpMeta$.$tagName$);\n const rc = elm[\"s-rc\"];\n if (BUILD21.style && isInitialLoad) {\n attachStyles(hostRef);\n }\n const endRender = createTime(\"render\", hostRef.$cmpMeta$.$tagName$);\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 2048 /* devOnRender */;\n }\n if (BUILD21.hydrateServerSide) {\n await callRender(hostRef, instance, elm, isInitialLoad);\n } else {\n callRender(hostRef, instance, elm, isInitialLoad);\n }\n if (BUILD21.isDev) {\n hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;\n hostRef.$flags$ &= ~2048 /* devOnRender */;\n }\n if (BUILD21.hydrateServerSide) {\n try {\n serverSideConnected(elm);\n if (isInitialLoad) {\n if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {\n elm[\"s-en\"] = \"\";\n } else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {\n elm[\"s-en\"] = \"c\";\n }\n }\n } catch (e) {\n consoleError(e, elm);\n }\n }\n if (BUILD21.asyncLoading && rc) {\n rc.map((cb) => cb());\n elm[\"s-rc\"] = void 0;\n }\n endRender();\n endUpdate();\n if (BUILD21.asyncLoading) {\n const childrenPromises = (_a = elm[\"s-p\"]) != null ? _a : [];\n const postUpdate = () => postUpdateComponent(hostRef);\n if (childrenPromises.length === 0) {\n postUpdate();\n } else {\n Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);\n hostRef.$flags$ |= 4 /* isWaitingForChildren */;\n childrenPromises.length = 0;\n }\n } else {\n postUpdateComponent(hostRef);\n }\n};\nvar renderingRef = null;\nvar callRender = (hostRef, instance, elm, isInitialLoad) => {\n const allRenderFn = BUILD21.allRenderFn ? true : false;\n const lazyLoad = BUILD21.lazyLoad ? true : false;\n const updatable = BUILD21.updatable ? true : false;\n try {\n renderingRef = instance;\n instance = allRenderFn ? instance.render() : instance.render && instance.render();\n if (updatable) {\n hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;\n }\n if (updatable || lazyLoad) {\n hostRef.$flags$ |= 2 /* hasRendered */;\n }\n if (BUILD21.hasRenderFn || BUILD21.reflect) {\n if (BUILD21.vdomRender || BUILD21.reflect) {\n if (BUILD21.hydrateServerSide) {\n return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));\n } else {\n renderVdom(hostRef, instance, isInitialLoad);\n }\n } else {\n const shadowRoot = elm.shadowRoot;\n if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {\n shadowRoot.textContent = instance;\n } else {\n elm.textContent = instance;\n }\n }\n }\n } catch (e) {\n consoleError(e, hostRef.$hostElement$);\n }\n renderingRef = null;\n return null;\n};\nvar getRenderingRef = () => renderingRef;\nvar postUpdateComponent = (hostRef) => {\n const tagName = hostRef.$cmpMeta$.$tagName$;\n const elm = hostRef.$hostElement$;\n const endPostUpdate = createTime(\"postUpdate\", tagName);\n const instance = BUILD21.lazyLoad ? hostRef.$lazyInstance$ : elm;\n const ancestorComponent = hostRef.$ancestorComponent$;\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 2048 /* devOnRender */;\n }\n safeCall(instance, \"componentDidRender\", void 0, elm);\n if (BUILD21.isDev) {\n hostRef.$flags$ &= ~2048 /* devOnRender */;\n }\n emitLifecycleEvent(elm, \"componentDidRender\");\n if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {\n hostRef.$flags$ |= 64 /* hasLoadedComponent */;\n if (BUILD21.asyncLoading && BUILD21.cssAnnotations) {\n addHydratedFlag(elm);\n }\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 4096 /* devOnDidLoad */;\n }\n safeCall(instance, \"componentDidLoad\", void 0, elm);\n if (BUILD21.isDev) {\n hostRef.$flags$ &= ~4096 /* devOnDidLoad */;\n }\n emitLifecycleEvent(elm, \"componentDidLoad\");\n endPostUpdate();\n if (BUILD21.asyncLoading) {\n hostRef.$onReadyResolve$(elm);\n if (!ancestorComponent) {\n appDidLoad(tagName);\n }\n }\n } else {\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 2048 /* devOnRender */;\n }\n safeCall(instance, \"componentDidUpdate\", void 0, elm);\n if (BUILD21.isDev) {\n hostRef.$flags$ &= ~2048 /* devOnRender */;\n }\n emitLifecycleEvent(elm, \"componentDidUpdate\");\n endPostUpdate();\n }\n if (BUILD21.method && BUILD21.lazyLoad) {\n hostRef.$onInstanceResolve$(elm);\n }\n if (BUILD21.asyncLoading) {\n if (hostRef.$onRenderResolve$) {\n hostRef.$onRenderResolve$();\n hostRef.$onRenderResolve$ = void 0;\n }\n if (hostRef.$flags$ & 512 /* needsRerender */) {\n nextTick(() => scheduleUpdate(hostRef, false));\n }\n hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);\n }\n};\nvar forceUpdate = (ref) => {\n var _a;\n if (BUILD21.updatable && (Build.isBrowser || Build.isTesting)) {\n const hostRef = getHostRef(ref);\n const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;\n if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {\n scheduleUpdate(hostRef, false);\n }\n return isConnected;\n }\n return false;\n};\nvar appDidLoad = (who) => {\n var _a;\n if (BUILD21.asyncQueue) {\n plt.$flags$ |= 2 /* appLoaded */;\n }\n nextTick(() => emitEvent(win, \"appload\", { detail: { namespace: NAMESPACE } }));\n if (BUILD21.hydrateClientSide) {\n if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {\n plt.$orgLocNodes$.clear();\n }\n }\n if (BUILD21.profile && performance.measure) {\n performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, \"st:app:start\");\n }\n};\nvar safeCall = (instance, method, arg, elm) => {\n if (instance && instance[method]) {\n try {\n return instance[method](arg);\n } catch (e) {\n consoleError(e, elm);\n }\n }\n return void 0;\n};\nvar emitLifecycleEvent = (elm, lifecycleName) => {\n if (BUILD21.lifecycleDOMEvents) {\n emitEvent(elm, \"stencil_\" + lifecycleName, {\n bubbles: true,\n composed: true,\n detail: {\n namespace: NAMESPACE\n }\n });\n }\n};\nvar addHydratedFlag = (elm) => {\n var _a, _b;\n return BUILD21.hydratedClass ? elm.classList.add((_a = BUILD21.hydratedSelectorName) != null ? _a : \"hydrated\") : BUILD21.hydratedAttribute ? elm.setAttribute((_b = BUILD21.hydratedSelectorName) != null ? _b : \"hydrated\", \"\") : void 0;\n};\nvar serverSideConnected = (elm) => {\n const children = elm.children;\n if (children != null) {\n for (let i2 = 0, ii = children.length; i2 < ii; i2++) {\n const childElm = children[i2];\n if (typeof childElm.connectedCallback === \"function\") {\n childElm.connectedCallback();\n }\n serverSideConnected(childElm);\n }\n }\n};\n\n// src/runtime/set-value.ts\nvar getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);\nvar setValue = (ref, propName, newVal, cmpMeta) => {\n const hostRef = getHostRef(ref);\n if (!hostRef) {\n return;\n }\n if (BUILD22.lazyLoad && !hostRef) {\n throw new Error(\n `Couldn't find host element for \"${cmpMeta.$tagName$}\" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`\n );\n }\n if (BUILD22.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newVal) {\n return;\n }\n const elm = BUILD22.lazyLoad ? hostRef.$hostElement$ : ref;\n const oldVal = hostRef.$instanceValues$.get(propName);\n const flags = hostRef.$flags$;\n const instance = BUILD22.lazyLoad ? hostRef.$lazyInstance$ : elm;\n newVal = parsePropertyValue(\n newVal,\n cmpMeta.$members$[propName][0],\n BUILD22.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)\n );\n const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);\n const didValueChange = newVal !== oldVal && !areBothNaN;\n if ((!BUILD22.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {\n hostRef.$instanceValues$.set(propName, newVal);\n if (BUILD22.serializer && BUILD22.reflect && cmpMeta.$attrsToReflect$) {\n if (cmpMeta.$serializers$ && cmpMeta.$serializers$[propName]) {\n const runSerializer = (inst) => {\n let attrVal = newVal;\n for (const serializer of cmpMeta.$serializers$[propName]) {\n const [[methodName]] = Object.entries(serializer);\n attrVal = inst[methodName](attrVal, propName);\n }\n hostRef.$serializerValues$.set(propName, attrVal);\n };\n if (instance) {\n runSerializer(instance);\n } else {\n hostRef.$fetchedCbList$.push(() => {\n runSerializer(hostRef.$lazyInstance$);\n });\n }\n }\n }\n if (BUILD22.isDev) {\n if (hostRef.$flags$ & 2048 /* devOnRender */) {\n consoleDevWarn(\n `The state/prop \"${propName}\" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,\n \"\\nElement\",\n elm,\n \"\\nNew value\",\n newVal,\n \"\\nOld value\",\n oldVal\n );\n } else if (hostRef.$flags$ & 4096 /* devOnDidLoad */) {\n consoleDevWarn(\n `The state/prop \"${propName}\" changed during \"componentDidLoad()\", this triggers extra re-renders, try to setup on \"componentWillLoad()\"`,\n \"\\nElement\",\n elm,\n \"\\nNew value\",\n newVal,\n \"\\nOld value\",\n oldVal\n );\n }\n }\n if (BUILD22.propChangeCallback && cmpMeta.$watchers$) {\n const watchMethods = cmpMeta.$watchers$[propName];\n if (watchMethods) {\n watchMethods.map((watcher) => {\n try {\n const [[watchMethodName, watcherFlags]] = Object.entries(watcher);\n if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {\n if (!instance) {\n hostRef.$fetchedCbList$.push(() => {\n hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);\n });\n } else {\n instance[watchMethodName](newVal, oldVal, propName);\n }\n }\n } catch (e) {\n consoleError(e, elm);\n }\n });\n }\n }\n if (BUILD22.updatable && flags & 2 /* hasRendered */) {\n if (instance.componentShouldUpdate) {\n const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);\n if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {\n return;\n }\n }\n if (!(flags & 16 /* isQueuedForUpdate */)) {\n scheduleUpdate(hostRef, false);\n }\n }\n }\n};\n\n// src/runtime/proxy-component.ts\nvar reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? \"\" : String(propValue);\nvar replayPendingSetterValues = (hostRef, cmpMeta) => {\n var _a;\n const instance = hostRef.$lazyInstance$;\n if (!instance) return;\n for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {\n if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {\n const pendingValue = hostRef.$instanceValues$.get(memberName);\n if (instance[memberName] !== pendingValue) {\n instance[memberName] = pendingValue;\n }\n }\n }\n};\nvar proxyComponent = (Cstr, cmpMeta, flags) => {\n var _a, _b;\n const prototype = Cstr.prototype;\n if (BUILD23.isTesting) {\n if (prototype.__stencilAugmented) {\n return;\n }\n prototype.__stencilAugmented = true;\n }\n if (BUILD23.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {\n FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {\n const originalFormAssociatedCallback = prototype[cbName];\n Object.defineProperty(prototype, cbName, {\n value(...args) {\n var _a2;\n const hostRef = getHostRef(this);\n const instance = BUILD23.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;\n if (!instance) {\n (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {\n const cb = asyncInstance[cbName];\n typeof cb === \"function\" && cb.call(asyncInstance, ...args);\n });\n } else {\n const cb = BUILD23.lazyLoad ? instance[cbName] : originalFormAssociatedCallback;\n typeof cb === \"function\" && cb.call(instance, ...args);\n }\n }\n });\n });\n }\n if (BUILD23.member && cmpMeta.$members$ || BUILD23.propChangeCallback) {\n if (BUILD23.propChangeCallback) {\n if (Cstr.watchers && !cmpMeta.$watchers$) {\n cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);\n }\n if (Cstr.deserializers && !cmpMeta.$deserializers$) {\n cmpMeta.$deserializers$ = Cstr.deserializers;\n }\n if (Cstr.serializers && !cmpMeta.$serializers$) {\n cmpMeta.$serializers$ = Cstr.serializers;\n }\n }\n const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});\n members.map(([memberName, [memberFlags]]) => {\n if ((BUILD23.prop || BUILD23.state) && (memberFlags & 31 /* Prop */ || (!BUILD23.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {\n const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};\n if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;\n if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;\n if (flags & 1 /* isElementConstructor */ || !origGetter) {\n Object.defineProperty(prototype, memberName, {\n get() {\n if (BUILD23.lazyLoad) {\n if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {\n return getValue(this, memberName);\n }\n const ref = getHostRef(this);\n if (!ref) return prototype[memberName];\n return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);\n }\n if (!BUILD23.lazyLoad) {\n return origGetter ? origGetter.apply(this) : getValue(this, memberName);\n }\n },\n configurable: true,\n enumerable: true\n });\n }\n Object.defineProperty(prototype, memberName, {\n set(newValue) {\n const ref = getHostRef(this);\n if (!ref) {\n return;\n }\n if (BUILD23.isDev) {\n if (\n // we are proxying the instance (not element)\n (flags & 1 /* isElementConstructor */) === 0 && // if the class has a setter, then the Element can update instance values, so ignore\n (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0 && // the element is not constructing\n (ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop\n (memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable\n (memberFlags & 1024 /* Mutable */) === 0\n ) {\n consoleDevWarn(\n `@Prop() \"${memberName}\" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`\n );\n }\n }\n if (origSetter) {\n const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];\n if (typeof currentValue === \"undefined\" && ref.$instanceValues$.get(memberName)) {\n newValue = ref.$instanceValues$.get(memberName);\n }\n origSetter.apply(this, [\n parsePropertyValue(\n newValue,\n memberFlags,\n BUILD23.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)\n )\n ]);\n newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];\n setValue(this, memberName, newValue, cmpMeta);\n return;\n }\n if (!BUILD23.lazyLoad) {\n setValue(this, memberName, newValue, cmpMeta);\n return;\n }\n if (BUILD23.lazyLoad) {\n if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {\n setValue(this, memberName, newValue, cmpMeta);\n return;\n }\n const parsedValue = parsePropertyValue(\n newValue,\n memberFlags,\n BUILD23.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)\n );\n if (ref.$lazyInstance$) {\n const currentValue = ref.$lazyInstance$[memberName];\n if (!ref.$instanceValues$.get(memberName) && currentValue) {\n ref.$instanceValues$.set(memberName, currentValue);\n }\n ref.$lazyInstance$[memberName] = parsedValue;\n setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);\n } else {\n ref.$instanceValues$.set(memberName, parsedValue);\n }\n }\n }\n });\n } else if (BUILD23.lazyLoad && BUILD23.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {\n Object.defineProperty(prototype, memberName, {\n value(...args) {\n var _a2;\n const ref = getHostRef(this);\n return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {\n var _a3;\n return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);\n });\n }\n });\n }\n });\n if (BUILD23.observeAttribute && (!BUILD23.lazyLoad || flags & 1 /* isElementConstructor */)) {\n const attrNameToPropName = /* @__PURE__ */ new Map();\n prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {\n plt.jmp(() => {\n var _a2;\n const propName = attrNameToPropName.get(attrName);\n const hostRef = getHostRef(this);\n if (BUILD23.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {\n return;\n }\n if (this.hasOwnProperty(propName) && BUILD23.lazyLoad) {\n newValue = this[propName];\n delete this[propName];\n }\n if (BUILD23.deserializer && cmpMeta.$deserializers$ && cmpMeta.$deserializers$[propName]) {\n const setVal = (methodName, instance) => {\n const deserializeVal = instance == null ? void 0 : instance[methodName](newValue, propName);\n if (deserializeVal !== this[propName]) {\n this[propName] = deserializeVal;\n }\n };\n for (const deserializer of cmpMeta.$deserializers$[propName]) {\n const [[methodName]] = Object.entries(deserializer);\n if (BUILD23.lazyLoad) {\n if (hostRef.$lazyInstance$) {\n setVal(methodName, hostRef.$lazyInstance$);\n } else {\n hostRef.$fetchedCbList$.push(() => {\n setVal(methodName, hostRef.$lazyInstance$);\n });\n }\n } else {\n setVal(methodName, this);\n }\n }\n return;\n } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === \"number\" && // cast type to number to avoid TS compiler issues\n this[propName] == newValue) {\n return;\n } else if (propName == null) {\n const flags2 = hostRef == null ? void 0 : hostRef.$flags$;\n if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {\n const elm = BUILD23.lazyLoad ? hostRef.$hostElement$ : this;\n const instance = BUILD23.lazyLoad ? hostRef.$lazyInstance$ : elm;\n const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];\n entry == null ? void 0 : entry.forEach((watcher) => {\n const [[watchMethodName, watcherFlags]] = Object.entries(watcher);\n if ((instance == null ? void 0 : instance[watchMethodName]) != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {\n instance[watchMethodName].call(instance, newValue, oldValue, attrName);\n }\n });\n }\n return;\n }\n const propFlags = members.find(([m]) => m === propName);\n const propMemberFlags = propFlags ? propFlags[1][0] : 0;\n const isBooleanTarget = propMemberFlags & 4 /* Boolean */;\n if (BUILD23.reflect && propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds\n // one is always external\n !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {\n return;\n }\n const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;\n if (isBooleanTarget) {\n const isFormAssociated = BUILD23.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */);\n newValue = newValue === null || newValue === \"false\" && !isFormAssociated ? false : true;\n }\n const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);\n const isUnchanged = newValue === this[propName] || newValue == null && this[propName] == null;\n if (!isSpuriousBooleanRemoval && !isUnchanged && (!propDesc.get || !!propDesc.set)) {\n this[propName] = newValue;\n }\n });\n };\n Cstr.observedAttributes = Array.from(\n /* @__PURE__ */ new Set([\n ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),\n ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {\n var _a2;\n const attrName = m[1] || propName;\n attrNameToPropName.set(attrName, propName);\n if (BUILD23.reflect && m[0] & 512 /* ReflectAttr */) {\n (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);\n }\n return attrName;\n })\n ])\n );\n }\n }\n return Cstr;\n};\n\n// src/runtime/initialize-component.ts\nvar initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {\n var _a;\n let Cstr;\n try {\n if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {\n hostRef.$flags$ |= 32 /* hasInitializedComponent */;\n hostRef.$flags$ &= ~1024 /* hasFailedLoad */;\n const bundleId = cmpMeta.$lazyBundleId$;\n if (BUILD24.lazyLoad && bundleId) {\n const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);\n if (CstrImport && \"then\" in CstrImport) {\n const endLoad = uniqueTime(\n `st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,\n `[Stencil] Load module for <${cmpMeta.$tagName$}>`\n );\n Cstr = await CstrImport;\n endLoad();\n } else {\n Cstr = CstrImport;\n }\n if (!Cstr) {\n hostRef.$flags$ &= ~32 /* hasInitializedComponent */;\n hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;\n if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {\n hostRef.$flags$ |= 1024 /* hasFailedLoad */;\n }\n throw new Error(`Constructor for \"${cmpMeta.$tagName$}#${hostRef.$modeName$}\" was not found`);\n }\n if (BUILD24.member && !Cstr.isProxied) {\n if (BUILD24.propChangeCallback) {\n cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);\n cmpMeta.$serializers$ = Cstr.serializers;\n cmpMeta.$deserializers$ = Cstr.deserializers;\n }\n proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);\n Cstr.isProxied = true;\n }\n const endNewInstance = createTime(\"createInstance\", cmpMeta.$tagName$);\n if (BUILD24.member) {\n hostRef.$flags$ |= 8 /* isConstructingInstance */;\n }\n try {\n new Cstr(hostRef);\n } catch (e) {\n consoleError(e, elm);\n }\n if (BUILD24.member) {\n hostRef.$flags$ &= ~8 /* isConstructingInstance */;\n replayPendingSetterValues(hostRef, cmpMeta);\n }\n if (BUILD24.propChangeCallback) {\n hostRef.$flags$ |= 128 /* isWatchReady */;\n }\n endNewInstance();\n const needsDeferredCallback = BUILD24.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;\n if (!needsDeferredCallback) {\n fireConnectedCallback(hostRef.$lazyInstance$, elm);\n } else {\n hostRef.$deferredConnectedCallback$ = true;\n }\n } else {\n Cstr = elm.constructor;\n const cmpTag = elm.localName;\n customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);\n }\n if (BUILD24.style && Cstr && Cstr.style) {\n let style;\n if (typeof Cstr.style === \"string\") {\n style = Cstr.style;\n } else if (BUILD24.mode && typeof Cstr.style !== \"string\") {\n hostRef.$modeName$ = computeMode(elm);\n if (hostRef.$modeName$) {\n style = Cstr.style[hostRef.$modeName$];\n }\n if (BUILD24.hydrateServerSide && hostRef.$modeName$) {\n elm.setAttribute(\"s-mode\", hostRef.$modeName$);\n }\n }\n const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);\n if (!styles.has(scopeId2) || BUILD24.hotModuleReplacement && hmrVersionId) {\n const endRegisterStyles = createTime(\"registerStyles\", cmpMeta.$tagName$);\n if (BUILD24.hydrateServerSide && BUILD24.shadowDom) {\n if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {\n style = scopeCss(style, scopeId2, true);\n } else if (needsScopedSSR()) {\n style = expandPartSelectors(style);\n }\n }\n registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));\n endRegisterStyles();\n }\n }\n }\n const ancestorComponent = hostRef.$ancestorComponent$;\n const schedule = () => scheduleUpdate(hostRef, true);\n if (BUILD24.asyncLoading && ancestorComponent && ancestorComponent[\"s-rc\"]) {\n ancestorComponent[\"s-rc\"].push(schedule);\n } else {\n schedule();\n }\n } catch (e) {\n consoleError(e, elm);\n if (BUILD24.asyncLoading && hostRef.$onRenderResolve$) {\n hostRef.$onRenderResolve$();\n hostRef.$onRenderResolve$ = void 0;\n }\n if (BUILD24.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {\n hostRef.$onReadyResolve$(elm);\n }\n }\n};\nvar fireConnectedCallback = (instance, elm) => {\n if (BUILD24.lazyLoad) {\n safeCall(instance, \"connectedCallback\", void 0, elm);\n }\n};\n\n// src/runtime/connected-callback.ts\nvar connectedCallback = (elm) => {\n if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {\n const hostRef = getHostRef(elm);\n if (!hostRef) {\n return;\n }\n const cmpMeta = hostRef.$cmpMeta$;\n const endConnected = createTime(\"connectedCallback\", cmpMeta.$tagName$);\n if (BUILD25.hostListenerTargetParent) {\n addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);\n }\n if (!(hostRef.$flags$ & 1 /* hasConnected */)) {\n hostRef.$flags$ |= 1 /* hasConnected */;\n let hostId;\n if (BUILD25.hydrateClientSide) {\n hostId = elm.getAttribute(HYDRATE_ID);\n if (hostId) {\n if (BUILD25.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n const scopeId2 = BUILD25.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute(\"s-mode\")) : addStyle(elm.shadowRoot, cmpMeta);\n elm.classList.remove(scopeId2 + \"-h\", scopeId2 + \"-s\");\n } else if (BUILD25.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {\n const scopeId2 = getScopeId(cmpMeta, BUILD25.mode ? elm.getAttribute(\"s-mode\") : void 0);\n elm[\"s-sc\"] = scopeId2;\n }\n initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);\n }\n }\n if (BUILD25.slotRelocation && !hostId) {\n if (BUILD25.hydrateServerSide || (BUILD25.slot || BUILD25.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {\n setContentReference(elm);\n }\n }\n if (BUILD25.asyncLoading) {\n let ancestorComponent = elm;\n while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {\n if (BUILD25.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute(\"s-id\") && ancestorComponent[\"s-p\"] || ancestorComponent[\"s-p\"]) {\n attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);\n break;\n }\n }\n }\n if (BUILD25.prop && !BUILD25.hydrateServerSide && cmpMeta.$members$) {\n Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {\n if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {\n const value = elm[memberName];\n delete elm[memberName];\n elm[memberName] = value;\n }\n });\n }\n if (BUILD25.initializeNextTick) {\n nextTick(() => initializeComponent(elm, hostRef, cmpMeta));\n } else {\n initializeComponent(elm, hostRef, cmpMeta);\n }\n } else {\n addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);\n if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {\n fireConnectedCallback(hostRef.$lazyInstance$, elm);\n } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {\n setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);\n } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {\n hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));\n }\n }\n endConnected();\n }\n};\nvar setContentReference = (elm) => {\n if (!win.document) {\n return;\n }\n const contentRefElm = elm[\"s-cr\"] = win.document.createComment(\n BUILD25.isDebug ? `content-ref (host=${elm.localName})` : \"\"\n );\n contentRefElm[\"s-cn\"] = true;\n insertBefore(elm, contentRefElm, elm.firstChild);\n};\n\n// src/runtime/disconnected-callback.ts\nimport { BUILD as BUILD26 } from \"@stencil/core/internal/app-data\";\nvar disconnectInstance = (instance, elm) => {\n if (BUILD26.lazyLoad) {\n safeCall(instance, \"disconnectedCallback\", void 0, elm || instance);\n }\n};\nvar disconnectedCallback = async (elm) => {\n if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {\n const hostRef = getHostRef(elm);\n if (BUILD26.hostListener) {\n if (hostRef == null ? void 0 : hostRef.$rmListeners$) {\n hostRef.$rmListeners$.map((rmListener) => rmListener());\n hostRef.$rmListeners$ = void 0;\n }\n }\n if (!BUILD26.lazyLoad) {\n disconnectInstance(elm);\n } else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {\n disconnectInstance(hostRef.$lazyInstance$, elm);\n } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {\n hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));\n }\n }\n if (rootAppliedStyles.has(elm)) {\n rootAppliedStyles.delete(elm);\n }\n if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {\n rootAppliedStyles.delete(elm.shadowRoot);\n }\n};\n\n// src/runtime/bootstrap-custom-element.ts\nvar defineCustomElement = (Cstr, compactMeta) => {\n customElements.define(\n transformTag(compactMeta[1]),\n proxyCustomElement(Cstr, compactMeta)\n );\n};\nvar proxyCustomElement = (Cstr, compactMeta) => {\n if (BUILD27.profile && performance.mark && performance.getEntriesByName(\"st:app:start\", \"mark\").length === 0) {\n performance.mark(\"st:app:start\");\n }\n const cmpMeta = {\n $flags$: compactMeta[0],\n $tagName$: compactMeta[1]\n };\n try {\n if (BUILD27.member) {\n cmpMeta.$members$ = compactMeta[2];\n }\n if (BUILD27.hostListener) {\n cmpMeta.$listeners$ = compactMeta[3];\n }\n if (BUILD27.propChangeCallback) {\n cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);\n cmpMeta.$deserializers$ = Cstr.$deserializers$;\n cmpMeta.$serializers$ = Cstr.$serializers$;\n }\n if (BUILD27.reflect) {\n cmpMeta.$attrsToReflect$ = [];\n }\n if (BUILD27.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;\n }\n if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {\n if (BUILD27.experimentalSlotFixes) {\n patchPseudoShadowDom(Cstr.prototype);\n } else {\n if (BUILD27.slotChildNodesFix) {\n patchChildSlotNodes(Cstr.prototype);\n }\n if (BUILD27.cloneNodeFix) {\n patchCloneNode(Cstr.prototype);\n }\n if (BUILD27.appendChildSlotFix) {\n patchSlotAppendChild(Cstr.prototype);\n }\n if (BUILD27.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {\n patchTextContent(Cstr.prototype);\n }\n }\n } else if (BUILD27.cloneNodeFix) {\n patchCloneNode(Cstr.prototype);\n }\n if (BUILD27.hydrateClientSide && BUILD27.shadowDom) {\n hydrateScopedToShadow([cmpMeta]);\n }\n const originalConnectedCallback = Cstr.prototype.connectedCallback;\n const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;\n Object.assign(Cstr.prototype, {\n __hasHostListenerAttached: false,\n __registerHost() {\n registerHost(this, cmpMeta);\n },\n connectedCallback() {\n if (!this.__hasHostListenerAttached) {\n const hostRef = getHostRef(this);\n if (!hostRef) {\n return;\n }\n addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);\n this.__hasHostListenerAttached = true;\n }\n connectedCallback(this);\n if (originalConnectedCallback) {\n originalConnectedCallback.call(this);\n }\n },\n disconnectedCallback() {\n disconnectedCallback(this);\n if (originalDisconnectedCallback) {\n originalDisconnectedCallback.call(this);\n }\n },\n __attachShadow() {\n if (supportsShadow) {\n if (!this.shadowRoot) {\n createShadowRoot.call(this, cmpMeta);\n } else {\n if (this.shadowRoot.mode !== \"open\") {\n throw new Error(\n `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`\n );\n }\n }\n } else {\n this.shadowRoot = this;\n }\n }\n });\n Object.defineProperty(Cstr, \"is\", {\n value: cmpMeta.$tagName$,\n configurable: true\n });\n return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);\n } catch (e) {\n consoleError(e);\n return Cstr;\n }\n};\nvar forceModeUpdate = (elm) => {\n if (BUILD27.style && BUILD27.mode && !BUILD27.lazyLoad) {\n const mode = computeMode(elm);\n const hostRef = getHostRef(elm);\n if (hostRef && hostRef.$modeName$ !== mode) {\n const cmpMeta = hostRef.$cmpMeta$;\n const oldScopeId = elm[\"s-sc\"];\n const scopeId2 = getScopeId(cmpMeta, mode);\n const style = elm.constructor.style[mode];\n const flags = cmpMeta.$flags$;\n if (style) {\n if (!styles.has(scopeId2)) {\n registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));\n }\n hostRef.$modeName$ = mode;\n elm.classList.remove(oldScopeId + \"-h\", oldScopeId + \"-s\");\n attachStyles(hostRef);\n forceUpdate(elm);\n }\n }\n }\n};\n\n// src/runtime/bootstrap-lazy.ts\nimport { BUILD as BUILD28 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/hmr-component.ts\nvar hmrStart = (hostElement, cmpMeta, hmrVersionId) => {\n const hostRef = getHostRef(hostElement);\n if (!hostRef) {\n return;\n }\n hostRef.$flags$ = 1 /* hasConnected */;\n initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);\n};\n\n// src/runtime/bootstrap-lazy.ts\nvar bootstrapLazy = (lazyBundles, options = {}) => {\n var _a;\n if (BUILD28.profile && performance.mark) {\n performance.mark(\"st:app:start\");\n }\n installDevTools();\n if (!win.document) {\n console.warn(\"Stencil: No document found. Skipping bootstrapping lazy components.\");\n return;\n }\n const endBootstrap = createTime(\"bootstrapLazy\");\n const cmpTags = [];\n const exclude = options.exclude || [];\n const customElements2 = win.customElements;\n const head = win.document.head;\n const metaCharset = /* @__PURE__ */ head.querySelector(\"meta[charset]\");\n const dataStyles = /* @__PURE__ */ win.document.createElement(\"style\");\n const deferredConnectedCallbacks = [];\n let appLoadFallback;\n let isBootstrapping = true;\n Object.assign(plt, options);\n plt.$resourcesUrl$ = new URL(options.resourcesUrl || \"./\", win.document.baseURI).href;\n if (BUILD28.asyncQueue) {\n if (options.syncQueue) {\n plt.$flags$ |= 4 /* queueSync */;\n }\n }\n if (BUILD28.hydrateClientSide) {\n plt.$flags$ |= 2 /* appLoaded */;\n }\n if (BUILD28.hydrateClientSide && BUILD28.shadowDom) {\n const cmpMetas = [];\n lazyBundles.map((lazyBundle) => lazyBundle[1].map(([$flags$, $tagName$]) => cmpMetas.push({ $flags$, $tagName$ })));\n hydrateScopedToShadow(cmpMetas);\n }\n let hasSlotRelocation = false;\n lazyBundles.map((lazyBundle) => {\n lazyBundle[1].map((compactMeta) => {\n var _a2, _b;\n const cmpMeta = {\n $flags$: compactMeta[0],\n $tagName$: compactMeta[1],\n $members$: compactMeta[2],\n $listeners$: compactMeta[3]\n };\n if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {\n hasSlotRelocation = true;\n }\n if (BUILD28.member) {\n cmpMeta.$members$ = compactMeta[2];\n }\n if (BUILD28.hostListener) {\n cmpMeta.$listeners$ = compactMeta[3];\n }\n if (BUILD28.reflect) {\n cmpMeta.$attrsToReflect$ = [];\n }\n if (BUILD28.propChangeCallback) {\n cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);\n cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};\n cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};\n }\n if (BUILD28.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;\n }\n const tagName = BUILD28.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : transformTag(cmpMeta.$tagName$);\n const HostElement = class extends HTMLElement {\n [\"s-p\"];\n [\"s-rc\"];\n hasRegisteredEventListeners = false;\n // StencilLazyHost\n constructor(self) {\n super(self);\n self = this;\n registerHost(self, cmpMeta);\n if (BUILD28.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n if (supportsShadow) {\n if (!self.shadowRoot) {\n createShadowRoot.call(self, cmpMeta);\n } else {\n if (self.shadowRoot.mode !== \"open\") {\n throw new Error(\n `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`\n );\n }\n }\n } else if (!BUILD28.hydrateServerSide && !(\"shadowRoot\" in self)) {\n self.shadowRoot = self;\n }\n }\n }\n connectedCallback() {\n const hostRef = getHostRef(this);\n if (!hostRef) {\n return;\n }\n if (!this.hasRegisteredEventListeners) {\n this.hasRegisteredEventListeners = true;\n addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);\n }\n if (appLoadFallback) {\n clearTimeout(appLoadFallback);\n appLoadFallback = null;\n }\n if (isBootstrapping) {\n deferredConnectedCallbacks.push(this);\n } else {\n plt.jmp(() => connectedCallback(this));\n }\n }\n disconnectedCallback() {\n plt.jmp(() => disconnectedCallback(this));\n nextTick(() => {\n var _a3, _b2;\n const hostRef = getHostRef(this);\n if (!hostRef) {\n return;\n }\n const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);\n if (i2 > -1) {\n deferredConnectedCallbacks.splice(i2, 1);\n }\n if (((_b2 = (_a3 = hostRef.$vnode$) == null ? void 0 : _a3.$elm$) == null ? void 0 : _b2.isConnected) === false) {\n delete hostRef.$vnode$.$elm$;\n }\n });\n }\n componentOnReady() {\n var _a3;\n return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;\n }\n };\n if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {\n if (BUILD28.experimentalSlotFixes) {\n patchPseudoShadowDom(HostElement.prototype);\n } else {\n if (BUILD28.slotChildNodesFix) {\n patchChildSlotNodes(HostElement.prototype);\n }\n if (BUILD28.cloneNodeFix) {\n patchCloneNode(HostElement.prototype);\n }\n if (BUILD28.appendChildSlotFix) {\n patchSlotAppendChild(HostElement.prototype);\n }\n if (BUILD28.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {\n patchTextContent(HostElement.prototype);\n }\n }\n } else if (BUILD28.cloneNodeFix) {\n patchCloneNode(HostElement.prototype);\n }\n if (BUILD28.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {\n HostElement.formAssociated = true;\n }\n if (BUILD28.hotModuleReplacement) {\n HostElement.prototype[\"s-hmr\"] = function(hmrVersionId) {\n hmrStart(this, cmpMeta, hmrVersionId);\n };\n }\n cmpMeta.$lazyBundleId$ = lazyBundle[0];\n if (!exclude.includes(tagName) && !customElements2.get(tagName)) {\n cmpTags.push(tagName);\n customElements2.define(\n tagName,\n proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)\n );\n }\n });\n });\n if (cmpTags.length > 0) {\n if (BUILD28.slotRelocation && hasSlotRelocation) {\n dataStyles.textContent += SLOT_FB_CSS;\n }\n if (BUILD28.invisiblePrehydration && (BUILD28.hydratedClass || BUILD28.hydratedAttribute)) {\n dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;\n }\n if (dataStyles.innerHTML.length) {\n dataStyles.setAttribute(\"data-styles\", \"\");\n const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);\n if (nonce != null) {\n dataStyles.setAttribute(\"nonce\", nonce);\n }\n head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);\n }\n }\n isBootstrapping = false;\n if (deferredConnectedCallbacks.length) {\n deferredConnectedCallbacks.map((host) => host.connectedCallback());\n } else {\n if (BUILD28.profile) {\n plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, \"timeout\"));\n } else {\n plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));\n }\n }\n endBootstrap();\n};\n\n// src/runtime/fragment.ts\nvar Fragment = (_, children) => children;\n\n// src/runtime/host-listener.ts\nimport { BUILD as BUILD29 } from \"@stencil/core/internal/app-data\";\nvar addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {\n if (BUILD29.hostListener && listeners && win.document) {\n if (BUILD29.hostListenerTargetParent) {\n if (attachParentListeners) {\n listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);\n } else {\n listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));\n }\n }\n listeners.map(([flags, name, method]) => {\n const target = BUILD29.hostListenerTarget ? getHostListenerTarget(win.document, elm, flags) : elm;\n const handler = hostListenerProxy(hostRef, method);\n const opts = hostListenerOpts(flags);\n plt.ael(target, name, handler, opts);\n (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));\n });\n }\n};\nvar hostListenerProxy = (hostRef, methodName) => (ev) => {\n var _a;\n try {\n if (BUILD29.lazyLoad) {\n if (hostRef.$flags$ & 256 /* isListenReady */) {\n (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);\n } else {\n (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);\n }\n } else {\n hostRef.$hostElement$[methodName](ev);\n }\n } catch (e) {\n consoleError(e, hostRef.$hostElement$);\n }\n};\nvar getHostListenerTarget = (doc, elm, flags) => {\n if (BUILD29.hostListenerTargetDocument && flags & 4 /* TargetDocument */) {\n return doc;\n }\n if (BUILD29.hostListenerTargetWindow && flags & 8 /* TargetWindow */) {\n return win;\n }\n if (BUILD29.hostListenerTargetBody && flags & 16 /* TargetBody */) {\n return doc.body;\n }\n if (BUILD29.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement) {\n return elm.parentElement;\n }\n return elm;\n};\nvar hostListenerOpts = (flags) => supportsListenerOptions ? {\n passive: (flags & 1 /* Passive */) !== 0,\n capture: (flags & 2 /* Capture */) !== 0\n} : (flags & 2 /* Capture */) !== 0;\n\n// src/runtime/mixin.ts\nimport { BUILD as BUILD30 } from \"@stencil/core/internal/app-data\";\nvar baseClass = BUILD30.lazyLoad ? class {\n} : globalThis.HTMLElement || class {\n};\nfunction Mixin(...mixins) {\n return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);\n}\n\n// src/runtime/nonce.ts\nvar setNonce = (nonce) => plt.$nonce$ = nonce;\n\n// src/runtime/platform-options.ts\nvar setPlatformOptions = (opts) => Object.assign(plt, opts);\n\n// src/runtime/render.ts\nvar hostRefCache = /* @__PURE__ */ new WeakMap();\nfunction render(vnode, container) {\n let ref = hostRefCache.get(container);\n if (!ref) {\n const cmpMeta = {\n $flags$: 0,\n $tagName$: container.tagName\n };\n ref = {\n $flags$: 0,\n $cmpMeta$: cmpMeta,\n $hostElement$: container\n };\n hostRefCache.set(container, ref);\n }\n renderVdom(ref, vnode);\n}\n\n// src/runtime/tag-transform.ts\nvar tagTransformer = void 0;\nfunction transformTag(tag) {\n if (!tagTransformer) return tag;\n return tagTransformer(tag);\n}\nfunction setTagTransformer(transformer) {\n if (tagTransformer) {\n console.warn(`\n A tagTransformer has already been set. \n Overwriting it may lead to error and unexpected results if your components have already been defined.\n `);\n }\n tagTransformer = transformer;\n}\n\n// src/runtime/vdom/jsx-dev-runtime.ts\nfunction jsxDEV(type, props, key, _isStaticChildren, _source, _self) {\n const propsObj = props || {};\n const { children, ...rest } = propsObj;\n let vnodeData = rest;\n if (key !== void 0 && !(\"key\" in rest)) {\n vnodeData = { ...rest, key };\n }\n if (vnodeData && Object.keys(vnodeData).length === 0) {\n vnodeData = null;\n }\n if (children !== void 0) {\n if (Array.isArray(children)) {\n return h(type, vnodeData, ...children);\n }\n if (typeof children === \"object\" && children !== null && \"$flags$\" in children) {\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData);\n}\n\n// src/runtime/vdom/jsx-runtime.ts\nfunction jsx(type, props, key) {\n const propsObj = props || {};\n const { children, ...rest } = propsObj;\n let vnodeData = rest;\n if (key !== void 0 && !(\"key\" in rest)) {\n vnodeData = { ...rest, key };\n }\n if (vnodeData && Object.keys(vnodeData).length === 0) {\n vnodeData = null;\n }\n if (children !== void 0) {\n if (Array.isArray(children)) {\n return h(type, vnodeData, ...children);\n }\n if (typeof children === \"object\" && children !== null && \"$flags$\" in children) {\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData);\n}\nfunction jsxs(type, props, key) {\n return jsx(type, props, key);\n}\n\n// src/runtime/vdom/vdom-annotations.ts\nvar insertVdomAnnotations = (doc, staticComponents) => {\n if (doc != null) {\n const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };\n docData.staticComponents = new Set(staticComponents);\n const orgLocationNodes = [];\n parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);\n orgLocationNodes.forEach((orgLocationNode) => {\n var _a;\n if (orgLocationNode != null && orgLocationNode[\"s-nr\"]) {\n const nodeRef = orgLocationNode[\"s-nr\"];\n let hostId = nodeRef[\"s-host-id\"];\n let nodeId = nodeRef[\"s-node-id\"];\n let childId = `${hostId}.${nodeId}`;\n if (hostId == null) {\n hostId = 0;\n docData.rootLevelIds++;\n nodeId = docData.rootLevelIds;\n childId = `${hostId}.${nodeId}`;\n if (nodeRef.nodeType === 1 /* ElementNode */) {\n nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);\n if (typeof nodeRef[\"s-sn\"] === \"string\" && !nodeRef.getAttribute(\"slot\")) {\n nodeRef.setAttribute(\"s-sn\", nodeRef[\"s-sn\"]);\n }\n } else if (nodeRef.nodeType === 3 /* TextNode */) {\n if (hostId === 0) {\n const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();\n if (textContent === \"\") {\n orgLocationNode.remove();\n return;\n }\n }\n const commentBeforeTextNode = doc.createComment(childId);\n commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;\n insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);\n } else if (nodeRef.nodeType === 8 /* CommentNode */) {\n const commentBeforeTextNode = doc.createComment(childId);\n commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;\n nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);\n }\n }\n let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;\n const orgLocationParentNode = orgLocationNode.parentElement;\n if (orgLocationParentNode) {\n if (orgLocationParentNode[\"s-en\"] === \"\") {\n orgLocationNodeId += `.`;\n } else if (orgLocationParentNode[\"s-en\"] === \"c\") {\n orgLocationNodeId += `.c`;\n }\n }\n orgLocationNode.nodeValue = orgLocationNodeId;\n }\n });\n }\n};\nvar parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {\n var _a;\n if (node == null) {\n return;\n }\n if (node[\"s-nr\"] != null) {\n orgLocationNodes.push(node);\n }\n if (node.nodeType === 1 /* ElementNode */) {\n const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];\n childNodes.forEach((childNode) => {\n const hostRef = getHostRef(childNode);\n if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {\n const cmpData = {\n nodeIds: 0\n };\n insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);\n }\n parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);\n });\n }\n};\nvar insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {\n if (vnode != null) {\n const hostId = ++docData.hostIds;\n hostElm.setAttribute(HYDRATE_ID, hostId);\n if (hostElm[\"s-cr\"] != null) {\n hostElm[\"s-cr\"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;\n }\n if (vnode.$children$ != null) {\n const depth = 0;\n vnode.$children$.forEach((vnodeChild, index) => {\n insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);\n });\n }\n if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {\n const parent = hostElm.parentElement;\n if (parent && parent.childNodes) {\n const parentChildNodes = Array.from(parent.childNodes);\n const comment = parentChildNodes.find(\n (node) => node.nodeType === 8 /* CommentNode */ && node[\"s-sr\"]\n );\n if (comment) {\n const index = parentChildNodes.indexOf(hostElm) - 1;\n vnode.$elm$.setAttribute(\n HYDRATE_CHILD_ID,\n `${comment[\"s-host-id\"]}.${comment[\"s-node-id\"]}.0.${index}`\n );\n }\n }\n }\n }\n};\nvar insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {\n const childElm = vnodeChild.$elm$;\n if (childElm == null) {\n return;\n }\n const nodeId = cmpData.nodeIds++;\n const childId = `${hostId}.${nodeId}.${depth}.${index}`;\n childElm[\"s-host-id\"] = hostId;\n childElm[\"s-node-id\"] = nodeId;\n if (childElm.nodeType === 1 /* ElementNode */) {\n childElm.setAttribute(HYDRATE_CHILD_ID, childId);\n if (typeof childElm[\"s-sn\"] === \"string\" && !childElm.getAttribute(\"slot\")) {\n childElm.setAttribute(\"s-sn\", childElm[\"s-sn\"]);\n }\n } else if (childElm.nodeType === 3 /* TextNode */) {\n const parentNode = childElm.parentNode;\n const nodeName = parentNode == null ? void 0 : parentNode.nodeName;\n if (nodeName !== \"STYLE\" && nodeName !== \"SCRIPT\") {\n const textNodeId = `${TEXT_NODE_ID}.${childId}`;\n const commentBeforeTextNode = doc.createComment(textNodeId);\n insertBefore(parentNode, commentBeforeTextNode, childElm);\n }\n } else if (childElm.nodeType === 8 /* CommentNode */) {\n if (childElm[\"s-sr\"]) {\n const slotName = childElm[\"s-sn\"] || \"\";\n const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;\n childElm.nodeValue = slotNodeId;\n }\n }\n if (vnodeChild.$children$ != null) {\n const childDepth = depth + 1;\n vnodeChild.$children$.forEach((vnode, index2) => {\n insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);\n });\n }\n};\nexport {\n BUILD31 as BUILD,\n Build,\n Env,\n Fragment,\n H,\n H as HTMLElement,\n HYDRATED_STYLE_ID,\n Host,\n Mixin,\n NAMESPACE2 as NAMESPACE,\n STENCIL_DEV_MODE,\n addHostEventListeners,\n bootstrapLazy,\n cmpModules,\n connectedCallback,\n consoleDevError,\n consoleDevInfo,\n consoleDevWarn,\n consoleError,\n createEvent,\n defineCustomElement,\n disconnectedCallback,\n forceModeUpdate,\n forceUpdate,\n getAssetPath,\n getElement,\n getHostRef,\n getMode,\n getRenderingRef,\n getValue,\n h,\n insertVdomAnnotations,\n isMemberInElement,\n jsx,\n jsxDEV,\n jsxs,\n loadModule,\n modeResolver,\n needsScopedSSR,\n nextTick,\n normalizeWatchers,\n parsePropertyValue,\n plt,\n postUpdateComponent,\n promiseResolve,\n proxyComponent,\n proxyCustomElement,\n readTask,\n registerHost,\n registerInstance,\n render,\n renderVdom,\n setAssetPath,\n setErrorHandler,\n setMode,\n setNonce,\n setPlatformHelpers,\n setPlatformOptions,\n setScopedSSR,\n setTagTransformer,\n setValue,\n styles,\n supportsConstructableStylesheets,\n supportsListenerOptions,\n supportsMutableAdoptedStyleSheets,\n supportsShadow,\n transformTag,\n win,\n writeTask\n};\n","/**\n * @type {import('htmlfy').Config}\n */\nexport const CONFIG = {\n content_wrap: 0,\n ignore: [],\n ignore_with: '!i-£___£%_',\n strict: false,\n tab_size: 2,\n tag_wrap: 0,\n trim: []\n}\n\nexport const VOID_ELEMENTS = [\n 'area', 'base', 'br', 'col', 'embed', 'hr', \n 'img', 'input', 'link', 'meta',\n 'param', 'source', 'track', 'wbr'\n]\n\n/**\n * Defined per formatting operation from configuration.\n * \n * CONTENT_IGNORE_PLACEHOLDER\n * SELF_CLOSING_PLACEHOLDER\n * ATTRIBUTE_IGNORE_PLACEHOLDER\n */\n","import { CONFIG, VOID_ELEMENTS } from './constants.js'\n\n/**\n * @typedef {object} HtmlfyConstants\n * @property {string} CONTENT_IGNORE_PLACEHOLDER\n * @property {string} SELF_CLOSING_PLACEHOLDER\n * @property {string} ATTRIBUTE_IGNORE_PLACEHOLDER\n */\n\n/**\n * Create the placeholders used during one formatting operation.\n *\n * @param {string} [ignore_with]\n * @returns {HtmlfyConstants}\n */\nexport const createConstants = (ignore_with = CONFIG.ignore_with) => ({\n CONTENT_IGNORE_PLACEHOLDER: `${ignore_with}_`,\n SELF_CLOSING_PLACEHOLDER: `${ignore_with}/_>`,\n ATTRIBUTE_IGNORE_PLACEHOLDER: `${ignore_with}=_`\n})\n\nconst DEFAULT_CONSTANTS = createConstants()\n\n/**\n * Visit complete tags without treating brackets inside quoted attributes as boundaries.\n * Returning true from the visitor stops the scan.\n *\n * @param {string} content\n * @param {(tag: string, start: number, end: number) => boolean | void} visitor\n * @returns {boolean}\n */\nconst scanTags = (content, visitor) => {\n let tag_start = -1\n let quote = ''\n\n for (let index = 0; index < content.length; index++) {\n const character = content[index]\n\n if (tag_start === -1) {\n if (character === '<') tag_start = index\n continue\n }\n\n if (quote) {\n if (character === quote) quote = ''\n continue\n }\n\n if (character === '\"' || character === \"'\") {\n quote = character\n } else if (character === '<') {\n tag_start = index\n } else if (character === '>') {\n if (visitor(content.slice(tag_start, index + 1), tag_start, index + 1)) return true\n tag_start = -1\n }\n }\n\n return false\n}\n\n/**\n * Parse the name of an opening tag and return its end offset within the tag.\n *\n * @param {string} tag\n * @returns {{ name: string, name_end: number } | undefined}\n */\nconst getOpeningTag = (tag) => {\n let name_start = 1\n while (/\\s/.test(tag[name_start] || '')) name_start++\n if (!/[A-Za-z]/.test(tag[name_start] || '')) return\n\n let name_end = name_start + 1\n while (name_end < tag.length && !/[\\s/>]/.test(tag[name_end])) name_end++\n\n const name = tag.slice(name_start, name_end)\n if (!/^[A-Za-z][A-Za-z0-9:._-]*$/.test(name)) return\n\n return { name, name_end }\n}\n\n/**\n * Transform complete opening tags while preserving all content between them.\n *\n * @param {string} content\n * @param {(tag: string, name: string, name_end: number) => string} transform\n * @returns {string}\n */\nexport const transformOpeningTags = (content, transform) => {\n const chunks = []\n let previous_end = 0\n\n scanTags(content, (tag, start, end) => {\n const opening_tag = getOpeningTag(tag)\n if (!opening_tag) return\n\n chunks.push(\n content.slice(previous_end, start),\n transform(tag, opening_tag.name, opening_tag.name_end)\n )\n previous_end = end\n })\n\n if (chunks.length === 0) return content\n chunks.push(content.slice(previous_end))\n return chunks.join('')\n}\n\n/**\n * Checks if content contains at least one HTML element or custom HTML element.\n * \n * The first regex matches void and self-closing elements.\n * The second regex matches normal HTML elements, plus they can have a namespace.\n * The third regex matches custom HTML elemtns, plus they can have a namespace.\n * \n * HTML elements should begin with a letter, and can end with a letter or number.\n * \n * Custom elements must begin with a letter, and can end with a letter, number,\n * hyphen, underscore, or period. However, all letters must be lowercase.\n * They must have at least one hyphen, and can only have periods and underscores if there is a hyphen.\n * \n * These regexes are based on\n * https://w3c.github.io/html-reference/syntax.html#tag-name\n * and\n * https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name\n * respectively.\n * \n * @param {string} content Content to evaluate.\n * @returns {boolean} A boolean.\n */\nexport const isHtml = (content) => {\n const paired_elements = new Set()\n const standard_element = /^[A-Za-z][A-Za-z0-9]*$/\n const namespaced_element = /^(?:[A-Za-z][A-Za-z0-9]*:)[A-Za-z][A-Za-z0-9]*$/\n const custom_element = /^(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+$/\n\n return scanTags(content, (tag) => {\n if (tag.startsWith('</')) {\n const name = tag.slice(2, -1)\n return paired_elements.has(name)\n }\n\n const opening_tag = getOpeningTag(tag)\n if (!opening_tag) return false\n\n const suffix_start = tag[opening_tag.name_end]\n if (!(suffix_start === '>' || /\\s/.test(suffix_start) || (suffix_start === '/' && tag[opening_tag.name_end + 1] === '>')))\n return false\n\n if (standard_element.test(opening_tag.name)) return true\n if (namespaced_element.test(opening_tag.name) || custom_element.test(opening_tag.name))\n paired_elements.add(opening_tag.name)\n\n return false\n })\n}\n\n/**\n * Generic utility which merges two objects.\n * \n * @param {any} current Original object.\n * @param {any} updates Object to merge with original.\n * @returns {any}\n */\nconst mergeObjects = (current, updates) => {\n if (!current || !updates)\n throw new Error(\"Both 'current' and 'updates' must be passed-in to mergeObjects()\")\n\n /**\n * @type {any}\n */\n let merged\n \n if (Array.isArray(current)) {\n merged = structuredClone(current).concat(updates)\n } else if (typeof current === 'object') {\n merged = { ...current }\n for (let key of Object.keys(updates)) {\n if (typeof updates[key] !== 'object') {\n merged[key] = updates[key]\n } else {\n /* key is an object, run mergeObjects again. */\n merged[key] = mergeObjects(merged[key] || {}, updates[key])\n }\n }\n }\n\n return merged\n}\n\n/**\n * Merge a user config with the default config.\n * \n * @param {import('htmlfy').Config} default_config The default config.\n * @param {import('htmlfy').UserConfig} config The user config.\n * @returns {import('htmlfy').Config}\n */\nexport const mergeConfig = (default_config, config) => {\n return mergeObjects(default_config, config)\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const protectAttributes = (html, constants = DEFAULT_CONSTANTS) => {\n html = html.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (/** @type {string} */match, /** @type {any} */capture) => {\n return match.replace(capture, (match) => {\n return match\n .replace(/\\n/g, constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'nl!')\n .replace(/\\r/g, constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'cr!')\n .replace(/\\s/g, constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'ws!')\n })\n })\n\n return html\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const protectContent = (html, constants = DEFAULT_CONSTANTS) => {\n return html\n .replace(/\\n/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'nl!')\n .replace(/\\r/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'cr!')\n .replace(/\\s/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'ws!')\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const finalProtectContent = (html, constants = DEFAULT_CONSTANTS) => {\n const regex = /\\s*<([a-zA-Z0-9:-]+)[^>]*>\\n\\s*<\\/\\1>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n\\s*)<\\/\\3>/g \n\n return html\n .replace(regex, (/** @type {string} */match, p1, p2, p3, p4) => {\n const text_to_protect = p2 || p4\n\n if (!text_to_protect)\n return match\n\n const protected_text = text_to_protect\n .replace(/\\n/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'nl!')\n .replace(/\\r/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'cr!')\n .replace(/\\s/g, constants.CONTENT_IGNORE_PLACEHOLDER + \"ws!\")\n\n return match.replace(text_to_protect, protected_text)\n })\n}\n\n/**\n * Replace html brackets with ignore string.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns {string}\n */\nexport const setIgnoreAttribute = (html, constants = DEFAULT_CONSTANTS) => {\n // Most documents do not contain HTML-like brackets inside attribute values.\n if (!/=\\s*(?:\"[^\"]*[<>][^\"]*\"|'[^']*[<>][^']*')/.test(html)) return html\n\n return transformOpeningTags(html, (tag, name, name_end) => {\n let quote = ''\n let previous_end = 0\n const chunks = []\n\n for (let index = name_end; index < tag.length - 1; index++) {\n const character = tag[index]\n\n if (!quote && (character === '\"' || character === \"'\")) {\n quote = character\n } else if (quote && character === quote) {\n quote = ''\n } else if (quote && (character === '<' || character === '>')) {\n chunks.push(\n tag.slice(previous_end, index),\n constants.ATTRIBUTE_IGNORE_PLACEHOLDER + (character === '<' ? 'lt!' : 'gt!')\n )\n previous_end = index + 1\n }\n }\n\n if (chunks.length === 0) return tag\n chunks.push(tag.slice(previous_end))\n return chunks.join('')\n })\n}\n\n/**\n * Trim leading and trailing whitespace characters.\n * \n * @param {string} html\n * @param {string[]} trim\n * @returns {string}\n */\nexport const trimify = (html, trim) => {\n for (let e = 0; e < trim.length; e++) {\n /* Whitespace character must be escaped with '\\' or RegExp() won't include it. */\n const leading_whitespace = new RegExp(`(<${trim[e]}[^>]*>)\\\\s+`, \"g\")\n const trailing_whitespace = new RegExp(`\\\\s+(</${trim[e]}>)`, \"g\")\n\n html = html\n .replace(leading_whitespace, '$1')\n .replace(trailing_whitespace, '$1')\n }\n\n return html\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const unprotectAttributes = (html, constants = DEFAULT_CONSTANTS) => {\n html = html.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (/** @type {string} */match, /** @type {any} */capture) => {\n return match.replace(capture, (match) => {\n return match\n .replace(new RegExp(constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'nl!', \"g\"), '\\n')\n .replace(new RegExp(constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'cr!', \"g\"), '\\r')\n .replace(new RegExp(constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'ws!', \"g\"), ' ')\n })\n })\n\n return html\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const unprotectContent = (html, constants = DEFAULT_CONSTANTS) => {\n html = html.replace(new RegExp(`.*${constants.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!.*`, \"g\"), (/** @type {string} */match) => {\n return match.replace(new RegExp(`${constants.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!`, \"g\"), (match) => {\n return match\n .replace(new RegExp(constants.CONTENT_IGNORE_PLACEHOLDER + 'nl!', \"g\"), '\\n')\n .replace(new RegExp(constants.CONTENT_IGNORE_PLACEHOLDER + 'cr!', \"g\"), '\\r')\n .replace(new RegExp(constants.CONTENT_IGNORE_PLACEHOLDER + 'ws!', \"g\"), ' ')\n })\n })\n\n return html\n}\n\n/**\n * Replace ignore string with html brackets.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns {string}\n */\nexport const unsetIgnoreAttribute = (html, constants = DEFAULT_CONSTANTS) => {\n /* Regex to find opening tags and capture their attributes. */\n const tagRegex = /<([\\w:\\-]+)([^>]*)>/g\n const escapedIgnoreString = constants.ATTRIBUTE_IGNORE_PLACEHOLDER.replace(\n /[-\\/\\\\^$*+?.()|[\\]{}]/g,\n \"\\\\$&\"\n )\n const ltPlaceholderRegex = new RegExp(escapedIgnoreString + \"lt!\", \"g\")\n const gtPlaceholderRegex = new RegExp(escapedIgnoreString + \"gt!\", \"g\")\n\n return html.replace(\n tagRegex,\n (\n /** @type {string} */ fullMatch,\n /** @type {string} */ tagName,\n /** @type {string} */ attributesCapture\n ) => {\n const processedAttributes = attributesCapture\n .replace(ltPlaceholderRegex, \"<\")\n .replace(gtPlaceholderRegex, \">\")\n\n /* Reconstruct the tag. */\n return `<${tagName}${processedAttributes}>`\n }\n )\n}\n\n/**\n * Validate any passed-in config options and merge with CONFIG.\n * \n * @param {import('htmlfy').UserConfig} config A user config.\n * @returns {import('htmlfy').Config} A validated config.\n */\nexport const validateConfig = (config) => {\n if (typeof config !== 'object') throw new Error('Config must be an object.')\n\n config = { ...config }\n \n const default_config = { ...CONFIG }\n\n const config_empty = !(\n Object.hasOwn(config, 'content_wrap') ||\n Object.hasOwn(config, 'ignore') || \n Object.hasOwn(config, 'ignore_with') || \n Object.hasOwn(config, 'strict') || \n Object.hasOwn(config, 'tab_size') || \n Object.hasOwn(config, 'tag_wrap') || \n Object.hasOwn(config, 'trim')\n )\n\n if (config_empty) {\n return default_config\n }\n\n let tab_size = config.tab_size\n\n if (tab_size) {\n if (typeof tab_size !== 'number') throw new Error(`tab_size must be a number, not ${typeof config.tab_size}.`)\n\n const safe = Number.isSafeInteger(tab_size)\n if (!safe) throw new Error(`Tab size ${tab_size} is not safe. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger for more info.`)\n\n /** \n * Round down, just in case a safe floating point,\n * like 4.0, was passed.\n */\n tab_size = Math.floor(tab_size)\n if (tab_size < 1 || tab_size > 16) throw new Error('Tab size out of range. Expecting 1 to 16.')\n \n config.tab_size = tab_size\n }\n\n if (Object.hasOwn(config, 'content_wrap') && typeof config.content_wrap !== 'number')\n throw new Error(`content_wrap config must be a number, not ${typeof config.content_wrap}.`)\n\n if (Object.hasOwn(config, 'ignore') && (!Array.isArray(config.ignore) || !config.ignore?.every((e) => typeof e === 'string')))\n throw new Error('Ignore config must be an array of strings.')\n\n if (Object.hasOwn(config, 'ignore_with')) {\n if (typeof config.ignore_with !== 'string')\n throw new Error(`ignore_with must be a string, not ${typeof config.ignore_with}.`)\n else if (config.ignore_with.startsWith('_'))\n /**\n * This negatively affects processing of preserved tag attributes,\n * because tag names can end with an underscore, so the regex\n * does not capture them.\n */\n throw new Error(`ignore_with cannot start with an underscore.`)\n }\n\n if (Object.hasOwn(config, 'strict') && typeof config.strict !== 'boolean')\n throw new Error(`Strict config must be a boolean, not ${typeof config.strict}.`)\n \n if (Object.hasOwn(config, 'tag_wrap') && typeof config.tag_wrap !== 'number')\n throw new Error(`tag_wrap config must be a number, not ${typeof config.tag_wrap}.`)\n\n if (Object.hasOwn(config, 'trim') && (!Array.isArray(config.trim) || !config.trim?.every((e) => typeof e === 'string')))\n throw new Error('Trim config must be an array of strings.')\n\n return mergeConfig(default_config, config)\n\n}\n\n/**\n * \n * @param {string} text \n * @param {number} width \n * @param {string} indent\n * @param {HtmlfyConstants} [constants]\n */\nexport const wordWrap = (text, width, indent, constants = DEFAULT_CONSTANTS) => {\n const words = text.trim().split(/\\s+/)\n \n if (words.length === 0 || (words.length === 1 && words[0] === ''))\n return \"\"\n\n /** @type {string[]} */\n const lines = []\n /** @type {string[]} */\n const current_words = []\n let current_length = 0\n\n const flushLine = () => {\n if (current_words.length === 0) return\n lines.push(indent + current_words.join(' '))\n current_words.length = 0\n current_length = 0\n }\n\n for (const word of words) {\n if (word === \"\") continue\n\n if (word.length >= width) {\n flushLine()\n lines.push(indent + word)\n continue\n }\n\n const next_length = current_length + (current_words.length === 0 ? 0 : 1) + word.length\n if (next_length <= width) {\n current_words.push(word)\n current_length = next_length\n } else {\n flushLine()\n current_words.push(word)\n current_length = word.length\n }\n }\n\n flushLine()\n\n const result = lines.join(\"\\n\")\n\n return protectContent(result, constants)\n}\n\nconst IGNORE_MARKER_PREFIX = \"___HTMLFY_SPECIAL_IGNORE_MARKER_\"\nconst IGNORE_MARKER_REGEX = /___HTMLFY_SPECIAL_IGNORE_MARKER_\\d+___/g\nconst TEXTAREA_MARKER_PREFIX = \"___HTMLFY_TEXTAREA_MARKER_\"\nconst TEXTAREA_MARKER_REGEX = /___HTMLFY_TEXTAREA_MARKER_\\d+___/g\n\n/**\n * Extract the contents of matching elements in one traversal.\n *\n * @param {string} html\n * @param {Set<string>} names\n * @param {string} marker_prefix\n * @param {(content: string) => string} [transform]\n * @returns {{ html_with_markers: string, extracted_map: Map<string,string> }}\n */\nconst extractBlocks = (html, names, marker_prefix, transform = content => content) => {\n const extracted_blocks = new Map()\n const chunks = []\n let marker_id = 0\n let previous_end = 0\n\n /** @type {{ name: string, content_start: number } | undefined} */\n let active_block\n let tag_start = -1\n let quote = ''\n\n for (let index = 0; index < html.length; index++) {\n const character = html[index]\n\n if (active_block) {\n if (character !== '<') continue\n\n let closing_index = index + 1\n while (/\\s/.test(html[closing_index] || '')) closing_index++\n if (html[closing_index] !== '/') continue\n\n closing_index++\n while (/\\s/.test(html[closing_index] || '')) closing_index++\n if (!html.startsWith(active_block.name, closing_index)) continue\n\n closing_index += active_block.name.length\n while (/\\s/.test(html[closing_index] || '')) closing_index++\n if (html[closing_index] !== '>') continue\n\n const marker = `${marker_prefix}${marker_id++}___`\n chunks.push(html.slice(previous_end, active_block.content_start), marker)\n extracted_blocks.set(marker, transform(html.slice(active_block.content_start, index)))\n previous_end = index\n active_block = undefined\n index = closing_index\n continue\n }\n\n if (tag_start === -1) {\n if (character === '<') tag_start = index\n continue\n }\n\n if (quote) {\n if (character === quote) quote = ''\n continue\n }\n\n if (character === '\"' || character === \"'\") {\n quote = character\n } else if (character === '<') {\n tag_start = index\n } else if (character === '>') {\n const opening_tag = getOpeningTag(html.slice(tag_start, index + 1))\n if (opening_tag && names.has(opening_tag.name)) {\n active_block = { name: opening_tag.name, content_start: index + 1 }\n }\n tag_start = -1\n }\n }\n\n if (extracted_blocks.size === 0)\n return { html_with_markers: html, extracted_map: extracted_blocks }\n\n chunks.push(html.slice(previous_end))\n return { html_with_markers: chunks.join(''), extracted_map: extracted_blocks }\n}\n\n/**\n * Extract any HTML blocks to be ignored,\n * and replace them with a placeholder for re-insertion later.\n *\n * @param {string} html\n * @param {string[]} ignore\n * @returns {{ html_with_markers: string, extracted_map: Map<string,string> }}\n */\nexport function extractIgnoredBlocks(html, ignore) {\n return extractBlocks(html, new Set(ignore), IGNORE_MARKER_PREFIX)\n}\n\n/**\n * Protect textarea contents without expanding them into entities.\n *\n * @param {string} html\n * @returns {{ html_with_markers: string, extracted_map: Map<string,string> }}\n */\nexport function extractTextareaBlocks(html) {\n return extractBlocks(html, new Set(['textarea']), TEXTAREA_MARKER_PREFIX, content => content\n .replace(/&lt;/g, '<')\n .replace(/&gt;/g, '>')\n .replace(/&quot;/g, '\"')\n .replace(/&apos;/g, \"'\")\n .replace(/&#10;/g, '\\n')\n .replace(/&#13;/g, '\\r')\n .replace(/&nbsp;/g, ' ')\n .replace(/\\s+/g, ' ')\n )\n}\n\n/**\n * Re-insert ignored HTML blocks.\n * \n * @param {string} html_with_markers \n * @param {Map<any,any>} extracted_map \n * @returns \n */\nexport function reinsertIgnoredBlocks(html_with_markers, extracted_map) {\n return html_with_markers.replace(IGNORE_MARKER_REGEX, marker => extracted_map.get(marker) ?? marker)\n}\n\n/**\n * Re-insert protected textarea contents in one pass.\n *\n * @param {string} html_with_markers\n * @param {Map<string,string>} extracted_map\n * @returns {string}\n */\nexport function reinsertTextareaBlocks(html_with_markers, extracted_map) {\n return html_with_markers.replace(TEXTAREA_MARKER_REGEX, marker => extracted_map.get(marker) ?? marker)\n}\n\nconst void_element_regex = new RegExp(`<(${VOID_ELEMENTS.join(\"|\")})(?:\\\\s(?:[^/>]|/(?!>))*)*>`, 'g')\n\n/**\n * Add a placeholder for void elements that are not self-closing.\n * This is for internal processing only.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns \n */\nexport function setSelfClosing(html, constants = DEFAULT_CONSTANTS) {\n return html.replace(\n // match only void elements that are not self-closing\n void_element_regex,\n match => match.replace(/>$/, constants.SELF_CLOSING_PLACEHOLDER)\n )\n}\n\n/**\n * Remove internal placeholder for non-native self-closing void elements.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns \n */\nexport function unsetSelfClosing(html, constants = DEFAULT_CONSTANTS) {\n return html.replace(constants.SELF_CLOSING_PLACEHOLDER, \">\")\n}\n","import {\n extractIgnoredBlocks,\n extractTextareaBlocks,\n isHtml,\n reinsertIgnoredBlocks,\n reinsertTextareaBlocks,\n transformOpeningTags,\n validateConfig\n} from \"./utils.js\"\n\n/**\n * Minify HTML using configuration already validated by the caller.\n *\n * @param {string} html\n * @param {import('htmlfy').Config} validated_config\n * @param {boolean} extract_ignored\n * @returns {string}\n */\nconst minifyHtml = (html, validated_config, extract_ignored) => {\n /** @type {Map<any,any> | undefined} */\n let ignore_map\n /** @type {Map<string,string> | undefined} */\n let textarea_map\n const ignore = validated_config.ignore.length > 0\n\n /* Extract ignored elements. Skipped if prettify has already ignored blocks. */\n if (extract_ignored && ignore) {\n const { html_with_markers, extracted_map } = extractIgnoredBlocks(html, validated_config.ignore)\n html = html_with_markers\n ignore_map = extracted_map\n }\n\n /* Keep textarea markup out of the general minification passes. */\n if (!validated_config.ignore.includes('textarea') && html.includes('textarea')) {\n const { html_with_markers, extracted_map } = extractTextareaBlocks(html)\n html = html_with_markers\n textarea_map = extracted_map\n }\n\n /* All other minification. */\n // Remove ALL newlines and tabs explicitly.\n html = html.replace(/\\n|\\t/g, '')\n\n // Remove whitespace ONLY between tags.\n html = html.replace(/>\\s+</g, \"><\")\n\n // Collapse any remaining multiple spaces to single spaces.\n html = html.replace(/ {2,}/g, ' ')\n\n // Protect space between text content and an opening tag (e.g., \"text <a>\")\n html = html.replace(\n /(\\S) (<[a-zA-Z][a-zA-Z0-9_:-]*)/g,\n `$1___MINIFY-PROTECTED-SPACE___$2`\n )\n\n // Protect space between a closing tag and text content (e.g., \"</a> text\")\n html = html.replace(\n /(<\\/[a-zA-Z][a-zA-Z0-9_:-]*>) (\\S)/g,\n `$1___MINIFY-PROTECTED-SPACE___$2`\n )\n\n // Remove specific single spaces between tags and whitespace within tags.\n html = html.replace(/ >/g, \">\") // <tag > -> <tag>\n html = html.replace(/ </g, \"<\") // leading space before tag\n html = html.replace(/> /g, \">\") // trailing space after tag\n html = html.replace(/< /g, \"<\") // < tag> -> <tag>\n html = html.replace(/<\\s+\\//g, '</') // < /tag> -> </tag>\n html = html.replace(/<\\/\\s+/g, '</') // </ tag> -> </tag>\n\n // Unprotect space around inner tags\n html = html.replace(new RegExp('___MINIFY-PROTECTED-SPACE___', 'g'), ' ')\n\n // Trim spaces around equals signs in attributes (run before value trim)\n // This handles `attr = \"value\"` -> `attr=\"value\"`\n html = html.replace(/ = /g, \"=\")\n // Consider safer alternatives if needed (e.g., / = \"/g, '=\"')\n\n // Trim whitespace inside quoted attribute values when any are padded.\n if (/=[\"']\\s|\\s[\"']/.test(html)) {\n html = transformOpeningTags(html, (tag, name, name_end) => {\n const chunks = []\n let previous_end = 0\n let index = name_end\n\n while (index < tag.length - 1) {\n while (/\\s/.test(tag[index] || '')) index++\n\n const attribute_start = index\n while (/[a-zA-Z0-9_-]/.test(tag[index] || '')) index++\n if (index === attribute_start || tag[index] !== '=') {\n index++\n continue\n }\n\n const quote = tag[index + 1]\n if (quote !== '\"' && quote !== \"'\") {\n index++\n continue\n }\n\n const value_start = index + 2\n const value_end = tag.indexOf(quote, value_start)\n if (value_end === -1) break\n\n const value = tag.slice(value_start, value_end)\n const trimmed_value = value.trim()\n if (trimmed_value !== value) {\n chunks.push(tag.slice(previous_end, value_start), trimmed_value)\n previous_end = value_end\n }\n index = value_end + 1\n }\n\n if (chunks.length === 0) return tag\n chunks.push(tag.slice(previous_end))\n return chunks.join('')\n })\n }\n\n // Final trim for the whole string\n html = html.trim()\n\n if (textarea_map) {\n html = reinsertTextareaBlocks(html, textarea_map)\n }\n\n /* Re-insert ignored elements. Skipped unless minify did the ignore. */\n if (ignore_map) {\n html = reinsertIgnoredBlocks(html, ignore_map)\n }\n\n return html\n}\n\n/**\n * Minify HTML that has already been checked and had ignored blocks extracted.\n *\n * @param {string} html\n * @param {import('htmlfy').Config} config\n * @returns {string}\n */\nexport const minifyKnownHtml = (html, config) => minifyHtml(html, config, false)\n\n/**\n * Creates a single-line HTML string\n * by removing line returns, tabs, and relevant spaces.\n *\n * @param {string} html The HTML string to minify.\n * @param {import('htmlfy').UserConfig} [config] A user configuration object.\n * @returns {string} A minified HTML string.\n */\nexport const minify = (html, config) => {\n if (!isHtml(html)) return html\n return minifyHtml(html, validateConfig(config || {}), true)\n}\n","import { minifyKnownHtml } from './minify.js'\nimport { \n createConstants,\n extractIgnoredBlocks,\n finalProtectContent,\n isHtml, \n protectAttributes, \n reinsertIgnoredBlocks, \n setIgnoreAttribute, \n setSelfClosing, \n trimify, \n unprotectAttributes, \n unprotectContent, \n unsetIgnoreAttribute, \n validateConfig, \n wordWrap\n} from './utils.js'\nimport { VOID_ELEMENTS } from './constants.js'\n\nconst VOID_ELEMENT_SET = new Set(VOID_ELEMENTS)\nconst TOKEN_CLOSING = 1\nconst TOKEN_COMMENT = 2\nconst TOKEN_DOCTYPE = 4\nconst TOKEN_IGNORED = 8\nconst TOKEN_SELF_CLOSING = 16\nconst TOKEN_SYNTHETIC_SELF_CLOSING = 32\nconst TOKEN_INLINE = 64\n\n/**\n * @typedef {object} Token\n * @property {'tag' | 'text'} type\n * @property {string} value\n * @property {number} flags\n */\n\n/**\n * Isolate tags, content, and comments.\n * \n * @param {string} html The HTML string to evaluate.\n * @param {import('./utils.js').HtmlfyConstants} constants\n * @returns {Token[]}\n */\nconst enqueue = (html, constants) => {\n /** @type {Token[]} */\n const lines = []\n /* Regex to find tags OR text content between tags. */\n const regex = /<[^>]+>|[^<]+/g\n\n /* Use replace for callback iteration, but avoid constructing the old marker output. */\n html.replace(regex, (value) => {\n const type = value.startsWith('<') ? 'tag' : 'text'\n\n if (type === 'text') {\n if (value.trim().length > 0) {\n lines.push({\n type,\n value,\n flags: value.startsWith('___HTMLFY_SPECIAL_IGNORE_MARKER_') ? TOKEN_IGNORED : 0,\n })\n }\n return ''\n }\n\n const trimmed = value.trim()\n const synthetic_self_closing = trimmed.endsWith(constants.SELF_CLOSING_PLACEHOLDER)\n let flags = 0\n if (trimmed.startsWith('</')) flags |= TOKEN_CLOSING\n if (trimmed.startsWith('<!--')) flags |= TOKEN_COMMENT\n if (trimmed.startsWith('<!doctype')) flags |= TOKEN_DOCTYPE\n if (trimmed.endsWith('/>') || synthetic_self_closing) flags |= TOKEN_SELF_CLOSING\n if (synthetic_self_closing) flags |= TOKEN_SYNTHETIC_SELF_CLOSING\n\n lines.push({\n type,\n value,\n flags,\n })\n return ''\n })\n\n return lines\n}\n\n/**\n * Collapse the same simple element pairs handled by the final output regex.\n *\n * @param {Token[]} lines\n * @returns {Token[]}\n */\nconst collapseInlineTokens = (lines) => {\n /** @type {Token[]} */\n const collapsed = []\n\n for (let index = 0; index < lines.length; index++) {\n const opening = lines[index]\n\n if (opening.type === 'tag' && !(opening.flags & (\n TOKEN_CLOSING |\n TOKEN_COMMENT |\n TOKEN_DOCTYPE |\n TOKEN_SELF_CLOSING\n ))) {\n const name_match = opening.value.match(/^<([^>\\s]+)[^>]*>$/)\n const name = name_match?.[1]\n const content = lines[index + 1]\n const possible_closing = content?.type === 'text' ? lines[index + 2] : content\n\n if (name && possible_closing?.value === `</${name}>`) {\n const empty_pair = content?.type === 'tag' && /^[\\w:._-]+$/.test(name)\n const text_pair = content?.type === 'text' && /[^><\\/\\s]/.test(content.value)\n\n if (empty_pair || text_pair) {\n collapsed.push({\n type: 'tag',\n value: opening.value + (text_pair ? content.value.trim() : '') + possible_closing.value,\n flags: TOKEN_INLINE,\n })\n index += text_pair ? 2 : 1\n continue\n }\n }\n }\n\n collapsed.push(opening)\n }\n\n return collapsed\n}\n\n/**\n * Process enqueued content.\n * \n * @param {Token[]} lines\n * @param {import('htmlfy').Config} config\n * @param {import('./utils.js').HtmlfyConstants} constants\n * @returns {string}\n */\nconst process = (lines, config, constants) => {\n const step = \" \".repeat(config.tab_size)\n const tag_wrap = config.tag_wrap\n const content_wrap = config.content_wrap\n const strict = config.strict\n\n /* Track current number of indentations needed. */\n let indent_level = 0\n\n /** @type string[] */\n const output_lines = []\n const tag_regex = /<[A-Za-z]+\\b[^>]*(?:.|\\n)*?\\/?>/ /* Is opening tag or void element. */\n const attribute_regex = /\\s{1}[A-Za-z:@#*?$()\\[\\].-]+(?:=\".*?\")?/g /* Matches all tag/element attributes. */\n\n /* Process lines and indent. */\n lines.forEach((source, index) => {\n let current_line_value = source.value\n\n let subtrahend = 0\n const prev_line_data = lines[index - 1]\n\n indent_level++\n\n if (index === 0) subtrahend++\n /* We're processing a closing tag. */\n if (source.flags & TOKEN_CLOSING) subtrahend++\n /* prevLine is a doctype declaration. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_DOCTYPE)) subtrahend++\n /* prevLine is a comment. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_COMMENT)) subtrahend++\n /* prevLine is a void element. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_SELF_CLOSING)) subtrahend++\n /* prevLine is a closing tag. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_CLOSING)) subtrahend++\n /* prevLine opens and closes on the same line. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_INLINE)) subtrahend++\n /* prevLine is text. */\n if (prev_line_data?.type === \"text\") subtrahend++\n\n /* Determine offset for line indentation. */\n const offset = Math.max(0, indent_level - subtrahend)\n /* Correct indent level for *this* line's content */\n const current_indent_level = offset // Store the level for this line\n\n indent_level = current_indent_level\n\n /**\n * Starts with a single punctuation character.\n * Add punctuation to end of previous line.\n */\n if (source.type === 'text' && /^[!,;\\.]/.test(current_line_value)) {\n if (current_line_value.length === 1) {\n output_lines[output_lines.length - 1] = \n output_lines.at(-1) + current_line_value\n return\n } else {\n output_lines[output_lines.length - 1] = \n output_lines.at(-1) + current_line_value.charAt(0)\n current_line_value = current_line_value.slice(1).trim()\n\n /* If nothing left after extracting punctuation, skip this line. */\n if (current_line_value.length === 0) return\n }\n }\n\n const padding = step.repeat(current_indent_level)\n\n if (source.flags & TOKEN_IGNORED) {\n /* Stop processing this line, as it's set to be ignored. */\n output_lines.push(current_line_value)\n } else {\n /* Remove comment. */\n if (strict && (source.flags & TOKEN_COMMENT))\n return\n\n let result = current_line_value\n\n /* Remove self-closing placeholder, if needed. */\n if (source.flags & TOKEN_SYNTHETIC_SELF_CLOSING)\n result = result.replace(constants.SELF_CLOSING_PLACEHOLDER, '>')\n\n if (\n source.type === 'text' && \n content_wrap > 0 && \n result.length >= content_wrap\n ) {\n result = wordWrap(result, content_wrap, padding, constants)\n }\n /* Wrap the attributes of open tags and void elements. */\n else if (\n tag_wrap > 0 &&\n result.length > tag_wrap &&\n tag_regex.test(result)\n ) {\n attribute_regex.lastIndex = 0 // Reset stateful regex\n\n const attributes = []\n let first_attribute_start = -1\n let last_attribute_end = -1\n let attribute_match\n\n while ((attribute_match = attribute_regex.exec(result)) !== null) {\n if (first_attribute_start === -1) first_attribute_start = attribute_match.index\n last_attribute_end = attribute_regex.lastIndex\n attributes.push(attribute_match[0].trim())\n }\n\n if (attributes.length > 0) {\n const opening_part = result.slice(0, first_attribute_start)\n const closing_part = result.slice(last_attribute_end).trim()\n const inner_padding = padding + step\n const wrapped_tag = [padding + opening_part]\n\n for (const attribute of attributes) {\n wrapped_tag.push(inner_padding + attribute)\n }\n\n const tag_name_match = opening_part.match(/<([A-Za-z_:-]+)/)\n const tag_name = tag_name_match ? tag_name_match[1] : \"\"\n const is_self_closing = result.endsWith(\"/>\") && VOID_ELEMENT_SET.has(tag_name)\n const closing_padding = padding + (strict && is_self_closing ? \" \" : \"\")\n\n wrapped_tag.push(closing_padding + closing_part)\n result = wrapped_tag.join('\\n')\n } else {\n result = padding + result\n }\n } else {\n /* Apply simple indentation (if no wrapping occurred) */\n result = padding + result\n }\n\n /* Add the processed line (or lines if wordWrap creates them) to the output */\n output_lines.push(result)\n }\n })\n\n /* Join all processed lines into the final HTML string */\n let final_html = output_lines.join(\"\\n\")\n\n /* Preserve wrapped attributes. */\n if (tag_wrap > 0) final_html = protectAttributes(final_html, constants)\n\n /* Extra preserve wrapped content. */\n if (content_wrap > 0 && new RegExp(`/\\\\n[ ]*[^\\\\n]*${constants.CONTENT_IGNORE_PLACEHOLDER}[^\\\\n]*\\\\n/`).test(final_html))\n final_html = finalProtectContent(final_html, constants)\n\n /* Remove line returns, tabs, and consecutive spaces within html elements or their content. */\n if (tag_wrap > 0 || content_wrap > 0) {\n final_html = final_html.replace(\n /<(?<Element>[^>\\s]+)[^>]*>[^<]*?[^><\\/\\s][^<]*?<\\/\\k<Element>>|<script[^>]*>[\\s]*<\\/script>|<([\\w:\\._-]+)([^>]*)><\\/\\2>|<([\\w:\\._-]+)([^>]*)>[\\s]+<\\/\\4>/g,\n match => {\n // Check if this contains placeholder\n if (match.includes(constants.SELF_CLOSING_PLACEHOLDER) || match.includes(constants.CONTENT_IGNORE_PLACEHOLDER)) {\n return match // Don't modify if it contains the placeholder\n }\n\n return match.replace(/\\n|\\t|\\s{2,}/g, '')\n }\n )\n }\n\n /* Revert wrapped content. */\n if (content_wrap > 0) final_html = unprotectContent(final_html, constants)\n\n /* Revert wrapped attributes. */\n if (tag_wrap > 0) final_html = unprotectAttributes(final_html, constants)\n\n /* Remove self-closing nature of void elements. */\n if (strict) final_html = final_html.replace(/\\s\\/>|\\/>/g, '>')\n\n /* Trim leading and/or trailing line returns. */\n if (final_html.startsWith(\"\\n\")) final_html = final_html.substring(1)\n if (final_html.endsWith(\"\\n\")) final_html = final_html.substring(0, final_html.length - 1)\n\n return final_html\n}\n\n/**\n * Format HTML with line returns and indentations.\n * \n * @param {string} html The HTML string to prettify.\n * @param {import('htmlfy').UserConfig} [config] A user configuration object.\n * @returns {string} A well-formed HTML string.\n */\nexport const prettify = (html, config) => {\n /* Return content as-is if it does not contain any HTML elements. */\n if (!isHtml(html)) return html\n\n const validated_config = validateConfig(config || {})\n const constants = createConstants(validated_config.ignore_with)\n\n const ignore = validated_config.ignore.length > 0\n\n /** @type {Map<any,any> | undefined} */\n let ignore_map\n\n /* Allows you to trimify before ignoring. */\n if (validated_config.trim.length > 0) html = trimify(html, validated_config.trim)\n\n /* Extract ignored elements. */\n if (ignore) {\n const { html_with_markers, extracted_map } = extractIgnoredBlocks(html, validated_config.ignore)\n html = html_with_markers\n ignore_map = extracted_map\n }\n\n /* Preserve html text within attribute values. */\n html = setIgnoreAttribute(html, constants)\n\n /* Insert placeholder for void elements that aren't self-closing. */\n html = setSelfClosing(html, constants)\n\n html = minifyKnownHtml(html, validated_config)\n let lines = enqueue(html, constants)\n if (validated_config.tag_wrap === 0 && validated_config.content_wrap === 0)\n lines = collapseInlineTokens(lines)\n html = process(lines, validated_config, constants)\n\n /* Revert html text within attribute values. */\n html = unsetIgnoreAttribute(html, constants)\n\n /* Re-insert ignored elements. */\n if (ignore_map) {\n html = reinsertIgnoredBlocks(html, ignore_map)\n }\n\n return html\n}\n",null],"names":["BUILD20"],"mappings":"AAAA;AACA,IAAI,KAAK,GAAG;AACZ,EAyBE,SAAS,EAAE,IAAI;AACjB,EAsBE,cAAc,EAAE,IA+BlB,CAAC;;ACjFD;AACA;AACA;;;AAcA;AACA,IAAI,MAAM,GAAG,4BAA4B;AACzC,IAAI,OAAO,GAAG,8BAA8B;;AAsE5C;AACA,IAAI,UAAU,GAAG,CAAC,GAAG,KAAK;AAC1B,EAAE,IAAI,GAAG,CAAC,qBAAqB,EAAE;AACjC,IAAI,OAAO,GAAG,CAAC,qBAAqB,EAAE;AACtC,EAAE;AACF,EAAE,OAAO,MAAM;AACf,CAAC;AAsCD,IAAI,iBAAiB,GAAG,CAAC,GAAG,EAAE,UAAU,KAAK,UAAU,IAAI,GAAG;AAQ9D,IAAI,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,IAAgB,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;AAqFnE,IAAI,QAAQ,GAAG,8BAA8B;AAY7C,IAAI,GAAG,GAAG,O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;AACF,iBAAA;aACF;QACH,CAAC,EAAE,EAAE,CAAC;QAEN,OAAO;AACL,YAAA,GAAG,sBAAsB;AACzB,YAAA,GAAG,uBAAuB;AAC1B,YAAA,GAAG,wBAAwB;AAC3B,YAAA,GAAG,sBAAsB;AACzB,YAAA,GAAG,wBAAwB;AAC3B,YAAA,GAAG,qBAAqB;AACxB,YAAA,GAAG,mBAAmB;SACvB;AACH,IAAA,CAAC;AAED;;;;AAIG;AACH,IAAA,2BAA2B,GAAG,CAAC,OAAe,KAAI;QAChD,MAAM,aAAa,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;AACrD,QAAA,OAAO,aAAa,EAAE,MAAM,IAAI,aAAa,EAAE,IAAI;AACrD,IAAA,CAAC;AACF;;","x_google_ignoreList":[0,1,2,3,4,5]}
1
+ {"version":3,"file":"index.js","sources":["../../../../node_modules/.pnpm/@stencil+core@4.45.6/node_modules/@stencil/core/internal/app-data/index.js","../../../../node_modules/.pnpm/@stencil+core@4.45.6/node_modules/@stencil/core/internal/client/index.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/constants.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/utils.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/minify.js","../../../../node_modules/.pnpm/htmlfy@1.1.0/node_modules/htmlfy/src/prettify.js","../../src/storybook/stencil/stencil.ts"],"sourcesContent":["// src/app-data/index.ts\nvar BUILD = {\n allRenderFn: false,\n element: true,\n event: true,\n hasRenderFn: true,\n hostListener: true,\n hostListenerTargetWindow: true,\n hostListenerTargetDocument: true,\n hostListenerTargetBody: true,\n hostListenerTargetParent: false,\n hostListenerTarget: true,\n member: true,\n method: true,\n mode: true,\n observeAttribute: true,\n prop: true,\n propMutable: true,\n reflect: true,\n scoped: true,\n shadowDom: true,\n slot: true,\n cssAnnotations: true,\n state: true,\n style: true,\n formAssociated: false,\n svg: true,\n updatable: true,\n vdomAttribute: true,\n vdomXlink: true,\n vdomClass: true,\n vdomFunctional: true,\n vdomKey: true,\n vdomListener: true,\n vdomRef: true,\n vdomPropOrAttr: true,\n vdomRender: true,\n vdomStyle: true,\n vdomText: true,\n propChangeCallback: true,\n taskQueue: true,\n hotModuleReplacement: false,\n isDebug: false,\n isDev: false,\n isTesting: false,\n hydrateServerSide: false,\n hydrateClientSide: false,\n lifecycleDOMEvents: false,\n lazyLoad: false,\n profile: false,\n slotRelocation: true,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n appendChildSlotFix: false,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n cloneNodeFix: false,\n hydratedAttribute: false,\n hydratedClass: true,\n // TODO(STENCIL-1305): remove this option\n scriptDataOpts: false,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n scopedSlotTextContentFix: false,\n // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n shadowDomShim: false,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n slotChildNodesFix: false,\n invisiblePrehydration: true,\n propBoolean: true,\n propNumber: true,\n propString: true,\n constructableCSS: true,\n devTools: false,\n shadowDelegatesFocus: true,\n shadowSlotAssignmentManual: false,\n initializeNextTick: false,\n asyncLoading: true,\n asyncQueue: false,\n // TODO: deprecated in favour of `setTagTransformer` and `transformTag`. Remove in 5.0\n transformTagName: false,\n attachStyles: true,\n // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior\n experimentalSlotFixes: false\n};\nvar Env = {};\nvar NAMESPACE = (\n /* default */\n \"app\"\n);\nexport {\n BUILD,\n Env,\n NAMESPACE\n};\n","/*\n Stencil Client Platform v4.45.6 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-build.ts\nimport { BUILD } from \"@stencil/core/internal/app-data\";\nvar Build = {\n isDev: BUILD.isDev ? true : false,\n isBrowser: true,\n isServer: false,\n isTesting: BUILD.isTesting ? true : false\n};\n\n// src/client/client-host-ref.ts\nimport { BUILD as BUILD3 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/constants.ts\nvar SVG_NS = \"http://www.w3.org/2000/svg\";\nvar HTML_NS = \"http://www.w3.org/1999/xhtml\";\nvar PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {\n PrimitiveType2[\"Undefined\"] = \"undefined\";\n PrimitiveType2[\"Null\"] = \"null\";\n PrimitiveType2[\"String\"] = \"string\";\n PrimitiveType2[\"Number\"] = \"number\";\n PrimitiveType2[\"SpecialNumber\"] = \"number\";\n PrimitiveType2[\"Boolean\"] = \"boolean\";\n PrimitiveType2[\"BigInt\"] = \"bigint\";\n return PrimitiveType2;\n})(PrimitiveType || {});\nvar NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {\n NonPrimitiveType2[\"Array\"] = \"array\";\n NonPrimitiveType2[\"Date\"] = \"date\";\n NonPrimitiveType2[\"Map\"] = \"map\";\n NonPrimitiveType2[\"Object\"] = \"object\";\n NonPrimitiveType2[\"RegularExpression\"] = \"regexp\";\n NonPrimitiveType2[\"Set\"] = \"set\";\n NonPrimitiveType2[\"Channel\"] = \"channel\";\n NonPrimitiveType2[\"Symbol\"] = \"symbol\";\n return NonPrimitiveType2;\n})(NonPrimitiveType || {});\nvar TYPE_CONSTANT = \"type\";\nvar VALUE_CONSTANT = \"value\";\nvar SERIALIZED_PREFIX = \"serialized:\";\n\n// src/utils/es2022-rewire-class-members.ts\nimport { BUILD as BUILD2 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/get-prop-descriptor.ts\nfunction getPropertyDescriptor(obj, memberName, getOnly) {\n const stopAt = typeof HTMLElement !== \"undefined\" ? HTMLElement.prototype : null;\n while (obj && obj !== stopAt) {\n const desc = Object.getOwnPropertyDescriptor(obj, memberName);\n if (desc && (!getOnly || desc.get)) return desc;\n obj = Object.getPrototypeOf(obj);\n }\n return void 0;\n}\n\n// src/utils/es2022-rewire-class-members.ts\nvar reWireGetterSetter = (instance, hostRef) => {\n var _a;\n const cmpMeta = hostRef.$cmpMeta$;\n const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});\n members.map(([memberName, [memberFlags]]) => {\n if ((BUILD2.state || BUILD2.prop) && (memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {\n const ogValue = instance[memberName];\n const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName, true) || Object.getOwnPropertyDescriptor(instance, memberName);\n if (ogDescriptor) {\n Object.defineProperty(instance, memberName, {\n get() {\n return ogDescriptor.get.call(this);\n },\n set(newValue) {\n ogDescriptor.set.call(this, newValue);\n },\n configurable: true,\n enumerable: true\n });\n }\n if (hostRef.$instanceValues$.has(memberName)) {\n instance[memberName] = hostRef.$instanceValues$.get(memberName);\n } else if (ogValue !== void 0) {\n instance[memberName] = ogValue;\n }\n }\n });\n};\n\n// src/client/client-host-ref.ts\nvar getHostRef = (ref) => {\n if (ref.__stencil__getHostRef) {\n return ref.__stencil__getHostRef();\n }\n return void 0;\n};\nvar registerInstance = (lazyInstance, hostRef) => {\n if (!hostRef) return;\n lazyInstance.__stencil__getHostRef = () => hostRef;\n hostRef.$lazyInstance$ = lazyInstance;\n if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD3.state || BUILD3.prop)) {\n reWireGetterSetter(lazyInstance, hostRef);\n }\n};\nvar registerHost = (hostElement, cmpMeta) => {\n const hostRef = {\n $flags$: 0,\n $hostElement$: hostElement,\n $cmpMeta$: cmpMeta,\n $instanceValues$: /* @__PURE__ */ new Map(),\n $serializerValues$: /* @__PURE__ */ new Map()\n };\n if (BUILD3.isDev) {\n hostRef.$renderCount$ = 0;\n }\n if (BUILD3.method && BUILD3.lazyLoad) {\n hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);\n }\n if (BUILD3.asyncLoading) {\n hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);\n hostElement[\"s-p\"] = [];\n hostElement[\"s-rc\"] = [];\n }\n if (BUILD3.lazyLoad) {\n hostRef.$fetchedCbList$ = [];\n }\n const ref = hostRef;\n hostElement.__stencil__getHostRef = () => ref;\n if (!BUILD3.lazyLoad && cmpMeta.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD3.state || BUILD3.prop)) {\n reWireGetterSetter(hostElement, hostRef);\n }\n return ref;\n};\nvar isMemberInElement = (elm, memberName) => memberName in elm;\n\n// src/client/client-load-module.ts\nimport { BUILD as BUILD5 } from \"@stencil/core/internal/app-data\";\n\n// src/client/client-log.ts\nimport { BUILD as BUILD4 } from \"@stencil/core/internal/app-data\";\nvar customError;\nvar consoleError = (e, el) => (customError || console.error)(e, el);\nvar STENCIL_DEV_MODE = BUILD4.isTesting ? [\"STENCIL:\"] : [\n \"%cstencil\",\n \"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px\"\n];\nvar consoleDevError = (...m) => console.error(...STENCIL_DEV_MODE, ...m);\nvar consoleDevWarn = (...m) => console.warn(...STENCIL_DEV_MODE, ...m);\nvar consoleDevInfo = (...m) => console.info(...STENCIL_DEV_MODE, ...m);\nvar setErrorHandler = (handler) => customError = handler;\n\n// src/client/client-load-module.ts\nvar cmpModules = /* @__PURE__ */ new Map();\nvar failedLoadAttempts = /* @__PURE__ */ new Map();\nvar MODULE_IMPORT_PREFIX = \"./\";\nvar loadModule = (cmpMeta, hostRef, hmrVersionId) => {\n var _a;\n const exportName = cmpMeta.$tagName$.replace(/-/g, \"_\");\n const bundleId = cmpMeta.$lazyBundleId$;\n if (BUILD5.isDev && typeof bundleId !== \"string\") {\n consoleDevError(\n `Trying to lazily load component <${cmpMeta.$tagName$}> with style mode \"${hostRef.$modeName$}\", but it does not exist.`\n );\n return void 0;\n } else if (!bundleId) {\n return void 0;\n }\n const module = !BUILD5.hotModuleReplacement ? cmpModules.get(bundleId) : false;\n if (module) {\n return module[exportName];\n }\n const retryCount = (_a = failedLoadAttempts.get(bundleId)) != null ? _a : 0;\n const cacheBustParams = [\n retryCount > 0 ? `s-retry=${retryCount}` : \"\",\n BUILD5.hotModuleReplacement && hmrVersionId ? `s-hmr=${hmrVersionId}` : \"\"\n ].filter(Boolean).join(\"&\");\n /*!__STENCIL_STATIC_IMPORT_SWITCH__*/\n return import(\n /* @vite-ignore */\n /* turbopackIgnore: true */\n /* webpackInclude: /\\.entry\\.js$/ */\n /* webpackExclude: /\\.system\\.entry\\.js$/ */\n /* webpackMode: \"lazy\" */\n `./${bundleId}.entry.js${cacheBustParams ? \"?\" + cacheBustParams : \"\"}`\n ).then(\n (importedModule) => {\n if (!BUILD5.hotModuleReplacement) {\n failedLoadAttempts.delete(bundleId);\n cmpModules.set(bundleId, importedModule);\n }\n return importedModule[exportName];\n },\n (e) => {\n failedLoadAttempts.set(bundleId, retryCount + 1);\n consoleError(e, hostRef.$hostElement$);\n }\n );\n};\n\n// src/client/client-style.ts\nvar styles = /* @__PURE__ */ new Map();\nvar modeResolver = [];\nvar setScopedSSR = (_opts) => {\n};\nvar needsScopedSSR = () => false;\n\n// src/client/client-task-queue.ts\nimport { BUILD as BUILD7 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/runtime-constants.ts\nvar CONTENT_REF_ID = \"r\";\nvar ORG_LOCATION_ID = \"o\";\nvar SLOT_NODE_ID = \"s\";\nvar TEXT_NODE_ID = \"t\";\nvar COMMENT_NODE_ID = \"c\";\nvar HYDRATE_ID = \"s-id\";\nvar HYDRATED_STYLE_ID = \"sty-id\";\nvar HYDRATE_CHILD_ID = \"c-id\";\nvar HYDRATED_CSS = \"{visibility:hidden}.hydrated{visibility:inherit}\";\nvar STENCIL_DOC_DATA = \"_stencilDocData\";\nvar DEFAULT_DOC_DATA = {\n hostIds: 0,\n rootLevelIds: 0,\n staticComponents: /* @__PURE__ */ new Set()\n};\nvar SLOT_FB_CSS = \"slot-fb{display:contents}slot-fb[hidden]{display:none}\";\nvar XLINK_NS = \"http://www.w3.org/1999/xlink\";\nvar MAX_LAZY_LOAD_RETRIES = 3;\nvar LAZY_LOAD_RETRY_INTERVAL_MS = 1e3;\nvar FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS = [\n \"formAssociatedCallback\",\n \"formResetCallback\",\n \"formDisabledCallback\",\n \"formStateRestoreCallback\"\n];\n\n// src/client/client-window.ts\nimport { BUILD as BUILD6 } from \"@stencil/core/internal/app-data\";\nvar win = typeof window !== \"undefined\" ? window : {};\nvar H = win.HTMLElement || class {\n};\nvar plt = {\n $flags$: 0,\n $resourcesUrl$: \"\",\n jmp: (h2) => h2(),\n raf: (h2) => requestAnimationFrame(h2),\n ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),\n rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),\n ce: (eventName, opts) => new CustomEvent(eventName, opts)\n};\nvar setPlatformHelpers = (helpers) => {\n Object.assign(plt, helpers);\n};\nvar supportsShadow = BUILD6.shadowDom;\nvar supportsListenerOptions = /* @__PURE__ */ (() => {\n var _a;\n let supportsListenerOptions2 = false;\n try {\n (_a = win.document) == null ? void 0 : _a.addEventListener(\n \"e\",\n null,\n Object.defineProperty({}, \"passive\", {\n get() {\n supportsListenerOptions2 = true;\n }\n })\n );\n } catch (e) {\n }\n return supportsListenerOptions2;\n})();\nvar promiseResolve = (v) => Promise.resolve(v);\nvar supportsConstructableStylesheets = BUILD6.constructableCSS ? /* @__PURE__ */ (() => {\n try {\n if (!win.document.adoptedStyleSheets) {\n return false;\n }\n new CSSStyleSheet();\n return typeof new CSSStyleSheet().replaceSync === \"function\";\n } catch (e) {\n }\n return false;\n})() : false;\nvar supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, \"length\").writable)() : false;\n\n// src/client/client-task-queue.ts\nvar queueCongestion = 0;\nvar queuePending = false;\nvar queueDomReads = [];\nvar queueDomWrites = [];\nvar queueDomWritesLow = [];\nvar scheduleFlush = () => {\n var _a;\n return ((_a = win.document) == null ? void 0 : _a.hidden) ? setTimeout(flush, 16) : plt.raf(flush);\n};\nvar queueTask = (queue, write) => (cb) => {\n queue.push(cb);\n if (!queuePending) {\n queuePending = true;\n if (write && plt.$flags$ & 4 /* queueSync */) {\n nextTick(flush);\n } else {\n scheduleFlush();\n }\n }\n};\nvar consume = (queue) => {\n for (let i2 = 0; i2 < queue.length; i2++) {\n try {\n queue[i2](performance.now());\n } catch (e) {\n consoleError(e);\n }\n }\n queue.length = 0;\n};\nvar consumeTimeout = (queue, timeout) => {\n let i2 = 0;\n let ts = 0;\n while (i2 < queue.length && (ts = performance.now()) < timeout) {\n try {\n queue[i2++](ts);\n } catch (e) {\n consoleError(e);\n }\n }\n if (i2 === queue.length) {\n queue.length = 0;\n } else if (i2 !== 0) {\n queue.splice(0, i2);\n }\n};\nvar flush = () => {\n if (BUILD7.asyncQueue) {\n queueCongestion++;\n }\n consume(queueDomReads);\n if (BUILD7.asyncQueue) {\n const timeout = (plt.$flags$ & 6 /* queueMask */) === 2 /* appLoaded */ ? performance.now() + 14 * Math.ceil(queueCongestion * (1 / 10)) : Infinity;\n consumeTimeout(queueDomWrites, timeout);\n consumeTimeout(queueDomWritesLow, timeout);\n if (queueDomWrites.length > 0) {\n queueDomWritesLow.push(...queueDomWrites);\n queueDomWrites.length = 0;\n }\n if (queuePending = queueDomReads.length + queueDomWrites.length + queueDomWritesLow.length > 0) {\n scheduleFlush();\n } else {\n queueCongestion = 0;\n }\n } else {\n consume(queueDomWrites);\n if (queuePending = queueDomReads.length > 0) {\n scheduleFlush();\n }\n }\n};\nvar nextTick = (cb) => promiseResolve().then(cb);\nvar readTask = /* @__PURE__ */ queueTask(queueDomReads, false);\nvar writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);\n\n// src/client/index.ts\nimport { BUILD as BUILD31, Env, NAMESPACE as NAMESPACE2 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/asset-path.ts\nvar getAssetPath = (path) => {\n const assetUrl = new URL(path, plt.$resourcesUrl$);\n return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;\n};\nvar setAssetPath = (path) => plt.$resourcesUrl$ = path;\n\n// src/runtime/bootstrap-custom-element.ts\nimport { BUILD as BUILD27 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/shadow-root.ts\nimport { BUILD as BUILD8 } from \"@stencil/core/internal/app-data\";\nimport { globalStyles } from \"@stencil/core/internal/app-globals\";\n\n// src/utils/style.ts\nfunction createStyleSheetIfNeededAndSupported(styles2) {\n if (!styles2 || !supportsConstructableStylesheets) return void 0;\n const sheet = new CSSStyleSheet();\n sheet.replaceSync(styles2);\n return sheet;\n}\n\n// src/utils/shadow-root.ts\nvar globalStyleSheet;\nvar GLOBAL_STYLE_ID = \"sc-global\";\nfunction createShadowRoot(cmpMeta) {\n var _a;\n const opts = { mode: \"open\" };\n if (BUILD8.shadowDelegatesFocus) {\n opts.delegatesFocus = !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */);\n }\n if (BUILD8.shadowSlotAssignmentManual) {\n const isManual = !!(cmpMeta.$flags$ & 1024 /* shadowSlotAssignmentManual */);\n if (isManual) {\n opts.slotAssignment = \"manual\";\n }\n }\n const shadowRoot = this.attachShadow(opts);\n if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported(globalStyles)) != null ? _a : null;\n if (globalStyleSheet) {\n if (supportsMutableAdoptedStyleSheets) {\n shadowRoot.adoptedStyleSheets.push(globalStyleSheet);\n } else {\n shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];\n }\n } else if (globalStyles && !supportsConstructableStylesheets) {\n const styleElm = document.createElement(\"style\");\n styleElm.innerHTML = globalStyles;\n if (BUILD8.hotModuleReplacement) {\n styleElm.setAttribute(HYDRATED_STYLE_ID, GLOBAL_STYLE_ID);\n }\n shadowRoot.prepend(styleElm);\n }\n}\n\n// src/runtime/connected-callback.ts\nimport { BUILD as BUILD25 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/client-hydrate.ts\nimport { BUILD as BUILD14 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/dom-extras.ts\nimport { BUILD as BUILD10 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/slot-polyfill-utils.ts\nimport { BUILD as BUILD9 } from \"@stencil/core/internal/app-data\";\nvar updateFallbackSlotVisibility = (elm) => {\n const childNodes = internalCall(elm, \"childNodes\");\n if (elm.tagName && elm.tagName.includes(\"-\") && elm[\"s-cr\"] && elm.tagName !== \"SLOT-FB\") {\n getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {\n if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === \"SLOT-FB\") {\n if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {\n slotNode.hidden = true;\n } else {\n slotNode.hidden = false;\n }\n }\n });\n }\n let i2 = 0;\n for (i2 = 0; i2 < childNodes.length; i2++) {\n const childNode = childNodes[i2];\n if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, \"childNodes\").length) {\n updateFallbackSlotVisibility(childNode);\n }\n }\n};\nvar getSlottedChildNodes = (childNodes) => {\n const result = [];\n for (let i2 = 0; i2 < childNodes.length; i2++) {\n const slottedNode = childNodes[i2][\"s-nr\"] || void 0;\n if (slottedNode && slottedNode.isConnected) {\n result.push(slottedNode);\n }\n }\n return result;\n};\nfunction getHostSlotNodes(childNodes, hostName, slotName) {\n let i2 = 0;\n let slottedNodes = [];\n let childNode;\n for (; i2 < childNodes.length; i2++) {\n childNode = childNodes[i2];\n if (childNode[\"s-sr\"] && (!hostName || childNode[\"s-hn\"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {\n slottedNodes.push(childNode);\n if (typeof slotName !== \"undefined\") return slottedNodes;\n }\n slottedNodes = [...slottedNodes, ...getHostSlotNodes(internalCall(childNode, \"childNodes\"), hostName, slotName)];\n if (typeof slotName !== \"undefined\" && slottedNodes.length) return slottedNodes;\n }\n return slottedNodes;\n}\nvar getSlotChildSiblings = (slot, slotName, includeSlot = true) => {\n const childNodes = [];\n if (includeSlot && slot[\"s-sr\"] || !slot[\"s-sr\"]) childNodes.push(slot);\n let node = slot;\n while (node = node.nextSibling) {\n if (getSlotName(node) === slotName && (includeSlot || !node[\"s-sr\"])) childNodes.push(node);\n }\n return childNodes;\n};\nvar isNodeLocatedInSlot = (nodeToRelocate, slotName) => {\n if (nodeToRelocate.nodeType === 1 /* ElementNode */) {\n if (nodeToRelocate.getAttribute(\"slot\") === null && slotName === \"\") {\n return true;\n }\n if (nodeToRelocate.getAttribute(\"slot\") === slotName) {\n return true;\n }\n return false;\n }\n if (nodeToRelocate[\"s-sn\"] === slotName) {\n return true;\n }\n return slotName === \"\";\n};\nvar addSlotRelocateNode = (newChild, slotNode, prepend, position) => {\n if (newChild[\"s-ol\"] && newChild[\"s-ol\"].isConnected) {\n return;\n }\n const slottedNodeLocation = document.createTextNode(\"\");\n slottedNodeLocation[\"s-nr\"] = newChild;\n if (!slotNode[\"s-cr\"] || !slotNode[\"s-cr\"].parentNode) return;\n const parent = slotNode[\"s-cr\"].parentNode;\n const appendMethod = prepend ? internalCall(parent, \"prepend\") : internalCall(parent, \"appendChild\");\n if (BUILD9.hydrateClientSide && typeof position !== \"undefined\") {\n slottedNodeLocation[\"s-oo\"] = position;\n const childNodes = internalCall(parent, \"childNodes\");\n const slotRelocateNodes = [slottedNodeLocation];\n childNodes.forEach((n) => {\n if (n[\"s-nr\"]) slotRelocateNodes.push(n);\n });\n slotRelocateNodes.sort((a, b) => {\n if (!a[\"s-oo\"] || a[\"s-oo\"] < (b[\"s-oo\"] || 0)) return -1;\n else if (!b[\"s-oo\"] || b[\"s-oo\"] < a[\"s-oo\"]) return 1;\n return 0;\n });\n slotRelocateNodes.forEach((n) => appendMethod.call(parent, n));\n } else {\n appendMethod.call(parent, slottedNodeLocation);\n }\n newChild[\"s-ol\"] = slottedNodeLocation;\n newChild[\"s-sh\"] = slotNode[\"s-hn\"];\n};\nvar getSlotName = (node) => typeof node[\"s-sn\"] === \"string\" ? node[\"s-sn\"] : node.nodeType === 1 && node.getAttribute(\"slot\") || void 0;\nfunction patchSlotNode(node) {\n if (node.assignedElements || node.assignedNodes || !node[\"s-sr\"]) return;\n const assignedFactory = (elementsOnly) => (function(opts) {\n const toReturn = [];\n const slotName = this[\"s-sn\"];\n if (opts == null ? void 0 : opts.flatten) {\n console.error(`\n Flattening is not supported for Stencil non-shadow slots.\n You can use \\`.childNodes\\` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n `);\n }\n const parent = this[\"s-cr\"].parentElement;\n const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);\n slottedNodes.forEach((n) => {\n if (slotName === getSlotName(n)) {\n toReturn.push(n);\n }\n });\n if (elementsOnly) {\n return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);\n }\n return toReturn;\n }).bind(node);\n node.assignedElements = assignedFactory(true);\n node.assignedNodes = assignedFactory(false);\n}\nfunction dispatchSlotChangeEvent(elm) {\n elm.dispatchEvent(new CustomEvent(\"slotchange\", { bubbles: false, cancelable: false, composed: false }));\n}\nfunction findSlotFromSlottedNode(slottedNode, parentHost) {\n var _a;\n parentHost = parentHost || ((_a = slottedNode[\"s-ol\"]) == null ? void 0 : _a.parentElement);\n if (!parentHost) return { slotNode: null, slotName: \"\" };\n const slotName = slottedNode[\"s-sn\"] = getSlotName(slottedNode) || \"\";\n const childNodes = internalCall(parentHost, \"childNodes\");\n const slotNode = getHostSlotNodes(childNodes, parentHost.tagName, slotName)[0];\n return { slotNode, slotName };\n}\n\n// src/runtime/dom-extras.ts\nvar patchPseudoShadowDom = (hostElementPrototype) => {\n patchCloneNode(hostElementPrototype);\n patchSlotAppendChild(hostElementPrototype);\n patchSlotAppend(hostElementPrototype);\n patchSlotPrepend(hostElementPrototype);\n patchSlotInsertAdjacentElement(hostElementPrototype);\n patchSlotInsertAdjacentHTML(hostElementPrototype);\n patchSlotInsertAdjacentText(hostElementPrototype);\n patchInsertBefore(hostElementPrototype);\n patchTextContent(hostElementPrototype);\n patchInnerContentSetters(hostElementPrototype);\n patchChildSlotNodes(hostElementPrototype);\n patchSlotRemoveChild(hostElementPrototype);\n};\nvar patchCloneNode = (HostElementPrototype) => {\n if (HostElementPrototype.__cloneNode) return;\n const orgCloneNode = HostElementPrototype.__cloneNode = HostElementPrototype.cloneNode;\n HostElementPrototype.cloneNode = function(deep) {\n const srcNode = this;\n const isShadowDom = BUILD10.shadowDom ? srcNode.shadowRoot && supportsShadow : false;\n const clonedNode = orgCloneNode.call(srcNode, isShadowDom ? deep : false);\n if (BUILD10.slot && !isShadowDom && deep) {\n let i2 = 0;\n let slotted, nonStencilNode;\n const stencilPrivates = [\n \"s-id\",\n \"s-cr\",\n \"s-lr\",\n \"s-rc\",\n \"s-sc\",\n \"s-p\",\n \"s-cn\",\n \"s-sr\",\n \"s-sn\",\n \"s-hn\",\n \"s-ol\",\n \"s-nr\",\n \"s-si\",\n \"s-rf\",\n \"s-scs\"\n ];\n const childNodes = this.__childNodes || this.childNodes;\n for (; i2 < childNodes.length; i2++) {\n slotted = childNodes[i2][\"s-nr\"];\n nonStencilNode = stencilPrivates.every((privateField) => !childNodes[i2][privateField]);\n if (slotted) {\n if (BUILD10.appendChildSlotFix && clonedNode.__appendChild) {\n clonedNode.__appendChild(slotted.cloneNode(true));\n } else {\n clonedNode.appendChild(slotted.cloneNode(true));\n }\n }\n if (nonStencilNode) {\n clonedNode.appendChild(childNodes[i2].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nvar patchSlotAppendChild = (HostElementPrototype) => {\n if (HostElementPrototype.__appendChild) return;\n HostElementPrototype.__appendChild = HostElementPrototype.appendChild;\n HostElementPrototype.appendChild = function(newChild) {\n const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);\n if (slotNode) {\n addSlotRelocateNode(newChild, slotNode);\n const slotChildNodes = getSlotChildSiblings(slotNode, slotName);\n const appendAfter = slotChildNodes[slotChildNodes.length - 1];\n const slotWasEmpty = slotChildNodes.every((node) => node[\"s-sr\"]);\n const parent = internalCall(appendAfter, \"parentNode\");\n const insertedNode = internalCall(parent, \"insertBefore\")(newChild, appendAfter.nextSibling);\n dispatchSlotChangeEvent(slotNode);\n if (slotWasEmpty) {\n updateFallbackSlotVisibility(this);\n }\n return insertedNode;\n }\n return this.__appendChild(newChild);\n };\n};\nvar patchSlotRemoveChild = (ElementPrototype) => {\n if (ElementPrototype.__removeChild) return;\n ElementPrototype.__removeChild = ElementPrototype.removeChild;\n ElementPrototype.removeChild = function(toRemove) {\n if (toRemove && typeof toRemove[\"s-sn\"] !== \"undefined\") {\n const childNodes = this.__childNodes || this.childNodes;\n const slotNode = getHostSlotNodes(childNodes, this.tagName, toRemove[\"s-sn\"])[0];\n if (slotNode && toRemove.isConnected) {\n toRemove.remove();\n updateFallbackSlotVisibility(this);\n return;\n }\n }\n return this.__removeChild(toRemove);\n };\n};\nvar patchSlotPrepend = (HostElementPrototype) => {\n if (HostElementPrototype.__prepend) return;\n HostElementPrototype.__prepend = HostElementPrototype.prepend;\n HostElementPrototype.prepend = function(...newChildren) {\n newChildren.forEach((newChild) => {\n if (typeof newChild === \"string\") {\n newChild = this.ownerDocument.createTextNode(newChild);\n }\n const slotName = (newChild[\"s-sn\"] = getSlotName(newChild)) || \"\";\n const childNodes = internalCall(this, \"childNodes\");\n const slotNode = getHostSlotNodes(childNodes, this.tagName, slotName)[0];\n if (slotNode) {\n addSlotRelocateNode(newChild, slotNode, true);\n const slotChildNodes = getSlotChildSiblings(slotNode, slotName);\n const appendAfter = slotChildNodes[0];\n const parent = internalCall(appendAfter, \"parentNode\");\n const toReturn = internalCall(parent, \"insertBefore\")(newChild, internalCall(appendAfter, \"nextSibling\"));\n dispatchSlotChangeEvent(slotNode);\n return toReturn;\n }\n if (newChild.nodeType === 1 && !!newChild.getAttribute(\"slot\")) {\n newChild.hidden = true;\n }\n return HostElementPrototype.__prepend.call(this, newChild);\n });\n };\n};\nvar patchSlotAppend = (HostElementPrototype) => {\n if (HostElementPrototype.__append) return;\n HostElementPrototype.__append = HostElementPrototype.append;\n HostElementPrototype.append = function(...newChildren) {\n newChildren.forEach((newChild) => {\n if (typeof newChild === \"string\") {\n newChild = this.ownerDocument.createTextNode(newChild);\n }\n this.appendChild(newChild);\n });\n };\n};\nvar patchSlotInsertAdjacentHTML = (HostElementPrototype) => {\n if (HostElementPrototype.__insertAdjacentHTML) return;\n const originalInsertAdjacentHtml = HostElementPrototype.insertAdjacentHTML;\n HostElementPrototype.insertAdjacentHTML = function(position, text) {\n if (position !== \"afterbegin\" && position !== \"beforeend\") {\n return originalInsertAdjacentHtml.call(this, position, text);\n }\n const container = this.ownerDocument.createElement(\"_\");\n let node;\n container.innerHTML = text;\n if (position === \"afterbegin\") {\n while (node = container.firstChild) {\n this.prepend(node);\n }\n } else if (position === \"beforeend\") {\n while (node = container.firstChild) {\n this.append(node);\n }\n }\n };\n};\nvar patchSlotInsertAdjacentText = (HostElementPrototype) => {\n if (HostElementPrototype.__insertAdjacentText) return;\n const originalInsertAdjacentText = HostElementPrototype.__insertAdjacentText = HostElementPrototype.insertAdjacentText;\n HostElementPrototype.insertAdjacentText = function(position, text) {\n if (position === \"afterbegin\") {\n this.prepend(this.ownerDocument.createTextNode(String(text)));\n } else if (position === \"beforeend\") {\n this.append(this.ownerDocument.createTextNode(String(text)));\n } else {\n originalInsertAdjacentText.call(this, position, text);\n }\n };\n};\nvar patchInsertBefore = (HostElementPrototype) => {\n if (HostElementPrototype.__insertBefore) return;\n const eleProto = HostElementPrototype;\n if (eleProto.__insertBefore) return;\n eleProto.__insertBefore = HostElementPrototype.insertBefore;\n HostElementPrototype.insertBefore = function(newChild, currentChild) {\n const { slotName, slotNode } = findSlotFromSlottedNode(newChild, this);\n if (slotNode) {\n if (currentChild === null) {\n this.appendChild(newChild);\n return newChild;\n }\n const slottedNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);\n if (slottedNodes.includes(currentChild)) {\n if (slotName !== currentChild[\"s-sn\"]) {\n this.appendChild(newChild);\n } else {\n addSlotRelocateNode(newChild, slotNode);\n const parent = internalCall(currentChild, \"parentNode\");\n internalCall(parent, \"insertBefore\")(newChild, currentChild);\n dispatchSlotChangeEvent(slotNode);\n }\n return newChild;\n }\n }\n const parentNode = currentChild == null ? void 0 : currentChild.__parentNode;\n if (parentNode && !this.isSameNode(parentNode)) {\n return this.appendChild(newChild);\n }\n return this.__insertBefore(newChild, currentChild);\n };\n};\nvar patchSlotInsertAdjacentElement = (HostElementPrototype) => {\n if (HostElementPrototype.__insertAdjacentElement) return;\n const originalInsertAdjacentElement = HostElementPrototype.insertAdjacentElement;\n HostElementPrototype.insertAdjacentElement = function(position, element) {\n if (position !== \"afterbegin\" && position !== \"beforeend\") {\n return originalInsertAdjacentElement.call(this, position, element);\n }\n if (position === \"afterbegin\") {\n this.prepend(element);\n return element;\n } else if (position === \"beforeend\") {\n this.append(element);\n return element;\n }\n return element;\n };\n};\nvar patchTextContent = (hostElementPrototype) => {\n patchHostOriginalAccessor(\"textContent\", hostElementPrototype);\n Object.defineProperty(hostElementPrototype, \"textContent\", {\n get: function() {\n let text = \"\";\n const childNodes = this.__childNodes ? this.childNodes : getSlottedChildNodes(this.childNodes);\n childNodes.forEach((node) => text += node.textContent || \"\");\n return text;\n },\n set: function(value) {\n removeSlottedNodes(this);\n if (value != null && value !== \"\") {\n this.append(this.ownerDocument.createTextNode(String(value)));\n }\n }\n });\n};\nvar patchInnerContentSetters = (hostElementPrototype) => {\n if (!globalThis.HTMLElement) return;\n const patchSetter = (proto, name, insert) => {\n var _a;\n const get = (_a = Object.getOwnPropertyDescriptor(proto, name)) == null ? void 0 : _a.get;\n if (!get) return;\n Object.defineProperty(hostElementPrototype, name, {\n get,\n set: function(value) {\n removeSlottedNodes(this);\n Array.from(internalCall(this, \"childNodes\")).forEach((node) => {\n if (!node[\"s-cn\"] && !node[\"s-nr\"] && node[\"s-hn\"] !== this.tagName) node.remove();\n });\n insert(this, value != null ? value : \"\");\n }\n });\n };\n patchSetter(Element.prototype, \"innerHTML\", (host, value) => host.insertAdjacentHTML(\"beforeend\", value));\n patchSetter(HTMLElement.prototype, \"innerText\", (host, value) => host.append(value));\n};\nvar removeSlottedNodes = (host) => {\n const childNodes = host.__childNodes ? host.childNodes : getSlottedChildNodes(host.childNodes);\n childNodes.forEach((node) => {\n if (node[\"s-ol\"]) node[\"s-ol\"].remove();\n node.remove();\n });\n};\nvar patchChildSlotNodes = (elm) => {\n class FakeNodeList extends Array {\n item(n) {\n return this[n];\n }\n }\n patchHostOriginalAccessor(\"children\", elm);\n Object.defineProperty(elm, \"children\", {\n get() {\n return this.childNodes.filter((n) => n.nodeType === 1);\n }\n });\n Object.defineProperty(elm, \"childElementCount\", {\n get() {\n return this.children.length;\n }\n });\n patchHostOriginalAccessor(\"firstChild\", elm);\n Object.defineProperty(elm, \"firstChild\", {\n get() {\n return this.childNodes[0] || null;\n }\n });\n patchHostOriginalAccessor(\"lastChild\", elm);\n Object.defineProperty(elm, \"lastChild\", {\n get() {\n return this.childNodes[this.childNodes.length - 1] || null;\n }\n });\n patchHostOriginalAccessor(\"childNodes\", elm);\n Object.defineProperty(elm, \"childNodes\", {\n get() {\n const result = new FakeNodeList();\n result.push(...getSlottedChildNodes(this.__childNodes));\n return result;\n }\n });\n};\nvar patchSlottedNode = (node) => {\n if (!node || node.__nextSibling !== void 0 || !globalThis.Node) return;\n patchNextSibling(node);\n patchPreviousSibling(node);\n patchParentNode(node);\n if (node.nodeType === Node.ELEMENT_NODE) {\n patchNextElementSibling(node);\n patchPreviousElementSibling(node);\n }\n};\nvar patchNextSibling = (node) => {\n if (!node || node.__nextSibling) return;\n patchHostOriginalAccessor(\"nextSibling\", node);\n Object.defineProperty(node, \"nextSibling\", {\n get: function() {\n var _a;\n const parentNodes = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.childNodes;\n const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);\n if (parentNodes && index > -1) {\n return parentNodes[index + 1] || null;\n }\n return this.__nextSibling;\n }\n });\n};\nvar patchNextElementSibling = (element) => {\n if (!element || element.__nextElementSibling) return;\n patchHostOriginalAccessor(\"nextElementSibling\", element);\n Object.defineProperty(element, \"nextElementSibling\", {\n get: function() {\n var _a;\n const parentEles = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.children;\n const index = parentEles == null ? void 0 : parentEles.indexOf(this);\n if (parentEles && index > -1) {\n return parentEles[index + 1] || null;\n }\n return this.__nextElementSibling;\n }\n });\n};\nvar patchPreviousSibling = (node) => {\n if (!node || node.__previousSibling) return;\n patchHostOriginalAccessor(\"previousSibling\", node);\n Object.defineProperty(node, \"previousSibling\", {\n get: function() {\n var _a;\n const parentNodes = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.childNodes;\n const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);\n if (parentNodes && index > -1) {\n return parentNodes[index - 1] || null;\n }\n return this.__previousSibling;\n }\n });\n};\nvar patchPreviousElementSibling = (element) => {\n if (!element || element.__previousElementSibling) return;\n patchHostOriginalAccessor(\"previousElementSibling\", element);\n Object.defineProperty(element, \"previousElementSibling\", {\n get: function() {\n var _a;\n const parentNodes = (_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode.children;\n const index = parentNodes == null ? void 0 : parentNodes.indexOf(this);\n if (parentNodes && index > -1) {\n return parentNodes[index - 1] || null;\n }\n return this.__previousElementSibling;\n }\n });\n};\nvar patchParentNode = (node) => {\n if (!node || node.__parentNode) return;\n patchHostOriginalAccessor(\"parentNode\", node);\n Object.defineProperty(node, \"parentNode\", {\n get: function() {\n var _a;\n return ((_a = this[\"s-ol\"]) == null ? void 0 : _a.parentNode) || this.__parentNode;\n },\n set: function(value) {\n this.__parentNode = value;\n }\n });\n};\nvar validElementPatches = [\"children\", \"nextElementSibling\", \"previousElementSibling\"];\nvar validNodesPatches = [\n \"childNodes\",\n \"firstChild\",\n \"lastChild\",\n \"nextSibling\",\n \"previousSibling\",\n \"textContent\",\n \"parentNode\"\n];\nfunction patchHostOriginalAccessor(accessorName, node) {\n if (!globalThis.Node || !globalThis.Element) {\n return;\n }\n let accessor;\n if (validElementPatches.includes(accessorName)) {\n accessor = Object.getOwnPropertyDescriptor(Element.prototype, accessorName);\n } else if (validNodesPatches.includes(accessorName)) {\n accessor = Object.getOwnPropertyDescriptor(Node.prototype, accessorName);\n }\n if (!accessor) {\n accessor = Object.getOwnPropertyDescriptor(node, accessorName);\n }\n if (accessor) Object.defineProperty(node, \"__\" + accessorName, accessor);\n}\nfunction internalCall(node, method) {\n if (\"__\" + method in node) {\n const toReturn = node[\"__\" + method];\n if (typeof toReturn !== \"function\") return toReturn;\n return toReturn.bind(node);\n } else {\n if (typeof node[method] !== \"function\") return node[method];\n return node[method].bind(node);\n }\n}\n\n// src/runtime/profile.ts\nimport { BUILD as BUILD11 } from \"@stencil/core/internal/app-data\";\nvar i = 0;\nvar createTime = (fnName, tagName = \"\") => {\n if (BUILD11.profile && performance.mark) {\n const key = `st:${fnName}:${tagName}:${i++}`;\n performance.mark(key);\n return () => performance.measure(`[Stencil] ${fnName}() <${tagName}>`, key);\n } else {\n return () => {\n return;\n };\n }\n};\nvar uniqueTime = (key, measureText) => {\n if (BUILD11.profile && performance.mark) {\n if (performance.getEntriesByName(key, \"mark\").length === 0) {\n performance.mark(key);\n }\n return () => {\n if (performance.getEntriesByName(measureText, \"measure\").length === 0) {\n performance.measure(measureText, key);\n }\n };\n } else {\n return () => {\n return;\n };\n }\n};\nvar inspect = (ref) => {\n const hostRef = getHostRef(ref);\n if (!hostRef) {\n return void 0;\n }\n const flags = hostRef.$flags$;\n const hostElement = hostRef.$hostElement$;\n return {\n renderCount: hostRef.$renderCount$,\n flags: {\n hasRendered: !!(flags & 2 /* hasRendered */),\n hasConnected: !!(flags & 1 /* hasConnected */),\n isWaitingForChildren: !!(flags & 4 /* isWaitingForChildren */),\n isConstructingInstance: !!(flags & 8 /* isConstructingInstance */),\n isQueuedForUpdate: !!(flags & 16 /* isQueuedForUpdate */),\n hasInitializedComponent: !!(flags & 32 /* hasInitializedComponent */),\n hasLoadedComponent: !!(flags & 64 /* hasLoadedComponent */),\n isWatchReady: !!(flags & 128 /* isWatchReady */),\n isListenReady: !!(flags & 256 /* isListenReady */),\n needsRerender: !!(flags & 512 /* needsRerender */)\n },\n instanceValues: hostRef.$instanceValues$,\n serializerValues: hostRef.$serializerValues$,\n ancestorComponent: hostRef.$ancestorComponent$,\n hostElement,\n lazyInstance: hostRef.$lazyInstance$,\n vnode: hostRef.$vnode$,\n modeName: hostRef.$modeName$,\n fetchedCbList: hostRef.$fetchedCbList$,\n onReadyPromise: hostRef.$onReadyPromise$,\n onReadyResolve: hostRef.$onReadyResolve$,\n onInstancePromise: hostRef.$onInstancePromise$,\n onInstanceResolve: hostRef.$onInstanceResolve$,\n onRenderResolve: hostRef.$onRenderResolve$,\n queuedListeners: hostRef.$queuedListeners$,\n rmListeners: hostRef.$rmListeners$,\n [\"s-id\"]: hostElement[\"s-id\"],\n [\"s-cr\"]: hostElement[\"s-cr\"],\n [\"s-lr\"]: hostElement[\"s-lr\"],\n [\"s-p\"]: hostElement[\"s-p\"],\n [\"s-rc\"]: hostElement[\"s-rc\"],\n [\"s-sc\"]: hostElement[\"s-sc\"]\n };\n};\nvar installDevTools = () => {\n if (BUILD11.devTools) {\n const stencil = win.stencil = win.stencil || {};\n const originalInspect = stencil.inspect;\n stencil.inspect = (ref) => {\n let result = inspect(ref);\n if (!result && typeof originalInspect === \"function\") {\n result = originalInspect(ref);\n }\n return result;\n };\n }\n};\n\n// src/runtime/styles.ts\nimport { BUILD as BUILD12 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/query-nonce-meta-tag-content.ts\nfunction queryNonceMetaTagContent(doc) {\n var _a, _b, _c;\n return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name=\"csp-nonce\"]')) == null ? void 0 : _b.getAttribute(\"content\")) != null ? _c : void 0;\n}\n\n// src/runtime/styles.ts\nvar rootAppliedStyles = /* @__PURE__ */ new WeakMap();\nvar registerStyle = (scopeId2, cssText, allowCS) => {\n let style = styles.get(scopeId2);\n if (supportsConstructableStylesheets && allowCS) {\n style = style || new CSSStyleSheet();\n if (typeof style === \"string\") {\n style = cssText;\n } else {\n style.replaceSync(cssText);\n }\n } else {\n style = cssText;\n }\n styles.set(scopeId2, style);\n};\nvar addStyle = (styleContainerNode, cmpMeta, mode) => {\n var _a, _b, _c;\n const scopeId2 = getScopeId(cmpMeta, mode);\n const style = styles.get(scopeId2);\n if (!BUILD12.attachStyles || !win.document) {\n return scopeId2;\n }\n styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;\n if (style) {\n if (typeof style === \"string\") {\n styleContainerNode = styleContainerNode.head || styleContainerNode;\n let appliedStyles = rootAppliedStyles.get(styleContainerNode);\n let styleElm;\n if (!appliedStyles) {\n rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());\n }\n const existingStyleElm = (BUILD12.hydrateClientSide || BUILD12.hotModuleReplacement) && styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}=\"${scopeId2}\"]`);\n if (existingStyleElm) {\n if (BUILD12.hotModuleReplacement) {\n existingStyleElm.textContent = style;\n }\n appliedStyles.add(scopeId2);\n } else if (!appliedStyles.has(scopeId2)) {\n styleElm = win.document.createElement(\"style\");\n styleElm.textContent = style;\n const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);\n if (nonce != null) {\n styleElm.setAttribute(\"nonce\", nonce);\n }\n if (BUILD12.hydrateServerSide || BUILD12.hotModuleReplacement) {\n styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);\n }\n if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {\n if (styleContainerNode.nodeName === \"HEAD\") {\n const preconnectLinks = styleContainerNode.querySelectorAll(\"link[rel=preconnect]\");\n const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector(\"style\");\n styleContainerNode.insertBefore(\n styleElm,\n (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null\n );\n } else if (\"host\" in styleContainerNode) {\n if (supportsConstructableStylesheets) {\n const currentWindow = (_b = styleContainerNode.defaultView) != null ? _b : styleContainerNode.ownerDocument.defaultView;\n const stylesheet = new currentWindow.CSSStyleSheet();\n stylesheet.replaceSync(style);\n if (supportsMutableAdoptedStyleSheets) {\n styleContainerNode.adoptedStyleSheets.unshift(stylesheet);\n } else {\n styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];\n }\n } else {\n const existingStyleContainer = styleContainerNode.querySelector(\"style\");\n if (existingStyleContainer && !BUILD12.hotModuleReplacement) {\n existingStyleContainer.textContent = style + existingStyleContainer.textContent;\n } else {\n styleContainerNode.prepend(styleElm);\n }\n }\n } else {\n styleContainerNode.append(styleElm);\n }\n }\n if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n styleContainerNode.insertBefore(styleElm, null);\n }\n if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {\n styleElm.textContent += SLOT_FB_CSS;\n }\n if (appliedStyles) {\n appliedStyles.add(scopeId2);\n }\n }\n } else if (BUILD12.constructableCSS) {\n let appliedStyles = rootAppliedStyles.get(styleContainerNode);\n if (!appliedStyles) {\n rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());\n }\n if (!appliedStyles.has(scopeId2)) {\n const currentWindow = (_c = styleContainerNode.defaultView) != null ? _c : styleContainerNode.ownerDocument.defaultView;\n let stylesheet;\n if (style.constructor === currentWindow.CSSStyleSheet) {\n stylesheet = style;\n } else {\n stylesheet = new currentWindow.CSSStyleSheet();\n for (let i2 = 0; i2 < style.cssRules.length; i2++) {\n stylesheet.insertRule(style.cssRules[i2].cssText, i2);\n }\n }\n if (supportsMutableAdoptedStyleSheets) {\n styleContainerNode.adoptedStyleSheets.push(stylesheet);\n } else {\n styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, stylesheet];\n }\n appliedStyles.add(scopeId2);\n if (BUILD12.hydrateClientSide && \"host\" in styleContainerNode) {\n const ssrStyleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}=\"${scopeId2}\"]`);\n if (ssrStyleElm) {\n writeTask(() => ssrStyleElm.remove());\n }\n }\n }\n }\n }\n return scopeId2;\n};\nvar attachStyles = (hostRef) => {\n const cmpMeta = hostRef.$cmpMeta$;\n const elm = hostRef.$hostElement$;\n const flags = cmpMeta.$flags$;\n const endAttachStyles = createTime(\"attachStyles\", cmpMeta.$tagName$);\n const scopeId2 = addStyle(\n BUILD12.shadowDom && supportsShadow && elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),\n cmpMeta,\n hostRef.$modeName$\n );\n if ((BUILD12.shadowDom || BUILD12.scoped) && BUILD12.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {\n elm[\"s-sc\"] = scopeId2;\n elm.classList.add(scopeId2 + \"-h\");\n }\n endAttachStyles();\n};\nvar getScopeId = (cmp, mode) => \"sc-\" + (BUILD12.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + \"-\" + mode : cmp.$tagName$);\nvar convertScopedToShadow = (css) => css.replace(/\\/\\*!@([^\\/]+)\\*\\/[^\\{]+\\{/g, \"$1{\");\nvar hydrateScopedToShadow = (cmpMetas) => {\n if (!win.document) {\n return;\n }\n const styleElms = win.document.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);\n let i2 = 0;\n for (; i2 < styleElms.length; i2++) {\n const scopeId2 = styleElms[i2].getAttribute(HYDRATED_STYLE_ID);\n const isShadowCmpStyle = cmpMetas.some((cmpMeta) => {\n const cmpScopeId = \"sc-\" + cmpMeta.$tagName$;\n return cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && (scopeId2 === cmpScopeId || BUILD12.mode && cmpMeta.$flags$ & 32 /* hasMode */ && scopeId2.startsWith(cmpScopeId + \"-\"));\n });\n if (isShadowCmpStyle) {\n registerStyle(scopeId2, convertScopedToShadow(styleElms[i2].innerHTML), true);\n }\n }\n};\n\n// src/runtime/vdom/h.ts\nimport { BUILD as BUILD13 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/helpers.ts\nvar isDef = (v) => v != null && v !== void 0;\nvar isComplexType = (o) => {\n o = typeof o;\n return o === \"object\" || o === \"function\";\n};\n\n// src/runtime/vdom/h.ts\nvar h = (nodeName, vnodeData, ...children) => {\n if (typeof nodeName === \"string\" && nodeName.includes(\"-\")) {\n nodeName = transformTag(nodeName);\n }\n let child = null;\n let key = null;\n let slotName = null;\n let simple = false;\n let lastSimple = false;\n const vNodeChildren = [];\n const walk = (c) => {\n for (let i2 = 0; i2 < c.length; i2++) {\n child = c[i2];\n if (Array.isArray(child)) {\n walk(child);\n } else if (child != null && typeof child !== \"boolean\") {\n if (simple = typeof nodeName !== \"function\" && !isComplexType(child)) {\n child = String(child);\n } else if (typeof nodeName !== \"function\" && child.$flags$ === void 0) {\n if (BUILD13.isDev) {\n consoleDevError(`vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects.`);\n } else {\n consoleError(\"Invalid vNode child\");\n }\n continue;\n }\n if (simple && lastSimple) {\n vNodeChildren[vNodeChildren.length - 1].$text$ += child;\n } else {\n vNodeChildren.push(simple ? newVNode(null, child) : child);\n }\n lastSimple = simple;\n }\n }\n };\n walk(children);\n if (vnodeData) {\n if (BUILD13.isDev && nodeName === \"input\") {\n validateInputProperties(vnodeData);\n }\n if (BUILD13.vdomKey && vnodeData.key) {\n key = vnodeData.key;\n }\n if (BUILD13.slotRelocation && vnodeData.name) {\n slotName = vnodeData.name;\n }\n if (BUILD13.vdomClass) {\n const classData = vnodeData.className || vnodeData.class;\n if (classData) {\n vnodeData.class = typeof classData !== \"object\" ? classData : Object.keys(classData).filter((k) => classData[k]).join(\" \");\n }\n }\n }\n if (BUILD13.isDev && vNodeChildren.some(isHost)) {\n consoleDevError(`The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function.`);\n }\n if (BUILD13.vdomFunctional && typeof nodeName === \"function\") {\n return nodeName(\n vnodeData === null ? {} : vnodeData,\n vNodeChildren,\n vdomFnUtils\n );\n }\n const vnode = newVNode(nodeName, null);\n vnode.$attrs$ = vnodeData;\n if (vNodeChildren.length > 0) {\n vnode.$children$ = vNodeChildren;\n }\n if (BUILD13.vdomKey) {\n vnode.$key$ = key;\n }\n if (BUILD13.slotRelocation) {\n vnode.$name$ = slotName;\n }\n return vnode;\n};\nvar newVNode = (tag, text) => {\n const vnode = {\n $flags$: 0,\n $tag$: tag,\n // Normalize undefined to null to prevent rendering \"undefined\" as text\n $text$: text != null ? text : null,\n $elm$: null,\n $children$: null\n };\n if (BUILD13.vdomAttribute) {\n vnode.$attrs$ = null;\n }\n if (BUILD13.vdomKey) {\n vnode.$key$ = null;\n }\n if (BUILD13.slotRelocation) {\n vnode.$name$ = null;\n }\n return vnode;\n};\nvar Host = {};\nvar isHost = (node) => node && node.$tag$ === Host;\nvar vdomFnUtils = {\n forEach: (children, cb) => children.map(convertToPublic).forEach(cb),\n map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)\n};\nvar convertToPublic = (node) => ({\n vattrs: node.$attrs$,\n vchildren: node.$children$,\n vkey: node.$key$,\n vname: node.$name$,\n vtag: node.$tag$,\n vtext: node.$text$\n});\nvar convertToPrivate = (node) => {\n if (typeof node.vtag === \"function\") {\n const vnodeData = { ...node.vattrs };\n if (node.vkey) {\n vnodeData.key = node.vkey;\n }\n if (node.vname) {\n vnodeData.name = node.vname;\n }\n return h(node.vtag, vnodeData, ...node.vchildren || []);\n }\n const vnode = newVNode(node.vtag, node.vtext);\n vnode.$attrs$ = node.vattrs;\n vnode.$children$ = node.vchildren;\n vnode.$key$ = node.vkey;\n vnode.$name$ = node.vname;\n return vnode;\n};\nvar validateInputProperties = (inputElm) => {\n const props = Object.keys(inputElm);\n const value = props.indexOf(\"value\");\n if (value === -1) {\n return;\n }\n const typeIndex = props.indexOf(\"type\");\n const minIndex = props.indexOf(\"min\");\n const maxIndex = props.indexOf(\"max\");\n const stepIndex = props.indexOf(\"step\");\n if (value < typeIndex || value < minIndex || value < maxIndex || value < stepIndex) {\n consoleDevWarn(`The \"value\" prop of <input> should be set after \"min\", \"max\", \"type\" and \"step\"`);\n }\n};\n\n// src/runtime/client-hydrate.ts\nvar initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {\n var _a, _b, _c, _d;\n const endHydrate = createTime(\"hydrateClient\", tagName);\n const shadowRoot = hostElm.shadowRoot;\n const childRenderNodes = [];\n const slotNodes = [];\n const slottedNodes = [];\n const shadowRootNodes = BUILD14.shadowDom && shadowRoot ? [] : null;\n const vnode = newVNode(tagName, null);\n vnode.$elm$ = hostElm;\n let scopeId2;\n if (BUILD14.scoped) {\n const cmpMeta = hostRef.$cmpMeta$;\n if (cmpMeta && cmpMeta.$flags$ & 10 /* needsScopedEncapsulation */ && hostElm[\"s-sc\"]) {\n scopeId2 = hostElm[\"s-sc\"];\n hostElm.classList.add(scopeId2 + \"-h\");\n } else if (hostElm[\"s-sc\"]) {\n delete hostElm[\"s-sc\"];\n }\n }\n if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {\n initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());\n }\n hostElm[HYDRATE_ID] = hostId;\n hostElm.removeAttribute(HYDRATE_ID);\n hostRef.$vnode$ = clientHydrate(\n vnode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n hostElm,\n hostElm,\n hostId,\n slottedNodes\n );\n let crIndex = 0;\n const crLength = childRenderNodes.length;\n let childRenderNode;\n for (crIndex; crIndex < crLength; crIndex++) {\n childRenderNode = childRenderNodes[crIndex];\n const orgLocationId = childRenderNode.$hostId$ + \".\" + childRenderNode.$nodeId$;\n const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);\n const node = childRenderNode.$elm$;\n if (!shadowRoot) {\n node[\"s-hn\"] = transformTag(tagName).toUpperCase();\n if (childRenderNode.$tag$ === \"slot\") {\n node[\"s-cr\"] = hostElm[\"s-cr\"];\n }\n } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes(\"-\")) && childRenderNode.$tag$ !== \"slot-fb\" && !childRenderNode.$elm$.shadowRoot) {\n const cmpMeta = getHostRef(childRenderNode.$elm$);\n if (cmpMeta) {\n const scopeId3 = getScopeId(\n cmpMeta.$cmpMeta$,\n BUILD14.mode ? childRenderNode.$elm$.getAttribute(\"s-mode\") : void 0\n );\n const styleSheet = win.document.querySelector(`style[sty-id=\"${scopeId3}\"]`);\n if (styleSheet) {\n shadowRootNodes.unshift(styleSheet.cloneNode(true));\n }\n }\n }\n if (childRenderNode.$tag$ === \"slot\") {\n childRenderNode.$name$ = childRenderNode.$elm$[\"s-sn\"] || childRenderNode.$elm$[\"name\"] || null;\n if (childRenderNode.$children$) {\n childRenderNode.$flags$ |= 2 /* isSlotFallback */;\n if (!childRenderNode.$elm$.childNodes.length) {\n childRenderNode.$children$.forEach((c) => {\n childRenderNode.$elm$.appendChild(c.$elm$);\n });\n }\n } else {\n childRenderNode.$flags$ |= 1 /* isSlotReference */;\n }\n }\n if (orgLocationNode && orgLocationNode.isConnected) {\n if (orgLocationNode.parentElement.shadowRoot && orgLocationNode[\"s-en\"] === \"\") {\n orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);\n }\n orgLocationNode.parentNode.removeChild(orgLocationNode);\n if (!shadowRoot) {\n node[\"s-oo\"] = parseInt(childRenderNode.$nodeId$);\n }\n }\n if (orgLocationNode && !orgLocationNode[\"s-id\"]) {\n plt.$orgLocNodes$.delete(orgLocationId);\n }\n }\n const hosts = [];\n const snLen = slottedNodes.length;\n let snIndex = 0;\n let slotGroup;\n let snGroupIdx;\n let snGroupLen;\n let slottedItem;\n let currentPos = 0;\n for (snIndex; snIndex < snLen; snIndex++) {\n slotGroup = slottedNodes[snIndex];\n if (!slotGroup || !slotGroup.length) continue;\n snGroupLen = slotGroup.length;\n snGroupIdx = 0;\n for (snGroupIdx; snGroupIdx < snGroupLen; snGroupIdx++) {\n slottedItem = slotGroup[snGroupIdx];\n if (!hosts[slottedItem.hostId]) {\n hosts[slottedItem.hostId] = plt.$orgLocNodes$.get(slottedItem.hostId);\n }\n if (!hosts[slottedItem.hostId]) continue;\n const hostEle = hosts[slottedItem.hostId];\n if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {\n hostEle.insertBefore(slottedItem.node, (_c = (_b = slotGroup[snGroupIdx - 1]) == null ? void 0 : _b.node) == null ? void 0 : _c.nextSibling);\n }\n if (!hostEle.shadowRoot || !shadowRoot) {\n if (!slottedItem.slot[\"s-cr\"]) {\n slottedItem.slot[\"s-cr\"] = hostEle[\"s-cr\"];\n if (!slottedItem.slot[\"s-cr\"] && hostEle.shadowRoot) {\n slottedItem.slot[\"s-cr\"] = hostEle;\n } else {\n slottedItem.slot[\"s-cr\"] = (hostEle.__childNodes || hostEle.childNodes)[0];\n }\n }\n addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node[\"s-oo\"] || currentPos);\n if (((_d = slottedItem.node.parentElement) == null ? void 0 : _d.shadowRoot) && slottedItem.node[\"getAttribute\"] && slottedItem.node.getAttribute(\"slot\")) {\n slottedItem.node.removeAttribute(\"slot\");\n }\n if (BUILD14.experimentalSlotFixes) {\n patchSlottedNode(slottedItem.node);\n }\n }\n currentPos = (slottedItem.node[\"s-oo\"] || currentPos) + 1;\n }\n }\n if (BUILD14.scoped && scopeId2 && slotNodes.length) {\n slotNodes.forEach((slot) => {\n slot.$elm$.parentElement.classList.add(scopeId2 + \"-s\");\n });\n }\n if (BUILD14.shadowDom && shadowRoot && !shadowRoot.childNodes.length) {\n let rnIdex = 0;\n const rnLen = shadowRootNodes.length;\n if (rnLen) {\n for (rnIdex; rnIdex < rnLen; rnIdex++) {\n const node = shadowRootNodes[rnIdex];\n if (node) {\n shadowRoot.appendChild(node);\n }\n }\n Array.from(hostElm.childNodes).forEach((node) => {\n if (typeof node[\"s-en\"] !== \"string\" && typeof node[\"s-sn\"] !== \"string\") {\n if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {\n node.removeAttribute(\"hidden\");\n } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue) {\n node.parentNode.removeChild(node);\n }\n }\n });\n }\n }\n hostRef.$hostElement$ = hostElm;\n endHydrate();\n};\nvar clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes, hostElm, node, hostId, slottedNodes = []) => {\n let childNodeType;\n let childIdSplt;\n let childVNode;\n let i2;\n const scopeId2 = hostElm[\"s-sc\"];\n if (node.nodeType === 1 /* ElementNode */) {\n childNodeType = node.getAttribute(HYDRATE_CHILD_ID);\n if (childNodeType && node !== hostElm) {\n childIdSplt = childNodeType.split(\".\");\n if (childIdSplt[0] === hostId || childIdSplt[0] === \"0\") {\n childVNode = createSimpleVNode({\n $flags$: 0,\n $hostId$: childIdSplt[0],\n $nodeId$: childIdSplt[1],\n $depth$: childIdSplt[2],\n $index$: childIdSplt[3],\n $tag$: node.tagName.toLowerCase(),\n $elm$: node,\n // If we don't add the initial classes to the VNode, the first `vdom-render.ts` patch\n // won't try to reconcile them. Classes set on the node will be blown away.\n $attrs$: { class: node.className || \"\" }\n });\n childRenderNodes.push(childVNode);\n node.removeAttribute(HYDRATE_CHILD_ID);\n if (!parentVNode.$children$) {\n parentVNode.$children$ = [];\n }\n if (BUILD14.scoped && scopeId2 && childIdSplt[0] === hostId) {\n node[\"s-si\"] = scopeId2;\n childVNode.$attrs$.class += \" \" + scopeId2;\n }\n const slotName = childVNode.$elm$.getAttribute(\"s-sn\");\n if (typeof slotName === \"string\") {\n if (childVNode.$tag$ === \"slot-fb\") {\n addSlot(\n slotName,\n childIdSplt[2],\n childVNode,\n node,\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n slottedNodes\n );\n if (BUILD14.scoped && scopeId2) {\n node.classList.add(scopeId2);\n }\n }\n childVNode.$elm$[\"s-sn\"] = slotName;\n childVNode.$elm$.removeAttribute(\"s-sn\");\n }\n if (childVNode.$index$ !== void 0) {\n parentVNode.$children$[childVNode.$index$] = childVNode;\n }\n parentVNode = childVNode;\n if (shadowRootNodes && childVNode.$depth$ === \"0\") {\n shadowRootNodes[childVNode.$index$] = childVNode.$elm$;\n }\n }\n }\n if (node.shadowRoot) {\n for (i2 = node.shadowRoot.childNodes.length - 1; i2 >= 0; i2--) {\n clientHydrate(\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n hostElm,\n node.shadowRoot.childNodes[i2],\n hostId,\n slottedNodes\n );\n }\n }\n const nonShadowNodes = node.__childNodes || node.childNodes;\n for (i2 = nonShadowNodes.length - 1; i2 >= 0; i2--) {\n clientHydrate(\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n hostElm,\n nonShadowNodes[i2],\n hostId,\n slottedNodes\n );\n }\n } else if (node.nodeType === 8 /* CommentNode */) {\n childIdSplt = node.nodeValue.split(\".\");\n if (childIdSplt[1] === hostId || childIdSplt[1] === \"0\") {\n childNodeType = childIdSplt[0];\n childVNode = createSimpleVNode({\n $hostId$: childIdSplt[1],\n $nodeId$: childIdSplt[2],\n $depth$: childIdSplt[3],\n $index$: childIdSplt[4] || \"0\",\n $elm$: node,\n $attrs$: null,\n $children$: null,\n $key$: null,\n $name$: null,\n $tag$: null,\n $text$: null\n });\n if (childNodeType === TEXT_NODE_ID) {\n childVNode.$elm$ = findCorrespondingNode(node, 3 /* TextNode */);\n if (childVNode.$elm$ && childVNode.$elm$.nodeType === 3 /* TextNode */) {\n childVNode.$text$ = childVNode.$elm$.textContent;\n childRenderNodes.push(childVNode);\n node.remove();\n if (hostId === childVNode.$hostId$) {\n if (!parentVNode.$children$) {\n parentVNode.$children$ = [];\n }\n parentVNode.$children$[childVNode.$index$] = childVNode;\n }\n if (shadowRootNodes && childVNode.$depth$ === \"0\") {\n shadowRootNodes[childVNode.$index$] = childVNode.$elm$;\n }\n }\n } else if (childNodeType === COMMENT_NODE_ID) {\n childVNode.$elm$ = findCorrespondingNode(node, 8 /* CommentNode */);\n if (childVNode.$elm$ && childVNode.$elm$.nodeType === 8 /* CommentNode */) {\n childRenderNodes.push(childVNode);\n node.remove();\n }\n } else if (childVNode.$hostId$ === hostId) {\n if (childNodeType === SLOT_NODE_ID) {\n const slotName = node[\"s-sn\"] = childIdSplt[5] || \"\";\n addSlot(\n slotName,\n childIdSplt[2],\n childVNode,\n node,\n parentVNode,\n childRenderNodes,\n slotNodes,\n shadowRootNodes,\n slottedNodes\n );\n } else if (childNodeType === CONTENT_REF_ID) {\n if (BUILD14.shadowDom && shadowRootNodes) {\n node.remove();\n } else if (BUILD14.slotRelocation) {\n hostElm[\"s-cr\"] = node;\n node[\"s-cn\"] = true;\n }\n }\n }\n }\n } else if (parentVNode && parentVNode.$tag$ === \"style\") {\n const vnode = newVNode(null, node.textContent);\n vnode.$elm$ = node;\n vnode.$index$ = \"0\";\n parentVNode.$children$ = [vnode];\n }\n return parentVNode;\n};\nvar initializeDocumentHydrate = (node, orgLocNodes) => {\n if (node.nodeType === 1 /* ElementNode */) {\n const componentId = node[HYDRATE_ID] || node.getAttribute(HYDRATE_ID);\n if (componentId) {\n orgLocNodes.set(componentId, node);\n }\n let i2 = 0;\n if (node.shadowRoot) {\n for (; i2 < node.shadowRoot.childNodes.length; i2++) {\n initializeDocumentHydrate(node.shadowRoot.childNodes[i2], orgLocNodes);\n }\n }\n const nonShadowNodes = node.__childNodes || node.childNodes;\n for (i2 = 0; i2 < nonShadowNodes.length; i2++) {\n initializeDocumentHydrate(nonShadowNodes[i2], orgLocNodes);\n }\n } else if (node.nodeType === 8 /* CommentNode */) {\n const childIdSplt = node.nodeValue.split(\".\");\n if (childIdSplt[0] === ORG_LOCATION_ID) {\n orgLocNodes.set(childIdSplt[1] + \".\" + childIdSplt[2], node);\n node.nodeValue = \"\";\n node[\"s-en\"] = childIdSplt[3];\n }\n }\n};\nvar createSimpleVNode = (vnode) => {\n const defaultVNode = {\n $flags$: 0,\n $hostId$: null,\n $nodeId$: null,\n $depth$: null,\n $index$: \"0\",\n $elm$: null,\n $attrs$: null,\n $children$: null,\n $key$: null,\n $name$: null,\n $tag$: null,\n $text$: null\n };\n return { ...defaultVNode, ...vnode };\n};\nfunction addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNodes, slotNodes, shadowRootNodes, slottedNodes) {\n node[\"s-sr\"] = true;\n childVNode.$name$ = slotName || null;\n childVNode.$tag$ = \"slot\";\n const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$[\"s-id\"] || parentVNode.$elm$.getAttribute(\"s-id\") : \"\";\n if (BUILD14.shadowDom && shadowRootNodes && win.document) {\n const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);\n if (childVNode.$name$) {\n childVNode.$elm$.setAttribute(\"name\", slotName);\n }\n if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {\n internalCall(parentVNode.$elm$, \"insertBefore\")(slot, internalCall(parentVNode.$elm$, \"children\")[0]);\n } else {\n internalCall(internalCall(node, \"parentNode\"), \"insertBefore\")(slot, node);\n }\n addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);\n node.remove();\n if (childVNode.$depth$ === \"0\") {\n shadowRootNodes[childVNode.$index$] = childVNode.$elm$;\n }\n } else {\n const slot = childVNode.$elm$;\n const shouldMove = parentNodeId && parentNodeId !== childVNode.$hostId$ && parentVNode.$elm$.shadowRoot;\n addSlottedNodes(slottedNodes, slotId, slotName, node, shouldMove ? parentNodeId : childVNode.$hostId$);\n patchSlotNode(node);\n if (shouldMove) {\n parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);\n }\n }\n childRenderNodes.push(childVNode);\n slotNodes.push(childVNode);\n if (!parentVNode.$children$) {\n parentVNode.$children$ = [];\n }\n parentVNode.$children$[childVNode.$index$] = childVNode;\n}\nvar addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {\n var _a, _b;\n let slottedNode = slotNode.nextSibling;\n slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];\n if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + \".\"))) return;\n do {\n const ssrSlotName = slottedNode && slottedNode[\"getAttribute\"] && slottedNode.getAttribute(\"s-sn\");\n if (slottedNode && (ssrSlotName === slotName || (slottedNode[\"getAttribute\"] && slottedNode.getAttribute(\"slot\") || slottedNode[\"s-sn\"]) === slotName || slotName === \"\" && !slottedNode[\"s-sn\"] && (!slottedNode[\"getAttribute\"] || !slottedNode.getAttribute(\"slot\")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {\n slottedNode[\"s-sn\"] = slotName;\n slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });\n }\n slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;\n } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + \".\")));\n};\nvar findCorrespondingNode = (node, type) => {\n let sibling = node;\n do {\n sibling = sibling.nextSibling;\n } while (sibling && (sibling.nodeType !== type || !sibling.nodeValue));\n return sibling;\n};\n\n// src/runtime/initialize-component.ts\nimport { BUILD as BUILD24 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/regular-expression.ts\nvar escapeRegExpSpecialCharacters = (text) => {\n return text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\");\n};\n\n// src/utils/shadow-css.ts\n/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n *\n * This file is a port of shadowCSS from `webcomponents.js` to TypeScript.\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\n * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts\n */\nvar safeSelector = (selector) => {\n const placeholders = [];\n let index = 0;\n selector = selector.replace(/(\\[\\s*part~=\\s*(\"[^\"]*\"|'[^']*')\\s*\\])/g, (_, keep) => {\n const replaceBy = `__part-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n selector = selector.replace(/(\\[[^\\]]*\\])/g, (_, keep) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(keep);\n index++;\n return replaceBy;\n });\n const content = selector.replace(/(:nth-[-\\w]+)(\\([^)]+\\))/g, (_, pseudo, exp) => {\n const replaceBy = `__ph-${index}__`;\n placeholders.push(exp);\n index++;\n return pseudo + replaceBy;\n });\n const ss = {\n content,\n placeholders\n };\n return ss;\n};\nvar restoreSafeSelector = (placeholders, content) => {\n content = content.replace(/__part-(\\d+)__/g, (_, index) => placeholders[+index]);\n return content.replace(/__ph-(\\d+)__/g, (_, index) => placeholders[+index]);\n};\nvar _polyfillHost = \"-shadowcsshost\";\nvar _polyfillSlotted = \"-shadowcssslotted\";\nvar _polyfillHostContext = \"-shadowcsscontext\";\nvar _parenSuffix = \")(?:\\\\(((?:\\\\([^)(]*\\\\)|[^)(]*)+?)\\\\))?([^,{]*)\";\nvar _cssColonHostRe = new RegExp(\"(\" + _polyfillHost + _parenSuffix, \"gim\");\nvar _cssColonHostContextRe = new RegExp(\"(\" + _polyfillHostContext + _parenSuffix, \"gim\");\nvar _cssColonSlottedRe = new RegExp(\"(\" + _polyfillSlotted + _parenSuffix, \"gim\");\nvar _polyfillHostNoCombinator = _polyfillHost + \"-no-combinator\";\nvar _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\\s]*)/;\nvar _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];\nvar _safePartRe = /__part-(\\d+)__/g;\nvar _selectorReSuffix = \"([>\\\\s~+[.,{:][\\\\s\\\\S]*)?$\";\nvar _polyfillHostRe = /-shadowcsshost/gim;\nvar createSupportsRuleRe = (selector) => {\n const safeSelector2 = escapeRegExpSpecialCharacters(selector);\n return new RegExp(\n // First capture group: match any context before the selector that's not inside @supports selector()\n // Using negative lookahead to avoid matching inside @supports selector(...) condition\n `(^|[^@]|@(?!supports\\\\s+selector\\\\s*\\\\([^{]*?${safeSelector2}))(${safeSelector2}\\\\b)`,\n \"g\"\n );\n};\nvar _commentRe = /\\/\\*\\s*[\\s\\S]*?\\*\\//g;\nvar stripComments = (input) => {\n return input.replace(_commentRe, \"\");\n};\nvar _commentWithHashRe = /\\/\\*\\s*#\\s*source(Mapping)?URL=[\\s\\S]+?\\*\\//g;\nvar extractCommentsWithHash = (input) => {\n return input.match(_commentWithHashRe) || [];\n};\nvar _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\nvar _curlyRe = /([{}])/g;\nvar _selectorPartsRe = /(^.*?[^\\\\])??((:+)(.*)|$)/;\nvar OPEN_CURLY = \"{\";\nvar CLOSE_CURLY = \"}\";\nvar BLOCK_PLACEHOLDER = \"%BLOCK%\";\nvar processRules = (input, ruleCallback) => {\n const inputWithEscapedBlocks = escapeBlocks(input);\n let nextBlockIndex = 0;\n return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {\n const selector = m[2];\n let content = \"\";\n let suffix = m[4];\n let contentPrefix = \"\";\n if (suffix && suffix.startsWith(\"{\" + BLOCK_PLACEHOLDER)) {\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\n suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);\n contentPrefix = \"{\";\n }\n const cssRule = {\n selector,\n content\n };\n const rule = ruleCallback(cssRule);\n return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;\n });\n};\nvar escapeBlocks = (input) => {\n const inputParts = input.split(_curlyRe);\n const resultParts = [];\n const escapedBlocks = [];\n let bracketCount = 0;\n let currentBlockParts = [];\n for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {\n const part = inputParts[partIndex];\n if (part === CLOSE_CURLY) {\n bracketCount--;\n }\n if (bracketCount > 0) {\n currentBlockParts.push(part);\n } else {\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(\"\"));\n resultParts.push(BLOCK_PLACEHOLDER);\n currentBlockParts = [];\n }\n resultParts.push(part);\n }\n if (part === OPEN_CURLY) {\n bracketCount++;\n }\n }\n if (currentBlockParts.length > 0) {\n escapedBlocks.push(currentBlockParts.join(\"\"));\n resultParts.push(BLOCK_PLACEHOLDER);\n }\n const strEscapedBlocks = {\n escapedString: resultParts.join(\"\"),\n blocks: escapedBlocks\n };\n return strEscapedBlocks;\n};\nvar insertPolyfillHostInCssText = (cssText) => {\n const supportsBlocks = [];\n cssText = cssText.replace(/@supports\\s+selector\\s*\\(\\s*([^)]*)\\s*\\)/g, (_, selectorContent) => {\n const placeholder = `__supports_${supportsBlocks.length}__`;\n supportsBlocks.push(selectorContent);\n return `@supports selector(${placeholder})`;\n });\n const _colonSlottedRe = createSupportsRuleRe(\"::slotted\");\n const _colonHostRe = createSupportsRuleRe(\":host\");\n const _colonHostContextRe = createSupportsRuleRe(\":host-context\");\n cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);\n supportsBlocks.forEach((originalSelector, index) => {\n cssText = cssText.replace(`__supports_${index}__`, originalSelector);\n });\n return cssText;\n};\nvar convertColonRule = (cssText, regExp, partReplacer) => {\n return cssText.replace(regExp, (...m) => {\n if (m[2]) {\n const parts = m[2].split(\",\");\n const r = [];\n for (let i2 = 0; i2 < parts.length; i2++) {\n const p = parts[i2].trim();\n if (!p) break;\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\n }\n return r.join(\",\");\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n};\nvar colonHostPartReplacer = (host, part, suffix) => {\n return host + part.replace(_polyfillHost, \"\") + suffix;\n};\nvar convertColonHost = (cssText) => {\n return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);\n};\nvar colonHostContextPartReplacer = (host, part, suffix) => {\n if (part.indexOf(_polyfillHost) > -1) {\n return colonHostPartReplacer(host, part, suffix);\n } else {\n return host + part + suffix + \", \" + part + \" \" + host + suffix;\n }\n};\nvar convertColonSlotted = (cssText, slotScopeId) => {\n const slotClass = \".\" + slotScopeId + \" > \";\n const selectors = [];\n cssText = cssText.replace(_cssColonSlottedRe, (...m) => {\n if (m[2]) {\n const compound = m[2].trim();\n const suffix = m[3];\n const slottedSelector = slotClass + compound + suffix;\n let prefixSelector = \"\";\n for (let i2 = m[4] - 1; i2 >= 0; i2--) {\n const char = m[5][i2];\n if (char === \"}\" || char === \",\") {\n break;\n }\n prefixSelector = char + prefixSelector;\n }\n const orgSelector = (prefixSelector + slottedSelector).trim();\n const addedSelector = `${prefixSelector.trimEnd()}${slottedSelector.trim()}`.trim();\n if (orgSelector !== addedSelector) {\n const updatedSelector = `${addedSelector}, ${orgSelector}`;\n selectors.push({\n orgSelector,\n updatedSelector\n });\n }\n return slottedSelector;\n } else {\n return _polyfillHostNoCombinator + m[3];\n }\n });\n return {\n selectors,\n cssText\n };\n};\nvar convertColonHostContext = (cssText) => {\n return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);\n};\nvar convertShadowDOMSelectors = (cssText) => {\n return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, \" \"), cssText);\n};\nvar makeScopeMatcher = (scopeSelector2) => {\n const lre = /\\[/g;\n const rre = /\\]/g;\n scopeSelector2 = scopeSelector2.replace(lre, \"\\\\[\").replace(rre, \"\\\\]\");\n return new RegExp(\"^(\" + scopeSelector2 + \")\" + _selectorReSuffix, \"m\");\n};\nvar selectorNeedsScoping = (selector, scopeSelector2) => {\n const re = makeScopeMatcher(scopeSelector2);\n return !re.test(selector);\n};\nvar injectScopingSelector = (selector, scopingSelector) => {\n return selector.replace(_selectorPartsRe, (_, before = \"\", _colonGroup, colon = \"\", after = \"\") => {\n return before + scopingSelector + colon + after;\n });\n};\nvar applySimpleSelectorScope = (selector, scopeSelector2, hostSelector) => {\n _polyfillHostRe.lastIndex = 0;\n if (_polyfillHostRe.test(selector)) {\n const replaceBy = `.${hostSelector}`;\n return selector.replace(_polyfillHostNoCombinatorRe, (_, selector2) => injectScopingSelector(selector2, replaceBy)).replace(_polyfillHostRe, replaceBy + \" \");\n }\n return scopeSelector2 + \" \" + selector;\n};\nvar applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {\n const isRe = /\\[is=([^\\]]*)\\]/g;\n scopeSelector2 = scopeSelector2.replace(isRe, (_, ...parts) => parts[0]);\n const className = \".\" + scopeSelector2;\n const _scopeSelectorPart = (p) => {\n let scopedP = p.trim();\n if (!scopedP) {\n return \"\";\n }\n if (p.indexOf(_polyfillHostNoCombinator) > -1) {\n scopedP = applySimpleSelectorScope(p, scopeSelector2, hostSelector);\n } else {\n const t = p.replace(_polyfillHostRe, \"\");\n if (t.length > 0) {\n scopedP = injectScopingSelector(t, className);\n }\n }\n return scopedP;\n };\n const safeContent = safeSelector(selector);\n selector = safeContent.content;\n let scopedSelector = \"\";\n let startIndex = 0;\n let res;\n const sep = /( |>|\\+|~(?!=))(?=(?:[^()]*\\([^()]*\\))*[^()]*$)\\s*/g;\n const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;\n let shouldScope = !hasHost;\n while ((res = sep.exec(selector)) !== null) {\n const separator = res[1];\n const part2 = selector.slice(startIndex, res.index).trim();\n shouldScope = shouldScope || part2.indexOf(_polyfillHostNoCombinator) > -1;\n const scopedPart = shouldScope ? _scopeSelectorPart(part2) : part2;\n scopedSelector += `${scopedPart} ${separator} `;\n startIndex = sep.lastIndex;\n }\n const part = selector.substring(startIndex);\n shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);\n scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;\n return restoreSafeSelector(safeContent.placeholders, scopedSelector);\n};\nvar scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {\n return selector.split(\",\").map((shallowPart) => {\n if (slotSelector && shallowPart.indexOf(\".\" + slotSelector) > -1) {\n return shallowPart.trim();\n }\n if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {\n return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();\n } else {\n return shallowPart.trim();\n }\n }).join(\", \");\n};\nvar isScopableAtRule = (selector) => selector.startsWith(\"@media\") || selector.startsWith(\"@supports\") || selector.startsWith(\"@page\") || selector.startsWith(\"@document\") || selector.startsWith(\"@layer\") || selector.startsWith(\"@container\");\nvar scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {\n return processRules(cssText, (rule) => {\n let selector = rule.selector;\n let content = rule.content;\n if (rule.selector[0] !== \"@\") {\n selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);\n } else if (isScopableAtRule(rule.selector)) {\n content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector);\n }\n const cssRule = {\n selector: selector.replace(/\\s{2,}/g, \" \").trim(),\n content\n };\n return cssRule;\n });\n};\nvar scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector) => {\n cssText = insertPolyfillHostInCssText(cssText);\n cssText = convertColonHost(cssText);\n cssText = convertColonHostContext(cssText);\n const slotted = convertColonSlotted(cssText, slotScopeId);\n cssText = slotted.cssText;\n cssText = convertShadowDOMSelectors(cssText);\n if (scopeId2) {\n cssText = scopeSelectors(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);\n }\n cssText = replaceShadowCssHost(cssText, hostScopeId);\n cssText = cssText.replace(/>\\s*\\*\\s+([^{, ]+)/gm, \" $1 \");\n return {\n cssText: cssText.trim(),\n // We need to replace the shadow CSS host string in each of these selectors since we created\n // them prior to the replacement happening in the components CSS text.\n slottedSelectors: slotted.selectors.map((ref) => ({\n orgSelector: replaceShadowCssHost(ref.orgSelector, hostScopeId),\n updatedSelector: replaceShadowCssHost(ref.updatedSelector, hostScopeId)\n }))\n };\n};\nvar replaceShadowCssHost = (cssText, hostScopeId) => {\n return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);\n};\nvar expandPartSelectors = (cssText) => {\n const partSelectorRe = /([^\\s,{][^,{]*?)::part\\(\\s*([^)]+?)\\s*\\)((?:[:.][^,{]*)*)/g;\n return processRules(cssText, (rule) => {\n if (rule.selector[0] === \"@\") {\n return rule;\n }\n const selectors = rule.selector.split(\",\").map((sel) => {\n const out = [sel.trim()];\n let m;\n while ((m = partSelectorRe.exec(sel)) !== null) {\n const before = m[1].trimEnd();\n const partNames = m[2].trim().split(/\\s+/);\n const after = m[3] || \"\";\n const partAttr = partNames.flatMap((p) => {\n if (!rule.selector.includes(`[part~=\"${p}\"]`)) {\n return [`[part~=\"${p}\"]`];\n }\n return [];\n }).join(\"\");\n const expanded = `${before} ${partAttr}${after}`;\n if (!!partAttr && expanded !== sel.trim()) {\n out.push(expanded);\n }\n }\n return out.join(\", \");\n });\n rule.selector = selectors.join(\", \");\n return rule;\n });\n};\nvar scopeCss = (cssText, scopeId2, commentOriginalSelector) => {\n const hostScopeId = scopeId2 + \"-h\";\n const slotScopeId = scopeId2 + \"-s\";\n const commentsWithHash = extractCommentsWithHash(cssText);\n cssText = stripComments(cssText);\n const orgSelectors = [];\n if (commentOriginalSelector) {\n const processCommentedSelector = (rule) => {\n const placeholder = `/*!@___${orgSelectors.length}___*/`;\n const comment = `/*!@${rule.selector}*/`;\n orgSelectors.push({ placeholder, comment });\n rule.selector = placeholder + rule.selector;\n return rule;\n };\n const commentSelectors = (input) => processRules(input, (rule) => {\n if (rule.selector[0] !== \"@\") {\n return processCommentedSelector(rule);\n }\n if (isScopableAtRule(rule.selector)) {\n rule.content = commentSelectors(rule.content);\n }\n return rule;\n });\n cssText = commentSelectors(cssText);\n }\n const scoped = scopeCssText(cssText, scopeId2, hostScopeId, slotScopeId, commentOriginalSelector);\n cssText = [scoped.cssText, ...commentsWithHash].join(\"\\n\");\n if (commentOriginalSelector) {\n orgSelectors.forEach(({ placeholder, comment }) => {\n cssText = cssText.replace(placeholder, comment);\n });\n }\n scoped.slottedSelectors.forEach((slottedSelector) => {\n const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector) + \"(?=\\\\s*[,{]|$)\", \"g\");\n cssText = cssText.replace(regex, slottedSelector.updatedSelector);\n });\n cssText = expandPartSelectors(cssText);\n return cssText;\n};\n\n// src/runtime/mode.ts\nvar computeMode = (elm) => modeResolver.map((h2) => h2(elm)).find((m) => !!m);\nvar setMode = (handler) => {\n modeResolver.length = 0;\n modeResolver.push(handler);\n};\nvar getMode = (ref) => {\n var _a;\n return (_a = getHostRef(ref)) == null ? void 0 : _a.$modeName$;\n};\n\n// src/runtime/normalize-watchers.ts\nvar normalizeWatchers = (raw) => {\n if (!raw) return void 0;\n const keys = Object.keys(raw);\n if (keys.length === 0) return void 0;\n let hasLegacy = false;\n for (const propName of keys) {\n if (hasLegacy) break;\n for (const h2 of raw[propName]) {\n if (typeof h2 === \"string\") {\n hasLegacy = true;\n break;\n }\n }\n }\n if (!hasLegacy) return raw;\n const out = {};\n for (const propName of keys) {\n out[propName] = raw[propName].map(\n (h2) => typeof h2 === \"string\" ? { [h2]: 0 } : h2\n );\n }\n return out;\n};\n\n// src/runtime/proxy-component.ts\nimport { BUILD as BUILD23 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/set-value.ts\nimport { BUILD as BUILD22 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/parse-property-value.ts\nimport { BUILD as BUILD15 } from \"@stencil/core/internal/app-data\";\n\n// src/utils/remote-value.ts\nvar RemoteValue = class _RemoteValue {\n /**\n * Deserializes a LocalValue serialized object back to its original JavaScript representation\n *\n * @param serialized The serialized LocalValue object\n * @returns The original JavaScript value/object\n */\n static fromLocalValue(serialized) {\n const type = serialized[TYPE_CONSTANT];\n const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;\n switch (type) {\n case \"string\" /* String */:\n return value;\n case \"boolean\" /* Boolean */:\n return value;\n case \"bigint\" /* BigInt */:\n return BigInt(value);\n case \"undefined\" /* Undefined */:\n return void 0;\n case \"null\" /* Null */:\n return null;\n case \"number\" /* Number */:\n if (value === \"NaN\") return NaN;\n if (value === \"-0\") return -0;\n if (value === \"Infinity\") return Infinity;\n if (value === \"-Infinity\") return -Infinity;\n return value;\n case \"array\" /* Array */:\n return value.map((item) => _RemoteValue.fromLocalValue(item));\n case \"date\" /* Date */:\n return new Date(value);\n case \"map\" /* Map */:\n const map = /* @__PURE__ */ new Map();\n for (const [key, val] of value) {\n const deserializedKey = typeof key === \"object\" && key !== null ? _RemoteValue.fromLocalValue(key) : key;\n const deserializedValue = _RemoteValue.fromLocalValue(val);\n map.set(deserializedKey, deserializedValue);\n }\n return map;\n case \"object\" /* Object */:\n const obj = {};\n for (const [key, val] of value) {\n obj[key] = _RemoteValue.fromLocalValue(val);\n }\n return obj;\n case \"regexp\" /* RegularExpression */:\n const { pattern, flags } = value;\n return new RegExp(pattern, flags);\n case \"set\" /* Set */:\n const set = /* @__PURE__ */ new Set();\n for (const item of value) {\n set.add(_RemoteValue.fromLocalValue(item));\n }\n return set;\n case \"symbol\" /* Symbol */:\n return Symbol(value);\n default:\n throw new Error(`Unsupported type: ${type}`);\n }\n }\n /**\n * Utility method to deserialize multiple LocalValues at once\n *\n * @param serializedValues Array of serialized LocalValue objects\n * @returns Array of deserialized JavaScript values\n */\n static fromLocalValueArray(serializedValues) {\n return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));\n }\n /**\n * Verifies if the given object matches the structure of a serialized LocalValue\n *\n * @param obj Object to verify\n * @returns boolean indicating if the object has LocalValue structure\n */\n static isLocalValueObject(obj) {\n if (typeof obj !== \"object\" || obj === null) {\n return false;\n }\n if (!obj.hasOwnProperty(TYPE_CONSTANT)) {\n return false;\n }\n const type = obj[TYPE_CONSTANT];\n const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);\n if (!hasTypeProperty) {\n return false;\n }\n if (type !== \"null\" /* Null */ && type !== \"undefined\" /* Undefined */) {\n return obj.hasOwnProperty(VALUE_CONSTANT);\n }\n return true;\n }\n};\n\n// src/utils/serialize.ts\nfunction decodeBase64Unicode(base64) {\n const binary = atob(base64);\n const bytes = new Uint8Array(binary.length);\n for (let i2 = 0; i2 < binary.length; i2++) {\n bytes[i2] = binary.charCodeAt(i2);\n }\n return new TextDecoder().decode(bytes);\n}\nfunction deserializeProperty(value) {\n if (typeof value !== \"string\" || !value.startsWith(SERIALIZED_PREFIX)) {\n return value;\n }\n return RemoteValue.fromLocalValue(JSON.parse(decodeBase64Unicode(value.slice(SERIALIZED_PREFIX.length))));\n}\n\n// src/runtime/parse-property-value.ts\nvar parsePropertyValue = (propValue, propType, isFormAssociated) => {\n if ((BUILD15.hydrateClientSide || BUILD15.hydrateServerSide) && typeof propValue === \"string\" && propValue.startsWith(SERIALIZED_PREFIX)) {\n propValue = deserializeProperty(propValue);\n return propValue;\n }\n if (propValue != null && !isComplexType(propValue)) {\n if (BUILD15.propBoolean && propType & 4 /* Boolean */) {\n if (BUILD15.formAssociated && isFormAssociated && typeof propValue === \"string\") {\n return propValue === \"\" || !!propValue;\n } else {\n return propValue === \"false\" ? false : propValue === \"\" || !!propValue;\n }\n }\n if (BUILD15.propNumber && propType & 2 /* Number */) {\n return typeof propValue === \"string\" ? parseFloat(propValue) : typeof propValue === \"number\" ? propValue : NaN;\n }\n if (BUILD15.propString && propType & 1 /* String */) {\n return String(propValue);\n }\n return propValue;\n }\n return propValue;\n};\n\n// src/runtime/update-component.ts\nimport { BUILD as BUILD21, NAMESPACE } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/event-emitter.ts\nimport { BUILD as BUILD17 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/element.ts\nimport { BUILD as BUILD16 } from \"@stencil/core/internal/app-data\";\nvar getElement = (ref) => {\n var _a;\n return BUILD16.lazyLoad ? (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ : ref;\n};\n\n// src/runtime/event-emitter.ts\nvar createEvent = (ref, name, flags) => {\n const elm = getElement(ref);\n return {\n emit: (detail) => {\n if (BUILD17.isDev && !elm.isConnected) {\n consoleDevWarn(`The \"${name}\" event was emitted, but the dispatcher node is no longer connected to the dom.`);\n }\n return emitEvent(elm, name, {\n bubbles: !!(flags & 4 /* Bubbles */),\n composed: !!(flags & 2 /* Composed */),\n cancelable: !!(flags & 1 /* Cancellable */),\n detail\n });\n }\n };\n};\nvar emitEvent = (elm, name, opts) => {\n const ev = plt.ce(name, opts);\n elm.dispatchEvent(ev);\n return ev;\n};\n\n// src/runtime/vdom/vdom-render.ts\nimport { BUILD as BUILD20 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/vdom/update-element.ts\nimport { BUILD as BUILD19 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/vdom/set-accessor.ts\nimport { BUILD as BUILD18 } from \"@stencil/core/internal/app-data\";\nvar setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {\n if (oldValue === newValue) {\n return;\n }\n let isProp = isMemberInElement(elm, memberName);\n let ln = memberName.toLowerCase();\n if (BUILD18.vdomClass && memberName === \"class\") {\n const classList = elm.classList;\n const oldClasses = parseClassList(oldValue);\n let newClasses = parseClassList(newValue);\n if (BUILD18.hydrateClientSide && (elm[\"s-si\"] || elm[\"s-sc\"]) && initialRender) {\n const scopeId2 = elm[\"s-sc\"] || elm[\"s-si\"];\n newClasses.push(scopeId2);\n oldClasses.forEach((c) => {\n if (c.startsWith(scopeId2)) newClasses.push(c);\n });\n newClasses = [...new Set(newClasses)].filter((c) => c);\n classList.add(...newClasses);\n } else {\n let removedClasses = oldClasses.filter((c) => c && !newClasses.includes(c));\n if (BUILD18.hydrateClientSide && initialRender && !(flags & 4 /* isHost */)) {\n const ownClasses = getOwnHostClasses(elm);\n removedClasses = removedClasses.filter((c) => !ownClasses.includes(c));\n }\n classList.remove(...removedClasses);\n classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));\n }\n } else if (BUILD18.vdomStyle && memberName === \"style\") {\n if (BUILD18.updatable) {\n for (const prop in oldValue) {\n if (!newValue || newValue[prop] == null) {\n if (!BUILD18.hydrateServerSide && prop.includes(\"-\")) {\n elm.style.removeProperty(prop);\n } else {\n elm.style[prop] = \"\";\n }\n }\n }\n }\n for (const prop in newValue) {\n if (!oldValue || newValue[prop] !== oldValue[prop]) {\n if (!BUILD18.hydrateServerSide && prop.includes(\"-\")) {\n elm.style.setProperty(prop, newValue[prop]);\n } else {\n elm.style[prop] = newValue[prop];\n }\n }\n }\n } else if (BUILD18.vdomKey && memberName === \"key\") {\n } else if (BUILD18.vdomRef && memberName === \"ref\") {\n if (newValue) {\n queueRefAttachment(newValue, elm);\n }\n } else if (BUILD18.vdomListener && (BUILD18.lazyLoad ? !isProp : !elm.__lookupSetter__(memberName)) && memberName[0] === \"o\" && memberName[1] === \"n\") {\n if (memberName[2] === \"-\") {\n memberName = memberName.slice(3);\n } else if (isMemberInElement(win, ln)) {\n memberName = ln.slice(2);\n } else if (memberName.endsWith(CAPTURE_EVENT_SUFFIX) && isMemberInElement(win, ln.slice(0, -CAPTURE_EVENT_SUFFIX.length))) {\n memberName = ln.slice(2, -CAPTURE_EVENT_SUFFIX.length) + CAPTURE_EVENT_SUFFIX;\n } else {\n memberName = ln[2] + memberName.slice(3);\n }\n if (oldValue || newValue) {\n const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);\n memberName = memberName.replace(CAPTURE_EVENT_REGEX, \"\");\n if (oldValue) {\n plt.rel(elm, memberName, oldValue, capture);\n }\n if (newValue) {\n plt.ael(elm, memberName, newValue, capture);\n }\n }\n } else if (BUILD18.vdomPropOrAttr && memberName[0] === \"a\" && memberName.startsWith(\"attr:\")) {\n const propName = memberName.slice(5);\n let attrName;\n if (BUILD18.member) {\n const hostRef = getHostRef(elm);\n if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {\n const memberMeta = hostRef.$cmpMeta$.$members$[propName];\n if (memberMeta && memberMeta[1]) {\n attrName = memberMeta[1];\n }\n }\n }\n if (!attrName) {\n attrName = propName.replace(/([a-z0-9])([A-Z])/g, \"$1-$2\").toLowerCase();\n }\n if (newValue == null || newValue === false) {\n if (newValue !== false || elm.getAttribute(attrName) === \"\") {\n elm.removeAttribute(attrName);\n }\n } else {\n elm.setAttribute(attrName, newValue === true ? \"\" : newValue);\n }\n return;\n } else if (BUILD18.vdomPropOrAttr && memberName[0] === \"p\" && memberName.startsWith(\"prop:\")) {\n const propName = memberName.slice(5);\n try {\n elm[propName] = newValue;\n } catch (e) {\n }\n return;\n } else if (BUILD18.vdomPropOrAttr) {\n const isComplex = isComplexType(newValue);\n if ((isProp || isComplex && newValue !== null) && !isSvg) {\n try {\n if (!elm.tagName.includes(\"-\")) {\n const n = newValue == null ? \"\" : newValue;\n if (memberName === \"list\") {\n isProp = false;\n } else if (oldValue == null || elm[memberName] !== n) {\n if (typeof elm.__lookupSetter__(memberName) === \"function\") {\n elm[memberName] = n;\n } else {\n elm.setAttribute(memberName, n);\n }\n }\n } else if (elm[memberName] !== newValue) {\n elm[memberName] = newValue;\n }\n } catch (e) {\n }\n }\n let xlink = false;\n if (BUILD18.vdomXlink) {\n if (ln !== (ln = ln.replace(/^xlink\\:?/, \"\"))) {\n memberName = ln;\n xlink = true;\n }\n }\n if (newValue == null || newValue === false) {\n if (newValue !== false || elm.getAttribute(memberName) === \"\" || flags & 4 /* isHost */ && !isEnumeratedAttribute(memberName)) {\n if (BUILD18.vdomXlink && xlink) {\n elm.removeAttributeNS(XLINK_NS, memberName);\n } else {\n elm.removeAttribute(memberName);\n }\n }\n } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {\n newValue = newValue === true ? \"\" : newValue;\n if (BUILD18.vdomXlink && xlink) {\n elm.setAttributeNS(XLINK_NS, memberName, newValue);\n } else {\n elm.setAttribute(memberName, newValue);\n }\n }\n }\n};\nvar ENUMERATED_ATTRIBUTES = /* @__PURE__ */ new Set([\"draggable\", \"contenteditable\", \"spellcheck\"]);\nvar isEnumeratedAttribute = (attrName) => ENUMERATED_ATTRIBUTES.has(attrName) || attrName.startsWith(\"aria-\");\nvar parseClassListRegex = /\\s/;\nvar getOwnHostClasses = (elm) => {\n var _a, _b, _c;\n const hostRef = getHostRef(elm);\n if (!hostRef || !(hostRef.$flags$ & 2 /* hasRendered */)) {\n return [];\n }\n const ownClasses = parseClassList((_b = (_a = hostRef.$vnode$) == null ? void 0 : _a.$attrs$) == null ? void 0 : _b.class);\n if (BUILD18.hydratedClass) {\n ownClasses.push((_c = BUILD18.hydratedSelectorName) != null ? _c : \"hydrated\");\n }\n return ownClasses;\n};\nvar parseClassList = (value) => {\n if (typeof value === \"object\" && value && \"baseVal\" in value) {\n value = value.baseVal;\n }\n if (!value || typeof value !== \"string\") {\n return [];\n }\n return value.split(parseClassListRegex);\n};\nvar CAPTURE_EVENT_SUFFIX = \"Capture\";\nvar CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + \"$\");\n\n// src/runtime/vdom/update-element.ts\nvar updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {\n const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;\n const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};\n const newVnodeAttrs = newVnode.$attrs$ || {};\n if (BUILD19.updatable) {\n for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {\n if (!(memberName in newVnodeAttrs)) {\n setAccessor(\n elm,\n memberName,\n oldVnodeAttrs[memberName],\n void 0,\n isSvgMode2,\n newVnode.$flags$,\n isInitialRender\n );\n }\n }\n }\n for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {\n setAccessor(\n elm,\n memberName,\n oldVnodeAttrs[memberName],\n newVnodeAttrs[memberName],\n isSvgMode2,\n newVnode.$flags$,\n isInitialRender\n );\n }\n};\nfunction sortedAttrNames(attrNames) {\n return attrNames.includes(\"ref\") ? (\n // we need to sort these to ensure that `'ref'` is the last attr\n [...attrNames.filter((attr) => attr !== \"ref\"), \"ref\"]\n ) : (\n // no need to sort, return the original array\n attrNames\n );\n}\n\n// src/runtime/vdom/vdom-render.ts\nvar scopeId;\nvar contentRef;\nvar hostTagName;\nvar useNativeShadowDom = false;\nvar checkSlotFallbackVisibility = false;\nvar checkSlotRelocate = false;\nvar isSvgMode = false;\nvar refCallbacksToRemove = [];\nvar refCallbacksToAttach = [];\nvar createElm = (oldParentVNode, newParentVNode, childIndex) => {\n var _a;\n const newVNode2 = newParentVNode.$children$[childIndex];\n let i2 = 0;\n let elm;\n let childNode;\n let oldVNode;\n if (BUILD20.slotRelocation && !useNativeShadowDom) {\n checkSlotRelocate = true;\n if (newVNode2.$tag$ === \"slot\") {\n newVNode2.$flags$ |= newVNode2.$children$ ? (\n // slot element has fallback content\n // still create an element that \"mocks\" the slot element\n 2 /* isSlotFallback */\n ) : (\n // slot element does not have fallback content\n // create an html comment we'll use to always reference\n // where actual slot content should sit next to\n 1 /* isSlotReference */\n );\n }\n }\n if (BUILD20.isDev && newVNode2.$elm$) {\n consoleDevError(\n `The JSX ${newVNode2.$text$ !== null ? `\"${newVNode2.$text$}\" text` : `\"${newVNode2.$tag$}\" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`\n );\n }\n if (BUILD20.vdomText && newVNode2.$text$ != null) {\n elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);\n } else if (BUILD20.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {\n elm = newVNode2.$elm$ = BUILD20.isDebug || BUILD20.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode(\"\");\n if (BUILD20.vdomAttribute) {\n updateElement(null, newVNode2, isSvgMode);\n }\n } else {\n if (BUILD20.svg && !isSvgMode) {\n isSvgMode = newVNode2.$tag$ === \"svg\";\n }\n if (!win.document) {\n throw new Error(\"You are trying to render a Stencil component in an environment that doesn't support the DOM.\");\n }\n elm = newVNode2.$elm$ = BUILD20.svg ? win.document.createElementNS(\n isSvgMode ? SVG_NS : HTML_NS,\n !useNativeShadowDom && BUILD20.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? \"slot-fb\" : newVNode2.$tag$\n ) : win.document.createElement(\n !useNativeShadowDom && BUILD20.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? \"slot-fb\" : newVNode2.$tag$\n );\n if (BUILD20.svg && isSvgMode && newVNode2.$tag$ === \"foreignObject\") {\n isSvgMode = false;\n }\n if (BUILD20.vdomAttribute) {\n updateElement(null, newVNode2, isSvgMode);\n }\n if ((BUILD20.scoped || BUILD20.hydrateServerSide && 128 /* shadowNeedsScopedCss */) && isDef(scopeId) && elm[\"s-si\"] !== scopeId) {\n elm.classList.add(elm[\"s-si\"] = scopeId);\n }\n if (newVNode2.$children$) {\n const appendTarget = newVNode2.$tag$ === \"template\" ? elm.content : elm;\n for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {\n childNode = createElm(oldParentVNode, newVNode2, i2);\n if (childNode) {\n appendTarget.appendChild(childNode);\n }\n }\n }\n if (BUILD20.svg) {\n if (newVNode2.$tag$ === \"svg\") {\n isSvgMode = false;\n } else if (elm.tagName === \"foreignObject\") {\n isSvgMode = true;\n }\n }\n }\n elm[\"s-hn\"] = hostTagName;\n if (BUILD20.slotRelocation) {\n if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {\n elm[\"s-sr\"] = true;\n elm[\"s-cr\"] = contentRef;\n elm[\"s-sn\"] = newVNode2.$name$ || \"\";\n elm[\"s-rf\"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;\n patchSlotNode(elm);\n oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];\n if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {\n relocateToHostRoot(oldParentVNode.$elm$);\n }\n if (BUILD20.scoped || BUILD20.hydrateServerSide && 128 /* shadowNeedsScopedCss */) {\n addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);\n }\n }\n }\n return elm;\n};\nvar relocateToHostRoot = (parentElm) => {\n plt.$flags$ |= 1 /* isTmpDisconnected */;\n const host = parentElm.closest(hostTagName.toLowerCase());\n if (host != null) {\n const contentRefNode = Array.from(host.__childNodes || host.childNodes).find(\n (ref) => ref[\"s-cr\"]\n );\n const childNodeArray = Array.from(\n parentElm.__childNodes || parentElm.childNodes\n );\n for (const childNode of contentRefNode ? childNodeArray.reverse() : childNodeArray) {\n if (childNode[\"s-sh\"] != null) {\n insertBefore(host, childNode, contentRefNode != null ? contentRefNode : null);\n childNode[\"s-sh\"] = void 0;\n checkSlotRelocate = true;\n }\n }\n }\n plt.$flags$ &= ~1 /* isTmpDisconnected */;\n};\nvar putBackInOriginalLocation = (parentElm, recursive) => {\n plt.$flags$ |= 1 /* isTmpDisconnected */;\n const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);\n if (parentElm[\"s-sr\"]) {\n let node = parentElm;\n while (node = node.nextSibling) {\n if (node && node[\"s-sn\"] === parentElm[\"s-sn\"] && node[\"s-sh\"] === hostTagName) {\n oldSlotChildNodes.push(node);\n }\n }\n }\n for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {\n const childNode = oldSlotChildNodes[i2];\n if (childNode[\"s-hn\"] !== hostTagName && childNode[\"s-ol\"]) {\n insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));\n childNode[\"s-ol\"].remove();\n childNode[\"s-ol\"] = void 0;\n childNode[\"s-sh\"] = void 0;\n checkSlotRelocate = true;\n }\n if (recursive) {\n putBackInOriginalLocation(childNode, recursive);\n }\n }\n plt.$flags$ &= ~1 /* isTmpDisconnected */;\n};\nvar addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {\n let containerElm = BUILD20.slotRelocation && parentElm[\"s-cr\"] && parentElm[\"s-cr\"].parentNode || parentElm;\n let childNode;\n if (BUILD20.shadowDom && containerElm.shadowRoot && containerElm.tagName === hostTagName) {\n containerElm = containerElm.shadowRoot;\n }\n if (parentVNode.$tag$ === \"template\") {\n containerElm = containerElm.content;\n }\n for (; startIdx <= endIdx; ++startIdx) {\n if (vnodes[startIdx]) {\n childNode = createElm(null, parentVNode, startIdx);\n if (childNode) {\n vnodes[startIdx].$elm$ = childNode;\n insertBefore(containerElm, childNode, BUILD20.slotRelocation ? referenceNode(before) : before);\n }\n }\n }\n};\nvar removeVnodes = (vnodes, startIdx, endIdx) => {\n for (let index = startIdx; index <= endIdx; ++index) {\n const vnode = vnodes[index];\n if (vnode) {\n const elm = vnode.$elm$;\n nullifyVNodeRefs(vnode);\n if (elm) {\n if (BUILD20.slotRelocation) {\n checkSlotFallbackVisibility = true;\n if (elm[\"s-ol\"]) {\n elm[\"s-ol\"].remove();\n } else {\n putBackInOriginalLocation(elm, true);\n }\n }\n elm.remove();\n }\n }\n }\n};\nvar updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {\n let oldStartIdx = 0;\n let newStartIdx = 0;\n let idxInOld = 0;\n let i2 = 0;\n let oldEndIdx = oldCh.length - 1;\n let oldStartVnode = oldCh[0];\n let oldEndVnode = oldCh[oldEndIdx];\n let newEndIdx = newCh.length - 1;\n let newStartVnode = newCh[0];\n let newEndVnode = newCh[newEndIdx];\n let node;\n let elmToMove;\n const containerElm = newVNode2.$tag$ === \"template\" ? parentElm.content : parentElm;\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n if (oldStartVnode == null) {\n oldStartVnode = oldCh[++oldStartIdx];\n } else if (oldEndVnode == null) {\n oldEndVnode = oldCh[--oldEndIdx];\n } else if (newStartVnode == null) {\n newStartVnode = newCh[++newStartIdx];\n } else if (newEndVnode == null) {\n newEndVnode = newCh[--newEndIdx];\n } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {\n patch(oldStartVnode, newStartVnode, isInitialRender);\n oldStartVnode = oldCh[++oldStartIdx];\n newStartVnode = newCh[++newStartIdx];\n } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {\n patch(oldEndVnode, newEndVnode, isInitialRender);\n oldEndVnode = oldCh[--oldEndIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {\n if (BUILD20.slotRelocation && (oldStartVnode.$tag$ === \"slot\" || newEndVnode.$tag$ === \"slot\")) {\n putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);\n }\n patch(oldStartVnode, newEndVnode, isInitialRender);\n insertBefore(containerElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);\n oldStartVnode = oldCh[++oldStartIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {\n if (BUILD20.slotRelocation && (oldStartVnode.$tag$ === \"slot\" || newEndVnode.$tag$ === \"slot\")) {\n putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);\n }\n patch(oldEndVnode, newStartVnode, isInitialRender);\n insertBefore(containerElm, oldEndVnode.$elm$, oldStartVnode.$elm$);\n oldEndVnode = oldCh[--oldEndIdx];\n newStartVnode = newCh[++newStartIdx];\n } else {\n idxInOld = -1;\n if (BUILD20.vdomKey) {\n for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {\n if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {\n idxInOld = i2;\n break;\n }\n }\n }\n if (BUILD20.vdomKey && idxInOld >= 0) {\n elmToMove = oldCh[idxInOld];\n if (elmToMove.$tag$ !== newStartVnode.$tag$) {\n node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);\n } else {\n patch(elmToMove, newStartVnode, isInitialRender);\n oldCh[idxInOld] = void 0;\n node = elmToMove.$elm$;\n }\n newStartVnode = newCh[++newStartIdx];\n } else {\n node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);\n newStartVnode = newCh[++newStartIdx];\n }\n if (node) {\n if (BUILD20.slotRelocation) {\n insertBefore(\n referenceNode(oldStartVnode.$elm$).parentNode,\n node,\n referenceNode(oldStartVnode.$elm$)\n );\n } else {\n insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);\n }\n }\n }\n }\n if (oldStartIdx > oldEndIdx) {\n addVnodes(\n parentElm,\n newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,\n newVNode2,\n newCh,\n newStartIdx,\n newEndIdx\n );\n } else if (BUILD20.updatable && newStartIdx > newEndIdx) {\n removeVnodes(oldCh, oldStartIdx, oldEndIdx);\n }\n};\nvar isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {\n if (leftVNode.$tag$ === rightVNode.$tag$) {\n if (BUILD20.slotRelocation && leftVNode.$tag$ === \"slot\") {\n return leftVNode.$name$ === rightVNode.$name$;\n }\n if (BUILD20.vdomKey && !isInitialRender) {\n return leftVNode.$key$ === rightVNode.$key$;\n }\n if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {\n leftVNode.$key$ = rightVNode.$key$;\n }\n return true;\n }\n return false;\n};\nvar referenceNode = (node) => node && node[\"s-ol\"] || node;\nvar patch = (oldVNode, newVNode2, isInitialRender = false) => {\n const elm = newVNode2.$elm$ = oldVNode.$elm$;\n const oldChildren = oldVNode.$children$;\n const newChildren = newVNode2.$children$;\n const tag = newVNode2.$tag$;\n const text = newVNode2.$text$;\n let defaultHolder;\n if (!BUILD20.vdomText || text == null) {\n if (BUILD20.svg) {\n isSvgMode = tag === \"svg\" ? true : tag === \"foreignObject\" ? false : isSvgMode;\n }\n if (BUILD20.vdomAttribute || BUILD20.reflect) {\n if (BUILD20.slot && tag === \"slot\" && !useNativeShadowDom) {\n if (oldVNode.$name$ !== newVNode2.$name$) {\n newVNode2.$elm$[\"s-sn\"] = newVNode2.$name$ || \"\";\n relocateToHostRoot(newVNode2.$elm$.parentElement);\n }\n }\n updateElement(oldVNode, newVNode2, isSvgMode, isInitialRender);\n }\n if (BUILD20.updatable && oldChildren !== null && newChildren !== null) {\n updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);\n } else if (newChildren !== null) {\n if (BUILD20.updatable && BUILD20.vdomText && oldVNode.$text$ !== null) {\n elm.textContent = \"\";\n }\n addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);\n } else if (\n // don't do this on initial render as it can cause non-hydrated content to be removed\n !isInitialRender && BUILD20.updatable && oldChildren !== null\n ) {\n removeVnodes(oldChildren, 0, oldChildren.length - 1);\n } else if (BUILD20.hydrateClientSide && isInitialRender && BUILD20.updatable && oldChildren !== null && newChildren === null) {\n newVNode2.$children$ = oldChildren;\n }\n if (BUILD20.svg && isSvgMode && tag === \"svg\") {\n isSvgMode = false;\n }\n } else if (BUILD20.vdomText && BUILD20.slotRelocation && (defaultHolder = elm[\"s-cr\"])) {\n defaultHolder.parentNode.textContent = text;\n } else if (BUILD20.vdomText && oldVNode.$text$ !== text) {\n elm.data = text;\n }\n};\nvar relocateNodes = [];\nvar markSlotContentForRelocation = (elm) => {\n let node;\n let hostContentNodes;\n let j;\n const children = elm.__childNodes || elm.childNodes;\n for (const childNode of children) {\n if (childNode[\"s-sr\"] && (node = childNode[\"s-cr\"]) && node.parentNode) {\n hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;\n const slotName = childNode[\"s-sn\"];\n for (j = hostContentNodes.length - 1; j >= 0; j--) {\n node = hostContentNodes[j];\n if (!node[\"s-cn\"] && !node[\"s-nr\"] && node[\"s-hn\"] !== childNode[\"s-hn\"] && // let an exact named-slot match override a stale default-slot claim. Skip this for\n // `slotName === ''` itself - a matched default node's cached `s-sn` is `''` too, which\n // would trivially \"match\" on every re-render and force pointless re-insertion.\n (!node[\"s-sh\"] || node[\"s-sh\"] !== childNode[\"s-hn\"] || slotName !== \"\" && getSlotName(node) === slotName)) {\n if (isNodeLocatedInSlot(node, slotName)) {\n let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);\n checkSlotFallbackVisibility = true;\n node[\"s-sn\"] = node[\"s-sn\"] || slotName;\n if (relocateNodeData) {\n relocateNodeData.$nodeToRelocate$[\"s-sh\"] = childNode[\"s-hn\"];\n relocateNodeData.$slotRefNode$ = childNode;\n } else {\n node[\"s-sh\"] = childNode[\"s-hn\"];\n relocateNodes.push({\n $slotRefNode$: childNode,\n $nodeToRelocate$: node\n });\n }\n if (node[\"s-sr\"]) {\n relocateNodes.map((relocateNode) => {\n if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node[\"s-sn\"])) {\n relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);\n if (relocateNodeData && !relocateNode.$slotRefNode$) {\n relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;\n }\n }\n });\n }\n } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {\n relocateNodes.push({\n $nodeToRelocate$: node\n });\n }\n }\n }\n }\n if (childNode.nodeType === 1 /* ElementNode */) {\n markSlotContentForRelocation(childNode);\n }\n }\n};\nvar nullifyVNodeRefs = (vNode) => {\n if (BUILD20.vdomRef) {\n if (vNode.$attrs$ && vNode.$attrs$.ref) {\n refCallbacksToRemove.push(() => vNode.$attrs$.ref(null));\n }\n vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);\n }\n};\nvar queueRefAttachment = (refCallback, elm) => {\n if (BUILD20.vdomRef) {\n refCallbacksToAttach.push(() => refCallback(elm));\n }\n};\nvar flushQueuedRefCallbacks = () => {\n if (BUILD20.vdomRef) {\n refCallbacksToRemove.forEach((cb) => cb());\n refCallbacksToRemove.length = 0;\n refCallbacksToAttach.forEach((cb) => cb());\n refCallbacksToAttach.length = 0;\n }\n};\nvar insertBefore = (parent, newNode, reference, isInitialLoad) => {\n if (BUILD20.slotRelocation) {\n if (BUILD20.scoped && typeof newNode[\"s-sn\"] === \"string\" && !!newNode[\"s-sr\"] && !!newNode[\"s-cr\"]) {\n addRemoveSlotScopedClass(newNode[\"s-cr\"], newNode, parent, newNode.parentElement);\n } else if (typeof newNode[\"s-sn\"] === \"string\") {\n if (BUILD20.experimentalSlotFixes && parent.getRootNode().nodeType !== 11 /* DOCUMENT_FRAGMENT_NODE */) {\n patchParentNode(newNode);\n }\n parent.insertBefore(newNode, reference);\n const { slotNode } = findSlotFromSlottedNode(newNode);\n if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);\n return newNode;\n }\n }\n if (BUILD20.slotRelocation && (parent == null ? void 0 : parent.__insertBefore)) {\n return parent.__insertBefore(newNode, reference);\n } else {\n return parent == null ? void 0 : parent.insertBefore(newNode, reference);\n }\n};\nfunction addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {\n var _a, _b;\n let scopeId2;\n if (reference && typeof slotNode[\"s-sn\"] === \"string\" && !!slotNode[\"s-sr\"] && reference.parentNode && reference.parentNode[\"s-sc\"] && (scopeId2 = slotNode[\"s-si\"] || reference.parentNode[\"s-sc\"])) {\n const scopeName = slotNode[\"s-sn\"];\n const hostName = slotNode[\"s-hn\"];\n (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + \"-s\");\n if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + \"-s\"))) {\n let child = (oldParent.__childNodes || oldParent.childNodes)[0];\n let found = false;\n while (child) {\n if (child[\"s-sn\"] !== scopeName && child[\"s-hn\"] === hostName && !!child[\"s-sr\"]) {\n found = true;\n break;\n }\n child = child.nextSibling;\n }\n if (!found) oldParent.classList.remove(scopeId2 + \"-s\");\n }\n }\n}\nvar renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {\n var _a, _b, _c, _d, _e;\n const hostElm = hostRef.$hostElement$;\n const cmpMeta = hostRef.$cmpMeta$;\n const oldVNode = hostRef.$vnode$ || newVNode(null, null);\n const isHostElement = isHost(renderFnResults);\n const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);\n hostTagName = hostElm.tagName;\n if (BUILD20.isDev && Array.isArray(renderFnResults) && renderFnResults.some(isHost)) {\n throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of \"${hostTagName.toLowerCase()}\" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);\n }\n if (BUILD20.reflect && cmpMeta.$attrsToReflect$) {\n rootVnode.$attrs$ = rootVnode.$attrs$ || {};\n cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {\n if (BUILD20.serializer && hostRef.$serializerValues$.has(propName)) {\n rootVnode.$attrs$[attribute] = hostRef.$serializerValues$.get(propName);\n } else {\n rootVnode.$attrs$[attribute] = hostElm[propName];\n }\n });\n }\n if (isInitialLoad && rootVnode.$attrs$) {\n for (const key of Object.keys(rootVnode.$attrs$)) {\n if (hostElm.hasAttribute(key) && ![\"key\", \"ref\", \"style\", \"class\"].includes(key)) {\n rootVnode.$attrs$[key] = hostElm[key];\n }\n }\n }\n rootVnode.$tag$ = null;\n rootVnode.$flags$ |= 4 /* isHost */;\n hostRef.$vnode$ = rootVnode;\n rootVnode.$elm$ = oldVNode.$elm$ = BUILD20.shadowDom ? hostElm.shadowRoot || hostElm : hostElm;\n if (BUILD20.scoped || BUILD20.shadowDom) {\n scopeId = hostElm[\"s-sc\"];\n }\n useNativeShadowDom = supportsShadow && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);\n if (BUILD20.slotRelocation) {\n contentRef = hostElm[\"s-cr\"];\n checkSlotFallbackVisibility = false;\n }\n patch(oldVNode, rootVnode, isInitialLoad);\n if (BUILD20.slotRelocation) {\n plt.$flags$ |= 1 /* isTmpDisconnected */;\n if (checkSlotRelocate) {\n markSlotContentForRelocation(rootVnode.$elm$);\n for (const relocateData of relocateNodes) {\n const nodeToRelocate = relocateData.$nodeToRelocate$;\n if (!nodeToRelocate[\"s-ol\"] && win.document) {\n const orgLocationNode = BUILD20.isDebug || BUILD20.hydrateServerSide ? originalLocationDebugNode(nodeToRelocate) : win.document.createTextNode(\"\");\n orgLocationNode[\"s-nr\"] = nodeToRelocate;\n insertBefore(\n nodeToRelocate.parentNode,\n nodeToRelocate[\"s-ol\"] = orgLocationNode,\n nodeToRelocate,\n isInitialLoad\n );\n }\n }\n for (const relocateData of relocateNodes) {\n const nodeToRelocate = relocateData.$nodeToRelocate$;\n const slotRefNode = relocateData.$slotRefNode$;\n if (nodeToRelocate.nodeType === 1 /* ElementNode */ && isInitialLoad) {\n nodeToRelocate[\"s-ih\"] = (_a = nodeToRelocate.hidden) != null ? _a : false;\n }\n if (slotRefNode) {\n const parentNodeRef = slotRefNode.parentNode;\n let insertBeforeNode = slotRefNode.nextSibling;\n if (!BUILD20.hydrateServerSide && insertBeforeNode && insertBeforeNode.nodeType === 1 /* ElementNode */) {\n let orgLocationNode = (_b = nodeToRelocate[\"s-ol\"]) == null ? void 0 : _b.previousSibling;\n while (orgLocationNode) {\n let refNode = (_c = orgLocationNode[\"s-nr\"]) != null ? _c : null;\n if (refNode && refNode[\"s-sn\"] === nodeToRelocate[\"s-sn\"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {\n refNode = refNode.nextSibling;\n while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode[\"s-sr\"])) {\n refNode = refNode == null ? void 0 : refNode.nextSibling;\n }\n if (!refNode || !refNode[\"s-nr\"]) {\n insertBeforeNode = refNode;\n break;\n }\n }\n orgLocationNode = orgLocationNode.previousSibling;\n }\n }\n const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;\n const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;\n if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {\n if (nodeToRelocate !== insertBeforeNode) {\n insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode, isInitialLoad);\n if (nodeToRelocate.nodeType === 8 /* CommentNode */ && nodeToRelocate.nodeValue.startsWith(\"s-nt-\")) {\n const textNode = win.document.createTextNode(nodeToRelocate.nodeValue.replace(/^s-nt-/, \"\"));\n textNode[\"s-hn\"] = nodeToRelocate[\"s-hn\"];\n textNode[\"s-sn\"] = nodeToRelocate[\"s-sn\"];\n textNode[\"s-sh\"] = nodeToRelocate[\"s-sh\"];\n textNode[\"s-sr\"] = nodeToRelocate[\"s-sr\"];\n textNode[\"s-ol\"] = nodeToRelocate[\"s-ol\"];\n textNode[\"s-ol\"][\"s-nr\"] = textNode;\n insertBefore(nodeToRelocate.parentNode, textNode, nodeToRelocate, isInitialLoad);\n nodeToRelocate.parentNode.removeChild(nodeToRelocate);\n }\n if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== \"SLOT-FB\") {\n nodeToRelocate.hidden = (_d = nodeToRelocate[\"s-ih\"]) != null ? _d : false;\n }\n }\n }\n nodeToRelocate && typeof slotRefNode[\"s-rf\"] === \"function\" && slotRefNode[\"s-rf\"](slotRefNode);\n } else if (nodeToRelocate.nodeType === 1 /* ElementNode */) {\n nodeToRelocate.hidden = true;\n }\n }\n }\n if (checkSlotFallbackVisibility) {\n updateFallbackSlotVisibility(rootVnode.$elm$);\n }\n plt.$flags$ &= ~1 /* isTmpDisconnected */;\n relocateNodes.length = 0;\n }\n if (BUILD20.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && hostElm[\"s-cr\"]) {\n const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;\n for (const childNode of children) {\n if (childNode[\"s-hn\"] !== hostTagName && !childNode[\"s-sh\"]) {\n if (isInitialLoad && childNode[\"s-ih\"] == null) {\n childNode[\"s-ih\"] = (_e = childNode.hidden) != null ? _e : false;\n }\n if (childNode.nodeType === 1 /* ElementNode */) {\n childNode.hidden = true;\n } else if (childNode.nodeType === 3 /* TextNode */ && !!childNode.nodeValue.trim()) {\n const textCommentNode = win.document.createComment(\"s-nt-\" + childNode.nodeValue);\n textCommentNode[\"s-sn\"] = childNode[\"s-sn\"];\n insertBefore(childNode.parentNode, textCommentNode, childNode, isInitialLoad);\n childNode.parentNode.removeChild(childNode);\n }\n }\n }\n }\n contentRef = void 0;\n flushQueuedRefCallbacks();\n};\nvar slotReferenceDebugNode = (slotVNode) => {\n var _a;\n return (_a = win.document) == null ? void 0 : _a.createComment(\n `<slot${slotVNode.$name$ ? ' name=\"' + slotVNode.$name$ + '\"' : \"\"}> (host=${hostTagName.toLowerCase()})`\n );\n};\nvar originalLocationDebugNode = (nodeToRelocate) => {\n var _a;\n return (_a = win.document) == null ? void 0 : _a.createComment(\n `org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate[\"s-hn\"]})` : `[${nodeToRelocate.textContent}]`)\n );\n};\n\n// src/runtime/update-component.ts\nvar attachToAncestor = (hostRef, ancestorComponent) => {\n if (BUILD21.asyncLoading && ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent[\"s-p\"]) {\n const index = ancestorComponent[\"s-p\"].push(\n new Promise(\n (r) => hostRef.$onRenderResolve$ = () => {\n ancestorComponent[\"s-p\"].splice(index - 1, 1);\n r();\n }\n )\n );\n }\n};\nvar scheduleUpdate = (hostRef, isInitialLoad) => {\n if (BUILD21.updatable) {\n hostRef.$flags$ |= 16 /* isQueuedForUpdate */;\n }\n if (BUILD21.asyncLoading && hostRef.$flags$ & 4 /* isWaitingForChildren */) {\n hostRef.$flags$ |= 512 /* needsRerender */;\n return;\n }\n attachToAncestor(hostRef, hostRef.$ancestorComponent$);\n const dispatch = () => dispatchHooks(hostRef, isInitialLoad);\n if (isInitialLoad) {\n queueMicrotask(() => {\n dispatch();\n });\n return;\n }\n return BUILD21.taskQueue ? writeTask(dispatch) : dispatch();\n};\nvar dispatchHooks = (hostRef, isInitialLoad) => {\n const elm = hostRef.$hostElement$;\n const endSchedule = createTime(\"scheduleUpdate\", hostRef.$cmpMeta$.$tagName$);\n const instance = BUILD21.lazyLoad ? hostRef.$lazyInstance$ : elm;\n if (!instance) {\n throw new Error(\n `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`\n );\n }\n let maybePromise;\n if (isInitialLoad) {\n if (BUILD21.lazyLoad) {\n if (BUILD21.slotRelocation && hostRef.$deferredConnectedCallback$) {\n hostRef.$deferredConnectedCallback$ = false;\n safeCall(instance, \"connectedCallback\", void 0, elm);\n }\n if (BUILD21.hostListener) {\n hostRef.$flags$ |= 256 /* isListenReady */;\n if (hostRef.$queuedListeners$) {\n hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));\n hostRef.$queuedListeners$ = void 0;\n }\n }\n if (hostRef.$fetchedCbList$.length) {\n hostRef.$fetchedCbList$.forEach((cb) => cb(elm));\n }\n }\n emitLifecycleEvent(elm, \"componentWillLoad\");\n maybePromise = safeCall(instance, \"componentWillLoad\", void 0, elm);\n } else {\n emitLifecycleEvent(elm, \"componentWillUpdate\");\n maybePromise = safeCall(instance, \"componentWillUpdate\", void 0, elm);\n }\n emitLifecycleEvent(elm, \"componentWillRender\");\n maybePromise = enqueue(maybePromise, () => safeCall(instance, \"componentWillRender\", void 0, elm));\n endSchedule();\n return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));\n};\nvar enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err) => {\n console.error(err);\n fn();\n}) : fn();\nvar isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === \"function\";\nvar updateComponent = async (hostRef, instance, isInitialLoad) => {\n var _a;\n const elm = hostRef.$hostElement$;\n const endUpdate = createTime(\"update\", hostRef.$cmpMeta$.$tagName$);\n const rc = elm[\"s-rc\"];\n if (BUILD21.style && isInitialLoad) {\n attachStyles(hostRef);\n }\n const endRender = createTime(\"render\", hostRef.$cmpMeta$.$tagName$);\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 2048 /* devOnRender */;\n }\n if (BUILD21.hydrateServerSide) {\n await callRender(hostRef, instance, elm, isInitialLoad);\n } else {\n callRender(hostRef, instance, elm, isInitialLoad);\n }\n if (BUILD21.isDev) {\n hostRef.$renderCount$ = hostRef.$renderCount$ === void 0 ? 1 : hostRef.$renderCount$ + 1;\n hostRef.$flags$ &= ~2048 /* devOnRender */;\n }\n if (BUILD21.hydrateServerSide) {\n try {\n serverSideConnected(elm);\n if (isInitialLoad) {\n if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {\n elm[\"s-en\"] = \"\";\n } else if (hostRef.$cmpMeta$.$flags$ & 2 /* scopedCssEncapsulation */) {\n elm[\"s-en\"] = \"c\";\n }\n }\n } catch (e) {\n consoleError(e, elm);\n }\n }\n if (BUILD21.asyncLoading && rc) {\n rc.map((cb) => cb());\n elm[\"s-rc\"] = void 0;\n }\n endRender();\n endUpdate();\n if (BUILD21.asyncLoading) {\n const childrenPromises = (_a = elm[\"s-p\"]) != null ? _a : [];\n const postUpdate = () => postUpdateComponent(hostRef);\n if (childrenPromises.length === 0) {\n postUpdate();\n } else {\n Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);\n hostRef.$flags$ |= 4 /* isWaitingForChildren */;\n childrenPromises.length = 0;\n }\n } else {\n postUpdateComponent(hostRef);\n }\n};\nvar renderingRef = null;\nvar callRender = (hostRef, instance, elm, isInitialLoad) => {\n const allRenderFn = BUILD21.allRenderFn ? true : false;\n const lazyLoad = BUILD21.lazyLoad ? true : false;\n const updatable = BUILD21.updatable ? true : false;\n try {\n renderingRef = instance;\n instance = allRenderFn ? instance.render() : instance.render && instance.render();\n if (updatable) {\n hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;\n }\n if (updatable || lazyLoad) {\n hostRef.$flags$ |= 2 /* hasRendered */;\n }\n if (BUILD21.hasRenderFn || BUILD21.reflect) {\n if (BUILD21.vdomRender || BUILD21.reflect) {\n if (BUILD21.hydrateServerSide) {\n return Promise.resolve(instance).then((value) => renderVdom(hostRef, value, isInitialLoad));\n } else {\n renderVdom(hostRef, instance, isInitialLoad);\n }\n } else {\n const shadowRoot = elm.shadowRoot;\n if (hostRef.$cmpMeta$.$flags$ & 1 /* shadowDomEncapsulation */) {\n shadowRoot.textContent = instance;\n } else {\n elm.textContent = instance;\n }\n }\n }\n } catch (e) {\n consoleError(e, hostRef.$hostElement$);\n }\n renderingRef = null;\n return null;\n};\nvar getRenderingRef = () => renderingRef;\nvar postUpdateComponent = (hostRef) => {\n const tagName = hostRef.$cmpMeta$.$tagName$;\n const elm = hostRef.$hostElement$;\n const endPostUpdate = createTime(\"postUpdate\", tagName);\n const instance = BUILD21.lazyLoad ? hostRef.$lazyInstance$ : elm;\n const ancestorComponent = hostRef.$ancestorComponent$;\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 2048 /* devOnRender */;\n }\n safeCall(instance, \"componentDidRender\", void 0, elm);\n if (BUILD21.isDev) {\n hostRef.$flags$ &= ~2048 /* devOnRender */;\n }\n emitLifecycleEvent(elm, \"componentDidRender\");\n if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {\n hostRef.$flags$ |= 64 /* hasLoadedComponent */;\n if (BUILD21.asyncLoading && BUILD21.cssAnnotations) {\n addHydratedFlag(elm);\n }\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 4096 /* devOnDidLoad */;\n }\n safeCall(instance, \"componentDidLoad\", void 0, elm);\n if (BUILD21.isDev) {\n hostRef.$flags$ &= ~4096 /* devOnDidLoad */;\n }\n emitLifecycleEvent(elm, \"componentDidLoad\");\n endPostUpdate();\n if (BUILD21.asyncLoading) {\n hostRef.$onReadyResolve$(elm);\n if (!ancestorComponent) {\n appDidLoad(tagName);\n }\n }\n } else {\n if (BUILD21.isDev) {\n hostRef.$flags$ |= 2048 /* devOnRender */;\n }\n safeCall(instance, \"componentDidUpdate\", void 0, elm);\n if (BUILD21.isDev) {\n hostRef.$flags$ &= ~2048 /* devOnRender */;\n }\n emitLifecycleEvent(elm, \"componentDidUpdate\");\n endPostUpdate();\n }\n if (BUILD21.method && BUILD21.lazyLoad) {\n hostRef.$onInstanceResolve$(elm);\n }\n if (BUILD21.asyncLoading) {\n if (hostRef.$onRenderResolve$) {\n hostRef.$onRenderResolve$();\n hostRef.$onRenderResolve$ = void 0;\n }\n if (hostRef.$flags$ & 512 /* needsRerender */) {\n nextTick(() => scheduleUpdate(hostRef, false));\n }\n hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);\n }\n};\nvar forceUpdate = (ref) => {\n var _a;\n if (BUILD21.updatable && (Build.isBrowser || Build.isTesting)) {\n const hostRef = getHostRef(ref);\n const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;\n if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {\n scheduleUpdate(hostRef, false);\n }\n return isConnected;\n }\n return false;\n};\nvar appDidLoad = (who) => {\n var _a;\n if (BUILD21.asyncQueue) {\n plt.$flags$ |= 2 /* appLoaded */;\n }\n nextTick(() => emitEvent(win, \"appload\", { detail: { namespace: NAMESPACE } }));\n if (BUILD21.hydrateClientSide) {\n if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {\n plt.$orgLocNodes$.clear();\n }\n }\n if (BUILD21.profile && performance.measure) {\n performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, \"st:app:start\");\n }\n};\nvar safeCall = (instance, method, arg, elm) => {\n if (instance && instance[method]) {\n try {\n return instance[method](arg);\n } catch (e) {\n consoleError(e, elm);\n }\n }\n return void 0;\n};\nvar emitLifecycleEvent = (elm, lifecycleName) => {\n if (BUILD21.lifecycleDOMEvents) {\n emitEvent(elm, \"stencil_\" + lifecycleName, {\n bubbles: true,\n composed: true,\n detail: {\n namespace: NAMESPACE\n }\n });\n }\n};\nvar addHydratedFlag = (elm) => {\n var _a, _b;\n return BUILD21.hydratedClass ? elm.classList.add((_a = BUILD21.hydratedSelectorName) != null ? _a : \"hydrated\") : BUILD21.hydratedAttribute ? elm.setAttribute((_b = BUILD21.hydratedSelectorName) != null ? _b : \"hydrated\", \"\") : void 0;\n};\nvar serverSideConnected = (elm) => {\n const children = elm.children;\n if (children != null) {\n for (let i2 = 0, ii = children.length; i2 < ii; i2++) {\n const childElm = children[i2];\n if (typeof childElm.connectedCallback === \"function\") {\n childElm.connectedCallback();\n }\n serverSideConnected(childElm);\n }\n }\n};\n\n// src/runtime/set-value.ts\nvar getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);\nvar setValue = (ref, propName, newVal, cmpMeta) => {\n const hostRef = getHostRef(ref);\n if (!hostRef) {\n return;\n }\n if (BUILD22.lazyLoad && !hostRef) {\n throw new Error(\n `Couldn't find host element for \"${cmpMeta.$tagName$}\" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`\n );\n }\n if (BUILD22.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newVal) {\n return;\n }\n const elm = BUILD22.lazyLoad ? hostRef.$hostElement$ : ref;\n const oldVal = hostRef.$instanceValues$.get(propName);\n const flags = hostRef.$flags$;\n const instance = BUILD22.lazyLoad ? hostRef.$lazyInstance$ : elm;\n newVal = parsePropertyValue(\n newVal,\n cmpMeta.$members$[propName][0],\n BUILD22.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)\n );\n const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);\n const didValueChange = newVal !== oldVal && !areBothNaN;\n if ((!BUILD22.lazyLoad || !(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {\n hostRef.$instanceValues$.set(propName, newVal);\n if (BUILD22.serializer && BUILD22.reflect && cmpMeta.$attrsToReflect$) {\n if (cmpMeta.$serializers$ && cmpMeta.$serializers$[propName]) {\n const runSerializer = (inst) => {\n let attrVal = newVal;\n for (const serializer of cmpMeta.$serializers$[propName]) {\n const [[methodName]] = Object.entries(serializer);\n attrVal = inst[methodName](attrVal, propName);\n }\n hostRef.$serializerValues$.set(propName, attrVal);\n };\n if (instance) {\n runSerializer(instance);\n } else {\n hostRef.$fetchedCbList$.push(() => {\n runSerializer(hostRef.$lazyInstance$);\n });\n }\n }\n }\n if (BUILD22.isDev) {\n if (hostRef.$flags$ & 2048 /* devOnRender */) {\n consoleDevWarn(\n `The state/prop \"${propName}\" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,\n \"\\nElement\",\n elm,\n \"\\nNew value\",\n newVal,\n \"\\nOld value\",\n oldVal\n );\n } else if (hostRef.$flags$ & 4096 /* devOnDidLoad */) {\n consoleDevWarn(\n `The state/prop \"${propName}\" changed during \"componentDidLoad()\", this triggers extra re-renders, try to setup on \"componentWillLoad()\"`,\n \"\\nElement\",\n elm,\n \"\\nNew value\",\n newVal,\n \"\\nOld value\",\n oldVal\n );\n }\n }\n if (BUILD22.propChangeCallback && cmpMeta.$watchers$) {\n const watchMethods = cmpMeta.$watchers$[propName];\n if (watchMethods) {\n watchMethods.map((watcher) => {\n try {\n const [[watchMethodName, watcherFlags]] = Object.entries(watcher);\n if (flags & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */) {\n if (!instance) {\n hostRef.$fetchedCbList$.push(() => {\n hostRef.$lazyInstance$[watchMethodName](newVal, oldVal, propName);\n });\n } else {\n instance[watchMethodName](newVal, oldVal, propName);\n }\n }\n } catch (e) {\n consoleError(e, elm);\n }\n });\n }\n }\n if (BUILD22.updatable && flags & 2 /* hasRendered */) {\n if (instance.componentShouldUpdate) {\n const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);\n if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {\n return;\n }\n }\n if (!(flags & 16 /* isQueuedForUpdate */)) {\n scheduleUpdate(hostRef, false);\n }\n }\n }\n};\n\n// src/runtime/proxy-component.ts\nvar reflectedAttrValue = (propValue) => propValue == null || propValue === false ? null : propValue === true ? \"\" : String(propValue);\nvar replayPendingSetterValues = (hostRef, cmpMeta) => {\n var _a;\n const instance = hostRef.$lazyInstance$;\n if (!instance) return;\n for (const [memberName, [memberFlags]] of Object.entries((_a = cmpMeta.$members$) != null ? _a : {})) {\n if (memberFlags & 4096 /* Setter */ && hostRef.$instanceValues$.has(memberName)) {\n const pendingValue = hostRef.$instanceValues$.get(memberName);\n if (instance[memberName] !== pendingValue) {\n instance[memberName] = pendingValue;\n }\n }\n }\n};\nvar proxyComponent = (Cstr, cmpMeta, flags) => {\n var _a, _b;\n const prototype = Cstr.prototype;\n if (BUILD23.isTesting) {\n if (prototype.__stencilAugmented) {\n return;\n }\n prototype.__stencilAugmented = true;\n }\n if (BUILD23.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */ && flags & 1 /* isElementConstructor */) {\n FORM_ASSOCIATED_CUSTOM_ELEMENT_CALLBACKS.forEach((cbName) => {\n const originalFormAssociatedCallback = prototype[cbName];\n Object.defineProperty(prototype, cbName, {\n value(...args) {\n var _a2;\n const hostRef = getHostRef(this);\n const instance = BUILD23.lazyLoad ? hostRef == null ? void 0 : hostRef.$lazyInstance$ : this;\n if (!instance) {\n (_a2 = hostRef == null ? void 0 : hostRef.$onReadyPromise$) == null ? void 0 : _a2.then((asyncInstance) => {\n const cb = asyncInstance[cbName];\n typeof cb === \"function\" && cb.call(asyncInstance, ...args);\n });\n } else {\n const cb = BUILD23.lazyLoad ? instance[cbName] : originalFormAssociatedCallback;\n typeof cb === \"function\" && cb.call(instance, ...args);\n }\n }\n });\n });\n }\n if (BUILD23.member && cmpMeta.$members$ || BUILD23.propChangeCallback) {\n if (BUILD23.propChangeCallback) {\n if (Cstr.watchers && !cmpMeta.$watchers$) {\n cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);\n }\n if (Cstr.deserializers && !cmpMeta.$deserializers$) {\n cmpMeta.$deserializers$ = Cstr.deserializers;\n }\n if (Cstr.serializers && !cmpMeta.$serializers$) {\n cmpMeta.$serializers$ = Cstr.serializers;\n }\n }\n const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});\n members.map(([memberName, [memberFlags]]) => {\n if ((BUILD23.prop || BUILD23.state) && (memberFlags & 31 /* Prop */ || (!BUILD23.lazyLoad || flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {\n const { get: origGetter, set: origSetter } = getPropertyDescriptor(prototype, memberName) || {};\n if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;\n if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;\n if (flags & 1 /* isElementConstructor */ || !origGetter) {\n Object.defineProperty(prototype, memberName, {\n get() {\n if (BUILD23.lazyLoad) {\n if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {\n return getValue(this, memberName);\n }\n const ref = getHostRef(this);\n if (!ref) return prototype[memberName];\n return ref.$lazyInstance$ ? ref.$lazyInstance$[memberName] : getValue(this, memberName);\n }\n if (!BUILD23.lazyLoad) {\n return origGetter ? origGetter.apply(this) : getValue(this, memberName);\n }\n },\n configurable: true,\n enumerable: true\n });\n }\n Object.defineProperty(prototype, memberName, {\n set(newValue) {\n const ref = getHostRef(this);\n if (!ref) {\n return;\n }\n if (BUILD23.isDev) {\n if (\n // we are proxying the instance (not element)\n (flags & 1 /* isElementConstructor */) === 0 && // if the class has a setter, then the Element can update instance values, so ignore\n (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0 && // the element is not constructing\n (ref && ref.$flags$ & 8 /* isConstructingInstance */) === 0 && // the member is a prop\n (memberFlags & 31 /* Prop */) !== 0 && // the member is not mutable\n (memberFlags & 1024 /* Mutable */) === 0\n ) {\n consoleDevWarn(\n `@Prop() \"${memberName}\" on <${cmpMeta.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`\n );\n }\n }\n if (origSetter) {\n const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];\n if (typeof currentValue === \"undefined\" && ref.$instanceValues$.get(memberName)) {\n newValue = ref.$instanceValues$.get(memberName);\n }\n origSetter.apply(this, [\n parsePropertyValue(\n newValue,\n memberFlags,\n BUILD23.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)\n )\n ]);\n newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];\n setValue(this, memberName, newValue, cmpMeta);\n return;\n }\n if (!BUILD23.lazyLoad) {\n setValue(this, memberName, newValue, cmpMeta);\n return;\n }\n if (BUILD23.lazyLoad) {\n if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {\n setValue(this, memberName, newValue, cmpMeta);\n return;\n }\n const parsedValue = parsePropertyValue(\n newValue,\n memberFlags,\n BUILD23.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */)\n );\n if (ref.$lazyInstance$) {\n const currentValue = ref.$lazyInstance$[memberName];\n if (!ref.$instanceValues$.get(memberName) && currentValue) {\n ref.$instanceValues$.set(memberName, currentValue);\n }\n ref.$lazyInstance$[memberName] = parsedValue;\n setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);\n } else {\n ref.$instanceValues$.set(memberName, parsedValue);\n }\n }\n }\n });\n } else if (BUILD23.lazyLoad && BUILD23.method && flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {\n Object.defineProperty(prototype, memberName, {\n value(...args) {\n var _a2;\n const ref = getHostRef(this);\n return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {\n var _a3;\n return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);\n });\n }\n });\n }\n });\n if (BUILD23.observeAttribute && (!BUILD23.lazyLoad || flags & 1 /* isElementConstructor */)) {\n const attrNameToPropName = /* @__PURE__ */ new Map();\n prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {\n plt.jmp(() => {\n var _a2;\n const propName = attrNameToPropName.get(attrName);\n const hostRef = getHostRef(this);\n if (BUILD23.serializer && hostRef.$serializerValues$.has(propName) && hostRef.$serializerValues$.get(propName) === newValue) {\n return;\n }\n if (this.hasOwnProperty(propName) && BUILD23.lazyLoad) {\n newValue = this[propName];\n delete this[propName];\n }\n if (BUILD23.deserializer && cmpMeta.$deserializers$ && cmpMeta.$deserializers$[propName]) {\n const setVal = (methodName, instance) => {\n const deserializeVal = instance == null ? void 0 : instance[methodName](newValue, propName);\n if (deserializeVal !== this[propName]) {\n this[propName] = deserializeVal;\n }\n };\n for (const deserializer of cmpMeta.$deserializers$[propName]) {\n const [[methodName]] = Object.entries(deserializer);\n if (BUILD23.lazyLoad) {\n if (hostRef.$lazyInstance$) {\n setVal(methodName, hostRef.$lazyInstance$);\n } else {\n hostRef.$fetchedCbList$.push(() => {\n setVal(methodName, hostRef.$lazyInstance$);\n });\n }\n } else {\n setVal(methodName, this);\n }\n }\n return;\n } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === \"number\" && // cast type to number to avoid TS compiler issues\n this[propName] == newValue) {\n return;\n } else if (propName == null) {\n const flags2 = hostRef == null ? void 0 : hostRef.$flags$;\n if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && newValue !== oldValue) {\n const elm = BUILD23.lazyLoad ? hostRef.$hostElement$ : this;\n const instance = BUILD23.lazyLoad ? hostRef.$lazyInstance$ : elm;\n const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];\n entry == null ? void 0 : entry.forEach((watcher) => {\n const [[watchMethodName, watcherFlags]] = Object.entries(watcher);\n if ((instance == null ? void 0 : instance[watchMethodName]) != null && (flags2 & 128 /* isWatchReady */ || watcherFlags & 1 /* Immediate */)) {\n instance[watchMethodName].call(instance, newValue, oldValue, attrName);\n }\n });\n }\n return;\n }\n const propFlags = members.find(([m]) => m === propName);\n const propMemberFlags = propFlags ? propFlags[1][0] : 0;\n const isBooleanTarget = propMemberFlags & 4 /* Boolean */;\n if (BUILD23.reflect && propMemberFlags & 512 /* ReflectAttr */ && propMemberFlags & 8 /* Any */ && // a complex value is never written to an attribute, so a change while the prop holds\n // one is always external\n !isComplexType(this[propName]) && reflectedAttrValue(this[propName]) === newValue) {\n return;\n }\n const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;\n if (isBooleanTarget) {\n const isFormAssociated = BUILD23.formAssociated && !!(cmpMeta.$flags$ & 64 /* formAssociated */);\n newValue = newValue === null || newValue === \"false\" && !isFormAssociated ? false : true;\n }\n const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);\n const isUnchanged = newValue === this[propName] || newValue == null && this[propName] == null;\n if (!isSpuriousBooleanRemoval && !isUnchanged && (!propDesc.get || !!propDesc.set)) {\n this[propName] = newValue;\n }\n });\n };\n Cstr.observedAttributes = Array.from(\n /* @__PURE__ */ new Set([\n ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),\n ...members.filter(([_, m]) => m[0] & 31 /* HasAttribute */).map(([propName, m]) => {\n var _a2;\n const attrName = m[1] || propName;\n attrNameToPropName.set(attrName, propName);\n if (BUILD23.reflect && m[0] & 512 /* ReflectAttr */) {\n (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);\n }\n return attrName;\n })\n ])\n );\n }\n }\n return Cstr;\n};\n\n// src/runtime/initialize-component.ts\nvar initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {\n var _a;\n let Cstr;\n try {\n if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {\n hostRef.$flags$ |= 32 /* hasInitializedComponent */;\n hostRef.$flags$ &= ~1024 /* hasFailedLoad */;\n const bundleId = cmpMeta.$lazyBundleId$;\n if (BUILD24.lazyLoad && bundleId) {\n const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);\n if (CstrImport && \"then\" in CstrImport) {\n const endLoad = uniqueTime(\n `st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,\n `[Stencil] Load module for <${cmpMeta.$tagName$}>`\n );\n Cstr = await CstrImport;\n endLoad();\n } else {\n Cstr = CstrImport;\n }\n if (!Cstr) {\n hostRef.$flags$ &= ~32 /* hasInitializedComponent */;\n hostRef.$loadRetryCount$ = ((_a = hostRef.$loadRetryCount$) != null ? _a : 0) + 1;\n if (hostRef.$loadRetryCount$ < MAX_LAZY_LOAD_RETRIES) {\n hostRef.$flags$ |= 1024 /* hasFailedLoad */;\n }\n throw new Error(`Constructor for \"${cmpMeta.$tagName$}#${hostRef.$modeName$}\" was not found`);\n }\n if (BUILD24.member && !Cstr.isProxied) {\n if (BUILD24.propChangeCallback) {\n cmpMeta.$watchers$ = normalizeWatchers(Cstr.watchers);\n cmpMeta.$serializers$ = Cstr.serializers;\n cmpMeta.$deserializers$ = Cstr.deserializers;\n }\n proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);\n Cstr.isProxied = true;\n }\n const endNewInstance = createTime(\"createInstance\", cmpMeta.$tagName$);\n if (BUILD24.member) {\n hostRef.$flags$ |= 8 /* isConstructingInstance */;\n }\n try {\n new Cstr(hostRef);\n } catch (e) {\n consoleError(e, elm);\n }\n if (BUILD24.member) {\n hostRef.$flags$ &= ~8 /* isConstructingInstance */;\n replayPendingSetterValues(hostRef, cmpMeta);\n }\n if (BUILD24.propChangeCallback) {\n hostRef.$flags$ |= 128 /* isWatchReady */;\n }\n endNewInstance();\n const needsDeferredCallback = BUILD24.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;\n if (!needsDeferredCallback) {\n fireConnectedCallback(hostRef.$lazyInstance$, elm);\n } else {\n hostRef.$deferredConnectedCallback$ = true;\n }\n } else {\n Cstr = elm.constructor;\n const cmpTag = elm.localName;\n customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);\n }\n if (BUILD24.style && Cstr && Cstr.style) {\n let style;\n if (typeof Cstr.style === \"string\") {\n style = Cstr.style;\n } else if (BUILD24.mode && typeof Cstr.style !== \"string\") {\n hostRef.$modeName$ = computeMode(elm);\n if (hostRef.$modeName$) {\n style = Cstr.style[hostRef.$modeName$];\n }\n if (BUILD24.hydrateServerSide && hostRef.$modeName$) {\n elm.setAttribute(\"s-mode\", hostRef.$modeName$);\n }\n }\n const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);\n if (!styles.has(scopeId2) || BUILD24.hotModuleReplacement && hmrVersionId) {\n const endRegisterStyles = createTime(\"registerStyles\", cmpMeta.$tagName$);\n if (BUILD24.hydrateServerSide && BUILD24.shadowDom) {\n if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {\n style = scopeCss(style, scopeId2, true);\n } else if (needsScopedSSR()) {\n style = expandPartSelectors(style);\n }\n }\n registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));\n endRegisterStyles();\n }\n }\n }\n const ancestorComponent = hostRef.$ancestorComponent$;\n const schedule = () => scheduleUpdate(hostRef, true);\n if (BUILD24.asyncLoading && ancestorComponent && ancestorComponent[\"s-rc\"]) {\n ancestorComponent[\"s-rc\"].push(schedule);\n } else {\n schedule();\n }\n } catch (e) {\n consoleError(e, elm);\n if (BUILD24.asyncLoading && hostRef.$onRenderResolve$) {\n hostRef.$onRenderResolve$();\n hostRef.$onRenderResolve$ = void 0;\n }\n if (BUILD24.asyncLoading && hostRef.$onReadyResolve$ && !(hostRef.$flags$ & 1024 /* hasFailedLoad */)) {\n hostRef.$onReadyResolve$(elm);\n }\n }\n};\nvar fireConnectedCallback = (instance, elm) => {\n if (BUILD24.lazyLoad) {\n safeCall(instance, \"connectedCallback\", void 0, elm);\n }\n};\n\n// src/runtime/connected-callback.ts\nvar connectedCallback = (elm) => {\n if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {\n const hostRef = getHostRef(elm);\n if (!hostRef) {\n return;\n }\n const cmpMeta = hostRef.$cmpMeta$;\n const endConnected = createTime(\"connectedCallback\", cmpMeta.$tagName$);\n if (BUILD25.hostListenerTargetParent) {\n addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);\n }\n if (!(hostRef.$flags$ & 1 /* hasConnected */)) {\n hostRef.$flags$ |= 1 /* hasConnected */;\n let hostId;\n if (BUILD25.hydrateClientSide) {\n hostId = elm.getAttribute(HYDRATE_ID);\n if (hostId) {\n if (BUILD25.shadowDom && supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n const scopeId2 = BUILD25.mode ? addStyle(elm.shadowRoot, cmpMeta, elm.getAttribute(\"s-mode\")) : addStyle(elm.shadowRoot, cmpMeta);\n elm.classList.remove(scopeId2 + \"-h\", scopeId2 + \"-s\");\n } else if (BUILD25.scoped && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {\n const scopeId2 = getScopeId(cmpMeta, BUILD25.mode ? elm.getAttribute(\"s-mode\") : void 0);\n elm[\"s-sc\"] = scopeId2;\n }\n initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);\n }\n }\n if (BUILD25.slotRelocation && !hostId) {\n if (BUILD25.hydrateServerSide || (BUILD25.slot || BUILD25.shadowDom) && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field\n cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {\n setContentReference(elm);\n }\n }\n if (BUILD25.asyncLoading) {\n let ancestorComponent = elm;\n while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {\n if (BUILD25.hydrateClientSide && ancestorComponent.nodeType === 1 /* ElementNode */ && ancestorComponent.hasAttribute(\"s-id\") && ancestorComponent[\"s-p\"] || ancestorComponent[\"s-p\"]) {\n attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);\n break;\n }\n }\n }\n if (BUILD25.prop && !BUILD25.hydrateServerSide && cmpMeta.$members$) {\n Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {\n if (memberFlags & 31 /* Prop */ && Object.prototype.hasOwnProperty.call(elm, memberName)) {\n const value = elm[memberName];\n delete elm[memberName];\n elm[memberName] = value;\n }\n });\n }\n if (BUILD25.initializeNextTick) {\n nextTick(() => initializeComponent(elm, hostRef, cmpMeta));\n } else {\n initializeComponent(elm, hostRef, cmpMeta);\n }\n } else {\n addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);\n if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {\n fireConnectedCallback(hostRef.$lazyInstance$, elm);\n } else if (hostRef.$flags$ & 1024 /* hasFailedLoad */) {\n setTimeout(() => initializeComponent(elm, hostRef, cmpMeta), LAZY_LOAD_RETRY_INTERVAL_MS);\n } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {\n hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));\n }\n }\n endConnected();\n }\n};\nvar setContentReference = (elm) => {\n if (!win.document) {\n return;\n }\n const contentRefElm = elm[\"s-cr\"] = win.document.createComment(\n BUILD25.isDebug ? `content-ref (host=${elm.localName})` : \"\"\n );\n contentRefElm[\"s-cn\"] = true;\n insertBefore(elm, contentRefElm, elm.firstChild);\n};\n\n// src/runtime/disconnected-callback.ts\nimport { BUILD as BUILD26 } from \"@stencil/core/internal/app-data\";\nvar disconnectInstance = (instance, elm) => {\n if (BUILD26.lazyLoad) {\n safeCall(instance, \"disconnectedCallback\", void 0, elm || instance);\n }\n};\nvar disconnectedCallback = async (elm) => {\n if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {\n const hostRef = getHostRef(elm);\n if (BUILD26.hostListener) {\n if (hostRef == null ? void 0 : hostRef.$rmListeners$) {\n hostRef.$rmListeners$.map((rmListener) => rmListener());\n hostRef.$rmListeners$ = void 0;\n }\n }\n if (!BUILD26.lazyLoad) {\n disconnectInstance(elm);\n } else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {\n disconnectInstance(hostRef.$lazyInstance$, elm);\n } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {\n hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));\n }\n }\n if (rootAppliedStyles.has(elm)) {\n rootAppliedStyles.delete(elm);\n }\n if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {\n rootAppliedStyles.delete(elm.shadowRoot);\n }\n};\n\n// src/runtime/bootstrap-custom-element.ts\nvar defineCustomElement = (Cstr, compactMeta) => {\n customElements.define(\n transformTag(compactMeta[1]),\n proxyCustomElement(Cstr, compactMeta)\n );\n};\nvar proxyCustomElement = (Cstr, compactMeta) => {\n if (BUILD27.profile && performance.mark && performance.getEntriesByName(\"st:app:start\", \"mark\").length === 0) {\n performance.mark(\"st:app:start\");\n }\n const cmpMeta = {\n $flags$: compactMeta[0],\n $tagName$: compactMeta[1]\n };\n try {\n if (BUILD27.member) {\n cmpMeta.$members$ = compactMeta[2];\n }\n if (BUILD27.hostListener) {\n cmpMeta.$listeners$ = compactMeta[3];\n }\n if (BUILD27.propChangeCallback) {\n cmpMeta.$watchers$ = normalizeWatchers(Cstr.$watchers$);\n cmpMeta.$deserializers$ = Cstr.$deserializers$;\n cmpMeta.$serializers$ = Cstr.$serializers$;\n }\n if (BUILD27.reflect) {\n cmpMeta.$attrsToReflect$ = [];\n }\n if (BUILD27.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;\n }\n if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {\n if (BUILD27.experimentalSlotFixes) {\n patchPseudoShadowDom(Cstr.prototype);\n } else {\n if (BUILD27.slotChildNodesFix) {\n patchChildSlotNodes(Cstr.prototype);\n }\n if (BUILD27.cloneNodeFix) {\n patchCloneNode(Cstr.prototype);\n }\n if (BUILD27.appendChildSlotFix) {\n patchSlotAppendChild(Cstr.prototype);\n }\n if (BUILD27.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {\n patchTextContent(Cstr.prototype);\n }\n }\n } else if (BUILD27.cloneNodeFix) {\n patchCloneNode(Cstr.prototype);\n }\n if (BUILD27.hydrateClientSide && BUILD27.shadowDom) {\n hydrateScopedToShadow([cmpMeta]);\n }\n const originalConnectedCallback = Cstr.prototype.connectedCallback;\n const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;\n Object.assign(Cstr.prototype, {\n __hasHostListenerAttached: false,\n __registerHost() {\n registerHost(this, cmpMeta);\n },\n connectedCallback() {\n if (!this.__hasHostListenerAttached) {\n const hostRef = getHostRef(this);\n if (!hostRef) {\n return;\n }\n addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);\n this.__hasHostListenerAttached = true;\n }\n connectedCallback(this);\n if (originalConnectedCallback) {\n originalConnectedCallback.call(this);\n }\n },\n disconnectedCallback() {\n disconnectedCallback(this);\n if (originalDisconnectedCallback) {\n originalDisconnectedCallback.call(this);\n }\n },\n __attachShadow() {\n if (supportsShadow) {\n if (!this.shadowRoot) {\n createShadowRoot.call(this, cmpMeta);\n } else {\n if (this.shadowRoot.mode !== \"open\") {\n throw new Error(\n `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`\n );\n }\n }\n } else {\n this.shadowRoot = this;\n }\n }\n });\n Object.defineProperty(Cstr, \"is\", {\n value: cmpMeta.$tagName$,\n configurable: true\n });\n return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);\n } catch (e) {\n consoleError(e);\n return Cstr;\n }\n};\nvar forceModeUpdate = (elm) => {\n if (BUILD27.style && BUILD27.mode && !BUILD27.lazyLoad) {\n const mode = computeMode(elm);\n const hostRef = getHostRef(elm);\n if (hostRef && hostRef.$modeName$ !== mode) {\n const cmpMeta = hostRef.$cmpMeta$;\n const oldScopeId = elm[\"s-sc\"];\n const scopeId2 = getScopeId(cmpMeta, mode);\n const style = elm.constructor.style[mode];\n const flags = cmpMeta.$flags$;\n if (style) {\n if (!styles.has(scopeId2)) {\n registerStyle(scopeId2, style, !!(flags & 1 /* shadowDomEncapsulation */));\n }\n hostRef.$modeName$ = mode;\n elm.classList.remove(oldScopeId + \"-h\", oldScopeId + \"-s\");\n attachStyles(hostRef);\n forceUpdate(elm);\n }\n }\n }\n};\n\n// src/runtime/bootstrap-lazy.ts\nimport { BUILD as BUILD28 } from \"@stencil/core/internal/app-data\";\n\n// src/runtime/hmr-component.ts\nvar hmrStart = (hostElement, cmpMeta, hmrVersionId) => {\n const hostRef = getHostRef(hostElement);\n if (!hostRef) {\n return;\n }\n hostRef.$flags$ = 1 /* hasConnected */;\n initializeComponent(hostElement, hostRef, cmpMeta, hmrVersionId);\n};\n\n// src/runtime/bootstrap-lazy.ts\nvar bootstrapLazy = (lazyBundles, options = {}) => {\n var _a;\n if (BUILD28.profile && performance.mark) {\n performance.mark(\"st:app:start\");\n }\n installDevTools();\n if (!win.document) {\n console.warn(\"Stencil: No document found. Skipping bootstrapping lazy components.\");\n return;\n }\n const endBootstrap = createTime(\"bootstrapLazy\");\n const cmpTags = [];\n const exclude = options.exclude || [];\n const customElements2 = win.customElements;\n const head = win.document.head;\n const metaCharset = /* @__PURE__ */ head.querySelector(\"meta[charset]\");\n const dataStyles = /* @__PURE__ */ win.document.createElement(\"style\");\n const deferredConnectedCallbacks = [];\n let appLoadFallback;\n let isBootstrapping = true;\n Object.assign(plt, options);\n plt.$resourcesUrl$ = new URL(options.resourcesUrl || \"./\", win.document.baseURI).href;\n if (BUILD28.asyncQueue) {\n if (options.syncQueue) {\n plt.$flags$ |= 4 /* queueSync */;\n }\n }\n if (BUILD28.hydrateClientSide) {\n plt.$flags$ |= 2 /* appLoaded */;\n }\n if (BUILD28.hydrateClientSide && BUILD28.shadowDom) {\n const cmpMetas = [];\n lazyBundles.map((lazyBundle) => lazyBundle[1].map(([$flags$, $tagName$]) => cmpMetas.push({ $flags$, $tagName$ })));\n hydrateScopedToShadow(cmpMetas);\n }\n let hasSlotRelocation = false;\n lazyBundles.map((lazyBundle) => {\n lazyBundle[1].map((compactMeta) => {\n var _a2, _b;\n const cmpMeta = {\n $flags$: compactMeta[0],\n $tagName$: compactMeta[1],\n $members$: compactMeta[2],\n $listeners$: compactMeta[3]\n };\n if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {\n hasSlotRelocation = true;\n }\n if (BUILD28.member) {\n cmpMeta.$members$ = compactMeta[2];\n }\n if (BUILD28.hostListener) {\n cmpMeta.$listeners$ = compactMeta[3];\n }\n if (BUILD28.reflect) {\n cmpMeta.$attrsToReflect$ = [];\n }\n if (BUILD28.propChangeCallback) {\n cmpMeta.$watchers$ = normalizeWatchers(compactMeta[4]);\n cmpMeta.$serializers$ = (_a2 = compactMeta[5]) != null ? _a2 : {};\n cmpMeta.$deserializers$ = (_b = compactMeta[6]) != null ? _b : {};\n }\n if (BUILD28.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;\n }\n const tagName = BUILD28.transformTagName && options.transformTagName ? options.transformTagName(cmpMeta.$tagName$) : transformTag(cmpMeta.$tagName$);\n const HostElement = class extends HTMLElement {\n [\"s-p\"];\n [\"s-rc\"];\n hasRegisteredEventListeners = false;\n // StencilLazyHost\n constructor(self) {\n super(self);\n self = this;\n registerHost(self, cmpMeta);\n if (BUILD28.shadowDom && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {\n if (supportsShadow) {\n if (!self.shadowRoot) {\n createShadowRoot.call(self, cmpMeta);\n } else {\n if (self.shadowRoot.mode !== \"open\") {\n throw new Error(\n `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`\n );\n }\n }\n } else if (!BUILD28.hydrateServerSide && !(\"shadowRoot\" in self)) {\n self.shadowRoot = self;\n }\n }\n }\n connectedCallback() {\n const hostRef = getHostRef(this);\n if (!hostRef) {\n return;\n }\n if (!this.hasRegisteredEventListeners) {\n this.hasRegisteredEventListeners = true;\n addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);\n }\n if (appLoadFallback) {\n clearTimeout(appLoadFallback);\n appLoadFallback = null;\n }\n if (isBootstrapping) {\n deferredConnectedCallbacks.push(this);\n } else {\n plt.jmp(() => connectedCallback(this));\n }\n }\n disconnectedCallback() {\n plt.jmp(() => disconnectedCallback(this));\n nextTick(() => {\n var _a3, _b2;\n const hostRef = getHostRef(this);\n if (!hostRef) {\n return;\n }\n const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);\n if (i2 > -1) {\n deferredConnectedCallbacks.splice(i2, 1);\n }\n if (((_b2 = (_a3 = hostRef.$vnode$) == null ? void 0 : _a3.$elm$) == null ? void 0 : _b2.isConnected) === false) {\n delete hostRef.$vnode$.$elm$;\n }\n });\n }\n componentOnReady() {\n var _a3;\n return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;\n }\n };\n if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {\n if (BUILD28.experimentalSlotFixes) {\n patchPseudoShadowDom(HostElement.prototype);\n } else {\n if (BUILD28.slotChildNodesFix) {\n patchChildSlotNodes(HostElement.prototype);\n }\n if (BUILD28.cloneNodeFix) {\n patchCloneNode(HostElement.prototype);\n }\n if (BUILD28.appendChildSlotFix) {\n patchSlotAppendChild(HostElement.prototype);\n }\n if (BUILD28.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {\n patchTextContent(HostElement.prototype);\n }\n }\n } else if (BUILD28.cloneNodeFix) {\n patchCloneNode(HostElement.prototype);\n }\n if (BUILD28.formAssociated && cmpMeta.$flags$ & 64 /* formAssociated */) {\n HostElement.formAssociated = true;\n }\n if (BUILD28.hotModuleReplacement) {\n HostElement.prototype[\"s-hmr\"] = function(hmrVersionId) {\n hmrStart(this, cmpMeta, hmrVersionId);\n };\n }\n cmpMeta.$lazyBundleId$ = lazyBundle[0];\n if (!exclude.includes(tagName) && !customElements2.get(tagName)) {\n cmpTags.push(tagName);\n customElements2.define(\n tagName,\n proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)\n );\n }\n });\n });\n if (cmpTags.length > 0) {\n if (BUILD28.slotRelocation && hasSlotRelocation) {\n dataStyles.textContent += SLOT_FB_CSS;\n }\n if (BUILD28.invisiblePrehydration && (BUILD28.hydratedClass || BUILD28.hydratedAttribute)) {\n dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;\n }\n if (dataStyles.innerHTML.length) {\n dataStyles.setAttribute(\"data-styles\", \"\");\n const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);\n if (nonce != null) {\n dataStyles.setAttribute(\"nonce\", nonce);\n }\n head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);\n }\n }\n isBootstrapping = false;\n if (deferredConnectedCallbacks.length) {\n deferredConnectedCallbacks.map((host) => host.connectedCallback());\n } else {\n if (BUILD28.profile) {\n plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30, \"timeout\"));\n } else {\n plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));\n }\n }\n endBootstrap();\n};\n\n// src/runtime/fragment.ts\nvar Fragment = (_, children) => children;\n\n// src/runtime/host-listener.ts\nimport { BUILD as BUILD29 } from \"@stencil/core/internal/app-data\";\nvar addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {\n if (BUILD29.hostListener && listeners && win.document) {\n if (BUILD29.hostListenerTargetParent) {\n if (attachParentListeners) {\n listeners = listeners.filter(([flags]) => flags & 32 /* TargetParent */);\n } else {\n listeners = listeners.filter(([flags]) => !(flags & 32 /* TargetParent */));\n }\n }\n listeners.map(([flags, name, method]) => {\n const target = BUILD29.hostListenerTarget ? getHostListenerTarget(win.document, elm, flags) : elm;\n const handler = hostListenerProxy(hostRef, method);\n const opts = hostListenerOpts(flags);\n plt.ael(target, name, handler, opts);\n (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));\n });\n }\n};\nvar hostListenerProxy = (hostRef, methodName) => (ev) => {\n var _a;\n try {\n if (BUILD29.lazyLoad) {\n if (hostRef.$flags$ & 256 /* isListenReady */) {\n (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);\n } else {\n (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);\n }\n } else {\n hostRef.$hostElement$[methodName](ev);\n }\n } catch (e) {\n consoleError(e, hostRef.$hostElement$);\n }\n};\nvar getHostListenerTarget = (doc, elm, flags) => {\n if (BUILD29.hostListenerTargetDocument && flags & 4 /* TargetDocument */) {\n return doc;\n }\n if (BUILD29.hostListenerTargetWindow && flags & 8 /* TargetWindow */) {\n return win;\n }\n if (BUILD29.hostListenerTargetBody && flags & 16 /* TargetBody */) {\n return doc.body;\n }\n if (BUILD29.hostListenerTargetParent && flags & 32 /* TargetParent */ && elm.parentElement) {\n return elm.parentElement;\n }\n return elm;\n};\nvar hostListenerOpts = (flags) => supportsListenerOptions ? {\n passive: (flags & 1 /* Passive */) !== 0,\n capture: (flags & 2 /* Capture */) !== 0\n} : (flags & 2 /* Capture */) !== 0;\n\n// src/runtime/mixin.ts\nimport { BUILD as BUILD30 } from \"@stencil/core/internal/app-data\";\nvar baseClass = BUILD30.lazyLoad ? class {\n} : globalThis.HTMLElement || class {\n};\nfunction Mixin(...mixins) {\n return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);\n}\n\n// src/runtime/nonce.ts\nvar setNonce = (nonce) => plt.$nonce$ = nonce;\n\n// src/runtime/platform-options.ts\nvar setPlatformOptions = (opts) => Object.assign(plt, opts);\n\n// src/runtime/render.ts\nvar hostRefCache = /* @__PURE__ */ new WeakMap();\nfunction render(vnode, container) {\n let ref = hostRefCache.get(container);\n if (!ref) {\n const cmpMeta = {\n $flags$: 0,\n $tagName$: container.tagName\n };\n ref = {\n $flags$: 0,\n $cmpMeta$: cmpMeta,\n $hostElement$: container\n };\n hostRefCache.set(container, ref);\n }\n renderVdom(ref, vnode);\n}\n\n// src/runtime/tag-transform.ts\nvar tagTransformer = void 0;\nfunction transformTag(tag) {\n if (!tagTransformer) return tag;\n return tagTransformer(tag);\n}\nfunction setTagTransformer(transformer) {\n if (tagTransformer) {\n console.warn(`\n A tagTransformer has already been set. \n Overwriting it may lead to error and unexpected results if your components have already been defined.\n `);\n }\n tagTransformer = transformer;\n}\n\n// src/runtime/vdom/jsx-dev-runtime.ts\nfunction jsxDEV(type, props, key, _isStaticChildren, _source, _self) {\n const propsObj = props || {};\n const { children, ...rest } = propsObj;\n let vnodeData = rest;\n if (key !== void 0 && !(\"key\" in rest)) {\n vnodeData = { ...rest, key };\n }\n if (vnodeData && Object.keys(vnodeData).length === 0) {\n vnodeData = null;\n }\n if (children !== void 0) {\n if (Array.isArray(children)) {\n return h(type, vnodeData, ...children);\n }\n if (typeof children === \"object\" && children !== null && \"$flags$\" in children) {\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData);\n}\n\n// src/runtime/vdom/jsx-runtime.ts\nfunction jsx(type, props, key) {\n const propsObj = props || {};\n const { children, ...rest } = propsObj;\n let vnodeData = rest;\n if (key !== void 0 && !(\"key\" in rest)) {\n vnodeData = { ...rest, key };\n }\n if (vnodeData && Object.keys(vnodeData).length === 0) {\n vnodeData = null;\n }\n if (children !== void 0) {\n if (Array.isArray(children)) {\n return h(type, vnodeData, ...children);\n }\n if (typeof children === \"object\" && children !== null && \"$flags$\" in children) {\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData, children);\n }\n return h(type, vnodeData);\n}\nfunction jsxs(type, props, key) {\n return jsx(type, props, key);\n}\n\n// src/runtime/vdom/vdom-annotations.ts\nvar insertVdomAnnotations = (doc, staticComponents) => {\n if (doc != null) {\n const docData = STENCIL_DOC_DATA in doc ? doc[STENCIL_DOC_DATA] : { ...DEFAULT_DOC_DATA };\n docData.staticComponents = new Set(staticComponents);\n const orgLocationNodes = [];\n parseVNodeAnnotations(doc, doc.body, docData, orgLocationNodes);\n orgLocationNodes.forEach((orgLocationNode) => {\n var _a;\n if (orgLocationNode != null && orgLocationNode[\"s-nr\"]) {\n const nodeRef = orgLocationNode[\"s-nr\"];\n let hostId = nodeRef[\"s-host-id\"];\n let nodeId = nodeRef[\"s-node-id\"];\n let childId = `${hostId}.${nodeId}`;\n if (hostId == null) {\n hostId = 0;\n docData.rootLevelIds++;\n nodeId = docData.rootLevelIds;\n childId = `${hostId}.${nodeId}`;\n if (nodeRef.nodeType === 1 /* ElementNode */) {\n nodeRef.setAttribute(HYDRATE_CHILD_ID, childId);\n if (typeof nodeRef[\"s-sn\"] === \"string\" && !nodeRef.getAttribute(\"slot\")) {\n nodeRef.setAttribute(\"s-sn\", nodeRef[\"s-sn\"]);\n }\n } else if (nodeRef.nodeType === 3 /* TextNode */) {\n if (hostId === 0) {\n const textContent = (_a = nodeRef.nodeValue) == null ? void 0 : _a.trim();\n if (textContent === \"\") {\n orgLocationNode.remove();\n return;\n }\n }\n const commentBeforeTextNode = doc.createComment(childId);\n commentBeforeTextNode.nodeValue = `${TEXT_NODE_ID}.${childId}`;\n insertBefore(nodeRef.parentNode, commentBeforeTextNode, nodeRef);\n } else if (nodeRef.nodeType === 8 /* CommentNode */) {\n const commentBeforeTextNode = doc.createComment(childId);\n commentBeforeTextNode.nodeValue = `${COMMENT_NODE_ID}.${childId}`;\n nodeRef.parentNode.insertBefore(commentBeforeTextNode, nodeRef);\n }\n }\n let orgLocationNodeId = `${ORG_LOCATION_ID}.${childId}`;\n const orgLocationParentNode = orgLocationNode.parentElement;\n if (orgLocationParentNode) {\n if (orgLocationParentNode[\"s-en\"] === \"\") {\n orgLocationNodeId += `.`;\n } else if (orgLocationParentNode[\"s-en\"] === \"c\") {\n orgLocationNodeId += `.c`;\n }\n }\n orgLocationNode.nodeValue = orgLocationNodeId;\n }\n });\n }\n};\nvar parseVNodeAnnotations = (doc, node, docData, orgLocationNodes) => {\n var _a;\n if (node == null) {\n return;\n }\n if (node[\"s-nr\"] != null) {\n orgLocationNodes.push(node);\n }\n if (node.nodeType === 1 /* ElementNode */) {\n const childNodes = [...Array.from(node.childNodes), ...Array.from(((_a = node.shadowRoot) == null ? void 0 : _a.childNodes) || [])];\n childNodes.forEach((childNode) => {\n const hostRef = getHostRef(childNode);\n if (hostRef != null && !docData.staticComponents.has(childNode.nodeName.toLowerCase())) {\n const cmpData = {\n nodeIds: 0\n };\n insertVNodeAnnotations(doc, childNode, hostRef.$vnode$, docData, cmpData);\n }\n parseVNodeAnnotations(doc, childNode, docData, orgLocationNodes);\n });\n }\n};\nvar insertVNodeAnnotations = (doc, hostElm, vnode, docData, cmpData) => {\n if (vnode != null) {\n const hostId = ++docData.hostIds;\n hostElm.setAttribute(HYDRATE_ID, hostId);\n if (hostElm[\"s-cr\"] != null) {\n hostElm[\"s-cr\"].nodeValue = `${CONTENT_REF_ID}.${hostId}`;\n }\n if (vnode.$children$ != null) {\n const depth = 0;\n vnode.$children$.forEach((vnodeChild, index) => {\n insertChildVNodeAnnotations(doc, vnodeChild, cmpData, hostId, depth, index);\n });\n }\n if (hostElm && vnode && vnode.$elm$ && !hostElm.hasAttribute(HYDRATE_CHILD_ID)) {\n const parent = hostElm.parentElement;\n if (parent && parent.childNodes) {\n const parentChildNodes = Array.from(parent.childNodes);\n const comment = parentChildNodes.find(\n (node) => node.nodeType === 8 /* CommentNode */ && node[\"s-sr\"]\n );\n if (comment) {\n const index = parentChildNodes.indexOf(hostElm) - 1;\n vnode.$elm$.setAttribute(\n HYDRATE_CHILD_ID,\n `${comment[\"s-host-id\"]}.${comment[\"s-node-id\"]}.0.${index}`\n );\n }\n }\n }\n }\n};\nvar insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, index) => {\n const childElm = vnodeChild.$elm$;\n if (childElm == null) {\n return;\n }\n const nodeId = cmpData.nodeIds++;\n const childId = `${hostId}.${nodeId}.${depth}.${index}`;\n childElm[\"s-host-id\"] = hostId;\n childElm[\"s-node-id\"] = nodeId;\n if (childElm.nodeType === 1 /* ElementNode */) {\n childElm.setAttribute(HYDRATE_CHILD_ID, childId);\n if (typeof childElm[\"s-sn\"] === \"string\" && !childElm.getAttribute(\"slot\")) {\n childElm.setAttribute(\"s-sn\", childElm[\"s-sn\"]);\n }\n } else if (childElm.nodeType === 3 /* TextNode */) {\n const parentNode = childElm.parentNode;\n const nodeName = parentNode == null ? void 0 : parentNode.nodeName;\n if (nodeName !== \"STYLE\" && nodeName !== \"SCRIPT\") {\n const textNodeId = `${TEXT_NODE_ID}.${childId}`;\n const commentBeforeTextNode = doc.createComment(textNodeId);\n insertBefore(parentNode, commentBeforeTextNode, childElm);\n }\n } else if (childElm.nodeType === 8 /* CommentNode */) {\n if (childElm[\"s-sr\"]) {\n const slotName = childElm[\"s-sn\"] || \"\";\n const slotNodeId = `${SLOT_NODE_ID}.${childId}.${slotName}`;\n childElm.nodeValue = slotNodeId;\n }\n }\n if (vnodeChild.$children$ != null) {\n const childDepth = depth + 1;\n vnodeChild.$children$.forEach((vnode, index2) => {\n insertChildVNodeAnnotations(doc, vnode, cmpData, hostId, childDepth, index2);\n });\n }\n};\nexport {\n BUILD31 as BUILD,\n Build,\n Env,\n Fragment,\n H,\n H as HTMLElement,\n HYDRATED_STYLE_ID,\n Host,\n Mixin,\n NAMESPACE2 as NAMESPACE,\n STENCIL_DEV_MODE,\n addHostEventListeners,\n bootstrapLazy,\n cmpModules,\n connectedCallback,\n consoleDevError,\n consoleDevInfo,\n consoleDevWarn,\n consoleError,\n createEvent,\n defineCustomElement,\n disconnectedCallback,\n forceModeUpdate,\n forceUpdate,\n getAssetPath,\n getElement,\n getHostRef,\n getMode,\n getRenderingRef,\n getValue,\n h,\n insertVdomAnnotations,\n isMemberInElement,\n jsx,\n jsxDEV,\n jsxs,\n loadModule,\n modeResolver,\n needsScopedSSR,\n nextTick,\n normalizeWatchers,\n parsePropertyValue,\n plt,\n postUpdateComponent,\n promiseResolve,\n proxyComponent,\n proxyCustomElement,\n readTask,\n registerHost,\n registerInstance,\n render,\n renderVdom,\n setAssetPath,\n setErrorHandler,\n setMode,\n setNonce,\n setPlatformHelpers,\n setPlatformOptions,\n setScopedSSR,\n setTagTransformer,\n setValue,\n styles,\n supportsConstructableStylesheets,\n supportsListenerOptions,\n supportsMutableAdoptedStyleSheets,\n supportsShadow,\n transformTag,\n win,\n writeTask\n};\n","/**\n * @type {import('htmlfy').Config}\n */\nexport const CONFIG = {\n content_wrap: 0,\n ignore: [],\n ignore_with: '!i-£___£%_',\n strict: false,\n tab_size: 2,\n tag_wrap: 0,\n trim: []\n}\n\nexport const VOID_ELEMENTS = [\n 'area', 'base', 'br', 'col', 'embed', 'hr', \n 'img', 'input', 'link', 'meta',\n 'param', 'source', 'track', 'wbr'\n]\n\n/**\n * Defined per formatting operation from configuration.\n * \n * CONTENT_IGNORE_PLACEHOLDER\n * SELF_CLOSING_PLACEHOLDER\n * ATTRIBUTE_IGNORE_PLACEHOLDER\n */\n","import { CONFIG, VOID_ELEMENTS } from './constants.js'\n\n/**\n * @typedef {object} HtmlfyConstants\n * @property {string} CONTENT_IGNORE_PLACEHOLDER\n * @property {string} SELF_CLOSING_PLACEHOLDER\n * @property {string} ATTRIBUTE_IGNORE_PLACEHOLDER\n */\n\n/**\n * Create the placeholders used during one formatting operation.\n *\n * @param {string} [ignore_with]\n * @returns {HtmlfyConstants}\n */\nexport const createConstants = (ignore_with = CONFIG.ignore_with) => ({\n CONTENT_IGNORE_PLACEHOLDER: `${ignore_with}_`,\n SELF_CLOSING_PLACEHOLDER: `${ignore_with}/_>`,\n ATTRIBUTE_IGNORE_PLACEHOLDER: `${ignore_with}=_`\n})\n\nconst DEFAULT_CONSTANTS = createConstants()\n\n/**\n * Visit complete tags without treating brackets inside quoted attributes as boundaries.\n * Returning true from the visitor stops the scan.\n *\n * @param {string} content\n * @param {(tag: string, start: number, end: number) => boolean | void} visitor\n * @returns {boolean}\n */\nconst scanTags = (content, visitor) => {\n let tag_start = -1\n let quote = ''\n\n for (let index = 0; index < content.length; index++) {\n const character = content[index]\n\n if (tag_start === -1) {\n if (character === '<') tag_start = index\n continue\n }\n\n if (quote) {\n if (character === quote) quote = ''\n continue\n }\n\n if (character === '\"' || character === \"'\") {\n quote = character\n } else if (character === '<') {\n tag_start = index\n } else if (character === '>') {\n if (visitor(content.slice(tag_start, index + 1), tag_start, index + 1)) return true\n tag_start = -1\n }\n }\n\n return false\n}\n\n/**\n * Parse the name of an opening tag and return its end offset within the tag.\n *\n * @param {string} tag\n * @returns {{ name: string, name_end: number } | undefined}\n */\nconst getOpeningTag = (tag) => {\n let name_start = 1\n while (/\\s/.test(tag[name_start] || '')) name_start++\n if (!/[A-Za-z]/.test(tag[name_start] || '')) return\n\n let name_end = name_start + 1\n while (name_end < tag.length && !/[\\s/>]/.test(tag[name_end])) name_end++\n\n const name = tag.slice(name_start, name_end)\n if (!/^[A-Za-z][A-Za-z0-9:._-]*$/.test(name)) return\n\n return { name, name_end }\n}\n\n/**\n * Transform complete opening tags while preserving all content between them.\n *\n * @param {string} content\n * @param {(tag: string, name: string, name_end: number) => string} transform\n * @returns {string}\n */\nexport const transformOpeningTags = (content, transform) => {\n const chunks = []\n let previous_end = 0\n\n scanTags(content, (tag, start, end) => {\n const opening_tag = getOpeningTag(tag)\n if (!opening_tag) return\n\n chunks.push(\n content.slice(previous_end, start),\n transform(tag, opening_tag.name, opening_tag.name_end)\n )\n previous_end = end\n })\n\n if (chunks.length === 0) return content\n chunks.push(content.slice(previous_end))\n return chunks.join('')\n}\n\n/**\n * Checks if content contains at least one HTML element or custom HTML element.\n * \n * The first regex matches void and self-closing elements.\n * The second regex matches normal HTML elements, plus they can have a namespace.\n * The third regex matches custom HTML elemtns, plus they can have a namespace.\n * \n * HTML elements should begin with a letter, and can end with a letter or number.\n * \n * Custom elements must begin with a letter, and can end with a letter, number,\n * hyphen, underscore, or period. However, all letters must be lowercase.\n * They must have at least one hyphen, and can only have periods and underscores if there is a hyphen.\n * \n * These regexes are based on\n * https://w3c.github.io/html-reference/syntax.html#tag-name\n * and\n * https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name\n * respectively.\n * \n * @param {string} content Content to evaluate.\n * @returns {boolean} A boolean.\n */\nexport const isHtml = (content) => {\n const paired_elements = new Set()\n const standard_element = /^[A-Za-z][A-Za-z0-9]*$/\n const namespaced_element = /^(?:[A-Za-z][A-Za-z0-9]*:)[A-Za-z][A-Za-z0-9]*$/\n const custom_element = /^(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+$/\n\n return scanTags(content, (tag) => {\n if (tag.startsWith('</')) {\n const name = tag.slice(2, -1)\n return paired_elements.has(name)\n }\n\n const opening_tag = getOpeningTag(tag)\n if (!opening_tag) return false\n\n const suffix_start = tag[opening_tag.name_end]\n if (!(suffix_start === '>' || /\\s/.test(suffix_start) || (suffix_start === '/' && tag[opening_tag.name_end + 1] === '>')))\n return false\n\n if (standard_element.test(opening_tag.name)) return true\n if (namespaced_element.test(opening_tag.name) || custom_element.test(opening_tag.name))\n paired_elements.add(opening_tag.name)\n\n return false\n })\n}\n\n/**\n * Generic utility which merges two objects.\n * \n * @param {any} current Original object.\n * @param {any} updates Object to merge with original.\n * @returns {any}\n */\nconst mergeObjects = (current, updates) => {\n if (!current || !updates)\n throw new Error(\"Both 'current' and 'updates' must be passed-in to mergeObjects()\")\n\n /**\n * @type {any}\n */\n let merged\n \n if (Array.isArray(current)) {\n merged = structuredClone(current).concat(updates)\n } else if (typeof current === 'object') {\n merged = { ...current }\n for (let key of Object.keys(updates)) {\n if (typeof updates[key] !== 'object') {\n merged[key] = updates[key]\n } else {\n /* key is an object, run mergeObjects again. */\n merged[key] = mergeObjects(merged[key] || {}, updates[key])\n }\n }\n }\n\n return merged\n}\n\n/**\n * Merge a user config with the default config.\n * \n * @param {import('htmlfy').Config} default_config The default config.\n * @param {import('htmlfy').UserConfig} config The user config.\n * @returns {import('htmlfy').Config}\n */\nexport const mergeConfig = (default_config, config) => {\n return mergeObjects(default_config, config)\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const protectAttributes = (html, constants = DEFAULT_CONSTANTS) => {\n html = html.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (/** @type {string} */match, /** @type {any} */capture) => {\n return match.replace(capture, (match) => {\n return match\n .replace(/\\n/g, constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'nl!')\n .replace(/\\r/g, constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'cr!')\n .replace(/\\s/g, constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'ws!')\n })\n })\n\n return html\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const protectContent = (html, constants = DEFAULT_CONSTANTS) => {\n return html\n .replace(/\\n/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'nl!')\n .replace(/\\r/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'cr!')\n .replace(/\\s/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'ws!')\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const finalProtectContent = (html, constants = DEFAULT_CONSTANTS) => {\n const regex = /\\s*<([a-zA-Z0-9:-]+)[^>]*>\\n\\s*<\\/\\1>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\\n[ ]*[^\\n]*__!i-£___£%__[^\\n]*\\n)(\\n[ ]*\\S[^\\n]*\\n\\s*)<\\/\\3>/g \n\n return html\n .replace(regex, (/** @type {string} */match, p1, p2, p3, p4) => {\n const text_to_protect = p2 || p4\n\n if (!text_to_protect)\n return match\n\n const protected_text = text_to_protect\n .replace(/\\n/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'nl!')\n .replace(/\\r/g, constants.CONTENT_IGNORE_PLACEHOLDER + 'cr!')\n .replace(/\\s/g, constants.CONTENT_IGNORE_PLACEHOLDER + \"ws!\")\n\n return match.replace(text_to_protect, protected_text)\n })\n}\n\n/**\n * Replace html brackets with ignore string.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns {string}\n */\nexport const setIgnoreAttribute = (html, constants = DEFAULT_CONSTANTS) => {\n // Most documents do not contain HTML-like brackets inside attribute values.\n if (!/=\\s*(?:\"[^\"]*[<>][^\"]*\"|'[^']*[<>][^']*')/.test(html)) return html\n\n return transformOpeningTags(html, (tag, name, name_end) => {\n let quote = ''\n let previous_end = 0\n const chunks = []\n\n for (let index = name_end; index < tag.length - 1; index++) {\n const character = tag[index]\n\n if (!quote && (character === '\"' || character === \"'\")) {\n quote = character\n } else if (quote && character === quote) {\n quote = ''\n } else if (quote && (character === '<' || character === '>')) {\n chunks.push(\n tag.slice(previous_end, index),\n constants.ATTRIBUTE_IGNORE_PLACEHOLDER + (character === '<' ? 'lt!' : 'gt!')\n )\n previous_end = index + 1\n }\n }\n\n if (chunks.length === 0) return tag\n chunks.push(tag.slice(previous_end))\n return chunks.join('')\n })\n}\n\n/**\n * Trim leading and trailing whitespace characters.\n * \n * @param {string} html\n * @param {string[]} trim\n * @returns {string}\n */\nexport const trimify = (html, trim) => {\n for (let e = 0; e < trim.length; e++) {\n /* Whitespace character must be escaped with '\\' or RegExp() won't include it. */\n const leading_whitespace = new RegExp(`(<${trim[e]}[^>]*>)\\\\s+`, \"g\")\n const trailing_whitespace = new RegExp(`\\\\s+(</${trim[e]}>)`, \"g\")\n\n html = html\n .replace(leading_whitespace, '$1')\n .replace(trailing_whitespace, '$1')\n }\n\n return html\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const unprotectAttributes = (html, constants = DEFAULT_CONSTANTS) => {\n html = html.replace(/<[\\w:\\-]+([^>]*[^\\/])>/g, (/** @type {string} */match, /** @type {any} */capture) => {\n return match.replace(capture, (match) => {\n return match\n .replace(new RegExp(constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'nl!', \"g\"), '\\n')\n .replace(new RegExp(constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'cr!', \"g\"), '\\r')\n .replace(new RegExp(constants.ATTRIBUTE_IGNORE_PLACEHOLDER + 'ws!', \"g\"), ' ')\n })\n })\n\n return html\n}\n\n/**\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n */\nexport const unprotectContent = (html, constants = DEFAULT_CONSTANTS) => {\n html = html.replace(new RegExp(`.*${constants.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!.*`, \"g\"), (/** @type {string} */match) => {\n return match.replace(new RegExp(`${constants.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!`, \"g\"), (match) => {\n return match\n .replace(new RegExp(constants.CONTENT_IGNORE_PLACEHOLDER + 'nl!', \"g\"), '\\n')\n .replace(new RegExp(constants.CONTENT_IGNORE_PLACEHOLDER + 'cr!', \"g\"), '\\r')\n .replace(new RegExp(constants.CONTENT_IGNORE_PLACEHOLDER + 'ws!', \"g\"), ' ')\n })\n })\n\n return html\n}\n\n/**\n * Replace ignore string with html brackets.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns {string}\n */\nexport const unsetIgnoreAttribute = (html, constants = DEFAULT_CONSTANTS) => {\n /* Regex to find opening tags and capture their attributes. */\n const tagRegex = /<([\\w:\\-]+)([^>]*)>/g\n const escapedIgnoreString = constants.ATTRIBUTE_IGNORE_PLACEHOLDER.replace(\n /[-\\/\\\\^$*+?.()|[\\]{}]/g,\n \"\\\\$&\"\n )\n const ltPlaceholderRegex = new RegExp(escapedIgnoreString + \"lt!\", \"g\")\n const gtPlaceholderRegex = new RegExp(escapedIgnoreString + \"gt!\", \"g\")\n\n return html.replace(\n tagRegex,\n (\n /** @type {string} */ fullMatch,\n /** @type {string} */ tagName,\n /** @type {string} */ attributesCapture\n ) => {\n const processedAttributes = attributesCapture\n .replace(ltPlaceholderRegex, \"<\")\n .replace(gtPlaceholderRegex, \">\")\n\n /* Reconstruct the tag. */\n return `<${tagName}${processedAttributes}>`\n }\n )\n}\n\n/**\n * Validate any passed-in config options and merge with CONFIG.\n * \n * @param {import('htmlfy').UserConfig} config A user config.\n * @returns {import('htmlfy').Config} A validated config.\n */\nexport const validateConfig = (config) => {\n if (typeof config !== 'object') throw new Error('Config must be an object.')\n\n config = { ...config }\n \n const default_config = { ...CONFIG }\n\n const config_empty = !(\n Object.hasOwn(config, 'content_wrap') ||\n Object.hasOwn(config, 'ignore') || \n Object.hasOwn(config, 'ignore_with') || \n Object.hasOwn(config, 'strict') || \n Object.hasOwn(config, 'tab_size') || \n Object.hasOwn(config, 'tag_wrap') || \n Object.hasOwn(config, 'trim')\n )\n\n if (config_empty) {\n return default_config\n }\n\n let tab_size = config.tab_size\n\n if (tab_size) {\n if (typeof tab_size !== 'number') throw new Error(`tab_size must be a number, not ${typeof config.tab_size}.`)\n\n const safe = Number.isSafeInteger(tab_size)\n if (!safe) throw new Error(`Tab size ${tab_size} is not safe. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger for more info.`)\n\n /** \n * Round down, just in case a safe floating point,\n * like 4.0, was passed.\n */\n tab_size = Math.floor(tab_size)\n if (tab_size < 1 || tab_size > 16) throw new Error('Tab size out of range. Expecting 1 to 16.')\n \n config.tab_size = tab_size\n }\n\n if (Object.hasOwn(config, 'content_wrap') && typeof config.content_wrap !== 'number')\n throw new Error(`content_wrap config must be a number, not ${typeof config.content_wrap}.`)\n\n if (Object.hasOwn(config, 'ignore') && (!Array.isArray(config.ignore) || !config.ignore?.every((e) => typeof e === 'string')))\n throw new Error('Ignore config must be an array of strings.')\n\n if (Object.hasOwn(config, 'ignore_with')) {\n if (typeof config.ignore_with !== 'string')\n throw new Error(`ignore_with must be a string, not ${typeof config.ignore_with}.`)\n else if (config.ignore_with.startsWith('_'))\n /**\n * This negatively affects processing of preserved tag attributes,\n * because tag names can end with an underscore, so the regex\n * does not capture them.\n */\n throw new Error(`ignore_with cannot start with an underscore.`)\n }\n\n if (Object.hasOwn(config, 'strict') && typeof config.strict !== 'boolean')\n throw new Error(`Strict config must be a boolean, not ${typeof config.strict}.`)\n \n if (Object.hasOwn(config, 'tag_wrap') && typeof config.tag_wrap !== 'number')\n throw new Error(`tag_wrap config must be a number, not ${typeof config.tag_wrap}.`)\n\n if (Object.hasOwn(config, 'trim') && (!Array.isArray(config.trim) || !config.trim?.every((e) => typeof e === 'string')))\n throw new Error('Trim config must be an array of strings.')\n\n return mergeConfig(default_config, config)\n\n}\n\n/**\n * \n * @param {string} text \n * @param {number} width \n * @param {string} indent\n * @param {HtmlfyConstants} [constants]\n */\nexport const wordWrap = (text, width, indent, constants = DEFAULT_CONSTANTS) => {\n const words = text.trim().split(/\\s+/)\n \n if (words.length === 0 || (words.length === 1 && words[0] === ''))\n return \"\"\n\n /** @type {string[]} */\n const lines = []\n /** @type {string[]} */\n const current_words = []\n let current_length = 0\n\n const flushLine = () => {\n if (current_words.length === 0) return\n lines.push(indent + current_words.join(' '))\n current_words.length = 0\n current_length = 0\n }\n\n for (const word of words) {\n if (word === \"\") continue\n\n if (word.length >= width) {\n flushLine()\n lines.push(indent + word)\n continue\n }\n\n const next_length = current_length + (current_words.length === 0 ? 0 : 1) + word.length\n if (next_length <= width) {\n current_words.push(word)\n current_length = next_length\n } else {\n flushLine()\n current_words.push(word)\n current_length = word.length\n }\n }\n\n flushLine()\n\n const result = lines.join(\"\\n\")\n\n return protectContent(result, constants)\n}\n\nconst IGNORE_MARKER_PREFIX = \"___HTMLFY_SPECIAL_IGNORE_MARKER_\"\nconst IGNORE_MARKER_REGEX = /___HTMLFY_SPECIAL_IGNORE_MARKER_\\d+___/g\nconst TEXTAREA_MARKER_PREFIX = \"___HTMLFY_TEXTAREA_MARKER_\"\nconst TEXTAREA_MARKER_REGEX = /___HTMLFY_TEXTAREA_MARKER_\\d+___/g\n\n/**\n * Extract the contents of matching elements in one traversal.\n *\n * @param {string} html\n * @param {Set<string>} names\n * @param {string} marker_prefix\n * @param {(content: string) => string} [transform]\n * @returns {{ html_with_markers: string, extracted_map: Map<string,string> }}\n */\nconst extractBlocks = (html, names, marker_prefix, transform = content => content) => {\n const extracted_blocks = new Map()\n const chunks = []\n let marker_id = 0\n let previous_end = 0\n\n /** @type {{ name: string, content_start: number } | undefined} */\n let active_block\n let tag_start = -1\n let quote = ''\n\n for (let index = 0; index < html.length; index++) {\n const character = html[index]\n\n if (active_block) {\n if (character !== '<') continue\n\n let closing_index = index + 1\n while (/\\s/.test(html[closing_index] || '')) closing_index++\n if (html[closing_index] !== '/') continue\n\n closing_index++\n while (/\\s/.test(html[closing_index] || '')) closing_index++\n if (!html.startsWith(active_block.name, closing_index)) continue\n\n closing_index += active_block.name.length\n while (/\\s/.test(html[closing_index] || '')) closing_index++\n if (html[closing_index] !== '>') continue\n\n const marker = `${marker_prefix}${marker_id++}___`\n chunks.push(html.slice(previous_end, active_block.content_start), marker)\n extracted_blocks.set(marker, transform(html.slice(active_block.content_start, index)))\n previous_end = index\n active_block = undefined\n index = closing_index\n continue\n }\n\n if (tag_start === -1) {\n if (character === '<') tag_start = index\n continue\n }\n\n if (quote) {\n if (character === quote) quote = ''\n continue\n }\n\n if (character === '\"' || character === \"'\") {\n quote = character\n } else if (character === '<') {\n tag_start = index\n } else if (character === '>') {\n const opening_tag = getOpeningTag(html.slice(tag_start, index + 1))\n if (opening_tag && names.has(opening_tag.name)) {\n active_block = { name: opening_tag.name, content_start: index + 1 }\n }\n tag_start = -1\n }\n }\n\n if (extracted_blocks.size === 0)\n return { html_with_markers: html, extracted_map: extracted_blocks }\n\n chunks.push(html.slice(previous_end))\n return { html_with_markers: chunks.join(''), extracted_map: extracted_blocks }\n}\n\n/**\n * Extract any HTML blocks to be ignored,\n * and replace them with a placeholder for re-insertion later.\n *\n * @param {string} html\n * @param {string[]} ignore\n * @returns {{ html_with_markers: string, extracted_map: Map<string,string> }}\n */\nexport function extractIgnoredBlocks(html, ignore) {\n return extractBlocks(html, new Set(ignore), IGNORE_MARKER_PREFIX)\n}\n\n/**\n * Protect textarea contents without expanding them into entities.\n *\n * @param {string} html\n * @returns {{ html_with_markers: string, extracted_map: Map<string,string> }}\n */\nexport function extractTextareaBlocks(html) {\n return extractBlocks(html, new Set(['textarea']), TEXTAREA_MARKER_PREFIX, content => content\n .replace(/&lt;/g, '<')\n .replace(/&gt;/g, '>')\n .replace(/&quot;/g, '\"')\n .replace(/&apos;/g, \"'\")\n .replace(/&#10;/g, '\\n')\n .replace(/&#13;/g, '\\r')\n .replace(/&nbsp;/g, ' ')\n .replace(/\\s+/g, ' ')\n )\n}\n\n/**\n * Re-insert ignored HTML blocks.\n * \n * @param {string} html_with_markers \n * @param {Map<any,any>} extracted_map \n * @returns \n */\nexport function reinsertIgnoredBlocks(html_with_markers, extracted_map) {\n return html_with_markers.replace(IGNORE_MARKER_REGEX, marker => extracted_map.get(marker) ?? marker)\n}\n\n/**\n * Re-insert protected textarea contents in one pass.\n *\n * @param {string} html_with_markers\n * @param {Map<string,string>} extracted_map\n * @returns {string}\n */\nexport function reinsertTextareaBlocks(html_with_markers, extracted_map) {\n return html_with_markers.replace(TEXTAREA_MARKER_REGEX, marker => extracted_map.get(marker) ?? marker)\n}\n\nconst void_element_regex = new RegExp(`<(${VOID_ELEMENTS.join(\"|\")})(?:\\\\s(?:[^/>]|/(?!>))*)*>`, 'g')\n\n/**\n * Add a placeholder for void elements that are not self-closing.\n * This is for internal processing only.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns \n */\nexport function setSelfClosing(html, constants = DEFAULT_CONSTANTS) {\n return html.replace(\n // match only void elements that are not self-closing\n void_element_regex,\n match => match.replace(/>$/, constants.SELF_CLOSING_PLACEHOLDER)\n )\n}\n\n/**\n * Remove internal placeholder for non-native self-closing void elements.\n * \n * @param {string} html\n * @param {HtmlfyConstants} [constants]\n * @returns \n */\nexport function unsetSelfClosing(html, constants = DEFAULT_CONSTANTS) {\n return html.replace(constants.SELF_CLOSING_PLACEHOLDER, \">\")\n}\n","import {\n extractIgnoredBlocks,\n extractTextareaBlocks,\n isHtml,\n reinsertIgnoredBlocks,\n reinsertTextareaBlocks,\n transformOpeningTags,\n validateConfig\n} from \"./utils.js\"\n\n/**\n * Minify HTML using configuration already validated by the caller.\n *\n * @param {string} html\n * @param {import('htmlfy').Config} validated_config\n * @param {boolean} extract_ignored\n * @returns {string}\n */\nconst minifyHtml = (html, validated_config, extract_ignored) => {\n /** @type {Map<any,any> | undefined} */\n let ignore_map\n /** @type {Map<string,string> | undefined} */\n let textarea_map\n const ignore = validated_config.ignore.length > 0\n\n /* Extract ignored elements. Skipped if prettify has already ignored blocks. */\n if (extract_ignored && ignore) {\n const { html_with_markers, extracted_map } = extractIgnoredBlocks(html, validated_config.ignore)\n html = html_with_markers\n ignore_map = extracted_map\n }\n\n /* Keep textarea markup out of the general minification passes. */\n if (!validated_config.ignore.includes('textarea') && html.includes('textarea')) {\n const { html_with_markers, extracted_map } = extractTextareaBlocks(html)\n html = html_with_markers\n textarea_map = extracted_map\n }\n\n /* All other minification. */\n // Remove ALL newlines and tabs explicitly.\n html = html.replace(/\\n|\\t/g, '')\n\n // Remove whitespace ONLY between tags.\n html = html.replace(/>\\s+</g, \"><\")\n\n // Collapse any remaining multiple spaces to single spaces.\n html = html.replace(/ {2,}/g, ' ')\n\n // Protect space between text content and an opening tag (e.g., \"text <a>\")\n html = html.replace(\n /(\\S) (<[a-zA-Z][a-zA-Z0-9_:-]*)/g,\n `$1___MINIFY-PROTECTED-SPACE___$2`\n )\n\n // Protect space between a closing tag and text content (e.g., \"</a> text\")\n html = html.replace(\n /(<\\/[a-zA-Z][a-zA-Z0-9_:-]*>) (\\S)/g,\n `$1___MINIFY-PROTECTED-SPACE___$2`\n )\n\n // Remove specific single spaces between tags and whitespace within tags.\n html = html.replace(/ >/g, \">\") // <tag > -> <tag>\n html = html.replace(/ </g, \"<\") // leading space before tag\n html = html.replace(/> /g, \">\") // trailing space after tag\n html = html.replace(/< /g, \"<\") // < tag> -> <tag>\n html = html.replace(/<\\s+\\//g, '</') // < /tag> -> </tag>\n html = html.replace(/<\\/\\s+/g, '</') // </ tag> -> </tag>\n\n // Unprotect space around inner tags\n html = html.replace(new RegExp('___MINIFY-PROTECTED-SPACE___', 'g'), ' ')\n\n // Trim spaces around equals signs in attributes (run before value trim)\n // This handles `attr = \"value\"` -> `attr=\"value\"`\n html = html.replace(/ = /g, \"=\")\n // Consider safer alternatives if needed (e.g., / = \"/g, '=\"')\n\n // Trim whitespace inside quoted attribute values when any are padded.\n if (/=[\"']\\s|\\s[\"']/.test(html)) {\n html = transformOpeningTags(html, (tag, name, name_end) => {\n const chunks = []\n let previous_end = 0\n let index = name_end\n\n while (index < tag.length - 1) {\n while (/\\s/.test(tag[index] || '')) index++\n\n const attribute_start = index\n while (/[a-zA-Z0-9_-]/.test(tag[index] || '')) index++\n if (index === attribute_start || tag[index] !== '=') {\n index++\n continue\n }\n\n const quote = tag[index + 1]\n if (quote !== '\"' && quote !== \"'\") {\n index++\n continue\n }\n\n const value_start = index + 2\n const value_end = tag.indexOf(quote, value_start)\n if (value_end === -1) break\n\n const value = tag.slice(value_start, value_end)\n const trimmed_value = value.trim()\n if (trimmed_value !== value) {\n chunks.push(tag.slice(previous_end, value_start), trimmed_value)\n previous_end = value_end\n }\n index = value_end + 1\n }\n\n if (chunks.length === 0) return tag\n chunks.push(tag.slice(previous_end))\n return chunks.join('')\n })\n }\n\n // Final trim for the whole string\n html = html.trim()\n\n if (textarea_map) {\n html = reinsertTextareaBlocks(html, textarea_map)\n }\n\n /* Re-insert ignored elements. Skipped unless minify did the ignore. */\n if (ignore_map) {\n html = reinsertIgnoredBlocks(html, ignore_map)\n }\n\n return html\n}\n\n/**\n * Minify HTML that has already been checked and had ignored blocks extracted.\n *\n * @param {string} html\n * @param {import('htmlfy').Config} config\n * @returns {string}\n */\nexport const minifyKnownHtml = (html, config) => minifyHtml(html, config, false)\n\n/**\n * Creates a single-line HTML string\n * by removing line returns, tabs, and relevant spaces.\n *\n * @param {string} html The HTML string to minify.\n * @param {import('htmlfy').UserConfig} [config] A user configuration object.\n * @returns {string} A minified HTML string.\n */\nexport const minify = (html, config) => {\n if (!isHtml(html)) return html\n return minifyHtml(html, validateConfig(config || {}), true)\n}\n","import { minifyKnownHtml } from './minify.js'\nimport { \n createConstants,\n extractIgnoredBlocks,\n finalProtectContent,\n isHtml, \n protectAttributes, \n reinsertIgnoredBlocks, \n setIgnoreAttribute, \n setSelfClosing, \n trimify, \n unprotectAttributes, \n unprotectContent, \n unsetIgnoreAttribute, \n validateConfig, \n wordWrap\n} from './utils.js'\nimport { VOID_ELEMENTS } from './constants.js'\n\nconst VOID_ELEMENT_SET = new Set(VOID_ELEMENTS)\nconst TOKEN_CLOSING = 1\nconst TOKEN_COMMENT = 2\nconst TOKEN_DOCTYPE = 4\nconst TOKEN_IGNORED = 8\nconst TOKEN_SELF_CLOSING = 16\nconst TOKEN_SYNTHETIC_SELF_CLOSING = 32\nconst TOKEN_INLINE = 64\n\n/**\n * @typedef {object} Token\n * @property {'tag' | 'text'} type\n * @property {string} value\n * @property {number} flags\n */\n\n/**\n * Isolate tags, content, and comments.\n * \n * @param {string} html The HTML string to evaluate.\n * @param {import('./utils.js').HtmlfyConstants} constants\n * @returns {Token[]}\n */\nconst enqueue = (html, constants) => {\n /** @type {Token[]} */\n const lines = []\n /* Regex to find tags OR text content between tags. */\n const regex = /<[^>]+>|[^<]+/g\n\n /* Use replace for callback iteration, but avoid constructing the old marker output. */\n html.replace(regex, (value) => {\n const type = value.startsWith('<') ? 'tag' : 'text'\n\n if (type === 'text') {\n if (value.trim().length > 0) {\n lines.push({\n type,\n value,\n flags: value.startsWith('___HTMLFY_SPECIAL_IGNORE_MARKER_') ? TOKEN_IGNORED : 0,\n })\n }\n return ''\n }\n\n const trimmed = value.trim()\n const synthetic_self_closing = trimmed.endsWith(constants.SELF_CLOSING_PLACEHOLDER)\n let flags = 0\n if (trimmed.startsWith('</')) flags |= TOKEN_CLOSING\n if (trimmed.startsWith('<!--')) flags |= TOKEN_COMMENT\n if (trimmed.startsWith('<!doctype')) flags |= TOKEN_DOCTYPE\n if (trimmed.endsWith('/>') || synthetic_self_closing) flags |= TOKEN_SELF_CLOSING\n if (synthetic_self_closing) flags |= TOKEN_SYNTHETIC_SELF_CLOSING\n\n lines.push({\n type,\n value,\n flags,\n })\n return ''\n })\n\n return lines\n}\n\n/**\n * Collapse the same simple element pairs handled by the final output regex.\n *\n * @param {Token[]} lines\n * @returns {Token[]}\n */\nconst collapseInlineTokens = (lines) => {\n /** @type {Token[]} */\n const collapsed = []\n\n for (let index = 0; index < lines.length; index++) {\n const opening = lines[index]\n\n if (opening.type === 'tag' && !(opening.flags & (\n TOKEN_CLOSING |\n TOKEN_COMMENT |\n TOKEN_DOCTYPE |\n TOKEN_SELF_CLOSING\n ))) {\n const name_match = opening.value.match(/^<([^>\\s]+)[^>]*>$/)\n const name = name_match?.[1]\n const content = lines[index + 1]\n const possible_closing = content?.type === 'text' ? lines[index + 2] : content\n\n if (name && possible_closing?.value === `</${name}>`) {\n const empty_pair = content?.type === 'tag' && /^[\\w:._-]+$/.test(name)\n const text_pair = content?.type === 'text' && /[^><\\/\\s]/.test(content.value)\n\n if (empty_pair || text_pair) {\n collapsed.push({\n type: 'tag',\n value: opening.value + (text_pair ? content.value.trim() : '') + possible_closing.value,\n flags: TOKEN_INLINE,\n })\n index += text_pair ? 2 : 1\n continue\n }\n }\n }\n\n collapsed.push(opening)\n }\n\n return collapsed\n}\n\n/**\n * Process enqueued content.\n * \n * @param {Token[]} lines\n * @param {import('htmlfy').Config} config\n * @param {import('./utils.js').HtmlfyConstants} constants\n * @returns {string}\n */\nconst process = (lines, config, constants) => {\n const step = \" \".repeat(config.tab_size)\n const tag_wrap = config.tag_wrap\n const content_wrap = config.content_wrap\n const strict = config.strict\n\n /* Track current number of indentations needed. */\n let indent_level = 0\n\n /** @type string[] */\n const output_lines = []\n const tag_regex = /<[A-Za-z]+\\b[^>]*(?:.|\\n)*?\\/?>/ /* Is opening tag or void element. */\n const attribute_regex = /\\s{1}[A-Za-z:@#*?$()\\[\\].-]+(?:=\".*?\")?/g /* Matches all tag/element attributes. */\n\n /* Process lines and indent. */\n lines.forEach((source, index) => {\n let current_line_value = source.value\n\n let subtrahend = 0\n const prev_line_data = lines[index - 1]\n\n indent_level++\n\n if (index === 0) subtrahend++\n /* We're processing a closing tag. */\n if (source.flags & TOKEN_CLOSING) subtrahend++\n /* prevLine is a doctype declaration. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_DOCTYPE)) subtrahend++\n /* prevLine is a comment. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_COMMENT)) subtrahend++\n /* prevLine is a void element. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_SELF_CLOSING)) subtrahend++\n /* prevLine is a closing tag. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_CLOSING)) subtrahend++\n /* prevLine opens and closes on the same line. */\n if (prev_line_data && (prev_line_data.flags & TOKEN_INLINE)) subtrahend++\n /* prevLine is text. */\n if (prev_line_data?.type === \"text\") subtrahend++\n\n /* Determine offset for line indentation. */\n const offset = Math.max(0, indent_level - subtrahend)\n /* Correct indent level for *this* line's content */\n const current_indent_level = offset // Store the level for this line\n\n indent_level = current_indent_level\n\n /**\n * Starts with a single punctuation character.\n * Add punctuation to end of previous line.\n */\n if (source.type === 'text' && /^[!,;\\.]/.test(current_line_value)) {\n if (current_line_value.length === 1) {\n output_lines[output_lines.length - 1] = \n output_lines.at(-1) + current_line_value\n return\n } else {\n output_lines[output_lines.length - 1] = \n output_lines.at(-1) + current_line_value.charAt(0)\n current_line_value = current_line_value.slice(1).trim()\n\n /* If nothing left after extracting punctuation, skip this line. */\n if (current_line_value.length === 0) return\n }\n }\n\n const padding = step.repeat(current_indent_level)\n\n if (source.flags & TOKEN_IGNORED) {\n /* Stop processing this line, as it's set to be ignored. */\n output_lines.push(current_line_value)\n } else {\n /* Remove comment. */\n if (strict && (source.flags & TOKEN_COMMENT))\n return\n\n let result = current_line_value\n\n /* Remove self-closing placeholder, if needed. */\n if (source.flags & TOKEN_SYNTHETIC_SELF_CLOSING)\n result = result.replace(constants.SELF_CLOSING_PLACEHOLDER, '>')\n\n if (\n source.type === 'text' && \n content_wrap > 0 && \n result.length >= content_wrap\n ) {\n result = wordWrap(result, content_wrap, padding, constants)\n }\n /* Wrap the attributes of open tags and void elements. */\n else if (\n tag_wrap > 0 &&\n result.length > tag_wrap &&\n tag_regex.test(result)\n ) {\n attribute_regex.lastIndex = 0 // Reset stateful regex\n\n const attributes = []\n let first_attribute_start = -1\n let last_attribute_end = -1\n let attribute_match\n\n while ((attribute_match = attribute_regex.exec(result)) !== null) {\n if (first_attribute_start === -1) first_attribute_start = attribute_match.index\n last_attribute_end = attribute_regex.lastIndex\n attributes.push(attribute_match[0].trim())\n }\n\n if (attributes.length > 0) {\n const opening_part = result.slice(0, first_attribute_start)\n const closing_part = result.slice(last_attribute_end).trim()\n const inner_padding = padding + step\n const wrapped_tag = [padding + opening_part]\n\n for (const attribute of attributes) {\n wrapped_tag.push(inner_padding + attribute)\n }\n\n const tag_name_match = opening_part.match(/<([A-Za-z_:-]+)/)\n const tag_name = tag_name_match ? tag_name_match[1] : \"\"\n const is_self_closing = result.endsWith(\"/>\") && VOID_ELEMENT_SET.has(tag_name)\n const closing_padding = padding + (strict && is_self_closing ? \" \" : \"\")\n\n wrapped_tag.push(closing_padding + closing_part)\n result = wrapped_tag.join('\\n')\n } else {\n result = padding + result\n }\n } else {\n /* Apply simple indentation (if no wrapping occurred) */\n result = padding + result\n }\n\n /* Add the processed line (or lines if wordWrap creates them) to the output */\n output_lines.push(result)\n }\n })\n\n /* Join all processed lines into the final HTML string */\n let final_html = output_lines.join(\"\\n\")\n\n /* Preserve wrapped attributes. */\n if (tag_wrap > 0) final_html = protectAttributes(final_html, constants)\n\n /* Extra preserve wrapped content. */\n if (content_wrap > 0 && new RegExp(`/\\\\n[ ]*[^\\\\n]*${constants.CONTENT_IGNORE_PLACEHOLDER}[^\\\\n]*\\\\n/`).test(final_html))\n final_html = finalProtectContent(final_html, constants)\n\n /* Remove line returns, tabs, and consecutive spaces within html elements or their content. */\n if (tag_wrap > 0 || content_wrap > 0) {\n final_html = final_html.replace(\n /<(?<Element>[^>\\s]+)[^>]*>[^<]*?[^><\\/\\s][^<]*?<\\/\\k<Element>>|<script[^>]*>[\\s]*<\\/script>|<([\\w:\\._-]+)([^>]*)><\\/\\2>|<([\\w:\\._-]+)([^>]*)>[\\s]+<\\/\\4>/g,\n match => {\n // Check if this contains placeholder\n if (match.includes(constants.SELF_CLOSING_PLACEHOLDER) || match.includes(constants.CONTENT_IGNORE_PLACEHOLDER)) {\n return match // Don't modify if it contains the placeholder\n }\n\n return match.replace(/\\n|\\t|\\s{2,}/g, '')\n }\n )\n }\n\n /* Revert wrapped content. */\n if (content_wrap > 0) final_html = unprotectContent(final_html, constants)\n\n /* Revert wrapped attributes. */\n if (tag_wrap > 0) final_html = unprotectAttributes(final_html, constants)\n\n /* Remove self-closing nature of void elements. */\n if (strict) final_html = final_html.replace(/\\s\\/>|\\/>/g, '>')\n\n /* Trim leading and/or trailing line returns. */\n if (final_html.startsWith(\"\\n\")) final_html = final_html.substring(1)\n if (final_html.endsWith(\"\\n\")) final_html = final_html.substring(0, final_html.length - 1)\n\n return final_html\n}\n\n/**\n * Format HTML with line returns and indentations.\n * \n * @param {string} html The HTML string to prettify.\n * @param {import('htmlfy').UserConfig} [config] A user configuration object.\n * @returns {string} A well-formed HTML string.\n */\nexport const prettify = (html, config) => {\n /* Return content as-is if it does not contain any HTML elements. */\n if (!isHtml(html)) return html\n\n const validated_config = validateConfig(config || {})\n const constants = createConstants(validated_config.ignore_with)\n\n const ignore = validated_config.ignore.length > 0\n\n /** @type {Map<any,any> | undefined} */\n let ignore_map\n\n /* Allows you to trimify before ignoring. */\n if (validated_config.trim.length > 0) html = trimify(html, validated_config.trim)\n\n /* Extract ignored elements. */\n if (ignore) {\n const { html_with_markers, extracted_map } = extractIgnoredBlocks(html, validated_config.ignore)\n html = html_with_markers\n ignore_map = extracted_map\n }\n\n /* Preserve html text within attribute values. */\n html = setIgnoreAttribute(html, constants)\n\n /* Insert placeholder for void elements that aren't self-closing. */\n html = setSelfClosing(html, constants)\n\n html = minifyKnownHtml(html, validated_config)\n let lines = enqueue(html, constants)\n if (validated_config.tag_wrap === 0 && validated_config.content_wrap === 0)\n lines = collapseInlineTokens(lines)\n html = process(lines, validated_config, constants)\n\n /* Revert html text within attribute values. */\n html = unsetIgnoreAttribute(html, constants)\n\n /* Re-insert ignored elements. */\n if (ignore_map) {\n html = reinsertIgnoredBlocks(html, ignore_map)\n }\n\n return html\n}\n",null],"names":["BUILD20"],"m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