commandmate 0.1.0 → 0.1.6
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/.next/BUILD_ID +1 -0
- package/.next/app-build-manifest.json +72 -0
- package/.next/app-path-routes-manifest.json +1 -0
- package/.next/build-manifest.json +32 -0
- package/.next/cache/.tsbuildinfo +1 -0
- package/.next/cache/config.json +7 -0
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/1.pack +0 -0
- package/.next/cache/webpack/client-production/2.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/edge-server-production/0.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/export-marker.json +1 -0
- package/.next/images-manifest.json +1 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +1 -0
- package/.next/react-loadable-manifest.json +249 -0
- package/.next/required-server-files.json +1 -0
- package/.next/routes-manifest.json +1 -0
- package/.next/server/app/_not-found/page.js +1 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +6 -0
- package/.next/server/app/_not-found.rsc +10 -0
- package/.next/server/app/api/external-apps/[id]/health/route.js +45 -0
- package/.next/server/app/api/external-apps/[id]/health/route.js.nft.json +1 -0
- package/.next/server/app/api/external-apps/[id]/route.js +45 -0
- package/.next/server/app/api/external-apps/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/external-apps/route.js +45 -0
- package/.next/server/app/api/external-apps/route.js.nft.json +1 -0
- package/.next/server/app/api/hooks/claude-done/route.js +19 -0
- package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -0
- package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -0
- package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -0
- package/.next/server/app/api/repositories/clone/route.js +1 -0
- package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -0
- package/.next/server/app/api/repositories/route.js +1 -0
- package/.next/server/app/api/repositories/route.js.nft.json +1 -0
- package/.next/server/app/api/repositories/scan/route.js +1 -0
- package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -0
- package/.next/server/app/api/repositories/sync/route.js +1 -0
- package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -0
- package/.next/server/app/api/slash-commands/route.js +1 -0
- package/.next/server/app/api/slash-commands/route.js.nft.json +1 -0
- package/.next/server/app/api/slash-commands.body +1 -0
- package/.next/server/app/api/slash-commands.meta +1 -0
- package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/capture/route.js +2 -0
- package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/cli-tool/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/cli-tool/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/current-output/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/kill-session/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/logs/[filename]/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/logs/[filename]/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/logs/route.js +19 -0
- package/.next/server/app/api/worktrees/[id]/logs/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/memos/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/memos/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/messages/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/messages/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/search/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/search/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/send/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/slash-commands/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/start-polling/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/start-polling/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/terminal/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/tree/[...path]/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/tree/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/tree/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/tree/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/upload/[...path]/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/upload/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/[id]/viewed/route.js +1 -0
- package/.next/server/app/api/worktrees/[id]/viewed/route.js.nft.json +1 -0
- package/.next/server/app/api/worktrees/route.js +1 -0
- package/.next/server/app/api/worktrees/route.js.nft.json +1 -0
- package/.next/server/app/apple-icon.png/route.js +1 -0
- package/.next/server/app/apple-icon.png/route.js.nft.json +1 -0
- package/.next/server/app/apple-icon.png.body +0 -0
- package/.next/server/app/apple-icon.png.meta +1 -0
- package/.next/server/app/icon.png/route.js +1 -0
- package/.next/server/app/icon.png/route.js.nft.json +1 -0
- package/.next/server/app/icon.png.body +0 -0
- package/.next/server/app/icon.png.meta +1 -0
- package/.next/server/app/index.html +9 -0
- package/.next/server/app/index.meta +5 -0
- package/.next/server/app/index.rsc +8 -0
- package/.next/server/app/page.js +16 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app/proxy/[...path]/route.js +45 -0
- package/.next/server/app/proxy/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/worktrees/[id]/files/[...path]/page.js +1 -0
- package/.next/server/app/worktrees/[id]/files/[...path]/page.js.nft.json +1 -0
- package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -0
- package/.next/server/app/worktrees/[id]/page.js +21 -0
- package/.next/server/app/worktrees/[id]/page.js.nft.json +1 -0
- package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -0
- package/.next/server/app/worktrees/[id]/simple-terminal/page.js +4 -0
- package/.next/server/app/worktrees/[id]/simple-terminal/page.js.nft.json +1 -0
- package/.next/server/app/worktrees/[id]/simple-terminal/page_client-reference-manifest.js +1 -0
- package/.next/server/app/worktrees/[id]/terminal/page.js +6 -0
- package/.next/server/app/worktrees/[id]/terminal/page.js.nft.json +1 -0
- package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +46 -0
- package/.next/server/chunks/1318.js +29 -0
- package/.next/server/chunks/1528.js +1 -0
- package/.next/server/chunks/1682.js +6 -0
- package/.next/server/chunks/2518.js +12 -0
- package/.next/server/chunks/3053.js +1 -0
- package/.next/server/chunks/3673.js +1 -0
- package/.next/server/chunks/3853.js +1 -0
- package/.next/server/chunks/434.js +1 -0
- package/.next/server/chunks/4471.js +2 -0
- package/.next/server/chunks/4893.js +2 -0
- package/.next/server/chunks/5972.js +12 -0
- package/.next/server/chunks/6550.js +1 -0
- package/.next/server/chunks/6621.js +1 -0
- package/.next/server/chunks/7213.js +1 -0
- package/.next/server/chunks/7425.js +500 -0
- package/.next/server/chunks/8585.js +1 -0
- package/.next/server/chunks/8887.js +1 -0
- package/.next/server/chunks/8948.js +2 -0
- package/.next/server/chunks/9703.js +31 -0
- package/.next/server/chunks/9723.js +19 -0
- package/.next/server/chunks/font-manifest.json +1 -0
- package/.next/server/edge-runtime-webpack.js +2 -0
- package/.next/server/edge-runtime-webpack.js.map +1 -0
- package/.next/server/font-manifest.json +1 -0
- package/.next/server/functions-config-manifest.json +1 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +32 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages/_app.js +1 -0
- package/.next/server/pages/_app.js.nft.json +1 -0
- package/.next/server/pages/_document.js +1 -0
- package/.next/server/pages/_document.js.nft.json +1 -0
- package/.next/server/pages/_error.js +1 -0
- package/.next/server/pages/_error.js.nft.json +1 -0
- package/.next/server/pages-manifest.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +1 -0
- package/.next/server/src/middleware.js +14 -0
- package/.next/server/src/middleware.js.map +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/static/chunks/0dbeb660.3e800dfbd28be3bd.js +53 -0
- package/.next/static/chunks/1015.0eaa4da7f61149bc.js +59 -0
- package/.next/static/chunks/1098.49268c9fe1b028fa.js +1 -0
- package/.next/static/chunks/13.feeafc7cc620f8c4.js +1 -0
- package/.next/static/chunks/1423.7b1e8bf760d28078.js +1 -0
- package/.next/static/chunks/1582.9f8590f71ff798ca.js +55 -0
- package/.next/static/chunks/1817.a66d96cedb761daa.js +262 -0
- package/.next/static/chunks/2117-d845c2cd62e344a6.js +2 -0
- package/.next/static/chunks/2398.0b21e4eb7006a230.js +93 -0
- package/.next/static/chunks/2526.8ac62b527c9ab703.js +43 -0
- package/.next/static/chunks/2626.2125083a1ff3b80a.js +29 -0
- package/.next/static/chunks/2689.720a4874b02d4211.js +174 -0
- package/.next/static/chunks/2853-d11a80b03c9a1640.js +1 -0
- package/.next/static/chunks/2957-327e43ef4c12808f.js +1 -0
- package/.next/static/chunks/2cdb6380.35626fc6e41bbba4.js +136 -0
- package/.next/static/chunks/30d07d85-393352a92199f695.js +3 -0
- package/.next/static/chunks/3559.f073f72c4466ce0e.js +1 -0
- package/.next/static/chunks/3574.7a94c27e6a496a56.js +63 -0
- package/.next/static/chunks/383.20683891c9a5f2c4.js +4 -0
- package/.next/static/chunks/3843.3fdda732987f7bb8.js +1 -0
- package/.next/static/chunks/3852.822389f445c9b427.js +1 -0
- package/.next/static/chunks/3991.4bc063cb5be3a86c.js +1 -0
- package/.next/static/chunks/4212.52c1bb34fc97d0d0.js +131 -0
- package/.next/static/chunks/4327.3b84aa049900fdeb.js +60 -0
- package/.next/static/chunks/4362.7bd6f0282e49d79b.js +1 -0
- package/.next/static/chunks/4721.40615a5f4f32b5fb.js +1 -0
- package/.next/static/chunks/4851-45df4d388db5623f.js +1 -0
- package/.next/static/chunks/5112.17318d1c6b28044b.js +1 -0
- package/.next/static/chunks/5126.93fa4e797d609286.js +56 -0
- package/.next/static/chunks/5387.47590ac4ef66c864.js +5 -0
- package/.next/static/chunks/5813.4483664ba482beb1.js +1 -0
- package/.next/static/chunks/6143.1450875bd03a2366.js +36 -0
- package/.next/static/chunks/6406.9653f0d41ab85059.js +1 -0
- package/.next/static/chunks/656.d72f25ce819bd77e.js +149 -0
- package/.next/static/chunks/6678.492e73ca42b2a273.js +62 -0
- package/.next/static/chunks/6725-f7607851b7d57eb1.js +1 -0
- package/.next/static/chunks/6792.3c01ac4dda4b5c6d.js +1 -0
- package/.next/static/chunks/7004.808cbf327ef5955e.js +1 -0
- package/.next/static/chunks/7290.09ef84cf94f90c4d.js +1 -0
- package/.next/static/chunks/7415.6b481c2baf363262.js +148 -0
- package/.next/static/chunks/7648-325564a6e12a3257.js +1 -0
- package/.next/static/chunks/7665.47fccad04449a8f9.js +215 -0
- package/.next/static/chunks/7753.6bdce86b7fde3d10.js +166 -0
- package/.next/static/chunks/8125.245a9df052d274fb.js +1 -0
- package/.next/static/chunks/816-7e340dad784be28c.js +1 -0
- package/.next/static/chunks/8288.4883743fa40672e2.js +24 -0
- package/.next/static/chunks/8522.1607e96011c66877.js +1 -0
- package/.next/static/chunks/8772.863c564498d88487.js +1 -0
- package/.next/static/chunks/8841.dadeb1ece8e46004.js +1 -0
- package/.next/static/chunks/8885.f8d9912b40d74811.js +1 -0
- package/.next/static/chunks/90542734.c1553d0fe7fc14fc.js +1 -0
- package/.next/static/chunks/9365-733d8c05712d2888.js +1 -0
- package/.next/static/chunks/9552.b7dfb7903ead934b.js +1 -0
- package/.next/static/chunks/9834.295b45635ce04f5e.js +24 -0
- package/.next/static/chunks/app/_not-found/page-a9d04e58c81115ec.js +1 -0
- package/.next/static/chunks/app/layout-37e55f11dcc8b1bf.js +1 -0
- package/.next/static/chunks/app/page-9cd00de9cc0abc43.js +1 -0
- package/.next/static/chunks/app/worktrees/[id]/files/[...path]/page-9e5adf57cbbbdf05.js +1 -0
- package/.next/static/chunks/app/worktrees/[id]/page-8c6676303b63fdaf.js +1 -0
- package/.next/static/chunks/app/worktrees/[id]/simple-terminal/page-16feb3e86e42f4d1.js +1 -0
- package/.next/static/chunks/app/worktrees/[id]/terminal/page-be802baffc84dbd2.js +1 -0
- package/.next/static/chunks/d3ac728e.6c9c508274d4d2d5.js +1 -0
- package/.next/static/chunks/fd9d1056-bbe86e4ae099d5cd.js +1 -0
- package/.next/static/chunks/framework-8e0e0f4a6b83a956.js +1 -0
- package/.next/static/chunks/main-a960f4a5e1a2f598.js +1 -0
- package/.next/static/chunks/main-app-420d93e43682fee5.js +1 -0
- package/.next/static/chunks/pages/_app-3c9ca398d360b709.js +1 -0
- package/.next/static/chunks/pages/_error-cf5ca766ac8f493f.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-3fc79fab9bb738d7.js +1 -0
- package/.next/static/css/5eacd01f773eed7f.css +11 -0
- package/.next/static/css/85fa6dafca566008.css +1 -0
- package/.next/static/css/e174aa24f94ce607.css +3 -0
- package/.next/static/pQTquVjewvoJa7BML07ip/_buildManifest.js +1 -0
- package/.next/static/pQTquVjewvoJa7BML07ip/_ssgManifest.js +1 -0
- package/.next/trace +5 -0
- package/.next/types/app/api/external-apps/[id]/health/route.ts +343 -0
- package/.next/types/app/api/external-apps/[id]/route.ts +343 -0
- package/.next/types/app/api/external-apps/route.ts +343 -0
- package/.next/types/app/api/hooks/claude-done/route.ts +343 -0
- package/.next/types/app/api/repositories/clone/[jobId]/route.ts +343 -0
- package/.next/types/app/api/repositories/clone/route.ts +343 -0
- package/.next/types/app/api/repositories/route.ts +343 -0
- package/.next/types/app/api/repositories/scan/route.ts +343 -0
- package/.next/types/app/api/repositories/sync/route.ts +343 -0
- package/.next/types/app/api/slash-commands/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/auto-yes/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/capture/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/cli-tool/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/current-output/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/files/[...path]/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/interrupt/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/kill-session/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/logs/[filename]/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/logs/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/memos/[memoId]/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/memos/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/messages/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/prompt-response/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/respond/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/search/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/send/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/slash-commands/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/start-polling/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/terminal/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/tree/[...path]/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/tree/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/upload/[...path]/route.ts +343 -0
- package/.next/types/app/api/worktrees/[id]/viewed/route.ts +343 -0
- package/.next/types/app/api/worktrees/route.ts +343 -0
- package/.next/types/app/page.ts +79 -0
- package/.next/types/app/proxy/[...path]/route.ts +343 -0
- package/.next/types/app/worktrees/[id]/files/[...path]/page.ts +79 -0
- package/.next/types/app/worktrees/[id]/page.ts +79 -0
- package/.next/types/app/worktrees/[id]/simple-terminal/page.ts +79 -0
- package/.next/types/app/worktrees/[id]/terminal/page.ts +79 -0
- package/.next/types/package.json +1 -0
- package/README.md +25 -20
- package/dist/cli/commands/start.d.ts.map +1 -1
- package/dist/cli/commands/start.js +4 -1
- package/dist/cli/utils/daemon.d.ts.map +1 -1
- package/dist/cli/utils/daemon.js +4 -2
- package/dist/cli/utils/paths.d.ts +25 -0
- package/dist/cli/utils/paths.d.ts.map +1 -0
- package/dist/cli/utils/paths.js +35 -0
- package/dist/server/server.js +123 -0
- package/dist/server/src/lib/claude-output.js +33 -0
- package/dist/server/src/lib/claude-session.js +312 -0
- package/dist/server/src/lib/cli-patterns.js +137 -0
- package/dist/server/src/lib/cli-session.js +73 -0
- package/dist/server/src/lib/cli-tools/base.js +51 -0
- package/dist/server/src/lib/cli-tools/claude.js +65 -0
- package/dist/server/src/lib/cli-tools/codex.js +132 -0
- package/dist/server/src/lib/cli-tools/gemini.js +122 -0
- package/dist/server/src/lib/cli-tools/index.js +22 -0
- package/dist/server/src/lib/cli-tools/manager.js +143 -0
- package/dist/server/src/lib/cli-tools/types.js +5 -0
- package/dist/server/src/lib/conversation-logger.js +25 -0
- package/dist/server/src/lib/db-instance.js +51 -0
- package/dist/server/src/lib/db-migrations.js +777 -0
- package/dist/server/src/lib/db.js +835 -0
- package/dist/server/src/lib/env.js +179 -0
- package/dist/server/src/lib/log-manager.js +234 -0
- package/dist/server/src/lib/logger.js +232 -0
- package/dist/server/src/lib/prompt-detector.js +285 -0
- package/dist/server/src/lib/response-poller.js +638 -0
- package/dist/server/src/lib/tmux.js +299 -0
- package/dist/server/src/lib/worktrees.js +231 -0
- package/dist/server/src/lib/ws-server.js +323 -0
- package/dist/server/src/types/clone.js +39 -0
- package/dist/server/src/types/conversation.js +9 -0
- package/dist/server/src/types/external-apps.js +6 -0
- package/dist/server/src/types/infinite-messages.js +65 -0
- package/dist/server/src/types/markdown-editor.js +94 -0
- package/dist/server/src/types/models.js +5 -0
- package/dist/server/src/types/sidebar.js +89 -0
- package/dist/server/src/types/slash-commands.js +47 -0
- package/dist/server/src/types/ui-actions.js +8 -0
- package/dist/server/src/types/ui-state.js +62 -0
- package/package.json +14 -6
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[656],{53899:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},59543:function(t,e,r){"use strict";e.N=function(t){if(!t)return i.BLANK_URL;var e,r=n(t.trim());do e=(r=n(r=r.replace(i.ctrlCharactersRegex,"").replace(i.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(i.htmlCtrlEntityRegex,"").replace(i.ctrlCharactersRegex,"").replace(i.whitespaceEscapeCharsRegex,"").trim())).match(i.ctrlCharactersRegex)||r.match(i.htmlEntitiesRegex)||r.match(i.htmlCtrlEntityRegex)||r.match(i.whitespaceEscapeCharsRegex);while(e&&e.length>0);var o=r;if(!o)return i.BLANK_URL;if(i.relativeFirstCharacters.indexOf(o[0])>-1)return o;var a=o.trimStart(),s=a.match(i.urlSchemeRegex);if(!s)return o;var l=s[0].toLowerCase().trim();if(i.invalidProtocolRegex.test(l))return i.BLANK_URL;var h=a.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return h;if("http:"===l||"https:"===l){if(!URL.canParse(h))return i.BLANK_URL;var c=new URL(h);return c.protocol=c.protocol.toLowerCase(),c.hostname=c.hostname.toLowerCase(),c.toString()}return h};var i=r(53899);function n(t){try{return decodeURIComponent(t)}catch(e){return t}}},71096:function(t){var e;e=function(){"use strict";var t="millisecond",e="second",r="minute",i="hour",n="week",o="month",a="quarter",s="year",l="date",h="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},p="en",f={};f[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof k||!(!t||!t[g])},y=function t(e,r,i){var n;if(!e)return p;if("string"==typeof e){var o=e.toLowerCase();f[o]&&(n=o),r&&(f[o]=r,n=o);var a=e.split("-");if(!n&&a.length>1)return t(a[0])}else{var s=e.name;f[s]=e,n=s}return!i&&n&&(p=n),n||!i&&p},x=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new k(r)},b={s:d,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+d(Math.floor(r/60),2,"0")+":"+d(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var i=12*(r.year()-e.year())+(r.month()-e.month()),n=e.clone().add(i,o),a=r-n<0,s=e.clone().add(i+(a?-1:1),o);return+(-(i+(r-n)/(a?n-s:s-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(h){return({M:o,y:s,w:n,d:"day",D:l,h:i,m:r,s:e,ms:t,Q:a})[h]||String(h||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};b.l=y,b.i=m,b.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function d(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=d.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(c);if(i){var n=i[2]-1||0,o=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],n,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return this.$d.toString()!==h},p.isSame=function(t,e){var r=x(t);return this.startOf(e)<=r&&r<=this.endOf(e)},p.isAfter=function(t,e){return x(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<x(t)},p.$g=function(t,e,r){return b.u(t)?this[e]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,a){var h=this,c=!!b.u(a)||a,u=b.p(t),d=function(t,e){var r=b.w(h.$u?Date.UTC(h.$y,e,t):new Date(h.$y,e,t),h);return c?r:r.endOf("day")},p=function(t,e){return b.w(h.toDate()[t].apply(h.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),h)},f=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case s:return c?d(1,0):d(31,11);case o:return c?d(1,g):d(0,g+1);case n:var x=this.$locale().weekStart||0,k=(f<x?f+7:f)-x;return d(c?m-k:m+(6-k),g);case"day":case l:return p(y+"Hours",0);case i:return p(y+"Minutes",1);case r:return p(y+"Seconds",2);case e:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(n,a){var h,c=b.p(n),u="set"+(this.$u?"UTC":""),d=((h={}).day=u+"Date",h[l]=u+"Date",h[o]=u+"Month",h[s]=u+"FullYear",h[i]=u+"Hours",h[r]=u+"Minutes",h[e]=u+"Seconds",h[t]=u+"Milliseconds",h)[c],p="day"===c?this.$D+(a-this.$W):a;if(c===o||c===s){var f=this.clone().set(l,1);f.$d[d](p),f.init(),this.$d=f.set(l,Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[b.p(t)]()},p.add=function(t,a){var l,h=this;t=Number(t);var c=b.p(a),u=function(e){var r=x(h);return b.w(r.date(r.date()+Math.round(e*t)),h)};if(c===o)return this.set(o,this.$M+t);if(c===s)return this.set(s,this.$y+t);if("day"===c)return u(1);if(c===n)return u(7);var d=((l={})[r]=6e4,l[i]=36e5,l[e]=1e3,l)[c]||1,p=this.$d.getTime()+t*d;return b.w(p,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,d=r.meridiem,p=function(t,r,n,o){return t&&(t[r]||t(e,i))||n[r].slice(0,o)},f=function(t){return b.s(o%12||12,t,"0")},g=d||function(t,e,r){var i=t<12?"AM":"PM";return r?i.toLowerCase():i};return i.replace(u,function(t,i){return i||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return s+1;case"MM":return b.s(s+1,2,"0");case"MMM":return p(r.monthsShort,s,c,3);case"MMMM":return p(c,s);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return p(r.weekdaysMin,e.$W,l,2);case"ddd":return p(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return b.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return b.s(a,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,l,h){var c,u=this,d=b.p(l),p=x(t),f=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,m=function(){return b.m(u,p)};switch(d){case s:c=m()/12;break;case o:c=m();break;case a:c=m()/3;break;case n:c=(g-f)/6048e5;break;case"day":c=(g-f)/864e5;break;case i:c=g/36e5;break;case r:c=g/6e4;break;case e:c=g/1e3;break;default:c=g}return h?c:b.a(c)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return f[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),i=y(t,e,!0);return i&&(r.$L=i),r},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),C=k.prototype;return x.prototype=C,[["$ms",t],["$s",e],["$m",r],["$H",i],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(t){C[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),x.extend=function(t,e){return t.$i||(t(e,k,x),t.$i=!0),x},x.locale=y,x.isDayjs=m,x.unix=function(t){return x(1e3*t)},x.en=f[p],x.Ls=f,x.p={},x},t.exports=e()},90705:function(t,e,r){"use strict";function i(t,e,r){if(t&&t.length){let[i,n]=e,o=Math.PI/180*r,a=Math.cos(o),s=Math.sin(o);for(let e of t){let[t,r]=e;e[0]=(t-i)*a-(r-n)*s+i,e[1]=(t-i)*s+(r-n)*a+n}}}function n(t,e){var r;let n=e.hachureAngle+90,o=e.hachureGap;o<0&&(o=4*e.strokeWidth),o=Math.round(Math.max(o,.1));let a=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(a=o),function(t,e,r,n=1){let o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,a=[0,0];if(r)for(let t of o)i(t,a,r);let s=function(t,e,r){let i=[];for(let e of t){var n,o;let t=[...e];n=t[0],o=t[t.length-1],n[0]===o[0]&&n[1]===o[1]||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}let a=[];e=Math.max(e,.1);let s=[];for(let t of i)for(let e=0;e<t.length-1;e++){let r=t[e],i=t[e+1];if(r[1]!==i[1]){let t=Math.min(r[1],i[1]);s.push({ymin:t,ymax:Math.max(r[1],i[1]),x:t===r[1]?r[0]:i[0],islope:(i[0]-r[0])/(i[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return a;let l=[],h=s[0].ymin,c=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>h);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:h,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=h))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||c%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,i=l[e].edge;a.push([[Math.round(r.x),h],[Math.round(i.x),h]])}h+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),c++}return a}(o,Math.max(e,.1),n);if(r){for(let t of o)i(t,a,-r);!function(t,e,r){let n=[];t.forEach(t=>n.push(...t)),i(n,e,r)}(s,a,-r)}return s}(t,o,n,a||1)}r.d(e,{Z:function(){return V}});class o{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=n(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function a(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends o{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let i=n(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),o=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(o),h=.5*r*Math.sin(o);for(let[t,e]of i)a([t,e])&&s.push([[t[0]-l,t[1]+h],[...e]],[[t[0]+l,t[1]-h],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends o{fillPolygons(t,e){let r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),n=this._fillPolygons(t,i);return r.ops=r.ops.concat(n.ops),r}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=n(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let n=e.fillWeight;n<0&&(n=e.strokeWidth/2);let o=i/4;for(let s of t){let t=a(s),l=Math.ceil(t/i)-1,h=t-l*i,c=(s[0][0]+s[1][0])/2-i/4,u=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let a=c-o+2*Math.random()*o,s=u+h+t*i-o+2*Math.random()*o,l=this.helper.ellipse(a,s,n,n,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=n(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,n=[];return t.forEach(t=>{let o=a(t),s=Math.floor(o/(r+i)),l=(o+i-s*(r+i))/2,h=t[0],c=t[1];h[0]>c[0]&&(h=t[1],c=t[0]);let u=Math.atan((c[1]-h[1])/(c[0]-h[0]));for(let t=0;t<s;t++){let o=t*(r+i),a=o+r,s=[h[0]+o*Math.cos(u)+l*Math.cos(u),h[1]+o*Math.sin(u)+l*Math.sin(u)],c=[h[0]+a*Math.cos(u)+l*Math.cos(u),h[1]+a*Math.sin(u)+l*Math.sin(u)];n.push(...this.helper.doubleLineOps(s[0],s[1],c[0],c[1],e))}}),n}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,i=e.zigzagOffset<0?r:e.zigzagOffset,o=n(t,e=Object.assign({},e,{hachureGap:r+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,e)}}zigzagLines(t,e,r){let i=[];return t.forEach(t=>{let n=Math.round(a(t)/(2*e)),o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);let l=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let t=0;t<n;t++){let n=2*t*e,a=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),h=[o[0]+n*Math.cos(l),o[1]+n*Math.sin(l)],c=[o[0]+a*Math.cos(l),o[1]+a*Math.sin(l)],u=[h[0]+s*Math.cos(l+Math.PI/4),h[1]+s*Math.sin(l+Math.PI/4)];i.push(...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r),...this.helper.doubleLineOps(u[0],u[1],c[0],c[1],r))}}),i}}let d={};class p{constructor(t){this.seed=t}next(){return this.seed?(2147483648-1&(this.seed=Math.imul(48271,this.seed)))/2147483648:Math.random()}}let f={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),i="BOD",n=0,o=r[0];for(;2!==o.type;){let a=0,s=[];if("BOD"===i){if("M"!==o.text&&"m"!==o.text)return g("M0,0"+t);n++,a=f[o.text],i=o.text}else 1===o.type?a=f[i]:(n++,a=f[o.text],i=o.text);if(!(n+a<r.length))throw Error("Path data ended short");for(let t=n;t<n+a;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+i+","+e.text);s[s.length]=+e.text}if("number"!=typeof f[i])throw Error("Bad segment: "+i);{let t={key:i,data:s};e.push(t),n+=a,o=r[n],"M"===i&&(i="L"),"m"===i&&(i="l")}}return e}function m(t){let e=0,r=0,i=0,n=0,o=[];for(let{key:a,data:s}of t)switch(a){case"M":o.push({key:"M",data:[...s]}),[e,r]=s,[i,n]=s;break;case"m":e+=s[0],r+=s[1],o.push({key:"M",data:[e,r]}),i=e,n=r;break;case"L":o.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],o.push({key:"L",data:[e,r]});break;case"C":o.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,i)=>i%2?t+r:t+e);o.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":o.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,i)=>i%2?t+r:t+e);o.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":o.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],o.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":o.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],o.push({key:"H",data:[e]});break;case"V":o.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,i)=>i%2?t+r:t+e);o.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":o.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],o.push({key:"T",data:[e,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),e=i,r=n}return o}function y(t){let e=[],r="",i=0,n=0,o=0,a=0,s=0,l=0;for(let{key:h,data:c}of t){switch(h){case"M":e.push({key:"M",data:[...c]}),[i,n]=c,[o,a]=c;break;case"C":e.push({key:"C",data:[...c]}),i=c[4],n=c[5],s=c[2],l=c[3];break;case"L":e.push({key:"L",data:[...c]}),[i,n]=c;break;case"H":i=c[0],e.push({key:"L",data:[i,n]});break;case"V":n=c[0],e.push({key:"L",data:[i,n]});break;case"S":{let t=0,o=0;"C"===r||"S"===r?(t=i+(i-s),o=n+(n-l)):(t=i,o=n),e.push({key:"C",data:[t,o,...c]}),s=c[0],l=c[1],i=c[2],n=c[3];break}case"T":{let[t,o]=c,a=0,h=0;"Q"===r||"T"===r?(a=i+(i-s),h=n+(n-l)):(a=i,h=n);let u=i+2*(a-i)/3,d=n+2*(h-n)/3,p=t+2*(a-t)/3,f=o+2*(h-o)/3;e.push({key:"C",data:[u,d,p,f,t,o]}),s=a,l=h,i=t,n=o;break}case"Q":{let[t,r,o,a]=c,h=i+2*(t-i)/3,u=n+2*(r-n)/3,d=o+2*(t-o)/3,p=a+2*(r-a)/3;e.push({key:"C",data:[h,u,d,p,o,a]}),s=t,l=r,i=o,n=a;break}case"A":{let t=Math.abs(c[0]),r=Math.abs(c[1]),o=c[2],a=c[3],s=c[4],l=c[5],h=c[6];0===t||0===r?(e.push({key:"C",data:[i,n,l,h,l,h]}),i=l,n=h):(i!==l||n!==h)&&((function t(e,r,i,n,o,a,s,l,h,c){let u=Math.PI*s/180,d=[],p=0,f=0,g=0,m=0;if(c)[p,f,g,m]=c;else{[e,r]=x(e,r,-u),[i,n]=x(i,n,-u);let t=(e-i)/2,s=(r-n)/2,c=t*t/(o*o)+s*s/(a*a);c>1&&(o*=c=Math.sqrt(c),a*=c);let d=o*o,y=a*a,b=(l===h?-1:1)*Math.sqrt(Math.abs((d*y-d*s*s-y*t*t)/(d*s*s+y*t*t)));g=b*o*s/a+(e+i)/2,m=-(b*a)*t/o+(r+n)/2,p=Math.asin(parseFloat(((r-m)/a).toFixed(9))),f=Math.asin(parseFloat(((n-m)/a).toFixed(9))),e<g&&(p=Math.PI-p),i<g&&(f=Math.PI-f),p<0&&(p=2*Math.PI+p),f<0&&(f=2*Math.PI+f),h&&p>f&&(p-=2*Math.PI),!h&&f>p&&(f-=2*Math.PI)}let y=f-p;if(Math.abs(y)>120*Math.PI/180){let e=f,r=i,l=n;d=t(i=g+o*Math.cos(f=h&&f>p?p+120*Math.PI/180*1:p+-(120*Math.PI/180*1)),n=m+a*Math.sin(f),r,l,o,a,s,0,h,[f,e,g,m])}y=f-p;let b=Math.cos(p),k=Math.cos(f),C=Math.tan(y/4),_=4/3*o*C,v=4/3*a*C,w=[e,r],T=[e+_*Math.sin(p),r-v*b],S=[i+_*Math.sin(f),n-v*k],M=[i,n];if(T[0]=2*w[0]-T[0],T[1]=2*w[1]-T[1],c)return[T,S,M].concat(d);{d=[T,S,M].concat(d);let t=[];for(let e=0;e<d.length;e+=3){let r=x(d[e][0],d[e][1],u),i=x(d[e+1][0],d[e+1][1],u),n=x(d[e+2][0],d[e+2][1],u);t.push([r[0],r[1],i[0],i[1],n[0],n[1]])}return t}})(i,n,l,h,t,r,o,a,s).forEach(function(t){e.push({key:"C",data:t})}),i=l,n=h);break}case"Z":e.push({key:"Z",data:[]}),i=o,n=a}r=h}return e}function x(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let b={randOffset:function(t,e){return W(t,e)},randOffsetWithRange:function(t,e,r){return A(t,e,r)},ellipse:function(t,e,r,i,n){let o=v(r,i,n);return w(t,e,n,o).opset},doubleLineOps:function(t,e,r,i,n){return E(t,e,r,i,n,!0)}};function k(t,e,r,i,n){return{type:"path",ops:E(t,e,r,i,n)}}function C(t,e,r){let i=(t||[]).length;if(i>2){let n=[];for(let e=0;e<i-1;e++)n.push(...E(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&n.push(...E(t[i-1][0],t[i-1][1],t[0][0],t[0][1],r)),{type:"path",ops:n}}return 2===i?k(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,i=$(r[0],1*(1+.2*e.roughness),e),n=e.disableMultiStroke?[]:$(r[0],1.5*(1+.22*e.roughness),L(e));for(let t=1;t<r.length;t++){let o=r[t];if(o.length){let t=$(o,1*(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:$(o,1.5*(1+.22*e.roughness),L(e));for(let e of t)"move"!==e.op&&i.push(e);for(let t of r)"move"!==t.op&&n.push(t)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function v(t,e,r){let i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),n=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=Math.abs(t/2),a=Math.abs(e/2),s=1-r.curveFitting;return o+=W(o*s,r),a+=W(a*s,r),{increment:n,rx:o,ry:a}}function w(t,e,r,i){let[n,o]=D(i.increment,t,e,i.rx,i.ry,1,i.increment*A(.1,A(.4,1,r),r),r),a=I(n,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[n]=D(i.increment,t,e,i.rx,i.ry,1.5,0,r),o=I(n,null,r);a=a.concat(o)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function T(t,e,r,i,n,o,a,s,l){let h=Math.abs(r/2),c=Math.abs(i/2);h+=W(.01*h,l),c+=W(.01*c,l);let u=n,d=o;for(;u<0;)u+=2*Math.PI,d+=2*Math.PI;d-u>2*Math.PI&&(u=0,d=2*Math.PI);let p=Math.min(2*Math.PI/l.curveStepCount/2,(d-u)/2),f=Z(p,t,e,h,c,u,d,1,l);if(!l.disableMultiStroke){let r=Z(p,t,e,h,c,u,d,1.5,l);f.push(...r)}return a&&(s?f.push(...E(t,e,t+h*Math.cos(u),e+c*Math.sin(u),l),...E(t,e,t+h*Math.cos(d),e+c*Math.sin(d),l)):f.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+h*Math.cos(u),e+c*Math.sin(u)]})),{type:"path",ops:f}}function S(t,e){let r=y(m(g(t))),i=[],n=[0,0],o=[0,0];for(let{key:t,data:a}of r)switch(t){case"M":o=[a[0],a[1]],n=[a[0],a[1]];break;case"L":i.push(...E(o[0],o[1],a[0],a[1],e)),o=[a[0],a[1]];break;case"C":{let[t,r,n,s,l,h]=a;i.push(...function(t,e,r,i,n,o,a,s){let l=[],h=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],u=s.disableMultiStroke?1:2,d=s.preserveVertices;for(let p=0;p<u;p++)0===p?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:W(h[0],s)),a[1]+(d?0:W(h[0],s))]}),c=d?[n,o]:[n+W(h[p],s),o+W(h[p],s)],l.push({op:"bcurveTo",data:[t+W(h[p],s),e+W(h[p],s),r+W(h[p],s),i+W(h[p],s),c[0],c[1]]});return l}(t,r,n,s,l,h,o,e)),o=[l,h];break}case"Z":i.push(...E(o[0],o[1],n[0],n[1],e)),o=[n[0],n[1]]}return{type:"path",ops:i}}function M(t,e){let r=[];for(let i of t)if(i.length){let t=e.maxRandomnessOffset||0,n=i.length;if(n>2){r.push({op:"move",data:[i[0][0]+W(t,e),i[0][1]+W(t,e)]});for(let o=1;o<n;o++)r.push({op:"lineTo",data:[i[o][0]+W(t,e),i[o][1]+W(t,e)]})}}return{type:"fillPath",ops:r}}function B(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!d[r])switch(r){case"zigzag":d[r]||(d[r]=new s(e));break;case"cross-hatch":d[r]||(d[r]=new l(e));break;case"dots":d[r]||(d[r]=new h(e));break;case"dashed":d[r]||(d[r]=new c(e));break;case"zigzag-line":d[r]||(d[r]=new u(e));break;default:d[r="hachure"]||(d[r]=new o(e))}return d[r]})(e,b).fillPolygons(t,e)}function L(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function F(t){return t.randomizer||(t.randomizer=new p(t.seed||0)),t.randomizer.next()}function A(t,e,r,i=1){return r.roughness*i*(F(r)*(e-t)+t)}function W(t,e,r=1){return A(-t,t,e,r)}function E(t,e,r,i,n,o=!1){let a=o?n.disableMultiStrokeFill:n.disableMultiStroke,s=O(t,e,r,i,n,!0,!1);if(a)return s;let l=O(t,e,r,i,n,!0,!0);return s.concat(l)}function O(t,e,r,i,n,o,a){let s=Math.pow(t-r,2)+Math.pow(e-i,2),l=Math.sqrt(s),h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>s&&(c=l/10);let u=c/2,d=.2+.2*F(n),p=n.bowing*n.maxRandomnessOffset*(i-e)/200,f=n.bowing*n.maxRandomnessOffset*(t-r)/200;p=W(p,n,h),f=W(f,n,h);let g=[],m=()=>W(u,n,h),y=()=>W(c,n,h),x=n.preserveVertices;return o&&(a?g.push({op:"move",data:[t+(x?0:m()),e+(x?0:m())]}):g.push({op:"move",data:[t+(x?0:W(c,n,h)),e+(x?0:W(c,n,h))]})),a?g.push({op:"bcurveTo",data:[p+t+(r-t)*d+m(),f+e+(i-e)*d+m(),p+t+2*(r-t)*d+m(),f+e+2*(i-e)*d+m(),r+(x?0:m()),i+(x?0:m())]}):g.push({op:"bcurveTo",data:[p+t+(r-t)*d+y(),f+e+(i-e)*d+y(),p+t+2*(r-t)*d+y(),f+e+2*(i-e)*d+y(),r+(x?0:y()),i+(x?0:y())]}),g}function $(t,e,r){if(!t.length)return[];let i=[];i.push([t[0][0]+W(e,r),t[0][1]+W(e,r)]),i.push([t[0][0]+W(e,r),t[0][1]+W(e,r)]);for(let n=1;n<t.length;n++)i.push([t[n][0]+W(e,r),t[n][1]+W(e,r)]),n===t.length-1&&i.push([t[n][0]+W(e,r),t[n][1]+W(e,r)]);return I(i,null,r)}function I(t,e,r){let i=t.length,n=[];if(i>3){let o=[],a=1-r.curveTightness;n.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<i;e++){let r=t[e];o[0]=[r[0],r[1]],o[1]=[r[0]+(a*t[e+1][0]-a*t[e-1][0])/6,r[1]+(a*t[e+1][1]-a*t[e-1][1])/6],o[2]=[t[e+1][0]+(a*t[e][0]-a*t[e+2][0])/6,t[e+1][1]+(a*t[e][1]-a*t[e+2][1])/6],o[3]=[t[e+1][0],t[e+1][1]],n.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;n.push({op:"lineTo",data:[e[0]+W(t,r),e[1]+W(t,r)]})}}else 3===i?(n.push({op:"move",data:[t[1][0],t[1][1]]}),n.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===i&&n.push(...O(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return n}function D(t,e,r,i,n,o,a,s){let l=[],h=[];if(0===s.roughness){t/=4,h.push([e+i*Math.cos(-t),r+n*Math.sin(-t)]);for(let o=0;o<=2*Math.PI;o+=t){let t=[e+i*Math.cos(o),r+n*Math.sin(o)];l.push(t),h.push(t)}h.push([e+1*i,r+0*n]),h.push([e+i*Math.cos(t),r+n*Math.sin(t)])}else{let c=W(.5,s)-Math.PI/2;h.push([W(o,s)+e+.9*i*Math.cos(c-t),W(o,s)+r+.9*n*Math.sin(c-t)]);let u=2*Math.PI+c-.01;for(let a=c;a<u;a+=t){let t=[W(o,s)+e+i*Math.cos(a),W(o,s)+r+n*Math.sin(a)];l.push(t),h.push(t)}h.push([W(o,s)+e+i*Math.cos(c+2*Math.PI+.5*a),W(o,s)+r+n*Math.sin(c+2*Math.PI+.5*a)]),h.push([W(o,s)+e+.98*i*Math.cos(c+a),W(o,s)+r+.98*n*Math.sin(c+a)]),h.push([W(o,s)+e+.9*i*Math.cos(c+.5*a),W(o,s)+r+.9*n*Math.sin(c+.5*a)])}return[h,l]}function Z(t,e,r,i,n,o,a,s,l){let h=o+W(.1,l),c=[];c.push([W(s,l)+e+.9*i*Math.cos(h-t),W(s,l)+r+.9*n*Math.sin(h-t)]);for(let o=h;o<=a;o+=t)c.push([W(s,l)+e+i*Math.cos(o),W(s,l)+r+n*Math.sin(o)]);return c.push([e+i*Math.cos(a),r+n*Math.sin(a)]),c.push([e+i*Math.cos(a),r+n*Math.sin(a)]),I(c,null,l)}function z(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let i=[];if(3===r)i.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let n=[],o=1-e;i.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];n[0]=[e[0],e[1]],n[1]=[e[0]+(o*r[t+1][0]-o*r[t-1][0])/6,e[1]+(o*r[t+1][1]-o*r[t-1][1])/6],n[2]=[r[t+1][0]+(o*r[t][0]-o*r[t+2][0])/6,r[t+1][1]+(o*r[t][1]-o*r[t+2][1])/6],n[3]=[r[t+1][0],r[t+1][1]],i.push(n[1],n[2],n[3])}}return i}function q(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function N(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function P(t,e,r,i,n){let o=n||[],a=t[e],s=t[r-1],l=0,h=1;for(let i=e+1;i<r-1;++i){let e=function(t,e,r){let i=q(e,r);if(0===i)return q(t,e);let n=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/i;return q(t,N(e,r,n=Math.max(0,Math.min(1,n))))}(t[i],a,s);e>l&&(l=e,h=i)}return Math.sqrt(l)>i?(P(t,e,h+1,i,o),P(t,h,r,i,o)):(o.length||o.push(a),o.push(s)),o}function R(t,e=.15,r){let i=[],n=(t.length-1)/3;for(let r=0;r<n;r++)!function t(e,r,i,n){let o=n||[];if(function(t,e){let r=t[e+0],i=t[e+1],n=t[e+2],o=t[e+3],a=3*i[0]-2*r[0]-o[0];a*=a;let s=3*i[1]-2*r[1]-o[1];s*=s;let l=3*n[0]-2*o[0]-r[0];l*=l;let h=3*n[1]-2*o[1]-r[1];return h*=h,a<l&&(a=l),s<h&&(s=h),a+s}(e,r)<i){let t=e[r+0];o.length?Math.sqrt(q(o[o.length-1],t))>1&&o.push(t):o.push(t),o.push(e[r+3])}else{let n=e[r+0],a=e[r+1],s=e[r+2],l=e[r+3],h=N(n,a,.5),c=N(a,s,.5),u=N(s,l,.5),d=N(h,c,.5),p=N(c,u,.5),f=N(d,p,.5);t([n,h,d,f],0,i,o),t([f,p,u,l],0,i,o)}return o}(t,3*r,e,i);return r&&r>0?P(i,0,i.length,r):i}let j="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(2147483648*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,n){let o=this._o(n);return this._d("line",[k(t,e,r,i,o)],o)}rectangle(t,e,r,i,n){let o=this._o(n),a=[],s=C([[t,e],[t+r,e],[t+r,e+i],[t,e+i]],!0,o);if(o.fill){let n=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===o.fillStyle?a.push(M([n],o)):a.push(B([n],o))}return o.stroke!==j&&a.push(s),this._d("rectangle",a,o)}ellipse(t,e,r,i,n){let o=this._o(n),a=[],s=v(r,i,o),l=w(t,e,o,s);if(o.fill){if("solid"===o.fillStyle){let r=w(t,e,o,s).opset;r.type="fillPath",a.push(r)}else a.push(B([l.estimatedPoints],o))}return o.stroke!==j&&a.push(l.opset),this._d("ellipse",a,o)}circle(t,e,r,i){let n=this.ellipse(t,e,r,r,i);return n.shape="circle",n}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[C(t,!1,r)],r)}arc(t,e,r,i,n,o,a=!1,s){let l=this._o(s),h=[],c=T(t,e,r,i,n,o,a,!0,l);if(a&&l.fill){if("solid"===l.fillStyle){let a=Object.assign({},l);a.disableMultiStroke=!0;let s=T(t,e,r,i,n,o,!0,!1,a);s.type="fillPath",h.push(s)}else h.push(function(t,e,r,i,n,o,a){let s=Math.abs(r/2),l=Math.abs(i/2);s+=W(.01*s,a),l+=W(.01*l,a);let h=n,c=o;for(;h<0;)h+=2*Math.PI,c+=2*Math.PI;c-h>2*Math.PI&&(h=0,c=2*Math.PI);let u=(c-h)/a.curveStepCount,d=[];for(let r=h;r<=c;r+=u)d.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return d.push([t+s*Math.cos(c),e+l*Math.sin(c)]),d.push([t,e]),B([d],a)}(t,e,r,i,n,o,l))}return l.stroke!==j&&h.push(c),this._d("arc",h,l)}curve(t,e){let r=this._o(e),i=[],n=_(t,r);if(r.fill&&r.fill!==j){if("solid"===r.fillStyle){let e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let i of"number"==typeof t[0][0]?[t]:t)i.length<3?e.push(...i):3===i.length?e.push(...R(z([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...R(z(i),10,(1+r.roughness)/2));e.length&&i.push(B([e],r))}}return r.stroke!==j&&i.push(n),this._d("curve",i,r)}polygon(t,e){let r=this._o(e),i=[],n=C(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(M([t],r)):i.push(B([t],r))),r.stroke!==j&&i.push(n),this._d("polygon",i,r)}path(t,e){let r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let n=r.fill&&"transparent"!==r.fill&&r.fill!==j,o=r.stroke!==j,a=!!(r.simplification&&r.simplification<1),s=function(t,e,r){let i=y(m(g(t))),n=[],o=[],a=[0,0],s=[],l=()=>{s.length>=4&&o.push(...R(s,1)),s=[]},h=()=>{l(),o.length&&(n.push(o),o=[])};for(let{key:t,data:e}of i)switch(t){case"M":h(),a=[e[0],e[1]],o.push(a);break;case"L":l(),o.push([e[0],e[1]]);break;case"C":if(!s.length){let t=o.length?o[o.length-1]:a;s.push([t[0],t[1]])}s.push([e[0],e[1]]),s.push([e[2],e[3]]),s.push([e[4],e[5]]);break;case"Z":l(),o.push([a[0],a[1]])}if(h(),!r)return n;let c=[];for(let t of n){let e=P(t,0,t.length,r);e.length&&c.push(e)}return c}(t,0,a?4-4*(r.simplification||1):(1+r.roughness)/2),l=S(t,r);if(n){if("solid"===r.fillStyle){if(1===s.length){let e=S(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(M(s,r))}else i.push(B(s,r))}return o&&(a?s.forEach(t=>{i.push(C(t,!1,r))}):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(let i of t.ops){let t="number"==typeof e&&e>=0?i.data.map(t=>+t.toFixed(e)):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:j};break;case"fillPath":e={d:this.opsToPath(t),stroke:j,strokeWidth:0,fill:r.fill||j};break;case"fillSketch":e=this.fillSketch(t,r)}e&&i.push(e)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||j,strokeWidth:r,fill:j}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class U{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,n=t.options.fixedDecimalPlaceDigits;for(let o of e)switch(o.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,o,n),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(i,o,n,e),i.restore();break}case"fillSketch":this.fillSketch(i,o,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){for(let i of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?i.data.map(t=>+t.toFixed(r)):i.data;switch(i.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,n){let o=this.gen.line(t,e,r,i,n);return this.draw(o),o}rectangle(t,e,r,i,n){let o=this.gen.rectangle(t,e,r,i,n);return this.draw(o),o}ellipse(t,e,r,i,n){let o=this.gen.ellipse(t,e,r,i,n);return this.draw(o),o}circle(t,e,r,i){let n=this.gen.circle(t,e,r,i);return this.draw(n),n}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,n,o,a=!1,s){let l=this.gen.arc(t,e,r,i,n,o,a,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let Y="http://www.w3.org/2000/svg";class G{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,n=i.createElementNS(Y,"g"),o=t.options.fixedDecimalPlaceDigits;for(let a of e){let e=null;switch(a.type){case"path":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(a,o)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=i.createElementNS(Y,"path")).setAttribute("d",this.opsToPath(a,o)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,a,r)}e&&n.appendChild(e)}return n}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);let n=t.createElementNS(Y,"path");return n.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),n.setAttribute("stroke",r.fill||""),n.setAttribute("stroke-width",i+""),n.setAttribute("fill","none"),r.fillLineDash&&n.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&n.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),n}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,n){let o=this.gen.line(t,e,r,i,n);return this.draw(o)}rectangle(t,e,r,i,n){let o=this.gen.rectangle(t,e,r,i,n);return this.draw(o)}ellipse(t,e,r,i,n){let o=this.gen.ellipse(t,e,r,i,n);return this.draw(o)}circle(t,e,r,i){let n=this.gen.circle(t,e,r,i);return this.draw(n)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,n,o,a=!1,s){let l=this.gen.arc(t,e,r,i,n,o,a,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var V={canvas:(t,e)=>new U(t,e),svg:(t,e)=>new G(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},69553:function(t,e,r){"use strict";function i(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from("string"==typeof t?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!==(r=null===(e=t.match(/[\t ]/g))||void 0===e?void 0:e.length)&&void 0!==r?r:0})):t},[]);if(n.length){var o=RegExp("\n[ ]{"+Math.min.apply(Math,n)+"}","g");i=i.map(function(t){return t.replace(o,"\n")})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(t,e){var r=a.match(/(?:^|\n)( *)$/),n=r?r[1]:"",o=t;"string"==typeof t&&t.includes("\n")&&(o=String(t).split("\n").map(function(t,e){return 0===e?t:""+n+t}).join("\n")),a+=o+i[e+1]}),a}r.d(e,{Z:function(){return i}})},84370:function(t,e,r){"use strict";function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let i=-1;for(let n of t)null!=(n=e(n,++i,t))&&(r<n||void 0===r&&n>=n)&&(r=n)}return r}function n(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let i=-1;for(let n of t)null!=(n=e(n,++i,t))&&(r>n||void 0===r&&n>=n)&&(r=n)}return r}function o(t){return t}function a(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function h(t,e){var r=[],i=null,n=null,h=6,c=6,u=3,d="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,p=1===t||4===t?-1:1,f=4===t||2===t?"x":"y",g=1===t||3===t?a:s;function m(a){var s=null==i?e.ticks?e.ticks.apply(e,r):e.domain():i,m=null==n?e.tickFormat?e.tickFormat.apply(e,r):o:n,y=Math.max(h,0)+u,x=e.range(),b=+x[0]+d,k=+x[x.length-1]+d,C=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),d),_=a.selection?a.selection():a,v=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(s,e).order(),T=w.exit(),S=w.enter().append("g").attr("class","tick"),M=w.select("line"),B=w.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(S),M=M.merge(S.append("line").attr("stroke","currentColor").attr(f+"2",p*h)),B=B.merge(S.append("text").attr("fill","currentColor").attr(f,p*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),a!==_&&(v=v.transition(a),w=w.transition(a),M=M.transition(a),B=B.transition(a),T=T.transition(a).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=C(t))?g(t+d):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:C(t))+d)})),T.remove(),v.attr("d",4===t||2===t?c?"M"+p*c+","+b+"H"+d+"V"+k+"H"+p*c:"M"+d+","+b+"V"+k:c?"M"+b+","+p*c+"V"+d+"H"+k+"V"+p*c:"M"+b+","+d+"H"+k),w.attr("opacity",1).attr("transform",function(t){return g(C(t)+d)}),M.attr(f+"2",p*h),B.attr(f,p*y).text(m),_.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),_.each(function(){this.__axis=C})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(i=null==t?null:Array.from(t),m):i&&i.slice()},m.tickFormat=function(t){return arguments.length?(n=t,m):n},m.tickSize=function(t){return arguments.length?(h=c=+t,m):h},m.tickSizeInner=function(t){return arguments.length?(h=+t,m):h},m.tickSizeOuter=function(t){return arguments.length?(c=+t,m):c},m.tickPadding=function(t){return arguments.length?(u=+t,m):u},m.offset=function(t){return arguments.length?(d=+t,m):d},m}function c(t){return h(1,t)}function u(t){return h(3,t)}function d(){}function p(t){return null==t?d:function(){return this.querySelector(t)}}function f(){return[]}function g(t){return null==t?f:function(){return this.querySelectorAll(t)}}function m(t){return function(){return this.matches(t)}}function y(t){return function(e){return e.matches(t)}}r.d(e,{Nb1:function(){return nY},LLu:function(){return u},F5q:function(){return c},$0Z:function(){return n4},Dts:function(){return n9},WQY:function(){return ot},qpX:function(){return or},u93:function(){return oi},tFB:function(){return oo},YY7:function(){return ol},OvA:function(){return oc},dCK:function(){return od},zgE:function(){return og},fGX:function(){return oy},$m7:function(){return ob},c_6:function(){return nX},fxm:function(){return oC},FdL:function(){return oB},ak_:function(){return oL},SxZ:function(){return oW},eA_:function(){return oO},jsv:function(){return oI},iJ:function(){return o$},WUZ:function(){return ta},bT9:function(){return eP},JHv:function(){return ro},jvg:function(){return nJ},Fp7:function(){return i},VV$:function(){return n},ve8:function(){return n2},tiA:function(){return function t(){var e,r,i=ru().unknown(void 0),n=i.domain,o=i.range,a=0,s=1,l=!1,h=0,c=0,u=.5;function d(){var t=n().length,i=s<a,d=i?s:a,p=i?a:s;e=(p-d)/Math.max(1,t-h+2*c),l&&(e=Math.floor(e)),d+=(p-d-e*(t-h))*u,r=e*(1-h),l&&(d=Math.round(d),r=Math.round(r));var f=(function(t,e,r){t=+t,e=+e,r=(n=arguments.length)<2?(e=t,t=0,1):n<3?1:+r;for(var i=-1,n=0|Math.max(0,Math.ceil((e-t)/r)),o=Array(n);++i<n;)o[i]=t+i*r;return o})(t).map(function(t){return d+e*t});return o(i?f.reverse():f)}return delete i.unknown,i.domain=function(t){return arguments.length?(n(t),d()):n()},i.range=function(t){return arguments.length?([a,s]=t,a=+a,s=+s,d()):[a,s]},i.rangeRound=function(t){return[a,s]=t,a=+a,s=+s,l=!0,d()},i.bandwidth=function(){return r},i.step=function(){return e},i.round=function(t){return arguments.length?(l=!!t,d()):l},i.padding=function(t){return arguments.length?(h=Math.min(1,c=+t),d()):h},i.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),d()):h},i.paddingOuter=function(t){return arguments.length?(c=+t,d()):c},i.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),d()):u},i.copy=function(){return t(n(),[a,s]).round(l).paddingInner(h).paddingOuter(c).align(u)},ra.apply(d(),arguments)}},BYU:function(){return function t(){var e,r=rW();return r.copy=function(){return rA(r,t())},ra.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e=+e,t=+t,!((r=+r)>0))return[];if(t===e)return[t];let i=e<t,[n,o,a]=i?rg(e,t,r):rg(t,e,r);if(!(o>=n))return[];let s=o-n+1,l=Array(s);if(i){if(a<0)for(let t=0;t<s;++t)l[t]=-((o-t)/a);else for(let t=0;t<s;++t)l[t]=(o-t)*a}else if(a<0)for(let t=0;t<s;++t)l[t]=-((n+t)/a);else for(let t=0;t<s;++t)l[t]=(n+t)*a;return l}(r[0],r[r.length-1],null==t?10:t)},r.tickFormat=function(t,r){var i=e();return function(t,e,r,i){var n,o,a=ry(t,e,r);switch((i=eO(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eW(s)/3)))-eW(Math.abs(a))))||(i.precision=o),ts(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Math.max(0,eW(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(n=Math.abs(n=a)))-eW(n))+1)||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Math.max(0,-eW(Math.abs(a))))||(i.precision=o-("%"===i.type)*2)}return ta(i)}(i[0],i[i.length-1],null==t?10:t,r)},r.nice=function(t){null==t&&(t=10);var i,n,o=e(),a=0,s=o.length-1,l=o[a],h=o[s],c=10;for(h<l&&(n=l,l=h,h=n,n=a,a=s,s=n);c-- >0;){if((n=rm(l,h,t))===i)return o[a]=l,o[s]=h,e(o);if(n>0)l=Math.floor(l/n)*n,h=Math.ceil(h/n)*n;else if(n<0)l=Math.ceil(l*n)/n,h=Math.floor(h*n)/n;else break;i=n}return r},r}},PKp:function(){return ru},Xf:function(){return nk},K2I:function(){return nC},Ys:function(){return n_},rr1:function(){return rP},i$Z:function(){return th},y2j:function(){return rQ},WQD:function(){return rq},U8T:function(){return rI},Z_i:function(){return rZ},Ox9:function(){return rY},F0B:function(){return r8},LqH:function(){return rK},S1K:function(){return rD},Zyz:function(){return rU},Igq:function(){return rX},YDX:function(){return rG},EFj:function(){return rV},pNI:function(){return eK}});var x=Array.prototype.find;function b(){return this.firstElementChild}var k=Array.prototype.filter;function C(){return Array.from(this.children)}function _(t){return Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function w(t,e,r,i,n,o){for(var a,s=0,l=e.length,h=o.length;s<h;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):r[s]=new v(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function T(t,e,r,i,n,o,a){var s,l,h,c=new Map,u=e.length,d=o.length,p=Array(u);for(s=0;s<u;++s)(l=e[s])&&(p[s]=h=a.call(l,l.__data__,s,e)+"",c.has(h)?n[s]=l:c.set(h,l));for(s=0;s<d;++s)h=a.call(t,o[s],s,o)+"",(l=c.get(h))?(i[s]=l,l.__data__=o[s],c.delete(h)):r[s]=new v(t,o[s]);for(s=0;s<u;++s)(l=e[s])&&c.get(p[s])===l&&(n[s]=l)}function S(t){return t.__data__}function M(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var B="http://www.w3.org/1999/xhtml",L={svg:"http://www.w3.org/2000/svg",xhtml:B,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function F(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),L.hasOwnProperty(e)?{space:L[e],local:t}:t}function A(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function W(t,e){return t.style.getPropertyValue(e)||A(t).getComputedStyle(t,null).getPropertyValue(e)}function E(t){return t.trim().split(/^|\s+/)}function O(t){return t.classList||new $(t)}function $(t){this._node=t,this._names=E(t.getAttribute("class")||"")}function I(t,e){for(var r=O(t),i=-1,n=e.length;++i<n;)r.add(e[i])}function D(t,e){for(var r=O(t),i=-1,n=e.length;++i<n;)r.remove(e[i])}function Z(){this.textContent=""}function z(){this.innerHTML=""}function q(){this.nextSibling&&this.parentNode.appendChild(this)}function N(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function P(t){var e=F(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===B&&e.documentElement.namespaceURI===B?e.createElement(t):e.createElementNS(r,t)}})(e)}function R(){return null}function j(){var t=this.parentNode;t&&t.removeChild(this)}function H(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function U(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Y(t){return function(){var e=this.__on;if(e){for(var r,i=0,n=-1,o=e.length;i<o;++i)(r=e[i],t.type&&r.type!==t.type||r.name!==t.name)?e[++n]=r:this.removeEventListener(r.type,r.listener,r.options);++n?e.length=n:delete this.__on}}}function G(t,e,r){return function(){var i,n=this.__on,o=function(t){e.call(this,t,this.__data__)};if(n){for(var a=0,s=n.length;a<s;++a)if((i=n[a]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=r),i.value=e;return}}this.addEventListener(t.type,o,r),i={type:t.type,name:t.name,value:e,listener:o,options:r},n?n.push(i):this.__on=[i]}}function V(t,e,r){var i=A(t),n=i.CustomEvent;"function"==typeof n?n=new n(e,r):(n=i.document.createEvent("Event"),r?(n.initEvent(e,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}$.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var X=[null];function Q(t,e){this._groups=t,this._parents=e}function K(){return new Q([[document.documentElement]],X)}Q.prototype=K.prototype={constructor:Q,select:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,r=e.length,i=Array(r),n=0;n<r;++n)for(var o,a,s=e[n],l=s.length,h=i[n]=Array(l),c=0;c<l;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),h[c]=a);return new Q(i,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=g(t);for(var r=this._groups,i=r.length,n=[],o=[],a=0;a<i;++a)for(var s,l=r[a],h=l.length,c=0;c<h;++c)(s=l[c])&&(n.push(t.call(s,s.__data__,c,l)),o.push(s));return new Q(n,o)},selectChild:function(t){var e;return this.select(null==t?b:(e="function"==typeof t?t:y(t),function(){return x.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?C:(e="function"==typeof t?t:y(t),function(){return k.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,r=e.length,i=Array(r),n=0;n<r;++n)for(var o,a=e[n],s=a.length,l=i[n]=[],h=0;h<s;++h)(o=a[h])&&t.call(o,o.__data__,h,a)&&l.push(o);return new Q(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,S);var r=e?T:w,i=this._parents,n=this._groups;"function"!=typeof t&&(x=t,t=function(){return x});for(var o=n.length,a=Array(o),s=Array(o),l=Array(o),h=0;h<o;++h){var c=i[h],u=n[h],d=u.length,p="object"==typeof(y=t.call(c,c&&c.__data__,h,i))&&"length"in y?y:Array.from(y),f=p.length,g=s[h]=Array(f),m=a[h]=Array(f);r(c,u,g,m,l[h]=Array(d),p,e);for(var y,x,b,k,C=0,_=0;C<f;++C)if(b=g[C]){for(C>=_&&(_=C+1);!(k=m[_])&&++_<f;);b._next=k||null}}return(a=new Q(a,i))._enter=s,a._exit=l,a},enter:function(){return new Q(this._enter||this._groups.map(_),this._parents)},exit:function(){return new Q(this._exit||this._groups.map(_),this._parents)},join:function(t,e,r){var i=this.enter(),n=this,o=this.exit();return"function"==typeof t?(i=t(i))&&(i=i.selection()):i=i.append(t+""),null!=e&&(n=e(n))&&(n=n.selection()),null==r?o.remove():r(o),i&&n?i.merge(n).order():n},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,i=e._groups,n=r.length,o=i.length,a=Math.min(n,o),s=Array(n),l=0;l<a;++l)for(var h,c=r[l],u=i[l],d=c.length,p=s[l]=Array(d),f=0;f<d;++f)(h=c[f]||u[f])&&(p[f]=h);for(;l<n;++l)s[l]=r[l];return new Q(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var i,n=t[e],o=n.length-1,a=n[o];--o>=0;)(i=n[o])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=M);for(var r=this._groups,i=r.length,n=Array(i),o=0;o<i;++o){for(var a,s=r[o],l=s.length,h=n[o]=Array(l),c=0;c<l;++c)(a=s[c])&&(h[c]=a);h.sort(e)}return new Q(n,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i=t[e],n=0,o=i.length;n<o;++n){var a=i[n];if(a)return a}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,i=e.length;r<i;++r)for(var n,o=e[r],a=0,s=o.length;a<s;++a)(n=o[a])&&t.call(n,n.__data__,a,o);return this},attr:function(t,e){var r=F(t);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((null==e?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?r.local?function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}:function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}:r.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):W(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=E(t+"");if(arguments.length<2){for(var i=O(this.node()),n=-1,o=r.length;++n<o;)if(!i.contains(r[n]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?I:D)(this,t)}}:e?function(t){return function(){I(this,t)}}:function(t){return function(){D(this,t)}})(r,e))},text:function(t){return arguments.length?this.each(null==t?Z:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?z:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(q)},lower:function(){return this.each(N)},append:function(t){var e="function"==typeof t?t:P(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:P(t),i=null==e?R:"function"==typeof e?e:p(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(j)},clone:function(t){return this.select(t?U:H)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var i,n,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),a=o.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,h=0,c=s.length;h<c;++h)for(i=0,l=s[h];i<a;++i)if((n=o[i]).type===l.type&&n.name===l.name)return l.value}return}for(i=0,s=e?G:Y;i<a;++i)this.each(s(o[i],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return V(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return V(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var i,n=t[e],o=0,a=n.length;o<a;++o)(i=n[o])&&(yield i)}};var J={value:()=>{}};function tt(){for(var t,e=0,r=arguments.length,i={};e<r;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw Error("illegal type: "+t);i[t]=[]}return new te(i)}function te(t){this._=t}function tr(t,e,r){for(var i=0,n=t.length;i<n;++i)if(t[i].name===e){t[i]=J,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=r&&t.push({name:e,value:r}),t}te.prototype=tt.prototype={constructor:te,on:function(t,e){var r,i=this._,n=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!i.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),o=-1,a=n.length;if(arguments.length<2){for(;++o<a;)if((r=(t=n[o]).type)&&(r=function(t,e){for(var r,i=0,n=t.length;i<n;++i)if((r=t[i]).name===e)return r.value}(i[r],t.name)))return r;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<a;)if(r=(t=n[o]).type)i[r]=tr(i[r],t.name,e);else if(null==e)for(r in i)i[r]=tr(i[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new te(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,i,n=Array(r),o=0;o<r;++o)n[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(i=this._[t],o=0,r=i.length;o<r;++o)i[o].value.apply(e,n)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var i=this._[t],n=0,o=i.length;n<o;++n)i[n].value.apply(e,r)}};var ti,tn,to,ta,ts,tl,th,tc,tu,td=0,tp=0,tf=0,tg=0,tm=0,ty=0,tx="object"==typeof performance&&performance.now?performance:Date,tb="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function tk(){return tm||(tb(tC),tm=tx.now()+ty)}function tC(){tm=0}function t_(){this._call=this._time=this._next=null}function tv(t,e,r){var i=new t_;return i.restart(t,e,r),i}function tw(){tm=(tg=tx.now())+ty,td=tp=0;try{!function(){tk(),++td;for(var t,e=tc;e;)(t=tm-e._time)>=0&&e._call.call(void 0,t),e=e._next;--td}()}finally{td=0,function(){for(var t,e,r=tc,i=1/0;r;)r._call?(i>r._time&&(i=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:tc=e);tu=t,tS(i)}(),tm=0}}function tT(){var t=tx.now(),e=t-tg;e>1e3&&(ty-=e,tg=t)}function tS(t){!td&&(tp&&(tp=clearTimeout(tp)),t-tm>24?(t<1/0&&(tp=setTimeout(tw,t-tx.now()-ty)),tf&&(tf=clearInterval(tf))):(tf||(tg=tx.now(),tf=setInterval(tT,1e3)),td=1,tb(tw)))}function tM(t,e,r){var i=new t_;return e=null==e?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,r),i}t_.prototype=tv.prototype={constructor:t_,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?tk():+r)+(null==e?0:+e),this._next||tu===this||(tu?tu._next=this:tc=this,tu=this),this._call=t,this._time=r,tS()},stop:function(){this._call&&(this._call=null,this._time=1/0,tS())}};var tB=tt("start","end","cancel","interrupt"),tL=[];function tF(t,e,r,i,n,o){var a=t.__transition;if(a){if(r in a)return}else t.__transition={};!function(t,e,r){var i,n=t.__transition;function o(l){var h,c,u,d;if(1!==r.state)return s();for(h in n)if((d=n[h]).name===r.name){if(3===d.state)return tM(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[h]):+h<e&&(d.state=6,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete n[h])}if(tM(function(){3===r.state&&(r.state=4,r.timer.restart(a,r.delay,r.time),a(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(h=0,r.state=3,i=Array(u=r.tween.length),c=-1;h<u;++h)(d=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(i[++c]=d);i.length=c+1}}function a(e){for(var n=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1),o=-1,a=i.length;++o<a;)i[o].call(t,n);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var i in r.state=6,r.timer.stop(),delete n[e],n)return;delete t.__transition}n[e]=r,r.timer=tv(function(t){r.state=1,r.timer.restart(o,r.delay,r.time),r.delay<=t&&o(t-r.delay)},0,r.time)}(t,r,{name:e,index:i,group:n,on:tB,tween:tL,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function tA(t,e){var r=tE(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function tW(t,e){var r=tE(t,e);if(r.state>3)throw Error("too late; already running");return r}function tE(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tO(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var t$=180/Math.PI,tI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tD(t,e,r,i,n,o){var a,s,l;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(l=t*r+e*i)&&(r-=t*l,i-=e*l),(s=Math.sqrt(r*r+i*i))&&(r/=s,i/=s,l/=s),t*i<e*r&&(t=-t,e=-e,l=-l,a=-a),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*t$,skewX:Math.atan(l)*t$,scaleX:a,scaleY:s}}function tZ(t,e,r,i){function n(t){return t.length?t.pop()+" ":""}return function(o,a){var s,l,h,c,u=[],d=[];return o=t(o),a=t(a),!function(t,i,n,o,a,s){if(t!==n||i!==o){var l=a.push("translate(",null,e,null,r);s.push({i:l-4,x:tO(t,n)},{i:l-2,x:tO(i,o)})}else(n||o)&&a.push("translate("+n+e+o+r)}(o.translateX,o.translateY,a.translateX,a.translateY,u,d),(s=o.rotate)!==(l=a.rotate)?(s-l>180?l+=360:l-s>180&&(s+=360),d.push({i:u.push(n(u)+"rotate(",null,i)-2,x:tO(s,l)})):l&&u.push(n(u)+"rotate("+l+i),(h=o.skewX)!==(c=a.skewX)?d.push({i:u.push(n(u)+"skewX(",null,i)-2,x:tO(h,c)}):c&&u.push(n(u)+"skewX("+c+i),!function(t,e,r,i,o,a){if(t!==r||e!==i){var s=o.push(n(o)+"scale(",null,",",null,")");a.push({i:s-4,x:tO(t,r)},{i:s-2,x:tO(e,i)})}else(1!==r||1!==i)&&o.push(n(o)+"scale("+r+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,d),o=a=null,function(t){for(var e,r=-1,i=d.length;++r<i;)u[(e=d[r]).i]=e.x(t);return u.join("")}}}var tz=tZ(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tI:tD(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tq=tZ(function(t){return null==t?tI:(ti||(ti=document.createElementNS("http://www.w3.org/2000/svg","g")),ti.setAttribute("transform",t),t=ti.transform.baseVal.consolidate())?tD((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tI},", ",")",")");function tN(t,e,r){var i=t._id;return t.each(function(){var t=tW(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tE(t,i).value[e]}}function tP(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function tR(t,e){var r=Object.create(t.prototype);for(var i in e)r[i]=e[i];return r}function tj(){}var tH="\\s*([+-]?\\d+)\\s*",tU="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tY="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tG=/^#([0-9a-f]{3,8})$/,tV=RegExp(`^rgb\\(${tH},${tH},${tH}\\)$`),tX=RegExp(`^rgb\\(${tY},${tY},${tY}\\)$`),tQ=RegExp(`^rgba\\(${tH},${tH},${tH},${tU}\\)$`),tK=RegExp(`^rgba\\(${tY},${tY},${tY},${tU}\\)$`),tJ=RegExp(`^hsl\\(${tU},${tY},${tY}\\)$`),t0=RegExp(`^hsla\\(${tU},${tY},${tY},${tU}\\)$`),t1={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function t2(){return this.rgb().formatHex()}function t3(){return this.rgb().formatRgb()}function t5(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tG.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?t6(e):3===r?new t7(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t4(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t4(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tV.exec(t))?new t7(e[1],e[2],e[3],1):(e=tX.exec(t))?new t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tQ.exec(t))?t4(e[1],e[2],e[3],e[4]):(e=tK.exec(t))?t4(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tJ.exec(t))?eo(e[1],e[2]/100,e[3]/100,1):(e=t0.exec(t))?eo(e[1],e[2]/100,e[3]/100,e[4]):t1.hasOwnProperty(t)?t6(t1[t]):"transparent"===t?new t7(NaN,NaN,NaN,0):null}function t6(t){return new t7(t>>16&255,t>>8&255,255&t,1)}function t4(t,e,r,i){return i<=0&&(t=e=r=NaN),new t7(t,e,r,i)}function t8(t){return(t instanceof tj||(t=t5(t)),t)?new t7((t=t.rgb()).r,t.g,t.b,t.opacity):new t7}function t9(t,e,r,i){return 1==arguments.length?t8(t):new t7(t,e,r,null==i?1:i)}function t7(t,e,r,i){this.r=+t,this.g=+e,this.b=+r,this.opacity=+i}function et(){return`#${en(this.r)}${en(this.g)}${en(this.b)}`}function ee(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${ei(this.r)}, ${ei(this.g)}, ${ei(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ei(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function en(t){return((t=ei(t))<16?"0":"")+t.toString(16)}function eo(t,e,r,i){return i<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new es(t,e,r,i)}function ea(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof tj||(t=t5(t)),!t)return new es;if(t instanceof es)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,n=Math.min(e,r,i),o=Math.max(e,r,i),a=NaN,s=o-n,l=(o+n)/2;return s?(a=e===o?(r-i)/s+(r<i)*6:r===o?(i-e)/s+2:(e-r)/s+4,s/=l<.5?o+n:2-o-n,a*=60):s=l>0&&l<1?0:a,new es(a,s,l,t.opacity)}function es(t,e,r,i){this.h=+t,this.s=+e,this.l=+r,this.opacity=+i}function el(t){return(t=(t||0)%360)<0?t+360:t}function eh(t){return Math.max(0,Math.min(1,t||0))}function ec(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function eu(t,e,r,i,n){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*r+(1+3*t+3*o-3*a)*i+a*n)/6}tP(tj,t5,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t2,formatHex:t2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ea(this).formatHsl()},formatRgb:t3,toString:t3}),tP(t7,t9,tR(tj,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t7(ei(this.r),ei(this.g),ei(this.b),er(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:et,formatHex:et,formatHex8:function(){return`#${en(this.r)}${en(this.g)}${en(this.b)}${en((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ee,toString:ee})),tP(es,function(t,e,r,i){return 1==arguments.length?ea(t):new es(t,e,r,null==i?1:i)},tR(tj,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new es(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*e,n=2*r-i;return new t7(ec(t>=240?t-240:t+120,n,i),ec(t,n,i),ec(t<120?t+240:t-120,n,i),this.opacity)},clamp(){return new es(el(this.h),eh(this.s),eh(this.l),er(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=er(this.opacity);return`${1===t?"hsl(":"hsla("}${el(this.h)}, ${100*eh(this.s)}%, ${100*eh(this.l)}%${1===t?")":`, ${t})`}`}}));var ed=t=>()=>t;function ep(t,e){return function(r){return t+r*e}}function ef(t,e){var r=e-t;return r?ep(t,r):ed(isNaN(t)?e:t)}var eg=function t(e){var r,i=1==(r=+(r=e))?ef:function(t,e){var i,n,o;return e-t?(i=t,n=e,i=Math.pow(i,o=r),n=Math.pow(n,o)-i,o=1/o,function(t){return Math.pow(i+t*n,o)}):ed(isNaN(t)?e:t)};function n(t,e){var r=i((t=t9(t)).r,(e=t9(e)).r),n=i(t.g,e.g),o=i(t.b,e.b),a=ef(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=n(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function em(t){return function(e){var r,i,n=e.length,o=Array(n),a=Array(n),s=Array(n);for(r=0;r<n;++r)i=t9(e[r]),o[r]=i.r||0,a[r]=i.g||0,s[r]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}em(function(t){var e=t.length-1;return function(r){var i=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[i],o=t[i+1],a=i>0?t[i-1]:2*n-o,s=i<e-1?t[i+2]:2*o-n;return eu((r-i/e)*e,a,n,o,s)}}),em(function(t){var e=t.length;return function(r){var i=Math.floor(((r%=1)<0?++r:r)*e),n=t[(i+e-1)%e],o=t[i%e],a=t[(i+1)%e],s=t[(i+2)%e];return eu((r-i/e)*e,n,o,a,s)}});var ey=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ex=RegExp(ey.source,"g");function eb(t,e){var r,i,n,o,a,s=ey.lastIndex=ex.lastIndex=0,l=-1,h=[],c=[];for(t+="",e+="";(n=ey.exec(t))&&(o=ex.exec(e));)(a=o.index)>s&&(a=e.slice(s,a),h[l]?h[l]+=a:h[++l]=a),(n=n[0])===(o=o[0])?h[l]?h[l]+=o:h[++l]=o:(h[++l]=null,c.push({i:l,x:tO(n,o)})),s=ex.lastIndex;return s<e.length&&(a=e.slice(s),h[l]?h[l]+=a:h[++l]=a),h.length<2?c[0]?(r=c[0].x,function(t){return r(t)+""}):(i=e,function(){return i}):(e=c.length,function(t){for(var r,i=0;i<e;++i)h[(r=c[i]).i]=r.x(t);return h.join("")})}function ek(t,e){var r;return("number"==typeof e?tO:e instanceof t5?eg:(r=t5(e))?(e=r,eg):eb)(t,e)}var eC=K.prototype.constructor;function e_(t){return function(){this.style.removeProperty(t)}}var ev=0;function ew(t,e,r,i){this._groups=t,this._parents=e,this._name=r,this._id=i}var eT=K.prototype;ew.prototype=(function(t){return K().transition(t)}).prototype={constructor:ew,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=p(t));for(var i=this._groups,n=i.length,o=Array(n),a=0;a<n;++a)for(var s,l,h=i[a],c=h.length,u=o[a]=Array(c),d=0;d<c;++d)(s=h[d])&&(l=t.call(s,s.__data__,d,h))&&("__data__"in s&&(l.__data__=s.__data__),u[d]=l,tF(u[d],e,r,d,u,tE(s,r)));return new ew(o,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=g(t));for(var i=this._groups,n=i.length,o=[],a=[],s=0;s<n;++s)for(var l,h=i[s],c=h.length,u=0;u<c;++u)if(l=h[u]){for(var d,p=t.call(l,l.__data__,u,h),f=tE(l,r),m=0,y=p.length;m<y;++m)(d=p[m])&&tF(d,e,r,m,p,f);o.push(p),a.push(l)}return new ew(o,a,e,r)},selectChild:eT.selectChild,selectChildren:eT.selectChildren,filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,r=e.length,i=Array(r),n=0;n<r;++n)for(var o,a=e[n],s=a.length,l=i[n]=[],h=0;h<s;++h)(o=a[h])&&t.call(o,o.__data__,h,a)&&l.push(o);return new ew(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,r=t._groups,i=e.length,n=r.length,o=Math.min(i,n),a=Array(i),s=0;s<o;++s)for(var l,h=e[s],c=r[s],u=h.length,d=a[s]=Array(u),p=0;p<u;++p)(l=h[p]||c[p])&&(d[p]=l);for(;s<i;++s)a[s]=e[s];return new ew(a,this._parents,this._name,this._id)},selection:function(){return new eC(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=++ev,i=this._groups,n=i.length,o=0;o<n;++o)for(var a,s=i[o],l=s.length,h=0;h<l;++h)if(a=s[h]){var c=tE(a,e);tF(a,t,r,h,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new ew(i,this._parents,t,r)},call:eT.call,nodes:eT.nodes,node:eT.node,size:eT.size,empty:eT.empty,each:eT.each,on:function(t,e){var r,i,n,o=this._id;return arguments.length<2?tE(this.node(),o).on.on(t):this.each((n=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tA:tW,function(){var a=n(this,o),s=a.on;s!==r&&(i=(r=s).copy()).on(t,e),a.on=i}))},attr:function(t,e){var r=F(t),i="transform"===r?tq:ek;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var i,n,o;return function(){var a,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(a=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:a===i&&s===n?o:(n=s,o=e(i=a,l))}}:function(t,e,r){var i,n,o;return function(){var a,s,l=r(this);return null==l?void this.removeAttribute(t):(a=this.getAttribute(t))===(s=l+"")?null:a===i&&s===n?o:(n=s,o=e(i=a,l))}})(r,i,tN(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var i,n,o=r+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?n:n=e(i=a,r)}}:function(t,e,r){var i,n,o=r+"";return function(){var a=this.getAttribute(t);return a===o?null:a===i?n:n=e(i=a,r)}})(r,i,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var i=F(t);return this.tween(r,(i.local?function(t,e){var r,i;function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}),r}return n._value=e,n}:function(t,e){var r,i;function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(e){this.setAttribute(t,n.call(this,e))}),r}return n._value=e,n})(i,e))},style:function(t,e,r){var i,n,o,a,s,l,h,c,u,d,p,f,g,m,y,x,b,k,C,_,v,w="transform"==(t+="")?tz:ek;return null==e?this.styleTween(t,(i=t,function(){var t=W(this,i),e=(this.style.removeProperty(i),W(this,i));return t===e?null:t===n&&e===o?a:a=w(n=t,o=e)})).on("end.style."+t,e_(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tN(this,"style."+t,e),function(){var t=W(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=W(this,s)),t===r?null:t===h&&r===c?u:(c=r,u=w(h=t,e))})).each((d=this._id,b="end."+(x="style."+(p=t)),function(){var t=tW(this,d),e=t.on,r=null==t.value[x]?y||(y=e_(p)):void 0;(e!==f||m!==r)&&(g=(f=e).copy()).on(b,m=r),t.on=g})):this.styleTween(t,(k=t,v=e+"",function(){var t=W(this,k);return t===v?null:t===C?_:_=w(C=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw Error();return this.tween(i,function(t,e,r){var i,n;function o(){var o=e.apply(this,arguments);return o!==n&&(i=(n=o)&&function(e){this.style.setProperty(t,o.call(this,e),r)}),i}return o._value=e,o}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tN(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,r;function i(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&function(t){this.textContent=i.call(this,t)}),e}return i._value=t,i}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var i,n=tE(this.node(),r).tween,o=0,a=n.length;o<a;++o)if((i=n[o]).name===t)return i.value;return null}return this.each((null==e?function(t,e){var r,i;return function(){var n=tW(this,t),o=n.tween;if(o!==r){i=r=o;for(var a=0,s=i.length;a<s;++a)if(i[a].name===e){(i=i.slice()).splice(a,1);break}}n.tween=i}}:function(t,e,r){var i,n;if("function"!=typeof r)throw Error();return function(){var o=tW(this,t),a=o.tween;if(a!==i){n=(i=a).slice();for(var s={name:e,value:r},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=s;break}l===h&&n.push(s)}o.tween=n}})(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tA(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tA(this,t).delay=e}})(e,t)):tE(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tW(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tW(this,t).duration=e}})(e,t)):tE(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tW(this,t).ease=e}}(e,t)):tE(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var r=t.apply(this,arguments);if("function"!=typeof r)throw Error();tW(this,e).ease=r}))},end:function(){var t,e,r=this,i=r._id,n=r.size();return new Promise(function(o,a){var s={value:a},l={value:function(){0==--n&&o()}};r.each(function(){var r=tW(this,i),n=r.on;n!==t&&((e=(t=n).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e}),0===n&&o()})},[Symbol.iterator]:eT[Symbol.iterator]};var eS={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};K.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,i,n,o=t.__transition,a=!0;if(o){for(n in e=null==e?null:e+"",o){if((r=o[n]).name!==e){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete o[n]}a&&delete t.__transition}}(this,t)})},K.prototype.transition=function(t){var e,r;t instanceof ew?(e=t._id,t=t._name):(e=++ev,(r=eS).time=tk(),t=null==t?null:t+"");for(var i=this._groups,n=i.length,o=0;o<n;++o)for(var a,s=i[o],l=s.length,h=0;h<l;++h)(a=s[h])&&tF(a,t,e,h,s,r||function(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return r}(a,e));return new ew(i,this._parents,t,e)};let{abs:eM,max:eB,min:eL}=Math;function eF(t){return{type:t}}function eA(t,e){if(!isFinite(t)||0===t)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,r);return[i.length>1?i[0]+i.slice(2):i,+t.slice(r+1)]}function eW(t){return(t=eA(Math.abs(t)))?t[1]:NaN}["w","e"].map(eF),["n","s"].map(eF),["n","w","e","s","nw","ne","sw","se"].map(eF);var eE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eO(t){var e;if(!(e=eE.exec(t)))throw Error("invalid format: "+t);return new e$({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function e$(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eI(t,e){var r=eA(t,e);if(!r)return t+"";var i=r[0],n=r[1];return n<0?"0."+Array(-n).join("0")+i:i.length>n+1?i.slice(0,n+1)+"."+i.slice(n+1):i+Array(n-i.length+2).join("0")}eO.prototype=e$.prototype,e$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var eD={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eI(100*t,e),r:eI,s:function(t,e){var r=eA(t,e);if(!r)return tn=void 0,t.toPrecision(e);var i=r[0],n=r[1],o=n-(tn=3*Math.max(-8,Math.min(8,Math.floor(n/3))))+1,a=i.length;return o===a?i:o>a?i+Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+Array(1-o).join("0")+eA(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function eZ(t){return t}var ez=Array.prototype.map,eq=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eN(t){var e=0,r=t.children,i=r&&r.length;if(i)for(;--i>=0;)e+=r[i].value;else e=1;t.value=e}function eP(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=ej)):void 0===e&&(e=eR);for(var r,i,n,o,a,s=new eY(t),l=[s];r=l.pop();)if((n=e(r.data))&&(a=(n=Array.from(n)).length))for(r.children=n,o=a-1;o>=0;--o)l.push(i=n[o]=new eY(n[o])),i.parent=r,i.depth=r.depth+1;return s.eachBefore(eU)}function eR(t){return t.children}function ej(t){return Array.isArray(t)?t[1]:null}function eH(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eU(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function eY(t){this.data=t,this.depth=this.height=0,this.parent=null}function eG(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}ta=(to=function(t){var e,r,i,n=void 0===t.grouping||void 0===t.thousands?eZ:(e=ez.call(t.grouping,Number),r=t.thousands+"",function(t,i){for(var n=t.length,o=[],a=0,s=e[0],l=0;n>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),o.push(t.substring(n-=s,n+s)),!((l+=s+1)>i));)s=e[a=(a+1)%e.length];return o.reverse().join(r)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eZ:(i=ez.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),h=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function d(t,e){var r=(t=eO(t)).fill,i=t.align,d=t.sign,p=t.symbol,f=t.zero,g=t.width,m=t.comma,y=t.precision,x=t.trim,b=t.type;"n"===b?(m=!0,b="g"):eD[b]||(void 0===y&&(y=12),x=!0,b="g"),(f||"0"===r&&"="===i)&&(f=!0,r="0",i="=");var k=(e&&void 0!==e.prefix?e.prefix:"")+("$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),C=("$"===p?a:/[%p]/.test(b)?h:"")+(e&&void 0!==e.suffix?e.suffix:""),_=eD[b],v=/[defgprs%]/.test(b);function w(t){var e,o,a,h=k,p=C;if("c"===b)p=_(t)+p,t="";else{var w=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),y),x&&(t=function(t){t:for(var e,r=t.length,i=1,n=-1;i<r;++i)switch(t[i]){case".":n=e=i;break;case"0":0===n&&(n=i),e=i;break;default:if(!+t[i])break t;n>0&&(n=0)}return n>0?t.slice(0,n)+t.slice(e+1):t}(t)),w&&0==+t&&"+"!==d&&(w=!1),h=(w?"("===d?d:c:"-"===d||"("===d?"":d)+h,p=("s"!==b||isNaN(t)||void 0===tn?"":eq[8+tn/3])+p+(w&&"("===d?")":""),v){for(e=-1,o=t.length;++e<o;)if(48>(a=t.charCodeAt(e))||a>57){p=(46===a?s+t.slice(e+1):t.slice(e))+p,t=t.slice(0,e);break}}}m&&!f&&(t=n(t,1/0));var T=h.length+t.length+p.length,S=T<g?Array(g-T+1).join(r):"";switch(m&&f&&(t=n(S+t,S.length?g-p.length:1/0),S=""),i){case"<":t=h+t+p+S;break;case"=":t=h+S+t+p;break;case"^":t=S.slice(0,T=S.length>>1)+h+t+p+S.slice(T);break;default:t=S+h+t+p}return l(t)}return y=void 0===y?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),w.toString=function(){return t+""},w}return{format:d,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(eW(e)/3))),i=Math.pow(10,-r),n=d(((t=eO(t)).type="f",t),{suffix:eq[8+r/3]});return function(t){return n(i*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ts=to.formatPrefix,eY.prototype=eP.prototype={constructor:eY,count:function(){return this.eachAfter(eN)},each:function(t,e){let r=-1;for(let i of this)t.call(e,i,++r,this);return this},eachAfter:function(t,e){for(var r,i,n,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),r=o.children)for(i=0,n=r.length;i<n;++i)a.push(r[i]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var r,i,n=this,o=[n],a=-1;n=o.pop();)if(t.call(e,n,++a,this),r=n.children)for(i=r.length-1;i>=0;--i)o.push(r[i]);return this},find:function(t,e){let r=-1;for(let i of this)if(t.call(e,i,++r,this))return i},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,i=e.children,n=i&&i.length;--n>=0;)r+=i[n].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),i=e.ancestors(),n=null;for(t=r.pop(),e=i.pop();t===e;)n=t,t=r.pop(),e=i.pop();return n}(e,t),i=[e];e!==r;)i.push(e=e.parent);for(var n=i.length;t!==r;)i.splice(n,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return eP(this).eachBefore(eH)},[Symbol.iterator]:function*(){var t,e,r,i,n=this,o=[n];do for(t=o.reverse(),o=[];n=t.pop();)if(yield n,e=n.children)for(r=0,i=e.length;r<i;++r)o.push(e[r]);while(o.length)}};var eV=function t(e){function r(t,r,i,n,o){!function(t,e,r,i,n,o){for(var a,s,l,h,c,u,d,p,f,g,m,y=[],x=e.children,b=0,k=0,C=x.length,_=e.value;b<C;){l=n-r,h=o-i;do c=x[k++].value;while(!c&&k<C);for(u=d=c,f=Math.max(d/(m=c*c*(g=Math.max(h/l,l/h)/(_*t))),m/u);k<C;++k){if(c+=s=x[k].value,s<u&&(u=s),s>d&&(d=s),(p=Math.max(d/(m=c*c*g),m/u))>f){c-=s;break}f=p}y.push(a={value:c,dice:l<h,children:x.slice(b,k)}),a.dice?function(t,e,r,i,n){for(var o,a=t.children,s=-1,l=a.length,h=t.value&&(i-e)/t.value;++s<l;)(o=a[s]).y0=r,o.y1=n,o.x0=e,o.x1=e+=o.value*h}(a,r,i,n,_?i+=h*c/_:o):function(t,e,r,i,n){for(var o,a=t.children,s=-1,l=a.length,h=t.value&&(n-r)/t.value;++s<l;)(o=a[s]).x0=e,o.x1=i,o.y0=r,o.y1=r+=o.value*h}(a,r,i,_?r+=l*c/_:n,o),_-=c,b=k}}(e,t,r,i,n,o)}return r.ratio=function(e){return t((e=+e)>1?e:1)},r}((1+Math.sqrt(5))/2);function eX(){return 0}function eQ(t){return function(){return t}}function eK(){var t=eV,e=!1,r=1,i=1,n=[0],o=eX,a=eX,s=eX,l=eX,h=eX;function c(t){return t.x0=t.y0=0,t.x1=r,t.y1=i,t.eachBefore(u),n=[0],e&&t.eachBefore(eG),t}function u(e){var r=n[e.depth],i=e.x0+r,c=e.y0+r,u=e.x1-r,d=e.y1-r;u<i&&(i=u=(i+u)/2),d<c&&(c=d=(c+d)/2),e.x0=i,e.y0=c,e.x1=u,e.y1=d,e.children&&(r=n[e.depth+1]=o(e)/2,i+=h(e)-r,c+=a(e)-r,u-=s(e)-r,d-=l(e)-r,u<i&&(i=u=(i+u)/2),d<c&&(c=d=(c+d)/2),t(e,i,c,u,d))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(r=+t[0],i=+t[1],c):[r,i]},c.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw Error();return t}(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:eQ(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:eQ(+t),c):a},c.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:eQ(+t),c):s},c.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:eQ(+t),c):l},c.paddingLeft=function(t){return arguments.length?(h="function"==typeof t?t:eQ(+t),c):h},c}let eJ=Math.PI/180,e0=180/Math.PI,e1=4/29,e2=6/29,e3=6/29*3*(6/29),e5=6/29*(6/29)*(6/29);function e6(t){if(t instanceof e4)return new e4(t.l,t.a,t.b,t.opacity);if(t instanceof rr)return ri(t);t instanceof t7||(t=t8(t));var e,r,i=rt(t.r),n=rt(t.g),o=rt(t.b),a=e8((.2225045*i+.7168786*n+.0606169*o)/1);return i===n&&n===o?e=r=a:(e=e8((.4360747*i+.3850649*n+.1430804*o)/.96422),r=e8((.0139322*i+.0971045*n+.7141733*o)/.82521)),new e4(116*a-16,500*(e-a),200*(a-r),t.opacity)}function e4(t,e,r,i){this.l=+t,this.a=+e,this.b=+r,this.opacity=+i}function e8(t){return t>e5?Math.pow(t,1/3):t/e3+e1}function e9(t){return t>e2?t*t*t:e3*(t-e1)}function e7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function re(t,e,r,i){return 1==arguments.length?function(t){if(t instanceof rr)return new rr(t.h,t.c,t.l,t.opacity);if(t instanceof e4||(t=e6(t)),0===t.a&&0===t.b)return new rr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*e0;return new rr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new rr(t,e,r,null==i?1:i)}function rr(t,e,r,i){this.h=+t,this.c=+e,this.l=+r,this.opacity=+i}function ri(t){if(isNaN(t.h))return new e4(t.l,0,0,t.opacity);var e=t.h*eJ;return new e4(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function rn(t){return function(e,r){var i=t((e=re(e)).h,(r=re(r)).h),n=ef(e.c,r.c),o=ef(e.l,r.l),a=ef(e.opacity,r.opacity);return function(t){return e.h=i(t),e.c=n(t),e.l=o(t),e.opacity=a(t),e+""}}}tP(e4,function(t,e,r,i){return 1==arguments.length?e6(t):new e4(t,e,r,null==i?1:i)},tR(tj,{brighter(t){return new e4(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new e4(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new t7(e7(3.1338561*(e=.96422*e9(e))-1.6168667*(t=1*e9(t))-.4906146*(r=.82521*e9(r))),e7(-.9787684*e+1.9161415*t+.033454*r),e7(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),tP(rr,re,tR(tj,{brighter(t){return new rr(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new rr(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return ri(this).rgb()}}));var ro=rn(function(t,e){var r=e-t;return r?ep(t,r>180||r<-180?r-360*Math.round(r/360):r):ed(isNaN(t)?e:t)});function ra(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}rn(ef);class rs extends Map{constructor(t,e=rh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,r]of t)this.set(e,r)}get(t){return super.get(rl(this,t))}has(t){return super.has(rl(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}(this,t))}}function rl({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function rh(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rc=Symbol("implicit");function ru(){var t=new rs,e=[],r=[],i=rc;function n(n){let o=t.get(n);if(void 0===o){if(i!==rc)return i;t.set(n,o=e.push(n)-1)}return r[o%r.length]}return n.domain=function(r){if(!arguments.length)return e.slice();for(let i of(e=[],t=new rs,r))t.has(i)||t.set(i,e.push(i)-1);return n},n.range=function(t){return arguments.length?(r=Array.from(t),n):r.slice()},n.unknown=function(t){return arguments.length?(i=t,n):i},n.copy=function(){return ru(e,r).unknown(i)},ra.apply(n,arguments),n}let rd=Math.sqrt(50),rp=Math.sqrt(10),rf=Math.sqrt(2);function rg(t,e,r){let i,n,o;let a=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(a)),l=a/Math.pow(10,s),h=l>=rd?10:l>=rp?5:l>=rf?2:1;return(s<0?(i=Math.round(t*(o=Math.pow(10,-s)/h)),n=Math.round(e*o),i/o<t&&++i,n/o>e&&--n,o=-o):(i=Math.round(t/(o=Math.pow(10,s)*h)),n=Math.round(e/o),i*o<t&&++i,n*o>e&&--n),n<i&&.5<=r&&r<2)?rg(t,e,2*r):[i,n,o]}function rm(t,e,r){return rg(t=+t,e=+e,r=+r)[2]}function ry(t,e,r){e=+e,t=+t,r=+r;let i=e<t,n=i?rm(e,t,r):rm(t,e,r);return(i?-1:1)*(n<0?-(1/n):n)}function rx(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rb(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rk(t){let e,r,i;function n(t,i,n=0,o=t.length){if(n<o){if(0!==e(i,i))return o;do{let e=n+o>>>1;0>r(t[e],i)?n=e+1:o=e}while(n<o)}return n}return 2!==t.length?(e=rx,r=(e,r)=>rx(t(e),r),i=(e,r)=>t(e)-r):(e=t===rx||t===rb?t:rC,r=t,i=t),{left:n,center:function(t,e,r=0,o=t.length){let a=n(t,e,r,o-1);return a>r&&i(t[a-1],e)>-i(t[a],e)?a-1:a},right:function(t,i,n=0,o=t.length){if(n<o){if(0!==e(i,i))return o;do{let e=n+o>>>1;0>=r(t[e],i)?n=e+1:o=e}while(n<o)}return n}}}function rC(){return 0}let r_=rk(rx),rv=r_.right;function rw(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function rT(t){return+t}r_.left,rk(function(t){return null===t?NaN:+t}).center;var rS=[0,1];function rM(t){return t}function rB(t,e){var r;return(e-=t=+t)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function rL(t,e,r){var i=t[0],n=t[1],o=e[0],a=e[1];return n<i?(i=rB(n,i),o=r(a,o)):(i=rB(i,n),o=r(o,a)),function(t){return o(i(t))}}function rF(t,e,r){var i=Math.min(t.length,e.length)-1,n=Array(i),o=Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)n[a]=rB(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=rv(t,e,1,i)-1;return o[r](n[r](e))}}function rA(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rW(){return(function(){var t,e,r,i,n,o,a=rS,s=rS,l=function t(e,r){var i,n,o=typeof r;return null==r||"boolean"===o?ed(r):("number"===o?tO:"string"===o?(n=t5(r))?(r=n,eg):eb:r instanceof t5?eg:r instanceof Date?function(t,e){var r=new Date;return t=+t,e=+e,function(i){return r.setTime(t*(1-i)+e*i),r}}:!ArrayBuffer.isView(i=r)||i instanceof DataView?Array.isArray(r)?function(e,r){var i,n=r?r.length:0,o=e?Math.min(n,e.length):0,a=Array(o),s=Array(n);for(i=0;i<o;++i)a[i]=t(e[i],r[i]);for(;i<n;++i)s[i]=r[i];return function(t){for(i=0;i<o;++i)s[i]=a[i](t);return s}}:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?function(e,r){var i,n={},o={};for(i in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)i in e?n[i]=t(e[i],r[i]):o[i]=r[i];return function(t){for(i in n)o[i]=n[i](t);return o}}:tO:function(t,e){e||(e=[]);var r,i=t?Math.min(e.length,t.length):0,n=e.slice();return function(o){for(r=0;r<i;++r)n[r]=t[r]*(1-o)+e[r]*o;return n}})(e,r)},h=rM;function c(){var t,e,r,l=Math.min(a.length,s.length);return h!==rM&&(t=a[0],e=a[l-1],t>e&&(r=t,t=e,e=r),h=function(r){return Math.max(t,Math.min(e,r))}),i=l>2?rF:rL,n=o=null,u}function u(e){return null==e||isNaN(e=+e)?r:(n||(n=i(a.map(t),s,l)))(t(h(e)))}return u.invert=function(r){return h(e((o||(o=i(s,a.map(t),tO)))(r)))},u.domain=function(t){return arguments.length?(a=Array.from(t,rT),c()):a.slice()},u.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},u.rangeRound=function(t){return s=Array.from(t),l=rw,c()},u.clamp=function(t){return arguments.length?(h=!!t||rM,c()):h!==rM},u.interpolate=function(t){return arguments.length?(l=t,c()):l},u.unknown=function(t){return arguments.length?(r=t,u):r},function(r,i){return t=r,e=i,c()}})()(rM,rM)}let rE=new Date,rO=new Date;function r$(t,e,r,i){function n(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return n.floor=e=>(t(e=new Date(+e)),e),n.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),n.round=t=>{let e=n(t),r=n.ceil(t);return t-e<r-t?e:r},n.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),n.range=(r,i,o)=>{let a;let s=[];if(r=n.ceil(r),o=null==o?1:Math.floor(o),!(r<i)||!(o>0))return s;do s.push(a=new Date(+r)),e(r,o),t(r);while(a<r&&r<i);return s},n.filter=r=>r$(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,i)=>{if(t>=t){if(i<0)for(;++i<=0;)for(;e(t,-1),!r(t););else for(;--i>=0;)for(;e(t,1),!r(t););}}),r&&(n.count=(e,i)=>(rE.setTime(+e),rO.setTime(+i),t(rE),t(rO),Math.floor(r(rE,rO))),n.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?n.filter(i?e=>i(e)%t==0:e=>n.count(0,e)%t==0):n:null),n}let rI=r$(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rI.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?r$(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rI:null,rI.range;let rD=r$(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rD.range;let rZ=r$(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rZ.range;let rz=r$(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rz.range;let rq=r$(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());rq.range;let rN=r$(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rN.range;let rP=r$(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);rP.range;let rR=r$(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rR.range;let rj=r$(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function rH(t){return r$(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}rj.range;let rU=rH(0),rY=rH(1),rG=rH(2),rV=rH(3),rX=rH(4),rQ=rH(5),rK=rH(6);function rJ(t){return r$(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}rU.range,rY.range,rG.range,rV.range,rX.range,rQ.range,rK.range;let r0=rJ(0),r1=rJ(1),r2=rJ(2),r3=rJ(3),r5=rJ(4),r6=rJ(5),r4=rJ(6);r0.range,r1.range,r2.range,r3.range,r5.range,r6.range,r4.range;let r8=r$(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());r8.range;let r9=r$(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());r9.range;let r7=r$(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());r7.every=t=>isFinite(t=Math.floor(t))&&t>0?r$(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,r7.range;let it=r$(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ie(t,e,r,i,n,o){let a=[[rD,1,1e3],[rD,5,5e3],[rD,15,15e3],[rD,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[n,1,36e5],[n,3,108e5],[n,6,216e5],[n,12,432e5],[i,1,864e5],[i,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,i){let n=Math.abs(r-e)/i,o=rk(([,,t])=>t).right(a,n);if(o===a.length)return t.every(ry(e/31536e6,r/31536e6,i));if(0===o)return rI.every(Math.max(ry(e,r,i),1));let[s,l]=a[n/a[o-1][2]<a[o][2]/n?o-1:o];return s.every(l)}return[function(t,e,r){let i=e<t;i&&([t,e]=[e,t]);let n=r&&"function"==typeof r.range?r:s(t,e,r),o=n?n.range(t,+e+1):[];return i?o.reverse():o},s]}it.every=t=>isFinite(t=Math.floor(t))&&t>0?r$(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,it.range;let[ir,ii]=ie(it,r9,r0,rj,rN,rz),[io,ia]=ie(r7,r8,rU,rP,rq,rZ);function is(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function il(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ih(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ic={"-":"",_:" ",0:"0"},iu=/^\s*\d+/,id=/^%/,ip=/[\\^$*+?|[\]().{}]/g;function ig(t,e,r){var i=t<0?"-":"",n=(i?-t:t)+"",o=n.length;return i+(o<r?Array(r-o+1).join(e)+n:n)}function im(t){return t.replace(ip,"\\$&")}function iy(t){return RegExp("^(?:"+t.map(im).join("|")+")","i")}function ix(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ib(t,e,r){var i=iu.exec(e.slice(r,r+1));return i?(t.w=+i[0],r+i[0].length):-1}function ik(t,e,r){var i=iu.exec(e.slice(r,r+1));return i?(t.u=+i[0],r+i[0].length):-1}function iC(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.U=+i[0],r+i[0].length):-1}function i_(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.V=+i[0],r+i[0].length):-1}function iv(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.W=+i[0],r+i[0].length):-1}function iw(t,e,r){var i=iu.exec(e.slice(r,r+4));return i?(t.y=+i[0],r+i[0].length):-1}function iT(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),r+i[0].length):-1}function iS(t,e,r){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),r+i[0].length):-1}function iM(t,e,r){var i=iu.exec(e.slice(r,r+1));return i?(t.q=3*i[0]-3,r+i[0].length):-1}function iB(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.m=i[0]-1,r+i[0].length):-1}function iL(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.d=+i[0],r+i[0].length):-1}function iF(t,e,r){var i=iu.exec(e.slice(r,r+3));return i?(t.m=0,t.d=+i[0],r+i[0].length):-1}function iA(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.H=+i[0],r+i[0].length):-1}function iW(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.M=+i[0],r+i[0].length):-1}function iE(t,e,r){var i=iu.exec(e.slice(r,r+2));return i?(t.S=+i[0],r+i[0].length):-1}function iO(t,e,r){var i=iu.exec(e.slice(r,r+3));return i?(t.L=+i[0],r+i[0].length):-1}function i$(t,e,r){var i=iu.exec(e.slice(r,r+6));return i?(t.L=Math.floor(i[0]/1e3),r+i[0].length):-1}function iI(t,e,r){var i=id.exec(e.slice(r,r+1));return i?r+i[0].length:-1}function iD(t,e,r){var i=iu.exec(e.slice(r));return i?(t.Q=+i[0],r+i[0].length):-1}function iZ(t,e,r){var i=iu.exec(e.slice(r));return i?(t.s=+i[0],r+i[0].length):-1}function iz(t,e){return ig(t.getDate(),e,2)}function iq(t,e){return ig(t.getHours(),e,2)}function iN(t,e){return ig(t.getHours()%12||12,e,2)}function iP(t,e){return ig(1+rP.count(r7(t),t),e,3)}function iR(t,e){return ig(t.getMilliseconds(),e,3)}function ij(t,e){return iR(t,e)+"000"}function iH(t,e){return ig(t.getMonth()+1,e,2)}function iU(t,e){return ig(t.getMinutes(),e,2)}function iY(t,e){return ig(t.getSeconds(),e,2)}function iG(t){var e=t.getDay();return 0===e?7:e}function iV(t,e){return ig(rU.count(r7(t)-1,t),e,2)}function iX(t){var e=t.getDay();return e>=4||0===e?rX(t):rX.ceil(t)}function iQ(t,e){return t=iX(t),ig(rX.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function iK(t){return t.getDay()}function iJ(t,e){return ig(rY.count(r7(t)-1,t),e,2)}function i0(t,e){return ig(t.getFullYear()%100,e,2)}function i1(t,e){return ig((t=iX(t)).getFullYear()%100,e,2)}function i2(t,e){return ig(t.getFullYear()%1e4,e,4)}function i3(t,e){var r=t.getDay();return ig((t=r>=4||0===r?rX(t):rX.ceil(t)).getFullYear()%1e4,e,4)}function i5(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ig(e/60|0,"0",2)+ig(e%60,"0",2)}function i6(t,e){return ig(t.getUTCDate(),e,2)}function i4(t,e){return ig(t.getUTCHours(),e,2)}function i8(t,e){return ig(t.getUTCHours()%12||12,e,2)}function i9(t,e){return ig(1+rR.count(it(t),t),e,3)}function i7(t,e){return ig(t.getUTCMilliseconds(),e,3)}function nt(t,e){return i7(t,e)+"000"}function ne(t,e){return ig(t.getUTCMonth()+1,e,2)}function nr(t,e){return ig(t.getUTCMinutes(),e,2)}function ni(t,e){return ig(t.getUTCSeconds(),e,2)}function nn(t){var e=t.getUTCDay();return 0===e?7:e}function no(t,e){return ig(r0.count(it(t)-1,t),e,2)}function na(t){var e=t.getUTCDay();return e>=4||0===e?r5(t):r5.ceil(t)}function ns(t,e){return t=na(t),ig(r5.count(it(t),t)+(4===it(t).getUTCDay()),e,2)}function nl(t){return t.getUTCDay()}function nh(t,e){return ig(r1.count(it(t)-1,t),e,2)}function nc(t,e){return ig(t.getUTCFullYear()%100,e,2)}function nu(t,e){return ig((t=na(t)).getUTCFullYear()%100,e,2)}function nd(t,e){return ig(t.getUTCFullYear()%1e4,e,4)}function np(t,e){var r=t.getUTCDay();return ig((t=r>=4||0===r?r5(t):r5.ceil(t)).getUTCFullYear()%1e4,e,4)}function nf(){return"+0000"}function ng(){return"%"}function nm(t){return+t}function ny(t){return Math.floor(+t/1e3)}function nx(t){return new Date(t)}function nb(t){return t instanceof Date?+t:+new Date(+t)}function nk(){return ra.apply((function t(e,r,i,n,o,a,s,l,h,c){var u=rW(),d=u.invert,p=u.domain,f=c(".%L"),g=c(":%S"),m=c("%I:%M"),y=c("%I %p"),x=c("%a %d"),b=c("%b %d"),k=c("%B"),C=c("%Y");function _(t){return(h(t)<t?f:l(t)<t?g:s(t)<t?m:a(t)<t?y:n(t)<t?o(t)<t?x:b:i(t)<t?k:C)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?p(Array.from(t,nb)):p().map(nx)},u.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(t,e){return null==e?_:c(e)},u.nice=function(t){var e,i,n,o,a,s,l,h=p();return t&&"function"==typeof t.range||(t=r(h[0],h[h.length-1],null==t?10:t)),t?p((e=h,i=t,e=e.slice(),o=0,a=e.length-1,s=e[o],(l=e[a])<s&&(n=o,o=a,a=n,n=s,s=l,l=n),e[o]=i.floor(s),e[a]=i.ceil(l),e)):u},u.copy=function(){return rA(u,t(e,r,i,n,o,a,s,l,h,c))},u})(io,ia,r7,r8,rU,rP,rq,rZ,rD,th).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}th=(tl=function(t){var e=t.dateTime,r=t.date,i=t.time,n=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,h=iy(n),c=ix(n),u=iy(o),d=ix(o),p=iy(a),f=ix(a),g=iy(s),m=ix(s),y=iy(l),x=ix(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:iz,e:iz,f:ij,g:i1,G:i3,H:iq,I:iN,j:iP,L:iR,m:iH,M:iU,p:function(t){return n[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nm,s:ny,S:iY,u:iG,U:iV,V:iQ,w:iK,W:iJ,x:null,X:null,y:i0,Y:i2,Z:i5,"%":ng},k={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:i6,e:i6,f:nt,g:nu,G:np,H:i4,I:i8,j:i9,L:i7,m:ne,M:nr,p:function(t){return n[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nm,s:ny,S:ni,u:nn,U:no,V:ns,w:nl,W:nh,x:null,X:null,y:nc,Y:nd,Z:nf,"%":ng},C={a:function(t,e,r){var i=p.exec(e.slice(r));return i?(t.w=f.get(i[0].toLowerCase()),r+i[0].length):-1},A:function(t,e,r){var i=u.exec(e.slice(r));return i?(t.w=d.get(i[0].toLowerCase()),r+i[0].length):-1},b:function(t,e,r){var i=y.exec(e.slice(r));return i?(t.m=x.get(i[0].toLowerCase()),r+i[0].length):-1},B:function(t,e,r){var i=g.exec(e.slice(r));return i?(t.m=m.get(i[0].toLowerCase()),r+i[0].length):-1},c:function(t,r,i){return w(t,e,r,i)},d:iL,e:iL,f:i$,g:iT,G:iw,H:iA,I:iA,j:iF,L:iO,m:iB,M:iW,p:function(t,e,r){var i=h.exec(e.slice(r));return i?(t.p=c.get(i[0].toLowerCase()),r+i[0].length):-1},q:iM,Q:iD,s:iZ,S:iE,u:ik,U:iC,V:i_,w:ib,W:iv,x:function(t,e,i){return w(t,r,e,i)},X:function(t,e,r){return w(t,i,e,r)},y:iT,Y:iw,Z:iS,"%":iI};function _(t,e){return function(r){var i,n,o,a=[],s=-1,l=0,h=t.length;for(r instanceof Date||(r=new Date(+r));++s<h;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(n=ic[i=t.charAt(++s)])?i=t.charAt(++s):n="e"===i?" ":"0",(o=e[i])&&(i=o(r,n)),a.push(i),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function v(t,e){return function(r){var i,n,o=ih(1900,void 0,1);if(w(o,t,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=(i=il(ih(o.y,0,1))).getUTCDay())>4||0===n?r1.ceil(i):r1(i),i=rR.offset(i,(o.V-1)*7),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(i=(n=(i=is(ih(o.y,0,1))).getDay())>4||0===n?rY.ceil(i):rY(i),i=rP.offset(i,(o.V-1)*7),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),n="Z"in o?il(ih(o.y,0,1)).getUTCDay():is(ih(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(n+5)%7:o.w+7*o.U-(n+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,il(o)):is(o)}}function w(t,e,r,i){for(var n,o,a=0,s=e.length,l=r.length;a<s;){if(i>=l)return -1;if(37===(n=e.charCodeAt(a++))){if(!(o=C[(n=e.charAt(a++))in ic?e.charAt(a++):n])||(i=o(t,r,i))<0)return -1}else if(n!=r.charCodeAt(i++))return -1}return i}return b.x=_(r,b),b.X=_(i,b),b.c=_(e,b),k.x=_(r,k),k.X=_(i,k),k.c=_(e,k),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=v(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",k);return e.toString=function(){return t},e},utcParse:function(t){var e=v(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,tl.parse,tl.utcFormat,tl.utcParse;var nC=function(t){for(var e=t.length/6|0,r=Array(e),i=0;i<e;)r[i]="#"+t.slice(6*i,6*++i);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function n_(t){return"string"==typeof t?new Q([[document.querySelector(t)]],[document.documentElement]):new Q([[t]],X)}function nv(t){return function(){return t}}let nw=Math.abs,nT=Math.atan2,nS=Math.cos,nM=Math.max,nB=Math.min,nL=Math.sin,nF=Math.sqrt,nA=Math.PI,nW=nA/2,nE=2*nA;function nO(t){return t>=1?nW:t<=-1?-nW:Math.asin(t)}let n$=Math.PI,nI=2*n$,nD=nI-1e-6;function nZ(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class nz{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?nZ:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return nZ;let r=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;e<i;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,i){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,e,r,i,n,o){this._append`C${+t},${+e},${+r},${+i},${this._x1=+n},${this._y1=+o}`}arcTo(t,e,r,i,n){if(t=+t,e=+e,r=+r,i=+i,(n=+n)<0)throw Error(`negative radius: ${n}`);let o=this._x1,a=this._y1,s=r-t,l=i-e,h=o-t,c=a-e,u=h*h+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(u>1e-6){if(Math.abs(c*s-l*h)>1e-6&&n){let d=r-o,p=i-a,f=s*s+l*l,g=Math.sqrt(f),m=Math.sqrt(u),y=n*Math.tan((n$-Math.acos((f+u-(d*d+p*p))/(2*g*m)))/2),x=y/m,b=y/g;Math.abs(x-1)>1e-6&&this._append`L${t+x*h},${e+x*c}`,this._append`A${n},${n},0,0,${+(c*d>h*p)},${this._x1=t+b*s},${this._y1=e+b*l}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,r,i,n,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw Error(`negative radius: ${r}`);let a=r*Math.cos(i),s=r*Math.sin(i),l=t+a,h=e+s,c=1^o,u=o?i-n:n-i;null===this._x1?this._append`M${l},${h}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-h)>1e-6)&&this._append`L${l},${h}`,r&&(u<0&&(u=u%nI+nI),u>nD?this._append`A${r},${r},0,1,${c},${t-a},${e-s}A${r},${r},0,1,${c},${this._x1=l},${this._y1=h}`:u>1e-6&&this._append`A${r},${r},0,${+(u>=n$)},${c},${this._x1=t+r*Math.cos(n)},${this._y1=e+r*Math.sin(n)}`)}rect(t,e,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function nq(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new nz(e)}function nN(t){return t.innerRadius}function nP(t){return t.outerRadius}function nR(t){return t.startAngle}function nj(t){return t.endAngle}function nH(t){return t&&t.padAngle}function nU(t,e,r,i,n,o,a){var s=t-r,l=e-i,h=(a?o:-o)/nF(s*s+l*l),c=h*l,u=-h*s,d=t+c,p=e+u,f=r+c,g=i+u,m=(d+f)/2,y=(p+g)/2,x=f-d,b=g-p,k=x*x+b*b,C=n-o,_=d*g-f*p,v=(b<0?-1:1)*nF(nM(0,C*C*k-_*_)),w=(_*b-x*v)/k,T=(-_*x-b*v)/k,S=(_*b+x*v)/k,M=(-_*x+b*v)/k,B=w-m,L=T-y,F=S-m,A=M-y;return B*B+L*L>F*F+A*A&&(w=S,T=M),{cx:w,cy:T,x01:-c,y01:-u,x11:w*(n/C-1),y11:T*(n/C-1)}}function nY(){var t=nN,e=nP,r=nv(0),i=null,n=nR,o=nj,a=nH,s=null,l=nq(h);function h(){var h,c,u=+t.apply(this,arguments),d=+e.apply(this,arguments),p=n.apply(this,arguments)-nW,f=o.apply(this,arguments)-nW,g=nw(f-p),m=f>p;if(s||(s=h=l()),d<u&&(c=d,d=u,u=c),d>1e-12){if(g>nE-1e-12)s.moveTo(d*nS(p),d*nL(p)),s.arc(0,0,d,p,f,!m),u>1e-12&&(s.moveTo(u*nS(f),u*nL(f)),s.arc(0,0,u,f,p,m));else{var y,x,b=p,k=f,C=p,_=f,v=g,w=g,T=a.apply(this,arguments)/2,S=T>1e-12&&(i?+i.apply(this,arguments):nF(u*u+d*d)),M=nB(nw(d-u)/2,+r.apply(this,arguments)),B=M,L=M;if(S>1e-12){var F=nO(S/u*nL(T)),A=nO(S/d*nL(T));(v-=2*F)>1e-12?(F*=m?1:-1,C+=F,_-=F):(v=0,C=_=(p+f)/2),(w-=2*A)>1e-12?(A*=m?1:-1,b+=A,k-=A):(w=0,b=k=(p+f)/2)}var W=d*nS(b),E=d*nL(b),O=u*nS(_),$=u*nL(_);if(M>1e-12){var I,D=d*nS(k),Z=d*nL(k),z=u*nS(C),q=u*nL(C);if(g<nA){if(I=function(t,e,r,i,n,o,a,s){var l=r-t,h=i-e,c=a-n,u=s-o,d=u*l-c*h;if(!(d*d<1e-12))return d=(c*(e-o)-u*(t-n))/d,[t+d*l,e+d*h]}(W,E,z,q,D,Z,O,$)){var N,P=W-I[0],R=E-I[1],j=D-I[0],H=Z-I[1],U=1/nL(((N=(P*j+R*H)/(nF(P*P+R*R)*nF(j*j+H*H)))>1?0:N<-1?nA:Math.acos(N))/2),Y=nF(I[0]*I[0]+I[1]*I[1]);B=nB(M,(u-Y)/(U-1)),L=nB(M,(d-Y)/(U+1))}else B=L=0}}w>1e-12?L>1e-12?(y=nU(z,q,W,E,d,L,m),x=nU(D,Z,O,$,d,L,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),L<M?s.arc(y.cx,y.cy,L,nT(y.y01,y.x01),nT(x.y01,x.x01),!m):(s.arc(y.cx,y.cy,L,nT(y.y01,y.x01),nT(y.y11,y.x11),!m),s.arc(0,0,d,nT(y.cy+y.y11,y.cx+y.x11),nT(x.cy+x.y11,x.cx+x.x11),!m),s.arc(x.cx,x.cy,L,nT(x.y11,x.x11),nT(x.y01,x.x01),!m))):(s.moveTo(W,E),s.arc(0,0,d,b,k,!m)):s.moveTo(W,E),u>1e-12&&v>1e-12?B>1e-12?(y=nU(O,$,D,Z,u,-B,m),x=nU(W,E,z,q,u,-B,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),B<M?s.arc(y.cx,y.cy,B,nT(y.y01,y.x01),nT(x.y01,x.x01),!m):(s.arc(y.cx,y.cy,B,nT(y.y01,y.x01),nT(y.y11,y.x11),!m),s.arc(0,0,u,nT(y.cy+y.y11,y.cx+y.x11),nT(x.cy+x.y11,x.cx+x.x11),m),s.arc(x.cx,x.cy,B,nT(x.y11,x.x11),nT(x.y01,x.x01),!m))):s.arc(0,0,u,_,C,m):s.lineTo(O,$)}}else s.moveTo(0,0);if(s.closePath(),h)return s=null,h+""||null}return h.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+n.apply(this,arguments)+ +o.apply(this,arguments))/2-nA/2;return[nS(i)*r,nL(i)*r]},h.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:nv(+e),h):t},h.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:nv(+t),h):e},h.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:nv(+t),h):r},h.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:nv(+t),h):i},h.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:nv(+t),h):n},h.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:nv(+t),h):o},h.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:nv(+t),h):a},h.context=function(t){return arguments.length?(s=null==t?null:t,h):s},h}function nG(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function nV(t){this._context=t}function nX(t){return new nV(t)}function nQ(t){return t[0]}function nK(t){return t[1]}function nJ(t,e){var r=nv(!0),i=null,n=nX,o=null,a=nq(s);function s(s){var l,h,c,u=(s=nG(s)).length,d=!1;for(null==i&&(o=n(c=a())),l=0;l<=u;++l)!(l<u&&r(h=s[l],l,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+t(h,l,s),+e(h,l,s));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?nQ:nv(t),e="function"==typeof e?e:void 0===e?nK:nv(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:nv(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:nv(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:nv(!!t),s):r},s.curve=function(t){return arguments.length?(n=t,null!=i&&(o=n(i)),s):n},s.context=function(t){return arguments.length?(null==t?i=o=null:o=n(i=t),s):i},s}function n0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function n1(t){return t}function n2(){var t=n1,e=n0,r=null,i=nv(0),n=nv(nE),o=nv(0);function a(a){var s,l,h,c,u,d=(a=nG(a)).length,p=0,f=Array(d),g=Array(d),m=+i.apply(this,arguments),y=Math.min(nE,Math.max(-nE,n.apply(this,arguments)-m)),x=Math.min(Math.abs(y)/d,o.apply(this,arguments)),b=x*(y<0?-1:1);for(s=0;s<d;++s)(u=g[f[s]=s]=+t(a[s],s,a))>0&&(p+=u);for(null!=e?f.sort(function(t,r){return e(g[t],g[r])}):null!=r&&f.sort(function(t,e){return r(a[t],a[e])}),s=0,h=p?(y-d*b)/p:0;s<d;++s,m=c)c=m+((u=g[l=f[s]])>0?u*h:0)+b,g[l]={data:a[l],index:s,value:u,startAngle:m,endAngle:c,padAngle:x};return g}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:nv(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,r=null,a):e},a.sort=function(t){return arguments.length?(r=t,e=null,a):r},a.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:nv(+t),a):i},a.endAngle=function(t){return arguments.length?(n="function"==typeof t?t:nv(+t),a):n},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:nv(+t),a):o},a}function n3(){}function n5(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function n6(t){this._context=t}function n4(t){return new n6(t)}function n8(t){this._context=t}function n9(t){return new n8(t)}function n7(t){this._context=t}function ot(t){return new n7(t)}nz.prototype,Array.prototype.slice,nV.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},n6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:n5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:n5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n8.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:n5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},n7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:n5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class oe{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function or(t){return new oe(t,!0)}function oi(t){return new oe(t,!1)}function on(t,e){this._basis=new n6(t),this._beta=e}on.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var i,n=t[0],o=e[0],a=t[r]-n,s=e[r]-o,l=-1;++l<=r;)i=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(n+i*a),this._beta*e[l]+(1-this._beta)*(o+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var oo=function t(e){function r(t){return 1===e?new n6(t):new on(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function oa(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function os(t,e){this._context=t,this._k=(1-e)/6}os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:oa(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oa(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ol=function t(e){function r(t){return new os(t,e)}return r.tension=function(e){return t(+e)},r}(0);function oh(t,e){this._context=t,this._k=(1-e)/6}oh.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oa(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var oc=function t(e){function r(t){return new oh(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ou(t,e){this._context=t,this._k=(1-e)/6}ou.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:oa(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var od=function t(e){function r(t){return new ou(t,e)}return r.tension=function(e){return t(+e)},r}(0);function op(t,e,r){var i=t._x1,n=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/c}t._context.bezierCurveTo(i,n,o,a,t._x2,t._y2)}function of(t,e){this._context=t,this._alpha=e}of.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:op(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var og=function t(e){function r(t){return e?new of(t,e):new os(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function om(t,e){this._context=t,this._alpha=e}om.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:op(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var oy=function t(e){function r(t){return e?new om(t,e):new oh(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ox(t,e){this._context=t,this._alpha=e}ox.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:op(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var ob=function t(e){function r(t){return e?new ox(t,e):new ou(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ok(t){this._context=t}function oC(t){return new ok(t)}function o_(t,e,r){var i=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(i||n<0&&-0),a=(r-t._y1)/(n||i<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*n+a*i)/(i+n)))||0}function ov(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ow(t,e,r){var i=t._x0,n=t._y0,o=t._x1,a=t._y1,s=(o-i)/3;t._context.bezierCurveTo(i+s,n+s*e,o-s,a-s*r,o,a)}function oT(t){this._context=t}function oS(t){this._context=new oM(t)}function oM(t){this._context=t}function oB(t){return new oT(t)}function oL(t){return new oS(t)}function oF(t){this._context=t}function oA(t){var e,r,i=t.length-1,n=Array(i),o=Array(i),a=Array(i);for(n[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,a[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(n[i-1]=a[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(a[e]-n[e+1])/o[e];for(e=0,o[i-1]=(t[i]+n[i-1])/2;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function oW(t){return new oF(t)}function oE(t,e){this._context=t,this._t=e}function oO(t){return new oE(t,.5)}function o$(t){return new oE(t,0)}function oI(t){return new oE(t,1)}function oD(t,e,r){this.k=t,this.x=e,this.y=r}ok.prototype={areaStart:n3,areaEnd:n3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},oT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ow(this,this._t0,ov(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ow(this,ov(this,r=o_(this,t,e)),r);break;default:ow(this,this._t0,r=o_(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(oS.prototype=Object.create(oT.prototype)).point=function(t,e){oT.prototype.point.call(this,e,t)},oM.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,i,n,o){this._context.bezierCurveTo(e,t,i,r,o,n)}},oF.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r){if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var i=oA(t),n=oA(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(i[0][o],n[0][o],i[1][o],n[1][o],t[a],e[a])}(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},oE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},oD.prototype={constructor:oD,scale:function(t){return 1===t?this:new oD(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new oD(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new oD(1,0,0),oD.prototype},18848:function(t,e,r){"use strict";r.d(e,{Z:function(){return tr}});let{entries:i,setPrototypeOf:n,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object,{freeze:l,seal:h,create:c}=Object,{apply:u,construct:d}="undefined"!=typeof Reflect&&Reflect;l||(l=function(t){return t}),h||(h=function(t){return t}),u||(u=function(t,e){for(var r=arguments.length,i=Array(r>2?r-2:0),n=2;n<r;n++)i[n-2]=arguments[n];return t.apply(e,i)}),d||(d=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return new t(...r)});let p=M(Array.prototype.forEach),f=M(Array.prototype.lastIndexOf),g=M(Array.prototype.pop),m=M(Array.prototype.push),y=M(Array.prototype.splice),x=M(String.prototype.toLowerCase),b=M(String.prototype.toString),k=M(String.prototype.match),C=M(String.prototype.replace),_=M(String.prototype.indexOf),v=M(String.prototype.trim),w=M(Object.prototype.hasOwnProperty),T=M(RegExp.prototype.test),S=(Q=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return d(Q,e)});function M(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return u(t,e,i)}}function B(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;n&&n(t,null);let i=e.length;for(;i--;){let n=e[i];if("string"==typeof n){let t=r(n);t!==n&&(o(e)||(e[i]=t),n=t)}t[n]=!0}return t}function L(t){let e=c(null);for(let[r,n]of i(t))w(t,r)&&(Array.isArray(n)?e[r]=function(t){for(let e=0;e<t.length;e++)w(t,e)||(t[e]=null);return t}(n):n&&"object"==typeof n&&n.constructor===Object?e[r]=L(n):e[r]=n);return e}function F(t,e){for(;null!==t;){let r=s(t,e);if(r){if(r.get)return M(r.get);if("function"==typeof r.value)return M(r.value)}t=a(t)}return function(){return null}}let A=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),E=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),O=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),D=l(["#text"]),Z=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),q=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),N=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),P=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),R=h(/<%[\w\W]*|[\w\W]*%>/gm),j=h(/\$\{[\w\W]*/gm),H=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),U=h(/^aria-[\-\w]+$/),Y=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),G=h(/^(?:\w+script|data):/i),V=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=h(/^html$/i);var Q,K=Object.freeze({__proto__:null,ARIA_ATTR:U,ATTR_WHITESPACE:V,CUSTOM_ELEMENT:h(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:H,DOCTYPE_NAME:X,ERB_EXPR:R,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:G,MUSTACHE_EXPR:P,TMPLIT_EXPR:j});let J={element:1,text:3,progressingInstruction:7,comment:8,document:9},tt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(r=e.getAttribute(i));let n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},te=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var tr=function t(){let e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,n=e=>t(e);if(n.version="3.3.1",n.removed=[],!r||!r.document||r.document.nodeType!==J.document||!r.Element)return n.isSupported=!1,n;let{document:o}=r,a=o,s=a.currentScript,{DocumentFragment:h,HTMLTemplateElement:u,Node:d,Element:M,NodeFilter:P,NamedNodeMap:R=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:j,DOMParser:H,trustedTypes:U}=r,G=M.prototype,V=F(G,"cloneNode"),Q=F(G,"remove"),tr=F(G,"nextSibling"),ti=F(G,"childNodes"),tn=F(G,"parentNode");if("function"==typeof u){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let to="",{implementation:ta,createNodeIterator:ts,createDocumentFragment:tl,getElementsByTagName:th}=o,{importNode:tc}=a,tu=te();n.isSupported="function"==typeof i&&"function"==typeof tn&&ta&&void 0!==ta.createHTMLDocument;let{MUSTACHE_EXPR:td,ERB_EXPR:tp,TMPLIT_EXPR:tf,DATA_ATTR:tg,ARIA_ATTR:tm,IS_SCRIPT_OR_DATA:ty,ATTR_WHITESPACE:tx,CUSTOM_ELEMENT:tb}=K,{IS_ALLOWED_URI:tk}=K,tC=null,t_=B({},[...A,...W,...E,...$,...D]),tv=null,tw=B({},[...Z,...z,...q,...N]),tT=Object.seal(c(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tS=null,tM=null,tB=Object.seal(c(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tL=!0,tF=!0,tA=!1,tW=!0,tE=!1,tO=!0,t$=!1,tI=!1,tD=!1,tZ=!1,tz=!1,tq=!1,tN=!0,tP=!1,tR=!0,tj=!1,tH={},tU=null,tY=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tG=null,tV=B({},["audio","video","img","source","image","track"]),tX=null,tQ=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tK="http://www.w3.org/1998/Math/MathML",tJ="http://www.w3.org/2000/svg",t0="http://www.w3.org/1999/xhtml",t1=t0,t2=!1,t3=null,t5=B({},[tK,tJ,t0],b),t6=B({},["mi","mo","mn","ms","mtext"]),t4=B({},["annotation-xml"]),t8=B({},["title","style","font","a","script"]),t9=null,t7=["application/xhtml+xml","text/html"],et=null,ee=null,er=o.createElement("form"),ei=function(t){return t instanceof RegExp||t instanceof Function},en=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ee||ee!==t){if(t&&"object"==typeof t||(t={}),t=L(t),et="application/xhtml+xml"===(t9=-1===t7.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?b:x,tC=w(t,"ALLOWED_TAGS")?B({},t.ALLOWED_TAGS,et):t_,tv=w(t,"ALLOWED_ATTR")?B({},t.ALLOWED_ATTR,et):tw,t3=w(t,"ALLOWED_NAMESPACES")?B({},t.ALLOWED_NAMESPACES,b):t5,tX=w(t,"ADD_URI_SAFE_ATTR")?B(L(tQ),t.ADD_URI_SAFE_ATTR,et):tQ,tG=w(t,"ADD_DATA_URI_TAGS")?B(L(tV),t.ADD_DATA_URI_TAGS,et):tV,tU=w(t,"FORBID_CONTENTS")?B({},t.FORBID_CONTENTS,et):tY,tS=w(t,"FORBID_TAGS")?B({},t.FORBID_TAGS,et):L({}),tM=w(t,"FORBID_ATTR")?B({},t.FORBID_ATTR,et):L({}),tH=!!w(t,"USE_PROFILES")&&t.USE_PROFILES,tL=!1!==t.ALLOW_ARIA_ATTR,tF=!1!==t.ALLOW_DATA_ATTR,tA=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tW=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,tE=t.SAFE_FOR_TEMPLATES||!1,tO=!1!==t.SAFE_FOR_XML,t$=t.WHOLE_DOCUMENT||!1,tZ=t.RETURN_DOM||!1,tz=t.RETURN_DOM_FRAGMENT||!1,tq=t.RETURN_TRUSTED_TYPE||!1,tD=t.FORCE_BODY||!1,tN=!1!==t.SANITIZE_DOM,tP=t.SANITIZE_NAMED_PROPS||!1,tR=!1!==t.KEEP_CONTENT,tj=t.IN_PLACE||!1,tk=t.ALLOWED_URI_REGEXP||Y,t1=t.NAMESPACE||t0,t6=t.MATHML_TEXT_INTEGRATION_POINTS||t6,t4=t.HTML_INTEGRATION_POINTS||t4,tT=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ei(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(tT.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ei(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(tT.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(tT.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),tE&&(tF=!1),tz&&(tZ=!0),tH&&(tC=B({},D),tv=[],!0===tH.html&&(B(tC,A),B(tv,Z)),!0===tH.svg&&(B(tC,W),B(tv,z),B(tv,N)),!0===tH.svgFilters&&(B(tC,E),B(tv,z),B(tv,N)),!0===tH.mathMl&&(B(tC,$),B(tv,q),B(tv,N))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?tB.tagCheck=t.ADD_TAGS:(tC===t_&&(tC=L(tC)),B(tC,t.ADD_TAGS,et))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?tB.attributeCheck=t.ADD_ATTR:(tv===tw&&(tv=L(tv)),B(tv,t.ADD_ATTR,et))),t.ADD_URI_SAFE_ATTR&&B(tX,t.ADD_URI_SAFE_ATTR,et),t.FORBID_CONTENTS&&(tU===tY&&(tU=L(tU)),B(tU,t.FORBID_CONTENTS,et)),t.ADD_FORBID_CONTENTS&&(tU===tY&&(tU=L(tU)),B(tU,t.ADD_FORBID_CONTENTS,et)),tR&&(tC["#text"]=!0),t$&&B(tC,["html","head","body"]),tC.table&&(B(tC,["tbody"]),delete tS.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');to=(e=t.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===e&&(e=tt(U,s)),null!==e&&"string"==typeof to&&(to=e.createHTML(""));l&&l(t),ee=t}},eo=B({},[...W,...E,...O]),ea=B({},[...$,...I]),es=function(t){let e=tn(t);e&&e.tagName||(e={namespaceURI:t1,tagName:"template"});let r=x(t.tagName),i=x(e.tagName);return!!t3[t.namespaceURI]&&(t.namespaceURI===tJ?e.namespaceURI===t0?"svg"===r:e.namespaceURI===tK?"svg"===r&&("annotation-xml"===i||t6[i]):!!eo[r]:t.namespaceURI===tK?e.namespaceURI===t0?"math"===r:e.namespaceURI===tJ?"math"===r&&t4[i]:!!ea[r]:t.namespaceURI===t0?(e.namespaceURI!==tJ||!!t4[i])&&(e.namespaceURI!==tK||!!t6[i])&&!ea[r]&&(t8[r]||!eo[r]):"application/xhtml+xml"===t9&&!!t3[t.namespaceURI])},el=function(t){m(n.removed,{element:t});try{tn(t).removeChild(t)}catch(e){Q(t)}},eh=function(t,e){try{m(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t){if(tZ||tz)try{el(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}}},ec=function(t){let r=null,i=null;if(tD)t="<remove></remove>"+t;else{let e=k(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===t9&&t1===t0&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let n=e?e.createHTML(t):t;if(t1===t0)try{r=new H().parseFromString(n,t9)}catch(t){}if(!r||!r.documentElement){r=ta.createDocument(t1,"template",null);try{r.documentElement.innerHTML=t2?to:n}catch(t){}}let a=r.body||r.documentElement;return(t&&i&&a.insertBefore(o.createTextNode(i),a.childNodes[0]||null),t1===t0)?th.call(r,t$?"html":"body")[0]:t$?r.documentElement:a},eu=function(t){return ts.call(t.ownerDocument||t,t,P.SHOW_ELEMENT|P.SHOW_COMMENT|P.SHOW_TEXT|P.SHOW_PROCESSING_INSTRUCTION|P.SHOW_CDATA_SECTION,null)},ed=function(t){return t instanceof j&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof R)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},ep=function(t){return"function"==typeof d&&t instanceof d};function ef(t,e,r){p(t,t=>{t.call(n,e,r,ee)})}let eg=function(t){let e=null;if(ef(tu.beforeSanitizeElements,t,null),ed(t))return el(t),!0;let r=et(t.nodeName);if(ef(tu.uponSanitizeElement,t,{tagName:r,allowedTags:tC}),tO&&t.hasChildNodes()&&!ep(t.firstElementChild)&&T(/<[/\w!]/g,t.innerHTML)&&T(/<[/\w!]/g,t.textContent)||t.nodeType===J.progressingInstruction||tO&&t.nodeType===J.comment&&T(/<[/\w]/g,t.data))return el(t),!0;if(!(tB.tagCheck instanceof Function&&tB.tagCheck(r))&&(!tC[r]||tS[r])){if(!tS[r]&&ey(r)&&(tT.tagNameCheck instanceof RegExp&&T(tT.tagNameCheck,r)||tT.tagNameCheck instanceof Function&&tT.tagNameCheck(r)))return!1;if(tR&&!tU[r]){let e=tn(t)||t.parentNode,r=ti(t)||t.childNodes;if(r&&e){let i=r.length;for(let n=i-1;n>=0;--n){let i=V(r[n],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,tr(t))}}}return el(t),!0}return t instanceof M&&!es(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&T(/<\/no(script|embed|frames)/i,t.innerHTML)?(el(t),!0):(tE&&t.nodeType===J.text&&(e=t.textContent,p([td,tp,tf],t=>{e=C(e,t," ")}),t.textContent!==e&&(m(n.removed,{element:t.cloneNode()}),t.textContent=e)),ef(tu.afterSanitizeElements,t,null),!1)},em=function(t,e,r){if(tN&&("id"===e||"name"===e)&&(r in o||r in er))return!1;if(tF&&!tM[e]&&T(tg,e));else if(tL&&T(tm,e));else if(tB.attributeCheck instanceof Function&&tB.attributeCheck(e,t));else if(!tv[e]||tM[e]){if(!(ey(t)&&(tT.tagNameCheck instanceof RegExp&&T(tT.tagNameCheck,t)||tT.tagNameCheck instanceof Function&&tT.tagNameCheck(t))&&(tT.attributeNameCheck instanceof RegExp&&T(tT.attributeNameCheck,e)||tT.attributeNameCheck instanceof Function&&tT.attributeNameCheck(e,t))||"is"===e&&tT.allowCustomizedBuiltInElements&&(tT.tagNameCheck instanceof RegExp&&T(tT.tagNameCheck,r)||tT.tagNameCheck instanceof Function&&tT.tagNameCheck(r))))return!1}else if(tX[e]);else if(T(tk,C(r,tx,"")));else if(("src"===e||"xlink:href"===e||"href"===e)&&"script"!==t&&0===_(r,"data:")&&tG[t]);else if(tA&&!T(ty,C(r,tx,"")));else if(r)return!1;return!0},ey=function(t){return"annotation-xml"!==t&&k(t,tb)},ex=function(t){ef(tu.beforeSanitizeAttributes,t,null);let{attributes:r}=t;if(!r||ed(t))return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tv,forceKeepAttr:void 0},o=r.length;for(;o--;){let{name:a,namespaceURI:s,value:l}=r[o],h=et(a),c="value"===a?l:v(l);if(i.attrName=h,i.attrValue=c,i.keepAttr=!0,i.forceKeepAttr=void 0,ef(tu.uponSanitizeAttribute,t,i),c=i.attrValue,tP&&("id"===h||"name"===h)&&(eh(a,t),c="user-content-"+c),tO&&T(/((--!?|])>)|<\/(style|title|textarea)/i,c)||"attributename"===h&&k(c,"href")){eh(a,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr||!tW&&T(/\/>/i,c)){eh(a,t);continue}tE&&p([td,tp,tf],t=>{c=C(c,t," ")});let u=et(t.nodeName);if(!em(u,h,c)){eh(a,t);continue}if(e&&"object"==typeof U&&"function"==typeof U.getAttributeType){if(s);else switch(U.getAttributeType(u,h)){case"TrustedHTML":c=e.createHTML(c);break;case"TrustedScriptURL":c=e.createScriptURL(c)}}if(c!==l)try{s?t.setAttributeNS(s,a,c):t.setAttribute(a,c),ed(t)?el(t):g(n.removed)}catch(e){eh(a,t)}}ef(tu.afterSanitizeAttributes,t,null)},eb=function t(e){let r=null,i=eu(e);for(ef(tu.beforeSanitizeShadowDOM,e,null);r=i.nextNode();)ef(tu.uponSanitizeShadowNode,r,null),eg(r),ex(r),r.content instanceof h&&t(r.content);ef(tu.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,l=null;if((t2=!t)&&(t="<!-->"),"string"!=typeof t&&!ep(t)){if("function"==typeof t.toString){if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}else throw S("toString is not a function")}if(!n.isSupported)return t;if(tI||en(r),n.removed=[],"string"==typeof t&&(tj=!1),tj){if(t.nodeName){let e=et(t.nodeName);if(!tC[e]||tS[e])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof d)(o=(i=ec("<!---->")).ownerDocument.importNode(t,!0)).nodeType===J.element&&"BODY"===o.nodeName?i=o:"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!tZ&&!tE&&!t$&&-1===t.indexOf("<"))return e&&tq?e.createHTML(t):t;if(!(i=ec(t)))return tZ?null:tq?to:""}i&&tD&&el(i.firstChild);let c=eu(tj?t:i);for(;s=c.nextNode();)eg(s),ex(s),s.content instanceof h&&eb(s.content);if(tj)return t;if(tZ){if(tz)for(l=tl.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(tv.shadowroot||tv.shadowrootmode)&&(l=tc.call(a,l,!0)),l}let u=t$?i.outerHTML:i.innerHTML;return t$&&tC["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&T(X,i.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+u),tE&&p([td,tp,tf],t=>{u=C(u,t," ")}),e&&tq?e.createHTML(u):u},n.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};en(t),tI=!0},n.clearConfig=function(){ee=null,tI=!1},n.isValidAttribute=function(t,e,r){return ee||en({}),em(et(t),et(e),r)},n.addHook=function(t,e){"function"==typeof e&&m(tu[t],e)},n.removeHook=function(t,e){if(void 0!==e){let r=f(tu[t],e);return -1===r?void 0:y(tu[t],r,1)[0]}return g(tu[t])},n.removeHooks=function(t){tu[t]=[]},n.removeAllHooks=function(){tu=te()},n}()},92722:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var i=r(51778),n=r(21033);class o{constructor(){this.type=n.w.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=n.w.ALL}is(t){return this.type===t}}class a{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new o}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=n.w.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:n}=t;void 0===e&&(t.h=i.Z.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=i.Z.channel.rgb2hsl(t,"s")),void 0===n&&(t.l=i.Z.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:n}=t;void 0===e&&(t.r=i.Z.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=i.Z.channel.hsl2rgb(t,"g")),void 0===n&&(t.b=i.Z.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),i.Z.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),i.Z.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(n.w.HSL)||void 0===e?(this._ensureHSL(),i.Z.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),i.Z.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),i.Z.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(n.w.RGB)||void 0===e?(this._ensureRGB(),i.Z.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(n.w.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(n.w.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(n.w.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(n.w.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(n.w.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(n.w.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}var s=new a({r:0,g:0,b:0,a:0},"transparent")},29534:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i=r(92722),n=r(21033);let o={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(o.re);if(!e)return;let r=e[1],n=parseInt(r,16),a=r.length,s=a%4==0,l=a>4,h=l?1:17,c=l?8:4,u=s?0:-1,d=l?255:15;return i.Z.set({r:(n>>c*(u+3)&d)*h,g:(n>>c*(u+2)&d)*h,b:(n>>c*(u+1)&d)*h,a:s?(n&d)*h/255:1},t)},stringify:t=>{let{r:e,g:r,b:i,a:o}=t;return o<1?`#${n.Q[Math.round(e)]}${n.Q[Math.round(r)]}${n.Q[Math.round(i)]}${n.Q[Math.round(255*o)]}`:`#${n.Q[Math.round(e)]}${n.Q[Math.round(r)]}${n.Q[Math.round(i)]}`}};var a=r(51778);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return a.Z.channel.clamp.h(.9*parseFloat(t));case"rad":return a.Z.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return a.Z.channel.clamp.h(360*parseFloat(t))}}return a.Z.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,n,o,l,h,c]=r;return i.Z.set({h:s._hue2deg(n),s:a.Z.channel.clamp.s(parseFloat(o)),l:a.Z.channel.clamp.l(parseFloat(l)),a:h?a.Z.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{let{h:e,s:r,l:i,a:n}=t;return n<1?`hsla(${a.Z.lang.round(e)}, ${a.Z.lang.round(r)}%, ${a.Z.lang.round(i)}%, ${n})`:`hsl(${a.Z.lang.round(e)}, ${a.Z.lang.round(r)}%, ${a.Z.lang.round(i)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return o.parse(e)},stringify:t=>{let e=o.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},h={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(h.re);if(!r)return;let[,n,o,s,l,c,u,d,p]=r;return i.Z.set({r:a.Z.channel.clamp.r(o?2.55*parseFloat(n):parseFloat(n)),g:a.Z.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:a.Z.channel.clamp.b(u?2.55*parseFloat(c):parseFloat(c)),a:d?a.Z.channel.clamp.a(p?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{let{r:e,g:r,b:i,a:n}=t;return n<1?`rgba(${a.Z.lang.round(e)}, ${a.Z.lang.round(r)}, ${a.Z.lang.round(i)}, ${a.Z.lang.round(n)})`:`rgb(${a.Z.lang.round(e)}, ${a.Z.lang.round(r)}, ${a.Z.lang.round(i)})`}};var c={format:{keyword:l,hex:o,rgb:h,rgba:h,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=o.parse(t)||h.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(n.w.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?o.stringify(t):h.stringify(t)}},21033:function(t,e,r){"use strict";r.d(e,{Q:function(){return n},w:function(){return o}});var i=r(51778);let n={};for(let t=0;t<=255;t++)n[t]=i.Z.unit.dec2hex(t);let o={ALL:0,RGB:1,HSL:2}},5067:function(t,e,r){"use strict";var i=r(51778),n=r(29534);e.Z=(t,e,r)=>{let o=n.Z.parse(t),a=o[e],s=i.Z.channel.clamp[e](a+r);return a!==s&&(o[e]=s),n.Z.stringify(o)}},18213:function(t,e,r){"use strict";var i=r(51778),n=r(29534);e.Z=(t,e)=>{let r=n.Z.parse(t);for(let t in e)r[t]=i.Z.channel.clamp[t](e[t]);return n.Z.stringify(r)}},58898:function(t,e,r){"use strict";var i=r(5067);e.Z=(t,e)=>(0,i.Z)(t,"l",-e)},32927:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var i=r(51778),n=r(29534),o=t=>{let{r:e,g:r,b:o}=n.Z.parse(t),a=.2126*i.Z.channel.toLinear(e)+.7152*i.Z.channel.toLinear(r)+.0722*i.Z.channel.toLinear(o);return i.Z.lang.round(a)},a=t=>o(t)>=.5,s=t=>!a(t)},8279:function(t,e,r){"use strict";var i=r(5067);e.Z=(t,e)=>(0,i.Z)(t,"l",e)},835:function(t,e,r){"use strict";var i=r(51778),n=r(92722),o=r(29534),a=r(18213);e.Z=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,a.Z)(t,{a:e});let l=n.Z.set({r:i.Z.channel.clamp.r(t),g:i.Z.channel.clamp.g(e),b:i.Z.channel.clamp.b(r),a:i.Z.channel.clamp.a(s)});return o.Z.stringify(l)}},51778:function(t,e,r){"use strict";r.d(e,{Z:function(){return n}});let i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return 2.55*r;t/=360,e/=100;let o=(r/=100)<.5?r*(1+e):r+e-r*e,a=2*r-o;switch(n){case"r":return 255*i.hue2rgb(a,o,t+1/3);case"g":return 255*i.hue2rgb(a,o,t);case"b":return 255*i.hue2rgb(a,o,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},i)=>{let n=Math.max(t/=255,e/=255,r/=255),o=Math.min(t,e,r),a=(n+o)/2;if("l"===i)return 100*a;if(n===o)return 0;let s=n-o;if("s"===i)return 100*(a>.5?s/(2-n-o):s/(n+o));switch(n){case t:return((e-r)/s+(e<r?6:0))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}};var n={channel:i,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},6021:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var i=r(84338),n=function(t,e){for(var r=t.length;r--;)if((0,i.Z)(t[r][0],e))return r;return -1},o=Array.prototype.splice;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)},a.prototype.get=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]},a.prototype.has=function(t){return n(this.__data__,t)>-1},a.prototype.set=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};var s=a},23196:function(t,e,r){"use strict";var i=r(19893),n=r(65933),o=(0,i.Z)(n.Z,"Map");e.Z=o},98721:function(t,e,r){"use strict";r.d(e,{Z:function(){return d}});var i=(0,r(19893).Z)(Object,"create"),n=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}a.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},a.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},a.prototype.get=function(t){var e=this.__data__;if(i){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(e,t)?e[t]:void 0},a.prototype.has=function(t){var e=this.__data__;return i?void 0!==e[t]:o.call(e,t)},a.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this};var s=r(6021),l=r(23196),h=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},c=function(t,e){var r=t.__data__;return h(e)?r["string"==typeof e?"string":"hash"]:r.map};function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}u.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(l.Z||s.Z),string:new a}},u.prototype.delete=function(t){var e=c(this,t).delete(t);return this.size-=e?1:0,e},u.prototype.get=function(t){return c(this,t).get(t)},u.prototype.has=function(t){return c(this,t).has(t)},u.prototype.set=function(t,e){var r=c(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this};var d=u},32974:function(t,e,r){"use strict";var i=r(19893),n=r(65933),o=(0,i.Z)(n.Z,"Set");e.Z=o},8883:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var i=r(6021),n=r(23196),o=r(98721);function a(t){var e=this.__data__=new i.Z(t);this.size=e.size}a.prototype.clear=function(){this.__data__=new i.Z,this.size=0},a.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},a.prototype.get=function(t){return this.__data__.get(t)},a.prototype.has=function(t){return this.__data__.has(t)},a.prototype.set=function(t,e){var r=this.__data__;if(r instanceof i.Z){var a=r.__data__;if(!n.Z||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o.Z(a)}return r.set(t,e),this.size=r.size,this};var s=a},40856:function(t,e,r){"use strict";var i=r(65933).Z.Symbol;e.Z=i},6408:function(t,e,r){"use strict";var i=r(65933).Z.Uint8Array;e.Z=i},70836:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i=function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i},n=r(70351),o=r(28070),a=r(23605),s=r(65482),l=r(9798),h=Object.prototype.hasOwnProperty,c=function(t,e){var r=(0,o.Z)(t),c=!r&&(0,n.Z)(t),u=!r&&!c&&(0,a.Z)(t),d=!r&&!c&&!u&&(0,l.Z)(t),p=r||c||u||d,f=p?i(t.length,String):[],g=f.length;for(var m in t)(e||h.call(t,m))&&!(p&&("length"==m||u&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.Z)(m,g)))&&f.push(m);return f}},54646:function(t,e,r){"use strict";var i=r(80101),n=r(84338),o=Object.prototype.hasOwnProperty;e.Z=function(t,e,r){var a=t[e];o.call(t,e)&&(0,n.Z)(a,r)&&(void 0!==r||e in t)||(0,i.Z)(t,e,r)}},80101:function(t,e,r){"use strict";var i=r(30591);e.Z=function(t,e,r){"__proto__"==e&&i.Z?(0,i.Z)(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},19045:function(t,e,r){"use strict";r.d(e,{Z:function(){return i}});var i=function(t,e,r){for(var i=-1,n=Object(t),o=r(t),a=o.length;a--;){var s=o[++i];if(!1===e(n[s],s,n))break}return t}},59576:function(t,e,r){"use strict";r.d(e,{Z:function(){return u}});var i=r(40856),n=Object.prototype,o=n.hasOwnProperty,a=n.toString,s=i.Z?i.Z.toStringTag:void 0,l=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var i=!0}catch(t){}var n=a.call(t);return i&&(e?t[s]=r:delete t[s]),n},h=Object.prototype.toString,c=i.Z?i.Z.toStringTag:void 0,u=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?l(t):h.call(t)}},35400:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var i=r(17234),n=(0,r(64400).Z)(Object.keys,Object),o=Object.prototype.hasOwnProperty,a=function(t){if(!(0,i.Z)(t))return n(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},30801:function(t,e,r){"use strict";var i=r(20937),n=r(27701),o=r(16700);e.Z=function(t,e){return(0,o.Z)((0,n.Z)(t,e,i.Z),t+"")}},65832:function(t,e){"use strict";e.Z=function(t){return function(e){return t(e)}}},15403:function(t,e,r){"use strict";var i=r(6408);e.Z=function(t){var e=new t.constructor(t.byteLength);return new i.Z(e).set(new i.Z(t)),e}},36686:function(t,e,r){"use strict";var i=r(65933),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n?i.Z.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.Z=function(t,e){if(e)return t.slice();var r=t.length,i=s?s(r):new t.constructor(r);return t.copy(i),i}},76399:function(t,e,r){"use strict";var i=r(15403);e.Z=function(t,e){var r=e?(0,i.Z)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},63783:function(t,e){"use strict";e.Z=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e}},66554:function(t,e,r){"use strict";var i=r(54646),n=r(80101);e.Z=function(t,e,r,o){var a=!r;r||(r={});for(var s=-1,l=e.length;++s<l;){var h=e[s],c=o?o(r[h],t[h],h,r,t):void 0;void 0===c&&(c=t[h]),a?(0,n.Z)(r,h,c):(0,i.Z)(r,h,c)}return r}},30591:function(t,e,r){"use strict";var i=r(19893),n=function(){try{var t=(0,i.Z)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();e.Z=n},20261:function(t,e){"use strict";var r="object"==typeof global&&global&&global.Object===Object&&global;e.Z=r},19893:function(t,e,r){"use strict";r.d(e,{Z:function(){return f}});var i,n=r(98402),o=r(65933).Z["__core-js_shared__"],a=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",s=r(7632),l=r(14158),h=/^\[object .+?Constructor\]$/,c=Object.prototype,u=Function.prototype.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),f=function(t,e){var r,i=null==t?void 0:t[e];return(r=i,(0,s.Z)(r)&&(!a||!(a in r))&&((0,n.Z)(r)?p:h).test((0,l.Z)(r)))?i:void 0}},91408:function(t,e,r){"use strict";var i=(0,r(64400).Z)(Object.getPrototypeOf,Object);e.Z=i},68748:function(t,e,r){"use strict";r.d(e,{Z:function(){return v}});var i=r(19893),n=r(65933),o=(0,i.Z)(n.Z,"DataView"),a=r(23196),s=(0,i.Z)(n.Z,"Promise"),l=r(32974),h=(0,i.Z)(n.Z,"WeakMap"),c=r(59576),u=r(14158),d="[object Map]",p="[object Promise]",f="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,u.Z)(o),x=(0,u.Z)(a.Z),b=(0,u.Z)(s),k=(0,u.Z)(l.Z),C=(0,u.Z)(h),_=c.Z;(o&&_(new o(new ArrayBuffer(1)))!=m||a.Z&&_(new a.Z)!=d||s&&_(s.resolve())!=p||l.Z&&_(new l.Z)!=f||h&&_(new h)!=g)&&(_=function(t){var e=(0,c.Z)(t),r="[object Object]"==e?t.constructor:void 0,i=r?(0,u.Z)(r):"";if(i)switch(i){case y:return m;case x:return d;case b:return p;case k:return f;case C:return g}return e});var v=_},51700:function(t,e,r){"use strict";r.d(e,{Z:function(){return l}});var i=r(7632),n=Object.create,o=function(){function t(){}return function(e){if(!(0,i.Z)(e))return{};if(n)return n(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),a=r(91408),s=r(17234),l=function(t){return"function"!=typeof t.constructor||(0,s.Z)(t)?{}:o((0,a.Z)(t))}},65482:function(t,e){"use strict";var r=/^(?:0|[1-9]\d*)$/;e.Z=function(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&r.test(t))&&t>-1&&t%1==0&&t<e}},2864:function(t,e,r){"use strict";var i=r(84338),n=r(82025),o=r(65482),a=r(7632);e.Z=function(t,e,r){if(!(0,a.Z)(r))return!1;var s=typeof e;return("number"==s?!!((0,n.Z)(r)&&(0,o.Z)(e,r.length)):"string"==s&&e in r)&&(0,i.Z)(r[e],t)}},17234:function(t,e){"use strict";var r=Object.prototype;e.Z=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},94914:function(t,e,r){"use strict";var i=r(20261),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n&&i.Z.process,s=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();e.Z=s},64400:function(t,e){"use strict";e.Z=function(t,e){return function(r){return t(e(r))}}},27701:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var i=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},n=Math.max,o=function(t,e,r){return e=n(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=n(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var h=Array(e+1);++a<e;)h[a]=o[a];return h[e]=r(l),i(t,this,h)}}},65933:function(t,e,r){"use strict";var i=r(20261),n="object"==typeof self&&self&&self.Object===Object&&self,o=i.Z||n||Function("return this")();e.Z=o},16700:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i,n,o=r(86620),a=r(30591),s=r(20937),l=a.Z?function(t,e){return(0,a.Z)(t,"toString",{configurable:!0,enumerable:!1,value:(0,o.Z)(e),writable:!0})}:s.Z,h=Date.now,c=(i=0,n=0,function(){var t=h(),e=16-(t-n);if(n=t,e>0){if(++i>=800)return arguments[0]}else i=0;return l.apply(void 0,arguments)})},14158:function(t,e){"use strict";var r=Function.prototype.toString;e.Z=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},86620:function(t,e){"use strict";e.Z=function(t){return function(){return t}}},84338:function(t,e){"use strict";e.Z=function(t,e){return t===e||t!=t&&e!=e}},20937:function(t,e){"use strict";e.Z=function(t){return t}},70351:function(t,e,r){"use strict";r.d(e,{Z:function(){return h}});var i=r(59576),n=r(82370),o=function(t){return(0,n.Z)(t)&&"[object Arguments]"==(0,i.Z)(t)},a=Object.prototype,s=a.hasOwnProperty,l=a.propertyIsEnumerable,h=o(function(){return arguments}())?o:function(t){return(0,n.Z)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},28070:function(t,e){"use strict";var r=Array.isArray;e.Z=r},82025:function(t,e,r){"use strict";var i=r(98402),n=r(53934);e.Z=function(t){return null!=t&&(0,n.Z)(t.length)&&!(0,i.Z)(t)}},38259:function(t,e,r){"use strict";var i=r(82025),n=r(82370);e.Z=function(t){return(0,n.Z)(t)&&(0,i.Z)(t)}},23605:function(t,e,r){"use strict";r.d(e,{Z:function(){return s}});var i=r(65933),n="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=n&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===n?i.Z.Buffer:void 0,s=(a?a.isBuffer:void 0)||function(){return!1}},45130:function(t,e,r){"use strict";var i=r(35400),n=r(68748),o=r(70351),a=r(28070),s=r(82025),l=r(23605),h=r(17234),c=r(9798),u=Object.prototype.hasOwnProperty;e.Z=function(t){if(null==t)return!0;if((0,s.Z)(t)&&((0,a.Z)(t)||"string"==typeof t||"function"==typeof t.splice||(0,l.Z)(t)||(0,c.Z)(t)||(0,o.Z)(t)))return!t.length;var e=(0,n.Z)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,h.Z)(t))return!(0,i.Z)(t).length;for(var r in t)if(u.call(t,r))return!1;return!0}},98402:function(t,e,r){"use strict";var i=r(59576),n=r(7632);e.Z=function(t){if(!(0,n.Z)(t))return!1;var e=(0,i.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},53934:function(t,e){"use strict";e.Z=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7632:function(t,e){"use strict";e.Z=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},82370:function(t,e){"use strict";e.Z=function(t){return null!=t&&"object"==typeof t}},9798:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i=r(59576),n=r(53934),o=r(82370),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=r(65832),l=r(94914),h=l.Z&&l.Z.isTypedArray,c=h?(0,s.Z)(h):function(t){return(0,o.Z)(t)&&(0,n.Z)(t.length)&&!!a[(0,i.Z)(t)]}},49625:function(t,e,r){"use strict";r.d(e,{Z:function(){return c}});var i=r(70836),n=r(7632),o=r(17234),a=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},s=Object.prototype.hasOwnProperty,l=function(t){if(!(0,n.Z)(t))return a(t);var e=(0,o.Z)(t),r=[];for(var i in t)"constructor"==i&&(e||!s.call(t,i))||r.push(i);return r},h=r(82025),c=function(t){return(0,h.Z)(t)?(0,i.Z)(t,!0):l(t)}},98509:function(t,e,r){"use strict";var i=r(98721);function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var i=arguments,n=e?e.apply(this,i):i[0],o=r.cache;if(o.has(n))return o.get(n);var a=t.apply(this,i);return r.cache=o.set(n,a)||o,a};return r.cache=new(n.Cache||i.Z),r}n.Cache=i.Z,e.Z=n},38008:function(t,e,r){"use strict";r.d(e,{Z:function(){return $}});var i,n=r(8883),o=r(80101),a=r(84338),s=function(t,e,r){(void 0===r||(0,a.Z)(t[e],r))&&(void 0!==r||e in t)||(0,o.Z)(t,e,r)},l=r(19045),h=r(36686),c=r(76399),u=r(63783),d=r(51700),p=r(70351),f=r(28070),g=r(38259),m=r(23605),y=r(98402),x=r(7632),b=r(59576),k=r(91408),C=r(82370),_=Object.prototype,v=Function.prototype.toString,w=_.hasOwnProperty,T=v.call(Object),S=function(t){if(!(0,C.Z)(t)||"[object Object]"!=(0,b.Z)(t))return!1;var e=(0,k.Z)(t);if(null===e)return!0;var r=w.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&v.call(r)==T},M=r(9798),B=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},L=r(66554),F=r(49625),A=function(t,e,r,i,n,o,a){var l=B(t,r),b=B(e,r),k=a.get(b);if(k){s(t,r,k);return}var C=o?o(l,b,r+"",t,e,a):void 0,_=void 0===C;if(_){var v=(0,f.Z)(b),w=!v&&(0,m.Z)(b),T=!v&&!w&&(0,M.Z)(b);(C=b,v||w||T)?(0,f.Z)(l)?C=l:(0,g.Z)(l)?C=(0,u.Z)(l):w?(_=!1,C=(0,h.Z)(b,!0)):T?(_=!1,C=(0,c.Z)(b,!0)):C=[]:S(b)||(0,p.Z)(b)?(C=l,(0,p.Z)(l))?C=(0,L.Z)(l,(0,F.Z)(l)):(!(0,x.Z)(l)||(0,y.Z)(l))&&(C=(0,d.Z)(b)):_=!1}_&&(a.set(b,C),n(C,b,i,o,a),a.delete(b)),s(t,r,C)},W=function t(e,r,i,o,a){e!==r&&(0,l.Z)(r,function(l,h){if(a||(a=new n.Z),(0,x.Z)(l))A(e,r,h,i,t,o,a);else{var c=o?o(B(e,h),l,h+"",e,r,a):void 0;void 0===c&&(c=l),s(e,h,c)}},F.Z)},E=r(30801),O=r(2864),$=(i=function(t,e,r){W(t,e,r)},(0,E.Z)(function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,a=n>2?e[2]:void 0;for(o=i.length>3&&"function"==typeof o?(n--,o):void 0,a&&(0,O.Z)(e[0],e[1],a)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var s=e[r];s&&i(t,s,r,o)}return t}))},55166:function(t,e,r){"use strict";let i;r.d(e,{cj:function(){return b},XV:function(){return to},Yc:function(){return S},nH:function(){return t$},ZH:function(){return tK},LJ:function(){return tY},SY:function(){return tZ},v2:function(){return tN},u_:function(){return Y},Fy:function(){return t7},vZ:function(){return j},Vg:function(){return C},Bf:function(){return k},Zn:function(){return y},ku:function(){return tT},M6:function(){return m},Mx:function(){return t2},eu:function(){return t0},iE:function(){return ti},nV:function(){return t8},_7:function(){return eo},cq:function(){return w},Kr:function(){return t5},ZD:function(){return te},xN:function(){return $},Gr:function(){return tw},qO:function(){return tu},l0:function(){return tO},Vw:function(){return td},UO:function(){return tB},Cq:function(){return en},KO:function(){return _},ur:function(){return tD},mc:function(){return ta},NM:function(){return H},oO:function(){return tx},uX:function(){return et},dY:function(){return J},U$:function(){return t1},GN:function(){return tJ},v6:function(){return tr},Y4:function(){return t9},g2:function(){return t3},Yn:function(){return K},j7:function(){return tP},Rw:function(){return ee},Ee:function(){return tU},_j:function(){return z},Tb:function(){return tt}});var n,o=r(31954),a=r(29534),s=r(18213),l=(t,e)=>{let r=a.Z.parse(t),i={};for(let t in e)e[t]&&(i[t]=r[t]+e[t]);return(0,s.Z)(t,i)},h=r(835),c=(t,e,r=50)=>{let{r:i,g:n,b:o,a:s}=a.Z.parse(t),{r:l,g:c,b:u,a:d}=a.Z.parse(e),p=r/100,f=2*p-1,g=s-d,m=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,y=1-m;return(0,h.Z)(i*m+l*y,n*m+c*y,o*m+u*y,s*p+d*(1-p))},u=(t,e=100)=>{let r=a.Z.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,c(r,t,e)},d=r(58898),p=r(8279),f=r(32927),g=r(18848),m=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,y=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,x=/\s*%%.*\n/gm,b=class extends Error{static{(0,o.eW)(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}},k={},C=(0,o.eW)(function(t,e){for(let[r,{detector:i}]of(t=t.replace(m,"").replace(y,"").replace(x,"\n"),Object.entries(k)))if(i(t,e))return r;throw new b(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),_=(0,o.eW)((...t)=>{for(let{id:e,detector:r,loader:i}of t)v(e,r,i)},"registerLazyLoadedDiagrams"),v=(0,o.eW)((t,e,r)=>{k[t]&&o.cM.warn(`Detector with key ${t} already exists. Overwriting.`),k[t]={detector:e,loader:r},o.cM.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),w=(0,o.eW)(t=>k[t].loader,"getDiagramLoader"),T=(0,o.eW)((t,e,{depth:r=2,clobber:i=!1}={})=>{let n={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(e=>T(t,e,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(e=>{t.includes(e)||t.push(e)}),t):void 0===t||r<=0?null!=t&&"object"==typeof t&&"object"==typeof e?Object.assign(t,e):e:(void 0!==e&&"object"==typeof t&&"object"==typeof e&&Object.keys(e).forEach(n=>{"object"==typeof e[n]&&(void 0===t[n]||"object"==typeof t[n])?(void 0===t[n]&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=T(t[n],e[n],{depth:r-1,clobber:i})):(i||"object"!=typeof t[n]&&"object"!=typeof e[n])&&(t[n]=e[n])}),t)},"assignWithDepth"),S=T,M="#ffffff",B="#f2f2f2",L=(0,o.eW)((t,e)=>e?l(t,{s:-40,l:10}):l(t,{s:-40,l:-10}),"mkBorder"),F=class{static{(0,o.eW)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||l(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||l(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||L(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||L(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||L(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||u(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||u(this.tertiaryColor),this.lineColor=this.lineColor||u(this.background),this.arrowheadColor=this.arrowheadColor||u(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,d.Z)(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||(0,d.Z)(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||u(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.Z)(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||(0,d.Z)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,d.Z)(this.mainBkg,10)):(this.rowOdd=this.rowOdd||(0,p.Z)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.Z)(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.Z)(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.Z)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;let t=this.darkMode?-4:-1;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||l(this.mainBkg,{h:180,s:-15,l:t*(5+3*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||l(this.mainBkg,{h:180,s:-15,l:t*(8+3*e)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||l(this.primaryColor,{h:64}),this.fillType3=this.fillType3||l(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||l(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||l(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||l(this.primaryColor,{h:128}),this.fillType7=this.fillType7||l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||l(this.primaryColor,{l:-10}),this.pie5=this.pie5||l(this.secondaryColor,{l:-10}),this.pie6=this.pie6||l(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||l(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||l(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,f.Z)(this.quadrant1Fill)?(0,p.Z)(this.quadrant1Fill):(0,d.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.Z)(this.git0,25),this.git1=(0,p.Z)(this.git1,25),this.git2=(0,p.Z)(this.git2,25),this.git3=(0,p.Z)(this.git3,25),this.git4=(0,p.Z)(this.git4,25),this.git5=(0,p.Z)(this.git5,25),this.git6=(0,p.Z)(this.git6,25),this.git7=(0,p.Z)(this.git7,25)):(this.git0=(0,d.Z)(this.git0,25),this.git1=(0,d.Z)(this.git1,25),this.git2=(0,d.Z)(this.git2,25),this.git3=(0,d.Z)(this.git3,25),this.git4=(0,d.Z)(this.git4,25),this.git5=(0,d.Z)(this.git5,25),this.git6=(0,d.Z)(this.git6,25),this.git7=(0,d.Z)(this.git7,25)),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||B}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},A=(0,o.eW)(t=>{let e=new F;return e.calculate(t),e},"getThemeVariables"),W=class{static{(0,o.eW)(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=(0,p.Z)(this.primaryColor,16),this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=u(this.background),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=(0,p.Z)(u("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=(0,h.Z)(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=(0,d.Z)("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=(0,d.Z)(this.sectionBkgColor,10),this.taskBorderColor=(0,h.Z)(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=(0,h.Z)(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,p.Z)(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||(0,d.Z)(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,p.Z)(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=(0,p.Z)(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=(0,p.Z)(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.Z)(this["cScale"+t],10);for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,s:-30,l:-(-10+4*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,s:-30,l:-(-7+4*t)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,f.Z)(this.quadrant1Fill)?(0,p.Z)(this.quadrant1Fill):(0,d.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?(0,d.Z)(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,p.Z)(this.secondaryColor,20),this.git1=(0,p.Z)(this.pie2||this.secondaryColor,20),this.git2=(0,p.Z)(this.pie3||this.tertiaryColor,20),this.git3=(0,p.Z)(this.pie4||l(this.primaryColor,{h:-30}),20),this.git4=(0,p.Z)(this.pie5||l(this.primaryColor,{h:-60}),20),this.git5=(0,p.Z)(this.pie6||l(this.primaryColor,{h:-90}),10),this.git6=(0,p.Z)(this.pie7||l(this.primaryColor,{h:60}),10),this.git7=(0,p.Z)(this.pie8||l(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||u(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||u(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||(0,p.Z)(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||(0,p.Z)(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},E=(0,o.eW)(t=>{let e=new W;return e.calculate(t),e},"getThemeVariables"),O=class{static{(0,o.eW)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=l(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.primaryColor,this.darkMode),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=(0,h.Z)(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.Z)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.Z)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t],{h:180});for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,l:-(7+5*t)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||u(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||u(this.labelTextColor);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=(0,p.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,p.Z)(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.Z)(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||l(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||l(this.primaryColor,{l:-10}),this.pie5=this.pie5||l(this.secondaryColor,{l:-30}),this.pie6=this.pie6||l(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||l(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||l(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,f.Z)(this.quadrant1Fill)?(0,p.Z)(this.quadrant1Fill):(0,d.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.Z)(this.git0,25),this.git1=(0,p.Z)(this.git1,25),this.git2=(0,p.Z)(this.git2,25),this.git3=(0,p.Z)(this.git3,25),this.git4=(0,p.Z)(this.git4,25),this.git5=(0,p.Z)(this.git5,25),this.git6=(0,p.Z)(this.git6,25),this.git7=(0,p.Z)(this.git7,25)):(this.git0=(0,d.Z)(this.git0,25),this.git1=(0,d.Z)(this.git1,25),this.git2=(0,d.Z)(this.git2,25),this.git3=(0,d.Z)(this.git3,25),this.git4=(0,d.Z)(this.git4,25),this.git5=(0,d.Z)(this.git5,25),this.git6=(0,d.Z)(this.git6,25),this.git7=(0,d.Z)(this.git7,25)),this.gitInv0=this.gitInv0||(0,d.Z)(u(this.git0),25),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||u(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||u(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||B}calculate(t){if(Object.keys(this).forEach(t=>{"calculated"===this[t]&&(this[t]=void 0)}),"object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},$=(0,o.eW)(t=>{let e=new O;return e.calculate(t),e},"getThemeVariables"),I=class{static{(0,o.eW)(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=(0,p.Z)("#cde498",10),this.primaryBorderColor=L(this.primaryColor,this.darkMode),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.primaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,d.Z)(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||l(this.primaryColor,{h:30}),this.cScale4=this.cScale4||l(this.primaryColor,{h:60}),this.cScale5=this.cScale5||l(this.primaryColor,{h:90}),this.cScale6=this.cScale6||l(this.primaryColor,{h:120}),this.cScale7=this.cScale7||l(this.primaryColor,{h:150}),this.cScale8=this.cScale8||l(this.primaryColor,{h:210}),this.cScale9=this.cScale9||l(this.primaryColor,{h:270}),this.cScale10=this.cScale10||l(this.primaryColor,{h:300}),this.cScale11=this.cScale11||l(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||(0,d.Z)(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||(0,d.Z)(this.tertiaryColor,40);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=(0,d.Z)(this["cScale"+t],10),this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||l(this["cScale"+t],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{h:30,s:-30,l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{h:30,s:-30,l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||(0,p.Z)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||(0,p.Z)(this.mainBkg,20),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||l(this.primaryColor,{l:-30}),this.pie5=this.pie5||l(this.secondaryColor,{l:-30}),this.pie6=this.pie6||l(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||l(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||l(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||l(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||l(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||l(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||l(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,f.Z)(this.quadrant1Fill)?(0,p.Z)(this.quadrant1Fill):(0,d.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||l(this.primaryColor,{h:-30}),this.git4=this.git4||l(this.primaryColor,{h:-60}),this.git5=this.git5||l(this.primaryColor,{h:-90}),this.git6=this.git6||l(this.primaryColor,{h:60}),this.git7=this.git7||l(this.primaryColor,{h:120}),this.darkMode?(this.git0=(0,p.Z)(this.git0,25),this.git1=(0,p.Z)(this.git1,25),this.git2=(0,p.Z)(this.git2,25),this.git3=(0,p.Z)(this.git3,25),this.git4=(0,p.Z)(this.git4,25),this.git5=(0,p.Z)(this.git5,25),this.git6=(0,p.Z)(this.git6,25),this.git7=(0,p.Z)(this.git7,25)):(this.git0=(0,d.Z)(this.git0,25),this.git1=(0,d.Z)(this.git1,25),this.git2=(0,d.Z)(this.git2,25),this.git3=(0,d.Z)(this.git3,25),this.git4=(0,d.Z)(this.git4,25),this.git5=(0,d.Z)(this.git5,25),this.git6=(0,d.Z)(this.git6,25),this.git7=(0,d.Z)(this.git7,25)),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||u(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||u(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||B}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},D=(0,o.eW)(t=>{let e=new I;return e.calculate(t),e},"getThemeVariables"),Z=class{static{(0,o.eW)(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=(0,p.Z)(this.contrast,55),this.background="#ffffff",this.tertiaryColor=l(this.primaryColor,{h:-160}),this.primaryBorderColor=L(this.primaryColor,this.darkMode),this.secondaryBorderColor=L(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=L(this.tertiaryColor,this.darkMode),this.primaryTextColor=u(this.primaryColor),this.secondaryTextColor=u(this.secondaryColor),this.tertiaryTextColor=u(this.tertiaryColor),this.lineColor=u(this.background),this.textColor=u(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||(0,p.Z)(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,p.Z)(this.contrast,55),this.border2=this.contrast,this.actorBorder=(0,p.Z)(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||u(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||(0,p.Z)(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||(0,d.Z)(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||l(this.mainBkg,{l:-(5+5*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||l(this.mainBkg,{l:-(8+5*t)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=(0,p.Z)(this.contrast,30),this.sectionBkgColor2=(0,p.Z)(this.contrast,30),this.taskBorderColor=(0,d.Z)(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=(0,p.Z)(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=(0,d.Z)(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=l(this.primaryColor,{h:64}),this.fillType3=l(this.secondaryColor,{h:64}),this.fillType4=l(this.primaryColor,{h:-64}),this.fillType5=l(this.secondaryColor,{h:-64}),this.fillType6=l(this.primaryColor,{h:128}),this.fillType7=l(this.secondaryColor,{h:128});for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["pie"+t]=this["cScale"+t];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||l(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||l(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||l(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||l(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||l(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||l(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||(0,f.Z)(this.quadrant1Fill)?(0,p.Z)(this.quadrant1Fill):(0,d.Z)(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:this.xyChart?.backgroundColor||this.background,titleColor:this.xyChart?.titleColor||this.primaryTextColor,xAxisTitleColor:this.xyChart?.xAxisTitleColor||this.primaryTextColor,xAxisLabelColor:this.xyChart?.xAxisLabelColor||this.primaryTextColor,xAxisTickColor:this.xyChart?.xAxisTickColor||this.primaryTextColor,xAxisLineColor:this.xyChart?.xAxisLineColor||this.primaryTextColor,yAxisTitleColor:this.xyChart?.yAxisTitleColor||this.primaryTextColor,yAxisLabelColor:this.xyChart?.yAxisLabelColor||this.primaryTextColor,yAxisTickColor:this.xyChart?.yAxisTickColor||this.primaryTextColor,yAxisLineColor:this.xyChart?.yAxisLineColor||this.primaryTextColor,plotColorPalette:this.xyChart?.plotColorPalette||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:this.radar?.axisColor||this.lineColor,axisStrokeWidth:this.radar?.axisStrokeWidth||2,axisLabelFontSize:this.radar?.axisLabelFontSize||12,curveOpacity:this.radar?.curveOpacity||.5,curveStrokeWidth:this.radar?.curveStrokeWidth||2,graticuleColor:this.radar?.graticuleColor||"#DEDEDE",graticuleStrokeWidth:this.radar?.graticuleStrokeWidth||1,graticuleOpacity:this.radar?.graticuleOpacity||.3,legendBoxSize:this.radar?.legendBoxSize||12,legendFontSize:this.radar?.legendFontSize||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=(0,d.Z)(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||l(this.primaryColor,{h:-30}),this.git4=this.pie5||l(this.primaryColor,{h:-60}),this.git5=this.pie6||l(this.primaryColor,{h:-90}),this.git6=this.pie7||l(this.primaryColor,{h:60}),this.git7=this.pie8||l(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||u(this.git0),this.gitInv1=this.gitInv1||u(this.git1),this.gitInv2=this.gitInv2||u(this.git2),this.gitInv3=this.gitInv3||u(this.git3),this.gitInv4=this.gitInv4||u(this.git4),this.gitInv5=this.gitInv5||u(this.git5),this.gitInv6=this.gitInv6||u(this.git6),this.gitInv7=this.gitInv7||u(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||M,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||B}calculate(t){if("object"!=typeof t){this.updateColors();return}let e=Object.keys(t);e.forEach(e=>{this[e]=t[e]}),this.updateColors(),e.forEach(e=>{this[e]=t[e]})}},z={base:{getThemeVariables:A},dark:{getThemeVariables:E},default:{getThemeVariables:$},forest:{getThemeVariables:D},neutral:{getThemeVariables:(0,o.eW)(t=>{let e=new Z;return e.calculate(t),e},"getThemeVariables")}},q={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},N={...q,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:z.default.getThemeVariables(),sequence:{...q.sequence,messageFont:(0,o.eW)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:(0,o.eW)(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:(0,o.eW)(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...q.gantt,tickInterval:void 0,useWidth:void 0},c4:{...q.c4,useWidth:void 0,personFont:(0,o.eW)(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...q.flowchart,inheritDir:!1},external_personFont:(0,o.eW)(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:(0,o.eW)(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:(0,o.eW)(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:(0,o.eW)(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:(0,o.eW)(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:(0,o.eW)(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:(0,o.eW)(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:(0,o.eW)(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:(0,o.eW)(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:(0,o.eW)(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:(0,o.eW)(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:(0,o.eW)(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:(0,o.eW)(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:(0,o.eW)(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:(0,o.eW)(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:(0,o.eW)(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:(0,o.eW)(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:(0,o.eW)(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:(0,o.eW)(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:(0,o.eW)(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:(0,o.eW)(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...q.pie,useWidth:984},xyChart:{...q.xyChart,useWidth:void 0},requirement:{...q.requirement,useWidth:void 0},packet:{...q.packet},radar:{...q.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},P=(0,o.eW)((t,e="")=>Object.keys(t).reduce((r,i)=>Array.isArray(t[i])?r:"object"==typeof t[i]&&null!==t[i]?[...r,e+i,...P(t[i],"")]:[...r,e+i],[]),"keyify"),R=new Set(P(N,"")),j=N,H=(0,o.eW)(t=>{if(o.cM.debug("sanitizeDirective called with",t),"object"==typeof t&&null!=t){if(Array.isArray(t)){t.forEach(t=>H(t));return}for(let e of Object.keys(t)){if(o.cM.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!R.has(e)||null==t[e]){o.cM.debug("sanitize deleting key: ",e),delete t[e];continue}if("object"==typeof t[e]){o.cM.debug("sanitizing object",e),H(t[e]);continue}for(let r of["themeCSS","fontFamily","altFontFamily"])e.includes(r)&&(o.cM.debug("sanitizing css option",e),t[e]=U(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}o.cM.debug("After sanitization",t)}},"sanitizeDirective"),U=(0,o.eW)(t=>{let e=0,r=0;for(let i of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";"{"===i?e++:"}"===i&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),Y=Object.freeze(j),G=S({},Y),V=[],X=S({},Y),Q=(0,o.eW)((t,e)=>{let r=S({},t),i={};for(let t of e)tn(t),i=S(i,t);if(r=S(r,i),i.theme&&i.theme in z){let t=S({},n),e=S(t.themeVariables||{},i.themeVariables);r.theme&&r.theme in z&&(r.themeVariables=z[r.theme].getThemeVariables(e))}return tc(X=r),X},"updateCurrentConfig"),K=(0,o.eW)(t=>(G=S({},Y),G=S(G,t),t.theme&&z[t.theme]&&(G.themeVariables=z[t.theme].getThemeVariables(t.themeVariables)),Q(G,V),G),"setSiteConfig"),J=(0,o.eW)(t=>{n=S({},t)},"saveConfigFromInitialize"),tt=(0,o.eW)(t=>(G=S(G,t),Q(G,V),G),"updateSiteConfig"),te=(0,o.eW)(()=>S({},G),"getSiteConfig"),tr=(0,o.eW)(t=>(tc(t),S(X,t),ti()),"setConfig"),ti=(0,o.eW)(()=>S({},X),"getConfig"),tn=(0,o.eW)(t=>{t&&(["secure",...G.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(o.cM.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{"string"==typeof t[e]&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],"object"==typeof t[e]&&tn(t[e])}))},"sanitize"),to=(0,o.eW)(t=>{H(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),V.push(t),Q(G,V)},"addDirective"),ta=(0,o.eW)((t=G)=>{Q(t,V=[])},"reset"),ts={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},tl={},th=(0,o.eW)(t=>{tl[t]||(o.cM.warn(ts[t]),tl[t]=!0)},"issueWarning"),tc=(0,o.eW)(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&th("LAZY_LOAD_DEPRECATED")},"checkConfig"),tu=(0,o.eW)(()=>{let t={};for(let e of(n&&(t=S(t,n)),V))t=S(t,e);return t},"getUserDefinedConfig"),td=/<br\s*\/?>/gi,tp=(0,o.eW)(t=>t?tv(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),tf=(i=!1,()=>{i||(tg(),i=!0)});function tg(){let t="data-temp-href-target";g.Z.addHook("beforeSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),g.Z.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),"_blank"===e.getAttribute("target")&&e.setAttribute("rel","noopener"))})}(0,o.eW)(tg,"setupDompurifyHooks");var tm=(0,o.eW)(t=>(tf(),g.Z.sanitize(t)),"removeScript"),ty=(0,o.eW)((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;"antiscript"===r||"strict"===r?t=tm(t):"loose"!==r&&(t=t_(t=(t=(t=tv(t)).replace(/</g,"<").replace(/>/g,">")).replace(/=/g,"=")))}return t},"sanitizeMore"),tx=(0,o.eW)((t,e)=>t?t=e.dompurifyConfig?g.Z.sanitize(ty(t,e),e.dompurifyConfig).toString():g.Z.sanitize(ty(t,e),{FORBID_TAGS:["style"]}).toString():t,"sanitizeText"),tb=(0,o.eW)((t,e)=>"string"==typeof t?tx(t,e):t.flat().map(t=>tx(t,e)),"sanitizeTextOrArray"),tk=(0,o.eW)(t=>td.test(t),"hasBreaks"),tC=(0,o.eW)(t=>t.split(td),"splitBreaks"),t_=(0,o.eW)(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),tv=(0,o.eW)(t=>t.replace(td,"#br#"),"breakToPlaceholder"),tw=(0,o.eW)(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),tT=(0,o.eW)(t=>!(!1===t||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),tS=(0,o.eW)(function(...t){return Math.max(...t.filter(t=>!isNaN(t)))},"getMax"),tM=(0,o.eW)(function(...t){return Math.min(...t.filter(t=>!isNaN(t)))},"getMin"),tB=(0,o.eW)(function(t){let e=t.split(/(,)/),r=[];for(let t=0;t<e.length;t++){let i=e[t];if(","===i&&t>0&&t+1<e.length){let n=e[t-1],o=e[t+1];tF(n,o)&&(i=n+","+o,t++,r.pop())}r.push(tA(i))}return r.join("")},"parseGenericTypes"),tL=(0,o.eW)((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),tF=(0,o.eW)((t,e)=>{let r=tL(t,"~"),i=tL(e,"~");return 1===r&&1===i},"shouldCombineSets"),tA=(0,o.eW)(t=>{let e=tL(t,"~"),r=!1;if(e<=1)return t;e%2!=0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let i=[...t],n=i.indexOf("~"),o=i.lastIndexOf("~");for(;-1!==n&&-1!==o&&n!==o;)i[n]="<",i[o]=">",n=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),tW=(0,o.eW)(()=>void 0!==window.MathMLElement,"isMathMLSupported"),tE=/\$\$(.*)\$\$/g,tO=(0,o.eW)(t=>(t.match(tE)?.length??0)>0,"hasKatex"),t$=(0,o.eW)(async(t,e)=>{let r=document.createElement("div");r.innerHTML=await tD(t,e),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";let i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),tI=(0,o.eW)(async(t,e)=>{if(!tO(t))return t;if(!(tW()||e.legacyMathML||e.forceLegacyMathML))return t.replace(tE,"MathML is unsupported in this environment.");{let{default:i}=await r.e(3954).then(r.bind(r,58455)),n=e.forceLegacyMathML||!tW()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(td).map(t=>tO(t)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${t}</div>`:`<div>${t}</div>`).join("").replace(tE,(t,e)=>i.renderToString(e,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),tD=(0,o.eW)(async(t,e)=>tx(await tI(t,e),e),"renderKatexSanitized"),tZ={getRows:tp,sanitizeText:tx,sanitizeTextOrArray:tb,hasBreaks:tk,splitBreaks:tC,lineBreakRegex:td,removeScript:tm,getUrl:tw,evaluate:tT,getMax:tS,getMin:tM},tz=(0,o.eW)(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),tq=(0,o.eW)(function(t,e,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${e}px;`)):(i.set("height",t),i.set("width",e)),i},"calculateSvgSizeAttrs"),tN=(0,o.eW)(function(t,e,r,i){tz(t,tq(e,r,i))},"configureSvgSize"),tP=(0,o.eW)(function(t,e,r,i){let n=e.node().getBBox(),a=n.width,s=n.height;o.cM.info(`SVG bounds: ${a}x${s}`,n);let l=0,h=0;o.cM.info(`Graph bounds: ${l}x${h}`,t),l=a+2*r,h=s+2*r,o.cM.info(`Calculated bounds: ${l}x${h}`),tN(e,h,l,i);let c=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",c)},"setupGraphViewbox"),tR={},tj=(0,o.eW)((t,e,r)=>{let i="";return t in tR&&tR[t]?i=tR[t](r):o.cM.warn(`No theme found for ${t}`),` & {
|
|
2
|
+
font-family: ${r.fontFamily};
|
|
3
|
+
font-size: ${r.fontSize};
|
|
4
|
+
fill: ${r.textColor}
|
|
5
|
+
}
|
|
6
|
+
@keyframes edge-animation-frame {
|
|
7
|
+
from {
|
|
8
|
+
stroke-dashoffset: 0;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
@keyframes dash {
|
|
12
|
+
to {
|
|
13
|
+
stroke-dashoffset: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
& .edge-animation-slow {
|
|
17
|
+
stroke-dasharray: 9,5 !important;
|
|
18
|
+
stroke-dashoffset: 900;
|
|
19
|
+
animation: dash 50s linear infinite;
|
|
20
|
+
stroke-linecap: round;
|
|
21
|
+
}
|
|
22
|
+
& .edge-animation-fast {
|
|
23
|
+
stroke-dasharray: 9,5 !important;
|
|
24
|
+
stroke-dashoffset: 900;
|
|
25
|
+
animation: dash 20s linear infinite;
|
|
26
|
+
stroke-linecap: round;
|
|
27
|
+
}
|
|
28
|
+
/* Classes common for multiple diagrams */
|
|
29
|
+
|
|
30
|
+
& .error-icon {
|
|
31
|
+
fill: ${r.errorBkgColor};
|
|
32
|
+
}
|
|
33
|
+
& .error-text {
|
|
34
|
+
fill: ${r.errorTextColor};
|
|
35
|
+
stroke: ${r.errorTextColor};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
& .edge-thickness-normal {
|
|
39
|
+
stroke-width: 1px;
|
|
40
|
+
}
|
|
41
|
+
& .edge-thickness-thick {
|
|
42
|
+
stroke-width: 3.5px
|
|
43
|
+
}
|
|
44
|
+
& .edge-pattern-solid {
|
|
45
|
+
stroke-dasharray: 0;
|
|
46
|
+
}
|
|
47
|
+
& .edge-thickness-invisible {
|
|
48
|
+
stroke-width: 0;
|
|
49
|
+
fill: none;
|
|
50
|
+
}
|
|
51
|
+
& .edge-pattern-dashed{
|
|
52
|
+
stroke-dasharray: 3;
|
|
53
|
+
}
|
|
54
|
+
.edge-pattern-dotted {
|
|
55
|
+
stroke-dasharray: 2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
& .marker {
|
|
59
|
+
fill: ${r.lineColor};
|
|
60
|
+
stroke: ${r.lineColor};
|
|
61
|
+
}
|
|
62
|
+
& .marker.cross {
|
|
63
|
+
stroke: ${r.lineColor};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
& svg {
|
|
67
|
+
font-family: ${r.fontFamily};
|
|
68
|
+
font-size: ${r.fontSize};
|
|
69
|
+
}
|
|
70
|
+
& p {
|
|
71
|
+
margin: 0
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
${i}
|
|
75
|
+
|
|
76
|
+
${e}
|
|
77
|
+
`},"getStyles"),tH=(0,o.eW)((t,e)=>{void 0!==e&&(tR[t]=e)},"addStylesForDiagram"),tU=tj,tY={};(0,o.r2)(tY,{clear:()=>tK,getAccDescription:()=>t2,getAccTitle:()=>t0,getDiagramTitle:()=>t5,setAccDescription:()=>t1,setAccTitle:()=>tJ,setDiagramTitle:()=>t3});var tG="",tV="",tX="",tQ=(0,o.eW)(t=>tx(t,ti()),"sanitizeText"),tK=(0,o.eW)(()=>{tG="",tX="",tV=""},"clear"),tJ=(0,o.eW)(t=>{tG=tQ(t).replace(/^\s+/g,"")},"setAccTitle"),t0=(0,o.eW)(()=>tG,"getAccTitle"),t1=(0,o.eW)(t=>{tX=tQ(t).replace(/\n\s+/g,"\n")},"setAccDescription"),t2=(0,o.eW)(()=>tX,"getAccDescription"),t3=(0,o.eW)(t=>{tV=tQ(t)},"setDiagramTitle"),t5=(0,o.eW)(()=>tV,"getDiagramTitle"),t6=o.cM,t4=o.Ub,t8=ti,t9=tr,t7=Y,et=(0,o.eW)(t=>tx(t,t8()),"sanitizeText"),ee=tP,er=(0,o.eW)(()=>tY,"getCommonDb"),ei={},en=(0,o.eW)((t,e,r)=>{ei[t]&&t6.warn(`Diagram with id ${t} already registered. Overwriting.`),ei[t]=e,r&&v(t,r),tH(t,e.styles),e.injectUtils?.(t6,t4,t8,et,ee,er(),()=>{})},"registerDiagram"),eo=(0,o.eW)(t=>{if(t in ei)return ei[t];throw new ea(t)},"getDiagram"),ea=class extends Error{static{(0,o.eW)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},31954:function(t,e,r){"use strict";r.d(e,{Ub:function(){return h},cM:function(){return l},eW:function(){return o},r2:function(){return a}});var i=r(71096),n=Object.defineProperty,o=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},s={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},l={trace:o((...t)=>{},"trace"),debug:o((...t)=>{},"debug"),info:o((...t)=>{},"info"),warn:o((...t)=>{},"warn"),error:o((...t)=>{},"error"),fatal:o((...t)=>{},"fatal")},h=o(function(t="fatal"){let e=s.fatal;"string"==typeof t?t.toLowerCase() in s&&(e=s[t]):"number"==typeof t&&(e=t),l.trace=()=>{},l.debug=()=>{},l.info=()=>{},l.warn=()=>{},l.error=()=>{},l.fatal=()=>{},e<=s.fatal&&(l.fatal=console.error?console.error.bind(console,c("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",c("FATAL"))),e<=s.error&&(l.error=console.error?console.error.bind(console,c("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",c("ERROR"))),e<=s.warn&&(l.warn=console.warn?console.warn.bind(console,c("WARN"),"color: orange"):console.log.bind(console,`\x1b[33m`,c("WARN"))),e<=s.info&&(l.info=console.info?console.info.bind(console,c("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",c("INFO"))),e<=s.debug&&(l.debug=console.debug?console.debug.bind(console,c("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",c("DEBUG"))),e<=s.trace&&(l.trace=console.debug?console.debug.bind(console,c("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",c("TRACE")))},"setLogLevel"),c=o(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},33281:function(t,e,r){"use strict";r.d(e,{Fh:function(){return l},TA:function(){return o},UG:function(){return h},_q:function(){return c},dT:function(){return a}});var i=r(55166),n=r(31954),o=(0,n.eW)(t=>{let{handDrawnSeed:e}=(0,i.nV)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),a=(0,n.eW)(t=>{let e=s([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),s=(0,n.eW)(t=>{let e=new Map;return t.forEach(t=>{let[r,i]=t.split(":");e.set(r.trim(),i?.trim())}),e},"styles2Map"),l=(0,n.eW)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),h=(0,n.eW)(t=>{let{stylesArray:e}=a(t),r=[],i=[],n=[],o=[];return e.forEach(t=>{let e=t[0];l(e)?r.push(t.join(":")+" !important"):(i.push(t.join(":")+" !important"),e.includes("stroke")&&n.push(t.join(":")+" !important"),"fill"===e&&o.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:n,backgroundStyles:o}},"styles2String"),c=(0,n.eW)((t,e)=>{let{themeVariables:r,handDrawnSeed:n}=(0,i.nV)(),{nodeBorder:o,mainBkg:s}=r,{stylesMap:l}=a(t);return Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||o,seed:n,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:u(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),u=(0,n.eW)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},10507:function(t,e,r){"use strict";r.d(e,{L:function(){return i}});var i=(0,r(31954).eW)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins")},34960:function(t,e,r){"use strict";r.d(e,{P:function(){return a}});var i=r(55166),n=r(31954),o=r(84370),a=(0,n.eW)(t=>{let{securityLevel:e}=(0,i.nV)(),r=(0,o.Ys)("body");if("sandbox"===e){let e=(0,o.Ys)(`#i${t}`),i=e.node()?.contentDocument??document;r=(0,o.Ys)(i.body)}return r.select(`#${t}`)},"selectSvgElement")},54973:function(t,e,r){"use strict";r.d(e,{Os:function(){return n},oZ:function(){return o},om:function(){return l}});var i=r(31954),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},o={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function a(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=s(t),e=s(e);let[r,i]=[t.x,t.y],[n,o]=[e.x,e.y],a=n-r,l=o-i;return{angle:Math.atan(l/a),deltaX:a,deltaY:l}}(0,i.eW)(a,"calculateDeltaAndAngle");var s=(0,i.eW)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),l=(0,i.eW)(t=>({x:(0,i.eW)(function(e,r,i){let o=0,l=s(i[0]).x<s(i[i.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaX:r}=a(i[0],i[1]);o=n[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=a(i[i.length-1],i[i.length-2]);o=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let h=Math.abs(s(e).x-s(i[i.length-1]).x),c=Math.abs(s(e).y-s(i[i.length-1]).y),u=Math.abs(s(e).x-s(i[0]).x),d=Math.abs(s(e).y-s(i[0]).y),p=n[t.arrowTypeStart],f=n[t.arrowTypeEnd];if(h<f&&h>0&&c<f){let t=f+1-h;t*="right"===l?-1:1,o-=t}if(u<p&&u>0&&d<p){let t=p+1-u;t*="right"===l?-1:1,o+=t}return s(e).x+o},"x"),y:(0,i.eW)(function(e,r,i){let o=0,l=s(i[0]).y<s(i[i.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaY:r}=a(i[0],i[1]);o=n[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=a(i[i.length-1],i[i.length-2]);o=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let h=Math.abs(s(e).y-s(i[i.length-1]).y),c=Math.abs(s(e).x-s(i[i.length-1]).x),u=Math.abs(s(e).y-s(i[0]).y),d=Math.abs(s(e).x-s(i[0]).x),p=n[t.arrowTypeStart],f=n[t.arrowTypeEnd];if(h<f&&h>0&&c<f){let t=f+1-h;t*="up"===l?-1:1,o-=t}if(u<p&&u>0&&d<p){let t=p+1-u;t*="up"===l?-1:1,o+=t}return s(e).y+o},"y")}),"getLineFunctionsWithOffset")},66691:function(t,e,r){"use strict";r.d(e,{QA:function(){return t2},rw:function(){return t4},s4:function(){return tR},ef:function(){return tq},EY:function(){return t6},cN:function(){return tD}});var i=r(94705),n=r(55166),o=r(31954);let a=(t,e,r,i="")=>{let n=t.split(":");if("@"===t.slice(0,1)){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let t=n.pop(),r=n.pop(),o={provider:n.length>0?n[0]:i,prefix:r,name:t};return e&&!s(o)?null:o}let o=n[0],a=o.split("-");if(a.length>1){let t={provider:i,prefix:a.shift(),name:a.join("-")};return e&&!s(t)?null:t}if(r&&""===i){let t={provider:i,prefix:"",name:o};return e&&!s(t,r)?null:t}return null},s=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),l=Object.freeze({left:0,top:0,width:16,height:16}),h=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...l,...h}),u=Object.freeze({...c,body:"",hidden:!1});function d(t,e){let r=function(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let i=((t.rotate||0)+(e.rotate||0))%4;return i&&(r.rotate=i),r}(t,e);for(let i in u)i in h?i in t&&!(i in r)&&(r[i]=h[i]):i in e?r[i]=e[i]:i in t&&(r[i]=t[i]);return r}function p(t,e,r){let i=t.icons,n=t.aliases||Object.create(null),o={};function a(t){o=d(i[t]||n[t],o)}return a(e),r.forEach(a),d(t,o)}let f=Object.freeze({...Object.freeze({width:null,height:null}),...h}),g=/(-?[0-9.]*[0-9]+[0-9.]*)/g,m=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function y(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let i=t.split(g);if(null===i||!i.length)return t;let n=[],o=i.shift(),a=m.test(o);for(;;){if(a){let t=parseFloat(o);isNaN(t)?n.push(o):n.push(Math.ceil(t*e*r)/r)}else n.push(o);if(void 0===(o=i.shift()))return n.join("");a=!a}}let x=t=>"unset"===t||"undefined"===t||"none"===t,b=/\sid="(\S+)"/g,k=new Map;var C=r(84370);function _(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var v=_(),w={exec:()=>null};function T(t,e=""){let r="string"==typeof t?t:t.source,i={replace:(t,e)=>{let n="string"==typeof e?e:e.source;return n=n.replace(M.caret,"$1"),r=r.replace(t,n),i},getRegex:()=>new RegExp(r,e)};return i}var S=(()=>{try{return RegExp("(?<=1)(?<!1)"),!0}catch{return!1}})(),M={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},B=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,L=/(?:[*+-]|\d{1,9}[.)])/,F=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,A=T(F).replace(/bull/g,L).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),W=T(F).replace(/bull/g,L).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),E=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,O=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,$=T(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",O).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),I=T(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,L).getRegex(),D="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Z=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,z=T("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Z).replace("tag",D).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q=T(E).replace("hr",B).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),N={blockquote:T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",q).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:$,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:B,html:z,lheading:A,list:I,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:q,table:w,text:/^[^\n]+/},P=T("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",B).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex(),R={...N,lheading:W,table:P,paragraph:T(E).replace("hr",B).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",D).getRegex()},j={...N,html:T(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:w,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:T(E).replace("hr",B).replace("heading",` *#{1,6} *[^
|
|
78
|
+
]`).replace("lheading",A).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},H=/^( {2,}|\\)\n(?!\s*$)/,U=/[\p{P}\p{S}]/u,Y=/[\s\p{P}\p{S}]/u,G=/[^\s\p{P}\p{S}]/u,V=T(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Y).getRegex(),X=/(?!~)[\p{P}\p{S}]/u,Q=T(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",S?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),K=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,J=T(K,"u").replace(/punct/g,U).getRegex(),tt=T(K,"u").replace(/punct/g,X).getRegex(),te="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",tr=T(te,"gu").replace(/notPunctSpace/g,G).replace(/punctSpace/g,Y).replace(/punct/g,U).getRegex(),ti=T(te,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,X).getRegex(),tn=T("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G).replace(/punctSpace/g,Y).replace(/punct/g,U).getRegex(),to=T(/\\(punct)/,"gu").replace(/punct/g,U).getRegex(),ta=T(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ts=T(Z).replace("(?:-->|$)","-->").getRegex(),tl=T("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ts).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),th=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,tc=T(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",th).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tu=T(/^!?\[(label)\]\[(ref)\]/).replace("label",th).replace("ref",O).getRegex(),td=T(/^!?\[(ref)\](?:\[\])?/).replace("ref",O).getRegex(),tp=T("reflink|nolink(?!\\()","g").replace("reflink",tu).replace("nolink",td).getRegex(),tf=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tg={_backpedal:w,anyPunctuation:to,autolink:ta,blockSkip:Q,br:H,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:w,emStrongLDelim:J,emStrongRDelimAst:tr,emStrongRDelimUnd:tn,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:tc,nolink:td,punctuation:V,reflink:tu,reflinkSearch:tp,tag:tl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:w},tm={...tg,link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",th).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",th).getRegex()},ty={...tg,emStrongRDelimAst:ti,emStrongLDelim:tt,url:T(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tf).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:T(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tf).getRegex()},tx={...ty,br:T(H).replace("{2,}","*").getRegex(),text:T(ty.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tb={normal:N,gfm:R,pedantic:j},tk={normal:tg,gfm:ty,breaks:tx,pedantic:tm},tC={"&":"&","<":"<",">":">",'"':""","'":"'"},t_=t=>tC[t];function tv(t,e){if(e){if(M.escapeTest.test(t))return t.replace(M.escapeReplace,t_)}else if(M.escapeTestNoEncode.test(t))return t.replace(M.escapeReplaceNoEncode,t_);return t}function tw(t){try{t=encodeURI(t).replace(M.percentDecode,"%")}catch{return null}return t}function tT(t,e){let r=t.replace(M.findPipe,(t,e,r)=>{let i=!1,n=e;for(;--n>=0&&"\\"===r[n];)i=!i;return i?"|":" |"}).split(M.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e){if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("")}for(;i<r.length;i++)r[i]=r[i].trim().replace(M.slashPipe,"|");return r}function tS(t,e,r){let i=t.length;if(0===i)return"";let n=0;for(;n<i;){let o=t.charAt(i-n-1);if(o!==e||r){if(o!==e&&r)n++;else break}else n++}return t.slice(0,i-n)}function tM(t,e,r,i,n){let o=e.href,a=e.title||null,s=t[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:o,title:a,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,l}var tB=class{options;rules;lexer;constructor(t){this.options=t||v}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tS(t,`
|
|
79
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let i=t.match(r.other.indentCodeCompensation);if(null===i)return e;let n=i[1];return e.split(`
|
|
80
|
+
`).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[i]=e;return i.length>=n.length?t.slice(n.length):t}).join(`
|
|
81
|
+
`)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tS(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tS(e[0],`
|
|
82
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tS(e[0],`
|
|
83
|
+
`).split(`
|
|
84
|
+
`),r="",i="",n=[];for(;t.length>0;){let e=!1,o=[],a;for(a=0;a<t.length;a++)if(this.rules.other.blockquoteStart.test(t[a]))o.push(t[a]),e=!0;else if(e)break;else o.push(t[a]);t=t.slice(a);let s=o.join(`
|
|
85
|
+
`),l=s.replace(this.rules.other.blockquoteSetextReplace,`
|
|
86
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
87
|
+
${s}`:s,i=i?`${i}
|
|
88
|
+
${l}`:l;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,n,!0),this.lexer.state.top=h,0===t.length)break;let c=n.at(-1);if(c?.type==="code")break;if(c?.type==="blockquote"){let e=c.raw+`
|
|
89
|
+
`+t.join(`
|
|
90
|
+
`),o=this.blockquote(e);n[n.length-1]=o,r=r.substring(0,r.length-c.raw.length)+o.raw,i=i.substring(0,i.length-c.text.length)+o.text;break}if(c?.type==="list"){let e=c.raw+`
|
|
91
|
+
`+t.join(`
|
|
92
|
+
`),o=this.list(e);n[n.length-1]=o,r=r.substring(0,r.length-c.raw.length)+o.raw,i=i.substring(0,i.length-c.raw.length)+o.raw,t=e.substring(n.at(-1).raw.length).split(`
|
|
93
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:n,text:i}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),i=r.length>1,n={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");let o=this.rules.other.listItemRegex(r),a=!1;for(;t;){let r=!1,i="",s="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;i=e[0],t=t.substring(i.length);let l=e[2].split(`
|
|
94
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),h=t.split(`
|
|
95
|
+
`,1)[0],c=!l.trim(),u=0;if(this.options.pedantic?(u=2,s=l.trimStart()):c?u=e[1].length+1:(u=(u=e[2].search(this.rules.other.nonSpaceChar))>4?1:u,s=l.slice(u),u+=e[1].length),c&&this.rules.other.blankLine.test(h)&&(i+=h+`
|
|
96
|
+
`,t=t.substring(h.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(u),r=this.rules.other.hrRegex(u),n=this.rules.other.fencesBeginRegex(u),o=this.rules.other.headingBeginRegex(u),a=this.rules.other.htmlBeginRegex(u);for(;t;){let d=t.split(`
|
|
97
|
+
`,1)[0],p;if(h=d,p=this.options.pedantic?h=h.replace(this.rules.other.listReplaceNesting," "):h.replace(this.rules.other.tabCharGlobal," "),n.test(h)||o.test(h)||a.test(h)||e.test(h)||r.test(h))break;if(p.search(this.rules.other.nonSpaceChar)>=u||!h.trim())s+=`
|
|
98
|
+
`+p.slice(u);else{if(c||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||n.test(l)||o.test(l)||r.test(l))break;s+=`
|
|
99
|
+
`+h}c||h.trim()||(c=!0),i+=d+`
|
|
100
|
+
`,t=t.substring(d.length+1),l=p.slice(u)}}n.loose||(a?n.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(a=!0));let d=null,p;this.options.gfm&&(d=this.rules.other.listIsTask.exec(s))&&(p="[ ] "!==d[0],s=s.replace(this.rules.other.listReplaceTask,"")),n.items.push({type:"list_item",raw:i,task:!!d,checked:p,loose:!1,text:s,tokens:[]}),n.raw+=i}let s=n.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),n.raw=n.raw.trimEnd();for(let t=0;t<n.items.length;t++)if(this.lexer.state.top=!1,n.items[t].tokens=this.lexer.blockTokens(n.items[t].text,[]),!n.loose){let e=n.items[t].tokens.filter(t=>"space"===t.type),r=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));n.loose=r}if(n.loose)for(let t=0;t<n.items.length;t++)n.items[t].loose=!0;return n}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:i}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=tT(e[1]),i=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
101
|
+
`):[],o={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let t of i)this.rules.other.tableAlignRight.test(t)?o.align.push("right"):this.rules.other.tableAlignCenter.test(t)?o.align.push("center"):this.rules.other.tableAlignLeft.test(t)?o.align.push("left"):o.align.push(null);for(let t=0;t<r.length;t++)o.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:o.align[t]});for(let t of n)o.rows.push(tT(t,o.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:o.align[e]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
|
|
102
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tS(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t,e){if(-1===t.indexOf(")"))return -1;let r=0;for(let e=0;e<t.length;e++)if("\\"===t[e])e++;else if("("===t[e])r++;else if(")"===t[e]&&--r<0)return e;return r>0?-2:-1}(e[2],"()");if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],i="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],i=t[3])}else i=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),tM(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return tM(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...i[0]].length-1,n,o,a=r,s=0,l="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(i=l.exec(e));){if(!(n=i[1]||i[2]||i[3]||i[4]||i[5]||i[6]))continue;if(o=[...n].length,i[3]||i[4]){a+=o;continue}if((i[5]||i[6])&&r%3&&!((r+o)%3)){s+=o;continue}if((a-=o)>0)continue;o=Math.min(o,o+a+s);let e=[...i[0]][0].length,l=t.slice(0,r+i.index+e+o);if(Math.min(r,o)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let h=l.slice(2,-2);return{type:"strong",raw:l,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),i=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&i&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let i;do i=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(i!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tL=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||v,this.options.tokenizer=this.options.tokenizer||new tB,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:M,block:tb.normal,inline:tk.normal};this.options.pedantic?(e.block=tb.pedantic,e.inline=tk.pedantic):this.options.gfm&&(e.block=tb.gfm,this.options.breaks?e.inline=tk.breaks:e.inline=tk.gfm),this.tokenizer.rules=e}static get rules(){return{block:tb,inline:tk}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(M.carriageReturn,`
|
|
103
|
+
`),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(M.tabCharGlobal," ").replace(M.spaceLine,""));t;){let i;if(this.options.extensions?.block?.some(r=>!!(i=r.call({lexer:this},t,e))&&(t=t.substring(i.raw.length),e.push(i),!0)))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let r=e.at(-1);1===i.raw.length&&void 0!==r?r.raw+=`
|
|
104
|
+
`:e.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
105
|
+
`)?"":`
|
|
106
|
+
`)+i.raw,r.text+=`
|
|
107
|
+
`+i.text,this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if((i=this.tokenizer.fences(t))||(i=this.tokenizer.heading(t))||(i=this.tokenizer.hr(t))||(i=this.tokenizer.blockquote(t))||(i=this.tokenizer.list(t))||(i=this.tokenizer.html(t))){t=t.substring(i.raw.length),e.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
108
|
+
`)?"":`
|
|
109
|
+
`)+i.raw,r.text+=`
|
|
110
|
+
`+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},e.push(i));continue}if((i=this.tokenizer.table(t))||(i=this.tokenizer.lheading(t))){t=t.substring(i.raw.length),e.push(i);continue}let n=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),i;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&i>=0&&(e=Math.min(e,i))}),e<1/0&&e>=0&&(n=t.substring(0,e+1))}if(this.state.top&&(i=this.tokenizer.paragraph(n))){let o=e.at(-1);r&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
111
|
+
`)?"":`
|
|
112
|
+
`)+i.raw,o.text+=`
|
|
113
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):e.push(i),r=n.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
|
|
114
|
+
`)?"":`
|
|
115
|
+
`)+i.raw,r.text+=`
|
|
116
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(i);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,i=t,n=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(n=this.tokenizer.rules.inline.reflinkSearch.exec(i));)t.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(n=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(n=this.tokenizer.rules.inline.blockSkip.exec(i));)r=n[2]?n[2].length:0,i=i.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=this.options.hooks?.emStrongMask?.call({lexer:this},i)??i;let o=!1,a="";for(;t;){let r;if(o||(a=""),o=!1,this.options.extensions?.inline?.some(i=>!!(r=i.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let i=e.at(-1);"text"===r.type&&i?.type==="text"?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,i,a))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let n=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),i;this.options.extensions.startInline.forEach(t=>{"number"==typeof(i=t.call({lexer:this},r))&&i>=0&&(e=Math.min(e,i))}),e<1/0&&e>=0&&(n=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(n)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(a=r.raw.slice(-1)),o=!0;let i=e.at(-1);i?.type==="text"?(i.raw+=r.raw,i.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},tF=class{options;parser;constructor(t){this.options=t||v}space(t){return""}code({text:t,lang:e,escaped:r}){let i=(e||"").match(M.notSpaceStart)?.[0],n=t.replace(M.endingNewline,"")+`
|
|
117
|
+
`;return i?'<pre><code class="language-'+tv(i)+'">'+(r?n:tv(n,!0))+`</code></pre>
|
|
118
|
+
`:"<pre><code>"+(r?n:tv(n,!0))+`</code></pre>
|
|
119
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
120
|
+
${this.parser.parse(t)}</blockquote>
|
|
121
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
122
|
+
`}hr(t){return`<hr>
|
|
123
|
+
`}list(t){let e=t.ordered,r=t.start,i="";for(let e=0;e<t.items.length;e++){let r=t.items[e];i+=this.listitem(r)}let n=e?"ol":"ul";return"<"+n+(e&&1!==r?' start="'+r+'"':"")+`>
|
|
124
|
+
`+i+"</"+n+`>
|
|
125
|
+
`}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tv(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
|
|
126
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
127
|
+
`}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let i="";for(let e=0;e<t.rows.length;e++){let n=t.rows[e];r="";for(let t=0;t<n.length;t++)r+=this.tablecell(n[t]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
128
|
+
<thead>
|
|
129
|
+
`+e+`</thead>
|
|
130
|
+
`+i+`</table>
|
|
131
|
+
`}tablerow({text:t}){return`<tr>
|
|
132
|
+
${t}</tr>
|
|
133
|
+
`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
|
|
134
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${tv(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let i=this.parser.parseInline(r),n=tw(t);if(null===n)return i;let o='<a href="'+(t=n)+'"';return e&&(o+=' title="'+tv(e)+'"'),o+=">"+i+"</a>"}image({href:t,title:e,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let n=tw(t);if(null===n)return tv(r);t=n;let o=`<img src="${t}" alt="${r}"`;return e&&(o+=` title="${tv(e)}"`),o+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tv(t.text)}},tA=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},tW=class t{options;renderer;textRenderer;constructor(t){this.options=t||v,this.options.renderer=this.options.renderer||new tF,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tA}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let i=0;i<t.length;i++){let n=t[i];if(this.options.extensions?.renderers?.[n.type]){let t=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(n.type)){r+=t||"";continue}}switch(n.type){case"space":r+=this.renderer.space(n);continue;case"hr":r+=this.renderer.hr(n);continue;case"heading":r+=this.renderer.heading(n);continue;case"code":r+=this.renderer.code(n);continue;case"table":r+=this.renderer.table(n);continue;case"blockquote":r+=this.renderer.blockquote(n);continue;case"list":r+=this.renderer.list(n);continue;case"html":r+=this.renderer.html(n);continue;case"def":r+=this.renderer.def(n);continue;case"paragraph":r+=this.renderer.paragraph(n);continue;case"text":{let o=n,a=this.renderer.text(o);for(;i+1<t.length&&"text"===t[i+1].type;)o=t[++i],a+=`
|
|
135
|
+
`+this.renderer.text(o);e?r+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:!0}]}):r+=a;continue}default:{let t='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let i=0;i<t.length;i++){let n=t[i];if(this.options.extensions?.renderers?.[n.type]){let t=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){r+=t||"";continue}}switch(n.type){case"escape":case"text":r+=e.text(n);break;case"html":r+=e.html(n);break;case"link":r+=e.link(n);break;case"image":r+=e.image(n);break;case"strong":r+=e.strong(n);break;case"em":r+=e.em(n);break;case"codespan":r+=e.codespan(n);break;case"br":r+=e.br(n);break;case"del":r+=e.del(n);break;default:{let t='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}},tE=class{options;block;constructor(t){this.options=t||v}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?tL.lex:tL.lexInline}provideParser(){return this.block?tW.parse:tW.parseInline}},tO=new class{defaults=_();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tW;Renderer=tF;TextRenderer=tA;Lexer=tL;Tokenizer=tB;Hooks=tE;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":for(let t of i.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of i.rows)for(let i of t)r=r.concat(this.walkTokens(i.tokens,e));break;case"list":r=r.concat(this.walkTokens(i.items,e));break;default:{let t=i;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(i=>{let n=t[i].flat(1/0);r=r.concat(this.walkTokens(n,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let i=t.renderer.apply(this,e);return!1===i&&(i=r.apply(this,e)),i}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new tF(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let i=t.renderer[r],n=e[r];e[r]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=n.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new tB(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let i=t.tokenizer[r],n=e[r];e[r]=(...t)=>{let r=i.apply(e,t);return!1===r&&(r=n.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tE;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let i=t.hooks[r],n=e[r];tE.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tE.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await i.call(e,t);return n.call(e,r)})();let o=i.call(e,t);return n.call(e,o)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await i.apply(e,t);return!1===r&&(r=await n.apply(e,t)),r})();let r=i.apply(e,t);return!1===r&&(r=n.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,i=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(i.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tL.lex(t,e??this.defaults)}parser(t,e){return tW.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let i={...r},n={...this.defaults,...i},o=this.onError(!!n.silent,!!n.async);if(!0===this.defaults.async&&!1===i.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let r=n.hooks?await n.hooks.preprocess(e):e,i=await (n.hooks?await n.hooks.provideLexer():t?tL.lex:tL.lexInline)(r,n),o=n.hooks?await n.hooks.processAllTokens(i):i;n.walkTokens&&await Promise.all(this.walkTokens(o,n.walkTokens));let a=await (n.hooks?await n.hooks.provideParser():t?tW.parse:tW.parseInline)(o,n);return n.hooks?await n.hooks.postprocess(a):a})().catch(o);try{n.hooks&&(e=n.hooks.preprocess(e));let r=(n.hooks?n.hooks.provideLexer():t?tL.lex:tL.lexInline)(e,n);n.hooks&&(r=n.hooks.processAllTokens(r)),n.walkTokens&&this.walkTokens(r,n.walkTokens);let i=(n.hooks?n.hooks.provideParser():t?tW.parse:tW.parseInline)(r,n);return n.hooks&&(i=n.hooks.postprocess(i)),i}catch(t){return o(t)}}}onError(t,e){return r=>{if(r.message+=`
|
|
136
|
+
Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tv(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function t$(t,e){return tO.parse(t,e)}t$.options=t$.setOptions=function(t){return tO.setOptions(t),t$.defaults=tO.defaults,v=t$.defaults,t$},t$.getDefaults=_,t$.defaults=v,t$.use=function(...t){return tO.use(...t),t$.defaults=tO.defaults,v=t$.defaults,t$},t$.walkTokens=function(t,e){return tO.walkTokens(t,e)},t$.parseInline=tO.parseInline,t$.Parser=tW,t$.parser=tW.parse,t$.Renderer=tF,t$.TextRenderer=tA,t$.Lexer=tL,t$.lexer=tL.lex,t$.Tokenizer=tB,t$.Hooks=tE,t$.parse=t$,t$.options,t$.setOptions,t$.use,t$.walkTokens,t$.parseInline,tW.parse,tL.lex;var tI=r(69553),tD={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},tZ=new Map,tz=new Map,tq=(0,o.eW)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(o.cM.debug("Registering icon pack:",e.name),"loader"in e)tz.set(e.name,e.loader);else if("icons"in e)tZ.set(e.name,e.icons);else throw o.cM.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),tN=(0,o.eW)(async(t,e)=>{let r=a(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let i=r.prefix||e;if(!i)throw Error(`Icon name must contain a prefix: ${t}`);let n=tZ.get(i);if(!n){let t=tz.get(i);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{n={...await t(),prefix:i},tZ.set(i,n)}catch(t){throw o.cM.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){if(t.icons[e])return p(t,e,[]);let r=function(t,e){let r=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);return(e||Object.keys(r).concat(Object.keys(i))).forEach(function t(e){if(r[e])return n[e]=[];if(!(e in n)){n[e]=null;let r=i[e]&&i[e].parent,o=r&&t(r);o&&(n[e]=[r].concat(o))}return n[e]}),n}(t,[e])[e];return r?p(t,e,r):null}(n,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),tP=(0,o.eW)(async t=>{try{return await tN(t),!0}catch{return!1}},"isIconAvailable"),tR=(0,o.eW)(async(t,e,r)=>{let i;try{i=await tN(t,e?.fallbackPrefix)}catch(t){o.cM.error(t),i=tD}let a=function(t,e){let r,i;let n={...c,...t},o={...f,...e},a={left:n.left,top:n.top,width:n.width,height:n.height},s=n.body;[n,o].forEach(t=>{let e;let r=[],i=t.hFlip,n=t.vFlip,o=t.rotate;switch(i?n?o+=2:(r.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),r.push("scale(-1 1)"),a.top=a.left=0):n&&(r.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),r.push("scale(1 -1)"),a.top=a.left=0),o<0&&(o-=4*Math.floor(o/4)),o%=4){case 1:r.unshift("rotate(90 "+(e=a.height/2+a.top).toString()+" "+e.toString()+")");break;case 2:r.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:r.unshift("rotate(-90 "+(e=a.width/2+a.left).toString()+" "+e.toString()+")")}o%2==1&&(a.left!==a.top&&(e=a.left,a.left=a.top,a.top=e),a.width!==a.height&&(e=a.width,a.width=a.height,a.height=e)),r.length&&(s=function(t,e,r){var i,n;let o=function(t,e="defs"){let r="",i=t.indexOf("<"+e);for(;i>=0;){let n=t.indexOf(">",i),o=t.indexOf("</"+e);if(-1===n||-1===o)break;let a=t.indexOf(">",o);if(-1===a)break;r+=t.slice(n+1,o).trim(),t=t.slice(0,i).trim()+t.slice(a+1)}return{defs:r,content:t}}(t);return i=o.defs,n=e+o.content+r,i?"<defs>"+i+"</defs>"+n:n}(s,'<g transform="'+r.join(" ")+'">',"</g>"))});let l=o.width,h=o.height,u=a.width,d=a.height;null===l?r=y(i=null===h?"1em":"auto"===h?d:h,u/d):(r="auto"===l?u:l,i=null===h?y(r,d/u):"auto"===h?d:h);let p={},g=(t,e)=>{x(e)||(p[t]=e.toString())};g("width",r),g("height",i);let m=[a.left,a.top,u,d];return p.viewBox=m.join(" "),{attributes:p,viewBox:m,body:s}}(i,e),s=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e;let r=[];for(;e=b.exec(t);)r.push(e[1]);if(!r.length)return t;let i="suffix"+(16777216*Math.random()|Date.now()).toString(16);return r.forEach(e=>{let r=function(t){t=t.replace(/[0-9]+$/,"")||"a";let e=k.get(t)||0;return k.set(t,e+1),e?`${t}${e}`:t}(e),n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+n+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),t=t.replace(RegExp(i,"g"),"")}(a.body),{...a.attributes,...r});return(0,n.oO)(s,(0,n.iE)())},"getIconSVG");function tj(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n"),i=(0,tI.Z)(r);return!1===e?i.replace(/ /g," "):i}function tH(t,e={}){let r=tj(t,e),i=t$.lexer(r),n=[[]],a=0;function s(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(a++,n.push([])),t.split(" ").forEach(t=>{(t=t.replace(/'/g,"'"))&&n[a].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{s(e,t.type)}):"html"===t.type&&n[a].push({content:t.text,type:"normal"})}return(0,o.eW)(s,"processNode"),i.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{s(t)}):"html"===t.type?n[a].push({content:t.text,type:"normal"}):n[a].push({content:t.raw,type:"normal"})}),n}function tU(t,{markdownAutoWrap:e}={}){let r=t$.lexer(t);function i(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g," "):t.text.replace(/\n */g,"<br/>");if("strong"===t.type)return`<strong>${t.tokens?.map(i).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(i).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(i).join("")}</p>`;if("space"===t.type)return"";if("html"===t.type)return`${t.text}`;if("escape"===t.type)return t.text;return o.cM.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,o.eW)(i,"output"),r.map(i).join("")}function tY(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tG(t,e){return tV(t,[],tY(e.content),e.type)}function tV(t,e,r,i){if(0===r.length)return[{content:e.join(""),type:i},{content:"",type:i}];let[n,...o]=r,a=[...e,n];return t([{content:a.join(""),type:i}])?tV(t,a,o,i):(0===e.length&&n&&(e.push(n),r.shift()),[{content:e.join(""),type:i},{content:r.join(""),type:i}])}function tX(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tQ(t,e)}function tQ(t,e,r=[],i=[]){if(0===t.length)return i.length>0&&r.push(i),r.length>0?r:[];let n="";" "===t[0].content&&(n=" ",t.shift());let o=t.shift()??{content:" ",type:"normal"},a=[...i];if(""!==n&&a.push({content:n,type:"normal"}),a.push(o),e(a))return tQ(t,e,r,a);if(i.length>0)r.push(i),t.unshift(o);else if(o.content){let[i,n]=tG(e,o);r.push([i]),n.content&&t.unshift(n)}return tQ(t,e,r)}function tK(t,e){e&&t.attr("style",e)}async function tJ(t,e,r,i,o=!1,a=(0,n.iE)()){let s=t.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);let l=s.append("xhtml:div"),h=(0,n.l0)(e.label)?await (0,n.ur)(e.label.replace(n.SY.lineBreakRegex,"\n"),a):(0,n.oO)(e.label,a),c=e.isNode?"nodeLabel":"edgeLabel",u=l.append("span");u.html(h),tK(u,e.labelStyle),u.attr("class",`${c} ${i}`),tK(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),l.style("max-width",r+"px"),l.style("text-align","center"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),o&&l.attr("class","labelBkg");let d=l.node().getBoundingClientRect();return d.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),d=l.node().getBoundingClientRect()),s.node()}function t0(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function t1(t,e,r){let i=t.append("text"),n=t0(i,1,e);t5(n,r);let o=n.node().getComputedTextLength();return i.remove(),o}function t2(t,e,r){let i=t.append("text"),n=t0(i,1,e);t5(n,[{content:r,type:"normal"}]);let o=n.node()?.getBoundingClientRect();return o&&i.remove(),o}function t3(t,e,r,i=!1){let n=e.append("g"),a=n.insert("rect").attr("class","background").attr("style","stroke: none"),s=n.append("text").attr("y","-10.1"),l=0;for(let e of r){let r=(0,o.eW)(e=>t1(n,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tX(e,r))t5(t0(s,l,1.1),t),l++}if(!i)return s.node();{let t=s.node().getBBox();return a.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),n.node()}}function t5(t,e){t.text(""),e.forEach((e,r)=>{let i=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?i.text(e.content):i.text(" "+e.content)})}async function t6(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,o)=>(r.push((async()=>{let r=`${i}:${o}`;return await tP(r)?await tR(r,void 0,{class:"label-icon"}):`<i class='${(0,n.oO)(t,e).replace(":"," ")}'></i>`})()),t));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,o.eW)(tj,"preprocessMarkdown"),(0,o.eW)(tH,"markdownToLines"),(0,o.eW)(tU,"markdownToHTML"),(0,o.eW)(tY,"splitTextToChars"),(0,o.eW)(tG,"splitWordToFitWidth"),(0,o.eW)(tV,"splitWordToFitWidthRecursion"),(0,o.eW)(tX,"splitLineToFitWidth"),(0,o.eW)(tQ,"splitLineToFitWidthRecursion"),(0,o.eW)(tK,"applyStyle"),(0,o.eW)(tJ,"addHtmlSpan"),(0,o.eW)(t0,"createTspan"),(0,o.eW)(t1,"computeWidthOfText"),(0,o.eW)(t2,"computeDimensionOfText"),(0,o.eW)(t3,"createFormattedText"),(0,o.eW)(t5,"updateTextContentAndStyles"),(0,o.eW)(t6,"replaceIconSubstring");var t4=(0,o.eW)(async(t,e="",{style:r="",isTitle:a=!1,classes:s="",useHtmlLabels:l=!0,isNode:h=!0,width:c=200,addSvgBackground:u=!1}={},d)=>{if(o.cM.debug("XYZ createText",e,r,a,s,l,h,"addSvgBackground: ",u),l){let o=tU(e,d),a=await t6((0,i.SH)(o),d),l=e.replace(/\\\\/g,"\\"),p={isNode:h,label:(0,n.l0)(e)?l:a,labelStyle:r.replace("fill:","color:")};return await tJ(t,p,c,s,u,d)}{let i=t3(c,t,tH(e.replace(/<br\s*\/?>/g,"<br/>").replace("<br>","<br/>"),d),!!e&&u);if(h){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,C.Ys)(i).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,C.Ys)(i).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,C.Ys)(i).select("text").attr("style",e)}return i}},"createText")},56405:function(t,e,r){"use strict";r.d(e,{A:function(){return e$},z:function(){return eI}});var i,n=r(31954);function o(t){return null==t}function a(t){return"object"==typeof t&&null!==t}function s(t,e){var r,i="";for(r=0;r<e;r+=1)i+=t;return i}function l(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}(0,n.eW)(o,"isNothing"),(0,n.eW)(a,"isObject"),(0,n.eW)(function(t){return Array.isArray(t)?t:o(t)?[]:[t]},"toArray"),(0,n.eW)(function(t,e){var r,i,n,o;if(e)for(r=0,i=(o=Object.keys(e)).length;r<i;r+=1)t[n=o[r]]=e[n];return t},"extend"),(0,n.eW)(s,"repeat"),(0,n.eW)(l,"isNegativeZero");var h={isNothing:o,isObject:a,repeat:s,isNegativeZero:l};function c(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),i+" "+r):i}function u(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=c(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}function d(t,e,r,i,n){var o="",a="",s=Math.floor(n/2)-1;return i-e>s&&(e=i-s+(o=" ... ").length),r-i>s&&(r=i+s-(a=" ...").length),{str:o+t.slice(e,r).replace(/\t/g,"→")+a,pos:i-e+o.length}}function p(t,e){return h.repeat(" ",e-t.length)+t}function f(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),"number"!=typeof e.indent&&(e.indent=1),"number"!=typeof e.linesBefore&&(e.linesBefore=3),"number"!=typeof e.linesAfter&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],o=-1;a=r.exec(t.buffer);)n.push(a.index),i.push(a.index+a[0].length),t.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a,s,l,c="",u=Math.min(t.line+e.linesAfter,n.length).toString().length,f=e.maxLength-(e.indent+u+3);for(s=1;s<=e.linesBefore&&!(o-s<0);s++)l=d(t.buffer,i[o-s],n[o-s],t.position-(i[o]-i[o-s]),f),c=h.repeat(" ",e.indent)+p((t.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=d(t.buffer,i[o],n[o],t.position,f),c+=h.repeat(" ",e.indent)+p((t.line+1).toString(),u)+" | "+l.str+"\n"+h.repeat("-",e.indent+u+3+l.pos)+"^\n",s=1;s<=e.linesAfter&&!(o+s>=n.length);s++)l=d(t.buffer,i[o+s],n[o+s],t.position-(i[o]-i[o+s]),f),c+=h.repeat(" ",e.indent)+p((t.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")}(0,n.eW)(c,"formatError"),(0,n.eW)(u,"YAMLException$1"),u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.prototype.toString=(0,n.eW)(function(t){return this.name+": "+c(this,t)},"toString"),(0,n.eW)(d,"getLine"),(0,n.eW)(p,"padStart"),(0,n.eW)(f,"makeSnippet");var g=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],m=["scalar","sequence","mapping"];function y(t){var e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function x(t,e){if(Object.keys(e=e||{}).forEach(function(e){if(-1===g.indexOf(e))throw new u('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=y(e.styleAliases||null),-1===m.indexOf(this.kind))throw new u('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}function b(t,e){var r=[];return t[e].forEach(function(t){var e=r.length;r.forEach(function(r,i){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=i)}),r[e]=t}),r}function k(){var t,e,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(t){t.multi?(r.multi[t.kind].push(t),r.multi.fallback.push(t)):r[t.kind][t.tag]=r.fallback[t.tag]=t}for((0,n.eW)(i,"collectType"),t=0,e=arguments.length;t<e;t+=1)arguments[t].forEach(i);return r}function C(t){return this.extend(t)}(0,n.eW)(y,"compileStyleAliases"),(0,n.eW)(x,"Type$1"),(0,n.eW)(b,"compileList"),(0,n.eW)(k,"compileMap"),(0,n.eW)(C,"Schema$1"),C.prototype.extend=(0,n.eW)(function(t){var e=[],r=[];if(t instanceof x)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(e=e.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new u("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.forEach(function(t){if(!(t instanceof x))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(t.loadKind&&"scalar"!==t.loadKind)throw new u("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(t.multi)throw new u("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(t){if(!(t instanceof x))throw new u("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(C.prototype);return i.implicit=(this.implicit||[]).concat(e),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=b(i,"implicit"),i.compiledExplicit=b(i,"explicit"),i.compiledTypeMap=k(i.compiledImplicit,i.compiledExplicit),i},"extend");var _=new C({explicit:[new x("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,n.eW)(function(t){return null!==t?t:""},"construct")}),new x("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,n.eW)(function(t){return null!==t?t:[]},"construct")}),new x("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,n.eW)(function(t){return null!==t?t:{}},"construct")})]});function v(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function w(){return null}function T(t){return null===t}(0,n.eW)(v,"resolveYamlNull"),(0,n.eW)(w,"constructYamlNull"),(0,n.eW)(T,"isNull");var S=new x("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:w,predicate:T,represent:{canonical:(0,n.eW)(function(){return"~"},"canonical"),lowercase:(0,n.eW)(function(){return"null"},"lowercase"),uppercase:(0,n.eW)(function(){return"NULL"},"uppercase"),camelcase:(0,n.eW)(function(){return"Null"},"camelcase"),empty:(0,n.eW)(function(){return""},"empty")},defaultStyle:"lowercase"});function M(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function B(t){return"true"===t||"True"===t||"TRUE"===t}function L(t){return"[object Boolean]"===Object.prototype.toString.call(t)}(0,n.eW)(M,"resolveYamlBoolean"),(0,n.eW)(B,"constructYamlBoolean"),(0,n.eW)(L,"isBoolean");var F=new x("tag:yaml.org,2002:bool",{kind:"scalar",resolve:M,construct:B,predicate:L,represent:{lowercase:(0,n.eW)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,n.eW)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,n.eW)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function A(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function W(t){return 48<=t&&t<=55}function E(t){return 48<=t&&t<=57}function O(t){if(null===t)return!1;var e,r=t.length,i=0,n=!1;if(!r)return!1;if(("-"===(e=t[i])||"+"===e)&&(e=t[++i]),"0"===e){if(i+1===r)return!0;if("b"===(e=t[++i])){for(i++;i<r;i++)if("_"!==(e=t[i])){if("0"!==e&&"1"!==e)return!1;n=!0}return n&&"_"!==e}if("x"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!A(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}if("o"===e){for(i++;i<r;i++)if("_"!==(e=t[i])){if(!W(t.charCodeAt(i)))return!1;n=!0}return n&&"_"!==e}}if("_"===e)return!1;for(;i<r;i++)if("_"!==(e=t[i])){if(!E(t.charCodeAt(i)))return!1;n=!0}return!!n&&"_"!==e}function $(t){var e,r=t,i=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),("-"===(e=r[0])||"+"===e)&&("-"===e&&(i=-1),e=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===e){if("b"===r[1])return i*parseInt(r.slice(2),2);if("x"===r[1])return i*parseInt(r.slice(2),16);if("o"===r[1])return i*parseInt(r.slice(2),8)}return i*parseInt(r,10)}function I(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1==0&&!h.isNegativeZero(t)}(0,n.eW)(A,"isHexCode"),(0,n.eW)(W,"isOctCode"),(0,n.eW)(E,"isDecCode"),(0,n.eW)(O,"resolveYamlInteger"),(0,n.eW)($,"constructYamlInteger"),(0,n.eW)(I,"isInteger");var D=new x("tag:yaml.org,2002:int",{kind:"scalar",resolve:O,construct:$,predicate:I,represent:{binary:(0,n.eW)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,n.eW)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,n.eW)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,n.eW)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Z=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function z(t){return!!(null!==t&&Z.test(t)&&"_"!==t[t.length-1])}function q(t){var e,r;return(r="-"===(e=t.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:r*parseFloat(e,10)}(0,n.eW)(z,"resolveYamlFloat"),(0,n.eW)(q,"constructYamlFloat");var N=/^[-+]?[0-9]+e/;function P(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(h.isNegativeZero(t))return"-0.0";return r=t.toString(10),N.test(r)?r.replace("e",".e"):r}function R(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!=0||h.isNegativeZero(t))}(0,n.eW)(P,"representYamlFloat"),(0,n.eW)(R,"isFloat");var j=new x("tag:yaml.org,2002:float",{kind:"scalar",resolve:z,construct:q,predicate:R,represent:P,defaultStyle:"lowercase"}),H=_.extend({implicit:[S,F,D,j]}),U=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Y=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function G(t){return null!==t&&(null!==U.exec(t)||null!==Y.exec(t))}function V(t){var e,r,i,n,o,a,s,l,h=0,c=null;if(null===(e=U.exec(t))&&(e=Y.exec(t)),null===e)throw Error("Date resolve error");if(r=+e[1],i=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(r,i,n));if(o=+e[4],a=+e[5],s=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(c=(60*+e[10]+ +(e[11]||0))*6e4,"-"===e[9]&&(c=-c)),l=new Date(Date.UTC(r,i,n,o,a,s,h)),c&&l.setTime(l.getTime()-c),l}function X(t){return t.toISOString()}(0,n.eW)(G,"resolveYamlTimestamp"),(0,n.eW)(V,"constructYamlTimestamp"),(0,n.eW)(X,"representYamlTimestamp");var Q=new x("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:G,construct:V,instanceOf:Date,represent:X});function K(t){return"<<"===t||null===t}(0,n.eW)(K,"resolveYamlMerge");var J=new x("tag:yaml.org,2002:merge",{kind:"scalar",resolve:K}),tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function te(t){if(null===t)return!1;var e,r,i=0,n=t.length;for(r=0;r<n;r++)if(!((e=tt.indexOf(t.charAt(r)))>64)){if(e<0)return!1;i+=6}return i%8==0}function tr(t){var e,r,i=t.replace(/[\r\n=]/g,""),n=i.length,o=0,a=[];for(e=0;e<n;e++)e%4==0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|tt.indexOf(i.charAt(e));return 0==(r=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)}function ti(t){var e,r,i="",n=0,o=t.length;for(e=0;e<o;e++)e%3==0&&e&&(i+=tt[n>>18&63]+tt[n>>12&63]+tt[n>>6&63]+tt[63&n]),n=(n<<8)+t[e];return 0==(r=o%3)?i+=tt[n>>18&63]+tt[n>>12&63]+tt[n>>6&63]+tt[63&n]:2===r?i+=tt[n>>10&63]+tt[n>>4&63]+tt[n<<2&63]+tt[64]:1===r&&(i+=tt[n>>2&63]+tt[n<<4&63]+tt[64]+tt[64]),i}function tn(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}(0,n.eW)(te,"resolveYamlBinary"),(0,n.eW)(tr,"constructYamlBinary"),(0,n.eW)(ti,"representYamlBinary"),(0,n.eW)(tn,"isBinary");var to=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:te,construct:tr,predicate:tn,represent:ti}),ta=Object.prototype.hasOwnProperty,ts=Object.prototype.toString;function tl(t){if(null===t)return!0;var e,r,i,n,o,a=[];for(e=0,r=t.length;e<r;e+=1){if(i=t[e],o=!1,"[object Object]"!==ts.call(i))return!1;for(n in i)if(ta.call(i,n)){if(o)return!1;o=!0}if(!o||-1!==a.indexOf(n))return!1;a.push(n)}return!0}function th(t){return null!==t?t:[]}(0,n.eW)(tl,"resolveYamlOmap"),(0,n.eW)(th,"constructYamlOmap");var tc=new x("tag:yaml.org,2002:omap",{kind:"sequence",resolve:tl,construct:th}),tu=Object.prototype.toString;function td(t){var e,r,i,n,o;if(null===t)return!0;for(e=0,o=Array(t.length),r=t.length;e<r;e+=1){if(i=t[e],"[object Object]"!==tu.call(i)||1!==(n=Object.keys(i)).length)return!1;o[e]=[n[0],i[n[0]]]}return!0}function tp(t){var e,r,i,n,o;if(null===t)return[];for(e=0,o=Array(t.length),r=t.length;e<r;e+=1)n=Object.keys(i=t[e]),o[e]=[n[0],i[n[0]]];return o}(0,n.eW)(td,"resolveYamlPairs"),(0,n.eW)(tp,"constructYamlPairs");var tf=new x("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:td,construct:tp}),tg=Object.prototype.hasOwnProperty;function tm(t){var e;if(null===t)return!0;for(e in t)if(tg.call(t,e)&&null!==t[e])return!1;return!0}function ty(t){return null!==t?t:{}}(0,n.eW)(tm,"resolveYamlSet"),(0,n.eW)(ty,"constructYamlSet");var tx=new x("tag:yaml.org,2002:set",{kind:"mapping",resolve:tm,construct:ty}),tb=H.extend({implicit:[Q,J],explicit:[to,tc,tf,tx]}),tk=Object.prototype.hasOwnProperty,tC=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t_=/[\x85\u2028\u2029]/,tv=/[,\[\]\{\}]/,tw=/^(?:!|!!|![a-z\-]+!)$/i,tT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function tS(t){return Object.prototype.toString.call(t)}function tM(t){return 10===t||13===t}function tB(t){return 9===t||32===t}function tL(t){return 9===t||32===t||10===t||13===t}function tF(t){return 44===t||91===t||93===t||123===t||125===t}function tA(t){var e;return 48<=t&&t<=57?t-48:97<=(e=32|t)&&e<=102?e-97+10:-1}function tW(t){return 120===t?2:117===t?4:85===t?8:0}function tE(t){return 48<=t&&t<=57?t-48:-1}function tO(t){return 48===t?"\0":97===t?"\x07":98===t?"\b":116===t?" ":9===t?" ":110===t?"\n":118===t?"\v":102===t?"\f":114===t?"\r":101===t?"\x1b":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"\x85":95===t?"\xa0":76===t?"\u2028":80===t?"\u2029":""}function t$(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}(0,n.eW)(tS,"_class"),(0,n.eW)(tM,"is_EOL"),(0,n.eW)(tB,"is_WHITE_SPACE"),(0,n.eW)(tL,"is_WS_OR_EOL"),(0,n.eW)(tF,"is_FLOW_INDICATOR"),(0,n.eW)(tA,"fromHexCode"),(0,n.eW)(tW,"escapedHexLen"),(0,n.eW)(tE,"fromDecimalCode"),(0,n.eW)(tO,"simpleEscapeSequence"),(0,n.eW)(t$,"charFromCodepoint");var tI=Array(256),tD=Array(256);for(i=0;i<256;i++)tI[i]=tO(i)?1:0,tD[i]=tO(i);function tZ(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||tb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function tz(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=f(r),new u(e,r)}function tq(t,e){throw tz(t,e)}function tN(t,e){t.onWarning&&t.onWarning.call(null,tz(t,e))}(0,n.eW)(tZ,"State$1"),(0,n.eW)(tz,"generateError"),(0,n.eW)(tq,"throwError"),(0,n.eW)(tN,"throwWarning");var tP={YAML:(0,n.eW)(function(t,e,r){var i,n,o;null!==t.version&&tq(t,"duplication of %YAML directive"),1!==r.length&&tq(t,"YAML directive accepts exactly one argument"),null===(i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&tq(t,"ill-formed argument of the YAML directive"),n=parseInt(i[1],10),o=parseInt(i[2],10),1!==n&&tq(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&tN(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,n.eW)(function(t,e,r){var i,n;2!==r.length&&tq(t,"TAG directive accepts exactly two arguments"),i=r[0],n=r[1],tw.test(i)||tq(t,"ill-formed tag handle (first argument) of the TAG directive"),tk.call(t.tagMap,i)&&tq(t,'there is a previously declared suffix for "'+i+'" tag handle'),tT.test(n)||tq(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){tq(t,"tag prefix is malformed: "+n)}t.tagMap[i]=n},"handleTagDirective")};function tR(t,e,r,i){var n,o,a,s;if(e<r){if(s=t.input.slice(e,r),i)for(n=0,o=s.length;n<o;n+=1)9===(a=s.charCodeAt(n))||32<=a&&a<=1114111||tq(t,"expected valid JSON character");else tC.test(s)&&tq(t,"the stream contains non-printable characters");t.result+=s}}function tj(t,e,r,i){var n,o,a,s;for(h.isObject(r)||tq(t,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(n=Object.keys(r)).length;a<s;a+=1)o=n[a],tk.call(e,o)||(e[o]=r[o],i[o]=!0)}function tH(t,e,r,i,n,o,a,s,l){var h,c;if(Array.isArray(n))for(h=0,c=(n=Array.prototype.slice.call(n)).length;h<c;h+=1)Array.isArray(n[h])&&tq(t,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===tS(n[h])&&(n[h]="[object Object]");if("object"==typeof n&&"[object Object]"===tS(n)&&(n="[object Object]"),n=String(n),null===e&&(e={}),"tag:yaml.org,2002:merge"===i){if(Array.isArray(o))for(h=0,c=o.length;h<c;h+=1)tj(t,e,o[h],r);else tj(t,e,o,r)}else!t.json&&!tk.call(r,n)&&tk.call(e,n)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,tq(t,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete r[n];return e}function tU(t){var e;10===(e=t.input.charCodeAt(t.position))?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):tq(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function tY(t,e,r){for(var i=0,n=t.input.charCodeAt(t.position);0!==n;){for(;tB(n);)9===n&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&35===n)do n=t.input.charCodeAt(++t.position);while(10!==n&&13!==n&&0!==n);if(tM(n))for(tU(t),n=t.input.charCodeAt(t.position),i++,t.lineIndent=0;32===n;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==i&&t.lineIndent<r&&tN(t,"deficient indentation"),i}function tG(t){var e,r=t.position;return!!((45===(e=t.input.charCodeAt(r))||46===e)&&e===t.input.charCodeAt(r+1)&&e===t.input.charCodeAt(r+2)&&(r+=3,0===(e=t.input.charCodeAt(r))||tL(e)))}function tV(t,e){1===e?t.result+=" ":e>1&&(t.result+=h.repeat("\n",e-1))}function tX(t,e,r){var i,n,o,a,s,l,h,c,u=t.kind,d=t.result;if(tL(c=t.input.charCodeAt(t.position))||tF(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(tL(i=t.input.charCodeAt(t.position+1))||r&&tF(i)))return!1;for(t.kind="scalar",t.result="",n=o=t.position,a=!1;0!==c;){if(58===c){if(tL(i=t.input.charCodeAt(t.position+1))||r&&tF(i))break}else if(35===c){if(tL(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&tG(t)||r&&tF(c))break;else if(tM(c)){if(s=t.line,l=t.lineStart,h=t.lineIndent,tY(t,!1,-1),t.lineIndent>=e){a=!0,c=t.input.charCodeAt(t.position);continue}t.position=o,t.line=s,t.lineStart=l,t.lineIndent=h;break}a&&(tR(t,n,o,!1),tV(t,t.line-s),n=o=t.position,a=!1),tB(c)||(o=t.position+1),c=t.input.charCodeAt(++t.position)}return tR(t,n,o,!1),!!t.result||(t.kind=u,t.result=d,!1)}function tQ(t,e){var r,i,n;if(39!==(r=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,i=n=t.position;0!==(r=t.input.charCodeAt(t.position));)if(39===r){if(tR(t,i,t.position,!0),39!==(r=t.input.charCodeAt(++t.position)))return!0;i=t.position,t.position++,n=t.position}else tM(r)?(tR(t,i,n,!0),tV(t,tY(t,!1,e)),i=n=t.position):t.position===t.lineStart&&tG(t)?tq(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);tq(t,"unexpected end of the stream within a single quoted scalar")}function tK(t,e){var r,i,n,o,a,s;if(34!==(s=t.input.charCodeAt(t.position)))return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;0!==(s=t.input.charCodeAt(t.position));){if(34===s)return tR(t,r,t.position,!0),t.position++,!0;if(92===s){if(tR(t,r,t.position,!0),tM(s=t.input.charCodeAt(++t.position)))tY(t,!1,e);else if(s<256&&tI[s])t.result+=tD[s],t.position++;else if((a=tW(s))>0){for(n=a,o=0;n>0;n--)(a=tA(s=t.input.charCodeAt(++t.position)))>=0?o=(o<<4)+a:tq(t,"expected hexadecimal character");t.result+=t$(o),t.position++}else tq(t,"unknown escape sequence");r=i=t.position}else tM(s)?(tR(t,r,i,!0),tV(t,tY(t,!1,e)),r=i=t.position):t.position===t.lineStart&&tG(t)?tq(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}tq(t,"unexpected end of the stream within a double quoted scalar")}function tJ(t,e){var r,i,n,o,a,s,l,h,c,u,d,p,f=!0,g=t.tag,m=t.anchor,y=Object.create(null);if(91===(p=t.input.charCodeAt(t.position)))a=93,h=!1,o=[];else{if(123!==p)return!1;a=125,h=!0,o={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=o),p=t.input.charCodeAt(++t.position);0!==p;){if(tY(t,!0,e),(p=t.input.charCodeAt(t.position))===a)return t.position++,t.tag=g,t.anchor=m,t.kind=h?"mapping":"sequence",t.result=o,!0;f?44===p&&tq(t,"expected the node content, but found ','"):tq(t,"missed comma between flow collection entries"),u=c=d=null,s=l=!1,63===p&&tL(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,tY(t,!0,e)),r=t.line,i=t.lineStart,n=t.position,t4(t,e,1,!1,!0),u=t.tag,c=t.result,tY(t,!0,e),p=t.input.charCodeAt(t.position),(l||t.line===r)&&58===p&&(s=!0,p=t.input.charCodeAt(++t.position),tY(t,!0,e),t4(t,e,1,!1,!0),d=t.result),h?tH(t,o,y,u,c,d,r,i,n):s?o.push(tH(t,null,y,u,c,d,r,i,n)):o.push(c),tY(t,!0,e),44===(p=t.input.charCodeAt(t.position))?(f=!0,p=t.input.charCodeAt(++t.position)):f=!1}tq(t,"unexpected end of the stream within a flow collection")}function t0(t,e){var r,i,n,o,a=1,s=!1,l=!1,c=e,u=0,d=!1;if(124===(o=t.input.charCodeAt(t.position)))i=!1;else{if(62!==o)return!1;i=!0}for(t.kind="scalar",t.result="";0!==o;)if(43===(o=t.input.charCodeAt(++t.position))||45===o)1===a?a=43===o?3:2:tq(t,"repeat of a chomping mode identifier");else if((n=tE(o))>=0)0===n?tq(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?tq(t,"repeat of an indentation width identifier"):(c=e+n-1,l=!0);else break;if(tB(o)){do o=t.input.charCodeAt(++t.position);while(tB(o));if(35===o)do o=t.input.charCodeAt(++t.position);while(!tM(o)&&0!==o)}for(;0!==o;){for(tU(t),t.lineIndent=0,o=t.input.charCodeAt(t.position);(!l||t.lineIndent<c)&&32===o;)t.lineIndent++,o=t.input.charCodeAt(++t.position);if(!l&&t.lineIndent>c&&(c=t.lineIndent),tM(o)){u++;continue}if(t.lineIndent<c){3===a?t.result+=h.repeat("\n",s?1+u:u):1===a&&s&&(t.result+="\n");break}for(i?tB(o)?(d=!0,t.result+=h.repeat("\n",s?1+u:u)):d?(d=!1,t.result+=h.repeat("\n",u+1)):0===u?s&&(t.result+=" "):t.result+=h.repeat("\n",u):t.result+=h.repeat("\n",s?1+u:u),s=!0,l=!0,u=0,r=t.position;!tM(o)&&0!==o;)o=t.input.charCodeAt(++t.position);tR(t,r,t.position,!1)}return!0}function t1(t,e){var r,i,n=t.tag,o=t.anchor,a=[],s=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=a),i=t.input.charCodeAt(t.position);0!==i&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,tq(t,"tab characters must not be used in indentation")),45===i&&tL(t.input.charCodeAt(t.position+1)));){if(s=!0,t.position++,tY(t,!0,-1)&&t.lineIndent<=e){a.push(null),i=t.input.charCodeAt(t.position);continue}if(r=t.line,t4(t,e,3,!1,!0),a.push(t.result),tY(t,!0,-1),i=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==i)tq(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!s&&(t.tag=n,t.anchor=o,t.kind="sequence",t.result=a,!0)}function t2(t,e,r){var i,n,o,a,s,l,h,c=t.tag,u=t.anchor,d={},p=Object.create(null),f=null,g=null,m=null,y=!1,x=!1;if(-1!==t.firstTabInLine)return!1;for(null!==t.anchor&&(t.anchorMap[t.anchor]=d),h=t.input.charCodeAt(t.position);0!==h;){if(y||-1===t.firstTabInLine||(t.position=t.firstTabInLine,tq(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),o=t.line,(63===h||58===h)&&tL(i))63===h?(y&&(tH(t,d,p,f,g,null,a,s,l),f=g=m=null),x=!0,y=!0,n=!0):y?(y=!1,n=!0):tq(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,h=i;else{if(a=t.line,s=t.lineStart,l=t.position,!t4(t,r,2,!1,!0))break;if(t.line===o){for(h=t.input.charCodeAt(t.position);tB(h);)h=t.input.charCodeAt(++t.position);if(58===h)tL(h=t.input.charCodeAt(++t.position))||tq(t,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(tH(t,d,p,f,g,null,a,s,l),f=g=m=null),x=!0,y=!1,n=!1,f=t.tag,g=t.result;else{if(!x)return t.tag=c,t.anchor=u,!0;tq(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return t.tag=c,t.anchor=u,!0;tq(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===o||t.lineIndent>e)&&(y&&(a=t.line,s=t.lineStart,l=t.position),t4(t,e,4,!0,n)&&(y?g=t.result:m=t.result),y||(tH(t,d,p,f,g,m,a,s,l),f=g=m=null),tY(t,!0,-1),h=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&0!==h)tq(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return y&&tH(t,d,p,f,g,null,a,s,l),x&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=d),x}function t3(t){var e,r,i,n,o=!1,a=!1;if(33!==(n=t.input.charCodeAt(t.position)))return!1;if(null!==t.tag&&tq(t,"duplication of a tag property"),60===(n=t.input.charCodeAt(++t.position))?(o=!0,n=t.input.charCodeAt(++t.position)):33===n?(a=!0,r="!!",n=t.input.charCodeAt(++t.position)):r="!",e=t.position,o){do n=t.input.charCodeAt(++t.position);while(0!==n&&62!==n);t.position<t.length?(i=t.input.slice(e,t.position),n=t.input.charCodeAt(++t.position)):tq(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!tL(n);)33===n&&(a?tq(t,"tag suffix cannot contain exclamation marks"):(r=t.input.slice(e-1,t.position+1),tw.test(r)||tq(t,"named tag handle cannot contain such characters"),a=!0,e=t.position+1)),n=t.input.charCodeAt(++t.position);i=t.input.slice(e,t.position),tv.test(i)&&tq(t,"tag suffix cannot contain flow indicator characters")}i&&!tT.test(i)&&tq(t,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(e){tq(t,"tag name is malformed: "+i)}return o?t.tag=i:tk.call(t.tagMap,r)?t.tag=t.tagMap[r]+i:"!"===r?t.tag="!"+i:"!!"===r?t.tag="tag:yaml.org,2002:"+i:tq(t,'undeclared tag handle "'+r+'"'),!0}function t5(t){var e,r;if(38!==(r=t.input.charCodeAt(t.position)))return!1;for(null!==t.anchor&&tq(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;0!==r&&!tL(r)&&!tF(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&tq(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function t6(t){var e,r,i;if(42!==(i=t.input.charCodeAt(t.position)))return!1;for(i=t.input.charCodeAt(++t.position),e=t.position;0!==i&&!tL(i)&&!tF(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&tq(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),tk.call(t.anchorMap,r)||tq(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],tY(t,!0,-1),!0}function t4(t,e,r,i,n){var o,a,s,l,h,c,u,d,p,f=1,g=!1,m=!1;if(null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=a=s=4===r||3===r,i&&tY(t,!0,-1)&&(g=!0,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)),1===f)for(;t3(t)||t5(t);)tY(t,!0,-1)?(g=!0,s=o,t.lineIndent>e?f=1:t.lineIndent===e?f=0:t.lineIndent<e&&(f=-1)):s=!1;if(s&&(s=g||n),(1===f||4===r)&&(d=1===r||2===r?e:e+1,p=t.position-t.lineStart,1===f?s&&(t1(t,p)||t2(t,p,d))||tJ(t,d)?m=!0:(a&&t0(t,d)||tQ(t,d)||tK(t,d)?m=!0:t6(t)?(m=!0,(null!==t.tag||null!==t.anchor)&&tq(t,"alias node should not have any properties")):tX(t,d,1===r)&&(m=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):0===f&&(m=s&&t1(t,p))),null===t.tag)null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);else if("?"===t.tag){for(null!==t.result&&"scalar"!==t.kind&&tq(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),l=0,h=t.implicitTypes.length;l<h;l+=1)if((u=t.implicitTypes[l]).resolve(t.result)){t.result=u.construct(t.result),t.tag=u.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else if("!"!==t.tag){if(tk.call(t.typeMap[t.kind||"fallback"],t.tag))u=t.typeMap[t.kind||"fallback"][t.tag];else for(l=0,u=null,h=(c=t.typeMap.multi[t.kind||"fallback"]).length;l<h;l+=1)if(t.tag.slice(0,c[l].tag.length)===c[l].tag){u=c[l];break}u||tq(t,"unknown tag !<"+t.tag+">"),null!==t.result&&u.kind!==t.kind&&tq(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+u.kind+'", not "'+t.kind+'"'),u.resolve(t.result,t.tag)?(t.result=u.construct(t.result,t.tag),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):tq(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||m}function t8(t){var e,r,i,n,o=t.position,a=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(n=t.input.charCodeAt(t.position))&&(tY(t,!0,-1),n=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===n);){for(a=!0,n=t.input.charCodeAt(++t.position),e=t.position;0!==n&&!tL(n);)n=t.input.charCodeAt(++t.position);for(r=t.input.slice(e,t.position),i=[],r.length<1&&tq(t,"directive name must not be less than one character in length");0!==n;){for(;tB(n);)n=t.input.charCodeAt(++t.position);if(35===n){do n=t.input.charCodeAt(++t.position);while(0!==n&&!tM(n));break}if(tM(n))break;for(e=t.position;0!==n&&!tL(n);)n=t.input.charCodeAt(++t.position);i.push(t.input.slice(e,t.position))}0!==n&&tU(t),tk.call(tP,r)?tP[r](t,r,i):tN(t,'unknown document directive "'+r+'"')}if(tY(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,tY(t,!0,-1)):a&&tq(t,"directives end mark is expected"),t4(t,t.lineIndent-1,4,!1,!0),tY(t,!0,-1),t.checkLineBreaks&&t_.test(t.input.slice(o,t.position))&&tN(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&tG(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,tY(t,!0,-1));return}t.position<t.length-1&&tq(t,"end of the stream or a document separator is expected")}function t9(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));var r=new tZ(t,e),i=t.indexOf("\0");for(-1!==i&&(r.position=i,tq(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)t8(r);return r.documents}function t7(t,e){var r=t9(t,e);if(0!==r.length){if(1===r.length)return r[0];throw new u("expected a single document in the stream, but found more")}}(0,n.eW)(tR,"captureSegment"),(0,n.eW)(tj,"mergeMappings"),(0,n.eW)(tH,"storeMappingPair"),(0,n.eW)(tU,"readLineBreak"),(0,n.eW)(tY,"skipSeparationSpace"),(0,n.eW)(tG,"testDocumentSeparator"),(0,n.eW)(tV,"writeFoldedLines"),(0,n.eW)(tX,"readPlainScalar"),(0,n.eW)(tQ,"readSingleQuotedScalar"),(0,n.eW)(tK,"readDoubleQuotedScalar"),(0,n.eW)(tJ,"readFlowCollection"),(0,n.eW)(t0,"readBlockScalar"),(0,n.eW)(t1,"readBlockSequence"),(0,n.eW)(t2,"readBlockMapping"),(0,n.eW)(t3,"readTagProperty"),(0,n.eW)(t5,"readAnchorProperty"),(0,n.eW)(t6,"readAlias"),(0,n.eW)(t4,"composeNode"),(0,n.eW)(t8,"readDocument"),(0,n.eW)(t9,"loadDocuments"),(0,n.eW)(function(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);var i=t9(t,r);if("function"!=typeof e)return i;for(var n=0,o=i.length;n<o;n+=1)e(i[n])},"loadAll$1"),(0,n.eW)(t7,"load$1");var et=Object.prototype.toString,ee=Object.prototype.hasOwnProperty,er={};er[0]="\\0",er[7]="\\a",er[8]="\\b",er[9]="\\t",er[10]="\\n",er[11]="\\v",er[12]="\\f",er[13]="\\r",er[27]="\\e",er[34]='\\"',er[92]="\\\\",er[133]="\\N",er[160]="\\_",er[8232]="\\L",er[8233]="\\P";var ei=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],en=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function eo(t,e){var r,i,n,o,a,s,l;if(null===e)return{};for(n=0,r={},o=(i=Object.keys(e)).length;n<o;n+=1)s=String(e[a=i[n]]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=t.compiledTypeMap.fallback[a])&&ee.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[a]=s;return r}function ea(t){var e,r,i;if(e=t.toString(16).toUpperCase(),t<=255)r="x",i=2;else if(t<=65535)r="u",i=4;else if(t<=4294967295)r="U",i=8;else throw new u("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+h.repeat("0",i-e.length)+e}function es(t){this.schema=t.schema||tb,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=h.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=eo(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType='"'===t.quotingType?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer="function"==typeof t.replacer?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function el(t,e){for(var r,i=h.repeat(" ",e),n=0,o=-1,a="",s=t.length;n<s;)-1===(o=t.indexOf("\n",n))?(r=t.slice(n),n=s):(r=t.slice(n,o+1),n=o+1),r.length&&"\n"!==r&&(a+=i),a+=r;return a}function eh(t,e){return"\n"+h.repeat(" ",t.indent*e)}function ec(t,e){var r,i;for(r=0,i=t.implicitTypes.length;r<i;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function eu(t){return 32===t||9===t}function ed(t){return 32<=t&&t<=126||161<=t&&t<=55295&&8232!==t&&8233!==t||57344<=t&&t<=65533&&65279!==t||65536<=t&&t<=1114111}function ep(t){return ed(t)&&65279!==t&&13!==t&&10!==t}function ef(t,e,r){var i=ep(t),n=i&&!eu(t);return(r?i:i&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!n)||ep(e)&&!eu(e)&&35===t||58===e&&n}function eg(t){return ed(t)&&65279!==t&&!eu(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function em(t){return!eu(t)&&58!==t}function ey(t,e){var r,i=t.charCodeAt(e);return i>=55296&&i<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(i-55296)*1024+r-56320+65536:i}function ex(t){return/^\n* /.test(t)}function eb(t,e,r,i,n,o,a,s){var l,h=0,c=null,u=!1,d=!1,p=-1!==i,f=-1,g=eg(ey(t,0))&&em(ey(t,t.length-1));if(e||a)for(l=0;l<t.length;h>=65536?l+=2:l++){if(!ed(h=ey(t,l)))return 5;g=g&&ef(h,c,s),c=h}else{for(l=0;l<t.length;h>=65536?l+=2:l++){if(10===(h=ey(t,l)))u=!0,p&&(d=d||l-f-1>i&&" "!==t[f+1],f=l);else if(!ed(h))return 5;g=g&&ef(h,c,s),c=h}d=d||p&&l-f-1>i&&" "!==t[f+1]}return u||d?r>9&&ex(t)?5:a?2===o?5:2:d?4:3:!g||a||n(t)?2===o?5:2:1}function ek(t,e,r,i,o){t.dump=function(){if(0===e.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==ei.indexOf(e)||en.test(e)))return 2===t.quotingType?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),l=i||t.flowLevel>-1&&r>=t.flowLevel;function h(e){return ec(t,e)}switch((0,n.eW)(h,"testAmbiguity"),eb(e,l,t.indent,s,h,t.quotingType,t.forceQuotes&&!i,o)){case 1:return e;case 2:return"'"+e.replace(/'/g,"''")+"'";case 3:return"|"+eC(e,t.indent)+e_(el(e,a));case 4:return">"+eC(e,t.indent)+e_(el(ev(e,s),a));case 5:return'"'+eT(e)+'"';default:throw new u("impossible error: invalid scalar style")}}()}function eC(t,e){var r=ex(t)?String(e):"",i="\n"===t[t.length-1];return r+(i&&("\n"===t[t.length-2]||"\n"===t)?"+":i?"":"-")+"\n"}function e_(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function ev(t,e){for(var r,i,n,o=/(\n+)([^\n]*)/g,a=(r=-1!==(r=t.indexOf("\n"))?r:t.length,o.lastIndex=r,ew(t.slice(0,r),e)),s="\n"===t[0]||" "===t[0];n=o.exec(t);){var l=n[1],h=n[2];i=" "===h[0],a+=l+(s||i||""===h?"":"\n")+ew(h,e),s=i}return a}function ew(t,e){if(""===t||" "===t[0])return t;for(var r,i,n=/ [^ ]/g,o=0,a=0,s=0,l="";r=n.exec(t);)(s=r.index)-o>e&&(i=a>o?a:s,l+="\n"+t.slice(o,i),o=i+1),a=s;return l+="\n",t.length-o>e&&a>o?l+=t.slice(o,a)+"\n"+t.slice(a+1):l+=t.slice(o),l.slice(1)}function eT(t){for(var e,r="",i=0,n=0;n<t.length;i>=65536?n+=2:n++)!(e=er[i=ey(t,n)])&&ed(i)?(r+=t[n],i>=65536&&(r+=t[n+1])):r+=e||ea(i);return r}function eS(t,e,r){var i,n,o,a="",s=t.tag;for(i=0,n=r.length;i<n;i+=1)o=r[i],t.replacer&&(o=t.replacer.call(r,String(i),o)),(eA(t,e,o,!1,!1)||void 0===o&&eA(t,e,null,!1,!1))&&(""!==a&&(a+=","+(t.condenseFlow?"":" ")),a+=t.dump);t.tag=s,t.dump="["+a+"]"}function eM(t,e,r,i){var n,o,a,s="",l=t.tag;for(n=0,o=r.length;n<o;n+=1)a=r[n],t.replacer&&(a=t.replacer.call(r,String(n),a)),(eA(t,e+1,a,!0,!0,!1,!0)||void 0===a&&eA(t,e+1,null,!0,!0,!1,!0))&&(i&&""===s||(s+=eh(t,e)),t.dump&&10===t.dump.charCodeAt(0)?s+="-":s+="- ",s+=t.dump);t.tag=l,t.dump=s||"[]"}function eB(t,e,r){var i,n,o,a,s,l="",h=t.tag,c=Object.keys(r);for(i=0,n=c.length;i<n;i+=1)s="",""!==l&&(s+=", "),t.condenseFlow&&(s+='"'),a=r[o=c[i]],t.replacer&&(a=t.replacer.call(r,o,a)),eA(t,e,o,!1,!1)&&(t.dump.length>1024&&(s+="? "),s+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),eA(t,e,a,!1,!1)&&(s+=t.dump,l+=s));t.tag=h,t.dump="{"+l+"}"}function eL(t,e,r,i){var n,o,a,s,l,h,c="",d=t.tag,p=Object.keys(r);if(!0===t.sortKeys)p.sort();else if("function"==typeof t.sortKeys)p.sort(t.sortKeys);else if(t.sortKeys)throw new u("sortKeys must be a boolean or a function");for(n=0,o=p.length;n<o;n+=1)h="",i&&""===c||(h+=eh(t,e)),s=r[a=p[n]],t.replacer&&(s=t.replacer.call(r,a,s)),eA(t,e+1,a,!0,!0,!0)&&((l=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024)&&(t.dump&&10===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,l&&(h+=eh(t,e)),eA(t,e+1,s,!0,l)&&(t.dump&&10===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,c+=h));t.tag=d,t.dump=c||"{}"}function eF(t,e,r){var i,n,o,a,s,l;for(o=0,a=(n=r?t.explicitTypes:t.implicitTypes).length;o<a;o+=1)if(((s=n[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof e&&e instanceof s.instanceOf)&&(!s.predicate||s.predicate(e))){if(r?s.multi&&s.representName?t.tag=s.representName(e):t.tag=s.tag:t.tag="?",s.represent){if(l=t.styleMap[s.tag]||s.defaultStyle,"[object Function]"===et.call(s.represent))i=s.represent(e,l);else if(ee.call(s.represent,l))i=s.represent[l](e,l);else throw new u("!<"+s.tag+'> tag resolver accepts not "'+l+'" style');t.dump=i}return!0}return!1}function eA(t,e,r,i,n,o,a){t.tag=null,t.dump=r,eF(t,r,!1)||eF(t,r,!0);var s=et.call(t.dump),l=i;i&&(i=t.flowLevel<0||t.flowLevel>e);var h,c,d,p="[object Object]"===s||"[object Array]"===s;if(p&&(d=-1!==(c=t.duplicates.indexOf(r))),(null!==t.tag&&"?"!==t.tag||d||2!==t.indent&&e>0)&&(n=!1),d&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(p&&d&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===s)i&&0!==Object.keys(t.dump).length?(eL(t,e,t.dump,n),d&&(t.dump="&ref_"+c+t.dump)):(eB(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===s)i&&0!==t.dump.length?(t.noArrayIndent&&!a&&e>0?eM(t,e-1,t.dump,n):eM(t,e,t.dump,n),d&&(t.dump="&ref_"+c+t.dump)):(eS(t,e,t.dump),d&&(t.dump="&ref_"+c+" "+t.dump));else if("[object String]"===s)"?"!==t.tag&&ek(t,t.dump,e,o,l);else{if("[object Undefined]"===s||t.skipInvalid)return!1;throw new u("unacceptable kind of an object to dump "+s)}null!==t.tag&&"?"!==t.tag&&(h=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21"),h="!"===t.tag[0]?"!"+h:"tag:yaml.org,2002:"===h.slice(0,18)?"!!"+h.slice(18):"!<"+h+">",t.dump=h+" "+t.dump)}return!0}function eW(t,e){var r,i,n=[],o=[];for(eE(t,n,o),r=0,i=o.length;r<i;r+=1)e.duplicates.push(n[o[r]]);e.usedDuplicates=Array(i)}function eE(t,e,r){var i,n,o;if(null!==t&&"object"==typeof t){if(-1!==(n=e.indexOf(t)))-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(n=0,o=t.length;n<o;n+=1)eE(t[n],e,r);else for(n=0,o=(i=Object.keys(t)).length;n<o;n+=1)eE(t[i[n]],e,r)}}function eO(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}(0,n.eW)(eo,"compileStyleMap"),(0,n.eW)(ea,"encodeHex"),(0,n.eW)(es,"State"),(0,n.eW)(el,"indentString"),(0,n.eW)(eh,"generateNextLine"),(0,n.eW)(ec,"testImplicitResolving"),(0,n.eW)(eu,"isWhitespace"),(0,n.eW)(ed,"isPrintable"),(0,n.eW)(ep,"isNsCharOrWhitespace"),(0,n.eW)(ef,"isPlainSafe"),(0,n.eW)(eg,"isPlainSafeFirst"),(0,n.eW)(em,"isPlainSafeLast"),(0,n.eW)(ey,"codePointAt"),(0,n.eW)(ex,"needIndentIndicator"),(0,n.eW)(eb,"chooseScalarStyle"),(0,n.eW)(ek,"writeScalar"),(0,n.eW)(eC,"blockHeader"),(0,n.eW)(e_,"dropEndingNewline"),(0,n.eW)(ev,"foldString"),(0,n.eW)(ew,"foldLine"),(0,n.eW)(eT,"escapeString"),(0,n.eW)(eS,"writeFlowSequence"),(0,n.eW)(eM,"writeBlockSequence"),(0,n.eW)(eB,"writeFlowMapping"),(0,n.eW)(eL,"writeBlockMapping"),(0,n.eW)(eF,"detectType"),(0,n.eW)(eA,"writeNode"),(0,n.eW)(eW,"getDuplicateReferences"),(0,n.eW)(eE,"inspectNode"),(0,n.eW)(function(t,e){var r=new es(e=e||{});r.noRefs||eW(t,r);var i=t;return(r.replacer&&(i=r.replacer.call({"":i},"",i)),eA(r,0,i,!0,!0))?r.dump+"\n":""},"dump$1"),(0,n.eW)(eO,"renamed");var e$=H,eI=t7;eO("safeLoad","load"),eO("safeLoadAll","loadAll"),eO("safeDump","dump")},63025:function(t,e,r){"use strict";r.d(e,{_b:function(){return d},jM:function(){return c},sY:function(){return u}});var i=r(19328),n=r(11866),o=r(94705),a=r(55166),s=r(31954),l={common:a.SY,getConfig:a.iE,insertCluster:n.us,insertEdge:i.QP,insertEdgeLabel:i.I_,insertMarkers:i.DQ,insertNode:n.Lf,interpolateToCurve:o.le,labelHelper:n.C1,log:s.cM,positionEdgeLabel:i.Jj},h={},c=(0,s.eW)(t=>{for(let e of t)h[e.name]=e},"registerLayoutLoaders");(0,s.eW)(()=>{c([{name:"dagre",loader:(0,s.eW)(async()=>await Promise.all([r.e(6792),r.e(8522),r.e(3843),r.e(3559)]).then(r.bind(r,3559)),"loader")},{name:"cose-bilkent",loader:(0,s.eW)(async()=>await Promise.all([r.e(1264),r.e(3852)]).then(r.bind(r,63852)),"loader")}])},"registerDefaultLayoutLoaders")();var u=(0,s.eW)(async(t,e)=>{if(!(t.layoutAlgorithm in h))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);let r=h[t.layoutAlgorithm];return(await r.loader()).render(t,e,l,{algorithm:r.algorithm})},"render"),d=(0,s.eW)((t="",{fallback:e="dagre"}={})=>{if(t in h)return t;if(e in h)return s.cM.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},19328:function(t,e,r){"use strict";r.d(e,{DQ:function(){return G},I_:function(){return k},Jj:function(){return _},QP:function(){return F},ZH:function(){return x}});var i=r(54973),n=r(11866),o=r(10507),a=r(33281),s=r(66691),l=r(94705),h=r(55166),c=r(31954),u=r(84370),d=r(90705),p=(0,c.eW)((t,e,r,i,n,o)=>{e.arrowTypeStart&&g(t,"start",e.arrowTypeStart,r,i,n,o),e.arrowTypeEnd&&g(t,"end",e.arrowTypeEnd,r,i,n,o)},"addEdgeMarkers"),f={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},g=(0,c.eW)((t,e,r,i,n,o,a)=>{let s=f[r];if(!s){c.cM.warn(`Unknown arrow type: ${r}`);return}let l=s.type,h=`${n}_${o}-${l}${"start"===e?"Start":"End"}`;if(a&&""!==a.trim()){let r=a.replace(/[^\dA-Za-z]/g,"_"),n=`${h}_${r}`;if(!document.getElementById(n)){let t=document.getElementById(h);if(t){let e=t.cloneNode(!0);e.id=n,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",a),s.fill&&t.setAttribute("fill",a)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${n})`)}else t.attr(`marker-${e}`,`url(${i}#${h})`)},"addEdgeMarker"),m=new Map,y=new Map,x=(0,c.eW)(()=>{m.clear(),y.clear()},"clear"),b=(0,c.eW)(t=>t?t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),k=(0,c.eW)(async(t,e)=>{let r,i=(0,h.ku)((0,h.nV)().flowchart.htmlLabels),{labelStyles:o}=(0,a.UG)(e);e.labelStyle=o;let l=await (0,s.rw)(t,e.label,{style:e.labelStyle,useHtmlLabels:i,addSvgBackground:!0,isNode:!1});c.cM.info("abc82",e,e.labelType);let d=t.insert("g").attr("class","edgeLabel"),p=d.insert("g").attr("class","label").attr("data-id",e.id);p.node().appendChild(l);let f=l.getBBox();if(i){let t=l.children[0],e=(0,u.Ys)(l);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}if(p.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),m.set(e.id,d),e.width=f.width,e.height=f.height,e.startLabelLeft){let i=await (0,n.XO)(e.startLabelLeft,b(e.labelStyle)),o=t.insert("g").attr("class","edgeTerminals"),a=o.insert("g").attr("class","inner");r=a.node().appendChild(i);let s=i.getBBox();a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),y.get(e.id)||y.set(e.id,{}),y.get(e.id).startLeft=o,C(r,e.startLabelLeft)}if(e.startLabelRight){let i=await (0,n.XO)(e.startLabelRight,b(e.labelStyle)),o=t.insert("g").attr("class","edgeTerminals"),a=o.insert("g").attr("class","inner");r=o.node().appendChild(i),a.node().appendChild(i);let s=i.getBBox();a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),y.get(e.id)||y.set(e.id,{}),y.get(e.id).startRight=o,C(r,e.startLabelRight)}if(e.endLabelLeft){let i=await (0,n.XO)(e.endLabelLeft,b(e.labelStyle)),o=t.insert("g").attr("class","edgeTerminals"),a=o.insert("g").attr("class","inner");r=a.node().appendChild(i);let s=i.getBBox();a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),o.node().appendChild(i),y.get(e.id)||y.set(e.id,{}),y.get(e.id).endLeft=o,C(r,e.endLabelLeft)}if(e.endLabelRight){let i=await (0,n.XO)(e.endLabelRight,b(e.labelStyle)),o=t.insert("g").attr("class","edgeTerminals"),a=o.insert("g").attr("class","inner");r=a.node().appendChild(i);let s=i.getBBox();a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),o.node().appendChild(i),y.get(e.id)||y.set(e.id,{}),y.get(e.id).endRight=o,C(r,e.endLabelRight)}return l},"insertEdgeLabel");function C(t,e){(0,h.nV)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,c.eW)(C,"setTerminalWidth");var _=(0,c.eW)((t,e)=>{c.cM.debug("Moving label abc88 ",t.id,t.label,m.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,h.nV)(),{subGraphTitleTotalMargin:n}=(0,o.L)(i);if(t.label){let i=m.get(t.id),o=t.x,a=t.y;if(r){let i=l.w8.calcLabelPosition(r);c.cM.debug("Moving label "+t.label+" from (",o,",",a,") to (",i.x,",",i.y,") abc88"),e.updatedPath&&(o=i.x,a=i.y)}i.attr("transform",`translate(${o}, ${a+n/2})`)}if(t.startLabelLeft){let e=y.get(t.id).startLeft,i=t.x,n=t.y;if(r){let e=l.w8.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}if(t.startLabelRight){let e=y.get(t.id).startRight,i=t.x,n=t.y;if(r){let e=l.w8.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}if(t.endLabelLeft){let e=y.get(t.id).endLeft,i=t.x,n=t.y;if(r){let e=l.w8.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}if(t.endLabelRight){let e=y.get(t.id).endRight,i=t.x,n=t.y;if(r){let e=l.w8.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);i=e.x,n=e.y}e.attr("transform",`translate(${i}, ${n})`)}},"positionEdgeLabel"),v=(0,c.eW)((t,e)=>{let r=t.x,i=t.y,n=Math.abs(e.x-r),o=Math.abs(e.y-i),a=t.width/2,s=t.height/2;return n>=a||o>=s},"outsideNode"),w=(0,c.eW)((t,e,r)=>{c.cM.debug(`intersection calc abc89:
|
|
137
|
+
outsidePoint: ${JSON.stringify(e)}
|
|
138
|
+
insidePoint : ${JSON.stringify(r)}
|
|
139
|
+
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let i=t.x,n=t.y,o=Math.abs(i-r.x),a=t.width/2,s=r.x<e.x?a-o:a+o,l=t.height/2,h=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(n-e.y)*a>Math.abs(i-e.x)*l){let t=r.y<e.y?e.y-l-n:n-l-e.y;s=u*t/h;let i={x:r.x<e.x?r.x+s:r.x-u+s,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===s&&(i.x=e.x,i.y=e.y),0===u&&(i.x=e.x),0===h&&(i.y=e.y),c.cM.debug(`abc89 top/bottom calc, Q ${h}, q ${t}, R ${u}, r ${s}`,i),i}{let t=h*(s=r.x<e.x?e.x-a-i:i-a-e.x)/u,n=r.x<e.x?r.x+u-s:r.x-u+s,o=r.y<e.y?r.y+t:r.y-t;return c.cM.debug(`sides calc abc89, Q ${h}, q ${t}, R ${u}, r ${s}`,{_x:n,_y:o}),0===s&&(n=e.x,o=e.y),0===u&&(n=e.x),0===h&&(o=e.y),{x:n,y:o}}},"intersection"),T=(0,c.eW)((t,e)=>{c.cM.warn("abc88 cutPathAtIntersect",t,e);let r=[],i=t[0],n=!1;return t.forEach(t=>{if(c.cM.info("abc88 checking point",t,e),v(e,t)||n)c.cM.warn("abc88 outside",t,i),i=t,n||r.push(t);else{let o=w(e,i,t);c.cM.debug("abc88 inside",t,i,o),c.cM.debug("abc88 intersection",o,e);let a=!1;r.forEach(t=>{a=a||t.x===o.x&&t.y===o.y}),r.some(t=>t.x===o.x&&t.y===o.y)?c.cM.warn("abc88 no intersect",o,r):r.push(o),n=!0}}),c.cM.debug("returning points",r),r},"cutPathAtIntersect");function S(t){let e=[],r=[];for(let i=1;i<t.length-1;i++){let n=t[i-1],o=t[i],a=t[i+1];n.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-n.y)>5?(e.push(o),r.push(i)):n.y===o.y&&o.x===a.x&&Math.abs(o.x-n.x)>5&&Math.abs(o.y-a.y)>5&&(e.push(o),r.push(i))}return{cornerPoints:e,cornerPointPositions:r}}(0,c.eW)(S,"extractCornerPoints");var M=(0,c.eW)(function(t,e,r){let i=e.x-t.x,n=e.y-t.y,o=r/Math.sqrt(i*i+n*n);return{x:e.x-o*i,y:e.y-o*n}},"findAdjacentPoint"),B=(0,c.eW)(function(t){let{cornerPointPositions:e}=S(t),r=[];for(let i=0;i<t.length;i++)if(e.includes(i)){let e=t[i-1],n=t[i+1],o=t[i],a=M(e,o,5),s=M(n,o,5),l=s.x-a.x,h=s.y-a.y;r.push(a);let u=2*Math.sqrt(2),d={x:o.x,y:o.y};Math.abs(n.x-e.x)>10&&Math.abs(n.y-e.y)>=10?(c.cM.debug("Corner point fixing",Math.abs(n.x-e.x),Math.abs(n.y-e.y)),d=o.x===a.x?{x:l<0?a.x-5+u:a.x+5-u,y:h<0?a.y-u:a.y+u}:{x:l<0?a.x-u:a.x+u,y:h<0?a.y-5+u:a.y+5-u}):c.cM.debug("Corner point skipping fixing",Math.abs(n.x-e.x),Math.abs(n.y-e.y)),r.push(d,s)}else r.push(t[i]);return r},"fixCorners"),L=(0,c.eW)((t,e,r)=>{let i=Array(Math.floor((t-e-r)/4)).fill("2 2").join(" ");return`0 ${e} ${i} ${r}`},"generateDashArray"),F=(0,c.eW)(function(t,e,r,n,o,s,f,g=!1){let m,y;let{handDrawnSeed:x}=(0,h.nV)(),b=e.points,k=!1,C=[];for(let t in e.cssCompiledStyles)(0,a.Fh)(t)||C.push(e.cssCompiledStyles[t]);c.cM.debug("UIO intersect check",e.points,s.x,o.x),s.intersect&&o.intersect&&!g&&((b=b.slice(1,e.points.length-1)).unshift(o.intersect(b[0])),c.cM.debug("Last point UIO",e.start,"-->",e.end,b[b.length-1],s,s.intersect(b[b.length-1])),b.push(s.intersect(b[b.length-1])));let _=btoa(JSON.stringify(b));e.toCluster&&(c.cM.info("to cluster abc88",r.get(e.toCluster)),b=T(e.points,r.get(e.toCluster).node),k=!0),e.fromCluster&&(c.cM.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(b,null,2)),b=T(b.reverse(),r.get(e.fromCluster).node).reverse(),k=!0);let v=b.filter(t=>!Number.isNaN(t.y));v=B(v);let w=u.$0Z;switch(w=u.c_6,e.curve){case"linear":w=u.c_6;break;case"basis":default:w=u.$0Z;break;case"cardinal":w=u.YY7;break;case"bumpX":w=u.qpX;break;case"bumpY":w=u.u93;break;case"catmullRom":w=u.zgE;break;case"monotoneX":w=u.FdL;break;case"monotoneY":w=u.ak_;break;case"natural":w=u.SxZ;break;case"step":w=u.eA_;break;case"stepAfter":w=u.jsv;break;case"stepBefore":w=u.iJ}let{x:S,y:M}=(0,i.om)(e),F=(0,u.jvg)().x(S).y(M).curve(w);switch(e.thickness){case"normal":default:m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-invisible"}switch(e.pattern){case"solid":default:m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed"}let W="rounded"===e.curve?A(E(v,e),5):F(v),O=Array.isArray(e.style)?e.style:[e.style],$=O.find(t=>t?.startsWith("stroke:")),I=!1;if("handDrawn"===e.look){let r=d.Z.svg(t);Object.assign([],v);let i=r.path(W,{roughness:.3,seed:x});m+=" transition";let n=(y=(0,u.Ys)(i).select("path").attr("id",e.id).attr("class"," "+m+(e.classes?" "+e.classes:"")).attr("style",O?O.reduce((t,e)=>t+";"+e,""):"")).attr("d");y.attr("d",n),t.node().appendChild(y.node())}else{let r=C.join(";"),n=O?O.reduce((t,e)=>t+e+";",""):"",o="";e.animate&&(o=" edge-animation-fast"),e.animation&&(o=" edge-animation-"+e.animation);let a=(r?r+";"+n+";":n)+";"+(O?O.reduce((t,e)=>t+";"+e,""):"");y=t.append("path").attr("d",W).attr("id",e.id).attr("class"," "+m+(e.classes?" "+e.classes:"")+(o??"")).attr("style",a),$=a.match(/stroke:([^;]+)/)?.[1],I=!0===e.animate||!!e.animation||r.includes("animation");let s=y.node(),l="function"==typeof s.getTotalLength?s.getTotalLength():0,h=i.oZ[e.arrowTypeStart]||0,c=i.oZ[e.arrowTypeEnd]||0;if("neo"===e.look&&!I){let t="dotted"===e.pattern||"dashed"===e.pattern?L(l,h,c):`0 ${h} ${l-h-c} ${c}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;y.attr("style",r+y.attr("style"))}}y.attr("data-edge",!0),y.attr("data-et","edge"),y.attr("data-id",e.id),y.attr("data-points",_),e.showPoints&&v.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let D="";((0,h.nV)().flowchart.arrowMarkerAbsolute||(0,h.nV)().state.arrowMarkerAbsolute)&&(D=(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.cM.info("arrowTypeStart",e.arrowTypeStart),c.cM.info("arrowTypeEnd",e.arrowTypeEnd),p(y,e,D,f,n,$);let Z=Math.floor(b.length/2),z=b[Z];l.w8.isLabelCoordinateInPath(z,y.attr("d"))||(k=!0);let q={};return k&&(q.updatedPath=b),q.originalPath=e.points,q},"insertEdge");function A(t,e){if(t.length<2)return"";let r="",i=t.length;for(let n=0;n<i;n++){let o=t[n],a=t[n-1],s=t[n+1];if(0===n)r+=`M${o.x},${o.y}`;else if(n===i-1)r+=`L${o.x},${o.y}`;else{let t=o.x-a.x,i=o.y-a.y,n=s.x-o.x,l=s.y-o.y,h=Math.hypot(t,i),c=Math.hypot(n,l);if(h<1e-5||c<1e-5){r+=`L${o.x},${o.y}`;continue}let u=t/h,d=i/h,p=n/c,f=l/c,g=Math.acos(Math.max(-1,Math.min(1,u*p+d*f)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${o.x},${o.y}`;continue}let m=Math.min(e/Math.sin(g/2),h/2,c/2),y=o.x-u*m,x=o.y-d*m,b=o.x+p*m,k=o.y+f*m;r+=`L${y},${x}Q${o.x},${o.y} ${b},${k}`}}return r}function W(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,i=e.y-t.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}function E(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&i.Os[e.arrowTypeStart]){let n=i.Os[e.arrowTypeStart],o=t[0],{angle:a}=W(o,t[1]),s=n*Math.cos(a),l=n*Math.sin(a);r[0].x=o.x+s,r[0].y=o.y+l}let n=t.length;if(n>=2&&i.Os[e.arrowTypeEnd]){let o=i.Os[e.arrowTypeEnd],a=t[n-1],{angle:s}=W(t[n-2],a),l=o*Math.cos(s),h=o*Math.sin(s);r[n-1].x=a.x-l,r[n-1].y=a.y-h}return r}(0,c.eW)(A,"generateRoundedPath"),(0,c.eW)(W,"calculateDeltaAndAngle"),(0,c.eW)(E,"applyMarkerOffsetsToPoints");var O=(0,c.eW)((t,e,r,i)=>{e.forEach(e=>{Y[e](t,r,i)})},"insertMarkers"),$=(0,c.eW)((t,e,r)=>{c.cM.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),I=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),D=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Z=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),z=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),q=(0,c.eW)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),N=(0,c.eW)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),P=(0,c.eW)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),R=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),j=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),H=(0,c.eW)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),U=(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Y={extension:$,composition:I,aggregation:D,dependency:Z,lollipop:z,point:q,circle:N,cross:P,barb:R,only_one:j,zero_or_one:H,one_or_more:U,zero_or_more:(0,c.eW)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),requirement_arrow:(0,c.eW)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
140
|
+
L20,10
|
|
141
|
+
M20,10
|
|
142
|
+
L0,20`)},"requirement_arrow"),requirement_contains:(0,c.eW)((t,e,r)=>{let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains")},G=O},94705:function(t,e,r){"use strict";r.d(e,{$m:function(){return c},Cq:function(){return D},Ln:function(){return G},MX:function(){return A},Ox:function(){return L},R7:function(){return V},Rb:function(){return j},SH:function(){return Y},VG:function(){return R},Vy:function(){return U},X4:function(){return O},XD:function(){return I},bZ:function(){return N},be:function(){return M},le:function(){return y},tf:function(){return g},w8:function(){return H}});var i,n=r(55166),o=r(31954),a=r(59543),s=r(84370),l=r(98509),h=r(38008),c="",u={curveBasis:s.$0Z,curveBasisClosed:s.Dts,curveBasisOpen:s.WQY,curveBumpX:s.qpX,curveBumpY:s.u93,curveBundle:s.tFB,curveCardinalClosed:s.OvA,curveCardinalOpen:s.dCK,curveCardinal:s.YY7,curveCatmullRomClosed:s.fGX,curveCatmullRomOpen:s.$m7,curveCatmullRom:s.zgE,curveLinear:s.c_6,curveLinearClosed:s.fxm,curveMonotoneX:s.FdL,curveMonotoneY:s.ak_,curveNatural:s.SxZ,curveStep:s.eA_,curveStepAfter:s.jsv,curveStepBefore:s.iJ},d=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,p=(0,o.eW)(function(t,e){let r=f(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,n.NM)(t),i=(0,n.Yc)(i,[...t])}else i=r.args;if(!i)return;let o=(0,n.Vg)(t,e),a="config";return void 0!==i[a]&&("flowchart-v2"===o&&(o="flowchart"),i[o]=i[a],delete i[a]),i},"detectInit"),f=(0,o.eW)(function(t,e=null){try{let r;let i=RegExp(`[%]{2}(?![{]${d.source})(?=[}][%]{2}).*
|
|
143
|
+
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),o.cM.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let a=[];for(;null!==(r=n.Zn.exec(t));)if(r.index===n.Zn.lastIndex&&n.Zn.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;a.push({type:t,args:e})}if(0===a.length)return{type:t,args:null};return 1===a.length?a[0]:a}catch(r){return o.cM.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),g=(0,o.eW)(function(t){return t.replace(n.Zn,"")},"removeDirectives"),m=(0,o.eW)(function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return -1},"isSubstringInArray");function y(t,e){return t?u[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function x(t,e){let r=t.trim();return r?"loose"!==e.securityLevel?(0,a.N)(r):r:void 0}(0,o.eW)(y,"interpolateToCurve"),(0,o.eW)(x,"formatUrl");var b=(0,o.eW)((t,...e)=>{let r=t.split("."),i=r.length-1,n=r[i],a=window;for(let e=0;e<i;e++)if(!(a=a[r[e]])){o.cM.error(`Function name: ${t} not found in window`);return}a[n](...e)},"runFunc");function k(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function C(t){let e;let r=0;return t.forEach(t=>{r+=k(t,e),e=t}),w(t,r/2)}function _(t){return 1===t.length?t[0]:C(t)}(0,o.eW)(k,"distance"),(0,o.eW)(C,"traverseEdge"),(0,o.eW)(_,"calcLabelPosition");var v=(0,o.eW)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),w=(0,o.eW)((t,e)=>{let r;let i=e;for(let e of t){if(r){let t=k(e,r);if(0===t)return r;if(t<i)i-=t;else{let n=i/t;if(n<=0)return r;if(n>=1)return{x:e.x,y:e.y};if(n>0&&n<1)return{x:v((1-n)*r.x+n*e.x,5),y:v((1-n)*r.y+n*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),T=(0,o.eW)((t,e,r)=>{o.cM.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=w(e,25),n=t?10:5,a=Math.atan2(e[0].y-i.y,e[0].x-i.x),s={x:0,y:0};return s.x=Math.sin(a)*n+(e[0].x+i.x)/2,s.y=-Math.cos(a)*n+(e[0].y+i.y)/2,s},"calcCardinalityPosition");function S(t,e,r){let i=structuredClone(r);o.cM.info("our points",i),"start_left"!==e&&"start_right"!==e&&i.reverse();let n=w(i,25+t),a=10+.5*t,s=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+n.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+n.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2),l}function M(t){let e="",r="";for(let i of t)void 0!==i&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}(0,o.eW)(S,"calcTerminalLabelPosition"),(0,o.eW)(M,"getStylesFromArray");var B=0,L=(0,o.eW)(()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B),"generateId");function F(t){let e="",r="0123456789abcdef",i=r.length;for(let n=0;n<t;n++)e+=r.charAt(Math.floor(Math.random()*i));return e}(0,o.eW)(F,"makeRandomHex");var A=(0,o.eW)(t=>F(t.length),"random"),W=(0,o.eW)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),E=(0,o.eW)(function(t,e){let r=e.text.replace(n.SY.lineBreakRegex," "),[,i]=R(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),void 0!==e.class&&o.attr("class",e.class);let a=o.append("tspan");return a.attr("x",e.x+2*e.textMargin),a.attr("fill",e.fill),a.text(r),o},"drawSimpleText"),O=(0,l.Z)((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),n.SY.lineBreakRegex.test(t)))return t;let i=t.split(" ").filter(Boolean),o=[],a="";return i.forEach((t,n)=>{let s=D(`${t} `,r),l=D(a,r);if(s>e){let{hyphenatedStrings:i,remainingWord:n}=$(t,e,"-",r);o.push(a,...i),a=n}else l+s>=e?(o.push(a),a=t):a=[a,t].filter(Boolean).join(" ");n+1===i.length&&o.push(a)}),o.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),$=(0,l.Z)((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let n=[...t],o=[],a="";return n.forEach((t,s)=>{let l=`${a}${t}`;if(D(l,i)>=e){let t=n.length===s+1,e=`${l}${r}`;o.push(t?l:e),a=""}else a=l}),{hyphenatedStrings:o,remainingWord:a}},(t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function I(t,e){return Z(t,e).height}function D(t,e){return Z(t,e).width}(0,o.eW)(I,"calculateTextHeight"),(0,o.eW)(D,"calculateTextWidth");var Z=(0,l.Z)((t,e)=>{let{fontSize:r=12,fontFamily:i="Arial",fontWeight:o=400}=e;if(!t)return{width:0,height:0};let[,a]=R(r),l=t.split(n.SY.lineBreakRegex),h=[],u=(0,s.Ys)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append("svg");for(let t of["sans-serif",i]){let e=0,r={width:0,height:0,lineHeight:0};for(let i of l){let n=W();n.text=i||c;let s=E(d,n).style("font-size",a).style("font-weight",o).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}h.push(r)}d.remove();let p=isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1;return h[p]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),z=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.eW)(this,"InitIDGenerator")}},q=(0,o.eW)(function(t){return i=i||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),i.innerHTML=t,unescape(i.textContent)},"entityDecode");function N(t){return"str"in t}(0,o.eW)(N,"isDetailedError");var P=(0,o.eW)((t,e,r,i)=>{if(!i)return;let n=t.node()?.getBBox();n&&t.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",e)},"insertTitle"),R=(0,o.eW)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function j(t,e){return(0,h.Z)({},t,e)}(0,o.eW)(j,"cleanAndMerge");var H={assignWithDepth:n.Yc,wrapLabel:O,calculateTextHeight:I,calculateTextWidth:D,calculateTextDimensions:Z,cleanAndMerge:j,detectInit:p,detectDirective:f,isSubstringInArray:m,interpolateToCurve:y,calcLabelPosition:_,calcCardinalityPosition:T,calcTerminalLabelPosition:S,formatUrl:x,getStylesFromArray:M,generateId:L,random:A,runFunc:b,entityDecode:q,insertTitle:P,isLabelCoordinateInPath:X,parseFontSize:R,InitIDGenerator:z},U=(0,o.eW)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),Y=(0,o.eW)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),G=(0,o.eW)((t,e,{counter:r=0,prefix:i,suffix:n},o)=>o||`${i?`${i}_`:""}${t}_${e}_${r}${n?`_${n}`:""}`,"getEdgeId");function V(t){return t??null}function X(t,e){let r=Math.round(t.x),i=Math.round(t.y),n=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return n.includes(r.toString())||n.includes(i.toString())}(0,o.eW)(V,"handleUndefinedAttr"),(0,o.eW)(X,"isLabelCoordinateInPath")},8441:function(t,e,r){"use strict";r.d(e,{X:function(){return i}});var i={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},50656:function(t,e,r){"use strict";r.d(e,{Z:function(){return ra}});var i=r(8441),n=r(34960),o=r(56405),a=r(63025);r(19328),r(54973),r(11866),r(10507),r(33281);var s=r(66691),l=r(94705),h=r(55166),c=r(31954),u=r(69553),d=r(84370),p="comm",f="rule",g="decl",m=Math.abs,y=String.fromCharCode;function x(t,e,r){return t.replace(e,r)}function b(t,e){return 0|t.charCodeAt(e)}function k(t,e,r){return t.slice(e,r)}function C(t){return t.length}function _(t,e){return e.push(t),t}function v(t,e){for(var r="",i=0;i<t.length;i++)r+=e(t[i],i,t,e)||"";return r}function w(t,e,r,i){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case g:return t.return=t.return||t.value;case p:return"";case"@keyframes":return t.return=t.value+"{"+v(t.children,i)+"}";case f:if(!C(t.value=t.props.join(",")))return""}return C(r=v(t.children,i))?t.return=t.value+"{"+r+"}":""}var T=1,S=1,M=0,B=0,L=0,F="";function A(t,e,r,i,n,o,a,s){return{value:t,root:e,parent:r,type:i,props:n,children:o,line:T,column:S,length:a,return:"",siblings:s}}function W(){return L=B<M?b(F,B++):0,S++,10===L&&(S=1,T++),L}function E(){return b(F,B)}function O(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(t){var e,r;return(e=B-1,r=function t(e){for(;W();)switch(L){case e:return B;case 34:case 39:34!==e&&39!==e&&t(L);break;case 40:41===e&&t(e);break;case 92:W()}return B}(91===t?t+2:40===t?t+1:t),k(F,e,r)).trim()}function I(t,e,r,i,n,o,a,s,l,h,c,u){for(var d=n-1,p=0===n?o:[""],g=p.length,y=0,b=0,C=0;y<i;++y)for(var _=0,v=k(t,d+1,d=m(b=a[y])),w=t;_<g;++_)(w=(b>0?p[_]+" "+v:x(v,/&\f/g,p[_])).trim())&&(l[C++]=w);return A(t,e,r,0===n?f:s,l,h,c,u)}function D(t,e,r,i,n){return A(t,e,r,g,k(t,0,i),k(t,i+1,-1),i,n)}var Z=r(18848),z=r(45130),q={id:"c4",detector:(0,c.eW)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,c.eW)(async()=>{let{diagram:t}=await r.e(5387).then(r.bind(r,65387));return{id:"c4",diagram:t}},"loader")},N="flowchart",P=(0,c.eW)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),R=(0,c.eW)(async()=>{let{diagram:t}=await r.e(7753).then(r.bind(r,77753));return{id:N,diagram:t}},"loader"),j={id:N,detector:P,loader:R},H="flowchart-v2",U=(0,c.eW)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),Y=(0,c.eW)(async()=>{let{diagram:t}=await r.e(7753).then(r.bind(r,77753));return{id:H,diagram:t}},"loader"),G={id:H,detector:U,loader:Y},V={id:"er",detector:(0,c.eW)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,c.eW)(async()=>{let{diagram:t}=await r.e(1582).then(r.bind(r,51582));return{id:"er",diagram:t}},"loader")},X="gitGraph",Q=(0,c.eW)(t=>/^\s*gitGraph/.test(t),"detector"),K=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(4327),r.e(3574)]).then(r.bind(r,43574));return{id:X,diagram:t}},"loader"),J={id:X,detector:Q,loader:K},tt="gantt",te=(0,c.eW)(t=>/^\s*gantt/.test(t),"detector"),tr=(0,c.eW)(async()=>{let{diagram:t}=await r.e(1817).then(r.bind(r,31817));return{id:tt,diagram:t}},"loader"),ti={id:tt,detector:te,loader:tr},tn="info",to=(0,c.eW)(t=>/^\s*info/.test(t),"detector"),ta=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(4327),r.e(8841)]).then(r.bind(r,78841));return{id:tn,diagram:t}},"loader"),ts={id:tn,detector:to,loader:ta},tl={id:"pie",detector:(0,c.eW)(t=>/^\s*pie/.test(t),"detector"),loader:(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(4327),r.e(2626)]).then(r.bind(r,62626));return{id:"pie",diagram:t}},"loader")},th="quadrantChart",tc=(0,c.eW)(t=>/^\s*quadrantChart/.test(t),"detector"),tu=(0,c.eW)(async()=>{let{diagram:t}=await r.e(8772).then(r.bind(r,58772));return{id:th,diagram:t}},"loader"),td={id:th,detector:tc,loader:tu},tp="xychart",tf=(0,c.eW)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tg=(0,c.eW)(async()=>{let{diagram:t}=await r.e(3991).then(r.bind(r,53991));return{id:tp,diagram:t}},"loader"),tm={id:tp,detector:tf,loader:tg},ty="requirement",tx=(0,c.eW)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tb=(0,c.eW)(async()=>{let{diagram:t}=await r.e(1015).then(r.bind(r,71015));return{id:ty,diagram:t}},"loader"),tk={id:ty,detector:tx,loader:tb},tC="sequence",t_=(0,c.eW)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tv=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(2603),r.e(1423)]).then(r.bind(r,70872));return{id:tC,diagram:t}},"loader"),tw={id:tC,detector:t_,loader:tv},tT="class",tS=(0,c.eW)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tM=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(2689),r.e(5813)]).then(r.bind(r,45813));return{id:tT,diagram:t}},"loader"),tB={id:tT,detector:tS,loader:tM},tL="classDiagram",tF=(0,c.eW)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tA=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(2689),r.e(7290)]).then(r.bind(r,97290));return{id:tL,diagram:t}},"loader"),tW={id:tL,detector:tF,loader:tA},tE="state",tO=(0,c.eW)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),t$=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(8522),r.e(3843),r.e(7665),r.e(9552)]).then(r.bind(r,49552));return{id:tE,diagram:t}},"loader"),tI={id:tE,detector:tO,loader:t$},tD="stateDiagram",tZ=(0,c.eW)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tz=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(7665),r.e(7004)]).then(r.bind(r,47004));return{id:tD,diagram:t}},"loader"),tq={id:tD,detector:tZ,loader:tz},tN="journey",tP=(0,c.eW)(t=>/^\s*journey/.test(t),"detector"),tR=(0,c.eW)(async()=>{let{diagram:t}=await r.e(7415).then(r.bind(r,77415));return{id:tN,diagram:t}},"loader"),tj={id:tN,detector:tP,loader:tR},tH={draw:(0,c.eW)((t,e,r)=>{c.cM.debug("rendering svg for syntax error\n");let i=(0,n.P)(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,h.v2)(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},tU={db:{},renderer:tH,parser:{parse:(0,c.eW)(()=>{},"parse")}},tY="flowchart-elk",tG=(0,c.eW)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),tV=(0,c.eW)(async()=>{let{diagram:t}=await r.e(7753).then(r.bind(r,77753));return{id:tY,diagram:t}},"loader"),tX={id:tY,detector:tG,loader:tV},tQ="timeline",tK=(0,c.eW)(t=>/^\s*timeline/.test(t),"detector"),tJ=(0,c.eW)(async()=>{let{diagram:t}=await r.e(5126).then(r.bind(r,95126));return{id:tQ,diagram:t}},"loader"),t0={id:tQ,detector:tK,loader:tJ},t1="mindmap",t2=(0,c.eW)(t=>/^\s*mindmap/.test(t),"detector"),t3=(0,c.eW)(async()=>{let{diagram:t}=await r.e(6678).then(r.bind(r,56678));return{id:t1,diagram:t}},"loader"),t5={id:t1,detector:t2,loader:t3},t6="kanban",t4=(0,c.eW)(t=>/^\s*kanban/.test(t),"detector"),t8=(0,c.eW)(async()=>{let{diagram:t}=await r.e(2398).then(r.bind(r,72398));return{id:t6,diagram:t}},"loader"),t9={id:t6,detector:t4,loader:t8},t7="sankey",et=(0,c.eW)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ee=(0,c.eW)(async()=>{let{diagram:t}=await r.e(383).then(r.bind(r,383));return{id:t7,diagram:t}},"loader"),er={id:t7,detector:et,loader:ee},ei="packet",en=(0,c.eW)(t=>/^\s*packet(-beta)?/.test(t),"detector"),eo=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(4327),r.e(8288)]).then(r.bind(r,78288));return{id:ei,diagram:t}},"loader"),ea={id:ei,detector:en,loader:eo},es="radar",el=(0,c.eW)(t=>/^\s*radar-beta/.test(t),"detector"),eh=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(4327),r.e(2526)]).then(r.bind(r,2526));return{id:es,diagram:t}},"loader"),ec={id:es,detector:el,loader:eh},eu="block",ed=(0,c.eW)(t=>/^\s*block(-beta)?/.test(t),"detector"),ep=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(8522),r.e(4212)]).then(r.bind(r,54212));return{id:eu,diagram:t}},"loader"),ef={id:eu,detector:ed,loader:ep},eg="architecture",em=(0,c.eW)(t=>/^\s*architecture/.test(t),"detector"),ey=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(1264),r.e(6792),r.e(4327),r.e(6143)]).then(r.bind(r,66143));return{id:eg,diagram:t}},"loader"),ex={id:eg,detector:em,loader:ey},eb="treemap",ek=(0,c.eW)(t=>/^\s*treemap/.test(t),"detector"),eC=(0,c.eW)(async()=>{let{diagram:t}=await Promise.all([r.e(6792),r.e(4327),r.e(9834)]).then(r.bind(r,9834));return{id:eb,diagram:t}},"loader"),e_={id:eb,detector:ek,loader:eC},ev=!1,ew=(0,c.eW)(()=>{ev||(ev=!0,(0,h.Cq)("error",tU,t=>"error"===t.toLowerCase().trim()),(0,h.Cq)("---",{db:{clear:(0,c.eW)(()=>{},"clear")},styles:{},renderer:{draw:(0,c.eW)(()=>{},"draw")},parser:{parse:(0,c.eW)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,c.eW)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,h.KO)(tX,t5,ex),(0,h.KO)(q,t9,tW,tB,V,ti,ts,tl,tk,tw,G,j,t0,J,tq,tI,tj,td,er,ea,tm,ef,ec,e_))},"addDiagrams"),eT=(0,c.eW)(async()=>{c.cM.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(h.Bf).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,h._7)(t)}catch{try{let{diagram:t,id:i}=await r();(0,h.Cq)(i,t,e)}catch(e){throw c.cM.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete h.Bf[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(c.cM.error(`Failed to load ${t.length} external diagrams`),t))c.cM.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function eS(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function eM(t,e,r,i){if(void 0!==t.insert){if(r){let e=`chart-desc-${i}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${i}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,c.eW)(eS,"setA11yDiagramInfo"),(0,c.eW)(eM,"addSVGa11yTitleDescription");var eB=class t{constructor(t,e,r,i,n){this.type=t,this.text=e,this.db=r,this.parser=i,this.renderer=n}static{(0,c.eW)(this,"Diagram")}static async fromText(e,r={}){let i=(0,h.iE)(),n=(0,h.Vg)(e,i);e=(0,l.Vy)(e)+"\n";try{(0,h._7)(n)}catch{let t=(0,h.cq)(n);if(!t)throw new h.cj(`Diagram ${n} not found.`);let{id:e,diagram:r}=await t();(0,h.Cq)(e,r)}let{db:o,parser:a,renderer:s,init:c}=(0,h._7)(n);return a.parser&&(a.parser.yy=o),o.clear?.(),c?.(i),r.title&&o.setDiagramTitle?.(r.title),await a.parse(e),new t(n,e,o,a,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},eL=[],eF=(0,c.eW)(()=>{eL.forEach(t=>{t()}),eL=[]},"attachFunctions"),eA=(0,c.eW)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function eW(t){let e=t.match(h.M6);if(!e)return{text:t,metadata:{}};let r=(0,o.z)(e[1],{schema:o.A})??{};r="object"!=typeof r||Array.isArray(r)?{}:r;let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}(0,c.eW)(eW,"extractFrontMatter");var eE=(0,c.eW)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),eO=(0,c.eW)(t=>{let{text:e,metadata:r}=eW(t),{displayMode:i,title:n,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:n,config:o,text:e}},"processFrontmatter"),e$=(0,c.eW)(t=>{let e=l.w8.detectInit(t)??{},r=l.w8.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,l.tf)(t),directive:e}},"processDirectives");function eI(t){let e=eO(eE(t)),r=e$(e.text),i=(0,l.Rb)(e.config,r.directive);return{code:t=eA(r.text),title:e.title,config:i}}function eD(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,c.eW)(eI,"preprocessDiagram"),(0,c.eW)(eD,"toBase64");var eZ=["foreignobject"],ez=["dominant-baseline"];function eq(t){let e=eI(t);return(0,h.mc)(),(0,h.XV)(e.config??{}),e}async function eN(t,e){ew();try{let{code:e,config:r}=eq(t);return{diagramType:(await eK(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,c.eW)(eq,"processAndSetConfigs"),(0,c.eW)(eN,"parse");var eP=(0,c.eW)((t,e,r=[])=>`
|
|
144
|
+
.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),eR=(0,c.eW)((t,e=new Map)=>{let r="";if(void 0!==t.themeCSS&&(r+=`
|
|
145
|
+
${t.themeCSS}`),void 0!==t.fontFamily&&(r+=`
|
|
146
|
+
:root { --mermaid-font-family: ${t.fontFamily}}`),void 0!==t.altFontFamily&&(r+=`
|
|
147
|
+
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){let i=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{(0,z.Z)(t.styles)||i.forEach(e=>{r+=eP(t.id,e,t.styles)}),(0,z.Z)(t.textStyles)||(r+=eP(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))))})}return r},"createCssStyles"),ej=(0,c.eW)((t,e,r,i)=>{var n,o,a;let s=eR(t,r),l=(0,h.Ee)(e,s,t.themeVariables);return v((a=function t(e,r,i,n,o,a,s,l,h){for(var c,u,d,f=0,g=0,v=s,w=0,M=0,Z=0,z=1,q=1,N=1,P=0,R="",j=o,H=a,U=n,Y=R;q;)switch(Z=P,P=W()){case 40:if(108!=Z&&58==b(Y,v-1)){-1!=(u=Y+=x($(P),"&","&\f"),d=m(f?l[f-1]:0),u.indexOf("&\f",d))&&(N=-1);break}case 34:case 39:case 91:Y+=$(P);break;case 9:case 10:case 13:case 32:Y+=function(t){for(;L=E();)if(L<33)W();else break;return O(t)>2||O(L)>3?"":" "}(Z);break;case 92:Y+=function(t,e){for(var r;--e&&W()&&!(L<48)&&!(L>102)&&(!(L>57)||!(L<65))&&(!(L>70)||!(L<97)););return r=B+(e<6&&32==E()&&32==W()),k(F,t,r)}(B-1,7);continue;case 47:switch(E()){case 42:case 47:_(A(c=function(t,e){for(;W();)if(t+L===57)break;else if(t+L===84&&47===E())break;return"/*"+k(F,e,B-1)+"*"+y(47===t?t:W())}(W(),B),r,i,p,y(L),k(c,2,-2),0,h),h),(5==O(Z||1)||5==O(E()||1))&&C(Y)&&" "!==k(Y,-1,void 0)&&(Y+=" ");break;default:Y+="/"}break;case 123*z:l[f++]=C(Y)*N;case 125*z:case 59:case 0:switch(P){case 0:case 125:q=0;case 59+g:-1==N&&(Y=x(Y,/\f/g,"")),M>0&&(C(Y)-v||0===z&&47===Z)&&_(M>32?D(Y+";",n,i,v-1,h):D(x(Y," ","")+";",n,i,v-2,h),h);break;case 59:Y+=";";default:if(_(U=I(Y,r,i,f,g,o,l,R,j=[],H=[],v,a),a),123===P){if(0===g)t(Y,r,U,U,j,a,v,l,H);else{switch(w){case 99:if(110===b(Y,3))break;case 108:if(97===b(Y,2))break;default:g=0;case 100:case 109:case 115:}g?t(e,U,U,n&&_(I(e,U,U,0,0,o,l,R,o,j=[],v,H),H),o,H,v,l,n?j:H):t(Y,U,U,U,[""],H,0,l,H)}}}f=g=M=0,z=N=1,R=Y="",v=s;break;case 58:v=1+C(Y),M=Z;default:if(z<1){if(123==P)--z;else if(125==P&&0==z++&&125==(L=B>0?b(F,--B):0,S--,10===L&&(S=1,T--),L))continue}switch(Y+=y(P),P*z){case 38:N=g>0?1:(Y+="\f",-1);break;case 44:l[f++]=(C(Y)-1)*N,N=1;break;case 64:45===E()&&(Y+=$(W())),w=E(),g=v=C(R=Y+=function(t){for(;!O(E());)W();return k(F,t,B)}(B)),P++;break;case 45:45===Z&&2==C(Y)&&(z=0)}}return a}("",null,null,null,[""],(o=n=`${i}{${l}}`,T=S=1,M=C(F=o),B=0,n=[]),0,[0],n),F="",a),w)},"createUserStyles"),eH=(0,c.eW)((t="",e,r)=>{let i=t;return r||e||(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=(i=(0,l.SH)(i)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),eU=(0,c.eW)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",i=eD(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
148
|
+
The "iframe" tag is not supported by your browser.
|
|
149
|
+
</iframe>`},"putIntoIFrame"),eY=(0,c.eW)((t,e,r,i,n)=>{let o=t.append("div");o.attr("id",r),i&&o.attr("style",i);let a=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return n&&a.attr("xmlns:xlink",n),a.append("g"),t},"appendDivSvgG");function eG(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,c.eW)(eG,"sandboxedIframe");var eV=(0,c.eW)((t,e,r,i)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),eX=(0,c.eW)(async function(t,e,r){let n,o;ew();let a=eq(e);e=a.code;let s=(0,h.iE)();c.cM.debug(s),e.length>(s?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let l="#"+t,u="i"+t,p="#"+u,f="d"+t,g="#"+f,m=(0,c.eW)(()=>{let t=x?p:g,e=(0,d.Ys)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),y=(0,d.Ys)("body"),x="sandbox"===s.securityLevel,b="loose"===s.securityLevel,k=s.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),x){let t=eG((0,d.Ys)(r),u);(y=(0,d.Ys)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else y=(0,d.Ys)(r);eY(y,t,f,`font-family: ${k}`,"http://www.w3.org/1999/xlink")}else{if(eV(document,t,f,u),x){let t=eG((0,d.Ys)("body"),u);(y=(0,d.Ys)(t.nodes()[0].contentDocument.body)).node().style.margin=0}else y=(0,d.Ys)("body");eY(y,t,f)}try{n=await eB.fromText(e,{title:a.title})}catch(t){if(s.suppressErrorRendering)throw m(),t;n=await eB.fromText("error"),o=t}let C=y.select(g).node(),_=n.type,v=C.firstChild,w=v.firstChild,T=ej(s,_,n.renderer.getClasses?.(e,n),l),S=document.createElement("style");S.innerHTML=T,v.insertBefore(S,w);try{await n.renderer.draw(e,t,i.X.version,n)}catch(r){throw s.suppressErrorRendering?m():tH.draw(e,t,i.X.version),r}eJ(_,y.select(`${g} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.()),y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let M=y.select(g).node().innerHTML;if(c.cM.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),M=eH(M,x,(0,h.ku)(s.arrowMarkerAbsolute)),x?M=eU(M,y.select(g+" svg").node()):b||(M=Z.Z.sanitize(M,{ADD_TAGS:eZ,ADD_ATTR:ez,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),eF(),o)throw o;return m(),{diagramType:_,svg:M,bindFunctions:n.db.bindFunctions}},"render");function eQ(t={}){let e=(0,h.Yc)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,h.dY)(e),e?.theme&&e.theme in h._j?e.themeVariables=h._j[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=h._j.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,h.Yn)(e):(0,h.ZD)();(0,c.Ub)(r.logLevel),ew()}(0,c.eW)(eQ,"initialize");var eK=(0,c.eW)((t,e={})=>{let{code:r}=eI(t);return eB.fromText(r,e)},"getDiagramFromText");function eJ(t,e,r,i){eS(e,t),eM(e,r,i,e.attr("id"))}(0,c.eW)(eJ,"addA11yInfo");var e0=Object.freeze({render:eX,parse:eN,getDiagramFromText:eK,initialize:eQ,getConfig:h.iE,setConfig:h.v6,getSiteConfig:h.ZD,updateSiteConfig:h.Tb,reset:(0,c.eW)(()=>{(0,h.mc)()},"reset"),globalReset:(0,c.eW)(()=>{(0,h.mc)(h.u_)},"globalReset"),defaultConfig:h.u_});(0,c.Ub)((0,h.iE)().logLevel),(0,h.mc)((0,h.iE)());var e1=(0,c.eW)((t,e,r)=>{c.cM.warn(t),(0,l.bZ)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),e2=(0,c.eW)(async function(t={querySelector:".mermaid"}){try{await e3(t)}catch(e){if((0,l.bZ)(e)&&c.cM.error(e.str),ro.parseError&&ro.parseError(e),!t.suppressErrors)throw c.cM.error("Use the suppressErrors option to suppress these errors"),e}},"run"),e3=(0,c.eW)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i,n;let o=e0.getConfig();if(c.cM.debug(`${t?"":"No "}Callback function found`),r)i=r;else if(e)i=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");c.cM.debug(`Found ${i.length} diagrams`),o?.startOnLoad!==void 0&&(c.cM.debug("Start On Load: "+o?.startOnLoad),e0.updateSiteConfig({startOnLoad:o?.startOnLoad}));let a=new l.w8.InitIDGenerator(o.deterministicIds,o.deterministicIDSeed),s=[];for(let e of Array.from(i)){if(c.cM.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${a.next()}`;n=e.innerHTML,n=(0,u.Z)(l.w8.entityDecode(n)).trim().replace(/<br\s*\/?>/gi,"<br/>");let i=l.w8.detectInit(n);i&&c.cM.debug("Detected early reinit: ",i);try{let{svg:i,bindFunctions:o}=await ri(r,n,e);e.innerHTML=i,t&&await t(r),o&&o(e)}catch(t){e1(t,s,ro.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),e5=(0,c.eW)(function(t){e0.initialize(t)},"initialize"),e6=(0,c.eW)(async function(t,e,r){c.cM.warn("mermaid.init is deprecated. Please use run instead."),t&&e5(t);let i={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?i.querySelector=e:e&&(e instanceof HTMLElement?i.nodes=[e]:i.nodes=e),await e2(i)},"init"),e4=(0,c.eW)(async(t,{lazyLoad:e=!0}={})=>{ew(),(0,h.KO)(...t),!1===e&&await eT()},"registerExternalDiagrams"),e8=(0,c.eW)(function(){if(ro.startOnLoad){let{startOnLoad:t}=e0.getConfig();t&&ro.run().catch(t=>c.cM.error("Mermaid failed to initialize",t))}},"contentLoaded");"undefined"!=typeof document&&window.addEventListener("load",e8,!1);var e9=(0,c.eW)(function(t){ro.parseError=t},"setParseErrorHandler"),e7=[],rt=!1,re=(0,c.eW)(async()=>{if(!rt){for(rt=!0;e7.length>0;){let t=e7.shift();if(t)try{await t()}catch(t){c.cM.error("Error executing queue",t)}}rt=!1}},"executeQueue"),rr=(0,c.eW)(async(t,e)=>new Promise((r,i)=>{let n=(0,c.eW)(()=>new Promise((n,o)=>{e0.parse(t,e).then(t=>{n(t),r(t)},t=>{c.cM.error("Error parsing",t),ro.parseError?.(t),o(t),i(t)})}),"performCall");e7.push(n),re().catch(i)}),"parse"),ri=(0,c.eW)((t,e,r)=>new Promise((i,n)=>{let o=(0,c.eW)(()=>new Promise((o,a)=>{e0.render(t,e,r).then(t=>{o(t),i(t)},t=>{c.cM.error("Error parsing",t),ro.parseError?.(t),a(t),n(t)})}),"performCall");e7.push(o),re().catch(n)}),"render"),rn=(0,c.eW)(()=>Object.keys(h.Bf).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),ro={startOnLoad:!0,mermaidAPI:e0,parse:rr,render:ri,init:e6,run:e2,registerExternalDiagrams:e4,registerLayoutLoaders:a.jM,initialize:e5,parseError:void 0,contentLoaded:e8,setParseErrorHandler:e9,detectType:h.Vg,registerIconPacks:s.ef,getRegisteredDiagramsMetadata:rn},ra=ro}}]);
|