apprun 3.36.1 → 3.37.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 (78) hide show
  1. package/README.md +37 -32
  2. package/WHATSNEW.md +12 -3
  3. package/apprun.d.ts +134 -47
  4. package/dist/apprun-code.js +2 -0
  5. package/dist/apprun-code.js.map +1 -0
  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-html.esm.js +7 -7
  13. package/dist/apprun-play-html.esm.js.map +1 -1
  14. package/dist/apprun-play.js +1 -1
  15. package/dist/apprun-play.js.map +1 -1
  16. package/dist/apprun.esm.js +1 -1
  17. package/dist/apprun.esm.js.map +1 -1
  18. package/dist/apprun.js +1 -1
  19. package/dist/apprun.js.map +1 -1
  20. package/dist/createState.js +2 -0
  21. package/dist/createState.js.map +1 -0
  22. package/esm/add-components.js +90 -0
  23. package/esm/add-components.js.map +1 -0
  24. package/esm/app.js +5 -2
  25. package/esm/app.js.map +1 -1
  26. package/esm/apprun-code.js +51 -16
  27. package/esm/apprun-code.js.map +1 -1
  28. package/esm/apprun-dev-tools.js +31 -25
  29. package/esm/apprun-dev-tools.js.map +1 -1
  30. package/esm/apprun-play.js +50 -17
  31. package/esm/apprun-play.js.map +1 -1
  32. package/esm/apprun.js +24 -7
  33. package/esm/apprun.js.map +1 -1
  34. package/esm/component.js +13 -20
  35. package/esm/component.js.map +1 -1
  36. package/esm/createState.js +9 -0
  37. package/esm/createState.js.map +1 -0
  38. package/esm/decorator.js.map +1 -1
  39. package/esm/directive.js +1 -1
  40. package/esm/directive.js.map +1 -1
  41. package/esm/router.js.map +1 -1
  42. package/esm/shadow.js +1 -1
  43. package/esm/shadow.js.map +1 -1
  44. package/esm/type-utils.js +2 -3
  45. package/esm/type-utils.js.map +1 -1
  46. package/esm/vdom-my-new.js +8 -10
  47. package/esm/vdom-my-new.js.map +1 -1
  48. package/esm/vdom-my.js +7 -9
  49. package/esm/vdom-my.js.map +1 -1
  50. package/esm/vdom-patch.js +1 -1
  51. package/esm/vdom-patch.js.map +1 -1
  52. package/esm/version.js +1 -1
  53. package/esm/web-component.js +3 -4
  54. package/esm/web-component.js.map +1 -1
  55. package/index.html +5 -2
  56. package/jest.config.js +0 -1
  57. package/jsx-runtime.js +1 -1
  58. package/jsx-runtime.js.map +1 -1
  59. package/package.json +10 -10
  60. package/src/add-components.ts +103 -0
  61. package/src/app.ts +0 -14
  62. package/src/apprun-code.tsx +48 -10
  63. package/src/apprun-dev-tools.tsx +22 -20
  64. package/src/apprun-play.tsx +46 -9
  65. package/src/apprun.ts +28 -37
  66. package/src/component.ts +11 -8
  67. package/src/createState.ts +11 -0
  68. package/src/decorator.ts +2 -1
  69. package/src/router.ts +2 -2
  70. package/src/shadow.tsx +1 -1
  71. package/src/tsconfig.json +2 -2
  72. package/src/types.ts +62 -2
  73. package/src/version.ts +1 -1
  74. package/src/web-component.ts +4 -10
  75. package/tsconfig.jest.json +15 -6
  76. package/tsconfig.json +3 -3
  77. package/webpack.config.cjs +3 -1
  78. package/src/types/apprun.d.ts +0 -56
@@ -1 +1 @@
1
- {"version":3,"file":"dist/apprun-dev-tools.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,GAClB,CATD,CASGK,MAAM,I,sECoKT,MAAMC,EAAiB,IACvB,IAAIC,EACJ,MAAMR,EAA0B,oBAAXS,OAAyBA,YAC1B,IAAX,EAAAC,EAAyB,EAAAA,EACd,oBAATC,KAAuBA,KAAO,CAAC,EAEtCX,EAA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QAAQkJ,KAAK,+EAEItK,OAAqC,6BACxC,CACZ,IAAIuK,GAAmB,EACvB,MAAMC,EAAWxK,OAAqC,6BAAEyK,UACxD,GAAID,EAAU,CACZ,MAAME,EAAO1E,SAAS0E,MAAQ,IAC9BF,EAASG,KAAKD,EAAM,IACpB,MAAME,EAAM,CAAC,CAAEtE,UAAW,KAAMiB,MAAO,KACvCnG,QAAQkJ,KAAK,mCACbE,EAASK,WAAWC,IAClB,GAAqB,UAAjBA,EAAQC,KAAkBR,GAAmB,OAC5C,GAAqB,SAAjBO,EAAQC,KAAiBR,GAAmB,OAChD,GAAqB,aAAjBO,EAAQC,KAAqB,CAEpC,MAAMZ,EAAMW,EAAQE,QAAQC,MAC5B,GAAY,IAARd,EAAa,IAAIlJ,IAAIyJ,OACpB,CACH,MAAM,UAAEpE,EAAS,MAAEiB,GAAUqD,EAAIT,GACjC7D,SAAAA,EAAW4E,SAAS3D,EACtB,CACF,KAGF,MAAMoD,EAAO,CAACrE,EAAWE,EAAQe,KAClB,MAATA,IACJqD,EAAIjK,KAAK,CAAE2F,YAAWiB,UACtBiD,EAASG,KAAKnE,EAAQe,GAAM,EAG9B,IAAIhH,GAAG,SAASmG,IACd,GAAI6D,GAAoB7D,EAAExD,MAAO,CAC/B,MAAMqE,EAAQb,EAAEyE,SAGV3E,EAAS,CAAEuE,KAFJrE,EAAExD,MAEQ8H,QADPtE,EAAEA,GAEZJ,EAAYI,EAAEJ,UAChBiB,aAAiBnF,QACnBmF,EAAM6D,MAAKlB,GAAKS,EAAKrE,EAAWE,EAAQ0D,KAExCS,EAAKrE,EAAWE,EAAQe,EAE5B,IAEJ,CACF,C","sources":["webpack://apprun/webpack/universalModuleDefinition","webpack://apprun/./src/app.ts","webpack://apprun/./src/version.ts","webpack://apprun/webpack/bootstrap","webpack://apprun/webpack/runtime/define property getters","webpack://apprun/webpack/runtime/global","webpack://apprun/webpack/runtime/hasOwnProperty shorthand","webpack://apprun/./src/vdom-to-html.tsx","webpack://apprun/./src/apprun-dev-tools-tests.tsx","webpack://apprun/./src/apprun-dev-tools.tsx"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"apprun\"] = factory();\n\telse\n\t\troot[\"apprun\"] = factory();\n})(this, () => {\nreturn ","/**\n * Core AppRun application class and singleton instance\n *\n * This file provides:\n * 1. App class - The core event system implementation with pub/sub capabilities\n * - on(): Subscribe to events with options (once, delay, global)\n * - off(): Unsubscribe from events with proper cleanup\n * - run(): Publish events synchronously with error handling\n * - runAsync(): Publish events asynchronously with Promise support, returns handler values\n * - query(): Deprecated alias for runAsync() - use runAsync() instead\n *\n * 2. Default app singleton - Global event bus instance\n * - Created once and reused across the application\n * - Stored in global scope (window/global) with version tracking\n * - Prevents duplicate instances across different versions\n *\n * Features:\n * - Event wildcards support (events ending with '*')\n * - Delayed event execution with timeout management\n * - Once-only event subscriptions\n * - Async event handling with Promise.all\n * - Global event bus shared across components\n * - Memory leak prevention with proper cleanup\n *\n * Type Safety Improvements (v3.35.1):\n * - Added validation for event handler functions\n * - Enhanced error handling in event execution\n * - Improved null checks in delayed event handling\n * - Better error reporting for invalid handlers\n *\n * Usage:\n * ```ts\n * // Subscribe to events\n * app.on('event-name', (state, ...args) => {\n * // Handle event\n * });\n *\n * // Publish events (fire-and-forget)\n * app.run('event-name', ...args);\n * \n * // Get return values from event handlers\n * app.runAsync('event-name', data).then(results => {\n * // Handle results array\n * });\n * ```\n */\n\nimport { EventOptions } from './types'\nimport { APPRUN_VERSION_GLOBAL } from './version'\n\nexport class App {\n\n _events: { [key: string]: Array<{ fn: (...args: any[]) => any, options: EventOptions }> };\n\n public start: any;\n public h: any;\n public createElement: any;\n public render: any;\n public Fragment: any;\n public webComponent: any;\n public safeHTML: any;\n public use_render: any;\n public use_react: any;\n public route: any;\n public basePath: string; // Base path for sub-directory deployments\n\n public version: string;\n\n constructor() {\n this._events = {} as { [key: string]: Array<{ fn: (...args: any[]) => any, options: EventOptions }> };\n }\n\n on(name: string, fn: (...args: any[]) => any, options: EventOptions = {}): void {\n this._events[name] = this._events[name] || [];\n this._events[name].push({ fn, options });\n }\n\n off(name: string, fn: (...args: any[]) => any): void {\n const subscribers = this._events[name] || [];\n\n this._events[name] = subscribers.filter((sub) => sub.fn !== fn);\n }\n\n find(name: string): any {\n return this._events[name];\n }\n\n run(name: string, ...args: any[]): number {\n const subscribers = this.getSubscribers(name, this._events);\n console.assert(subscribers && subscribers.length > 0, 'No subscriber for event: ' + name);\n subscribers.forEach((sub) => {\n const { fn, options } = sub;\n if (!fn || typeof fn !== 'function') {\n console.error(`AppRun event handler for '${name}' is not a function:`, fn);\n return false;\n }\n if (options.delay) {\n this.delay(name, fn, args, options);\n } else {\n try {\n Object.keys(options).length > 0 ? fn.apply(this, [...args, options]) : fn.apply(this, args);\n } catch (error) {\n console.error(`Error in event handler for '${name}':`, error);\n }\n }\n return !sub.options.once;\n });\n\n return subscribers.length;\n }\n\n once(name: string, fn: (...args: any[]) => any, options: EventOptions = {}): void {\n this.on(name, fn, { ...options, once: true });\n }\n\n private delay(name: string, fn: (...args: any[]) => any, args: any[], options: EventOptions): void {\n if (options._t) clearTimeout(options._t);\n options._t = setTimeout(() => {\n clearTimeout(options._t);\n try {\n Object.keys(options).length > 0 ? fn.apply(this, [...args, options]) : fn.apply(this, args);\n } catch (error) {\n console.error(`Error in delayed event handler for '${name}':`, error);\n }\n }, options.delay);\n }\n\n runAsync(name: string, ...args: any[]): Promise<any[]> {\n const subscribers = this.getSubscribers(name, this._events);\n console.assert(subscribers && subscribers.length > 0, 'No subscriber for event: ' + name);\n const promises = subscribers.map(sub => {\n const { fn, options } = sub;\n if (!fn || typeof fn !== 'function') {\n console.error(`AppRun async event handler for '${name}' is not a function:`, fn);\n return Promise.resolve(null);\n }\n try {\n return Object.keys(options).length > 0 ? fn.apply(this, [...args, options]) : fn.apply(this, args);\n } catch (error) {\n console.error(`Error in async event handler for '${name}':`, error);\n return Promise.reject(error);\n }\n });\n return Promise.all(promises);\n }\n\n /**\n * @deprecated Use runAsync() instead. app.query() will be removed in a future version.\n */\n query(name: string, ...args: any[]): Promise<any[]> {\n console.warn('app.query() is deprecated. Use app.runAsync() instead.');\n return this.runAsync(name, ...args);\n }\n\n private getSubscribers(name: string, events: { [key: string]: Array<{ fn: (...args: any[]) => any, options: EventOptions }> }): Array<{ fn: (...args: any[]) => any, options: EventOptions }> {\n const subscribers = events[name] || [];\n\n // Update the list of subscribers by pulling out those which will run once.\n // We must do this update prior to running any of the events in case they\n // cause additional events to be turned off or on.\n events[name] = subscribers.filter((sub) => {\n return !sub.options.once;\n });\n Object.keys(events).filter(evt => evt.endsWith('*') && name.startsWith(evt.replace('*', '')))\n .sort((a, b) => b.length - a.length)\n .forEach(evt => subscribers.push(...events[evt].map(sub => ({\n ...sub,\n options: { ...sub.options, event: name }\n }))));\n return subscribers;\n }\n}\n\nconst AppRunVersions = APPRUN_VERSION_GLOBAL;\nlet _app: App;\nconst root = (typeof window !== 'undefined' ? window :\n typeof global !== 'undefined' ? global :\n typeof self !== 'undefined' ? self : {}) as any;\n\nif (root.app && root._AppRunVersions) {\n _app = root.app;\n} else {\n _app = new App();\n root.app = _app;\n root._AppRunVersions = AppRunVersions;\n}\nexport default _app;\n","/**\n * Version Management Utility\n * \n * Single source of truth for AppRun version information.\n * This file ensures version consistency across all modules.\n * \n * The version is derived from package.json and should be updated\n * only when the package version changes.\n */\n\n// Import version from package.json to maintain single source of truth\n// This version string is used across the framework\nexport const APPRUN_VERSION = '3.36.1';\n\n// Version string with prefix for global tracking\nexport const APPRUN_VERSION_GLOBAL = `AppRun-${APPRUN_VERSION}`;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nimport { VDOM } from './types';\nimport { TemplateResult } from 'lit-html';\n\nfunction getProp(prop) {\n if (typeof prop === 'object') {\n return Object.keys(prop).map(name => `${name}:${prop[name]}`).join(';');\n }\n else return prop.toString();\n}\n\nfunction toProps(props) {\n return Object.keys(props)\n .map(name => ` ${name === 'className' ? 'class' : name}=\"${getProp(props[name])}\"`)\n .join('');\n}\n\nfunction toHTMLArray(nodes) {\n return nodes.map(node => toHTML(node)).join('');\n}\n\nfunction clean(obj) {\n for (var i in obj) {\n if (obj[i] == null) {\n delete obj[i];\n } else if (typeof obj[i] === 'object') {\n clean(obj[i]);\n }\n }\n}\n\nfunction toHTML (vdom) {\n if (!vdom) return '';\n if (vdom['_$litType$']) {\n return vdom.toString();\n }\n clean(vdom);\n if (Array.isArray(vdom)) return toHTMLArray(vdom);\n if (typeof vdom === 'string') {\n return vdom.startsWith('_html:') ? vdom.substring(6) : vdom;\n } else if (vdom.tag) {\n const props = vdom.props ? toProps(vdom.props) : '';\n const children = vdom.children ? toHTMLArray(vdom.children) : '';\n return `<${vdom.tag}${props}>${children}</${vdom.tag}>`;\n }\n if (typeof vdom === 'object') return JSON.stringify(vdom);\n}\n\nexport default toHTML;","declare var app;\nlet win;\napp['debug'] = true;\n\nfunction openWin(name) {\n win = window.open('', name);\n win.document.write(`<html>\n <title>AppRun Analyzer | ${document.location.href}</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\" }\n </style>\n <body><pre>`);\n}\n\nfunction write(text) {\n win.document.write(text + '\\n');\n}\n\nfunction closeWin() {\n win.document.write(`</pre>\n </body>\n </html>`);\n win.document.close();\n}\n\nconst print_component_test = component => {\n write(`import ${component.constructor.name} from '../src/${component.constructor.name}'`);\n write(`describe('${component.constructor.name}', ()=>{`);\n component._actions.forEach(action => {\n if (action.name !== '.') {\n write(` it ('should handle event: ${action.name}', (done)=>{`);\n write(` const component = new ${component.constructor.name}().mount();`);\n write(` component.run('${action.name}');`);\n write(` setTimeout(() => {`);\n write(` \\/\\/expect(?).toHaveBeenCalled();`);\n write(` \\/\\/expect(component.state).toBe(?);`);\n write(` done();`);\n write(` })`);\n }\n });\n write(`});`);\n};\nexport const _createEventTests = () => {\n const o = { components: {} };\n app.run('get-components', o);\n const { components } = o;\n openWin('');\n if (components instanceof Map) {\n for (let [key, comps] of components) {\n comps.forEach(print_component_test);\n }\n } else {\n Object.keys(components).forEach(el => {\n components[el].forEach(print_component_test);\n });\n }\n closeWin();\n}\n\nlet recording = false;\nlet events = [];\n\napp.on('debug', p => {\n if (recording && p.vdom) {\n events.push(p);\n console.log(`* ${events.length} state(s) recorded.`);\n }\n});\n\nexport const _createStateTests = (s) => {\n\n const printTests = () => {\n if (events.length === 0) {\n console.log('* No state recorded.');\n return;\n }\n openWin('');\n events.forEach((event, idx) => {\n write(` it ('view snapshot: #${idx + 1}', ()=>{`);\n write(` const component = new ${event.component.constructor.name}()`);\n write(` const state = ${JSON.stringify(event.state, undefined, 2)};`);\n write(` const vdom = component['view'](state);`);\n write(` expect(JSON.stringify(vdom)).toMatchSnapshot();`);\n write(` })`);\n });\n closeWin();\n }\n\n if (s === 'start') {\n events = [];\n recording = true;\n console.log('* State logging started.');\n } else if (s === 'stop') {\n printTests();\n recording = false;\n events = [];\n console.log('* State logging stopped.');\n } else {\n console.log('create-state-tests <start|stop>');\n }\n}\n","import app from './app';\nimport toHTML from './vdom-to-html';\nimport { _createEventTests, _createStateTests } from './apprun-dev-tools-tests';\n\nfunction createProxy(obj) {\n const handler = {\n get(target, property, receiver) {\n\n // Get the property value\n const value = Reflect.get(target, property, receiver);\n\n // If the value is an object (including arrays), proxy it\n if (typeof value === 'object' && value !== null) {\n if (Array.isArray(value)) {\n // Proxy each element of the array if it's an object\n return value.map(item => createProxy(item));\n } else {\n // Recursively proxy the object\n return createProxy(value);\n }\n }\n\n return `{${property}}`\n },\n\n };\n\n return Array.isArray(obj) ?\n obj.map(item => createProxy(item)) : new Proxy(obj, handler);\n}\n\nfunction htmlEncode(input) {\n return !input ? input : input.toString()\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;');\n}\n\nfunction getVDOM(component) {\n let view;\n if (typeof component.state === 'object') {\n const proxy = createProxy(component.state);\n view = component.view(proxy);\n } else {\n view = component.view(component.state);\n }\n return view;\n}\n\napp['debug'] = true;\n\nwindow['_apprun-help'] = ['', () => {\n Object.keys(window).forEach(cmd => {\n if (cmd.startsWith('_apprun-')) {\n cmd === '_apprun-help' ?\n console.log('AppRun Commands:') :\n console.log(`* ${cmd.substring(8)}: ${window[cmd][0]}`);\n }\n });\n}];\n\nfunction newWin(html) {\n const win = window.open('', '_apprun_debug', 'toolbar=0');\n win.document.write(`<html>\n <title>AppRun Analyzer | ${document.location.href}</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\" }\n li { margin-left: 80px; }\n </style>\n <body>\n <div id=\"main\">${html}</div>\n </script>\n </body>\n </html>`);\n win.document.close();\n}\n\nconst get_components = () => {\n const o = { components: {} };\n app.run('get-components', o);\n const { components } = o;\n return components;\n}\nconst viewElement = element => <div>\n {element.tagName.toLowerCase()}{element.id ? '#' + element.id : ''}\n {' '}\n {element.className && element.className.split(' ').map(c => '.' + c).join()}\n</div>;\n\nconst viewComponents = state => {\n const Components = ({ components }) => <ul>\n {components.map(component => {\n\n const vdom = getVDOM(component);\n const events = component['_actions'].map(a => a.name);\n\n const component_def = {\n state: component.state,\n view: vdom,\n actions: events,\n update: component.update\n };\n\n return <li>\n <div>{component.constructor.name}</div>\n <div><pre>{htmlEncode(JSON.stringify(component_def, null, 2))}</pre></div>\n <br />\n </li>;\n\n })}\n </ul>;\n\n return <ul>\n {state.map(({ element, comps }) => <li>\n <div>{viewElement(element)}</div>\n <Components components={comps} />\n </li>)}\n </ul>\n}\n\nconst viewEvents = state => {\n const Components = ({ components }) => <ul>\n {components.map(component => <li>\n <div>{component.constructor.name}</div>\n </li>)}\n </ul>;\n\n const Events = ({ events, global }) => <ul>\n {events && events\n .filter(event =>\n event.global === global && event.event !== '.')\n .map(({ event, components }) => <li>\n <div>{event}</div>\n <Components components={components} />\n </li>)}\n </ul>;\n\n return <div>\n <div>GLOBAL EVENTS</div>\n <Events events={state} global={true} />\n <div>LOCAL EVENTS</div>\n <Events events={state} global={false} />\n </div>\n}\n\nconst _events = (print?) => {\n const global_events = app['_events']\n const events = {};\n const cache = get_components();\n\n const add_component = component => component['_actions'].forEach(event => {\n events[event.name] = events[event.name] || [];\n events[event.name].push(component);\n });\n\n if (cache instanceof Map) {\n for (let [key, comps] of cache) {\n comps.forEach(add_component);\n }\n } else {\n Object.keys(cache).forEach(el =>\n cache[el].forEach(add_component)\n );\n }\n const data = [];\n Object.keys(events).forEach(event => {\n data.push({ event, components: events[event], global: global_events[event] ? true : false });\n });\n\n data.sort(((a, b) => a.event > b.event ? 1 : -1)).map(e => e.event);\n\n if (print) {\n const vdom = viewEvents(data);\n newWin(toHTML(vdom));\n } else {\n console.log('=== GLOBAL EVENTS ===')\n data.filter(event => event.global && event.event !== '.')\n .forEach(({ event, components }) => console.log({ event }, components));\n console.log('=== LOCAL EVENTS ===')\n data.filter(event => !event.global && event.event !== '.')\n .forEach(({ event, components }) => console.log({ event }, components));\n }\n}\n\nconst _components = (print?) => {\n const components = get_components();\n const data = [];\n\n if (components instanceof Map) {\n for (let [key, comps] of components) {\n const element = typeof key === 'string' ? document.getElementById(key) || document.querySelector(key) : key;\n data.push({ element, comps });\n }\n } else {\n Object.keys(components).forEach(el => {\n const element = typeof el === 'string' ? document.getElementById(el) || document.querySelector(el) : el;\n data.push({ element, comps: components[el] });\n });\n }\n if (print) {\n const vdom = viewComponents(data);\n newWin(toHTML(vdom));\n } else {\n data.forEach(({ element, comps }) => console.log(element, comps));\n }\n}\n\nlet debugging = Number(window?.localStorage?.getItem('__apprun_debugging__')) || 0;\napp.on('debug', p => {\n if (debugging & 1 && p.event) console.log(p);\n if (debugging & 2 && p.vdom) console.log(p);\n});\n\nwindow['_apprun-components'] = ['components [print]', (p) => {\n _components(p === 'print');\n}]\n\nwindow['_apprun-events'] = ['events [print]', (p) => {\n _events(p === 'print');\n}]\n\nwindow['_apprun-log'] = ['log [event|view] on|off', (a1?, a2?) => {\n if (a1 === 'on') {\n debugging = 3;\n } else if (a1 === 'off') {\n debugging = 0;\n } else if (a1 === 'event') {\n if (a2 === 'on') {\n debugging |= 1;\n } else if (a2 === 'off') {\n debugging &= ~1;\n }\n } else if (a1 === 'view') {\n if (a2 === 'on') {\n debugging |= 2;\n } else if (a2 === 'off') {\n debugging &= ~2;\n }\n }\n console.log(`* log ${a1} ${a2 || ''}`);\n window?.localStorage?.setItem('__apprun_debugging__', `${debugging}`)\n}];\n\nwindow['_apprun-create-event-tests'] = ['create-event-tests',\n () => _createEventTests()\n]\n\nwindow['_apprun-create-state-tests'] = ['create-state-tests <start|stop>',\n (p?) => _createStateTests(p)\n]\n\nwindow['_apprun'] = (strings) => {\n const [cmd, ...p] = strings[0].split(' ').filter(c => !!c);\n const command = window[`_apprun-${cmd}`];\n if (command) command[1](...p);\n else window['_apprun-help'][1]();\n}\n\nconsole.info('AppRun DevTools 2.27: type \"_apprun `help`\" to list all available commands.');\n\nconst reduxExt = window['__REDUX_DEVTOOLS_EXTENSION__'];\nif (reduxExt) {\n let devTools_running = false;\n const devTools = window['__REDUX_DEVTOOLS_EXTENSION__'].connect();\n if (devTools) {\n const hash = location.hash || '#';\n devTools.send(hash, '');\n const buf = [{ component: null, state: '' }];\n console.info('Connected to the Redux DevTools');\n devTools.subscribe((message) => {\n if (message.type === 'START') devTools_running = true;\n else if (message.type === 'STOP') devTools_running = false;\n else if (message.type === 'DISPATCH') {\n // console.log('From Redux DevTools: ', message);\n const idx = message.payload.index;\n if (idx === 0) { app.run(hash) }\n else {\n const { component, state } = buf[idx];\n component?.setState(state);\n }\n }\n });\n\n const send = (component, action, state) => {\n if (state == null) return;\n buf.push({ component, state });\n devTools.send(action, state);\n }\n\n app.on('debug', p => {\n if (devTools_running && p.event) {\n const state = p.newState;\n const type = p.event;\n const payload = p.p;\n const action = { type, payload };\n const component = p.component;\n if (state instanceof Promise) {\n state.then(s => send(component, action, s));\n } else {\n send(component, action, state);\n }\n }\n });\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","AppRunVersions","_app","window","g","self","app","_AppRunVersions","constructor","_events","on","name","fn","options","push","off","subscribers","filter","sub","find","run","args","getSubscribers","console","assert","length","forEach","error","delay","Object","keys","apply","once","_t","clearTimeout","setTimeout","runAsync","promises","map","Promise","resolve","reject","all","query","warn","events","evt","endsWith","startsWith","replace","sort","a","b","event","APPRUN_VERSION_GLOBAL","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","defineProperty","enumerable","get","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","call","toHTMLArray","nodes","node","toHTML","join","clean","i","vdom","toString","Array","isArray","substring","tag","props","toProps","children","JSON","stringify","win","openWin","open","document","write","location","href","text","closeWin","close","print_component_test","component","_actions","action","recording","p","log","createProxy","handler","target","property","receiver","value","Reflect","item","Proxy","getVDOM","view","state","proxy","newWin","html","cmd","get_components","components","debugging","Number","localStorage","getItem","print","data","Map","comps","element","getElementById","querySelector","el","Components","component_def","actions","update","input","tagName","toLowerCase","id","className","split","c","viewElement","viewComponents","_components","global_events","cache","add_component","global","Events","viewEvents","a1","a2","setItem","_createEventTests","s","idx","strings","command","info","devTools_running","devTools","connect","hash","send","buf","subscribe","message","type","payload","index","setState","newState","then"],"sourceRoot":""}
1
+ {"version":3,"file":"dist/apprun-dev-tools.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,GACe,iBAAZC,QACdA,QAAgB,OAAID,IAEpBD,EAAa,OAAIC,GAClB,CATD,CASGK,MAAM,I,yDCGF,MAGMC,EAAwB,e,8CCgJrC,MAAMC,EAAiB,IACvB,IAAIC,EACJ,MAAMT,EAA0B,oBAAXU,OAAyBA,YAC1B,IAAX,EAAAC,EAAyB,EAAAA,EACd,oBAATC,KAAuBA,KAAO,CAAC,EAEtCZ,EAAKa,KAAOb,EAAKc,gBACnBL,EAAOT,EAAKa,KAEZJ,EAAO,IAtHF,MAIL,WAAAM,GACET,KAAKU,QAAU,CAAC,CAClB,CAEA,EAAAC,CAAGC,EAAcC,EAA6BC,EAAwB,CAAC,GACrEd,KAAKU,QAAQE,GAAQZ,KAAKU,QAAQE,IAAS,GAC3CZ,KAAKU,QAAQE,GAAMG,KAAK,CAAEF,KAAIC,WAChC,CAEA,GAAAE,CAAIJ,EAAcC,GAChB,MAAMI,EAAcjB,KAAKU,QAAQE,IAAS,GAE1CZ,KAAKU,QAAQE,GAAQK,EAAYC,QAAQC,GAAQA,EAAIN,KAAOA,GAC9D,CAEA,IAAAO,CAAKR,GACH,OAAOZ,KAAKU,QAAQE,EACtB,CAEA,GAAAS,CAAIT,KAAiBU,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GAAoB/D,EAAEvD,MAAO,CAC/B,MAAMoE,EAAQb,EAAE2E,SAGV7E,EAAS,CAAEyE,KAFJvE,EAAEvD,MAEQ+H,QADPxE,EAAEA,GAEZJ,EAAYI,EAAEJ,UAChBiB,aAAiBlF,QACnBkF,EAAM+D,MAAKlB,GAAKS,EAAKvE,EAAWE,EAAQ4D,KAExCS,EAAKvE,EAAWE,EAAQe,EAE5B,IAEJ,CACF,C","sources":["webpack://apprun/webpack/universalModuleDefinition","webpack://apprun/./src/version.ts","webpack://apprun/./src/app.ts","webpack://apprun/webpack/bootstrap","webpack://apprun/webpack/runtime/define property getters","webpack://apprun/webpack/runtime/global","webpack://apprun/webpack/runtime/hasOwnProperty shorthand","webpack://apprun/./src/vdom-to-html.tsx","webpack://apprun/./src/apprun-dev-tools-tests.tsx","webpack://apprun/./src/apprun-dev-tools.tsx"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"apprun\"] = factory();\n\telse\n\t\troot[\"apprun\"] = factory();\n})(this, () => {\nreturn ","/**\n * Version Management Utility\n * \n * Single source of truth for AppRun version information.\n * This file ensures version consistency across all modules.\n * \n * The version is derived from package.json and should be updated\n * only when the package version changes.\n */\n\n// Import version from package.json to maintain single source of truth\n// This version string is used across the framework\nexport const APPRUN_VERSION = '3.37.0';\n\n// Version string with prefix for global tracking\nexport const APPRUN_VERSION_GLOBAL = `AppRun-${APPRUN_VERSION}`;\n","/**\n * Core AppRun application class and singleton instance\n *\n * This file provides:\n * 1. App class - The core event system implementation with pub/sub capabilities\n * - on(): Subscribe to events with options (once, delay, global)\n * - off(): Unsubscribe from events with proper cleanup\n * - run(): Publish events synchronously with error handling\n * - runAsync(): Publish events asynchronously with Promise support, returns handler values\n * - query(): Deprecated alias for runAsync() - use runAsync() instead\n *\n * 2. Default app singleton - Global event bus instance\n * - Created once and reused across the application\n * - Stored in global scope (window/global) with version tracking\n * - Prevents duplicate instances across different versions\n *\n * Features:\n * - Event wildcards support (events ending with '*')\n * - Delayed event execution with timeout management\n * - Once-only event subscriptions\n * - Async event handling with Promise.all\n * - Global event bus shared across components\n * - Memory leak prevention with proper cleanup\n *\n * Type Safety Improvements (v3.35.1):\n * - Added validation for event handler functions\n * - Enhanced error handling in event execution\n * - Improved null checks in delayed event handling\n * - Better error reporting for invalid handlers\n *\n * Usage:\n * ```ts\n * // Subscribe to events\n * app.on('event-name', (state, ...args) => {\n * // Handle event\n * });\n *\n * // Publish events (fire-and-forget)\n * app.run('event-name', ...args);\n * \n * // Get return values from event handlers\n * app.runAsync('event-name', data).then(results => {\n * // Handle results array\n * });\n * ```\n */\n\nimport { EventOptions } from './types'\nimport { APPRUN_VERSION_GLOBAL } from './version'\n\nexport class App {\n\n _events: { [key: string]: Array<{ fn: (...args: any[]) => any, options: EventOptions }> };\n\n constructor() {\n this._events = {} as { [key: string]: Array<{ fn: (...args: any[]) => any, options: EventOptions }> };\n }\n\n on(name: string, fn: (...args: any[]) => any, options: EventOptions = {}): void {\n this._events[name] = this._events[name] || [];\n this._events[name].push({ fn, options });\n }\n\n off(name: string, fn: (...args: any[]) => any): void {\n const subscribers = this._events[name] || [];\n\n this._events[name] = subscribers.filter((sub) => sub.fn !== fn);\n }\n\n find(name: string): any {\n return this._events[name];\n }\n\n run(name: string, ...args: any[]): number {\n const subscribers = this.getSubscribers(name, this._events);\n console.assert(subscribers && subscribers.length > 0, 'No subscriber for event: ' + name);\n subscribers.forEach((sub) => {\n const { fn, options } = sub;\n if (!fn || typeof fn !== 'function') {\n console.error(`AppRun event handler for '${name}' is not a function:`, fn);\n return false;\n }\n if (options.delay) {\n this.delay(name, fn, args, options);\n } else {\n try {\n Object.keys(options).length > 0 ? fn.apply(this, [...args, options]) : fn.apply(this, args);\n } catch (error) {\n console.error(`Error in event handler for '${name}':`, error);\n }\n }\n return !sub.options.once;\n });\n\n return subscribers.length;\n }\n\n once(name: string, fn: (...args: any[]) => any, options: EventOptions = {}): void {\n this.on(name, fn, { ...options, once: true });\n }\n\n private delay(name: string, fn: (...args: any[]) => any, args: any[], options: EventOptions): void {\n if (options._t) clearTimeout(options._t);\n options._t = setTimeout(() => {\n clearTimeout(options._t);\n try {\n Object.keys(options).length > 0 ? fn.apply(this, [...args, options]) : fn.apply(this, args);\n } catch (error) {\n console.error(`Error in delayed event handler for '${name}':`, error);\n }\n }, options.delay);\n }\n\n runAsync(name: string, ...args: any[]): Promise<any[]> {\n const subscribers = this.getSubscribers(name, this._events);\n console.assert(subscribers && subscribers.length > 0, 'No subscriber for event: ' + name);\n const promises = subscribers.map(sub => {\n const { fn, options } = sub;\n if (!fn || typeof fn !== 'function') {\n console.error(`AppRun async event handler for '${name}' is not a function:`, fn);\n return Promise.resolve(null);\n }\n try {\n return Object.keys(options).length > 0 ? fn.apply(this, [...args, options]) : fn.apply(this, args);\n } catch (error) {\n console.error(`Error in async event handler for '${name}':`, error);\n return Promise.reject(error);\n }\n });\n return Promise.all(promises);\n }\n\n /**\n * @deprecated Use runAsync() instead. app.query() will be removed in a future version.\n */\n query(name: string, ...args: any[]): Promise<any[]> {\n console.warn('app.query() is deprecated. Use app.runAsync() instead.');\n return this.runAsync(name, ...args);\n }\n\n private getSubscribers(name: string, events: { [key: string]: Array<{ fn: (...args: any[]) => any, options: EventOptions }> }): Array<{ fn: (...args: any[]) => any, options: EventOptions }> {\n const subscribers = events[name] || [];\n\n // Update the list of subscribers by pulling out those which will run once.\n // We must do this update prior to running any of the events in case they\n // cause additional events to be turned off or on.\n events[name] = subscribers.filter((sub) => {\n return !sub.options.once;\n });\n Object.keys(events).filter(evt => evt.endsWith('*') && name.startsWith(evt.replace('*', '')))\n .sort((a, b) => b.length - a.length)\n .forEach(evt => subscribers.push(...events[evt].map(sub => ({\n ...sub,\n options: { ...sub.options, event: name }\n }))));\n return subscribers;\n }\n}\n\nconst AppRunVersions = APPRUN_VERSION_GLOBAL;\nlet _app: App;\nconst root = (typeof window !== 'undefined' ? window :\n typeof global !== 'undefined' ? global :\n typeof self !== 'undefined' ? self : {}) as any;\n\nif (root.app && root._AppRunVersions) {\n _app = root.app;\n} else {\n _app = new App();\n root.app = _app;\n root._AppRunVersions = AppRunVersions;\n}\nexport default _app;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","\nimport { VDOM } from './types';\nimport { TemplateResult } from 'lit-html';\n\nfunction getProp(prop) {\n if (typeof prop === 'object') {\n return Object.keys(prop).map(name => `${name}:${prop[name]}`).join(';');\n }\n else return prop.toString();\n}\n\nfunction toProps(props) {\n return Object.keys(props)\n .map(name => ` ${name === 'className' ? 'class' : name}=\"${getProp(props[name])}\"`)\n .join('');\n}\n\nfunction toHTMLArray(nodes) {\n return nodes.map(node => toHTML(node)).join('');\n}\n\nfunction clean(obj) {\n for (var i in obj) {\n if (obj[i] == null) {\n delete obj[i];\n } else if (typeof obj[i] === 'object') {\n clean(obj[i]);\n }\n }\n}\n\nfunction toHTML (vdom) {\n if (!vdom) return '';\n if (vdom['_$litType$']) {\n return vdom.toString();\n }\n clean(vdom);\n if (Array.isArray(vdom)) return toHTMLArray(vdom);\n if (typeof vdom === 'string') {\n return vdom.startsWith('_html:') ? vdom.substring(6) : vdom;\n } else if (vdom.tag) {\n const props = vdom.props ? toProps(vdom.props) : '';\n const children = vdom.children ? toHTMLArray(vdom.children) : '';\n return `<${vdom.tag}${props}>${children}</${vdom.tag}>`;\n }\n if (typeof vdom === 'object') return JSON.stringify(vdom);\n}\n\nexport default toHTML;","declare var app;\nlet win;\napp['debug'] = true;\n\nfunction openWin(name) {\n win = window.open('', name);\n win.document.write(`<html>\n <title>AppRun Analyzer | ${document.location.href}</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\" }\n </style>\n <body><pre>`);\n}\n\nfunction write(text) {\n win.document.write(text + '\\n');\n}\n\nfunction closeWin() {\n win.document.write(`</pre>\n </body>\n </html>`);\n win.document.close();\n}\n\nconst print_component_test = component => {\n write(`import ${component.constructor.name} from '../src/${component.constructor.name}'`);\n write(`describe('${component.constructor.name}', ()=>{`);\n component._actions.forEach(action => {\n if (action.name !== '.') {\n write(` it ('should handle event: ${action.name}', (done)=>{`);\n write(` const component = new ${component.constructor.name}().mount();`);\n write(` component.run('${action.name}');`);\n write(` setTimeout(() => {`);\n write(` \\/\\/expect(?).toHaveBeenCalled();`);\n write(` \\/\\/expect(component.state).toBe(?);`);\n write(` done();`);\n write(` })`);\n }\n });\n write(`});`);\n};\nexport const _createEventTests = () => {\n const o = { components: {} };\n app.run('get-components', o);\n const { components } = o;\n openWin('');\n if (components instanceof Map) {\n for (let [key, comps] of components) {\n comps.forEach(print_component_test);\n }\n } else {\n Object.keys(components).forEach(el => {\n components[el].forEach(print_component_test);\n });\n }\n closeWin();\n}\n\nlet recording = false;\nlet events = [];\n\napp.on('debug', p => {\n if (recording && p.vdom) {\n events.push(p);\n console.log(`* ${events.length} state(s) recorded.`);\n }\n});\n\nexport const _createStateTests = (s) => {\n\n const printTests = () => {\n if (events.length === 0) {\n console.log('* No state recorded.');\n return;\n }\n openWin('');\n events.forEach((event, idx) => {\n write(` it ('view snapshot: #${idx + 1}', ()=>{`);\n write(` const component = new ${event.component.constructor.name}()`);\n write(` const state = ${JSON.stringify(event.state, undefined, 2)};`);\n write(` const vdom = component['view'](state);`);\n write(` expect(JSON.stringify(vdom)).toMatchSnapshot();`);\n write(` })`);\n });\n closeWin();\n }\n\n if (s === 'start') {\n events = [];\n recording = true;\n console.log('* State logging started.');\n } else if (s === 'stop') {\n printTests();\n recording = false;\n events = [];\n console.log('* State logging stopped.');\n } else {\n console.log('create-state-tests <start|stop>');\n }\n}\n","import app from './app';\nimport toHTML from './vdom-to-html';\nimport { _createEventTests, _createStateTests } from './apprun-dev-tools-tests';\n\nfunction createProxy(obj) {\n const handler = {\n get(target, property, receiver) {\n\n // Get the property value\n const value = Reflect.get(target, property, receiver);\n\n // If the value is an object (including arrays), proxy it\n if (typeof value === 'object' && value !== null) {\n if (Array.isArray(value)) {\n // Proxy each element of the array if it's an object\n return value.map(item => createProxy(item));\n } else {\n // Recursively proxy the object\n return createProxy(value);\n }\n }\n\n return `{${property}}`\n },\n\n };\n\n return Array.isArray(obj) ?\n obj.map(item => createProxy(item)) : new Proxy(obj, handler);\n}\n\nfunction htmlEncode(input) {\n return !input ? input : input.toString()\n .replace(/&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;');\n}\n\nfunction getVDOM(component) {\n let view;\n if (typeof component.state === 'object') {\n const proxy = createProxy(component.state);\n view = component.view(proxy);\n } else {\n view = component.view(component.state);\n }\n return view;\n}\n\nconst componentCache = new Map();\napp['debug'] = true;\napp.on('debug-create-component', component => {\n const element = component.element;\n if (!element) {\n console.warn('Component created without an element:', component);\n return;\n }\n if (componentCache.get(element)) { componentCache.get(element).push(component) }\n else { componentCache.set(element, [component]) }\n});\n\nwindow['_apprun-help'] = ['', () => {\n Object.keys(window).forEach(cmd => {\n if (cmd.startsWith('_apprun-')) {\n cmd === '_apprun-help' ?\n console.log('AppRun Commands:') :\n console.log(`* ${cmd.substring(8)}: ${window[cmd][0]}`);\n }\n });\n}];\n\nfunction newWin(html) {\n const win = window.open('', '_apprun_debug', 'toolbar=0');\n win.document.write(`<html>\n <title>AppRun Analyzer | ${document.location.href}</title>\n <style>\n body { font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\" }\n li { margin-left: 80px; }\n </style>\n <body>\n <div id=\"main\">${html}</div>\n </script>\n </body>\n </html>`);\n win.document.close();\n}\n\nconst viewElement = element => <div>\n {element.tagName.toLowerCase()}{element.id ? '#' + element.id : ''}\n {' '}\n {element.className && element.className.split(' ').map(c => '.' + c).join()}\n</div>;\n\nconst viewComponents = state => {\n const Components = ({ components }) => <ul>\n {components.map(component => {\n\n const vdom = getVDOM(component);\n const events = component['_actions'].map(a => a.name);\n\n const component_def = {\n state: component.state,\n view: vdom,\n actions: events,\n update: component.update\n };\n\n return <li>\n <div>{component.constructor.name}</div>\n <div><pre>{htmlEncode(JSON.stringify(component_def, null, 2))}</pre></div>\n <br />\n </li>;\n\n })}\n </ul>;\n\n return <ul>\n {state.map(({ element, comps }) => <li>\n <div>{viewElement(element)}</div>\n <Components components={comps} />\n </li>)}\n </ul>\n}\n\nconst viewEvents = state => {\n const Components = ({ components }) => <ul>\n {components.map(component => <li>\n <div>{component.constructor.name}</div>\n </li>)}\n </ul>;\n\n const Events = ({ events, global }) => <ul>\n {events && events\n .filter(event =>\n event.global === global && event.event !== '.')\n .map(({ event, components }) => <li>\n <div>{event}</div>\n <Components components={components} />\n </li>)}\n </ul>;\n\n return <div>\n <div>GLOBAL EVENTS</div>\n <Events events={state} global={true} />\n <div>LOCAL EVENTS</div>\n <Events events={state} global={false} />\n </div>\n}\n\nconst _events = (print?) => {\n const global_events = app['_events']\n const events = {};\n const cache = componentCache;\n\n const add_component = component => component['_actions'].forEach(event => {\n events[event.name] = events[event.name] || [];\n events[event.name].push(component);\n });\n\n if (cache instanceof Map) {\n for (let [key, comps] of cache) {\n comps.forEach(add_component);\n }\n }\n const data = [];\n Object.keys(events).forEach(event => {\n data.push({ event, components: events[event], global: global_events[event] ? true : false });\n });\n\n data.sort(((a, b) => a.event > b.event ? 1 : -1)).map(e => e.event);\n\n if (print) {\n const vdom = viewEvents(data);\n newWin(toHTML(vdom));\n } else {\n console.log('=== GLOBAL EVENTS ===')\n data.filter(event => event.global && event.event !== '.')\n .forEach(({ event, components }) => console.log({ event }, components));\n console.log('=== LOCAL EVENTS ===')\n data.filter(event => !event.global && event.event !== '.')\n .forEach(({ event, components }) => console.log({ event }, components));\n }\n}\n\nconst _components = (print?) => {\n const components = componentCache;\n const data = [];\n\n if (components instanceof Map) {\n for (let [key, comps] of components) {\n const element = typeof key === 'string' ? document.getElementById(key) || document.querySelector(key) : key;\n data.push({ element, comps });\n }\n }\n if (print) {\n const vdom = viewComponents(data);\n newWin(toHTML(vdom));\n } else {\n data.forEach(({ element, comps }) => console.log(element, comps));\n }\n}\n\nlet debugging = Number(window?.localStorage?.getItem('__apprun_debugging__')) || 0;\napp.on('debug', p => {\n if (debugging & 1 && p.event) console.log(p);\n if (debugging & 2 && p.vdom) console.log(p);\n});\n\nwindow['_apprun-components'] = ['components [print|clear]', (p) => {\n if (p === 'print') {\n _components(true);\n } else if (p === 'clear') {\n componentCache.clear();\n console.log('Component cache cleared');\n } else {\n _components(false);\n }\n}]\n\nwindow['_apprun-events'] = ['events [print]', (p) => {\n _events(p === 'print');\n}]\n\nwindow['_apprun-log'] = ['log [event|view] on|off', (a1?, a2?) => {\n if (a1 === 'on') {\n debugging = 3;\n } else if (a1 === 'off') {\n debugging = 0;\n } else if (a1 === 'event') {\n if (a2 === 'on') {\n debugging |= 1;\n } else if (a2 === 'off') {\n debugging &= ~1;\n }\n } else if (a1 === 'view') {\n if (a2 === 'on') {\n debugging |= 2;\n } else if (a2 === 'off') {\n debugging &= ~2;\n }\n }\n console.log(`* log ${a1} ${a2 || ''}`);\n window?.localStorage?.setItem('__apprun_debugging__', `${debugging}`)\n}];\n\nwindow['_apprun-create-event-tests'] = ['create-event-tests',\n () => _createEventTests()\n]\n\nwindow['_apprun-create-state-tests'] = ['create-state-tests <start|stop>',\n (p?) => _createStateTests(p)\n]\n\nwindow['_apprun'] = (strings) => {\n const [cmd, ...p] = strings[0].split(' ').filter(c => !!c);\n const command = window[`_apprun-${cmd}`];\n if (command) command[1](...p);\n else window['_apprun-help'][1]();\n}\n\nconsole.info('AppRun DevTools 3.36: type \"_apprun `help`\" to list all available commands.');\n\nconst reduxExt = window['__REDUX_DEVTOOLS_EXTENSION__'];\nif (reduxExt) {\n let devTools_running = false;\n const devTools = window['__REDUX_DEVTOOLS_EXTENSION__'].connect();\n if (devTools) {\n const hash = location.hash || '#';\n devTools.send(hash, '');\n const buf = [{ component: null, state: '' }];\n console.info('Connected to the Redux DevTools');\n devTools.subscribe((message) => {\n if (message.type === 'START') devTools_running = true;\n else if (message.type === 'STOP') devTools_running = false;\n else if (message.type === 'DISPATCH') {\n // console.log('From Redux DevTools: ', message);\n const idx = message.payload.index;\n if (idx === 0) { app.run(hash) }\n else {\n const { component, state } = buf[idx];\n component?.setState(state);\n }\n }\n });\n\n const send = (component, action, state) => {\n if (state == null) return;\n buf.push({ component, state });\n devTools.send(action, state);\n }\n\n app.on('debug', p => {\n if (devTools_running && p.event) {\n const state = p.newState;\n const type = p.event;\n const payload = p.p;\n const action = { type, payload };\n const component = p.component;\n if (state instanceof Promise) {\n state.then(s => send(component, action, s));\n } else {\n send(component, action, state);\n }\n }\n });\n }\n}\n"],"names":["root","factory","exports","module","define","amd","this","APPRUN_VERSION_GLOBAL","AppRunVersions","_app","window","g","self","app","_AppRunVersions","constructor","_events","on","name","fn","options","push","off","subscribers","filter","sub","find","run","args","getSubscribers","console","assert","length","forEach","error","delay","Object","keys","apply","once","_t","clearTimeout","setTimeout","runAsync","promises","map","Promise","resolve","reject","all","query","warn","events","evt","endsWith","startsWith","replace","sort","a","b","event","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","defineProperty","enumerable","get","globalThis","Function","e","obj","prop","prototype","hasOwnProperty","call","toHTMLArray","nodes","node","toHTML","join","clean","i","vdom","toString","Array","isArray","substring","tag","props","toProps","children","JSON","stringify","win","openWin","open","document","write","location","href","text","closeWin","close","print_component_test","component","_actions","action","recording","p","log","createProxy","handler","target","property","receiver","value","Reflect","item","Proxy","getVDOM","view","state","proxy","componentCache","Map","newWin","html","element","set","cmd","_components","print","components","data","comps","getElementById","querySelector","Components","component_def","actions","update","input","tagName","toLowerCase","id","className","split","c","viewElement","viewComponents","debugging","Number","localStorage","getItem","clear","global_events","cache","add_component","global","Events","viewEvents","a1","a2","setItem","el","_createEventTests","s","idx","strings","command","info","devTools_running","devTools","connect","hash","send","buf","subscribe","message","type","payload","index","setState","newState","then"],"sourceRoot":""}
@@ -1,34 +1,34 @@
1
- const n="3.36.1",t=`AppRun-${n}`;class e{constructor(){this._events={}}on(n,t,e={}){this._events[n]=this._events[n]||[],this._events[n].push({fn:t,options:e})}off(n,t){const e=this._events[n]||[];this._events[n]=e.filter((n=>n.fn!==t))}find(n){return this._events[n]}run(n,...t){const e=this.getSubscribers(n,this._events);return console.assert(e&&e.length>0,"No subscriber for event: "+n),e.forEach((e=>{const{fn:l,options:o}=e;if(!l||"function"!=typeof l)return console.error(`AppRun event handler for '${n}' is not a function:`,l),!1;if(o.delay)this.delay(n,l,t,o);else try{Object.keys(o).length>0?l.apply(this,[...t,o]):l.apply(this,t)}catch(t){console.error(`Error in event handler for '${n}':`,t)}return!e.options.once})),e.length}once(n,t,e={}){this.on(n,t,Object.assign(Object.assign({},e),{once:!0}))}delay(n,t,e,l){l._t&&clearTimeout(l._t),l._t=setTimeout((()=>{clearTimeout(l._t);try{Object.keys(l).length>0?t.apply(this,[...e,l]):t.apply(this,e)}catch(t){console.error(`Error in delayed event handler for '${n}':`,t)}}),l.delay)}runAsync(n,...t){const e=this.getSubscribers(n,this._events);console.assert(e&&e.length>0,"No subscriber for event: "+n);const l=e.map((e=>{const{fn:l,options:o}=e;if(!l||"function"!=typeof l)return console.error(`AppRun async event handler for '${n}' is not a function:`,l),Promise.resolve(null);try{return Object.keys(o).length>0?l.apply(this,[...t,o]):l.apply(this,t)}catch(t){return console.error(`Error in async event handler for '${n}':`,t),Promise.reject(t)}}));return Promise.all(l)}query(n,...t){return console.warn("app.query() is deprecated. Use app.runAsync() instead."),this.runAsync(n,...t)}getSubscribers(n,t){const e=t[n]||[];return t[n]=e.filter((n=>!n.options.once)),Object.keys(t).filter((t=>t.endsWith("*")&&n.startsWith(t.replace("*","")))).sort(((n,t)=>t.length-n.length)).forEach((l=>e.push(...t[l].map((t=>Object.assign(Object.assign({},t),{options:Object.assign(Object.assign({},t.options),{event:n})})))))),e}}const l=t;let o;const i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};i.app&&i._AppRunVersions?o=i.app:(o=new e,i.app=o,i._AppRunVersions=l);var s=o;function r(n){return(null==n?void 0:n.target)instanceof HTMLElement?n.target:null}const u=(n,t)=>(t?n.state[t]:n.state)||"",a=(n,t,e)=>{if(t){const l=n.state||{};l[t]=e,n.setState(l)}else n.setState(e)},c=(n,t)=>{if(Array.isArray(n))return n.map((n=>c(n,t)));{let{type:e,tag:l,props:o,children:i}=n;return l=l||e,i=i||(null==o?void 0:o.children),o&&Object.keys(o).forEach((n=>{n.startsWith("$")&&(((n,t,e,l)=>{if(n.startsWith("$on")){const e=t[n];if(n=n.substring(1),"boolean"==typeof e)t[n]=t=>l.run?l.run(n,t):s.run(n,t);else if("string"==typeof e)t[n]=n=>l.run?l.run(e,n):s.run(e,n);else if("function"==typeof e)t[n]=n=>l.setState(e(l.state,n));else if(Array.isArray(e)){const[o,...i]=e;"string"==typeof o?t[n]=n=>l.run?l.run(o,...i,n):s.run(o,...i,n):"function"==typeof o&&(t[n]=n=>l.setState(o(l.state,...i,n)))}}else if("$bind"===n){const o=t.type||"text",i="string"==typeof t[n]?t[n]:t.name;if("input"===e)switch(o){case"checkbox":t.checked=u(l,i),t.onclick=n=>{const t=r(n);t&&a(l,i||t.name,t.checked)};break;case"radio":t.checked=u(l,i)===t.value,t.onclick=n=>{const t=r(n);t&&a(l,i||t.name,t.value)};break;case"number":case"range":t.value=u(l,i),t.oninput=n=>{const t=r(n);t&&a(l,i||t.name,Number(t.value))};break;default:t.value=u(l,i),t.oninput=n=>{const t=r(n);t&&a(l,i||t.name,t.value)}}else"select"===e?(t.value=u(l,i),t.onchange=n=>{const t=r(n);t&&!t.multiple&&a(l,i||t.name,t.value)}):"option"===e?(t.selected=u(l,i),t.onclick=n=>{const t=r(n);t&&a(l,i||t.name,t.selected)}):"textarea"===e&&(t.innerHTML=u(l,i),t.oninput=n=>{const t=r(n);t&&a(l,i||t.name,t.value)})}else s.run("$",{key:n,tag:e,props:t,component:l})})(n,o,l,t),delete o[n])})),i&&c(i,t),n}};class h{constructor(n,t,e){this.normal=t,this.property=n,e&&(this.space=e)}}function d(n,t){const e={},l={};for(const t of n)Object.assign(e,t.property),Object.assign(l,t.normal);return new h(e,l,t)}function f(n){return n.toLowerCase()}h.prototype.normal={},h.prototype.property={},h.prototype.space=void 0;class p{constructor(n,t){this.attribute=t,this.property=n}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let g=0;const m=O(),v=O(),y=O(),b=O(),w=O(),S=O(),k=O();function O(){return 2**++g}var C=Object.freeze({__proto__:null,boolean:m,booleanish:v,commaOrSpaceSeparated:k,commaSeparated:S,number:b,overloadedBoolean:y,spaceSeparated:w});const x=Object.keys(C);class M extends p{constructor(n,t,e,l){let o=-1;if(super(n,t),P(this,"space",l),"number"==typeof e)for(;++o<x.length;){const n=x[o];P(this,x[o],(e&C[n])===C[n])}}}function P(n,t,e){e&&(n[t]=e)}function A(n){const t={},e={};for(const[l,o]of Object.entries(n.properties)){const i=new M(l,n.transform(n.attributes||{},l),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(l)&&(i.mustUseProperty=!0),t[l]=i,e[f(l)]=l,e[f(i.attribute)]=l}return new h(t,e,n.space)}M.prototype.defined=!0;const E=A({properties:{ariaActiveDescendant:null,ariaAtomic:v,ariaAutoComplete:null,ariaBusy:v,ariaChecked:v,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:w,ariaCurrent:null,ariaDescribedBy:w,ariaDetails:null,ariaDisabled:v,ariaDropEffect:w,ariaErrorMessage:null,ariaExpanded:v,ariaFlowTo:w,ariaGrabbed:v,ariaHasPopup:null,ariaHidden:v,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:w,ariaLevel:b,ariaLive:null,ariaModal:v,ariaMultiLine:v,ariaMultiSelectable:v,ariaOrientation:null,ariaOwns:w,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:v,ariaReadOnly:v,ariaRelevant:null,ariaRequired:v,ariaRoleDescription:w,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:v,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform:(n,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function R(n,t){return t in n?n[t]:t}function D(n,t){return R(n,t.toLowerCase())}const $=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:S,acceptCharset:w,accessKey:w,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:w,autoFocus:m,autoPlay:m,blocking:w,capture:null,charSet:null,checked:m,cite:null,className:w,cols:b,colSpan:null,content:null,contentEditable:v,controls:m,controlsList:w,coords:b|S,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:y,draggable:v,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:w,height:b,hidden:y,high:b,href:null,hrefLang:null,htmlFor:w,httpEquiv:w,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:w,itemRef:w,itemScope:m,itemType:w,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,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:m,optimum:b,pattern:null,ping:w,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:w,required:m,reversed:m,rows:b,rowSpan:b,sandbox:w,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:v,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:v,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:w,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:v,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:D}),L=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:k,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:w,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:S,g2:S,glyphName:S,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:w,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,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:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:R}),T=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(n,t)=>"xlink:"+t.slice(5).toLowerCase()}),j=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:D}),_=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(n,t)=>"xml:"+t.slice(3).toLowerCase()}),U=/[A-Z]/g,z=/-[a-z]/g,I=/^data[-\w.:]+$/i;function B(n){return"-"+n.toLowerCase()}function H(n){return n.charAt(1).toUpperCase()}const N=d([E,$,T,j,_],"html"),F=d([E,L,T,j,_],"svg"),V="_props",q=new Map;function W(n,t){const e=`${n}:${t}`;let l=q.get(e);return void 0===l&&(l=function(n,t){const e=f(t);let l=t,o=p;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&"data"===e.slice(0,4)&&I.test(t)){if("-"===t.charAt(4)){const n=t.slice(5).replace(z,H);l="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!z.test(n)){let e=n.replace(U,B);"-"!==e.charAt(0)&&(e="-"+e),t="data"+e}}o=M}return new o(l,t)}(t?F:N,n)||null,q.set(e,l)),l}function K(n,t,e){!function(n){if(null==n||!1===n||""===n)return!1;if(!0===n)return!0;if("string"==typeof n){return"false"!==n.toLowerCase()&&"0"!==n}return Boolean(n)}(e)?n.removeAttribute(t):n.setAttribute(t,t)}function X(n,t,e){try{n[t]=e}catch(l){Y(n,t,e,!1)}}function Y(n,t,e,l){if(null==e)return void n.removeAttribute(t);const o=String(e);if(l&&t.includes(":")){const[e]=t.split(":");"xlink"===e?n.setAttributeNS("http://www.w3.org/1999/xlink",t,o):n.setAttribute(t,o)}else n.setAttribute(t,o)}function Z(n,t,e,l){if(function(n,t){if(document.activeElement===n)return["value","selectionStart","selectionEnd","selectionDirection"].includes(t);if("scrollTop"===t||"scrollLeft"===t)return!0;if(n instanceof HTMLMediaElement&&["currentTime","paused","playbackRate","volume"].includes(t))return!0;return!1}(n,t))return;if("style"===t){if(n.style.cssText&&(n.style.cssText=""),"string"==typeof e)n.style.cssText=e;else if(e&&"object"==typeof e)for(const t in e)n.style[t]!==e[t]&&(n.style[t]=e[t]);return}if("key"===t)return void(null!=e&&(n.key=e));if(t.startsWith("data-"))return void function(n,t,e){const l=(o=t.slice(5)).length<=1?o.toLowerCase():o.split("-").map(((n,t)=>0===t?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase())).join("");var o;null==e?delete n.dataset[l]:n.dataset[l]=String(e)}(n,t,e);if(t.startsWith("on"))return void function(n,t,e){t.startsWith("on")&&(e&&"function"!=typeof e?"string"==typeof e&&(e?n.setAttribute(t,e):n.removeAttribute(t)):n[t]=e)}(n,t,e);if(!("INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&"SELECT"!==n.tagName||"value"!==t&&"selected"!==t&&"selectedIndex"!==t))return void X(n,t,e);if("INPUT"===n.tagName&&"checked"===t)return X(n,t,e),void K(n,t,e);const o=W(t,l);o?o.boolean||o.overloadedBoolean?K(n,o.attribute,e):o.mustUseProperty&&!l?X(n,o.property,e):Y(n,o.attribute,e,l):t.startsWith("aria-")||"role"===t?Y(n,t,e,l):t in n||void 0!==n[t]?X(n,t,e):Y(n,t,e,l)}function J(n){return/^[a-zA-Z_:][\w\-:.]*$/.test(n)&&!n.includes("<")&&!n.includes(">")&&!n.includes('"')&&!n.includes("'")}function G(n,t,e){const l=function(n,t){if(t&&(t.class=t.class||t.className,delete t.className),!n||0===Object.keys(n).length)return t||{};if(!t||0===Object.keys(t).length){const t={};return Object.keys(n).forEach((n=>t[n]=null)),t}const e={};return Object.keys(n).forEach((n=>{n in t||(e[n]=null)})),Object.keys(t).forEach((n=>e[n]=t[n])),e}(n[V]||{},t);n[V]=t||{},function(n,t,e,l){for(const e in t)J(e)&&Z(n,e,t[e],l);t&&"function"==typeof t.ref&&window.requestAnimationFrame((()=>t.ref(n)))}(n,l,0,e)}function Q(n,...t){return nn(t)}function nn(n){const t=[],e=n=>{null!=n&&""!==n&&!1!==n&&t.push("function"==typeof n||"object"==typeof n?n:`${n}`)};return n&&n.forEach((n=>{Array.isArray(n)?n.forEach((n=>e(n))):e(n)})),t}const tn={};let en=0;function ln(n,t,...e){const l=nn(e);if("string"==typeof n)return{tag:n,props:t,children:l};if(Array.isArray(n))return n;if(void 0===n&&e)return l;if(Object.getPrototypeOf(n).i)return{tag:n,props:t,children:l};if("function"==typeof n)return n(t,l);throw new Error(`Unknown tag in vdom ${n}`)}const on=(n,t,e={})=>{if(null==t||!1===t)return;!function(n,t,e={}){if(null==t||!1===t)return;if(t=hn(t,e),!n)return;const l="SVG"===n.nodeName;Array.isArray(t)?rn(n,t,l):rn(n,[t],l)}("string"==typeof n&&n?document.getElementById(n)||document.querySelector(n):n,t=c(t,e),e)};function sn(n,t,e){e=e||"svg"===t.tag,function(n,t){const e=n.nodeName,l=`${t.tag||""}`;return e.toUpperCase()===l.toUpperCase()}(n,t)?(rn(n,t.children,e),G(n,t.props,e)):n.parentNode.replaceChild(cn(t,e),n)}function rn(n,t,e){var l,o;const i=(null===(l=n.childNodes)||void 0===l?void 0:l.length)||0,s=(null==t?void 0:t.length)||0,r=Math.min(i,s);for(let l=0;l<r;l++){const o=t[l],i=n.childNodes[l];if("string"==typeof o)i.textContent!==o&&(3===i.nodeType?i.nodeValue=o:n.replaceChild(an(o),i));else if(o instanceof HTMLElement||o instanceof SVGElement)n.insertBefore(o,i);else{const t=o.props&&o.props.key;if(t)if(i.key===t)sn(n.childNodes[l],o,e);else{const s=tn[t];s?(n.insertBefore(s,i),sn(n.childNodes[l],o,e)):n.replaceChild(cn(o,e),i)}else sn(n.childNodes[l],o,e)}}let u=(null===(o=n.childNodes)||void 0===o?void 0:o.length)||0;for(;u>r;)n.removeChild(n.lastChild),u--;if(s>r){const l=document.createDocumentFragment();for(let n=r;n<t.length;n++)l.appendChild(cn(t[n],e));n.appendChild(l)}}const un=n=>{const t=document.createElement("section");return t.insertAdjacentHTML("afterbegin",n),Array.from(t.children)};function an(n){if(0===(null==n?void 0:n.indexOf("_html:"))){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",n.substring(6)),t}return document.createTextNode(null!=n?n:"")}function cn(n,t){if(n instanceof HTMLElement||n instanceof SVGElement)return n;if("string"==typeof n)return an(n);if(!n.tag||"function"==typeof n.tag)return an(JSON.stringify(n));const e=(t=t||"svg"===n.tag)?document.createElementNS("http://www.w3.org/2000/svg",n.tag):document.createElement(n.tag);return G(e,n.props,t),n.children&&n.children.forEach((n=>e.appendChild(cn(n,t)))),n.props&&void 0!==n.props.key&&(e.key=n.props.key,tn[n.props.key]=e,++en>=500&&(!function(){if(!(Object.keys(tn).length<=1e3))for(const[n,t]of Object.entries(tn))t.isConnected||delete tn[n]}(),en=0)),e}function hn(n,t,e=0){var l;if("string"==typeof n)return n;if(Array.isArray(n))return n.map((n=>hn(n,t,e++)));let o=n;if(n&&"function"==typeof n.tag&&Object.getPrototypeOf(n.tag).i&&(o=function(n,t,e){const{tag:l,props:o,children:i}=n;let s=`_${e}`,r=o&&o.id;r?s=r:r=`_${e}${Date.now()}`;let u="section";o&&o.as&&(u=o.as,delete o.as),t.m||(t.m={});let a=t.m[s];if(a&&a instanceof l&&a.element)a.renderState(a.state);else{const n=document.createElement(u);a=t.m[s]=new l(Object.assign(Object.assign({},o),{children:i})).mount(n,{render:!0})}if(a.mounted){const n=a.mounted(o,i,a.state);void 0!==n&&a.setState(n)}return G(a.element,o,!1),a.element}(n,t,e)),o&&Array.isArray(o.children)){const n=null===(l=o.props)||void 0===l?void 0:l._component;if(n){let t=0;o.children=o.children.map((e=>hn(e,n,t++)))}else o.children=o.children.map((n=>hn(n,t,e++)))}return o}const dn=(n,t={})=>class extends HTMLElement{constructor(){super()}get component(){return this._component}get state(){return this._component.state}static get observedAttributes(){return(t.observedAttributes||[]).map((n=>n.toLowerCase()))}connectedCallback(){if(this.isConnected&&!this._component){const e=t||{};this._shadowRoot=e.shadow?this.attachShadow({mode:"open"}):this;const l=e.observedAttributes||[],o=l.reduce(((n,t)=>{const e=t.toLowerCase();return e!==t&&(n[e]=t),n}),{});this._attrMap=n=>o[n]||n;const i={};Array.from(this.attributes).forEach((n=>i[this._attrMap(n.name)]=n.value)),l.forEach((n=>{void 0!==this[n]&&(i[n]=this[n]),Object.defineProperty(this,n,{get:()=>i[n],set(t){this.attributeChangedCallback(n,i[n],t)},configurable:!0,enumerable:!0})})),requestAnimationFrame((()=>{const t=this.children?Array.from(this.children):[];if(this._component=new n(Object.assign(Object.assign({},i),{children:t})).mount(this._shadowRoot,e),this._component._props=i,this._component.dispatchEvent=this.dispatchEvent.bind(this),this._component.mounted){const n=this._component.mounted(i,t,this._component.state);void 0!==n&&(this._component.state=n)}this.on=this._component.on.bind(this._component),this.run=this._component.run.bind(this._component),!1!==e.render&&this._component.run(".")}))}}disconnectedCallback(){var n,t,e,l;null===(t=null===(n=this._component)||void 0===n?void 0:n.unload)||void 0===t||t.call(n),null===(l=null===(e=this._component)||void 0===e?void 0:e.unmount)||void 0===l||l.call(e),this._component=null}attributeChangedCallback(n,e,l){if(this._component){const o=this._attrMap(n);this._component._props[o]=l,this._component.run("attributeChanged",o,e,l),l!==e&&!1!==t.render&&window.requestAnimationFrame((()=>{this._component.run(".")}))}}};var fn=(n,t,e)=>{"undefined"!=typeof customElements&&customElements.define(n,dn(t,e))};const pn={meta:new WeakMap,defineMetadata(n,t,e){this.meta.has(e)||this.meta.set(e,{}),this.meta.get(e)[n]=t},getMetadataKeys(n){return n=Object.getPrototypeOf(n),this.meta.get(n)?Object.keys(this.meta.get(n)):[]},getMetadata(n,t){return t=Object.getPrototypeOf(t),this.meta.get(t)?this.meta.get(t)[n]:null}};function gn(n,t={}){return(e,l,o)=>{const i=n?n.toString():l;return pn.defineMetadata(`apprun-update:${i}`,{name:i,key:l,options:t},e),o}}function mn(n,t={}){return function(e,l){const o=n?n.toString():l;pn.defineMetadata(`apprun-update:${o}`,{name:o,key:l,options:t},e)}}function vn(n,t){return function(e){return fn(n,e,t),e}}const yn=new Map;s.find("get-components")||s.on("get-components",(n=>n.components=yn));const bn=n=>n;class wn{renderState(n,t=null){if(!this.view)return;let e=t||this.view(n);if(s.debug&&s.run("debug",{component:this,_:e?".":"-",state:n,vdom:e,el:this.element}),"object"!=typeof document)return;const l="string"==typeof this.element&&this.element?function(n){try{return document.getElementById(n)}catch(t){return console.warn(`Error getting element by id: ${n}`,t),null}}(this.element)||function(n,t=document){try{return t.querySelector(n)}catch(t){return console.warn(`Invalid selector: ${n}`,t),null}}(this.element):this.element;if(!l)return void console.warn(`Component element not found: ${this.element}`);const o="_c";this.unload?l._component===this&&l.getAttribute(o)===this.tracking_id||(this.tracking_id=(new Date).valueOf().toString(),l.setAttribute(o,this.tracking_id),"undefined"!=typeof MutationObserver&&(this.observer||(this.observer=new MutationObserver((n=>{n[0].oldValue!==this.tracking_id&&document.body.contains(l)||(this.unload(this.state),this.observer.disconnect(),this.observer=null)}))),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:[o]}))):l.removeAttribute&&l.removeAttribute(o),l._component=this,!t&&e&&(e=c(e,this),this.options.transition&&document&&document.startViewTransition?document.startViewTransition((()=>s.render(l,e,this))):s.render(l,e,this)),this.rendered&&this.rendered(this.state)}setState(n,t={render:!0,history:!1}){const e=async n=>{try{for(;;){const{value:e,done:l}=await n.next();if(l)break;this.setState(e,t)}}catch(n){console.error("Error in async iterator:",n)}},l=n;if(null==l?void 0:l[Symbol.asyncIterator])this.setState(e(l[Symbol.asyncIterator]()),t);else if((null==l?void 0:l[Symbol.iterator])&&"function"==typeof l.next)for(const n of l)this.setState(n,t);else if(n&&n instanceof Promise)Promise.resolve(n).then((e=>{this.setState(e,t),this._state=n}));else{if(this._state=n,null==n)return;this.state=n,!1!==t.render&&(t.transition&&document&&document.startViewTransition?document.startViewTransition((()=>this.renderState(n))):this.renderState(n)),!1!==t.history&&this.enable_history&&(this._history=[...this._history,n],this._history_idx=this._history.length-1),"function"==typeof t.callback&&t.callback(this.state)}}constructor(n,t,l,o){this.state=n,this.view=t,this.update=l,this.options=o,this._app=new e,this._actions=[],this._global_events=[],this._history=[],this._history_idx=-1,this._history_prev=()=>{this._history_idx--,this._history_idx>=0?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=0},this._history_next=()=>{this._history_idx++,this._history_idx<this._history.length?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=this._history.length-1},this.start=(n=null,t)=>{if(this.mount(n,Object.assign({render:!0},t)),this.mounted&&"function"==typeof this.mounted){const n=this.mounted({},[],this.state);void 0!==n&&this.setState(n)}return this}}mount(n=null,t){var e,l;return console.assert(!this.element,"Component already mounted."),this.options=t=Object.assign(Object.assign({},this.options),t),this.element=n,this.global_event=t.global_event,this.enable_history=!!t.history,this.enable_history&&(this.on(t.history.prev||"history-prev",this._history_prev),this.on(t.history.next||"history-next",this._history_next)),t.route&&(this.update=this.update||{},this.update[t.route]||(this.update[t.route]=bn)),this.add_actions(),this.state=null!==(l=null!==(e=this.state)&&void 0!==e?e:this.model)&&void 0!==l?l:{},"function"==typeof this.state&&(this.state=this.state()),this.setState(this.state,{render:!!t.render,history:!0}),s.debug&&(yn.get(n)?yn.get(n).push(this):yn.set(n,[this])),this}is_global_event(n){return n&&(this.global_event||this._global_events.indexOf(n)>=0||n.startsWith("#")||n.startsWith("/")||n.startsWith("@"))}add_action(n,t,e={}){t&&"function"==typeof t?(e.global&&this._global_events.push(n),this.on(n,((...l)=>{s.debug&&s.run("debug",{component:this,_:">",event:n,p:l,current_state:this.state,options:e});try{const o=t(this.state,...l);s.debug&&s.run("debug",{component:this,_:"<",event:n,p:l,newState:o,state:this.state,options:e}),this.setState(o,e)}catch(t){console.error(`Error in component action '${n}':`,t),s.debug&&s.run("debug",{component:this,_:"!",event:n,p:l,error:t,state:this.state,options:e})}}),e)):console.warn(`Component action for '${n}' is not a valid function:`,t)}add_actions(){const n=this.update||{};pn.getMetadataKeys(this).forEach((t=>{if(t.startsWith("apprun-update:")){const e=pn.getMetadata(t,this);n[e.name]=[this[e.key].bind(this),e.options]}}));const t={};Array.isArray(n)?n.forEach((n=>{const[e,l,o]=n;e.toString().split(",").forEach((n=>t[n.trim()]=[l,o]))})):Object.keys(n).forEach((e=>{const l=n[e];("function"==typeof l||Array.isArray(l))&&e.split(",").forEach((n=>t[n.trim()]=l))})),t["."]||(t["."]=bn),Object.keys(t).forEach((n=>{const e=t[n];"function"==typeof e?this.add_action(n,e):Array.isArray(e)&&this.add_action(n,e[0],e[1])}))}run(n,...t){if(this.state instanceof Promise)return Promise.resolve(this.state).then((e=>{this.state=e,this.run(n,...t)}));{const e=n.toString();return this.is_global_event(e)?s.run(e,...t):this._app.run(e,...t)}}on(n,t,e){const l=n.toString();return this._actions.push({name:l,fn:t}),this.is_global_event(l)?s.on(l,t,e):this._app.on(l,t,e)}runAsync(n,...t){const e=n.toString();return this.is_global_event(e)?s.runAsync(e,...t):this._app.runAsync(e,...t)}query(n,...t){return console.warn("component.query() is deprecated. Use component.runAsync() instead."),this.runAsync(n,...t)}unmount(){var n;null===(n=this.observer)||void 0===n||n.disconnect(),this._actions.forEach((n=>{const{name:t,fn:e}=n;this.is_global_event(t)?s.off(t,e):this._app.off(t,e)}))}}function Sn(){const n=s.find("#");if(n&&n.length>0)return s.run("#"),void s.run(Cn,"#");const t=s.find("/");if(t&&t.length>0)return s.run("/"),void s.run(Cn,"/");const e=s.find("#/");if(e&&e.length>0)return s.run("#/"),void s.run(Cn,"#/");console.warn("No subscribers for event: "),s.run(xn,""),s.run(Cn,"")}function kn(n){if(!n)return void Sn();n=function(n){return n&&"/"!==n&&"#"!==n&&"#/"!==n&&n.endsWith("/")?n.slice(0,-1):n}(n);const t=s.basePath;t&&(n=function(n,t){if(!t||"/"===t||""===t)return n;const e=t.startsWith("/")?t:"/"+t;if(n.startsWith(e)){const t=n.substring(e.length);return t.startsWith("/")?t:"/"+t}return n}(n,t));const e=function(n){return n?n.startsWith("#/")?n.substring(2).split("/"):n.startsWith("#")||n.startsWith("/")?n.substring(1).split("/"):n.split("/"):[]}(n);let l;!function(n){const t=n.filter(Boolean);t.length>11&&console.warn(`Deep route hierarchy detected: ${t.join("/")} (${t.length} levels)`)}(e),l=n.startsWith("#/")?"hash-slash":n.startsWith("#")?"hash":n.startsWith("/")?"path":"non-prefixed";const o=function(n,t){const e=[];for(let l=n.length;l>0;l--){const o=n.slice(0,l);let i="";switch(t){case"path":i="/"+o.join("/");break;case"hash":i="#"+o.join("/");break;case"hash-slash":i="#/"+o.join("/");break;case"non-prefixed":i=o.join("/")}e.push(i)}return e}(e,l),i=function(n,t){for(let e=0;e<n.length;e++){const l=n[e],o=s.find(l);if(o&&o.length>0){const o=n.length-e;return{eventName:l,parameters:t.slice(o)}}}return null}(o,e);if(i)On(i.eventName,...i.parameters);else if(o.length>0){const t=o[o.length-1];console.warn(`No subscribers for event: ${t}`),s.run(xn,n),s.run(Cn,n)}else Sn()}wn.i=!0;const On=(n,...t)=>{if(!n||n===Cn||n===xn)return;const e=s.find(n);e&&0!==e.length?s.run(n,...t):(console.warn(`No subscribers for event: ${n}`),s.run(xn,n,...t)),s.run(Cn,n,...t)},Cn="//",xn="///",Mn=n=>{s.lastUrl!==n&&(s.lastUrl=n,kn(n))};if(!s.start){s.version=n,s.h=s.createElement=ln,s.render=on,s.Fragment=Q,s.webComponent=fn,s.safeHTML=un,s.start=(n,t,e,l,o)=>{const i=Object.assign({render:!0,global_event:!0},o),s=new wn(t,e,l);return o&&o.rendered&&(s.rendered=o.rendered),o&&o.mounted&&(s.mounted=o.mounted),s.start(n,i),s},s.once=s.once||((n,t,e={})=>{s.on(n,t,Object.assign(Object.assign({},e),{once:!0}))}),s.query=s.query||s.runAsync;const t=n=>{};if(s.on("/",t),s.on("debug",(n=>t)),s.on(Cn,t),s.on(xn,t),s.route=Mn,s.on("route",(n=>s.route&&s.route(n))),"object"==typeof document&&document.addEventListener("DOMContentLoaded",(()=>{const n=document.body.hasAttribute("apprun-no-init")||s["no-init-route"]||!1,t=s.find("#")||s.find("#/")||!1;window.addEventListener("hashchange",(()=>Mn(location.hash))),window.addEventListener("popstate",(()=>Mn(location.pathname))),t?!n&&Mn(location.hash):(!n&&(()=>{const n=s.basePath||"";let t=location.pathname;n&&t.startsWith(n)&&(t=t.substring(n.length),t.startsWith("/")||(t="/"+t)),Mn(t)})(),document.body.addEventListener("click",(n=>{const t=n.target;if(!t)return;const e="A"===t.tagName?t:t.closest("a");if(e&&e.origin===location.origin&&e.pathname){n.preventDefault();const t=(s.basePath||"")+e.pathname;history.pushState(null,"",t),Mn(e.pathname)}})))})),"object"==typeof window){const n=window;n.Component=wn,n._React=n.React,n.React=s,n.on=mn,n.customElement=vn,n.safeHTML=un}s.use_render=(n,t=0)=>{s.render=0===t?(t,e)=>n(e,t):(t,e)=>n(t,e)},s.use_react=(n,t)=>{if(n&&t)if("function"==typeof n.createElement)if(n.Fragment)if(s.h=s.createElement=n.createElement,s.Fragment=n.Fragment,n.version&&n.version.startsWith("18")){if(!t.createRoot||"function"!=typeof t.createRoot)return void console.error("AppRun use_react: ReactDOM.createRoot not found in React 18+");s.render=(n,e)=>{n&&void 0!==e&&(n._root||(n._root=t.createRoot(n)),n._root.render(e))}}else{if(!t.render||"function"!=typeof t.render)return void console.error("AppRun use_react: ReactDOM.render not found in legacy React");s.render=(n,e)=>t.render(e,n)}else console.error("AppRun use_react: Invalid React object - Fragment not found");else console.error("AppRun use_react: Invalid React object - createElement method not found");else console.error("AppRun use_react: React and ReactDOM parameters are required")}}
1
+ const n="3.37.0",t=`AppRun-${n}`;class e{constructor(){this._events={}}on(n,t,e={}){this._events[n]=this._events[n]||[],this._events[n].push({fn:t,options:e})}off(n,t){const e=this._events[n]||[];this._events[n]=e.filter((n=>n.fn!==t))}find(n){return this._events[n]}run(n,...t){const e=this.getSubscribers(n,this._events);return console.assert(e&&e.length>0,"No subscriber for event: "+n),e.forEach((e=>{const{fn:o,options:l}=e;if(!o||"function"!=typeof o)return console.error(`AppRun event handler for '${n}' is not a function:`,o),!1;if(l.delay)this.delay(n,o,t,l);else try{Object.keys(l).length>0?o.apply(this,[...t,l]):o.apply(this,t)}catch(t){console.error(`Error in event handler for '${n}':`,t)}return!e.options.once})),e.length}once(n,t,e={}){this.on(n,t,{...e,once:!0})}delay(n,t,e,o){o._t&&clearTimeout(o._t),o._t=setTimeout((()=>{clearTimeout(o._t);try{Object.keys(o).length>0?t.apply(this,[...e,o]):t.apply(this,e)}catch(t){console.error(`Error in delayed event handler for '${n}':`,t)}}),o.delay)}runAsync(n,...t){const e=this.getSubscribers(n,this._events);console.assert(e&&e.length>0,"No subscriber for event: "+n);const o=e.map((e=>{const{fn:o,options:l}=e;if(!o||"function"!=typeof o)return console.error(`AppRun async event handler for '${n}' is not a function:`,o),Promise.resolve(null);try{return Object.keys(l).length>0?o.apply(this,[...t,l]):o.apply(this,t)}catch(t){return console.error(`Error in async event handler for '${n}':`,t),Promise.reject(t)}}));return Promise.all(o)}query(n,...t){return console.warn("app.query() is deprecated. Use app.runAsync() instead."),this.runAsync(n,...t)}getSubscribers(n,t){const e=t[n]||[];return t[n]=e.filter((n=>!n.options.once)),Object.keys(t).filter((t=>t.endsWith("*")&&n.startsWith(t.replace("*","")))).sort(((n,t)=>t.length-n.length)).forEach((o=>e.push(...t[o].map((t=>({...t,options:{...t.options,event:n}})))))),e}}const o=t;let l;const i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};i.app&&i._AppRunVersions?l=i.app:(l=new e,i.app=l,i._AppRunVersions=o);var s=l;function r(n){return n?.target instanceof HTMLElement?n.target:null}const u=(n,t)=>(t?n.state[t]:n.state)||"",a=(n,t,e)=>{if(t){const o=n.state||{};o[t]=e,n.setState(o)}else n.setState(e)},c=(n,t)=>{if(Array.isArray(n))return n.map((n=>c(n,t)));{let{type:e,tag:o,props:l,children:i}=n;return o=o||e,i=i||l?.children,l&&Object.keys(l).forEach((n=>{n.startsWith("$")&&(((n,t,e,o)=>{if(n.startsWith("$on")){const e=t[n];if(n=n.substring(1),"boolean"==typeof e)t[n]=t=>o.run?o.run(n,t):s.run(n,t);else if("string"==typeof e)t[n]=n=>o.run?o.run(e,n):s.run(e,n);else if("function"==typeof e)t[n]=n=>o.setState(e(o.state,n));else if(Array.isArray(e)){const[l,...i]=e;"string"==typeof l?t[n]=n=>o.run?o.run(l,...i,n):s.run(l,...i,n):"function"==typeof l&&(t[n]=n=>o.setState(l(o.state,...i,n)))}}else if("$bind"===n){const l=t.type||"text",i="string"==typeof t[n]?t[n]:t.name;if("input"===e)switch(l){case"checkbox":t.checked=u(o,i),t.onclick=n=>{const t=r(n);t&&a(o,i||t.name,t.checked)};break;case"radio":t.checked=u(o,i)===t.value,t.onclick=n=>{const t=r(n);t&&a(o,i||t.name,t.value)};break;case"number":case"range":t.value=u(o,i),t.oninput=n=>{const t=r(n);t&&a(o,i||t.name,Number(t.value))};break;default:t.value=u(o,i),t.oninput=n=>{const t=r(n);t&&a(o,i||t.name,t.value)}}else"select"===e?(t.value=u(o,i),t.onchange=n=>{const t=r(n);t&&!t.multiple&&a(o,i||t.name,t.value)}):"option"===e?(t.selected=u(o,i),t.onclick=n=>{const t=r(n);t&&a(o,i||t.name,t.selected)}):"textarea"===e&&(t.innerHTML=u(o,i),t.oninput=n=>{const t=r(n);t&&a(o,i||t.name,t.value)})}else s.run("$",{key:n,tag:e,props:t,component:o})})(n,l,o,t),delete l[n])})),i&&c(i,t),n}};class h{constructor(n,t,e){this.normal=t,this.property=n,e&&(this.space=e)}}function d(n,t){const e={},o={};for(const t of n)Object.assign(e,t.property),Object.assign(o,t.normal);return new h(e,o,t)}function f(n){return n.toLowerCase()}h.prototype.normal={},h.prototype.property={},h.prototype.space=void 0;class p{constructor(n,t){this.attribute=t,this.property=n}}p.prototype.attribute="",p.prototype.booleanish=!1,p.prototype.boolean=!1,p.prototype.commaOrSpaceSeparated=!1,p.prototype.commaSeparated=!1,p.prototype.defined=!1,p.prototype.mustUseProperty=!1,p.prototype.number=!1,p.prototype.overloadedBoolean=!1,p.prototype.property="",p.prototype.spaceSeparated=!1,p.prototype.space=void 0;let g=0;const m=C(),y=C(),v=C(),b=C(),w=C(),S=C(),k=C();function C(){return 2**++g}var x=Object.freeze({__proto__:null,boolean:m,booleanish:y,commaOrSpaceSeparated:k,commaSeparated:S,number:b,overloadedBoolean:v,spaceSeparated:w});const O=Object.keys(x);class M extends p{constructor(n,t,e,o){let l=-1;if(super(n,t),P(this,"space",o),"number"==typeof e)for(;++l<O.length;){const n=O[l];P(this,O[l],(e&x[n])===x[n])}}}function P(n,t,e){e&&(n[t]=e)}function A(n){const t={},e={};for(const[o,l]of Object.entries(n.properties)){const i=new M(o,n.transform(n.attributes||{},o),l,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),t[o]=i,e[f(o)]=o,e[f(i.attribute)]=o}return new h(t,e,n.space)}M.prototype.defined=!0;const E=A({properties:{ariaActiveDescendant:null,ariaAtomic:y,ariaAutoComplete:null,ariaBusy:y,ariaChecked:y,ariaColCount:b,ariaColIndex:b,ariaColSpan:b,ariaControls:w,ariaCurrent:null,ariaDescribedBy:w,ariaDetails:null,ariaDisabled:y,ariaDropEffect:w,ariaErrorMessage:null,ariaExpanded:y,ariaFlowTo:w,ariaGrabbed:y,ariaHasPopup:null,ariaHidden:y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:w,ariaLevel:b,ariaLive:null,ariaModal:y,ariaMultiLine:y,ariaMultiSelectable:y,ariaOrientation:null,ariaOwns:w,ariaPlaceholder:null,ariaPosInSet:b,ariaPressed:y,ariaReadOnly:y,ariaRelevant:null,ariaRequired:y,ariaRoleDescription:w,ariaRowCount:b,ariaRowIndex:b,ariaRowSpan:b,ariaSelected:y,ariaSetSize:b,ariaSort:null,ariaValueMax:b,ariaValueMin:b,ariaValueNow:b,ariaValueText:null,role:null},transform:(n,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function R(n,t){return t in n?n[t]:t}function $(n,t){return R(n,t.toLowerCase())}const D=A({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:S,acceptCharset:w,accessKey:w,action:null,allow:null,allowFullScreen:m,allowPaymentRequest:m,allowUserMedia:m,alt:null,as:null,async:m,autoCapitalize:null,autoComplete:w,autoFocus:m,autoPlay:m,blocking:w,capture:null,charSet:null,checked:m,cite:null,className:w,cols:b,colSpan:null,content:null,contentEditable:y,controls:m,controlsList:w,coords:b|S,crossOrigin:null,data:null,dateTime:null,decoding:null,default:m,defer:m,dir:null,dirName:null,disabled:m,download:v,draggable:y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:m,formTarget:null,headers:w,height:b,hidden:v,high:b,href:null,hrefLang:null,htmlFor:w,httpEquiv:w,id:null,imageSizes:null,imageSrcSet:null,inert:m,inputMode:null,integrity:null,is:null,isMap:m,itemId:null,itemProp:w,itemRef:w,itemScope:m,itemType:w,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:m,low:b,manifest:null,max:null,maxLength:b,media:null,method:null,min:null,minLength:b,multiple:m,muted:m,name:null,nonce:null,noModule:m,noValidate:m,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:m,optimum:b,pattern:null,ping:w,placeholder:null,playsInline:m,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:m,referrerPolicy:null,rel:w,required:m,reversed:m,rows:b,rowSpan:b,sandbox:w,scope:null,scoped:m,seamless:m,selected:m,shadowRootClonable:m,shadowRootDelegatesFocus:m,shadowRootMode:null,shape:null,size:b,sizes:null,slot:null,span:b,spellCheck:y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:b,step:null,style:null,tabIndex:b,target:null,title:null,translate:null,type:null,typeMustMatch:m,useMap:null,value:y,width:b,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:w,axis:null,background:null,bgColor:null,border:b,borderColor:null,bottomMargin:b,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:m,declare:m,event:null,face:null,frame:null,frameBorder:null,hSpace:b,leftMargin:b,link:null,longDesc:null,lowSrc:null,marginHeight:b,marginWidth:b,noResize:m,noHref:m,noShade:m,noWrap:m,object:null,profile:null,prompt:null,rev:null,rightMargin:b,rules:null,scheme:null,scrolling:y,standby:null,summary:null,text:null,topMargin:b,valueType:null,version:null,vAlign:null,vLink:null,vSpace:b,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:m,disableRemotePlayback:m,prefix:null,property:null,results:b,security:null,unselectable:null},space:"html",transform:$}),L=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:k,accentHeight:b,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:b,amplitude:b,arabicForm:null,ascent:b,attributeName:null,attributeType:null,azimuth:b,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:b,by:null,calcMode:null,capHeight:b,className:w,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:b,diffuseConstant:b,direction:null,display:null,dur:null,divisor:b,dominantBaseline:null,download:m,dx:null,dy:null,edgeMode:null,editable:null,elevation:b,enableBackground:null,end:null,event:null,exponent:b,externalResourcesRequired:null,fill:null,fillOpacity:b,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:S,g2:S,glyphName:S,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:b,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:b,horizOriginX:b,horizOriginY:b,id:null,ideographic:b,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:b,k:b,k1:b,k2:b,k3:b,k4:b,kernelMatrix:k,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:b,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:b,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:b,overlineThickness:b,paintOrder:null,panose1:null,path:null,pathLength:b,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:w,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:b,pointsAtY:b,pointsAtZ:b,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:b,specularExponent:b,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:b,strikethroughThickness:b,string:null,stroke:null,strokeDashArray:k,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:b,strokeOpacity:b,strokeWidth:null,style:null,surfaceScale:b,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:k,tabIndex:b,tableValues:null,target:null,targetX:b,targetY:b,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:b,underlineThickness:b,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:b,values:null,vAlphabetic:b,vMathematical:b,vectorEffect:null,vHanging:b,vIdeographic:b,version:null,vertAdvY:b,vertOriginX:b,vertOriginY:b,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:b,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:R}),T=A({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(n,t)=>"xlink:"+t.slice(5).toLowerCase()}),_=A({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$}),j=A({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(n,t)=>"xml:"+t.slice(3).toLowerCase()}),U=/[A-Z]/g,z=/-[a-z]/g,I=/^data[-\w.:]+$/i;function B(n){return"-"+n.toLowerCase()}function H(n){return n.charAt(1).toUpperCase()}const N=d([E,D,T,_,j],"html"),F=d([E,L,T,_,j],"svg"),V="_props",q=new Map;function W(n,t){const e=`${n}:${t}`;let o=q.get(e);return void 0===o&&(o=function(n,t){const e=f(t);let o=t,l=p;if(e in n.normal)return n.property[n.normal[e]];if(e.length>4&&"data"===e.slice(0,4)&&I.test(t)){if("-"===t.charAt(4)){const n=t.slice(5).replace(z,H);o="data"+n.charAt(0).toUpperCase()+n.slice(1)}else{const n=t.slice(4);if(!z.test(n)){let e=n.replace(U,B);"-"!==e.charAt(0)&&(e="-"+e),t="data"+e}}l=M}return new l(o,t)}(t?F:N,n)||null,q.set(e,o)),o}function K(n,t,e){!function(n){if(null==n||!1===n||""===n)return!1;if(!0===n)return!0;if("string"==typeof n){return"false"!==n.toLowerCase()&&"0"!==n}return Boolean(n)}(e)?n.removeAttribute(t):n.setAttribute(t,t)}function X(n,t,e){try{n[t]=e}catch(o){Y(n,t,e,!1)}}function Y(n,t,e,o){if(null==e)return void n.removeAttribute(t);const l=String(e);if(o&&t.includes(":")){const[e]=t.split(":");"xlink"===e?n.setAttributeNS("http://www.w3.org/1999/xlink",t,l):n.setAttribute(t,l)}else n.setAttribute(t,l)}function Z(n,t,e,o){if(function(n,t){if(document.activeElement===n)return["value","selectionStart","selectionEnd","selectionDirection"].includes(t);if("scrollTop"===t||"scrollLeft"===t)return!0;if(n instanceof HTMLMediaElement&&["currentTime","paused","playbackRate","volume"].includes(t))return!0;return!1}(n,t))return;if("style"===t){if(n.style.cssText&&(n.style.cssText=""),"string"==typeof e)n.style.cssText=e;else if(e&&"object"==typeof e)for(const t in e)n.style[t]!==e[t]&&(n.style[t]=e[t]);return}if("key"===t)return void(null!=e&&(n.key=e));if(t.startsWith("data-"))return void function(n,t,e){const o=(l=t.slice(5)).length<=1?l.toLowerCase():l.split("-").map(((n,t)=>0===t?n.toLowerCase():n.charAt(0).toUpperCase()+n.slice(1).toLowerCase())).join("");var l;null==e?delete n.dataset[o]:n.dataset[o]=String(e)}(n,t,e);if(t.startsWith("on"))return void function(n,t,e){t.startsWith("on")&&(e&&"function"!=typeof e?"string"==typeof e&&(e?n.setAttribute(t,e):n.removeAttribute(t)):n[t]=e)}(n,t,e);if(!("INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&"SELECT"!==n.tagName||"value"!==t&&"selected"!==t&&"selectedIndex"!==t))return void X(n,t,e);if("INPUT"===n.tagName&&"checked"===t)return X(n,t,e),void K(n,t,e);const l=W(t,o);l?l.boolean||l.overloadedBoolean?K(n,l.attribute,e):l.mustUseProperty&&!o?X(n,l.property,e):Y(n,l.attribute,e,o):t.startsWith("aria-")||"role"===t?Y(n,t,e,o):t in n||void 0!==n[t]?X(n,t,e):Y(n,t,e,o)}function J(n){return/^[a-zA-Z_:][\w\-:.]*$/.test(n)&&!n.includes("<")&&!n.includes(">")&&!n.includes('"')&&!n.includes("'")}function G(n,t,e){const o=function(n,t){if(t&&(t.class=t.class||t.className,delete t.className),!n||0===Object.keys(n).length)return t||{};if(!t||0===Object.keys(t).length){const t={};return Object.keys(n).forEach((n=>t[n]=null)),t}const e={};return Object.keys(n).forEach((n=>{n in t||(e[n]=null)})),Object.keys(t).forEach((n=>e[n]=t[n])),e}(n[V]||{},t);n[V]=t||{},function(n,t,e,o){for(const e in t)J(e)&&Z(n,e,t[e],o);t&&"function"==typeof t.ref&&window.requestAnimationFrame((()=>t.ref(n)))}(n,o,0,e)}function Q(n,...t){return nn(t)}function nn(n){const t=[],e=n=>{null!=n&&""!==n&&!1!==n&&t.push("function"==typeof n||"object"==typeof n?n:`${n}`)};return n&&n.forEach((n=>{Array.isArray(n)?n.forEach((n=>e(n))):e(n)})),t}const tn={};let en=0;function on(n,t,...e){const o=nn(e);if("string"==typeof n)return{tag:n,props:t,children:o};if(Array.isArray(n))return n;if(void 0===n&&e)return o;if(Object.getPrototypeOf(n).i)return{tag:n,props:t,children:o};if("function"==typeof n)return n(t,o);throw new Error(`Unknown tag in vdom ${n}`)}const ln=(n,t,e={})=>{if(null==t||!1===t)return;!function(n,t,e={}){if(null==t||!1===t)return;if(t=hn(t,e),!n)return;const o="SVG"===n.nodeName;Array.isArray(t)?rn(n,t,o):rn(n,[t],o)}("string"==typeof n&&n?document.getElementById(n)||document.querySelector(n):n,t=c(t,e),e)};function sn(n,t,e){e=e||"svg"===t.tag,function(n,t){const e=n.nodeName,o=`${t.tag||""}`;return e.toUpperCase()===o.toUpperCase()}(n,t)?(rn(n,t.children,e),G(n,t.props,e)):n.parentNode.replaceChild(cn(t,e),n)}function rn(n,t,e){const o=n.childNodes?.length||0,l=t?.length||0,i=Math.min(o,l);for(let o=0;o<i;o++){const l=t[o],i=n.childNodes[o];if("string"==typeof l)i.textContent!==l&&(3===i.nodeType?i.nodeValue=l:n.replaceChild(an(l),i));else if(l instanceof HTMLElement||l instanceof SVGElement)n.insertBefore(l,i);else{const t=l.props&&l.props.key;if(t)if(i.key===t)sn(n.childNodes[o],l,e);else{const s=tn[t];s?(n.insertBefore(s,i),sn(n.childNodes[o],l,e)):n.replaceChild(cn(l,e),i)}else sn(n.childNodes[o],l,e)}}let s=n.childNodes?.length||0;for(;s>i;)n.removeChild(n.lastChild),s--;if(l>i){const o=document.createDocumentFragment();for(let n=i;n<t.length;n++)o.appendChild(cn(t[n],e));n.appendChild(o)}}const un=n=>{const t=document.createElement("section");return t.insertAdjacentHTML("afterbegin",n),Array.from(t.children)};function an(n){if(0===n?.indexOf("_html:")){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",n.substring(6)),t}return document.createTextNode(n??"")}function cn(n,t){if(n instanceof HTMLElement||n instanceof SVGElement)return n;if("string"==typeof n)return an(n);if(!n.tag||"function"==typeof n.tag)return an(JSON.stringify(n));const e=(t=t||"svg"===n.tag)?document.createElementNS("http://www.w3.org/2000/svg",n.tag):document.createElement(n.tag);return G(e,n.props,t),n.children&&n.children.forEach((n=>e.appendChild(cn(n,t)))),n.props&&void 0!==n.props.key&&(e.key=n.props.key,tn[n.props.key]=e,++en>=500&&(!function(){if(!(Object.keys(tn).length<=1e3))for(const[n,t]of Object.entries(tn))t.isConnected||delete tn[n]}(),en=0)),e}function hn(n,t,e=0){if("string"==typeof n)return n;if(Array.isArray(n))return n.map((n=>hn(n,t,e++)));let o=n;if(n&&"function"==typeof n.tag&&Object.getPrototypeOf(n.tag).i&&(o=function(n,t,e){const{tag:o,props:l,children:i}=n;let s=`_${e}`,r=l&&l.id;r?s=r:r=`_${e}${Date.now()}`;let u="section";l&&l.as&&(u=l.as,delete l.as),t.m||(t.m={});let a=t.m[s];if(a&&a instanceof o&&a.element)a.renderState(a.state);else{const n=document.createElement(u);a=t.m[s]=new o({...l,children:i}).mount(n,{render:!0})}if(a.mounted){const n=a.mounted(l,i,a.state);void 0!==n&&a.setState(n)}return G(a.element,l,!1),a.element}(n,t,e)),o&&Array.isArray(o.children)){const n=o.props?._component;if(n){let t=0;o.children=o.children.map((e=>hn(e,n,t++)))}else o.children=o.children.map((n=>hn(n,t,e++)))}return o}const dn=(n,t={})=>class extends HTMLElement{constructor(){super()}get component(){return this._component}get state(){return this._component.state}static get observedAttributes(){return(t.observedAttributes||[]).map((n=>n.toLowerCase()))}connectedCallback(){if(this.isConnected&&!this._component){const e=t||{};this._shadowRoot=e.shadow?this.attachShadow({mode:"open"}):this;const o=e.observedAttributes||[],l=o.reduce(((n,t)=>{const e=t.toLowerCase();return e!==t&&(n[e]=t),n}),{});this._attrMap=n=>l[n]||n;const i={};Array.from(this.attributes).forEach((n=>i[this._attrMap(n.name)]=n.value)),o.forEach((n=>{void 0!==this[n]&&(i[n]=this[n]),Object.defineProperty(this,n,{get:()=>i[n],set(t){this.attributeChangedCallback(n,i[n],t)},configurable:!0,enumerable:!0})})),requestAnimationFrame((()=>{const t=this.children?Array.from(this.children):[];if(this._component=new n({...i,children:t}).mount(this._shadowRoot,e),this._component._props=i,this._component.dispatchEvent=this.dispatchEvent.bind(this),this._component.mounted){const n=this._component.mounted(i,t,this._component.state);void 0!==n&&(this._component.state=n)}this.on=this._component.on.bind(this._component),this.run=this._component.run.bind(this._component),!1!==e.render&&this._component.run(".")}))}}disconnectedCallback(){this._component?.unload?.(),this._component?.unmount?.(),this._component=null}attributeChangedCallback(n,e,o){if(this._component){const l=this._attrMap(n);this._component._props[l]=o,this._component.run("attributeChanged",l,e,o),o!==e&&!1!==t.render&&window.requestAnimationFrame((()=>{this._component.run(".")}))}}};var fn=(n,t,e)=>{"undefined"!=typeof customElements&&customElements.define(n,dn(t,e))};const pn={meta:new WeakMap,defineMetadata(n,t,e){this.meta.has(e)||this.meta.set(e,{}),this.meta.get(e)[n]=t},getMetadataKeys(n){return n=Object.getPrototypeOf(n),this.meta.get(n)?Object.keys(this.meta.get(n)):[]},getMetadata(n,t){return t=Object.getPrototypeOf(t),this.meta.get(t)?this.meta.get(t)[n]:null}};function gn(n,t={}){return(e,o,l)=>{const i=n?n.toString():o;return pn.defineMetadata(`apprun-update:${i}`,{name:i,key:o,options:t},e),l}}function mn(n,t={}){return function(e,o){const l=n?n.toString():o;pn.defineMetadata(`apprun-update:${l}`,{name:l,key:o,options:t},e)}}function yn(n,t){return function(e){return fn(n,e,t),e}}const vn=n=>n,bn=s;class wn{renderState(n,t=null){if(!this.view)return;let e=t||this.view(n);if(bn.debug&&bn.run("debug",{component:this,_:e?".":"-",state:n,vdom:e,el:this.element}),"object"!=typeof document)return;const o="string"==typeof this.element&&this.element?function(n){try{return document.getElementById(n)}catch(t){return console.warn(`Error getting element by id: ${n}`,t),null}}(this.element)||function(n,t=document){try{return t.querySelector(n)}catch(t){return console.warn(`Invalid selector: ${n}`,t),null}}(this.element):this.element;if(!o)return void console.warn(`Component element not found: ${this.element}`);const l="_c";this.unload?o._component===this&&o.getAttribute(l)===this.tracking_id||(this.tracking_id=(new Date).valueOf().toString(),o.setAttribute(l,this.tracking_id),"undefined"!=typeof MutationObserver&&(this.observer||(this.observer=new MutationObserver((n=>{n[0].oldValue!==this.tracking_id&&document.body.contains(o)||(this.unload(this.state),this.observer.disconnect(),this.observer=null)}))),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0,attributeFilter:[l]}))):o.removeAttribute&&o.removeAttribute(l),o._component=this,!t&&e&&(e=c(e,this),this.options.transition&&document&&document.startViewTransition?document.startViewTransition((()=>bn.render(o,e,this))):bn.render(o,e,this)),this.rendered&&this.rendered(this.state)}setState(n,t={render:!0,history:!1}){const e=async n=>{try{for(;;){const{value:e,done:o}=await n.next();if(o)break;this.setState(e,t)}}catch(n){console.error("Error in async iterator:",n)}},o=n;if(o?.[Symbol.asyncIterator])this.setState(e(o[Symbol.asyncIterator]()),t);else if(o?.[Symbol.iterator]&&"function"==typeof o.next)for(const n of o)this.setState(n,t);else if(n&&n instanceof Promise)Promise.resolve(n).then((e=>{this.setState(e,t),this._state=n}));else{if(this._state=n,null==n)return;this.state=n,!1!==t.render&&(t.transition&&document&&document.startViewTransition?document.startViewTransition((()=>this.renderState(n))):this.renderState(n)),!1!==t.history&&this.enable_history&&(this._history=[...this._history,n],this._history_idx=this._history.length-1),"function"==typeof t.callback&&t.callback(this.state)}}constructor(n,t,o,l){this.state=n,this.view=t,this.update=o,this.options=l,this._app=new e,this._actions=[],this._global_events=[],this._history=[],this._history_idx=-1,this._history_prev=()=>{this._history_idx--,this._history_idx>=0?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=0},this._history_next=()=>{this._history_idx++,this._history_idx<this._history.length?this.setState(this._history[this._history_idx],{render:!0,history:!1}):this._history_idx=this._history.length-1},this.start=(n=null,t)=>{if(this.mount(n,{render:!0,...t}),this.mounted&&"function"==typeof this.mounted){const n=this.mounted({},[],this.state);void 0!==n&&this.setState(n)}return this}}mount(n=null,t){return console.assert(!this.element,"Component already mounted."),this.options=t={...this.options,...t},this.element=n,this.global_event=t.global_event,this.enable_history=!!t.history,this.enable_history&&(this.on(t.history.prev||"history-prev",this._history_prev),this.on(t.history.next||"history-next",this._history_next)),t.route&&(this.update=this.update||{},this.update[t.route]||(this.update[t.route]=vn)),this.add_actions(),this.state=this.state??this.model??{},"function"==typeof this.state&&(this.state=this.state()),this.setState(this.state,{render:!!t.render,history:!0}),bn.debug&&bn.find("debug-create-component")?.length&&bn.run("debug-create-component",this),this}is_global_event(n){return n&&(this.global_event||this._global_events.indexOf(n)>=0||n.startsWith("#")||n.startsWith("/")||n.startsWith("@"))}add_action(n,t,e={}){t&&"function"==typeof t?(e.global&&this._global_events.push(n),this.on(n,((...o)=>{bn.debug&&bn.run("debug",{component:this,_:">",event:n,p:o,current_state:this.state,options:e});try{const l=t(this.state,...o);bn.debug&&bn.run("debug",{component:this,_:"<",event:n,p:o,newState:l,state:this.state,options:e}),this.setState(l,e)}catch(t){console.error(`Error in component action '${n}':`,t),bn.debug&&bn.run("debug",{component:this,_:"!",event:n,p:o,error:t,state:this.state,options:e})}}),e)):console.warn(`Component action for '${n}' is not a valid function:`,t)}add_actions(){const n=this.update||{};pn.getMetadataKeys(this).forEach((t=>{if(t.startsWith("apprun-update:")){const e=pn.getMetadata(t,this);n[e.name]=[this[e.key].bind(this),e.options]}}));const t={};Array.isArray(n)?n.forEach((n=>{const[e,o,l]=n;e.toString().split(",").forEach((n=>t[n.trim()]=[o,l]))})):Object.keys(n).forEach((e=>{const o=n[e];("function"==typeof o||Array.isArray(o))&&e.split(",").forEach((n=>t[n.trim()]=o))})),t["."]||(t["."]=vn),Object.keys(t).forEach((n=>{const e=t[n];"function"==typeof e?this.add_action(n,e):Array.isArray(e)&&this.add_action(n,e[0],e[1])}))}run(n,...t){if(this.state instanceof Promise)return Promise.resolve(this.state).then((e=>{this.state=e,this.run(n,...t)}));{const e=n.toString();return this.is_global_event(e)?bn.run(e,...t):this._app.run(e,...t)}}on(n,t,e){const o=n.toString();return this._actions.push({name:o,fn:t}),this.is_global_event(o)?bn.on(o,t,e):this._app.on(o,t,e)}runAsync(n,...t){const e=n.toString();return this.is_global_event(e)?bn.runAsync(e,...t):this._app.runAsync(e,...t)}query(n,...t){return console.warn("component.query() is deprecated. Use component.runAsync() instead."),this.runAsync(n,...t)}unmount(){this.observer?.disconnect(),this._actions.forEach((n=>{const{name:t,fn:e}=n;this.is_global_event(t)?bn.off(t,e):this._app.off(t,e)}))}}function Sn(){const n=s.find("#");if(n&&n.length>0)return s.run("#"),void s.run(xn,"#");const t=s.find("/");if(t&&t.length>0)return s.run("/"),void s.run(xn,"/");const e=s.find("#/");if(e&&e.length>0)return s.run("#/"),void s.run(xn,"#/");console.warn("No subscribers for event: "),s.run(On,""),s.run(xn,"")}function kn(n){if(!n)return void Sn();n=function(n){return n&&"/"!==n&&"#"!==n&&"#/"!==n&&n.endsWith("/")?n.slice(0,-1):n}(n);const t=s.basePath;t&&(n=function(n,t){if(!t||"/"===t||""===t)return n;const e=t.startsWith("/")?t:"/"+t;if(n.startsWith(e)){const t=n.substring(e.length);return t.startsWith("/")?t:"/"+t}return n}(n,t));const e=function(n){return n?n.startsWith("#/")?n.substring(2).split("/"):n.startsWith("#")||n.startsWith("/")?n.substring(1).split("/"):n.split("/"):[]}(n);let o;!function(n){const t=n.filter(Boolean);t.length>11&&console.warn(`Deep route hierarchy detected: ${t.join("/")} (${t.length} levels)`)}(e),o=n.startsWith("#/")?"hash-slash":n.startsWith("#")?"hash":n.startsWith("/")?"path":"non-prefixed";const l=function(n,t){const e=[];for(let o=n.length;o>0;o--){const l=n.slice(0,o);let i="";switch(t){case"path":i="/"+l.join("/");break;case"hash":i="#"+l.join("/");break;case"hash-slash":i="#/"+l.join("/");break;case"non-prefixed":i=l.join("/")}e.push(i)}return e}(e,o),i=function(n,t){for(let e=0;e<n.length;e++){const o=n[e],l=s.find(o);if(l&&l.length>0){const l=n.length-e;return{eventName:o,parameters:t.slice(l)}}}return null}(l,e);if(i)Cn(i.eventName,...i.parameters);else if(l.length>0){const t=l[l.length-1];console.warn(`No subscribers for event: ${t}`),s.run(On,n),s.run(xn,n)}else Sn()}wn.i=!0;const Cn=(n,...t)=>{if(!n||n===xn||n===On)return;const e=s.find(n);e&&0!==e.length?s.run(n,...t):(console.warn(`No subscribers for event: ${n}`),s.run(On,n,...t)),s.run(xn,n,...t)},xn="//",On="///",Mn=n=>{s.lastUrl!==n&&(s.lastUrl=n,kn(n))};function Pn(n){return n&&"object"==typeof n&&"function"==typeof n.mount}function An(n){return"function"==typeof n&&n.prototype&&n.prototype.constructor===n&&(void 0!==n.prototype.mount||void 0!==n.prototype.state||void 0!==n.prototype.view)}function En(n){return"function"==typeof n&&!An(n)}async function Rn(n,t=3){let e=n,o=0;for(;En(e)&&o<t;)try{const n=await e();if(n===e)break;e=n,o++}catch(n){console.error(`Error executing component function: ${n}`);break}return e}const $n=s;if(!$n.start){$n.version=n,$n.h=$n.createElement=on,$n.render=ln,$n.Fragment=Q,$n.webComponent=fn,$n.safeHTML=un,$n.start=(n,t,e,o,l)=>{const i={render:!0,global_event:!0,...l},s=new wn(t,e,o);return l&&l.rendered&&(s.rendered=l.rendered),l&&l.mounted&&(s.mounted=l.mounted),s.start(n,i),s},$n.query=$n.query||$n.runAsync;const t=n=>{};if($n.on("/",t),$n.on("debug",(n=>t)),$n.on(xn,t),$n.on(On,t),$n.route=Mn,$n.on("route",(n=>$n.route&&$n.route(n))),"object"==typeof document){let n=location.pathname;n.endsWith("/")&&(n=n.slice(0,-1)),$n.basePath=n,document.addEventListener("DOMContentLoaded",(()=>{const n=document.body.hasAttribute("apprun-no-init")||$n["no-init-route"]||!1,t=$n.find("#")||$n.find("#/")||!1;window.addEventListener("hashchange",(()=>Mn(location.hash))),window.addEventListener("popstate",(()=>Mn(location.pathname))),t?!n&&Mn(location.hash):(!n&&(()=>{const n=$n.basePath||"";let t=location.pathname;n&&t.startsWith(n)&&(t=t.substring(n.length),t.startsWith("/")||(t="/"+t)),Mn(t)})(),document.body.addEventListener("click",(n=>{const t=n.target;if(!t)return;const e="A"===t.tagName?t:t.closest("a");if(e&&e.origin===location.origin&&e.pathname){n.preventDefault();const t=($n.basePath||"")+e.pathname;history.pushState(null,"",t),Mn(e.pathname)}})))}))}if("object"==typeof window){const n=window;n.Component=wn,n._React=n.React,n.React=$n,n.on=mn,n.customElement=yn,n.safeHTML=un}$n.use_render=(n,t=0)=>{$n.render=0===t?(t,e)=>n(e,t):(t,e)=>n(t,e)},$n.use_react=(n,t)=>{if(n&&t)if("function"==typeof n.createElement)if(n.Fragment)if($n.h=$n.createElement=n.createElement,$n.Fragment=n.Fragment,n.version&&n.version.startsWith("18")){if(!t.createRoot||"function"!=typeof t.createRoot)return void console.error("AppRun use_react: ReactDOM.createRoot not found in React 18+");$n.render=(n,e)=>{n&&void 0!==e&&(n._root||(n._root=t.createRoot(n)),n._root.render(e))}}else{if(!t.render||"function"!=typeof t.render)return void console.error("AppRun use_react: ReactDOM.render not found in legacy React");$n.render=(n,e)=>t.render(e,n)}else console.error("AppRun use_react: Invalid React object - Fragment not found");else console.error("AppRun use_react: Invalid React object - createElement method not found");else console.error("AppRun use_react: React and ReactDOM parameters are required")},$n.addComponents=async(n,t)=>{for(const[e,o]of Object.entries(t))if(o&&e)if(Pn(o)){const t={route:e};o.mount(n,t)}else if(An(o)){const t={route:e};(new o).mount(n,t)}else if(En(o)){let t=await Rn(o);if(Pn(t)){const o={route:e};t.mount(n,o);continue}if(An(t)){const o={route:e};(new t).mount(n,o);continue}s.on(e,((...t)=>{const e=o(...t);if("string"!=typeof n||(n=document.querySelector(n)))return s.render(n,e);console.error(`Element not found: ${n}`)}))}else console.error("Invalid component: component must be a class, instance, or function that returns a class/instance");else console.error(`Invalid component configuration: component=${o}, route=${e}`)}}
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const Pn=globalThis,An=Pn.ShadowRoot&&(void 0===Pn.ShadyCSS||Pn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,En=Symbol(),Rn=new WeakMap;let Dn=class{constructor(n,t,e){if(this._$cssResult$=!0,e!==En)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=t}get styleSheet(){let n=this.o;const t=this.t;if(An&&void 0===n){const e=void 0!==t&&1===t.length;e&&(n=Rn.get(t)),void 0===n&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),e&&Rn.set(t,n))}return n}toString(){return this.cssText}};const $n=An?n=>n:n=>n instanceof CSSStyleSheet?(n=>{let t="";for(const e of n.cssRules)t+=e.cssText;return(n=>new Dn("string"==typeof n?n:n+"",void 0,En))(t)})(n):n
6
+ */const Dn=globalThis,Ln=Dn.ShadowRoot&&(void 0===Dn.ShadyCSS||Dn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tn=Symbol(),_n=new WeakMap;let jn=class{constructor(n,t,e){if(this._$cssResult$=!0,e!==Tn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=n,this.t=t}get styleSheet(){let n=this.o;const t=this.t;if(Ln&&void 0===n){const e=void 0!==t&&1===t.length;e&&(n=_n.get(t)),void 0===n&&((this.o=n=new CSSStyleSheet).replaceSync(this.cssText),e&&_n.set(t,n))}return n}toString(){return this.cssText}};const Un=Ln?n=>n:n=>n instanceof CSSStyleSheet?(n=>{let t="";for(const e of n.cssRules)t+=e.cssText;return(n=>new jn("string"==typeof n?n:n+"",void 0,Tn))(t)})(n):n
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */,{is:Ln,defineProperty:Tn,getOwnPropertyDescriptor:jn,getOwnPropertyNames:_n,getOwnPropertySymbols:Un,getPrototypeOf:zn}=Object,In=globalThis,Bn=In.trustedTypes,Hn=Bn?Bn.emptyScript:"",Nn=In.reactiveElementPolyfillSupport,Fn=(n,t)=>n,Vn={toAttribute(n,t){switch(t){case Boolean:n=n?Hn:null;break;case Object:case Array:n=null==n?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=null!==n;break;case Number:e=null===n?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch(n){e=null}}return e}},qn=(n,t)=>!Ln(n,t),Wn={attribute:!0,type:String,converter:Vn,reflect:!1,useDefault:!1,hasChanged:qn};Symbol.metadata??=Symbol("metadata"),In.litPropertyMetadata??=new WeakMap;let Kn=class extends HTMLElement{static addInitializer(n){this._$Ei(),(this.l??=[]).push(n)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(n,t=Wn){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(n)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(n,t),!t.noAccessor){const e=Symbol(),l=this.getPropertyDescriptor(n,e,t);void 0!==l&&Tn(this.prototype,n,l)}}static getPropertyDescriptor(n,t,e){const{get:l,set:o}=jn(this.prototype,n)??{get(){return this[t]},set(n){this[t]=n}};return{get:l,set(t){const i=l?.call(this);o?.call(this,t),this.requestUpdate(n,i,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)??Wn}static _$Ei(){if(this.hasOwnProperty(Fn("elementProperties")))return;const n=zn(this);n.finalize(),void 0!==n.l&&(this.l=[...n.l]),this.elementProperties=new Map(n.elementProperties)}static finalize(){if(this.hasOwnProperty(Fn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fn("properties"))){const n=this.properties,t=[..._n(n),...Un(n)];for(const e of t)this.createProperty(e,n[e])}const n=this[Symbol.metadata];if(null!==n){const t=litPropertyMetadata.get(n);if(void 0!==t)for(const[n,e]of t)this.elementProperties.set(n,e)}this._$Eh=new Map;for(const[n,t]of this.elementProperties){const e=this._$Eu(n,t);void 0!==e&&this._$Eh.set(e,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(n){const t=[];if(Array.isArray(n)){const e=new Set(n.flat(1/0).reverse());for(const n of e)t.unshift($n(n))}else void 0!==n&&t.push($n(n));return t}static _$Eu(n,t){const e=t.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof n?n.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((n=>this.enableUpdating=n)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((n=>n(this)))}addController(n){(this._$EO??=new Set).add(n),void 0!==this.renderRoot&&this.isConnected&&n.hostConnected?.()}removeController(n){this._$EO?.delete(n)}_$E_(){const n=new Map,t=this.constructor.elementProperties;for(const e of t.keys())this.hasOwnProperty(e)&&(n.set(e,this[e]),delete this[e]);n.size>0&&(this._$Ep=n)}createRenderRoot(){const n=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((n,t)=>{if(An)n.adoptedStyleSheets=t.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet));else for(const e of t){const t=document.createElement("style"),l=Pn.litNonce;void 0!==l&&t.setAttribute("nonce",l),t.textContent=e.cssText,n.appendChild(t)}})(n,this.constructor.elementStyles),n}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((n=>n.hostConnected?.()))}enableUpdating(n){}disconnectedCallback(){this._$EO?.forEach((n=>n.hostDisconnected?.()))}attributeChangedCallback(n,t,e){this._$AK(n,e)}_$ET(n,t){const e=this.constructor.elementProperties.get(n),l=this.constructor._$Eu(n,e);if(void 0!==l&&!0===e.reflect){const o=(void 0!==e.converter?.toAttribute?e.converter:Vn).toAttribute(t,e.type);this._$Em=n,null==o?this.removeAttribute(l):this.setAttribute(l,o),this._$Em=null}}_$AK(n,t){const e=this.constructor,l=e._$Eh.get(n);if(void 0!==l&&this._$Em!==l){const n=e.getPropertyOptions(l),o="function"==typeof n.converter?{fromAttribute:n.converter}:void 0!==n.converter?.fromAttribute?n.converter:Vn;this._$Em=l,this[l]=o.fromAttribute(t,n.type)??this._$Ej?.get(l)??null,this._$Em=null}}requestUpdate(n,t,e){if(void 0!==n){const l=this.constructor,o=this[n];if(e??=l.getPropertyOptions(n),!((e.hasChanged??qn)(o,t)||e.useDefault&&e.reflect&&o===this._$Ej?.get(n)&&!this.hasAttribute(l._$Eu(n,e))))return;this.C(n,t,e)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(n,t,{useDefault:e,reflect:l,wrapped:o},i){e&&!(this._$Ej??=new Map).has(n)&&(this._$Ej.set(n,i??t??this[n]),!0!==o||void 0!==i)||(this._$AL.has(n)||(this.hasUpdated||e||(t=void 0),this._$AL.set(n,t)),!0===l&&this._$Em!==n&&(this._$Eq??=new Set).add(n))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const n=this.scheduleUpdate();return null!=n&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[n,t]of this._$Ep)this[n]=t;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[t,e]of n){const{wrapped:n}=e,l=this[t];!0!==n||this._$AL.has(t)||void 0===l||this.C(t,void 0,e,l)}}let n=!1;const t=this._$AL;try{n=this.shouldUpdate(t),n?(this.willUpdate(t),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw n=!1,this._$EM(),t}n&&this._$AE(t)}willUpdate(n){}_$AE(n){this._$EO?.forEach((n=>n.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(n){return!0}update(n){this._$Eq&&=this._$Eq.forEach((n=>this._$ET(n,this[n]))),this._$EM()}updated(n){}firstUpdated(n){}};Kn.elementStyles=[],Kn.shadowRootOptions={mode:"open"},Kn[Fn("elementProperties")]=new Map,Kn[Fn("finalized")]=new Map,Nn?.({ReactiveElement:Kn}),(In.reactiveElementVersions??=[]).push("2.1.0");
11
+ */,{is:zn,defineProperty:In,getOwnPropertyDescriptor:Bn,getOwnPropertyNames:Hn,getOwnPropertySymbols:Nn,getPrototypeOf:Fn}=Object,Vn=globalThis,qn=Vn.trustedTypes,Wn=qn?qn.emptyScript:"",Kn=Vn.reactiveElementPolyfillSupport,Xn=(n,t)=>n,Yn={toAttribute(n,t){switch(t){case Boolean:n=n?Wn:null;break;case Object:case Array:n=null==n?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=null!==n;break;case Number:e=null===n?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch(n){e=null}}return e}},Zn=(n,t)=>!zn(n,t),Jn={attribute:!0,type:String,converter:Yn,reflect:!1,useDefault:!1,hasChanged:Zn};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;let Gn=class extends HTMLElement{static addInitializer(n){this._$Ei(),(this.l??=[]).push(n)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(n,t=Jn){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(n)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(n,t),!t.noAccessor){const e=Symbol(),o=this.getPropertyDescriptor(n,e,t);void 0!==o&&In(this.prototype,n,o)}}static getPropertyDescriptor(n,t,e){const{get:o,set:l}=Bn(this.prototype,n)??{get(){return this[t]},set(n){this[t]=n}};return{get:o,set(t){const i=o?.call(this);l?.call(this,t),this.requestUpdate(n,i,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(n){return this.elementProperties.get(n)??Jn}static _$Ei(){if(this.hasOwnProperty(Xn("elementProperties")))return;const n=Fn(this);n.finalize(),void 0!==n.l&&(this.l=[...n.l]),this.elementProperties=new Map(n.elementProperties)}static finalize(){if(this.hasOwnProperty(Xn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xn("properties"))){const n=this.properties,t=[...Hn(n),...Nn(n)];for(const e of t)this.createProperty(e,n[e])}const n=this[Symbol.metadata];if(null!==n){const t=litPropertyMetadata.get(n);if(void 0!==t)for(const[n,e]of t)this.elementProperties.set(n,e)}this._$Eh=new Map;for(const[n,t]of this.elementProperties){const e=this._$Eu(n,t);void 0!==e&&this._$Eh.set(e,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(n){const t=[];if(Array.isArray(n)){const e=new Set(n.flat(1/0).reverse());for(const n of e)t.unshift(Un(n))}else void 0!==n&&t.push(Un(n));return t}static _$Eu(n,t){const e=t.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof n?n.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((n=>this.enableUpdating=n)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((n=>n(this)))}addController(n){(this._$EO??=new Set).add(n),void 0!==this.renderRoot&&this.isConnected&&n.hostConnected?.()}removeController(n){this._$EO?.delete(n)}_$E_(){const n=new Map,t=this.constructor.elementProperties;for(const e of t.keys())this.hasOwnProperty(e)&&(n.set(e,this[e]),delete this[e]);n.size>0&&(this._$Ep=n)}createRenderRoot(){const n=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((n,t)=>{if(Ln)n.adoptedStyleSheets=t.map((n=>n instanceof CSSStyleSheet?n:n.styleSheet));else for(const e of t){const t=document.createElement("style"),o=Dn.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=e.cssText,n.appendChild(t)}})(n,this.constructor.elementStyles),n}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((n=>n.hostConnected?.()))}enableUpdating(n){}disconnectedCallback(){this._$EO?.forEach((n=>n.hostDisconnected?.()))}attributeChangedCallback(n,t,e){this._$AK(n,e)}_$ET(n,t){const e=this.constructor.elementProperties.get(n),o=this.constructor._$Eu(n,e);if(void 0!==o&&!0===e.reflect){const l=(void 0!==e.converter?.toAttribute?e.converter:Yn).toAttribute(t,e.type);this._$Em=n,null==l?this.removeAttribute(o):this.setAttribute(o,l),this._$Em=null}}_$AK(n,t){const e=this.constructor,o=e._$Eh.get(n);if(void 0!==o&&this._$Em!==o){const n=e.getPropertyOptions(o),l="function"==typeof n.converter?{fromAttribute:n.converter}:void 0!==n.converter?.fromAttribute?n.converter:Yn;this._$Em=o,this[o]=l.fromAttribute(t,n.type)??this._$Ej?.get(o)??null,this._$Em=null}}requestUpdate(n,t,e){if(void 0!==n){const o=this.constructor,l=this[n];if(e??=o.getPropertyOptions(n),!((e.hasChanged??Zn)(l,t)||e.useDefault&&e.reflect&&l===this._$Ej?.get(n)&&!this.hasAttribute(o._$Eu(n,e))))return;this.C(n,t,e)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(n,t,{useDefault:e,reflect:o,wrapped:l},i){e&&!(this._$Ej??=new Map).has(n)&&(this._$Ej.set(n,i??t??this[n]),!0!==l||void 0!==i)||(this._$AL.has(n)||(this.hasUpdated||e||(t=void 0),this._$AL.set(n,t)),!0===o&&this._$Em!==n&&(this._$Eq??=new Set).add(n))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const n=this.scheduleUpdate();return null!=n&&await n,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[n,t]of this._$Ep)this[n]=t;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[t,e]of n){const{wrapped:n}=e,o=this[t];!0!==n||this._$AL.has(t)||void 0===o||this.C(t,void 0,e,o)}}let n=!1;const t=this._$AL;try{n=this.shouldUpdate(t),n?(this.willUpdate(t),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw n=!1,this._$EM(),t}n&&this._$AE(t)}willUpdate(n){}_$AE(n){this._$EO?.forEach((n=>n.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(n)),this.updated(n)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(n){return!0}update(n){this._$Eq&&=this._$Eq.forEach((n=>this._$ET(n,this[n]))),this._$EM()}updated(n){}firstUpdated(n){}};Gn.elementStyles=[],Gn.shadowRootOptions={mode:"open"},Gn[Xn("elementProperties")]=new Map,Gn[Xn("finalized")]=new Map,Kn?.({ReactiveElement:Gn}),(Vn.reactiveElementVersions??=[]).push("2.1.0");
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const Xn=globalThis,Yn=Xn.trustedTypes,Zn=Yn?Yn.createPolicy("lit-html",{createHTML:n=>n}):void 0,Jn="$lit$",Gn=`lit$${Math.random().toFixed(9).slice(2)}$`,Qn="?"+Gn,nt=`<${Qn}>`,tt=document,et=()=>tt.createComment(""),lt=n=>null===n||"object"!=typeof n&&"function"!=typeof n,ot=Array.isArray,it="[ \t\n\f\r]",st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ut=/>/g,at=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ct=/'/g,ht=/"/g,dt=/^(?:script|style|textarea|title)$/i,ft=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),pt=ft(1),gt=ft(2),mt=Symbol.for("lit-noChange"),vt=Symbol.for("lit-nothing"),yt=new WeakMap,bt=tt.createTreeWalker(tt,129);function wt(n,t){if(!ot(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Zn?Zn.createHTML(t):t}const St=(n,t)=>{const e=n.length-1,l=[];let o,i=2===t?"<svg>":3===t?"<math>":"",s=st;for(let t=0;t<e;t++){const e=n[t];let r,u,a=-1,c=0;for(;c<e.length&&(s.lastIndex=c,u=s.exec(e),null!==u);)c=s.lastIndex,s===st?"!--"===u[1]?s=rt:void 0!==u[1]?s=ut:void 0!==u[2]?(dt.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=at):void 0!==u[3]&&(s=at):s===at?">"===u[0]?(s=o??st,a=-1):void 0===u[1]?a=-2:(a=s.lastIndex-u[2].length,r=u[1],s=void 0===u[3]?at:'"'===u[3]?ht:ct):s===ht||s===ct?s=at:s===rt||s===ut?s=st:(s=at,o=void 0);const h=s===at&&n[t+1].startsWith("/>")?" ":"";i+=s===st?e+nt:a>=0?(l.push(r),e.slice(0,a)+Jn+e.slice(a)+Gn+h):e+Gn+(-2===a?t:h)}return[wt(n,i+(n[e]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),l]};class kt{constructor({strings:n,_$litType$:t},e){let l;this.parts=[];let o=0,i=0;const s=n.length-1,r=this.parts,[u,a]=St(n,t);if(this.el=kt.createElement(u,e),bt.currentNode=this.el.content,2===t||3===t){const n=this.el.content.firstChild;n.replaceWith(...n.childNodes)}for(;null!==(l=bt.nextNode())&&r.length<s;){if(1===l.nodeType){if(l.hasAttributes())for(const n of l.getAttributeNames())if(n.endsWith(Jn)){const t=a[i++],e=l.getAttribute(n).split(Gn),s=/([.?@])?(.*)/.exec(t);r.push({type:1,index:o,name:s[2],strings:e,ctor:"."===s[1]?Pt:"?"===s[1]?At:"@"===s[1]?Et:Mt}),l.removeAttribute(n)}else n.startsWith(Gn)&&(r.push({type:6,index:o}),l.removeAttribute(n));if(dt.test(l.tagName)){const n=l.textContent.split(Gn),t=n.length-1;if(t>0){l.textContent=Yn?Yn.emptyScript:"";for(let e=0;e<t;e++)l.append(n[e],et()),bt.nextNode(),r.push({type:2,index:++o});l.append(n[t],et())}}}else if(8===l.nodeType)if(l.data===Qn)r.push({type:2,index:o});else{let n=-1;for(;-1!==(n=l.data.indexOf(Gn,n+1));)r.push({type:7,index:o}),n+=Gn.length-1}o++}}static createElement(n,t){const e=tt.createElement("template");return e.innerHTML=n,e}}function Ot(n,t,e=n,l){if(t===mt)return t;let o=void 0!==l?e._$Co?.[l]:e._$Cl;const i=lt(t)?void 0:t._$litDirective$;return o?.constructor!==i&&(o?._$AO?.(!1),void 0===i?o=void 0:(o=new i(n),o._$AT(n,e,l)),void 0!==l?(e._$Co??=[])[l]=o:e._$Cl=o),void 0!==o&&(t=Ot(n,o._$AS(n,t.values),o,l)),t}class Ct{constructor(n,t){this._$AV=[],this._$AN=void 0,this._$AD=n,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(n){const{el:{content:t},parts:e}=this._$AD,l=(n?.creationScope??tt).importNode(t,!0);bt.currentNode=l;let o=bt.nextNode(),i=0,s=0,r=e[0];for(;void 0!==r;){if(i===r.index){let t;2===r.type?t=new xt(o,o.nextSibling,this,n):1===r.type?t=new r.ctor(o,r.name,r.strings,this,n):6===r.type&&(t=new Rt(o,this,n)),this._$AV.push(t),r=e[++s]}i!==r?.index&&(o=bt.nextNode(),i++)}return bt.currentNode=tt,l}p(n){let t=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(n,e,t),t+=e.strings.length-2):e._$AI(n[t])),t++}}class xt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(n,t,e,l){this.type=2,this._$AH=vt,this._$AN=void 0,this._$AA=n,this._$AB=t,this._$AM=e,this.options=l,this._$Cv=l?.isConnected??!0}get parentNode(){let n=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===n?.nodeType&&(n=t.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,t=this){n=Ot(this,n,t),lt(n)?n===vt||null==n||""===n?(this._$AH!==vt&&this._$AR(),this._$AH=vt):n!==this._$AH&&n!==mt&&this._(n):void 0!==n._$litType$?this.$(n):void 0!==n.nodeType?this.T(n):(n=>ot(n)||"function"==typeof n?.[Symbol.iterator])(n)?this.k(n):this._(n)}O(n){return this._$AA.parentNode.insertBefore(n,this._$AB)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}_(n){this._$AH!==vt&&lt(this._$AH)?this._$AA.nextSibling.data=n:this.T(tt.createTextNode(n)),this._$AH=n}$(n){const{values:t,_$litType$:e}=n,l="number"==typeof e?this._$AC(n):(void 0===e.el&&(e.el=kt.createElement(wt(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===l)this._$AH.p(t);else{const n=new Ct(l,this),e=n.u(this.options);n.p(t),this.T(e),this._$AH=n}}_$AC(n){let t=yt.get(n.strings);return void 0===t&&yt.set(n.strings,t=new kt(n)),t}k(n){ot(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,l=0;for(const o of n)l===t.length?t.push(e=new xt(this.O(et()),this.O(et()),this,this.options)):e=t[l],e._$AI(o),l++;l<t.length&&(this._$AR(e&&e._$AB.nextSibling,l),t.length=l)}_$AR(n=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);n&&n!==this._$AB;){const t=n.nextSibling;n.remove(),n=t}}setConnected(n){void 0===this._$AM&&(this._$Cv=n,this._$AP?.(n))}}class Mt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(n,t,e,l,o){this.type=1,this._$AH=vt,this._$AN=void 0,this.element=n,this.name=t,this._$AM=l,this.options=o,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=vt}_$AI(n,t=this,e,l){const o=this.strings;let i=!1;if(void 0===o)n=Ot(this,n,t,0),i=!lt(n)||n!==this._$AH&&n!==mt,i&&(this._$AH=n);else{const l=n;let s,r;for(n=o[0],s=0;s<o.length-1;s++)r=Ot(this,l[e+s],t,s),r===mt&&(r=this._$AH[s]),i||=!lt(r)||r!==this._$AH[s],r===vt?n=vt:n!==vt&&(n+=(r??"")+o[s+1]),this._$AH[s]=r}i&&!l&&this.j(n)}j(n){n===vt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n??"")}}class Pt extends Mt{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===vt?void 0:n}}class At extends Mt{constructor(){super(...arguments),this.type=4}j(n){this.element.toggleAttribute(this.name,!!n&&n!==vt)}}class Et extends Mt{constructor(n,t,e,l,o){super(n,t,e,l,o),this.type=5}_$AI(n,t=this){if((n=Ot(this,n,t,0)??vt)===mt)return;const e=this._$AH,l=n===vt&&e!==vt||n.capture!==e.capture||n.once!==e.once||n.passive!==e.passive,o=n!==vt&&(e===vt||l);l&&this.element.removeEventListener(this.name,this,e),o&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,n):this._$AH.handleEvent(n)}}class Rt{constructor(n,t,e){this.element=n,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(n){Ot(this,n)}}const Dt=Xn.litHtmlPolyfillSupport;Dt?.(kt,xt),(Xn.litHtmlVersions??=[]).push("3.3.0");const $t=(n,t,e)=>{const l=e?.renderBefore??t;let o=l._$litPart$;if(void 0===o){const n=e?.renderBefore??null;l._$litPart$=o=new xt(t.insertBefore(et(),n),n,void 0,e??{})}return o._$AI(n),o
17
+ const Qn=globalThis,nt=Qn.trustedTypes,tt=nt?nt.createPolicy("lit-html",{createHTML:n=>n}):void 0,et="$lit$",ot=`lit$${Math.random().toFixed(9).slice(2)}$`,lt="?"+ot,it=`<${lt}>`,st=document,rt=()=>st.createComment(""),ut=n=>null===n||"object"!=typeof n&&"function"!=typeof n,at=Array.isArray,ct="[ \t\n\f\r]",ht=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dt=/-->/g,ft=/>/g,pt=RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,mt=/"/g,yt=/^(?:script|style|textarea|title)$/i,vt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),bt=vt(1),wt=vt(2),St=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Ct=new WeakMap,xt=st.createTreeWalker(st,129);function Ot(n,t){if(!at(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==tt?tt.createHTML(t):t}const Mt=(n,t)=>{const e=n.length-1,o=[];let l,i=2===t?"<svg>":3===t?"<math>":"",s=ht;for(let t=0;t<e;t++){const e=n[t];let r,u,a=-1,c=0;for(;c<e.length&&(s.lastIndex=c,u=s.exec(e),null!==u);)c=s.lastIndex,s===ht?"!--"===u[1]?s=dt:void 0!==u[1]?s=ft:void 0!==u[2]?(yt.test(u[2])&&(l=RegExp("</"+u[2],"g")),s=pt):void 0!==u[3]&&(s=pt):s===pt?">"===u[0]?(s=l??ht,a=-1):void 0===u[1]?a=-2:(a=s.lastIndex-u[2].length,r=u[1],s=void 0===u[3]?pt:'"'===u[3]?mt:gt):s===mt||s===gt?s=pt:s===dt||s===ft?s=ht:(s=pt,l=void 0);const h=s===pt&&n[t+1].startsWith("/>")?" ":"";i+=s===ht?e+it:a>=0?(o.push(r),e.slice(0,a)+et+e.slice(a)+ot+h):e+ot+(-2===a?t:h)}return[Ot(n,i+(n[e]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]};class Pt{constructor({strings:n,_$litType$:t},e){let o;this.parts=[];let l=0,i=0;const s=n.length-1,r=this.parts,[u,a]=Mt(n,t);if(this.el=Pt.createElement(u,e),xt.currentNode=this.el.content,2===t||3===t){const n=this.el.content.firstChild;n.replaceWith(...n.childNodes)}for(;null!==(o=xt.nextNode())&&r.length<s;){if(1===o.nodeType){if(o.hasAttributes())for(const n of o.getAttributeNames())if(n.endsWith(et)){const t=a[i++],e=o.getAttribute(n).split(ot),s=/([.?@])?(.*)/.exec(t);r.push({type:1,index:l,name:s[2],strings:e,ctor:"."===s[1]?Dt:"?"===s[1]?Lt:"@"===s[1]?Tt:$t}),o.removeAttribute(n)}else n.startsWith(ot)&&(r.push({type:6,index:l}),o.removeAttribute(n));if(yt.test(o.tagName)){const n=o.textContent.split(ot),t=n.length-1;if(t>0){o.textContent=nt?nt.emptyScript:"";for(let e=0;e<t;e++)o.append(n[e],rt()),xt.nextNode(),r.push({type:2,index:++l});o.append(n[t],rt())}}}else if(8===o.nodeType)if(o.data===lt)r.push({type:2,index:l});else{let n=-1;for(;-1!==(n=o.data.indexOf(ot,n+1));)r.push({type:7,index:l}),n+=ot.length-1}l++}}static createElement(n,t){const e=st.createElement("template");return e.innerHTML=n,e}}function At(n,t,e=n,o){if(t===St)return t;let l=void 0!==o?e._$Co?.[o]:e._$Cl;const i=ut(t)?void 0:t._$litDirective$;return l?.constructor!==i&&(l?._$AO?.(!1),void 0===i?l=void 0:(l=new i(n),l._$AT(n,e,o)),void 0!==o?(e._$Co??=[])[o]=l:e._$Cl=l),void 0!==l&&(t=At(n,l._$AS(n,t.values),l,o)),t}class Et{constructor(n,t){this._$AV=[],this._$AN=void 0,this._$AD=n,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(n){const{el:{content:t},parts:e}=this._$AD,o=(n?.creationScope??st).importNode(t,!0);xt.currentNode=o;let l=xt.nextNode(),i=0,s=0,r=e[0];for(;void 0!==r;){if(i===r.index){let t;2===r.type?t=new Rt(l,l.nextSibling,this,n):1===r.type?t=new r.ctor(l,r.name,r.strings,this,n):6===r.type&&(t=new _t(l,this,n)),this._$AV.push(t),r=e[++s]}i!==r?.index&&(l=xt.nextNode(),i++)}return xt.currentNode=st,o}p(n){let t=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(n,e,t),t+=e.strings.length-2):e._$AI(n[t])),t++}}class Rt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(n,t,e,o){this.type=2,this._$AH=kt,this._$AN=void 0,this._$AA=n,this._$AB=t,this._$AM=e,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let n=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===n?.nodeType&&(n=t.parentNode),n}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(n,t=this){n=At(this,n,t),ut(n)?n===kt||null==n||""===n?(this._$AH!==kt&&this._$AR(),this._$AH=kt):n!==this._$AH&&n!==St&&this._(n):void 0!==n._$litType$?this.$(n):void 0!==n.nodeType?this.T(n):(n=>at(n)||"function"==typeof n?.[Symbol.iterator])(n)?this.k(n):this._(n)}O(n){return this._$AA.parentNode.insertBefore(n,this._$AB)}T(n){this._$AH!==n&&(this._$AR(),this._$AH=this.O(n))}_(n){this._$AH!==kt&&ut(this._$AH)?this._$AA.nextSibling.data=n:this.T(st.createTextNode(n)),this._$AH=n}$(n){const{values:t,_$litType$:e}=n,o="number"==typeof e?this._$AC(n):(void 0===e.el&&(e.el=Pt.createElement(Ot(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===o)this._$AH.p(t);else{const n=new Et(o,this),e=n.u(this.options);n.p(t),this.T(e),this._$AH=n}}_$AC(n){let t=Ct.get(n.strings);return void 0===t&&Ct.set(n.strings,t=new Pt(n)),t}k(n){at(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let e,o=0;for(const l of n)o===t.length?t.push(e=new Rt(this.O(rt()),this.O(rt()),this,this.options)):e=t[o],e._$AI(l),o++;o<t.length&&(this._$AR(e&&e._$AB.nextSibling,o),t.length=o)}_$AR(n=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);n&&n!==this._$AB;){const t=n.nextSibling;n.remove(),n=t}}setConnected(n){void 0===this._$AM&&(this._$Cv=n,this._$AP?.(n))}}class $t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(n,t,e,o,l){this.type=1,this._$AH=kt,this._$AN=void 0,this.element=n,this.name=t,this._$AM=o,this.options=l,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=kt}_$AI(n,t=this,e,o){const l=this.strings;let i=!1;if(void 0===l)n=At(this,n,t,0),i=!ut(n)||n!==this._$AH&&n!==St,i&&(this._$AH=n);else{const o=n;let s,r;for(n=l[0],s=0;s<l.length-1;s++)r=At(this,o[e+s],t,s),r===St&&(r=this._$AH[s]),i||=!ut(r)||r!==this._$AH[s],r===kt?n=kt:n!==kt&&(n+=(r??"")+l[s+1]),this._$AH[s]=r}i&&!o&&this.j(n)}j(n){n===kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,n??"")}}class Dt extends $t{constructor(){super(...arguments),this.type=3}j(n){this.element[this.name]=n===kt?void 0:n}}class Lt extends $t{constructor(){super(...arguments),this.type=4}j(n){this.element.toggleAttribute(this.name,!!n&&n!==kt)}}class Tt extends $t{constructor(n,t,e,o,l){super(n,t,e,o,l),this.type=5}_$AI(n,t=this){if((n=At(this,n,t,0)??kt)===St)return;const e=this._$AH,o=n===kt&&e!==kt||n.capture!==e.capture||n.once!==e.once||n.passive!==e.passive,l=n!==kt&&(e===kt||o);o&&this.element.removeEventListener(this.name,this,e),l&&this.element.addEventListener(this.name,this,n),this._$AH=n}handleEvent(n){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,n):this._$AH.handleEvent(n)}}class _t{constructor(n,t,e){this.element=n,this.type=6,this._$AN=void 0,this._$AM=t,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(n){At(this,n)}}const jt=Qn.litHtmlPolyfillSupport;jt?.(Pt,Rt),(Qn.litHtmlVersions??=[]).push("3.3.0");const Ut=(n,t,e)=>{const o=e?.renderBefore??t;let l=o._$litPart$;if(void 0===l){const n=e?.renderBefore??null;o._$litPart$=l=new Rt(t.insertBefore(rt(),n),n,void 0,e??{})}return l._$AI(n),l
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */},Lt=globalThis;let Tt=class extends Kn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const n=super.createRenderRoot();return this.renderOptions.renderBefore??=n.firstChild,n}update(n){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=$t(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return mt}};Tt._$litElement$=!0,Tt.finalized=!0,Lt.litElementHydrateSupport?.({LitElement:Tt});const jt=Lt.litElementPolyfillSupport;jt?.({LitElement:Tt}),(Lt.litElementVersions??=[]).push("4.2.0");
22
+ */},zt=globalThis;let It=class extends Gn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const n=super.createRenderRoot();return this.renderOptions.renderBefore??=n.firstChild,n}update(n){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(n),this._$Do=Ut(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return St}};It._$litElement$=!0,It.finalized=!0,zt.litElementHydrateSupport?.({LitElement:It});const Bt=zt.litElementPolyfillSupport;Bt?.({LitElement:It}),(zt.litElementVersions??=[]).push("4.2.0");
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
27
  */
28
- const _t=2,Ut=5,zt=n=>(...t)=>({_$litDirective$:n,values:t});class It{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,t,e){this._$Ct=n,this._$AM=t,this._$Ci=e}_$AS(n,t){return this.update(n,t)}update(n,t){return this.render(...t)}}
28
+ const Ht=2,Nt=5,Ft=n=>(...t)=>({_$litDirective$:n,values:t});class Vt{constructor(n){}get _$AU(){return this._$AM._$AU}_$AT(n,t,e){this._$Ct=n,this._$AM=t,this._$Ci=e}_$AS(n,t){return this.update(n,t)}update(n,t){return this.render(...t)}}
29
29
  /**
30
30
  * @license
31
31
  * Copyright 2017 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */class Bt extends It{constructor(n){if(super(n),this.it=vt,n.type!==_t)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===vt||null==n)return this._t=void 0,this.it=n;if(n===mt)return n;if("string"!=typeof n)throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const t=[n];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Bt.directiveName="unsafeHTML",Bt.resultType=1;const Ht=zt(Bt);function Nt(n,t,e){t&&("string"==typeof t?(n._$litPart$||n.replaceChildren(),$t(pt`${Ht(t)}`,n)):t._$litType$?(n._$litPart$||n.replaceChildren(),$t(t,n)):(on(n,t,e),n._$litPart$=void 0))}const Ft=zt(class extends It{constructor(n){if(super(n),n.type!==Ut)throw new Error("run() can only be used in event handlers")}update(n,t){const e=n.element,l=n.name,[o,...i]=t,r=()=>{let n=e,t=n._component;for(;!t&&n;)n=n.parentElement,t=n&&n._component;return console.assert(!!t,"Component not found."),t};return"string"==typeof o?e[`on${l}`]=n=>{const t=r();t?t.run(o,...i,n):s.run(o,...i,n)}:"function"==typeof o&&(e[`on${l}`]=n=>r().setState(o(r().state,...i,n))),this.render()}render(){return mt}});if(s.createElement=ln,s.render=Nt,s.Fragment=Q,"object"==typeof window){const n=window;Vt=n,qt={React:n._React||s,html:pt,svg:gt,run:Ft},"object"==typeof Vt&&null!==Vt&&Object.keys(qt).forEach((n=>{Vt[n]=qt[n]}))}var Vt,qt;export{wn as Component,xn as ROUTER_404_EVENT,Cn as ROUTER_EVENT,s as app,vn as customElement,s as default,gn as event,pt as html,mn as on,Nt as render,Ft as run,un as safeHTML,gt as svg,gn as update};
33
+ */class qt extends Vt{constructor(n){if(super(n),this.it=kt,n.type!==Ht)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(n){if(n===kt||null==n)return this._t=void 0,this.it=n;if(n===St)return n;if("string"!=typeof n)throw Error(this.constructor.directiveName+"() called with a non-string value");if(n===this.it)return this._t;this.it=n;const t=[n];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}qt.directiveName="unsafeHTML",qt.resultType=1;const Wt=Ft(qt);function Kt(n,t,e){t&&("string"==typeof t?(n._$litPart$||n.replaceChildren(),Ut(bt`${Wt(t)}`,n)):t._$litType$?(n._$litPart$||n.replaceChildren(),Ut(t,n)):(ln(n,t,e),n._$litPart$=void 0))}const Xt=Ft(class extends Vt{constructor(n){if(super(n),n.type!==Nt)throw new Error("run() can only be used in event handlers")}update(n,t){const e=n.element,o=n.name,[l,...i]=t,s=()=>{let n=e,t=n._component;for(;!t&&n;)n=n.parentElement,t=n&&n._component;return console.assert(!!t,"Component not found."),t};return"string"==typeof l?e[`on${o}`]=n=>{const t=s();t?t.run(l,...i,n):$n.run(l,...i,n)}:"function"==typeof l&&(e[`on${o}`]=n=>s().setState(l(s().state,...i,n))),this.render()}render(){return St}});if($n.createElement=on,$n.render=Kt,$n.Fragment=Q,"object"==typeof window){const n=window;Yt=n,Zt={React:n._React||$n,html:bt,svg:wt,run:Xt},"object"==typeof Yt&&null!==Yt&&Object.keys(Zt).forEach((n=>{Yt[n]=Zt[n]}))}var Yt,Zt;export{wn as Component,On as ROUTER_404_EVENT,xn as ROUTER_EVENT,$n as app,yn as customElement,$n as default,gn as event,bt as html,mn as on,Kt as render,Xt as run,un as safeHTML,wt as svg,gn as update};
34
34
  //# sourceMappingURL=apprun-html.esm.js.map