@rarui/components 1.0.0-rc.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/rarui-components.cjs.js +1 -1
  3. package/dist/collection/input/Button/src/Button.js +16 -20
  4. package/dist/collection/input/Button/src/Button.js.map +1 -1
  5. package/dist/collection/navigation/Tabs/Root/src/Root.js +12 -15
  6. package/dist/collection/navigation/Tabs/Root/src/Root.js.map +1 -1
  7. package/dist/esm/loader.js +1 -1
  8. package/dist/esm/rarui-components.js +1 -1
  9. package/dist/rarui-components/rarui-components.esm.js +1 -1
  10. package/dist/types/components.d.ts +0 -2
  11. package/package.json +3 -4
  12. package/dist/collection/exhibition/Text/dist/cjs/app-globals-3a1e7e63.js +0 -7
  13. package/dist/collection/exhibition/Text/dist/cjs/index-3ec8ced4.js +0 -1332
  14. package/dist/collection/exhibition/Text/dist/cjs/index.cjs.js +0 -4
  15. package/dist/collection/exhibition/Text/dist/cjs/loader.cjs.js +0 -17
  16. package/dist/collection/exhibition/Text/dist/cjs/rarui-text.cjs.entry.js +0 -61
  17. package/dist/collection/exhibition/Text/dist/cjs/rarui-text.cjs.js +0 -27
  18. package/dist/collection/exhibition/Text/dist/collection/Text.js +0 -66
  19. package/dist/collection/exhibition/Text/dist/collection/index.js +0 -2
  20. package/dist/collection/exhibition/Text/dist/esm/app-globals-0f993ce5.js +0 -5
  21. package/dist/collection/exhibition/Text/dist/esm/index-1f85a271.js +0 -1305
  22. package/dist/collection/exhibition/Text/dist/esm/index.js +0 -3
  23. package/dist/collection/exhibition/Text/dist/esm/loader.js +0 -13
  24. package/dist/collection/exhibition/Text/dist/esm/rarui-text.entry.js +0 -57
  25. package/dist/collection/exhibition/Text/dist/esm/rarui-text.js +0 -22
  26. package/dist/collection/exhibition/Text/dist/index.cjs.js +0 -1
  27. package/dist/collection/exhibition/Text/dist/index.js +0 -1
  28. package/dist/collection/exhibition/Text/dist/loader/cdn.js +0 -1
  29. package/dist/collection/exhibition/Text/dist/loader/index.cjs.js +0 -1
  30. package/dist/collection/exhibition/Text/dist/loader/index.es2017.js +0 -1
  31. package/dist/collection/exhibition/Text/dist/loader/index.js +0 -2
  32. package/dist/collection/exhibition/Text/dist/rarui-text/index.esm.js +0 -2
  33. package/dist/collection/exhibition/Text/dist/rarui-text/p-8c86be47.js +0 -3
  34. package/dist/collection/exhibition/Text/dist/rarui-text/p-e1255160.js +0 -2
  35. package/dist/collection/exhibition/Text/dist/rarui-text/p-e76f1dd3.entry.js +0 -2
  36. package/dist/collection/exhibition/Text/dist/rarui-text/rarui-text.esm.js +0 -2
  37. package/dist/collection/exhibition/Title/dist/cjs/app-globals-3a1e7e63.js +0 -7
  38. package/dist/collection/exhibition/Title/dist/cjs/index-5520d5db.js +0 -1332
  39. package/dist/collection/exhibition/Title/dist/cjs/index.cjs.js +0 -4
  40. package/dist/collection/exhibition/Title/dist/cjs/loader.cjs.js +0 -17
  41. package/dist/collection/exhibition/Title/dist/cjs/rarui-title.cjs.entry.js +0 -61
  42. package/dist/collection/exhibition/Title/dist/cjs/rarui-title.cjs.js +0 -27
  43. package/dist/collection/exhibition/Title/dist/collection/Title.js +0 -66
  44. package/dist/collection/exhibition/Title/dist/collection/index.js +0 -2
  45. package/dist/collection/exhibition/Title/dist/esm/app-globals-0f993ce5.js +0 -5
  46. package/dist/collection/exhibition/Title/dist/esm/index-56b85c26.js +0 -1305
  47. package/dist/collection/exhibition/Title/dist/esm/index.js +0 -3
  48. package/dist/collection/exhibition/Title/dist/esm/loader.js +0 -13
  49. package/dist/collection/exhibition/Title/dist/esm/rarui-title.entry.js +0 -57
  50. package/dist/collection/exhibition/Title/dist/esm/rarui-title.js +0 -22
  51. package/dist/collection/exhibition/Title/dist/index.cjs.js +0 -1
  52. package/dist/collection/exhibition/Title/dist/index.js +0 -1
  53. package/dist/collection/exhibition/Title/dist/loader/cdn.js +0 -1
  54. package/dist/collection/exhibition/Title/dist/loader/index.cjs.js +0 -1
  55. package/dist/collection/exhibition/Title/dist/loader/index.es2017.js +0 -1
  56. package/dist/collection/exhibition/Title/dist/loader/index.js +0 -2
  57. package/dist/collection/exhibition/Title/dist/rarui-title/index.esm.js +0 -2
  58. package/dist/collection/exhibition/Title/dist/rarui-title/p-3c4134da.entry.js +0 -2
  59. package/dist/collection/exhibition/Title/dist/rarui-title/p-4a3ef014.js +0 -3
  60. package/dist/collection/exhibition/Title/dist/rarui-title/p-e1255160.js +0 -2
  61. package/dist/collection/exhibition/Title/dist/rarui-title/rarui-title.esm.js +0 -2
  62. package/dist/collection/input/Button/dist/cjs/app-globals-3a1e7e63.js +0 -7
  63. package/dist/collection/input/Button/dist/cjs/index-2f27cc5f.js +0 -1318
  64. package/dist/collection/input/Button/dist/cjs/index.cjs.js +0 -4
  65. package/dist/collection/input/Button/dist/cjs/loader.cjs.js +0 -17
  66. package/dist/collection/input/Button/dist/cjs/rarui-button.cjs.entry.js +0 -35
  67. package/dist/collection/input/Button/dist/cjs/rarui-button.cjs.js +0 -27
  68. package/dist/collection/input/Button/dist/collection/Button.js +0 -233
  69. package/dist/collection/input/Button/dist/collection/index.js +0 -2
  70. package/dist/collection/input/Button/dist/esm/app-globals-0f993ce5.js +0 -5
  71. package/dist/collection/input/Button/dist/esm/index-7434516d.js +0 -1291
  72. package/dist/collection/input/Button/dist/esm/index.js +0 -3
  73. package/dist/collection/input/Button/dist/esm/loader.js +0 -13
  74. package/dist/collection/input/Button/dist/esm/rarui-button.entry.js +0 -31
  75. package/dist/collection/input/Button/dist/esm/rarui-button.js +0 -22
  76. package/dist/collection/input/Button/dist/index.cjs.js +0 -1
  77. package/dist/collection/input/Button/dist/index.js +0 -1
  78. package/dist/collection/input/Button/dist/loader/cdn.js +0 -1
  79. package/dist/collection/input/Button/dist/loader/index.cjs.js +0 -1
  80. package/dist/collection/input/Button/dist/loader/index.es2017.js +0 -1
  81. package/dist/collection/input/Button/dist/loader/index.js +0 -2
  82. package/dist/collection/input/Button/dist/rarui-button/index.esm.js +0 -2
  83. package/dist/collection/input/Button/dist/rarui-button/p-c9d5c486.entry.js +0 -2
  84. package/dist/collection/input/Button/dist/rarui-button/p-de52cca4.js +0 -3
  85. package/dist/collection/input/Button/dist/rarui-button/p-e1255160.js +0 -2
  86. package/dist/collection/input/Button/dist/rarui-button/rarui-button.esm.js +0 -2
  87. package/dist/collection/layout/Box/dist/cjs/app-globals-3a1e7e63.js +0 -7
  88. package/dist/collection/layout/Box/dist/cjs/index-5fda0522.js +0 -1332
  89. package/dist/collection/layout/Box/dist/cjs/index.cjs.js +0 -4
  90. package/dist/collection/layout/Box/dist/cjs/loader.cjs.js +0 -17
  91. package/dist/collection/layout/Box/dist/cjs/rarui-box.cjs.entry.js +0 -54
  92. package/dist/collection/layout/Box/dist/cjs/rarui-box.cjs.js +0 -27
  93. package/dist/collection/layout/Box/dist/collection/Box.js +0 -42
  94. package/dist/collection/layout/Box/dist/collection/index.js +0 -2
  95. package/dist/collection/layout/Box/dist/esm/app-globals-0f993ce5.js +0 -5
  96. package/dist/collection/layout/Box/dist/esm/index-131cdfc1.js +0 -1305
  97. package/dist/collection/layout/Box/dist/esm/index.js +0 -3
  98. package/dist/collection/layout/Box/dist/esm/loader.js +0 -13
  99. package/dist/collection/layout/Box/dist/esm/rarui-box.entry.js +0 -50
  100. package/dist/collection/layout/Box/dist/esm/rarui-box.js +0 -22
  101. package/dist/collection/layout/Box/dist/index.cjs.js +0 -1
  102. package/dist/collection/layout/Box/dist/index.js +0 -1
  103. package/dist/collection/layout/Box/dist/loader/cdn.js +0 -1
  104. package/dist/collection/layout/Box/dist/loader/index.cjs.js +0 -1
  105. package/dist/collection/layout/Box/dist/loader/index.es2017.js +0 -1
  106. package/dist/collection/layout/Box/dist/loader/index.js +0 -2
  107. package/dist/collection/layout/Box/dist/rarui-box/index.esm.js +0 -2
  108. package/dist/collection/layout/Box/dist/rarui-box/p-17f6d8d5.entry.js +0 -2
  109. package/dist/collection/layout/Box/dist/rarui-box/p-6a233dc8.js +0 -3
  110. package/dist/collection/layout/Box/dist/rarui-box/p-e1255160.js +0 -2
  111. package/dist/collection/layout/Box/dist/rarui-box/rarui-box.esm.js +0 -2
  112. package/dist/collection/navigation/Tabs/Item/dist/cjs/app-globals-3a1e7e63.js +0 -7
  113. package/dist/collection/navigation/Tabs/Item/dist/cjs/index-962dfb5a.js +0 -1264
  114. package/dist/collection/navigation/Tabs/Item/dist/cjs/index.cjs.js +0 -4
  115. package/dist/collection/navigation/Tabs/Item/dist/cjs/loader.cjs.js +0 -17
  116. package/dist/collection/navigation/Tabs/Item/dist/cjs/rarui-tabs-item.cjs.entry.js +0 -20
  117. package/dist/collection/navigation/Tabs/Item/dist/cjs/rarui-tabs-item.cjs.js +0 -27
  118. package/dist/collection/navigation/Tabs/Item/dist/collection/Item.js +0 -34
  119. package/dist/collection/navigation/Tabs/Item/dist/collection/index.js +0 -2
  120. package/dist/collection/navigation/Tabs/Item/dist/esm/app-globals-0f993ce5.js +0 -5
  121. package/dist/collection/navigation/Tabs/Item/dist/esm/index-be92efca.js +0 -1237
  122. package/dist/collection/navigation/Tabs/Item/dist/esm/index.js +0 -3
  123. package/dist/collection/navigation/Tabs/Item/dist/esm/loader.js +0 -13
  124. package/dist/collection/navigation/Tabs/Item/dist/esm/rarui-tabs-item.entry.js +0 -16
  125. package/dist/collection/navigation/Tabs/Item/dist/esm/rarui-tabs-item.js +0 -22
  126. package/dist/collection/navigation/Tabs/Item/dist/index.cjs.js +0 -1
  127. package/dist/collection/navigation/Tabs/Item/dist/index.js +0 -1
  128. package/dist/collection/navigation/Tabs/Item/dist/loader/cdn.js +0 -1
  129. package/dist/collection/navigation/Tabs/Item/dist/loader/index.cjs.js +0 -1
  130. package/dist/collection/navigation/Tabs/Item/dist/loader/index.es2017.js +0 -1
  131. package/dist/collection/navigation/Tabs/Item/dist/loader/index.js +0 -2
  132. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/index.esm.js +0 -2
  133. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/p-3d591146.entry.js +0 -2
  134. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/p-d0520efc.js +0 -3
  135. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/p-e1255160.js +0 -2
  136. package/dist/collection/navigation/Tabs/Item/dist/rarui-tabs-item/rarui-tabs-item.esm.js +0 -2
  137. package/dist/collection/navigation/Tabs/Root/dist/cjs/app-globals-3a1e7e63.js +0 -7
  138. package/dist/collection/navigation/Tabs/Root/dist/cjs/index-c1cf5e11.js +0 -1074
  139. package/dist/collection/navigation/Tabs/Root/dist/cjs/index.cjs.js +0 -4
  140. package/dist/collection/navigation/Tabs/Root/dist/cjs/loader.cjs.js +0 -17
  141. package/dist/collection/navigation/Tabs/Root/dist/cjs/rarui-tabs.cjs.entry.js +0 -39
  142. package/dist/collection/navigation/Tabs/Root/dist/cjs/rarui-tabs.cjs.js +0 -27
  143. package/dist/collection/navigation/Tabs/Root/dist/collection/Root.js +0 -146
  144. package/dist/collection/navigation/Tabs/Root/dist/collection/index.js +0 -2
  145. package/dist/collection/navigation/Tabs/Root/dist/esm/app-globals-0f993ce5.js +0 -5
  146. package/dist/collection/navigation/Tabs/Root/dist/esm/index-dbe371ba.js +0 -1045
  147. package/dist/collection/navigation/Tabs/Root/dist/esm/index.js +0 -3
  148. package/dist/collection/navigation/Tabs/Root/dist/esm/loader.js +0 -13
  149. package/dist/collection/navigation/Tabs/Root/dist/esm/rarui-tabs.entry.js +0 -35
  150. package/dist/collection/navigation/Tabs/Root/dist/esm/rarui-tabs.js +0 -22
  151. package/dist/collection/navigation/Tabs/Root/dist/index.cjs.js +0 -1
  152. package/dist/collection/navigation/Tabs/Root/dist/index.js +0 -1
  153. package/dist/collection/navigation/Tabs/Root/dist/loader/cdn.js +0 -1
  154. package/dist/collection/navigation/Tabs/Root/dist/loader/index.cjs.js +0 -1
  155. package/dist/collection/navigation/Tabs/Root/dist/loader/index.es2017.js +0 -1
  156. package/dist/collection/navigation/Tabs/Root/dist/loader/index.js +0 -2
  157. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/index.esm.js +0 -2
  158. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/p-2a3192f2.entry.js +0 -2
  159. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/p-325ce1b1.js +0 -3
  160. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/p-e1255160.js +0 -2
  161. package/dist/collection/navigation/Tabs/Root/dist/rarui-tabs/rarui-tabs.esm.js +0 -2
  162. package/dist/types/exhibition/Text/dist/loader/index.d.ts +0 -24
  163. package/dist/types/exhibition/Text/dist/types/Text.d.ts +0 -7
  164. package/dist/types/exhibition/Text/dist/types/index.d.ts +0 -10
  165. package/dist/types/exhibition/Text/dist/types/stencil-public-runtime.d.ts +0 -1674
  166. package/dist/types/exhibition/Title/dist/loader/index.d.ts +0 -24
  167. package/dist/types/exhibition/Title/dist/types/Title.d.ts +0 -7
  168. package/dist/types/exhibition/Title/dist/types/index.d.ts +0 -10
  169. package/dist/types/exhibition/Title/dist/types/stencil-public-runtime.d.ts +0 -1674
  170. package/dist/types/input/Button/dist/loader/index.d.ts +0 -24
  171. package/dist/types/input/Button/dist/types/Button.d.ts +0 -14
  172. package/dist/types/input/Button/dist/types/index.d.ts +0 -10
  173. package/dist/types/input/Button/dist/types/stencil-public-runtime.d.ts +0 -1674
  174. package/dist/types/layout/Box/dist/loader/index.d.ts +0 -24
  175. package/dist/types/layout/Box/dist/types/Box.d.ts +0 -6
  176. package/dist/types/layout/Box/dist/types/index.d.ts +0 -10
  177. package/dist/types/layout/Box/dist/types/stencil-public-runtime.d.ts +0 -1674
  178. package/dist/types/navigation/Tabs/Item/dist/loader/index.d.ts +0 -24
  179. package/dist/types/navigation/Tabs/Item/dist/types/Item.d.ts +0 -5
  180. package/dist/types/navigation/Tabs/Item/dist/types/index.d.ts +0 -10
  181. package/dist/types/navigation/Tabs/Item/dist/types/stencil-public-runtime.d.ts +0 -1674
  182. package/dist/types/navigation/Tabs/Root/dist/loader/index.d.ts +0 -24
  183. package/dist/types/navigation/Tabs/Root/dist/types/Root.d.ts +0 -14
  184. package/dist/types/navigation/Tabs/Root/dist/types/index.d.ts +0 -10
  185. package/dist/types/navigation/Tabs/Root/dist/types/stencil-public-runtime.d.ts +0 -1674
@@ -1,1318 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'rarui-button';
24
- const BUILD = /* rarui-button */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: false, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: true, slotChildNodesFix: false, slotRelocation: true, state: false, style: false, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
25
-
26
- /*
27
- Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
28
- */
29
- var __defProp = Object.defineProperty;
30
- var __export = (target, all) => {
31
- for (var name in all)
32
- __defProp(target, name, { get: all[name], enumerable: true });
33
- };
34
- var hostRefs = /* @__PURE__ */ new WeakMap();
35
- var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
37
- var registerHost = (hostElement, cmpMeta) => {
38
- const hostRef = {
39
- $flags$: 0,
40
- $hostElement$: hostElement,
41
- $cmpMeta$: cmpMeta,
42
- $instanceValues$: /* @__PURE__ */ new Map()
43
- };
44
- {
45
- hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
46
- hostElement["s-p"] = [];
47
- hostElement["s-rc"] = [];
48
- }
49
- return hostRefs.set(hostElement, hostRef);
50
- };
51
- var isMemberInElement = (elm, memberName) => memberName in elm;
52
- var consoleError = (e, el) => (0, console.error)(e, el);
53
-
54
- // src/client/client-load-module.ts
55
- var cmpModules = /* @__PURE__ */ new Map();
56
- var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
57
- const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
58
- const bundleId = cmpMeta.$lazyBundleId$;
59
- if (!bundleId) {
60
- return void 0;
61
- }
62
- const module = cmpModules.get(bundleId) ;
63
- if (module) {
64
- return module[exportName];
65
- }
66
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
67
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
68
- /* @vite-ignore */
69
- /* webpackInclude: /\.entry\.js$/ */
70
- /* webpackExclude: /\.system\.entry\.js$/ */
71
- /* webpackMode: "lazy" */
72
- `./${bundleId}.entry.js${""}`
73
- )); }).then((importedModule) => {
74
- {
75
- cmpModules.set(bundleId, importedModule);
76
- }
77
- return importedModule[exportName];
78
- }, consoleError);
79
- };
80
- var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
81
- var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
82
- var win = typeof window !== "undefined" ? window : {};
83
- var doc = win.document || { head: {} };
84
- var plt = {
85
- $flags$: 0,
86
- $resourcesUrl$: "",
87
- jmp: (h2) => h2(),
88
- raf: (h2) => requestAnimationFrame(h2),
89
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
90
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
91
- ce: (eventName, opts) => new CustomEvent(eventName, opts)
92
- };
93
- var supportsShadow = BUILD.shadowDom;
94
- var promiseResolve = (v) => Promise.resolve(v);
95
- var queuePending = false;
96
- var queueDomReads = [];
97
- var queueDomWrites = [];
98
- var queueTask = (queue, write) => (cb) => {
99
- queue.push(cb);
100
- if (!queuePending) {
101
- queuePending = true;
102
- if (write && plt.$flags$ & 4 /* queueSync */) {
103
- nextTick(flush);
104
- } else {
105
- plt.raf(flush);
106
- }
107
- }
108
- };
109
- var consume = (queue) => {
110
- for (let i2 = 0; i2 < queue.length; i2++) {
111
- try {
112
- queue[i2](performance.now());
113
- } catch (e) {
114
- consoleError(e);
115
- }
116
- }
117
- queue.length = 0;
118
- };
119
- var flush = () => {
120
- consume(queueDomReads);
121
- {
122
- consume(queueDomWrites);
123
- if (queuePending = queueDomReads.length > 0) {
124
- plt.raf(flush);
125
- }
126
- }
127
- };
128
- var nextTick = (cb) => promiseResolve().then(cb);
129
- var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
130
-
131
- // src/utils/constants.ts
132
- var EMPTY_OBJ = {};
133
-
134
- // src/utils/helpers.ts
135
- var isDef = (v) => v != null;
136
- var isComplexType = (o) => {
137
- o = typeof o;
138
- return o === "object" || o === "function";
139
- };
140
-
141
- // src/utils/query-nonce-meta-tag-content.ts
142
- function queryNonceMetaTagContent(doc2) {
143
- var _a, _b, _c;
144
- return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
145
- }
146
-
147
- // src/utils/result.ts
148
- var result_exports = {};
149
- __export(result_exports, {
150
- err: () => err,
151
- map: () => map,
152
- ok: () => ok,
153
- unwrap: () => unwrap,
154
- unwrapErr: () => unwrapErr
155
- });
156
- var ok = (value) => ({
157
- isOk: true,
158
- isErr: false,
159
- value
160
- });
161
- var err = (value) => ({
162
- isOk: false,
163
- isErr: true,
164
- value
165
- });
166
- function map(result, fn) {
167
- if (result.isOk) {
168
- const val = fn(result.value);
169
- if (val instanceof Promise) {
170
- return val.then((newVal) => ok(newVal));
171
- } else {
172
- return ok(val);
173
- }
174
- }
175
- if (result.isErr) {
176
- const value = result.value;
177
- return err(value);
178
- }
179
- throw "should never get here";
180
- }
181
- var unwrap = (result) => {
182
- if (result.isOk) {
183
- return result.value;
184
- } else {
185
- throw result.value;
186
- }
187
- };
188
- var unwrapErr = (result) => {
189
- if (result.isErr) {
190
- return result.value;
191
- } else {
192
- throw result.value;
193
- }
194
- };
195
- var createTime = (fnName, tagName = "") => {
196
- {
197
- return () => {
198
- return;
199
- };
200
- }
201
- };
202
- var uniqueTime = (key, measureText) => {
203
- {
204
- return () => {
205
- return;
206
- };
207
- }
208
- };
209
- var h = (nodeName, vnodeData, ...children) => {
210
- let child = null;
211
- let key = null;
212
- let slotName = null;
213
- let simple = false;
214
- let lastSimple = false;
215
- const vNodeChildren = [];
216
- const walk = (c) => {
217
- for (let i2 = 0; i2 < c.length; i2++) {
218
- child = c[i2];
219
- if (Array.isArray(child)) {
220
- walk(child);
221
- } else if (child != null && typeof child !== "boolean") {
222
- if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
223
- child = String(child);
224
- }
225
- if (simple && lastSimple) {
226
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
227
- } else {
228
- vNodeChildren.push(simple ? newVNode(null, child) : child);
229
- }
230
- lastSimple = simple;
231
- }
232
- }
233
- };
234
- walk(children);
235
- if (vnodeData) {
236
- if (vnodeData.key) {
237
- key = vnodeData.key;
238
- }
239
- if (vnodeData.name) {
240
- slotName = vnodeData.name;
241
- }
242
- {
243
- const classData = vnodeData.className || vnodeData.class;
244
- if (classData) {
245
- vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
246
- }
247
- }
248
- }
249
- if (typeof nodeName === "function") {
250
- return nodeName(
251
- vnodeData === null ? {} : vnodeData,
252
- vNodeChildren,
253
- vdomFnUtils
254
- );
255
- }
256
- const vnode = newVNode(nodeName, null);
257
- vnode.$attrs$ = vnodeData;
258
- if (vNodeChildren.length > 0) {
259
- vnode.$children$ = vNodeChildren;
260
- }
261
- {
262
- vnode.$key$ = key;
263
- }
264
- {
265
- vnode.$name$ = slotName;
266
- }
267
- return vnode;
268
- };
269
- var newVNode = (tag, text) => {
270
- const vnode = {
271
- $flags$: 0,
272
- $tag$: tag,
273
- $text$: text,
274
- $elm$: null,
275
- $children$: null
276
- };
277
- {
278
- vnode.$attrs$ = null;
279
- }
280
- {
281
- vnode.$key$ = null;
282
- }
283
- {
284
- vnode.$name$ = null;
285
- }
286
- return vnode;
287
- };
288
- var Host = {};
289
- var isHost = (node) => node && node.$tag$ === Host;
290
- var vdomFnUtils = {
291
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
292
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
293
- };
294
- var convertToPublic = (node) => ({
295
- vattrs: node.$attrs$,
296
- vchildren: node.$children$,
297
- vkey: node.$key$,
298
- vname: node.$name$,
299
- vtag: node.$tag$,
300
- vtext: node.$text$
301
- });
302
- var convertToPrivate = (node) => {
303
- if (typeof node.vtag === "function") {
304
- const vnodeData = { ...node.vattrs };
305
- if (node.vkey) {
306
- vnodeData.key = node.vkey;
307
- }
308
- if (node.vname) {
309
- vnodeData.name = node.vname;
310
- }
311
- return h(node.vtag, vnodeData, ...node.vchildren || []);
312
- }
313
- const vnode = newVNode(node.vtag, node.vtext);
314
- vnode.$attrs$ = node.vattrs;
315
- vnode.$children$ = node.vchildren;
316
- vnode.$key$ = node.vkey;
317
- vnode.$name$ = node.vname;
318
- return vnode;
319
- };
320
- var parsePropertyValue = (propValue, propType) => {
321
- if (propValue != null && !isComplexType(propValue)) {
322
- if (propType & 4 /* Boolean */) {
323
- return propValue === "false" ? false : propValue === "" || !!propValue;
324
- }
325
- if (propType & 1 /* String */) {
326
- return String(propValue);
327
- }
328
- return propValue;
329
- }
330
- return propValue;
331
- };
332
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
333
- var emitEvent = (elm, name, opts) => {
334
- const ev = plt.ce(name, opts);
335
- elm.dispatchEvent(ev);
336
- return ev;
337
- };
338
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
339
- if (oldValue !== newValue) {
340
- let isProp = isMemberInElement(elm, memberName);
341
- memberName.toLowerCase();
342
- if (memberName === "class") {
343
- const classList = elm.classList;
344
- const oldClasses = parseClassList(oldValue);
345
- const newClasses = parseClassList(newValue);
346
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
347
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
348
- } else if (memberName === "key") ; else {
349
- const isComplex = isComplexType(newValue);
350
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
351
- try {
352
- if (!elm.tagName.includes("-")) {
353
- const n = newValue == null ? "" : newValue;
354
- if (memberName === "list") {
355
- isProp = false;
356
- } else if (oldValue == null || elm[memberName] != n) {
357
- elm[memberName] = n;
358
- }
359
- } else {
360
- elm[memberName] = newValue;
361
- }
362
- } catch (e) {
363
- }
364
- }
365
- if (newValue == null || newValue === false) {
366
- if (newValue !== false || elm.getAttribute(memberName) === "") {
367
- {
368
- elm.removeAttribute(memberName);
369
- }
370
- }
371
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
372
- newValue = newValue === true ? "" : newValue;
373
- {
374
- elm.setAttribute(memberName, newValue);
375
- }
376
- }
377
- }
378
- }
379
- };
380
- var parseClassListRegex = /\s/;
381
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
382
-
383
- // src/runtime/vdom/update-element.ts
384
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
385
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
386
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
387
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
388
- {
389
- for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
390
- if (!(memberName in newVnodeAttrs)) {
391
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
392
- }
393
- }
394
- }
395
- for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
396
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
397
- }
398
- };
399
- function sortedAttrNames(attrNames) {
400
- return attrNames.includes("ref") ? (
401
- // we need to sort these to ensure that `'ref'` is the last attr
402
- [...attrNames.filter((attr) => attr !== "ref"), "ref"]
403
- ) : (
404
- // no need to sort, return the original array
405
- attrNames
406
- );
407
- }
408
-
409
- // src/runtime/vdom/vdom-render.ts
410
- var scopeId;
411
- var contentRef;
412
- var hostTagName;
413
- var useNativeShadowDom = false;
414
- var checkSlotFallbackVisibility = false;
415
- var checkSlotRelocate = false;
416
- var isSvgMode = false;
417
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
418
- var _a;
419
- const newVNode2 = newParentVNode.$children$[childIndex];
420
- let i2 = 0;
421
- let elm;
422
- let childNode;
423
- let oldVNode;
424
- if (!useNativeShadowDom) {
425
- checkSlotRelocate = true;
426
- if (newVNode2.$tag$ === "slot") {
427
- if (scopeId) {
428
- parentElm.classList.add(scopeId + "-s");
429
- }
430
- newVNode2.$flags$ |= newVNode2.$children$ ? (
431
- // slot element has fallback content
432
- // still create an element that "mocks" the slot element
433
- 2 /* isSlotFallback */
434
- ) : (
435
- // slot element does not have fallback content
436
- // create an html comment we'll use to always reference
437
- // where actual slot content should sit next to
438
- 1 /* isSlotReference */
439
- );
440
- }
441
- }
442
- if (newVNode2.$flags$ & 1 /* isSlotReference */) {
443
- elm = newVNode2.$elm$ = doc.createTextNode("");
444
- } else {
445
- elm = newVNode2.$elm$ = doc.createElement(
446
- !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
447
- );
448
- {
449
- updateElement(null, newVNode2, isSvgMode);
450
- }
451
- if (isDef(scopeId) && elm["s-si"] !== scopeId) {
452
- elm.classList.add(elm["s-si"] = scopeId);
453
- }
454
- {
455
- updateElementScopeIds(elm, parentElm);
456
- }
457
- if (newVNode2.$children$) {
458
- for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
459
- childNode = createElm(oldParentVNode, newVNode2, i2, elm);
460
- if (childNode) {
461
- elm.appendChild(childNode);
462
- }
463
- }
464
- }
465
- }
466
- elm["s-hn"] = hostTagName;
467
- {
468
- if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
469
- elm["s-sr"] = true;
470
- elm["s-cr"] = contentRef;
471
- elm["s-sn"] = newVNode2.$name$ || "";
472
- elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
473
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
474
- if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
475
- {
476
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
477
- }
478
- }
479
- }
480
- }
481
- return elm;
482
- };
483
- var putBackInOriginalLocation = (parentElm, recursive) => {
484
- plt.$flags$ |= 1 /* isTmpDisconnected */;
485
- const oldSlotChildNodes = Array.from(parentElm.childNodes);
486
- if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
487
- let node = parentElm;
488
- while (node = node.nextSibling) {
489
- if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
490
- oldSlotChildNodes.push(node);
491
- }
492
- }
493
- }
494
- for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
495
- const childNode = oldSlotChildNodes[i2];
496
- if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
497
- insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
498
- childNode["s-ol"].remove();
499
- childNode["s-ol"] = void 0;
500
- childNode["s-sh"] = void 0;
501
- checkSlotRelocate = true;
502
- }
503
- if (recursive) {
504
- putBackInOriginalLocation(childNode, recursive);
505
- }
506
- }
507
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
508
- };
509
- var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
510
- let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
511
- let childNode;
512
- for (; startIdx <= endIdx; ++startIdx) {
513
- if (vnodes[startIdx]) {
514
- childNode = createElm(null, parentVNode, startIdx, parentElm);
515
- if (childNode) {
516
- vnodes[startIdx].$elm$ = childNode;
517
- insertBefore(containerElm, childNode, referenceNode(before) );
518
- }
519
- }
520
- }
521
- };
522
- var removeVnodes = (vnodes, startIdx, endIdx) => {
523
- for (let index = startIdx; index <= endIdx; ++index) {
524
- const vnode = vnodes[index];
525
- if (vnode) {
526
- const elm = vnode.$elm$;
527
- if (elm) {
528
- {
529
- checkSlotFallbackVisibility = true;
530
- if (elm["s-ol"]) {
531
- elm["s-ol"].remove();
532
- } else {
533
- putBackInOriginalLocation(elm, true);
534
- }
535
- }
536
- elm.remove();
537
- }
538
- }
539
- }
540
- };
541
- var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
542
- let oldStartIdx = 0;
543
- let newStartIdx = 0;
544
- let idxInOld = 0;
545
- let i2 = 0;
546
- let oldEndIdx = oldCh.length - 1;
547
- let oldStartVnode = oldCh[0];
548
- let oldEndVnode = oldCh[oldEndIdx];
549
- let newEndIdx = newCh.length - 1;
550
- let newStartVnode = newCh[0];
551
- let newEndVnode = newCh[newEndIdx];
552
- let node;
553
- let elmToMove;
554
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
555
- if (oldStartVnode == null) {
556
- oldStartVnode = oldCh[++oldStartIdx];
557
- } else if (oldEndVnode == null) {
558
- oldEndVnode = oldCh[--oldEndIdx];
559
- } else if (newStartVnode == null) {
560
- newStartVnode = newCh[++newStartIdx];
561
- } else if (newEndVnode == null) {
562
- newEndVnode = newCh[--newEndIdx];
563
- } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
564
- patch(oldStartVnode, newStartVnode, isInitialRender);
565
- oldStartVnode = oldCh[++oldStartIdx];
566
- newStartVnode = newCh[++newStartIdx];
567
- } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
568
- patch(oldEndVnode, newEndVnode, isInitialRender);
569
- oldEndVnode = oldCh[--oldEndIdx];
570
- newEndVnode = newCh[--newEndIdx];
571
- } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
572
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
573
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
574
- }
575
- patch(oldStartVnode, newEndVnode, isInitialRender);
576
- insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
577
- oldStartVnode = oldCh[++oldStartIdx];
578
- newEndVnode = newCh[--newEndIdx];
579
- } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
580
- if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
581
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
582
- }
583
- patch(oldEndVnode, newStartVnode, isInitialRender);
584
- insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
585
- oldEndVnode = oldCh[--oldEndIdx];
586
- newStartVnode = newCh[++newStartIdx];
587
- } else {
588
- idxInOld = -1;
589
- {
590
- for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
591
- if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
592
- idxInOld = i2;
593
- break;
594
- }
595
- }
596
- }
597
- if (idxInOld >= 0) {
598
- elmToMove = oldCh[idxInOld];
599
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
600
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
601
- } else {
602
- patch(elmToMove, newStartVnode, isInitialRender);
603
- oldCh[idxInOld] = void 0;
604
- node = elmToMove.$elm$;
605
- }
606
- newStartVnode = newCh[++newStartIdx];
607
- } else {
608
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
609
- newStartVnode = newCh[++newStartIdx];
610
- }
611
- if (node) {
612
- {
613
- insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
614
- }
615
- }
616
- }
617
- }
618
- if (oldStartIdx > oldEndIdx) {
619
- addVnodes(
620
- parentElm,
621
- newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
622
- newVNode2,
623
- newCh,
624
- newStartIdx,
625
- newEndIdx
626
- );
627
- } else if (newStartIdx > newEndIdx) {
628
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
629
- }
630
- };
631
- var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
632
- if (leftVNode.$tag$ === rightVNode.$tag$) {
633
- if (leftVNode.$tag$ === "slot") {
634
- return leftVNode.$name$ === rightVNode.$name$;
635
- }
636
- if (!isInitialRender) {
637
- return leftVNode.$key$ === rightVNode.$key$;
638
- }
639
- return true;
640
- }
641
- return false;
642
- };
643
- var referenceNode = (node) => {
644
- return node && node["s-ol"] || node;
645
- };
646
- var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
647
- var patch = (oldVNode, newVNode2, isInitialRender = false) => {
648
- const elm = newVNode2.$elm$ = oldVNode.$elm$;
649
- const oldChildren = oldVNode.$children$;
650
- const newChildren = newVNode2.$children$;
651
- const tag = newVNode2.$tag$;
652
- {
653
- {
654
- if (tag === "slot" && !useNativeShadowDom) ; else {
655
- updateElement(oldVNode, newVNode2, isSvgMode);
656
- }
657
- }
658
- if (oldChildren !== null && newChildren !== null) {
659
- updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
660
- } else if (newChildren !== null) {
661
- addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
662
- } else if (oldChildren !== null) {
663
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
664
- }
665
- }
666
- };
667
- var updateFallbackSlotVisibility = (elm) => {
668
- const childNodes = elm.childNodes;
669
- for (const childNode of childNodes) {
670
- if (childNode.nodeType === 1 /* ElementNode */) {
671
- if (childNode["s-sr"]) {
672
- const slotName = childNode["s-sn"];
673
- childNode.hidden = false;
674
- for (const siblingNode of childNodes) {
675
- if (siblingNode !== childNode) {
676
- if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
677
- if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
678
- childNode.hidden = true;
679
- break;
680
- }
681
- } else {
682
- if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
683
- childNode.hidden = true;
684
- break;
685
- }
686
- }
687
- }
688
- }
689
- }
690
- updateFallbackSlotVisibility(childNode);
691
- }
692
- }
693
- };
694
- var relocateNodes = [];
695
- var markSlotContentForRelocation = (elm) => {
696
- let node;
697
- let hostContentNodes;
698
- let j;
699
- for (const childNode of elm.childNodes) {
700
- if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
701
- hostContentNodes = node.parentNode.childNodes;
702
- const slotName = childNode["s-sn"];
703
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
704
- node = hostContentNodes[j];
705
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
706
- if (isNodeLocatedInSlot(node, slotName)) {
707
- let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
708
- checkSlotFallbackVisibility = true;
709
- node["s-sn"] = node["s-sn"] || slotName;
710
- if (relocateNodeData) {
711
- relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
712
- relocateNodeData.$slotRefNode$ = childNode;
713
- } else {
714
- node["s-sh"] = childNode["s-hn"];
715
- relocateNodes.push({
716
- $slotRefNode$: childNode,
717
- $nodeToRelocate$: node
718
- });
719
- }
720
- if (node["s-sr"]) {
721
- relocateNodes.map((relocateNode) => {
722
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
723
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
724
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
725
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
726
- }
727
- }
728
- });
729
- }
730
- } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
731
- relocateNodes.push({
732
- $nodeToRelocate$: node
733
- });
734
- }
735
- }
736
- }
737
- }
738
- if (childNode.nodeType === 1 /* ElementNode */) {
739
- markSlotContentForRelocation(childNode);
740
- }
741
- }
742
- };
743
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
744
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
745
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
746
- return true;
747
- }
748
- if (nodeToRelocate.getAttribute("slot") === slotName) {
749
- return true;
750
- }
751
- return false;
752
- }
753
- if (nodeToRelocate["s-sn"] === slotName) {
754
- return true;
755
- }
756
- return slotName === "";
757
- };
758
- var insertBefore = (parent, newNode, reference) => {
759
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
760
- {
761
- updateElementScopeIds(newNode, parent);
762
- }
763
- return inserted;
764
- };
765
- var findScopeIds = (element) => {
766
- const scopeIds = [];
767
- if (element) {
768
- scopeIds.push(
769
- ...element["s-scs"] || [],
770
- element["s-si"],
771
- element["s-sc"],
772
- ...findScopeIds(element.parentElement)
773
- );
774
- }
775
- return scopeIds;
776
- };
777
- var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
778
- var _a;
779
- if (element && parent && element.nodeType === 1 /* ElementNode */) {
780
- const scopeIds = new Set(findScopeIds(parent).filter(Boolean));
781
- if (scopeIds.size) {
782
- (_a = element.classList) == null ? void 0 : _a.add(...element["s-scs"] = [...scopeIds]);
783
- if (element["s-ol"] || iterateChildNodes) {
784
- for (const childNode of Array.from(element.childNodes)) {
785
- updateElementScopeIds(childNode, element, true);
786
- }
787
- }
788
- }
789
- }
790
- };
791
- var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
792
- var _a, _b, _c, _d;
793
- const hostElm = hostRef.$hostElement$;
794
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
795
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
796
- hostTagName = hostElm.tagName;
797
- if (isInitialLoad && rootVnode.$attrs$) {
798
- for (const key of Object.keys(rootVnode.$attrs$)) {
799
- if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
800
- rootVnode.$attrs$[key] = hostElm[key];
801
- }
802
- }
803
- }
804
- rootVnode.$tag$ = null;
805
- rootVnode.$flags$ |= 4 /* isHost */;
806
- hostRef.$vnode$ = rootVnode;
807
- rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
808
- {
809
- scopeId = hostElm["s-sc"];
810
- }
811
- useNativeShadowDom = supportsShadow ;
812
- {
813
- contentRef = hostElm["s-cr"];
814
- checkSlotFallbackVisibility = false;
815
- }
816
- patch(oldVNode, rootVnode, isInitialLoad);
817
- {
818
- plt.$flags$ |= 1 /* isTmpDisconnected */;
819
- if (checkSlotRelocate) {
820
- markSlotContentForRelocation(rootVnode.$elm$);
821
- for (const relocateData of relocateNodes) {
822
- const nodeToRelocate = relocateData.$nodeToRelocate$;
823
- if (!nodeToRelocate["s-ol"]) {
824
- const orgLocationNode = doc.createTextNode("");
825
- orgLocationNode["s-nr"] = nodeToRelocate;
826
- insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
827
- }
828
- }
829
- for (const relocateData of relocateNodes) {
830
- const nodeToRelocate = relocateData.$nodeToRelocate$;
831
- const slotRefNode = relocateData.$slotRefNode$;
832
- if (slotRefNode) {
833
- const parentNodeRef = slotRefNode.parentNode;
834
- let insertBeforeNode = slotRefNode.nextSibling;
835
- {
836
- let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
837
- while (orgLocationNode) {
838
- let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
839
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
840
- refNode = refNode.nextSibling;
841
- while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
842
- refNode = refNode == null ? void 0 : refNode.nextSibling;
843
- }
844
- if (!refNode || !refNode["s-nr"]) {
845
- insertBeforeNode = refNode;
846
- break;
847
- }
848
- }
849
- orgLocationNode = orgLocationNode.previousSibling;
850
- }
851
- }
852
- if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
853
- if (nodeToRelocate !== insertBeforeNode) {
854
- if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
855
- nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
856
- }
857
- insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
858
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
859
- nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
860
- }
861
- }
862
- }
863
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
864
- } else {
865
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
866
- if (isInitialLoad) {
867
- nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
868
- }
869
- nodeToRelocate.hidden = true;
870
- }
871
- }
872
- }
873
- }
874
- if (checkSlotFallbackVisibility) {
875
- updateFallbackSlotVisibility(rootVnode.$elm$);
876
- }
877
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
878
- relocateNodes.length = 0;
879
- }
880
- contentRef = void 0;
881
- };
882
-
883
- // src/runtime/update-component.ts
884
- var attachToAncestor = (hostRef, ancestorComponent) => {
885
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
886
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
887
- }
888
- };
889
- var scheduleUpdate = (hostRef, isInitialLoad) => {
890
- {
891
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
892
- }
893
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
894
- hostRef.$flags$ |= 512 /* needsRerender */;
895
- return;
896
- }
897
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
898
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
899
- return writeTask(dispatch) ;
900
- };
901
- var dispatchHooks = (hostRef, isInitialLoad) => {
902
- const elm = hostRef.$hostElement$;
903
- const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
904
- const instance = hostRef.$lazyInstance$ ;
905
- if (!instance) {
906
- throw new Error(
907
- `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
908
- );
909
- }
910
- let maybePromise;
911
- endSchedule();
912
- return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
913
- };
914
- var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
915
- console.error(err2);
916
- fn();
917
- }) : fn();
918
- var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
919
- var updateComponent = async (hostRef, instance, isInitialLoad) => {
920
- var _a;
921
- const elm = hostRef.$hostElement$;
922
- const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
923
- const rc = elm["s-rc"];
924
- const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
925
- {
926
- callRender(hostRef, instance, elm, isInitialLoad);
927
- }
928
- if (rc) {
929
- rc.map((cb) => cb());
930
- elm["s-rc"] = void 0;
931
- }
932
- endRender();
933
- endUpdate();
934
- {
935
- const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
936
- const postUpdate = () => postUpdateComponent(hostRef);
937
- if (childrenPromises.length === 0) {
938
- postUpdate();
939
- } else {
940
- Promise.all(childrenPromises).then(postUpdate);
941
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
942
- childrenPromises.length = 0;
943
- }
944
- }
945
- };
946
- var callRender = (hostRef, instance, elm, isInitialLoad) => {
947
- try {
948
- instance = instance.render() ;
949
- {
950
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
951
- }
952
- {
953
- hostRef.$flags$ |= 2 /* hasRendered */;
954
- }
955
- {
956
- {
957
- {
958
- renderVdom(hostRef, instance, isInitialLoad);
959
- }
960
- }
961
- }
962
- } catch (e) {
963
- consoleError(e, hostRef.$hostElement$);
964
- }
965
- return null;
966
- };
967
- var postUpdateComponent = (hostRef) => {
968
- const tagName = hostRef.$cmpMeta$.$tagName$;
969
- const elm = hostRef.$hostElement$;
970
- const endPostUpdate = createTime("postUpdate", tagName);
971
- const ancestorComponent = hostRef.$ancestorComponent$;
972
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
973
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
974
- {
975
- addHydratedFlag(elm);
976
- }
977
- endPostUpdate();
978
- {
979
- hostRef.$onReadyResolve$(elm);
980
- if (!ancestorComponent) {
981
- appDidLoad();
982
- }
983
- }
984
- } else {
985
- endPostUpdate();
986
- }
987
- {
988
- if (hostRef.$onRenderResolve$) {
989
- hostRef.$onRenderResolve$();
990
- hostRef.$onRenderResolve$ = void 0;
991
- }
992
- if (hostRef.$flags$ & 512 /* needsRerender */) {
993
- nextTick(() => scheduleUpdate(hostRef, false));
994
- }
995
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
996
- }
997
- };
998
- var appDidLoad = (who) => {
999
- {
1000
- addHydratedFlag(doc.documentElement);
1001
- }
1002
- nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1003
- };
1004
- var addHydratedFlag = (elm) => {
1005
- var _a;
1006
- return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
1007
- };
1008
-
1009
- // src/runtime/set-value.ts
1010
- var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1011
- var setValue = (ref, propName, newVal, cmpMeta) => {
1012
- const hostRef = getHostRef(ref);
1013
- if (!hostRef) {
1014
- throw new Error(
1015
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1016
- );
1017
- }
1018
- const oldVal = hostRef.$instanceValues$.get(propName);
1019
- const flags = hostRef.$flags$;
1020
- const instance = hostRef.$lazyInstance$ ;
1021
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1022
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1023
- const didValueChange = newVal !== oldVal && !areBothNaN;
1024
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
1025
- hostRef.$instanceValues$.set(propName, newVal);
1026
- if (instance) {
1027
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1028
- scheduleUpdate(hostRef, false);
1029
- }
1030
- }
1031
- }
1032
- };
1033
-
1034
- // src/runtime/proxy-component.ts
1035
- var proxyComponent = (Cstr, cmpMeta, flags) => {
1036
- var _a, _b;
1037
- const prototype = Cstr.prototype;
1038
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
1039
- const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1040
- members.map(([memberName, [memberFlags]]) => {
1041
- if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1042
- Object.defineProperty(prototype, memberName, {
1043
- get() {
1044
- return getValue(this, memberName);
1045
- },
1046
- set(newValue) {
1047
- setValue(this, memberName, newValue, cmpMeta);
1048
- },
1049
- configurable: true,
1050
- enumerable: true
1051
- });
1052
- }
1053
- });
1054
- if ((flags & 1 /* isElementConstructor */)) {
1055
- const attrNameToPropName = /* @__PURE__ */ new Map();
1056
- prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
1057
- plt.jmp(() => {
1058
- var _a2;
1059
- const propName = attrNameToPropName.get(attrName);
1060
- if (this.hasOwnProperty(propName)) {
1061
- newValue = this[propName];
1062
- delete this[propName];
1063
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1064
- return;
1065
- } else if (propName == null) {
1066
- const hostRef = getHostRef(this);
1067
- const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1068
- if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1069
- const instance = hostRef.$lazyInstance$ ;
1070
- const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1071
- entry == null ? void 0 : entry.forEach((callbackName) => {
1072
- if (instance[callbackName] != null) {
1073
- instance[callbackName].call(instance, newValue, oldValue, attrName);
1074
- }
1075
- });
1076
- }
1077
- return;
1078
- }
1079
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1080
- });
1081
- };
1082
- Cstr.observedAttributes = Array.from(
1083
- /* @__PURE__ */ new Set([
1084
- ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
1085
- ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
1086
- const attrName = m[1] || propName;
1087
- attrNameToPropName.set(attrName, propName);
1088
- return attrName;
1089
- })
1090
- ])
1091
- );
1092
- }
1093
- }
1094
- return Cstr;
1095
- };
1096
-
1097
- // src/runtime/initialize-component.ts
1098
- var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1099
- let Cstr;
1100
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1101
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1102
- const bundleId = cmpMeta.$lazyBundleId$;
1103
- if (bundleId) {
1104
- const CstrImport = loadModule(cmpMeta);
1105
- if (CstrImport && "then" in CstrImport) {
1106
- const endLoad = uniqueTime();
1107
- Cstr = await CstrImport;
1108
- endLoad();
1109
- } else {
1110
- Cstr = CstrImport;
1111
- }
1112
- if (!Cstr) {
1113
- throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
1114
- }
1115
- if (!Cstr.isProxied) {
1116
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1117
- Cstr.isProxied = true;
1118
- }
1119
- const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
1120
- {
1121
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1122
- }
1123
- try {
1124
- new Cstr(hostRef);
1125
- } catch (e) {
1126
- consoleError(e);
1127
- }
1128
- {
1129
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1130
- }
1131
- endNewInstance();
1132
- } else {
1133
- Cstr = elm.constructor;
1134
- const cmpTag = elm.localName;
1135
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1136
- }
1137
- }
1138
- const ancestorComponent = hostRef.$ancestorComponent$;
1139
- const schedule = () => scheduleUpdate(hostRef, true);
1140
- if (ancestorComponent && ancestorComponent["s-rc"]) {
1141
- ancestorComponent["s-rc"].push(schedule);
1142
- } else {
1143
- schedule();
1144
- }
1145
- };
1146
- var fireConnectedCallback = (instance) => {
1147
- };
1148
-
1149
- // src/runtime/connected-callback.ts
1150
- var connectedCallback = (elm) => {
1151
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1152
- const hostRef = getHostRef(elm);
1153
- const cmpMeta = hostRef.$cmpMeta$;
1154
- const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1155
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1156
- hostRef.$flags$ |= 1 /* hasConnected */;
1157
- {
1158
- if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
1159
- cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
1160
- setContentReference(elm);
1161
- }
1162
- }
1163
- {
1164
- let ancestorComponent = elm;
1165
- while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
1166
- if (ancestorComponent["s-p"]) {
1167
- attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
1168
- break;
1169
- }
1170
- }
1171
- }
1172
- if (cmpMeta.$members$) {
1173
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1174
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1175
- const value = elm[memberName];
1176
- delete elm[memberName];
1177
- elm[memberName] = value;
1178
- }
1179
- });
1180
- }
1181
- {
1182
- initializeComponent(elm, hostRef, cmpMeta);
1183
- }
1184
- } else {
1185
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1186
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1187
- }
1188
- }
1189
- endConnected();
1190
- }
1191
- };
1192
- var setContentReference = (elm) => {
1193
- const contentRefElm = elm["s-cr"] = doc.createComment(
1194
- ""
1195
- );
1196
- contentRefElm["s-cn"] = true;
1197
- insertBefore(elm, contentRefElm, elm.firstChild);
1198
- };
1199
- var disconnectInstance = (instance) => {
1200
- };
1201
- var disconnectedCallback = async (elm) => {
1202
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1203
- const hostRef = getHostRef(elm);
1204
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1205
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1206
- }
1207
- }
1208
- };
1209
-
1210
- // src/runtime/bootstrap-lazy.ts
1211
- var bootstrapLazy = (lazyBundles, options = {}) => {
1212
- var _a;
1213
- const endBootstrap = createTime();
1214
- const cmpTags = [];
1215
- const exclude = options.exclude || [];
1216
- const customElements2 = win.customElements;
1217
- const head = doc.head;
1218
- const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
1219
- const dataStyles = /* @__PURE__ */ doc.createElement("style");
1220
- const deferredConnectedCallbacks = [];
1221
- let appLoadFallback;
1222
- let isBootstrapping = true;
1223
- Object.assign(plt, options);
1224
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
1225
- let hasSlotRelocation = false;
1226
- lazyBundles.map((lazyBundle) => {
1227
- lazyBundle[1].map((compactMeta) => {
1228
- const cmpMeta = {
1229
- $flags$: compactMeta[0],
1230
- $tagName$: compactMeta[1],
1231
- $members$: compactMeta[2],
1232
- $listeners$: compactMeta[3]
1233
- };
1234
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1235
- hasSlotRelocation = true;
1236
- }
1237
- {
1238
- cmpMeta.$members$ = compactMeta[2];
1239
- }
1240
- const tagName = cmpMeta.$tagName$;
1241
- const HostElement = class extends HTMLElement {
1242
- // StencilLazyHost
1243
- constructor(self) {
1244
- super(self);
1245
- this.hasRegisteredEventListeners = false;
1246
- self = this;
1247
- registerHost(self, cmpMeta);
1248
- }
1249
- connectedCallback() {
1250
- getHostRef(this);
1251
- if (!this.hasRegisteredEventListeners) {
1252
- this.hasRegisteredEventListeners = true;
1253
- }
1254
- if (appLoadFallback) {
1255
- clearTimeout(appLoadFallback);
1256
- appLoadFallback = null;
1257
- }
1258
- if (isBootstrapping) {
1259
- deferredConnectedCallbacks.push(this);
1260
- } else {
1261
- plt.jmp(() => connectedCallback(this));
1262
- }
1263
- }
1264
- disconnectedCallback() {
1265
- plt.jmp(() => disconnectedCallback(this));
1266
- }
1267
- componentOnReady() {
1268
- return getHostRef(this).$onReadyPromise$;
1269
- }
1270
- };
1271
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1272
- if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
1273
- cmpTags.push(tagName);
1274
- customElements2.define(
1275
- tagName,
1276
- proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
1277
- );
1278
- }
1279
- });
1280
- });
1281
- if (cmpTags.length > 0) {
1282
- if (hasSlotRelocation) {
1283
- dataStyles.textContent += SLOT_FB_CSS;
1284
- }
1285
- {
1286
- dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1287
- }
1288
- if (dataStyles.innerHTML.length) {
1289
- dataStyles.setAttribute("data-styles", "");
1290
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
1291
- if (nonce != null) {
1292
- dataStyles.setAttribute("nonce", nonce);
1293
- }
1294
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1295
- }
1296
- }
1297
- isBootstrapping = false;
1298
- if (deferredConnectedCallbacks.length) {
1299
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1300
- } else {
1301
- {
1302
- plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
1303
- }
1304
- }
1305
- endBootstrap();
1306
- };
1307
-
1308
- // src/runtime/nonce.ts
1309
- var setNonce = (nonce) => plt.$nonce$ = nonce;
1310
-
1311
- exports.bootstrapLazy = bootstrapLazy;
1312
- exports.getElement = getElement;
1313
- exports.h = h;
1314
- exports.promiseResolve = promiseResolve;
1315
- exports.registerInstance = registerInstance;
1316
- exports.setNonce = setNonce;
1317
-
1318
- //# sourceMappingURL=index-2f27cc5f.js.map