@stencil/core 5.0.0-beta.32 → 5.0.0-beta.34

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.
@@ -1057,6 +1057,7 @@ let hostTagName;
1057
1057
  let hostRegistry;
1058
1058
  let useNativeShadowDom = false;
1059
1059
  let checkSlotFallbackVisibility = false;
1060
+ /** Whether the current render has slotted content to relocate. Set at the start of each render. */
1060
1061
  let checkSlotRelocate = false;
1061
1062
  let isSvgMode = false;
1062
1063
  /**
@@ -1616,6 +1617,7 @@ const flushQueuedRefCallbacks = () => {
1616
1617
  */
1617
1618
  const insertBefore = (parent, newNode, reference, isInitialLoad) => {
1618
1619
  if (BUILD.slotRelocation) {
1620
+ if (parent?.["s-cr"]) checkSlotRelocate = true;
1619
1621
  if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
1620
1622
  else if (typeof newNode["s-sn"] === "string") {
1621
1623
  const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
@@ -1718,6 +1720,7 @@ render() {
1718
1720
  if (BUILD.slotRelocation) {
1719
1721
  contentRef = hostElm["s-cr"];
1720
1722
  checkSlotFallbackVisibility = false;
1723
+ checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
1721
1724
  }
1722
1725
  patch(oldVNode, rootVnode, isInitialLoad);
1723
1726
  if (BUILD.slotRelocation) {
@@ -1787,7 +1790,7 @@ render() {
1787
1790
  nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
1788
1791
  }
1789
1792
  }
1790
- if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
1793
+ if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
1791
1794
  const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
1792
1795
  for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
1793
1796
  if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
@@ -1843,7 +1843,7 @@ const validateComponentTag = (tag) => {
1843
1843
  };
1844
1844
  //#endregion
1845
1845
  //#region src/version.ts
1846
- const version = "5.0.0-beta.32";
1846
+ const version = "5.0.0-beta.34";
1847
1847
  //#endregion
1848
1848
  //#region src/compiler/events.ts
1849
1849
  const buildEvents = () => {
@@ -1,4 +1,4 @@
1
- import { $ as CompilerFsStats, $n as WorkerMainController, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrFactoryOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsStyle, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsValue, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsUsage, Et as FsWatchResults, F as Compiler, Fn as SerializeDocumentOptions, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as TransformOptions, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilDevServerConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as ServiceWorkerConfig, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileResults, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TranspileOnlyResults, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as SitemapXmpOpts, Lt as LoadConfigInit, M as CliInitOptions, Mn as RobotsTxtOpts, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtResults, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as StyleDoc, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RolldownConfig, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as WatcherCloseResults, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpResults, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsSlot, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTypeLibrary, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDocsConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as StencilConfig, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as SystemDetails, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as ValidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as UnvalidatedConfig, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedOutputTargetWww, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsListener, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsPart, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dr as JsonDocMethodParameter, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerOptions, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocs, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsEvent, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsDependencyGraph, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleOptions, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveModuleIdOptions, kr as FsWriteResults, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lr as UserBuildConditionals, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsCustomState, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocsComponent, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOptions, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsMethod, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsTag, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsProp, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethodReturn, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SsrDocumentOptions, zt as LogLevel } from "../index-m_QF4nMv.mjs";
1
+ import { $ as CompilerFsStats, $n as WorkerMainController, $t as OutputTargetBuild, A as BuildOverrides, An as ResolveModuleIdResults, At as HotModuleReplacement, B as CompilerEventBuildLog, Bn as SsrFactoryOptions, Bt as Logger, C as BuildEmitEvents, Cn as PluginTransformResults, Cr as JsonDocsStyle, Ct as DevServerEditor, D as BuildOnEventRemove, Dn as PrerenderResults, Dr as JsonDocsValue, Dt as HistoryApiFallback, E as BuildNoChangeResults, En as PrerenderOptions, Er as JsonDocsUsage, Et as FsWatchResults, F as Compiler, Fn as SerializeDocumentOptions, Ft as LazyRequire, G as CompilerEventFileAdd, Gn as TransformOptions, Gt as OptimizeCssInput, H as CompilerEventBuildStart, Hn as StencilDevServerConfig, Ht as LoggerTimeSpan, I as CompilerBuildResults, In as ServiceWorkerConfig, It as LightDomPatches, J as CompilerEventFsChange, Jn as TranspileResults, Jt as OptimizeJsOutput, K as CompilerEventFileDelete, Kn as TranspileOnlyResults, Kt as OptimizeCssOutput, L as CompilerBuildStart, Ln as SitemapXmpOpts, Lt as LoadConfigInit, M as CliInitOptions, Mn as RobotsTxtOpts, Mt as HydrateFactoryOptions, N as CompileScriptMinifyOptions, Nn as RobotsTxtResults, Nt as HydratedFlag, O as BuildOnEvents, On as PrerenderStartOptions, Or as StyleDoc, Ot as HmrGlobalStyleUpdate, P as CompileTarget, Pn as RolldownConfig, Pt as LOG_LEVELS, Q as CompilerFileWatcherEvent, Qn as WatcherCloseResults, Qt as OutputTargetBaseNext, R as CompilerDependency, Rn as SitemapXmpResults, Rt as LoadConfigResults, S as AutoprefixerOptions, Sn as PluginCtx, Sr as JsonDocsSlot, St as DevServerConfig, T as BuildLog, Tn as PrerenderHydrateOptions, Tr as JsonDocsTypeLibrary, Tt as DocsReadmeCustomColumn, U as CompilerEventDirAdd, Un as StencilDocsConfig, Ut as ModeConfig, V as CompilerEventBuildNoChange, Vn as StencilConfig, Vt as LoggerLineUpdater, W as CompilerEventDirDelete, Wn as SystemDetails, Wt as NodeResolveConfig, X as CompilerFileWatcher, Xn as ValidatedConfig, Xt as OutputTargetAssets, Y as CompilerEventName, Yn as UnvalidatedConfig, Yt as OutputTarget, Z as CompilerFileWatcherCallback, Zn as ValidatedOutputTargetWww, Zt as OutputTargetBase, _ as PrintLine, _n as OutputTargetWww, _r as JsonDocsListener, _t as CopyTask, a as ComponentCompilerEvent, an as OutputTargetDocsCustom, at as CompilerSystemRealpathResults, b as SsrResults, bn as PlatformPath, br as JsonDocsPart, bt as CustomElementsExportBehaviorOptions, c as ComponentCompilerMethod, cn as OutputTargetDocsReadme, ct as CompilerSystemRemoveFileResults, d as ComponentCompilerTypeReferences, dn as OutputTargetLoaderBundle, dr as JsonDocMethodParameter, dt as CompilerSystemWriteFileResults, en as OutputTargetCollection, er as WorkerOptions, et as CompilerRequest, f as ComponentGlobalStyle, fn as OutputTargetSsr, fr as JsonDocs, ft as CompilerWatcher, g as PrerenderUrlResults, gn as OutputTargetTypes, gr as JsonDocsEvent, gt as CopyResults, h as PackageJsonData, hn as OutputTargetStats, hr as JsonDocsDependencyGraph, ht as ConfigCompat, i as CompilerWorkerContext, in as OutputTargetDocsAgentSkill, it as CompilerSystemCreateDirectoryResults, j as BuildResultsComponentGraph, jn as ResolveModuleOptions, jt as HydrateDocumentOptions, k as BuildOutput, kn as ResolveModuleIdOptions, kr as FsWriteResults, kt as HmrStyleUpdate, l as ComponentCompilerProperty, ln as OutputTargetDocsVscode, lr as UserBuildConditionals, lt as CompilerSystemRenameResults, m as LazyBundlesRuntimeData, mn as OutputTargetStandalone, mr as JsonDocsCustomState, mt as ConfigBundle, nn as OutputTargetCustom, nt as CompilerSystem, o as ComponentCompilerListener, on as OutputTargetDocsCustomElementsManifest, ot as CompilerSystemRemoveDirectoryOptions, pn as OutputTargetSsrWasm, pr as JsonDocsComponent, pt as Config, q as CompilerEventFileUpdate, qn as TranspileOptions, qt as OptimizeJsInput, r as CompilerCtx, rn as OutputTargetDistLazy, rt as CompilerSystemCreateDirectoryOptions, s as ComponentCompilerMeta, sn as OutputTargetDocsJson, st as CompilerSystemRemoveDirectoryResults, t as BuildCtx, tn as OutputTargetCopy, tt as CompilerRequestResponse, u as ComponentCompilerState, un as OutputTargetGlobalStyle, ut as CompilerSystemRenamedPath, vn as PageReloadStrategy, vr as JsonDocsMethod, vt as Credentials, w as BuildEvents, wn as PrerenderConfig, wr as JsonDocsTag, wt as Diagnostic, x as WorkerMsgHandler, xn as Plugin, xr as JsonDocsProp, xt as DevServer, yn as ParsedPath, yr as JsonDocsMethodReturn, yt as CustomElementsExportBehavior, z as CompilerEventBuildFinish, zn as SsrDocumentOptions, zt as LogLevel } from "../index-B0NfYeIA.mjs";
2
2
  import ts from "typescript";
3
3
  import { Plugin as Plugin$1 } from "rolldown";
4
4
  //#region src/version.d.ts
@@ -1,3 +1,3 @@
1
- import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-BZEeAANv.mjs";
2
- import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-D-21Ykxi.mjs";
1
+ import { A as version, C as hasStencilHydrateImport, D as parseCssOnlyComponents, E as replaceStencilHydrateImport, M as scopeCss, O as buildId, S as hasStencilGlobalsImport, T as replaceStencilGlobalsImport, _ as cmpMetaToDocsComponent, a as createPrerenderer, b as buildHydrateCss, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as generateManifest, h as generateComponentTypesFile, i as createSystem, j as versions, k as vermoji, l as createWorkerMessageHandler, m as validateHydrated, n as transpile, o as loadConfig, p as validateConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as getScopeId, w as replaceStencilCssComponentsImport, x as hasStencilCssComponentsImport, y as foldBuildFlags } from "../compiler-CVL510L-.mjs";
2
+ import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-eg7pofz5.mjs";
3
3
  export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildHydrateCss, buildId, cmpMetaToDocsComponent, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, foldBuildFlags, generateComponentTypesFile, generateManifest, getScopeId, hasStencilCssComponentsImport, hasStencilGlobalsImport, hasStencilHydrateImport, loadConfig, nodeRequire, optimizeCss, optimizeJs, parseCssOnlyComponents, replaceStencilCssComponentsImport, replaceStencilGlobalsImport, replaceStencilHydrateImport, scopeCss, transpile, transpileSync, ts, validateConfig, validateHydrated, vermoji, version, versions };
@@ -1,4 +1,4 @@
1
- import { $i as CUSTOM, $r as filterActiveTargets, Ai as buildWarn, Ar as ModeValidationError, Bi as loadTypeScriptDiagnostics, Br as isJsFile, Ca as TYPES, Ci as isOutputTargetWww, Da as XLINK_NS, Di as TASK_CANCELED_MSG, Ea as WWW, Ei as shouldExcludeComponent, Fi as escapeHtml, Fr as createJsVarName, Gi as formatLazyBundleRuntimeMeta, Gr as readOnlyArrayHasStringMember, Hi as isRolldownError, Hr as isTsFile, Ii as normalizeDiagnostics, Ir as generatePreamble, Ji as CMP_FLAGS, Jr as getSourceMappingUrlForEndOfFile, Ki as stringifyRuntimeData, Kr as readPackageJson, Li as splitLineBreaks, Lr as getTextDocs, Mi as hasError, Mr as validateComponentTag, Ni as hasWarning, Nr as ParsePackageJsonResult, Oi as buildError, Pi as shouldIgnoreError, Pr as addDocBlock, Qi as COPY, Qr as FilterComponentsResult, Ri as augmentDiagnosticWithNode, Rr as hasDependency, Sa as SVG_NS, Si as isOutputTargetTypes, Ta as WATCH_FLAGS, Ti as relativeImport, Ui as loadRolldownDiagnostics, Ur as isTsxFile, Vi as createOnWarnFn, Vr as isJsxFile, Wi as formatComponentRuntimeMeta, Wr as parsePackageJson, Xi as COLLECTION_APP_DATA_FILE_NAME, Xr as rolldownToStencilSourceMap, Yi as COLLECTION, Yr as getSourceMappingUrlLinker, Zi as COLLECTION_MANIFEST_FILE_NAME, Zr as result_d_exports, _a as SSR, _i as isOutputTargetLoaderBundle, aa as DOCS_JSON, ai as isOutputTargetCollection, ba as STATS, bi as isOutputTargetStandalone, ca as EVENT_FLAGS, ci as isOutputTargetDistLazy, da as HOST_FLAGS, di as isOutputTargetDocsCustom, ea as DEFAULT_STYLE_MODE, ei as filterExcludedComponents, fa as HTML_NS, fi as isOutputTargetDocsCustomElementsManifest, ga as NODE_TYPES, gi as isOutputTargetGlobalStyle, ha as MEMBER_FLAGS, hi as isOutputTargetDocsVscode, ia as DOCS_CUSTOM_ELEMENTS_MANIFEST, ii as isOutputTargetAssets, ji as catchError, jr as validateComponentModes, ki as buildJsonFileError, la as GENERATED_DTS, li as isOutputTargetDocs, ma as LOADER_BUNDLE, mi as isOutputTargetDocsReadme, na as DOCS_AGENT_SKILL, ni as getComponentsDtsTypesFilePath, oa as DOCS_README, oi as isOutputTargetCopy, pa as LISTENER_FLAGS, pi as isOutputTargetDocsJson, qi as ASSETS, qr as getInlineSourceMappingUrlLinker, ra as DOCS_CUSTOM, ri as getComponentsFromModules, sa as DOCS_VSCODE, si as isOutputTargetCustom, ta as DIST_LAZY, ti as getComponentsDtsSrcFilePath, ua as GLOBAL_STYLE, ui as isOutputTargetDocsAgentSkill, va as SSR_WASM, vi as isOutputTargetSsr, wa as VALID_CONFIG_OUTPUT_TARGETS, wi as isValidConfigOutputTarget, xa as STYLE_EXT, xi as isOutputTargetStats, ya as STANDALONE, yi as isOutputTargetSsrWasm, zi as loadTypeScriptDiagnostic, zr as isDtsFile } from "../../index-m_QF4nMv.mjs";
1
+ import { $i as COPY, $r as filterActiveTargets, Ai as buildJsonFileError, Ar as ModeValidationError, Bi as loadTypeScriptDiagnostic, Br as isJsFile, Ca as SVG_NS, Ci as isOutputTargetTypes, Da as WWW, Di as shouldExcludeComponent, Ea as WATCH_FLAGS, Ei as relativeImport, Fi as shouldIgnoreError, Fr as createJsVarName, Gi as formatComponentRuntimeMeta, Gr as readOnlyArrayHasStringMember, Hi as createOnWarnFn, Hr as isTsFile, Ii as escapeHtml, Ir as generatePreamble, Ji as ASSETS, Jr as getSourceMappingUrlForEndOfFile, Ki as formatLazyBundleRuntimeMeta, Kr as readPackageJson, Li as normalizeDiagnostics, Lr as getTextDocs, Mi as catchError, Mr as validateComponentTag, Ni as hasError, Nr as ParsePackageJsonResult, Oa as XLINK_NS, Oi as TASK_CANCELED_MSG, Pi as hasWarning, Pr as addDocBlock, Qi as COLLECTION_MANIFEST_FILE_NAME, Qr as FilterComponentsResult, Ri as splitLineBreaks, Rr as hasDependency, Sa as STYLE_EXT, Si as isOutputTargetStats, Ta as VALID_CONFIG_OUTPUT_TARGETS, Ti as isValidConfigOutputTarget, Ui as isRolldownError, Ur as isTsxFile, Vi as loadTypeScriptDiagnostics, Vr as isJsxFile, Wi as loadRolldownDiagnostics, Wr as parsePackageJson, Xi as COLLECTION, Xr as rolldownToStencilSourceMap, Yi as CMP_FLAGS, Yr as getSourceMappingUrlLinker, Zi as COLLECTION_APP_DATA_FILE_NAME, Zr as result_d_exports, _a as NODE_TYPES, _i as isOutputTargetLoaderBundle, aa as DOCS_CUSTOM_ELEMENTS_MANIFEST, ai as isOutputTargetCollection, ba as STANDALONE, bi as isOutputTargetSsrWasm, ca as DOCS_VSCODE, ci as isOutputTargetDistLazy, da as GLOBAL_STYLE, di as isOutputTargetDocsCustom, ea as CUSTOM, ei as filterExcludedComponents, fa as HOST_FLAGS, fi as isOutputTargetDocsCustomElementsManifest, ga as MEMBER_FLAGS, gi as isOutputTargetGlobalStyle, ha as LOADER_BUNDLE, hi as isOutputTargetDocsVscode, ia as DOCS_CUSTOM, ii as isOutputTargetAssets, ji as buildWarn, jr as validateComponentModes, ki as buildError, la as EVENT_FLAGS, li as isOutputTargetDocs, ma as LISTENER_FLAGS, mi as isOutputTargetDocsReadme, na as DIST_LAZY, ni as getComponentsDtsTypesFilePath, oa as DOCS_JSON, oi as isOutputTargetCopy, pa as HTML_NS, pi as isOutputTargetDocsJson, qi as stringifyRuntimeData, qr as getInlineSourceMappingUrlLinker, ra as DOCS_AGENT_SKILL, ri as getComponentsFromModules, sa as DOCS_README, si as isOutputTargetCustom, ta as DEFAULT_STYLE_MODE, ti as getComponentsDtsSrcFilePath, ua as GENERATED_DTS, ui as isOutputTargetDocsAgentSkill, va as SSR, vi as isOutputTargetServerRenderer, wa as TYPES, wi as isOutputTargetWww, xa as STATS, xi as isOutputTargetStandalone, ya as SSR_WASM, yi as isOutputTargetSsr, zi as augmentDiagnosticWithNode, zr as isDtsFile } from "../../index-B0NfYeIA.mjs";
2
2
  //#region src/utils/byte-size.d.ts
3
3
  /**
4
4
  * Used to learn the size of a string in bytes.
@@ -269,4 +269,4 @@ declare const escapeRegExpSpecialCharacters: (text: string) => string;
269
269
  */
270
270
  declare const isRemoteUrl: (p: string) => boolean;
271
271
  //#endregion
272
- export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_AGENT_SKILL, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, FilterComponentsResult, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, ModeValidationError, NODE_TYPES, ParsePackageJsonResult, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsAgentSkill, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_d_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentModes, validateComponentTag };
272
+ export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_AGENT_SKILL, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, FilterComponentsResult, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, ModeValidationError, NODE_TYPES, ParsePackageJsonResult, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsAgentSkill, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetServerRenderer, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_d_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentModes, validateComponentTag };
@@ -1,4 +1,4 @@
1
1
  import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, B as HOST_FLAGS, C as CMP_FLAGS, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, F as DOCS_README, G as NODE_TYPES, H as LISTENER_FLAGS, I as DOCS_VSCODE, J as STANDALONE, K as SSR, L as EVENT_FLAGS, M as DOCS_CUSTOM, N as DOCS_CUSTOM_ELEMENTS_MANIFEST, O as CUSTOM, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, T as COLLECTION_APP_DATA_FILE_NAME, U as LOADER_BUNDLE, V as HTML_NS, W as MEMBER_FLAGS, X as STYLE_EXT, Y as STATS, Z as SVG_NS, _ as toCamelCase, a as isBoolean, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString, g as sortBy, h as pluck, i as fromEntries, j as DOCS_AGENT_SKILL, k as DEFAULT_STYLE_MODE, l as isIterable, m as noop, n as escapeWithPattern, nt as XLINK_NS, o as isComplexType, p as mergeIntoWith, q as SSR_WASM, r as flatOne, s as isDef, t as dashToPascalCase, tt as WWW, u as isNumber, v as toDashCase, w as COLLECTION, x as queryNonceMetaTagContent, y as toTitleCase, z as GLOBAL_STYLE } from "../../helpers-Cpp3qc3u.mjs";
2
- import { C as formatLazyBundleRuntimeMeta, E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, d as result_exports, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, m as loadTypeScriptDiagnostics, n as validateComponentTag, o as getSourceMappingUrlLinker, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, v as escapeHtml, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "../../validation-DAdGTrys.mjs";
3
- import { $ as catchError, A as isOutputTargetDocsVscode, B as relativeImport, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetStandalone, G as normalizeFsPathQuery, H as join, I as isOutputTargetStats, J as resolve, K as normalizePath, L as isOutputTargetTypes, M as isOutputTargetLoaderBundle, N as isOutputTargetSsr, O as isOutputTargetDocsJson, P as isOutputTargetSsrWasm, Q as buildWarn, R as isOutputTargetWww, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as normalize, V as shouldExcludeComponent, W as normalizeFsPath, X as buildError, Y as TASK_CANCELED_MSG, Z as buildJsonFileError, _ as getComponentsDtsTypesFilePath, a as hasDependency, b as isOutputTargetCollection, c as isJsxFile, d as parsePackageJson, et as hasError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as shouldIgnoreError, o as isDtsFile, p as readPackageJson, q as relative, r as generatePreamble, rt as isGlob, s as isJsFile, t as addDocBlock, tt as hasWarning, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isValidConfigOutputTarget } from "../../util-IKfWWLJo.mjs";
4
- export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_AGENT_SKILL, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, NODE_TYPES, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsAgentSkill, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentModes, validateComponentTag };
2
+ import { C as formatLazyBundleRuntimeMeta, E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, d as result_exports, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, m as loadTypeScriptDiagnostics, n as validateComponentTag, o as getSourceMappingUrlLinker, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, v as escapeHtml, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "../../validation-BlVm1Vu0.mjs";
3
+ import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join, V as relativeImport, W as normalize, X as TASK_CANCELED_MSG, Y as resolve, Z as buildError, _ as getComponentsDtsTypesFilePath, a as hasDependency, b as isOutputTargetCollection, c as isJsxFile, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, rt as shouldIgnoreError, s as isJsFile, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "../../util-C-H1H84W.mjs";
4
+ export { ASSETS, CMP_FLAGS, COLLECTION, COLLECTION_APP_DATA_FILE_NAME, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST_LAZY, DOCS_AGENT_SKILL, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, GLOBAL_STYLE, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, LOADER_BUNDLE, MEMBER_FLAGS, NODE_TYPES, SSR, SSR_WASM, STANDALONE, STATS, STYLE_EXT, SVG_NS, TASK_CANCELED_MSG, TYPES, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterActiveTargets, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetAssets, isOutputTargetCollection, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDistLazy, isOutputTargetDocs, isOutputTargetDocsAgentSkill, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetGlobalStyle, isOutputTargetLoaderBundle, isOutputTargetServerRenderer, isOutputTargetSsr, isOutputTargetSsrWasm, isOutputTargetStandalone, isOutputTargetStats, isOutputTargetTypes, isOutputTargetWww, isRemoteUrl, isRolldownError, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentModes, validateComponentTag };
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import { E as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, w as CLIENT_BUILD_FLAGS } from "./client-DIvBaMnB.mjs";
2
+ import { E as SERVER_BUILD_FLAGS, T as HYDRATED_CSS, w as CLIENT_BUILD_FLAGS } from "./client-UbH-XkYu.mjs";
3
3
  import { $ as VALID_CONFIG_OUTPUT_TARGETS, A as DIST_LAZY, D as COPY, E as COLLECTION_MANIFEST_FILE_NAME, J as STANDALONE, L as EVENT_FLAGS, P as DOCS_JSON, Q as TYPES, R as GENERATED_DTS, S as ASSETS, T as COLLECTION_APP_DATA_FILE_NAME, U as LOADER_BUNDLE, X as STYLE_EXT, Y as STATS, a as isBoolean$1, b as unique, c as isFunction, d as isObject, et as WATCH_FLAGS, f as isString$1, g as sortBy, i as fromEntries, l as isIterable, m as noop, p as mergeIntoWith, r as flatOne, t as dashToPascalCase, u as isNumber$1, v as toDashCase, w as COLLECTION, y as toTitleCase, z as GLOBAL_STYLE } from "./helpers-Cpp3qc3u.mjs";
4
- import { E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, c as err, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, l as map, m as loadTypeScriptDiagnostics, n as validateComponentTag, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, u as ok, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "./validation-DAdGTrys.mjs";
5
- import { $ as catchError, A as isOutputTargetDocsVscode, B as relativeImport, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetStandalone, G as normalizeFsPathQuery, H as join$2, I as isOutputTargetStats, J as resolve$2, K as normalizePath, L as isOutputTargetTypes, M as isOutputTargetLoaderBundle, N as isOutputTargetSsr, O as isOutputTargetDocsJson, P as isOutputTargetSsrWasm, Q as buildWarn, R as isOutputTargetWww, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, V as shouldExcludeComponent, W as normalizeFsPath, X as buildError, Z as buildJsonFileError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as hasError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, o as isDtsFile, p as readPackageJson, q as relative$1, r as generatePreamble, rt as isGlob, t as addDocBlock, tt as hasWarning, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isValidConfigOutputTarget } from "./util-IKfWWLJo.mjs";
6
- import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-D-21Ykxi.mjs";
4
+ import { E as escapeRegExpSpecialCharacters, S as formatComponentRuntimeMeta, T as byteSize, _ as loadRolldownDiagnostics, a as getSourceMappingUrlForEndOfFile, b as splitLineBreaks, c as err, f as augmentDiagnosticWithNode, g as isRolldownError, h as createOnWarnFn, i as getInlineSourceMappingUrlLinker, l as map, m as loadTypeScriptDiagnostics, n as validateComponentTag, p as loadTypeScriptDiagnostic, r as isRemoteUrl, s as rolldownToStencilSourceMap, t as validateComponentModes, u as ok, w as stringifyRuntimeData, x as isRootPath, y as normalizeDiagnostics } from "./validation-BlVm1Vu0.mjs";
5
+ import { $ as buildWarn, A as isOutputTargetDocsVscode, B as isValidConfigOutputTarget, C as isOutputTargetDistLazy, D as isOutputTargetDocsCustomElementsManifest, E as isOutputTargetDocsCustom, F as isOutputTargetSsrWasm, G as normalizeFsPath, H as shouldExcludeComponent, I as isOutputTargetStandalone, J as relative$1, K as normalizeFsPathQuery, L as isOutputTargetStats, M as isOutputTargetLoaderBundle, N as isOutputTargetServerRenderer, O as isOutputTargetDocsJson, P as isOutputTargetSsr, Q as buildJsonFileError, R as isOutputTargetTypes, S as isOutputTargetCustom, T as isOutputTargetDocsAgentSkill, U as join$2, V as relativeImport, Y as resolve$2, Z as buildError, a as hasDependency, b as isOutputTargetCollection, d as parsePackageJson, et as catchError, f as readOnlyArrayHasStringMember, g as getComponentsDtsSrcFilePath, h as filterExcludedComponents, i as getTextDocs, it as isGlob, j as isOutputTargetGlobalStyle, k as isOutputTargetDocsReadme, l as isTsFile, m as filterActiveTargets, n as createJsVarName, nt as hasWarning, o as isDtsFile, p as readPackageJson, q as normalizePath, r as generatePreamble, t as addDocBlock, tt as hasError, u as isTsxFile, v as getComponentsFromModules, w as isOutputTargetDocs, x as isOutputTargetCopy, y as isOutputTargetAssets, z as isOutputTargetWww } from "./util-C-H1H84W.mjs";
6
+ import { i as CustomElementsExportBehaviorOptions, o as buildEvents, r as createNodeLogger, t as createNodeSys } from "./node-eg7pofz5.mjs";
7
7
  import ts, { default as ts$1 } from "typescript";
8
8
  import { readFileSync } from "node:fs";
9
9
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
@@ -461,9 +461,9 @@ const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
461
461
  };
462
462
  //#endregion
463
463
  //#region src/version.ts
464
- const version = "5.0.0-beta.32";
465
- const buildId = "1793824061";
466
- const vermoji = "🚀";
464
+ const version = "5.0.0-beta.34";
465
+ const buildId = "1793980027";
466
+ const vermoji = "🦀";
467
467
  /**
468
468
  * Get the installed version of a tool/dependency.
469
469
  * Handles packages with exports maps that point to subdirectories.
@@ -3905,7 +3905,7 @@ const generateAppDataModule = (build, config) => {
3905
3905
  const serializeCollectionManifest = (config, compilerCtx, buildCtx) => {
3906
3906
  const localCmps = buildCtx.moduleFiles.filter((mod) => !mod.isCollectionDependency).flatMap((mod) => mod.cmps);
3907
3907
  const buildFlags = getBuildFeatures(localCmps);
3908
- buildFlags.hydrateClientSide = config.outputTargets.some(isOutputTargetSsr);
3908
+ buildFlags.hydrateClientSide = config.outputTargets.some(isOutputTargetServerRenderer);
3909
3909
  const ldp = config.compat?.lightDomPatches ?? true;
3910
3910
  if (buildFlags.slotRelocation && ldp !== false) {
3911
3911
  buildFlags.lightDomPatches = ldp === true;
@@ -8413,7 +8413,7 @@ const getLazyBuildConditionals = (config, cmps, staticHydrationStyles = false) =
8413
8413
  build.taskQueue = config.taskQueue !== "immediate";
8414
8414
  build.initializeNextTick = config.compat.initializeNextTick;
8415
8415
  build.staticHydrationStyles = staticHydrationStyles;
8416
- build.hydrateClientSide = config.outputTargets.some(isOutputTargetSsr);
8416
+ build.hydrateClientSide = config.outputTargets.some(isOutputTargetServerRenderer);
8417
8417
  updateBuildConditionals(config, build);
8418
8418
  return build;
8419
8419
  };
@@ -12954,11 +12954,91 @@ const outputSsr = async (config, compilerCtx, buildCtx) => {
12954
12954
  //#region src/compiler/output-targets/ssr-wasm/generate-ssr-wasm.ts
12955
12955
  const execFileAsync = promisify(execFile);
12956
12956
  const SSR_WASM_TIMER_POLYFILL = `
12957
- if (typeof globalThis !== "undefined") {
12958
- if (typeof globalThis.setTimeout !== "function") globalThis.setTimeout = function() { return 0; };
12959
- if (typeof globalThis.clearTimeout !== "function") globalThis.clearTimeout = function() {};
12960
- if (typeof globalThis.setInterval !== "function") globalThis.setInterval = function() { return 0; };
12961
- if (typeof globalThis.clearInterval !== "function") globalThis.clearInterval = function() {};
12957
+ if (typeof globalThis !== "undefined" && typeof globalThis.setTimeout !== "function") {
12958
+ (function() {
12959
+ var timers = [];
12960
+ var nextId = 1;
12961
+ var now = 0;
12962
+ var render = null;
12963
+ var pumping = false;
12964
+
12965
+ function add(fn, delay, args, interval) {
12966
+ delay = Math.max(0, Number(delay) || 0);
12967
+ var timer = { id: nextId++, due: now + delay, delay: delay, fn: fn, args: args, interval: interval };
12968
+ timers.push(timer);
12969
+ if (render && !pumping) pump();
12970
+ return timer.id;
12971
+ }
12972
+
12973
+ function clear(id) {
12974
+ for (var i = 0; i < timers.length; i++) {
12975
+ if (timers[i].id === id) {
12976
+ timers.splice(i, 1);
12977
+ return;
12978
+ }
12979
+ }
12980
+ }
12981
+
12982
+ function nextTimer() {
12983
+ var next = null;
12984
+ for (var i = 0; i < timers.length; i++) {
12985
+ if (!next || timers[i].due < next.due || (timers[i].due === next.due && timers[i].id < next.id)) next = timers[i];
12986
+ }
12987
+ return next;
12988
+ }
12989
+
12990
+ async function pump() {
12991
+ pumping = true;
12992
+ var current = render;
12993
+ try {
12994
+ while (render === current && current && !current.done) {
12995
+ // let the work that's already queued (and anything it queues) run first
12996
+ for (var i = 0; i < 100 && !current.done; i++) await null;
12997
+ if (render !== current || current.done) return;
12998
+ var next = nextTimer();
12999
+ if (!next) return;
13000
+ if (next.due >= current.budget || ++current.fired > 10000) {
13001
+ current.onBudgetExceeded();
13002
+ return;
13003
+ }
13004
+ now = next.due;
13005
+ if (next.interval) next.due = now + Math.max(next.delay, 1);
13006
+ else clear(next.id);
13007
+ if (typeof next.fn === "function") {
13008
+ try {
13009
+ next.fn.apply(globalThis, next.args);
13010
+ } catch (e) {
13011
+ if (typeof console !== "undefined") console.error(e);
13012
+ }
13013
+ }
13014
+ }
13015
+ } finally {
13016
+ pumping = false;
13017
+ }
13018
+ }
13019
+
13020
+ globalThis.setTimeout = function(fn, delay) { return add(fn, delay, Array.prototype.slice.call(arguments, 2), false); };
13021
+ globalThis.setInterval = function(fn, delay) { return add(fn, delay, Array.prototype.slice.call(arguments, 2), true); };
13022
+ globalThis.clearTimeout = clear;
13023
+ globalThis.clearInterval = clear;
13024
+
13025
+ // Used by the outro around each renderToString call.
13026
+ globalThis.__stencilSsrWasmTimers = {
13027
+ start: function(budget, onBudgetExceeded) {
13028
+ timers.length = 0;
13029
+ now = 0;
13030
+ render = { budget: budget, fired: 0, done: false, onBudgetExceeded: onBudgetExceeded };
13031
+ return render;
13032
+ },
13033
+ stop: function(r) {
13034
+ r.done = true;
13035
+ if (render === r) {
13036
+ render = null;
13037
+ timers.length = 0;
13038
+ }
13039
+ }
13040
+ };
13041
+ })();
12962
13042
  }
12963
13043
  `;
12964
13044
  const SSR_WASM_ABORT_CONTROLLER_POLYFILL = `
@@ -13009,13 +13089,35 @@ module.exports = {
13009
13089
  return;
13010
13090
  }
13011
13091
  var inp = JSON.parse(Host.inputString());
13012
- // QuickJS-ng has no timers, so if hydration never settles on its own (a Promise
13013
- // nothing will ever resolve), the call doesn't hang - it just runs out of scheduled
13014
- // work and returns whatever was last written here. Write a diagnostic up front so
13015
- // that's a real error instead of silence, then overwrite it once renderToString()
13016
- // actually resolves.
13092
+ // If hydration never settles (a Promise nothing will resolve, or a timer due after the
13093
+ // timeout), the call doesn't hang - it runs out of scheduled work and returns whatever
13094
+ // was last written here. Write an error up front so that's a real error instead of
13095
+ // silence, then overwrite it once renderToString() actually resolves.
13017
13096
  Host.outputString(JSON.stringify({ __error: 'renderToString did not complete - a component may be waiting on work that never resolves' }));
13018
- var result = await renderToString(inp.html, inp.options);
13097
+ var opts = inp.options || {};
13098
+ var budget = typeof opts.timeout === 'number' ? opts.timeout : 15000;
13099
+ var timers = globalThis.__stencilSsrWasmTimers;
13100
+ var render = timers && timers.start(budget, function() {
13101
+ Host.outputString(JSON.stringify({ __error: 'renderToString did not complete within the ' + budget + 'ms timeout - a component may be waiting on work that never resolves, on a timer due after the timeout, or on timers it schedules forever' }));
13102
+ });
13103
+ var result;
13104
+ try {
13105
+ result = await renderToString(inp.html, inp.options);
13106
+ } finally {
13107
+ if (render) timers.stop(render);
13108
+ }
13109
+ // renderToString reports some failures (e.g. input that isn't an HTML string) as an
13110
+ // error diagnostic with no html, rather than throwing. Surface those as __error, as
13111
+ // documented, so hosts only need one failure check.
13112
+ if (!result || typeof result.html !== 'string') {
13113
+ var diagnostics = (result && result.diagnostics) || [];
13114
+ var firstError = diagnostics.find(function(d) { return d.level === 'error'; });
13115
+ Host.outputString(JSON.stringify({
13116
+ __error: firstError ? firstError.messageText : 'renderToString returned no html',
13117
+ diagnostics: diagnostics
13118
+ }));
13119
+ return;
13120
+ }
13019
13121
  Host.outputString(JSON.stringify(result));
13020
13122
  } catch(e) {
13021
13123
  Host.outputString(JSON.stringify({ __error: String(e) }));
@@ -14030,7 +14132,7 @@ ${autoStart ? "\n// Auto-start the loader\nstart();" : ""}
14030
14132
  */
14031
14133
  const getStandaloneBuildConditionals = (config, cmps) => {
14032
14134
  const build = getBuildFeatures(cmps);
14033
- const hasSsrOutputTargets = config.outputTargets.some(isOutputTargetSsr);
14135
+ const hasSsrOutputTargets = config.outputTargets.some(isOutputTargetServerRenderer);
14034
14136
  build.lazyLoad = false;
14035
14137
  build.hydrateClientSide = hasSsrOutputTargets;
14036
14138
  build.hydrateServerSide = false;
@@ -459,6 +459,13 @@ declare const isOutputTargetLoaderBundle: (o: OutputTarget) => o is OutputTarget
459
459
  declare const isOutputTargetStandalone: (o: OutputTarget) => o is OutputTargetStandalone;
460
460
  declare const isOutputTargetSsr: (o: OutputTarget) => o is OutputTargetSsr;
461
461
  declare const isOutputTargetSsrWasm: (o: OutputTarget) => o is OutputTargetSsrWasm;
462
+ /**
463
+ * Whether an output target renders components on the server (`ssr` or `ssr-wasm`).
464
+ * When one is present, client builds must be able to hydrate server-rendered markup.
465
+ * @param o the output target to check
466
+ * @returns true if the output target server-renders components
467
+ */
468
+ declare const isOutputTargetServerRenderer: (o: OutputTarget) => o is OutputTargetSsr | OutputTargetSsrWasm;
462
469
  declare const isOutputTargetCollection: (o: OutputTarget) => o is OutputTargetCollection;
463
470
  declare const isOutputTargetTypes: (o: OutputTarget) => o is OutputTargetTypes;
464
471
  declare const isOutputTargetGlobalStyle: (o: OutputTarget) => o is OutputTargetGlobalStyle;
@@ -6206,4 +6213,4 @@ type MsgToWorker<T extends WorkerContextMethod> = IPCSerializable<{
6206
6213
  */
6207
6214
  type WorkerMsgHandler = <T extends WorkerContextMethod>(msgToWorker: MsgToWorker<T>) => ReturnType<CompilerWorkerContext[T]>;
6208
6215
  //#endregion
6209
- export { CompilerFsStats as $, CUSTOM as $i, WorkerMainController as $n, filterActiveTargets as $r, OutputTargetBuild as $t, BuildOverrides as A, buildWarn as Ai, ResolveModuleIdResults as An, ModeValidationError as Ar, HotModuleReplacement as At, CompilerEventBuildLog as B, loadTypeScriptDiagnostics as Bi, SsrFactoryOptions as Bn, isJsFile as Br, Logger as Bt, BuildEmitEvents as C, TYPES as Ca, isOutputTargetWww as Ci, PluginTransformResults as Cn, JsonDocsStyle as Cr, DevServerEditor as Ct, BuildOnEventRemove as D, XLINK_NS as Da, TASK_CANCELED_MSG as Di, PrerenderResults as Dn, JsonDocsValue as Dr, HistoryApiFallback as Dt, BuildNoChangeResults as E, WWW as Ea, shouldExcludeComponent as Ei, PrerenderOptions as En, JsonDocsUsage as Er, FsWatchResults as Et, Compiler as F, escapeHtml as Fi, SerializeDocumentOptions as Fn, createJsVarName as Fr, LazyRequire as Ft, CompilerEventFileAdd as G, formatLazyBundleRuntimeMeta as Gi, TransformOptions as Gn, readOnlyArrayHasStringMember as Gr, OptimizeCssInput as Gt, CompilerEventBuildStart as H, isRolldownError as Hi, StencilDevServerConfig as Hn, isTsFile as Hr, LoggerTimeSpan as Ht, CompilerBuildResults as I, normalizeDiagnostics as Ii, ServiceWorkerConfig as In, generatePreamble as Ir, LightDomPatches as It, CompilerEventFsChange as J, CMP_FLAGS as Ji, TranspileResults as Jn, getSourceMappingUrlForEndOfFile as Jr, OptimizeJsOutput as Jt, CompilerEventFileDelete as K, stringifyRuntimeData as Ki, TranspileOnlyResults as Kn, readPackageJson as Kr, OptimizeCssOutput as Kt, CompilerBuildStart as L, splitLineBreaks as Li, SitemapXmpOpts as Ln, getTextDocs as Lr, LoadConfigInit as Lt, CliInitOptions as M, hasError as Mi, RobotsTxtOpts as Mn, validateComponentTag as Mr, HydrateFactoryOptions as Mt, CompileScriptMinifyOptions as N, hasWarning as Ni, RobotsTxtResults as Nn, ParsePackageJsonResult as Nr, HydratedFlag as Nt, BuildOnEvents as O, buildError as Oi, PrerenderStartOptions as On, StyleDoc as Or, HmrGlobalStyleUpdate as Ot, CompileTarget as P, shouldIgnoreError as Pi, RolldownConfig as Pn, addDocBlock as Pr, LOG_LEVELS as Pt, CompilerFileWatcherEvent as Q, COPY as Qi, WatcherCloseResults as Qn, FilterComponentsResult as Qr, OutputTargetBaseNext as Qt, CompilerDependency as R, augmentDiagnosticWithNode as Ri, SitemapXmpResults as Rn, hasDependency as Rr, LoadConfigResults as Rt, AutoprefixerOptions as S, SVG_NS as Sa, isOutputTargetTypes as Si, PluginCtx as Sn, JsonDocsSlot as Sr, DevServerConfig as St, BuildLog as T, WATCH_FLAGS as Ta, relativeImport as Ti, PrerenderHydrateOptions as Tn, JsonDocsTypeLibrary as Tr, DocsReadmeCustomColumn as Tt, CompilerEventDirAdd as U, loadRolldownDiagnostics as Ui, StencilDocsConfig as Un, isTsxFile as Ur, ModeConfig as Ut, CompilerEventBuildNoChange as V, createOnWarnFn as Vi, StencilConfig as Vn, isJsxFile as Vr, LoggerLineUpdater as Vt, CompilerEventDirDelete as W, formatComponentRuntimeMeta as Wi, SystemDetails as Wn, parsePackageJson as Wr, NodeResolveConfig as Wt, CompilerFileWatcher as X, COLLECTION_APP_DATA_FILE_NAME as Xi, ValidatedConfig as Xn, rolldownToStencilSourceMap as Xr, OutputTargetAssets as Xt, CompilerEventName as Y, COLLECTION as Yi, UnvalidatedConfig as Yn, getSourceMappingUrlLinker as Yr, OutputTarget as Yt, CompilerFileWatcherCallback as Z, COLLECTION_MANIFEST_FILE_NAME as Zi, ValidatedOutputTargetWww as Zn, result_d_exports as Zr, OutputTargetBase as Zt, PrintLine as _, SSR as _a, isOutputTargetLoaderBundle as _i, OutputTargetWww as _n, JsonDocsListener as _r, CopyTask as _t, ComponentCompilerEvent as a, DOCS_JSON as aa, isOutputTargetCollection as ai, OutputTargetDocsCustom as an, RafCallback as ar, CompilerSystemRealpathResults as at, SsrResults as b, STATS as ba, isOutputTargetStandalone as bi, PlatformPath as bn, JsonDocsPart as br, CustomElementsExportBehaviorOptions as bt, ComponentCompilerMethod as c, EVENT_FLAGS as ca, isOutputTargetDistLazy as ci, OutputTargetDocsReadme as cn, TagTransformer as cr, CompilerSystemRemoveFileResults as ct, ComponentCompilerTypeReferences as d, HOST_FLAGS as da, isOutputTargetDocsCustom as di, OutputTargetLoaderBundle as dn, JsonDocMethodParameter as dr, CompilerSystemWriteFileResults as dt, DEFAULT_STYLE_MODE as ea, filterExcludedComponents as ei, OutputTargetCollection as en, WorkerOptions as er, CompilerRequest as et, ComponentGlobalStyle as f, HTML_NS as fa, isOutputTargetDocsCustomElementsManifest as fi, OutputTargetSsr as fn, JsonDocs as fr, CompilerWatcher as ft, PrerenderUrlResults as g, NODE_TYPES as ga, isOutputTargetGlobalStyle as gi, OutputTargetTypes as gn, JsonDocsEvent as gr, CopyResults as gt, PackageJsonData as h, MEMBER_FLAGS as ha, isOutputTargetDocsVscode as hi, OutputTargetStats as hn, JsonDocsDependencyGraph as hr, ConfigCompat as ht, CompilerWorkerContext as i, DOCS_CUSTOM_ELEMENTS_MANIFEST as ia, isOutputTargetAssets as ii, OutputTargetDocsAgentSkill as in, MixedInCtor as ir, CompilerSystemCreateDirectoryResults as it, BuildResultsComponentGraph as j, catchError as ji, ResolveModuleOptions as jn, validateComponentModes as jr, HydrateDocumentOptions as jt, BuildOutput as k, buildJsonFileError as ki, ResolveModuleIdOptions as kn, FsWriteResults as kr, HmrStyleUpdate as kt, ComponentCompilerProperty as l, GENERATED_DTS as la, isOutputTargetDocs as li, OutputTargetDocsVscode as ln, UserBuildConditionals as lr, CompilerSystemRenameResults as lt, LazyBundlesRuntimeData as m, LOADER_BUNDLE as ma, isOutputTargetDocsReadme as mi, OutputTargetStandalone as mn, JsonDocsCustomState as mr, ConfigBundle as mt, ChildType as n, DOCS_AGENT_SKILL as na, getComponentsDtsTypesFilePath as ni, OutputTargetCustom as nn, ErrorHandler as nr, CompilerSystem as nt, ComponentCompilerListener as o, DOCS_README as oa, isOutputTargetCopy as oi, OutputTargetDocsCustomElementsManifest as on, ReactiveControllerHostInterface as or, CompilerSystemRemoveDirectoryOptions as ot, HostElement as p, LISTENER_FLAGS as pa, isOutputTargetDocsJson as pi, OutputTargetSsrWasm as pn, JsonDocsComponent as pr, Config as pt, CompilerEventFileUpdate as q, ASSETS as qi, TranspileOptions as qn, getInlineSourceMappingUrlLinker as qr, OptimizeJsInput as qt, CompilerCtx as r, DOCS_CUSTOM as ra, getComponentsFromModules as ri, OutputTargetDistLazy as rn, FunctionalComponent as rr, CompilerSystemCreateDirectoryOptions as rt, ComponentCompilerMeta as s, DOCS_VSCODE as sa, isOutputTargetCustom as si, OutputTargetDocsJson as sn, ResolutionHandler as sr, CompilerSystemRemoveDirectoryResults as st, BuildCtx as t, DIST_LAZY as ta, getComponentsDtsSrcFilePath as ti, OutputTargetCopy as tn, ComponentInterface as tr, CompilerRequestResponse as tt, ComponentCompilerState as u, GLOBAL_STYLE as ua, isOutputTargetDocsAgentSkill as ui, OutputTargetGlobalStyle as un, VNode as ur, CompilerSystemRenamedPath as ut, PropsType as v, SSR_WASM as va, isOutputTargetSsr as vi, PageReloadStrategy as vn, JsonDocsMethod as vr, Credentials as vt, BuildEvents as w, VALID_CONFIG_OUTPUT_TARGETS as wa, isValidConfigOutputTarget as wi, PrerenderConfig as wn, JsonDocsTag as wr, Diagnostic$1 as wt, WorkerMsgHandler as x, STYLE_EXT as xa, isOutputTargetStats as xi, Plugin$1 as xn, JsonDocsProp as xr, DevServer as xt, RuntimeRef as y, STANDALONE as ya, isOutputTargetSsrWasm as yi, ParsedPath as yn, JsonDocsMethodReturn as yr, CustomElementsExportBehavior as yt, CompilerEventBuildFinish as z, loadTypeScriptDiagnostic as zi, SsrDocumentOptions as zn, isDtsFile as zr, LogLevel as zt };
6216
+ export { CompilerFsStats as $, COPY as $i, WorkerMainController as $n, filterActiveTargets as $r, OutputTargetBuild as $t, BuildOverrides as A, buildJsonFileError as Ai, ResolveModuleIdResults as An, ModeValidationError as Ar, HotModuleReplacement as At, CompilerEventBuildLog as B, loadTypeScriptDiagnostic as Bi, SsrFactoryOptions as Bn, isJsFile as Br, Logger as Bt, BuildEmitEvents as C, SVG_NS as Ca, isOutputTargetTypes as Ci, PluginTransformResults as Cn, JsonDocsStyle as Cr, DevServerEditor as Ct, BuildOnEventRemove as D, WWW as Da, shouldExcludeComponent as Di, PrerenderResults as Dn, JsonDocsValue as Dr, HistoryApiFallback as Dt, BuildNoChangeResults as E, WATCH_FLAGS as Ea, relativeImport as Ei, PrerenderOptions as En, JsonDocsUsage as Er, FsWatchResults as Et, Compiler as F, shouldIgnoreError as Fi, SerializeDocumentOptions as Fn, createJsVarName as Fr, LazyRequire as Ft, CompilerEventFileAdd as G, formatComponentRuntimeMeta as Gi, TransformOptions as Gn, readOnlyArrayHasStringMember as Gr, OptimizeCssInput as Gt, CompilerEventBuildStart as H, createOnWarnFn as Hi, StencilDevServerConfig as Hn, isTsFile as Hr, LoggerTimeSpan as Ht, CompilerBuildResults as I, escapeHtml as Ii, ServiceWorkerConfig as In, generatePreamble as Ir, LightDomPatches as It, CompilerEventFsChange as J, ASSETS as Ji, TranspileResults as Jn, getSourceMappingUrlForEndOfFile as Jr, OptimizeJsOutput as Jt, CompilerEventFileDelete as K, formatLazyBundleRuntimeMeta as Ki, TranspileOnlyResults as Kn, readPackageJson as Kr, OptimizeCssOutput as Kt, CompilerBuildStart as L, normalizeDiagnostics as Li, SitemapXmpOpts as Ln, getTextDocs as Lr, LoadConfigInit as Lt, CliInitOptions as M, catchError as Mi, RobotsTxtOpts as Mn, validateComponentTag as Mr, HydrateFactoryOptions as Mt, CompileScriptMinifyOptions as N, hasError as Ni, RobotsTxtResults as Nn, ParsePackageJsonResult as Nr, HydratedFlag as Nt, BuildOnEvents as O, XLINK_NS as Oa, TASK_CANCELED_MSG as Oi, PrerenderStartOptions as On, StyleDoc as Or, HmrGlobalStyleUpdate as Ot, CompileTarget as P, hasWarning as Pi, RolldownConfig as Pn, addDocBlock as Pr, LOG_LEVELS as Pt, CompilerFileWatcherEvent as Q, COLLECTION_MANIFEST_FILE_NAME as Qi, WatcherCloseResults as Qn, FilterComponentsResult as Qr, OutputTargetBaseNext as Qt, CompilerDependency as R, splitLineBreaks as Ri, SitemapXmpResults as Rn, hasDependency as Rr, LoadConfigResults as Rt, AutoprefixerOptions as S, STYLE_EXT as Sa, isOutputTargetStats as Si, PluginCtx as Sn, JsonDocsSlot as Sr, DevServerConfig as St, BuildLog as T, VALID_CONFIG_OUTPUT_TARGETS as Ta, isValidConfigOutputTarget as Ti, PrerenderHydrateOptions as Tn, JsonDocsTypeLibrary as Tr, DocsReadmeCustomColumn as Tt, CompilerEventDirAdd as U, isRolldownError as Ui, StencilDocsConfig as Un, isTsxFile as Ur, ModeConfig as Ut, CompilerEventBuildNoChange as V, loadTypeScriptDiagnostics as Vi, StencilConfig as Vn, isJsxFile as Vr, LoggerLineUpdater as Vt, CompilerEventDirDelete as W, loadRolldownDiagnostics as Wi, SystemDetails as Wn, parsePackageJson as Wr, NodeResolveConfig as Wt, CompilerFileWatcher as X, COLLECTION as Xi, ValidatedConfig as Xn, rolldownToStencilSourceMap as Xr, OutputTargetAssets as Xt, CompilerEventName as Y, CMP_FLAGS as Yi, UnvalidatedConfig as Yn, getSourceMappingUrlLinker as Yr, OutputTarget as Yt, CompilerFileWatcherCallback as Z, COLLECTION_APP_DATA_FILE_NAME as Zi, ValidatedOutputTargetWww as Zn, result_d_exports as Zr, OutputTargetBase as Zt, PrintLine as _, NODE_TYPES as _a, isOutputTargetLoaderBundle as _i, OutputTargetWww as _n, JsonDocsListener as _r, CopyTask as _t, ComponentCompilerEvent as a, DOCS_CUSTOM_ELEMENTS_MANIFEST as aa, isOutputTargetCollection as ai, OutputTargetDocsCustom as an, RafCallback as ar, CompilerSystemRealpathResults as at, SsrResults as b, STANDALONE as ba, isOutputTargetSsrWasm as bi, PlatformPath as bn, JsonDocsPart as br, CustomElementsExportBehaviorOptions as bt, ComponentCompilerMethod as c, DOCS_VSCODE as ca, isOutputTargetDistLazy as ci, OutputTargetDocsReadme as cn, TagTransformer as cr, CompilerSystemRemoveFileResults as ct, ComponentCompilerTypeReferences as d, GLOBAL_STYLE as da, isOutputTargetDocsCustom as di, OutputTargetLoaderBundle as dn, JsonDocMethodParameter as dr, CompilerSystemWriteFileResults as dt, CUSTOM as ea, filterExcludedComponents as ei, OutputTargetCollection as en, WorkerOptions as er, CompilerRequest as et, ComponentGlobalStyle as f, HOST_FLAGS as fa, isOutputTargetDocsCustomElementsManifest as fi, OutputTargetSsr as fn, JsonDocs as fr, CompilerWatcher as ft, PrerenderUrlResults as g, MEMBER_FLAGS as ga, isOutputTargetGlobalStyle as gi, OutputTargetTypes as gn, JsonDocsEvent as gr, CopyResults as gt, PackageJsonData as h, LOADER_BUNDLE as ha, isOutputTargetDocsVscode as hi, OutputTargetStats as hn, JsonDocsDependencyGraph as hr, ConfigCompat as ht, CompilerWorkerContext as i, DOCS_CUSTOM as ia, isOutputTargetAssets as ii, OutputTargetDocsAgentSkill as in, MixedInCtor as ir, CompilerSystemCreateDirectoryResults as it, BuildResultsComponentGraph as j, buildWarn as ji, ResolveModuleOptions as jn, validateComponentModes as jr, HydrateDocumentOptions as jt, BuildOutput as k, buildError as ki, ResolveModuleIdOptions as kn, FsWriteResults as kr, HmrStyleUpdate as kt, ComponentCompilerProperty as l, EVENT_FLAGS as la, isOutputTargetDocs as li, OutputTargetDocsVscode as ln, UserBuildConditionals as lr, CompilerSystemRenameResults as lt, LazyBundlesRuntimeData as m, LISTENER_FLAGS as ma, isOutputTargetDocsReadme as mi, OutputTargetStandalone as mn, JsonDocsCustomState as mr, ConfigBundle as mt, ChildType as n, DIST_LAZY as na, getComponentsDtsTypesFilePath as ni, OutputTargetCustom as nn, ErrorHandler as nr, CompilerSystem as nt, ComponentCompilerListener as o, DOCS_JSON as oa, isOutputTargetCopy as oi, OutputTargetDocsCustomElementsManifest as on, ReactiveControllerHostInterface as or, CompilerSystemRemoveDirectoryOptions as ot, HostElement as p, HTML_NS as pa, isOutputTargetDocsJson as pi, OutputTargetSsrWasm as pn, JsonDocsComponent as pr, Config as pt, CompilerEventFileUpdate as q, stringifyRuntimeData as qi, TranspileOptions as qn, getInlineSourceMappingUrlLinker as qr, OptimizeJsInput as qt, CompilerCtx as r, DOCS_AGENT_SKILL as ra, getComponentsFromModules as ri, OutputTargetDistLazy as rn, FunctionalComponent as rr, CompilerSystemCreateDirectoryOptions as rt, ComponentCompilerMeta as s, DOCS_README as sa, isOutputTargetCustom as si, OutputTargetDocsJson as sn, ResolutionHandler as sr, CompilerSystemRemoveDirectoryResults as st, BuildCtx as t, DEFAULT_STYLE_MODE as ta, getComponentsDtsSrcFilePath as ti, OutputTargetCopy as tn, ComponentInterface as tr, CompilerRequestResponse as tt, ComponentCompilerState as u, GENERATED_DTS as ua, isOutputTargetDocsAgentSkill as ui, OutputTargetGlobalStyle as un, VNode as ur, CompilerSystemRenamedPath as ut, PropsType as v, SSR as va, isOutputTargetServerRenderer as vi, PageReloadStrategy as vn, JsonDocsMethod as vr, Credentials as vt, BuildEvents as w, TYPES as wa, isOutputTargetWww as wi, PrerenderConfig as wn, JsonDocsTag as wr, Diagnostic$1 as wt, WorkerMsgHandler as x, STATS as xa, isOutputTargetStandalone as xi, Plugin$1 as xn, JsonDocsProp as xr, DevServer as xt, RuntimeRef as y, SSR_WASM as ya, isOutputTargetSsr as yi, ParsedPath as yn, JsonDocsMethodReturn as yr, CustomElementsExportBehavior as yt, CompilerEventBuildFinish as z, augmentDiagnosticWithNode as zi, SsrDocumentOptions as zn, isDtsFile as zr, LogLevel as zt };
@@ -1,4 +1,4 @@
1
- import { ar as RafCallback, cr as TagTransformer, lr as UserBuildConditionals, n as ChildType, nr as ErrorHandler, p as HostElement, rr as FunctionalComponent, sr as ResolutionHandler, ur as VNode, v as PropsType, y as RuntimeRef } from "./index-m_QF4nMv.mjs";
1
+ import { ar as RafCallback, cr as TagTransformer, lr as UserBuildConditionals, n as ChildType, nr as ErrorHandler, p as HostElement, rr as FunctionalComponent, sr as ResolutionHandler, ur as VNode, v as PropsType, y as RuntimeRef } from "./index-B0NfYeIA.mjs";
2
2
  //#region src/client/client-build.d.ts
3
3
  /**
4
4
  * `isDev` / `isTesting` are getters, not copies: the transpile path (e.g. `@stencil/unplugin`)
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-DIvBaMnB.mjs";
1
+ import { C as Build, S as setErrorHandler, _ as getAssetPath, a as transformTag, b as writeTask, c as Mixin, d as Host, f as h, g as getShadowRoot, h as getElement, i as setTagTransformer, l as getMode, m as getRenderingRef, o as render, p as forceUpdate, s as ReactiveControllerHost, u as setMode, v as setAssetPath, x as setPlatformHelpers, y as readTask } from "./client-UbH-XkYu.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  //#region src/client/client-decorators.ts
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { n as jsxDEV, r as jsxs, t as jsx } from "./client-DIvBaMnB.mjs";
1
+ import { n as jsxDEV, r as jsxs, t as jsx } from "./client-UbH-XkYu.mjs";
2
2
  import { t as Fragment } from "./fragment-Di1hWOC8.mjs";
3
3
  export { Fragment, jsx, jsxDEV, jsxs };
@@ -1,7 +1,7 @@
1
1
  import { n as __require } from "./rolldown-runtime-BhDjJH2R.mjs";
2
- import "./client-DIvBaMnB.mjs";
2
+ import "./client-UbH-XkYu.mjs";
3
3
  import { c as isFunction, f as isString, m as noop, r as flatOne } from "./helpers-Cpp3qc3u.mjs";
4
- import { $ as catchError, K as normalizePath, X as buildError, Y as TASK_CANCELED_MSG, nt as shouldIgnoreError, rt as isGlob } from "./util-IKfWWLJo.mjs";
4
+ import { X as TASK_CANCELED_MSG, Z as buildError, et as catchError, it as isGlob, q as normalizePath, rt as shouldIgnoreError } from "./util-C-H1H84W.mjs";
5
5
  import fs from "node:fs";
6
6
  import nodePath from "node:path";
7
7
  import { pathToFileURL } from "node:url";
@@ -2039,6 +2039,7 @@ let hostTagName;
2039
2039
  let hostRegistry;
2040
2040
  let useNativeShadowDom = false;
2041
2041
  let checkSlotFallbackVisibility = false;
2042
+ /** Whether the current render has slotted content to relocate. Set at the start of each render. */
2042
2043
  let checkSlotRelocate = false;
2043
2044
  let isSvgMode = false;
2044
2045
  /**
@@ -2598,6 +2599,7 @@ const flushQueuedRefCallbacks = () => {
2598
2599
  */
2599
2600
  const insertBefore = (parent, newNode, reference, isInitialLoad) => {
2600
2601
  if (BUILD.slotRelocation) {
2602
+ if (parent?.["s-cr"]) checkSlotRelocate = true;
2601
2603
  if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2602
2604
  else if (typeof newNode["s-sn"] === "string") {
2603
2605
  const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
@@ -2700,6 +2702,7 @@ render() {
2700
2702
  if (BUILD.slotRelocation) {
2701
2703
  contentRef = hostElm["s-cr"];
2702
2704
  checkSlotFallbackVisibility = false;
2705
+ checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
2703
2706
  }
2704
2707
  patch(oldVNode, rootVnode, isInitialLoad);
2705
2708
  if (BUILD.slotRelocation) {
@@ -2769,7 +2772,7 @@ render() {
2769
2772
  nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
2770
2773
  }
2771
2774
  }
2772
- if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2775
+ if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2773
2776
  const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
2774
2777
  for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
2775
2778
  if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
@@ -3463,7 +3466,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3463
3466
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
3464
3467
  const node = childRenderNode.$elm$;
3465
3468
  if (!shadowRoot) {
3466
- node["s-hn"] = transformTag(tagName).toUpperCase();
3469
+ if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
3467
3470
  if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
3468
3471
  } else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
3469
3472
  const cmpMeta = getHostRef(childRenderNode.$elm$);
@@ -3513,11 +3516,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3513
3516
  const siSlot = slottedItem.slot;
3514
3517
  if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
3515
3518
  if (!hostEle.shadowRoot || !shadowRoot) {
3516
- if (!siSlot["s-cr"]) {
3517
- siSlot["s-cr"] = hostEle["s-cr"];
3518
- if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
3519
- else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
3520
- }
3519
+ if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
3521
3520
  addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
3522
3521
  if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
3523
3522
  if (BUILD.lightDomPatches || BUILD.slotChildNodes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
@@ -2033,6 +2033,7 @@ let hostTagName;
2033
2033
  let hostRegistry;
2034
2034
  let useNativeShadowDom = false;
2035
2035
  let checkSlotFallbackVisibility = false;
2036
+ /** Whether the current render has slotted content to relocate. Set at the start of each render. */
2036
2037
  let checkSlotRelocate = false;
2037
2038
  let isSvgMode = false;
2038
2039
  /**
@@ -2592,6 +2593,7 @@ const flushQueuedRefCallbacks = () => {
2592
2593
  */
2593
2594
  const insertBefore = (parent, newNode, reference, isInitialLoad) => {
2594
2595
  if (BUILD$1.slotRelocation) {
2596
+ if (parent?.["s-cr"]) checkSlotRelocate = true;
2595
2597
  if (BUILD$1.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2596
2598
  else if (typeof newNode["s-sn"] === "string") {
2597
2599
  const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
@@ -2694,6 +2696,7 @@ render() {
2694
2696
  if (BUILD$1.slotRelocation) {
2695
2697
  contentRef = hostElm["s-cr"];
2696
2698
  checkSlotFallbackVisibility = false;
2699
+ checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
2697
2700
  }
2698
2701
  patch(oldVNode, rootVnode, isInitialLoad);
2699
2702
  if (BUILD$1.slotRelocation) {
@@ -2763,7 +2766,7 @@ render() {
2763
2766
  nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
2764
2767
  }
2765
2768
  }
2766
- if (BUILD$1.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2769
+ if (BUILD$1.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2767
2770
  const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
2768
2771
  for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
2769
2772
  if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
@@ -3457,7 +3460,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3457
3460
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
3458
3461
  const node = childRenderNode.$elm$;
3459
3462
  if (!shadowRoot) {
3460
- node["s-hn"] = transformTag(tagName).toUpperCase();
3463
+ if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
3461
3464
  if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
3462
3465
  } else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
3463
3466
  const cmpMeta = getHostRef(childRenderNode.$elm$);
@@ -3507,11 +3510,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3507
3510
  const siSlot = slottedItem.slot;
3508
3511
  if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
3509
3512
  if (!hostEle.shadowRoot || !shadowRoot) {
3510
- if (!siSlot["s-cr"]) {
3511
- siSlot["s-cr"] = hostEle["s-cr"];
3512
- if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
3513
- else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
3514
- }
3513
+ if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
3515
3514
  addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
3516
3515
  if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
3517
3516
  if (BUILD$1.lightDomPatches || BUILD$1.slotChildNodes || BUILD$1.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
@@ -1905,6 +1905,7 @@ let hostTagName;
1905
1905
  let hostRegistry;
1906
1906
  let useNativeShadowDom = false;
1907
1907
  let checkSlotFallbackVisibility = false;
1908
+ /** Whether the current render has slotted content to relocate. Set at the start of each render. */
1908
1909
  let checkSlotRelocate = false;
1909
1910
  let isSvgMode = false;
1910
1911
  /**
@@ -2464,6 +2465,7 @@ const flushQueuedRefCallbacks = () => {
2464
2465
  */
2465
2466
  const insertBefore = (parent, newNode, reference, isInitialLoad) => {
2466
2467
  if (BUILD.slotRelocation) {
2468
+ if (parent?.["s-cr"]) checkSlotRelocate = true;
2467
2469
  if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2468
2470
  else if (typeof newNode["s-sn"] === "string") {
2469
2471
  const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
@@ -2566,6 +2568,7 @@ render() {
2566
2568
  if (BUILD.slotRelocation) {
2567
2569
  contentRef = hostElm["s-cr"];
2568
2570
  checkSlotFallbackVisibility = false;
2571
+ checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
2569
2572
  }
2570
2573
  patch(oldVNode, rootVnode, isInitialLoad);
2571
2574
  if (BUILD.slotRelocation) {
@@ -2635,7 +2638,7 @@ render() {
2635
2638
  nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
2636
2639
  }
2637
2640
  }
2638
- if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2641
+ if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2639
2642
  const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
2640
2643
  for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
2641
2644
  if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
@@ -3329,7 +3332,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3329
3332
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
3330
3333
  const node = childRenderNode.$elm$;
3331
3334
  if (!shadowRoot) {
3332
- node["s-hn"] = transformTag(tagName).toUpperCase();
3335
+ if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
3333
3336
  if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
3334
3337
  } else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
3335
3338
  const cmpMeta = getHostRef(childRenderNode.$elm$);
@@ -3379,11 +3382,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3379
3382
  const siSlot = slottedItem.slot;
3380
3383
  if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
3381
3384
  if (!hostEle.shadowRoot || !shadowRoot) {
3382
- if (!siSlot["s-cr"]) {
3383
- siSlot["s-cr"] = hostEle["s-cr"];
3384
- if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
3385
- else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
3386
- }
3385
+ if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
3387
3386
  addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
3388
3387
  if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
3389
3388
  if (BUILD.lightDomPatches || BUILD.slotChildNodes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
@@ -1669,6 +1669,7 @@ let hostTagName;
1669
1669
  let hostRegistry;
1670
1670
  let useNativeShadowDom = false;
1671
1671
  let checkSlotFallbackVisibility = false;
1672
+ /** Whether the current render has slotted content to relocate. Set at the start of each render. */
1672
1673
  let checkSlotRelocate = false;
1673
1674
  let isSvgMode = false;
1674
1675
  /**
@@ -2228,6 +2229,7 @@ const flushQueuedRefCallbacks = () => {
2228
2229
  */
2229
2230
  const insertBefore = (parent, newNode, reference, isInitialLoad) => {
2230
2231
  if (BUILD$1.slotRelocation) {
2232
+ if (parent?.["s-cr"]) checkSlotRelocate = true;
2231
2233
  if (BUILD$1.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2232
2234
  else if (typeof newNode["s-sn"] === "string") {
2233
2235
  const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
@@ -2330,6 +2332,7 @@ render() {
2330
2332
  if (BUILD$1.slotRelocation) {
2331
2333
  contentRef = hostElm["s-cr"];
2332
2334
  checkSlotFallbackVisibility = false;
2335
+ checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
2333
2336
  }
2334
2337
  patch(oldVNode, rootVnode, isInitialLoad);
2335
2338
  if (BUILD$1.slotRelocation) {
@@ -2399,7 +2402,7 @@ render() {
2399
2402
  nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
2400
2403
  }
2401
2404
  }
2402
- if (BUILD$1.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2405
+ if (BUILD$1.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
2403
2406
  const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
2404
2407
  for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
2405
2408
  if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
@@ -3091,7 +3094,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3091
3094
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
3092
3095
  const node = childRenderNode.$elm$;
3093
3096
  if (!shadowRoot) {
3094
- node["s-hn"] = transformTag(tagName).toUpperCase();
3097
+ if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
3095
3098
  if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
3096
3099
  } else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
3097
3100
  const cmpMeta = getHostRef(childRenderNode.$elm$);
@@ -3141,11 +3144,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3141
3144
  const siSlot = slottedItem.slot;
3142
3145
  if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
3143
3146
  if (!hostEle.shadowRoot || !shadowRoot) {
3144
- if (!siSlot["s-cr"]) {
3145
- siSlot["s-cr"] = hostEle["s-cr"];
3146
- if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
3147
- else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
3148
- }
3147
+ if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
3149
3148
  addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
3150
3149
  if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
3151
3150
  if (BUILD$1.lightDomPatches || BUILD$1.slotChildNodes || BUILD$1.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
@@ -302,7 +302,12 @@ declare function serializeDocumentToString(doc: Document, opts: SsrFactoryOption
302
302
  //#endregion
303
303
  //#region src/server/runner/window-initialize.d.ts
304
304
  /**
305
- * Reset the docData counters. Useful for testing to ensure deterministic IDs.
305
+ * Restart the hydration ids used by fragment renders (`fullDocument: false`).
306
+ *
307
+ * Optional - ids only need to be unique within a page, and they are without it. Call it once at
308
+ * the start of each request that renders fragments, to get the same output for the same input.
309
+ * Never call it between fragments that end up in the same page, or their ids will collide.
310
+ * Full-document renders always start from 1 and aren't affected.
306
311
  */
307
312
  declare function resetSsrDocData(): void;
308
313
  //#endregion
@@ -13401,19 +13401,31 @@ function runtimeLog(pathname, type, msgs) {
13401
13401
  }
13402
13402
  //#endregion
13403
13403
  //#region src/server/runner/window-initialize.ts
13404
- /**
13405
- * Maintain a unique `docData` object across multiple hydration runs
13406
- * to ensure that host ids remain unique.
13407
- */
13408
- const docData = {
13404
+ const createDocData = () => ({
13409
13405
  hostIds: 0,
13410
13406
  rootLevelIds: 0,
13411
13407
  staticComponents: /* @__PURE__ */ new Set()
13412
- };
13408
+ });
13413
13409
  /**
13414
- * Reset the docData counters. Useful for testing to ensure deterministic IDs.
13410
+ * Shared across fragment renders (`fullDocument: false`). Several fragments usually end up in
13411
+ * one page, so their hydration ids must not collide - this keeps counting across calls until
13412
+ * `resetSsrDocData()` is called.
13413
+ *
13414
+ * Full-document renders don't use it: a document is a whole page, so each gets its own
13415
+ * `docData` and its ids always start from 1. That keeps the output deterministic without any
13416
+ * reset, and stays correct when several renders run concurrently.
13417
+ */
13418
+ const fragmentDocData = createDocData();
13419
+ /**
13420
+ * Restart the hydration ids used by fragment renders (`fullDocument: false`).
13421
+ *
13422
+ * Optional - ids only need to be unique within a page, and they are without it. Call it once at
13423
+ * the start of each request that renders fragments, to get the same output for the same input.
13424
+ * Never call it between fragments that end up in the same page, or their ids will collide.
13425
+ * Full-document renders always start from 1 and aren't affected.
13415
13426
  */
13416
13427
  function resetSsrDocData() {
13428
+ const docData = fragmentDocData;
13417
13429
  docData.hostIds = 0;
13418
13430
  docData.rootLevelIds = 0;
13419
13431
  docData.staticComponents.clear();
@@ -13445,7 +13457,7 @@ function initializeWindow(win, doc, opts, results) {
13445
13457
  } catch {}
13446
13458
  if (opts.constrainTimeouts) constrainTimeouts(win);
13447
13459
  runtimeLogging(win, opts, results);
13448
- doc[STENCIL_DOC_DATA] = docData;
13460
+ doc[STENCIL_DOC_DATA] = opts.fullDocument === false ? fragmentDocData : createDocData();
13449
13461
  return win;
13450
13462
  }
13451
13463
  //#endregion
@@ -13606,7 +13618,10 @@ function finalizeSsr(win, doc, opts, results) {
13606
13618
  renderCatchError(results, e);
13607
13619
  }
13608
13620
  if (opts.clientSsrAnnotations) doc.documentElement.classList.add("hydrated");
13609
- if (opts.serializeToHtml) results.html = serializeDocumentToString(doc, opts);
13621
+ if (opts.serializeToHtml) {
13622
+ if (opts.fullDocument === false) moveComponentStylesIntoBody(doc);
13623
+ results.html = serializeDocumentToString(doc, opts);
13624
+ }
13610
13625
  } catch (e) {
13611
13626
  renderCatchError(results, e);
13612
13627
  }
@@ -13638,6 +13653,23 @@ function serializeDocumentToString(doc, opts) {
13638
13653
  fullDocument: opts.fullDocument
13639
13654
  });
13640
13655
  }
13656
+ /**
13657
+ * A fragment (`fullDocument: false`) serializes only the contents of `<body>`, but the styles of
13658
+ * scoped components - and of shadow components rendered with `serializeShadowRoot: 'scoped'` -
13659
+ * are written to `<head>`. Move them to the start of `<body>` so the fragment carries the styles
13660
+ * its components need, instead of rendering unstyled until the client loads.
13661
+ *
13662
+ * Stateless: every fragment includes all the styles it uses, so the same styles can appear in
13663
+ * several fragments on one page. On the client, a style found outside `<head>` isn't reused, so
13664
+ * the runtime adds its own copy to `<head>` when the component loads - harmless duplication.
13665
+ * @param doc the rendered document
13666
+ */
13667
+ function moveComponentStylesIntoBody(doc) {
13668
+ if (!doc.head || !doc.body) return;
13669
+ const styles = Array.from(doc.head.querySelectorAll(`style[${HYDRATED_STYLE_ID}]`));
13670
+ const firstChild = doc.body.firstChild;
13671
+ for (const style of styles) doc.body.insertBefore(style, firstChild);
13672
+ }
13641
13673
  function isValidDocument(doc) {
13642
13674
  return doc != null && doc.nodeType === 9 && doc.documentElement != null && doc.documentElement.nodeType === 1 && doc.body != null && doc.body.nodeType === 1;
13643
13675
  }
@@ -1,4 +1,4 @@
1
- import { Bt as Logger, nt as CompilerSystem } from "../../index-m_QF4nMv.mjs";
1
+ import { Bt as Logger, nt as CompilerSystem } from "../../index-B0NfYeIA.mjs";
2
2
  //#region src/sys/node/logger/index.d.ts
3
3
  /**
4
4
  * Create a logger to run in a Node environment
@@ -1,2 +1,2 @@
1
- import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-D-21Ykxi.mjs";
1
+ import { n as setupNodeProcess, r as createNodeLogger, t as createNodeSys } from "../../node-eg7pofz5.mjs";
2
2
  export { createNodeLogger, createNodeSys, setupNodeProcess };
@@ -1,5 +1,5 @@
1
- import { l as createWorkerMessageHandler } from "../../compiler-BZEeAANv.mjs";
2
- import { t as createNodeSys } from "../../node-D-21Ykxi.mjs";
1
+ import { l as createWorkerMessageHandler } from "../../compiler-CVL510L-.mjs";
2
+ import { t as createNodeSys } from "../../node-eg7pofz5.mjs";
3
3
  //#region src/sys/node/node-worker-thread.ts
4
4
  /**
5
5
  * Initialize a worker thread, setting up various machinery for managing
@@ -33,7 +33,7 @@ import "@rollup/pluginutils";
33
33
  import { createHash } from "crypto";
34
34
  import { afterAll, vi } from "vitest";
35
35
  //#region src/version.ts
36
- const version = "5.0.0-beta.32";
36
+ const version = "5.0.0-beta.34";
37
37
  const MEMBER_FLAGS = {
38
38
  String: 1,
39
39
  Number: 2,
@@ -2424,6 +2424,7 @@ let hostTagName;
2424
2424
  let hostRegistry;
2425
2425
  let useNativeShadowDom = false;
2426
2426
  let checkSlotFallbackVisibility = false;
2427
+ /** Whether the current render has slotted content to relocate. Set at the start of each render. */
2427
2428
  let checkSlotRelocate = false;
2428
2429
  let isSvgMode = false;
2429
2430
  /**
@@ -2983,6 +2984,7 @@ const flushQueuedRefCallbacks = () => {
2983
2984
  */
2984
2985
  const insertBefore = (parent, newNode, reference, isInitialLoad) => {
2985
2986
  if (BUILD.slotRelocation) {
2987
+ if (parent?.["s-cr"]) checkSlotRelocate = true;
2986
2988
  if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2987
2989
  else if (typeof newNode["s-sn"] === "string") {
2988
2990
  const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
@@ -3085,6 +3087,7 @@ render() {
3085
3087
  if (BUILD.slotRelocation) {
3086
3088
  contentRef = hostElm["s-cr"];
3087
3089
  checkSlotFallbackVisibility = false;
3090
+ checkSlotRelocate = !useNativeShadowDom && !!(cmpMeta.$flags$ & CMP_FLAGS.hasSlot);
3088
3091
  }
3089
3092
  patch(oldVNode, rootVnode, isInitialLoad);
3090
3093
  if (BUILD.slotRelocation) {
@@ -3154,7 +3157,7 @@ render() {
3154
3157
  nextTick(() => slotNodes.forEach(dispatchSlotChangeEvent));
3155
3158
  }
3156
3159
  }
3157
- if (BUILD.slotRelocation && !useNativeShadowDom && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
3160
+ if (BUILD.slotRelocation && !(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && hostElm["s-cr"]) {
3158
3161
  const children = rootVnode.$elm$.__childNodes || rootVnode.$elm$.childNodes;
3159
3162
  for (const childNode of children) if (childNode["s-hn"] !== hostTagName && childNode["s-sh"] !== hostTagName) {
3160
3163
  if (isInitialLoad && childNode["s-ih"] == null) childNode["s-ih"] = childNode.hidden ?? false;
@@ -3848,7 +3851,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3848
3851
  const orgLocationNode = plt.$orgLocNodes$.get(orgLocationId);
3849
3852
  const node = childRenderNode.$elm$;
3850
3853
  if (!shadowRoot) {
3851
- node["s-hn"] = transformTag(tagName).toUpperCase();
3854
+ if (childRenderNode.$hostId$ === hostId) node["s-hn"] = transformTag(tagName).toUpperCase();
3852
3855
  if (childRenderNode.$tag$ === "slot") node["s-cr"] = hostElm["s-cr"];
3853
3856
  } else if (childRenderNode.$tag$?.toString().includes("-") && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
3854
3857
  const cmpMeta = getHostRef(childRenderNode.$elm$);
@@ -3898,11 +3901,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
3898
3901
  const siSlot = slottedItem.slot;
3899
3902
  if (hostEle.shadowRoot && siNode.parentElement !== hostEle) hostEle.insertBefore(siNode, slotGroup[snGroupIdx - 1]?.node?.nextSibling);
3900
3903
  if (!hostEle.shadowRoot || !shadowRoot) {
3901
- if (!siSlot["s-cr"]) {
3902
- siSlot["s-cr"] = hostEle["s-cr"];
3903
- if (!siSlot["s-cr"] && hostEle.shadowRoot) siSlot["s-cr"] = hostEle;
3904
- else siSlot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
3905
- }
3904
+ if (!siSlot["s-cr"]) siSlot["s-cr"] = hostEle["s-cr"] || (hostEle.shadowRoot ? hostEle : (hostEle.__childNodes || hostEle.childNodes)[0]);
3906
3905
  addSlotRelocateNode(siNode, siSlot, false, siNode["s-oo"] || currentPos);
3907
3906
  if (siNode.parentElement?.shadowRoot && siNode["getAttribute"] && siNode.getAttribute("slot")) siNode.removeAttribute("slot");
3908
3907
  if (BUILD.lightDomPatches || BUILD.slotChildNodes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSsrSlottedNode(siNode);
@@ -476,6 +476,13 @@ const isOutputTargetLoaderBundle = (o) => o.type === LOADER_BUNDLE;
476
476
  const isOutputTargetStandalone = (o) => o.type === STANDALONE;
477
477
  const isOutputTargetSsr = (o) => o.type === "ssr";
478
478
  const isOutputTargetSsrWasm = (o) => o.type === SSR_WASM;
479
+ /**
480
+ * Whether an output target renders components on the server (`ssr` or `ssr-wasm`).
481
+ * When one is present, client builds must be able to hydrate server-rendered markup.
482
+ * @param o the output target to check
483
+ * @returns true if the output target server-renders components
484
+ */
485
+ const isOutputTargetServerRenderer = (o) => isOutputTargetSsr(o) || isOutputTargetSsrWasm(o);
479
486
  const isOutputTargetCollection = (o) => o.type === COLLECTION;
480
487
  const isOutputTargetTypes = (o) => o.type === TYPES;
481
488
  const isOutputTargetGlobalStyle = (o) => o.type === GLOBAL_STYLE;
@@ -721,4 +728,4 @@ const SKIP_DEPS = ["@stencil/core"];
721
728
  */
722
729
  const readOnlyArrayHasStringMember = (readOnlyArray, maybeMember) => readOnlyArray.includes(maybeMember);
723
730
  //#endregion
724
- export { catchError as $, isOutputTargetDocsVscode as A, relativeImport as B, isOutputTargetDistLazy as C, isOutputTargetDocsCustomElementsManifest as D, isOutputTargetDocsCustom as E, isOutputTargetStandalone as F, normalizeFsPathQuery as G, join$1 as H, isOutputTargetStats as I, resolve$1 as J, normalizePath as K, isOutputTargetTypes as L, isOutputTargetLoaderBundle as M, isOutputTargetSsr as N, isOutputTargetDocsJson as O, isOutputTargetSsrWasm as P, buildWarn as Q, isOutputTargetWww as R, isOutputTargetCustom as S, isOutputTargetDocsAgentSkill as T, normalize as U, shouldExcludeComponent as V, normalizeFsPath as W, buildError as X, TASK_CANCELED_MSG as Y, buildJsonFileError as Z, getComponentsDtsTypesFilePath as _, hasDependency as a, isOutputTargetCollection as b, isJsxFile as c, parsePackageJson as d, hasError as et, readOnlyArrayHasStringMember as f, getComponentsDtsSrcFilePath as g, filterExcludedComponents as h, getTextDocs as i, isOutputTargetGlobalStyle as j, isOutputTargetDocsReadme as k, isTsFile as l, filterActiveTargets as m, createJsVarName as n, shouldIgnoreError as nt, isDtsFile as o, readPackageJson as p, relative$1 as q, generatePreamble as r, isGlob as rt, isJsFile as s, addDocBlock as t, hasWarning as tt, isTsxFile as u, getComponentsFromModules as v, isOutputTargetDocs as w, isOutputTargetCopy as x, isOutputTargetAssets as y, isValidConfigOutputTarget as z };
731
+ export { buildWarn as $, isOutputTargetDocsVscode as A, isValidConfigOutputTarget as B, isOutputTargetDistLazy as C, isOutputTargetDocsCustomElementsManifest as D, isOutputTargetDocsCustom as E, isOutputTargetSsrWasm as F, normalizeFsPath as G, shouldExcludeComponent as H, isOutputTargetStandalone as I, relative$1 as J, normalizeFsPathQuery as K, isOutputTargetStats as L, isOutputTargetLoaderBundle as M, isOutputTargetServerRenderer as N, isOutputTargetDocsJson as O, isOutputTargetSsr as P, buildJsonFileError as Q, isOutputTargetTypes as R, isOutputTargetCustom as S, isOutputTargetDocsAgentSkill as T, join$1 as U, relativeImport as V, normalize as W, TASK_CANCELED_MSG as X, resolve$1 as Y, buildError as Z, getComponentsDtsTypesFilePath as _, hasDependency as a, isOutputTargetCollection as b, isJsxFile as c, parsePackageJson as d, catchError as et, readOnlyArrayHasStringMember as f, getComponentsDtsSrcFilePath as g, filterExcludedComponents as h, getTextDocs as i, isGlob as it, isOutputTargetGlobalStyle as j, isOutputTargetDocsReadme as k, isTsFile as l, filterActiveTargets as m, createJsVarName as n, hasWarning as nt, isDtsFile as o, readPackageJson as p, normalizePath as q, generatePreamble as r, shouldIgnoreError as rt, isJsFile as s, addDocBlock as t, hasError as tt, isTsxFile as u, getComponentsFromModules as v, isOutputTargetDocs as w, isOutputTargetCopy as x, isOutputTargetAssets as y, isOutputTargetWww as z };
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BhDjJH2R.mjs";
2
2
  import { C as CMP_FLAGS, H as LISTENER_FLAGS, W as MEMBER_FLAGS, et as WATCH_FLAGS, f as isString, l as isIterable, y as toTitleCase } from "./helpers-Cpp3qc3u.mjs";
3
- import { K as normalizePath, Q as buildWarn } from "./util-IKfWWLJo.mjs";
3
+ import { $ as buildWarn, q as normalizePath } from "./util-C-H1H84W.mjs";
4
4
  //#region src/utils/regular-expression.ts
5
5
  /**
6
6
  * Utility function that will escape all regular expression special characters in a string.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-beta.32",
3
+ "version": "5.0.0-beta.34",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -126,9 +126,9 @@
126
126
  "terser": "^5.50.0",
127
127
  "tinyglobby": "^0.2.17",
128
128
  "typescript": ">5.0.0 <7.0.0",
129
- "@stencil/cli": "5.0.0-beta.32",
130
- "@stencil/dev-server": "5.0.0-beta.32",
131
- "@stencil/mock-doc": "5.0.0-beta.32"
129
+ "@stencil/cli": "5.0.0-beta.34",
130
+ "@stencil/dev-server": "5.0.0-beta.34",
131
+ "@stencil/mock-doc": "5.0.0-beta.34"
132
132
  },
133
133
  "devDependencies": {
134
134
  "@ionic/prettier-config": "^4.0.0",