flexium 0.17.1 → 0.17.2

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["VERSION"],"mappings":"u5BAAO,IAAMA,CAAAA,CAAU","file":"index.mjs","sourcesContent":["export const VERSION = '0.17.1' // Bump version to signify rebuild\n\n// Re-export all from submodules\nexport * from './core'\nexport * from './dom'\nexport * from './router'\nexport * from './server'\nexport * from './css'\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["VERSION"],"mappings":"u5BAAO,IAAMA,CAAAA,CAAU","file":"index.mjs","sourcesContent":["export const VERSION = '0.17.2' // Bump version to signify rebuild\n\n// Re-export all from submodules\nexport * from './core'\nexport * from './dom'\nexport * from './router'\nexport * from './server'\nexport * from './css'\n"]}
@@ -1 +1 @@
1
- {"inputs":{"src/core/lifecycle.ts":{"bytes":2686,"imports":[],"format":"esm"},"src/core/reactive.ts":{"bytes":2080,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"}],"format":"esm"},"src/core/hook.ts":{"bytes":986,"imports":[],"format":"esm"},"src/core/devtools.ts":{"bytes":1841,"imports":[],"format":"esm"},"src/core/useable.ts":{"bytes":2083,"imports":[],"format":"esm"},"src/core/context.ts":{"bytes":2473,"imports":[{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/use.ts":{"bytes":8860,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"},{"path":"src/core/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"./context","kind":"import-statement","external":true},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/ref.ts":{"bytes":812,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"}],"format":"esm"},"src/core/index.ts":{"bytes":525,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"./use"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/ref.ts","kind":"import-statement","original":"./ref"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"}],"format":"esm"},"src/dom/f.ts":{"bytes":285,"imports":[],"format":"esm"},"src/dom/render.ts":{"bytes":16509,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"}],"format":"esm"},"src/dom/hydrate.ts":{"bytes":10437,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/render.ts","kind":"dynamic-import","original":"./render"}],"format":"esm"},"src/dom/components/suspenseContext.ts":{"bytes":412,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"}],"format":"esm"},"src/dom/components/Suspense.tsx":{"bytes":1770,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/ErrorBoundary.tsx":{"bytes":2854,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"}],"format":"esm"},"src/dom/components/lazy.ts":{"bytes":1767,"imports":[{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/index.ts":{"bytes":549,"imports":[{"path":"src/dom/components/Suspense.tsx","kind":"import-statement","original":"./Suspense"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/dom/components/lazy.ts","kind":"import-statement","original":"./lazy"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"}],"format":"esm"},"src/dom/index.ts":{"bytes":361,"imports":[{"path":"src/dom/f.ts","kind":"import-statement","original":"./f"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/hydrate.ts","kind":"import-statement","original":"./hydrate"},{"path":"src/dom/components/index.ts","kind":"import-statement","original":"./components"}],"format":"esm"},"src/router/types.ts":{"bytes":845,"imports":[],"format":"esm"},"src/router/utils.ts":{"bytes":3833,"imports":[{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/router.ts":{"bytes":4811,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"../core/reactive"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../core/use"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/jsx-runtime.ts":{"bytes":1053,"imports":[],"format":"esm"},"src/router/dom/Route.tsx":{"bytes":106,"imports":[],"format":"esm"},"src/router/dom/Routes.tsx":{"bytes":3343,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"},{"path":"src/router/utils.ts","kind":"import-statement","original":"../utils"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./Route"}],"format":"esm"},"src/router/dom/Outlet.tsx":{"bytes":744,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/dom/Link.tsx":{"bytes":748,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/index.ts":{"bytes":335,"imports":[{"path":"src/router/types.ts","kind":"import-statement","original":"./types"},{"path":"src/router/router.ts","kind":"import-statement","original":"./router"},{"path":"src/router/dom/Routes.tsx","kind":"import-statement","original":"./dom/Routes"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./dom/Route"},{"path":"src/router/dom/Outlet.tsx","kind":"import-statement","original":"./dom/Outlet"},{"path":"src/router/dom/Link.tsx","kind":"import-statement","original":"./dom/Link"}],"format":"esm"},"src/server/escape.ts":{"bytes":364,"imports":[],"format":"esm"},"src/server/serverState.ts":{"bytes":896,"imports":[],"format":"esm"},"src/server/renderToString.ts":{"bytes":6572,"imports":[{"path":"src/server/escape.ts","kind":"import-statement","original":"./escape"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"}],"format":"esm"},"src/server/index.ts":{"bytes":243,"imports":[{"path":"src/server/renderToString.ts","kind":"import-statement","original":"./renderToString"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"}],"format":"esm"},"src/css/runtime/hash.ts":{"bytes":290,"imports":[],"format":"esm"},"src/css/runtime/serialize.ts":{"bytes":2900,"imports":[],"format":"esm"},"src/css/runtime/sheet.ts":{"bytes":2860,"imports":[],"format":"esm"},"src/css/css.ts":{"bytes":1214,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/styled.ts":{"bytes":5571,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/css/keyframes.ts":{"bytes":1005,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/index.ts":{"bytes":1086,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"},{"path":"src/css/styled.ts","kind":"import-statement","original":"./styled"},{"path":"src/css/keyframes.ts","kind":"import-statement","original":"./keyframes"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/dom/index.ts","kind":"import-statement","original":"./dom"},{"path":"src/router/index.ts","kind":"import-statement","original":"./router"},{"path":"src/server/index.ts","kind":"import-statement","original":"./server"},{"path":"src/css/index.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/jsx-dev-runtime.ts":{"bytes":211,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"./jsx-runtime"}],"format":"esm"}},"outputs":{"dist/render-DQ5Y7FXE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/render-DQ5Y7FXE.js":{"imports":[{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["reconcile","render","renderNode","resetRender"],"entryPoint":"src/dom/render.ts","inputs":{},"bytes":166},"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":364},"dist/index.js":{"imports":[{"path":"dist/chunk-AD2E2FQE.js","kind":"import-statement"},{"path":"dist/chunk-2AJX574G.js","kind":"import-statement"},{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-A4VGFEMF.js","kind":"import-statement"},{"path":"dist/chunk-BPOTNK2J.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/chunk-ZJZRDYA2.js","kind":"import-statement"},{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Context","ErrorBoundary","Link","Outlet","Route","Routes","Suspense","Useable","VERSION","css","cx","f","getContextValue","getIsServer","getNavigate","getStyleTag","getStyles","hydrate","hydrateStyles","isReactive","isUseable","keyframes","lazy","popContext","pushContext","render","renderToStaticMarkup","renderToString","resetContext","resetRender","resetRouter","resetStyles","styled","sync","use","useLocation","useNavigate","useParams","useQuery","useRef","useRouter"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":15}},"bytes":1216},"dist/core.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/core.js":{"imports":[{"path":"dist/chunk-AD2E2FQE.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["Context","Useable","getContextValue","isReactive","isUseable","popContext","pushContext","resetContext","sync","use","useRef"],"entryPoint":"src/core/index.ts","inputs":{},"bytes":338},"dist/chunk-AD2E2FQE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1066},"dist/chunk-AD2E2FQE.js":{"imports":[{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a"],"inputs":{"src/core/index.ts":{"bytesInOutput":0},"src/core/ref.ts":{"bytesInOutput":42}},"bytes":98},"dist/dom.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/dom.js":{"imports":[{"path":"dist/chunk-2AJX574G.js","kind":"import-statement"},{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["ErrorBoundary","Suspense","f","hydrate","lazy","render","resetRender"],"entryPoint":"src/dom/index.ts","inputs":{},"bytes":295},"dist/chunk-2AJX574G.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":26910},"dist/chunk-2AJX574G.js":{"imports":[{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/render-DQ5Y7FXE.js","kind":"dynamic-import"}],"exports":["a","b","c","d","e"],"inputs":{"src/dom/f.ts":{"bytesInOutput":70},"src/dom/index.ts":{"bytesInOutput":0},"src/dom/hydrate.ts":{"bytesInOutput":3135},"src/dom/components/suspenseContext.ts":{"bytesInOutput":86},"src/dom/components/Suspense.tsx":{"bytesInOutput":293},"src/dom/components/index.ts":{"bytesInOutput":0},"src/dom/components/ErrorBoundary.tsx":{"bytesInOutput":508},"src/dom/components/lazy.ts":{"bytesInOutput":249}},"bytes":4580},"dist/chunk-GLMD343V.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":25763},"dist/chunk-GLMD343V.js":{"imports":[{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a","b","c","d"],"inputs":{"src/dom/render.ts":{"bytesInOutput":5094}},"bytes":5218},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/server.js":{"imports":[{"path":"dist/chunk-A4VGFEMF.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["getIsServer","renderToStaticMarkup","renderToString"],"entryPoint":"src/server/index.ts","inputs":{},"bytes":139},"dist/chunk-A4VGFEMF.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12945},"dist/chunk-A4VGFEMF.js":{"imports":[{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/server/escape.ts":{"bytesInOutput":157},"src/server/serverState.ts":{"bytesInOutput":186},"src/server/renderToString.ts":{"bytesInOutput":2125},"src/server/index.ts":{"bytesInOutput":0}},"bytes":2552},"dist/router.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/router.js":{"imports":[{"path":"dist/chunk-BPOTNK2J.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Link","Outlet","Route","Routes","getNavigate","resetRouter","useLocation","useNavigate","useParams","useQuery","useRouter"],"entryPoint":"src/router/index.ts","inputs":{},"bytes":333},"dist/chunk-BPOTNK2J.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":21258},"dist/chunk-BPOTNK2J.js":{"imports":[{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k"],"inputs":{"src/router/index.ts":{"bytesInOutput":0},"src/router/utils.ts":{"bytesInOutput":1097},"src/router/router.ts":{"bytesInOutput":1365},"src/router/dom/Route.tsx":{"bytesInOutput":26},"src/router/dom/Routes.tsx":{"bytesInOutput":787},"src/router/dom/Outlet.tsx":{"bytesInOutput":244},"src/router/dom/Link.tsx":{"bytesInOutput":225}},"bytes":3952},"dist/chunk-BP5PDE6F.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":19014},"dist/chunk-BP5PDE6F.js":{"imports":[{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/core/reactive.ts":{"bytesInOutput":590},"src/core/devtools.ts":{"bytesInOutput":372},"src/core/use.ts":{"bytesInOutput":2119}},"bytes":3219},"dist/chunk-3CKIHQIE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":4599},"dist/chunk-3CKIHQIE.js":{"imports":[],"exports":["a","b","c","d","e"],"inputs":{"src/core/lifecycle.ts":{"bytesInOutput":813}},"bytes":857},"dist/chunk-OU6XJZ76.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":7505},"dist/chunk-OU6XJZ76.js":{"imports":[],"exports":["a","b","c","d","e","f","g","h","i"],"inputs":{"src/core/hook.ts":{"bytesInOutput":227},"src/core/useable.ts":{"bytesInOutput":151},"src/core/context.ts":{"bytesInOutput":424}},"bytes":874},"dist/css.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/css.js":{"imports":[{"path":"dist/chunk-ZJZRDYA2.js","kind":"import-statement"}],"exports":["css","cx","getStyleTag","getStyles","hydrateStyles","keyframes","resetStyles","styled"],"entryPoint":"src/css/index.ts","inputs":{},"bytes":170},"dist/chunk-ZJZRDYA2.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":20385},"dist/chunk-ZJZRDYA2.js":{"imports":[],"exports":["a","b","c","d","e","f","g","h"],"inputs":{"src/css/runtime/hash.ts":{"bytesInOutput":112},"src/css/runtime/serialize.ts":{"bytesInOutput":1199},"src/css/runtime/sheet.ts":{"bytesInOutput":892},"src/css/css.ts":{"bytesInOutput":147},"src/css/index.ts":{"bytesInOutput":0},"src/css/styled.ts":{"bytesInOutput":777},"src/css/keyframes.ts":{"bytesInOutput":91}},"bytes":3283},"dist/jsx-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-runtime.js":{"imports":[{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Fragment","jsx","jsxDEV","jsxs"],"entryPoint":"src/jsx-runtime.ts","inputs":{},"bytes":95},"dist/jsx-dev-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":510},"dist/jsx-dev-runtime.js":{"imports":[{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Fragment","jsxDEV"],"entryPoint":"src/jsx-dev-runtime.ts","inputs":{"src/jsx-dev-runtime.ts":{"bytesInOutput":40}},"bytes":122},"dist/chunk-KXZRGDXD.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1767},"dist/chunk-KXZRGDXD.js":{"imports":[],"exports":["a","b","c","d"],"inputs":{"src/jsx-runtime.ts":{"bytesInOutput":240}},"bytes":277}}}
1
+ {"inputs":{"src/core/lifecycle.ts":{"bytes":2686,"imports":[],"format":"esm"},"src/core/reactive.ts":{"bytes":2080,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"}],"format":"esm"},"src/core/hook.ts":{"bytes":986,"imports":[],"format":"esm"},"src/core/devtools.ts":{"bytes":1841,"imports":[],"format":"esm"},"src/core/useable.ts":{"bytes":2083,"imports":[],"format":"esm"},"src/core/context.ts":{"bytes":2473,"imports":[{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/use.ts":{"bytes":8860,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"},{"path":"src/core/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"./context","kind":"import-statement","external":true},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/ref.ts":{"bytes":812,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"}],"format":"esm"},"src/core/index.ts":{"bytes":525,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"./use"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/ref.ts","kind":"import-statement","original":"./ref"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"}],"format":"esm"},"src/dom/f.ts":{"bytes":285,"imports":[],"format":"esm"},"src/dom/render.ts":{"bytes":16509,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"}],"format":"esm"},"src/dom/hydrate.ts":{"bytes":10351,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/render.ts","kind":"dynamic-import","original":"./render"}],"format":"esm"},"src/dom/components/suspenseContext.ts":{"bytes":412,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"}],"format":"esm"},"src/dom/components/Suspense.tsx":{"bytes":1770,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/ErrorBoundary.tsx":{"bytes":2854,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"}],"format":"esm"},"src/dom/components/lazy.ts":{"bytes":1767,"imports":[{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/index.ts":{"bytes":549,"imports":[{"path":"src/dom/components/Suspense.tsx","kind":"import-statement","original":"./Suspense"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/dom/components/lazy.ts","kind":"import-statement","original":"./lazy"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"}],"format":"esm"},"src/dom/index.ts":{"bytes":361,"imports":[{"path":"src/dom/f.ts","kind":"import-statement","original":"./f"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/hydrate.ts","kind":"import-statement","original":"./hydrate"},{"path":"src/dom/components/index.ts","kind":"import-statement","original":"./components"}],"format":"esm"},"src/router/types.ts":{"bytes":845,"imports":[],"format":"esm"},"src/router/utils.ts":{"bytes":3833,"imports":[{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/router.ts":{"bytes":4489,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"../core/reactive"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../core/use"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/jsx-runtime.ts":{"bytes":1053,"imports":[],"format":"esm"},"src/router/dom/Route.tsx":{"bytes":106,"imports":[],"format":"esm"},"src/router/dom/Routes.tsx":{"bytes":3343,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"},{"path":"src/router/utils.ts","kind":"import-statement","original":"../utils"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./Route"}],"format":"esm"},"src/router/dom/Outlet.tsx":{"bytes":744,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/dom/Link.tsx":{"bytes":697,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/index.ts":{"bytes":335,"imports":[{"path":"src/router/types.ts","kind":"import-statement","original":"./types"},{"path":"src/router/router.ts","kind":"import-statement","original":"./router"},{"path":"src/router/dom/Routes.tsx","kind":"import-statement","original":"./dom/Routes"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./dom/Route"},{"path":"src/router/dom/Outlet.tsx","kind":"import-statement","original":"./dom/Outlet"},{"path":"src/router/dom/Link.tsx","kind":"import-statement","original":"./dom/Link"}],"format":"esm"},"src/server/escape.ts":{"bytes":364,"imports":[],"format":"esm"},"src/server/serverState.ts":{"bytes":896,"imports":[],"format":"esm"},"src/server/renderToString.ts":{"bytes":6572,"imports":[{"path":"src/server/escape.ts","kind":"import-statement","original":"./escape"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"}],"format":"esm"},"src/server/index.ts":{"bytes":243,"imports":[{"path":"src/server/renderToString.ts","kind":"import-statement","original":"./renderToString"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"}],"format":"esm"},"src/css/runtime/hash.ts":{"bytes":290,"imports":[],"format":"esm"},"src/css/runtime/serialize.ts":{"bytes":2900,"imports":[],"format":"esm"},"src/css/runtime/sheet.ts":{"bytes":2718,"imports":[],"format":"esm"},"src/css/css.ts":{"bytes":1214,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/styled.ts":{"bytes":5571,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/css/keyframes.ts":{"bytes":1005,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/index.ts":{"bytes":1086,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"},{"path":"src/css/styled.ts","kind":"import-statement","original":"./styled"},{"path":"src/css/keyframes.ts","kind":"import-statement","original":"./keyframes"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/dom/index.ts","kind":"import-statement","original":"./dom"},{"path":"src/router/index.ts","kind":"import-statement","original":"./router"},{"path":"src/server/index.ts","kind":"import-statement","original":"./server"},{"path":"src/css/index.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/jsx-dev-runtime.ts":{"bytes":211,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"./jsx-runtime"}],"format":"esm"}},"outputs":{"dist/render-DQ5Y7FXE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/render-DQ5Y7FXE.js":{"imports":[{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["reconcile","render","renderNode","resetRender"],"entryPoint":"src/dom/render.ts","inputs":{},"bytes":166},"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":364},"dist/index.js":{"imports":[{"path":"dist/chunk-AD2E2FQE.js","kind":"import-statement"},{"path":"dist/chunk-F5JCZFHX.js","kind":"import-statement"},{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-A4VGFEMF.js","kind":"import-statement"},{"path":"dist/chunk-SMVFW7HP.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/chunk-C6ATNBIE.js","kind":"import-statement"},{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Context","ErrorBoundary","Link","Outlet","Route","Routes","Suspense","Useable","VERSION","css","cx","f","getContextValue","getIsServer","getNavigate","getStyleTag","getStyles","hydrate","hydrateStyles","isReactive","isUseable","keyframes","lazy","popContext","pushContext","render","renderToStaticMarkup","renderToString","resetContext","resetRender","resetRouter","resetStyles","styled","sync","use","useLocation","useNavigate","useParams","useQuery","useRef","useRouter"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":15}},"bytes":1216},"dist/core.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/core.js":{"imports":[{"path":"dist/chunk-AD2E2FQE.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["Context","Useable","getContextValue","isReactive","isUseable","popContext","pushContext","resetContext","sync","use","useRef"],"entryPoint":"src/core/index.ts","inputs":{},"bytes":338},"dist/chunk-AD2E2FQE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1066},"dist/chunk-AD2E2FQE.js":{"imports":[{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a"],"inputs":{"src/core/index.ts":{"bytesInOutput":0},"src/core/ref.ts":{"bytesInOutput":42}},"bytes":98},"dist/dom.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/dom.js":{"imports":[{"path":"dist/chunk-F5JCZFHX.js","kind":"import-statement"},{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["ErrorBoundary","Suspense","f","hydrate","lazy","render","resetRender"],"entryPoint":"src/dom/index.ts","inputs":{},"bytes":295},"dist/chunk-F5JCZFHX.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":26794},"dist/chunk-F5JCZFHX.js":{"imports":[{"path":"dist/chunk-GLMD343V.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/render-DQ5Y7FXE.js","kind":"dynamic-import"}],"exports":["a","b","c","d","e"],"inputs":{"src/dom/f.ts":{"bytesInOutput":70},"src/dom/index.ts":{"bytesInOutput":0},"src/dom/hydrate.ts":{"bytesInOutput":3058},"src/dom/components/suspenseContext.ts":{"bytesInOutput":86},"src/dom/components/Suspense.tsx":{"bytesInOutput":293},"src/dom/components/index.ts":{"bytesInOutput":0},"src/dom/components/ErrorBoundary.tsx":{"bytesInOutput":508},"src/dom/components/lazy.ts":{"bytesInOutput":249}},"bytes":4503},"dist/chunk-GLMD343V.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":25763},"dist/chunk-GLMD343V.js":{"imports":[{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a","b","c","d"],"inputs":{"src/dom/render.ts":{"bytesInOutput":5094}},"bytes":5218},"dist/server.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/server.js":{"imports":[{"path":"dist/chunk-A4VGFEMF.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["getIsServer","renderToStaticMarkup","renderToString"],"entryPoint":"src/server/index.ts","inputs":{},"bytes":139},"dist/chunk-A4VGFEMF.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":12945},"dist/chunk-A4VGFEMF.js":{"imports":[{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/server/escape.ts":{"bytesInOutput":157},"src/server/serverState.ts":{"bytesInOutput":186},"src/server/renderToString.ts":{"bytesInOutput":2125},"src/server/index.ts":{"bytesInOutput":0}},"bytes":2552},"dist/router.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/router.js":{"imports":[{"path":"dist/chunk-SMVFW7HP.js","kind":"import-statement"},{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Link","Outlet","Route","Routes","getNavigate","resetRouter","useLocation","useNavigate","useParams","useQuery","useRouter"],"entryPoint":"src/router/index.ts","inputs":{},"bytes":333},"dist/chunk-SMVFW7HP.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":20697},"dist/chunk-SMVFW7HP.js":{"imports":[{"path":"dist/chunk-BP5PDE6F.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"},{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k"],"inputs":{"src/router/index.ts":{"bytesInOutput":0},"src/router/utils.ts":{"bytesInOutput":1097},"src/router/router.ts":{"bytesInOutput":1117},"src/router/dom/Route.tsx":{"bytesInOutput":26},"src/router/dom/Routes.tsx":{"bytesInOutput":787},"src/router/dom/Outlet.tsx":{"bytesInOutput":244},"src/router/dom/Link.tsx":{"bytesInOutput":191}},"bytes":3675},"dist/chunk-BP5PDE6F.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":19014},"dist/chunk-BP5PDE6F.js":{"imports":[{"path":"dist/chunk-3CKIHQIE.js","kind":"import-statement"},{"path":"dist/chunk-OU6XJZ76.js","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/core/reactive.ts":{"bytesInOutput":590},"src/core/devtools.ts":{"bytesInOutput":372},"src/core/use.ts":{"bytesInOutput":2119}},"bytes":3219},"dist/chunk-3CKIHQIE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":4599},"dist/chunk-3CKIHQIE.js":{"imports":[],"exports":["a","b","c","d","e"],"inputs":{"src/core/lifecycle.ts":{"bytesInOutput":813}},"bytes":857},"dist/chunk-OU6XJZ76.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":7505},"dist/chunk-OU6XJZ76.js":{"imports":[],"exports":["a","b","c","d","e","f","g","h","i"],"inputs":{"src/core/hook.ts":{"bytesInOutput":227},"src/core/useable.ts":{"bytesInOutput":151},"src/core/context.ts":{"bytesInOutput":424}},"bytes":874},"dist/css.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/css.js":{"imports":[{"path":"dist/chunk-C6ATNBIE.js","kind":"import-statement"}],"exports":["css","cx","getStyleTag","getStyles","hydrateStyles","keyframes","resetStyles","styled"],"entryPoint":"src/css/index.ts","inputs":{},"bytes":170},"dist/chunk-C6ATNBIE.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":20173},"dist/chunk-C6ATNBIE.js":{"imports":[],"exports":["a","b","c","d","e","f","g","h"],"inputs":{"src/css/runtime/hash.ts":{"bytesInOutput":112},"src/css/runtime/serialize.ts":{"bytesInOutput":1199},"src/css/runtime/sheet.ts":{"bytesInOutput":801},"src/css/css.ts":{"bytesInOutput":147},"src/css/index.ts":{"bytesInOutput":0},"src/css/styled.ts":{"bytesInOutput":777},"src/css/keyframes.ts":{"bytesInOutput":91}},"bytes":3192},"dist/jsx-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-runtime.js":{"imports":[{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Fragment","jsx","jsxDEV","jsxs"],"entryPoint":"src/jsx-runtime.ts","inputs":{},"bytes":95},"dist/jsx-dev-runtime.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":510},"dist/jsx-dev-runtime.js":{"imports":[{"path":"dist/chunk-KXZRGDXD.js","kind":"import-statement"}],"exports":["Fragment","jsxDEV"],"entryPoint":"src/jsx-dev-runtime.ts","inputs":{"src/jsx-dev-runtime.ts":{"bytesInOutput":40}},"bytes":122},"dist/chunk-KXZRGDXD.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":1767},"dist/chunk-KXZRGDXD.js":{"imports":[],"exports":["a","b","c","d"],"inputs":{"src/jsx-runtime.ts":{"bytesInOutput":240}},"bytes":277}}}
@@ -1 +1 @@
1
- {"inputs":{"src/core/lifecycle.ts":{"bytes":2686,"imports":[],"format":"esm"},"src/core/reactive.ts":{"bytes":2080,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"}],"format":"esm"},"src/core/hook.ts":{"bytes":986,"imports":[],"format":"esm"},"src/core/devtools.ts":{"bytes":1841,"imports":[],"format":"esm"},"src/core/useable.ts":{"bytes":2083,"imports":[],"format":"esm"},"src/core/context.ts":{"bytes":2473,"imports":[{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/use.ts":{"bytes":8860,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"},{"path":"src/core/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"./context","kind":"import-statement","external":true},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/ref.ts":{"bytes":812,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"}],"format":"esm"},"src/core/index.ts":{"bytes":525,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"./use"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/ref.ts","kind":"import-statement","original":"./ref"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"}],"format":"esm"},"src/dom/f.ts":{"bytes":285,"imports":[],"format":"esm"},"src/dom/render.ts":{"bytes":16509,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"}],"format":"esm"},"src/dom/hydrate.ts":{"bytes":10437,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/render.ts","kind":"dynamic-import","original":"./render"}],"format":"esm"},"src/dom/components/suspenseContext.ts":{"bytes":412,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"}],"format":"esm"},"src/dom/components/Suspense.tsx":{"bytes":1770,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/ErrorBoundary.tsx":{"bytes":2854,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"}],"format":"esm"},"src/dom/components/lazy.ts":{"bytes":1767,"imports":[{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/index.ts":{"bytes":549,"imports":[{"path":"src/dom/components/Suspense.tsx","kind":"import-statement","original":"./Suspense"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/dom/components/lazy.ts","kind":"import-statement","original":"./lazy"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"}],"format":"esm"},"src/dom/index.ts":{"bytes":361,"imports":[{"path":"src/dom/f.ts","kind":"import-statement","original":"./f"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/hydrate.ts","kind":"import-statement","original":"./hydrate"},{"path":"src/dom/components/index.ts","kind":"import-statement","original":"./components"}],"format":"esm"},"src/router/types.ts":{"bytes":845,"imports":[],"format":"esm"},"src/router/utils.ts":{"bytes":3833,"imports":[{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/router.ts":{"bytes":4811,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"../core/reactive"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../core/use"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/jsx-runtime.ts":{"bytes":1053,"imports":[],"format":"esm"},"src/router/dom/Route.tsx":{"bytes":106,"imports":[],"format":"esm"},"src/router/dom/Routes.tsx":{"bytes":3343,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"},{"path":"src/router/utils.ts","kind":"import-statement","original":"../utils"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./Route"}],"format":"esm"},"src/router/dom/Outlet.tsx":{"bytes":744,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/dom/Link.tsx":{"bytes":748,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/index.ts":{"bytes":335,"imports":[{"path":"src/router/types.ts","kind":"import-statement","original":"./types"},{"path":"src/router/router.ts","kind":"import-statement","original":"./router"},{"path":"src/router/dom/Routes.tsx","kind":"import-statement","original":"./dom/Routes"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./dom/Route"},{"path":"src/router/dom/Outlet.tsx","kind":"import-statement","original":"./dom/Outlet"},{"path":"src/router/dom/Link.tsx","kind":"import-statement","original":"./dom/Link"}],"format":"esm"},"src/server/escape.ts":{"bytes":364,"imports":[],"format":"esm"},"src/server/serverState.ts":{"bytes":896,"imports":[],"format":"esm"},"src/server/renderToString.ts":{"bytes":6572,"imports":[{"path":"src/server/escape.ts","kind":"import-statement","original":"./escape"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"}],"format":"esm"},"src/server/index.ts":{"bytes":243,"imports":[{"path":"src/server/renderToString.ts","kind":"import-statement","original":"./renderToString"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"}],"format":"esm"},"src/css/runtime/hash.ts":{"bytes":290,"imports":[],"format":"esm"},"src/css/runtime/serialize.ts":{"bytes":2900,"imports":[],"format":"esm"},"src/css/runtime/sheet.ts":{"bytes":2860,"imports":[],"format":"esm"},"src/css/css.ts":{"bytes":1214,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/styled.ts":{"bytes":5571,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/css/keyframes.ts":{"bytes":1005,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/index.ts":{"bytes":1086,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"},{"path":"src/css/styled.ts","kind":"import-statement","original":"./styled"},{"path":"src/css/keyframes.ts","kind":"import-statement","original":"./keyframes"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/dom/index.ts","kind":"import-statement","original":"./dom"},{"path":"src/router/index.ts","kind":"import-statement","original":"./router"},{"path":"src/server/index.ts","kind":"import-statement","original":"./server"},{"path":"src/css/index.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/jsx-dev-runtime.ts":{"bytes":211,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"./jsx-runtime"}],"format":"esm"}},"outputs":{"dist/render-EA3YGOX2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/render-EA3YGOX2.mjs":{"imports":[{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["reconcile","render","renderNode","resetRender"],"entryPoint":"src/dom/render.ts","inputs":{},"bytes":169},"dist/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":364},"dist/index.mjs":{"imports":[{"path":"dist/chunk-VB564E5E.mjs","kind":"import-statement"},{"path":"dist/chunk-73DADJFW.mjs","kind":"import-statement"},{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-UQNPGF7C.mjs","kind":"import-statement"},{"path":"dist/chunk-3VNZDZ4H.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/chunk-FU4W2BKL.mjs","kind":"import-statement"},{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Context","ErrorBoundary","Link","Outlet","Route","Routes","Suspense","Useable","VERSION","css","cx","f","getContextValue","getIsServer","getNavigate","getStyleTag","getStyles","hydrate","hydrateStyles","isReactive","isUseable","keyframes","lazy","popContext","pushContext","render","renderToStaticMarkup","renderToString","resetContext","resetRender","resetRouter","resetStyles","styled","sync","use","useLocation","useNavigate","useParams","useQuery","useRef","useRouter"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":15}},"bytes":1226},"dist/core.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/core.mjs":{"imports":[{"path":"dist/chunk-VB564E5E.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["Context","Useable","getContextValue","isReactive","isUseable","popContext","pushContext","resetContext","sync","use","useRef"],"entryPoint":"src/core/index.ts","inputs":{},"bytes":342},"dist/chunk-VB564E5E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1066},"dist/chunk-VB564E5E.mjs":{"imports":[{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a"],"inputs":{"src/core/index.ts":{"bytesInOutput":0},"src/core/ref.ts":{"bytesInOutput":42}},"bytes":99},"dist/dom.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/dom.mjs":{"imports":[{"path":"dist/chunk-73DADJFW.mjs","kind":"import-statement"},{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["ErrorBoundary","Suspense","f","hydrate","lazy","render","resetRender"],"entryPoint":"src/dom/index.ts","inputs":{},"bytes":300},"dist/chunk-73DADJFW.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":26910},"dist/chunk-73DADJFW.mjs":{"imports":[{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/render-EA3YGOX2.mjs","kind":"dynamic-import"}],"exports":["a","b","c","d","e"],"inputs":{"src/dom/f.ts":{"bytesInOutput":70},"src/dom/index.ts":{"bytesInOutput":0},"src/dom/hydrate.ts":{"bytesInOutput":3136},"src/dom/components/suspenseContext.ts":{"bytesInOutput":86},"src/dom/components/Suspense.tsx":{"bytesInOutput":293},"src/dom/components/index.ts":{"bytesInOutput":0},"src/dom/components/ErrorBoundary.tsx":{"bytesInOutput":508},"src/dom/components/lazy.ts":{"bytesInOutput":249}},"bytes":4585},"dist/chunk-MEJO2RIK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":25763},"dist/chunk-MEJO2RIK.mjs":{"imports":[{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a","b","c","d"],"inputs":{"src/dom/render.ts":{"bytesInOutput":5094}},"bytes":5220},"dist/server.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/server.mjs":{"imports":[{"path":"dist/chunk-UQNPGF7C.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["getIsServer","renderToStaticMarkup","renderToString"],"entryPoint":"src/server/index.ts","inputs":{},"bytes":141},"dist/chunk-UQNPGF7C.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12945},"dist/chunk-UQNPGF7C.mjs":{"imports":[{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/server/escape.ts":{"bytesInOutput":157},"src/server/serverState.ts":{"bytesInOutput":186},"src/server/renderToString.ts":{"bytesInOutput":2125},"src/server/index.ts":{"bytesInOutput":0}},"bytes":2553},"dist/router.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/router.mjs":{"imports":[{"path":"dist/chunk-3VNZDZ4H.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Link","Outlet","Route","Routes","getNavigate","resetRouter","useLocation","useNavigate","useParams","useQuery","useRouter"],"entryPoint":"src/router/index.ts","inputs":{},"bytes":338},"dist/chunk-3VNZDZ4H.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":21258},"dist/chunk-3VNZDZ4H.mjs":{"imports":[{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k"],"inputs":{"src/router/index.ts":{"bytesInOutput":0},"src/router/utils.ts":{"bytesInOutput":1097},"src/router/router.ts":{"bytesInOutput":1365},"src/router/dom/Route.tsx":{"bytesInOutput":26},"src/router/dom/Routes.tsx":{"bytesInOutput":787},"src/router/dom/Outlet.tsx":{"bytesInOutput":244},"src/router/dom/Link.tsx":{"bytesInOutput":225}},"bytes":3955},"dist/chunk-FJNIW7B2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19014},"dist/chunk-FJNIW7B2.mjs":{"imports":[{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/core/reactive.ts":{"bytesInOutput":590},"src/core/devtools.ts":{"bytesInOutput":372},"src/core/use.ts":{"bytesInOutput":2119}},"bytes":3221},"dist/chunk-NRPWBHKP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4599},"dist/chunk-NRPWBHKP.mjs":{"imports":[],"exports":["a","b","c","d","e"],"inputs":{"src/core/lifecycle.ts":{"bytesInOutput":813}},"bytes":857},"dist/chunk-TIUNOZRI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7505},"dist/chunk-TIUNOZRI.mjs":{"imports":[],"exports":["a","b","c","d","e","f","g","h","i"],"inputs":{"src/core/hook.ts":{"bytesInOutput":227},"src/core/useable.ts":{"bytesInOutput":151},"src/core/context.ts":{"bytesInOutput":424}},"bytes":874},"dist/css.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/css.mjs":{"imports":[{"path":"dist/chunk-FU4W2BKL.mjs","kind":"import-statement"}],"exports":["css","cx","getStyleTag","getStyles","hydrateStyles","keyframes","resetStyles","styled"],"entryPoint":"src/css/index.ts","inputs":{},"bytes":171},"dist/chunk-FU4W2BKL.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20385},"dist/chunk-FU4W2BKL.mjs":{"imports":[],"exports":["a","b","c","d","e","f","g","h"],"inputs":{"src/css/runtime/hash.ts":{"bytesInOutput":112},"src/css/runtime/serialize.ts":{"bytesInOutput":1199},"src/css/runtime/sheet.ts":{"bytesInOutput":892},"src/css/css.ts":{"bytesInOutput":147},"src/css/index.ts":{"bytesInOutput":0},"src/css/styled.ts":{"bytesInOutput":777},"src/css/keyframes.ts":{"bytesInOutput":91}},"bytes":3283},"dist/jsx-runtime.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-runtime.mjs":{"imports":[{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Fragment","jsx","jsxDEV","jsxs"],"entryPoint":"src/jsx-runtime.ts","inputs":{},"bytes":96},"dist/jsx-dev-runtime.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":510},"dist/jsx-dev-runtime.mjs":{"imports":[{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Fragment","jsxDEV"],"entryPoint":"src/jsx-dev-runtime.ts","inputs":{"src/jsx-dev-runtime.ts":{"bytesInOutput":40}},"bytes":123},"dist/chunk-YFZ7ODX2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1767},"dist/chunk-YFZ7ODX2.mjs":{"imports":[],"exports":["a","b","c","d"],"inputs":{"src/jsx-runtime.ts":{"bytesInOutput":240}},"bytes":277}}}
1
+ {"inputs":{"src/core/lifecycle.ts":{"bytes":2686,"imports":[],"format":"esm"},"src/core/reactive.ts":{"bytes":2080,"imports":[{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"}],"format":"esm"},"src/core/hook.ts":{"bytes":986,"imports":[],"format":"esm"},"src/core/devtools.ts":{"bytes":1841,"imports":[],"format":"esm"},"src/core/useable.ts":{"bytes":2083,"imports":[],"format":"esm"},"src/core/context.ts":{"bytes":2473,"imports":[{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/use.ts":{"bytes":8860,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"},{"path":"src/core/devtools.ts","kind":"import-statement","original":"./devtools"},{"path":"./context","kind":"import-statement","external":true},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"}],"format":"esm"},"src/core/ref.ts":{"bytes":812,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"./hook"}],"format":"esm"},"src/core/index.ts":{"bytes":525,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"./use"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"./lifecycle"},{"path":"src/core/ref.ts","kind":"import-statement","original":"./ref"},{"path":"src/core/useable.ts","kind":"import-statement","original":"./useable"},{"path":"src/core/context.ts","kind":"import-statement","original":"./context"},{"path":"src/core/reactive.ts","kind":"import-statement","original":"./reactive"}],"format":"esm"},"src/dom/f.ts":{"bytes":285,"imports":[],"format":"esm"},"src/dom/render.ts":{"bytes":16509,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"}],"format":"esm"},"src/dom/hydrate.ts":{"bytes":10351,"imports":[{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/lifecycle.ts","kind":"import-statement","original":"../core/lifecycle"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/render.ts","kind":"dynamic-import","original":"./render"}],"format":"esm"},"src/dom/components/suspenseContext.ts":{"bytes":412,"imports":[{"path":"src/core/context.ts","kind":"import-statement","original":"../../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"}],"format":"esm"},"src/dom/components/Suspense.tsx":{"bytes":1770,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/ErrorBoundary.tsx":{"bytes":2854,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../../core/hook"}],"format":"esm"},"src/dom/components/lazy.ts":{"bytes":1767,"imports":[{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"}],"format":"esm"},"src/dom/components/index.ts":{"bytes":549,"imports":[{"path":"src/dom/components/Suspense.tsx","kind":"import-statement","original":"./Suspense"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"},{"path":"src/dom/components/lazy.ts","kind":"import-statement","original":"./lazy"},{"path":"src/dom/components/suspenseContext.ts","kind":"import-statement","original":"./suspenseContext"},{"path":"src/dom/components/ErrorBoundary.tsx","kind":"import-statement","original":"./ErrorBoundary"}],"format":"esm"},"src/dom/index.ts":{"bytes":361,"imports":[{"path":"src/dom/f.ts","kind":"import-statement","original":"./f"},{"path":"src/dom/render.ts","kind":"import-statement","original":"./render"},{"path":"src/dom/hydrate.ts","kind":"import-statement","original":"./hydrate"},{"path":"src/dom/components/index.ts","kind":"import-statement","original":"./components"}],"format":"esm"},"src/router/types.ts":{"bytes":845,"imports":[],"format":"esm"},"src/router/utils.ts":{"bytes":3833,"imports":[{"path":"./types","kind":"import-statement","external":true}],"format":"esm"},"src/router/router.ts":{"bytes":4489,"imports":[{"path":"src/core/reactive.ts","kind":"import-statement","original":"../core/reactive"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"},{"path":"src/core/use.ts","kind":"import-statement","original":"../core/use"},{"path":"src/router/utils.ts","kind":"import-statement","original":"./utils"}],"format":"esm"},"src/jsx-runtime.ts":{"bytes":1053,"imports":[],"format":"esm"},"src/router/dom/Route.tsx":{"bytes":106,"imports":[],"format":"esm"},"src/router/dom/Routes.tsx":{"bytes":3343,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"},{"path":"src/router/utils.ts","kind":"import-statement","original":"../utils"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./Route"}],"format":"esm"},"src/router/dom/Outlet.tsx":{"bytes":744,"imports":[{"path":"src/core/use.ts","kind":"import-statement","original":"../../core/use"},{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/dom/Link.tsx":{"bytes":697,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"../../jsx-runtime"},{"path":"src/router/router.ts","kind":"import-statement","original":"../router"}],"format":"esm"},"src/router/index.ts":{"bytes":335,"imports":[{"path":"src/router/types.ts","kind":"import-statement","original":"./types"},{"path":"src/router/router.ts","kind":"import-statement","original":"./router"},{"path":"src/router/dom/Routes.tsx","kind":"import-statement","original":"./dom/Routes"},{"path":"src/router/dom/Route.tsx","kind":"import-statement","original":"./dom/Route"},{"path":"src/router/dom/Outlet.tsx","kind":"import-statement","original":"./dom/Outlet"},{"path":"src/router/dom/Link.tsx","kind":"import-statement","original":"./dom/Link"}],"format":"esm"},"src/server/escape.ts":{"bytes":364,"imports":[],"format":"esm"},"src/server/serverState.ts":{"bytes":896,"imports":[],"format":"esm"},"src/server/renderToString.ts":{"bytes":6572,"imports":[{"path":"src/server/escape.ts","kind":"import-statement","original":"./escape"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"},{"path":"src/core/hook.ts","kind":"import-statement","original":"../core/hook"},{"path":"src/core/context.ts","kind":"import-statement","original":"../core/context"}],"format":"esm"},"src/server/index.ts":{"bytes":243,"imports":[{"path":"src/server/renderToString.ts","kind":"import-statement","original":"./renderToString"},{"path":"src/server/serverState.ts","kind":"import-statement","original":"./serverState"}],"format":"esm"},"src/css/runtime/hash.ts":{"bytes":290,"imports":[],"format":"esm"},"src/css/runtime/serialize.ts":{"bytes":2900,"imports":[],"format":"esm"},"src/css/runtime/sheet.ts":{"bytes":2718,"imports":[],"format":"esm"},"src/css/css.ts":{"bytes":1214,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/styled.ts":{"bytes":5571,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/css/keyframes.ts":{"bytes":1005,"imports":[{"path":"src/css/runtime/hash.ts","kind":"import-statement","original":"./runtime/hash"},{"path":"src/css/runtime/serialize.ts","kind":"import-statement","original":"./runtime/serialize"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/css/index.ts":{"bytes":1086,"imports":[{"path":"src/css/css.ts","kind":"import-statement","original":"./css"},{"path":"src/css/styled.ts","kind":"import-statement","original":"./styled"},{"path":"src/css/keyframes.ts","kind":"import-statement","original":"./keyframes"},{"path":"src/css/runtime/sheet.ts","kind":"import-statement","original":"./runtime/sheet"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/core/index.ts","kind":"import-statement","original":"./core"},{"path":"src/dom/index.ts","kind":"import-statement","original":"./dom"},{"path":"src/router/index.ts","kind":"import-statement","original":"./router"},{"path":"src/server/index.ts","kind":"import-statement","original":"./server"},{"path":"src/css/index.ts","kind":"import-statement","original":"./css"}],"format":"esm"},"src/jsx-dev-runtime.ts":{"bytes":211,"imports":[{"path":"src/jsx-runtime.ts","kind":"import-statement","original":"./jsx-runtime"}],"format":"esm"}},"outputs":{"dist/render-EA3YGOX2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/render-EA3YGOX2.mjs":{"imports":[{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["reconcile","render","renderNode","resetRender"],"entryPoint":"src/dom/render.ts","inputs":{},"bytes":169},"dist/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":364},"dist/index.mjs":{"imports":[{"path":"dist/chunk-VB564E5E.mjs","kind":"import-statement"},{"path":"dist/chunk-GHXGQFTP.mjs","kind":"import-statement"},{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-UQNPGF7C.mjs","kind":"import-statement"},{"path":"dist/chunk-XQZNYJCD.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/chunk-I6X66M5T.mjs","kind":"import-statement"},{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Context","ErrorBoundary","Link","Outlet","Route","Routes","Suspense","Useable","VERSION","css","cx","f","getContextValue","getIsServer","getNavigate","getStyleTag","getStyles","hydrate","hydrateStyles","isReactive","isUseable","keyframes","lazy","popContext","pushContext","render","renderToStaticMarkup","renderToString","resetContext","resetRender","resetRouter","resetStyles","styled","sync","use","useLocation","useNavigate","useParams","useQuery","useRef","useRouter"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":15}},"bytes":1226},"dist/core.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/core.mjs":{"imports":[{"path":"dist/chunk-VB564E5E.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["Context","Useable","getContextValue","isReactive","isUseable","popContext","pushContext","resetContext","sync","use","useRef"],"entryPoint":"src/core/index.ts","inputs":{},"bytes":342},"dist/chunk-VB564E5E.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1066},"dist/chunk-VB564E5E.mjs":{"imports":[{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a"],"inputs":{"src/core/index.ts":{"bytesInOutput":0},"src/core/ref.ts":{"bytesInOutput":42}},"bytes":99},"dist/dom.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/dom.mjs":{"imports":[{"path":"dist/chunk-GHXGQFTP.mjs","kind":"import-statement"},{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["ErrorBoundary","Suspense","f","hydrate","lazy","render","resetRender"],"entryPoint":"src/dom/index.ts","inputs":{},"bytes":300},"dist/chunk-GHXGQFTP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":26794},"dist/chunk-GHXGQFTP.mjs":{"imports":[{"path":"dist/chunk-MEJO2RIK.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/render-EA3YGOX2.mjs","kind":"dynamic-import"}],"exports":["a","b","c","d","e"],"inputs":{"src/dom/f.ts":{"bytesInOutput":70},"src/dom/index.ts":{"bytesInOutput":0},"src/dom/hydrate.ts":{"bytesInOutput":3059},"src/dom/components/suspenseContext.ts":{"bytesInOutput":86},"src/dom/components/Suspense.tsx":{"bytesInOutput":293},"src/dom/components/index.ts":{"bytesInOutput":0},"src/dom/components/ErrorBoundary.tsx":{"bytesInOutput":508},"src/dom/components/lazy.ts":{"bytesInOutput":249}},"bytes":4508},"dist/chunk-MEJO2RIK.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":25763},"dist/chunk-MEJO2RIK.mjs":{"imports":[{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a","b","c","d"],"inputs":{"src/dom/render.ts":{"bytesInOutput":5094}},"bytes":5220},"dist/server.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/server.mjs":{"imports":[{"path":"dist/chunk-UQNPGF7C.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["getIsServer","renderToStaticMarkup","renderToString"],"entryPoint":"src/server/index.ts","inputs":{},"bytes":141},"dist/chunk-UQNPGF7C.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":12945},"dist/chunk-UQNPGF7C.mjs":{"imports":[{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/server/escape.ts":{"bytesInOutput":157},"src/server/serverState.ts":{"bytesInOutput":186},"src/server/renderToString.ts":{"bytesInOutput":2125},"src/server/index.ts":{"bytesInOutput":0}},"bytes":2553},"dist/router.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/router.mjs":{"imports":[{"path":"dist/chunk-XQZNYJCD.mjs","kind":"import-statement"},{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Link","Outlet","Route","Routes","getNavigate","resetRouter","useLocation","useNavigate","useParams","useQuery","useRouter"],"entryPoint":"src/router/index.ts","inputs":{},"bytes":338},"dist/chunk-XQZNYJCD.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20697},"dist/chunk-XQZNYJCD.mjs":{"imports":[{"path":"dist/chunk-FJNIW7B2.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"},{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["a","b","c","d","e","f","g","h","i","j","k"],"inputs":{"src/router/index.ts":{"bytesInOutput":0},"src/router/utils.ts":{"bytesInOutput":1097},"src/router/router.ts":{"bytesInOutput":1117},"src/router/dom/Route.tsx":{"bytesInOutput":26},"src/router/dom/Routes.tsx":{"bytesInOutput":787},"src/router/dom/Outlet.tsx":{"bytesInOutput":244},"src/router/dom/Link.tsx":{"bytesInOutput":191}},"bytes":3678},"dist/chunk-FJNIW7B2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":19014},"dist/chunk-FJNIW7B2.mjs":{"imports":[{"path":"dist/chunk-NRPWBHKP.mjs","kind":"import-statement"},{"path":"dist/chunk-TIUNOZRI.mjs","kind":"import-statement"}],"exports":["a","b","c"],"inputs":{"src/core/reactive.ts":{"bytesInOutput":590},"src/core/devtools.ts":{"bytesInOutput":372},"src/core/use.ts":{"bytesInOutput":2119}},"bytes":3221},"dist/chunk-NRPWBHKP.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4599},"dist/chunk-NRPWBHKP.mjs":{"imports":[],"exports":["a","b","c","d","e"],"inputs":{"src/core/lifecycle.ts":{"bytesInOutput":813}},"bytes":857},"dist/chunk-TIUNOZRI.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7505},"dist/chunk-TIUNOZRI.mjs":{"imports":[],"exports":["a","b","c","d","e","f","g","h","i"],"inputs":{"src/core/hook.ts":{"bytesInOutput":227},"src/core/useable.ts":{"bytesInOutput":151},"src/core/context.ts":{"bytesInOutput":424}},"bytes":874},"dist/css.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/css.mjs":{"imports":[{"path":"dist/chunk-I6X66M5T.mjs","kind":"import-statement"}],"exports":["css","cx","getStyleTag","getStyles","hydrateStyles","keyframes","resetStyles","styled"],"entryPoint":"src/css/index.ts","inputs":{},"bytes":171},"dist/chunk-I6X66M5T.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":20173},"dist/chunk-I6X66M5T.mjs":{"imports":[],"exports":["a","b","c","d","e","f","g","h"],"inputs":{"src/css/runtime/hash.ts":{"bytesInOutput":112},"src/css/runtime/serialize.ts":{"bytesInOutput":1199},"src/css/runtime/sheet.ts":{"bytesInOutput":801},"src/css/css.ts":{"bytesInOutput":147},"src/css/index.ts":{"bytesInOutput":0},"src/css/styled.ts":{"bytesInOutput":777},"src/css/keyframes.ts":{"bytesInOutput":91}},"bytes":3192},"dist/jsx-runtime.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/jsx-runtime.mjs":{"imports":[{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Fragment","jsx","jsxDEV","jsxs"],"entryPoint":"src/jsx-runtime.ts","inputs":{},"bytes":96},"dist/jsx-dev-runtime.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":510},"dist/jsx-dev-runtime.mjs":{"imports":[{"path":"dist/chunk-YFZ7ODX2.mjs","kind":"import-statement"}],"exports":["Fragment","jsxDEV"],"entryPoint":"src/jsx-dev-runtime.ts","inputs":{"src/jsx-dev-runtime.ts":{"bytesInOutput":40}},"bytes":123},"dist/chunk-YFZ7ODX2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1767},"dist/chunk-YFZ7ODX2.mjs":{"imports":[],"exports":["a","b","c","d"],"inputs":{"src/jsx-runtime.ts":{"bytesInOutput":240}},"bytes":277}}}
package/dist/router.js CHANGED
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkBPOTNK2J_js=require('./chunk-BPOTNK2J.js');require('./chunk-BP5PDE6F.js'),require('./chunk-3CKIHQIE.js'),require('./chunk-OU6XJZ76.js'),require('./chunk-KXZRGDXD.js');Object.defineProperty(exports,"Link",{enumerable:true,get:function(){return chunkBPOTNK2J_js.k}});Object.defineProperty(exports,"Outlet",{enumerable:true,get:function(){return chunkBPOTNK2J_js.j}});Object.defineProperty(exports,"Route",{enumerable:true,get:function(){return chunkBPOTNK2J_js.h}});Object.defineProperty(exports,"Routes",{enumerable:true,get:function(){return chunkBPOTNK2J_js.i}});Object.defineProperty(exports,"getNavigate",{enumerable:true,get:function(){return chunkBPOTNK2J_js.e}});Object.defineProperty(exports,"resetRouter",{enumerable:true,get:function(){return chunkBPOTNK2J_js.a}});Object.defineProperty(exports,"useLocation",{enumerable:true,get:function(){return chunkBPOTNK2J_js.b}});Object.defineProperty(exports,"useNavigate",{enumerable:true,get:function(){return chunkBPOTNK2J_js.d}});Object.defineProperty(exports,"useParams",{enumerable:true,get:function(){return chunkBPOTNK2J_js.f}});Object.defineProperty(exports,"useQuery",{enumerable:true,get:function(){return chunkBPOTNK2J_js.g}});Object.defineProperty(exports,"useRouter",{enumerable:true,get:function(){return chunkBPOTNK2J_js.c}});//# sourceMappingURL=router.js.map
1
+ 'use strict';var chunkSMVFW7HP_js=require('./chunk-SMVFW7HP.js');require('./chunk-BP5PDE6F.js'),require('./chunk-3CKIHQIE.js'),require('./chunk-OU6XJZ76.js'),require('./chunk-KXZRGDXD.js');Object.defineProperty(exports,"Link",{enumerable:true,get:function(){return chunkSMVFW7HP_js.k}});Object.defineProperty(exports,"Outlet",{enumerable:true,get:function(){return chunkSMVFW7HP_js.j}});Object.defineProperty(exports,"Route",{enumerable:true,get:function(){return chunkSMVFW7HP_js.h}});Object.defineProperty(exports,"Routes",{enumerable:true,get:function(){return chunkSMVFW7HP_js.i}});Object.defineProperty(exports,"getNavigate",{enumerable:true,get:function(){return chunkSMVFW7HP_js.e}});Object.defineProperty(exports,"resetRouter",{enumerable:true,get:function(){return chunkSMVFW7HP_js.a}});Object.defineProperty(exports,"useLocation",{enumerable:true,get:function(){return chunkSMVFW7HP_js.b}});Object.defineProperty(exports,"useNavigate",{enumerable:true,get:function(){return chunkSMVFW7HP_js.d}});Object.defineProperty(exports,"useParams",{enumerable:true,get:function(){return chunkSMVFW7HP_js.f}});Object.defineProperty(exports,"useQuery",{enumerable:true,get:function(){return chunkSMVFW7HP_js.g}});Object.defineProperty(exports,"useRouter",{enumerable:true,get:function(){return chunkSMVFW7HP_js.c}});//# sourceMappingURL=router.js.map
2
2
  //# sourceMappingURL=router.js.map
package/dist/router.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export{k as Link,j as Outlet,h as Route,i as Routes,e as getNavigate,a as resetRouter,b as useLocation,d as useNavigate,f as useParams,g as useQuery,c as useRouter}from'./chunk-3VNZDZ4H.mjs';import'./chunk-FJNIW7B2.mjs';import'./chunk-NRPWBHKP.mjs';import'./chunk-TIUNOZRI.mjs';import'./chunk-YFZ7ODX2.mjs';//# sourceMappingURL=router.mjs.map
1
+ export{k as Link,j as Outlet,h as Route,i as Routes,e as getNavigate,a as resetRouter,b as useLocation,d as useNavigate,f as useParams,g as useQuery,c as useRouter}from'./chunk-XQZNYJCD.mjs';import'./chunk-FJNIW7B2.mjs';import'./chunk-NRPWBHKP.mjs';import'./chunk-TIUNOZRI.mjs';import'./chunk-YFZ7ODX2.mjs';//# sourceMappingURL=router.mjs.map
2
2
  //# sourceMappingURL=router.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexium",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "A lightweight, signals-based UI framework with cross-platform renderers",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkGLMD343V_js=require('./chunk-GLMD343V.js'),chunkBP5PDE6F_js=require('./chunk-BP5PDE6F.js'),chunk3CKIHQIE_js=require('./chunk-3CKIHQIE.js'),chunkOU6XJZ76_js=require('./chunk-OU6XJZ76.js');function Q(e,n,...t){return {type:e,props:n||{},children:t,key:n?.key}}var p=null,w=new WeakMap,h=null;function U(e,n,t={}){let{state:o,onHydrated:r,onMismatch:a}=t;p=n.firstChild;try{let i;typeof e=="function"&&!$(e)?i={type:e,props:{},children:[],key:void 0}:i=e,F(i,n),r?.();}catch(i){console.warn("[Flexium] Hydration mismatch, falling back to full render:",i),a?.(i),n.innerHTML="",import('./render-DQ5Y7FXE.js').then(({render:l})=>{l(e,n);});}finally{p=null;}}function $(e){return e&&typeof e=="object"&&"type"in e&&"props"in e}function F(e,n){if(e==null||typeof e=="boolean")return H(),null;if(typeof e=="string"||typeof e=="number")return Y(String(e));if(Array.isArray(e)){let t=[];for(let o of e){let r=F(o,n);r&&(Array.isArray(r)?t.push(...r):t.push(r));}return t}if(typeof e=="function")return V({type:e,props:{},children:[],key:void 0},n);if(typeof e=="object"&&$(e)){if(typeof e.type=="string")return Z(e);if(typeof e.type=="function")return V(e,n)}return null}function H(){for(;p&&p.nodeType===Node.TEXT_NODE&&(!p.textContent||p.textContent.trim()==="");)p=p.nextSibling;}function Y(e){H();let n=p;if(!n)return null;if(n.nodeType!==Node.TEXT_NODE){if(e.trim()==="")return null;throw new Error(`Hydration mismatch: expected text node "${e}", got ${n.nodeName}`)}return p=n.nextSibling,n}function Z(e){H();let n=p,t=e.type;if(!n||n.nodeType!==Node.ELEMENT_NODE)throw new Error(`Hydration mismatch: expected element <${t}>, got ${n?.nodeName||"nothing"}`);if(n.tagName.toLowerCase()!==t.toLowerCase())throw new Error(`Hydration mismatch: expected <${t}>, got <${n.tagName.toLowerCase()}>`);if(e.props){for(let[o,r]of Object.entries(e.props))if(o==="ref")typeof r=="function"?r(n):r&&typeof r=="object"&&"current"in r&&(r.current=n);else if(o.startsWith("on")&&typeof r=="function"){let a=o.slice(2).toLowerCase();n.addEventListener(a,r),n.__eventHandlers||(n.__eventHandlers={}),n.__eventHandlers[a]=r;}}if(p=n.nextSibling,e.children&&e.children.length>0){let o=p;p=n.firstChild;for(let r of e.children)F(r,n);p=o;}return n}function V(e,n){let t=e.type,o={...e.props};e.children&&e.children.length>0&&(o.children=e.children.length===1?e.children[0]:e.children);let r=t._contextId,a=r!==void 0,i;a&&(i=chunkOU6XJZ76_js.h(r,o.value)),w.has(n)||w.set(n,new Map);let l=w.get(n),C=e.key!==void 0,u;if(C)u=e.key;else {let c=0,y=t.name||"anonymous";l.forEach((v,x)=>{typeof x=="string"&&x.startsWith(`__auto_${y}_`)&&c++;}),u=`__auto_${y}_${c}`;}let s={hooks:[],hookIndex:0,nodes:[],parent:n,fnode:e,props:o,key:u,children:new Set,parentInstance:h||void 0};h&&h.children.add(s),l.set(u,s);let d=h;h=s;try{let c=chunkOU6XJZ76_js.a(s,()=>t(o)),y=F(c,n);s.nodes=y?Array.isArray(y)?y:[y]:[];let v=!0,x=()=>{let X=s.props,B=chunkOU6XJZ76_js.a(s,()=>t(X));if(v){v=!1;return}if(s.nodes.length===0){let g=chunkGLMD343V_js.b(B,n);s.nodes=g?Array.isArray(g)?g:[g]:[];return}let m=s.nodes[0].parentNode;if(!m)return;let E=document.createComment("flexium-marker"),L=s.nodes[s.nodes.length-1];L.nextSibling?m.insertBefore(E,L.nextSibling):m.appendChild(E),s.children.clear();let q=document.createElement("div"),N=chunkGLMD343V_js.b(B,q,m),G=N?Array.isArray(N)?N:[N]:[],J=chunkGLMD343V_js.c(s.nodes,G,m,E);m.removeChild(E),s.nodes=J;};return s.renderFn=x,chunk3CKIHQIE_js.b(x),s.nodes}finally{h=d,a&&chunkOU6XJZ76_js.i(r,i);}}var ee={register:()=>{},hasBoundary:false},P=new chunkOU6XJZ76_js.f(ee);function D(){let[e]=chunkBP5PDE6F_js.c(P);return e}function R(e){let{fallback:n,children:t}=e,o=chunkOU6XJZ76_js.b(()=>new Set),[,r]=chunkBP5PDE6F_js.c(0),[a,i]=chunkBP5PDE6F_js.c(false),C={register:s=>{o.has(s)||(o.add(s),r(d=>d+1),i(true),s.finally(()=>{o.delete(s),r(d=>{let c=d-1;return c===0&&i(false),c});}));},hasBoundary:true},u=a?n:t;return {type:P.Provider,props:{value:C},children:[u],key:void 0}}function W(e){let{fallback:n,onError:t,children:o,resetKey:r}=e,[a,i]=chunkBP5PDE6F_js.c({error:null,info:null}),l=chunkOU6XJZ76_js.b(()=>({current:r}));r!==l.current&&(l.current=r,a.error!==null&&i({error:null,info:null}));if(a.error)return typeof n=="function"?n(a.error,a.info):n;try{return o}finally{}}function K(e){let n=null,t=null,o=null,r=a=>{if(n)return n(a);if(o)throw o;let i=D();return t||(t=e().then(l=>{n=l.default;}).catch(l=>{o=l instanceof Error?l:new Error(String(l));})),i.hasBoundary&&i.register(t),null};return r._lazy=true,r._loader=e,r}exports.a=Q;exports.b=U;exports.c=R;exports.d=W;exports.e=K;//# sourceMappingURL=chunk-2AJX574G.js.map
2
- //# sourceMappingURL=chunk-2AJX574G.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/dom/f.ts","../src/dom/hydrate.ts","../src/dom/components/suspenseContext.ts","../src/dom/components/Suspense.tsx","../src/dom/components/ErrorBoundary.tsx","../src/dom/components/lazy.ts"],"names":["f","type","props","children","hydrationCursor","hydratedInstanceRegistry","currentHydratingInstance","hydrate","app","container","options","state","onHydrated","onMismatch","fnode","isFNode","hydrateNode","error","render","value","parent","skipEmptyTextNodes","hydrateTextNode","nodes","child","result","hydrateComponent","hydrateElement","text","current","tag","key","eventName","savedCursor","Component","contextId","isProvider","prevContextValue","pushContext","parentRegistry","hasExplicitKey","instanceCount","componentName","_","k","instance","previousHydratingInstance","runWithComponent","isFirstRender","renderFn","currentProps","newNodes","renderNode","nodeParent","marker","lastNode","tempContainer","newNodesArray","reconciledNodes","reconcile","unsafeEffect","popContext","defaultValue","SuspenseCtx","Context","suspenseContext","use","Suspense","fallback","pendingSet","hook","setPendingCount","showFallback","setShowFallback","contextValue","promise","c","newCount","content","ErrorBoundary","onError","resetKey","errorState","setErrorState","prevResetKeyRef","lazy","loader","resolved","LazyWrapper","suspense","module","err"],"mappings":"iNAKO,SAASA,CAAAA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A,YAAe,KAAA,CAAQA,EAAM,IAAI,KAAA,CAAM,OAAOA,CAAG,CAAC,EAC5D,CAAC,CAAA,CAAA,CAIDF,CAAAA,CAAS,WAAA,EACXA,CAAAA,CAAS,QAAA,CAASd,CAAO,CAAA,CAIpB,IACT,EAGC,OAACa,CAAAA,CAAiC,MAAQ,IAAA,CACzCA,CAAAA,CAAiC,OAAA,CAAUF,CAAAA,CAEtCE,CACT","file":"chunk-2AJX574G.js","sourcesContent":["import type { FNode } from './types'\n\n/**\n * f() - Create FNodes without JSX\n */\nexport function f(\n type: string | Function,\n props?: any,\n ...children: any[]\n): FNode {\n return {\n type,\n props: props || {},\n children,\n key: props?.key\n }\n}\n","import type { FNode, FNodeChild } from './types'\nimport type { SerializedState } from '../server/types'\nimport { runWithComponent, type ComponentInstance } from '../core/hook'\nimport { pushContext, popContext } from '../core/context'\nimport { unsafeEffect } from '../core/lifecycle'\nimport { renderNode, reconcile } from './render'\n\n// Hydration state\nlet isHydrating = false\nlet hydrationCursor: Node | null = null\nlet hydrationState: SerializedState | null = null\n\nexport interface HydrateOptions {\n /**\n * Serialized state from server\n * Typically embedded in HTML as JSON script tag\n */\n state?: SerializedState\n\n /**\n * Called when hydration completes successfully\n */\n onHydrated?: () => void\n\n /**\n * Called when hydration fails (falls back to full render)\n */\n onMismatch?: (error: Error) => void\n}\n\n// Extended ComponentInstance for DOM tracking (same as render.ts)\ninterface DOMComponentInstance extends ComponentInstance {\n nodes: Node[]\n parent: HTMLElement\n fnode: any\n props: any\n key?: any\n renderFn?: () => void\n children: Set<DOMComponentInstance>\n parentInstance?: DOMComponentInstance\n}\n\n// Registry for hydrated components\nconst hydratedInstanceRegistry = new WeakMap<HTMLElement, Map<any, DOMComponentInstance>>()\nlet currentHydratingInstance: DOMComponentInstance | null = null\n\nexport function getIsHydrating(): boolean {\n return isHydrating\n}\n\nexport function getHydrationState(): SerializedState | null {\n return hydrationState\n}\n\n/**\n * Hydrate server-rendered HTML with client-side interactivity\n */\nexport function hydrate(\n app: FNodeChild | (() => FNodeChild),\n container: HTMLElement,\n options: HydrateOptions = {}\n): void {\n const { state, onHydrated, onMismatch } = options\n\n // Store state for rehydration\n hydrationState = state || null\n\n // Initialize hydration mode\n isHydrating = true\n hydrationCursor = container.firstChild\n\n try {\n // Normalize input\n let fnode: FNodeChild\n if (typeof app === 'function' && !isFNode(app)) {\n fnode = { type: app, props: {}, children: [], key: undefined }\n } else {\n fnode = app\n }\n\n // Hydrate the tree\n hydrateNode(fnode, container)\n\n onHydrated?.()\n } catch (error) {\n // Hydration mismatch - fall back to full render\n console.warn('[Flexium] Hydration mismatch, falling back to full render:', error)\n onMismatch?.(error as Error)\n\n // Clear and re-render\n container.innerHTML = ''\n // Import dynamically to avoid circular deps\n import('./render').then(({ render }) => {\n render(app, container)\n })\n } finally {\n isHydrating = false\n hydrationCursor = null\n hydrationState = null\n }\n}\n\nfunction isFNode(value: any): value is FNode {\n return value && typeof value === 'object' && 'type' in value && 'props' in value\n}\n\nfunction hydrateNode(fnode: FNodeChild, parent: HTMLElement): Node | Node[] | null {\n // Null/undefined/boolean -> skip empty text nodes\n if (fnode === null || fnode === undefined || typeof fnode === 'boolean') {\n // Server might have rendered an empty text node\n skipEmptyTextNodes()\n return null\n }\n\n // String/number -> expect text node\n if (typeof fnode === 'string' || typeof fnode === 'number') {\n return hydrateTextNode(String(fnode))\n }\n\n // Array -> hydrate each child\n if (Array.isArray(fnode)) {\n const nodes: Node[] = []\n for (const child of fnode) {\n const result = hydrateNode(child, parent)\n if (result) {\n if (Array.isArray(result)) {\n nodes.push(...result)\n } else {\n nodes.push(result)\n }\n }\n }\n return nodes\n }\n\n // Function (standalone) -> wrap in FNode and hydrate\n if (typeof fnode === 'function') {\n const wrappedFnode: FNode = { type: fnode, props: {}, children: [], key: undefined }\n return hydrateComponent(wrappedFnode, parent)\n }\n\n // Object (FNode)\n if (typeof fnode === 'object' && isFNode(fnode)) {\n if (typeof fnode.type === 'string') {\n return hydrateElement(fnode)\n }\n\n if (typeof fnode.type === 'function') {\n return hydrateComponent(fnode, parent)\n }\n }\n\n return null\n}\n\nfunction skipEmptyTextNodes(): void {\n while (\n hydrationCursor &&\n hydrationCursor.nodeType === Node.TEXT_NODE &&\n (!hydrationCursor.textContent || hydrationCursor.textContent.trim() === '')\n ) {\n hydrationCursor = hydrationCursor.nextSibling\n }\n}\n\nfunction hydrateTextNode(text: string): Node | null {\n skipEmptyTextNodes()\n\n const current = hydrationCursor\n\n if (!current) {\n // No node to hydrate - this is okay for conditional rendering\n return null\n }\n\n if (current.nodeType !== Node.TEXT_NODE) {\n // Try to find a text node nearby (whitespace handling)\n if (text.trim() === '') {\n return null\n }\n throw new Error(`Hydration mismatch: expected text node \"${text}\", got ${current.nodeName}`)\n }\n\n // Update cursor\n hydrationCursor = current.nextSibling\n\n return current\n}\n\nfunction hydrateElement(fnode: FNode): Node {\n skipEmptyTextNodes()\n\n const current = hydrationCursor as Element\n const tag = fnode.type as string\n\n // Validate element type\n if (!current || current.nodeType !== Node.ELEMENT_NODE) {\n throw new Error(`Hydration mismatch: expected element <${tag}>, got ${current?.nodeName || 'nothing'}`)\n }\n\n if (current.tagName.toLowerCase() !== tag.toLowerCase()) {\n throw new Error(`Hydration mismatch: expected <${tag}>, got <${current.tagName.toLowerCase()}>`)\n }\n\n // Attach event handlers and refs (don't modify DOM structure)\n if (fnode.props) {\n for (const [key, value] of Object.entries(fnode.props)) {\n if (key === 'ref') {\n if (typeof value === 'function') {\n value(current)\n } else if (value && typeof value === 'object' && 'current' in value) {\n value.current = current\n }\n } else if (key.startsWith('on') && typeof value === 'function') {\n const eventName = key.slice(2).toLowerCase()\n current.addEventListener(eventName, value as EventListener)\n\n // Store for reconciliation\n if (!(current as any).__eventHandlers) {\n (current as any).__eventHandlers = {}\n }\n (current as any).__eventHandlers[eventName] = value\n }\n }\n }\n\n // Move cursor past this element\n hydrationCursor = current.nextSibling\n\n // Hydrate children\n if (fnode.children && fnode.children.length > 0) {\n const savedCursor = hydrationCursor\n\n hydrationCursor = current.firstChild\n\n for (const child of fnode.children) {\n hydrateNode(child, current as HTMLElement)\n }\n\n hydrationCursor = savedCursor\n }\n\n return current\n}\n\nfunction hydrateComponent(fnode: FNode, parent: HTMLElement): Node | Node[] | null {\n const Component = fnode.type as Function\n\n // Merge props\n const props = { ...fnode.props }\n if (fnode.children && fnode.children.length > 0) {\n props.children = fnode.children.length === 1\n ? fnode.children[0]\n : fnode.children\n }\n\n // Handle context providers\n const contextId = (Component as any)._contextId\n const isProvider = contextId !== undefined\n let prevContextValue: any\n\n if (isProvider) {\n prevContextValue = pushContext(contextId, props.value)\n }\n\n // Generate key (same logic as render.ts)\n if (!hydratedInstanceRegistry.has(parent)) {\n hydratedInstanceRegistry.set(parent, new Map())\n }\n const parentRegistry = hydratedInstanceRegistry.get(parent)!\n\n const hasExplicitKey = fnode.key !== undefined\n let key: any\n if (hasExplicitKey) {\n key = fnode.key\n } else {\n let instanceCount = 0\n const componentName = (Component as any).name || 'anonymous'\n parentRegistry.forEach((_, k) => {\n if (typeof k === 'string' && k.startsWith(`__auto_${componentName}_`)) {\n instanceCount++\n }\n })\n key = `__auto_${componentName}_${instanceCount}`\n }\n\n // Create component instance\n const instance: DOMComponentInstance = {\n hooks: [],\n hookIndex: 0,\n nodes: [],\n parent,\n fnode,\n props,\n key,\n children: new Set(),\n parentInstance: currentHydratingInstance || undefined\n }\n\n if (currentHydratingInstance) {\n currentHydratingInstance.children.add(instance)\n }\n\n parentRegistry.set(key, instance)\n\n const previousHydratingInstance = currentHydratingInstance\n currentHydratingInstance = instance\n\n try {\n // First render during hydration - just match DOM\n const result = runWithComponent(instance, () => Component(props))\n const nodes = hydrateNode(result, parent)\n instance.nodes = nodes ? (Array.isArray(nodes) ? nodes : [nodes]) : []\n\n // Set up reactive re-rendering for future updates\n let isFirstRender = true\n const renderFn = () => {\n // Re-render with reconciliation (same logic as render.ts)\n const currentProps = instance.props\n\n // Always run the component to establish reactive tracking\n const result = runWithComponent(instance, () => Component(currentProps))\n\n if (isFirstRender) {\n isFirstRender = false\n return // Skip DOM manipulation on first render, already done during hydration\n }\n\n if (instance.nodes.length === 0) {\n const newNodes = renderNode(result, parent)\n instance.nodes = newNodes ? (Array.isArray(newNodes) ? newNodes : [newNodes]) : []\n return\n }\n\n const firstNode = instance.nodes[0]\n const nodeParent = firstNode.parentNode as HTMLElement\n\n if (!nodeParent) {\n return\n }\n\n const marker = document.createComment('flexium-marker')\n const lastNode = instance.nodes[instance.nodes.length - 1]\n if (lastNode.nextSibling) {\n nodeParent.insertBefore(marker, lastNode.nextSibling)\n } else {\n nodeParent.appendChild(marker)\n }\n\n instance.children.clear()\n\n const tempContainer = document.createElement('div')\n const newNodes = renderNode(result, tempContainer, nodeParent)\n const newNodesArray = newNodes ? (Array.isArray(newNodes) ? newNodes : [newNodes]) : []\n\n const reconciledNodes = reconcile(instance.nodes, newNodesArray, nodeParent, marker)\n\n nodeParent.removeChild(marker)\n\n instance.nodes = reconciledNodes\n }\n\n instance.renderFn = renderFn\n unsafeEffect(renderFn)\n\n return instance.nodes\n } finally {\n currentHydratingInstance = previousHydratingInstance\n\n if (isProvider) {\n popContext(contextId, prevContextValue)\n }\n }\n}\n","import { Context } from '../../core/context'\nimport { use } from '../../core/use'\nimport type { SuspenseContextValue } from './types'\n\nconst defaultValue: SuspenseContextValue = {\n register: () => {},\n hasBoundary: false\n}\n\nexport const SuspenseCtx = new Context<SuspenseContextValue>(defaultValue)\n\nexport function suspenseContext(): SuspenseContextValue {\n const [value] = use(SuspenseCtx)\n return value\n}\n","import { use } from '../../core/use'\nimport { hook } from '../../core/hook'\nimport { SuspenseCtx } from './suspenseContext'\nimport type { SuspenseProps, SuspenseContextValue } from './types'\nimport type { FNodeChild } from '../types'\n\n/**\n * Suspense component that shows fallback while children are loading\n *\n * @example\n * ```tsx\n * const Dashboard = lazy(() => import('./Dashboard'))\n *\n * function App() {\n * return (\n * <Suspense fallback={<div>Loading...</div>}>\n * <Dashboard />\n * </Suspense>\n * )\n * }\n * ```\n */\nexport function Suspense(props: SuspenseProps): FNodeChild {\n const { fallback, children } = props\n\n // Track pending promises using hook for mutable Set\n const pendingSet = hook(() => new Set<Promise<any>>())\n const [, setPendingCount] = use(0)\n const [showFallback, setShowFallback] = use(false)\n\n // Register function for lazy components\n const register = (promise: Promise<any>) => {\n if (!pendingSet.has(promise)) {\n // Add to pending set\n pendingSet.add(promise)\n setPendingCount(c => c + 1)\n setShowFallback(true)\n\n // Wait for resolution\n promise.finally(() => {\n pendingSet.delete(promise)\n setPendingCount(c => {\n const newCount = c - 1\n if (newCount === 0) {\n setShowFallback(false)\n }\n return newCount\n })\n })\n }\n }\n\n const contextValue: SuspenseContextValue = {\n register,\n hasBoundary: true\n }\n\n // Render fallback or children based on pending state\n const content = showFallback ? fallback : children\n\n // Wrap content with Suspense context provider\n return {\n type: SuspenseCtx.Provider,\n props: { value: contextValue },\n children: [content],\n key: undefined\n } as any\n}\n","import { use } from '../../core/use'\nimport { hook } from '../../core/hook'\nimport type { FNodeChild } from '../types'\nimport type { ErrorInfo, ErrorBoundaryProps } from './types'\n\n// Component name stack for error messages\nlet componentNameStack: string[] = []\n\nexport function pushComponentName(name: string): void {\n componentNameStack.push(name)\n}\n\nexport function popComponentName(): void {\n componentNameStack.pop()\n}\n\nexport function getComponentStack(): string {\n return componentNameStack\n .map(name => ` at ${name}`)\n .reverse()\n .join('\\n')\n}\n\n// Stack of error boundaries for nested error propagation\ninterface ErrorBoundaryInstance {\n handleError: (error: Error, phase: 'render' | 'effect' | 'event') => void\n}\n\nlet errorBoundaryStack: ErrorBoundaryInstance[] = []\n\nexport function pushErrorBoundary(instance: ErrorBoundaryInstance): void {\n errorBoundaryStack.push(instance)\n}\n\nexport function popErrorBoundary(): void {\n errorBoundaryStack.pop()\n}\n\nexport function getNearestErrorBoundary(): ErrorBoundaryInstance | null {\n return errorBoundaryStack[errorBoundaryStack.length - 1] || null\n}\n\n/**\n * ErrorBoundary component that catches errors in its children and displays fallback UI\n *\n * @example\n * ```tsx\n * <ErrorBoundary\n * fallback={(error, info) => <div>Error: {error.message}</div>}\n * onError={(error, info) => console.error(error)}\n * >\n * <App />\n * </ErrorBoundary>\n * ```\n */\nexport function ErrorBoundary(props: ErrorBoundaryProps): FNodeChild {\n const { fallback, onError, children, resetKey } = props\n\n // Error state\n const [errorState, setErrorState] = use<{\n error: Error | null\n info: ErrorInfo | null\n }>({ error: null, info: null })\n\n // Track reset key changes to clear error\n const prevResetKeyRef = hook(() => ({ current: resetKey }))\n\n if (resetKey !== prevResetKeyRef.current) {\n prevResetKeyRef.current = resetKey\n if (errorState.error !== null) {\n setErrorState({ error: null, info: null })\n }\n }\n\n // Error boundary instance\n const boundaryInstance: ErrorBoundaryInstance = {\n handleError: (error: Error, phase: 'render' | 'effect' | 'event') => {\n const info: ErrorInfo = {\n componentStack: getComponentStack(),\n phase\n }\n\n // Call error callback\n onError?.(error, info)\n\n // Update error state (triggers re-render with fallback)\n setErrorState({ error, info })\n }\n }\n\n // If we have an error, render fallback\n if (errorState.error) {\n if (typeof fallback === 'function') {\n return fallback(errorState.error, errorState.info!)\n }\n return fallback\n }\n\n // Push boundary onto stack for children to use\n pushErrorBoundary(boundaryInstance)\n\n try {\n // Return children - they will be rendered with this boundary active\n return children\n } finally {\n popErrorBoundary()\n }\n}\n","import { suspenseContext } from './suspenseContext'\nimport type { FNodeChild } from '../types'\nimport type { LazyComponent } from './types'\n\n/**\n * Creates a lazy-loaded component for code splitting\n *\n * @example\n * ```tsx\n * const Dashboard = lazy(() => import('./Dashboard'))\n * const Settings = lazy(() => import('./Settings'))\n *\n * function App() {\n * return (\n * <Suspense fallback={<div>Loading...</div>}>\n * <Dashboard />\n * </Suspense>\n * )\n * }\n * ```\n */\nexport function lazy<P = {}>(\n loader: () => Promise<{ default: (props: P) => FNodeChild }>\n): LazyComponent<P> {\n // Shared state across all instances\n let resolved: ((props: P) => FNodeChild) | null = null\n let promise: Promise<any> | null = null\n let error: Error | null = null\n\n // The wrapper component\n const LazyWrapper = (props: P): FNodeChild => {\n // If already resolved, render immediately\n if (resolved) {\n return resolved(props)\n }\n\n // If error occurred, throw it (will be caught by ErrorBoundary)\n if (error) {\n throw error\n }\n\n // Get suspense context\n const suspense = suspenseContext()\n\n // Start loading if not already\n if (!promise) {\n promise = loader()\n .then(module => {\n resolved = module.default\n })\n .catch(err => {\n error = err instanceof Error ? err : new Error(String(err))\n })\n }\n\n // Register with suspense boundary if available\n if (suspense.hasBoundary) {\n suspense.register(promise)\n }\n\n // Return null - Suspense will show fallback\n return null\n }\n\n // Mark as lazy component\n ;(LazyWrapper as LazyComponent<P>)._lazy = true\n ;(LazyWrapper as LazyComponent<P>)._loader = loader\n\n return LazyWrapper as LazyComponent<P>\n}\n"]}
@@ -1,2 +0,0 @@
1
- import {a,c}from'./chunk-FJNIW7B2.mjs';import {f as f$1}from'./chunk-TIUNOZRI.mjs';import {a as a$1}from'./chunk-YFZ7ODX2.mjs';function b(t){if(!t)return {};if(typeof URLSearchParams<"u"){let e=new URLSearchParams(t),o={};return e.forEach((n,i)=>o[i]=n),o}return t.substring(1).split("&").reduce((e,o)=>{let[n,i]=o.split("=");return n&&(e[decodeURIComponent(n)]=decodeURIComponent(i||"")),e},{})}function F(t){return !!(!t||typeof t!="string"||t.length>2048||t.includes("__proto__")||t.includes("constructor")||/^\s*javascript:/i.test(t))}function v(t){let e=[];return t.forEach(o=>{if(!o)return;let{path:n,component:i,children:s,beforeEnter:l}=o.props||{},c={path:n||"/",component:i,beforeEnter:l};if(s){let g=Array.isArray(s)?s:[s];c.children=v(g);}!c.children&&o.children&&o.children.length>0&&(c.children=v(o.children)),e.push(c);}),e}function A(t,e){for(let o of t){let n=o.path,i=j(n,e);if(i)return [{route:o,params:i.params,pathname:i.path}]}return null}function j(t,e){let o=t.split("/").filter(Boolean),n=e.split("/").filter(Boolean);if(o.length!==n.length)return null;let i={};for(let s=0;s<o.length;s++){let l=o[s],c=n[s];if(l.startsWith(":")){let g=l.slice(1);i[g]=c;}else if(l!==c)return null}return {params:i,path:e}}var P=new f$1(null),d=new f$1(0),_=()=>({pathname:"/",search:"",hash:"",query:{}}),S=()=>{if(typeof window>"u")return _();let t=window.location.pathname;return (!t||t==="srcdoc"||t==="/srcdoc")&&(t="/"),{pathname:t,search:window.location.search,hash:window.location.hash,query:b(window.location.search)}},u=null,f=null,U=false;function I(){u=null,f=null;}function h(){if(u&&f)return [u,f];u=a(S());let t=e=>{u&&(u.pathname=e.pathname,u.search=e.search,u.hash=e.hash,u.query=e.query);};return f=e=>{if(console.log("[Router] Navigate called:",e,"globalLocation:",u),typeof window>"u")return;if(F(e)){console.error("[Flexium Router] Blocked navigation to unsafe path:",e);return}try{window.history.pushState({},"",e);}catch{}let o={pathname:e.split("?")[0].split("#")[0],search:e.includes("?")?"?"+e.split("?")[1].split("#")[0]:"",hash:e.includes("#")?"#"+e.split("#")[1]:"",query:b(e.includes("?")?"?"+e.split("?")[1].split("#")[0]:"")};console.log("[Router] Updating location to:",o),t(o),console.log("[Router] After update, globalLocation:",u);},typeof window<"u"&&!U&&(window.addEventListener("popstate",()=>{t(S());}),U=true),[u,f]}function C(){let[t]=c(P);if(!t)throw new Error("useRouter() must be called within a <Routes> component");return t}function Q(){let[,t]=h();return t}function N(){return f||h(),f}function B(){return C().params}function M(){let[t]=h();return t.query}function p(t){return null}function R(t){return t&&typeof t=="object"&&("type"in t||Array.isArray(t))}function O(t){let[e,o]=h(),n=Array.isArray(t.children)?t.children:[t.children],i=n.filter(r=>R(r)&&r.type===p),s=n.findIndex(r=>R(r)&&r.type===p),l=[],c=[];s===-1?l=n.filter(r=>!R(r)||r.type!==p):(l=n.slice(0,s).filter(r=>!R(r)||r.type!==p),c=n.slice(s).filter(r=>!R(r)||r.type!==p));let g=v(i),k=e.pathname,m=A(g,k)||[],q=m.length>0?m[m.length-1].params:{},T={location:e,navigate:o,matches:m,params:q},L=null;if(m.length>0){let r=m[0],D=r.route.component,x=k;r.route.beforeEnter?r.route.beforeEnter(r.params)!==false&&(L=a$1(d.Provider,{value:1,key:x,children:a$1(D,{params:r.params,key:x})})):L=a$1(d.Provider,{value:1,key:x,children:a$1(D,{params:r.params,key:x})});}return a$1(P.Provider,{value:T,children:[...l,L,...c]})}function K(){let t=C(),[e]=c(d),o=e??0,[n]=c(()=>t.matches);if(o>=n.length)return null;let i=n[o],s=i.route.component;return i.route.beforeEnter&&i.route.beforeEnter(i.params)===false?null:a$1(d.Provider,{value:o+1,children:a$1(s,{params:i.params})})}function V(t){return a$1("a",{href:t.to,class:t.class||t.className,style:t.style?t.style+"; cursor: pointer;":"cursor: pointer;",onclick:e=>{console.log("Link clicked:",t.to),e.preventDefault(),N()(t.to);},children:t.children})}export{I as a,h as b,C as c,Q as d,N as e,B as f,M as g,p as h,O as i,K as j,V as k};//# sourceMappingURL=chunk-3VNZDZ4H.mjs.map
2
- //# sourceMappingURL=chunk-3VNZDZ4H.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/router/utils.ts","../src/router/router.ts","../src/router/dom/Route.tsx","../src/router/dom/Routes.tsx","../src/router/dom/Outlet.tsx","../src/router/dom/Link.tsx"],"names":["parseQuery","search","params","result","value","key","accumulator","part","isUnsafePath","path","createRoutesFromChildren","children","routes","child","component","subChildren","beforeEnter","route","nestedChildren","matchRoutes","locationPathname","routePath","matchResult","matchPath","locationPath","routeSegments","locationSegments","i","routeSegment","locationSegment","RouterCtx","Context","RouteDepthCtx","getDefaultLocation","getCurrentLocation","pathname","globalLocation","globalNavigate","popstateListenerAttached","resetRouter","useLocation","reactive","updateLocation","newLocation","useRouter","routerContext","use","useNavigate","navigate","getNavigate","useParams","useQuery","location","Route","_props","isFNode","node","Routes","props","currentLocation","childrenList","routeNodes","firstRouteIndex","beforeRouteChildren","afterRouteChildren","routeDefinitions","currentPath","matches","matchedContent","rootMatch","Component","routeKey","jsx","Outlet","depthValue","depth","match","Link","event"],"mappings":"+HAGA,SAASA,CAAAA,CAAWC,CAAAA,CAAwC,C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CAAExC,CAAAA,CAAc,QAAA,CAAU,CAC7B,KAAA,CAAO2C,CAAAA,CAAQ,CAAA,CACf,QAAA,CAAUH,GAAAA,CAAEF,CAAAA,CAAW,CAAE,MAAA,CAAQM,CAAAA,CAAM,MAAO,CAAC,CACnD,CAAC,CACL,CCnBO,SAASC,CAAAA,CAAKnB,CAAAA,CAAkB,CACnC,OAAOc,GAAAA,CAAE,GAAA,CAAK,CACV,IAAA,CAAMd,CAAAA,CAAM,EAAA,CACZ,KAAA,CAAOA,CAAAA,CAAM,KAAA,EAASA,CAAAA,CAAM,SAAA,CAC5B,KAAA,CAAOA,CAAAA,CAAM,KAAA,CAAQA,CAAAA,CAAM,KAAA,CAAQ,oBAAA,CAAuB,kBAAA,CAC1D,OAAA,CAAUoB,CAAAA,EAAiB,CACvB,OAAA,CAAQ,GAAA,CAAI,eAAA,CAAiBpB,CAAAA,CAAM,EAAE,CAAA,CACrCoB,CAAAA,CAAM,cAAA,EAAe,CAErB7B,CAAAA,EAAY,CAAES,CAAAA,CAAM,EAAE,EAC1B,CAAA,CACA,QAAA,CAAUA,CAAAA,CAAM,QACpB,CAAC,CACL","file":"chunk-3VNZDZ4H.mjs","sourcesContent":["import { RouteDefinition, RouteMatch } from './types'\n\n// Simple query parser (native URLSearchParams fallback) - internal use only\nfunction parseQuery(search: string): Record<string, string> {\n if (!search) return {}\n if (typeof URLSearchParams !== 'undefined') {\n const params = new URLSearchParams(search)\n const result: Record<string, string> = {}\n params.forEach((value, key) => result[key] = value)\n return result\n }\n return search\n .substring(1)\n .split('&')\n .reduce((accumulator, part) => {\n const [key, value] = part.split('=')\n if (key) accumulator[decodeURIComponent(key)] = decodeURIComponent(value || '')\n return accumulator\n }, {} as Record<string, string>)\n}\n\nfunction isUnsafePath(path: string): boolean {\n // Handle undefined or null path\n if (!path || typeof path !== 'string') return true\n // Prevent prototype pollution or massive strings\n if (path.length > 2048) return true\n if (path.includes('__proto__') || path.includes('constructor')) return true\n // Basic XSS check for javascript: protocol\n if (/^\\s*javascript:/i.test(path)) return true\n return false\n}\n\n// Convert children FNodes to RouteDefinitions - internal use only\nfunction createRoutesFromChildren(children: any[]): RouteDefinition[] {\n const routes: RouteDefinition[] = []\n\n children.forEach(child => {\n if (!child) return\n\n // Assuming child is an FNode-like object (config)\n // In Flexium, Route component returns null, but 'createNode' isn't called here.\n // We are traversing the props passed to Router.\n\n const { path, component, children: subChildren, beforeEnter } = child.props || {}\n\n const route: RouteDefinition = {\n path: path || '/',\n component: component,\n beforeEnter\n }\n\n if (subChildren) {\n // If subChildren is array\n const nestedChildren = Array.isArray(subChildren) ? subChildren : [subChildren]\n // We expect the children of a Route to be other Routes\n // However, the 'children' prop in JSX might be the Route components themselves.\n route.children = createRoutesFromChildren(nestedChildren)\n }\n\n // Also check child.children if props.children is empty (direct FNode structure)\n if (!route.children && child.children && child.children.length > 0) {\n route.children = createRoutesFromChildren(child.children)\n }\n\n routes.push(route)\n })\n return routes\n}\n\n// Simple Matcher - internal use only\nfunction matchRoutes(routes: RouteDefinition[], locationPathname: string): RouteMatch[] | null {\n // We want to find the best matching branch\n\n for (const route of routes) {\n // 1. Match current segment\n // Simple exact match or parameter match logic needed?\n // Let's implement simple param matching: /user/:id\n\n const routePath = route.path\n\n const matchResult = matchPath(routePath, locationPathname)\n if (matchResult) {\n return [{ route, params: matchResult.params, pathname: matchResult.path }]\n }\n }\n return null\n}\n\nfunction matchPath(routePath: string, locationPath: string) {\n // 1. Split into segments\n const routeSegments = routePath.split('/').filter(Boolean)\n const locationSegments = locationPath.split('/').filter(Boolean)\n\n if (routeSegments.length !== locationSegments.length) return null\n\n const params: Record<string, string> = {}\n\n for (let i = 0; i < routeSegments.length; i++) {\n const routeSegment = routeSegments[i]\n const locationSegment = locationSegments[i]\n\n if (routeSegment.startsWith(':')) {\n const key = routeSegment.slice(1)\n params[key] = locationSegment\n } else if (routeSegment !== locationSegment) {\n return null\n }\n }\n\n return { params, path: locationPath }\n}\n\n// Export only what's needed by other router files\nexport { parseQuery, isUnsafePath, createRoutesFromChildren, matchRoutes }\n","import { reactive } from '../core/reactive'\nimport { Context } from '../core/context'\nimport { use } from '../core/use'\nimport type { Location, RouterContext } from './types'\nimport { parseQuery, isUnsafePath } from './utils'\n\n// Contexts\nexport const RouterCtx = new Context<RouterContext>(null as any)\nexport const RouteDepthCtx = new Context<number>(0)\n\n// Helper functions\nconst getDefaultLocation = (): Location => ({\n pathname: '/',\n search: '',\n hash: '',\n query: {},\n})\n\nconst getCurrentLocation = (): Location => {\n if (typeof window === 'undefined') {\n return getDefaultLocation()\n }\n\n // Handle srcdoc iframe - pathname may be empty or 'srcdoc'\n let pathname = window.location.pathname\n if (!pathname || pathname === 'srcdoc' || pathname === '/srcdoc') {\n pathname = '/'\n }\n\n return {\n pathname,\n search: window.location.search,\n hash: window.location.hash,\n query: parseQuery(window.location.search),\n }\n}\n\n// Global singleton location state\nlet globalLocation: Location | null = null\nlet globalNavigate: ((path: string) => void) | null = null\nlet popstateListenerAttached = false\n\n// Reset router state - used when app is re-rendered (e.g., srcdoc iframe update)\nexport function resetRouter(): void {\n // Full reset - force reinitialization on next useLocation() call\n globalLocation = null\n globalNavigate = null\n // Note: we don't reset popstateListenerAttached since the listener persists\n}\n\n// Create location state and navigation (singleton pattern)\nexport function useLocation(): [Location, (path: string) => void] {\n // Return existing singleton if already created\n if (globalLocation && globalNavigate) {\n return [globalLocation, globalNavigate]\n }\n\n // Create a reactive location object (only once)\n globalLocation = reactive<Location>(getCurrentLocation())\n\n const updateLocation = (newLocation: Location) => {\n if (!globalLocation) return\n globalLocation.pathname = newLocation.pathname\n globalLocation.search = newLocation.search\n globalLocation.hash = newLocation.hash\n globalLocation.query = newLocation.query\n }\n\n globalNavigate = (path: string) => {\n console.log('[Router] Navigate called:', path, 'globalLocation:', globalLocation)\n if (typeof window === 'undefined') return\n if (isUnsafePath(path)) {\n console.error('[Flexium Router] Blocked navigation to unsafe path:', path)\n return\n }\n\n // Try to update browser history, but continue even if it fails (e.g., in srcdoc iframe)\n try {\n window.history.pushState({}, '', path)\n } catch {\n // SecurityError in srcdoc iframe - ignore but continue with internal state update\n }\n\n // Always update internal location state for SPA navigation\n const newLocation = {\n pathname: path.split('?')[0].split('#')[0],\n search: path.includes('?') ? '?' + path.split('?')[1].split('#')[0] : '',\n hash: path.includes('#') ? '#' + path.split('#')[1] : '',\n query: parseQuery(path.includes('?') ? '?' + path.split('?')[1].split('#')[0] : '')\n }\n console.log('[Router] Updating location to:', newLocation)\n updateLocation(newLocation)\n console.log('[Router] After update, globalLocation:', globalLocation)\n }\n\n // Listen to popstate (only once)\n if (typeof window !== 'undefined' && !popstateListenerAttached) {\n window.addEventListener('popstate', () => {\n updateLocation(getCurrentLocation())\n })\n popstateListenerAttached = true\n }\n\n return [globalLocation, globalNavigate]\n}\n\n// Router hook - returns full router context\nexport function useRouter(): RouterContext {\n const [routerContext] = use(RouterCtx)\n if (!routerContext) {\n throw new Error('useRouter() must be called within a <Routes> component')\n }\n return routerContext\n}\n\n// Navigate hook - returns navigate function\nexport function useNavigate(): (path: string) => void {\n const [, navigate] = useLocation()\n return navigate\n}\n\n// Get navigate function directly (for use in event handlers to avoid stale closures)\nexport function getNavigate(): (path: string) => void {\n if (!globalNavigate) {\n useLocation() // Initialize if needed\n }\n return globalNavigate!\n}\n\n// Params hook - returns route params\nexport function useParams<T extends Record<string, string> = Record<string, string>>(): T {\n const router = useRouter()\n return router.params as T\n}\n\n// Query hook - returns query params\nexport function useQuery<T extends Record<string, string> = Record<string, string>>(): T {\n const [location] = useLocation()\n return location.query as T\n}\n","import type { RouteProps } from '../types'\n\nexport function Route(_props: RouteProps) {\n return null\n}\n","import { jsx as f } from '../../jsx-runtime'\nimport type { FNode, FNodeChild } from '../../dom/types'\nimport { RouterCtx, RouteDepthCtx, useLocation } from '../router'\nimport { createRoutesFromChildren, matchRoutes } from '../utils'\nimport { Route } from './Route'\n\nfunction isFNode(node: any): node is FNode {\n return node && typeof node === 'object' && ('type' in node || Array.isArray(node))\n}\n\nexport function Routes(props: { children: FNodeChild }) {\n const [currentLocation, navigate] = useLocation()\n\n // Parse children to find <Route> definitions and other content\n let childrenList: any[] = Array.isArray(props.children) ? props.children : [props.children]\n\n // Find routes for matching (but keep order with other children)\n const routeNodes = childrenList.filter(child => isFNode(child) && child.type === Route)\n // Track first Route index to insert matched content there\n const firstRouteIndex = childrenList.findIndex(child => isFNode(child) && child.type === Route)\n\n // Other children (non-Route) keep their positions relative to routes\n let beforeRouteChildren: any[] = []\n let afterRouteChildren: any[] = []\n\n if (firstRouteIndex === -1) {\n // No Route children - all are \"other\" children\n beforeRouteChildren = childrenList.filter(child => !isFNode(child) || child.type !== Route)\n } else {\n // Split at first Route position\n beforeRouteChildren = childrenList.slice(0, firstRouteIndex).filter(child => !isFNode(child) || child.type !== Route)\n afterRouteChildren = childrenList.slice(firstRouteIndex).filter(child => !isFNode(child) || child.type !== Route)\n }\n\n // Create route definitions\n const routeDefinitions = createRoutesFromChildren(routeNodes)\n\n // DIRECT access to currentLocation.pathname\n // This should trigger reactive tracking in the component's effect context\n const currentPath = currentLocation.pathname\n const matches = matchRoutes(routeDefinitions, currentPath) || []\n const params = matches.length > 0 ? matches[matches.length - 1].params : {}\n\n const routerContext = {\n location: currentLocation,\n navigate,\n matches: matches,\n params: params\n }\n\n // Render matched component\n let matchedContent: FNodeChild = null\n\n if (matches.length > 0) {\n const rootMatch = matches[0]\n const Component = rootMatch.route.component\n\n // Use pathname as key to force re-mount on route change\n const routeKey = currentPath\n\n // Guard Check\n if (rootMatch.route.beforeEnter) {\n const result = rootMatch.route.beforeEnter(rootMatch.params)\n if (result !== false) {\n matchedContent = f(RouteDepthCtx.Provider, {\n value: 1,\n key: routeKey,\n children: f(Component, { params: rootMatch.params, key: routeKey })\n })\n }\n } else {\n matchedContent = f(RouteDepthCtx.Provider, {\n value: 1,\n key: routeKey,\n children: f(Component, { params: rootMatch.params, key: routeKey })\n })\n }\n }\n\n return f(RouterCtx.Provider, {\n value: routerContext,\n children: [...beforeRouteChildren, matchedContent, ...afterRouteChildren]\n })\n}\n","import { use } from '../../core/use'\nimport { jsx as f } from '../../jsx-runtime'\nimport { RouteDepthCtx, useRouter } from '../router'\n\nexport function Outlet() {\n const routerContext = useRouter()\n const [depthValue] = use(RouteDepthCtx)\n const depth = depthValue ?? 0\n\n const [matches] = use(() => routerContext.matches)\n\n if (depth >= matches.length) return null\n\n const match = matches[depth]\n const Component = match.route.component\n\n // Guard\n if (match.route.beforeEnter) {\n if (match.route.beforeEnter(match.params) === false) return null\n }\n\n // Render next level\n return f(RouteDepthCtx.Provider, {\n value: depth + 1,\n children: f(Component, { params: match.params })\n })\n}\n","import { jsx as f } from '../../jsx-runtime'\nimport type { LinkProps } from '../types'\n\n// Import the navigate function getter, not the function itself\n// This ensures we always use the current navigate implementation\nimport { getNavigate } from '../router'\n\nexport function Link(props: LinkProps) {\n return f('a', {\n href: props.to,\n class: props.class || props.className,\n style: props.style ? props.style + '; cursor: pointer;' : 'cursor: pointer;',\n onclick: (event: Event) => {\n console.log('Link clicked:', props.to)\n event.preventDefault()\n // Get current navigate function at click time\n getNavigate()(props.to)\n },\n children: props.children\n })\n}\n"]}
@@ -1,2 +0,0 @@
1
- import {b,c}from'./chunk-MEJO2RIK.mjs';import {c as c$1}from'./chunk-FJNIW7B2.mjs';import {b as b$1}from'./chunk-NRPWBHKP.mjs';import {f,h as h$1,a,i,b as b$2}from'./chunk-TIUNOZRI.mjs';function Q(e,n,...t){return {type:e,props:n||{},children:t,key:n?.key}}var p=null,w=new WeakMap,h=null;function U(e,n,t={}){let{state:o,onHydrated:r,onMismatch:a}=t;p=n.firstChild;try{let i;typeof e=="function"&&!$(e)?i={type:e,props:{},children:[],key:void 0}:i=e,F(i,n),r?.();}catch(i){console.warn("[Flexium] Hydration mismatch, falling back to full render:",i),a?.(i),n.innerHTML="",import('./render-EA3YGOX2.mjs').then(({render:l})=>{l(e,n);});}finally{p=null;}}function $(e){return e&&typeof e=="object"&&"type"in e&&"props"in e}function F(e,n){if(e==null||typeof e=="boolean")return H(),null;if(typeof e=="string"||typeof e=="number")return Y(String(e));if(Array.isArray(e)){let t=[];for(let o of e){let r=F(o,n);r&&(Array.isArray(r)?t.push(...r):t.push(r));}return t}if(typeof e=="function")return V({type:e,props:{},children:[],key:void 0},n);if(typeof e=="object"&&$(e)){if(typeof e.type=="string")return Z(e);if(typeof e.type=="function")return V(e,n)}return null}function H(){for(;p&&p.nodeType===Node.TEXT_NODE&&(!p.textContent||p.textContent.trim()==="");)p=p.nextSibling;}function Y(e){H();let n=p;if(!n)return null;if(n.nodeType!==Node.TEXT_NODE){if(e.trim()==="")return null;throw new Error(`Hydration mismatch: expected text node "${e}", got ${n.nodeName}`)}return p=n.nextSibling,n}function Z(e){H();let n=p,t=e.type;if(!n||n.nodeType!==Node.ELEMENT_NODE)throw new Error(`Hydration mismatch: expected element <${t}>, got ${n?.nodeName||"nothing"}`);if(n.tagName.toLowerCase()!==t.toLowerCase())throw new Error(`Hydration mismatch: expected <${t}>, got <${n.tagName.toLowerCase()}>`);if(e.props){for(let[o,r]of Object.entries(e.props))if(o==="ref")typeof r=="function"?r(n):r&&typeof r=="object"&&"current"in r&&(r.current=n);else if(o.startsWith("on")&&typeof r=="function"){let a=o.slice(2).toLowerCase();n.addEventListener(a,r),n.__eventHandlers||(n.__eventHandlers={}),n.__eventHandlers[a]=r;}}if(p=n.nextSibling,e.children&&e.children.length>0){let o=p;p=n.firstChild;for(let r of e.children)F(r,n);p=o;}return n}function V(e,n){let t=e.type,o={...e.props};e.children&&e.children.length>0&&(o.children=e.children.length===1?e.children[0]:e.children);let r=t._contextId,a$1=r!==void 0,i$1;a$1&&(i$1=h$1(r,o.value)),w.has(n)||w.set(n,new Map);let l=w.get(n),C=e.key!==void 0,u;if(C)u=e.key;else {let c=0,y=t.name||"anonymous";l.forEach((v,x)=>{typeof x=="string"&&x.startsWith(`__auto_${y}_`)&&c++;}),u=`__auto_${y}_${c}`;}let s={hooks:[],hookIndex:0,nodes:[],parent:n,fnode:e,props:o,key:u,children:new Set,parentInstance:h||void 0};h&&h.children.add(s),l.set(u,s);let d=h;h=s;try{let c$1=a(s,()=>t(o)),y=F(c$1,n);s.nodes=y?Array.isArray(y)?y:[y]:[];let v=!0,x=()=>{let X=s.props,B=a(s,()=>t(X));if(v){v=!1;return}if(s.nodes.length===0){let g=b(B,n);s.nodes=g?Array.isArray(g)?g:[g]:[];return}let m=s.nodes[0].parentNode;if(!m)return;let E=document.createComment("flexium-marker"),L=s.nodes[s.nodes.length-1];L.nextSibling?m.insertBefore(E,L.nextSibling):m.appendChild(E),s.children.clear();let q=document.createElement("div"),N=b(B,q,m),G=N?Array.isArray(N)?N:[N]:[],J=c(s.nodes,G,m,E);m.removeChild(E),s.nodes=J;};return s.renderFn=x,b$1(x),s.nodes}finally{h=d,a$1&&i(r,i$1);}}var ee={register:()=>{},hasBoundary:false},P=new f(ee);function D(){let[e]=c$1(P);return e}function R(e){let{fallback:n,children:t}=e,o=b$2(()=>new Set),[,r]=c$1(0),[a,i]=c$1(false),C={register:s=>{o.has(s)||(o.add(s),r(d=>d+1),i(true),s.finally(()=>{o.delete(s),r(d=>{let c=d-1;return c===0&&i(false),c});}));},hasBoundary:true},u=a?n:t;return {type:P.Provider,props:{value:C},children:[u],key:void 0}}function W(e){let{fallback:n,onError:t,children:o,resetKey:r}=e,[a,i]=c$1({error:null,info:null}),l=b$2(()=>({current:r}));r!==l.current&&(l.current=r,a.error!==null&&i({error:null,info:null}));if(a.error)return typeof n=="function"?n(a.error,a.info):n;try{return o}finally{}}function K(e){let n=null,t=null,o=null,r=a=>{if(n)return n(a);if(o)throw o;let i=D();return t||(t=e().then(l=>{n=l.default;}).catch(l=>{o=l instanceof Error?l:new Error(String(l));})),i.hasBoundary&&i.register(t),null};return r._lazy=true,r._loader=e,r}export{Q as a,U as b,R as c,W as d,K as e};//# sourceMappingURL=chunk-73DADJFW.mjs.map
2
- //# sourceMappingURL=chunk-73DADJFW.mjs.map