@rindo/core 2.16.0-beta.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 (229) hide show
  1. package/LICENSE.md +27 -0
  2. package/bin/rindo +57 -0
  3. package/cli/index.cjs +1784 -0
  4. package/cli/index.d.ts +15 -0
  5. package/cli/index.js +1758 -0
  6. package/cli/package.json +14 -0
  7. package/compiler/lib.d.ts +24 -0
  8. package/compiler/lib.dom.d.ts +17791 -0
  9. package/compiler/lib.dom.iterable.d.ts +323 -0
  10. package/compiler/lib.es2015.collection.d.ts +89 -0
  11. package/compiler/lib.es2015.core.d.ts +559 -0
  12. package/compiler/lib.es2015.d.ts +30 -0
  13. package/compiler/lib.es2015.generator.d.ts +79 -0
  14. package/compiler/lib.es2015.iterable.d.ts +497 -0
  15. package/compiler/lib.es2015.promise.d.ts +78 -0
  16. package/compiler/lib.es2015.proxy.d.ts +41 -0
  17. package/compiler/lib.es2015.reflect.d.ts +123 -0
  18. package/compiler/lib.es2015.symbol.d.ts +48 -0
  19. package/compiler/lib.es2015.symbol.wellknown.d.ts +324 -0
  20. package/compiler/lib.es2016.array.include.d.ts +118 -0
  21. package/compiler/lib.es2016.d.ts +22 -0
  22. package/compiler/lib.es2016.full.d.ts +25 -0
  23. package/compiler/lib.es2017.d.ts +26 -0
  24. package/compiler/lib.es2017.full.d.ts +25 -0
  25. package/compiler/lib.es2017.intl.d.ts +32 -0
  26. package/compiler/lib.es2017.object.d.ts +51 -0
  27. package/compiler/lib.es2017.sharedmemory.d.ts +137 -0
  28. package/compiler/lib.es2017.string.d.ts +47 -0
  29. package/compiler/lib.es2017.typedarrays.d.ts +55 -0
  30. package/compiler/lib.es2018.asyncgenerator.d.ts +79 -0
  31. package/compiler/lib.es2018.asynciterable.d.ts +45 -0
  32. package/compiler/lib.es2018.d.ts +26 -0
  33. package/compiler/lib.es2018.full.d.ts +25 -0
  34. package/compiler/lib.es2018.intl.d.ts +73 -0
  35. package/compiler/lib.es2018.promise.d.ts +32 -0
  36. package/compiler/lib.es2018.regexp.d.ts +39 -0
  37. package/compiler/lib.es2019.array.d.ts +85 -0
  38. package/compiler/lib.es2019.d.ts +25 -0
  39. package/compiler/lib.es2019.full.d.ts +25 -0
  40. package/compiler/lib.es2019.object.d.ts +35 -0
  41. package/compiler/lib.es2019.string.d.ts +39 -0
  42. package/compiler/lib.es2019.symbol.d.ts +26 -0
  43. package/compiler/lib.es2020.bigint.d.ts +728 -0
  44. package/compiler/lib.es2020.d.ts +27 -0
  45. package/compiler/lib.es2020.full.d.ts +25 -0
  46. package/compiler/lib.es2020.intl.d.ts +368 -0
  47. package/compiler/lib.es2020.promise.d.ts +49 -0
  48. package/compiler/lib.es2020.sharedmemory.d.ts +99 -0
  49. package/compiler/lib.es2020.string.d.ts +30 -0
  50. package/compiler/lib.es2020.symbol.wellknown.d.ts +39 -0
  51. package/compiler/lib.es2021.d.ts +25 -0
  52. package/compiler/lib.es2021.full.d.ts +25 -0
  53. package/compiler/lib.es2021.intl.d.ts +44 -0
  54. package/compiler/lib.es2021.promise.d.ts +50 -0
  55. package/compiler/lib.es2021.string.d.ts +35 -0
  56. package/compiler/lib.es2021.weakref.d.ts +75 -0
  57. package/compiler/lib.es5.d.ts +4495 -0
  58. package/compiler/lib.es6.d.ts +25 -0
  59. package/compiler/lib.esnext.d.ts +22 -0
  60. package/compiler/lib.esnext.full.d.ts +25 -0
  61. package/compiler/lib.esnext.intl.d.ts +23 -0
  62. package/compiler/lib.esnext.promise.d.ts +43 -0
  63. package/compiler/lib.esnext.string.d.ts +35 -0
  64. package/compiler/lib.esnext.weakref.d.ts +75 -0
  65. package/compiler/lib.scripthost.d.ts +327 -0
  66. package/compiler/lib.webworker.d.ts +5733 -0
  67. package/compiler/lib.webworker.importscripts.d.ts +26 -0
  68. package/compiler/lib.webworker.iterable.d.ts +160 -0
  69. package/compiler/package.json +8 -0
  70. package/compiler/rindo.d.ts +95 -0
  71. package/compiler/rindo.js +67222 -0
  72. package/compiler/rindo.min.js +4 -0
  73. package/dependencies.json +109 -0
  74. package/dev-server/client/app-error.d.ts +18 -0
  75. package/dev-server/client/events.d.ts +6 -0
  76. package/dev-server/client/hmr-components.d.ts +1 -0
  77. package/dev-server/client/hmr-external-styles.d.ts +1 -0
  78. package/dev-server/client/hmr-images.d.ts +1 -0
  79. package/dev-server/client/hmr-inline-styles.d.ts +1 -0
  80. package/dev-server/client/hmr-util.d.ts +9 -0
  81. package/dev-server/client/hmr-window.d.ts +10 -0
  82. package/dev-server/client/index.d.ts +6 -0
  83. package/dev-server/client/index.js +808 -0
  84. package/dev-server/client/logger.d.ts +5 -0
  85. package/dev-server/client/package.json +8 -0
  86. package/dev-server/client/progress.d.ts +3 -0
  87. package/dev-server/client/status.d.ts +4 -0
  88. package/dev-server/connector.html +6 -0
  89. package/dev-server/index.d.ts +3 -0
  90. package/dev-server/index.js +264 -0
  91. package/dev-server/open-in-editor-api.js +1 -0
  92. package/dev-server/package.json +8 -0
  93. package/dev-server/server-process.js +1763 -0
  94. package/dev-server/server-worker-thread.js +39 -0
  95. package/dev-server/static/favicon.ico +0 -0
  96. package/dev-server/templates/directory-index.html +132 -0
  97. package/dev-server/templates/initial-load.html +160 -0
  98. package/dev-server/visualstudio.vbs +82 -0
  99. package/dev-server/ws.js +1 -0
  100. package/dev-server/xdg-open +1066 -0
  101. package/internal/app-data/index.cjs +92 -0
  102. package/internal/app-data/index.d.ts +4 -0
  103. package/internal/app-data/index.js +88 -0
  104. package/internal/app-data/package.json +15 -0
  105. package/internal/client/css-shim.js +4 -0
  106. package/internal/client/dom.js +73 -0
  107. package/internal/client/index.js +3059 -0
  108. package/internal/client/package.json +8 -0
  109. package/internal/client/patch-browser.js +124 -0
  110. package/internal/client/patch-esm.js +23 -0
  111. package/internal/client/polyfills/core-js.js +11 -0
  112. package/internal/client/polyfills/css-shim.js +1 -0
  113. package/internal/client/polyfills/dom.js +79 -0
  114. package/internal/client/polyfills/es5-html-element.js +1 -0
  115. package/internal/client/polyfills/index.js +34 -0
  116. package/internal/client/polyfills/system.js +6 -0
  117. package/internal/client/shadow-css.js +387 -0
  118. package/internal/hydrate/index.js +1132 -0
  119. package/internal/hydrate/package.json +7 -0
  120. package/internal/hydrate/runner.d.ts +217 -0
  121. package/internal/hydrate/runner.js +777 -0
  122. package/internal/hydrate/shadow-css.js +143 -0
  123. package/internal/index.d.ts +4 -0
  124. package/internal/index.js +2 -0
  125. package/internal/package.json +9 -0
  126. package/internal/rindo-core/index.cjs +1 -0
  127. package/internal/rindo-core/index.d.ts +52 -0
  128. package/internal/rindo-core/index.js +16 -0
  129. package/internal/rindo-ext-modules.d.ts +41 -0
  130. package/internal/rindo-private.d.ts +2289 -0
  131. package/internal/rindo-public-compiler.d.ts +2273 -0
  132. package/internal/rindo-public-docs.d.ts +116 -0
  133. package/internal/rindo-public-runtime.d.ts +1565 -0
  134. package/internal/testing/index.js +1093 -0
  135. package/internal/testing/package.json +7 -0
  136. package/internal/testing/shadow-css.js +143 -0
  137. package/mock-doc/index.cjs +4658 -0
  138. package/mock-doc/index.d.ts +928 -0
  139. package/mock-doc/index.js +4622 -0
  140. package/mock-doc/package.json +15 -0
  141. package/package.json +151 -0
  142. package/readme.md +74 -0
  143. package/screenshot/compare/assets/favicon.ico +0 -0
  144. package/screenshot/compare/assets/logo.png +0 -0
  145. package/screenshot/compare/build/app.css +1 -0
  146. package/screenshot/compare/build/app.esm.js +1 -0
  147. package/screenshot/compare/build/app.js +33 -0
  148. package/screenshot/compare/build/index.esm.js +0 -0
  149. package/screenshot/compare/build/p-081b0641.js +1 -0
  150. package/screenshot/compare/build/p-227a1e18.entry.js +1 -0
  151. package/screenshot/compare/build/p-2c298727.entry.js +1 -0
  152. package/screenshot/compare/build/p-5479268c.entry.js +1 -0
  153. package/screenshot/compare/build/p-573ec8a4.entry.js +1 -0
  154. package/screenshot/compare/build/p-6ba08604.entry.js +1 -0
  155. package/screenshot/compare/build/p-6bc63295.entry.js +1 -0
  156. package/screenshot/compare/build/p-7a3759fd.entry.js +1 -0
  157. package/screenshot/compare/build/p-7b4e3ba7.js +1 -0
  158. package/screenshot/compare/build/p-988eb362.css +1 -0
  159. package/screenshot/compare/build/p-9b6a9315.js +1 -0
  160. package/screenshot/compare/build/p-b4cc611c.entry.js +1 -0
  161. package/screenshot/compare/build/p-d1bf53f5.entry.js +1 -0
  162. package/screenshot/compare/build/p-e2efe0df.js +1 -0
  163. package/screenshot/compare/build/p-e8ca6d97.entry.js +1 -0
  164. package/screenshot/compare/build/p-ec2f13e0.entry.js +1 -0
  165. package/screenshot/compare/build/p-f0b99977.entry.js +1 -0
  166. package/screenshot/compare/build/p-f4745c2f.entry.js +1 -0
  167. package/screenshot/compare/build/p-fbbae598.js +1 -0
  168. package/screenshot/compare/host.config.json +15 -0
  169. package/screenshot/compare/index.html +1 -0
  170. package/screenshot/compare/manifest.json +13 -0
  171. package/screenshot/connector-base.d.ts +42 -0
  172. package/screenshot/connector-local.d.ts +7 -0
  173. package/screenshot/connector.js +2 -0
  174. package/screenshot/index.d.ts +3 -0
  175. package/screenshot/index.js +659 -0
  176. package/screenshot/local-connector.js +2 -0
  177. package/screenshot/package.json +15 -0
  178. package/screenshot/pixel-match.d.ts +1 -0
  179. package/screenshot/pixel-match.js +2673 -0
  180. package/screenshot/screenshot-compare.d.ts +3 -0
  181. package/screenshot/screenshot-fs.d.ts +15 -0
  182. package/sys/node/autoprefixer.js +8 -0
  183. package/sys/node/glob.js +1 -0
  184. package/sys/node/graceful-fs.js +1 -0
  185. package/sys/node/index.d.ts +18 -0
  186. package/sys/node/index.js +6124 -0
  187. package/sys/node/node-fetch.js +1 -0
  188. package/sys/node/package.json +8 -0
  189. package/sys/node/prompts.js +1 -0
  190. package/sys/node/worker.js +52 -0
  191. package/testing/index.d.ts +12 -0
  192. package/testing/index.js +4232 -0
  193. package/testing/jest/jest-config.d.ts +16 -0
  194. package/testing/jest/jest-environment.d.ts +15 -0
  195. package/testing/jest/jest-preprocessor.d.ts +59 -0
  196. package/testing/jest/jest-runner.d.ts +9 -0
  197. package/testing/jest/jest-screenshot.d.ts +2 -0
  198. package/testing/jest/jest-serializer.d.ts +5 -0
  199. package/testing/jest/jest-setup-test-framework.d.ts +1 -0
  200. package/testing/jest-environment.js +3 -0
  201. package/testing/jest-preprocessor.js +3 -0
  202. package/testing/jest-preset.js +37 -0
  203. package/testing/jest-runner.js +3 -0
  204. package/testing/jest-setuptestframework.js +3 -0
  205. package/testing/matchers/attributes.d.ts +14 -0
  206. package/testing/matchers/class-list.d.ts +12 -0
  207. package/testing/matchers/events.d.ts +21 -0
  208. package/testing/matchers/html.d.ts +12 -0
  209. package/testing/matchers/index.d.ts +23 -0
  210. package/testing/matchers/screenshot.d.ts +5 -0
  211. package/testing/matchers/text.d.ts +4 -0
  212. package/testing/mock-fetch.d.ts +11 -0
  213. package/testing/mocks.d.ts +10 -0
  214. package/testing/package.json +8 -0
  215. package/testing/puppeteer/index.d.ts +2 -0
  216. package/testing/puppeteer/puppeteer-browser.d.ts +6 -0
  217. package/testing/puppeteer/puppeteer-declarations.d.ts +429 -0
  218. package/testing/puppeteer/puppeteer-element.d.ts +67 -0
  219. package/testing/puppeteer/puppeteer-emulate.d.ts +2 -0
  220. package/testing/puppeteer/puppeteer-events.d.ts +21 -0
  221. package/testing/puppeteer/puppeteer-page.d.ts +2 -0
  222. package/testing/puppeteer/puppeteer-screenshot.d.ts +4 -0
  223. package/testing/reset-build-conditionals.d.ts +2 -0
  224. package/testing/spec-page.d.ts +2 -0
  225. package/testing/test-transpile.d.ts +2 -0
  226. package/testing/testing-logger.d.ts +25 -0
  227. package/testing/testing-sys.d.ts +6 -0
  228. package/testing/testing-utils.d.ts +6 -0
  229. package/testing/testing.d.ts +2 -0
@@ -0,0 +1,1132 @@
1
+ function componentOnReady() {
2
+ return getHostRef(this).$onReadyPromise$;
3
+ }
4
+
5
+ function forceUpdate() {}
6
+
7
+ function hydrateApp(e, t, o, n, s) {
8
+ function l() {
9
+ if (global.clearTimeout(p), i.clear(), r.clear(), !h) {
10
+ h = !0;
11
+ try {
12
+ t.clientHydrateAnnotations && insertVdomAnnotations(e.document, t.staticComponents),
13
+ e.dispatchEvent(new e.Event("DOMContentLoaded")), e.document.createElement = c,
14
+ e.document.createElementNS = $;
15
+ } catch (e) {
16
+ renderCatchError(t, o, e);
17
+ }
18
+ }
19
+ n(e, t, o, s);
20
+ }
21
+ function a(e) {
22
+ renderCatchError(t, o, e), l();
23
+ }
24
+ const r = new Set, i = new Set, d = new Set, c = e.document.createElement, $ = e.document.createElementNS, m = Promise.resolve();
25
+ let p, h = !1;
26
+ try {
27
+ function u() {
28
+ return g(this);
29
+ }
30
+ function f(e) {
31
+ if (isValidComponent(e, t) && !getHostRef(e)) {
32
+ const t = loadModule({
33
+ $tagName$: e.nodeName.toLowerCase(),
34
+ $flags$: null
35
+ }, null);
36
+ null != t && null != t.cmpMeta && (i.add(e), e.connectedCallback = u, registerHost(e, t.cmpMeta),
37
+ function o(e, t) {
38
+ if ("function" != typeof e.componentOnReady && (e.componentOnReady = componentOnReady),
39
+ "function" != typeof e.forceUpdate && (e.forceUpdate = forceUpdate), 1 & t.$flags$ && (e.shadowRoot = e),
40
+ null != t.$members$) {
41
+ const o = getHostRef(e);
42
+ Object.entries(t.$members$).forEach((([n, s]) => {
43
+ const l = s[0];
44
+ if (31 & l) {
45
+ const a = s[1] || n, r = e.getAttribute(a);
46
+ if (null != r) {
47
+ const e = parsePropertyValue(r, l);
48
+ o.$instanceValues$.set(n, e);
49
+ }
50
+ const i = e[n];
51
+ void 0 !== i && (o.$instanceValues$.set(n, i), delete e[n]), Object.defineProperty(e, n, {
52
+ get() {
53
+ return getValue(this, n);
54
+ },
55
+ set(e) {
56
+ setValue(this, n, e, t);
57
+ },
58
+ configurable: !0,
59
+ enumerable: !0
60
+ });
61
+ } else 64 & l && Object.defineProperty(e, n, {
62
+ value() {
63
+ const e = getHostRef(this), t = arguments;
64
+ return e.$onInstancePromise$.then((() => e.$lazyInstance$[n].apply(e.$lazyInstance$, t))).catch(consoleError);
65
+ }
66
+ });
67
+ }));
68
+ }
69
+ }(e, t.cmpMeta));
70
+ }
71
+ }
72
+ function g(n) {
73
+ return i.delete(n), isValidComponent(n, t) && o.hydratedCount < t.maxHydrateCount && !r.has(n) && shouldHydrate(n) ? (r.add(n),
74
+ async function s(e, t, o, n, l) {
75
+ o = o.toLowerCase();
76
+ const a = loadModule({
77
+ $tagName$: o,
78
+ $flags$: null
79
+ });
80
+ if (null != a && null != a.cmpMeta) {
81
+ l.add(n);
82
+ try {
83
+ connectedCallback(n), await n.componentOnReady(), t.hydratedCount++;
84
+ const e = getHostRef(n), s = e.$modeName$ ? e.$modeName$ : "$";
85
+ t.components.some((e => e.tag === o && e.mode === s)) || t.components.push({
86
+ tag: o,
87
+ mode: s,
88
+ count: 0,
89
+ depth: -1
90
+ });
91
+ } catch (t) {
92
+ e.console.error(t);
93
+ }
94
+ l.delete(n);
95
+ }
96
+ }(e, o, n.nodeName, n, d)) : m;
97
+ }
98
+ e.document.createElement = function t(o) {
99
+ const n = c.call(e.document, o);
100
+ return f(n), n;
101
+ }, e.document.createElementNS = function t(o, n) {
102
+ const s = $.call(e.document, o, n);
103
+ return f(s), s;
104
+ }, p = global.setTimeout((function L() {
105
+ a(`Hydrate exceeded timeout${function e(t) {
106
+ return Array.from(t).map(waitingOnElementMsg);
107
+ }(d)}`);
108
+ }), t.timeout), plt.$resourcesUrl$ = new URL(t.resourcesUrl || "./", doc.baseURI).href,
109
+ globalScripts(), function e(t) {
110
+ if (null != t && 1 === t.nodeType) {
111
+ f(t);
112
+ const o = t.children;
113
+ for (let t = 0, n = o.length; t < n; t++) e(o[t]);
114
+ }
115
+ }(e.document.body), function e() {
116
+ const t = Array.from(i).filter((e => e.parentElement));
117
+ return t.length > 0 ? Promise.all(t.map(g)).then(e) : m;
118
+ }().then(l).catch(a);
119
+ } catch (e) {
120
+ a(e);
121
+ }
122
+ }
123
+
124
+ function isValidComponent(e, t) {
125
+ if (null != e && 1 === e.nodeType) {
126
+ const o = e.nodeName;
127
+ if ("string" == typeof o && o.includes("-")) return !t.excludeComponents.includes(o.toLowerCase());
128
+ }
129
+ return !1;
130
+ }
131
+
132
+ function shouldHydrate(e) {
133
+ if (9 === e.nodeType) return !0;
134
+ if (NO_HYDRATE_TAGS.has(e.nodeName)) return !1;
135
+ if (e.hasAttribute("no-prerender")) return !1;
136
+ const t = e.parentNode;
137
+ return null == t || shouldHydrate(t);
138
+ }
139
+
140
+ function renderCatchError(e, t, o) {
141
+ const n = {
142
+ level: "error",
143
+ type: "build",
144
+ header: "Hydrate Error",
145
+ messageText: "",
146
+ relFilePath: null,
147
+ absFilePath: null,
148
+ lines: []
149
+ };
150
+ if (e.url) try {
151
+ const t = new URL(e.url);
152
+ "/" !== t.pathname && (n.header += ": " + t.pathname);
153
+ } catch (e) {}
154
+ null != o && (null != o.stack ? n.messageText = o.stack.toString() : null != o.message ? n.messageText = o.message.toString() : n.messageText = o.toString()),
155
+ t.diagnostics.push(n);
156
+ }
157
+
158
+ function printTag(e) {
159
+ let t = `<${e.nodeName.toLowerCase()}`;
160
+ if (Array.isArray(e.attributes)) for (let o = 0; o < e.attributes.length; o++) {
161
+ const n = e.attributes[o];
162
+ t += ` ${n.name}`, "" !== n.value && (t += `="${n.value}"`);
163
+ }
164
+ return t += ">", t;
165
+ }
166
+
167
+ function waitingOnElementMsg(e) {
168
+ let t = "";
169
+ if (e) {
170
+ const o = [];
171
+ t = " - waiting on:";
172
+ let n = e;
173
+ for (;n && 9 !== n.nodeType && "BODY" !== n.nodeName; ) o.unshift(printTag(n)),
174
+ n = n.parentElement;
175
+ let s = "";
176
+ for (const e of o) s += " ", t += `\n${s}${e}`;
177
+ }
178
+ return t;
179
+ }
180
+
181
+ import { BUILD, NAMESPACE } from "@rindo/core/internal/app-data";
182
+
183
+ export { BUILD, Env, NAMESPACE } from "@rindo/core/internal/app-data";
184
+
185
+ import { globalScripts } from "@rindo/core/internal/app-globals";
186
+
187
+ const addHostEventListeners = (e, t, o, n) => {
188
+ BUILD.hostListener && o && (BUILD.hostListenerTargetParent && (o = n ? o.filter((([e]) => 32 & e)) : o.filter((([e]) => !(32 & e)))),
189
+ o.map((([o, n, s]) => {
190
+ const l = BUILD.hostListenerTarget ? getHostListenerTarget(e, o) : e, a = hostListenerProxy(t, s), r = hostListenerOpts(o);
191
+ plt.ael(l, n, a, r), (t.$rmListeners$ = t.$rmListeners$ || []).push((() => plt.rel(l, n, a, r)));
192
+ })));
193
+ }, hostListenerProxy = (e, t) => o => {
194
+ try {
195
+ BUILD.lazyLoad ? 256 & e.$flags$ ? e.$lazyInstance$[t](o) : (e.$queuedListeners$ = e.$queuedListeners$ || []).push([ t, o ]) : e.$hostElement$[t](o);
196
+ } catch (e) {
197
+ consoleError(e);
198
+ }
199
+ }, getHostListenerTarget = (e, t) => BUILD.hostListenerTargetDocument && 4 & t ? doc : BUILD.hostListenerTargetWindow && 8 & t ? win : BUILD.hostListenerTargetBody && 16 & t ? doc.body : BUILD.hostListenerTargetParent && 32 & t ? e.parentElement : e, hostListenerOpts = e => 0 != (2 & e), XLINK_NS = "http://www.w3.org/1999/xlink";
200
+
201
+ let i = 0;
202
+
203
+ const createTime = (e, t = "") => {
204
+ if (BUILD.profile && performance.mark) {
205
+ const o = `st:${e}:${t}:${i++}`;
206
+ return performance.mark(o), () => performance.measure(`[Rindo] ${e}() <${t}>`, o);
207
+ }
208
+ return () => {};
209
+ }, rootAppliedStyles = new WeakMap, registerStyle = (e, t, o) => {
210
+ let n = styles.get(e);
211
+ n = t, styles.set(e, n);
212
+ }, addStyle = (e, t, o, n) => {
213
+ let s = getScopeId(t, o);
214
+ const l = styles.get(s);
215
+ if (!BUILD.attachStyles) return s;
216
+ if (e = 11 === e.nodeType ? e : doc, l) if ("string" == typeof l) {
217
+ e = e.head || e;
218
+ let o, a = rootAppliedStyles.get(e);
219
+ if (a || rootAppliedStyles.set(e, a = new Set), !a.has(s)) {
220
+ if (BUILD.hydrateClientSide && e.host && (o = e.querySelector(`[sty-id="${s}"]`))) o.innerHTML = l; else {
221
+ if (BUILD.cssVarShim && plt.$cssShim$) {
222
+ o = plt.$cssShim$.createHostStyle(n, s, l, !!(10 & t.$flags$));
223
+ const e = o["s-sc"];
224
+ e && (s = e, a = null);
225
+ } else o = doc.createElement("style"), o.innerHTML = l;
226
+ (BUILD.hydrateServerSide || BUILD.hotModuleReplacement) && o.setAttribute("sty-id", s),
227
+ e.insertBefore(o, e.querySelector("link"));
228
+ }
229
+ a && a.add(s);
230
+ }
231
+ } else BUILD.constructableCSS && !e.adoptedStyleSheets.includes(l) && (e.adoptedStyleSheets = [ ...e.adoptedStyleSheets, l ]);
232
+ return s;
233
+ }, attachStyles = e => {
234
+ const t = e.$cmpMeta$, o = e.$hostElement$, n = t.$flags$, s = createTime("attachStyles", t.$tagName$), l = addStyle(BUILD.shadowDom && supportsShadow && o.shadowRoot ? o.shadowRoot : o.getRootNode(), t, e.$modeName$, o);
235
+ (BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && 10 & n && (o["s-sc"] = l,
236
+ o.classList.add(l + "-h"), BUILD.scoped && 2 & n && o.classList.add(l + "-s")),
237
+ s();
238
+ }, getScopeId = (e, t) => "sc-" + (BUILD.mode && t && 32 & e.$flags$ ? e.$tagName$ + "-" + t : e.$tagName$), computeMode = e => modeResolutionChain.map((t => t(e))).find((e => !!e)), setMode = e => modeResolutionChain.push(e), getMode = e => getHostRef(e).$modeName$, EMPTY_OBJ = {}, isComplexType = e => "object" == (e = typeof e) || "function" === e, isPromise = e => !!e && ("object" == typeof e || "function" == typeof e) && "function" == typeof e.then, h = (e, t, ...o) => {
239
+ let n = null, s = null, l = null, a = !1, r = !1;
240
+ const i = [], d = t => {
241
+ for (let o = 0; o < t.length; o++) n = t[o], Array.isArray(n) ? d(n) : null != n && "boolean" != typeof n && ((a = "function" != typeof e && !isComplexType(n)) ? n = String(n) : BUILD.isDev && "function" != typeof e && n.$flags$,
242
+ a && r ? i[i.length - 1].$text$ += n : i.push(a ? newVNode(null, n) : n), r = a);
243
+ };
244
+ if (d(o), t && (BUILD.isDev && "input" === e && validateInputProperties(t), BUILD.vdomKey && t.key && (s = t.key),
245
+ BUILD.slotRelocation && t.name && (l = t.name), BUILD.vdomClass)) {
246
+ const e = t.className || t.class;
247
+ e && (t.class = "object" != typeof e ? e : Object.keys(e).filter((t => e[t])).join(" "));
248
+ }
249
+ if (BUILD.isDev && i.some(isHost), BUILD.vdomFunctional && "function" == typeof e) return e(null === t ? {} : t, i, vdomFnUtils);
250
+ const c = newVNode(e, null);
251
+ return c.$attrs$ = t, i.length > 0 && (c.$children$ = i), BUILD.vdomKey && (c.$key$ = s),
252
+ BUILD.slotRelocation && (c.$name$ = l), c;
253
+ }, newVNode = (e, t) => {
254
+ const o = {
255
+ $flags$: 0,
256
+ $tag$: e,
257
+ $text$: t,
258
+ $elm$: null,
259
+ $children$: null
260
+ };
261
+ return BUILD.vdomAttribute && (o.$attrs$ = null), BUILD.vdomKey && (o.$key$ = null),
262
+ BUILD.slotRelocation && (o.$name$ = null), o;
263
+ }, Host = {}, isHost = e => e && e.$tag$ === Host, vdomFnUtils = {
264
+ forEach: (e, t) => e.map(convertToPublic).forEach(t),
265
+ map: (e, t) => e.map(convertToPublic).map(t).map(convertToPrivate)
266
+ }, convertToPublic = e => ({
267
+ vattrs: e.$attrs$,
268
+ vchildren: e.$children$,
269
+ vkey: e.$key$,
270
+ vname: e.$name$,
271
+ vtag: e.$tag$,
272
+ vtext: e.$text$
273
+ }), convertToPrivate = e => {
274
+ if ("function" == typeof e.vtag) {
275
+ const t = {
276
+ ...e.vattrs
277
+ };
278
+ return e.vkey && (t.key = e.vkey), e.vname && (t.name = e.vname), h(e.vtag, t, ...e.vchildren || []);
279
+ }
280
+ const t = newVNode(e.vtag, e.vtext);
281
+ return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname,
282
+ t;
283
+ }, validateInputProperties = e => {
284
+ const t = Object.keys(e);
285
+ -1 !== t.indexOf("value") && (t.indexOf("type"), t.indexOf("min"), t.indexOf("max"),
286
+ t.indexOf("step"));
287
+ }, setAccessor = (e, t, o, n, s, l) => {
288
+ if (o !== n) {
289
+ let a = isMemberInElement(e, t), r = t.toLowerCase();
290
+ if (BUILD.vdomClass && "class" === t) {
291
+ const t = e.classList, s = parseClassList(o), l = parseClassList(n);
292
+ t.remove(...s.filter((e => e && !l.includes(e)))), t.add(...l.filter((e => e && !s.includes(e))));
293
+ } else if (BUILD.vdomStyle && "style" === t) {
294
+ if (BUILD.updatable) for (const t in o) n && null != n[t] || (!BUILD.hydrateServerSide && t.includes("-") ? e.style.removeProperty(t) : e.style[t] = "");
295
+ for (const t in n) o && n[t] === o[t] || (!BUILD.hydrateServerSide && t.includes("-") ? e.style.setProperty(t, n[t]) : e.style[t] = n[t]);
296
+ } else if (BUILD.vdomKey && "key" === t) ; else if (BUILD.vdomRef && "ref" === t) n && n(e); else if (!BUILD.vdomListener || (BUILD.lazyLoad ? a : e.__lookupSetter__(t)) || "o" !== t[0] || "n" !== t[1]) {
297
+ if (BUILD.vdomPropOrAttr) {
298
+ const i = isComplexType(n);
299
+ if ((a || i && null !== n) && !s) try {
300
+ if (e.tagName.includes("-")) e[t] = n; else {
301
+ const s = null == n ? "" : n;
302
+ "list" === t ? a = !1 : null != o && e[t] == s || (e[t] = s);
303
+ }
304
+ } catch (e) {}
305
+ let d = !1;
306
+ BUILD.vdomXlink && r !== (r = r.replace(/^xlink\:?/, "")) && (t = r, d = !0), null == n || !1 === n ? !1 === n && "" !== e.getAttribute(t) || (BUILD.vdomXlink && d ? e.removeAttributeNS(XLINK_NS, t) : e.removeAttribute(t)) : (!a || 4 & l || s) && !i && (n = !0 === n ? "" : n,
307
+ BUILD.vdomXlink && d ? e.setAttributeNS(XLINK_NS, t, n) : e.setAttribute(t, n));
308
+ }
309
+ } else t = "-" === t[2] ? t.slice(3) : isMemberInElement(win, r) ? r.slice(2) : r[2] + t.slice(3),
310
+ o && plt.rel(e, t, o, !1), n && plt.ael(e, t, n, !1);
311
+ }
312
+ }, parseClassListRegex = /\s/, parseClassList = e => e ? e.split(parseClassListRegex) : [], updateElement = (e, t, o, n) => {
313
+ const s = 11 === t.$elm$.nodeType && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || EMPTY_OBJ, a = t.$attrs$ || EMPTY_OBJ;
314
+ if (BUILD.updatable) for (n in l) n in a || setAccessor(s, n, l[n], void 0, o, t.$flags$);
315
+ for (n in a) setAccessor(s, n, l[n], a[n], o, t.$flags$);
316
+ };
317
+
318
+ let scopeId, contentRef, hostTagName, useNativeShadowDom = !1, checkSlotFallbackVisibility = !1, checkSlotRelocate = !1, isSvgMode = !1;
319
+
320
+ const createElm = (e, t, o, n) => {
321
+ const s = t.$children$[o];
322
+ let l, a, r, i = 0;
323
+ if (BUILD.slotRelocation && !useNativeShadowDom && (checkSlotRelocate = !0, "slot" === s.$tag$ && (scopeId && n.classList.add(scopeId + "-s"),
324
+ s.$flags$ |= s.$children$ ? 2 : 1)), BUILD.isDev && s.$elm$ && consoleDevError(`The JSX ${null !== s.$text$ ? `"${s.$text$}" text` : `"${s.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://rindojs.web.app/docs/templating-jsx#avoid-shared-jsx-nodes`),
325
+ BUILD.vdomText && null !== s.$text$) l = s.$elm$ = doc.createTextNode(s.$text$); else if (BUILD.slotRelocation && 1 & s.$flags$) l = s.$elm$ = BUILD.isDebug || BUILD.hydrateServerSide ? slotReferenceDebugNode(s) : doc.createTextNode(""); else {
326
+ if (BUILD.svg && !isSvgMode && (isSvgMode = "svg" === s.$tag$), l = s.$elm$ = BUILD.svg ? doc.createElementNS(isSvgMode ? "http://www.w3.org/2000/svg" : "http://www.w3.org/1999/xhtml", BUILD.slotRelocation && 2 & s.$flags$ ? "slot-fb" : s.$tag$) : doc.createElement(BUILD.slotRelocation && 2 & s.$flags$ ? "slot-fb" : s.$tag$),
327
+ BUILD.svg && isSvgMode && "foreignObject" === s.$tag$ && (isSvgMode = !1), BUILD.vdomAttribute && updateElement(null, s, isSvgMode),
328
+ (BUILD.shadowDom || BUILD.scoped) && null != scopeId && l["s-si"] !== scopeId && l.classList.add(l["s-si"] = scopeId),
329
+ s.$children$) for (i = 0; i < s.$children$.length; ++i) a = createElm(e, s, i, l),
330
+ a && l.appendChild(a);
331
+ BUILD.svg && ("svg" === s.$tag$ ? isSvgMode = !1 : "foreignObject" === l.tagName && (isSvgMode = !0));
332
+ }
333
+ return BUILD.slotRelocation && (l["s-hn"] = hostTagName, 3 & s.$flags$ && (l["s-sr"] = !0,
334
+ l["s-cr"] = contentRef, l["s-sn"] = s.$name$ || "", r = e && e.$children$ && e.$children$[o],
335
+ r && r.$tag$ === s.$tag$ && e.$elm$ && putBackInOriginalLocation(e.$elm$, !1))),
336
+ l;
337
+ }, putBackInOriginalLocation = (e, t) => {
338
+ plt.$flags$ |= 1;
339
+ const o = e.childNodes;
340
+ for (let e = o.length - 1; e >= 0; e--) {
341
+ const n = o[e];
342
+ n["s-hn"] !== hostTagName && n["s-ol"] && (parentReferenceNode(n).insertBefore(n, referenceNode(n)),
343
+ n["s-ol"].remove(), n["s-ol"] = void 0, checkSlotRelocate = !0), t && putBackInOriginalLocation(n, t);
344
+ }
345
+ plt.$flags$ &= -2;
346
+ }, addVnodes = (e, t, o, n, s, l) => {
347
+ let a, r = BUILD.slotRelocation && e["s-cr"] && e["s-cr"].parentNode || e;
348
+ for (BUILD.shadowDom && r.shadowRoot && r.tagName === hostTagName && (r = r.shadowRoot); s <= l; ++s) n[s] && (a = createElm(null, o, s, e),
349
+ a && (n[s].$elm$ = a, r.insertBefore(a, BUILD.slotRelocation ? referenceNode(t) : t)));
350
+ }, removeVnodes = (e, t, o, n, s) => {
351
+ for (;t <= o; ++t) (n = e[t]) && (s = n.$elm$, callNodeRefs(n), BUILD.slotRelocation && (checkSlotFallbackVisibility = !0,
352
+ s["s-ol"] ? s["s-ol"].remove() : putBackInOriginalLocation(s, !0)), s.remove());
353
+ }, isSameVnode = (e, t) => e.$tag$ === t.$tag$ && (BUILD.slotRelocation && "slot" === e.$tag$ ? e.$name$ === t.$name$ : !BUILD.vdomKey || e.$key$ === t.$key$), referenceNode = e => e && e["s-ol"] || e, parentReferenceNode = e => (e["s-ol"] ? e["s-ol"] : e).parentNode, patch = (e, t) => {
354
+ const o = t.$elm$ = e.$elm$, n = e.$children$, s = t.$children$, l = t.$tag$, a = t.$text$;
355
+ let r;
356
+ BUILD.vdomText && null !== a ? BUILD.vdomText && BUILD.slotRelocation && (r = o["s-cr"]) ? r.parentNode.textContent = a : BUILD.vdomText && e.$text$ !== a && (o.data = a) : (BUILD.svg && (isSvgMode = "svg" === l || "foreignObject" !== l && isSvgMode),
357
+ (BUILD.vdomAttribute || BUILD.reflect) && (BUILD.slot && "slot" === l || updateElement(e, t, isSvgMode)),
358
+ BUILD.updatable && null !== n && null !== s ? ((e, t, o, n) => {
359
+ let s, l, a = 0, r = 0, i = 0, d = 0, c = t.length - 1, $ = t[0], m = t[c], p = n.length - 1, h = n[0], u = n[p];
360
+ for (;a <= c && r <= p; ) if (null == $) $ = t[++a]; else if (null == m) m = t[--c]; else if (null == h) h = n[++r]; else if (null == u) u = n[--p]; else if (isSameVnode($, h)) patch($, h),
361
+ $ = t[++a], h = n[++r]; else if (isSameVnode(m, u)) patch(m, u), m = t[--c], u = n[--p]; else if (isSameVnode($, u)) !BUILD.slotRelocation || "slot" !== $.$tag$ && "slot" !== u.$tag$ || putBackInOriginalLocation($.$elm$.parentNode, !1),
362
+ patch($, u), e.insertBefore($.$elm$, m.$elm$.nextSibling), $ = t[++a], u = n[--p]; else if (isSameVnode(m, h)) !BUILD.slotRelocation || "slot" !== $.$tag$ && "slot" !== u.$tag$ || putBackInOriginalLocation(m.$elm$.parentNode, !1),
363
+ patch(m, h), e.insertBefore(m.$elm$, $.$elm$), m = t[--c], h = n[++r]; else {
364
+ if (i = -1, BUILD.vdomKey) for (d = a; d <= c; ++d) if (t[d] && null !== t[d].$key$ && t[d].$key$ === h.$key$) {
365
+ i = d;
366
+ break;
367
+ }
368
+ BUILD.vdomKey && i >= 0 ? (l = t[i], l.$tag$ !== h.$tag$ ? s = createElm(t && t[r], o, i, e) : (patch(l, h),
369
+ t[i] = void 0, s = l.$elm$), h = n[++r]) : (s = createElm(t && t[r], o, r, e), h = n[++r]),
370
+ s && (BUILD.slotRelocation ? parentReferenceNode($.$elm$).insertBefore(s, referenceNode($.$elm$)) : $.$elm$.parentNode.insertBefore(s, $.$elm$));
371
+ }
372
+ a > c ? addVnodes(e, null == n[p + 1] ? null : n[p + 1].$elm$, o, n, r, p) : BUILD.updatable && r > p && removeVnodes(t, a, c);
373
+ })(o, n, t, s) : null !== s ? (BUILD.updatable && BUILD.vdomText && null !== e.$text$ && (o.textContent = ""),
374
+ addVnodes(o, null, t, s, 0, s.length - 1)) : BUILD.updatable && null !== n && removeVnodes(n, 0, n.length - 1),
375
+ BUILD.svg && isSvgMode && "svg" === l && (isSvgMode = !1));
376
+ }, updateFallbackSlotVisibility = e => {
377
+ const t = e.childNodes;
378
+ let o, n, s, l, a, r;
379
+ for (n = 0, s = t.length; n < s; n++) if (o = t[n], 1 === o.nodeType) {
380
+ if (o["s-sr"]) for (a = o["s-sn"], o.hidden = !1, l = 0; l < s; l++) if (r = t[l].nodeType,
381
+ t[l]["s-hn"] !== o["s-hn"] || "" !== a) {
382
+ if (1 === r && a === t[l].getAttribute("slot")) {
383
+ o.hidden = !0;
384
+ break;
385
+ }
386
+ } else if (1 === r || 3 === r && "" !== t[l].textContent.trim()) {
387
+ o.hidden = !0;
388
+ break;
389
+ }
390
+ updateFallbackSlotVisibility(o);
391
+ }
392
+ }, relocateNodes = [], relocateSlotContent = e => {
393
+ let t, o, n, s, l, a, r = 0;
394
+ const i = e.childNodes, d = i.length;
395
+ for (;r < d; r++) {
396
+ if (t = i[r], t["s-sr"] && (o = t["s-cr"]) && o.parentNode) for (n = o.parentNode.childNodes,
397
+ s = t["s-sn"], a = n.length - 1; a >= 0; a--) o = n[a], o["s-cn"] || o["s-nr"] || o["s-hn"] === t["s-hn"] || (isNodeLocatedInSlot(o, s) ? (l = relocateNodes.find((e => e.$nodeToRelocate$ === o)),
398
+ checkSlotFallbackVisibility = !0, o["s-sn"] = o["s-sn"] || s, l ? l.$slotRefNode$ = t : relocateNodes.push({
399
+ $slotRefNode$: t,
400
+ $nodeToRelocate$: o
401
+ }), o["s-sr"] && relocateNodes.map((e => {
402
+ isNodeLocatedInSlot(e.$nodeToRelocate$, o["s-sn"]) && (l = relocateNodes.find((e => e.$nodeToRelocate$ === o)),
403
+ l && !e.$slotRefNode$ && (e.$slotRefNode$ = l.$slotRefNode$));
404
+ }))) : relocateNodes.some((e => e.$nodeToRelocate$ === o)) || relocateNodes.push({
405
+ $nodeToRelocate$: o
406
+ }));
407
+ 1 === t.nodeType && relocateSlotContent(t);
408
+ }
409
+ }, isNodeLocatedInSlot = (e, t) => 1 === e.nodeType ? null === e.getAttribute("slot") && "" === t || e.getAttribute("slot") === t : e["s-sn"] === t || "" === t, callNodeRefs = e => {
410
+ BUILD.vdomRef && (e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(callNodeRefs));
411
+ }, renderVdom = (e, t) => {
412
+ const o = e.$hostElement$, n = e.$cmpMeta$, s = e.$vnode$ || newVNode(null, null), l = isHost(t) ? t : h(null, null, t);
413
+ if (hostTagName = o.tagName, BUILD.isDev && Array.isArray(t) && t.some(isHost)) throw new Error(`The <Host> must be the single root component.\nLooks like the render() function of "${hostTagName.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);
414
+ if (BUILD.reflect && n.$attrsToReflect$ && (l.$attrs$ = l.$attrs$ || {}, n.$attrsToReflect$.map((([e, t]) => l.$attrs$[t] = o[e]))),
415
+ l.$tag$ = null, l.$flags$ |= 4, e.$vnode$ = l, l.$elm$ = s.$elm$ = BUILD.shadowDom && o.shadowRoot || o,
416
+ (BUILD.scoped || BUILD.shadowDom) && (scopeId = o["s-sc"]), BUILD.slotRelocation && (contentRef = o["s-cr"],
417
+ useNativeShadowDom = supportsShadow, checkSlotFallbackVisibility = !1), patch(s, l),
418
+ BUILD.slotRelocation) {
419
+ if (plt.$flags$ |= 1, checkSlotRelocate) {
420
+ let e, t, o, n, s, a;
421
+ relocateSlotContent(l.$elm$);
422
+ let r = 0;
423
+ for (;r < relocateNodes.length; r++) e = relocateNodes[r], t = e.$nodeToRelocate$,
424
+ t["s-ol"] || (o = BUILD.isDebug || BUILD.hydrateServerSide ? originalLocationDebugNode(t) : doc.createTextNode(""),
425
+ o["s-nr"] = t, t.parentNode.insertBefore(t["s-ol"] = o, t));
426
+ for (r = 0; r < relocateNodes.length; r++) if (e = relocateNodes[r], t = e.$nodeToRelocate$,
427
+ e.$slotRefNode$) {
428
+ for (n = e.$slotRefNode$.parentNode, s = e.$slotRefNode$.nextSibling, o = t["s-ol"]; o = o.previousSibling; ) if (a = o["s-nr"],
429
+ a && a["s-sn"] === t["s-sn"] && n === a.parentNode && (a = a.nextSibling, !a || !a["s-nr"])) {
430
+ s = a;
431
+ break;
432
+ }
433
+ (!s && n !== t.parentNode || t.nextSibling !== s) && t !== s && (!t["s-hn"] && t["s-ol"] && (t["s-hn"] = t["s-ol"].parentNode.nodeName),
434
+ n.insertBefore(t, s));
435
+ } else 1 === t.nodeType && (t.hidden = !0);
436
+ }
437
+ checkSlotFallbackVisibility && updateFallbackSlotVisibility(l.$elm$), plt.$flags$ &= -2,
438
+ relocateNodes.length = 0;
439
+ }
440
+ }, slotReferenceDebugNode = e => doc.createComment(`<slot${e.$name$ ? ' name="' + e.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`), originalLocationDebugNode = e => doc.createComment("org-location for " + (e.localName ? `<${e.localName}> (host=${e["s-hn"]})` : `[${e.textContent}]`)), getElement = e => BUILD.lazyLoad ? getHostRef(e).$hostElement$ : e, createEvent = (e, t, o) => {
441
+ const n = getElement(e);
442
+ return {
443
+ emit: e => (BUILD.isDev && n.isConnected, emitEvent(n, t, {
444
+ bubbles: !!(4 & o),
445
+ composed: !!(2 & o),
446
+ cancelable: !!(1 & o),
447
+ detail: e
448
+ }))
449
+ };
450
+ }, emitEvent = (e, t, o) => {
451
+ const n = plt.ce(t, o);
452
+ return e.dispatchEvent(n), n;
453
+ }, attachToAncestor = (e, t) => {
454
+ BUILD.asyncLoading && t && !e.$onRenderResolve$ && t["s-p"] && t["s-p"].push(new Promise((t => e.$onRenderResolve$ = t)));
455
+ }, scheduleUpdate = (e, t) => {
456
+ if (BUILD.taskQueue && BUILD.updatable && (e.$flags$ |= 16), BUILD.asyncLoading && 4 & e.$flags$) return void (e.$flags$ |= 512);
457
+ attachToAncestor(e, e.$ancestorComponent$);
458
+ const o = () => dispatchHooks(e, t);
459
+ return BUILD.taskQueue ? writeTask(o) : o();
460
+ }, dispatchHooks = (e, t) => {
461
+ const o = e.$hostElement$, n = createTime("scheduleUpdate", e.$cmpMeta$.$tagName$), s = BUILD.lazyLoad ? e.$lazyInstance$ : o;
462
+ let l;
463
+ return t ? (BUILD.lazyLoad && BUILD.hostListener && (e.$flags$ |= 256, e.$queuedListeners$ && (e.$queuedListeners$.map((([e, t]) => safeCall(s, e, t))),
464
+ e.$queuedListeners$ = null)), emitLifecycleEvent(o, "componentWillLoad"), BUILD.cmpWillLoad && (l = safeCall(s, "componentWillLoad"))) : (emitLifecycleEvent(o, "componentWillUpdate"),
465
+ BUILD.cmpWillUpdate && (l = safeCall(s, "componentWillUpdate"))), emitLifecycleEvent(o, "componentWillRender"),
466
+ BUILD.cmpWillRender && (l = then(l, (() => safeCall(s, "componentWillRender")))),
467
+ n(), then(l, (() => updateComponent(e, s, t)));
468
+ }, updateComponent = async (e, t, o) => {
469
+ const n = e.$hostElement$, s = createTime("update", e.$cmpMeta$.$tagName$), l = n["s-rc"];
470
+ BUILD.style && o && attachStyles(e);
471
+ const a = createTime("render", e.$cmpMeta$.$tagName$);
472
+ if (BUILD.isDev && (e.$flags$ |= 1024), BUILD.hydrateServerSide ? await callRender(e, t, n) : callRender(e, t, n),
473
+ BUILD.cssVarShim && plt.$cssShim$ && plt.$cssShim$.updateHost(n), BUILD.isDev && (e.$renderCount$++,
474
+ e.$flags$ &= -1025), BUILD.hydrateServerSide) try {
475
+ serverSideConnected(n), o && (1 & e.$cmpMeta$.$flags$ ? n["s-en"] = "" : 2 & e.$cmpMeta$.$flags$ && (n["s-en"] = "c"));
476
+ } catch (e) {
477
+ consoleError(e, n);
478
+ }
479
+ if (BUILD.asyncLoading && l && (l.map((e => e())), n["s-rc"] = void 0), a(), s(),
480
+ BUILD.asyncLoading) {
481
+ const t = n["s-p"], o = () => postUpdateComponent(e);
482
+ 0 === t.length ? o() : (Promise.all(t).then(o), e.$flags$ |= 4, t.length = 0);
483
+ } else postUpdateComponent(e);
484
+ };
485
+
486
+ let renderingRef = null;
487
+
488
+ const callRender = (e, t, o) => {
489
+ const n = !!BUILD.allRenderFn, s = !!BUILD.lazyLoad, l = !!BUILD.taskQueue, a = !!BUILD.updatable;
490
+ try {
491
+ if (renderingRef = t, t = (n || t.render) && t.render(), a && l && (e.$flags$ &= -17),
492
+ (a || s) && (e.$flags$ |= 2), BUILD.hasRenderFn || BUILD.reflect) if (BUILD.vdomRender || BUILD.reflect) {
493
+ if (BUILD.hydrateServerSide) return Promise.resolve(t).then((t => renderVdom(e, t)));
494
+ renderVdom(e, t);
495
+ } else o.textContent = t;
496
+ } catch (t) {
497
+ consoleError(t, e.$hostElement$);
498
+ }
499
+ return renderingRef = null, null;
500
+ }, getRenderingRef = () => renderingRef, postUpdateComponent = e => {
501
+ const t = e.$cmpMeta$.$tagName$, o = e.$hostElement$, n = createTime("postUpdate", t), s = BUILD.lazyLoad ? e.$lazyInstance$ : o, l = e.$ancestorComponent$;
502
+ BUILD.cmpDidRender && (BUILD.isDev && (e.$flags$ |= 1024), safeCall(s, "componentDidRender"),
503
+ BUILD.isDev && (e.$flags$ &= -1025)), emitLifecycleEvent(o, "componentDidRender"),
504
+ 64 & e.$flags$ ? (BUILD.cmpDidUpdate && (BUILD.isDev && (e.$flags$ |= 1024), safeCall(s, "componentDidUpdate"),
505
+ BUILD.isDev && (e.$flags$ &= -1025)), emitLifecycleEvent(o, "componentDidUpdate"),
506
+ n()) : (e.$flags$ |= 64, BUILD.asyncLoading && BUILD.cssAnnotations && addHydratedFlag(o),
507
+ BUILD.cmpDidLoad && (BUILD.isDev && (e.$flags$ |= 2048), safeCall(s, "componentDidLoad"),
508
+ BUILD.isDev && (e.$flags$ &= -2049)), emitLifecycleEvent(o, "componentDidLoad"),
509
+ n(), BUILD.asyncLoading && (e.$onReadyResolve$(o), l || appDidLoad(t))), BUILD.hotModuleReplacement && o["s-hmr-load"] && o["s-hmr-load"](),
510
+ BUILD.method && BUILD.lazyLoad && e.$onInstanceResolve$(o), BUILD.asyncLoading && (e.$onRenderResolve$ && (e.$onRenderResolve$(),
511
+ e.$onRenderResolve$ = void 0), 512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))),
512
+ e.$flags$ &= -517);
513
+ }, forceUpdate$1 = e => {
514
+ if (BUILD.updatable) {
515
+ const t = getHostRef(e), o = t.$hostElement$.isConnected;
516
+ return o && 2 == (18 & t.$flags$) && scheduleUpdate(t, !1), o;
517
+ }
518
+ return !1;
519
+ }, appDidLoad = e => {
520
+ BUILD.cssAnnotations && addHydratedFlag(doc.documentElement), BUILD.asyncQueue && (plt.$flags$ |= 2),
521
+ nextTick((() => emitEvent(win, "appload", {
522
+ detail: {
523
+ namespace: NAMESPACE
524
+ }
525
+ }))), BUILD.profile && performance.measure && performance.measure(`[Rindo] ${NAMESPACE} initial load (by ${e})`, "st:app:start");
526
+ }, safeCall = (e, t, o) => {
527
+ if (e && e[t]) try {
528
+ return e[t](o);
529
+ } catch (e) {
530
+ consoleError(e);
531
+ }
532
+ }, then = (e, t) => e && e.then ? e.then(t) : t(), emitLifecycleEvent = (e, t) => {
533
+ BUILD.lifecycleDOMEvents && emitEvent(e, "rindo_" + t, {
534
+ bubbles: !0,
535
+ composed: !0,
536
+ detail: {
537
+ namespace: NAMESPACE
538
+ }
539
+ });
540
+ }, addHydratedFlag = e => BUILD.hydratedClass ? e.classList.add("hydrated") : BUILD.hydratedAttribute ? e.setAttribute("hydrated", "") : void 0, serverSideConnected = e => {
541
+ const t = e.children;
542
+ if (null != t) for (let e = 0, o = t.length; e < o; e++) {
543
+ const o = t[e];
544
+ "function" == typeof o.connectedCallback && o.connectedCallback(), serverSideConnected(o);
545
+ }
546
+ }, clientHydrate = (e, t, o, n, s, l, a) => {
547
+ let r, i, d, c;
548
+ if (1 === l.nodeType) {
549
+ for (r = l.getAttribute("c-id"), r && (i = r.split("."), i[0] !== a && "0" !== i[0] || (d = {
550
+ $flags$: 0,
551
+ $hostId$: i[0],
552
+ $nodeId$: i[1],
553
+ $depth$: i[2],
554
+ $index$: i[3],
555
+ $tag$: l.tagName.toLowerCase(),
556
+ $elm$: l,
557
+ $attrs$: null,
558
+ $children$: null,
559
+ $key$: null,
560
+ $name$: null,
561
+ $text$: null
562
+ }, t.push(d), l.removeAttribute("c-id"), e.$children$ || (e.$children$ = []), e.$children$[d.$index$] = d,
563
+ e = d, n && "0" === d.$depth$ && (n[d.$index$] = d.$elm$))), c = l.childNodes.length - 1; c >= 0; c--) clientHydrate(e, t, o, n, s, l.childNodes[c], a);
564
+ if (l.shadowRoot) for (c = l.shadowRoot.childNodes.length - 1; c >= 0; c--) clientHydrate(e, t, o, n, s, l.shadowRoot.childNodes[c], a);
565
+ } else if (8 === l.nodeType) i = l.nodeValue.split("."), i[1] !== a && "0" !== i[1] || (r = i[0],
566
+ d = {
567
+ $flags$: 0,
568
+ $hostId$: i[1],
569
+ $nodeId$: i[2],
570
+ $depth$: i[3],
571
+ $index$: i[4],
572
+ $elm$: l,
573
+ $attrs$: null,
574
+ $children$: null,
575
+ $key$: null,
576
+ $name$: null,
577
+ $tag$: null,
578
+ $text$: null
579
+ }, "t" === r ? (d.$elm$ = l.nextSibling, d.$elm$ && 3 === d.$elm$.nodeType && (d.$text$ = d.$elm$.textContent,
580
+ t.push(d), l.remove(), e.$children$ || (e.$children$ = []), e.$children$[d.$index$] = d,
581
+ n && "0" === d.$depth$ && (n[d.$index$] = d.$elm$))) : d.$hostId$ === a && ("s" === r ? (d.$tag$ = "slot",
582
+ i[5] ? l["s-sn"] = d.$name$ = i[5] : l["s-sn"] = "", l["s-sr"] = !0, BUILD.shadowDom && n && (d.$elm$ = doc.createElement(d.$tag$),
583
+ d.$name$ && d.$elm$.setAttribute("name", d.$name$), l.parentNode.insertBefore(d.$elm$, l),
584
+ l.remove(), "0" === d.$depth$ && (n[d.$index$] = d.$elm$)), o.push(d), e.$children$ || (e.$children$ = []),
585
+ e.$children$[d.$index$] = d) : "r" === r && (BUILD.shadowDom && n ? l.remove() : BUILD.slotRelocation && (s["s-cr"] = l,
586
+ l["s-cn"] = !0)))); else if (e && "style" === e.$tag$) {
587
+ const t = newVNode(null, l.textContent);
588
+ t.$elm$ = l, t.$index$ = "0", e.$children$ = [ t ];
589
+ }
590
+ }, initializeDocumentHydrate = (e, t) => {
591
+ if (1 === e.nodeType) {
592
+ let o = 0;
593
+ for (;o < e.childNodes.length; o++) initializeDocumentHydrate(e.childNodes[o], t);
594
+ if (e.shadowRoot) for (o = 0; o < e.shadowRoot.childNodes.length; o++) initializeDocumentHydrate(e.shadowRoot.childNodes[o], t);
595
+ } else if (8 === e.nodeType) {
596
+ const o = e.nodeValue.split(".");
597
+ "o" === o[0] && (t.set(o[1] + "." + o[2], e), e.nodeValue = "", e["s-en"] = o[3]);
598
+ }
599
+ }, parsePropertyValue = (e, t) => null == e || isComplexType(e) ? e : BUILD.propBoolean && 4 & t ? "false" !== e && ("" === e || !!e) : BUILD.propNumber && 2 & t ? parseFloat(e) : BUILD.propString && 1 & t ? String(e) : e, getValue = (e, t) => getHostRef(e).$instanceValues$.get(t), setValue = (e, t, o, n) => {
600
+ const s = getHostRef(e), l = BUILD.lazyLoad ? s.$hostElement$ : e, a = s.$instanceValues$.get(t), r = s.$flags$, i = BUILD.lazyLoad ? s.$lazyInstance$ : l;
601
+ o = parsePropertyValue(o, n.$members$[t][0]);
602
+ const d = Number.isNaN(a) && Number.isNaN(o), c = o !== a && !d;
603
+ if ((!BUILD.lazyLoad || !(8 & r) || void 0 === a) && c && (s.$instanceValues$.set(t, o),
604
+ BUILD.isDev && (1024 & s.$flags$ || s.$flags$), !BUILD.lazyLoad || i)) {
605
+ if (BUILD.watchCallback && n.$watchers$ && 128 & r) {
606
+ const e = n.$watchers$[t];
607
+ e && e.map((e => {
608
+ try {
609
+ i[e](o, a, t);
610
+ } catch (e) {
611
+ consoleError(e, l);
612
+ }
613
+ }));
614
+ }
615
+ if (BUILD.updatable && 2 == (18 & r)) {
616
+ if (BUILD.cmpShouldUpdate && i.componentShouldUpdate && !1 === i.componentShouldUpdate(o, a, t)) return;
617
+ scheduleUpdate(s, !1);
618
+ }
619
+ }
620
+ }, proxyComponent = (e, t, o) => {
621
+ if (BUILD.member && t.$members$) {
622
+ BUILD.watchCallback && e.watchers && (t.$watchers$ = e.watchers);
623
+ const n = Object.entries(t.$members$), s = e.prototype;
624
+ if (n.map((([e, [n]]) => {
625
+ (BUILD.prop || BUILD.state) && (31 & n || (!BUILD.lazyLoad || 2 & o) && 32 & n) ? Object.defineProperty(s, e, {
626
+ get() {
627
+ return getValue(this, e);
628
+ },
629
+ set(s) {
630
+ if (BUILD.isDev) {
631
+ const s = getHostRef(this);
632
+ 0 == (1 & o) && 0 == (8 & s.$flags$) && 0 != (31 & n) && 0 == (1024 & n) && consoleDevWarn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://rindojs.web.app/docs/properties#prop-mutability`);
633
+ }
634
+ setValue(this, e, s, t);
635
+ },
636
+ configurable: !0,
637
+ enumerable: !0
638
+ }) : BUILD.lazyLoad && BUILD.method && 1 & o && 64 & n && Object.defineProperty(s, e, {
639
+ value(...t) {
640
+ const o = getHostRef(this);
641
+ return o.$onInstancePromise$.then((() => o.$lazyInstance$[e](...t)));
642
+ }
643
+ });
644
+ })), BUILD.observeAttribute && (!BUILD.lazyLoad || 1 & o)) {
645
+ const o = new Map;
646
+ s.attributeChangedCallback = function(e, t, n) {
647
+ plt.jmp((() => {
648
+ const t = o.get(e);
649
+ if (this.hasOwnProperty(t)) n = this[t], delete this[t]; else if (s.hasOwnProperty(t) && "number" == typeof this[t] && this[t] == n) return;
650
+ this[t] = (null !== n || "boolean" != typeof this[t]) && n;
651
+ }));
652
+ }, e.observedAttributes = n.filter((([e, t]) => 15 & t[0])).map((([e, n]) => {
653
+ const s = n[1] || e;
654
+ return o.set(s, e), BUILD.reflect && 512 & n[0] && t.$attrsToReflect$.push([ e, s ]),
655
+ s;
656
+ }));
657
+ }
658
+ }
659
+ return e;
660
+ }, initializeComponent = async (e, t, o, n, s) => {
661
+ if ((BUILD.lazyLoad || BUILD.hydrateServerSide || BUILD.style) && 0 == (32 & t.$flags$)) {
662
+ if (BUILD.lazyLoad || BUILD.hydrateClientSide) {
663
+ if (t.$flags$ |= 32, (s = loadModule(o)).then) {
664
+ const e = (l = `st:load:${o.$tagName$}:${t.$modeName$}`, a = `[Rindo] Load module for <${o.$tagName$}>`,
665
+ BUILD.profile && performance.mark ? (0 === performance.getEntriesByName(l).length && performance.mark(l),
666
+ () => {
667
+ 0 === performance.getEntriesByName(a).length && performance.measure(a, l);
668
+ }) : () => {});
669
+ s = await s, e();
670
+ }
671
+ if ((BUILD.isDev || BUILD.isDebug) && !s) throw new Error(`Constructor for "${o.$tagName$}#${t.$modeName$}" was not found`);
672
+ BUILD.member && !s.isProxied && (BUILD.watchCallback && (o.$watchers$ = s.watchers),
673
+ proxyComponent(s, o, 2), s.isProxied = !0);
674
+ const e = createTime("createInstance", o.$tagName$);
675
+ BUILD.member && (t.$flags$ |= 8);
676
+ try {
677
+ new s(t);
678
+ } catch (e) {
679
+ consoleError(e);
680
+ }
681
+ BUILD.member && (t.$flags$ &= -9), BUILD.watchCallback && (t.$flags$ |= 128), e(),
682
+ fireConnectedCallback(t.$lazyInstance$);
683
+ } else s = e.constructor, t.$flags$ |= 32, customElements.whenDefined(o.$tagName$).then((() => t.$flags$ |= 128));
684
+ if (BUILD.style && s.style) {
685
+ let n = s.style;
686
+ BUILD.mode && "string" != typeof n && (n = n[t.$modeName$ = computeMode(e)], BUILD.hydrateServerSide && t.$modeName$ && e.setAttribute("s-mode", t.$modeName$));
687
+ const l = getScopeId(o, t.$modeName$);
688
+ if (!styles.has(l)) {
689
+ const e = createTime("registerStyles", o.$tagName$);
690
+ !BUILD.hydrateServerSide && BUILD.shadowDom && BUILD.shadowDomShim && 8 & o.$flags$ && (n = await import("./shadow-css.js").then((e => e.scopeCss(n, l, !1)))),
691
+ registerStyle(l, n, o.$flags$), e();
692
+ }
693
+ }
694
+ }
695
+ var l, a;
696
+ const r = t.$ancestorComponent$, i = () => scheduleUpdate(t, !0);
697
+ BUILD.asyncLoading && r && r["s-rc"] ? r["s-rc"].push(i) : i();
698
+ }, fireConnectedCallback = e => {
699
+ BUILD.lazyLoad && BUILD.connectedCallback && safeCall(e, "connectedCallback");
700
+ }, connectedCallback = e => {
701
+ if (0 == (1 & plt.$flags$)) {
702
+ const t = getHostRef(e), o = t.$cmpMeta$, n = createTime("connectedCallback", o.$tagName$);
703
+ if (BUILD.hostListenerTargetParent && addHostEventListeners(e, t, o.$listeners$, !0),
704
+ 1 & t.$flags$) addHostEventListeners(e, t, o.$listeners$, !1), fireConnectedCallback(t.$lazyInstance$); else {
705
+ let n;
706
+ if (t.$flags$ |= 1, BUILD.hydrateClientSide && (n = e.getAttribute("s-id"), n)) {
707
+ if (BUILD.shadowDom && supportsShadow && 1 & o.$flags$) {
708
+ const t = BUILD.mode ? addStyle(e.shadowRoot, o, e.getAttribute("s-mode")) : addStyle(e.shadowRoot, o);
709
+ e.classList.remove(t + "-h", t + "-s");
710
+ }
711
+ ((e, t, o, n) => {
712
+ const s = createTime("hydrateClient", t), l = e.shadowRoot, a = [], r = BUILD.shadowDom && l ? [] : null, i = n.$vnode$ = newVNode(t, null);
713
+ plt.$orgLocNodes$ || initializeDocumentHydrate(doc.body, plt.$orgLocNodes$ = new Map),
714
+ e["s-id"] = o, e.removeAttribute("s-id"), clientHydrate(i, a, [], r, e, e, o), a.map((e => {
715
+ const o = e.$hostId$ + "." + e.$nodeId$, n = plt.$orgLocNodes$.get(o), s = e.$elm$;
716
+ n && supportsShadow && "" === n["s-en"] && n.parentNode.insertBefore(s, n.nextSibling),
717
+ l || (s["s-hn"] = t, n && (s["s-ol"] = n, s["s-ol"]["s-nr"] = s)), plt.$orgLocNodes$.delete(o);
718
+ })), BUILD.shadowDom && l && r.map((e => {
719
+ e && l.appendChild(e);
720
+ })), s();
721
+ })(e, o.$tagName$, n, t);
722
+ }
723
+ if (BUILD.slotRelocation && !n && (BUILD.hydrateServerSide || (BUILD.slot || BUILD.shadowDom) && 12 & o.$flags$) && setContentReference(e),
724
+ BUILD.asyncLoading) {
725
+ let o = e;
726
+ for (;o = o.parentNode || o.host; ) if (BUILD.hydrateClientSide && 1 === o.nodeType && o.hasAttribute("s-id") && o["s-p"] || o["s-p"]) {
727
+ attachToAncestor(t, t.$ancestorComponent$ = o);
728
+ break;
729
+ }
730
+ }
731
+ BUILD.prop && !BUILD.hydrateServerSide && o.$members$ && Object.entries(o.$members$).map((([t, [o]]) => {
732
+ if (31 & o && e.hasOwnProperty(t)) {
733
+ const o = e[t];
734
+ delete e[t], e[t] = o;
735
+ }
736
+ })), BUILD.initializeNextTick ? nextTick((() => initializeComponent(e, t, o))) : initializeComponent(e, t, o);
737
+ }
738
+ n();
739
+ }
740
+ }, setContentReference = e => {
741
+ const t = e["s-cr"] = doc.createComment(BUILD.isDebug ? `content-ref (host=${e.localName})` : "");
742
+ t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
743
+ }, disconnectedCallback = e => {
744
+ if (0 == (1 & plt.$flags$)) {
745
+ const t = getHostRef(e), o = BUILD.lazyLoad ? t.$lazyInstance$ : e;
746
+ BUILD.hostListener && t.$rmListeners$ && (t.$rmListeners$.map((e => e())), t.$rmListeners$ = void 0),
747
+ BUILD.cssVarShim && plt.$cssShim$ && plt.$cssShim$.removeHost(e), BUILD.lazyLoad && BUILD.disconnectedCallback && safeCall(o, "disconnectedCallback"),
748
+ BUILD.cmpDidUnload && safeCall(o, "componentDidUnload");
749
+ }
750
+ }, defineCustomElement = (e, t) => {
751
+ customElements.define(t[1], proxyCustomElement(e, t));
752
+ }, proxyCustomElement = (e, t) => {
753
+ const o = {
754
+ $flags$: t[0],
755
+ $tagName$: t[1]
756
+ };
757
+ BUILD.member && (o.$members$ = t[2]), BUILD.hostListener && (o.$listeners$ = t[3]),
758
+ BUILD.watchCallback && (o.$watchers$ = e.$watchers$), BUILD.reflect && (o.$attrsToReflect$ = []),
759
+ BUILD.shadowDom && !supportsShadow && 1 & o.$flags$ && (o.$flags$ |= 8);
760
+ const n = e.prototype.connectedCallback, s = e.prototype.disconnectedCallback;
761
+ return Object.assign(e.prototype, {
762
+ __registerHost() {
763
+ registerHost(this, o);
764
+ },
765
+ connectedCallback() {
766
+ connectedCallback(this), BUILD.connectedCallback && n && n.call(this);
767
+ },
768
+ disconnectedCallback() {
769
+ disconnectedCallback(this), BUILD.disconnectedCallback && s && s.call(this);
770
+ },
771
+ __attachShadow() {
772
+ this.shadowRoot = this;
773
+ }
774
+ }), e.is = o.$tagName$, proxyComponent(e, o, 3);
775
+ }, forceModeUpdate = e => {
776
+ if (BUILD.style && BUILD.mode && !BUILD.lazyLoad) {
777
+ const t = computeMode(e), o = getHostRef(e);
778
+ if (o.$modeName$ !== t) {
779
+ const n = o.$cmpMeta$, s = e["s-sc"], l = getScopeId(n, t), a = e.constructor.style[t];
780
+ n.$flags$, a && (styles.has(l) || registerStyle(l, a), o.$modeName$ = t, e.classList.remove(s + "-h", s + "-s"),
781
+ attachStyles(o), forceUpdate$1(e));
782
+ }
783
+ }
784
+ }, patchCloneNode = e => {
785
+ const t = e.cloneNode;
786
+ e.cloneNode = function(e) {
787
+ const o = this, n = !!BUILD.shadowDom && o.shadowRoot && supportsShadow, s = t.call(o, !!n && e);
788
+ if (BUILD.slot && !n && e) {
789
+ let e, t, n = 0;
790
+ const l = [ "s-id", "s-cr", "s-lr", "s-rc", "s-sc", "s-p", "s-cn", "s-sr", "s-sn", "s-hn", "s-ol", "s-nr", "s-si" ];
791
+ for (;n < o.childNodes.length; n++) e = o.childNodes[n]["s-nr"], t = l.every((e => !o.childNodes[n][e])),
792
+ e && (BUILD.appendChildSlotFix && s.__appendChild ? s.__appendChild(e.cloneNode(!0)) : s.appendChild(e.cloneNode(!0))),
793
+ t && s.appendChild(o.childNodes[n].cloneNode(!0));
794
+ }
795
+ return s;
796
+ };
797
+ }, patchSlotAppendChild = e => {
798
+ e.__appendChild = e.appendChild, e.appendChild = function(e) {
799
+ const t = e["s-sn"] = getSlotName(e), o = getHostSlotNode(this.childNodes, t);
800
+ if (o) {
801
+ const n = getHostSlotChildNodes(o, t), s = n[n.length - 1];
802
+ return s.parentNode.insertBefore(e, s.nextSibling);
803
+ }
804
+ return this.__appendChild(e);
805
+ };
806
+ }, patchTextContent = (e, t) => {
807
+ if (BUILD.scoped && 2 & t.$flags$) {
808
+ const t = Object.getOwnPropertyDescriptor(Node.prototype, "textContent");
809
+ Object.defineProperty(e, "__textContent", t), Object.defineProperty(e, "textContent", {
810
+ get() {
811
+ var e;
812
+ const t = getHostSlotNode(this.childNodes, "");
813
+ return 3 === (null === (e = null == t ? void 0 : t.nextSibling) || void 0 === e ? void 0 : e.nodeType) ? t.nextSibling.textContent : t ? t.textContent : this.__textContent;
814
+ },
815
+ set(e) {
816
+ var t;
817
+ const o = getHostSlotNode(this.childNodes, "");
818
+ if (3 === (null === (t = null == o ? void 0 : o.nextSibling) || void 0 === t ? void 0 : t.nodeType)) o.nextSibling.textContent = e; else if (o) o.textContent = e; else {
819
+ this.__textContent = e;
820
+ const t = this["s-cr"];
821
+ t && this.insertBefore(t, this.firstChild);
822
+ }
823
+ }
824
+ });
825
+ }
826
+ }, patchChildSlotNodes = (e, t) => {
827
+ class o extends Array {
828
+ item(e) {
829
+ return this[e];
830
+ }
831
+ }
832
+ if (8 & t.$flags$) {
833
+ const t = e.__lookupGetter__("childNodes");
834
+ Object.defineProperty(e, "children", {
835
+ get() {
836
+ return this.childNodes.map((e => 1 === e.nodeType));
837
+ }
838
+ }), Object.defineProperty(e, "childElementCount", {
839
+ get: () => e.children.length
840
+ }), Object.defineProperty(e, "childNodes", {
841
+ get() {
842
+ const e = t.call(this);
843
+ if (0 == (1 & plt.$flags$) && 2 & getHostRef(this).$flags$) {
844
+ const t = new o;
845
+ for (let o = 0; o < e.length; o++) {
846
+ const n = e[o]["s-nr"];
847
+ n && t.push(n);
848
+ }
849
+ return t;
850
+ }
851
+ return o.from(e);
852
+ }
853
+ });
854
+ }
855
+ }, getSlotName = e => e["s-sn"] || 1 === e.nodeType && e.getAttribute("slot") || "", getHostSlotNode = (e, t) => {
856
+ let o, n = 0;
857
+ for (;n < e.length; n++) {
858
+ if (o = e[n], o["s-sr"] && o["s-sn"] === t) return o;
859
+ if (o = getHostSlotNode(o.childNodes, t), o) return o;
860
+ }
861
+ return null;
862
+ }, getHostSlotChildNodes = (e, t) => {
863
+ const o = [ e ];
864
+ for (;(e = e.nextSibling) && e["s-sn"] === t; ) o.push(e);
865
+ return o;
866
+ }, bootstrapLazy = (e, t = {}) => {
867
+ BUILD.profile && performance.mark && performance.mark("st:app:start"), (() => {
868
+ if (BUILD.devTools) {
869
+ const e = win.rindo = win.rindo || {}, t = e.inspect;
870
+ e.inspect = e => {
871
+ let o = (e => {
872
+ const t = getHostRef(e);
873
+ if (!t) return;
874
+ const o = t.$flags$, n = t.$hostElement$;
875
+ return {
876
+ renderCount: t.$renderCount$,
877
+ flags: {
878
+ hasRendered: !!(2 & o),
879
+ hasConnected: !!(1 & o),
880
+ isWaitingForChildren: !!(4 & o),
881
+ isConstructingInstance: !!(8 & o),
882
+ isQueuedForUpdate: !!(16 & o),
883
+ hasInitializedComponent: !!(32 & o),
884
+ hasLoadedComponent: !!(64 & o),
885
+ isWatchReady: !!(128 & o),
886
+ isListenReady: !!(256 & o),
887
+ needsRerender: !!(512 & o)
888
+ },
889
+ instanceValues: t.$instanceValues$,
890
+ ancestorComponent: t.$ancestorComponent$,
891
+ hostElement: n,
892
+ lazyInstance: t.$lazyInstance$,
893
+ vnode: t.$vnode$,
894
+ modeName: t.$modeName$,
895
+ onReadyPromise: t.$onReadyPromise$,
896
+ onReadyResolve: t.$onReadyResolve$,
897
+ onInstancePromise: t.$onInstancePromise$,
898
+ onInstanceResolve: t.$onInstanceResolve$,
899
+ onRenderResolve: t.$onRenderResolve$,
900
+ queuedListeners: t.$queuedListeners$,
901
+ rmListeners: t.$rmListeners$,
902
+ "s-id": n["s-id"],
903
+ "s-cr": n["s-cr"],
904
+ "s-lr": n["s-lr"],
905
+ "s-p": n["s-p"],
906
+ "s-rc": n["s-rc"],
907
+ "s-sc": n["s-sc"]
908
+ };
909
+ })(e);
910
+ return o || "function" != typeof t || (o = t(e)), o;
911
+ };
912
+ }
913
+ })();
914
+ const o = createTime("bootstrapLazy"), n = [], s = t.exclude || [], l = win.customElements, a = doc.head, r = a.querySelector("meta[charset]"), i = doc.createElement("style"), d = [], c = doc.querySelectorAll("[sty-id]");
915
+ let $, m = !0, p = 0;
916
+ if (Object.assign(plt, t), plt.$resourcesUrl$ = new URL(t.resourcesUrl || "./", doc.baseURI).href,
917
+ BUILD.asyncQueue && t.syncQueue && (plt.$flags$ |= 4), BUILD.hydrateClientSide && (plt.$flags$ |= 2),
918
+ BUILD.hydrateClientSide && BUILD.shadowDom) for (;p < c.length; p++) registerStyle(c[p].getAttribute("sty-id"), c[p].innerHTML.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{"));
919
+ e.map((e => {
920
+ e[1].map((o => {
921
+ const a = {
922
+ $flags$: o[0],
923
+ $tagName$: o[1],
924
+ $members$: o[2],
925
+ $listeners$: o[3]
926
+ };
927
+ BUILD.member && (a.$members$ = o[2]), BUILD.hostListener && (a.$listeners$ = o[3]),
928
+ BUILD.reflect && (a.$attrsToReflect$ = []), BUILD.watchCallback && (a.$watchers$ = {}),
929
+ BUILD.shadowDom && !supportsShadow && 1 & a.$flags$ && (a.$flags$ |= 8);
930
+ const r = BUILD.transformTagName && t.transformTagName ? t.transformTagName(a.$tagName$) : a.$tagName$, i = class extends HTMLElement {
931
+ constructor(e) {
932
+ super(e), registerHost(e = this, a), BUILD.shadowDom && 1 & a.$flags$ && (BUILD.hydrateServerSide || "shadowRoot" in e || (e.shadowRoot = e)),
933
+ BUILD.slotChildNodesFix && patchChildSlotNodes(e, a);
934
+ }
935
+ connectedCallback() {
936
+ $ && (clearTimeout($), $ = null), m ? d.push(this) : plt.jmp((() => connectedCallback(this)));
937
+ }
938
+ disconnectedCallback() {
939
+ plt.jmp((() => disconnectedCallback(this)));
940
+ }
941
+ componentOnReady() {
942
+ return getHostRef(this).$onReadyPromise$;
943
+ }
944
+ };
945
+ BUILD.cloneNodeFix && patchCloneNode(i.prototype), BUILD.appendChildSlotFix && patchSlotAppendChild(i.prototype),
946
+ BUILD.hotModuleReplacement && (i.prototype["s-hmr"] = function(e) {
947
+ ((e, t, o) => {
948
+ const n = getHostRef(e);
949
+ n.$flags$ = 1, e["s-hmr-load"] = () => {
950
+ delete e["s-hmr-load"];
951
+ }, initializeComponent(e, n, t);
952
+ })(this, a);
953
+ }), BUILD.scopedSlotTextContentFix && patchTextContent(i.prototype, a), a.$lazyBundleId$ = e[0],
954
+ s.includes(r) || l.get(r) || (n.push(r), l.define(r, proxyComponent(i, a, 1)));
955
+ }));
956
+ })), BUILD.invisiblePrehydration && (BUILD.hydratedClass || BUILD.hydratedAttribute) && (i.innerHTML = n + "{visibility:hidden}.hydrated{visibility:inherit}",
957
+ i.setAttribute("data-styles", ""), a.insertBefore(i, r ? r.nextSibling : a.firstChild)),
958
+ m = !1, d.length ? d.map((e => e.connectedCallback())) : BUILD.profile ? plt.jmp((() => $ = setTimeout(appDidLoad, 30, "timeout"))) : plt.jmp((() => $ = setTimeout(appDidLoad, 30))),
959
+ o();
960
+ }, getAssetPath = e => {
961
+ const t = new URL(e, plt.$resourcesUrl$);
962
+ return t.origin !== win.location.origin ? t.href : t.pathname;
963
+ }, setAssetPath = e => plt.$resourcesUrl$ = e, getConnect = (e, t) => {
964
+ const o = () => {
965
+ let e = doc.querySelector(t);
966
+ return e || (e = doc.createElement(t), doc.body.appendChild(e)), "function" == typeof e.componentOnReady ? e.componentOnReady() : Promise.resolve(e);
967
+ };
968
+ return {
969
+ create: (...e) => o().then((t => t.create(...e))),
970
+ componentOnReady: o
971
+ };
972
+ }, getContext = (e, t) => t in Context ? Context[t] : "window" === t ? win : "document" === t ? doc : "isServer" === t || "isPrerender" === t ? !!BUILD.hydrateServerSide : "isClient" === t ? !BUILD.hydrateServerSide : "resourcesUrl" === t || "publicPath" === t ? getAssetPath(".") : "queue" === t ? {
973
+ write: writeTask,
974
+ read: readTask,
975
+ tick: {
976
+ then: e => nextTick(e)
977
+ }
978
+ } : void 0, insertVdomAnnotations = (e, t) => {
979
+ if (null != e) {
980
+ const o = {
981
+ hostIds: 0,
982
+ rootLevelIds: 0,
983
+ staticComponents: new Set(t)
984
+ }, n = [];
985
+ parseVNodeAnnotations(e, e.body, o, n), n.forEach((t => {
986
+ if (null != t) {
987
+ const n = t["s-nr"];
988
+ let s = n["s-host-id"], l = n["s-node-id"], a = `${s}.${l}`;
989
+ if (null == s) if (s = 0, o.rootLevelIds++, l = o.rootLevelIds, a = `${s}.${l}`,
990
+ 1 === n.nodeType) n.setAttribute("c-id", a); else if (3 === n.nodeType) {
991
+ if (0 === s && "" === n.nodeValue.trim()) return void t.remove();
992
+ const o = e.createComment(a);
993
+ o.nodeValue = `t.${a}`, n.parentNode.insertBefore(o, n);
994
+ }
995
+ let r = `o.${a}`;
996
+ const i = t.parentElement;
997
+ i && ("" === i["s-en"] ? r += "." : "c" === i["s-en"] && (r += ".c")), t.nodeValue = r;
998
+ }
999
+ }));
1000
+ }
1001
+ }, parseVNodeAnnotations = (e, t, o, n) => {
1002
+ null != t && (null != t["s-nr"] && n.push(t), 1 === t.nodeType && t.childNodes.forEach((t => {
1003
+ const s = getHostRef(t);
1004
+ if (null != s && !o.staticComponents.has(t.nodeName.toLowerCase())) {
1005
+ const n = {
1006
+ nodeIds: 0
1007
+ };
1008
+ insertVNodeAnnotations(e, t, s.$vnode$, o, n);
1009
+ }
1010
+ parseVNodeAnnotations(e, t, o, n);
1011
+ })));
1012
+ }, insertVNodeAnnotations = (e, t, o, n, s) => {
1013
+ if (null != o) {
1014
+ const l = ++n.hostIds;
1015
+ if (t.setAttribute("s-id", l), null != t["s-cr"] && (t["s-cr"].nodeValue = `r.${l}`),
1016
+ null != o.$children$) {
1017
+ const t = 0;
1018
+ o.$children$.forEach(((o, n) => {
1019
+ insertChildVNodeAnnotations(e, o, s, l, t, n);
1020
+ }));
1021
+ }
1022
+ if (t && o && o.$elm$ && !t.hasAttribute("c-id")) {
1023
+ const e = t.parentElement;
1024
+ if (e && e.childNodes) {
1025
+ const n = Array.from(e.childNodes), s = n.find((e => 8 === e.nodeType && e["s-sr"]));
1026
+ if (s) {
1027
+ const e = n.indexOf(t) - 1;
1028
+ o.$elm$.setAttribute("c-id", `${s["s-host-id"]}.${s["s-node-id"]}.0.${e}`);
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ }, insertChildVNodeAnnotations = (e, t, o, n, s, l) => {
1034
+ const a = t.$elm$;
1035
+ if (null == a) return;
1036
+ const r = o.nodeIds++, i = `${n}.${r}.${s}.${l}`;
1037
+ if (a["s-host-id"] = n, a["s-node-id"] = r, 1 === a.nodeType) a.setAttribute("c-id", i); else if (3 === a.nodeType) {
1038
+ const t = a.parentNode, o = t.nodeName;
1039
+ if ("STYLE" !== o && "SCRIPT" !== o) {
1040
+ const o = `t.${i}`, n = e.createComment(o);
1041
+ t.insertBefore(n, a);
1042
+ }
1043
+ } else if (8 === a.nodeType && a["s-sr"]) {
1044
+ const e = `s.${i}.${a["s-sn"] || ""}`;
1045
+ a.nodeValue = e;
1046
+ }
1047
+ if (null != t.$children$) {
1048
+ const l = s + 1;
1049
+ t.$children$.forEach(((t, s) => {
1050
+ insertChildVNodeAnnotations(e, t, o, n, l, s);
1051
+ }));
1052
+ }
1053
+ }, Fragment = (e, t) => t, NO_HYDRATE_TAGS = new Set([ "CODE", "HEAD", "IFRAME", "INPUT", "OBJECT", "OUTPUT", "NOSCRIPT", "PRE", "SCRIPT", "SELECT", "STYLE", "TEMPLATE", "TEXTAREA" ]), hAsync = (e, t, ...o) => {
1054
+ if (Array.isArray(o) && o.length > 0) {
1055
+ const n = o.flat(1 / 0);
1056
+ return n.some(isPromise) ? Promise.all(n).then((o => h(e, t, ...o))).catch((o => h(e, t))) : h(e, t, ...o);
1057
+ }
1058
+ return h(e, t);
1059
+ };
1060
+
1061
+ let customError;
1062
+
1063
+ const cmpModules = new Map, getModule = e => {
1064
+ if ("string" == typeof e) {
1065
+ e = e.toLowerCase();
1066
+ const t = cmpModules.get(e);
1067
+ if (null != t) return t[e];
1068
+ }
1069
+ return null;
1070
+ }, loadModule = (e, t, o) => getModule(e.$tagName$), isMemberInElement = (e, t) => {
1071
+ if (null != e) {
1072
+ if (t in e) return !0;
1073
+ const o = getModule(e.nodeName);
1074
+ if (null != o) {
1075
+ const e = o;
1076
+ if (null != e && null != e.cmpMeta && null != e.cmpMeta.$members$) return t in e.cmpMeta.$members$;
1077
+ }
1078
+ }
1079
+ return !1;
1080
+ }, registerComponents = e => {
1081
+ for (const t of e) {
1082
+ const e = t.cmpMeta.$tagName$;
1083
+ cmpModules.set(e, {
1084
+ [e]: t
1085
+ });
1086
+ }
1087
+ }, win = window, doc = win.document, readTask = e => {
1088
+ process.nextTick((() => {
1089
+ try {
1090
+ e();
1091
+ } catch (e) {
1092
+ consoleError(e);
1093
+ }
1094
+ }));
1095
+ }, writeTask = e => {
1096
+ process.nextTick((() => {
1097
+ try {
1098
+ e();
1099
+ } catch (e) {
1100
+ consoleError(e);
1101
+ }
1102
+ }));
1103
+ }, resolved = Promise.resolve(), nextTick = e => resolved.then(e), defaultConsoleError = e => {
1104
+ null != e && console.error(e.stack || e.message || e);
1105
+ }, consoleError = (e, t) => (customError || defaultConsoleError)(e, t), consoleDevError = (...e) => {}, consoleDevWarn = (...e) => {}, consoleDevInfo = (...e) => {}, setErrorHandler = e => customError = e, Context = {}, plt = {
1106
+ $flags$: 0,
1107
+ $resourcesUrl$: "",
1108
+ jmp: e => e(),
1109
+ raf: e => requestAnimationFrame(e),
1110
+ ael: (e, t, o, n) => e.addEventListener(t, o, n),
1111
+ rel: (e, t, o, n) => e.removeEventListener(t, o, n),
1112
+ ce: (e, t) => new win.CustomEvent(e, t)
1113
+ }, setPlatformHelpers = e => {
1114
+ Object.assign(plt, e);
1115
+ }, supportsShadow = !1, supportsListenerOptions = !1, supportsConstructibleStylesheets = !1, hostRefs = new WeakMap, getHostRef = e => hostRefs.get(e), registerInstance = (e, t) => hostRefs.set(t.$lazyInstance$ = e, t), registerHost = (e, t) => {
1116
+ const o = {
1117
+ $flags$: 0,
1118
+ $cmpMeta$: t,
1119
+ $hostElement$: e,
1120
+ $instanceValues$: new Map,
1121
+ $renderCount$: 0
1122
+ };
1123
+ return o.$onInstancePromise$ = new Promise((e => o.$onInstanceResolve$ = e)), o.$onReadyPromise$ = new Promise((e => o.$onReadyResolve$ = e)),
1124
+ e["s-p"] = [], e["s-rc"] = [], addHostEventListeners(e, o, t.$listeners$, !1), hostRefs.set(e, o);
1125
+ }, Build = {
1126
+ isDev: !1,
1127
+ isBrowser: !1,
1128
+ isServer: !0,
1129
+ isTesting: !1
1130
+ }, styles = new Map, modeResolutionChain = [];
1131
+
1132
+ export { Build, Context, Fragment, Host, addHostEventListeners, bootstrapLazy, cmpModules, connectedCallback, consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, createEvent, defineCustomElement, disconnectedCallback, doc, forceModeUpdate, forceUpdate$1 as forceUpdate, getAssetPath, getConnect, getContext, getElement, getHostRef, getMode, getRenderingRef, getValue, hAsync as h, hydrateApp, insertVdomAnnotations, isMemberInElement, loadModule, modeResolutionChain, nextTick, parsePropertyValue, plt, postUpdateComponent, proxyComponent, proxyCustomElement, readTask, registerComponents, registerHost, registerInstance, renderVdom, setAssetPath, setErrorHandler, setMode, setPlatformHelpers, setValue, styles, supportsConstructibleStylesheets, supportsListenerOptions, supportsShadow, win, writeTask };