apprun 3.38.0 → 6.0.0-rc.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 (113) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/README.md +18 -10
  3. package/apprun.d.ts +67 -23
  4. package/dist/apprun-code.js +1 -1
  5. package/dist/apprun-code.js.map +1 -1
  6. package/dist/apprun-dev-tools.js +1 -1
  7. package/dist/apprun-dev-tools.js.map +1 -1
  8. package/dist/apprun-html.esm.js +7 -7
  9. package/dist/apprun-html.esm.js.map +1 -1
  10. package/dist/apprun-html.js +1 -1
  11. package/dist/apprun-html.js.map +1 -1
  12. package/dist/apprun-play.js +1 -1
  13. package/dist/apprun-play.js.map +1 -1
  14. package/dist/apprun.esm.js +1 -1
  15. package/dist/apprun.esm.js.map +1 -1
  16. package/dist/apprun.js +1 -1
  17. package/dist/apprun.js.map +1 -1
  18. package/esm/add-components.js +7 -7
  19. package/esm/add-components.js.map +1 -1
  20. package/esm/app.js +81 -32
  21. package/esm/app.js.map +1 -1
  22. package/esm/apprun-code.js +8 -2
  23. package/esm/apprun-code.js.map +1 -1
  24. package/esm/apprun-html.js +14 -9
  25. package/esm/apprun-html.js.map +1 -1
  26. package/esm/apprun-play.js +7 -1
  27. package/esm/apprun-play.js.map +1 -1
  28. package/esm/apprun.js +38 -19
  29. package/esm/apprun.js.map +1 -1
  30. package/esm/component.js +90 -37
  31. package/esm/component.js.map +1 -1
  32. package/esm/directive.js +1 -1
  33. package/esm/directive.js.map +1 -1
  34. package/esm/router.js +73 -19
  35. package/esm/router.js.map +1 -1
  36. package/esm/types.js +2 -1
  37. package/esm/types.js.map +1 -1
  38. package/esm/vdom-my.js +52 -52
  39. package/esm/vdom-my.js.map +1 -1
  40. package/esm/vdom-to-html.js +8 -1
  41. package/esm/vdom-to-html.js.map +1 -1
  42. package/esm/vdom.js +3 -3
  43. package/esm/vdom.js.map +1 -1
  44. package/esm/version.js +1 -1
  45. package/esm/version.js.map +1 -1
  46. package/esm/web-component.js +23 -6
  47. package/esm/web-component.js.map +1 -1
  48. package/jsx-runtime.js +1 -1
  49. package/jsx-runtime.js.map +1 -1
  50. package/package.json +62 -2
  51. package/.clinerules +0 -1
  52. package/.travis.yml +0 -10
  53. package/BACKERS.md +0 -8
  54. package/CNAME +0 -1
  55. package/WHATSNEW.md +0 -367
  56. package/ai/apprun-html.prompt.md +0 -290
  57. package/ai/apprun.prompt.md +0 -602
  58. package/apprun-book.jpg +0 -0
  59. package/dist/apprun-dev-tools-tests.js +0 -1
  60. package/dist/apprun-dev-tools.js.LICENSE.txt +0 -1
  61. package/dist/apprun-play-html.esm.js +0 -34
  62. package/dist/apprun-play-html.esm.js.map +0 -1
  63. package/error.log +0 -0
  64. package/esm/apprun-play-html.js +0 -210
  65. package/esm/apprun-play-html.js.map +0 -1
  66. package/esm/shadow.js +0 -8
  67. package/esm/shadow.js.map +0 -1
  68. package/esm/vdom-html.js +0 -22
  69. package/esm/vdom-html.js.map +0 -1
  70. package/esm/vdom-my-new.js +0 -327
  71. package/esm/vdom-my-new.js.map +0 -1
  72. package/esm/vdom-patch.js +0 -103
  73. package/esm/vdom-patch.js.map +0 -1
  74. package/index.html +0 -87
  75. package/jest.config.js +0 -57
  76. package/jest.setup.js +0 -73
  77. package/logo.png +0 -0
  78. package/react.js +0 -13
  79. package/rollup.config.js +0 -62
  80. package/src/add-components.ts +0 -103
  81. package/src/app.ts +0 -173
  82. package/src/apprun-code.tsx +0 -177
  83. package/src/apprun-dev-tools-tests.tsx +0 -101
  84. package/src/apprun-dev-tools.tsx +0 -307
  85. package/src/apprun-html.ts +0 -25
  86. package/src/apprun-play.tsx +0 -249
  87. package/src/apprun.ts +0 -238
  88. package/src/component.ts +0 -388
  89. package/src/createState.ts +0 -11
  90. package/src/decorator.ts +0 -98
  91. package/src/directive.ts +0 -303
  92. package/src/global.d.ts +0 -22
  93. package/src/router.ts +0 -311
  94. package/src/shadow.tsx +0 -8
  95. package/src/tsconfig.json +0 -16
  96. package/src/type-utils.ts +0 -130
  97. package/src/types.ts +0 -151
  98. package/src/vdom-html.ts_ +0 -20
  99. package/src/vdom-lit-html.ts +0 -67
  100. package/src/vdom-my-new.ts +0 -311
  101. package/src/vdom-my-prop-attr.ts +0 -241
  102. package/src/vdom-my.ts +0 -286
  103. package/src/vdom-patch.ts +0 -108
  104. package/src/vdom-to-html.tsx +0 -49
  105. package/src/vdom.ts +0 -28
  106. package/src/version.ts +0 -16
  107. package/src/web-component.ts +0 -154
  108. package/tsconfig.jest.json +0 -49
  109. package/tsconfig.json +0 -16
  110. package/tslint.json +0 -114
  111. package/typescriptreact.json +0 -87
  112. package/viewEngine.js +0 -54
  113. package/webpack.config.cjs +0 -41
package/esm/vdom-my.js CHANGED
@@ -23,22 +23,22 @@
23
23
  * - Element creation with props, children, and event handling
24
24
  * - SVG element support with proper namespace handling
25
25
  * - Component lifecycle management and caching
26
- * - Keyed element optimization with automatic cleanup for memory management
27
- * - Safe HTML insertion and text node creation
26
+ * - Parent-scoped keyed element optimization for memory-safe DOM reuse
27
+ * - Trusted HTML insertion and text node creation
28
28
  * - Directive processing integration
29
29
  *
30
30
  * Implementation:
31
- * - Uses plain JavaScript object for keyCache instead of Map for better performance
32
- * - Implements automatic cleanup of disconnected elements from keyCache
31
+ * - Builds keyed lookup from the current parent element instead of global state
32
+ * - Sweeps stale child component cache entries after each parent render
33
33
  * - Supports both string and function-based tags
34
34
  * - Handles component mounting and state management
35
35
  * - Optimized children updating with minimal DOM operations
36
- * - Memory-efficient caching with configurable thresholds (500 ops, 1000 max size)
36
+ * - Memory-efficient child component caching tied to latest render usage
37
37
  *
38
38
  * Recent Changes:
39
- * - 2025-07-15: Converted keyCache from Map to plain object ({}) for improved performance
40
- * - Updated cleanup functions to use object property deletion instead of Map methods
41
- * - Enhanced memory management with automatic cleanup of disconnected elements
39
+ * - 2026-06-19: Added trustedHTML alias and removed _html: text-prefix parsing
40
+ * - 2026-06-19: Scoped keyed reconciliation to the current parent and added child component cache eviction
41
+ * - 2026-06-19: Preserved explicit falsy component ids such as 0 in child component cache keys
42
42
  * - Added comprehensive key prop usage documentation and guidelines
43
43
  */
44
44
  import directive from './directive';
@@ -63,26 +63,8 @@ function collect(children) {
63
63
  });
64
64
  return ch;
65
65
  }
66
- const keyCache = {};
67
- let cleanupCounter = 0;
68
- const CLEANUP_THRESHOLD = 500; // Cleanup every 500 operations
69
- const MAX_CACHE_SIZE = 1000;
70
- // Lightweight cleanup function - only runs when needed
71
- function cleanupKeyCache() {
72
- if (Object.keys(keyCache).length <= MAX_CACHE_SIZE)
73
- return; // Skip if under limit
74
- for (const [key, element] of Object.entries(keyCache)) {
75
- if (!element.isConnected) {
76
- delete keyCache[key];
77
- }
78
- }
79
- }
80
- // Export cleanup function for manual cleanup if needed
66
+ // Compatibility export. Keyed reconciliation is now parent-scoped and has no global cache.
81
67
  export function clearKeyCache() {
82
- for (const key in keyCache) {
83
- delete keyCache[key];
84
- }
85
- cleanupCounter = 0;
86
68
  }
87
69
  export function createElement(tag, props, ...children) {
88
70
  const ch = collect(children);
@@ -113,7 +95,9 @@ function render(element, nodes, parent = {}) {
113
95
  // tslint:disable-next-line
114
96
  if (nodes == null || nodes === false)
115
97
  return;
98
+ beginComponentCacheRender(parent);
116
99
  nodes = createComponent(nodes, parent);
100
+ sweepComponentCache(parent);
117
101
  if (!element)
118
102
  return;
119
103
  const isSvg = element.nodeName === "SVG";
@@ -141,6 +125,11 @@ function update(element, node, isSvg) {
141
125
  updateProps(element, node.props, isSvg);
142
126
  }
143
127
  function updateChildren(element, children, isSvg) {
128
+ const keyedChildren = {};
129
+ Array.from(element.childNodes || []).forEach((child) => {
130
+ if (child.key !== undefined && child.key !== null)
131
+ keyedChildren[keyId(child.key)] = child;
132
+ });
144
133
  const old_len = element.childNodes?.length || 0;
145
134
  const new_len = children?.length || 0;
146
135
  const len = Math.min(old_len, new_len);
@@ -161,14 +150,14 @@ function updateChildren(element, children, isSvg) {
161
150
  element.insertBefore(child, el);
162
151
  }
163
152
  else {
164
- const key = child.props && child.props['key'];
165
- if (key) {
153
+ const key = child.props ? child.props['key'] : undefined;
154
+ if (key !== undefined && key !== null) {
166
155
  if (el.key === key) {
167
156
  update(element.childNodes[i], child, isSvg);
168
157
  }
169
158
  else {
170
159
  // console.log(el.key, key);
171
- const old = keyCache[key];
160
+ const old = keyedChildren[keyId(key)];
172
161
  if (old) {
173
162
  // const temp = old.nextSibling;
174
163
  element.insertBefore(old, el);
@@ -198,20 +187,18 @@ function updateChildren(element, children, isSvg) {
198
187
  element.appendChild(d);
199
188
  }
200
189
  }
201
- export const safeHTML = (html) => {
190
+ function keyId(key) {
191
+ return `${typeof key}:${String(key)}`;
192
+ }
193
+ export const trustedHTML = (html) => {
202
194
  const div = document.createElement('section');
203
195
  div.insertAdjacentHTML('afterbegin', html);
204
196
  return Array.from(div.children);
205
197
  };
198
+ /** @deprecated Use trustedHTML() for caller-owned trusted markup. */
199
+ export const safeHTML = trustedHTML;
206
200
  function createText(node) {
207
- if (node?.indexOf('_html:') === 0) { // ?
208
- const div = document.createElement('div');
209
- div.insertAdjacentHTML('afterbegin', node.substring(6));
210
- return div;
211
- }
212
- else {
213
- return document.createTextNode(node ?? '');
214
- }
201
+ return document.createTextNode(node ?? '');
215
202
  }
216
203
  function create(node, isSvg) {
217
204
  // console.assert(node !== null && node !== undefined);
@@ -228,25 +215,37 @@ function create(node, isSvg) {
228
215
  updateProps(element, node.props, isSvg);
229
216
  if (node.children)
230
217
  node.children.forEach(child => element.appendChild(create(child, isSvg)));
231
- if (node.props && node.props.key !== undefined) {
218
+ if (node.props && node.props.key !== undefined && node.props.key !== null) {
232
219
  element.key = node.props.key;
233
- keyCache[node.props.key] = element;
234
- // Lightweight cleanup - only when counter reaches threshold
235
- if (++cleanupCounter >= CLEANUP_THRESHOLD) {
236
- cleanupKeyCache();
237
- cleanupCounter = 0;
238
- }
239
220
  }
240
221
  return element;
241
222
  }
223
+ function beginComponentCacheRender(parent) {
224
+ if (!parent || !parent.__componentCache)
225
+ return;
226
+ parent.__componentCacheUsed = {};
227
+ }
228
+ function markComponentCacheUsed(parent, key) {
229
+ if (!parent)
230
+ return;
231
+ parent.__componentCacheUsed = parent.__componentCacheUsed || {};
232
+ parent.__componentCacheUsed[key] = true;
233
+ }
234
+ function sweepComponentCache(parent) {
235
+ if (!parent || !parent.__componentCache || !parent.__componentCacheUsed)
236
+ return;
237
+ Object.keys(parent.__componentCache).forEach(key => {
238
+ if (!parent.__componentCacheUsed[key]) {
239
+ parent.__componentCache[key]?.unmount?.();
240
+ delete parent.__componentCache[key];
241
+ }
242
+ });
243
+ parent.__componentCacheUsed = null;
244
+ }
242
245
  function render_component(node, parent, idx) {
243
246
  const { tag, props, children } = node;
244
- let key = `_${idx}`;
245
- let id = props && props['id'];
246
- if (!id)
247
- id = `_${idx}${Date.now()}`;
248
- else
249
- key = id;
247
+ const id = props && props['id'];
248
+ const key = id !== undefined && id !== null ? String(id) : `_${idx}`;
250
249
  let asTag = 'section';
251
250
  if (props && props['as']) {
252
251
  asTag = props['as'];
@@ -254,6 +253,7 @@ function render_component(node, parent, idx) {
254
253
  }
255
254
  if (!parent.__componentCache)
256
255
  parent.__componentCache = {};
256
+ markComponentCacheUsed(parent, key);
257
257
  let component = parent.__componentCache[key];
258
258
  if (!component || !(component instanceof tag) || !component.element) {
259
259
  const element = document.createElement(asTag);
@@ -1 +1 @@
1
- {"version":3,"file":"vdom-my.js","sourceRoot":"","sources":["../src/vdom-my.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAGH,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,MAAM,UAAU,QAAQ,CAAC,KAAK,EAAE,GAAG,QAAQ;IACzC,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC3B,CAAC;AAED,SAAS,OAAO,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AAI,CAAC;IAC1C,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;IACzF,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,IAAI,IAAI,IAAI,OAAO,IAAI,CAAC,GAAG,KAAK,UAAU,IAAI,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,mBAAmB,EAAE,CAAC;QAClG,IAAI,GAAG,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC;IACD,IAAI,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC;QAC1C,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,GAAG,CAAC,CAAC;YACV,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACtF,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;QACpF,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1,3 +1,10 @@
1
+ /**
2
+ * VDOM to HTML string renderer
3
+ *
4
+ * Converts AppRun VDOM, arrays, strings, and lit templates to HTML strings.
5
+ * String nodes are rendered literally; trusted markup must be supplied through
6
+ * explicit trusted-HTML helpers before reaching this renderer.
7
+ */
1
8
  function getProp(prop) {
2
9
  if (typeof prop === 'object') {
3
10
  return Object.keys(prop).map(name => `${name}:${prop[name]}`).join(';');
@@ -33,7 +40,7 @@ function toHTML(vdom) {
33
40
  if (Array.isArray(vdom))
34
41
  return toHTMLArray(vdom);
35
42
  if (typeof vdom === 'string') {
36
- return vdom.startsWith('_html:') ? vdom.substring(6) : vdom;
43
+ return vdom;
37
44
  }
38
45
  else if (vdom.tag) {
39
46
  const props = vdom.props ? toProps(vdom.props) : '';
@@ -1 +1 @@
1
- {"version":3,"file":"vdom-to-html.js","sourceRoot":"","sources":["../src/vdom-to-html.tsx"],"names":[],"mappings":"AAIA,SAAS,OAAO,CAAC,IAAI;IACnB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1E,CAAC;;QACI,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;AAC9B,CAAC;AAED,SAAS,OAAO,CAAC,KAAK;IACpB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;SACtB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;SAClF,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AAED,SAAS,WAAW,CAAC,KAAK;IACxB,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,KAAK,CAAC,GAAG;IAChB,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CAAC,CAAC,KAAK,QAAQ,EAAE,CAAC;YACtC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;AACH,CAAC;AAED,SAAS,MAAM,CAAE,IAAI;IACnB,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACvB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,CAAC;IACZ,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,WAAW,CAAC,IAAI,CAAC,CAAC;IAClD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACpD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACjE,OAAO,IAAI,IAAI,CAAC,GAAG,GAAG,KAAK,IAAI,QAAQ,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC;IAC1D,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,eAAe,MAAM,CAAC"}
package/esm/vdom.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * 1. createElement: Creates virtual DOM nodes
6
6
  * 2. Fragment: Support for fragments
7
7
  * 3. render: Renders virtual DOM to real DOM
8
- * 4. safeHTML: Safely renders HTML strings
8
+ * 4. trustedHTML: Parses caller-owned trusted HTML strings
9
9
  *
10
10
  * The virtual DOM system:
11
11
  * - Provides efficient DOM updates
@@ -22,7 +22,7 @@
22
22
  * render(document.body, vdom);
23
23
  * ```
24
24
  */
25
- import { createElement, updateElement, Fragment, safeHTML } from './vdom-my';
26
- export { createElement, Fragment, updateElement as render, safeHTML };
25
+ import { createElement, updateElement, Fragment, trustedHTML, safeHTML } from './vdom-my';
26
+ export { createElement, Fragment, updateElement as render, trustedHTML, safeHTML };
27
27
  export { createElement as jsx, createElement as jsxs };
28
28
  //# sourceMappingURL=vdom.js.map
package/esm/vdom.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"vdom.js","sourceRoot":"","sources":["../src/vdom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,IAAI,MAAM,EAAE,QAAQ,EAAE,CAAC;AACtE,OAAO,EAAE,aAAa,IAAI,GAAG,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"vdom.js","sourceRoot":"","sources":["../src/vdom.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,IAAI,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC;AACnF,OAAO,EAAE,aAAa,IAAI,GAAG,EAAE,aAAa,IAAI,IAAI,EAAE,CAAC"}
package/esm/version.js CHANGED
@@ -9,7 +9,7 @@
9
9
  */
10
10
  // Import version from package.json to maintain single source of truth
11
11
  // This version string is used across the framework
12
- export const APPRUN_VERSION = '3.38.0';
12
+ export const APPRUN_VERSION = '6.0.0';
13
13
  // Version string with prefix for global tracking
14
14
  export const APPRUN_VERSION_GLOBAL = `AppRun-${APPRUN_VERSION}`;
15
15
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,mDAAmD;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC;AAEvC,iDAAiD;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,sEAAsE;AACtE,mDAAmD;AACnD,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,iDAAiD;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,cAAc,EAAE,CAAC"}
@@ -24,7 +24,7 @@
24
24
  * Features:
25
25
  * - Shadow DOM encapsulation support
26
26
  * - Attribute observation and change detection
27
- * - Lifecycle management and cleanup
27
+ * - Lifecycle management, queued pre-mount attributes, and cleanup
28
28
  * - Property reflection to attributes
29
29
  * - Event proxy system
30
30
  * - Flexible rendering options
@@ -53,6 +53,7 @@
53
53
  export const customElement = (componentClass, options = {}) => class CustomElement extends HTMLElement {
54
54
  constructor() {
55
55
  super();
56
+ this._pendingAttributes = [];
56
57
  }
57
58
  get component() { return this._component; }
58
59
  get state() { return this._component.state; }
@@ -61,7 +62,7 @@ export const customElement = (componentClass, options = {}) => class CustomEleme
61
62
  return (options.observedAttributes || []).map(attr => attr.toLowerCase());
62
63
  }
63
64
  connectedCallback() {
64
- if (this.isConnected && !this._component) {
65
+ if (this.isConnected && !this._component && this._mountFrame == null) {
65
66
  const opts = options || {};
66
67
  this._shadowRoot = opts.shadow ? this.attachShadow({ mode: 'open' }) : this;
67
68
  const observedAttributes = (opts.observedAttributes || []);
@@ -91,7 +92,10 @@ export const customElement = (componentClass, options = {}) => class CustomEleme
91
92
  enumerable: true
92
93
  });
93
94
  });
94
- requestAnimationFrame(() => {
95
+ this._mountFrame = requestAnimationFrame(() => {
96
+ this._mountFrame = null;
97
+ if (!this.isConnected)
98
+ return;
95
99
  const children = this.children ? Array.from(this.children) : [];
96
100
  // children.forEach(el => el.parentElement.removeChild(el));
97
101
  this._component = new componentClass({ ...props, children }).mount(this._shadowRoot, opts);
@@ -106,30 +110,43 @@ export const customElement = (componentClass, options = {}) => class CustomEleme
106
110
  }
107
111
  this.on = this._component.on.bind(this._component);
108
112
  this.run = this._component.run.bind(this._component);
113
+ const pendingAttributes = this._pendingAttributes;
114
+ this._pendingAttributes = [];
115
+ pendingAttributes.forEach(({ name, oldValue, value }) => {
116
+ this.attributeChangedCallback(name, oldValue, value);
117
+ });
109
118
  if (!(opts.render === false))
110
119
  this._component.run('.');
111
120
  });
112
121
  }
113
122
  }
114
123
  disconnectedCallback() {
115
- this._component?.unload?.();
124
+ if (this._mountFrame != null) {
125
+ cancelAnimationFrame(this._mountFrame);
126
+ this._mountFrame = null;
127
+ }
128
+ this._pendingAttributes = [];
129
+ this._component?.unload?.(this._component.state);
116
130
  this._component?.unmount?.();
117
131
  this._component = null;
118
132
  }
119
133
  attributeChangedCallback(name, oldValue, value) {
120
134
  if (this._component) {
121
135
  // camelCase attributes arrive only in lowercase
122
- const mappedName = this._attrMap(name);
136
+ const mappedName = this._attrMap ? this._attrMap(name) : name;
123
137
  // store the new property/ attribute
124
138
  this._component._props[mappedName] = value;
125
139
  this._component.run('attributeChanged', mappedName, oldValue, value);
126
140
  if (value !== oldValue && !(options.render === false)) {
127
141
  window.requestAnimationFrame(() => {
128
142
  // re-render state with new combined props on next animation frame
129
- this._component.run('.');
143
+ this._component?.run('.');
130
144
  });
131
145
  }
132
146
  }
147
+ else {
148
+ this._pendingAttributes.push({ name, oldValue, value });
149
+ }
133
150
  }
134
151
  };
135
152
  export default (name, componentClass, options) => {
@@ -1 +1 @@
1
- {"version":3,"file":"web-component.js","sourceRoot":"","sources":["../src/web-component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAMH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,UAAgC,EAAE,EAAE,EAAE,CAAC,MAAM,aAAc,SAAQ,WAAW;IAM1H;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IACD,IAAI,SAAS,KAAK,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3C,IAAI,KAAK,KAAK,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAE7C,MAAM,KAAK,kBAAkB;QAC3B,kEAAkE;QAClE,OAAO,CAAC,OAAO,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACzC,MAAM,IAAI,GAAG,OAAO,IAAI,EAAE,CAAC;YAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;YAC5E,MAAM,kBAAkB,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAA;YAE1D,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;gBACtD,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;gBAC7B,IAAI,EAAE,KAAK,IAAI,EAAE,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CAAC,CAAA"}
package/jsx-runtime.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apprun=e():n.apprun=e()}(this,(()=>(()=>{"use strict";var n={593:(n,e,l)=>{l.d(e,{FK:()=>$,n:()=>Y,t_:()=>Q,cJ:()=>J});var t={};l.r(t),l.d(t,{boolean:()=>i,booleanish:()=>u,commaOrSpaceSeparated:()=>g,commaSeparated:()=>d,number:()=>c,overloadedBoolean:()=>s,spaceSeparated:()=>p});var o=l(741);class r{constructor(n,e){this.attribute=e,this.property=n}}r.prototype.attribute="",r.prototype.booleanish=!1,r.prototype.boolean=!1,r.prototype.commaOrSpaceSeparated=!1,r.prototype.commaSeparated=!1,r.prototype.defined=!1,r.prototype.mustUseProperty=!1,r.prototype.number=!1,r.prototype.overloadedBoolean=!1,r.prototype.property="",r.prototype.spaceSeparated=!1,r.prototype.space=void 0;let a=0;const i=f(),u=f(),s=f(),c=f(),p=f(),d=f(),g=f();function f(){return 2**++a}const h=Object.keys(t);class m extends r{constructor(n,e,l,o){let r=-1;if(super(n,e),y(this,"space",o),"number"==typeof l)for(;++r<h.length;){const n=h[r];y(this,h[r],(l&t[n])===t[n])}}}function y(n,e,l){l&&(n[e]=l)}function v(n){return n.toLowerCase()}m.prototype.defined=!0;const b=/[A-Z]/g,k=/-[a-z]/g,S=/^data[-\w.:]+$/i;function C(n){return"-"+n.toLowerCase()}function w(n){return n.charAt(1).toUpperCase()}class x{constructor(n,e,l){this.normal=e,this.property=n,l&&(this.space=l)}}function P(n,e){const l={},t={};for(const e of n)Object.assign(l,e.property),Object.assign(t,e.normal);return new x(l,t,e)}function A(n){const e={},l={};for(const[t,o]of Object.entries(n.properties)){const r=new m(t,n.transform(n.attributes||{},t),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(t)&&(r.mustUseProperty=!0),e[t]=r,l[v(t)]=t,l[v(r.attribute)]=t}return new x(e,l,n.space)}x.prototype.normal={},x.prototype.property={},x.prototype.space=void 0;const O=A({properties:{ariaActiveDescendant:null,ariaAtomic:u,ariaAutoComplete:null,ariaBusy:u,ariaChecked:u,ariaColCount:c,ariaColIndex:c,ariaColSpan:c,ariaControls:p,ariaCurrent:null,ariaDescribedBy:p,ariaDetails:null,ariaDisabled:u,ariaDropEffect:p,ariaErrorMessage:null,ariaExpanded:u,ariaFlowTo:p,ariaGrabbed:u,ariaHasPopup:null,ariaHidden:u,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:p,ariaLevel:c,ariaLive:null,ariaModal:u,ariaMultiLine:u,ariaMultiSelectable:u,ariaOrientation:null,ariaOwns:p,ariaPlaceholder:null,ariaPosInSet:c,ariaPressed:u,ariaReadOnly:u,ariaRelevant:null,ariaRequired:u,ariaRoleDescription:p,ariaRowCount:c,ariaRowIndex:c,ariaRowSpan:c,ariaSelected:u,ariaSetSize:c,ariaSort:null,ariaValueMax:c,ariaValueMin:c,ariaValueNow:c,ariaValueText:null,role:null},transform:(n,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase()});function L(n,e){return e in n?n[e]:e}function M(n,e){return L(n,e.toLowerCase())}const E=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:p,accessKey:p,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:p,autoFocus:i,autoPlay:i,blocking:p,capture:null,charSet:null,checked:i,cite:null,className:p,cols:c,colSpan:null,content:null,contentEditable:u,controls:i,controlsList:p,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:s,draggable:u,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:p,height:c,hidden:s,high:c,href:null,hrefLang:null,htmlFor:p,httpEquiv:p,id:null,imageSizes:null,imageSrcSet:null,inert:i,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:p,itemRef:p,itemScope:i,itemType:p,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:c,pattern:null,ping:p,placeholder:null,playsInline:i,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:p,required:i,reversed:i,rows:c,rowSpan:c,sandbox:p,scope:null,scoped:i,seamless:i,selected:i,shadowRootClonable:i,shadowRootDelegatesFocus:i,shadowRootMode:null,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:null,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:u,width:c,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:p,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null},space:"html",transform:M}),T=A({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:g,accentHeight:c,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:c,amplitude:c,arabicForm:null,ascent:c,attributeName:null,attributeType:null,azimuth:c,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:c,by:null,calcMode:null,capHeight:c,className:p,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:c,diffuseConstant:c,direction:null,display:null,dur:null,divisor:c,dominantBaseline:null,download:i,dx:null,dy:null,edgeMode:null,editable:null,elevation:c,enableBackground:null,end:null,event:null,exponent:c,externalResourcesRequired:null,fill:null,fillOpacity:c,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:d,g2:d,glyphName:d,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:c,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:c,horizOriginX:c,horizOriginY:c,id:null,ideographic:c,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:c,k:c,k1:c,k2:c,k3:c,k4:c,kernelMatrix:g,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:c,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:c,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:c,overlineThickness:c,paintOrder:null,panose1:null,path:null,pathLength:c,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:p,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:c,pointsAtY:c,pointsAtZ:c,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:g,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:g,rev:g,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:g,requiredFeatures:g,requiredFonts:g,requiredFormats:g,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:c,specularExponent:c,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:c,strikethroughThickness:c,string:null,stroke:null,strokeDashArray:g,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:c,strokeOpacity:c,strokeWidth:null,style:null,surfaceScale:c,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:g,tabIndex:c,tableValues:null,target:null,targetX:c,targetY:c,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:g,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:c,underlineThickness:c,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:c,values:null,vAlphabetic:c,vMathematical:c,vectorEffect:null,vHanging:c,vIdeographic:c,version:null,vertAdvY:c,vertOriginX:c,vertOriginY:c,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:c,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:L}),D=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(n,e)=>"xlink:"+e.slice(5).toLowerCase()}),R=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:M}),U=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(n,e)=>"xml:"+e.slice(3).toLowerCase()}),j=P([O,E,D,R,U],"html"),B=P([O,T,D,R,U],"svg"),_="_props",z=new Map;function N(n,e,l){!function(n){return null!=n&&!1!==n&&""!==n&&(!0===n||("string"==typeof n?"false"!==n.toLowerCase()&&"0"!==n:Boolean(n)))}(l)?n.removeAttribute(e):n.setAttribute(e,e)}function H(n,e,l){try{n[e]=l}catch(t){I(n,e,l,!1)}}function I(n,e,l,t){if(null==l)return void n.removeAttribute(e);const o=String(l);if(t&&e.includes(":")){const[l]=e.split(":");"xlink"===l?n.setAttributeNS("http://www.w3.org/1999/xlink",e,o):n.setAttribute(e,o)}else n.setAttribute(e,o)}function F(n,e,l,t){if(o=n,a=e,document.activeElement===o?["selectionStart","selectionEnd","selectionDirection"].includes(a):"scrollTop"===a||"scrollLeft"===a||o instanceof HTMLMediaElement&&["currentTime","paused","playbackRate","volume"].includes(a))return;var o,a;if("style"===e){if(n.style.cssText&&(n.style.cssText=""),"string"==typeof l)n.style.cssText=l;else if(l&&"object"==typeof l)for(const e in l)n.style[e]!==l[e]&&(n.style[e]=l[e]);return}if("key"===e)return void(null!=l&&(n.key=l));if(e.startsWith("data-"))return void function(n,e,l){const t=(o=e.slice(5)).length<=1?o.toLowerCase():o.split("-").map(((n,e)=>0===e?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase())).join("");var o;null==l?delete n.dataset[t]:n.dataset[t]=String(l)}(n,e,l);if(e.startsWith("on"))return void function(n,e,l){e.startsWith("on")&&(l&&"function"!=typeof l?"string"==typeof l&&(l?n.setAttribute(e,l):n.removeAttribute(e)):n[e]=l)}(n,e,l);if(!("INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&"SELECT"!==n.tagName||"value"!==e&&"selected"!==e&&"selectedIndex"!==e))return void H(n,e,l);if("INPUT"===n.tagName&&"checked"===e)return H(n,e,l),void N(n,e,l);const i=function(n,e){const l=`${n}:${e}`;let t=z.get(l);return void 0===t&&(t=function(n,e){const l=v(e);let t=e,o=r;if(l in n.normal)return n.property[n.normal[l]];if(l.length>4&&"data"===l.slice(0,4)&&S.test(e)){if("-"===e.charAt(4)){const n=e.slice(5).replace(k,w);t="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=e.slice(4);if(!k.test(n)){let l=n.replace(b,C);"-"!==l.charAt(0)&&(l="-"+l),e="data"+l}}o=m}return new o(t,e)}(e?B:j,n)||null,z.set(l,t)),t}(e,t);i?i.boolean||i.overloadedBoolean?N(n,i.attribute,l):i.mustUseProperty&&!t?H(n,i.property,l):I(n,i.attribute,l,t):e.startsWith("aria-")||"role"===e?I(n,e,l,t):e in n||void 0!==n[e]?H(n,e,l):I(n,e,l,t)}function V(n){return/^[a-zA-Z_:][\w\-:.]*$/.test(n)&&!n.includes("<")&&!n.includes(">")&&!n.includes('"')&&!n.includes("'")}function W(n,e,l){const t=function(n,e){if(e&&(e.class=e.class||e.className,delete e.className),!n||0===Object.keys(n).length)return e||{};if(!e||0===Object.keys(e).length){const e={};return Object.keys(n).forEach((n=>e[n]=null)),e}const l={};return Object.keys(n).forEach((n=>{n in e||(l[n]=null)})),Object.keys(e).forEach((n=>l[n]=e[n])),l}(n[_]||{},e);n[_]=e||{},function(n,e,l,t){for(const l in e)V(l)&&F(n,l,e[l],t);e&&"function"==typeof e.ref&&window.requestAnimationFrame((()=>e.ref(n)))}(n,t,0,l)}function $(n,...e){return q(e)}function q(n){const e=[],l=n=>{null!=n&&""!==n&&!1!==n&&e.push("function"==typeof n||"object"==typeof n?n:`${n}`)};return n&&n.forEach((n=>{Array.isArray(n)?n.forEach((n=>l(n))):l(n)})),e}const K={};let X=0;function Y(n,e,...l){const t=q(l);if("string"==typeof n)return{tag:n,props:e,children:t};if(Array.isArray(n))return n;if(void 0===n&&l)return t;if(Object.getPrototypeOf(n).__isAppRunComponent)return{tag:n,props:e,children:t};if("function"==typeof n)return n(e,t);throw new Error(`Unknown tag in vdom ${n}`)}const J=(n,e,l={})=>{null!=e&&!1!==e&&function(n,e,l={}){if(null==e||!1===e)return;if(e=ln(e,l),!n)return;const t="SVG"===n.nodeName;Array.isArray(e)?G(n,e,t):G(n,[e],t)}("string"==typeof n&&n?document.getElementById(n)||document.querySelector(n):n,e=(0,o.A)(e,l),l)};function Z(n,e,l){l=l||"svg"===e.tag,function(n,e){const l=n.nodeName,t=`${e.tag||""}`;return l.toUpperCase()===t.toUpperCase()}(n,e)?(G(n,e.children,l),W(n,e.props,l)):n.parentNode.replaceChild(en(e,l),n)}function G(n,e,l){const t=n.childNodes?.length||0,o=e?.length||0,r=Math.min(t,o);for(let t=0;t<r;t++){const o=e[t],r=n.childNodes[t];if("string"==typeof o)r.textContent!==o&&(3===r.nodeType?r.nodeValue=o:n.replaceChild(nn(o),r));else if(o instanceof HTMLElement||o instanceof SVGElement)n.insertBefore(o,r);else{const e=o.props&&o.props.key;if(e)if(r.key===e)Z(n.childNodes[t],o,l);else{const a=K[e];a?(n.insertBefore(a,r),Z(n.childNodes[t],o,l)):n.replaceChild(en(o,l),r)}else Z(n.childNodes[t],o,l)}}let a=n.childNodes?.length||0;for(;a>r;)n.removeChild(n.lastChild),a--;if(o>r){const t=document.createDocumentFragment();for(let n=r;n<e.length;n++)t.appendChild(en(e[n],l));n.appendChild(t)}}const Q=n=>{const e=document.createElement("section");return e.insertAdjacentHTML("afterbegin",n),Array.from(e.children)};function nn(n){if(0===n?.indexOf("_html:")){const e=document.createElement("div");return e.insertAdjacentHTML("afterbegin",n.substring(6)),e}return document.createTextNode(n??"")}function en(n,e){if(n instanceof HTMLElement||n instanceof SVGElement)return n;if("string"==typeof n)return nn(n);if(!n.tag||"function"==typeof n.tag)return nn(JSON.stringify(n));const l=(e=e||"svg"===n.tag)?document.createElementNS("http://www.w3.org/2000/svg",n.tag):document.createElement(n.tag);return W(l,n.props,e),n.children&&n.children.forEach((n=>l.appendChild(en(n,e)))),n.props&&void 0!==n.props.key&&(l.key=n.props.key,K[n.props.key]=l,++X>=500&&(function(){if(!(Object.keys(K).length<=1e3))for(const[n,e]of Object.entries(K))e.isConnected||delete K[n]}(),X=0)),l}function ln(n,e,l=0){if("string"==typeof n)return n;if(Array.isArray(n))return n.map((n=>ln(n,e,l++)));let t=n;if(n&&"function"==typeof n.tag&&Object.getPrototypeOf(n.tag).__isAppRunComponent&&(t=function(n,e,l){const{tag:t,props:o,children:r}=n;let a=`_${l}`,i=o&&o.id;i?a=i:i=`_${l}${Date.now()}`;let u="section";o&&o.as&&(u=o.as,delete o.as),e.__componentCache||(e.__componentCache={});let s=e.__componentCache[a];if(s&&s instanceof t&&s.element)s.renderState(s.state);else{const n=document.createElement(u);s=e.__componentCache[a]=new t({...o,children:r}).mount(n,{render:!0})}if(s.mounted){const n=s.mounted(o,r,s.state);void 0!==n&&s.setState(n)}return W(s.element,o,!1),s.element}(n,e,l)),t&&Array.isArray(t.children)){const n=t.props?._component;if(n){let e=0;t.children=t.children.map((l=>ln(l,n,e++)))}else t.children=t.children.map((n=>ln(n,e,l++)))}return t}},634:(n,e,l)=>{function t(n){return n?.target instanceof HTMLElement?n.target:null}l.d(e,{PB:()=>t})},672:(n,e,l)=>{l.d(e,{C:()=>t});const t="AppRun-3.38.0"},741:(n,e,l)=>{l.d(e,{A:()=>s});var t=l(859),o=l(634);const r=n=>{if(!n)return[];const e=[];let l="",t=!1,o="";for(let r=0;r<n.length;r++){const a=n[r];"["!==a||t?"]"===a&&t?(o?l=l.slice(1,-1):/^\d+$/.test(l)&&(l=parseInt(l,10)),e.push(l),l="",t=!1,o=""):'"'!==a&&"'"!==a||!t?"."!==a||t?l+=a:l&&(e.push(l),l=""):(o?a===o&&(o=""):o=a,l+=a):(l&&(e.push(l),l=""),t=!0)}return l&&e.push(l),e},a=(n,e)=>{if(!e)return n.state||"";const l=r(e),t=((n,e)=>{let l=n;for(const n of e){if(null==l)return;l=l[n]}return l})(n.state,l);return void 0!==t?t:""},i=(n,e,l)=>{if(!e)return void n.setState(l);const t=r(e),o=((n,e,l)=>{if(0===e.length)return l;const t={...n};let o=t;for(let n=0;n<e.length-1;n++){const l=e[n],t=e[n+1];null==o[l]?o[l]="number"==typeof t?[]:{}:Array.isArray(o[l])?o[l]=[...o[l]]:"object"==typeof o[l]&&(o[l]={...o[l]}),o=o[l]}return o[e[e.length-1]]=l,t})(n.state||{},t,l);n.setState(o)},u=(n,e)=>{if(Array.isArray(n))return n.map((n=>u(n,e)));{let{type:l,tag:r,props:s,children:c}=n;return r=r||l,c=c||s?.children,s&&Object.keys(s).forEach((n=>{n.startsWith("$")&&(((n,e,l,r)=>{if(n.startsWith("$on")){const l=e[n];if(n=n.substring(1),"boolean"==typeof l)e[n]=e=>r.run?r.run(n,e):t.A.run(n,e);else if("string"==typeof l)e[n]=n=>r.run?r.run(l,n):t.A.run(l,n);else if("function"==typeof l)e[n]=n=>r.setState(l(r.state,n));else if(Array.isArray(l)){const[o,...a]=l;"string"==typeof o?e[n]=n=>r.run?r.run(o,...a,n):t.A.run(o,...a,n):"function"==typeof o&&(e[n]=n=>r.setState(o(r.state,...a,n)))}}else if("$bind"===n){const t=e.type||"text",u="string"==typeof e[n]?e[n]:e.name;if("input"===l)switch(t){case"checkbox":e.checked=a(r,u),e.onclick=n=>{const e=(0,o.PB)(n);e&&i(r,u||e.name,e.checked)};break;case"radio":e.checked=a(r,u)===e.value,e.onclick=n=>{const e=(0,o.PB)(n);e&&i(r,u||e.name,e.value)};break;case"number":case"range":e.value=a(r,u),e.oninput=n=>{const e=(0,o.PB)(n);e&&i(r,u||e.name,Number(e.value))};break;default:e.value=a(r,u),e.oninput=n=>{const e=(0,o.PB)(n);e&&i(r,u||e.name,e.value)}}else"select"===l?(e.value=a(r,u),e.onchange=n=>{const e=(0,o.PB)(n);e&&!e.multiple&&i(r,u||e.name,e.value)}):"option"===l?(e.selected=a(r,u),e.onclick=n=>{const e=(0,o.PB)(n);e&&i(r,u||e.name,e.selected)}):"textarea"===l&&(e.innerHTML=a(r,u),e.oninput=n=>{const e=(0,o.PB)(n);e&&i(r,u||e.name,e.value)})}else t.A.run("$",{key:n,tag:l,props:e,component:r})})(n,s,r,e),delete s[n])})),c&&u(c,e),n}},s=u},859:(n,e,l)=>{l.d(e,{A:()=>i});var t=l(672);const o=t.C;let r;const a="undefined"!=typeof window?window:void 0!==l.g?l.g:"undefined"!=typeof self?self:{};a.app&&a._AppRunVersions?r=a.app:(r=new class{constructor(){this._events={}}on(n,e,l={}){this._events[n]=this._events[n]||[],this._events[n].push({fn:e,options:l})}off(n,e){const l=this._events[n]||[];this._events[n]=l.filter((n=>n.fn!==e))}find(n){return this._events[n]}run(n,...e){const l=this.getSubscribers(n,this._events);return console.assert(l&&l.length>0,"No subscriber for event: "+n),l.forEach((l=>{const{fn:t,options:o}=l;if(!t||"function"!=typeof t)return console.error(`AppRun event handler for '${n}' is not a function:`,t),!1;if(o.delay)this.delay(n,t,e,o);else try{Object.keys(o).length>0?t.apply(this,[...e,o]):t.apply(this,e)}catch(e){console.error(`Error in event handler for '${n}':`,e)}return!l.options.once})),l.length}once(n,e,l={}){this.on(n,e,{...l,once:!0})}delay(n,e,l,t){t._t&&clearTimeout(t._t),t._t=setTimeout((()=>{clearTimeout(t._t);try{Object.keys(t).length>0?e.apply(this,[...l,t]):e.apply(this,l)}catch(e){console.error(`Error in delayed event handler for '${n}':`,e)}}),t.delay)}runAsync(n,...e){const l=this.getSubscribers(n,this._events);console.assert(l&&l.length>0,"No subscriber for event: "+n);const t=l.map((l=>{const{fn:t,options:o}=l;if(!t||"function"!=typeof t)return console.error(`AppRun async event handler for '${n}' is not a function:`,t),Promise.resolve(null);try{return Object.keys(o).length>0?t.apply(this,[...e,o]):t.apply(this,e)}catch(e){return console.error(`Error in async event handler for '${n}':`,e),Promise.reject(e)}}));return Promise.all(t)}query(n,...e){return console.warn("app.query() is deprecated. Use app.runAsync() instead."),this.runAsync(n,...e)}getSubscribers(n,e){const l=e[n]||[];return e[n]=l.filter((n=>!n.options.once)),Object.keys(e).filter((e=>e.endsWith("*")&&n.startsWith(e.replace("*","")))).sort(((n,e)=>e.length-n.length)).forEach((t=>l.push(...e[t].map((e=>({...e,options:{...e.options,event:n}})))))),l}},a.app=r,a._AppRunVersions=o);const i=r}},e={};function l(t){var o=e[t];if(void 0!==o)return o.exports;var r=e[t]={exports:{}};return n[t](r,r.exports,l),r.exports}l.d=(n,e)=>{for(var t in e)l.o(e,t)&&!l.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),l.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),l.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var t={};l.r(t),l.d(t,{Fragment:()=>o.FK,createElement:()=>o.n,jsx:()=>o.n,jsxs:()=>o.n,render:()=>o.cJ,safeHTML:()=>o.t_});var o=l(593);return t})()));
1
+ !function(n,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apprun=e():n.apprun=e()}(this,(()=>(()=>{"use strict";var n={d:(e,l)=>{for(var t in l)n.o(l,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:l[t]})}};n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),n.o=(n,e)=>Object.prototype.hasOwnProperty.call(n,e),n.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})};var e={};n.r(e),n.d(e,{Fragment:()=>J,createElement:()=>nn,jsx:()=>nn,jsxs:()=>nn,render:()=>en,safeHTML:()=>an,trustedHTML:()=>rn});var l={};n.r(l),n.d(l,{boolean:()=>g,booleanish:()=>f,commaOrSpaceSeparated:()=>k,commaSeparated:()=>b,number:()=>y,overloadedBoolean:()=>m,spaceSeparated:()=>v});let t;const o="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};o.app&&o._AppRunVersions?t=o.app:(t=new class{constructor(){this._reporting_error=!1,this._events={},this._wildcard_events=[]}on(n,e,l={}){this._events[n]=this._events[n]||[];const t={fn:e,options:l};this._events[n].push(t),n.endsWith("*")&&(this._wildcard_events.push({name:n,prefix:n.replace("*",""),sub:t}),this._wildcard_events.sort(((n,e)=>e.name.length-n.name.length)))}off(n,e){const l=this._events[n]||[];this._events[n]=l.filter((n=>n.fn!==e)),n.endsWith("*")&&(this._wildcard_events=this._wildcard_events.filter((l=>!(l.name===n&&l.sub.fn===e))))}find(n){return this._events[n]}run(n,...e){const l=this.getSubscribers(n,this._events);return this.debug&&console.assert(l&&l.length>0,"No subscriber for event: "+n),l.forEach((l=>{const{fn:t,options:o}=l;if(!t||"function"!=typeof t)return console.error(`AppRun event handler for '${n}' is not a function:`,t),!1;if(o.delay)this.delay(n,l,e);else try{Object.keys(o).length>0?t.apply(this,[...e,o]):t.apply(this,e)}catch(l){this.reportError(n,l,{phase:"run",args:e})}})),l.length}once(n,e,l={}){this.on(n,e,{...l,once:!0})}delay(n,e,l){const t=e._source||e,{fn:o,options:r}=e;t._t&&clearTimeout(t._t),t._t=setTimeout((()=>{clearTimeout(t._t),t._t=null;try{Object.keys(r).length>0?o.apply(this,[...l,r]):o.apply(this,l)}catch(e){this.reportError(n,e,{phase:"delay",args:l})}}),r.delay)}runAsync(n,...e){const l=this.getSubscribers(n,this._events);this.debug&&console.assert(l&&l.length>0,"No subscriber for event: "+n);const t=l.map((l=>{const{fn:t,options:o}=l;if(!t||"function"!=typeof t)return console.error(`AppRun async event handler for '${n}' is not a function:`,t),Promise.resolve(null);try{const l=Object.keys(o).length>0?t.apply(this,[...e,o]):t.apply(this,e);return Promise.resolve(l).catch((l=>(this.reportError(n,l,{phase:"runAsync",args:e}),Promise.reject(l))))}catch(l){return this.reportError(n,l,{phase:"runAsync",args:e}),Promise.reject(l)}}));return Promise.all(t)}reportError(n,e,l={}){const t={event:n,error:e,app:this,...l},o="error"===n||this._reporting_error?[]:this.getSubscribers("error",this._events);if(o.length>0){this._reporting_error=!0;try{o.forEach((n=>{try{n.fn.call(this,t)}catch(n){console.error("Error in error event handler:",n)}}))}finally{this._reporting_error=!1}}else"delay"===l.phase?console.error(`Error in delayed event handler for '${n}':`,e):"runAsync"===l.phase?console.error(`Error in async event handler for '${n}':`,e):console.error(`Error in event handler for '${n}':`,e)}removeOnceWildcardSubscriber(n,e){this._events[n]=(this._events[n]||[]).filter((n=>n!==e)),this._wildcard_events=this._wildcard_events.filter((n=>n.sub!==e))}getSubscribers(n,e){const l=e[n]||[],t=l.slice();return e[n]=l.filter((n=>!n.options.once)),this._wildcard_events.filter((({name:e,prefix:l})=>e!==n&&n.startsWith(l))).forEach((({name:e,sub:l})=>{l.options.once&&this.removeOnceWildcardSubscriber(e,l),t.push({...l,_source:l,options:{...l.options,event:n}})})),t}},o.app=t,o._AppRunVersions="AppRun-6.0.0");const r=t;function a(n){return n?.target instanceof HTMLElement?n.target:null}const i=n=>{if(!n)return[];const e=[];let l="",t=!1,o="";for(let r=0;r<n.length;r++){const a=n[r];"["!==a||t?"]"===a&&t?(o?l=l.slice(1,-1):/^\d+$/.test(l)&&(l=parseInt(l,10)),e.push(l),l="",t=!1,o=""):'"'!==a&&"'"!==a||!t?"."!==a||t?l+=a:l&&(e.push(l),l=""):(o?a===o&&(o=""):o=a,l+=a):(l&&(e.push(l),l=""),t=!0)}return l&&e.push(l),e},u=(n,e)=>{if(!e)return n.state||"";const l=i(e),t=((n,e)=>{let l=n;for(const n of e){if(null==l)return;l=l[n]}return l})(n.state,l);return void 0!==t?t:""},s=(n,e,l)=>{if(!e)return void n.setState(l);const t=i(e),o=((n,e,l)=>{if(0===e.length)return l;const t={...n};let o=t;for(let n=0;n<e.length-1;n++){const l=e[n],t=e[n+1];null==o[l]?o[l]="number"==typeof t?[]:{}:Array.isArray(o[l])?o[l]=[...o[l]]:"object"==typeof o[l]&&(o[l]={...o[l]}),o=o[l]}return o[e[e.length-1]]=l,t})(n.state||{},t,l);n.setState(o)},c=(n,e)=>{if(Array.isArray(n))return n.map((n=>c(n,e)));{let{type:l,tag:t,props:o,children:i}=n;return t=t||l,i=i||o?.children,o&&Object.keys(o).forEach((n=>{n.startsWith("$")&&(((n,e,l,t)=>{if(n.startsWith("$on")){const l=e[n];if(n=n.substring(1),"boolean"==typeof l)e[n]=e=>t.run?t.run(n,e):r.run(n,e);else if("string"==typeof l)e[n]=n=>t.run?t.run(l,n):r.run(l,n);else if("function"==typeof l)e[n]=n=>t.setState(l(t.state,n));else if(Array.isArray(l)){const[o,...a]=l;"string"==typeof o?e[n]=n=>t.run?t.run(o,...a,n):r.run(o,...a,n):"function"==typeof o&&(e[n]=n=>t.setState(o(t.state,...a,n)))}}else if("$bind"===n){const o=e.type||"text",r="string"==typeof e[n]?e[n]:e.name;if("input"===l)switch(o){case"checkbox":e.checked=u(t,r),e.onclick=n=>{const e=a(n);e&&s(t,r||e.name,e.checked)};break;case"radio":e.checked=u(t,r)===e.value,e.onclick=n=>{const e=a(n);e&&s(t,r||e.name,e.value)};break;case"number":case"range":e.value=u(t,r),e.oninput=n=>{const e=a(n);e&&s(t,r||e.name,Number(e.value))};break;default:e.value=u(t,r),e.oninput=n=>{const e=a(n);e&&s(t,r||e.name,e.value)}}else"select"===l?(e.value=u(t,r),e.onchange=n=>{const e=a(n);e&&!e.multiple&&s(t,r||e.name,e.value)}):"option"===l?(e.selected=u(t,r),e.onclick=n=>{const e=a(n);e&&s(t,r||e.name,e.selected)}):"textarea"===l&&(e.value=u(t,r),e.oninput=n=>{const e=a(n);e&&s(t,r||e.name,e.value)})}else r.run("$",{key:n,tag:l,props:e,component:t})})(n,o,t,e),delete o[n])})),i&&c(i,e),n}},p=c;class d{constructor(n,e){this.attribute=e,this.property=n}}d.prototype.attribute="",d.prototype.booleanish=!1,d.prototype.boolean=!1,d.prototype.commaOrSpaceSeparated=!1,d.prototype.commaSeparated=!1,d.prototype.defined=!1,d.prototype.mustUseProperty=!1,d.prototype.number=!1,d.prototype.overloadedBoolean=!1,d.prototype.property="",d.prototype.spaceSeparated=!1,d.prototype.space=void 0;let h=0;const g=C(),f=C(),m=C(),y=C(),v=C(),b=C(),k=C();function C(){return 2**++h}const S=Object.keys(l);class w extends d{constructor(n,e,t,o){let r=-1;if(super(n,e),x(this,"space",o),"number"==typeof t)for(;++r<S.length;){const n=S[r];x(this,S[r],(t&l[n])===l[n])}}}function x(n,e,l){l&&(n[e]=l)}function P(n){return n.toLowerCase()}w.prototype.defined=!0;const _=/[A-Z]/g,A=/-[a-z]/g,O=/^data[-\w.:]+$/i;function E(n){return"-"+n.toLowerCase()}function L(n){return n.charAt(1).toUpperCase()}class M{constructor(n,e,l){this.normal=e,this.property=n,l&&(this.space=l)}}function T(n,e){const l={},t={};for(const e of n)Object.assign(l,e.property),Object.assign(t,e.normal);return new M(l,t,e)}function D(n){const e={},l={};for(const[t,o]of Object.entries(n.properties)){const r=new w(t,n.transform(n.attributes||{},t),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(t)&&(r.mustUseProperty=!0),e[t]=r,l[P(t)]=t,l[P(r.attribute)]=t}return new M(e,l,n.space)}M.prototype.normal={},M.prototype.property={},M.prototype.space=void 0;const R=D({properties:{ariaActiveDescendant:null,ariaAtomic:f,ariaAutoComplete:null,ariaBusy:f,ariaChecked:f,ariaColCount:y,ariaColIndex:y,ariaColSpan:y,ariaControls:v,ariaCurrent:null,ariaDescribedBy:v,ariaDetails:null,ariaDisabled:f,ariaDropEffect:v,ariaErrorMessage:null,ariaExpanded:f,ariaFlowTo:v,ariaGrabbed:f,ariaHasPopup:null,ariaHidden:f,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:v,ariaLevel:y,ariaLive:null,ariaModal:f,ariaMultiLine:f,ariaMultiSelectable:f,ariaOrientation:null,ariaOwns:v,ariaPlaceholder:null,ariaPosInSet:y,ariaPressed:f,ariaReadOnly:f,ariaRelevant:null,ariaRequired:f,ariaRoleDescription:v,ariaRowCount:y,ariaRowIndex:y,ariaRowSpan:y,ariaSelected:f,ariaSetSize:y,ariaSort:null,ariaValueMax:y,ariaValueMin:y,ariaValueNow:y,ariaValueText:null,role:null},transform:(n,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase()});function U(n,e){return e in n?n[e]:e}function j(n,e){return U(n,e.toLowerCase())}const B=D({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:b,acceptCharset:v,accessKey:v,action:null,allow:null,allowFullScreen:g,allowPaymentRequest:g,allowUserMedia:g,alt:null,as:null,async:g,autoCapitalize:null,autoComplete:v,autoFocus:g,autoPlay:g,blocking:v,capture:null,charSet:null,checked:g,cite:null,className:v,cols:y,colSpan:null,content:null,contentEditable:f,controls:g,controlsList:v,coords:y|b,crossOrigin:null,data:null,dateTime:null,decoding:null,default:g,defer:g,dir:null,dirName:null,disabled:g,download:m,draggable:f,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:g,formTarget:null,headers:v,height:y,hidden:m,high:y,href:null,hrefLang:null,htmlFor:v,httpEquiv:v,id:null,imageSizes:null,imageSrcSet:null,inert:g,inputMode:null,integrity:null,is:null,isMap:g,itemId:null,itemProp:v,itemRef:v,itemScope:g,itemType:v,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:g,low:y,manifest:null,max:null,maxLength:y,media:null,method:null,min:null,minLength:y,multiple:g,muted:g,name:null,nonce:null,noModule:g,noValidate:g,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:g,optimum:y,pattern:null,ping:v,placeholder:null,playsInline:g,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:g,referrerPolicy:null,rel:v,required:g,reversed:g,rows:y,rowSpan:y,sandbox:v,scope:null,scoped:g,seamless:g,selected:g,shadowRootClonable:g,shadowRootDelegatesFocus:g,shadowRootMode:null,shape:null,size:y,sizes:null,slot:null,span:y,spellCheck:f,src:null,srcDoc:null,srcLang:null,srcSet:null,start:y,step:null,style:null,tabIndex:y,target:null,title:null,translate:null,type:null,typeMustMatch:g,useMap:null,value:f,width:y,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:v,axis:null,background:null,bgColor:null,border:y,borderColor:null,bottomMargin:y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:g,declare:g,event:null,face:null,frame:null,frameBorder:null,hSpace:y,leftMargin:y,link:null,longDesc:null,lowSrc:null,marginHeight:y,marginWidth:y,noResize:g,noHref:g,noShade:g,noWrap:g,object:null,profile:null,prompt:null,rev:null,rightMargin:y,rules:null,scheme:null,scrolling:f,standby:null,summary:null,text:null,topMargin:y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:g,disableRemotePlayback:g,prefix:null,property:null,results:y,security:null,unselectable:null},space:"html",transform:j}),N=D({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:k,accentHeight:y,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:y,amplitude:y,arabicForm:null,ascent:y,attributeName:null,attributeType:null,azimuth:y,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:y,by:null,calcMode:null,capHeight:y,className:v,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:y,diffuseConstant:y,direction:null,display:null,dur:null,divisor:y,dominantBaseline:null,download:g,dx:null,dy:null,edgeMode:null,editable:null,elevation:y,enableBackground:null,end:null,event:null,exponent:y,externalResourcesRequired:null,fill:null,fillOpacity:y,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:b,g2:b,glyphName:b,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:y,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:y,horizOriginX:y,horizOriginY:y,id:null,ideographic:y,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:y,k:y,k1:y,k2:y,k3:y,k4:y,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:y,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:y,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:y,overlineThickness:y,paintOrder:null,panose1:null,path:null,pathLength:y,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:v,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:y,pointsAtY:y,pointsAtZ:y,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:k,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:k,rev:k,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:k,requiredFeatures:k,requiredFonts:k,requiredFormats:k,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:y,specularExponent:y,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:y,strikethroughThickness:y,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:y,strokeOpacity:y,strokeWidth:null,style:null,surfaceScale:y,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:y,tableValues:null,target:null,targetX:y,targetY:y,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:k,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:y,underlineThickness:y,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:y,values:null,vAlphabetic:y,vMathematical:y,vectorEffect:null,vHanging:y,vIdeographic:y,version:null,vertAdvY:y,vertOriginX:y,vertOriginY:y,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:y,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:U}),z=D({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(n,e)=>"xlink:"+e.slice(5).toLowerCase()}),H=D({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:j}),I=D({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(n,e)=>"xml:"+e.slice(3).toLowerCase()}),F=T([R,B,z,H,I],"html"),W=T([R,N,z,H,I],"svg"),V="_props",$=new Map;function q(n,e,l){!function(n){return null!=n&&!1!==n&&""!==n&&(!0===n||("string"==typeof n?"false"!==n.toLowerCase()&&"0"!==n:Boolean(n)))}(l)?n.removeAttribute(e):n.setAttribute(e,e)}function K(n,e,l){try{n[e]=l}catch(t){X(n,e,l,!1)}}function X(n,e,l,t){if(null==l)return void n.removeAttribute(e);const o=String(l);if(t&&e.includes(":")){const[l]=e.split(":");"xlink"===l?n.setAttributeNS("http://www.w3.org/1999/xlink",e,o):n.setAttribute(e,o)}else n.setAttribute(e,o)}function Y(n,e,l,t){if(o=n,r=e,document.activeElement===o?["selectionStart","selectionEnd","selectionDirection"].includes(r):"scrollTop"===r||"scrollLeft"===r||o instanceof HTMLMediaElement&&["currentTime","paused","playbackRate","volume"].includes(r))return;var o,r;if("style"===e){if(n.style.cssText&&(n.style.cssText=""),"string"==typeof l)n.style.cssText=l;else if(l&&"object"==typeof l)for(const e in l)n.style[e]!==l[e]&&(n.style[e]=l[e]);return}if("key"===e)return void(null!=l&&(n.key=l));if(e.startsWith("data-"))return void function(n,e,l){const t=(o=e.slice(5)).length<=1?o.toLowerCase():o.split("-").map(((n,e)=>0===e?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase())).join("");var o;null==l?delete n.dataset[t]:n.dataset[t]=String(l)}(n,e,l);if(e.startsWith("on"))return void function(n,e,l){e.startsWith("on")&&(l&&"function"!=typeof l?"string"==typeof l&&(l?n.setAttribute(e,l):n.removeAttribute(e)):n[e]=l)}(n,e,l);if(!("INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&"SELECT"!==n.tagName||"value"!==e&&"selected"!==e&&"selectedIndex"!==e))return void K(n,e,l);if("INPUT"===n.tagName&&"checked"===e)return K(n,e,l),void q(n,e,l);const a=function(n,e){const l=`${n}:${e}`;let t=$.get(l);return void 0===t&&(t=function(n,e){const l=P(e);let t=e,o=d;if(l in n.normal)return n.property[n.normal[l]];if(l.length>4&&"data"===l.slice(0,4)&&O.test(e)){if("-"===e.charAt(4)){const n=e.slice(5).replace(A,L);t="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=e.slice(4);if(!A.test(n)){let l=n.replace(_,E);"-"!==l.charAt(0)&&(l="-"+l),e="data"+l}}o=w}return new o(t,e)}(e?W:F,n)||null,$.set(l,t)),t}(e,t);a?a.boolean||a.overloadedBoolean?q(n,a.attribute,l):a.mustUseProperty&&!t?K(n,a.property,l):X(n,a.attribute,l,t):e.startsWith("aria-")||"role"===e?X(n,e,l,t):e in n||void 0!==n[e]?K(n,e,l):X(n,e,l,t)}function Z(n){return/^[a-zA-Z_:][\w\-:.]*$/.test(n)&&!n.includes("<")&&!n.includes(">")&&!n.includes('"')&&!n.includes("'")}function G(n,e,l){const t=function(n,e){if(e&&(e.class=e.class||e.className,delete e.className),!n||0===Object.keys(n).length)return e||{};if(!e||0===Object.keys(e).length){const e={};return Object.keys(n).forEach((n=>e[n]=null)),e}const l={};return Object.keys(n).forEach((n=>{n in e||(l[n]=null)})),Object.keys(e).forEach((n=>l[n]=e[n])),l}(n[V]||{},e);n[V]=e||{},function(n,e,l,t){for(const l in e)Z(l)&&Y(n,l,e[l],t);e&&"function"==typeof e.ref&&window.requestAnimationFrame((()=>e.ref(n)))}(n,t,0,l)}function J(n,...e){return Q(e)}function Q(n){const e=[],l=n=>{null!=n&&""!==n&&!1!==n&&e.push("function"==typeof n||"object"==typeof n?n:`${n}`)};return n&&n.forEach((n=>{Array.isArray(n)?n.forEach((n=>l(n))):l(n)})),e}function nn(n,e,...l){const t=Q(l);if("string"==typeof n)return{tag:n,props:e,children:t};if(Array.isArray(n))return n;if(void 0===n&&l)return t;if(Object.getPrototypeOf(n).__isAppRunComponent)return{tag:n,props:e,children:t};if("function"==typeof n)return n(e,t);throw new Error(`Unknown tag in vdom ${n}`)}const en=(n,e,l={})=>{null!=e&&!1!==e&&function(n,e,l={}){if(null==e||!1===e)return;if(function(n){n&&n.__componentCache&&(n.__componentCacheUsed={})}(l),e=cn(e,l),function(n){n&&n.__componentCache&&n.__componentCacheUsed&&(Object.keys(n.__componentCache).forEach((e=>{n.__componentCacheUsed[e]||(n.__componentCache[e]?.unmount?.(),delete n.__componentCache[e])})),n.__componentCacheUsed=null)}(l),!n)return;const t="SVG"===n.nodeName;Array.isArray(e)?tn(n,e,t):tn(n,[e],t)}("string"==typeof n&&n?document.getElementById(n)||document.querySelector(n):n,e=p(e,l),l)};function ln(n,e,l){l=l||"svg"===e.tag,function(n,e){const l=n.nodeName,t=`${e.tag||""}`;return l.toUpperCase()===t.toUpperCase()}(n,e)?(tn(n,e.children,l),G(n,e.props,l)):n.parentNode.replaceChild(sn(e,l),n)}function tn(n,e,l){const t={};Array.from(n.childNodes||[]).forEach((n=>{void 0!==n.key&&null!==n.key&&(t[on(n.key)]=n)}));const o=n.childNodes?.length||0,r=e?.length||0,a=Math.min(o,r);for(let o=0;o<a;o++){const r=e[o],a=n.childNodes[o];if("string"==typeof r)a.textContent!==r&&(3===a.nodeType?a.nodeValue=r:n.replaceChild(un(r),a));else if(r instanceof HTMLElement||r instanceof SVGElement)n.insertBefore(r,a);else{const e=r.props?r.props.key:void 0;if(null!=e)if(a.key===e)ln(n.childNodes[o],r,l);else{const i=t[on(e)];i?(n.insertBefore(i,a),ln(n.childNodes[o],r,l)):n.replaceChild(sn(r,l),a)}else ln(n.childNodes[o],r,l)}}let i=n.childNodes?.length||0;for(;i>a;)n.removeChild(n.lastChild),i--;if(r>a){const t=document.createDocumentFragment();for(let n=a;n<e.length;n++)t.appendChild(sn(e[n],l));n.appendChild(t)}}function on(n){return`${typeof n}:${String(n)}`}const rn=n=>{const e=document.createElement("section");return e.insertAdjacentHTML("afterbegin",n),Array.from(e.children)},an=rn;function un(n){return document.createTextNode(n??"")}function sn(n,e){if(n instanceof HTMLElement||n instanceof SVGElement)return n;if("string"==typeof n)return un(n);if(!n.tag||"function"==typeof n.tag)return un(JSON.stringify(n));const l=(e=e||"svg"===n.tag)?document.createElementNS("http://www.w3.org/2000/svg",n.tag):document.createElement(n.tag);return G(l,n.props,e),n.children&&n.children.forEach((n=>l.appendChild(sn(n,e)))),n.props&&void 0!==n.props.key&&null!==n.props.key&&(l.key=n.props.key),l}function cn(n,e,l=0){if("string"==typeof n)return n;if(Array.isArray(n))return n.map((n=>cn(n,e,l++)));let t=n;if(n&&"function"==typeof n.tag&&Object.getPrototypeOf(n.tag).__isAppRunComponent&&(t=function(n,e,l){const{tag:t,props:o,children:r}=n,a=o&&o.id,i=null!=a?String(a):`_${l}`;let u="section";o&&o.as&&(u=o.as,delete o.as),e.__componentCache||(e.__componentCache={}),function(n,e){n&&(n.__componentCacheUsed=n.__componentCacheUsed||{},n.__componentCacheUsed[e]=!0)}(e,i);let s=e.__componentCache[i];if(s&&s instanceof t&&s.element)s.renderState(s.state);else{const n=document.createElement(u);s=e.__componentCache[i]=new t({...o,children:r}).mount(n,{render:!0})}if(s.mounted){const n=s.mounted(o,r,s.state);void 0!==n&&s.setState(n)}return G(s.element,o,!1),s.element}(n,e,l)),t&&Array.isArray(t.children)){const n=t.props?._component;if(n){let e=0;t.children=t.children.map((l=>cn(l,n,e++)))}else t.children=t.children.map((n=>cn(n,e,l++)))}return t}return e})()));
2
2
  //# sourceMappingURL=jsx-runtime.js.map