groove-dev 0.26.39 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/CLAUDE.md +24 -19
- package/node_modules/@groove-dev/cli/package.json +1 -1
- package/node_modules/@groove-dev/daemon/integrations-registry.json +548 -0
- package/node_modules/@groove-dev/daemon/package.json +1 -1
- package/node_modules/@groove-dev/daemon/src/api.js +172 -4
- package/node_modules/@groove-dev/daemon/src/classifier.js +20 -1
- package/node_modules/@groove-dev/daemon/src/firstrun.js +14 -1
- package/node_modules/@groove-dev/daemon/src/gateways/manager.js +2 -2
- package/node_modules/@groove-dev/daemon/src/index.js +3 -1
- package/node_modules/@groove-dev/daemon/src/introducer.js +56 -5
- package/node_modules/@groove-dev/daemon/src/journalist.js +43 -1
- package/node_modules/@groove-dev/daemon/src/lockmanager.js +60 -0
- package/node_modules/@groove-dev/daemon/src/mcp-manager.js +2 -1
- package/node_modules/@groove-dev/daemon/src/memory.js +370 -0
- package/node_modules/@groove-dev/daemon/src/pm.js +1 -1
- package/node_modules/@groove-dev/daemon/src/process.js +20 -1
- package/node_modules/@groove-dev/daemon/src/rotator.js +155 -5
- package/node_modules/@groove-dev/daemon/src/router.js +43 -0
- package/node_modules/@groove-dev/daemon/src/tokentracker.js +62 -8
- package/node_modules/@groove-dev/daemon/src/validate.js +0 -13
- package/node_modules/@groove-dev/daemon/test/lockmanager.test.js +64 -0
- package/node_modules/@groove-dev/daemon/test/memory.test.js +252 -0
- package/node_modules/@groove-dev/daemon/test/rotator.test.js +108 -0
- package/node_modules/@groove-dev/daemon/test/router.test.js +64 -0
- package/node_modules/@groove-dev/daemon/test/tokentracker.test.js +78 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-DjORRpF0.css +1 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-eCrVowF0.js +652 -0
- package/node_modules/@groove-dev/gui/dist/index.html +2 -2
- package/node_modules/@groove-dev/gui/package.json +1 -4
- package/node_modules/@groove-dev/gui/src/components/agents/spawn-wizard.jsx +18 -0
- package/node_modules/@groove-dev/gui/src/components/dashboard/cache-ring.jsx +6 -2
- package/node_modules/@groove-dev/gui/src/components/dashboard/intel-panel.jsx +251 -8
- package/node_modules/@groove-dev/gui/src/components/dashboard/team-burn-panel.jsx +55 -0
- package/node_modules/@groove-dev/gui/src/components/marketplace/marketplace-card.jsx +22 -4
- package/node_modules/@groove-dev/gui/src/lib/format.js +0 -6
- package/node_modules/@groove-dev/gui/src/lib/hooks/use-dashboard.js +18 -1
- package/node_modules/@groove-dev/gui/src/stores/groove.js +0 -2
- package/node_modules/@groove-dev/gui/src/views/dashboard.jsx +9 -2
- package/node_modules/@groove-dev/gui/src/views/marketplace.jsx +103 -77
- package/package.json +2 -8
- package/packages/cli/package.json +1 -1
- package/packages/daemon/integrations-registry.json +548 -0
- package/packages/daemon/package.json +1 -1
- package/packages/daemon/src/api.js +172 -4
- package/packages/daemon/src/classifier.js +20 -1
- package/packages/daemon/src/firstrun.js +14 -1
- package/packages/daemon/src/gateways/manager.js +2 -2
- package/packages/daemon/src/index.js +3 -1
- package/packages/daemon/src/introducer.js +56 -5
- package/packages/daemon/src/journalist.js +43 -1
- package/packages/daemon/src/lockmanager.js +60 -0
- package/packages/daemon/src/mcp-manager.js +2 -1
- package/packages/daemon/src/memory.js +370 -0
- package/packages/daemon/src/pm.js +1 -1
- package/packages/daemon/src/process.js +20 -1
- package/packages/daemon/src/rotator.js +155 -5
- package/packages/daemon/src/router.js +43 -0
- package/packages/daemon/src/tokentracker.js +62 -8
- package/packages/daemon/src/validate.js +0 -13
- package/packages/gui/dist/assets/index-DjORRpF0.css +1 -0
- package/packages/gui/dist/assets/index-eCrVowF0.js +652 -0
- package/packages/gui/dist/index.html +2 -2
- package/packages/gui/package.json +1 -4
- package/packages/gui/src/components/agents/spawn-wizard.jsx +18 -0
- package/packages/gui/src/components/dashboard/cache-ring.jsx +6 -2
- package/packages/gui/src/components/dashboard/intel-panel.jsx +251 -8
- package/packages/gui/src/components/dashboard/team-burn-panel.jsx +55 -0
- package/packages/gui/src/components/marketplace/marketplace-card.jsx +22 -4
- package/packages/gui/src/lib/format.js +0 -6
- package/packages/gui/src/lib/hooks/use-dashboard.js +18 -1
- package/packages/gui/src/stores/groove.js +0 -2
- package/packages/gui/src/views/dashboard.jsx +9 -2
- package/packages/gui/src/views/marketplace.jsx +103 -77
- package/docs-manager/DOCS-WORKFLOW.md +0 -176
- package/node_modules/@groove-dev/gui/dist/assets/index-BkY43sei.css +0 -1
- package/node_modules/@groove-dev/gui/dist/assets/index-DmKZLrXU.js +0 -652
- package/node_modules/@groove-dev/gui/dist/groove-logo-short.png +0 -0
- package/node_modules/@groove-dev/gui/dist/groove-logo.png +0 -0
- package/node_modules/@groove-dev/gui/public/groove-logo-short.png +0 -0
- package/node_modules/@groove-dev/gui/public/groove-logo.png +0 -0
- package/node_modules/@groove-dev/gui/src/components/ui/dropdown-menu.jsx +0 -60
- package/node_modules/@groove-dev/gui/src/lib/hooks/use-media-query.js +0 -18
- package/node_modules/@radix-ui/react-dropdown-menu/LICENSE +0 -21
- package/node_modules/@radix-ui/react-dropdown-menu/README.md +0 -3
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.mts +0 -97
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.d.ts +0 -97
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -337
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +0 -305
- package/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-dropdown-menu/package.json +0 -75
- package/node_modules/@radix-ui/react-popover/LICENSE +0 -21
- package/node_modules/@radix-ui/react-popover/README.md +0 -3
- package/node_modules/@radix-ui/react-popover/dist/index.d.mts +0 -85
- package/node_modules/@radix-ui/react-popover/dist/index.d.ts +0 -85
- package/node_modules/@radix-ui/react-popover/dist/index.js +0 -352
- package/node_modules/@radix-ui/react-popover/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-popover/dist/index.mjs +0 -320
- package/node_modules/@radix-ui/react-popover/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-popover/package.json +0 -82
- package/node_modules/@radix-ui/react-separator/LICENSE +0 -21
- package/node_modules/@radix-ui/react-separator/README.md +0 -3
- package/node_modules/@radix-ui/react-separator/dist/index.d.mts +0 -21
- package/node_modules/@radix-ui/react-separator/dist/index.d.ts +0 -21
- package/node_modules/@radix-ui/react-separator/dist/index.js +0 -65
- package/node_modules/@radix-ui/react-separator/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-separator/dist/index.mjs +0 -32
- package/node_modules/@radix-ui/react-separator/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/LICENSE +0 -21
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/README.md +0 -3
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.d.mts +0 -52
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.d.ts +0 -52
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +0 -80
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs +0 -47
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/package.json +0 -69
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/LICENSE +0 -21
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/README.md +0 -3
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.d.mts +0 -22
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.d.ts +0 -22
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.js +0 -152
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.js.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.mjs +0 -119
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/dist/index.mjs.map +0 -7
- package/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-slot/package.json +0 -64
- package/node_modules/@radix-ui/react-separator/package.json +0 -69
- package/packages/gui/dist/assets/index-BkY43sei.css +0 -1
- package/packages/gui/dist/assets/index-DmKZLrXU.js +0 -652
- package/packages/gui/dist/groove-logo-short.png +0 -0
- package/packages/gui/dist/groove-logo.png +0 -0
- package/packages/gui/public/groove-logo-short.png +0 -0
- package/packages/gui/public/groove-logo.png +0 -0
- package/packages/gui/src/components/ui/dropdown-menu.jsx +0 -60
- package/packages/gui/src/lib/hooks/use-media-query.js +0 -18
- package/slides/convert-slides.js +0 -1120
- package/slides/deck.pptx +0 -0
- package/slides/index.html +0 -825
- package/slides/node_modules/.package-lock.json +0 -527
- package/slides/node_modules/@types/node/LICENSE +0 -21
- package/slides/node_modules/@types/node/README.md +0 -15
- package/slides/node_modules/@types/node/assert/strict.d.ts +0 -111
- package/slides/node_modules/@types/node/assert.d.ts +0 -1078
- package/slides/node_modules/@types/node/async_hooks.d.ts +0 -603
- package/slides/node_modules/@types/node/buffer.buffer.d.ts +0 -472
- package/slides/node_modules/@types/node/buffer.d.ts +0 -1934
- package/slides/node_modules/@types/node/child_process.d.ts +0 -1476
- package/slides/node_modules/@types/node/cluster.d.ts +0 -578
- package/slides/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
- package/slides/node_modules/@types/node/compatibility/index.d.ts +0 -9
- package/slides/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
- package/slides/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
- package/slides/node_modules/@types/node/console.d.ts +0 -452
- package/slides/node_modules/@types/node/constants.d.ts +0 -21
- package/slides/node_modules/@types/node/crypto.d.ts +0 -4545
- package/slides/node_modules/@types/node/dgram.d.ts +0 -600
- package/slides/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
- package/slides/node_modules/@types/node/dns/promises.d.ts +0 -503
- package/slides/node_modules/@types/node/dns.d.ts +0 -923
- package/slides/node_modules/@types/node/domain.d.ts +0 -170
- package/slides/node_modules/@types/node/events.d.ts +0 -976
- package/slides/node_modules/@types/node/fs/promises.d.ts +0 -1295
- package/slides/node_modules/@types/node/fs.d.ts +0 -4461
- package/slides/node_modules/@types/node/globals.d.ts +0 -172
- package/slides/node_modules/@types/node/globals.typedarray.d.ts +0 -38
- package/slides/node_modules/@types/node/http.d.ts +0 -2089
- package/slides/node_modules/@types/node/http2.d.ts +0 -2644
- package/slides/node_modules/@types/node/https.d.ts +0 -579
- package/slides/node_modules/@types/node/index.d.ts +0 -97
- package/slides/node_modules/@types/node/inspector.d.ts +0 -253
- package/slides/node_modules/@types/node/inspector.generated.d.ts +0 -4052
- package/slides/node_modules/@types/node/module.d.ts +0 -891
- package/slides/node_modules/@types/node/net.d.ts +0 -1076
- package/slides/node_modules/@types/node/os.d.ts +0 -506
- package/slides/node_modules/@types/node/package.json +0 -145
- package/slides/node_modules/@types/node/path.d.ts +0 -200
- package/slides/node_modules/@types/node/perf_hooks.d.ts +0 -968
- package/slides/node_modules/@types/node/process.d.ts +0 -2084
- package/slides/node_modules/@types/node/punycode.d.ts +0 -117
- package/slides/node_modules/@types/node/querystring.d.ts +0 -152
- package/slides/node_modules/@types/node/readline/promises.d.ts +0 -161
- package/slides/node_modules/@types/node/readline.d.ts +0 -594
- package/slides/node_modules/@types/node/repl.d.ts +0 -428
- package/slides/node_modules/@types/node/sea.d.ts +0 -153
- package/slides/node_modules/@types/node/sqlite.d.ts +0 -721
- package/slides/node_modules/@types/node/stream/consumers.d.ts +0 -38
- package/slides/node_modules/@types/node/stream/promises.d.ts +0 -90
- package/slides/node_modules/@types/node/stream/web.d.ts +0 -622
- package/slides/node_modules/@types/node/stream.d.ts +0 -1687
- package/slides/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/slides/node_modules/@types/node/test.d.ts +0 -2163
- package/slides/node_modules/@types/node/timers/promises.d.ts +0 -108
- package/slides/node_modules/@types/node/timers.d.ts +0 -287
- package/slides/node_modules/@types/node/tls.d.ts +0 -1319
- package/slides/node_modules/@types/node/trace_events.d.ts +0 -197
- package/slides/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
- package/slides/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
- package/slides/node_modules/@types/node/ts5.6/index.d.ts +0 -97
- package/slides/node_modules/@types/node/tty.d.ts +0 -208
- package/slides/node_modules/@types/node/url.d.ts +0 -984
- package/slides/node_modules/@types/node/util.d.ts +0 -2606
- package/slides/node_modules/@types/node/v8.d.ts +0 -920
- package/slides/node_modules/@types/node/vm.d.ts +0 -1000
- package/slides/node_modules/@types/node/wasi.d.ts +0 -181
- package/slides/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
- package/slides/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
- package/slides/node_modules/@types/node/web-globals/events.d.ts +0 -97
- package/slides/node_modules/@types/node/web-globals/fetch.d.ts +0 -55
- package/slides/node_modules/@types/node/web-globals/navigator.d.ts +0 -22
- package/slides/node_modules/@types/node/web-globals/storage.d.ts +0 -24
- package/slides/node_modules/@types/node/worker_threads.d.ts +0 -784
- package/slides/node_modules/@types/node/zlib.d.ts +0 -747
- package/slides/node_modules/base64-js/LICENSE +0 -21
- package/slides/node_modules/base64-js/README.md +0 -34
- package/slides/node_modules/base64-js/base64js.min.js +0 -1
- package/slides/node_modules/base64-js/index.d.ts +0 -3
- package/slides/node_modules/base64-js/index.js +0 -150
- package/slides/node_modules/base64-js/package.json +0 -47
- package/slides/node_modules/bl/.travis.yml +0 -17
- package/slides/node_modules/bl/BufferList.js +0 -396
- package/slides/node_modules/bl/LICENSE.md +0 -13
- package/slides/node_modules/bl/README.md +0 -247
- package/slides/node_modules/bl/bl.js +0 -84
- package/slides/node_modules/bl/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/slides/node_modules/bl/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/slides/node_modules/bl/node_modules/readable-stream/LICENSE +0 -47
- package/slides/node_modules/bl/node_modules/readable-stream/README.md +0 -106
- package/slides/node_modules/bl/node_modules/readable-stream/errors-browser.js +0 -127
- package/slides/node_modules/bl/node_modules/readable-stream/errors.js +0 -116
- package/slides/node_modules/bl/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/slides/node_modules/bl/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/slides/node_modules/bl/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/slides/node_modules/bl/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/slides/node_modules/bl/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/slides/node_modules/bl/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/slides/node_modules/bl/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/slides/node_modules/bl/node_modules/readable-stream/package.json +0 -68
- package/slides/node_modules/bl/node_modules/readable-stream/readable-browser.js +0 -9
- package/slides/node_modules/bl/node_modules/readable-stream/readable.js +0 -16
- package/slides/node_modules/bl/package.json +0 -37
- package/slides/node_modules/bl/test/convert.js +0 -21
- package/slides/node_modules/bl/test/indexOf.js +0 -492
- package/slides/node_modules/bl/test/isBufferList.js +0 -32
- package/slides/node_modules/bl/test/test.js +0 -869
- package/slides/node_modules/buffer/AUTHORS.md +0 -70
- package/slides/node_modules/buffer/LICENSE +0 -21
- package/slides/node_modules/buffer/README.md +0 -410
- package/slides/node_modules/buffer/index.d.ts +0 -186
- package/slides/node_modules/buffer/index.js +0 -1817
- package/slides/node_modules/buffer/package.json +0 -96
- package/slides/node_modules/canvas/Readme.md +0 -657
- package/slides/node_modules/canvas/binding.gyp +0 -229
- package/slides/node_modules/canvas/browser.js +0 -31
- package/slides/node_modules/canvas/build/Makefile +0 -347
- package/slides/node_modules/canvas/build/Release/canvas.node +0 -0
- package/slides/node_modules/canvas/build/Release/libX11.6.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libXau.6.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libXdmcp.6.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libXext.6.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libXrender.1.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libcairo-gobject.2.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libcairo.2.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libdatrie.1.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libfontconfig.1.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libfreetype.6.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libfribidi.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libgdk_pixbuf-2.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libgif.7.2.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libgio-2.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libglib-2.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libgmodule-2.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libgobject-2.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libgraphite2.3.2.1.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libharfbuzz.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libintl.8.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libjpeg.8.3.2.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libpango-1.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libpangocairo-1.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libpangoft2-1.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libpcre2-8.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libpixman-1.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libpng16.16.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/librsvg-2.2.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libthai.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libxcb-render.0.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libxcb-shm.0.0.0.dylib +0 -0
- package/slides/node_modules/canvas/build/Release/libxcb.1.1.0.dylib +0 -0
- package/slides/node_modules/canvas/build/binding.Makefile +0 -6
- package/slides/node_modules/canvas/build/canvas.target.mk +0 -299
- package/slides/node_modules/canvas/build/gyp-mac-tool +0 -766
- package/slides/node_modules/canvas/index.d.ts +0 -507
- package/slides/node_modules/canvas/index.js +0 -94
- package/slides/node_modules/canvas/lib/DOMMatrix.js +0 -678
- package/slides/node_modules/canvas/lib/bindings.js +0 -43
- package/slides/node_modules/canvas/lib/canvas.js +0 -113
- package/slides/node_modules/canvas/lib/context2d.js +0 -11
- package/slides/node_modules/canvas/lib/image.js +0 -97
- package/slides/node_modules/canvas/lib/jpegstream.js +0 -41
- package/slides/node_modules/canvas/lib/pattern.js +0 -15
- package/slides/node_modules/canvas/lib/pdfstream.js +0 -35
- package/slides/node_modules/canvas/lib/pngstream.js +0 -42
- package/slides/node_modules/canvas/package.json +0 -71
- package/slides/node_modules/canvas/src/Backends.h +0 -9
- package/slides/node_modules/canvas/src/Canvas.cc +0 -1026
- package/slides/node_modules/canvas/src/Canvas.h +0 -128
- package/slides/node_modules/canvas/src/CanvasError.h +0 -37
- package/slides/node_modules/canvas/src/CanvasGradient.cc +0 -113
- package/slides/node_modules/canvas/src/CanvasGradient.h +0 -20
- package/slides/node_modules/canvas/src/CanvasPattern.cc +0 -129
- package/slides/node_modules/canvas/src/CanvasPattern.h +0 -33
- package/slides/node_modules/canvas/src/CanvasRenderingContext2d.cc +0 -3527
- package/slides/node_modules/canvas/src/CanvasRenderingContext2d.h +0 -238
- package/slides/node_modules/canvas/src/CharData.h +0 -233
- package/slides/node_modules/canvas/src/FontParser.cc +0 -605
- package/slides/node_modules/canvas/src/FontParser.h +0 -115
- package/slides/node_modules/canvas/src/Image.cc +0 -1719
- package/slides/node_modules/canvas/src/Image.h +0 -146
- package/slides/node_modules/canvas/src/ImageData.cc +0 -138
- package/slides/node_modules/canvas/src/ImageData.h +0 -26
- package/slides/node_modules/canvas/src/InstanceData.h +0 -12
- package/slides/node_modules/canvas/src/JPEGStream.h +0 -157
- package/slides/node_modules/canvas/src/PNG.h +0 -292
- package/slides/node_modules/canvas/src/Point.h +0 -11
- package/slides/node_modules/canvas/src/Util.h +0 -9
- package/slides/node_modules/canvas/src/bmp/BMPParser.cc +0 -459
- package/slides/node_modules/canvas/src/bmp/BMPParser.h +0 -60
- package/slides/node_modules/canvas/src/bmp/LICENSE.md +0 -24
- package/slides/node_modules/canvas/src/closure.cc +0 -52
- package/slides/node_modules/canvas/src/closure.h +0 -98
- package/slides/node_modules/canvas/src/color.cc +0 -796
- package/slides/node_modules/canvas/src/color.h +0 -30
- package/slides/node_modules/canvas/src/dll_visibility.h +0 -20
- package/slides/node_modules/canvas/src/init.cc +0 -114
- package/slides/node_modules/canvas/src/register_font.cc +0 -352
- package/slides/node_modules/canvas/src/register_font.h +0 -7
- package/slides/node_modules/canvas/util/has_lib.js +0 -119
- package/slides/node_modules/canvas/util/win_jpeg_lookup.js +0 -21
- package/slides/node_modules/chownr/LICENSE +0 -15
- package/slides/node_modules/chownr/README.md +0 -3
- package/slides/node_modules/chownr/chownr.js +0 -167
- package/slides/node_modules/chownr/package.json +0 -29
- package/slides/node_modules/core-util-is/LICENSE +0 -19
- package/slides/node_modules/core-util-is/README.md +0 -3
- package/slides/node_modules/core-util-is/lib/util.js +0 -107
- package/slides/node_modules/core-util-is/package.json +0 -38
- package/slides/node_modules/decompress-response/index.d.ts +0 -22
- package/slides/node_modules/decompress-response/index.js +0 -58
- package/slides/node_modules/decompress-response/license +0 -9
- package/slides/node_modules/decompress-response/package.json +0 -56
- package/slides/node_modules/decompress-response/readme.md +0 -48
- package/slides/node_modules/deep-extend/CHANGELOG.md +0 -46
- package/slides/node_modules/deep-extend/LICENSE +0 -20
- package/slides/node_modules/deep-extend/README.md +0 -91
- package/slides/node_modules/deep-extend/index.js +0 -1
- package/slides/node_modules/deep-extend/lib/deep-extend.js +0 -150
- package/slides/node_modules/deep-extend/package.json +0 -62
- package/slides/node_modules/detect-libc/LICENSE +0 -201
- package/slides/node_modules/detect-libc/README.md +0 -163
- package/slides/node_modules/detect-libc/index.d.ts +0 -14
- package/slides/node_modules/detect-libc/lib/detect-libc.js +0 -313
- package/slides/node_modules/detect-libc/lib/elf.js +0 -39
- package/slides/node_modules/detect-libc/lib/filesystem.js +0 -51
- package/slides/node_modules/detect-libc/lib/process.js +0 -24
- package/slides/node_modules/detect-libc/package.json +0 -44
- package/slides/node_modules/end-of-stream/LICENSE +0 -21
- package/slides/node_modules/end-of-stream/README.md +0 -54
- package/slides/node_modules/end-of-stream/index.js +0 -96
- package/slides/node_modules/end-of-stream/package.json +0 -37
- package/slides/node_modules/expand-template/.travis.yml +0 -6
- package/slides/node_modules/expand-template/LICENSE +0 -21
- package/slides/node_modules/expand-template/README.md +0 -43
- package/slides/node_modules/expand-template/index.js +0 -26
- package/slides/node_modules/expand-template/package.json +0 -29
- package/slides/node_modules/expand-template/test.js +0 -67
- package/slides/node_modules/fs-constants/LICENSE +0 -21
- package/slides/node_modules/fs-constants/README.md +0 -26
- package/slides/node_modules/fs-constants/browser.js +0 -1
- package/slides/node_modules/fs-constants/index.js +0 -1
- package/slides/node_modules/fs-constants/package.json +0 -19
- package/slides/node_modules/github-from-package/.travis.yml +0 -4
- package/slides/node_modules/github-from-package/LICENSE +0 -18
- package/slides/node_modules/github-from-package/example/package.json +0 -8
- package/slides/node_modules/github-from-package/example/url.js +0 -3
- package/slides/node_modules/github-from-package/index.js +0 -17
- package/slides/node_modules/github-from-package/package.json +0 -30
- package/slides/node_modules/github-from-package/readme.markdown +0 -53
- package/slides/node_modules/github-from-package/test/a.json +0 -8
- package/slides/node_modules/github-from-package/test/b.json +0 -5
- package/slides/node_modules/github-from-package/test/c.json +0 -5
- package/slides/node_modules/github-from-package/test/d.json +0 -7
- package/slides/node_modules/github-from-package/test/e.json +0 -5
- package/slides/node_modules/github-from-package/test/url.js +0 -19
- package/slides/node_modules/https/package.json +0 -15
- package/slides/node_modules/ieee754/LICENSE +0 -11
- package/slides/node_modules/ieee754/README.md +0 -51
- package/slides/node_modules/ieee754/index.d.ts +0 -10
- package/slides/node_modules/ieee754/index.js +0 -85
- package/slides/node_modules/ieee754/package.json +0 -52
- package/slides/node_modules/image-size/LICENSE +0 -9
- package/slides/node_modules/image-size/Readme.md +0 -184
- package/slides/node_modules/image-size/bin/image-size.js +0 -53
- package/slides/node_modules/image-size/dist/detector.d.ts +0 -2
- package/slides/node_modules/image-size/dist/detector.js +0 -30
- package/slides/node_modules/image-size/dist/index.d.ts +0 -10
- package/slides/node_modules/image-size/dist/index.js +0 -129
- package/slides/node_modules/image-size/dist/types/bmp.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/bmp.js +0 -11
- package/slides/node_modules/image-size/dist/types/cur.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/cur.js +0 -17
- package/slides/node_modules/image-size/dist/types/dds.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/dds.js +0 -11
- package/slides/node_modules/image-size/dist/types/gif.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/gif.js +0 -12
- package/slides/node_modules/image-size/dist/types/heif.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/heif.js +0 -40
- package/slides/node_modules/image-size/dist/types/icns.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/icns.js +0 -101
- package/slides/node_modules/image-size/dist/types/ico.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/ico.js +0 -68
- package/slides/node_modules/image-size/dist/types/index.d.ts +0 -23
- package/slides/node_modules/image-size/dist/types/index.js +0 -46
- package/slides/node_modules/image-size/dist/types/interface.d.ts +0 -13
- package/slides/node_modules/image-size/dist/types/interface.js +0 -2
- package/slides/node_modules/image-size/dist/types/j2c.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/j2c.js +0 -12
- package/slides/node_modules/image-size/dist/types/jp2.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/jp2.js +0 -27
- package/slides/node_modules/image-size/dist/types/jpg.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/jpg.js +0 -123
- package/slides/node_modules/image-size/dist/types/jxl-stream.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/jxl-stream.js +0 -45
- package/slides/node_modules/image-size/dist/types/jxl.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/jxl.js +0 -59
- package/slides/node_modules/image-size/dist/types/ktx.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/ktx.js +0 -19
- package/slides/node_modules/image-size/dist/types/png.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/png.js +0 -35
- package/slides/node_modules/image-size/dist/types/pnm.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/pnm.js +0 -72
- package/slides/node_modules/image-size/dist/types/psd.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/psd.js +0 -11
- package/slides/node_modules/image-size/dist/types/svg.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/svg.js +0 -90
- package/slides/node_modules/image-size/dist/types/tga.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/tga.js +0 -15
- package/slides/node_modules/image-size/dist/types/tiff.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/tiff.js +0 -95
- package/slides/node_modules/image-size/dist/types/utils.d.ts +0 -15
- package/slides/node_modules/image-size/dist/types/utils.js +0 -75
- package/slides/node_modules/image-size/dist/types/webp.d.ts +0 -2
- package/slides/node_modules/image-size/dist/types/webp.js +0 -60
- package/slides/node_modules/image-size/dist/utils/bit-reader.d.ts +0 -10
- package/slides/node_modules/image-size/dist/utils/bit-reader.js +0 -44
- package/slides/node_modules/image-size/package.json +0 -81
- package/slides/node_modules/immediate/LICENSE.txt +0 -20
- package/slides/node_modules/immediate/README.md +0 -93
- package/slides/node_modules/immediate/dist/immediate.js +0 -75
- package/slides/node_modules/immediate/dist/immediate.min.js +0 -1
- package/slides/node_modules/immediate/lib/browser.js +0 -69
- package/slides/node_modules/immediate/lib/index.js +0 -73
- package/slides/node_modules/immediate/package.json +0 -42
- package/slides/node_modules/inherits/LICENSE +0 -16
- package/slides/node_modules/inherits/README.md +0 -42
- package/slides/node_modules/inherits/inherits.js +0 -9
- package/slides/node_modules/inherits/inherits_browser.js +0 -27
- package/slides/node_modules/inherits/package.json +0 -29
- package/slides/node_modules/ini/LICENSE +0 -15
- package/slides/node_modules/ini/README.md +0 -102
- package/slides/node_modules/ini/ini.js +0 -206
- package/slides/node_modules/ini/package.json +0 -33
- package/slides/node_modules/isarray/.travis.yml +0 -4
- package/slides/node_modules/isarray/Makefile +0 -6
- package/slides/node_modules/isarray/README.md +0 -60
- package/slides/node_modules/isarray/component.json +0 -19
- package/slides/node_modules/isarray/index.js +0 -5
- package/slides/node_modules/isarray/package.json +0 -45
- package/slides/node_modules/isarray/test.js +0 -20
- package/slides/node_modules/jszip/.codeclimate.yml +0 -16
- package/slides/node_modules/jszip/.editorconfig +0 -8
- package/slides/node_modules/jszip/.eslintrc.js +0 -43
- package/slides/node_modules/jszip/.github/workflows/pr.yaml +0 -58
- package/slides/node_modules/jszip/.jekyll-metadata +0 -0
- package/slides/node_modules/jszip/.travis.yml +0 -17
- package/slides/node_modules/jszip/CHANGES.md +0 -204
- package/slides/node_modules/jszip/LICENSE.markdown +0 -651
- package/slides/node_modules/jszip/README.markdown +0 -33
- package/slides/node_modules/jszip/deps.js +0 -37
- package/slides/node_modules/jszip/dist/jszip.js +0 -11577
- package/slides/node_modules/jszip/dist/jszip.min.js +0 -13
- package/slides/node_modules/jszip/graph.svg +0 -601
- package/slides/node_modules/jszip/index.d.ts +0 -330
- package/slides/node_modules/jszip/lib/base64.js +0 -106
- package/slides/node_modules/jszip/lib/compressedObject.js +0 -74
- package/slides/node_modules/jszip/lib/compressions.js +0 -14
- package/slides/node_modules/jszip/lib/crc32.js +0 -77
- package/slides/node_modules/jszip/lib/defaults.js +0 -11
- package/slides/node_modules/jszip/lib/external.js +0 -18
- package/slides/node_modules/jszip/lib/flate.js +0 -85
- package/slides/node_modules/jszip/lib/generate/ZipFileWorker.js +0 -539
- package/slides/node_modules/jszip/lib/generate/index.js +0 -57
- package/slides/node_modules/jszip/lib/index.js +0 -55
- package/slides/node_modules/jszip/lib/license_header.js +0 -11
- package/slides/node_modules/jszip/lib/load.js +0 -88
- package/slides/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +0 -74
- package/slides/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +0 -42
- package/slides/node_modules/jszip/lib/nodejsUtils.js +0 -57
- package/slides/node_modules/jszip/lib/object.js +0 -384
- package/slides/node_modules/jszip/lib/readable-stream-browser.js +0 -10
- package/slides/node_modules/jszip/lib/reader/ArrayReader.js +0 -57
- package/slides/node_modules/jszip/lib/reader/DataReader.js +0 -116
- package/slides/node_modules/jszip/lib/reader/NodeBufferReader.js +0 -19
- package/slides/node_modules/jszip/lib/reader/StringReader.js +0 -38
- package/slides/node_modules/jszip/lib/reader/Uint8ArrayReader.js +0 -22
- package/slides/node_modules/jszip/lib/reader/readerFor.js +0 -28
- package/slides/node_modules/jszip/lib/signature.js +0 -7
- package/slides/node_modules/jszip/lib/stream/ConvertWorker.js +0 -26
- package/slides/node_modules/jszip/lib/stream/Crc32Probe.js +0 -24
- package/slides/node_modules/jszip/lib/stream/DataLengthProbe.js +0 -29
- package/slides/node_modules/jszip/lib/stream/DataWorker.js +0 -116
- package/slides/node_modules/jszip/lib/stream/GenericWorker.js +0 -263
- package/slides/node_modules/jszip/lib/stream/StreamHelper.js +0 -214
- package/slides/node_modules/jszip/lib/support.js +0 -38
- package/slides/node_modules/jszip/lib/utf8.js +0 -275
- package/slides/node_modules/jszip/lib/utils.js +0 -501
- package/slides/node_modules/jszip/lib/zipEntries.js +0 -261
- package/slides/node_modules/jszip/lib/zipEntry.js +0 -293
- package/slides/node_modules/jszip/lib/zipObject.js +0 -133
- package/slides/node_modules/jszip/package.json +0 -67
- package/slides/node_modules/jszip/sponsors.md +0 -21
- package/slides/node_modules/jszip/tsconfig.json +0 -101
- package/slides/node_modules/jszip/vendor/FileSaver.js +0 -247
- package/slides/node_modules/lie/README.md +0 -62
- package/slides/node_modules/lie/dist/lie.js +0 -350
- package/slides/node_modules/lie/dist/lie.min.js +0 -1
- package/slides/node_modules/lie/dist/lie.polyfill.js +0 -358
- package/slides/node_modules/lie/dist/lie.polyfill.min.js +0 -1
- package/slides/node_modules/lie/lib/browser.js +0 -273
- package/slides/node_modules/lie/lib/index.js +0 -298
- package/slides/node_modules/lie/license.md +0 -7
- package/slides/node_modules/lie/lie.d.ts +0 -244
- package/slides/node_modules/lie/package.json +0 -69
- package/slides/node_modules/lie/polyfill.js +0 -4
- package/slides/node_modules/mimic-response/index.d.ts +0 -17
- package/slides/node_modules/mimic-response/index.js +0 -77
- package/slides/node_modules/mimic-response/license +0 -9
- package/slides/node_modules/mimic-response/package.json +0 -42
- package/slides/node_modules/mimic-response/readme.md +0 -78
- package/slides/node_modules/minimist/.eslintrc +0 -29
- package/slides/node_modules/minimist/.github/FUNDING.yml +0 -12
- package/slides/node_modules/minimist/.nycrc +0 -14
- package/slides/node_modules/minimist/CHANGELOG.md +0 -298
- package/slides/node_modules/minimist/LICENSE +0 -18
- package/slides/node_modules/minimist/README.md +0 -121
- package/slides/node_modules/minimist/example/parse.js +0 -4
- package/slides/node_modules/minimist/index.js +0 -263
- package/slides/node_modules/minimist/package.json +0 -75
- package/slides/node_modules/minimist/test/all_bool.js +0 -34
- package/slides/node_modules/minimist/test/bool.js +0 -177
- package/slides/node_modules/minimist/test/dash.js +0 -43
- package/slides/node_modules/minimist/test/default_bool.js +0 -37
- package/slides/node_modules/minimist/test/dotted.js +0 -24
- package/slides/node_modules/minimist/test/kv_short.js +0 -32
- package/slides/node_modules/minimist/test/long.js +0 -33
- package/slides/node_modules/minimist/test/num.js +0 -38
- package/slides/node_modules/minimist/test/parse.js +0 -209
- package/slides/node_modules/minimist/test/parse_modified.js +0 -11
- package/slides/node_modules/minimist/test/proto.js +0 -64
- package/slides/node_modules/minimist/test/short.js +0 -69
- package/slides/node_modules/minimist/test/stop_early.js +0 -17
- package/slides/node_modules/minimist/test/unknown.js +0 -104
- package/slides/node_modules/minimist/test/whitespace.js +0 -10
- package/slides/node_modules/mkdirp-classic/LICENSE +0 -21
- package/slides/node_modules/mkdirp-classic/README.md +0 -18
- package/slides/node_modules/mkdirp-classic/index.js +0 -98
- package/slides/node_modules/mkdirp-classic/package.json +0 -18
- package/slides/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +0 -31
- package/slides/node_modules/napi-build-utils/LICENSE +0 -21
- package/slides/node_modules/napi-build-utils/README.md +0 -52
- package/slides/node_modules/napi-build-utils/index.js +0 -214
- package/slides/node_modules/napi-build-utils/index.md +0 -0
- package/slides/node_modules/napi-build-utils/package.json +0 -42
- package/slides/node_modules/node-abi/LICENSE +0 -21
- package/slides/node_modules/node-abi/README.md +0 -54
- package/slides/node_modules/node-abi/abi_registry.json +0 -439
- package/slides/node_modules/node-abi/index.js +0 -179
- package/slides/node_modules/node-abi/package.json +0 -45
- package/slides/node_modules/node-addon-api/LICENSE.md +0 -9
- package/slides/node_modules/node-addon-api/README.md +0 -319
- package/slides/node_modules/node-addon-api/common.gypi +0 -20
- package/slides/node_modules/node-addon-api/except.gypi +0 -25
- package/slides/node_modules/node-addon-api/index.js +0 -12
- package/slides/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
- package/slides/node_modules/node-addon-api/napi-inl.h +0 -6607
- package/slides/node_modules/node-addon-api/napi.h +0 -3201
- package/slides/node_modules/node-addon-api/node_addon_api.gyp +0 -32
- package/slides/node_modules/node-addon-api/node_api.gyp +0 -9
- package/slides/node_modules/node-addon-api/noexcept.gypi +0 -26
- package/slides/node_modules/node-addon-api/nothing.c +0 -0
- package/slides/node_modules/node-addon-api/package-support.json +0 -21
- package/slides/node_modules/node-addon-api/package.json +0 -480
- package/slides/node_modules/node-addon-api/tools/README.md +0 -73
- package/slides/node_modules/node-addon-api/tools/check-napi.js +0 -99
- package/slides/node_modules/node-addon-api/tools/clang-format.js +0 -71
- package/slides/node_modules/node-addon-api/tools/conversion.js +0 -301
- package/slides/node_modules/node-addon-api/tools/eslint-format.js +0 -79
- package/slides/node_modules/once/LICENSE +0 -15
- package/slides/node_modules/once/README.md +0 -79
- package/slides/node_modules/once/once.js +0 -42
- package/slides/node_modules/once/package.json +0 -33
- package/slides/node_modules/pako/CHANGELOG.md +0 -164
- package/slides/node_modules/pako/LICENSE +0 -21
- package/slides/node_modules/pako/README.md +0 -191
- package/slides/node_modules/pako/dist/pako.js +0 -6818
- package/slides/node_modules/pako/dist/pako.min.js +0 -1
- package/slides/node_modules/pako/dist/pako_deflate.js +0 -3997
- package/slides/node_modules/pako/dist/pako_deflate.min.js +0 -1
- package/slides/node_modules/pako/dist/pako_inflate.js +0 -3300
- package/slides/node_modules/pako/dist/pako_inflate.min.js +0 -1
- package/slides/node_modules/pako/index.js +0 -14
- package/slides/node_modules/pako/lib/deflate.js +0 -400
- package/slides/node_modules/pako/lib/inflate.js +0 -423
- package/slides/node_modules/pako/lib/utils/common.js +0 -105
- package/slides/node_modules/pako/lib/utils/strings.js +0 -187
- package/slides/node_modules/pako/lib/zlib/README +0 -59
- package/slides/node_modules/pako/lib/zlib/adler32.js +0 -51
- package/slides/node_modules/pako/lib/zlib/constants.js +0 -68
- package/slides/node_modules/pako/lib/zlib/crc32.js +0 -59
- package/slides/node_modules/pako/lib/zlib/deflate.js +0 -1874
- package/slides/node_modules/pako/lib/zlib/gzheader.js +0 -58
- package/slides/node_modules/pako/lib/zlib/inffast.js +0 -345
- package/slides/node_modules/pako/lib/zlib/inflate.js +0 -1556
- package/slides/node_modules/pako/lib/zlib/inftrees.js +0 -343
- package/slides/node_modules/pako/lib/zlib/messages.js +0 -32
- package/slides/node_modules/pako/lib/zlib/trees.js +0 -1222
- package/slides/node_modules/pako/lib/zlib/zstream.js +0 -47
- package/slides/node_modules/pako/package.json +0 -44
- package/slides/node_modules/pptxgenjs/LICENSE +0 -21
- package/slides/node_modules/pptxgenjs/README.md +0 -224
- package/slides/node_modules/pptxgenjs/dist/pptxgen.bundle.js +0 -96
- package/slides/node_modules/pptxgenjs/dist/pptxgen.bundle.js.map +0 -1
- package/slides/node_modules/pptxgenjs/dist/pptxgen.cjs.js +0 -7370
- package/slides/node_modules/pptxgenjs/dist/pptxgen.es.js +0 -7368
- package/slides/node_modules/pptxgenjs/dist/pptxgen.min.js +0 -96
- package/slides/node_modules/pptxgenjs/dist/pptxgen.min.js.map +0 -1
- package/slides/node_modules/pptxgenjs/package.json +0 -96
- package/slides/node_modules/pptxgenjs/types/index.d.ts +0 -2679
- package/slides/node_modules/prebuild-install/CHANGELOG.md +0 -131
- package/slides/node_modules/prebuild-install/CONTRIBUTING.md +0 -6
- package/slides/node_modules/prebuild-install/LICENSE +0 -21
- package/slides/node_modules/prebuild-install/README.md +0 -163
- package/slides/node_modules/prebuild-install/asset.js +0 -44
- package/slides/node_modules/prebuild-install/bin.js +0 -78
- package/slides/node_modules/prebuild-install/download.js +0 -142
- package/slides/node_modules/prebuild-install/error.js +0 -14
- package/slides/node_modules/prebuild-install/help.txt +0 -16
- package/slides/node_modules/prebuild-install/index.js +0 -1
- package/slides/node_modules/prebuild-install/log.js +0 -33
- package/slides/node_modules/prebuild-install/package.json +0 -67
- package/slides/node_modules/prebuild-install/proxy.js +0 -35
- package/slides/node_modules/prebuild-install/rc.js +0 -64
- package/slides/node_modules/prebuild-install/util.js +0 -143
- package/slides/node_modules/process-nextick-args/index.js +0 -45
- package/slides/node_modules/process-nextick-args/license.md +0 -19
- package/slides/node_modules/process-nextick-args/package.json +0 -25
- package/slides/node_modules/process-nextick-args/readme.md +0 -18
- package/slides/node_modules/pump/.github/FUNDING.yml +0 -2
- package/slides/node_modules/pump/.travis.yml +0 -5
- package/slides/node_modules/pump/LICENSE +0 -21
- package/slides/node_modules/pump/README.md +0 -74
- package/slides/node_modules/pump/SECURITY.md +0 -5
- package/slides/node_modules/pump/empty.js +0 -1
- package/slides/node_modules/pump/index.js +0 -86
- package/slides/node_modules/pump/package.json +0 -30
- package/slides/node_modules/pump/test-browser.js +0 -66
- package/slides/node_modules/pump/test-node.js +0 -53
- package/slides/node_modules/queue/LICENSE +0 -8
- package/slides/node_modules/queue/index.d.ts +0 -173
- package/slides/node_modules/queue/index.js +0 -195
- package/slides/node_modules/queue/package.json +0 -43
- package/slides/node_modules/queue/readme.md +0 -221
- package/slides/node_modules/rc/LICENSE.APACHE2 +0 -15
- package/slides/node_modules/rc/LICENSE.BSD +0 -26
- package/slides/node_modules/rc/LICENSE.MIT +0 -24
- package/slides/node_modules/rc/README.md +0 -227
- package/slides/node_modules/rc/browser.js +0 -7
- package/slides/node_modules/rc/cli.js +0 -4
- package/slides/node_modules/rc/index.js +0 -53
- package/slides/node_modules/rc/lib/utils.js +0 -104
- package/slides/node_modules/rc/package.json +0 -29
- package/slides/node_modules/rc/test/ini.js +0 -16
- package/slides/node_modules/rc/test/nested-env-vars.js +0 -50
- package/slides/node_modules/rc/test/test.js +0 -59
- package/slides/node_modules/readable-stream/.travis.yml +0 -34
- package/slides/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/slides/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/slides/node_modules/readable-stream/LICENSE +0 -47
- package/slides/node_modules/readable-stream/README.md +0 -58
- package/slides/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/slides/node_modules/readable-stream/duplex-browser.js +0 -1
- package/slides/node_modules/readable-stream/duplex.js +0 -1
- package/slides/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/slides/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/slides/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/slides/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/slides/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/slides/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/slides/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/slides/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/slides/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/slides/node_modules/readable-stream/package.json +0 -52
- package/slides/node_modules/readable-stream/passthrough.js +0 -1
- package/slides/node_modules/readable-stream/readable-browser.js +0 -7
- package/slides/node_modules/readable-stream/readable.js +0 -19
- package/slides/node_modules/readable-stream/transform.js +0 -1
- package/slides/node_modules/readable-stream/writable-browser.js +0 -1
- package/slides/node_modules/readable-stream/writable.js +0 -8
- package/slides/node_modules/safe-buffer/LICENSE +0 -21
- package/slides/node_modules/safe-buffer/README.md +0 -584
- package/slides/node_modules/safe-buffer/index.d.ts +0 -187
- package/slides/node_modules/safe-buffer/index.js +0 -62
- package/slides/node_modules/safe-buffer/package.json +0 -37
- package/slides/node_modules/semver/LICENSE +0 -15
- package/slides/node_modules/semver/README.md +0 -665
- package/slides/node_modules/semver/bin/semver.js +0 -191
- package/slides/node_modules/semver/classes/comparator.js +0 -143
- package/slides/node_modules/semver/classes/index.js +0 -7
- package/slides/node_modules/semver/classes/range.js +0 -557
- package/slides/node_modules/semver/classes/semver.js +0 -333
- package/slides/node_modules/semver/functions/clean.js +0 -8
- package/slides/node_modules/semver/functions/cmp.js +0 -54
- package/slides/node_modules/semver/functions/coerce.js +0 -62
- package/slides/node_modules/semver/functions/compare-build.js +0 -9
- package/slides/node_modules/semver/functions/compare-loose.js +0 -5
- package/slides/node_modules/semver/functions/compare.js +0 -7
- package/slides/node_modules/semver/functions/diff.js +0 -60
- package/slides/node_modules/semver/functions/eq.js +0 -5
- package/slides/node_modules/semver/functions/gt.js +0 -5
- package/slides/node_modules/semver/functions/gte.js +0 -5
- package/slides/node_modules/semver/functions/inc.js +0 -21
- package/slides/node_modules/semver/functions/lt.js +0 -5
- package/slides/node_modules/semver/functions/lte.js +0 -5
- package/slides/node_modules/semver/functions/major.js +0 -5
- package/slides/node_modules/semver/functions/minor.js +0 -5
- package/slides/node_modules/semver/functions/neq.js +0 -5
- package/slides/node_modules/semver/functions/parse.js +0 -18
- package/slides/node_modules/semver/functions/patch.js +0 -5
- package/slides/node_modules/semver/functions/prerelease.js +0 -8
- package/slides/node_modules/semver/functions/rcompare.js +0 -5
- package/slides/node_modules/semver/functions/rsort.js +0 -5
- package/slides/node_modules/semver/functions/satisfies.js +0 -12
- package/slides/node_modules/semver/functions/sort.js +0 -5
- package/slides/node_modules/semver/functions/valid.js +0 -8
- package/slides/node_modules/semver/index.js +0 -91
- package/slides/node_modules/semver/internal/constants.js +0 -37
- package/slides/node_modules/semver/internal/debug.js +0 -11
- package/slides/node_modules/semver/internal/identifiers.js +0 -29
- package/slides/node_modules/semver/internal/lrucache.js +0 -42
- package/slides/node_modules/semver/internal/parse-options.js +0 -17
- package/slides/node_modules/semver/internal/re.js +0 -223
- package/slides/node_modules/semver/package.json +0 -78
- package/slides/node_modules/semver/preload.js +0 -4
- package/slides/node_modules/semver/range.bnf +0 -16
- package/slides/node_modules/semver/ranges/gtr.js +0 -6
- package/slides/node_modules/semver/ranges/intersects.js +0 -9
- package/slides/node_modules/semver/ranges/ltr.js +0 -6
- package/slides/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/slides/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/slides/node_modules/semver/ranges/min-version.js +0 -63
- package/slides/node_modules/semver/ranges/outside.js +0 -82
- package/slides/node_modules/semver/ranges/simplify.js +0 -49
- package/slides/node_modules/semver/ranges/subset.js +0 -249
- package/slides/node_modules/semver/ranges/to-comparators.js +0 -10
- package/slides/node_modules/semver/ranges/valid.js +0 -13
- package/slides/node_modules/setimmediate/LICENSE.txt +0 -20
- package/slides/node_modules/setimmediate/package.json +0 -30
- package/slides/node_modules/setimmediate/setImmediate.js +0 -186
- package/slides/node_modules/simple-concat/.travis.yml +0 -3
- package/slides/node_modules/simple-concat/LICENSE +0 -20
- package/slides/node_modules/simple-concat/README.md +0 -44
- package/slides/node_modules/simple-concat/index.js +0 -15
- package/slides/node_modules/simple-concat/package.json +0 -47
- package/slides/node_modules/simple-concat/test/basic.js +0 -41
- package/slides/node_modules/simple-get/.github/dependabot.yml +0 -15
- package/slides/node_modules/simple-get/.github/workflows/ci.yml +0 -23
- package/slides/node_modules/simple-get/LICENSE +0 -20
- package/slides/node_modules/simple-get/README.md +0 -333
- package/slides/node_modules/simple-get/index.js +0 -108
- package/slides/node_modules/simple-get/package.json +0 -67
- package/slides/node_modules/string_decoder/.travis.yml +0 -50
- package/slides/node_modules/string_decoder/LICENSE +0 -48
- package/slides/node_modules/string_decoder/README.md +0 -47
- package/slides/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/slides/node_modules/string_decoder/package.json +0 -31
- package/slides/node_modules/strip-json-comments/index.js +0 -70
- package/slides/node_modules/strip-json-comments/license +0 -21
- package/slides/node_modules/strip-json-comments/package.json +0 -42
- package/slides/node_modules/strip-json-comments/readme.md +0 -64
- package/slides/node_modules/tar-fs/.travis.yml +0 -6
- package/slides/node_modules/tar-fs/LICENSE +0 -21
- package/slides/node_modules/tar-fs/README.md +0 -165
- package/slides/node_modules/tar-fs/index.js +0 -363
- package/slides/node_modules/tar-fs/package.json +0 -41
- package/slides/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
- package/slides/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
- package/slides/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/slides/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/slides/node_modules/tar-fs/test/index.js +0 -346
- package/slides/node_modules/tar-stream/LICENSE +0 -21
- package/slides/node_modules/tar-stream/README.md +0 -168
- package/slides/node_modules/tar-stream/extract.js +0 -257
- package/slides/node_modules/tar-stream/headers.js +0 -295
- package/slides/node_modules/tar-stream/index.js +0 -2
- package/slides/node_modules/tar-stream/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/slides/node_modules/tar-stream/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/slides/node_modules/tar-stream/node_modules/readable-stream/LICENSE +0 -47
- package/slides/node_modules/tar-stream/node_modules/readable-stream/README.md +0 -106
- package/slides/node_modules/tar-stream/node_modules/readable-stream/errors-browser.js +0 -127
- package/slides/node_modules/tar-stream/node_modules/readable-stream/errors.js +0 -116
- package/slides/node_modules/tar-stream/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/slides/node_modules/tar-stream/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/slides/node_modules/tar-stream/node_modules/readable-stream/package.json +0 -68
- package/slides/node_modules/tar-stream/node_modules/readable-stream/readable-browser.js +0 -9
- package/slides/node_modules/tar-stream/node_modules/readable-stream/readable.js +0 -16
- package/slides/node_modules/tar-stream/pack.js +0 -255
- package/slides/node_modules/tar-stream/package.json +0 -58
- package/slides/node_modules/tar-stream/sandbox.js +0 -11
- package/slides/node_modules/tunnel-agent/LICENSE +0 -55
- package/slides/node_modules/tunnel-agent/README.md +0 -4
- package/slides/node_modules/tunnel-agent/index.js +0 -244
- package/slides/node_modules/tunnel-agent/package.json +0 -22
- package/slides/node_modules/undici-types/LICENSE +0 -21
- package/slides/node_modules/undici-types/README.md +0 -6
- package/slides/node_modules/undici-types/agent.d.ts +0 -31
- package/slides/node_modules/undici-types/api.d.ts +0 -43
- package/slides/node_modules/undici-types/balanced-pool.d.ts +0 -29
- package/slides/node_modules/undici-types/cache.d.ts +0 -36
- package/slides/node_modules/undici-types/client.d.ts +0 -108
- package/slides/node_modules/undici-types/connector.d.ts +0 -34
- package/slides/node_modules/undici-types/content-type.d.ts +0 -21
- package/slides/node_modules/undici-types/cookies.d.ts +0 -28
- package/slides/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- package/slides/node_modules/undici-types/dispatcher.d.ts +0 -256
- package/slides/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- package/slides/node_modules/undici-types/errors.d.ts +0 -149
- package/slides/node_modules/undici-types/eventsource.d.ts +0 -61
- package/slides/node_modules/undici-types/fetch.d.ts +0 -209
- package/slides/node_modules/undici-types/file.d.ts +0 -39
- package/slides/node_modules/undici-types/filereader.d.ts +0 -54
- package/slides/node_modules/undici-types/formdata.d.ts +0 -108
- package/slides/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/slides/node_modules/undici-types/global-origin.d.ts +0 -7
- package/slides/node_modules/undici-types/handlers.d.ts +0 -15
- package/slides/node_modules/undici-types/header.d.ts +0 -4
- package/slides/node_modules/undici-types/index.d.ts +0 -71
- package/slides/node_modules/undici-types/interceptors.d.ts +0 -17
- package/slides/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/slides/node_modules/undici-types/mock-client.d.ts +0 -25
- package/slides/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/slides/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/slides/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/slides/node_modules/undici-types/package.json +0 -55
- package/slides/node_modules/undici-types/patch.d.ts +0 -33
- package/slides/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/slides/node_modules/undici-types/pool.d.ts +0 -39
- package/slides/node_modules/undici-types/proxy-agent.d.ts +0 -28
- package/slides/node_modules/undici-types/readable.d.ts +0 -65
- package/slides/node_modules/undici-types/retry-agent.d.ts +0 -8
- package/slides/node_modules/undici-types/retry-handler.d.ts +0 -116
- package/slides/node_modules/undici-types/util.d.ts +0 -18
- package/slides/node_modules/undici-types/webidl.d.ts +0 -228
- package/slides/node_modules/undici-types/websocket.d.ts +0 -150
- package/slides/node_modules/util-deprecate/History.md +0 -16
- package/slides/node_modules/util-deprecate/LICENSE +0 -24
- package/slides/node_modules/util-deprecate/README.md +0 -53
- package/slides/node_modules/util-deprecate/browser.js +0 -67
- package/slides/node_modules/util-deprecate/node.js +0 -6
- package/slides/node_modules/util-deprecate/package.json +0 -27
- package/slides/node_modules/wrappy/LICENSE +0 -15
- package/slides/node_modules/wrappy/README.md +0 -36
- package/slides/node_modules/wrappy/package.json +0 -29
- package/slides/node_modules/wrappy/wrappy.js +0 -33
- package/slides/package-lock.json +0 -536
- package/slides/package.json +0 -16
- package/slides/slides.json +0 -238
|
@@ -1,652 +0,0 @@
|
|
|
1
|
-
import{r as _j,c as Xj,a as v,j as l,b as Y0,A as LO,m as WO,R as Wa}from"./vendor-C0HXlhrU.js";import{r as Aj,a as U0,R as Zj,H as Ia,P as Fa,b as Ej,u as qj,c as Mj,d as Yj,i as Uj,B as Vj}from"./reactflow-BQPfi37R.js";import{P as V0,N as BO,a as bi,D as Gj,b as da,T as gn,I as Bc,s as Es,t as A,L as zs,i as G0,c as D0,d as L0,e as vi,f as Jl,g as Dj,h as Xl,j as pc,k as qs,l as Hc,m as Je,E as Vl,n as yn,o as es,p as W0,q as HO,r as B0,u as Lj,v as Wj,w as Bj,x as bO,y as Hj,z as ri,A as Ij,B as Fj,C as Kj,F as H0,G as Jj,H as Ug,J as ew,K as tw,M as nw,O as aw,Q as sw,R as lw,S as rw,U as iw,V as ow,W as cw,X as dw,Y as uw,Z as fw}from"./codemirror-BBL3i_JW.js";import{D as Ow,o as hw,L as mw}from"./xterm--7_ns2zW.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function s(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=s(o);fetch(o.href,d)}})();var Tf={exports:{}},Fr={},Nf={exports:{}},Pf={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* scheduler.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Vg;function pw(){return Vg||(Vg=1,(function(e){function n(N,M){var K=N.length;N.push(M);e:for(;0<K;){var de=K-1>>>1,ae=N[de];if(0<o(ae,M))N[de]=M,N[K]=ae,K=de;else break e}}function s(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var M=N[0],K=N.pop();if(K!==M){N[0]=K;e:for(var de=0,ae=N.length,Qe=ae>>>1;de<Qe;){var ve=2*(de+1)-1,ue=N[ve],ye=ve+1,Ae=N[ye];if(0>o(ue,K))ye<ae&&0>o(Ae,ue)?(N[de]=Ae,N[ye]=K,de=ye):(N[de]=ue,N[ve]=K,de=ve);else if(ye<ae&&0>o(Ae,K))N[de]=Ae,N[ye]=K,de=ye;else break e}}return M}function o(N,M){var K=N.sortIndex-M.sortIndex;return K!==0?K:N.id-M.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],p=[],x=1,g=null,b=3,y=!1,Q=!1,k=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function _(N){for(var M=s(p);M!==null;){if(M.callback===null)r(p);else if(M.startTime<=N)r(p),M.sortIndex=M.expirationTime,n(h,M);else break;M=s(p)}}function G(N){if(k=!1,_(N),!Q)if(s(h)!==null)Q=!0,Z||(Z=!0,I());else{var M=s(p);M!==null&&V(G,M.startTime-N)}}var Z=!1,C=-1,T=5,H=-1;function E(){return w?!0:!(e.unstable_now()-H<T)}function ee(){if(w=!1,Z){var N=e.unstable_now();H=N;var M=!0;try{e:{Q=!1,k&&(k=!1,P(C),C=-1),y=!0;var K=b;try{t:{for(_(N),g=s(h);g!==null&&!(g.expirationTime>N&&E());){var de=g.callback;if(typeof de=="function"){g.callback=null,b=g.priorityLevel;var ae=de(g.expirationTime<=N);if(N=e.unstable_now(),typeof ae=="function"){g.callback=ae,_(N),M=!0;break t}g===s(h)&&r(h),_(N)}else r(h);g=s(h)}if(g!==null)M=!0;else{var Qe=s(p);Qe!==null&&V(G,Qe.startTime-N),M=!1}}break e}finally{g=null,b=K,y=!1}M=void 0}}finally{M?I():Z=!1}}}var I;if(typeof z=="function")I=function(){z(ee)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,ie=D.port2;D.port1.onmessage=ee,I=function(){ie.postMessage(null)}}else I=function(){j(ee,0)};function V(N,M){C=j(function(){N(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(N){switch(b){case 1:case 2:case 3:var M=3;break;default:M=b}var K=b;b=M;try{return N()}finally{b=K}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(N,M){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var K=b;b=N;try{return M()}finally{b=K}},e.unstable_scheduleCallback=function(N,M,K){var de=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?de+K:de):K=de,N){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=K+ae,N={id:x++,callback:M,priorityLevel:N,startTime:K,expirationTime:ae,sortIndex:-1},K>de?(N.sortIndex=K,n(p,N),s(h)===null&&N===s(p)&&(k?(P(C),C=-1):k=!0,V(G,K-de))):(N.sortIndex=ae,n(h,N),Q||y||(Q=!0,Z||(Z=!0,I()))),N},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(N){var M=b;return function(){var K=b;b=M;try{return N.apply(this,arguments)}finally{b=K}}}})(Pf)),Pf}var Gg;function xw(){return Gg||(Gg=1,Nf.exports=pw()),Nf.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-dom-client.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Dg;function gw(){if(Dg)return Fr;Dg=1;var e=xw(),n=_j(),s=Aj();function r(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function u(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function f(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(d(t)!==t)throw Error(r(188))}function p(t){var a=t.alternate;if(!a){if(a=d(t),a===null)throw Error(r(188));return a!==t?null:t}for(var i=t,c=a;;){var O=i.return;if(O===null)break;var m=O.alternate;if(m===null){if(c=O.return,c!==null){i=c;continue}break}if(O.child===m.child){for(m=O.child;m;){if(m===i)return h(O),t;if(m===c)return h(O),a;m=m.sibling}throw Error(r(188))}if(i.return!==c.return)i=O,c=m;else{for(var S=!1,$=O.child;$;){if($===i){S=!0,i=O,c=m;break}if($===c){S=!0,c=O,i=m;break}$=$.sibling}if(!S){for($=m.child;$;){if($===i){S=!0,i=m,c=O;break}if($===c){S=!0,c=m,i=O;break}$=$.sibling}if(!S)throw Error(r(189))}}if(i.alternate!==c)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?t:a}function x(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=x(t),a!==null)return a;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),Q=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),z=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),E=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function I(t){return t===null||typeof t!="object"?null:(t=ee&&t[ee]||t["@@iterator"],typeof t=="function"?t:null)}var D=Symbol.for("react.client.reference");function ie(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===D?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case k:return"Fragment";case j:return"Profiler";case w:return"StrictMode";case G:return"Suspense";case Z:return"SuspenseList";case H:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Q:return"Portal";case z:return t.displayName||"Context";case P:return(t._context.displayName||"Context")+".Consumer";case _:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case C:return a=t.displayName||null,a!==null?a:ie(t.type)||"Memo";case T:a=t._payload,t=t._init;try{return ie(t(a))}catch{}}return null}var V=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},de=[],ae=-1;function Qe(t){return{current:t}}function ve(t){0>ae||(t.current=de[ae],de[ae]=null,ae--)}function ue(t,a){ae++,de[ae]=t.current,t.current=a}var ye=Qe(null),Ae=Qe(null),B=Qe(null),je=Qe(null);function te(t,a){switch(ue(B,a),ue(Ae,t),ue(ye,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?ug(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=ug(a),t=fg(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}ve(ye),ue(ye,t)}function Oe(){ve(ye),ve(Ae),ve(B)}function Re(t){t.memoizedState!==null&&ue(je,t);var a=ye.current,i=fg(a,t.type);a!==i&&(ue(Ae,t),ue(ye,i))}function $e(t){Ae.current===t&&(ve(ye),ve(Ae)),je.current===t&&(ve(je),Wr._currentValue=K)}var at,xt;function ut(t){if(at===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);at=a&&a[1]||"",xt=-1<i.stack.indexOf(`
|
|
18
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+at+t+xt}var ar=!1;function sr(t,a){if(!t||ar)return"";ar=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(F){var L=F}Reflect.construct(t,[],le)}else{try{le.call()}catch(F){L=F}t.call(le.prototype)}}else{try{throw Error()}catch(F){L=F}(le=t())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(F){if(F&&L&&typeof F.stack=="string")return[F.stack,L.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),S=m[0],$=m[1];if(S&&$){var R=S.split(`
|
|
20
|
-
`),U=$.split(`
|
|
21
|
-
`);for(O=c=0;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;for(;O<U.length&&!U[O].includes("DetermineComponentFrameRoot");)O++;if(c===R.length||O===U.length)for(c=R.length-1,O=U.length-1;1<=c&&0<=O&&R[c]!==U[O];)O--;for(;1<=c&&0<=O;c--,O--)if(R[c]!==U[O]){if(c!==1||O!==1)do if(c--,O--,0>O||R[c]!==U[O]){var ne=`
|
|
22
|
-
`+R[c].replace(" at new "," at ");return t.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",t.displayName)),ne}while(1<=c&&0<=O);break}}}finally{ar=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?ut(i):""}function fd(t,a){switch(t.tag){case 26:case 27:case 5:return ut(t.type);case 16:return ut("Lazy");case 13:return t.child!==a&&a!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return sr(t.type,!1);case 11:return sr(t.type.render,!1);case 1:return sr(t.type,!0);case 31:return ut("Activity");default:return""}}function Ci(t){try{var a="",i=null;do a+=fd(t,i),i=t,t=t.return;while(t);return a}catch(c){return`
|
|
23
|
-
Error generating stack: `+c.message+`
|
|
24
|
-
`+c.stack}}var xa=Object.prototype.hasOwnProperty,Od=e.unstable_scheduleCallback,hd=e.unstable_cancelCallback,f2=e.unstable_shouldYield,O2=e.unstable_requestPaint,At=e.unstable_now,h2=e.unstable_getCurrentPriorityLevel,Vh=e.unstable_ImmediatePriority,Gh=e.unstable_UserBlockingPriority,Ri=e.unstable_NormalPriority,m2=e.unstable_LowPriority,Dh=e.unstable_IdlePriority,p2=e.log,x2=e.unstable_setDisableYieldValue,lr=null,Zt=null;function ga(t){if(typeof p2=="function"&&x2(t),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(lr,t)}catch{}}var Et=Math.clz32?Math.clz32:v2,g2=Math.log,b2=Math.LN2;function v2(t){return t>>>=0,t===0?32:31-(g2(t)/b2|0)|0}var _i=256,Xi=262144,Ai=4194304;function cs(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Zi(t,a,i){var c=t.pendingLanes;if(c===0)return 0;var O=0,m=t.suspendedLanes,S=t.pingedLanes;t=t.warmLanes;var $=c&134217727;return $!==0?(c=$&~m,c!==0?O=cs(c):(S&=$,S!==0?O=cs(S):i||(i=$&~t,i!==0&&(O=cs(i))))):($=c&~m,$!==0?O=cs($):S!==0?O=cs(S):i||(i=c&~t,i!==0&&(O=cs(i)))),O===0?0:a!==0&&a!==O&&(a&m)===0&&(m=O&-O,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:O}function rr(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function y2(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Lh(){var t=Ai;return Ai<<=1,(Ai&62914560)===0&&(Ai=4194304),t}function md(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function ir(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function S2(t,a,i,c,O,m){var S=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var $=t.entanglements,R=t.expirationTimes,U=t.hiddenUpdates;for(i=S&~i;0<i;){var ne=31-Et(i),le=1<<ne;$[ne]=0,R[ne]=-1;var L=U[ne];if(L!==null)for(U[ne]=null,ne=0;ne<L.length;ne++){var F=L[ne];F!==null&&(F.lane&=-536870913)}i&=~le}c!==0&&Wh(t,c,0),m!==0&&O===0&&t.tag!==0&&(t.suspendedLanes|=m&~(S&~a))}function Wh(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var c=31-Et(a);t.entangledLanes|=a,t.entanglements[c]=t.entanglements[c]|1073741824|i&261930}function Bh(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var c=31-Et(i),O=1<<c;O&a|t[c]&a&&(t[c]|=a),i&=~O}}function Hh(t,a){var i=a&-a;return i=(i&42)!==0?1:pd(i),(i&(t.suspendedLanes|a))!==0?0:i}function pd(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function xd(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ih(){var t=M.p;return t!==0?t:(t=window.event,t===void 0?32:Xg(t.type))}function Fh(t,a){var i=M.p;try{return M.p=t,a()}finally{M.p=i}}var ba=Math.random().toString(36).slice(2),gt="__reactFiber$"+ba,Tt="__reactProps$"+ba,Vs="__reactContainer$"+ba,gd="__reactEvents$"+ba,Q2="__reactListeners$"+ba,j2="__reactHandles$"+ba,Kh="__reactResources$"+ba,or="__reactMarker$"+ba;function bd(t){delete t[gt],delete t[Tt],delete t[gd],delete t[Q2],delete t[j2]}function Gs(t){var a=t[gt];if(a)return a;for(var i=t.parentNode;i;){if(a=i[Vs]||i[gt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=bg(t);t!==null;){if(i=t[gt])return i;t=bg(t)}return a}t=i,i=t.parentNode}return null}function Ds(t){if(t=t[gt]||t[Vs]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function cr(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(r(33))}function Ls(t){var a=t[Kh];return a||(a=t[Kh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function mt(t){t[or]=!0}var Jh=new Set,em={};function ds(t,a){Ws(t,a),Ws(t+"Capture",a)}function Ws(t,a){for(em[t]=a,t=0;t<a.length;t++)Jh.add(a[t])}var w2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),tm={},nm={};function k2(t){return xa.call(nm,t)?!0:xa.call(tm,t)?!1:w2.test(t)?nm[t]=!0:(tm[t]=!0,!1)}function Ei(t,a,i){if(k2(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function qi(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function qn(t,a,i,c){if(c===null)t.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+c)}}function Kt(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function am(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function $2(t,a,i){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var O=c.get,m=c.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return O.call(this)},set:function(S){i=""+S,m.call(this,S)}}),Object.defineProperty(t,a,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function(S){i=""+S},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function vd(t){if(!t._valueTracker){var a=am(t)?"checked":"value";t._valueTracker=$2(t,a,""+t[a])}}function sm(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),c="";return t&&(c=am(t)?t.checked?"true":"false":t.value),t=c,t!==i?(a.setValue(t),!0):!1}function Mi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var T2=/[\n"\\]/g;function Jt(t){return t.replace(T2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function yd(t,a,i,c,O,m,S,$){t.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?t.type=S:t.removeAttribute("type"),a!=null?S==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Kt(a)):t.value!==""+Kt(a)&&(t.value=""+Kt(a)):S!=="submit"&&S!=="reset"||t.removeAttribute("value"),a!=null?Sd(t,S,Kt(a)):i!=null?Sd(t,S,Kt(i)):c!=null&&t.removeAttribute("value"),O==null&&m!=null&&(t.defaultChecked=!!m),O!=null&&(t.checked=O&&typeof O!="function"&&typeof O!="symbol"),$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?t.name=""+Kt($):t.removeAttribute("name")}function lm(t,a,i,c,O,m,S,$){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){vd(t);return}i=i!=null?""+Kt(i):"",a=a!=null?""+Kt(a):i,$||a===t.value||(t.value=a),t.defaultValue=a}c=c??O,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=$?t.checked:!!c,t.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(t.name=S),vd(t)}function Sd(t,a,i){a==="number"&&Mi(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Bs(t,a,i,c){if(t=t.options,a){a={};for(var O=0;O<i.length;O++)a["$"+i[O]]=!0;for(i=0;i<t.length;i++)O=a.hasOwnProperty("$"+t[i].value),t[i].selected!==O&&(t[i].selected=O),O&&c&&(t[i].defaultSelected=!0)}else{for(i=""+Kt(i),a=null,O=0;O<t.length;O++){if(t[O].value===i){t[O].selected=!0,c&&(t[O].defaultSelected=!0);return}a!==null||t[O].disabled||(a=t[O])}a!==null&&(a.selected=!0)}}function rm(t,a,i){if(a!=null&&(a=""+Kt(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+Kt(i):""}function im(t,a,i,c){if(a==null){if(c!=null){if(i!=null)throw Error(r(92));if(V(c)){if(1<c.length)throw Error(r(93));c=c[0]}i=c}i==null&&(i=""),a=i}i=Kt(a),t.defaultValue=i,c=t.textContent,c===i&&c!==""&&c!==null&&(t.value=c),vd(t)}function Hs(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var N2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function om(t,a,i){var c=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":c?t.setProperty(a,i):typeof i!="number"||i===0||N2.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function cm(t,a,i){if(a!=null&&typeof a!="object")throw Error(r(62));if(t=t.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var O in a)c=a[O],a.hasOwnProperty(O)&&i[O]!==c&&om(t,O,c)}else for(var m in a)a.hasOwnProperty(m)&&om(t,m,a[m])}function Qd(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),z2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Yi(t){return z2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Mn(){}var jd=null;function wd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Is=null,Fs=null;function dm(t){var a=Ds(t);if(a&&(t=a.stateNode)){var i=t[Tt]||null;e:switch(t=a.stateNode,a.type){case"input":if(yd(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Jt(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var c=i[a];if(c!==t&&c.form===t.form){var O=c[Tt]||null;if(!O)throw Error(r(90));yd(c,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(a=0;a<i.length;a++)c=i[a],c.form===t.form&&sm(c)}break e;case"textarea":rm(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Bs(t,!!i.multiple,a,!1)}}}var kd=!1;function um(t,a,i){if(kd)return t(a,i);kd=!0;try{var c=t(a);return c}finally{if(kd=!1,(Is!==null||Fs!==null)&&(No(),Is&&(a=Is,t=Fs,Fs=Is=null,dm(a),t)))for(a=0;a<t.length;a++)dm(t[a])}}function dr(t,a){var i=t.stateNode;if(i===null)return null;var c=i[Tt]||null;if(c===null)return null;i=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(r(231,a,typeof i));return i}var Yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$d=!1;if(Yn)try{var ur={};Object.defineProperty(ur,"passive",{get:function(){$d=!0}}),window.addEventListener("test",ur,ur),window.removeEventListener("test",ur,ur)}catch{$d=!1}var va=null,Td=null,Ui=null;function fm(){if(Ui)return Ui;var t,a=Td,i=a.length,c,O="value"in va?va.value:va.textContent,m=O.length;for(t=0;t<i&&a[t]===O[t];t++);var S=i-t;for(c=1;c<=S&&a[i-c]===O[m-c];c++);return Ui=O.slice(t,1<c?1-c:void 0)}function Vi(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Gi(){return!0}function Om(){return!1}function Nt(t){function a(i,c,O,m,S){this._reactName=i,this._targetInst=O,this.type=c,this.nativeEvent=m,this.target=S,this.currentTarget=null;for(var $ in t)t.hasOwnProperty($)&&(i=t[$],this[$]=i?i(m):m[$]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Gi:Om,this.isPropagationStopped=Om,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Gi)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),a}var us={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=Nt(us),fr=g({},us,{view:0,detail:0}),C2=Nt(fr),Nd,Pd,Or,Li=g({},fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Or&&(Or&&t.type==="mousemove"?(Nd=t.screenX-Or.screenX,Pd=t.screenY-Or.screenY):Pd=Nd=0,Or=t),Nd)},movementY:function(t){return"movementY"in t?t.movementY:Pd}}),hm=Nt(Li),R2=g({},Li,{dataTransfer:0}),_2=Nt(R2),X2=g({},fr,{relatedTarget:0}),zd=Nt(X2),A2=g({},us,{animationName:0,elapsedTime:0,pseudoElement:0}),Z2=Nt(A2),E2=g({},us,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q2=Nt(E2),M2=g({},us,{data:0}),mm=Nt(M2),Y2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},U2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},V2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G2(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=V2[t])?!!a[t]:!1}function Cd(){return G2}var D2=g({},fr,{key:function(t){if(t.key){var a=Y2[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Vi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?U2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(t){return t.type==="keypress"?Vi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Vi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),L2=Nt(D2),W2=g({},Li,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pm=Nt(W2),B2=g({},fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd}),H2=Nt(B2),I2=g({},us,{propertyName:0,elapsedTime:0,pseudoElement:0}),F2=Nt(I2),K2=g({},Li,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),J2=Nt(K2),eQ=g({},us,{newState:0,oldState:0}),tQ=Nt(eQ),nQ=[9,13,27,32],Rd=Yn&&"CompositionEvent"in window,hr=null;Yn&&"documentMode"in document&&(hr=document.documentMode);var aQ=Yn&&"TextEvent"in window&&!hr,xm=Yn&&(!Rd||hr&&8<hr&&11>=hr),gm=" ",bm=!1;function vm(t,a){switch(t){case"keyup":return nQ.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ym(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ks=!1;function sQ(t,a){switch(t){case"compositionend":return ym(a);case"keypress":return a.which!==32?null:(bm=!0,gm);case"textInput":return t=a.data,t===gm&&bm?null:t;default:return null}}function lQ(t,a){if(Ks)return t==="compositionend"||!Rd&&vm(t,a)?(t=fm(),Ui=Td=va=null,Ks=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return xm&&a.locale!=="ko"?null:a.data;default:return null}}var rQ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sm(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!rQ[t.type]:a==="textarea"}function Qm(t,a,i,c){Is?Fs?Fs.push(c):Fs=[c]:Is=c,a=Ao(a,"onChange"),0<a.length&&(i=new Di("onChange","change",null,i,c),t.push({event:i,listeners:a}))}var mr=null,pr=null;function iQ(t){lg(t,0)}function Wi(t){var a=cr(t);if(sm(a))return t}function jm(t,a){if(t==="change")return a}var wm=!1;if(Yn){var _d;if(Yn){var Xd="oninput"in document;if(!Xd){var km=document.createElement("div");km.setAttribute("oninput","return;"),Xd=typeof km.oninput=="function"}_d=Xd}else _d=!1;wm=_d&&(!document.documentMode||9<document.documentMode)}function $m(){mr&&(mr.detachEvent("onpropertychange",Tm),pr=mr=null)}function Tm(t){if(t.propertyName==="value"&&Wi(pr)){var a=[];Qm(a,pr,t,wd(t)),um(iQ,a)}}function oQ(t,a,i){t==="focusin"?($m(),mr=a,pr=i,mr.attachEvent("onpropertychange",Tm)):t==="focusout"&&$m()}function cQ(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wi(pr)}function dQ(t,a){if(t==="click")return Wi(a)}function uQ(t,a){if(t==="input"||t==="change")return Wi(a)}function fQ(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var qt=typeof Object.is=="function"?Object.is:fQ;function xr(t,a){if(qt(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),c=Object.keys(a);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var O=i[c];if(!xa.call(a,O)||!qt(t[O],a[O]))return!1}return!0}function Nm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pm(t,a){var i=Nm(t);t=0;for(var c;i;){if(i.nodeType===3){if(c=t+i.textContent.length,t<=a&&c>=a)return{node:i,offset:a-t};t=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Nm(i)}}function zm(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?zm(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Cm(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Mi(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=Mi(t.document)}return a}function Ad(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var OQ=Yn&&"documentMode"in document&&11>=document.documentMode,Js=null,Zd=null,gr=null,Ed=!1;function Rm(t,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Ed||Js==null||Js!==Mi(c)||(c=Js,"selectionStart"in c&&Ad(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),gr&&xr(gr,c)||(gr=c,c=Ao(Zd,"onSelect"),0<c.length&&(a=new Di("onSelect","select",null,a,i),t.push({event:a,listeners:c}),a.target=Js)))}function fs(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var el={animationend:fs("Animation","AnimationEnd"),animationiteration:fs("Animation","AnimationIteration"),animationstart:fs("Animation","AnimationStart"),transitionrun:fs("Transition","TransitionRun"),transitionstart:fs("Transition","TransitionStart"),transitioncancel:fs("Transition","TransitionCancel"),transitionend:fs("Transition","TransitionEnd")},qd={},_m={};Yn&&(_m=document.createElement("div").style,"AnimationEvent"in window||(delete el.animationend.animation,delete el.animationiteration.animation,delete el.animationstart.animation),"TransitionEvent"in window||delete el.transitionend.transition);function Os(t){if(qd[t])return qd[t];if(!el[t])return t;var a=el[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in _m)return qd[t]=a[i];return t}var Xm=Os("animationend"),Am=Os("animationiteration"),Zm=Os("animationstart"),hQ=Os("transitionrun"),mQ=Os("transitionstart"),pQ=Os("transitioncancel"),Em=Os("transitionend"),qm=new Map,Md="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Md.push("scrollEnd");function hn(t,a){qm.set(t,a),ds(a,[t])}var Bi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},en=[],tl=0,Yd=0;function Hi(){for(var t=tl,a=Yd=tl=0;a<t;){var i=en[a];en[a++]=null;var c=en[a];en[a++]=null;var O=en[a];en[a++]=null;var m=en[a];if(en[a++]=null,c!==null&&O!==null){var S=c.pending;S===null?O.next=O:(O.next=S.next,S.next=O),c.pending=O}m!==0&&Mm(i,O,m)}}function Ii(t,a,i,c){en[tl++]=t,en[tl++]=a,en[tl++]=i,en[tl++]=c,Yd|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function Ud(t,a,i,c){return Ii(t,a,i,c),Fi(t)}function hs(t,a){return Ii(t,null,null,a),Fi(t)}function Mm(t,a,i){t.lanes|=i;var c=t.alternate;c!==null&&(c.lanes|=i);for(var O=!1,m=t.return;m!==null;)m.childLanes|=i,c=m.alternate,c!==null&&(c.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(O=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,O&&a!==null&&(O=31-Et(i),t=m.hiddenUpdates,c=t[O],c===null?t[O]=[a]:c.push(a),a.lane=i|536870912),m):null}function Fi(t){if(50<Mr)throw Mr=0,Fu=null,Error(r(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var nl={};function xQ(t,a,i,c){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(t,a,i,c){return new xQ(t,a,i,c)}function Vd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Un(t,a){var i=t.alternate;return i===null?(i=Mt(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Ym(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Ki(t,a,i,c,O,m){var S=0;if(c=t,typeof t=="function")Vd(t)&&(S=1);else if(typeof t=="string")S=Sj(t,i,ye.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case H:return t=Mt(31,i,a,O),t.elementType=H,t.lanes=m,t;case k:return ms(i.children,O,m,a);case w:S=8,O|=24;break;case j:return t=Mt(12,i,a,O|2),t.elementType=j,t.lanes=m,t;case G:return t=Mt(13,i,a,O),t.elementType=G,t.lanes=m,t;case Z:return t=Mt(19,i,a,O),t.elementType=Z,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:S=10;break e;case P:S=9;break e;case _:S=11;break e;case C:S=14;break e;case T:S=16,c=null;break e}S=29,i=Error(r(130,t===null?"null":typeof t,"")),c=null}return a=Mt(S,i,a,O),a.elementType=t,a.type=c,a.lanes=m,a}function ms(t,a,i,c){return t=Mt(7,t,c,a),t.lanes=i,t}function Gd(t,a,i){return t=Mt(6,t,null,a),t.lanes=i,t}function Um(t){var a=Mt(18,null,null,0);return a.stateNode=t,a}function Dd(t,a,i){return a=Mt(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Vm=new WeakMap;function tn(t,a){if(typeof t=="object"&&t!==null){var i=Vm.get(t);return i!==void 0?i:(a={value:t,source:a,stack:Ci(a)},Vm.set(t,a),a)}return{value:t,source:a,stack:Ci(a)}}var al=[],sl=0,Ji=null,br=0,nn=[],an=0,ya=null,wn=1,kn="";function Vn(t,a){al[sl++]=br,al[sl++]=Ji,Ji=t,br=a}function Gm(t,a,i){nn[an++]=wn,nn[an++]=kn,nn[an++]=ya,ya=t;var c=wn;t=kn;var O=32-Et(c)-1;c&=~(1<<O),i+=1;var m=32-Et(a)+O;if(30<m){var S=O-O%5;m=(c&(1<<S)-1).toString(32),c>>=S,O-=S,wn=1<<32-Et(a)+O|i<<O|c,kn=m+t}else wn=1<<m|i<<O|c,kn=t}function Ld(t){t.return!==null&&(Vn(t,1),Gm(t,1,0))}function Wd(t){for(;t===Ji;)Ji=al[--sl],al[sl]=null,br=al[--sl],al[sl]=null;for(;t===ya;)ya=nn[--an],nn[an]=null,kn=nn[--an],nn[an]=null,wn=nn[--an],nn[an]=null}function Dm(t,a){nn[an++]=wn,nn[an++]=kn,nn[an++]=ya,wn=a.id,kn=a.overflow,ya=t}var bt=null,He=null,Ze=!1,Sa=null,sn=!1,Bd=Error(r(519));function Qa(t){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vr(tn(a,t)),Bd}function Lm(t){var a=t.stateNode,i=t.type,c=t.memoizedProps;switch(a[gt]=t,a[Tt]=c,i){case"dialog":Ce("cancel",a),Ce("close",a);break;case"iframe":case"object":case"embed":Ce("load",a);break;case"video":case"audio":for(i=0;i<Ur.length;i++)Ce(Ur[i],a);break;case"source":Ce("error",a);break;case"img":case"image":case"link":Ce("error",a),Ce("load",a);break;case"details":Ce("toggle",a);break;case"input":Ce("invalid",a),lm(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Ce("invalid",a);break;case"textarea":Ce("invalid",a),im(a,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||c.suppressHydrationWarning===!0||cg(a.textContent,i)?(c.popover!=null&&(Ce("beforetoggle",a),Ce("toggle",a)),c.onScroll!=null&&Ce("scroll",a),c.onScrollEnd!=null&&Ce("scrollend",a),c.onClick!=null&&(a.onclick=Mn),a=!0):a=!1,a||Qa(t,!0)}function Wm(t){for(bt=t.return;bt;)switch(bt.tag){case 5:case 31:case 13:sn=!1;return;case 27:case 3:sn=!0;return;default:bt=bt.return}}function ll(t){if(t!==bt)return!1;if(!Ze)return Wm(t),Ze=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||Of(t.type,t.memoizedProps)),i=!i),i&&He&&Qa(t),Wm(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));He=gg(t)}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));He=gg(t)}else a===27?(a=He,Za(t.type)?(t=gf,gf=null,He=t):He=a):He=bt?rn(t.stateNode.nextSibling):null;return!0}function ps(){He=bt=null,Ze=!1}function Hd(){var t=Sa;return t!==null&&(Rt===null?Rt=t:Rt.push.apply(Rt,t),Sa=null),t}function vr(t){Sa===null?Sa=[t]:Sa.push(t)}var Id=Qe(null),xs=null,Gn=null;function ja(t,a,i){ue(Id,a._currentValue),a._currentValue=i}function Dn(t){t._currentValue=Id.current,ve(Id)}function Fd(t,a,i){for(;t!==null;){var c=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),t===i)break;t=t.return}}function Kd(t,a,i,c){var O=t.child;for(O!==null&&(O.return=t);O!==null;){var m=O.dependencies;if(m!==null){var S=O.child;m=m.firstContext;e:for(;m!==null;){var $=m;m=O;for(var R=0;R<a.length;R++)if($.context===a[R]){m.lanes|=i,$=m.alternate,$!==null&&($.lanes|=i),Fd(m.return,i,t),c||(S=null);break e}m=$.next}}else if(O.tag===18){if(S=O.return,S===null)throw Error(r(341));S.lanes|=i,m=S.alternate,m!==null&&(m.lanes|=i),Fd(S,i,t),S=null}else S=O.child;if(S!==null)S.return=O;else for(S=O;S!==null;){if(S===t){S=null;break}if(O=S.sibling,O!==null){O.return=S.return,S=O;break}S=S.return}O=S}}function rl(t,a,i,c){t=null;for(var O=a,m=!1;O!==null;){if(!m){if((O.flags&524288)!==0)m=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var S=O.alternate;if(S===null)throw Error(r(387));if(S=S.memoizedProps,S!==null){var $=O.type;qt(O.pendingProps.value,S.value)||(t!==null?t.push($):t=[$])}}else if(O===je.current){if(S=O.alternate,S===null)throw Error(r(387));S.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(t!==null?t.push(Wr):t=[Wr])}O=O.return}t!==null&&Kd(a,t,i,c),a.flags|=262144}function eo(t){for(t=t.firstContext;t!==null;){if(!qt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function gs(t){xs=t,Gn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function vt(t){return Bm(xs,t)}function to(t,a){return xs===null&&gs(t),Bm(t,a)}function Bm(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Gn===null){if(t===null)throw Error(r(308));Gn=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Gn=Gn.next=a;return i}var gQ=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,c){t.push(c)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},bQ=e.unstable_scheduleCallback,vQ=e.unstable_NormalPriority,rt={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jd(){return{controller:new gQ,data:new Map,refCount:0}}function yr(t){t.refCount--,t.refCount===0&&bQ(vQ,function(){t.controller.abort()})}var Sr=null,eu=0,il=0,ol=null;function yQ(t,a){if(Sr===null){var i=Sr=[];eu=0,il=af(),ol={status:"pending",value:void 0,then:function(c){i.push(c)}}}return eu++,a.then(Hm,Hm),a}function Hm(){if(--eu===0&&Sr!==null){ol!==null&&(ol.status="fulfilled");var t=Sr;Sr=null,il=0,ol=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function SQ(t,a){var i=[],c={status:"pending",value:null,reason:null,then:function(O){i.push(O)}};return t.then(function(){c.status="fulfilled",c.value=a;for(var O=0;O<i.length;O++)(0,i[O])(a)},function(O){for(c.status="rejected",c.reason=O,O=0;O<i.length;O++)(0,i[O])(void 0)}),c}var Im=N.S;N.S=function(t,a){Rx=At(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&yQ(t,a),Im!==null&&Im(t,a)};var bs=Qe(null);function tu(){var t=bs.current;return t!==null?t:Be.pooledCache}function no(t,a){a===null?ue(bs,bs.current):ue(bs,a.pool)}function Fm(){var t=tu();return t===null?null:{parent:rt._currentValue,pool:t}}var cl=Error(r(460)),nu=Error(r(474)),ao=Error(r(542)),so={then:function(){}};function Km(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Jm(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(Mn,Mn),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,tp(t),t;default:if(typeof a.status=="string")a.then(Mn,Mn);else{if(t=Be,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=a,t.status="pending",t.then(function(c){if(a.status==="pending"){var O=a;O.status="fulfilled",O.value=c}},function(c){if(a.status==="pending"){var O=a;O.status="rejected",O.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,tp(t),t}throw ys=a,cl}}function vs(t){try{var a=t._init;return a(t._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ys=i,cl):i}}var ys=null;function ep(){if(ys===null)throw Error(r(459));var t=ys;return ys=null,t}function tp(t){if(t===cl||t===ao)throw Error(r(483))}var dl=null,Qr=0;function lo(t){var a=Qr;return Qr+=1,dl===null&&(dl=[]),Jm(dl,t,a)}function jr(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function ro(t,a){throw a.$$typeof===b?Error(r(525)):(t=Object.prototype.toString.call(a),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function np(t){function a(q,X){if(t){var Y=q.deletions;Y===null?(q.deletions=[X],q.flags|=16):Y.push(X)}}function i(q,X){if(!t)return null;for(;X!==null;)a(q,X),X=X.sibling;return null}function c(q){for(var X=new Map;q!==null;)q.key!==null?X.set(q.key,q):X.set(q.index,q),q=q.sibling;return X}function O(q,X){return q=Un(q,X),q.index=0,q.sibling=null,q}function m(q,X,Y){return q.index=Y,t?(Y=q.alternate,Y!==null?(Y=Y.index,Y<X?(q.flags|=67108866,X):Y):(q.flags|=67108866,X)):(q.flags|=1048576,X)}function S(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function $(q,X,Y,se){return X===null||X.tag!==6?(X=Gd(Y,q.mode,se),X.return=q,X):(X=O(X,Y),X.return=q,X)}function R(q,X,Y,se){var Se=Y.type;return Se===k?ne(q,X,Y.props.children,se,Y.key):X!==null&&(X.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===T&&vs(Se)===X.type)?(X=O(X,Y.props),jr(X,Y),X.return=q,X):(X=Ki(Y.type,Y.key,Y.props,null,q.mode,se),jr(X,Y),X.return=q,X)}function U(q,X,Y,se){return X===null||X.tag!==4||X.stateNode.containerInfo!==Y.containerInfo||X.stateNode.implementation!==Y.implementation?(X=Dd(Y,q.mode,se),X.return=q,X):(X=O(X,Y.children||[]),X.return=q,X)}function ne(q,X,Y,se,Se){return X===null||X.tag!==7?(X=ms(Y,q.mode,se,Se),X.return=q,X):(X=O(X,Y),X.return=q,X)}function le(q,X,Y){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=Gd(""+X,q.mode,Y),X.return=q,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case y:return Y=Ki(X.type,X.key,X.props,null,q.mode,Y),jr(Y,X),Y.return=q,Y;case Q:return X=Dd(X,q.mode,Y),X.return=q,X;case T:return X=vs(X),le(q,X,Y)}if(V(X)||I(X))return X=ms(X,q.mode,Y,null),X.return=q,X;if(typeof X.then=="function")return le(q,lo(X),Y);if(X.$$typeof===z)return le(q,to(q,X),Y);ro(q,X)}return null}function L(q,X,Y,se){var Se=X!==null?X.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Se!==null?null:$(q,X,""+Y,se);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:return Y.key===Se?R(q,X,Y,se):null;case Q:return Y.key===Se?U(q,X,Y,se):null;case T:return Y=vs(Y),L(q,X,Y,se)}if(V(Y)||I(Y))return Se!==null?null:ne(q,X,Y,se,null);if(typeof Y.then=="function")return L(q,X,lo(Y),se);if(Y.$$typeof===z)return L(q,X,to(q,Y),se);ro(q,Y)}return null}function F(q,X,Y,se,Se){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return q=q.get(Y)||null,$(X,q,""+se,Se);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case y:return q=q.get(se.key===null?Y:se.key)||null,R(X,q,se,Se);case Q:return q=q.get(se.key===null?Y:se.key)||null,U(X,q,se,Se);case T:return se=vs(se),F(q,X,Y,se,Se)}if(V(se)||I(se))return q=q.get(Y)||null,ne(X,q,se,Se,null);if(typeof se.then=="function")return F(q,X,Y,lo(se),Se);if(se.$$typeof===z)return F(q,X,Y,to(X,se),Se);ro(X,se)}return null}function he(q,X,Y,se){for(var Se=null,qe=null,xe=X,Te=X=0,Xe=null;xe!==null&&Te<Y.length;Te++){xe.index>Te?(Xe=xe,xe=null):Xe=xe.sibling;var Me=L(q,xe,Y[Te],se);if(Me===null){xe===null&&(xe=Xe);break}t&&xe&&Me.alternate===null&&a(q,xe),X=m(Me,X,Te),qe===null?Se=Me:qe.sibling=Me,qe=Me,xe=Xe}if(Te===Y.length)return i(q,xe),Ze&&Vn(q,Te),Se;if(xe===null){for(;Te<Y.length;Te++)xe=le(q,Y[Te],se),xe!==null&&(X=m(xe,X,Te),qe===null?Se=xe:qe.sibling=xe,qe=xe);return Ze&&Vn(q,Te),Se}for(xe=c(xe);Te<Y.length;Te++)Xe=F(xe,q,Te,Y[Te],se),Xe!==null&&(t&&Xe.alternate!==null&&xe.delete(Xe.key===null?Te:Xe.key),X=m(Xe,X,Te),qe===null?Se=Xe:qe.sibling=Xe,qe=Xe);return t&&xe.forEach(function(Ua){return a(q,Ua)}),Ze&&Vn(q,Te),Se}function we(q,X,Y,se){if(Y==null)throw Error(r(151));for(var Se=null,qe=null,xe=X,Te=X=0,Xe=null,Me=Y.next();xe!==null&&!Me.done;Te++,Me=Y.next()){xe.index>Te?(Xe=xe,xe=null):Xe=xe.sibling;var Ua=L(q,xe,Me.value,se);if(Ua===null){xe===null&&(xe=Xe);break}t&&xe&&Ua.alternate===null&&a(q,xe),X=m(Ua,X,Te),qe===null?Se=Ua:qe.sibling=Ua,qe=Ua,xe=Xe}if(Me.done)return i(q,xe),Ze&&Vn(q,Te),Se;if(xe===null){for(;!Me.done;Te++,Me=Y.next())Me=le(q,Me.value,se),Me!==null&&(X=m(Me,X,Te),qe===null?Se=Me:qe.sibling=Me,qe=Me);return Ze&&Vn(q,Te),Se}for(xe=c(xe);!Me.done;Te++,Me=Y.next())Me=F(xe,q,Te,Me.value,se),Me!==null&&(t&&Me.alternate!==null&&xe.delete(Me.key===null?Te:Me.key),X=m(Me,X,Te),qe===null?Se=Me:qe.sibling=Me,qe=Me);return t&&xe.forEach(function(Rj){return a(q,Rj)}),Ze&&Vn(q,Te),Se}function We(q,X,Y,se){if(typeof Y=="object"&&Y!==null&&Y.type===k&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case y:e:{for(var Se=Y.key;X!==null;){if(X.key===Se){if(Se=Y.type,Se===k){if(X.tag===7){i(q,X.sibling),se=O(X,Y.props.children),se.return=q,q=se;break e}}else if(X.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===T&&vs(Se)===X.type){i(q,X.sibling),se=O(X,Y.props),jr(se,Y),se.return=q,q=se;break e}i(q,X);break}else a(q,X);X=X.sibling}Y.type===k?(se=ms(Y.props.children,q.mode,se,Y.key),se.return=q,q=se):(se=Ki(Y.type,Y.key,Y.props,null,q.mode,se),jr(se,Y),se.return=q,q=se)}return S(q);case Q:e:{for(Se=Y.key;X!==null;){if(X.key===Se)if(X.tag===4&&X.stateNode.containerInfo===Y.containerInfo&&X.stateNode.implementation===Y.implementation){i(q,X.sibling),se=O(X,Y.children||[]),se.return=q,q=se;break e}else{i(q,X);break}else a(q,X);X=X.sibling}se=Dd(Y,q.mode,se),se.return=q,q=se}return S(q);case T:return Y=vs(Y),We(q,X,Y,se)}if(V(Y))return he(q,X,Y,se);if(I(Y)){if(Se=I(Y),typeof Se!="function")throw Error(r(150));return Y=Se.call(Y),we(q,X,Y,se)}if(typeof Y.then=="function")return We(q,X,lo(Y),se);if(Y.$$typeof===z)return We(q,X,to(q,Y),se);ro(q,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,X!==null&&X.tag===6?(i(q,X.sibling),se=O(X,Y),se.return=q,q=se):(i(q,X),se=Gd(Y,q.mode,se),se.return=q,q=se),S(q)):i(q,X)}return function(q,X,Y,se){try{Qr=0;var Se=We(q,X,Y,se);return dl=null,Se}catch(xe){if(xe===cl||xe===ao)throw xe;var qe=Mt(29,xe,null,q.mode);return qe.lanes=se,qe.return=q,qe}finally{}}}var Ss=np(!0),ap=np(!1),wa=!1;function au(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function su(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ka(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function $a(t,a,i){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(Ye&2)!==0){var O=c.pending;return O===null?a.next=a:(a.next=O.next,O.next=a),c.pending=a,a=Fi(t),Mm(t,null,i),a}return Ii(t,c,a,i),Fi(t)}function wr(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var c=a.lanes;c&=t.pendingLanes,i|=c,a.lanes=i,Bh(t,i)}}function lu(t,a){var i=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var O=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?O=m=S:m=m.next=S,i=i.next}while(i!==null);m===null?O=m=a:m=m.next=a}else O=m=a;i={baseState:c.baseState,firstBaseUpdate:O,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var ru=!1;function kr(){if(ru){var t=ol;if(t!==null)throw t}}function $r(t,a,i,c){ru=!1;var O=t.updateQueue;wa=!1;var m=O.firstBaseUpdate,S=O.lastBaseUpdate,$=O.shared.pending;if($!==null){O.shared.pending=null;var R=$,U=R.next;R.next=null,S===null?m=U:S.next=U,S=R;var ne=t.alternate;ne!==null&&(ne=ne.updateQueue,$=ne.lastBaseUpdate,$!==S&&($===null?ne.firstBaseUpdate=U:$.next=U,ne.lastBaseUpdate=R))}if(m!==null){var le=O.baseState;S=0,ne=U=R=null,$=m;do{var L=$.lane&-536870913,F=L!==$.lane;if(F?(_e&L)===L:(c&L)===L){L!==0&&L===il&&(ru=!0),ne!==null&&(ne=ne.next={lane:0,tag:$.tag,payload:$.payload,callback:null,next:null});e:{var he=t,we=$;L=a;var We=i;switch(we.tag){case 1:if(he=we.payload,typeof he=="function"){le=he.call(We,le,L);break e}le=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=we.payload,L=typeof he=="function"?he.call(We,le,L):he,L==null)break e;le=g({},le,L);break e;case 2:wa=!0}}L=$.callback,L!==null&&(t.flags|=64,F&&(t.flags|=8192),F=O.callbacks,F===null?O.callbacks=[L]:F.push(L))}else F={lane:L,tag:$.tag,payload:$.payload,callback:$.callback,next:null},ne===null?(U=ne=F,R=le):ne=ne.next=F,S|=L;if($=$.next,$===null){if($=O.shared.pending,$===null)break;F=$,$=F.next,F.next=null,O.lastBaseUpdate=F,O.shared.pending=null}}while(!0);ne===null&&(R=le),O.baseState=R,O.firstBaseUpdate=U,O.lastBaseUpdate=ne,m===null&&(O.shared.lanes=0),Ca|=S,t.lanes=S,t.memoizedState=le}}function sp(t,a){if(typeof t!="function")throw Error(r(191,t));t.call(a)}function lp(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)sp(i[t],a)}var ul=Qe(null),io=Qe(0);function rp(t,a){t=ea,ue(io,t),ue(ul,a),ea=t|a.baseLanes}function iu(){ue(io,ea),ue(ul,ul.current)}function ou(){ea=io.current,ve(ul),ve(io)}var Yt=Qe(null),ln=null;function Ta(t){var a=t.alternate;ue(st,st.current&1),ue(Yt,t),ln===null&&(a===null||ul.current!==null||a.memoizedState!==null)&&(ln=t)}function cu(t){ue(st,st.current),ue(Yt,t),ln===null&&(ln=t)}function ip(t){t.tag===22?(ue(st,st.current),ue(Yt,t),ln===null&&(ln=t)):Na()}function Na(){ue(st,st.current),ue(Yt,Yt.current)}function Ut(t){ve(Yt),ln===t&&(ln=null),ve(st)}var st=Qe(0);function oo(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||pf(i)||xf(i)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ln=0,ke=null,De=null,it=null,co=!1,fl=!1,Qs=!1,uo=0,Tr=0,Ol=null,QQ=0;function tt(){throw Error(r(321))}function du(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!qt(t[i],a[i]))return!1;return!0}function uu(t,a,i,c,O,m){return Ln=m,ke=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,N.H=t===null||t.memoizedState===null?Gp:ku,Qs=!1,m=i(c,O),Qs=!1,fl&&(m=cp(a,i,c,O)),op(t),m}function op(t){N.H=zr;var a=De!==null&&De.next!==null;if(Ln=0,it=De=ke=null,co=!1,Tr=0,Ol=null,a)throw Error(r(300));t===null||ot||(t=t.dependencies,t!==null&&eo(t)&&(ot=!0))}function cp(t,a,i,c){ke=t;var O=0;do{if(fl&&(Ol=null),Tr=0,fl=!1,25<=O)throw Error(r(301));if(O+=1,it=De=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}N.H=Dp,m=a(i,c)}while(fl);return m}function jQ(){var t=N.H,a=t.useState()[0];return a=typeof a.then=="function"?Nr(a):a,t=t.useState()[0],(De!==null?De.memoizedState:null)!==t&&(ke.flags|=1024),a}function fu(){var t=uo!==0;return uo=0,t}function Ou(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function hu(t){if(co){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}co=!1}Ln=0,it=De=ke=null,fl=!1,Tr=uo=0,Ol=null}function $t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?ke.memoizedState=it=t:it=it.next=t,it}function lt(){if(De===null){var t=ke.alternate;t=t!==null?t.memoizedState:null}else t=De.next;var a=it===null?ke.memoizedState:it.next;if(a!==null)it=a,De=t;else{if(t===null)throw ke.alternate===null?Error(r(467)):Error(r(310));De=t,t={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},it===null?ke.memoizedState=it=t:it=it.next=t}return it}function fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nr(t){var a=Tr;return Tr+=1,Ol===null&&(Ol=[]),t=Jm(Ol,t,a),a=ke,(it===null?a.memoizedState:it.next)===null&&(a=a.alternate,N.H=a===null||a.memoizedState===null?Gp:ku),t}function Oo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Nr(t);if(t.$$typeof===z)return vt(t)}throw Error(r(438,String(t)))}function mu(t){var a=null,i=ke.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var c=ke.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(O){return O.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=fo(),ke.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),c=0;c<t;c++)i[c]=E;return a.index++,i}function Wn(t,a){return typeof a=="function"?a(t):a}function ho(t){var a=lt();return pu(a,De,t)}function pu(t,a,i){var c=t.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var O=t.baseQueue,m=c.pending;if(m!==null){if(O!==null){var S=O.next;O.next=m.next,m.next=S}a.baseQueue=O=m,c.pending=null}if(m=t.baseState,O===null)t.memoizedState=m;else{a=O.next;var $=S=null,R=null,U=a,ne=!1;do{var le=U.lane&-536870913;if(le!==U.lane?(_e&le)===le:(Ln&le)===le){var L=U.revertLane;if(L===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),le===il&&(ne=!0);else if((Ln&L)===L){U=U.next,L===il&&(ne=!0);continue}else le={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?($=R=le,S=m):R=R.next=le,ke.lanes|=L,Ca|=L;le=U.action,Qs&&i(m,le),m=U.hasEagerState?U.eagerState:i(m,le)}else L={lane:le,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},R===null?($=R=L,S=m):R=R.next=L,ke.lanes|=le,Ca|=le;U=U.next}while(U!==null&&U!==a);if(R===null?S=m:R.next=$,!qt(m,t.memoizedState)&&(ot=!0,ne&&(i=ol,i!==null)))throw i;t.memoizedState=m,t.baseState=S,t.baseQueue=R,c.lastRenderedState=m}return O===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function xu(t){var a=lt(),i=a.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=t;var c=i.dispatch,O=i.pending,m=a.memoizedState;if(O!==null){i.pending=null;var S=O=O.next;do m=t(m,S.action),S=S.next;while(S!==O);qt(m,a.memoizedState)||(ot=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,c]}function dp(t,a,i){var c=ke,O=lt(),m=Ze;if(m){if(i===void 0)throw Error(r(407));i=i()}else i=a();var S=!qt((De||O).memoizedState,i);if(S&&(O.memoizedState=i,ot=!0),O=O.queue,vu(Op.bind(null,c,O,t),[t]),O.getSnapshot!==a||S||it!==null&&it.memoizedState.tag&1){if(c.flags|=2048,hl(9,{destroy:void 0},fp.bind(null,c,O,i,a),null),Be===null)throw Error(r(349));m||(Ln&127)!==0||up(c,a,i)}return i}function up(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=ke.updateQueue,a===null?(a=fo(),ke.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function fp(t,a,i,c){a.value=i,a.getSnapshot=c,hp(a)&&mp(t)}function Op(t,a,i){return i(function(){hp(a)&&mp(t)})}function hp(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!qt(t,i)}catch{return!0}}function mp(t){var a=hs(t,2);a!==null&&_t(a,t,2)}function gu(t){var a=$t();if(typeof t=="function"){var i=t;if(t=i(),Qs){ga(!0);try{i()}finally{ga(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:t},a}function pp(t,a,i,c){return t.baseState=i,pu(t,De,typeof c=="function"?c:Wn)}function wQ(t,a,i,c,O){if(xo(t))throw Error(r(485));if(t=a.action,t!==null){var m={payload:O,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){m.listeners.push(S)}};N.T!==null?i(!0):m.isTransition=!1,c(m),i=a.pending,i===null?(m.next=a.pending=m,xp(a,m)):(m.next=i.next,a.pending=i.next=m)}}function xp(t,a){var i=a.action,c=a.payload,O=t.state;if(a.isTransition){var m=N.T,S={};N.T=S;try{var $=i(O,c),R=N.S;R!==null&&R(S,$),gp(t,a,$)}catch(U){bu(t,a,U)}finally{m!==null&&S.types!==null&&(m.types=S.types),N.T=m}}else try{m=i(O,c),gp(t,a,m)}catch(U){bu(t,a,U)}}function gp(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){bp(t,a,c)},function(c){return bu(t,a,c)}):bp(t,a,i)}function bp(t,a,i){a.status="fulfilled",a.value=i,vp(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,xp(t,i)))}function bu(t,a,i){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,vp(a),a=a.next;while(a!==c)}t.action=null}function vp(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function yp(t,a){return a}function Sp(t,a){if(Ze){var i=Be.formState;if(i!==null){e:{var c=ke;if(Ze){if(He){t:{for(var O=He,m=sn;O.nodeType!==8;){if(!m){O=null;break t}if(O=rn(O.nextSibling),O===null){O=null;break t}}m=O.data,O=m==="F!"||m==="F"?O:null}if(O){He=rn(O.nextSibling),c=O.data==="F!";break e}}Qa(c)}c=!1}c&&(a=i[0])}}return i=$t(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yp,lastRenderedState:a},i.queue=c,i=Yp.bind(null,ke,c),c.dispatch=i,c=gu(!1),m=wu.bind(null,ke,!1,c.queue),c=$t(),O={state:a,dispatch:null,action:t,pending:null},c.queue=O,i=wQ.bind(null,ke,O,m,i),O.dispatch=i,c.memoizedState=t,[a,i,!1]}function Qp(t){var a=lt();return jp(a,De,t)}function jp(t,a,i){if(a=pu(t,a,yp)[0],t=ho(Wn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Nr(a)}catch(S){throw S===cl?ao:S}else c=a;a=lt();var O=a.queue,m=O.dispatch;return i!==a.memoizedState&&(ke.flags|=2048,hl(9,{destroy:void 0},kQ.bind(null,O,i),null)),[c,m,t]}function kQ(t,a){t.action=a}function wp(t){var a=lt(),i=De;if(i!==null)return jp(a,i,t);lt(),a=a.memoizedState,i=lt();var c=i.queue.dispatch;return i.memoizedState=t,[a,c,!1]}function hl(t,a,i,c){return t={tag:t,create:i,deps:c,inst:a,next:null},a=ke.updateQueue,a===null&&(a=fo(),ke.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(c=i.next,i.next=t,t.next=c,a.lastEffect=t),t}function kp(){return lt().memoizedState}function mo(t,a,i,c){var O=$t();ke.flags|=t,O.memoizedState=hl(1|a,{destroy:void 0},i,c===void 0?null:c)}function po(t,a,i,c){var O=lt();c=c===void 0?null:c;var m=O.memoizedState.inst;De!==null&&c!==null&&du(c,De.memoizedState.deps)?O.memoizedState=hl(a,m,i,c):(ke.flags|=t,O.memoizedState=hl(1|a,m,i,c))}function $p(t,a){mo(8390656,8,t,a)}function vu(t,a){po(2048,8,t,a)}function $Q(t){ke.flags|=4;var a=ke.updateQueue;if(a===null)a=fo(),ke.updateQueue=a,a.events=[t];else{var i=a.events;i===null?a.events=[t]:i.push(t)}}function Tp(t){var a=lt().memoizedState;return $Q({ref:a,nextImpl:t}),function(){if((Ye&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function Np(t,a){return po(4,2,t,a)}function Pp(t,a){return po(4,4,t,a)}function zp(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Cp(t,a,i){i=i!=null?i.concat([t]):null,po(4,4,zp.bind(null,a,t),i)}function yu(){}function Rp(t,a){var i=lt();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&du(a,c[1])?c[0]:(i.memoizedState=[t,a],t)}function _p(t,a){var i=lt();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&du(a,c[1]))return c[0];if(c=t(),Qs){ga(!0);try{t()}finally{ga(!1)}}return i.memoizedState=[c,a],c}function Su(t,a,i){return i===void 0||(Ln&1073741824)!==0&&(_e&261930)===0?t.memoizedState=a:(t.memoizedState=i,t=Xx(),ke.lanes|=t,Ca|=t,i)}function Xp(t,a,i,c){return qt(i,a)?i:ul.current!==null?(t=Su(t,i,c),qt(t,a)||(ot=!0),t):(Ln&42)===0||(Ln&1073741824)!==0&&(_e&261930)===0?(ot=!0,t.memoizedState=i):(t=Xx(),ke.lanes|=t,Ca|=t,a)}function Ap(t,a,i,c,O){var m=M.p;M.p=m!==0&&8>m?m:8;var S=N.T,$={};N.T=$,wu(t,!1,a,i);try{var R=O(),U=N.S;if(U!==null&&U($,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var ne=SQ(R,c);Pr(t,a,ne,Dt(t))}else Pr(t,a,c,Dt(t))}catch(le){Pr(t,a,{then:function(){},status:"rejected",reason:le},Dt())}finally{M.p=m,S!==null&&$.types!==null&&(S.types=$.types),N.T=S}}function TQ(){}function Qu(t,a,i,c){if(t.tag!==5)throw Error(r(476));var O=Zp(t).queue;Ap(t,O,a,K,i===null?TQ:function(){return Ep(t),i(c)})}function Zp(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:K},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Ep(t){var a=Zp(t);a.next===null&&(a=t.alternate.memoizedState),Pr(t,a.next.queue,{},Dt())}function ju(){return vt(Wr)}function qp(){return lt().memoizedState}function Mp(){return lt().memoizedState}function NQ(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=Dt();t=ka(i);var c=$a(a,t,i);c!==null&&(_t(c,a,i),wr(c,a,i)),a={cache:Jd()},t.payload=a;return}a=a.return}}function PQ(t,a,i){var c=Dt();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xo(t)?Up(a,i):(i=Ud(t,a,i,c),i!==null&&(_t(i,t,c),Vp(i,a,c)))}function Yp(t,a,i){var c=Dt();Pr(t,a,i,c)}function Pr(t,a,i,c){var O={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(xo(t))Up(a,O);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var S=a.lastRenderedState,$=m(S,i);if(O.hasEagerState=!0,O.eagerState=$,qt($,S))return Ii(t,a,O,0),Be===null&&Hi(),!1}catch{}finally{}if(i=Ud(t,a,O,c),i!==null)return _t(i,t,c),Vp(i,a,c),!0}return!1}function wu(t,a,i,c){if(c={lane:2,revertLane:af(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},xo(t)){if(a)throw Error(r(479))}else a=Ud(t,i,c,2),a!==null&&_t(a,t,2)}function xo(t){var a=t.alternate;return t===ke||a!==null&&a===ke}function Up(t,a){fl=co=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function Vp(t,a,i){if((i&4194048)!==0){var c=a.lanes;c&=t.pendingLanes,i|=c,a.lanes=i,Bh(t,i)}}var zr={readContext:vt,use:Oo,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};zr.useEffectEvent=tt;var Gp={readContext:vt,use:Oo,useCallback:function(t,a){return $t().memoizedState=[t,a===void 0?null:a],t},useContext:vt,useEffect:$p,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,mo(4194308,4,zp.bind(null,a,t),i)},useLayoutEffect:function(t,a){return mo(4194308,4,t,a)},useInsertionEffect:function(t,a){mo(4,2,t,a)},useMemo:function(t,a){var i=$t();a=a===void 0?null:a;var c=t();if(Qs){ga(!0);try{t()}finally{ga(!1)}}return i.memoizedState=[c,a],c},useReducer:function(t,a,i){var c=$t();if(i!==void 0){var O=i(a);if(Qs){ga(!0);try{i(a)}finally{ga(!1)}}}else O=a;return c.memoizedState=c.baseState=O,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:O},c.queue=t,t=t.dispatch=PQ.bind(null,ke,t),[c.memoizedState,t]},useRef:function(t){var a=$t();return t={current:t},a.memoizedState=t},useState:function(t){t=gu(t);var a=t.queue,i=Yp.bind(null,ke,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:yu,useDeferredValue:function(t,a){var i=$t();return Su(i,t,a)},useTransition:function(){var t=gu(!1);return t=Ap.bind(null,ke,t.queue,!0,!1),$t().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var c=ke,O=$t();if(Ze){if(i===void 0)throw Error(r(407));i=i()}else{if(i=a(),Be===null)throw Error(r(349));(_e&127)!==0||up(c,a,i)}O.memoizedState=i;var m={value:i,getSnapshot:a};return O.queue=m,$p(Op.bind(null,c,m,t),[t]),c.flags|=2048,hl(9,{destroy:void 0},fp.bind(null,c,m,i,a),null),i},useId:function(){var t=$t(),a=Be.identifierPrefix;if(Ze){var i=kn,c=wn;i=(c&~(1<<32-Et(c)-1)).toString(32)+i,a="_"+a+"R_"+i,i=uo++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=QQ++,a="_"+a+"r_"+i.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:ju,useFormState:Sp,useActionState:Sp,useOptimistic:function(t){var a=$t();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=wu.bind(null,ke,!0,i),i.dispatch=a,[t,a]},useMemoCache:mu,useCacheRefresh:function(){return $t().memoizedState=NQ.bind(null,ke)},useEffectEvent:function(t){var a=$t(),i={impl:t};return a.memoizedState=i,function(){if((Ye&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},ku={readContext:vt,use:Oo,useCallback:Rp,useContext:vt,useEffect:vu,useImperativeHandle:Cp,useInsertionEffect:Np,useLayoutEffect:Pp,useMemo:_p,useReducer:ho,useRef:kp,useState:function(){return ho(Wn)},useDebugValue:yu,useDeferredValue:function(t,a){var i=lt();return Xp(i,De.memoizedState,t,a)},useTransition:function(){var t=ho(Wn)[0],a=lt().memoizedState;return[typeof t=="boolean"?t:Nr(t),a]},useSyncExternalStore:dp,useId:qp,useHostTransitionStatus:ju,useFormState:Qp,useActionState:Qp,useOptimistic:function(t,a){var i=lt();return pp(i,De,t,a)},useMemoCache:mu,useCacheRefresh:Mp};ku.useEffectEvent=Tp;var Dp={readContext:vt,use:Oo,useCallback:Rp,useContext:vt,useEffect:vu,useImperativeHandle:Cp,useInsertionEffect:Np,useLayoutEffect:Pp,useMemo:_p,useReducer:xu,useRef:kp,useState:function(){return xu(Wn)},useDebugValue:yu,useDeferredValue:function(t,a){var i=lt();return De===null?Su(i,t,a):Xp(i,De.memoizedState,t,a)},useTransition:function(){var t=xu(Wn)[0],a=lt().memoizedState;return[typeof t=="boolean"?t:Nr(t),a]},useSyncExternalStore:dp,useId:qp,useHostTransitionStatus:ju,useFormState:wp,useActionState:wp,useOptimistic:function(t,a){var i=lt();return De!==null?pp(i,De,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:mu,useCacheRefresh:Mp};Dp.useEffectEvent=Tp;function $u(t,a,i,c){a=t.memoizedState,i=i(c,a),i=i==null?a:g({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Tu={enqueueSetState:function(t,a,i){t=t._reactInternals;var c=Dt(),O=ka(c);O.payload=a,i!=null&&(O.callback=i),a=$a(t,O,c),a!==null&&(_t(a,t,c),wr(a,t,c))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var c=Dt(),O=ka(c);O.tag=1,O.payload=a,i!=null&&(O.callback=i),a=$a(t,O,c),a!==null&&(_t(a,t,c),wr(a,t,c))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=Dt(),c=ka(i);c.tag=2,a!=null&&(c.callback=a),a=$a(t,c,i),a!==null&&(_t(a,t,i),wr(a,t,i))}};function Lp(t,a,i,c,O,m,S){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,m,S):a.prototype&&a.prototype.isPureReactComponent?!xr(i,c)||!xr(O,m):!0}function Wp(t,a,i,c){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,c),a.state!==t&&Tu.enqueueReplaceState(a,a.state,null)}function js(t,a){var i=a;if("ref"in a){i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}if(t=t.defaultProps){i===a&&(i=g({},i));for(var O in t)i[O]===void 0&&(i[O]=t[O])}return i}function Bp(t){Bi(t)}function Hp(t){console.error(t)}function Ip(t){Bi(t)}function go(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Fp(t,a,i){try{var c=t.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function Nu(t,a,i){return i=ka(i),i.tag=3,i.payload={element:null},i.callback=function(){go(t,a)},i}function Kp(t){return t=ka(t),t.tag=3,t}function Jp(t,a,i,c){var O=i.type.getDerivedStateFromError;if(typeof O=="function"){var m=c.value;t.payload=function(){return O(m)},t.callback=function(){Fp(a,i,c)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(t.callback=function(){Fp(a,i,c),typeof O!="function"&&(Ra===null?Ra=new Set([this]):Ra.add(this));var $=c.stack;this.componentDidCatch(c.value,{componentStack:$!==null?$:""})})}function zQ(t,a,i,c,O){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&rl(a,i,O,!0),i=Yt.current,i!==null){switch(i.tag){case 31:case 13:return ln===null?Po():i.alternate===null&&nt===0&&(nt=3),i.flags&=-257,i.flags|=65536,i.lanes=O,c===so?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),ef(t,c,O)),!1;case 22:return i.flags|=65536,c===so?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([c]):i.add(c)),ef(t,c,O)),!1}throw Error(r(435,i.tag))}return ef(t,c,O),Po(),!1}if(Ze)return a=Yt.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=O,c!==Bd&&(t=Error(r(422),{cause:c}),vr(tn(t,i)))):(c!==Bd&&(a=Error(r(423),{cause:c}),vr(tn(a,i))),t=t.current.alternate,t.flags|=65536,O&=-O,t.lanes|=O,c=tn(c,i),O=Nu(t.stateNode,c,O),lu(t,O),nt!==4&&(nt=2)),!1;var m=Error(r(520),{cause:c});if(m=tn(m,i),qr===null?qr=[m]:qr.push(m),nt!==4&&(nt=2),a===null)return!0;c=tn(c,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=O&-O,i.lanes|=t,t=Nu(i.stateNode,c,t),lu(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ra===null||!Ra.has(m))))return i.flags|=65536,O&=-O,i.lanes|=O,O=Kp(O),Jp(O,t,i,c),lu(i,O),!1}i=i.return}while(i!==null);return!1}var Pu=Error(r(461)),ot=!1;function yt(t,a,i,c){a.child=t===null?ap(a,null,i,c):Ss(a,t.child,i,c)}function ex(t,a,i,c,O){i=i.render;var m=a.ref;if("ref"in c){var S={};for(var $ in c)$!=="ref"&&(S[$]=c[$])}else S=c;return gs(a),c=uu(t,a,i,S,m,O),$=fu(),t!==null&&!ot?(Ou(t,a,O),Bn(t,a,O)):(Ze&&$&&Ld(a),a.flags|=1,yt(t,a,c,O),a.child)}function tx(t,a,i,c,O){if(t===null){var m=i.type;return typeof m=="function"&&!Vd(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,nx(t,a,m,c,O)):(t=Ki(i.type,null,c,a,a.mode,O),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Eu(t,O)){var S=m.memoizedProps;if(i=i.compare,i=i!==null?i:xr,i(S,c)&&t.ref===a.ref)return Bn(t,a,O)}return a.flags|=1,t=Un(m,c),t.ref=a.ref,t.return=a,a.child=t}function nx(t,a,i,c,O){if(t!==null){var m=t.memoizedProps;if(xr(m,c)&&t.ref===a.ref)if(ot=!1,a.pendingProps=c=m,Eu(t,O))(t.flags&131072)!==0&&(ot=!0);else return a.lanes=t.lanes,Bn(t,a,O)}return zu(t,a,i,c,O)}function ax(t,a,i,c){var O=c.children,m=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,t!==null){for(c=a.child=t.child,O=0;c!==null;)O=O|c.lanes|c.childLanes,c=c.sibling;c=O&~m}else c=0,a.child=null;return sx(t,a,m,i,c)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&no(a,m!==null?m.cachePool:null),m!==null?rp(a,m):iu(),ip(a);else return c=a.lanes=536870912,sx(t,a,m!==null?m.baseLanes|i:i,i,c)}else m!==null?(no(a,m.cachePool),rp(a,m),Na(),a.memoizedState=null):(t!==null&&no(a,null),iu(),Na());return yt(t,a,O,i),a.child}function Cr(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function sx(t,a,i,c,O){var m=tu();return m=m===null?null:{parent:rt._currentValue,pool:m},a.memoizedState={baseLanes:i,cachePool:m},t!==null&&no(a,null),iu(),ip(a),t!==null&&rl(t,a,c,!0),a.childLanes=O,null}function bo(t,a){return a=yo({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function lx(t,a,i){return Ss(a,t.child,null,i),t=bo(a,a.pendingProps),t.flags|=2,Ut(a),a.memoizedState=null,t}function CQ(t,a,i){var c=a.pendingProps,O=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(Ze){if(c.mode==="hidden")return t=bo(a,c),a.lanes=536870912,Cr(null,t);if(cu(a),(t=He)?(t=xg(t,sn),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:ya!==null?{id:wn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=Um(t),i.return=a,a.child=i,bt=a,He=null)):t=null,t===null)throw Qa(a);return a.lanes=536870912,null}return bo(a,c)}var m=t.memoizedState;if(m!==null){var S=m.dehydrated;if(cu(a),O)if(a.flags&256)a.flags&=-257,a=lx(t,a,i);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(r(558));else if(ot||rl(t,a,i,!1),O=(i&t.childLanes)!==0,ot||O){if(c=Be,c!==null&&(S=Hh(c,i),S!==0&&S!==m.retryLane))throw m.retryLane=S,hs(t,S),_t(c,t,S),Pu;Po(),a=lx(t,a,i)}else t=m.treeContext,He=rn(S.nextSibling),bt=a,Ze=!0,Sa=null,sn=!1,t!==null&&Dm(a,t),a=bo(a,c),a.flags|=4096;return a}return t=Un(t.child,{mode:c.mode,children:c.children}),t.ref=a.ref,a.child=t,t.return=a,t}function vo(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function zu(t,a,i,c,O){return gs(a),i=uu(t,a,i,c,void 0,O),c=fu(),t!==null&&!ot?(Ou(t,a,O),Bn(t,a,O)):(Ze&&c&&Ld(a),a.flags|=1,yt(t,a,i,O),a.child)}function rx(t,a,i,c,O,m){return gs(a),a.updateQueue=null,i=cp(a,c,i,O),op(t),c=fu(),t!==null&&!ot?(Ou(t,a,m),Bn(t,a,m)):(Ze&&c&&Ld(a),a.flags|=1,yt(t,a,i,m),a.child)}function ix(t,a,i,c,O){if(gs(a),a.stateNode===null){var m=nl,S=i.contextType;typeof S=="object"&&S!==null&&(m=vt(S)),m=new i(c,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Tu,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=c,m.state=a.memoizedState,m.refs={},au(a),S=i.contextType,m.context=typeof S=="object"&&S!==null?vt(S):nl,m.state=a.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&($u(a,i,S,c),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(S=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),S!==m.state&&Tu.enqueueReplaceState(m,m.state,null),$r(a,c,m,O),kr(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(t===null){m=a.stateNode;var $=a.memoizedProps,R=js(i,$);m.props=R;var U=m.context,ne=i.contextType;S=nl,typeof ne=="object"&&ne!==null&&(S=vt(ne));var le=i.getDerivedStateFromProps;ne=typeof le=="function"||typeof m.getSnapshotBeforeUpdate=="function",$=a.pendingProps!==$,ne||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||($||U!==S)&&Wp(a,m,c,S),wa=!1;var L=a.memoizedState;m.state=L,$r(a,c,m,O),kr(),U=a.memoizedState,$||L!==U||wa?(typeof le=="function"&&($u(a,i,le,c),U=a.memoizedState),(R=wa||Lp(a,i,R,c,L,U,S))?(ne||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=U),m.props=c,m.state=U,m.context=S,c=R):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{m=a.stateNode,su(t,a),S=a.memoizedProps,ne=js(i,S),m.props=ne,le=a.pendingProps,L=m.context,U=i.contextType,R=nl,typeof U=="object"&&U!==null&&(R=vt(U)),$=i.getDerivedStateFromProps,(U=typeof $=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(S!==le||L!==R)&&Wp(a,m,c,R),wa=!1,L=a.memoizedState,m.state=L,$r(a,c,m,O),kr();var F=a.memoizedState;S!==le||L!==F||wa||t!==null&&t.dependencies!==null&&eo(t.dependencies)?(typeof $=="function"&&($u(a,i,$,c),F=a.memoizedState),(ne=wa||Lp(a,i,ne,c,L,F,R)||t!==null&&t.dependencies!==null&&eo(t.dependencies))?(U||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,F,R),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,F,R)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&L===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&L===t.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=F),m.props=c,m.state=F,m.context=R,c=ne):(typeof m.componentDidUpdate!="function"||S===t.memoizedProps&&L===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||S===t.memoizedProps&&L===t.memoizedState||(a.flags|=1024),c=!1)}return m=c,vo(t,a),c=(a.flags&128)!==0,m||c?(m=a.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&c?(a.child=Ss(a,t.child,null,O),a.child=Ss(a,null,i,O)):yt(t,a,i,O),a.memoizedState=m.state,t=a.child):t=Bn(t,a,O),t}function ox(t,a,i,c){return ps(),a.flags|=256,yt(t,a,i,c),a.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ru(t){return{baseLanes:t,cachePool:Fm()}}function _u(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Gt),t}function cx(t,a,i){var c=a.pendingProps,O=!1,m=(a.flags&128)!==0,S;if((S=m)||(S=t!==null&&t.memoizedState===null?!1:(st.current&2)!==0),S&&(O=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,t===null){if(Ze){if(O?Ta(a):Na(),(t=He)?(t=xg(t,sn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:ya!==null?{id:wn,overflow:kn}:null,retryLane:536870912,hydrationErrors:null},i=Um(t),i.return=a,a.child=i,bt=a,He=null)):t=null,t===null)throw Qa(a);return xf(t)?a.lanes=32:a.lanes=536870912,null}var $=c.children;return c=c.fallback,O?(Na(),O=a.mode,$=yo({mode:"hidden",children:$},O),c=ms(c,O,i,null),$.return=a,c.return=a,$.sibling=c,a.child=$,c=a.child,c.memoizedState=Ru(i),c.childLanes=_u(t,S,i),a.memoizedState=Cu,Cr(null,c)):(Ta(a),Xu(a,$))}var R=t.memoizedState;if(R!==null&&($=R.dehydrated,$!==null)){if(m)a.flags&256?(Ta(a),a.flags&=-257,a=Au(t,a,i)):a.memoizedState!==null?(Na(),a.child=t.child,a.flags|=128,a=null):(Na(),$=c.fallback,O=a.mode,c=yo({mode:"visible",children:c.children},O),$=ms($,O,i,null),$.flags|=2,c.return=a,$.return=a,c.sibling=$,a.child=c,Ss(a,t.child,null,i),c=a.child,c.memoizedState=Ru(i),c.childLanes=_u(t,S,i),a.memoizedState=Cu,a=Cr(null,c));else if(Ta(a),xf($)){if(S=$.nextSibling&&$.nextSibling.dataset,S)var U=S.dgst;S=U,c=Error(r(419)),c.stack="",c.digest=S,vr({value:c,source:null,stack:null}),a=Au(t,a,i)}else if(ot||rl(t,a,i,!1),S=(i&t.childLanes)!==0,ot||S){if(S=Be,S!==null&&(c=Hh(S,i),c!==0&&c!==R.retryLane))throw R.retryLane=c,hs(t,c),_t(S,t,c),Pu;pf($)||Po(),a=Au(t,a,i)}else pf($)?(a.flags|=192,a.child=t.child,a=null):(t=R.treeContext,He=rn($.nextSibling),bt=a,Ze=!0,Sa=null,sn=!1,t!==null&&Dm(a,t),a=Xu(a,c.children),a.flags|=4096);return a}return O?(Na(),$=c.fallback,O=a.mode,R=t.child,U=R.sibling,c=Un(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,U!==null?$=Un(U,$):($=ms($,O,i,null),$.flags|=2),$.return=a,c.return=a,c.sibling=$,a.child=c,Cr(null,c),c=a.child,$=t.child.memoizedState,$===null?$=Ru(i):(O=$.cachePool,O!==null?(R=rt._currentValue,O=O.parent!==R?{parent:R,pool:R}:O):O=Fm(),$={baseLanes:$.baseLanes|i,cachePool:O}),c.memoizedState=$,c.childLanes=_u(t,S,i),a.memoizedState=Cu,Cr(t.child,c)):(Ta(a),i=t.child,t=i.sibling,i=Un(i,{mode:"visible",children:c.children}),i.return=a,i.sibling=null,t!==null&&(S=a.deletions,S===null?(a.deletions=[t],a.flags|=16):S.push(t)),a.child=i,a.memoizedState=null,i)}function Xu(t,a){return a=yo({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function yo(t,a){return t=Mt(22,t,null,a),t.lanes=0,t}function Au(t,a,i){return Ss(a,t.child,null,i),t=Xu(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function dx(t,a,i){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a),Fd(t.return,a,i)}function Zu(t,a,i,c,O,m){var S=t.memoizedState;S===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:O,treeForkCount:m}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=c,S.tail=i,S.tailMode=O,S.treeForkCount=m)}function ux(t,a,i){var c=a.pendingProps,O=c.revealOrder,m=c.tail;c=c.children;var S=st.current,$=(S&2)!==0;if($?(S=S&1|2,a.flags|=128):S&=1,ue(st,S),yt(t,a,c,i),c=Ze?br:0,!$&&t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&dx(t,i,a);else if(t.tag===19)dx(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(O){case"forwards":for(i=a.child,O=null;i!==null;)t=i.alternate,t!==null&&oo(t)===null&&(O=i),i=i.sibling;i=O,i===null?(O=a.child,a.child=null):(O=i.sibling,i.sibling=null),Zu(a,!1,O,i,m,c);break;case"backwards":case"unstable_legacy-backwards":for(i=null,O=a.child,a.child=null;O!==null;){if(t=O.alternate,t!==null&&oo(t)===null){a.child=O;break}t=O.sibling,O.sibling=i,i=O,O=t}Zu(a,!0,i,null,m,c);break;case"together":Zu(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function Bn(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),Ca|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(rl(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(r(153));if(a.child!==null){for(t=a.child,i=Un(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=Un(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Eu(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&eo(t)))}function RQ(t,a,i){switch(a.tag){case 3:te(a,a.stateNode.containerInfo),ja(a,rt,t.memoizedState.cache),ps();break;case 27:case 5:Re(a);break;case 4:te(a,a.stateNode.containerInfo);break;case 10:ja(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,cu(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Ta(a),a.flags|=128,null):(i&a.child.childLanes)!==0?cx(t,a,i):(Ta(a),t=Bn(t,a,i),t!==null?t.sibling:null);Ta(a);break;case 19:var O=(t.flags&128)!==0;if(c=(i&a.childLanes)!==0,c||(rl(t,a,i,!1),c=(i&a.childLanes)!==0),O){if(c)return ux(t,a,i);a.flags|=128}if(O=a.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),ue(st,st.current),c)break;return null;case 22:return a.lanes=0,ax(t,a,i,a.pendingProps);case 24:ja(a,rt,t.memoizedState.cache)}return Bn(t,a,i)}function fx(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)ot=!0;else{if(!Eu(t,i)&&(a.flags&128)===0)return ot=!1,RQ(t,a,i);ot=(t.flags&131072)!==0}else ot=!1,Ze&&(a.flags&1048576)!==0&&Gm(a,br,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(t=vs(a.elementType),a.type=t,typeof t=="function")Vd(t)?(c=js(t,c),a.tag=1,a=ix(null,a,t,c,i)):(a.tag=0,a=zu(null,a,t,c,i));else{if(t!=null){var O=t.$$typeof;if(O===_){a.tag=11,a=ex(null,a,t,c,i);break e}else if(O===C){a.tag=14,a=tx(null,a,t,c,i);break e}}throw a=ie(t)||t,Error(r(306,a,""))}}return a;case 0:return zu(t,a,a.type,a.pendingProps,i);case 1:return c=a.type,O=js(c,a.pendingProps),ix(t,a,c,O,i);case 3:e:{if(te(a,a.stateNode.containerInfo),t===null)throw Error(r(387));c=a.pendingProps;var m=a.memoizedState;O=m.element,su(t,a),$r(a,c,null,i);var S=a.memoizedState;if(c=S.cache,ja(a,rt,c),c!==m.cache&&Kd(a,[rt],i,!0),kr(),c=S.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=ox(t,a,c,i);break e}else if(c!==O){O=tn(Error(r(424)),a),vr(O),a=ox(t,a,c,i);break e}else{switch(t=a.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(He=rn(t.firstChild),bt=a,Ze=!0,Sa=null,sn=!0,i=ap(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ps(),c===O){a=Bn(t,a,i);break e}yt(t,a,c,i)}a=a.child}return a;case 26:return vo(t,a),t===null?(i=Qg(a.type,null,a.pendingProps,null))?a.memoizedState=i:Ze||(i=a.type,t=a.pendingProps,c=Zo(B.current).createElement(i),c[gt]=a,c[Tt]=t,St(c,i,t),mt(c),a.stateNode=c):a.memoizedState=Qg(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return Re(a),t===null&&Ze&&(c=a.stateNode=vg(a.type,a.pendingProps,B.current),bt=a,sn=!0,O=He,Za(a.type)?(gf=O,He=rn(c.firstChild)):He=O),yt(t,a,a.pendingProps.children,i),vo(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&Ze&&((O=c=He)&&(c=cj(c,a.type,a.pendingProps,sn),c!==null?(a.stateNode=c,bt=a,He=rn(c.firstChild),sn=!1,O=!0):O=!1),O||Qa(a)),Re(a),O=a.type,m=a.pendingProps,S=t!==null?t.memoizedProps:null,c=m.children,Of(O,m)?c=null:S!==null&&Of(O,S)&&(a.flags|=32),a.memoizedState!==null&&(O=uu(t,a,jQ,null,null,i),Wr._currentValue=O),vo(t,a),yt(t,a,c,i),a.child;case 6:return t===null&&Ze&&((t=i=He)&&(i=dj(i,a.pendingProps,sn),i!==null?(a.stateNode=i,bt=a,He=null,t=!0):t=!1),t||Qa(a)),null;case 13:return cx(t,a,i);case 4:return te(a,a.stateNode.containerInfo),c=a.pendingProps,t===null?a.child=Ss(a,null,c,i):yt(t,a,c,i),a.child;case 11:return ex(t,a,a.type,a.pendingProps,i);case 7:return yt(t,a,a.pendingProps,i),a.child;case 8:return yt(t,a,a.pendingProps.children,i),a.child;case 12:return yt(t,a,a.pendingProps.children,i),a.child;case 10:return c=a.pendingProps,ja(a,a.type,c.value),yt(t,a,c.children,i),a.child;case 9:return O=a.type._context,c=a.pendingProps.children,gs(a),O=vt(O),c=c(O),a.flags|=1,yt(t,a,c,i),a.child;case 14:return tx(t,a,a.type,a.pendingProps,i);case 15:return nx(t,a,a.type,a.pendingProps,i);case 19:return ux(t,a,i);case 31:return CQ(t,a,i);case 22:return ax(t,a,i,a.pendingProps);case 24:return gs(a),c=vt(rt),t===null?(O=tu(),O===null&&(O=Be,m=Jd(),O.pooledCache=m,m.refCount++,m!==null&&(O.pooledCacheLanes|=i),O=m),a.memoizedState={parent:c,cache:O},au(a),ja(a,rt,O)):((t.lanes&i)!==0&&(su(t,a),$r(a,null,null,i),kr()),O=t.memoizedState,m=a.memoizedState,O.parent!==c?(O={parent:c,cache:c},a.memoizedState=O,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=O),ja(a,rt,c)):(c=m.cache,ja(a,rt,c),c!==O.cache&&Kd(a,[rt],i,!0))),yt(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function Hn(t){t.flags|=4}function qu(t,a,i,c,O){if((a=(t.mode&32)!==0)&&(a=!1),a){if(t.flags|=16777216,(O&335544128)===O)if(t.stateNode.complete)t.flags|=8192;else if(qx())t.flags|=8192;else throw ys=so,nu}else t.flags&=-16777217}function Ox(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Tg(a))if(qx())t.flags|=8192;else throw ys=so,nu}function So(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Lh():536870912,t.lanes|=a,gl|=a)}function Rr(t,a){if(!Ze)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function Ie(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,c=0;if(a)for(var O=t.child;O!==null;)i|=O.lanes|O.childLanes,c|=O.subtreeFlags&65011712,c|=O.flags&65011712,O.return=t,O=O.sibling;else for(O=t.child;O!==null;)i|=O.lanes|O.childLanes,c|=O.subtreeFlags,c|=O.flags,O.return=t,O=O.sibling;return t.subtreeFlags|=c,t.childLanes=i,a}function _Q(t,a,i){var c=a.pendingProps;switch(Wd(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ie(a),null;case 1:return Ie(a),null;case 3:return i=a.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Dn(rt),Oe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(ll(a)?Hn(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Hd())),Ie(a),null;case 26:var O=a.type,m=a.memoizedState;return t===null?(Hn(a),m!==null?(Ie(a),Ox(a,m)):(Ie(a),qu(a,O,null,c,i))):m?m!==t.memoizedState?(Hn(a),Ie(a),Ox(a,m)):(Ie(a),a.flags&=-16777217):(t=t.memoizedProps,t!==c&&Hn(a),Ie(a),qu(a,O,t,c,i)),null;case 27:if($e(a),i=B.current,O=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&Hn(a);else{if(!c){if(a.stateNode===null)throw Error(r(166));return Ie(a),null}t=ye.current,ll(a)?Lm(a):(t=vg(O,c,i),a.stateNode=t,Hn(a))}return Ie(a),null;case 5:if($e(a),O=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&Hn(a);else{if(!c){if(a.stateNode===null)throw Error(r(166));return Ie(a),null}if(m=ye.current,ll(a))Lm(a);else{var S=Zo(B.current);switch(m){case 1:m=S.createElementNS("http://www.w3.org/2000/svg",O);break;case 2:m=S.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;default:switch(O){case"svg":m=S.createElementNS("http://www.w3.org/2000/svg",O);break;case"math":m=S.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;case"script":m=S.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof c.is=="string"?S.createElement("select",{is:c.is}):S.createElement("select"),c.multiple?m.multiple=!0:c.size&&(m.size=c.size);break;default:m=typeof c.is=="string"?S.createElement(O,{is:c.is}):S.createElement(O)}}m[gt]=a,m[Tt]=c;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)m.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=m;e:switch(St(m,O,c),O){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Hn(a)}}return Ie(a),qu(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,i),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==c&&Hn(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(r(166));if(t=B.current,ll(a)){if(t=a.stateNode,i=a.memoizedProps,c=null,O=bt,O!==null)switch(O.tag){case 27:case 5:c=O.memoizedProps}t[gt]=a,t=!!(t.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||cg(t.nodeValue,i)),t||Qa(a,!0)}else t=Zo(t).createTextNode(c),t[gt]=a,a.stateNode=t}return Ie(a),null;case 31:if(i=a.memoizedState,t===null||t.memoizedState!==null){if(c=ll(a),i!==null){if(t===null){if(!c)throw Error(r(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[gt]=a}else ps(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ie(a),t=!1}else i=Hd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),t=!0;if(!t)return a.flags&256?(Ut(a),a):(Ut(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Ie(a),null;case 13:if(c=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(O=ll(a),c!==null&&c.dehydrated!==null){if(t===null){if(!O)throw Error(r(318));if(O=a.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(r(317));O[gt]=a}else ps(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ie(a),O=!1}else O=Hd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=O),O=!0;if(!O)return a.flags&256?(Ut(a),a):(Ut(a),null)}return Ut(a),(a.flags&128)!==0?(a.lanes=i,a):(i=c!==null,t=t!==null&&t.memoizedState!==null,i&&(c=a.child,O=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(O=c.alternate.memoizedState.cachePool.pool),m=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==O&&(c.flags|=2048)),i!==t&&i&&(a.child.flags|=8192),So(a,a.updateQueue),Ie(a),null);case 4:return Oe(),t===null&&of(a.stateNode.containerInfo),Ie(a),null;case 10:return Dn(a.type),Ie(a),null;case 19:if(ve(st),c=a.memoizedState,c===null)return Ie(a),null;if(O=(a.flags&128)!==0,m=c.rendering,m===null)if(O)Rr(c,!1);else{if(nt!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=oo(t),m!==null){for(a.flags|=128,Rr(c,!1),t=m.updateQueue,a.updateQueue=t,So(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Ym(i,t),i=i.sibling;return ue(st,st.current&1|2),Ze&&Vn(a,c.treeForkCount),a.child}t=t.sibling}c.tail!==null&&At()>$o&&(a.flags|=128,O=!0,Rr(c,!1),a.lanes=4194304)}else{if(!O)if(t=oo(m),t!==null){if(a.flags|=128,O=!0,t=t.updateQueue,a.updateQueue=t,So(a,t),Rr(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Ze)return Ie(a),null}else 2*At()-c.renderingStartTime>$o&&i!==536870912&&(a.flags|=128,O=!0,Rr(c,!1),a.lanes=4194304);c.isBackwards?(m.sibling=a.child,a.child=m):(t=c.last,t!==null?t.sibling=m:a.child=m,c.last=m)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=At(),t.sibling=null,i=st.current,ue(st,O?i&1|2:i&1),Ze&&Vn(a,c.treeForkCount),t):(Ie(a),null);case 22:case 23:return Ut(a),ou(),c=a.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(i&536870912)!==0&&(a.flags&128)===0&&(Ie(a),a.subtreeFlags&6&&(a.flags|=8192)):Ie(a),i=a.updateQueue,i!==null&&So(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048),t!==null&&ve(bs),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Dn(rt),Ie(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function XQ(t,a){switch(Wd(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Dn(rt),Oe(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return $e(a),null;case 31:if(a.memoizedState!==null){if(Ut(a),a.alternate===null)throw Error(r(340));ps()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(Ut(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(r(340));ps()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return ve(st),null;case 4:return Oe(),null;case 10:return Dn(a.type),null;case 22:case 23:return Ut(a),ou(),t!==null&&ve(bs),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Dn(rt),null;case 25:return null;default:return null}}function hx(t,a){switch(Wd(a),a.tag){case 3:Dn(rt),Oe();break;case 26:case 27:case 5:$e(a);break;case 4:Oe();break;case 31:a.memoizedState!==null&&Ut(a);break;case 13:Ut(a);break;case 19:ve(st);break;case 10:Dn(a.type);break;case 22:case 23:Ut(a),ou(),t!==null&&ve(bs);break;case 24:Dn(rt)}}function _r(t,a){try{var i=a.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var O=c.next;i=O;do{if((i.tag&t)===t){c=void 0;var m=i.create,S=i.inst;c=m(),S.destroy=c}i=i.next}while(i!==O)}}catch($){Ge(a,a.return,$)}}function Pa(t,a,i){try{var c=a.updateQueue,O=c!==null?c.lastEffect:null;if(O!==null){var m=O.next;c=m;do{if((c.tag&t)===t){var S=c.inst,$=S.destroy;if($!==void 0){S.destroy=void 0,O=a;var R=i,U=$;try{U()}catch(ne){Ge(O,R,ne)}}}c=c.next}while(c!==m)}}catch(ne){Ge(a,a.return,ne)}}function mx(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{lp(a,i)}catch(c){Ge(t,t.return,c)}}}function px(t,a,i){i.props=js(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(c){Ge(t,a,c)}}function Xr(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(O){Ge(t,a,O)}}function $n(t,a){var i=t.ref,c=t.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(O){Ge(t,a,O)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(O){Ge(t,a,O)}else i.current=null}function xx(t){var a=t.type,i=t.memoizedProps,c=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(O){Ge(t,t.return,O)}}function Mu(t,a,i){try{var c=t.stateNode;aj(c,t.type,i,a),c[Tt]=a}catch(O){Ge(t,t.return,O)}}function gx(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Za(t.type)||t.tag===4}function Yu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||gx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Za(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Uu(t,a,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Mn));else if(c!==4&&(c===27&&Za(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(Uu(t,a,i),t=t.sibling;t!==null;)Uu(t,a,i),t=t.sibling}function Qo(t,a,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(c!==4&&(c===27&&Za(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Qo(t,a,i),t=t.sibling;t!==null;)Qo(t,a,i),t=t.sibling}function bx(t){var a=t.stateNode,i=t.memoizedProps;try{for(var c=t.type,O=a.attributes;O.length;)a.removeAttributeNode(O[0]);St(a,c,i),a[gt]=t,a[Tt]=i}catch(m){Ge(t,t.return,m)}}var In=!1,ct=!1,Vu=!1,vx=typeof WeakSet=="function"?WeakSet:Set,pt=null;function AQ(t,a){if(t=t.containerInfo,uf=Go,t=Cm(t),Ad(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var O=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var S=0,$=-1,R=-1,U=0,ne=0,le=t,L=null;t:for(;;){for(var F;le!==i||O!==0&&le.nodeType!==3||($=S+O),le!==m||c!==0&&le.nodeType!==3||(R=S+c),le.nodeType===3&&(S+=le.nodeValue.length),(F=le.firstChild)!==null;)L=le,le=F;for(;;){if(le===t)break t;if(L===i&&++U===O&&($=S),L===m&&++ne===c&&(R=S),(F=le.nextSibling)!==null)break;le=L,L=le.parentNode}le=F}i=$===-1||R===-1?null:{start:$,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(ff={focusedElem:t,selectionRange:i},Go=!1,pt=a;pt!==null;)if(a=pt,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,pt=t;else for(;pt!==null;){switch(a=pt,m=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(i=0;i<t.length;i++)O=t[i],O.ref.impl=O.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,O=m.memoizedProps,m=m.memoizedState,c=i.stateNode;try{var he=js(i.type,O);t=c.getSnapshotBeforeUpdate(he,m),c.__reactInternalSnapshotBeforeUpdate=t}catch(we){Ge(i,i.return,we)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)mf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=a.sibling,t!==null){t.return=a.return,pt=t;break}pt=a.return}}function yx(t,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:Kn(t,i),c&4&&_r(5,i);break;case 1:if(Kn(t,i),c&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(S){Ge(i,i.return,S)}else{var O=js(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(O,a,t.__reactInternalSnapshotBeforeUpdate)}catch(S){Ge(i,i.return,S)}}c&64&&mx(i),c&512&&Xr(i,i.return);break;case 3:if(Kn(t,i),c&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{lp(t,a)}catch(S){Ge(i,i.return,S)}}break;case 27:a===null&&c&4&&bx(i);case 26:case 5:Kn(t,i),a===null&&c&4&&xx(i),c&512&&Xr(i,i.return);break;case 12:Kn(t,i);break;case 31:Kn(t,i),c&4&&jx(t,i);break;case 13:Kn(t,i),c&4&&wx(t,i),c&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=DQ.bind(null,i),uj(t,i))));break;case 22:if(c=i.memoizedState!==null||In,!c){a=a!==null&&a.memoizedState!==null||ct,O=In;var m=ct;In=c,(ct=a)&&!m?Jn(t,i,(i.subtreeFlags&8772)!==0):Kn(t,i),In=O,ct=m}break;case 30:break;default:Kn(t,i)}}function Sx(t){var a=t.alternate;a!==null&&(t.alternate=null,Sx(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&bd(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ke=null,Pt=!1;function Fn(t,a,i){for(i=i.child;i!==null;)Qx(t,a,i),i=i.sibling}function Qx(t,a,i){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(lr,i)}catch{}switch(i.tag){case 26:ct||$n(i,a),Fn(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:ct||$n(i,a);var c=Ke,O=Pt;Za(i.type)&&(Ke=i.stateNode,Pt=!1),Fn(t,a,i),Gr(i.stateNode),Ke=c,Pt=O;break;case 5:ct||$n(i,a);case 6:if(c=Ke,O=Pt,Ke=null,Fn(t,a,i),Ke=c,Pt=O,Ke!==null)if(Pt)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(i.stateNode)}catch(m){Ge(i,a,m)}else try{Ke.removeChild(i.stateNode)}catch(m){Ge(i,a,m)}break;case 18:Ke!==null&&(Pt?(t=Ke,mg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),kl(t)):mg(Ke,i.stateNode));break;case 4:c=Ke,O=Pt,Ke=i.stateNode.containerInfo,Pt=!0,Fn(t,a,i),Ke=c,Pt=O;break;case 0:case 11:case 14:case 15:Pa(2,i,a),ct||Pa(4,i,a),Fn(t,a,i);break;case 1:ct||($n(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&px(i,a,c)),Fn(t,a,i);break;case 21:Fn(t,a,i);break;case 22:ct=(c=ct)||i.memoizedState!==null,Fn(t,a,i),ct=c;break;default:Fn(t,a,i)}}function jx(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kl(t)}catch(i){Ge(a,a.return,i)}}}function wx(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kl(t)}catch(i){Ge(a,a.return,i)}}function ZQ(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new vx),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new vx),a;default:throw Error(r(435,t.tag))}}function jo(t,a){var i=ZQ(t);a.forEach(function(c){if(!i.has(c)){i.add(c);var O=LQ.bind(null,t,c);c.then(O,O)}})}function zt(t,a){var i=a.deletions;if(i!==null)for(var c=0;c<i.length;c++){var O=i[c],m=t,S=a,$=S;e:for(;$!==null;){switch($.tag){case 27:if(Za($.type)){Ke=$.stateNode,Pt=!1;break e}break;case 5:Ke=$.stateNode,Pt=!1;break e;case 3:case 4:Ke=$.stateNode.containerInfo,Pt=!0;break e}$=$.return}if(Ke===null)throw Error(r(160));Qx(m,S,O),Ke=null,Pt=!1,m=O.alternate,m!==null&&(m.return=null),O.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)kx(a,t),a=a.sibling}var mn=null;function kx(t,a){var i=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:zt(a,t),Ct(t),c&4&&(Pa(3,t,t.return),_r(3,t),Pa(5,t,t.return));break;case 1:zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),c&64&&In&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var O=mn;if(zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),c&4){var m=i!==null?i.memoizedState:null;if(c=t.memoizedState,i===null)if(c===null)if(t.stateNode===null){e:{c=t.type,i=t.memoizedProps,O=O.ownerDocument||O;t:switch(c){case"title":m=O.getElementsByTagName("title")[0],(!m||m[or]||m[gt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=O.createElement(c),O.head.insertBefore(m,O.querySelector("head > title"))),St(m,c,i),m[gt]=t,mt(m),c=m;break e;case"link":var S=kg("link","href",O).get(c+(i.href||""));if(S){for(var $=0;$<S.length;$++)if(m=S[$],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice($,1);break t}}m=O.createElement(c),St(m,c,i),O.head.appendChild(m);break;case"meta":if(S=kg("meta","content",O).get(c+(i.content||""))){for($=0;$<S.length;$++)if(m=S[$],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice($,1);break t}}m=O.createElement(c),St(m,c,i),O.head.appendChild(m);break;default:throw Error(r(468,c))}m[gt]=t,mt(m),c=m}t.stateNode=c}else $g(O,t.type,t.stateNode);else t.stateNode=wg(O,c,t.memoizedProps);else m!==c?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,c===null?$g(O,t.type,t.stateNode):wg(O,c,t.memoizedProps)):c===null&&t.stateNode!==null&&Mu(t,t.memoizedProps,i.memoizedProps)}break;case 27:zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),i!==null&&c&4&&Mu(t,t.memoizedProps,i.memoizedProps);break;case 5:if(zt(a,t),Ct(t),c&512&&(ct||i===null||$n(i,i.return)),t.flags&32){O=t.stateNode;try{Hs(O,"")}catch(he){Ge(t,t.return,he)}}c&4&&t.stateNode!=null&&(O=t.memoizedProps,Mu(t,O,i!==null?i.memoizedProps:O)),c&1024&&(Vu=!0);break;case 6:if(zt(a,t),Ct(t),c&4){if(t.stateNode===null)throw Error(r(162));c=t.memoizedProps,i=t.stateNode;try{i.nodeValue=c}catch(he){Ge(t,t.return,he)}}break;case 3:if(Mo=null,O=mn,mn=Eo(a.containerInfo),zt(a,t),mn=O,Ct(t),c&4&&i!==null&&i.memoizedState.isDehydrated)try{kl(a.containerInfo)}catch(he){Ge(t,t.return,he)}Vu&&(Vu=!1,$x(t));break;case 4:c=mn,mn=Eo(t.stateNode.containerInfo),zt(a,t),Ct(t),mn=c;break;case 12:zt(a,t),Ct(t);break;case 31:zt(a,t),Ct(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,jo(t,c)));break;case 13:zt(a,t),Ct(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(ko=At()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,jo(t,c)));break;case 22:O=t.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,U=In,ne=ct;if(In=U||O,ct=ne||R,zt(a,t),ct=ne,In=U,Ct(t),c&8192)e:for(a=t.stateNode,a._visibility=O?a._visibility&-2:a._visibility|1,O&&(i===null||R||In||ct||ws(t)),i=null,a=t;;){if(a.tag===5||a.tag===26){if(i===null){R=i=a;try{if(m=R.stateNode,O)S=m.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{$=R.stateNode;var le=R.memoizedProps.style,L=le!=null&&le.hasOwnProperty("display")?le.display:null;$.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(he){Ge(R,R.return,he)}}}else if(a.tag===6){if(i===null){R=a;try{R.stateNode.nodeValue=O?"":R.memoizedProps}catch(he){Ge(R,R.return,he)}}}else if(a.tag===18){if(i===null){R=a;try{var F=R.stateNode;O?pg(F,!0):pg(R.stateNode,!1)}catch(he){Ge(R,R.return,he)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=t.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,jo(t,i))));break;case 19:zt(a,t),Ct(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,jo(t,c)));break;case 30:break;case 21:break;default:zt(a,t),Ct(t)}}function Ct(t){var a=t.flags;if(a&2){try{for(var i,c=t.return;c!==null;){if(gx(c)){i=c;break}c=c.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var O=i.stateNode,m=Yu(t);Qo(t,m,O);break;case 5:var S=i.stateNode;i.flags&32&&(Hs(S,""),i.flags&=-33);var $=Yu(t);Qo(t,$,S);break;case 3:case 4:var R=i.stateNode.containerInfo,U=Yu(t);Uu(t,U,R);break;default:throw Error(r(161))}}catch(ne){Ge(t,t.return,ne)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function $x(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;$x(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function Kn(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)yx(t,a.alternate,a),a=a.sibling}function ws(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:Pa(4,a,a.return),ws(a);break;case 1:$n(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&px(a,a.return,i),ws(a);break;case 27:Gr(a.stateNode);case 26:case 5:$n(a,a.return),ws(a);break;case 22:a.memoizedState===null&&ws(a);break;case 30:ws(a);break;default:ws(a)}t=t.sibling}}function Jn(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,O=t,m=a,S=m.flags;switch(m.tag){case 0:case 11:case 15:Jn(O,m,i),_r(4,m);break;case 1:if(Jn(O,m,i),c=m,O=c.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(U){Ge(c,c.return,U)}if(c=m,O=c.updateQueue,O!==null){var $=c.stateNode;try{var R=O.shared.hiddenCallbacks;if(R!==null)for(O.shared.hiddenCallbacks=null,O=0;O<R.length;O++)sp(R[O],$)}catch(U){Ge(c,c.return,U)}}i&&S&64&&mx(m),Xr(m,m.return);break;case 27:bx(m);case 26:case 5:Jn(O,m,i),i&&c===null&&S&4&&xx(m),Xr(m,m.return);break;case 12:Jn(O,m,i);break;case 31:Jn(O,m,i),i&&S&4&&jx(O,m);break;case 13:Jn(O,m,i),i&&S&4&&wx(O,m);break;case 22:m.memoizedState===null&&Jn(O,m,i),Xr(m,m.return);break;case 30:break;default:Jn(O,m,i)}a=a.sibling}}function Gu(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&yr(i))}function Du(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&yr(t))}function pn(t,a,i,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Tx(t,a,i,c),a=a.sibling}function Tx(t,a,i,c){var O=a.flags;switch(a.tag){case 0:case 11:case 15:pn(t,a,i,c),O&2048&&_r(9,a);break;case 1:pn(t,a,i,c);break;case 3:pn(t,a,i,c),O&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&yr(t)));break;case 12:if(O&2048){pn(t,a,i,c),t=a.stateNode;try{var m=a.memoizedProps,S=m.id,$=m.onPostCommit;typeof $=="function"&&$(S,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Ge(a,a.return,R)}}else pn(t,a,i,c);break;case 31:pn(t,a,i,c);break;case 13:pn(t,a,i,c);break;case 23:break;case 22:m=a.stateNode,S=a.alternate,a.memoizedState!==null?m._visibility&2?pn(t,a,i,c):Ar(t,a):m._visibility&2?pn(t,a,i,c):(m._visibility|=2,ml(t,a,i,c,(a.subtreeFlags&10256)!==0||!1)),O&2048&&Gu(S,a);break;case 24:pn(t,a,i,c),O&2048&&Du(a.alternate,a);break;default:pn(t,a,i,c)}}function ml(t,a,i,c,O){for(O=O&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=t,S=a,$=i,R=c,U=S.flags;switch(S.tag){case 0:case 11:case 15:ml(m,S,$,R,O),_r(8,S);break;case 23:break;case 22:var ne=S.stateNode;S.memoizedState!==null?ne._visibility&2?ml(m,S,$,R,O):Ar(m,S):(ne._visibility|=2,ml(m,S,$,R,O)),O&&U&2048&&Gu(S.alternate,S);break;case 24:ml(m,S,$,R,O),O&&U&2048&&Du(S.alternate,S);break;default:ml(m,S,$,R,O)}a=a.sibling}}function Ar(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,c=a,O=c.flags;switch(c.tag){case 22:Ar(i,c),O&2048&&Gu(c.alternate,c);break;case 24:Ar(i,c),O&2048&&Du(c.alternate,c);break;default:Ar(i,c)}a=a.sibling}}var Zr=8192;function pl(t,a,i){if(t.subtreeFlags&Zr)for(t=t.child;t!==null;)Nx(t,a,i),t=t.sibling}function Nx(t,a,i){switch(t.tag){case 26:pl(t,a,i),t.flags&Zr&&t.memoizedState!==null&&Qj(i,mn,t.memoizedState,t.memoizedProps);break;case 5:pl(t,a,i);break;case 3:case 4:var c=mn;mn=Eo(t.stateNode.containerInfo),pl(t,a,i),mn=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=Zr,Zr=16777216,pl(t,a,i),Zr=c):pl(t,a,i));break;default:pl(t,a,i)}}function Px(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function Er(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];pt=c,Cx(c,t)}Px(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zx(t),t=t.sibling}function zx(t){switch(t.tag){case 0:case 11:case 15:Er(t),t.flags&2048&&Pa(9,t,t.return);break;case 3:Er(t);break;case 12:Er(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,wo(t)):Er(t);break;default:Er(t)}}function wo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];pt=c,Cx(c,t)}Px(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:Pa(8,a,a.return),wo(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,wo(a));break;default:wo(a)}t=t.sibling}}function Cx(t,a){for(;pt!==null;){var i=pt;switch(i.tag){case 0:case 11:case 15:Pa(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:yr(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,pt=c;else e:for(i=t;pt!==null;){c=pt;var O=c.sibling,m=c.return;if(Sx(c),c===i){pt=null;break e}if(O!==null){O.return=m,pt=O;break e}pt=m}}}var EQ={getCacheForType:function(t){var a=vt(rt),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i},cacheSignal:function(){return vt(rt).controller.signal}},qQ=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Be=null,ze=null,_e=0,Ve=0,Vt=null,za=!1,xl=!1,Lu=!1,ea=0,nt=0,Ca=0,ks=0,Wu=0,Gt=0,gl=0,qr=null,Rt=null,Bu=!1,ko=0,Rx=0,$o=1/0,To=null,Ra=null,ft=0,_a=null,bl=null,ta=0,Hu=0,Iu=null,_x=null,Mr=0,Fu=null;function Dt(){return(Ye&2)!==0&&_e!==0?_e&-_e:N.T!==null?af():Ih()}function Xx(){if(Gt===0)if((_e&536870912)===0||Ze){var t=Xi;Xi<<=1,(Xi&3932160)===0&&(Xi=262144),Gt=t}else Gt=536870912;return t=Yt.current,t!==null&&(t.flags|=32),Gt}function _t(t,a,i){(t===Be&&(Ve===2||Ve===9)||t.cancelPendingCommit!==null)&&(vl(t,0),Xa(t,_e,Gt,!1)),ir(t,i),((Ye&2)===0||t!==Be)&&(t===Be&&((Ye&2)===0&&(ks|=i),nt===4&&Xa(t,_e,Gt,!1)),Tn(t))}function Ax(t,a,i){if((Ye&6)!==0)throw Error(r(327));var c=!i&&(a&127)===0&&(a&t.expiredLanes)===0||rr(t,a),O=c?UQ(t,a):Ju(t,a,!0),m=c;do{if(O===0){xl&&!c&&Xa(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!MQ(i)){O=Ju(t,a,!1),m=!1;continue}if(O===2){if(m=a,t.errorRecoveryDisabledLanes&m)var S=0;else S=t.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var $=t;O=qr;var R=$.current.memoizedState.isDehydrated;if(R&&(vl($,S).flags|=256),S=Ju($,S,!1),S!==2){if(Lu&&!R){$.errorRecoveryDisabledLanes|=m,ks|=m,O=4;break e}m=Rt,Rt=O,m!==null&&(Rt===null?Rt=m:Rt.push.apply(Rt,m))}O=S}if(m=!1,O!==2)continue}}if(O===1){vl(t,0),Xa(t,a,0,!0);break}e:{switch(c=t,m=O,m){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Xa(c,a,Gt,!za);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(O=ko+300-At(),10<O)){if(Xa(c,a,Gt,!za),Zi(c,0,!0)!==0)break e;ta=a,c.timeoutHandle=Og(Zx.bind(null,c,i,Rt,To,Bu,a,Gt,ks,gl,za,m,"Throttled",-0,0),O);break e}Zx(c,i,Rt,To,Bu,a,Gt,ks,gl,za,m,null,-0,0)}}break}while(!0);Tn(t)}function Zx(t,a,i,c,O,m,S,$,R,U,ne,le,L,F){if(t.timeoutHandle=-1,le=a.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},Nx(a,m,le);var he=(m&62914560)===m?ko-At():(m&4194048)===m?Rx-At():0;if(he=jj(le,he),he!==null){ta=m,t.cancelPendingCommit=he(Dx.bind(null,t,a,m,i,c,O,S,$,R,ne,le,null,L,F)),Xa(t,m,S,!U);return}}Dx(t,a,m,i,c,O,S,$,R)}function MQ(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var O=i[c],m=O.getSnapshot;O=O.value;try{if(!qt(m(),O))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Xa(t,a,i,c){a&=~Wu,a&=~ks,t.suspendedLanes|=a,t.pingedLanes&=~a,c&&(t.warmLanes|=a),c=t.expirationTimes;for(var O=a;0<O;){var m=31-Et(O),S=1<<m;c[m]=-1,O&=~S}i!==0&&Wh(t,i,a)}function No(){return(Ye&6)===0?(Yr(0),!1):!0}function Ku(){if(ze!==null){if(Ve===0)var t=ze.return;else t=ze,Gn=xs=null,hu(t),dl=null,Qr=0,t=ze;for(;t!==null;)hx(t.alternate,t),t=t.return;ze=null}}function vl(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,rj(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),ta=0,Ku(),Be=t,ze=i=Un(t.current,null),_e=a,Ve=0,Vt=null,za=!1,xl=rr(t,a),Lu=!1,gl=Gt=Wu=ks=Ca=nt=0,Rt=qr=null,Bu=!1,(a&8)!==0&&(a|=a&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=a;0<c;){var O=31-Et(c),m=1<<O;a|=t[O],c&=~m}return ea=a,Hi(),i}function Ex(t,a){ke=null,N.H=zr,a===cl||a===ao?(a=ep(),Ve=3):a===nu?(a=ep(),Ve=4):Ve=a===Pu?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Vt=a,ze===null&&(nt=1,go(t,tn(a,t.current)))}function qx(){var t=Yt.current;return t===null?!0:(_e&4194048)===_e?ln===null:(_e&62914560)===_e||(_e&536870912)!==0?t===ln:!1}function Mx(){var t=N.H;return N.H=zr,t===null?zr:t}function Yx(){var t=N.A;return N.A=EQ,t}function Po(){nt=4,za||(_e&4194048)!==_e&&Yt.current!==null||(xl=!0),(Ca&134217727)===0&&(ks&134217727)===0||Be===null||Xa(Be,_e,Gt,!1)}function Ju(t,a,i){var c=Ye;Ye|=2;var O=Mx(),m=Yx();(Be!==t||_e!==a)&&(To=null,vl(t,a)),a=!1;var S=nt;e:do try{if(Ve!==0&&ze!==null){var $=ze,R=Vt;switch(Ve){case 8:Ku(),S=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(a=!0);var U=Ve;if(Ve=0,Vt=null,yl(t,$,R,U),i&&xl){S=0;break e}break;default:U=Ve,Ve=0,Vt=null,yl(t,$,R,U)}}YQ(),S=nt;break}catch(ne){Ex(t,ne)}while(!0);return a&&t.shellSuspendCounter++,Gn=xs=null,Ye=c,N.H=O,N.A=m,ze===null&&(Be=null,_e=0,Hi()),S}function YQ(){for(;ze!==null;)Ux(ze)}function UQ(t,a){var i=Ye;Ye|=2;var c=Mx(),O=Yx();Be!==t||_e!==a?(To=null,$o=At()+500,vl(t,a)):xl=rr(t,a);e:do try{if(Ve!==0&&ze!==null){a=ze;var m=Vt;t:switch(Ve){case 1:Ve=0,Vt=null,yl(t,a,m,1);break;case 2:case 9:if(Km(m)){Ve=0,Vt=null,Vx(a);break}a=function(){Ve!==2&&Ve!==9||Be!==t||(Ve=7),Tn(t)},m.then(a,a);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Km(m)?(Ve=0,Vt=null,Vx(a)):(Ve=0,Vt=null,yl(t,a,m,7));break;case 5:var S=null;switch(ze.tag){case 26:S=ze.memoizedState;case 5:case 27:var $=ze;if(S?Tg(S):$.stateNode.complete){Ve=0,Vt=null;var R=$.sibling;if(R!==null)ze=R;else{var U=$.return;U!==null?(ze=U,zo(U)):ze=null}break t}}Ve=0,Vt=null,yl(t,a,m,5);break;case 6:Ve=0,Vt=null,yl(t,a,m,6);break;case 8:Ku(),nt=6;break e;default:throw Error(r(462))}}VQ();break}catch(ne){Ex(t,ne)}while(!0);return Gn=xs=null,N.H=c,N.A=O,Ye=i,ze!==null?0:(Be=null,_e=0,Hi(),nt)}function VQ(){for(;ze!==null&&!f2();)Ux(ze)}function Ux(t){var a=fx(t.alternate,t,ea);t.memoizedProps=t.pendingProps,a===null?zo(t):ze=a}function Vx(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=rx(i,a,a.pendingProps,a.type,void 0,_e);break;case 11:a=rx(i,a,a.pendingProps,a.type.render,a.ref,_e);break;case 5:hu(a);default:hx(i,a),a=ze=Ym(a,ea),a=fx(i,a,ea)}t.memoizedProps=t.pendingProps,a===null?zo(t):ze=a}function yl(t,a,i,c){Gn=xs=null,hu(a),dl=null,Qr=0;var O=a.return;try{if(zQ(t,O,a,i,_e)){nt=1,go(t,tn(i,t.current)),ze=null;return}}catch(m){if(O!==null)throw ze=O,m;nt=1,go(t,tn(i,t.current)),ze=null;return}a.flags&32768?(Ze||c===1?t=!0:xl||(_e&536870912)!==0?t=!1:(za=t=!0,(c===2||c===9||c===3||c===6)&&(c=Yt.current,c!==null&&c.tag===13&&(c.flags|=16384))),Gx(a,t)):zo(a)}function zo(t){var a=t;do{if((a.flags&32768)!==0){Gx(a,za);return}t=a.return;var i=_Q(a.alternate,a,ea);if(i!==null){ze=i;return}if(a=a.sibling,a!==null){ze=a;return}ze=a=t}while(a!==null);nt===0&&(nt=5)}function Gx(t,a){do{var i=XQ(t.alternate,t);if(i!==null){i.flags&=32767,ze=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){ze=t;return}ze=t=i}while(t!==null);nt=6,ze=null}function Dx(t,a,i,c,O,m,S,$,R){t.cancelPendingCommit=null;do Co();while(ft!==0);if((Ye&6)!==0)throw Error(r(327));if(a!==null){if(a===t.current)throw Error(r(177));if(m=a.lanes|a.childLanes,m|=Yd,S2(t,i,m,S,$,R),t===Be&&(ze=Be=null,_e=0),bl=a,_a=t,ta=i,Hu=m,Iu=O,_x=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,WQ(Ri,function(){return Ix(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=N.T,N.T=null,O=M.p,M.p=2,S=Ye,Ye|=4;try{AQ(t,a,i)}finally{Ye=S,M.p=O,N.T=c}}ft=1,Lx(),Wx(),Bx()}}function Lx(){if(ft===1){ft=0;var t=_a,a=bl,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=N.T,N.T=null;var c=M.p;M.p=2;var O=Ye;Ye|=4;try{kx(a,t);var m=ff,S=Cm(t.containerInfo),$=m.focusedElem,R=m.selectionRange;if(S!==$&&$&&$.ownerDocument&&zm($.ownerDocument.documentElement,$)){if(R!==null&&Ad($)){var U=R.start,ne=R.end;if(ne===void 0&&(ne=U),"selectionStart"in $)$.selectionStart=U,$.selectionEnd=Math.min(ne,$.value.length);else{var le=$.ownerDocument||document,L=le&&le.defaultView||window;if(L.getSelection){var F=L.getSelection(),he=$.textContent.length,we=Math.min(R.start,he),We=R.end===void 0?we:Math.min(R.end,he);!F.extend&&we>We&&(S=We,We=we,we=S);var q=Pm($,we),X=Pm($,We);if(q&&X&&(F.rangeCount!==1||F.anchorNode!==q.node||F.anchorOffset!==q.offset||F.focusNode!==X.node||F.focusOffset!==X.offset)){var Y=le.createRange();Y.setStart(q.node,q.offset),F.removeAllRanges(),we>We?(F.addRange(Y),F.extend(X.node,X.offset)):(Y.setEnd(X.node,X.offset),F.addRange(Y))}}}}for(le=[],F=$;F=F.parentNode;)F.nodeType===1&&le.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof $.focus=="function"&&$.focus(),$=0;$<le.length;$++){var se=le[$];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Go=!!uf,ff=uf=null}finally{Ye=O,M.p=c,N.T=i}}t.current=a,ft=2}}function Wx(){if(ft===2){ft=0;var t=_a,a=bl,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=N.T,N.T=null;var c=M.p;M.p=2;var O=Ye;Ye|=4;try{yx(t,a.alternate,a)}finally{Ye=O,M.p=c,N.T=i}}ft=3}}function Bx(){if(ft===4||ft===3){ft=0,O2();var t=_a,a=bl,i=ta,c=_x;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ft=5:(ft=0,bl=_a=null,Hx(t,t.pendingLanes));var O=t.pendingLanes;if(O===0&&(Ra=null),xd(i),a=a.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(lr,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=N.T,O=M.p,M.p=2,N.T=null;try{for(var m=t.onRecoverableError,S=0;S<c.length;S++){var $=c[S];m($.value,{componentStack:$.stack})}}finally{N.T=a,M.p=O}}(ta&3)!==0&&Co(),Tn(t),O=t.pendingLanes,(i&261930)!==0&&(O&42)!==0?t===Fu?Mr++:(Mr=0,Fu=t):Mr=0,Yr(0)}}function Hx(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,yr(a)))}function Co(){return Lx(),Wx(),Bx(),Ix()}function Ix(){if(ft!==5)return!1;var t=_a,a=Hu;Hu=0;var i=xd(ta),c=N.T,O=M.p;try{M.p=32>i?32:i,N.T=null,i=Iu,Iu=null;var m=_a,S=ta;if(ft=0,bl=_a=null,ta=0,(Ye&6)!==0)throw Error(r(331));var $=Ye;if(Ye|=4,zx(m.current),Tx(m,m.current,S,i),Ye=$,Yr(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(lr,m)}catch{}return!0}finally{M.p=O,N.T=c,Hx(t,a)}}function Fx(t,a,i){a=tn(i,a),a=Nu(t.stateNode,a,2),t=$a(t,a,2),t!==null&&(ir(t,2),Tn(t))}function Ge(t,a,i){if(t.tag===3)Fx(t,t,i);else for(;a!==null;){if(a.tag===3){Fx(a,t,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Ra===null||!Ra.has(c))){t=tn(i,t),i=Kp(2),c=$a(a,i,2),c!==null&&(Jp(i,c,a,t),ir(c,2),Tn(c));break}}a=a.return}}function ef(t,a,i){var c=t.pingCache;if(c===null){c=t.pingCache=new qQ;var O=new Set;c.set(a,O)}else O=c.get(a),O===void 0&&(O=new Set,c.set(a,O));O.has(i)||(Lu=!0,O.add(i),t=GQ.bind(null,t,a,i),a.then(t,t))}function GQ(t,a,i){var c=t.pingCache;c!==null&&c.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Be===t&&(_e&i)===i&&(nt===4||nt===3&&(_e&62914560)===_e&&300>At()-ko?(Ye&2)===0&&vl(t,0):Wu|=i,gl===_e&&(gl=0)),Tn(t)}function Kx(t,a){a===0&&(a=Lh()),t=hs(t,a),t!==null&&(ir(t,a),Tn(t))}function DQ(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),Kx(t,i)}function LQ(t,a){var i=0;switch(t.tag){case 31:case 13:var c=t.stateNode,O=t.memoizedState;O!==null&&(i=O.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(a),Kx(t,i)}function WQ(t,a){return Od(t,a)}var Ro=null,Sl=null,tf=!1,_o=!1,nf=!1,Aa=0;function Tn(t){t!==Sl&&t.next===null&&(Sl===null?Ro=Sl=t:Sl=Sl.next=t),_o=!0,tf||(tf=!0,HQ())}function Yr(t,a){if(!nf&&_o){nf=!0;do for(var i=!1,c=Ro;c!==null;){if(t!==0){var O=c.pendingLanes;if(O===0)var m=0;else{var S=c.suspendedLanes,$=c.pingedLanes;m=(1<<31-Et(42|t)+1)-1,m&=O&~(S&~$),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,ng(c,m))}else m=_e,m=Zi(c,c===Be?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||rr(c,m)||(i=!0,ng(c,m));c=c.next}while(i);nf=!1}}function BQ(){Jx()}function Jx(){_o=tf=!1;var t=0;Aa!==0&&lj()&&(t=Aa);for(var a=At(),i=null,c=Ro;c!==null;){var O=c.next,m=eg(c,a);m===0?(c.next=null,i===null?Ro=O:i.next=O,O===null&&(Sl=i)):(i=c,(t!==0||(m&3)!==0)&&(_o=!0)),c=O}ft!==0&&ft!==5||Yr(t),Aa!==0&&(Aa=0)}function eg(t,a){for(var i=t.suspendedLanes,c=t.pingedLanes,O=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var S=31-Et(m),$=1<<S,R=O[S];R===-1?(($&i)===0||($&c)!==0)&&(O[S]=y2($,a)):R<=a&&(t.expiredLanes|=$),m&=~$}if(a=Be,i=_e,i=Zi(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,i===0||t===a&&(Ve===2||Ve===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&hd(c),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||rr(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(c!==null&&hd(c),xd(i)){case 2:case 8:i=Gh;break;case 32:i=Ri;break;case 268435456:i=Dh;break;default:i=Ri}return c=tg.bind(null,t),i=Od(i,c),t.callbackPriority=a,t.callbackNode=i,a}return c!==null&&c!==null&&hd(c),t.callbackPriority=2,t.callbackNode=null,2}function tg(t,a){if(ft!==0&&ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Co()&&t.callbackNode!==i)return null;var c=_e;return c=Zi(t,t===Be?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(Ax(t,c,a),eg(t,At()),t.callbackNode!=null&&t.callbackNode===i?tg.bind(null,t):null)}function ng(t,a){if(Co())return null;Ax(t,a,!0)}function HQ(){ij(function(){(Ye&6)!==0?Od(Vh,BQ):Jx()})}function af(){if(Aa===0){var t=il;t===0&&(t=_i,_i<<=1,(_i&261888)===0&&(_i=256)),Aa=t}return Aa}function ag(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Yi(""+t)}function sg(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function IQ(t,a,i,c,O){if(a==="submit"&&i&&i.stateNode===O){var m=ag((O[Tt]||null).action),S=c.submitter;S&&(a=(a=S[Tt]||null)?ag(a.formAction):S.getAttribute("formAction"),a!==null&&(m=a,S=null));var $=new Di("action","action",null,c,O);t.push({event:$,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Aa!==0){var R=S?sg(O,S):new FormData(O);Qu(i,{pending:!0,data:R,method:O.method,action:m},null,R)}}else typeof m=="function"&&($.preventDefault(),R=S?sg(O,S):new FormData(O),Qu(i,{pending:!0,data:R,method:O.method,action:m},m,R))},currentTarget:O}]})}}for(var sf=0;sf<Md.length;sf++){var lf=Md[sf],FQ=lf.toLowerCase(),KQ=lf[0].toUpperCase()+lf.slice(1);hn(FQ,"on"+KQ)}hn(Xm,"onAnimationEnd"),hn(Am,"onAnimationIteration"),hn(Zm,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(hQ,"onTransitionRun"),hn(mQ,"onTransitionStart"),hn(pQ,"onTransitionCancel"),hn(Em,"onTransitionEnd"),Ws("onMouseEnter",["mouseout","mouseover"]),Ws("onMouseLeave",["mouseout","mouseover"]),Ws("onPointerEnter",["pointerout","pointerover"]),Ws("onPointerLeave",["pointerout","pointerover"]),ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ds("onBeforeInput",["compositionend","keypress","textInput","paste"]),ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ur="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),JQ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ur));function lg(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var c=t[i],O=c.event;c=c.listeners;e:{var m=void 0;if(a)for(var S=c.length-1;0<=S;S--){var $=c[S],R=$.instance,U=$.currentTarget;if($=$.listener,R!==m&&O.isPropagationStopped())break e;m=$,O.currentTarget=U;try{m(O)}catch(ne){Bi(ne)}O.currentTarget=null,m=R}else for(S=0;S<c.length;S++){if($=c[S],R=$.instance,U=$.currentTarget,$=$.listener,R!==m&&O.isPropagationStopped())break e;m=$,O.currentTarget=U;try{m(O)}catch(ne){Bi(ne)}O.currentTarget=null,m=R}}}}function Ce(t,a){var i=a[gd];i===void 0&&(i=a[gd]=new Set);var c=t+"__bubble";i.has(c)||(rg(a,t,2,!1),i.add(c))}function rf(t,a,i){var c=0;a&&(c|=4),rg(i,t,c,a)}var Xo="_reactListening"+Math.random().toString(36).slice(2);function of(t){if(!t[Xo]){t[Xo]=!0,Jh.forEach(function(i){i!=="selectionchange"&&(JQ.has(i)||rf(i,!1,t),rf(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[Xo]||(a[Xo]=!0,rf("selectionchange",!1,a))}}function rg(t,a,i,c){switch(Xg(a)){case 2:var O=$j;break;case 8:O=Tj;break;default:O=Qf}i=O.bind(null,a,i,t),O=void 0,!$d||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(O=!0),c?O!==void 0?t.addEventListener(a,i,{capture:!0,passive:O}):t.addEventListener(a,i,!0):O!==void 0?t.addEventListener(a,i,{passive:O}):t.addEventListener(a,i,!1)}function cf(t,a,i,c,O){var m=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var $=c.stateNode.containerInfo;if($===O)break;if(S===4)for(S=c.return;S!==null;){var R=S.tag;if((R===3||R===4)&&S.stateNode.containerInfo===O)return;S=S.return}for(;$!==null;){if(S=Gs($),S===null)return;if(R=S.tag,R===5||R===6||R===26||R===27){c=m=S;continue e}$=$.parentNode}}c=c.return}um(function(){var U=m,ne=wd(i),le=[];e:{var L=qm.get(t);if(L!==void 0){var F=Di,he=t;switch(t){case"keypress":if(Vi(i)===0)break e;case"keydown":case"keyup":F=L2;break;case"focusin":he="focus",F=zd;break;case"focusout":he="blur",F=zd;break;case"beforeblur":case"afterblur":F=zd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=hm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=_2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=H2;break;case Xm:case Am:case Zm:F=Z2;break;case Em:F=F2;break;case"scroll":case"scrollend":F=C2;break;case"wheel":F=J2;break;case"copy":case"cut":case"paste":F=q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=pm;break;case"toggle":case"beforetoggle":F=tQ}var we=(a&4)!==0,We=!we&&(t==="scroll"||t==="scrollend"),q=we?L!==null?L+"Capture":null:L;we=[];for(var X=U,Y;X!==null;){var se=X;if(Y=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||Y===null||q===null||(se=dr(X,q),se!=null&&we.push(Vr(X,se,Y))),We)break;X=X.return}0<we.length&&(L=new F(L,he,null,i,ne),le.push({event:L,listeners:we}))}}if((a&7)===0){e:{if(L=t==="mouseover"||t==="pointerover",F=t==="mouseout"||t==="pointerout",L&&i!==jd&&(he=i.relatedTarget||i.fromElement)&&(Gs(he)||he[Vs]))break e;if((F||L)&&(L=ne.window===ne?ne:(L=ne.ownerDocument)?L.defaultView||L.parentWindow:window,F?(he=i.relatedTarget||i.toElement,F=U,he=he?Gs(he):null,he!==null&&(We=d(he),we=he.tag,he!==We||we!==5&&we!==27&&we!==6)&&(he=null)):(F=null,he=U),F!==he)){if(we=hm,se="onMouseLeave",q="onMouseEnter",X="mouse",(t==="pointerout"||t==="pointerover")&&(we=pm,se="onPointerLeave",q="onPointerEnter",X="pointer"),We=F==null?L:cr(F),Y=he==null?L:cr(he),L=new we(se,X+"leave",F,i,ne),L.target=We,L.relatedTarget=Y,se=null,Gs(ne)===U&&(we=new we(q,X+"enter",he,i,ne),we.target=Y,we.relatedTarget=We,se=we),We=se,F&&he)t:{for(we=ej,q=F,X=he,Y=0,se=q;se;se=we(se))Y++;se=0;for(var Se=X;Se;Se=we(Se))se++;for(;0<Y-se;)q=we(q),Y--;for(;0<se-Y;)X=we(X),se--;for(;Y--;){if(q===X||X!==null&&q===X.alternate){we=q;break t}q=we(q),X=we(X)}we=null}else we=null;F!==null&&ig(le,L,F,we,!1),he!==null&&We!==null&&ig(le,We,he,we,!0)}}e:{if(L=U?cr(U):window,F=L.nodeName&&L.nodeName.toLowerCase(),F==="select"||F==="input"&&L.type==="file")var qe=jm;else if(Sm(L))if(wm)qe=uQ;else{qe=cQ;var xe=oQ}else F=L.nodeName,!F||F.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?U&&Qd(U.elementType)&&(qe=jm):qe=dQ;if(qe&&(qe=qe(t,U))){Qm(le,qe,i,ne);break e}xe&&xe(t,L,U),t==="focusout"&&U&&L.type==="number"&&U.memoizedProps.value!=null&&Sd(L,"number",L.value)}switch(xe=U?cr(U):window,t){case"focusin":(Sm(xe)||xe.contentEditable==="true")&&(Js=xe,Zd=U,gr=null);break;case"focusout":gr=Zd=Js=null;break;case"mousedown":Ed=!0;break;case"contextmenu":case"mouseup":case"dragend":Ed=!1,Rm(le,i,ne);break;case"selectionchange":if(OQ)break;case"keydown":case"keyup":Rm(le,i,ne)}var Te;if(Rd)e:{switch(t){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else Ks?vm(t,i)&&(Xe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Xe="onCompositionStart");Xe&&(xm&&i.locale!=="ko"&&(Ks||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Ks&&(Te=fm()):(va=ne,Td="value"in va?va.value:va.textContent,Ks=!0)),xe=Ao(U,Xe),0<xe.length&&(Xe=new mm(Xe,t,null,i,ne),le.push({event:Xe,listeners:xe}),Te?Xe.data=Te:(Te=ym(i),Te!==null&&(Xe.data=Te)))),(Te=aQ?sQ(t,i):lQ(t,i))&&(Xe=Ao(U,"onBeforeInput"),0<Xe.length&&(xe=new mm("onBeforeInput","beforeinput",null,i,ne),le.push({event:xe,listeners:Xe}),xe.data=Te)),IQ(le,t,U,i,ne)}lg(le,a)})}function Vr(t,a,i){return{instance:t,listener:a,currentTarget:i}}function Ao(t,a){for(var i=a+"Capture",c=[];t!==null;){var O=t,m=O.stateNode;if(O=O.tag,O!==5&&O!==26&&O!==27||m===null||(O=dr(t,i),O!=null&&c.unshift(Vr(t,O,m)),O=dr(t,a),O!=null&&c.push(Vr(t,O,m))),t.tag===3)return c;t=t.return}return[]}function ej(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ig(t,a,i,c,O){for(var m=a._reactName,S=[];i!==null&&i!==c;){var $=i,R=$.alternate,U=$.stateNode;if($=$.tag,R!==null&&R===c)break;$!==5&&$!==26&&$!==27||U===null||(R=U,O?(U=dr(i,m),U!=null&&S.unshift(Vr(i,U,R))):O||(U=dr(i,m),U!=null&&S.push(Vr(i,U,R)))),i=i.return}S.length!==0&&t.push({event:a,listeners:S})}var tj=/\r\n?/g,nj=/\u0000|\uFFFD/g;function og(t){return(typeof t=="string"?t:""+t).replace(tj,`
|
|
25
|
-
`).replace(nj,"")}function cg(t,a){return a=og(a),og(t)===a}function Le(t,a,i,c,O,m){switch(i){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Hs(t,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Hs(t,""+c);break;case"className":qi(t,"class",c);break;case"tabIndex":qi(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":qi(t,i,c);break;case"style":cm(t,c,m);break;case"data":if(a!=="object"){qi(t,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Yi(""+c),t.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(a!=="input"&&Le(t,a,"name",O.name,O,null),Le(t,a,"formEncType",O.formEncType,O,null),Le(t,a,"formMethod",O.formMethod,O,null),Le(t,a,"formTarget",O.formTarget,O,null)):(Le(t,a,"encType",O.encType,O,null),Le(t,a,"method",O.method,O,null),Le(t,a,"target",O.target,O,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Yi(""+c),t.setAttribute(i,c);break;case"onClick":c!=null&&(t.onclick=Mn);break;case"onScroll":c!=null&&Ce("scroll",t);break;case"onScrollEnd":c!=null&&Ce("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(i=c.__html,i!=null){if(O.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}i=Yi(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""+c):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":c===!0?t.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,c):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(i,c):t.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(i):t.setAttribute(i,c);break;case"popover":Ce("beforetoggle",t),Ce("toggle",t),Ei(t,"popover",c);break;case"xlinkActuate":qn(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":qn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":qn(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":qn(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":qn(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":qn(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":qn(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":qn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":qn(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Ei(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=P2.get(i)||i,Ei(t,i,c))}}function df(t,a,i,c,O,m){switch(i){case"style":cm(t,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(i=c.__html,i!=null){if(O.children!=null)throw Error(r(60));t.innerHTML=i}}break;case"children":typeof c=="string"?Hs(t,c):(typeof c=="number"||typeof c=="bigint")&&Hs(t,""+c);break;case"onScroll":c!=null&&Ce("scroll",t);break;case"onScrollEnd":c!=null&&Ce("scrollend",t);break;case"onClick":c!=null&&(t.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!em.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(O=i.endsWith("Capture"),a=i.slice(2,O?i.length-7:void 0),m=t[Tt]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,O),typeof c=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,c,O);break e}i in t?t[i]=c:c===!0?t.setAttribute(i,""):Ei(t,i,c)}}}function St(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",t),Ce("load",t);var c=!1,O=!1,m;for(m in i)if(i.hasOwnProperty(m)){var S=i[m];if(S!=null)switch(m){case"src":c=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Le(t,a,m,S,i,null)}}O&&Le(t,a,"srcSet",i.srcSet,i,null),c&&Le(t,a,"src",i.src,i,null);return;case"input":Ce("invalid",t);var $=m=S=O=null,R=null,U=null;for(c in i)if(i.hasOwnProperty(c)){var ne=i[c];if(ne!=null)switch(c){case"name":O=ne;break;case"type":S=ne;break;case"checked":R=ne;break;case"defaultChecked":U=ne;break;case"value":m=ne;break;case"defaultValue":$=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,a));break;default:Le(t,a,c,ne,i,null)}}lm(t,m,$,R,U,S,O,!1);return;case"select":Ce("invalid",t),c=S=m=null;for(O in i)if(i.hasOwnProperty(O)&&($=i[O],$!=null))switch(O){case"value":m=$;break;case"defaultValue":S=$;break;case"multiple":c=$;default:Le(t,a,O,$,i,null)}a=m,i=S,t.multiple=!!c,a!=null?Bs(t,!!c,a,!1):i!=null&&Bs(t,!!c,i,!0);return;case"textarea":Ce("invalid",t),m=O=c=null;for(S in i)if(i.hasOwnProperty(S)&&($=i[S],$!=null))switch(S){case"value":c=$;break;case"defaultValue":O=$;break;case"children":m=$;break;case"dangerouslySetInnerHTML":if($!=null)throw Error(r(91));break;default:Le(t,a,S,$,i,null)}im(t,c,O,m);return;case"option":for(R in i)if(i.hasOwnProperty(R)&&(c=i[R],c!=null))switch(R){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Le(t,a,R,c,i,null)}return;case"dialog":Ce("beforetoggle",t),Ce("toggle",t),Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":Ce("load",t);break;case"video":case"audio":for(c=0;c<Ur.length;c++)Ce(Ur[c],t);break;case"image":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"embed":case"source":case"link":Ce("error",t),Ce("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in i)if(i.hasOwnProperty(U)&&(c=i[U],c!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:Le(t,a,U,c,i,null)}return;default:if(Qd(a)){for(ne in i)i.hasOwnProperty(ne)&&(c=i[ne],c!==void 0&&df(t,a,ne,c,i,void 0));return}}for($ in i)i.hasOwnProperty($)&&(c=i[$],c!=null&&Le(t,a,$,c,i,null))}function aj(t,a,i,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,m=null,S=null,$=null,R=null,U=null,ne=null;for(F in i){var le=i[F];if(i.hasOwnProperty(F)&&le!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":R=le;default:c.hasOwnProperty(F)||Le(t,a,F,null,c,le)}}for(var L in c){var F=c[L];if(le=i[L],c.hasOwnProperty(L)&&(F!=null||le!=null))switch(L){case"type":m=F;break;case"name":O=F;break;case"checked":U=F;break;case"defaultChecked":ne=F;break;case"value":S=F;break;case"defaultValue":$=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(137,a));break;default:F!==le&&Le(t,a,L,F,c,le)}}yd(t,S,$,R,U,ne,m,O);return;case"select":F=S=$=L=null;for(m in i)if(R=i[m],i.hasOwnProperty(m)&&R!=null)switch(m){case"value":break;case"multiple":F=R;default:c.hasOwnProperty(m)||Le(t,a,m,null,c,R)}for(O in c)if(m=c[O],R=i[O],c.hasOwnProperty(O)&&(m!=null||R!=null))switch(O){case"value":L=m;break;case"defaultValue":$=m;break;case"multiple":S=m;default:m!==R&&Le(t,a,O,m,c,R)}a=$,i=S,c=F,L!=null?Bs(t,!!i,L,!1):!!c!=!!i&&(a!=null?Bs(t,!!i,a,!0):Bs(t,!!i,i?[]:"",!1));return;case"textarea":F=L=null;for($ in i)if(O=i[$],i.hasOwnProperty($)&&O!=null&&!c.hasOwnProperty($))switch($){case"value":break;case"children":break;default:Le(t,a,$,null,c,O)}for(S in c)if(O=c[S],m=i[S],c.hasOwnProperty(S)&&(O!=null||m!=null))switch(S){case"value":L=O;break;case"defaultValue":F=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(91));break;default:O!==m&&Le(t,a,S,O,c,m)}rm(t,L,F);return;case"option":for(var he in i)if(L=i[he],i.hasOwnProperty(he)&&L!=null&&!c.hasOwnProperty(he))switch(he){case"selected":t.selected=!1;break;default:Le(t,a,he,null,c,L)}for(R in c)if(L=c[R],F=i[R],c.hasOwnProperty(R)&&L!==F&&(L!=null||F!=null))switch(R){case"selected":t.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Le(t,a,R,L,c,F)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in i)L=i[we],i.hasOwnProperty(we)&&L!=null&&!c.hasOwnProperty(we)&&Le(t,a,we,null,c,L);for(U in c)if(L=c[U],F=i[U],c.hasOwnProperty(U)&&L!==F&&(L!=null||F!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,a));break;default:Le(t,a,U,L,c,F)}return;default:if(Qd(a)){for(var We in i)L=i[We],i.hasOwnProperty(We)&&L!==void 0&&!c.hasOwnProperty(We)&&df(t,a,We,void 0,c,L);for(ne in c)L=c[ne],F=i[ne],!c.hasOwnProperty(ne)||L===F||L===void 0&&F===void 0||df(t,a,ne,L,c,F);return}}for(var q in i)L=i[q],i.hasOwnProperty(q)&&L!=null&&!c.hasOwnProperty(q)&&Le(t,a,q,null,c,L);for(le in c)L=c[le],F=i[le],!c.hasOwnProperty(le)||L===F||L==null&&F==null||Le(t,a,le,L,c,F)}function dg(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sj(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var O=i[c],m=O.transferSize,S=O.initiatorType,$=O.duration;if(m&&$&&dg(S)){for(S=0,$=O.responseEnd,c+=1;c<i.length;c++){var R=i[c],U=R.startTime;if(U>$)break;var ne=R.transferSize,le=R.initiatorType;ne&&dg(le)&&(R=R.responseEnd,S+=ne*(R<$?1:($-U)/(R-U)))}if(--c,a+=8*(m+S)/(O.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var uf=null,ff=null;function Zo(t){return t.nodeType===9?t:t.ownerDocument}function ug(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fg(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Of(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var hf=null;function lj(){var t=window.event;return t&&t.type==="popstate"?t===hf?!1:(hf=t,!0):(hf=null,!1)}var Og=typeof setTimeout=="function"?setTimeout:void 0,rj=typeof clearTimeout=="function"?clearTimeout:void 0,hg=typeof Promise=="function"?Promise:void 0,ij=typeof queueMicrotask=="function"?queueMicrotask:typeof hg<"u"?function(t){return hg.resolve(null).then(t).catch(oj)}:Og;function oj(t){setTimeout(function(){throw t})}function Za(t){return t==="head"}function mg(t,a){var i=a,c=0;do{var O=i.nextSibling;if(t.removeChild(i),O&&O.nodeType===8)if(i=O.data,i==="/$"||i==="/&"){if(c===0){t.removeChild(O),kl(a);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Gr(t.ownerDocument.documentElement);else if(i==="head"){i=t.ownerDocument.head,Gr(i);for(var m=i.firstChild;m;){var S=m.nextSibling,$=m.nodeName;m[or]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=S}}else i==="body"&&Gr(t.ownerDocument.body);i=O}while(i);kl(a)}function pg(t,a){var i=t;t=0;do{var c=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(t===0)break;t--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||t++;i=c}while(i)}function mf(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":mf(i),bd(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function cj(t,a,i,c){for(;t.nodeType===1;){var O=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[or])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==O.rel||t.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||t.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||t.getAttribute("title")!==(O.title==null?null:O.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(O.src==null?null:O.src)||t.getAttribute("type")!==(O.type==null?null:O.type)||t.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=O.name==null?null:""+O.name;if(O.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=rn(t.nextSibling),t===null)break}return null}function dj(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=rn(t.nextSibling),t===null))return null;return t}function xg(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=rn(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$?"||t.data==="$~"}function xf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function uj(t,a){var i=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||i.readyState!=="loading")a();else{var c=function(){a(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function rn(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var gf=null;function gg(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="/$"||i==="/&"){if(a===0)return rn(t.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}t=t.nextSibling}return null}function bg(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return t;a--}else i!=="/$"&&i!=="/&"||a++}t=t.previousSibling}return null}function vg(t,a,i){switch(a=Zo(i),t){case"html":if(t=a.documentElement,!t)throw Error(r(452));return t;case"head":if(t=a.head,!t)throw Error(r(453));return t;case"body":if(t=a.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function Gr(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);bd(t)}var on=new Map,yg=new Set;function Eo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var na=M.d;M.d={f:fj,r:Oj,D:hj,C:mj,L:pj,m:xj,X:bj,S:gj,M:vj};function fj(){var t=na.f(),a=No();return t||a}function Oj(t){var a=Ds(t);a!==null&&a.tag===5&&a.type==="form"?Ep(a):na.r(t)}var Ql=typeof document>"u"?null:document;function Sg(t,a,i){var c=Ql;if(c&&typeof a=="string"&&a){var O=Jt(a);O='link[rel="'+t+'"][href="'+O+'"]',typeof i=="string"&&(O+='[crossorigin="'+i+'"]'),yg.has(O)||(yg.add(O),t={rel:t,crossOrigin:i,href:a},c.querySelector(O)===null&&(a=c.createElement("link"),St(a,"link",t),mt(a),c.head.appendChild(a)))}}function hj(t){na.D(t),Sg("dns-prefetch",t,null)}function mj(t,a){na.C(t,a),Sg("preconnect",t,a)}function pj(t,a,i){na.L(t,a,i);var c=Ql;if(c&&t&&a){var O='link[rel="preload"][as="'+Jt(a)+'"]';a==="image"&&i&&i.imageSrcSet?(O+='[imagesrcset="'+Jt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(O+='[imagesizes="'+Jt(i.imageSizes)+'"]')):O+='[href="'+Jt(t)+'"]';var m=O;switch(a){case"style":m=jl(t);break;case"script":m=wl(t)}on.has(m)||(t=g({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),on.set(m,t),c.querySelector(O)!==null||a==="style"&&c.querySelector(Dr(m))||a==="script"&&c.querySelector(Lr(m))||(a=c.createElement("link"),St(a,"link",t),mt(a),c.head.appendChild(a)))}}function xj(t,a){na.m(t,a);var i=Ql;if(i&&t){var c=a&&typeof a.as=="string"?a.as:"script",O='link[rel="modulepreload"][as="'+Jt(c)+'"][href="'+Jt(t)+'"]',m=O;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=wl(t)}if(!on.has(m)&&(t=g({rel:"modulepreload",href:t},a),on.set(m,t),i.querySelector(O)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Lr(m)))return}c=i.createElement("link"),St(c,"link",t),mt(c),i.head.appendChild(c)}}}function gj(t,a,i){na.S(t,a,i);var c=Ql;if(c&&t){var O=Ls(c).hoistableStyles,m=jl(t);a=a||"default";var S=O.get(m);if(!S){var $={loading:0,preload:null};if(S=c.querySelector(Dr(m)))$.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":a},i),(i=on.get(m))&&bf(t,i);var R=S=c.createElement("link");mt(R),St(R,"link",t),R._p=new Promise(function(U,ne){R.onload=U,R.onerror=ne}),R.addEventListener("load",function(){$.loading|=1}),R.addEventListener("error",function(){$.loading|=2}),$.loading|=4,qo(S,a,c)}S={type:"stylesheet",instance:S,count:1,state:$},O.set(m,S)}}}function bj(t,a){na.X(t,a);var i=Ql;if(i&&t){var c=Ls(i).hoistableScripts,O=wl(t),m=c.get(O);m||(m=i.querySelector(Lr(O)),m||(t=g({src:t,async:!0},a),(a=on.get(O))&&vf(t,a),m=i.createElement("script"),mt(m),St(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(O,m))}}function vj(t,a){na.M(t,a);var i=Ql;if(i&&t){var c=Ls(i).hoistableScripts,O=wl(t),m=c.get(O);m||(m=i.querySelector(Lr(O)),m||(t=g({src:t,async:!0,type:"module"},a),(a=on.get(O))&&vf(t,a),m=i.createElement("script"),mt(m),St(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(O,m))}}function Qg(t,a,i,c){var O=(O=B.current)?Eo(O):null;if(!O)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=jl(i.href),i=Ls(O).hoistableStyles,c=i.get(a),c||(c={type:"style",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=jl(i.href);var m=Ls(O).hoistableStyles,S=m.get(t);if(S||(O=O.ownerDocument||O,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,S),(m=O.querySelector(Dr(t)))&&!m._p&&(S.instance=m,S.state.loading=5),on.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},on.set(t,i),m||yj(O,t,i,S.state))),a&&c===null)throw Error(r(528,""));return S}if(a&&c!==null)throw Error(r(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=wl(i),i=Ls(O).hoistableScripts,c=i.get(a),c||(c={type:"script",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function jl(t){return'href="'+Jt(t)+'"'}function Dr(t){return'link[rel="stylesheet"]['+t+"]"}function jg(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function yj(t,a,i,c){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=t.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),St(a,"link",i),mt(a),t.head.appendChild(a))}function wl(t){return'[src="'+Jt(t)+'"]'}function Lr(t){return"script[async]"+t}function wg(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=t.querySelector('style[data-href~="'+Jt(i.href)+'"]');if(c)return a.instance=c,mt(c),c;var O=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),mt(c),St(c,"style",O),qo(c,i.precedence,t),a.instance=c;case"stylesheet":O=jl(i.href);var m=t.querySelector(Dr(O));if(m)return a.state.loading|=4,a.instance=m,mt(m),m;c=jg(i),(O=on.get(O))&&bf(c,O),m=(t.ownerDocument||t).createElement("link"),mt(m);var S=m;return S._p=new Promise(function($,R){S.onload=$,S.onerror=R}),St(m,"link",c),a.state.loading|=4,qo(m,i.precedence,t),a.instance=m;case"script":return m=wl(i.src),(O=t.querySelector(Lr(m)))?(a.instance=O,mt(O),O):(c=i,(O=on.get(m))&&(c=g({},i),vf(c,O)),t=t.ownerDocument||t,O=t.createElement("script"),mt(O),St(O,"link",c),t.head.appendChild(O),a.instance=O);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,qo(c,i.precedence,t));return a.instance}function qo(t,a,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=c.length?c[c.length-1]:null,m=O,S=0;S<c.length;S++){var $=c[S];if($.dataset.precedence===a)m=$;else if(m!==O)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function bf(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function vf(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var Mo=null;function kg(t,a,i){if(Mo===null){var c=new Map,O=Mo=new Map;O.set(i,c)}else O=Mo,c=O.get(i),c||(c=new Map,O.set(i,c));if(c.has(t))return c;for(c.set(t,null),i=i.getElementsByTagName(t),O=0;O<i.length;O++){var m=i[O];if(!(m[or]||m[gt]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var S=m.getAttribute(a)||"";S=t+S;var $=c.get(S);$?$.push(m):c.set(S,[m])}}return c}function $g(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function Sj(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return t=a.disabled,typeof a.precedence=="string"&&t==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Tg(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Qj(t,a,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var O=jl(c.href),m=a.querySelector(Dr(O));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Yo.bind(t),a.then(t,t)),i.state.loading|=4,i.instance=m,mt(m);return}m=a.ownerDocument||a,c=jg(c),(O=on.get(O))&&bf(c,O),m=m.createElement("link"),mt(m);var S=m;S._p=new Promise(function($,R){S.onload=$,S.onerror=R}),St(m,"link",c),i.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(t.count++,i=Yo.bind(t),a.addEventListener("load",i),a.addEventListener("error",i))}}var yf=0;function jj(t,a){return t.stylesheets&&t.count===0&&Vo(t,t.stylesheets),0<t.count||0<t.imgCount?function(i){var c=setTimeout(function(){if(t.stylesheets&&Vo(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+a);0<t.imgBytes&&yf===0&&(yf=62500*sj());var O=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Vo(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>yf?50:800)+a);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(O)}}:null}function Yo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Uo=null;function Vo(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Uo=new Map,a.forEach(wj,t),Uo=null,Yo.call(t))}function wj(t,a){if(!(a.state.loading&4)){var i=Uo.get(t);if(i)var c=i.get(null);else{i=new Map,Uo.set(t,i);for(var O=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<O.length;m++){var S=O[m];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),c=S)}c&&i.set(null,c)}O=a.instance,S=O.getAttribute("data-precedence"),m=i.get(S)||c,m===c&&i.set(null,O),i.set(S,O),this.count++,c=Yo.bind(this),O.addEventListener("load",c),O.addEventListener("error",c),m?m.parentNode.insertBefore(O,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(O,t.firstChild)),a.state.loading|=4}}var Wr={$$typeof:z,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function kj(t,a,i,c,O,m,S,$,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=md(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=md(0),this.hiddenUpdates=md(null),this.identifierPrefix=c,this.onUncaughtError=O,this.onCaughtError=m,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ng(t,a,i,c,O,m,S,$,R,U,ne,le){return t=new kj(t,a,i,S,R,U,ne,le,$),a=1,m===!0&&(a|=24),m=Mt(3,null,null,a),t.current=m,m.stateNode=t,a=Jd(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:c,isDehydrated:i,cache:a},au(m),t}function Pg(t){return t?(t=nl,t):nl}function zg(t,a,i,c,O,m){O=Pg(O),c.context===null?c.context=O:c.pendingContext=O,c=ka(a),c.payload={element:i},m=m===void 0?null:m,m!==null&&(c.callback=m),i=$a(t,c,a),i!==null&&(_t(i,t,a),wr(i,t,a))}function Cg(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function Sf(t,a){Cg(t,a),(t=t.alternate)&&Cg(t,a)}function Rg(t){if(t.tag===13||t.tag===31){var a=hs(t,67108864);a!==null&&_t(a,t,67108864),Sf(t,67108864)}}function _g(t){if(t.tag===13||t.tag===31){var a=Dt();a=pd(a);var i=hs(t,a);i!==null&&_t(i,t,a),Sf(t,a)}}var Go=!0;function $j(t,a,i,c){var O=N.T;N.T=null;var m=M.p;try{M.p=2,Qf(t,a,i,c)}finally{M.p=m,N.T=O}}function Tj(t,a,i,c){var O=N.T;N.T=null;var m=M.p;try{M.p=8,Qf(t,a,i,c)}finally{M.p=m,N.T=O}}function Qf(t,a,i,c){if(Go){var O=jf(c);if(O===null)cf(t,a,c,Do,i),Ag(t,c);else if(Pj(O,t,a,i,c))c.stopPropagation();else if(Ag(t,c),a&4&&-1<Nj.indexOf(t)){for(;O!==null;){var m=Ds(O);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var S=cs(m.pendingLanes);if(S!==0){var $=m;for($.pendingLanes|=2,$.entangledLanes|=2;S;){var R=1<<31-Et(S);$.entanglements[1]|=R,S&=~R}Tn(m),(Ye&6)===0&&($o=At()+500,Yr(0))}}break;case 31:case 13:$=hs(m,2),$!==null&&_t($,m,2),No(),Sf(m,2)}if(m=jf(c),m===null&&cf(t,a,c,Do,i),m===O)break;O=m}O!==null&&c.stopPropagation()}else cf(t,a,c,null,i)}}function jf(t){return t=wd(t),wf(t)}var Do=null;function wf(t){if(Do=null,t=Gs(t),t!==null){var a=d(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=u(a),t!==null)return t;t=null}else if(i===31){if(t=f(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Do=t,null}function Xg(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(h2()){case Vh:return 2;case Gh:return 8;case Ri:case m2:return 32;case Dh:return 268435456;default:return 32}default:return 32}}var kf=!1,Ea=null,qa=null,Ma=null,Br=new Map,Hr=new Map,Ya=[],Nj="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Ag(t,a){switch(t){case"focusin":case"focusout":Ea=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":Br.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hr.delete(a.pointerId)}}function Ir(t,a,i,c,O,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:c,nativeEvent:m,targetContainers:[O]},a!==null&&(a=Ds(a),a!==null&&Rg(a)),t):(t.eventSystemFlags|=c,a=t.targetContainers,O!==null&&a.indexOf(O)===-1&&a.push(O),t)}function Pj(t,a,i,c,O){switch(a){case"focusin":return Ea=Ir(Ea,t,a,i,c,O),!0;case"dragenter":return qa=Ir(qa,t,a,i,c,O),!0;case"mouseover":return Ma=Ir(Ma,t,a,i,c,O),!0;case"pointerover":var m=O.pointerId;return Br.set(m,Ir(Br.get(m)||null,t,a,i,c,O)),!0;case"gotpointercapture":return m=O.pointerId,Hr.set(m,Ir(Hr.get(m)||null,t,a,i,c,O)),!0}return!1}function Zg(t){var a=Gs(t.target);if(a!==null){var i=d(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){t.blockedOn=a,Fh(t.priority,function(){_g(i)});return}}else if(a===31){if(a=f(i),a!==null){t.blockedOn=a,Fh(t.priority,function(){_g(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Lo(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=jf(t.nativeEvent);if(i===null){i=t.nativeEvent;var c=new i.constructor(i.type,i);jd=c,i.target.dispatchEvent(c),jd=null}else return a=Ds(i),a!==null&&Rg(a),t.blockedOn=i,!1;a.shift()}return!0}function Eg(t,a,i){Lo(t)&&i.delete(a)}function zj(){kf=!1,Ea!==null&&Lo(Ea)&&(Ea=null),qa!==null&&Lo(qa)&&(qa=null),Ma!==null&&Lo(Ma)&&(Ma=null),Br.forEach(Eg),Hr.forEach(Eg)}function Wo(t,a){t.blockedOn===a&&(t.blockedOn=null,kf||(kf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,zj)))}var Bo=null;function qg(t){Bo!==t&&(Bo=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bo===t&&(Bo=null);for(var a=0;a<t.length;a+=3){var i=t[a],c=t[a+1],O=t[a+2];if(typeof c!="function"){if(wf(c||i)===null)continue;break}var m=Ds(i);m!==null&&(t.splice(a,3),a-=3,Qu(m,{pending:!0,data:O,method:i.method,action:c},c,O))}}))}function kl(t){function a(R){return Wo(R,t)}Ea!==null&&Wo(Ea,t),qa!==null&&Wo(qa,t),Ma!==null&&Wo(Ma,t),Br.forEach(a),Hr.forEach(a);for(var i=0;i<Ya.length;i++){var c=Ya[i];c.blockedOn===t&&(c.blockedOn=null)}for(;0<Ya.length&&(i=Ya[0],i.blockedOn===null);)Zg(i),i.blockedOn===null&&Ya.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var O=i[c],m=i[c+1],S=O[Tt]||null;if(typeof m=="function")S||qg(i);else if(S){var $=null;if(m&&m.hasAttribute("formAction")){if(O=m,S=m[Tt]||null)$=S.formAction;else if(wf(O)!==null)continue}else $=S.action;typeof $=="function"?i[c+1]=$:(i.splice(c,3),c-=3),qg(i)}}}function Mg(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(S){return O=S})},focusReset:"manual",scroll:"manual"})}function a(){O!==null&&(O(),O=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,O=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),O!==null&&(O(),O=null)}}}function $f(t){this._internalRoot=t}Ho.prototype.render=$f.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(r(409));var i=a.current,c=Dt();zg(i,c,t,a,null,null)},Ho.prototype.unmount=$f.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;zg(t.current,2,null,t,null,null),No(),a[Vs]=null}};function Ho(t){this._internalRoot=t}Ho.prototype.unstable_scheduleHydration=function(t){if(t){var a=Ih();t={blockedOn:null,target:t,priority:a};for(var i=0;i<Ya.length&&a!==0&&a<Ya[i].priority;i++);Ya.splice(i,0,t),i===0&&Zg(t)}};var Yg=n.version;if(Yg!=="19.2.4")throw Error(r(527,Yg,"19.2.4"));M.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=p(a),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var Cj={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Io.isDisabled&&Io.supportsFiber)try{lr=Io.inject(Cj),Zt=Io}catch{}}return Fr.createRoot=function(t,a){if(!o(t))throw Error(r(299));var i=!1,c="",O=Bp,m=Hp,S=Ip;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(O=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=Ng(t,1,!1,null,null,i,c,null,O,m,S,Mg),t[Vs]=a.current,of(t),new $f(a)},Fr.hydrateRoot=function(t,a,i){if(!o(t))throw Error(r(299));var c=!1,O="",m=Bp,S=Hp,$=Ip,R=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(O=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&($=i.onRecoverableError),i.formState!==void 0&&(R=i.formState)),a=Ng(t,1,!0,a,i??null,c,O,R,m,S,$,Mg),a.context=Pg(null),i=a.current,c=Dt(),c=pd(c),O=ka(c),O.callback=null,$a(i,O,c),i=c,a.current.lanes=i,ir(a,i),Tn(a),t[Vs]=a.current,of(t),new Ho(a)},Fr.version="19.2.4",Fr}var Lg;function bw(){if(Lg)return Tf.exports;Lg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Tf.exports=gw(),Tf.exports}var vw=bw();const yw="/api";class Sw extends Error{constructor(n,s,r){super(n),this.name="ApiError",this.status=s,this.body=r}}async function Kr(e,n,s){const r=`${yw}${n}`,o={method:e,headers:{}};s!==void 0&&(o.headers["Content-Type"]="application/json",o.body=JSON.stringify(s));const d=await fetch(r,o),u=await d.text();let f;try{f=JSON.parse(u)}catch{f=u}if(!d.ok)throw new Sw((f==null?void 0:f.error)||(f==null?void 0:f.message)||`Request failed: ${d.status}`,d.status,f);return f}const J={get:e=>Kr("GET",e),post:(e,n)=>Kr("POST",e,n),put:(e,n)=>Kr("PUT",e,n),patch:(e,n)=>Kr("PATCH",e,n),delete:(e,n)=>Kr("DELETE",e,n)},Qw=`ws://${window.location.hostname}:${window.location.port||31415}`;let jw=0;function vO(e,n={}){try{return JSON.parse(localStorage.getItem(e)||JSON.stringify(n))}catch{return n}}function Cl(e,n){try{localStorage.setItem(e,JSON.stringify(n))}catch{}}const Wg="0.22.27";vO("groove:storeVersion")!==Wg&&(localStorage.removeItem("groove:chatHistory"),localStorage.removeItem("groove:activityLog"),Cl("groove:storeVersion",Wg));const W=Xj((e,n)=>({agents:[],connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1,teams:[],activeTeamId:localStorage.getItem("groove:activeTeamId")||null,gateways:[],activeView:"agents",detailPanel:null,teamDetailPanels:{},commandPaletteOpen:!1,detailPanelWidth:Number(localStorage.getItem("groove:detailWidth"))||480,terminalVisible:localStorage.getItem("groove:terminalVisible")==="true",terminalHeight:Number(localStorage.getItem("groove:terminalHeight"))||260,terminalFullHeight:!1,activityLog:vO("groove:activityLog"),chatHistory:vO("groove:chatHistory"),chatInputs:{},tokenTimeline:{},dashTelemetry:{},ccChartTimeline:[],pendingApprovals:[],resolvedApprovals:[],recommendedTeam:null,journalistStatus:null,marketplaceUser:null,marketplaceAuthenticated:!1,toasts:[],editorFiles:{},editorActiveFile:null,editorOpenTabs:[],editorTreeCache:{},editorChangedFiles:{},editorRecentSaves:{},connect(){if(n().ws)return;const s=new WebSocket(Qw);e({ws:s}),s.onopen=()=>{e({connected:!0}),J.get("/status").then(r=>{const o={};r.host&&r.host!=="127.0.0.1"&&(o.daemonHost=r.host);const d=window.location.port||"80";String(r.port)!==d&&(o.tunneled=!0),Object.keys(o).length>0&&e(o)}).catch(()=>{}),n().fetchTeams(),n().fetchApprovals(),n().checkMarketplaceAuth()},s.onmessage=r=>{var d,u,f;const o=JSON.parse(r.data);switch(o.type){case"state":{const h={...n().tokenTimeline},p=Date.now();for(const b of o.data){h[b.id]||(h[b.id]=[]);const y=h[b.id],Q=y[y.length-1];(!Q||b.tokensUsed!==Q.v||p-Q.t>5e3)&&(y.push({t:p,v:b.tokensUsed||0}),y.length>200&&(h[b.id]=y.slice(-200)))}const x=n().agents,g=o.data.length!==x.length||o.data.some((b,y)=>{const Q=x[y];return!Q||Q.id!==b.id||Q.status!==b.status||Q.tokensUsed!==b.tokensUsed||Q.contextUsage!==b.contextUsage||Q.name!==b.name||Q.model!==b.model});e({agents:g?o.data:x,tokenTimeline:h,hydrated:!0});break}case"agent:output":{const{agentId:h,data:p}=o;let x="",g="";if(typeof p.data=="string"?x=p.data:Array.isArray(p.data)&&(x=p.data.filter(Q=>Q.type==="text").map(Q=>Q.text).join(`
|
|
26
|
-
`),g=p.data.filter(Q=>Q.type==="tool_use").map(Q=>{var k,w,j;return`${Q.name}: ${typeof Q.input=="string"?Q.input.slice(0,80):((k=Q.input)==null?void 0:k.command)||((w=Q.input)==null?void 0:w.path)||((j=Q.input)==null?void 0:j.pattern)||JSON.stringify(Q.input||"").slice(0,80)}`}).join(`
|
|
27
|
-
`)),p.contextUsage!==void 0||p.tokensUsed!==void 0){const Q=n().agents.map(k=>{if(k.id!==h)return k;const w={};return p.contextUsage!==void 0&&(w.contextUsage=p.contextUsage),p.tokensUsed!==void 0&&(w.tokensUsed=p.tokensUsed),{...k,...w}});e({agents:Q})}const b=p.subtype==="stream";if(x&&x.trim()&&!b&&(p.subtype==="assistant"||p.subtype==="text"||p.type==="result"||p.type==="activity"&&typeof p.data=="string")){n().thinkingAgents.has(h)&&e(_=>{const G=new Set(_.thinkingAgents);return G.delete(h),{thinkingAgents:G}});const Q=x.trim(),k={...n().chatHistory};k[h]||(k[h]=[]);const w=[...k[h]],j=w[w.length-1],P=j&&j.from==="agent"&&Date.now()-j.timestamp<8e3;if(!(P&&(j.text===Q||j.text.endsWith(Q)))){if(P){const _=p.subtype==="assistant"?`
|
|
28
|
-
|
|
29
|
-
`:" ";w[w.length-1]={...j,text:j.text+_+Q,timestamp:Date.now()}}else w.push({from:"agent",text:Q,timestamp:Date.now()});k[h]=w.slice(-100),e({chatHistory:k}),Cl("groove:chatHistory",k)}}if(g&&g.trim()){const Q={...n().activityLog};Q[h]||(Q[h]=[]),Q[h]=[...Q[h].slice(-200),{timestamp:Date.now(),text:g.trim(),type:p.type,subtype:"tool"}],e({activityLog:Q}),Cl("groove:activityLog",Q)}break}case"agent:exit":{const h=n().agents.find(y=>y.id===o.agentId),p=(h==null?void 0:h.name)||o.agentId,x=o.status==="killed"||o.code===143||o.code===137,g=o.status==="completed"?`${p} completed`:x?`${p} stopped`:`${p} crashed (exit ${o.code})`,b=o.status==="completed"?"success":x?"info":"warning";n().addToast(b,g,o.error?o.error.slice(0,200):void 0),o.error&&o.agentId&&n().addChatMessage(o.agentId,"system",`Crashed: ${o.error}`),(h==null?void 0:h.role)==="planner"&&o.status==="completed"&&setTimeout(()=>n().checkRecommendedTeam(),1e3);break}case"phase2:spawned":n().addToast("info",`QC agent ${o.name} auto-spawned`,"Auditing phase 1 work");break;case"phase2:failed":n().addToast("error","QC agent failed to spawn",o.error||"Unknown error");break;case"rotation:start":n().addToast("info",`Rotating ${o.agentName}...`);break;case"rotation:complete":{n().addToast("success",`Rotated ${o.agentName}`,`Saved ${o.tokensSaved} tokens`);const h=n().detailPanel;(h==null?void 0:h.type)==="agent"&&h.agentId===o.oldAgentId&&o.newAgentId&&e(p=>{var k,w,j;const x={...p.chatHistory},g={...p.tokenTimeline},b={...p.activityLog};(k=x[o.oldAgentId])!=null&&k.length&&(x[o.newAgentId]=[...x[o.oldAgentId]]),(w=g[o.oldAgentId])!=null&&w.length&&(g[o.newAgentId]=[...g[o.oldAgentId]]),(j=b[o.oldAgentId])!=null&&j.length&&(b[o.newAgentId]=[...b[o.oldAgentId]]);const y={type:"agent",agentId:o.newAgentId},Q=n().activeTeamId;return{chatHistory:x,tokenTimeline:g,activityLog:b,detailPanel:y,teamDetailPanels:{...p.teamDetailPanels,[Q]:y}}});break}case"rotation:failed":n().addToast("error","Rotation failed",o.error);break;case"file:changed":{const h=n().editorRecentSaves[o.path];if(h&&Date.now()-h<2e3)break;e(p=>({editorChangedFiles:{...p.editorChangedFiles,[o.path]:o.timestamp}}));break}case"team:created":case"team:deleted":case"team:updated":n().fetchTeams();break;case"approval:request":e(h=>({pendingApprovals:[...h.pendingApprovals,o.data]})),n().addToast("warning",`Approval needed: ${((d=o.data)==null?void 0:d.agentName)||"agent"}`,(f=(u=o.data)==null?void 0:u.action)==null?void 0:f.description);break;case"approval:resolved":{const h=o.data;e(p=>({pendingApprovals:p.pendingApprovals.filter(x=>x.id!==h.id),resolvedApprovals:[h,...p.resolvedApprovals].slice(0,200)}));break}case"conflict:detected":n().addToast("error",`Scope conflict: ${o.agentName||"agent"}`,o.filePath?`File: ${o.filePath}`:void 0);break;case"qc:activated":n().addToast("info","QC agent activated",`${o.agentCount||"4+"} agents running`);break;case"journalist:cycle":e({journalistStatus:o.data||null});break;case"schedule:execute":n().addToast("info",`Scheduled agent spawned: ${o.name||o.role||"agent"}`);break;case"gateway:status":e({gateways:o.data||[]});break}},s.onclose=()=>{e({connected:!1,hydrated:!1,ws:null,daemonHost:null,tunneled:!1}),setTimeout(()=>n().connect(),2e3)},s.onerror=()=>s.close()},setActiveView(s){e({activeView:s})},async fetchTeams(){try{const s=await J.get("/teams");let r=s.teams||[];const o=s.defaultTeamId;try{const h=JSON.parse(localStorage.getItem("groove:teamOrder")||"[]");if(h.length){const p=Object.fromEntries(r.map(b=>[b.id,b])),x=h.filter(b=>p[b]).map(b=>p[b]),g=r.filter(b=>!h.includes(b.id));r=[...x,...g]}}catch{}const{activeTeamId:d}=n(),f=r.map(h=>h.id).includes(d)?d:o;e({teams:r,activeTeamId:f}),f&&localStorage.setItem("groove:activeTeamId",f)}catch{}},switchTeam(s){const{activeTeamId:r,detailPanel:o,teamDetailPanels:d}=n(),u={...d};r&&(u[r]=o);const f=u[s]||null;e({activeTeamId:s,detailPanel:f,teamDetailPanels:u}),localStorage.setItem("groove:activeTeamId",s)},async createTeam(s,r){try{const o={name:s};r&&(o.workingDir=r);const d=await J.post("/teams",o);return e({activeTeamId:d.id}),localStorage.setItem("groove:activeTeamId",d.id),n().addToast("success",`Team "${s}" created`),d}catch(o){throw n().addToast("error","Failed to create team",o.message),o}},async deleteTeam(s){const r=n().teams.find(o=>o.id===s);if(r!=null&&r.isDefault){n().addToast("warning","Cannot delete the default team");return}try{await J.delete(`/teams/${s}`),n().addToast("info",`Team "${r==null?void 0:r.name}" deleted`)}catch(o){n().addToast("error","Failed to delete team",o.message)}},reorderTeams(s,r){const o=[...n().teams],[d]=o.splice(s,1);o.splice(r,0,d),e({teams:o});try{localStorage.setItem("groove:teamOrder",JSON.stringify(o.map(u=>u.id)))}catch{}},async renameTeam(s,r){try{const o=await J.patch(`/teams/${s}`,{name:r});return e(d=>({teams:d.teams.map(u=>u.id===s?o:u)})),o}catch(o){throw n().addToast("error","Failed to rename team",o.message),o}},openDetail(s){const r=n().activeTeamId;e(o=>({detailPanel:s,teamDetailPanels:{...o.teamDetailPanels,[r]:s}}))},closeDetail(){const s=n().activeTeamId;e(r=>({detailPanel:null,teamDetailPanels:{...r.teamDetailPanels,[s]:null}}))},selectAgent(s){const r=n().activeTeamId,o={type:"agent",agentId:s};e(d=>({detailPanel:o,teamDetailPanels:{...d.teamDetailPanels,[r]:o}}))},clearSelection(){const s=n().activeTeamId;e(r=>({detailPanel:null,teamDetailPanels:{...r.teamDetailPanels,[s]:null}}))},toggleCommandPalette(){e(s=>({commandPaletteOpen:!s.commandPaletteOpen}))},setDetailPanelWidth(s){e({detailPanelWidth:s}),localStorage.setItem("groove:detailWidth",String(s))},setTerminalVisible(s){e({terminalVisible:s}),localStorage.setItem("groove:terminalVisible",String(s))},setTerminalHeight(s){e({terminalHeight:s}),localStorage.setItem("groove:terminalHeight",String(s))},setTerminalFullHeight(s){e({terminalFullHeight:s})},addToast(s,r,o){const d=++jw;e(u=>({toasts:[...u.toasts,{id:d,type:s,message:r,detail:o}]}))},removeToast(s){e(r=>({toasts:r.toasts.filter(o=>o.id!==s)}))},async checkMarketplaceAuth(){try{const s=await J.get("/auth/status");e({marketplaceAuthenticated:s.authenticated||!1,marketplaceUser:s.user||null})}catch{e({marketplaceAuthenticated:!1,marketplaceUser:null})}},async marketplaceLogin(){try{const s=await J.get("/auth/login-url");s.url&&window.open(s.url,"_blank");const r=setInterval(async()=>{var o,d;try{const u=await J.get("/auth/status");u.authenticated&&(clearInterval(r),e({marketplaceAuthenticated:!0,marketplaceUser:u.user}),n().addToast("success",`Signed in as ${((o=u.user)==null?void 0:o.displayName)||((d=u.user)==null?void 0:d.id)||"user"}`))}catch{}},2e3);setTimeout(()=>clearInterval(r),3e5)}catch(s){n().addToast("error","Login failed",s.message)}},async marketplaceLogout(){try{await J.post("/auth/logout"),e({marketplaceAuthenticated:!1,marketplaceUser:null}),n().addToast("info","Signed out of marketplace")}catch(s){n().addToast("error","Logout failed",s.message)}},async marketplaceCheckout(s){try{const r=await J.post("/auth/checkout",{skillId:s});return r.url&&window.open(r.url,"_blank"),r}catch(r){throw n().addToast("error","Checkout failed",r.message),r}},async fetchApprovals(){try{const s=await J.get("/approvals");e({pendingApprovals:s.pending||[],resolvedApprovals:s.resolved||[]})}catch{}},async approveRequest(s){try{await J.post(`/approvals/${s}/approve`),e(r=>({pendingApprovals:r.pendingApprovals.filter(o=>o.id!==s)})),n().addToast("success","Approved")}catch(r){n().addToast("error","Approve failed",r.message)}},async rejectRequest(s,r=""){try{await J.post(`/approvals/${s}/reject`,{reason:r}),e(o=>({pendingApprovals:o.pendingApprovals.filter(d=>d.id!==s)})),n().addToast("info","Rejected")}catch(o){n().addToast("error","Reject failed",o.message)}},async checkRecommendedTeam(){var s;try{const r=await J.get("/recommended-team");if(!r||!((s=r.agents)!=null&&s.length)){e({recommendedTeam:null});return}const d=n().agents.filter(f=>f.role==="planner").sort((f,h)=>(h.lastActivity||"").localeCompare(f.lastActivity||""))[0],u=d==null?void 0:d.teamId;if(u){const f=n().agents.filter(x=>x.teamId===u&&x.role!=="planner"),h=r.agents.filter(x=>!x.phase||x.phase===1).map(x=>x.role);if(h.every(x=>f.some(g=>g.role===x))&&h.length>0){e({recommendedTeam:null});const g=(await J.post("/recommended-team/launch")).agents||[],b=g.map(y=>y.name).join(", ")||"";n().addToast("success","Planner delegated work",b?`→ ${b}`:void 0),g.length>0&&e(y=>({thinkingAgents:new Set([...y.thinkingAgents,...g.map(Q=>Q.id)])})),J.post("/cleanup").catch(()=>{});return}}e({recommendedTeam:r})}catch{e({recommendedTeam:null})}},async launchRecommendedTeam(s){try{e({recommendedTeam:null}),n().addToast("info","Launching team...");const r=s?{agents:s}:void 0,o=await J.post("/recommended-team/launch",r),d=[o.phase2Pending?`${o.phase2Pending} QC queued`:"",o.projectDir?`→ ${o.projectDir}/`:""].filter(Boolean).join(" · ");n().addToast("success",`Launched ${(o.launched||0)+(o.reused||0)} agents`,d||void 0);const u=o.agents||[];return u.length>0&&e(f=>({thinkingAgents:new Set([...f.thinkingAgents,...u.map(h=>h.id)])})),J.post("/cleanup").catch(()=>{}),o}catch(r){throw n().addToast("error","Launch failed",r.message),r}},async fetchJournalist(){try{const s=await J.get("/journalist");return e({journalistStatus:s}),s}catch{return null}},async triggerJournalistCycle(){try{const s=await J.post("/journalist/cycle");return n().addToast("success","Synthesis cycle triggered"),e({journalistStatus:s}),s}catch(s){throw n().addToast("error","Synthesis failed",s.message),s}},async spawnAgent(s){try{const r=n().activeTeamId,o=await J.post("/agents",{...s,teamId:r});return n().addToast("success",`Spawned ${o.name}`),o}catch(r){throw n().addToast("error","Spawn failed",r.message),r}},async killAgent(s,r=!1){try{await J.delete(`/agents/${s}?purge=${r}`)}catch(o){n().addToast("error","Kill failed",o.message)}},async rotateAgent(s){try{return await J.post(`/agents/${s}/rotate`)}catch(r){throw n().addToast("error","Rotation failed",r.message),r}},async fetchProviders(){return J.get("/providers")},addChatMessage(s,r,o,d=!1){e(u=>{const f={...u.chatHistory};return f[s]||(f[s]=[]),f[s]=[...f[s].slice(-100),{from:r,text:o,timestamp:Date.now(),isQuery:d}],Cl("groove:chatHistory",f),{chatHistory:f}})},thinkingAgents:new Set,async stopAgent(s){try{await J.post(`/agents/${s}/stop`),e(r=>{const o=new Set(r.thinkingAgents);return o.delete(s),{thinkingAgents:o}}),n().addToast("info","Stopped agent")}catch(r){n().addToast("error","Stop failed",r.message)}},async instructAgent(s,r){var u,f;const o=n().agents.find(h=>h.id===s);if(o&&(o.status==="running"||o.status==="starting")){n().addChatMessage(s,"user",r,!1);try{const h=await J.post(`/agents/${s}/query`,{message:r});return h.status==="pending"||h.response==="Message sent to agent"?(e(p=>({thinkingAgents:new Set([...p.thinkingAgents,s])})),h):(n().addChatMessage(s,"agent",h.response),h)}catch(h){throw n().addChatMessage(s,"system",`failed: ${h.message}`),h}}n().addChatMessage(s,"user",r,!1),e(h=>({thinkingAgents:new Set([...h.thinkingAgents,s])}));try{const h=await J.post(`/agents/${s}/instruct`,{message:r});for(const p of["chatHistory","activityLog","tokenTimeline"]){const x=n()[p][s];x!=null&&x.length&&e(g=>({[p]:{...g[p],[h.id]:[...x]}}))}return e(p=>{const x=new Set(p.thinkingAgents);return x.delete(s),x.add(h.id),{thinkingAgents:x}}),(u=n().chatHistory[s])!=null&&u.length&&Cl("groove:chatHistory",n().chatHistory),(f=n().activityLog[s])!=null&&f.length&&Cl("groove:activityLog",n().activityLog),n().selectAgent(h.id),h}catch(h){throw e(p=>{const x=new Set(p.thinkingAgents);return x.delete(s),{thinkingAgents:x}}),n().addChatMessage(s,"system",`failed: ${h.message}`),h}},async queryAgent(s,r){n().addChatMessage(s,"user",r,!0);try{const o=await J.post(`/agents/${s}/query`,{message:r});return n().addChatMessage(s,"agent",o.response),o}catch(o){throw n().addChatMessage(s,"system",`query failed: ${o.message}`),o}},async openFile(s){var d;if(n().editorFiles[s]||n().editorOpenTabs.includes(s)){e(u=>({editorActiveFile:s,editorOpenTabs:u.editorOpenTabs.includes(s)?u.editorOpenTabs:[...u.editorOpenTabs,s]}));return}const r=(d=s.split(".").pop())==null?void 0:d.toLowerCase();if(["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif","mp4","webm","mov","avi","mkv","ogv"].includes(r)){e(u=>({editorActiveFile:s,editorOpenTabs:[...u.editorOpenTabs,s]}));return}try{const u=await J.get(`/files/read?path=${encodeURIComponent(s)}`);if(u.binary){n().addToast("warning","Binary file — cannot open");return}e(h=>({editorFiles:{...h.editorFiles,[s]:{content:u.content,originalContent:u.content,language:u.language,loadedAt:Date.now()}},editorActiveFile:s,editorOpenTabs:h.editorOpenTabs.includes(s)?h.editorOpenTabs:[...h.editorOpenTabs,s]}));const f=n().ws;(f==null?void 0:f.readyState)===1&&f.send(JSON.stringify({type:"editor:watch",path:s}))}catch(u){n().addToast("error","Failed to open file",u.message)}},closeFile(s){e(o=>{const d=o.editorOpenTabs.filter(p=>p!==s),u={...o.editorFiles};delete u[s];const f={...o.editorChangedFiles};delete f[s];let h=o.editorActiveFile;if(h===s){const p=o.editorOpenTabs.indexOf(s);h=d[Math.min(p,d.length-1)]||null}return{editorOpenTabs:d,editorFiles:u,editorChangedFiles:f,editorActiveFile:h}});const r=n().ws;(r==null?void 0:r.readyState)===1&&r.send(JSON.stringify({type:"editor:unwatch",path:s}))},setActiveFile(s){e({editorActiveFile:s})},updateFileContent(s,r){e(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],content:r}}}))},async saveFile(s){const r=n().editorFiles[s];if(r)try{await J.post("/files/write",{path:s,content:r.content}),e(o=>({editorFiles:{...o.editorFiles,[s]:{...o.editorFiles[s],originalContent:r.content}},editorChangedFiles:(()=>{const d={...o.editorChangedFiles};return delete d[s],d})(),editorRecentSaves:{...o.editorRecentSaves,[s]:Date.now()}})),n().addToast("success","File saved")}catch(o){n().addToast("error","Save failed",o.message)}},async reloadFile(s){try{const r=await J.get(`/files/read?path=${encodeURIComponent(s)}`);if(r.binary)return;e(o=>({editorFiles:{...o.editorFiles,[s]:{content:r.content,originalContent:r.content,language:r.language,loadedAt:Date.now()}},editorChangedFiles:(()=>{const d={...o.editorChangedFiles};return delete d[s],d})()}))}catch{}},dismissFileChange(s){e(r=>{const o={...r.editorChangedFiles};return delete o[s],{editorChangedFiles:o}})},async fetchTreeDir(s){try{const r=await J.get(`/files/tree?path=${encodeURIComponent(s)}`);e(o=>({editorTreeCache:{...o.editorTreeCache,[s]:r.entries}}))}catch{}},async createFile(s){try{await J.post("/files/create",{path:s});const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","File created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async createDir(s){try{await J.post("/files/mkdir",{path:s});const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),n().addToast("success","Folder created"),!0}catch(r){return n().addToast("error","Create failed",r.message),!1}},async deleteFile(s){try{await J.delete(`/files/delete?path=${encodeURIComponent(s)}`),n().editorOpenTabs.includes(s)&&n().closeFile(s);const r=s.includes("/")?s.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(r),e(o=>{const d={...o.editorTreeCache};return delete d[s],{editorTreeCache:d}}),n().addToast("success","Deleted"),!0}catch(r){return n().addToast("error","Delete failed",r.message),!1}},async renameFile(s,r){try{await J.post("/files/rename",{oldPath:s,newPath:r}),e(u=>{const f=u.editorOpenTabs.map(x=>x===s?r:x),h={...u.editorFiles};h[s]&&(h[r]=h[s],delete h[s]);const p=u.editorActiveFile===s?r:u.editorActiveFile;return{editorOpenTabs:f,editorFiles:h,editorActiveFile:p}});const o=s.includes("/")?s.split("/").slice(0,-1).join("/"):"",d=r.includes("/")?r.split("/").slice(0,-1).join("/"):"";return await n().fetchTreeDir(o),d!==o&&await n().fetchTreeDir(d),n().addToast("success","Renamed"),!0}catch(o){return n().addToast("error","Rename failed",o.message),!1}}}));function ww(e){v.useEffect(()=>{function n(s){for(const r of e){const o=r.meta?s.metaKey||s.ctrlKey:!0,d=r.shift?s.shiftKey:!s.shiftKey;if(s.key.toLowerCase()===r.key.toLowerCase()&&o&&d){s.preventDefault(),r.handler();return}}}return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e])}function Ue(e,n,{checkForDefaultPrevented:s=!0}={}){return function(o){if(e==null||e(o),s===!1||!o.defaultPrevented)return n==null?void 0:n(o)}}function Bg(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function I0(...e){return n=>{let s=!1;const r=e.map(o=>{const d=Bg(o,n);return!s&&typeof d=="function"&&(s=!0),d});if(s)return()=>{for(let o=0;o<r.length;o++){const d=r[o];typeof d=="function"?d():Bg(e[o],null)}}}}function dt(...e){return v.useCallback(I0(...e),e)}function kw(e,n){const s=v.createContext(n),r=d=>{const{children:u,...f}=d,h=v.useMemo(()=>f,Object.values(f));return l.jsx(s.Provider,{value:h,children:u})};r.displayName=e+"Provider";function o(d){const u=v.useContext(s);if(u)return u;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${e}\``)}return[r,o]}function Ms(e,n=[]){let s=[];function r(d,u){const f=v.createContext(u),h=s.length;s=[...s,u];const p=g=>{var j;const{scope:b,children:y,...Q}=g,k=((j=b==null?void 0:b[e])==null?void 0:j[h])||f,w=v.useMemo(()=>Q,Object.values(Q));return l.jsx(k.Provider,{value:w,children:y})};p.displayName=d+"Provider";function x(g,b){var k;const y=((k=b==null?void 0:b[e])==null?void 0:k[h])||f,Q=v.useContext(y);if(Q)return Q;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${d}\``)}return[p,x]}const o=()=>{const d=s.map(u=>v.createContext(u));return function(f){const h=(f==null?void 0:f[e])||d;return v.useMemo(()=>({[`__scope${e}`]:{...f,[e]:h}}),[f,h])}};return o.scopeName=e,[r,$w(o,...n)]}function $w(...e){const n=e[0];if(e.length===1)return n;const s=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(d){const u=r.reduce((f,{useScope:h,scopeName:p})=>{const g=h(d)[`__scope${p}`];return{...f,...g}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return s.scopeName=n.scopeName,s}function wc(e){const n=Tw(e),s=v.forwardRef((r,o)=>{const{children:d,...u}=r,f=v.Children.toArray(d),h=f.find(Pw);if(h){const p=h.props.children,x=f.map(g=>g===h?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return l.jsx(n,{...u,ref:o,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return l.jsx(n,{...u,ref:o,children:d})});return s.displayName=`${e}.Slot`,s}function Tw(e){const n=v.forwardRef((s,r)=>{const{children:o,...d}=s;if(v.isValidElement(o)){const u=Cw(o),f=zw(d,o.props);return o.type!==v.Fragment&&(f.ref=r?I0(r,u):u),v.cloneElement(o,f)}return v.Children.count(o)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var F0=Symbol("radix.slottable");function Nw(e){const n=({children:s})=>l.jsx(l.Fragment,{children:s});return n.displayName=`${e}.Slottable`,n.__radixId=F0,n}function Pw(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F0}function zw(e,n){const s={...n};for(const r in n){const o=e[r],d=n[r];/^on[A-Z]/.test(r)?o&&d?s[r]=(...f)=>{const h=d(...f);return o(...f),h}:o&&(s[r]=o):r==="style"?s[r]={...o,...d}:r==="className"&&(s[r]=[o,d].filter(Boolean).join(" "))}return{...e,...s}}function Cw(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var Rw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=Rw.reduce((e,n)=>{const s=wc(`Primitive.${n}`),r=v.forwardRef((o,d)=>{const{asChild:u,...f}=o,h=u?s:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(h,{...f,ref:d})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{});function _w(e,n){e&&U0.flushSync(()=>e.dispatchEvent(n))}function Xt(e){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useMemo(()=>(...s)=>{var r;return(r=n.current)==null?void 0:r.call(n,...s)},[])}function Xw(e,n=globalThis==null?void 0:globalThis.document){const s=Xt(e);v.useEffect(()=>{const r=o=>{o.key==="Escape"&&s(o)};return n.addEventListener("keydown",r,{capture:!0}),()=>n.removeEventListener("keydown",r,{capture:!0})},[s,n])}var Aw="DismissableLayer",yO="dismissableLayer.update",Zw="dismissableLayer.pointerDownOutside",Ew="dismissableLayer.focusOutside",Hg,K0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),IO=v.forwardRef((e,n)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:d,onInteractOutside:u,onDismiss:f,...h}=e,p=v.useContext(K0),[x,g]=v.useState(null),b=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=v.useState({}),Q=dt(n,C=>g(C)),k=Array.from(p.layers),[w]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),j=k.indexOf(w),P=x?k.indexOf(x):-1,z=p.layersWithOutsidePointerEventsDisabled.size>0,_=P>=j,G=Yw(C=>{const T=C.target,H=[...p.branches].some(E=>E.contains(T));!_||H||(o==null||o(C),u==null||u(C),C.defaultPrevented||f==null||f())},b),Z=Uw(C=>{const T=C.target;[...p.branches].some(E=>E.contains(T))||(d==null||d(C),u==null||u(C),C.defaultPrevented||f==null||f())},b);return Xw(C=>{P===p.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&f&&(C.preventDefault(),f()))},b),v.useEffect(()=>{if(x)return s&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Hg=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Ig(),()=>{s&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Hg)}},[x,b,s,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Ig())},[x,p]),v.useEffect(()=>{const C=()=>y({});return document.addEventListener(yO,C),()=>document.removeEventListener(yO,C)},[]),l.jsx(Fe.div,{...h,ref:Q,style:{pointerEvents:z?_?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,G.onPointerDownCapture)})});IO.displayName=Aw;var qw="DismissableLayerBranch",Mw=v.forwardRef((e,n)=>{const s=v.useContext(K0),r=v.useRef(null),o=dt(n,r);return v.useEffect(()=>{const d=r.current;if(d)return s.branches.add(d),()=>{s.branches.delete(d)}},[s.branches]),l.jsx(Fe.div,{...e,ref:o})});Mw.displayName=qw;function Yw(e,n=globalThis==null?void 0:globalThis.document){const s=Xt(e),r=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const d=f=>{if(f.target&&!r.current){let h=function(){J0(Zw,s,p,{discrete:!0})};const p={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",o.current),o.current=h,n.addEventListener("click",o.current,{once:!0})):h()}else n.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{n.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",d),n.removeEventListener("click",o.current)}},[n,s]),{onPointerDownCapture:()=>r.current=!0}}function Uw(e,n=globalThis==null?void 0:globalThis.document){const s=Xt(e),r=v.useRef(!1);return v.useEffect(()=>{const o=d=>{d.target&&!r.current&&J0(Ew,s,{originalEvent:d},{discrete:!1})};return n.addEventListener("focusin",o),()=>n.removeEventListener("focusin",o)},[n,s]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ig(){const e=new CustomEvent(yO);document.dispatchEvent(e)}function J0(e,n,s,{discrete:r}){const o=s.originalEvent.target,d=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:s});n&&o.addEventListener(e,n,{once:!0}),r?_w(o,d):o.dispatchEvent(d)}var ua=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},Vw=Y0[" useId ".trim().toString()]||(()=>{}),Gw=0;function Al(e){const[n,s]=v.useState(Vw());return ua(()=>{s(r=>r??String(Gw++))},[e]),n?`radix-${n}`:""}const Dw=["top","right","bottom","left"],ts=Math.min,It=Math.max,kc=Math.round,Fo=Math.floor,zn=e=>({x:e,y:e}),Lw={left:"right",right:"left",bottom:"top",top:"bottom"};function SO(e,n,s){return It(e,ts(n,s))}function fa(e,n){return typeof e=="function"?e(n):e}function Oa(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function FO(e){return e==="x"?"y":"x"}function KO(e){return e==="y"?"height":"width"}function Pn(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function JO(e){return FO(Pn(e))}function Ww(e,n,s){s===void 0&&(s=!1);const r=er(e),o=JO(e),d=KO(o);let u=o==="x"?r===(s?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[d]>n.floating[d]&&(u=$c(u)),[u,$c(u)]}function Bw(e){const n=$c(e);return[QO(e),n,QO(n)]}function QO(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fg=["left","right"],Kg=["right","left"],Hw=["top","bottom"],Iw=["bottom","top"];function Fw(e,n,s){switch(e){case"top":case"bottom":return s?n?Kg:Fg:n?Fg:Kg;case"left":case"right":return n?Hw:Iw;default:return[]}}function Kw(e,n,s,r){const o=er(e);let d=Fw(Oa(e),s==="start",r);return o&&(d=d.map(u=>u+"-"+o),n&&(d=d.concat(d.map(QO)))),d}function $c(e){const n=Oa(e);return Lw[n]+e.slice(n.length)}function Jw(e){return{top:0,right:0,bottom:0,left:0,...e}}function eb(e){return typeof e!="number"?Jw(e):{top:e,right:e,bottom:e,left:e}}function Tc(e){const{x:n,y:s,width:r,height:o}=e;return{width:r,height:o,top:s,left:n,right:n+r,bottom:s+o,x:n,y:s}}function Jg(e,n,s){let{reference:r,floating:o}=e;const d=Pn(n),u=JO(n),f=KO(u),h=Oa(n),p=d==="y",x=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,b=r[f]/2-o[f]/2;let y;switch(h){case"top":y={x,y:r.y-o.height};break;case"bottom":y={x,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-o.width,y:g};break;default:y={x:r.x,y:r.y}}switch(er(n)){case"start":y[u]-=b*(s&&p?-1:1);break;case"end":y[u]+=b*(s&&p?-1:1);break}return y}async function ek(e,n){var s;n===void 0&&(n={});const{x:r,y:o,platform:d,rects:u,elements:f,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:b=!1,padding:y=0}=fa(n,e),Q=eb(y),w=f[b?g==="floating"?"reference":"floating":g],j=Tc(await d.getClippingRect({element:(s=await(d.isElement==null?void 0:d.isElement(w)))==null||s?w:w.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(f.floating)),boundary:p,rootBoundary:x,strategy:h})),P=g==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,z=await(d.getOffsetParent==null?void 0:d.getOffsetParent(f.floating)),_=await(d.isElement==null?void 0:d.isElement(z))?await(d.getScale==null?void 0:d.getScale(z))||{x:1,y:1}:{x:1,y:1},G=Tc(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:P,offsetParent:z,strategy:h}):P);return{top:(j.top-G.top+Q.top)/_.y,bottom:(G.bottom-j.bottom+Q.bottom)/_.y,left:(j.left-G.left+Q.left)/_.x,right:(G.right-j.right+Q.right)/_.x}}const tk=50,nk=async(e,n,s)=>{const{placement:r="bottom",strategy:o="absolute",middleware:d=[],platform:u}=s,f=u.detectOverflow?u:{...u,detectOverflow:ek},h=await(u.isRTL==null?void 0:u.isRTL(n));let p=await u.getElementRects({reference:e,floating:n,strategy:o}),{x,y:g}=Jg(p,r,h),b=r,y=0;const Q={};for(let k=0;k<d.length;k++){const w=d[k];if(!w)continue;const{name:j,fn:P}=w,{x:z,y:_,data:G,reset:Z}=await P({x,y:g,initialPlacement:r,placement:b,strategy:o,middlewareData:Q,rects:p,platform:f,elements:{reference:e,floating:n}});x=z??x,g=_??g,Q[j]={...Q[j],...G},Z&&y<tk&&(y++,typeof Z=="object"&&(Z.placement&&(b=Z.placement),Z.rects&&(p=Z.rects===!0?await u.getElementRects({reference:e,floating:n,strategy:o}):Z.rects),{x,y:g}=Jg(p,b,h)),k=-1)}return{x,y:g,placement:b,strategy:o,middlewareData:Q}},ak=e=>({name:"arrow",options:e,async fn(n){const{x:s,y:r,placement:o,rects:d,platform:u,elements:f,middlewareData:h}=n,{element:p,padding:x=0}=fa(e,n)||{};if(p==null)return{};const g=eb(x),b={x:s,y:r},y=JO(o),Q=KO(y),k=await u.getDimensions(p),w=y==="y",j=w?"top":"left",P=w?"bottom":"right",z=w?"clientHeight":"clientWidth",_=d.reference[Q]+d.reference[y]-b[y]-d.floating[Q],G=b[y]-d.reference[y],Z=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let C=Z?Z[z]:0;(!C||!await(u.isElement==null?void 0:u.isElement(Z)))&&(C=f.floating[z]||d.floating[Q]);const T=_/2-G/2,H=C/2-k[Q]/2-1,E=ts(g[j],H),ee=ts(g[P],H),I=E,D=C-k[Q]-ee,ie=C/2-k[Q]/2+T,V=SO(I,ie,D),N=!h.arrow&&er(o)!=null&&ie!==V&&d.reference[Q]/2-(ie<I?E:ee)-k[Q]/2<0,M=N?ie<I?ie-I:ie-D:0;return{[y]:b[y]+M,data:{[y]:V,centerOffset:ie-V-M,...N&&{alignmentOffset:M}},reset:N}}}),sk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var s,r;const{placement:o,middlewareData:d,rects:u,initialPlacement:f,platform:h,elements:p}=n,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:Q="none",flipAlignment:k=!0,...w}=fa(e,n);if((s=d.arrow)!=null&&s.alignmentOffset)return{};const j=Oa(o),P=Pn(f),z=Oa(f)===f,_=await(h.isRTL==null?void 0:h.isRTL(p.floating)),G=b||(z||!k?[$c(f)]:Bw(f)),Z=Q!=="none";!b&&Z&&G.push(...Kw(f,k,Q,_));const C=[f,...G],T=await h.detectOverflow(n,w),H=[];let E=((r=d.flip)==null?void 0:r.overflows)||[];if(x&&H.push(T[j]),g){const ie=Ww(o,u,_);H.push(T[ie[0]],T[ie[1]])}if(E=[...E,{placement:o,overflows:H}],!H.every(ie=>ie<=0)){var ee,I;const ie=(((ee=d.flip)==null?void 0:ee.index)||0)+1,V=C[ie];if(V&&(!(g==="alignment"?P!==Pn(V):!1)||E.every(K=>Pn(K.placement)===P?K.overflows[0]>0:!0)))return{data:{index:ie,overflows:E},reset:{placement:V}};let N=(I=E.filter(M=>M.overflows[0]<=0).sort((M,K)=>M.overflows[1]-K.overflows[1])[0])==null?void 0:I.placement;if(!N)switch(y){case"bestFit":{var D;const M=(D=E.filter(K=>{if(Z){const de=Pn(K.placement);return de===P||de==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(de=>de>0).reduce((de,ae)=>de+ae,0)]).sort((K,de)=>K[1]-de[1])[0])==null?void 0:D[0];M&&(N=M);break}case"initialPlacement":N=f;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function e1(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function t1(e){return Dw.some(n=>e[n]>=0)}const lk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:s,platform:r}=n,{strategy:o="referenceHidden",...d}=fa(e,n);switch(o){case"referenceHidden":{const u=await r.detectOverflow(n,{...d,elementContext:"reference"}),f=e1(u,s.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:t1(f)}}}case"escaped":{const u=await r.detectOverflow(n,{...d,altBoundary:!0}),f=e1(u,s.floating);return{data:{escapedOffsets:f,escaped:t1(f)}}}default:return{}}}}},tb=new Set(["left","top"]);async function rk(e,n){const{placement:s,platform:r,elements:o}=e,d=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=Oa(s),f=er(s),h=Pn(s)==="y",p=tb.has(u)?-1:1,x=d&&h?-1:1,g=fa(n,e);let{mainAxis:b,crossAxis:y,alignmentAxis:Q}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return f&&typeof Q=="number"&&(y=f==="end"?Q*-1:Q),h?{x:y*x,y:b*p}:{x:b*p,y:y*x}}const ik=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var s,r;const{x:o,y:d,placement:u,middlewareData:f}=n,h=await rk(n,e);return u===((s=f.offset)==null?void 0:s.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:d+h.y,data:{...h,placement:u}}}}},ok=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:s,y:r,placement:o,platform:d}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:h={fn:j=>{let{x:P,y:z}=j;return{x:P,y:z}}},...p}=fa(e,n),x={x:s,y:r},g=await d.detectOverflow(n,p),b=Pn(Oa(o)),y=FO(b);let Q=x[y],k=x[b];if(u){const j=y==="y"?"top":"left",P=y==="y"?"bottom":"right",z=Q+g[j],_=Q-g[P];Q=SO(z,Q,_)}if(f){const j=b==="y"?"top":"left",P=b==="y"?"bottom":"right",z=k+g[j],_=k-g[P];k=SO(z,k,_)}const w=h.fn({...n,[y]:Q,[b]:k});return{...w,data:{x:w.x-s,y:w.y-r,enabled:{[y]:u,[b]:f}}}}}},ck=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:s,y:r,placement:o,rects:d,middlewareData:u}=n,{offset:f=0,mainAxis:h=!0,crossAxis:p=!0}=fa(e,n),x={x:s,y:r},g=Pn(o),b=FO(g);let y=x[b],Q=x[g];const k=fa(f,n),w=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:0,crossAxis:0,...k};if(h){const z=b==="y"?"height":"width",_=d.reference[b]-d.floating[z]+w.mainAxis,G=d.reference[b]+d.reference[z]-w.mainAxis;y<_?y=_:y>G&&(y=G)}if(p){var j,P;const z=b==="y"?"width":"height",_=tb.has(Oa(o)),G=d.reference[g]-d.floating[z]+(_&&((j=u.offset)==null?void 0:j[g])||0)+(_?0:w.crossAxis),Z=d.reference[g]+d.reference[z]+(_?0:((P=u.offset)==null?void 0:P[g])||0)-(_?w.crossAxis:0);Q<G?Q=G:Q>Z&&(Q=Z)}return{[b]:y,[g]:Q}}}},dk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var s,r;const{placement:o,rects:d,platform:u,elements:f}=n,{apply:h=()=>{},...p}=fa(e,n),x=await u.detectOverflow(n,p),g=Oa(o),b=er(o),y=Pn(o)==="y",{width:Q,height:k}=d.floating;let w,j;g==="top"||g==="bottom"?(w=g,j=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(j=g,w=b==="end"?"top":"bottom");const P=k-x.top-x.bottom,z=Q-x.left-x.right,_=ts(k-x[w],P),G=ts(Q-x[j],z),Z=!n.middlewareData.shift;let C=_,T=G;if((s=n.middlewareData.shift)!=null&&s.enabled.x&&(T=z),(r=n.middlewareData.shift)!=null&&r.enabled.y&&(C=P),Z&&!b){const E=It(x.left,0),ee=It(x.right,0),I=It(x.top,0),D=It(x.bottom,0);y?T=Q-2*(E!==0||ee!==0?E+ee:It(x.left,x.right)):C=k-2*(I!==0||D!==0?I+D:It(x.top,x.bottom))}await h({...n,availableWidth:T,availableHeight:C});const H=await u.getDimensions(f.floating);return Q!==H.width||k!==H.height?{reset:{rects:!0}}:{}}}};function Ic(){return typeof window<"u"}function tr(e){return nb(e)?(e.nodeName||"").toLowerCase():"#document"}function Ft(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Xn(e){var n;return(n=(nb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function nb(e){return Ic()?e instanceof Node||e instanceof Ft(e).Node:!1}function bn(e){return Ic()?e instanceof Element||e instanceof Ft(e).Element:!1}function ma(e){return Ic()?e instanceof HTMLElement||e instanceof Ft(e).HTMLElement:!1}function n1(e){return!Ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ft(e).ShadowRoot}function yi(e){const{overflow:n,overflowX:s,overflowY:r,display:o}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(n+r+s)&&o!=="inline"&&o!=="contents"}function uk(e){return/^(table|td|th)$/.test(tr(e))}function Fc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const fk=/transform|translate|scale|rotate|perspective|filter/,Ok=/paint|layout|strict|content/,$s=e=>!!e&&e!=="none";let zf;function eh(e){const n=bn(e)?vn(e):e;return $s(n.transform)||$s(n.translate)||$s(n.scale)||$s(n.rotate)||$s(n.perspective)||!th()&&($s(n.backdropFilter)||$s(n.filter))||fk.test(n.willChange||"")||Ok.test(n.contain||"")}function hk(e){let n=ns(e);for(;ma(n)&&!Gl(n);){if(eh(n))return n;if(Fc(n))return null;n=ns(n)}return null}function th(){return zf==null&&(zf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zf}function Gl(e){return/^(html|body|#document)$/.test(tr(e))}function vn(e){return Ft(e).getComputedStyle(e)}function Kc(e){return bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ns(e){if(tr(e)==="html")return e;const n=e.assignedSlot||e.parentNode||n1(e)&&e.host||Xn(e);return n1(n)?n.host:n}function ab(e){const n=ns(e);return Gl(n)?e.ownerDocument?e.ownerDocument.body:e.body:ma(n)&&yi(n)?n:ab(n)}function ii(e,n,s){var r;n===void 0&&(n=[]),s===void 0&&(s=!0);const o=ab(e),d=o===((r=e.ownerDocument)==null?void 0:r.body),u=Ft(o);if(d){const f=jO(u);return n.concat(u,u.visualViewport||[],yi(o)?o:[],f&&s?ii(f):[])}else return n.concat(o,ii(o,[],s))}function jO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function sb(e){const n=vn(e);let s=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const o=ma(e),d=o?e.offsetWidth:s,u=o?e.offsetHeight:r,f=kc(s)!==d||kc(r)!==u;return f&&(s=d,r=u),{width:s,height:r,$:f}}function nh(e){return bn(e)?e:e.contextElement}function Zl(e){const n=nh(e);if(!ma(n))return zn(1);const s=n.getBoundingClientRect(),{width:r,height:o,$:d}=sb(n);let u=(d?kc(s.width):s.width)/r,f=(d?kc(s.height):s.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const mk=zn(0);function lb(e){const n=Ft(e);return!th()||!n.visualViewport?mk:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function pk(e,n,s){return n===void 0&&(n=!1),!s||n&&s!==Ft(e)?!1:n}function Cs(e,n,s,r){n===void 0&&(n=!1),s===void 0&&(s=!1);const o=e.getBoundingClientRect(),d=nh(e);let u=zn(1);n&&(r?bn(r)&&(u=Zl(r)):u=Zl(e));const f=pk(d,s,r)?lb(d):zn(0);let h=(o.left+f.x)/u.x,p=(o.top+f.y)/u.y,x=o.width/u.x,g=o.height/u.y;if(d){const b=Ft(d),y=r&&bn(r)?Ft(r):r;let Q=b,k=jO(Q);for(;k&&r&&y!==Q;){const w=Zl(k),j=k.getBoundingClientRect(),P=vn(k),z=j.left+(k.clientLeft+parseFloat(P.paddingLeft))*w.x,_=j.top+(k.clientTop+parseFloat(P.paddingTop))*w.y;h*=w.x,p*=w.y,x*=w.x,g*=w.y,h+=z,p+=_,Q=Ft(k),k=jO(Q)}}return Tc({width:x,height:g,x:h,y:p})}function Jc(e,n){const s=Kc(e).scrollLeft;return n?n.left+s:Cs(Xn(e)).left+s}function rb(e,n){const s=e.getBoundingClientRect(),r=s.left+n.scrollLeft-Jc(e,s),o=s.top+n.scrollTop;return{x:r,y:o}}function xk(e){let{elements:n,rect:s,offsetParent:r,strategy:o}=e;const d=o==="fixed",u=Xn(r),f=n?Fc(n.floating):!1;if(r===u||f&&d)return s;let h={scrollLeft:0,scrollTop:0},p=zn(1);const x=zn(0),g=ma(r);if((g||!g&&!d)&&((tr(r)!=="body"||yi(u))&&(h=Kc(r)),g)){const y=Cs(r);p=Zl(r),x.x=y.x+r.clientLeft,x.y=y.y+r.clientTop}const b=u&&!g&&!d?rb(u,h):zn(0);return{width:s.width*p.x,height:s.height*p.y,x:s.x*p.x-h.scrollLeft*p.x+x.x+b.x,y:s.y*p.y-h.scrollTop*p.y+x.y+b.y}}function gk(e){return Array.from(e.getClientRects())}function bk(e){const n=Xn(e),s=Kc(e),r=e.ownerDocument.body,o=It(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),d=It(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let u=-s.scrollLeft+Jc(e);const f=-s.scrollTop;return vn(r).direction==="rtl"&&(u+=It(n.clientWidth,r.clientWidth)-o),{width:o,height:d,x:u,y:f}}const a1=25;function vk(e,n){const s=Ft(e),r=Xn(e),o=s.visualViewport;let d=r.clientWidth,u=r.clientHeight,f=0,h=0;if(o){d=o.width,u=o.height;const x=th();(!x||x&&n==="fixed")&&(f=o.offsetLeft,h=o.offsetTop)}const p=Jc(r);if(p<=0){const x=r.ownerDocument,g=x.body,b=getComputedStyle(g),y=x.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,Q=Math.abs(r.clientWidth-g.clientWidth-y);Q<=a1&&(d-=Q)}else p<=a1&&(d+=p);return{width:d,height:u,x:f,y:h}}function yk(e,n){const s=Cs(e,!0,n==="fixed"),r=s.top+e.clientTop,o=s.left+e.clientLeft,d=ma(e)?Zl(e):zn(1),u=e.clientWidth*d.x,f=e.clientHeight*d.y,h=o*d.x,p=r*d.y;return{width:u,height:f,x:h,y:p}}function s1(e,n,s){let r;if(n==="viewport")r=vk(e,s);else if(n==="document")r=bk(Xn(e));else if(bn(n))r=yk(n,s);else{const o=lb(e);r={x:n.x-o.x,y:n.y-o.y,width:n.width,height:n.height}}return Tc(r)}function ib(e,n){const s=ns(e);return s===n||!bn(s)||Gl(s)?!1:vn(s).position==="fixed"||ib(s,n)}function Sk(e,n){const s=n.get(e);if(s)return s;let r=ii(e,[],!1).filter(f=>bn(f)&&tr(f)!=="body"),o=null;const d=vn(e).position==="fixed";let u=d?ns(e):e;for(;bn(u)&&!Gl(u);){const f=vn(u),h=eh(u);!h&&f.position==="fixed"&&(o=null),(d?!h&&!o:!h&&f.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||yi(u)&&!h&&ib(e,u))?r=r.filter(x=>x!==u):o=f,u=ns(u)}return n.set(e,r),r}function Qk(e){let{element:n,boundary:s,rootBoundary:r,strategy:o}=e;const u=[...s==="clippingAncestors"?Fc(n)?[]:Sk(n,this._c):[].concat(s),r],f=s1(n,u[0],o);let h=f.top,p=f.right,x=f.bottom,g=f.left;for(let b=1;b<u.length;b++){const y=s1(n,u[b],o);h=It(y.top,h),p=ts(y.right,p),x=ts(y.bottom,x),g=It(y.left,g)}return{width:p-g,height:x-h,x:g,y:h}}function jk(e){const{width:n,height:s}=sb(e);return{width:n,height:s}}function wk(e,n,s){const r=ma(n),o=Xn(n),d=s==="fixed",u=Cs(e,!0,d,n);let f={scrollLeft:0,scrollTop:0};const h=zn(0);function p(){h.x=Jc(o)}if(r||!r&&!d)if((tr(n)!=="body"||yi(o))&&(f=Kc(n)),r){const y=Cs(n,!0,d,n);h.x=y.x+n.clientLeft,h.y=y.y+n.clientTop}else o&&p();d&&!r&&o&&p();const x=o&&!r&&!d?rb(o,f):zn(0),g=u.left+f.scrollLeft-h.x-x.x,b=u.top+f.scrollTop-h.y-x.y;return{x:g,y:b,width:u.width,height:u.height}}function Cf(e){return vn(e).position==="static"}function l1(e,n){if(!ma(e)||vn(e).position==="fixed")return null;if(n)return n(e);let s=e.offsetParent;return Xn(e)===s&&(s=s.ownerDocument.body),s}function ob(e,n){const s=Ft(e);if(Fc(e))return s;if(!ma(e)){let o=ns(e);for(;o&&!Gl(o);){if(bn(o)&&!Cf(o))return o;o=ns(o)}return s}let r=l1(e,n);for(;r&&uk(r)&&Cf(r);)r=l1(r,n);return r&&Gl(r)&&Cf(r)&&!eh(r)?s:r||hk(e)||s}const kk=async function(e){const n=this.getOffsetParent||ob,s=this.getDimensions,r=await s(e.floating);return{reference:wk(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $k(e){return vn(e).direction==="rtl"}const Tk={convertOffsetParentRelativeRectToViewportRelativeRect:xk,getDocumentElement:Xn,getClippingRect:Qk,getOffsetParent:ob,getElementRects:kk,getClientRects:gk,getDimensions:jk,getScale:Zl,isElement:bn,isRTL:$k};function cb(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function Nk(e,n){let s=null,r;const o=Xn(e);function d(){var f;clearTimeout(r),(f=s)==null||f.disconnect(),s=null}function u(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),d();const p=e.getBoundingClientRect(),{left:x,top:g,width:b,height:y}=p;if(f||n(),!b||!y)return;const Q=Fo(g),k=Fo(o.clientWidth-(x+b)),w=Fo(o.clientHeight-(g+y)),j=Fo(x),z={rootMargin:-Q+"px "+-k+"px "+-w+"px "+-j+"px",threshold:It(0,ts(1,h))||1};let _=!0;function G(Z){const C=Z[0].intersectionRatio;if(C!==h){if(!_)return u();C?u(!1,C):r=setTimeout(()=>{u(!1,1e-7)},1e3)}C===1&&!cb(p,e.getBoundingClientRect())&&u(),_=!1}try{s=new IntersectionObserver(G,{...z,root:o.ownerDocument})}catch{s=new IntersectionObserver(G,z)}s.observe(e)}return u(!0),d}function Pk(e,n,s,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=nh(e),x=o||d?[...p?ii(p):[],...n?ii(n):[]]:[];x.forEach(j=>{o&&j.addEventListener("scroll",s,{passive:!0}),d&&j.addEventListener("resize",s)});const g=p&&f?Nk(p,s):null;let b=-1,y=null;u&&(y=new ResizeObserver(j=>{let[P]=j;P&&P.target===p&&y&&n&&(y.unobserve(n),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var z;(z=y)==null||z.observe(n)})),s()}),p&&!h&&y.observe(p),n&&y.observe(n));let Q,k=h?Cs(e):null;h&&w();function w(){const j=Cs(e);k&&!cb(k,j)&&s(),k=j,Q=requestAnimationFrame(w)}return s(),()=>{var j;x.forEach(P=>{o&&P.removeEventListener("scroll",s),d&&P.removeEventListener("resize",s)}),g==null||g(),(j=y)==null||j.disconnect(),y=null,h&&cancelAnimationFrame(Q)}}const zk=ik,Ck=ok,Rk=sk,_k=dk,Xk=lk,r1=ak,Ak=ck,Zk=(e,n,s)=>{const r=new Map,o={platform:Tk,...s},d={...o.platform,_c:r};return nk(e,n,{...o,platform:d})};var Ek=typeof document<"u",qk=function(){},xc=Ek?v.useLayoutEffect:qk;function Nc(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let s,r,o;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(s=e.length,s!==n.length)return!1;for(r=s;r--!==0;)if(!Nc(e[r],n[r]))return!1;return!0}if(o=Object.keys(e),s=o.length,s!==Object.keys(n).length)return!1;for(r=s;r--!==0;)if(!{}.hasOwnProperty.call(n,o[r]))return!1;for(r=s;r--!==0;){const d=o[r];if(!(d==="_owner"&&e.$$typeof)&&!Nc(e[d],n[d]))return!1}return!0}return e!==e&&n!==n}function db(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function i1(e,n){const s=db(e);return Math.round(n*s)/s}function Rf(e){const n=v.useRef(e);return xc(()=>{n.current=e}),n}function Mk(e){e===void 0&&(e={});const{placement:n="bottom",strategy:s="absolute",middleware:r=[],platform:o,elements:{reference:d,floating:u}={},transform:f=!0,whileElementsMounted:h,open:p}=e,[x,g]=v.useState({x:0,y:0,strategy:s,placement:n,middlewareData:{},isPositioned:!1}),[b,y]=v.useState(r);Nc(b,r)||y(r);const[Q,k]=v.useState(null),[w,j]=v.useState(null),P=v.useCallback(K=>{K!==Z.current&&(Z.current=K,k(K))},[]),z=v.useCallback(K=>{K!==C.current&&(C.current=K,j(K))},[]),_=d||Q,G=u||w,Z=v.useRef(null),C=v.useRef(null),T=v.useRef(x),H=h!=null,E=Rf(h),ee=Rf(o),I=Rf(p),D=v.useCallback(()=>{if(!Z.current||!C.current)return;const K={placement:n,strategy:s,middleware:b};ee.current&&(K.platform=ee.current),Zk(Z.current,C.current,K).then(de=>{const ae={...de,isPositioned:I.current!==!1};ie.current&&!Nc(T.current,ae)&&(T.current=ae,U0.flushSync(()=>{g(ae)}))})},[b,n,s,ee,I]);xc(()=>{p===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[p]);const ie=v.useRef(!1);xc(()=>(ie.current=!0,()=>{ie.current=!1}),[]),xc(()=>{if(_&&(Z.current=_),G&&(C.current=G),_&&G){if(E.current)return E.current(_,G,D);D()}},[_,G,D,E,H]);const V=v.useMemo(()=>({reference:Z,floating:C,setReference:P,setFloating:z}),[P,z]),N=v.useMemo(()=>({reference:_,floating:G}),[_,G]),M=v.useMemo(()=>{const K={position:s,left:0,top:0};if(!N.floating)return K;const de=i1(N.floating,x.x),ae=i1(N.floating,x.y);return f?{...K,transform:"translate("+de+"px, "+ae+"px)",...db(N.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:de,top:ae}},[s,f,N.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:D,refs:V,elements:N,floatingStyles:M}),[x,D,V,N,M])}const Yk=e=>{function n(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:e,fn(s){const{element:r,padding:o}=typeof e=="function"?e(s):e;return r&&n(r)?r.current!=null?r1({element:r.current,padding:o}).fn(s):{}:r?r1({element:r,padding:o}).fn(s):{}}}},Uk=(e,n)=>{const s=zk(e);return{name:s.name,fn:s.fn,options:[e,n]}},Vk=(e,n)=>{const s=Ck(e);return{name:s.name,fn:s.fn,options:[e,n]}},Gk=(e,n)=>({fn:Ak(e).fn,options:[e,n]}),Dk=(e,n)=>{const s=Rk(e);return{name:s.name,fn:s.fn,options:[e,n]}},Lk=(e,n)=>{const s=_k(e);return{name:s.name,fn:s.fn,options:[e,n]}},Wk=(e,n)=>{const s=Xk(e);return{name:s.name,fn:s.fn,options:[e,n]}},Bk=(e,n)=>{const s=Yk(e);return{name:s.name,fn:s.fn,options:[e,n]}};var Hk="Arrow",ub=v.forwardRef((e,n)=>{const{children:s,width:r=10,height:o=5,...d}=e;return l.jsx(Fe.svg,{...d,ref:n,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?s:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});ub.displayName=Hk;var Ik=ub;function Fk(e){const[n,s]=v.useState(void 0);return ua(()=>{if(e){s({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const d=o[0];let u,f;if("borderBoxSize"in d){const h=d.borderBoxSize,p=Array.isArray(h)?h[0]:h;u=p.inlineSize,f=p.blockSize}else u=e.offsetWidth,f=e.offsetHeight;s({width:u,height:f})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else s(void 0)},[e]),n}var ah="Popper",[fb,Ob]=Ms(ah),[Kk,hb]=fb(ah),mb=e=>{const{__scopePopper:n,children:s}=e,[r,o]=v.useState(null);return l.jsx(Kk,{scope:n,anchor:r,onAnchorChange:o,children:s})};mb.displayName=ah;var pb="PopperAnchor",xb=v.forwardRef((e,n)=>{const{__scopePopper:s,virtualRef:r,...o}=e,d=hb(pb,s),u=v.useRef(null),f=dt(n,u),h=v.useRef(null);return v.useEffect(()=>{const p=h.current;h.current=(r==null?void 0:r.current)||u.current,p!==h.current&&d.onAnchorChange(h.current)}),r?null:l.jsx(Fe.div,{...o,ref:f})});xb.displayName=pb;var sh="PopperContent",[Jk,e5]=fb(sh),gb=v.forwardRef((e,n)=>{var je,te,Oe,Re,$e,at;const{__scopePopper:s,side:r="bottom",sideOffset:o=0,align:d="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:Q,...k}=e,w=hb(sh,s),[j,P]=v.useState(null),z=dt(n,xt=>P(xt)),[_,G]=v.useState(null),Z=Fk(_),C=(Z==null?void 0:Z.width)??0,T=(Z==null?void 0:Z.height)??0,H=r+(d!=="center"?"-"+d:""),E=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ee=Array.isArray(p)?p:[p],I=ee.length>0,D={padding:E,boundary:ee.filter(n5),altBoundary:I},{refs:ie,floatingStyles:V,placement:N,isPositioned:M,middlewareData:K}=Mk({strategy:"fixed",placement:H,whileElementsMounted:(...xt)=>Pk(...xt,{animationFrame:y==="always"}),elements:{reference:w.anchor},middleware:[Uk({mainAxis:o+T,alignmentAxis:u}),h&&Vk({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?Gk():void 0,...D}),h&&Dk({...D}),Lk({...D,apply:({elements:xt,rects:ut,availableWidth:ar,availableHeight:sr})=>{const{width:fd,height:Ci}=ut.reference,xa=xt.floating.style;xa.setProperty("--radix-popper-available-width",`${ar}px`),xa.setProperty("--radix-popper-available-height",`${sr}px`),xa.setProperty("--radix-popper-anchor-width",`${fd}px`),xa.setProperty("--radix-popper-anchor-height",`${Ci}px`)}}),_&&Bk({element:_,padding:f}),a5({arrowWidth:C,arrowHeight:T}),b&&Wk({strategy:"referenceHidden",...D})]}),[de,ae]=yb(N),Qe=Xt(Q);ua(()=>{M&&(Qe==null||Qe())},[M,Qe]);const ve=(je=K.arrow)==null?void 0:je.x,ue=(te=K.arrow)==null?void 0:te.y,ye=((Oe=K.arrow)==null?void 0:Oe.centerOffset)!==0,[Ae,B]=v.useState();return ua(()=>{j&&B(window.getComputedStyle(j).zIndex)},[j]),l.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:M?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[(Re=K.transformOrigin)==null?void 0:Re.x,($e=K.transformOrigin)==null?void 0:$e.y].join(" "),...((at=K.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(Jk,{scope:s,placedSide:de,onArrowChange:G,arrowX:ve,arrowY:ue,shouldHideArrow:ye,children:l.jsx(Fe.div,{"data-side":de,"data-align":ae,...k,ref:z,style:{...k.style,animation:M?void 0:"none"}})})})});gb.displayName=sh;var bb="PopperArrow",t5={top:"bottom",right:"left",bottom:"top",left:"right"},vb=v.forwardRef(function(n,s){const{__scopePopper:r,...o}=n,d=e5(bb,r),u=t5[d.placedSide];return l.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:l.jsx(Ik,{...o,ref:s,style:{...o.style,display:"block"}})})});vb.displayName=bb;function n5(e){return e!==null}var a5=e=>({name:"transformOrigin",options:e,fn(n){var w,j,P;const{placement:s,rects:r,middlewareData:o}=n,u=((w=o.arrow)==null?void 0:w.centerOffset)!==0,f=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,x]=yb(s),g={start:"0%",center:"50%",end:"100%"}[x],b=(((j=o.arrow)==null?void 0:j.x)??0)+f/2,y=(((P=o.arrow)==null?void 0:P.y)??0)+h/2;let Q="",k="";return p==="bottom"?(Q=u?g:`${b}px`,k=`${-h}px`):p==="top"?(Q=u?g:`${b}px`,k=`${r.floating.height+h}px`):p==="right"?(Q=`${-h}px`,k=u?g:`${y}px`):p==="left"&&(Q=`${r.floating.width+h}px`,k=u?g:`${y}px`),{data:{x:Q,y:k}}}});function yb(e){const[n,s="center"]=e.split("-");return[n,s]}var s5=mb,l5=xb,r5=gb,i5=vb,o5="Portal",lh=v.forwardRef((e,n)=>{var f;const{container:s,...r}=e,[o,d]=v.useState(!1);ua(()=>d(!0),[]);const u=s||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return u?Zj.createPortal(l.jsx(Fe.div,{...r,ref:n}),u):null});lh.displayName=o5;function c5(e,n){return v.useReducer((s,r)=>n[s][r]??s,e)}var Sn=e=>{const{present:n,children:s}=e,r=d5(n),o=typeof s=="function"?s({present:r.isPresent}):v.Children.only(s),d=dt(r.ref,u5(o));return typeof s=="function"||r.isPresent?v.cloneElement(o,{ref:d}):null};Sn.displayName="Presence";function d5(e){const[n,s]=v.useState(),r=v.useRef(null),o=v.useRef(e),d=v.useRef("none"),u=e?"mounted":"unmounted",[f,h]=c5(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Ko(r.current);d.current=f==="mounted"?p:"none"},[f]),ua(()=>{const p=r.current,x=o.current;if(x!==e){const b=d.current,y=Ko(p);e?h("MOUNT"):y==="none"||(p==null?void 0:p.display)==="none"?h("UNMOUNT"):h(x&&b!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),ua(()=>{if(n){let p;const x=n.ownerDocument.defaultView??window,g=y=>{const k=Ko(r.current).includes(CSS.escape(y.animationName));if(y.target===n&&k&&(h("ANIMATION_END"),!o.current)){const w=n.style.animationFillMode;n.style.animationFillMode="forwards",p=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=w)})}},b=y=>{y.target===n&&(d.current=Ko(r.current))};return n.addEventListener("animationstart",b),n.addEventListener("animationcancel",g),n.addEventListener("animationend",g),()=>{x.clearTimeout(p),n.removeEventListener("animationstart",b),n.removeEventListener("animationcancel",g),n.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[n,h]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(p=>{r.current=p?getComputedStyle(p):null,s(p)},[])}}function Ko(e){return(e==null?void 0:e.animationName)||"none"}function u5(e){var r,o;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?e.ref:(n=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?e.props.ref:e.props.ref||e.ref)}var f5=Y0[" useInsertionEffect ".trim().toString()]||ua;function ed({prop:e,defaultProp:n,onChange:s=()=>{},caller:r}){const[o,d,u]=O5({defaultProp:n,onChange:s}),f=e!==void 0,h=f?e:o;{const x=v.useRef(e!==void 0);v.useEffect(()=>{const g=x.current;g!==f&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=f},[f,r])}const p=v.useCallback(x=>{var g;if(f){const b=h5(x)?x(e):x;b!==e&&((g=u.current)==null||g.call(u,b))}else d(x)},[f,e,d,u]);return[h,p]}function O5({defaultProp:e,onChange:n}){const[s,r]=v.useState(e),o=v.useRef(s),d=v.useRef(n);return f5(()=>{d.current=n},[n]),v.useEffect(()=>{var u;o.current!==s&&((u=d.current)==null||u.call(d,s),o.current=s)},[s,o]),[s,r,d]}function h5(e){return typeof e=="function"}var m5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),p5="VisuallyHidden",Sb=v.forwardRef((e,n)=>l.jsx(Fe.span,{...e,ref:n,style:{...m5,...e.style}}));Sb.displayName=p5;var x5=Sb,[td]=Ms("Tooltip",[Ob]),nd=Ob(),Qb="TooltipProvider",g5=700,wO="tooltip.open",[b5,rh]=td(Qb),jb=e=>{const{__scopeTooltip:n,delayDuration:s=g5,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:d}=e,u=v.useRef(!0),f=v.useRef(!1),h=v.useRef(0);return v.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),l.jsx(b5,{scope:n,isOpenDelayedRef:u,delayDuration:s,onOpen:v.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(p=>{f.current=p},[]),disableHoverableContent:o,children:d})};jb.displayName=Qb;var oi="Tooltip",[v5,Si]=td(oi),wb=e=>{const{__scopeTooltip:n,children:s,open:r,defaultOpen:o,onOpenChange:d,disableHoverableContent:u,delayDuration:f}=e,h=rh(oi,e.__scopeTooltip),p=nd(n),[x,g]=v.useState(null),b=Al(),y=v.useRef(0),Q=u??h.disableHoverableContent,k=f??h.delayDuration,w=v.useRef(!1),[j,P]=ed({prop:r,defaultProp:o??!1,onChange:C=>{C?(h.onOpen(),document.dispatchEvent(new CustomEvent(wO))):h.onClose(),d==null||d(C)},caller:oi}),z=v.useMemo(()=>j?w.current?"delayed-open":"instant-open":"closed",[j]),_=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,w.current=!1,P(!0)},[P]),G=v.useCallback(()=>{window.clearTimeout(y.current),y.current=0,P(!1)},[P]),Z=v.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{w.current=!0,P(!0),y.current=0},k)},[k,P]);return v.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),l.jsx(s5,{...p,children:l.jsx(v5,{scope:n,contentId:b,open:j,stateAttribute:z,trigger:x,onTriggerChange:g,onTriggerEnter:v.useCallback(()=>{h.isOpenDelayedRef.current?Z():_()},[h.isOpenDelayedRef,Z,_]),onTriggerLeave:v.useCallback(()=>{Q?G():(window.clearTimeout(y.current),y.current=0)},[G,Q]),onOpen:_,onClose:G,disableHoverableContent:Q,children:s})})};wb.displayName=oi;var kO="TooltipTrigger",kb=v.forwardRef((e,n)=>{const{__scopeTooltip:s,...r}=e,o=Si(kO,s),d=rh(kO,s),u=nd(s),f=v.useRef(null),h=dt(n,f,o.onTriggerChange),p=v.useRef(!1),x=v.useRef(!1),g=v.useCallback(()=>p.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),l.jsx(l5,{asChild:!0,...u,children:l.jsx(Fe.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:h,onPointerMove:Ue(e.onPointerMove,b=>{b.pointerType!=="touch"&&!x.current&&!d.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Ue(e.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Ue(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ue(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:Ue(e.onBlur,o.onClose),onClick:Ue(e.onClick,o.onClose)})})});kb.displayName=kO;var ih="TooltipPortal",[y5,S5]=td(ih,{forceMount:void 0}),$b=e=>{const{__scopeTooltip:n,forceMount:s,children:r,container:o}=e,d=Si(ih,n);return l.jsx(y5,{scope:n,forceMount:s,children:l.jsx(Sn,{present:s||d.open,children:l.jsx(lh,{asChild:!0,container:o,children:r})})})};$b.displayName=ih;var Dl="TooltipContent",Tb=v.forwardRef((e,n)=>{const s=S5(Dl,e.__scopeTooltip),{forceMount:r=s.forceMount,side:o="top",...d}=e,u=Si(Dl,e.__scopeTooltip);return l.jsx(Sn,{present:r||u.open,children:u.disableHoverableContent?l.jsx(Nb,{side:o,...d,ref:n}):l.jsx(Q5,{side:o,...d,ref:n})})}),Q5=v.forwardRef((e,n)=>{const s=Si(Dl,e.__scopeTooltip),r=rh(Dl,e.__scopeTooltip),o=v.useRef(null),d=dt(n,o),[u,f]=v.useState(null),{trigger:h,onClose:p}=s,x=o.current,{onPointerInTransitChange:g}=r,b=v.useCallback(()=>{f(null),g(!1)},[g]),y=v.useCallback((Q,k)=>{const w=Q.currentTarget,j={x:Q.clientX,y:Q.clientY},P=$5(j,w.getBoundingClientRect()),z=T5(j,P),_=N5(k.getBoundingClientRect()),G=z5([...z,..._]);f(G),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(h&&x){const Q=w=>y(w,x),k=w=>y(w,h);return h.addEventListener("pointerleave",Q),x.addEventListener("pointerleave",k),()=>{h.removeEventListener("pointerleave",Q),x.removeEventListener("pointerleave",k)}}},[h,x,y,b]),v.useEffect(()=>{if(u){const Q=k=>{const w=k.target,j={x:k.clientX,y:k.clientY},P=(h==null?void 0:h.contains(w))||(x==null?void 0:x.contains(w)),z=!P5(j,u);P?b():z&&(b(),p())};return document.addEventListener("pointermove",Q),()=>document.removeEventListener("pointermove",Q)}},[h,x,u,p,b]),l.jsx(Nb,{...e,ref:d})}),[j5,w5]=td(oi,{isInside:!1}),k5=Nw("TooltipContent"),Nb=v.forwardRef((e,n)=>{const{__scopeTooltip:s,children:r,"aria-label":o,onEscapeKeyDown:d,onPointerDownOutside:u,...f}=e,h=Si(Dl,s),p=nd(s),{onClose:x}=h;return v.useEffect(()=>(document.addEventListener(wO,x),()=>document.removeEventListener(wO,x)),[x]),v.useEffect(()=>{if(h.trigger){const g=b=>{const y=b.target;y!=null&&y.contains(h.trigger)&&x()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[h.trigger,x]),l.jsx(IO,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:x,children:l.jsxs(r5,{"data-state":h.stateAttribute,...p,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[l.jsx(k5,{children:r}),l.jsx(j5,{scope:s,isInside:!0,children:l.jsx(x5,{id:h.contentId,role:"tooltip",children:o||r})})]})})});Tb.displayName=Dl;var Pb="TooltipArrow",zb=v.forwardRef((e,n)=>{const{__scopeTooltip:s,...r}=e,o=nd(s);return w5(Pb,s).isInside?null:l.jsx(i5,{...o,...r,ref:n})});zb.displayName=Pb;function $5(e,n){const s=Math.abs(n.top-e.y),r=Math.abs(n.bottom-e.y),o=Math.abs(n.right-e.x),d=Math.abs(n.left-e.x);switch(Math.min(s,r,o,d)){case d:return"left";case o:return"right";case s:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function T5(e,n,s=5){const r=[];switch(n){case"top":r.push({x:e.x-s,y:e.y+s},{x:e.x+s,y:e.y+s});break;case"bottom":r.push({x:e.x-s,y:e.y-s},{x:e.x+s,y:e.y-s});break;case"left":r.push({x:e.x+s,y:e.y-s},{x:e.x+s,y:e.y+s});break;case"right":r.push({x:e.x-s,y:e.y-s},{x:e.x-s,y:e.y+s});break}return r}function N5(e){const{top:n,right:s,bottom:r,left:o}=e;return[{x:o,y:n},{x:s,y:n},{x:s,y:r},{x:o,y:r}]}function P5(e,n){const{x:s,y:r}=e;let o=!1;for(let d=0,u=n.length-1;d<n.length;u=d++){const f=n[d],h=n[u],p=f.x,x=f.y,g=h.x,b=h.y;x>r!=b>r&&s<(g-p)*(r-x)/(b-x)+p&&(o=!o)}return o}function z5(e){const n=e.slice();return n.sort((s,r)=>s.x<r.x?-1:s.x>r.x?1:s.y<r.y?-1:s.y>r.y?1:0),C5(n)}function C5(e){if(e.length<=1)return e.slice();const n=[];for(let r=0;r<e.length;r++){const o=e[r];for(;n.length>=2;){const d=n[n.length-1],u=n[n.length-2];if((d.x-u.x)*(o.y-u.y)>=(d.y-u.y)*(o.x-u.x))n.pop();else break}n.push(o)}n.pop();const s=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;s.length>=2;){const d=s[s.length-1],u=s[s.length-2];if((d.x-u.x)*(o.y-u.y)>=(d.y-u.y)*(o.x-u.x))s.pop();else break}s.push(o)}return s.pop(),n.length===1&&s.length===1&&n[0].x===s[0].x&&n[0].y===s[0].y?n:n.concat(s)}var R5=jb,_5=wb,X5=kb,A5=$b,Z5=Tb,E5=zb;function Cb(e){var n,s,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(s=Cb(e[n]))&&(r&&(r+=" "),r+=s)}else for(s in e)e[s]&&(r&&(r+=" "),r+=s);return r}function q5(){for(var e,n,s=0,r="",o=arguments.length;s<o;s++)(e=arguments[s])&&(n=Cb(e))&&(r&&(r+=" "),r+=n);return r}const M5=(e,n)=>{const s=new Array(e.length+n.length);for(let r=0;r<e.length;r++)s[r]=e[r];for(let r=0;r<n.length;r++)s[e.length+r]=n[r];return s},Y5=(e,n)=>({classGroupId:e,validator:n}),Rb=(e=new Map,n=null,s)=>({nextPart:e,validators:n,classGroupId:s}),Pc="-",o1=[],U5="arbitrary..",V5=e=>{const n=D5(e),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return G5(u);const f=u.split(Pc),h=f[0]===""&&f.length>1?1:0;return _b(f,h,n)},getConflictingClassGroupIds:(u,f)=>{if(f){const h=r[u],p=s[u];return h?p?M5(p,h):h:p||o1}return s[u]||o1}}},_b=(e,n,s)=>{if(e.length-n===0)return s.classGroupId;const o=e[n],d=s.nextPart.get(o);if(d){const p=_b(e,n+1,d);if(p)return p}const u=s.validators;if(u===null)return;const f=n===0?e.join(Pc):e.slice(n).join(Pc),h=u.length;for(let p=0;p<h;p++){const x=u[p];if(x.validator(f))return x.classGroupId}},G5=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),s=n.indexOf(":"),r=n.slice(0,s);return r?U5+r:void 0})(),D5=e=>{const{theme:n,classGroups:s}=e;return L5(s,n)},L5=(e,n)=>{const s=Rb();for(const r in e){const o=e[r];oh(o,s,r,n)}return s},oh=(e,n,s,r)=>{const o=e.length;for(let d=0;d<o;d++){const u=e[d];W5(u,n,s,r)}},W5=(e,n,s,r)=>{if(typeof e=="string"){B5(e,n,s);return}if(typeof e=="function"){H5(e,n,s,r);return}I5(e,n,s,r)},B5=(e,n,s)=>{const r=e===""?n:Xb(n,e);r.classGroupId=s},H5=(e,n,s,r)=>{if(F5(e)){oh(e(r),n,s,r);return}n.validators===null&&(n.validators=[]),n.validators.push(Y5(s,e))},I5=(e,n,s,r)=>{const o=Object.entries(e),d=o.length;for(let u=0;u<d;u++){const[f,h]=o[u];oh(h,Xb(n,f),s,r)}},Xb=(e,n)=>{let s=e;const r=n.split(Pc),o=r.length;for(let d=0;d<o;d++){const u=r[d];let f=s.nextPart.get(u);f||(f=Rb(),s.nextPart.set(u,f)),s=f}return s},F5=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,K5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,s=Object.create(null),r=Object.create(null);const o=(d,u)=>{s[d]=u,n++,n>e&&(n=0,r=s,s=Object.create(null))};return{get(d){let u=s[d];if(u!==void 0)return u;if((u=r[d])!==void 0)return o(d,u),u},set(d,u){d in s?s[d]=u:o(d,u)}}},$O="!",c1=":",J5=[],d1=(e,n,s,r,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:s,maybePostfixModifierPosition:r,isExternal:o}),e$=e=>{const{prefix:n,experimentalParseClassName:s}=e;let r=o=>{const d=[];let u=0,f=0,h=0,p;const x=o.length;for(let k=0;k<x;k++){const w=o[k];if(u===0&&f===0){if(w===c1){d.push(o.slice(h,k)),h=k+1;continue}if(w==="/"){p=k;continue}}w==="["?u++:w==="]"?u--:w==="("?f++:w===")"&&f--}const g=d.length===0?o:o.slice(h);let b=g,y=!1;g.endsWith($O)?(b=g.slice(0,-1),y=!0):g.startsWith($O)&&(b=g.slice(1),y=!0);const Q=p&&p>h?p-h:void 0;return d1(d,y,b,Q)};if(n){const o=n+c1,d=r;r=u=>u.startsWith(o)?d(u.slice(o.length)):d1(J5,!1,u,void 0,!0)}if(s){const o=r;r=d=>s({className:d,parseClassName:o})}return r},t$=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((s,r)=>{n.set(s,1e6+r)}),s=>{const r=[];let o=[];for(let d=0;d<s.length;d++){const u=s[d],f=u[0]==="[",h=n.has(u);f||h?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(u)):o.push(u)}return o.length>0&&(o.sort(),r.push(...o)),r}},n$=e=>({cache:K5(e.cacheSize),parseClassName:e$(e),sortModifiers:t$(e),...V5(e)}),a$=/\s+/,s$=(e,n)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:d}=n,u=[],f=e.trim().split(a$);let h="";for(let p=f.length-1;p>=0;p-=1){const x=f[p],{isExternal:g,modifiers:b,hasImportantModifier:y,baseClassName:Q,maybePostfixModifierPosition:k}=s(x);if(g){h=x+(h.length>0?" "+h:h);continue}let w=!!k,j=r(w?Q.substring(0,k):Q);if(!j){if(!w){h=x+(h.length>0?" "+h:h);continue}if(j=r(Q),!j){h=x+(h.length>0?" "+h:h);continue}w=!1}const P=b.length===0?"":b.length===1?b[0]:d(b).join(":"),z=y?P+$O:P,_=z+j;if(u.indexOf(_)>-1)continue;u.push(_);const G=o(j,w);for(let Z=0;Z<G.length;++Z){const C=G[Z];u.push(z+C)}h=x+(h.length>0?" "+h:h)}return h},l$=(...e)=>{let n=0,s,r,o="";for(;n<e.length;)(s=e[n++])&&(r=Ab(s))&&(o&&(o+=" "),o+=r);return o},Ab=e=>{if(typeof e=="string")return e;let n,s="";for(let r=0;r<e.length;r++)e[r]&&(n=Ab(e[r]))&&(s&&(s+=" "),s+=n);return s},r$=(e,...n)=>{let s,r,o,d;const u=h=>{const p=n.reduce((x,g)=>g(x),e());return s=n$(p),r=s.cache.get,o=s.cache.set,d=f,f(h)},f=h=>{const p=r(h);if(p)return p;const x=s$(h,s);return o(h,x),x};return d=u,(...h)=>d(l$(...h))},i$=[],Ot=e=>{const n=s=>s[e]||i$;return n.isThemeGetter=!0,n},Zb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Eb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,o$=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,c$=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,d$=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,u$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,f$=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,O$=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Va=e=>o$.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),Ga=e=>!!e&&Number.isInteger(Number(e)),_f=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),aa=e=>c$.test(e),qb=()=>!0,h$=e=>d$.test(e)&&!u$.test(e),ch=()=>!1,m$=e=>f$.test(e),p$=e=>O$.test(e),x$=e=>!me(e)&&!pe(e),g$=e=>rs(e,Ub,ch),me=e=>Zb.test(e),Ts=e=>rs(e,Vb,h$),u1=e=>rs(e,k$,Ne),b$=e=>rs(e,Db,qb),v$=e=>rs(e,Gb,ch),f1=e=>rs(e,Mb,ch),y$=e=>rs(e,Yb,p$),Jo=e=>rs(e,Lb,m$),pe=e=>Eb.test(e),Jr=e=>Ys(e,Vb),S$=e=>Ys(e,Gb),O1=e=>Ys(e,Mb),Q$=e=>Ys(e,Ub),j$=e=>Ys(e,Yb),ec=e=>Ys(e,Lb,!0),w$=e=>Ys(e,Db,!0),rs=(e,n,s)=>{const r=Zb.exec(e);return r?r[1]?n(r[1]):s(r[2]):!1},Ys=(e,n,s=!1)=>{const r=Eb.exec(e);return r?r[1]?n(r[1]):s:!1},Mb=e=>e==="position"||e==="percentage",Yb=e=>e==="image"||e==="url",Ub=e=>e==="length"||e==="size"||e==="bg-size",Vb=e=>e==="length",k$=e=>e==="number",Gb=e=>e==="family-name",Db=e=>e==="number"||e==="weight",Lb=e=>e==="shadow",$$=()=>{const e=Ot("color"),n=Ot("font"),s=Ot("text"),r=Ot("font-weight"),o=Ot("tracking"),d=Ot("leading"),u=Ot("breakpoint"),f=Ot("container"),h=Ot("spacing"),p=Ot("radius"),x=Ot("shadow"),g=Ot("inset-shadow"),b=Ot("text-shadow"),y=Ot("drop-shadow"),Q=Ot("blur"),k=Ot("perspective"),w=Ot("aspect"),j=Ot("ease"),P=Ot("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],G=()=>[..._(),pe,me],Z=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],T=()=>[pe,me,h],H=()=>[Va,"full","auto",...T()],E=()=>[Ga,"none","subgrid",pe,me],ee=()=>["auto",{span:["full",Ga,pe,me]},Ga,pe,me],I=()=>[Ga,"auto",pe,me],D=()=>["auto","min","max","fr",pe,me],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],V=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...T()],M=()=>[Va,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...T()],K=()=>[Va,"screen","full","dvw","lvw","svw","min","max","fit",...T()],de=()=>[Va,"screen","full","lh","dvh","lvh","svh","min","max","fit",...T()],ae=()=>[e,pe,me],Qe=()=>[..._(),O1,f1,{position:[pe,me]}],ve=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",Q$,g$,{size:[pe,me]}],ye=()=>[_f,Jr,Ts],Ae=()=>["","none","full",p,pe,me],B=()=>["",Ne,Jr,Ts],je=()=>["solid","dashed","dotted","double"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Oe=()=>[Ne,_f,O1,f1],Re=()=>["","none",Q,pe,me],$e=()=>["none",Ne,pe,me],at=()=>["none",Ne,pe,me],xt=()=>[Ne,pe,me],ut=()=>[Va,"full",...T()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[aa],breakpoint:[aa],color:[qb],container:[aa],"drop-shadow":[aa],ease:["in","out","in-out"],font:[x$],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[aa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[aa],shadow:[aa],spacing:["px",Ne],text:[aa],"text-shadow":[aa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Va,me,pe,w]}],container:["container"],columns:[{columns:[Ne,me,pe,f]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:G()}],overflow:[{overflow:Z()}],"overflow-x":[{"overflow-x":Z()}],"overflow-y":[{"overflow-y":Z()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{"inset-s":H(),start:H()}],end:[{"inset-e":H(),end:H()}],"inset-bs":[{"inset-bs":H()}],"inset-be":[{"inset-be":H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[Ga,"auto",pe,me]}],basis:[{basis:[Va,"full","auto",f,...T()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,Va,"auto","initial","none",me]}],grow:[{grow:["",Ne,pe,me]}],shrink:[{shrink:["",Ne,pe,me]}],order:[{order:[Ga,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:T()}],"gap-x":[{"gap-x":T()}],"gap-y":[{"gap-y":T()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...V(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...V(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:T()}],px:[{px:T()}],py:[{py:T()}],ps:[{ps:T()}],pe:[{pe:T()}],pbs:[{pbs:T()}],pbe:[{pbe:T()}],pt:[{pt:T()}],pr:[{pr:T()}],pb:[{pb:T()}],pl:[{pl:T()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":T()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":T()}],"space-y-reverse":["space-y-reverse"],size:[{size:M()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[f,"screen",...M()]}],"min-w":[{"min-w":[f,"screen","none",...M()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...M()]}],h:[{h:["screen","lh",...M()]}],"min-h":[{"min-h":["screen","lh","none",...M()]}],"max-h":[{"max-h":["screen","lh",...M()]}],"font-size":[{text:["base",s,Jr,Ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,w$,b$]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_f,me]}],"font-family":[{font:[S$,v$,n]}],"font-features":[{"font-features":[me]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,me]}],"line-clamp":[{"line-clamp":[Ne,"none",pe,u1]}],leading:[{leading:[d,...T()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ae()}],"text-color":[{text:ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",pe,Ts]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[Ne,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Qe()}],"bg-repeat":[{bg:ve()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ga,pe,me],radial:["",pe,me],conic:[Ga,pe,me]},j$,y$]}],"bg-color":[{bg:ae()}],"gradient-from-pos":[{from:ye()}],"gradient-via-pos":[{via:ye()}],"gradient-to-pos":[{to:ye()}],"gradient-from":[{from:ae()}],"gradient-via":[{via:ae()}],"gradient-to":[{to:ae()}],rounded:[{rounded:Ae()}],"rounded-s":[{"rounded-s":Ae()}],"rounded-e":[{"rounded-e":Ae()}],"rounded-t":[{"rounded-t":Ae()}],"rounded-r":[{"rounded-r":Ae()}],"rounded-b":[{"rounded-b":Ae()}],"rounded-l":[{"rounded-l":Ae()}],"rounded-ss":[{"rounded-ss":Ae()}],"rounded-se":[{"rounded-se":Ae()}],"rounded-ee":[{"rounded-ee":Ae()}],"rounded-es":[{"rounded-es":Ae()}],"rounded-tl":[{"rounded-tl":Ae()}],"rounded-tr":[{"rounded-tr":Ae()}],"rounded-br":[{"rounded-br":Ae()}],"rounded-bl":[{"rounded-bl":Ae()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":B()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:ae()}],"border-color-x":[{"border-x":ae()}],"border-color-y":[{"border-y":ae()}],"border-color-s":[{"border-s":ae()}],"border-color-e":[{"border-e":ae()}],"border-color-bs":[{"border-bs":ae()}],"border-color-be":[{"border-be":ae()}],"border-color-t":[{"border-t":ae()}],"border-color-r":[{"border-r":ae()}],"border-color-b":[{"border-b":ae()}],"border-color-l":[{"border-l":ae()}],"divide-color":[{divide:ae()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,pe,me]}],"outline-w":[{outline:["",Ne,Jr,Ts]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",x,ec,Jo]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",g,ec,Jo]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[Ne,Ts]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",b,ec,Jo]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[Ne,pe,me]}],"mix-blend":[{"mix-blend":[...te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":Oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Oe()}],"mask-image-linear-from-color":[{"mask-linear-from":ae()}],"mask-image-linear-to-color":[{"mask-linear-to":ae()}],"mask-image-t-from-pos":[{"mask-t-from":Oe()}],"mask-image-t-to-pos":[{"mask-t-to":Oe()}],"mask-image-t-from-color":[{"mask-t-from":ae()}],"mask-image-t-to-color":[{"mask-t-to":ae()}],"mask-image-r-from-pos":[{"mask-r-from":Oe()}],"mask-image-r-to-pos":[{"mask-r-to":Oe()}],"mask-image-r-from-color":[{"mask-r-from":ae()}],"mask-image-r-to-color":[{"mask-r-to":ae()}],"mask-image-b-from-pos":[{"mask-b-from":Oe()}],"mask-image-b-to-pos":[{"mask-b-to":Oe()}],"mask-image-b-from-color":[{"mask-b-from":ae()}],"mask-image-b-to-color":[{"mask-b-to":ae()}],"mask-image-l-from-pos":[{"mask-l-from":Oe()}],"mask-image-l-to-pos":[{"mask-l-to":Oe()}],"mask-image-l-from-color":[{"mask-l-from":ae()}],"mask-image-l-to-color":[{"mask-l-to":ae()}],"mask-image-x-from-pos":[{"mask-x-from":Oe()}],"mask-image-x-to-pos":[{"mask-x-to":Oe()}],"mask-image-x-from-color":[{"mask-x-from":ae()}],"mask-image-x-to-color":[{"mask-x-to":ae()}],"mask-image-y-from-pos":[{"mask-y-from":Oe()}],"mask-image-y-to-pos":[{"mask-y-to":Oe()}],"mask-image-y-from-color":[{"mask-y-from":ae()}],"mask-image-y-to-color":[{"mask-y-to":ae()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":Oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Oe()}],"mask-image-radial-from-color":[{"mask-radial-from":ae()}],"mask-image-radial-to-color":[{"mask-radial-to":ae()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":Oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Oe()}],"mask-image-conic-from-color":[{"mask-conic-from":ae()}],"mask-image-conic-to-color":[{"mask-conic-to":ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Qe()}],"mask-repeat":[{mask:ve()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Re()}],brightness:[{brightness:[Ne,pe,me]}],contrast:[{contrast:[Ne,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",y,ec,Jo]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",Ne,pe,me]}],"hue-rotate":[{"hue-rotate":[Ne,pe,me]}],invert:[{invert:["",Ne,pe,me]}],saturate:[{saturate:[Ne,pe,me]}],sepia:[{sepia:["",Ne,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Ne,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":T()}],"border-spacing-x":[{"border-spacing-x":T()}],"border-spacing-y":[{"border-spacing-y":T()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",pe,me]}],ease:[{ease:["linear","initial",j,pe,me]}],delay:[{delay:[Ne,pe,me]}],animate:[{animate:["none",P,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,pe,me]}],"perspective-origin":[{"perspective-origin":G()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:at()}],"scale-x":[{"scale-x":at()}],"scale-y":[{"scale-y":at()}],"scale-z":[{"scale-z":at()}],"scale-3d":["scale-3d"],skew:[{skew:xt()}],"skew-x":[{"skew-x":xt()}],"skew-y":[{"skew-y":xt()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:G()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ae()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mbs":[{"scroll-mbs":T()}],"scroll-mbe":[{"scroll-mbe":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pbs":[{"scroll-pbs":T()}],"scroll-pbe":[{"scroll-pbe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...ae()]}],"stroke-w":[{stroke:[Ne,Jr,Ts,u1]}],stroke:[{stroke:["none",...ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},T$=r$($$);function oe(...e){return T$(q5(e))}function N$({children:e}){return l.jsx(R5,{delayDuration:300,children:e})}function zc({children:e,content:n,side:s="top",className:r}){return n?l.jsxs(_5,{children:[l.jsx(X5,{asChild:!0,children:e}),l.jsx(A5,{children:l.jsxs(Z5,{side:s,sideOffset:6,className:oe("z-50 px-2.5 py-1.5 text-xs font-sans","bg-surface-4 text-text-0 border border-border rounded-md shadow-lg","animate-in fade-in-0 zoom-in-95",r),children:[n,l.jsx(E5,{className:"fill-surface-4"})]})})]}):e}/**
|
|
30
|
-
* @license lucide-react v1.7.0 - ISC
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the ISC license.
|
|
33
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/const Wb=(...e)=>e.filter((n,s,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===s).join(" ").trim();/**
|
|
35
|
-
* @license lucide-react v1.7.0 - ISC
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the ISC license.
|
|
38
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/const P$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
40
|
-
* @license lucide-react v1.7.0 - ISC
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the ISC license.
|
|
43
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/const z$=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,s,r)=>r?r.toUpperCase():s.toLowerCase());/**
|
|
45
|
-
* @license lucide-react v1.7.0 - ISC
|
|
46
|
-
*
|
|
47
|
-
* This source code is licensed under the ISC license.
|
|
48
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const h1=e=>{const n=z$(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
|
|
50
|
-
* @license lucide-react v1.7.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/var Xf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
55
|
-
* @license lucide-react v1.7.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const C$=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},R$=v.createContext({}),_$=()=>v.useContext(R$),X$=v.forwardRef(({color:e,size:n,strokeWidth:s,absoluteStrokeWidth:r,className:o="",children:d,iconNode:u,...f},h)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:b="currentColor",className:y=""}=_$()??{},Q=r??g?Number(s??x)*24/Number(n??p):s??x;return v.createElement("svg",{ref:h,...Xf,width:n??p??Xf.width,height:n??p??Xf.height,stroke:e??b,strokeWidth:Q,className:Wb("lucide",y,o),...!d&&!C$(f)&&{"aria-hidden":"true"},...f},[...u.map(([k,w])=>v.createElement(k,w)),...Array.isArray(d)?d:[d]])});/**
|
|
60
|
-
* @license lucide-react v1.7.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const re=(e,n)=>{const s=v.forwardRef(({className:r,...o},d)=>v.createElement(X$,{ref:d,iconNode:n,className:Wb(`lucide-${P$(h1(e))}`,`lucide-${e}`,r),...o}));return s.displayName=h1(e),s};/**
|
|
65
|
-
* @license lucide-react v1.7.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const A$=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ci=re("activity",A$);/**
|
|
70
|
-
* @license lucide-react v1.7.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const Z$=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],E$=re("arrow-up",Z$);/**
|
|
75
|
-
* @license lucide-react v1.7.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const q$=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],M$=re("book-open",q$);/**
|
|
80
|
-
* @license lucide-react v1.7.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const Y$=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],dh=re("box",Y$);/**
|
|
85
|
-
* @license lucide-react v1.7.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const U$=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],V$=re("brain",U$);/**
|
|
90
|
-
* @license lucide-react v1.7.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const G$=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]],D$=re("calculator",G$);/**
|
|
95
|
-
* @license lucide-react v1.7.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const L$=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Cc=re("calendar",L$);/**
|
|
100
|
-
* @license lucide-react v1.7.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const W$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Bb=re("chart-column",W$);/**
|
|
105
|
-
* @license lucide-react v1.7.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const B$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]],Hb=re("chart-spline",B$);/**
|
|
110
|
-
* @license lucide-react v1.7.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const H$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jt=re("check",H$);/**
|
|
115
|
-
* @license lucide-react v1.7.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const I$=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Rn=re("chevron-down",I$);/**
|
|
120
|
-
* @license lucide-react v1.7.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const F$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Ib=re("chevron-left",F$);/**
|
|
125
|
-
* @license lucide-react v1.7.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const K$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],is=re("chevron-right",K$);/**
|
|
130
|
-
* @license lucide-react v1.7.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const J$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ha=re("circle-alert",J$);/**
|
|
135
|
-
* @license lucide-react v1.7.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const eT=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],as=re("circle-check-big",eT);/**
|
|
140
|
-
* @license lucide-react v1.7.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const tT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],TO=re("circle-check",tT);/**
|
|
145
|
-
* @license lucide-react v1.7.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const nT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ll=re("circle-question-mark",nT);/**
|
|
150
|
-
* @license lucide-react v1.7.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const aT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Fb=re("circle-x",aT);/**
|
|
155
|
-
* @license lucide-react v1.7.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const sT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],NO=re("clock",sT);/**
|
|
160
|
-
* @license lucide-react v1.7.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const lT=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],rT=re("cloud",lT);/**
|
|
165
|
-
* @license lucide-react v1.7.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const iT=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],os=re("code-xml",iT);/**
|
|
170
|
-
* @license lucide-react v1.7.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const oT=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Rc=re("copy",oT);/**
|
|
175
|
-
* @license lucide-react v1.7.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const cT=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Wl=re("cpu",cT);/**
|
|
180
|
-
* @license lucide-react v1.7.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const dT=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],uT=re("database",dT);/**
|
|
185
|
-
* @license lucide-react v1.7.0 - ISC
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the ISC license.
|
|
188
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
-
*/const fT=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],OT=re("dollar-sign",fT);/**
|
|
190
|
-
* @license lucide-react v1.7.0 - ISC
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the ISC license.
|
|
193
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const hT=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Qi=re("download",hT);/**
|
|
195
|
-
* @license lucide-react v1.7.0 - ISC
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the ISC license.
|
|
198
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/const mT=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Bl=re("external-link",mT);/**
|
|
200
|
-
* @license lucide-react v1.7.0 - ISC
|
|
201
|
-
*
|
|
202
|
-
* This source code is licensed under the ISC license.
|
|
203
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
-
*/const pT=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ad=re("eye-off",pT);/**
|
|
205
|
-
* @license lucide-react v1.7.0 - ISC
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the ISC license.
|
|
208
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const xT=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Us=re("eye",xT);/**
|
|
210
|
-
* @license lucide-react v1.7.0 - ISC
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the ISC license.
|
|
213
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const gT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],bT=re("file-code",gT);/**
|
|
215
|
-
* @license lucide-react v1.7.0 - ISC
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the ISC license.
|
|
218
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/const vT=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],Kb=re("file-pen",vT);/**
|
|
220
|
-
* @license lucide-react v1.7.0 - ISC
|
|
221
|
-
*
|
|
222
|
-
* This source code is licensed under the ISC license.
|
|
223
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
-
*/const yT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]],Af=re("file-plus",yT);/**
|
|
225
|
-
* @license lucide-react v1.7.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/const ST=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ka=re("file-text",ST);/**
|
|
230
|
-
* @license lucide-react v1.7.0 - ISC
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the ISC license.
|
|
233
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/const QT=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],jT=re("file",QT);/**
|
|
235
|
-
* @license lucide-react v1.7.0 - ISC
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the ISC license.
|
|
238
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const wT=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],kT=re("flame",wT);/**
|
|
240
|
-
* @license lucide-react v1.7.0 - ISC
|
|
241
|
-
*
|
|
242
|
-
* This source code is licensed under the ISC license.
|
|
243
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
-
*/const $T=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M2 10h20",key:"1ir3d8"}]],TT=re("folder-closed",$T);/**
|
|
245
|
-
* @license lucide-react v1.7.0 - ISC
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the ISC license.
|
|
248
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/const NT=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],di=re("folder-open",NT);/**
|
|
250
|
-
* @license lucide-react v1.7.0 - ISC
|
|
251
|
-
*
|
|
252
|
-
* This source code is licensed under the ISC license.
|
|
253
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/const PT=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Zf=re("folder-plus",PT);/**
|
|
255
|
-
* @license lucide-react v1.7.0 - ISC
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the ISC license.
|
|
258
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/const zT=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],Jb=re("folder-search",zT);/**
|
|
260
|
-
* @license lucide-react v1.7.0 - ISC
|
|
261
|
-
*
|
|
262
|
-
* This source code is licensed under the ISC license.
|
|
263
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/const CT=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],ev=re("folder",CT);/**
|
|
265
|
-
* @license lucide-react v1.7.0 - ISC
|
|
266
|
-
*
|
|
267
|
-
* This source code is licensed under the ISC license.
|
|
268
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
-
*/const RT=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],tv=re("gauge",RT);/**
|
|
270
|
-
* @license lucide-react v1.7.0 - ISC
|
|
271
|
-
*
|
|
272
|
-
* This source code is licensed under the ISC license.
|
|
273
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
-
*/const _T=[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]],XT=re("grip-horizontal",_T);/**
|
|
275
|
-
* @license lucide-react v1.7.0 - ISC
|
|
276
|
-
*
|
|
277
|
-
* This source code is licensed under the ISC license.
|
|
278
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
-
*/const AT=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],uh=re("hard-drive",AT);/**
|
|
280
|
-
* @license lucide-react v1.7.0 - ISC
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the ISC license.
|
|
283
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/const ZT=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],ET=re("headphones",ZT);/**
|
|
285
|
-
* @license lucide-react v1.7.0 - ISC
|
|
286
|
-
*
|
|
287
|
-
* This source code is licensed under the ISC license.
|
|
288
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const qT=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],MT=re("heart",qT);/**
|
|
290
|
-
* @license lucide-react v1.7.0 - ISC
|
|
291
|
-
*
|
|
292
|
-
* This source code is licensed under the ISC license.
|
|
293
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
-
*/const YT=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],UT=re("house",YT);/**
|
|
295
|
-
* @license lucide-react v1.7.0 - ISC
|
|
296
|
-
*
|
|
297
|
-
* This source code is licensed under the ISC license.
|
|
298
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
299
|
-
*/const VT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],nv=re("info",VT);/**
|
|
300
|
-
* @license lucide-react v1.7.0 - ISC
|
|
301
|
-
*
|
|
302
|
-
* This source code is licensed under the ISC license.
|
|
303
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
304
|
-
*/const GT=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Rs=re("key",GT);/**
|
|
305
|
-
* @license lucide-react v1.7.0 - ISC
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the ISC license.
|
|
308
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
309
|
-
*/const DT=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],m1=re("layers",DT);/**
|
|
310
|
-
* @license lucide-react v1.7.0 - ISC
|
|
311
|
-
*
|
|
312
|
-
* This source code is licensed under the ISC license.
|
|
313
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
314
|
-
*/const LT=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],WT=re("layout-dashboard",LT);/**
|
|
315
|
-
* @license lucide-react v1.7.0 - ISC
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the ISC license.
|
|
318
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/const BT=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],HT=re("list-checks",BT);/**
|
|
320
|
-
* @license lucide-react v1.7.0 - ISC
|
|
321
|
-
*
|
|
322
|
-
* This source code is licensed under the ISC license.
|
|
323
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
324
|
-
*/const IT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ht=re("loader-circle",IT);/**
|
|
325
|
-
* @license lucide-react v1.7.0 - ISC
|
|
326
|
-
*
|
|
327
|
-
* This source code is licensed under the ISC license.
|
|
328
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
329
|
-
*/const FT=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],fh=re("log-in",FT);/**
|
|
330
|
-
* @license lucide-react v1.7.0 - ISC
|
|
331
|
-
*
|
|
332
|
-
* This source code is licensed under the ISC license.
|
|
333
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
334
|
-
*/const KT=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],av=re("log-out",KT);/**
|
|
335
|
-
* @license lucide-react v1.7.0 - ISC
|
|
336
|
-
*
|
|
337
|
-
* This source code is licensed under the ISC license.
|
|
338
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
339
|
-
*/const JT=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],eN=re("map",JT);/**
|
|
340
|
-
* @license lucide-react v1.7.0 - ISC
|
|
341
|
-
*
|
|
342
|
-
* This source code is licensed under the ISC license.
|
|
343
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
344
|
-
*/const tN=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],nN=re("maximize-2",tN);/**
|
|
345
|
-
* @license lucide-react v1.7.0 - ISC
|
|
346
|
-
*
|
|
347
|
-
* This source code is licensed under the ISC license.
|
|
348
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
349
|
-
*/const aN=[["path",{d:"M12 12v-2",key:"fwoke6"}],["path",{d:"M12 18v-2",key:"qj6yno"}],["path",{d:"M16 12v-2",key:"heuere"}],["path",{d:"M16 18v-2",key:"s1ct0w"}],["path",{d:"M2 11h1.5",key:"15p63e"}],["path",{d:"M20 18v-2",key:"12ehxp"}],["path",{d:"M20.5 11H22",key:"khsy7a"}],["path",{d:"M4 18v-2",key:"1c3oqr"}],["path",{d:"M8 12v-2",key:"1mwtfd"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["rect",{x:"2",y:"6",width:"20",height:"10",rx:"2",key:"1qcswk"}]],sN=re("memory-stick",aN);/**
|
|
350
|
-
* @license lucide-react v1.7.0 - ISC
|
|
351
|
-
*
|
|
352
|
-
* This source code is licensed under the ISC license.
|
|
353
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
354
|
-
*/const lN=[["path",{d:"M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z",key:"q8bfy3"}],["path",{d:"M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14",key:"1853fq"}],["path",{d:"M8 6v8",key:"15ugcq"}]],rN=re("megaphone",lN);/**
|
|
355
|
-
* @license lucide-react v1.7.0 - ISC
|
|
356
|
-
*
|
|
357
|
-
* This source code is licensed under the ISC license.
|
|
358
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
359
|
-
*/const iN=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],sv=re("message-circle",iN);/**
|
|
360
|
-
* @license lucide-react v1.7.0 - ISC
|
|
361
|
-
*
|
|
362
|
-
* This source code is licensed under the ISC license.
|
|
363
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
364
|
-
*/const oN=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],ji=re("message-square",oN);/**
|
|
365
|
-
* @license lucide-react v1.7.0 - ISC
|
|
366
|
-
*
|
|
367
|
-
* This source code is licensed under the ISC license.
|
|
368
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
369
|
-
*/const cN=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],dN=re("minimize-2",cN);/**
|
|
370
|
-
* @license lucide-react v1.7.0 - ISC
|
|
371
|
-
*
|
|
372
|
-
* This source code is licensed under the ISC license.
|
|
373
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
374
|
-
*/const uN=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Oh=re("monitor",uN);/**
|
|
375
|
-
* @license lucide-react v1.7.0 - ISC
|
|
376
|
-
*
|
|
377
|
-
* This source code is licensed under the ISC license.
|
|
378
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
379
|
-
*/const fN=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],lv=re("network",fN);/**
|
|
380
|
-
* @license lucide-react v1.7.0 - ISC
|
|
381
|
-
*
|
|
382
|
-
* This source code is licensed under the ISC license.
|
|
383
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
384
|
-
*/const ON=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],ui=re("newspaper",ON);/**
|
|
385
|
-
* @license lucide-react v1.7.0 - ISC
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the ISC license.
|
|
388
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/const hN=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],rv=re("package",hN);/**
|
|
390
|
-
* @license lucide-react v1.7.0 - ISC
|
|
391
|
-
*
|
|
392
|
-
* This source code is licensed under the ISC license.
|
|
393
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
394
|
-
*/const mN=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],pN=re("paperclip",mN);/**
|
|
395
|
-
* @license lucide-react v1.7.0 - ISC
|
|
396
|
-
*
|
|
397
|
-
* This source code is licensed under the ISC license.
|
|
398
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
399
|
-
*/const xN=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],gN=re("pause",xN);/**
|
|
400
|
-
* @license lucide-react v1.7.0 - ISC
|
|
401
|
-
*
|
|
402
|
-
* This source code is licensed under the ISC license.
|
|
403
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
-
*/const bN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],vN=re("pen",bN);/**
|
|
405
|
-
* @license lucide-react v1.7.0 - ISC
|
|
406
|
-
*
|
|
407
|
-
* This source code is licensed under the ISC license.
|
|
408
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
409
|
-
*/const yN=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],sd=re("pencil",yN);/**
|
|
410
|
-
* @license lucide-react v1.7.0 - ISC
|
|
411
|
-
*
|
|
412
|
-
* This source code is licensed under the ISC license.
|
|
413
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
414
|
-
*/const SN=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],QN=re("play",SN);/**
|
|
415
|
-
* @license lucide-react v1.7.0 - ISC
|
|
416
|
-
*
|
|
417
|
-
* This source code is licensed under the ISC license.
|
|
418
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
419
|
-
*/const jN=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],p1=re("plug-zap",jN);/**
|
|
420
|
-
* @license lucide-react v1.7.0 - ISC
|
|
421
|
-
*
|
|
422
|
-
* This source code is licensed under the ISC license.
|
|
423
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
424
|
-
*/const wN=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],El=re("plug",wN);/**
|
|
425
|
-
* @license lucide-react v1.7.0 - ISC
|
|
426
|
-
*
|
|
427
|
-
* This source code is licensed under the ISC license.
|
|
428
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
429
|
-
*/const kN=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ss=re("plus",kN);/**
|
|
430
|
-
* @license lucide-react v1.7.0 - ISC
|
|
431
|
-
*
|
|
432
|
-
* This source code is licensed under the ISC license.
|
|
433
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
434
|
-
*/const $N=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],TN=re("presentation",$N);/**
|
|
435
|
-
* @license lucide-react v1.7.0 - ISC
|
|
436
|
-
*
|
|
437
|
-
* This source code is licensed under the ISC license.
|
|
438
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
439
|
-
*/const NN=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],iv=re("puzzle",NN);/**
|
|
440
|
-
* @license lucide-react v1.7.0 - ISC
|
|
441
|
-
*
|
|
442
|
-
* This source code is licensed under the ISC license.
|
|
443
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
444
|
-
*/const PN=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],hh=re("radio",PN);/**
|
|
445
|
-
* @license lucide-react v1.7.0 - ISC
|
|
446
|
-
*
|
|
447
|
-
* This source code is licensed under the ISC license.
|
|
448
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
449
|
-
*/const zN=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],un=re("refresh-cw",zN);/**
|
|
450
|
-
* @license lucide-react v1.7.0 - ISC
|
|
451
|
-
*
|
|
452
|
-
* This source code is licensed under the ISC license.
|
|
453
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
454
|
-
*/const CN=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ov=re("rocket",CN);/**
|
|
455
|
-
* @license lucide-react v1.7.0 - ISC
|
|
456
|
-
*
|
|
457
|
-
* This source code is licensed under the ISC license.
|
|
458
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
459
|
-
*/const RN=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],wi=re("rotate-cw",RN);/**
|
|
460
|
-
* @license lucide-react v1.7.0 - ISC
|
|
461
|
-
*
|
|
462
|
-
* This source code is licensed under the ISC license.
|
|
463
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
464
|
-
*/const _N=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],XN=re("save",_N);/**
|
|
465
|
-
* @license lucide-react v1.7.0 - ISC
|
|
466
|
-
*
|
|
467
|
-
* This source code is licensed under the ISC license.
|
|
468
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
469
|
-
*/const AN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],_n=re("search",AN);/**
|
|
470
|
-
* @license lucide-react v1.7.0 - ISC
|
|
471
|
-
*
|
|
472
|
-
* This source code is licensed under the ISC license.
|
|
473
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
474
|
-
*/const ZN=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],mh=re("send",ZN);/**
|
|
475
|
-
* @license lucide-react v1.7.0 - ISC
|
|
476
|
-
*
|
|
477
|
-
* This source code is licensed under the ISC license.
|
|
478
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
479
|
-
*/const EN=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],cv=re("server",EN);/**
|
|
480
|
-
* @license lucide-react v1.7.0 - ISC
|
|
481
|
-
*
|
|
482
|
-
* This source code is licensed under the ISC license.
|
|
483
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
484
|
-
*/const qN=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],dv=re("settings",qN);/**
|
|
485
|
-
* @license lucide-react v1.7.0 - ISC
|
|
486
|
-
*
|
|
487
|
-
* This source code is licensed under the ISC license.
|
|
488
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
489
|
-
*/const MN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],uv=re("shield-check",MN);/**
|
|
490
|
-
* @license lucide-react v1.7.0 - ISC
|
|
491
|
-
*
|
|
492
|
-
* This source code is licensed under the ISC license.
|
|
493
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
494
|
-
*/const YN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]],UN=re("shield-x",YN);/**
|
|
495
|
-
* @license lucide-react v1.7.0 - ISC
|
|
496
|
-
*
|
|
497
|
-
* This source code is licensed under the ISC license.
|
|
498
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
499
|
-
*/const VN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],_s=re("shield",VN);/**
|
|
500
|
-
* @license lucide-react v1.7.0 - ISC
|
|
501
|
-
*
|
|
502
|
-
* This source code is licensed under the ISC license.
|
|
503
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
-
*/const GN=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],Ef=re("shopping-bag",GN);/**
|
|
505
|
-
* @license lucide-react v1.7.0 - ISC
|
|
506
|
-
*
|
|
507
|
-
* This source code is licensed under the ISC license.
|
|
508
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
509
|
-
*/const DN=[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]],ph=re("skull",DN);/**
|
|
510
|
-
* @license lucide-react v1.7.0 - ISC
|
|
511
|
-
*
|
|
512
|
-
* This source code is licensed under the ISC license.
|
|
513
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
514
|
-
*/const LN=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],_l=re("sparkles",LN);/**
|
|
515
|
-
* @license lucide-react v1.7.0 - ISC
|
|
516
|
-
*
|
|
517
|
-
* This source code is licensed under the ISC license.
|
|
518
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
519
|
-
*/const WN=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],BN=re("square",WN);/**
|
|
520
|
-
* @license lucide-react v1.7.0 - ISC
|
|
521
|
-
*
|
|
522
|
-
* This source code is licensed under the ISC license.
|
|
523
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
524
|
-
*/const HN=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],fv=re("star",HN);/**
|
|
525
|
-
* @license lucide-react v1.7.0 - ISC
|
|
526
|
-
*
|
|
527
|
-
* This source code is licensed under the ISC license.
|
|
528
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
529
|
-
*/const IN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ki=re("terminal",IN);/**
|
|
530
|
-
* @license lucide-react v1.7.0 - ISC
|
|
531
|
-
*
|
|
532
|
-
* This source code is licensed under the ISC license.
|
|
533
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
534
|
-
*/const FN=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],xh=re("test-tube",FN);/**
|
|
535
|
-
* @license lucide-react v1.7.0 - ISC
|
|
536
|
-
*
|
|
537
|
-
* This source code is licensed under the ISC license.
|
|
538
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
539
|
-
*/const KN=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Qn=re("trash-2",KN);/**
|
|
540
|
-
* @license lucide-react v1.7.0 - ISC
|
|
541
|
-
*
|
|
542
|
-
* This source code is licensed under the ISC license.
|
|
543
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
544
|
-
*/const JN=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$i=re("triangle-alert",JN);/**
|
|
545
|
-
* @license lucide-react v1.7.0 - ISC
|
|
546
|
-
*
|
|
547
|
-
* This source code is licensed under the ISC license.
|
|
548
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
549
|
-
*/const eP=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],tP=re("upload",eP);/**
|
|
550
|
-
* @license lucide-react v1.7.0 - ISC
|
|
551
|
-
*
|
|
552
|
-
* This source code is licensed under the ISC license.
|
|
553
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
554
|
-
*/const nP=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],aP=re("user-check",nP);/**
|
|
555
|
-
* @license lucide-react v1.7.0 - ISC
|
|
556
|
-
*
|
|
557
|
-
* This source code is licensed under the ISC license.
|
|
558
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
559
|
-
*/const sP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],lP=re("user-plus",sP);/**
|
|
560
|
-
* @license lucide-react v1.7.0 - ISC
|
|
561
|
-
*
|
|
562
|
-
* This source code is licensed under the ISC license.
|
|
563
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
564
|
-
*/const rP=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ov=re("user",rP);/**
|
|
565
|
-
* @license lucide-react v1.7.0 - ISC
|
|
566
|
-
*
|
|
567
|
-
* This source code is licensed under the ISC license.
|
|
568
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
569
|
-
*/const iP=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Ti=re("users",iP);/**
|
|
570
|
-
* @license lucide-react v1.7.0 - ISC
|
|
571
|
-
*
|
|
572
|
-
* This source code is licensed under the ISC license.
|
|
573
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
574
|
-
*/const oP=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],cP=re("wrench",oP);/**
|
|
575
|
-
* @license lucide-react v1.7.0 - ISC
|
|
576
|
-
*
|
|
577
|
-
* This source code is licensed under the ISC license.
|
|
578
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
579
|
-
*/const dP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],wt=re("x",dP);/**
|
|
580
|
-
* @license lucide-react v1.7.0 - ISC
|
|
581
|
-
*
|
|
582
|
-
* This source code is licensed under the ISC license.
|
|
583
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
584
|
-
*/const uP=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],An=re("zap",uP),fP={success:as,error:ha,info:nv,warning:$i},OP={success:"border-l-success",error:"border-l-danger",info:"border-l-accent",warning:"border-l-warning"},hP={success:"text-success",error:"text-danger",info:"text-accent",warning:"text-warning"},mP={success:3e3,error:0,info:5e3,warning:5e3};function pP({toast:e}){const n=W(o=>o.removeToast),s=fP[e.type]||nv,r=mP[e.type];return v.useEffect(()=>{if(!r)return;const o=setTimeout(()=>n(e.id),r);return()=>clearTimeout(o)},[e.id,r,n]),l.jsxs(WO.div,{layout:!0,initial:{opacity:0,x:80,scale:.95},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:80,scale:.95},transition:{duration:.2},className:oe("w-80 rounded-md border border-border bg-surface-1 shadow-xl","border-l-4 flex items-center gap-3 px-4 py-3",OP[e.type]),children:[l.jsx(s,{size:16,className:oe("flex-shrink-0",hP[e.type])}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"text-sm text-text-0 font-sans",children:e.message}),e.detail&&l.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:e.detail})]}),l.jsx("button",{onClick:o=>{o.stopPropagation(),n(e.id)},className:"p-1.5 text-text-4 hover:text-text-1 hover:bg-surface-5 rounded transition-colors cursor-pointer flex-shrink-0 z-10",children:l.jsx(wt,{size:14})})]})}function xP(){const e=W(n=>n.toasts);return l.jsx("div",{className:"fixed bottom-4 right-4 z-[100] flex flex-col-reverse gap-2",children:l.jsx(LO,{mode:"popLayout",children:e.slice(-3).map(n=>l.jsx(pP,{toast:n},n.id))})})}const gP=[{id:"agents",icon:lv,label:"Agents"},{id:"editor",icon:os,label:"Editor"},{id:"dashboard",icon:Hb,label:"Dashboard"},{id:"marketplace",icon:iv,label:"Marketplace"},{id:"models",icon:dh,label:"Models"},{id:"teams",icon:Ti,label:"Teams"}],bP=[{id:"journalist",icon:ui,label:"Journalist",panel:!0},{id:"settings",icon:dv,label:"Settings",nav:!0}];function vP({activeView:e,detailPanel:n,onNavigate:s,onTogglePanel:r}){return l.jsxs("nav",{className:"w-12 flex-shrink-0 flex flex-col bg-surface-3 border-r border-border",children:[l.jsx("div",{className:"flex flex-col items-center gap-0.5 pt-2",children:gP.map(o=>l.jsx(zc,{content:o.label,side:"right",children:l.jsx("button",{onClick:()=>s(o.id),className:oe("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",e===o.id?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:l.jsx(o.icon,{size:20,strokeWidth:e===o.id?2:1.5})})},o.id))}),l.jsx("div",{className:"flex-1"}),l.jsx("div",{className:"flex flex-col items-center gap-0.5 pb-2",children:bP.map(o=>{const d=o.panel?(n==null?void 0:n.type)===o.id:e===o.id;return l.jsx(zc,{content:o.label,side:"right",children:l.jsx("button",{onClick:()=>o.panel?r(o.id):s(o.id),className:oe("w-10 h-10 flex items-center justify-center rounded-md transition-colors cursor-pointer",d?"text-text-0 bg-surface-5":"text-text-3 hover:text-text-1 hover:bg-surface-4"),children:l.jsx(o.icon,{size:20,strokeWidth:d?2:1.5})})},o.id)})})]})}const yP={agents:"Agents",editor:"Editor",dashboard:"Dashboard",marketplace:"Marketplace",teams:"Teams"};function SP({activeView:e,connected:n,daemonHost:s,editorActiveFile:r,onOpenCommandPalette:o,onSpawn:d}){const u=["Groove",yP[e]||e];return e==="editor"&&r&&u.push(r.split("/").pop()),l.jsxs("header",{className:"h-11 flex-shrink-0 flex items-center gap-3 px-4 bg-surface-3 border-b border-border",children:[l.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-7 w-7 rounded-full flex-shrink-0"}),s&&l.jsx("span",{className:"text-2xs font-mono font-semibold text-text-3 bg-surface-5 px-1.5 py-0.5 rounded flex-shrink-0",children:s}),l.jsx("div",{className:"flex-1 min-w-4"}),l.jsxs("button",{onClick:o,className:oe("flex items-center gap-2.5 h-8 px-4 rounded-full w-full max-w-md","bg-surface-1 border border-border-subtle","text-sm text-text-4 font-sans","hover:border-border hover:text-text-3 transition-colors cursor-pointer"),children:[l.jsx(_n,{size:14,className:"flex-shrink-0"}),l.jsx("span",{className:"flex-1 text-left",children:"Search commands..."}),l.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1.5 py-0.5 rounded-full text-text-4",children:"Cmd+K"})]}),l.jsx("div",{className:"flex-1 min-w-4"}),l.jsx("div",{className:"flex items-center gap-1 text-xs font-sans text-text-3 flex-shrink-0",children:u.map((f,h)=>l.jsxs("span",{className:"flex items-center gap-1",children:[h>0&&l.jsx(is,{size:11,className:"text-text-4"}),l.jsx("span",{className:oe(h===u.length-1?"text-text-2":"text-text-4"),children:f})]},h))}),n&&l.jsxs("button",{onClick:d,className:"ml-1 flex items-center gap-1 h-7 px-3.5 rounded-full bg-accent/15 text-accent text-xs font-semibold font-sans hover:bg-accent/25 transition-colors cursor-pointer select-none flex-shrink-0",children:[l.jsx(ss,{size:14}),"Spawn"]})]})}const QP={running:"var(--color-success)",starting:"var(--color-warning)",stopped:"var(--color-text-3)",crashed:"var(--color-danger)",completed:"var(--color-accent)",killed:"var(--color-text-3)",rotating:"var(--color-purple)"};function gh(e){return QP[e]||"var(--color-text-3)"}const jP={planner:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},backend:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},frontend:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},fullstack:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},testing:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},devops:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"},docs:{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"},security:{bg:"rgba(224, 108, 117, 0.12)",text:"#e06c75",border:"#e06c75"},database:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},cmo:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},cfo:{bg:"rgba(74, 225, 104, 0.12)",text:"#4ae168",border:"#4ae168"},ea:{bg:"rgba(97, 175, 239, 0.12)",text:"#61afef",border:"#61afef"},support:{bg:"rgba(51, 175, 188, 0.12)",text:"#33afbc",border:"#33afbc"},analyst:{bg:"rgba(198, 120, 221, 0.12)",text:"#c678dd",border:"#c678dd"},creative:{bg:"rgba(229, 192, 123, 0.12)",text:"#e5c07b",border:"#e5c07b"},slides:{bg:"rgba(209, 154, 102, 0.12)",text:"#d19a66",border:"#d19a66"}};function Ni(e){const n=(e||"").toLowerCase();return jP[n]||{bg:"rgba(139, 146, 158, 0.12)",text:"#8b929e",border:"#8b929e"}}function Xs({status:e,size:n="md",className:s}){const r=e==="running"||e==="starting",o=n==="sm"?"w-1.5 h-1.5":n==="lg"?"w-3 h-3":"w-2 h-2";return l.jsx("span",{className:oe("rounded-full inline-block flex-shrink-0",r&&"animate-pulse",o,s),style:{background:gh(e)}})}function et(e){return e==null||isNaN(e)?"0":e>=1e6?(e/1e6).toFixed(1).replace(/\.0$/,"")+"M":e>=1e3?(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":Math.round(e).toLocaleString()}function nr(e){return e==null||isNaN(e)?"$0":e>=1e3?"$"+(e/1e3).toFixed(1).replace(/\.0$/,"")+"k":e>=1||e>=.01?"$"+e.toFixed(2):"$"+e.toFixed(3)}function Ja(e){return e==null||isNaN(e)?"0%":Math.round(e)+"%"}function Pi(e){if(!e||e<0)return"0s";const n=Math.floor(e/86400),s=Math.floor(e%86400/3600),r=Math.floor(e%3600/60),o=Math.floor(e%60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${r}m`:r>0?`${r}m ${o}s`:`${o}s`}function kt(e){if(!e)return"";const n=(Date.now()-new Date(e).getTime())/1e3;return n<5?"just now":n<60?`${Math.floor(n)}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}function wP({connected:e,agentCount:n,runningCount:s,uptime:r,terminalVisible:o,onToggleTerminal:d}){return l.jsxs("footer",{className:"h-6 flex-shrink-0 flex items-center px-3 bg-surface-3 border-t border-border text-2xs font-sans select-none",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(Xs,{status:e?"running":"crashed",size:"sm"}),l.jsx("span",{className:e?"text-text-2":"text-danger",children:e?"Connected":"Offline"})]}),e&&r>0&&l.jsxs("span",{className:"text-text-4",children:["Up ",Pi(r)]}),e&&n>0&&l.jsxs("span",{className:"text-text-4",children:[s,"/",n," agents"]})]}),l.jsx("div",{className:"flex-1"}),l.jsxs("a",{href:"https://docs.groovedev.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 px-2 h-full text-text-3 hover:text-text-1 hover:bg-surface-5 transition-colors no-underline",children:[l.jsx(M$,{size:12}),l.jsx("span",{children:"Docs"})]}),l.jsxs("button",{onClick:d,className:oe("flex items-center gap-1.5 px-2 h-full transition-colors cursor-pointer",o?"text-accent bg-accent/8 hover:bg-accent/12":"text-text-3 hover:text-text-1 hover:bg-surface-5"),children:[l.jsx(ki,{size:12}),l.jsx("span",{children:"Terminal"}),l.jsx("kbd",{className:"font-mono text-text-4 ml-0.5",children:"Cmd+J"})]})]})}function kP({children:e,width:n,onWidthChange:s,onClose:r,className:o}){const d=v.useRef(!1),u=v.useRef(0),f=v.useRef(0),h=v.useCallback(p=>{p.preventDefault(),d.current=!0,u.current=p.clientX,f.current=n;function x(b){if(!d.current)return;const y=u.current-b.clientX,Q=Math.min(Math.max(f.current+y,380),window.innerWidth*.65);s(Q)}function g(){d.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",g)}document.addEventListener("mousemove",x),document.addEventListener("mouseup",g)},[n,s]);return l.jsxs("aside",{className:oe("flex-shrink-0 flex bg-surface-1 border-l border-border relative",o),style:{width:n},children:[l.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-1 cursor-col-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:h}),l.jsx("button",{onClick:r,className:"absolute top-3 right-3 z-10 p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:l.jsx(wt,{size:14})}),l.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden",children:e})]})}const $P=[{id:"nav:agents",label:"Go to Agents",icon:lv,category:"Navigation",action:e=>{e.setActiveView("agents")}},{id:"nav:editor",label:"Go to Editor",icon:os,category:"Navigation",action:e=>{e.setActiveView("editor")}},{id:"nav:dashboard",label:"Go to Dashboard",icon:Hb,category:"Navigation",action:e=>{e.setActiveView("dashboard")}},{id:"nav:marketplace",label:"Go to Marketplace",icon:iv,category:"Navigation",action:e=>{e.setActiveView("marketplace")}},{id:"nav:teams",label:"Go to Teams",icon:Ti,category:"Navigation",action:e=>{e.setActiveView("teams")}},{id:"action:spawn",label:"Spawn Agent",icon:ss,category:"Actions",action:e=>{e.openDetail({type:"spawn"})}},{id:"action:terminal",label:"Toggle Terminal",icon:ki,category:"Actions",action:e=>{e.setTerminalVisible(!e.terminalVisible)},shortcut:"Cmd+J"},{id:"action:journalist",label:"Toggle Journalist",icon:ui,category:"Actions",action:e=>{var n;((n=e.detailPanel)==null?void 0:n.type)==="journalist"?e.closeDetail():e.openDetail({type:"journalist"})}}];function TP(){const e=W(y=>y.commandPaletteOpen),n=W(y=>y.toggleCommandPalette),s=W(y=>y.agents),r=W,[o,d]=v.useState(""),[u,f]=v.useState(0),h=v.useRef(null),p=v.useMemo(()=>{const y=s.flatMap(Q=>[{id:`chat:${Q.id}`,label:`Chat with ${Q.name}`,icon:ji,category:"Agents",action:k=>{k.selectAgent(Q.id)}},...Q.status==="running"?[{id:`rotate:${Q.id}`,label:`Rotate ${Q.name}`,icon:wi,category:"Agents",action:k=>{k.rotateAgent(Q.id)}},{id:`kill:${Q.id}`,label:`Kill ${Q.name}`,icon:ph,category:"Agents",action:k=>{k.killAgent(Q.id)}}]:[]]);return[...$P,...y]},[s]),x=v.useMemo(()=>{if(!o.trim())return p.slice(0,12);const y=o.toLowerCase();return p.filter(Q=>Q.label.toLowerCase().includes(y)||Q.category.toLowerCase().includes(y)).slice(0,12)},[p,o]);v.useEffect(()=>{e&&(d(""),f(0),setTimeout(()=>{var y;return(y=h.current)==null?void 0:y.focus()},50))},[e]),v.useEffect(()=>{u>=x.length&&f(Math.max(0,x.length-1))},[x.length,u]);function g(y){y.action(r.getState()),n()}function b(y){y.key==="ArrowDown"?(y.preventDefault(),f(Q=>Math.min(Q+1,x.length-1))):y.key==="ArrowUp"?(y.preventDefault(),f(Q=>Math.max(Q-1,0))):y.key==="Enter"&&x[u]?(y.preventDefault(),g(x[u])):y.key==="Escape"&&n()}return e?l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:n}),l.jsx(LO,{children:l.jsxs(WO.div,{initial:{opacity:0,y:-20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.98},transition:{duration:.15},className:"fixed top-[15%] left-1/2 -translate-x-1/2 z-50 w-[480px] max-h-[400px] bg-surface-1 border border-border rounded-lg shadow-2xl overflow-hidden",onKeyDown:b,children:[l.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border-subtle",children:[l.jsx(_n,{size:16,className:"text-text-3 flex-shrink-0"}),l.jsx("input",{ref:h,value:o,onChange:y=>{d(y.target.value),f(0)},placeholder:"Type a command...",className:"flex-1 bg-transparent text-sm text-text-0 font-sans placeholder:text-text-4 focus:outline-none"})]}),l.jsxs("div",{className:"overflow-y-auto max-h-[320px] py-1",children:[x.length===0&&l.jsx("div",{className:"px-4 py-6 text-sm text-text-3 text-center font-sans",children:"No results"}),x.map((y,Q)=>l.jsxs("button",{onClick:()=>g(y),onMouseEnter:()=>f(Q),className:oe("w-full flex items-center gap-3 px-4 py-2 text-sm font-sans cursor-pointer",Q===u?"bg-surface-5 text-text-0":"text-text-1 hover:bg-surface-4"),children:[l.jsx(y.icon,{size:16,className:"text-text-3 flex-shrink-0"}),l.jsx("span",{className:"flex-1 text-left",children:y.label}),l.jsx("span",{className:"text-2xs text-text-4",children:y.category}),y.shortcut&&l.jsx("kbd",{className:"text-2xs font-mono bg-surface-4 px-1 py-0.5 rounded text-text-3 ml-1",children:y.shortcut})]},y.id))]})]})})]}):null}const x1=[],NP=/error|crash|fail/i,tc="rgba(51, 175, 188, 0.15)",nc="h-[2px]";function PP(e){if(!e||e==="auto")return"auto";const n=e.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)(?:-\d+)?$/);return n?`${n[1][0].toUpperCase()+n[1].slice(1)} ${n[2]}.${n[3]}`:e.startsWith("gemini-")?e.replace("gemini-","Gemini ").replace("-preview","").replace("-flash-lite"," Flash Lite").replace("-flash"," Flash").replace("-pro"," Pro"):e.startsWith("gpt-")?e.toUpperCase().replace("GPT-","GPT-"):e}function zP(e){if(!e||e.length<2)return null;const n=e.slice(-10),s=(n[n.length-1].t-n[0].t)/6e4;return s<=0?null:(n[n.length-1].v-n[0].v)/s}function CP(e){return e>=70?"var(--color-success)":e>=40?"var(--color-warning)":"var(--color-danger)"}function RP(e){return e>=60?"var(--color-success)":e>=30?"var(--color-warning)":"var(--color-danger)"}const _P={running:"LIVE",starting:"INIT",stopped:"IDLE",crashed:"ERR",completed:"DONE",killed:"KILL",rotating:"ROT"},hv=v.memo(({data:e,selected:n})=>{const{agent:s}=e,r=s.status==="running"||s.status==="starting",o=Math.round((s.contextUsage||0)*100),d=gh(s.status),u=s.tokensUsed||0,[f,h]=v.useState(!1),p=v.useRef(null);v.useEffect(()=>{var G;const _=(G=p.current)==null?void 0:G.closest(".react-flow__node");_&&(_.style.zIndex=f?"1000":"")},[f]);const x=W(_=>_.activityLog[s.id])||x1,g=W(_=>_.tokenTimeline[s.id])||x1,b=zP(g),y=v.useMemo(()=>x.filter(_=>NP.test(_.text)).length,[x]),Q=o>75?"var(--color-danger)":o>50?"var(--color-warning)":"var(--color-success)",k=s.qualityScore!=null?Math.round(s.qualityScore):null,w=k!=null?CP(k):null,j=s.efficiency!=null?s.efficiency:null,P=j!=null?RP(j):null,z=s.durationMs?s.durationMs/1e3:s.spawnedAt?(Date.now()-new Date(s.spawnedAt).getTime())/1e3:s.createdAt?(Date.now()-new Date(s.createdAt).getTime())/1e3:0;return l.jsx("div",{ref:p,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:l.jsxs("div",{className:"w-[220px] overflow-hidden transition-all duration-200 ease-out",style:{background:f?"#141720":"#1c1f26",border:`1px solid ${f?"#2e3640":n?"#2e323a":"#262a32"}`,borderRadius:4},children:[l.jsx(Ia,{id:"top",type:"target",position:Fa.Top,className:"!w-1 !h-1 !bg-transparent !border-0"}),l.jsx(Ia,{id:"bottom",type:"target",position:Fa.Bottom,className:"!w-1 !h-1 !bg-transparent !border-0"}),l.jsx(Ia,{id:"left",type:"target",position:Fa.Left,className:"!w-1 !h-1 !bg-transparent !border-0"}),l.jsx(Ia,{id:"right",type:"target",position:Fa.Right,className:"!w-1 !h-1 !bg-transparent !border-0"}),r&&l.jsx("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",style:{borderRadius:3},children:l.jsx("div",{className:"absolute left-0 right-0 h-px",style:{background:"linear-gradient(90deg, transparent 0%, rgba(97,175,239,0.25) 50%, transparent 100%)",animation:"node-scan 3s ease-in-out infinite"}})}),l.jsxs("div",{className:"px-3 pt-2.5 pb-1.5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[l.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:d}}),r&&l.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:d,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),l.jsx("span",{className:"text-[12px] font-semibold text-[#e6e6e6] font-sans truncate flex-1 leading-none",children:s.name}),l.jsx("span",{className:"text-[7px] font-mono font-bold uppercase tracking-wider px-1 py-px rounded-sm",style:{color:d,background:d+"12"},children:_P[s.status]||s.status})]}),l.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5",children:[l.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-[0.05em]",children:s.role}),l.jsx("span",{className:"text-[9px] text-[#2a2e36]",children:"/"}),l.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:PP(s.model)})]})]}),l.jsxs("div",{className:"px-3 pt-1 pb-2",children:[l.jsxs("div",{className:"flex items-baseline gap-1.5",children:[l.jsx("span",{className:"text-[14px] font-mono font-medium text-[#bcc2cd] leading-none",children:et(u)}),l.jsx("span",{className:"text-[8px] font-mono text-[#505862]",children:"tok"}),l.jsx("span",{className:"flex-1"}),l.jsxs("span",{className:"text-[9px] font-mono text-[#505862]",children:[o,"%"]})]}),l.jsx("div",{className:`mt-1.5 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:l.jsx("div",{className:"h-full rounded-sm transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:o>80?"var(--color-danger)":o>60?"var(--color-warning)":"var(--color-accent)"}})})]}),l.jsx("div",{className:"grid transition-[grid-template-rows] duration-200 ease-out",style:{gridTemplateRows:f?"1fr":"0fr"},children:l.jsxs("div",{className:"overflow-hidden",children:[l.jsx("div",{className:"mx-3 border-t border-white/[0.04]"}),l.jsxs("div",{className:"px-3 pt-1.5 pb-1",children:[l.jsxs("div",{className:"flex items-center justify-between mb-1",children:[l.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-wider",children:"Context"}),(s.rotations||0)>0&&l.jsxs("span",{className:"text-[8px] font-mono text-[#606878] bg-white/[0.04] rounded px-1 py-px",children:[s.rotations,"x rot"]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:`flex-1 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:l.jsx("div",{className:"h-full rounded-sm transition-all duration-500",style:{width:`${Math.max(o,1)}%`,background:Q}})}),l.jsxs("span",{className:"text-[9px] font-mono font-medium",style:{color:Q},children:[o,"%"]})]})]}),l.jsxs("div",{className:"px-3 pt-1 pb-1",children:[l.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-wider",children:"Quality"}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx("div",{className:`flex-1 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:l.jsx("div",{className:"h-full rounded-sm transition-all duration-500",style:{width:`${k!=null?Math.max(k,1):0}%`,background:w||"#505862"}})}),l.jsx("span",{className:"text-[9px] font-mono font-medium",style:{color:w||"#505862"},children:k??"—"})]})]}),l.jsxs("div",{className:"px-3 pt-1 pb-1",children:[l.jsx("span",{className:"text-[9px] font-mono text-[#505862] uppercase tracking-wider",children:"Efficiency"}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx("div",{className:`flex-1 ${nc} rounded-sm overflow-hidden`,style:{background:tc},children:l.jsx("div",{className:"h-full rounded-sm transition-all duration-500",style:{width:`${j!=null?Math.max(j,1):0}%`,background:P||"#505862"}})}),l.jsx("span",{className:"text-[9px] font-mono font-medium",style:{color:P||"#505862"},children:j!=null?`${j}%`:"—"})]})]}),l.jsx("div",{className:"px-3 pt-1 pb-1",children:l.jsxs("div",{className:"grid grid-cols-3 gap-1",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-[9px] font-mono font-medium text-[#bcc2cd]",children:nr(s.costUsd||0)}),l.jsx("div",{className:"text-[7px] font-mono text-[#505862]",children:"cost"})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[9px] font-mono font-medium text-[#bcc2cd]",children:b?et(Math.round(b)):"—"}),l.jsx("div",{className:"text-[7px] font-mono text-[#505862]",children:"tok/m"})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-[9px] font-mono font-medium text-[#bcc2cd]",children:s.turns||0}),l.jsx("div",{className:"text-[7px] font-mono text-[#505862]",children:"turns"})]})]})}),l.jsx("div",{className:"px-3 pt-1 pb-2",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"text-[9px] font-mono text-[#8b929e]",children:Pi(Math.max(0,Math.floor(z)))}),l.jsx("span",{className:"text-[7px] font-mono text-[#505862]",children:"up"})]}),l.jsxs("div",{className:"flex items-center gap-1",children:[y>0?l.jsx("span",{className:"text-[9px] font-mono text-[var(--color-danger)]",children:y}):l.jsx("span",{className:"text-[9px] font-mono text-[#505862]",children:"0"}),l.jsx("span",{className:"text-[7px] font-mono text-[#505862]",children:"err"})]})]})})]})})]})})});hv.displayName="AgentNode";const mv=v.memo(({data:e})=>{const{agentCount:n,runningCount:s}=e,r=s>0,o={background:"transparent",border:0,width:2,height:2};return l.jsxs("div",{className:"relative flex items-center justify-center",style:{width:84,height:84},children:[l.jsx("div",{className:oe("absolute inset-0 rounded-full transition-all duration-500",r&&"animate-[spin-slow_30s_linear_infinite]"),style:{border:`1px dashed ${r?"rgba(97,175,239,0.5)":"rgba(97,175,239,0.25)"}`}}),l.jsx("div",{className:"absolute inset-[10px] rounded-full",style:{background:r?"radial-gradient(circle, rgba(97,175,239,0.15) 0%, transparent 70%)":"radial-gradient(circle, rgba(97,175,239,0.05) 0%, transparent 70%)",animation:r?"node-pulse-bar 2.5s ease-in-out infinite":"none"}}),l.jsx("div",{className:oe("w-14 h-14 rounded-full flex items-center justify-center relative z-10 transition-all duration-300",r?"bg-[#1c1f26] border-2 border-[#61afef]/35 shadow-[0_0_28px_rgba(97,175,239,0.15)]":"bg-[#1c1f26] border border-[#61afef]/20"),children:l.jsx("img",{src:"/favicon.png",alt:"G",className:oe("h-7 w-7 rounded-full transition-opacity",r?"opacity-90":"opacity-60")})}),n>0&&l.jsx("div",{className:oe("absolute z-20 min-w-[20px] h-[20px] rounded-sm flex items-center justify-center","text-[10px] font-mono font-bold px-1 transition-all duration-300",r?"bg-[#1c1f26] text-[#61afef] border border-[#61afef]/40":"bg-[#1c1f26] text-[#61afef]/60 border border-[#61afef]/20"),style:{bottom:2,right:2},children:n}),l.jsx(Ia,{id:"bottom",type:"source",position:Fa.Bottom,style:o}),l.jsx(Ia,{id:"right",type:"source",position:Fa.Right,style:o}),l.jsx(Ia,{id:"left",type:"source",position:Fa.Left,style:o}),l.jsx(Ia,{id:"top",type:"source",position:Fa.Top,style:o})]})});mv.displayName="RootNode";const XP={primary:"bg-accent/20 text-accent border border-accent/25 hover:bg-accent/30 font-medium",secondary:"bg-surface-5/40 text-text-1 border border-border-subtle hover:bg-surface-5/70 hover:text-text-0",ghost:"bg-transparent text-text-2 border border-transparent hover:bg-surface-5/50 hover:text-text-0",danger:"bg-danger/12 text-danger border border-danger/15 hover:bg-danger/20",info:"bg-info/12 text-info border border-info/15 hover:bg-info/20",outline:"bg-transparent text-accent border border-accent/30 hover:bg-accent/10"},AP={sm:"h-7 px-2.5 text-xs gap-1.5 rounded",md:"h-8 px-3 text-sm gap-2 rounded",lg:"h-9 px-4 text-sm gap-2 rounded",icon:"h-8 w-8 rounded"},be=v.forwardRef(({className:e,variant:n="secondary",size:s="md",children:r,...o},d)=>l.jsx("button",{ref:d,className:oe("inline-flex items-center justify-center font-sans transition-colors duration-100","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent","disabled:opacity-40 disabled:pointer-events-none","cursor-pointer select-none",XP[n],AP[s],e),...o,children:r}));be.displayName="Button";const ZP={default:"bg-surface-4 text-text-2",accent:"bg-accent/12 text-accent",success:"bg-success/12 text-success",warning:"bg-warning/12 text-warning",danger:"bg-danger/12 text-danger",info:"bg-info/12 text-info",purple:"bg-purple/12 text-purple",orange:"bg-orange/12 text-orange"};function Pe({children:e,variant:n="default",className:s,dot:r,...o}){return l.jsxs("span",{className:oe("inline-flex items-center gap-1 px-1.5 py-0.5","text-2xs font-semibold uppercase tracking-wider rounded","font-sans select-none whitespace-nowrap",ZP[n],s),...o,children:[r&&l.jsx("span",{className:oe("w-1.5 h-1.5 rounded-full",r==="pulse"&&"animate-pulse"),style:{background:"currentColor"}}),e]})}const EP={agentNode:hv,rootNode:mv},qf=220,Mf=82,ac=260,sc=130,Da=4,xn="__groove_root__";function Yf(){try{return JSON.parse(localStorage.getItem("groove:nodePositions")||"{}")}catch{return{}}}function qP(e){try{localStorage.setItem("groove:nodePositions",JSON.stringify(e))}catch{}}function pv(){try{return JSON.parse(localStorage.getItem("groove:teamViewports")||"{}")}catch{return{}}}function MP(e,n){try{const s=pv();s[e]=n,localStorage.setItem("groove:teamViewports",JSON.stringify(s))}catch{}}function YP(e,n){const s=e.filter(u=>u.teamId===n);return s.length===0?"idle":s.some(u=>u.status==="running"||u.status==="starting")?"working":s.every(u=>u.status==="completed")?"completed":s.some(u=>u.status==="crashed")?"crashed":"idle"}function UP(){const e=W(T=>T.teams),n=W(T=>T.activeTeamId),s=W(T=>T.agents),r=W(T=>T.switchTeam),o=W(T=>T.createTeam),d=W(T=>T.deleteTeam),u=W(T=>T.renameTeam),f=W(T=>T.reorderTeams),[h,p]=v.useState(!1),[x,g]=v.useState(""),[b,y]=v.useState(null),[Q,k]=v.useState(""),w=v.useRef(!1),[j,P]=v.useState(null),[z,_]=v.useState(null);function G(){const T=x.trim();!T||w.current||(w.current=!0,g(""),p(!1),o(T).finally(()=>{w.current=!1}))}function Z(T){y(T.id),k(T.name)}function C(){const T=Q.trim();if(!T||!b){y(null);return}u(b,T),y(null)}return l.jsxs("div",{className:"flex items-end px-0 pt-0 pb-0 bg-surface-1 border-b border-border gap-0 flex-shrink-0",children:[e.map(T=>{const H=s.filter(D=>D.teamId===T.id).length,E=T.id===n,ee=b===T.id,I=s.filter(D=>D.teamId===T.id&&(D.status==="running"||D.status==="starting")).length;return l.jsxs("div",{draggable:!ee,onDragStart:D=>{P(T.id),D.dataTransfer.effectAllowed="move",D.dataTransfer.setData("text/plain","")},onDragEnd:()=>{P(null),_(null)},onDragOver:D=>{D.preventDefault(),D.dataTransfer.dropEffect="move",j&&j!==T.id&&_(T.id)},onDragLeave:()=>{z===T.id&&_(null)},onDrop:D=>{if(D.preventDefault(),!j||j===T.id)return;const ie=e.findIndex(N=>N.id===j),V=e.findIndex(N=>N.id===T.id);ie!==-1&&V!==-1&&f(ie,V),P(null),_(null)},onClick:()=>!ee&&r(T.id),onDoubleClick:()=>Z(T),className:oe("group relative flex items-center gap-2 px-4 h-9 text-xs font-sans cursor-pointer select-none transition-colors",E?"text-text-0 font-semibold border-x border-x-border bg-[#242830]":"text-text-3 hover:text-text-1 hover:bg-surface-3/50",j===T.id&&"opacity-40",z===T.id&&j!==T.id&&"border-l-2 !border-l-accent"),children:[E&&l.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-accent",style:{height:"0.5px"}}),(()=>{const D=YP(s,T.id),ie=D==="working"||D==="completed"?"text-green-400":D==="crashed"?"text-red-400":E?"text-accent":"text-text-4";return l.jsxs("span",{className:"relative flex-shrink-0",children:[l.jsx(Ti,{size:13,className:oe(ie,D==="working"&&"animate-pulse")}),D==="working"&&l.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse"})]})})(),ee?l.jsx("input",{value:Q,onChange:D=>k(D.target.value),onKeyDown:D=>{D.key==="Enter"&&C(),D.key==="Escape"&&y(null)},onBlur:C,className:"h-5 w-24 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none",autoFocus:!0,onClick:D=>D.stopPropagation()}):l.jsx("span",{className:"truncate max-w-[120px]",children:T.name}),H>0&&!ee&&l.jsx("span",{className:oe("flex items-center justify-center min-w-[18px] h-[18px] px-1 rounded-full text-2xs font-mono font-semibold",I>0?"bg-accent/15 text-accent":"bg-surface-4 text-text-3"),children:H}),!ee&&l.jsxs("div",{className:"flex items-center gap-0.5 ml-0.5 opacity-0 group-hover:opacity-100 transition-opacity",children:[l.jsx("button",{onClick:D=>{D.stopPropagation(),Z(T)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",title:"Rename team",children:l.jsx(sd,{size:10})}),!T.isDefault&&l.jsx("button",{onClick:D=>{D.stopPropagation(),d(T.id)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-danger cursor-pointer",title:"Delete team",children:l.jsx(wt,{size:10})})]}),E&&l.jsx("div",{className:"absolute bottom-[-1px] left-0 right-0 h-px bg-[#242830]"})]},T.id)}),h?l.jsxs("div",{className:"flex items-center gap-1.5 px-3 h-9 bg-surface-3/50",children:[l.jsx("input",{value:x,onChange:T=>g(T.target.value),onKeyDown:T=>{T.key==="Enter"&&G(),T.key==="Escape"&&(p(!1),g(""))},placeholder:"Team name...",className:"h-5 w-28 px-1.5 text-xs bg-surface-0 border border-border-subtle rounded text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:G,disabled:!x.trim(),className:"p-1 rounded text-accent hover:bg-accent/10 cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:l.jsx(jt,{size:12})}),l.jsx("button",{onClick:()=>{p(!1),g("")},className:"p-1 rounded text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(wt,{size:12})})]}):l.jsx("button",{onClick:()=>p(!0),className:"flex items-center justify-center w-9 h-9 text-text-4 hover:text-text-1 hover:bg-surface-3/50 cursor-pointer transition-colors",title:"New team",children:l.jsx(ss,{size:14})})]})}function VP(){const e=W(ee=>ee.agents),n=W(ee=>ee.activeTeamId),s=W(ee=>ee.tokenTimeline),r=W(ee=>ee.selectAgent),o=W(ee=>ee.closeDetail),d=v.useMemo(()=>e.filter(ee=>ee.teamId===n),[e,n]),{fitView:u,setViewport:f}=qj(),[h,p]=v.useState(0),x=v.useRef(n),g=v.useMemo(()=>{const ee=Yf(),I=d.filter(K=>K.status==="running").length,D=[{id:xn,type:"rootNode",position:ee[xn]||{x:0,y:0},data:{agentCount:d.length,runningCount:I},draggable:!0,selectable:!1}],ie=new Set,V=(K,de)=>`${Math.round(K/100)},${Math.round(de/100)}`,N=ee[xn]||{x:0,y:0};ie.add(V(N.x,N.y));const M=[];d.forEach((K,de)=>{const ae=K.name||K.id;if(ee[ae]){const Qe=ee[ae];ie.add(V(Qe.x,Qe.y)),D.push({id:K.id,type:"agentNode",position:Qe,data:{agent:K,timeline:s[K.id]||[]},draggable:!0,selectable:!0})}else M.push({agent:K,index:de})});for(const{agent:K,index:de}of M){const ae=Math.floor(de/Da),Qe=de%Da;let ye={x:-((Math.min(d.length-ae*Da,Da)-1)*ac)/2+Qe*ac,y:sc+ae*sc};for(;ie.has(V(ye.x,ye.y));)ye={x:ye.x,y:ye.y+sc};ie.add(V(ye.x,ye.y)),D.push({id:K.id,type:"agentNode",position:ye,data:{agent:K,timeline:s[K.id]||[]},draggable:!0,selectable:!0})}return D},[d,s]),b=v.useMemo(()=>{const ee=Yf(),I=ee[xn]||{x:0,y:0};return d.map((D,ie)=>{const V=D.name||D.id,N=Math.floor(ie/Da),M=ie%Da,de=-((Math.min(d.length-N*Da,Da)-1)*ac)/2,ae=ee[V]||{x:de+M*ac,y:140+N*sc},Qe=ae.x+qf/2-I.x,ve=ae.y+Mf/2-I.y;let ue,ye;return Math.abs(ve)>Math.abs(Qe)?(ue=ve>0?"bottom":"top",ye=ve>0?"top":"bottom"):(ue=Qe>0?"right":"left",ye=Qe>0?"left":"right"),{id:`e-${xn}-${D.id}`,source:xn,target:D.id,sourceHandle:ue,targetHandle:ye,type:"default",animated:D.status==="running"}})},[d]),[y,Q,k]=Mj(g),[w,j,P]=Yj(b),z=v.useRef(new Set);v.useEffect(()=>{Q(ee=>{const I=new Map(ee.map(D=>[D.id,D]));return new Set(g.map(D=>D.id)),g.map(D=>{const ie=I.get(D.id);return ie?{...ie,data:D.data}:D})})},[g,Q]),v.useEffect(()=>{j(()=>{const ee=y.find(D=>D.id===xn);if(!ee)return b;const I=ee.position;return b.map(D=>{const ie=y.find(de=>de.id===D.target);if(!ie)return D;const V=ie.position.x+qf/2-I.x,N=ie.position.y+Mf/2-I.y;let M,K;return Math.abs(N)>Math.abs(V)?(M=N>0?"bottom":"top",K=N>0?"top":"bottom"):(M=V>0?"right":"left",K=V>0?"left":"right"),{...D,sourceHandle:M,targetHandle:K}})})},[b,y,j]);const _=d.map(ee=>ee.id).join(","),G=v.useRef(null);v.useEffect(()=>{if(x.current!==n){x.current=n,z.current=new Set(d.map(ie=>ie.id)),p(d.length);const D=pv()[n];D?f(D,{duration:200}):d.length>0&&u({padding:.3,maxZoom:1.2,duration:200});return}const ee=new Set(d.map(D=>D.id)),I=d.length>0&&[...ee].some(D=>!z.current.has(D));z.current=ee,h===0&&d.length>0?u({padding:.3,maxZoom:1.2,duration:0}):I&&(clearTimeout(G.current),G.current=setTimeout(()=>u({padding:.3,maxZoom:1.2,duration:300}),500)),p(d.length)},[_,h,u,n,f]);const Z=v.useCallback((ee,I)=>{MP(n,I)},[n]),C=v.useCallback((ee,I)=>{I.id!==xn&&r(I.id)},[r]),T=v.useCallback(()=>{o()},[o]),H=v.useCallback((ee,I)=>{const D=y.find(V=>V.id===xn);if(!D)return;const ie=D.position;j(V=>V.map(N=>{const M=N.source===I.id,K=N.target===I.id;if(!M&&!K)return N;const de=I.position,ae=de.x+qf/2-ie.x,Qe=de.y+Mf/2-ie.y;let ve,ue;return Math.abs(Qe)>Math.abs(ae)?(ve=Qe>0?"bottom":"top",ue=Qe>0?"top":"bottom"):(ve=ae>0?"right":"left",ue=ae>0?"left":"right"),{...N,sourceHandle:ve,targetHandle:ue}}))},[y,j]),E=v.useCallback((ee,I)=>{const D=d.find(N=>N.id===I.id),ie=I.id===xn?xn:(D==null?void 0:D.name)||I.id,V=Yf();V[ie]=I.position,qP(V)},[d]);return l.jsx(Uj,{nodes:y,edges:w,nodeTypes:EP,onNodesChange:k,onEdgesChange:P,onNodeClick:C,onPaneClick:T,onNodeDrag:H,onNodeDragStop:E,onMoveEnd:Z,defaultViewport:{x:0,y:0,zoom:1.2},proOptions:{hideAttribution:!0},minZoom:.2,maxZoom:1.5,className:"bg-surface-2",children:l.jsx(Vj,{color:"rgba(97,175,239,0.03)",gap:24,size:1})})}function GP({onPlanner:e,onSpawn:n}){return l.jsx("div",{className:"w-full h-full flex items-center justify-center",children:l.jsxs("div",{className:"max-w-2xl w-full text-center space-y-10 px-8",children:[l.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[l.jsx("div",{className:"absolute inset-0 rounded-full bg-accent/8 animate-pulse"}),l.jsx("div",{className:"absolute inset-1 rounded-full bg-surface-3 border border-border-subtle flex items-center justify-center shadow-lg shadow-accent/5",children:l.jsx("img",{src:"/favicon.png",alt:"Groove",className:"h-10 w-10 rounded-full"})})]}),l.jsxs("div",{className:"space-y-3",children:[l.jsx("h1",{className:"text-3xl font-bold text-text-0 font-sans tracking-tight",children:"Welcome to Groove"}),l.jsx("p",{className:"text-base text-text-2 font-sans max-w-md mx-auto leading-relaxed",children:"Your mission control for AI agents. Spawn, orchestrate, and ship faster than ever."})]}),l.jsxs("div",{className:"space-y-3 max-w-xl mx-auto",children:[l.jsxs("button",{onClick:e,className:"w-full flex items-center gap-4 p-5 rounded-lg border border-accent/25 bg-gradient-to-r from-accent/8 to-accent/3 hover:from-accent/14 hover:to-accent/6 hover:border-accent/40 transition-all cursor-pointer group text-left",children:[l.jsx("div",{className:"w-12 h-12 rounded-lg bg-accent/20 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:l.jsx(An,{size:24,className:"text-accent"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-base font-semibold text-text-0 font-sans",children:"Start with a Planner"}),l.jsx("div",{className:"text-sm text-text-2 font-sans mt-0.5",children:"Describe what you want to build and let AI plan the perfect team"})]}),l.jsx("div",{className:"text-accent text-xs font-semibold font-sans flex-shrink-0 opacity-60 group-hover:opacity-100 transition-opacity",children:"Recommended"})]}),l.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 p-4 rounded-lg border border-border bg-surface-1 hover:bg-surface-2 hover:border-border transition-all cursor-pointer group text-left",children:[l.jsx("div",{className:"w-10 h-10 rounded-lg bg-surface-4 flex items-center justify-center group-hover:scale-110 transition-transform flex-shrink-0",children:l.jsx(ss,{size:20,className:"text-text-1"})}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("div",{className:"text-sm font-semibold text-text-0 font-sans",children:"Spawn Agent"}),l.jsx("div",{className:"text-xs text-text-3 font-sans mt-0.5",children:"Choose a role and configure"})]})]})]}),l.jsxs("p",{className:"text-xs text-text-4 font-sans",children:[l.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+K"}),l.jsx("span",{className:"mx-1.5",children:"command palette"}),l.jsx("span",{className:"text-text-4 mx-1",children:"·"}),l.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+N"}),l.jsx("span",{className:"mx-1.5",children:"spawn"}),l.jsx("span",{className:"text-text-4 mx-1",children:"·"}),l.jsx("kbd",{className:"font-mono bg-surface-4 px-1.5 py-0.5 rounded text-text-3",children:"Cmd+J"}),l.jsx("span",{className:"mx-1.5",children:"terminal"})]})]})})}const DP={backend:cv,frontend:Oh,fullstack:os,testing:xh,security:_s},LP=/^[a-zA-Z0-9_-]{1,64}$/;function WP(e){return e.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,64)}function BP(){var y;const e=W(Q=>Q.recommendedTeam),n=W(Q=>Q.launchRecommendedTeam),[s,r]=v.useState(!1),[o,d]=v.useState(null);if(!((y=e==null?void 0:e.agents)!=null&&y.length))return null;const u=e.agents,f=u.filter(Q=>!Q.phase||Q.phase===1),h=u.filter(Q=>Q.phase===2),p=o??f.map(Q=>({...Q,name:Q.name||""}));function x(Q,k){const w=p.map((j,P)=>P===Q?{...j,name:WP(k)}:j);d(w)}async function g(){r(!0);try{const Q=[...p,...h];await n(Q)}catch{}r(!1)}function b(){W.setState({recommendedTeam:null})}return l.jsx("div",{className:"absolute bottom-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-lg",children:l.jsxs("div",{className:"mx-4 rounded-lg border border-accent/30 bg-surface-2/95 backdrop-blur-md shadow-xl shadow-accent/5 overflow-hidden",children:[l.jsxs("div",{className:"px-4 py-3 border-b border-border-subtle flex items-center gap-2",children:[l.jsx(ov,{size:16,className:"text-accent"}),l.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Planner Recommends a Team"}),l.jsx("button",{onClick:b,className:"text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(wt,{size:14})})]}),l.jsxs("div",{className:"px-4 py-3 space-y-1.5",children:[p.map((Q,k)=>{var P;const w=DP[Q.role]||os,j=!Q.name||LP.test(Q.name);return l.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1.5 rounded-md bg-surface-4 border border-border-subtle",children:[l.jsx(w,{size:12,className:"text-text-2 shrink-0"}),l.jsx("input",{type:"text",value:Q.name,onChange:z=>x(k,z.target.value),placeholder:Q.role,className:oe("flex-1 min-w-0 bg-transparent text-xs font-mono text-text-0 outline-none placeholder:text-text-4",!j&&"text-red-400"),maxLength:64,spellCheck:!1}),((P=Q.scope)==null?void 0:P.length)>0&&l.jsxs("span",{className:"text-2xs text-text-4 font-mono shrink-0 truncate max-w-[120px]",children:[Q.scope[0],Q.scope.length>1?` +${Q.scope.length-1}`:""]})]},k)}),e.projectDir&&l.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-2 font-mono pt-0.5",children:[l.jsx("span",{className:"text-text-4",children:"Project:"}),l.jsxs("span",{className:"text-accent",children:[e.projectDir,"/"]})]}),h.length>0&&l.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans",children:[l.jsx(_s,{size:10}),l.jsxs("span",{children:[h.length," QC agent",h.length>1?"s":""," will auto-spawn after builders complete"]})]})]}),l.jsx("div",{className:"px-4 py-3 border-t border-border-subtle",children:l.jsxs(be,{variant:"primary",size:"md",onClick:g,disabled:s,className:"w-full gap-2",children:[l.jsx(An,{size:14}),s?"Launching...":`Launch ${f.length} Agent${f.length>1?"s":""}`]})})]})})}function g1(){const e=W(b=>b.agents),n=W(b=>b.activeTeamId),s=W(b=>b.openDetail),r=W(b=>b.spawnAgent),o=W(b=>b.selectAgent);W(b=>b.recommendedTeam);const d=W(b=>b.checkRecommendedTeam);v.useEffect(()=>{if(!e.some(Q=>Q.role==="planner"&&(Q.status==="running"||Q.status==="starting")))return;const y=setInterval(()=>d(),5e3);return()=>clearInterval(y)},[e,d]);async function u(){try{const b=await r({role:"planner"});b!=null&&b.id&&o(b.id)}catch{}}const f=e.filter(b=>b.teamId===n),h=W(b=>b.hydrated),[p,x]=v.useState(!0);v.useEffect(()=>{const b=setTimeout(()=>x(!1),1200);return()=>clearTimeout(b)},[]);const g=p||!h;return l.jsxs("div",{className:"flex flex-col h-full relative",children:[l.jsx("div",{className:"flex-1 min-h-0",children:g?l.jsxs("div",{className:oe("flex flex-col items-center justify-center h-full transition-opacity duration-500",!p&&h?"opacity-0":"opacity-100"),children:[l.jsxs("div",{className:"relative w-12 h-12 mb-5",children:[l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),l.jsx("span",{className:"absolute inset-[6px] rounded-full bg-accent/8 flex items-center justify-center",children:l.jsx(An,{size:16,className:"text-accent animate-pulse"})})]}),l.jsx("p",{className:"text-sm font-medium text-text-1 font-sans animate-pulse",children:"Connecting to agents"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Syncing with daemon..."})]}):f.length===0?l.jsx(GP,{onPlanner:u,onSpawn:()=>s({type:"spawn"})}):l.jsx(Ej,{children:l.jsx(VP,{})})}),l.jsx(BP,{})]})}function HP({children:e,detailContent:n,terminalContent:s}){const r=W(Z=>Z.activeView),o=W(Z=>Z.detailPanel),d=W(Z=>Z.connected),u=W(Z=>Z.tunneled),f=W(Z=>Z.daemonHost),h=W(Z=>Z.agents),p=W(Z=>Z.editorActiveFile),x=W(Z=>Z.detailPanelWidth),g=W(Z=>Z.terminalVisible),b=W(Z=>Z.terminalFullHeight),y=W(Z=>Z.setActiveView),Q=W(Z=>Z.openDetail),k=W(Z=>Z.closeDetail),w=W(Z=>Z.setDetailPanelWidth),j=W(Z=>Z.setTerminalVisible),P=W(Z=>Z.toggleCommandPalette),z=v.useMemo(()=>h.filter(Z=>Z.status==="running").length,[h]),_=v.useMemo(()=>[{key:"k",meta:!0,handler:()=>W.getState().toggleCommandPalette()},{key:"p",meta:!0,shift:!0,handler:()=>W.getState().toggleCommandPalette()},{key:"j",meta:!0,handler:()=>{const Z=W.getState();Z.setTerminalVisible(!Z.terminalVisible)}},{key:"n",meta:!0,handler:()=>W.getState().openDetail({type:"spawn"})},{key:"1",meta:!0,handler:()=>W.getState().setActiveView("agents")},{key:"2",meta:!0,handler:()=>W.getState().setActiveView("editor")},{key:"3",meta:!0,handler:()=>W.getState().setActiveView("dashboard")},{key:"4",meta:!0,handler:()=>W.getState().setActiveView("marketplace")},{key:"5",meta:!0,handler:()=>W.getState().setActiveView("teams")},{key:"Escape",handler:()=>{const Z=W.getState();Z.commandPaletteOpen?Z.toggleCommandPalette():Z.detailPanel&&Z.closeDetail()}}],[]);ww(_);const G=o&&o.type!=="spawn";return l.jsx(N$,{children:l.jsxs("div",{className:"w-full h-full flex flex-col bg-surface-2 text-text-1 font-sans",children:[l.jsx(SP,{activeView:r,connected:d,tunneled:u,daemonHost:f,editorActiveFile:p,onOpenCommandPalette:P,onSpawn:()=>Q({type:"spawn"})}),l.jsxs("div",{className:"flex-1 flex min-h-0",children:[l.jsx(vP,{activeView:r,detailPanel:o,onNavigate:y,onTogglePanel:Z=>{(o==null?void 0:o.type)===Z?k():Q({type:Z})}}),l.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[r==="agents"&&l.jsx(UP,{}),l.jsxs("div",{className:"flex-1 flex min-h-0",children:[l.jsxs("div",{className:"flex-1 flex flex-col min-w-0 min-h-0",children:[!(g&&b)&&l.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:e}),s]}),G&&l.jsx(kP,{width:x,onWidthChange:w,onClose:k,children:n})]})]})]}),l.jsx(wP,{connected:d,agentCount:h.length,runningCount:z,terminalVisible:g,onToggleTerminal:()=>j(!g)}),l.jsx(TP,{}),l.jsx(xP,{})]})})}var IP=v.createContext(void 0);function bh(e){const n=v.useContext(IP);return e||n||"ltr"}function FP(e,[n,s]){return Math.min(s,Math.max(n,e))}function KP(e,n){return v.useReducer((s,r)=>n[s][r]??s,e)}var vh="ScrollArea",[xv]=Ms(vh),[JP,fn]=xv(vh),gv=v.forwardRef((e,n)=>{const{__scopeScrollArea:s,type:r="hover",dir:o,scrollHideDelay:d=600,...u}=e,[f,h]=v.useState(null),[p,x]=v.useState(null),[g,b]=v.useState(null),[y,Q]=v.useState(null),[k,w]=v.useState(null),[j,P]=v.useState(0),[z,_]=v.useState(0),[G,Z]=v.useState(!1),[C,T]=v.useState(!1),H=dt(n,ee=>h(ee)),E=bh(o);return l.jsx(JP,{scope:s,type:r,dir:E,scrollHideDelay:d,scrollArea:f,viewport:p,onViewportChange:x,content:g,onContentChange:b,scrollbarX:y,onScrollbarXChange:Q,scrollbarXEnabled:G,onScrollbarXEnabledChange:Z,scrollbarY:k,onScrollbarYChange:w,scrollbarYEnabled:C,onScrollbarYEnabledChange:T,onCornerWidthChange:P,onCornerHeightChange:_,children:l.jsx(Fe.div,{dir:E,...u,ref:H,style:{position:"relative","--radix-scroll-area-corner-width":j+"px","--radix-scroll-area-corner-height":z+"px",...e.style}})})});gv.displayName=vh;var bv="ScrollAreaViewport",vv=v.forwardRef((e,n)=>{const{__scopeScrollArea:s,children:r,nonce:o,...d}=e,u=fn(bv,s),f=v.useRef(null),h=dt(n,f,u.onViewportChange);return l.jsxs(l.Fragment,{children:[l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),l.jsx(Fe.div,{"data-radix-scroll-area-viewport":"",...d,ref:h,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:l.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});vv.displayName=bv;var Zn="ScrollAreaScrollbar",yv=v.forwardRef((e,n)=>{const{forceMount:s,...r}=e,o=fn(Zn,e.__scopeScrollArea),{onScrollbarXEnabledChange:d,onScrollbarYEnabledChange:u}=o,f=e.orientation==="horizontal";return v.useEffect(()=>(f?d(!0):u(!0),()=>{f?d(!1):u(!1)}),[f,d,u]),o.type==="hover"?l.jsx(e3,{...r,ref:n,forceMount:s}):o.type==="scroll"?l.jsx(t3,{...r,ref:n,forceMount:s}):o.type==="auto"?l.jsx(Sv,{...r,ref:n,forceMount:s}):o.type==="always"?l.jsx(yh,{...r,ref:n}):null});yv.displayName=Zn;var e3=v.forwardRef((e,n)=>{const{forceMount:s,...r}=e,o=fn(Zn,e.__scopeScrollArea),[d,u]=v.useState(!1);return v.useEffect(()=>{const f=o.scrollArea;let h=0;if(f){const p=()=>{window.clearTimeout(h),u(!0)},x=()=>{h=window.setTimeout(()=>u(!1),o.scrollHideDelay)};return f.addEventListener("pointerenter",p),f.addEventListener("pointerleave",x),()=>{window.clearTimeout(h),f.removeEventListener("pointerenter",p),f.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),l.jsx(Sn,{present:s||d,children:l.jsx(Sv,{"data-state":d?"visible":"hidden",...r,ref:n})})}),t3=v.forwardRef((e,n)=>{const{forceMount:s,...r}=e,o=fn(Zn,e.__scopeScrollArea),d=e.orientation==="horizontal",u=rd(()=>h("SCROLL_END"),100),[f,h]=KP("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(f==="idle"){const p=window.setTimeout(()=>h("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(p)}},[f,o.scrollHideDelay,h]),v.useEffect(()=>{const p=o.viewport,x=d?"scrollLeft":"scrollTop";if(p){let g=p[x];const b=()=>{const y=p[x];g!==y&&(h("SCROLL"),u()),g=y};return p.addEventListener("scroll",b),()=>p.removeEventListener("scroll",b)}},[o.viewport,d,h,u]),l.jsx(Sn,{present:s||f!=="hidden",children:l.jsx(yh,{"data-state":f==="hidden"?"hidden":"visible",...r,ref:n,onPointerEnter:Ue(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:Ue(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),Sv=v.forwardRef((e,n)=>{const s=fn(Zn,e.__scopeScrollArea),{forceMount:r,...o}=e,[d,u]=v.useState(!1),f=e.orientation==="horizontal",h=rd(()=>{if(s.viewport){const p=s.viewport.offsetWidth<s.viewport.scrollWidth,x=s.viewport.offsetHeight<s.viewport.scrollHeight;u(f?p:x)}},10);return Hl(s.viewport,h),Hl(s.content,h),l.jsx(Sn,{present:r||d,children:l.jsx(yh,{"data-state":d?"visible":"hidden",...o,ref:n})})}),yh=v.forwardRef((e,n)=>{const{orientation:s="vertical",...r}=e,o=fn(Zn,e.__scopeScrollArea),d=v.useRef(null),u=v.useRef(0),[f,h]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=$v(f.viewport,f.content),x={...r,sizes:f,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:b=>d.current=b,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:b=>u.current=b};function g(b,y){return i3(b,u.current,f,y)}return s==="horizontal"?l.jsx(n3,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&d.current){const b=o.viewport.scrollLeft,y=b1(b,f,o.dir);d.current.style.transform=`translate3d(${y}px, 0, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollLeft=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollLeft=g(b,o.dir))}}):s==="vertical"?l.jsx(a3,{...x,ref:n,onThumbPositionChange:()=>{if(o.viewport&&d.current){const b=o.viewport.scrollTop,y=b1(b,f);d.current.style.transform=`translate3d(0, ${y}px, 0)`}},onWheelScroll:b=>{o.viewport&&(o.viewport.scrollTop=b)},onDragScroll:b=>{o.viewport&&(o.viewport.scrollTop=g(b))}}):null}),n3=v.forwardRef((e,n)=>{const{sizes:s,onSizesChange:r,...o}=e,d=fn(Zn,e.__scopeScrollArea),[u,f]=v.useState(),h=v.useRef(null),p=dt(n,h,d.onScrollbarXChange);return v.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),l.jsx(jv,{"data-orientation":"horizontal",...o,ref:p,sizes:s,style:{bottom:0,left:d.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:d.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ld(s)+"px",...e.style},onThumbPointerDown:x=>e.onThumbPointerDown(x.x),onDragScroll:x=>e.onDragScroll(x.x),onWheelScroll:(x,g)=>{if(d.viewport){const b=d.viewport.scrollLeft+x.deltaX;e.onWheelScroll(b),Nv(b,g)&&x.preventDefault()}},onResize:()=>{h.current&&d.viewport&&u&&r({content:d.viewport.scrollWidth,viewport:d.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Xc(u.paddingLeft),paddingEnd:Xc(u.paddingRight)}})}})}),a3=v.forwardRef((e,n)=>{const{sizes:s,onSizesChange:r,...o}=e,d=fn(Zn,e.__scopeScrollArea),[u,f]=v.useState(),h=v.useRef(null),p=dt(n,h,d.onScrollbarYChange);return v.useEffect(()=>{h.current&&f(getComputedStyle(h.current))},[h]),l.jsx(jv,{"data-orientation":"vertical",...o,ref:p,sizes:s,style:{top:0,right:d.dir==="ltr"?0:void 0,left:d.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ld(s)+"px",...e.style},onThumbPointerDown:x=>e.onThumbPointerDown(x.y),onDragScroll:x=>e.onDragScroll(x.y),onWheelScroll:(x,g)=>{if(d.viewport){const b=d.viewport.scrollTop+x.deltaY;e.onWheelScroll(b),Nv(b,g)&&x.preventDefault()}},onResize:()=>{h.current&&d.viewport&&u&&r({content:d.viewport.scrollHeight,viewport:d.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Xc(u.paddingTop),paddingEnd:Xc(u.paddingBottom)}})}})}),[s3,Qv]=xv(Zn),jv=v.forwardRef((e,n)=>{const{__scopeScrollArea:s,sizes:r,hasThumb:o,onThumbChange:d,onThumbPointerUp:u,onThumbPointerDown:f,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:x,onResize:g,...b}=e,y=fn(Zn,s),[Q,k]=v.useState(null),w=dt(n,H=>k(H)),j=v.useRef(null),P=v.useRef(""),z=y.viewport,_=r.content-r.viewport,G=Xt(x),Z=Xt(h),C=rd(g,10);function T(H){if(j.current){const E=H.clientX-j.current.left,ee=H.clientY-j.current.top;p({x:E,y:ee})}}return v.useEffect(()=>{const H=E=>{const ee=E.target;(Q==null?void 0:Q.contains(ee))&&G(E,_)};return document.addEventListener("wheel",H,{passive:!1}),()=>document.removeEventListener("wheel",H,{passive:!1})},[z,Q,_,G]),v.useEffect(Z,[r,Z]),Hl(Q,C),Hl(y.content,C),l.jsx(s3,{scope:s,scrollbar:Q,hasThumb:o,onThumbChange:Xt(d),onThumbPointerUp:Xt(u),onThumbPositionChange:Z,onThumbPointerDown:Xt(f),children:l.jsx(Fe.div,{...b,ref:w,style:{position:"absolute",...b.style},onPointerDown:Ue(e.onPointerDown,H=>{H.button===0&&(H.target.setPointerCapture(H.pointerId),j.current=Q.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",y.viewport&&(y.viewport.style.scrollBehavior="auto"),T(H))}),onPointerMove:Ue(e.onPointerMove,T),onPointerUp:Ue(e.onPointerUp,H=>{const E=H.target;E.hasPointerCapture(H.pointerId)&&E.releasePointerCapture(H.pointerId),document.body.style.webkitUserSelect=P.current,y.viewport&&(y.viewport.style.scrollBehavior=""),j.current=null})})})}),_c="ScrollAreaThumb",wv=v.forwardRef((e,n)=>{const{forceMount:s,...r}=e,o=Qv(_c,e.__scopeScrollArea);return l.jsx(Sn,{present:s||o.hasThumb,children:l.jsx(l3,{ref:n,...r})})}),l3=v.forwardRef((e,n)=>{const{__scopeScrollArea:s,style:r,...o}=e,d=fn(_c,s),u=Qv(_c,s),{onThumbPositionChange:f}=u,h=dt(n,g=>u.onThumbChange(g)),p=v.useRef(void 0),x=rd(()=>{p.current&&(p.current(),p.current=void 0)},100);return v.useEffect(()=>{const g=d.viewport;if(g){const b=()=>{if(x(),!p.current){const y=o3(g,f);p.current=y,f()}};return f(),g.addEventListener("scroll",b),()=>g.removeEventListener("scroll",b)}},[d.viewport,x,f]),l.jsx(Fe.div,{"data-state":u.hasThumb?"visible":"hidden",...o,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:Ue(e.onPointerDownCapture,g=>{const y=g.target.getBoundingClientRect(),Q=g.clientX-y.left,k=g.clientY-y.top;u.onThumbPointerDown({x:Q,y:k})}),onPointerUp:Ue(e.onPointerUp,u.onThumbPointerUp)})});wv.displayName=_c;var Sh="ScrollAreaCorner",kv=v.forwardRef((e,n)=>{const s=fn(Sh,e.__scopeScrollArea),r=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&r?l.jsx(r3,{...e,ref:n}):null});kv.displayName=Sh;var r3=v.forwardRef((e,n)=>{const{__scopeScrollArea:s,...r}=e,o=fn(Sh,s),[d,u]=v.useState(0),[f,h]=v.useState(0),p=!!(d&&f);return Hl(o.scrollbarX,()=>{var g;const x=((g=o.scrollbarX)==null?void 0:g.offsetHeight)||0;o.onCornerHeightChange(x),h(x)}),Hl(o.scrollbarY,()=>{var g;const x=((g=o.scrollbarY)==null?void 0:g.offsetWidth)||0;o.onCornerWidthChange(x),u(x)}),p?l.jsx(Fe.div,{...r,ref:n,style:{width:d,height:f,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Xc(e){return e?parseInt(e,10):0}function $v(e,n){const s=e/n;return isNaN(s)?0:s}function ld(e){const n=$v(e.viewport,e.content),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-s)*n;return Math.max(r,18)}function i3(e,n,s,r="ltr"){const o=ld(s),d=o/2,u=n||d,f=o-u,h=s.scrollbar.paddingStart+u,p=s.scrollbar.size-s.scrollbar.paddingEnd-f,x=s.content-s.viewport,g=r==="ltr"?[0,x]:[x*-1,0];return Tv([h,p],g)(e)}function b1(e,n,s="ltr"){const r=ld(n),o=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,d=n.scrollbar.size-o,u=n.content-n.viewport,f=d-r,h=s==="ltr"?[0,u]:[u*-1,0],p=FP(e,h);return Tv([0,u],[0,f])(p)}function Tv(e,n){return s=>{if(e[0]===e[1]||n[0]===n[1])return n[0];const r=(n[1]-n[0])/(e[1]-e[0]);return n[0]+r*(s-e[0])}}function Nv(e,n){return e>0&&e<n}var o3=(e,n=()=>{})=>{let s={left:e.scrollLeft,top:e.scrollTop},r=0;return(function o(){const d={left:e.scrollLeft,top:e.scrollTop},u=s.left!==d.left,f=s.top!==d.top;(u||f)&&n(),s=d,r=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(r)};function rd(e,n){const s=Xt(e),r=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),v.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(s,n)},[s,n])}function Hl(e,n){const s=Xt(n);ua(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(s)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,s])}var c3=gv,d3=vv,v1=yv,y1=wv,u3=kv;function pa({children:e,className:n,...s}){return l.jsxs(c3,{className:oe("overflow-hidden",n),...s,children:[l.jsx(d3,{className:"h-full w-full rounded-[inherit]",children:e}),l.jsx(v1,{orientation:"vertical",className:"flex touch-none select-none p-0.5 transition-colors w-2",children:l.jsx(y1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),l.jsx(v1,{orientation:"horizontal",className:"flex touch-none select-none flex-col p-0.5 transition-colors h-2",children:l.jsx(y1,{className:"relative flex-1 rounded-full bg-surface-5 hover:bg-surface-6"})}),l.jsx(u3,{})]})}const f3={js:"text-warning",jsx:"text-warning",ts:"text-info",tsx:"text-info",css:"text-info",html:"text-orange",json:"text-warning",md:"text-text-2",py:"text-success",rs:"text-orange",go:"text-accent",sh:"text-success",yaml:"text-danger",yml:"text-danger",sql:"text-purple",xml:"text-orange",svg:"text-warning"};function O3(e){var s;const n=(s=e.split(".").pop())==null?void 0:s.toLowerCase();return f3[n]||"text-text-3"}function h3({x:e,y:n,items:s,onClose:r}){const o=v.useRef(null);return v.useEffect(()=>{function d(u){o.current&&!o.current.contains(u.target)&&r()}return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[r]),l.jsx("div",{ref:o,className:"fixed z-50 min-w-[160px] py-1 bg-surface-2 border border-border rounded-lg shadow-xl",style:{left:e,top:n},children:s.map((d,u)=>d.separator?l.jsx("div",{className:"h-px bg-border-subtle my-1"},u):l.jsxs("button",{onClick:()=>{d.action(),r()},className:oe("w-full flex items-center gap-2.5 px-3 py-1.5 text-xs font-sans text-left cursor-pointer transition-colors",d.danger?"text-danger hover:bg-danger/10":"text-text-1 hover:bg-surface-5"),children:[d.icon&&l.jsx(d.icon,{size:12,className:d.danger?"text-danger":"text-text-3"}),d.label]},u))})}function Ac({defaultValue:e="",placeholder:n,onSubmit:s,onCancel:r,depth:o=0}){const[d,u]=v.useState(e),f=v.useRef(null);v.useEffect(()=>{var p,x;(p=f.current)==null||p.focus(),e&&((x=f.current)==null||x.select())},[e]);function h(p){if(p.key==="Enter"){const x=d.trim();x&&s(x)}p.key==="Escape"&&r()}return l.jsx("div",{className:"flex items-center py-0.5",style:{paddingLeft:o*16+8},children:l.jsx("input",{ref:f,value:d,onChange:p=>u(p.target.value),onKeyDown:h,onBlur:r,placeholder:n,className:"w-full h-5 px-1.5 text-xs bg-surface-0 border border-accent rounded text-text-0 font-sans focus:outline-none"})})}function Pv({entry:e,depth:n=0,activePath:s,onFileClick:r,onDirToggle:o,expanded:d,onContextMenu:u}){const f=e.type==="dir",h=s===e.path,p=d.has(e.path),x=n*16+8;function g(b){b.preventDefault(),b.stopPropagation(),u(b,e)}return l.jsxs("button",{onClick:()=>f?o(e.path):r(e.path),onContextMenu:g,className:oe("w-full flex items-center gap-1.5 py-1 text-xs font-sans cursor-pointer","hover:bg-surface-5 transition-colors text-left select-none",h&&"bg-accent/10 text-text-0",!h&&"text-text-1"),style:{paddingLeft:x},children:[f?l.jsxs(l.Fragment,{children:[p?l.jsx(Rn,{size:12,className:"text-text-4 flex-shrink-0"}):l.jsx(is,{size:12,className:"text-text-4 flex-shrink-0"}),p?l.jsx(di,{size:14,className:"text-accent flex-shrink-0"}):l.jsx(ev,{size:14,className:"text-text-3 flex-shrink-0"})]}):l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"w-3"}),l.jsx(jT,{size:14,className:oe("flex-shrink-0",O3(e.name))})]}),l.jsx("span",{className:"truncate",children:e.name})]})}function zv({dirPath:e,depth:n,activePath:s,onFileClick:r,expanded:o,onDirToggle:d,treeCache:u,fetchTreeDir:f,onContextMenu:h,inlineInput:p}){const x=u[e]||[];return v.useEffect(()=>{o.has(e)&&!u[e]&&f(e)},[o,e,u,f]),o.has(e)?l.jsxs(l.Fragment,{children:[(p==null?void 0:p.parentPath)===e&&l.jsx(Ac,{placeholder:p.type==="file"?"filename.ext":"folder-name",onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}),x.map(g=>l.jsxs("div",{children:[(p==null?void 0:p.renamePath)===g.path?l.jsx(Ac,{defaultValue:g.name,onSubmit:p.onSubmit,onCancel:p.onCancel,depth:n}):l.jsx(Pv,{entry:g,depth:n,activePath:s,onFileClick:r,onDirToggle:d,expanded:o,onContextMenu:h}),g.type==="dir"&&l.jsx(zv,{dirPath:g.path,depth:n+1,activePath:s,onFileClick:r,expanded:o,onDirToggle:d,treeCache:u,fetchTreeDir:f,onContextMenu:h,inlineInput:p})]},g.path))]}):null}function m3({rootDir:e}){const n=W(T=>T.editorTreeCache),s=W(T=>T.editorActiveFile),r=W(T=>T.openFile),o=W(T=>T.fetchTreeDir),d=W(T=>T.addToast),[u,f]=v.useState(new Set([""])),[h,p]=v.useState(""),[x,g]=v.useState(null),[b,y]=v.useState(null);v.useEffect(()=>{o("")},[o,e]);function Q(T){f(H=>{const E=new Set(H);return E.has(T)?E.delete(T):E.add(T),E})}function k(T,H){g({x:T.clientX,y:T.clientY,entry:H})}function w(T){T.preventDefault(),g({x:T.clientX,y:T.clientY,entry:{type:"dir",path:"",name:"root"}})}function j(T){const H=T.split("/");return H.pop(),H.join("/")}async function P(T){f(H=>new Set([...H,T])),y({type:"file",parentPath:T,onSubmit:async H=>{const E=T?`${T}/${H}`:H;try{await J.post("/files/create",{path:E,content:""}),o(T),r(E),d("success",`Created ${H}`)}catch(ee){d("error","Create failed",ee.message)}y(null)},onCancel:()=>y(null)})}async function z(T){f(H=>new Set([...H,T])),y({type:"folder",parentPath:T,onSubmit:async H=>{const E=T?`${T}/${H}`:H;try{await J.post("/files/mkdir",{path:E}),o(T),f(ee=>new Set([...ee,E])),d("success",`Created ${H}/`)}catch(ee){d("error","Create folder failed",ee.message)}y(null)},onCancel:()=>y(null)})}async function _(T){y({type:"rename",renamePath:T.path,onSubmit:async H=>{const E=j(T.path),ee=E?`${E}/${H}`:H;try{await J.post("/files/rename",{oldPath:T.path,newPath:ee}),o(E),d("success",`Renamed to ${H}`)}catch(I){d("error","Rename failed",I.message)}y(null)},onCancel:()=>y(null)})}async function G(T){const H=T.type==="dir"?`folder "${T.name}" and all contents`:`"${T.name}"`;if(window.confirm(`Delete ${H}?`))try{await J.delete(`/files/delete?path=${encodeURIComponent(T.path)}`),o(j(T.path)),d("success",`Deleted ${T.name}`)}catch(E){d("error","Delete failed",E.message)}}function Z(T){const H=T.type==="dir",E=[];return H&&(E.push({icon:Af,label:"New File",action:()=>P(T.path)}),E.push({icon:Zf,label:"New Folder",action:()=>z(T.path)})),T.name!=="root"?(E.length>0&&E.push({separator:!0}),E.push({icon:sd,label:"Rename",action:()=>_(T)}),E.push({icon:Qn,label:"Delete",danger:!0,action:()=>G(T)})):(E.length=0,E.push({icon:Af,label:"New File",action:()=>P("")}),E.push({icon:Zf,label:"New Folder",action:()=>z("")})),E}const C=n[""]||[];return l.jsxs("div",{className:"flex flex-col h-full bg-surface-1",onContextMenu:w,children:[l.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b border-border-subtle",children:[l.jsxs("div",{className:"flex-1 relative",children:[l.jsx(_n,{size:12,className:"absolute left-2 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:h,onChange:T=>p(T.target.value),placeholder:"Filter...",className:"w-full h-6 pl-6 pr-2 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 placeholder:text-text-4 focus:outline-none focus:border-accent font-sans"})]}),l.jsx("button",{onClick:()=>P(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New file",children:l.jsx(Af,{size:12})}),l.jsx("button",{onClick:()=>z(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"New folder",children:l.jsx(Zf,{size:12})}),l.jsx("button",{onClick:()=>o(""),className:"p-1 text-text-4 hover:text-text-1 transition-colors cursor-pointer",title:"Refresh",children:l.jsx(un,{size:12})})]}),l.jsx(pa,{className:"flex-1",children:l.jsxs("div",{className:"py-1",children:[(b==null?void 0:b.parentPath)===""&&l.jsx(Ac,{placeholder:b.type==="file"?"filename.ext":"folder-name",onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}),C.filter(T=>!h||T.name.toLowerCase().includes(h.toLowerCase())).map(T=>l.jsxs("div",{children:[(b==null?void 0:b.renamePath)===T.path?l.jsx(Ac,{defaultValue:T.name,onSubmit:b.onSubmit,onCancel:b.onCancel,depth:0}):l.jsx(Pv,{entry:T,depth:0,activePath:s,onFileClick:r,onDirToggle:Q,expanded:u,onContextMenu:k}),T.type==="dir"&&l.jsx(zv,{dirPath:T.path,depth:1,activePath:s,onFileClick:r,expanded:u,onDirToggle:Q,treeCache:n,fetchTreeDir:o,onContextMenu:k,inlineInput:b})]},T.path))]})}),x&&l.jsx(h3,{x:x.x,y:x.y,items:Z(x.entry),onClose:()=>g(null)})]})}function p3(){const e=W(d=>d.editorOpenTabs),n=W(d=>d.editorActiveFile),s=W(d=>d.editorFiles),r=W(d=>d.setActiveFile),o=W(d=>d.closeFile);return e.length===0?null:l.jsx("div",{className:"flex items-center h-8 bg-surface-3 border-b border-border overflow-x-auto flex-shrink-0",children:e.map(d=>{const u=d===n,f=s[d],h=f&&f.content!==f.originalContent,p=d.split("/").pop();return l.jsxs("div",{className:oe("flex items-center gap-1.5 h-full px-3 text-xs font-sans cursor-pointer select-none","border-r border-border-subtle","transition-colors duration-75",u?"bg-surface-2 text-text-0 border-b-2 border-b-accent":"bg-surface-3 text-text-3 hover:text-text-1 hover:bg-surface-4"),onClick:()=>r(d),children:[l.jsx("span",{className:"truncate max-w-[120px]",children:p}),h&&l.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-warning flex-shrink-0"}),l.jsx("button",{onClick:x=>{x.stopPropagation(),o(d)},className:"p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 transition-colors cursor-pointer ml-0.5",children:l.jsx(wt,{size:12})})]},d)})})}var S1={};class Zc{constructor(n,s,r,o,d,u,f,h,p,x=0,g){this.p=n,this.stack=s,this.state=r,this.reducePos=o,this.pos=d,this.score=u,this.buffer=f,this.bufferBase=h,this.curContext=p,this.lookAhead=x,this.parent=g}toString(){return`[${this.stack.filter((n,s)=>s%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(n,s,r=0){let o=n.parser.context;return new Zc(n,[],s,r,r,0,[],0,o?new Q1(o,o.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(n,s){this.stack.push(this.state,s,this.bufferBase+this.buffer.length),this.state=n}reduce(n){var s;let r=n>>19,o=n&65535,{parser:d}=this.p,u=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),f=d.dynamicPrecedence(o);if(f&&(this.score+=f),r==0){this.pushState(d.getGoto(this.state,o,!0),this.reducePos),o<d.minRepeatTerm&&this.storeNode(o,this.reducePos,this.reducePos,u?8:4,!0),this.reduceContext(o,this.reducePos);return}let h=this.stack.length-(r-1)*3-(n&262144?6:0),p=h?this.stack[h-2]:this.p.ranges[0].from,x=this.reducePos-p;x>=2e3&&!(!((s=this.p.parser.nodeSet.types[o])===null||s===void 0)&&s.isAnonymous)&&(p==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=x):this.p.lastBigReductionSize<x&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=p,this.p.lastBigReductionSize=x));let g=h?this.stack[h-1]:0,b=this.bufferBase+this.buffer.length-g;if(o<d.minRepeatTerm||n&131072){let y=d.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(o,p,y,b+4,!0)}if(n&262144)this.state=this.stack[h];else{let y=this.stack[h-3];this.state=d.getGoto(y,o,!0)}for(;this.stack.length>h;)this.stack.pop();this.reduceContext(o,p)}storeNode(n,s,r,o=4,d=!1){if(n==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let u=this,f=this.buffer.length;if(f==0&&u.parent&&(f=u.bufferBase-u.parent.bufferBase,u=u.parent),f>0&&u.buffer[f-4]==0&&u.buffer[f-1]>-1){if(s==r)return;if(u.buffer[f-2]>=s){u.buffer[f-2]=r;return}}}if(!d||this.pos==r)this.buffer.push(n,s,r,o);else{let u=this.buffer.length;if(u>0&&(this.buffer[u-4]!=0||this.buffer[u-1]<0)){let f=!1;for(let h=u;h>0&&this.buffer[h-2]>r;h-=4)if(this.buffer[h-1]>=0){f=!0;break}if(f)for(;u>0&&this.buffer[u-2]>r;)this.buffer[u]=this.buffer[u-4],this.buffer[u+1]=this.buffer[u-3],this.buffer[u+2]=this.buffer[u-2],this.buffer[u+3]=this.buffer[u-1],u-=4,o>4&&(o-=4)}this.buffer[u]=n,this.buffer[u+1]=s,this.buffer[u+2]=r,this.buffer[u+3]=o}}shift(n,s,r,o){if(n&131072)this.pushState(n&65535,this.pos);else if((n&262144)==0){let d=n,{parser:u}=this.p;this.pos=o;let f=u.stateFlag(d,1);!f&&(o>r||s<=u.maxNode)&&(this.reducePos=o),this.pushState(d,f?r:Math.min(r,this.reducePos)),this.shiftContext(s,r),s<=u.maxNode&&this.buffer.push(s,r,o,4)}else this.pos=o,this.shiftContext(s,r),s<=this.p.parser.maxNode&&this.buffer.push(s,r,o,4)}apply(n,s,r,o){n&65536?this.reduce(n):this.shift(n,s,r,o)}useNode(n,s){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=n)&&(this.p.reused.push(n),r++);let o=this.pos;this.reducePos=this.pos=o+n.length,this.pushState(s,o),this.buffer.push(r,o,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,n,this,this.p.stream.reset(this.pos-n.length)))}split(){let n=this,s=n.buffer.length;for(;s>0&&n.buffer[s-2]>n.reducePos;)s-=4;let r=n.buffer.slice(s),o=n.bufferBase+s;for(;n&&o==n.bufferBase;)n=n.parent;return new Zc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,n)}recoverByDelete(n,s){let r=n<=this.p.parser.maxNode;r&&this.storeNode(n,this.pos,s,4),this.storeNode(0,this.pos,s,r?8:4),this.pos=this.reducePos=s,this.score-=190}canShift(n){for(let s=new x3(this);;){let r=this.p.parser.stateSlot(s.state,4)||this.p.parser.hasAction(s.state,n);if(r==0)return!1;if((r&65536)==0)return!0;s.reduce(r)}}recoverByInsert(n){if(this.stack.length>=300)return[];let s=this.p.parser.nextStates(this.state);if(s.length>8||this.stack.length>=120){let o=[];for(let d=0,u;d<s.length;d+=2)(u=s[d+1])!=this.state&&this.p.parser.hasAction(u,n)&&o.push(s[d],u);if(this.stack.length<120)for(let d=0;o.length<8&&d<s.length;d+=2){let u=s[d+1];o.some((f,h)=>h&1&&f==u)||o.push(s[d],u)}s=o}let r=[];for(let o=0;o<s.length&&r.length<4;o+=2){let d=s[o+1];if(d==this.state)continue;let u=this.split();u.pushState(d,this.pos),u.storeNode(0,u.pos,u.pos,4,!0),u.shiftContext(s[o],this.pos),u.reducePos=this.pos,u.score-=200,r.push(u)}return r}forceReduce(){let{parser:n}=this.p,s=n.stateSlot(this.state,5);if((s&65536)==0)return!1;if(!n.validAction(this.state,s)){let r=s>>19,o=s&65535,d=this.stack.length-r*3;if(d<0||n.getGoto(this.stack[d],o,!1)<0){let u=this.findForcedReduction();if(u==null)return!1;s=u}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(s),!0}findForcedReduction(){let{parser:n}=this.p,s=[],r=(o,d)=>{if(!s.includes(o))return s.push(o),n.allActions(o,u=>{if(!(u&393216))if(u&65536){let f=(u>>19)-d;if(f>1){let h=u&65535,p=this.stack.length-f*3;if(p>=0&&n.getGoto(this.stack[p],h,!1)>=0)return f<<19|65536|h}}else{let f=r(u,d+1);if(f!=null)return f}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:n}=this.p;return n.data[n.stateSlot(this.state,1)]==65535&&!n.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(n){if(this.state!=n.state||this.stack.length!=n.stack.length)return!1;for(let s=0;s<this.stack.length;s+=3)if(this.stack[s]!=n.stack[s])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(n){return this.p.parser.dialect.flags[n]}shiftContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,n,this,this.p.stream.reset(s)))}reduceContext(n,s){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,n,this,this.p.stream.reset(s)))}emitContext(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let n=this.buffer.length-1;(n<0||this.buffer[n]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(n){if(n!=this.curContext.context){let s=new Q1(this.curContext.tracker,n);s.hash!=this.curContext.hash&&this.emitContext(),this.curContext=s}}setLookAhead(n){return n<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=n,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Q1{constructor(n,s){this.tracker=n,this.context=s,this.hash=n.strict?n.hash(s):0}}class x3{constructor(n){this.start=n,this.state=n.state,this.stack=n.stack,this.base=this.stack.length}reduce(n){let s=n&65535,r=n>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let o=this.start.p.parser.getGoto(this.stack[this.base-3],s,!0);this.state=o}}class Ec{constructor(n,s,r){this.stack=n,this.pos=s,this.index=r,this.buffer=n.buffer,this.index==0&&this.maybeNext()}static create(n,s=n.bufferBase+n.buffer.length){return new Ec(n,s,s-n.bufferBase)}maybeNext(){let n=this.stack.parent;n!=null&&(this.index=this.stack.bufferBase-n.bufferBase,this.stack=n,this.buffer=n.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Ec(this.stack,this.pos,this.index)}}function ai(e,n=Uint16Array){if(typeof e!="string")return e;let s=null;for(let r=0,o=0;r<e.length;){let d=0;for(;;){let u=e.charCodeAt(r++),f=!1;if(u==126){d=65535;break}u>=92&&u--,u>=34&&u--;let h=u-32;if(h>=46&&(h-=46,f=!0),d+=h,f)break;d*=46}s?s[o++]=d:s=new n(d)}return s}class gc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const j1=new gc;class g3{constructor(n,s){this.input=n,this.ranges=s,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=j1,this.rangeIndex=0,this.pos=this.chunkPos=s[0].from,this.range=s[0],this.end=s[s.length-1].to,this.readNext()}resolveOffset(n,s){let r=this.range,o=this.rangeIndex,d=this.pos+n;for(;d<r.from;){if(!o)return null;let u=this.ranges[--o];d-=r.from-u.to,r=u}for(;s<0?d>r.to:d>=r.to;){if(o==this.ranges.length-1)return null;let u=this.ranges[++o];d+=u.from-r.to,r=u}return d}clipPos(n){if(n>=this.range.from&&n<this.range.to)return n;for(let s of this.ranges)if(s.to>n)return Math.max(n,s.from);return this.end}peek(n){let s=this.chunkOff+n,r,o;if(s>=0&&s<this.chunk.length)r=this.pos+n,o=this.chunk.charCodeAt(s);else{let d=this.resolveOffset(n,1);if(d==null)return-1;if(r=d,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)o=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let u=this.rangeIndex,f=this.range;for(;f.to<=r;)f=this.ranges[++u];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>f.to&&(this.chunk2=this.chunk2.slice(0,f.to-r)),o=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),o}acceptToken(n,s=0){let r=s?this.resolveOffset(s,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=n,this.token.end=r}acceptTokenTo(n,s){this.token.value=n,this.token.end=s}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:n,chunkPos:s}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=n,this.chunk2Pos=s,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let n=this.input.chunk(this.pos),s=this.pos+n.length;this.chunk=s>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(n=1){for(this.chunkOff+=n;this.pos+n>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();n-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=n,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(n,s){if(s?(this.token=s,s.start=n,s.lookAhead=n+1,s.value=s.extended=-1):this.token=j1,this.pos!=n){if(this.pos=n,n==this.end)return this.setDone(),this;for(;n<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;n>=this.range.to;)this.range=this.ranges[++this.rangeIndex];n>=this.chunkPos&&n<this.chunkPos+this.chunk.length?this.chunkOff=n-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(n,s){if(n>=this.chunkPos&&s<=this.chunkPos+this.chunk.length)return this.chunk.slice(n-this.chunkPos,s-this.chunkPos);if(n>=this.chunk2Pos&&s<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(n-this.chunk2Pos,s-this.chunk2Pos);if(n>=this.range.from&&s<=this.range.to)return this.input.read(n,s);let r="";for(let o of this.ranges){if(o.from>=s)break;o.to>n&&(r+=this.input.read(Math.max(o.from,n),Math.min(o.to,s)))}return r}}class ql{constructor(n,s){this.data=n,this.id=s}token(n,s){let{parser:r}=s.p;Cv(this.data,n,s,this.id,r.data,r.tokenPrecTable)}}ql.prototype.contextual=ql.prototype.fallback=ql.prototype.extend=!1;class qc{constructor(n,s,r){this.precTable=s,this.elseToken=r,this.data=typeof n=="string"?ai(n):n}token(n,s){let r=n.pos,o=0;for(;;){let d=n.next<0,u=n.resolveOffset(1,1);if(Cv(this.data,n,s,0,this.data,this.precTable),n.token.value>-1)break;if(this.elseToken==null)return;if(d||o++,u==null)break;n.reset(u,n.token)}o&&(n.reset(r,n.token),n.acceptToken(this.elseToken,o))}}qc.prototype.contextual=ql.prototype.fallback=ql.prototype.extend=!1;class Qt{constructor(n,s={}){this.token=n,this.contextual=!!s.contextual,this.fallback=!!s.fallback,this.extend=!!s.extend}}function Cv(e,n,s,r,o,d){let u=0,f=1<<r,{dialect:h}=s.p.parser;e:for(;(f&e[u])!=0;){let p=e[u+1];for(let y=u+3;y<p;y+=2)if((e[y+1]&f)>0){let Q=e[y];if(h.allows(Q)&&(n.token.value==-1||n.token.value==Q||b3(Q,n.token.value,o,d))){n.acceptToken(Q);break}}let x=n.next,g=0,b=e[u+2];if(n.next<0&&b>g&&e[p+b*3-3]==65535){u=e[p+b*3-1];continue e}for(;g<b;){let y=g+b>>1,Q=p+y+(y<<1),k=e[Q],w=e[Q+1]||65536;if(x<k)b=y;else if(x>=w)g=y+1;else{u=e[Q+2],n.advance();continue e}}break}}function w1(e,n,s){for(let r=n,o;(o=e[r])!=65535;r++)if(o==s)return r-n;return-1}function b3(e,n,s,r){let o=w1(s,r,n);return o<0||w1(s,r,e)<o}const Lt=typeof process<"u"&&S1&&/\bparse\b/.test(S1.LOG);let Uf=null;function k1(e,n,s){let r=e.cursor(Bc.IncludeAnonymous);for(r.moveTo(n);;)if(!(s<0?r.childBefore(n):r.childAfter(n)))for(;;){if((s<0?r.to<n:r.from>n)&&!r.type.isError)return s<0?Math.max(0,Math.min(r.to-1,n-25)):Math.min(e.length,Math.max(r.from+1,n+25));if(s<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return s<0?0:e.length}}let v3=class{constructor(n,s){this.fragments=n,this.nodeSet=s,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let n=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(n){for(this.safeFrom=n.openStart?k1(n.tree,n.from+n.offset,1)-n.offset:n.from,this.safeTo=n.openEnd?k1(n.tree,n.to+n.offset,-1)-n.offset:n.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(n.tree),this.start.push(-n.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(n){if(n<this.nextStart)return null;for(;this.fragment&&this.safeTo<=n;)this.nextFragment();if(!this.fragment)return null;for(;;){let s=this.trees.length-1;if(s<0)return this.nextFragment(),null;let r=this.trees[s],o=this.index[s];if(o==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let d=r.children[o],u=this.start[s]+r.positions[o];if(u>n)return this.nextStart=u,null;if(d instanceof gn){if(u==n){if(u<this.safeFrom)return null;let f=u+d.length;if(f<=this.safeTo){let h=d.prop(da.lookAhead);if(!h||f+h<this.fragment.to)return d}}this.index[s]++,u+d.length>=Math.max(this.safeFrom,n)&&(this.trees.push(d),this.start.push(u),this.index.push(0))}else this.index[s]++,this.nextStart=u+d.length}}};class y3{constructor(n,s){this.stream=s,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=n.tokenizers.map(r=>new gc)}getActions(n){let s=0,r=null,{parser:o}=n.p,{tokenizers:d}=o,u=o.stateSlot(n.state,3),f=n.curContext?n.curContext.hash:0,h=0;for(let p=0;p<d.length;p++){if((1<<p&u)==0)continue;let x=d[p],g=this.tokens[p];if(!(r&&!x.fallback)&&((x.contextual||g.start!=n.pos||g.mask!=u||g.context!=f)&&(this.updateCachedToken(g,x,n),g.mask=u,g.context=f),g.lookAhead>g.end+25&&(h=Math.max(g.lookAhead,h)),g.value!=0)){let b=s;if(g.extended>-1&&(s=this.addActions(n,g.extended,g.end,s)),s=this.addActions(n,g.value,g.end,s),!x.extend&&(r=g,s>b))break}}for(;this.actions.length>s;)this.actions.pop();return h&&n.setLookAhead(h),!r&&n.pos==this.stream.end&&(r=new gc,r.value=n.p.parser.eofTerm,r.start=r.end=n.pos,s=this.addActions(n,r.value,r.end,s)),this.mainToken=r,this.actions}getMainToken(n){if(this.mainToken)return this.mainToken;let s=new gc,{pos:r,p:o}=n;return s.start=r,s.end=Math.min(r+1,o.stream.end),s.value=r==o.stream.end?o.parser.eofTerm:0,s}updateCachedToken(n,s,r){let o=this.stream.clipPos(r.pos);if(s.token(this.stream.reset(o,n),r),n.value>-1){let{parser:d}=r.p;for(let u=0;u<d.specialized.length;u++)if(d.specialized[u]==n.value){let f=d.specializers[u](this.stream.read(n.start,n.end),r);if(f>=0&&r.p.parser.dialect.allows(f>>1)){(f&1)==0?n.value=f>>1:n.extended=f>>1;break}}}else n.value=0,n.end=this.stream.clipPos(o+1)}putAction(n,s,r,o){for(let d=0;d<o;d+=3)if(this.actions[d]==n)return o;return this.actions[o++]=n,this.actions[o++]=s,this.actions[o++]=r,o}addActions(n,s,r,o){let{state:d}=n,{parser:u}=n.p,{data:f}=u;for(let h=0;h<2;h++)for(let p=u.stateSlot(d,h?2:1);;p+=3){if(f[p]==65535)if(f[p+1]==1)p=ca(f,p+2);else{o==0&&f[p+1]==2&&(o=this.putAction(ca(f,p+2),s,r,o));break}f[p]==s&&(o=this.putAction(ca(f,p+1),s,r,o))}return o}}class S3{constructor(n,s,r,o){this.parser=n,this.input=s,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new g3(s,o),this.tokens=new y3(n,this.stream),this.topTerm=n.top[1];let{from:d}=o[0];this.stacks=[Zc.start(this,n.top[0],d)],this.fragments=r.length&&this.stream.end-d>n.bufferLength*4?new v3(r,n.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let n=this.stacks,s=this.minStackPos,r=this.stacks=[],o,d;if(this.bigReductionCount>300&&n.length==1){let[u]=n;for(;u.forceReduce()&&u.stack.length&&u.stack[u.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let u=0;u<n.length;u++){let f=n[u];for(;;){if(this.tokens.mainToken=null,f.pos>s)r.push(f);else{if(this.advanceStack(f,r,n))continue;{o||(o=[],d=[]),o.push(f);let h=this.tokens.getMainToken(f);d.push(h.value,h.end)}}break}}if(!r.length){let u=o&&j3(o);if(u)return Lt&&console.log("Finish with "+this.stackID(u)),this.stackToTree(u);if(this.parser.strict)throw Lt&&o&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&o){let u=this.stoppedAt!=null&&o[0].pos>this.stoppedAt?o[0]:this.runRecovery(o,d,r);if(u)return Lt&&console.log("Force-finish "+this.stackID(u)),this.stackToTree(u.forceAll())}if(this.recovering){let u=this.recovering==1?1:this.recovering*3;if(r.length>u)for(r.sort((f,h)=>h.score-f.score);r.length>u;)r.pop();r.some(f=>f.reducePos>s)&&this.recovering--}else if(r.length>1){e:for(let u=0;u<r.length-1;u++){let f=r[u];for(let h=u+1;h<r.length;h++){let p=r[h];if(f.sameState(p)||f.buffer.length>500&&p.buffer.length>500)if((f.score-p.score||f.buffer.length-p.buffer.length)>0)r.splice(h--,1);else{r.splice(u--,1);continue e}}}r.length>12&&(r.sort((u,f)=>f.score-u.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let u=1;u<r.length;u++)r[u].pos<this.minStackPos&&(this.minStackPos=r[u].pos);return null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}advanceStack(n,s,r){let o=n.pos,{parser:d}=this,u=Lt?this.stackID(n)+" -> ":"";if(this.stoppedAt!=null&&o>this.stoppedAt)return n.forceReduce()?n:null;if(this.fragments){let p=n.curContext&&n.curContext.tracker.strict,x=p?n.curContext.hash:0;for(let g=this.fragments.nodeAt(o);g;){let b=this.parser.nodeSet.types[g.type.id]==g.type?d.getGoto(n.state,g.type.id):-1;if(b>-1&&g.length&&(!p||(g.prop(da.contextHash)||0)==x))return n.useNode(g,b),Lt&&console.log(u+this.stackID(n)+` (via reuse of ${d.getName(g.type.id)})`),!0;if(!(g instanceof gn)||g.children.length==0||g.positions[0]>0)break;let y=g.children[0];if(y instanceof gn&&g.positions[0]==0)g=y;else break}}let f=d.stateSlot(n.state,4);if(f>0)return n.reduce(f),Lt&&console.log(u+this.stackID(n)+` (via always-reduce ${d.getName(f&65535)})`),!0;if(n.stack.length>=8400)for(;n.stack.length>6e3&&n.forceReduce(););let h=this.tokens.getActions(n);for(let p=0;p<h.length;){let x=h[p++],g=h[p++],b=h[p++],y=p==h.length||!r,Q=y?n:n.split(),k=this.tokens.mainToken;if(Q.apply(x,g,k?k.start:Q.pos,b),Lt&&console.log(u+this.stackID(Q)+` (via ${(x&65536)==0?"shift":`reduce of ${d.getName(x&65535)}`} for ${d.getName(g)} @ ${o}${Q==n?"":", split"})`),y)return!0;Q.pos>o?s.push(Q):r.push(Q)}return!1}advanceFully(n,s){let r=n.pos;for(;;){if(!this.advanceStack(n,null,null))return!1;if(n.pos>r)return $1(n,s),!0}}runRecovery(n,s,r){let o=null,d=!1;for(let u=0;u<n.length;u++){let f=n[u],h=s[u<<1],p=s[(u<<1)+1],x=Lt?this.stackID(f)+" -> ":"";if(f.deadEnd&&(d||(d=!0,f.restart(),Lt&&console.log(x+this.stackID(f)+" (restarted)"),this.advanceFully(f,r))))continue;let g=f.split(),b=x;for(let y=0;y<10&&g.forceReduce()&&(Lt&&console.log(b+this.stackID(g)+" (via force-reduce)"),!this.advanceFully(g,r));y++)Lt&&(b=this.stackID(g)+" -> ");for(let y of f.recoverByInsert(h))Lt&&console.log(x+this.stackID(y)+" (via recover-insert)"),this.advanceFully(y,r);this.stream.end>f.pos?(p==f.pos&&(p++,h=0),f.recoverByDelete(h,p),Lt&&console.log(x+this.stackID(f)+` (via recover-delete ${this.parser.getName(h)})`),$1(f,r)):(!o||o.score<g.score)&&(o=g)}return o}stackToTree(n){return n.close(),gn.build({buffer:Ec.create(n),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:n.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(n){let s=(Uf||(Uf=new WeakMap)).get(n);return s||Uf.set(n,s=String.fromCodePoint(this.nextStackID++)),s+n}}function $1(e,n){for(let s=0;s<n.length;s++){let r=n[s];if(r.pos==e.pos&&r.sameState(e)){n[s].score<e.score&&(n[s]=e);return}}n.push(e)}class Q3{constructor(n,s,r){this.source=n,this.flags=s,this.disabled=r}allows(n){return!this.disabled||this.disabled[n]==0}}const Vf=e=>e;class Qh{constructor(n){this.start=n.start,this.shift=n.shift||Vf,this.reduce=n.reduce||Vf,this.reuse=n.reuse||Vf,this.hash=n.hash||(()=>0),this.strict=n.strict!==!1}}class ls extends V0{constructor(n){if(super(),this.wrappers=[],n.version!=14)throw new RangeError(`Parser version (${n.version}) doesn't match runtime version (14)`);let s=n.nodeNames.split(" ");this.minRepeatTerm=s.length;for(let f=0;f<n.repeatNodeCount;f++)s.push("");let r=Object.keys(n.topRules).map(f=>n.topRules[f][1]),o=[];for(let f=0;f<s.length;f++)o.push([]);function d(f,h,p){o[f].push([h,h.deserialize(String(p))])}if(n.nodeProps)for(let f of n.nodeProps){let h=f[0];typeof h=="string"&&(h=da[h]);for(let p=1;p<f.length;){let x=f[p++];if(x>=0)d(x,h,f[p++]);else{let g=f[p+-x];for(let b=-x;b>0;b--)d(f[p++],h,g);p++}}}this.nodeSet=new BO(s.map((f,h)=>bi.define({name:h>=this.minRepeatTerm?void 0:f,id:h,props:o[h],top:r.indexOf(h)>-1,error:h==0,skipped:n.skippedNodes&&n.skippedNodes.indexOf(h)>-1}))),n.propSources&&(this.nodeSet=this.nodeSet.extend(...n.propSources)),this.strict=!1,this.bufferLength=Gj;let u=ai(n.tokenData);this.context=n.context,this.specializerSpecs=n.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let f=0;f<this.specializerSpecs.length;f++)this.specialized[f]=this.specializerSpecs[f].term;this.specializers=this.specializerSpecs.map(T1),this.states=ai(n.states,Uint32Array),this.data=ai(n.stateData),this.goto=ai(n.goto),this.maxTerm=n.maxTerm,this.tokenizers=n.tokenizers.map(f=>typeof f=="number"?new ql(u,f):f),this.topRules=n.topRules,this.dialects=n.dialects||{},this.dynamicPrecedences=n.dynamicPrecedences||null,this.tokenPrecTable=n.tokenPrec,this.termNames=n.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(n,s,r){let o=new S3(this,n,s,r);for(let d of this.wrappers)o=d(o,n,s,r);return o}getGoto(n,s,r=!1){let o=this.goto;if(s>=o[0])return-1;for(let d=o[s+1];;){let u=o[d++],f=u&1,h=o[d++];if(f&&r)return h;for(let p=d+(u>>1);d<p;d++)if(o[d]==n)return h;if(f)return-1}}hasAction(n,s){let r=this.data;for(let o=0;o<2;o++)for(let d=this.stateSlot(n,o?2:1),u;;d+=3){if((u=r[d])==65535)if(r[d+1]==1)u=r[d=ca(r,d+2)];else{if(r[d+1]==2)return ca(r,d+2);break}if(u==s||u==0)return ca(r,d+1)}return 0}stateSlot(n,s){return this.states[n*6+s]}stateFlag(n,s){return(this.stateSlot(n,0)&s)>0}validAction(n,s){return!!this.allActions(n,r=>r==s?!0:null)}allActions(n,s){let r=this.stateSlot(n,4),o=r?s(r):void 0;for(let d=this.stateSlot(n,1);o==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=ca(this.data,d+2);else break;o=s(ca(this.data,d+1))}return o}nextStates(n){let s=[];for(let r=this.stateSlot(n,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=ca(this.data,r+2);else break;if((this.data[r+2]&1)==0){let o=this.data[r+1];s.some((d,u)=>u&1&&d==o)||s.push(this.data[r],o)}}return s}configure(n){let s=Object.assign(Object.create(ls.prototype),this);if(n.props&&(s.nodeSet=this.nodeSet.extend(...n.props)),n.top){let r=this.topRules[n.top];if(!r)throw new RangeError(`Invalid top rule name ${n.top}`);s.top=r}return n.tokenizers&&(s.tokenizers=this.tokenizers.map(r=>{let o=n.tokenizers.find(d=>d.from==r);return o?o.to:r})),n.specializers&&(s.specializers=this.specializers.slice(),s.specializerSpecs=this.specializerSpecs.map((r,o)=>{let d=n.specializers.find(f=>f.from==r.external);if(!d)return r;let u=Object.assign(Object.assign({},r),{external:d.to});return s.specializers[o]=T1(u),u})),n.contextTracker&&(s.context=n.contextTracker),n.dialect&&(s.dialect=this.parseDialect(n.dialect)),n.strict!=null&&(s.strict=n.strict),n.wrap&&(s.wrappers=s.wrappers.concat(n.wrap)),n.bufferLength!=null&&(s.bufferLength=n.bufferLength),s}hasWrappers(){return this.wrappers.length>0}getName(n){return this.termNames?this.termNames[n]:String(n<=this.maxNode&&this.nodeSet.types[n].name||n)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(n){let s=this.dynamicPrecedences;return s==null?0:s[n]||0}parseDialect(n){let s=Object.keys(this.dialects),r=s.map(()=>!1);if(n)for(let d of n.split(" ")){let u=s.indexOf(d);u>=0&&(r[u]=!0)}let o=null;for(let d=0;d<s.length;d++)if(!r[d])for(let u=this.dialects[s[d]],f;(f=this.data[u++])!=65535;)(o||(o=new Uint8Array(this.maxTerm+1)))[f]=1;return new Q3(n,r,o)}static deserialize(n){return new ls(n)}}function ca(e,n){return e[n]|e[n+1]<<16}function j3(e){let n=null;for(let s of e){let r=s.p.stoppedAt;(s.pos==s.p.stream.end||r!=null&&s.pos>r)&&s.p.parser.stateFlag(s.state,2)&&(!n||n.score<s.score)&&(n=s)}return n}function T1(e){if(e.external){let n=e.extend?1:0;return(s,r)=>e.external(s,r)<<1|n}return e.get}const w3=316,k3=317,N1=1,$3=2,T3=3,N3=4,P3=318,z3=320,C3=321,R3=5,_3=6,X3=0,PO=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Rv=125,A3=59,zO=47,Z3=42,E3=43,q3=45,M3=60,Y3=44,U3=63,V3=46,G3=91,D3=new Qh({start:!1,shift(e,n){return n==R3||n==_3||n==z3?e:n==C3},strict:!1}),L3=new Qt((e,n)=>{let{next:s}=e;(s==Rv||s==-1||n.context)&&e.acceptToken(P3)},{contextual:!0,fallback:!0}),W3=new Qt((e,n)=>{let{next:s}=e,r;PO.indexOf(s)>-1||s==zO&&((r=e.peek(1))==zO||r==Z3)||s!=Rv&&s!=A3&&s!=-1&&!n.context&&e.acceptToken(w3)},{contextual:!0}),B3=new Qt((e,n)=>{e.next==G3&&!n.context&&e.acceptToken(k3)},{contextual:!0}),H3=new Qt((e,n)=>{let{next:s}=e;if(s==E3||s==q3){if(e.advance(),s==e.next){e.advance();let r=!n.context&&n.canShift(N1);e.acceptToken(r?N1:$3)}}else s==U3&&e.peek(1)==V3&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(T3))},{contextual:!0});function Gf(e,n){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!n&&e>=48&&e<=57}const I3=new Qt((e,n)=>{if(e.next!=M3||!n.dialectEnabled(X3)||(e.advance(),e.next==zO))return;let s=0;for(;PO.indexOf(e.next)>-1;)e.advance(),s++;if(Gf(e.next,!0)){for(e.advance(),s++;Gf(e.next,!1);)e.advance(),s++;for(;PO.indexOf(e.next)>-1;)e.advance(),s++;if(e.next==Y3)return;for(let r=0;;r++){if(r==7){if(!Gf(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),s++}}e.acceptToken(N3,-s)}),F3=Es({"get set async static":A.modifier,"for while do if else switch try catch finally return throw break continue default case defer":A.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":A.operatorKeyword,"let var const using function class extends":A.definitionKeyword,"import export from":A.moduleKeyword,"with debugger new":A.keyword,TemplateString:A.special(A.string),super:A.atom,BooleanLiteral:A.bool,this:A.self,null:A.null,Star:A.modifier,VariableName:A.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":A.function(A.variableName),VariableDefinition:A.definition(A.variableName),Label:A.labelName,PropertyName:A.propertyName,PrivatePropertyName:A.special(A.propertyName),"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),"FunctionDeclaration/VariableDefinition":A.function(A.definition(A.variableName)),"ClassDeclaration/VariableDefinition":A.definition(A.className),"NewExpression/VariableName":A.className,PropertyDefinition:A.definition(A.propertyName),PrivatePropertyDefinition:A.definition(A.special(A.propertyName)),UpdateOp:A.updateOperator,"LineComment Hashbang":A.lineComment,BlockComment:A.blockComment,Number:A.number,String:A.string,Escape:A.escape,ArithOp:A.arithmeticOperator,LogicOp:A.logicOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,RegExp:A.regexp,Equals:A.definitionOperator,Arrow:A.function(A.punctuation),": Spread":A.punctuation,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,"InterpolationStart InterpolationEnd":A.special(A.brace),".":A.derefOperator,", ;":A.separator,"@":A.meta,TypeName:A.typeName,TypeDefinition:A.definition(A.typeName),"type enum interface implements namespace module declare":A.definitionKeyword,"abstract global Privacy readonly override":A.modifier,"is keyof unique infer asserts":A.operatorKeyword,JSXAttributeValue:A.attributeValue,JSXText:A.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":A.angleBracket,"JSXIdentifier JSXNameSpacedName":A.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":A.attributeName,"JSXBuiltin/JSXIdentifier":A.standard(A.tagName)}),K3={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},J3={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},e4={__proto__:null,"<":193},t4=ls.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#Dv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3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:D3,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203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!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new qc("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>K3[e]||-1},{term:343,get:e=>J3[e]||-1},{term:95,get:e=>e4[e]||-1}],tokenPrec:15201}),_v=[Je("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Je("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Je("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Je("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Je("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Je(`try {
|
|
585
|
-
\${}
|
|
586
|
-
} catch (\${error}) {
|
|
587
|
-
\${}
|
|
588
|
-
}`,{label:"try",detail:"/ catch block",type:"keyword"}),Je("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Je(`if (\${}) {
|
|
589
|
-
\${}
|
|
590
|
-
} else {
|
|
591
|
-
\${}
|
|
592
|
-
}`,{label:"if",detail:"/ else block",type:"keyword"}),Je(`class \${name} {
|
|
593
|
-
constructor(\${params}) {
|
|
594
|
-
\${}
|
|
595
|
-
}
|
|
596
|
-
}`,{label:"class",detail:"definition",type:"keyword"}),Je('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Je('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],n4=_v.concat([Je("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Je("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Je("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),P1=new HO,Xv=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function ei(e){return(n,s)=>{let r=n.node.getChild("VariableDefinition");return r&&s(r,e),!0}}const a4=["FunctionDeclaration"],s4={FunctionDeclaration:ei("function"),ClassDeclaration:ei("class"),ClassExpression:()=>!0,EnumDeclaration:ei("constant"),TypeAliasDeclaration:ei("type"),NamespaceDeclaration:ei("namespace"),VariableDefinition(e,n){e.matchContext(a4)||n(e,"variable")},TypeDefinition(e,n){n(e,"type")},__proto__:null};function Av(e,n){let s=P1.get(n);if(s)return s;let r=[],o=!0;function d(u,f){let h=e.sliceString(u.from,u.to);r.push({label:h,type:f})}return n.cursor(Bc.IncludeAnonymous).iterate(u=>{if(o)o=!1;else if(u.name){let f=s4[u.name];if(f&&f(u,d)||Xv.has(u.name))return!1}else if(u.to-u.from>8192){for(let f of Av(e,u.node))r.push(f);return!1}}),P1.set(n,r),r}const z1=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Zv=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function l4(e){let n=yn(e.state).resolveInner(e.pos,-1);if(Zv.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&z1.test(e.state.sliceDoc(n.from,n.to));if(!s&&!e.explicit)return null;let r=[];for(let o=n;o;o=o.parent)Xv.has(o.name)&&(r=r.concat(Av(e.state.doc,o)));return{options:r,from:s?n.from:e.pos,validFor:z1}}const Cn=vi.define({name:"javascript",parser:t4.configure({props:[Jl.add({IfStatement:Xl({except:/^\s*({|else\b)/}),TryStatement:Xl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Dj,SwitchBody:e=>{let n=e.textAfter,s=/^\s*\}/.test(n),r=/^\s*(case|default)\b/.test(n);return e.baseIndent+(s?0:r?1:2)*e.unit},Block:pc({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":Xl({except:/^\s*{/}),JSXElement(e){let n=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(n?0:e.unit)},JSXEscape(e){let n=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(n?0:e.unit)},"JSXOpenTag JSXSelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),qs.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Hc,BlockComment(e){return{from:e.from+2,to:e.to-2}},JSXElement(e){let n=e.firstChild;if(!n||n.name=="JSXSelfClosingTag")return null;let s=e.lastChild;return{from:n.to,to:s.type.isError?e.to:s.from}},"JSXSelfClosingTag JSXOpenTag"(e){var n;let s=(n=e.firstChild)===null||n===void 0?void 0:n.nextSibling,r=e.lastChild;return!s||s.type.isError?null:{from:s.to,to:r.type.isError?e.to:r.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ev={test:e=>/^JSX/.test(e.name),facet:W0({commentTokens:{block:{open:"{/*",close:"*/}"}}})},qv=Cn.configure({dialect:"ts"},"typescript"),Mv=Cn.configure({dialect:"jsx",props:[L0.add(e=>e.isTop?[Ev]:void 0)]}),Yv=Cn.configure({dialect:"jsx ts",props:[L0.add(e=>e.isTop?[Ev]:void 0)]},"typescript");let Uv=e=>({label:e,type:"keyword"});const Vv="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(Uv),r4=Vv.concat(["declare","implements","private","protected","public"].map(Uv));function CO(e={}){let n=e.jsx?e.typescript?Yv:Mv:e.typescript?qv:Cn,s=e.typescript?n4.concat(r4):_v.concat(Vv);return new zs(n,[Cn.data.of({autocomplete:G0(Zv,D0(s))}),Cn.data.of({autocomplete:l4}),e.jsx?c4:[]])}function i4(e){for(;;){if(e.name=="JSXOpenTag"||e.name=="JSXSelfClosingTag"||e.name=="JSXFragmentTag")return e;if(e.name=="JSXEscape"||!e.parent)return null;e=e.parent}}function C1(e,n,s=e.length){for(let r=n==null?void 0:n.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return e.sliceString(r.from,Math.min(r.to,s));return""}const o4=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),c4=Vl.inputHandler.of((e,n,s,r,o)=>{if((o4?e.composing:e.compositionStarted)||e.state.readOnly||n!=s||r!=">"&&r!="/"||!Cn.isActiveAt(e.state,n,-1))return!1;let d=o(),{state:u}=d,f=u.changeByRange(h=>{var p;let{head:x}=h,g=yn(u).resolveInner(x-1,-1),b;if(g.name=="JSXStartTag"&&(g=g.parent),!(u.doc.sliceString(x-1,x)!=r||g.name=="JSXAttributeValue"&&g.to>x)){if(r==">"&&g.name=="JSXFragmentTag")return{range:h,changes:{from:x,insert:"</>"}};if(r=="/"&&g.name=="JSXStartCloseTag"){let y=g.parent,Q=y.parent;if(Q&&y.from==x-2&&((b=C1(u.doc,Q.firstChild,x))||((p=Q.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let k=`${b}>`;return{range:es.cursor(x+k.length,-1),changes:{from:x,insert:k}}}}else if(r==">"){let y=i4(g);if(y&&y.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(u.doc.sliceString(x,x+2))&&(b=C1(u.doc,y,x)))return{range:h,changes:{from:x,insert:`</${b}>`}}}}return{range:h}});return f.changes.empty?!1:(e.dispatch([d,u.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),d4=135,R1=1,u4=136,f4=137,Gv=2,O4=138,h4=3,m4=4,Dv=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],p4=58,x4=40,Lv=95,g4=91,bc=45,b4=46,v4=35,y4=37,S4=38,Q4=92,j4=10,w4=42;function fi(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function jh(e){return e>=48&&e<=57}function _1(e){return jh(e)||e>=97&&e<=102||e>=65&&e<=70}const Wv=(e,n,s)=>(r,o)=>{for(let d=!1,u=0,f=0;;f++){let{next:h}=r;if(fi(h)||h==bc||h==Lv||d&&jh(h))!d&&(h!=bc||f>0)&&(d=!0),u===f&&h==bc&&u++,r.advance();else if(h==Q4&&r.peek(1)!=j4){if(r.advance(),_1(r.next)){do r.advance();while(_1(r.next));r.next==32&&r.advance()}else r.next>-1&&r.advance();d=!0}else{d&&r.acceptToken(u==2&&o.canShift(Gv)?n:h==x4?s:e);break}}},k4=new Qt(Wv(u4,Gv,f4),{contextual:!0}),$4=new Qt(Wv(O4,h4,m4),{contextual:!0}),T4=new Qt(e=>{if(Dv.includes(e.peek(-1))){let{next:n}=e;(fi(n)||n==Lv||n==v4||n==b4||n==w4||n==g4||n==p4&&fi(e.peek(1))||n==bc||n==S4)&&e.acceptToken(d4)}}),N4=new Qt(e=>{if(!Dv.includes(e.peek(-1))){let{next:n}=e;if(n==y4&&(e.advance(),e.acceptToken(R1)),fi(n)){do e.advance();while(fi(e.next)||jh(e.next));e.acceptToken(R1)}}}),P4=Es({"AtKeyword import charset namespace keyframes media supports font-feature-values":A.definitionKeyword,"from to selector scope MatchFlag":A.keyword,NamespaceName:A.namespace,KeyframeName:A.labelName,KeyframeRangeName:A.operatorKeyword,TagName:A.tagName,ClassName:A.className,PseudoClassName:A.constant(A.className),IdName:A.labelName,"FeatureName PropertyName":A.propertyName,AttributeName:A.attributeName,NumberLiteral:A.number,KeywordQuery:A.keyword,UnaryQueryOp:A.operatorKeyword,"CallTag ValueName FontName":A.atom,VariableName:A.variableName,Callee:A.operatorKeyword,Unit:A.unit,"UniversalSelector NestingSelector":A.definitionOperator,"MatchOp CompareOp":A.compareOperator,"ChildOp SiblingOp, LogicOp":A.logicOperator,BinOp:A.arithmeticOperator,Important:A.modifier,Comment:A.blockComment,ColorLiteral:A.color,"ParenthesizedContent StringLiteral":A.string,":":A.punctuation,"PseudoOp #":A.derefOperator,"; , |":A.separator,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace}),z4={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},C4={__proto__:null,or:104,and:104,not:112,only:112,layer:186},R4={__proto__:null,selector:118,layer:182},_4={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},X4={__proto__:null,to:223},A4=ls.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#Cq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q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports Scope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},{term:136,get:e=>X4[e]||-1}],tokenPrec:2256});let Df=null;function Lf(){if(!Df&&typeof document=="object"&&document.body){let{style:e}=document.body,n=[],s=new Set;for(let r in e)r!="cssText"&&r!="cssFloat"&&typeof e[r]=="string"&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,o=>"-"+o.toLowerCase())),s.has(r)||(n.push(r),s.add(r)));Df=n.sort().map(r=>({type:"property",label:r,apply:r+": "}))}return Df||[]}const X1=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),A1=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),Z4=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),E4=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),sa=/^(\w[\w-]*|-\w[\w-]*|)$/,q4=/^-(-[\w-]*)?$/;function M4(e,n){var s;if((e.name=="("||e.type.isError)&&(e=e.parent||e),e.name!="ArgList")return!1;let r=(s=e.parent)===null||s===void 0?void 0:s.firstChild;return(r==null?void 0:r.name)!="Callee"?!1:n.sliceString(r.from,r.to)=="var"}const Z1=new HO,Y4=["Declaration"];function U4(e){for(let n=e;;){if(n.type.isTop)return n;if(!(n=n.parent))return e}}function Bv(e,n,s){if(n.to-n.from>4096){let r=Z1.get(n);if(r)return r;let o=[],d=new Set,u=n.cursor(Bc.IncludeAnonymous);if(u.firstChild())do for(let f of Bv(e,u.node,s))d.has(f.label)||(d.add(f.label),o.push(f));while(u.nextSibling());return Z1.set(n,o),o}else{let r=[],o=new Set;return n.cursor().iterate(d=>{var u;if(s(d)&&d.matchContext(Y4)&&((u=d.node.nextSibling)===null||u===void 0?void 0:u.name)==":"){let f=e.sliceString(d.from,d.to);o.has(f)||(o.add(f),r.push({label:f,type:"variable"}))}}),r}}const V4=e=>n=>{let{state:s,pos:r}=n,o=yn(s).resolveInner(r,-1),d=o.type.isError&&o.from==o.to-1&&s.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(d||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:Lf(),validFor:sa};if(o.name=="ValueName")return{from:o.from,options:A1,validFor:sa};if(o.name=="PseudoClassName")return{from:o.from,options:X1,validFor:sa};if(e(o)||(n.explicit||d)&&M4(o,s.doc))return{from:e(o)||d?o.from:r,options:Bv(s.doc,U4(o),e),validFor:q4};if(o.name=="TagName"){for(let{parent:h}=o;h;h=h.parent)if(h.name=="Block")return{from:o.from,options:Lf(),validFor:sa};return{from:o.from,options:Z4,validFor:sa}}if(o.name=="AtKeyword")return{from:o.from,options:E4,validFor:sa};if(!n.explicit)return null;let u=o.resolve(r),f=u.childBefore(r);return f&&f.name==":"&&u.name=="PseudoClassSelector"?{from:r,options:X1,validFor:sa}:f&&f.name==":"&&u.name=="Declaration"||u.name=="ArgList"?{from:r,options:A1,validFor:sa}:u.name=="Block"||u.name=="Styles"?{from:r,options:Lf(),validFor:sa}:null},G4=V4(e=>e.name=="VariableName"),Mc=vi.define({name:"css",parser:A4.configure({props:[Jl.add({Declaration:Xl()}),qs.add({"Block KeyframeList":Hc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function Hv(){return new zs(Mc,Mc.data.of({autocomplete:G4}))}const D4=55,L4=1,W4=56,B4=2,H4=57,I4=3,E1=4,F4=5,wh=6,Iv=7,Fv=8,Kv=9,Jv=10,K4=11,J4=12,ez=13,Wf=58,tz=14,nz=15,q1=59,ey=21,az=23,ty=24,sz=25,RO=27,ny=28,lz=29,rz=32,iz=35,oz=37,cz=38,dz=0,uz=1,fz={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Oz={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},M1={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function hz(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}let Y1=null,U1=null,V1=0;function _O(e,n){let s=e.pos+n;if(V1==s&&U1==e)return Y1;let r=e.peek(n),o="";for(;hz(r);)o+=String.fromCharCode(r),r=e.peek(++n);return U1=e,V1=s,Y1=o?o.toLowerCase():r==mz||r==pz?void 0:null}const ay=60,Yc=62,kh=47,mz=63,pz=33,xz=45;function G1(e,n){this.name=e,this.parent=n}const gz=[wh,Jv,Iv,Fv,Kv],bz=new Qh({start:null,shift(e,n,s,r){return gz.indexOf(n)>-1?new G1(_O(r,1)||"",e):e},reduce(e,n){return n==ey&&e?e.parent:e},reuse(e,n,s,r){let o=n.type.id;return o==wh||o==oz?new G1(_O(r,1)||"",e):e},strict:!1}),vz=new Qt((e,n)=>{if(e.next!=ay){e.next<0&&n.context&&e.acceptToken(Wf);return}e.advance();let s=e.next==kh;s&&e.advance();let r=_O(e,0);if(r===void 0)return;if(!r)return e.acceptToken(s?nz:tz);let o=n.context?n.context.name:null;if(s){if(r==o)return e.acceptToken(K4);if(o&&Oz[o])return e.acceptToken(Wf,-2);if(n.dialectEnabled(dz))return e.acceptToken(J4);for(let d=n.context;d;d=d.parent)if(d.name==r)return;e.acceptToken(ez)}else{if(r=="script")return e.acceptToken(Iv);if(r=="style")return e.acceptToken(Fv);if(r=="textarea")return e.acceptToken(Kv);if(fz.hasOwnProperty(r))return e.acceptToken(Jv);o&&M1[o]&&M1[o][r]?e.acceptToken(Wf,-1):e.acceptToken(wh)}},{contextual:!0}),yz=new Qt(e=>{for(let n=0,s=0;;s++){if(e.next<0){s&&e.acceptToken(q1);break}if(e.next==xz)n++;else if(e.next==Yc&&n>=2){s>=3&&e.acceptToken(q1,-2);break}else n=0;e.advance()}});function Sz(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const Qz=new Qt((e,n)=>{if(e.next==kh&&e.peek(1)==Yc){let s=n.dialectEnabled(uz)||Sz(n.context);e.acceptToken(s?F4:E1,2)}else e.next==Yc&&e.acceptToken(E1,1)});function $h(e,n,s){let r=2+e.length;return new Qt(o=>{for(let d=0,u=0,f=0;;f++){if(o.next<0){f&&o.acceptToken(n);break}if(d==0&&o.next==ay||d==1&&o.next==kh||d>=2&&d<r&&o.next==e.charCodeAt(d-2))d++,u++;else if(d==r&&o.next==Yc){f>u?o.acceptToken(n,-u):o.acceptToken(s,-(u-2));break}else if((o.next==10||o.next==13)&&f){o.acceptToken(n,1);break}else d=u=0;o.advance()}})}const jz=$h("script",D4,L4),wz=$h("style",W4,B4),kz=$h("textarea",H4,I4),$z=Es({"Text RawText IncompleteTag IncompleteCloseTag":A.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":A.angleBracket,TagName:A.tagName,"MismatchedCloseTag/TagName":[A.tagName,A.invalid],AttributeName:A.attributeName,"AttributeValue UnquotedAttributeValue":A.attributeValue,Is:A.definitionOperator,"EntityReference CharacterReference":A.character,Comment:A.blockComment,ProcessingInst:A.processingInstruction,DoctypeDecl:A.documentMeta}),Tz=ls.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#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ateData:",c~O!_OS~OUSOVPOWQOXROYTO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O|_O!eZO~OgaO~OgbO~OgcO~OgdO~OgeO~O!XfOPmP![mP~O!YiOQpP![pP~O!ZlORsP![sP~OUSOVPOWQOXROYTOZqO[]O][O^^O_^Oa^Ob^Oc^Od^Oy^O!eZO~O![rO~P#gO!]sO!fuO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:bz,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[$z],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^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ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!dpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[jz,wz,kz,Qz,vz,yz,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function sy(e,n){let s=Object.create(null);for(let r of e.getChildren(ty)){let o=r.getChild(sz),d=r.getChild(RO)||r.getChild(ny);o&&(s[n.read(o.from,o.to)]=d?d.type.id==RO?n.read(d.from+1,d.to-1):n.read(d.from,d.to):"")}return s}function D1(e,n){let s=e.getChild(az);return s?n.read(s.from,s.to):" "}function Bf(e,n,s){let r;for(let o of s)if(!o.attrs||o.attrs(r||(r=sy(e.node.parent.firstChild,n))))return{parser:o.parser,bracketed:!0};return null}function ly(e=[],n=[]){let s=[],r=[],o=[],d=[];for(let f of e)(f.tag=="script"?s:f.tag=="style"?r:f.tag=="textarea"?o:d).push(f);let u=n.length?Object.create(null):null;for(let f of n)(u[f.name]||(u[f.name]=[])).push(f);return B0((f,h)=>{let p=f.type.id;if(p==lz)return Bf(f,h,s);if(p==rz)return Bf(f,h,r);if(p==iz)return Bf(f,h,o);if(p==ey&&d.length){let x=f.node,g=x.firstChild,b=g&&D1(g,h),y;if(b){for(let Q of d)if(Q.tag==b&&(!Q.attrs||Q.attrs(y||(y=sy(g,h))))){let k=x.lastChild,w=k.type.id==cz?k.from:x.to;if(w>g.to)return{parser:Q.parser,overlay:[{from:g.to,to:w}]}}}}if(u&&p==ty){let x=f.node,g;if(g=x.firstChild){let b=u[h.read(g.from,g.to)];if(b)for(let y of b){if(y.tagName&&y.tagName!=D1(x.parent,h))continue;let Q=x.lastChild;if(Q.type.id==RO){let k=Q.from+1,w=Q.lastChild,j=Q.to-(w&&w.isError?0:1);if(j>k)return{parser:y.parser,overlay:[{from:k,to:j}],bracketed:!0}}else if(Q.type.id==ny)return{parser:y.parser,overlay:[{from:Q.from,to:Q.to}]}}}}return null})}const ti=["_blank","_self","_top","_parent"],Hf=["ascii","utf-8","utf-16","latin1","latin1"],If=["get","post","put","delete"],Ff=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Wt=["true","false"],ge={},Nz={a:{attrs:{href:null,ping:null,type:null,media:null,target:ti,hreflang:null}},abbr:ge,address:ge,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ge,aside:ge,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ge,base:{attrs:{href:null,target:ti}},bdi:ge,bdo:ge,blockquote:{attrs:{cite:null}},body:ge,br:ge,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Ff,formmethod:If,formnovalidate:["novalidate"],formtarget:ti,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ge,center:ge,cite:ge,code:ge,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ge,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ge,div:ge,dl:ge,dt:ge,em:ge,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ge,figure:ge,footer:ge,form:{attrs:{action:null,name:null,"accept-charset":Hf,autocomplete:["on","off"],enctype:Ff,method:If,novalidate:["novalidate"],target:ti}},h1:ge,h2:ge,h3:ge,h4:ge,h5:ge,h6:ge,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ge,hgroup:ge,hr:ge,html:{attrs:{manifest:null}},i:ge,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Ff,formmethod:If,formnovalidate:["novalidate"],formtarget:ti,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ge,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ge,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ge,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Hf,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ge,noscript:ge,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ge,param:{attrs:{name:null,value:null}},pre:ge,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ge,rt:ge,ruby:ge,samp:ge,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Hf}},section:ge,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ge,source:{attrs:{src:null,type:null,media:null}},span:ge,strong:ge,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ge,summary:ge,sup:ge,table:ge,tbody:ge,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ge,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ge,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ge,time:{attrs:{datetime:null}},title:ge,tr:ge,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ge,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ge},ry={accesskey:null,class:null,contenteditable:Wt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Wt,autocorrect:Wt,autocapitalize:Wt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Wt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Wt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Wt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Wt,"aria-hidden":Wt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Wt,"aria-multiselectable":Wt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Wt,"aria-relevant":null,"aria-required":Wt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},iy="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of iy)ry[e]=null;class Oi{constructor(n,s){this.tags={...Nz,...n},this.globalAttrs={...ry,...s},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Oi.default=new Oi;function Il(e,n,s=e.length){if(!n)return"";let r=n.firstChild,o=r&&r.getChild("TagName");return o?e.sliceString(o.from,Math.min(o.to,s)):""}function Fl(e,n=!1){for(;e;e=e.parent)if(e.name=="Element")if(n)n=!1;else return e;return null}function oy(e,n,s){let r=s.tags[Il(e,Fl(n))];return(r==null?void 0:r.children)||s.allTags}function Th(e,n){let s=[];for(let r=Fl(n);r&&!r.type.isTop;r=Fl(r.parent)){let o=Il(e,r);if(o&&r.lastChild.name=="CloseTag")break;o&&s.indexOf(o)<0&&(n.name=="EndTag"||n.from>=r.firstChild.to)&&s.push(o)}return s}const cy=/^[:\-\.\w\u00b7-\uffff]*$/;function L1(e,n,s,r,o){let d=/\s*>/.test(e.sliceDoc(o,o+5))?"":">",u=Fl(s,s.name=="StartTag"||s.name=="TagName");return{from:r,to:o,options:oy(e.doc,u,n).map(f=>({label:f,type:"type"})).concat(Th(e.doc,s).map((f,h)=>({label:"/"+f,apply:"/"+f+d,type:"type",boost:99-h}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function W1(e,n,s,r){let o=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:s,to:r,options:Th(e.doc,n).map((d,u)=>({label:d,apply:d+o,type:"type",boost:99-u})),validFor:cy}}function Pz(e,n,s,r){let o=[],d=0;for(let u of oy(e.doc,s,n))o.push({label:"<"+u,type:"type"});for(let u of Th(e.doc,s))o.push({label:"</"+u+">",type:"type",boost:99-d++});return{from:r,to:r,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function zz(e,n,s,r,o){let d=Fl(s),u=d?n.tags[Il(e.doc,d)]:null,f=u&&u.attrs?Object.keys(u.attrs):[],h=u&&u.globalAttrs===!1?f:f.length?f.concat(n.globalAttrNames):n.globalAttrNames;return{from:r,to:o,options:h.map(p=>({label:p,type:"property"})),validFor:cy}}function Cz(e,n,s,r,o){var d;let u=(d=s.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),f=[],h;if(u){let p=e.sliceDoc(u.from,u.to),x=n.globalAttrs[p];if(!x){let g=Fl(s),b=g?n.tags[Il(e.doc,g)]:null;x=(b==null?void 0:b.attrs)&&b.attrs[p]}if(x){let g=e.sliceDoc(r,o).toLowerCase(),b='"',y='"';/^['"]/.test(g)?(h=g[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",y=e.sliceDoc(o,o+1)==g[0]?"":g[0],g=g.slice(1),r++):h=/^[^\s<>='"]*$/;for(let Q of x)f.push({label:Q,apply:b+Q+y,type:"constant"})}}return{from:r,to:o,options:f,validFor:h}}function dy(e,n){let{state:s,pos:r}=n,o=yn(s).resolveInner(r,-1),d=o.resolve(r);for(let u=r,f;d==o&&(f=o.childBefore(u));){let h=f.lastChild;if(!h||!h.type.isError||h.from<h.to)break;d=o=f,u=h.from}return o.name=="TagName"?o.parent&&/CloseTag$/.test(o.parent.name)?W1(s,o,o.from,r):L1(s,e,o,o.from,r):o.name=="StartTag"||o.name=="IncompleteTag"?L1(s,e,o,r,r):o.name=="StartCloseTag"||o.name=="IncompleteCloseTag"?W1(s,o,r,r):o.name=="OpenTag"||o.name=="SelfClosingTag"||o.name=="AttributeName"?zz(s,e,o,o.name=="AttributeName"?o.from:r,r):o.name=="Is"||o.name=="AttributeValue"||o.name=="UnquotedAttributeValue"?Cz(s,e,o,o.name=="Is"?r:o.from,r):n.explicit&&(d.name=="Element"||d.name=="Text"||d.name=="Document")?Pz(s,e,o,r):null}function Rz(e){return dy(Oi.default,e)}function _z(e){let{extraTags:n,extraGlobalAttributes:s}=e,r=s||n?new Oi(n,s):Oi.default;return o=>dy(r,o)}const Xz=Cn.parser.configure({top:"SingleExpression"}),uy=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:qv.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Mv.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Yv.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:Xz},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Cn.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:Mc.parser}],fy=[{name:"style",parser:Mc.parser.configure({top:"Styles"})}].concat(iy.map(e=>({name:e,parser:Cn.parser}))),Oy=vi.define({name:"html",parser:Tz.configure({props:[Jl.add({Element(e){let n=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+n[0].length?e.continue():e.lineIndent(e.node.from)+(n[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let n=null,s;for(let r=e.node;;){let o=r.lastChild;if(!o||o.name!="Element"||o.to!=r.to)break;n=r=o}return n&&!((s=n.lastChild)&&(s.name=="CloseTag"||s.name=="SelfClosingTag"))?e.lineIndent(n.from)+e.unit:null}}),qs.add({Element(e){let n=e.firstChild,s=e.lastChild;return!n||n.name!="OpenTag"?null:{from:n.to,to:s.name=="CloseTag"?s.from:e.to}}}),Lj.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),vc=Oy.configure({wrap:ly(uy,fy)});function hy(e={}){let n="",s;e.matchClosingTags===!1&&(n="noMatch"),e.selfClosingTags===!0&&(n=(n?n+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(s=ly((e.nestedLanguages||[]).concat(uy),(e.nestedAttributes||[]).concat(fy)));let r=s?Oy.configure({wrap:s,dialect:n}):n?vc.configure({dialect:n}):vc;return new zs(r,[vc.data.of({autocomplete:_z(e)}),e.autoCloseTags!==!1?Az:[],CO().support,Hv().support])}const B1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Az=Vl.inputHandler.of((e,n,s,r,o)=>{if(e.composing||e.state.readOnly||n!=s||r!=">"&&r!="/"||!vc.isActiveAt(e.state,n,-1))return!1;let d=o(),{state:u}=d,f=u.changeByRange(h=>{var p,x,g;let b=u.doc.sliceString(h.from-1,h.to)==r,{head:y}=h,Q=yn(u).resolveInner(y,-1),k;if(b&&r==">"&&Q.name=="EndTag"){let w=Q.parent;if(((x=(p=w.parent)===null||p===void 0?void 0:p.lastChild)===null||x===void 0?void 0:x.name)!="CloseTag"&&(k=Il(u.doc,w.parent,y))&&!B1.has(k)){let j=y+(u.doc.sliceString(y,y+1)===">"?1:0),P=`</${k}>`;return{range:h,changes:{from:y,to:j,insert:P}}}}else if(b&&r=="/"&&Q.name=="IncompleteCloseTag"){let w=Q.parent;if(Q.from==y-2&&((g=w.lastChild)===null||g===void 0?void 0:g.name)!="CloseTag"&&(k=Il(u.doc,w,y))&&!B1.has(k)){let j=y+(u.doc.sliceString(y,y+1)===">"?1:0),P=`${k}>`;return{range:es.cursor(y+P.length,-1),changes:{from:y,to:j,insert:P}}}}return{range:h}});return f.changes.empty?!1:(e.dispatch([d,u.update(f,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Zz=Es({String:A.string,Number:A.number,"True False":A.bool,PropertyName:A.propertyName,Null:A.null,", :":A.separator,"[ ]":A.squareBracket,"{ }":A.brace}),Ez=ls.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Zz],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),qz=vi.define({name:"json",parser:Ez.configure({props:[Jl.add({Object:Xl({except:/^\s*\}/}),Array:Xl({except:/^\s*\]/})}),qs.add({"Object Array":Hc})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Mz(){return new zs(qz)}class Uc{static create(n,s,r,o,d){let u=o+(o<<8)+n+(s<<4)|0;return new Uc(n,s,r,u,d,[],[])}constructor(n,s,r,o,d,u,f){this.type=n,this.value=s,this.from=r,this.hash=o,this.end=d,this.children=u,this.positions=f,this.hashProp=[[da.contextHash,o]]}addChild(n,s){n.prop(da.contextHash)!=this.hash&&(n=new gn(n.type,n.children,n.positions,n.length,this.hashProp)),this.children.push(n),this.positions.push(s)}toTree(n,s=this.end){let r=this.children.length-1;return r>=0&&(s=Math.max(s,this.positions[r]+this.children[r].length+this.from)),new gn(n.types[this.type],this.children,this.positions,s-this.from).balance({makeTree:(o,d,u)=>new gn(bi.none,o,d,u,this.hashProp)})}}var ce;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(ce||(ce={}));class Yz{constructor(n,s){this.start=n,this.content=s,this.marks=[],this.parsers=[]}}class Uz{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let n=this.skipSpace(this.basePos);this.indent=this.countIndent(n,this.pos,this.indent),this.pos=n,this.next=n==this.text.length?-1:this.text.charCodeAt(n)}skipSpace(n){return si(this.text,n)}reset(n){for(this.text=n,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(n){this.basePos=n,this.baseIndent=this.countIndent(n,this.pos,this.indent)}moveBaseColumn(n){this.baseIndent=n,this.basePos=this.findColumn(n)}addMarker(n){this.markers.push(n)}countIndent(n,s=0,r=0){for(let o=s;o<n;o++)r+=this.text.charCodeAt(o)==9?4-r%4:1;return r}findColumn(n){let s=0;for(let r=0;s<this.text.length&&r<n;s++)r+=this.text.charCodeAt(s)==9?4-r%4:1;return s}scrub(){if(!this.baseIndent)return this.text;let n="";for(let s=0;s<this.basePos;s++)n+=" ";return n+this.text.slice(this.basePos)}}function H1(e,n,s){if(s.pos==s.text.length||e!=n.block&&s.indent>=n.stack[s.depth+1].value+s.baseIndent)return!0;if(s.indent>=s.baseIndent+4)return!1;let r=(e.type==ce.OrderedList?zh:Ph)(s,n,!1);return r>0&&(e.type!=ce.BulletList||Nh(s,n,!1)<0)&&s.text.charCodeAt(s.pos+r-1)==e.value}const my={[ce.Blockquote](e,n,s){return s.next!=62?!1:(s.markers.push(Ee(ce.QuoteMark,n.lineStart+s.pos,n.lineStart+s.pos+1)),s.moveBase(s.pos+(On(s.text.charCodeAt(s.pos+1))?2:1)),e.end=n.lineStart+s.text.length,!0)},[ce.ListItem](e,n,s){return s.indent<s.baseIndent+e.value&&s.next>-1?!1:(s.moveBaseColumn(s.baseIndent+e.value),!0)},[ce.OrderedList]:H1,[ce.BulletList]:H1,[ce.Document](){return!0}};function On(e){return e==32||e==9||e==10||e==13}function si(e,n=0){for(;n<e.length&&On(e.charCodeAt(n));)n++;return n}function I1(e,n,s){for(;n>s&&On(e.charCodeAt(n-1));)n--;return n}function py(e){if(e.next!=96&&e.next!=126)return-1;let n=e.pos+1;for(;n<e.text.length&&e.text.charCodeAt(n)==e.next;)n++;if(n<e.pos+3)return-1;if(e.next==96){for(let s=n;s<e.text.length;s++)if(e.text.charCodeAt(s)==96)return-1}return n}function xy(e){return e.next!=62?-1:e.text.charCodeAt(e.pos+1)==32?2:1}function Nh(e,n,s){if(e.next!=42&&e.next!=45&&e.next!=95)return-1;let r=1;for(let o=e.pos+1;o<e.text.length;o++){let d=e.text.charCodeAt(o);if(d==e.next)r++;else if(!On(d))return-1}return s&&e.next==45&&vy(e)>-1&&e.depth==n.stack.length&&n.parser.leafBlockParsers.indexOf(jy.SetextHeading)>-1||r<3?-1:1}function gy(e,n){for(let s=e.stack.length-1;s>=0;s--)if(e.stack[s].type==n)return!0;return!1}function Ph(e,n,s){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||On(e.text.charCodeAt(e.pos+1)))&&(!s||gy(n,ce.BulletList)||e.skipSpace(e.pos+2)<e.text.length)?1:-1}function zh(e,n,s){let r=e.pos,o=e.next;for(;o>=48&&o<=57;){r++;if(r==e.text.length)return-1;o=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||o!=46&&o!=41||r<e.text.length-1&&!On(e.text.charCodeAt(r+1))||s&&!gy(n,ce.OrderedList)&&(e.skipSpace(r+1)==e.text.length||r>e.pos+1||e.next!=49)?-1:r+1-e.pos}function by(e){if(e.next!=35)return-1;let n=e.pos+1;for(;n<e.text.length&&e.text.charCodeAt(n)==35;)n++;if(n<e.text.length&&e.text.charCodeAt(n)!=32)return-1;let s=n-e.pos;return s>6?-1:s}function vy(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let n=e.pos+1;for(;n<e.text.length&&e.text.charCodeAt(n)==e.next;)n++;let s=n;for(;n<e.text.length&&On(e.text.charCodeAt(n));)n++;return n==e.text.length?s:-1}const XO=/^[ \t]*$/,yy=/-->/,Sy=/\?>/,AO=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,yy],[/^\s*<\?/,Sy],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,XO],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,XO]];function Qy(e,n,s){if(e.next!=60)return-1;let r=e.text.slice(e.pos);for(let o=0,d=AO.length-(s?1:0);o<d;o++)if(AO[o][0].test(r))return o;return-1}function F1(e,n){let s=e.countIndent(n,e.pos,e.indent),r=e.countIndent(e.skipSpace(n),n,s);return r>=s+5?s+1:r}function La(e,n,s){let r=e.length-1;r>=0&&e[r].to==n&&e[r].type==ce.CodeText?e[r].to=s:e.push(Ee(ce.CodeText,n,s))}const lc={LinkReference:void 0,IndentedCode(e,n){let s=n.baseIndent+4;if(n.indent<s)return!1;let r=n.findColumn(s),o=e.lineStart+r,d=e.lineStart+n.text.length,u=[],f=[];for(La(u,o,d);e.nextLine()&&n.depth>=e.stack.length;)if(n.pos==n.text.length){La(f,e.lineStart-1,e.lineStart);for(let h of n.markers)f.push(h)}else{if(n.indent<s)break;{if(f.length){for(let p of f)p.type==ce.CodeText?La(u,p.from,p.to):u.push(p);f=[]}La(u,e.lineStart-1,e.lineStart);for(let p of n.markers)u.push(p);d=e.lineStart+n.text.length;let h=e.lineStart+n.findColumn(n.baseIndent+4);h<d&&La(u,h,d)}}return f.length&&(f=f.filter(h=>h.type!=ce.CodeText),f.length&&(n.markers=f.concat(n.markers))),e.addNode(e.buffer.writeElements(u,-o).finish(ce.CodeBlock,d-o),o),!0},FencedCode(e,n){let s=py(n);if(s<0)return!1;let r=e.lineStart+n.pos,o=n.next,d=s-n.pos,u=n.skipSpace(s),f=I1(n.text,n.text.length,u),h=[Ee(ce.CodeMark,r,r+d)];u<f&&h.push(Ee(ce.CodeInfo,e.lineStart+u,e.lineStart+f));for(let p=!0,x=!0,g=!1;e.nextLine()&&n.depth>=e.stack.length;p=!1){let b=n.pos;if(n.indent-n.baseIndent<4)for(;b<n.text.length&&n.text.charCodeAt(b)==o;)b++;if(b-n.pos>=d&&n.skipSpace(b)==n.text.length){for(let y of n.markers)h.push(y);x&&g&&La(h,e.lineStart-1,e.lineStart),h.push(Ee(ce.CodeMark,e.lineStart+n.pos,e.lineStart+b)),e.nextLine();break}else{g=!0,p||(La(h,e.lineStart-1,e.lineStart),x=!1);for(let k of n.markers)h.push(k);let y=e.lineStart+n.basePos,Q=e.lineStart+n.text.length;y<Q&&(La(h,y,Q),x=!1)}}return e.addNode(e.buffer.writeElements(h,-r).finish(ce.FencedCode,e.prevLineEnd()-r),r),!0},Blockquote(e,n){let s=xy(n);return s<0?!1:(e.startContext(ce.Blockquote,n.pos),e.addNode(ce.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1),n.moveBase(n.pos+s),null)},HorizontalRule(e,n){if(Nh(n,e,!1)<0)return!1;let s=e.lineStart+n.pos;return e.nextLine(),e.addNode(ce.HorizontalRule,s),!0},BulletList(e,n){let s=Ph(n,e,!1);if(s<0)return!1;e.block.type!=ce.BulletList&&e.startContext(ce.BulletList,n.basePos,n.next);let r=F1(n,n.pos+1);return e.startContext(ce.ListItem,n.basePos,r-n.baseIndent),e.addNode(ce.ListMark,e.lineStart+n.pos,e.lineStart+n.pos+s),n.moveBaseColumn(r),null},OrderedList(e,n){let s=zh(n,e,!1);if(s<0)return!1;e.block.type!=ce.OrderedList&&e.startContext(ce.OrderedList,n.basePos,n.text.charCodeAt(n.pos+s-1));let r=F1(n,n.pos+s);return e.startContext(ce.ListItem,n.basePos,r-n.baseIndent),e.addNode(ce.ListMark,e.lineStart+n.pos,e.lineStart+n.pos+s),n.moveBaseColumn(r),null},ATXHeading(e,n){let s=by(n);if(s<0)return!1;let r=n.pos,o=e.lineStart+r,d=I1(n.text,n.text.length,r),u=d;for(;u>r&&n.text.charCodeAt(u-1)==n.next;)u--;(u==d||u==r||!On(n.text.charCodeAt(u-1)))&&(u=n.text.length);let f=e.buffer.write(ce.HeaderMark,0,s).writeElements(e.parser.parseInline(n.text.slice(r+s+1,u),o+s+1),-o);u<n.text.length&&f.write(ce.HeaderMark,u-r,d-r);let h=f.finish(ce.ATXHeading1-1+s,n.text.length-r);return e.nextLine(),e.addNode(h,o),!0},HTMLBlock(e,n){let s=Qy(n,e,!1);if(s<0)return!1;let r=e.lineStart+n.pos,o=AO[s][1],d=[],u=o!=XO;for(;!o.test(n.text)&&e.nextLine();){if(n.depth<e.stack.length){u=!1;break}for(let p of n.markers)d.push(p)}u&&e.nextLine();let f=o==yy?ce.CommentBlock:o==Sy?ce.ProcessingInstructionBlock:ce.HTMLBlock,h=e.prevLineEnd();return e.addNode(e.buffer.writeElements(d,-r).finish(f,h-r),r),!0},SetextHeading:void 0};class Vz{constructor(n){this.stage=0,this.elts=[],this.pos=0,this.start=n.start,this.advance(n.content)}nextLine(n,s,r){if(this.stage==-1)return!1;let o=r.content+`
|
|
597
|
-
`+s.scrub(),d=this.advance(o);return d>-1&&d<o.length?this.complete(n,r,d):!1}finish(n,s){return(this.stage==2||this.stage==3)&&si(s.content,this.pos)==s.content.length?this.complete(n,s,s.content.length):!1}complete(n,s,r){return n.addLeafElement(s,Ee(ce.LinkReference,this.start,this.start+r,this.elts)),!0}nextStage(n){return n?(this.pos=n.to-this.start,this.elts.push(n),this.stage++,!0):(n===!1&&(this.stage=-1),!1)}advance(n){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(Ry(n,this.pos,this.start,!0)))return-1;if(n.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(Ee(ce.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(zy(n,si(n,this.pos),this.start)))return-1}else if(this.stage==2){let s=si(n,this.pos),r=0;if(s>this.pos){let o=Cy(n,s,this.start);if(o){let d=Kf(n,o.to-this.start);d>0&&(this.nextStage(o),r=d)}}return r||(r=Kf(n,this.pos)),r>0&&r<n.length?r:-1}else return Kf(n,this.pos)}}}function Kf(e,n){for(;n<e.length;n++){let s=e.charCodeAt(n);if(s==10)break;if(!On(s))return-1}return n}class Gz{nextLine(n,s,r){let o=s.depth<n.stack.length?-1:vy(s),d=s.next;if(o<0)return!1;let u=Ee(ce.HeaderMark,n.lineStart+s.pos,n.lineStart+o);return n.nextLine(),n.addLeafElement(r,Ee(d==61?ce.SetextHeading1:ce.SetextHeading2,r.start,n.prevLineEnd(),[...n.parser.parseInline(r.content,r.start),u])),!0}finish(){return!1}}const jy={LinkReference(e,n){return n.content.charCodeAt(0)==91?new Vz(n):null},SetextHeading(){return new Gz}},Dz=[(e,n)=>by(n)>=0,(e,n)=>py(n)>=0,(e,n)=>xy(n)>=0,(e,n)=>Ph(n,e,!0)>=0,(e,n)=>zh(n,e,!0)>=0,(e,n)=>Nh(n,e,!0)>=0,(e,n)=>Qy(n,e,!0)>=0],Lz={text:"",end:0};class Wz{constructor(n,s,r,o){this.parser=n,this.input=s,this.ranges=o,this.line=new Uz,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=o[o.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=o[0].from,this.block=Uc.create(ce.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=r.length?new Iz(r,s):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:n}=this;for(;;){for(let r=0;;){let o=n.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;r<n.markers.length&&(!o||n.markers[r].from<o.end);){let d=n.markers[r++];this.addNode(d.type,d.from,d.to)}if(!o)break;this.finishContext()}if(n.pos<n.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(n.basePos))return null;e:for(;;){for(let r of this.parser.blockParsers)if(r){let o=r(this,n);if(o!=!1){if(o==!0)return null;n.forward();continue e}}break}let s=new Yz(this.lineStart+n.pos,n.text.slice(n.pos));for(let r of this.parser.leafBlockParsers)if(r){let o=r(this,s);o&&s.parsers.push(o)}e:for(;this.nextLine()&&n.pos!=n.text.length;){if(n.indent<n.baseIndent+4){for(let r of this.parser.endLeafBlock)if(r(this,n,s))break e}for(let r of s.parsers)if(r.nextLine(this,n,s))return null;s.content+=`
|
|
598
|
-
`+n.scrub();for(let r of n.markers)s.marks.push(r)}return this.finishLeaf(s),null}stopAt(n){if(this.stoppedAt!=null&&this.stoppedAt<n)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=n}reuseFragment(n){if(!this.fragments.moveTo(this.absoluteLineStart+n,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let s=this.fragments.takeNodes(this);return s?(this.absoluteLineStart+=s,this.lineStart=_y(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(n=this.depth-1){return this.parser.nodeSet.types[this.stack[n].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(n){let s=Lz;if(s.end=n,n>=this.to)s.text="";else if(s.text=this.lineChunkAt(n),s.end+=s.text.length,this.ranges.length>1){let r=this.absoluteLineStart,o=this.rangeI;for(;this.ranges[o].to<s.end;){o++;let d=this.ranges[o].from,u=this.lineChunkAt(d);s.end=d+u.length,s.text=s.text.slice(0,this.ranges[o-1].to-r)+u,r=s.end-s.text.length}}return s}readLine(){let{line:n}=this,{text:s,end:r}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=r,n.reset(s);n.depth<this.stack.length;n.depth++){let o=this.stack[n.depth],d=this.parser.skipContextMarkup[o.type];if(!d)throw new Error("Unhandled block context "+ce[o.type]);let u=this.line.markers.length;if(!d(o,this,n)){this.line.markers.length>u&&(o.end=this.line.markers[this.line.markers.length-1].to),n.forward();break}n.forward()}}lineChunkAt(n){let s=this.input.chunk(n),r;if(this.input.lineChunks)r=s==`
|
|
599
|
-
`?"":s;else{let o=s.indexOf(`
|
|
600
|
-
`);r=o<0?s:s.slice(0,o)}return n+r.length>this.to?r.slice(0,this.to-n):r}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(n,s,r=0){this.block=Uc.create(n,r,this.lineStart+s,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(n,s,r=0){this.startContext(this.parser.getNodeType(n),s,r)}addNode(n,s,r){typeof n=="number"&&(n=new gn(this.parser.nodeSet.types[n],Kl,Kl,(r??this.prevLineEnd())-s)),this.block.addChild(n,s-this.block.from)}addElement(n){this.block.addChild(n.toTree(this.parser.nodeSet),n.from-this.block.from)}addLeafElement(n,s){this.addNode(this.buffer.writeElements(EO(s.children,n.marks),-s.from).finish(s.type,s.to-s.from),s.from)}finishContext(){let n=this.stack.pop(),s=this.stack[this.stack.length-1];s.addChild(n.toTree(this.parser.nodeSet),n.from-s.from),this.block=s}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(n){return this.ranges.length>1?wy(this.ranges,0,n.topNode,this.ranges[0].from,this.reusePlaceholders):n}finishLeaf(n){for(let r of n.parsers)if(r.finish(this,n))return;let s=EO(this.parser.parseInline(n.content,n.start),n.marks);this.addNode(this.buffer.writeElements(s,-n.start).finish(ce.Paragraph,n.content.length),n.start)}elt(n,s,r,o){return typeof n=="string"?Ee(this.parser.getNodeType(n),s,r,o):new Ty(n,s)}get buffer(){return new $y(this.parser.nodeSet)}}function wy(e,n,s,r,o){let d=e[n].to,u=[],f=[],h=s.from+r;function p(x,g){for(;g?x>=d:x>d;){let b=e[n+1].from-d;r+=b,x+=b,n++,d=e[n].to}}for(let x=s.firstChild;x;x=x.nextSibling){p(x.from+r,!0);let g=x.from+r,b,y=o.get(x.tree);y?b=y:x.to+r>d?(b=wy(e,n,x,r,o),p(x.to+r,!1)):b=x.toTree(),u.push(b),f.push(g-h)}return p(s.to+r,!1),new gn(s.type,u,f,s.to+r-h,s.tree?s.tree.propValues:void 0)}class id extends V0{constructor(n,s,r,o,d,u,f,h,p){super(),this.nodeSet=n,this.blockParsers=s,this.leafBlockParsers=r,this.blockNames=o,this.endLeafBlock=d,this.skipContextMarkup=u,this.inlineParsers=f,this.inlineNames=h,this.wrappers=p,this.nodeTypes=Object.create(null);for(let x of n.types)this.nodeTypes[x.name]=x.id}createParse(n,s,r){let o=new Wz(this,n,s,r);for(let d of this.wrappers)o=d(o,n,s,r);return o}configure(n){let s=ZO(n);if(!s)return this;let{nodeSet:r,skipContextMarkup:o}=this,d=this.blockParsers.slice(),u=this.leafBlockParsers.slice(),f=this.blockNames.slice(),h=this.inlineParsers.slice(),p=this.inlineNames.slice(),x=this.endLeafBlock.slice(),g=this.wrappers;if(ni(s.defineNodes)){o=Object.assign({},o);let b=r.types.slice(),y;for(let Q of s.defineNodes){let{name:k,block:w,composite:j,style:P}=typeof Q=="string"?{name:Q}:Q;if(b.some(G=>G.name==k))continue;j&&(o[b.length]=(G,Z,C)=>j(Z,C,G.value));let z=b.length,_=j?["Block","BlockContext"]:w?z>=ce.ATXHeading1&&z<=ce.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;b.push(bi.define({id:z,name:k,props:_&&[[da.group,_]]})),P&&(y||(y={}),Array.isArray(P)||P instanceof Wj?y[k]=P:Object.assign(y,P))}r=new BO(b),y&&(r=r.extend(Es(y)))}if(ni(s.props)&&(r=r.extend(...s.props)),ni(s.remove))for(let b of s.remove){let y=this.blockNames.indexOf(b),Q=this.inlineNames.indexOf(b);y>-1&&(d[y]=u[y]=void 0),Q>-1&&(h[Q]=void 0)}if(ni(s.parseBlock))for(let b of s.parseBlock){let y=f.indexOf(b.name);if(y>-1)d[y]=b.parse,u[y]=b.leaf;else{let Q=b.before?rc(f,b.before):b.after?rc(f,b.after)+1:f.length-1;d.splice(Q,0,b.parse),u.splice(Q,0,b.leaf),f.splice(Q,0,b.name)}b.endLeaf&&x.push(b.endLeaf)}if(ni(s.parseInline))for(let b of s.parseInline){let y=p.indexOf(b.name);if(y>-1)h[y]=b.parse;else{let Q=b.before?rc(p,b.before):b.after?rc(p,b.after)+1:p.length-1;h.splice(Q,0,b.parse),p.splice(Q,0,b.name)}}return s.wrap&&(g=g.concat(s.wrap)),new id(r,d,u,f,x,o,h,p,g)}getNodeType(n){let s=this.nodeTypes[n];if(s==null)throw new RangeError(`Unknown node type '${n}'`);return s}parseInline(n,s){let r=new Ch(this,n,s);e:for(let o=s;o<r.end;){let d=r.char(o);for(let u of this.inlineParsers)if(u){let f=u(r,d,o);if(f>=0){o=f;continue e}}o++}return r.resolveMarkers(0)}}function ni(e){return e!=null&&e.length>0}function ZO(e){if(!Array.isArray(e))return e;if(e.length==0)return null;let n=ZO(e[0]);if(e.length==1)return n;let s=ZO(e.slice(1));if(!s||!n)return n||s;let r=(u,f)=>(u||Kl).concat(f||Kl),o=n.wrap,d=s.wrap;return{props:r(n.props,s.props),defineNodes:r(n.defineNodes,s.defineNodes),parseBlock:r(n.parseBlock,s.parseBlock),parseInline:r(n.parseInline,s.parseInline),remove:r(n.remove,s.remove),wrap:o?d?(u,f,h,p)=>o(d(u,f,h,p),f,h,p):o:d}}function rc(e,n){let s=e.indexOf(n);if(s<0)throw new RangeError(`Position specified relative to unknown parser ${n}`);return s}let ky=[bi.none];for(let e=1,n;n=ce[e];e++)ky[e]=bi.define({id:e,name:n,props:e>=ce.Escape?[]:[[da.group,e in my?["Block","BlockContext"]:["Block","LeafBlock"]]],top:n=="Document"});const Kl=[];class $y{constructor(n){this.nodeSet=n,this.content=[],this.nodes=[]}write(n,s,r,o=0){return this.content.push(n,s,r,4+o*4),this}writeElements(n,s=0){for(let r of n)r.writeTo(this,s);return this}finish(n,s){return gn.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:n,length:s})}}let hi=class{constructor(n,s,r,o=Kl){this.type=n,this.from=s,this.to=r,this.children=o}writeTo(n,s){let r=n.content.length;n.writeElements(this.children,s),n.content.push(this.type,this.from+s,this.to+s,n.content.length+4-r)}toTree(n){return new $y(n).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class Ty{constructor(n,s){this.tree=n,this.from=s}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Kl}writeTo(n,s){n.nodes.push(this.tree),n.content.push(n.nodes.length-1,this.from+s,this.to+s,-1)}toTree(){return this.tree}}function Ee(e,n,s,r){return new hi(e,n,s,r)}const Ny={resolve:"Emphasis",mark:"EmphasisMark"},Py={resolve:"Emphasis",mark:"EmphasisMark"},Ns={},Vc={};class Ht{constructor(n,s,r,o){this.type=n,this.from=s,this.to=r,this.side=o}}const K1="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let mi=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{mi=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const Jf={Escape(e,n,s){if(n!=92||s==e.end-1)return-1;let r=e.char(s+1);for(let o=0;o<K1.length;o++)if(K1.charCodeAt(o)==r)return e.append(Ee(ce.Escape,s,s+2));return-1},Entity(e,n,s){if(n!=38)return-1;let r=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(e.slice(s+1,s+31));return r?e.append(Ee(ce.Entity,s,s+1+r[0].length)):-1},InlineCode(e,n,s){if(n!=96||s&&e.char(s-1)==96)return-1;let r=s+1;for(;r<e.end&&e.char(r)==96;)r++;let o=r-s,d=0;for(;r<e.end;r++)if(e.char(r)==96){if(d++,d==o&&e.char(r+1)!=96)return e.append(Ee(ce.InlineCode,s,r+1,[Ee(ce.CodeMark,s,s+o),Ee(ce.CodeMark,r+1-o,r+1)]))}else d=0;return-1},HTMLTag(e,n,s){if(n!=60||s==e.end-1)return-1;let r=e.slice(s+1,e.end),o=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(r);if(o)return e.append(Ee(ce.Autolink,s,s+1+o[0].length,[Ee(ce.LinkMark,s,s+1),Ee(ce.URL,s+1,s+o[0].length),Ee(ce.LinkMark,s+o[0].length,s+1+o[0].length)]));let d=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(r);if(d)return e.append(Ee(ce.Comment,s,s+1+d[0].length));let u=/^\?[^]*?\?>/.exec(r);if(u)return e.append(Ee(ce.ProcessingInstruction,s,s+1+u[0].length));let f=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return f?e.append(Ee(ce.HTMLTag,s,s+1+f[0].length)):-1},Emphasis(e,n,s){if(n!=95&&n!=42)return-1;let r=s+1;for(;e.char(r)==n;)r++;let o=e.slice(s-1,s),d=e.slice(r,r+1),u=mi.test(o),f=mi.test(d),h=/\s|^$/.test(o),p=/\s|^$/.test(d),x=!p&&(!f||h||u),g=!h&&(!u||p||f),b=x&&(n==42||!g||u),y=g&&(n==42||!x||f);return e.append(new Ht(n==95?Ny:Py,s,r,(b?1:0)|(y?2:0)))},HardBreak(e,n,s){if(n==92&&e.char(s+1)==10)return e.append(Ee(ce.HardBreak,s,s+2));if(n==32){let r=s+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=s+2)return e.append(Ee(ce.HardBreak,s,r+1))}return-1},Link(e,n,s){return n==91?e.append(new Ht(Ns,s,s+1,1)):-1},Image(e,n,s){return n==33&&e.char(s+1)==91?e.append(new Ht(Vc,s,s+2,1)):-1},LinkEnd(e,n,s){if(n!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let o=e.parts[r];if(o instanceof Ht&&(o.type==Ns||o.type==Vc)){if(!o.side||e.skipSpace(o.to)==s&&!/[(\[]/.test(e.slice(s+1,s+2)))return e.parts[r]=null,-1;let d=e.takeContent(r),u=e.parts[r]=Bz(e,d,o.type==Ns?ce.Link:ce.Image,o.from,s+1);if(o.type==Ns)for(let f=0;f<r;f++){let h=e.parts[f];h instanceof Ht&&h.type==Ns&&(h.side=0)}return u.to}}return-1}};function Bz(e,n,s,r,o){let{text:d}=e,u=e.char(o),f=o;if(n.unshift(Ee(ce.LinkMark,r,r+(s==ce.Image?2:1))),n.push(Ee(ce.LinkMark,o-1,o)),u==40){let h=e.skipSpace(o+1),p=zy(d,h-e.offset,e.offset),x;p&&(h=e.skipSpace(p.to),h!=p.to&&(x=Cy(d,h-e.offset,e.offset),x&&(h=e.skipSpace(x.to)))),e.char(h)==41&&(n.push(Ee(ce.LinkMark,o,o+1)),f=h+1,p&&n.push(p),x&&n.push(x),n.push(Ee(ce.LinkMark,h,f)))}else if(u==91){let h=Ry(d,o-e.offset,e.offset,!1);h&&(n.push(h),f=h.to)}return Ee(s,r,f,n)}function zy(e,n,s){if(e.charCodeAt(n)==60){for(let o=n+1;o<e.length;o++){let d=e.charCodeAt(o);if(d==62)return Ee(ce.URL,n+s,o+1+s);if(d==60||d==10)return!1}return null}else{let o=0,d=n;for(let u=!1;d<e.length;d++){let f=e.charCodeAt(d);if(On(f))break;if(u)u=!1;else if(f==40)o++;else if(f==41){if(!o)break;o--}else f==92&&(u=!0)}return d>n?Ee(ce.URL,n+s,d+s):d==e.length?null:!1}}function Cy(e,n,s){let r=e.charCodeAt(n);if(r!=39&&r!=34&&r!=40)return!1;let o=r==40?41:r;for(let d=n+1,u=!1;d<e.length;d++){let f=e.charCodeAt(d);if(u)u=!1;else{if(f==o)return Ee(ce.LinkTitle,n+s,d+1+s);f==92&&(u=!0)}}return null}function Ry(e,n,s,r){for(let o=!1,d=n+1,u=Math.min(e.length,d+999);d<u;d++){let f=e.charCodeAt(d);if(o)o=!1;else{if(f==93)return r?!1:Ee(ce.LinkLabel,n+s,d+1+s);if(r&&!On(f)&&(r=!1),f==91)return!1;f==92&&(o=!0)}}return null}class Ch{constructor(n,s,r){this.parser=n,this.text=s,this.offset=r,this.parts=[]}char(n){return n>=this.end?-1:this.text.charCodeAt(n-this.offset)}get end(){return this.offset+this.text.length}slice(n,s){return this.text.slice(n-this.offset,s-this.offset)}append(n){return this.parts.push(n),n.to}addDelimiter(n,s,r,o,d){return this.append(new Ht(n,s,r,(o?1:0)|(d?2:0)))}get hasOpenLink(){for(let n=this.parts.length-1;n>=0;n--){let s=this.parts[n];if(s instanceof Ht&&(s.type==Ns||s.type==Vc))return!0}return!1}addElement(n){return this.append(n)}resolveMarkers(n){for(let r=n;r<this.parts.length;r++){let o=this.parts[r];if(!(o instanceof Ht&&o.type.resolve&&o.side&2))continue;let d=o.type==Ny||o.type==Py,u=o.to-o.from,f,h=r-1;for(;h>=n;h--){let k=this.parts[h];if(k instanceof Ht&&k.side&1&&k.type==o.type&&!(d&&(o.side&1||k.side&2)&&(k.to-k.from+u)%3==0&&((k.to-k.from)%3||u%3))){f=k;break}}if(!f)continue;let p=o.type.resolve,x=[],g=f.from,b=o.to;if(d){let k=Math.min(2,f.to-f.from,u);g=f.to-k,b=o.from+k,p=k==1?"Emphasis":"StrongEmphasis"}f.type.mark&&x.push(this.elt(f.type.mark,g,f.to));for(let k=h+1;k<r;k++)this.parts[k]instanceof hi&&x.push(this.parts[k]),this.parts[k]=null;o.type.mark&&x.push(this.elt(o.type.mark,o.from,b));let y=this.elt(p,g,b,x);this.parts[h]=d&&f.from!=g?new Ht(f.type,f.from,g,f.side):null,(this.parts[r]=d&&o.to!=b?new Ht(o.type,b,o.to,o.side):null)?this.parts.splice(r,0,y):this.parts[r]=y}let s=[];for(let r=n;r<this.parts.length;r++){let o=this.parts[r];o instanceof hi&&s.push(o)}return s}findOpeningDelimiter(n){for(let s=this.parts.length-1;s>=0;s--){let r=this.parts[s];if(r instanceof Ht&&r.type==n&&r.side&1)return s}return null}takeContent(n){let s=this.resolveMarkers(n);return this.parts.length=n,s}getDelimiterAt(n){let s=this.parts[n];return s instanceof Ht?s:null}skipSpace(n){return si(this.text,n-this.offset)+this.offset}elt(n,s,r,o){return typeof n=="string"?Ee(this.parser.getNodeType(n),s,r,o):new Ty(n,s)}}Ch.linkStart=Ns;Ch.imageStart=Vc;function EO(e,n){if(!n.length)return e;if(!e.length)return n;let s=e.slice(),r=0;for(let o of n){for(;r<s.length&&s[r].to<o.to;)r++;if(r<s.length&&s[r].from<o.from){let d=s[r];d instanceof hi&&(s[r]=new hi(d.type,d.from,d.to,EO(d.children,[o])))}else s.splice(r++,0,o)}return s}const Hz=[ce.CodeBlock,ce.ListItem,ce.OrderedList,ce.BulletList];class Iz{constructor(n,s){this.fragments=n,this.input=s,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,n.length&&(this.fragment=n[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(n,s){for(;this.fragment&&this.fragment.to<=n;)this.nextFragment();if(!this.fragment||this.fragment.from>(n?n-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=`
|
|
601
|
-
`;)d--;this.fragmentEnd=d?d-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let o=n+this.fragment.offset;for(;r.to<=o;)if(!r.parent())return!1;for(;;){if(r.from>=o)return this.fragment.from<=s;if(!r.childAfter(o))return!1}}matches(n){let s=this.cursor.tree;return s&&s.prop(da.contextHash)==n}takeNodes(n){let s=this.cursor,r=this.fragment.offset,o=this.fragmentEnd-(this.fragment.openEnd?1:0),d=n.absoluteLineStart,u=d,f=n.block.children.length,h=u,p=f;for(;;){if(s.to-r>o){if(s.type.isAnonymous&&s.firstChild())continue;break}let x=_y(s.from-r,n.ranges);if(s.to-r<=n.ranges[n.rangeI].to)n.addNode(s.tree,x);else{let g=new gn(n.parser.nodeSet.types[ce.Paragraph],[],[],0,n.block.hashProp);n.reusePlaceholders.set(g,s.tree),n.addNode(g,x)}if(s.type.is("Block")&&(Hz.indexOf(s.type.id)<0?(u=s.to-r,f=n.block.children.length):(u=h,f=p),h=s.to-r,p=n.block.children.length),!s.nextSibling())break}for(;n.block.children.length>f;)n.block.children.pop(),n.block.positions.pop();return u-d}}function _y(e,n){let s=e;for(let r=1;r<n.length;r++){let o=n[r-1].to,d=n[r].from;o<e&&(s-=d-o)}return s}const Fz=Es({"Blockquote/...":A.quote,HorizontalRule:A.contentSeparator,"ATXHeading1/... SetextHeading1/...":A.heading1,"ATXHeading2/... SetextHeading2/...":A.heading2,"ATXHeading3/...":A.heading3,"ATXHeading4/...":A.heading4,"ATXHeading5/...":A.heading5,"ATXHeading6/...":A.heading6,"Comment CommentBlock":A.comment,Escape:A.escape,Entity:A.character,"Emphasis/...":A.emphasis,"StrongEmphasis/...":A.strong,"Link/... Image/...":A.link,"OrderedList/... BulletList/...":A.list,"BlockQuote/...":A.quote,"InlineCode CodeText":A.monospace,"URL Autolink":A.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":A.processingInstruction,"CodeInfo LinkLabel":A.labelName,LinkTitle:A.string,Paragraph:A.content}),Kz=new id(new BO(ky).extend(Fz),Object.keys(lc).map(e=>lc[e]),Object.keys(lc).map(e=>jy[e]),Object.keys(lc),Dz,my,Object.keys(Jf).map(e=>Jf[e]),Object.keys(Jf),[]);function Jz(e,n,s){let r=[];for(let o=e.firstChild,d=n;;o=o.nextSibling){let u=o?o.from:s;if(u>d&&r.push({from:d,to:u}),!o)break;d=o.to}return r}function eC(e){let{codeParser:n,htmlParser:s}=e;return{wrap:B0((o,d)=>{let u=o.type.id;if(n&&(u==ce.CodeBlock||u==ce.FencedCode)){let f="";if(u==ce.FencedCode){let p=o.node.getChild(ce.CodeInfo);p&&(f=d.read(p.from,p.to))}let h=n(f);if(h)return{parser:h,overlay:p=>p.type.id==ce.CodeText,bracketed:u==ce.FencedCode}}else if(s&&(u==ce.HTMLBlock||u==ce.HTMLTag||u==ce.CommentBlock))return{parser:s,overlay:Jz(o.node,o.from,o.to)};return null})}}const tC={resolve:"Strikethrough",mark:"StrikethroughMark"},nC={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":A.strikethrough}},{name:"StrikethroughMark",style:A.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,n,s){if(n!=126||e.char(s+1)!=126||e.char(s+2)==126)return-1;let r=e.slice(s-1,s),o=e.slice(s+2,s+3),d=/\s|^$/.test(r),u=/\s|^$/.test(o),f=mi.test(r),h=mi.test(o);return e.addDelimiter(tC,s,s+2,!u&&(!h||d||f),!d&&(!f||u||h))},after:"Emphasis"}]};function li(e,n,s=0,r,o=0){let d=0,u=!0,f=-1,h=-1,p=!1,x=()=>{r.push(e.elt("TableCell",o+f,o+h,e.parser.parseInline(n.slice(f,h),o+f)))};for(let g=s;g<n.length;g++){let b=n.charCodeAt(g);b==124&&!p?((!u||f>-1)&&d++,u=!1,r&&(f>-1&&x(),r.push(e.elt("TableDelimiter",g+o,g+o+1))),f=h=-1):(p||b!=32&&b!=9)&&(f<0&&(f=g),h=g+1),p=!p&&b==92}return f>-1&&(d++,r&&x()),d}function J1(e,n){for(let s=n;s<e.length;s++){let r=e.charCodeAt(s);if(r==124)return!0;r==92&&s++}return!1}const Xy=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class e0{constructor(){this.rows=null}nextLine(n,s,r){if(this.rows==null){this.rows=!1;let o;if((s.next==45||s.next==58||s.next==124)&&Xy.test(o=s.text.slice(s.pos))){let d=[];li(n,r.content,0,d,r.start)==li(n,o,s.pos)&&(this.rows=[n.elt("TableHeader",r.start,r.start+r.content.length,d),n.elt("TableDelimiter",n.lineStart+s.pos,n.lineStart+s.text.length)])}}else if(this.rows){let o=[];li(n,s.text,s.pos,o,n.lineStart),this.rows.push(n.elt("TableRow",n.lineStart+s.pos,n.lineStart+s.text.length,o))}return!1}finish(n,s){return this.rows?(n.addLeafElement(s,n.elt("Table",s.start,s.start+s.content.length,this.rows)),!0):!1}}const aC={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":A.heading}},"TableRow",{name:"TableCell",style:A.content},{name:"TableDelimiter",style:A.processingInstruction}],parseBlock:[{name:"Table",leaf(e,n){return J1(n.content,0)?new e0:null},endLeaf(e,n,s){if(s.parsers.some(o=>o instanceof e0)||!J1(n.text,n.basePos))return!1;let r=e.peekLine();return Xy.test(r)&&li(e,n.text,n.basePos)==li(e,r,n.basePos)},before:"SetextHeading"}]};class sC{nextLine(){return!1}finish(n,s){return n.addLeafElement(s,n.elt("Task",s.start,s.start+s.content.length,[n.elt("TaskMarker",s.start,s.start+3),...n.parser.parseInline(s.content.slice(3),s.start+3)])),!0}}const lC={defineNodes:[{name:"Task",block:!0,style:A.list},{name:"TaskMarker",style:A.atom}],parseBlock:[{name:"TaskList",leaf(e,n){return/^\[[ xX]\][ \t]/.test(n.content)&&e.parentType().name=="ListItem"?new sC:null},after:"SetextHeading"}]},t0=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,n0=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,rC=/[\w-]+\.[\w-]+($|\/)/,a0=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,s0=/\/[a-zA-Z\d@.]+/gy;function l0(e,n,s,r){let o=0;for(let d=n;d<s;d++)e[d]==r&&o++;return o}function iC(e,n){n0.lastIndex=n;let s=n0.exec(e);if(!s||rC.exec(s[0])[0].indexOf("_")>-1)return-1;let r=n+s[0].length;for(;;){let o=e[r-1],d;if(/[?!.,:*_~]/.test(o)||o==")"&&l0(e,n,r,")")>l0(e,n,r,"("))r--;else if(o==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(n,r))))r=n+d.index;else break}return r}function r0(e,n){a0.lastIndex=n;let s=a0.exec(e);if(!s)return-1;let r=s[0][s[0].length-1];return r=="_"||r=="-"?-1:n+s[0].length-(r=="."?1:0)}const oC={parseInline:[{name:"Autolink",parse(e,n,s){let r=s-e.offset;if(r&&/\w/.test(e.text[r-1]))return-1;t0.lastIndex=r;let o=t0.exec(e.text),d=-1;if(!o)return-1;if(o[1]||o[2]){if(d=iC(e.text,r+o[0].length),d>-1&&e.hasOpenLink){let u=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,d));d=r+u[0].length}}else o[3]?d=r0(e.text,r):(d=r0(e.text,r+o[0].length),d>-1&&o[0]=="xmpp:"&&(s0.lastIndex=d,o=s0.exec(e.text),o&&(d=o.index+o[0].length)));return d<0?-1:(e.addElement(e.elt("URL",s,d+e.offset)),d+e.offset)}}]},cC=[aC,lC,nC,oC];function Ay(e,n,s){return(r,o,d)=>{if(o!=e||r.char(d+1)==e)return-1;let u=[r.elt(s,d,d+1)];for(let f=d+1;f<r.end;f++){let h=r.char(f);if(h==e)return r.addElement(r.elt(n,d,f+1,u.concat(r.elt(s,f,f+1))));if(h==92&&u.push(r.elt("Escape",f,f+++2)),On(h))break}return-1}}const dC={defineNodes:[{name:"Superscript",style:A.special(A.content)},{name:"SuperscriptMark",style:A.processingInstruction}],parseInline:[{name:"Superscript",parse:Ay(94,"Superscript","SuperscriptMark")}]},uC={defineNodes:[{name:"Subscript",style:A.special(A.content)},{name:"SubscriptMark",style:A.processingInstruction}],parseInline:[{name:"Subscript",parse:Ay(126,"Subscript","SubscriptMark")}]},fC={defineNodes:[{name:"Emoji",style:A.character}],parseInline:[{name:"Emoji",parse(e,n,s){let r;return n!=58||!(r=/^[a-zA-Z_0-9]+:/.exec(e.slice(s+1,e.end)))?-1:e.addElement(e.elt("Emoji",s,s+1+r[0].length))}}]},Zy=W0({commentTokens:{block:{open:"<!--",close:"-->"}}}),Ey=new da,qy=Kz.configure({props:[qs.add(e=>!e.is("Block")||e.is("Document")||qO(e)!=null||OC(e)?void 0:(n,s)=>({from:s.doc.lineAt(n.from).to,to:n.to})),Ey.add(qO),Jl.add({Document:()=>null}),Jj.add({Document:Zy})]});function qO(e){let n=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return n?+n[1]:void 0}function OC(e){return e.name=="OrderedList"||e.name=="BulletList"}function hC(e,n){let s=e;for(;;){let r=s.nextSibling,o;if(!r||(o=qO(r.type))!=null&&o<=n)break;s=r}return s.to}const mC=Hj.of((e,n,s)=>{for(let r=yn(e).resolveInner(s,-1);r&&!(r.from<n);r=r.parent){let o=r.type.prop(Ey);if(o==null)continue;let d=hC(r,o);if(d>s)return{from:s,to:d}}return null});function Rh(e){return new Ij(Zy,e,[],"markdown")}const pC=Rh(qy),xC=qy.configure([cC,uC,dC,fC,{props:[qs.add({Table:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}]),Gc=Rh(xC);function gC(e,n){return s=>{if(s&&e){let r=null;if(s=/\S*/.exec(s)[0],typeof e=="function"?r=e(s):r=Ug.matchLanguageName(e,s,!0),r instanceof Ug)return r.support?r.support.language.parser:ew.getSkippingParser(r.load());if(r)return r.parser}return n?n.parser:null}}let eO=class{constructor(n,s,r,o,d,u,f){this.node=n,this.from=s,this.to=r,this.spaceBefore=o,this.spaceAfter=d,this.type=u,this.item=f}blank(n,s=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(n!=null){for(;r.length<n;)r+=" ";return r}else{for(let o=this.to-this.from-r.length-this.spaceAfter.length;o>0;o--)r+=" ";return r+(s?this.spaceAfter:"")}}marker(n,s){let r=this.node.name=="OrderedList"?String(+Yy(this.item,n)[2]+s):"";return this.spaceBefore+r+this.type+this.spaceAfter}};function My(e,n){let s=[],r=[];for(let o=e;o;o=o.parent){if(o.name=="FencedCode")return r;(o.name=="ListItem"||o.name=="Blockquote")&&s.push(o)}for(let o=s.length-1;o>=0;o--){let d=s[o],u,f=n.lineAt(d.from),h=d.from-f.from;if(d.name=="Blockquote"&&(u=/^ *>( ?)/.exec(f.text.slice(h))))r.push(new eO(d,h,h+u[0].length,"",u[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(u=/^( *)\d+([.)])( *)/.exec(f.text.slice(h)))){let p=u[3],x=u[0].length;p.length>=4&&(p=p.slice(0,p.length-4),x-=4),r.push(new eO(d.parent,h,h+x,u[1],p,u[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(u=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(f.text.slice(h)))){let p=u[4],x=u[0].length;p.length>4&&(p=p.slice(0,p.length-4),x-=4);let g=u[2];u[3]&&(g+=u[3].replace(/[xX]/," ")),r.push(new eO(d.parent,h,h+x,u[1],p,g,d))}}return r}function Yy(e,n){return/^(\s*)(\d+)(?=[.)])/.exec(n.sliceString(e.from,e.from+10))}function tO(e,n,s,r=0){for(let o=-1,d=e;;){if(d.name=="ListItem"){let f=Yy(d,n),h=+f[2];if(o>=0){if(h!=o+1)return;s.push({from:d.from+f[1].length,to:d.from+f[0].length,insert:String(o+2+r)})}o=h}let u=d.nextSibling;if(!u)break;d=u}}function _h(e,n){let s=/^[ \t]*/.exec(e)[0].length;if(!s||n.facet(Fj)!=" ")return e;let r=ri(e,4,s),o="";for(let d=r;d>0;)d>=4?(o+=" ",d-=4):(o+=" ",d--);return o+e.slice(s)}const bC=(e={})=>({state:n,dispatch:s})=>{let r=yn(n),{doc:o}=n,d=null,u=n.changeByRange(f=>{if(!f.empty||!Gc.isActiveAt(n,f.from,-1)&&!Gc.isActiveAt(n,f.from,1))return d={range:f};let h=f.from,p=o.lineAt(h),x=My(r.resolveInner(h,-1),o);for(;x.length&&x[x.length-1].from>h-p.from;)x.pop();if(!x.length)return d={range:f};let g=x[x.length-1];if(g.to-g.spaceAfter.length>h-p.from)return d={range:f};let b=h>=g.to-g.spaceAfter.length&&!/\S/.test(p.text.slice(g.to));if(g.item&&b){let j=g.node.firstChild,P=g.node.getChild("ListItem","ListItem");if(j.to>=h||P&&P.to<h||p.from>0&&!/[^\s>]/.test(o.lineAt(p.from-1).text)||e.nonTightLists===!1){let z=x.length>1?x[x.length-2]:null,_,G="";z&&z.item?(_=p.from+z.from,G=z.marker(o,1)):_=p.from+(z?z.to:0);let Z=[{from:_,to:h,insert:G}];return g.node.name=="OrderedList"&&tO(g.item,o,Z,-2),z&&z.node.name=="OrderedList"&&tO(z.item,o,Z),{range:es.cursor(_+G.length),changes:Z}}else{let z=o0(x,n,p);return{range:es.cursor(h+z.length+1),changes:{from:p.from,insert:z+n.lineBreak}}}}if(g.node.name=="Blockquote"&&b&&p.from){let j=o.lineAt(p.from-1),P=/>\s*$/.exec(j.text);if(P&&P.index==g.from){let z=n.changes([{from:j.from+P.index,to:j.to},{from:p.from+g.from,to:p.to}]);return{range:f.map(z),changes:z}}}let y=[];g.node.name=="OrderedList"&&tO(g.item,o,y);let Q=g.item&&g.item.from<p.from,k="";if(!Q||/^[\s\d.)\-+*>]*/.exec(p.text)[0].length>=g.to)for(let j=0,P=x.length-1;j<=P;j++)k+=j==P&&!Q?x[j].marker(o,1):x[j].blank(j<P?ri(p.text,4,x[j+1].from)-k.length:null);let w=h;for(;w>p.from&&/\s/.test(p.text.charAt(w-p.from-1));)w--;return k=_h(k,n),yC(g.node,n.doc)&&(k=o0(x,n,p)+n.lineBreak+k),y.push({from:w,to:h,insert:n.lineBreak+k}),{range:es.cursor(w+k.length+1),changes:y}});return d?!1:(s(n.update(u,{scrollIntoView:!0,userEvent:"input"})),!0)},vC=bC();function i0(e){return e.name=="QuoteMark"||e.name=="ListMark"}function yC(e,n){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let s=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let o=n.lineAt(s.to),d=n.lineAt(r.from),u=/^[\s>]*$/.test(o.text);return o.number+(u?0:1)<d.number}function o0(e,n,s){let r="";for(let o=0,d=e.length-2;o<=d;o++)r+=e[o].blank(o<d?ri(s.text,4,e[o+1].from)-r.length:null,o<d);return _h(r,n)}function SC(e,n){let s=e.resolveInner(n,-1),r=n;i0(s)&&(r=s.from,s=s.parent);for(let o;o=s.childBefore(r);)if(i0(o))r=o.from;else if(o.name=="OrderedList"||o.name=="BulletList")s=o.lastChild,r=s.to;else break;return s}const QC=({state:e,dispatch:n})=>{let s=yn(e),r=null,o=e.changeByRange(d=>{let u=d.from,{doc:f}=e;if(d.empty&&Gc.isActiveAt(e,d.from)){let h=f.lineAt(u),p=My(SC(s,u),f);if(p.length){let x=p[p.length-1],g=x.to-x.spaceAfter.length+(x.spaceAfter?1:0);if(u-h.from>g&&!/\S/.test(h.text.slice(g,u-h.from)))return{range:es.cursor(h.from+g),changes:{from:h.from+g,to:u}};if(u-h.from==g&&(!x.item||h.from<=x.item.from||!/\S/.test(h.text.slice(0,x.to)))){let b=h.from+x.from;if(x.item&&x.node.from<x.item.from&&/\S/.test(h.text.slice(x.from,x.to))){let y=x.blank(ri(h.text,4,x.to)-ri(h.text,4,x.from));return b==h.from&&(y=_h(y,e)),{range:es.cursor(b+y.length),changes:{from:b,to:h.from+x.to,insert:y}}}if(b<u)return{range:es.cursor(b),changes:{from:b,to:u}}}}}return r={range:d}});return r?!1:(n(e.update(o,{scrollIntoView:!0,userEvent:"delete"})),!0)},jC=[{key:"Enter",run:vC},{key:"Backspace",run:QC}],Uy=hy({matchClosingTags:!1});function wC(e={}){let{codeLanguages:n,defaultCodeLanguage:s,addKeymap:r=!0,base:{parser:o}=pC,completeHTMLTags:d=!0,pasteURLAsLink:u=!0,htmlTagLanguage:f=Uy}=e;if(!(o instanceof id))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let h=e.extensions?[e.extensions]:[],p=[f.support,mC],x;u&&p.push(NC),s instanceof zs?(p.push(s.support),x=s.language):s&&(x=s);let g=n||x?gC(n,x):void 0;h.push(eC({codeParser:g,htmlParser:f.language.parser})),r&&p.push(Bj.high(bO.of(jC)));let b=Rh(o.configure(h));return d&&p.push(b.data.of({autocomplete:kC})),new zs(b,p)}function kC(e){let{state:n,pos:s}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(n.sliceDoc(s-25,s));if(!r)return null;let o=yn(n).resolveInner(s,-1);for(;o&&!o.type.isTop;){if(o.name=="CodeBlock"||o.name=="FencedCode"||o.name=="ProcessingInstructionBlock"||o.name=="CommentBlock"||o.name=="Link"||o.name=="Image")return null;o=o.parent}return{from:s-r[0].length,to:s,options:$C(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let nO=null;function $C(){if(nO)return nO;let e=Rz(new Kj(H0.create({extensions:Uy}),0,!0));return nO=e?e.options:[]}const TC=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,NC=Vl.domEventHandlers({paste:(e,n)=>{var s;let{main:r}=n.state.selection;if(r.empty)return!1;let o=(s=e.clipboardData)===null||s===void 0?void 0:s.getData("text/plain");if(!o||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(o)||(/^www\./.test(o)&&(o="https://"+o),!Gc.isActiveAt(n.state,r.from,1)))return!1;let d=yn(n.state),u=!1;return d.iterate({from:r.from,to:r.to,enter:f=>{(f.from>r.from||TC.test(f.name))&&(u=!0)},leave:f=>{f.to<r.to&&(u=!0)}}),u?!1:(n.dispatch({changes:[{from:r.from,insert:"["},{from:r.to,insert:`](${o})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),PC=1,Vy=194,Gy=195,zC=196,c0=197,CC=198,RC=199,_C=200,XC=2,Dy=3,d0=201,AC=24,ZC=25,EC=49,qC=50,MC=55,YC=56,UC=57,VC=59,GC=60,DC=61,LC=62,WC=63,BC=65,HC=238,IC=71,FC=241,KC=242,JC=243,eR=244,tR=245,nR=246,aR=247,sR=248,Ly=72,lR=249,rR=250,iR=251,oR=252,cR=253,dR=254,uR=255,fR=256,OR=73,hR=77,mR=263,pR=112,xR=130,gR=151,bR=152,vR=155,As=10,pi=13,Xh=32,od=9,Ah=35,yR=40,SR=46,MO=123,u0=125,Wy=39,By=34,f0=92,QR=111,jR=120,wR=78,kR=117,$R=85,TR=new Set([ZC,EC,qC,mR,BC,xR,YC,UC,HC,LC,WC,Ly,OR,hR,GC,DC,gR,bR,vR,pR]);function aO(e){return e==As||e==pi}function sO(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}const NR=new Qt((e,n)=>{let s;if(e.next<0)e.acceptToken(RC);else if(n.context.flags&yc)aO(e.next)&&e.acceptToken(CC,1);else if(((s=e.peek(-1))<0||aO(s))&&n.canShift(c0)){let r=0;for(;e.next==Xh||e.next==od;)e.advance(),r++;(e.next==As||e.next==pi||e.next==Ah)&&e.acceptToken(c0,-r)}else aO(e.next)&&e.acceptToken(zC,1)},{contextual:!0}),PR=new Qt((e,n)=>{let s=n.context;if(s.flags)return;let r=e.peek(-1);if(r==As||r==pi){let o=0,d=0;for(;;){if(e.next==Xh)o++;else if(e.next==od)o+=8-o%8;else break;e.advance(),d++}o!=s.indent&&e.next!=As&&e.next!=pi&&e.next!=Ah&&(o<s.indent?e.acceptToken(Gy,-d):e.acceptToken(Vy))}}),yc=1,Hy=2,la=4,ra=8,ia=16,oa=32;function Sc(e,n,s){this.parent=e,this.indent=n,this.flags=s,this.hash=(e?e.hash+e.hash<<8:0)+n+(n<<4)+s+(s<<6)}const zR=new Sc(null,0,0);function CR(e){let n=0;for(let s=0;s<e.length;s++)n+=e.charCodeAt(s)==od?8-n%8:1;return n}const O0=new Map([[FC,0],[KC,la],[JC,ra],[eR,ra|la],[tR,ia],[nR,ia|la],[aR,ia|ra],[sR,ia|ra|la],[lR,oa],[rR,oa|la],[iR,oa|ra],[oR,oa|ra|la],[cR,oa|ia],[dR,oa|ia|la],[uR,oa|ia|ra],[fR,oa|ia|ra|la]].map(([e,n])=>[e,n|Hy])),RR=new Qh({start:zR,reduce(e,n,s,r){return e.flags&yc&&TR.has(n)||(n==IC||n==Ly)&&e.flags&Hy?e.parent:e},shift(e,n,s,r){return n==Vy?new Sc(e,CR(r.read(r.pos,s.pos)),0):n==Gy?e.parent:n==AC||n==MC||n==VC||n==Dy?new Sc(e,0,yc):O0.has(n)?new Sc(e,0,O0.get(n)|e.flags&yc):e},hash(e){return e.hash}}),_R=new Qt(e=>{for(let n=0;n<5;n++){if(e.next!="print".charCodeAt(n))return;e.advance()}if(!/\w/.test(String.fromCharCode(e.next)))for(let n=0;;n++){let s=e.peek(n);if(!(s==Xh||s==od)){s!=yR&&s!=SR&&s!=As&&s!=pi&&s!=Ah&&e.acceptToken(PC);return}}}),XR=new Qt((e,n)=>{let{flags:s}=n.context,r=s&la?By:Wy,o=(s&ra)>0,d=!(s&ia),u=(s&oa)>0,f=e.pos;for(;!(e.next<0);)if(u&&e.next==MO)if(e.peek(1)==MO)e.advance(2);else{if(e.pos==f){e.acceptToken(Dy,1);return}break}else if(d&&e.next==f0){if(e.pos==f){e.advance();let h=e.next;h>=0&&(e.advance(),AR(e,h)),e.acceptToken(XC);return}break}else if(e.next==f0&&!d&&e.peek(1)>-1)e.advance(2);else if(e.next==r&&(!o||e.peek(1)==r&&e.peek(2)==r)){if(e.pos==f){e.acceptToken(d0,o?3:1);return}break}else if(e.next==As){if(o)e.advance();else if(e.pos==f){e.acceptToken(d0);return}break}else e.advance();e.pos>f&&e.acceptToken(_C)});function AR(e,n){if(n==QR)for(let s=0;s<2&&e.next>=48&&e.next<=55;s++)e.advance();else if(n==jR)for(let s=0;s<2&&sO(e.next);s++)e.advance();else if(n==kR)for(let s=0;s<4&&sO(e.next);s++)e.advance();else if(n==$R)for(let s=0;s<8&&sO(e.next);s++)e.advance();else if(n==wR&&e.next==MO){for(e.advance();e.next>=0&&e.next!=u0&&e.next!=Wy&&e.next!=By&&e.next!=As;)e.advance();e.next==u0&&e.advance()}}const ZR=Es({'async "*" "**" FormatConversion FormatSpec':A.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":A.controlKeyword,"in not and or is del":A.operatorKeyword,"from def class global nonlocal lambda":A.definitionKeyword,import:A.moduleKeyword,"with as print":A.keyword,Boolean:A.bool,None:A.null,VariableName:A.variableName,"CallExpression/VariableName":A.function(A.variableName),"FunctionDefinition/VariableName":A.function(A.definition(A.variableName)),"ClassDefinition/VariableName":A.definition(A.className),PropertyName:A.propertyName,"CallExpression/MemberExpression/PropertyName":A.function(A.propertyName),Comment:A.lineComment,Number:A.number,String:A.string,FormatString:A.special(A.string),Escape:A.escape,UpdateOp:A.updateOperator,"ArithOp!":A.arithmeticOperator,BitOp:A.bitwiseOperator,CompareOp:A.compareOperator,AssignOp:A.definitionOperator,Ellipsis:A.punctuation,At:A.meta,"( )":A.paren,"[ ]":A.squareBracket,"{ }":A.brace,".":A.derefOperator,", ;":A.separator}),ER={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},qR=ls.deserialize({version:14,states:"##jO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'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&j&k&u&x'P'W'Z'l'm'p'r's(O(W(^(d(g(z)^)e)g)p)z*O*Y*d*g*h*k*q*t*v*y*z*}+U+V+Y+a+d+k,X,Y,],g,h,i,k,l,o,s,u,w,y,z-O-d-f-m-p.f.g/V/Z0i0j0kQ#qpW%W!o!s0d0nQ%X!pQ%Y!qQ%[!tQ%f0cS'v%Z0hQ'x0eQ'y0fQ,p*rQ-u,qS.i-s/sR0p0rU#uq.k0qR(w&][cOn#g$j)t,PZ!xY#[#}$Q+YQ#W[Q#zrR$TxQ%b!yQ%i!}Q%o#RQ'j${Q(V%eQ(Z%jQ(c%pQ(f%qQ*|(`Q,f*bQ-t,pQ.m-uR/].lQ$StQ(R%cR*s(SQ.l-sR/}/sR#QZR#V[R%Q!iQ%O!iV*c'm*d,g!Z!lQ!n#c#p$R$d$p$u$v$w$x$y$z%e%j%p%q&`'O'g(q(|)j*o*x+w,v0gR%T!kT#]^#_Q%x#[R,{+YQ(m%xS+_(n(oQ,}+`Q-x,{S.n-y-zR/^.oT+Z(k+]Q$`}Q&g$QQ)o'PR+{)pQ$XzQ)W&qR+i)XQ$XzQ&o$WQ)W&qR+i)XQ#khW$Vz$W&q)XQ$[{Q&r$ZZ)R&l)S+f+g-RR$^|R)c&wXlOn)t,PQ$f!RR'Q$gQ$m!UR'R$hR*X'_Q*V'_V-g,`-h.TQ.d-lQ/P.^R/Q._U.]-l.^._Q/U.aQ/b.tQ/g.zU/i.|/j/yQ/n/RQ/|/oQ0O/tU0Q/u0S0[Q0]0UQ0a0ZR0b0^R/T.`R/d.t",nodeNames:"⚠ print Escape { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatSelfDoc FormatConversion FormatSpec FormatReplacement FormatSelfDoc ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:277,context:RR,nodeProps:[["isolate",-5,4,71,72,73,77,""],["group",-15,6,85,87,88,90,92,94,96,98,99,100,102,105,108,110,"Statement Statement",-22,8,18,21,25,40,49,50,56,57,60,61,62,63,64,67,70,71,72,79,80,81,82,"Expression",-10,114,116,119,121,122,126,128,133,135,138,"Statement",-9,143,144,147,148,150,151,152,153,154,"Pattern"],["openedBy",23,"(",54,"[",58,"{"],["closedBy",24,")",55,"]",59,"}"]],propSources:[ZR],skippedNodes:[0,4],repeatNodeCount:34,tokenData:"!2|~R!`OX%TXY%oY[%T[]%o]p%Tpq%oqr'ars)Yst*xtu%Tuv,dvw-hwx.Uxy/tyz0[z{0r{|2S|}2p}!O3W!O!P4_!P!Q:Z!Q!R;k!R![>_![!]Do!]!^Es!^!_FZ!_!`Gk!`!aHX!a!b%T!b!cIf!c!dJU!d!eK^!e!hJU!h!i!#f!i!tJU!t!u!,|!u!wJU!w!x!.t!x!}JU!}#O!0S#O#P&o#P#Q!0j#Q#R!1Q#R#SJU#S#T%T#T#UJU#U#VK^#V#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U!}#R%T#R#SJU#S#T%T#T#oJU#p#q%T#r$g%T$g;'SJU;'S;=`KW<%lOJUk!0ZT!XZ&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tc!0qT!WR&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%Tj!1XV%kQ&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!1sO!]~k!1zV%jR&n`O!_%T!_!`-Q!`#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T~!2fO![~i!2mT%tX&n`O#o%T#p#q%T#r;'S%T;'S;=`%i<%lO%T",tokenizers:[_R,PR,NR,XR,0,1,2,3,4],topRules:{Script:[0,5]},specialized:[{term:221,get:e=>ER[e]||-1}],tokenPrec:7668}),h0=new HO,Iy=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function ic(e){return(n,s,r)=>{if(r)return!1;let o=n.node.getChild("VariableName");return o&&s(o,e),!0}}const MR={FunctionDefinition:ic("function"),ClassDefinition:ic("class"),ForStatement(e,n,s){if(s){for(let r=e.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")n(r,"variable");else if(r.name=="in")break}},ImportStatement(e,n){var s,r;let{node:o}=e,d=((s=o.firstChild)===null||s===void 0?void 0:s.name)=="from";for(let u=o.getChild("import");u;u=u.nextSibling)u.name=="VariableName"&&((r=u.nextSibling)===null||r===void 0?void 0:r.name)!="as"&&n(u,d?"variable":"namespace")},AssignStatement(e,n){for(let s=e.node.firstChild;s;s=s.nextSibling)if(s.name=="VariableName")n(s,"variable");else if(s.name==":"||s.name=="AssignOp")break},ParamList(e,n){for(let s=null,r=e.node.firstChild;r;r=r.nextSibling)r.name=="VariableName"&&(!s||!/\*|AssignOp/.test(s.name))&&n(r,"variable"),s=r},CapturePattern:ic("variable"),AsPattern:ic("variable"),__proto__:null};function Fy(e,n){let s=h0.get(n);if(s)return s;let r=[],o=!0;function d(u,f){let h=e.sliceString(u.from,u.to);r.push({label:h,type:f})}return n.cursor(Bc.IncludeAnonymous).iterate(u=>{if(u.name){let f=MR[u.name];if(f&&f(u,d,o)||!o&&Iy.has(u.name))return!1;o=!1}else if(u.to-u.from>8192){for(let f of Fy(e,u.node))r.push(f);return!1}}),h0.set(n,r),r}const m0=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,Ky=["String","FormatString","Comment","PropertyName"];function YR(e){let n=yn(e.state).resolveInner(e.pos,-1);if(Ky.indexOf(n.name)>-1)return null;let s=n.name=="VariableName"||n.to-n.from<20&&m0.test(e.state.sliceDoc(n.from,n.to));if(!s&&!e.explicit)return null;let r=[];for(let o=n;o;o=o.parent)Iy.has(o.name)&&(r=r.concat(Fy(e.state.doc,o)));return{options:r,from:s?n.from:e.pos,validFor:m0}}const UR=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(e=>({label:e,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(e=>({label:e,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(e=>({label:e,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(e=>({label:e,type:"function"}))),VR=[Je("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),Je("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),Je("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),Je("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),Je(`if \${}:
|
|
602
|
-
|
|
603
|
-
`,{label:"if",detail:"block",type:"keyword"}),Je("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),Je("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),Je("import ${module}",{label:"import",detail:"statement",type:"keyword"}),Je("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],GR=G0(Ky,D0(UR.concat(VR)));function lO(e){let{node:n,pos:s}=e,r=e.lineIndent(s,-1),o=null;for(;;){let d=n.childBefore(s);if(d)if(d.name=="Comment")s=d.from;else if(d.name=="Body"||d.name=="MatchBody")e.baseIndentFor(d)+e.unit<=r&&(o=d),n=d;else if(d.name=="MatchClause")n=d;else if(d.type.is("Statement"))n=d;else break;else break}return o}function rO(e,n){let s=e.baseIndentFor(n),r=e.lineAt(e.pos,-1),o=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.to<o+100&&!/\S/.test(e.state.sliceDoc(o,e.node.to))&&e.lineIndent(e.pos,-1)<=s||/^\s*(else:|elif |except |finally:|case\s+[^=:]+:)/.test(e.textAfter)&&e.lineIndent(e.pos,-1)>s?null:s+e.unit}const iO=vi.define({name:"python",parser:qR.configure({props:[Jl.add({Body:e=>{var n;let s=/^\s*(#|$)/.test(e.textAfter)&&lO(e)||e.node;return(n=rO(e,s))!==null&&n!==void 0?n:e.continue()},MatchBody:e=>{var n;let s=lO(e);return(n=rO(e,s||e.node))!==null&&n!==void 0?n:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),"ForStatement WhileStatement":e=>/^\s*else:/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except[ :]|finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),MatchStatement:e=>/^\s*case /.test(e.textAfter)?e.baseIndent+e.unit:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":pc({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":pc({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":pc({closing:"]"}),MemberExpression:e=>e.baseIndent+e.unit,"String FormatString":()=>null,Script:e=>{var n;let s=lO(e);return(n=s&&rO(e,s))!==null&&n!==void 0?n:e.continue()}}),qs.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":Hc,Body:(e,n)=>({from:e.from+1,to:e.to-(e.to==n.doc.length?0:1)}),"String FormatString":(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:|case\s+[^:]*:?)$/}});function DR(){return new zs(iO,[iO.data.of({autocomplete:YR}),iO.data.of({autocomplete:GR})])}const oc={javascript:()=>CO({jsx:!0,typescript:!1}),typescript:()=>CO({jsx:!0,typescript:!0}),css:()=>Hv(),html:()=>hy(),json:()=>Mz(),markdown:()=>wC(),python:()=>DR()},LR=Vl.theme({"&":{backgroundColor:"#24282f",color:"#bcc2cd",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-scroller":{overflow:"auto"},".cm-content":{caretColor:"#33afbc"},".cm-cursor":{borderLeftColor:"#33afbc"},".cm-gutters":{backgroundColor:"#24282f",borderRight:"1px solid #2c313a",color:"#505862"},".cm-activeLineGutter":{backgroundColor:"#2c313a"},".cm-activeLine":{backgroundColor:"rgba(44, 49, 58, 0.5)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(51, 175, 188, 0.15)"}},{dark:!0});function p0({content:e,language:n,onChange:s,onSave:r}){const o=v.useRef(null),d=v.useRef(null),u=v.useRef(new tw),f=v.useRef(s),h=v.useRef(r);return f.current=s,h.current=r,v.useEffect(()=>{if(!o.current)return;const p=oc[n]||oc.javascript,x=bO.of([{key:"Mod-s",run:()=>{var y;return(y=h.current)==null||y.call(h),!0}}]),g=H0.create({doc:e||"",extensions:[aw(),sw(),lw(),rw(),iw(),ow(),cw(),bO.of([...dw,...uw,...fw]),x,nw,LR,u.current.of(p()),Vl.updateListener.of(y=>{var Q;y.docChanged&&((Q=f.current)==null||Q.call(f,y.state.doc.toString()))})]}),b=new Vl({state:g,parent:o.current});return d.current=b,()=>{b.destroy(),d.current=null}},[]),v.useEffect(()=>{const p=d.current;if(!p)return;const x=p.state.doc.toString();e!==x&&p.dispatch({changes:{from:0,to:x.length,insert:e||""}})},[e]),v.useEffect(()=>{const p=d.current;if(!p)return;const x=oc[n]||oc.javascript;p.dispatch({effects:u.current.reconfigure(x())})},[n]),l.jsx("div",{ref:o,className:"w-full h-full overflow-hidden"})}const WR=["png","jpg","jpeg","gif","svg","webp","ico","bmp","avif"],Jy=["mp4","webm","mov","avi","mkv","ogv"];function BR(e){var s;const n=(s=e.split(".").pop())==null?void 0:s.toLowerCase();return WR.includes(n)||Jy.includes(n)}function HR({path:e}){var d;const n=(d=e.split(".").pop())==null?void 0:d.toLowerCase(),s=`/api/files/raw?path=${encodeURIComponent(e)}`,r=e.split("/").pop(),o=Jy.includes(n);return l.jsxs("div",{className:"w-full h-full flex flex-col items-center justify-center bg-surface-0 p-8 gap-4",children:[l.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-3 font-sans",children:[l.jsx(Pe,{children:n==null?void 0:n.toUpperCase()}),l.jsx("span",{className:"font-mono",children:r}),l.jsx("a",{href:s,target:"_blank",rel:"noopener",className:"text-accent hover:text-accent/80 transition-colors",children:l.jsx(Bl,{size:12})})]}),o?l.jsx("video",{src:s,controls:!0,className:"max-w-full max-h-[70vh] rounded-md border border-border"}):l.jsx("img",{src:s,alt:r,className:"max-w-full max-h-[70vh] rounded-md border border-border object-contain"})]})}function IR(e){var s;const n=(s=e==null?void 0:e.split(".").pop())==null?void 0:s.toLowerCase();return n==="html"||n==="htm"}function FR(){const e=W(j=>j.editorActiveFile),n=W(j=>j.editorFiles),s=W(j=>j.editorChangedFiles),r=W(j=>j.updateFileContent),o=W(j=>j.saveFile),d=W(j=>j.reloadFile),u=W(j=>j.dismissFileChange),[f,h]=v.useState(""),[p,x]=v.useState(!1),[g,b]=v.useState(0);v.useEffect(()=>{J.get("/files/root").then(j=>h(j.root||"")).catch(()=>{})},[]),v.useEffect(()=>{x(!1)},[e]);const y=e?n[e]:null,Q=e&&BR(e),k=e&&IR(e),w=e&&s[e];return l.jsxs("div",{className:"flex h-full",children:[l.jsx("div",{className:"w-60 flex-shrink-0 border-r border-border",children:l.jsx(m3,{rootDir:f})}),l.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[l.jsx(p3,{}),l.jsxs("div",{className:"flex-1 relative min-h-0",children:[w&&l.jsxs("div",{className:"absolute top-0 left-0 right-0 z-10 flex items-center gap-2 px-4 py-2 bg-warning/10 border-b border-warning/20",children:[l.jsx($i,{size:14,className:"text-warning"}),l.jsx("span",{className:"text-xs text-warning font-sans flex-1",children:"File modified externally"}),l.jsxs(be,{variant:"ghost",size:"sm",onClick:()=>d(e),children:[l.jsx(un,{size:12})," Reload"]}),l.jsxs(be,{variant:"ghost",size:"sm",onClick:()=>u(e),children:[l.jsx(wt,{size:12})," Dismiss"]})]}),!e&&l.jsx("div",{className:"w-full h-full flex items-center justify-center text-text-4 font-sans",children:l.jsxs("div",{className:"text-center space-y-2",children:[l.jsx(os,{size:32,className:"mx-auto"}),l.jsx("p",{className:"text-sm",children:"Open a file from the tree"})]})}),e&&Q&&l.jsx(HR,{path:e}),e&&!Q&&k&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"absolute top-0 right-4 z-10 flex items-center gap-0.5 mt-2 bg-surface-2 border border-border-subtle rounded-md p-0.5",children:[l.jsxs("button",{onClick:()=>x(!1),className:oe("flex items-center gap-1.5 px-2.5 py-1 text-xs font-sans rounded cursor-pointer transition-colors",p?"text-text-3 hover:text-text-1":"bg-surface-4 text-text-0 font-medium"),children:[l.jsx(bT,{size:12})," Code"]}),l.jsxs("button",{onClick:()=>{x(!0),b(j=>j+1)},className:oe("flex items-center gap-1.5 px-2.5 py-1 text-xs font-sans rounded cursor-pointer transition-colors",p?"bg-surface-4 text-text-0 font-medium":"text-text-3 hover:text-text-1"),children:[l.jsx(Us,{size:12})," Preview"]})]}),p?l.jsx("iframe",{src:`/api/files/raw?path=${encodeURIComponent(e)}`,className:"w-full h-full border-0",sandbox:"allow-scripts allow-same-origin",title:"HTML Preview"},g):y&&l.jsx(p0,{content:y.content,language:y.language,onChange:j=>r(e,j),onSave:()=>o(e)})]}),e&&!Q&&!k&&y&&l.jsx(p0,{content:y.content,language:y.language,onChange:j=>r(e,j),onSave:()=>o(e)})]})]})]})}function KR(){var k;const e=W(w=>w.connected),n=W(w=>w.agents),[s,r]=v.useState(null),[o,d]=v.useState(!0),[u,f]=v.useState({tokens:[],cost:[],saved:[],efficiency:[],cache:[],inputOutput:[],agents:[],turns:[]}),h=v.useRef(0);v.useEffect(()=>{if(!e)return;let w=!0;async function j(){try{const z=await J.get("/dashboard");if(!w)return;r(z),d(!1),h.current=Date.now(),f(_=>{var D,ie,V,N,M,K,de,ae,Qe;const G=Date.now(),Z=(ve,ue)=>[...ve.slice(-59),{t:G,v:ue||0}],C=((D=z.tokens)==null?void 0:D.totalTokens)||0,T=((ie=z.tokens)==null?void 0:ie.totalInputTokens)||0,H=((V=z.tokens)==null?void 0:V.totalOutputTokens)||0,ee=(((N=z.agents)==null?void 0:N.breakdown)||[]).filter(ve=>{var ue;return((ue=ve.quality)==null?void 0:ue.score)!=null}),I=ee.length>0?ee.reduce((ve,ue)=>ve+ue.quality.score,0)/ee.length:0;return{tokens:Z(_.tokens,C),cost:Z(_.cost,(M=z.tokens)==null?void 0:M.totalCostUsd),saved:Z(_.saved,I),efficiency:Z(_.efficiency,((K=z.rotation)==null?void 0:K.totalRotations)||0),cache:Z(_.cache,(de=z.tokens)==null?void 0:de.cacheHitRate),inputOutput:Z(_.inputOutput,H>0?T/H:0),agents:Z(_.agents,((ae=z.agents)==null?void 0:ae.running)||0),turns:Z(_.turns,(Qe=z.tokens)==null?void 0:Qe.totalTurns)}})}catch{w&&d(!1)}}j();const P=setInterval(j,4e3);return()=>{w=!1,clearInterval(P)}},[e]);const p=((k=s==null?void 0:s.agents)==null?void 0:k.breakdown)||[],x=(s==null?void 0:s.routing)||null,g=(s==null?void 0:s.rotation)||null,b=(s==null?void 0:s.adaptive)||[],y=(s==null?void 0:s.journalist)||null,Q=(g==null?void 0:g.rotating)||[];return{data:s,loading:o,agents:n,connected:e,kpiHistory:u,lastFetch:h.current,agentBreakdown:p,routing:x,rotation:g,adaptive:b,journalist:y,rotating:Q}}const x0=v.memo(function({connected:n,runningCount:s,totalCount:r,uptime:o,lastFetch:d,activeTeam:u}){return l.jsxs("div",{className:"flex items-center gap-4 px-4 py-2 bg-surface-1 border-b border-border",children:[l.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Command Center"}),u&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-text-4",children:"/"}),l.jsx("span",{className:"text-xs font-mono text-text-2",children:u.name})]}),l.jsx("div",{className:"flex-1"}),n&&l.jsxs("div",{className:"flex items-center gap-3.5 text-xs font-mono text-text-2",children:[l.jsxs("span",{children:[l.jsx("span",{className:"text-text-1",children:s}),l.jsxs("span",{className:"text-text-3",children:["/",r]}),l.jsx("span",{className:"ml-1 text-text-3",children:"agents"})]}),o>0&&l.jsxs("span",{className:"text-text-3",children:["Up ",Pi(o)]}),d>0&&l.jsxs("span",{className:"flex items-center gap-1 text-text-4",children:[l.jsx(un,{size:9}),l.jsx("span",{children:kt(d)})]})]}),l.jsx(Xs,{status:n?"running":"crashed",size:"sm"})]})});function Bt(e,n){const s=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16);return`rgba(${s},${r},${o},${n})`}const fe={surface0:"#1a1e25",surface4:"#2c313a",surface5:"#333842",text0:"#e6e6e6",text1:"#bcc2cd",text2:"#8b929e",text3:"#6e7681",text4:"#505862",accent:"#33afbc",success:"#4ae168",warning:"#e5c07b",danger:"#e06c75",info:"#61afef",purple:"#c678dd",orange:"#d19a66"};function JR({data:e,color:n=fe.accent,width:s=72,height:r=22}){if(!e||e.length<2)return l.jsx("div",{style:{width:s,height:r}});const o=e.map(x=>x.v),d=Math.min(...o),f=Math.max(...o)-d||1,h=e.map((x,g)=>{const b=g/(e.length-1)*s,y=r-(x.v-d)/f*(r-2)-1;return`${b},${y}`}).join(" "),p=`kpi-${n.replace("#","")}`;return l.jsxs("svg",{width:s,height:r,className:"flex-shrink-0",children:[l.jsx("defs",{children:l.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[l.jsx("stop",{offset:"0%",stopColor:n,stopOpacity:"0.2"}),l.jsx("stop",{offset:"100%",stopColor:n,stopOpacity:"0"})]})}),l.jsx("polygon",{points:`0,${r} ${h} ${s},${r}`,fill:`url(#${p})`}),l.jsx("polyline",{points:h,fill:"none",stroke:n,strokeWidth:"1.5",strokeLinejoin:"round",strokeOpacity:"0.8"})]})}const e_=v.memo(function({label:n,value:s,sparkData:r,color:o=fe.accent,hint:d,className:u}){return l.jsxs("div",{className:oe("flex items-center gap-2.5 px-3 py-2.5 min-w-0","bg-surface-1",u),children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5 truncate flex items-center gap-1",children:[n,d&&l.jsx(zc,{content:l.jsx("span",{className:"max-w-[220px] block leading-relaxed",children:d}),side:"bottom",children:l.jsx(Ll,{size:10,className:"text-text-4 hover:text-text-2 cursor-help flex-shrink-0 transition-colors"})})]}),l.jsx("div",{className:"text-base font-semibold font-mono text-text-0 tabular-nums leading-none",children:s})]}),l.jsx(JR,{data:r,color:o})]})});function t_({kpis:e}){return l.jsx("div",{className:"flex flex-wrap border-b border-border",style:{background:"var(--color-surface-0)"},children:e.map(n=>l.jsx(e_,{label:n.label,value:n.value,sparkData:n.sparkData,color:n.color,hint:n.hint,className:oe("flex-1 basis-[12.5%] min-w-[140px]","border-b border-r border-border")},n.label))})}const n_={actual:"ACT",estimated:"EST",local:"LOC"};function a_(e){if(!e||e==="auto"||e==="default")return"default";const n=e.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:e.startsWith("gemini-")?e.replace("gemini-","Gem ").replace("-preview",""):e.length>12?e.slice(0,12)+"...":e}const s_=v.memo(function({agent:n,isRotating:s}){const r=n.status==="running"||n.status==="starting",o=Math.round((n.contextUsage||0)*100),d=s?"#c678dd":gh(n.status),u=n.quality,f=(u==null?void 0:u.toolSuccessRate)!=null?Math.round(u.toolSuccessRate*100):null,h=n.rotationThreshold?Math.round(n.rotationThreshold*100):null,p=Ni(n.role),x=o>80?fe.danger:o>60?fe.warning:fe.accent;return l.jsxs("div",{className:"px-3 pl-6 py-2 hover:bg-[rgba(51,175,188,0.06)] transition-colors space-y-1.5",children:[l.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[l.jsx("span",{className:"absolute inset-0 rounded-sm",style:{background:d}}),r&&l.jsx("span",{className:"absolute inset-[-2px] rounded-sm",style:{background:d,opacity:.15,animation:"node-pulse-bar 2s ease-in-out infinite"}})]}),l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate leading-none flex-shrink-0 max-w-[80px]",children:n.name}),l.jsx("span",{className:"text-2xs font-mono font-semibold px-1.5 py-px rounded-sm flex-shrink-0 capitalize",style:{background:p.bg,color:p.text},children:(n.role||"").toLowerCase()}),l.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1 py-px rounded-sm flex-shrink-0 truncate max-w-[72px]",children:a_(n.model)}),l.jsx("div",{className:"flex-1"}),f!=null&&l.jsxs("span",{className:"text-2xs font-mono font-bold px-1 py-px rounded-sm flex-shrink-0",style:{color:f>=90?"#4ae168":f>=70?"#e5c07b":"#e06c75",background:f>=90?"rgba(74,225,104,0.1)":f>=70?"rgba(229,192,123,0.1)":"rgba(224,108,117,0.1)"},children:[f,"%"]}),n.costSource&&n.costSource!=="actual"&&l.jsx("span",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider flex-shrink-0",children:n_[n.costSource]||""}),l.jsxs("div",{className:"text-right flex-shrink-0",children:[l.jsx("div",{className:"text-xs font-mono text-text-1 tabular-nums leading-none",children:et(n.tokens||0)}),(n.costUsd||0)>0&&l.jsx("div",{className:"text-2xs font-mono text-text-3 mt-0.5",children:nr(n.costUsd)})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("div",{className:"relative flex-1 h-[4px] rounded-full overflow-visible",style:{background:Bt(fe.accent,.12)},children:[l.jsx("div",{className:"absolute inset-y-0 left-0 rounded-full transition-all duration-700",style:{width:`${Math.max(o,1)}%`,background:x}}),h&&l.jsx("div",{className:"absolute top-[-2px] w-px h-[8px]",style:{left:`${h}%`,background:fe.purple},title:`Rotation at ${h}%`})]}),l.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums flex-shrink-0 w-7 text-right",children:[o,"%"]})]})]})});function l_({team:e,members:n,rotatingSet:s}){const[r,o]=v.useState(!0),d=n.filter(p=>p.status==="running"||p.status==="starting").length,u=d>0,f=n.reduce((p,x)=>p+(x.tokens||0),0),h=n.reduce((p,x)=>p+(x.costUsd||0),0);return l.jsxs("div",{children:[l.jsxs("button",{onClick:()=>o(p=>!p),className:"w-full flex items-center gap-2 px-3 py-1.5 text-left transition-colors hover:bg-[rgba(51,175,188,0.08)] bg-[rgba(51,175,188,0.05)]",style:{borderLeft:u?`2px solid ${fe.accent}`:"2px solid transparent"},children:[r?l.jsx(Rn,{size:10,className:"text-text-4 flex-shrink-0"}):l.jsx(is,{size:10,className:"text-text-4 flex-shrink-0"}),l.jsx("span",{className:"text-2xs font-mono font-semibold text-text-2 uppercase tracking-widest flex-1 truncate",children:e}),l.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:et(f)}),h>0&&l.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums ml-1",children:nr(h)}),l.jsxs("span",{className:"text-2xs font-mono tabular-nums flex-shrink-0 ml-1.5",style:{color:u?fe.accent:void 0},children:[d,"/",n.length]})]}),r&&n.map(p=>l.jsx(s_,{agent:p,isRotating:s.has(p.id)},p.id))]})}const r_=v.memo(function({agentBreakdown:n,rotating:s=[],teams:r=[]}){if(!(n!=null&&n.length))return l.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"No agents"});const o={};for(const f of r)o[f.id]=f.name;const d={};for(const f of n){const h=f.teamId||"ungrouped";d[h]||(d[h]=[]),d[h].push(f)}const u=new Set(s);return l.jsx(pa,{className:"flex-1",children:l.jsx("div",{className:"py-1",children:Object.entries(d).map(([f,h])=>l.jsx(l_,{team:o[f]||(f==="ungrouped"?"Ungrouped":f),members:h,rotatingSet:u},f))})})}),i_=v.memo(function({data:n}){const s=v.useRef(null),r=v.useRef(null),[o,d]=v.useState({width:0,height:0}),[u,f]=v.useState(null),{width:h,height:p}=o,x={top:28,right:12,bottom:8,left:12},g=Math.max(h-x.left-x.right,0),b=Math.max(p-x.top-x.bottom,0),y=v.useMemo(()=>!n||n.length<2?[]:n.slice(1).map((w,j)=>{const P=n[j],z=(w.t-P.t)/6e4,_=Math.max((w.tokens||0)-(P.tokens||0),0);return{burnRate:z>0?Math.round(_/z):0,cacheHitRate:w.cacheHitRate||0,running:w.running||0,agents:w.agents||0,t:w.t}}),[n]);v.useEffect(()=>{const w=s.current;if(!w)return;const j=new ResizeObserver(P=>{const{width:z,height:_}=P[0].contentRect;z>0&&_>0&&d({width:Math.floor(z),height:Math.floor(_)})});return j.observe(w),()=>j.disconnect()},[]);const Q=v.useCallback(w=>{const j=r.current;if(!j||!y.length||g<=0)return;const P=j.getBoundingClientRect(),z=w.clientX-P.left-x.left;if(z<0||z>g){f(null);return}const _=Math.round(z/g*(y.length-1));f({x:x.left+_/Math.max(y.length-1,1)*g,index:_})},[y,g,x.left]),k=v.useCallback(()=>f(null),[]);return v.useEffect(()=>{const w=r.current;if(!w||!y.length||h<=0||p<=0||g<=0||b<=0)return;const j=w.getContext("2d"),P=window.devicePixelRatio||1;w.width=h*P,w.height=p*P,j.scale(P,P),j.clearRect(0,0,h,p);const z=y.map(N=>N.burnRate),_=y.map(N=>N.cacheHitRate),G=y.map(N=>N.running),Z=Math.max(...z,100),C=Math.max(...G,1),T=N=>x.left+N/Math.max(y.length-1,1)*g,H=N=>x.top+b-N/Z*b,E=N=>x.top+b-N*b,ee=Math.max(g/y.length-1,2);for(let N=0;N<y.length;N++){const M=G[N];if(M<=0)continue;const K=M/C*b*.3,de=T(N)-ee/2,ae=x.top+b-K;j.fillStyle=Bt(fe.surface5,.5),j.fillRect(de,ae,ee,K)}j.setLineDash([2,4]),j.strokeStyle=Bt(fe.text4,.2),j.lineWidth=1;for(let N=1;N<=3;N++){const M=x.top+b/4*N;j.beginPath(),j.moveTo(x.left,M),j.lineTo(x.left+g,M),j.stroke()}j.setLineDash([]),j.font="9px 'JetBrains Mono Variable', monospace",j.textAlign="left",j.fillStyle=Bt(fe.text3,.5),j.fillText(`${et(Z)}/m`,x.left+4,x.top+10),j.fillText(`${et(Math.round(Z/2))}/m`,x.left+4,x.top+b/2+4),j.beginPath(),j.moveTo(x.left,x.top+b);for(let N=0;N<y.length;N++)j.lineTo(T(N),H(z[N]));j.lineTo(T(y.length-1),x.top+b),j.closePath();const I=j.createLinearGradient(0,x.top,0,x.top+b);I.addColorStop(0,Bt(fe.accent,.2)),I.addColorStop(.7,Bt(fe.accent,.04)),I.addColorStop(1,Bt(fe.accent,0)),j.fillStyle=I,j.fill(),j.beginPath(),j.strokeStyle=fe.accent,j.lineWidth=1.5,j.lineJoin="round";for(let N=0;N<y.length;N++){const M=T(N),K=H(z[N]);N===0?j.moveTo(M,K):j.lineTo(M,K)}j.stroke();const D=_.some(N=>N>0);if(D){j.beginPath(),j.strokeStyle=Bt(fe.info,.45),j.lineWidth=1,j.lineJoin="round",j.setLineDash([2,3]);for(let N=0;N<y.length;N++){const M=T(N),K=E(_[N]);N===0?j.moveTo(M,K):j.lineTo(M,K)}j.stroke(),j.setLineDash([])}j.font="9px 'Inter Variable', sans-serif",j.textAlign="right";let ie=h-x.right-4;const V=14;if(D&&(j.fillStyle=Bt(fe.info,.5),j.fillText("Cache %",ie,V),ie-=j.measureText("Cache %").width+4,j.beginPath(),j.arc(ie,V-3,2.5,0,Math.PI*2),j.fill(),ie-=14),j.fillStyle=Bt(fe.surface5,.7),j.fillText("Agents",ie,V),ie-=j.measureText("Agents").width+4,j.beginPath(),j.arc(ie,V-3,2.5,0,Math.PI*2),j.fill(),ie-=14,j.fillStyle=fe.accent,j.fillText("Burn Rate",ie,V),ie-=j.measureText("Burn Rate").width+4,j.beginPath(),j.arc(ie,V-3,2.5,0,Math.PI*2),j.fill(),u&&u.index>=0&&u.index<y.length){const N=u.x,M=y[u.index];j.beginPath(),j.moveTo(N,x.top),j.lineTo(N,x.top+b),j.strokeStyle=Bt(fe.text1,.15),j.lineWidth=1,j.stroke();const K=H(M.burnRate);j.beginPath(),j.arc(N,K,3,0,Math.PI*2),j.fillStyle=fe.accent,j.fill();const de=[{label:"Burn",value:`${et(M.burnRate)}/m`,color:fe.accent},{label:"Cache",value:Ja(M.cacheHitRate*100),color:fe.info},{label:"Agents",value:`${M.running}/${M.agents}`,color:fe.text2}],ae=104,Qe=de.length*16+12;let ve=N+12;ve+ae>h-8&&(ve=N-ae-12);const ue=Math.max(x.top,K-Qe/2);j.fillStyle=Bt(fe.surface0,.92),j.beginPath(),j.roundRect(ve,ue,ae,Qe,4),j.fill(),j.strokeStyle=Bt(fe.text4,.2),j.lineWidth=1,j.stroke(),j.textAlign="left",de.forEach((ye,Ae)=>{const B=ue+14+Ae*16;j.beginPath(),j.arc(ve+8,B-3,2,0,Math.PI*2),j.fillStyle=ye.color,j.fill(),j.font="8px 'Inter Variable', sans-serif",j.fillStyle=fe.text3,j.fillText(ye.label,ve+14,B),j.font="9px 'JetBrains Mono Variable', monospace",j.fillStyle=fe.text0,j.textAlign="right",j.fillText(ye.value,ve+ae-8,B),j.textAlign="left"})}},[y,h,p,u,g,b,x]),l.jsx("div",{ref:s,className:"absolute inset-0",children:h>0&&p>0&&l.jsx("canvas",{ref:r,style:{width:h,height:p},className:"block cursor-crosshair",onMouseMove:Q,onMouseLeave:k})})}),o_=v.memo(function({cacheRead:n=0,cacheCreation:s=0,totalInput:r=0,size:o=140}){const d=v.useRef(null),u=n+s+r,f=u>0?n/u*100:0;return v.useEffect(()=>{const h=d.current;if(!h)return;const p=window.devicePixelRatio||1;h.width=o*p,h.height=o*p;const x=h.getContext("2d");x.scale(p,p),x.clearRect(0,0,o,o);const g=o/2,b=o/2,y=(o-12)/2,Q=5,k=135*Math.PI/180,w=405*Math.PI/180,j=w-k;if(x.beginPath(),x.arc(g,b,y,k,w),x.strokeStyle=fe.surface4,x.lineWidth=Q,x.lineCap="round",x.stroke(),u>0){const P=n/u,z=s/u;if(P>0){const _=k+j*P;x.beginPath(),x.arc(g,b,y,k,_),x.strokeStyle=fe.accent,x.lineWidth=Q,x.lineCap="round",x.stroke()}if(z>0){const _=k+j*P,G=_+j*z;x.beginPath(),x.arc(g,b,y,_,G),x.strokeStyle=fe.purple,x.lineWidth=Q,x.lineCap="butt",x.stroke()}}x.textAlign="center",x.textBaseline="middle",x.font=`600 ${o*.2}px 'JetBrains Mono Variable', monospace`,x.fillStyle=fe.text0,x.fillText(`${Math.round(f)}%`,g,b-3),x.font=`500 ${o*.08}px 'JetBrains Mono Variable', monospace`,x.fillStyle=fe.text3,x.fillText("CACHE",g,b+o*.13)},[n,s,r,o,u,f]),l.jsxs("div",{className:"flex flex-col items-center justify-center h-full px-3 py-3",children:[l.jsx("canvas",{ref:d,className:"flex-shrink-0",style:{width:o,height:o}}),l.jsxs("div",{className:"w-full mt-3 space-y-1.5 max-w-[160px]",children:[l.jsx(oO,{color:fe.accent,label:"Read",value:et(n)}),l.jsx(oO,{color:fe.purple,label:"Create",value:et(s)}),l.jsx(oO,{color:fe.surface5,label:"Miss",value:et(Math.max(r-n-s,0))})]})]})});function oO({color:e,label:n,value:s}){return l.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:e}}),l.jsx("span",{className:"text-text-3 uppercase tracking-wider flex-1",children:n}),l.jsx("span",{className:"text-text-1 tabular-nums",children:s})]})}const g0={heavy:fe.danger,medium:fe.warning,light:fe.success},b0={heavy:"Heavy",medium:"Medium",light:"Light"},c_=v.memo(function({routing:n,agentBreakdown:s}){if(!n)return null;const{byTier:r={},totalDecisions:o=0,autoRoutedCount:d=0}=n,u=["heavy","medium","light"],f=u.reduce((g,b)=>g+(r[b]||0),0),h={};for(const g of s||[]){const b=g.model||"default";h[b]||(h[b]={tokens:0,agents:0}),h[b].tokens+=g.tokens||0,h[b].agents+=1}const p=Object.entries(h).sort((g,b)=>b[1].tokens-g[1].tokens),x=p.length>0?p[0][1].tokens:0;return l.jsxs("div",{className:"flex flex-col h-full px-3 py-3 overflow-y-auto",children:[f>0&&l.jsxs("div",{className:"space-y-1.5 mb-3",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Tier Distribution"}),l.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto tabular-nums",children:[et(f)," decisions"]})]}),l.jsx("div",{className:"h-[6px] bg-surface-4 rounded-full overflow-hidden flex",children:u.map(g=>{const b=r[g]||0;if(b===0)return null;const y=b/f*100;return l.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${y}%`,background:g0[g]},title:`${b0[g]}: ${b} (${Math.round(y)}%)`},g)})}),l.jsx("div",{className:"flex items-center gap-3",children:u.map(g=>{const b=r[g]||0;if(b===0)return null;const y=f>0?b/f*100:0;return l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:g0[g]}}),l.jsx("span",{className:"text-2xs font-mono text-text-2",children:b0[g]}),l.jsx("span",{className:"text-2xs font-mono text-text-4 tabular-nums",children:Ja(y)})]},g)})})]}),p.length>0&&l.jsxs("div",{className:"space-y-1.5 flex-1",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Models in Use"}),d>0&&l.jsxs("span",{className:"text-2xs font-mono text-text-4 ml-auto",children:[d," auto"]})]}),l.jsx("div",{className:"space-y-1.5",children:p.map(([g,b])=>{const y=x>0?b.tokens/x*100:0;return l.jsxs("div",{className:"space-y-0.5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-mono text-text-1 flex-1 truncate",children:d_(g)}),l.jsxs("span",{className:"text-2xs font-mono text-text-3 tabular-nums",children:[b.agents," agent",b.agents!==1?"s":""]}),l.jsx("span",{className:"text-xs font-mono text-text-1 tabular-nums",children:et(b.tokens)})]}),l.jsx("div",{className:"h-[3px] bg-surface-4 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.max(y,2)}%`,background:fe.accent}})})]},g)})})]}),f===0&&p.length===0&&l.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono",children:"No routing data"})]})});function d_(e){if(!e||e==="auto"||e==="default")return"Default";const n=e.match(/^claude-(opus|sonnet|haiku)-(\d+)-(\d+)/);return n?`${n[1][0].toUpperCase()}${n[1].slice(1)} ${n[2]}.${n[3]}`:e.startsWith("gemini-")?e.replace("gemini-","Gemini ").replace("-preview",""):e}function u_(e){const n=e+"CollectionProvider",[s,r]=Ms(n),[o,d]=s(n,{collectionRef:{current:null},itemMap:new Map}),u=k=>{const{scope:w,children:j}=k,P=Wa.useRef(null),z=Wa.useRef(new Map).current;return l.jsx(o,{scope:w,itemMap:z,collectionRef:P,children:j})};u.displayName=n;const f=e+"CollectionSlot",h=wc(f),p=Wa.forwardRef((k,w)=>{const{scope:j,children:P}=k,z=d(f,j),_=dt(w,z.collectionRef);return l.jsx(h,{ref:_,children:P})});p.displayName=f;const x=e+"CollectionItemSlot",g="data-radix-collection-item",b=wc(x),y=Wa.forwardRef((k,w)=>{const{scope:j,children:P,...z}=k,_=Wa.useRef(null),G=dt(w,_),Z=d(x,j);return Wa.useEffect(()=>(Z.itemMap.set(_,{ref:_,...z}),()=>void Z.itemMap.delete(_))),l.jsx(b,{[g]:"",ref:G,children:P})});y.displayName=x;function Q(k){const w=d(e+"CollectionConsumer",k);return Wa.useCallback(()=>{const P=w.collectionRef.current;if(!P)return[];const z=Array.from(P.querySelectorAll(`[${g}]`));return Array.from(w.itemMap.values()).sort((Z,C)=>z.indexOf(Z.ref.current)-z.indexOf(C.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:u,Slot:p,ItemSlot:y},Q,r]}var cO="rovingFocusGroup.onEntryFocus",f_={bubbles:!1,cancelable:!0},zi="RovingFocusGroup",[YO,eS,O_]=u_(zi),[h_,tS]=Ms(zi,[O_]),[m_,p_]=h_(zi),nS=v.forwardRef((e,n)=>l.jsx(YO.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(YO.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(x_,{...e,ref:n})})}));nS.displayName=zi;var x_=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:s,orientation:r,loop:o=!1,dir:d,currentTabStopId:u,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=e,b=v.useRef(null),y=dt(n,b),Q=bh(d),[k,w]=ed({prop:u,defaultProp:f??null,onChange:h,caller:zi}),[j,P]=v.useState(!1),z=Xt(p),_=eS(s),G=v.useRef(!1),[Z,C]=v.useState(0);return v.useEffect(()=>{const T=b.current;if(T)return T.addEventListener(cO,z),()=>T.removeEventListener(cO,z)},[z]),l.jsx(m_,{scope:s,orientation:r,dir:Q,loop:o,currentTabStopId:k,onItemFocus:v.useCallback(T=>w(T),[w]),onItemShiftTab:v.useCallback(()=>P(!0),[]),onFocusableItemAdd:v.useCallback(()=>C(T=>T+1),[]),onFocusableItemRemove:v.useCallback(()=>C(T=>T-1),[]),children:l.jsx(Fe.div,{tabIndex:j||Z===0?-1:0,"data-orientation":r,...g,ref:y,style:{outline:"none",...e.style},onMouseDown:Ue(e.onMouseDown,()=>{G.current=!0}),onFocus:Ue(e.onFocus,T=>{const H=!G.current;if(T.target===T.currentTarget&&H&&!j){const E=new CustomEvent(cO,f_);if(T.currentTarget.dispatchEvent(E),!E.defaultPrevented){const ee=_().filter(N=>N.focusable),I=ee.find(N=>N.active),D=ee.find(N=>N.id===k),V=[I,D,...ee].filter(Boolean).map(N=>N.ref.current);lS(V,x)}}G.current=!1}),onBlur:Ue(e.onBlur,()=>P(!1))})})}),aS="RovingFocusGroupItem",sS=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:s,focusable:r=!0,active:o=!1,tabStopId:d,children:u,...f}=e,h=Al(),p=d||h,x=p_(aS,s),g=x.currentTabStopId===p,b=eS(s),{onFocusableItemAdd:y,onFocusableItemRemove:Q,currentTabStopId:k}=x;return v.useEffect(()=>{if(r)return y(),()=>Q()},[r,y,Q]),l.jsx(YO.ItemSlot,{scope:s,id:p,focusable:r,active:o,children:l.jsx(Fe.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...f,ref:n,onMouseDown:Ue(e.onMouseDown,w=>{r?x.onItemFocus(p):w.preventDefault()}),onFocus:Ue(e.onFocus,()=>x.onItemFocus(p)),onKeyDown:Ue(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){x.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const j=v_(w,x.orientation,x.dir);if(j!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let z=b().filter(_=>_.focusable).map(_=>_.ref.current);if(j==="last")z.reverse();else if(j==="prev"||j==="next"){j==="prev"&&z.reverse();const _=z.indexOf(w.currentTarget);z=x.loop?y_(z,_+1):z.slice(_+1)}setTimeout(()=>lS(z))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:k!=null}):u})})});sS.displayName=aS;var g_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function b_(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function v_(e,n,s){const r=b_(e.key,s);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return g_[r]}function lS(e,n=!1){const s=document.activeElement;for(const r of e)if(r===s||(r.focus({preventScroll:n}),document.activeElement!==s))return}function y_(e,n){return e.map((s,r)=>e[(n+r)%e.length])}var S_=nS,Q_=sS,cd="Tabs",[j_]=Ms(cd,[tS]),rS=tS(),[w_,Zh]=j_(cd),iS=v.forwardRef((e,n)=>{const{__scopeTabs:s,value:r,onValueChange:o,defaultValue:d,orientation:u="horizontal",dir:f,activationMode:h="automatic",...p}=e,x=bh(f),[g,b]=ed({prop:r,onChange:o,defaultProp:d??"",caller:cd});return l.jsx(w_,{scope:s,baseId:Al(),value:g,onValueChange:b,orientation:u,dir:x,activationMode:h,children:l.jsx(Fe.div,{dir:x,"data-orientation":u,...p,ref:n})})});iS.displayName=cd;var oS="TabsList",cS=v.forwardRef((e,n)=>{const{__scopeTabs:s,loop:r=!0,...o}=e,d=Zh(oS,s),u=rS(s);return l.jsx(S_,{asChild:!0,...u,orientation:d.orientation,dir:d.dir,loop:r,children:l.jsx(Fe.div,{role:"tablist","aria-orientation":d.orientation,...o,ref:n})})});cS.displayName=oS;var dS="TabsTrigger",uS=v.forwardRef((e,n)=>{const{__scopeTabs:s,value:r,disabled:o=!1,...d}=e,u=Zh(dS,s),f=rS(s),h=hS(u.baseId,r),p=mS(u.baseId,r),x=r===u.value;return l.jsx(Q_,{asChild:!0,...f,focusable:!o,active:x,children:l.jsx(Fe.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:h,...d,ref:n,onMouseDown:Ue(e.onMouseDown,g=>{!o&&g.button===0&&g.ctrlKey===!1?u.onValueChange(r):g.preventDefault()}),onKeyDown:Ue(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&u.onValueChange(r)}),onFocus:Ue(e.onFocus,()=>{const g=u.activationMode!=="manual";!x&&!o&&g&&u.onValueChange(r)})})})});uS.displayName=dS;var fS="TabsContent",OS=v.forwardRef((e,n)=>{const{__scopeTabs:s,value:r,forceMount:o,children:d,...u}=e,f=Zh(fS,s),h=hS(f.baseId,r),p=mS(f.baseId,r),x=r===f.value,g=v.useRef(x);return v.useEffect(()=>{const b=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(b)},[]),l.jsx(Sn,{present:o||x,children:({present:b})=>l.jsx(Fe.div,{"data-state":x?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":h,hidden:!b,id:p,tabIndex:0,...u,ref:n,style:{...e.style,animationDuration:g.current?"0s":void 0},children:b&&d})})});OS.displayName=fS;function hS(e,n){return`${e}-trigger-${n}`}function mS(e,n){return`${e}-content-${n}`}var k_=iS,$_=cS,T_=uS,N_=OS;function pS({children:e,...n}){return l.jsx(k_,{...n,children:e})}function xS({children:e,className:n,...s}){return l.jsx($_,{className:oe("flex items-center gap-0 border-b border-border-subtle",n),...s,children:e})}function Ml({children:e,className:n,...s}){return l.jsx(T_,{className:oe("px-3 py-2 text-sm font-medium font-sans text-text-2","border-b-2 border-transparent","hover:text-text-0 hover:bg-surface-5/50","data-[state=active]:text-text-0 data-[state=active]:border-accent","transition-colors duration-100 cursor-pointer select-none","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-accent",n),...s,children:e})}function Yl({children:e,className:n,...s}){return l.jsx(N_,{className:oe("flex-1 min-h-0",n),...s,children:e})}function v0({data:e,color:n=fe.accent,width:s=60,height:r=16}){if(!e||e.length<2)return l.jsx("div",{style:{width:s,height:r}});const o=Array.isArray(e[0])?e:e.map(p=>typeof p=="number"?p:p.v),d=Math.min(...o),f=Math.max(...o)-d||1,h=o.map((p,x)=>{const g=x/(o.length-1)*s,b=r-(p-d)/f*(r-2)-1;return`${g},${b}`}).join(" ");return l.jsx("svg",{width:s,height:r,className:"flex-shrink-0",children:l.jsx("polyline",{points:h,fill:"none",stroke:n,strokeWidth:"1",strokeLinejoin:"round",strokeOpacity:"0.7"})})}function cc({text:e,side:n="bottom"}){return l.jsx(zc,{content:l.jsx("span",{className:"max-w-[220px] block leading-relaxed",children:e}),side:n,children:l.jsx(Ll,{size:10,className:"text-text-4 hover:text-text-2 cursor-help flex-shrink-0 transition-colors inline-block ml-1"})})}function UO(e){return e==null?fe.text3:e>=70?"#4ae168":e>=40?"#e5c07b":"#e06c75"}function Ha({label:e,value:n,danger:s}){return n==null||n===0?null:l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:[e,": ",l.jsx("span",{style:{color:s?"#e06c75":fe.text1},children:n})]})}function P_({score:e}){const n=Math.max(0,Math.min(100,e||0)),s=UO(e);return l.jsx("div",{className:"h-1 rounded-full overflow-hidden flex-1",style:{background:"rgba(51,175,188,0.08)"},children:l.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})})}function dO({label:e,value:n,total:s,color:r}){const o=s>0?n/s*100:0;return l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-xs font-mono text-text-2",children:e}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("span",{className:"text-xs font-mono font-semibold tabular-nums",style:{color:r},children:[o>=1?Math.round(o):o>0?o.toFixed(1):0,"%"]}),l.jsx("span",{className:"text-2xs font-mono text-text-3 tabular-nums w-10 text-right",children:et(n)})]})]}),l.jsx("div",{className:"h-[7px] rounded-full overflow-hidden",style:{background:"rgba(51,175,188,0.08)"},children:l.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${Math.min(o,100)}%`,background:r}})})]})}function z_({tokens:e,rotation:n,agentBreakdown:s}){var b;const r=((n==null?void 0:n.history)||[]).slice(-10).reverse(),o=(n==null?void 0:n.liveScores)||{},d=(s||[]).filter(y=>y.status==="running"),u=s||[],f=u.filter(y=>{var Q;return((Q=y.quality)==null?void 0:Q.score)!=null}),h=f.length>0?Math.round(f.reduce((y,Q)=>y+Q.quality.score,0)/f.length):null,p=u.filter(y=>y.status==="completed"||y.status==="stopped").length,x=u.filter(y=>y.status==="crashed").length,g=p+x>0?Math.round(p/(p+x)*100):100;return l.jsxs("div",{className:"p-3 space-y-4",children:[l.jsxs("div",{className:"grid grid-cols-4 gap-2",children:[l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Quality",l.jsx(cc,{text:"Average session quality score (0-100). Based on error rate, tool failures, repetitions, and file churn. Below 40 triggers auto-rotation to prevent wasted tokens."})]}),l.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:UO(h)},children:h??"—"})]}),l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Rotations",l.jsx(cc,{text:"Context rotations: quality-based (q), context threshold (c), and natural compactions (n) from provider-managed context resets. Each rotation preserves progress via a journalist handoff brief."})]}),l.jsx("div",{className:"text-2xl font-mono font-bold text-text-0 tabular-nums leading-none",children:(n==null?void 0:n.totalRotations)||0}),((n==null?void 0:n.qualityRotations)>0||(n==null?void 0:n.contextRotations)>0||(n==null?void 0:n.naturalCompactions)>0)&&l.jsxs("div",{className:"text-2xs font-mono text-text-4 mt-0.5",children:[n.qualityRotations||0,"q / ",n.contextRotations||0,"c / ",n.naturalCompactions||0,"n"]})]}),l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Cache",l.jsx(cc,{text:"Prompt cache hit rate. Cache reads are ~90% cheaper than regular input tokens. Managed by your AI provider — GROOVE tracks it, doesn't control it."})]}),l.jsx("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:fe.accent},children:Ja(((e==null?void 0:e.cacheHitRate)||0)*100)})]}),l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsxs("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1 flex items-center",children:["Success",l.jsx(cc,{text:"Agent completion rate. Completed agents vs. crashed agents. High success rate means agents are finishing tasks without errors."})]}),l.jsxs("div",{className:"text-2xl font-mono font-bold tabular-nums leading-none",style:{color:g>=90?"#4ae168":"#e5c07b"},children:[g,"%"]})]})]}),d.length>0&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2",children:"Live Agent Quality"}),l.jsx("div",{className:"space-y-2",children:d.map(y=>{const Q=y.quality||{},k=o[y.id],w=(k==null?void 0:k.score)??Q.score,j=Ni(y.role);return l.jsxs("div",{className:"bg-surface-0 rounded p-2.5",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[l.jsx("span",{className:"text-2xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:j.bg,color:j.text},children:y.role}),l.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:y.name}),l.jsx("span",{className:"text-sm font-mono font-bold tabular-nums",style:{color:UO(w)},children:w??"—"})]}),l.jsx(P_,{score:w}),l.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-1.5",children:[l.jsx(Ha,{label:"Errors",value:Q.errorCount,danger:!0}),l.jsx(Ha,{label:"Reps",value:Q.repetitions,danger:!0}),l.jsx(Ha,{label:"Churn",value:Q.fileChurn,danger:!0}),l.jsx(Ha,{label:"Tools",value:Q.toolCalls}),l.jsx(Ha,{label:"Files",value:Q.filesWritten}),Q.toolCalls>0&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Success: ",l.jsxs("span",{style:{color:Q.toolSuccessRate>=.8?"#4ae168":"#e5c07b"},children:[Math.round(Q.toolSuccessRate*100),"%"]})]}),Q.eventCount>0&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Events: ",l.jsx("span",{className:"text-text-2",children:Q.eventCount})]})]})]},y.id)})})]}),(((b=e==null?void 0:e.savings)==null?void 0:b.total)||0)>0&&l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider",children:"Coordination Savings"}),l.jsxs("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:[et(e.savings.total)," tokens"]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(dO,{label:"Cold-start skip",value:e.savings.fromColdStartSkip||0,total:e.savings.total||1,color:fe.info}),l.jsx(dO,{label:"Rotation",value:e.savings.fromRotation||0,total:e.savings.total||1,color:fe.accent}),l.jsx(dO,{label:"Conflict prevention",value:e.savings.fromConflictPrevention||0,total:e.savings.total||1,color:"#4ec9d4"})]})]}),r.length>0?l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-2.5",children:"Recent Rotations"}),l.jsx("div",{className:"space-y-0",children:r.map((y,Q)=>{const k=y.reason==="quality_degradation",w=y.reason==="natural_compaction",j=k?"#e5c07b":w?"#c678dd":"#33afbc";return l.jsxs("div",{className:"flex items-start gap-2.5",children:[l.jsxs("div",{className:"flex flex-col items-center flex-shrink-0",children:[l.jsx("div",{className:"h-1.5"}),l.jsx("div",{className:"w-2 h-2 rounded-full flex-shrink-0",style:{background:Q===0?j:`${j}25`,border:`1px solid ${j}80`,boxShadow:Q===0?`0 0 6px ${j}60`:"none"}}),Q<r.length-1&&l.jsx("div",{className:"w-px flex-1 mt-1",style:{background:"rgba(51,175,188,0.15)",minHeight:"12px"}})]}),l.jsx("div",{className:oe("flex-1 bg-surface-0 rounded px-2 py-1.5",Q<r.length-1&&"mb-2"),children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-mono text-text-1 font-medium capitalize truncate flex-1",children:y.agentName||y.role}),k?l.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:"#e5c07b"},children:["Q:",y.qualityScore]}):w?l.jsxs("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:"#c678dd"},children:[Ja((y.contextUsage||0)*100)," → ",Ja((y.contextAfter||0)*100)]}):l.jsx("span",{className:"text-2xs font-mono font-semibold tabular-nums flex-shrink-0",style:{color:(y.contextUsage||0)>.8?"#e06c75":"#33afbc"},children:Ja((y.contextUsage||0)*100)}),l.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:kt(y.timestamp)})]})})]},Q)})})]}):l.jsxs("div",{className:"bg-surface-0 rounded p-3 text-center space-y-1.5",children:[l.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"Monitoring for degradation"}),l.jsx("div",{className:"text-2xs font-mono text-text-3 leading-relaxed",children:"Auto-rotation triggers when session quality drops below 40 (errors, repetitions, file churn) or context exceeds the adaptive threshold."})]})]})}function C_({adaptive:e}){if(!(e!=null&&e.length))return l.jsx("div",{className:"p-3",children:l.jsxs("div",{className:"bg-surface-0 rounded p-4 text-center space-y-2",children:[l.jsx("div",{className:"text-xs font-mono text-text-2 font-semibold",children:"No adaptive profiles yet"}),l.jsx("div",{className:"text-2xs font-mono text-text-3 leading-relaxed",children:"Adaptive thresholds learn when each agent role benefits from rotation. GROOVE tracks quality scores and adjusts rotation triggers automatically — converging to the optimal threshold per role and provider."})]})});function n(s){const r=s.split(":");return{provider:r[0]||s,role:r[1]||""}}return l.jsx("div",{className:"p-3 space-y-3",children:e.map(s=>{var x,g;const{provider:r,role:o}=n(s.key),d=o||r,u=((x=s.thresholdHistory)==null?void 0:x.length)>1,f=((g=s.recentScores)==null?void 0:g.length)>1,h=Ni(d),p=s.lastSignals;return l.jsxs("div",{className:"rounded overflow-hidden",style:{background:"rgba(51,175,188,0.04)",borderLeft:s.converged?"2px solid #33afbc":"2px solid rgba(229,192,123,0.35)"},children:[l.jsxs("div",{className:"flex items-center gap-2 px-3 pt-2.5 pb-1.5",children:[l.jsx("span",{className:"text-xs font-mono font-semibold capitalize px-1.5 py-px rounded-sm",style:{background:h.bg,color:h.text},children:d}),o&&l.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-px rounded-sm",children:r}),l.jsx("div",{className:"flex-1"}),l.jsxs("span",{className:"flex items-center gap-1 text-2xs font-mono font-bold px-2 py-px rounded-full",style:{background:s.converged?"rgba(74,225,104,0.12)":"rgba(229,192,123,0.12)",color:s.converged?"#4ae168":"#e5c07b"},children:[!s.converged&&l.jsx("span",{className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{background:"#e5c07b",animation:"node-pulse-bar 1.5s ease-in-out infinite"}}),s.converged?"Converged":"Learning"]})]}),l.jsxs("div",{className:"flex items-end gap-5 px-3 pb-2",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Threshold"}),l.jsx("div",{className:"text-3xl font-mono font-bold tabular-nums leading-none",style:{color:s.converged?"#33afbc":"#e5c07b"},children:Ja(s.threshold*100)})]}),l.jsxs("div",{className:"pb-0.5",children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider mb-0.5",children:"Adj."}),l.jsx("div",{className:"text-lg font-mono font-semibold text-text-1 tabular-nums",children:s.adjustments})]})]}),(u||f)&&l.jsxs("div",{className:"px-3 pb-2 space-y-2 overflow-hidden",children:[u&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Threshold history"}),l.jsx(v0,{data:s.thresholdHistory.map(b=>b.v),color:s.converged?fe.accent:fe.warning,width:240,height:32})]}),f&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-4 mb-0.5",children:"Quality score"}),l.jsx(v0,{data:s.recentScores,color:fe.warning,width:240,height:24})]})]}),p&&l.jsxs("div",{className:"flex flex-wrap gap-1.5 px-3 pb-2.5",children:[l.jsx(Ha,{label:"Errors",value:p.errorCount,danger:!0}),l.jsx(Ha,{label:"Reps",value:p.repetitions,danger:!0}),l.jsx(Ha,{label:"Churn",value:p.fileChurn,danger:!0}),p.toolSuccessRate!=null&&l.jsxs("span",{className:"text-2xs font-mono px-1.5 py-px rounded-sm bg-surface-4 text-text-3",children:["Tools: ",l.jsxs("span",{className:"text-text-1",children:[Math.round(p.toolSuccessRate*100),"%"]})]})]})]},s.key)})})}function R_({journalist:e}){var n;return e?l.jsxs("div",{className:"p-3 space-y-3",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Cycles"}),l.jsx("div",{className:"text-lg font-mono font-semibold text-text-0 tabular-nums leading-none",children:e.cycleCount||0})]}),e.lastCycleAt&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-0.5",children:"Last"}),l.jsx("div",{className:"text-xs font-mono text-text-2",children:kt(e.lastCycleAt)})]}),e.synthesizing&&l.jsx("span",{className:"text-2xs font-mono font-bold text-accent uppercase tracking-wider animate-pulse",children:"Synthesizing"})]}),e.lastSummary&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Summary"}),l.jsx("div",{className:"text-xs font-sans text-text-2 leading-relaxed",children:e.lastSummary})]}),e.projectMap&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Project Map"}),l.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:e.projectMap})]}),e.decisions&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1",children:"Decisions"}),l.jsx("div",{className:"text-xs font-mono text-text-2 leading-relaxed whitespace-pre-wrap",children:e.decisions})]}),((n=e.recentHistory)==null?void 0:n.length)>0&&l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-mono text-text-3 uppercase tracking-wider mb-1.5",children:"History"}),l.jsx("div",{className:"space-y-1",children:e.recentHistory.slice().reverse().map((s,r)=>l.jsxs("div",{className:"flex items-center gap-2 text-xs font-mono px-2 py-1 bg-surface-0 rounded",children:[l.jsxs("span",{className:"text-text-3",children:["#",s.cycle]}),l.jsxs("span",{className:"text-text-2 flex-1 truncate",children:[s.agentCount," agents"]}),l.jsx("span",{className:"text-text-4",children:kt(s.timestamp)})]},r))})]})]}):l.jsx("div",{className:"flex-1 flex items-center justify-center text-xs text-text-3 font-mono p-4",children:"Journalist inactive"})}const __=v.memo(function({tokens:n,rotation:s,adaptive:r,journalist:o,agentBreakdown:d}){return l.jsxs(pS,{defaultValue:"health",className:"flex flex-col h-full",children:[l.jsxs(xS,{className:"flex-shrink-0 px-1",children:[l.jsxs(Ml,{value:"health",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[l.jsx(ci,{size:11}),"Health"]}),l.jsxs(Ml,{value:"adaptive",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[l.jsx(V$,{size:11}),"Adaptive"]}),l.jsxs(Ml,{value:"journalist",className:"text-xs px-2.5 py-1.5 inline-flex items-center gap-1.5",children:[l.jsx(hh,{size:11}),"Journalist"]})]}),l.jsx(Yl,{value:"health",className:"flex-1 min-h-0 relative",children:l.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:l.jsx(z_,{tokens:n,rotation:s,agentBreakdown:d})})}),l.jsx(Yl,{value:"adaptive",className:"flex-1 min-h-0 relative",children:l.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:l.jsx(C_,{adaptive:r})})}),l.jsx(Yl,{value:"journalist",className:"flex-1 min-h-0 relative",children:l.jsx("div",{className:"absolute inset-0 overflow-y-auto",children:l.jsx(R_,{journalist:o})})})]})}),X_={spawn:lP,complete:as,crash:$i,kill:Fb,rotate:wi,error:ph},A_={spawn:"text-accent",complete:"text-success",crash:"text-danger",kill:"text-text-3",rotate:"text-purple",error:"text-danger"};function Z_(e){const n=e.agentName||e.role||"";switch(e.type){case"spawn":return`${n} spawned`;case"complete":return`${n} completed`;case"crash":return`${n} crashed`;case"kill":return`${n} killed`;case"rotate":return`${n} rotated`;default:return e.text||e.type||"event"}}const E_=v.memo(function({events:n=[]}){return n.length?l.jsx("div",{className:"flex items-center gap-3 overflow-x-auto py-2 px-3",children:n.slice(-15).reverse().map((s,r)=>{const o=X_[s.type]||An,d=A_[s.type]||"text-text-3",u=Z_(s);return l.jsxs("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[l.jsx(o,{size:11,className:d}),l.jsx("span",{className:"text-xs font-sans text-text-2 whitespace-nowrap",children:u}),l.jsx("span",{className:"text-2xs font-mono text-text-4",children:kt(s.t||s.timestamp)})]},r)})}):l.jsx("div",{className:"text-xs text-text-3 font-mono py-2.5 text-center",children:"No recent activity"})});function dn({className:e,...n}){return l.jsx("div",{className:oe("rounded-md bg-surface-4","bg-gradient-to-r from-surface-4 via-surface-5 to-surface-4","bg-[length:200%_100%] animate-[shimmer_1.5s_ease-in-out_infinite]",e),...n})}function q_(){return l.jsxs("div",{className:"flex-1 grid gap-px p-0",style:{gridTemplateRows:"auto minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34"},children:[l.jsx("div",{className:"col-span-3",children:l.jsx(dn,{className:"h-[72px] rounded-none"})}),l.jsx(dn,{className:"rounded-none"}),l.jsx(dn,{className:"rounded-none"}),l.jsx(dn,{className:"rounded-none"}),l.jsx(dn,{className:"rounded-none"}),l.jsx("div",{className:"col-span-2",children:l.jsx(dn,{className:"h-full rounded-none"})})]})}function M_(){const{data:e,loading:n,agents:s,connected:r,kpiHistory:o,lastFetch:d,agentBreakdown:u,routing:f,rotation:h,adaptive:p,journalist:x,rotating:g}=KR(),b=W(T=>T.teams),y=s.filter(T=>T.status==="running").length;if(!r)return l.jsx("div",{className:"w-full h-full flex items-center justify-center",children:l.jsxs("div",{className:"text-center space-y-2 text-text-3 font-mono",children:[l.jsx(Bb,{size:28,className:"mx-auto"}),l.jsx("p",{className:"text-xs",children:"Connecting to daemon..."})]})});if(n||!e)return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx(x0,{connected:r,runningCount:0,totalCount:0,uptime:0,lastFetch:0}),l.jsx(q_,{})]});const Q=e.tokens||{},k={totalTokens:Q.totalTokens||0,totalCostUsd:Q.totalCostUsd||0,totalInputTokens:Q.totalInputTokens||0,totalOutputTokens:Q.totalOutputTokens||0,cacheReadTokens:Q.cacheReadTokens||0,cacheCreationTokens:Q.cacheCreationTokens||0,cacheHitRate:Q.cacheHitRate||0,totalTurns:Q.totalTurns||0,agentCount:Q.agentCount||0,savings:Q.savings||{}},w=k.totalOutputTokens>0?(k.totalInputTokens/k.totalOutputTokens).toFixed(1):"—",j=(h==null?void 0:h.totalRotations)||0,P=(u||[]).filter(T=>{var H;return((H=T.quality)==null?void 0:H.score)!=null}),z=P.length>0?Math.round(P.reduce((T,H)=>T+H.quality.score,0)/P.length):null,_=e.timeline||{},G=_.snapshots||[],Z=_.events||e.events||[],C=[{label:"Tokens Used",value:et(k.totalTokens),sparkData:o.tokens,color:fe.accent,hint:"Total tokens consumed across all agents — input, output, and cache tokens combined."},{label:"Total Cost",value:nr(k.totalCostUsd),sparkData:o.cost,color:fe.warning,hint:"Actual cost reported by providers. Claude Code reports real billing; other providers use estimated rates."},{label:"Quality",value:z!=null?`${z}`:"—",sparkData:o.saved,color:z>=70?fe.success:z>=40?fe.warning:fe.danger,hint:"Average session quality score (0-100) across running agents. Based on error rate, repetitions, file churn, and tool success. Below 40 triggers auto-rotation."},{label:"Cache Rate",value:Ja(k.cacheHitRate*100),sparkData:o.cache,color:fe.info,hint:"Percentage of input tokens served from prompt cache. Higher = faster responses and lower cost. Managed by your AI provider."},{label:"Rotations",value:`${j}`,sparkData:o.efficiency,color:fe.purple,hint:"Total context rotations — includes quality-based (auto), context threshold, natural compaction (provider-managed), and manual rotations."},{label:"I/O Ratio",value:`${w}:1`,sparkData:o.inputOutput,color:fe.orange,hint:"Ratio of input to output tokens. High ratios mean agents are reading more than writing — common for analysis tasks."},{label:"Agents",value:`${y}/${s.length}`,sparkData:o.agents,color:fe.accent,hint:"Running agents out of total spawned this session (including completed and crashed)."},{label:"Turns",value:et(k.totalTurns),sparkData:o.turns,color:fe.text2,hint:"Total conversation turns across all agents. Each turn is one request-response cycle with the AI provider."}];return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx(x0,{connected:r,runningCount:y,totalCount:s.length,uptime:e.uptime||0,lastFetch:d,activeTeam:e.activeTeam}),l.jsx(t_,{kpis:C}),l.jsxs("div",{className:"flex-1 min-h-0 grid",style:{gridTemplateRows:"minmax(0, 1fr) minmax(0, 1fr)",gridTemplateColumns:"3fr 1.5fr 1.5fr",background:"#282c34",gap:"1px"},children:[l.jsx("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 relative",children:l.jsx(i_,{data:G})}),l.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[l.jsx("div",{className:"px-3 pt-2.5 pb-1",children:l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Cache Performance"})}),l.jsx(o_,{cacheRead:k.cacheReadTokens,cacheCreation:k.cacheCreationTokens,totalInput:k.totalInputTokens})]}),l.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-l border-border",children:[l.jsx("div",{className:"px-3 pt-2.5 pb-1",children:l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Model Routing"})}),l.jsx(c_,{routing:f,agentBreakdown:u})]}),l.jsxs("div",{className:"min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-border",children:[l.jsx("div",{className:"px-3 pt-2.5 pb-1 flex-shrink-0",children:l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase tracking-widest",children:"Agent Fleet"})}),l.jsx(r_,{agentBreakdown:u,rotating:g,teams:b})]}),l.jsx("div",{className:"col-span-2 min-w-0 min-h-0 overflow-hidden bg-surface-1 flex flex-col border-t border-l border-border",children:l.jsx(__,{tokens:k,rotation:h,adaptive:p,journalist:x,agentBreakdown:u})})]}),l.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-t border-border",children:l.jsx(E_,{events:Z})})]})}const y0={sm:12,md:16,lg:20};function Y_({fill:e="full",size:n,color:s="#fbbf24",emptyColor:r="rgba(255,255,255,0.4)"}){const o=`star-${Math.random().toString(36).slice(2,8)}`;return l.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",children:[e==="half"&&l.jsx("defs",{children:l.jsxs("linearGradient",{id:o,children:[l.jsx("stop",{offset:"50%",stopColor:s}),l.jsx("stop",{offset:"50%",stopColor:r})]})}),l.jsx("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.49L10 14.27 5.06 16.7 6 11.21l-4-3.9 5.53-.8L10 1.5z",fill:e==="full"?s:e==="half"?`url(#${o})`:r})]})}function gS({rating:e=0,count:n,size:s="sm"}){const r=y0[s]||y0.sm,o=[];for(let d=1;d<=5;d++)e>=d?o.push("full"):e>=d-.5?o.push("half"):o.push("empty");return l.jsxs("span",{className:"inline-flex items-center",style:{gap:1},children:[o.map((d,u)=>l.jsx(Y_,{fill:d,size:r},u)),n!=null&&l.jsxs("span",{className:"ml-1 text-[11px] text-[var(--text-dim,#6b7f95)] font-sans",children:["(",n,")"]})]})}const S0={design:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},quality:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},devtools:{color:"#33afbc",bg:"rgba(51,175,188,0.14)"},workflow:{color:"#fbbf24",bg:"rgba(251,191,36,0.12)"},security:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},specialized:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},verified:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},anthropic:{color:"#f59e0b",bg:"rgba(245,158,11,0.12)"},published:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"},draft:{color:"#6b7f95",bg:"rgba(255,255,255,0.06)"},review:{color:"#c678dd",bg:"rgba(198,120,221,0.12)"},rejected:{color:"#f87171",bg:"rgba(248,113,113,0.12)"},free:{color:"#4ade80",bg:"rgba(74,222,128,0.12)"}};function bS({label:e,variant:n,className:s}){const r=S0[n]||S0.draft;return l.jsx("span",{className:oe("inline-flex items-center whitespace-nowrap font-sans select-none",s),style:{padding:"3px 8px",borderRadius:4,fontSize:10,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",lineHeight:1.4,color:r.color,background:r.bg},children:e})}function vS({price:e=0,size:n="sm"}){const s=!e||e===0,r={sm:"text-2xs px-2 py-0.5",md:"text-xs px-2.5 py-0.5",lg:"text-xs px-3 py-1"};return l.jsx("span",{className:`inline-flex items-center font-mono font-semibold rounded whitespace-nowrap ${r[n]||r.sm} ${s?"bg-success/12 text-success":"bg-white/8 text-text-1"}`,children:s?"Free":`$${e.toFixed(2)}`})}function yS({type:e="verified",size:n=12}){const s=e==="claude-official"||e==="anthropic"?"#f59e0b":"#4ade80";return l.jsxs("svg",{width:n,height:n,viewBox:"0 0 20 20",fill:"none",className:"inline-block flex-shrink-0",children:[l.jsx("path",{d:"M10 0l2.36 3.15L16.18 2l.68 3.93L20.8 7.1l-1.87 3.52L20.8 14.14l-3.94 1.17-.68 3.93-3.82-1.15L10 21.24l-2.36-3.15-3.82 1.15-.68-3.93-3.94-1.17 1.87-3.52L-.8 7.1l3.94-1.17.68-3.93 3.82 1.15L10 0z",fill:s}),l.jsx("path",{d:"M7 10.5l2 2 4-4.5",fill:"none",stroke:"#24282f",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}const SS="groove_favorites";function Eh(){try{return JSON.parse(localStorage.getItem(SS)||"[]")}catch{return[]}}function U_(e){return Eh().includes(e)}function V_(e){const n=Eh(),s=n.indexOf(e);return s>=0?n.splice(s,1):n.push(e),localStorage.setItem(SS,JSON.stringify(n)),s<0}function G_(e){const n=new Set(Eh());return e.map(s=>({...s,favorited:n.has(s.id)}))}function D_({filled:e,size:n=16}){return l.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:e?"#f87171":"none",stroke:e?"#f87171":"rgba(255,255,255,0.3)",strokeWidth:"2",children:l.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})})}function L_(){return l.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[l.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),l.jsx("polyline",{points:"7 10 12 15 17 10"}),l.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]})}function W_({skill:e,onClick:n}){var d,u;const[s,r]=v.useState(()=>U_(e.id));function o(f){f.stopPropagation(),r(V_(e.id))}return l.jsxs("div",{onClick:()=>n==null?void 0:n(e),className:oe("flex flex-col cursor-pointer group","bg-surface-1 border border-border-subtle rounded-md","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150"),style:{padding:20,minHeight:280},children:[l.jsxs("div",{className:"flex justify-between items-start",children:[l.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center flex-shrink-0 bg-accent/12 text-[20px]",children:e.icon||((u=(d=e.name)==null?void 0:d[0])==null?void 0:u.toUpperCase())||"?"}),l.jsx("button",{onClick:o,className:"opacity-40 group-hover:opacity-80 hover:!opacity-100 transition-opacity cursor-pointer bg-transparent border-0 p-0",children:l.jsx(D_,{filled:s})})]}),l.jsx("div",{className:"mt-3 text-[15px] font-semibold text-text-0 font-sans line-clamp-2 leading-snug",children:e.name}),l.jsxs("div",{className:"mt-1 flex items-center gap-1.5 text-xs text-text-3 font-sans",children:[l.jsxs("span",{children:["by ",e.author||"Community"]}),(e.source==="claude-official"||e.verified)&&l.jsx(yS,{type:e.source,size:12})]}),l.jsx("div",{className:"mt-2.5 text-xs text-text-2 font-sans line-clamp-3 flex-1 leading-relaxed",children:e.description}),l.jsx("div",{className:"mt-3",children:l.jsx(bS,{label:e.category||"general",variant:e.category||"draft"})}),l.jsx("div",{className:"h-px bg-border-subtle my-3"}),l.jsxs("div",{className:"flex items-center justify-between gap-2",children:[l.jsx(gS,{rating:e.rating||0,count:e.rating_count||e.ratingCount||0,size:"sm"}),l.jsxs("span",{className:"flex items-center gap-1 text-xs text-text-3 font-mono",children:[l.jsx(L_,{}),et(e.downloads||0)]}),l.jsx(vS,{price:e.price||0,size:"sm"})]})]})}function QS(){return l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md animate-pulse",style:{padding:20,minHeight:280},children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-surface-4"}),l.jsx("div",{className:"mt-3 h-4 w-[70%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-2 h-3 w-[40%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-3.5 h-3 w-full rounded bg-surface-4"}),l.jsx("div",{className:"mt-1.5 h-3 w-[90%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-1.5 h-3 w-[60%] rounded bg-surface-4"}),l.jsx("div",{className:"mt-3.5 h-5 w-[50px] rounded bg-surface-4"}),l.jsx("div",{className:"h-px bg-surface-4 my-3"}),l.jsxs("div",{className:"flex justify-between",children:[l.jsx("div",{className:"h-3 w-16 rounded bg-surface-4"}),l.jsx("div",{className:"h-3 w-12 rounded bg-surface-4"}),l.jsx("div",{className:"h-3 w-10 rounded bg-surface-4"})]})]})}const B_={"google-workspace":"https://cdn.simpleicons.org/google/white",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-docs":"https://cdn.simpleicons.org/googledocs/4285F4","google-sheets":"https://cdn.simpleicons.org/googlesheets/34A853","google-slides":"https://cdn.simpleicons.org/googleslides/FBBC04","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function H_({item:e,size:n=40}){const s=B_[e.id];if(s)return l.jsxs("div",{className:"rounded-md bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:[l.jsx("img",{src:s,alt:e.name,className:"w-5 h-5",onError:d=>{d.target.style.display="none",d.target.nextSibling.style.display="flex"}}),l.jsx("div",{className:"hidden items-center justify-center w-full h-full text-lg font-bold font-sans text-text-1",children:(e.name||"?")[0]})]});const r=(e.name||"?")[0].toUpperCase(),o=e.name?e.name.charCodeAt(0)*37%360:200;return l.jsx("div",{className:"rounded-md flex items-center justify-center flex-shrink-0 text-lg font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:r})}function Q0({item:e,onClick:n,className:s}){var o;const r=e.installed;return l.jsxs("button",{onClick:()=>n(e),className:oe("flex flex-col p-5 rounded-md border border-border-subtle bg-surface-1 text-left","hover:border-accent/30 hover:bg-surface-2","transition-all duration-150 cursor-pointer group",s),style:{minHeight:200},children:[l.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[l.jsx(H_,{item:e,size:36}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-[14px] font-semibold text-text-0 font-sans truncate",children:e.name}),(e.verified||e.verified==="mcp-official")&&l.jsx(as,{size:11,className:"text-accent flex-shrink-0"})]}),l.jsx("span",{className:"text-2xs text-text-3 font-sans",children:e.author||"Community"})]})]}),l.jsx("p",{className:"text-xs text-text-2 font-sans line-clamp-3 mb-3 flex-1 leading-relaxed",children:e.description}),l.jsx("div",{className:"h-px bg-border-subtle my-2"}),l.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(Qi,{size:10}),et(e.downloads||0)]}),(e.rating||0)>0&&l.jsxs("span",{className:"flex items-center gap-1",children:[l.jsx(fv,{size:10,className:"text-warning",fill:"currentColor"}),(o=e.rating)==null?void 0:o.toFixed(1)]}),l.jsx("span",{className:"flex-1"}),r&&l.jsx(Pe,{variant:"accent",className:"text-2xs",children:e._installedCount?`${e._installedCount} active`:"Installed"})]})]})}function jS({value:e,onChange:n,placeholder:s="Search skills, tags, authors...",large:r}){const[o,d]=v.useState(e||""),u=v.useRef(null);v.useEffect(()=>{d(e||"")},[e]);function f(h){const p=h.target.value;d(p),clearTimeout(u.current),u.current=setTimeout(()=>n(p),300)}return l.jsxs("div",{className:"relative w-full",children:[l.jsx(_n,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"}),l.jsx("input",{value:o,onChange:f,placeholder:s,className:oe("w-full font-sans outline-none","bg-surface-0 border border-border text-text-0 placeholder:text-text-4","focus:border-accent/40 transition-colors",r?"py-3 pl-11 pr-12 text-[15px] rounded-lg":"py-2.5 pl-10 pr-3 text-sm rounded-md")}),r&&l.jsx("kbd",{className:"absolute right-3.5 top-1/2 -translate-y-1/2 bg-surface-4 text-text-4 px-2 py-0.5 rounded text-xs font-mono",children:"/"})]})}const I_=[{id:"",label:"All"},{id:"design",label:"Design"},{id:"quality",label:"Quality"},{id:"devtools",label:"Dev Tools"},{id:"workflow",label:"Workflow"},{id:"security",label:"Security"},{id:"specialized",label:"Specialized"}];function F_({selected:e="",categories:n=I_,onSelect:s}){return l.jsx("div",{className:"flex gap-2 overflow-x-auto",style:{scrollbarWidth:"none"},children:n.map(r=>{const o=e===r.id;return l.jsx("button",{onClick:()=>s(r.id),className:oe("whitespace-nowrap font-sans cursor-pointer select-none transition-all text-[13px] rounded-full border",o?"bg-accent text-surface-0 border-accent font-semibold":"bg-surface-1 text-text-3 border-border-subtle hover:text-text-1 hover:border-border font-medium"),style:{padding:"7px 16px"},children:r.label},r.id)})})}function En(){const e=W(n=>n.addToast);return{success:(n,s)=>e("success",n,s),error:(n,s)=>e("error",n,s),info:(n,s)=>e("info",n,s),warning:(n,s)=>e("warning",n,s)}}var uO="focusScope.autoFocusOnMount",fO="focusScope.autoFocusOnUnmount",j0={bubbles:!1,cancelable:!0},K_="FocusScope",wS=v.forwardRef((e,n)=>{const{loop:s=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:d,...u}=e,[f,h]=v.useState(null),p=Xt(o),x=Xt(d),g=v.useRef(null),b=dt(n,k=>h(k)),y=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let k=function(z){if(y.paused||!f)return;const _=z.target;f.contains(_)?g.current=_:Ba(g.current,{select:!0})},w=function(z){if(y.paused||!f)return;const _=z.relatedTarget;_!==null&&(f.contains(_)||Ba(g.current,{select:!0}))},j=function(z){if(document.activeElement===document.body)for(const G of z)G.removedNodes.length>0&&Ba(f)};document.addEventListener("focusin",k),document.addEventListener("focusout",w);const P=new MutationObserver(j);return f&&P.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",w),P.disconnect()}}},[r,f,y.paused]),v.useEffect(()=>{if(f){k0.add(y);const k=document.activeElement;if(!f.contains(k)){const j=new CustomEvent(uO,j0);f.addEventListener(uO,p),f.dispatchEvent(j),j.defaultPrevented||(J_(sX(kS(f)),{select:!0}),document.activeElement===k&&Ba(f))}return()=>{f.removeEventListener(uO,p),setTimeout(()=>{const j=new CustomEvent(fO,j0);f.addEventListener(fO,x),f.dispatchEvent(j),j.defaultPrevented||Ba(k??document.body,{select:!0}),f.removeEventListener(fO,x),k0.remove(y)},0)}}},[f,p,x,y]);const Q=v.useCallback(k=>{if(!s&&!r||y.paused)return;const w=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,j=document.activeElement;if(w&&j){const P=k.currentTarget,[z,_]=eX(P);z&&_?!k.shiftKey&&j===_?(k.preventDefault(),s&&Ba(z,{select:!0})):k.shiftKey&&j===z&&(k.preventDefault(),s&&Ba(_,{select:!0})):j===P&&k.preventDefault()}},[s,r,y.paused]);return l.jsx(Fe.div,{tabIndex:-1,...u,ref:b,onKeyDown:Q})});wS.displayName=K_;function J_(e,{select:n=!1}={}){const s=document.activeElement;for(const r of e)if(Ba(r,{select:n}),document.activeElement!==s)return}function eX(e){const n=kS(e),s=w0(n,e),r=w0(n.reverse(),e);return[s,r]}function kS(e){const n=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)n.push(s.currentNode);return n}function w0(e,n){for(const s of e)if(!tX(s,{upTo:n}))return s}function tX(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function nX(e){return e instanceof HTMLInputElement&&"select"in e}function Ba(e,{select:n=!1}={}){if(e&&e.focus){const s=document.activeElement;e.focus({preventScroll:!0}),e!==s&&nX(e)&&n&&e.select()}}var k0=aX();function aX(){let e=[];return{add(n){const s=e[0];n!==s&&(s==null||s.pause()),e=$0(e,n),e.unshift(n)},remove(n){var s;e=$0(e,n),(s=e[0])==null||s.resume()}}}function $0(e,n){const s=[...e],r=s.indexOf(n);return r!==-1&&s.splice(r,1),s}function sX(e){return e.filter(n=>n.tagName!=="A")}var OO=0;function lX(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??T0()),document.body.insertAdjacentElement("beforeend",e[1]??T0()),OO++,()=>{OO===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),OO--}},[])}function T0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nn=function(){return Nn=Object.assign||function(n){for(var s,r=1,o=arguments.length;r<o;r++){s=arguments[r];for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(n[d]=s[d])}return n},Nn.apply(this,arguments)};function $S(e,n){var s={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(s[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(s[r[o]]=e[r[o]]);return s}function rX(e,n,s){if(s||arguments.length===2)for(var r=0,o=n.length,d;r<o;r++)(d||!(r in n))&&(d||(d=Array.prototype.slice.call(n,0,r)),d[r]=n[r]);return e.concat(d||Array.prototype.slice.call(n))}var Qc="right-scroll-bar-position",jc="width-before-scroll-bar",iX="with-scroll-bars-hidden",oX="--removed-body-scroll-bar-size";function hO(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function cX(e,n){var s=v.useState(function(){return{value:e,callback:n,facade:{get current(){return s.value},set current(r){var o=s.value;o!==r&&(s.value=r,s.callback(r,o))}}}})[0];return s.callback=n,s.facade}var dX=typeof window<"u"?v.useLayoutEffect:v.useEffect,N0=new WeakMap;function uX(e,n){var s=cX(null,function(r){return e.forEach(function(o){return hO(o,r)})});return dX(function(){var r=N0.get(s);if(r){var o=new Set(r),d=new Set(e),u=s.current;o.forEach(function(f){d.has(f)||hO(f,null)}),d.forEach(function(f){o.has(f)||hO(f,u)})}N0.set(s,e)},[e]),s}function fX(e){return e}function OX(e,n){n===void 0&&(n=fX);var s=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:e},useMedium:function(d){var u=n(d,r);return s.push(u),function(){s=s.filter(function(f){return f!==u})}},assignSyncMedium:function(d){for(r=!0;s.length;){var u=s;s=[],u.forEach(d)}s={push:function(f){return d(f)},filter:function(){return s}}},assignMedium:function(d){r=!0;var u=[];if(s.length){var f=s;s=[],f.forEach(d),u=s}var h=function(){var x=u;u=[],x.forEach(d)},p=function(){return Promise.resolve().then(h)};p(),s={push:function(x){u.push(x),p()},filter:function(x){return u=u.filter(x),s}}}};return o}function hX(e){e===void 0&&(e={});var n=OX(null);return n.options=Nn({async:!0,ssr:!1},e),n}var TS=function(e){var n=e.sideCar,s=$S(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Nn({},s))};TS.isSideCarExport=!0;function mX(e,n){return e.useMedium(n),TS}var NS=hX(),mO=function(){},dd=v.forwardRef(function(e,n){var s=v.useRef(null),r=v.useState({onScrollCapture:mO,onWheelCapture:mO,onTouchMoveCapture:mO}),o=r[0],d=r[1],u=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,x=e.enabled,g=e.shards,b=e.sideCar,y=e.noRelative,Q=e.noIsolation,k=e.inert,w=e.allowPinchZoom,j=e.as,P=j===void 0?"div":j,z=e.gapMode,_=$S(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=b,Z=uX([s,n]),C=Nn(Nn({},_),o);return v.createElement(v.Fragment,null,x&&v.createElement(G,{sideCar:NS,removeScrollBar:p,shards:g,noRelative:y,noIsolation:Q,inert:k,setCallbacks:d,allowPinchZoom:!!w,lockRef:s,gapMode:z}),u?v.cloneElement(v.Children.only(f),Nn(Nn({},C),{ref:Z})):v.createElement(P,Nn({},C,{className:h,ref:Z}),f))});dd.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};dd.classNames={fullWidth:jc,zeroRight:Qc};var pX=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xX(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=pX();return n&&e.setAttribute("nonce",n),e}function gX(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function bX(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var vX=function(){var e=0,n=null;return{add:function(s){e==0&&(n=xX())&&(gX(n,s),bX(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},yX=function(){var e=vX();return function(n,s){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&s])}},PS=function(){var e=yX(),n=function(s){var r=s.styles,o=s.dynamic;return e(r,o),null};return n},SX={left:0,top:0,right:0,gap:0},pO=function(e){return parseInt(e||"",10)||0},QX=function(e){var n=window.getComputedStyle(document.body),s=n[e==="padding"?"paddingLeft":"marginLeft"],r=n[e==="padding"?"paddingTop":"marginTop"],o=n[e==="padding"?"paddingRight":"marginRight"];return[pO(s),pO(r),pO(o)]},jX=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return SX;var n=QX(e),s=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-s+n[2]-n[0])}},wX=PS(),Ul="data-scroll-locked",kX=function(e,n,s,r){var o=e.left,d=e.top,u=e.right,f=e.gap;return s===void 0&&(s="margin"),`
|
|
604
|
-
.`.concat(iX,` {
|
|
605
|
-
overflow: hidden `).concat(r,`;
|
|
606
|
-
padding-right: `).concat(f,"px ").concat(r,`;
|
|
607
|
-
}
|
|
608
|
-
body[`).concat(Ul,`] {
|
|
609
|
-
overflow: hidden `).concat(r,`;
|
|
610
|
-
overscroll-behavior: contain;
|
|
611
|
-
`).concat([n&&"position: relative ".concat(r,";"),s==="margin"&&`
|
|
612
|
-
padding-left: `.concat(o,`px;
|
|
613
|
-
padding-top: `).concat(d,`px;
|
|
614
|
-
padding-right: `).concat(u,`px;
|
|
615
|
-
margin-left:0;
|
|
616
|
-
margin-top:0;
|
|
617
|
-
margin-right: `).concat(f,"px ").concat(r,`;
|
|
618
|
-
`),s==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
.`).concat(Qc,` {
|
|
622
|
-
right: `).concat(f,"px ").concat(r,`;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
.`).concat(jc,` {
|
|
626
|
-
margin-right: `).concat(f,"px ").concat(r,`;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
.`).concat(Qc," .").concat(Qc,` {
|
|
630
|
-
right: 0 `).concat(r,`;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
.`).concat(jc," .").concat(jc,` {
|
|
634
|
-
margin-right: 0 `).concat(r,`;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
body[`).concat(Ul,`] {
|
|
638
|
-
`).concat(oX,": ").concat(f,`px;
|
|
639
|
-
}
|
|
640
|
-
`)},P0=function(){var e=parseInt(document.body.getAttribute(Ul)||"0",10);return isFinite(e)?e:0},$X=function(){v.useEffect(function(){return document.body.setAttribute(Ul,(P0()+1).toString()),function(){var e=P0()-1;e<=0?document.body.removeAttribute(Ul):document.body.setAttribute(Ul,e.toString())}},[])},TX=function(e){var n=e.noRelative,s=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;$X();var d=v.useMemo(function(){return jX(o)},[o]);return v.createElement(wX,{styles:kX(d,!n,o,s?"":"!important")})},VO=!1;if(typeof window<"u")try{var dc=Object.defineProperty({},"passive",{get:function(){return VO=!0,!0}});window.addEventListener("test",dc,dc),window.removeEventListener("test",dc,dc)}catch{VO=!1}var $l=VO?{passive:!1}:!1,NX=function(e){return e.tagName==="TEXTAREA"},zS=function(e,n){if(!(e instanceof Element))return!1;var s=window.getComputedStyle(e);return s[n]!=="hidden"&&!(s.overflowY===s.overflowX&&!NX(e)&&s[n]==="visible")},PX=function(e){return zS(e,"overflowY")},zX=function(e){return zS(e,"overflowX")},z0=function(e,n){var s=n.ownerDocument,r=n;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=CS(e,r);if(o){var d=RS(e,r),u=d[1],f=d[2];if(u>f)return!0}r=r.parentNode}while(r&&r!==s.body);return!1},CX=function(e){var n=e.scrollTop,s=e.scrollHeight,r=e.clientHeight;return[n,s,r]},RX=function(e){var n=e.scrollLeft,s=e.scrollWidth,r=e.clientWidth;return[n,s,r]},CS=function(e,n){return e==="v"?PX(n):zX(n)},RS=function(e,n){return e==="v"?CX(n):RX(n)},_X=function(e,n){return e==="h"&&n==="rtl"?-1:1},XX=function(e,n,s,r,o){var d=_X(e,window.getComputedStyle(n).direction),u=d*r,f=s.target,h=n.contains(f),p=!1,x=u>0,g=0,b=0;do{if(!f)break;var y=RS(e,f),Q=y[0],k=y[1],w=y[2],j=k-w-d*Q;(Q||j)&&CS(e,f)&&(g+=j,b+=Q);var P=f.parentNode;f=P&&P.nodeType===Node.DOCUMENT_FRAGMENT_NODE?P.host:P}while(!h&&f!==document.body||h&&(n.contains(f)||n===f));return(x&&Math.abs(g)<1||!x&&Math.abs(b)<1)&&(p=!0),p},uc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},C0=function(e){return[e.deltaX,e.deltaY]},R0=function(e){return e&&"current"in e?e.current:e},AX=function(e,n){return e[0]===n[0]&&e[1]===n[1]},ZX=function(e){return`
|
|
641
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
642
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
643
|
-
`)},EX=0,Tl=[];function qX(e){var n=v.useRef([]),s=v.useRef([0,0]),r=v.useRef(),o=v.useState(EX++)[0],d=v.useState(PS)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var k=rX([e.lockRef.current],(e.shards||[]).map(R0),!0).filter(Boolean);return k.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),k.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(k,w){if("touches"in k&&k.touches.length===2||k.type==="wheel"&&k.ctrlKey)return!u.current.allowPinchZoom;var j=uc(k),P=s.current,z="deltaX"in k?k.deltaX:P[0]-j[0],_="deltaY"in k?k.deltaY:P[1]-j[1],G,Z=k.target,C=Math.abs(z)>Math.abs(_)?"h":"v";if("touches"in k&&C==="h"&&Z.type==="range")return!1;var T=window.getSelection(),H=T&&T.anchorNode,E=H?H===Z||H.contains(Z):!1;if(E)return!1;var ee=z0(C,Z);if(!ee)return!0;if(ee?G=C:(G=C==="v"?"h":"v",ee=z0(C,Z)),!ee)return!1;if(!r.current&&"changedTouches"in k&&(z||_)&&(r.current=G),!G)return!0;var I=r.current||G;return XX(I,w,k,I==="h"?z:_)},[]),h=v.useCallback(function(k){var w=k;if(!(!Tl.length||Tl[Tl.length-1]!==d)){var j="deltaY"in w?C0(w):uc(w),P=n.current.filter(function(G){return G.name===w.type&&(G.target===w.target||w.target===G.shadowParent)&&AX(G.delta,j)})[0];if(P&&P.should){w.cancelable&&w.preventDefault();return}if(!P){var z=(u.current.shards||[]).map(R0).filter(Boolean).filter(function(G){return G.contains(w.target)}),_=z.length>0?f(w,z[0]):!u.current.noIsolation;_&&w.cancelable&&w.preventDefault()}}},[]),p=v.useCallback(function(k,w,j,P){var z={name:k,delta:w,target:j,should:P,shadowParent:MX(j)};n.current.push(z),setTimeout(function(){n.current=n.current.filter(function(_){return _!==z})},1)},[]),x=v.useCallback(function(k){s.current=uc(k),r.current=void 0},[]),g=v.useCallback(function(k){p(k.type,C0(k),k.target,f(k,e.lockRef.current))},[]),b=v.useCallback(function(k){p(k.type,uc(k),k.target,f(k,e.lockRef.current))},[]);v.useEffect(function(){return Tl.push(d),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",h,$l),document.addEventListener("touchmove",h,$l),document.addEventListener("touchstart",x,$l),function(){Tl=Tl.filter(function(k){return k!==d}),document.removeEventListener("wheel",h,$l),document.removeEventListener("touchmove",h,$l),document.removeEventListener("touchstart",x,$l)}},[]);var y=e.removeScrollBar,Q=e.inert;return v.createElement(v.Fragment,null,Q?v.createElement(d,{styles:ZX(o)}):null,y?v.createElement(TX,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MX(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const YX=mX(NS,qX);var _S=v.forwardRef(function(e,n){return v.createElement(dd,Nn({},e,{ref:n,sideCar:YX}))});_S.classNames=dd.classNames;var UX=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},Nl=new WeakMap,fc=new WeakMap,Oc={},xO=0,XS=function(e){return e&&(e.host||XS(e.parentNode))},VX=function(e,n){return n.map(function(s){if(e.contains(s))return s;var r=XS(s);return r&&e.contains(r)?r:(console.error("aria-hidden",s,"in not contained inside",e,". Doing nothing"),null)}).filter(function(s){return!!s})},GX=function(e,n,s,r){var o=VX(n,Array.isArray(e)?e:[e]);Oc[s]||(Oc[s]=new WeakMap);var d=Oc[s],u=[],f=new Set,h=new Set(o),p=function(g){!g||f.has(g)||(f.add(g),p(g.parentNode))};o.forEach(p);var x=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(b){if(f.has(b))x(b);else try{var y=b.getAttribute(r),Q=y!==null&&y!=="false",k=(Nl.get(b)||0)+1,w=(d.get(b)||0)+1;Nl.set(b,k),d.set(b,w),u.push(b),k===1&&Q&&fc.set(b,!0),w===1&&b.setAttribute(s,"true"),Q||b.setAttribute(r,"true")}catch(j){console.error("aria-hidden: cannot operate on ",b,j)}})};return x(n),f.clear(),xO++,function(){u.forEach(function(g){var b=Nl.get(g)-1,y=d.get(g)-1;Nl.set(g,b),d.set(g,y),b||(fc.has(g)||g.removeAttribute(r),fc.delete(g)),y||g.removeAttribute(s)}),xO--,xO||(Nl=new WeakMap,Nl=new WeakMap,fc=new WeakMap,Oc={})}},DX=function(e,n,s){s===void 0&&(s="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=UX(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),GX(r,o,s,"aria-hidden")):function(){return null}},ud="Dialog",[AS]=Ms(ud),[LX,jn]=AS(ud),ZS=e=>{const{__scopeDialog:n,children:s,open:r,defaultOpen:o,onOpenChange:d,modal:u=!0}=e,f=v.useRef(null),h=v.useRef(null),[p,x]=ed({prop:r,defaultProp:o??!1,onChange:d,caller:ud});return l.jsx(LX,{scope:n,triggerRef:f,contentRef:h,contentId:Al(),titleId:Al(),descriptionId:Al(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:u,children:s})};ZS.displayName=ud;var ES="DialogTrigger",WX=v.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=jn(ES,s),d=dt(n,o.triggerRef);return l.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Yh(o.open),...r,ref:d,onClick:Ue(e.onClick,o.onOpenToggle)})});WX.displayName=ES;var qh="DialogPortal",[BX,qS]=AS(qh,{forceMount:void 0}),MS=e=>{const{__scopeDialog:n,forceMount:s,children:r,container:o}=e,d=jn(qh,n);return l.jsx(BX,{scope:n,forceMount:s,children:v.Children.map(r,u=>l.jsx(Sn,{present:s||d.open,children:l.jsx(lh,{asChild:!0,container:o,children:u})}))})};MS.displayName=qh;var Dc="DialogOverlay",YS=v.forwardRef((e,n)=>{const s=qS(Dc,e.__scopeDialog),{forceMount:r=s.forceMount,...o}=e,d=jn(Dc,e.__scopeDialog);return d.modal?l.jsx(Sn,{present:r||d.open,children:l.jsx(IX,{...o,ref:n})}):null});YS.displayName=Dc;var HX=wc("DialogOverlay.RemoveScroll"),IX=v.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=jn(Dc,s);return l.jsx(_S,{as:HX,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(Fe.div,{"data-state":Yh(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),Zs="DialogContent",US=v.forwardRef((e,n)=>{const s=qS(Zs,e.__scopeDialog),{forceMount:r=s.forceMount,...o}=e,d=jn(Zs,e.__scopeDialog);return l.jsx(Sn,{present:r||d.open,children:d.modal?l.jsx(FX,{...o,ref:n}):l.jsx(KX,{...o,ref:n})})});US.displayName=Zs;var FX=v.forwardRef((e,n)=>{const s=jn(Zs,e.__scopeDialog),r=v.useRef(null),o=dt(n,s.contentRef,r);return v.useEffect(()=>{const d=r.current;if(d)return DX(d)},[]),l.jsx(VS,{...e,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ue(e.onCloseAutoFocus,d=>{var u;d.preventDefault(),(u=s.triggerRef.current)==null||u.focus()}),onPointerDownOutside:Ue(e.onPointerDownOutside,d=>{const u=d.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&d.preventDefault()}),onFocusOutside:Ue(e.onFocusOutside,d=>d.preventDefault())})}),KX=v.forwardRef((e,n)=>{const s=jn(Zs,e.__scopeDialog),r=v.useRef(!1),o=v.useRef(!1);return l.jsx(VS,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var u,f;(u=e.onCloseAutoFocus)==null||u.call(e,d),d.defaultPrevented||(r.current||(f=s.triggerRef.current)==null||f.focus(),d.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:d=>{var h,p;(h=e.onInteractOutside)==null||h.call(e,d),d.defaultPrevented||(r.current=!0,d.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=d.target;((p=s.triggerRef.current)==null?void 0:p.contains(u))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&o.current&&d.preventDefault()}})}),VS=v.forwardRef((e,n)=>{const{__scopeDialog:s,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:d,...u}=e,f=jn(Zs,s),h=v.useRef(null),p=dt(n,h);return lX(),l.jsxs(l.Fragment,{children:[l.jsx(wS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:d,children:l.jsx(IO,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Yh(f.open),...u,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(JX,{titleId:f.titleId}),l.jsx(tA,{contentRef:h,descriptionId:f.descriptionId})]})]})}),Mh="DialogTitle",GS=v.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=jn(Mh,s);return l.jsx(Fe.h2,{id:o.titleId,...r,ref:n})});GS.displayName=Mh;var DS="DialogDescription",LS=v.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=jn(DS,s);return l.jsx(Fe.p,{id:o.descriptionId,...r,ref:n})});LS.displayName=DS;var WS="DialogClose",BS=v.forwardRef((e,n)=>{const{__scopeDialog:s,...r}=e,o=jn(WS,s);return l.jsx(Fe.button,{type:"button",...r,ref:n,onClick:Ue(e.onClick,()=>o.onOpenChange(!1))})});BS.displayName=WS;function Yh(e){return e?"open":"closed"}var HS="DialogTitleWarning",[AZ,IS]=kw(HS,{contentName:Zs,titleName:Mh,docsSlug:"dialog"}),JX=({titleId:e})=>{const n=IS(HS),s=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
644
|
-
|
|
645
|
-
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
646
|
-
|
|
647
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(s))},[s,e]),null},eA="DialogDescriptionWarning",tA=({contentRef:e,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${IS(eA).contentName}}.`;return v.useEffect(()=>{var d;const o=(d=e.current)==null?void 0:d.getAttribute("aria-describedby");n&&o&&(document.getElementById(n)||console.warn(r))},[r,e,n]),null},FS=ZS,KS=MS,JS=YS,e2=US,t2=GS,n2=LS,a2=BS;function xi({children:e,...n}){return l.jsx(FS,{...n,children:e})}function gi({children:e,className:n,title:s,description:r,...o}){return l.jsxs(KS,{children:[l.jsx(JS,{className:"fixed inset-0 z-50 bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"}),l.jsxs(e2,{className:oe("fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2","w-full max-w-lg max-h-[85vh] overflow-y-auto","bg-surface-1 border border-border rounded-lg shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",n),...o,children:[s&&l.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle",children:[l.jsx(t2,{className:"text-base font-semibold text-text-0 font-sans",children:s}),l.jsx(a2,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors",children:l.jsx(wt,{size:16})})]}),r&&l.jsx(n2,{className:"sr-only",children:r}),e]})]})}const Lc=v.forwardRef(({className:e,label:n,error:s,mono:r,...o},d)=>l.jsxs("div",{className:"flex flex-col gap-1",children:[n&&l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),l.jsx("input",{ref:d,className:oe("h-8 w-full rounded-md px-3 text-sm","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",r?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",e),...o}),s&&l.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));Lc.displayName="Input";const nA=v.forwardRef(({className:e,label:n,error:s,mono:r,...o},d)=>l.jsxs("div",{className:"flex flex-col gap-1",children:[n&&l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:n}),l.jsx("textarea",{ref:d,className:oe("w-full rounded-md px-3 py-2 text-sm resize-none","bg-surface-1 border border-border text-text-0","placeholder:text-text-4","focus:outline-none focus:ring-1 focus:ring-accent focus:border-accent","disabled:opacity-40 disabled:cursor-not-allowed","transition-colors duration-100",r?"font-mono":"font-sans",s&&"border-danger focus:ring-danger",e),...o}),s&&l.jsx("span",{className:"text-2xs text-danger font-sans",children:s})]}));nA.displayName="Textarea";const aA={slack:"https://cdn.simpleicons.org/slack/E01E5A",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-docs":"https://cdn.simpleicons.org/googledocs/4285F4","google-sheets":"https://cdn.simpleicons.org/googlesheets/34A853","google-slides":"https://cdn.simpleicons.org/googleslides/FBBC04","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",discord:"https://cdn.simpleicons.org/discord/5865F2",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"};function Uh({item:e,size:n=48}){const s=aA[e.id];if(s)return l.jsx("div",{className:"rounded-lg bg-surface-4 flex items-center justify-center flex-shrink-0 overflow-hidden",style:{width:n,height:n},children:l.jsx("img",{src:s,alt:e.name,className:"w-6 h-6",onError:d=>{d.target.style.display="none"}})});const r=(e.name||"?")[0].toUpperCase(),o=e.name?e.name.charCodeAt(0)*37%360:200;return l.jsx("div",{className:"rounded-lg flex items-center justify-center flex-shrink-0 text-xl font-bold font-sans",style:{width:n,height:n,background:`hsl(${o}, 40%, 18%)`,color:`hsl(${o}, 60%, 65%)`},children:r})}function GO({value:e,onChange:n,placeholder:s,disabled:r}){const[o,d]=v.useState(!1);return l.jsxs("div",{className:"relative",children:[l.jsx(Lc,{type:o?"text":"password",value:e,onChange:u=>n(u.target.value),placeholder:s,disabled:r,mono:!0,className:"pr-9"}),l.jsx("button",{type:"button",onClick:()=>d(u=>!u),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded text-text-4 hover:text-text-1 transition-colors cursor-pointer",tabIndex:-1,children:o?l.jsx(ad,{size:14}):l.jsx(Us,{size:14})})]})}function sA({integrationId:e,envKey:n,onSaved:s}){const r=En(),[o,d]=v.useState(""),[u,f]=v.useState(!1),[h,p]=v.useState(n.set),[x,g]=v.useState(!1);async function b(){if(o.trim()){f(!0);try{await J.post(`/integrations/${e}/credentials`,{key:n.key,value:o.trim()}),p(!0),d(""),r.success(`${n.label} saved`),s==null||s()}catch(Q){r.error("Failed to save",Q.message)}f(!1)}}async function y(){g(!0);try{await J.delete(`/integrations/${e}/credentials/${n.key}`),p(!1),r.success(`${n.label} removed`),s==null||s()}catch(Q){r.error("Failed to remove",Q.message)}g(!1)}return l.jsxs("div",{className:"space-y-1.5",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[l.jsx(Rs,{size:11,className:"text-text-4"}),n.label,n.required&&l.jsx("span",{className:"text-danger",children:"*"})]}),h&&l.jsxs("span",{className:"flex items-center gap-1 text-2xs text-success font-sans",children:[l.jsx(jt,{size:10})," Set"]})]}),h?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"flex-1 h-8 rounded-md px-3 bg-surface-2 border border-border-subtle flex items-center",children:l.jsx("span",{className:"text-xs text-text-4 font-mono tracking-widest",children:"*".repeat(16)})}),l.jsx(be,{variant:"ghost",size:"sm",onClick:y,disabled:x,className:"text-text-3 hover:text-danger",children:x?l.jsx(ht,{size:12,className:"animate-spin"}):l.jsx(Qn,{size:12})})]}):l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"flex-1",children:l.jsx(GO,{value:o,onChange:d,placeholder:n.placeholder||`Enter ${n.label.toLowerCase()}...`,disabled:u})}),l.jsx(be,{variant:"primary",size:"sm",onClick:b,disabled:u||!o.trim(),children:u?l.jsx(ht,{size:12,className:"animate-spin"}):"Save"})]})]})}function lA({item:e,status:n,installing:s,onInstall:r,onUninstall:o,onNext:d}){var f;const u=n==null?void 0:n.installed;return l.jsxs("div",{className:"px-5 py-5 space-y-5",children:[l.jsxs("div",{className:"flex items-start gap-4",children:[l.jsx(Uh,{item:e,size:52}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-base font-bold text-text-0 font-sans",children:e.name}),(e.verified==="mcp-official"||e.verified==="verified")&&l.jsxs(Pe,{variant:"accent",className:"text-2xs gap-1",children:[l.jsx(_s,{size:9})," Verified"]})]}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-0.5",children:e.author||"Community"}),e.category&&l.jsx(Pe,{variant:"default",className:"text-2xs mt-2",children:e.category})]})]}),l.jsx("p",{className:"text-sm text-text-2 font-sans leading-relaxed",children:e.description}),((f=e.tags)==null?void 0:f.length)>0&&l.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.tags.map(h=>l.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:h},h))}),l.jsx("div",{className:"h-px bg-border-subtle"}),u?l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsxs("div",{className:"flex-1 flex items-center gap-2",children:[l.jsx(as,{size:16,className:"text-success"}),l.jsx("span",{className:"text-sm font-medium text-success font-sans",children:"Installed"})]}),l.jsxs(be,{variant:"ghost",size:"sm",onClick:o,className:"text-text-3 hover:text-danger gap-1.5",children:[l.jsx(Qn,{size:12})," Uninstall"]}),l.jsxs(be,{variant:"primary",size:"sm",onClick:d,className:"gap-1",children:["Configure ",l.jsx(is,{size:12})]})]}):l.jsx(be,{variant:"primary",size:"lg",onClick:r,disabled:s,className:"w-full gap-2",children:s?l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:14,className:"animate-spin"}),"Installing..."]}):"Install"}),s&&l.jsx("p",{className:"text-2xs text-text-4 font-sans text-center",children:"This may take up to 30 seconds..."})]})}const rA={gmail:"Gmail API","google-calendar":"Google Calendar API","google-drive":"Google Drive API","google-docs":"Google Docs API","google-sheets":"Google Sheets API","google-slides":"Google Slides API"};function s2({integrationId:e,onConfigured:n}){const s=En(),[r,o]=v.useState(""),[d,u]=v.useState(""),[f,h]=v.useState(!1),p=rA[e]||"the relevant Google API";async function x(){if(!(!r.trim()||!d.trim())){h(!0);try{await J.post("/integrations/google-oauth/setup",{clientId:r.trim(),clientSecret:d.trim()}),s.success("Google OAuth credentials saved"),n()}catch(y){s.error("Failed to save",y.message)}h(!1)}}const b=[{text:"Go to the Google Cloud Console and sign in with your Google account",link:{url:"https://console.cloud.google.com",label:"Open Google Cloud Console"}},{text:"Create a new project (or select an existing one). Any name is fine — this is just a container for your credentials."},{text:l.jsxs(l.Fragment,{children:["Enable the ",l.jsx("strong",{children:p})," — search for it in the API Library and click ",l.jsx("strong",{children:"Enable"})]}),link:{url:"https://console.cloud.google.com/apis/library",label:"Open API Library"}},{text:l.jsxs(l.Fragment,{children:["Go to ",l.jsx("strong",{children:"Credentials"})," and click ",l.jsx("strong",{children:"Create Credentials"})," → ",l.jsx("strong",{children:"OAuth client ID"})]}),link:{url:"https://console.cloud.google.com/apis/credentials",label:"Open Credentials page"}},{text:l.jsxs(l.Fragment,{children:["If prompted to configure the consent screen, choose ",l.jsx("strong",{children:"External"}),', fill in an app name (e.g. "Groove"), your email, and save. You can skip optional fields.']})},{text:l.jsxs(l.Fragment,{children:["For Application type, choose ",l.jsx("strong",{children:"Web application"}),". Give it any name."]})},{text:l.jsxs(l.Fragment,{children:["Under ",l.jsx("strong",{children:"Authorized redirect URIs"}),", click ",l.jsx("strong",{children:"Add URI"})," and paste this exact URL:"]}),copyable:"http://localhost:31415/api/integrations/oauth/callback"},{text:l.jsxs(l.Fragment,{children:["Click ",l.jsx("strong",{children:"Create"}),", then copy the ",l.jsx("strong",{children:"Client ID"})," and ",l.jsx("strong",{children:"Client Secret"})," and paste them below."]})}];return l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"bg-surface-2 rounded-md px-4 py-3 space-y-3",children:[l.jsx("span",{className:"text-xs font-semibold text-text-1 font-sans",children:"How to get your Google credentials"}),l.jsx("ol",{className:"space-y-2.5",children:b.map((y,Q)=>l.jsxs("li",{className:"flex gap-2.5 text-xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-accent font-mono font-bold flex-shrink-0 w-4 text-right",children:[Q+1,"."]}),l.jsxs("div",{className:"min-w-0",children:[l.jsx("span",{children:y.text}),y.link&&l.jsxs("a",{href:y.link.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-2xs text-accent font-sans hover:underline mt-0.5",children:[l.jsx(Bl,{size:9}),y.link.label]}),y.copyable&&l.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5",children:[l.jsx("code",{className:"flex-1 min-w-0 text-2xs font-mono text-accent bg-surface-4 px-2.5 py-1.5 rounded select-all break-all",children:y.copyable}),l.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(y.copyable)},className:"flex-shrink-0 p-1.5 rounded text-text-3 hover:text-accent hover:bg-accent/10 transition-colors cursor-pointer",title:"Copy to clipboard",children:l.jsx(Rc,{size:12})})]})]})]},Q))})]}),l.jsx("div",{className:"bg-accent/8 border border-accent/15 rounded-md px-4 py-2.5",children:l.jsxs("p",{className:"text-2xs text-text-2 font-sans leading-relaxed",children:[l.jsx("strong",{className:"text-text-1",children:"One-time setup"})," — these same credentials work for Gmail, Calendar, Drive, Docs, Sheets, and Slides. You only need to do this once. For each integration, just enable the matching API in your Google Cloud project."]})}),l.jsx("div",{className:"h-px bg-border-subtle"}),l.jsxs("div",{className:"space-y-3",children:[l.jsxs("div",{className:"space-y-1.5",children:[l.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[l.jsx(Rs,{size:11,className:"text-text-4"}),"Client ID ",l.jsx("span",{className:"text-danger",children:"*"})]}),l.jsx(GO,{value:r,onChange:o,placeholder:"123456789.apps.googleusercontent.com",disabled:f})]}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsxs("label",{className:"text-xs font-medium text-text-2 font-sans flex items-center gap-1.5",children:[l.jsx(Rs,{size:11,className:"text-text-4"}),"Client Secret ",l.jsx("span",{className:"text-danger",children:"*"})]}),l.jsx(GO,{value:d,onChange:u,placeholder:"GOCSPX-...",disabled:f})]})]}),l.jsx(be,{variant:"primary",size:"lg",onClick:x,disabled:f||!r.trim()||!d.trim(),className:"w-full gap-2",children:f?l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:14,className:"animate-spin"})," Saving..."]}):"Save Credentials"})]})}function iA({item:e,status:n,onDone:s,onRefreshStatus:r}){var k;const o=En(),[d,u]=v.useState(!1),[f,h]=v.useState(null),p=e.authType,x=p==="google-autoauth"||p==="oauth-google";v.useEffect(()=>{x&&J.get("/integrations/google-oauth/status").then(w=>h(w.configured)).catch(()=>h(!1))},[x]);async function g(){u(!0);try{const w=await J.post(`/integrations/${e.id}/oauth/start`);w.url&&(window.open(w.url,"_blank","noopener"),o.success("Browser opened — complete sign-in there"))}catch(w){o.error("Sign-in failed",w.message)}u(!1)}const b=(n==null?void 0:n.envKeys)||[],y=b.filter(w=>w.required&&!w.hidden),Q=y.length===0||y.every(w=>w.set);return l.jsxs("div",{className:"px-5 py-5 space-y-5",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Uh,{item:e,size:36}),l.jsxs("div",{children:[l.jsxs("h2",{className:"text-sm font-bold text-text-0 font-sans",children:["Configure ",e.name]}),l.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"Set up credentials to connect"})]})]}),((k=e.setupSteps)==null?void 0:k.length)>0&&!(x&&f===!1)&&l.jsxs("div",{className:"bg-surface-2 rounded-md px-4 py-3 space-y-2",children:[l.jsx("span",{className:"text-xs font-semibold text-text-1 font-sans",children:"Setup guide"}),l.jsx("ol",{className:"space-y-1.5",children:e.setupSteps.map((w,j)=>l.jsxs("li",{className:"flex gap-2 text-xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono flex-shrink-0 w-4 text-right",children:[j+1,"."]}),l.jsx("span",{children:w})]},j))}),e.setupUrl&&l.jsxs("a",{href:e.setupUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-accent font-sans hover:underline mt-1",children:[l.jsx(Bl,{size:11}),new URL(e.setupUrl).hostname]})]}),!(x&&f===!1)&&l.jsx("div",{className:"h-px bg-border-subtle"}),p==="api-key"&&l.jsx("div",{className:"space-y-4",children:b.filter(w=>!w.hidden).map(w=>l.jsx(sA,{integrationId:e.id,envKey:w,onSaved:r},w.key))}),x&&f===!1&&l.jsx(s2,{integrationId:e.id,onConfigured:()=>h(!0)}),x&&f&&l.jsxs("div",{className:"space-y-3",children:[l.jsx(be,{variant:"primary",size:"lg",onClick:g,disabled:d,className:"w-full gap-2",children:d?l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:14,className:"animate-spin"}),"Opening browser..."]}):l.jsxs(l.Fragment,{children:[l.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"",className:"w-4 h-4"}),"Sign in with Google"]})}),l.jsxs("p",{className:"text-2xs text-text-4 font-sans text-center",children:["A browser window will open — sign in and allow access to your ",e.name]}),l.jsx("button",{type:"button",onClick:()=>h(!1),className:"w-full text-2xs text-text-4 font-sans hover:text-text-2 transition-colors cursor-pointer py-1",children:"Reconfigure Google OAuth credentials"})]}),x&&f===null&&l.jsx("div",{className:"flex justify-center py-3",children:l.jsx(ht,{size:16,className:"animate-spin text-text-4"})}),l.jsx(be,{variant:Q?"primary":"secondary",size:"lg",onClick:s,className:"w-full gap-1.5",children:Q?l.jsxs(l.Fragment,{children:[l.jsx(jt,{size:14}),"Done"]}):"Skip for now"})]})}function oA({item:e,onClose:n}){return l.jsxs("div",{className:"px-5 py-10 flex flex-col items-center text-center space-y-4",children:[l.jsx("div",{className:"w-14 h-14 rounded-full bg-success/15 flex items-center justify-center",children:l.jsx(as,{size:28,className:"text-success"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-base font-bold text-text-0 font-sans",children:"Integration ready"}),l.jsxs("p",{className:"text-sm text-text-3 font-sans mt-1",children:[e.name," is installed and configured. Agents can now use it."]})]}),l.jsx(be,{variant:"primary",size:"lg",onClick:n,className:"mt-2",children:"Close"})]})}function cA({integration:e,open:n,onClose:s}){const r=En(),[o,d]=v.useState("overview"),[u,f]=v.useState(null),[h,p]=v.useState(!1),[x,g]=v.useState(!0),b=e==null?void 0:e.id,y=v.useCallback(async()=>{if(b){try{const P=await J.get(`/integrations/${b}/status`);f(P)}catch{f(null)}g(!1)}},[b]);v.useEffect(()=>{n&&e&&(d("overview"),g(!0),y())},[n,e,y]);async function Q(){p(!0);try{await J.post(`/integrations/${e.id}/install`),r.success(`${e.name} installed`),await y(),d("configure")}catch(P){r.error("Install failed",P.message)}p(!1)}async function k(){try{await J.delete(`/integrations/${e.id}`),r.success(`${e.name} uninstalled`),await y()}catch(P){r.error("Uninstall failed",P.message)}}function w(){d("configure")}function j(){d("done")}return e?l.jsx(xi,{open:n,onOpenChange:P=>{P||s()},children:l.jsx(gi,{title:o==="overview"?e.name:o==="configure"?"Configure":"Complete",description:`Setup wizard for ${e.name}`,className:"max-w-md",children:x?l.jsx("div",{className:"px-5 py-10 flex items-center justify-center",children:l.jsx(ht,{size:20,className:"animate-spin text-text-4"})}):o==="overview"?l.jsx(lA,{item:e,status:u,installing:h,onInstall:Q,onUninstall:k,onNext:w}):o==="configure"?l.jsx(iA,{item:e,status:u,onDone:j,onRefreshStatus:y}):l.jsx(oA,{item:e,onClose:s})})}):null}const dA=["gmail","google-calendar","google-drive","google-docs","google-sheets","google-slides"];function uA({item:e,status:n,onInstall:s,onUninstall:r,busy:o}){const d=n==null?void 0:n.installed,u=n==null?void 0:n.authenticated;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-2 border border-border-subtle",children:[l.jsx(Uh,{item:e,size:32}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans",children:e.name}),l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:e.description})]}),d&&u&&!(n!=null&&n.needsReauth)&&l.jsxs(Pe,{variant:"success",className:"text-2xs flex-shrink-0 gap-1",children:[l.jsx(jt,{size:8})," Ready"]}),d&&u&&(n==null?void 0:n.needsReauth)&&l.jsxs(Pe,{variant:"warning",className:"text-2xs flex-shrink-0 gap-1",children:[l.jsx(un,{size:8})," Update"]}),d&&!u&&l.jsx(Pe,{variant:"warning",className:"text-2xs flex-shrink-0",children:"Needs sign-in"}),l.jsx(be,{variant:d?"ghost":"primary",size:"sm",onClick:()=>d?r(e.id):s(e.id),disabled:o===e.id,className:d?"text-text-3 hover:text-danger":"",children:o===e.id?l.jsx(ht,{size:12,className:"animate-spin"}):d?l.jsx(Qn,{size:12}):"Install"})]})}function fA({integrations:e,open:n,onClose:s}){const r=En(),[o,d]=v.useState(null),[u,f]=v.useState({}),[h,p]=v.useState(null),[x,g]=v.useState(!1),[b,y]=v.useState(!0),Q=v.useRef(null),k=e.filter(C=>dA.includes(C.id)),w=v.useCallback(async()=>{const C={};await Promise.all(k.map(async T=>{try{C[T.id]=await J.get(`/integrations/${T.id}/status`)}catch{C[T.id]=null}})),f(C),y(!1)},[k.map(C=>C.id).join(",")]);v.useEffect(()=>(n&&(y(!0),J.get("/integrations/google-oauth/status").then(C=>d(C.configured)).catch(()=>d(!1)),w()),()=>{Q.current&&clearInterval(Q.current)}),[n]);const j=Object.entries(u).filter(([,C])=>C==null?void 0:C.installed).map(([C])=>C),P=j.length>0&&j.every(C=>{var T;return(T=u[C])==null?void 0:T.authenticated});j.some(C=>{var T;return!((T=u[C])!=null&&T.authenticated)});const z=P&&j.some(C=>{var T;return(T=u[C])==null?void 0:T.needsReauth});async function _(C){var T;p(C);try{await J.post(`/integrations/${C}/install`),r.success(`${(T=k.find(H=>H.id===C))==null?void 0:T.name} installed`),await w()}catch(H){r.error("Install failed",H.message)}p(null)}async function G(C){var T;p(C);try{await J.delete(`/integrations/${C}`),r.success(`${(T=k.find(H=>H.id===C))==null?void 0:T.name} removed`),await w()}catch(H){r.error("Uninstall failed",H.message)}p(null)}async function Z(){if(!j.length){r.error("Install at least one service first");return}g(!0);try{const C=await J.post("/integrations/google-workspace/oauth/start",{integrationIds:j});C.url&&(window.open(C.url,"_blank","noopener"),r.success("Browser opened — complete sign-in there"),Q.current&&clearInterval(Q.current),Q.current=setInterval(async()=>{await w()},3e3),setTimeout(()=>{Q.current&&clearInterval(Q.current)},18e4))}catch(C){r.error("Sign-in failed",C.message)}g(!1)}return v.useEffect(()=>{P&&Q.current&&(clearInterval(Q.current),Q.current=null)},[P]),n?l.jsx(xi,{open:n,onOpenChange:C=>{C||s()},children:l.jsx(gi,{title:"Google Workspace",description:"Connect your Google services",className:"max-w-md",children:l.jsxs("div",{className:"px-5 py-5 space-y-5",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-11 h-11 rounded-lg bg-surface-4 flex items-center justify-center flex-shrink-0",children:l.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"Google",className:"w-6 h-6"})}),l.jsxs("div",{children:[l.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans",children:"Google Workspace"}),l.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"One set of credentials for all Google services"})]})]}),o===!1&&l.jsx(s2,{integrationId:"gmail",onConfigured:()=>d(!0)}),o===null&&l.jsx("div",{className:"flex justify-center py-3",children:l.jsx(ht,{size:16,className:"animate-spin text-text-4"})}),o&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans",children:"Services"}),l.jsx("div",{className:"space-y-1.5",children:b?Array.from({length:4}).map((C,T)=>l.jsx("div",{className:"h-14 rounded-md bg-surface-2 animate-pulse"},T)):k.map(C=>l.jsx(uA,{item:C,status:u[C.id],onInstall:_,onUninstall:G,busy:h},C.id))})]}),l.jsx("div",{className:"h-px bg-border-subtle"}),j.length>0&&!P&&l.jsxs("div",{className:"space-y-3",children:[l.jsx(be,{variant:"primary",size:"lg",onClick:Z,disabled:x,className:"w-full gap-2",children:x?l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:14,className:"animate-spin"})," Opening browser..."]}):l.jsxs(l.Fragment,{children:[l.jsx("img",{src:"https://cdn.simpleicons.org/google/white",alt:"",className:"w-4 h-4"}),"Sign in with Google"]})}),l.jsxs("p",{className:"text-2xs text-text-4 font-sans text-center",children:["Connects ",j.length," service",j.length!==1?"s":""," with one sign-in"]})]}),P&&j.length>0&&l.jsxs("div",{className:"flex flex-col items-center text-center gap-2 py-2",children:[l.jsx("div",{className:"w-10 h-10 rounded-full bg-success/15 flex items-center justify-center",children:l.jsx(as,{size:20,className:"text-success"})}),l.jsx("p",{className:"text-sm font-medium text-success font-sans",children:"All services connected"}),l.jsx("p",{className:"text-2xs text-text-3 font-sans",children:"Your agents can now use these Google integrations."}),z?l.jsxs("div",{className:"w-full space-y-2 pt-2",children:[l.jsx("p",{className:"text-2xs text-warning font-sans",children:"New permissions available — re-authenticate to enable all features."}),l.jsx(be,{variant:"secondary",size:"sm",onClick:Z,disabled:x,className:"w-full gap-2",children:x?l.jsxs(l.Fragment,{children:[l.jsx(ht,{size:12,className:"animate-spin"})," Opening browser..."]}):l.jsxs(l.Fragment,{children:[l.jsx(un,{size:12})," Re-authenticate"]})})]}):l.jsx("button",{onClick:Z,disabled:x,className:"text-2xs text-text-4 hover:text-text-2 font-sans underline underline-offset-2 transition-colors mt-1",children:x?"Opening browser...":"Re-authenticate"})]}),j.length===0&&!b&&l.jsx("p",{className:"text-xs text-text-4 font-sans text-center py-2",children:"Install at least one service above, then connect with Google."})]}),l.jsx(be,{variant:"secondary",size:"lg",onClick:s,className:"w-full",children:P&&j.length>0?"Done":"Close"})]})})}):null}function OA({skill:e,onBack:n}){var G,Z,C;const s=En(),[r,o]=v.useState(""),[d,u]=v.useState(!1),[f,h]=v.useState(!1),[p,x]=v.useState(!1),[g,b]=v.useState(!1),[y,Q]=v.useState(e.installed),[k,w]=v.useState(!0);v.useEffect(()=>{w(!0),J.get(`/skills/${e.id}/content`).then(T=>{o(T.content||""),u(T.requiresPurchase||!1)}).catch(()=>{}).finally(()=>w(!1))},[e.id]);async function j(){h(!0);try{await J.post(`/skills/${e.id}/install`),Q(!0),s.success(`${e.name} installed`)}catch(T){s.error("Install failed",T.message)}h(!1)}async function P(){x(!0);try{await J.post(`/skills/${e.id}/update`),s.success(`${e.name} updated to latest`);const T=await J.get(`/skills/${e.id}/content`);T.content&&o(T.content)}catch(T){s.error("Update failed",T.message)}x(!1)}async function z(){b(!0);try{await J.delete(`/skills/${e.id}`),Q(!1),s.success(`${e.name} uninstalled`)}catch(T){s.error("Uninstall failed",T.message)}b(!1)}async function _(){const{marketplaceAuthenticated:T,marketplaceLogin:H,marketplaceCheckout:E}=W.getState();if(!T){H();return}try{await E(e.id)}catch{}}return l.jsx(pa,{className:"h-full",children:l.jsxs("div",{className:"px-6 py-5",children:[l.jsxs("button",{onClick:n,className:"flex items-center gap-1 text-xs text-text-3 font-sans hover:text-text-0 cursor-pointer bg-transparent border-0 mb-4",children:[l.jsx(Ib,{size:14})," Back"]}),l.jsxs("div",{className:"flex gap-8",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("div",{className:"w-11 h-11 rounded-lg flex items-center justify-center flex-shrink-0 bg-accent/10 border border-accent/20 text-[22px]",children:e.icon||((Z=(G=e.name)==null?void 0:G[0])==null?void 0:Z.toUpperCase())}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("h1",{className:"text-lg font-bold text-text-0 font-sans",children:e.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-text-3 font-sans",children:[l.jsx("span",{children:e.author||"Community"}),(e.source==="claude-official"||e.verified)&&l.jsx(yS,{type:e.source,size:13})]})]})]}),l.jsx("p",{className:"mt-3 text-sm text-text-2 font-sans leading-relaxed",children:e.description}),((C=e.tags)==null?void 0:C.length)>0&&l.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3",children:e.tags.map(T=>l.jsx("span",{className:"text-2xs text-text-3 font-sans px-2 py-0.5 rounded bg-surface-4",children:T},T))}),l.jsx("div",{className:"h-px bg-border-subtle my-5"}),k?l.jsxs("div",{className:"space-y-2",children:[l.jsx("div",{className:"h-3 w-48 bg-surface-4 rounded animate-pulse"}),l.jsx("div",{className:"h-3 w-full bg-surface-4 rounded animate-pulse"}),l.jsx("div",{className:"h-3 w-3/4 bg-surface-4 rounded animate-pulse"})]}):r?l.jsxs("div",{className:"text-sm text-text-2 font-sans leading-relaxed",children:[l.jsx("h2",{className:"text-sm font-semibold text-text-0 mb-2",children:"About"}),l.jsx("pre",{className:"whitespace-pre-wrap font-sans",children:r})]}):d?l.jsxs("div",{className:"bg-warning/5 border border-warning/15 rounded-lg px-4 py-3",children:[l.jsx("p",{className:"text-sm text-text-1 font-sans font-medium",children:"Paid skill — purchase to view content"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Sign in and purchase this skill to access its full instructions."})]}):l.jsx("p",{className:"text-xs text-text-4 font-sans",children:"Content loading failed — check your connection."})]}),l.jsx("div",{className:"w-[240px] flex-shrink-0",children:l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-lg p-4 sticky top-4",children:[l.jsx(vS,{price:e.price||0,size:"md"}),d&&!y?l.jsxs("button",{onClick:_,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 flex items-center justify-center gap-2 border bg-warning/15 text-warning border-warning/20 hover:bg-warning/25",children:["Buy $",(e.price||0).toFixed(2)]}):y?l.jsxs("div",{className:"mt-3 flex flex-col gap-1.5",children:[l.jsxs("button",{onClick:P,disabled:p,className:"w-full py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-accent/15 text-accent border-accent/20 hover:bg-accent/25",children:[l.jsx(un,{size:12,className:p?"animate-spin":""}),p?"Updating...":"Pull Latest"]}),l.jsxs("button",{onClick:z,disabled:g,className:"w-full py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-error/10 text-error border-error/20 hover:bg-error/15",children:[l.jsx(Qn,{size:12}),g?"Removing...":"Uninstall"]})]}):l.jsx("button",{onClick:j,disabled:f,className:"w-full mt-3 py-2 px-3 text-xs font-sans font-semibold rounded cursor-pointer transition-all hover:opacity-85 disabled:opacity-60 disabled:cursor-not-allowed flex items-center justify-center gap-2 border bg-accent/15 text-accent border-accent/20 hover:bg-accent/25",children:f?"Installing...":"Install"}),l.jsx("div",{className:"mt-4 flex flex-col gap-2.5",children:[["Downloads",l.jsx("span",{className:"font-mono text-text-0",children:et(e.downloads||0)},"d")],["Rating",l.jsx(gS,{rating:e.rating||0,count:e.rating_count||e.ratingCount,size:"sm"},"r")],["Version",l.jsx("span",{className:"font-mono text-text-0",children:e.version||"1.0.0"},"v")],["Category",l.jsx(bS,{label:e.category||"general",variant:e.category||"draft"},"c")],["Source",l.jsx("span",{className:"text-text-0",children:e.source==="claude-official"?"Anthropic":"Community"},"s")]].map(([T,H])=>l.jsxs("div",{className:"flex justify-between items-center text-xs font-sans",children:[l.jsx("span",{className:"text-text-3",children:T}),H]},T))})]})})]})]})})}function hA(){const[e,n]=v.useState([]),[s,r]=v.useState(!0),[o,d]=v.useState(""),[u,f]=v.useState(""),[h,p]=v.useState("popular"),[x,g]=v.useState(null);return v.useEffect(()=>{r(!0);const b=new URLSearchParams;o&&b.set("search",o),u&&b.set("category",u),h&&b.set("sort",h),J.get(`/skills/registry?${b}`).then(y=>n(G_(y.skills||y.items||(Array.isArray(y)?y:[])))).catch(()=>n([])).finally(()=>r(!1))},[o,u,h]),x?l.jsx(OA,{skill:x,onBack:()=>g(null)}):l.jsx(pa,{className:"h-full",children:l.jsxs("div",{className:"px-5 py-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-72",children:l.jsx(jS,{value:o,onChange:d})}),l.jsx(F_,{selected:u,onSelect:f}),l.jsx("div",{className:"flex-1"}),l.jsxs("div",{className:"relative flex-shrink-0",children:[l.jsxs("select",{value:h,onChange:b=>p(b.target.value),className:"appearance-none font-sans cursor-pointer pr-7 py-2 pl-3 text-xs bg-surface-0 border border-border-subtle rounded text-text-1 focus:outline-none",children:[l.jsx("option",{value:"popular",children:"Popular"}),l.jsx("option",{value:"rating",children:"Top Rated"}),l.jsx("option",{value:"newest",children:"Newest"}),l.jsx("option",{value:"name",children:"A-Z"})]}),l.jsx(Rn,{size:12,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 pointer-events-none"})]}),l.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:e.length})]}),l.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:8}).map((b,y)=>l.jsx(QS,{},y)):e.map(b=>l.jsx(W_,{skill:b,onClick:g},b.id))}),!s&&e.length===0&&l.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No skills found."})]})})}const _0=new Set(["gmail","google-calendar","google-drive","google-docs","google-sheets","google-slides"]);function mA(){const[e,n]=v.useState([]),[s,r]=v.useState(!0),[o,d]=v.useState(""),[u,f]=v.useState(null),[h,p]=v.useState(!1),[x,g]=v.useState(!1),b=()=>{r(!0),J.get(`/integrations/registry?search=${encodeURIComponent(o)}`).then(z=>n(z.integrations||z.items||(Array.isArray(z)?z:[]))).catch(()=>n([])).finally(()=>r(!1))};v.useEffect(()=>{b()},[o]);const y=e.filter(z=>_0.has(z.id)),Q=e.filter(z=>!_0.has(z.id)),k=y.filter(z=>z.installed).length;function w(z){f(z),p(!0)}function j(){p(!1),f(null),b()}const P=!o||"google workspace gmail calendar drive docs sheets slides".includes(o.toLowerCase());return l.jsxs(pa,{className:"h-full",children:[l.jsxs("div",{className:"px-5 py-4",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("div",{className:"w-72",children:l.jsx(jS,{value:o,onChange:d,placeholder:"Search integrations..."})}),l.jsx("div",{className:"flex-1"}),l.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0",children:Q.length+(y.length>0?1:0)})]}),l.jsx("div",{className:"mt-4 grid gap-3",style:{gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))"},children:s?Array.from({length:6}).map((z,_)=>l.jsx(QS,{},_)):l.jsxs(l.Fragment,{children:[y.length>0&&P&&l.jsx(Q0,{item:{id:"google-workspace",name:"Google Workspace",description:"Gmail, Calendar, Drive, Docs, Sheets, Slides — one sign-in for all",category:"productivity",tags:["google","email","calendar","drive","docs"],verified:"mcp-official",installed:k>0,_installedCount:k},onClick:()=>g(!0)},"google-workspace"),Q.map(z=>l.jsx(Q0,{item:z,onClick:()=>w(z)},z.id))]})}),!s&&Q.length===0&&y.length===0&&l.jsx("div",{className:"text-center py-16 text-text-4 font-sans text-sm",children:"No integrations found."})]}),l.jsx(cA,{integration:u,open:h,onClose:j}),l.jsx(fA,{integrations:e,open:x,onClose:()=>{g(!1),b()}})]})}function pA(){const e=W(w=>w.marketplaceAuthenticated),n=W(w=>w.marketplaceLogin),[s,r]=v.useState([]),[o,d]=v.useState([]),[u,f]=v.useState(!0),[h,p]=v.useState(null),x=En(),g=v.useRef(null),b=async()=>{const w=await J.get("/skills/installed");d(Array.isArray(w)?w:w.skills||[])};v.useEffect(()=>{f(!0),Promise.all([e?J.get("/auth/purchases").then(w=>w.purchases||[]).catch(()=>[]):Promise.resolve([]),J.get("/skills/installed").then(w=>Array.isArray(w)?w:w.skills||[]).catch(()=>[])]).then(([w,j])=>{r(w),d(j)}).finally(()=>f(!1))},[e]);async function y(w){p(w.id);try{await J.post(`/skills/${w.id}/update`),x.success(`${w.name||w.id} updated`),await b()}catch(j){x.error("Update failed",j.message)}p(null)}async function Q(w){p(w.id);try{await J.delete(`/skills/${w.id}`),x.success(`${w.name||w.id} uninstalled`),await b()}catch(j){x.error("Uninstall failed",j.message)}p(null)}async function k(w){var P;const j=(P=w.target.files)==null?void 0:P[0];if(j){try{const z=await j.text(),_=j.name.replace(/\.md$/i,"");await J.post("/skills/import",{name:_,content:z}),x.success(`Imported "${_}"`),await b()}catch(z){x.error("Import failed",z.message)}w.target.value=""}}return u?l.jsx("div",{className:"p-5 space-y-3",children:[...Array(4)].map((w,j)=>l.jsx(dn,{className:"h-14 rounded-md"},j))}):l.jsx(pa,{className:"h-full",children:l.jsxs("div",{className:"px-5 py-4 space-y-6",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx("input",{ref:g,type:"file",accept:".md",onChange:k,className:"hidden"}),l.jsxs(be,{variant:"secondary",size:"md",onClick:()=>{var w;return(w=g.current)==null?void 0:w.click()},className:"gap-1.5",children:[l.jsx(tP,{size:13}),"Import .md Skill"]}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Drop a markdown skill file to install locally"})]}),e&&s.length>0&&l.jsxs("div",{children:[l.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[l.jsx(Ef,{size:12}),"Purchases (",s.length,")"]}),l.jsx("div",{className:"space-y-1.5",children:s.map(w=>{var j,P;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle",children:[l.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:w.skill_icon||((P=(j=w.skill_name)==null?void 0:j[0])==null?void 0:P.toUpperCase())||"?"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:w.skill_name||w.skill_id}),l.jsxs("div",{className:"text-2xs text-text-4 font-sans",children:["$",(w.amount||0).toFixed(2)," · ",kt(w.created_at)]})]}),l.jsx(Pe,{variant:"success",className:"text-2xs flex-shrink-0",children:"Owned"})]},w.id||w.skill_id)})})]}),e&&s.length===0&&l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[l.jsx(Ef,{size:20,className:"mx-auto text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No purchases yet"})]}),!e&&l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[l.jsx(Ef,{size:20,className:"mx-auto text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-2 font-sans mb-3",children:"Sign in to see your purchases"}),l.jsxs(be,{variant:"primary",size:"sm",onClick:n,className:"gap-1.5 mx-auto",children:[l.jsx(fh,{size:12})," Sign in"]})]}),l.jsxs("div",{children:[l.jsxs("h3",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider mb-3 flex items-center gap-1.5",children:[l.jsx(rv,{size:12}),"Installed (",o.length,")"]}),o.length===0?l.jsxs("div",{className:"bg-surface-1 border border-border-subtle rounded-md px-4 py-6 text-center",children:[l.jsx(Qi,{size:20,className:"mx-auto text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No skills installed — browse the Skills tab or import a .md file"})]}):l.jsx("div",{className:"space-y-1.5",children:o.map(w=>{var j,P;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-1 border border-border-subtle group",children:[l.jsx("div",{className:"w-8 h-8 rounded-md bg-accent/10 flex items-center justify-center text-sm flex-shrink-0",children:w.icon||((P=(j=w.name)==null?void 0:j[0])==null?void 0:P.toUpperCase())||"?"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:w.name||w.id}),l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:w.description||w.category||"local skill"})]}),l.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[l.jsx("button",{onClick:()=>y(w),disabled:h===w.id,title:"Pull latest version",className:"p-1.5 rounded text-text-3 hover:text-accent hover:bg-accent/10 cursor-pointer transition-colors disabled:opacity-50",children:l.jsx(un,{size:12,className:h===w.id?"animate-spin":""})}),l.jsx("button",{onClick:()=>Q(w),disabled:h===w.id,title:"Uninstall",className:"p-1.5 rounded text-text-3 hover:text-error hover:bg-error/10 cursor-pointer transition-colors disabled:opacity-50",children:l.jsx(Qn,{size:12})})]}),l.jsx(Pe,{variant:"accent",className:"text-2xs flex-shrink-0",children:"Installed"})]},w.id)})})]})]})})}function xA(){const e=W(o=>o.marketplaceAuthenticated),n=W(o=>o.marketplaceUser),s=W(o=>o.marketplaceLogin),r=W(o=>o.marketplaceLogout);return e?l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs("div",{className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded bg-surface-3 border border-border-subtle",children:[l.jsx("div",{className:"w-4 h-4 rounded-full bg-accent/20 flex items-center justify-center",children:l.jsx(Ov,{size:9,className:"text-accent"})}),l.jsx("span",{className:"text-xs text-text-0 font-sans font-medium max-w-[120px] truncate",children:(n==null?void 0:n.displayName)||(n==null?void 0:n.id)||"Account"})]}),l.jsx("button",{onClick:r,className:"flex items-center gap-1 px-2 py-1.5 rounded text-xs text-text-3 hover:text-text-0 hover:bg-surface-3 font-sans cursor-pointer transition-colors",children:l.jsx(av,{size:11})})]}):l.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-semibold font-sans text-text-0 bg-accent/15 border border-accent/25 rounded hover:bg-accent/25 cursor-pointer transition-colors",children:[l.jsx(fh,{size:12}),"Sign in"]})}function gA(){const[e,n]=v.useState("skills"),s=[{id:"skills",label:"Skills",icon:_l},{id:"integrations",label:"Integrations",icon:El},{id:"library",label:"My Library",icon:rv}];return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx("div",{className:"flex-shrink-0 bg-surface-1 border-b border-border-subtle",children:l.jsxs("div",{className:"flex items-center px-5 h-11",children:[l.jsx("div",{className:"flex items-center",children:s.map(r=>{const o=r.icon;return l.jsxs("button",{onClick:()=>n(r.id),className:`flex items-center gap-1.5 px-3 py-2.5 text-xs font-semibold font-sans cursor-pointer select-none border-b-2 -mb-px transition-colors ${e===r.id?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"}`,children:[l.jsx(o,{size:12}),r.label]},r.id)})}),l.jsx("div",{className:"flex-1"}),l.jsx(xA,{})]})}),l.jsxs("div",{className:"flex-1 min-h-0",children:[e==="skills"&&l.jsx(hA,{}),e==="integrations"&&l.jsx(mA,{}),e==="library"&&l.jsx(pA,{})]})]})}function bA(){const e=W(d=>d.teams),n=W(d=>d.agents),s=W(d=>d.activeTeamId),r=W(d=>d.deleteTeam),o=W(d=>d.addToast);return e.length===0?l.jsx("div",{className:"flex-1 flex items-center justify-center",children:l.jsxs("div",{className:"text-center space-y-2",children:[l.jsx(Ti,{size:28,className:"mx-auto text-text-4"}),l.jsx("p",{className:"text-xs font-sans text-text-3",children:"No teams yet"}),l.jsx("p",{className:"text-2xs font-sans text-text-4",children:"Teams are created when you spawn agents or launch a planner"})]})}):l.jsx("div",{className:"flex-1 overflow-y-auto",children:l.jsx("div",{className:"p-4 space-y-3",children:e.map(d=>{const u=n.filter(y=>y.teamId===d.id),f=u.filter(y=>y.status==="running"||y.status==="starting"),h=u.filter(y=>y.status==="completed"),p=u.filter(y=>y.status==="crashed"),x=u.reduce((y,Q)=>y+(Q.tokensUsed||0),0),g=u.reduce((y,Q)=>y+(Q.costUsd||0),0),b=d.id===s;return l.jsxs("div",{className:oe("rounded-md border bg-surface-1 overflow-hidden transition-colors",b?"border-accent/30":"border-border-subtle"),children:[l.jsxs("div",{className:"px-4 py-3 flex items-center gap-3",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-semibold text-text-0 font-sans",children:d.name}),b&&l.jsx(Pe,{variant:"accent",className:"text-2xs",children:"Active"})]}),d.workingDir&&l.jsxs("div",{className:"flex items-center gap-1 mt-0.5",children:[l.jsx(ev,{size:10,className:"text-text-4"}),l.jsx("span",{className:"text-2xs font-mono text-text-3 truncate",children:d.workingDir})]})]}),l.jsx("button",{onClick:()=>{if(u.some(y=>y.status==="running")){o("error","Stop running agents first");return}r(d.id)},className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Delete team",children:l.jsx(Qn,{size:13})})]}),l.jsxs("div",{className:"px-4 py-2.5 border-t border-border-subtle bg-surface-0 flex items-center gap-4",children:[l.jsx(Pl,{label:"Agents",value:u.length}),l.jsx(Pl,{label:"Running",value:f.length,color:f.length>0?"text-success":void 0}),l.jsx(Pl,{label:"Done",value:h.length}),l.jsx(Pl,{label:"Crashed",value:p.length,color:p.length>0?"text-danger":void 0}),l.jsx("div",{className:"flex-1"}),l.jsx(Pl,{label:"Tokens",value:et(x)}),g>0&&l.jsx(Pl,{label:"Cost",value:nr(g)})]}),u.length>0&&l.jsx("div",{className:"border-t border-border-subtle",children:u.map(y=>l.jsxs("div",{className:"flex items-center gap-2 px-4 py-1.5 border-b border-border-subtle last:border-b-0",children:[l.jsx(Xs,{status:y.status,size:"sm"}),l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:y.name}),l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:y.role}),l.jsx("div",{className:"flex-1"}),l.jsx("span",{className:"text-2xs font-mono text-text-2 tabular-nums",children:et(y.tokensUsed||0)})]},y.id))})]},d.id)})})})}function Pl({label:e,value:n,color:s}){return l.jsxs("div",{className:"text-center",children:[l.jsx("div",{className:oe("text-xs font-mono tabular-nums",s||"text-text-1"),children:n}),l.jsx("div",{className:"text-2xs font-mono text-text-4 uppercase tracking-wider",children:e})]})}function vA(){const e=W(r=>r.pendingApprovals),n=W(r=>r.approveRequest),s=W(r=>r.rejectRequest);return e.length===0?null:l.jsxs("div",{className:"px-4 pt-4 space-y-2",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx($i,{size:12,className:"text-warning"}),l.jsxs("span",{className:"text-2xs font-mono text-warning uppercase tracking-wider",children:["Pending (",e.length,")"]})]}),e.map(r=>{var o,d,u;return l.jsxs("div",{className:"flex items-center gap-3 px-3 py-2 rounded-md bg-warning/5 border border-warning/20",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"text-xs text-text-0 font-sans font-medium truncate",children:[r.agentName,": ",((o=r.action)==null?void 0:o.description)||((d=r.action)==null?void 0:d.type)||"action"]}),((u=r.action)==null?void 0:u.filePath)&&l.jsx("div",{className:"text-2xs font-mono text-text-3 truncate mt-0.5",children:r.action.filePath}),l.jsx("div",{className:"text-2xs text-text-4 font-mono mt-0.5",children:kt(r.requestedAt)})]}),l.jsxs("div",{className:"flex gap-1.5 flex-shrink-0",children:[l.jsxs(be,{variant:"primary",size:"sm",onClick:()=>n(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[l.jsx(uv,{size:10})," Approve"]}),l.jsxs(be,{variant:"danger",size:"sm",onClick:()=>s(r.id),className:"h-7 px-2.5 gap-1 text-2xs",children:[l.jsx(UN,{size:10})," Reject"]})]})]},r.id)})]})}function yA(){const e=W(h=>h.resolvedApprovals),[n,s]=v.useState([]),[r,o]=v.useState(!0);v.useEffect(()=>{const h=setInterval(d,4e3);return d(),()=>clearInterval(h)},[]);async function d(){try{const h=await J.get("/pm/history");s(h.history||h||[])}catch{}o(!1)}const u=new Set,f=[...e,...n].filter(h=>{const p=h.id||`${h.agentName}-${h.timestamp}`;return u.has(p)?!1:(u.add(p),!0)});return l.jsxs("div",{className:"flex-1 overflow-y-auto",children:[l.jsx(vA,{}),l.jsxs("div",{className:"p-4 space-y-1.5",children:[r&&f.length===0&&l.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!r&&f.length===0&&l.jsxs("div",{className:"text-center py-12",children:[l.jsx(as,{size:24,className:"mx-auto mb-2 text-text-4"}),l.jsx("p",{className:"text-xs font-sans text-text-3",children:"No approval history"}),l.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Approvals appear when agents use Auto permission mode"})]}),f.map((h,p)=>{var g;const x=h.status==="approved"||h.verdict==="approved";return l.jsxs("div",{className:"flex items-center gap-2.5 px-3 py-2 rounded-md bg-surface-0 border border-border-subtle",children:[x?l.jsx(as,{size:12,className:"text-success flex-shrink-0"}):l.jsx(Fb,{size:12,className:"text-danger flex-shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"text-xs text-text-1 font-sans truncate",children:[l.jsx("span",{className:"font-medium text-text-0",children:h.agentName}),l.jsx("span",{className:"text-text-3 mx-1",children:"·"}),l.jsx("span",{children:((g=h.action)==null?void 0:g.description)||h.action||"action"})]}),h.reason&&l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate mt-0.5",children:h.reason})]}),l.jsx("span",{className:"text-2xs font-mono text-text-4 flex-shrink-0",children:kt(h.resolvedAt||h.timestamp)})]},h.id||p)})]})]})}function SA(){const[e,n]=v.useState([]),[s,r]=v.useState(!0),o=En();v.useEffect(()=>{const f=setInterval(d,1e4);return d(),()=>clearInterval(f)},[]);async function d(){try{const f=await J.get("/schedules");n(f.schedules||f||[])}catch{}r(!1)}async function u(f,h){try{await J.post(`/schedules/${f}/${h?"disable":"enable"}`),d()}catch(p){o.error("Failed to toggle schedule",p.message)}}return l.jsx("div",{className:"flex-1 overflow-y-auto",children:l.jsxs("div",{className:"p-4 space-y-2",children:[s&&e.length===0&&l.jsx("div",{className:"text-center py-12 text-text-4 font-mono text-xs",children:"Loading..."}),!s&&e.length===0&&l.jsxs("div",{className:"text-center py-12",children:[l.jsx(Cc,{size:24,className:"mx-auto mb-2 text-text-4"}),l.jsx("p",{className:"text-xs font-sans text-text-3",children:"No schedules configured"}),l.jsx("p",{className:"text-2xs text-text-4 font-sans mt-1",children:"Use the CLI to create agent schedules"})]}),e.map(f=>l.jsxs("div",{className:"rounded-md border border-border-subtle bg-surface-0 overflow-hidden",children:[l.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:f.name}),l.jsx(Pe,{variant:f.enabled?"success":"default",className:"text-2xs",children:f.enabled?"Active":"Paused"})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx("span",{className:"text-2xs font-mono text-text-2",children:f.cron}),l.jsx("span",{className:"text-2xs text-text-4",children:"·"}),l.jsx("span",{className:"text-2xs font-mono text-text-3 uppercase",children:f.role}),f.teamId&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-2xs text-text-4",children:"·"}),l.jsx("span",{className:"text-2xs font-sans text-text-3",children:f.teamName||f.teamId})]})]}),f.prompt&&l.jsx("div",{className:"text-2xs font-sans text-text-4 mt-1 truncate",children:f.prompt})]}),l.jsx(be,{variant:"secondary",size:"sm",onClick:()=>u(f.id,f.enabled),className:"h-7 px-2.5 gap-1 text-2xs",children:f.enabled?l.jsxs(l.Fragment,{children:[l.jsx(gN,{size:10})," Pause"]}):l.jsxs(l.Fragment,{children:[l.jsx(QN,{size:10})," Enable"]})})]}),f.lastRunAt&&l.jsxs("div",{className:"px-4 py-1.5 border-t border-border-subtle bg-surface-1 text-2xs font-mono text-text-4",children:["Last run: ",kt(f.lastRunAt),f.nextRunAt&&l.jsxs("span",{className:"ml-3",children:["Next: ",kt(f.nextRunAt)]})]})]},f.id))]})})}function QA(){return l.jsxs(pS,{defaultValue:"dashboard",className:"flex flex-col h-full",children:[l.jsxs("div",{className:"px-4 pt-3 bg-surface-1 border-b border-border",children:[l.jsx("div",{className:"flex items-center gap-4 mb-0",children:l.jsx("h2",{className:"text-xs font-semibold text-text-0 font-sans tracking-wide uppercase",children:"Management"})}),l.jsxs(xS,{className:"border-b-0",children:[l.jsxs(Ml,{value:"dashboard",className:"inline-flex items-center gap-1.5",children:[l.jsx(WT,{size:12}),"Teams"]}),l.jsxs(Ml,{value:"approvals",className:"inline-flex items-center gap-1.5",children:[l.jsx(HT,{size:12}),"Approvals"]}),l.jsxs(Ml,{value:"schedules",className:"inline-flex items-center gap-1.5",children:[l.jsx(Cc,{size:12}),"Schedules"]})]})]}),l.jsx(Yl,{value:"dashboard",className:"flex-1 min-h-0",children:l.jsx(bA,{})}),l.jsx(Yl,{value:"approvals",className:"flex-1 min-h-0",children:l.jsx(yA,{})}),l.jsx(Yl,{value:"schedules",className:"flex-1 min-h-0",children:l.jsx(SA,{})})]})}const jA={code:"Code",general:"General"},wA={light:"text-success",medium:"text-accent",heavy:"text-warning"};function kA(e){return e<1?`${Math.round(e*1024)} MB`:`${e} GB`}function l2({hardware:e}){if(!e)return null;const{totalRamGb:n,gpu:s,isAppleSilicon:r}=e;return l.jsxs("div",{className:"flex items-center gap-3 bg-surface-0 rounded-lg border border-border-subtle px-3 py-2.5",children:[l.jsx(Oh,{size:14,className:"text-text-3 flex-shrink-0"}),l.jsx("div",{className:"flex-1 min-w-0",children:l.jsxs("div",{className:"flex items-center gap-2 text-xs font-sans",children:[l.jsxs("span",{className:"text-text-0 font-semibold",children:[n," GB RAM"]}),s&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-text-4",children:"·"}),l.jsx("span",{className:"text-text-2",children:s.name})]}),r&&l.jsx(Pe,{variant:"accent",className:"text-2xs",children:"Unified Memory"})]})})]})}function $A({onRecheck:e}){const[n,s]=v.useState(null),[r,o]=v.useState(!1),[d,u]=v.useState(!1),[f,h]=v.useState(!1),p=W(_=>_.addToast);v.useEffect(()=>{J.post("/providers/ollama/check").then(s).catch(()=>{})},[]);async function x(){o(!0);try{const _=await J.post("/providers/ollama/check");s(_),_.installed&&_.serverRunning?(p("success","Ollama is ready!"),e()):_.installed?p("info","Ollama installed — server needs to start"):p("info","Ollama not found — install and try again")}catch{}o(!1)}async function g(){u(!0);try{if((await J.post("/providers/ollama/serve")).ok){p("success","Ollama server started!");let G=!1;for(let Z=0;Z<5;Z++){await new Promise(T=>setTimeout(T,2e3));const C=await J.post("/providers/ollama/check");if(s(C),C.serverRunning){G=!0;break}}G&&e()}}catch(_){p("error","Could not start server",_.message)}u(!1)}function b(_){navigator.clipboard.writeText(_),h(!0),setTimeout(()=>h(!1),2e3)}if(!n)return l.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{hardware:y,install:Q,requirements:k,installed:w,serverRunning:j}=n,P=y.totalRamGb>=k.minRAM,z=y.recommended;return l.jsxs("div",{className:"space-y-3 p-3",children:[l.jsx(l2,{hardware:y}),P?l.jsxs("div",{className:"flex items-start gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2.5",children:[l.jsx(jt,{size:14,className:"text-success flex-shrink-0 mt-0.5"}),l.jsxs("div",{className:"text-xs font-sans",children:[l.jsx("span",{className:"text-success font-semibold",children:"Your system is ready."}),l.jsx("span",{className:"text-text-2 ml-1",children:z.code?`Recommended: ${z.code}`:`${y.totalRamGb} GB RAM available`})]})]}):l.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[l.jsx(ha,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),l.jsxs("div",{className:"text-xs font-sans text-text-2",children:[l.jsxs("span",{className:"text-warning font-semibold",children:[y.totalRamGb," GB RAM detected."]})," ","Minimum ",k.minRAM," GB needed. Smallest models may still work."]})]}),w&&!j&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{className:"flex items-start gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[l.jsx(ha,{size:14,className:"text-warning flex-shrink-0 mt-0.5"}),l.jsxs("div",{className:"text-xs font-sans text-text-2",children:[l.jsx("span",{className:"text-warning font-semibold",children:"Ollama installed but server not running."})," ","The server needs to be running to pull and use models."]})]}),l.jsxs(be,{variant:"primary",size:"md",onClick:g,disabled:d,className:"w-full gap-1.5",children:[l.jsx(An,{size:12}),d?"Starting...":"Start Ollama Server"]})]}),!w&&l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("p",{className:"text-xs font-semibold text-text-1 font-sans",children:"Install Ollama"}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("code",{className:"flex-1 bg-surface-0 border border-border-subtle rounded-md px-3 py-2 text-xs font-mono text-text-1 truncate",children:Q.command}),l.jsxs(be,{variant:"secondary",size:"sm",onClick:()=>b(Q.command),className:"h-8 px-2.5 gap-1 flex-shrink-0",children:[f?l.jsx(jt,{size:12}):l.jsx(Rc,{size:12}),f?"Copied":"Copy"]})]}),Q.alt&&l.jsx("p",{className:"text-2xs text-text-4 font-sans",children:Q.alt})]}),l.jsxs(be,{variant:"secondary",size:"md",onClick:x,disabled:r,className:"w-full gap-1.5",children:[l.jsx(un,{size:12,className:r?"animate-spin":""}),r?"Checking...":w?"Check again":"I installed it — check again"]})]})}function TA({model:e,isInstalled:n,isRecommended:s,canRun:r,onPull:o,onDelete:d,pulling:u}){const f=u===e.id;return l.jsxs("div",{className:oe("flex items-center gap-2 px-3 py-2 border-t border-border-subtle transition-colors",!r&&"opacity-40"),children:[n?l.jsx(jt,{size:12,className:"text-success flex-shrink-0"}):l.jsx("div",{className:"w-3"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-xs font-mono text-text-1 truncate",children:e.name}),s&&l.jsx(fv,{size:10,className:"text-warning flex-shrink-0"})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[l.jsx("span",{className:oe("text-2xs font-semibold font-sans",wA[e.tier]),children:e.tier}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:kA(e.sizeGb)}),l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["· ",e.ramGb," GB RAM"]})]})]}),n?l.jsx("button",{onClick:()=>d(e.id),className:"p-1.5 text-text-4 hover:text-danger rounded transition-colors cursor-pointer",title:"Remove model",children:l.jsx(Qn,{size:12})}):r?l.jsx(be,{variant:"secondary",size:"sm",onClick:()=>o(e.id),disabled:!!u,className:"h-7 px-2 text-2xs gap-1",children:f?l.jsxs(l.Fragment,{children:[l.jsx(un,{size:10,className:"animate-spin"})," Pulling..."]}):l.jsxs(l.Fragment,{children:[l.jsx(Qi,{size:10})," Pull"]})}):l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:["Needs ",e.ramGb," GB"]})]})}function NA({onStopped:e}){const[n,s]=v.useState(null),r=W(u=>u.addToast);async function o(){s("stopping");try{(await J.post("/providers/ollama/stop")).ok?(r("info","Ollama server stopped"),e&&e()):r("error","Could not stop server")}catch(u){r("error","Stop failed",u.message)}s(null)}async function d(){s("restarting");try{(await J.post("/providers/ollama/restart")).ok?r("success","Ollama server restarted"):r("error","Restart failed")}catch(u){r("error","Restart failed",u.message)}s(null)}return l.jsxs("div",{className:"flex items-center gap-2 bg-success/8 border border-success/20 rounded-lg px-3 py-2",children:[l.jsxs("span",{className:"relative flex-shrink-0 w-[6px] h-[6px]",children:[l.jsx("span",{className:"absolute inset-0 rounded-full bg-success"}),l.jsx("span",{className:"absolute inset-[-2px] rounded-full bg-success opacity-20 animate-pulse"})]}),l.jsx("span",{className:"text-xs font-sans text-success font-semibold",children:"Server Running"}),l.jsx("span",{className:"text-2xs font-mono text-text-4",children:":11434"}),l.jsx("div",{className:"flex-1"}),l.jsxs("button",{onClick:d,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-accent cursor-pointer transition-colors disabled:opacity-40",children:[l.jsx(un,{size:10,className:n==="restarting"?"animate-spin":""}),n==="restarting"?"Restarting...":"Restart"]}),l.jsxs("button",{onClick:o,disabled:!!n,className:"flex items-center gap-1 text-2xs font-sans text-text-3 hover:text-danger cursor-pointer transition-colors disabled:opacity-40",children:[l.jsx(ha,{size:10}),n==="stopping"?"Stopping...":"Stop"]})]})}function PA({onModelChange:e}){var T,H;const[n,s]=v.useState(null),[r,o]=v.useState(null),[d,u]=v.useState("code"),[f,h]=v.useState(!1),[p,x]=v.useState(!1),g=W(E=>E.addToast),b=v.useRef(!1);function y(){J.get("/providers/ollama/models").then(E=>{var ee;s(E),!b.current&&((ee=E.installed)==null?void 0:ee.length)===0&&(b.current=!0,setTimeout(y,2e3))}).catch(()=>{})}v.useEffect(()=>{y()},[]);async function Q(E){o(E);try{await J.post("/providers/ollama/pull",{model:E}),g("success",`Pulled ${E}`),y(),e&&e()}catch(ee){g("error",`Pull failed: ${ee.message}`)}o(null)}async function k(E){try{await J.delete(`/providers/ollama/models/${encodeURIComponent(E)}`),g("info",`Removed ${E}`),y(),e&&e()}catch(ee){g("error",`Delete failed: ${ee.message}`)}}if(!n)return l.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Loading..."});const{installed:w,catalog:j,hardware:P}=n,z=new Set(w.map(E=>E.id)),_=P.totalRamGb,G=[(T=P.recommended)==null?void 0:T.code,(H=P.recommended)==null?void 0:H.general].filter(Boolean),Z=j.filter(E=>E.category===d),C=f?Z:Z.filter(E=>E.ramGb<=_);return p?l.jsxs("div",{className:"space-y-3 p-3",children:[l.jsxs("div",{className:"flex items-center gap-2 bg-warning/8 border border-warning/20 rounded-lg px-3 py-2.5",children:[l.jsx(ha,{size:14,className:"text-warning flex-shrink-0"}),l.jsxs("span",{className:"text-xs font-sans text-text-2",children:[l.jsx("span",{className:"text-warning font-semibold",children:"Ollama server stopped."})," ","Start it again to pull and use models."]})]}),l.jsxs(be,{variant:"primary",size:"md",onClick:async()=>{try{(await J.post("/providers/ollama/serve")).ok&&(g("success","Ollama server started!"),x(!1),b.current=!1,setTimeout(y,2e3))}catch(E){g("error","Could not start server",E.message)}},className:"w-full gap-1.5",children:[l.jsx(An,{size:12}),"Start Ollama Server"]})]}):l.jsxs("div",{className:"space-y-2 p-3",children:[l.jsx(NA,{onStopped:()=>x(!0)}),l.jsx(l2,{hardware:P}),w.length>0&&l.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-sans text-text-2",children:[l.jsx(uh,{size:12,className:"text-text-3"}),l.jsx("span",{className:"font-semibold",children:w.length})," model",w.length!==1?"s":""," installed"]}),l.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:Object.entries(jA).map(([E,ee])=>l.jsx("button",{onClick:()=>u(E),className:oe("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",d===E?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:ee},E))}),l.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[C.map(E=>l.jsx(TA,{model:E,isInstalled:z.has(E.id),isRecommended:G.includes(E.id),canRun:E.ramGb<=_,onPull:Q,onDelete:k,pulling:r},E.id)),C.length===0&&l.jsxs("div",{className:"px-3 py-4 text-center text-xs text-text-4 font-sans",children:["No ",d," models available for your hardware"]})]}),!f&&Z.length>C.length&&l.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-1 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[l.jsx(Rn,{size:10}),"Show ",Z.length-C.length," more (exceed your RAM)"]})]})}function r2({isInstalled:e,onModelChange:n}){const[s,r]=v.useState(!1),[o,d]=v.useState(!1);return v.useEffect(()=>{e?J.post("/providers/ollama/check").then(u=>{r(u.installed&&u.serverRunning),d(!0)}).catch(()=>d(!0)):d(!0)},[e]),o?s?l.jsx(PA,{onModelChange:n}):l.jsx($A,{onRecheck:()=>{r(!0),n&&n()}}):l.jsx("div",{className:"py-4 text-center text-xs text-text-4 font-sans",children:"Checking Ollama..."})}var X0={};function zA({path:e,onNavigate:n}){const s=e.split("/").filter(Boolean);return l.jsxs("div",{className:"flex items-center gap-0.5 min-w-0 overflow-x-auto py-1.5 scrollbar-none",children:[l.jsx("button",{onClick:()=>n("/"),className:"flex-shrink-0 p-1 rounded hover:bg-surface-5 cursor-pointer text-text-3 hover:text-text-0 transition-colors",children:l.jsx(uh,{size:13})}),s.map((r,o)=>{const d="/"+s.slice(0,o+1).join("/"),u=o===s.length-1;return l.jsxs("div",{className:"flex items-center gap-0.5 flex-shrink-0",children:[l.jsx(is,{size:11,className:"text-text-4"}),l.jsx("button",{onClick:()=>n(d),className:oe("px-1.5 py-0.5 rounded text-xs font-mono cursor-pointer transition-colors",u?"text-text-0 bg-surface-4 font-medium":"text-text-3 hover:text-text-0 hover:bg-surface-5"),children:r})]},o)})]})}function i2({open:e,onOpenChange:n,currentPath:s,onSelect:r}){const[o,d]=v.useState(s||X0.HOME||"/"),[u,f]=v.useState([]),[h,p]=v.useState(!1),[x,g]=v.useState(null);v.useEffect(()=>{e&&b(s||"/")},[e]);async function b(w){p(!0),g(null);try{const j=await J.get(`/browse-system?path=${encodeURIComponent(w)}`);d(j.current||w),f(j.dirs||[])}catch(j){g(j.message),f([])}p(!1)}function y(){const w=o==="/"?"/":o.split("/").slice(0,-1).join("/")||"/";b(w)}function Q(){b(X0.HOME||"/Users")}function k(){r(o),n(!1)}return l.jsx(xi,{open:e,onOpenChange:n,children:l.jsx(gi,{title:"Select Working Directory",description:"Choose a directory for this agent to work in",className:"max-w-[520px]",children:l.jsxs("div",{className:"px-5 py-4 space-y-3",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:y,disabled:o==="/",className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed",children:l.jsx(E$,{size:14})}),l.jsx("button",{onClick:Q,className:"p-1.5 rounded-md bg-surface-4 border border-border text-text-2 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:l.jsx(UT,{size:14})}),l.jsx("div",{className:"flex-1 min-w-0 bg-surface-0 rounded-md border border-border-subtle px-2",children:l.jsx(zA,{path:o,onNavigate:b})})]}),l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle overflow-hidden",children:l.jsxs("div",{className:"max-h-[340px] overflow-y-auto",children:[h&&l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx(ht,{size:18,className:"text-text-3 animate-spin"})}),x&&l.jsx("div",{className:"px-4 py-6 text-center",children:l.jsx("p",{className:"text-xs text-danger font-sans",children:x})}),!h&&!x&&u.length===0&&l.jsx("div",{className:"px-4 py-6 text-center",children:l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No subdirectories"})}),!h&&!x&&u.map(w=>l.jsxs("button",{onClick:()=>b(w.path),className:oe("w-full flex items-center gap-2.5 px-3.5 py-2 text-left cursor-pointer","hover:bg-surface-4 transition-colors border-b border-border-subtle last:border-0"),children:[w.hasChildren?l.jsx(TT,{size:15,className:"text-warning flex-shrink-0"}):l.jsx(di,{size:15,className:"text-text-3 flex-shrink-0"}),l.jsx("span",{className:"text-sm text-text-0 font-sans truncate flex-1",children:w.name}),w.hasChildren&&l.jsx(is,{size:12,className:"text-text-4 flex-shrink-0"})]},w.path))]})}),l.jsxs("div",{className:"flex items-center gap-3 bg-surface-4/50 rounded-lg px-3.5 py-2.5 border border-border-subtle",children:[l.jsx(di,{size:16,className:"text-accent flex-shrink-0"}),l.jsx("span",{className:"text-xs font-mono text-text-1 truncate flex-1",children:o})]}),l.jsxs("div",{className:"flex justify-end gap-2",children:[l.jsx(be,{variant:"ghost",size:"md",onClick:()=>n(!1),children:"Cancel"}),l.jsxs(be,{variant:"primary",size:"md",onClick:k,className:"gap-1.5",children:[l.jsx(jt,{size:14})," Select Folder"]})]})]})})})}function o2({children:e,...n}){return l.jsx(FS,{...n,children:e})}function c2({children:e,className:n,title:s,side:r="right",width:o=400,...d}){return l.jsxs(KS,{children:[l.jsx(JS,{className:"fixed inset-0 z-40 bg-black/30"}),l.jsxs(e2,{className:oe("fixed top-0 z-50 h-full overflow-y-auto","bg-surface-1 border-l border-border shadow-2xl","data-[state=open]:animate-in data-[state=closed]:animate-out",r==="right"&&"right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right",r==="left"&&"left-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",n),style:{width:o},...d,children:[s&&l.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-border-subtle sticky top-0 bg-surface-1 z-10",children:[l.jsx(t2,{className:"text-base font-semibold text-text-0 font-sans",children:s}),l.jsx(a2,{className:"p-1 rounded-md text-text-3 hover:text-text-0 hover:bg-surface-5 transition-colors cursor-pointer",children:l.jsx(wt,{size:16})})]}),l.jsx(n2,{className:"sr-only",children:"Panel"}),e]})]})}function CA({value:e,onChange:n}){return l.jsx("button",{onClick:()=>n(!e),className:oe("w-9 h-5 rounded-full p-0.5 transition-colors cursor-pointer",e?"bg-accent":"bg-surface-5"),children:l.jsx("div",{className:oe("w-4 h-4 rounded-full bg-white shadow-sm transition-transform",e?"translate-x-4":"translate-x-0")})})}function RA({user:e}){const[n,s]=v.useState(!1),r=(e==null?void 0:e.avatar)||(e==null?void 0:e.picture)||(e==null?void 0:e.photoURL)||(e==null?void 0:e.photo);return r&&!n?l.jsx("img",{src:r,alt:"",className:"w-6 h-6 rounded-full",referrerPolicy:"no-referrer",crossOrigin:"anonymous",onError:()=>s(!0)}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-accent/10 flex items-center justify-center",children:l.jsx(Ov,{size:12,className:"text-accent"})})}function _A({provider:e,onKeyChange:n}){var w,j,P;const[s,r]=v.useState(!1),[o,d]=v.useState(""),[u,f]=v.useState(!1),[h,p]=v.useState(!1),x=W(z=>z.addToast),g=e.authType==="local",b=e.authType==="subscription",y=g||b?e.installed:e.hasKey;async function Q(){if(o.trim())try{await J.post(`/credentials/${e.id}`,{key:o.trim()}),x("success",`API key set for ${e.name}`),d(""),r(!1),n&&n()}catch(z){x("error","Failed to set key",z.message)}}async function k(){try{await J.delete(`/credentials/${e.id}`),x("info",`Removed ${e.name} key`),n&&n()}catch(z){x("error","Remove failed",z.message)}}if(g){const z=((j=(w=e.models)==null?void 0:w.filter(G=>!G.disabled))==null?void 0:j.length)||0,_=()=>W.getState().setActiveView("models");return l.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(Xs,{status:y&&z>0?"running":"crashed",size:"sm"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:e.name}),l.jsx("div",{className:"flex-1"}),y&&z>0?l.jsxs(Pe,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(jt,{size:8})," ",z," models"]}):y?l.jsx(Pe,{variant:"warning",className:"text-2xs",children:"No models pulled"}):l.jsx(Pe,{variant:"default",className:"text-2xs",children:"Not set up"})]}),l.jsx("div",{className:"flex-1",children:h?l.jsxs(l.Fragment,{children:[l.jsx(r2,{isInstalled:y,onModelChange:n}),l.jsxs("div",{className:"px-4 py-2 border-t border-border-subtle flex gap-2",children:[l.jsx(be,{variant:"ghost",size:"sm",onClick:()=>p(!1),className:"flex-1 h-7 text-2xs",children:"Back"}),l.jsx(be,{variant:"secondary",size:"sm",onClick:()=>{p(!1),_()},className:"flex-1 h-7 text-2xs gap-1",children:"Models Tab"})]})]}):l.jsxs("div",{className:"px-4 py-3 flex flex-col h-full",children:[l.jsx("div",{className:"text-xs text-text-3 font-sans flex-1",children:y&&z>0?"Full agentic runtime — tool calling, context rotation, zero cloud cost":y?"Ollama is running. Pull a model to start using local agents.":"Run any open-source model locally — free, private, fully offline. Requires Ollama."}),l.jsxs("div",{className:"flex gap-2 mt-3",children:[y?l.jsxs(be,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(Wl,{size:11})," ",z>0?"Manage":"Pull Models"]}):l.jsxs(be,{variant:"primary",size:"sm",onClick:()=>p(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(Wl,{size:11})," Set Up Ollama"]}),l.jsx(be,{variant:"secondary",size:"sm",onClick:_,className:"flex-1 h-7 text-2xs gap-1.5",children:"Models Tab"})]})]})})]})}return l.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(Xs,{status:y?"running":"crashed",size:"sm"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:e.name}),l.jsx("div",{className:"flex-1"}),y?l.jsxs(Pe,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(jt,{size:8})," Ready"]}):l.jsx(Pe,{variant:"default",className:"text-2xs",children:b?"Not installed":"No key"})]}),l.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[120px]",children:[((P=e.models)==null?void 0:P.length)>0&&l.jsx("div",{className:"flex flex-wrap gap-1 mb-3",children:e.models.map(z=>l.jsx("span",{className:"px-1.5 py-0.5 rounded bg-surface-4 text-2xs font-mono text-text-3",children:z.name||z.id},z.id))}),b&&y&&!e.hasKey&&!s&&l.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-accent/8 border border-accent/20 rounded-md text-2xs font-sans text-accent mb-3",children:[l.jsx(jt,{size:10})," Subscription active"]}),e.hasKey&&!s&&l.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[l.jsxs("div",{className:"flex-1 flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success",children:[l.jsx(jt,{size:10})," API Connected"]}),l.jsx("button",{onClick:()=>{r(!0),f(!1),d("")},className:"text-2xs text-text-4 hover:text-accent cursor-pointer font-sans",children:"Edit"}),l.jsx("button",{onClick:k,className:"text-2xs text-text-4 hover:text-danger cursor-pointer font-sans",children:"Remove"})]}),l.jsx("div",{className:"flex-1"}),s&&l.jsxs("div",{className:"space-y-2.5 pt-1",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:e.hasKey?"Update API Key":`${e.name} API Key`}),l.jsxs("div",{className:"relative",children:[l.jsx("input",{value:o,onChange:z=>d(z.target.value),onKeyDown:z=>z.key==="Enter"&&Q(),type:u?"text":"password",placeholder:"sk-...",className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:()=>f(!u),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:u?l.jsx(ad,{size:12}):l.jsx(Us,{size:12})})]})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(be,{variant:"primary",size:"sm",onClick:Q,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Key"}),l.jsx(be,{variant:"ghost",size:"sm",onClick:()=>{r(!1),d("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&!e.hasKey&&l.jsxs(be,{variant:b?"secondary":"primary",size:"sm",onClick:()=>{r(!0),f(!1),d("")},className:"w-full h-8 text-2xs gap-1.5 mt-2",children:[l.jsx(Rs,{size:11}),b?"Add API key for headless mode":"Add API Key"]})]})]})}function zl({icon:e,label:n,description:s,children:r}){return l.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-1 px-4 py-3.5 flex flex-col gap-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-6 h-6 rounded bg-accent/8 flex items-center justify-center flex-shrink-0",children:l.jsx(e,{size:12,className:"text-accent"})}),l.jsx("div",{className:"text-[13px] font-medium text-text-0 font-sans leading-tight",children:n})]}),l.jsx("div",{className:"text-2xs text-text-4 font-sans leading-relaxed",children:s}),l.jsx("div",{className:"mt-auto pt-1",children:r})]})}const d2={telegram:mh,discord:ji,slack:sv},Ps={telegram:"Telegram",discord:"Discord",slack:"Slack"},XA={telegram:"Bot token from @BotFather",discord:"Bot token from Developer Portal",slack:"Bot token (xoxb-...)"},AA=["critical","lifecycle","all"];function ZA({type:e,open:n,onOpenChange:s}){if(!e)return null;const o={telegram:{title:"Set Up Telegram",icon:mh,intro:"Create a Telegram bot and connect it to Groove in under 2 minutes. No dependencies required.",sections:[{title:"Create Your Bot",steps:[{text:"Open Telegram on any device and search for",link:"https://t.me/BotFather",linkText:"@BotFather"},{text:"Send /newbot to start the setup"},{text:"Choose a display name — we suggest GroovePilot"},{text:'Choose a username (must end in "bot") — e.g. GroovePilot_bot'},{text:"BotFather will reply with your bot token — copy it"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Telegram card"},{text:"Paste your bot token and click Save"},{text:"The gateway will connect automatically"}]},{title:"Link a Chat",steps:[{text:"Open a chat with your new bot in Telegram"},{text:'Send any message (e.g. "hello") — Groove captures the chat ID automatically'},{text:"Click Test in the gateway card to verify"}]},{title:"Commands",note:"All commands use / prefix in Telegram:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},discord:{title:"Set Up Discord",icon:ji,intro:"Create a Discord bot and add it to your server. Requires discord.js (installed automatically with Groove).",sections:[{title:"Create the Application",steps:[{text:"Go to the",link:"https://discord.com/developers/applications",linkText:"Discord Developer Portal"},{text:"Click New Application and name it GroovePilot"},{text:"Go to the Bot tab in the left sidebar"},{text:"Click Reset Token and copy the bot token"}]},{title:"Set Permissions & Invite",steps:[{text:"Go to OAuth2 > URL Generator"},{text:"Under Scopes, check bot"},{text:"Under Bot Permissions, check:"}],scopes:["Send Messages","Read Message History","Embed Links","Use External Emojis"],after:[{text:"Copy the generated URL at the bottom and open it in your browser"},{text:"Select your server and click Authorize"}]},{title:"Enable Message Content Intent",steps:[{text:"Go back to the Bot tab in the Developer Portal"},{text:"Scroll to Privileged Gateway Intents"},{text:"Enable Message Content Intent — required for the bot to read commands"},{text:"Click Save Changes"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Discord card"},{text:"Paste your bot token and click Save"},{text:"Send a message in any channel where the bot is — Groove captures the channel automatically"}]},{title:"Commands",note:"All commands use / prefix in Discord:",commands:["/instruct <team> <msg>","/query <team> <question>","/plan <description>","/log <team>","/brief","/tokens","/status","/agents","/help"]}]},slack:{title:"Set Up Slack",icon:sv,intro:"Create a Slack app with Socket Mode — no public URL needed. Requires @slack/bolt (installed automatically with Groove).",sections:[{title:"Create the App",steps:[{text:"Go to",link:"https://api.slack.com/apps",linkText:"api.slack.com/apps"},{text:"Click Create New App > From scratch"},{text:"Name it GroovePilot and select your workspace"}]},{title:"Enable Socket Mode",steps:[{text:"In the left sidebar, go to Settings > Socket Mode"},{text:"Toggle Enable Socket Mode to on"},{text:"It will ask you to create an App-Level Token"},{text:'Name it "groove", add the connections:write scope'},{text:"Click Generate — copy the xapp-... token (this is your App Token)"}],important:"Save this token now — you can't view it again after closing the dialog."},{title:"Set Bot Token Scopes",steps:[{text:"Go to Features > OAuth & Permissions"},{text:"Scroll to Bot Token Scopes and add all of these:"}],scopes:["chat:write","channels:read","channels:history","groups:read","groups:history","im:history","app_mentions:read"],after:[{text:"Scroll up and click Install to Workspace"},{text:"Click Allow to grant permissions"},{text:"Copy the Bot User OAuth Token (xoxb-...) — this is your Bot Token"}]},{title:"Enable Events",steps:[{text:"Go to Features > Event Subscriptions"},{text:"Toggle Enable Events to on"},{text:"Under Subscribe to bot events, add:"}],scopes:["message.channels","message.im","app_mention"],after:[{text:"Click Save Changes at the bottom"}]},{title:"Connect to Groove",steps:[{text:"In Groove Settings > Gateways, click Set Token on the Slack card"},{text:"Paste your Bot Token (xoxb-...) in the first field"},{text:"Paste your App Token (xapp-...) in the second field"},{text:"Click Save — Groove will auto-connect"}]},{title:"Link a Channel",steps:[{text:"Invite the bot to a channel: /invite @GroovePilot"},{text:"Select the channel from the dropdown in the gateway card"},{text:"Or @mention the bot — it will auto-capture the channel"},{text:"Click Test to verify"}],important:"For private channels, make sure you added the groups:read scope."},{title:"Commands",note:"In Slack, use plain text commands (no / prefix) or @mention the bot:",commands:["instruct <team> <msg>","query <team> <question>","plan <description>","log <team>","brief","tokens","status","agents","help","@GroovePilot status"]}]}}[e];if(!o)return null;const d=o.icon;return l.jsx(o2,{open:n,onOpenChange:s,children:l.jsx(c2,{title:o.title,width:480,children:l.jsxs("div",{className:"px-5 py-4 space-y-5",children:[l.jsxs("div",{className:"flex items-start gap-3 p-3 bg-accent/5 border border-accent/15 rounded-lg",children:[l.jsx("div",{className:"w-8 h-8 rounded-lg bg-accent/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:l.jsx(d,{size:16,className:"text-accent"})}),l.jsx("p",{className:"text-xs text-text-2 font-sans leading-relaxed",children:o.intro})]}),o.sections.map((u,f)=>{var h;return l.jsxs("div",{children:[l.jsxs("h3",{className:"text-xs font-semibold text-text-0 font-sans mb-2.5 flex items-center gap-2",children:[l.jsx("span",{className:"w-5 h-5 rounded-full bg-accent/10 flex items-center justify-center text-2xs font-bold text-accent",children:f+1}),u.title]}),u.note&&l.jsx("p",{className:"text-2xs text-text-3 font-sans mb-2",children:u.note}),u.steps&&l.jsx("ol",{className:"space-y-2 mb-2",children:u.steps.map((p,x)=>l.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[x+1,"."]}),l.jsxs("span",{children:[p.text,p.link&&l.jsxs(l.Fragment,{children:[" ",l.jsxs("a",{href:p.link,target:"_blank",rel:"noopener noreferrer",className:"text-accent hover:underline inline-flex items-center gap-0.5 font-medium",children:[p.linkText,l.jsx(Bl,{size:9})]})]})]})]},x))}),u.scopes&&l.jsx("div",{className:"flex flex-wrap gap-1.5 mb-2 ml-6",children:u.scopes.map(p=>l.jsx("code",{className:"px-2 py-0.5 rounded bg-surface-4 text-2xs font-mono text-accent",children:p},p))}),u.after&&l.jsx("ol",{className:"space-y-2 mb-2",start:(((h=u.steps)==null?void 0:h.length)||0)+1,children:u.after.map((p,x)=>{var g;return l.jsxs("li",{className:"flex gap-2 text-2xs text-text-2 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono w-4 flex-shrink-0 pt-px",children:[(((g=u.steps)==null?void 0:g.length)||0)+x+1,"."]}),l.jsx("span",{children:p.text})]},x)})}),u.important&&l.jsx("div",{className:"ml-6 p-2 bg-warning/8 border border-warning/20 rounded-md text-2xs text-warning font-sans",children:u.important}),u.commands&&l.jsx("div",{className:"ml-6 p-2.5 bg-surface-0 border border-border-subtle rounded-md space-y-1",children:u.commands.map(p=>l.jsx("code",{className:"block text-2xs font-mono text-text-1",children:p},p))})]},f)}),l.jsxs("a",{href:"https://docs.groovedev.ai/guide/gateways",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium mt-2",children:[l.jsx(Bl,{size:10}),"Full documentation at docs.groovedev.ai"]})]})})})}function EA({gateway:e,onRefresh:n}){var D,ie;const[s,r]=v.useState(!1),[o,d]=v.useState(""),[u,f]=v.useState(""),[h,p]=v.useState(!1),[x,g]=v.useState(!1),[b,y]=v.useState(!1),[Q,k]=v.useState([]),[w,j]=v.useState(!1),P=W(V=>V.addToast);v.useEffect(()=>{e.connected&&!e.chatId&&e.type==="slack"&&J.get(`/gateways/${e.id}/channels`).then(V=>k(Array.isArray(V)?V:[])).catch(()=>{})},[e.connected,e.chatId,e.id,e.type]);const z=d2[e.type]||hh,_=e.type==="slack";async function G(){if(o.trim())try{await J.post(`/gateways/${e.id}/credentials`,{key:"bot_token",value:o.trim()}),_&&u.trim()&&await J.post(`/gateways/${e.id}/credentials`,{key:"app_token",value:u.trim()}),P("success","Token saved — connecting..."),d(""),f(""),r(!1);try{await J.post(`/gateways/${e.id}/connect`),P("success",`${Ps[e.type]} connected!`)}catch(V){P("error","Token saved but connect failed",V.message)}n()}catch(V){P("error","Failed to save token",V.message)}}async function Z(){g(!0);try{await J.post(`/gateways/${e.id}/test`),P("success","Test message sent!")}catch(V){P("error","Test failed",V.message)}g(!1)}async function C(){y(!0);try{e.connected?(await J.post(`/gateways/${e.id}/disconnect`),P("info",`${Ps[e.type]} disconnected`)):(await J.post(`/gateways/${e.id}/connect`),P("success",`${Ps[e.type]} connected!`)),n()}catch(V){P("error",e.connected?"Disconnect failed":"Connect failed",V.message)}y(!1)}async function T(V){try{await J.patch(`/gateways/${e.id}`,{enabled:V}),n()}catch(N){P("error","Update failed",N.message)}}async function H(V){try{await J.patch(`/gateways/${e.id}`,{notifications:{preset:V}}),n()}catch(N){P("error","Update failed",N.message)}}async function E(V){try{await J.patch(`/gateways/${e.id}`,{commandPermission:V}),n()}catch(N){P("error","Update failed",N.message)}}async function ee(){try{await J.delete(`/gateways/${e.id}`),P("info",`${Ps[e.type]} gateway removed`),n()}catch(V){P("error","Delete failed",V.message)}}const I=((D=e.notifications)==null?void 0:D.preset)||"critical";return l.jsxs("div",{className:"flex flex-col rounded-lg border border-border-subtle bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(Xs,{status:e.connected?"running":"crashed",size:"sm"}),l.jsx(z,{size:13,className:"text-text-2"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:Ps[e.type]}),l.jsx("div",{className:"flex-1"}),e.connected?l.jsxs(Pe,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(p1,{size:8})," Connected"]}):e.enabled?l.jsx(Pe,{variant:"warning",className:"text-2xs",children:"Disconnected"}):l.jsx(Pe,{variant:"default",className:"text-2xs",children:"Disabled"})]}),l.jsxs("div",{className:"flex-1 flex flex-col px-4 py-3 min-h-[140px]",children:[e.connected&&!s&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"flex items-center gap-1.5 h-8 px-2.5 bg-success/8 border border-success/20 rounded-md text-2xs font-sans text-success mb-3",children:[l.jsx(jt,{size:10})," Gateway active",e.botUsername&&l.jsxs("span",{className:"text-text-4 ml-1",children:["@",e.botUsername]}),e.botTag&&l.jsx("span",{className:"text-text-4 ml-1",children:e.botTag})]}),l.jsxs("div",{className:"mb-3",children:[l.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:e.type==="slack"?"Channel":"Chat ID"}),e.chatId?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("code",{className:"flex-1 flex items-center h-7 px-2 bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2",children:e.type==="slack"&&Q.length>0?`#${((ie=Q.find(V=>V.id===e.chatId))==null?void 0:ie.name)||e.chatId}`:e.chatId}),l.jsx("button",{onClick:async()=>{try{await J.patch(`/gateways/${e.id}`,{chatId:null}),n()}catch(V){P("error","Failed",V.message)}},className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans",children:"Change"})]}):e.type==="slack"&&Q.length>0?l.jsxs("select",{onChange:async V=>{if(V.target.value)try{await J.patch(`/gateways/${e.id}`,{chatId:V.target.value}),n()}catch(N){P("error","Failed to set channel",N.message)}},className:"w-full h-7 px-2 text-2xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",defaultValue:"",children:[l.jsx("option",{value:"",disabled:!0,children:"Select a channel..."}),Q.map(V=>l.jsxs("option",{value:V.id,children:["#",V.name]},V.id))]}):l.jsxs("div",{className:"text-2xs text-warning font-sans",children:[e.type==="slack"?"No channels found — invite the bot to a channel first.":"Send a message to the bot to auto-capture, or enter manually:",l.jsx("input",{placeholder:e.type==="slack"?"C0123456789":"Chat ID",className:"mt-1 w-full h-7 px-2 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",onKeyDown:async V=>{if(V.key==="Enter"&&V.target.value.trim())try{await J.patch(`/gateways/${e.id}`,{chatId:V.target.value.trim()}),n()}catch(N){P("error","Failed to set channel",N.message)}}})]})]}),l.jsxs("div",{className:"mb-3",children:[l.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Notifications"}),l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:AA.map(V=>l.jsx("button",{onClick:()=>H(V),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",I===V?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:V},V))})]}),l.jsxs("div",{className:"mb-3",children:[l.jsx("label",{className:"text-2xs font-semibold text-text-3 font-sans mb-1.5 block",children:"Commands"}),l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["full","read-only"].map(V=>l.jsx("button",{onClick:()=>E(V),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer capitalize",(e.commandPermission||"full")===V?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:V==="full"?"Full Access":"Read Only"},V))})]})]}),!e.connected&&!s&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"text-xs text-text-3 font-sans mb-2",children:e.enabled?e.hasCredentials?"Tokens saved — click Connect.":"Configure bot token to connect.":"Gateway is disabled."}),!e.hasCredentials&&l.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer mb-2",children:[l.jsx(Ll,{size:11}),"How to set up",l.jsx(Bl,{size:9})]})]}),l.jsx(ZA,{type:e.type,open:w,onOpenChange:j}),l.jsx("div",{className:"flex-1"}),s&&l.jsxs("div",{className:"space-y-2.5 pt-1",children:[l.jsxs("button",{onClick:()=>j(!0),className:"flex items-center gap-1.5 text-2xs text-accent hover:text-accent/80 font-sans font-medium cursor-pointer",children:[l.jsx(Ll,{size:11}),"Where do I get these?"]}),l.jsxs("div",{children:[l.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"Bot Token"}),l.jsxs("div",{className:"relative",children:[l.jsx("input",{value:o,onChange:V=>d(V.target.value),onKeyDown:V=>V.key==="Enter"&&!_&&G(),type:h?"text":"password",placeholder:XA[e.type],className:"w-full h-9 px-3 pr-9 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:()=>p(!h),className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:h?l.jsx(ad,{size:12}):l.jsx(Us,{size:12})})]})]}),_&&l.jsxs("div",{children:[l.jsx("label",{className:"text-2xs font-semibold text-text-2 font-sans mb-1.5 block",children:"App Token (Socket Mode)"}),l.jsx("input",{value:u,onChange:V=>f(V.target.value),onKeyDown:V=>V.key==="Enter"&&G(),type:h?"text":"password",placeholder:"xapp-...",className:"w-full h-9 px-3 text-xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(be,{variant:"primary",size:"sm",onClick:G,disabled:!o.trim(),className:"flex-1 h-8 text-xs",children:"Save Token"}),l.jsx(be,{variant:"ghost",size:"sm",onClick:()=>{r(!1),d(""),f("")},className:"h-8 text-xs px-3",children:"Cancel"})]})]}),!s&&l.jsxs("div",{className:"flex gap-2 mt-2",children:[!e.connected&&l.jsxs(be,{variant:"primary",size:"sm",onClick:()=>r(!0),className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(Rs,{size:11}),e.enabled?"Set Token":"Configure"]}),e.connected&&l.jsxs(l.Fragment,{children:[l.jsxs(be,{variant:"secondary",size:"sm",onClick:Z,disabled:x,className:"flex-1 h-7 text-2xs gap-1.5",children:[l.jsx(xh,{size:11}),x?"Sending...":"Test"]}),l.jsx(be,{variant:"secondary",size:"sm",onClick:()=>r(!0),className:"h-7 text-2xs px-2.5",children:l.jsx(Rs,{size:11})})]}),l.jsx(be,{variant:"ghost",size:"sm",onClick:C,disabled:b,className:"h-7 text-2xs px-2.5",title:e.connected?"Disconnect":"Connect",children:e.connected?l.jsx(El,{size:11}):l.jsx(p1,{size:11})}),l.jsx(CA,{value:e.enabled,onChange:T}),l.jsx("button",{onClick:ee,className:"text-text-4 hover:text-danger cursor-pointer p-1",title:"Remove gateway",children:l.jsx(Qn,{size:11})})]})]})]})}function qA({existingTypes:e,onAdd:n}){const[s,r]=v.useState(!1),o=["telegram","discord","slack"].filter(d=>!e.includes(d));return o.length===0?null:s?l.jsxs("div",{className:"flex flex-col rounded-lg border border-accent/30 bg-surface-1 overflow-hidden min-w-[220px]",children:[l.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3 border-b border-border-subtle",children:[l.jsx(hh,{size:13,className:"text-accent"}),l.jsx("span",{className:"text-[13px] font-semibold text-text-0 font-sans",children:"Add Gateway"}),l.jsx("div",{className:"flex-1"}),l.jsx("button",{onClick:()=>r(!1),className:"text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(wt,{size:12})})]}),l.jsx("div",{className:"p-3 space-y-2",children:o.map(d=>{const u=d2[d];return l.jsxs("button",{onClick:()=>{n(d),r(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md bg-surface-0 hover:bg-accent/8 border border-border-subtle hover:border-accent/20 cursor-pointer transition-all group",children:[l.jsx(u,{size:14,className:"text-text-3 group-hover:text-accent"}),l.jsx("span",{className:"text-xs font-medium text-text-1 group-hover:text-accent font-sans",children:Ps[d]})]},d)})})]}):l.jsxs("button",{onClick:()=>r(!0),className:"flex flex-col items-center justify-center rounded-lg border border-dashed border-border-subtle bg-surface-1/50 hover:bg-surface-1 hover:border-accent/30 min-h-[140px] min-w-[220px] cursor-pointer transition-all group",children:[l.jsx("div",{className:"w-8 h-8 rounded-full bg-accent/8 group-hover:bg-accent/15 flex items-center justify-center mb-2 transition-colors",children:l.jsx(ss,{size:14,className:"text-accent"})}),l.jsx("span",{className:"text-2xs font-semibold text-text-3 group-hover:text-text-1 font-sans transition-colors",children:"Add Gateway"})]})}function MA(){const[e,n]=v.useState([]),[s,r]=v.useState(null),[o,d]=v.useState(null),[u,f]=v.useState([]),[h,p]=v.useState(!0),[x,g]=v.useState(!1),b=W(C=>C.addToast),y=W(C=>C.marketplaceUser),Q=W(C=>C.marketplaceAuthenticated),k=W(C=>C.marketplaceLogin),w=W(C=>C.marketplaceLogout);function j(){J.get("/providers").then(C=>n(Array.isArray(C)?C:[])).catch(()=>{})}function P(){J.get("/gateways").then(C=>f(Array.isArray(C)?C:[])).catch(()=>{})}v.useEffect(()=>{Promise.all([J.get("/providers"),J.get("/config"),J.get("/status"),J.get("/gateways")]).then(([C,T,H,E])=>{n(Array.isArray(C)?C:[]),r(T),d(H),f(Array.isArray(E)?E:[]),p(!1)}).catch(()=>p(!1))},[]);async function z(C){try{await J.post("/gateways",{type:C}),b("success",`${Ps[C]} gateway added`),P()}catch(T){b("error","Failed to add gateway",T.message)}}async function _(C,T){try{const H=await J.patch("/config",{[C]:T});r(H)}catch(H){b("error","Update failed",H.message)}}if(h)return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsx("div",{className:"h-12 bg-surface-1 border-b border-border"}),l.jsxs("div",{className:"flex-1 p-4 space-y-4",children:[l.jsx("div",{className:"grid grid-cols-4 gap-3",children:[...Array(4)].map((C,T)=>l.jsx(dn,{className:"h-40 rounded-lg"},T))}),l.jsx("div",{className:"grid grid-cols-3 gap-3",children:[...Array(6)].map((C,T)=>l.jsx(dn,{className:"h-28 rounded-lg"},T))})]})]});const G=e.filter(C=>C.authType==="local"||C.authType==="subscription"?C.installed:C.hasKey).length,Z=(s==null?void 0:s.rotationThreshold)||0;return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border-b border-border flex-shrink-0",children:[l.jsx("h2",{className:"text-sm font-semibold text-text-0 font-sans",children:"Settings"}),l.jsx("div",{className:"flex-1"}),l.jsxs("div",{className:"flex items-center gap-4 text-2xs text-text-3 font-sans",children:[(o==null?void 0:o.version)&&l.jsxs("span",{children:["v",o.version]}),(o==null?void 0:o.port)&&l.jsxs("span",{children:[":",o.port]}),(o==null?void 0:o.uptime)>0&&l.jsxs("span",{children:["Up ",Pi(o.uptime)]})]}),l.jsx("div",{className:"w-px h-4 bg-border-subtle"}),Q?l.jsxs("div",{className:"flex items-center gap-2.5",children:[l.jsx(RA,{user:y}),l.jsx("span",{className:"text-xs font-medium text-text-0 font-sans",children:(y==null?void 0:y.displayName)||"User"}),l.jsxs("button",{onClick:w,className:"text-2xs text-text-4 hover:text-text-1 cursor-pointer font-sans flex items-center gap-1",children:[l.jsx(av,{size:10})," Sign out"]})]}):l.jsxs(be,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-2xs gap-1.5 text-text-3",children:[l.jsx(fh,{size:11})," Sign in"]}),l.jsx(Xs,{status:"running",size:"sm"})]}),l.jsx(pa,{className:"flex-1",children:l.jsxs("div",{className:"p-4 space-y-4",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Providers"}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[G,"/",e.length," connected"]})]}),l.jsx("div",{className:"grid grid-cols-4 gap-3",children:e.map(C=>l.jsx(_A,{provider:C,onKeyChange:j},C.id))})]}),l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Gateways"}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsxs("span",{className:"text-2xs text-text-4 font-sans",children:[u.filter(C=>C.connected).length,"/",u.length," connected"]})]}),l.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.map(C=>l.jsx(EA,{gateway:C,onRefresh:P},C.id)),l.jsx(qA,{existingTypes:u.map(C=>C.type),onAdd:z})]})]}),s&&l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-2.5 px-0.5",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Configuration"}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"Auto-saves"})]}),l.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[l.jsx(zl,{icon:Wl,label:"Default Provider",description:"Provider used when spawning new agents.",children:l.jsx("select",{value:s.defaultProvider||"claude-code",onChange:C=>_("defaultProvider",C.target.value),className:"w-full h-8 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent cursor-pointer",children:e.filter(C=>C.installed||C.hasKey).map(C=>l.jsx("option",{value:C.id,children:C.name},C.id))})}),l.jsx(zl,{icon:di,label:"Working Directory",description:"Default root directory for new agents.",children:l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("code",{className:"flex-1 h-8 px-2 flex items-center bg-surface-0 border border-border-subtle rounded-md text-2xs font-mono text-text-2 truncate min-w-0",children:s.defaultWorkingDir||"Project root"}),l.jsx(be,{variant:"secondary",size:"sm",onClick:()=>g(!0),className:"h-8 px-2 flex-shrink-0",children:l.jsx(Jb,{size:12})})]})}),l.jsx(zl,{icon:tv,label:"Rotation Threshold",description:"Context usage that triggers auto-rotation.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:["auto","50%","65%","75%","85%"].map(C=>{const T=C==="auto"?0:parseInt(C,10)/100,H=Z===T;return l.jsx("button",{onClick:()=>_("rotationThreshold",T),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",H?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:C==="auto"?"Auto":C},C)})})}),l.jsx(zl,{icon:uv,label:"QC Threshold",description:"Running agents count that triggers auto-QC.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[2,3,4,6,8].map(C=>{const T=(s.qcThreshold||2)===C;return l.jsx("button",{onClick:()=>_("qcThreshold",C),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:C},C)})})}),l.jsx(zl,{icon:Ti,label:"Max Agents",description:"Concurrent agent limit. 0 = unlimited.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[0,4,8,12,20].map(C=>{const T=(s.maxAgents||0)===C;return l.jsx("button",{onClick:()=>_("maxAgents",C),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:C===0?"∞":C},C)})})}),l.jsx(zl,{icon:ui,label:"Journalist Interval",description:"Seconds between synthesis cycles.",children:l.jsx("div",{className:"flex bg-surface-0 rounded-md p-0.5 border border-border-subtle",children:[60,120,300,600].map(C=>{const T=(s.journalistInterval||120)===C,H=C<60?`${C}s`:`${C/60}m`;return l.jsx("button",{onClick:()=>_("journalistInterval",C),className:oe("flex-1 px-2 py-1.5 text-2xs font-semibold font-sans rounded transition-all cursor-pointer",T?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:H},C)})})})]})]})]})}),l.jsx(i2,{open:x,onOpenChange:g,currentPath:(s==null?void 0:s.defaultWorkingDir)||"/",onSelect:C=>_("defaultWorkingDir",C)})]})}function Wc(e){return e?e<1024*1024?`${(e/1024).toFixed(0)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`:"—"}function YA(e){return e?e<1024*1024?`${(e/1024).toFixed(0)} KB/s`:`${(e/(1024*1024)).toFixed(1)} MB/s`:""}function UA({hardware:e}){var n;return e?l.jsxs("div",{className:"flex items-center gap-4 px-4 py-2.5 bg-surface-1 border border-border-subtle rounded-lg text-xs font-sans text-text-2",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(sN,{size:14,className:"text-text-3"}),l.jsxs("span",{children:[e.totalRamGb," GB RAM"]})]}),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(Wl,{size:14,className:"text-text-3"}),l.jsxs("span",{children:[e.cores," cores"]})]}),e.gpu&&l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx(uh,{size:14,className:"text-text-3"}),l.jsxs("span",{children:[e.gpu.name,e.gpu.vram?` (${e.gpu.vram} GB)`:""]})]}),((n=e.recommended)==null?void 0:n.code)&&l.jsxs("div",{className:"ml-auto text-accent",children:["Recommended: ",e.recommended.code]})]}):null}function VA({download:e}){const n=Math.round((e.percent||0)*100);return l.jsxs("div",{className:"space-y-1",children:[l.jsxs("div",{className:"flex items-center justify-between text-2xs font-sans text-text-3",children:[l.jsx("span",{children:e.filename}),l.jsxs("span",{children:[n,"% ",YA(e.speed)]})]}),l.jsx("div",{className:"h-1.5 bg-surface-3 rounded-full overflow-hidden",children:l.jsx("div",{className:"h-full bg-accent rounded-full transition-all",style:{width:`${n}%`}})}),l.jsxs("div",{className:"text-2xs text-text-4",children:[Wc(e.downloaded)," / ",Wc(e.totalBytes)]})]})}function GA({model:e,onDelete:n}){const[s,r]=v.useState(!1),o={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"};return l.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg",children:[l.jsx(dh,{size:18,className:"text-accent flex-shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:e.id}),e.quantization&&l.jsx(Pe,{variant:"subtle",className:"text-2xs",children:e.quantization}),e.parameters&&l.jsx(Pe,{variant:"subtle",className:"text-2xs",children:e.parameters}),l.jsx("span",{className:oe("text-2xs font-medium capitalize",o[e.tier]||"text-text-3"),children:e.tier})]}),l.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:[Wc(e.sizeBytes)," · ctx ",(e.contextWindow||0).toLocaleString()," · ",e.category,e.repoId&&l.jsxs("span",{className:"text-text-4",children:[" · ",e.repoId]})]})]}),l.jsx("button",{onClick:async()=>{r(!0),await n(e.id),r(!1)},disabled:s,className:"p-1.5 rounded-md text-text-4 hover:text-red-400 hover:bg-red-400/10 transition-colors",children:s?l.jsx(ht,{size:14,className:"animate-spin"}):l.jsx(Qn,{size:14})})]})}function DA({result:e,onExpand:n,expanded:s}){var r;return l.jsxs("button",{onClick:()=>n(s?null:e.id),className:"w-full text-left px-4 py-3 bg-surface-1 border border-border-subtle rounded-lg hover:border-accent/30 transition-colors cursor-pointer",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate flex-1",children:e.name}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:e.author}),s?l.jsx(Rn,{size:14,className:"text-text-3"}):l.jsx(is,{size:14,className:"text-text-3"})]}),l.jsxs("div",{className:"text-2xs text-text-3 font-sans mt-0.5 flex gap-3",children:[l.jsxs("span",{children:[(r=e.downloads)==null?void 0:r.toLocaleString()," downloads"]}),l.jsxs("span",{children:[e.likes," likes"]})]})]})}function LA({repoId:e,onDownload:n,systemRamGb:s}){const[r,o]=v.useState(null),[d,u]=v.useState(!0),[f,h]=v.useState(null),p=En();v.useEffect(()=>{u(!0),J.get(`/models/${e}/files`).then(g=>o(g.files||[])).catch(()=>p.error("Failed to load model files")).finally(()=>u(!1))},[e]);async function x(g){h(g.filename);try{await J.post("/models/download",{repoId:e,filename:g.filename}),p.success(`Downloading ${g.filename}`),n==null||n(g.filename)}catch(b){p.error(b.message)}h(null)}return d?l.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"Loading quantization variants..."}):r!=null&&r.length?l.jsx("div",{className:"pl-6 pr-4 pb-2 space-y-1.5",children:r.map(g=>{const b=!g.estimatedRamGb||!s||g.estimatedRamGb<=s,y=g.estimatedRamGb&&s&&g.estimatedRamGb>s*.8&&b;return l.jsxs("div",{className:oe("flex items-center gap-2 py-1.5 px-3 rounded-md text-xs font-sans",b?"bg-surface-2":"bg-red-500/5 border border-red-500/15"),children:[l.jsx("span",{className:"font-mono text-text-1 truncate flex-1",children:g.filename}),g.quantization&&l.jsx(Pe,{variant:"subtle",className:"text-2xs",children:g.quantization}),l.jsx("span",{className:"text-text-2 text-2xs w-16 text-right",children:Wc(g.size)}),g.estimatedRamGb&&l.jsxs("span",{className:oe("text-2xs w-20 text-right font-medium",b?y?"text-yellow-400":"text-green-400":"text-red-400"),children:["~",g.estimatedRamGb," GB RAM"]}),!b&&l.jsx("span",{className:"text-2xs text-red-400 font-medium",children:"too large"}),l.jsx("button",{onClick:()=>x(g),disabled:f===g.filename||!b,className:oe("p-1 rounded transition-colors",b?"text-accent hover:bg-accent/10":"text-text-4 cursor-not-allowed","disabled:opacity-40"),children:f===g.filename?l.jsx(ht,{size:13,className:"animate-spin"}):l.jsx(Qi,{size:13})})]},g.filename)})}):l.jsx("div",{className:"py-3 px-4 text-2xs text-text-4 font-sans",children:"No GGUF files found in this repo."})}function WA({model:e,systemRamGb:n,onPull:s,pulling:r,isInstalled:o}){const d={light:"text-green-400",medium:"text-blue-400",heavy:"text-orange-400"},u={code:"{}",general:"AI"},f=n?Math.round((1-e.ramGb/n)*100):null;return l.jsxs("div",{className:oe("flex items-center gap-3 px-4 py-3 border rounded-lg transition-colors",o?"bg-success/5 border-success/20":"bg-surface-1 border-border-subtle hover:border-accent/20"),children:[l.jsx("div",{className:"w-9 h-9 rounded-lg bg-surface-3 flex items-center justify-center text-xs font-mono text-text-2 flex-shrink-0",children:u[e.category]||"AI"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-sm font-mono font-bold text-text-0 truncate",children:e.name}),l.jsx("span",{className:oe("text-2xs font-semibold capitalize",d[e.tier]),children:e.tier}),o&&l.jsxs(Pe,{variant:"success",className:"text-2xs gap-1",children:[l.jsx(jt,{size:8})," Installed"]})]}),l.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:e.description}),l.jsxs("div",{className:"flex items-center gap-3 mt-1 text-2xs font-sans",children:[l.jsxs("span",{className:"text-text-2",children:[e.sizeGb," GB download"]}),l.jsxs("span",{className:"text-green-400 font-medium",children:[e.ramGb," GB RAM"]}),f!==null&&l.jsxs("span",{className:"text-text-4",children:[f,"% headroom"]})]})]}),o?l.jsx("span",{className:"text-xs text-success font-sans font-medium px-3 py-1.5",children:"Ready"}):l.jsxs("button",{onClick:()=>s(e.id),disabled:r===e.id,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-sans font-medium bg-accent/10 text-accent hover:bg-accent/20 transition-colors cursor-pointer disabled:opacity-40",children:[r===e.id?l.jsx(ht,{size:12,className:"animate-spin"}):l.jsx(Qi,{size:12}),"Pull"]})]})}function BA(){const[e,n]=v.useState("recommended"),[s,r]=v.useState(""),[o,d]=v.useState([]),[u,f]=v.useState(!1),[h,p]=v.useState([]),[x,g]=v.useState([]),[b,y]=v.useState([]),[Q,k]=v.useState(null),[w,j]=v.useState(null),[P,z]=v.useState(null),[_,G]=v.useState([]),Z=En(),C=v.useCallback(()=>{J.get("/models/installed").then(I=>{p(I.models||[])}).catch(()=>{})},[]),T=v.useCallback(()=>{J.get("/providers/ollama/models").then(I=>{G((I.installed||[]).map(D=>D.id))}).catch(()=>{})},[]);v.useEffect(()=>{J.get("/providers/ollama/hardware").then(k).catch(()=>{}),J.get("/models/recommended").then(I=>{g(I.models||[]),!Q&&I.hardware&&k(I.hardware)}).catch(()=>{}),C(),T()},[C,T]);async function H(I){z(I);try{await J.post("/providers/ollama/pull",{model:I}),Z.success(`${I} ready to use`),C(),T(),G(D=>[...D,I])}catch(D){Z.error(`Pull failed: ${D.message}`)}z(null)}v.useEffect(()=>{const I=W.subscribe((ie,V)=>{}),D=setInterval(()=>{J.get("/models/downloads").then(y).catch(()=>{})},2e3);return()=>{I(),clearInterval(D)}},[]),v.useEffect(()=>{function I(ie){try{const V=JSON.parse(ie.data);V.type==="model:download:progress"&&y(N=>{const M=N.findIndex(K=>K.filename===V.data.filename);if(M>=0){const K=[...N];return K[M]=V.data,K}return[...N,V.data]}),V.type==="model:download:complete"&&(y(N=>N.filter(M=>M.filename!==V.data.filename)),C(),Z.success(`${V.data.filename} downloaded`)),V.type==="model:download:error"&&(y(N=>N.filter(M=>M.filename!==V.data.filename)),Z.error(`Download failed: ${V.data.error}`))}catch{}}const D=W.getState()._ws;return D&&D.addEventListener("message",I),()=>{D&&D.removeEventListener("message",I)}},[C,Z]);async function E(){if(s.trim()){f(!0),n("search");try{const I=await J.get(`/models/search?q=${encodeURIComponent(s.trim())}`);d(I)}catch(I){Z.error(I.message)}f(!1)}}async function ee(I){try{await J.delete(`/models/${I}`),p(D=>D.filter(ie=>ie.id!==I)),Z.success("Model deleted")}catch(D){Z.error(D.message)}}return l.jsxs("div",{className:"h-full flex flex-col bg-surface-0",children:[l.jsxs("div",{className:"flex-shrink-0 px-5 pt-4 pb-3 border-b border-border space-y-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("h1",{className:"text-base font-bold font-sans text-text-0",children:"Local Models"}),l.jsxs(Pe,{variant:"subtle",className:"text-2xs",children:[h.length," installed"]})]}),l.jsx(UA,{hardware:Q}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(_n,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:s,onChange:I=>r(I.target.value),onKeyDown:I=>I.key==="Enter"&&E(),placeholder:"Search HuggingFace for GGUF models...",className:"w-full h-8 pl-9 pr-3 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsx(be,{onClick:E,disabled:u,size:"sm",variant:"accent",children:u?l.jsx(ht,{size:14,className:"animate-spin"}):"Search"})]}),l.jsx("div",{className:"flex gap-1",children:[{id:"recommended",label:`Recommended (${x.length})`},{id:"installed",label:`Installed (${h.length})`},{id:"search",label:`Search (${o.length})`}].map(I=>l.jsx("button",{onClick:()=>n(I.id),className:oe("px-3 py-1 rounded-md text-xs font-sans font-medium transition-colors cursor-pointer",e===I.id?"bg-accent/12 text-accent":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:I.label},I.id))})]}),b.length>0&&l.jsxs("div",{className:"px-5 py-3 border-b border-border space-y-2",children:[l.jsx("div",{className:"text-xs font-sans font-semibold text-text-2",children:"Downloading"}),b.map(I=>l.jsx(VA,{download:I},I.filename))]}),l.jsx(pa,{className:"flex-1",children:l.jsxs("div",{className:"px-5 py-4 space-y-2",children:[e==="recommended"&&l.jsx(l.Fragment,{children:x.length===0?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(Wl,{size:40,className:"mx-auto text-text-4 mb-3"}),l.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Detecting hardware..."}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Make sure Ollama is installed so we can check your system."})]}):l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"text-xs text-text-3 font-sans mb-2",children:["Top models for your system (",(Q==null?void 0:Q.totalRamGb)||"?"," GB RAM). Click Pull to download via Ollama."]}),x.map(I=>{const D=I.id.split(":")[0],ie=_.some(V=>V===I.id||V.startsWith(D+":")||V===D);return l.jsx(WA,{model:I,systemRamGb:Q==null?void 0:Q.totalRamGb,onPull:H,pulling:P,isInstalled:ie},I.id)})]})}),e==="installed"&&l.jsx(l.Fragment,{children:h.length===0?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(dh,{size:40,className:"mx-auto text-text-4 mb-3"}),l.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"No local models yet"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Search HuggingFace to download GGUF models, or pull models via Ollama."})]}):h.map(I=>l.jsx(GA,{model:I,onDelete:ee},I.id))}),e==="search"&&l.jsx(l.Fragment,{children:u?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(ht,{size:24,className:"mx-auto text-accent animate-spin mb-3"}),l.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Searching HuggingFace..."})]}):o.length===0?l.jsxs("div",{className:"text-center py-12",children:[l.jsx(_n,{size:40,className:"mx-auto text-text-4 mb-3"}),l.jsx("p",{className:"text-sm text-text-2 font-sans font-medium",children:"Search for GGUF models"}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:'Try "qwen coder", "deepseek", "codestral", "llama"'})]}):o.map(I=>l.jsxs("div",{className:"space-y-1",children:[l.jsx(DA,{result:I,expanded:w===I.id,onExpand:j}),w===I.id&&l.jsx(LA,{repoId:I.id,onDownload:()=>C(),systemRamGb:Q==null?void 0:Q.totalRamGb})]},I.id))})]})})]})}const A0=["Reading through the codebase...","Thinking through your request...","Planning the approach...","Running tool calls...","Working through the problem...","Reasoning step by step...","Reviewing context...","Considering options...","Analyzing the code...","Making progress..."];function HA({agent:e,className:n}){const[s,r]=v.useState(0),[o,d]=v.useState(!0);return v.useEffect(()=>{const u=setInterval(()=>{d(!1),setTimeout(()=>{r(f=>(f+1)%A0.length),d(!0)},250)},2800);return()=>clearInterval(u)},[]),l.jsxs("div",{className:`${n||""}`,children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(e==null?void 0:e.name)||"Agent"}),l.jsx("span",{className:"text-2xs text-accent font-mono",children:"thinking"})]}),l.jsxs("div",{className:"border-l border-accent/40 pl-3.5 py-1 flex items-center gap-2.5",children:[l.jsx("div",{className:"relative w-3.5 h-3.5 flex-shrink-0",children:l.jsx("span",{className:"absolute inset-0 rounded-full border border-transparent border-t-accent animate-spin",style:{animationDuration:"0.9s"}})}),l.jsx("span",{className:"text-[12px] font-sans text-text-3 transition-opacity duration-[250ms]",style:{opacity:o?1:0},children:A0[s]})]})]})}const DO=[];function u2(e){const n=(e||"").toLowerCase();return n.includes("reading")||n.includes("read ")?{icon:Us,color:"text-info",label:"Reading"}:n.includes("editing")||n.includes("wrote")||n.includes("writing")||n.includes("edit ")?{icon:Kb,color:"text-warning",label:"Editing"}:n.includes("searching")||n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:_n,color:"text-purple",label:"Searching"}:n.includes("running")||n.includes("bash")||n.includes("command")||n.includes("exec")?{icon:ki,color:"text-orange",label:"Running"}:n.includes("test")||n.includes("pass")?{icon:TO,color:"text-success",label:"Testing"}:n.includes("error")||n.includes("fail")||n.includes("crash")?{icon:ha,color:"text-danger",label:"Error"}:n.includes("rotat")?{icon:wi,color:"text-accent",label:"Rotating"}:n.includes("spawn")||n.includes("start")?{icon:An,color:"text-success",label:"Spawned"}:n.includes("tool")||n.includes("function")?{icon:cP,color:"text-text-2",label:"Tool"}:n.includes("complet")||n.includes("done")||n.includes("finish")?{icon:TO,color:"text-success",label:"Done"}:{icon:os,color:"text-text-3",label:"Activity"}}function Rl({text:e}){return e?e.split(/(\*\*[^*]+\*\*|`[^`]+`)/g).map((n,s)=>n.startsWith("**")&&n.endsWith("**")?l.jsx("strong",{className:"font-semibold text-text-0",children:n.slice(2,-2)},s):n.startsWith("`")&&n.endsWith("`")?l.jsx("code",{className:"px-1 py-px rounded bg-accent/8 text-[11px] font-mono text-accent",children:n.slice(1,-1)},s):l.jsx("span",{children:n},s)):null}function IA({text:e}){if(!e)return null;const n=[],s=e.split(`
|
|
648
|
-
`);let r=0;for(;r<s.length;){const o=s[r];if(o.trimStart().startsWith("```")){const u=[],f=o.trim().slice(3);for(r++;r<s.length&&!s[r].trimStart().startsWith("```");)u.push(s[r]),r++;r++,n.push({type:"code",content:u.join(`
|
|
649
|
-
`),lang:f});continue}if(/^#{1,3}\s/.test(o)||/^\*\*[^*]+:\*\*\s*$/.test(o.trim())){const u=o.replace(/^#+\s*/,"").replace(/^\*\*/,"").replace(/:\*\*\s*$/,":").trim();n.push({type:"heading",content:u}),r++;continue}if(/^\s*[-*]\s/.test(o)){const u=[];for(;r<s.length&&/^\s*[-*]\s/.test(s[r]);)u.push(s[r].replace(/^\s*[-*]\s+/,"").trim()),r++;n.push({type:"list",items:u});continue}if(/^\s*\d+[\.)]\s/.test(o)){const u=[];for(;r<s.length&&/^\s*\d+[\.)]\s/.test(s[r]);)u.push(s[r].replace(/^\s*\d+[\.)]\s+/,"").trim()),r++;n.push({type:"numbered",items:u});continue}if(!o.trim()){r++;continue}if(/^(Note|Warning|Important|IMPORTANT|TODO):/i.test(o.trim())){n.push({type:"note",content:o.trim()}),r++;continue}const d=[];for(;r<s.length&&s[r].trim()&&!/^#{1,3}\s/.test(s[r])&&!/^\s*[-*]\s/.test(s[r])&&!/^\s*\d+[\.)]\s/.test(s[r])&&!s[r].trimStart().startsWith("```");)d.push(s[r].trim()),r++;d.length>0&&n.push({type:"para",content:d.join(" ")})}return l.jsx("div",{className:"space-y-2",children:n.map((o,d)=>{switch(o.type){case"heading":return l.jsxs("div",{className:"flex items-center gap-1.5 pt-1.5 first:pt-0",children:[l.jsx("div",{className:"w-1 h-3.5 rounded-full bg-accent/40 flex-shrink-0"}),l.jsx("span",{className:"text-[12px] font-semibold text-text-0 font-sans",children:l.jsx(Rl,{text:o.content})})]},d);case"list":return l.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((u,f)=>l.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[l.jsx("span",{className:"text-accent/50 mt-0.5 flex-shrink-0",children:"-"}),l.jsx("span",{className:"min-w-0",children:l.jsx(Rl,{text:u})})]},f))},d);case"numbered":return l.jsx("div",{className:"space-y-1 pl-2",children:o.items.map((u,f)=>l.jsxs("div",{className:"flex gap-2 text-[12px] text-text-0 font-sans leading-relaxed",children:[l.jsxs("span",{className:"text-text-4 font-mono w-4 text-right flex-shrink-0",children:[f+1,"."]}),l.jsx("span",{className:"min-w-0",children:l.jsx(Rl,{text:u})})]},f))},d);case"code":return l.jsx("pre",{className:"p-2.5 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06] leading-relaxed",children:o.content},d);case"note":return l.jsxs("div",{className:"flex items-start gap-1.5 px-2.5 py-1.5 rounded-md bg-warning/6 border border-warning/12",children:[l.jsx(ha,{size:10,className:"text-warning mt-0.5 flex-shrink-0"}),l.jsx("span",{className:"text-[11px] text-warning/80 font-sans",children:l.jsx(Rl,{text:o.content})})]},d);case"para":default:return l.jsx("p",{className:"text-[12px] text-text-0 font-sans leading-relaxed",children:l.jsx(Rl,{text:o.content})},d)}})})}function FA({text:e}){if(!e)return null;const n=e.split(/(```[\s\S]*?```)/g);return l.jsx("span",{children:n.map((s,r)=>{if(s.startsWith("```")&&s.endsWith("```")){const o=s.slice(3,-3).replace(/^\w+\n/,"");return l.jsx("pre",{className:"my-1.5 p-2 rounded-md bg-[#0d1117] text-[11px] font-mono text-[#c9d1d9] overflow-x-auto whitespace-pre-wrap border border-white/[0.06]",children:o},r)}return l.jsx("span",{children:l.jsx(Rl,{text:s})},r)})})}function KA({msg:e}){const n=e.isQuery;return l.jsx("div",{className:"flex justify-end pl-8",children:l.jsxs("div",{className:"max-w-[90%]",children:[n&&l.jsxs("div",{className:"flex items-center justify-end gap-1 mb-1",children:[l.jsx(Ll,{size:9,className:"text-info"}),l.jsx("span",{className:"text-2xs text-info font-sans font-medium",children:"Query"})]}),l.jsx("div",{className:oe("px-3.5 py-2.5 rounded-lg border","bg-info/10 border-info/25"),children:l.jsx("div",{className:"text-[12px] font-sans whitespace-pre-wrap break-words leading-relaxed text-text-0",children:l.jsx(FA,{text:e.text})})}),l.jsx("div",{className:"text-[10px] text-text-4 font-sans mt-1 text-right",children:kt(e.timestamp)})]})})}function JA({msg:e,agent:n}){var d,u;const[s,r]=v.useState(((d=e.text)==null?void 0:d.length)>600),o=((u=e.text)==null?void 0:u.length)>600;return l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-1 font-sans",children:(n==null?void 0:n.name)||"Agent"}),l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:n==null?void 0:n.role}),l.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:kt(e.timestamp)})]}),l.jsx("div",{className:"border-l border-accent pl-3.5 py-1",children:l.jsx(IA,{text:s?e.text.slice(0,600)+"...":e.text})}),s&&l.jsxs("button",{onClick:()=>r(!1),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[l.jsx(Rn,{size:11}),"Show full response"]}),o&&!s&&l.jsxs("button",{onClick:()=>r(!0),className:"ml-3.5 mt-1.5 flex items-center gap-1.5 text-[11px] text-accent/70 hover:text-accent font-sans font-medium cursor-pointer transition-colors",children:[l.jsx(Rn,{size:11,className:"rotate-180"}),"Collapse"]})]})}function eZ({msg:e}){return l.jsxs("div",{className:"flex items-center gap-3 py-2",children:[l.jsx("div",{className:"flex-1 h-px bg-border-subtle"}),l.jsx("span",{className:"text-[10px] text-text-4 font-sans flex-shrink-0 uppercase tracking-wide",children:e.text}),l.jsx("div",{className:"flex-1 h-px bg-border-subtle"})]})}function tZ({entries:e,isLive:n}){var u;const[s,r]=v.useState(0);if(v.useEffect(()=>{if(!n||e.length<=1)return;const f=setInterval(()=>r(h=>(h+1)%e.length),1500);return()=>clearInterval(f)},[e.length,n]),!n){const f=e[e.length-1],p=u2(f.text).icon;return l.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 text-[10px] text-text-4 font-mono",children:[l.jsx(p,{size:10,className:"opacity-50"}),l.jsxs("span",{children:[e.length," tool call",e.length!==1?"s":""]})]})}const o=e[Math.min(s,e.length-1)],d=((u=o.text)==null?void 0:u.length)>60?o.text.slice(0,60)+"...":o.text;return l.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-2 max-w-[280px] rounded-md bg-surface-3/50 border border-border-subtle/30",children:[l.jsx(ht,{size:11,className:"text-accent animate-spin flex-shrink-0"}),l.jsx("span",{className:"text-[11px] text-text-2 font-mono truncate transition-opacity duration-300",children:d}),e.length>1&&l.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:e.length})]})}function nZ({agent:e}){const n=W(h=>h.activityLog[e.id])||DO,s=n[n.length-1],r=s?u2(s.text):null,o=(r==null?void 0:r.icon)||os,d=s&&Date.now()-s.timestamp<1e4,u=d&&s.text?s.text.length>60?s.text.slice(0,60)+"...":s.text:null,f=Math.round((e.contextUsage||0)*100);return l.jsxs("div",{className:"flex items-center gap-3 px-4 h-8 border-b border-border-subtle bg-surface-1/80 flex-shrink-0",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[l.jsxs("div",{className:"relative flex items-center justify-center w-4 h-4",children:[l.jsx("span",{className:"absolute inset-0 rounded-full bg-accent/15 animate-ping",style:{animationDuration:"2s"}}),l.jsx("span",{className:"relative w-1.5 h-1.5 rounded-full bg-accent"})]}),d?l.jsxs(l.Fragment,{children:[l.jsx(o,{size:10,className:oe(r.color,"flex-shrink-0")}),l.jsx("span",{className:"text-[11px] text-text-2 font-sans truncate",children:u})]}):l.jsx("span",{className:"text-[11px] text-text-3 font-sans",children:"Working..."})]}),l.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[l.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:aZ(e.tokensUsed)}),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("div",{className:"w-14 h-1 rounded-full bg-surface-4 overflow-hidden",children:l.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:`${f}%`,background:f>=75?"var(--color-danger)":f>=50?"var(--color-warning)":"var(--color-accent)"}})}),l.jsxs("span",{className:"text-[10px] text-text-4 font-mono w-7 text-right",children:[f,"%"]})]})]})]})}function aZ(e){return e?e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e):"0"}function sZ({agent:e}){const[n,s]=v.useState([]),r=[{text:`Initializing ${e.name}`,delay:0},{text:`Role: ${e.role}`,delay:400},{text:`Provider: ${e.provider||"claude-code"}`,delay:700},{text:"Loading workspace context",delay:1e3},{text:"Scanning project structure",delay:1400},{text:"Session active",delay:1900}];return v.useEffect(()=>{const o=r.map((d,u)=>setTimeout(()=>s(f=>[...f,u]),d.delay));return()=>o.forEach(clearTimeout)},[]),l.jsxs("div",{className:"flex flex-col px-4 pt-6",children:[l.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[l.jsxs("div",{className:"relative w-9 h-9",children:[l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-accent/20 animate-ping",style:{animationDuration:"2s"}}),l.jsx("span",{className:"absolute inset-0 rounded-full border-2 border-transparent border-t-accent animate-spin",style:{animationDuration:"1s"}}),l.jsx("span",{className:"absolute inset-[5px] rounded-full bg-accent/8"})]}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-bold text-text-0 font-sans",children:e.name}),l.jsx("p",{className:"text-2xs text-accent font-mono",children:"starting up"})]})]}),l.jsx("div",{className:"space-y-2 pl-3 border-l border-accent/15",children:r.map((o,d)=>{const u=n.includes(d),f=d===r.length-1;return l.jsxs("div",{className:oe("flex items-center gap-2.5 transition-all duration-300",u?"opacity-100 translate-x-0":"opacity-0 -translate-x-2"),children:[l.jsx("span",{className:oe("w-1 h-1 rounded-full flex-shrink-0",f&&u?"bg-accent":u?"bg-text-3":"bg-transparent")}),l.jsx("span",{className:oe("text-[11px] font-mono",f&&u?"text-accent":"text-text-3"),children:o.text}),f&&u&&l.jsxs("span",{className:"flex gap-0.5 ml-1",children:[l.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"0ms"}}),l.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"200ms"}}),l.jsx("span",{className:"w-1 h-1 rounded-full bg-accent animate-pulse",style:{animationDelay:"400ms"}})]})]},d)})})]})}function lZ({agent:e}){const n=W(E=>E.chatHistory[e.id])||DO,s=W(E=>E.activityLog[e.id])||DO,r=W(E=>E.instructAgent),o=W(E=>E.queryAgent),d=W(E=>{var ee;return(ee=E.thinkingAgents)==null?void 0:ee.has(e.id)}),u=W(E=>E.chatInputs[e.id]||""),f=E=>W.setState(ee=>({chatInputs:{...ee.chatInputs,[e.id]:E}})),h=u,p=f,[x,g]=v.useState("instruct"),[b,y]=v.useState(!1),[Q,k]=v.useState(36),w=v.useRef(null),j=v.useRef(null),P=v.useRef(null),z=v.useRef(null),_=v.useCallback(E=>{E.preventDefault();const ee=E.clientY,I=Q,D=V=>k(Math.min(Math.max(36,I-(V.clientY-ee)),280)),ie=()=>{window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",ie)};window.addEventListener("mousemove",D),window.addEventListener("mouseup",ie)},[Q]),G=v.useMemo(()=>{var N;const E=[],ee=new Set;for(const M of n){const K=`${M.from}:${(N=M.text)==null?void 0:N.slice(0,100)}`;E.find(ae=>{var Qe;return ae.kind==="chat"&&`${ae.from}:${(Qe=ae.text)==null?void 0:Qe.slice(0,100)}`===K&&Math.abs(ae.ts-M.timestamp)<5e3})||(E.push({...M,kind:"chat",ts:M.timestamp}),ee.add(M.text))}const I=ee,D=s.slice(-30);for(const M of D)(M.text||"").trim()&&!I.has(M.text)&&E.push({...M,kind:"activity",ts:M.timestamp});E.sort((M,K)=>M.ts-K.ts);const ie=[];let V=[];for(const M of E)M.kind==="activity"?V.push(M):(V.length>0&&(ie.push({kind:"activity-group",entries:V}),V=[]),ie.push(M));return V.length>0&&ie.push({kind:"activity-group",entries:V}),ie},[n,s]);v.useEffect(()=>{j.current&&requestAnimationFrame(()=>{j.current&&(j.current.scrollTop=j.current.scrollHeight)})},[G.length]);async function Z(E){var ie;const ee=Array.from(E.target.files||[]);if(ee.length===0)return;const I=W.getState().addToast,D=[];for(const V of ee)try{const N=await new Promise((M,K)=>{const de=new FileReader;de.onload=()=>M(de.result.split(",")[1]),de.onerror=K,de.readAsDataURL(V)});await J.post(`/agents/${e.id}/upload`,{filename:V.name,content:N}),D.push(V.name)}catch(N){I("error",`Upload failed: ${V.name}`,N.message)}if(D.length>0){const V=D.join(", ");p(N=>(N?N+`
|
|
650
|
-
`:"")+`[Uploaded: ${V}] — I've uploaded these files to your working directory. Read them and use their content.`),I("success",`Uploaded ${D.length} file${D.length>1?"s":""}`)}E.target.value="",(ie=P.current)==null||ie.focus()}async function C(){var ee;const E=h.trim();if(!(!E||b)){if(E==="/rotate"){const I=W.getState().rotateAgent;p("");try{await I(e.id)}catch{}return}p(""),y(!0);try{x==="query"?await o(e.id,E):await r(e.id,E)}catch{}y(!1),(ee=P.current)==null||ee.focus()}}function T(E){E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),C())}const H=e.status==="running"||e.status==="starting";return l.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[H&&l.jsx(nZ,{agent:e}),l.jsxs("div",{ref:j,className:"flex-1 overflow-y-auto px-4 py-4 space-y-4",children:[!G.some(E=>E.from==="agent"||E.kind==="activity-group")&&(H?l.jsx(sZ,{agent:e}):l.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-8",children:[l.jsx("div",{className:"w-10 h-10 rounded-xl bg-surface-3 flex items-center justify-center mb-3",children:l.jsx(ji,{size:18,className:"text-text-4"})}),l.jsx("p",{className:"text-sm font-semibold text-text-0 font-sans",children:e.name}),l.jsx("p",{className:"text-xs text-text-3 font-sans mt-1",children:"Session complete — send a message to continue"})]})),G.map((E,ee)=>{if(E.kind==="activity-group"){const I=!G.slice(ee+1).some(D=>D.kind==="activity-group"||D.from==="agent");return l.jsx("div",{children:l.jsx(tZ,{entries:E.entries,isLive:H&&I})},`grp-${ee}`)}return E.from==="user"?l.jsx(KA,{msg:E},`msg-${ee}`):E.from==="system"?l.jsx(eZ,{msg:E},`msg-${ee}`):l.jsx(JA,{msg:E,agent:e},`msg-${ee}`)}),l.jsx(LO,{children:(b||d)&&l.jsx(WO.div,{initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-4},transition:{duration:.25,ease:"easeOut"},children:l.jsx(HA,{agent:e})},"thinking")})]}),l.jsxs("div",{className:"bg-surface-1/50 flex-shrink-0",children:[l.jsx("div",{ref:w,onMouseDown:_,className:"flex items-center justify-center h-5 cursor-row-resize border-t border-border hover:bg-surface-3/50 transition-colors group",children:l.jsx(XT,{size:12,className:"text-text-4 group-hover:text-text-2 transition-colors"})}),l.jsxs("div",{className:"px-4 pb-3",children:[l.jsxs("div",{className:"flex items-center gap-1 mb-2",children:[l.jsxs("button",{onClick:()=>g("instruct"),className:oe("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",x==="instruct"?"bg-accent/12 text-accent border border-accent/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[l.jsx(sd,{size:10}),"Instruct"]}),l.jsxs("button",{onClick:()=>g("query"),className:oe("flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[11px] font-sans font-medium transition-colors cursor-pointer",x==="query"?"bg-info/12 text-info border border-info/20":"text-text-3 hover:text-text-1 hover:bg-surface-3"),children:[l.jsx(Ll,{size:10}),"Query"]}),l.jsx("span",{className:"text-[10px] text-text-4 font-sans ml-auto",children:x==="query"?"Read-only — agent keeps working":H?"Directs the agent":"Continues the session"})]}),l.jsxs("div",{className:oe("flex items-end gap-1 rounded-xl border bg-surface-0 p-1 transition-colors",x==="query"?"border-info/20 focus-within:border-info/40":"border-border-subtle focus-within:border-accent/30"),children:[l.jsx("input",{ref:z,type:"file",multiple:!0,accept:".pdf,.png,.jpg,.jpeg,.gif,.svg,.csv,.txt,.md,.json,.yaml,.yml,.docx,.pptx,.xlsx",onChange:Z,className:"hidden"}),l.jsx("button",{onClick:()=>{var E;return(E=z.current)==null?void 0:E.click()},className:"w-9 h-9 flex items-center justify-center rounded-lg text-text-4 hover:text-text-1 hover:bg-surface-3 transition-colors cursor-pointer flex-shrink-0 mb-px",title:"Attach file",children:l.jsx(pN,{size:14})}),l.jsx("textarea",{ref:P,value:h,onChange:E=>p(E.target.value),onKeyDown:T,placeholder:x==="query"?"Ask about this agent's work...":H?"Send an instruction...":"Continue this session...",rows:1,className:oe("flex-1 resize-none px-3 py-2 text-[13px]","bg-transparent text-text-0 font-sans","placeholder:text-text-4","focus:outline-none"),style:{height:Q}}),d?l.jsx("button",{onClick:()=>W.getState().stopAgent(e.id),title:"Stop agent",className:"w-9 h-9 flex items-center justify-center rounded-lg border border-danger/30 bg-danger/12 text-danger hover:bg-danger/20 transition-all cursor-pointer flex-shrink-0 mb-px",children:l.jsx(BN,{size:13,fill:"currentColor"})}):l.jsx("button",{onClick:C,disabled:!h.trim()||b,className:oe("w-9 h-9 flex items-center justify-center rounded-lg transition-all cursor-pointer flex-shrink-0 mb-px","disabled:opacity-15 disabled:cursor-not-allowed",h.trim()?x==="query"?"bg-info text-white hover:bg-info/85":"bg-accent text-white hover:bg-accent/85":"bg-transparent text-text-4"),children:b?l.jsx(ht,{size:15,className:"animate-spin"}):l.jsx(mh,{size:15})})]})]})]})]})}function hc({options:e,value:n,onChange:s}){return l.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:e.map(r=>l.jsx("button",{onClick:()=>s(r.value),className:oe("flex-1 px-3 py-1.5 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",n===r.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:r.label},r.value))})}function cn({label:e,icon:n,children:s,description:r}){return l.jsxs("div",{className:"space-y-2",children:[l.jsxs("div",{children:[l.jsxs("label",{className:"flex items-center gap-1.5 text-xs font-semibold text-text-1 font-sans",children:[n&&l.jsx(n,{size:13,className:"text-text-3"}),e]}),r&&l.jsx("p",{className:"text-2xs text-text-4 font-sans mt-0.5",children:r})]}),s]})}function rZ({agent:e}){const n=W(Q=>Q.killAgent),s=W(Q=>Q.rotateAgent),r=W(Q=>Q.spawnAgent),o=W(Q=>Q.closeDetail),d=W(Q=>Q.addToast),[u,f]=v.useState(null),[h,p]=v.useState(!1),x=e.status==="running"||e.status==="starting";async function g(){f("rotate");try{await s(e.id)}catch{}f(null)}async function b(){if(!h){p(!0),setTimeout(()=>p(!1),3e3);return}f("kill");try{await n(e.id),o()}catch{}f(null),p(!1)}async function y(){f("clone");try{await r({role:e.role,provider:e.provider,model:e.model,name:`${e.name}-clone`,scope:e.scope,workingDir:e.workingDir}),d("success",`Cloned ${e.name}`)}catch{}f(null)}return x?l.jsx("div",{className:"space-y-2",children:l.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[l.jsxs(be,{variant:"primary",size:"md",onClick:g,disabled:u==="rotate",className:"gap-1.5",children:[l.jsx(wi,{size:12,className:u==="rotate"?"animate-spin":""}),"Rotate"]}),l.jsxs(be,{variant:"info",size:"md",onClick:y,disabled:!!u,className:"gap-1.5",children:[l.jsx(Rc,{size:12})," Clone"]}),l.jsxs(be,{variant:"danger",size:"md",onClick:b,disabled:u==="kill",className:"gap-1.5",children:[l.jsx(ph,{size:12}),h?"Confirm":"Kill"]})]})}):l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsxs(be,{variant:"info",size:"md",onClick:y,disabled:!!u,className:"gap-1.5",children:[l.jsx(Rc,{size:12})," Clone"]}),l.jsxs(be,{variant:"danger",size:"md",onClick:b,disabled:u==="kill",className:"gap-1.5",children:[l.jsx(Qn,{size:12}),h?"Confirm":"Remove"]})]})}function iZ({agent:e}){var ye,Ae;const n=W(B=>B.addToast),[s,r]=v.useState([]),[o,d]=v.useState(e.model||""),[u,f]=v.useState(""),[h,p]=v.useState(e.effort||"default"),[x,g]=v.useState(!1),[b,y]=v.useState(""),[Q,k]=v.useState(null),[w,j]=v.useState(!1),[P,z]=v.useState(null),[_,G]=v.useState(e.routingMode||"auto"),[Z,C]=v.useState([]),[T,H]=v.useState("hr"),[E,ee]=v.useState("1"),[I,D]=v.useState(!1),ie=e.status==="running"||e.status==="starting";v.useEffect(()=>{V(),J.get("/skills/installed").then(je=>C(Array.isArray(je)?je:je.skills||[])).catch(()=>{});function B(){V()}return window.addEventListener("groove:providers-changed",B),()=>window.removeEventListener("groove:providers-changed",B)},[]);function V(){J.get("/providers").then(B=>r(Array.isArray(B)?B:[])).catch(()=>{})}v.useEffect(()=>{d(e.model||""),J.get(`/agents/${e.id}/routing/recommend`).then(B=>{G((B==null?void 0:B.mode)||"fixed")}).catch(()=>{})},[e.id,e.model]);const N=s.find(B=>B.id===e.provider);async function M(B,je){d(je);try{const te={model:je};B&&B!==e.provider&&(te.provider=B),await J.patch(`/agents/${e.id}`,te),n("success",`Model → ${je}${te.provider?` (${B})`:""}`)}catch(te){n("error","Model swap failed",te.message)}}async function K(B){try{await J.patch(`/agents/${e.id}`,{workingDir:B}),n("success",`Working dir → ${B.split("/").pop()||B}`)}catch(je){n("error","Update failed",je.message)}}async function de(B){p(B);try{await J.patch(`/agents/${e.id}`,{effort:B}),n("success",`Effort → ${B}`)}catch(je){n("error","Update failed",je.message)}}async function ae(B){if(!B.trim())return;const je=[...e.scope||[],B.trim()];try{await J.patch(`/agents/${e.id}`,{scope:je}),f("")}catch(te){n("error","Scope update failed",te.message)}}async function Qe(B){const je=(e.scope||[]).filter((te,Oe)=>Oe!==B);try{await J.patch(`/agents/${e.id}`,{scope:je})}catch(te){n("error","Scope update failed",te.message)}}async function ve(B){if(b.trim())try{await J.post(`/credentials/${B}`,{key:b.trim()}),n("success",`API key set for ${B}`),y(""),k(null),V(),window.dispatchEvent(new CustomEvent("groove:providers-changed"))}catch(je){n("error","Failed to set key",je.message)}}const ue=e.spawnedAt||e.createdAt;return l.jsxs("div",{className:"px-5 py-5 space-y-6 overflow-y-auto h-full",children:[l.jsx(cn,{label:"Active Model",icon:Wl,children:l.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-sm font-bold font-mono text-text-0",children:e.model||"auto"}),l.jsx("div",{className:"text-2xs text-text-3 font-sans mt-0.5",children:(N==null?void 0:N.name)||e.provider})]}),(N==null?void 0:N.canHotSwap)&&ie&&l.jsxs(Pe,{variant:"accent",className:"text-2xs gap-1",children:[l.jsx(An,{size:8})," Hot-swap"]})]}),((ye=N==null?void 0:N.models)==null?void 0:ye.length)>1&&l.jsx("div",{className:"flex flex-wrap gap-1.5 mt-3 pt-3 border-t border-border-subtle",children:N.models.filter(B=>!B.disabled).map(B=>{const je=B.id===e.model;return l.jsx("button",{onClick:()=>M(e.provider,B.id),disabled:!1,className:oe("px-2.5 py-1 rounded-md text-xs font-mono transition-all","cursor-pointer",je?"bg-accent/15 text-accent font-semibold":"bg-surface-4 text-text-2 hover:bg-surface-5 hover:text-text-0"),children:B.name||B.id},B.id)})})]})}),l.jsx(rZ,{agent:e}),l.jsxs(cn,{label:"Providers",icon:m1,description:"Click a provider to see its models and connection status.",children:[l.jsx("div",{className:"space-y-1.5",children:s.map(B=>{const je=B.id===e.provider,te=B.installed||B.hasKey,Oe=P===B.id,Re=B.models||[];return l.jsxs("div",{className:"rounded-lg border border-border-subtle bg-surface-0 overflow-hidden",children:[l.jsxs("button",{onClick:()=>z(Oe?null:B.id),className:"w-full flex items-center gap-2.5 px-3 py-2 cursor-pointer hover:bg-surface-4/50 transition-colors",children:[l.jsx("div",{className:oe("w-2 h-2 rounded-full flex-shrink-0",te?"bg-success":"bg-text-4")}),l.jsx("span",{className:oe("text-xs font-semibold font-sans flex-1 text-left",te?"text-text-0":"text-text-3"),children:B.name||B.id}),je&&l.jsx(Pe,{variant:"accent",className:"text-2xs",children:"Active"}),!te&&l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:B.authType==="local"?"Not installed":"No key"}),l.jsx(Rn,{size:12,className:oe("text-text-4 transition-transform",Oe&&"rotate-180")})]}),Oe&&B.authType==="local"&&l.jsx("div",{className:"border-t border-border-subtle",children:l.jsx(r2,{isInstalled:te,onModelChange:V})}),Oe&&B.authType!=="local"&&l.jsxs("div",{className:"border-t border-border-subtle",children:[(!te||B.hasKey)&&l.jsx("div",{className:"px-3 py-2 bg-surface-1/50",children:Q===B.id?l.jsxs("div",{className:"flex gap-1.5",children:[l.jsxs("div",{className:"flex-1 relative",children:[l.jsx("input",{value:b,onChange:$e=>y($e.target.value),onKeyDown:$e=>$e.key==="Enter"&&ve(B.id),type:w?"text":"password",placeholder:`${B.name||B.id} API key...`,className:"w-full h-7 px-2.5 pr-7 text-2xs bg-surface-0 border border-border rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent",autoFocus:!0}),l.jsx("button",{onClick:()=>j(!w),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-4 hover:text-text-2 cursor-pointer",children:w?l.jsx(ad,{size:10}):l.jsx(Us,{size:10})})]}),l.jsx(be,{variant:"primary",size:"sm",onClick:()=>ve(B.id),disabled:!b.trim(),className:"h-7 px-2 text-2xs",children:"Save"}),l.jsx(be,{variant:"ghost",size:"sm",onClick:()=>{k(null),y("")},className:"h-7 px-2 text-2xs",children:"Cancel"})]}):l.jsxs("button",{onClick:()=>{k(B.id),y(""),j(!1)},className:"flex items-center gap-1.5 text-2xs text-text-3 hover:text-accent font-sans cursor-pointer transition-colors",children:[l.jsx(Rs,{size:10}),te?"Update API key":"Add API key to enable"]})}),te&&Re.filter($e=>!$e.disabled).length>0&&Re.filter($e=>!$e.disabled).map($e=>{const at=B.id===e.provider&&$e.id===e.model;return l.jsxs("button",{onClick:()=>M(B.id,$e.id),disabled:!1,className:oe("w-full flex items-center gap-2 px-3 py-2 text-left text-xs font-sans transition-colors","border-t border-border-subtle","cursor-pointer hover:bg-surface-4/50",at?"text-accent":"text-text-2"),children:[at?l.jsx(jt,{size:11,className:"text-accent flex-shrink-0"}):l.jsx("div",{className:"w-[11px]"}),l.jsx("span",{className:"font-mono flex-1 truncate",children:$e.name||$e.id}),l.jsx(Pe,{variant:at?"accent":"default",className:"text-2xs",children:$e.tier})]},$e.id)})]})]},B.id)})}),ie&&l.jsxs("div",{className:"flex items-center gap-1.5 text-2xs text-text-3 font-sans mt-1.5",children:[l.jsx(ha,{size:10}),l.jsx("span",{children:"Model changes apply on next rotation or respawn."})]})]}),l.jsx(cn,{label:"Working Directory",icon:di,description:"The root directory this agent operates in.",children:l.jsxs("div",{className:"flex gap-2",children:[l.jsx("div",{className:"flex-1 bg-surface-0 rounded-lg px-3 py-2.5 text-sm font-mono text-text-1 border border-border-subtle truncate min-w-0",children:e.workingDir||"Project root"}),l.jsxs(be,{variant:"secondary",size:"md",onClick:()=>g(!0),className:"gap-1.5 flex-shrink-0",children:[l.jsx(Jb,{size:14})," Browse"]})]})}),l.jsx(cn,{label:"Permission Mode",icon:_s,description:"Full Send = no approvals. Agent Approve = Fullstack Manager reviews risky operations.",children:l.jsx(hc,{options:[{value:"full",label:"Full Send"},{value:"auto",label:"Agent Approve"}],value:e.permission||"full",onChange:async B=>{try{await J.patch(`/agents/${e.id}`,{permission:B}),n("success",`Permission → ${B==="full"?"Full Send":"Agent Approve"}`)}catch(je){n("error","Update failed",je.message)}}})}),((Ae=e.integrations)==null?void 0:Ae.length)>0&&l.jsx(cn,{label:"Integration Approvals",icon:El,description:"Manual = you approve dangerous actions. Auto = agent acts freely.",children:l.jsx(hc,{options:[{value:"manual",label:"Manual"},{value:"auto",label:"Auto"}],value:e.integrationApproval||"manual",onChange:async B=>{try{await J.patch(`/agents/${e.id}`,{integrationApproval:B}),n("success",`Integration approvals → ${B==="auto"?"Auto":"Manual"}`)}catch(je){n("error","Update failed",je.message)}}})}),l.jsxs(cn,{label:"Model Routing",icon:ci,description:"How Groove selects models for this agent's tasks.",children:[l.jsx(hc,{options:[{value:"fixed",label:"Fixed"},{value:"auto",label:"Auto"},{value:"auto-floor",label:"Auto + Floor"}],value:_,onChange:async B=>{G(B);try{await J.post(`/agents/${e.id}/routing`,{mode:B}),n("success",`Routing → ${B}`)}catch(je){n("error","Update failed",je.message)}}}),l.jsxs("div",{className:"text-2xs text-text-4 font-sans mt-1",children:[_==="fixed"&&"Uses the selected model for all tasks.",_==="auto"&&"Groove picks Opus/Sonnet/Haiku based on task complexity.",_==="auto-floor"&&"Auto-routes but never drops below Sonnet."]})]}),l.jsx(cn,{label:"File Scope",icon:_s,description:"Restrict which files this agent can access. Empty = unrestricted.",children:l.jsxs("div",{className:"flex flex-wrap gap-2",children:[(e.scope||[]).map((B,je)=>l.jsxs(Pe,{variant:"default",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[B,l.jsx("button",{onClick:()=>Qe(je),className:"hover:text-danger cursor-pointer",children:l.jsx(wt,{size:10})})]},je)),l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("input",{value:u,onChange:B=>f(B.target.value),onKeyDown:B=>B.key==="Enter"&&ae(u),placeholder:"e.g. src/**",className:"w-28 h-7 px-2.5 text-xs bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono placeholder:text-text-4 focus:outline-none focus:ring-1 focus:ring-accent"}),l.jsx("button",{onClick:()=>ae(u),disabled:!u.trim(),className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:l.jsx(ss,{size:12})})]})]})}),l.jsx(cn,{label:"Effort Level",icon:tv,description:"Controls how deep the agent reasons. Higher = more tokens but better results.",children:l.jsx(hc,{options:[{value:"min",label:"Min"},{value:"low",label:"Low"},{value:"default",label:"Default"},{value:"high",label:"High"},{value:"max",label:"Max"}],value:h,onChange:de})}),l.jsx(cn,{label:"Agent Details",icon:m1,children:l.jsxs("div",{className:"bg-surface-0 rounded-lg border border-border-subtle divide-y divide-border-subtle",children:[l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"ID"}),l.jsx("span",{className:"text-xs text-text-1 font-mono",children:e.id})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Role"}),l.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:e.role})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Provider"}),l.jsx("span",{className:"text-xs text-text-1 font-mono",children:e.provider})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Model"}),l.jsx("span",{className:"text-xs text-text-1 font-mono",children:e.model||"auto"})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Status"}),l.jsx("span",{className:"text-xs text-text-1 font-sans capitalize",children:e.status})]}),l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Spawned"}),l.jsx("span",{className:"text-xs text-text-1 font-sans",children:ue?kt(ue):"—"})]}),e.sessionId&&l.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[l.jsx("span",{className:"text-xs text-text-3 font-sans",children:"Session"}),l.jsxs("span",{className:"text-xs text-text-1 font-mono",children:[e.sessionId.slice(0,16),"..."]})]})]})}),l.jsx(cn,{label:"Skills",icon:_l,description:"Attach installed skills to this agent's context.",children:l.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[(e.skills||[]).map(B=>l.jsxs(Pe,{variant:"accent",className:"font-mono text-xs gap-1.5 px-2.5 py-1",children:[B,l.jsx("button",{onClick:async()=>{try{await J.delete(`/agents/${e.id}/skills/${B}`),n("success",`Detached ${B}`)}catch(je){n("error","Detach failed",je.message)}},className:"hover:text-danger cursor-pointer",children:l.jsx(wt,{size:10})})]},B)),Z.filter(B=>!(e.skills||[]).includes(B.id)).length>0&&l.jsxs("div",{className:"relative group",children:[l.jsx("button",{className:"w-7 h-7 flex items-center justify-center rounded-md bg-surface-4 border border-border-subtle text-text-3 hover:text-accent cursor-pointer transition-colors",children:l.jsx(ss,{size:12})}),l.jsx("div",{className:"absolute top-full left-0 mt-1 z-20 hidden group-hover:block bg-surface-2 border border-border-subtle rounded-lg shadow-xl py-1 min-w-[160px]",children:Z.filter(B=>!(e.skills||[]).includes(B.id)).map(B=>l.jsx("button",{onClick:async()=>{try{await J.post(`/agents/${e.id}/skills/${B.id}`),n("success",`Attached ${B.name||B.id}`)}catch(je){n("error","Attach failed",je.message)}},className:"w-full text-left px-3 py-1.5 text-xs font-sans text-text-1 hover:bg-surface-4 cursor-pointer transition-colors",children:B.name||B.id},B.id))})]}),(e.skills||[]).length===0&&Z.length===0&&l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"No skills installed — browse the Marketplace"})]})}),l.jsx(cn,{label:"Schedule",icon:Cc,description:"Run this agent on a recurring schedule.",children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("span",{className:"text-xs text-text-2 font-sans",children:"Every"}),l.jsx("input",{value:E,onChange:B=>ee(B.target.value.replace(/\D/g,"").slice(0,3)),className:"w-12 h-7 px-2 text-xs text-center bg-surface-0 border border-border-subtle rounded-md text-text-0 font-mono focus:outline-none focus:ring-1 focus:ring-accent",placeholder:"1"}),l.jsx("div",{className:"flex bg-surface-0 rounded-lg p-0.5 border border-border-subtle",children:[{value:"min",label:"Min"},{value:"hr",label:"Hr"},{value:"day",label:"Day"},{value:"wk",label:"Wk"},{value:"mo",label:"Mo"}].map(B=>l.jsx("button",{onClick:()=>H(B.value),className:oe("px-2 py-1 text-2xs font-semibold font-sans rounded-md transition-all cursor-pointer",T===B.value?"bg-accent/15 text-accent shadow-sm":"text-text-3 hover:text-text-1"),children:B.label},B.value))}),l.jsxs(be,{variant:"primary",size:"sm",disabled:I||!E||parseInt(E,10)<1,onClick:async()=>{const B=parseInt(E,10);if(!B||B<1)return;const je={min:B===1?"* * * * *":`*/${B} * * * *`,hr:B===1?"0 * * * *":`0 */${B} * * *`,day:B===1?"0 0 * * *":`0 0 */${B} * *`,wk:`0 0 * * ${B===1?"1":"*"}`,mo:`0 0 ${B===1?"1":B} * *`};D(!0);try{await J.post("/schedules",{name:`${e.name} schedule`,cron:je[T],agentConfig:{role:e.role,provider:e.provider,model:e.model,scope:e.scope,workingDir:e.workingDir,prompt:e.prompt}}),n("success",`Scheduled every ${B} ${T}`)}catch(te){n("error","Schedule failed",te.message)}D(!1)},className:"h-7 px-3 text-2xs gap-1",children:[l.jsx(Cc,{size:10}),I?"...":"Set"]})]})}),e.prompt&&l.jsx(cn,{label:"Original Prompt",icon:ci,children:l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3 py-3 text-xs text-text-2 font-sans leading-relaxed max-h-40 overflow-y-auto",children:e.prompt})}),l.jsx(i2,{open:x,onOpenChange:g,currentPath:e.workingDir||"/",onSelect:K})]})}const Z0=[];function oZ({data:e,isAlive:n,height:s=48}){const r=v.useRef(null);return v.useEffect(()=>{const o=r.current;if(!o||!e.length)return;const d=o.getContext("2d"),u=window.devicePixelRatio||1,f=o.clientWidth,h=o.clientHeight;o.width=f*u,o.height=h*u,d.scale(u,u),d.clearRect(0,0,f,h);const p=e.map(Q=>Q.v),x=Math.min(...p),b=Math.max(...p,1)-x||1;d.beginPath(),d.moveTo(0,h),e.forEach((Q,k)=>{const w=k/(e.length-1)*f,j=h-(Q.v-x)/b*(h-4)-2;d.lineTo(w,j)}),d.lineTo(f,h),d.closePath();const y=d.createLinearGradient(0,0,0,h);if(y.addColorStop(0,n?"rgba(51,175,188,0.15)":"rgba(110,118,129,0.08)"),y.addColorStop(1,"rgba(0,0,0,0)"),d.fillStyle=y,d.fill(),d.beginPath(),d.strokeStyle=n?fe.accent:fe.text3,d.lineWidth=1.5,e.forEach((Q,k)=>{const w=k/(e.length-1)*f,j=h-(Q.v-x)/b*(h-4)-2;k===0?d.moveTo(w,j):d.lineTo(w,j)}),d.stroke(),e.length>1&&n){const Q=e[e.length-1],k=f-1,w=h-(Q.v-x)/b*(h-4)-2;d.beginPath(),d.arc(k,w,5,0,Math.PI*2),d.fillStyle="rgba(51,175,188,0.3)",d.fill(),d.beginPath(),d.arc(k,w,2.5,0,Math.PI*2),d.fillStyle=fe.accent,d.fill()}},[e,n]),l.jsx("div",{className:"w-full rounded-lg bg-surface-0 overflow-hidden border border-border-subtle",style:{height:s},children:l.jsx("canvas",{ref:r,className:"w-full h-full"})})}function mc({icon:e,label:n,value:s,color:r,sub:o}){return l.jsxs("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 border border-border-subtle",children:[l.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[l.jsx(e,{size:12,className:r||"text-text-3"}),l.jsx("span",{className:"text-2xs text-text-4 font-sans uppercase tracking-wider",children:n})]}),l.jsx("div",{className:oe("text-lg font-bold font-mono tabular-nums",r||"text-text-0"),children:s}),o&&l.jsx("div",{className:"text-2xs text-text-4 font-sans mt-0.5",children:o})]})}function cZ({score:e}){const n=Math.min(Math.max(e,0),100);let s=fe.success,r="Healthy";return n<40?(s=fe.danger,r="Degraded"):n<70&&(s=fe.warning,r="Fair"),l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[l.jsxs("span",{className:"text-2xs text-text-3 font-sans flex items-center gap-1.5",children:[l.jsx(MT,{size:11}),"Session Health"]}),l.jsxs("span",{className:"text-xs font-bold font-mono",style:{color:s},children:[n,"/100"]})]}),l.jsx("div",{className:"h-2 bg-surface-0 rounded-full overflow-hidden border border-border-subtle",children:l.jsx("div",{className:"h-full rounded-full transition-all duration-700",style:{width:`${n}%`,background:s}})}),l.jsx("span",{className:"text-2xs font-sans mt-1 block",style:{color:s},children:r})]})}function dZ(e){const n=(e||"").toLowerCase();return n.includes("edit")||n.includes("writ")?{icon:Kb,color:"text-warning"}:n.includes("read")||n.includes("view")?{icon:Us,color:"text-info"}:n.includes("search")||n.includes("grep")||n.includes("glob")?{icon:_n,color:"text-purple"}:n.includes("bash")||n.includes("command")||n.includes("terminal")?{icon:ki,color:"text-orange"}:n.includes("error")||n.includes("fail")?{icon:ha,color:"text-danger"}:n.includes("spawn")||n.includes("start")?{icon:An,color:"text-success"}:n.includes("complet")||n.includes("done")?{icon:TO,color:"text-success"}:{icon:NO,color:"text-text-4"}}function uZ({agent:e}){const n=W(u=>u.tokenTimeline[e.id])||Z0,s=W(u=>u.activityLog[e.id])||Z0,r=e.status==="running"||e.status==="starting",o=v.useMemo(()=>{if(n.length<2)return 0;const u=n.slice(-10),f=(u[u.length-1].t-u[0].t)/6e4,h=u[u.length-1].v-u[0].v;return f>0?Math.round(h/f):0},[n]),d=v.useMemo(()=>{const u=e.contextUsage||0;let f=100;return u>90?f-=50:u>70?f-=25:u>50&&(f-=10),o>5e3?f-=15:o>3e3&&(f-=8),e.status==="crashed"&&(f=10),e.status==="completed"&&(f=95),Math.max(0,Math.min(100,f))},[e.contextUsage,e.status,o]);return l.jsxs("div",{className:"px-5 py-5 space-y-5 overflow-y-auto h-full",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider",children:"Token Burn"}),r&&l.jsx("span",{className:"text-2xs text-accent font-mono animate-pulse",children:"LIVE"})]}),l.jsx(oZ,{data:n,isAlive:r,height:56})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[l.jsx(mc,{icon:kT,label:"Burn Rate",value:o>0?`${et(o)}/m`:"—",color:o>5e3?"text-danger":o>2e3?"text-warning":"text-text-0"}),l.jsx(mc,{icon:OT,label:"Cost",value:nr(e.costUsd||0),color:"text-text-0"}),l.jsx(mc,{icon:wi,label:"Rotations",value:e.rotations||"0",color:"text-text-0"}),l.jsx(mc,{icon:An,label:"Turns",value:e.turns||"0",color:"text-text-0"})]}),l.jsx(cZ,{score:d}),e.prompt&&l.jsxs("div",{children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-1.5",children:"Task"}),l.jsx("div",{className:"bg-surface-0 rounded-lg px-3 py-2.5 text-xs text-text-2 font-sans leading-relaxed max-h-28 overflow-y-auto border border-border-subtle",children:e.prompt})]}),s.length>0&&l.jsxs("div",{children:[l.jsx("span",{className:"text-2xs font-semibold text-text-3 font-sans uppercase tracking-wider block mb-2",children:"Activity"}),l.jsxs("div",{className:"space-y-0 relative",children:[l.jsx("div",{className:"absolute left-[9px] top-2 bottom-2 w-px bg-border-subtle"}),s.slice(-12).reverse().map((u,f)=>{const h=dZ(u.text),p=h.icon;return l.jsxs("div",{className:"flex items-start gap-3 py-1.5 relative",children:[l.jsx("div",{className:oe("w-[18px] h-[18px] rounded-full flex items-center justify-center flex-shrink-0 z-10","bg-surface-1 border border-border-subtle"),children:l.jsx(p,{size:9,className:h.color})}),l.jsx("span",{className:"text-2xs text-text-2 font-sans flex-1 line-clamp-1 pt-0.5",children:u.text}),l.jsx("span",{className:"text-2xs text-text-4 font-mono flex-shrink-0 pt-0.5",children:kt(u.timestamp)})]},f)})]})]})]})}function fZ({agent:e}){const n=W(P=>P.addToast),[s,r]=v.useState([]),[o,d]=v.useState(""),[u,f]=v.useState(null),[h,p]=v.useState(""),[x,g]=v.useState(""),[b,y]=v.useState(!1);async function Q(){try{const P=await J.get(`/agents/${e.id}/mdfiles`);r(P.files||[]),d(P.workingDir||"")}catch{}}v.useEffect(()=>{Q()},[e.id]);async function k(P){try{const z=await J.get(`/agents/${e.id}/mdfiles/read?path=${encodeURIComponent(P)}`);p(z.content||""),g(z.content||""),f(P)}catch(z){n("error","Failed to read file",z.message)}}async function w(){if(u){y(!0);try{await J.put(`/agents/${e.id}/mdfiles/write`,{path:u,content:h}),g(h),n("success",`Saved ${u}`)}catch(P){n("error","Save failed",P.message)}y(!1)}}const j=h!==x;return u?l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-border-subtle",children:[l.jsx("button",{onClick:()=>{f(null),p(""),g("")},className:"p-1 text-text-3 hover:text-text-0 cursor-pointer",children:l.jsx(Ib,{size:14})}),l.jsx(Ka,{size:12,className:"text-accent"}),l.jsx("span",{className:"text-xs text-text-0 font-sans font-medium flex-1 truncate",children:u}),j&&l.jsx("span",{className:"text-[10px] text-warning font-sans",children:"unsaved"}),l.jsxs("button",{onClick:w,disabled:!j||b,className:oe("flex items-center gap-1 px-2.5 py-1 rounded text-2xs font-sans font-medium cursor-pointer transition-colors",j?"bg-accent/15 text-accent hover:bg-accent/25":"text-text-4 opacity-50 cursor-not-allowed"),children:[l.jsx(XN,{size:10}),b?"Saving...":"Save"]})]}),l.jsx("textarea",{value:h,onChange:P=>p(P.target.value),className:"flex-1 w-full px-4 py-3 bg-surface-0 text-[12px] font-mono text-text-1 leading-relaxed resize-none focus:outline-none",spellCheck:!1})]}):l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex items-center gap-2 px-4 py-2.5 border-b border-border-subtle",children:[l.jsx(Ka,{size:12,className:"text-text-3"}),l.jsx("span",{className:"text-2xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:"Markdown Files"}),l.jsx("button",{onClick:Q,className:"p-1 text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(un,{size:11})})]}),o&&l.jsx("div",{className:"px-4 py-1.5 text-[10px] text-text-4 font-mono truncate border-b border-border-subtle/50",children:o}),l.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center px-4",children:[l.jsx(Ka,{size:20,className:"text-text-4 mb-2"}),l.jsx("p",{className:"text-xs text-text-3 font-sans",children:"No markdown files found"}),l.jsx("p",{className:"text-[10px] text-text-4 font-sans mt-1",children:"MD files in the agent's working directory will appear here"})]}):l.jsx("div",{className:"py-1",children:s.map(P=>l.jsxs("button",{onClick:()=>k(P.path),className:"w-full flex items-center gap-2.5 px-4 py-2 text-left hover:bg-surface-5 transition-colors cursor-pointer",children:[l.jsx(Ka,{size:13,className:"text-accent flex-shrink-0"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("span",{className:"text-xs text-text-0 font-sans block truncate",children:P.name}),l.jsx("span",{className:"text-[10px] text-text-4 font-mono",children:P.path})]}),l.jsx("span",{className:"text-[10px] text-text-4 font-mono flex-shrink-0",children:P.size>1024?`${(P.size/1024).toFixed(1)}K`:`${P.size}B`})]},P.path))})})]})}const OZ={running:"success",starting:"warning",stopped:"default",crashed:"danger",completed:"accent",killed:"default",rotating:"purple"},hZ={running:"Running",starting:"Starting",stopped:"Stopped",crashed:"Crashed",completed:"Done",killed:"Killed",rotating:"Rotating"},mZ=[{id:"command",label:"Chat",icon:ji},{id:"config",label:"Config",icon:dv},{id:"telemetry",label:"Monitor",icon:ci},{id:"mdfiles",label:"Files",icon:Ka}];function pZ({agent:e}){const n=W(h=>h.addToast),[s,r]=v.useState(!1),[o,d]=v.useState(e.name),u=v.useRef(null);async function f(){const h=o.trim();if(!h||h===e.name){r(!1);return}try{await J.patch(`/agents/${e.id}`,{name:h.replace(/\s+/g,"-")}),n("success",`Renamed → ${h}`)}catch(p){n("error","Rename failed",p.message),d(e.name)}r(!1)}return s?l.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[l.jsx("input",{ref:u,value:o,onChange:h=>d(h.target.value),onKeyDown:h=>{h.key==="Enter"&&f(),h.key==="Escape"&&(d(e.name),r(!1))},className:"flex-1 min-w-0 h-6 px-1.5 text-sm font-bold bg-surface-0 border border-accent/30 rounded text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent/40",autoFocus:!0}),l.jsx("button",{onClick:f,className:"p-0.5 text-accent hover:text-accent/80 cursor-pointer",children:l.jsx(jt,{size:12})}),l.jsx("button",{onClick:()=>{d(e.name),r(!1)},className:"p-0.5 text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(wt,{size:12})})]}):l.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 group",children:[l.jsx("h2",{className:"text-sm font-bold text-text-0 font-sans truncate",children:e.name}),l.jsx("button",{onClick:()=>{d(e.name),r(!0)},className:"p-0.5 text-text-4 opacity-0 group-hover:opacity-100 hover:text-text-1 cursor-pointer transition-opacity",children:l.jsx(sd,{size:10})})]})}function xZ(){const e=W(p=>p.detailPanel),n=W(p=>p.agents),[s,r]=v.useState("command");if((e==null?void 0:e.type)!=="agent")return null;const o=n.find(p=>p.id===e.agentId);if(!o)return null;const d=o.status==="running"||o.status==="starting",u=Math.round((o.contextUsage||0)*100),f=o.spawnedAt||o.createdAt,h=f?Math.floor((Date.now()-new Date(f).getTime())/1e3):0;return Ni(o.role),l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"flex-shrink-0",children:[l.jsxs("div",{className:"pl-4 pr-10 pt-3 pb-2",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(pZ,{agent:o}),l.jsx(Pe,{variant:OZ[o.status]||"default",dot:d?"pulse":void 0,className:"text-2xs flex-shrink-0",children:hZ[o.status]||o.status})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-1 text-2xs text-text-3 font-mono",children:[l.jsx("span",{className:"capitalize",children:o.role}),l.jsx("span",{className:"text-text-4",children:"·"}),l.jsxs("span",{children:[o.provider,":",o.model||"auto"]}),l.jsx("span",{className:"text-text-4",children:"·"}),l.jsxs("span",{children:[et(o.tokensUsed||0)," tok"]}),u>0&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"text-text-4",children:"·"}),l.jsxs("span",{className:oe(u>80?"text-danger":u>60?"text-warning":"text-text-3"),children:[u,"% ctx"]})]}),l.jsx("span",{className:"text-text-4",children:"·"}),l.jsx("span",{children:Pi(h)})]})]}),l.jsx("div",{className:"flex items-center px-4 border-b border-border-subtle",children:mZ.map(p=>{const x=p.icon,g=s===p.id;return l.jsxs("button",{onClick:()=>r(p.id),className:oe("flex items-center gap-1.5 px-3 py-2 text-2xs font-semibold font-sans transition-all cursor-pointer select-none border-b-2 -mb-px",g?"border-accent text-text-0":"border-transparent text-text-3 hover:text-text-1"),children:[l.jsx(x,{size:11}),p.label]},p.id)})})]}),l.jsxs("div",{className:"flex-1 min-h-0 flex flex-col overflow-hidden",children:[s==="command"&&l.jsx(lZ,{agent:o}),s==="config"&&l.jsx(iZ,{agent:o}),s==="telemetry"&&l.jsx(uZ,{agent:o}),s==="mdfiles"&&l.jsx(fZ,{agent:o})]})]})}const E0={"google-workspace":"https://cdn.simpleicons.org/google/white",github:"https://cdn.simpleicons.org/github/white",stripe:"https://cdn.simpleicons.org/stripe/635BFF",gmail:"https://cdn.simpleicons.org/gmail/EA4335","google-calendar":"https://cdn.simpleicons.org/googlecalendar/4285F4","google-drive":"https://cdn.simpleicons.org/googledrive/4285F4","google-docs":"https://cdn.simpleicons.org/googledocs/4285F4","google-sheets":"https://cdn.simpleicons.org/googlesheets/34A853","google-slides":"https://cdn.simpleicons.org/googleslides/FBBC04","google-maps":"https://cdn.simpleicons.org/googlemaps/4285F4",postgres:"https://cdn.simpleicons.org/postgresql/4169E1",notion:"https://cdn.simpleicons.org/notion/white",linear:"https://cdn.simpleicons.org/linear/5E6AD2","brave-search":"https://cdn.simpleicons.org/brave/FB542B","home-assistant":"https://cdn.simpleicons.org/homeassistant/18BCF2"},gZ=[{id:"planner",label:"Planner",desc:"Plans the team and tasks",icon:ov,tier:"Heavy"},{id:"backend",label:"Backend",desc:"APIs, services, databases",icon:cv,tier:"Medium"},{id:"frontend",label:"Frontend",desc:"UI, components, styling",icon:Oh,tier:"Medium"},{id:"fullstack",label:"Fullstack",desc:"End-to-end implementation",icon:os,tier:"Heavy"},{id:"testing",label:"Testing",desc:"Tests, coverage, QA",icon:xh,tier:"Medium"},{id:"devops",label:"DevOps",desc:"CI/CD, infra, deployment",icon:rT,tier:"Medium"},{id:"docs",label:"Docs",desc:"Documentation, guides",icon:Ka,tier:"Light"},{id:"security",label:"Security",desc:"Audits, vulnerabilities",icon:_s,tier:"Medium"},{id:"database",label:"Database",desc:"Schema, migrations, queries",icon:uT,tier:"Medium"},{id:"cmo",label:"CMO",desc:"Marketing, content, growth",icon:rN,tier:"Medium"},{id:"cfo",label:"CFO",desc:"Finance, metrics, forecasting",icon:D$,tier:"Medium"},{id:"ea",label:"EA",desc:"Executive assistant, scheduling",icon:aP,tier:"Light"},{id:"support",label:"Support",desc:"Customer support, FAQs",icon:ET,tier:"Medium"},{id:"analyst",label:"Analyst",desc:"Data analysis, insights",icon:Bb,tier:"Medium"},{id:"creative",label:"Writer",desc:"Copy, articles, proposals",icon:vN,tier:"Heavy",skillHint:!0},{id:"slides",label:"Slides",desc:"Pitch decks, presentations",icon:TN,tier:"Heavy",skillHint:!0}];function q0(){return l.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 14 14",className:"text-accent flex-shrink-0",children:[l.jsx("circle",{cx:"7",cy:"7",r:"6",fill:"currentColor",fillOpacity:"0.15",stroke:"currentColor",strokeWidth:"1"}),l.jsx("path",{d:"M4.5 7 L6.5 9 L9.5 5.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function bZ(){const e=W(te=>te.detailPanel),n=W(te=>te.closeDetail),s=W(te=>te.spawnAgent),r=W(te=>te.fetchProviders),o=(e==null?void 0:e.type)==="spawn",[d,u]=v.useState(""),[f,h]=v.useState(""),[p,x]=v.useState(""),[g,b]=v.useState(""),[y,Q]=v.useState(""),[k,w]=v.useState(""),[j,P]=v.useState([]),[z,_]=v.useState([]),[G,Z]=v.useState([]),[C,T]=v.useState(!1),[H,E]=v.useState(""),[ee,I]=v.useState([]),[D,ie]=v.useState([]),[V,N]=v.useState(!1),[M,K]=v.useState(""),[de,ae]=v.useState("manual"),[Qe,ve]=v.useState(!1);v.useEffect(()=>{o&&(r().then(te=>{const Oe=Array.isArray(te)?te:te.providers||[];P(Oe);const Re=Oe.filter($e=>$e.installed);if(Re.length>0&&!g){const at=["claude-code","gemini","codex","ollama"].find(xt=>Re.some(ut=>ut.id===xt))||Re[0].id;b(at)}}).catch(()=>{}),J.get("/skills/installed").then(te=>{_(Array.isArray(te)?te:[])}).catch(()=>{}),J.get("/integrations/installed").then(te=>{I(Array.isArray(te)?te:[])}).catch(()=>{}),u(""),h(""),x(""),b(""),Q(""),w(""),Z([]),ie([]),ae("manual"))},[o,r]);const ue=d||f,ye=j.find(te=>te.id===g),Ae=(ye==null?void 0:ye.models)||[],B=j.filter(te=>te.installed);async function je(){if(ue){ve(!0);try{const te={role:ue,...p&&{name:p.replace(/\s+/g,"-")},...g&&{provider:g},...y&&{model:y},...k&&{prompt:k},...G.length>0&&{skills:G},...D.length>0&&{integrations:D},...D.length>0&&{integrationApproval:de}};await s(te),n()}catch{}ve(!1)}}return l.jsx(o2,{open:o,onOpenChange:te=>{te||n()},children:l.jsx(c2,{title:"Spawn Agent",width:480,children:l.jsxs("div",{className:"flex flex-col h-[calc(100%-57px)]",children:[l.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-4 space-y-6",children:[l.jsxs("div",{children:[l.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block mb-3",children:"Choose Role"}),l.jsx("div",{className:"grid grid-cols-2 gap-2",children:gZ.map(te=>{const Oe=Ni(te.id),Re=d===te.id;return l.jsxs("button",{onClick:()=>{u(te.id),h("")},className:oe("flex items-center gap-2.5 p-3 rounded-md border text-left transition-all cursor-pointer",Re?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border hover:bg-surface-2"),children:[l.jsx("div",{className:"w-8 h-8 rounded-md flex items-center justify-center flex-shrink-0",style:{background:Oe.bg},children:l.jsx(te.icon,{size:16,style:{color:Oe.text}})}),l.jsxs("div",{className:"min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans",children:te.label}),te.skillHint&&l.jsx("span",{className:"text-2xs font-mono text-warning/70 bg-warning/8 px-1 py-px rounded",children:"skill"})]}),l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:te.desc})]})]},te.id)})}),l.jsx("div",{className:"mt-3",children:l.jsx(Lc,{placeholder:"or type a custom role (e.g. chat-agent)...",value:f,onChange:te=>{h(te.target.value.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9_-]/g,"").slice(0,50)),u("")},className:"text-xs"})})]}),ue&&l.jsxs("div",{className:"space-y-4",children:[l.jsx("label",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider block",children:"Configuration"}),l.jsx(Lc,{label:"Name (optional)",value:p,onChange:te=>x(te.target.value),placeholder:`${ue}-1`}),l.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Provider"}),l.jsxs("div",{className:"relative",children:[l.jsxs("select",{value:g,onChange:te=>{b(te.target.value),Q("")},className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent",children:[l.jsx("option",{value:"",children:"Auto"}),j.map(te=>l.jsxs("option",{value:te.id,disabled:!te.installed,children:[te.name,te.installed?"":" (not installed)"]},te.id))]}),l.jsx(Rn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]}),l.jsxs("div",{className:"space-y-1",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Model"}),l.jsxs("div",{className:"relative",children:[l.jsxs("select",{value:y,onChange:te=>Q(te.target.value),disabled:!g,className:"w-full h-8 px-3 pr-8 text-sm rounded-md bg-surface-1 border border-border text-text-0 font-sans appearance-none cursor-pointer focus:outline-none focus:ring-1 focus:ring-accent disabled:opacity-40",children:[l.jsx("option",{value:"",children:"Auto"}),Ae.map(te=>l.jsx("option",{value:te.id,children:te.name},te.id))]}),l.jsx(Rn,{size:14,className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-3 pointer-events-none"})]})]})]}),g&&ye&&l.jsx("div",{className:"text-2xs text-text-3 font-sans flex items-center gap-2",children:ye.authType==="local"?l.jsx(Pe,{variant:"success",children:"Local"}):ye.authType==="subscription"?l.jsx(Pe,{variant:"accent",children:"Subscription"}):ye.hasKey?l.jsx(Pe,{variant:"success",children:"API key set"}):l.jsxs(Pe,{variant:"warning",children:["No API key — set with: groove set-key ",g," YOUR_KEY"]})}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Skills"}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[G.map(te=>{const Oe=z.find(Re=>Re.id===te);return l.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-accent/12 text-accent border border-accent/25 text-2xs font-sans",children:[l.jsx(_l,{size:9}),(Oe==null?void 0:Oe.name)||te,l.jsx("button",{onClick:()=>Z(Re=>Re.filter($e=>$e!==te)),className:"ml-0.5 hover:text-text-0 cursor-pointer",children:l.jsx(wt,{size:9})})]},te)}),l.jsxs("button",{onClick:()=>{T(!0),E("")},className:oe("inline-flex items-center gap-1.5 px-2.5 py-1 rounded text-2xs font-sans transition-colors cursor-pointer","bg-surface-0 text-text-2 border border-border-subtle hover:border-border hover:text-text-0"),children:[l.jsx(_l,{size:10}),G.length>0?"Add skill":"Attach skill"]})]})]}),l.jsx(xi,{open:C,onOpenChange:T,children:l.jsx(gi,{title:"Select Skill",className:"max-w-sm",children:l.jsxs("div",{className:"space-y-3 p-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(_n,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:H,onChange:te=>E(te.target.value),placeholder:"Search skills...",autoFocus:!0,className:"w-full h-8 pl-8 pr-3 text-xs rounded-md bg-surface-0 border border-border text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsxs("div",{className:"max-h-64 overflow-y-auto space-y-1",children:[z.filter(te=>{if(!H)return!0;const Oe=H.toLowerCase();return(te.name||te.id).toLowerCase().includes(Oe)||(te.description||"").toLowerCase().includes(Oe)}).map(te=>{const Oe=G.includes(te.id);return l.jsxs("button",{onClick:()=>{Z(Re=>Oe?Re.filter($e=>$e!==te.id):[...Re,te.id])},className:oe("w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-left transition-colors cursor-pointer",Oe?"bg-accent/10 border border-accent/25":"hover:bg-surface-3 border border-transparent"),children:[l.jsx(_l,{size:12,className:Oe?"text-accent":"text-text-3"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:te.name||te.id}),te.description&&l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:te.description})]}),Oe&&l.jsx(q0,{})]},te.id)}),z.length===0&&l.jsx("div",{className:"text-center py-6 text-xs text-text-3 font-sans",children:"No skills installed. Visit the Marketplace to install skills."})]})]})})}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Integrations"}),l.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[D.map(te=>{const Oe=ee.find($e=>$e.id===te),Re=E0[te];return l.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded bg-accent/12 text-accent border border-accent/25 text-2xs font-sans",children:[Re?l.jsx("img",{src:Re,alt:"",className:"w-2.5 h-2.5"}):l.jsx(El,{size:9}),(Oe==null?void 0:Oe.name)||te,l.jsx("button",{onClick:()=>ie($e=>$e.filter(at=>at!==te)),className:"ml-0.5 hover:text-text-0 cursor-pointer",children:l.jsx(wt,{size:9})})]},te)}),l.jsxs("button",{onClick:()=>{N(!0),K("")},className:oe("inline-flex items-center gap-1.5 px-2.5 py-1 rounded text-2xs font-sans transition-colors cursor-pointer","bg-surface-0 text-text-2 border border-border-subtle hover:border-border hover:text-text-0"),children:[l.jsx(El,{size:10}),D.length>0?"Add integration":"Attach integration"]})]})]}),l.jsx(xi,{open:V,onOpenChange:N,children:l.jsx(gi,{title:"Select Integration",className:"max-w-sm",children:l.jsxs("div",{className:"space-y-3 p-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(_n,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-text-4"}),l.jsx("input",{value:M,onChange:te=>K(te.target.value),placeholder:"Search integrations...",autoFocus:!0,className:"w-full h-8 pl-8 pr-3 text-xs rounded-md bg-surface-0 border border-border text-text-0 font-sans focus:outline-none focus:ring-1 focus:ring-accent"})]}),l.jsxs("div",{className:"max-h-64 overflow-y-auto space-y-1",children:[ee.filter(te=>{if(!M)return!0;const Oe=M.toLowerCase();return(te.name||te.id).toLowerCase().includes(Oe)||(te.description||"").toLowerCase().includes(Oe)}).map(te=>{const Oe=D.includes(te.id),Re=te.configured!==!1,$e=E0[te.id],at=ue&&Array.isArray(te.roles)&&te.roles.includes(ue);return l.jsxs("button",{onClick:()=>{Re&&ie(xt=>Oe?xt.filter(ut=>ut!==te.id):[...xt,te.id])},disabled:!Re,className:oe("w-full flex items-center gap-2.5 px-3 py-2 rounded-md text-left transition-colors",Re?"cursor-pointer":"opacity-40 cursor-not-allowed",Oe?"bg-accent/10 border border-accent/25":Re?"hover:bg-surface-3 border border-transparent":"border border-transparent"),children:[$e?l.jsx("img",{src:$e,alt:"",className:"w-4 h-4 flex-shrink-0"}):l.jsx(El,{size:12,className:Oe?"text-accent":"text-text-3"}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"text-xs font-semibold text-text-0 font-sans truncate",children:te.name||te.id}),!Re&&l.jsx("span",{className:"text-2xs text-text-4 font-sans",children:"(not configured)"}),Re&&at&&l.jsx("span",{className:"text-2xs font-mono text-accent/70 bg-accent/8 px-1 py-px rounded",children:"rec"})]}),te.description&&l.jsx("div",{className:"text-2xs text-text-3 font-sans truncate",children:te.description}),!Re&&l.jsx("div",{className:"text-2xs text-text-4 font-sans",children:"Configure in Marketplace"})]}),Oe&&l.jsx(q0,{})]},te.id)}),ee.length===0&&l.jsx("div",{className:"text-center py-6 text-xs text-text-3 font-sans",children:"No integrations installed. Visit the Marketplace to install integrations."})]})]})})}),D.length>0&&l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium text-text-2 font-sans",children:"Integration Approvals"}),l.jsxs("div",{className:"flex gap-1.5",children:[l.jsxs("button",{onClick:()=>ae("manual"),className:oe("flex-1 flex items-center gap-2 px-3 py-2 rounded-md border text-left transition-all cursor-pointer",de==="manual"?"border-accent bg-accent/5":"border-border-subtle bg-surface-1 hover:border-border"),children:[l.jsx(_s,{size:13,className:de==="manual"?"text-accent":"text-text-3"}),l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-semibold text-text-0 font-sans",children:"Manual"}),l.jsx("div",{className:"text-2xs text-text-3 font-sans",children:"You approve each action"})]})]}),l.jsxs("button",{onClick:()=>ae("auto"),className:oe("flex-1 flex items-center gap-2 px-3 py-2 rounded-md border text-left transition-all cursor-pointer",de==="auto"?"border-warning bg-warning/5":"border-border-subtle bg-surface-1 hover:border-border"),children:[l.jsx(_l,{size:13,className:de==="auto"?"text-warning":"text-text-3"}),l.jsxs("div",{children:[l.jsx("div",{className:"text-2xs font-semibold text-text-0 font-sans",children:"Auto"}),l.jsx("div",{className:"text-2xs text-text-3 font-sans",children:"Agent acts without asking"})]})]})]})]})]})]}),l.jsxs("div",{className:"border-t border-border-subtle px-5 py-4 bg-surface-1",children:[B.length===0&&j.length>0&&l.jsxs("div",{className:"flex items-center gap-2 mb-3 px-3 py-2 rounded-md bg-warning/8 border border-warning/20",children:[l.jsx($i,{size:13,className:"text-warning flex-shrink-0"}),l.jsx("span",{className:"text-2xs font-sans text-text-2",children:"No AI providers installed. Install Claude Code, Gemini CLI, Codex, or Ollama to spawn agents."})]}),ue&&B.length>0&&l.jsxs("div",{className:"flex items-center gap-2 mb-3 text-xs text-text-3 font-sans",children:[l.jsx("span",{children:"Spawning"}),l.jsx(Pe,{variant:"accent",children:ue}),g&&l.jsxs("span",{children:["on ",(ye==null?void 0:ye.name)||g]}),p&&l.jsxs("span",{children:["as ",p.replace(/\s+/g,"-")]})]}),l.jsx(be,{variant:"primary",size:"lg",onClick:je,disabled:!ue||Qe||B.length===0,className:"w-full",children:Qe?"Spawning...":"Spawn Agent"})]})]})})})}function M0({title:e,icon:n,defaultOpen:s=!1,badge:r,children:o,className:d}){const[u,f]=v.useState(s);return l.jsxs("div",{className:oe("border-t border-border-subtle",d),children:[l.jsxs("button",{onClick:()=>f(!u),className:"w-full flex items-center gap-2 px-5 py-3 text-left cursor-pointer hover:bg-surface-5/30 transition-colors group",children:[l.jsx(is,{size:12,className:oe("text-text-4 transition-transform duration-200 flex-shrink-0",u&&"rotate-90")}),n&&l.jsx(n,{size:13,className:"text-text-3 flex-shrink-0"}),l.jsx("span",{className:"text-xs font-semibold text-text-2 font-sans uppercase tracking-wider flex-1",children:e}),r&&l.jsx("span",{className:"text-2xs font-mono text-text-4 bg-surface-4 px-1.5 py-0.5 rounded",children:r})]}),u&&l.jsx("div",{className:"px-5 pb-4",children:o})]})}function vZ(){const e=W(g=>g.journalistStatus),n=W(g=>g.fetchJournalist),s=W(g=>g.triggerJournalistCycle),[r,o]=v.useState(!0),[d,u]=v.useState(!1);v.useEffect(()=>{n().then(()=>o(!1));const g=setInterval(n,1e4);return()=>clearInterval(g)},[n]);async function f(){u(!0);try{await s()}catch{}u(!1)}if(r)return l.jsxs("div",{className:"p-5 space-y-4",children:[l.jsx(dn,{className:"h-6 w-32 rounded"}),l.jsx(dn,{className:"h-20 rounded-md"}),l.jsx(dn,{className:"h-20 rounded-md"})]});const h=e||{},p=h.lastSynthesis,x=h.history||[];return l.jsxs("div",{className:"flex flex-col h-full",children:[l.jsxs("div",{className:"px-5 py-4 border-b border-border-subtle flex items-center gap-2",children:[l.jsx(ui,{size:16,className:"text-accent"}),l.jsx("h3",{className:"text-sm font-semibold text-text-0 font-sans flex-1",children:"Journalist"}),l.jsxs(be,{variant:"secondary",size:"sm",onClick:f,disabled:d,className:"gap-1.5 text-2xs",children:[l.jsx(un,{size:11,className:d?"animate-spin":""}),d?"Running...":"Run Synthesis"]})]}),l.jsx(pa,{className:"flex-1",children:l.jsxs("div",{className:"px-5 py-4 space-y-5",children:[l.jsxs("div",{className:"flex items-center gap-3 text-2xs text-text-3 font-sans",children:[l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(ci,{size:10}),l.jsxs("span",{children:[h.cycleCount||0," cycles"]})]}),h.lastCycleTime&&l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsx(NO,{size:10}),l.jsxs("span",{children:["Last: ",kt(h.lastCycleTime)]})]}),l.jsx(Pe,{variant:h.cycleCount>0?"success":"default",className:"text-2xs",children:h.cycleCount>0?"Active":"Idle"})]}),(p==null?void 0:p.summary)&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[l.jsx(Ka,{size:12,className:"text-text-3"}),"Latest Summary"]}),l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-sans leading-relaxed",children:p.summary})]}),(p==null?void 0:p.projectMap)&&l.jsx(M0,{title:"Project Map",icon:eN,children:l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.projectMap})}),(p==null?void 0:p.decisions)&&l.jsx(M0,{title:"Decisions Log",icon:Ka,children:l.jsx("div",{className:"bg-surface-0 rounded-lg border border-border-subtle px-3.5 py-3 text-xs text-text-2 font-mono leading-relaxed max-h-64 overflow-y-auto whitespace-pre-wrap",children:p.decisions})}),x.length>0&&l.jsxs("div",{className:"space-y-2",children:[l.jsxs("label",{className:"text-xs font-semibold text-text-1 font-sans flex items-center gap-1.5",children:[l.jsx(NO,{size:12,className:"text-text-3"}),"History (",x.length,")"]}),l.jsx("div",{className:"space-y-1.5",children:x.slice().reverse().slice(0,20).map((g,b)=>l.jsxs("div",{className:"bg-surface-0 rounded-md border border-border-subtle px-3 py-2",children:[l.jsxs("div",{className:"flex items-center gap-2 text-2xs",children:[l.jsxs(Pe,{variant:"default",className:"text-2xs",children:["Cycle ",g.cycle]}),l.jsxs("span",{className:"text-text-4 font-sans",children:[g.agentCount," agent",g.agentCount!==1?"s":""]}),l.jsx("span",{className:"text-text-4 font-sans ml-auto",children:kt(g.timestamp)})]}),g.summary&&l.jsx("p",{className:"text-xs text-text-2 font-sans mt-1 leading-relaxed",children:g.summary})]},b))})]}),!p&&x.length===0&&l.jsxs("div",{className:"text-center py-8 text-text-4 font-sans",children:[l.jsx(ui,{size:28,className:"mx-auto mb-2"}),l.jsx("p",{className:"text-sm",children:"No synthesis data yet"}),l.jsx("p",{className:"text-2xs mt-1",children:"The journalist runs automatically when agents are active, or trigger manually above"})]})]})})]})}function yZ({children:e,height:n,onHeightChange:s,visible:r,fullHeight:o,tabs:d,activeTab:u,onSelectTab:f,onAddTab:h,onCloseTab:p,onToggleFullHeight:x,onMinimize:g}){const b=v.useRef(!1),y=v.useRef(0),Q=v.useRef(0),k=v.useCallback(j=>{if(o)return;j.preventDefault(),b.current=!0,y.current=j.clientY,Q.current=n;function P(_){if(!b.current)return;const G=y.current-_.clientY,Z=Math.min(Math.max(Q.current+G,120),600);s(Z)}function z(){b.current=!1,document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",z)}document.addEventListener("mousemove",P),document.addEventListener("mouseup",z)},[n,s,o]);if(!r)return null;const w=d||[{id:"default",label:"Terminal"}];return l.jsxs("div",{className:"flex flex-col border-t border-border bg-surface-0 relative",style:o?{flex:1,minHeight:0}:{height:n,flexShrink:0},children:[!o&&l.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 cursor-row-resize hover:bg-accent/30 transition-colors z-10",onMouseDown:k}),l.jsxs("div",{className:"flex items-center h-9 bg-surface-1 border-b border-border-subtle flex-shrink-0 pl-3 pr-1.5",children:[l.jsxs("div",{className:"flex items-center gap-0 flex-1 min-w-0 overflow-x-auto scrollbar-none",children:[w.map(j=>l.jsxs("button",{onClick:()=>f==null?void 0:f(j.id),className:oe("flex items-center gap-1.5 pl-2.5 pr-1 h-7 text-2xs font-sans cursor-pointer select-none transition-colors flex-shrink-0 rounded-t",j.id===u?"text-text-0 bg-surface-0":"text-text-3 hover:text-text-1 hover:bg-surface-0/50"),children:[l.jsx(ki,{size:10}),l.jsx("span",{className:"truncate max-w-[80px]",children:j.label}),w.length>1&&l.jsx("button",{onClick:P=>{P.stopPropagation(),p==null||p(j.id)},className:"ml-0.5 p-0.5 rounded hover:bg-surface-5 text-text-4 hover:text-text-1 cursor-pointer",children:l.jsx(wt,{size:9})})]},j.id)),l.jsx("button",{onClick:h,className:"flex items-center justify-center w-6 h-6 text-text-4 hover:text-text-1 hover:bg-surface-0/50 rounded cursor-pointer transition-colors flex-shrink-0 ml-0.5",title:"New terminal",children:l.jsx(ss,{size:11})})]}),l.jsx("div",{className:"flex items-center gap-0.5 flex-shrink-0 ml-2",children:o?l.jsx("button",{onClick:g,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Restore",children:l.jsx(dN,{size:12})}):l.jsx("button",{onClick:x,className:"p-1.5 rounded text-text-3 hover:text-text-0 hover:bg-surface-5 cursor-pointer transition-colors",title:"Maximize",children:l.jsx(nN,{size:12})})})]}),l.jsx("div",{className:"flex-1 min-h-0 p-2",children:e})]})}const SZ={background:"#1a1e25",foreground:"#bcc2cd",cursor:"#33afbc",cursorAccent:"#1a1e25",selectionBackground:"rgba(51, 175, 188, 0.25)",black:"#1a1e25",red:"#e06c75",green:"#4ae168",yellow:"#e5c07b",blue:"#61afef",magenta:"#c678dd",cyan:"#33afbc",white:"#bcc2cd",brightBlack:"#505862",brightRed:"#e06c75",brightGreen:"#4ae168",brightYellow:"#e5c07b",brightBlue:"#61afef",brightMagenta:"#c678dd",brightCyan:"#33afbc",brightWhite:"#e6e6e6"};let gO=0;function QZ({tabId:e,visible:n}){const s=v.useRef(null),r=v.useRef(null),o=v.useRef(null),d=v.useRef(null),u=v.useRef(!1);return v.useEffect(()=>{if(!s.current||u.current)return;u.current=!0;const f=new Ow({theme:SZ,fontFamily:"'JetBrains Mono Variable', 'SF Mono', monospace",fontSize:13,lineHeight:1.4,cursorBlink:!0,cursorStyle:"bar",scrollback:5e3,allowProposedApi:!0}),h=new hw;f.loadAddon(h),f.loadAddon(new mw),f.open(s.current),r.current=f,requestAnimationFrame(()=>h.fit());function p(){const g=W.getState().ws;if(!g||g.readyState!==WebSocket.OPEN){setTimeout(p,500);return}g.send(JSON.stringify({type:"terminal:spawn",cols:f.cols,rows:f.rows}));function b(y){let Q;try{Q=JSON.parse(y.data)}catch{return}Q.type==="terminal:spawned"&&!o.current?o.current=Q.id:Q.type==="terminal:output"&&Q.id===o.current?f.write(Q.data):Q.type==="terminal:exit"&&Q.id===o.current&&(f.write(`\r
|
|
651
|
-
\x1B[90m[session ended]\x1B[0m\r
|
|
652
|
-
`),o.current=null)}g.addEventListener("message",b),d.current={ws:g,handler:b},f.onData(y=>{const Q=W.getState().ws;(Q==null?void 0:Q.readyState)===WebSocket.OPEN&&o.current&&Q.send(JSON.stringify({type:"terminal:input",id:o.current,data:y}))}),f.onResize(({cols:y,rows:Q})=>{const k=W.getState().ws;(k==null?void 0:k.readyState)===WebSocket.OPEN&&o.current&&k.send(JSON.stringify({type:"terminal:resize",id:o.current,rows:Q,cols:y}))})}p();const x=new ResizeObserver(()=>{requestAnimationFrame(()=>{try{h.fit()}catch{}})});return x.observe(s.current),()=>{x.disconnect();const g=W.getState().ws;(g==null?void 0:g.readyState)===WebSocket.OPEN&&o.current&&g.send(JSON.stringify({type:"terminal:kill",id:o.current})),d.current&&d.current.ws.removeEventListener("message",d.current.handler),f.dispose(),u.current=!1}},[]),v.useEffect(()=>{n&&r.current&&requestAnimationFrame(()=>{var f,h,p,x,g;try{(g=(x=(p=(h=(f=r.current._addonManager)==null?void 0:f._addons)==null?void 0:h[0])==null?void 0:p.instance)==null?void 0:x.fit)==null||g.call(x)}catch{}})},[n]),l.jsx("div",{ref:s,className:"w-full h-full",style:{display:n?"block":"none"}})}function jZ(){const e=W(b=>b.terminalVisible),n=W(b=>b.terminalHeight),s=W(b=>b.setTerminalVisible),r=W(b=>b.setTerminalHeight),o=W(b=>b.terminalFullHeight),d=W(b=>b.setTerminalFullHeight),[u,f]=v.useState([{id:"term-0",label:"Terminal"}]),[h,p]=v.useState("term-0"),x=v.useCallback(()=>{gO++;const b=`term-${gO}`;f(y=>[...y,{id:b,label:`Terminal ${gO+1}`}]),p(b)},[]),g=v.useCallback(b=>{f(y=>{const Q=y.filter(k=>k.id!==b);if(Q.length===0)return s(!1),y;if(h===b){const k=y.findIndex(j=>j.id===b),w=Q[Math.min(k,Q.length-1)];p(w.id)}return Q})},[h,s]);return l.jsx(yZ,{visible:e,height:n,onHeightChange:r,fullHeight:o,tabs:u,activeTab:h,onSelectTab:p,onAddTab:x,onCloseTab:g,onToggleFullHeight:()=>d(!0),onMinimize:()=>d(!1),children:u.map(b=>l.jsx(QZ,{tabId:b.id,visible:b.id===h},b.id))})}class wZ extends Wa.Component{constructor(n){super(n),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}render(){return this.state.error?l.jsxs("div",{className:"h-screen bg-surface-0 p-10 font-sans",children:[l.jsx("h2",{className:"text-lg font-semibold text-text-0 mb-4",children:"Groove — Render Error"}),l.jsx("pre",{className:"text-sm text-danger whitespace-pre-wrap mb-4",children:this.state.error.message}),l.jsx("pre",{className:"text-xs text-text-3 whitespace-pre-wrap",children:this.state.error.stack}),l.jsx("button",{onClick:()=>this.setState({error:null}),className:"mt-6 px-4 py-2 bg-accent text-surface-0 rounded-md font-medium text-sm cursor-pointer",children:"Try Again"})]}):this.props.children}}function kZ(){const e=W(o=>o.activeView),n=W(o=>o.detailPanel);let s;switch(e){case"agents":s=l.jsx(g1,{});break;case"editor":s=l.jsx(FR,{});break;case"dashboard":s=l.jsx(M_,{});break;case"marketplace":s=l.jsx(gA,{});break;case"teams":s=l.jsx(QA,{});break;case"models":s=l.jsx(BA,{});break;case"settings":s=l.jsx(MA,{});break;default:s=l.jsx(g1,{})}let r=null;if(n)switch(n.type){case"agent":r=l.jsx(xZ,{});break;case"journalist":r=l.jsx(vZ,{});break;case"spawn":r=null;break}return l.jsxs(HP,{detailContent:r,terminalContent:l.jsx(jZ,{}),children:[s,l.jsx(bZ,{})]})}function $Z(){return l.jsxs("div",{className:"h-screen bg-surface-0 flex flex-col items-center justify-center gap-4",children:[l.jsx("img",{src:"/favicon.png",alt:"",className:"w-10 h-10 opacity-60 animate-pulse"}),l.jsx("p",{className:"text-sm text-text-3 font-sans",children:"Connecting..."})]})}function TZ(){const e=W(s=>s.connect),n=W(s=>s.hydrated);return v.useEffect(()=>{e()},[e]),n?l.jsx(wZ,{children:l.jsx(kZ,{})}):l.jsx($Z,{})}vw.createRoot(document.getElementById("root")).render(l.jsx(v.StrictMode,{children:l.jsx(TZ,{})}));
|