diff --git a/.gitignore b/.gitignore index d02fa27..b78b105 100644 --- a/.gitignore +++ b/.gitignore @@ -77,9 +77,6 @@ next-env.d.ts *storybook.log storybook-static -# Storybook build output (config files should be committed) -storybook-static - # Gitea runner runtime files .runner .runner.pid diff --git a/README.md b/README.md index 5cba928..284ef18 100644 --- a/README.md +++ b/README.md @@ -170,13 +170,10 @@ community-rule/ │ └── runner-config.yaml # Runner configuration ├── docs/ # Documentation │ ├── README.md # Documentation index -│ └── guides/ # Comprehensive guides -│ ├── testing.md # Testing strategy -│ ├── testing-framework.md # Testing framework details -│ ├── testing-quick-reference.md # Quick reference -│ ├── performance.md # Performance optimization -│ ├── visual-regression.md # Visual testing -│ └── content-creation.md # Content guidelines +│ ├── TESTING_GUIDE.md # Testing guide +│ ├── CUSTOM_HOOKS.md # Custom hooks documentation +│ └── guides/ # Guides +│ └── content-creation.md # Content creation guide ├── scripts/ # Utility scripts │ ├── start-runner.sh # Start Gitea runner │ ├── status-runner.sh # Check runner status @@ -207,16 +204,16 @@ community-rule/ ## 📖 Documentation - **[Documentation Index](docs/README.md)** - Complete documentation guide -- **[Testing Guides](docs/guides/)** - Testing strategy, framework, and quick reference -- **[Performance Guide](docs/guides/performance.md)** - Performance optimization guide -- **[Visual Regression Guide](docs/guides/visual-regression.md)** - Visual testing guide +- **[Testing Guide](docs/TESTING_GUIDE.md)** - Testing strategy, component tests, E2E tests, and accessibility +- **[Custom Hooks](docs/CUSTOM_HOOKS.md)** - Documentation for custom React hooks +- **[Content Creation Guide](docs/guides/content-creation.md)** - Guide for creating blog content - **[Storybook](http://localhost:6006)** - Component documentation (local) ## 🤝 Contributing 1. **Fork the repository** 2. **Create a feature branch**: `git checkout -b feature/amazing-feature` -3. **Write tests first** (see [Testing Guide](docs/guides/testing.md)) +3. **Write tests first** (see [Testing Guide](docs/TESTING_GUIDE.md)) 4. **Make your changes** 5. **Run tests**: `npm test && npm run e2e` 6. **Commit changes**: `git commit -m "feat: add amazing feature"` diff --git a/docs/.nojekyll b/docs/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/docs/README.md b/docs/README.md index 1184acb..3f2175d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,63 +1,44 @@ -# Documentation Index +# Documentation -This directory contains all project documentation organized by topic. +This directory contains project documentation organized by topic. -## 📚 Documentation Structure +## Documentation Structure + +### Core Documentation + +- **[TESTING_GUIDE.md](./TESTING_GUIDE.md)** - Complete testing guide covering component tests, E2E tests, accessibility, and testing philosophy +- **[CUSTOM_HOOKS.md](./CUSTOM_HOOKS.md)** - Documentation for all custom React hooks used in the project ### Guides (`guides/`) -Comprehensive guides for different aspects of the project: +- **[content-creation.md](./guides/content-creation.md)** - Guide for creating blog content -#### Testing +## Quick Navigation -- **[testing.md](./guides/testing.md)** - Complete testing strategy and philosophy -- **[testing-framework.md](./guides/testing-framework.md)** - Detailed testing framework documentation -- **[testing-quick-reference.md](./guides/testing-quick-reference.md)** - Quick reference for daily development -- **[visual-regression.md](./guides/visual-regression.md)** - Visual regression testing guide +### For Testing -#### Performance +Start with **[TESTING_GUIDE.md](./TESTING_GUIDE.md)** for: +- Testing philosophy and approach +- Component testing with `componentTestSuite` +- E2E testing with Playwright +- Accessibility testing +- How to add tests for new components -- **[performance.md](./guides/performance.md)** - Performance optimization and monitoring guide +### For Custom Hooks -#### Content +See **[CUSTOM_HOOKS.md](./CUSTOM_HOOKS.md)** for: +- Available custom hooks +- Usage examples +- API documentation -- **[content-creation.md](./guides/content-creation.md)** - Content creation guidelines +### For Content Creation -## 🎯 Quick Navigation +See **[content-creation.md](./guides/content-creation.md)** for: +- How to create blog articles +- Content guidelines +- Contribution workflow -### For New Team Members - -1. Start with **[testing.md](./guides/testing.md)** to understand the testing strategy -2. Use **[testing-quick-reference.md](./guides/testing-quick-reference.md)** for daily development -3. Reference **[performance.md](./guides/performance.md)** for performance optimization - -### For Daily Development - -- **[testing-quick-reference.md](./guides/testing-quick-reference.md)** - Essential commands and troubleshooting -- **[testing-framework.md](./guides/testing-framework.md)** - Detailed testing explanations - -### For Specific Topics - -- **Visual Testing**: [visual-regression.md](./guides/visual-regression.md) -- **Performance**: [performance.md](./guides/performance.md) -- **Content**: [content-creation.md](./guides/content-creation.md) - -## 📊 Current Project Status - -- **Unit Tests**: 94.88% coverage (exceeds 85% target) -- **Integration Tests**: 5 comprehensive test suites -- **E2E Tests**: 92 tests across 4 browsers -- **Visual Regression**: 23 tests per browser -- **Accessibility**: WCAG 2.1 AA compliance -- **Performance**: Lighthouse CI with budgets -- **Bundle Analysis**: Real-time monitoring with budgets -- **Web Vitals Tracking**: Core Web Vitals collection - -## 🔄 Documentation Updates - -This documentation is maintained by the CommunityRule development team and updated regularly. - -## 📚 Additional Resources +## Additional Resources - **Vitest Documentation**: https://vitest.dev/ - **Playwright Documentation**: https://playwright.dev/ diff --git a/docs/addon-visual-tests-assets/visual-test-illustration.mp4 b/docs/addon-visual-tests-assets/visual-test-illustration.mp4 deleted file mode 100644 index 2dd98b4..0000000 Binary files a/docs/addon-visual-tests-assets/visual-test-illustration.mp4 and /dev/null differ diff --git a/docs/assets/Avatar-C4Vb3oYl.js b/docs/assets/Avatar-C4Vb3oYl.js deleted file mode 100644 index e8ba0d9..0000000 --- a/docs/assets/Avatar-C4Vb3oYl.js +++ /dev/null @@ -1,15 +0,0 @@ -import { j as u } from "./jsx-runtime-C_nHp4yK.js"; -function o({ src: e, alt: s, size: a = "small", className: l = "", ...r }) { - const t = `rounded-[var(--radius-measures-radius-full)] object-cover ${{ small: "w-[16px] h-[16px]", medium: "w-[18px] h-[18px]", large: "w-[24px] h-[24px]", xlarge: "w-[32px] h-[32px]" }[a]} ${l}`; - return u.jsx("img", { src: e, alt: s, className: t, ...r }); -} -o.__docgenInfo = { - description: "", - methods: [], - displayName: "Avatar", - props: { - size: { defaultValue: { value: '"small"', computed: !1 }, required: !1 }, - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - }, -}; -export { o as A }; diff --git a/docs/assets/Avatar.stories-BXBDwngC.js b/docs/assets/Avatar.stories-BXBDwngC.js deleted file mode 100644 index 0c71e13..0000000 --- a/docs/assets/Avatar.stories-BXBDwngC.js +++ /dev/null @@ -1,358 +0,0 @@ -import { j as s } from "./jsx-runtime-C_nHp4yK.js"; -import { A as a } from "./Avatar-C4Vb3oYl.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const d = { - title: "Components/Avatar", - component: a, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A simple avatar component that displays user profile images with multiple size variants. Supports custom images and alt text for accessibility.", - }, - }, - }, - argTypes: { - src: { - control: { type: "text" }, - description: "The source URL of the avatar image", - }, - alt: { - control: { type: "text" }, - description: "Alt text for accessibility", - }, - size: { - control: { type: "select" }, - options: ["small", "medium", "large", "xlarge"], - description: "The size of the avatar", - }, - className: { - control: { type: "text" }, - description: "Additional CSS classes", - }, - }, - tags: ["autodocs"], - }, - r = { - args: { src: "/assets/Avatar_1.png", alt: "User Avatar", size: "medium" }, - }, - t = { - args: { src: "/assets/Avatar_1.png", alt: "User Avatar" }, - render: (e) => - s.jsx("div", { - className: "space-y-4", - children: s.jsxs("div", { - className: "space-x-4", - children: [ - s.jsx(a, { ...e, size: "small" }), - s.jsx(a, { ...e, size: "medium" }), - s.jsx(a, { ...e, size: "large" }), - s.jsx(a, { ...e, size: "xlarge" }), - ], - }), - }), - parameters: { - docs: { - description: { - story: "Different size variants available for the avatar component.", - }, - }, - }, - }, - i = { - args: { size: "large" }, - render: (e) => - s.jsx("div", { - className: "space-y-4", - children: s.jsxs("div", { - className: "space-x-4", - children: [ - s.jsx(a, { ...e, src: "assets/Avatar_1.png", alt: "User 1" }), - s.jsx(a, { ...e, src: "assets/Avatar_2.png", alt: "User 2" }), - s.jsx(a, { ...e, src: "assets/Avatar_3.png", alt: "User 3" }), - ], - }), - }), - parameters: { - docs: { - description: { - story: "Different avatar images available in the project.", - }, - }, - }, - }, - n = { - args: {}, - render: () => - s.jsxs("div", { - className: "space-y-6", - children: [ - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Small Size", - }), - s.jsxs("div", { - className: "space-x-4", - children: [ - s.jsx(a, { - size: "small", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "small", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "small", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Medium Size", - }), - s.jsxs("div", { - className: "space-x-4", - children: [ - s.jsx(a, { - size: "medium", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "medium", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "medium", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Large Size", - }), - s.jsxs("div", { - className: "space-x-4", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "XLarge Size", - }), - s.jsxs("div", { - className: "space-x-4", - children: [ - s.jsx(a, { - size: "xlarge", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "xlarge", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "xlarge", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Complete overview of all avatar sizes with different user images.", - }, - }, - }, - }; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - src: "/assets/Avatar_1.png", - alt: "User Avatar", - size: "medium" - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - src: "/assets/Avatar_1.png", - alt: "User Avatar" - }, - render: args =>
-
- - - - -
-
, - parameters: { - docs: { - description: { - story: "Different size variants available for the avatar component." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - args: { - size: "large" - }, - render: args =>
-
- - - -
-
, - parameters: { - docs: { - description: { - story: "Different avatar images available in the project." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

Small Size

-
- - - -
-
- -
-

Medium Size

-
- - - -
-
- -
-

Large Size

-
- - - -
-
- -
-

XLarge Size

-
- - - -
-
-
, - parameters: { - docs: { - description: { - story: "Complete overview of all avatar sizes with different user images." - } - } - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -const v = [ - "Default", - "Sizes", - "DifferentAvatars", - "AllSizesWithDifferentAvatars", -]; -export { - n as AllSizesWithDifferentAvatars, - r as Default, - i as DifferentAvatars, - t as Sizes, - v as __namedExportsOrder, - d as default, -}; diff --git a/docs/assets/AvatarContainer-Bt0G0TWZ.js b/docs/assets/AvatarContainer-Bt0G0TWZ.js deleted file mode 100644 index a7b5120..0000000 --- a/docs/assets/AvatarContainer-Bt0G0TWZ.js +++ /dev/null @@ -1,15 +0,0 @@ -import { j as r } from "./jsx-runtime-C_nHp4yK.js"; -function i({ children: e, size: a = "small", className: s = "", ...l }) { - const t = `items-center ${{ small: "flex -space-x-2", medium: "flex -space-x-[9px]", large: "flex -space-x-[10px]", xlarge: "flex -space-x-[13px]" }[a]} ${s}`; - return r.jsx("div", { className: t, ...l, children: e }); -} -i.__docgenInfo = { - description: "", - methods: [], - displayName: "AvatarContainer", - props: { - size: { defaultValue: { value: '"small"', computed: !1 }, required: !1 }, - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - }, -}; -export { i as A }; diff --git a/docs/assets/AvatarContainer.stories-BqIdIqTD.js b/docs/assets/AvatarContainer.stories-BqIdIqTD.js deleted file mode 100644 index b4c78e8..0000000 --- a/docs/assets/AvatarContainer.stories-BqIdIqTD.js +++ /dev/null @@ -1,664 +0,0 @@ -import { j as s } from "./jsx-runtime-C_nHp4yK.js"; -import { A as e } from "./AvatarContainer-Bt0G0TWZ.js"; -import { A as a } from "./Avatar-C4Vb3oYl.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const g = { - title: "Components/AvatarContainer", - component: e, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A container component that groups multiple avatars together with overlapping spacing. Useful for displaying multiple users or team members in a compact format.", - }, - }, - }, - argTypes: { - size: { - control: { type: "select" }, - options: ["small", "medium", "large", "xlarge"], - description: "The size of the avatar container and its children", - }, - className: { - control: { type: "text" }, - description: "Additional CSS classes", - }, - }, - tags: ["autodocs"], - }, - t = { - args: { size: "medium" }, - render: (r) => - s.jsxs(e, { - ...r, - children: [ - s.jsx(a, { size: r.size, src: "assets/Avatar_1.png", alt: "User 1" }), - s.jsx(a, { size: r.size, src: "assets/Avatar_2.png", alt: "User 2" }), - s.jsx(a, { size: r.size, src: "assets/Avatar_3.png", alt: "User 3" }), - ], - }), - }, - n = { - args: {}, - render: () => - s.jsxs("div", { - className: "space-y-6", - children: [ - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Small Size", - }), - s.jsxs(e, { - size: "small", - children: [ - s.jsx(a, { - size: "small", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "small", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "small", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Medium Size", - }), - s.jsxs(e, { - size: "medium", - children: [ - s.jsx(a, { - size: "medium", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "medium", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "medium", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Large Size", - }), - s.jsxs(e, { - size: "large", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "XLarge Size", - }), - s.jsxs(e, { - size: "xlarge", - children: [ - s.jsx(a, { - size: "xlarge", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "xlarge", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "xlarge", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Different size variants of the avatar container with overlapping spacing.", - }, - }, - }, - }, - i = { - args: {}, - render: () => - s.jsxs("div", { - className: "space-y-6", - children: [ - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "2 Users", - }), - s.jsxs(e, { - size: "large", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "3 Users", - }), - s.jsxs(e, { - size: "large", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "4 Users", - }), - s.jsxs(e, { - size: "large", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 4", - }), - ], - }), - ], - }), - s.jsxs("div", { - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "5 Users", - }), - s.jsxs(e, { - size: "large", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 4", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 5", - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Avatar containers with different numbers of users to show the overlapping effect.", - }, - }, - }, - }, - l = { - args: {}, - render: () => - s.jsx("div", { - className: "min-h-screen bg-[var(--color-surface-default-primary)] p-8", - children: s.jsxs("div", { - className: "max-w-4xl mx-auto", - children: [ - s.jsx("h2", { - className: "text-white font-semibold mb-6", - children: "Avatar Container in Context", - }), - s.jsxs("div", { - className: "space-y-8", - children: [ - s.jsxs("div", { - className: - "bg-[var(--color-surface-default-secondary)] p-6 rounded-lg", - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-4", - children: "Team Members", - }), - s.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - s.jsxs(e, { - size: "medium", - children: [ - s.jsx(a, { - size: "medium", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "medium", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "medium", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - ], - }), - s.jsx("span", { - className: "text-white", - children: "3 team members", - }), - ], - }), - ], - }), - s.jsxs("div", { - className: - "bg-[var(--color-surface-default-secondary)] p-6 rounded-lg", - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-4", - children: "Project Contributors", - }), - s.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - s.jsxs(e, { - size: "large", - children: [ - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_3.png", - alt: "User 3", - }), - s.jsx(a, { - size: "large", - src: "assets/Avatar_1.png", - alt: "User 4", - }), - ], - }), - s.jsx("span", { - className: "text-white", - children: "4 contributors", - }), - ], - }), - ], - }), - s.jsxs("div", { - className: - "bg-[var(--color-surface-default-secondary)] p-6 rounded-lg", - children: [ - s.jsx("h3", { - className: "text-white font-semibold mb-4", - children: "Small Team", - }), - s.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - s.jsxs(e, { - size: "small", - children: [ - s.jsx(a, { - size: "small", - src: "assets/Avatar_1.png", - alt: "User 1", - }), - s.jsx(a, { - size: "small", - src: "assets/Avatar_2.png", - alt: "User 2", - }), - ], - }), - s.jsx("span", { - className: "text-white", - children: "2 members", - }), - ], - }), - ], - }), - ], - }), - ], - }), - }), - parameters: { - docs: { - description: { - story: - "Avatar containers used in realistic contexts to show how they integrate with other UI elements.", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - size: "medium" - }, - render: args => - - - - -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

Small Size

- - - - - -
- -
-

Medium Size

- - - - - -
- -
-

Large Size

- - - - - -
- -
-

XLarge Size

- - - - - -
-
, - parameters: { - docs: { - description: { - story: "Different size variants of the avatar container with overlapping spacing." - } - } - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

2 Users

- - - - -
- -
-

3 Users

- - - - - -
- -
-

4 Users

- - - - - - -
- -
-

5 Users

- - - - - - - -
-
, - parameters: { - docs: { - description: { - story: "Avatar containers with different numbers of users to show the overlapping effect." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -l.parameters = { - ...l.parameters, - docs: { - ...l.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

- Avatar Container in Context -

- -
-
-

Team Members

-
- - - - - - 3 team members -
-
- -
-

- Project Contributors -

-
- - - - - - - 4 contributors -
-
- -
-

Small Team

-
- - - - - 2 members -
-
-
-
-
, - parameters: { - docs: { - description: { - story: "Avatar containers used in realistic contexts to show how they integrate with other UI elements." - } - } - } -}`, - ...l.parameters?.docs?.source, - }, - }, -}; -const p = ["Default", "Sizes", "DifferentGroupSizes", "InContext"]; -export { - t as Default, - i as DifferentGroupSizes, - l as InContext, - n as Sizes, - p as __namedExportsOrder, - g as default, -}; diff --git a/docs/assets/Avatar_1.png b/docs/assets/Avatar_1.png deleted file mode 100644 index 30ab710..0000000 Binary files a/docs/assets/Avatar_1.png and /dev/null differ diff --git a/docs/assets/Avatar_2.png b/docs/assets/Avatar_2.png deleted file mode 100644 index 2127a01..0000000 Binary files a/docs/assets/Avatar_2.png and /dev/null differ diff --git a/docs/assets/Avatar_3.png b/docs/assets/Avatar_3.png deleted file mode 100644 index bcb56a6..0000000 Binary files a/docs/assets/Avatar_3.png and /dev/null differ diff --git a/docs/assets/Bluesky_Logo.svg b/docs/assets/Bluesky_Logo.svg deleted file mode 100644 index f8c1af2..0000000 --- a/docs/assets/Bluesky_Logo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/docs/assets/Button-Z4hbXct5.js b/docs/assets/Button-Z4hbXct5.js deleted file mode 100644 index aa8db67..0000000 --- a/docs/assets/Button-Z4hbXct5.js +++ /dev/null @@ -1,97 +0,0 @@ -import { j as u } from "./jsx-runtime-C_nHp4yK.js"; -function g({ - children: o, - variant: e = "default", - size: a = "xsmall", - className: v = "", - disabled: r = !1, - type: p = "button", - onClick: t, - href: l, - target: s, - rel: c, - ariaLabel: n, - ...f -}) { - const b = { - xsmall: - "px-[var(--spacing-scale-006)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)]", - small: - "px-[var(--spacing-measures-spacing-008)] py-[var(--spacing-measures-spacing-008)] gap-[var(--spacing-scale-004)]", - medium: "p-[var(--spacing-scale-010)] gap-[var(--spacing-scale-004)]", - large: - "px-[var(--spacing-scale-012)] py-[var(--spacing-scale-010)] gap-[var(--spacing-scale-004)]", - xlarge: - "px-[var(--spacing-scale-020)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-008)]", - }, - m = { - xsmall: - "font-['Inter'] text-[10px] leading-[12px] font-medium tracking-[0%]", - small: - "font-['Inter'] text-[12px] leading-[14px] font-medium tracking-[0%]", - medium: - "font-['Inter'] text-[14px] leading-[16px] font-medium tracking-[0%]", - large: - "font-['Inter'] text-[16px] leading-[20px] font-medium tracking-[0%]", - xlarge: - "font-['Inter'] text-[24px] leading-[28px] font-normal tracking-[0%]", - }, - y = { - default: - "bg-[var(--color-surface-inverse-primary)] text-[var(--color-content-inverse-primary)] hover:bg-[var(--color-surface-inverse-primary)] hover:text-[var(--color-content-inverse-brand-primary)] hover:outline-[var(--border-color-default-brandprimary)] hover:outline-inset hover:scale-[1.02] hover:shadow-lg focus:shadow-[0_0_10px_1px_var(--color-surface-default-brand-primary)] focus:outline-none focus:ring-1 focus:ring-[var(--color-content-default-brand-primary)] focus:ring-offset-1 focus:scale-[1.02] active:bg-[var(--color-surface-inverse-brand-primary)] active:text-[var(--color-content-inverse-primary)] active:outline-[var(--border-color-default-brandprimary)] active:outline-offset-1 active:shadow-none active:scale-[0.98] disabled:bg-[var(--color-surface-default-secondary)] disabled:text-[var(--color-content-inverse-tertiary)] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 disabled:active:scale-100 disabled:hover:shadow-none disabled:hover:outline-none", - secondary: - "bg-transparent text-[var(--color-content-default-brand-primary)] hover:text-[var(--color-content-default-primary)] hover:scale-[1.02] hover:bg-transparent hover:outline-none focus:outline-1 focus:outline-inset focus:outline-[var(--border-color-default-tertiary)] focus:shadow-[0_0_10px_1px_var(--color-surface-default-brand-primary)] focus:blur-[0px] active:bg-[var(--color-surface-default-brand-primary)] active:text-[var(--color-content-inverse-primary)] active:shadow-none active:scale-[0.98] disabled:bg-[var(--color-surface-default-secondary)] disabled:text-[var(--color-content-inverse-tertiary)] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 disabled:active:scale-100", - primary: - "bg-[var(--color-surface-default-primary)] text-[var(--color-content-default-primary)] hover:bg-[var(--color-surface-default-primary)] hover:text-[var(--color-content-default-brand-primary)] hover:scale-[1.02] focus:bg-[var(--color-surface-default-primary)] focus:text-[var(--color-content-default-brand-primary)] focus:outline-none focus:shadow-[0_0_10px_1px_var(--color-surface-default-brand-primary)] focus:blur-[0px] focus:scale-[1.02] active:bg-[var(--color-surface-default-brand-primary)] active:text-[var(--color-content-inverse-primary)] active:shadow-none active:scale-[0.98] disabled:bg-[var(--color-surface-inverse-secondary)] disabled:text-[var(--color-content-default-primary)] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 disabled:active:scale-100", - outlined: - "bg-transparent text-[var(--color-content-default-primary)] border-[1.5px] border-[var(--color-content-default-primary)] hover:bg-transparent hover:text-[var(--color-content-default-brand-primary)] hover:border-[1.5px] hover:border-[var(--color-content-default-brand-primary)] hover:scale-[1.02] focus:bg-transparent focus:text-[var(--color-content-default-primary)] focus:outline-none focus:border-[1.5px] focus:border-[var(--color-content-default-primary)] focus:shadow-[0_0_10px_1px_var(--color-surface-default-brand-primary)] focus:blur-[0px] focus:scale-[1.02] active:bg-[var(--color-surface-default-brand-primary)] active:text-[var(--color-content-inverse-primary)] active:border-transparent active:shadow-none active:scale-[0.98] disabled:bg-[var(--color-surface-default-secondary)] disabled:text-[var(--color-content-inverse-tertiary)] disabled:border-[1.5px] disabled:border-[var(--color-surface-default-secondary)] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 disabled:active:scale-100", - dark: "bg-transparent text-[var(--color-content-inverse-primary)] border border-[var(--border-color-default-primary)] hover:bg-transparent hover:text-[var(--color-content-inverse-brand-primary)] hover:border hover:border-[var(--border-color-inverse-brandprimary)] hover:scale-[1.02] focus:bg-transparent focus:text-[var(--color-content-inverse-primary)] focus:outline-none focus:border focus:border-[var(--border-color-default-primary)] focus:shadow-[0_0_10px_1px_var(--color-surface-default-brand-primary)] focus:blur-[0px] focus:scale-[1.02] active:bg-[var(--color-surface-default-brand-primary)] active:text-[var(--color-content-inverse-primary)] active:border-transparent active:shadow-none active:scale-[0.98] disabled:bg-[var(--color-surface-inverse-secondary)] disabled:text-[var(--color-content-default-primary)] disabled:border-transparent disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 disabled:active:scale-100", - inverse: - "bg-transparent text-[var(--color-content-inverse-primary)] hover:text-[var(--color-content-inverse-brand-primary)] hover:scale-[1.02] hover:bg-transparent hover:outline-none focus:outline-1 focus:outline-inset focus:outline-[var(--border-color-default-tertiary)] focus:shadow-[0_0_10px_1px_var(--color-surface-default-tertiary)] focus:blur-[0px] active:bg-[var(--color-surface-default-brand-primary)] active:text-[var(--color-content-inverse-primary)] active:shadow-none active:scale-[0.98] disabled:bg-[var(--color-surface-inverse-secondary)] disabled:text-[var(--color-content-default-primary)] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 disabled:active:scale-100", - }, - x = - e === "primary" || e === "outlined" || e === "dark" || e === "inverse" - ? "" - : { - xsmall: "hover:outline-1", - small: "hover:outline-1", - medium: "hover:outline-1", - large: "hover:outline-2", - xlarge: "hover:outline-[2.5px]", - }[a], - i = `${`inline-flex items-center justify-start box-border ${b[a]} rounded-[var(--radius-measures-radius-full)] ${m[a]} transition-all duration-500 ease-in-out cursor-pointer ${y[e]} ${x}`} ${v}`, - d = { - ...(n && { "aria-label": n }), - ...(r && { "aria-disabled": "true" }), - ...(s && { target: s }), - ...(c && { rel: c }), - tabIndex: r ? -1 : 0, - ...f, - }; - return l && !r - ? u.jsx("a", { href: l, className: i, onClick: t, ...d, children: o }) - : u.jsx("button", { - type: p, - className: i, - disabled: r, - onClick: t, - ...d, - children: o, - }); -} -g.__docgenInfo = { - description: "", - methods: [], - displayName: "Button", - props: { - variant: { - defaultValue: { value: '"default"', computed: !1 }, - required: !1, - }, - size: { defaultValue: { value: '"xsmall"', computed: !1 }, required: !1 }, - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - disabled: { defaultValue: { value: "false", computed: !1 }, required: !1 }, - type: { defaultValue: { value: '"button"', computed: !1 }, required: !1 }, - }, -}; -export { g as B }; diff --git a/docs/assets/Button.stories-mcJmJIRw.js b/docs/assets/Button.stories-mcJmJIRw.js deleted file mode 100644 index 7ff70fb..0000000 --- a/docs/assets/Button.stories-mcJmJIRw.js +++ /dev/null @@ -1,687 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { B as n } from "./Button-Z4hbXct5.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const u = { - title: "Components/Button", - component: n, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A versatile button component with multiple variants, sizes, and states. Can render as a button or link with full accessibility support. Includes focus states with keyboard navigation - use Tab key to test focus indicators.", - }, - }, - }, - argTypes: { - variant: { - control: { type: "select" }, - options: [ - "default", - "secondary", - "primary", - "outlined", - "dark", - "inverse", - ], - description: "The visual style variant of the button", - }, - size: { - control: { type: "select" }, - options: ["xsmall", "small", "medium", "large", "xlarge"], - description: "The size of the button", - }, - disabled: { - control: { type: "boolean" }, - description: "Whether the button is disabled", - }, - href: { - control: { type: "text" }, - description: "If provided, renders as a link instead of a button", - }, - onClick: { action: "clicked" }, - }, - tags: ["autodocs"], - }, - t = { args: { children: "Button" } }, - s = { - args: { children: "Button", size: "large" }, - render: (a) => - e.jsx("div", { - className: "space-y-4", - children: e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { ...a, variant: "default", children: "Default" }), - e.jsx(n, { ...a, variant: "secondary", children: "Secondary" }), - e.jsx(n, { ...a, variant: "primary", children: "Primary" }), - e.jsx(n, { ...a, variant: "outlined", children: "Outlined" }), - e.jsx(n, { ...a, variant: "dark", children: "Dark" }), - e.jsx(n, { ...a, variant: "inverse", children: "Inverse" }), - ], - }), - }), - parameters: { - docs: { - description: { - story: "Different visual variants of the button component.", - }, - }, - }, - }, - i = { - args: { children: "Button", variant: "default" }, - render: (a) => - e.jsx("div", { - className: "space-y-4", - children: e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { ...a, size: "xsmall", children: "XSmall" }), - e.jsx(n, { ...a, size: "small", children: "Small" }), - e.jsx(n, { ...a, size: "medium", children: "Medium" }), - e.jsx(n, { ...a, size: "large", children: "Large" }), - e.jsx(n, { ...a, size: "xlarge", children: "XLarge" }), - ], - }), - }), - parameters: { - docs: { - description: { - story: "Different sizes available for the button component.", - }, - }, - }, - }, - r = { - args: { children: "Button", size: "large", variant: "default" }, - render: (a) => - e.jsx("div", { - className: "space-y-4", - children: e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { ...a, children: "Normal" }), - e.jsx(n, { ...a, disabled: !0, children: "Disabled" }), - ], - }), - }), - parameters: { - docs: { - description: { story: "Different states of the button component." }, - }, - }, - }, - l = { - args: {}, - render: () => - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Default Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { size: "xsmall", children: "XSmall" }), - e.jsx(n, { size: "small", children: "Small" }), - e.jsx(n, { size: "medium", children: "Medium" }), - e.jsx(n, { size: "large", children: "Large" }), - e.jsx(n, { size: "xlarge", children: "XLarge" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Secondary Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { - variant: "secondary", - size: "xsmall", - children: "XSmall", - }), - e.jsx(n, { - variant: "secondary", - size: "small", - children: "Small", - }), - e.jsx(n, { - variant: "secondary", - size: "medium", - children: "Medium", - }), - e.jsx(n, { - variant: "secondary", - size: "large", - children: "Large", - }), - e.jsx(n, { - variant: "secondary", - size: "xlarge", - children: "XLarge", - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Primary Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { - variant: "primary", - size: "xsmall", - children: "XSmall", - }), - e.jsx(n, { - variant: "primary", - size: "small", - children: "Small", - }), - e.jsx(n, { - variant: "primary", - size: "medium", - children: "Medium", - }), - e.jsx(n, { - variant: "primary", - size: "large", - children: "Large", - }), - e.jsx(n, { - variant: "primary", - size: "xlarge", - children: "XLarge", - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Outlined Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { - variant: "outlined", - size: "xsmall", - children: "XSmall", - }), - e.jsx(n, { - variant: "outlined", - size: "small", - children: "Small", - }), - e.jsx(n, { - variant: "outlined", - size: "medium", - children: "Medium", - }), - e.jsx(n, { - variant: "outlined", - size: "large", - children: "Large", - }), - e.jsx(n, { - variant: "outlined", - size: "xlarge", - children: "XLarge", - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Dark Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { - variant: "dark", - size: "xsmall", - children: "XSmall", - }), - e.jsx(n, { - variant: "dark", - size: "small", - children: "Small", - }), - e.jsx(n, { - variant: "dark", - size: "medium", - children: "Medium", - }), - e.jsx(n, { - variant: "dark", - size: "large", - children: "Large", - }), - e.jsx(n, { - variant: "dark", - size: "xlarge", - children: "XLarge", - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Inverse Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { - variant: "inverse", - size: "xsmall", - children: "XSmall", - }), - e.jsx(n, { - variant: "inverse", - size: "small", - children: "Small", - }), - e.jsx(n, { - variant: "inverse", - size: "medium", - children: "Medium", - }), - e.jsx(n, { - variant: "inverse", - size: "large", - children: "Large", - }), - e.jsx(n, { - variant: "inverse", - size: "xlarge", - children: "XLarge", - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Disabled States", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(n, { - size: "large", - disabled: !0, - children: "Default Disabled", - }), - e.jsx(n, { - variant: "secondary", - size: "large", - disabled: !0, - children: "Secondary Disabled", - }), - e.jsx(n, { - variant: "primary", - size: "large", - disabled: !0, - children: "Primary Disabled", - }), - e.jsx(n, { - variant: "outlined", - size: "large", - disabled: !0, - children: "Outlined Disabled", - }), - e.jsx(n, { - variant: "dark", - size: "large", - disabled: !0, - children: "Dark Disabled", - }), - e.jsx(n, { - variant: "inverse", - size: "large", - disabled: !0, - children: "Inverse Disabled", - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: "Complete overview of all button variants, sizes, and states.", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Button" - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -s.parameters = { - ...s.parameters, - docs: { - ...s.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Button", - size: "large" - }, - render: args =>
-
- - - - - - -
-
, - parameters: { - docs: { - description: { - story: "Different visual variants of the button component." - } - } - } -}`, - ...s.parameters?.docs?.source, - }, - }, -}; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Button", - variant: "default" - }, - render: args =>
-
- - - - - -
-
, - parameters: { - docs: { - description: { - story: "Different sizes available for the button component." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Button", - size: "large", - variant: "default" - }, - render: args =>
-
- - -
-
, - parameters: { - docs: { - description: { - story: "Different states of the button component." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -l.parameters = { - ...l.parameters, - docs: { - ...l.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

Default Variant

-
- - - - - -
-
- -
-

Secondary Variant

-
- - - - - -
-
- -
-

Primary Variant

-
- - - - - -
-
- -
-

Outlined Variant

-
- - - - - -
-
- -
-

Dark Variant

-
- - - - - -
-
- -
-

Inverse Variant

-
- - - - - -
-
- -
-

Disabled States

-
- - - - - - -
-
-
, - parameters: { - docs: { - description: { - story: "Complete overview of all button variants, sizes, and states." - } - } - } -}`, - ...l.parameters?.docs?.source, - }, - }, -}; -const v = ["Default", "Variants", "Sizes", "States", "AllVariants"]; -export { - l as AllVariants, - t as Default, - i as Sizes, - r as States, - s as Variants, - v as __namedExportsOrder, - u as default, -}; diff --git a/docs/assets/Color-AVL7NMMY-Doxq8aw5.js b/docs/assets/Color-AVL7NMMY-Doxq8aw5.js deleted file mode 100644 index eafc0d8..0000000 --- a/docs/assets/Color-AVL7NMMY-Doxq8aw5.js +++ /dev/null @@ -1,1690 +0,0 @@ -import { - d as ce, - x as E, - Y as A, - g as he, - i as fe, - Z as de, - M as ge, - _ as be, - a as I, -} from "./DocsRenderer-PQXLIZUC-CZs-lgH4.js"; -import { r as p, R as v } from "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./react-18-TXN0K6I-.js"; -import "./jsx-runtime-C_nHp4yK.js"; -var ve = I({ - "../../node_modules/color-name/index.js"(r, l) { - l.exports = { - aliceblue: [240, 248, 255], - antiquewhite: [250, 235, 215], - aqua: [0, 255, 255], - aquamarine: [127, 255, 212], - azure: [240, 255, 255], - beige: [245, 245, 220], - bisque: [255, 228, 196], - black: [0, 0, 0], - blanchedalmond: [255, 235, 205], - blue: [0, 0, 255], - blueviolet: [138, 43, 226], - brown: [165, 42, 42], - burlywood: [222, 184, 135], - cadetblue: [95, 158, 160], - chartreuse: [127, 255, 0], - chocolate: [210, 105, 30], - coral: [255, 127, 80], - cornflowerblue: [100, 149, 237], - cornsilk: [255, 248, 220], - crimson: [220, 20, 60], - cyan: [0, 255, 255], - darkblue: [0, 0, 139], - darkcyan: [0, 139, 139], - darkgoldenrod: [184, 134, 11], - darkgray: [169, 169, 169], - darkgreen: [0, 100, 0], - darkgrey: [169, 169, 169], - darkkhaki: [189, 183, 107], - darkmagenta: [139, 0, 139], - darkolivegreen: [85, 107, 47], - darkorange: [255, 140, 0], - darkorchid: [153, 50, 204], - darkred: [139, 0, 0], - darksalmon: [233, 150, 122], - darkseagreen: [143, 188, 143], - darkslateblue: [72, 61, 139], - darkslategray: [47, 79, 79], - darkslategrey: [47, 79, 79], - darkturquoise: [0, 206, 209], - darkviolet: [148, 0, 211], - deeppink: [255, 20, 147], - deepskyblue: [0, 191, 255], - dimgray: [105, 105, 105], - dimgrey: [105, 105, 105], - dodgerblue: [30, 144, 255], - firebrick: [178, 34, 34], - floralwhite: [255, 250, 240], - forestgreen: [34, 139, 34], - fuchsia: [255, 0, 255], - gainsboro: [220, 220, 220], - ghostwhite: [248, 248, 255], - gold: [255, 215, 0], - goldenrod: [218, 165, 32], - gray: [128, 128, 128], - green: [0, 128, 0], - greenyellow: [173, 255, 47], - grey: [128, 128, 128], - honeydew: [240, 255, 240], - hotpink: [255, 105, 180], - indianred: [205, 92, 92], - indigo: [75, 0, 130], - ivory: [255, 255, 240], - khaki: [240, 230, 140], - lavender: [230, 230, 250], - lavenderblush: [255, 240, 245], - lawngreen: [124, 252, 0], - lemonchiffon: [255, 250, 205], - lightblue: [173, 216, 230], - lightcoral: [240, 128, 128], - lightcyan: [224, 255, 255], - lightgoldenrodyellow: [250, 250, 210], - lightgray: [211, 211, 211], - lightgreen: [144, 238, 144], - lightgrey: [211, 211, 211], - lightpink: [255, 182, 193], - lightsalmon: [255, 160, 122], - lightseagreen: [32, 178, 170], - lightskyblue: [135, 206, 250], - lightslategray: [119, 136, 153], - lightslategrey: [119, 136, 153], - lightsteelblue: [176, 196, 222], - lightyellow: [255, 255, 224], - lime: [0, 255, 0], - limegreen: [50, 205, 50], - linen: [250, 240, 230], - magenta: [255, 0, 255], - maroon: [128, 0, 0], - mediumaquamarine: [102, 205, 170], - mediumblue: [0, 0, 205], - mediumorchid: [186, 85, 211], - mediumpurple: [147, 112, 219], - mediumseagreen: [60, 179, 113], - mediumslateblue: [123, 104, 238], - mediumspringgreen: [0, 250, 154], - mediumturquoise: [72, 209, 204], - mediumvioletred: [199, 21, 133], - midnightblue: [25, 25, 112], - mintcream: [245, 255, 250], - mistyrose: [255, 228, 225], - moccasin: [255, 228, 181], - navajowhite: [255, 222, 173], - navy: [0, 0, 128], - oldlace: [253, 245, 230], - olive: [128, 128, 0], - olivedrab: [107, 142, 35], - orange: [255, 165, 0], - orangered: [255, 69, 0], - orchid: [218, 112, 214], - palegoldenrod: [238, 232, 170], - palegreen: [152, 251, 152], - paleturquoise: [175, 238, 238], - palevioletred: [219, 112, 147], - papayawhip: [255, 239, 213], - peachpuff: [255, 218, 185], - peru: [205, 133, 63], - pink: [255, 192, 203], - plum: [221, 160, 221], - powderblue: [176, 224, 230], - purple: [128, 0, 128], - rebeccapurple: [102, 51, 153], - red: [255, 0, 0], - rosybrown: [188, 143, 143], - royalblue: [65, 105, 225], - saddlebrown: [139, 69, 19], - salmon: [250, 128, 114], - sandybrown: [244, 164, 96], - seagreen: [46, 139, 87], - seashell: [255, 245, 238], - sienna: [160, 82, 45], - silver: [192, 192, 192], - skyblue: [135, 206, 235], - slateblue: [106, 90, 205], - slategray: [112, 128, 144], - slategrey: [112, 128, 144], - snow: [255, 250, 250], - springgreen: [0, 255, 127], - steelblue: [70, 130, 180], - tan: [210, 180, 140], - teal: [0, 128, 128], - thistle: [216, 191, 216], - tomato: [255, 99, 71], - turquoise: [64, 224, 208], - violet: [238, 130, 238], - wheat: [245, 222, 179], - white: [255, 255, 255], - whitesmoke: [245, 245, 245], - yellow: [255, 255, 0], - yellowgreen: [154, 205, 50], - }; - }, - }), - U = I({ - "../../node_modules/color-convert/conversions.js"(r, l) { - var s = ve(), - h = {}; - for (let e of Object.keys(s)) h[s[e]] = e; - var u = { - rgb: { channels: 3, labels: "rgb" }, - hsl: { channels: 3, labels: "hsl" }, - hsv: { channels: 3, labels: "hsv" }, - hwb: { channels: 3, labels: "hwb" }, - cmyk: { channels: 4, labels: "cmyk" }, - xyz: { channels: 3, labels: "xyz" }, - lab: { channels: 3, labels: "lab" }, - lch: { channels: 3, labels: "lch" }, - hex: { channels: 1, labels: ["hex"] }, - keyword: { channels: 1, labels: ["keyword"] }, - ansi16: { channels: 1, labels: ["ansi16"] }, - ansi256: { channels: 1, labels: ["ansi256"] }, - hcg: { channels: 3, labels: ["h", "c", "g"] }, - apple: { channels: 3, labels: ["r16", "g16", "b16"] }, - gray: { channels: 1, labels: ["gray"] }, - }; - l.exports = u; - for (let e of Object.keys(u)) { - if (!("channels" in u[e])) - throw new Error("missing channels property: " + e); - if (!("labels" in u[e])) - throw new Error("missing channel labels property: " + e); - if (u[e].labels.length !== u[e].channels) - throw new Error("channel and label counts mismatch: " + e); - let { channels: n, labels: t } = u[e]; - (delete u[e].channels, - delete u[e].labels, - Object.defineProperty(u[e], "channels", { value: n }), - Object.defineProperty(u[e], "labels", { value: t })); - } - ((u.rgb.hsl = function (e) { - let n = e[0] / 255, - t = e[1] / 255, - a = e[2] / 255, - o = Math.min(n, t, a), - i = Math.max(n, t, a), - c = i - o, - f, - g; - (i === o - ? (f = 0) - : n === i - ? (f = (t - a) / c) - : t === i - ? (f = 2 + (a - n) / c) - : a === i && (f = 4 + (n - t) / c), - (f = Math.min(f * 60, 360)), - f < 0 && (f += 360)); - let b = (o + i) / 2; - return ( - i === o - ? (g = 0) - : b <= 0.5 - ? (g = c / (i + o)) - : (g = c / (2 - i - o)), - [f, g * 100, b * 100] - ); - }), - (u.rgb.hsv = function (e) { - let n, - t, - a, - o, - i, - c = e[0] / 255, - f = e[1] / 255, - g = e[2] / 255, - b = Math.max(c, f, g), - y = b - Math.min(c, f, g), - m = function (k) { - return (b - k) / 6 / y + 1 / 2; - }; - return ( - y === 0 - ? ((o = 0), (i = 0)) - : ((i = y / b), - (n = m(c)), - (t = m(f)), - (a = m(g)), - c === b - ? (o = a - t) - : f === b - ? (o = 1 / 3 + n - a) - : g === b && (o = 2 / 3 + t - n), - o < 0 ? (o += 1) : o > 1 && (o -= 1)), - [o * 360, i * 100, b * 100] - ); - }), - (u.rgb.hwb = function (e) { - let n = e[0], - t = e[1], - a = e[2], - o = u.rgb.hsl(e)[0], - i = (1 / 255) * Math.min(n, Math.min(t, a)); - return ( - (a = 1 - (1 / 255) * Math.max(n, Math.max(t, a))), - [o, i * 100, a * 100] - ); - }), - (u.rgb.cmyk = function (e) { - let n = e[0] / 255, - t = e[1] / 255, - a = e[2] / 255, - o = Math.min(1 - n, 1 - t, 1 - a), - i = (1 - n - o) / (1 - o) || 0, - c = (1 - t - o) / (1 - o) || 0, - f = (1 - a - o) / (1 - o) || 0; - return [i * 100, c * 100, f * 100, o * 100]; - })); - function d(e, n) { - return (e[0] - n[0]) ** 2 + (e[1] - n[1]) ** 2 + (e[2] - n[2]) ** 2; - } - ((u.rgb.keyword = function (e) { - let n = h[e]; - if (n) return n; - let t = 1 / 0, - a; - for (let o of Object.keys(s)) { - let i = s[o], - c = d(e, i); - c < t && ((t = c), (a = o)); - } - return a; - }), - (u.keyword.rgb = function (e) { - return s[e]; - }), - (u.rgb.xyz = function (e) { - let n = e[0] / 255, - t = e[1] / 255, - a = e[2] / 255; - ((n = n > 0.04045 ? ((n + 0.055) / 1.055) ** 2.4 : n / 12.92), - (t = t > 0.04045 ? ((t + 0.055) / 1.055) ** 2.4 : t / 12.92), - (a = a > 0.04045 ? ((a + 0.055) / 1.055) ** 2.4 : a / 12.92)); - let o = n * 0.4124 + t * 0.3576 + a * 0.1805, - i = n * 0.2126 + t * 0.7152 + a * 0.0722, - c = n * 0.0193 + t * 0.1192 + a * 0.9505; - return [o * 100, i * 100, c * 100]; - }), - (u.rgb.lab = function (e) { - let n = u.rgb.xyz(e), - t = n[0], - a = n[1], - o = n[2]; - ((t /= 95.047), - (a /= 100), - (o /= 108.883), - (t = t > 0.008856 ? t ** (1 / 3) : 7.787 * t + 16 / 116), - (a = a > 0.008856 ? a ** (1 / 3) : 7.787 * a + 16 / 116), - (o = o > 0.008856 ? o ** (1 / 3) : 7.787 * o + 16 / 116)); - let i = 116 * a - 16, - c = 500 * (t - a), - f = 200 * (a - o); - return [i, c, f]; - }), - (u.hsl.rgb = function (e) { - let n = e[0] / 360, - t = e[1] / 100, - a = e[2] / 100, - o, - i, - c; - if (t === 0) return ((c = a * 255), [c, c, c]); - a < 0.5 ? (o = a * (1 + t)) : (o = a + t - a * t); - let f = 2 * a - o, - g = [0, 0, 0]; - for (let b = 0; b < 3; b++) - ((i = n + (1 / 3) * -(b - 1)), - i < 0 && i++, - i > 1 && i--, - 6 * i < 1 - ? (c = f + (o - f) * 6 * i) - : 2 * i < 1 - ? (c = o) - : 3 * i < 2 - ? (c = f + (o - f) * (2 / 3 - i) * 6) - : (c = f), - (g[b] = c * 255)); - return g; - }), - (u.hsl.hsv = function (e) { - let n = e[0], - t = e[1] / 100, - a = e[2] / 100, - o = t, - i = Math.max(a, 0.01); - ((a *= 2), (t *= a <= 1 ? a : 2 - a), (o *= i <= 1 ? i : 2 - i)); - let c = (a + t) / 2, - f = a === 0 ? (2 * o) / (i + o) : (2 * t) / (a + t); - return [n, f * 100, c * 100]; - }), - (u.hsv.rgb = function (e) { - let n = e[0] / 60, - t = e[1] / 100, - a = e[2] / 100, - o = Math.floor(n) % 6, - i = n - Math.floor(n), - c = 255 * a * (1 - t), - f = 255 * a * (1 - t * i), - g = 255 * a * (1 - t * (1 - i)); - switch (((a *= 255), o)) { - case 0: - return [a, g, c]; - case 1: - return [f, a, c]; - case 2: - return [c, a, g]; - case 3: - return [c, f, a]; - case 4: - return [g, c, a]; - case 5: - return [a, c, f]; - } - }), - (u.hsv.hsl = function (e) { - let n = e[0], - t = e[1] / 100, - a = e[2] / 100, - o = Math.max(a, 0.01), - i, - c; - c = (2 - t) * a; - let f = (2 - t) * o; - return ( - (i = t * o), - (i /= f <= 1 ? f : 2 - f), - (i = i || 0), - (c /= 2), - [n, i * 100, c * 100] - ); - }), - (u.hwb.rgb = function (e) { - let n = e[0] / 360, - t = e[1] / 100, - a = e[2] / 100, - o = t + a, - i; - o > 1 && ((t /= o), (a /= o)); - let c = Math.floor(6 * n), - f = 1 - a; - ((i = 6 * n - c), (c & 1) !== 0 && (i = 1 - i)); - let g = t + i * (f - t), - b, - y, - m; - switch (c) { - default: - case 6: - case 0: - ((b = f), (y = g), (m = t)); - break; - case 1: - ((b = g), (y = f), (m = t)); - break; - case 2: - ((b = t), (y = f), (m = g)); - break; - case 3: - ((b = t), (y = g), (m = f)); - break; - case 4: - ((b = g), (y = t), (m = f)); - break; - case 5: - ((b = f), (y = t), (m = g)); - break; - } - return [b * 255, y * 255, m * 255]; - }), - (u.cmyk.rgb = function (e) { - let n = e[0] / 100, - t = e[1] / 100, - a = e[2] / 100, - o = e[3] / 100, - i = 1 - Math.min(1, n * (1 - o) + o), - c = 1 - Math.min(1, t * (1 - o) + o), - f = 1 - Math.min(1, a * (1 - o) + o); - return [i * 255, c * 255, f * 255]; - }), - (u.xyz.rgb = function (e) { - let n = e[0] / 100, - t = e[1] / 100, - a = e[2] / 100, - o, - i, - c; - return ( - (o = n * 3.2406 + t * -1.5372 + a * -0.4986), - (i = n * -0.9689 + t * 1.8758 + a * 0.0415), - (c = n * 0.0557 + t * -0.204 + a * 1.057), - (o = o > 0.0031308 ? 1.055 * o ** (1 / 2.4) - 0.055 : o * 12.92), - (i = i > 0.0031308 ? 1.055 * i ** (1 / 2.4) - 0.055 : i * 12.92), - (c = c > 0.0031308 ? 1.055 * c ** (1 / 2.4) - 0.055 : c * 12.92), - (o = Math.min(Math.max(0, o), 1)), - (i = Math.min(Math.max(0, i), 1)), - (c = Math.min(Math.max(0, c), 1)), - [o * 255, i * 255, c * 255] - ); - }), - (u.xyz.lab = function (e) { - let n = e[0], - t = e[1], - a = e[2]; - ((n /= 95.047), - (t /= 100), - (a /= 108.883), - (n = n > 0.008856 ? n ** (1 / 3) : 7.787 * n + 16 / 116), - (t = t > 0.008856 ? t ** (1 / 3) : 7.787 * t + 16 / 116), - (a = a > 0.008856 ? a ** (1 / 3) : 7.787 * a + 16 / 116)); - let o = 116 * t - 16, - i = 500 * (n - t), - c = 200 * (t - a); - return [o, i, c]; - }), - (u.lab.xyz = function (e) { - let n = e[0], - t = e[1], - a = e[2], - o, - i, - c; - ((i = (n + 16) / 116), (o = t / 500 + i), (c = i - a / 200)); - let f = i ** 3, - g = o ** 3, - b = c ** 3; - return ( - (i = f > 0.008856 ? f : (i - 16 / 116) / 7.787), - (o = g > 0.008856 ? g : (o - 16 / 116) / 7.787), - (c = b > 0.008856 ? b : (c - 16 / 116) / 7.787), - (o *= 95.047), - (i *= 100), - (c *= 108.883), - [o, i, c] - ); - }), - (u.lab.lch = function (e) { - let n = e[0], - t = e[1], - a = e[2], - o; - ((o = (Math.atan2(a, t) * 360) / 2 / Math.PI), o < 0 && (o += 360)); - let i = Math.sqrt(t * t + a * a); - return [n, i, o]; - }), - (u.lch.lab = function (e) { - let n = e[0], - t = e[1], - a = (e[2] / 360) * 2 * Math.PI, - o = t * Math.cos(a), - i = t * Math.sin(a); - return [n, o, i]; - }), - (u.rgb.ansi16 = function (e, n = null) { - let [t, a, o] = e, - i = n === null ? u.rgb.hsv(e)[2] : n; - if (((i = Math.round(i / 50)), i === 0)) return 30; - let c = - 30 + - ((Math.round(o / 255) << 2) | - (Math.round(a / 255) << 1) | - Math.round(t / 255)); - return (i === 2 && (c += 60), c); - }), - (u.hsv.ansi16 = function (e) { - return u.rgb.ansi16(u.hsv.rgb(e), e[2]); - }), - (u.rgb.ansi256 = function (e) { - let n = e[0], - t = e[1], - a = e[2]; - return n === t && t === a - ? n < 8 - ? 16 - : n > 248 - ? 231 - : Math.round(((n - 8) / 247) * 24) + 232 - : 16 + - 36 * Math.round((n / 255) * 5) + - 6 * Math.round((t / 255) * 5) + - Math.round((a / 255) * 5); - }), - (u.ansi16.rgb = function (e) { - let n = e % 10; - if (n === 0 || n === 7) - return (e > 50 && (n += 3.5), (n = (n / 10.5) * 255), [n, n, n]); - let t = (~~(e > 50) + 1) * 0.5, - a = (n & 1) * t * 255, - o = ((n >> 1) & 1) * t * 255, - i = ((n >> 2) & 1) * t * 255; - return [a, o, i]; - }), - (u.ansi256.rgb = function (e) { - if (e >= 232) { - let i = (e - 232) * 10 + 8; - return [i, i, i]; - } - e -= 16; - let n, - t = (Math.floor(e / 36) / 5) * 255, - a = (Math.floor((n = e % 36) / 6) / 5) * 255, - o = ((n % 6) / 5) * 255; - return [t, a, o]; - }), - (u.rgb.hex = function (e) { - let n = ( - ((Math.round(e[0]) & 255) << 16) + - ((Math.round(e[1]) & 255) << 8) + - (Math.round(e[2]) & 255) - ) - .toString(16) - .toUpperCase(); - return "000000".substring(n.length) + n; - }), - (u.hex.rgb = function (e) { - let n = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); - if (!n) return [0, 0, 0]; - let t = n[0]; - n[0].length === 3 && - (t = t - .split("") - .map((f) => f + f) - .join("")); - let a = parseInt(t, 16), - o = (a >> 16) & 255, - i = (a >> 8) & 255, - c = a & 255; - return [o, i, c]; - }), - (u.rgb.hcg = function (e) { - let n = e[0] / 255, - t = e[1] / 255, - a = e[2] / 255, - o = Math.max(Math.max(n, t), a), - i = Math.min(Math.min(n, t), a), - c = o - i, - f, - g; - return ( - c < 1 ? (f = i / (1 - c)) : (f = 0), - c <= 0 - ? (g = 0) - : o === n - ? (g = ((t - a) / c) % 6) - : o === t - ? (g = 2 + (a - n) / c) - : (g = 4 + (n - t) / c), - (g /= 6), - (g %= 1), - [g * 360, c * 100, f * 100] - ); - }), - (u.hsl.hcg = function (e) { - let n = e[1] / 100, - t = e[2] / 100, - a = t < 0.5 ? 2 * n * t : 2 * n * (1 - t), - o = 0; - return ( - a < 1 && (o = (t - 0.5 * a) / (1 - a)), - [e[0], a * 100, o * 100] - ); - }), - (u.hsv.hcg = function (e) { - let n = e[1] / 100, - t = e[2] / 100, - a = n * t, - o = 0; - return (a < 1 && (o = (t - a) / (1 - a)), [e[0], a * 100, o * 100]); - }), - (u.hcg.rgb = function (e) { - let n = e[0] / 360, - t = e[1] / 100, - a = e[2] / 100; - if (t === 0) return [a * 255, a * 255, a * 255]; - let o = [0, 0, 0], - i = (n % 1) * 6, - c = i % 1, - f = 1 - c, - g = 0; - switch (Math.floor(i)) { - case 0: - ((o[0] = 1), (o[1] = c), (o[2] = 0)); - break; - case 1: - ((o[0] = f), (o[1] = 1), (o[2] = 0)); - break; - case 2: - ((o[0] = 0), (o[1] = 1), (o[2] = c)); - break; - case 3: - ((o[0] = 0), (o[1] = f), (o[2] = 1)); - break; - case 4: - ((o[0] = c), (o[1] = 0), (o[2] = 1)); - break; - default: - ((o[0] = 1), (o[1] = 0), (o[2] = f)); - } - return ( - (g = (1 - t) * a), - [(t * o[0] + g) * 255, (t * o[1] + g) * 255, (t * o[2] + g) * 255] - ); - }), - (u.hcg.hsv = function (e) { - let n = e[1] / 100, - t = e[2] / 100, - a = n + t * (1 - n), - o = 0; - return (a > 0 && (o = n / a), [e[0], o * 100, a * 100]); - }), - (u.hcg.hsl = function (e) { - let n = e[1] / 100, - t = (e[2] / 100) * (1 - n) + 0.5 * n, - a = 0; - return ( - t > 0 && t < 0.5 - ? (a = n / (2 * t)) - : t >= 0.5 && t < 1 && (a = n / (2 * (1 - t))), - [e[0], a * 100, t * 100] - ); - }), - (u.hcg.hwb = function (e) { - let n = e[1] / 100, - t = e[2] / 100, - a = n + t * (1 - n); - return [e[0], (a - n) * 100, (1 - a) * 100]; - }), - (u.hwb.hcg = function (e) { - let n = e[1] / 100, - t = 1 - e[2] / 100, - a = t - n, - o = 0; - return (a < 1 && (o = (t - a) / (1 - a)), [e[0], a * 100, o * 100]); - }), - (u.apple.rgb = function (e) { - return [ - (e[0] / 65535) * 255, - (e[1] / 65535) * 255, - (e[2] / 65535) * 255, - ]; - }), - (u.rgb.apple = function (e) { - return [ - (e[0] / 255) * 65535, - (e[1] / 255) * 65535, - (e[2] / 255) * 65535, - ]; - }), - (u.gray.rgb = function (e) { - return [(e[0] / 100) * 255, (e[0] / 100) * 255, (e[0] / 100) * 255]; - }), - (u.gray.hsl = function (e) { - return [0, 0, e[0]]; - }), - (u.gray.hsv = u.gray.hsl), - (u.gray.hwb = function (e) { - return [0, 100, e[0]]; - }), - (u.gray.cmyk = function (e) { - return [0, 0, 0, e[0]]; - }), - (u.gray.lab = function (e) { - return [e[0], 0, 0]; - }), - (u.gray.hex = function (e) { - let n = Math.round((e[0] / 100) * 255) & 255, - t = ((n << 16) + (n << 8) + n).toString(16).toUpperCase(); - return "000000".substring(t.length) + t; - }), - (u.rgb.gray = function (e) { - return [((e[0] + e[1] + e[2]) / 3 / 255) * 100]; - })); - }, - }), - me = I({ - "../../node_modules/color-convert/route.js"(r, l) { - var s = U(); - function h() { - let n = {}, - t = Object.keys(s); - for (let a = t.length, o = 0; o < a; o++) - n[t[o]] = { distance: -1, parent: null }; - return n; - } - function u(n) { - let t = h(), - a = [n]; - for (t[n].distance = 0; a.length; ) { - let o = a.pop(), - i = Object.keys(s[o]); - for (let c = i.length, f = 0; f < c; f++) { - let g = i[f], - b = t[g]; - b.distance === -1 && - ((b.distance = t[o].distance + 1), (b.parent = o), a.unshift(g)); - } - } - return t; - } - function d(n, t) { - return function (a) { - return t(n(a)); - }; - } - function e(n, t) { - let a = [t[n].parent, n], - o = s[t[n].parent][n], - i = t[n].parent; - for (; t[i].parent; ) - (a.unshift(t[i].parent), - (o = d(s[t[i].parent][i], o)), - (i = t[i].parent)); - return ((o.conversion = a), o); - } - l.exports = function (n) { - let t = u(n), - a = {}, - o = Object.keys(t); - for (let i = o.length, c = 0; c < i; c++) { - let f = o[c]; - t[f].parent !== null && (a[f] = e(f, t)); - } - return a; - }; - }, - }), - pe = I({ - "../../node_modules/color-convert/index.js"(r, l) { - var s = U(), - h = me(), - u = {}, - d = Object.keys(s); - function e(t) { - let a = function (...o) { - let i = o[0]; - return i == null ? i : (i.length > 1 && (o = i), t(o)); - }; - return ("conversion" in t && (a.conversion = t.conversion), a); - } - function n(t) { - let a = function (...o) { - let i = o[0]; - if (i == null) return i; - i.length > 1 && (o = i); - let c = t(o); - if (typeof c == "object") - for (let f = c.length, g = 0; g < f; g++) c[g] = Math.round(c[g]); - return c; - }; - return ("conversion" in t && (a.conversion = t.conversion), a); - } - (d.forEach((t) => { - ((u[t] = {}), - Object.defineProperty(u[t], "channels", { value: s[t].channels }), - Object.defineProperty(u[t], "labels", { value: s[t].labels })); - let a = h(t); - Object.keys(a).forEach((o) => { - let i = a[o]; - ((u[t][o] = n(i)), (u[t][o].raw = e(i))); - }); - }), - (l.exports = u)); - }, - }), - _ = be(pe()); -function M() { - return (M = - Object.assign || - function (r) { - for (var l = 1; l < arguments.length; l++) { - var s = arguments[l]; - for (var h in s) - Object.prototype.hasOwnProperty.call(s, h) && (r[h] = s[h]); - } - return r; - }).apply(this, arguments); -} -function X(r, l) { - if (r == null) return {}; - var s, - h, - u = {}, - d = Object.keys(r); - for (h = 0; h < d.length; h++) l.indexOf((s = d[h])) >= 0 || (u[s] = r[s]); - return u; -} -function P(r) { - var l = p.useRef(r), - s = p.useRef(function (h) { - l.current && l.current(h); - }); - return ((l.current = r), s.current); -} -var $ = function (r, l, s) { - return ( - l === void 0 && (l = 0), - s === void 0 && (s = 1), - r > s ? s : r < l ? l : r - ); - }, - O = function (r) { - return "touches" in r; - }, - L = function (r) { - return (r && r.ownerDocument.defaultView) || self; - }, - G = function (r, l, s) { - var h = r.getBoundingClientRect(), - u = O(l) - ? (function (d, e) { - for (var n = 0; n < d.length; n++) - if (d[n].identifier === e) return d[n]; - return d[0]; - })(l.touches, s) - : l; - return { - left: $((u.pageX - (h.left + L(r).pageXOffset)) / h.width), - top: $((u.pageY - (h.top + L(r).pageYOffset)) / h.height), - }; - }, - F = function (r) { - !O(r) && r.preventDefault(); - }, - V = v.memo(function (r) { - var l = r.onMove, - s = r.onKey, - h = X(r, ["onMove", "onKey"]), - u = p.useRef(null), - d = P(l), - e = P(s), - n = p.useRef(null), - t = p.useRef(!1), - a = p.useMemo( - function () { - var f = function (y) { - (F(y), - (O(y) ? y.touches.length > 0 : y.buttons > 0) && u.current - ? d(G(u.current, y, n.current)) - : b(!1)); - }, - g = function () { - return b(!1); - }; - function b(y) { - var m = t.current, - k = L(u.current), - x = y ? k.addEventListener : k.removeEventListener; - (x(m ? "touchmove" : "mousemove", f), - x(m ? "touchend" : "mouseup", g)); - } - return [ - function (y) { - var m = y.nativeEvent, - k = u.current; - if ( - k && - (F(m), - !(function (N, se) { - return se && !O(N); - })(m, t.current) && k) - ) { - if (O(m)) { - t.current = !0; - var x = m.changedTouches || []; - x.length && (n.current = x[0].identifier); - } - (k.focus(), d(G(k, m, n.current)), b(!0)); - } - }, - function (y) { - var m = y.which || y.keyCode; - m < 37 || - m > 40 || - (y.preventDefault(), - e({ - left: m === 39 ? 0.05 : m === 37 ? -0.05 : 0, - top: m === 40 ? 0.05 : m === 38 ? -0.05 : 0, - })); - }, - b, - ]; - }, - [e, d], - ), - o = a[0], - i = a[1], - c = a[2]; - return ( - p.useEffect( - function () { - return c; - }, - [c], - ), - v.createElement( - "div", - M({}, h, { - onTouchStart: o, - onMouseDown: o, - className: "react-colorful__interactive", - ref: u, - onKeyDown: i, - tabIndex: 0, - role: "slider", - }), - ) - ); - }), - S = function (r) { - return r.filter(Boolean).join(" "); - }, - D = function (r) { - var l = r.color, - s = r.left, - h = r.top, - u = h === void 0 ? 0.5 : h, - d = S(["react-colorful__pointer", r.className]); - return v.createElement( - "div", - { className: d, style: { top: 100 * u + "%", left: 100 * s + "%" } }, - v.createElement("div", { - className: "react-colorful__pointer-fill", - style: { backgroundColor: l }, - }), - ); - }, - w = function (r, l, s) { - return ( - l === void 0 && (l = 0), - s === void 0 && (s = Math.pow(10, l)), - Math.round(s * r) / s - ); - }, - ye = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, - xe = function (r) { - return Q(B(r)); - }, - B = function (r) { - return ( - r[0] === "#" && (r = r.substring(1)), - r.length < 6 - ? { - r: parseInt(r[0] + r[0], 16), - g: parseInt(r[1] + r[1], 16), - b: parseInt(r[2] + r[2], 16), - a: r.length === 4 ? w(parseInt(r[3] + r[3], 16) / 255, 2) : 1, - } - : { - r: parseInt(r.substring(0, 2), 16), - g: parseInt(r.substring(2, 4), 16), - b: parseInt(r.substring(4, 6), 16), - a: r.length === 8 ? w(parseInt(r.substring(6, 8), 16) / 255, 2) : 1, - } - ); - }, - we = function (r, l) { - return (l === void 0 && (l = "deg"), Number(r) * (ye[l] || 1)); - }, - ke = function (r) { - var l = - /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( - r, - ); - return l - ? _e({ - h: we(l[1], l[2]), - s: Number(l[3]), - l: Number(l[4]), - a: l[5] === void 0 ? 1 : Number(l[5]) / (l[6] ? 100 : 1), - }) - : { h: 0, s: 0, v: 0, a: 1 }; - }, - _e = function (r) { - var l = r.s, - s = r.l; - return { - h: r.h, - s: - (l *= (s < 50 ? s : 100 - s) / 100) > 0 ? ((2 * l) / (s + l)) * 100 : 0, - v: s + l, - a: r.a, - }; - }, - Ee = function (r) { - return Ce(J(r)); - }, - Z = function (r) { - var l = r.s, - s = r.v, - h = r.a, - u = ((200 - l) * s) / 100; - return { - h: w(r.h), - s: w( - u > 0 && u < 200 ? ((l * s) / 100 / (u <= 100 ? u : 200 - u)) * 100 : 0, - ), - l: w(u / 2), - a: w(h, 2), - }; - }, - K = function (r) { - var l = Z(r); - return "hsl(" + l.h + ", " + l.s + "%, " + l.l + "%)"; - }, - z = function (r) { - var l = Z(r); - return "hsla(" + l.h + ", " + l.s + "%, " + l.l + "%, " + l.a + ")"; - }, - J = function (r) { - var l = r.h, - s = r.s, - h = r.v, - u = r.a; - ((l = (l / 360) * 6), (s /= 100), (h /= 100)); - var d = Math.floor(l), - e = h * (1 - s), - n = h * (1 - (l - d) * s), - t = h * (1 - (1 - l + d) * s), - a = d % 6; - return { - r: w(255 * [h, n, e, e, t, h][a]), - g: w(255 * [t, h, h, n, e, e][a]), - b: w(255 * [e, e, t, h, h, n][a]), - a: w(u, 2), - }; - }, - Me = function (r) { - var l = - /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec( - r, - ); - return l - ? Q({ - r: Number(l[1]) / (l[2] ? 100 / 255 : 1), - g: Number(l[3]) / (l[4] ? 100 / 255 : 1), - b: Number(l[5]) / (l[6] ? 100 / 255 : 1), - a: l[7] === void 0 ? 1 : Number(l[7]) / (l[8] ? 100 : 1), - }) - : { h: 0, s: 0, v: 0, a: 1 }; - }, - R = function (r) { - var l = r.toString(16); - return l.length < 2 ? "0" + l : l; - }, - Ce = function (r) { - var l = r.r, - s = r.g, - h = r.b, - u = r.a, - d = u < 1 ? R(w(255 * u)) : ""; - return "#" + R(l) + R(s) + R(h) + d; - }, - Q = function (r) { - var l = r.r, - s = r.g, - h = r.b, - u = r.a, - d = Math.max(l, s, h), - e = d - Math.min(l, s, h), - n = e - ? d === l - ? (s - h) / e - : d === s - ? 2 + (h - l) / e - : 4 + (l - s) / e - : 0; - return { - h: w(60 * (n < 0 ? n + 6 : n)), - s: w(d ? (e / d) * 100 : 0), - v: w((d / 255) * 100), - a: u, - }; - }, - ee = v.memo(function (r) { - var l = r.hue, - s = r.onChange, - h = S(["react-colorful__hue", r.className]); - return v.createElement( - "div", - { className: h }, - v.createElement( - V, - { - onMove: function (u) { - s({ h: 360 * u.left }); - }, - onKey: function (u) { - s({ h: $(l + 360 * u.left, 0, 360) }); - }, - "aria-label": "Hue", - "aria-valuenow": w(l), - "aria-valuemax": "360", - "aria-valuemin": "0", - }, - v.createElement(D, { - className: "react-colorful__hue-pointer", - left: l / 360, - color: K({ h: l, s: 100, v: 100, a: 1 }), - }), - ), - ); - }), - re = v.memo(function (r) { - var l = r.hsva, - s = r.onChange, - h = { backgroundColor: K({ h: l.h, s: 100, v: 100, a: 1 }) }; - return v.createElement( - "div", - { className: "react-colorful__saturation", style: h }, - v.createElement( - V, - { - onMove: function (u) { - s({ s: 100 * u.left, v: 100 - 100 * u.top }); - }, - onKey: function (u) { - s({ - s: $(l.s + 100 * u.left, 0, 100), - v: $(l.v - 100 * u.top, 0, 100), - }); - }, - "aria-label": "Color", - "aria-valuetext": - "Saturation " + w(l.s) + "%, Brightness " + w(l.v) + "%", - }, - v.createElement(D, { - className: "react-colorful__saturation-pointer", - top: 1 - l.v / 100, - left: l.s / 100, - color: K(l), - }), - ), - ); - }), - te = function (r, l) { - if (r === l) return !0; - for (var s in r) if (r[s] !== l[s]) return !1; - return !0; - }, - ne = function (r, l) { - return r.replace(/\s/g, "") === l.replace(/\s/g, ""); - }, - $e = function (r, l) { - return r.toLowerCase() === l.toLowerCase() || te(B(r), B(l)); - }; -function ae(r, l, s) { - var h = P(s), - u = p.useState(function () { - return r.toHsva(l); - }), - d = u[0], - e = u[1], - n = p.useRef({ color: l, hsva: d }); - (p.useEffect( - function () { - if (!r.equal(l, n.current.color)) { - var a = r.toHsva(l); - ((n.current = { hsva: a, color: l }), e(a)); - } - }, - [l, r], - ), - p.useEffect( - function () { - var a; - te(d, n.current.hsva) || - r.equal((a = r.fromHsva(d)), n.current.color) || - ((n.current = { hsva: d, color: a }), h(a)); - }, - [d, r, h], - )); - var t = p.useCallback(function (a) { - e(function (o) { - return Object.assign({}, o, a); - }); - }, []); - return [d, t]; -} -var Oe = typeof window < "u" ? p.useLayoutEffect : p.useEffect, - Se = function () { - return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0; - }, - W = new Map(), - oe = function (r) { - Oe(function () { - var l = r.current ? r.current.ownerDocument : document; - if (l !== void 0 && !W.has(l)) { - var s = l.createElement("style"); - ((s.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`), - W.set(l, s)); - var h = Se(); - (h && s.setAttribute("nonce", h), l.head.appendChild(s)); - } - }, []); - }, - Ne = function (r) { - var l = r.className, - s = r.colorModel, - h = r.color, - u = h === void 0 ? s.defaultColor : h, - d = r.onChange, - e = X(r, ["className", "colorModel", "color", "onChange"]), - n = p.useRef(null); - oe(n); - var t = ae(s, u, d), - a = t[0], - o = t[1], - i = S(["react-colorful", l]); - return v.createElement( - "div", - M({}, e, { ref: n, className: i }), - v.createElement(re, { hsva: a, onChange: o }), - v.createElement(ee, { - hue: a.h, - onChange: o, - className: "react-colorful__last-control", - }), - ); - }, - Re = { - defaultColor: "000", - toHsva: xe, - fromHsva: function (r) { - return Ee({ h: r.h, s: r.s, v: r.v, a: 1 }); - }, - equal: $e, - }, - je = function (r) { - return v.createElement(Ne, M({}, r, { colorModel: Re })); - }, - ze = function (r) { - var l = r.className, - s = r.hsva, - h = r.onChange, - u = { - backgroundImage: - "linear-gradient(90deg, " + - z(Object.assign({}, s, { a: 0 })) + - ", " + - z(Object.assign({}, s, { a: 1 })) + - ")", - }, - d = S(["react-colorful__alpha", l]), - e = w(100 * s.a); - return v.createElement( - "div", - { className: d }, - v.createElement("div", { - className: "react-colorful__alpha-gradient", - style: u, - }), - v.createElement( - V, - { - onMove: function (n) { - h({ a: n.left }); - }, - onKey: function (n) { - h({ a: $(s.a + n.left) }); - }, - "aria-label": "Alpha", - "aria-valuetext": e + "%", - "aria-valuenow": e, - "aria-valuemin": "0", - "aria-valuemax": "100", - }, - v.createElement(D, { - className: "react-colorful__alpha-pointer", - left: s.a, - color: z(s), - }), - ), - ); - }, - le = function (r) { - var l = r.className, - s = r.colorModel, - h = r.color, - u = h === void 0 ? s.defaultColor : h, - d = r.onChange, - e = X(r, ["className", "colorModel", "color", "onChange"]), - n = p.useRef(null); - oe(n); - var t = ae(s, u, d), - a = t[0], - o = t[1], - i = S(["react-colorful", l]); - return v.createElement( - "div", - M({}, e, { ref: n, className: i }), - v.createElement(re, { hsva: a, onChange: o }), - v.createElement(ee, { hue: a.h, onChange: o }), - v.createElement(ze, { - hsva: a, - onChange: o, - className: "react-colorful__last-control", - }), - ); - }, - He = { - defaultColor: "hsla(0, 0%, 0%, 1)", - toHsva: ke, - fromHsva: z, - equal: ne, - }, - Ie = function (r) { - return v.createElement(le, M({}, r, { colorModel: He })); - }, - qe = { - defaultColor: "rgba(0, 0, 0, 1)", - toHsva: Me, - fromHsva: function (r) { - var l = J(r); - return "rgba(" + l.r + ", " + l.g + ", " + l.b + ", " + l.a + ")"; - }, - equal: ne, - }, - Pe = function (r) { - return v.createElement(le, M({}, r, { colorModel: qe })); - }, - Le = E.div({ - position: "relative", - maxWidth: 250, - '&[aria-readonly="true"]': { opacity: 0.5 }, - }), - Be = E(A)({ - position: "absolute", - zIndex: 1, - top: 4, - left: 4, - "[aria-readonly=true] &": { cursor: "not-allowed" }, - }), - Ke = E.div({ - width: 200, - margin: 5, - ".react-colorful__saturation": { borderRadius: "4px 4px 0 0" }, - ".react-colorful__hue": { boxShadow: "inset 0 0 0 1px rgb(0 0 0 / 5%)" }, - ".react-colorful__last-control": { borderRadius: "0 0 4px 4px" }, - }), - Te = E(fe)(({ theme: r }) => ({ fontFamily: r.typography.fonts.base })), - Xe = E.div({ - display: "grid", - gridTemplateColumns: "repeat(9, 16px)", - gap: 6, - padding: 3, - marginTop: 5, - width: 200, - }), - Ve = E.div(({ theme: r, active: l }) => ({ - width: 16, - height: 16, - boxShadow: l - ? `${r.appBorderColor} 0 0 0 1px inset, ${r.textMutedColor}50 0 0 0 4px` - : `${r.appBorderColor} 0 0 0 1px inset`, - borderRadius: r.appBorderRadius, - })), - De = `url('data:image/svg+xml;charset=utf-8,')`, - Y = ({ value: r, style: l, ...s }) => { - let h = `linear-gradient(${r}, ${r}), ${De}, linear-gradient(#fff, #fff)`; - return v.createElement(Ve, { ...s, style: { ...l, backgroundImage: h } }); - }, - Ge = E(de.Input)(({ theme: r, readOnly: l }) => ({ - width: "100%", - paddingLeft: 30, - paddingRight: 30, - boxSizing: "border-box", - fontFamily: r.typography.fonts.base, - })), - Fe = E(ge)(({ theme: r }) => ({ - position: "absolute", - zIndex: 1, - top: 6, - right: 7, - width: 20, - height: 20, - padding: 4, - boxSizing: "border-box", - cursor: "pointer", - color: r.input.color, - })), - ue = ((r) => ((r.RGB = "rgb"), (r.HSL = "hsl"), (r.HEX = "hex"), r))( - ue || {}, - ), - q = Object.values(ue), - We = /\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/, - Ye = /^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i, - Ae = /^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i, - T = /^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i, - Ue = /^\s*#?([0-9a-f]{3})\s*$/i, - Ze = { hex: je, rgb: Pe, hsl: Ie }, - j = { - hex: "transparent", - rgb: "rgba(0, 0, 0, 0)", - hsl: "hsla(0, 0%, 0%, 0)", - }, - ie = (r) => { - let l = r?.match(We); - if (!l) return [0, 0, 0, 1]; - let [, s, h, u, d = 1] = l; - return [s, h, u, d].map(Number); - }, - Je = (r) => { - let [l, s, h, u] = ie(r), - [d, e, n] = _.default.rgb.hsl([l, s, h]) || [0, 0, 0]; - return { - valid: !0, - value: r, - keyword: _.default.rgb.keyword([l, s, h]), - colorSpace: "rgb", - rgb: r, - hsl: `hsla(${d}, ${e}%, ${n}%, ${u})`, - hex: `#${_.default.rgb.hex([l, s, h]).toLowerCase()}`, - }; - }, - Qe = (r) => { - let [l, s, h, u] = ie(r), - [d, e, n] = _.default.hsl.rgb([l, s, h]) || [0, 0, 0]; - return { - valid: !0, - value: r, - keyword: _.default.hsl.keyword([l, s, h]), - colorSpace: "hsl", - rgb: `rgba(${d}, ${e}, ${n}, ${u})`, - hsl: r, - hex: `#${_.default.hsl.hex([l, s, h]).toLowerCase()}`, - }; - }, - er = (r) => { - let l = r.replace("#", ""), - s = _.default.keyword.rgb(l) || _.default.hex.rgb(l), - h = _.default.rgb.hsl(s), - u = r; - /[^#a-f0-9]/i.test(r) ? (u = l) : T.test(r) && (u = `#${l}`); - let d = !0; - if (u.startsWith("#")) d = T.test(u); - else - try { - _.default.keyword.hex(u); - } catch { - d = !1; - } - return { - valid: d, - value: u, - keyword: _.default.rgb.keyword(s), - colorSpace: "hex", - rgb: `rgba(${s[0]}, ${s[1]}, ${s[2]}, 1)`, - hsl: `hsla(${h[0]}, ${h[1]}%, ${h[2]}%, 1)`, - hex: u, - }; - }, - C = (r) => { - if (r) return Ye.test(r) ? Je(r) : Ae.test(r) ? Qe(r) : er(r); - }, - rr = (r, l, s) => { - if (!r || !l?.valid) return j[s]; - if (s !== "hex") return l?.[s] || j[s]; - if (!l.hex.startsWith("#")) - try { - return `#${_.default.keyword.hex(l.hex)}`; - } catch { - return j.hex; - } - let h = l.hex.match(Ue); - if (!h) return T.test(l.hex) ? l.hex : j.hex; - let [u, d, e] = h[1].split(""); - return `#${u}${u}${d}${d}${e}${e}`; - }, - tr = (r, l) => { - let [s, h] = p.useState(r || ""), - [u, d] = p.useState(() => C(s)), - [e, n] = p.useState(u?.colorSpace || "hex"); - p.useEffect(() => { - let i = r || "", - c = C(i); - (h(i), d(c), n(c?.colorSpace || "hex")); - }, [r]); - let t = p.useMemo(() => rr(s, u, e).toLowerCase(), [s, u, e]), - a = p.useCallback( - (i) => { - let c = C(i), - f = c?.value || i || ""; - (h(f), - f === "" && (d(void 0), l(void 0)), - c && (d(c), n(c.colorSpace), l(c.value))); - }, - [l], - ), - o = p.useCallback(() => { - let i = (q.indexOf(e) + 1) % q.length, - c = q[i]; - n(c); - let f = u?.[c] || ""; - (h(f), l(f)); - }, [u, e, l]); - return { - value: s, - realValue: t, - updateValue: a, - color: u, - colorSpace: e, - cycleColorSpace: o, - }; - }, - H = (r) => r.replace(/\s*/, "").toLowerCase(), - nr = (r, l, s) => { - let [h, u] = p.useState(l?.valid ? [l] : []); - p.useEffect(() => { - l === void 0 && u([]); - }, [l]); - let d = p.useMemo( - () => - (r || []) - .map((n) => - typeof n == "string" - ? C(n) - : n.title - ? { ...C(n.color), keyword: n.title } - : C(n.color), - ) - .concat(h) - .filter(Boolean) - .slice(-27), - [r, h], - ), - e = p.useCallback( - (n) => { - n?.valid && - (d.some((t) => t && t[s] && H(t[s] || "") === H(n[s] || "")) || - u((t) => t.concat(n))); - }, - [s, d], - ); - return { presets: d, addPreset: e }; - }, - ar = ({ - name: r, - value: l, - onChange: s, - onFocus: h, - onBlur: u, - presetColors: d, - startOpen: e = !1, - argType: n, - }) => { - let t = p.useCallback(ce(s, 200), [s]), - { - value: a, - realValue: o, - updateValue: i, - color: c, - colorSpace: f, - cycleColorSpace: g, - } = tr(l, t), - { presets: b, addPreset: y } = nr(d ?? [], c, f), - m = Ze[f], - k = !!n?.table?.readonly; - return v.createElement( - Le, - { "aria-readonly": k }, - v.createElement( - Be, - { - startOpen: e, - trigger: k ? null : void 0, - closeOnOutsideClick: !0, - onVisibleChange: () => c && y(c), - tooltip: v.createElement( - Ke, - null, - v.createElement(m, { - color: o === "transparent" ? "#000000" : o, - onChange: i, - onFocus: h, - onBlur: u, - }), - b.length > 0 && - v.createElement( - Xe, - null, - b.map((x, N) => - v.createElement( - A, - { - key: `${x?.value || N}-${N}`, - hasChrome: !1, - tooltip: v.createElement(Te, { - note: x?.keyword || x?.value || "", - }), - }, - v.createElement(Y, { - value: x?.[f] || "", - active: !!(c && x && x[f] && H(x[f] || "") === H(c[f])), - onClick: () => x && i(x.value || ""), - }), - ), - ), - ), - ), - }, - v.createElement(Y, { value: o, style: { margin: 4 } }), - ), - v.createElement(Ge, { - id: he(r), - value: a, - onChange: (x) => i(x.target.value), - onFocus: (x) => x.target.select(), - readOnly: k, - placeholder: "Choose color...", - }), - a ? v.createElement(Fe, { onClick: g }) : null, - ); - }, - cr = ar; -export { ar as ColorControl, cr as default }; diff --git a/docs/assets/ContentLockup-DbWiPA4N.js b/docs/assets/ContentLockup-DbWiPA4N.js deleted file mode 100644 index e39bde6..0000000 --- a/docs/assets/ContentLockup-DbWiPA4N.js +++ /dev/null @@ -1,96 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { B as s } from "./Button-Z4hbXct5.js"; -const n = ({ - title: l, - subtitle: i, - description: x, - ctaText: a, - ctaHref: t, - buttonClassName: r = "", -}) => - e.jsxs("div", { - className: - "flex flex-col gap-[var(--spacing-scale-006)] sm:gap-[var(--spacing-scale-012)] md:gap-[var(--spacing-scale-020)] lg:gap-[var(--spacing-scale-020)] relative z-10", - children: [ - e.jsxs("div", { - className: - "flex flex-col md:gap-[var(--spacing-scale-004)] lg:gap-[var(--spacing-scale-008)] xl:gap-[var(--spacing-scale-020)]", - children: [ - e.jsxs("div", { - className: "flex flex-col xl:gap-0", - children: [ - e.jsxs("div", { - className: - "flex gap-[var(--spacing-scale-008)] xl:gap-[var(--spacing-scale-010)] items-center", - children: [ - e.jsx("h1", { - className: - "font-bricolage-grotesque font-medium text-[32px] leading-[32px] sm:text-[52px] sm:leading-[52px] md:text-[44px] md:leading-[44px] lg:text-[64px] lg:leading-[64px] xl:text-[96px] xl:leading-[110%] text-[var(--color-content-inverse-primary)]", - children: l, - }), - e.jsx("img", { - src: "assets/Shapes_1.svg", - alt: "Decorative shapes", - className: - "w-[27.2px] h-[27.2px] md:w-[34px] md:h-[34px] lg:w-[50px] lg:h-[50px]", - }), - ], - }), - e.jsx("h2", { - className: - "font-bricolage-grotesque font-medium text-[32px] leading-[32px] sm:text-[52px] sm:leading-[52px] md:text-[44px] md:leading-[44px] lg:text-[64px] lg:leading-[64px] xl:text-[96px] xl:leading-[110%] text-[var(--color-content-inverse-primary)]", - children: i, - }), - ], - }), - e.jsx("p", { - className: - "font-inter font-[400] text-[18px] leading-[130%] lg:text-[24px] lg:leading-[32px] xl:text-[32px] xl:leading-[40px] text-[var(--color-content-inverse-primary)] pr-[var(--spacing-scale-032)] md:pr-[var(--spacing-scale-008)] lg:pr-[var(--spacing-scale-032)]", - children: x, - }), - ], - }), - e.jsxs("div", { - className: "flex justify-start", - children: [ - e.jsx("div", { - className: "block md:hidden", - children: e.jsx(s, { - variant: "primary", - size: "small", - children: a, - }), - }), - e.jsx("div", { - className: "hidden md:block xl:hidden", - children: e.jsx(s, { - variant: "primary", - size: "large", - className: r, - children: a, - }), - }), - e.jsx("div", { - className: "hidden xl:block", - children: e.jsx(s, { - variant: "primary", - size: "xlarge", - children: a, - }), - }), - ], - }), - ], - }); -n.__docgenInfo = { - description: "", - methods: [], - displayName: "ContentLockup", - props: { - buttonClassName: { - defaultValue: { value: '""', computed: !1 }, - required: !1, - }, - }, -}; -export { n as C }; diff --git a/docs/assets/ContentLockup.stories-DwhcJmPs.js b/docs/assets/ContentLockup.stories-DwhcJmPs.js deleted file mode 100644 index 19def80..0000000 --- a/docs/assets/ContentLockup.stories-DwhcJmPs.js +++ /dev/null @@ -1,221 +0,0 @@ -import { C as s } from "./ContentLockup-DbWiPA4N.js"; -import "./jsx-runtime-C_nHp4yK.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./Button-Z4hbXct5.js"; -const p = { - title: "Components/ContentLockup", - component: s, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A content lockup component that groups title, subtitle, description, and CTA button. Features responsive typography and spacing that adapts across breakpoints. Used within the HeroBanner component.", - }, - }, - }, - argTypes: { - title: { control: { type: "text" }, description: "The main title text" }, - subtitle: { control: { type: "text" }, description: "The subtitle text" }, - description: { - control: { type: "text" }, - description: "The description text", - }, - ctaText: { - control: { type: "text" }, - description: "The call-to-action button text", - }, - ctaHref: { - control: { type: "text" }, - description: "The call-to-action button link", - }, - buttonClassName: { - control: { type: "text" }, - description: - "Additional CSS classes to apply to the large button (md/lg breakpoints)", - }, - }, - tags: ["autodocs"], - }, - t = { - args: { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }, - parameters: { - docs: { - description: { - story: - "Default content lockup with standard Community Rule messaging.", - }, - }, - }, - }, - e = { - args: { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values. Our platform provides the tools and frameworks needed to build successful, sustainable communities that can navigate complex challenges together.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }, - parameters: { - docs: { - description: { - story: - "Content lockup with longer description text to test text wrapping.", - }, - }, - }, - }, - o = { - args: { - title: "Simple", - subtitle: "solution", - description: "Easy community decision making.", - ctaText: "Try it", - ctaHref: "#", - }, - parameters: { - docs: { - description: { - story: "Content lockup with minimal content to test compact layouts.", - }, - }, - }, - }, - n = { - args: { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - buttonClassName: "shrink-0 whitespace-nowrap min-w-[280px]", - }, - parameters: { - docs: { - description: { - story: - "Content lockup with custom button styling applied to the large button (md/lg breakpoints).", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Collaborate", - subtitle: "with clarity", - description: "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#" - }, - parameters: { - docs: { - description: { - story: "Default content lockup with standard Community Rule messaging." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -e.parameters = { - ...e.parameters, - docs: { - ...e.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Collaborate", - subtitle: "with clarity", - description: "Help your community make important decisions in a way that reflects its unique values. Our platform provides the tools and frameworks needed to build successful, sustainable communities that can navigate complex challenges together.", - ctaText: "Learn how Community Rule works", - ctaHref: "#" - }, - parameters: { - docs: { - description: { - story: "Content lockup with longer description text to test text wrapping." - } - } - } -}`, - ...e.parameters?.docs?.source, - }, - }, -}; -o.parameters = { - ...o.parameters, - docs: { - ...o.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Simple", - subtitle: "solution", - description: "Easy community decision making.", - ctaText: "Try it", - ctaHref: "#" - }, - parameters: { - docs: { - description: { - story: "Content lockup with minimal content to test compact layouts." - } - } - } -}`, - ...o.parameters?.docs?.source, - }, - }, -}; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Collaborate", - subtitle: "with clarity", - description: "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - buttonClassName: "shrink-0 whitespace-nowrap min-w-[280px]" - }, - parameters: { - docs: { - description: { - story: "Content lockup with custom button styling applied to the large button (md/lg breakpoints)." - } - } - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -const u = ["Default", "LongDescription", "ShortContent", "CustomButtonStyling"]; -export { - n as CustomButtonStyling, - t as Default, - e as LongDescription, - o as ShortContent, - u as __namedExportsOrder, - p as default, -}; diff --git a/docs/assets/DocsRenderer-PQXLIZUC-CZs-lgH4.js b/docs/assets/DocsRenderer-PQXLIZUC-CZs-lgH4.js deleted file mode 100644 index f533007..0000000 --- a/docs/assets/DocsRenderer-PQXLIZUC-CZs-lgH4.js +++ /dev/null @@ -1,36073 +0,0 @@ -const __vite__mapDeps = ( - i, - m = __vite__mapDeps, - d = m.f || - (m.f = [ - "assets/Color-AVL7NMMY-Doxq8aw5.js", - "assets/iframe-D_aMTKb2.js", - "assets/preload-helper-DIZFD4sK.js", - "assets/iframe-7VPDhVZ9.css", - "assets/react-18-TXN0K6I-.js", - "assets/jsx-runtime-C_nHp4yK.js", - "assets/index-O1jB17X4.js", - ]), -) => i.map((i) => d[i]); -import { _ as cc } from "./preload-helper-DIZFD4sK.js"; -import { - r as b, - g as R2, - a as P2, - R as h, - V as oh, - h as Fp, - T as Tl, -} from "./iframe-D_aMTKb2.js"; -import { - renderElement as I2, - unmountElement as L2, -} from "./react-18-TXN0K6I-.js"; -import { j as q } from "./jsx-runtime-C_nHp4yK.js"; -var B2 = Object.defineProperty, - O = (e, t) => B2(e, "name", { value: t, configurable: !0 }); -const { once: N2 } = __STORYBOOK_MODULE_CLIENT_LOGGER__, - { - FORCE_REMOUNT: _p, - SET_CURRENT_STORY: j2, - STORY_RENDER_PHASE_CHANGED: M2, - } = __STORYBOOK_MODULE_CORE_EVENTS__, - { global: dt } = __STORYBOOK_MODULE_GLOBAL__; -var z2 = { - reset: [0, 0], - bold: [1, 22, "\x1B[22m\x1B[1m"], - dim: [2, 22, "\x1B[22m\x1B[2m"], - italic: [3, 23], - underline: [4, 24], - inverse: [7, 27], - hidden: [8, 28], - strikethrough: [9, 29], - black: [30, 39], - red: [31, 39], - green: [32, 39], - yellow: [33, 39], - blue: [34, 39], - magenta: [35, 39], - cyan: [36, 39], - white: [37, 39], - gray: [90, 39], - bgBlack: [40, 49], - bgRed: [41, 49], - bgGreen: [42, 49], - bgYellow: [43, 49], - bgBlue: [44, 49], - bgMagenta: [45, 49], - bgCyan: [46, 49], - bgWhite: [47, 49], - blackBright: [90, 39], - redBright: [91, 39], - greenBright: [92, 39], - yellowBright: [93, 39], - blueBright: [94, 39], - magentaBright: [95, 39], - cyanBright: [96, 39], - whiteBright: [97, 39], - bgBlackBright: [100, 49], - bgRedBright: [101, 49], - bgGreenBright: [102, 49], - bgYellowBright: [103, 49], - bgBlueBright: [104, 49], - bgMagentaBright: [105, 49], - bgCyanBright: [106, 49], - bgWhiteBright: [107, 49], - }, - H2 = Object.entries(z2); -function ki(e) { - return String(e); -} -O(ki, "a"); -ki.open = ""; -ki.close = ""; -function ah(e = !1) { - let t = typeof process < "u" ? process : void 0, - r = t?.env || {}, - n = t?.argv || []; - return ( - (!("NO_COLOR" in r || n.includes("--no-color")) && - ("FORCE_COLOR" in r || - n.includes("--color") || - t?.platform === "win32" || - (e && r.TERM !== "dumb") || - "CI" in r)) || - (typeof window < "u" && !!window.chrome) - ); -} -O(ah, "C"); -function ih(e = !1) { - let t = ah(e), - r = O((i, l, s, u) => { - let d = "", - p = 0; - do - ((d += i.substring(p, u) + s), - (p = u + l.length), - (u = i.indexOf(l, p))); - while (~u); - return d + i.substring(p); - }, "i"), - n = O((i, l, s = i) => { - let u = O((d) => { - let p = String(d), - c = p.indexOf(l, i.length); - return ~c ? i + r(p, l, s, c) + l : i + p + l; - }, "o"); - return ((u.open = i), (u.close = l), u); - }, "g"), - o = { isColorSupported: t }, - a = O((i) => `\x1B[${i}m`, "d"); - for (let [i, l] of H2) o[i] = t ? n(a(l[0]), a(l[1]), l[2]) : ki; - return o; -} -O(ih, "p"); -var tr = ih(); -function dc(e, t) { - return ( - t.forEach(function (r) { - r && - typeof r != "string" && - !Array.isArray(r) && - Object.keys(r).forEach(function (n) { - if (n !== "default" && !(n in e)) { - var o = Object.getOwnPropertyDescriptor(r, n); - Object.defineProperty( - e, - n, - o.get - ? o - : { - enumerable: !0, - get: O(function () { - return r[n]; - }, "get"), - }, - ); - } - }); - }), - Object.freeze(e) - ); -} -O(dc, "_mergeNamespaces"); -function lh(e, t) { - let r = Object.keys(e), - n = t === null ? r : r.sort(t); - if (Object.getOwnPropertySymbols) - for (let o of Object.getOwnPropertySymbols(e)) - Object.getOwnPropertyDescriptor(e, o).enumerable && n.push(o); - return n; -} -O(lh, "getKeysOfEnumerableProperties"); -function oo(e, t, r, n, o, a, i = ": ") { - let l = "", - s = 0, - u = e.next(); - if (!u.done) { - l += t.spacingOuter; - let d = r + t.indent; - for (; !u.done; ) { - if (((l += d), s++ === t.maxWidth)) { - l += "…"; - break; - } - let p = a(u.value[0], t, d, n, o), - c = a(u.value[1], t, d, n, o); - ((l += p + i + c), - (u = e.next()), - u.done ? t.min || (l += ",") : (l += `,${t.spacingInner}`)); - } - l += t.spacingOuter + r; - } - return l; -} -O(oo, "printIteratorEntries"); -function Oi(e, t, r, n, o, a) { - let i = "", - l = 0, - s = e.next(); - if (!s.done) { - i += t.spacingOuter; - let u = r + t.indent; - for (; !s.done; ) { - if (((i += u), l++ === t.maxWidth)) { - i += "…"; - break; - } - ((i += a(s.value, t, u, n, o)), - (s = e.next()), - s.done ? t.min || (i += ",") : (i += `,${t.spacingInner}`)); - } - i += t.spacingOuter + r; - } - return i; -} -O(Oi, "printIteratorValues"); -function Vo(e, t, r, n, o, a) { - let i = ""; - e = e instanceof ArrayBuffer ? new DataView(e) : e; - let l = O((u) => u instanceof DataView, "isDataView"), - s = l(e) ? e.byteLength : e.length; - if (s > 0) { - i += t.spacingOuter; - let u = r + t.indent; - for (let d = 0; d < s; d++) { - if (((i += u), d === t.maxWidth)) { - i += "…"; - break; - } - ((l(e) || d in e) && (i += a(l(e) ? e.getInt8(d) : e[d], t, u, n, o)), - d < s - 1 ? (i += `,${t.spacingInner}`) : t.min || (i += ",")); - } - i += t.spacingOuter + r; - } - return i; -} -O(Vo, "printListItems"); -function Fi(e, t, r, n, o, a) { - let i = "", - l = lh(e, t.compareKeys); - if (l.length > 0) { - i += t.spacingOuter; - let s = r + t.indent; - for (let u = 0; u < l.length; u++) { - let d = l[u], - p = a(d, t, s, n, o), - c = a(e[d], t, s, n, o); - ((i += `${s + p}: ${c}`), - u < l.length - 1 ? (i += `,${t.spacingInner}`) : t.min || (i += ",")); - } - i += t.spacingOuter + r; - } - return i; -} -O(Fi, "printObjectProperties"); -var U2 = - typeof Symbol == "function" && Symbol.for - ? Symbol.for("jest.asymmetricMatcher") - : 1267621, - Rl = " ", - W2 = O((e, t, r, n, o, a) => { - let i = e.toString(); - if (i === "ArrayContaining" || i === "ArrayNotContaining") - return ++n > t.maxDepth - ? `[${i}]` - : `${i + Rl}[${Vo(e.sample, t, r, n, o, a)}]`; - if (i === "ObjectContaining" || i === "ObjectNotContaining") - return ++n > t.maxDepth - ? `[${i}]` - : `${i + Rl}{${Fi(e.sample, t, r, n, o, a)}}`; - if ( - i === "StringMatching" || - i === "StringNotMatching" || - i === "StringContaining" || - i === "StringNotContaining" - ) - return i + Rl + a(e.sample, t, r, n, o); - if (typeof e.toAsymmetricMatcher != "function") - throw new TypeError( - `Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`, - ); - return e.toAsymmetricMatcher(); - }, "serialize$5"), - V2 = O((e) => e && e.$$typeof === U2, "test$5"), - q2 = { serialize: W2, test: V2 }, - G2 = " ", - sh = new Set(["DOMStringMap", "NamedNodeMap"]), - Y2 = /^(?:HTML\w*Collection|NodeList)$/; -function uh(e) { - return sh.has(e) || Y2.test(e); -} -O(uh, "testName"); -var K2 = O( - (e) => e && e.constructor && !!e.constructor.name && uh(e.constructor.name), - "test$4", -); -function ch(e) { - return e.constructor.name === "NamedNodeMap"; -} -O(ch, "isNamedNodeMap"); -var X2 = O((e, t, r, n, o, a) => { - let i = e.constructor.name; - return ++n > t.maxDepth - ? `[${i}]` - : (t.min ? "" : i + G2) + - (sh.has(i) - ? `{${Fi(ch(e) ? [...e].reduce((l, s) => ((l[s.name] = s.value), l), {}) : { ...e }, t, r, n, o, a)}}` - : `[${Vo([...e], t, r, n, o, a)}]`); - }, "serialize$4"), - Z2 = { serialize: X2, test: K2 }; -function pc(e) { - return e.replaceAll("<", "<").replaceAll(">", ">"); -} -O(pc, "escapeHTML"); -function _i(e, t, r, n, o, a, i) { - let l = n + r.indent, - s = r.colors; - return e - .map((u) => { - let d = t[u], - p = i(d, r, l, o, a); - return ( - typeof d != "string" && - (p.includes(` -`) && (p = r.spacingOuter + l + p + r.spacingOuter + n), - (p = `{${p}}`)), - `${r.spacingInner + n + s.prop.open + u + s.prop.close}=${s.value.open}${p}${s.value.close}` - ); - }) - .join(""); -} -O(_i, "printProps"); -function Ti(e, t, r, n, o, a) { - return e - .map( - (i) => - t.spacingOuter + - r + - (typeof i == "string" ? fc(i, t) : a(i, t, r, n, o)), - ) - .join(""); -} -O(Ti, "printChildren"); -function fc(e, t) { - let r = t.colors.content; - return r.open + pc(e) + r.close; -} -O(fc, "printText"); -function dh(e, t) { - let r = t.colors.comment; - return `${r.open}${r.close}`; -} -O(dh, "printComment"); -function Ri(e, t, r, n, o) { - let a = n.colors.tag; - return `${a.open}<${e}${t && a.close + t + n.spacingOuter + o + a.open}${r ? `>${a.close}${r}${n.spacingOuter}${o}${a.open}${a.close}`; -} -O(Ri, "printElement"); -function Pi(e, t) { - let r = t.colors.tag; - return `${r.open}<${e}${r.close} …${r.open} />${r.close}`; -} -O(Pi, "printElementAsLeaf"); -var J2 = 1, - ph = 3, - fh = 8, - gh = 11, - Q2 = /^(?:(?:HTML|SVG)\w*)?Element$/; -function mh(e) { - try { - return typeof e.hasAttribute == "function" && e.hasAttribute("is"); - } catch { - return !1; - } -} -O(mh, "testHasAttribute"); -function hh(e) { - let t = e.constructor.name, - { nodeType: r, tagName: n } = e, - o = (typeof n == "string" && n.includes("-")) || mh(e); - return ( - (r === J2 && (Q2.test(t) || o)) || - (r === ph && t === "Text") || - (r === fh && t === "Comment") || - (r === gh && t === "DocumentFragment") - ); -} -O(hh, "testNode"); -var eC = O((e) => { - var t; - return ( - (e == null || (t = e.constructor) === null || t === void 0 - ? void 0 - : t.name) && hh(e) - ); -}, "test$3"); -function yh(e) { - return e.nodeType === ph; -} -O(yh, "nodeIsText"); -function bh(e) { - return e.nodeType === fh; -} -O(bh, "nodeIsComment"); -function Ra(e) { - return e.nodeType === gh; -} -O(Ra, "nodeIsFragment"); -var tC = O((e, t, r, n, o, a) => { - if (yh(e)) return fc(e.data, t); - if (bh(e)) return dh(e.data, t); - let i = Ra(e) ? "DocumentFragment" : e.tagName.toLowerCase(); - return ++n > t.maxDepth - ? Pi(i, t) - : Ri( - i, - _i( - Ra(e) ? [] : Array.from(e.attributes, (l) => l.name).sort(), - Ra(e) - ? {} - : [...e.attributes].reduce( - (l, s) => ((l[s.name] = s.value), l), - {}, - ), - t, - r + t.indent, - n, - o, - a, - ), - Ti( - Array.prototype.slice.call(e.childNodes || e.children), - t, - r + t.indent, - n, - o, - a, - ), - t, - r, - ); - }, "serialize$3"), - rC = { serialize: tC, test: eC }, - nC = "@@__IMMUTABLE_ITERABLE__@@", - oC = "@@__IMMUTABLE_LIST__@@", - aC = "@@__IMMUTABLE_KEYED__@@", - iC = "@@__IMMUTABLE_MAP__@@", - Tp = "@@__IMMUTABLE_ORDERED__@@", - lC = "@@__IMMUTABLE_RECORD__@@", - sC = "@@__IMMUTABLE_SEQ__@@", - uC = "@@__IMMUTABLE_SET__@@", - cC = "@@__IMMUTABLE_STACK__@@", - In = O((e) => `Immutable.${e}`, "getImmutableName"), - Ii = O((e) => `[${e}]`, "printAsLeaf"), - qo = " ", - Rp = "…"; -function vh(e, t, r, n, o, a, i) { - return ++n > t.maxDepth - ? Ii(In(i)) - : `${In(i) + qo}{${oo(e.entries(), t, r, n, o, a)}}`; -} -O(vh, "printImmutableEntries"); -function xh(e) { - let t = 0; - return { - next() { - if (t < e._keys.length) { - let r = e._keys[t++]; - return { done: !1, value: [r, e.get(r)] }; - } - return { done: !0, value: void 0 }; - }, - }; -} -O(xh, "getRecordEntries"); -function Eh(e, t, r, n, o, a) { - let i = In(e._name || "Record"); - return ++n > t.maxDepth ? Ii(i) : `${i + qo}{${oo(xh(e), t, r, n, o, a)}}`; -} -O(Eh, "printImmutableRecord"); -function wh(e, t, r, n, o, a) { - let i = In("Seq"); - return ++n > t.maxDepth - ? Ii(i) - : e[aC] - ? `${i + qo}{${e._iter || e._object ? oo(e.entries(), t, r, n, o, a) : Rp}}` - : `${i + qo}[${e._iter || e._array || e._collection || e._iterable ? Oi(e.values(), t, r, n, o, a) : Rp}]`; -} -O(wh, "printImmutableSeq"); -function Pa(e, t, r, n, o, a, i) { - return ++n > t.maxDepth - ? Ii(In(i)) - : `${In(i) + qo}[${Oi(e.values(), t, r, n, o, a)}]`; -} -O(Pa, "printImmutableValues"); -var dC = O( - (e, t, r, n, o, a) => - e[iC] - ? vh(e, t, r, n, o, a, e[Tp] ? "OrderedMap" : "Map") - : e[oC] - ? Pa(e, t, r, n, o, a, "List") - : e[uC] - ? Pa(e, t, r, n, o, a, e[Tp] ? "OrderedSet" : "Set") - : e[cC] - ? Pa(e, t, r, n, o, a, "Stack") - : e[sC] - ? wh(e, t, r, n, o, a) - : Eh(e, t, r, n, o, a), - "serialize$2", - ), - pC = O((e) => e && (e[nC] === !0 || e[lC] === !0), "test$2"), - fC = { serialize: dC, test: pC }; -function gc(e) { - return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") - ? e.default - : e; -} -O(gc, "getDefaultExportFromCjs"); -var Pp = { exports: {} }, - ge = {}, - Ip; -function Sh() { - return ( - Ip || - ((Ip = 1), - (function () { - function e(y) { - if (typeof y == "object" && y !== null) { - var x = y.$$typeof; - switch (x) { - case t: - switch (((y = y.type), y)) { - case n: - case a: - case o: - case u: - case d: - case f: - return y; - default: - switch (((y = y && y.$$typeof), y)) { - case l: - case s: - case c: - case p: - return y; - case i: - return y; - default: - return x; - } - } - case r: - return x; - } - } - } - O(e, "typeOf"); - var t = Symbol.for("react.transitional.element"), - r = Symbol.for("react.portal"), - n = Symbol.for("react.fragment"), - o = Symbol.for("react.strict_mode"), - a = Symbol.for("react.profiler"), - i = Symbol.for("react.consumer"), - l = Symbol.for("react.context"), - s = Symbol.for("react.forward_ref"), - u = Symbol.for("react.suspense"), - d = Symbol.for("react.suspense_list"), - p = Symbol.for("react.memo"), - c = Symbol.for("react.lazy"), - f = Symbol.for("react.view_transition"), - g = Symbol.for("react.client.reference"); - ((ge.ContextConsumer = i), - (ge.ContextProvider = l), - (ge.Element = t), - (ge.ForwardRef = s), - (ge.Fragment = n), - (ge.Lazy = c), - (ge.Memo = p), - (ge.Portal = r), - (ge.Profiler = a), - (ge.StrictMode = o), - (ge.Suspense = u), - (ge.SuspenseList = d), - (ge.isContextConsumer = function (y) { - return e(y) === i; - }), - (ge.isContextProvider = function (y) { - return e(y) === l; - }), - (ge.isElement = function (y) { - return typeof y == "object" && y !== null && y.$$typeof === t; - }), - (ge.isForwardRef = function (y) { - return e(y) === s; - }), - (ge.isFragment = function (y) { - return e(y) === n; - }), - (ge.isLazy = function (y) { - return e(y) === c; - }), - (ge.isMemo = function (y) { - return e(y) === p; - }), - (ge.isPortal = function (y) { - return e(y) === r; - }), - (ge.isProfiler = function (y) { - return e(y) === a; - }), - (ge.isStrictMode = function (y) { - return e(y) === o; - }), - (ge.isSuspense = function (y) { - return e(y) === u; - }), - (ge.isSuspenseList = function (y) { - return e(y) === d; - }), - (ge.isValidElementType = function (y) { - return ( - typeof y == "string" || - typeof y == "function" || - y === n || - y === a || - y === o || - y === u || - y === d || - (typeof y == "object" && - y !== null && - (y.$$typeof === c || - y.$$typeof === p || - y.$$typeof === l || - y.$$typeof === i || - y.$$typeof === s || - y.$$typeof === g || - y.getModuleId !== void 0)) - ); - }), - (ge.typeOf = e)); - })()), - ge - ); -} -O(Sh, "requireReactIs_development$1"); -var Lp; -function Ch() { - return (Lp || ((Lp = 1), (Pp.exports = Sh())), Pp.exports); -} -O(Ch, "requireReactIs$1"); -var $h = Ch(), - gC = gc($h), - mC = dc({ __proto__: null, default: gC }, [$h]), - Bp = { exports: {} }, - pe = {}, - Np; -function Ah() { - return ( - Np || - ((Np = 1), - (function () { - var e = Symbol.for("react.element"), - t = Symbol.for("react.portal"), - r = Symbol.for("react.fragment"), - n = Symbol.for("react.strict_mode"), - o = Symbol.for("react.profiler"), - a = Symbol.for("react.provider"), - i = Symbol.for("react.context"), - l = Symbol.for("react.server_context"), - s = Symbol.for("react.forward_ref"), - u = Symbol.for("react.suspense"), - d = Symbol.for("react.suspense_list"), - p = Symbol.for("react.memo"), - c = Symbol.for("react.lazy"), - f = Symbol.for("react.offscreen"), - g = !1, - y = !1, - x = !1, - v = !1, - C = !1, - w; - w = Symbol.for("react.module.reference"); - function E(U) { - return !!( - typeof U == "string" || - typeof U == "function" || - U === r || - U === o || - C || - U === n || - U === u || - U === d || - v || - U === f || - g || - y || - x || - (typeof U == "object" && - U !== null && - (U.$$typeof === c || - U.$$typeof === p || - U.$$typeof === a || - U.$$typeof === i || - U.$$typeof === s || - U.$$typeof === w || - U.getModuleId !== void 0)) - ); - } - O(E, "isValidElementType"); - function $(U) { - if (typeof U == "object" && U !== null) { - var fe = U.$$typeof; - switch (fe) { - case e: - var ke = U.type; - switch (ke) { - case r: - case o: - case n: - case u: - case d: - return ke; - default: - var be = ke && ke.$$typeof; - switch (be) { - case l: - case i: - case s: - case c: - case p: - case a: - return be; - default: - return fe; - } - } - case t: - return fe; - } - } - } - O($, "typeOf"); - var A = i, - S = a, - D = e, - F = s, - k = r, - _ = c, - I = p, - L = t, - j = o, - B = n, - z = u, - V = d, - Y = !1, - W = !1; - function G(U) { - return ( - Y || - ((Y = !0), - console.warn( - "The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.", - )), - !1 - ); - } - O(G, "isAsyncMode"); - function J(U) { - return ( - W || - ((W = !0), - console.warn( - "The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.", - )), - !1 - ); - } - O(J, "isConcurrentMode"); - function Q(U) { - return $(U) === i; - } - O(Q, "isContextConsumer"); - function re(U) { - return $(U) === a; - } - O(re, "isContextProvider"); - function ie(U) { - return typeof U == "object" && U !== null && U.$$typeof === e; - } - O(ie, "isElement"); - function H(U) { - return $(U) === s; - } - O(H, "isForwardRef"); - function X(U) { - return $(U) === r; - } - O(X, "isFragment"); - function Z(U) { - return $(U) === c; - } - O(Z, "isLazy"); - function le(U) { - return $(U) === p; - } - O(le, "isMemo"); - function me(U) { - return $(U) === t; - } - O(me, "isPortal"); - function Re(U) { - return $(U) === o; - } - O(Re, "isProfiler"); - function ne(U) { - return $(U) === n; - } - O(ne, "isStrictMode"); - function de(U) { - return $(U) === u; - } - O(de, "isSuspense"); - function M(U) { - return $(U) === d; - } - (O(M, "isSuspenseList"), - (pe.ContextConsumer = A), - (pe.ContextProvider = S), - (pe.Element = D), - (pe.ForwardRef = F), - (pe.Fragment = k), - (pe.Lazy = _), - (pe.Memo = I), - (pe.Portal = L), - (pe.Profiler = j), - (pe.StrictMode = B), - (pe.Suspense = z), - (pe.SuspenseList = V), - (pe.isAsyncMode = G), - (pe.isConcurrentMode = J), - (pe.isContextConsumer = Q), - (pe.isContextProvider = re), - (pe.isElement = ie), - (pe.isForwardRef = H), - (pe.isFragment = X), - (pe.isLazy = Z), - (pe.isMemo = le), - (pe.isPortal = me), - (pe.isProfiler = Re), - (pe.isStrictMode = ne), - (pe.isSuspense = de), - (pe.isSuspenseList = M), - (pe.isValidElementType = E), - (pe.typeOf = $)); - })()), - pe - ); -} -O(Ah, "requireReactIs_development"); -var jp; -function Dh() { - return (jp || ((jp = 1), (Bp.exports = Ah())), Bp.exports); -} -O(Dh, "requireReactIs"); -var kh = Dh(), - hC = gc(kh), - yC = dc({ __proto__: null, default: hC }, [kh]), - bC = [ - "isAsyncMode", - "isConcurrentMode", - "isContextConsumer", - "isContextProvider", - "isElement", - "isForwardRef", - "isFragment", - "isLazy", - "isMemo", - "isPortal", - "isProfiler", - "isStrictMode", - "isSuspense", - "isSuspenseList", - "isValidElementType", - ], - jr = Object.fromEntries(bC.map((e) => [e, (t) => yC[e](t) || mC[e](t)])); -function mc(e, t = []) { - if (Array.isArray(e)) for (let r of e) mc(r, t); - else e != null && e !== !1 && e !== "" && t.push(e); - return t; -} -O(mc, "getChildren"); -function Fs(e) { - let t = e.type; - if (typeof t == "string") return t; - if (typeof t == "function") return t.displayName || t.name || "Unknown"; - if (jr.isFragment(e)) return "React.Fragment"; - if (jr.isSuspense(e)) return "React.Suspense"; - if (typeof t == "object" && t !== null) { - if (jr.isContextProvider(e)) return "Context.Provider"; - if (jr.isContextConsumer(e)) return "Context.Consumer"; - if (jr.isForwardRef(e)) { - if (t.displayName) return t.displayName; - let r = t.render.displayName || t.render.name || ""; - return r === "" ? "ForwardRef" : `ForwardRef(${r})`; - } - if (jr.isMemo(e)) { - let r = t.displayName || t.type.displayName || t.type.name || ""; - return r === "" ? "Memo" : `Memo(${r})`; - } - } - return "UNDEFINED"; -} -O(Fs, "getType"); -function Oh(e) { - let { props: t } = e; - return Object.keys(t) - .filter((r) => r !== "children" && t[r] !== void 0) - .sort(); -} -O(Oh, "getPropKeys$1"); -var vC = O( - (e, t, r, n, o, a) => - ++n > t.maxDepth - ? Pi(Fs(e), t) - : Ri( - Fs(e), - _i(Oh(e), e.props, t, r + t.indent, n, o, a), - Ti(mc(e.props.children), t, r + t.indent, n, o, a), - t, - r, - ), - "serialize$1", - ), - xC = O((e) => e != null && jr.isElement(e), "test$1"), - EC = { serialize: vC, test: xC }, - wC = - typeof Symbol == "function" && Symbol.for - ? Symbol.for("react.test.json") - : 245830487; -function Fh(e) { - let { props: t } = e; - return t - ? Object.keys(t) - .filter((r) => t[r] !== void 0) - .sort() - : []; -} -O(Fh, "getPropKeys"); -var SC = O( - (e, t, r, n, o, a) => - ++n > t.maxDepth - ? Pi(e.type, t) - : Ri( - e.type, - e.props ? _i(Fh(e), e.props, t, r + t.indent, n, o, a) : "", - e.children ? Ti(e.children, t, r + t.indent, n, o, a) : "", - t, - r, - ), - "serialize", - ), - CC = O((e) => e && e.$$typeof === wC, "test"), - $C = { serialize: SC, test: CC }, - _h = Object.prototype.toString, - AC = Date.prototype.toISOString, - DC = Error.prototype.toString, - Mp = RegExp.prototype.toString; -function Po(e) { - return (typeof e.constructor == "function" && e.constructor.name) || "Object"; -} -O(Po, "getConstructorName"); -function Th(e) { - return typeof window < "u" && e === window; -} -O(Th, "isWindow"); -var kC = /^Symbol\((.*)\)(.*)$/, - OC = /\n/g, - Rh = class extends Error { - constructor(t, r) { - (super(t), (this.stack = r), (this.name = this.constructor.name)); - } - }; -O(Rh, "PrettyFormatPluginError"); -var Ph = Rh; -function Ih(e) { - return ( - e === "[object Array]" || - e === "[object ArrayBuffer]" || - e === "[object DataView]" || - e === "[object Float32Array]" || - e === "[object Float64Array]" || - e === "[object Int8Array]" || - e === "[object Int16Array]" || - e === "[object Int32Array]" || - e === "[object Uint8Array]" || - e === "[object Uint8ClampedArray]" || - e === "[object Uint16Array]" || - e === "[object Uint32Array]" - ); -} -O(Ih, "isToStringedArrayType"); -function Lh(e) { - return Object.is(e, -0) ? "-0" : String(e); -} -O(Lh, "printNumber"); -function Bh(e) { - return `${e}n`; -} -O(Bh, "printBigInt"); -function _s(e, t) { - return t ? `[Function ${e.name || "anonymous"}]` : "[Function]"; -} -O(_s, "printFunction"); -function Ts(e) { - return String(e).replace(kC, "Symbol($1)"); -} -O(Ts, "printSymbol"); -function Rs(e) { - return `[${DC.call(e)}]`; -} -O(Rs, "printError"); -function hc(e, t, r, n) { - if (e === !0 || e === !1) return `${e}`; - if (e === void 0) return "undefined"; - if (e === null) return "null"; - let o = typeof e; - if (o === "number") return Lh(e); - if (o === "bigint") return Bh(e); - if (o === "string") - return n ? `"${e.replaceAll(/"|\\/g, "\\$&")}"` : `"${e}"`; - if (o === "function") return _s(e, t); - if (o === "symbol") return Ts(e); - let a = _h.call(e); - return a === "[object WeakMap]" - ? "WeakMap {}" - : a === "[object WeakSet]" - ? "WeakSet {}" - : a === "[object Function]" || a === "[object GeneratorFunction]" - ? _s(e, t) - : a === "[object Symbol]" - ? Ts(e) - : a === "[object Date]" - ? Number.isNaN(+e) - ? "Date { NaN }" - : AC.call(e) - : a === "[object Error]" - ? Rs(e) - : a === "[object RegExp]" - ? r - ? Mp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g, "\\$&") - : Mp.call(e) - : e instanceof Error - ? Rs(e) - : null; -} -O(hc, "printBasicValue"); -function yc(e, t, r, n, o, a) { - if (o.includes(e)) return "[Circular]"; - ((o = [...o]), o.push(e)); - let i = ++n > t.maxDepth, - l = t.min; - if (t.callToJSON && !i && e.toJSON && typeof e.toJSON == "function" && !a) - return Qt(e.toJSON(), t, r, n, o, !0); - let s = _h.call(e); - return s === "[object Arguments]" - ? i - ? "[Arguments]" - : `${l ? "" : "Arguments "}[${Vo(e, t, r, n, o, Qt)}]` - : Ih(s) - ? i - ? `[${e.constructor.name}]` - : `${l || (!t.printBasicPrototype && e.constructor.name === "Array") ? "" : `${e.constructor.name} `}[${Vo(e, t, r, n, o, Qt)}]` - : s === "[object Map]" - ? i - ? "[Map]" - : `Map {${oo(e.entries(), t, r, n, o, Qt, " => ")}}` - : s === "[object Set]" - ? i - ? "[Set]" - : `Set {${Oi(e.values(), t, r, n, o, Qt)}}` - : i || Th(e) - ? `[${Po(e)}]` - : `${l || (!t.printBasicPrototype && Po(e) === "Object") ? "" : `${Po(e)} `}{${Fi(e, t, r, n, o, Qt)}}`; -} -O(yc, "printComplexValue"); -var FC = { - test: O((e) => e && e instanceof Error, "test"), - serialize(e, t, r, n, o, a) { - if (o.includes(e)) return "[Circular]"; - o = [...o, e]; - let i = ++n > t.maxDepth, - { message: l, cause: s, ...u } = e, - d = { - message: l, - ...(typeof s < "u" ? { cause: s } : {}), - ...(e instanceof AggregateError ? { errors: e.errors } : {}), - ...u, - }, - p = e.name !== "Error" ? e.name : Po(e); - return i - ? `[${p}]` - : `${p} {${oo(Object.entries(d).values(), t, r, n, o, a)}}`; - }, -}; -function Nh(e) { - return e.serialize != null; -} -O(Nh, "isNewPlugin"); -function bc(e, t, r, n, o, a) { - let i; - try { - i = Nh(e) - ? e.serialize(t, r, n, o, a, Qt) - : e.print( - t, - (l) => Qt(l, r, n, o, a), - (l) => { - let s = n + r.indent; - return ( - s + - l.replaceAll( - OC, - ` -${s}`, - ) - ); - }, - { edgeSpacing: r.spacingOuter, min: r.min, spacing: r.spacingInner }, - r.colors, - ); - } catch (l) { - throw new Ph(l.message, l.stack); - } - if (typeof i != "string") - throw new TypeError( - `pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`, - ); - return i; -} -O(bc, "printPlugin"); -function vc(e, t) { - for (let r of e) - try { - if (r.test(t)) return r; - } catch (n) { - throw new Ph(n.message, n.stack); - } - return null; -} -O(vc, "findPlugin"); -function Qt(e, t, r, n, o, a) { - let i = vc(t.plugins, e); - if (i !== null) return bc(i, e, t, r, n, o); - let l = hc(e, t.printFunctionName, t.escapeRegex, t.escapeString); - return l !== null ? l : yc(e, t, r, n, o, a); -} -O(Qt, "printer"); -var xc = { - comment: "gray", - content: "reset", - prop: "yellow", - tag: "cyan", - value: "green", - }, - jh = Object.keys(xc), - Et = { - callToJSON: !0, - compareKeys: void 0, - escapeRegex: !1, - escapeString: !0, - highlight: !1, - indent: 2, - maxDepth: Number.POSITIVE_INFINITY, - maxWidth: Number.POSITIVE_INFINITY, - min: !1, - plugins: [], - printBasicPrototype: !0, - printFunctionName: !0, - theme: xc, - }; -function Mh(e) { - for (let t of Object.keys(e)) - if (!Object.prototype.hasOwnProperty.call(Et, t)) - throw new Error(`pretty-format: Unknown option "${t}".`); - if (e.min && e.indent !== void 0 && e.indent !== 0) - throw new Error( - 'pretty-format: Options "min" and "indent" cannot be used together.', - ); -} -O(Mh, "validateOptions"); -function zh() { - return jh.reduce((e, t) => { - let r = xc[t], - n = r && tr[r]; - if (n && typeof n.close == "string" && typeof n.open == "string") e[t] = n; - else - throw new Error( - `pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`, - ); - return e; - }, Object.create(null)); -} -O(zh, "getColorsHighlight"); -function Hh() { - return jh.reduce( - (e, t) => ((e[t] = { close: "", open: "" }), e), - Object.create(null), - ); -} -O(Hh, "getColorsEmpty"); -function Ec(e) { - return e?.printFunctionName ?? Et.printFunctionName; -} -O(Ec, "getPrintFunctionName"); -function wc(e) { - return e?.escapeRegex ?? Et.escapeRegex; -} -O(wc, "getEscapeRegex"); -function Sc(e) { - return e?.escapeString ?? Et.escapeString; -} -O(Sc, "getEscapeString"); -function Ps(e) { - return { - callToJSON: e?.callToJSON ?? Et.callToJSON, - colors: e?.highlight ? zh() : Hh(), - compareKeys: - typeof e?.compareKeys == "function" || e?.compareKeys === null - ? e.compareKeys - : Et.compareKeys, - escapeRegex: wc(e), - escapeString: Sc(e), - indent: e?.min ? "" : Uh(e?.indent ?? Et.indent), - maxDepth: e?.maxDepth ?? Et.maxDepth, - maxWidth: e?.maxWidth ?? Et.maxWidth, - min: e?.min ?? Et.min, - plugins: e?.plugins ?? Et.plugins, - printBasicPrototype: e?.printBasicPrototype ?? !0, - printFunctionName: Ec(e), - spacingInner: e?.min - ? " " - : ` -`, - spacingOuter: e?.min - ? "" - : ` -`, - }; -} -O(Ps, "getConfig"); -function Uh(e) { - return Array.from({ length: e + 1 }).join(" "); -} -O(Uh, "createIndent"); -function At(e, t) { - if (t && (Mh(t), t.plugins)) { - let n = vc(t.plugins, e); - if (n !== null) return bc(n, e, Ps(t), "", 0, []); - } - let r = hc(e, Ec(t), wc(t), Sc(t)); - return r !== null ? r : yc(e, Ps(t), "", 0, []); -} -O(At, "format"); -var Cc = { - AsymmetricMatcher: q2, - DOMCollection: Z2, - DOMElement: rC, - Immutable: fC, - ReactElement: EC, - ReactTestComponent: $C, - Error: FC, - }, - zp = { - bold: ["1", "22"], - dim: ["2", "22"], - italic: ["3", "23"], - underline: ["4", "24"], - inverse: ["7", "27"], - hidden: ["8", "28"], - strike: ["9", "29"], - black: ["30", "39"], - red: ["31", "39"], - green: ["32", "39"], - yellow: ["33", "39"], - blue: ["34", "39"], - magenta: ["35", "39"], - cyan: ["36", "39"], - white: ["37", "39"], - brightblack: ["30;1", "39"], - brightred: ["31;1", "39"], - brightgreen: ["32;1", "39"], - brightyellow: ["33;1", "39"], - brightblue: ["34;1", "39"], - brightmagenta: ["35;1", "39"], - brightcyan: ["36;1", "39"], - brightwhite: ["37;1", "39"], - grey: ["90", "39"], - }, - _C = { - special: "cyan", - number: "yellow", - bigint: "yellow", - boolean: "yellow", - undefined: "grey", - null: "bold", - string: "green", - symbol: "green", - date: "magenta", - regexp: "red", - }, - Ln = "…"; -function Wh(e, t) { - let r = zp[_C[t]] || zp[t] || ""; - return r ? `\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m` : String(e); -} -O(Wh, "colorise"); -function Vh( - { - showHidden: e = !1, - depth: t = 2, - colors: r = !1, - customInspect: n = !0, - showProxy: o = !1, - maxArrayLength: a = 1 / 0, - breakLength: i = 1 / 0, - seen: l = [], - truncate: s = 1 / 0, - stylize: u = String, - } = {}, - d, -) { - let p = { - showHidden: !!e, - depth: Number(t), - colors: !!r, - customInspect: !!n, - showProxy: !!o, - maxArrayLength: Number(a), - breakLength: Number(i), - truncate: Number(s), - seen: l, - inspect: d, - stylize: u, - }; - return (p.colors && (p.stylize = Wh), p); -} -O(Vh, "normaliseOptions"); -function qh(e) { - return e >= "\uD800" && e <= "\uDBFF"; -} -O(qh, "isHighSurrogate"); -function or(e, t, r = Ln) { - e = String(e); - let n = r.length, - o = e.length; - if (n > t && o > n) return r; - if (o > t && o > n) { - let a = t - n; - return (a > 0 && qh(e[a - 1]) && (a = a - 1), `${e.slice(0, a)}${r}`); - } - return e; -} -O(or, "truncate"); -function ft(e, t, r, n = ", ") { - r = r || t.inspect; - let o = e.length; - if (o === 0) return ""; - let a = t.truncate, - i = "", - l = "", - s = ""; - for (let u = 0; u < o; u += 1) { - let d = u + 1 === e.length, - p = u + 2 === e.length; - s = `${Ln}(${e.length - u})`; - let c = e[u]; - t.truncate = a - i.length - (d ? 0 : n.length); - let f = l || r(c, t) + (d ? "" : n), - g = i.length + f.length, - y = g + s.length; - if ( - (d && g > a && i.length + s.length <= a) || - (!d && !p && y > a) || - ((l = d ? "" : r(e[u + 1], t) + (p ? "" : n)), - !d && p && y > a && g + l.length > a) - ) - break; - if (((i += f), !d && !p && g + l.length >= a)) { - s = `${Ln}(${e.length - u - 1})`; - break; - } - s = ""; - } - return `${i}${s}`; -} -O(ft, "inspectList"); -function Gh(e) { - return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/) - ? e - : JSON.stringify(e) - .replace(/'/g, "\\'") - .replace(/\\"/g, '"') - .replace(/(^"|"$)/g, "'"); -} -O(Gh, "quoteComplexKey"); -function Bn([e, t], r) { - return ( - (r.truncate -= 2), - typeof e == "string" - ? (e = Gh(e)) - : typeof e != "number" && (e = `[${r.inspect(e, r)}]`), - (r.truncate -= e.length), - (t = r.inspect(t, r)), - `${e}: ${t}` - ); -} -O(Bn, "inspectProperty"); -function Yh(e, t) { - let r = Object.keys(e).slice(e.length); - if (!e.length && !r.length) return "[]"; - t.truncate -= 4; - let n = ft(e, t); - t.truncate -= n.length; - let o = ""; - return ( - r.length && - (o = ft( - r.map((a) => [a, e[a]]), - t, - Bn, - )), - `[ ${n}${o ? `, ${o}` : ""} ]` - ); -} -O(Yh, "inspectArray"); -var TC = O( - (e) => - typeof Buffer == "function" && e instanceof Buffer - ? "Buffer" - : e[Symbol.toStringTag] - ? e[Symbol.toStringTag] - : e.constructor.name, - "getArrayName", -); -function Lt(e, t) { - let r = TC(e); - t.truncate -= r.length + 4; - let n = Object.keys(e).slice(e.length); - if (!e.length && !n.length) return `${r}[]`; - let o = ""; - for (let i = 0; i < e.length; i++) { - let l = `${t.stylize(or(e[i], t.truncate), "number")}${i === e.length - 1 ? "" : ", "}`; - if (((t.truncate -= l.length), e[i] !== e.length && t.truncate <= 3)) { - o += `${Ln}(${e.length - e[i] + 1})`; - break; - } - o += l; - } - let a = ""; - return ( - n.length && - (a = ft( - n.map((i) => [i, e[i]]), - t, - Bn, - )), - `${r}[ ${o}${a ? `, ${a}` : ""} ]` - ); -} -O(Lt, "inspectTypedArray"); -function Kh(e, t) { - let r = e.toJSON(); - if (r === null) return "Invalid Date"; - let n = r.split("T"), - o = n[0]; - return t.stylize(`${o}T${or(n[1], t.truncate - o.length - 1)}`, "date"); -} -O(Kh, "inspectDate"); -function Is(e, t) { - let r = e[Symbol.toStringTag] || "Function", - n = e.name; - return n - ? t.stylize(`[${r} ${or(n, t.truncate - 11)}]`, "special") - : t.stylize(`[${r}]`, "special"); -} -O(Is, "inspectFunction"); -function Xh([e, t], r) { - return ( - (r.truncate -= 4), - (e = r.inspect(e, r)), - (r.truncate -= e.length), - (t = r.inspect(t, r)), - `${e} => ${t}` - ); -} -O(Xh, "inspectMapEntry"); -function Zh(e) { - let t = []; - return ( - e.forEach((r, n) => { - t.push([n, r]); - }), - t - ); -} -O(Zh, "mapToEntries"); -function Jh(e, t) { - return e.size === 0 - ? "Map{}" - : ((t.truncate -= 7), `Map{ ${ft(Zh(e), t, Xh)} }`); -} -O(Jh, "inspectMap"); -var RC = Number.isNaN || ((e) => e !== e); -function Ls(e, t) { - return RC(e) - ? t.stylize("NaN", "number") - : e === 1 / 0 - ? t.stylize("Infinity", "number") - : e === -1 / 0 - ? t.stylize("-Infinity", "number") - : e === 0 - ? t.stylize(1 / e === 1 / 0 ? "+0" : "-0", "number") - : t.stylize(or(String(e), t.truncate), "number"); -} -O(Ls, "inspectNumber"); -function Bs(e, t) { - let r = or(e.toString(), t.truncate - 1); - return (r !== Ln && (r += "n"), t.stylize(r, "bigint")); -} -O(Bs, "inspectBigInt"); -function Qh(e, t) { - let r = e.toString().split("/")[2], - n = t.truncate - (2 + r.length), - o = e.source; - return t.stylize(`/${or(o, n)}/${r}`, "regexp"); -} -O(Qh, "inspectRegExp"); -function e0(e) { - let t = []; - return ( - e.forEach((r) => { - t.push(r); - }), - t - ); -} -O(e0, "arrayFromSet"); -function t0(e, t) { - return e.size === 0 ? "Set{}" : ((t.truncate -= 7), `Set{ ${ft(e0(e), t)} }`); -} -O(t0, "inspectSet"); -var Hp = new RegExp( - "['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]", - "g", - ), - PC = { - "\b": "\\b", - " ": "\\t", - "\n": "\\n", - "\f": "\\f", - "\r": "\\r", - "'": "\\'", - "\\": "\\\\", - }, - IC = 16; -function r0(e) { - return PC[e] || `\\u${`0000${e.charCodeAt(0).toString(IC)}`.slice(-4)}`; -} -O(r0, "escape"); -function Ns(e, t) { - return ( - Hp.test(e) && (e = e.replace(Hp, r0)), - t.stylize(`'${or(e, t.truncate - 2)}'`, "string") - ); -} -O(Ns, "inspectString"); -function js(e) { - return "description" in Symbol.prototype - ? e.description - ? `Symbol(${e.description})` - : "Symbol()" - : e.toString(); -} -O(js, "inspectSymbol"); -var n0 = O(() => "Promise{…}", "getPromiseValue"); -try { - let { - getPromiseDetails: e, - kPending: t, - kRejected: r, - } = process.binding("util"); - Array.isArray(e(Promise.resolve())) && - (n0 = O((n, o) => { - let [a, i] = e(n); - return a === t - ? "Promise{}" - : `Promise${a === r ? "!" : ""}{${o.inspect(i, o)}}`; - }, "getPromiseValue")); -} catch {} -var LC = n0; -function Io(e, t) { - let r = Object.getOwnPropertyNames(e), - n = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) : []; - if (r.length === 0 && n.length === 0) return "{}"; - if (((t.truncate -= 4), (t.seen = t.seen || []), t.seen.includes(e))) - return "[Circular]"; - t.seen.push(e); - let o = ft( - r.map((l) => [l, e[l]]), - t, - Bn, - ), - a = ft( - n.map((l) => [l, e[l]]), - t, - Bn, - ); - t.seen.pop(); - let i = ""; - return (o && a && (i = ", "), `{ ${o}${i}${a} }`); -} -O(Io, "inspectObject"); -var Pl = typeof Symbol < "u" && Symbol.toStringTag ? Symbol.toStringTag : !1; -function o0(e, t) { - let r = ""; - return ( - Pl && Pl in e && (r = e[Pl]), - (r = r || e.constructor.name), - (!r || r === "_class") && (r = ""), - (t.truncate -= r.length), - `${r}${Io(e, t)}` - ); -} -O(o0, "inspectClass"); -function a0(e, t) { - return e.length === 0 - ? "Arguments[]" - : ((t.truncate -= 13), `Arguments[ ${ft(e, t)} ]`); -} -O(a0, "inspectArguments"); -var BC = [ - "stack", - "line", - "column", - "name", - "message", - "fileName", - "lineNumber", - "columnNumber", - "number", - "description", - "cause", -]; -function i0(e, t) { - let r = Object.getOwnPropertyNames(e).filter((i) => BC.indexOf(i) === -1), - n = e.name; - t.truncate -= n.length; - let o = ""; - if ( - (typeof e.message == "string" - ? (o = or(e.message, t.truncate)) - : r.unshift("message"), - (o = o ? `: ${o}` : ""), - (t.truncate -= o.length + 5), - (t.seen = t.seen || []), - t.seen.includes(e)) - ) - return "[Circular]"; - t.seen.push(e); - let a = ft( - r.map((i) => [i, e[i]]), - t, - Bn, - ); - return `${n}${o}${a ? ` { ${a} }` : ""}`; -} -O(i0, "inspectObject"); -function l0([e, t], r) { - return ( - (r.truncate -= 3), - t - ? `${r.stylize(String(e), "yellow")}=${r.stylize(`"${t}"`, "string")}` - : `${r.stylize(String(e), "yellow")}` - ); -} -O(l0, "inspectAttribute"); -function Xa(e, t) { - return ft( - e, - t, - s0, - ` -`, - ); -} -O(Xa, "inspectNodeCollection"); -function s0(e, t) { - switch (e.nodeType) { - case 1: - return $c(e, t); - case 3: - return t.inspect(e.data, t); - default: - return t.inspect(e, t); - } -} -O(s0, "inspectNode"); -function $c(e, t) { - let r = e.getAttributeNames(), - n = e.tagName.toLowerCase(), - o = t.stylize(`<${n}`, "special"), - a = t.stylize(">", "special"), - i = t.stylize(``, "special"); - t.truncate -= n.length * 2 + 5; - let l = ""; - (r.length > 0 && - ((l += " "), - (l += ft( - r.map((d) => [d, e.getAttribute(d)]), - t, - l0, - " ", - ))), - (t.truncate -= l.length)); - let s = t.truncate, - u = Xa(e.children, t); - return ( - u && u.length > s && (u = `${Ln}(${e.children.length})`), - `${o}${l}${a}${u}${i}` - ); -} -O($c, "inspectHTML"); -var NC = typeof Symbol == "function" && typeof Symbol.for == "function", - Il = NC ? Symbol.for("chai/inspect") : "@@chai/inspect", - Ll = Symbol.for("nodejs.util.inspect.custom"), - Up = new WeakMap(), - Wp = {}, - Vp = { - undefined: O((e, t) => t.stylize("undefined", "undefined"), "undefined"), - null: O((e, t) => t.stylize("null", "null"), "null"), - boolean: O((e, t) => t.stylize(String(e), "boolean"), "boolean"), - Boolean: O((e, t) => t.stylize(String(e), "boolean"), "Boolean"), - number: Ls, - Number: Ls, - bigint: Bs, - BigInt: Bs, - string: Ns, - String: Ns, - function: Is, - Function: Is, - symbol: js, - Symbol: js, - Array: Yh, - Date: Kh, - Map: Jh, - Set: t0, - RegExp: Qh, - Promise: LC, - WeakSet: O((e, t) => t.stylize("WeakSet{…}", "special"), "WeakSet"), - WeakMap: O((e, t) => t.stylize("WeakMap{…}", "special"), "WeakMap"), - Arguments: a0, - Int8Array: Lt, - Uint8Array: Lt, - Uint8ClampedArray: Lt, - Int16Array: Lt, - Uint16Array: Lt, - Int32Array: Lt, - Uint32Array: Lt, - Float32Array: Lt, - Float64Array: Lt, - Generator: O(() => "", "Generator"), - DataView: O(() => "", "DataView"), - ArrayBuffer: O(() => "", "ArrayBuffer"), - Error: i0, - HTMLCollection: Xa, - NodeList: Xa, - }, - jC = O( - (e, t, r) => - Il in e && typeof e[Il] == "function" - ? e[Il](t) - : Ll in e && typeof e[Ll] == "function" - ? e[Ll](t.depth, t) - : "inspect" in e && typeof e.inspect == "function" - ? e.inspect(t.depth, t) - : "constructor" in e && Up.has(e.constructor) - ? Up.get(e.constructor)(e, t) - : Wp[r] - ? Wp[r](e, t) - : "", - "inspectCustom", - ), - MC = Object.prototype.toString; -function Za(e, t = {}) { - let r = Vh(t, Za), - { customInspect: n } = r, - o = e === null ? "null" : typeof e; - if ((o === "object" && (o = MC.call(e).slice(8, -1)), o in Vp)) - return Vp[o](e, r); - if (n && e) { - let i = jC(e, r, o); - if (i) return typeof i == "string" ? i : Za(i, r); - } - let a = e ? Object.getPrototypeOf(e) : !1; - return a === Object.prototype || a === null - ? Io(e, r) - : e && typeof HTMLElement == "function" && e instanceof HTMLElement - ? $c(e, r) - : "constructor" in e - ? e.constructor !== Object - ? o0(e, r) - : Io(e, r) - : e === Object(e) - ? Io(e, r) - : r.stylize(String(e), o); -} -O(Za, "inspect"); -var { - AsymmetricMatcher: zC, - DOMCollection: HC, - DOMElement: UC, - Immutable: WC, - ReactElement: VC, - ReactTestComponent: qC, - } = Cc, - qp = [qC, VC, UC, HC, WC, zC]; -function Nn(e, t = 10, { maxLength: r, ...n } = {}) { - let o = r ?? 1e4, - a; - try { - a = At(e, { maxDepth: t, escapeString: !1, plugins: qp, ...n }); - } catch { - a = At(e, { - callToJSON: !1, - maxDepth: t, - escapeString: !1, - plugins: qp, - ...n, - }); - } - return a.length >= o && t > 1 - ? Nn(e, Math.floor(Math.min(t, Number.MAX_SAFE_INTEGER) / 2), { - maxLength: r, - ...n, - }) - : a; -} -O(Nn, "stringify"); -var GC = /%[sdjifoOc%]/g; -function u0(...e) { - if (typeof e[0] != "string") { - let a = []; - for (let i = 0; i < e.length; i++) - a.push(bn(e[i], { depth: 0, colors: !1 })); - return a.join(" "); - } - let t = e.length, - r = 1, - n = e[0], - o = String(n).replace(GC, (a) => { - if (a === "%%") return "%"; - if (r >= t) return a; - switch (a) { - case "%s": { - let i = e[r++]; - return typeof i == "bigint" - ? `${i.toString()}n` - : typeof i == "number" && i === 0 && 1 / i < 0 - ? "-0" - : typeof i == "object" && i !== null - ? typeof i.toString == "function" && - i.toString !== Object.prototype.toString - ? i.toString() - : bn(i, { depth: 0, colors: !1 }) - : String(i); - } - case "%d": { - let i = e[r++]; - return typeof i == "bigint" - ? `${i.toString()}n` - : Number(i).toString(); - } - case "%i": { - let i = e[r++]; - return typeof i == "bigint" - ? `${i.toString()}n` - : Number.parseInt(String(i)).toString(); - } - case "%f": - return Number.parseFloat(String(e[r++])).toString(); - case "%o": - return bn(e[r++], { showHidden: !0, showProxy: !0 }); - case "%O": - return bn(e[r++]); - case "%c": - return (r++, ""); - case "%j": - try { - return JSON.stringify(e[r++]); - } catch (i) { - let l = i.message; - if ( - l.includes("circular structure") || - l.includes("cyclic structures") || - l.includes("cyclic object") - ) - return "[Circular]"; - throw i; - } - default: - return a; - } - }); - for (let a = e[r]; r < t; a = e[++r]) - a === null || typeof a != "object" ? (o += ` ${a}`) : (o += ` ${bn(a)}`); - return o; -} -O(u0, "format"); -function bn(e, t = {}) { - return ( - t.truncate === 0 && (t.truncate = Number.POSITIVE_INFINITY), - Za(e, t) - ); -} -O(bn, "inspect"); -function c0(e) { - return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") - ? e.default - : e; -} -O(c0, "getDefaultExportFromCjs"); -function d0(e) { - return ( - e === Object.prototype || e === Function.prototype || e === RegExp.prototype - ); -} -O(d0, "isFinalObj"); -function Ja(e) { - return Object.prototype.toString.apply(e).slice(8, -1); -} -O(Ja, "getType"); -function p0(e, t) { - let r = typeof t == "function" ? t : (n) => t.add(n); - (Object.getOwnPropertyNames(e).forEach(r), - Object.getOwnPropertySymbols(e).forEach(r)); -} -O(p0, "collectOwnProperties"); -function Ac(e) { - let t = new Set(); - return d0(e) ? [] : (p0(e, t), Array.from(t)); -} -O(Ac, "getOwnProperties"); -var f0 = { forceWritable: !1 }; -function Ms(e, t = f0) { - return Qa(e, new WeakMap(), t); -} -O(Ms, "deepClone"); -function Qa(e, t, r = f0) { - let n, o; - if (t.has(e)) return t.get(e); - if (Array.isArray(e)) { - for (o = Array.from({ length: (n = e.length) }), t.set(e, o); n--; ) - o[n] = Qa(e[n], t, r); - return o; - } - if (Object.prototype.toString.call(e) === "[object Object]") { - ((o = Object.create(Object.getPrototypeOf(e))), t.set(e, o)); - let a = Ac(e); - for (let i of a) { - let l = Object.getOwnPropertyDescriptor(e, i); - if (!l) continue; - let s = Qa(e[i], t, r); - r.forceWritable - ? Object.defineProperty(o, i, { - enumerable: l.enumerable, - configurable: !0, - writable: !0, - value: s, - }) - : "get" in l - ? Object.defineProperty(o, i, { - ...l, - get() { - return s; - }, - }) - : Object.defineProperty(o, i, { ...l, value: s }); - } - return o; - } - return e; -} -O(Qa, "clone"); -var Ue = -1, - Ne = 1, - Se = 0, - g0 = class { - 0; - 1; - constructor(t, r) { - ((this[0] = t), (this[1] = r)); - } - }; -O(g0, "Diff"); -var Ee = g0; -function m0(e, t) { - if (!e || !t || e.charAt(0) !== t.charAt(0)) return 0; - let r = 0, - n = Math.min(e.length, t.length), - o = n, - a = 0; - for (; r < o; ) - (e.substring(a, o) === t.substring(a, o) ? ((r = o), (a = r)) : (n = o), - (o = Math.floor((n - r) / 2 + r))); - return o; -} -O(m0, "diff_commonPrefix"); -function Dc(e, t) { - if (!e || !t || e.charAt(e.length - 1) !== t.charAt(t.length - 1)) return 0; - let r = 0, - n = Math.min(e.length, t.length), - o = n, - a = 0; - for (; r < o; ) - (e.substring(e.length - o, e.length - a) === - t.substring(t.length - o, t.length - a) - ? ((r = o), (a = r)) - : (n = o), - (o = Math.floor((n - r) / 2 + r))); - return o; -} -O(Dc, "diff_commonSuffix"); -function zs(e, t) { - let r = e.length, - n = t.length; - if (r === 0 || n === 0) return 0; - r > n ? (e = e.substring(r - n)) : r < n && (t = t.substring(0, r)); - let o = Math.min(r, n); - if (e === t) return o; - let a = 0, - i = 1; - for (;;) { - let l = e.substring(o - i), - s = t.indexOf(l); - if (s === -1) return a; - ((i += s), - (s === 0 || e.substring(o - i) === t.substring(0, i)) && ((a = i), i++)); - } -} -O(zs, "diff_commonOverlap_"); -function h0(e) { - let t = !1, - r = [], - n = 0, - o = null, - a = 0, - i = 0, - l = 0, - s = 0, - u = 0; - for (; a < e.length; ) - (e[a][0] === Se - ? ((r[n++] = a), (i = s), (l = u), (s = 0), (u = 0), (o = e[a][1])) - : (e[a][0] === Ne ? (s += e[a][1].length) : (u += e[a][1].length), - o && - o.length <= Math.max(i, l) && - o.length <= Math.max(s, u) && - (e.splice(r[n - 1], 0, new Ee(Ue, o)), - (e[r[n - 1] + 1][0] = Ne), - n--, - n--, - (a = n > 0 ? r[n - 1] : -1), - (i = 0), - (l = 0), - (s = 0), - (u = 0), - (o = null), - (t = !0))), - a++); - for (t && kc(e), y0(e), a = 1; a < e.length; ) { - if (e[a - 1][0] === Ue && e[a][0] === Ne) { - let d = e[a - 1][1], - p = e[a][1], - c = zs(d, p), - f = zs(p, d); - (c >= f - ? (c >= d.length / 2 || c >= p.length / 2) && - (e.splice(a, 0, new Ee(Se, p.substring(0, c))), - (e[a - 1][1] = d.substring(0, d.length - c)), - (e[a + 1][1] = p.substring(c)), - a++) - : (f >= d.length / 2 || f >= p.length / 2) && - (e.splice(a, 0, new Ee(Se, d.substring(0, f))), - (e[a - 1][0] = Ne), - (e[a - 1][1] = p.substring(0, p.length - f)), - (e[a + 1][0] = Ue), - (e[a + 1][1] = d.substring(f)), - a++), - a++); - } - a++; - } -} -O(h0, "diff_cleanupSemantic"); -var Gp = /[^a-z0-9]/i, - Yp = /\s/, - Kp = /[\r\n]/, - YC = /\n\r?\n$/, - KC = /^\r?\n\r?\n/; -function y0(e) { - let t = 1; - for (; t < e.length - 1; ) { - if (e[t - 1][0] === Se && e[t + 1][0] === Se) { - let r = e[t - 1][1], - n = e[t][1], - o = e[t + 1][1], - a = Dc(r, n); - if (a) { - let d = n.substring(n.length - a); - ((r = r.substring(0, r.length - a)), - (n = d + n.substring(0, n.length - a)), - (o = d + o)); - } - let i = r, - l = n, - s = o, - u = Do(r, n) + Do(n, o); - for (; n.charAt(0) === o.charAt(0); ) { - ((r += n.charAt(0)), - (n = n.substring(1) + o.charAt(0)), - (o = o.substring(1))); - let d = Do(r, n) + Do(n, o); - d >= u && ((u = d), (i = r), (l = n), (s = o)); - } - e[t - 1][1] !== i && - (i ? (e[t - 1][1] = i) : (e.splice(t - 1, 1), t--), - (e[t][1] = l), - s ? (e[t + 1][1] = s) : (e.splice(t + 1, 1), t--)); - } - t++; - } -} -O(y0, "diff_cleanupSemanticLossless"); -function kc(e) { - e.push(new Ee(Se, "")); - let t = 0, - r = 0, - n = 0, - o = "", - a = "", - i; - for (; t < e.length; ) - switch (e[t][0]) { - case Ne: - (n++, (a += e[t][1]), t++); - break; - case Ue: - (r++, (o += e[t][1]), t++); - break; - case Se: - (r + n > 1 - ? (r !== 0 && - n !== 0 && - ((i = m0(a, o)), - i !== 0 && - (t - r - n > 0 && e[t - r - n - 1][0] === Se - ? (e[t - r - n - 1][1] += a.substring(0, i)) - : (e.splice(0, 0, new Ee(Se, a.substring(0, i))), t++), - (a = a.substring(i)), - (o = o.substring(i))), - (i = Dc(a, o)), - i !== 0 && - ((e[t][1] = a.substring(a.length - i) + e[t][1]), - (a = a.substring(0, a.length - i)), - (o = o.substring(0, o.length - i)))), - (t -= r + n), - e.splice(t, r + n), - o.length && (e.splice(t, 0, new Ee(Ue, o)), t++), - a.length && (e.splice(t, 0, new Ee(Ne, a)), t++), - t++) - : t !== 0 && e[t - 1][0] === Se - ? ((e[t - 1][1] += e[t][1]), e.splice(t, 1)) - : t++, - (n = 0), - (r = 0), - (o = ""), - (a = "")); - break; - } - e[e.length - 1][1] === "" && e.pop(); - let l = !1; - for (t = 1; t < e.length - 1; ) - (e[t - 1][0] === Se && - e[t + 1][0] === Se && - (e[t][1].substring(e[t][1].length - e[t - 1][1].length) === e[t - 1][1] - ? ((e[t][1] = - e[t - 1][1] + - e[t][1].substring(0, e[t][1].length - e[t - 1][1].length)), - (e[t + 1][1] = e[t - 1][1] + e[t + 1][1]), - e.splice(t - 1, 1), - (l = !0)) - : e[t][1].substring(0, e[t + 1][1].length) === e[t + 1][1] && - ((e[t - 1][1] += e[t + 1][1]), - (e[t][1] = e[t][1].substring(e[t + 1][1].length) + e[t + 1][1]), - e.splice(t + 1, 1), - (l = !0))), - t++); - l && kc(e); -} -O(kc, "diff_cleanupMerge"); -function Do(e, t) { - if (!e || !t) return 6; - let r = e.charAt(e.length - 1), - n = t.charAt(0), - o = r.match(Gp), - a = n.match(Gp), - i = o && r.match(Yp), - l = a && n.match(Yp), - s = i && r.match(Kp), - u = l && n.match(Kp), - d = s && e.match(YC), - p = u && t.match(KC); - return d || p - ? 5 - : s || u - ? 4 - : o && !i && l - ? 3 - : i || l - ? 2 - : o || a - ? 1 - : 0; -} -O(Do, "diff_cleanupSemanticScore_"); -var b0 = "Compared values have no visual difference.", - XC = - "Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.", - fa = {}, - Xp; -function v0() { - if (Xp) return fa; - ((Xp = 1), - Object.defineProperty(fa, "__esModule", { value: !0 }), - (fa.default = c)); - let e = "diff-sequences", - t = 0, - r = O((f, g, y, x, v) => { - let C = 0; - for (; f < g && y < x && v(f, y); ) ((f += 1), (y += 1), (C += 1)); - return C; - }, "countCommonItemsF"), - n = O((f, g, y, x, v) => { - let C = 0; - for (; f <= g && y <= x && v(g, x); ) ((g -= 1), (x -= 1), (C += 1)); - return C; - }, "countCommonItemsR"), - o = O((f, g, y, x, v, C, w) => { - let E = 0, - $ = -f, - A = C[E], - S = A; - C[E] += r(A + 1, g, x + A - $ + 1, y, v); - let D = f < w ? f : w; - for (E += 1, $ += 2; E <= D; E += 1, $ += 2) { - if (E !== f && S < C[E]) A = C[E]; - else if (((A = S + 1), g <= A)) return E - 1; - ((S = C[E]), (C[E] = A + r(A + 1, g, x + A - $ + 1, y, v))); - } - return w; - }, "extendPathsF"), - a = O((f, g, y, x, v, C, w) => { - let E = 0, - $ = f, - A = C[E], - S = A; - C[E] -= n(g, A - 1, y, x + A - $ - 1, v); - let D = f < w ? f : w; - for (E += 1, $ -= 2; E <= D; E += 1, $ -= 2) { - if (E !== f && C[E] < S) A = C[E]; - else if (((A = S - 1), A < g)) return E - 1; - ((S = C[E]), (C[E] = A - n(g, A - 1, y, x + A - $ - 1, v))); - } - return w; - }, "extendPathsR"), - i = O((f, g, y, x, v, C, w, E, $, A, S) => { - let D = x - g, - F = y - g, - k = v - x - F, - _ = -k - (f - 1), - I = -k + (f - 1), - L = t, - j = f < E ? f : E; - for (let B = 0, z = -f; B <= j; B += 1, z += 2) { - let V = B === 0 || (B !== f && L < w[B]), - Y = V ? w[B] : L, - W = V ? Y : Y + 1, - G = D + W - z, - J = r(W + 1, y, G + 1, v, C), - Q = W + J; - if (((L = w[B]), (w[B] = Q), _ <= z && z <= I)) { - let re = (f - 1 - (z + k)) / 2; - if (re <= A && $[re] - 1 <= Q) { - let ie = D + Y - (V ? z + 1 : z - 1), - H = n(g, Y, x, ie, C), - X = Y - H, - Z = ie - H, - le = X + 1, - me = Z + 1; - ((S.nChangePreceding = f - 1), - f - 1 === le + me - g - x - ? ((S.aEndPreceding = g), (S.bEndPreceding = x)) - : ((S.aEndPreceding = le), (S.bEndPreceding = me)), - (S.nCommonPreceding = H), - H !== 0 && ((S.aCommonPreceding = le), (S.bCommonPreceding = me)), - (S.nCommonFollowing = J), - J !== 0 && - ((S.aCommonFollowing = W + 1), (S.bCommonFollowing = G + 1))); - let Re = Q + 1, - ne = G + J + 1; - return ( - (S.nChangeFollowing = f - 1), - f - 1 === y + v - Re - ne - ? ((S.aStartFollowing = y), (S.bStartFollowing = v)) - : ((S.aStartFollowing = Re), (S.bStartFollowing = ne)), - !0 - ); - } - } - } - return !1; - }, "extendOverlappablePathsF"), - l = O((f, g, y, x, v, C, w, E, $, A, S) => { - let D = v - y, - F = y - g, - k = v - x - F, - _ = k - f, - I = k + f, - L = t, - j = f < A ? f : A; - for (let B = 0, z = f; B <= j; B += 1, z -= 2) { - let V = B === 0 || (B !== f && $[B] < L), - Y = V ? $[B] : L, - W = V ? Y : Y - 1, - G = D + W - z, - J = n(g, W - 1, x, G - 1, C), - Q = W - J; - if (((L = $[B]), ($[B] = Q), _ <= z && z <= I)) { - let re = (f + (z - k)) / 2; - if (re <= E && Q - 1 <= w[re]) { - let ie = G - J; - if ( - ((S.nChangePreceding = f), - f === Q + ie - g - x - ? ((S.aEndPreceding = g), (S.bEndPreceding = x)) - : ((S.aEndPreceding = Q), (S.bEndPreceding = ie)), - (S.nCommonPreceding = J), - J !== 0 && ((S.aCommonPreceding = Q), (S.bCommonPreceding = ie)), - (S.nChangeFollowing = f - 1), - f === 1) - ) - ((S.nCommonFollowing = 0), - (S.aStartFollowing = y), - (S.bStartFollowing = v)); - else { - let H = D + Y - (V ? z - 1 : z + 1), - X = r(Y, y, H, v, C); - ((S.nCommonFollowing = X), - X !== 0 && - ((S.aCommonFollowing = Y), (S.bCommonFollowing = H))); - let Z = Y + X, - le = H + X; - f - 1 === y + v - Z - le - ? ((S.aStartFollowing = y), (S.bStartFollowing = v)) - : ((S.aStartFollowing = Z), (S.bStartFollowing = le)); - } - return !0; - } - } - } - return !1; - }, "extendOverlappablePathsR"), - s = O((f, g, y, x, v, C, w, E, $) => { - let A = x - g, - S = v - y, - D = y - g, - F = v - x, - k = F - D, - _ = D, - I = D; - if (((w[0] = g - 1), (E[0] = y), k % 2 === 0)) { - let L = (f || k) / 2, - j = (D + F) / 2; - for (let B = 1; B <= j; B += 1) - if (((_ = o(B, y, v, A, C, w, _)), B < L)) I = a(B, g, x, S, C, E, I); - else if (l(B, g, y, x, v, C, w, _, E, I, $)) return; - } else { - let L = ((f || k) + 1) / 2, - j = (D + F + 1) / 2, - B = 1; - for (_ = o(B, y, v, A, C, w, _), B += 1; B <= j; B += 1) - if (((I = a(B - 1, g, x, S, C, E, I)), B < L)) - _ = o(B, y, v, A, C, w, _); - else if (i(B, g, y, x, v, C, w, _, E, I, $)) return; - } - throw new Error( - `${e}: no overlap aStart=${g} aEnd=${y} bStart=${x} bEnd=${v}`, - ); - }, "divide"), - u = O((f, g, y, x, v, C, w, E, $, A) => { - if (v - x < y - g) { - if (((C = !C), C && w.length === 1)) { - let { foundSubsequence: re, isCommon: ie } = w[0]; - w[1] = { - foundSubsequence: O((H, X, Z) => { - re(H, Z, X); - }, "foundSubsequence"), - isCommon: O((H, X) => ie(X, H), "isCommon"), - }; - } - let J = g, - Q = y; - ((g = x), (y = v), (x = J), (v = Q)); - } - let { foundSubsequence: S, isCommon: D } = w[C ? 1 : 0]; - s(f, g, y, x, v, D, E, $, A); - let { - nChangePreceding: F, - aEndPreceding: k, - bEndPreceding: _, - nCommonPreceding: I, - aCommonPreceding: L, - bCommonPreceding: j, - nCommonFollowing: B, - aCommonFollowing: z, - bCommonFollowing: V, - nChangeFollowing: Y, - aStartFollowing: W, - bStartFollowing: G, - } = A; - (g < k && x < _ && u(F, g, k, x, _, C, w, E, $, A), - I !== 0 && S(I, L, j), - B !== 0 && S(B, z, V), - W < y && G < v && u(Y, W, y, G, v, C, w, E, $, A)); - }, "findSubsequences"), - d = O((f, g) => { - if (typeof g != "number") - throw new TypeError(`${e}: ${f} typeof ${typeof g} is not a number`); - if (!Number.isSafeInteger(g)) - throw new RangeError(`${e}: ${f} value ${g} is not a safe integer`); - if (g < 0) - throw new RangeError(`${e}: ${f} value ${g} is a negative integer`); - }, "validateLength"), - p = O((f, g) => { - let y = typeof g; - if (y !== "function") - throw new TypeError(`${e}: ${f} typeof ${y} is not a function`); - }, "validateCallback"); - function c(f, g, y, x) { - (d("aLength", f), - d("bLength", g), - p("isCommon", y), - p("foundSubsequence", x)); - let v = r(0, f, 0, g, y); - if ((v !== 0 && x(v, 0, 0), f !== v || g !== v)) { - let C = v, - w = v, - E = n(C, f - 1, w, g - 1, y), - $ = f - E, - A = g - E, - S = v + E; - (f !== S && - g !== S && - u(0, C, $, w, A, !1, [{ foundSubsequence: x, isCommon: y }], [t], [t], { - aCommonFollowing: t, - aCommonPreceding: t, - aEndPreceding: t, - aStartFollowing: t, - bCommonFollowing: t, - bCommonPreceding: t, - bEndPreceding: t, - bStartFollowing: t, - nChangeFollowing: t, - nChangePreceding: t, - nCommonFollowing: t, - nCommonPreceding: t, - }), - E !== 0 && x(E, $, A)); - } - } - return (O(c, "diffSequence"), fa); -} -O(v0, "requireBuild"); -var ZC = v0(), - x0 = c0(ZC); -function E0(e, t) { - return e.replace(/\s+$/, (r) => t(r)); -} -O(E0, "formatTrailingSpaces"); -function Li(e, t, r, n, o, a) { - return e.length !== 0 - ? r(`${n} ${E0(e, o)}`) - : n !== " " - ? r(n) - : t && a.length !== 0 - ? r(`${n} ${a}`) - : ""; -} -O(Li, "printDiffLine"); -function Oc( - e, - t, - { - aColor: r, - aIndicator: n, - changeLineTrailingSpaceColor: o, - emptyFirstOrLastLinePlaceholder: a, - }, -) { - return Li(e, t, r, n, o, a); -} -O(Oc, "printDeleteLine"); -function Fc( - e, - t, - { - bColor: r, - bIndicator: n, - changeLineTrailingSpaceColor: o, - emptyFirstOrLastLinePlaceholder: a, - }, -) { - return Li(e, t, r, n, o, a); -} -O(Fc, "printInsertLine"); -function _c( - e, - t, - { - commonColor: r, - commonIndicator: n, - commonLineTrailingSpaceColor: o, - emptyFirstOrLastLinePlaceholder: a, - }, -) { - return Li(e, t, r, n, o, a); -} -O(_c, "printCommonLine"); -function Hs(e, t, r, n, { patchColor: o }) { - return o(`@@ -${e + 1},${t - e} +${r + 1},${n - r} @@`); -} -O(Hs, "createPatchMark"); -function w0(e, t) { - let r = e.length, - n = t.contextLines, - o = n + n, - a = r, - i = !1, - l = 0, - s = 0; - for (; s !== r; ) { - let E = s; - for (; s !== r && e[s][0] === Se; ) s += 1; - if (E !== s) - if (E === 0) s > n && ((a -= s - n), (i = !0)); - else if (s === r) { - let $ = s - E; - $ > n && ((a -= $ - n), (i = !0)); - } else { - let $ = s - E; - $ > o && ((a -= $ - o), (l += 1)); - } - for (; s !== r && e[s][0] !== Se; ) s += 1; - } - let u = l !== 0 || i; - l !== 0 ? (a += l + 1) : i && (a += 1); - let d = a - 1, - p = [], - c = 0; - u && p.push(""); - let f = 0, - g = 0, - y = 0, - x = 0, - v = O((E) => { - let $ = p.length; - (p.push(_c(E, $ === 0 || $ === d, t)), (y += 1), (x += 1)); - }, "pushCommonLine"), - C = O((E) => { - let $ = p.length; - (p.push(Oc(E, $ === 0 || $ === d, t)), (y += 1)); - }, "pushDeleteLine"), - w = O((E) => { - let $ = p.length; - (p.push(Fc(E, $ === 0 || $ === d, t)), (x += 1)); - }, "pushInsertLine"); - for (s = 0; s !== r; ) { - let E = s; - for (; s !== r && e[s][0] === Se; ) s += 1; - if (E !== s) - if (E === 0) { - s > n && ((E = s - n), (f = E), (g = E), (y = f), (x = g)); - for (let $ = E; $ !== s; $ += 1) v(e[$][1]); - } else if (s === r) { - let $ = s - E > n ? E + n : s; - for (let A = E; A !== $; A += 1) v(e[A][1]); - } else { - let $ = s - E; - if ($ > o) { - let A = E + n; - for (let D = E; D !== A; D += 1) v(e[D][1]); - ((p[c] = Hs(f, y, g, x, t)), (c = p.length), p.push("")); - let S = $ - o; - ((f = y + S), (g = x + S), (y = f), (x = g)); - for (let D = s - n; D !== s; D += 1) v(e[D][1]); - } else for (let A = E; A !== s; A += 1) v(e[A][1]); - } - for (; s !== r && e[s][0] === Ue; ) (C(e[s][1]), (s += 1)); - for (; s !== r && e[s][0] === Ne; ) (w(e[s][1]), (s += 1)); - } - return ( - u && (p[c] = Hs(f, y, g, x, t)), - p.join(` -`) - ); -} -O(w0, "joinAlignedDiffsNoExpand"); -function S0(e, t) { - return e.map((r, n, o) => { - let a = r[1], - i = n === 0 || n === o.length - 1; - switch (r[0]) { - case Ue: - return Oc(a, i, t); - case Ne: - return Fc(a, i, t); - default: - return _c(a, i, t); - } - }).join(` -`); -} -O(S0, "joinAlignedDiffsExpand"); -var Bl = O((e) => e, "noColor"), - C0 = 5, - JC = 0; -function $0() { - return { - aAnnotation: "Expected", - aColor: tr.green, - aIndicator: "-", - bAnnotation: "Received", - bColor: tr.red, - bIndicator: "+", - changeColor: tr.inverse, - changeLineTrailingSpaceColor: Bl, - commonColor: tr.dim, - commonIndicator: " ", - commonLineTrailingSpaceColor: Bl, - compareKeys: void 0, - contextLines: C0, - emptyFirstOrLastLinePlaceholder: "", - expand: !1, - includeChangeCounts: !1, - omitAnnotationLines: !1, - patchColor: tr.yellow, - printBasicPrototype: !1, - truncateThreshold: JC, - truncateAnnotation: "... Diff result is truncated", - truncateAnnotationColor: Bl, - }; -} -O($0, "getDefaultOptions"); -function A0(e) { - return e && typeof e == "function" ? e : void 0; -} -O(A0, "getCompareKeys"); -function D0(e) { - return typeof e == "number" && Number.isSafeInteger(e) && e >= 0 ? e : C0; -} -O(D0, "getContextLines"); -function kr(e = {}) { - return { - ...$0(), - ...e, - compareKeys: A0(e.compareKeys), - contextLines: D0(e.contextLines), - }; -} -O(kr, "normalizeDiffOptions"); -function Wr(e) { - return e.length === 1 && e[0].length === 0; -} -O(Wr, "isEmptyString"); -function k0(e) { - let t = 0, - r = 0; - return ( - e.forEach((n) => { - switch (n[0]) { - case Ue: - t += 1; - break; - case Ne: - r += 1; - break; - } - }), - { a: t, b: r } - ); -} -O(k0, "countChanges"); -function O0( - { - aAnnotation: e, - aColor: t, - aIndicator: r, - bAnnotation: n, - bColor: o, - bIndicator: a, - includeChangeCounts: i, - omitAnnotationLines: l, - }, - s, -) { - if (l) return ""; - let u = "", - d = ""; - if (i) { - let f = String(s.a), - g = String(s.b), - y = n.length - e.length, - x = " ".repeat(Math.max(0, y)), - v = " ".repeat(Math.max(0, -y)), - C = g.length - f.length, - w = " ".repeat(Math.max(0, C)), - E = " ".repeat(Math.max(0, -C)); - ((u = `${x} ${r} ${w}${f}`), (d = `${v} ${a} ${E}${g}`)); - } - let p = `${r} ${e}${u}`, - c = `${a} ${n}${d}`; - return `${t(p)} -${o(c)} - -`; -} -O(O0, "printAnnotation"); -function Bi(e, t, r) { - return ( - O0(r, k0(e)) + - (r.expand ? S0(e, r) : w0(e, r)) + - (t - ? r.truncateAnnotationColor(` -${r.truncateAnnotation}`) - : "") - ); -} -O(Bi, "printDiffLines"); -function ta(e, t, r) { - let n = kr(r), - [o, a] = Tc(Wr(e) ? [] : e, Wr(t) ? [] : t, n); - return Bi(o, a, n); -} -O(ta, "diffLinesUnified"); -function F0(e, t, r, n, o) { - if ( - (Wr(e) && Wr(r) && ((e = []), (r = [])), - Wr(t) && Wr(n) && ((t = []), (n = [])), - e.length !== r.length || t.length !== n.length) - ) - return ta(e, t, o); - let [a, i] = Tc(r, n, o), - l = 0, - s = 0; - return ( - a.forEach((u) => { - switch (u[0]) { - case Ue: - ((u[1] = e[l]), (l += 1)); - break; - case Ne: - ((u[1] = t[s]), (s += 1)); - break; - default: - ((u[1] = t[s]), (l += 1), (s += 1)); - } - }), - Bi(a, i, kr(o)) - ); -} -O(F0, "diffLinesUnified2"); -function Tc(e, t, r) { - let n = r?.truncateThreshold ?? !1, - o = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), - a = n ? Math.min(e.length, o) : e.length, - i = n ? Math.min(t.length, o) : t.length, - l = a !== e.length || i !== t.length, - s = O((c, f) => e[c] === t[f], "isCommon"), - u = [], - d = 0, - p = 0; - for ( - x0( - a, - i, - s, - O((c, f, g) => { - for (; d !== f; d += 1) u.push(new Ee(Ue, e[d])); - for (; p !== g; p += 1) u.push(new Ee(Ne, t[p])); - for (; c !== 0; c -= 1, d += 1, p += 1) u.push(new Ee(Se, t[p])); - }, "foundSubsequence"), - ); - d !== a; - d += 1 - ) - u.push(new Ee(Ue, e[d])); - for (; p !== i; p += 1) u.push(new Ee(Ne, t[p])); - return [u, l]; -} -O(Tc, "diffLinesRaw"); -function Us(e) { - if (e === void 0) return "undefined"; - if (e === null) return "null"; - if (Array.isArray(e)) return "array"; - if (typeof e == "boolean") return "boolean"; - if (typeof e == "function") return "function"; - if (typeof e == "number") return "number"; - if (typeof e == "string") return "string"; - if (typeof e == "bigint") return "bigint"; - if (typeof e == "object") { - if (e != null) { - if (e.constructor === RegExp) return "regexp"; - if (e.constructor === Map) return "map"; - if (e.constructor === Set) return "set"; - if (e.constructor === Date) return "date"; - } - return "object"; - } else if (typeof e == "symbol") return "symbol"; - throw new Error(`value of unknown type: ${e}`); -} -O(Us, "getType"); -function Ws(e) { - return e.includes(`\r -`) - ? `\r -` - : ` -`; -} -O(Ws, "getNewLineSymbol"); -function _0(e, t, r) { - let n = r?.truncateThreshold ?? !1, - o = Math.max(Math.floor(r?.truncateThreshold ?? 0), 0), - a = e.length, - i = t.length; - if (n) { - let c = e.includes(` -`), - f = t.includes(` -`), - g = Ws(e), - y = Ws(t), - x = c - ? `${e.split(g, o).join(g)} -` - : e, - v = f - ? `${t.split(y, o).join(y)} -` - : t; - ((a = x.length), (i = v.length)); - } - let l = a !== e.length || i !== t.length, - s = O((c, f) => e[c] === t[f], "isCommon"), - u = 0, - d = 0, - p = []; - return ( - x0( - a, - i, - s, - O((c, f, g) => { - (u !== f && p.push(new Ee(Ue, e.slice(u, f))), - d !== g && p.push(new Ee(Ne, t.slice(d, g))), - (u = f + c), - (d = g + c), - p.push(new Ee(Se, t.slice(g, d)))); - }, "foundSubsequence"), - ), - u !== a && p.push(new Ee(Ue, e.slice(u))), - d !== i && p.push(new Ee(Ne, t.slice(d))), - [p, l] - ); -} -O(_0, "diffStrings"); -function T0(e, t, r) { - return t.reduce( - (n, o) => - n + (o[0] === Se ? o[1] : o[0] === e && o[1].length !== 0 ? r(o[1]) : ""), - "", - ); -} -O(T0, "concatenateRelevantDiffs"); -var R0 = class { - op; - line; - lines; - changeColor; - constructor(t, r) { - ((this.op = t), - (this.line = []), - (this.lines = []), - (this.changeColor = r)); - } - pushSubstring(t) { - this.pushDiff(new Ee(this.op, t)); - } - pushLine() { - (this.lines.push( - this.line.length !== 1 - ? new Ee(this.op, T0(this.op, this.line, this.changeColor)) - : this.line[0][0] === this.op - ? this.line[0] - : new Ee(this.op, this.line[0][1]), - ), - (this.line.length = 0)); - } - isLineEmpty() { - return this.line.length === 0; - } - pushDiff(t) { - this.line.push(t); - } - align(t) { - let r = t[1]; - if ( - r.includes(` -`) - ) { - let n = r.split(` -`), - o = n.length - 1; - n.forEach((a, i) => { - i < o - ? (this.pushSubstring(a), this.pushLine()) - : a.length !== 0 && this.pushSubstring(a); - }); - } else this.pushDiff(t); - } - moveLinesTo(t) { - (this.isLineEmpty() || this.pushLine(), - t.push(...this.lines), - (this.lines.length = 0)); - } -}; -O(R0, "ChangeBuffer"); -var Zp = R0, - P0 = class { - deleteBuffer; - insertBuffer; - lines; - constructor(t, r) { - ((this.deleteBuffer = t), (this.insertBuffer = r), (this.lines = [])); - } - pushDiffCommonLine(t) { - this.lines.push(t); - } - pushDiffChangeLines(t) { - let r = t[1].length === 0; - ((!r || this.deleteBuffer.isLineEmpty()) && this.deleteBuffer.pushDiff(t), - (!r || this.insertBuffer.isLineEmpty()) && - this.insertBuffer.pushDiff(t)); - } - flushChangeLines() { - (this.deleteBuffer.moveLinesTo(this.lines), - this.insertBuffer.moveLinesTo(this.lines)); - } - align(t) { - let r = t[0], - n = t[1]; - if ( - n.includes(` -`) - ) { - let o = n.split(` -`), - a = o.length - 1; - o.forEach((i, l) => { - if (l === 0) { - let s = new Ee(r, i); - this.deleteBuffer.isLineEmpty() && this.insertBuffer.isLineEmpty() - ? (this.flushChangeLines(), this.pushDiffCommonLine(s)) - : (this.pushDiffChangeLines(s), this.flushChangeLines()); - } else - l < a - ? this.pushDiffCommonLine(new Ee(r, i)) - : i.length !== 0 && this.pushDiffChangeLines(new Ee(r, i)); - }); - } else this.pushDiffChangeLines(t); - } - getLines() { - return (this.flushChangeLines(), this.lines); - } - }; -O(P0, "CommonBuffer"); -var QC = P0; -function I0(e, t) { - let r = new Zp(Ue, t), - n = new Zp(Ne, t), - o = new QC(r, n); - return ( - e.forEach((a) => { - switch (a[0]) { - case Ue: - r.align(a); - break; - case Ne: - n.align(a); - break; - default: - o.align(a); - } - }), - o.getLines() - ); -} -O(I0, "getAlignedDiffs"); -function L0(e, t) { - if (t) { - let r = e.length - 1; - return e.some( - (n, o) => - n[0] === Se && - (o !== r || - n[1] !== - ` -`), - ); - } - return e.some((r) => r[0] === Se); -} -O(L0, "hasCommonDiff"); -function B0(e, t, r) { - if (e !== t && e.length !== 0 && t.length !== 0) { - let n = - e.includes(` -`) || - t.includes(` -`), - [o, a] = Rc( - n - ? `${e} -` - : e, - n - ? `${t} -` - : t, - !0, - r, - ); - if (L0(o, n)) { - let i = kr(r), - l = I0(o, i.changeColor); - return Bi(l, a, i); - } - } - return ta( - e.split(` -`), - t.split(` -`), - r, - ); -} -O(B0, "diffStringsUnified"); -function Rc(e, t, r, n) { - let [o, a] = _0(e, t, n); - return (r && h0(o), [o, a]); -} -O(Rc, "diffStringsRaw"); -function ei(e, t) { - let { commonColor: r } = kr(t); - return r(e); -} -O(ei, "getCommonMessage"); -var { - AsymmetricMatcher: e$, - DOMCollection: t$, - DOMElement: r$, - Immutable: n$, - ReactElement: o$, - ReactTestComponent: a$, - } = Cc, - N0 = [a$, o$, r$, t$, n$, e$, Cc.Error], - Vs = { maxDepth: 20, plugins: N0 }, - j0 = { callToJSON: !1, maxDepth: 8, plugins: N0 }; -function M0(e, t, r) { - if (Object.is(e, t)) return ""; - let n = Us(e), - o = n, - a = !1; - if (n === "object" && typeof e.asymmetricMatch == "function") { - if ( - e.$$typeof !== Symbol.for("jest.asymmetricMatcher") || - typeof e.getExpectedType != "function" - ) - return; - ((o = e.getExpectedType()), (a = o === "string")); - } - if (o !== Us(t)) { - let i = function (w) { - return w.length <= x ? w : `${w.slice(0, x)}...`; - }; - O(i, "truncate"); - let { - aAnnotation: l, - aColor: s, - aIndicator: u, - bAnnotation: d, - bColor: p, - bIndicator: c, - } = kr(r), - f = ti(j0, r), - g = At(e, f), - y = At(t, f), - x = 1e5; - ((g = i(g)), (y = i(y))); - let v = `${s(`${u} ${l}:`)} -${g}`, - C = `${p(`${c} ${d}:`)} -${y}`; - return `${v} - -${C}`; - } - if (!a) - switch (n) { - case "string": - return ta( - e.split(` -`), - t.split(` -`), - r, - ); - case "boolean": - case "number": - return z0(e, t, r); - case "map": - return Ia(qs(e), qs(t), r); - case "set": - return Ia(Gs(e), Gs(t), r); - default: - return Ia(e, t, r); - } -} -O(M0, "diff"); -function z0(e, t, r) { - let n = At(e, Vs), - o = At(t, Vs); - return n === o - ? "" - : ta( - n.split(` -`), - o.split(` -`), - r, - ); -} -O(z0, "comparePrimitive"); -function qs(e) { - return new Map(Array.from(e.entries()).sort()); -} -O(qs, "sortMap"); -function Gs(e) { - return new Set(Array.from(e.values()).sort()); -} -O(Gs, "sortSet"); -function Ia(e, t, r) { - let n, - o = !1; - try { - let i = ti(Vs, r); - n = Ys(e, t, i, r); - } catch { - o = !0; - } - let a = ei(b0, r); - if (n === void 0 || n === a) { - let i = ti(j0, r); - ((n = Ys(e, t, i, r)), - n !== a && - !o && - (n = `${ei(XC, r)} - -${n}`)); - } - return n; -} -O(Ia, "compareObjects"); -function ti(e, t) { - let { compareKeys: r, printBasicPrototype: n, maxDepth: o } = kr(t); - return { - ...e, - compareKeys: r, - printBasicPrototype: n, - maxDepth: o ?? e.maxDepth, - }; -} -O(ti, "getFormatOptions"); -function Ys(e, t, r, n) { - let o = { ...r, indent: 0 }, - a = At(e, o), - i = At(t, o); - if (a === i) return ei(b0, n); - { - let l = At(e, r), - s = At(t, r); - return F0( - l.split(` -`), - s.split(` -`), - a.split(` -`), - i.split(` -`), - n, - ); - } -} -O(Ys, "getObjectsDifference"); -var Jp = 2e4; -function Ks(e) { - return Ja(e) === "Object" && typeof e.asymmetricMatch == "function"; -} -O(Ks, "isAsymmetricMatcher"); -function Xs(e, t) { - let r = Ja(e), - n = Ja(t); - return r === n && (r === "Object" || r === "Array"); -} -O(Xs, "isReplaceable"); -function H0(e, t, r) { - let { aAnnotation: n, bAnnotation: o } = kr(r); - if ( - typeof t == "string" && - typeof e == "string" && - t.length > 0 && - e.length > 0 && - t.length <= Jp && - e.length <= Jp && - t !== e - ) { - if ( - t.includes(` -`) || - e.includes(` -`) - ) - return B0(t, e, r); - let [u] = Rc(t, e, !0), - d = u.some((g) => g[0] === Se), - p = U0(n, o), - c = p(n) + V0(Zs(u, Ue, d)), - f = p(o) + W0(Zs(u, Ne, d)); - return `${c} -${f}`; - } - let a = Ms(t, { forceWritable: !0 }), - i = Ms(e, { forceWritable: !0 }), - { replacedExpected: l, replacedActual: s } = Pc(i, a); - return M0(l, s, r); -} -O(H0, "printDiffOrStringify"); -function Pc(e, t, r = new WeakSet(), n = new WeakSet()) { - return e instanceof Error && - t instanceof Error && - typeof e.cause < "u" && - typeof t.cause > "u" - ? (delete e.cause, { replacedActual: e, replacedExpected: t }) - : Xs(e, t) - ? r.has(e) || n.has(t) - ? { replacedActual: e, replacedExpected: t } - : (r.add(e), - n.add(t), - Ac(t).forEach((o) => { - let a = t[o], - i = e[o]; - if (Ks(a)) a.asymmetricMatch(i) && (e[o] = a); - else if (Ks(i)) i.asymmetricMatch(a) && (t[o] = i); - else if (Xs(i, a)) { - let l = Pc(i, a, r, n); - ((e[o] = l.replacedActual), (t[o] = l.replacedExpected)); - } - }), - { replacedActual: e, replacedExpected: t }) - : { replacedActual: e, replacedExpected: t }; -} -O(Pc, "replaceAsymmetricMatcher"); -function U0(...e) { - let t = e.reduce((r, n) => (n.length > r ? n.length : r), 0); - return (r) => `${r}: ${" ".repeat(t - r.length)}`; -} -O(U0, "getLabelPrinter"); -var i$ = "·"; -function Ic(e) { - return e.replace(/\s+$/gm, (t) => i$.repeat(t.length)); -} -O(Ic, "replaceTrailingSpaces"); -function W0(e) { - return tr.red(Ic(Nn(e))); -} -O(W0, "printReceived"); -function V0(e) { - return tr.green(Ic(Nn(e))); -} -O(V0, "printExpected"); -function Zs(e, t, r) { - return e.reduce( - (n, o) => - n + - (o[0] === Se ? o[1] : o[0] === t ? (r ? tr.inverse(o[1]) : o[1]) : ""), - "", - ); -} -O(Zs, "getCommonAndChangedSubstrings"); -var l$ = "@@__IMMUTABLE_RECORD__@@", - s$ = "@@__IMMUTABLE_ITERABLE__@@"; -function q0(e) { - return e && (e[s$] || e[l$]); -} -O(q0, "isImmutable"); -var u$ = Object.getPrototypeOf({}); -function Js(e) { - return e instanceof Error - ? `: ${e.message}` - : typeof e == "string" - ? `: ${e}` - : ""; -} -O(Js, "getUnserializableMessage"); -function er(e, t = new WeakMap()) { - if (!e || typeof e == "string") return e; - if (e instanceof Error && "toJSON" in e && typeof e.toJSON == "function") { - let r = e.toJSON(); - return ( - r && - r !== e && - typeof r == "object" && - (typeof e.message == "string" && - ko(() => r.message ?? (r.message = e.message)), - typeof e.stack == "string" && ko(() => r.stack ?? (r.stack = e.stack)), - typeof e.name == "string" && ko(() => r.name ?? (r.name = e.name)), - e.cause != null && ko(() => r.cause ?? (r.cause = er(e.cause, t)))), - er(r, t) - ); - } - if (typeof e == "function") return `Function<${e.name || "anonymous"}>`; - if (typeof e == "symbol") return e.toString(); - if (typeof e != "object") return e; - if (typeof Buffer < "u" && e instanceof Buffer) - return ``; - if (typeof Uint8Array < "u" && e instanceof Uint8Array) - return ``; - if (q0(e)) return er(e.toJSON(), t); - if ( - e instanceof Promise || - (e.constructor && e.constructor.prototype === "AsyncFunction") - ) - return "Promise"; - if (typeof Element < "u" && e instanceof Element) return e.tagName; - if (typeof e.asymmetricMatch == "function") - return `${e.toString()} ${u0(e.sample)}`; - if (typeof e.toJSON == "function") return er(e.toJSON(), t); - if (t.has(e)) return t.get(e); - if (Array.isArray(e)) { - let r = new Array(e.length); - return ( - t.set(e, r), - e.forEach((n, o) => { - try { - r[o] = er(n, t); - } catch (a) { - r[o] = Js(a); - } - }), - r - ); - } else { - let r = Object.create(null); - t.set(e, r); - let n = e; - for (; n && n !== u$; ) - (Object.getOwnPropertyNames(n).forEach((o) => { - if (!(o in r)) - try { - r[o] = er(e[o], t); - } catch (a) { - (delete r[o], (r[o] = Js(a))); - } - }), - (n = Object.getPrototypeOf(n))); - return r; - } -} -O(er, "serializeValue"); -function ko(e) { - try { - return e(); - } catch {} -} -O(ko, "safe"); -function G0(e) { - return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, ""); -} -O(G0, "normalizeErrorMessage"); -function Lc(e, t, r = new WeakSet()) { - if (!e || typeof e != "object") return { message: String(e) }; - let n = e; - ((n.showDiff || - (n.showDiff === void 0 && n.expected !== void 0 && n.actual !== void 0)) && - (n.diff = H0(n.actual, n.expected, { ...t, ...n.diffOptions })), - "expected" in n && - typeof n.expected != "string" && - (n.expected = Nn(n.expected, 10)), - "actual" in n && - typeof n.actual != "string" && - (n.actual = Nn(n.actual, 10))); - try { - typeof n.message == "string" && (n.message = G0(n.message)); - } catch {} - try { - !r.has(n) && - typeof n.cause == "object" && - (r.add(n), (n.cause = Lc(n.cause, t, r))); - } catch {} - try { - return er(n); - } catch (o) { - return er( - new Error(`Failed to fully serialize error: ${o?.message} -Inner error message: ${n?.message}`), - ); - } -} -O(Lc, "processError"); -var Gt = { - CALL: "storybook/instrumenter/call", - SYNC: "storybook/instrumenter/sync", - START: "storybook/instrumenter/start", - BACK: "storybook/instrumenter/back", - GOTO: "storybook/instrumenter/goto", - NEXT: "storybook/instrumenter/next", - END: "storybook/instrumenter/end", - }, - Nl = globalThis.__STORYBOOK_ADDONS_PREVIEW, - c$ = new Error( - "This function ran after the play function completed. Did you forget to `await` it?", - ), - Qp = O( - (e) => Object.prototype.toString.call(e) === "[object Object]", - "isObject", - ), - d$ = O( - (e) => Object.prototype.toString.call(e) === "[object Module]", - "isModule", - ), - p$ = O((e) => { - if (!Qp(e) && !d$(e)) return !1; - if (e.constructor === void 0) return !0; - let t = e.constructor.prototype; - return !!Qp(t); - }, "isInstrumentable"), - f$ = O((e) => { - try { - return new e.constructor(); - } catch { - return {}; - } - }, "construct"), - jl = O( - () => ({ - renderPhase: "preparing", - isDebugging: !1, - isPlaying: !1, - isLocked: !1, - cursor: 0, - calls: [], - shadowCalls: [], - callRefsByResult: new Map(), - chainedCallIds: new Set(), - ancestors: [], - playUntil: void 0, - resolvers: {}, - syncTimeout: void 0, - }), - "getInitialState", - ), - ef = O((e, t = !1) => { - let r = (t ? e.shadowCalls : e.calls).filter((o) => o.retain); - if (!r.length) return; - let n = new Map( - Array.from(e.callRefsByResult.entries()).filter(([, o]) => o.retain), - ); - return { cursor: r.length, calls: r, callRefsByResult: n }; - }, "getRetainedState"), - Y0 = class { - constructor() { - ((this.detached = !1), - (this.initialized = !1), - (this.state = {}), - (this.loadParentWindowState = O(() => { - try { - this.state = - dt.window?.parent - ?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ || {}; - } catch { - this.detached = !0; - } - }, "loadParentWindowState")), - (this.updateParentWindowState = O(() => { - try { - dt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__ = - this.state; - } catch { - this.detached = !0; - } - }, "updateParentWindowState")), - this.loadParentWindowState()); - let t = O( - ({ - storyId: s, - renderPhase: u, - isPlaying: d = !0, - isDebugging: p = !1, - }) => { - let c = this.getState(s); - (this.setState(s, { - ...jl(), - ...ef(c, p), - renderPhase: u || c.renderPhase, - shadowCalls: p ? c.shadowCalls : [], - chainedCallIds: p ? c.chainedCallIds : new Set(), - playUntil: p ? c.playUntil : void 0, - isPlaying: d, - isDebugging: p, - }), - this.sync(s)); - }, - "resetState", - ), - r = O( - (s) => - ({ storyId: u, playUntil: d }) => { - this.getState(u).isDebugging || - this.setState(u, ({ calls: c }) => ({ - calls: [], - shadowCalls: c.map((f) => ({ ...f, status: "waiting" })), - isDebugging: !0, - })); - let p = this.getLog(u); - (this.setState(u, ({ shadowCalls: c }) => { - if (d || !p.length) return { playUntil: d }; - let f = c.findIndex((g) => g.id === p[0].callId); - return { - playUntil: c - .slice(0, f) - .filter((g) => g.interceptable && !g.ancestors?.length) - .slice(-1)[0]?.id, - }; - }), - s.emit(_p, { storyId: u, isDebugging: !0 })); - }, - "start", - ), - n = O( - (s) => - ({ storyId: u }) => { - let d = this.getLog(u).filter((c) => !c.ancestors?.length), - p = d.reduceRight( - (c, f, g) => (c >= 0 || f.status === "waiting" ? c : g), - -1, - ); - r(s)({ storyId: u, playUntil: d[p - 1]?.callId }); - }, - "back", - ), - o = O( - (s) => - ({ storyId: u, callId: d }) => { - let { calls: p, shadowCalls: c, resolvers: f } = this.getState(u), - g = p.find(({ id: x }) => x === d), - y = c.find(({ id: x }) => x === d); - if (!g && y && Object.values(f).length > 0) { - let x = this.getLog(u).find( - (v) => v.status === "waiting", - )?.callId; - (y.id !== x && this.setState(u, { playUntil: y.id }), - Object.values(f).forEach((v) => v())); - } else r(s)({ storyId: u, playUntil: d }); - }, - "goto", - ), - a = O( - (s) => - ({ storyId: u }) => { - let { resolvers: d } = this.getState(u); - if (Object.values(d).length > 0) - Object.values(d).forEach((p) => p()); - else { - let p = this.getLog(u).find( - (c) => c.status === "waiting", - )?.callId; - p ? r(s)({ storyId: u, playUntil: p }) : i({ storyId: u }); - } - }, - "next", - ), - i = O(({ storyId: s }) => { - (this.setState(s, { playUntil: void 0, isDebugging: !1 }), - Object.values(this.getState(s).resolvers).forEach((u) => u())); - }, "end"), - l = O(({ storyId: s, newPhase: u }) => { - let { isDebugging: d } = this.getState(s); - if (u === "preparing" && d) return t({ storyId: s, renderPhase: u }); - if (u === "playing") - return t({ storyId: s, renderPhase: u, isDebugging: d }); - (u === "played" - ? this.setState(s, { - renderPhase: u, - isLocked: !1, - isPlaying: !1, - isDebugging: !1, - }) - : u === "errored" - ? this.setState(s, { - renderPhase: u, - isLocked: !1, - isPlaying: !1, - }) - : u === "aborted" - ? this.setState(s, { - renderPhase: u, - isLocked: !0, - isPlaying: !1, - }) - : this.setState(s, { renderPhase: u }), - this.sync(s)); - }, "renderPhaseChanged"); - Nl && - Nl.ready().then(() => { - ((this.channel = Nl.getChannel()), - this.channel.on(_p, t), - this.channel.on(M2, l), - this.channel.on(j2, () => { - this.initialized ? this.cleanup() : (this.initialized = !0); - }), - this.channel.on(Gt.START, r(this.channel)), - this.channel.on(Gt.BACK, n(this.channel)), - this.channel.on(Gt.GOTO, o(this.channel)), - this.channel.on(Gt.NEXT, a(this.channel)), - this.channel.on(Gt.END, i)); - }); - } - getState(t) { - return this.state[t] || jl(); - } - setState(t, r) { - if (t) { - let n = this.getState(t), - o = typeof r == "function" ? r(n) : r; - ((this.state = { ...this.state, [t]: { ...n, ...o } }), - this.updateParentWindowState()); - } - } - cleanup() { - this.state = Object.entries(this.state).reduce((r, [n, o]) => { - let a = ef(o); - return (a && (r[n] = Object.assign(jl(), a)), r); - }, {}); - let t = { - controlStates: { - detached: this.detached, - start: !1, - back: !1, - goto: !1, - next: !1, - end: !1, - }, - logItems: [], - }; - (this.channel?.emit(Gt.SYNC, t), this.updateParentWindowState()); - } - getLog(t) { - let { calls: r, shadowCalls: n } = this.getState(t), - o = [...n]; - r.forEach((i, l) => { - o[l] = i; - }); - let a = new Set(); - return o.reduceRight( - (i, l) => ( - l.args.forEach((s) => { - s?.__callId__ && a.add(s.__callId__); - }), - l.path.forEach((s) => { - s.__callId__ && a.add(s.__callId__); - }), - (l.interceptable || l.exception) && - !a.has(l.id) && - (i.unshift({ - callId: l.id, - status: l.status, - ancestors: l.ancestors, - }), - a.add(l.id)), - i - ), - [], - ); - } - instrument(t, r, n = 0) { - if (!p$(t)) return t; - let { mutate: o = !1, path: a = [] } = r, - i = r.getKeys ? r.getKeys(t, n) : Object.keys(t); - return ( - (n += 1), - i.reduce( - (l, s) => { - let u = K0(t, s); - if (typeof u?.get == "function") { - if (u.configurable) { - let p = O(() => u?.get?.bind(t)?.(), "getter"); - Object.defineProperty(l, s, { - get: O( - () => this.instrument(p(), { ...r, path: a.concat(s) }, n), - "get", - ), - }); - } - return l; - } - let d = t[s]; - return typeof d != "function" - ? ((l[s] = this.instrument(d, { ...r, path: a.concat(s) }, n)), l) - : "__originalFn__" in d && typeof d.__originalFn__ == "function" - ? ((l[s] = d), l) - : ((l[s] = (...p) => this.track(s, d, t, p, r)), - (l[s].__originalFn__ = d), - Object.defineProperty(l[s], "name", { - value: s, - writable: !1, - }), - Object.keys(d).length > 0 && - Object.assign( - l[s], - this.instrument({ ...d }, { ...r, path: a.concat(s) }, n), - ), - l); - }, - o ? t : f$(t), - ) - ); - } - track(t, r, n, o, a) { - let i = - o?.[0]?.__storyId__ || - dt.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId, - { cursor: l, ancestors: s } = this.getState(i); - this.setState(i, { cursor: l + 1 }); - let u = `${s.slice(-1)[0] || i} [${l}] ${t}`, - { path: d = [], intercept: p = !1, retain: c = !1 } = a, - f = typeof p == "function" ? p(t, d) : p, - g = { - id: u, - cursor: l, - storyId: i, - ancestors: s, - path: d, - method: t, - args: o, - interceptable: f, - retain: c, - }, - y = (f && !s.length ? this.intercept : this.invoke).call( - this, - r, - n, - g, - a, - ); - return this.instrument(y, { - ...a, - mutate: !0, - path: [{ __callId__: g.id }], - }); - } - intercept(t, r, n, o) { - let { - chainedCallIds: a, - isDebugging: i, - playUntil: l, - } = this.getState(n.storyId), - s = a.has(n.id); - return !i || s || l - ? (l === n.id && this.setState(n.storyId, { playUntil: void 0 }), - this.invoke(t, r, n, o)) - : new Promise((u) => { - this.setState(n.storyId, ({ resolvers: d }) => ({ - isLocked: !1, - resolvers: { ...d, [n.id]: u }, - })); - }).then( - () => ( - this.setState(n.storyId, (u) => { - let { [n.id]: d, ...p } = u.resolvers; - return { isLocked: !0, resolvers: p }; - }), - this.invoke(t, r, n, o) - ), - ); - } - invoke(t, r, n, o) { - let { callRefsByResult: a, renderPhase: i } = this.getState(n.storyId), - l = 25, - s = O((p, c, f) => { - if (f.includes(p)) return "[Circular]"; - if (((f = [...f, p]), c > l)) return "..."; - if (a.has(p)) return a.get(p); - if (p instanceof Array) return p.map((g) => s(g, ++c, f)); - if (p instanceof Date) - return { __date__: { value: p.toISOString() } }; - if (p instanceof Error) { - let { name: g, message: y, stack: x } = p; - return { __error__: { name: g, message: y, stack: x } }; - } - if (p instanceof RegExp) { - let { flags: g, source: y } = p; - return { __regexp__: { flags: g, source: y } }; - } - if (p instanceof dt.window?.HTMLElement) { - let { - prefix: g, - localName: y, - id: x, - classList: v, - innerText: C, - } = p, - w = Array.from(v); - return { - __element__: { - prefix: g, - localName: y, - id: x, - classNames: w, - innerText: C, - }, - }; - } - return typeof p == "function" - ? { - __function__: { - name: "getMockName" in p ? p.getMockName() : p.name, - }, - } - : typeof p == "symbol" - ? { __symbol__: { description: p.description } } - : typeof p == "object" && - p?.constructor?.name && - p?.constructor?.name !== "Object" - ? { __class__: { name: p.constructor.name } } - : Object.prototype.toString.call(p) === "[object Object]" - ? Object.fromEntries( - Object.entries(p).map(([g, y]) => [g, s(y, ++c, f)]), - ) - : p; - }, "serializeValues"), - u = { ...n, args: n.args.map((p) => s(p, 0, [])) }; - n.path.forEach((p) => { - p?.__callId__ && - this.setState(n.storyId, ({ chainedCallIds: c }) => ({ - chainedCallIds: new Set(Array.from(c).concat(p.__callId__)), - })); - }); - let d = O((p) => { - if (p instanceof Error) { - let { name: c, message: f, stack: g, callId: y = n.id } = p, - { - showDiff: x = void 0, - diff: v = void 0, - actual: C = void 0, - expected: w = void 0, - } = p.name === "AssertionError" ? Lc(p) : p, - E = { - name: c, - message: f, - stack: g, - callId: y, - showDiff: x, - diff: v, - actual: C, - expected: w, - }; - if ( - (this.update({ ...u, status: "error", exception: E }), - this.setState(n.storyId, ($) => ({ - callRefsByResult: new Map([ - ...Array.from($.callRefsByResult.entries()), - [p, { __callId__: n.id, retain: n.retain }], - ]), - })), - n.ancestors?.length) - ) - throw ( - Object.prototype.hasOwnProperty.call(p, "callId") || - Object.defineProperty(p, "callId", { value: n.id }), - p - ); - } - throw p; - }, "handleException"); - try { - if (i === "played" && !n.retain) throw c$; - let p = ( - o.getArgs ? o.getArgs(n, this.getState(n.storyId)) : n.args - ).map((f) => - typeof f != "function" || X0(f) || Object.keys(f).length - ? f - : (...g) => { - let { cursor: y, ancestors: x } = this.getState(n.storyId); - this.setState(n.storyId, { - cursor: 0, - ancestors: [...x, n.id], - }); - let v = O( - () => - this.setState(n.storyId, { cursor: y, ancestors: x }), - "restore", - ), - C = !1; - try { - let w = f(...g); - return w instanceof Promise ? ((C = !0), w.finally(v)) : w; - } finally { - C || v(); - } - }, - ), - c = t.apply(r, p); - return ( - c && - ["object", "function", "symbol"].includes(typeof c) && - this.setState(n.storyId, (f) => ({ - callRefsByResult: new Map([ - ...Array.from(f.callRefsByResult.entries()), - [c, { __callId__: n.id, retain: n.retain }], - ]), - })), - this.update({ - ...u, - status: c instanceof Promise ? "active" : "done", - }), - c instanceof Promise - ? c.then((f) => (this.update({ ...u, status: "done" }), f), d) - : c - ); - } catch (p) { - return d(p); - } - } - update(t) { - (this.channel?.emit(Gt.CALL, t), - this.setState(t.storyId, ({ calls: r }) => { - let n = r - .concat(t) - .reduce((o, a) => Object.assign(o, { [a.id]: a }), {}); - return { - calls: Object.values(n).sort((o, a) => - o.id.localeCompare(a.id, void 0, { numeric: !0 }), - ), - }; - }), - this.sync(t.storyId)); - } - sync(t) { - let r = O(() => { - let { isLocked: n, isPlaying: o } = this.getState(t), - a = this.getLog(t), - i = a - .filter(({ ancestors: d }) => !d.length) - .find((d) => d.status === "waiting")?.callId, - l = a.some((d) => d.status === "active"); - if (this.detached || n || l || a.length === 0) { - let d = { - controlStates: { - detached: this.detached, - start: !1, - back: !1, - goto: !1, - next: !1, - end: !1, - }, - logItems: a, - }; - this.channel?.emit(Gt.SYNC, d); - return; - } - let s = a.some((d) => d.status === "done" || d.status === "error"), - u = { - controlStates: { - detached: this.detached, - start: s, - back: s, - goto: !0, - next: o, - end: o, - }, - logItems: a, - pausedAt: i, - }; - this.channel?.emit(Gt.SYNC, u); - }, "synchronize"); - this.setState( - t, - ({ syncTimeout: n }) => ( - clearTimeout(n), - { syncTimeout: setTimeout(r, 0) } - ), - ); - } - }; -O(Y0, "Instrumenter"); -var g$ = Y0; -function Bc(e, t = {}) { - try { - let r = !1, - n = !1; - return ( - dt.window?.location?.search?.includes("instrument=true") - ? (r = !0) - : dt.window?.location?.search?.includes("instrument=false") && (n = !0), - (dt.window?.parent === dt.window && !r) || n - ? e - : (dt.window && - !dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ && - (dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__ = - new g$()), - (dt.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument( - e, - t, - )) - ); - } catch (r) { - return (N2.warn(r), e); - } -} -O(Bc, "instrument"); -function K0(e, t) { - let r = e; - for (; r != null; ) { - let n = Object.getOwnPropertyDescriptor(r, t); - if (n) return n; - r = Object.getPrototypeOf(r); - } -} -O(K0, "getPropertyDescriptor"); -function X0(e) { - if (typeof e != "function") return !1; - let t = Object.getOwnPropertyDescriptor(e, "prototype"); - return t ? !t.writable : !1; -} -O(X0, "isClass"); -var m$ = Object.create, - Ni = Object.defineProperty, - h$ = Object.getOwnPropertyDescriptor, - y$ = Object.getOwnPropertyNames, - b$ = Object.getPrototypeOf, - v$ = Object.prototype.hasOwnProperty, - R = (e, t) => Ni(e, "name", { value: t, configurable: !0 }), - x$ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), - Z0 = (e, t) => { - for (var r in t) Ni(e, r, { get: t[r], enumerable: !0 }); - }, - E$ = (e, t, r, n) => { - if ((t && typeof t == "object") || typeof t == "function") - for (let o of y$(t)) - !v$.call(e, o) && - o !== r && - Ni(e, o, { - get: () => t[o], - enumerable: !(n = h$(t, o)) || n.enumerable, - }); - return e; - }, - w$ = (e, t, r) => ( - (r = e != null ? m$(b$(e)) : {}), - E$(Ni(r, "default", { value: e, enumerable: !0 }), e) - ), - S$ = x$((e) => { - (Object.defineProperty(e, "__esModule", { value: !0 }), - (e.isEqual = (function () { - var t = Object.prototype.toString, - r = Object.getPrototypeOf, - n = Object.getOwnPropertySymbols - ? function (o) { - return Object.keys(o).concat(Object.getOwnPropertySymbols(o)); - } - : Object.keys; - return function (o, a) { - return R(function i(l, s, u) { - var d, - p, - c, - f = t.call(l), - g = t.call(s); - if (l === s) return !0; - if (l == null || s == null) return !1; - if (u.indexOf(l) > -1 && u.indexOf(s) > -1) return !0; - if ( - (u.push(l, s), - f != g || - ((d = n(l)), - (p = n(s)), - d.length != p.length || - d.some(function (y) { - return !i(l[y], s[y], u); - }))) - ) - return !1; - switch (f.slice(8, -1)) { - case "Symbol": - return l.valueOf() == s.valueOf(); - case "Date": - case "Number": - return +l == +s || (+l != +l && +s != +s); - case "RegExp": - case "Function": - case "String": - case "Boolean": - return "" + l == "" + s; - case "Set": - case "Map": - ((d = l.entries()), (p = s.entries())); - do if (!i((c = d.next()).value, p.next().value, u)) return !1; - while (!c.done); - return !0; - case "ArrayBuffer": - ((l = new Uint8Array(l)), (s = new Uint8Array(s))); - case "DataView": - ((l = new Uint8Array(l.buffer)), - (s = new Uint8Array(s.buffer))); - case "Float32Array": - case "Float64Array": - case "Int8Array": - case "Int16Array": - case "Int32Array": - case "Uint8Array": - case "Uint16Array": - case "Uint32Array": - case "Uint8ClampedArray": - case "Arguments": - case "Array": - if (l.length != s.length) return !1; - for (c = 0; c < l.length; c++) - if ( - (c in l || c in s) && - (c in l != c in s || !i(l[c], s[c], u)) - ) - return !1; - return !0; - case "Object": - return i(r(l), r(s), u); - default: - return !1; - } - }, "n")(o, a, []); - }; - })())); - }); -function J0(e) { - return e - .replace(/_/g, " ") - .replace(/-/g, " ") - .replace(/\./g, " ") - .replace(/([^\n])([A-Z])([a-z])/g, (t, r, n, o) => `${r} ${n}${o}`) - .replace(/([a-z])([A-Z])/g, (t, r, n) => `${r} ${n}`) - .replace(/([a-z])([0-9])/gi, (t, r, n) => `${r} ${n}`) - .replace(/([0-9])([a-z])/gi, (t, r, n) => `${r} ${n}`) - .replace(/(\s|^)(\w)/g, (t, r, n) => `${r}${n.toUpperCase()}`) - .replace(/ +/g, " ") - .trim(); -} -R(J0, "toStartCaseStr"); -var tf = w$(S$()), - Q0 = R((e) => e.map((t) => typeof t < "u").filter(Boolean).length, "count"), - C$ = R((e, t) => { - let { exists: r, eq: n, neq: o, truthy: a } = e; - if (Q0([r, n, o, a]) > 1) - throw new Error( - `Invalid conditional test ${JSON.stringify({ exists: r, eq: n, neq: o })}`, - ); - if (typeof n < "u") return (0, tf.isEqual)(t, n); - if (typeof o < "u") return !(0, tf.isEqual)(t, o); - if (typeof r < "u") { - let i = typeof t < "u"; - return r ? i : !i; - } - return typeof a > "u" || a ? !!t : !t; - }, "testValue"), - ey = R((e, t, r) => { - if (!e.if) return !0; - let { arg: n, global: o } = e.if; - if (Q0([n, o]) !== 1) - throw new Error( - `Invalid conditional value ${JSON.stringify({ arg: n, global: o })}`, - ); - let a = n ? t[n] : r[o]; - return C$(e.if, a); - }, "includeConditionalArg"); -const { global: Ml } = __STORYBOOK_MODULE_GLOBAL__, - { Channel: $$ } = __STORYBOOK_MODULE_CHANNELS__; -function ty() { - let e = { setHandler: R(() => {}, "setHandler"), send: R(() => {}, "send") }; - return new $$({ transport: e }); -} -R(ty, "mockChannel"); -var ry = class { - constructor() { - ((this.getChannel = R(() => { - if (!this.channel) { - let t = ty(); - return (this.setChannel(t), t); - } - return this.channel; - }, "getChannel")), - (this.ready = R(() => this.promise, "ready")), - (this.hasChannel = R(() => !!this.channel, "hasChannel")), - (this.setChannel = R((t) => { - ((this.channel = t), this.resolve()); - }, "setChannel")), - (this.promise = new Promise((t) => { - this.resolve = () => t(this.getChannel()); - }))); - } -}; -R(ry, "AddonStore"); -var A$ = ry, - zl = "__STORYBOOK_ADDONS_PREVIEW"; -function ny() { - return (Ml[zl] || (Ml[zl] = new A$()), Ml[zl]); -} -R(ny, "getAddonsStore"); -var rf = ny(); -const { logger: kN } = __STORYBOOK_MODULE_CLIENT_LOGGER__, - { - FORCE_RE_RENDER: ON, - RESET_STORY_ARGS: FN, - STORY_RENDERED: nf, - UPDATE_GLOBALS: _N, - UPDATE_STORY_ARGS: TN, - } = __STORYBOOK_MODULE_CORE_EVENTS__, - { global: Hl } = __STORYBOOK_MODULE_GLOBAL__; -var oy = class { - constructor() { - ((this.hookListsMap = void 0), - (this.mountedDecorators = void 0), - (this.prevMountedDecorators = void 0), - (this.currentHooks = void 0), - (this.nextHookIndex = void 0), - (this.currentPhase = void 0), - (this.currentEffects = void 0), - (this.prevEffects = void 0), - (this.currentDecoratorName = void 0), - (this.hasUpdates = void 0), - (this.currentContext = void 0), - (this.renderListener = R((t) => { - t === this.currentContext?.id && - (this.triggerEffects(), - (this.currentContext = null), - this.removeRenderListeners()); - }, "renderListener")), - this.init()); - } - init() { - ((this.hookListsMap = new WeakMap()), - (this.mountedDecorators = new Set()), - (this.prevMountedDecorators = new Set()), - (this.currentHooks = []), - (this.nextHookIndex = 0), - (this.currentPhase = "NONE"), - (this.currentEffects = []), - (this.prevEffects = []), - (this.currentDecoratorName = null), - (this.hasUpdates = !1), - (this.currentContext = null)); - } - clean() { - (this.prevEffects.forEach((t) => { - t.destroy && t.destroy(); - }), - this.init(), - this.removeRenderListeners()); - } - getNextHook() { - let t = this.currentHooks[this.nextHookIndex]; - return ((this.nextHookIndex += 1), t); - } - triggerEffects() { - (this.prevEffects.forEach((t) => { - !this.currentEffects.includes(t) && t.destroy && t.destroy(); - }), - this.currentEffects.forEach((t) => { - this.prevEffects.includes(t) || (t.destroy = t.create()); - }), - (this.prevEffects = this.currentEffects), - (this.currentEffects = [])); - } - addRenderListeners() { - (this.removeRenderListeners(), rf.getChannel().on(nf, this.renderListener)); - } - removeRenderListeners() { - rf.getChannel().removeListener(nf, this.renderListener); - } -}; -R(oy, "HooksContext"); -var D$ = oy; -function Qs(e) { - let t = R((...r) => { - let { hooks: n } = typeof r[0] == "function" ? r[1] : r[0], - o = n.currentPhase, - a = n.currentHooks, - i = n.nextHookIndex, - l = n.currentDecoratorName; - ((n.currentDecoratorName = e.name), - n.prevMountedDecorators.has(e) - ? ((n.currentPhase = "UPDATE"), - (n.currentHooks = n.hookListsMap.get(e) || [])) - : ((n.currentPhase = "MOUNT"), - (n.currentHooks = []), - n.hookListsMap.set(e, n.currentHooks), - n.prevMountedDecorators.add(e)), - (n.nextHookIndex = 0)); - let s = Hl.STORYBOOK_HOOKS_CONTEXT; - Hl.STORYBOOK_HOOKS_CONTEXT = n; - let u = e(...r); - if ( - ((Hl.STORYBOOK_HOOKS_CONTEXT = s), - n.currentPhase === "UPDATE" && n.getNextHook() != null) - ) - throw new Error( - "Rendered fewer hooks than expected. This may be caused by an accidental early return statement.", - ); - return ( - (n.currentPhase = o), - (n.currentHooks = a), - (n.nextHookIndex = i), - (n.currentDecoratorName = l), - u - ); - }, "hookified"); - return ((t.originalFn = e), t); -} -R(Qs, "hookify"); -var Ul = 0, - k$ = 25, - O$ = R( - (e) => (t, r) => { - let n = e( - Qs(t), - r.map((o) => Qs(o)), - ); - return (o) => { - let { hooks: a } = o; - ((a.prevMountedDecorators ??= new Set()), - (a.mountedDecorators = new Set([t, ...r])), - (a.currentContext = o), - (a.hasUpdates = !1)); - let i = n(o); - for (Ul = 1; a.hasUpdates; ) - if ( - ((a.hasUpdates = !1), - (a.currentEffects = []), - (i = n(o)), - (Ul += 1), - Ul > k$) - ) - throw new Error( - "Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.", - ); - return (a.addRenderListeners(), i); - }; - }, - "applyHooks", - ); -function La(e) { - if (!e || typeof e != "object") return !1; - let t = Object.getPrototypeOf(e); - return t === null || - t === Object.prototype || - Object.getPrototypeOf(t) === null - ? Object.prototype.toString.call(e) === "[object Object]" - : !1; -} -R(La, "isPlainObject"); -function jn(e, t) { - let r = {}, - n = Object.keys(e); - for (let o = 0; o < n.length; o++) { - let a = n[o], - i = e[a]; - r[a] = t(i, a, e); - } - return r; -} -R(jn, "mapValues"); -function ay(e, t) { - let r = {}, - n = Object.keys(e); - for (let o = 0; o < n.length; o++) { - let a = n[o], - i = e[a]; - t(i, a) && (r[a] = i); - } - return r; -} -R(ay, "pickBy"); -const { once: PN } = __STORYBOOK_MODULE_CLIENT_LOGGER__; -function ji(e) { - for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; - var n = Array.from(typeof e == "string" ? [e] : e); - n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); - var o = n.reduce(function (l, s) { - var u = s.match(/\n([\t ]+|(?!\s).)/g); - return u - ? l.concat( - u.map(function (d) { - var p, c; - return (c = - (p = d.match(/[\t ]/g)) === null || p === void 0 - ? void 0 - : p.length) !== null && c !== void 0 - ? c - : 0; - }), - ) - : l; - }, []); - if (o.length) { - var a = new RegExp( - ` -[ ]{` + - Math.min.apply(Math, o) + - "}", - "g", - ); - n = n.map(function (l) { - return l.replace( - a, - ` -`, - ); - }); - } - n[0] = n[0].replace(/^\r?\n/, ""); - var i = n[0]; - return ( - t.forEach(function (l, s) { - var u = i.match(/(?:^|\n)( *)$/), - d = u ? u[1] : "", - p = l; - (typeof l == "string" && - l.includes(` -`) && - (p = String(l) - .split( - ` -`, - ) - .map(function (c, f) { - return f === 0 ? c : "" + d + c; - }).join(` -`)), - (i += p + n[s + 1])); - }), - i - ); -} -R(ji, "dedent"); -var iy = "UNTARGETED"; -function ly({ args: e, argTypes: t }) { - let r = {}; - return ( - Object.entries(e).forEach(([n, o]) => { - let { target: a = iy } = t[n] || {}; - ((r[a] = r[a] || {}), (r[a][n] = o)); - }), - r - ); -} -R(ly, "groupArgsByTarget"); -var F$ = R( - (e = {}) => - Object.entries(e).reduce( - (t, [r, { defaultValue: n }]) => (typeof n < "u" && (t[r] = n), t), - {}, - ), - "getValuesFromArgTypes", - ), - _$ = R((e) => (typeof e == "string" ? { name: e } : e), "normalizeType"), - T$ = R((e) => (typeof e == "string" ? { type: e } : e), "normalizeControl"), - R$ = R((e, t) => { - let { type: r, control: n, ...o } = e, - a = { name: t, ...o }; - return ( - r && (a.type = _$(r)), - n ? (a.control = T$(n)) : n === !1 && (a.control = { disable: !0 }), - a - ); - }, "normalizeInputType"), - ri = R((e) => jn(e, R$), "normalizeInputTypes"); -const { deprecate: P$, logger: I$ } = __STORYBOOK_MODULE_CLIENT_LOGGER__; -var se = R((e) => (Array.isArray(e) ? e : e ? [e] : []), "normalizeArrays"), - L$ = ji` -CSF .story annotations deprecated; annotate story functions directly: -- StoryFn.story.name => StoryFn.storyName -- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) -See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. -`; -function sy(e, t, r) { - let n = t, - o = typeof t == "function" ? t : null, - { story: a } = n; - a && (I$.debug("deprecated story", a), P$(L$)); - let i = p3(e), - l = (typeof n != "function" && n.name) || n.storyName || a?.name || i, - s = [...se(n.decorators), ...se(a?.decorators)], - u = { ...a?.parameters, ...n.parameters }, - d = { ...a?.args, ...n.args }, - p = { ...a?.argTypes, ...n.argTypes }, - c = [...se(n.loaders), ...se(a?.loaders)], - f = [...se(n.beforeEach), ...se(a?.beforeEach)], - g = [...se(n.afterEach), ...se(a?.afterEach)], - { render: y, play: x, tags: v = [], globals: C = {} } = n, - w = u.__id || d3(r.id, i); - return { - moduleExport: t, - id: w, - name: l, - tags: v, - decorators: s, - parameters: u, - args: d, - argTypes: ri(p), - loaders: c, - beforeEach: f, - afterEach: g, - globals: C, - ...(y && { render: y }), - ...(o && { userStoryFn: o }), - ...(x && { play: x }), - }; -} -R(sy, "normalizeStory"); -function uy(e, t = e.title, r) { - let { id: n, argTypes: o } = e; - return { - id: Wi(n || t), - ...e, - title: t, - ...(o && { argTypes: ri(o) }), - parameters: { fileName: r, ...e.parameters }, - }; -} -R(uy, "normalizeComponentAnnotations"); -const { NoRenderFunctionError: B$ } = - __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, - { global: N$ } = __STORYBOOK_MODULE_GLOBAL__, - { global: j$ } = __STORYBOOK_MODULE_GLOBAL__; -function cy(e) { - return e != null && dy(e).includes("mount"); -} -R(cy, "mountDestructured"); -function dy(e) { - let t = e.toString().match(/[^(]*\(([^)]*)/); - if (!t) return []; - let r = eu(t[1]); - if (!r.length) return []; - let n = r[0]; - return n.startsWith("{") && n.endsWith("}") - ? eu(n.slice(1, -1).replace(/\s/g, "")).map((o) => - o.replace(/:.*|=.*/g, ""), - ) - : []; -} -R(dy, "getUsedProps"); -function eu(e) { - let t = [], - r = [], - n = 0; - for (let a = 0; a < e.length; a++) - if (e[a] === "{" || e[a] === "[") r.push(e[a] === "{" ? "}" : "]"); - else if (e[a] === r[r.length - 1]) r.pop(); - else if (!r.length && e[a] === ",") { - let i = e.substring(n, a).trim(); - (i && t.push(i), (n = a + 1)); - } - let o = e.substring(n).trim(); - return (o && t.push(o), t); -} -R(eu, "splitByComma"); -function py(e, t, r) { - let n = r(e); - return (o) => t(n, o); -} -R(py, "decorateStory"); -function fy({ - componentId: e, - title: t, - kind: r, - id: n, - name: o, - story: a, - parameters: i, - initialArgs: l, - argTypes: s, - ...u -} = {}) { - return u; -} -R(fy, "sanitizeStoryContextUpdate"); -function gy(e, t) { - let r = {}, - n = R( - (a) => (i) => { - if (!r.value) throw new Error("Decorated function called without init"); - return ((r.value = { ...r.value, ...fy(i) }), a(r.value)); - }, - "bindWithContext", - ), - o = t.reduce((a, i) => py(a, i, n), e); - return (a) => ((r.value = a), o(a)); -} -R(gy, "defaultDecorateStory"); -var Ar = R((...e) => { - let t = {}, - r = e.filter(Boolean), - n = r.reduce( - (o, a) => ( - Object.entries(a).forEach(([i, l]) => { - let s = o[i]; - Array.isArray(l) || typeof s > "u" - ? (o[i] = l) - : La(l) && La(s) - ? (t[i] = !0) - : typeof l < "u" && (o[i] = l); - }), - o - ), - {}, - ); - return ( - Object.keys(t).forEach((o) => { - let a = r - .filter(Boolean) - .map((i) => i[o]) - .filter((i) => typeof i < "u"); - a.every((i) => La(i)) ? (n[o] = Ar(...a)) : (n[o] = a[a.length - 1]); - }), - n - ); -}, "combineParameters"); -function my(e, t, r) { - let { moduleExport: n, id: o, name: a } = e || {}, - i = hy(e, t, r), - l = R(async (A) => { - let S = {}; - for (let D of [se(r.loaders), se(t.loaders), se(e.loaders)]) { - if (A.abortSignal.aborted) return S; - let F = await Promise.all(D.map((k) => k(A))); - Object.assign(S, ...F); - } - return S; - }, "applyLoaders"), - s = R(async (A) => { - let S = new Array(); - for (let D of [ - ...se(r.beforeEach), - ...se(t.beforeEach), - ...se(e.beforeEach), - ]) { - if (A.abortSignal.aborted) return S; - let F = await D(A); - F && S.push(F); - } - return S; - }, "applyBeforeEach"), - u = R(async (A) => { - let S = [ - ...se(r.afterEach), - ...se(t.afterEach), - ...se(e.afterEach), - ].reverse(); - for (let D of S) { - if (A.abortSignal.aborted) return; - await D(A); - } - }, "applyAfterEach"), - d = R((A) => A.originalStoryFn(A.args, A), "undecoratedStoryFn"), - { applyDecorators: p = gy, runStep: c } = r, - f = [...se(e?.decorators), ...se(t?.decorators), ...se(r?.decorators)], - g = e?.userStoryFn || e?.render || t.render || r.render, - y = O$(p)(d, f), - x = R((A) => y(A), "unboundStoryFn"), - v = e?.play ?? t?.play, - C = cy(v); - if (!g && !C) throw new B$({ id: o }); - let w = R( - (A) => async () => (await A.renderToCanvas(), A.canvas), - "defaultMount", - ), - E = e.mount ?? t.mount ?? r.mount ?? w, - $ = r.testingLibraryRender; - return { - storyGlobals: {}, - ...i, - moduleExport: n, - id: o, - name: a, - story: a, - originalStoryFn: g, - undecoratedStoryFn: d, - unboundStoryFn: x, - applyLoaders: l, - applyBeforeEach: s, - applyAfterEach: u, - playFunction: v, - runStep: c, - mount: E, - testingLibraryRender: $, - renderToCanvas: r.renderToCanvas, - usesMount: C, - }; -} -R(my, "prepareStory"); -function hy(e, t, r) { - let n = ["dev", "test"], - o = j$.DOCS_OPTIONS?.autodocs === !0 ? ["autodocs"] : [], - a = nb( - ...n, - ...o, - ...(r.tags ?? []), - ...(t.tags ?? []), - ...(e?.tags ?? []), - ), - i = Ar(r.parameters, t.parameters, e?.parameters), - { argTypesEnhancers: l = [], argsEnhancers: s = [] } = r, - u = Ar(r.argTypes, t.argTypes, e?.argTypes); - if (e) { - let v = e?.userStoryFn || e?.render || t.render || r.render; - i.__isArgsStory = v && v.length > 0; - } - let d = { ...r.args, ...t.args, ...e?.args }, - p = { ...t.globals, ...e?.globals }, - c = { - componentId: t.id, - title: t.title, - kind: t.title, - id: e?.id || t.id, - name: e?.name || "__meta", - story: e?.name || "__meta", - component: t.component, - subcomponents: t.subcomponents, - tags: a, - parameters: i, - initialArgs: d, - argTypes: u, - storyGlobals: p, - }; - c.argTypes = l.reduce((v, C) => C({ ...c, argTypes: v }), c.argTypes); - let f = { ...d }; - c.initialArgs = [...s].reduce( - (v, C) => ({ ...v, ...C({ ...c, initialArgs: v }) }), - f, - ); - let { name: g, story: y, ...x } = c; - return x; -} -R(hy, "preparePartialAnnotations"); -function yy(e) { - let { args: t } = e, - r = { ...e, allArgs: void 0, argsByTarget: void 0 }; - if (N$.FEATURES?.argTypeTargetsV7) { - let a = ly(e); - r = { ...e, allArgs: e.args, argsByTarget: a, args: a[iy] || {} }; - } - let n = Object.entries(r.args).reduce((a, [i, l]) => { - if (!r.argTypes[i]?.mapping) return ((a[i] = l), a); - let s = R((u) => { - let d = r.argTypes[i].mapping; - return d && u in d ? d[u] : u; - }, "mappingFn"); - return ((a[i] = Array.isArray(l) ? l.map(s) : s(l)), a); - }, {}), - o = Object.entries(n).reduce((a, [i, l]) => { - let s = r.argTypes[i] || {}; - return (ey(s, n, r.globals) && (a[i] = l), a); - }, {}); - return { ...r, unmappedArgs: t, args: o }; -} -R(yy, "prepareContext"); -const { logger: M$ } = __STORYBOOK_MODULE_CLIENT_LOGGER__; -var tu = R((e, t, r) => { - let n = typeof e; - switch (n) { - case "boolean": - case "string": - case "number": - case "function": - case "symbol": - return { name: n }; - } - return e - ? r.has(e) - ? (M$.warn(ji` - We've detected a cycle in arg '${t}'. Args should be JSON-serializable. - - Consider using the mapping feature or fully custom args: - - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args - `), - { name: "other", value: "cyclic object" }) - : (r.add(e), - Array.isArray(e) - ? { - name: "array", - value: - e.length > 0 - ? tu(e[0], t, new Set(r)) - : { name: "other", value: "unknown" }, - } - : { name: "object", value: jn(e, (o) => tu(o, t, new Set(r))) }) - : { name: "object", value: {} }; - }, "inferType"), - by = R((e) => { - let { id: t, argTypes: r = {}, initialArgs: n = {} } = e, - o = jn(n, (i, l) => ({ name: l, type: tu(i, `${t}.${l}`, new Set()) })), - a = jn(r, (i, l) => ({ name: l })); - return Ar(o, a, r); - }, "inferArgTypes"); -by.secondPass = !0; -const { logger: z$ } = __STORYBOOK_MODULE_CLIENT_LOGGER__; -var of = R( - (e, t) => (Array.isArray(t) ? t.includes(e) : e.match(t)), - "matches", - ), - H$ = R( - (e, t, r) => - !t && !r - ? e - : e && - ay(e, (n, o) => { - let a = n.name || o.toString(); - return !!(!t || of(a, t)) && (!r || !of(a, r)); - }), - "filterArgTypes", - ), - U$ = R((e, t, r) => { - let { type: n, options: o } = e; - if (n) { - if (r.color && r.color.test(t)) { - let a = n.name; - if (a === "string") return { control: { type: "color" } }; - a !== "enum" && - z$.warn( - `Addon controls: Control of type color only supports string, received "${a}" instead`, - ); - } - if (r.date && r.date.test(t)) return { control: { type: "date" } }; - switch (n.name) { - case "array": - return { control: { type: "object" } }; - case "boolean": - return { control: { type: "boolean" } }; - case "string": - return { control: { type: "text" } }; - case "number": - return { control: { type: "number" } }; - case "enum": { - let { value: a } = n; - return { - control: { type: a?.length <= 5 ? "radio" : "select" }, - options: a, - }; - } - case "function": - case "symbol": - return null; - default: - return { control: { type: o ? "select" : "object" } }; - } - } - }, "inferControl"), - vy = R((e) => { - let { - argTypes: t, - parameters: { - __isArgsStory: r, - controls: { - include: n = null, - exclude: o = null, - matchers: a = {}, - } = {}, - }, - } = e; - if (!r) return t; - let i = H$(t, n, o), - l = jn(i, (s, u) => s?.type && U$(s, u.toString(), a)); - return Ar(l, i); - }, "inferControls"); -vy.secondPass = !0; -function Nc({ - argTypes: e, - globalTypes: t, - argTypesEnhancers: r, - decorators: n, - loaders: o, - beforeEach: a, - afterEach: i, - initialGlobals: l, - ...s -}) { - return { - ...(e && { argTypes: ri(e) }), - ...(t && { globalTypes: ri(t) }), - decorators: se(n), - loaders: se(o), - beforeEach: se(a), - afterEach: se(i), - argTypesEnhancers: [...(r || []), by, vy], - initialGlobals: l, - ...s, - }; -} -R(Nc, "normalizeProjectAnnotations"); -const { global: W$ } = __STORYBOOK_MODULE_GLOBAL__; -var V$ = R( - (e) => async () => { - let t = []; - for (let r of e) { - let n = await r(); - n && t.unshift(n); - } - return async () => { - for (let r of t) await r(); - }; - }, - "composeBeforeAllHooks", -); -function xy(e) { - return async (t, r, n) => { - await e.reduceRight( - (o, a) => async () => a(t, o, n), - async () => r(n), - )(); - }; -} -R(xy, "composeStepRunners"); -function Mn(e, t) { - return e.map((r) => r.default?.[t] ?? r[t]).filter(Boolean); -} -R(Mn, "getField"); -function Zt(e, t, r = {}) { - return Mn(e, t).reduce((n, o) => { - let a = se(o); - return r.reverseFileOrder ? [...a, ...n] : [...n, ...a]; - }, []); -} -R(Zt, "getArrayField"); -function Oo(e, t) { - return Object.assign({}, ...Mn(e, t)); -} -R(Oo, "getObjectField"); -function vn(e, t) { - return Mn(e, t).pop(); -} -R(vn, "getSingletonField"); -function jc(e) { - let t = Zt(e, "argTypesEnhancers"), - r = Mn(e, "runStep"), - n = Zt(e, "beforeAll"); - return { - parameters: Ar(...Mn(e, "parameters")), - decorators: Zt(e, "decorators", { - reverseFileOrder: !(W$.FEATURES?.legacyDecoratorFileOrder ?? !1), - }), - args: Oo(e, "args"), - argsEnhancers: Zt(e, "argsEnhancers"), - argTypes: Oo(e, "argTypes"), - argTypesEnhancers: [ - ...t.filter((o) => !o.secondPass), - ...t.filter((o) => o.secondPass), - ], - initialGlobals: Oo(e, "initialGlobals"), - globalTypes: Oo(e, "globalTypes"), - loaders: Zt(e, "loaders"), - beforeAll: V$(n), - beforeEach: Zt(e, "beforeEach"), - afterEach: Zt(e, "afterEach"), - render: vn(e, "render"), - renderToCanvas: vn(e, "renderToCanvas"), - applyDecorators: vn(e, "applyDecorators"), - runStep: xy(r), - tags: Zt(e, "tags"), - mount: vn(e, "mount"), - testingLibraryRender: vn(e, "testingLibraryRender"), - }; -} -R(jc, "composeConfigs"); -const { MountMustBeDestructuredError: q$ } = - __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__; -function Ey() { - try { - return ( - !!globalThis.__vitest_browser__ || - !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/) - ); - } catch { - return !1; - } -} -R(Ey, "isTestEnvironment"); -function wy(e = !0) { - if (!("document" in globalThis && "createElement" in globalThis.document)) - return () => {}; - let t = document.createElement("style"); - ((t.textContent = `*, *:before, *:after { - animation: none !important; - }`), - document.head.appendChild(t)); - let r = document.createElement("style"); - return ( - (r.textContent = `*, *:before, *:after { - animation-delay: 0s !important; - animation-direction: ${e ? "reverse" : "normal"} !important; - animation-play-state: paused !important; - transition: none !important; - }`), - document.head.appendChild(r), - document.body.clientHeight, - document.head.removeChild(t), - () => { - r.parentNode?.removeChild(r); - } - ); -} -R(wy, "pauseAnimations"); -async function Sy(e) { - if ( - !( - "document" in globalThis && - "getAnimations" in globalThis.document && - "querySelectorAll" in globalThis.document - ) - ) - return; - let t = !1; - await Promise.race([ - new Promise((r) => { - setTimeout(() => { - let n = [globalThis.document, ...Mc(globalThis.document)], - o = R(async () => { - if (t || e?.aborted) return; - let a = n - .flatMap((i) => i?.getAnimations?.() || []) - .filter((i) => i.playState === "running" && !Cy(i)); - a.length > 0 && - (await Promise.all(a.map((i) => i.finished)), await o()); - }, "checkAnimationsFinished"); - o().then(r); - }, 100); - }), - new Promise((r) => - setTimeout(() => { - ((t = !0), r(void 0)); - }, 5e3), - ), - ]); -} -R(Sy, "waitForAnimations"); -function Mc(e) { - return [e, ...e.querySelectorAll("*")].reduce( - (t, r) => ( - "shadowRoot" in r && - r.shadowRoot && - t.push(r.shadowRoot, ...Mc(r.shadowRoot)), - t - ), - [], - ); -} -R(Mc, "getShadowRoots"); -function Cy(e) { - if ( - e instanceof CSSAnimation && - e.effect instanceof KeyframeEffect && - e.effect.target - ) { - let t = getComputedStyle(e.effect.target, e.effect.pseudoElement), - r = t.animationName?.split(", ").indexOf(e.animationName); - return t.animationIterationCount.split(", ")[r] === "infinite"; - } - return !1; -} -R(Cy, "isInfiniteAnimation"); -var $y = class { - constructor() { - this.reports = []; - } - async addReport(t) { - this.reports.push(t); - } -}; -R($y, "ReporterAPI"); -var G$ = $y, - Y$ = "ComposedStory", - K$ = "Unnamed Story", - Sr = []; -function Ay(e, t, r, n, o) { - if (e === void 0) throw new Error("Expected a story but received undefined."); - t.title = t.title ?? Y$; - let a = uy(t), - i = o || e.storyName || e.story?.name || e.name || K$, - l = sy(i, e, a), - s = Nc(jc([n ?? globalThis.globalProjectAnnotations ?? {}, r ?? {}])), - u = my(l, a, s), - d = { ...F$(s.globalTypes), ...s.initialGlobals, ...u.storyGlobals }, - p = new G$(), - c = R(() => { - let v = yy({ - hooks: new D$(), - globals: d, - args: { ...u.initialArgs }, - viewMode: "story", - reporting: p, - loaded: {}, - abortSignal: new AbortController().signal, - step: R((C, w) => u.runStep(C, w, v), "step"), - canvasElement: null, - canvas: {}, - userEvent: {}, - globalTypes: s.globalTypes, - ...u, - context: null, - mount: null, - }); - return ( - (v.parameters.__isPortableStory = !0), - (v.context = v), - u.renderToCanvas && - (v.renderToCanvas = async () => { - let C = await u.renderToCanvas?.( - { - componentId: u.componentId, - title: u.title, - id: u.id, - name: u.name, - tags: u.tags, - showMain: R(() => {}, "showMain"), - showError: R((w) => { - throw new Error(`${w.title} -${w.description}`); - }, "showError"), - showException: R((w) => { - throw w; - }, "showException"), - forceRemount: !0, - storyContext: v, - storyFn: R(() => u.unboundStoryFn(v), "storyFn"), - unboundStoryFn: u.unboundStoryFn, - }, - v.canvasElement, - ); - C && Sr.push(C); - }), - (v.mount = u.mount(v)), - v - ); - }, "initializeContext"), - f, - g = R(async (v) => { - let C = c(); - return ( - (C.canvasElement ??= globalThis?.document?.body), - f && (C.loaded = f.loaded), - Object.assign(C, v), - u.playFunction(C) - ); - }, "play"), - y = R((v) => { - let C = c(); - return (Object.assign(C, v), Dy(u, C)); - }, "run"), - x = u.playFunction ? g : void 0; - return Object.assign( - R(function (v) { - let C = c(); - return ( - f && (C.loaded = f.loaded), - (C.args = { ...C.initialArgs, ...v }), - u.unboundStoryFn(C) - ); - }, "storyFn"), - { - id: u.id, - storyName: i, - load: R(async () => { - for (let C of [...Sr].reverse()) await C(); - Sr.length = 0; - let v = c(); - ((v.loaded = await u.applyLoaders(v)), - Sr.push(...(await u.applyBeforeEach(v)).filter(Boolean)), - (f = v)); - }, "load"), - globals: d, - args: u.initialArgs, - parameters: u.parameters, - argTypes: u.argTypes, - play: x, - run: y, - reporting: p, - tags: u.tags, - }, - ); -} -R(Ay, "composeStory"); -async function Dy(e, t) { - for (let a of [...Sr].reverse()) await a(); - if (((Sr.length = 0), !t.canvasElement)) { - let a = document.createElement("div"); - (globalThis?.document?.body?.appendChild(a), - (t.canvasElement = a), - Sr.push(() => { - globalThis?.document?.body?.contains(a) && - globalThis?.document?.body?.removeChild(a); - })); - } - if (((t.loaded = await e.applyLoaders(t)), t.abortSignal.aborted)) return; - Sr.push(...(await e.applyBeforeEach(t)).filter(Boolean)); - let r = e.playFunction, - n = e.usesMount; - if ((n || (await t.mount()), t.abortSignal.aborted)) return; - r && - (n || - (t.mount = async () => { - throw new q$({ playFunction: r.toString() }); - }), - await r(t)); - let o; - (Ey() ? (o = wy()) : await Sy(t.abortSignal), - await e.applyAfterEach(t), - await o?.()); -} -R(Dy, "runStory"); -var af = "Invariant failed"; -function ni(e, t) { - if (!e) { - var r = typeof t == "function" ? t() : t, - n = r ? "".concat(af, ": ").concat(r) : af; - throw new Error(n); - } -} -R(ni, "invariant"); -var ky = {}; -Z0(ky, { argsEnhancers: () => aA }); -const { ImplicitActionsDuringRendering: X$ } = - __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__, - { global: lf } = __STORYBOOK_MODULE_GLOBAL__, - { addons: Z$ } = __STORYBOOK_MODULE_PREVIEW_API__; -var J$ = "storybook/actions", - Q$ = `${J$}/action-event`, - eA = { depth: 10, clearOnStoryChange: !0, limit: 50 }, - Oy = R((e, t) => { - let r = Object.getPrototypeOf(e); - return !r || t(r) ? r : Oy(r, t); - }, "findProto"), - tA = R( - (e) => - !!( - typeof e == "object" && - e && - Oy(e, (t) => /^Synthetic(?:Base)?Event$/.test(t.constructor.name)) && - typeof e.persist == "function" - ), - "isReactSyntheticEvent", - ), - rA = R((e) => { - if (tA(e)) { - let t = Object.create( - e.constructor.prototype, - Object.getOwnPropertyDescriptors(e), - ); - t.persist(); - let r = Object.getOwnPropertyDescriptor(t, "view"), - n = r?.value; - return ( - typeof n == "object" && - n?.constructor.name === "Window" && - Object.defineProperty(t, "view", { - ...r, - value: Object.create(n.constructor.prototype), - }), - t - ); - } - return e; - }, "serializeArg"); -function Mi(e, t = {}) { - let r = { ...eA, ...t }, - n = R(function (...o) { - if (t.implicit) { - let p = ( - "__STORYBOOK_PREVIEW__" in lf ? lf.__STORYBOOK_PREVIEW__ : void 0 - )?.storyRenders.find( - (c) => c.phase === "playing" || c.phase === "rendering", - ); - if (p) { - let c = !globalThis?.FEATURES?.disallowImplicitActionsInRenderV8, - f = new X$({ phase: p.phase, name: e, deprecated: c }); - if (c) console.warn(f); - else throw f; - } - } - let a = Z$.getChannel(), - i = Date.now().toString(36) + Math.random().toString(36).substring(2), - l = 5, - s = o.map(rA), - u = o.length > 1 ? s : s[0], - d = { - id: i, - count: 0, - data: { name: e, args: u }, - options: { ...r, maxDepth: l + (r.depth || 3) }, - }; - a.emit(Q$, d); - }, "actionHandler"); - return ((n.isAction = !0), (n.implicit = t.implicit), n); -} -R(Mi, "action"); -var Fy = R((e, t) => typeof t[e] > "u" && !(e in t), "isInInitialArgs"), - nA = R((e) => { - let { - initialArgs: t, - argTypes: r, - id: n, - parameters: { actions: o }, - } = e; - if (!o || o.disable || !o.argTypesRegex || !r) return {}; - let a = new RegExp(o.argTypesRegex); - return Object.entries(r) - .filter(([i]) => !!a.test(i)) - .reduce( - (i, [l, s]) => (Fy(l, t) && (i[l] = Mi(l, { implicit: !0, id: n })), i), - {}, - ); - }, "inferActionsFromArgTypesRegex"), - oA = R((e) => { - let { - initialArgs: t, - argTypes: r, - parameters: { actions: n }, - } = e; - return n?.disable || !r - ? {} - : Object.entries(r) - .filter(([o, a]) => !!a.action) - .reduce( - (o, [a, i]) => ( - Fy(a, t) && - (o[a] = Mi(typeof i.action == "string" ? i.action : a)), - o - ), - {}, - ); - }, "addActionsFromArgTypes"), - aA = [oA, nA], - _y = {}; -Z0(_y, { loaders: () => sA }); -const { onMockCall: iA } = __STORYBOOK_MODULE_TEST__; -var sf = !1, - lA = R((e) => { - let { parameters: t } = e; - t?.actions?.disable || - sf || - (iA((r, n) => { - let o = r.getMockName(); - o !== "spy" && - (!/^next\/.*::/.test(o) || - [ - "next/router::useRouter()", - "next/navigation::useRouter()", - "next/navigation::redirect", - "next/cache::", - "next/headers::cookies().set", - "next/headers::cookies().delete", - "next/headers::headers().set", - "next/headers::headers().delete", - ].some((a) => o.startsWith(a))) && - Mi(o)(n); - }), - (sf = !0)); - }, "logActionsWhenMockCalled"), - sA = [lA], - uf = R(() => ({ ...ky, ..._y }), "default"), - oi = "backgrounds"; -const { useEffect: cf } = __STORYBOOK_MODULE_PREVIEW_API__; -var uA = { - light: { name: "light", value: "#F8F8F8" }, - dark: { name: "dark", value: "#333" }, - }, - { document: $t } = globalThis, - cA = R( - () => - globalThis?.matchMedia - ? !!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches - : !1, - "isReduceMotionEnabled", - ), - df = R((e) => { - (Array.isArray(e) ? e : [e]).forEach(dA); - }, "clearStyles"), - dA = R((e) => { - if (!$t) return; - let t = $t.getElementById(e); - t && t.parentElement && t.parentElement.removeChild(t); - }, "clearStyle"), - pA = R((e, t) => { - if (!$t) return; - let r = $t.getElementById(e); - if (r) r.innerHTML !== t && (r.innerHTML = t); - else { - let n = $t.createElement("style"); - (n.setAttribute("id", e), (n.innerHTML = t), $t.head.appendChild(n)); - } - }, "addGridStyle"), - fA = R((e, t, r) => { - if (!$t) return; - let n = $t.getElementById(e); - if (n) n.innerHTML !== t && (n.innerHTML = t); - else { - let o = $t.createElement("style"); - (o.setAttribute("id", e), (o.innerHTML = t)); - let a = `addon-backgrounds-grid${r ? `-docs-${r}` : ""}`, - i = $t.getElementById(a); - i ? i.parentElement?.insertBefore(o, i) : $t.head.appendChild(o); - } - }, "addBackgroundStyle"), - gA = { cellSize: 100, cellAmount: 10, opacity: 0.8 }, - pf = "addon-backgrounds", - ff = "addon-backgrounds-grid", - mA = cA() ? "" : "transition: background-color 0.3s;", - hA = R((e, t) => { - let { globals: r = {}, parameters: n = {}, viewMode: o, id: a } = t, - { options: i = uA, disable: l, grid: s = gA } = n[oi] || {}, - u = r[oi] || {}, - d = typeof u == "string" ? u : u?.value, - p = d ? i[d] : void 0, - c = typeof p == "string" ? p : p?.value || "transparent", - f = typeof u == "string" ? !1 : u.grid || !1, - g = !!p && !l, - y = o === "docs" ? `#anchor--${a} .docs-story` : ".sb-show-main", - x = o === "docs" ? `#anchor--${a} .docs-story` : ".sb-show-main", - v = n.layout === void 0 || n.layout === "padded", - C = o === "docs" ? 20 : v ? 16 : 0, - { - cellAmount: w, - cellSize: E, - opacity: $, - offsetX: A = C, - offsetY: S = C, - } = s, - D = o === "docs" ? `${pf}-docs-${a}` : `${pf}-color`, - F = o === "docs" ? a : null; - cf(() => { - let _ = ` - ${y} { - background: ${c} !important; - ${mA} - }`; - if (!g) { - df(D); - return; - } - fA(D, _, F); - }, [y, D, F, g, c]); - let k = o === "docs" ? `${ff}-docs-${a}` : `${ff}`; - return ( - cf(() => { - if (!f) { - df(k); - return; - } - let _ = [ - `${E * w}px ${E * w}px`, - `${E * w}px ${E * w}px`, - `${E}px ${E}px`, - `${E}px ${E}px`, - ].join(", "), - I = ` - ${x} { - background-size: ${_} !important; - background-position: ${A}px ${S}px, ${A}px ${S}px, ${A}px ${S}px, ${A}px ${S}px !important; - background-blend-mode: difference !important; - background-image: linear-gradient(rgba(130, 130, 130, ${$}) 1px, transparent 1px), - linear-gradient(90deg, rgba(130, 130, 130, ${$}) 1px, transparent 1px), - linear-gradient(rgba(130, 130, 130, ${$ / 2}) 1px, transparent 1px), - linear-gradient(90deg, rgba(130, 130, 130, ${$ / 2}) 1px, transparent 1px) !important; - } - `; - pA(k, I); - }, [w, E, x, k, f, A, S, $]), - e() - ); - }, "withBackgroundAndGrid"), - yA = globalThis.FEATURES?.backgrounds ? [hA] : [], - bA = { - [oi]: { grid: { cellSize: 20, opacity: 0.5, cellAmount: 5 }, disable: !1 }, - }, - vA = { [oi]: { value: void 0, grid: !1 } }, - gf = R( - () => ({ decorators: yA, parameters: bA, initialGlobals: vA }), - "default", - ), - { step: xA } = Bc( - { step: R(async (e, t, r) => t(r), "step") }, - { intercept: !0 }, - ), - mf = R( - () => ({ parameters: { throwPlayFunctionExceptions: !1 }, runStep: xA }), - "default", - ); -const { addons: hf } = __STORYBOOK_MODULE_PREVIEW_API__, - { STORY_RENDER_PHASE_CHANGED: EA } = __STORYBOOK_MODULE_CORE_EVENTS__; -var zi = "storybook/highlight", - wA = `${zi}/add`, - SA = `${zi}/remove`, - CA = `${zi}/reset`, - $A = `${zi}/scroll-into-view`, - yf = 2147483647, - yr = 28, - bf = { - chevronLeft: [ - "M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z", - ], - chevronRight: [ - "M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z", - ], - info: [ - "M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z", - "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", - ], - shareAlt: [ - "M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z", - "M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z", - ], - }, - AA = "svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","), - _e = R((e, t = {}, r) => { - let n = AA.includes(e) - ? document.createElementNS("http://www.w3.org/2000/svg", e) - : document.createElement(e); - return ( - Object.entries(t).forEach(([o, a]) => { - /[A-Z]/.test(o) - ? (o === "onClick" && - (n.addEventListener("click", a), - n.addEventListener("keydown", (i) => { - (i.key === "Enter" || i.key === " ") && - (i.preventDefault(), a()); - })), - o === "onMouseEnter" && n.addEventListener("mouseenter", a), - o === "onMouseLeave" && n.addEventListener("mouseleave", a)) - : n.setAttribute(o, a); - }), - r?.forEach((o) => { - if (!(o == null || o === !1)) - try { - n.appendChild(o); - } catch { - n.appendChild(document.createTextNode(String(o))); - } - }), - n - ); - }, "createElement"), - ga = R( - (e) => - bf[e] && - _e( - "svg", - { - width: "14", - height: "14", - viewBox: "0 0 14 14", - xmlns: "http://www.w3.org/2000/svg", - }, - bf[e].map((t) => - _e("path", { - fill: "currentColor", - "fill-rule": "evenodd", - "clip-rule": "evenodd", - d: t, - }), - ), - ), - "createIcon", - ), - DA = R((e) => { - if ("elements" in e) { - let { elements: n, color: o, style: a } = e; - return { - id: void 0, - priority: 0, - selectors: n, - styles: { - outline: `2px ${a} ${o}`, - outlineOffset: "2px", - boxShadow: "0 0 0 6px rgba(255,255,255,0.6)", - }, - menu: void 0, - }; - } - let { menu: t, ...r } = e; - return { - id: void 0, - priority: 0, - styles: { outline: "2px dashed #029cfd" }, - ...r, - menu: Array.isArray(t) ? (t.every(Array.isArray) ? t : [t]) : void 0, - }; - }, "normalizeOptions"), - kA = R((e) => e instanceof Function, "isFunction"), - bo = new Map(), - Lr = new Map(), - ma = new Map(), - Yt = R((e) => { - let t = Symbol(); - return ( - Lr.set(t, []), - bo.set(t, e), - { - get: R(() => bo.get(t), "get"), - set: R((r) => { - let n = bo.get(t), - o = kA(r) ? r(n) : r; - o !== n && - (bo.set(t, o), - Lr.get(t)?.forEach((a) => { - (ma.get(a)?.(), ma.set(a, a(o))); - })); - }, "set"), - subscribe: R( - (r) => ( - Lr.get(t)?.push(r), - () => { - let n = Lr.get(t); - n && - Lr.set( - t, - n.filter((o) => o !== r), - ); - } - ), - "subscribe", - ), - teardown: R(() => { - (Lr.get(t)?.forEach((r) => { - (ma.get(r)?.(), ma.delete(r)); - }), - Lr.delete(t), - bo.delete(t)); - }, "teardown"), - } - ); - }, "useStore"), - vf = R((e) => { - let t = document.getElementById("storybook-root"), - r = new Map(); - for (let n of e) { - let { priority: o = 0 } = n; - for (let a of n.selectors) { - let i = [ - ...document.querySelectorAll( - `:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`, - ), - ...(t?.querySelectorAll(a) || []), - ]; - for (let l of i) { - let s = r.get(l); - (!s || s.priority <= o) && - r.set(l, { - ...n, - priority: o, - selectors: Array.from(new Set((s?.selectors || []).concat(a))), - }); - } - } - } - return r; - }, "mapElements"), - OA = R( - (e) => - Array.from(e.entries()) - .map( - ([ - t, - { - selectors: r, - styles: n, - hoverStyles: o, - focusStyles: a, - menu: i, - }, - ]) => { - let { - top: l, - left: s, - width: u, - height: d, - } = t.getBoundingClientRect(), - { position: p } = getComputedStyle(t); - return { - element: t, - selectors: r, - styles: n, - hoverStyles: o, - focusStyles: a, - menu: i, - top: p === "fixed" ? l : l + window.scrollY, - left: p === "fixed" ? s : s + window.scrollX, - width: u, - height: d, - }; - }, - ) - .sort((t, r) => r.width * r.height - t.width * t.height), - "mapBoxes", - ), - xf = R((e, t) => { - let r = e.getBoundingClientRect(), - { x: n, y: o } = t; - return ( - r?.top && - r?.left && - n >= r.left && - n <= r.left + r.width && - o >= r.top && - o <= r.top + r.height - ); - }, "isOverMenu"), - Ef = R((e, t, r) => { - if (!t || !r) return !1; - let { left: n, top: o, width: a, height: i } = e; - (i < yr && ((o = o - Math.round((yr - i) / 2)), (i = yr)), - a < yr && ((n = n - Math.round((yr - a) / 2)), (a = yr)), - t.style.position === "fixed" && - ((n += window.scrollX), (o += window.scrollY))); - let { x: l, y: s } = r; - return l >= n && l <= n + a && s >= o && s <= o + i; - }, "isTargeted"), - FA = R((e, t, r = {}) => { - let { x: n, y: o } = t, - { margin: a = 5, topOffset: i = 0, centered: l = !1 } = r, - { scrollX: s, scrollY: u, innerHeight: d, innerWidth: p } = window, - c = Math.min( - e.style.position === "fixed" ? o - u : o, - d - e.clientHeight - a - i + u, - ), - f = l ? e.clientWidth / 2 : 0, - g = - e.style.position === "fixed" - ? Math.max(Math.min(n - s, p - f - a), f + a) - : Math.max(Math.min(n, p - f - a + s), f + a + s); - Object.assign(e.style, { - ...(g !== n && { left: `${g}px` }), - ...(c !== o && { top: `${c}px` }), - }); - }, "keepInViewport"), - wf = R((e) => { - window.HTMLElement.prototype.hasOwnProperty("showPopover") && - e.showPopover(); - }, "showPopover"), - _A = R((e) => { - window.HTMLElement.prototype.hasOwnProperty("showPopover") && - e.hidePopover(); - }, "hidePopover"), - TA = R( - (e) => ({ - top: e.top, - left: e.left, - width: e.width, - height: e.height, - selectors: e.selectors, - element: { - attributes: Object.fromEntries( - Array.from(e.element.attributes).map((t) => [t.name, t.value]), - ), - localName: e.element.localName, - tagName: e.element.tagName, - outerHTML: e.element.outerHTML, - }, - }), - "getEventDetails", - ), - he = "storybook-highlights-menu", - Sf = "storybook-highlights-root", - RA = "storybook-root", - PA = R((e) => { - if (globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED) return; - globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED = !0; - let { document: t } = globalThis, - r = Yt([]), - n = Yt(new Map()), - o = Yt([]), - a = Yt(), - i = Yt(), - l = Yt([]), - s = Yt([]), - u = Yt(), - d = Yt(), - p = t.getElementById(Sf); - (r.subscribe(() => { - p || ((p = _e("div", { id: Sf })), t.body.appendChild(p)); - }), - r.subscribe((S) => { - let D = t.getElementById(RA); - if (!D) return; - n.set(vf(S)); - let F = new MutationObserver(() => n.set(vf(S))); - return ( - F.observe(D, { subtree: !0, childList: !0 }), - () => { - F.disconnect(); - } - ); - }), - n.subscribe((S) => { - let D = R( - () => requestAnimationFrame(() => o.set(OA(S))), - "updateBoxes", - ), - F = new ResizeObserver(D); - (F.observe(t.body), Array.from(S.keys()).forEach((_) => F.observe(_))); - let k = Array.from(t.body.querySelectorAll("*")).filter((_) => { - let { - overflow: I, - overflowX: L, - overflowY: j, - } = window.getComputedStyle(_); - return ["auto", "scroll"].some((B) => [I, L, j].includes(B)); - }); - return ( - k.forEach((_) => _.addEventListener("scroll", D)), - () => { - (F.disconnect(), - k.forEach((_) => _.removeEventListener("scroll", D))); - } - ); - }), - n.subscribe((S) => { - let D = Array.from(S.keys()).filter( - ({ style: k }) => k.position === "sticky", - ), - F = R( - () => - requestAnimationFrame(() => { - o.set((k) => - k.map((_) => { - if (D.includes(_.element)) { - let { top: I, left: L } = - _.element.getBoundingClientRect(); - return { - ..._, - top: I + window.scrollY, - left: L + window.scrollX, - }; - } - return _; - }), - ); - }), - "updateBoxes", - ); - return ( - t.addEventListener("scroll", F), - () => t.removeEventListener("scroll", F) - ); - }), - n.subscribe((S) => { - l.set((D) => D.filter(({ element: F }) => S.has(F))); - }), - l.subscribe((S) => { - S.length - ? (d.set((D) => - S.some((F) => F.element === D?.element) ? D : void 0, - ), - u.set((D) => - S.some((F) => F.element === D?.element) ? D : void 0, - )) - : (d.set(void 0), u.set(void 0), a.set(void 0)); - })); - let c = new Map(new Map()); - r.subscribe((S) => { - (S.forEach(({ keyframes: D }) => { - if (D) { - let F = c.get(D); - (F || - ((F = t.createElement("style")), - F.setAttribute("data-highlight", "keyframes"), - c.set(D, F), - t.head.appendChild(F)), - (F.innerHTML = D)); - } - }), - c.forEach((D, F) => { - S.some((k) => k.keyframes === F) || (D.remove(), c.delete(F)); - })); - }); - let f = new Map(new Map()); - (o.subscribe((S) => { - (S.forEach((D) => { - let F = f.get(D.element); - if (p && !F) { - let k = { - popover: "manual", - "data-highlight-dimensions": `w${D.width.toFixed(0)}h${D.height.toFixed(0)}`, - "data-highlight-coordinates": `x${D.left.toFixed(0)}y${D.top.toFixed(0)}`, - }; - ((F = p.appendChild(_e("div", k, [_e("div")]))), f.set(D.element, F)); - } - }), - f.forEach((D, F) => { - S.some(({ element: k }) => k === F) || (D.remove(), f.delete(F)); - })); - }), - o.subscribe((S) => { - let D = S.filter((k) => k.menu); - if (!D.length) return; - let F = R((k) => { - requestAnimationFrame(() => { - let _ = t.getElementById(he), - I = { x: k.pageX, y: k.pageY }; - if (_ && !xf(_, I)) { - let L = D.filter((j) => { - let B = f.get(j.element); - return Ef(j, B, I); - }); - (a.set(L.length ? I : void 0), l.set(L)); - } - }); - }, "onClick"); - return ( - t.addEventListener("click", F), - () => t.removeEventListener("click", F) - ); - })); - let g = R(() => { - let S = t.getElementById(he), - D = i.get(); - !D || - (S && xf(S, D)) || - s.set((F) => { - let k = o.get().filter((j) => { - let B = f.get(j.element); - return Ef(j, B, D); - }), - _ = F.filter((j) => k.includes(j)), - I = k.filter((j) => !F.includes(j)), - L = F.length - _.length; - return I.length || L ? [..._, ...I] : F; - }); - }, "updateHovered"); - (i.subscribe(g), o.subscribe(g)); - let y = R(() => { - let S = d.get(), - D = S ? [S] : l.get(), - F = D.length === 1 ? D[0] : u.get(), - k = a.get() !== void 0; - o.get().forEach((_) => { - let I = f.get(_.element); - if (I) { - let L = F === _, - j = k ? (F ? L : D.includes(_)) : s.get()?.includes(_); - (Object.assign(I.style, { - animation: "none", - background: "transparent", - border: "none", - boxSizing: "border-box", - outline: "none", - outlineOffset: "0px", - ..._.styles, - ...(j ? _.hoverStyles : {}), - ...(L ? _.focusStyles : {}), - position: - getComputedStyle(_.element).position === "fixed" - ? "fixed" - : "absolute", - zIndex: yf - 10, - top: `${_.top}px`, - left: `${_.left}px`, - width: `${_.width}px`, - height: `${_.height}px`, - margin: 0, - padding: 0, - cursor: _.menu && j ? "pointer" : "default", - pointerEvents: _.menu ? "auto" : "none", - display: "flex", - alignItems: "center", - justifyContent: "center", - overflow: "visible", - }), - Object.assign(I.children[0].style, { - width: "100%", - height: "100%", - minHeight: `${yr}px`, - minWidth: `${yr}px`, - boxSizing: "content-box", - padding: I.style.outlineWidth || "0px", - }), - wf(I)); - } - }); - }, "updateBoxStyles"); - (o.subscribe(y), - l.subscribe(y), - s.subscribe(y), - u.subscribe(y), - d.subscribe(y)); - let x = R(() => { - if (!p) return; - let S = t.getElementById(he); - if (S) S.innerHTML = ""; - else { - let _ = { id: he, popover: "manual" }; - ((S = p.appendChild(_e("div", _))), - p.appendChild( - _e("style", {}, [ - ` - #${he} { - position: absolute; - z-index: ${yf}; - width: 300px; - padding: 0px; - margin: 15px 0 0 0; - transform: translateX(-50%); - font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 12px; - background: white; - border: none; - border-radius: 6px; - box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); - color: #2E3438; - } - #${he} ul { - list-style: none; - margin: 0; - padding: 0; - } - #${he} > ul { - max-height: 300px; - overflow-y: auto; - padding: 4px 0; - } - #${he} li { - padding: 0 4px; - margin: 0; - } - #${he} li > :not(ul) { - display: flex; - padding: 8px; - margin: 0; - align-items: center; - gap: 8px; - border-radius: 4px; - } - #${he} button { - width: 100%; - border: 0; - background: transparent; - color: inherit; - text-align: left; - font-family: inherit; - font-size: inherit; - } - #${he} button:focus-visible { - outline-color: #029CFD; - } - #${he} button:hover { - background: rgba(2, 156, 253, 0.07); - color: #029CFD; - cursor: pointer; - } - #${he} li code { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - line-height: 16px; - font-size: 11px; - } - #${he} li svg { - flex-shrink: 0; - margin: 1px; - color: #73828C; - } - #${he} li > button:hover svg, #${he} li > button:focus-visible svg { - color: #029CFD; - } - #${he} .element-list li svg { - display: none; - } - #${he} li.selectable svg, #${he} li.selected svg { - display: block; - } - #${he} .menu-list { - border-top: 1px solid rgba(38, 85, 115, 0.15); - } - #${he} .menu-list > li:not(:last-child) { - padding-bottom: 4px; - margin-bottom: 4px; - border-bottom: 1px solid rgba(38, 85, 115, 0.15); - } - #${he} .menu-items, #${he} .menu-items li { - padding: 0; - } - #${he} .menu-item { - display: flex; - } - #${he} .menu-item-content { - display: flex; - flex-direction: column; - flex-grow: 1; - } - `, - ]), - )); - } - let D = d.get(), - F = D ? [D] : l.get(); - if ( - (F.length && - ((S.style.position = - getComputedStyle(F[0].element).position === "fixed" - ? "fixed" - : "absolute"), - S.appendChild( - _e( - "ul", - { class: "element-list" }, - F.map((_) => { - let I = - F.length > 1 && - !!_.menu?.some((B) => - B.some( - (z) => - !z.selectors || - z.selectors.some((V) => _.selectors.includes(V)), - ), - ), - L = I - ? { - class: "selectable", - onClick: R(() => d.set(_), "onClick"), - onMouseEnter: R(() => u.set(_), "onMouseEnter"), - onMouseLeave: R(() => u.set(void 0), "onMouseLeave"), - } - : D - ? { - class: "selected", - onClick: R(() => d.set(void 0), "onClick"), - } - : {}, - j = I || D; - return _e("li", L, [ - _e(j ? "button" : "div", j ? { type: "button" } : {}, [ - D ? ga("chevronLeft") : null, - _e("code", {}, [_.element.outerHTML]), - I ? ga("chevronRight") : null, - ]), - ]); - }), - ), - )), - d.get() || l.get().length === 1) - ) { - let _ = d.get() || l.get()[0], - I = _.menu?.filter((L) => - L.some( - (j) => - !j.selectors || - j.selectors.some((B) => _.selectors.includes(B)), - ), - ); - I?.length && - S.appendChild( - _e( - "ul", - { class: "menu-list" }, - I.map((L) => - _e("li", {}, [ - _e( - "ul", - { class: "menu-items" }, - L.map( - ({ - id: j, - title: B, - description: z, - iconLeft: V, - iconRight: Y, - clickEvent: W, - }) => { - let G = W && (() => e.emit(W, j, TA(_))); - return _e("li", {}, [ - _e( - G ? "button" : "div", - G - ? { - class: "menu-item", - type: "button", - onClick: G, - } - : { class: "menu-item" }, - [ - V ? ga(V) : null, - _e("div", { class: "menu-item-content" }, [ - _e(z ? "strong" : "span", {}, [B]), - z && _e("span", {}, [z]), - ]), - Y ? ga(Y) : null, - ], - ), - ]); - }, - ), - ), - ]), - ), - ), - ); - } - let k = a.get(); - k - ? (Object.assign(S.style, { - display: "block", - left: `${S.style.position === "fixed" ? k.x - window.scrollX : k.x}px`, - top: `${S.style.position === "fixed" ? k.y - window.scrollY : k.y}px`, - }), - wf(S), - requestAnimationFrame(() => - FA(S, k, { topOffset: 15, centered: !0 }), - )) - : (_A(S), Object.assign(S.style, { display: "none" })); - }, "renderMenu"); - (l.subscribe(x), d.subscribe(x)); - let v = R((S) => { - let D = DA(S); - r.set((F) => { - let k = D.id ? F.filter((_) => _.id !== D.id) : F; - return D.selectors?.length ? [...k, D] : k; - }); - }, "addHighlight"), - C = R((S) => { - S && r.set((D) => D.filter((F) => F.id !== S)); - }, "removeHighlight"), - w = R(() => { - (r.set([]), - n.set(new Map()), - o.set([]), - a.set(void 0), - i.set(void 0), - l.set([]), - s.set([]), - u.set(void 0), - d.set(void 0)); - }, "resetState"), - E, - $ = R((S, D) => { - let F = "scrollIntoView-highlight"; - (clearTimeout(E), C(F)); - let k = t.querySelector(S); - if (!k) { - console.warn(`Cannot scroll into view: ${S} not found`); - return; - } - k.scrollIntoView({ behavior: "smooth", block: "center", ...D }); - let _ = `kf-${Math.random().toString(36).substring(2, 15)}`; - (r.set((I) => [ - ...I, - { - id: F, - priority: 1e3, - selectors: [S], - styles: { - outline: "2px solid #1EA7FD", - outlineOffset: "-1px", - animation: `${_} 3s linear forwards`, - }, - keyframes: `@keyframes ${_} { - 0% { outline: 2px solid #1EA7FD; } - 20% { outline: 2px solid #1EA7FD00; } - 40% { outline: 2px solid #1EA7FD; } - 60% { outline: 2px solid #1EA7FD00; } - 80% { outline: 2px solid #1EA7FD; } - 100% { outline: 2px solid #1EA7FD00; } - }`, - }, - ]), - (E = setTimeout(() => C(F), 3500))); - }, "scrollIntoView"), - A = R((S) => { - requestAnimationFrame(() => i.set({ x: S.pageX, y: S.pageY })); - }, "onMouseMove"); - (t.body.addEventListener("mousemove", A), - e.on(wA, v), - e.on(SA, C), - e.on(CA, w), - e.on($A, $), - e.on(EA, ({ newPhase: S }) => { - S === "loading" && w(); - })); - }, "useHighlights"); -globalThis?.FEATURES?.highlight && hf?.ready && hf.ready().then(PA); -var Cf = R(() => ({}), "default"), - IA = "measureEnabled"; -const { useEffect: $f } = __STORYBOOK_MODULE_PREVIEW_API__, - { global: ai } = __STORYBOOK_MODULE_GLOBAL__; -function zc() { - let e = ai.document.documentElement, - t = Math.max(e.scrollHeight, e.offsetHeight); - return { width: Math.max(e.scrollWidth, e.offsetWidth), height: t }; -} -R(zc, "getDocumentWidthAndHeight"); -function Ty() { - let e = ai.document.createElement("canvas"); - e.id = "storybook-addon-measure"; - let t = e.getContext("2d"); - ni(t != null); - let { width: r, height: n } = zc(); - return ( - ii(e, t, { width: r, height: n }), - (e.style.position = "absolute"), - (e.style.left = "0"), - (e.style.top = "0"), - (e.style.zIndex = "2147483647"), - (e.style.pointerEvents = "none"), - ai.document.body.appendChild(e), - { canvas: e, context: t, width: r, height: n } - ); -} -R(Ty, "createCanvas"); -function ii(e, t, { width: r, height: n }) { - ((e.style.width = `${r}px`), (e.style.height = `${n}px`)); - let o = ai.window.devicePixelRatio; - ((e.width = Math.floor(r * o)), - (e.height = Math.floor(n * o)), - t.scale(o, o)); -} -R(ii, "setCanvasWidthAndHeight"); -var Te = {}; -function Ry() { - Te.canvas || (Te = Ty()); -} -R(Ry, "init"); -function Hc() { - Te.context && Te.context.clearRect(0, 0, Te.width ?? 0, Te.height ?? 0); -} -R(Hc, "clear"); -function Py(e) { - (Hc(), e(Te.context)); -} -R(Py, "draw"); -function Iy() { - (ni(Te.canvas, "Canvas should exist in the state."), - ni(Te.context, "Context should exist in the state."), - ii(Te.canvas, Te.context, { width: 0, height: 0 })); - let { width: e, height: t } = zc(); - (ii(Te.canvas, Te.context, { width: e, height: t }), - (Te.width = e), - (Te.height = t)); -} -R(Iy, "rescale"); -function Ly() { - Te.canvas && (Hc(), Te.canvas.parentNode?.removeChild(Te.canvas), (Te = {})); -} -R(Ly, "destroy"); -const { global: St } = __STORYBOOK_MODULE_GLOBAL__; -var fn = { - margin: "#f6b26b", - border: "#ffe599", - padding: "#93c47d", - content: "#6fa8dc", - text: "#232020", - }, - rr = 6; -function ru(e, { x: t, y: r, w: n, h: o, r: a }) { - ((t = t - n / 2), - (r = r - o / 2), - n < 2 * a && (a = n / 2), - o < 2 * a && (a = o / 2), - e.beginPath(), - e.moveTo(t + a, r), - e.arcTo(t + n, r, t + n, r + o, a), - e.arcTo(t + n, r + o, t, r + o, a), - e.arcTo(t, r + o, t, r, a), - e.arcTo(t, r, t + n, r, a), - e.closePath()); -} -R(ru, "roundedRect"); -function By( - e, - { padding: t, border: r, width: n, height: o, top: a, left: i }, -) { - let l = n - r.left - r.right - t.left - t.right, - s = o - t.top - t.bottom - r.top - r.bottom, - u = i + r.left + t.left, - d = a + r.top + t.top; - return ( - e === "top" - ? (u += l / 2) - : e === "right" - ? ((u += l), (d += s / 2)) - : e === "bottom" - ? ((u += l / 2), (d += s)) - : e === "left" - ? (d += s / 2) - : e === "center" && ((u += l / 2), (d += s / 2)), - { x: u, y: d } - ); -} -R(By, "positionCoordinate"); -function Ny(e, t, { margin: r, border: n, padding: o }, a, i) { - let l = R((c) => 0, "shift"), - s = 0, - u = 0, - d = i ? 1 : 0.5, - p = i ? a * 2 : 0; - return ( - e === "padding" - ? (l = R((c) => o[c] * d + p, "shift")) - : e === "border" - ? (l = R((c) => o[c] + n[c] * d + p, "shift")) - : e === "margin" && (l = R((c) => o[c] + n[c] + r[c] * d + p, "shift")), - t === "top" - ? (u = -l("top")) - : t === "right" - ? (s = l("right")) - : t === "bottom" - ? (u = l("bottom")) - : t === "left" && (s = -l("left")), - { offsetX: s, offsetY: u } - ); -} -R(Ny, "offset"); -function jy(e, t) { - return ( - Math.abs(e.x - t.x) < Math.abs(e.w + t.w) / 2 && - Math.abs(e.y - t.y) < Math.abs(e.h + t.h) / 2 - ); -} -R(jy, "collide"); -function My(e, t, r) { - return ( - e === "top" - ? (t.y = r.y - r.h - rr) - : e === "right" - ? (t.x = r.x + r.w / 2 + rr + t.w / 2) - : e === "bottom" - ? (t.y = r.y + r.h + rr) - : e === "left" && (t.x = r.x - r.w / 2 - rr - t.w / 2), - { x: t.x, y: t.y } - ); -} -R(My, "overlapAdjustment"); -function Uc(e, t, { x: r, y: n, w: o, h: a }, i) { - return ( - ru(e, { x: r, y: n, w: o, h: a, r: 3 }), - (e.fillStyle = `${fn[t]}dd`), - e.fill(), - (e.strokeStyle = fn[t]), - e.stroke(), - (e.fillStyle = fn.text), - e.fillText(i, r, n), - ru(e, { x: r, y: n, w: o, h: a, r: 3 }), - (e.fillStyle = `${fn[t]}dd`), - e.fill(), - (e.strokeStyle = fn[t]), - e.stroke(), - (e.fillStyle = fn.text), - e.fillText(i, r, n), - { x: r, y: n, w: o, h: a } - ); -} -R(Uc, "textWithRect"); -function Wc(e, t) { - ((e.font = "600 12px monospace"), - (e.textBaseline = "middle"), - (e.textAlign = "center")); - let r = e.measureText(t), - n = r.actualBoundingBoxAscent + r.actualBoundingBoxDescent, - o = r.width + rr * 2, - a = n + rr * 2; - return { w: o, h: a }; -} -R(Wc, "configureText"); -function zy(e, t, { type: r, position: n = "center", text: o }, a, i = !1) { - let { x: l, y: s } = By(n, t), - { offsetX: u, offsetY: d } = Ny(r, n, t, rr + 1, i); - ((l += u), (s += d)); - let { w: p, h: c } = Wc(e, o); - if (a && jy({ x: l, y: s, w: p, h: c }, a)) { - let f = My(n, { x: l, y: s, w: p }, a); - ((l = f.x), (s = f.y)); - } - return Uc(e, r, { x: l, y: s, w: p, h: c }, o); -} -R(zy, "drawLabel"); -function Hy(e, { w: t, h: r }) { - let n = t * 0.5 + rr, - o = r * 0.5 + rr; - return { - offsetX: (e.x === "left" ? -1 : 1) * n, - offsetY: (e.y === "top" ? -1 : 1) * o, - }; -} -R(Hy, "floatingOffset"); -function Uy(e, t, { type: r, text: n }) { - let { floatingAlignment: o, extremities: a } = t, - i = a[o.x], - l = a[o.y], - { w: s, h: u } = Wc(e, n), - { offsetX: d, offsetY: p } = Hy(o, { w: s, h: u }); - return ((i += d), (l += p), Uc(e, r, { x: i, y: l, w: s, h: u }, n)); -} -R(Uy, "drawFloatingLabel"); -function xn(e, t, r, n) { - let o = []; - r.forEach((a, i) => { - let l = - n && a.position === "center" ? Uy(e, t, a) : zy(e, t, a, o[i - 1], n); - o[i] = l; - }); -} -R(xn, "drawStack"); -function Wy(e, t, r, n) { - let o = r.reduce( - (a, i) => ( - Object.prototype.hasOwnProperty.call(a, i.position) || - (a[i.position] = []), - a[i.position]?.push(i), - a - ), - {}, - ); - (o.top && xn(e, t, o.top, n), - o.right && xn(e, t, o.right, n), - o.bottom && xn(e, t, o.bottom, n), - o.left && xn(e, t, o.left, n), - o.center && xn(e, t, o.center, n)); -} -R(Wy, "labelStacks"); -var Hi = { - margin: "#f6b26ba8", - border: "#ffe599a8", - padding: "#93c47d8c", - content: "#6fa8dca8", - }, - Af = 30; -function it(e) { - return parseInt(e.replace("px", ""), 10); -} -R(it, "pxToNumber"); -function Vr(e) { - return Number.isInteger(e) ? e : e.toFixed(2); -} -R(Vr, "round"); -function Ui(e) { - return e.filter((t) => t.text !== 0 && t.text !== "0"); -} -R(Ui, "filterZeroValues"); -function Vy(e) { - let t = { - top: St.window.scrollY, - bottom: St.window.scrollY + St.window.innerHeight, - left: St.window.scrollX, - right: St.window.scrollX + St.window.innerWidth, - }, - r = { - top: Math.abs(t.top - e.top), - bottom: Math.abs(t.bottom - e.bottom), - left: Math.abs(t.left - e.left), - right: Math.abs(t.right - e.right), - }; - return { - x: r.left > r.right ? "left" : "right", - y: r.top > r.bottom ? "top" : "bottom", - }; -} -R(Vy, "floatingAlignment"); -function qy(e) { - let t = St.getComputedStyle(e), - { - top: r, - left: n, - right: o, - bottom: a, - width: i, - height: l, - } = e.getBoundingClientRect(), - { - marginTop: s, - marginBottom: u, - marginLeft: d, - marginRight: p, - paddingTop: c, - paddingBottom: f, - paddingLeft: g, - paddingRight: y, - borderBottomWidth: x, - borderTopWidth: v, - borderLeftWidth: C, - borderRightWidth: w, - } = t; - ((r = r + St.window.scrollY), - (n = n + St.window.scrollX), - (a = a + St.window.scrollY), - (o = o + St.window.scrollX)); - let E = { top: it(s), bottom: it(u), left: it(d), right: it(p) }, - $ = { top: it(c), bottom: it(f), left: it(g), right: it(y) }, - A = { top: it(v), bottom: it(x), left: it(C), right: it(w) }, - S = { - top: r - E.top, - bottom: a + E.bottom, - left: n - E.left, - right: o + E.right, - }; - return { - margin: E, - padding: $, - border: A, - top: r, - left: n, - bottom: a, - right: o, - width: i, - height: l, - extremities: S, - floatingAlignment: Vy(S), - }; -} -R(qy, "measureElement"); -function Gy( - e, - { margin: t, width: r, height: n, top: o, left: a, bottom: i, right: l }, -) { - let s = n + t.bottom + t.top; - ((e.fillStyle = Hi.margin), - e.fillRect(a, o - t.top, r, t.top), - e.fillRect(l, o - t.top, t.right, s), - e.fillRect(a, i, r, t.bottom), - e.fillRect(a - t.left, o - t.top, t.left, s)); - let u = [ - { type: "margin", text: Vr(t.top), position: "top" }, - { type: "margin", text: Vr(t.right), position: "right" }, - { type: "margin", text: Vr(t.bottom), position: "bottom" }, - { type: "margin", text: Vr(t.left), position: "left" }, - ]; - return Ui(u); -} -R(Gy, "drawMargin"); -function Yy( - e, - { - padding: t, - border: r, - width: n, - height: o, - top: a, - left: i, - bottom: l, - right: s, - }, -) { - let u = n - r.left - r.right, - d = o - t.top - t.bottom - r.top - r.bottom; - ((e.fillStyle = Hi.padding), - e.fillRect(i + r.left, a + r.top, u, t.top), - e.fillRect(s - t.right - r.right, a + t.top + r.top, t.right, d), - e.fillRect(i + r.left, l - t.bottom - r.bottom, u, t.bottom), - e.fillRect(i + r.left, a + t.top + r.top, t.left, d)); - let p = [ - { type: "padding", text: t.top, position: "top" }, - { type: "padding", text: t.right, position: "right" }, - { type: "padding", text: t.bottom, position: "bottom" }, - { type: "padding", text: t.left, position: "left" }, - ]; - return Ui(p); -} -R(Yy, "drawPadding"); -function Ky( - e, - { border: t, width: r, height: n, top: o, left: a, bottom: i, right: l }, -) { - let s = n - t.top - t.bottom; - ((e.fillStyle = Hi.border), - e.fillRect(a, o, r, t.top), - e.fillRect(a, i - t.bottom, r, t.bottom), - e.fillRect(a, o + t.top, t.left, s), - e.fillRect(l - t.right, o + t.top, t.right, s)); - let u = [ - { type: "border", text: t.top, position: "top" }, - { type: "border", text: t.right, position: "right" }, - { type: "border", text: t.bottom, position: "bottom" }, - { type: "border", text: t.left, position: "left" }, - ]; - return Ui(u); -} -R(Ky, "drawBorder"); -function Xy( - e, - { padding: t, border: r, width: n, height: o, top: a, left: i }, -) { - let l = n - r.left - r.right - t.left - t.right, - s = o - t.top - t.bottom - r.top - r.bottom; - return ( - (e.fillStyle = Hi.content), - e.fillRect(i + r.left + t.left, a + r.top + t.top, l, s), - [{ type: "content", position: "center", text: `${Vr(l)} x ${Vr(s)}` }] - ); -} -R(Xy, "drawContent"); -function Zy(e) { - return (t) => { - if (e && t) { - let r = qy(e), - n = Gy(t, r), - o = Yy(t, r), - a = Ky(t, r), - i = Xy(t, r), - l = r.width <= Af * 3 || r.height <= Af; - Wy(t, r, [...i, ...o, ...a, ...n], l); - } - }; -} -R(Zy, "drawBoxModel"); -function Jy(e) { - Py(Zy(e)); -} -R(Jy, "drawSelectedElement"); -const { global: LA } = __STORYBOOK_MODULE_GLOBAL__; -var BA = R((e, t) => { - let r = LA.document.elementFromPoint(e, t), - n = R((o) => { - if (o && o.shadowRoot) { - let a = o.shadowRoot.elementFromPoint(e, t); - return o.isEqualNode(a) ? o : a.shadowRoot ? n(a) : a; - } - return o; - }, "crawlShadows"); - return n(r) || r; - }, "deepElementFromPoint"), - Df, - ha = { x: 0, y: 0 }; -function nu(e, t) { - ((Df = BA(e, t)), Jy(Df)); -} -R(nu, "findAndDrawElement"); -var NA = R((e, t) => { - let { measureEnabled: r } = t.globals || {}; - return ( - $f(() => { - if (typeof globalThis.document > "u") return; - let n = R((o) => { - window.requestAnimationFrame(() => { - (o.stopPropagation(), (ha.x = o.clientX), (ha.y = o.clientY)); - }); - }, "onPointerMove"); - return ( - globalThis.document.addEventListener("pointermove", n), - () => { - globalThis.document.removeEventListener("pointermove", n); - } - ); - }, []), - $f(() => { - let n = R((a) => { - window.requestAnimationFrame(() => { - (a.stopPropagation(), nu(a.clientX, a.clientY)); - }); - }, "onPointerOver"), - o = R(() => { - window.requestAnimationFrame(() => { - Iy(); - }); - }, "onResize"); - return ( - t.viewMode === "story" && - r && - (globalThis.document.addEventListener("pointerover", n), - Ry(), - globalThis.window.addEventListener("resize", o), - nu(ha.x, ha.y)), - () => { - (globalThis.window.removeEventListener("resize", o), Ly()); - } - ); - }, [r, t.viewMode]), - e() - ); - }, "withMeasure"), - jA = globalThis.FEATURES?.measure ? [NA] : [], - MA = { [IA]: !1 }, - kf = R(() => ({ decorators: jA, initialGlobals: MA }), "default"), - Qy = "outline"; -const { useEffect: zA, useMemo: HA } = __STORYBOOK_MODULE_PREVIEW_API__, - { global: Ba } = __STORYBOOK_MODULE_GLOBAL__; -var Of = R((e) => { - (Array.isArray(e) ? e : [e]).forEach(UA); - }, "clearStyles"), - UA = R((e) => { - let t = typeof e == "string" ? e : e.join(""), - r = Ba.document.getElementById(t); - r && r.parentElement && r.parentElement.removeChild(r); - }, "clearStyle"), - WA = R((e, t) => { - let r = Ba.document.getElementById(e); - if (r) r.innerHTML !== t && (r.innerHTML = t); - else { - let n = Ba.document.createElement("style"); - (n.setAttribute("id", e), - (n.innerHTML = t), - Ba.document.head.appendChild(n)); - } - }, "addOutlineStyles"); -function eb(e) { - return ji` - ${e} body { - outline: 1px solid #2980b9 !important; - } - - ${e} article { - outline: 1px solid #3498db !important; - } - - ${e} nav { - outline: 1px solid #0088c3 !important; - } - - ${e} aside { - outline: 1px solid #33a0ce !important; - } - - ${e} section { - outline: 1px solid #66b8da !important; - } - - ${e} header { - outline: 1px solid #99cfe7 !important; - } - - ${e} footer { - outline: 1px solid #cce7f3 !important; - } - - ${e} h1 { - outline: 1px solid #162544 !important; - } - - ${e} h2 { - outline: 1px solid #314e6e !important; - } - - ${e} h3 { - outline: 1px solid #3e5e85 !important; - } - - ${e} h4 { - outline: 1px solid #449baf !important; - } - - ${e} h5 { - outline: 1px solid #c7d1cb !important; - } - - ${e} h6 { - outline: 1px solid #4371d0 !important; - } - - ${e} main { - outline: 1px solid #2f4f90 !important; - } - - ${e} address { - outline: 1px solid #1a2c51 !important; - } - - ${e} div { - outline: 1px solid #036cdb !important; - } - - ${e} p { - outline: 1px solid #ac050b !important; - } - - ${e} hr { - outline: 1px solid #ff063f !important; - } - - ${e} pre { - outline: 1px solid #850440 !important; - } - - ${e} blockquote { - outline: 1px solid #f1b8e7 !important; - } - - ${e} ol { - outline: 1px solid #ff050c !important; - } - - ${e} ul { - outline: 1px solid #d90416 !important; - } - - ${e} li { - outline: 1px solid #d90416 !important; - } - - ${e} dl { - outline: 1px solid #fd3427 !important; - } - - ${e} dt { - outline: 1px solid #ff0043 !important; - } - - ${e} dd { - outline: 1px solid #e80174 !important; - } - - ${e} figure { - outline: 1px solid #ff00bb !important; - } - - ${e} figcaption { - outline: 1px solid #bf0032 !important; - } - - ${e} table { - outline: 1px solid #00cc99 !important; - } - - ${e} caption { - outline: 1px solid #37ffc4 !important; - } - - ${e} thead { - outline: 1px solid #98daca !important; - } - - ${e} tbody { - outline: 1px solid #64a7a0 !important; - } - - ${e} tfoot { - outline: 1px solid #22746b !important; - } - - ${e} tr { - outline: 1px solid #86c0b2 !important; - } - - ${e} th { - outline: 1px solid #a1e7d6 !important; - } - - ${e} td { - outline: 1px solid #3f5a54 !important; - } - - ${e} col { - outline: 1px solid #6c9a8f !important; - } - - ${e} colgroup { - outline: 1px solid #6c9a9d !important; - } - - ${e} button { - outline: 1px solid #da8301 !important; - } - - ${e} datalist { - outline: 1px solid #c06000 !important; - } - - ${e} fieldset { - outline: 1px solid #d95100 !important; - } - - ${e} form { - outline: 1px solid #d23600 !important; - } - - ${e} input { - outline: 1px solid #fca600 !important; - } - - ${e} keygen { - outline: 1px solid #b31e00 !important; - } - - ${e} label { - outline: 1px solid #ee8900 !important; - } - - ${e} legend { - outline: 1px solid #de6d00 !important; - } - - ${e} meter { - outline: 1px solid #e8630c !important; - } - - ${e} optgroup { - outline: 1px solid #b33600 !important; - } - - ${e} option { - outline: 1px solid #ff8a00 !important; - } - - ${e} output { - outline: 1px solid #ff9619 !important; - } - - ${e} progress { - outline: 1px solid #e57c00 !important; - } - - ${e} select { - outline: 1px solid #e26e0f !important; - } - - ${e} textarea { - outline: 1px solid #cc5400 !important; - } - - ${e} details { - outline: 1px solid #33848f !important; - } - - ${e} summary { - outline: 1px solid #60a1a6 !important; - } - - ${e} command { - outline: 1px solid #438da1 !important; - } - - ${e} menu { - outline: 1px solid #449da6 !important; - } - - ${e} del { - outline: 1px solid #bf0000 !important; - } - - ${e} ins { - outline: 1px solid #400000 !important; - } - - ${e} img { - outline: 1px solid #22746b !important; - } - - ${e} iframe { - outline: 1px solid #64a7a0 !important; - } - - ${e} embed { - outline: 1px solid #98daca !important; - } - - ${e} object { - outline: 1px solid #00cc99 !important; - } - - ${e} param { - outline: 1px solid #37ffc4 !important; - } - - ${e} video { - outline: 1px solid #6ee866 !important; - } - - ${e} audio { - outline: 1px solid #027353 !important; - } - - ${e} source { - outline: 1px solid #012426 !important; - } - - ${e} canvas { - outline: 1px solid #a2f570 !important; - } - - ${e} track { - outline: 1px solid #59a600 !important; - } - - ${e} map { - outline: 1px solid #7be500 !important; - } - - ${e} area { - outline: 1px solid #305900 !important; - } - - ${e} a { - outline: 1px solid #ff62ab !important; - } - - ${e} em { - outline: 1px solid #800b41 !important; - } - - ${e} strong { - outline: 1px solid #ff1583 !important; - } - - ${e} i { - outline: 1px solid #803156 !important; - } - - ${e} b { - outline: 1px solid #cc1169 !important; - } - - ${e} u { - outline: 1px solid #ff0430 !important; - } - - ${e} s { - outline: 1px solid #f805e3 !important; - } - - ${e} small { - outline: 1px solid #d107b2 !important; - } - - ${e} abbr { - outline: 1px solid #4a0263 !important; - } - - ${e} q { - outline: 1px solid #240018 !important; - } - - ${e} cite { - outline: 1px solid #64003c !important; - } - - ${e} dfn { - outline: 1px solid #b4005a !important; - } - - ${e} sub { - outline: 1px solid #dba0c8 !important; - } - - ${e} sup { - outline: 1px solid #cc0256 !important; - } - - ${e} time { - outline: 1px solid #d6606d !important; - } - - ${e} code { - outline: 1px solid #e04251 !important; - } - - ${e} kbd { - outline: 1px solid #5e001f !important; - } - - ${e} samp { - outline: 1px solid #9c0033 !important; - } - - ${e} var { - outline: 1px solid #d90047 !important; - } - - ${e} mark { - outline: 1px solid #ff0053 !important; - } - - ${e} bdi { - outline: 1px solid #bf3668 !important; - } - - ${e} bdo { - outline: 1px solid #6f1400 !important; - } - - ${e} ruby { - outline: 1px solid #ff7b93 !important; - } - - ${e} rt { - outline: 1px solid #ff2f54 !important; - } - - ${e} rp { - outline: 1px solid #803e49 !important; - } - - ${e} span { - outline: 1px solid #cc2643 !important; - } - - ${e} br { - outline: 1px solid #db687d !important; - } - - ${e} wbr { - outline: 1px solid #db175b !important; - }`; -} -R(eb, "outlineCSS"); -var VA = R((e, t) => { - let r = t.globals || {}, - n = [!0, "true"].includes(r[Qy]), - o = t.viewMode === "docs", - a = HA(() => eb(o ? '[data-story-block="true"]' : ".sb-show-main"), [t]); - return ( - zA(() => { - let i = o ? `addon-outline-docs-${t.id}` : "addon-outline"; - return ( - n ? WA(i, a) : Of(i), - () => { - Of(i); - } - ); - }, [n, a, t]), - e() - ); - }, "withOutline"), - qA = globalThis.FEATURES?.outline ? [VA] : [], - GA = { [Qy]: !1 }, - Ff = R(() => ({ decorators: qA, initialGlobals: GA }), "default"); -const { - clearAllMocks: YA, - fn: KA, - isMockFunction: XA, - resetAllMocks: ZA, - restoreAllMocks: JA, - uninstrumentedUserEvent: QA, - within: e3, -} = __STORYBOOK_MODULE_TEST__; -var t3 = R(({ parameters: e }) => { - e?.test?.mockReset === !0 - ? ZA() - : e?.test?.clearMocks === !0 - ? YA() - : e?.test?.restoreMocks !== !1 && JA(); - }, "resetAllMocksLoader"), - ou = R((e, t = 0, r) => { - if (t > 5 || e == null) return e; - if (XA(e)) return (r && e.mockName(r), e); - if ( - typeof e == "function" && - "isAction" in e && - e.isAction && - !("implicit" in e && e.implicit) - ) { - let n = KA(e); - return (r && n.mockName(r), n); - } - if (Array.isArray(e)) { - t++; - for (let n = 0; n < e.length; n++) - Object.getOwnPropertyDescriptor(e, n)?.writable && (e[n] = ou(e[n], t)); - return e; - } - if (typeof e == "object" && e.constructor === Object) { - t++; - for (let [n, o] of Object.entries(e)) - Object.getOwnPropertyDescriptor(e, n)?.writable && (e[n] = ou(o, t, n)); - return e; - } - return e; - }, "traverseArgs"), - r3 = R(({ initialArgs: e }) => { - ou(e); - }, "nameSpiesAndWrapActionsInSpies"), - _f = !1, - n3 = R(async (e) => { - globalThis.HTMLElement && - e.canvasElement instanceof globalThis.HTMLElement && - (e.canvas = e3(e.canvasElement)); - let t = globalThis.window?.navigator?.clipboard; - if (t) { - ((e.userEvent = Bc( - { userEvent: QA.setup() }, - { intercept: !0 }, - ).userEvent), - Object.defineProperty(globalThis.window.navigator, "clipboard", { - get: R(() => t, "get"), - configurable: !0, - })); - let r = HTMLElement.prototype.focus; - _f || - Object.defineProperties(HTMLElement.prototype, { - focus: { - configurable: !0, - set: R((n) => { - ((r = n), (_f = !0)); - }, "set"), - get: R(() => r, "get"), - }, - }); - } - }, "enhanceContext"), - Tf = R(() => ({ loaders: [t3, r3, n3] }), "default"), - o3 = "viewport", - a3 = { [o3]: { value: void 0, isRotated: !1 } }, - Rf = R(() => ({ initialGlobals: a3 }), "default"); -function tb() { - return [ - (kf.default ?? kf)(), - (gf.default ?? gf)(), - (Cf.default ?? Cf)(), - (Ff.default ?? Ff)(), - (Rf.default ?? Rf)(), - (uf.default ?? uf)(), - (mf.default ?? mf)(), - (Tf.default ?? Tf)(), - ]; -} -R(tb, "getCoreAnnotations"); -function i3(e) { - let t, - r = { - _tag: "Preview", - input: e, - get composed() { - if (t) return t; - let { addons: n, ...o } = e; - return ((t = Nc(jc([...tb(), ...(n ?? []), o]))), t); - }, - meta(n) { - return rb(n, this); - }, - }; - return ((globalThis.globalProjectAnnotations = r.composed), r); -} -R(i3, "definePreview"); -function l3(e) { - return e; -} -R(l3, "definePreviewAddon"); -function s3(e) { - return ( - e != null && typeof e == "object" && "_tag" in e && e?._tag === "Preview" - ); -} -R(s3, "isPreview"); -function u3(e) { - return e != null && typeof e == "object" && "_tag" in e && e?._tag === "Meta"; -} -R(u3, "isMeta"); -function rb(e, t) { - return { - _tag: "Meta", - input: e, - preview: t, - get composed() { - throw new Error("Not implemented"); - }, - story(r = {}) { - return Vc(typeof r == "function" ? { render: r } : r, this); - }, - }; -} -R(rb, "defineMeta"); -function c3(e) { - return ( - e != null && typeof e == "object" && "_tag" in e && e?._tag === "Story" - ); -} -R(c3, "isStory"); -function Vc(e, t) { - let r, - n = R( - () => (r || (r = Ay(e, t.input, void 0, t.preview.composed)), r), - "compose", - ); - return { - _tag: "Story", - input: e, - meta: t, - __compose: n, - get composed() { - let o = n(), - { - args: a, - argTypes: i, - parameters: l, - id: s, - tags: u, - globals: d, - storyName: p, - } = o; - return { - args: a, - argTypes: i, - parameters: l, - id: s, - tags: u, - name: p, - globals: d, - }; - }, - get play() { - return e.play ?? t.input?.play ?? (async () => {}); - }, - get run() { - return n().run ?? (async () => {}); - }, - extend(o) { - return Vc( - { - ...this.input, - ...o, - args: { ...this.input.args, ...o.args }, - argTypes: Ar(this.input.argTypes, o.argTypes), - afterEach: [ - ...se(this.input?.afterEach ?? []), - ...se(o.afterEach ?? []), - ], - beforeEach: [ - ...se(this.input?.beforeEach ?? []), - ...se(o.beforeEach ?? []), - ], - decorators: [ - ...se(this.input?.decorators ?? []), - ...se(o.decorators ?? []), - ], - globals: { ...this.input.globals, ...o.globals }, - loaders: [...se(this.input?.loaders ?? []), ...se(o.loaders ?? [])], - parameters: Ar(this.input.parameters, o.parameters), - tags: nb(...(this.input.tags ?? []), ...(o.tags ?? [])), - }, - this.meta, - ); - }, - }; -} -R(Vc, "defineStory"); -var Wi = R( - (e) => - e - .toLowerCase() - .replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, "-") - .replace(/-+/g, "-") - .replace(/^-+/, "") - .replace(/-+$/, ""), - "sanitize", - ), - Pf = R((e, t) => { - let r = Wi(e); - if (r === "") - throw new Error( - `Invalid ${t} '${e}', must include alphanumeric characters`, - ); - return r; - }, "sanitizeSafe"), - d3 = R((e, t) => `${Pf(e, "kind")}${t ? `--${Pf(t, "name")}` : ""}`, "toId"), - p3 = R((e) => J0(e), "storyNameFromExport"); -function au(e, t) { - return Array.isArray(t) ? t.includes(e) : e.match(t); -} -R(au, "matches"); -function f3(e, { includeStories: t, excludeStories: r }) { - return e !== "__esModule" && (!t || au(e, t)) && (!r || !au(e, r)); -} -R(f3, "isExportStory"); -var nb = R((...e) => { - let t = e.reduce( - (r, n) => (n.startsWith("!") ? r.delete(n.slice(1)) : r.add(n), r), - new Set(), - ); - return Array.from(t); -}, "combineTags"); -function g3(e, t, { signal: r, edges: n } = {}) { - let o, - a = null, - i = n != null && n.includes("leading"), - l = n == null || n.includes("trailing"), - s = () => { - a !== null && (e.apply(o, a), (o = void 0), (a = null)); - }, - u = () => { - (l && s(), f()); - }, - d = null, - p = () => { - (d != null && clearTimeout(d), - (d = setTimeout(() => { - ((d = null), u()); - }, t))); - }, - c = () => { - d !== null && (clearTimeout(d), (d = null)); - }, - f = () => { - (c(), (o = void 0), (a = null)); - }, - g = () => { - (c(), s()); - }, - y = function (...x) { - if (r?.aborted) return; - ((o = this), (a = x)); - let v = d == null; - (p(), i && v && s()); - }; - return ( - (y.schedule = p), - (y.cancel = f), - (y.flush = g), - r?.addEventListener("abort", f, { once: !0 }), - y - ); -} -function LN(e, t = 0, r = {}) { - typeof r != "object" && (r = {}); - let { signal: n, leading: o = !1, trailing: a = !0, maxWait: i } = r, - l = Array(2); - (o && (l[0] = "leading"), a && (l[1] = "trailing")); - let s, - u = null, - d = g3( - function (...f) { - ((s = e.apply(this, f)), (u = null)); - }, - t, - { signal: n, edges: l }, - ), - p = function (...f) { - if (i != null) { - if (u === null) u = Date.now(); - else if (Date.now() - u >= i) - return ( - (s = e.apply(this, f)), - (u = Date.now()), - d.cancel(), - d.schedule(), - s - ); - } - return (d.apply(this, f), s); - }, - c = () => (d.flush(), s); - return ((p.cancel = d.cancel), (p.flush = c), p); -} -function ob(e) { - return typeof e == "symbol" || e instanceof Symbol; -} -function m3(e) { - return ob(e) ? NaN : Number(e); -} -function h3(e) { - return e - ? ((e = m3(e)), - e === 1 / 0 || e === -1 / 0 - ? (e < 0 ? -1 : 1) * Number.MAX_VALUE - : e === e - ? e - : 0) - : e === 0 - ? e - : 0; -} -function y3(e) { - let t = h3(e), - r = t % 1; - return r ? t - r : t; -} -function b3(e) { - return Array.from(new Set(e)); -} -function v3(e) { - return e == null || (typeof e != "object" && typeof e != "function"); -} -function ab(e) { - return ArrayBuffer.isView(e) && !(e instanceof DataView); -} -function ib(e) { - return Object.getOwnPropertySymbols(e).filter((t) => - Object.prototype.propertyIsEnumerable.call(e, t), - ); -} -function x3(e) { - return e == null - ? e === void 0 - ? "[object Undefined]" - : "[object Null]" - : Object.prototype.toString.call(e); -} -var E3 = "[object RegExp]", - lb = "[object String]", - sb = "[object Number]", - ub = "[object Boolean]", - cb = "[object Arguments]", - w3 = "[object Symbol]", - S3 = "[object Date]", - C3 = "[object Map]", - $3 = "[object Set]", - A3 = "[object Array]", - D3 = "[object ArrayBuffer]", - k3 = "[object Object]", - O3 = "[object DataView]", - F3 = "[object Uint8Array]", - _3 = "[object Uint8ClampedArray]", - T3 = "[object Uint16Array]", - R3 = "[object Uint32Array]", - P3 = "[object Int8Array]", - I3 = "[object Int16Array]", - L3 = "[object Int32Array]", - B3 = "[object Float32Array]", - N3 = "[object Float64Array]"; -function j3(e, t) { - return An(e, void 0, e, new Map(), t); -} -function An(e, t, r, n = new Map(), o = void 0) { - let a = o?.(e, t, r, n); - if (a != null) return a; - if (v3(e)) return e; - if (n.has(e)) return n.get(e); - if (Array.isArray(e)) { - let i = new Array(e.length); - n.set(e, i); - for (let l = 0; l < e.length; l++) i[l] = An(e[l], l, r, n, o); - return ( - Object.hasOwn(e, "index") && (i.index = e.index), - Object.hasOwn(e, "input") && (i.input = e.input), - i - ); - } - if (e instanceof Date) return new Date(e.getTime()); - if (e instanceof RegExp) { - let i = new RegExp(e.source, e.flags); - return ((i.lastIndex = e.lastIndex), i); - } - if (e instanceof Map) { - let i = new Map(); - n.set(e, i); - for (let [l, s] of e) i.set(l, An(s, l, r, n, o)); - return i; - } - if (e instanceof Set) { - let i = new Set(); - n.set(e, i); - for (let l of e) i.add(An(l, void 0, r, n, o)); - return i; - } - if (typeof Buffer < "u" && Buffer.isBuffer(e)) return e.subarray(); - if (ab(e)) { - let i = new (Object.getPrototypeOf(e).constructor)(e.length); - n.set(e, i); - for (let l = 0; l < e.length; l++) i[l] = An(e[l], l, r, n, o); - return i; - } - if ( - e instanceof ArrayBuffer || - (typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) - ) - return e.slice(0); - if (e instanceof DataView) { - let i = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength); - return (n.set(e, i), Hr(i, e, r, n, o), i); - } - if (typeof File < "u" && e instanceof File) { - let i = new File([e], e.name, { type: e.type }); - return (n.set(e, i), Hr(i, e, r, n, o), i); - } - if (e instanceof Blob) { - let i = new Blob([e], { type: e.type }); - return (n.set(e, i), Hr(i, e, r, n, o), i); - } - if (e instanceof Error) { - let i = new e.constructor(); - return ( - n.set(e, i), - (i.message = e.message), - (i.name = e.name), - (i.stack = e.stack), - (i.cause = e.cause), - Hr(i, e, r, n, o), - i - ); - } - if (typeof e == "object" && M3(e)) { - let i = Object.create(Object.getPrototypeOf(e)); - return (n.set(e, i), Hr(i, e, r, n, o), i); - } - return e; -} -function Hr(e, t, r = e, n, o) { - let a = [...Object.keys(t), ...ib(t)]; - for (let i = 0; i < a.length; i++) { - let l = a[i], - s = Object.getOwnPropertyDescriptor(e, l); - (s == null || s.writable) && (e[l] = An(t[l], l, r, n, o)); - } -} -function M3(e) { - switch (x3(e)) { - case cb: - case A3: - case D3: - case O3: - case ub: - case S3: - case B3: - case N3: - case P3: - case I3: - case L3: - case C3: - case sb: - case k3: - case E3: - case $3: - case lb: - case w3: - case F3: - case _3: - case T3: - case R3: - return !0; - default: - return !1; - } -} -function z3(e) { - return Number.isSafeInteger(e) && e >= 0; -} -function qc(e) { - return e != null && typeof e != "function" && z3(e.length); -} -function H3(e, t) { - return j3(e, (r, n, o, a) => { - if (typeof e == "object") - switch (Object.prototype.toString.call(e)) { - case sb: - case lb: - case ub: { - let i = new e.constructor(e?.valueOf()); - return (Hr(i, e), i); - } - case cb: { - let i = {}; - return ( - Hr(i, e), - (i.length = e.length), - (i[Symbol.iterator] = e[Symbol.iterator]), - i - ); - } - default: - return; - } - }); -} -function U3(e) { - return H3(e); -} -function W3(e, t, r = 1) { - if ((t == null && ((t = e), (e = 0)), !Number.isInteger(r) || r === 0)) - throw new Error("The step value must be a non-zero integer."); - let n = Math.max(Math.ceil((t - e) / r), 0), - o = new Array(n); - for (let a = 0; a < n; a++) o[a] = e + a * r; - return o; -} -function V3(e) { - return qc(e) ? b3(Array.from(e)) : []; -} -function q3(e) { - return typeof Buffer < "u" && Buffer.isBuffer(e); -} -function G3(e) { - let t = e?.constructor, - r = typeof t == "function" ? t.prototype : Object.prototype; - return e === r; -} -function Y3(e) { - return ab(e); -} -function K3(e, t) { - if (((e = y3(e)), e < 1 || !Number.isSafeInteger(e))) return []; - let r = new Array(e); - for (let n = 0; n < e; n++) r[n] = typeof t == "function" ? t(n) : n; - return r; -} -function X3(e) { - if (e == null) return []; - switch (typeof e) { - case "object": - case "function": - return qc(e) ? J3(e) : G3(e) ? Z3(e) : li(e); - default: - return li(Object(e)); - } -} -function li(e) { - let t = []; - for (let r in e) t.push(r); - return t; -} -function Z3(e) { - return li(e).filter((t) => t !== "constructor"); -} -function J3(e) { - let t = K3(e.length, (n) => `${n}`), - r = new Set(t); - return ( - q3(e) && (r.add("offset"), r.add("parent")), - Y3(e) && (r.add("buffer"), r.add("byteLength"), r.add("byteOffset")), - [...t, ...li(e).filter((n) => !r.has(n))] - ); -} -function Q3(e) { - let t = []; - for (; e; ) (t.push(...ib(e)), (e = Object.getPrototypeOf(e))); - return t; -} -function eD(e, t) { - if (e == null) return {}; - let r = {}; - if (t == null) return e; - let n = qc(e) ? W3(0, e.length) : [...X3(e), ...Q3(e)]; - for (let o = 0; o < n.length; o++) { - let a = ob(n[o]) ? n[o] : n[o].toString(), - i = e[a]; - t(i, a, e) && (r[a] = i); - } - return r; -} -var Ft = (e) => `control-${e.replace(/\s+/g, "-")}`, - Vi = (e) => `set-${e.replace(/\s+/g, "-")}`, - tD = Object.create, - db = Object.defineProperty, - rD = Object.getOwnPropertyDescriptor, - pb = Object.getOwnPropertyNames, - nD = Object.getPrototypeOf, - oD = Object.prototype.hasOwnProperty, - ya = ((e) => - typeof require < "u" - ? require - : typeof Proxy < "u" - ? new Proxy(e, { - get: (t, r) => (typeof require < "u" ? require : t)[r], - }) - : e)(function (e) { - if (typeof require < "u") return require.apply(this, arguments); - throw Error('Dynamic require of "' + e + '" is not supported'); - }), - aD = (e, t) => - function () { - return ( - t || (0, e[pb(e)[0]])((t = { exports: {} }).exports, t), - t.exports - ); - }, - iD = (e, t, r, n) => { - if ((t && typeof t == "object") || typeof t == "function") - for (let o of pb(t)) - !oD.call(e, o) && - o !== r && - db(e, o, { - get: () => t[o], - enumerable: !(n = rD(t, o)) || n.enumerable, - }); - return e; - }, - lD = (e, t, r) => ( - (r = e != null ? tD(nD(e)) : {}), - iD( - !e || !e.__esModule ? db(r, "default", { value: e, enumerable: !0 }) : r, - e, - ) - ), - sD = Object.create, - Gc = Object.defineProperty, - uD = Object.getOwnPropertyDescriptor, - cD = Object.getOwnPropertyNames, - dD = Object.getPrototypeOf, - pD = Object.prototype.hasOwnProperty, - P = (e, t) => Gc(e, "name", { value: t, configurable: !0 }), - ba = ((e) => - typeof require < "u" - ? require - : typeof Proxy < "u" - ? new Proxy(e, { - get: (t, r) => (typeof require < "u" ? require : t)[r], - }) - : e)(function (e) { - if (typeof require < "u") return require.apply(this, arguments); - throw Error('Dynamic require of "' + e + '" is not supported'); - }), - qi = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), - fD = (e, t, r, n) => { - if ((t && typeof t == "object") || typeof t == "function") - for (let o of cD(t)) - !pD.call(e, o) && - o !== r && - Gc(e, o, { - get: () => t[o], - enumerable: !(n = uD(t, o)) || n.enumerable, - }); - return e; - }, - Yc = (e, t, r) => ( - (r = e != null ? sD(dD(e)) : {}), - fD( - t || !e || !e.__esModule - ? Gc(r, "default", { value: e, enumerable: !0 }) - : r, - e, - ) - ), - gD = qi((e) => { - (function () { - var t = typeof Symbol == "function" && Symbol.for, - r = t ? Symbol.for("react.element") : 60103, - n = t ? Symbol.for("react.portal") : 60106, - o = t ? Symbol.for("react.fragment") : 60107, - a = t ? Symbol.for("react.strict_mode") : 60108, - i = t ? Symbol.for("react.profiler") : 60114, - l = t ? Symbol.for("react.provider") : 60109, - s = t ? Symbol.for("react.context") : 60110, - u = t ? Symbol.for("react.async_mode") : 60111, - d = t ? Symbol.for("react.concurrent_mode") : 60111, - p = t ? Symbol.for("react.forward_ref") : 60112, - c = t ? Symbol.for("react.suspense") : 60113, - f = t ? Symbol.for("react.suspense_list") : 60120, - g = t ? Symbol.for("react.memo") : 60115, - y = t ? Symbol.for("react.lazy") : 60116, - x = t ? Symbol.for("react.block") : 60121, - v = t ? Symbol.for("react.fundamental") : 60117, - C = t ? Symbol.for("react.responder") : 60118, - w = t ? Symbol.for("react.scope") : 60119; - function E(M) { - return ( - typeof M == "string" || - typeof M == "function" || - M === o || - M === d || - M === i || - M === a || - M === c || - M === f || - (typeof M == "object" && - M !== null && - (M.$$typeof === y || - M.$$typeof === g || - M.$$typeof === l || - M.$$typeof === s || - M.$$typeof === p || - M.$$typeof === v || - M.$$typeof === C || - M.$$typeof === w || - M.$$typeof === x)) - ); - } - P(E, "isValidElementType"); - function $(M) { - if (typeof M == "object" && M !== null) { - var U = M.$$typeof; - switch (U) { - case r: - var fe = M.type; - switch (fe) { - case u: - case d: - case o: - case i: - case a: - case c: - return fe; - default: - var ke = fe && fe.$$typeof; - switch (ke) { - case s: - case p: - case y: - case g: - case l: - return ke; - default: - return U; - } - } - case n: - return U; - } - } - } - P($, "typeOf"); - var A = u, - S = d, - D = s, - F = l, - k = r, - _ = p, - I = o, - L = y, - j = g, - B = n, - z = i, - V = a, - Y = c, - W = !1; - function G(M) { - return ( - W || - ((W = !0), - console.warn( - "The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.", - )), - J(M) || $(M) === u - ); - } - P(G, "isAsyncMode"); - function J(M) { - return $(M) === d; - } - P(J, "isConcurrentMode"); - function Q(M) { - return $(M) === s; - } - P(Q, "isContextConsumer"); - function re(M) { - return $(M) === l; - } - P(re, "isContextProvider"); - function ie(M) { - return typeof M == "object" && M !== null && M.$$typeof === r; - } - P(ie, "isElement"); - function H(M) { - return $(M) === p; - } - P(H, "isForwardRef"); - function X(M) { - return $(M) === o; - } - P(X, "isFragment"); - function Z(M) { - return $(M) === y; - } - P(Z, "isLazy"); - function le(M) { - return $(M) === g; - } - P(le, "isMemo"); - function me(M) { - return $(M) === n; - } - P(me, "isPortal"); - function Re(M) { - return $(M) === i; - } - P(Re, "isProfiler"); - function ne(M) { - return $(M) === a; - } - P(ne, "isStrictMode"); - function de(M) { - return $(M) === c; - } - (P(de, "isSuspense"), - (e.AsyncMode = A), - (e.ConcurrentMode = S), - (e.ContextConsumer = D), - (e.ContextProvider = F), - (e.Element = k), - (e.ForwardRef = _), - (e.Fragment = I), - (e.Lazy = L), - (e.Memo = j), - (e.Portal = B), - (e.Profiler = z), - (e.StrictMode = V), - (e.Suspense = Y), - (e.isAsyncMode = G), - (e.isConcurrentMode = J), - (e.isContextConsumer = Q), - (e.isContextProvider = re), - (e.isElement = ie), - (e.isForwardRef = H), - (e.isFragment = X), - (e.isLazy = Z), - (e.isMemo = le), - (e.isPortal = me), - (e.isProfiler = Re), - (e.isStrictMode = ne), - (e.isSuspense = de), - (e.isValidElementType = E), - (e.typeOf = $)); - })(); - }), - mD = qi((e, t) => { - t.exports = gD(); - }), - fb = qi((e, t) => { - var r = mD(), - n = { - childContextTypes: !0, - contextType: !0, - contextTypes: !0, - defaultProps: !0, - displayName: !0, - getDefaultProps: !0, - getDerivedStateFromError: !0, - getDerivedStateFromProps: !0, - mixins: !0, - propTypes: !0, - type: !0, - }, - o = { - name: !0, - length: !0, - prototype: !0, - caller: !0, - callee: !0, - arguments: !0, - arity: !0, - }, - a = { - $$typeof: !0, - render: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, - }, - i = { - $$typeof: !0, - compare: !0, - defaultProps: !0, - displayName: !0, - propTypes: !0, - type: !0, - }, - l = {}; - ((l[r.ForwardRef] = a), (l[r.Memo] = i)); - function s(x) { - return r.isMemo(x) ? i : l[x.$$typeof] || n; - } - P(s, "getStatics"); - var u = Object.defineProperty, - d = Object.getOwnPropertyNames, - p = Object.getOwnPropertySymbols, - c = Object.getOwnPropertyDescriptor, - f = Object.getPrototypeOf, - g = Object.prototype; - function y(x, v, C) { - if (typeof v != "string") { - if (g) { - var w = f(v); - w && w !== g && y(x, w, C); - } - var E = d(v); - p && (E = E.concat(p(v))); - for (var $ = s(x), A = s(v), S = 0; S < E.length; ++S) { - var D = E[S]; - if (!o[D] && !(C && C[D]) && !(A && A[D]) && !($ && $[D])) { - var F = c(v, D); - try { - u(x, D, F); - } catch {} - } - } - } - return x; - } - (P(y, "hoistNonReactStatics"), (t.exports = y)); - }), - hD = qi((e, t) => { - (function (r) { - if (typeof e == "object" && typeof t < "u") t.exports = r(); - else if (typeof define == "function" && define.amd) define([], r); - else { - var n; - (typeof window < "u" - ? (n = window) - : typeof global < "u" - ? (n = global) - : typeof self < "u" - ? (n = self) - : (n = this), - (n.memoizerific = r())); - } - })(function () { - return P(function r(n, o, a) { - function i(u, d) { - if (!o[u]) { - if (!n[u]) { - var p = typeof ba == "function" && ba; - if (!d && p) return p(u, !0); - if (l) return l(u, !0); - var c = new Error("Cannot find module '" + u + "'"); - throw ((c.code = "MODULE_NOT_FOUND"), c); - } - var f = (o[u] = { exports: {} }); - n[u][0].call( - f.exports, - function (g) { - var y = n[u][1][g]; - return i(y || g); - }, - f, - f.exports, - r, - n, - o, - a, - ); - } - return o[u].exports; - } - P(i, "s"); - for (var l = typeof ba == "function" && ba, s = 0; s < a.length; s++) - i(a[s]); - return i; - }, "e")( - { - 1: [ - function (r, n, o) { - n.exports = function (a) { - if (typeof Map != "function" || a) { - var i = r("./similar"); - return new i(); - } else return new Map(); - }; - }, - { "./similar": 2 }, - ], - 2: [ - function (r, n, o) { - function a() { - return ( - (this.list = []), - (this.lastItem = void 0), - (this.size = 0), - this - ); - } - (P(a, "Similar"), - (a.prototype.get = function (i) { - var l; - if (this.lastItem && this.isEqual(this.lastItem.key, i)) - return this.lastItem.val; - if (((l = this.indexOf(i)), l >= 0)) - return ((this.lastItem = this.list[l]), this.list[l].val); - }), - (a.prototype.set = function (i, l) { - var s; - return this.lastItem && this.isEqual(this.lastItem.key, i) - ? ((this.lastItem.val = l), this) - : ((s = this.indexOf(i)), - s >= 0 - ? ((this.lastItem = this.list[s]), - (this.list[s].val = l), - this) - : ((this.lastItem = { key: i, val: l }), - this.list.push(this.lastItem), - this.size++, - this)); - }), - (a.prototype.delete = function (i) { - var l; - if ( - (this.lastItem && - this.isEqual(this.lastItem.key, i) && - (this.lastItem = void 0), - (l = this.indexOf(i)), - l >= 0) - ) - return (this.size--, this.list.splice(l, 1)[0]); - }), - (a.prototype.has = function (i) { - var l; - return this.lastItem && this.isEqual(this.lastItem.key, i) - ? !0 - : ((l = this.indexOf(i)), - l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1); - }), - (a.prototype.forEach = function (i, l) { - var s; - for (s = 0; s < this.size; s++) - i.call(l || this, this.list[s].val, this.list[s].key, this); - }), - (a.prototype.indexOf = function (i) { - var l; - for (l = 0; l < this.size; l++) - if (this.isEqual(this.list[l].key, i)) return l; - return -1; - }), - (a.prototype.isEqual = function (i, l) { - return i === l || (i !== i && l !== l); - }), - (n.exports = a)); - }, - {}, - ], - 3: [ - function (r, n, o) { - var a = r("map-or-similar"); - n.exports = function (u) { - var d = new a(!1), - p = []; - return function (c) { - var f = P(function () { - var g = d, - y, - x, - v = arguments.length - 1, - C = Array(v + 1), - w = !0, - E; - if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1) - throw new Error( - "Memoizerific functions should always be called with the same number of arguments", - ); - for (E = 0; E < v; E++) { - if ( - ((C[E] = { cacheItem: g, arg: arguments[E] }), - g.has(arguments[E])) - ) { - g = g.get(arguments[E]); - continue; - } - ((w = !1), - (y = new a(!1)), - g.set(arguments[E], y), - (g = y)); - } - return ( - w && - (g.has(arguments[v]) - ? (x = g.get(arguments[v])) - : (w = !1)), - w || - ((x = c.apply(null, arguments)), - g.set(arguments[v], x)), - u > 0 && - ((C[v] = { cacheItem: g, arg: arguments[v] }), - w ? i(p, C) : p.push(C), - p.length > u && l(p.shift())), - (f.wasMemoized = w), - (f.numArgs = v + 1), - x - ); - }, "memoizerific"); - return ( - (f.limit = u), - (f.wasMemoized = !1), - (f.cache = d), - (f.lru = p), - f - ); - }; - }; - function i(u, d) { - var p = u.length, - c = d.length, - f, - g, - y; - for (g = 0; g < p; g++) { - for (f = !0, y = 0; y < c; y++) - if (!s(u[g][y].arg, d[y].arg)) { - f = !1; - break; - } - if (f) break; - } - u.push(u.splice(g, 1)[0]); - } - P(i, "moveToMostRecentLru"); - function l(u) { - var d = u.length, - p = u[d - 1], - c, - f; - for ( - p.cacheItem.delete(p.arg), f = d - 2; - f >= 0 && - ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size); - f-- - ) - p.cacheItem.delete(p.arg); - } - P(l, "removeCachedResult"); - function s(u, d) { - return u === d || (u !== u && d !== d); - } - P(s, "isEqual"); - }, - { "map-or-similar": 1 }, - ], - }, - {}, - [3], - )(3); - }); - }); -function Be() { - return ( - (Be = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t]; - for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); - } - return e; - }), - Be.apply(null, arguments) - ); -} -P(Be, "_extends"); -function gb(e) { - if (e.sheet) return e.sheet; - for (var t = 0; t < document.styleSheets.length; t++) - if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t]; -} -P(gb, "sheetForTag"); -function mb(e) { - var t = document.createElement("style"); - return ( - t.setAttribute("data-emotion", e.key), - e.nonce !== void 0 && t.setAttribute("nonce", e.nonce), - t.appendChild(document.createTextNode("")), - t.setAttribute("data-s", ""), - t - ); -} -P(mb, "createStyleElement"); -var yD = (function () { - function e(r) { - var n = this; - ((this._insertTag = function (o) { - var a; - (n.tags.length === 0 - ? n.insertionPoint - ? (a = n.insertionPoint.nextSibling) - : n.prepend - ? (a = n.container.firstChild) - : (a = n.before) - : (a = n.tags[n.tags.length - 1].nextSibling), - n.container.insertBefore(o, a), - n.tags.push(o)); - }), - (this.isSpeedy = r.speedy === void 0 ? !0 : r.speedy), - (this.tags = []), - (this.ctr = 0), - (this.nonce = r.nonce), - (this.key = r.key), - (this.container = r.container), - (this.prepend = r.prepend), - (this.insertionPoint = r.insertionPoint), - (this.before = null)); - } - P(e, "StyleSheet"); - var t = e.prototype; - return ( - (t.hydrate = P(function (r) { - r.forEach(this._insertTag); - }, "hydrate")), - (t.insert = P(function (r) { - this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && - this._insertTag(mb(this)); - var n = this.tags[this.tags.length - 1]; - if (this.isSpeedy) { - var o = gb(n); - try { - o.insertRule(r, o.cssRules.length); - } catch {} - } else n.appendChild(document.createTextNode(r)); - this.ctr++; - }, "insert")), - (t.flush = P(function () { - (this.tags.forEach(function (r) { - var n; - return (n = r.parentNode) == null ? void 0 : n.removeChild(r); - }), - (this.tags = []), - (this.ctr = 0)); - }, "flush")), - e - ); - })(), - He = "-ms-", - si = "-moz-", - ce = "-webkit-", - hb = "comm", - Kc = "rule", - Xc = "decl", - bD = "@import", - yb = "@keyframes", - vD = "@layer", - xD = Math.abs, - Gi = String.fromCharCode, - ED = Object.assign; -function bb(e, t) { - return Le(e, 0) ^ 45 - ? (((((((t << 2) ^ Le(e, 0)) << 2) ^ Le(e, 1)) << 2) ^ Le(e, 2)) << 2) ^ - Le(e, 3) - : 0; -} -P(bb, "hash"); -function Zc(e) { - return e.trim(); -} -P(Zc, "trim"); -function vb(e, t) { - return (e = t.exec(e)) ? e[0] : e; -} -P(vb, "match"); -function ue(e, t, r) { - return e.replace(t, r); -} -P(ue, "replace"); -function ui(e, t) { - return e.indexOf(t); -} -P(ui, "indexof"); -function Le(e, t) { - return e.charCodeAt(t) | 0; -} -P(Le, "charat"); -function zn(e, t, r) { - return e.slice(t, r); -} -P(zn, "substr"); -function Ct(e) { - return e.length; -} -P(Ct, "strlen"); -function Yi(e) { - return e.length; -} -P(Yi, "sizeof"); -function Fo(e, t) { - return (t.push(e), e); -} -P(Fo, "append"); -function xb(e, t) { - return e.map(t).join(""); -} -P(xb, "combine"); -var Ki = 1, - Hn = 1, - Eb = 0, - Je = 0, - De = 0, - ao = ""; -function ra(e, t, r, n, o, a, i) { - return { - value: e, - root: t, - parent: r, - type: n, - props: o, - children: a, - line: Ki, - column: Hn, - length: i, - return: "", - }; -} -P(ra, "node"); -function En(e, t) { - return ED(ra("", null, null, "", null, null, 0), e, { length: -e.length }, t); -} -P(En, "copy"); -function wb() { - return De; -} -P(wb, "char"); -function Sb() { - return ( - (De = Je > 0 ? Le(ao, --Je) : 0), - Hn--, - De === 10 && ((Hn = 1), Ki--), - De - ); -} -P(Sb, "prev"); -function Ze() { - return ( - (De = Je < Eb ? Le(ao, Je++) : 0), - Hn++, - De === 10 && ((Hn = 1), Ki++), - De - ); -} -P(Ze, "next"); -function Dt() { - return Le(ao, Je); -} -P(Dt, "peek"); -function Lo() { - return Je; -} -P(Lo, "caret"); -function io(e, t) { - return zn(ao, e, t); -} -P(io, "slice"); -function Un(e) { - switch (e) { - 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; -} -P(Un, "token"); -function Jc(e) { - return ((Ki = Hn = 1), (Eb = Ct((ao = e))), (Je = 0), []); -} -P(Jc, "alloc"); -function Qc(e) { - return ((ao = ""), e); -} -P(Qc, "dealloc"); -function Bo(e) { - return Zc(io(Je - 1, ci(e === 91 ? e + 2 : e === 40 ? e + 1 : e))); -} -P(Bo, "delimit"); -function Cb(e) { - for (; (De = Dt()) && De < 33; ) Ze(); - return Un(e) > 2 || Un(De) > 3 ? "" : " "; -} -P(Cb, "whitespace"); -function $b(e, t) { - for ( - ; - --t && - Ze() && - !(De < 48 || De > 102 || (De > 57 && De < 65) || (De > 70 && De < 97)); - ); - return io(e, Lo() + (t < 6 && Dt() == 32 && Ze() == 32)); -} -P($b, "escaping"); -function ci(e) { - for (; Ze(); ) - switch (De) { - case e: - return Je; - case 34: - case 39: - e !== 34 && e !== 39 && ci(De); - break; - case 40: - e === 41 && ci(e); - break; - case 92: - Ze(); - break; - } - return Je; -} -P(ci, "delimiter"); -function Ab(e, t) { - for (; Ze() && e + De !== 57 && !(e + De === 84 && Dt() === 47); ); - return "/*" + io(t, Je - 1) + "*" + Gi(e === 47 ? e : Ze()); -} -P(Ab, "commenter"); -function Db(e) { - for (; !Un(Dt()); ) Ze(); - return io(e, Je); -} -P(Db, "identifier"); -function kb(e) { - return Qc(No("", null, null, null, [""], (e = Jc(e)), 0, [0], e)); -} -P(kb, "compile"); -function No(e, t, r, n, o, a, i, l, s) { - for ( - var u = 0, - d = 0, - p = i, - c = 0, - f = 0, - g = 0, - y = 1, - x = 1, - v = 1, - C = 0, - w = "", - E = o, - $ = a, - A = n, - S = w; - x; - ) - switch (((g = C), (C = Ze()))) { - case 40: - if (g != 108 && Le(S, p - 1) == 58) { - ui((S += ue(Bo(C), "&", "&\f")), "&\f") != -1 && (v = -1); - break; - } - case 34: - case 39: - case 91: - S += Bo(C); - break; - case 9: - case 10: - case 13: - case 32: - S += Cb(g); - break; - case 92: - S += $b(Lo() - 1, 7); - continue; - case 47: - switch (Dt()) { - case 42: - case 47: - Fo(Ob(Ab(Ze(), Lo()), t, r), s); - break; - default: - S += "/"; - } - break; - case 123 * y: - l[u++] = Ct(S) * v; - case 125 * y: - case 59: - case 0: - switch (C) { - case 0: - case 125: - x = 0; - case 59 + d: - (v == -1 && (S = ue(S, /\f/g, "")), - f > 0 && - Ct(S) - p && - Fo( - f > 32 - ? lu(S + ";", n, r, p - 1) - : lu(ue(S, " ", "") + ";", n, r, p - 2), - s, - )); - break; - case 59: - S += ";"; - default: - if ( - (Fo((A = iu(S, t, r, u, d, o, l, w, (E = []), ($ = []), p)), a), - C === 123) - ) - if (d === 0) No(S, t, A, A, E, a, p, l, $); - else - switch (c === 99 && Le(S, 3) === 110 ? 100 : c) { - case 100: - case 108: - case 109: - case 115: - No( - e, - A, - A, - n && Fo(iu(e, A, A, 0, 0, o, l, w, o, (E = []), p), $), - o, - $, - p, - l, - n ? E : $, - ); - break; - default: - No(S, A, A, A, [""], $, 0, l, $); - } - } - ((u = d = f = 0), (y = v = 1), (w = S = ""), (p = i)); - break; - case 58: - ((p = 1 + Ct(S)), (f = g)); - default: - if (y < 1) { - if (C == 123) --y; - else if (C == 125 && y++ == 0 && Sb() == 125) continue; - } - switch (((S += Gi(C)), C * y)) { - case 38: - v = d > 0 ? 1 : ((S += "\f"), -1); - break; - case 44: - ((l[u++] = (Ct(S) - 1) * v), (v = 1)); - break; - case 64: - (Dt() === 45 && (S += Bo(Ze())), - (c = Dt()), - (d = p = Ct((w = S += Db(Lo())))), - C++); - break; - case 45: - g === 45 && Ct(S) == 2 && (y = 0); - } - } - return a; -} -P(No, "parse"); -function iu(e, t, r, n, o, a, i, l, s, u, d) { - for ( - var p = o - 1, c = o === 0 ? a : [""], f = Yi(c), g = 0, y = 0, x = 0; - g < n; - ++g - ) - for (var v = 0, C = zn(e, p + 1, (p = xD((y = i[g])))), w = e; v < f; ++v) - (w = Zc(y > 0 ? c[v] + " " + C : ue(C, /&\f/g, c[v]))) && (s[x++] = w); - return ra(e, t, r, o === 0 ? Kc : l, s, u, d); -} -P(iu, "ruleset"); -function Ob(e, t, r) { - return ra(e, t, r, hb, Gi(wb()), zn(e, 2, -2), 0); -} -P(Ob, "comment"); -function lu(e, t, r, n) { - return ra(e, t, r, Xc, zn(e, 0, n), zn(e, n + 1, -1), n); -} -P(lu, "declaration"); -function Yr(e, t) { - for (var r = "", n = Yi(e), o = 0; o < n; o++) r += t(e[o], o, e, t) || ""; - return r; -} -P(Yr, "serialize"); -function Fb(e, t, r, n) { - switch (e.type) { - case vD: - if (e.children.length) break; - case bD: - case Xc: - return (e.return = e.return || e.value); - case hb: - return ""; - case yb: - return (e.return = e.value + "{" + Yr(e.children, n) + "}"); - case Kc: - e.value = e.props.join(","); - } - return Ct((r = Yr(e.children, n))) - ? (e.return = e.value + "{" + r + "}") - : ""; -} -P(Fb, "stringify"); -function _b(e) { - var t = Yi(e); - return function (r, n, o, a) { - for (var i = "", l = 0; l < t; l++) i += e[l](r, n, o, a) || ""; - return i; - }; -} -P(_b, "middleware"); -function Tb(e) { - return function (t) { - t.root || ((t = t.return) && e(t)); - }; -} -P(Tb, "rulesheet"); -var If = P(function (e) { - var t = new WeakMap(); - return function (r) { - if (t.has(r)) return t.get(r); - var n = e(r); - return (t.set(r, n), n); - }; -}, "weakMemoize"); -function ed(e) { - var t = Object.create(null); - return function (r) { - return (t[r] === void 0 && (t[r] = e(r)), t[r]); - }; -} -P(ed, "memoize"); -var wD = P(function (e, t, r) { - for ( - var n = 0, o = 0; - (n = o), (o = Dt()), n === 38 && o === 12 && (t[r] = 1), !Un(o); - ) - Ze(); - return io(e, Je); - }, "identifierWithPointTracking"), - SD = P(function (e, t) { - var r = -1, - n = 44; - do - switch (Un(n)) { - case 0: - (n === 38 && Dt() === 12 && (t[r] = 1), (e[r] += wD(Je - 1, t, r))); - break; - case 2: - e[r] += Bo(n); - break; - case 4: - if (n === 44) { - ((e[++r] = Dt() === 58 ? "&\f" : ""), (t[r] = e[r].length)); - break; - } - default: - e[r] += Gi(n); - } - while ((n = Ze())); - return e; - }, "toRules"), - CD = P(function (e, t) { - return Qc(SD(Jc(e), t)); - }, "getRules"), - Lf = new WeakMap(), - $D = P(function (e) { - if (!(e.type !== "rule" || !e.parent || e.length < 1)) { - for ( - var t = e.value, - r = e.parent, - n = e.column === r.column && e.line === r.line; - r.type !== "rule"; - ) - if (((r = r.parent), !r)) return; - if ( - !(e.props.length === 1 && t.charCodeAt(0) !== 58 && !Lf.get(r)) && - !n - ) { - Lf.set(e, !0); - for ( - var o = [], a = CD(t, o), i = r.props, l = 0, s = 0; - l < a.length; - l++ - ) - for (var u = 0; u < i.length; u++, s++) - e.props[s] = o[l] ? a[l].replace(/&\f/g, i[u]) : i[u] + " " + a[l]; - } - } - }, "compat"), - AD = P(function (e) { - if (e.type === "decl") { - var t = e.value; - t.charCodeAt(0) === 108 && - t.charCodeAt(2) === 98 && - ((e.return = ""), (e.value = "")); - } - }, "removeLabel"); -function td(e, t) { - switch (bb(e, t)) { - case 5103: - return ce + "print-" + e + e; - case 5737: - case 4201: - case 3177: - case 3433: - case 1641: - case 4457: - case 2921: - case 5572: - case 6356: - case 5844: - case 3191: - case 6645: - case 3005: - case 6391: - case 5879: - case 5623: - case 6135: - case 4599: - case 4855: - case 4215: - case 6389: - case 5109: - case 5365: - case 5621: - case 3829: - return ce + e + e; - case 5349: - case 4246: - case 4810: - case 6968: - case 2756: - return ce + e + si + e + He + e + e; - case 6828: - case 4268: - return ce + e + He + e + e; - case 6165: - return ce + e + He + "flex-" + e + e; - case 5187: - return ( - ce + e + ue(e, /(\w+).+(:[^]+)/, ce + "box-$1$2" + He + "flex-$1$2") + e - ); - case 5443: - return ce + e + He + "flex-item-" + ue(e, /flex-|-self/, "") + e; - case 4675: - return ( - ce + - e + - He + - "flex-line-pack" + - ue(e, /align-content|flex-|-self/, "") + - e - ); - case 5548: - return ce + e + He + ue(e, "shrink", "negative") + e; - case 5292: - return ce + e + He + ue(e, "basis", "preferred-size") + e; - case 6060: - return ( - ce + - "box-" + - ue(e, "-grow", "") + - ce + - e + - He + - ue(e, "grow", "positive") + - e - ); - case 4554: - return ce + ue(e, /([^-])(transform)/g, "$1" + ce + "$2") + e; - case 6187: - return ( - ue( - ue(ue(e, /(zoom-|grab)/, ce + "$1"), /(image-set)/, ce + "$1"), - e, - "", - ) + e - ); - case 5495: - case 3959: - return ue(e, /(image-set\([^]*)/, ce + "$1$`$1"); - case 4968: - return ( - ue( - ue(e, /(.+:)(flex-)?(.*)/, ce + "box-pack:$3" + He + "flex-pack:$3"), - /s.+-b[^;]+/, - "justify", - ) + - ce + - e + - e - ); - case 4095: - case 3583: - case 4068: - case 2532: - return ue(e, /(.+)-inline(.+)/, ce + "$1$2") + e; - case 8116: - case 7059: - case 5753: - case 5535: - case 5445: - case 5701: - case 4933: - case 4677: - case 5533: - case 5789: - case 5021: - case 4765: - if (Ct(e) - 1 - t > 6) - switch (Le(e, t + 1)) { - case 109: - if (Le(e, t + 4) !== 45) break; - case 102: - return ( - ue( - e, - /(.+:)(.+)-([^]+)/, - "$1" + - ce + - "$2-$3$1" + - si + - (Le(e, t + 3) == 108 ? "$3" : "$2-$3"), - ) + e - ); - case 115: - return ~ui(e, "stretch") - ? td(ue(e, "stretch", "fill-available"), t) + e - : e; - } - break; - case 4949: - if (Le(e, t + 1) !== 115) break; - case 6444: - switch (Le(e, Ct(e) - 3 - (~ui(e, "!important") && 10))) { - case 107: - return ue(e, ":", ":" + ce) + e; - case 101: - return ( - ue( - e, - /(.+:)([^;!]+)(;|!.+)?/, - "$1" + - ce + - (Le(e, 14) === 45 ? "inline-" : "") + - "box$3$1" + - ce + - "$2$3$1" + - He + - "$2box$3", - ) + e - ); - } - break; - case 5936: - switch (Le(e, t + 11)) { - case 114: - return ce + e + He + ue(e, /[svh]\w+-[tblr]{2}/, "tb") + e; - case 108: - return ce + e + He + ue(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e; - case 45: - return ce + e + He + ue(e, /[svh]\w+-[tblr]{2}/, "lr") + e; - } - return ce + e + He + e + e; - } - return e; -} -P(td, "prefix"); -var DD = P(function (e, t, r, n) { - if (e.length > -1 && !e.return) - switch (e.type) { - case Xc: - e.return = td(e.value, e.length); - break; - case yb: - return Yr([En(e, { value: ue(e.value, "@", "@" + ce) })], n); - case Kc: - if (e.length) - return xb(e.props, function (o) { - switch (vb(o, /(::plac\w+|:read-\w+)/)) { - case ":read-only": - case ":read-write": - return Yr( - [En(e, { props: [ue(o, /:(read-\w+)/, ":" + si + "$1")] })], - n, - ); - case "::placeholder": - return Yr( - [ - En(e, { - props: [ue(o, /:(plac\w+)/, ":" + ce + "input-$1")], - }), - En(e, { props: [ue(o, /:(plac\w+)/, ":" + si + "$1")] }), - En(e, { props: [ue(o, /:(plac\w+)/, He + "input-$1")] }), - ], - n, - ); - } - return ""; - }); - } - }, "prefixer"), - kD = [DD], - OD = P(function (e) { - var t = e.key; - if (t === "css") { - var r = document.querySelectorAll("style[data-emotion]:not([data-s])"); - Array.prototype.forEach.call(r, function (g) { - var y = g.getAttribute("data-emotion"); - y.indexOf(" ") !== -1 && - (document.head.appendChild(g), g.setAttribute("data-s", "")); - }); - } - var n = e.stylisPlugins || kD, - o = {}, - a, - i = []; - ((a = e.container || document.head), - Array.prototype.forEach.call( - document.querySelectorAll('style[data-emotion^="' + t + ' "]'), - function (g) { - for ( - var y = g.getAttribute("data-emotion").split(" "), x = 1; - x < y.length; - x++ - ) - o[y[x]] = !0; - i.push(g); - }, - )); - var l, - s = [$D, AD]; - { - var u, - d = [ - Fb, - Tb(function (g) { - u.insert(g); - }), - ], - p = _b(s.concat(n, d)), - c = P(function (g) { - return Yr(kb(g), p); - }, "stylis"); - l = P(function (g, y, x, v) { - ((u = x), - c(g ? g + "{" + y.styles + "}" : y.styles), - v && (f.inserted[y.name] = !0)); - }, "insert"); - } - var f = { - key: t, - sheet: new yD({ - key: t, - container: a, - nonce: e.nonce, - speedy: e.speedy, - prepend: e.prepend, - insertionPoint: e.insertionPoint, - }), - nonce: e.nonce, - inserted: o, - registered: {}, - insert: l, - }; - return (f.sheet.hydrate(i), f); - }, "createCache"), - FD = Yc(fb()), - _D = P(function (e, t) { - return (0, FD.default)(e, t); - }, "hoistNonReactStatics"), - TD = !0; -function Xi(e, t, r) { - var n = ""; - return ( - r.split(" ").forEach(function (o) { - e[o] !== void 0 ? t.push(e[o] + ";") : o && (n += o + " "); - }), - n - ); -} -P(Xi, "getRegisteredStyles"); -var rd = P(function (e, t, r) { - var n = e.key + "-" + t.name; - (r === !1 || TD === !1) && - e.registered[n] === void 0 && - (e.registered[n] = t.styles); - }, "registerStyles"), - Rb = P(function (e, t, r) { - rd(e, t, r); - var n = e.key + "-" + t.name; - if (e.inserted[t.name] === void 0) { - var o = t; - do (e.insert(t === o ? "." + n : "", o, e.sheet, !0), (o = o.next)); - while (o !== void 0); - } - }, "insertStyles"); -function Pb(e) { - for (var t = 0, r, n = 0, o = e.length; o >= 4; ++n, o -= 4) - ((r = - (e.charCodeAt(n) & 255) | - ((e.charCodeAt(++n) & 255) << 8) | - ((e.charCodeAt(++n) & 255) << 16) | - ((e.charCodeAt(++n) & 255) << 24)), - (r = (r & 65535) * 1540483477 + (((r >>> 16) * 59797) << 16)), - (r ^= r >>> 24), - (t = - ((r & 65535) * 1540483477 + (((r >>> 16) * 59797) << 16)) ^ - ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)))); - switch (o) { - case 3: - t ^= (e.charCodeAt(n + 2) & 255) << 16; - case 2: - t ^= (e.charCodeAt(n + 1) & 255) << 8; - case 1: - ((t ^= e.charCodeAt(n) & 255), - (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16))); - } - return ( - (t ^= t >>> 13), - (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)), - ((t ^ (t >>> 15)) >>> 0).toString(36) - ); -} -P(Pb, "murmur2"); -var RD = { - animationIterationCount: 1, - aspectRatio: 1, - borderImageOutset: 1, - borderImageSlice: 1, - borderImageWidth: 1, - boxFlex: 1, - boxFlexGroup: 1, - boxOrdinalGroup: 1, - columnCount: 1, - columns: 1, - flex: 1, - flexGrow: 1, - flexPositive: 1, - flexShrink: 1, - flexNegative: 1, - flexOrder: 1, - gridRow: 1, - gridRowEnd: 1, - gridRowSpan: 1, - gridRowStart: 1, - gridColumn: 1, - gridColumnEnd: 1, - gridColumnSpan: 1, - gridColumnStart: 1, - msGridRow: 1, - msGridRowSpan: 1, - msGridColumn: 1, - msGridColumnSpan: 1, - fontWeight: 1, - lineHeight: 1, - opacity: 1, - order: 1, - orphans: 1, - scale: 1, - tabSize: 1, - widows: 1, - zIndex: 1, - zoom: 1, - WebkitLineClamp: 1, - fillOpacity: 1, - floodOpacity: 1, - stopOpacity: 1, - strokeDasharray: 1, - strokeDashoffset: 1, - strokeMiterlimit: 1, - strokeOpacity: 1, - strokeWidth: 1, - }, - PD = /[A-Z]|^ms/g, - ID = /_EMO_([^_]+?)_([^]*?)_EMO_/g, - Ib = P(function (e) { - return e.charCodeAt(1) === 45; - }, "isCustomProperty"), - Bf = P(function (e) { - return e != null && typeof e != "boolean"; - }, "isProcessableValue"), - Wl = ed(function (e) { - return Ib(e) ? e : e.replace(PD, "-$&").toLowerCase(); - }), - Nf = P(function (e, t) { - switch (e) { - case "animation": - case "animationName": - if (typeof t == "string") - return t.replace(ID, function (r, n, o) { - return ((Nt = { name: n, styles: o, next: Nt }), n); - }); - } - return RD[e] !== 1 && !Ib(e) && typeof t == "number" && t !== 0 - ? t + "px" - : t; - }, "processStyleValue"); -function Wn(e, t, r) { - if (r == null) return ""; - var n = r; - if (n.__emotion_styles !== void 0) return n; - switch (typeof r) { - case "boolean": - return ""; - case "object": { - var o = r; - if (o.anim === 1) - return ((Nt = { name: o.name, styles: o.styles, next: Nt }), o.name); - var a = r; - if (a.styles !== void 0) { - var i = a.next; - if (i !== void 0) - for (; i !== void 0; ) - ((Nt = { name: i.name, styles: i.styles, next: Nt }), (i = i.next)); - var l = a.styles + ";"; - return l; - } - return Lb(e, t, r); - } - case "function": { - if (e !== void 0) { - var s = Nt, - u = r(e); - return ((Nt = s), Wn(e, t, u)); - } - break; - } - } - var d = r; - if (t == null) return d; - var p = t[d]; - return p !== void 0 ? p : d; -} -P(Wn, "handleInterpolation"); -function Lb(e, t, r) { - var n = ""; - if (Array.isArray(r)) - for (var o = 0; o < r.length; o++) n += Wn(e, t, r[o]) + ";"; - else - for (var a in r) { - var i = r[a]; - if (typeof i != "object") { - var l = i; - t != null && t[l] !== void 0 - ? (n += a + "{" + t[l] + "}") - : Bf(l) && (n += Wl(a) + ":" + Nf(a, l) + ";"); - } else if ( - Array.isArray(i) && - typeof i[0] == "string" && - (t == null || t[i[0]] === void 0) - ) - for (var s = 0; s < i.length; s++) - Bf(i[s]) && (n += Wl(a) + ":" + Nf(a, i[s]) + ";"); - else { - var u = Wn(e, t, i); - switch (a) { - case "animation": - case "animationName": { - n += Wl(a) + ":" + u + ";"; - break; - } - default: - n += a + "{" + u + "}"; - } - } - } - return n; -} -P(Lb, "createStringFromObject"); -var jf = /label:\s*([^\s;{]+)\s*(;|$)/g, - Nt; -function Zi(e, t, r) { - if ( - e.length === 1 && - typeof e[0] == "object" && - e[0] !== null && - e[0].styles !== void 0 - ) - return e[0]; - var n = !0, - o = ""; - Nt = void 0; - var a = e[0]; - if (a == null || a.raw === void 0) ((n = !1), (o += Wn(r, t, a))); - else { - var i = a; - o += i[0]; - } - for (var l = 1; l < e.length; l++) - if (((o += Wn(r, t, e[l])), n)) { - var s = a; - o += s[l]; - } - jf.lastIndex = 0; - for (var u = "", d; (d = jf.exec(o)) !== null; ) u += "-" + d[1]; - var p = Pb(o) + u; - return { name: p, styles: o, next: Nt }; -} -P(Zi, "serializeStyles"); -var LD = P(function (e) { - return e(); - }, "syncFallback"), - BD = b.useInsertionEffect ? b.useInsertionEffect : !1, - Bb = BD || LD, - Nb = b.createContext(typeof HTMLElement < "u" ? OD({ key: "css" }) : null); -Nb.Provider; -var jb = P(function (e) { - return b.forwardRef(function (t, r) { - var n = b.useContext(Nb); - return e(t, n, r); - }); - }, "withEmotionCache"), - Vn = b.createContext({}), - Mb = P(function () { - return b.useContext(Vn); - }, "useTheme"), - ND = P(function (e, t) { - if (typeof t == "function") { - var r = t(e); - return r; - } - return Be({}, e, t); - }, "getTheme"), - jD = If(function (e) { - return If(function (t) { - return ND(e, t); - }); - }), - zb = P(function (e) { - var t = b.useContext(Vn); - return ( - e.theme !== t && (t = jD(t)(e.theme)), - b.createElement(Vn.Provider, { value: t }, e.children) - ); - }, "ThemeProvider"); -function MD(e) { - var t = e.displayName || e.name || "Component", - r = b.forwardRef( - P(function (n, o) { - var a = b.useContext(Vn); - return b.createElement(e, Be({ theme: a, ref: o }, n)); - }, "render"), - ); - return ((r.displayName = "WithTheme(" + t + ")"), _D(r, e)); -} -P(MD, "withTheme"); -var nd = {}.hasOwnProperty, - su = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", - zD = P(function (e, t) { - var r = {}; - for (var n in t) nd.call(t, n) && (r[n] = t[n]); - return ((r[su] = e), r); - }, "createEmotionProps"), - HD = P(function (e) { - var t = e.cache, - r = e.serialized, - n = e.isStringTag; - return ( - rd(t, r, n), - Bb(function () { - return Rb(t, r, n); - }), - null - ); - }, "Insertion"), - UD = jb(function (e, t, r) { - var n = e.css; - typeof n == "string" && t.registered[n] !== void 0 && (n = t.registered[n]); - var o = e[su], - a = [n], - i = ""; - typeof e.className == "string" - ? (i = Xi(t.registered, a, e.className)) - : e.className != null && (i = e.className + " "); - var l = Zi(a, void 0, b.useContext(Vn)); - i += t.key + "-" + l.name; - var s = {}; - for (var u in e) nd.call(e, u) && u !== "css" && u !== su && (s[u] = e[u]); - return ( - (s.className = i), - r && (s.ref = r), - b.createElement( - b.Fragment, - null, - b.createElement(HD, { - cache: t, - serialized: l, - isStringTag: typeof o == "string", - }), - b.createElement(o, s), - ) - ); - }), - WD = UD; -Yc(fb()); -var Mf = P(function (e, t) { - var r = arguments; - if (t == null || !nd.call(t, "css")) return b.createElement.apply(void 0, r); - var n = r.length, - o = new Array(n); - ((o[0] = WD), (o[1] = zD(e, t))); - for (var a = 2; a < n; a++) o[a] = r[a]; - return b.createElement.apply(null, o); -}, "jsx"); -(function (e) { - var t; - t || (t = e.JSX || (e.JSX = {})); -})(Mf || (Mf = {})); -function Ji() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - return Zi(t); -} -P(Ji, "css"); -function _t() { - var e = Ji.apply(void 0, arguments), - t = "animation-" + e.name; - return { - name: t, - styles: "@keyframes " + t + "{" + e.styles + "}", - anim: 1, - toString: P(function () { - return "_EMO_" + this.name + "_" + this.styles + "_EMO_"; - }, "toString"), - }; -} -P(_t, "keyframes"); -function VD(e, t, r) { - var n = [], - o = Xi(e, n, r); - return n.length < 2 ? r : o + t(n); -} -P(VD, "merge"); -var qD = - /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, - od = ed(function (e) { - return ( - qD.test(e) || - (e.charCodeAt(0) === 111 && - e.charCodeAt(1) === 110 && - e.charCodeAt(2) < 91) - ); - }), - GD = od, - YD = P(function (e) { - return e !== "theme"; - }, "testOmitPropsOnComponent"), - zf = P(function (e) { - return typeof e == "string" && e.charCodeAt(0) > 96 ? GD : YD; - }, "getDefaultShouldForwardProp"), - Hf = P(function (e, t, r) { - var n; - if (t) { - var o = t.shouldForwardProp; - n = - e.__emotion_forwardProp && o - ? function (a) { - return e.__emotion_forwardProp(a) && o(a); - } - : o; - } - return (typeof n != "function" && r && (n = e.__emotion_forwardProp), n); - }, "composeShouldForwardProps"), - KD = P(function (e) { - var t = e.cache, - r = e.serialized, - n = e.isStringTag; - return ( - rd(t, r, n), - Bb(function () { - return Rb(t, r, n); - }), - null - ); - }, "Insertion"), - XD = P(function e(t, r) { - var n = t.__emotion_real === t, - o = (n && t.__emotion_base) || t, - a, - i; - r !== void 0 && ((a = r.label), (i = r.target)); - var l = Hf(t, r, n), - s = l || zf(o), - u = !s("as"); - return function () { - var d = arguments, - p = - n && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : []; - if ( - (a !== void 0 && p.push("label:" + a + ";"), - d[0] == null || d[0].raw === void 0) - ) - p.push.apply(p, d); - else { - var c = d[0]; - p.push(c[0]); - for (var f = d.length, g = 1; g < f; g++) p.push(d[g], c[g]); - } - var y = jb(function (x, v, C) { - var w = (u && x.as) || o, - E = "", - $ = [], - A = x; - if (x.theme == null) { - A = {}; - for (var S in x) A[S] = x[S]; - A.theme = b.useContext(Vn); - } - typeof x.className == "string" - ? (E = Xi(v.registered, $, x.className)) - : x.className != null && (E = x.className + " "); - var D = Zi(p.concat($), v.registered, A); - ((E += v.key + "-" + D.name), i !== void 0 && (E += " " + i)); - var F = u && l === void 0 ? zf(w) : s, - k = {}; - for (var _ in x) (u && _ === "as") || (F(_) && (k[_] = x[_])); - return ( - (k.className = E), - C && (k.ref = C), - b.createElement( - b.Fragment, - null, - b.createElement(KD, { - cache: v, - serialized: D, - isStringTag: typeof w == "string", - }), - b.createElement(w, k), - ) - ); - }); - return ( - (y.displayName = - a !== void 0 - ? a - : "Styled(" + - (typeof o == "string" - ? o - : o.displayName || o.name || "Component") + - ")"), - (y.defaultProps = t.defaultProps), - (y.__emotion_real = y), - (y.__emotion_base = o), - (y.__emotion_styles = p), - (y.__emotion_forwardProp = l), - Object.defineProperty(y, "toString", { - value: P(function () { - return "." + i; - }, "value"), - }), - (y.withComponent = function (x, v) { - var C = e(x, Be({}, r, v, { shouldForwardProp: Hf(y, v, !0) })); - return C.apply(void 0, p); - }), - y - ); - }; - }, "createStyled"), - ZD = [ - "a", - "abbr", - "address", - "area", - "article", - "aside", - "audio", - "b", - "base", - "bdi", - "bdo", - "big", - "blockquote", - "body", - "br", - "button", - "canvas", - "caption", - "cite", - "code", - "col", - "colgroup", - "data", - "datalist", - "dd", - "del", - "details", - "dfn", - "dialog", - "div", - "dl", - "dt", - "em", - "embed", - "fieldset", - "figcaption", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "head", - "header", - "hgroup", - "hr", - "html", - "i", - "iframe", - "img", - "input", - "ins", - "kbd", - "keygen", - "label", - "legend", - "li", - "link", - "main", - "map", - "mark", - "marquee", - "menu", - "menuitem", - "meta", - "meter", - "nav", - "noscript", - "object", - "ol", - "optgroup", - "option", - "output", - "p", - "param", - "picture", - "pre", - "progress", - "q", - "rp", - "rt", - "ruby", - "s", - "samp", - "script", - "section", - "select", - "small", - "source", - "span", - "strong", - "style", - "sub", - "summary", - "sup", - "table", - "tbody", - "td", - "textarea", - "tfoot", - "th", - "thead", - "time", - "title", - "tr", - "track", - "u", - "ul", - "var", - "video", - "wbr", - "circle", - "clipPath", - "defs", - "ellipse", - "foreignObject", - "g", - "image", - "line", - "linearGradient", - "mask", - "path", - "pattern", - "polygon", - "polyline", - "radialGradient", - "rect", - "stop", - "svg", - "text", - "tspan", - ], - T = XD.bind(null); -ZD.forEach(function (e) { - T[e] = T(e); -}); -function Hb(e) { - if (e === void 0) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called", - ); - return e; -} -P(Hb, "_assertThisInitialized"); -function qn(e, t) { - return ( - (qn = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function (r, n) { - return ((r.__proto__ = n), r); - }), - qn(e, t) - ); -} -P(qn, "_setPrototypeOf"); -function Ub(e, t) { - ((e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - qn(e, t)); -} -P(Ub, "_inheritsLoose"); -function di(e) { - return ( - (di = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function (t) { - return t.__proto__ || Object.getPrototypeOf(t); - }), - di(e) - ); -} -P(di, "_getPrototypeOf"); -function Wb(e) { - try { - return Function.toString.call(e).indexOf("[native code]") !== -1; - } catch { - return typeof e == "function"; - } -} -P(Wb, "_isNativeFunction"); -function ad() { - try { - var e = !Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}), - ); - } catch {} - return (ad = P(function () { - return !!e; - }, "_isNativeReflectConstruct"))(); -} -P(ad, "_isNativeReflectConstruct"); -function Vb(e, t, r) { - if (ad()) return Reflect.construct.apply(null, arguments); - var n = [null]; - n.push.apply(n, t); - var o = new (e.bind.apply(e, n))(); - return (r && qn(o, r.prototype), o); -} -P(Vb, "_construct"); -function pi(e) { - var t = typeof Map == "function" ? new Map() : void 0; - return ( - (pi = P(function (r) { - if (r === null || !Wb(r)) return r; - if (typeof r != "function") - throw new TypeError( - "Super expression must either be null or a function", - ); - if (t !== void 0) { - if (t.has(r)) return t.get(r); - t.set(r, n); - } - function n() { - return Vb(r, arguments, di(this).constructor); - } - return ( - P(n, "Wrapper"), - (n.prototype = Object.create(r.prototype, { - constructor: { - value: n, - enumerable: !1, - writable: !0, - configurable: !0, - }, - })), - qn(n, r) - ); - }, "_wrapNativeSuper")), - pi(e) - ); -} -P(pi, "_wrapNativeSuper"); -var JD = { - 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). - -`, - 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). - -`, - 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. - -`, - 4: `Couldn't generate valid rgb string from %s, it returned %s. - -`, - 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. - -`, - 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). - -`, - 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). - -`, - 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. - -`, - 9: `Please provide a number of steps to the modularScale helper. - -`, - 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`, - 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" - -`, - 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. - -`, - 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. - -`, - 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. - -`, - 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. - -`, - 16: `You must provide a template to this method. - -`, - 17: `You passed an unsupported selector state to this method. - -`, - 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. - -`, - 19: `fromSize and toSize must be provided as stringified numbers with the same units. - -`, - 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`, - 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - 23: `fontFace expects a name of a font-family. - -`, - 24: `fontFace expects either the path to the font file(s) or a name of a local copy. - -`, - 25: `fontFace expects localFonts to be an array. - -`, - 26: `fontFace expects fileFormats to be an array. - -`, - 27: `radialGradient requries at least 2 color-stops to properly render. - -`, - 28: `Please supply a filename to retinaImage() as the first argument. - -`, - 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`, - 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation - -`, - 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) -To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') - -`, - 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation - -`, - 34: `borderRadius expects a radius value as a string or number as the second argument. - -`, - 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`, - 36: `Property must be a string value. - -`, - 37: `Syntax Error at %s. - -`, - 38: `Formula contains a function that needs parentheses at %s. - -`, - 39: `Formula is missing closing parenthesis at %s. - -`, - 40: `Formula has too many closing parentheses at %s. - -`, - 41: `All values in a formula must have the same unit or be unitless. - -`, - 42: `Please provide a number of steps to the modularScale helper. - -`, - 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`, - 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. - -`, - 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. - -`, - 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. - -`, - 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. - -`, - 48: `fromSize and toSize must be provided as stringified numbers with the same units. - -`, - 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`, - 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. - -`, - 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. - -`, - 52: `fontFace expects either the path to the font file(s) or a name of a local copy. - -`, - 53: `fontFace expects localFonts to be an array. - -`, - 54: `fontFace expects fileFormats to be an array. - -`, - 55: `fontFace expects a name of a font-family. - -`, - 56: `linearGradient requries at least 2 color-stops to properly render. - -`, - 57: `radialGradient requries at least 2 color-stops to properly render. - -`, - 58: `Please supply a filename to retinaImage() as the first argument. - -`, - 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`, - 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - 61: `Property must be a string value. - -`, - 62: `borderRadius expects a radius value as a string or number as the second argument. - -`, - 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`, - 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. - -`, - 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). - -`, - 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. - -`, - 67: `You must provide a template to this method. - -`, - 68: `You passed an unsupported selector state to this method. - -`, - 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. - -`, - 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. - -`, - 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. - -`, - 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. - -`, - 73: `Please provide a valid CSS variable. - -`, - 74: `CSS variable not found and no default was provided. - -`, - 75: `important requires a valid style object, got a %s instead. - -`, - 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. - -`, - 77: `remToPx expects a value in "rem" but you provided it in "%s". - -`, - 78: `base must be set in "px" or "%" but you set it in "%s". -`, -}; -function qb() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - var n = t[0], - o = [], - a; - for (a = 1; a < t.length; a += 1) o.push(t[a]); - return ( - o.forEach(function (i) { - n = n.replace(/%[a-z]/, i); - }), - n - ); -} -P(qb, "format"); -var Ke = (function (e) { - Ub(t, e); - function t(r) { - for ( - var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; - i < o; - i++ - ) - a[i - 1] = arguments[i]; - return ( - (n = e.call(this, qb.apply(void 0, [JD[r]].concat(a))) || this), - Hb(n) - ); - } - return (P(t, "PolishedError"), t); -})(pi(Error)); -function uu(e, t) { - return e.substr(-t.length) === t; -} -P(uu, "endsWith"); -var QD = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; -function cu(e) { - if (typeof e != "string") return e; - var t = e.match(QD); - return t ? parseFloat(e) : e; -} -P(cu, "stripUnit"); -var e5 = P(function (e) { - return function (t, r) { - r === void 0 && (r = "16px"); - var n = t, - o = r; - if (typeof t == "string") { - if (!uu(t, "px")) throw new Ke(69, e, t); - n = cu(t); - } - if (typeof r == "string") { - if (!uu(r, "px")) throw new Ke(70, e, r); - o = cu(r); - } - if (typeof n == "string") throw new Ke(71, t, e); - if (typeof o == "string") throw new Ke(72, r, e); - return "" + n / o + e; - }; - }, "pxtoFactory"), - Gb = e5; -Gb("em"); -Gb("rem"); -function Na(e) { - return Math.round(e * 255); -} -P(Na, "colorToInt"); -function Yb(e, t, r) { - return Na(e) + "," + Na(t) + "," + Na(r); -} -P(Yb, "convertToInt"); -function Gn(e, t, r, n) { - if ((n === void 0 && (n = Yb), t === 0)) return n(r, r, r); - var o = (((e % 360) + 360) % 360) / 60, - a = (1 - Math.abs(2 * r - 1)) * t, - i = a * (1 - Math.abs((o % 2) - 1)), - l = 0, - s = 0, - u = 0; - o >= 0 && o < 1 - ? ((l = a), (s = i)) - : o >= 1 && o < 2 - ? ((l = i), (s = a)) - : o >= 2 && o < 3 - ? ((s = a), (u = i)) - : o >= 3 && o < 4 - ? ((s = i), (u = a)) - : o >= 4 && o < 5 - ? ((l = i), (u = a)) - : o >= 5 && o < 6 && ((l = a), (u = i)); - var d = r - a / 2, - p = l + d, - c = s + d, - f = u + d; - return n(p, c, f); -} -P(Gn, "hslToRgb"); -var Uf = { - aliceblue: "f0f8ff", - antiquewhite: "faebd7", - aqua: "00ffff", - aquamarine: "7fffd4", - azure: "f0ffff", - beige: "f5f5dc", - bisque: "ffe4c4", - black: "000", - blanchedalmond: "ffebcd", - blue: "0000ff", - blueviolet: "8a2be2", - brown: "a52a2a", - burlywood: "deb887", - cadetblue: "5f9ea0", - chartreuse: "7fff00", - chocolate: "d2691e", - coral: "ff7f50", - cornflowerblue: "6495ed", - cornsilk: "fff8dc", - crimson: "dc143c", - cyan: "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: "789", - lightslategrey: "789", - lightsteelblue: "b0c4de", - lightyellow: "ffffe0", - lime: "0f0", - limegreen: "32cd32", - linen: "faf0e6", - magenta: "f0f", - 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: "639", - red: "f00", - 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", - steelblue: "4682b4", - tan: "d2b48c", - teal: "008080", - thistle: "d8bfd8", - tomato: "ff6347", - turquoise: "40e0d0", - violet: "ee82ee", - wheat: "f5deb3", - white: "fff", - whitesmoke: "f5f5f5", - yellow: "ff0", - yellowgreen: "9acd32", -}; -function Kb(e) { - if (typeof e != "string") return e; - var t = e.toLowerCase(); - return Uf[t] ? "#" + Uf[t] : e; -} -P(Kb, "nameToHex"); -var t5 = /^#[a-fA-F0-9]{6}$/, - r5 = /^#[a-fA-F0-9]{8}$/, - n5 = /^#[a-fA-F0-9]{3}$/, - o5 = /^#[a-fA-F0-9]{4}$/, - Vl = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, - a5 = - /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, - i5 = - /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, - l5 = - /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; -function Zr(e) { - if (typeof e != "string") throw new Ke(3); - var t = Kb(e); - if (t.match(t5)) - return { - red: parseInt("" + t[1] + t[2], 16), - green: parseInt("" + t[3] + t[4], 16), - blue: parseInt("" + t[5] + t[6], 16), - }; - if (t.match(r5)) { - var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2)); - return { - red: parseInt("" + t[1] + t[2], 16), - green: parseInt("" + t[3] + t[4], 16), - blue: parseInt("" + t[5] + t[6], 16), - alpha: r, - }; - } - if (t.match(n5)) - return { - red: parseInt("" + t[1] + t[1], 16), - green: parseInt("" + t[2] + t[2], 16), - blue: parseInt("" + t[3] + t[3], 16), - }; - if (t.match(o5)) { - var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2)); - return { - red: parseInt("" + t[1] + t[1], 16), - green: parseInt("" + t[2] + t[2], 16), - blue: parseInt("" + t[3] + t[3], 16), - alpha: n, - }; - } - var o = Vl.exec(t); - if (o) - return { - red: parseInt("" + o[1], 10), - green: parseInt("" + o[2], 10), - blue: parseInt("" + o[3], 10), - }; - var a = a5.exec(t.substring(0, 50)); - if (a) - return { - red: parseInt("" + a[1], 10), - green: parseInt("" + a[2], 10), - blue: parseInt("" + a[3], 10), - alpha: - parseFloat("" + a[4]) > 1 - ? parseFloat("" + a[4]) / 100 - : parseFloat("" + a[4]), - }; - var i = i5.exec(t); - if (i) { - var l = parseInt("" + i[1], 10), - s = parseInt("" + i[2], 10) / 100, - u = parseInt("" + i[3], 10) / 100, - d = "rgb(" + Gn(l, s, u) + ")", - p = Vl.exec(d); - if (!p) throw new Ke(4, t, d); - return { - red: parseInt("" + p[1], 10), - green: parseInt("" + p[2], 10), - blue: parseInt("" + p[3], 10), - }; - } - var c = l5.exec(t.substring(0, 50)); - if (c) { - var f = parseInt("" + c[1], 10), - g = parseInt("" + c[2], 10) / 100, - y = parseInt("" + c[3], 10) / 100, - x = "rgb(" + Gn(f, g, y) + ")", - v = Vl.exec(x); - if (!v) throw new Ke(4, t, x); - return { - red: parseInt("" + v[1], 10), - green: parseInt("" + v[2], 10), - blue: parseInt("" + v[3], 10), - alpha: - parseFloat("" + c[4]) > 1 - ? parseFloat("" + c[4]) / 100 - : parseFloat("" + c[4]), - }; - } - throw new Ke(5); -} -P(Zr, "parseToRgb"); -function Xb(e) { - var t = e.red / 255, - r = e.green / 255, - n = e.blue / 255, - o = Math.max(t, r, n), - a = Math.min(t, r, n), - i = (o + a) / 2; - if (o === a) - return e.alpha !== void 0 - ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha } - : { hue: 0, saturation: 0, lightness: i }; - var l, - s = o - a, - u = i > 0.5 ? s / (2 - o - a) : s / (o + a); - switch (o) { - case t: - l = (r - n) / s + (r < n ? 6 : 0); - break; - case r: - l = (n - t) / s + 2; - break; - default: - l = (t - r) / s + 4; - break; - } - return ( - (l *= 60), - e.alpha !== void 0 - ? { hue: l, saturation: u, lightness: i, alpha: e.alpha } - : { hue: l, saturation: u, lightness: i } - ); -} -P(Xb, "rgbToHsl"); -function ar(e) { - return Xb(Zr(e)); -} -P(ar, "parseToHsl"); -var s5 = P(function (e) { - return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] - ? "#" + e[1] + e[3] + e[5] - : e; - }, "reduceHexValue"), - du = s5; -function br(e) { - var t = e.toString(16); - return t.length === 1 ? "0" + t : t; -} -P(br, "numberToHex"); -function ja(e) { - return br(Math.round(e * 255)); -} -P(ja, "colorToHex"); -function Zb(e, t, r) { - return du("#" + ja(e) + ja(t) + ja(r)); -} -P(Zb, "convertToHex"); -function Go(e, t, r) { - return Gn(e, t, r, Zb); -} -P(Go, "hslToHex"); -function Jb(e, t, r) { - if (typeof e == "number" && typeof t == "number" && typeof r == "number") - return Go(e, t, r); - if (typeof e == "object" && t === void 0 && r === void 0) - return Go(e.hue, e.saturation, e.lightness); - throw new Ke(1); -} -P(Jb, "hsl"); -function Qb(e, t, r, n) { - if ( - typeof e == "number" && - typeof t == "number" && - typeof r == "number" && - typeof n == "number" - ) - return n >= 1 ? Go(e, t, r) : "rgba(" + Gn(e, t, r) + "," + n + ")"; - if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) - return e.alpha >= 1 - ? Go(e.hue, e.saturation, e.lightness) - : "rgba(" + Gn(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; - throw new Ke(2); -} -P(Qb, "hsla"); -function fi(e, t, r) { - if (typeof e == "number" && typeof t == "number" && typeof r == "number") - return du("#" + br(e) + br(t) + br(r)); - if (typeof e == "object" && t === void 0 && r === void 0) - return du("#" + br(e.red) + br(e.green) + br(e.blue)); - throw new Ke(6); -} -P(fi, "rgb"); -function Jr(e, t, r, n) { - if (typeof e == "string" && typeof t == "number") { - var o = Zr(e); - return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")"; - } else { - if ( - typeof e == "number" && - typeof t == "number" && - typeof r == "number" && - typeof n == "number" - ) - return n >= 1 - ? fi(e, t, r) - : "rgba(" + e + "," + t + "," + r + "," + n + ")"; - if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) - return e.alpha >= 1 - ? fi(e.red, e.green, e.blue) - : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; - } - throw new Ke(7); -} -P(Jr, "rgba"); -var u5 = P(function (e) { - return ( - typeof e.red == "number" && - typeof e.green == "number" && - typeof e.blue == "number" && - (typeof e.alpha != "number" || typeof e.alpha > "u") - ); - }, "isRgb"), - c5 = P(function (e) { - return ( - typeof e.red == "number" && - typeof e.green == "number" && - typeof e.blue == "number" && - typeof e.alpha == "number" - ); - }, "isRgba"), - d5 = P(function (e) { - return ( - typeof e.hue == "number" && - typeof e.saturation == "number" && - typeof e.lightness == "number" && - (typeof e.alpha != "number" || typeof e.alpha > "u") - ); - }, "isHsl"), - p5 = P(function (e) { - return ( - typeof e.hue == "number" && - typeof e.saturation == "number" && - typeof e.lightness == "number" && - typeof e.alpha == "number" - ); - }, "isHsla"); -function ir(e) { - if (typeof e != "object") throw new Ke(8); - if (c5(e)) return Jr(e); - if (u5(e)) return fi(e); - if (p5(e)) return Qb(e); - if (d5(e)) return Jb(e); - throw new Ke(8); -} -P(ir, "toColorString"); -function id(e, t, r) { - return P(function () { - var n = r.concat(Array.prototype.slice.call(arguments)); - return n.length >= t ? e.apply(this, n) : id(e, t, n); - }, "fn"); -} -P(id, "curried"); -function tt(e) { - return id(e, e.length, []); -} -P(tt, "curry"); -function e1(e, t) { - if (t === "transparent") return t; - var r = ar(t); - return ir(Be({}, r, { hue: r.hue + parseFloat(e) })); -} -P(e1, "adjustHue"); -tt(e1); -function an(e, t, r) { - return Math.max(e, Math.min(t, r)); -} -P(an, "guard"); -function t1(e, t) { - if (t === "transparent") return t; - var r = ar(t); - return ir(Be({}, r, { lightness: an(0, 1, r.lightness - parseFloat(e)) })); -} -P(t1, "darken"); -var f5 = tt(t1), - g5 = f5; -function r1(e, t) { - if (t === "transparent") return t; - var r = ar(t); - return ir(Be({}, r, { saturation: an(0, 1, r.saturation - parseFloat(e)) })); -} -P(r1, "desaturate"); -tt(r1); -function n1(e, t) { - if (t === "transparent") return t; - var r = ar(t); - return ir(Be({}, r, { lightness: an(0, 1, r.lightness + parseFloat(e)) })); -} -P(n1, "lighten"); -var m5 = tt(n1), - h5 = m5; -function o1(e, t, r) { - if (t === "transparent") return r; - if (r === "transparent") return t; - if (e === 0) return r; - var n = Zr(t), - o = Be({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }), - a = Zr(r), - i = Be({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), - l = o.alpha - i.alpha, - s = parseFloat(e) * 2 - 1, - u = s * l === -1 ? s : s + l, - d = 1 + s * l, - p = (u / d + 1) / 2, - c = 1 - p, - f = { - red: Math.floor(o.red * p + i.red * c), - green: Math.floor(o.green * p + i.green * c), - blue: Math.floor(o.blue * p + i.blue * c), - alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), - }; - return Jr(f); -} -P(o1, "mix"); -var y5 = tt(o1), - a1 = y5; -function i1(e, t) { - if (t === "transparent") return t; - var r = Zr(t), - n = typeof r.alpha == "number" ? r.alpha : 1, - o = Be({}, r, { alpha: an(0, 1, (n * 100 + parseFloat(e) * 100) / 100) }); - return Jr(o); -} -P(i1, "opacify"); -var b5 = tt(i1), - v5 = b5; -function l1(e, t) { - if (t === "transparent") return t; - var r = ar(t); - return ir(Be({}, r, { saturation: an(0, 1, r.saturation + parseFloat(e)) })); -} -P(l1, "saturate"); -tt(l1); -function s1(e, t) { - return t === "transparent" ? t : ir(Be({}, ar(t), { hue: parseFloat(e) })); -} -P(s1, "setHue"); -tt(s1); -function u1(e, t) { - return t === "transparent" - ? t - : ir(Be({}, ar(t), { lightness: parseFloat(e) })); -} -P(u1, "setLightness"); -tt(u1); -function c1(e, t) { - return t === "transparent" - ? t - : ir(Be({}, ar(t), { saturation: parseFloat(e) })); -} -P(c1, "setSaturation"); -tt(c1); -function d1(e, t) { - return t === "transparent" ? t : a1(parseFloat(e), "rgb(0, 0, 0)", t); -} -P(d1, "shade"); -tt(d1); -function p1(e, t) { - return t === "transparent" ? t : a1(parseFloat(e), "rgb(255, 255, 255)", t); -} -P(p1, "tint"); -tt(p1); -function f1(e, t) { - if (t === "transparent") return t; - var r = Zr(t), - n = typeof r.alpha == "number" ? r.alpha : 1, - o = Be({}, r, { - alpha: an(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100), - }); - return Jr(o); -} -P(f1, "transparentize"); -var x5 = tt(f1), - E5 = x5, - K = { - secondary: "#029CFD", - tertiary: "#FAFBFC", - ancillary: "#22a699", - orange: "#FC521F", - gold: "#FFAE00", - green: "#66BF3C", - seafoam: "#37D5D3", - purple: "#6F2CAC", - ultraviolet: "#2A0481", - lightest: "#FFFFFF", - lighter: "#F7FAFC", - light: "#EEF3F6", - mediumlight: "#ECF4F9", - medium: "#D9E8F2", - mediumdark: "#73828C", - dark: "#5C6870", - darker: "#454E54", - darkest: "#2E3438", - border: "hsla(203, 50%, 30%, 0.15)", - positive: "#66BF3C", - negative: "#FF4400", - warning: "#E69D00", - critical: "#FFFFFF", - positiveText: "#448028", - negativeText: "#D43900", - warningText: "#A15C20", - }, - vr = { - app: "#F6F9FC", - gridCellSize: 10, - hoverable: E5(0.9, K.secondary), - positive: "#E1FFD4", - negative: "#FEDED2", - warning: "#FFF5CF", - critical: "#FF4400", - }, - zt = { - fonts: { - base: [ - '"Nunito Sans"', - "-apple-system", - '".SFNSText-Regular"', - '"San Francisco"', - "BlinkMacSystemFont", - '"Segoe UI"', - '"Helvetica Neue"', - "Helvetica", - "Arial", - "sans-serif", - ].join(", "), - mono: [ - "ui-monospace", - "Menlo", - "Monaco", - '"Roboto Mono"', - '"Oxygen Mono"', - '"Ubuntu Monospace"', - '"Source Code Pro"', - '"Droid Sans Mono"', - '"Courier New"', - "monospace", - ].join(", "), - }, - weight: { regular: 400, bold: 700 }, - size: { - s1: 12, - s2: 14, - s3: 16, - m1: 20, - m2: 24, - m3: 28, - l1: 32, - l2: 40, - l3: 48, - code: 90, - }, - }, - g1 = Yc(hD(), 1), - w5 = (0, g1.default)(1)(({ typography: e }) => ({ - body: { - fontFamily: e.fonts.base, - fontSize: e.size.s3, - margin: 0, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", - WebkitOverflowScrolling: "touch", - }, - "*": { boxSizing: "border-box" }, - "h1, h2, h3, h4, h5, h6": { - fontWeight: e.weight.regular, - margin: 0, - padding: 0, - }, - "button, input, textarea, select": { - fontFamily: "inherit", - fontSize: "inherit", - boxSizing: "border-box", - }, - sub: { fontSize: "0.8em", bottom: "-0.2em" }, - sup: { fontSize: "0.8em", top: "-0.2em" }, - "b, strong": { fontWeight: e.weight.bold }, - hr: { - border: "none", - borderTop: "1px solid silver", - clear: "both", - marginBottom: "1.25rem", - }, - code: { - fontFamily: e.fonts.mono, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - display: "inline-block", - paddingLeft: 2, - paddingRight: 2, - verticalAlign: "baseline", - color: "inherit", - }, - pre: { - fontFamily: e.fonts.mono, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - lineHeight: "18px", - padding: "11px 1rem", - whiteSpace: "pre-wrap", - color: "inherit", - borderRadius: 3, - margin: "1rem 0", - }, - })); -(0, g1.default)(1)(({ color: e, background: t, typography: r }) => { - let n = w5({ typography: r }); - return { - ...n, - body: { - ...n.body, - color: e.defaultText, - background: t.app, - overflow: "hidden", - }, - hr: { ...n.hr, borderTop: `1px solid ${e.border}` }, - ".sb-sr-only, .sb-hidden-until-focus:not(:focus)": { - position: "absolute", - width: 1, - height: 1, - padding: 0, - margin: -1, - overflow: "hidden", - clip: "rect(0, 0, 0, 0)", - border: 0, - }, - ".sb-hidden-until-focus": { - opacity: 0, - transition: "opacity 150ms ease-out", - }, - ".sb-hidden-until-focus:focus": { opacity: 1 }, - }; -}); -var S5 = { - base: "dark", - colorPrimary: "#FF4785", - colorSecondary: "#029CFD", - appBg: "#222425", - appContentBg: "#1B1C1D", - appPreviewBg: K.lightest, - appBorderColor: "rgba(255,255,255,.1)", - appBorderRadius: 4, - fontBase: zt.fonts.base, - fontCode: zt.fonts.mono, - textColor: "#C9CDCF", - textInverseColor: "#222425", - textMutedColor: "#798186", - barTextColor: K.mediumdark, - barHoverColor: K.secondary, - barSelectedColor: K.secondary, - barBg: "#292C2E", - buttonBg: "#222425", - buttonBorder: "rgba(255,255,255,.1)", - booleanBg: "#222425", - booleanSelectedBg: "#2E3438", - inputBg: "#1B1C1D", - inputBorder: "rgba(255,255,255,.1)", - inputTextColor: K.lightest, - inputBorderRadius: 4, - }, - C5 = S5, - $5 = { - base: "light", - colorPrimary: "#FF4785", - colorSecondary: "#029CFD", - appBg: vr.app, - appContentBg: K.lightest, - appPreviewBg: K.lightest, - appBorderColor: K.border, - appBorderRadius: 4, - fontBase: zt.fonts.base, - fontCode: zt.fonts.mono, - textColor: K.darkest, - textInverseColor: K.lightest, - textMutedColor: K.dark, - barTextColor: K.mediumdark, - barHoverColor: K.secondary, - barSelectedColor: K.secondary, - barBg: K.lightest, - buttonBg: vr.app, - buttonBorder: K.medium, - booleanBg: K.mediumlight, - booleanSelectedBg: K.lightest, - inputBg: K.lightest, - inputBorder: K.border, - inputTextColor: K.darkest, - inputBorderRadius: 4, - }, - gi = $5; -const { logger: A5 } = __STORYBOOK_MODULE_CLIENT_LOGGER__, - { global: D5 } = __STORYBOOK_MODULE_GLOBAL__; -var { window: ql } = D5, - k5 = P((e) => ({ color: e }), "mkColor"), - O5 = P( - (e) => - typeof e != "string" - ? (A5.warn( - `Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`, - ), - !1) - : !0, - "isColorString", - ), - F5 = P((e) => !/(gradient|var|calc)/.test(e), "isValidColorForPolished"), - _5 = P( - (e, t) => - e === "darken" - ? Jr(`${g5(1, t)}`, 0.95) - : e === "lighten" - ? Jr(`${h5(1, t)}`, 0.95) - : t, - "applyPolished", - ), - m1 = P( - (e) => (t) => { - if (!O5(t) || !F5(t)) return t; - try { - return _5(e, t); - } catch { - return t; - } - }, - "colorFactory", - ), - wn = m1("lighten"); -m1("darken"); -var h1 = P( - () => - !ql || !ql.matchMedia - ? "light" - : ql.matchMedia("(prefers-color-scheme: dark)").matches - ? "dark" - : "light", - "getPreferredColorScheme", - ), - pu = { light: gi, dark: C5, normal: gi }; -h1(); -var T5 = { rubber: "cubic-bezier(0.175, 0.885, 0.335, 1.05)" }, - R5 = _t` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`, - y1 = _t` - 0%, 100% { opacity: 1; } - 50% { opacity: .4; } -`, - P5 = _t` - 0% { transform: translateY(1px); } - 25% { transform: translateY(0px); } - 50% { transform: translateY(-3px); } - 100% { transform: translateY(1px); } -`, - I5 = _t` - 0%, 100% { transform:translate3d(0,0,0); } - 12.5%, 62.5% { transform:translate3d(-4px,0,0); } - 37.5%, 87.5% { transform: translate3d(4px,0,0); } -`, - L5 = Ji` - animation: ${y1} 1.5s ease-in-out infinite; - color: transparent; - cursor: progress; -`, - B5 = Ji` - transition: all 150ms ease-out; - transform: translate3d(0, 0, 0); - - &:hover { - transform: translate3d(0, -2px, 0); - } - - &:active { - transform: translate3d(0, 0, 0); - } -`, - N5 = { - rotate360: R5, - glow: y1, - float: P5, - jiggle: I5, - inlineGlow: L5, - hoverable: B5, - }, - j5 = { - BASE_FONT_FAMILY: "Menlo, monospace", - BASE_FONT_SIZE: "11px", - BASE_LINE_HEIGHT: 1.2, - BASE_BACKGROUND_COLOR: "rgb(36, 36, 36)", - BASE_COLOR: "rgb(213, 213, 213)", - OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, - OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, - OBJECT_NAME_COLOR: "rgb(227, 110, 236)", - OBJECT_VALUE_NULL_COLOR: "rgb(127, 127, 127)", - OBJECT_VALUE_UNDEFINED_COLOR: "rgb(127, 127, 127)", - OBJECT_VALUE_REGEXP_COLOR: "rgb(233, 63, 59)", - OBJECT_VALUE_STRING_COLOR: "rgb(233, 63, 59)", - OBJECT_VALUE_SYMBOL_COLOR: "rgb(233, 63, 59)", - OBJECT_VALUE_NUMBER_COLOR: "hsl(252, 100%, 75%)", - OBJECT_VALUE_BOOLEAN_COLOR: "hsl(252, 100%, 75%)", - OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(85, 106, 242)", - HTML_TAG_COLOR: "rgb(93, 176, 215)", - HTML_TAGNAME_COLOR: "rgb(93, 176, 215)", - HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", - HTML_ATTRIBUTE_NAME_COLOR: "rgb(155, 187, 220)", - HTML_ATTRIBUTE_VALUE_COLOR: "rgb(242, 151, 102)", - HTML_COMMENT_COLOR: "rgb(137, 137, 137)", - HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", - ARROW_COLOR: "rgb(145, 145, 145)", - ARROW_MARGIN_RIGHT: 3, - ARROW_FONT_SIZE: 12, - ARROW_ANIMATION_DURATION: "0", - TREENODE_FONT_FAMILY: "Menlo, monospace", - TREENODE_FONT_SIZE: "11px", - TREENODE_LINE_HEIGHT: 1.2, - TREENODE_PADDING_LEFT: 12, - TABLE_BORDER_COLOR: "rgb(85, 85, 85)", - TABLE_TH_BACKGROUND_COLOR: "rgb(44, 44, 44)", - TABLE_TH_HOVER_COLOR: "rgb(48, 48, 48)", - TABLE_SORT_ICON_COLOR: "black", - TABLE_DATA_BACKGROUND_IMAGE: - "linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))", - TABLE_DATA_BACKGROUND_SIZE: "128px 32px", - }, - M5 = { - BASE_FONT_FAMILY: "Menlo, monospace", - BASE_FONT_SIZE: "11px", - BASE_LINE_HEIGHT: 1.2, - BASE_BACKGROUND_COLOR: "white", - BASE_COLOR: "black", - OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES: 10, - OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES: 5, - OBJECT_NAME_COLOR: "rgb(136, 19, 145)", - OBJECT_VALUE_NULL_COLOR: "rgb(128, 128, 128)", - OBJECT_VALUE_UNDEFINED_COLOR: "rgb(128, 128, 128)", - OBJECT_VALUE_REGEXP_COLOR: "rgb(196, 26, 22)", - OBJECT_VALUE_STRING_COLOR: "rgb(196, 26, 22)", - OBJECT_VALUE_SYMBOL_COLOR: "rgb(196, 26, 22)", - OBJECT_VALUE_NUMBER_COLOR: "rgb(28, 0, 207)", - OBJECT_VALUE_BOOLEAN_COLOR: "rgb(28, 0, 207)", - OBJECT_VALUE_FUNCTION_PREFIX_COLOR: "rgb(13, 34, 170)", - HTML_TAG_COLOR: "rgb(168, 148, 166)", - HTML_TAGNAME_COLOR: "rgb(136, 18, 128)", - HTML_TAGNAME_TEXT_TRANSFORM: "lowercase", - HTML_ATTRIBUTE_NAME_COLOR: "rgb(153, 69, 0)", - HTML_ATTRIBUTE_VALUE_COLOR: "rgb(26, 26, 166)", - HTML_COMMENT_COLOR: "rgb(35, 110, 37)", - HTML_DOCTYPE_COLOR: "rgb(192, 192, 192)", - ARROW_COLOR: "#6e6e6e", - ARROW_MARGIN_RIGHT: 3, - ARROW_FONT_SIZE: 12, - ARROW_ANIMATION_DURATION: "0", - TREENODE_FONT_FAMILY: "Menlo, monospace", - TREENODE_FONT_SIZE: "11px", - TREENODE_LINE_HEIGHT: 1.2, - TREENODE_PADDING_LEFT: 12, - TABLE_BORDER_COLOR: "#aaa", - TABLE_TH_BACKGROUND_COLOR: "#eee", - TABLE_TH_HOVER_COLOR: "hsla(0, 0%, 90%, 1)", - TABLE_SORT_ICON_COLOR: "#6e6e6e", - TABLE_DATA_BACKGROUND_IMAGE: - "linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))", - TABLE_DATA_BACKGROUND_SIZE: "128px 32px", - }, - z5 = P( - (e) => Object.entries(e).reduce((t, [r, n]) => ({ ...t, [r]: k5(n) }), {}), - "convertColors", - ), - H5 = P(({ colors: e, mono: t }) => { - let r = z5(e); - return { - token: { - fontFamily: t, - WebkitFontSmoothing: "antialiased", - "&.tag": r.red3, - "&.comment": { ...r.green1, fontStyle: "italic" }, - "&.prolog": { ...r.green1, fontStyle: "italic" }, - "&.doctype": { ...r.green1, fontStyle: "italic" }, - "&.cdata": { ...r.green1, fontStyle: "italic" }, - "&.string": r.red1, - "&.url": r.cyan1, - "&.symbol": r.cyan1, - "&.number": r.cyan1, - "&.boolean": r.cyan1, - "&.variable": r.cyan1, - "&.constant": r.cyan1, - "&.inserted": r.cyan1, - "&.atrule": r.blue1, - "&.keyword": r.blue1, - "&.attr-value": r.blue1, - "&.punctuation": r.gray1, - "&.operator": r.gray1, - "&.function": r.gray1, - "&.deleted": r.red2, - "&.important": { fontWeight: "bold" }, - "&.bold": { fontWeight: "bold" }, - "&.italic": { fontStyle: "italic" }, - "&.class-name": r.cyan2, - "&.selector": r.red3, - "&.attr-name": r.red4, - "&.property": r.red4, - "&.regex": r.red4, - "&.entity": r.red4, - "&.directive.tag .tag": { background: "#ffff00", ...r.gray1 }, - }, - "language-json .token.boolean": r.blue1, - "language-json .token.number": r.blue1, - "language-json .token.property": r.cyan2, - namespace: { opacity: 0.7 }, - }; - }, "create"), - U5 = { - green1: "#008000", - red1: "#A31515", - red2: "#9a050f", - red3: "#800000", - red4: "#ff0000", - gray1: "#393A34", - cyan1: "#36acaa", - cyan2: "#2B91AF", - blue1: "#0000ff", - blue2: "#00009f", - }, - W5 = { - green1: "#7C7C7C", - red1: "#92C379", - red2: "#9a050f", - red3: "#A8FF60", - red4: "#96CBFE", - gray1: "#EDEDED", - cyan1: "#C6C5FE", - cyan2: "#FFFFB6", - blue1: "#B474DD", - blue2: "#00009f", - }, - V5 = P( - (e) => ({ - primary: e.colorPrimary, - secondary: e.colorSecondary, - tertiary: K.tertiary, - ancillary: K.ancillary, - orange: K.orange, - gold: K.gold, - green: K.green, - seafoam: K.seafoam, - purple: K.purple, - ultraviolet: K.ultraviolet, - lightest: K.lightest, - lighter: K.lighter, - light: K.light, - mediumlight: K.mediumlight, - medium: K.medium, - mediumdark: K.mediumdark, - dark: K.dark, - darker: K.darker, - darkest: K.darkest, - border: K.border, - positive: K.positive, - negative: K.negative, - warning: K.warning, - critical: K.critical, - defaultText: e.textColor || K.darkest, - inverseText: e.textInverseColor || K.lightest, - positiveText: K.positiveText, - negativeText: K.negativeText, - warningText: K.warningText, - }), - "createColors", - ), - fu = P((e = pu[h1()]) => { - let { - base: t, - colorPrimary: r, - colorSecondary: n, - appBg: o, - appContentBg: a, - appPreviewBg: i, - appBorderColor: l, - appBorderRadius: s, - fontBase: u, - fontCode: d, - textColor: p, - textInverseColor: c, - barTextColor: f, - barHoverColor: g, - barSelectedColor: y, - barBg: x, - buttonBg: v, - buttonBorder: C, - booleanBg: w, - booleanSelectedBg: E, - inputBg: $, - inputBorder: A, - inputTextColor: S, - inputBorderRadius: D, - brandTitle: F, - brandUrl: k, - brandImage: _, - brandTarget: I, - gridCellSize: L, - ...j - } = e; - return { - ...j, - base: t, - color: V5(e), - background: { - app: o, - bar: x, - content: a, - preview: i, - gridCellSize: L || vr.gridCellSize, - hoverable: vr.hoverable, - positive: vr.positive, - negative: vr.negative, - warning: vr.warning, - critical: vr.critical, - }, - typography: { - fonts: { base: u, mono: d }, - weight: zt.weight, - size: zt.size, - }, - animation: N5, - easing: T5, - input: { background: $, border: A, borderRadius: D, color: S }, - button: { background: v || $, border: C || A }, - boolean: { background: w || A, selectedBackground: E || $ }, - layoutMargin: 10, - appBorderColor: l, - appBorderRadius: s, - barTextColor: f, - barHoverColor: g || n, - barSelectedColor: y || n, - barBg: x, - brand: { title: F, url: k, image: _ || (F ? null : void 0), target: I }, - code: H5({ colors: t === "light" ? U5 : W5, mono: d }), - addonActionsTheme: { - ...(t === "light" ? M5 : j5), - BASE_FONT_FAMILY: d, - BASE_FONT_SIZE: zt.size.s2 - 1, - BASE_LINE_HEIGHT: "18px", - BASE_BACKGROUND_COLOR: "transparent", - BASE_COLOR: p, - ARROW_COLOR: v5(0.2, l), - ARROW_MARGIN_RIGHT: 4, - ARROW_FONT_SIZE: 8, - TREENODE_FONT_FAMILY: d, - TREENODE_FONT_SIZE: zt.size.s2 - 1, - TREENODE_LINE_HEIGHT: "18px", - TREENODE_PADDING_LEFT: 12, - }, - }; - }, "convert"); -const { logger: q5 } = __STORYBOOK_MODULE_CLIENT_LOGGER__; -var G5 = P((e) => Object.keys(e).length === 0, "isEmpty"), - Gl = P((e) => e != null && typeof e == "object", "isObject"), - Y5 = P( - (e, ...t) => Object.prototype.hasOwnProperty.call(e, ...t), - "hasOwnProperty", - ), - K5 = P(() => Object.create(null), "makeObjectWithoutPrototype"), - b1 = P( - (e, t) => - e === t || !Gl(e) || !Gl(t) - ? {} - : Object.keys(e).reduce((r, n) => { - if (Y5(t, n)) { - let o = b1(e[n], t[n]); - return ((Gl(o) && G5(o)) || (r[n] = o), r); - } - return ((r[n] = void 0), r); - }, K5()), - "deletedDiff", - ), - X5 = b1; -function v1(e) { - for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; - var n = Array.from(typeof e == "string" ? [e] : e); - n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); - var o = n.reduce(function (l, s) { - var u = s.match(/\n([\t ]+|(?!\s).)/g); - return u - ? l.concat( - u.map(function (d) { - var p, c; - return (c = - (p = d.match(/[\t ]/g)) === null || p === void 0 - ? void 0 - : p.length) !== null && c !== void 0 - ? c - : 0; - }), - ) - : l; - }, []); - if (o.length) { - var a = new RegExp( - ` -[ ]{` + - Math.min.apply(Math, o) + - "}", - "g", - ); - n = n.map(function (l) { - return l.replace( - a, - ` -`, - ); - }); - } - n[0] = n[0].replace(/^\r?\n/, ""); - var i = n[0]; - return ( - t.forEach(function (l, s) { - var u = i.match(/(?:^|\n)( *)$/), - d = u ? u[1] : "", - p = l; - (typeof l == "string" && - l.includes(` -`) && - (p = String(l) - .split( - ` -`, - ) - .map(function (c, f) { - return f === 0 ? c : "" + d + c; - }).join(` -`)), - (i += p + n[s + 1])); - }), - i - ); -} -P(v1, "dedent"); -var Z5 = P((e) => { - if (!e) return fu(gi); - let t = X5(gi, e); - return ( - Object.keys(t).length && - q5.warn( - v1` - Your theme is missing properties, you should update your theme! - - theme-data missing: - `, - t, - ), - fu(e) - ); - }, "ensure"), - gu = - "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", - Qi = P2(); -const x1 = R2(Qi); -var J5 = Object.create, - el = Object.defineProperty, - Q5 = Object.getOwnPropertyDescriptor, - ek = Object.getOwnPropertyNames, - tk = Object.getPrototypeOf, - rk = Object.prototype.hasOwnProperty, - m = (e, t) => el(e, "name", { value: t, configurable: !0 }), - va = ((e) => - typeof require < "u" - ? require - : typeof Proxy < "u" - ? new Proxy(e, { - get: (t, r) => (typeof require < "u" ? require : t)[r], - }) - : e)(function (e) { - if (typeof require < "u") return require.apply(this, arguments); - throw Error('Dynamic require of "' + e + '" is not supported'); - }), - N = (e, t) => () => (e && (t = e((e = 0))), t), - te = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), - na = (e, t) => { - for (var r in t) el(e, r, { get: t[r], enumerable: !0 }); - }, - nk = (e, t, r, n) => { - if ((t && typeof t == "object") || typeof t == "function") - for (let o of ek(t)) - !rk.call(e, o) && - o !== r && - el(e, o, { - get: () => t[o], - enumerable: !(n = Q5(t, o)) || n.enumerable, - }); - return e; - }, - je = (e, t, r) => ( - (r = e != null ? J5(tk(e)) : {}), - nk( - t || !e || !e.__esModule - ? el(r, "default", { value: e, enumerable: !0 }) - : r, - e, - ) - ); -function xe() { - return ( - (xe = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t]; - for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); - } - return e; - }), - xe.apply(null, arguments) - ); -} -var tl = N(() => { - m(xe, "_extends"); -}); -function E1(e) { - if (e === void 0) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called", - ); - return e; -} -var ok = N(() => { - m(E1, "_assertThisInitialized"); -}); -function Yn(e, t) { - return ( - (Yn = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function (r, n) { - return ((r.__proto__ = n), r); - }), - Yn(e, t) - ); -} -var ld = N(() => { - m(Yn, "_setPrototypeOf"); -}); -function mi(e) { - return ( - (mi = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function (t) { - return t.__proto__ || Object.getPrototypeOf(t); - }), - mi(e) - ); -} -var ak = N(() => { - m(mi, "_getPrototypeOf"); - }), - rl = te((e, t) => { - (function (r) { - if (typeof e == "object" && typeof t < "u") t.exports = r(); - else if (typeof define == "function" && define.amd) define([], r); - else { - var n; - (typeof window < "u" - ? (n = window) - : typeof global < "u" - ? (n = global) - : typeof self < "u" - ? (n = self) - : (n = this), - (n.memoizerific = r())); - } - })(function () { - return m(function r(n, o, a) { - function i(u, d) { - if (!o[u]) { - if (!n[u]) { - var p = typeof va == "function" && va; - if (!d && p) return p(u, !0); - if (l) return l(u, !0); - var c = new Error("Cannot find module '" + u + "'"); - throw ((c.code = "MODULE_NOT_FOUND"), c); - } - var f = (o[u] = { exports: {} }); - n[u][0].call( - f.exports, - function (g) { - var y = n[u][1][g]; - return i(y || g); - }, - f, - f.exports, - r, - n, - o, - a, - ); - } - return o[u].exports; - } - m(i, "s"); - for (var l = typeof va == "function" && va, s = 0; s < a.length; s++) - i(a[s]); - return i; - }, "e")( - { - 1: [ - function (r, n, o) { - n.exports = function (a) { - if (typeof Map != "function" || a) { - var i = r("./similar"); - return new i(); - } else return new Map(); - }; - }, - { "./similar": 2 }, - ], - 2: [ - function (r, n, o) { - function a() { - return ( - (this.list = []), - (this.lastItem = void 0), - (this.size = 0), - this - ); - } - (m(a, "Similar"), - (a.prototype.get = function (i) { - var l; - if (this.lastItem && this.isEqual(this.lastItem.key, i)) - return this.lastItem.val; - if (((l = this.indexOf(i)), l >= 0)) - return ((this.lastItem = this.list[l]), this.list[l].val); - }), - (a.prototype.set = function (i, l) { - var s; - return this.lastItem && this.isEqual(this.lastItem.key, i) - ? ((this.lastItem.val = l), this) - : ((s = this.indexOf(i)), - s >= 0 - ? ((this.lastItem = this.list[s]), - (this.list[s].val = l), - this) - : ((this.lastItem = { key: i, val: l }), - this.list.push(this.lastItem), - this.size++, - this)); - }), - (a.prototype.delete = function (i) { - var l; - if ( - (this.lastItem && - this.isEqual(this.lastItem.key, i) && - (this.lastItem = void 0), - (l = this.indexOf(i)), - l >= 0) - ) - return (this.size--, this.list.splice(l, 1)[0]); - }), - (a.prototype.has = function (i) { - var l; - return this.lastItem && this.isEqual(this.lastItem.key, i) - ? !0 - : ((l = this.indexOf(i)), - l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1); - }), - (a.prototype.forEach = function (i, l) { - var s; - for (s = 0; s < this.size; s++) - i.call(l || this, this.list[s].val, this.list[s].key, this); - }), - (a.prototype.indexOf = function (i) { - var l; - for (l = 0; l < this.size; l++) - if (this.isEqual(this.list[l].key, i)) return l; - return -1; - }), - (a.prototype.isEqual = function (i, l) { - return i === l || (i !== i && l !== l); - }), - (n.exports = a)); - }, - {}, - ], - 3: [ - function (r, n, o) { - var a = r("map-or-similar"); - n.exports = function (u) { - var d = new a(!1), - p = []; - return function (c) { - var f = m(function () { - var g = d, - y, - x, - v = arguments.length - 1, - C = Array(v + 1), - w = !0, - E; - if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1) - throw new Error( - "Memoizerific functions should always be called with the same number of arguments", - ); - for (E = 0; E < v; E++) { - if ( - ((C[E] = { cacheItem: g, arg: arguments[E] }), - g.has(arguments[E])) - ) { - g = g.get(arguments[E]); - continue; - } - ((w = !1), - (y = new a(!1)), - g.set(arguments[E], y), - (g = y)); - } - return ( - w && - (g.has(arguments[v]) - ? (x = g.get(arguments[v])) - : (w = !1)), - w || - ((x = c.apply(null, arguments)), - g.set(arguments[v], x)), - u > 0 && - ((C[v] = { cacheItem: g, arg: arguments[v] }), - w ? i(p, C) : p.push(C), - p.length > u && l(p.shift())), - (f.wasMemoized = w), - (f.numArgs = v + 1), - x - ); - }, "memoizerific"); - return ( - (f.limit = u), - (f.wasMemoized = !1), - (f.cache = d), - (f.lru = p), - f - ); - }; - }; - function i(u, d) { - var p = u.length, - c = d.length, - f, - g, - y; - for (g = 0; g < p; g++) { - for (f = !0, y = 0; y < c; y++) - if (!s(u[g][y].arg, d[y].arg)) { - f = !1; - break; - } - if (f) break; - } - u.push(u.splice(g, 1)[0]); - } - m(i, "moveToMostRecentLru"); - function l(u) { - var d = u.length, - p = u[d - 1], - c, - f; - for ( - p.cacheItem.delete(p.arg), f = d - 2; - f >= 0 && - ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size); - f-- - ) - p.cacheItem.delete(p.arg); - } - m(l, "removeCachedResult"); - function s(u, d) { - return u === d || (u !== u && d !== d); - } - m(s, "isEqual"); - }, - { "map-or-similar": 1 }, - ], - }, - {}, - [3], - )(3); - }); - }); -function nl(e, t) { - if (e == null) return {}; - var r = {}; - for (var n in e) - if ({}.hasOwnProperty.call(e, n)) { - if (t.indexOf(n) !== -1) continue; - r[n] = e[n]; - } - return r; -} -var sd = N(() => { - m(nl, "_objectWithoutPropertiesLoose"); -}); -function w1(e, t) { - if (e == null) return {}; - var r, - n, - o = nl(e, t); - if (Object.getOwnPropertySymbols) { - var a = Object.getOwnPropertySymbols(e); - for (n = 0; n < a.length; n++) - ((r = a[n]), - t.indexOf(r) === -1 && - {}.propertyIsEnumerable.call(e, r) && - (o[r] = e[r])); - } - return o; -} -var ik = N(() => { - (sd(), m(w1, "_objectWithoutProperties")); -}); -function hi(e, t) { - (t == null || t > e.length) && (t = e.length); - for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r]; - return n; -} -var S1 = N(() => { - m(hi, "_arrayLikeToArray"); -}); -function C1(e) { - if (Array.isArray(e)) return hi(e); -} -var lk = N(() => { - (S1(), m(C1, "_arrayWithoutHoles")); -}); -function $1(e) { - if ( - (typeof Symbol < "u" && e[Symbol.iterator] != null) || - e["@@iterator"] != null - ) - return Array.from(e); -} -var sk = N(() => { - m($1, "_iterableToArray"); -}); -function A1(e, t) { - if (e) { - if (typeof e == "string") return hi(e, t); - var r = {}.toString.call(e).slice(8, -1); - return ( - r === "Object" && e.constructor && (r = e.constructor.name), - r === "Map" || r === "Set" - ? Array.from(e) - : r === "Arguments" || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) - ? hi(e, t) - : void 0 - ); - } -} -var uk = N(() => { - (S1(), m(A1, "_unsupportedIterableToArray")); -}); -function D1() { - throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); -} -var ck = N(() => { - m(D1, "_nonIterableSpread"); -}); -function yi(e) { - return C1(e) || $1(e) || A1(e) || D1(); -} -var dk = N(() => { - (lk(), sk(), uk(), ck(), m(yi, "_toConsumableArray")); -}); -function Kn(e) { - "@babel/helpers - typeof"; - return ( - (Kn = - typeof Symbol == "function" && typeof Symbol.iterator == "symbol" - ? function (t) { - return typeof t; - } - : function (t) { - return t && - typeof Symbol == "function" && - t.constructor === Symbol && - t !== Symbol.prototype - ? "symbol" - : typeof t; - }), - Kn(e) - ); -} -var k1 = N(() => { - m(Kn, "_typeof"); -}); -function O1(e, t) { - if (Kn(e) != "object" || !e) return e; - var r = e[Symbol.toPrimitive]; - if (r !== void 0) { - var n = r.call(e, t || "default"); - if (Kn(n) != "object") return n; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (t === "string" ? String : Number)(e); -} -var pk = N(() => { - (k1(), m(O1, "toPrimitive")); -}); -function F1(e) { - var t = O1(e, "string"); - return Kn(t) == "symbol" ? t : t + ""; -} -var fk = N(() => { - (k1(), pk(), m(F1, "toPropertyKey")); -}); -function ud(e, t, r) { - return ( - (t = F1(t)) in e - ? Object.defineProperty(e, t, { - value: r, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (e[t] = r), - e - ); -} -var _1 = N(() => { - (fk(), m(ud, "_defineProperty")); -}); -function mu(e, t) { - var r = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(e); - (t && - (n = n.filter(function (o) { - return Object.getOwnPropertyDescriptor(e, o).enumerable; - })), - r.push.apply(r, n)); - } - return r; -} -function qr(e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t] != null ? arguments[t] : {}; - t % 2 - ? mu(Object(r), !0).forEach(function (n) { - ud(e, n, r[n]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) - : mu(Object(r)).forEach(function (n) { - Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); - }); - } - return e; -} -function T1(e) { - var t = e.length; - if (t === 0 || t === 1) return e; - if (t === 2) - return [ - e[0], - e[1], - "".concat(e[0], ".").concat(e[1]), - "".concat(e[1], ".").concat(e[0]), - ]; - if (t === 3) - return [ - e[0], - e[1], - e[2], - "".concat(e[0], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[0]), - "".concat(e[1], ".").concat(e[2]), - "".concat(e[2], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), - "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), - "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), - "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), - ]; - if (t >= 4) - return [ - e[0], - e[1], - e[2], - e[3], - "".concat(e[0], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[2]), - "".concat(e[0], ".").concat(e[3]), - "".concat(e[1], ".").concat(e[0]), - "".concat(e[1], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[3]), - "".concat(e[2], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[1]), - "".concat(e[2], ".").concat(e[3]), - "".concat(e[3], ".").concat(e[0]), - "".concat(e[3], ".").concat(e[1]), - "".concat(e[3], ".").concat(e[2]), - "".concat(e[0], ".").concat(e[1], ".").concat(e[2]), - "".concat(e[0], ".").concat(e[1], ".").concat(e[3]), - "".concat(e[0], ".").concat(e[2], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[2], ".").concat(e[3]), - "".concat(e[0], ".").concat(e[3], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[3], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[0], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[0], ".").concat(e[3]), - "".concat(e[1], ".").concat(e[2], ".").concat(e[0]), - "".concat(e[1], ".").concat(e[2], ".").concat(e[3]), - "".concat(e[1], ".").concat(e[3], ".").concat(e[0]), - "".concat(e[1], ".").concat(e[3], ".").concat(e[2]), - "".concat(e[2], ".").concat(e[0], ".").concat(e[1]), - "".concat(e[2], ".").concat(e[0], ".").concat(e[3]), - "".concat(e[2], ".").concat(e[1], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[1], ".").concat(e[3]), - "".concat(e[2], ".").concat(e[3], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[3], ".").concat(e[1]), - "".concat(e[3], ".").concat(e[0], ".").concat(e[1]), - "".concat(e[3], ".").concat(e[0], ".").concat(e[2]), - "".concat(e[3], ".").concat(e[1], ".").concat(e[0]), - "".concat(e[3], ".").concat(e[1], ".").concat(e[2]), - "".concat(e[3], ".").concat(e[2], ".").concat(e[0]), - "".concat(e[3], ".").concat(e[2], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[1], ".").concat(e[2], ".").concat(e[3]), - "".concat(e[0], ".").concat(e[1], ".").concat(e[3], ".").concat(e[2]), - "".concat(e[0], ".").concat(e[2], ".").concat(e[1], ".").concat(e[3]), - "".concat(e[0], ".").concat(e[2], ".").concat(e[3], ".").concat(e[1]), - "".concat(e[0], ".").concat(e[3], ".").concat(e[1], ".").concat(e[2]), - "".concat(e[0], ".").concat(e[3], ".").concat(e[2], ".").concat(e[1]), - "".concat(e[1], ".").concat(e[0], ".").concat(e[2], ".").concat(e[3]), - "".concat(e[1], ".").concat(e[0], ".").concat(e[3], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[2], ".").concat(e[0], ".").concat(e[3]), - "".concat(e[1], ".").concat(e[2], ".").concat(e[3], ".").concat(e[0]), - "".concat(e[1], ".").concat(e[3], ".").concat(e[0], ".").concat(e[2]), - "".concat(e[1], ".").concat(e[3], ".").concat(e[2], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[0], ".").concat(e[1], ".").concat(e[3]), - "".concat(e[2], ".").concat(e[0], ".").concat(e[3], ".").concat(e[1]), - "".concat(e[2], ".").concat(e[1], ".").concat(e[0], ".").concat(e[3]), - "".concat(e[2], ".").concat(e[1], ".").concat(e[3], ".").concat(e[0]), - "".concat(e[2], ".").concat(e[3], ".").concat(e[0], ".").concat(e[1]), - "".concat(e[2], ".").concat(e[3], ".").concat(e[1], ".").concat(e[0]), - "".concat(e[3], ".").concat(e[0], ".").concat(e[1], ".").concat(e[2]), - "".concat(e[3], ".").concat(e[0], ".").concat(e[2], ".").concat(e[1]), - "".concat(e[3], ".").concat(e[1], ".").concat(e[0], ".").concat(e[2]), - "".concat(e[3], ".").concat(e[1], ".").concat(e[2], ".").concat(e[0]), - "".concat(e[3], ".").concat(e[2], ".").concat(e[0], ".").concat(e[1]), - "".concat(e[3], ".").concat(e[2], ".").concat(e[1], ".").concat(e[0]), - ]; -} -function R1(e) { - if (e.length === 0 || e.length === 1) return e; - var t = e.join("."); - return (Ma[t] || (Ma[t] = T1(e)), Ma[t]); -} -function P1(e) { - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, - r = arguments.length > 2 ? arguments[2] : void 0, - n = e.filter(function (a) { - return a !== "token"; - }), - o = R1(n); - return o.reduce(function (a, i) { - return qr(qr({}, a), r[i]); - }, t); -} -function hu(e) { - return e.join(" "); -} -function I1(e, t) { - var r = 0; - return function (n) { - return ( - (r += 1), - n.map(function (o, a) { - return ol({ - node: o, - stylesheet: e, - useInlineStyles: t, - key: "code-segment-".concat(r, "-").concat(a), - }); - }) - ); - }; -} -function ol(e) { - var t = e.node, - r = e.stylesheet, - n = e.style, - o = n === void 0 ? {} : n, - a = e.useInlineStyles, - i = e.key, - l = t.properties, - s = t.type, - u = t.tagName, - d = t.value; - if (s === "text") return d; - if (u) { - var p = I1(r, a), - c; - if (!a) c = qr(qr({}, l), {}, { className: hu(l.className) }); - else { - var f = Object.keys(r).reduce(function (v, C) { - return ( - C.split(".").forEach(function (w) { - v.includes(w) || v.push(w); - }), - v - ); - }, []), - g = l.className && l.className.includes("token") ? ["token"] : [], - y = - l.className && - g.concat( - l.className.filter(function (v) { - return !f.includes(v); - }), - ); - c = qr( - qr({}, l), - {}, - { - className: hu(y) || void 0, - style: P1(l.className, Object.assign({}, l.style, o), r), - }, - ); - } - var x = p(t.children); - return h.createElement(u, xe({ key: i }, c), x); - } -} -var Ma, - L1 = N(() => { - (tl(), - _1(), - m(mu, "ownKeys"), - m(qr, "_objectSpread"), - m(T1, "powerSetPermutations"), - (Ma = {}), - m(R1, "getClassNameCombinations"), - m(P1, "createStyleObject"), - m(hu, "createClassNameString"), - m(I1, "createChildren"), - m(ol, "createElement")); - }), - B1, - gk = N(() => { - B1 = m(function (e, t) { - var r = e.listLanguages(); - return r.indexOf(t) !== -1; - }, "default"); - }); -function yu(e, t) { - var r = Object.keys(e); - if (Object.getOwnPropertySymbols) { - var n = Object.getOwnPropertySymbols(e); - (t && - (n = n.filter(function (o) { - return Object.getOwnPropertyDescriptor(e, o).enumerable; - })), - r.push.apply(r, n)); - } - return r; -} -function nr(e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t] != null ? arguments[t] : {}; - t % 2 - ? yu(Object(r), !0).forEach(function (n) { - ud(e, n, r[n]); - }) - : Object.getOwnPropertyDescriptors - ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) - : yu(Object(r)).forEach(function (n) { - Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n)); - }); - } - return e; -} -function N1(e) { - return e.match(G1); -} -function j1(e) { - var t = e.lines, - r = e.startingLineNumber, - n = e.style; - return t.map(function (o, a) { - var i = a + r; - return h.createElement( - "span", - { - key: "line-".concat(a), - className: "react-syntax-highlighter-line-number", - style: typeof n == "function" ? n(i) : n, - }, - "".concat( - i, - ` -`, - ), - ); - }); -} -function M1(e) { - var t = e.codeString, - r = e.codeStyle, - n = e.containerStyle, - o = n === void 0 ? { float: "left", paddingRight: "10px" } : n, - a = e.numberStyle, - i = a === void 0 ? {} : a, - l = e.startingLineNumber; - return h.createElement( - "code", - { style: Object.assign({}, r, o) }, - j1({ - lines: t.replace(/\n$/, "").split(` -`), - style: i, - startingLineNumber: l, - }), - ); -} -function z1(e) { - return "".concat(e.toString().length, ".25em"); -} -function cd(e, t) { - return { - type: "element", - tagName: "span", - properties: { - key: "line-number--".concat(e), - className: [ - "comment", - "linenumber", - "react-syntax-highlighter-line-number", - ], - style: t, - }, - children: [{ type: "text", value: e }], - }; -} -function dd(e, t, r) { - var n = { - display: "inline-block", - minWidth: z1(r), - paddingRight: "1em", - textAlign: "right", - userSelect: "none", - }, - o = typeof e == "function" ? e(t) : e, - a = nr(nr({}, n), o); - return a; -} -function jo(e) { - var t = e.children, - r = e.lineNumber, - n = e.lineNumberStyle, - o = e.largestLineNumber, - a = e.showInlineLineNumbers, - i = e.lineProps, - l = i === void 0 ? {} : i, - s = e.className, - u = s === void 0 ? [] : s, - d = e.showLineNumbers, - p = e.wrapLongLines, - c = e.wrapLines, - f = c === void 0 ? !1 : c, - g = f ? nr({}, typeof l == "function" ? l(r) : l) : {}; - if ( - ((g.className = g.className - ? [].concat(yi(g.className.trim().split(/\s+/)), yi(u)) - : u), - r && a) - ) { - var y = dd(n, r, o); - t.unshift(cd(r, y)); - } - return ( - p & d && (g.style = nr({ display: "flex" }, g.style)), - { type: "element", tagName: "span", properties: g, children: t } - ); -} -function pd(e) { - for ( - var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], - r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], - n = 0; - n < e.length; - n++ - ) { - var o = e[n]; - if (o.type === "text") - r.push(jo({ children: [o], className: yi(new Set(t)) })); - else if (o.children) { - var a = t.concat(o.properties.className); - pd(o.children, a).forEach(function (i) { - return r.push(i); - }); - } - } - return r; -} -function H1(e, t, r, n, o, a, i, l, s) { - var u, - d = pd(e.value), - p = [], - c = -1, - f = 0; - function g($, A) { - var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; - return jo({ - children: $, - lineNumber: A, - lineNumberStyle: l, - largestLineNumber: i, - showInlineLineNumbers: o, - lineProps: r, - className: S, - showLineNumbers: n, - wrapLongLines: s, - wrapLines: t, - }); - } - m(g, "createWrappedLine"); - function y($, A) { - if (n && A && o) { - var S = dd(l, A, i); - $.unshift(cd(A, S)); - } - return $; - } - m(y, "createUnwrappedLine"); - function x($, A) { - var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : []; - return t || S.length > 0 ? g($, A, S) : y($, A); - } - m(x, "createLine"); - for ( - var v = m(function () { - var $ = d[f], - A = $.children[0].value, - S = N1(A); - if (S) { - var D = A.split(` -`); - (D.forEach(function (F, k) { - var _ = n && p.length + a, - I = { - type: "text", - value: "".concat( - F, - ` -`, - ), - }; - if (k === 0) { - var L = d - .slice(c + 1, f) - .concat( - jo({ children: [I], className: $.properties.className }), - ), - j = x(L, _); - p.push(j); - } else if (k === D.length - 1) { - var B = d[f + 1] && d[f + 1].children && d[f + 1].children[0], - z = { type: "text", value: "".concat(F) }; - if (B) { - var V = jo({ children: [z], className: $.properties.className }); - d.splice(f + 1, 0, V); - } else { - var Y = [z], - W = x(Y, _, $.properties.className); - p.push(W); - } - } else { - var G = [I], - J = x(G, _, $.properties.className); - p.push(J); - } - }), - (c = f)); - } - f++; - }, "_loop"); - f < d.length; - ) - v(); - if (c !== d.length - 1) { - var C = d.slice(c + 1, d.length); - if (C && C.length) { - var w = n && p.length + a, - E = x(C, w); - p.push(E); - } - } - return t ? p : (u = []).concat.apply(u, p); -} -function U1(e) { - var t = e.rows, - r = e.stylesheet, - n = e.useInlineStyles; - return t.map(function (o, a) { - return ol({ - node: o, - stylesheet: r, - useInlineStyles: n, - key: "code-segement".concat(a), - }); - }); -} -function fd(e) { - return e && typeof e.highlightAuto < "u"; -} -function W1(e) { - var t = e.astGenerator, - r = e.language, - n = e.code, - o = e.defaultCodeValue; - if (fd(t)) { - var a = B1(t, r); - return r === "text" - ? { value: o, language: "text" } - : a - ? t.highlight(r, n) - : t.highlightAuto(n); - } - try { - return r && r !== "text" ? { value: t.highlight(n, r) } : { value: o }; - } catch { - return { value: o }; - } -} -function V1(e, t) { - return m(function (r) { - var n = r.language, - o = r.children, - a = r.style, - i = a === void 0 ? t : a, - l = r.customStyle, - s = l === void 0 ? {} : l, - u = r.codeTagProps, - d = - u === void 0 - ? { - className: n ? "language-".concat(n) : void 0, - style: nr( - nr({}, i['code[class*="language-"]']), - i['code[class*="language-'.concat(n, '"]')], - ), - } - : u, - p = r.useInlineStyles, - c = p === void 0 ? !0 : p, - f = r.showLineNumbers, - g = f === void 0 ? !1 : f, - y = r.showInlineLineNumbers, - x = y === void 0 ? !0 : y, - v = r.startingLineNumber, - C = v === void 0 ? 1 : v, - w = r.lineNumberContainerStyle, - E = r.lineNumberStyle, - $ = E === void 0 ? {} : E, - A = r.wrapLines, - S = r.wrapLongLines, - D = S === void 0 ? !1 : S, - F = r.lineProps, - k = F === void 0 ? {} : F, - _ = r.renderer, - I = r.PreTag, - L = I === void 0 ? "pre" : I, - j = r.CodeTag, - B = j === void 0 ? "code" : j, - z = r.code, - V = z === void 0 ? (Array.isArray(o) ? o[0] : o) || "" : z, - Y = r.astGenerator, - W = w1(r, q1); - Y = Y || e; - var G = g - ? h.createElement(M1, { - containerStyle: w, - codeStyle: d.style || {}, - numberStyle: $, - startingLineNumber: C, - codeString: V, - }) - : null, - J = i.hljs || i['pre[class*="language-"]'] || { backgroundColor: "#fff" }, - Q = fd(Y) ? "hljs" : "prismjs", - re = c - ? Object.assign({}, W, { style: Object.assign({}, J, s) }) - : Object.assign({}, W, { - className: W.className ? "".concat(Q, " ").concat(W.className) : Q, - style: Object.assign({}, s), - }); - if ( - (D - ? (d.style = nr({ whiteSpace: "pre-wrap" }, d.style)) - : (d.style = nr({ whiteSpace: "pre" }, d.style)), - !Y) - ) - return h.createElement(L, re, G, h.createElement(B, d, V)); - (((A === void 0 && _) || D) && (A = !0), (_ = _ || U1)); - var ie = [{ type: "text", value: V }], - H = W1({ astGenerator: Y, language: n, code: V, defaultCodeValue: ie }); - H.language === null && (H.value = ie); - var X = H.value.length; - X === 1 && - H.value[0].type === "text" && - (X = H.value[0].value.split(` -`).length); - var Z = X + C, - le = H1(H, A, k, g, x, C, Z, $, D); - return h.createElement( - L, - re, - h.createElement( - B, - d, - !x && G, - _({ rows: le, stylesheet: i, useInlineStyles: c }), - ), - ); - }, "SyntaxHighlighter"); -} -var q1, - G1, - mk = N(() => { - (ik(), - dk(), - _1(), - L1(), - gk(), - (q1 = [ - "language", - "children", - "style", - "customStyle", - "codeTagProps", - "useInlineStyles", - "showLineNumbers", - "showInlineLineNumbers", - "startingLineNumber", - "lineNumberContainerStyle", - "lineNumberStyle", - "wrapLines", - "wrapLongLines", - "lineProps", - "renderer", - "PreTag", - "CodeTag", - "code", - "astGenerator", - ]), - m(yu, "ownKeys"), - m(nr, "_objectSpread"), - (G1 = /\n/g), - m(N1, "getNewLines"), - m(j1, "getAllLineNumbers"), - m(M1, "AllLineNumbers"), - m(z1, "getEmWidthOfNumber"), - m(cd, "getInlineLineNumber"), - m(dd, "assembleLineNumberStyles"), - m(jo, "createLineElement"), - m(pd, "flattenCodeTree"), - m(H1, "processLines"), - m(U1, "defaultRenderer"), - m(fd, "isHighlightJs"), - m(W1, "getCodeTree"), - m(V1, "default")); - }), - hk = te((e, t) => { - t.exports = n; - var r = Object.prototype.hasOwnProperty; - function n() { - for (var o = {}, a = 0; a < arguments.length; a++) { - var i = arguments[a]; - for (var l in i) r.call(i, l) && (o[l] = i[l]); - } - return o; - } - m(n, "extend"); - }), - Y1 = te((e, t) => { - t.exports = n; - var r = n.prototype; - ((r.space = null), (r.normal = {}), (r.property = {})); - function n(o, a, i) { - ((this.property = o), (this.normal = a), i && (this.space = i)); - } - m(n, "Schema"); - }), - yk = te((e, t) => { - var r = hk(), - n = Y1(); - t.exports = o; - function o(a) { - for (var i = a.length, l = [], s = [], u = -1, d, p; ++u < i; ) - ((d = a[u]), l.push(d.property), s.push(d.normal), (p = d.space)); - return new n(r.apply(null, l), r.apply(null, s), p); - } - m(o, "merge"); - }), - gd = te((e, t) => { - t.exports = r; - function r(n) { - return n.toLowerCase(); - } - m(r, "normalize"); - }), - K1 = te((e, t) => { - t.exports = n; - var r = n.prototype; - ((r.space = null), - (r.attribute = null), - (r.property = null), - (r.boolean = !1), - (r.booleanish = !1), - (r.overloadedBoolean = !1), - (r.number = !1), - (r.commaSeparated = !1), - (r.spaceSeparated = !1), - (r.commaOrSpaceSeparated = !1), - (r.mustUseProperty = !1), - (r.defined = !1)); - function n(o, a) { - ((this.property = o), (this.attribute = a)); - } - m(n, "Info"); - }), - md = te((e) => { - var t = 0; - ((e.boolean = r()), - (e.booleanish = r()), - (e.overloadedBoolean = r()), - (e.number = r()), - (e.spaceSeparated = r()), - (e.commaSeparated = r()), - (e.commaOrSpaceSeparated = r())); - function r() { - return Math.pow(2, ++t); - } - m(r, "increment"); - }), - X1 = te((e, t) => { - var r = K1(), - n = md(); - ((t.exports = i), (i.prototype = new r()), (i.prototype.defined = !0)); - var o = [ - "boolean", - "booleanish", - "overloadedBoolean", - "number", - "commaSeparated", - "spaceSeparated", - "commaOrSpaceSeparated", - ], - a = o.length; - function i(s, u, d, p) { - var c = -1, - f; - for (l(this, "space", p), r.call(this, s, u); ++c < a; ) - ((f = o[c]), l(this, f, (d & n[f]) === n[f])); - } - m(i, "DefinedInfo"); - function l(s, u, d) { - d && (s[u] = d); - } - m(l, "mark"); - }), - oa = te((e, t) => { - var r = gd(), - n = Y1(), - o = X1(); - t.exports = a; - function a(i) { - var l = i.space, - s = i.mustUseProperty || [], - u = i.attributes || {}, - d = i.properties, - p = i.transform, - c = {}, - f = {}, - g, - y; - for (g in d) - ((y = new o(g, p(u, g), d[g], l)), - s.indexOf(g) !== -1 && (y.mustUseProperty = !0), - (c[g] = y), - (f[r(g)] = g), - (f[r(y.attribute)] = g)); - return new n(c, f, l); - } - m(a, "create"); - }), - bk = te((e, t) => { - var r = oa(); - t.exports = r({ - space: "xlink", - transform: n, - properties: { - xLinkActuate: null, - xLinkArcRole: null, - xLinkHref: null, - xLinkRole: null, - xLinkShow: null, - xLinkTitle: null, - xLinkType: null, - }, - }); - function n(o, a) { - return "xlink:" + a.slice(5).toLowerCase(); - } - m(n, "xlinkTransform"); - }), - vk = te((e, t) => { - var r = oa(); - t.exports = r({ - space: "xml", - transform: n, - properties: { xmlLang: null, xmlBase: null, xmlSpace: null }, - }); - function n(o, a) { - return "xml:" + a.slice(3).toLowerCase(); - } - m(n, "xmlTransform"); - }), - xk = te((e, t) => { - t.exports = r; - function r(n, o) { - return o in n ? n[o] : o; - } - m(r, "caseSensitiveTransform"); - }), - Z1 = te((e, t) => { - var r = xk(); - t.exports = n; - function n(o, a) { - return r(o, a.toLowerCase()); - } - m(n, "caseInsensitiveTransform"); - }), - Ek = te((e, t) => { - var r = oa(), - n = Z1(); - t.exports = r({ - space: "xmlns", - attributes: { xmlnsxlink: "xmlns:xlink" }, - transform: n, - properties: { xmlns: null, xmlnsXLink: null }, - }); - }), - wk = te((e, t) => { - var r = md(), - n = oa(), - o = r.booleanish, - a = r.number, - i = r.spaceSeparated; - t.exports = n({ - transform: l, - properties: { - ariaActiveDescendant: null, - ariaAtomic: o, - ariaAutoComplete: null, - ariaBusy: o, - ariaChecked: o, - ariaColCount: a, - ariaColIndex: a, - ariaColSpan: a, - ariaControls: i, - ariaCurrent: null, - ariaDescribedBy: i, - ariaDetails: null, - ariaDisabled: o, - ariaDropEffect: i, - ariaErrorMessage: null, - ariaExpanded: o, - ariaFlowTo: i, - ariaGrabbed: o, - ariaHasPopup: null, - ariaHidden: o, - ariaInvalid: null, - ariaKeyShortcuts: null, - ariaLabel: null, - ariaLabelledBy: i, - ariaLevel: a, - ariaLive: null, - ariaModal: o, - ariaMultiLine: o, - ariaMultiSelectable: o, - ariaOrientation: null, - ariaOwns: i, - ariaPlaceholder: null, - ariaPosInSet: a, - ariaPressed: o, - ariaReadOnly: o, - ariaRelevant: null, - ariaRequired: o, - ariaRoleDescription: i, - ariaRowCount: a, - ariaRowIndex: a, - ariaRowSpan: a, - ariaSelected: o, - ariaSetSize: a, - ariaSort: null, - ariaValueMax: a, - ariaValueMin: a, - ariaValueNow: a, - ariaValueText: null, - role: null, - }, - }); - function l(s, u) { - return u === "role" ? u : "aria-" + u.slice(4).toLowerCase(); - } - m(l, "ariaTransform"); - }), - Sk = te((e, t) => { - var r = md(), - n = oa(), - o = Z1(), - a = r.boolean, - i = r.overloadedBoolean, - l = r.booleanish, - s = r.number, - u = r.spaceSeparated, - d = r.commaSeparated; - t.exports = n({ - space: "html", - attributes: { - acceptcharset: "accept-charset", - classname: "class", - htmlfor: "for", - httpequiv: "http-equiv", - }, - transform: o, - mustUseProperty: ["checked", "multiple", "muted", "selected"], - properties: { - abbr: null, - accept: d, - acceptCharset: u, - accessKey: u, - action: null, - allow: null, - allowFullScreen: a, - allowPaymentRequest: a, - allowUserMedia: a, - alt: null, - as: null, - async: a, - autoCapitalize: null, - autoComplete: u, - autoFocus: a, - autoPlay: a, - capture: a, - charSet: null, - checked: a, - cite: null, - className: u, - cols: s, - colSpan: null, - content: null, - contentEditable: l, - controls: a, - controlsList: u, - coords: s | d, - crossOrigin: null, - data: null, - dateTime: null, - decoding: null, - default: a, - defer: a, - dir: null, - dirName: null, - disabled: a, - download: i, - draggable: l, - encType: null, - enterKeyHint: null, - form: null, - formAction: null, - formEncType: null, - formMethod: null, - formNoValidate: a, - formTarget: null, - headers: u, - height: s, - hidden: a, - high: s, - href: null, - hrefLang: null, - htmlFor: u, - httpEquiv: u, - id: null, - imageSizes: null, - imageSrcSet: d, - inputMode: null, - integrity: null, - is: null, - isMap: a, - itemId: null, - itemProp: u, - itemRef: u, - itemScope: a, - itemType: u, - kind: null, - label: null, - lang: null, - language: null, - list: null, - loading: null, - loop: a, - low: s, - manifest: null, - max: null, - maxLength: s, - media: null, - method: null, - min: null, - minLength: s, - multiple: a, - muted: a, - name: null, - nonce: null, - noModule: a, - noValidate: a, - onAbort: null, - onAfterPrint: null, - onAuxClick: null, - onBeforePrint: null, - onBeforeUnload: null, - onBlur: null, - onCancel: null, - onCanPlay: null, - onCanPlayThrough: null, - onChange: null, - onClick: null, - onClose: null, - onContextMenu: null, - onCopy: null, - onCueChange: null, - onCut: null, - onDblClick: null, - onDrag: null, - onDragEnd: null, - onDragEnter: null, - onDragExit: null, - onDragLeave: null, - onDragOver: null, - onDragStart: null, - onDrop: null, - onDurationChange: null, - onEmptied: null, - onEnded: null, - onError: null, - onFocus: null, - onFormData: null, - onHashChange: null, - onInput: null, - onInvalid: null, - onKeyDown: null, - onKeyPress: null, - onKeyUp: null, - onLanguageChange: null, - onLoad: null, - onLoadedData: null, - onLoadedMetadata: null, - onLoadEnd: null, - onLoadStart: null, - onMessage: null, - onMessageError: null, - onMouseDown: null, - onMouseEnter: null, - onMouseLeave: null, - onMouseMove: null, - onMouseOut: null, - onMouseOver: null, - onMouseUp: null, - onOffline: null, - onOnline: null, - onPageHide: null, - onPageShow: null, - onPaste: null, - onPause: null, - onPlay: null, - onPlaying: null, - onPopState: null, - onProgress: null, - onRateChange: null, - onRejectionHandled: null, - onReset: null, - onResize: null, - onScroll: null, - onSecurityPolicyViolation: null, - onSeeked: null, - onSeeking: null, - onSelect: null, - onSlotChange: null, - onStalled: null, - onStorage: null, - onSubmit: null, - onSuspend: null, - onTimeUpdate: null, - onToggle: null, - onUnhandledRejection: null, - onUnload: null, - onVolumeChange: null, - onWaiting: null, - onWheel: null, - open: a, - optimum: s, - pattern: null, - ping: u, - placeholder: null, - playsInline: a, - poster: null, - preload: null, - readOnly: a, - referrerPolicy: null, - rel: u, - required: a, - reversed: a, - rows: s, - rowSpan: s, - sandbox: u, - scope: null, - scoped: a, - seamless: a, - selected: a, - shape: null, - size: s, - sizes: null, - slot: null, - span: s, - spellCheck: l, - src: null, - srcDoc: null, - srcLang: null, - srcSet: d, - start: s, - step: null, - style: null, - tabIndex: s, - target: null, - title: null, - translate: null, - type: null, - typeMustMatch: a, - useMap: null, - value: l, - width: s, - wrap: null, - align: null, - aLink: null, - archive: u, - axis: null, - background: null, - bgColor: null, - border: s, - borderColor: null, - bottomMargin: s, - cellPadding: null, - cellSpacing: null, - char: null, - charOff: null, - classId: null, - clear: null, - code: null, - codeBase: null, - codeType: null, - color: null, - compact: a, - declare: a, - event: null, - face: null, - frame: null, - frameBorder: null, - hSpace: s, - leftMargin: s, - link: null, - longDesc: null, - lowSrc: null, - marginHeight: s, - marginWidth: s, - noResize: a, - noHref: a, - noShade: a, - noWrap: a, - object: null, - profile: null, - prompt: null, - rev: null, - rightMargin: s, - rules: null, - scheme: null, - scrolling: l, - standby: null, - summary: null, - text: null, - topMargin: s, - valueType: null, - version: null, - vAlign: null, - vLink: null, - vSpace: s, - allowTransparency: null, - autoCorrect: null, - autoSave: null, - disablePictureInPicture: a, - disableRemotePlayback: a, - prefix: null, - property: null, - results: s, - security: null, - unselectable: null, - }, - }); - }), - Ck = te((e, t) => { - var r = yk(), - n = bk(), - o = vk(), - a = Ek(), - i = wk(), - l = Sk(); - t.exports = r([o, n, a, i, l]); - }), - $k = te((e, t) => { - var r = gd(), - n = X1(), - o = K1(), - a = "data"; - t.exports = u; - var i = /^data[-\w.:]+$/i, - l = /-[a-z]/g, - s = /[A-Z]/g; - function u(g, y) { - var x = r(y), - v = y, - C = o; - return x in g.normal - ? g.property[g.normal[x]] - : (x.length > 4 && - x.slice(0, 4) === a && - i.test(y) && - (y.charAt(4) === "-" ? (v = d(y)) : (y = p(y)), (C = n)), - new C(v, y)); - } - m(u, "find"); - function d(g) { - var y = g.slice(5).replace(l, f); - return a + y.charAt(0).toUpperCase() + y.slice(1); - } - m(d, "datasetToProperty"); - function p(g) { - var y = g.slice(4); - return l.test(y) - ? g - : ((y = y.replace(s, c)), y.charAt(0) !== "-" && (y = "-" + y), a + y); - } - m(p, "datasetToAttribute"); - function c(g) { - return "-" + g.toLowerCase(); - } - m(c, "kebab"); - function f(g) { - return g.charAt(1).toUpperCase(); - } - m(f, "camelcase"); - }), - Ak = te((e, t) => { - t.exports = n; - var r = /[#.]/g; - function n(o, a) { - for ( - var i = o || "", l = a || "div", s = {}, u = 0, d, p, c; - u < i.length; - ) - ((r.lastIndex = u), - (c = r.exec(i)), - (d = i.slice(u, c ? c.index : i.length)), - d && - (p - ? p === "#" - ? (s.id = d) - : s.className - ? s.className.push(d) - : (s.className = [d]) - : (l = d), - (u += d.length)), - c && ((p = c[0]), u++)); - return { type: "element", tagName: l, properties: s, children: [] }; - } - m(n, "parse"); - }), - Dk = te((e) => { - ((e.parse = o), (e.stringify = a)); - var t = "", - r = " ", - n = /[ \t\n\r\f]+/g; - function o(i) { - var l = String(i || t).trim(); - return l === t ? [] : l.split(n); - } - m(o, "parse"); - function a(i) { - return i.join(r).trim(); - } - m(a, "stringify"); - }), - kk = te((e) => { - ((e.parse = o), (e.stringify = a)); - var t = ",", - r = " ", - n = ""; - function o(i) { - for ( - var l = [], s = String(i || n), u = s.indexOf(t), d = 0, p = !1, c; - !p; - ) - (u === -1 && ((u = s.length), (p = !0)), - (c = s.slice(d, u).trim()), - (c || !p) && l.push(c), - (d = u + 1), - (u = s.indexOf(t, d))); - return l; - } - m(o, "parse"); - function a(i, l) { - var s = l || {}, - u = s.padLeft === !1 ? n : r, - d = s.padRight ? r : n; - return ( - i[i.length - 1] === n && (i = i.concat(n)), - i.join(d + t + u).trim() - ); - } - m(a, "stringify"); - }), - Ok = te((e, t) => { - var r = $k(), - n = gd(), - o = Ak(), - a = Dk().parse, - i = kk().parse; - t.exports = s; - var l = {}.hasOwnProperty; - function s(x, v, C) { - var w = C ? y(C) : null; - return E; - function E(A, S) { - var D = o(A, v), - F = Array.prototype.slice.call(arguments, 2), - k = D.tagName.toLowerCase(), - _; - if ( - ((D.tagName = w && l.call(w, k) ? w[k] : k), - S && u(S, D) && (F.unshift(S), (S = null)), - S) - ) - for (_ in S) $(D.properties, _, S[_]); - return ( - p(D.children, F), - D.tagName === "template" && - ((D.content = { type: "root", children: D.children }), - (D.children = [])), - D - ); - } - function $(A, S, D) { - var F, k, _; - D == null || - D !== D || - ((F = r(x, S)), - (k = F.property), - (_ = D), - typeof _ == "string" && - (F.spaceSeparated - ? (_ = a(_)) - : F.commaSeparated - ? (_ = i(_)) - : F.commaOrSpaceSeparated && (_ = a(i(_).join(" ")))), - k === "style" && typeof D != "string" && (_ = g(_)), - k === "className" && A.className && (_ = A.className.concat(_)), - (A[k] = c(F, k, _))); - } - } - m(s, "factory"); - function u(x, v) { - return typeof x == "string" || "length" in x || d(v.tagName, x); - } - m(u, "isChildren"); - function d(x, v) { - var C = v.type; - return x === "input" || !C || typeof C != "string" - ? !1 - : typeof v.children == "object" && "length" in v.children - ? !0 - : ((C = C.toLowerCase()), - x === "button" - ? C !== "menu" && - C !== "submit" && - C !== "reset" && - C !== "button" - : "value" in v); - } - m(d, "isNode"); - function p(x, v) { - var C, w; - if (typeof v == "string" || typeof v == "number") { - x.push({ type: "text", value: String(v) }); - return; - } - if (typeof v == "object" && "length" in v) { - for (C = -1, w = v.length; ++C < w; ) p(x, v[C]); - return; - } - if (typeof v != "object" || !("type" in v)) - throw new Error("Expected node, nodes, or string, got `" + v + "`"); - x.push(v); - } - m(p, "addChild"); - function c(x, v, C) { - var w, E, $; - if (typeof C != "object" || !("length" in C)) return f(x, v, C); - for (E = C.length, w = -1, $ = []; ++w < E; ) $[w] = f(x, v, C[w]); - return $; - } - m(c, "parsePrimitives"); - function f(x, v, C) { - var w = C; - return ( - x.number || x.positiveNumber - ? !isNaN(w) && w !== "" && (w = Number(w)) - : (x.boolean || x.overloadedBoolean) && - typeof w == "string" && - (w === "" || n(C) === n(v)) && - (w = !0), - w - ); - } - m(f, "parsePrimitive"); - function g(x) { - var v = [], - C; - for (C in x) v.push([C, x[C]].join(": ")); - return v.join("; "); - } - m(g, "style"); - function y(x) { - for (var v = x.length, C = -1, w = {}, E; ++C < v; ) - ((E = x[C]), (w[E.toLowerCase()] = E)); - return w; - } - m(y, "createAdjustMap"); - }), - Fk = te((e, t) => { - var r = Ck(), - n = Ok(), - o = n(r, "div"); - ((o.displayName = "html"), (t.exports = o)); - }), - _k = te((e, t) => { - t.exports = Fk(); - }), - Tk = te((e, t) => { - t.exports = { - AElig: "Æ", - AMP: "&", - Aacute: "Á", - Acirc: "Â", - Agrave: "À", - Aring: "Å", - Atilde: "Ã", - Auml: "Ä", - COPY: "©", - Ccedil: "Ç", - ETH: "Ð", - Eacute: "É", - Ecirc: "Ê", - Egrave: "È", - Euml: "Ë", - GT: ">", - Iacute: "Í", - Icirc: "Î", - Igrave: "Ì", - Iuml: "Ï", - LT: "<", - Ntilde: "Ñ", - Oacute: "Ó", - Ocirc: "Ô", - Ograve: "Ò", - Oslash: "Ø", - Otilde: "Õ", - Ouml: "Ö", - QUOT: '"', - REG: "®", - THORN: "Þ", - Uacute: "Ú", - Ucirc: "Û", - Ugrave: "Ù", - Uuml: "Ü", - Yacute: "Ý", - aacute: "á", - acirc: "â", - acute: "´", - aelig: "æ", - agrave: "à", - amp: "&", - aring: "å", - atilde: "ã", - auml: "ä", - brvbar: "¦", - ccedil: "ç", - cedil: "¸", - cent: "¢", - copy: "©", - curren: "¤", - deg: "°", - divide: "÷", - eacute: "é", - ecirc: "ê", - egrave: "è", - eth: "ð", - euml: "ë", - frac12: "½", - frac14: "¼", - frac34: "¾", - gt: ">", - iacute: "í", - icirc: "î", - iexcl: "¡", - igrave: "ì", - iquest: "¿", - iuml: "ï", - laquo: "«", - lt: "<", - macr: "¯", - micro: "µ", - middot: "·", - nbsp: " ", - not: "¬", - ntilde: "ñ", - oacute: "ó", - ocirc: "ô", - ograve: "ò", - ordf: "ª", - ordm: "º", - oslash: "ø", - otilde: "õ", - ouml: "ö", - para: "¶", - plusmn: "±", - pound: "£", - quot: '"', - raquo: "»", - reg: "®", - sect: "§", - shy: "­", - sup1: "¹", - sup2: "²", - sup3: "³", - szlig: "ß", - thorn: "þ", - times: "×", - uacute: "ú", - ucirc: "û", - ugrave: "ù", - uml: "¨", - uuml: "ü", - yacute: "ý", - yen: "¥", - yuml: "ÿ", - }; - }), - Rk = te((e, t) => { - t.exports = { - 0: "�", - 128: "€", - 130: "‚", - 131: "ƒ", - 132: "„", - 133: "…", - 134: "†", - 135: "‡", - 136: "ˆ", - 137: "‰", - 138: "Š", - 139: "‹", - 140: "Œ", - 142: "Ž", - 145: "‘", - 146: "’", - 147: "“", - 148: "”", - 149: "•", - 150: "–", - 151: "—", - 152: "˜", - 153: "™", - 154: "š", - 155: "›", - 156: "œ", - 158: "ž", - 159: "Ÿ", - }; - }), - J1 = te((e, t) => { - t.exports = r; - function r(n) { - var o = typeof n == "string" ? n.charCodeAt(0) : n; - return o >= 48 && o <= 57; - } - m(r, "decimal"); - }), - Pk = te((e, t) => { - t.exports = r; - function r(n) { - var o = typeof n == "string" ? n.charCodeAt(0) : n; - return ( - (o >= 97 && o <= 102) || (o >= 65 && o <= 70) || (o >= 48 && o <= 57) - ); - } - m(r, "hexadecimal"); - }), - Ik = te((e, t) => { - t.exports = r; - function r(n) { - var o = typeof n == "string" ? n.charCodeAt(0) : n; - return (o >= 97 && o <= 122) || (o >= 65 && o <= 90); - } - m(r, "alphabetical"); - }), - Lk = te((e, t) => { - var r = Ik(), - n = J1(); - t.exports = o; - function o(a) { - return r(a) || n(a); - } - m(o, "alphanumerical"); - }), - Bk = te((e, t) => { - var r, - n = 59; - t.exports = o; - function o(a) { - var i = "&" + a + ";", - l; - return ( - (r = r || document.createElement("i")), - (r.innerHTML = i), - (l = r.textContent), - (l.charCodeAt(l.length - 1) === n && a !== "semi") || l === i ? !1 : l - ); - } - m(o, "decodeEntity"); - }), - Nk = te((e, t) => { - var r = Tk(), - n = Rk(), - o = J1(), - a = Pk(), - i = Lk(), - l = Bk(); - t.exports = J; - var s = {}.hasOwnProperty, - u = String.fromCharCode, - d = Function.prototype, - p = { - warning: null, - reference: null, - text: null, - warningContext: null, - referenceContext: null, - textContext: null, - position: {}, - additional: null, - attribute: !1, - nonTerminated: !0, - }, - c = 9, - f = 10, - g = 12, - y = 32, - x = 38, - v = 59, - C = 60, - w = 61, - E = 35, - $ = 88, - A = 120, - S = 65533, - D = "named", - F = "hexadecimal", - k = "decimal", - _ = {}; - ((_[F] = 16), (_[k] = 10)); - var I = {}; - ((I[D] = i), (I[k] = o), (I[F] = a)); - var L = 1, - j = 2, - B = 3, - z = 4, - V = 5, - Y = 6, - W = 7, - G = {}; - ((G[L] = "Named character references must be terminated by a semicolon"), - (G[j] = "Numeric character references must be terminated by a semicolon"), - (G[B] = "Named character references cannot be empty"), - (G[z] = "Numeric character references cannot be empty"), - (G[V] = "Named character references must be known"), - (G[Y] = "Numeric character references cannot be disallowed"), - (G[W] = - "Numeric character references cannot be outside the permissible Unicode range")); - function J(H, X) { - var Z = {}, - le, - me; - X || (X = {}); - for (me in p) ((le = X[me]), (Z[me] = le ?? p[me])); - return ( - (Z.position.indent || Z.position.start) && - ((Z.indent = Z.position.indent || []), - (Z.position = Z.position.start)), - Q(H, Z) - ); - } - m(J, "parseEntities"); - function Q(H, X) { - var Z = X.additional, - le = X.nonTerminated, - me = X.text, - Re = X.reference, - ne = X.warning, - de = X.textContext, - M = X.referenceContext, - U = X.warningContext, - fe = X.position, - ke = X.indent || [], - be = H.length, - We = 0, - pr = -1, - Ce = fe.column || 1, - nt = fe.line || 1, - $e = "", - ht = [], - Ve, - yt, - Rt, - Me, - bt, - Pe, - Ae, - Pt, - da, - Fl, - Pr, - mo, - Ir, - qt, - Ap, - ho, - pa, - It, - Ie; - for ( - typeof Z == "string" && (Z = Z.charCodeAt(0)), - ho = yo(), - Pt = ne ? T2 : d, - We--, - be++; - ++We < be; - ) - if ( - (bt === f && (Ce = ke[pr] || 1), (bt = H.charCodeAt(We)), bt === x) - ) { - if ( - ((Ae = H.charCodeAt(We + 1)), - Ae === c || - Ae === f || - Ae === g || - Ae === y || - Ae === x || - Ae === C || - Ae !== Ae || - (Z && Ae === Z)) - ) { - (($e += u(bt)), Ce++); - continue; - } - for ( - Ir = We + 1, - mo = Ir, - Ie = Ir, - Ae === E - ? ((Ie = ++mo), - (Ae = H.charCodeAt(Ie)), - Ae === $ || Ae === A ? ((qt = F), (Ie = ++mo)) : (qt = k)) - : (qt = D), - Ve = "", - Pr = "", - Me = "", - Ap = I[qt], - Ie--; - ++Ie < be && ((Ae = H.charCodeAt(Ie)), !!Ap(Ae)); - ) - ((Me += u(Ae)), - qt === D && s.call(r, Me) && ((Ve = Me), (Pr = r[Me]))); - ((Rt = H.charCodeAt(Ie) === v), - Rt && - (Ie++, - (yt = qt === D ? l(Me) : !1), - yt && ((Ve = Me), (Pr = yt))), - (It = 1 + Ie - Ir), - (!Rt && !le) || - (Me - ? qt === D - ? (Rt && !Pr - ? Pt(V, 1) - : (Ve !== Me && - ((Ie = mo + Ve.length), - (It = 1 + Ie - mo), - (Rt = !1)), - Rt || - ((da = Ve ? L : B), - X.attribute - ? ((Ae = H.charCodeAt(Ie)), - Ae === w - ? (Pt(da, It), (Pr = null)) - : i(Ae) - ? (Pr = null) - : Pt(da, It)) - : Pt(da, It))), - (Pe = Pr)) - : (Rt || Pt(j, It), - (Pe = parseInt(Me, _[qt])), - re(Pe) - ? (Pt(W, It), (Pe = u(S))) - : Pe in n - ? (Pt(Y, It), (Pe = n[Pe])) - : ((Fl = ""), - ie(Pe) && Pt(Y, It), - Pe > 65535 && - ((Pe -= 65536), - (Fl += u((Pe >>> 10) | 55296)), - (Pe = 56320 | (Pe & 1023))), - (Pe = Fl + u(Pe)))) - : qt !== D && Pt(z, It)), - Pe - ? (Dp(), - (ho = yo()), - (We = Ie - 1), - (Ce += Ie - Ir + 1), - ht.push(Pe), - (pa = yo()), - pa.offset++, - Re && - Re.call(M, Pe, { start: ho, end: pa }, H.slice(Ir - 1, Ie)), - (ho = pa)) - : ((Me = H.slice(Ir - 1, Ie)), - ($e += Me), - (Ce += Me.length), - (We = Ie - 1))); - } else - (bt === 10 && (nt++, pr++, (Ce = 0)), - bt === bt ? (($e += u(bt)), Ce++) : Dp()); - return ht.join(""); - function yo() { - return { line: nt, column: Ce, offset: We + (fe.offset || 0) }; - } - function T2(kp, Op) { - var _l = yo(); - ((_l.column += Op), (_l.offset += Op), ne.call(U, G[kp], _l, kp)); - } - function Dp() { - $e && - (ht.push($e), - me && me.call(de, $e, { start: ho, end: yo() }), - ($e = "")); - } - } - m(Q, "parse"); - function re(H) { - return (H >= 55296 && H <= 57343) || H > 1114111; - } - m(re, "prohibited"); - function ie(H) { - return ( - (H >= 1 && H <= 8) || - H === 11 || - (H >= 13 && H <= 31) || - (H >= 127 && H <= 159) || - (H >= 64976 && H <= 65007) || - (H & 65535) === 65535 || - (H & 65535) === 65534 - ); - } - m(ie, "disallowed"); - }), - jk = te((e, t) => { - var r = - typeof window < "u" - ? window - : typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope - ? self - : {}, - n = (function (o) { - var a = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, - i = 0, - l = {}, - s = { - manual: o.Prism && o.Prism.manual, - disableWorkerMessageHandler: - o.Prism && o.Prism.disableWorkerMessageHandler, - util: { - encode: m(function w(E) { - return E instanceof u - ? new u(E.type, w(E.content), E.alias) - : Array.isArray(E) - ? E.map(w) - : E.replace(/&/g, "&") - .replace(/ "u") return null; - if ("currentScript" in document) return document.currentScript; - try { - throw new Error(); - } catch (A) { - var w = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack) || - [])[1]; - if (w) { - var E = document.getElementsByTagName("script"); - for (var $ in E) if (E[$].src == w) return E[$]; - } - return null; - } - }, "currentScript"), - isActive: m(function (w, E, $) { - for (var A = "no-" + E; w; ) { - var S = w.classList; - if (S.contains(E)) return !0; - if (S.contains(A)) return !1; - w = w.parentElement; - } - return !!$; - }, "isActive"), - }, - languages: { - plain: l, - plaintext: l, - text: l, - txt: l, - extend: m(function (w, E) { - var $ = s.util.clone(s.languages[w]); - for (var A in E) $[A] = E[A]; - return $; - }, "extend"), - insertBefore: m(function (w, E, $, A) { - A = A || s.languages; - var S = A[w], - D = {}; - for (var F in S) - if (S.hasOwnProperty(F)) { - if (F == E) - for (var k in $) $.hasOwnProperty(k) && (D[k] = $[k]); - $.hasOwnProperty(F) || (D[F] = S[F]); - } - var _ = A[w]; - return ( - (A[w] = D), - s.languages.DFS(s.languages, function (I, L) { - L === _ && I != w && (this[I] = D); - }), - D - ); - }, "insertBefore"), - DFS: m(function w(E, $, A, S) { - S = S || {}; - var D = s.util.objId; - for (var F in E) - if (E.hasOwnProperty(F)) { - $.call(E, F, E[F], A || F); - var k = E[F], - _ = s.util.type(k); - _ === "Object" && !S[D(k)] - ? ((S[D(k)] = !0), w(k, $, null, S)) - : _ === "Array" && - !S[D(k)] && - ((S[D(k)] = !0), w(k, $, F, S)); - } - }, "DFS"), - }, - plugins: {}, - highlightAll: m(function (w, E) { - s.highlightAllUnder(document, w, E); - }, "highlightAll"), - highlightAllUnder: m(function (w, E, $) { - var A = { - callback: $, - container: w, - selector: - 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code', - }; - (s.hooks.run("before-highlightall", A), - (A.elements = Array.prototype.slice.apply( - A.container.querySelectorAll(A.selector), - )), - s.hooks.run("before-all-elements-highlight", A)); - for (var S = 0, D; (D = A.elements[S++]); ) - s.highlightElement(D, E === !0, A.callback); - }, "highlightAllUnder"), - highlightElement: m(function (w, E, $) { - var A = s.util.getLanguage(w), - S = s.languages[A]; - s.util.setLanguage(w, A); - var D = w.parentElement; - D && - D.nodeName.toLowerCase() === "pre" && - s.util.setLanguage(D, A); - var F = w.textContent, - k = { element: w, language: A, grammar: S, code: F }; - function _(L) { - ((k.highlightedCode = L), - s.hooks.run("before-insert", k), - (k.element.innerHTML = k.highlightedCode), - s.hooks.run("after-highlight", k), - s.hooks.run("complete", k), - $ && $.call(k.element)); - } - if ( - (m(_, "insertHighlightedCode"), - s.hooks.run("before-sanity-check", k), - (D = k.element.parentElement), - D && - D.nodeName.toLowerCase() === "pre" && - !D.hasAttribute("tabindex") && - D.setAttribute("tabindex", "0"), - !k.code) - ) { - (s.hooks.run("complete", k), $ && $.call(k.element)); - return; - } - if ((s.hooks.run("before-highlight", k), !k.grammar)) { - _(s.util.encode(k.code)); - return; - } - if (E && o.Worker) { - var I = new Worker(s.filename); - ((I.onmessage = function (L) { - _(L.data); - }), - I.postMessage( - JSON.stringify({ - language: k.language, - code: k.code, - immediateClose: !0, - }), - )); - } else _(s.highlight(k.code, k.grammar, k.language)); - }, "highlightElement"), - highlight: m(function (w, E, $) { - var A = { code: w, grammar: E, language: $ }; - if ((s.hooks.run("before-tokenize", A), !A.grammar)) - throw new Error( - 'The language "' + A.language + '" has no grammar.', - ); - return ( - (A.tokens = s.tokenize(A.code, A.grammar)), - s.hooks.run("after-tokenize", A), - u.stringify(s.util.encode(A.tokens), A.language) - ); - }, "highlight"), - tokenize: m(function (w, E) { - var $ = E.rest; - if ($) { - for (var A in $) E[A] = $[A]; - delete E.rest; - } - var S = new c(); - return (f(S, S.head, w), p(w, S, E, S.head, 0), y(S)); - }, "tokenize"), - hooks: { - all: {}, - add: m(function (w, E) { - var $ = s.hooks.all; - (($[w] = $[w] || []), $[w].push(E)); - }, "add"), - run: m(function (w, E) { - var $ = s.hooks.all[w]; - if (!(!$ || !$.length)) for (var A = 0, S; (S = $[A++]); ) S(E); - }, "run"), - }, - Token: u, - }; - o.Prism = s; - function u(w, E, $, A) { - ((this.type = w), - (this.content = E), - (this.alias = $), - (this.length = (A || "").length | 0)); - } - (m(u, "Token"), - (u.stringify = m(function w(E, $) { - if (typeof E == "string") return E; - if (Array.isArray(E)) { - var A = ""; - return ( - E.forEach(function (_) { - A += w(_, $); - }), - A - ); - } - var S = { - type: E.type, - content: w(E.content, $), - tag: "span", - classes: ["token", E.type], - attributes: {}, - language: $, - }, - D = E.alias; - (D && - (Array.isArray(D) - ? Array.prototype.push.apply(S.classes, D) - : S.classes.push(D)), - s.hooks.run("wrap", S)); - var F = ""; - for (var k in S.attributes) - F += - " " + - k + - '="' + - (S.attributes[k] || "").replace(/"/g, """) + - '"'; - return ( - "<" + - S.tag + - ' class="' + - S.classes.join(" ") + - '"' + - F + - ">" + - S.content + - "" - ); - }, "stringify"))); - function d(w, E, $, A) { - w.lastIndex = E; - var S = w.exec($); - if (S && A && S[1]) { - var D = S[1].length; - ((S.index += D), (S[0] = S[0].slice(D))); - } - return S; - } - m(d, "matchPattern"); - function p(w, E, $, A, S, D) { - for (var F in $) - if (!(!$.hasOwnProperty(F) || !$[F])) { - var k = $[F]; - k = Array.isArray(k) ? k : [k]; - for (var _ = 0; _ < k.length; ++_) { - if (D && D.cause == F + "," + _) return; - var I = k[_], - L = I.inside, - j = !!I.lookbehind, - B = !!I.greedy, - z = I.alias; - if (B && !I.pattern.global) { - var V = I.pattern.toString().match(/[imsuy]*$/)[0]; - I.pattern = RegExp(I.pattern.source, V + "g"); - } - for ( - var Y = I.pattern || I, W = A.next, G = S; - W !== E.tail && !(D && G >= D.reach); - G += W.value.length, W = W.next - ) { - var J = W.value; - if (E.length > w.length) return; - if (!(J instanceof u)) { - var Q = 1, - re; - if (B) { - if (((re = d(Y, G, w, j)), !re || re.index >= w.length)) - break; - var Z = re.index, - ie = re.index + re[0].length, - H = G; - for (H += W.value.length; Z >= H; ) - ((W = W.next), (H += W.value.length)); - if ( - ((H -= W.value.length), (G = H), W.value instanceof u) - ) - continue; - for ( - var X = W; - X !== E.tail && (H < ie || typeof X.value == "string"); - X = X.next - ) - (Q++, (H += X.value.length)); - (Q--, (J = w.slice(G, H)), (re.index -= G)); - } else if (((re = d(Y, 0, J, j)), !re)) continue; - var Z = re.index, - le = re[0], - me = J.slice(0, Z), - Re = J.slice(Z + le.length), - ne = G + J.length; - D && ne > D.reach && (D.reach = ne); - var de = W.prev; - (me && ((de = f(E, de, me)), (G += me.length)), - g(E, de, Q)); - var M = new u(F, L ? s.tokenize(le, L) : le, z, le); - if (((W = f(E, de, M)), Re && f(E, W, Re), Q > 1)) { - var U = { cause: F + "," + _, reach: ne }; - (p(w, E, $, W.prev, G, U), - D && U.reach > D.reach && (D.reach = U.reach)); - } - } - } - } - } - } - m(p, "matchGrammar"); - function c() { - var w = { value: null, prev: null, next: null }, - E = { value: null, prev: w, next: null }; - ((w.next = E), (this.head = w), (this.tail = E), (this.length = 0)); - } - m(c, "LinkedList"); - function f(w, E, $) { - var A = E.next, - S = { value: $, prev: E, next: A }; - return ((E.next = S), (A.prev = S), w.length++, S); - } - m(f, "addAfter"); - function g(w, E, $) { - for (var A = E.next, S = 0; S < $ && A !== w.tail; S++) A = A.next; - ((E.next = A), (A.prev = E), (w.length -= S)); - } - m(g, "removeRange"); - function y(w) { - for (var E = [], $ = w.head.next; $ !== w.tail; ) - (E.push($.value), ($ = $.next)); - return E; - } - if ((m(y, "toArray"), !o.document)) - return ( - o.addEventListener && - (s.disableWorkerMessageHandler || - o.addEventListener( - "message", - function (w) { - var E = JSON.parse(w.data), - $ = E.language, - A = E.code, - S = E.immediateClose; - (o.postMessage(s.highlight(A, s.languages[$], $)), - S && o.close()); - }, - !1, - )), - s - ); - var x = s.util.currentScript(); - x && - ((s.filename = x.src), - x.hasAttribute("data-manual") && (s.manual = !0)); - function v() { - s.manual || s.highlightAll(); - } - if ((m(v, "highlightAutomaticallyCallback"), !s.manual)) { - var C = document.readyState; - C === "loading" || (C === "interactive" && x && x.defer) - ? document.addEventListener("DOMContentLoaded", v) - : window.requestAnimationFrame - ? window.requestAnimationFrame(v) - : window.setTimeout(v, 16); - } - return s; - })(r); - (typeof t < "u" && t.exports && (t.exports = n), - typeof global < "u" && (global.Prism = n)); - }), - Q1 = te((e, t) => { - ((t.exports = r), - (r.displayName = "markup"), - (r.aliases = ["html", "mathml", "svg", "xml", "ssml", "atom", "rss"])); - function r(n) { - ((n.languages.markup = { - comment: { pattern: //, greedy: !0 }, - prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, - doctype: { - pattern: - /"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i, - greedy: !0, - inside: { - "internal-subset": { - pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, - lookbehind: !0, - greedy: !0, - inside: null, - }, - string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, - punctuation: /^$|[[\]]/, - "doctype-tag": /^DOCTYPE/i, - name: /[^\s<>'"]+/, - }, - }, - cdata: { pattern: //i, greedy: !0 }, - tag: { - pattern: - /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, - greedy: !0, - inside: { - tag: { - pattern: /^<\/?[^\s>\/]+/, - inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ }, - }, - "special-attr": [], - "attr-value": { - pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, - inside: { - punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/], - }, - }, - punctuation: /\/?>/, - "attr-name": { - pattern: /[^\s>\/]+/, - inside: { namespace: /^[^\s>\/:]+:/ }, - }, - }, - }, - entity: [ - { pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, - /&#x?[\da-f]{1,8};/i, - ], - }), - (n.languages.markup.tag.inside["attr-value"].inside.entity = - n.languages.markup.entity), - (n.languages.markup.doctype.inside["internal-subset"].inside = - n.languages.markup), - n.hooks.add("wrap", function (o) { - o.type === "entity" && - (o.attributes.title = o.content.value.replace(/&/, "&")); - }), - Object.defineProperty(n.languages.markup.tag, "addInlined", { - value: m(function (o, a) { - var i = {}; - ((i["language-" + a] = { - pattern: /(^$)/i, - lookbehind: !0, - inside: n.languages[a], - }), - (i.cdata = /^$/i)); - var l = { - "included-cdata": { - pattern: //i, - inside: i, - }, - }; - l["language-" + a] = { pattern: /[\s\S]+/, inside: n.languages[a] }; - var s = {}; - ((s[o] = { - pattern: RegExp( - /(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace( - /__/g, - function () { - return o; - }, - ), - "i", - ), - lookbehind: !0, - greedy: !0, - inside: l, - }), - n.languages.insertBefore("markup", "cdata", s)); - }, "addInlined"), - }), - Object.defineProperty(n.languages.markup.tag, "addAttribute", { - value: m(function (o, a) { - n.languages.markup.tag.inside["special-attr"].push({ - pattern: RegExp( - /(^|["'\s])/.source + - "(?:" + - o + - ")" + - /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, - "i", - ), - lookbehind: !0, - inside: { - "attr-name": /^[^\s=]+/, - "attr-value": { - pattern: /=[\s\S]+/, - inside: { - value: { - pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, - lookbehind: !0, - alias: [a, "language-" + a], - inside: n.languages[a], - }, - punctuation: [ - { pattern: /^=/, alias: "attr-equals" }, - /"|'/, - ], - }, - }, - }, - }); - }, "value"), - }), - (n.languages.html = n.languages.markup), - (n.languages.mathml = n.languages.markup), - (n.languages.svg = n.languages.markup), - (n.languages.xml = n.languages.extend("markup", {})), - (n.languages.ssml = n.languages.xml), - (n.languages.atom = n.languages.xml), - (n.languages.rss = n.languages.xml)); - } - m(r, "markup"); - }), - ev = te((e, t) => { - ((t.exports = r), (r.displayName = "css"), (r.aliases = [])); - function r(n) { - (function (o) { - var a = - /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/; - ((o.languages.css = { - comment: /\/\*[\s\S]*?\*\//, - atrule: { - pattern: /@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/, - inside: { - rule: /^@[\w-]+/, - "selector-function-argument": { - pattern: - /(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/, - lookbehind: !0, - alias: "selector", - }, - keyword: { - pattern: /(^|[^\w-])(?:and|not|only|or)(?![\w-])/, - lookbehind: !0, - }, - }, - }, - url: { - pattern: RegExp( - "\\burl\\((?:" + - a.source + - "|" + - /(?:[^\\\r\n()"']|\\[\s\S])*/.source + - ")\\)", - "i", - ), - greedy: !0, - inside: { - function: /^url/i, - punctuation: /^\(|\)$/, - string: { pattern: RegExp("^" + a.source + "$"), alias: "url" }, - }, - }, - selector: { - pattern: RegExp( - `(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|` + - a.source + - ")*(?=\\s*\\{)", - ), - lookbehind: !0, - }, - string: { pattern: a, greedy: !0 }, - property: { - pattern: - /(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i, - lookbehind: !0, - }, - important: /!important\b/i, - function: { - pattern: /(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i, - lookbehind: !0, - }, - punctuation: /[(){};:,]/, - }), - (o.languages.css.atrule.inside.rest = o.languages.css)); - var i = o.languages.markup; - i && - (i.tag.addInlined("style", "css"), - i.tag.addAttribute("style", "css")); - })(n); - } - m(r, "css"); - }), - Mk = te((e, t) => { - ((t.exports = r), (r.displayName = "clike"), (r.aliases = [])); - function r(n) { - n.languages.clike = { - comment: [ - { - pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, - lookbehind: !0, - greedy: !0, - }, - { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }, - ], - string: { - pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, - greedy: !0, - }, - "class-name": { - pattern: - /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, - lookbehind: !0, - inside: { punctuation: /[.\\]/ }, - }, - keyword: - /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, - boolean: /\b(?:false|true)\b/, - function: /\b\w+(?=\()/, - number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, - operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, - punctuation: /[{}[\];(),.:]/, - }; - } - m(r, "clike"); - }), - zk = te((e, t) => { - ((t.exports = r), (r.displayName = "javascript"), (r.aliases = ["js"])); - function r(n) { - ((n.languages.javascript = n.languages.extend("clike", { - "class-name": [ - n.languages.clike["class-name"], - { - pattern: - /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, - lookbehind: !0, - }, - ], - keyword: [ - { pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, - { - pattern: - /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, - lookbehind: !0, - }, - ], - function: - /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, - number: { - pattern: RegExp( - /(^|[^\w$])/.source + - "(?:" + - (/NaN|Infinity/.source + - "|" + - /0[bB][01]+(?:_[01]+)*n?/.source + - "|" + - /0[oO][0-7]+(?:_[0-7]+)*n?/.source + - "|" + - /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + - "|" + - /\d+(?:_\d+)*n/.source + - "|" + - /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/ - .source) + - ")" + - /(?![\w$])/.source, - ), - lookbehind: !0, - }, - operator: - /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/, - })), - (n.languages.javascript["class-name"][0].pattern = - /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/), - n.languages.insertBefore("javascript", "keyword", { - regex: { - pattern: - /((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/, - lookbehind: !0, - greedy: !0, - inside: { - "regex-source": { - pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, - lookbehind: !0, - alias: "language-regex", - inside: n.languages.regex, - }, - "regex-delimiter": /^\/|\/$/, - "regex-flags": /^[a-z]+$/, - }, - }, - "function-variable": { - pattern: - /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, - alias: "function", - }, - parameter: [ - { - pattern: - /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, - lookbehind: !0, - inside: n.languages.javascript, - }, - { - pattern: - /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, - lookbehind: !0, - inside: n.languages.javascript, - }, - { - pattern: - /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, - lookbehind: !0, - inside: n.languages.javascript, - }, - { - pattern: - /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, - lookbehind: !0, - inside: n.languages.javascript, - }, - ], - constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/, - }), - n.languages.insertBefore("javascript", "string", { - hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, - "template-string": { - pattern: - /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, - greedy: !0, - inside: { - "template-punctuation": { pattern: /^`|`$/, alias: "string" }, - interpolation: { - pattern: - /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, - lookbehind: !0, - inside: { - "interpolation-punctuation": { - pattern: /^\$\{|\}$/, - alias: "punctuation", - }, - rest: n.languages.javascript, - }, - }, - string: /[\s\S]+/, - }, - }, - "string-property": { - pattern: - /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, - lookbehind: !0, - greedy: !0, - alias: "property", - }, - }), - n.languages.insertBefore("javascript", "operator", { - "literal-property": { - pattern: - /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, - lookbehind: !0, - alias: "property", - }, - }), - n.languages.markup && - (n.languages.markup.tag.addInlined("script", "javascript"), - n.languages.markup.tag.addAttribute( - /on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/ - .source, - "javascript", - )), - (n.languages.js = n.languages.javascript)); - } - m(r, "javascript"); - }), - Hk = te((e, t) => { - var r = - typeof globalThis == "object" - ? globalThis - : typeof self == "object" - ? self - : typeof window == "object" - ? window - : typeof global == "object" - ? global - : {}, - n = S(); - r.Prism = { manual: !0, disableWorkerMessageHandler: !0 }; - var o = _k(), - a = Nk(), - i = jk(), - l = Q1(), - s = ev(), - u = Mk(), - d = zk(); - n(); - var p = {}.hasOwnProperty; - function c() {} - (m(c, "Refractor"), (c.prototype = i)); - var f = new c(); - ((t.exports = f), - (f.highlight = x), - (f.register = g), - (f.alias = y), - (f.registered = v), - (f.listLanguages = C), - g(l), - g(s), - g(u), - g(d), - (f.util.encode = $), - (f.Token.stringify = w)); - function g(D) { - if (typeof D != "function" || !D.displayName) - throw new Error("Expected `function` for `grammar`, got `" + D + "`"); - f.languages[D.displayName] === void 0 && D(f); - } - m(g, "register"); - function y(D, F) { - var k = f.languages, - _ = D, - I, - L, - j, - B; - F && ((_ = {}), (_[D] = F)); - for (I in _) - for ( - L = _[I], L = typeof L == "string" ? [L] : L, j = L.length, B = -1; - ++B < j; - ) - k[L[B]] = k[I]; - } - m(y, "alias"); - function x(D, F) { - var k = i.highlight, - _; - if (typeof D != "string") - throw new Error("Expected `string` for `value`, got `" + D + "`"); - if (f.util.type(F) === "Object") ((_ = F), (F = null)); - else { - if (typeof F != "string") - throw new Error("Expected `string` for `name`, got `" + F + "`"); - if (p.call(f.languages, F)) _ = f.languages[F]; - else throw new Error("Unknown language: `" + F + "` is not registered"); - } - return k.call(this, D, _, F); - } - m(x, "highlight"); - function v(D) { - if (typeof D != "string") - throw new Error("Expected `string` for `language`, got `" + D + "`"); - return p.call(f.languages, D); - } - m(v, "registered"); - function C() { - var D = f.languages, - F = [], - k; - for (k in D) p.call(D, k) && typeof D[k] == "object" && F.push(k); - return F; - } - m(C, "listLanguages"); - function w(D, F, k) { - var _; - return typeof D == "string" - ? { type: "text", value: D } - : f.util.type(D) === "Array" - ? E(D, F) - : ((_ = { - type: D.type, - content: f.Token.stringify(D.content, F, k), - tag: "span", - classes: ["token", D.type], - attributes: {}, - language: F, - parent: k, - }), - D.alias && (_.classes = _.classes.concat(D.alias)), - f.hooks.run("wrap", _), - o(_.tag + "." + _.classes.join("."), A(_.attributes), _.content)); - } - m(w, "stringify"); - function E(D, F) { - for (var k = [], _ = D.length, I = -1, L; ++I < _; ) - ((L = D[I]), L !== "" && L !== null && L !== void 0 && k.push(L)); - for (I = -1, _ = k.length; ++I < _; ) - ((L = k[I]), (k[I] = f.Token.stringify(L, F, k))); - return k; - } - m(E, "stringifyAll"); - function $(D) { - return D; - } - m($, "encode"); - function A(D) { - var F; - for (F in D) D[F] = a(D[F]); - return D; - } - m(A, "attributes"); - function S() { - var D = "Prism" in r, - F = D ? r.Prism : void 0; - return k; - function k() { - (D ? (r.Prism = F) : delete r.Prism, (D = void 0), (F = void 0)); - } - } - m(S, "capture"); - }), - xa, - Ea, - za, - Uk = N(() => { - (mk(), - (xa = je(Hk())), - (Ea = V1(xa.default, {})), - (Ea.registerLanguage = function (e, t) { - return xa.default.register(t); - }), - (Ea.alias = function (e, t) { - return xa.default.alias(e, t); - }), - (za = Ea)); - }), - Wk = N(() => { - L1(); - }), - Vk = te((e, t) => { - ((t.exports = r), (r.displayName = "bash"), (r.aliases = ["shell"])); - function r(n) { - (function (o) { - var a = - "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", - i = { - pattern: /(^(["']?)\w+\2)[ \t]+\S.*/, - lookbehind: !0, - alias: "punctuation", - inside: null, - }, - l = { - bash: i, - environment: { pattern: RegExp("\\$" + a), alias: "constant" }, - variable: [ - { - pattern: /\$?\(\([\s\S]+?\)\)/, - greedy: !0, - inside: { - variable: [ - { pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: !0 }, - /^\$\(\(/, - ], - number: - /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/, - operator: - /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/, - punctuation: /\(\(?|\)\)?|,|;/, - }, - }, - { - pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/, - greedy: !0, - inside: { variable: /^\$\(|^`|\)$|`$/ }, - }, - { - pattern: /\$\{[^}]+\}/, - greedy: !0, - inside: { - operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/, - punctuation: /[\[\]]/, - environment: { - pattern: RegExp("(\\{)" + a), - lookbehind: !0, - alias: "constant", - }, - }, - }, - /\$(?:\w+|[#?*!@$])/, - ], - entity: - /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/, - }; - ((o.languages.bash = { - shebang: { pattern: /^#!\s*\/.*/, alias: "important" }, - comment: { pattern: /(^|[^"{\\$])#.*/, lookbehind: !0 }, - "function-name": [ - { - pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/, - lookbehind: !0, - alias: "function", - }, - { pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/, alias: "function" }, - ], - "for-or-select": { - pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/, - alias: "variable", - lookbehind: !0, - }, - "assign-left": { - pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/, - inside: { - environment: { - pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + a), - lookbehind: !0, - alias: "constant", - }, - }, - alias: "variable", - lookbehind: !0, - }, - string: [ - { - pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/, - lookbehind: !0, - greedy: !0, - inside: l, - }, - { - pattern: - /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/, - lookbehind: !0, - greedy: !0, - inside: { bash: i }, - }, - { - pattern: - /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/, - lookbehind: !0, - greedy: !0, - inside: l, - }, - { pattern: /(^|[^$\\])'[^']*'/, lookbehind: !0, greedy: !0 }, - { - pattern: /\$'(?:[^'\\]|\\[\s\S])*'/, - greedy: !0, - inside: { entity: l.entity }, - }, - ], - environment: { pattern: RegExp("\\$?" + a), alias: "constant" }, - variable: l.variable, - function: { - pattern: - /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/, - lookbehind: !0, - }, - keyword: { - pattern: - /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/, - lookbehind: !0, - }, - builtin: { - pattern: - /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/, - lookbehind: !0, - alias: "class-name", - }, - boolean: { - pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/, - lookbehind: !0, - }, - "file-descriptor": { pattern: /\B&\d\b/, alias: "important" }, - operator: { - pattern: - /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/, - inside: { - "file-descriptor": { pattern: /^\d/, alias: "important" }, - }, - }, - punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/, - number: { - pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/, - lookbehind: !0, - }, - }), - (i.inside = o.languages.bash)); - for ( - var s = [ - "comment", - "function-name", - "for-or-select", - "assign-left", - "string", - "environment", - "function", - "keyword", - "builtin", - "boolean", - "file-descriptor", - "operator", - "punctuation", - "number", - ], - u = l.variable[1].inside, - d = 0; - d < s.length; - d++ - ) - u[s[d]] = o.languages.bash[s[d]]; - o.languages.shell = o.languages.bash; - })(n); - } - m(r, "bash"); - }), - Wf, - tv, - qk = N(() => { - ((Wf = je(Vk())), (tv = Wf.default)); - }), - Vf, - rv, - Gk = N(() => { - ((Vf = je(ev())), (rv = Vf.default)); - }), - Yk = te((e, t) => { - ((t.exports = r), (r.displayName = "graphql"), (r.aliases = [])); - function r(n) { - ((n.languages.graphql = { - comment: /#.*/, - description: { - pattern: - /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, - greedy: !0, - alias: "string", - inside: { - "language-markdown": { - pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, - lookbehind: !0, - inside: n.languages.markdown, - }, - }, - }, - string: { - pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, - greedy: !0, - }, - number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, - boolean: /\b(?:false|true)\b/, - variable: /\$[a-z_]\w*/i, - directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, - "attr-name": { - pattern: - /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, - greedy: !0, - }, - "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, - scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, - constant: /\b[A-Z][A-Z_\d]*\b/, - "class-name": { - pattern: - /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, - lookbehind: !0, - }, - fragment: { - pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, - lookbehind: !0, - alias: "function", - }, - "definition-mutation": { - pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, - lookbehind: !0, - alias: "function", - }, - "definition-query": { - pattern: /(\bquery\s+)[a-zA-Z_]\w*/, - lookbehind: !0, - alias: "function", - }, - keyword: - /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, - operator: /[!=|&]|\.{3}/, - "property-query": /\w+(?=\s*\()/, - object: /\w+(?=\s*\{)/, - punctuation: /[!(){}\[\]:=,]/, - property: /\w+/, - }), - n.hooks.add( - "after-tokenize", - m(function (o) { - if (o.language !== "graphql") return; - var a = o.tokens.filter(function (C) { - return ( - typeof C != "string" && - C.type !== "comment" && - C.type !== "scalar" - ); - }), - i = 0; - function l(C) { - return a[i + C]; - } - m(l, "getToken"); - function s(C, w) { - w = w || 0; - for (var E = 0; E < C.length; E++) { - var $ = l(E + w); - if (!$ || $.type !== C[E]) return !1; - } - return !0; - } - m(s, "isTokenType"); - function u(C, w) { - for (var E = 1, $ = i; $ < a.length; $++) { - var A = a[$], - S = A.content; - if (A.type === "punctuation" && typeof S == "string") { - if (C.test(S)) E++; - else if (w.test(S) && (E--, E === 0)) return $; - } - } - return -1; - } - m(u, "findClosingBracket"); - function d(C, w) { - var E = C.alias; - (E ? Array.isArray(E) || (C.alias = E = [E]) : (C.alias = E = []), - E.push(w)); - } - for (m(d, "addAlias"); i < a.length; ) { - var p = a[i++]; - if (p.type === "keyword" && p.content === "mutation") { - var c = []; - if ( - s(["definition-mutation", "punctuation"]) && - l(1).content === "(" - ) { - i += 2; - var f = u(/^\($/, /^\)$/); - if (f === -1) continue; - for (; i < f; i++) { - var g = l(0); - g.type === "variable" && - (d(g, "variable-input"), c.push(g.content)); - } - i = f + 1; - } - if ( - s(["punctuation", "property-query"]) && - l(0).content === "{" && - (i++, d(l(0), "property-mutation"), c.length > 0) - ) { - var y = u(/^\{$/, /^\}$/); - if (y === -1) continue; - for (var x = i; x < y; x++) { - var v = a[x]; - v.type === "variable" && - c.indexOf(v.content) >= 0 && - d(v, "variable-input"); - } - } - } - } - }, "afterTokenizeGraphql"), - )); - } - m(r, "graphql"); - }), - qf, - nv, - Kk = N(() => { - ((qf = je(Yk())), (nv = qf.default)); - }), - Xk = te((e, t) => { - ((t.exports = r), (r.displayName = "jsExtras"), (r.aliases = [])); - function r(n) { - (function (o) { - (o.languages.insertBefore("javascript", "function-variable", { - "method-variable": { - pattern: RegExp( - "(\\.\\s*)" + - o.languages.javascript["function-variable"].pattern.source, - ), - lookbehind: !0, - alias: [ - "function-variable", - "method", - "function", - "property-access", - ], - }, - }), - o.languages.insertBefore("javascript", "function", { - method: { - pattern: RegExp( - "(\\.\\s*)" + o.languages.javascript.function.source, - ), - lookbehind: !0, - alias: ["function", "property-access"], - }, - }), - o.languages.insertBefore("javascript", "constant", { - "known-class-name": [ - { - pattern: - /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, - alias: "class-name", - }, - { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }, - ], - })); - function a(p, c) { - return RegExp( - p.replace(//g, function () { - return /(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/ - .source; - }), - c, - ); - } - (m(a, "withId"), - o.languages.insertBefore("javascript", "keyword", { - imports: { - pattern: a( - /(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/ - .source, - ), - lookbehind: !0, - inside: o.languages.javascript, - }, - exports: { - pattern: a( - /(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/ - .source, - ), - lookbehind: !0, - inside: o.languages.javascript, - }, - }), - o.languages.javascript.keyword.unshift( - { - pattern: /\b(?:as|default|export|from|import)\b/, - alias: "module", - }, - { - pattern: - /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, - alias: "control-flow", - }, - { pattern: /\bnull\b/, alias: ["null", "nil"] }, - { pattern: /\bundefined\b/, alias: "nil" }, - ), - o.languages.insertBefore("javascript", "operator", { - spread: { pattern: /\.{3}/, alias: "operator" }, - arrow: { pattern: /=>/, alias: "operator" }, - }), - o.languages.insertBefore("javascript", "punctuation", { - "property-access": { - pattern: a(/(\.\s*)#?/.source), - lookbehind: !0, - }, - "maybe-class-name": { - pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, - lookbehind: !0, - }, - dom: { - pattern: - /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, - alias: "variable", - }, - console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" }, - })); - for ( - var i = [ - "function", - "function-variable", - "method", - "method-variable", - "property-access", - ], - l = 0; - l < i.length; - l++ - ) { - var s = i[l], - u = o.languages.javascript[s]; - o.util.type(u) === "RegExp" && - (u = o.languages.javascript[s] = { pattern: u }); - var d = u.inside || {}; - ((u.inside = d), (d["maybe-class-name"] = /^[A-Z][\s\S]*/)); - } - })(n); - } - m(r, "jsExtras"); - }), - Gf, - ov, - Zk = N(() => { - ((Gf = je(Xk())), (ov = Gf.default)); - }), - Jk = te((e, t) => { - ((t.exports = r), (r.displayName = "json"), (r.aliases = ["webmanifest"])); - function r(n) { - ((n.languages.json = { - property: { - pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, - lookbehind: !0, - greedy: !0, - }, - string: { - pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, - lookbehind: !0, - greedy: !0, - }, - comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, - number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, - punctuation: /[{}[\],]/, - operator: /:/, - boolean: /\b(?:false|true)\b/, - null: { pattern: /\bnull\b/, alias: "keyword" }, - }), - (n.languages.webmanifest = n.languages.json)); - } - m(r, "json"); - }), - Yf, - av, - Qk = N(() => { - ((Yf = je(Jk())), (av = Yf.default)); - }), - iv = te((e, t) => { - ((t.exports = r), (r.displayName = "jsx"), (r.aliases = [])); - function r(n) { - (function (o) { - var a = o.util.clone(o.languages.javascript), - i = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, - l = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, - s = /(?:\{*\.{3}(?:[^{}]|)*\})/.source; - function u(c, f) { - return ( - (c = c - .replace(//g, function () { - return i; - }) - .replace(//g, function () { - return l; - }) - .replace(//g, function () { - return s; - })), - RegExp(c, f) - ); - } - (m(u, "re"), - (s = u(s).source), - (o.languages.jsx = o.languages.extend("markup", a)), - (o.languages.jsx.tag.pattern = u( - /<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/ - .source, - )), - (o.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/), - (o.languages.jsx.tag.inside["attr-value"].pattern = - /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/), - (o.languages.jsx.tag.inside.tag.inside["class-name"] = - /^[A-Z]\w*(?:\.[A-Z]\w*)*$/), - (o.languages.jsx.tag.inside.comment = a.comment), - o.languages.insertBefore( - "inside", - "attr-name", - { - spread: { - pattern: u(//.source), - inside: o.languages.jsx, - }, - }, - o.languages.jsx.tag, - ), - o.languages.insertBefore( - "inside", - "special-attr", - { - script: { - pattern: u(/=/.source), - alias: "language-javascript", - inside: { - "script-punctuation": { - pattern: /^=(?=\{)/, - alias: "punctuation", - }, - rest: o.languages.jsx, - }, - }, - }, - o.languages.jsx.tag, - )); - var d = m(function (c) { - return c - ? typeof c == "string" - ? c - : typeof c.content == "string" - ? c.content - : c.content.map(d).join("") - : ""; - }, "stringifyToken"), - p = m(function (c) { - for (var f = [], g = 0; g < c.length; g++) { - var y = c[g], - x = !1; - if ( - (typeof y != "string" && - (y.type === "tag" && - y.content[0] && - y.content[0].type === "tag" - ? y.content[0].content[0].content === " 0 && - f[f.length - 1].tagName === - d(y.content[0].content[1]) && - f.pop() - : y.content[y.content.length - 1].content === "/>" || - f.push({ - tagName: d(y.content[0].content[1]), - openedBraces: 0, - }) - : f.length > 0 && - y.type === "punctuation" && - y.content === "{" - ? f[f.length - 1].openedBraces++ - : f.length > 0 && - f[f.length - 1].openedBraces > 0 && - y.type === "punctuation" && - y.content === "}" - ? f[f.length - 1].openedBraces-- - : (x = !0)), - (x || typeof y == "string") && - f.length > 0 && - f[f.length - 1].openedBraces === 0) - ) { - var v = d(y); - (g < c.length - 1 && - (typeof c[g + 1] == "string" || - c[g + 1].type === "plain-text") && - ((v += d(c[g + 1])), c.splice(g + 1, 1)), - g > 0 && - (typeof c[g - 1] == "string" || - c[g - 1].type === "plain-text") && - ((v = d(c[g - 1]) + v), c.splice(g - 1, 1), g--), - (c[g] = new o.Token("plain-text", v, null, v))); - } - y.content && typeof y.content != "string" && p(y.content); - } - }, "walkTokens"); - o.hooks.add("after-tokenize", function (c) { - (c.language !== "jsx" && c.language !== "tsx") || p(c.tokens); - }); - })(n); - } - m(r, "jsx"); - }), - Kf, - lv, - eO = N(() => { - ((Kf = je(iv())), (lv = Kf.default)); - }), - tO = te((e, t) => { - ((t.exports = r), (r.displayName = "markdown"), (r.aliases = ["md"])); - function r(n) { - (function (o) { - var a = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source; - function i(g) { - return ( - (g = g.replace(//g, function () { - return a; - })), - RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + g + ")") - ); - } - m(i, "createInline"); - var l = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/ - .source, - s = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace( - /__/g, - function () { - return l; - }, - ), - u = - /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/ - .source; - ((o.languages.markdown = o.languages.extend("markup", {})), - o.languages.insertBefore("markdown", "prolog", { - "front-matter-block": { - pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, - lookbehind: !0, - greedy: !0, - inside: { - punctuation: /^---|---$/, - "front-matter": { - pattern: /\S+(?:\s+\S+)*/, - alias: ["yaml", "language-yaml"], - inside: o.languages.yaml, - }, - }, - }, - blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, - table: { - pattern: RegExp("^" + s + u + "(?:" + s + ")*", "m"), - inside: { - "table-data-rows": { - pattern: RegExp("^(" + s + u + ")(?:" + s + ")*$"), - lookbehind: !0, - inside: { - "table-data": { - pattern: RegExp(l), - inside: o.languages.markdown, - }, - punctuation: /\|/, - }, - }, - "table-line": { - pattern: RegExp("^(" + s + ")" + u + "$"), - lookbehind: !0, - inside: { punctuation: /\||:?-{3,}:?/ }, - }, - "table-header-row": { - pattern: RegExp("^" + s + "$"), - inside: { - "table-header": { - pattern: RegExp(l), - alias: "important", - inside: o.languages.markdown, - }, - punctuation: /\|/, - }, - }, - }, - }, - code: [ - { - pattern: - /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, - lookbehind: !0, - alias: "keyword", - }, - { - pattern: /^```[\s\S]*?^```$/m, - greedy: !0, - inside: { - "code-block": { - pattern: - /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, - lookbehind: !0, - }, - "code-language": { pattern: /^(```).+/, lookbehind: !0 }, - punctuation: /```/, - }, - }, - ], - title: [ - { - pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, - alias: "important", - inside: { punctuation: /==+$|--+$/ }, - }, - { - pattern: /(^\s*)#.+/m, - lookbehind: !0, - alias: "important", - inside: { punctuation: /^#+|#+$/ }, - }, - ], - hr: { - pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, - lookbehind: !0, - alias: "punctuation", - }, - list: { - pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, - lookbehind: !0, - alias: "punctuation", - }, - "url-reference": { - pattern: - /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, - inside: { - variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, - string: - /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, - punctuation: /^[\[\]!:]|[<>]/, - }, - alias: "url", - }, - bold: { - pattern: i( - /\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/ - .source, - ), - lookbehind: !0, - greedy: !0, - inside: { - content: { - pattern: /(^..)[\s\S]+(?=..$)/, - lookbehind: !0, - inside: {}, - }, - punctuation: /\*\*|__/, - }, - }, - italic: { - pattern: i( - /\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/ - .source, - ), - lookbehind: !0, - greedy: !0, - inside: { - content: { - pattern: /(^.)[\s\S]+(?=.$)/, - lookbehind: !0, - inside: {}, - }, - punctuation: /[*_]/, - }, - }, - strike: { - pattern: i(/(~~?)(?:(?!~))+\2/.source), - lookbehind: !0, - greedy: !0, - inside: { - content: { - pattern: /(^~~?)[\s\S]+(?=\1$)/, - lookbehind: !0, - inside: {}, - }, - punctuation: /~~?/, - }, - }, - "code-snippet": { - pattern: - /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, - lookbehind: !0, - greedy: !0, - alias: ["code", "keyword"], - }, - url: { - pattern: i( - /!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/ - .source, - ), - lookbehind: !0, - greedy: !0, - inside: { - operator: /^!/, - content: { - pattern: /(^\[)[^\]]+(?=\])/, - lookbehind: !0, - inside: {}, - }, - variable: { - pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, - lookbehind: !0, - }, - url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, - string: { - pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, - lookbehind: !0, - }, - }, - }, - }), - ["url", "bold", "italic", "strike"].forEach(function (g) { - ["url", "bold", "italic", "strike", "code-snippet"].forEach( - function (y) { - g !== y && - (o.languages.markdown[g].inside.content.inside[y] = - o.languages.markdown[y]); - }, - ); - }), - o.hooks.add("after-tokenize", function (g) { - if (g.language !== "markdown" && g.language !== "md") return; - function y(x) { - if (!(!x || typeof x == "string")) - for (var v = 0, C = x.length; v < C; v++) { - var w = x[v]; - if (w.type !== "code") { - y(w.content); - continue; - } - var E = w.content[1], - $ = w.content[3]; - if ( - E && - $ && - E.type === "code-language" && - $.type === "code-block" && - typeof E.content == "string" - ) { - var A = E.content - .replace(/\b#/g, "sharp") - .replace(/\b\+\+/g, "pp"); - A = (/[a-z][\w-]*/i.exec(A) || [""])[0].toLowerCase(); - var S = "language-" + A; - $.alias - ? typeof $.alias == "string" - ? ($.alias = [$.alias, S]) - : $.alias.push(S) - : ($.alias = [S]); - } - } - } - (m(y, "walkTokens"), y(g.tokens)); - }), - o.hooks.add("wrap", function (g) { - if (g.type === "code-block") { - for (var y = "", x = 0, v = g.classes.length; x < v; x++) { - var C = g.classes[x], - w = /language-(.+)/.exec(C); - if (w) { - y = w[1]; - break; - } - } - var E = o.languages[y]; - if (E) g.content = o.highlight(f(g.content.value), E, y); - else if (y && y !== "none" && o.plugins.autoloader) { - var $ = - "md-" + - new Date().valueOf() + - "-" + - Math.floor(Math.random() * 1e16); - ((g.attributes.id = $), - o.plugins.autoloader.loadLanguages(y, function () { - var A = document.getElementById($); - A && - (A.innerHTML = o.highlight( - A.textContent, - o.languages[y], - y, - )); - })); - } - } - })); - var d = RegExp(o.languages.markup.tag.pattern.source, "gi"), - p = { amp: "&", lt: "<", gt: ">", quot: '"' }, - c = String.fromCodePoint || String.fromCharCode; - function f(g) { - var y = g.replace(d, ""); - return ( - (y = y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function (x, v) { - if (((v = v.toLowerCase()), v[0] === "#")) { - var C; - return ( - v[1] === "x" - ? (C = parseInt(v.slice(2), 16)) - : (C = Number(v.slice(1))), - c(C) - ); - } else { - var w = p[v]; - return w || x; - } - })), - y - ); - } - (m(f, "textContent"), (o.languages.md = o.languages.markdown)); - })(n); - } - m(r, "markdown"); - }), - Xf, - sv, - rO = N(() => { - ((Xf = je(tO())), (sv = Xf.default)); - }), - Zf, - uv, - nO = N(() => { - ((Zf = je(Q1())), (uv = Zf.default)); - }), - cv = te((e, t) => { - ((t.exports = r), (r.displayName = "typescript"), (r.aliases = ["ts"])); - function r(n) { - (function (o) { - ((o.languages.typescript = o.languages.extend("javascript", { - "class-name": { - pattern: - /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, - lookbehind: !0, - greedy: !0, - inside: null, - }, - builtin: - /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/, - })), - o.languages.typescript.keyword.push( - /\b(?:abstract|declare|is|keyof|readonly|require)\b/, - /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, - /\btype\b(?=\s*(?:[\{*]|$))/, - ), - delete o.languages.typescript.parameter, - delete o.languages.typescript["literal-property"]); - var a = o.languages.extend("typescript", {}); - (delete a["class-name"], - (o.languages.typescript["class-name"].inside = a), - o.languages.insertBefore("typescript", "function", { - decorator: { - pattern: /@[$\w\xA0-\uFFFF]+/, - inside: { - at: { pattern: /^@/, alias: "operator" }, - function: /^[\s\S]+/, - }, - }, - "generic-function": { - pattern: - /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, - greedy: !0, - inside: { - function: - /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, - generic: { - pattern: /<[\s\S]+/, - alias: "class-name", - inside: a, - }, - }, - }, - }), - (o.languages.ts = o.languages.typescript)); - })(n); - } - m(r, "typescript"); - }), - oO = te((e, t) => { - var r = iv(), - n = cv(); - ((t.exports = o), (o.displayName = "tsx"), (o.aliases = [])); - function o(a) { - (a.register(r), - a.register(n), - (function (i) { - var l = i.util.clone(i.languages.typescript); - ((i.languages.tsx = i.languages.extend("jsx", l)), - delete i.languages.tsx.parameter, - delete i.languages.tsx["literal-property"]); - var s = i.languages.tsx.tag; - ((s.pattern = RegExp( - /(^|[^\w$]|(?=<\/))/.source + "(?:" + s.pattern.source + ")", - s.pattern.flags, - )), - (s.lookbehind = !0)); - })(a)); - } - m(o, "tsx"); - }), - Jf, - dv, - aO = N(() => { - ((Jf = je(oO())), (dv = Jf.default)); - }), - Qf, - pv, - iO = N(() => { - ((Qf = je(cv())), (pv = Qf.default)); - }), - lO = te((e, t) => { - ((t.exports = r), (r.displayName = "yaml"), (r.aliases = ["yml"])); - function r(n) { - (function (o) { - var a = /[*&][^\s[\]{},]+/, - i = - /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, - l = - "(?:" + - i.source + - "(?:[ ]+" + - a.source + - ")?|" + - a.source + - "(?:[ ]+" + - i.source + - ")?)", - s = - /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace( - //g, - function () { - return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/ - .source; - }, - ), - u = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source; - function d(p, c) { - c = (c || "").replace(/m/g, "") + "m"; - var f = - /([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source - .replace(/<>/g, function () { - return l; - }) - .replace(/<>/g, function () { - return p; - }); - return RegExp(f, c); - } - (m(d, "createValuePattern"), - (o.languages.yaml = { - scalar: { - pattern: RegExp( - /([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace( - /<>/g, - function () { - return l; - }, - ), - ), - lookbehind: !0, - alias: "string", - }, - comment: /#.*/, - key: { - pattern: RegExp( - /((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source - .replace(/<>/g, function () { - return l; - }) - .replace(/<>/g, function () { - return "(?:" + s + "|" + u + ")"; - }), - ), - lookbehind: !0, - greedy: !0, - alias: "atrule", - }, - directive: { - pattern: /(^[ \t]*)%.+/m, - lookbehind: !0, - alias: "important", - }, - datetime: { - pattern: d( - /\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/ - .source, - ), - lookbehind: !0, - alias: "number", - }, - boolean: { - pattern: d(/false|true/.source, "i"), - lookbehind: !0, - alias: "important", - }, - null: { - pattern: d(/null|~/.source, "i"), - lookbehind: !0, - alias: "important", - }, - string: { pattern: d(u), lookbehind: !0, greedy: !0 }, - number: { - pattern: d( - /[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/ - .source, - "i", - ), - lookbehind: !0, - }, - tag: i, - important: a, - punctuation: /---|[:[\]{}\-,|>?]|\.\.\./, - }), - (o.languages.yml = o.languages.yaml)); - })(n); - } - m(r, "yaml"); - }), - eg, - fv, - sO = N(() => { - ((eg = je(lO())), (fv = eg.default)); - }), - tg, - Yl, - al, - gv = N(() => { - ((tg = T.div(({ theme: e }) => ({ - position: "absolute", - bottom: 0, - right: 0, - maxWidth: "100%", - display: "flex", - background: e.background.content, - zIndex: 1, - }))), - (Yl = T.button( - ({ theme: e }) => ({ - margin: 0, - border: "0 none", - padding: "4px 10px", - cursor: "pointer", - display: "flex", - alignItems: "center", - color: e.color.defaultText, - background: e.background.content, - fontSize: 12, - lineHeight: "16px", - fontFamily: e.typography.fonts.base, - fontWeight: e.typography.weight.bold, - borderTop: `1px solid ${e.appBorderColor}`, - borderLeft: `1px solid ${e.appBorderColor}`, - marginLeft: -1, - borderRadius: "4px 0 0 0", - "&:not(:last-child)": { - borderRight: `1px solid ${e.appBorderColor}`, - }, - "& + *": { - borderLeft: `1px solid ${e.appBorderColor}`, - borderRadius: 0, - }, - "&:focus": { - boxShadow: `${e.color.secondary} 0 -3px 0 0 inset`, - outline: "0 none", - "@media (forced-colors: active)": { - outline: "1px solid highlight", - }, - }, - }), - ({ disabled: e }) => e && { cursor: "not-allowed", opacity: 0.5 }, - )), - (Yl.displayName = "ActionButton"), - (al = m( - ({ actionItems: e, ...t }) => - h.createElement( - tg, - { ...t }, - e.map(({ title: r, className: n, onClick: o, disabled: a }, i) => - h.createElement( - Yl, - { key: i, className: n, onClick: o, disabled: !!a }, - r, - ), - ), - ), - "ActionBar", - ))); - }); -function mv(e, t) { - typeof e == "function" ? e(t) : e != null && (e.current = t); -} -function hd(...e) { - return (t) => e.forEach((r) => mv(r, t)); -} -function xr(...e) { - return b.useCallback(hd(...e), e); -} -var yd = N(() => { - (m(mv, "setRef"), m(hd, "composeRefs"), m(xr, "useComposedRefs")); -}); -function rg(e) { - return b.isValidElement(e) && e.type === hv; -} -function ng(e, t) { - let r = { ...t }; - for (let n in t) { - let o = e[n], - a = t[n]; - /^on[A-Z]/.test(n) - ? o && a - ? (r[n] = (...i) => { - (a(...i), o(...i)); - }) - : o && (r[n] = o) - : n === "style" - ? (r[n] = { ...o, ...a }) - : n === "className" && (r[n] = [o, a].filter(Boolean).join(" ")); - } - return { ...e, ...r }; -} -function og(e) { - let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, - r = t && "isReactWarning" in t && t.isReactWarning; - return r - ? e.ref - : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), - (r = t && "isReactWarning" in t && t.isReactWarning), - r ? e.props.ref : e.props.ref || e.ref); -} -var bu, - wa, - hv, - uO = N(() => { - (yd(), - (bu = b.forwardRef((e, t) => { - let { children: r, ...n } = e, - o = b.Children.toArray(r), - a = o.find(rg); - if (a) { - let i = a.props.children, - l = o.map((s) => - s === a - ? b.Children.count(i) > 1 - ? b.Children.only(null) - : b.isValidElement(i) - ? i.props.children - : null - : s, - ); - return q.jsx(wa, { - ...n, - ref: t, - children: b.isValidElement(i) ? b.cloneElement(i, void 0, l) : null, - }); - } - return q.jsx(wa, { ...n, ref: t, children: r }); - })), - (bu.displayName = "Slot"), - (wa = b.forwardRef((e, t) => { - let { children: r, ...n } = e; - if (b.isValidElement(r)) { - let o = og(r); - return b.cloneElement(r, { - ...ng(n, r.props), - ref: t ? hd(t, o) : o, - }); - } - return b.Children.count(r) > 1 ? b.Children.only(null) : null; - })), - (wa.displayName = "SlotClone"), - (hv = m( - ({ children: e }) => q.jsx(q.Fragment, { children: e }), - "Slottable", - )), - m(rg, "isSlottable"), - m(ng, "mergeProps"), - m(og, "getElementRef")); - }), - ag, - Sn, - cO = N(() => { - (uO(), - (ag = [ - "a", - "button", - "div", - "form", - "h2", - "h3", - "img", - "input", - "label", - "li", - "nav", - "ol", - "p", - "span", - "svg", - "ul", - ]), - (Sn = ag.reduce((e, t) => { - let r = b.forwardRef((n, o) => { - let { asChild: a, ...i } = n, - l = a ? bu : t; - return ( - typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), - q.jsx(l, { ...i, ref: o }) - ); - }); - return ((r.displayName = `Primitive.${t}`), { ...e, [t]: r }); - }, {}))); - }), - bi, - yv = N(() => { - bi = globalThis?.document ? b.useLayoutEffect : () => {}; - }); -function bv(e, t) { - return b.useReducer((r, n) => t[r][n] ?? r, e); -} -function ig(e) { - let [t, r] = b.useState(), - n = b.useRef({}), - o = b.useRef(e), - a = b.useRef("none"), - i = e ? "mounted" : "unmounted", - [l, s] = bv(i, { - mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" }, - unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" }, - unmounted: { MOUNT: "mounted" }, - }); - return ( - b.useEffect(() => { - let u = _o(n.current); - a.current = l === "mounted" ? u : "none"; - }, [l]), - bi(() => { - let u = n.current, - d = o.current; - if (d !== e) { - let p = a.current, - c = _o(u); - (e - ? s("MOUNT") - : c === "none" || u?.display === "none" - ? s("UNMOUNT") - : s(d && p !== c ? "ANIMATION_OUT" : "UNMOUNT"), - (o.current = e)); - } - }, [e, s]), - bi(() => { - if (t) { - let u = m((p) => { - let c = _o(n.current).includes(p.animationName); - p.target === t && c && Qi.flushSync(() => s("ANIMATION_END")); - }, "handleAnimationEnd"), - d = m((p) => { - p.target === t && (a.current = _o(n.current)); - }, "handleAnimationStart"); - return ( - t.addEventListener("animationstart", d), - t.addEventListener("animationcancel", u), - t.addEventListener("animationend", u), - () => { - (t.removeEventListener("animationstart", d), - t.removeEventListener("animationcancel", u), - t.removeEventListener("animationend", u)); - } - ); - } else s("ANIMATION_END"); - }, [t, s]), - { - isPresent: ["mounted", "unmountSuspended"].includes(l), - ref: b.useCallback((u) => { - (u && (n.current = getComputedStyle(u)), r(u)); - }, []), - } - ); -} -function _o(e) { - return e?.animationName || "none"; -} -function lg(e) { - let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, - r = t && "isReactWarning" in t && t.isReactWarning; - return r - ? e.ref - : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), - (r = t && "isReactWarning" in t && t.isReactWarning), - r ? e.props.ref : e.props.ref || e.ref); -} -var Dn, - dO = N(() => { - "use client"; - (yd(), - yv(), - m(bv, "useStateMachine"), - (Dn = m((e) => { - let { present: t, children: r } = e, - n = ig(t), - o = - typeof r == "function" - ? r({ present: n.isPresent }) - : b.Children.only(r), - a = xr(n.ref, lg(o)); - return typeof r == "function" || n.isPresent - ? b.cloneElement(o, { ref: a }) - : null; - }, "Presence")), - (Dn.displayName = "Presence"), - m(ig, "usePresence"), - m(_o, "getAnimationName"), - m(lg, "getElementRef")); - }); -function vv(e, t = []) { - let r = []; - function n(a, i) { - let l = b.createContext(i), - s = r.length; - r = [...r, i]; - function u(p) { - let { scope: c, children: f, ...g } = p, - y = c?.[e][s] || l, - x = b.useMemo(() => g, Object.values(g)); - return q.jsx(y.Provider, { value: x, children: f }); - } - m(u, "Provider"); - function d(p, c) { - let f = c?.[e][s] || l, - g = b.useContext(f); - if (g) return g; - if (i !== void 0) return i; - throw new Error(`\`${p}\` must be used within \`${a}\``); - } - return (m(d, "useContext2"), (u.displayName = a + "Provider"), [u, d]); - } - m(n, "createContext3"); - let o = m(() => { - let a = r.map((i) => b.createContext(i)); - return m(function (i) { - let l = i?.[e] || a; - return b.useMemo(() => ({ [`__scope${e}`]: { ...i, [e]: l } }), [i, l]); - }, "useScope"); - }, "createScope"); - return ((o.scopeName = e), [n, xv(o, ...t)]); -} -function xv(...e) { - let t = e[0]; - if (e.length === 1) return t; - let r = m(() => { - let n = e.map((o) => ({ useScope: o(), scopeName: o.scopeName })); - return m(function (o) { - let a = n.reduce((i, { useScope: l, scopeName: s }) => { - let u = l(o)[`__scope${s}`]; - return { ...i, ...u }; - }, {}); - return b.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]); - }, "useComposedScopes"); - }, "createScope"); - return ((r.scopeName = t.scopeName), r); -} -var pO = N(() => { - (m(vv, "createContextScope"), m(xv, "composeContextScopes")); -}); -function wr(e) { - let t = b.useRef(e); - return ( - b.useEffect(() => { - t.current = e; - }), - b.useMemo( - () => - (...r) => - t.current?.(...r), - [], - ) - ); -} -var fO = N(() => { - m(wr, "useCallbackRef"); -}); -function Ev(e) { - let t = b.useContext(wv); - return e || t || "ltr"; -} -var wv, - gO = N(() => { - ((wv = b.createContext(void 0)), m(Ev, "useDirection")); - }); -function Sv(e, [t, r]) { - return Math.min(r, Math.max(t, e)); -} -var mO = N(() => { - m(Sv, "clamp"); -}); -function mr(e, t, { checkForDefaultPrevented: r = !0 } = {}) { - return m(function (n) { - if ((e?.(n), r === !1 || !n.defaultPrevented)) return t?.(n); - }, "handleEvent"); -} -var hO = N(() => { - m(mr, "composeEventHandlers"); -}); -function sg(e, t) { - return b.useReducer((r, n) => t[r][n] ?? r, e); -} -function vo(e) { - return e ? parseInt(e, 10) : 0; -} -function vu(e, t) { - let r = e / t; - return isNaN(r) ? 0 : r; -} -function Mo(e) { - let t = vu(e.viewport, e.content), - r = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, - n = (e.scrollbar.size - r) * t; - return Math.max(n, 18); -} -function ug(e, t, r, n = "ltr") { - let o = Mo(r), - a = o / 2, - i = t || a, - l = o - i, - s = r.scrollbar.paddingStart + i, - u = r.scrollbar.size - r.scrollbar.paddingEnd - l, - d = r.content - r.viewport, - p = n === "ltr" ? [0, d] : [d * -1, 0]; - return bd([s, u], p)(e); -} -function Kl(e, t, r = "ltr") { - let n = Mo(t), - o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, - a = t.scrollbar.size - o, - i = t.content - t.viewport, - l = a - n, - s = r === "ltr" ? [0, i] : [i * -1, 0], - u = Sv(e, s); - return bd([0, i], [0, l])(u); -} -function bd(e, t) { - return (r) => { - if (e[0] === e[1] || t[0] === t[1]) return t[0]; - let n = (t[1] - t[0]) / (e[1] - e[0]); - return t[0] + n * (r - e[0]); - }; -} -function Xl(e, t) { - return e > 0 && e < t; -} -function xo(e, t) { - let r = wr(e), - n = b.useRef(0); - return ( - b.useEffect(() => () => window.clearTimeout(n.current), []), - b.useCallback(() => { - (window.clearTimeout(n.current), (n.current = window.setTimeout(r, t))); - }, [r, t]) - ); -} -function Br(e, t) { - let r = wr(t); - bi(() => { - let n = 0; - if (e) { - let o = new ResizeObserver(() => { - (cancelAnimationFrame(n), (n = window.requestAnimationFrame(r))); - }); - return ( - o.observe(e), - () => { - (window.cancelAnimationFrame(n), o.unobserve(e)); - } - ); - } - }, [e, r]); -} -function cg(e, t) { - let { asChild: r, children: n } = e; - if (!r) return typeof t == "function" ? t(n) : t; - let o = b.Children.only(n); - return b.cloneElement(o, { - children: typeof t == "function" ? t(o.props.children) : t, - }); -} -var Sa, - Zl, - yO, - dg, - ot, - Jl, - Ql, - es, - vt, - ts, - pg, - fg, - rs, - Ca, - gg, - mg, - hg, - ns, - os, - Eo, - as, - yg, - $a, - is, - bg, - vg, - Cv, - $v, - Av, - Dv, - kv, - bO = N(() => { - "use client"; - (cO(), - dO(), - pO(), - yd(), - fO(), - gO(), - yv(), - mO(), - hO(), - m(sg, "useStateMachine"), - (Sa = "ScrollArea"), - ([Zl, yO] = vv(Sa)), - ([dg, ot] = Zl(Sa)), - (Jl = b.forwardRef((e, t) => { - let { - __scopeScrollArea: r, - type: n = "hover", - dir: o, - scrollHideDelay: a = 600, - ...i - } = e, - [l, s] = b.useState(null), - [u, d] = b.useState(null), - [p, c] = b.useState(null), - [f, g] = b.useState(null), - [y, x] = b.useState(null), - [v, C] = b.useState(0), - [w, E] = b.useState(0), - [$, A] = b.useState(!1), - [S, D] = b.useState(!1), - F = xr(t, (_) => s(_)), - k = Ev(o); - return q.jsx(dg, { - scope: r, - type: n, - dir: k, - scrollHideDelay: a, - scrollArea: l, - viewport: u, - onViewportChange: d, - content: p, - onContentChange: c, - scrollbarX: f, - onScrollbarXChange: g, - scrollbarXEnabled: $, - onScrollbarXEnabledChange: A, - scrollbarY: y, - onScrollbarYChange: x, - scrollbarYEnabled: S, - onScrollbarYEnabledChange: D, - onCornerWidthChange: C, - onCornerHeightChange: E, - children: q.jsx(Sn.div, { - dir: k, - ...i, - ref: F, - style: { - position: "relative", - "--radix-scroll-area-corner-width": v + "px", - "--radix-scroll-area-corner-height": w + "px", - ...e.style, - }, - }), - }); - })), - (Jl.displayName = Sa), - (Ql = "ScrollAreaViewport"), - (es = b.forwardRef((e, t) => { - let { - __scopeScrollArea: r, - children: n, - asChild: o, - nonce: a, - ...i - } = e, - l = ot(Ql, r), - s = b.useRef(null), - u = xr(t, s, l.onViewportChange); - return q.jsxs(q.Fragment, { - children: [ - q.jsx("style", { - dangerouslySetInnerHTML: { - __html: ` -[data-radix-scroll-area-viewport] { - scrollbar-width: none; - -ms-overflow-style: none; - -webkit-overflow-scrolling: touch; -} -[data-radix-scroll-area-viewport]::-webkit-scrollbar { - display: none; -} -:where([data-radix-scroll-area-viewport]) { - display: flex; - flex-direction: column; - align-items: stretch; -} -:where([data-radix-scroll-area-content]) { - flex-grow: 1; -} -`, - }, - nonce: a, - }), - q.jsx(Sn.div, { - "data-radix-scroll-area-viewport": "", - ...i, - asChild: o, - ref: u, - style: { - overflowX: l.scrollbarXEnabled ? "scroll" : "hidden", - overflowY: l.scrollbarYEnabled ? "scroll" : "hidden", - ...e.style, - }, - children: cg({ asChild: o, children: n }, (d) => - q.jsx("div", { - "data-radix-scroll-area-content": "", - ref: l.onContentChange, - style: { - minWidth: l.scrollbarXEnabled ? "fit-content" : void 0, - }, - children: d, - }), - ), - }), - ], - }); - })), - (es.displayName = Ql), - (vt = "ScrollAreaScrollbar"), - (ts = b.forwardRef((e, t) => { - let { forceMount: r, ...n } = e, - o = ot(vt, e.__scopeScrollArea), - { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: i } = o, - l = e.orientation === "horizontal"; - return ( - b.useEffect( - () => ( - l ? a(!0) : i(!0), - () => { - l ? a(!1) : i(!1); - } - ), - [l, a, i], - ), - o.type === "hover" - ? q.jsx(pg, { ...n, ref: t, forceMount: r }) - : o.type === "scroll" - ? q.jsx(fg, { ...n, ref: t, forceMount: r }) - : o.type === "auto" - ? q.jsx(rs, { ...n, ref: t, forceMount: r }) - : o.type === "always" - ? q.jsx(Ca, { ...n, ref: t }) - : null - ); - })), - (ts.displayName = vt), - (pg = b.forwardRef((e, t) => { - let { forceMount: r, ...n } = e, - o = ot(vt, e.__scopeScrollArea), - [a, i] = b.useState(!1); - return ( - b.useEffect(() => { - let l = o.scrollArea, - s = 0; - if (l) { - let u = m(() => { - (window.clearTimeout(s), i(!0)); - }, "handlePointerEnter"), - d = m(() => { - s = window.setTimeout(() => i(!1), o.scrollHideDelay); - }, "handlePointerLeave"); - return ( - l.addEventListener("pointerenter", u), - l.addEventListener("pointerleave", d), - () => { - (window.clearTimeout(s), - l.removeEventListener("pointerenter", u), - l.removeEventListener("pointerleave", d)); - } - ); - } - }, [o.scrollArea, o.scrollHideDelay]), - q.jsx(Dn, { - present: r || a, - children: q.jsx(rs, { - "data-state": a ? "visible" : "hidden", - ...n, - ref: t, - }), - }) - ); - })), - (fg = b.forwardRef((e, t) => { - let { forceMount: r, ...n } = e, - o = ot(vt, e.__scopeScrollArea), - a = e.orientation === "horizontal", - i = xo(() => s("SCROLL_END"), 100), - [l, s] = sg("hidden", { - hidden: { SCROLL: "scrolling" }, - scrolling: { SCROLL_END: "idle", POINTER_ENTER: "interacting" }, - interacting: { SCROLL: "interacting", POINTER_LEAVE: "idle" }, - idle: { - HIDE: "hidden", - SCROLL: "scrolling", - POINTER_ENTER: "interacting", - }, - }); - return ( - b.useEffect(() => { - if (l === "idle") { - let u = window.setTimeout(() => s("HIDE"), o.scrollHideDelay); - return () => window.clearTimeout(u); - } - }, [l, o.scrollHideDelay, s]), - b.useEffect(() => { - let u = o.viewport, - d = a ? "scrollLeft" : "scrollTop"; - if (u) { - let p = u[d], - c = m(() => { - let f = u[d]; - (p !== f && (s("SCROLL"), i()), (p = f)); - }, "handleScroll"); - return ( - u.addEventListener("scroll", c), - () => u.removeEventListener("scroll", c) - ); - } - }, [o.viewport, a, s, i]), - q.jsx(Dn, { - present: r || l !== "hidden", - children: q.jsx(Ca, { - "data-state": l === "hidden" ? "hidden" : "visible", - ...n, - ref: t, - onPointerEnter: mr(e.onPointerEnter, () => s("POINTER_ENTER")), - onPointerLeave: mr(e.onPointerLeave, () => s("POINTER_LEAVE")), - }), - }) - ); - })), - (rs = b.forwardRef((e, t) => { - let r = ot(vt, e.__scopeScrollArea), - { forceMount: n, ...o } = e, - [a, i] = b.useState(!1), - l = e.orientation === "horizontal", - s = xo(() => { - if (r.viewport) { - let u = r.viewport.offsetWidth < r.viewport.scrollWidth, - d = r.viewport.offsetHeight < r.viewport.scrollHeight; - i(l ? u : d); - } - }, 10); - return ( - Br(r.viewport, s), - Br(r.content, s), - q.jsx(Dn, { - present: n || a, - children: q.jsx(Ca, { - "data-state": a ? "visible" : "hidden", - ...o, - ref: t, - }), - }) - ); - })), - (Ca = b.forwardRef((e, t) => { - let { orientation: r = "vertical", ...n } = e, - o = ot(vt, e.__scopeScrollArea), - a = b.useRef(null), - i = b.useRef(0), - [l, s] = b.useState({ - content: 0, - viewport: 0, - scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }, - }), - u = vu(l.viewport, l.content), - d = { - ...n, - sizes: l, - onSizesChange: s, - hasThumb: u > 0 && u < 1, - onThumbChange: m((c) => (a.current = c), "onThumbChange"), - onThumbPointerUp: m(() => (i.current = 0), "onThumbPointerUp"), - onThumbPointerDown: m((c) => (i.current = c), "onThumbPointerDown"), - }; - function p(c, f) { - return ug(c, i.current, l, f); - } - return ( - m(p, "getScrollPosition"), - r === "horizontal" - ? q.jsx(gg, { - ...d, - ref: t, - onThumbPositionChange: m(() => { - if (o.viewport && a.current) { - let c = o.viewport.scrollLeft, - f = Kl(c, l, o.dir); - a.current.style.transform = `translate3d(${f}px, 0, 0)`; - } - }, "onThumbPositionChange"), - onWheelScroll: m((c) => { - o.viewport && (o.viewport.scrollLeft = c); - }, "onWheelScroll"), - onDragScroll: m((c) => { - o.viewport && (o.viewport.scrollLeft = p(c, o.dir)); - }, "onDragScroll"), - }) - : r === "vertical" - ? q.jsx(mg, { - ...d, - ref: t, - onThumbPositionChange: m(() => { - if (o.viewport && a.current) { - let c = o.viewport.scrollTop, - f = Kl(c, l); - a.current.style.transform = `translate3d(0, ${f}px, 0)`; - } - }, "onThumbPositionChange"), - onWheelScroll: m((c) => { - o.viewport && (o.viewport.scrollTop = c); - }, "onWheelScroll"), - onDragScroll: m((c) => { - o.viewport && (o.viewport.scrollTop = p(c)); - }, "onDragScroll"), - }) - : null - ); - })), - (gg = b.forwardRef((e, t) => { - let { sizes: r, onSizesChange: n, ...o } = e, - a = ot(vt, e.__scopeScrollArea), - [i, l] = b.useState(), - s = b.useRef(null), - u = xr(t, s, a.onScrollbarXChange); - return ( - b.useEffect(() => { - s.current && l(getComputedStyle(s.current)); - }, [s]), - q.jsx(os, { - "data-orientation": "horizontal", - ...o, - ref: u, - sizes: r, - style: { - bottom: 0, - left: - a.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0, - right: - a.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0, - "--radix-scroll-area-thumb-width": Mo(r) + "px", - ...e.style, - }, - onThumbPointerDown: m( - (d) => e.onThumbPointerDown(d.x), - "onThumbPointerDown", - ), - onDragScroll: m((d) => e.onDragScroll(d.x), "onDragScroll"), - onWheelScroll: m((d, p) => { - if (a.viewport) { - let c = a.viewport.scrollLeft + d.deltaX; - (e.onWheelScroll(c), Xl(c, p) && d.preventDefault()); - } - }, "onWheelScroll"), - onResize: m(() => { - s.current && - a.viewport && - i && - n({ - content: a.viewport.scrollWidth, - viewport: a.viewport.offsetWidth, - scrollbar: { - size: s.current.clientWidth, - paddingStart: vo(i.paddingLeft), - paddingEnd: vo(i.paddingRight), - }, - }); - }, "onResize"), - }) - ); - })), - (mg = b.forwardRef((e, t) => { - let { sizes: r, onSizesChange: n, ...o } = e, - a = ot(vt, e.__scopeScrollArea), - [i, l] = b.useState(), - s = b.useRef(null), - u = xr(t, s, a.onScrollbarYChange); - return ( - b.useEffect(() => { - s.current && l(getComputedStyle(s.current)); - }, [s]), - q.jsx(os, { - "data-orientation": "vertical", - ...o, - ref: u, - sizes: r, - style: { - top: 0, - right: a.dir === "ltr" ? 0 : void 0, - left: a.dir === "rtl" ? 0 : void 0, - bottom: "var(--radix-scroll-area-corner-height)", - "--radix-scroll-area-thumb-height": Mo(r) + "px", - ...e.style, - }, - onThumbPointerDown: m( - (d) => e.onThumbPointerDown(d.y), - "onThumbPointerDown", - ), - onDragScroll: m((d) => e.onDragScroll(d.y), "onDragScroll"), - onWheelScroll: m((d, p) => { - if (a.viewport) { - let c = a.viewport.scrollTop + d.deltaY; - (e.onWheelScroll(c), Xl(c, p) && d.preventDefault()); - } - }, "onWheelScroll"), - onResize: m(() => { - s.current && - a.viewport && - i && - n({ - content: a.viewport.scrollHeight, - viewport: a.viewport.offsetHeight, - scrollbar: { - size: s.current.clientHeight, - paddingStart: vo(i.paddingTop), - paddingEnd: vo(i.paddingBottom), - }, - }); - }, "onResize"), - }) - ); - })), - ([hg, ns] = Zl(vt)), - (os = b.forwardRef((e, t) => { - let { - __scopeScrollArea: r, - sizes: n, - hasThumb: o, - onThumbChange: a, - onThumbPointerUp: i, - onThumbPointerDown: l, - onThumbPositionChange: s, - onDragScroll: u, - onWheelScroll: d, - onResize: p, - ...c - } = e, - f = ot(vt, r), - [g, y] = b.useState(null), - x = xr(t, (F) => y(F)), - v = b.useRef(null), - C = b.useRef(""), - w = f.viewport, - E = n.content - n.viewport, - $ = wr(d), - A = wr(s), - S = xo(p, 10); - function D(F) { - if (v.current) { - let k = F.clientX - v.current.left, - _ = F.clientY - v.current.top; - u({ x: k, y: _ }); - } - } - return ( - m(D, "handleDragScroll"), - b.useEffect(() => { - let F = m((k) => { - let _ = k.target; - g?.contains(_) && $(k, E); - }, "handleWheel"); - return ( - document.addEventListener("wheel", F, { passive: !1 }), - () => document.removeEventListener("wheel", F, { passive: !1 }) - ); - }, [w, g, E, $]), - b.useEffect(A, [n, A]), - Br(g, S), - Br(f.content, S), - q.jsx(hg, { - scope: r, - scrollbar: g, - hasThumb: o, - onThumbChange: wr(a), - onThumbPointerUp: wr(i), - onThumbPositionChange: A, - onThumbPointerDown: wr(l), - children: q.jsx(Sn.div, { - ...c, - ref: x, - style: { position: "absolute", ...c.style }, - onPointerDown: mr(e.onPointerDown, (F) => { - F.button === 0 && - (F.target.setPointerCapture(F.pointerId), - (v.current = g.getBoundingClientRect()), - (C.current = document.body.style.webkitUserSelect), - (document.body.style.webkitUserSelect = "none"), - f.viewport && (f.viewport.style.scrollBehavior = "auto"), - D(F)); - }), - onPointerMove: mr(e.onPointerMove, D), - onPointerUp: mr(e.onPointerUp, (F) => { - let k = F.target; - (k.hasPointerCapture(F.pointerId) && - k.releasePointerCapture(F.pointerId), - (document.body.style.webkitUserSelect = C.current), - f.viewport && (f.viewport.style.scrollBehavior = ""), - (v.current = null)); - }), - }), - }) - ); - })), - (Eo = "ScrollAreaThumb"), - (as = b.forwardRef((e, t) => { - let { forceMount: r, ...n } = e, - o = ns(Eo, e.__scopeScrollArea); - return q.jsx(Dn, { - present: r || o.hasThumb, - children: q.jsx(yg, { ref: t, ...n }), - }); - })), - (yg = b.forwardRef((e, t) => { - let { __scopeScrollArea: r, style: n, ...o } = e, - a = ot(Eo, r), - i = ns(Eo, r), - { onThumbPositionChange: l } = i, - s = xr(t, (p) => i.onThumbChange(p)), - u = b.useRef(), - d = xo(() => { - u.current && (u.current(), (u.current = void 0)); - }, 100); - return ( - b.useEffect(() => { - let p = a.viewport; - if (p) { - let c = m(() => { - if ((d(), !u.current)) { - let f = vg(p, l); - ((u.current = f), l()); - } - }, "handleScroll"); - return ( - l(), - p.addEventListener("scroll", c), - () => p.removeEventListener("scroll", c) - ); - } - }, [a.viewport, d, l]), - q.jsx(Sn.div, { - "data-state": i.hasThumb ? "visible" : "hidden", - ...o, - ref: s, - style: { - width: "var(--radix-scroll-area-thumb-width)", - height: "var(--radix-scroll-area-thumb-height)", - ...n, - }, - onPointerDownCapture: mr(e.onPointerDownCapture, (p) => { - let c = p.target.getBoundingClientRect(), - f = p.clientX - c.left, - g = p.clientY - c.top; - i.onThumbPointerDown({ x: f, y: g }); - }), - onPointerUp: mr(e.onPointerUp, i.onThumbPointerUp), - }) - ); - })), - (as.displayName = Eo), - ($a = "ScrollAreaCorner"), - (is = b.forwardRef((e, t) => { - let r = ot($a, e.__scopeScrollArea), - n = !!(r.scrollbarX && r.scrollbarY); - return r.type !== "scroll" && n ? q.jsx(bg, { ...e, ref: t }) : null; - })), - (is.displayName = $a), - (bg = b.forwardRef((e, t) => { - let { __scopeScrollArea: r, ...n } = e, - o = ot($a, r), - [a, i] = b.useState(0), - [l, s] = b.useState(0), - u = !!(a && l); - return ( - Br(o.scrollbarX, () => { - let d = o.scrollbarX?.offsetHeight || 0; - (o.onCornerHeightChange(d), s(d)); - }), - Br(o.scrollbarY, () => { - let d = o.scrollbarY?.offsetWidth || 0; - (o.onCornerWidthChange(d), i(d)); - }), - u - ? q.jsx(Sn.div, { - ...n, - ref: t, - style: { - width: a, - height: l, - position: "absolute", - right: o.dir === "ltr" ? 0 : void 0, - left: o.dir === "rtl" ? 0 : void 0, - bottom: 0, - ...e.style, - }, - }) - : null - ); - })), - m(vo, "toInt"), - m(vu, "getThumbRatio"), - m(Mo, "getThumbSize"), - m(ug, "getScrollPositionFromPointer"), - m(Kl, "getThumbOffsetFromScroll"), - m(bd, "linearScale"), - m(Xl, "isScrollingWithinScrollbarBounds"), - (vg = m((e, t = () => {}) => { - let r = { left: e.scrollLeft, top: e.scrollTop }, - n = 0; - return ( - m(function o() { - let a = { left: e.scrollLeft, top: e.scrollTop }, - i = r.left !== a.left, - l = r.top !== a.top; - ((i || l) && t(), (r = a), (n = window.requestAnimationFrame(o))); - }, "loop")(), - () => window.cancelAnimationFrame(n) - ); - }, "addUnlinkedScrollListener")), - m(xo, "useDebounceCallback"), - m(Br, "useResizeObserver"), - m(cg, "getSubtree"), - (Cv = Jl), - ($v = es), - (Av = ts), - (Dv = as), - (kv = is)); - }), - xg, - Eg, - ls, - ss, - Yo, - vd = N(() => { - (bO(), - (xg = T(Cv)(({ scrollbarsize: e, offset: t }) => ({ - width: "100%", - height: "100%", - overflow: "hidden", - "--scrollbar-size": `${e + t}px`, - "--radix-scroll-area-thumb-width": `${e}px`, - }))), - (Eg = T($v)({ width: "100%", height: "100%" })), - (ls = T(Av)(({ offset: e, horizontal: t, vertical: r }) => ({ - display: "flex", - userSelect: "none", - touchAction: "none", - background: "transparent", - transition: "all 0.2s ease-out", - borderRadius: "var(--scrollbar-size)", - zIndex: 1, - '&[data-orientation="vertical"]': { - width: "var(--scrollbar-size)", - paddingRight: e, - marginTop: e, - marginBottom: t === "true" && r === "true" ? 0 : e, - }, - '&[data-orientation="horizontal"]': { - flexDirection: "column", - height: "var(--scrollbar-size)", - paddingBottom: e, - marginLeft: e, - marginRight: t === "true" && r === "true" ? 0 : e, - }, - }))), - (ss = T(Dv)(({ theme: e }) => ({ - flex: 1, - background: e.textMutedColor, - opacity: 0.5, - borderRadius: "var(--scrollbar-size)", - position: "relative", - transition: "opacity 0.2s ease-out", - "&:hover": { opacity: 0.8 }, - "::before": { - content: '""', - position: "absolute", - top: "50%", - left: "50%", - transform: "translate(-50%,-50%)", - width: "100%", - height: "100%", - }, - }))), - (Yo = b.forwardRef( - ( - { - children: e, - horizontal: t = !1, - vertical: r = !1, - offset: n = 2, - scrollbarSize: o = 6, - className: a, - }, - i, - ) => - h.createElement( - xg, - { scrollbarsize: o, offset: n, className: a }, - h.createElement(Eg, { ref: i }, e), - t && - h.createElement( - ls, - { - orientation: "horizontal", - offset: n, - horizontal: t.toString(), - vertical: r.toString(), - }, - h.createElement(ss, null), - ), - r && - h.createElement( - ls, - { - orientation: "vertical", - offset: n, - horizontal: t.toString(), - vertical: r.toString(), - }, - h.createElement(ss, null), - ), - t && r && h.createElement(kv, null), - ), - )), - (Yo.displayName = "ScrollArea")); - }), - xd = {}; -na(xd, { - SyntaxHighlighter: () => Ho, - createCopyToClipboardFunction: () => vi, - default: () => Ov, - supportedLanguages: () => xu, -}); -const { logger: vO } = __STORYBOOK_MODULE_CLIENT_LOGGER__, - { global: xO } = __STORYBOOK_MODULE_GLOBAL__; -function vi() { - return zo.navigator?.clipboard - ? async (e) => { - try { - await zo.top?.navigator.clipboard.writeText(e); - } catch { - await zo.navigator.clipboard.writeText(e); - } - } - : async (e) => { - let t = Cn.createElement("TEXTAREA"), - r = Cn.activeElement; - ((t.value = e), - Cn.body.appendChild(t), - t.select(), - Cn.execCommand("copy"), - Cn.body.removeChild(t), - r.focus()); - }; -} -var wg, - Cn, - zo, - xu, - Sg, - Cg, - $g, - Ag, - Dg, - kg, - Og, - us, - Fg, - _g, - Ho, - Ov, - il = N(() => { - ((wg = je(rl(), 1)), - Wk(), - qk(), - Gk(), - Kk(), - Zk(), - Qk(), - eO(), - rO(), - nO(), - aO(), - iO(), - sO(), - Uk(), - gv(), - vd(), - ({ document: Cn, window: zo } = xO), - (xu = { - jsextra: ov, - jsx: lv, - json: av, - yml: fv, - md: sv, - bash: tv, - css: rv, - html: uv, - tsx: dv, - typescript: pv, - graphql: nv, - }), - Object.entries(xu).forEach(([e, t]) => { - za.registerLanguage(e, t); - }), - (Sg = (0, wg.default)(2)((e) => - Object.entries(e.code || {}).reduce( - (t, [r, n]) => ({ ...t, [`* .${r}`]: n }), - {}, - ), - )), - (Cg = vi()), - m(vi, "createCopyToClipboardFunction"), - ($g = T.div( - ({ theme: e }) => ({ - position: "relative", - overflow: "hidden", - color: e.color.defaultText, - }), - ({ theme: e, bordered: t }) => - t - ? { - border: `1px solid ${e.appBorderColor}`, - borderRadius: e.borderRadius, - background: e.background.content, - } - : {}, - ({ showLineNumbers: e }) => - e - ? { - ".react-syntax-highlighter-line-number::before": { - content: "attr(data-line-number)", - }, - } - : {}, - )), - (Ag = m( - ({ children: e, className: t }) => - h.createElement( - Yo, - { horizontal: !0, vertical: !0, className: t }, - e, - ), - "UnstyledScroller", - )), - (Dg = T(Ag)({ position: "relative" }, ({ theme: e }) => Sg(e))), - (kg = T.pre(({ theme: e, padded: t }) => ({ - display: "flex", - justifyContent: "flex-start", - margin: 0, - padding: t ? e.layoutMargin : 0, - }))), - (Og = T.div(({ theme: e }) => ({ - flex: 1, - paddingLeft: 2, - paddingRight: e.layoutMargin, - opacity: 1, - fontFamily: e.typography.fonts.mono, - }))), - (us = m((e) => { - let t = [...e.children], - r = t[0], - n = r.children[0].value, - o = { - ...r, - children: [], - properties: { - ...r.properties, - "data-line-number": n, - style: { ...r.properties.style, userSelect: "auto" }, - }, - }; - return ((t[0] = o), { ...e, children: t }); - }, "processLineNumber")), - (Fg = m( - ({ rows: e, stylesheet: t, useInlineStyles: r }) => - e.map((n, o) => - ol({ - node: us(n), - stylesheet: t, - useInlineStyles: r, - key: `code-segement${o}`, - }), - ), - "defaultRenderer", - )), - (_g = m( - (e, t) => - t - ? e - ? ({ rows: r, ...n }) => e({ rows: r.map((o) => us(o)), ...n }) - : Fg - : e, - "wrapRenderer", - )), - (Ho = m( - ({ - children: e, - language: t = "jsx", - copyable: r = !1, - bordered: n = !1, - padded: o = !1, - format: a = !0, - formatter: i = void 0, - className: l = void 0, - showLineNumbers: s = !1, - ...u - }) => { - if (typeof e != "string" || !e.trim()) return null; - let [d, p] = b.useState(""); - b.useEffect(() => { - i ? i(a, e).then(p) : p(e.trim()); - }, [e, a, i]); - let [c, f] = b.useState(!1), - g = b.useCallback( - (x) => { - (x.preventDefault(), - Cg(d) - .then(() => { - (f(!0), zo.setTimeout(() => f(!1), 1500)); - }) - .catch(vO.error)); - }, - [d], - ), - y = _g(u.renderer, s); - return h.createElement( - $g, - { bordered: n, padded: o, showLineNumbers: s, className: l }, - h.createElement( - Dg, - null, - h.createElement( - za, - { - padded: o || n, - language: t, - showLineNumbers: s, - showInlineLineNumbers: s, - useInlineStyles: !1, - PreTag: kg, - CodeTag: Og, - lineNumberContainerStyle: {}, - ...u, - renderer: y, - }, - d, - ), - ), - r - ? h.createElement(al, { - actionItems: [{ title: c ? "Copied" : "Copy", onClick: g }], - }) - : null, - ); - }, - "SyntaxHighlighter", - )), - (Ho.registerLanguage = (...e) => za.registerLanguage(...e)), - (Ov = Ho)); - }); -function Fv(e) { - for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; - var n = Array.from(typeof e == "string" ? [e] : e); - n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); - var o = n.reduce(function (l, s) { - var u = s.match(/\n([\t ]+|(?!\s).)/g); - return u - ? l.concat( - u.map(function (d) { - var p, c; - return (c = - (p = d.match(/[\t ]/g)) === null || p === void 0 - ? void 0 - : p.length) !== null && c !== void 0 - ? c - : 0; - }), - ) - : l; - }, []); - if (o.length) { - var a = new RegExp( - ` -[ ]{` + - Math.min.apply(Math, o) + - "}", - "g", - ); - n = n.map(function (l) { - return l.replace( - a, - ` -`, - ); - }); - } - n[0] = n[0].replace(/^\r?\n/, ""); - var i = n[0]; - return ( - t.forEach(function (l, s) { - var u = i.match(/(?:^|\n)( *)$/), - d = u ? u[1] : "", - p = l; - (typeof l == "string" && - l.includes(` -`) && - (p = String(l) - .split( - ` -`, - ) - .map(function (c, f) { - return f === 0 ? c : "" + d + c; - }).join(` -`)), - (i += p + n[s + 1])); - }), - i - ); -} -var EO = N(() => { - m(Fv, "dedent"); - }), - _v = {}; -na(_v, { formatter: () => Tv }); -var Tg, - Tv, - wO = N(() => { - ((Tg = je(rl(), 1)), - EO(), - (Tv = (0, Tg.default)(2)(async (e, t) => (e === !1 ? t : Fv(t))))); - }), - Eu, - wu, - SO = N(() => { - ((Eu = m(function (e) { - return e.reduce(function (t, r) { - var n = r[0], - o = r[1]; - return ((t[n] = o), t); - }, {}); - }, "fromEntries")), - (wu = - typeof window < "u" && window.document && window.document.createElement - ? b.useLayoutEffect - : b.useEffect)); - }), - Ge, - st, - ut, - Ye, - xi, - On, - Kr, - Fn, - Rv, - Ed, - $n, - Pv, - Su, - wd, - Rg, - Pg, - Ig, - Lg, - Bg, - Ng, - jg, - Mg, - zg, - Iv, - gt = N(() => { - ((Ge = "top"), - (st = "bottom"), - (ut = "right"), - (Ye = "left"), - (xi = "auto"), - (On = [Ge, st, ut, Ye]), - (Kr = "start"), - (Fn = "end"), - (Rv = "clippingParents"), - (Ed = "viewport"), - ($n = "popper"), - (Pv = "reference"), - (Su = On.reduce(function (e, t) { - return e.concat([t + "-" + Kr, t + "-" + Fn]); - }, [])), - (wd = [].concat(On, [xi]).reduce(function (e, t) { - return e.concat([t, t + "-" + Kr, t + "-" + Fn]); - }, [])), - (Rg = "beforeRead"), - (Pg = "read"), - (Ig = "afterRead"), - (Lg = "beforeMain"), - (Bg = "main"), - (Ng = "afterMain"), - (jg = "beforeWrite"), - (Mg = "write"), - (zg = "afterWrite"), - (Iv = [Rg, Pg, Ig, Lg, Bg, Ng, jg, Mg, zg])); - }); -function Ot(e) { - return e ? (e.nodeName || "").toLowerCase() : null; -} -var ln = N(() => { - m(Ot, "getNodeName"); -}); -function Qe(e) { - if (e == null) return window; - if (e.toString() !== "[object Window]") { - var t = e.ownerDocument; - return (t && t.defaultView) || window; - } - return e; -} -var Wt = N(() => { - m(Qe, "getWindow"); -}); -function Dr(e) { - var t = Qe(e).Element; - return e instanceof t || e instanceof Element; -} -function lt(e) { - var t = Qe(e).HTMLElement; - return e instanceof t || e instanceof HTMLElement; -} -function ll(e) { - if (typeof ShadowRoot > "u") return !1; - var t = Qe(e).ShadowRoot; - return e instanceof t || e instanceof ShadowRoot; -} -var mt = N(() => { - (Wt(), m(Dr, "isElement"), m(lt, "isHTMLElement"), m(ll, "isShadowRoot")); -}); -function Hg(e) { - var t = e.state; - Object.keys(t.elements).forEach(function (r) { - var n = t.styles[r] || {}, - o = t.attributes[r] || {}, - a = t.elements[r]; - !lt(a) || - !Ot(a) || - (Object.assign(a.style, n), - Object.keys(o).forEach(function (i) { - var l = o[i]; - l === !1 ? a.removeAttribute(i) : a.setAttribute(i, l === !0 ? "" : l); - })); - }); -} -function Ug(e) { - var t = e.state, - r = { - popper: { - position: t.options.strategy, - left: "0", - top: "0", - margin: "0", - }, - arrow: { position: "absolute" }, - reference: {}, - }; - return ( - Object.assign(t.elements.popper.style, r.popper), - (t.styles = r), - t.elements.arrow && Object.assign(t.elements.arrow.style, r.arrow), - function () { - Object.keys(t.elements).forEach(function (n) { - var o = t.elements[n], - a = t.attributes[n] || {}, - i = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : r[n]), - l = i.reduce(function (s, u) { - return ((s[u] = ""), s); - }, {}); - !lt(o) || - !Ot(o) || - (Object.assign(o.style, l), - Object.keys(a).forEach(function (s) { - o.removeAttribute(s); - })); - }); - } - ); -} -var Lv, - CO = N(() => { - (ln(), - mt(), - m(Hg, "applyStyles"), - m(Ug, "effect"), - (Lv = { - name: "applyStyles", - enabled: !0, - phase: "write", - fn: Hg, - effect: Ug, - requires: ["computeStyles"], - })); - }); -function kt(e) { - return e.split("-")[0]; -} -var sn = N(() => { - m(kt, "getBasePlacement"); - }), - Cr, - Ko, - Qr, - un = N(() => { - ((Cr = Math.max), (Ko = Math.min), (Qr = Math.round)); - }); -function Ei() { - var e = navigator.userAgentData; - return e != null && e.brands && Array.isArray(e.brands) - ? e.brands - .map(function (t) { - return t.brand + "/" + t.version; - }) - .join(" ") - : navigator.userAgent; -} -var Bv = N(() => { - m(Ei, "getUAString"); -}); -function Sd() { - return !/^((?!chrome|android).)*safari/i.test(Ei()); -} -var Nv = N(() => { - (Bv(), m(Sd, "isLayoutViewport")); -}); -function en(e, t, r) { - (t === void 0 && (t = !1), r === void 0 && (r = !1)); - var n = e.getBoundingClientRect(), - o = 1, - a = 1; - t && - lt(e) && - ((o = (e.offsetWidth > 0 && Qr(n.width) / e.offsetWidth) || 1), - (a = (e.offsetHeight > 0 && Qr(n.height) / e.offsetHeight) || 1)); - var i = Dr(e) ? Qe(e) : window, - l = i.visualViewport, - s = !Sd() && r, - u = (n.left + (s && l ? l.offsetLeft : 0)) / o, - d = (n.top + (s && l ? l.offsetTop : 0)) / a, - p = n.width / o, - c = n.height / a; - return { - width: p, - height: c, - top: d, - right: u + p, - bottom: d + c, - left: u, - x: u, - y: d, - }; -} -var aa = N(() => { - (mt(), un(), Wt(), Nv(), m(en, "getBoundingClientRect")); -}); -function sl(e) { - var t = en(e), - r = e.offsetWidth, - n = e.offsetHeight; - return ( - Math.abs(t.width - r) <= 1 && (r = t.width), - Math.abs(t.height - n) <= 1 && (n = t.height), - { x: e.offsetLeft, y: e.offsetTop, width: r, height: n } - ); -} -var Cd = N(() => { - (aa(), m(sl, "getLayoutRect")); -}); -function $d(e, t) { - var r = t.getRootNode && t.getRootNode(); - if (e.contains(t)) return !0; - if (r && ll(r)) { - var n = t; - do { - if (n && e.isSameNode(n)) return !0; - n = n.parentNode || n.host; - } while (n); - } - return !1; -} -var jv = N(() => { - (mt(), m($d, "contains")); -}); -function Ut(e) { - return Qe(e).getComputedStyle(e); -} -var ia = N(() => { - (Wt(), m(Ut, "getComputedStyle")); -}); -function Mv(e) { - return ["table", "td", "th"].indexOf(Ot(e)) >= 0; -} -var $O = N(() => { - (ln(), m(Mv, "isTableElement")); -}); -function lr(e) { - return ((Dr(e) ? e.ownerDocument : e.document) || window.document) - .documentElement; -} -var Or = N(() => { - (mt(), m(lr, "getDocumentElement")); -}); -function la(e) { - return Ot(e) === "html" - ? e - : e.assignedSlot || e.parentNode || (ll(e) ? e.host : null) || lr(e); -} -var ul = N(() => { - (ln(), Or(), mt(), m(la, "getParentNode")); -}); -function Cu(e) { - return !lt(e) || Ut(e).position === "fixed" ? null : e.offsetParent; -} -function zv(e) { - var t = /firefox/i.test(Ei()), - r = /Trident/i.test(Ei()); - if (r && lt(e)) { - var n = Ut(e); - if (n.position === "fixed") return null; - } - var o = la(e); - for (ll(o) && (o = o.host); lt(o) && ["html", "body"].indexOf(Ot(o)) < 0; ) { - var a = Ut(o); - if ( - a.transform !== "none" || - a.perspective !== "none" || - a.contain === "paint" || - ["transform", "perspective"].indexOf(a.willChange) !== -1 || - (t && a.willChange === "filter") || - (t && a.filter && a.filter !== "none") - ) - return o; - o = o.parentNode; - } - return null; -} -function lo(e) { - for (var t = Qe(e), r = Cu(e); r && Mv(r) && Ut(r).position === "static"; ) - r = Cu(r); - return r && - (Ot(r) === "html" || (Ot(r) === "body" && Ut(r).position === "static")) - ? t - : r || zv(e) || t; -} -var sa = N(() => { - (Wt(), - ln(), - ia(), - mt(), - $O(), - ul(), - Bv(), - m(Cu, "getTrueOffsetParent"), - m(zv, "getContainingBlock"), - m(lo, "getOffsetParent")); -}); -function cl(e) { - return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y"; -} -var Ad = N(() => { - m(cl, "getMainAxisFromPlacement"); -}); -function _n(e, t, r) { - return Cr(e, Ko(t, r)); -} -function Hv(e, t, r) { - var n = _n(e, t, r); - return n > r ? r : n; -} -var Uv = N(() => { - (un(), m(_n, "within"), m(Hv, "withinMaxClamp")); -}); -function Dd() { - return { top: 0, right: 0, bottom: 0, left: 0 }; -} -var Wv = N(() => { - m(Dd, "getFreshSideObject"); -}); -function kd(e) { - return Object.assign({}, Dd(), e); -} -var Vv = N(() => { - (Wv(), m(kd, "mergePaddingObject")); -}); -function Od(e, t) { - return t.reduce(function (r, n) { - return ((r[n] = e), r); - }, {}); -} -var qv = N(() => { - m(Od, "expandToHashMap"); -}); -function Wg(e) { - var t, - r = e.state, - n = e.name, - o = e.options, - a = r.elements.arrow, - i = r.modifiersData.popperOffsets, - l = kt(r.placement), - s = cl(l), - u = [Ye, ut].indexOf(l) >= 0, - d = u ? "height" : "width"; - if (!(!a || !i)) { - var p = Gv(o.padding, r), - c = sl(a), - f = s === "y" ? Ge : Ye, - g = s === "y" ? st : ut, - y = - r.rects.reference[d] + r.rects.reference[s] - i[s] - r.rects.popper[d], - x = i[s] - r.rects.reference[s], - v = lo(a), - C = v ? (s === "y" ? v.clientHeight || 0 : v.clientWidth || 0) : 0, - w = y / 2 - x / 2, - E = p[f], - $ = C - c[d] - p[g], - A = C / 2 - c[d] / 2 + w, - S = _n(E, A, $), - D = s; - r.modifiersData[n] = ((t = {}), (t[D] = S), (t.centerOffset = S - A), t); - } -} -function Vg(e) { - var t = e.state, - r = e.options, - n = r.element, - o = n === void 0 ? "[data-popper-arrow]" : n; - o != null && - ((typeof o == "string" && ((o = t.elements.popper.querySelector(o)), !o)) || - ($d(t.elements.popper, o) && (t.elements.arrow = o))); -} -var Gv, - Yv, - AO = N(() => { - (sn(), - Cd(), - jv(), - sa(), - Ad(), - Uv(), - Vv(), - qv(), - gt(), - (Gv = m(function (e, t) { - return ( - (e = - typeof e == "function" - ? e(Object.assign({}, t.rects, { placement: t.placement })) - : e), - kd(typeof e != "number" ? e : Od(e, On)) - ); - }, "toPaddingObject")), - m(Wg, "arrow"), - m(Vg, "effect"), - (Yv = { - name: "arrow", - enabled: !0, - phase: "main", - fn: Wg, - effect: Vg, - requires: ["popperOffsets"], - requiresIfExists: ["preventOverflow"], - })); - }); -function tn(e) { - return e.split("-")[1]; -} -var ua = N(() => { - m(tn, "getVariation"); -}); -function Kv(e, t) { - var r = e.x, - n = e.y, - o = t.devicePixelRatio || 1; - return { x: Qr(r * o) / o || 0, y: Qr(n * o) / o || 0 }; -} -function $u(e) { - var t, - r = e.popper, - n = e.popperRect, - o = e.placement, - a = e.variation, - i = e.offsets, - l = e.position, - s = e.gpuAcceleration, - u = e.adaptive, - d = e.roundOffsets, - p = e.isFixed, - c = i.x, - f = c === void 0 ? 0 : c, - g = i.y, - y = g === void 0 ? 0 : g, - x = typeof d == "function" ? d({ x: f, y }) : { x: f, y }; - ((f = x.x), (y = x.y)); - var v = i.hasOwnProperty("x"), - C = i.hasOwnProperty("y"), - w = Ye, - E = Ge, - $ = window; - if (u) { - var A = lo(r), - S = "clientHeight", - D = "clientWidth"; - if ( - (A === Qe(r) && - ((A = lr(r)), - Ut(A).position !== "static" && - l === "absolute" && - ((S = "scrollHeight"), (D = "scrollWidth"))), - (A = A), - o === Ge || ((o === Ye || o === ut) && a === Fn)) - ) { - E = st; - var F = p && A === $ && $.visualViewport ? $.visualViewport.height : A[S]; - ((y -= F - n.height), (y *= s ? 1 : -1)); - } - if (o === Ye || ((o === Ge || o === st) && a === Fn)) { - w = ut; - var k = p && A === $ && $.visualViewport ? $.visualViewport.width : A[D]; - ((f -= k - n.width), (f *= s ? 1 : -1)); - } - } - var _ = Object.assign({ position: l }, u && Xv), - I = d === !0 ? Kv({ x: f, y }, Qe(r)) : { x: f, y }; - if (((f = I.x), (y = I.y), s)) { - var L; - return Object.assign( - {}, - _, - ((L = {}), - (L[E] = C ? "0" : ""), - (L[w] = v ? "0" : ""), - (L.transform = - ($.devicePixelRatio || 1) <= 1 - ? "translate(" + f + "px, " + y + "px)" - : "translate3d(" + f + "px, " + y + "px, 0)"), - L), - ); - } - return Object.assign( - {}, - _, - ((t = {}), - (t[E] = C ? y + "px" : ""), - (t[w] = v ? f + "px" : ""), - (t.transform = ""), - t), - ); -} -function qg(e) { - var t = e.state, - r = e.options, - n = r.gpuAcceleration, - o = n === void 0 ? !0 : n, - a = r.adaptive, - i = a === void 0 ? !0 : a, - l = r.roundOffsets, - s = l === void 0 ? !0 : l, - u = { - placement: kt(t.placement), - variation: tn(t.placement), - popper: t.elements.popper, - popperRect: t.rects.popper, - gpuAcceleration: o, - isFixed: t.options.strategy === "fixed", - }; - (t.modifiersData.popperOffsets != null && - (t.styles.popper = Object.assign( - {}, - t.styles.popper, - $u( - Object.assign({}, u, { - offsets: t.modifiersData.popperOffsets, - position: t.options.strategy, - adaptive: i, - roundOffsets: s, - }), - ), - )), - t.modifiersData.arrow != null && - (t.styles.arrow = Object.assign( - {}, - t.styles.arrow, - $u( - Object.assign({}, u, { - offsets: t.modifiersData.arrow, - position: "absolute", - adaptive: !1, - roundOffsets: s, - }), - ), - )), - (t.attributes.popper = Object.assign({}, t.attributes.popper, { - "data-popper-placement": t.placement, - }))); -} -var Xv, - Zv, - DO = N(() => { - (gt(), - sa(), - Wt(), - Or(), - ia(), - sn(), - ua(), - un(), - (Xv = { top: "auto", right: "auto", bottom: "auto", left: "auto" }), - m(Kv, "roundOffsetsByDPR"), - m($u, "mapToStyles"), - m(qg, "computeStyles"), - (Zv = { - name: "computeStyles", - enabled: !0, - phase: "beforeWrite", - fn: qg, - data: {}, - })); - }); -function Gg(e) { - var t = e.state, - r = e.instance, - n = e.options, - o = n.scroll, - a = o === void 0 ? !0 : o, - i = n.resize, - l = i === void 0 ? !0 : i, - s = Qe(t.elements.popper), - u = [].concat(t.scrollParents.reference, t.scrollParents.popper); - return ( - a && - u.forEach(function (d) { - d.addEventListener("scroll", r.update, To); - }), - l && s.addEventListener("resize", r.update, To), - function () { - (a && - u.forEach(function (d) { - d.removeEventListener("scroll", r.update, To); - }), - l && s.removeEventListener("resize", r.update, To)); - } - ); -} -var To, - Jv, - kO = N(() => { - (Wt(), - (To = { passive: !0 }), - m(Gg, "effect"), - (Jv = { - name: "eventListeners", - enabled: !0, - phase: "write", - fn: m(function () {}, "fn"), - effect: Gg, - data: {}, - })); - }); -function Uo(e) { - return e.replace(/left|right|bottom|top/g, function (t) { - return Qv[t]; - }); -} -var Qv, - OO = N(() => { - ((Qv = { left: "right", right: "left", bottom: "top", top: "bottom" }), - m(Uo, "getOppositePlacement")); - }); -function Au(e) { - return e.replace(/start|end/g, function (t) { - return ex[t]; - }); -} -var ex, - FO = N(() => { - ((ex = { start: "end", end: "start" }), - m(Au, "getOppositeVariationPlacement")); - }); -function dl(e) { - var t = Qe(e), - r = t.pageXOffset, - n = t.pageYOffset; - return { scrollLeft: r, scrollTop: n }; -} -var Fd = N(() => { - (Wt(), m(dl, "getWindowScroll")); -}); -function pl(e) { - return en(lr(e)).left + dl(e).scrollLeft; -} -var _d = N(() => { - (aa(), Or(), Fd(), m(pl, "getWindowScrollBarX")); -}); -function tx(e, t) { - var r = Qe(e), - n = lr(e), - o = r.visualViewport, - a = n.clientWidth, - i = n.clientHeight, - l = 0, - s = 0; - if (o) { - ((a = o.width), (i = o.height)); - var u = Sd(); - (u || (!u && t === "fixed")) && ((l = o.offsetLeft), (s = o.offsetTop)); - } - return { width: a, height: i, x: l + pl(e), y: s }; -} -var _O = N(() => { - (Wt(), Or(), _d(), Nv(), m(tx, "getViewportRect")); -}); -function rx(e) { - var t, - r = lr(e), - n = dl(e), - o = (t = e.ownerDocument) == null ? void 0 : t.body, - a = Cr( - r.scrollWidth, - r.clientWidth, - o ? o.scrollWidth : 0, - o ? o.clientWidth : 0, - ), - i = Cr( - r.scrollHeight, - r.clientHeight, - o ? o.scrollHeight : 0, - o ? o.clientHeight : 0, - ), - l = -n.scrollLeft + pl(e), - s = -n.scrollTop; - return ( - Ut(o || r).direction === "rtl" && - (l += Cr(r.clientWidth, o ? o.clientWidth : 0) - a), - { width: a, height: i, x: l, y: s } - ); -} -var TO = N(() => { - (Or(), ia(), _d(), Fd(), un(), m(rx, "getDocumentRect")); -}); -function fl(e) { - var t = Ut(e), - r = t.overflow, - n = t.overflowX, - o = t.overflowY; - return /auto|scroll|overlay|hidden/.test(r + o + n); -} -var Td = N(() => { - (ia(), m(fl, "isScrollParent")); -}); -function Rd(e) { - return ["html", "body", "#document"].indexOf(Ot(e)) >= 0 - ? e.ownerDocument.body - : lt(e) && fl(e) - ? e - : Rd(la(e)); -} -var RO = N(() => { - (ul(), Td(), ln(), mt(), m(Rd, "getScrollParent")); -}); -function Tn(e, t) { - var r; - t === void 0 && (t = []); - var n = Rd(e), - o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), - a = Qe(n), - i = o ? [a].concat(a.visualViewport || [], fl(n) ? n : []) : n, - l = t.concat(i); - return o ? l : l.concat(Tn(la(i))); -} -var nx = N(() => { - (RO(), ul(), Wt(), Td(), m(Tn, "listScrollParents")); -}); -function wi(e) { - return Object.assign({}, e, { - left: e.x, - top: e.y, - right: e.x + e.width, - bottom: e.y + e.height, - }); -} -var ox = N(() => { - m(wi, "rectToClientRect"); -}); -function ax(e, t) { - var r = en(e, !1, t === "fixed"); - return ( - (r.top = r.top + e.clientTop), - (r.left = r.left + e.clientLeft), - (r.bottom = r.top + e.clientHeight), - (r.right = r.left + e.clientWidth), - (r.width = e.clientWidth), - (r.height = e.clientHeight), - (r.x = r.left), - (r.y = r.top), - r - ); -} -function Du(e, t, r) { - return t === Ed ? wi(tx(e, r)) : Dr(t) ? ax(t, r) : wi(rx(lr(e))); -} -function ix(e) { - var t = Tn(la(e)), - r = ["absolute", "fixed"].indexOf(Ut(e).position) >= 0, - n = r && lt(e) ? lo(e) : e; - return Dr(n) - ? t.filter(function (o) { - return Dr(o) && $d(o, n) && Ot(o) !== "body"; - }) - : []; -} -function lx(e, t, r, n) { - var o = t === "clippingParents" ? ix(e) : [].concat(t), - a = [].concat(o, [r]), - i = a[0], - l = a.reduce( - function (s, u) { - var d = Du(e, u, n); - return ( - (s.top = Cr(d.top, s.top)), - (s.right = Ko(d.right, s.right)), - (s.bottom = Ko(d.bottom, s.bottom)), - (s.left = Cr(d.left, s.left)), - s - ); - }, - Du(e, i, n), - ); - return ( - (l.width = l.right - l.left), - (l.height = l.bottom - l.top), - (l.x = l.left), - (l.y = l.top), - l - ); -} -var PO = N(() => { - (gt(), - _O(), - TO(), - nx(), - sa(), - Or(), - ia(), - mt(), - aa(), - ul(), - jv(), - ln(), - ox(), - un(), - m(ax, "getInnerBoundingClientRect"), - m(Du, "getClientRectFromMixedType"), - m(ix, "getClippingParents"), - m(lx, "getClippingRect")); -}); -function Pd(e) { - var t = e.reference, - r = e.element, - n = e.placement, - o = n ? kt(n) : null, - a = n ? tn(n) : null, - i = t.x + t.width / 2 - r.width / 2, - l = t.y + t.height / 2 - r.height / 2, - s; - switch (o) { - case Ge: - s = { x: i, y: t.y - r.height }; - break; - case st: - s = { x: i, y: t.y + t.height }; - break; - case ut: - s = { x: t.x + t.width, y: l }; - break; - case Ye: - s = { x: t.x - r.width, y: l }; - break; - default: - s = { x: t.x, y: t.y }; - } - var u = o ? cl(o) : null; - if (u != null) { - var d = u === "y" ? "height" : "width"; - switch (a) { - case Kr: - s[u] = s[u] - (t[d] / 2 - r[d] / 2); - break; - case Fn: - s[u] = s[u] + (t[d] / 2 - r[d] / 2); - break; - } - } - return s; -} -var sx = N(() => { - (sn(), ua(), Ad(), gt(), m(Pd, "computeOffsets")); -}); -function Xn(e, t) { - t === void 0 && (t = {}); - var r = t, - n = r.placement, - o = n === void 0 ? e.placement : n, - a = r.strategy, - i = a === void 0 ? e.strategy : a, - l = r.boundary, - s = l === void 0 ? Rv : l, - u = r.rootBoundary, - d = u === void 0 ? Ed : u, - p = r.elementContext, - c = p === void 0 ? $n : p, - f = r.altBoundary, - g = f === void 0 ? !1 : f, - y = r.padding, - x = y === void 0 ? 0 : y, - v = kd(typeof x != "number" ? x : Od(x, On)), - C = c === $n ? Pv : $n, - w = e.rects.popper, - E = e.elements[g ? C : c], - $ = lx(Dr(E) ? E : E.contextElement || lr(e.elements.popper), s, d, i), - A = en(e.elements.reference), - S = Pd({ reference: A, element: w, placement: o }), - D = wi(Object.assign({}, w, S)), - F = c === $n ? D : A, - k = { - top: $.top - F.top + v.top, - bottom: F.bottom - $.bottom + v.bottom, - left: $.left - F.left + v.left, - right: F.right - $.right + v.right, - }, - _ = e.modifiersData.offset; - if (c === $n && _) { - var I = _[o]; - Object.keys(k).forEach(function (L) { - var j = [ut, st].indexOf(L) >= 0 ? 1 : -1, - B = [Ge, st].indexOf(L) >= 0 ? "y" : "x"; - k[L] += I[B] * j; - }); - } - return k; -} -var gl = N(() => { - (PO(), - Or(), - aa(), - sx(), - ox(), - gt(), - mt(), - Vv(), - qv(), - m(Xn, "detectOverflow")); -}); -function ux(e, t) { - t === void 0 && (t = {}); - var r = t, - n = r.placement, - o = r.boundary, - a = r.rootBoundary, - i = r.padding, - l = r.flipVariations, - s = r.allowedAutoPlacements, - u = s === void 0 ? wd : s, - d = tn(n), - p = d - ? l - ? Su - : Su.filter(function (g) { - return tn(g) === d; - }) - : On, - c = p.filter(function (g) { - return u.indexOf(g) >= 0; - }); - c.length === 0 && (c = p); - var f = c.reduce(function (g, y) { - return ( - (g[y] = Xn(e, { placement: y, boundary: o, rootBoundary: a, padding: i })[ - kt(y) - ]), - g - ); - }, {}); - return Object.keys(f).sort(function (g, y) { - return f[g] - f[y]; - }); -} -var IO = N(() => { - (ua(), gt(), gl(), sn(), m(ux, "computeAutoPlacement")); -}); -function cx(e) { - if (kt(e) === xi) return []; - var t = Uo(e); - return [Au(e), t, Au(t)]; -} -function Yg(e) { - var t = e.state, - r = e.options, - n = e.name; - if (!t.modifiersData[n]._skip) { - for ( - var o = r.mainAxis, - a = o === void 0 ? !0 : o, - i = r.altAxis, - l = i === void 0 ? !0 : i, - s = r.fallbackPlacements, - u = r.padding, - d = r.boundary, - p = r.rootBoundary, - c = r.altBoundary, - f = r.flipVariations, - g = f === void 0 ? !0 : f, - y = r.allowedAutoPlacements, - x = t.options.placement, - v = kt(x), - C = v === x, - w = s || (C || !g ? [Uo(x)] : cx(x)), - E = [x].concat(w).reduce(function (ie, H) { - return ie.concat( - kt(H) === xi - ? ux(t, { - placement: H, - boundary: d, - rootBoundary: p, - padding: u, - flipVariations: g, - allowedAutoPlacements: y, - }) - : H, - ); - }, []), - $ = t.rects.reference, - A = t.rects.popper, - S = new Map(), - D = !0, - F = E[0], - k = 0; - k < E.length; - k++ - ) { - var _ = E[k], - I = kt(_), - L = tn(_) === Kr, - j = [Ge, st].indexOf(I) >= 0, - B = j ? "width" : "height", - z = Xn(t, { - placement: _, - boundary: d, - rootBoundary: p, - altBoundary: c, - padding: u, - }), - V = j ? (L ? ut : Ye) : L ? st : Ge; - $[B] > A[B] && (V = Uo(V)); - var Y = Uo(V), - W = []; - if ( - (a && W.push(z[I] <= 0), - l && W.push(z[V] <= 0, z[Y] <= 0), - W.every(function (ie) { - return ie; - })) - ) { - ((F = _), (D = !1)); - break; - } - S.set(_, W); - } - if (D) - for ( - var G = g ? 3 : 1, - J = m(function (ie) { - var H = E.find(function (X) { - var Z = S.get(X); - if (Z) - return Z.slice(0, ie).every(function (le) { - return le; - }); - }); - if (H) return ((F = H), "break"); - }, "_loop"), - Q = G; - Q > 0; - Q-- - ) { - var re = J(Q); - if (re === "break") break; - } - t.placement !== F && - ((t.modifiersData[n]._skip = !0), (t.placement = F), (t.reset = !0)); - } -} -var dx, - LO = N(() => { - (OO(), - sn(), - FO(), - gl(), - IO(), - gt(), - ua(), - m(cx, "getExpandedFallbackPlacements"), - m(Yg, "flip"), - (dx = { - name: "flip", - enabled: !0, - phase: "main", - fn: Yg, - requiresIfExists: ["offset"], - data: { _skip: !1 }, - })); - }); -function ku(e, t, r) { - return ( - r === void 0 && (r = { x: 0, y: 0 }), - { - top: e.top - t.height - r.y, - right: e.right - t.width + r.x, - bottom: e.bottom - t.height + r.y, - left: e.left - t.width - r.x, - } - ); -} -function Ou(e) { - return [Ge, ut, st, Ye].some(function (t) { - return e[t] >= 0; - }); -} -function Kg(e) { - var t = e.state, - r = e.name, - n = t.rects.reference, - o = t.rects.popper, - a = t.modifiersData.preventOverflow, - i = Xn(t, { elementContext: "reference" }), - l = Xn(t, { altBoundary: !0 }), - s = ku(i, n), - u = ku(l, o, a), - d = Ou(s), - p = Ou(u); - ((t.modifiersData[r] = { - referenceClippingOffsets: s, - popperEscapeOffsets: u, - isReferenceHidden: d, - hasPopperEscaped: p, - }), - (t.attributes.popper = Object.assign({}, t.attributes.popper, { - "data-popper-reference-hidden": d, - "data-popper-escaped": p, - }))); -} -var px, - BO = N(() => { - (gt(), - gl(), - m(ku, "getSideOffsets"), - m(Ou, "isAnySideFullyClipped"), - m(Kg, "hide"), - (px = { - name: "hide", - enabled: !0, - phase: "main", - requiresIfExists: ["preventOverflow"], - fn: Kg, - })); - }); -function fx(e, t, r) { - var n = kt(e), - o = [Ye, Ge].indexOf(n) >= 0 ? -1 : 1, - a = typeof r == "function" ? r(Object.assign({}, t, { placement: e })) : r, - i = a[0], - l = a[1]; - return ( - (i = i || 0), - (l = (l || 0) * o), - [Ye, ut].indexOf(n) >= 0 ? { x: l, y: i } : { x: i, y: l } - ); -} -function Xg(e) { - var t = e.state, - r = e.options, - n = e.name, - o = r.offset, - a = o === void 0 ? [0, 0] : o, - i = wd.reduce(function (d, p) { - return ((d[p] = fx(p, t.rects, a)), d); - }, {}), - l = i[t.placement], - s = l.x, - u = l.y; - (t.modifiersData.popperOffsets != null && - ((t.modifiersData.popperOffsets.x += s), - (t.modifiersData.popperOffsets.y += u)), - (t.modifiersData[n] = i)); -} -var gx, - NO = N(() => { - (sn(), - gt(), - m(fx, "distanceAndSkiddingToXY"), - m(Xg, "offset"), - (gx = { - name: "offset", - enabled: !0, - phase: "main", - requires: ["popperOffsets"], - fn: Xg, - })); - }); -function Zg(e) { - var t = e.state, - r = e.name; - t.modifiersData[r] = Pd({ - reference: t.rects.reference, - element: t.rects.popper, - placement: t.placement, - }); -} -var mx, - jO = N(() => { - (sx(), - m(Zg, "popperOffsets"), - (mx = { - name: "popperOffsets", - enabled: !0, - phase: "read", - fn: Zg, - data: {}, - })); - }); -function hx(e) { - return e === "x" ? "y" : "x"; -} -var MO = N(() => { - m(hx, "getAltAxis"); -}); -function Jg(e) { - var t = e.state, - r = e.options, - n = e.name, - o = r.mainAxis, - a = o === void 0 ? !0 : o, - i = r.altAxis, - l = i === void 0 ? !1 : i, - s = r.boundary, - u = r.rootBoundary, - d = r.altBoundary, - p = r.padding, - c = r.tether, - f = c === void 0 ? !0 : c, - g = r.tetherOffset, - y = g === void 0 ? 0 : g, - x = Xn(t, { boundary: s, rootBoundary: u, padding: p, altBoundary: d }), - v = kt(t.placement), - C = tn(t.placement), - w = !C, - E = cl(v), - $ = hx(E), - A = t.modifiersData.popperOffsets, - S = t.rects.reference, - D = t.rects.popper, - F = - typeof y == "function" - ? y(Object.assign({}, t.rects, { placement: t.placement })) - : y, - k = - typeof F == "number" - ? { mainAxis: F, altAxis: F } - : Object.assign({ mainAxis: 0, altAxis: 0 }, F), - _ = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, - I = { x: 0, y: 0 }; - if (A) { - if (a) { - var L, - j = E === "y" ? Ge : Ye, - B = E === "y" ? st : ut, - z = E === "y" ? "height" : "width", - V = A[E], - Y = V + x[j], - W = V - x[B], - G = f ? -D[z] / 2 : 0, - J = C === Kr ? S[z] : D[z], - Q = C === Kr ? -D[z] : -S[z], - re = t.elements.arrow, - ie = f && re ? sl(re) : { width: 0, height: 0 }, - H = t.modifiersData["arrow#persistent"] - ? t.modifiersData["arrow#persistent"].padding - : Dd(), - X = H[j], - Z = H[B], - le = _n(0, S[z], ie[z]), - me = w ? S[z] / 2 - G - le - X - k.mainAxis : J - le - X - k.mainAxis, - Re = w ? -S[z] / 2 + G + le + Z + k.mainAxis : Q + le + Z + k.mainAxis, - ne = t.elements.arrow && lo(t.elements.arrow), - de = ne ? (E === "y" ? ne.clientTop || 0 : ne.clientLeft || 0) : 0, - M = (L = _?.[E]) != null ? L : 0, - U = V + me - M - de, - fe = V + Re - M, - ke = _n(f ? Ko(Y, U) : Y, V, f ? Cr(W, fe) : W); - ((A[E] = ke), (I[E] = ke - V)); - } - if (l) { - var be, - We = E === "x" ? Ge : Ye, - pr = E === "x" ? st : ut, - Ce = A[$], - nt = $ === "y" ? "height" : "width", - $e = Ce + x[We], - ht = Ce - x[pr], - Ve = [Ge, Ye].indexOf(v) !== -1, - yt = (be = _?.[$]) != null ? be : 0, - Rt = Ve ? $e : Ce - S[nt] - D[nt] - yt + k.altAxis, - Me = Ve ? Ce + S[nt] + D[nt] - yt - k.altAxis : ht, - bt = f && Ve ? Hv(Rt, Ce, Me) : _n(f ? Rt : $e, Ce, f ? Me : ht); - ((A[$] = bt), (I[$] = bt - Ce)); - } - t.modifiersData[n] = I; - } -} -var yx, - zO = N(() => { - (gt(), - sn(), - Ad(), - MO(), - Uv(), - Cd(), - sa(), - gl(), - ua(), - Wv(), - un(), - m(Jg, "preventOverflow"), - (yx = { - name: "preventOverflow", - enabled: !0, - phase: "main", - fn: Jg, - requiresIfExists: ["offset"], - })); - }), - bx = N(() => {}); -function vx(e) { - return { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop }; -} -var HO = N(() => { - m(vx, "getHTMLElementScroll"); -}); -function xx(e) { - return e === Qe(e) || !lt(e) ? dl(e) : vx(e); -} -var UO = N(() => { - (Fd(), Wt(), mt(), HO(), m(xx, "getNodeScroll")); -}); -function Ex(e) { - var t = e.getBoundingClientRect(), - r = Qr(t.width) / e.offsetWidth || 1, - n = Qr(t.height) / e.offsetHeight || 1; - return r !== 1 || n !== 1; -} -function wx(e, t, r) { - r === void 0 && (r = !1); - var n = lt(t), - o = lt(t) && Ex(t), - a = lr(t), - i = en(e, o, r), - l = { scrollLeft: 0, scrollTop: 0 }, - s = { x: 0, y: 0 }; - return ( - (n || (!n && !r)) && - ((Ot(t) !== "body" || fl(a)) && (l = xx(t)), - lt(t) - ? ((s = en(t, !0)), (s.x += t.clientLeft), (s.y += t.clientTop)) - : a && (s.x = pl(a))), - { - x: i.left + l.scrollLeft - s.x, - y: i.top + l.scrollTop - s.y, - width: i.width, - height: i.height, - } - ); -} -var WO = N(() => { - (aa(), - UO(), - ln(), - mt(), - _d(), - Or(), - Td(), - un(), - m(Ex, "isElementScaled"), - m(wx, "getCompositeRect")); -}); -function Sx(e) { - var t = new Map(), - r = new Set(), - n = []; - e.forEach(function (a) { - t.set(a.name, a); - }); - function o(a) { - r.add(a.name); - var i = [].concat(a.requires || [], a.requiresIfExists || []); - (i.forEach(function (l) { - if (!r.has(l)) { - var s = t.get(l); - s && o(s); - } - }), - n.push(a)); - } - return ( - m(o, "sort"), - e.forEach(function (a) { - r.has(a.name) || o(a); - }), - n - ); -} -function Cx(e) { - var t = Sx(e); - return Iv.reduce(function (r, n) { - return r.concat( - t.filter(function (o) { - return o.phase === n; - }), - ); - }, []); -} -var VO = N(() => { - (gt(), m(Sx, "order"), m(Cx, "orderModifiers")); -}); -function $x(e) { - var t; - return function () { - return ( - t || - (t = new Promise(function (r) { - Promise.resolve().then(function () { - ((t = void 0), r(e())); - }); - })), - t - ); - }; -} -var qO = N(() => { - m($x, "debounce"); -}); -function Ax(e) { - var t = e.reduce(function (r, n) { - var o = r[n.name]; - return ( - (r[n.name] = o - ? Object.assign({}, o, n, { - options: Object.assign({}, o.options, n.options), - data: Object.assign({}, o.data, n.data), - }) - : n), - r - ); - }, {}); - return Object.keys(t).map(function (r) { - return t[r]; - }); -} -var GO = N(() => { - m(Ax, "mergeByName"); -}); -function Fu() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - return !t.some(function (n) { - return !(n && typeof n.getBoundingClientRect == "function"); - }); -} -function Dx(e) { - e === void 0 && (e = {}); - var t = e, - r = t.defaultModifiers, - n = r === void 0 ? [] : r, - o = t.defaultOptions, - a = o === void 0 ? _u : o; - return m(function (i, l, s) { - s === void 0 && (s = a); - var u = { - placement: "bottom", - orderedModifiers: [], - options: Object.assign({}, _u, a), - modifiersData: {}, - elements: { reference: i, popper: l }, - attributes: {}, - styles: {}, - }, - d = [], - p = !1, - c = { - state: u, - setOptions: m(function (y) { - var x = typeof y == "function" ? y(u.options) : y; - (g(), - (u.options = Object.assign({}, a, u.options, x)), - (u.scrollParents = { - reference: Dr(i) - ? Tn(i) - : i.contextElement - ? Tn(i.contextElement) - : [], - popper: Tn(l), - })); - var v = Cx(Ax([].concat(n, u.options.modifiers))); - return ( - (u.orderedModifiers = v.filter(function (C) { - return C.enabled; - })), - f(), - c.update() - ); - }, "setOptions"), - forceUpdate: m(function () { - if (!p) { - var y = u.elements, - x = y.reference, - v = y.popper; - if (Fu(x, v)) { - ((u.rects = { - reference: wx(x, lo(v), u.options.strategy === "fixed"), - popper: sl(v), - }), - (u.reset = !1), - (u.placement = u.options.placement), - u.orderedModifiers.forEach(function (D) { - return (u.modifiersData[D.name] = Object.assign({}, D.data)); - })); - for (var C = 0; C < u.orderedModifiers.length; C++) { - if (u.reset === !0) { - ((u.reset = !1), (C = -1)); - continue; - } - var w = u.orderedModifiers[C], - E = w.fn, - $ = w.options, - A = $ === void 0 ? {} : $, - S = w.name; - typeof E == "function" && - (u = E({ state: u, options: A, name: S, instance: c }) || u); - } - } - } - }, "forceUpdate"), - update: $x(function () { - return new Promise(function (y) { - (c.forceUpdate(), y(u)); - }); - }), - destroy: m(function () { - (g(), (p = !0)); - }, "destroy"), - }; - if (!Fu(i, l)) return c; - c.setOptions(s).then(function (y) { - !p && s.onFirstUpdate && s.onFirstUpdate(y); - }); - function f() { - u.orderedModifiers.forEach(function (y) { - var x = y.name, - v = y.options, - C = v === void 0 ? {} : v, - w = y.effect; - if (typeof w == "function") { - var E = w({ state: u, name: x, instance: c, options: C }), - $ = m(function () {}, "noopFn"); - d.push(E || $); - } - }); - } - m(f, "runModifierEffects"); - function g() { - (d.forEach(function (y) { - return y(); - }), - (d = [])); - } - return (m(g, "cleanupModifierEffects"), c); - }, "createPopper"); -} -var _u, - YO = N(() => { - (WO(), - Cd(), - nx(), - sa(), - VO(), - qO(), - GO(), - mt(), - (_u = { placement: "bottom", modifiers: [], strategy: "absolute" }), - m(Fu, "areValidElements"), - m(Dx, "popperGenerator")); - }), - Qg, - kx, - KO = N(() => { - (YO(), - kO(), - jO(), - DO(), - CO(), - NO(), - LO(), - zO(), - AO(), - BO(), - bx(), - (Qg = [Jv, mx, Zv, Lv, gx, dx, yx, Yv, px]), - (kx = Dx({ defaultModifiers: Qg }))); - }), - XO = N(() => { - (gt(), bx(), KO()); - }), - ZO = te((e, t) => { - var r = typeof Element < "u", - n = typeof Map == "function", - o = typeof Set == "function", - a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView; - function i(l, s) { - if (l === s) return !0; - if (l && s && typeof l == "object" && typeof s == "object") { - if (l.constructor !== s.constructor) return !1; - var u, d, p; - if (Array.isArray(l)) { - if (((u = l.length), u != s.length)) return !1; - for (d = u; d-- !== 0; ) if (!i(l[d], s[d])) return !1; - return !0; - } - var c; - if (n && l instanceof Map && s instanceof Map) { - if (l.size !== s.size) return !1; - for (c = l.entries(); !(d = c.next()).done; ) - if (!s.has(d.value[0])) return !1; - for (c = l.entries(); !(d = c.next()).done; ) - if (!i(d.value[1], s.get(d.value[0]))) return !1; - return !0; - } - if (o && l instanceof Set && s instanceof Set) { - if (l.size !== s.size) return !1; - for (c = l.entries(); !(d = c.next()).done; ) - if (!s.has(d.value[0])) return !1; - return !0; - } - if (a && ArrayBuffer.isView(l) && ArrayBuffer.isView(s)) { - if (((u = l.length), u != s.length)) return !1; - for (d = u; d-- !== 0; ) if (l[d] !== s[d]) return !1; - return !0; - } - if (l.constructor === RegExp) - return l.source === s.source && l.flags === s.flags; - if ( - l.valueOf !== Object.prototype.valueOf && - typeof l.valueOf == "function" && - typeof s.valueOf == "function" - ) - return l.valueOf() === s.valueOf(); - if ( - l.toString !== Object.prototype.toString && - typeof l.toString == "function" && - typeof s.toString == "function" - ) - return l.toString() === s.toString(); - if (((p = Object.keys(l)), (u = p.length), u !== Object.keys(s).length)) - return !1; - for (d = u; d-- !== 0; ) - if (!Object.prototype.hasOwnProperty.call(s, p[d])) return !1; - if (r && l instanceof Element) return !1; - for (d = u; d-- !== 0; ) - if ( - !( - (p[d] === "_owner" || p[d] === "__v" || p[d] === "__o") && - l.$$typeof - ) && - !i(l[p[d]], s[p[d]]) - ) - return !1; - return !0; - } - return l !== l && s !== s; - } - (m(i, "equal"), - (t.exports = m(function (l, s) { - try { - return i(l, s); - } catch (u) { - if ((u.message || "").match(/stack|recursion/i)) - return ( - console.warn("react-fast-compare cannot handle circular refs"), - !1 - ); - throw u; - } - }, "isEqual"))); - }), - em, - tm, - Ox, - JO = N(() => { - (XO(), - (em = je(ZO())), - SO(), - (tm = []), - (Ox = m(function (e, t, r) { - r === void 0 && (r = {}); - var n = b.useRef(null), - o = { - onFirstUpdate: r.onFirstUpdate, - placement: r.placement || "bottom", - strategy: r.strategy || "absolute", - modifiers: r.modifiers || tm, - }, - a = b.useState({ - styles: { - popper: { position: o.strategy, left: "0", top: "0" }, - arrow: { position: "absolute" }, - }, - attributes: {}, - }), - i = a[0], - l = a[1], - s = b.useMemo(function () { - return { - name: "updateState", - enabled: !0, - phase: "write", - fn: m(function (p) { - var c = p.state, - f = Object.keys(c.elements); - Qi.flushSync(function () { - l({ - styles: Eu( - f.map(function (g) { - return [g, c.styles[g] || {}]; - }), - ), - attributes: Eu( - f.map(function (g) { - return [g, c.attributes[g]]; - }), - ), - }); - }); - }, "fn"), - requires: ["computeStyles"], - }; - }, []), - u = b.useMemo( - function () { - var p = { - onFirstUpdate: o.onFirstUpdate, - placement: o.placement, - strategy: o.strategy, - modifiers: [].concat(o.modifiers, [ - s, - { name: "applyStyles", enabled: !1 }, - ]), - }; - return (0, em.default)(n.current, p) - ? n.current || p - : ((n.current = p), p); - }, - [o.onFirstUpdate, o.placement, o.strategy, o.modifiers, s], - ), - d = b.useRef(); - return ( - wu( - function () { - d.current && d.current.setOptions(u); - }, - [u], - ), - wu( - function () { - if (!(e == null || t == null)) { - var p = r.createPopper || kx, - c = p(e, t, u); - return ( - (d.current = c), - function () { - (c.destroy(), (d.current = null)); - } - ); - } - }, - [e, t, r.createPopper], - ), - { - state: d.current ? d.current.state : null, - styles: i.styles, - attributes: i.attributes, - update: d.current ? d.current.update : null, - forceUpdate: d.current ? d.current.forceUpdate : null, - } - ); - }, "usePopper"))); - }), - QO = N(() => { - JO(); - }); -function Id(e) { - var t = b.useRef(e); - return ( - (t.current = e), - b.useCallback(function () { - return t.current; - }, []) - ); -} -function Fx(e) { - var t = e.initial, - r = e.value, - n = e.onChange, - o = n === void 0 ? Tx : n; - if (t === void 0 && r === void 0) - throw new TypeError( - 'Either "value" or "initial" variable must be set. Now both are undefined', - ); - var a = b.useState(t), - i = a[0], - l = a[1], - s = Id(i), - u = b.useCallback( - function (p) { - var c = s(), - f = typeof p == "function" ? p(c) : p; - (typeof f.persist == "function" && f.persist(), - l(f), - typeof o == "function" && o(f)); - }, - [s, o], - ), - d = r !== void 0; - return [d ? r : i, d ? o : u]; -} -function Tu(e, t) { - return ( - e === void 0 && (e = 0), - t === void 0 && (t = 0), - function () { - return { - width: 0, - height: 0, - top: t, - right: e, - bottom: t, - left: e, - x: 0, - y: 0, - toJSON: m(function () { - return null; - }, "toJSON"), - }; - } - ); -} -function _x(e, t) { - var r, n, o; - (e === void 0 && (e = {}), t === void 0 && (t = {})); - var a = Object.keys(Pu).reduce(function (B, z) { - var V; - return xe({}, B, ((V = {}), (V[z] = B[z] !== void 0 ? B[z] : Pu[z]), V)); - }, e), - i = b.useMemo( - function () { - return [{ name: "offset", options: { offset: a.offset } }]; - }, - Array.isArray(a.offset) ? a.offset : [], - ), - l = xe({}, t, { - placement: t.placement || a.placement, - modifiers: t.modifiers || i, - }), - s = b.useState(null), - u = s[0], - d = s[1], - p = b.useState(null), - c = p[0], - f = p[1], - g = Fx({ - initial: a.defaultVisible, - value: a.visible, - onChange: a.onVisibleChange, - }), - y = g[0], - x = g[1], - v = b.useRef(); - b.useEffect(function () { - return function () { - return clearTimeout(v.current); - }; - }, []); - var C = Ox(a.followCursor ? Ru : u, c, l), - w = C.styles, - E = C.attributes, - $ = nl(C, Rx), - A = $.update, - S = Id({ visible: y, triggerRef: u, tooltipRef: c, finalConfig: a }), - D = b.useCallback( - function (B) { - return Array.isArray(a.trigger) - ? a.trigger.includes(B) - : a.trigger === B; - }, - Array.isArray(a.trigger) ? a.trigger : [a.trigger], - ), - F = b.useCallback( - function () { - (clearTimeout(v.current), - (v.current = window.setTimeout(function () { - return x(!1); - }, a.delayHide))); - }, - [a.delayHide, x], - ), - k = b.useCallback( - function () { - (clearTimeout(v.current), - (v.current = window.setTimeout(function () { - return x(!0); - }, a.delayShow))); - }, - [a.delayShow, x], - ), - _ = b.useCallback( - function () { - S().visible ? F() : k(); - }, - [S, F, k], - ); - (b.useEffect( - function () { - if (S().finalConfig.closeOnOutsideClick) { - var B = m(function (z) { - var V, - Y = S(), - W = Y.tooltipRef, - G = Y.triggerRef, - J = - (z.composedPath == null || (V = z.composedPath()) == null - ? void 0 - : V[0]) || z.target; - J instanceof Node && - W != null && - G != null && - !W.contains(J) && - !G.contains(J) && - F(); - }, "handleClickOutside"); - return ( - document.addEventListener("mousedown", B), - function () { - return document.removeEventListener("mousedown", B); - } - ); - } - }, - [S, F], - ), - b.useEffect( - function () { - if (!(u == null || !D("click"))) - return ( - u.addEventListener("click", _), - function () { - return u.removeEventListener("click", _); - } - ); - }, - [u, D, _], - ), - b.useEffect( - function () { - if (!(u == null || !D("double-click"))) - return ( - u.addEventListener("dblclick", _), - function () { - return u.removeEventListener("dblclick", _); - } - ); - }, - [u, D, _], - ), - b.useEffect( - function () { - if (!(u == null || !D("right-click"))) { - var B = m(function (z) { - (z.preventDefault(), _()); - }, "preventDefaultAndToggle"); - return ( - u.addEventListener("contextmenu", B), - function () { - return u.removeEventListener("contextmenu", B); - } - ); - } - }, - [u, D, _], - ), - b.useEffect( - function () { - if (!(u == null || !D("focus"))) - return ( - u.addEventListener("focus", k), - u.addEventListener("blur", F), - function () { - (u.removeEventListener("focus", k), - u.removeEventListener("blur", F)); - } - ); - }, - [u, D, k, F], - ), - b.useEffect( - function () { - if (!(u == null || !D("hover"))) - return ( - u.addEventListener("mouseenter", k), - u.addEventListener("mouseleave", F), - function () { - (u.removeEventListener("mouseenter", k), - u.removeEventListener("mouseleave", F)); - } - ); - }, - [u, D, k, F], - ), - b.useEffect( - function () { - if (!(c == null || !D("hover") || !S().finalConfig.interactive)) - return ( - c.addEventListener("mouseenter", k), - c.addEventListener("mouseleave", F), - function () { - (c.removeEventListener("mouseenter", k), - c.removeEventListener("mouseleave", F)); - } - ); - }, - [c, D, k, F, S], - )); - var I = - $ == null || - (r = $.state) == null || - (n = r.modifiersData) == null || - (o = n.hide) == null - ? void 0 - : o.isReferenceHidden; - (b.useEffect( - function () { - a.closeOnTriggerHidden && I && F(); - }, - [a.closeOnTriggerHidden, F, I], - ), - b.useEffect( - function () { - if (!a.followCursor || u == null) return; - function B(z) { - var V = z.clientX, - Y = z.clientY; - ((Ru.getBoundingClientRect = Tu(V, Y)), A?.()); - } - return ( - m(B, "setMousePosition"), - u.addEventListener("mousemove", B), - function () { - return u.removeEventListener("mousemove", B); - } - ); - }, - [a.followCursor, u, A], - ), - b.useEffect( - function () { - if (!(c == null || A == null || a.mutationObserverOptions == null)) { - var B = new MutationObserver(A); - return ( - B.observe(c, a.mutationObserverOptions), - function () { - return B.disconnect(); - } - ); - } - }, - [a.mutationObserverOptions, c, A], - )); - var L = m(function (B) { - return ( - B === void 0 && (B = {}), - xe({}, B, { style: xe({}, B.style, w.popper) }, E.popper, { - "data-popper-interactive": a.interactive, - }) - ); - }, "getTooltipProps"), - j = m(function (B) { - return ( - B === void 0 && (B = {}), - xe({}, B, E.arrow, { - style: xe({}, B.style, w.arrow), - "data-popper-arrow": !0, - }) - ); - }, "getArrowProps"); - return xe( - { - getArrowProps: j, - getTooltipProps: L, - setTooltipRef: f, - setTriggerRef: d, - tooltipRef: c, - triggerRef: u, - visible: y, - }, - $, - ); -} -var Tx, - Rx, - Ru, - Pu, - eF = N(() => { - (sd(), - tl(), - QO(), - m(Id, "useGetLatest"), - (Tx = m(function () {}, "noop")), - m(Fx, "useControlledState"), - m(Tu, "generateBoundingClientRect"), - (Rx = ["styles", "attributes"]), - (Ru = { getBoundingClientRect: Tu() }), - (Pu = { - closeOnOutsideClick: !0, - closeOnTriggerHidden: !1, - defaultVisible: !1, - delayHide: 0, - delayShow: 0, - followCursor: !1, - interactive: !1, - mutationObserverOptions: { attributes: !0, childList: !0, subtree: !0 }, - offset: [0, 6], - trigger: "hover", - }), - m(_x, "usePopperTooltip")); - }), - rm, - at, - Kt, - nm, - om, - Iu, - tF = N(() => { - ((rm = je(rl(), 1)), - (at = (0, rm.default)(1e3)((e, t, r, n = 0) => - t.split("-")[0] === e ? r : n, - )), - (Kt = 8), - (nm = T.div( - { position: "absolute", borderStyle: "solid" }, - ({ placement: e }) => { - let t = 0, - r = 0; - switch (!0) { - case e.startsWith("left") || e.startsWith("right"): { - r = 8; - break; - } - case e.startsWith("top") || e.startsWith("bottom"): { - t = 8; - break; - } - } - return { transform: `translate3d(${t}px, ${r}px, 0px)` }; - }, - ({ theme: e, color: t, placement: r }) => ({ - bottom: `${at("top", r, `${Kt * -1}px`, "auto")}`, - top: `${at("bottom", r, `${Kt * -1}px`, "auto")}`, - right: `${at("left", r, `${Kt * -1}px`, "auto")}`, - left: `${at("right", r, `${Kt * -1}px`, "auto")}`, - borderBottomWidth: `${at("top", r, "0", Kt)}px`, - borderTopWidth: `${at("bottom", r, "0", Kt)}px`, - borderRightWidth: `${at("left", r, "0", Kt)}px`, - borderLeftWidth: `${at("right", r, "0", Kt)}px`, - borderTopColor: at( - "top", - r, - e.color[t] || t || e.base === "light" - ? wn(e.background.app) - : e.background.app, - "transparent", - ), - borderBottomColor: at( - "bottom", - r, - e.color[t] || t || e.base === "light" - ? wn(e.background.app) - : e.background.app, - "transparent", - ), - borderLeftColor: at( - "left", - r, - e.color[t] || t || e.base === "light" - ? wn(e.background.app) - : e.background.app, - "transparent", - ), - borderRightColor: at( - "right", - r, - e.color[t] || t || e.base === "light" - ? wn(e.background.app) - : e.background.app, - "transparent", - ), - }), - )), - (om = T.div( - ({ hidden: e }) => ({ - display: e ? "none" : "inline-block", - zIndex: 2147483647, - colorScheme: "light dark", - }), - ({ theme: e, color: t, hasChrome: r }) => - r - ? { - background: - (t && e.color[t]) || t || e.base === "light" - ? wn(e.background.app) - : e.background.app, - filter: ` - drop-shadow(0px 5px 5px rgba(0,0,0,0.05)) - drop-shadow(0 1px 3px rgba(0,0,0,0.1)) - `, - borderRadius: e.appBorderRadius + 2, - fontSize: e.typography.size.s1, - } - : {}, - )), - (Iu = h.forwardRef( - ( - { - placement: e = "top", - hasChrome: t = !0, - children: r, - arrowProps: n = {}, - tooltipRef: o, - color: a, - withArrows: i, - ...l - }, - s, - ) => - h.createElement( - om, - { "data-testid": "tooltip", hasChrome: t, ref: s, ...l, color: a }, - t && i && h.createElement(nm, { placement: e, ...n, color: a }), - r, - ), - )), - (Iu.displayName = "Tooltip")); - }), - Ld = {}; -na(Ld, { - WithToolTipState: () => Si, - WithTooltip: () => Si, - WithTooltipPure: () => Lu, -}); -const { global: rF } = __STORYBOOK_MODULE_GLOBAL__; -var wo, - am, - im, - Lu, - Si, - Bd = N(() => { - (eF(), - tF(), - ({ document: wo } = rF), - (am = T.div` - display: inline-block; - cursor: ${(e) => (e.trigger === "hover" || e.trigger?.includes("hover") ? "default" : "pointer")}; -`), - (im = T.g` - cursor: ${(e) => (e.trigger === "hover" || e.trigger?.includes("hover") ? "default" : "pointer")}; -`), - (Lu = m( - ({ - svg: e = !1, - trigger: t = "click", - closeOnOutsideClick: r = !1, - placement: n = "top", - modifiers: o = [ - { name: "preventOverflow", options: { padding: 8 } }, - { name: "offset", options: { offset: [8, 8] } }, - { name: "arrow", options: { padding: 8 } }, - ], - hasChrome: a = !0, - defaultVisible: i = !1, - withArrows: l, - offset: s, - tooltip: u, - children: d, - closeOnTriggerHidden: p, - mutationObserverOptions: c, - delayHide: f = t === "hover" ? 200 : 0, - visible: g, - interactive: y, - delayShow: x = t === "hover" ? 400 : 0, - strategy: v, - followCursor: C, - onVisibleChange: w, - ...E - }) => { - let $ = e ? im : am, - { - getArrowProps: A, - getTooltipProps: S, - setTooltipRef: D, - setTriggerRef: F, - visible: k, - state: _, - } = _x( - { - trigger: t, - placement: n, - defaultVisible: i, - delayHide: f, - interactive: y, - closeOnOutsideClick: r, - closeOnTriggerHidden: p, - onVisibleChange: w, - delayShow: x, - followCursor: C, - mutationObserverOptions: c, - visible: g, - offset: s, - }, - { modifiers: o, strategy: v }, - ), - I = k - ? h.createElement( - Iu, - { - placement: _?.placement, - ref: D, - hasChrome: a, - arrowProps: A(), - withArrows: l, - ...S(), - }, - typeof u == "function" - ? u({ onHide: m(() => w(!1), "onHide") }) - : u, - ) - : null; - return h.createElement( - h.Fragment, - null, - h.createElement($, { trigger: t, ref: F, ...E }, d), - k && x1.createPortal(I, wo.body), - ); - }, - "WithTooltipPure", - )), - (Si = m(({ startOpen: e = !1, onVisibleChange: t, ...r }) => { - let [n, o] = b.useState(e), - a = b.useCallback( - (i) => { - (t && t(i) === !1) || o(i); - }, - [t], - ); - return ( - b.useEffect(() => { - let i = m(() => a(!1), "hide"); - wo.addEventListener("keydown", i, !1); - let l = Array.from(wo.getElementsByTagName("iframe")), - s = []; - return ( - l.forEach((u) => { - let d = m(() => { - try { - u.contentWindow.document && - (u.contentWindow.document.addEventListener("click", i), - s.push(() => { - try { - u.contentWindow.document.removeEventListener( - "click", - i, - ); - } catch {} - })); - } catch {} - }, "bind"); - (d(), - u.addEventListener("load", d), - s.push(() => { - u.removeEventListener("load", d); - })); - }), - () => { - (wo.removeEventListener("keydown", i), - s.forEach((u) => { - u(); - })); - } - ); - }), - h.createElement(Lu, { ...r, visible: n, onVisibleChange: a }) - ); - }, "WithToolTipState"))); - }), - ve = m(({ ...e }, t) => { - let r = [e.class, e.className]; - return ( - delete e.class, - (e.className = ["sbdocs", `sbdocs-${t}`, ...r].filter(Boolean).join(" ")), - e - ); - }, "nameSpaceClassNames"); -tl(); -ok(); -ld(); -function Px(e, t) { - ((e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - Yn(e, t)); -} -m(Px, "_inheritsLoose"); -ak(); -ld(); -function Ix(e) { - try { - return Function.toString.call(e).indexOf("[native code]") !== -1; - } catch { - return typeof e == "function"; - } -} -m(Ix, "_isNativeFunction"); -function Nd() { - try { - var e = !Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}), - ); - } catch {} - return (Nd = m(function () { - return !!e; - }, "_isNativeReflectConstruct"))(); -} -m(Nd, "_isNativeReflectConstruct"); -ld(); -function Lx(e, t, r) { - if (Nd()) return Reflect.construct.apply(null, arguments); - var n = [null]; - n.push.apply(n, t); - var o = new (e.bind.apply(e, n))(); - return (r && Yn(o, r.prototype), o); -} -m(Lx, "_construct"); -function Ci(e) { - var t = typeof Map == "function" ? new Map() : void 0; - return ( - (Ci = m(function (r) { - if (r === null || !Ix(r)) return r; - if (typeof r != "function") - throw new TypeError( - "Super expression must either be null or a function", - ); - if (t !== void 0) { - if (t.has(r)) return t.get(r); - t.set(r, n); - } - function n() { - return Lx(r, arguments, mi(this).constructor); - } - return ( - m(n, "Wrapper"), - (n.prototype = Object.create(r.prototype, { - constructor: { - value: n, - enumerable: !1, - writable: !0, - configurable: !0, - }, - })), - Yn(n, r) - ); - }, "_wrapNativeSuper")), - Ci(e) - ); -} -m(Ci, "_wrapNativeSuper"); -var nF = { - 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). - -`, - 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). - -`, - 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. - -`, - 4: `Couldn't generate valid rgb string from %s, it returned %s. - -`, - 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. - -`, - 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). - -`, - 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). - -`, - 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. - -`, - 9: `Please provide a number of steps to the modularScale helper. - -`, - 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`, - 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" - -`, - 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. - -`, - 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. - -`, - 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. - -`, - 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. - -`, - 16: `You must provide a template to this method. - -`, - 17: `You passed an unsupported selector state to this method. - -`, - 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. - -`, - 19: `fromSize and toSize must be provided as stringified numbers with the same units. - -`, - 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`, - 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - 23: `fontFace expects a name of a font-family. - -`, - 24: `fontFace expects either the path to the font file(s) or a name of a local copy. - -`, - 25: `fontFace expects localFonts to be an array. - -`, - 26: `fontFace expects fileFormats to be an array. - -`, - 27: `radialGradient requries at least 2 color-stops to properly render. - -`, - 28: `Please supply a filename to retinaImage() as the first argument. - -`, - 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`, - 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation - -`, - 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) -To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') - -`, - 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation - -`, - 34: `borderRadius expects a radius value as a string or number as the second argument. - -`, - 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`, - 36: `Property must be a string value. - -`, - 37: `Syntax Error at %s. - -`, - 38: `Formula contains a function that needs parentheses at %s. - -`, - 39: `Formula is missing closing parenthesis at %s. - -`, - 40: `Formula has too many closing parentheses at %s. - -`, - 41: `All values in a formula must have the same unit or be unitless. - -`, - 42: `Please provide a number of steps to the modularScale helper. - -`, - 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`, - 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. - -`, - 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. - -`, - 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. - -`, - 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. - -`, - 48: `fromSize and toSize must be provided as stringified numbers with the same units. - -`, - 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`, - 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. - -`, - 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. - -`, - 52: `fontFace expects either the path to the font file(s) or a name of a local copy. - -`, - 53: `fontFace expects localFonts to be an array. - -`, - 54: `fontFace expects fileFormats to be an array. - -`, - 55: `fontFace expects a name of a font-family. - -`, - 56: `linearGradient requries at least 2 color-stops to properly render. - -`, - 57: `radialGradient requries at least 2 color-stops to properly render. - -`, - 58: `Please supply a filename to retinaImage() as the first argument. - -`, - 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`, - 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - 61: `Property must be a string value. - -`, - 62: `borderRadius expects a radius value as a string or number as the second argument. - -`, - 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`, - 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. - -`, - 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). - -`, - 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. - -`, - 67: `You must provide a template to this method. - -`, - 68: `You passed an unsupported selector state to this method. - -`, - 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. - -`, - 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. - -`, - 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. - -`, - 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. - -`, - 73: `Please provide a valid CSS variable. - -`, - 74: `CSS variable not found and no default was provided. - -`, - 75: `important requires a valid style object, got a %s instead. - -`, - 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. - -`, - 77: `remToPx expects a value in "rem" but you provided it in "%s". - -`, - 78: `base must be set in "px" or "%" but you set it in "%s". -`, -}; -function Bx() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - var n = t[0], - o = [], - a; - for (a = 1; a < t.length; a += 1) o.push(t[a]); - return ( - o.forEach(function (i) { - n = n.replace(/%[a-z]/, i); - }), - n - ); -} -m(Bx, "format"); -var Xe = (function (e) { - Px(t, e); - function t(r) { - for ( - var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; - i < o; - i++ - ) - a[i - 1] = arguments[i]; - return ( - (n = e.call(this, Bx.apply(void 0, [nF[r]].concat(a))) || this), - E1(n) - ); - } - return (m(t, "PolishedError"), t); -})(Ci(Error)); -function Bu(e, t) { - return e.substr(-t.length) === t; -} -m(Bu, "endsWith"); -var oF = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/; -function Nu(e) { - if (typeof e != "string") return e; - var t = e.match(oF); - return t ? parseFloat(e) : e; -} -m(Nu, "stripUnit"); -var aF = m(function (e) { - return function (t, r) { - r === void 0 && (r = "16px"); - var n = t, - o = r; - if (typeof t == "string") { - if (!Bu(t, "px")) throw new Xe(69, e, t); - n = Nu(t); - } - if (typeof r == "string") { - if (!Bu(r, "px")) throw new Xe(70, e, r); - o = Nu(r); - } - if (typeof n == "string") throw new Xe(71, t, e); - if (typeof o == "string") throw new Xe(72, r, e); - return "" + n / o + e; - }; - }, "pxtoFactory"), - Nx = aF; -Nx("em"); -Nx("rem"); -function Ha(e) { - return Math.round(e * 255); -} -m(Ha, "colorToInt"); -function jx(e, t, r) { - return Ha(e) + "," + Ha(t) + "," + Ha(r); -} -m(jx, "convertToInt"); -function Zn(e, t, r, n) { - if ((n === void 0 && (n = jx), t === 0)) return n(r, r, r); - var o = (((e % 360) + 360) % 360) / 60, - a = (1 - Math.abs(2 * r - 1)) * t, - i = a * (1 - Math.abs((o % 2) - 1)), - l = 0, - s = 0, - u = 0; - o >= 0 && o < 1 - ? ((l = a), (s = i)) - : o >= 1 && o < 2 - ? ((l = i), (s = a)) - : o >= 2 && o < 3 - ? ((s = a), (u = i)) - : o >= 3 && o < 4 - ? ((s = i), (u = a)) - : o >= 4 && o < 5 - ? ((l = i), (u = a)) - : o >= 5 && o < 6 && ((l = a), (u = i)); - var d = r - a / 2, - p = l + d, - c = s + d, - f = u + d; - return n(p, c, f); -} -m(Zn, "hslToRgb"); -var lm = { - aliceblue: "f0f8ff", - antiquewhite: "faebd7", - aqua: "00ffff", - aquamarine: "7fffd4", - azure: "f0ffff", - beige: "f5f5dc", - bisque: "ffe4c4", - black: "000", - blanchedalmond: "ffebcd", - blue: "0000ff", - blueviolet: "8a2be2", - brown: "a52a2a", - burlywood: "deb887", - cadetblue: "5f9ea0", - chartreuse: "7fff00", - chocolate: "d2691e", - coral: "ff7f50", - cornflowerblue: "6495ed", - cornsilk: "fff8dc", - crimson: "dc143c", - cyan: "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: "789", - lightslategrey: "789", - lightsteelblue: "b0c4de", - lightyellow: "ffffe0", - lime: "0f0", - limegreen: "32cd32", - linen: "faf0e6", - magenta: "f0f", - 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: "639", - red: "f00", - 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", - steelblue: "4682b4", - tan: "d2b48c", - teal: "008080", - thistle: "d8bfd8", - tomato: "ff6347", - turquoise: "40e0d0", - violet: "ee82ee", - wheat: "f5deb3", - white: "fff", - whitesmoke: "f5f5f5", - yellow: "ff0", - yellowgreen: "9acd32", -}; -function Mx(e) { - if (typeof e != "string") return e; - var t = e.toLowerCase(); - return lm[t] ? "#" + lm[t] : e; -} -m(Mx, "nameToHex"); -var iF = /^#[a-fA-F0-9]{6}$/, - lF = /^#[a-fA-F0-9]{8}$/, - sF = /^#[a-fA-F0-9]{3}$/, - uF = /^#[a-fA-F0-9]{4}$/, - cs = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, - cF = - /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, - dF = - /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, - pF = - /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; -function rn(e) { - if (typeof e != "string") throw new Xe(3); - var t = Mx(e); - if (t.match(iF)) - return { - red: parseInt("" + t[1] + t[2], 16), - green: parseInt("" + t[3] + t[4], 16), - blue: parseInt("" + t[5] + t[6], 16), - }; - if (t.match(lF)) { - var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2)); - return { - red: parseInt("" + t[1] + t[2], 16), - green: parseInt("" + t[3] + t[4], 16), - blue: parseInt("" + t[5] + t[6], 16), - alpha: r, - }; - } - if (t.match(sF)) - return { - red: parseInt("" + t[1] + t[1], 16), - green: parseInt("" + t[2] + t[2], 16), - blue: parseInt("" + t[3] + t[3], 16), - }; - if (t.match(uF)) { - var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2)); - return { - red: parseInt("" + t[1] + t[1], 16), - green: parseInt("" + t[2] + t[2], 16), - blue: parseInt("" + t[3] + t[3], 16), - alpha: n, - }; - } - var o = cs.exec(t); - if (o) - return { - red: parseInt("" + o[1], 10), - green: parseInt("" + o[2], 10), - blue: parseInt("" + o[3], 10), - }; - var a = cF.exec(t.substring(0, 50)); - if (a) - return { - red: parseInt("" + a[1], 10), - green: parseInt("" + a[2], 10), - blue: parseInt("" + a[3], 10), - alpha: - parseFloat("" + a[4]) > 1 - ? parseFloat("" + a[4]) / 100 - : parseFloat("" + a[4]), - }; - var i = dF.exec(t); - if (i) { - var l = parseInt("" + i[1], 10), - s = parseInt("" + i[2], 10) / 100, - u = parseInt("" + i[3], 10) / 100, - d = "rgb(" + Zn(l, s, u) + ")", - p = cs.exec(d); - if (!p) throw new Xe(4, t, d); - return { - red: parseInt("" + p[1], 10), - green: parseInt("" + p[2], 10), - blue: parseInt("" + p[3], 10), - }; - } - var c = pF.exec(t.substring(0, 50)); - if (c) { - var f = parseInt("" + c[1], 10), - g = parseInt("" + c[2], 10) / 100, - y = parseInt("" + c[3], 10) / 100, - x = "rgb(" + Zn(f, g, y) + ")", - v = cs.exec(x); - if (!v) throw new Xe(4, t, x); - return { - red: parseInt("" + v[1], 10), - green: parseInt("" + v[2], 10), - blue: parseInt("" + v[3], 10), - alpha: - parseFloat("" + c[4]) > 1 - ? parseFloat("" + c[4]) / 100 - : parseFloat("" + c[4]), - }; - } - throw new Xe(5); -} -m(rn, "parseToRgb"); -function zx(e) { - var t = e.red / 255, - r = e.green / 255, - n = e.blue / 255, - o = Math.max(t, r, n), - a = Math.min(t, r, n), - i = (o + a) / 2; - if (o === a) - return e.alpha !== void 0 - ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha } - : { hue: 0, saturation: 0, lightness: i }; - var l, - s = o - a, - u = i > 0.5 ? s / (2 - o - a) : s / (o + a); - switch (o) { - case t: - l = (r - n) / s + (r < n ? 6 : 0); - break; - case r: - l = (n - t) / s + 2; - break; - default: - l = (t - r) / s + 4; - break; - } - return ( - (l *= 60), - e.alpha !== void 0 - ? { hue: l, saturation: u, lightness: i, alpha: e.alpha } - : { hue: l, saturation: u, lightness: i } - ); -} -m(zx, "rgbToHsl"); -function sr(e) { - return zx(rn(e)); -} -m(sr, "parseToHsl"); -var fF = m(function (e) { - return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] - ? "#" + e[1] + e[3] + e[5] - : e; - }, "reduceHexValue"), - ju = fF; -function Er(e) { - var t = e.toString(16); - return t.length === 1 ? "0" + t : t; -} -m(Er, "numberToHex"); -function Ua(e) { - return Er(Math.round(e * 255)); -} -m(Ua, "colorToHex"); -function Hx(e, t, r) { - return ju("#" + Ua(e) + Ua(t) + Ua(r)); -} -m(Hx, "convertToHex"); -function Xo(e, t, r) { - return Zn(e, t, r, Hx); -} -m(Xo, "hslToHex"); -function Ux(e, t, r) { - if (typeof e == "number" && typeof t == "number" && typeof r == "number") - return Xo(e, t, r); - if (typeof e == "object" && t === void 0 && r === void 0) - return Xo(e.hue, e.saturation, e.lightness); - throw new Xe(1); -} -m(Ux, "hsl"); -function Wx(e, t, r, n) { - if ( - typeof e == "number" && - typeof t == "number" && - typeof r == "number" && - typeof n == "number" - ) - return n >= 1 ? Xo(e, t, r) : "rgba(" + Zn(e, t, r) + "," + n + ")"; - if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) - return e.alpha >= 1 - ? Xo(e.hue, e.saturation, e.lightness) - : "rgba(" + Zn(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; - throw new Xe(2); -} -m(Wx, "hsla"); -function $i(e, t, r) { - if (typeof e == "number" && typeof t == "number" && typeof r == "number") - return ju("#" + Er(e) + Er(t) + Er(r)); - if (typeof e == "object" && t === void 0 && r === void 0) - return ju("#" + Er(e.red) + Er(e.green) + Er(e.blue)); - throw new Xe(6); -} -m($i, "rgb"); -function nn(e, t, r, n) { - if (typeof e == "string" && typeof t == "number") { - var o = rn(e); - return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")"; - } else { - if ( - typeof e == "number" && - typeof t == "number" && - typeof r == "number" && - typeof n == "number" - ) - return n >= 1 - ? $i(e, t, r) - : "rgba(" + e + "," + t + "," + r + "," + n + ")"; - if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) - return e.alpha >= 1 - ? $i(e.red, e.green, e.blue) - : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; - } - throw new Xe(7); -} -m(nn, "rgba"); -var gF = m(function (e) { - return ( - typeof e.red == "number" && - typeof e.green == "number" && - typeof e.blue == "number" && - (typeof e.alpha != "number" || typeof e.alpha > "u") - ); - }, "isRgb"), - mF = m(function (e) { - return ( - typeof e.red == "number" && - typeof e.green == "number" && - typeof e.blue == "number" && - typeof e.alpha == "number" - ); - }, "isRgba"), - hF = m(function (e) { - return ( - typeof e.hue == "number" && - typeof e.saturation == "number" && - typeof e.lightness == "number" && - (typeof e.alpha != "number" || typeof e.alpha > "u") - ); - }, "isHsl"), - yF = m(function (e) { - return ( - typeof e.hue == "number" && - typeof e.saturation == "number" && - typeof e.lightness == "number" && - typeof e.alpha == "number" - ); - }, "isHsla"); -function ur(e) { - if (typeof e != "object") throw new Xe(8); - if (mF(e)) return nn(e); - if (gF(e)) return $i(e); - if (yF(e)) return Wx(e); - if (hF(e)) return Ux(e); - throw new Xe(8); -} -m(ur, "toColorString"); -function jd(e, t, r) { - return m(function () { - var n = r.concat(Array.prototype.slice.call(arguments)); - return n.length >= t ? e.apply(this, n) : jd(e, t, n); - }, "fn"); -} -m(jd, "curried"); -function rt(e) { - return jd(e, e.length, []); -} -m(rt, "curry"); -function Vx(e, t) { - if (t === "transparent") return t; - var r = sr(t); - return ur(xe({}, r, { hue: r.hue + parseFloat(e) })); -} -m(Vx, "adjustHue"); -rt(Vx); -function cn(e, t, r) { - return Math.max(e, Math.min(t, r)); -} -m(cn, "guard"); -function qx(e, t) { - if (t === "transparent") return t; - var r = sr(t); - return ur(xe({}, r, { lightness: cn(0, 1, r.lightness - parseFloat(e)) })); -} -m(qx, "darken"); -var bF = rt(qx), - kn = bF; -function Gx(e, t) { - if (t === "transparent") return t; - var r = sr(t); - return ur(xe({}, r, { saturation: cn(0, 1, r.saturation - parseFloat(e)) })); -} -m(Gx, "desaturate"); -rt(Gx); -function Yx(e, t) { - if (t === "transparent") return t; - var r = sr(t); - return ur(xe({}, r, { lightness: cn(0, 1, r.lightness + parseFloat(e)) })); -} -m(Yx, "lighten"); -var vF = rt(Yx), - sm = vF; -function Kx(e, t, r) { - if (t === "transparent") return r; - if (r === "transparent") return t; - if (e === 0) return r; - var n = rn(t), - o = xe({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }), - a = rn(r), - i = xe({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), - l = o.alpha - i.alpha, - s = parseFloat(e) * 2 - 1, - u = s * l === -1 ? s : s + l, - d = 1 + s * l, - p = (u / d + 1) / 2, - c = 1 - p, - f = { - red: Math.floor(o.red * p + i.red * c), - green: Math.floor(o.green * p + i.green * c), - blue: Math.floor(o.blue * p + i.blue * c), - alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), - }; - return nn(f); -} -m(Kx, "mix"); -var xF = rt(Kx), - Xx = xF; -function Zx(e, t) { - if (t === "transparent") return t; - var r = rn(t), - n = typeof r.alpha == "number" ? r.alpha : 1, - o = xe({}, r, { alpha: cn(0, 1, (n * 100 + parseFloat(e) * 100) / 100) }); - return nn(o); -} -m(Zx, "opacify"); -rt(Zx); -function Jx(e, t) { - if (t === "transparent") return t; - var r = sr(t); - return ur(xe({}, r, { saturation: cn(0, 1, r.saturation + parseFloat(e)) })); -} -m(Jx, "saturate"); -rt(Jx); -function Qx(e, t) { - return t === "transparent" ? t : ur(xe({}, sr(t), { hue: parseFloat(e) })); -} -m(Qx, "setHue"); -rt(Qx); -function eE(e, t) { - return t === "transparent" - ? t - : ur(xe({}, sr(t), { lightness: parseFloat(e) })); -} -m(eE, "setLightness"); -rt(eE); -function tE(e, t) { - return t === "transparent" - ? t - : ur(xe({}, sr(t), { saturation: parseFloat(e) })); -} -m(tE, "setSaturation"); -rt(tE); -function rE(e, t) { - return t === "transparent" ? t : Xx(parseFloat(e), "rgb(0, 0, 0)", t); -} -m(rE, "shade"); -rt(rE); -function nE(e, t) { - return t === "transparent" ? t : Xx(parseFloat(e), "rgb(255, 255, 255)", t); -} -m(nE, "tint"); -rt(nE); -function oE(e, t) { - if (t === "transparent") return t; - var r = rn(t), - n = typeof r.alpha == "number" ? r.alpha : 1, - o = xe({}, r, { - alpha: cn(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100), - }); - return nn(o); -} -m(oE, "transparentize"); -var EF = rt(oE), - pt = EF, - so = m( - ({ theme: e }) => ({ - margin: "20px 0 8px", - padding: 0, - cursor: "text", - position: "relative", - color: e.color.defaultText, - "&:first-of-type": { marginTop: 0, paddingTop: 0 }, - "&:hover a.anchor": { textDecoration: "none" }, - "& tt, & code": { fontSize: "inherit" }, - }), - "headerCommon", - ), - cr = m( - ({ theme: e }) => ({ - lineHeight: 1, - margin: "0 2px", - padding: "3px 5px", - whiteSpace: "nowrap", - borderRadius: 3, - fontSize: e.typography.size.s2 - 1, - border: - e.base === "light" - ? `1px solid ${e.color.mediumlight}` - : `1px solid ${e.color.darker}`, - color: - e.base === "light" - ? pt(0.1, e.color.defaultText) - : pt(0.3, e.color.defaultText), - backgroundColor: e.base === "light" ? e.color.lighter : e.color.border, - }), - "codeCommon", - ), - we = m( - ({ theme: e }) => ({ - fontFamily: e.typography.fonts.base, - fontSize: e.typography.size.s3, - margin: 0, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", - WebkitOverflowScrolling: "touch", - }), - "withReset", - ), - dn = { margin: "16px 0" }, - Md = T.div(we), - wF = m(({ href: e = "", ...t }) => { - let r = /^\//.test(e) ? `./?path=${e}` : e, - n = /^#.*/.test(e) ? "_self" : "_top"; - return h.createElement("a", { href: r, target: n, ...t }); - }, "Link"), - aE = T(wF)(we, ({ theme: e }) => ({ - fontSize: "inherit", - lineHeight: "24px", - color: e.color.secondary, - textDecoration: "none", - "&.absent": { color: "#cc0000" }, - "&.anchor": { - display: "block", - paddingLeft: 30, - marginLeft: -30, - cursor: "pointer", - position: "absolute", - top: 0, - left: 0, - bottom: 0, - }, - })), - iE = T.blockquote(we, dn, ({ theme: e }) => ({ - borderLeft: `4px solid ${e.color.medium}`, - padding: "0 15px", - color: e.color.dark, - "& > :first-of-type": { marginTop: 0 }, - "& > :last-child": { marginBottom: 0 }, - })); -il(); -var SF = m((e) => typeof e == "string", "isReactChildString"), - CF = /[\n\r]/g, - $F = T.code( - ({ theme: e }) => ({ - fontFamily: e.typography.fonts.mono, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - display: "inline-block", - paddingLeft: 2, - paddingRight: 2, - verticalAlign: "baseline", - color: "inherit", - }), - cr, - ), - AF = T(Ho)(({ theme: e }) => ({ - fontFamily: e.typography.fonts.mono, - fontSize: `${e.typography.size.s2 - 1}px`, - lineHeight: "19px", - margin: "25px 0 40px", - borderRadius: e.appBorderRadius, - boxShadow: - e.base === "light" - ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" - : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", - "pre.prismjs": { padding: 20, background: "inherit" }, - })), - zd = m(({ className: e, children: t, ...r }) => { - let n = (e || "").match(/lang-(\S+)/), - o = b.Children.toArray(t); - return o.filter(SF).some((a) => a.match(CF)) - ? h.createElement( - AF, - { - bordered: !0, - copyable: !0, - language: n?.[1] ?? "text", - format: !1, - ...r, - }, - t, - ) - : h.createElement($F, { ...r, className: e }, o); - }, "Code"), - lE = T.dl(we, dn, { - padding: 0, - "& dt": { - fontSize: "14px", - fontWeight: "bold", - fontStyle: "italic", - padding: 0, - margin: "16px 0 4px", - }, - "& dt:first-of-type": { padding: 0 }, - "& dt > :first-of-type": { marginTop: 0 }, - "& dt > :last-child": { marginBottom: 0 }, - "& dd": { margin: "0 0 16px", padding: "0 15px" }, - "& dd > :first-of-type": { marginTop: 0 }, - "& dd > :last-child": { marginBottom: 0 }, - }), - sE = T.div(we), - uE = T.h1(we, so, ({ theme: e }) => ({ - fontSize: `${e.typography.size.l1}px`, - fontWeight: e.typography.weight.bold, - })), - Hd = T.h2(we, so, ({ theme: e }) => ({ - fontSize: `${e.typography.size.m2}px`, - paddingBottom: 4, - borderBottom: `1px solid ${e.appBorderColor}`, - })), - Ud = T.h3(we, so, ({ theme: e }) => ({ - fontSize: `${e.typography.size.m1}px`, - })), - cE = T.h4(we, so, ({ theme: e }) => ({ - fontSize: `${e.typography.size.s3}px`, - })), - dE = T.h5(we, so, ({ theme: e }) => ({ - fontSize: `${e.typography.size.s2}px`, - })), - pE = T.h6(we, so, ({ theme: e }) => ({ - fontSize: `${e.typography.size.s2}px`, - color: e.color.dark, - })), - fE = T.hr(({ theme: e }) => ({ - border: "0 none", - borderTop: `1px solid ${e.appBorderColor}`, - height: 4, - padding: 0, - })), - gE = T.img({ maxWidth: "100%" }), - mE = T.li(we, ({ theme: e }) => ({ - fontSize: e.typography.size.s2, - color: e.color.defaultText, - lineHeight: "24px", - "& + li": { marginTop: ".25em" }, - "& ul, & ol": { marginTop: ".25em", marginBottom: 0 }, - "& code": cr({ theme: e }), - })), - DF = { - paddingLeft: 30, - "& :first-of-type": { marginTop: 0 }, - "& :last-child": { marginBottom: 0 }, - }, - hE = T.ol(we, dn, DF, { listStyle: "decimal" }), - yE = T.p(we, dn, ({ theme: e }) => ({ - fontSize: e.typography.size.s2, - lineHeight: "24px", - color: e.color.defaultText, - "& code": cr({ theme: e }), - })), - bE = T.pre(we, dn, ({ theme: e }) => ({ - fontFamily: e.typography.fonts.mono, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - lineHeight: "18px", - padding: "11px 1rem", - whiteSpace: "pre-wrap", - color: "inherit", - borderRadius: 3, - margin: "1rem 0", - "&:not(.prismjs)": { - background: "transparent", - border: "none", - borderRadius: 0, - padding: 0, - margin: 0, - }, - "& pre, &.prismjs": { - padding: 15, - margin: 0, - whiteSpace: "pre-wrap", - color: "inherit", - fontSize: "13px", - lineHeight: "19px", - code: { color: "inherit", fontSize: "inherit" }, - }, - "& code": { whiteSpace: "pre" }, - "& code, & tt": { border: "none" }, - })), - vE = T.span(we, ({ theme: e }) => ({ - "&.frame": { - display: "block", - overflow: "hidden", - "& > span": { - border: `1px solid ${e.color.medium}`, - display: "block", - float: "left", - overflow: "hidden", - margin: "13px 0 0", - padding: 7, - width: "auto", - }, - "& span img": { display: "block", float: "left" }, - "& span span": { - clear: "both", - color: e.color.darkest, - display: "block", - padding: "5px 0 0", - }, - }, - "&.align-center": { - display: "block", - overflow: "hidden", - clear: "both", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px auto 0", - textAlign: "center", - }, - "& span img": { margin: "0 auto", textAlign: "center" }, - }, - "&.align-right": { - display: "block", - overflow: "hidden", - clear: "both", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px 0 0", - textAlign: "right", - }, - "& span img": { margin: 0, textAlign: "right" }, - }, - "&.float-left": { - display: "block", - marginRight: 13, - overflow: "hidden", - float: "left", - "& span": { margin: "13px 0 0" }, - }, - "&.float-right": { - display: "block", - marginLeft: 13, - overflow: "hidden", - float: "right", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px auto 0", - textAlign: "right", - }, - }, - })), - xE = T.title(cr), - EE = T.table(we, dn, ({ theme: e }) => ({ - fontSize: e.typography.size.s2, - lineHeight: "24px", - padding: 0, - borderCollapse: "collapse", - "& tr": { - borderTop: `1px solid ${e.appBorderColor}`, - backgroundColor: e.appContentBg, - margin: 0, - padding: 0, - }, - "& tr:nth-of-type(2n)": { - backgroundColor: e.base === "dark" ? e.color.darker : e.color.lighter, - }, - "& tr th": { - fontWeight: "bold", - color: e.color.defaultText, - border: `1px solid ${e.appBorderColor}`, - margin: 0, - padding: "6px 13px", - }, - "& tr td": { - border: `1px solid ${e.appBorderColor}`, - color: e.color.defaultText, - margin: 0, - padding: "6px 13px", - }, - "& tr th :first-of-type, & tr td :first-of-type": { marginTop: 0 }, - "& tr th :last-child, & tr td :last-child": { marginBottom: 0 }, - })), - kF = { - paddingLeft: 30, - "& :first-of-type": { marginTop: 0 }, - "& :last-child": { marginBottom: 0 }, - }, - wE = T.ul(we, dn, kF, { listStyle: "disc" }), - SE = { - h1: m((e) => h.createElement(uE, { ...ve(e, "h1") }), "h1"), - h2: m((e) => h.createElement(Hd, { ...ve(e, "h2") }), "h2"), - h3: m((e) => h.createElement(Ud, { ...ve(e, "h3") }), "h3"), - h4: m((e) => h.createElement(cE, { ...ve(e, "h4") }), "h4"), - h5: m((e) => h.createElement(dE, { ...ve(e, "h5") }), "h5"), - h6: m((e) => h.createElement(pE, { ...ve(e, "h6") }), "h6"), - pre: m((e) => h.createElement(bE, { ...ve(e, "pre") }), "pre"), - a: m((e) => h.createElement(aE, { ...ve(e, "a") }), "a"), - hr: m((e) => h.createElement(fE, { ...ve(e, "hr") }), "hr"), - dl: m((e) => h.createElement(lE, { ...ve(e, "dl") }), "dl"), - blockquote: m( - (e) => h.createElement(iE, { ...ve(e, "blockquote") }), - "blockquote", - ), - table: m((e) => h.createElement(EE, { ...ve(e, "table") }), "table"), - img: m((e) => h.createElement(gE, { ...ve(e, "img") }), "img"), - div: m((e) => h.createElement(sE, { ...ve(e, "div") }), "div"), - span: m((e) => h.createElement(vE, { ...ve(e, "span") }), "span"), - li: m((e) => h.createElement(mE, { ...ve(e, "li") }), "li"), - ul: m((e) => h.createElement(wE, { ...ve(e, "ul") }), "ul"), - ol: m((e) => h.createElement(hE, { ...ve(e, "ol") }), "ol"), - p: m((e) => h.createElement(yE, { ...ve(e, "p") }), "p"), - code: m((e) => h.createElement(zd, { ...ve(e, "code") }), "code"), - tt: m((e) => h.createElement(xE, { ...ve(e, "tt") }), "tt"), - resetwrapper: m( - (e) => h.createElement(Md, { ...ve(e, "resetwrapper") }), - "resetwrapper", - ), - }, - OF = T.div( - ({ theme: e, compact: t }) => ({ - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - fontSize: e.typography.size.s1, - fontWeight: e.typography.weight.bold, - lineHeight: "12px", - minWidth: 20, - borderRadius: 20, - padding: t ? "4px 7px" : "4px 10px", - }), - { - svg: { - height: 12, - width: 12, - marginRight: 4, - marginTop: -2, - path: { fill: "currentColor" }, - }, - }, - ({ theme: e, status: t }) => { - switch (t) { - case "critical": - return { color: e.color.critical, background: e.background.critical }; - case "negative": - return { - color: e.color.negativeText, - background: e.background.negative, - boxShadow: - e.base === "light" - ? `inset 0 0 0 1px ${pt(0.9, e.color.negativeText)}` - : "none", - }; - case "warning": - return { - color: e.color.warningText, - background: e.background.warning, - boxShadow: - e.base === "light" - ? `inset 0 0 0 1px ${pt(0.9, e.color.warningText)}` - : "none", - }; - case "neutral": - return { - color: e.textMutedColor, - background: e.base === "light" ? e.background.app : e.barBg, - boxShadow: `inset 0 0 0 1px ${pt(0.8, e.textMutedColor)}`, - }; - case "positive": - return { - color: e.color.positiveText, - background: e.background.positive, - boxShadow: - e.base === "light" - ? `inset 0 0 0 1px ${pt(0.9, e.color.positiveText)}` - : "none", - }; - case "active": - return { - color: e.color.secondary, - background: e.background.hoverable, - boxShadow: `inset 0 0 0 1px ${pt(0.9, e.color.secondary)}`, - }; - default: - return {}; - } - }, - ), - FF = m(({ ...e }) => h.createElement(OF, { ...e }), "Badge"), - _F = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z", - fill: e, - }), - ), - ), - TF = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z", - fill: e, - }), - ), - ), - RF = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z", - fill: e, - }), - ), - ), - PF = 0, - IF = m( - (e) => - e.button === PF && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey, - "isPlainLeftClick", - ), - LF = m((e, t) => { - IF(e) && (e.preventDefault(), t(e)); - }, "cancelled"), - BF = T.span( - ({ withArrow: e }) => - e - ? { - "> svg:last-of-type": { - height: "0.7em", - width: "0.7em", - marginRight: 0, - marginLeft: "0.25em", - bottom: "auto", - verticalAlign: "inherit", - }, - } - : {}, - ({ containsIcon: e }) => - e - ? { - svg: { - height: "1em", - width: "1em", - verticalAlign: "middle", - position: "relative", - bottom: 0, - marginRight: 0, - }, - } - : {}, - ), - NF = T.a( - ({ theme: e }) => ({ - display: "inline-block", - transition: "all 150ms ease-out", - textDecoration: "none", - color: e.color.secondary, - "&:hover, &:focus": { - cursor: "pointer", - color: kn(0.07, e.color.secondary), - "svg path:not([fill])": { fill: kn(0.07, e.color.secondary) }, - }, - "&:active": { - color: kn(0.1, e.color.secondary), - "svg path:not([fill])": { fill: kn(0.1, e.color.secondary) }, - }, - svg: { - display: "inline-block", - height: "1em", - width: "1em", - verticalAlign: "text-top", - position: "relative", - bottom: "-0.125em", - marginRight: "0.4em", - "& path": { fill: e.color.secondary }, - }, - }), - ({ theme: e, secondary: t, tertiary: r }) => { - let n; - return ( - t && (n = [e.textMutedColor, e.color.dark, e.color.darker]), - r && (n = [e.color.dark, e.color.darkest, e.textMutedColor]), - n - ? { - color: n[0], - "svg path:not([fill])": { fill: n[0] }, - "&:hover": { - color: n[1], - "svg path:not([fill])": { fill: n[1] }, - }, - "&:active": { - color: n[2], - "svg path:not([fill])": { fill: n[2] }, - }, - } - : {} - ); - }, - ({ nochrome: e }) => - e - ? { - color: "inherit", - "&:hover, &:active": { - color: "inherit", - textDecoration: "underline", - }, - } - : {}, - ({ theme: e, inverse: t }) => - t - ? { - color: e.color.lightest, - ":not([fill])": { fill: e.color.lightest }, - "&:hover": { - color: e.color.lighter, - "svg path:not([fill])": { fill: e.color.lighter }, - }, - "&:active": { - color: e.color.light, - "svg path:not([fill])": { fill: e.color.light }, - }, - } - : {}, - ({ isButton: e }) => - e - ? { - border: 0, - borderRadius: 0, - background: "none", - padding: 0, - fontSize: "inherit", - } - : {}, - ), - Jn = m( - ({ - cancel: e = !0, - children: t, - onClick: r = void 0, - withArrow: n = !1, - containsIcon: o = !1, - className: a = void 0, - style: i = void 0, - ...l - }) => - h.createElement( - NF, - { ...l, onClick: r && e ? (s) => LF(s, r) : r, className: a }, - h.createElement( - BF, - { withArrow: n, containsIcon: o }, - t, - n && h.createElement(RF, null), - ), - ), - "Link", - ), - jF = T.div(({ theme: e }) => ({ - fontSize: `${e.typography.size.s2}px`, - lineHeight: "1.6", - h1: { - fontSize: `${e.typography.size.l1}px`, - fontWeight: e.typography.weight.bold, - }, - h2: { - fontSize: `${e.typography.size.m2}px`, - borderBottom: `1px solid ${e.appBorderColor}`, - }, - h3: { fontSize: `${e.typography.size.m1}px` }, - h4: { fontSize: `${e.typography.size.s3}px` }, - h5: { fontSize: `${e.typography.size.s2}px` }, - h6: { fontSize: `${e.typography.size.s2}px`, color: e.color.dark }, - "pre:not(.prismjs)": { - background: "transparent", - border: "none", - borderRadius: 0, - padding: 0, - margin: 0, - }, - "pre pre, pre.prismjs": { - padding: 15, - margin: 0, - whiteSpace: "pre-wrap", - color: "inherit", - fontSize: "13px", - lineHeight: "19px", - }, - "pre pre code, pre.prismjs code": { color: "inherit", fontSize: "inherit" }, - "pre code": { - margin: 0, - padding: 0, - whiteSpace: "pre", - border: "none", - background: "transparent", - }, - "pre code, pre tt": { backgroundColor: "transparent", border: "none" }, - "body > *:first-of-type": { marginTop: "0 !important" }, - "body > *:last-child": { marginBottom: "0 !important" }, - a: { color: e.color.secondary, textDecoration: "none" }, - "a.absent": { color: "#cc0000" }, - "a.anchor": { - display: "block", - paddingLeft: 30, - marginLeft: -30, - cursor: "pointer", - position: "absolute", - top: 0, - left: 0, - bottom: 0, - }, - "h1, h2, h3, h4, h5, h6": { - margin: "20px 0 10px", - padding: 0, - cursor: "text", - position: "relative", - "&:first-of-type": { marginTop: 0, paddingTop: 0 }, - "&:hover a.anchor": { textDecoration: "none" }, - "& tt, & code": { fontSize: "inherit" }, - }, - "h1:first-of-type + h2": { marginTop: 0, paddingTop: 0 }, - "p, blockquote, ul, ol, dl, li, table, pre": { margin: "15px 0" }, - hr: { - border: "0 none", - borderTop: `1px solid ${e.appBorderColor}`, - height: 4, - padding: 0, - }, - "body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type": - { marginTop: 0, paddingTop: 0 }, - "body > h1:first-of-type + h2": { marginTop: 0, paddingTop: 0 }, - "a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6": - { marginTop: 0, paddingTop: 0 }, - "h1 p, h2 p, h3 p, h4 p, h5 p, h6 p": { marginTop: 0 }, - "li p.first": { display: "inline-block" }, - "ul, ol": { - paddingLeft: 30, - "& :first-of-type": { marginTop: 0 }, - "& :last-child": { marginBottom: 0 }, - }, - dl: { padding: 0 }, - "dl dt": { - fontSize: "14px", - fontWeight: "bold", - fontStyle: "italic", - margin: "0 0 15px", - padding: "0 15px", - "&:first-of-type": { padding: 0 }, - "& > :first-of-type": { marginTop: 0 }, - "& > :last-child": { marginBottom: 0 }, - }, - blockquote: { - borderLeft: `4px solid ${e.color.medium}`, - padding: "0 15px", - color: e.color.dark, - "& > :first-of-type": { marginTop: 0 }, - "& > :last-child": { marginBottom: 0 }, - }, - table: { - padding: 0, - borderCollapse: "collapse", - "& tr": { - borderTop: `1px solid ${e.appBorderColor}`, - backgroundColor: "white", - margin: 0, - padding: 0, - "& th": { - fontWeight: "bold", - border: `1px solid ${e.appBorderColor}`, - textAlign: "left", - margin: 0, - padding: "6px 13px", - }, - "& td": { - border: `1px solid ${e.appBorderColor}`, - textAlign: "left", - margin: 0, - padding: "6px 13px", - }, - "&:nth-of-type(2n)": { backgroundColor: e.color.lighter }, - "& th :first-of-type, & td :first-of-type": { marginTop: 0 }, - "& th :last-child, & td :last-child": { marginBottom: 0 }, - }, - }, - img: { maxWidth: "100%" }, - "span.frame": { - display: "block", - overflow: "hidden", - "& > span": { - border: `1px solid ${e.color.medium}`, - display: "block", - float: "left", - overflow: "hidden", - margin: "13px 0 0", - padding: 7, - width: "auto", - }, - "& span img": { display: "block", float: "left" }, - "& span span": { - clear: "both", - color: e.color.darkest, - display: "block", - padding: "5px 0 0", - }, - }, - "span.align-center": { - display: "block", - overflow: "hidden", - clear: "both", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px auto 0", - textAlign: "center", - }, - "& span img": { margin: "0 auto", textAlign: "center" }, - }, - "span.align-right": { - display: "block", - overflow: "hidden", - clear: "both", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px 0 0", - textAlign: "right", - }, - "& span img": { margin: 0, textAlign: "right" }, - }, - "span.float-left": { - display: "block", - marginRight: 13, - overflow: "hidden", - float: "left", - "& span": { margin: "13px 0 0" }, - }, - "span.float-right": { - display: "block", - marginLeft: 13, - overflow: "hidden", - float: "right", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px auto 0", - textAlign: "right", - }, - }, - "code, tt": { - margin: "0 2px", - padding: "0 5px", - whiteSpace: "nowrap", - border: `1px solid ${e.color.mediumlight}`, - backgroundColor: e.color.lighter, - borderRadius: 3, - color: e.base === "dark" ? e.color.darkest : e.color.dark, - }, - })), - Xr = [], - Qn = null, - MF = b.lazy(async () => { - let { SyntaxHighlighter: e } = await Promise.resolve().then( - () => (il(), xd), - ); - return ( - Xr.length > 0 && - (Xr.forEach((t) => { - e.registerLanguage(...t); - }), - (Xr = [])), - Qn === null && (Qn = e), - { default: m((t) => h.createElement(e, { ...t }), "default") } - ); - }), - zF = b.lazy(async () => { - let [{ SyntaxHighlighter: e }, { formatter: t }] = await Promise.all([ - Promise.resolve().then(() => (il(), xd)), - Promise.resolve().then(() => (wO(), _v)), - ]); - return ( - Xr.length > 0 && - (Xr.forEach((r) => { - e.registerLanguage(...r); - }), - (Xr = [])), - Qn === null && (Qn = e), - { - default: m( - (r) => h.createElement(e, { ...r, formatter: t }), - "default", - ), - } - ); - }), - ml = m( - (e) => - h.createElement( - b.Suspense, - { fallback: h.createElement("div", null) }, - e.format !== !1 - ? h.createElement(zF, { ...e }) - : h.createElement(MF, { ...e }), - ), - "SyntaxHighlighter", - ); -ml.registerLanguage = (...e) => { - if (Qn !== null) { - Qn.registerLanguage(...e); - return; - } - Xr.push(e); -}; -il(); -gv(); -var CE = {}; -na(CE, { - Close: () => Rw, - Content: () => Fw, - Description: () => Tw, - Dialog: () => Yd, - DialogClose: () => np, - DialogContent: () => Qd, - DialogDescription: () => rp, - DialogOverlay: () => Jd, - DialogPortal: () => Zd, - DialogTitle: () => tp, - DialogTrigger: () => Kd, - Overlay: () => Ow, - Portal: () => kw, - Root: () => Dw, - Title: () => _w, - Trigger: () => z_, - WarningProvider: () => B_, - createDialogScope: () => F_, -}); -function Rn(e, t, { checkForDefaultPrevented: r = !0 } = {}) { - return m(function (n) { - if ((e?.(n), r === !1 || !n.defaultPrevented)) return t?.(n); - }, "handleEvent"); -} -m(Rn, "composeEventHandlers"); -function Mu(e, t) { - if (typeof e == "function") return e(t); - e != null && (e.current = t); -} -m(Mu, "setRef"); -function Wd(...e) { - return (t) => { - let r = !1, - n = e.map((o) => { - let a = Mu(o, t); - return (!r && typeof a == "function" && (r = !0), a); - }); - if (r) - return () => { - for (let o = 0; o < n.length; o++) { - let a = n[o]; - typeof a == "function" ? a() : Mu(e[o], null); - } - }; - }; -} -m(Wd, "composeRefs"); -function Fr(...e) { - return b.useCallback(Wd(...e), e); -} -m(Fr, "useComposedRefs"); -function $E(e, t) { - let r = b.createContext(t), - n = m((a) => { - let { children: i, ...l } = a, - s = b.useMemo(() => l, Object.values(l)); - return q.jsx(r.Provider, { value: s, children: i }); - }, "Provider"); - n.displayName = e + "Provider"; - function o(a) { - let i = b.useContext(r); - if (i) return i; - if (t !== void 0) return t; - throw new Error(`\`${a}\` must be used within \`${e}\``); - } - return (m(o, "useContext2"), [n, o]); -} -m($E, "createContext2"); -function AE(e, t = []) { - let r = []; - function n(a, i) { - let l = b.createContext(i), - s = r.length; - r = [...r, i]; - let u = m((p) => { - let { scope: c, children: f, ...g } = p, - y = c?.[e]?.[s] || l, - x = b.useMemo(() => g, Object.values(g)); - return q.jsx(y.Provider, { value: x, children: f }); - }, "Provider"); - u.displayName = a + "Provider"; - function d(p, c) { - let f = c?.[e]?.[s] || l, - g = b.useContext(f); - if (g) return g; - if (i !== void 0) return i; - throw new Error(`\`${p}\` must be used within \`${a}\``); - } - return (m(d, "useContext2"), [u, d]); - } - m(n, "createContext3"); - let o = m(() => { - let a = r.map((i) => b.createContext(i)); - return m(function (i) { - let l = i?.[e] || a; - return b.useMemo(() => ({ [`__scope${e}`]: { ...i, [e]: l } }), [i, l]); - }, "useScope"); - }, "createScope"); - return ((o.scopeName = e), [n, DE(o, ...t)]); -} -m(AE, "createContextScope"); -function DE(...e) { - let t = e[0]; - if (e.length === 1) return t; - let r = m(() => { - let n = e.map((o) => ({ useScope: o(), scopeName: o.scopeName })); - return m(function (o) { - let a = n.reduce((i, { useScope: l, scopeName: s }) => { - let u = l(o)[`__scope${s}`]; - return { ...i, ...u }; - }, {}); - return b.useMemo(() => ({ [`__scope${t.scopeName}`]: a }), [a]); - }, "useComposedScopes"); - }, "createScope"); - return ((r.scopeName = t.scopeName), r); -} -m(DE, "composeContextScopes"); -var Zo = globalThis?.document ? b.useLayoutEffect : () => {}, - HF = oh[" useId ".trim().toString()] || (() => {}), - UF = 0; -function Wa(e) { - let [t, r] = b.useState(HF()); - return ( - Zo(() => { - e || r((n) => n ?? String(UF++)); - }, [e]), - e || (t ? `radix-${t}` : "") - ); -} -m(Wa, "useId"); -var WF = oh[" useInsertionEffect ".trim().toString()] || Zo; -function kE({ - prop: e, - defaultProp: t, - onChange: r = m(() => {}, "onChange"), - caller: n, -}) { - let [o, a, i] = OE({ defaultProp: t, onChange: r }), - l = e !== void 0, - s = l ? e : o; - { - let d = b.useRef(e !== void 0); - b.useEffect(() => { - let p = d.current; - (p !== l && - console.warn( - `${n} is changing from ${p ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`, - ), - (d.current = l)); - }, [l, n]); - } - let u = b.useCallback( - (d) => { - if (l) { - let p = FE(d) ? d(e) : d; - p !== e && i.current?.(p); - } else a(d); - }, - [l, e, a, i], - ); - return [s, u]; -} -m(kE, "useControllableState"); -function OE({ defaultProp: e, onChange: t }) { - let [r, n] = b.useState(e), - o = b.useRef(r), - a = b.useRef(t); - return ( - WF(() => { - a.current = t; - }, [t]), - b.useEffect(() => { - o.current !== r && (a.current?.(r), (o.current = r)); - }, [r, o]), - [r, n, a] - ); -} -m(OE, "useUncontrolledState"); -function FE(e) { - return typeof e == "function"; -} -m(FE, "isFunction"); -function Va(e, t, { checkForDefaultPrevented: r = !0 } = {}) { - return m(function (n) { - if ((e?.(n), r === !1 || !n.defaultPrevented)) return t?.(n); - }, "handleEvent"); -} -m(Va, "composeEventHandlers"); -function hl(e) { - let t = _E(e), - r = b.forwardRef((n, o) => { - let { children: a, ...i } = n, - l = b.Children.toArray(a), - s = l.find(TE); - if (s) { - let u = s.props.children, - d = l.map((p) => - p === s - ? b.Children.count(u) > 1 - ? b.Children.only(null) - : b.isValidElement(u) - ? u.props.children - : null - : p, - ); - return q.jsx(t, { - ...i, - ref: o, - children: b.isValidElement(u) ? b.cloneElement(u, void 0, d) : null, - }); - } - return q.jsx(t, { ...i, ref: o, children: a }); - }); - return ((r.displayName = `${e}.Slot`), r); -} -m(hl, "createSlot"); -var VF = hl("Slot"); -function _E(e) { - let t = b.forwardRef((r, n) => { - let { children: o, ...a } = r; - if (b.isValidElement(o)) { - let i = PE(o), - l = RE(a, o.props); - return ( - o.type !== b.Fragment && (l.ref = n ? Wd(n, i) : i), - b.cloneElement(o, l) - ); - } - return b.Children.count(o) > 1 ? b.Children.only(null) : null; - }); - return ((t.displayName = `${e}.SlotClone`), t); -} -m(_E, "createSlotClone"); -var qF = Symbol("radix.slottable"); -function TE(e) { - return ( - b.isValidElement(e) && - typeof e.type == "function" && - "__radixId" in e.type && - e.type.__radixId === qF - ); -} -m(TE, "isSlottable"); -function RE(e, t) { - let r = { ...t }; - for (let n in t) { - let o = e[n], - a = t[n]; - /^on[A-Z]/.test(n) - ? o && a - ? (r[n] = (...i) => { - (a(...i), o(...i)); - }) - : o && (r[n] = o) - : n === "style" - ? (r[n] = { ...o, ...a }) - : n === "className" && (r[n] = [o, a].filter(Boolean).join(" ")); - } - return { ...e, ...r }; -} -m(RE, "mergeProps"); -function PE(e) { - let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, - r = t && "isReactWarning" in t && t.isReactWarning; - return r - ? e.ref - : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), - (r = t && "isReactWarning" in t && t.isReactWarning), - r ? e.props.ref : e.props.ref || e.ref); -} -m(PE, "getElementRef"); -var GF = [ - "a", - "button", - "div", - "form", - "h2", - "h3", - "img", - "input", - "label", - "li", - "nav", - "ol", - "p", - "select", - "span", - "svg", - "ul", - ], - dr = GF.reduce((e, t) => { - let r = hl(`Primitive.${t}`), - n = b.forwardRef((o, a) => { - let { asChild: i, ...l } = o, - s = i ? r : t; - return ( - typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), - q.jsx(s, { ...l, ref: a }) - ); - }); - return ((n.displayName = `Primitive.${t}`), { ...e, [t]: n }); - }, {}); -function IE(e, t) { - e && Qi.flushSync(() => e.dispatchEvent(t)); -} -m(IE, "dispatchDiscreteCustomEvent"); -function eo(e) { - let t = b.useRef(e); - return ( - b.useEffect(() => { - t.current = e; - }), - b.useMemo( - () => - (...r) => - t.current?.(...r), - [], - ) - ); -} -m(eo, "useCallbackRef"); -function LE(e, t = globalThis?.document) { - let r = eo(e); - b.useEffect(() => { - let n = m((o) => { - o.key === "Escape" && r(o); - }, "handleKeyDown"); - return ( - t.addEventListener("keydown", n, { capture: !0 }), - () => t.removeEventListener("keydown", n, { capture: !0 }) - ); - }, [r, t]); -} -m(LE, "useEscapeKeydown"); -var YF = "DismissableLayer", - zu = "dismissableLayer.update", - KF = "dismissableLayer.pointerDownOutside", - XF = "dismissableLayer.focusOutside", - um, - BE = b.createContext({ - layers: new Set(), - layersWithOutsidePointerEventsDisabled: new Set(), - branches: new Set(), - }), - NE = b.forwardRef((e, t) => { - let { - disableOutsidePointerEvents: r = !1, - onEscapeKeyDown: n, - onPointerDownOutside: o, - onFocusOutside: a, - onInteractOutside: i, - onDismiss: l, - ...s - } = e, - u = b.useContext(BE), - [d, p] = b.useState(null), - c = d?.ownerDocument ?? globalThis?.document, - [, f] = b.useState({}), - g = Fr(t, (S) => p(S)), - y = Array.from(u.layers), - [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), - v = y.indexOf(x), - C = d ? y.indexOf(d) : -1, - w = u.layersWithOutsidePointerEventsDisabled.size > 0, - E = C >= v, - $ = jE((S) => { - let D = S.target, - F = [...u.branches].some((k) => k.contains(D)); - !E || F || (o?.(S), i?.(S), S.defaultPrevented || l?.()); - }, c), - A = ME((S) => { - let D = S.target; - [...u.branches].some((F) => F.contains(D)) || - (a?.(S), i?.(S), S.defaultPrevented || l?.()); - }, c); - return ( - LE((S) => { - C === u.layers.size - 1 && - (n?.(S), !S.defaultPrevented && l && (S.preventDefault(), l())); - }, c), - b.useEffect(() => { - if (d) - return ( - r && - (u.layersWithOutsidePointerEventsDisabled.size === 0 && - ((um = c.body.style.pointerEvents), - (c.body.style.pointerEvents = "none")), - u.layersWithOutsidePointerEventsDisabled.add(d)), - u.layers.add(d), - Hu(), - () => { - r && - u.layersWithOutsidePointerEventsDisabled.size === 1 && - (c.body.style.pointerEvents = um); - } - ); - }, [d, c, r, u]), - b.useEffect( - () => () => { - d && - (u.layers.delete(d), - u.layersWithOutsidePointerEventsDisabled.delete(d), - Hu()); - }, - [d, u], - ), - b.useEffect(() => { - let S = m(() => f({}), "handleUpdate"); - return ( - document.addEventListener(zu, S), - () => document.removeEventListener(zu, S) - ); - }, []), - q.jsx(dr.div, { - ...s, - ref: g, - style: { - pointerEvents: w ? (E ? "auto" : "none") : void 0, - ...e.style, - }, - onFocusCapture: Va(e.onFocusCapture, A.onFocusCapture), - onBlurCapture: Va(e.onBlurCapture, A.onBlurCapture), - onPointerDownCapture: Va( - e.onPointerDownCapture, - $.onPointerDownCapture, - ), - }) - ); - }); -NE.displayName = YF; -var ZF = "DismissableLayerBranch", - JF = b.forwardRef((e, t) => { - let r = b.useContext(BE), - n = b.useRef(null), - o = Fr(t, n); - return ( - b.useEffect(() => { - let a = n.current; - if (a) - return ( - r.branches.add(a), - () => { - r.branches.delete(a); - } - ); - }, [r.branches]), - q.jsx(dr.div, { ...e, ref: o }) - ); - }); -JF.displayName = ZF; -function jE(e, t = globalThis?.document) { - let r = eo(e), - n = b.useRef(!1), - o = b.useRef(() => {}); - return ( - b.useEffect(() => { - let a = m((l) => { - if (l.target && !n.current) { - let s = m(function () { - Vd(KF, r, u, { discrete: !0 }); - }, "handleAndDispatchPointerDownOutsideEvent2"), - u = { originalEvent: l }; - l.pointerType === "touch" - ? (t.removeEventListener("click", o.current), - (o.current = s), - t.addEventListener("click", o.current, { once: !0 })) - : s(); - } else t.removeEventListener("click", o.current); - n.current = !1; - }, "handlePointerDown"), - i = window.setTimeout(() => { - t.addEventListener("pointerdown", a); - }, 0); - return () => { - (window.clearTimeout(i), - t.removeEventListener("pointerdown", a), - t.removeEventListener("click", o.current)); - }; - }, [t, r]), - { onPointerDownCapture: m(() => (n.current = !0), "onPointerDownCapture") } - ); -} -m(jE, "usePointerDownOutside"); -function ME(e, t = globalThis?.document) { - let r = eo(e), - n = b.useRef(!1); - return ( - b.useEffect(() => { - let o = m((a) => { - a.target && - !n.current && - Vd(XF, r, { originalEvent: a }, { discrete: !1 }); - }, "handleFocus"); - return ( - t.addEventListener("focusin", o), - () => t.removeEventListener("focusin", o) - ); - }, [t, r]), - { - onFocusCapture: m(() => (n.current = !0), "onFocusCapture"), - onBlurCapture: m(() => (n.current = !1), "onBlurCapture"), - } - ); -} -m(ME, "useFocusOutside"); -function Hu() { - let e = new CustomEvent(zu); - document.dispatchEvent(e); -} -m(Hu, "dispatchUpdate"); -function Vd(e, t, r, { discrete: n }) { - let o = r.originalEvent.target, - a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r }); - (t && o.addEventListener(e, t, { once: !0 }), - n ? IE(o, a) : o.dispatchEvent(a)); -} -m(Vd, "handleAndDispatchCustomEvent"); -var ds = "focusScope.autoFocusOnMount", - ps = "focusScope.autoFocusOnUnmount", - cm = { bubbles: !1, cancelable: !0 }, - QF = "FocusScope", - zE = b.forwardRef((e, t) => { - let { - loop: r = !1, - trapped: n = !1, - onMountAutoFocus: o, - onUnmountAutoFocus: a, - ...i - } = e, - [l, s] = b.useState(null), - u = eo(o), - d = eo(a), - p = b.useRef(null), - c = Fr(t, (y) => s(y)), - f = b.useRef({ - paused: !1, - pause() { - this.paused = !0; - }, - resume() { - this.paused = !1; - }, - }).current; - (b.useEffect(() => { - if (n) { - let y = m(function (w) { - if (f.paused || !l) return; - let E = w.target; - l.contains(E) ? (p.current = E) : Jt(p.current, { select: !0 }); - }, "handleFocusIn2"), - x = m(function (w) { - if (f.paused || !l) return; - let E = w.relatedTarget; - E !== null && (l.contains(E) || Jt(p.current, { select: !0 })); - }, "handleFocusOut2"), - v = m(function (w) { - if (document.activeElement === document.body) - for (let E of w) E.removedNodes.length > 0 && Jt(l); - }, "handleMutations2"); - (document.addEventListener("focusin", y), - document.addEventListener("focusout", x)); - let C = new MutationObserver(v); - return ( - l && C.observe(l, { childList: !0, subtree: !0 }), - () => { - (document.removeEventListener("focusin", y), - document.removeEventListener("focusout", x), - C.disconnect()); - } - ); - } - }, [n, l, f.paused]), - b.useEffect(() => { - if (l) { - dm.add(f); - let y = document.activeElement; - if (!l.contains(y)) { - let x = new CustomEvent(ds, cm); - (l.addEventListener(ds, u), - l.dispatchEvent(x), - x.defaultPrevented || - (HE(GE(qd(l)), { select: !0 }), - document.activeElement === y && Jt(l))); - } - return () => { - (l.removeEventListener(ds, u), - setTimeout(() => { - let x = new CustomEvent(ps, cm); - (l.addEventListener(ps, d), - l.dispatchEvent(x), - x.defaultPrevented || Jt(y ?? document.body, { select: !0 }), - l.removeEventListener(ps, d), - dm.remove(f)); - }, 0)); - }; - } - }, [l, u, d, f])); - let g = b.useCallback( - (y) => { - if ((!r && !n) || f.paused) return; - let x = y.key === "Tab" && !y.altKey && !y.ctrlKey && !y.metaKey, - v = document.activeElement; - if (x && v) { - let C = y.currentTarget, - [w, E] = UE(C); - w && E - ? !y.shiftKey && v === E - ? (y.preventDefault(), r && Jt(w, { select: !0 })) - : y.shiftKey && - v === w && - (y.preventDefault(), r && Jt(E, { select: !0 })) - : v === C && y.preventDefault(); - } - }, - [r, n, f.paused], - ); - return q.jsx(dr.div, { tabIndex: -1, ...i, ref: c, onKeyDown: g }); - }); -zE.displayName = QF; -function HE(e, { select: t = !1 } = {}) { - let r = document.activeElement; - for (let n of e) - if ((Jt(n, { select: t }), document.activeElement !== r)) return; -} -m(HE, "focusFirst"); -function UE(e) { - let t = qd(e), - r = Uu(t, e), - n = Uu(t.reverse(), e); - return [r, n]; -} -m(UE, "getTabbableEdges"); -function qd(e) { - let t = [], - r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { - acceptNode: m((n) => { - let o = n.tagName === "INPUT" && n.type === "hidden"; - return n.disabled || n.hidden || o - ? NodeFilter.FILTER_SKIP - : n.tabIndex >= 0 - ? NodeFilter.FILTER_ACCEPT - : NodeFilter.FILTER_SKIP; - }, "acceptNode"), - }); - for (; r.nextNode(); ) t.push(r.currentNode); - return t; -} -m(qd, "getTabbableCandidates"); -function Uu(e, t) { - for (let r of e) if (!WE(r, { upTo: t })) return r; -} -m(Uu, "findVisible"); -function WE(e, { upTo: t }) { - if (getComputedStyle(e).visibility === "hidden") return !0; - for (; e; ) { - if (t !== void 0 && e === t) return !1; - if (getComputedStyle(e).display === "none") return !0; - e = e.parentElement; - } - return !1; -} -m(WE, "isHidden"); -function VE(e) { - return e instanceof HTMLInputElement && "select" in e; -} -m(VE, "isSelectableInput"); -function Jt(e, { select: t = !1 } = {}) { - if (e && e.focus) { - let r = document.activeElement; - (e.focus({ preventScroll: !0 }), e !== r && VE(e) && t && e.select()); - } -} -m(Jt, "focus"); -var dm = qE(); -function qE() { - let e = []; - return { - add(t) { - let r = e[0]; - (t !== r && r?.pause(), (e = Wu(e, t)), e.unshift(t)); - }, - remove(t) { - ((e = Wu(e, t)), e[0]?.resume()); - }, - }; -} -m(qE, "createFocusScopesStack"); -function Wu(e, t) { - let r = [...e], - n = r.indexOf(t); - return (n !== -1 && r.splice(n, 1), r); -} -m(Wu, "arrayRemove"); -function GE(e) { - return e.filter((t) => t.tagName !== "A"); -} -m(GE, "removeLinks"); -var e_ = "Portal", - YE = b.forwardRef((e, t) => { - let { container: r, ...n } = e, - [o, a] = b.useState(!1); - Zo(() => a(!0), []); - let i = r || (o && globalThis?.document?.body); - return i ? x1.createPortal(q.jsx(dr.div, { ...n, ref: t }), i) : null; - }); -YE.displayName = e_; -function KE(e, t) { - return b.useReducer((r, n) => t[r][n] ?? r, e); -} -m(KE, "useStateMachine"); -var yl = m((e) => { - let { present: t, children: r } = e, - n = XE(t), - o = - typeof r == "function" ? r({ present: n.isPresent }) : b.Children.only(r), - a = Fr(n.ref, ZE(o)); - return typeof r == "function" || n.isPresent - ? b.cloneElement(o, { ref: a }) - : null; -}, "Presence"); -yl.displayName = "Presence"; -function XE(e) { - let [t, r] = b.useState(), - n = b.useRef(null), - o = b.useRef(e), - a = b.useRef("none"), - i = e ? "mounted" : "unmounted", - [l, s] = KE(i, { - mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" }, - unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" }, - unmounted: { MOUNT: "mounted" }, - }); - return ( - b.useEffect(() => { - let u = Ro(n.current); - a.current = l === "mounted" ? u : "none"; - }, [l]), - Zo(() => { - let u = n.current, - d = o.current; - if (d !== e) { - let p = a.current, - c = Ro(u); - (e - ? s("MOUNT") - : c === "none" || u?.display === "none" - ? s("UNMOUNT") - : s(d && p !== c ? "ANIMATION_OUT" : "UNMOUNT"), - (o.current = e)); - } - }, [e, s]), - Zo(() => { - if (t) { - let u, - d = t.ownerDocument.defaultView ?? window, - p = m((f) => { - let g = Ro(n.current).includes(f.animationName); - if (f.target === t && g && (s("ANIMATION_END"), !o.current)) { - let y = t.style.animationFillMode; - ((t.style.animationFillMode = "forwards"), - (u = d.setTimeout(() => { - t.style.animationFillMode === "forwards" && - (t.style.animationFillMode = y); - }))); - } - }, "handleAnimationEnd"), - c = m((f) => { - f.target === t && (a.current = Ro(n.current)); - }, "handleAnimationStart"); - return ( - t.addEventListener("animationstart", c), - t.addEventListener("animationcancel", p), - t.addEventListener("animationend", p), - () => { - (d.clearTimeout(u), - t.removeEventListener("animationstart", c), - t.removeEventListener("animationcancel", p), - t.removeEventListener("animationend", p)); - } - ); - } else s("ANIMATION_END"); - }, [t, s]), - { - isPresent: ["mounted", "unmountSuspended"].includes(l), - ref: b.useCallback((u) => { - ((n.current = u ? getComputedStyle(u) : null), r(u)); - }, []), - } - ); -} -m(XE, "usePresence"); -function Ro(e) { - return e?.animationName || "none"; -} -m(Ro, "getAnimationName"); -function ZE(e) { - let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, - r = t && "isReactWarning" in t && t.isReactWarning; - return r - ? e.ref - : ((t = Object.getOwnPropertyDescriptor(e, "ref")?.get), - (r = t && "isReactWarning" in t && t.isReactWarning), - r ? e.props.ref : e.props.ref || e.ref); -} -m(ZE, "getElementRef"); -var fs = 0; -function JE() { - b.useEffect(() => { - let e = document.querySelectorAll("[data-radix-focus-guard]"); - return ( - document.body.insertAdjacentElement("afterbegin", e[0] ?? Vu()), - document.body.insertAdjacentElement("beforeend", e[1] ?? Vu()), - fs++, - () => { - (fs === 1 && - document - .querySelectorAll("[data-radix-focus-guard]") - .forEach((t) => t.remove()), - fs--); - } - ); - }, []); -} -m(JE, "useFocusGuards"); -function Vu() { - let e = document.createElement("span"); - return ( - e.setAttribute("data-radix-focus-guard", ""), - (e.tabIndex = 0), - (e.style.outline = "none"), - (e.style.opacity = "0"), - (e.style.position = "fixed"), - (e.style.pointerEvents = "none"), - e - ); -} -m(Vu, "createFocusGuard"); -var Mt = m(function () { - return ( - (Mt = - Object.assign || - m(function (e) { - for (var t, r = 1, n = arguments.length; r < n; r++) { - t = arguments[r]; - for (var o in t) - Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]); - } - return e; - }, "__assign")), - Mt.apply(this, arguments) - ); -}, "__assign"); -function Gd(e, t) { - var r = {}; - for (var n in e) - Object.prototype.hasOwnProperty.call(e, n) && - t.indexOf(n) < 0 && - (r[n] = e[n]); - if (e != null && typeof Object.getOwnPropertySymbols == "function") - for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++) - t.indexOf(n[o]) < 0 && - Object.prototype.propertyIsEnumerable.call(e, n[o]) && - (r[n[o]] = e[n[o]]); - return r; -} -m(Gd, "__rest"); -function QE(e, t, r) { - if (r || arguments.length === 2) - for (var n = 0, o = t.length, a; n < o; n++) - (a || !(n in t)) && - (a || (a = Array.prototype.slice.call(t, 0, n)), (a[n] = t[n])); - return e.concat(a || Array.prototype.slice.call(t)); -} -m(QE, "__spreadArray"); -var qa = "right-scroll-bar-position", - Ga = "width-before-scroll-bar", - t_ = "with-scroll-bars-hidden", - r_ = "--removed-body-scroll-bar-size"; -function Ya(e, t) { - return (typeof e == "function" ? e(t) : e && (e.current = t), e); -} -m(Ya, "assignRef"); -function ew(e, t) { - var r = b.useState(function () { - return { - value: e, - callback: t, - facade: { - get current() { - return r.value; - }, - set current(n) { - var o = r.value; - o !== n && ((r.value = n), r.callback(n, o)); - }, - }, - }; - })[0]; - return ((r.callback = t), r.facade); -} -m(ew, "useCallbackRef"); -var n_ = typeof window < "u" ? b.useLayoutEffect : b.useEffect, - pm = new WeakMap(); -function tw(e, t) { - var r = ew(t || null, function (n) { - return e.forEach(function (o) { - return Ya(o, n); - }); - }); - return ( - n_( - function () { - var n = pm.get(r); - if (n) { - var o = new Set(n), - a = new Set(e), - i = r.current; - (o.forEach(function (l) { - a.has(l) || Ya(l, null); - }), - a.forEach(function (l) { - o.has(l) || Ya(l, i); - })); - } - pm.set(r, e); - }, - [e], - ), - r - ); -} -m(tw, "useMergeRefs"); -function rw(e) { - return e; -} -m(rw, "ItoI"); -function nw(e, t) { - t === void 0 && (t = rw); - var r = [], - n = !1, - o = { - read: m(function () { - if (n) - throw new Error( - "Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.", - ); - return r.length ? r[r.length - 1] : e; - }, "read"), - useMedium: m(function (a) { - var i = t(a, n); - return ( - r.push(i), - function () { - r = r.filter(function (l) { - return l !== i; - }); - } - ); - }, "useMedium"), - assignSyncMedium: m(function (a) { - for (n = !0; r.length; ) { - var i = r; - ((r = []), i.forEach(a)); - } - r = { - push: m(function (l) { - return a(l); - }, "push"), - filter: m(function () { - return r; - }, "filter"), - }; - }, "assignSyncMedium"), - assignMedium: m(function (a) { - n = !0; - var i = []; - if (r.length) { - var l = r; - ((r = []), l.forEach(a), (i = r)); - } - var s = m(function () { - var d = i; - ((i = []), d.forEach(a)); - }, "executeQueue"), - u = m(function () { - return Promise.resolve().then(s); - }, "cycle"); - (u(), - (r = { - push: m(function (d) { - (i.push(d), u()); - }, "push"), - filter: m(function (d) { - return ((i = i.filter(d)), r); - }, "filter"), - })); - }, "assignMedium"), - }; - return o; -} -m(nw, "innerCreateMedium"); -function ow(e) { - e === void 0 && (e = {}); - var t = nw(null); - return ((t.options = Mt({ async: !0, ssr: !1 }, e)), t); -} -m(ow, "createSidecarMedium"); -var aw = m(function (e) { - var t = e.sideCar, - r = Gd(e, ["sideCar"]); - if (!t) - throw new Error( - "Sidecar: please provide `sideCar` property to import the right car", - ); - var n = t.read(); - if (!n) throw new Error("Sidecar medium not found"); - return b.createElement(n, Mt({}, r)); -}, "SideCar"); -aw.isSideCarExport = !0; -function iw(e, t) { - return (e.useMedium(t), aw); -} -m(iw, "exportSidecar"); -var lw = ow(), - gs = m(function () {}, "nothing"), - bl = b.forwardRef(function (e, t) { - var r = b.useRef(null), - n = b.useState({ - onScrollCapture: gs, - onWheelCapture: gs, - onTouchMoveCapture: gs, - }), - o = n[0], - a = n[1], - i = e.forwardProps, - l = e.children, - s = e.className, - u = e.removeScrollBar, - d = e.enabled, - p = e.shards, - c = e.sideCar, - f = e.noIsolation, - g = e.inert, - y = e.allowPinchZoom, - x = e.as, - v = x === void 0 ? "div" : x, - C = e.gapMode, - w = Gd(e, [ - "forwardProps", - "children", - "className", - "removeScrollBar", - "enabled", - "shards", - "sideCar", - "noIsolation", - "inert", - "allowPinchZoom", - "as", - "gapMode", - ]), - E = c, - $ = tw([r, t]), - A = Mt(Mt({}, w), o); - return b.createElement( - b.Fragment, - null, - d && - b.createElement(E, { - sideCar: lw, - removeScrollBar: u, - shards: p, - noIsolation: f, - inert: g, - setCallbacks: a, - allowPinchZoom: !!y, - lockRef: r, - gapMode: C, - }), - i - ? b.cloneElement(b.Children.only(l), Mt(Mt({}, A), { ref: $ })) - : b.createElement(v, Mt({}, A, { className: s, ref: $ }), l), - ); - }); -bl.defaultProps = { enabled: !0, removeScrollBar: !0, inert: !1 }; -bl.classNames = { fullWidth: Ga, zeroRight: qa }; -var o_ = m(function () { - if (typeof __webpack_nonce__ < "u") return __webpack_nonce__; -}, "getNonce"); -function sw() { - if (!document) return null; - var e = document.createElement("style"); - e.type = "text/css"; - var t = o_(); - return (t && e.setAttribute("nonce", t), e); -} -m(sw, "makeStyleTag"); -function uw(e, t) { - e.styleSheet - ? (e.styleSheet.cssText = t) - : e.appendChild(document.createTextNode(t)); -} -m(uw, "injectStyles"); -function cw(e) { - var t = document.head || document.getElementsByTagName("head")[0]; - t.appendChild(e); -} -m(cw, "insertStyleTag"); -var a_ = m(function () { - var e = 0, - t = null; - return { - add: m(function (r) { - (e == 0 && (t = sw()) && (uw(t, r), cw(t)), e++); - }, "add"), - remove: m(function () { - (e--, - !e && t && (t.parentNode && t.parentNode.removeChild(t), (t = null))); - }, "remove"), - }; - }, "stylesheetSingleton"), - i_ = m(function () { - var e = a_(); - return function (t, r) { - b.useEffect( - function () { - return ( - e.add(t), - function () { - e.remove(); - } - ); - }, - [t && r], - ); - }; - }, "styleHookSingleton"), - dw = m(function () { - var e = i_(), - t = m(function (r) { - var n = r.styles, - o = r.dynamic; - return (e(n, o), null); - }, "Sheet"); - return t; - }, "styleSingleton"), - l_ = { left: 0, top: 0, right: 0, gap: 0 }, - ms = m(function (e) { - return parseInt(e || "", 10) || 0; - }, "parse"), - s_ = m(function (e) { - var t = window.getComputedStyle(document.body), - r = t[e === "padding" ? "paddingLeft" : "marginLeft"], - n = t[e === "padding" ? "paddingTop" : "marginTop"], - o = t[e === "padding" ? "paddingRight" : "marginRight"]; - return [ms(r), ms(n), ms(o)]; - }, "getOffset"), - u_ = m(function (e) { - if ((e === void 0 && (e = "margin"), typeof window > "u")) return l_; - var t = s_(e), - r = document.documentElement.clientWidth, - n = window.innerWidth; - return { - left: t[0], - top: t[1], - right: t[2], - gap: Math.max(0, n - r + t[2] - t[0]), - }; - }, "getGapWidth"), - c_ = dw(), - Pn = "data-scroll-locked", - d_ = m(function (e, t, r, n) { - var o = e.left, - a = e.top, - i = e.right, - l = e.gap; - return ( - r === void 0 && (r = "margin"), - ` - .` - .concat( - t_, - ` { - overflow: hidden `, - ) - .concat( - n, - `; - padding-right: `, - ) - .concat(l, "px ") - .concat( - n, - `; - } - body[`, - ) - .concat( - Pn, - `] { - overflow: hidden `, - ) - .concat( - n, - `; - overscroll-behavior: contain; - `, - ) - .concat( - [ - t && "position: relative ".concat(n, ";"), - r === "margin" && - ` - padding-left: ` - .concat( - o, - `px; - padding-top: `, - ) - .concat( - a, - `px; - padding-right: `, - ) - .concat( - i, - `px; - margin-left:0; - margin-top:0; - margin-right: `, - ) - .concat(l, "px ") - .concat( - n, - `; - `, - ), - r === "padding" && - "padding-right: ".concat(l, "px ").concat(n, ";"), - ] - .filter(Boolean) - .join(""), - ` - } - - .`, - ) - .concat( - qa, - ` { - right: `, - ) - .concat(l, "px ") - .concat( - n, - `; - } - - .`, - ) - .concat( - Ga, - ` { - margin-right: `, - ) - .concat(l, "px ") - .concat( - n, - `; - } - - .`, - ) - .concat(qa, " .") - .concat( - qa, - ` { - right: 0 `, - ) - .concat( - n, - `; - } - - .`, - ) - .concat(Ga, " .") - .concat( - Ga, - ` { - margin-right: 0 `, - ) - .concat( - n, - `; - } - - body[`, - ) - .concat( - Pn, - `] { - `, - ) - .concat(r_, ": ") - .concat( - l, - `px; - } -`, - ) - ); - }, "getStyles"), - fm = m(function () { - var e = parseInt(document.body.getAttribute(Pn) || "0", 10); - return isFinite(e) ? e : 0; - }, "getCurrentUseCounter"), - p_ = m(function () { - b.useEffect(function () { - return ( - document.body.setAttribute(Pn, (fm() + 1).toString()), - function () { - var e = fm() - 1; - e <= 0 - ? document.body.removeAttribute(Pn) - : document.body.setAttribute(Pn, e.toString()); - } - ); - }, []); - }, "useLockAttribute"), - f_ = m(function (e) { - var t = e.noRelative, - r = e.noImportant, - n = e.gapMode, - o = n === void 0 ? "margin" : n; - p_(); - var a = b.useMemo( - function () { - return u_(o); - }, - [o], - ); - return b.createElement(c_, { styles: d_(a, !t, o, r ? "" : "!important") }); - }, "RemoveScrollBar"), - qu = !1; -if (typeof window < "u") - try { - ((So = Object.defineProperty({}, "passive", { - get: m(function () { - return ((qu = !0), !0); - }, "get"), - })), - window.addEventListener("test", So, So), - window.removeEventListener("test", So, So)); - } catch { - qu = !1; - } -var So, - gn = qu ? { passive: !1 } : !1, - g_ = m(function (e) { - return e.tagName === "TEXTAREA"; - }, "alwaysContainsScroll"), - pw = m(function (e, t) { - if (!(e instanceof Element)) return !1; - var r = window.getComputedStyle(e); - return ( - r[t] !== "hidden" && - !(r.overflowY === r.overflowX && !g_(e) && r[t] === "visible") - ); - }, "elementCanBeScrolled"), - m_ = m(function (e) { - return pw(e, "overflowY"); - }, "elementCouldBeVScrolled"), - h_ = m(function (e) { - return pw(e, "overflowX"); - }, "elementCouldBeHScrolled"), - gm = m(function (e, t) { - var r = t.ownerDocument, - n = t; - do { - typeof ShadowRoot < "u" && n instanceof ShadowRoot && (n = n.host); - var o = fw(e, n); - if (o) { - var a = gw(e, n), - i = a[1], - l = a[2]; - if (i > l) return !0; - } - n = n.parentNode; - } while (n && n !== r.body); - return !1; - }, "locationCouldBeScrolled"), - y_ = m(function (e) { - var t = e.scrollTop, - r = e.scrollHeight, - n = e.clientHeight; - return [t, r, n]; - }, "getVScrollVariables"), - b_ = m(function (e) { - var t = e.scrollLeft, - r = e.scrollWidth, - n = e.clientWidth; - return [t, r, n]; - }, "getHScrollVariables"), - fw = m(function (e, t) { - return e === "v" ? m_(t) : h_(t); - }, "elementCouldBeScrolled"), - gw = m(function (e, t) { - return e === "v" ? y_(t) : b_(t); - }, "getScrollVariables"), - v_ = m(function (e, t) { - return e === "h" && t === "rtl" ? -1 : 1; - }, "getDirectionFactor"), - x_ = m(function (e, t, r, n, o) { - var a = v_(e, window.getComputedStyle(t).direction), - i = a * n, - l = r.target, - s = t.contains(l), - u = !1, - d = i > 0, - p = 0, - c = 0; - do { - var f = gw(e, l), - g = f[0], - y = f[1], - x = f[2], - v = y - x - a * g; - ((g || v) && fw(e, l) && ((p += v), (c += g)), - l instanceof ShadowRoot ? (l = l.host) : (l = l.parentNode)); - } while ((!s && l !== document.body) || (s && (t.contains(l) || t === l))); - return ( - ((d && ((o && Math.abs(p) < 1) || (!o && i > p))) || - (!d && ((o && Math.abs(c) < 1) || (!o && -i > c)))) && - (u = !0), - u - ); - }, "handleScroll"), - Aa = m(function (e) { - return "changedTouches" in e - ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] - : [0, 0]; - }, "getTouchXY"), - mm = m(function (e) { - return [e.deltaX, e.deltaY]; - }, "getDeltaXY"), - hm = m(function (e) { - return e && "current" in e ? e.current : e; - }, "extractRef"), - E_ = m(function (e, t) { - return e[0] === t[0] && e[1] === t[1]; - }, "deltaCompare"), - w_ = m(function (e) { - return ` - .block-interactivity-` - .concat( - e, - ` {pointer-events: none;} - .allow-interactivity-`, - ) - .concat( - e, - ` {pointer-events: all;} -`, - ); - }, "generateStyle"), - S_ = 0, - mn = []; -function mw(e) { - var t = b.useRef([]), - r = b.useRef([0, 0]), - n = b.useRef(), - o = b.useState(S_++)[0], - a = b.useState(dw)[0], - i = b.useRef(e); - (b.useEffect( - function () { - i.current = e; - }, - [e], - ), - b.useEffect( - function () { - if (e.inert) { - document.body.classList.add("block-interactivity-".concat(o)); - var y = QE([e.lockRef.current], (e.shards || []).map(hm), !0).filter( - Boolean, - ); - return ( - y.forEach(function (x) { - return x.classList.add("allow-interactivity-".concat(o)); - }), - function () { - (document.body.classList.remove("block-interactivity-".concat(o)), - y.forEach(function (x) { - return x.classList.remove("allow-interactivity-".concat(o)); - })); - } - ); - } - }, - [e.inert, e.lockRef.current, e.shards], - )); - var l = b.useCallback(function (y, x) { - if ( - ("touches" in y && y.touches.length === 2) || - (y.type === "wheel" && y.ctrlKey) - ) - return !i.current.allowPinchZoom; - var v = Aa(y), - C = r.current, - w = "deltaX" in y ? y.deltaX : C[0] - v[0], - E = "deltaY" in y ? y.deltaY : C[1] - v[1], - $, - A = y.target, - S = Math.abs(w) > Math.abs(E) ? "h" : "v"; - if ("touches" in y && S === "h" && A.type === "range") return !1; - var D = gm(S, A); - if (!D) return !0; - if ((D ? ($ = S) : (($ = S === "v" ? "h" : "v"), (D = gm(S, A))), !D)) - return !1; - if ( - (!n.current && "changedTouches" in y && (w || E) && (n.current = $), !$) - ) - return !0; - var F = n.current || $; - return x_(F, x, y, F === "h" ? w : E, !0); - }, []), - s = b.useCallback(function (y) { - var x = y; - if (!(!mn.length || mn[mn.length - 1] !== a)) { - var v = "deltaY" in x ? mm(x) : Aa(x), - C = t.current.filter(function ($) { - return ( - $.name === x.type && - ($.target === x.target || x.target === $.shadowParent) && - E_($.delta, v) - ); - })[0]; - if (C && C.should) { - x.cancelable && x.preventDefault(); - return; - } - if (!C) { - var w = (i.current.shards || []) - .map(hm) - .filter(Boolean) - .filter(function ($) { - return $.contains(x.target); - }), - E = w.length > 0 ? l(x, w[0]) : !i.current.noIsolation; - E && x.cancelable && x.preventDefault(); - } - } - }, []), - u = b.useCallback(function (y, x, v, C) { - var w = { name: y, delta: x, target: v, should: C, shadowParent: hw(v) }; - (t.current.push(w), - setTimeout(function () { - t.current = t.current.filter(function (E) { - return E !== w; - }); - }, 1)); - }, []), - d = b.useCallback(function (y) { - ((r.current = Aa(y)), (n.current = void 0)); - }, []), - p = b.useCallback(function (y) { - u(y.type, mm(y), y.target, l(y, e.lockRef.current)); - }, []), - c = b.useCallback(function (y) { - u(y.type, Aa(y), y.target, l(y, e.lockRef.current)); - }, []); - b.useEffect(function () { - return ( - mn.push(a), - e.setCallbacks({ - onScrollCapture: p, - onWheelCapture: p, - onTouchMoveCapture: c, - }), - document.addEventListener("wheel", s, gn), - document.addEventListener("touchmove", s, gn), - document.addEventListener("touchstart", d, gn), - function () { - ((mn = mn.filter(function (y) { - return y !== a; - })), - document.removeEventListener("wheel", s, gn), - document.removeEventListener("touchmove", s, gn), - document.removeEventListener("touchstart", d, gn)); - } - ); - }, []); - var f = e.removeScrollBar, - g = e.inert; - return b.createElement( - b.Fragment, - null, - g ? b.createElement(a, { styles: w_(o) }) : null, - f ? b.createElement(f_, { gapMode: e.gapMode }) : null, - ); -} -m(mw, "RemoveScrollSideCar"); -function hw(e) { - for (var t = null; e !== null; ) - (e instanceof ShadowRoot && ((t = e.host), (e = e.host)), - (e = e.parentNode)); - return t; -} -m(hw, "getOutermostShadowParent"); -var C_ = iw(lw, mw), - yw = b.forwardRef(function (e, t) { - return b.createElement(bl, Mt({}, e, { ref: t, sideCar: C_ })); - }); -yw.classNames = bl.classNames; -var $_ = yw, - A_ = m(function (e) { - if (typeof document > "u") return null; - var t = Array.isArray(e) ? e[0] : e; - return t.ownerDocument.body; - }, "getDefaultParent"), - hn = new WeakMap(), - Da = new WeakMap(), - ka = {}, - hs = 0, - bw = m(function (e) { - return e && (e.host || bw(e.parentNode)); - }, "unwrapHost"), - D_ = m(function (e, t) { - return t - .map(function (r) { - if (e.contains(r)) return r; - var n = bw(r); - return n && e.contains(n) - ? n - : (console.error( - "aria-hidden", - r, - "in not contained inside", - e, - ". Doing nothing", - ), - null); - }) - .filter(function (r) { - return !!r; - }); - }, "correctTargets"), - k_ = m(function (e, t, r, n) { - var o = D_(t, Array.isArray(e) ? e : [e]); - ka[r] || (ka[r] = new WeakMap()); - var a = ka[r], - i = [], - l = new Set(), - s = new Set(o), - u = m(function (p) { - !p || l.has(p) || (l.add(p), u(p.parentNode)); - }, "keep"); - o.forEach(u); - var d = m(function (p) { - !p || - s.has(p) || - Array.prototype.forEach.call(p.children, function (c) { - if (l.has(c)) d(c); - else - try { - var f = c.getAttribute(n), - g = f !== null && f !== "false", - y = (hn.get(c) || 0) + 1, - x = (a.get(c) || 0) + 1; - (hn.set(c, y), - a.set(c, x), - i.push(c), - y === 1 && g && Da.set(c, !0), - x === 1 && c.setAttribute(r, "true"), - g || c.setAttribute(n, "true")); - } catch (v) { - console.error("aria-hidden: cannot operate on ", c, v); - } - }); - }, "deep"); - return ( - d(t), - l.clear(), - hs++, - function () { - (i.forEach(function (p) { - var c = hn.get(p) - 1, - f = a.get(p) - 1; - (hn.set(p, c), - a.set(p, f), - c || (Da.has(p) || p.removeAttribute(n), Da.delete(p)), - f || p.removeAttribute(r)); - }), - hs--, - hs || - ((hn = new WeakMap()), - (hn = new WeakMap()), - (Da = new WeakMap()), - (ka = {}))); - } - ); - }, "applyAttributeToOthers"), - O_ = m(function (e, t, r) { - r === void 0 && (r = "data-aria-hidden"); - var n = Array.from(Array.isArray(e) ? e : [e]), - o = t || A_(e); - return o - ? (n.push.apply(n, Array.from(o.querySelectorAll("[aria-live]"))), - k_(n, o, r, "aria-hidden")) - : function () { - return null; - }; - }, "hideOthers"), - vl = "Dialog", - [vw, F_] = AE(vl), - [__, Tt] = vw(vl), - Yd = m((e) => { - let { - __scopeDialog: t, - children: r, - open: n, - defaultOpen: o, - onOpenChange: a, - modal: i = !0, - } = e, - l = b.useRef(null), - s = b.useRef(null), - [u, d] = kE({ prop: n, defaultProp: o ?? !1, onChange: a, caller: vl }); - return q.jsx(__, { - scope: t, - triggerRef: l, - contentRef: s, - contentId: Wa(), - titleId: Wa(), - descriptionId: Wa(), - open: u, - onOpenChange: d, - onOpenToggle: b.useCallback(() => d((p) => !p), [d]), - modal: i, - children: r, - }); - }, "Dialog"); -Yd.displayName = vl; -var xw = "DialogTrigger", - Kd = b.forwardRef((e, t) => { - let { __scopeDialog: r, ...n } = e, - o = Tt(xw, r), - a = Fr(t, o.triggerRef); - return q.jsx(dr.button, { - type: "button", - "aria-haspopup": "dialog", - "aria-expanded": o.open, - "aria-controls": o.contentId, - "data-state": xl(o.open), - ...n, - ref: a, - onClick: Rn(e.onClick, o.onOpenToggle), - }); - }); -Kd.displayName = xw; -var Xd = "DialogPortal", - [T_, Ew] = vw(Xd, { forceMount: void 0 }), - Zd = m((e) => { - let { __scopeDialog: t, forceMount: r, children: n, container: o } = e, - a = Tt(Xd, t); - return q.jsx(T_, { - scope: t, - forceMount: r, - children: b.Children.map(n, (i) => - q.jsx(yl, { - present: r || a.open, - children: q.jsx(YE, { asChild: !0, container: o, children: i }), - }), - ), - }); - }, "DialogPortal"); -Zd.displayName = Xd; -var Ai = "DialogOverlay", - Jd = b.forwardRef((e, t) => { - let r = Ew(Ai, e.__scopeDialog), - { forceMount: n = r.forceMount, ...o } = e, - a = Tt(Ai, e.__scopeDialog); - return a.modal - ? q.jsx(yl, { - present: n || a.open, - children: q.jsx(P_, { ...o, ref: t }), - }) - : null; - }); -Jd.displayName = Ai; -var R_ = hl("DialogOverlay.RemoveScroll"), - P_ = b.forwardRef((e, t) => { - let { __scopeDialog: r, ...n } = e, - o = Tt(Ai, r); - return q.jsx($_, { - as: R_, - allowPinchZoom: !0, - shards: [o.contentRef], - children: q.jsx(dr.div, { - "data-state": xl(o.open), - ...n, - ref: t, - style: { pointerEvents: "auto", ...n.style }, - }), - }); - }), - on = "DialogContent", - Qd = b.forwardRef((e, t) => { - let r = Ew(on, e.__scopeDialog), - { forceMount: n = r.forceMount, ...o } = e, - a = Tt(on, e.__scopeDialog); - return q.jsx(yl, { - present: n || a.open, - children: a.modal - ? q.jsx(I_, { ...o, ref: t }) - : q.jsx(L_, { ...o, ref: t }), - }); - }); -Qd.displayName = on; -var I_ = b.forwardRef((e, t) => { - let r = Tt(on, e.__scopeDialog), - n = b.useRef(null), - o = Fr(t, r.contentRef, n); - return ( - b.useEffect(() => { - let a = n.current; - if (a) return O_(a); - }, []), - q.jsx(ww, { - ...e, - ref: o, - trapFocus: r.open, - disableOutsidePointerEvents: !0, - onCloseAutoFocus: Rn(e.onCloseAutoFocus, (a) => { - (a.preventDefault(), r.triggerRef.current?.focus()); - }), - onPointerDownOutside: Rn(e.onPointerDownOutside, (a) => { - let i = a.detail.originalEvent, - l = i.button === 0 && i.ctrlKey === !0; - (i.button === 2 || l) && a.preventDefault(); - }), - onFocusOutside: Rn(e.onFocusOutside, (a) => a.preventDefault()), - }) - ); - }), - L_ = b.forwardRef((e, t) => { - let r = Tt(on, e.__scopeDialog), - n = b.useRef(!1), - o = b.useRef(!1); - return q.jsx(ww, { - ...e, - ref: t, - trapFocus: !1, - disableOutsidePointerEvents: !1, - onCloseAutoFocus: m((a) => { - (e.onCloseAutoFocus?.(a), - a.defaultPrevented || - (n.current || r.triggerRef.current?.focus(), a.preventDefault()), - (n.current = !1), - (o.current = !1)); - }, "onCloseAutoFocus"), - onInteractOutside: m((a) => { - (e.onInteractOutside?.(a), - a.defaultPrevented || - ((n.current = !0), - a.detail.originalEvent.type === "pointerdown" && (o.current = !0))); - let i = a.target; - (r.triggerRef.current?.contains(i) && a.preventDefault(), - a.detail.originalEvent.type === "focusin" && - o.current && - a.preventDefault()); - }, "onInteractOutside"), - }); - }), - ww = b.forwardRef((e, t) => { - let { - __scopeDialog: r, - trapFocus: n, - onOpenAutoFocus: o, - onCloseAutoFocus: a, - ...i - } = e, - l = Tt(on, r), - s = b.useRef(null), - u = Fr(t, s); - return ( - JE(), - q.jsxs(q.Fragment, { - children: [ - q.jsx(zE, { - asChild: !0, - loop: !0, - trapped: n, - onMountAutoFocus: o, - onUnmountAutoFocus: a, - children: q.jsx(NE, { - role: "dialog", - id: l.contentId, - "aria-describedby": l.descriptionId, - "aria-labelledby": l.titleId, - "data-state": xl(l.open), - ...i, - ref: u, - onDismiss: m(() => l.onOpenChange(!1), "onDismiss"), - }), - }), - q.jsxs(q.Fragment, { - children: [ - q.jsx(N_, { titleId: l.titleId }), - q.jsx(M_, { contentRef: s, descriptionId: l.descriptionId }), - ], - }), - ], - }) - ); - }), - ep = "DialogTitle", - tp = b.forwardRef((e, t) => { - let { __scopeDialog: r, ...n } = e, - o = Tt(ep, r); - return q.jsx(dr.h2, { id: o.titleId, ...n, ref: t }); - }); -tp.displayName = ep; -var Sw = "DialogDescription", - rp = b.forwardRef((e, t) => { - let { __scopeDialog: r, ...n } = e, - o = Tt(Sw, r); - return q.jsx(dr.p, { id: o.descriptionId, ...n, ref: t }); - }); -rp.displayName = Sw; -var Cw = "DialogClose", - np = b.forwardRef((e, t) => { - let { __scopeDialog: r, ...n } = e, - o = Tt(Cw, r); - return q.jsx(dr.button, { - type: "button", - ...n, - ref: t, - onClick: Rn(e.onClick, () => o.onOpenChange(!1)), - }); - }); -np.displayName = Cw; -function xl(e) { - return e ? "open" : "closed"; -} -m(xl, "getState"); -var $w = "DialogTitleWarning", - [B_, Aw] = $E($w, { contentName: on, titleName: ep, docsSlug: "dialog" }), - N_ = m(({ titleId: e }) => { - let t = Aw($w), - r = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. - -If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. - -For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`; - return ( - b.useEffect(() => { - e && (document.getElementById(e) || console.error(r)); - }, [r, e]), - null - ); - }, "TitleWarning"), - j_ = "DialogDescriptionWarning", - M_ = m(({ contentRef: e, descriptionId: t }) => { - let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Aw(j_).contentName}}.`; - return ( - b.useEffect(() => { - let n = e.current?.getAttribute("aria-describedby"); - t && n && (document.getElementById(t) || console.warn(r)); - }, [r, e, t]), - null - ); - }, "DescriptionWarning"), - Dw = Yd, - z_ = Kd, - kw = Zd, - Ow = Jd, - Fw = Qd, - _w = tp, - Tw = rp, - Rw = np, - Pw = {}; -na(Pw, { - Actions: () => K_, - CloseButton: () => Nw, - Col: () => Mw, - Container: () => Bw, - Content: () => V_, - Description: () => Y_, - Error: () => X_, - ErrorWrapper: () => zw, - Header: () => q_, - Overlay: () => Lw, - Row: () => jw, - Title: () => G_, -}); -var _r = b.forwardRef( - ( - { - asChild: e = !1, - animation: t = "none", - size: r = "small", - variant: n = "outline", - padding: o = "medium", - disabled: a = !1, - active: i = !1, - onClick: l, - ...s - }, - u, - ) => { - let d = "button"; - e && (d = VF); - let [p, c] = b.useState(!1), - f = m((g) => { - (l && l(g), t !== "none" && c(!0)); - }, "handleClick"); - return ( - b.useEffect(() => { - let g = setTimeout(() => { - p && c(!1); - }, 1e3); - return () => clearTimeout(g); - }, [p]), - h.createElement(H_, { - as: d, - ref: u, - variant: n, - size: r, - padding: o, - disabled: a, - active: i, - animating: p, - animation: t, - onClick: f, - ...s, - }) - ); - }, -); -_r.displayName = "Button"; -var H_ = T("button", { - shouldForwardProp: m((e) => od(e), "shouldForwardProp"), - })( - ({ - theme: e, - variant: t, - size: r, - disabled: n, - active: o, - animating: a, - animation: i = "none", - padding: l, - }) => ({ - border: 0, - cursor: n ? "not-allowed" : "pointer", - display: "inline-flex", - gap: "6px", - alignItems: "center", - justifyContent: "center", - overflow: "hidden", - padding: - l === "none" - ? 0 - : l === "small" && r === "small" - ? "0 7px" - : l === "small" && r === "medium" - ? "0 9px" - : r === "small" - ? "0 10px" - : r === "medium" - ? "0 12px" - : 0, - height: r === "small" ? "28px" : "32px", - position: "relative", - textAlign: "center", - textDecoration: "none", - transitionProperty: "background, box-shadow", - transitionDuration: "150ms", - transitionTimingFunction: "ease-out", - verticalAlign: "top", - whiteSpace: "nowrap", - userSelect: "none", - opacity: n ? 0.5 : 1, - margin: 0, - fontSize: `${e.typography.size.s1}px`, - fontWeight: e.typography.weight.bold, - lineHeight: "1", - background: - t === "solid" - ? e.color.secondary - : t === "outline" - ? e.button.background - : t === "ghost" && o - ? e.background.hoverable - : "transparent", - ...(t === "ghost" - ? { - ".sb-bar &": { - background: o ? pt(0.9, e.barTextColor) : "transparent", - color: o ? e.barSelectedColor : e.barTextColor, - "&:hover": { - color: e.barHoverColor, - background: pt(0.86, e.barHoverColor), - }, - "&:active": { - color: e.barSelectedColor, - background: pt(0.9, e.barSelectedColor), - }, - "&:focus": { - boxShadow: `${nn(e.barHoverColor, 1)} 0 0 0 1px inset`, - outline: "none", - }, - }, - } - : {}), - color: - t === "solid" - ? e.color.lightest - : t === "outline" - ? e.input.color - : t === "ghost" && o - ? e.color.secondary - : t === "ghost" - ? e.color.mediumdark - : e.input.color, - boxShadow: - t === "outline" ? `${e.button.border} 0 0 0 1px inset` : "none", - borderRadius: e.input.borderRadius, - flexShrink: 0, - "&:hover": { - color: t === "ghost" ? e.color.secondary : void 0, - background: (() => { - let s = e.color.secondary; - return ( - t === "solid" && (s = e.color.secondary), - t === "outline" && (s = e.button.background), - t === "ghost" - ? pt(0.86, e.color.secondary) - : e.base === "light" - ? kn(0.02, s) - : sm(0.03, s) - ); - })(), - }, - "&:active": { - color: t === "ghost" ? e.color.secondary : void 0, - background: (() => { - let s = e.color.secondary; - return ( - t === "solid" && (s = e.color.secondary), - t === "outline" && (s = e.button.background), - t === "ghost" - ? e.background.hoverable - : e.base === "light" - ? kn(0.02, s) - : sm(0.03, s) - ); - })(), - }, - "&:focus": { - boxShadow: `${nn(e.color.secondary, 1)} 0 0 0 1px inset`, - outline: "none", - }, - "> svg": { - animation: a && i !== "none" ? `${e.animation[i]} 1000ms ease-out` : "", - }, - }), - ), - $r = b.forwardRef(({ padding: e = "small", variant: t = "ghost", ...r }, n) => - h.createElement(_r, { padding: e, variant: t, ref: n, ...r }), - ); -$r.displayName = "IconButton"; -var Iw = _t({ from: { opacity: 0 }, to: { opacity: 1 } }), - U_ = _t({ from: { maxHeight: 0 }, to: {} }), - W_ = _t({ - from: { opacity: 0, transform: "translate(-50%, -50%) scale(0.9)" }, - to: { opacity: 1, transform: "translate(-50%, -50%) scale(1)" }, - }), - Lw = T.div({ - backdropFilter: "blur(24px)", - position: "fixed", - inset: 0, - width: "100%", - height: "100%", - zIndex: 10, - animation: `${Iw} 200ms`, - }), - Bw = T.div(({ theme: e, width: t, height: r }) => ({ - backgroundColor: e.background.bar, - borderRadius: 6, - boxShadow: "0px 4px 67px 0px #00000040", - position: "fixed", - top: "50%", - left: "50%", - transform: "translate(-50%, -50%)", - width: t ?? 740, - height: r ?? "auto", - maxWidth: "calc(100% - 40px)", - maxHeight: "85vh", - overflow: "auto", - zIndex: 11, - animation: `${W_} 200ms`, - "&:focus-visible": { outline: "none" }, - })), - Nw = m( - (e) => - h.createElement( - Rw, - { asChild: !0 }, - h.createElement( - $r, - { "aria-label": "Close", ...e }, - h.createElement(TF, null), - ), - ), - "CloseButton", - ), - V_ = T.div({ display: "flex", flexDirection: "column", margin: 16, gap: 16 }), - jw = T.div({ display: "flex", justifyContent: "space-between", gap: 16 }), - Mw = T.div({ display: "flex", flexDirection: "column", gap: 4 }), - q_ = m( - (e) => - h.createElement( - jw, - null, - h.createElement(Mw, { ...e }), - h.createElement(Nw, null), - ), - "Header", - ), - G_ = T(_w)(({ theme: e }) => ({ - margin: 0, - fontSize: e.typography.size.s3, - fontWeight: e.typography.weight.bold, - })), - Y_ = T(Tw)(({ theme: e }) => ({ - position: "relative", - zIndex: 1, - margin: 0, - fontSize: e.typography.size.s2, - })), - K_ = T.div({ display: "flex", flexDirection: "row-reverse", gap: 8 }), - zw = T.div(({ theme: e }) => ({ - maxHeight: 100, - overflow: "auto", - animation: `${U_} 300ms, ${Iw} 300ms`, - backgroundColor: e.background.critical, - color: e.color.lightest, - fontSize: e.typography.size.s2, - "& > div": { position: "relative", padding: "8px 16px" }, - })), - X_ = m( - ({ children: e, ...t }) => - h.createElement(zw, { ...t }, h.createElement("div", null, e)), - "Error", - ); -function Hw({ - children: e, - width: t, - height: r, - onEscapeKeyDown: n, - onInteractOutside: o = m((u) => u.preventDefault(), "onInteractOutside"), - className: a, - container: i, - portalSelector: l, - ...s -}) { - let u = i ?? (l ? document.querySelector(l) : null) ?? document.body; - return h.createElement( - Dw, - { ...s }, - h.createElement( - kw, - { container: u }, - h.createElement(Ow, { asChild: !0 }, h.createElement(Lw, null)), - h.createElement( - Fw, - { asChild: !0, onInteractOutside: o, onEscapeKeyDown: n }, - h.createElement(Bw, { className: a, width: t, height: r }, e), - ), - ), - ); -} -m(Hw, "BaseModal"); -var Z_ = Object.assign(Hw, Pw, { Dialog: CE }), - J_ = m((e) => (typeof e == "number" ? e : Number(e)), "toNumber"), - Q_ = T.div( - ({ theme: e, col: t, row: r = 1 }) => - t - ? { - display: "inline-block", - verticalAlign: "inherit", - "& > *": { - marginLeft: t * e.layoutMargin, - verticalAlign: "inherit", - }, - [`& > *:first-child${gu}`]: { marginLeft: 0 }, - } - : { - "& > *": { marginTop: r * e.layoutMargin }, - [`& > *:first-child${gu}`]: { marginTop: 0 }, - }, - ({ theme: e, outer: t, col: r, row: n }) => { - switch (!0) { - case !!(t && r): - return { - marginLeft: t * e.layoutMargin, - marginRight: t * e.layoutMargin, - }; - case !!(t && n): - return { - marginTop: t * e.layoutMargin, - marginBottom: t * e.layoutMargin, - }; - default: - return {}; - } - }, - ), - e4 = m(({ col: e, row: t, outer: r, children: n, ...o }) => { - let a = J_(typeof r == "number" || !r ? r : e || t); - return h.createElement(Q_, { col: e, row: t, outer: a, ...o }, n); - }, "Spaced"), - t4 = T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.bold })), - r4 = T.div(), - n4 = T.div(({ theme: e }) => ({ - padding: 30, - textAlign: "center", - color: e.color.defaultText, - fontSize: e.typography.size.s2 - 1, - })), - o4 = m(({ children: e, ...t }) => { - let [r, n] = b.Children.toArray(e); - return h.createElement( - n4, - { ...t }, - h.createElement(t4, null, r), - n && h.createElement(r4, null, n), - ); - }, "Placeholder"); -vd(); -function Uw(e, t) { - var r = b.useRef(null), - n = b.useRef(null); - n.current = t; - var o = b.useRef(null); - b.useEffect(function () { - a(); - }); - var a = b.useCallback( - function () { - var i = o.current, - l = n.current, - s = i || (l ? (l instanceof Element ? l : l.current) : null); - (r.current && r.current.element === s && r.current.subscriber === e) || - (r.current && r.current.cleanup && r.current.cleanup(), - (r.current = { - element: s, - subscriber: e, - cleanup: s ? e(s) : void 0, - })); - }, - [e], - ); - return ( - b.useEffect(function () { - return function () { - r.current && - r.current.cleanup && - (r.current.cleanup(), (r.current = null)); - }; - }, []), - b.useCallback( - function (i) { - ((o.current = i), a()); - }, - [a], - ) - ); -} -m(Uw, "useResolvedElement"); -function Gu(e, t, r) { - return e[t] - ? e[t][0] - ? e[t][0][r] - : e[t][r] - : t === "contentBoxSize" - ? e.contentRect[r === "inlineSize" ? "width" : "height"] - : void 0; -} -m(Gu, "extractSize"); -function op(e) { - e === void 0 && (e = {}); - var t = e.onResize, - r = b.useRef(void 0); - r.current = t; - var n = e.round || Math.round, - o = b.useRef(), - a = b.useState({ width: void 0, height: void 0 }), - i = a[0], - l = a[1], - s = b.useRef(!1); - b.useEffect(function () { - return ( - (s.current = !1), - function () { - s.current = !0; - } - ); - }, []); - var u = b.useRef({ width: void 0, height: void 0 }), - d = Uw( - b.useCallback( - function (p) { - return ( - (!o.current || o.current.box !== e.box || o.current.round !== n) && - (o.current = { - box: e.box, - round: n, - instance: new ResizeObserver(function (c) { - var f = c[0], - g = - e.box === "border-box" - ? "borderBoxSize" - : e.box === "device-pixel-content-box" - ? "devicePixelContentBoxSize" - : "contentBoxSize", - y = Gu(f, g, "inlineSize"), - x = Gu(f, g, "blockSize"), - v = y ? n(y) : void 0, - C = x ? n(x) : void 0; - if (u.current.width !== v || u.current.height !== C) { - var w = { width: v, height: C }; - ((u.current.width = v), - (u.current.height = C), - r.current ? r.current(w) : s.current || l(w)); - } - }), - }), - o.current.instance.observe(p, { box: e.box }), - function () { - o.current && o.current.instance.unobserve(p); - } - ); - }, - [e.box, n], - ), - e.ref, - ); - return b.useMemo( - function () { - return { ref: d, width: i.width, height: i.height }; - }, - [d, i.width, i.height], - ); -} -m(op, "useResizeObserver"); -var a4 = T.div(({ centered: e = !1, scale: t = 1, elementHeight: r }) => ({ - height: r || "auto", - transformOrigin: e ? "center top" : "left top", - transform: `scale(${1 / t})`, -})); -function Ww({ centered: e, scale: t, children: r }) { - let n = b.useRef(null), - [o, a] = b.useState(0), - i = b.useCallback( - ({ height: l }) => { - l && a(l / t); - }, - [t], - ); - return ( - b.useEffect(() => { - n.current && a(n.current.getBoundingClientRect().height); - }, [t]), - op({ ref: n, onResize: i }), - h.createElement( - a4, - { centered: e, scale: t, elementHeight: o }, - h.createElement( - "div", - { ref: n, className: "innerZoomElementWrapper" }, - r, - ), - ) - ); -} -m(Ww, "ZoomElement"); -var Vw = class extends b.Component { - constructor() { - (super(...arguments), (this.iframe = null)); - } - componentDidMount() { - let { iFrameRef: t } = this.props; - this.iframe = t.current; - } - shouldComponentUpdate(t) { - let { scale: r, active: n } = this.props; - return ( - r !== t.scale && this.setIframeInnerZoom(t.scale), - n !== t.active && - this.iframe.setAttribute( - "data-is-storybook", - t.active ? "true" : "false", - ), - t.children.props.src !== this.props.children.props.src - ); - } - setIframeInnerZoom(t) { - try { - Object.assign(this.iframe.contentDocument.body.style, { - width: `${t * 100}%`, - height: `${t * 100}%`, - transform: `scale(${1 / t})`, - transformOrigin: "top left", - }); - } catch { - this.setIframeZoom(t); - } - } - setIframeZoom(t) { - Object.assign(this.iframe.style, { - width: `${t * 100}%`, - height: `${t * 100}%`, - transform: `scale(${1 / t})`, - transformOrigin: "top left", - }); - } - render() { - let { children: t } = this.props; - return h.createElement(h.Fragment, null, t); - } -}; -m(Vw, "ZoomIFrame"); -var i4 = Vw, - qw = { Element: Ww, IFrame: i4 }; -const { global: l4 } = __STORYBOOK_MODULE_GLOBAL__; -var { document: s4 } = l4, - u4 = T.strong(({ theme: e }) => ({ color: e.color.orange })), - c4 = T.strong(({ theme: e }) => ({ - color: e.color.ancillary, - textDecoration: "underline", - })), - ym = T.em(({ theme: e }) => ({ color: e.textMutedColor })), - d4 = /(Error): (.*)\n/, - p4 = /at (?:(.*) )?\(?(.+)\)?/, - f4 = /([^@]+)?(?:\/<)?@(.+)?/, - g4 = /([^@]+)?@(.+)?/, - Gw = m(({ error: e }) => { - if (!e) - return h.createElement( - b.Fragment, - null, - "This error has no stack or message", - ); - if (!e.stack) - return h.createElement( - b.Fragment, - null, - e.message || "This error has no stack or message", - ); - let t = e.stack.toString(); - t && - e.message && - !t.includes(e.message) && - (t = `Error: ${e.message} - -${t}`); - let r = t.match(d4); - if (!r) return h.createElement(b.Fragment, null, t); - let [, n, o] = r, - a = t.split(/\n/).slice(1), - [, ...i] = a - .map((l) => { - let s = l.match(p4) || l.match(f4) || l.match(g4); - return s - ? { - name: (s[1] || "").replace("/<", ""), - location: s[2].replace(s4.location.origin, ""), - } - : null; - }) - .filter(Boolean); - return h.createElement( - b.Fragment, - null, - h.createElement("span", null, n), - ": ", - h.createElement(u4, null, o), - h.createElement("br", null), - i.map((l, s) => - l?.name - ? h.createElement( - b.Fragment, - { key: s }, - " ", - "at ", - h.createElement(c4, null, l.name), - " (", - h.createElement(ym, null, l.location), - ")", - h.createElement("br", null), - ) - : h.createElement( - b.Fragment, - { key: s }, - " ", - "at ", - h.createElement(ym, null, l?.location), - h.createElement("br", null), - ), - ), - ); - }, "ErrorFormatter"), - m4 = T.input({ - appearance: "none", - display: "grid", - placeContent: "center", - width: 14, - height: 14, - flexShrink: 0, - margin: 0, - border: `1px solid ${K.border}`, - borderRadius: 2, - backgroundColor: "white", - transition: "background-color 0.1s", - "&:enabled": { cursor: "pointer" }, - "&:disabled": { backgroundColor: K.medium }, - "&:disabled:checked, &:disabled:indeterminate": { - backgroundColor: K.mediumdark, - }, - "&:checked, &:indeterminate": { backgroundColor: K.secondary }, - "&:checked::before": { - content: '""', - width: 14, - height: 14, - background: `no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`, - }, - "&:indeterminate::before": { - content: '""', - width: 8, - height: 2, - background: "white", - }, - "&:enabled:focus-visible": { - outline: `1px solid ${K.secondary}`, - outlineOffset: 1, - }, - }), - h4 = m((e) => h.createElement(m4, { ...e, type: "checkbox" }), "Checkbox"), - y4 = T.label(({ theme: e }) => ({ - display: "flex", - borderBottom: `1px solid ${e.appBorderColor}`, - margin: "0 15px", - padding: "8px 0", - "&:last-child": { marginBottom: "3rem" }, - })), - b4 = T.span(({ theme: e }) => ({ - minWidth: 100, - fontWeight: e.typography.weight.bold, - marginRight: 15, - display: "flex", - justifyContent: "flex-start", - alignItems: "center", - lineHeight: "16px", - })), - v4 = m( - ({ label: e, children: t, ...r }) => - h.createElement( - y4, - { ...r }, - e ? h.createElement(b4, null, h.createElement("span", null, e)) : null, - t, - ), - "Field", - ), - ap = m(({ size: e }) => { - switch (e) { - case "100%": - return { width: "100%" }; - case "flex": - return { flex: 1 }; - case "auto": - default: - return { display: "inline" }; - } - }, "sizes"), - Yw = m(({ align: e }) => { - switch (e) { - case "end": - return { textAlign: "right" }; - case "center": - return { textAlign: "center" }; - case "start": - default: - return { textAlign: "left" }; - } - }, "alignment"), - Kw = m(({ valid: e, theme: t }) => { - switch (e) { - case "valid": - return { boxShadow: `${t.color.positive} 0 0 0 1px inset !important` }; - case "error": - return { boxShadow: `${t.color.negative} 0 0 0 1px inset !important` }; - case "warn": - return { boxShadow: `${t.color.warning} 0 0 0 1px inset` }; - case void 0: - case null: - default: - return {}; - } - }, "validation"), - x4 = { - appearance: "none", - border: "0 none", - boxSizing: "inherit", - display: " block", - margin: " 0", - background: "transparent", - padding: 0, - fontSize: "inherit", - position: "relative", - }, - Xw = m( - ({ theme: e }) => ({ - ...x4, - transition: "box-shadow 200ms ease-out, opacity 200ms ease-out", - color: e.input.color || "inherit", - background: e.input.background, - boxShadow: `${e.input.border} 0 0 0 1px inset`, - borderRadius: e.input.borderRadius, - fontSize: e.typography.size.s2 - 1, - lineHeight: "20px", - padding: "6px 10px", - boxSizing: "border-box", - height: 32, - '&[type="file"]': { height: "auto" }, - "&:focus": { - boxShadow: `${e.color.secondary} 0 0 0 1px inset`, - outline: "none", - "@media (forced-colors: active)": { outline: "1px solid highlight" }, - }, - "&[disabled]": { cursor: "not-allowed", opacity: 0.5 }, - "&:-webkit-autofill": { - WebkitBoxShadow: `0 0 0 3em ${e.color.lightest} inset`, - }, - "&::placeholder": { color: e.textMutedColor, opacity: 1 }, - }), - "styles", - ), - E4 = Object.assign( - T( - b.forwardRef( - m(function ({ size: e, valid: t, align: r, ...n }, o) { - return h.createElement("input", { ...n, ref: o }); - }, "Input"), - ), - )(Xw, ap, Yw, Kw, { minHeight: 32 }), - { displayName: "Input" }, - ), - w4 = T.input({ - appearance: "none", - display: "grid", - placeContent: "center", - width: 16, - height: 16, - flexShrink: 0, - margin: -1, - border: `1px solid ${K.border}`, - borderRadius: 8, - backgroundColor: "white", - transition: "background-color 0.1s", - "&:enabled": { cursor: "pointer" }, - "&:disabled": { backgroundColor: K.medium }, - "&:disabled:checked": { backgroundColor: K.mediumdark }, - "&:checked": { - backgroundColor: K.secondary, - boxShadow: "inset 0 0 0 2px white", - }, - "&:enabled:focus-visible": { - outline: `1px solid ${K.secondary}`, - outlineOffset: 1, - }, - }), - S4 = m((e) => h.createElement(w4, { ...e, type: "radio" }), "Radio"); -function Zw() { - try { - return ( - !!globalThis.__vitest_browser__ || - !!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/) - ); - } catch { - return !1; - } -} -m(Zw, "isTestEnvironment"); -var C4 = T.select(ap, ({ theme: e }) => ({ - appearance: "none", - background: `calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`, - backgroundSize: 10, - padding: "6px 30px 6px 10px", - "@supports (appearance: base-select)": { - appearance: "base-select", - background: e.input.background, - padding: "6px 10px", - }, - transition: "box-shadow 200ms ease-out, opacity 200ms ease-out", - color: e.input.color || "inherit", - boxShadow: `${e.input.border} 0 0 0 1px inset`, - borderRadius: e.input.borderRadius, - fontSize: e.typography.size.s2 - 1, - lineHeight: "20px", - boxSizing: "border-box", - border: "none", - cursor: "pointer", - "& > button": { - display: "flex", - alignItems: "center", - justifyContent: "space-between", - width: "100%", - gap: 8, - "& > svg": { width: 14, height: 14, color: e.color.mediumdark }, - }, - "&:has(option:not([hidden]):checked)": { color: e.color.defaultText }, - "&:focus-visible, &:focus-within": { - outline: "none", - boxShadow: `${e.color.secondary} 0 0 0 1px inset`, - }, - "&::picker-icon": { display: "none" }, - "&::picker(select)": { - appearance: "base-select", - border: "1px solid #e4e4e7", - padding: 4, - marginTop: 4, - background: e.base === "light" ? wn(e.background.app) : e.background.app, - filter: ` - drop-shadow(0 5px 5px rgba(0,0,0,0.05)) - drop-shadow(0 0 3px rgba(0,0,0,0.1)) - `, - borderRadius: e.appBorderRadius + 2, - fontSize: e.typography.size.s1, - cursor: "default", - transition: "opacity 100ms ease-in-out, transform 100ms ease-in-out", - transformOrigin: "top", - transform: "translateY(0)", - opacity: 1, - "@starting-style": { - transform: "translateY(-0.25rem) scale(0.95)", - opacity: 0, - }, - }, - "& optgroup label": { display: "block", padding: "3px 6px" }, - "& option": { - lineHeight: "18px", - padding: "7px 10px", - borderRadius: 4, - outline: "none", - cursor: "pointer", - color: e.color.defaultText, - "&::checkmark": { display: "none" }, - "&:hover, &:focus-visible": { backgroundColor: e.background.hoverable }, - "&:checked": { - color: e.color.secondary, - fontWeight: e.typography.weight.bold, - }, - "&:disabled": { - backgroundColor: "transparent", - cursor: "default", - color: e.color.defaultText, - }, - }, - })), - $4 = m( - ({ children: e, ...t }) => - h.createElement( - C4, - { ...t }, - !Zw() && - h.createElement( - "button", - null, - h.createElement("selectedcontent", null), - h.createElement( - "svg", - { - xmlns: "http://www.w3.org/2000/svg", - viewBox: "0 0 24 24", - fill: "none", - stroke: "currentColor", - strokeWidth: "2", - strokeLinecap: "round", - strokeLinejoin: "round", - "aria-hidden": "true", - }, - h.createElement("path", { d: "m6 9 6 6 6-6" }), - ), - ), - h.createElement("optgroup", null, e), - ), - "Select", - ); -tl(); -sd(); -var A4 = b.useLayoutEffect, - D4 = m(function (e) { - var t = h.useRef(e); - return ( - A4(function () { - t.current = e; - }), - t - ); - }, "useLatest"), - bm = m(function (e, t) { - if (typeof e == "function") { - e(t); - return; - } - e.current = t; - }, "updateRef"), - k4 = m(function (e, t) { - var r = h.useRef(); - return h.useCallback( - function (n) { - ((e.current = n), - r.current && bm(r.current, null), - (r.current = t), - t && bm(t, n)); - }, - [t], - ); - }, "useComposedRef"), - vm = { - "min-height": "0", - "max-height": "none", - height: "0", - visibility: "hidden", - overflow: "hidden", - position: "absolute", - "z-index": "-1000", - top: "0", - right: "0", - display: "block", - }, - O4 = m(function (e) { - Object.keys(vm).forEach(function (t) { - e.style.setProperty(t, vm[t], "important"); - }); - }, "forceHiddenStyles"), - xm = O4, - qe = null, - Em = m(function (e, t) { - var r = e.scrollHeight; - return t.sizingStyle.boxSizing === "border-box" - ? r + t.borderSize - : r - t.paddingSize; - }, "getHeight"); -function Jw(e, t, r, n) { - (r === void 0 && (r = 1), - n === void 0 && (n = 1 / 0), - qe || - ((qe = document.createElement("textarea")), - qe.setAttribute("tabindex", "-1"), - qe.setAttribute("aria-hidden", "true"), - xm(qe)), - qe.parentNode === null && document.body.appendChild(qe)); - var o = e.paddingSize, - a = e.borderSize, - i = e.sizingStyle, - l = i.boxSizing; - (Object.keys(i).forEach(function (c) { - var f = c; - qe.style[f] = i[f]; - }), - xm(qe), - (qe.value = t)); - var s = Em(qe, e); - ((qe.value = t), (s = Em(qe, e)), (qe.value = "x")); - var u = qe.scrollHeight - o, - d = u * r; - (l === "border-box" && (d = d + o + a), (s = Math.max(d, s))); - var p = u * n; - return (l === "border-box" && (p = p + o + a), (s = Math.min(p, s)), [s, u]); -} -m(Jw, "calculateNodeHeight"); -var wm = m(function () {}, "noop"), - F4 = m(function (e, t) { - return e.reduce(function (r, n) { - return ((r[n] = t[n]), r); - }, {}); - }, "pick"), - _4 = [ - "borderBottomWidth", - "borderLeftWidth", - "borderRightWidth", - "borderTopWidth", - "boxSizing", - "fontFamily", - "fontSize", - "fontStyle", - "fontWeight", - "letterSpacing", - "lineHeight", - "paddingBottom", - "paddingLeft", - "paddingRight", - "paddingTop", - "tabSize", - "textIndent", - "textRendering", - "textTransform", - "width", - "wordBreak", - "wordSpacing", - "scrollbarGutter", - ], - T4 = !!document.documentElement.currentStyle, - R4 = m(function (e) { - var t = window.getComputedStyle(e); - if (t === null) return null; - var r = F4(_4, t), - n = r.boxSizing; - if (n === "") return null; - T4 && - n === "border-box" && - (r.width = - parseFloat(r.width) + - parseFloat(r.borderRightWidth) + - parseFloat(r.borderLeftWidth) + - parseFloat(r.paddingRight) + - parseFloat(r.paddingLeft) + - "px"); - var o = parseFloat(r.paddingBottom) + parseFloat(r.paddingTop), - a = parseFloat(r.borderBottomWidth) + parseFloat(r.borderTopWidth); - return { sizingStyle: r, paddingSize: o, borderSize: a }; - }, "getSizingData"), - P4 = R4; -function El(e, t, r) { - var n = D4(r); - b.useLayoutEffect(function () { - var o = m(function (a) { - return n.current(a); - }, "handler"); - if (e) - return ( - e.addEventListener(t, o), - function () { - return e.removeEventListener(t, o); - } - ); - }, []); -} -m(El, "useListener"); -var I4 = m(function (e, t) { - El(document.body, "reset", function (r) { - e.current.form === r.target && t(r); - }); - }, "useFormResetListener"), - L4 = m(function (e) { - El(window, "resize", e); - }, "useWindowResizeListener"), - B4 = m(function (e) { - El(document.fonts, "loadingdone", e); - }, "useFontsLoadedListener"), - N4 = [ - "cacheMeasurements", - "maxRows", - "minRows", - "onChange", - "onHeightChange", - ], - j4 = m(function (e, t) { - var r = e.cacheMeasurements, - n = e.maxRows, - o = e.minRows, - a = e.onChange, - i = a === void 0 ? wm : a, - l = e.onHeightChange, - s = l === void 0 ? wm : l, - u = nl(e, N4), - d = u.value !== void 0, - p = b.useRef(null), - c = k4(p, t), - f = b.useRef(0), - g = b.useRef(), - y = m(function () { - var v = p.current, - C = r && g.current ? g.current : P4(v); - if (C) { - g.current = C; - var w = Jw(C, v.value || v.placeholder || "x", o, n), - E = w[0], - $ = w[1]; - f.current !== E && - ((f.current = E), - v.style.setProperty("height", E + "px", "important"), - s(E, { rowHeight: $ })); - } - }, "resizeTextarea"), - x = m(function (v) { - (d || y(), i(v)); - }, "handleChange"); - return ( - b.useLayoutEffect(y), - I4(p, function () { - if (!d) { - var v = p.current.value; - requestAnimationFrame(function () { - var C = p.current; - C && v !== C.value && y(); - }); - } - }), - L4(y), - B4(y), - b.createElement("textarea", xe({}, u, { onChange: x, ref: c })) - ); - }, "TextareaAutosize"), - M4 = b.forwardRef(j4), - z4 = Object.assign( - T( - b.forwardRef( - m(function ({ size: e, valid: t, align: r, ...n }, o) { - return h.createElement(M4, { ...n, ref: o }); - }, "Textarea"), - ), - )(Xw, ap, Yw, Kw, ({ height: e = 400 }) => ({ - overflow: "visible", - maxHeight: e, - })), - { displayName: "Textarea" }, - ), - uo = Object.assign(T.form({ boxSizing: "border-box", width: "100%" }), { - Field: v4, - Input: E4, - Select: $4, - Textarea: z4, - Button: _r, - Checkbox: h4, - Radio: S4, - }), - H4 = b.lazy(() => - Promise.resolve() - .then(() => (Bd(), Ld)) - .then((e) => ({ default: e.WithTooltip })), - ), - U4 = m( - (e) => - h.createElement( - b.Suspense, - { fallback: h.createElement("div", null) }, - h.createElement(H4, { ...e }), - ), - "WithTooltip", - ), - W4 = b.lazy(() => - Promise.resolve() - .then(() => (Bd(), Ld)) - .then((e) => ({ default: e.WithTooltipPure })), - ), - Qw = m( - (e) => - h.createElement( - b.Suspense, - { fallback: h.createElement("div", null) }, - h.createElement(W4, { ...e }), - ), - "WithTooltipPure", - ), - V4 = T.div(({ theme: e }) => ({ fontWeight: e.typography.weight.bold })), - q4 = T.span(), - G4 = T.div(({ theme: e }) => ({ - marginTop: 8, - textAlign: "center", - "> *": { margin: "0 8px", fontWeight: e.typography.weight.bold }, - })), - Y4 = T.div(({ theme: e }) => ({ - color: e.color.defaultText, - lineHeight: "18px", - })), - K4 = T.div({ padding: 15, width: 280, boxSizing: "border-box" }), - X4 = m( - ({ title: e, desc: t, links: r }) => - h.createElement( - K4, - null, - h.createElement( - Y4, - null, - e && h.createElement(V4, null, e), - t && h.createElement(q4, null, t), - ), - r && - h.createElement( - G4, - null, - r.map(({ title: n, ...o }) => - h.createElement(Jn, { ...o, key: n }, n), - ), - ), - ), - "TooltipMessage", - ), - Z4 = T.div(({ theme: e }) => ({ - padding: "2px 6px", - lineHeight: "16px", - fontSize: 10, - fontWeight: e.typography.weight.bold, - color: e.color.lightest, - boxShadow: "0 0 5px 0 rgba(0, 0, 0, 0.3)", - borderRadius: 4, - whiteSpace: "nowrap", - pointerEvents: "none", - zIndex: -1, - background: - e.base === "light" ? "rgba(60, 60, 60, 0.9)" : "rgba(0, 0, 0, 0.95)", - margin: 6, - })), - J4 = m( - ({ note: e, ...t }) => h.createElement(Z4, { ...t }, e), - "TooltipNote", - ), - Q4 = je(rl(), 1), - eT = T(({ active: e, loading: t, disabled: r, ...n }) => - h.createElement("span", { ...n }), - )( - ({ theme: e }) => ({ - color: e.color.defaultText, - fontWeight: e.typography.weight.regular, - }), - ({ active: e, theme: t }) => - e - ? { color: t.color.secondary, fontWeight: t.typography.weight.bold } - : {}, - ({ loading: e, theme: t }) => - e - ? { display: "inline-block", flex: "none", ...t.animation.inlineGlow } - : {}, - ({ disabled: e, theme: t }) => (e ? { color: t.textMutedColor } : {}), - ), - tT = T.span({ - display: "flex", - "& svg": { height: 12, width: 12, margin: "3px 0", verticalAlign: "top" }, - "& path": { fill: "inherit" }, - }), - rT = T.span( - { flex: 1, textAlign: "left", display: "flex", flexDirection: "column" }, - ({ isIndented: e }) => (e ? { marginLeft: 24 } : {}), - ), - nT = T.span( - ({ theme: e }) => ({ fontSize: "11px", lineHeight: "14px" }), - ({ active: e, theme: t }) => (e ? { color: t.color.secondary } : {}), - ({ theme: e, disabled: t }) => (t ? { color: e.textMutedColor } : {}), - ), - oT = T.span( - ({ active: e, theme: t }) => (e ? { color: t.color.secondary } : {}), - () => ({ display: "flex", maxWidth: 14 }), - ), - aT = T.div( - ({ theme: e }) => ({ - width: "100%", - border: "none", - borderRadius: e.appBorderRadius, - background: "none", - fontSize: e.typography.size.s1, - transition: "all 150ms ease-out", - color: e.color.dark, - textDecoration: "none", - justifyContent: "space-between", - lineHeight: "18px", - padding: "7px 10px", - display: "flex", - alignItems: "center", - "& > * + *": { paddingLeft: 10 }, - }), - ({ theme: e, href: t, onClick: r }) => - (t || r) && { - cursor: "pointer", - "&:hover": { background: e.background.hoverable }, - "&:hover svg": { opacity: 1 }, - }, - ({ theme: e, as: t }) => - t === "label" && { - "&:has(input:not(:disabled))": { - cursor: "pointer", - "&:hover": { background: e.background.hoverable }, - }, - }, - ({ disabled: e }) => e && { cursor: "not-allowed" }, - ), - iT = (0, Q4.default)(100)( - ({ onClick: e, input: t, href: r, LinkWrapper: n }) => ({ - ...(e && { as: "button", onClick: e }), - ...(t && { as: "label" }), - ...(r && { as: "a", href: r, ...(n && { as: n, to: r }) }), - }), - ), - lT = m((e) => { - let { - loading: t = !1, - title: r = h.createElement("span", null, "Loading state"), - center: n = null, - right: o = null, - active: a = !1, - disabled: i = !1, - isIndented: l = !1, - href: s = void 0, - onClick: u = void 0, - icon: d, - input: p, - LinkWrapper: c = void 0, - ...f - } = e, - g = { active: a, disabled: i }, - y = iT(e), - x = d || p; - return h.createElement( - aT, - { ...f, ...g, ...y }, - h.createElement( - h.Fragment, - null, - x && h.createElement(oT, { ...g }, x), - r || n - ? h.createElement( - rT, - { isIndented: l && !x }, - r && h.createElement(eT, { ...g, loading: t }, r), - n && h.createElement(nT, { ...g }, n), - ) - : null, - o && h.createElement(tT, { ...g }, o), - ), - ); - }, "ListItem"), - eS = lT, - sT = T.div( - { - minWidth: 180, - overflow: "hidden", - overflowY: "auto", - maxHeight: 15.5 * 32 + 8, - }, - ({ theme: e }) => ({ borderRadius: e.appBorderRadius + 2 }), - ({ theme: e }) => - e.base === "dark" ? { background: e.background.content } : {}, - ), - uT = T.div(({ theme: e }) => ({ - padding: 4, - "& + &": { borderTop: `1px solid ${e.appBorderColor}` }, - })), - cT = m(({ id: e, onClick: t, ...r }) => { - let { active: n, disabled: o, title: a, href: i } = r, - l = b.useCallback( - (s) => t?.(s, { id: e, active: n, disabled: o, title: a, href: i }), - [t, e, n, o, a, i], - ); - return h.createElement(eS, { - id: `list-item-${e}`, - ...r, - ...(t && { onClick: l }), - }); - }, "Item"), - tS = m(({ links: e, LinkWrapper: t, ...r }) => { - let n = Array.isArray(e[0]) ? e : [e], - o = n.some((a) => - a.some((i) => ("icon" in i && i.icon) || ("input" in i && i.input)), - ); - return h.createElement( - sT, - { ...r }, - n - .filter((a) => a.length) - .map((a, i) => - h.createElement( - uT, - { key: a.map((l) => l.id).join(`~${i}~`) }, - a.map((l) => - "content" in l - ? h.createElement(b.Fragment, { key: l.id }, l.content) - : h.createElement(cT, { - key: l.id, - isIndented: o, - LinkWrapper: t, - ...l, - }), - ), - ), - ), - ); - }, "TooltipLinkList"); -vd(); -var Yu = T.div( - { - display: "flex", - whiteSpace: "nowrap", - flexBasis: "auto", - marginLeft: 3, - marginRight: 10, - }, - ({ scrollable: e }) => (e ? { flexShrink: 0 } : {}), - ({ left: e }) => (e ? { "& > *": { marginLeft: 4 } } : {}), - ({ right: e }) => (e ? { gap: 6 } : {}), -); -Yu.displayName = "Side"; -var dT = m( - ({ children: e, className: t, scrollable: r }) => - r - ? h.createElement(Yo, { vertical: !1, className: t }, e) - : h.createElement("div", { className: t }, e), - "UnstyledBar", - ), - ip = T(dT)( - ({ backgroundColor: e, theme: t, scrollable: r = !0 }) => ({ - color: t.barTextColor, - width: "100%", - minHeight: 40, - flexShrink: 0, - scrollbarColor: `${t.barTextColor} ${e || t.barBg}`, - scrollbarWidth: "thin", - overflow: r ? "auto" : "hidden", - overflowY: "hidden", - }), - ({ theme: e, border: t = !1 }) => - t - ? { - boxShadow: `${e.appBorderColor} 0 -1px 0 0 inset`, - background: e.barBg, - } - : {}, - ); -ip.displayName = "Bar"; -var pT = T.div(({ bgColor: e }) => ({ - display: "flex", - justifyContent: "space-between", - position: "relative", - flexWrap: "nowrap", - flexShrink: 0, - height: 40, - backgroundColor: e || "", - })), - wl = m(({ children: e, backgroundColor: t, className: r, ...n }) => { - let [o, a] = b.Children.toArray(e); - return h.createElement( - ip, - { backgroundColor: t, className: `sb-bar ${r}`, ...n }, - h.createElement( - pT, - { bgColor: t }, - h.createElement(Yu, { scrollable: n.scrollable, left: !0 }, o), - a ? h.createElement(Yu, { right: !0 }, a) : null, - ), - ); - }, "FlexBar"); -wl.displayName = "FlexBar"; -var fT = m((e) => typeof e.props.href == "string", "isLink"), - gT = m((e) => typeof e.props.href != "string", "isButton"); -function rS({ children: e, ...t }, r) { - let n = { props: t, ref: r }; - if (fT(n)) return h.createElement("a", { ref: n.ref, ...n.props }, e); - if (gT(n)) - return h.createElement( - "button", - { ref: n.ref, type: "button", ...n.props }, - e, - ); - throw new Error("invalid props"); -} -m(rS, "ForwardRefFunction"); -var nS = b.forwardRef(rS); -nS.displayName = "ButtonOrLink"; -var ca = T(nS, { shouldForwardProp: od })( - { - whiteSpace: "normal", - display: "inline-flex", - overflow: "hidden", - verticalAlign: "top", - justifyContent: "center", - alignItems: "center", - textAlign: "center", - textDecoration: "none", - "&:empty": { display: "none" }, - "&[hidden]": { display: "none" }, - }, - ({ theme: e }) => ({ - padding: "0 15px", - transition: "color 0.2s linear, border-bottom-color 0.2s linear", - height: 40, - lineHeight: "12px", - cursor: "pointer", - background: "transparent", - border: "0 solid transparent", - borderTop: "3px solid transparent", - borderBottom: "3px solid transparent", - fontWeight: "bold", - fontSize: 13, - "&:focus": { outline: "0 none", borderBottomColor: e.barSelectedColor }, - }), - ({ active: e, textColor: t, theme: r }) => - e - ? { - color: t || r.barSelectedColor, - borderBottomColor: r.barSelectedColor, - } - : { - color: t || r.barTextColor, - borderBottomColor: "transparent", - "&:hover": { color: r.barHoverColor }, - }, -); -ca.displayName = "TabButton"; -var mT = T.div(({ theme: e }) => ({ - height: "100%", - display: "flex", - padding: 30, - alignItems: "center", - justifyContent: "center", - flexDirection: "column", - gap: 15, - background: e.background.content, - })), - hT = T.div({ - display: "flex", - flexDirection: "column", - gap: 4, - maxWidth: 415, - }), - yT = T.div(({ theme: e }) => ({ - fontWeight: e.typography.weight.bold, - fontSize: e.typography.size.s2 - 1, - textAlign: "center", - color: e.textColor, - })), - bT = T.div(({ theme: e }) => ({ - fontWeight: e.typography.weight.regular, - fontSize: e.typography.size.s2 - 1, - textAlign: "center", - color: e.textMutedColor, - })), - Sl = m( - ({ title: e, description: t, footer: r }) => - h.createElement( - mT, - null, - h.createElement( - hT, - null, - h.createElement(yT, null, e), - t && h.createElement(bT, null, t), - ), - r, - ), - "EmptyTabContent", - ), - oS = T.div(({ active: e }) => - e ? { display: "block" } : { display: "none" }, - ), - vT = m( - (e) => - b.Children.toArray(e).map( - ({ props: { title: t, id: r, color: n, children: o } }) => { - let a = Array.isArray(o) ? o[0] : o; - return { - title: t, - id: r, - ...(n ? { color: n } : {}), - render: - typeof a == "function" - ? a - : ({ active: i }) => - h.createElement(oS, { active: i, role: "tabpanel" }, a), - }; - }, - ), - "childrenToList", - ); -Bd(); -var xT = T.span(({ theme: e, isActive: t }) => ({ - display: "inline-block", - width: 0, - height: 0, - marginLeft: 8, - color: t ? e.color.secondary : e.color.mediumdark, - borderRight: "3px solid transparent", - borderLeft: "3px solid transparent", - borderTop: "3px solid", - transition: "transform .1s ease-out", - })), - ET = T(ca)( - ({ active: e, theme: t, preActive: r }) => ` - color: ${r || e ? t.barSelectedColor : t.barTextColor}; - .addon-collapsible-icon { - color: ${r || e ? t.barSelectedColor : t.barTextColor}; - } - &:hover { - color: ${t.barHoverColor}; - .addon-collapsible-icon { - color: ${t.barHoverColor}; - } - } - `, - ); -function aS(e) { - let t = b.useRef(), - r = b.useRef(), - n = b.useRef(new Map()), - { width: o = 1 } = op({ ref: t }), - [a, i] = b.useState(e), - [l, s] = b.useState([]), - u = b.useRef(e), - d = b.useCallback( - ({ menuName: c, actions: f }) => { - let g = l.some(({ active: v }) => v), - [y, x] = b.useState(!1); - return h.createElement( - h.Fragment, - null, - h.createElement( - Si, - { - interactive: !0, - visible: y, - onVisibleChange: x, - placement: "bottom", - delayHide: 100, - tooltip: h.createElement(tS, { - links: l.map(({ title: v, id: C, color: w, active: E }) => ({ - id: C, - title: v, - color: w, - active: E, - onClick: m(($) => { - ($.preventDefault(), f.onSelect(C)); - }, "onClick"), - })), - }), - }, - h.createElement( - ET, - { - id: "addons-menu-button", - ref: r, - active: g, - preActive: y, - style: { visibility: l.length ? "visible" : "hidden" }, - "aria-hidden": !l.length, - className: "tabbutton", - type: "button", - role: "tab", - }, - c, - h.createElement(xT, { - className: "addon-collapsible-icon", - isActive: g || y, - }), - ), - ), - l.map(({ title: v, id: C, color: w }, E) => { - let $ = `index-${E}`; - return h.createElement( - ca, - { - id: `tabbutton-${Wi(C) ?? $}`, - style: { visibility: "hidden" }, - "aria-hidden": !0, - tabIndex: -1, - ref: (A) => { - n.current.set(C, A); - }, - className: "tabbutton", - type: "button", - key: C, - textColor: w, - role: "tab", - }, - v, - ); - }), - ); - }, - [l], - ), - p = b.useCallback(() => { - if (!t.current || !r.current) return; - let { x: c, width: f } = t.current.getBoundingClientRect(), - { width: g } = r.current.getBoundingClientRect(), - y = l.length ? c + f - g : c + f, - x = [], - v = 0, - C = e.filter((w) => { - let { id: E } = w, - $ = n.current.get(E), - { width: A = 0 } = $?.getBoundingClientRect() || {}, - S = c + v + A > y; - return ((!S || !$) && x.push(w), (v += A), S); - }); - (x.length !== a.length || u.current !== e) && - (i(x), s(C), (u.current = e)); - }, [l.length, e, a]); - return ( - b.useLayoutEffect(p, [p, o]), - { - tabRefs: n, - addonsRef: r, - tabBarRef: t, - visibleList: a, - invisibleList: l, - AddonTab: d, - } - ); -} -m(aS, "useList"); -var wT = - "/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */", - ST = T.div( - ({ theme: e, bordered: t }) => - t - ? { - backgroundClip: "padding-box", - border: `1px solid ${e.appBorderColor}`, - borderRadius: e.appBorderRadius, - overflow: "hidden", - boxSizing: "border-box", - } - : {}, - ({ absolute: e }) => - e - ? { - width: "100%", - height: "100%", - boxSizing: "border-box", - display: "flex", - flexDirection: "column", - } - : { display: "block" }, - ), - lp = T.div({ - overflow: "hidden", - "&:first-of-type": { marginLeft: -3 }, - whiteSpace: "nowrap", - flexGrow: 1, - }); -lp.displayName = "TabBar"; -var CT = T.div( - { - display: "block", - position: "relative", - container: "tab-content / inline-size", - }, - ({ theme: e }) => ({ - fontSize: e.typography.size.s2 - 1, - background: e.background.content, - }), - ({ bordered: e, theme: t }) => - e - ? { - borderRadius: `0 0 ${t.appBorderRadius - 1}px ${t.appBorderRadius - 1}px`, - } - : {}, - ({ absolute: e, bordered: t }) => - e - ? { - height: `calc(100% - ${t ? 42 : 40}px)`, - position: "absolute", - left: 0 + (t ? 1 : 0), - right: 0 + (t ? 1 : 0), - bottom: 0 + (t ? 1 : 0), - top: 40 + (t ? 1 : 0), - overflow: "auto", - [`& > *:first-child${wT}`]: { - position: "absolute", - left: 0 + (t ? 1 : 0), - right: 0 + (t ? 1 : 0), - bottom: 0 + (t ? 1 : 0), - top: 0 + (t ? 1 : 0), - height: `calc(100% - ${t ? 2 : 0}px)`, - overflow: "auto", - }, - } - : {}, - ), - $T = m( - ({ active: e, render: t, children: r }) => - h.createElement(oS, { active: e }, t ? t() : r), - "TabWrapper", - ), - iS = class extends b.Component { - constructor(t) { - (super(t), (this.state = { hasError: !1 })); - } - static getDerivedStateFromError() { - return { hasError: !0 }; - } - componentDidCatch(t, r) { - (console.error("Error rendering addon panel"), - console.error(t), - console.error(r.componentStack)); - } - render() { - return this.state.hasError && this.props.active - ? h.createElement(Sl, { - title: "This addon has errors", - description: - "Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook.", - }) - : this.props.children; - } - }; -m(iS, "TabErrorBoundary"); -var AT = iS, - sp = b.memo( - ({ - children: e, - selected: t = null, - actions: r, - absolute: n = !1, - bordered: o = !1, - tools: a = null, - backgroundColor: i, - id: l = null, - menuName: s = "Tabs", - emptyState: u, - showToolsWhenEmpty: d, - }) => { - let p = b.useMemo( - () => - vT(e).map((v, C) => ({ ...v, active: t ? v.id === t : C === 0 })), - [e, t], - ), - { visibleList: c, tabBarRef: f, tabRefs: g, AddonTab: y } = aS(p), - x = u ?? h.createElement(Sl, { title: "Nothing found" }); - return !d && p.length === 0 - ? x - : h.createElement( - ST, - { absolute: n, bordered: o, id: l }, - h.createElement( - wl, - { scrollable: !1, border: !0, backgroundColor: i }, - h.createElement( - lp, - { style: { whiteSpace: "normal" }, ref: f, role: "tablist" }, - c.map(({ title: v, id: C, active: w, color: E }, $) => { - let A = `index-${$}`; - return h.createElement( - ca, - { - id: `tabbutton-${Wi(C) ?? A}`, - ref: (S) => { - g.current.set(C, S); - }, - className: `tabbutton ${w ? "tabbutton-active" : ""}`, - type: "button", - key: C, - active: w, - textColor: E, - onClick: (S) => { - (S.preventDefault(), r.onSelect(C)); - }, - role: "tab", - }, - typeof v == "function" ? h.createElement("title", null) : v, - ); - }), - h.createElement(y, { menuName: s, actions: r }), - ), - a, - ), - h.createElement( - CT, - { id: "panel-tab-content", bordered: o, absolute: n }, - p.length - ? p.map(({ id: v, active: C, render: w }) => - h.createElement( - AT, - { key: v, active: C }, - h.createElement(w, { active: C }, null), - ), - ) - : x, - ), - ); - }, - ); -sp.displayName = "Tabs"; -var Ku = class extends b.Component { - constructor(t) { - (super(t), - (this.handlers = { - onSelect: m((r) => this.setState({ selected: r }), "onSelect"), - }), - (this.state = { selected: t.initial })); - } - render() { - let { - bordered: t = !1, - absolute: r = !1, - children: n, - backgroundColor: o, - menuName: a, - } = this.props, - { selected: i } = this.state; - return h.createElement( - sp, - { - bordered: t, - absolute: r, - selected: i, - backgroundColor: o, - menuName: a, - actions: this.handlers, - }, - n, - ); - } -}; -(m(Ku, "TabsState"), - (Ku.defaultProps = { - children: [], - initial: null, - absolute: !1, - bordered: !1, - backgroundColor: "", - menuName: void 0, - })); -var lS = Ku, - up = T.span( - ({ theme: e }) => ({ - width: 1, - height: 20, - background: e.appBorderColor, - marginLeft: 2, - marginRight: 2, - }), - ({ force: e }) => (e ? {} : { "& + &": { display: "none" } }), - ); -up.displayName = "Separator"; -var DT = m( - (e) => - e.reduce( - (t, r, n) => - r - ? h.createElement( - b.Fragment, - { key: r.id || r.key || `f-${n}` }, - t, - n > 0 ? h.createElement(up, { key: `s-${n}` }) : null, - r.render() || r, - ) - : t, - null, - ), - "interleaveSeparators", - ), - kT = m((e) => { - let t = b.useRef(); - return ( - b.useEffect(() => { - t.current = e; - }, [e]), - t.current - ); - }, "usePrevious"), - OT = m((e, t) => { - let r = kT(t); - return e ? t : r; - }, "useUpdate"), - FT = m( - ({ active: e, children: t }) => - h.createElement("div", { hidden: !e }, OT(e, t)), - "AddonPanel", - ), - _T = m( - ({ alt: e, ...t }) => - h.createElement( - "svg", - { - width: "200px", - height: "40px", - viewBox: "0 0 200 40", - ...t, - role: "img", - }, - e ? h.createElement("title", null, e) : null, - h.createElement( - "defs", - null, - h.createElement("path", { - d: "M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z", - id: "a", - }), - ), - h.createElement( - "g", - { fill: "none", fillRule: "evenodd" }, - h.createElement("path", { - d: "M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z", - fill: "currentColor", - }), - h.createElement( - "mask", - { id: "b", fill: "#fff" }, - h.createElement("use", { xlinkHref: "#a" }), - ), - h.createElement("use", { - fill: "#FF4785", - fillRule: "nonzero", - xlinkHref: "#a", - }), - h.createElement("path", { - d: "M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z", - fill: "#FFF", - fillRule: "nonzero", - mask: "url(#b)", - }), - ), - ), - "StorybookLogo", - ), - TT = m( - (e) => - h.createElement( - "svg", - { viewBox: "0 0 64 64", ...e }, - h.createElement("title", null, "Storybook icon"), - h.createElement( - "g", - { - id: "Artboard", - stroke: "none", - strokeWidth: "1", - fill: "none", - fillRule: "evenodd", - }, - h.createElement("path", { - d: "M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z", - id: "path-1", - fill: "#FF4785", - fillRule: "nonzero", - }), - h.createElement("path", { - d: "M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z", - id: "path9_fill-path", - fill: "#FFFFFF", - fillRule: "nonzero", - }), - h.createElement("path", { - d: "M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z", - id: "Path", - fill: "#FFFFFF", - }), - ), - ), - "StorybookIcon", - ), - RT = _t` - from { - transform: rotate(0deg); - } - to { - transform: rotate(360deg); - } -`, - PT = T.div(({ size: e = 32 }) => ({ - borderRadius: "50%", - cursor: "progress", - display: "inline-block", - overflow: "hidden", - position: "absolute", - transition: "all 200ms ease-out", - verticalAlign: "top", - top: "50%", - left: "50%", - marginTop: -(e / 2), - marginLeft: -(e / 2), - height: e, - width: e, - zIndex: 4, - borderWidth: 2, - borderStyle: "solid", - borderColor: "rgba(97, 97, 97, 0.29)", - borderTopColor: "rgb(100,100,100)", - animation: `${RT} 0.7s linear infinite`, - mixBlendMode: "difference", - })), - Sm = T.div({ - position: "absolute", - display: "flex", - flexDirection: "column", - justifyContent: "center", - alignItems: "center", - width: "100%", - height: "100%", - }), - IT = T.div(({ theme: e }) => ({ - position: "relative", - width: "80%", - marginBottom: "0.75rem", - maxWidth: 300, - height: 5, - borderRadius: 5, - background: pt(0.8, e.color.secondary), - overflow: "hidden", - cursor: "progress", - })), - LT = T.div(({ theme: e }) => ({ - position: "absolute", - top: 0, - left: 0, - height: "100%", - background: e.color.secondary, - })), - Cm = T.div(({ theme: e }) => ({ - minHeight: "2em", - fontSize: `${e.typography.size.s1}px`, - color: e.textMutedColor, - })), - BT = T(_F)(({ theme: e }) => ({ - width: 20, - height: 20, - marginBottom: "0.5rem", - color: e.textMutedColor, - })), - NT = _t` - from { content: "..." } - 33% { content: "." } - 66% { content: ".." } - to { content: "..." } -`, - jT = T.span({ - "&::after": { - content: "'...'", - animation: `${NT} 1s linear infinite`, - animationDelay: "1s", - display: "inline-block", - width: "1em", - height: "auto", - }, - }), - sS = m(({ progress: e, error: t, size: r, ...n }) => { - if (t) - return h.createElement( - Sm, - { - "aria-label": t.toString(), - "aria-live": "polite", - role: "status", - ...n, - }, - h.createElement(BT, null), - h.createElement(Cm, null, t.message), - ); - if (e) { - let { value: o, modules: a } = e, - { message: i } = e; - return ( - a && (i += ` ${a.complete} / ${a.total} modules`), - h.createElement( - Sm, - { - "aria-label": "Content is loading...", - "aria-live": "polite", - "aria-valuemin": 0, - "aria-valuemax": 100, - "aria-valuenow": o * 100, - "aria-valuetext": i, - role: "progressbar", - ...n, - }, - h.createElement( - IT, - null, - h.createElement(LT, { style: { width: `${o * 100}%` } }), - ), - h.createElement( - Cm, - null, - i, - o < 1 && h.createElement(jT, { key: i }), - ), - ) - ); - } - return h.createElement(PT, { - "aria-label": "Content is loading...", - "aria-live": "polite", - role: "status", - size: r, - ...n, - }); - }, "Loader"), - ys = "http://www.w3.org/2000/svg", - MT = _t({ - "0%": { transform: "rotate(0deg)" }, - "100%": { transform: "rotate(360deg)" }, - }), - $m = T.div(({ size: e }) => ({ - display: "inline-flex", - alignItems: "center", - justifyContent: "center", - position: "relative", - minWidth: e, - minHeight: e, - })), - bs = T.svg( - ({ size: e, width: t }) => ({ - position: "absolute", - width: `${e}px!important`, - height: `${e}px!important`, - transform: "rotate(-90deg)", - circle: { - r: (e - Math.ceil(t)) / 2, - cx: e / 2, - cy: e / 2, - opacity: 0.15, - fill: "transparent", - stroke: "currentColor", - strokeWidth: t, - strokeLinecap: "round", - strokeDasharray: Math.PI * (e - Math.ceil(t)), - }, - }), - ({ progress: e }) => e && { circle: { opacity: 0.75 } }, - ({ spinner: e }) => - e && { animation: `${MT} 1s linear infinite`, circle: { opacity: 0.25 } }, - ), - zT = m( - ({ - percentage: e = void 0, - running: t = !0, - size: r = 24, - width: n = 1.5, - children: o = null, - ...a - }) => - typeof e == "number" - ? h.createElement( - $m, - { size: r, ...a }, - o, - h.createElement( - bs, - { size: r, width: n, xmlns: ys }, - h.createElement("circle", null), - ), - t && - h.createElement( - bs, - { size: r, width: n, xmlns: ys, spinner: !0 }, - h.createElement("circle", { - strokeDashoffset: - Math.PI * (r - Math.ceil(n)) * (1 - e / 100), - }), - ), - h.createElement( - bs, - { size: r, width: n, xmlns: ys, progress: !0 }, - h.createElement("circle", { - strokeDashoffset: Math.PI * (r - Math.ceil(n)) * (1 - e / 100), - }), - ), - ) - : h.createElement($m, { size: r, ...a }, o), - "ProgressSpinner", - ); -function uS(e) { - let t = {}, - r = e.split("&"); - for (let n = 0; n < r.length; n++) { - let o = r[n].split("="); - t[decodeURIComponent(o[0])] = decodeURIComponent(o[1] || ""); - } - return t; -} -m(uS, "parseQuery"); -var cS = m((e, t, r = {}) => { - let [n, o] = e.split("?"), - a = o ? { ...uS(o), ...r, id: t } : { ...r, id: t }; - return `${n}?${Object.entries(a) - .map((i) => `${i[0]}=${i[1]}`) - .join("&")}`; - }, "getStoryHref"), - HT = T.pre` - line-height: 18px; - padding: 11px 1rem; - white-space: pre-wrap; - background: rgba(0, 0, 0, 0.05); - color: ${K.darkest}; - border-radius: 3px; - margin: 1rem 0; - width: 100%; - display: block; - overflow: hidden; - font-family: ${zt.fonts.mono}; - font-size: ${zt.size.s2 - 1}px; -`, - UT = m( - ({ code: e, ...t }) => - h.createElement(HT, { id: "clipboard-code", ...t }, e), - "ClipboardCode", - ), - dS = SE, - pS = {}; -Object.keys(SE).forEach((e) => { - pS[e] = b.forwardRef((t, r) => b.createElement(e, { ...t, ref: r })); -}); -const WT = Object.freeze( - Object.defineProperty( - { - __proto__: null, - A: aE, - get ActionBar() { - return al; - }, - AddonPanel: FT, - Badge: FF, - Bar: ip, - Blockquote: iE, - Button: _r, - ClipboardCode: UT, - Code: zd, - DL: lE, - Div: sE, - DocumentWrapper: jF, - EmptyTabContent: Sl, - ErrorFormatter: Gw, - FlexBar: wl, - Form: uo, - H1: uE, - H2: Hd, - H3: Ud, - H4: cE, - H5: dE, - H6: pE, - HR: fE, - IconButton: $r, - Img: gE, - LI: mE, - Link: Jn, - ListItem: eS, - Loader: sS, - Modal: Z_, - OL: hE, - P: yE, - Placeholder: o4, - Pre: bE, - ProgressSpinner: zT, - ResetWrapper: Md, - get ScrollArea() { - return Yo; - }, - Separator: up, - Spaced: e4, - Span: vE, - StorybookIcon: TT, - StorybookLogo: _T, - SyntaxHighlighter: ml, - TT: xE, - TabBar: lp, - TabButton: ca, - TabWrapper: $T, - Table: EE, - Tabs: sp, - TabsState: lS, - TooltipLinkList: tS, - TooltipMessage: X4, - TooltipNote: J4, - UL: wE, - WithTooltip: U4, - WithTooltipPure: Qw, - Zoom: qw, - codeCommon: cr, - components: dS, - createCopyToClipboardFunction: vi, - getStoryHref: cS, - interleaveSeparators: DT, - nameSpaceClassNames: ve, - resetComponents: pS, - withReset: we, - }, - Symbol.toStringTag, - { value: "Module" }, - ), -); -var VT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z", - fill: e, - }), - b.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z", - fill: e, - }), - ), - ), - qT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z", - fill: e, - }), - b.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z", - fill: e, - }), - ), - ), - GT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z", - fill: e, - }), - ), - ), - YT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z", - fill: e, - }), - b.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z", - fill: e, - }), - ), - ), - KT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z", - fill: e, - }), - b.createElement("path", { - d: "M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z", - fill: e, - }), - ), - ), - Xu = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z", - fill: e, - }), - b.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z", - fill: e, - }), - ), - ), - MN = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z", - fill: e, - }), - ), - ), - XT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z", - fill: e, - }), - b.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z", - fill: e, - }), - ), - ), - ZT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z", - fill: e, - }), - b.createElement("path", { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z", - fill: e, - }), - ), - ), - JT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z", - fill: e, - }), - b.createElement("path", { - d: "M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z", - fill: e, - }), - ), - ), - QT = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z", - fill: e, - }), - ), - ), - eR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z", - fill: e, - }), - ), - ), - tR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z", - fill: e, - }), - ), - ), - fS = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z", - fill: e, - }), - ), - ), - rR = b.forwardRef(({ color: e = "currentColor", size: t = 14, ...r }, n) => - b.createElement( - "svg", - { - width: t, - height: t, - viewBox: "0 0 14 14", - fill: "none", - xmlns: "http://www.w3.org/2000/svg", - ref: n, - ...r, - }, - b.createElement("path", { - d: "M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z", - fill: e, - }), - ), - ); -function nR(e) { - for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r]; - var n = Array.from(typeof e == "string" ? [e] : e); - n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, ""); - var o = n.reduce(function (l, s) { - var u = s.match(/\n([\t ]+|(?!\s).)/g); - return u - ? l.concat( - u.map(function (d) { - var p, c; - return (c = - (p = d.match(/[\t ]/g)) === null || p === void 0 - ? void 0 - : p.length) !== null && c !== void 0 - ? c - : 0; - }), - ) - : l; - }, []); - if (o.length) { - var a = new RegExp( - ` -[ ]{` + - Math.min.apply(Math, o) + - "}", - "g", - ); - n = n.map(function (l) { - return l.replace( - a, - ` -`, - ); - }); - } - n[0] = n[0].replace(/^\r?\n/, ""); - var i = n[0]; - return ( - t.forEach(function (l, s) { - var u = i.match(/(?:^|\n)( *)$/), - d = u ? u[1] : "", - p = l; - (typeof l == "string" && - l.includes(` -`) && - (p = String(l) - .split( - ` -`, - ) - .map(function (c, f) { - return f === 0 ? c : "" + d + c; - }).join(` -`)), - (i += p + n[s + 1])); - }), - i - ); -} -const { - deprecate: oR, - once: aR, - logger: cp, - } = __STORYBOOK_MODULE_CLIENT_LOGGER__, - { - NAVIGATE_URL: gS, - STORY_ARGS_UPDATED: Am, - UPDATE_STORY_ARGS: iR, - RESET_STORY_ARGS: lR, - GLOBALS_UPDATED: Dm, - } = __STORYBOOK_MODULE_CORE_EVENTS__, - { - filterArgTypes: km, - composeConfigs: zN, - Preview: HN, - DocsContext: UN, - } = __STORYBOOK_MODULE_PREVIEW_API__, - { Channel: WN } = __STORYBOOK_MODULE_CHANNELS__; -var sR = aD({ - "../../node_modules/memoizerific/memoizerific.js"(e, t) { - (function (r) { - if (typeof e == "object" && typeof t < "u") t.exports = r(); - else if (typeof define == "function" && define.amd) define([], r); - else { - var n; - (typeof window < "u" - ? (n = window) - : typeof global < "u" - ? (n = global) - : typeof self < "u" - ? (n = self) - : (n = this), - (n.memoizerific = r())); - } - })(function () { - return (function r(n, o, a) { - function i(u, d) { - if (!o[u]) { - if (!n[u]) { - var p = typeof ya == "function" && ya; - if (!d && p) return p(u, !0); - if (l) return l(u, !0); - var c = new Error("Cannot find module '" + u + "'"); - throw ((c.code = "MODULE_NOT_FOUND"), c); - } - var f = (o[u] = { exports: {} }); - n[u][0].call( - f.exports, - function (g) { - var y = n[u][1][g]; - return i(y || g); - }, - f, - f.exports, - r, - n, - o, - a, - ); - } - return o[u].exports; - } - for (var l = typeof ya == "function" && ya, s = 0; s < a.length; s++) - i(a[s]); - return i; - })( - { - 1: [ - function (r, n, o) { - n.exports = function (a) { - if (typeof Map != "function" || a) { - var i = r("./similar"); - return new i(); - } else return new Map(); - }; - }, - { "./similar": 2 }, - ], - 2: [ - function (r, n, o) { - function a() { - return ( - (this.list = []), - (this.lastItem = void 0), - (this.size = 0), - this - ); - } - ((a.prototype.get = function (i) { - var l; - if (this.lastItem && this.isEqual(this.lastItem.key, i)) - return this.lastItem.val; - if (((l = this.indexOf(i)), l >= 0)) - return ((this.lastItem = this.list[l]), this.list[l].val); - }), - (a.prototype.set = function (i, l) { - var s; - return this.lastItem && this.isEqual(this.lastItem.key, i) - ? ((this.lastItem.val = l), this) - : ((s = this.indexOf(i)), - s >= 0 - ? ((this.lastItem = this.list[s]), - (this.list[s].val = l), - this) - : ((this.lastItem = { key: i, val: l }), - this.list.push(this.lastItem), - this.size++, - this)); - }), - (a.prototype.delete = function (i) { - var l; - if ( - (this.lastItem && - this.isEqual(this.lastItem.key, i) && - (this.lastItem = void 0), - (l = this.indexOf(i)), - l >= 0) - ) - return (this.size--, this.list.splice(l, 1)[0]); - }), - (a.prototype.has = function (i) { - var l; - return this.lastItem && this.isEqual(this.lastItem.key, i) - ? !0 - : ((l = this.indexOf(i)), - l >= 0 ? ((this.lastItem = this.list[l]), !0) : !1); - }), - (a.prototype.forEach = function (i, l) { - var s; - for (s = 0; s < this.size; s++) - i.call(l || this, this.list[s].val, this.list[s].key, this); - }), - (a.prototype.indexOf = function (i) { - var l; - for (l = 0; l < this.size; l++) - if (this.isEqual(this.list[l].key, i)) return l; - return -1; - }), - (a.prototype.isEqual = function (i, l) { - return i === l || (i !== i && l !== l); - }), - (n.exports = a)); - }, - {}, - ], - 3: [ - function (r, n, o) { - var a = r("map-or-similar"); - n.exports = function (u) { - var d = new a(!1), - p = []; - return function (c) { - var f = function () { - var g = d, - y, - x, - v = arguments.length - 1, - C = Array(v + 1), - w = !0, - E; - if ((f.numArgs || f.numArgs === 0) && f.numArgs !== v + 1) - throw new Error( - "Memoizerific functions should always be called with the same number of arguments", - ); - for (E = 0; E < v; E++) { - if ( - ((C[E] = { cacheItem: g, arg: arguments[E] }), - g.has(arguments[E])) - ) { - g = g.get(arguments[E]); - continue; - } - ((w = !1), - (y = new a(!1)), - g.set(arguments[E], y), - (g = y)); - } - return ( - w && - (g.has(arguments[v]) - ? (x = g.get(arguments[v])) - : (w = !1)), - w || - ((x = c.apply(null, arguments)), - g.set(arguments[v], x)), - u > 0 && - ((C[v] = { cacheItem: g, arg: arguments[v] }), - w ? i(p, C) : p.push(C), - p.length > u && l(p.shift())), - (f.wasMemoized = w), - (f.numArgs = v + 1), - x - ); - }; - return ( - (f.limit = u), - (f.wasMemoized = !1), - (f.cache = d), - (f.lru = p), - f - ); - }; - }; - function i(u, d) { - var p = u.length, - c = d.length, - f, - g, - y; - for (g = 0; g < p; g++) { - for (f = !0, y = 0; y < c; y++) - if (!s(u[g][y].arg, d[y].arg)) { - f = !1; - break; - } - if (f) break; - } - u.push(u.splice(g, 1)[0]); - } - function l(u) { - var d = u.length, - p = u[d - 1], - c, - f; - for ( - p.cacheItem.delete(p.arg), f = d - 2; - f >= 0 && - ((p = u[f]), (c = p.cacheItem.get(p.arg)), !c || !c.size); - f-- - ) - p.cacheItem.delete(p.arg); - } - function s(u, d) { - return u === d || (u !== u && d !== d); - } - }, - { "map-or-similar": 1 }, - ], - }, - {}, - [3], - )(3); - }); - }, -}); -function et() { - return ( - (et = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t]; - for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]); - } - return e; - }), - et.apply(null, arguments) - ); -} -function uR(e) { - if (e === void 0) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called", - ); - return e; -} -function Jo(e, t) { - return ( - (Jo = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function (r, n) { - return ((r.__proto__ = n), r); - }), - Jo(e, t) - ); -} -function cR(e, t) { - ((e.prototype = Object.create(t.prototype)), - (e.prototype.constructor = e), - Jo(e, t)); -} -function Zu(e) { - return ( - (Zu = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function (t) { - return t.__proto__ || Object.getPrototypeOf(t); - }), - Zu(e) - ); -} -function dR(e) { - try { - return Function.toString.call(e).indexOf("[native code]") !== -1; - } catch { - return typeof e == "function"; - } -} -function mS() { - try { - var e = !Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}), - ); - } catch {} - return (mS = function () { - return !!e; - })(); -} -function pR(e, t, r) { - if (mS()) return Reflect.construct.apply(null, arguments); - var n = [null]; - n.push.apply(n, t); - var o = new (e.bind.apply(e, n))(); - return (r && Jo(o, r.prototype), o); -} -function Ju(e) { - var t = typeof Map == "function" ? new Map() : void 0; - return ( - (Ju = function (r) { - if (r === null || !dR(r)) return r; - if (typeof r != "function") - throw new TypeError( - "Super expression must either be null or a function", - ); - if (t !== void 0) { - if (t.has(r)) return t.get(r); - t.set(r, n); - } - function n() { - return pR(r, arguments, Zu(this).constructor); - } - return ( - (n.prototype = Object.create(r.prototype, { - constructor: { - value: n, - enumerable: !1, - writable: !0, - configurable: !0, - }, - })), - Jo(n, r) - ); - }), - Ju(e) - ); -} -var fR = { - 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). - -`, - 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). - -`, - 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. - -`, - 4: `Couldn't generate valid rgb string from %s, it returned %s. - -`, - 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. - -`, - 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). - -`, - 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). - -`, - 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. - -`, - 9: `Please provide a number of steps to the modularScale helper. - -`, - 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`, - 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" - -`, - 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. - -`, - 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. - -`, - 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. - -`, - 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. - -`, - 16: `You must provide a template to this method. - -`, - 17: `You passed an unsupported selector state to this method. - -`, - 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. - -`, - 19: `fromSize and toSize must be provided as stringified numbers with the same units. - -`, - 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`, - 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", - 23: `fontFace expects a name of a font-family. - -`, - 24: `fontFace expects either the path to the font file(s) or a name of a local copy. - -`, - 25: `fontFace expects localFonts to be an array. - -`, - 26: `fontFace expects fileFormats to be an array. - -`, - 27: `radialGradient requries at least 2 color-stops to properly render. - -`, - 28: `Please supply a filename to retinaImage() as the first argument. - -`, - 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`, - 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation - -`, - 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) -To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') - -`, - 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation - -`, - 34: `borderRadius expects a radius value as a string or number as the second argument. - -`, - 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`, - 36: `Property must be a string value. - -`, - 37: `Syntax Error at %s. - -`, - 38: `Formula contains a function that needs parentheses at %s. - -`, - 39: `Formula is missing closing parenthesis at %s. - -`, - 40: `Formula has too many closing parentheses at %s. - -`, - 41: `All values in a formula must have the same unit or be unitless. - -`, - 42: `Please provide a number of steps to the modularScale helper. - -`, - 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. - -`, - 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. - -`, - 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. - -`, - 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. - -`, - 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. - -`, - 48: `fromSize and toSize must be provided as stringified numbers with the same units. - -`, - 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. - -`, - 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. - -`, - 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. - -`, - 52: `fontFace expects either the path to the font file(s) or a name of a local copy. - -`, - 53: `fontFace expects localFonts to be an array. - -`, - 54: `fontFace expects fileFormats to be an array. - -`, - 55: `fontFace expects a name of a font-family. - -`, - 56: `linearGradient requries at least 2 color-stops to properly render. - -`, - 57: `radialGradient requries at least 2 color-stops to properly render. - -`, - 58: `Please supply a filename to retinaImage() as the first argument. - -`, - 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. - -`, - 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", - 61: `Property must be a string value. - -`, - 62: `borderRadius expects a radius value as a string or number as the second argument. - -`, - 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. - -`, - 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. - -`, - 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). - -`, - 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. - -`, - 67: `You must provide a template to this method. - -`, - 68: `You passed an unsupported selector state to this method. - -`, - 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. - -`, - 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. - -`, - 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. - -`, - 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. - -`, - 73: `Please provide a valid CSS variable. - -`, - 74: `CSS variable not found and no default was provided. - -`, - 75: `important requires a valid style object, got a %s instead. - -`, - 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. - -`, - 77: `remToPx expects a value in "rem" but you provided it in "%s". - -`, - 78: `base must be set in "px" or "%" but you set it in "%s". -`, -}; -function gR() { - for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) - t[r] = arguments[r]; - var n = t[0], - o = [], - a; - for (a = 1; a < t.length; a += 1) o.push(t[a]); - return ( - o.forEach(function (i) { - n = n.replace(/%[a-z]/, i); - }), - n - ); -} -var Ht = (function (e) { - cR(t, e); - function t(r) { - for ( - var n, o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), i = 1; - i < o; - i++ - ) - a[i - 1] = arguments[i]; - return ( - (n = e.call(this, gR.apply(void 0, [fR[r]].concat(a))) || this), - uR(n) - ); - } - return t; -})(Ju(Error)); -function vs(e) { - return Math.round(e * 255); -} -function mR(e, t, r) { - return vs(e) + "," + vs(t) + "," + vs(r); -} -function Di(e, t, r, n) { - if ((n === void 0 && (n = mR), t === 0)) return n(r, r, r); - var o = (((e % 360) + 360) % 360) / 60, - a = (1 - Math.abs(2 * r - 1)) * t, - i = a * (1 - Math.abs((o % 2) - 1)), - l = 0, - s = 0, - u = 0; - o >= 0 && o < 1 - ? ((l = a), (s = i)) - : o >= 1 && o < 2 - ? ((l = i), (s = a)) - : o >= 2 && o < 3 - ? ((s = a), (u = i)) - : o >= 3 && o < 4 - ? ((s = i), (u = a)) - : o >= 4 && o < 5 - ? ((l = i), (u = a)) - : o >= 5 && o < 6 && ((l = a), (u = i)); - var d = r - a / 2, - p = l + d, - c = s + d, - f = u + d; - return n(p, c, f); -} -var Om = { - aliceblue: "f0f8ff", - antiquewhite: "faebd7", - aqua: "00ffff", - aquamarine: "7fffd4", - azure: "f0ffff", - beige: "f5f5dc", - bisque: "ffe4c4", - black: "000", - blanchedalmond: "ffebcd", - blue: "0000ff", - blueviolet: "8a2be2", - brown: "a52a2a", - burlywood: "deb887", - cadetblue: "5f9ea0", - chartreuse: "7fff00", - chocolate: "d2691e", - coral: "ff7f50", - cornflowerblue: "6495ed", - cornsilk: "fff8dc", - crimson: "dc143c", - cyan: "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: "789", - lightslategrey: "789", - lightsteelblue: "b0c4de", - lightyellow: "ffffe0", - lime: "0f0", - limegreen: "32cd32", - linen: "faf0e6", - magenta: "f0f", - 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: "639", - red: "f00", - 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", - steelblue: "4682b4", - tan: "d2b48c", - teal: "008080", - thistle: "d8bfd8", - tomato: "ff6347", - turquoise: "40e0d0", - violet: "ee82ee", - wheat: "f5deb3", - white: "fff", - whitesmoke: "f5f5f5", - yellow: "ff0", - yellowgreen: "9acd32", -}; -function hR(e) { - if (typeof e != "string") return e; - var t = e.toLowerCase(); - return Om[t] ? "#" + Om[t] : e; -} -var yR = /^#[a-fA-F0-9]{6}$/, - bR = /^#[a-fA-F0-9]{8}$/, - vR = /^#[a-fA-F0-9]{3}$/, - xR = /^#[a-fA-F0-9]{4}$/, - xs = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, - ER = - /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, - wR = - /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, - SR = - /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i; -function to(e) { - if (typeof e != "string") throw new Ht(3); - var t = hR(e); - if (t.match(yR)) - return { - red: parseInt("" + t[1] + t[2], 16), - green: parseInt("" + t[3] + t[4], 16), - blue: parseInt("" + t[5] + t[6], 16), - }; - if (t.match(bR)) { - var r = parseFloat((parseInt("" + t[7] + t[8], 16) / 255).toFixed(2)); - return { - red: parseInt("" + t[1] + t[2], 16), - green: parseInt("" + t[3] + t[4], 16), - blue: parseInt("" + t[5] + t[6], 16), - alpha: r, - }; - } - if (t.match(vR)) - return { - red: parseInt("" + t[1] + t[1], 16), - green: parseInt("" + t[2] + t[2], 16), - blue: parseInt("" + t[3] + t[3], 16), - }; - if (t.match(xR)) { - var n = parseFloat((parseInt("" + t[4] + t[4], 16) / 255).toFixed(2)); - return { - red: parseInt("" + t[1] + t[1], 16), - green: parseInt("" + t[2] + t[2], 16), - blue: parseInt("" + t[3] + t[3], 16), - alpha: n, - }; - } - var o = xs.exec(t); - if (o) - return { - red: parseInt("" + o[1], 10), - green: parseInt("" + o[2], 10), - blue: parseInt("" + o[3], 10), - }; - var a = ER.exec(t.substring(0, 50)); - if (a) - return { - red: parseInt("" + a[1], 10), - green: parseInt("" + a[2], 10), - blue: parseInt("" + a[3], 10), - alpha: - parseFloat("" + a[4]) > 1 - ? parseFloat("" + a[4]) / 100 - : parseFloat("" + a[4]), - }; - var i = wR.exec(t); - if (i) { - var l = parseInt("" + i[1], 10), - s = parseInt("" + i[2], 10) / 100, - u = parseInt("" + i[3], 10) / 100, - d = "rgb(" + Di(l, s, u) + ")", - p = xs.exec(d); - if (!p) throw new Ht(4, t, d); - return { - red: parseInt("" + p[1], 10), - green: parseInt("" + p[2], 10), - blue: parseInt("" + p[3], 10), - }; - } - var c = SR.exec(t.substring(0, 50)); - if (c) { - var f = parseInt("" + c[1], 10), - g = parseInt("" + c[2], 10) / 100, - y = parseInt("" + c[3], 10) / 100, - x = "rgb(" + Di(f, g, y) + ")", - v = xs.exec(x); - if (!v) throw new Ht(4, t, x); - return { - red: parseInt("" + v[1], 10), - green: parseInt("" + v[2], 10), - blue: parseInt("" + v[3], 10), - alpha: - parseFloat("" + c[4]) > 1 - ? parseFloat("" + c[4]) / 100 - : parseFloat("" + c[4]), - }; - } - throw new Ht(5); -} -function CR(e) { - var t = e.red / 255, - r = e.green / 255, - n = e.blue / 255, - o = Math.max(t, r, n), - a = Math.min(t, r, n), - i = (o + a) / 2; - if (o === a) - return e.alpha !== void 0 - ? { hue: 0, saturation: 0, lightness: i, alpha: e.alpha } - : { hue: 0, saturation: 0, lightness: i }; - var l, - s = o - a, - u = i > 0.5 ? s / (2 - o - a) : s / (o + a); - switch (o) { - case t: - l = (r - n) / s + (r < n ? 6 : 0); - break; - case r: - l = (n - t) / s + 2; - break; - default: - l = (t - r) / s + 4; - break; - } - return ( - (l *= 60), - e.alpha !== void 0 - ? { hue: l, saturation: u, lightness: i, alpha: e.alpha } - : { hue: l, saturation: u, lightness: i } - ); -} -function Tr(e) { - return CR(to(e)); -} -var $R = function (e) { - return e.length === 7 && e[1] === e[2] && e[3] === e[4] && e[5] === e[6] - ? "#" + e[1] + e[3] + e[5] - : e; - }, - Qu = $R; -function Mr(e) { - var t = e.toString(16); - return t.length === 1 ? "0" + t : t; -} -function Es(e) { - return Mr(Math.round(e * 255)); -} -function AR(e, t, r) { - return Qu("#" + Es(e) + Es(t) + Es(r)); -} -function hS(e, t, r) { - return Di(e, t, r, AR); -} -function DR(e, t, r) { - if (typeof e == "object" && t === void 0 && r === void 0) - return hS(e.hue, e.saturation, e.lightness); - throw new Ht(1); -} -function kR(e, t, r, n) { - if (typeof e == "object" && t === void 0 && r === void 0 && n === void 0) - return e.alpha >= 1 - ? hS(e.hue, e.saturation, e.lightness) - : "rgba(" + Di(e.hue, e.saturation, e.lightness) + "," + e.alpha + ")"; - throw new Ht(2); -} -function yS(e, t, r) { - if (typeof e == "number" && typeof t == "number" && typeof r == "number") - return Qu("#" + Mr(e) + Mr(t) + Mr(r)); - if (typeof e == "object" && t === void 0 && r === void 0) - return Qu("#" + Mr(e.red) + Mr(e.green) + Mr(e.blue)); - throw new Ht(6); -} -function jt(e, t, r, n) { - if (typeof e == "string" && typeof t == "number") { - var o = to(e); - return "rgba(" + o.red + "," + o.green + "," + o.blue + "," + t + ")"; - } else if ( - typeof e == "object" && - t === void 0 && - r === void 0 && - n === void 0 - ) - return e.alpha >= 1 - ? yS(e.red, e.green, e.blue) - : "rgba(" + e.red + "," + e.green + "," + e.blue + "," + e.alpha + ")"; - throw new Ht(7); -} -var OR = function (e) { - return ( - typeof e.red == "number" && - typeof e.green == "number" && - typeof e.blue == "number" && - (typeof e.alpha != "number" || typeof e.alpha > "u") - ); - }, - FR = function (e) { - return ( - typeof e.red == "number" && - typeof e.green == "number" && - typeof e.blue == "number" && - typeof e.alpha == "number" - ); - }, - _R = function (e) { - return ( - typeof e.hue == "number" && - typeof e.saturation == "number" && - typeof e.lightness == "number" && - (typeof e.alpha != "number" || typeof e.alpha > "u") - ); - }, - TR = function (e) { - return ( - typeof e.hue == "number" && - typeof e.saturation == "number" && - typeof e.lightness == "number" && - typeof e.alpha == "number" - ); - }; -function Rr(e) { - if (typeof e != "object") throw new Ht(8); - if (FR(e)) return jt(e); - if (OR(e)) return yS(e); - if (TR(e)) return kR(e); - if (_R(e)) return DR(e); - throw new Ht(8); -} -function bS(e, t, r) { - return function () { - var n = r.concat(Array.prototype.slice.call(arguments)); - return n.length >= t ? e.apply(this, n) : bS(e, t, n); - }; -} -function ct(e) { - return bS(e, e.length, []); -} -function RR(e, t) { - if (t === "transparent") return t; - var r = Tr(t); - return Rr(et({}, r, { hue: r.hue + parseFloat(e) })); -} -ct(RR); -function co(e, t, r) { - return Math.max(e, Math.min(t, r)); -} -function PR(e, t) { - if (t === "transparent") return t; - var r = Tr(t); - return Rr(et({}, r, { lightness: co(0, 1, r.lightness - parseFloat(e)) })); -} -var IR = ct(PR), - Bt = IR; -function LR(e, t) { - if (t === "transparent") return t; - var r = Tr(t); - return Rr(et({}, r, { saturation: co(0, 1, r.saturation - parseFloat(e)) })); -} -ct(LR); -function BR(e, t) { - if (t === "transparent") return t; - var r = Tr(t); - return Rr(et({}, r, { lightness: co(0, 1, r.lightness + parseFloat(e)) })); -} -var NR = ct(BR), - zr = NR; -function jR(e, t, r) { - if (t === "transparent") return r; - if (r === "transparent") return t; - if (e === 0) return r; - var n = to(t), - o = et({}, n, { alpha: typeof n.alpha == "number" ? n.alpha : 1 }), - a = to(r), - i = et({}, a, { alpha: typeof a.alpha == "number" ? a.alpha : 1 }), - l = o.alpha - i.alpha, - s = parseFloat(e) * 2 - 1, - u = s * l === -1 ? s : s + l, - d = 1 + s * l, - p = (u / d + 1) / 2, - c = 1 - p, - f = { - red: Math.floor(o.red * p + i.red * c), - green: Math.floor(o.green * p + i.green * c), - blue: Math.floor(o.blue * p + i.blue * c), - alpha: o.alpha * parseFloat(e) + i.alpha * (1 - parseFloat(e)), - }; - return jt(f); -} -var MR = ct(jR), - vS = MR; -function zR(e, t) { - if (t === "transparent") return t; - var r = to(t), - n = typeof r.alpha == "number" ? r.alpha : 1, - o = et({}, r, { alpha: co(0, 1, (n * 100 + parseFloat(e) * 100) / 100) }); - return jt(o); -} -var HR = ct(zR), - Oa = HR; -function UR(e, t) { - if (t === "transparent") return t; - var r = Tr(t); - return Rr(et({}, r, { saturation: co(0, 1, r.saturation + parseFloat(e)) })); -} -ct(UR); -function WR(e, t) { - return t === "transparent" ? t : Rr(et({}, Tr(t), { hue: parseFloat(e) })); -} -ct(WR); -function VR(e, t) { - return t === "transparent" - ? t - : Rr(et({}, Tr(t), { lightness: parseFloat(e) })); -} -ct(VR); -function qR(e, t) { - return t === "transparent" - ? t - : Rr(et({}, Tr(t), { saturation: parseFloat(e) })); -} -ct(qR); -function GR(e, t) { - return t === "transparent" ? t : vS(parseFloat(e), "rgb(0, 0, 0)", t); -} -ct(GR); -function YR(e, t) { - return t === "transparent" ? t : vS(parseFloat(e), "rgb(255, 255, 255)", t); -} -ct(YR); -function KR(e, t) { - if (t === "transparent") return t; - var r = to(t), - n = typeof r.alpha == "number" ? r.alpha : 1, - o = et({}, r, { - alpha: co(0, 1, +(n * 100 - parseFloat(e) * 100).toFixed(2) / 100), - }); - return jt(o); -} -var XR = ct(KR), - ye = XR, - ZR = T.div(we, ({ theme: e }) => ({ - backgroundColor: - e.base === "light" ? "rgba(0,0,0,.01)" : "rgba(255,255,255,.01)", - borderRadius: e.appBorderRadius, - border: `1px dashed ${e.appBorderColor}`, - display: "flex", - alignItems: "center", - justifyContent: "center", - padding: 20, - margin: "25px 0 40px", - color: ye(0.3, e.color.defaultText), - fontSize: e.typography.size.s2, - })), - xS = (e) => - h.createElement(ZR, { ...e, className: "docblock-emptyblock sb-unstyled" }), - JR = T(ml)(({ theme: e }) => ({ - fontSize: `${e.typography.size.s2 - 1}px`, - lineHeight: "19px", - margin: "25px 0 40px", - borderRadius: e.appBorderRadius, - boxShadow: - e.base === "light" - ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" - : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", - "pre.prismjs": { padding: 20, background: "inherit" }, - })), - QR = T.div(({ theme: e }) => ({ - background: e.background.content, - borderRadius: e.appBorderRadius, - border: `1px solid ${e.appBorderColor}`, - boxShadow: - e.base === "light" - ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" - : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", - margin: "25px 0 40px", - padding: "20px 20px 20px 22px", - })), - Fa = T.div(({ theme: e }) => ({ - animation: `${e.animation.glow} 1.5s ease-in-out infinite`, - background: e.appBorderColor, - height: 17, - marginTop: 1, - width: "60%", - [`&:first-child${gu}`]: { margin: 0 }, - })), - e6 = () => - h.createElement( - QR, - null, - h.createElement(Fa, null), - h.createElement(Fa, { style: { width: "80%" } }), - h.createElement(Fa, { style: { width: "30%" } }), - h.createElement(Fa, { style: { width: "80%" } }), - ), - ES = ({ - isLoading: e, - error: t, - language: r, - code: n, - dark: o, - format: a = !0, - ...i - }) => { - let { typography: l } = Mb(); - if (e) return h.createElement(e6, null); - if (t) return h.createElement(xS, null, t); - let s = h.createElement( - JR, - { - bordered: !0, - copyable: !0, - format: a, - language: r ?? "jsx", - className: "docblock-source sb-unstyled", - ...i, - }, - n, - ); - if (typeof o > "u") return s; - let u = o ? pu.dark : pu.light; - return h.createElement( - zb, - { theme: fu({ ...u, fontCode: l.fonts.mono, fontBase: l.fonts.base }) }, - s, - ); - }, - Oe = (e) => `& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`, - dp = 600, - t6 = T.h1(we, ({ theme: e }) => ({ - color: e.color.defaultText, - fontSize: e.typography.size.m3, - fontWeight: e.typography.weight.bold, - lineHeight: "32px", - [`@media (min-width: ${dp}px)`]: { - fontSize: e.typography.size.l1, - lineHeight: "36px", - marginBottom: "16px", - }, - })), - r6 = T.h2(we, ({ theme: e }) => ({ - fontWeight: e.typography.weight.regular, - fontSize: e.typography.size.s3, - lineHeight: "20px", - borderBottom: "none", - marginBottom: 15, - [`@media (min-width: ${dp}px)`]: { - fontSize: e.typography.size.m1, - lineHeight: "28px", - marginBottom: 24, - }, - color: ye(0.25, e.color.defaultText), - })), - n6 = T.div(({ theme: e }) => { - let t = { - fontFamily: e.typography.fonts.base, - fontSize: e.typography.size.s3, - margin: 0, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", - WebkitOverflowScrolling: "touch", - }, - r = { - margin: "20px 0 8px", - padding: 0, - cursor: "text", - position: "relative", - color: e.color.defaultText, - "&:first-of-type": { marginTop: 0, paddingTop: 0 }, - "&:hover a.anchor": { textDecoration: "none" }, - "& code": { fontSize: "inherit" }, - }, - n = { - lineHeight: 1, - margin: "0 2px", - padding: "3px 5px", - whiteSpace: "nowrap", - borderRadius: 3, - fontSize: e.typography.size.s2 - 1, - border: - e.base === "light" - ? `1px solid ${e.color.mediumlight}` - : `1px solid ${e.color.darker}`, - color: - e.base === "light" - ? ye(0.1, e.color.defaultText) - : ye(0.3, e.color.defaultText), - backgroundColor: e.base === "light" ? e.color.lighter : e.color.border, - }; - return { - maxWidth: 1e3, - width: "100%", - minWidth: 0, - [Oe("a")]: { - ...t, - fontSize: "inherit", - lineHeight: "24px", - color: e.color.secondary, - textDecoration: "none", - "&.absent": { color: "#cc0000" }, - "&.anchor": { - display: "block", - paddingLeft: 30, - marginLeft: -30, - cursor: "pointer", - position: "absolute", - top: 0, - left: 0, - bottom: 0, - }, - }, - [Oe("blockquote")]: { - ...t, - margin: "16px 0", - borderLeft: `4px solid ${e.color.medium}`, - padding: "0 15px", - color: e.color.dark, - "& > :first-of-type": { marginTop: 0 }, - "& > :last-child": { marginBottom: 0 }, - }, - [Oe("div")]: t, - [Oe("dl")]: { - ...t, - margin: "16px 0", - padding: 0, - "& dt": { - fontSize: "14px", - fontWeight: "bold", - fontStyle: "italic", - padding: 0, - margin: "16px 0 4px", - }, - "& dt:first-of-type": { padding: 0 }, - "& dt > :first-of-type": { marginTop: 0 }, - "& dt > :last-child": { marginBottom: 0 }, - "& dd": { margin: "0 0 16px", padding: "0 15px" }, - "& dd > :first-of-type": { marginTop: 0 }, - "& dd > :last-child": { marginBottom: 0 }, - }, - [Oe("h1")]: { - ...t, - ...r, - fontSize: `${e.typography.size.l1}px`, - fontWeight: e.typography.weight.bold, - }, - [Oe("h2")]: { - ...t, - ...r, - fontSize: `${e.typography.size.m2}px`, - paddingBottom: 4, - borderBottom: `1px solid ${e.appBorderColor}`, - }, - [Oe("h3")]: { - ...t, - ...r, - fontSize: `${e.typography.size.m1}px`, - fontWeight: e.typography.weight.bold, - }, - [Oe("h4")]: { ...t, ...r, fontSize: `${e.typography.size.s3}px` }, - [Oe("h5")]: { ...t, ...r, fontSize: `${e.typography.size.s2}px` }, - [Oe("h6")]: { - ...t, - ...r, - fontSize: `${e.typography.size.s2}px`, - color: e.color.dark, - }, - [Oe("hr")]: { - border: "0 none", - borderTop: `1px solid ${e.appBorderColor}`, - height: 4, - padding: 0, - }, - [Oe("img")]: { maxWidth: "100%" }, - [Oe("li")]: { - ...t, - fontSize: e.typography.size.s2, - color: e.color.defaultText, - lineHeight: "24px", - "& + li": { marginTop: ".25em" }, - "& ul, & ol": { marginTop: ".25em", marginBottom: 0 }, - "& code": n, - }, - [Oe("ol")]: { - ...t, - margin: "16px 0", - paddingLeft: 30, - "& :first-of-type": { marginTop: 0 }, - "& :last-child": { marginBottom: 0 }, - }, - [Oe("p")]: { - ...t, - margin: "16px 0", - fontSize: e.typography.size.s2, - lineHeight: "24px", - color: e.color.defaultText, - "& code": n, - }, - [Oe("pre")]: { - ...t, - fontFamily: e.typography.fonts.mono, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - lineHeight: "18px", - padding: "11px 1rem", - whiteSpace: "pre-wrap", - color: "inherit", - borderRadius: 3, - margin: "1rem 0", - "&:not(.prismjs)": { - background: "transparent", - border: "none", - borderRadius: 0, - padding: 0, - margin: 0, - }, - "& pre, &.prismjs": { - padding: 15, - margin: 0, - whiteSpace: "pre-wrap", - color: "inherit", - fontSize: "13px", - lineHeight: "19px", - code: { color: "inherit", fontSize: "inherit" }, - }, - "& code": { whiteSpace: "pre" }, - "& code, & tt": { border: "none" }, - }, - [Oe("span")]: { - ...t, - "&.frame": { - display: "block", - overflow: "hidden", - "& > span": { - border: `1px solid ${e.color.medium}`, - display: "block", - float: "left", - overflow: "hidden", - margin: "13px 0 0", - padding: 7, - width: "auto", - }, - "& span img": { display: "block", float: "left" }, - "& span span": { - clear: "both", - color: e.color.darkest, - display: "block", - padding: "5px 0 0", - }, - }, - "&.align-center": { - display: "block", - overflow: "hidden", - clear: "both", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px auto 0", - textAlign: "center", - }, - "& span img": { margin: "0 auto", textAlign: "center" }, - }, - "&.align-right": { - display: "block", - overflow: "hidden", - clear: "both", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px 0 0", - textAlign: "right", - }, - "& span img": { margin: 0, textAlign: "right" }, - }, - "&.float-left": { - display: "block", - marginRight: 13, - overflow: "hidden", - float: "left", - "& span": { margin: "13px 0 0" }, - }, - "&.float-right": { - display: "block", - marginLeft: 13, - overflow: "hidden", - float: "right", - "& > span": { - display: "block", - overflow: "hidden", - margin: "13px auto 0", - textAlign: "right", - }, - }, - }, - [Oe("table")]: { - ...t, - margin: "16px 0", - fontSize: e.typography.size.s2, - lineHeight: "24px", - padding: 0, - borderCollapse: "collapse", - "& tr": { - borderTop: `1px solid ${e.appBorderColor}`, - backgroundColor: e.appContentBg, - margin: 0, - padding: 0, - }, - "& tr:nth-of-type(2n)": { - backgroundColor: e.base === "dark" ? e.color.darker : e.color.lighter, - }, - "& tr th": { - fontWeight: "bold", - color: e.color.defaultText, - border: `1px solid ${e.appBorderColor}`, - margin: 0, - padding: "6px 13px", - }, - "& tr td": { - border: `1px solid ${e.appBorderColor}`, - color: e.color.defaultText, - margin: 0, - padding: "6px 13px", - }, - "& tr th :first-of-type, & tr td :first-of-type": { marginTop: 0 }, - "& tr th :last-child, & tr td :last-child": { marginBottom: 0 }, - }, - [Oe("ul")]: { - ...t, - margin: "16px 0", - paddingLeft: 30, - "& :first-of-type": { marginTop: 0 }, - "& :last-child": { marginBottom: 0 }, - listStyle: "disc", - }, - }; - }), - o6 = T.div(({ theme: e }) => ({ - background: e.background.content, - display: "flex", - flexDirection: "row-reverse", - justifyContent: "center", - padding: "4rem 20px", - minHeight: "100vh", - boxSizing: "border-box", - gap: "3rem", - [`@media (min-width: ${dp}px)`]: {}, - })), - a6 = ({ children: e, toc: t }) => - h.createElement( - o6, - { className: "sbdocs sbdocs-wrapper" }, - t, - h.createElement(n6, { className: "sbdocs sbdocs-content" }, e), - ), - Cl = (e) => ({ - borderRadius: e.appBorderRadius, - background: e.background.content, - boxShadow: - e.base === "light" - ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" - : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", - border: `1px solid ${e.appBorderColor}`, - }), - { window: i6 } = globalThis, - l6 = class extends b.Component { - constructor() { - (super(...arguments), (this.iframe = null)); - } - componentDidMount() { - let { id: e } = this.props; - this.iframe = i6.document.getElementById(e); - } - shouldComponentUpdate(e) { - let { scale: t } = e; - return ( - t !== this.props.scale && - this.setIframeBodyStyle({ - width: `${t * 100}%`, - height: `${t * 100}%`, - transform: `scale(${1 / t})`, - transformOrigin: "top left", - }), - !1 - ); - } - setIframeBodyStyle(e) { - return Object.assign(this.iframe.contentDocument.body.style, e); - } - render() { - let { - id: e, - title: t, - src: r, - allowFullScreen: n, - scale: o, - ...a - } = this.props; - return h.createElement("iframe", { - id: e, - title: t, - src: r, - ...(n ? { allow: "fullscreen" } : {}), - loading: "lazy", - ...a, - }); - } - }, - wS = b.createContext({ scale: 1 }), - { PREVIEW_URL: s6 } = globalThis, - u6 = s6 || "iframe.html", - ec = ({ story: e, primary: t }) => `story--${e.id}${t ? "--primary" : ""}`, - c6 = (e) => { - let t = b.useRef(), - [r, n] = b.useState(!0), - [o, a] = b.useState(), - { - story: i, - height: l, - autoplay: s, - forceInitialArgs: u, - renderStoryToElement: d, - } = e; - return ( - b.useEffect(() => { - if (!(i && t.current)) return () => {}; - let p = t.current, - c = d( - i, - p, - { - showMain: () => {}, - showError: ({ title: f, description: g }) => - a(new Error(`${f} - ${g}`)), - showException: (f) => a(f), - }, - { autoplay: s, forceInitialArgs: u }, - ); - return ( - n(!1), - () => { - Promise.resolve().then(() => c()); - } - ); - }, [s, d, i]), - o - ? h.createElement("pre", null, h.createElement(Gw, { error: o })) - : h.createElement( - h.Fragment, - null, - l - ? h.createElement( - "style", - null, - `#${ec(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`, - ) - : null, - r && h.createElement(SS, null), - h.createElement("div", { - ref: t, - id: `${ec(e)}-inner`, - "data-name": i.name, - }), - ) - ); - }, - d6 = ({ story: e, height: t = "500px" }) => - h.createElement( - "div", - { style: { width: "100%", height: t } }, - h.createElement(wS.Consumer, null, ({ scale: r }) => - h.createElement(l6, { - key: "iframe", - id: `iframe--${e.id}`, - title: e.name, - src: cS(u6, e.id, { viewMode: "story" }), - allowFullScreen: !0, - scale: r, - style: { width: "100%", height: "100%", border: "0 none" }, - }), - ), - ), - p6 = T.strong(({ theme: e }) => ({ color: e.color.orange })), - f6 = (e) => { - let { inline: t, story: r } = e; - return t && !e.autoplay && r.usesMount - ? h.createElement( - p6, - null, - "This story mounts inside of play. Set", - " ", - h.createElement( - "a", - { - href: "https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay", - }, - "autoplay", - ), - " ", - "to true to view this story.", - ) - : h.createElement( - "div", - { - id: ec(e), - className: "sb-story sb-unstyled", - "data-story-block": "true", - }, - t ? h.createElement(c6, { ...e }) : h.createElement(d6, { ...e }), - ); - }, - SS = () => h.createElement(sS, null), - g6 = T(wl)({ - position: "absolute", - left: 0, - right: 0, - top: 0, - transition: "transform .2s linear", - }), - m6 = T.div({ display: "flex", alignItems: "center", gap: 4 }), - h6 = T.div(({ theme: e }) => ({ - width: 14, - height: 14, - borderRadius: 2, - margin: "0 7px", - backgroundColor: e.appBorderColor, - animation: `${e.animation.glow} 1.5s ease-in-out infinite`, - })), - y6 = ({ - isLoading: e, - storyId: t, - baseUrl: r, - zoom: n, - resetZoom: o, - ...a - }) => - h.createElement( - g6, - { ...a }, - h.createElement( - m6, - { key: "left" }, - e - ? [1, 2, 3].map((i) => h.createElement(h6, { key: i })) - : h.createElement( - h.Fragment, - null, - h.createElement( - $r, - { - key: "zoomin", - onClick: (i) => { - (i.preventDefault(), n(0.8)); - }, - title: "Zoom in", - }, - h.createElement(VT, null), - ), - h.createElement( - $r, - { - key: "zoomout", - onClick: (i) => { - (i.preventDefault(), n(1.25)); - }, - title: "Zoom out", - }, - h.createElement(qT, null), - ), - h.createElement( - $r, - { - key: "zoomreset", - onClick: (i) => { - (i.preventDefault(), o()); - }, - title: "Reset zoom", - }, - h.createElement(GT, null), - ), - ), - ), - ), - b6 = T.div( - ({ isColumn: e, columns: t, layout: r }) => ({ - display: e || !t ? "block" : "flex", - position: "relative", - flexWrap: "wrap", - overflow: "auto", - flexDirection: e ? "column" : "row", - "& .innerZoomElementWrapper > *": e - ? { - width: r !== "fullscreen" ? "calc(100% - 20px)" : "100%", - display: "block", - } - : { - maxWidth: r !== "fullscreen" ? "calc(100% - 20px)" : "100%", - display: "inline-block", - }, - }), - ({ layout: e = "padded", inline: t }) => - e === "centered" || e === "padded" - ? { - padding: t ? "32px 22px" : "0px", - "& .innerZoomElementWrapper > *": { - width: "auto", - border: "8px solid transparent!important", - }, - } - : {}, - ({ layout: e = "padded", inline: t }) => - e === "centered" && t - ? { - display: "flex", - justifyContent: "center", - justifyItems: "center", - alignContent: "center", - alignItems: "center", - } - : {}, - ({ columns: e }) => - e && e > 1 - ? { - ".innerZoomElementWrapper > *": { - minWidth: `calc(100% / ${e} - 20px)`, - }, - } - : {}, - ), - Fm = T(ES)(({ theme: e }) => ({ - margin: 0, - borderTopLeftRadius: 0, - borderTopRightRadius: 0, - borderBottomLeftRadius: e.appBorderRadius, - borderBottomRightRadius: e.appBorderRadius, - border: "none", - background: - e.base === "light" - ? "rgba(0, 0, 0, 0.85)" - : Bt(0.05, e.background.content), - color: e.color.lightest, - button: { - background: - e.base === "light" - ? "rgba(0, 0, 0, 0.85)" - : Bt(0.05, e.background.content), - }, - })), - v6 = T.div( - ({ theme: e, withSource: t, isExpanded: r }) => ({ - position: "relative", - overflow: "hidden", - margin: "25px 0 40px", - ...Cl(e), - borderBottomLeftRadius: t && r && 0, - borderBottomRightRadius: t && r && 0, - borderBottomWidth: r && 0, - "h3 + &": { marginTop: "16px" }, - }), - ({ withToolbar: e }) => e && { paddingTop: 40 }, - ), - x6 = (e, t, r) => { - switch (!0) { - case !!(e && e.error): - return { - source: null, - actionItem: { - title: "No code available", - className: "docblock-code-toggle docblock-code-toggle--disabled", - disabled: !0, - onClick: () => r(!1), - }, - }; - case t: - return { - source: h.createElement(Fm, { ...e, dark: !0 }), - actionItem: { - title: "Hide code", - className: "docblock-code-toggle docblock-code-toggle--expanded", - onClick: () => r(!1), - }, - }; - default: - return { - source: h.createElement(Fm, { ...e, dark: !0 }), - actionItem: { - title: "Show code", - className: "docblock-code-toggle", - onClick: () => r(!0), - }, - }; - } - }; -function E6(e) { - if (b.Children.count(e) === 1) { - let t = e; - if (t.props) return t.props.id; - } - return null; -} -var w6 = T(y6)({ position: "absolute", top: 0, left: 0, right: 0, height: 40 }), - S6 = T.div({ overflow: "hidden", position: "relative" }), - CS = ({ - isLoading: e, - isColumn: t, - columns: r, - children: n, - withSource: o, - withToolbar: a = !1, - isExpanded: i = !1, - additionalActions: l, - className: s, - layout: u = "padded", - inline: d = !1, - ...p - }) => { - let [c, f] = b.useState(i), - { source: g, actionItem: y } = x6(o, c, f), - [x, v] = b.useState(1), - C = [s].concat(["sbdocs", "sbdocs-preview", "sb-unstyled"]), - w = o ? [y] : [], - [E, $] = b.useState(l ? [...l] : []), - A = [...w, ...E], - { window: S } = globalThis, - D = b.useCallback(async (k) => { - let { createCopyToClipboardFunction: _ } = await cc( - () => Promise.resolve().then(() => WT), - void 0, - ); - _(); - }, []), - F = (k) => { - let _ = S.getSelection(); - (_ && _.type === "Range") || - (k.preventDefault(), - E.filter((I) => I.title === "Copied").length === 0 && - D(g?.props.code ?? "").then(() => { - ($([...E, { title: "Copied", onClick: () => {} }]), - S.setTimeout( - () => $(E.filter((I) => I.title !== "Copied")), - 1500, - )); - })); - }; - return h.createElement( - v6, - { withSource: o, withToolbar: a, ...p, className: C.join(" ") }, - a && - h.createElement(w6, { - isLoading: e, - border: !0, - zoom: (k) => v(x * k), - resetZoom: () => v(1), - storyId: E6(n), - baseUrl: "./iframe.html", - }), - h.createElement( - wS.Provider, - { value: { scale: x } }, - h.createElement( - S6, - { className: "docs-story", onCopyCapture: o && F }, - h.createElement( - b6, - { - isColumn: t || !Array.isArray(n), - columns: r, - layout: u, - inline: d, - }, - h.createElement( - qw.Element, - { centered: u === "centered", scale: d ? x : 1 }, - Array.isArray(n) - ? n.map((k, _) => h.createElement("div", { key: _ }, k)) - : h.createElement("div", null, n), - ), - ), - h.createElement(al, { actionItems: A }), - ), - ), - o && c && g, - ); - }; -T(CS)(() => ({ ".docs-story": { paddingTop: 32, paddingBottom: 40 } })); -var C6 = ({ tabs: e, ...t }) => { - let r = Object.entries(e); - return r.length === 1 - ? h.createElement(lc, { ...r[0][1], ...t }) - : h.createElement( - lS, - null, - r.map((n, o) => { - let [a, i] = n, - l = `prop_table_div_${a}`, - s = "div", - u = o === 0 ? t : { sort: t.sort }; - return h.createElement( - s, - { key: l, id: l, title: a }, - ({ active: d }) => - d - ? h.createElement(lc, { key: `prop_table_${a}`, ...i, ...u }) - : null, - ); - }), - ); -}; -T.div(({ theme: e }) => ({ - marginRight: 30, - fontSize: `${e.typography.size.s1}px`, - color: - e.base === "light" - ? ye(0.4, e.color.defaultText) - : ye(0.6, e.color.defaultText), -})); -T.div({ overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }); -T.div({ - display: "flex", - flexDirection: "row", - alignItems: "baseline", - "&:not(:last-child)": { marginBottom: "1rem" }, -}); -T.div(we, ({ theme: e }) => ({ - ...Cl(e), - margin: "25px 0 40px", - padding: "30px 20px", -})); -T.div(({ theme: e }) => ({ - fontWeight: e.typography.weight.bold, - color: e.color.defaultText, -})); -T.div(({ theme: e }) => ({ - color: - e.base === "light" - ? ye(0.2, e.color.defaultText) - : ye(0.6, e.color.defaultText), -})); -T.div({ flex: "0 0 30%", lineHeight: "20px", marginTop: 5 }); -T.div(({ theme: e }) => ({ - flex: 1, - textAlign: "center", - fontFamily: e.typography.fonts.mono, - fontSize: e.typography.size.s1, - lineHeight: 1, - overflow: "hidden", - color: - e.base === "light" - ? ye(0.4, e.color.defaultText) - : ye(0.6, e.color.defaultText), - "> div": { - display: "inline-block", - overflow: "hidden", - maxWidth: "100%", - textOverflow: "ellipsis", - }, - span: { display: "block", marginTop: 2 }, -})); -T.div({ display: "flex", flexDirection: "row" }); -T.div(({ background: e }) => ({ - position: "relative", - flex: 1, - "&::before": { - position: "absolute", - top: 0, - left: 0, - width: "100%", - height: "100%", - background: e, - content: '""', - }, -})); -T.div(({ theme: e }) => ({ - ...Cl(e), - display: "flex", - flexDirection: "row", - height: 50, - marginBottom: 5, - overflow: "hidden", - backgroundColor: "white", - backgroundImage: - "repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)", - backgroundClip: "padding-box", -})); -T.div({ - display: "flex", - flexDirection: "column", - flex: 1, - position: "relative", - marginBottom: 30, -}); -T.div({ flex: 1, display: "flex", flexDirection: "row" }); -T.div({ display: "flex", alignItems: "flex-start" }); -T.div({ flex: "0 0 30%" }); -T.div({ flex: 1 }); -T.div(({ theme: e }) => ({ - display: "flex", - flexDirection: "row", - alignItems: "center", - paddingBottom: 20, - fontWeight: e.typography.weight.bold, - color: - e.base === "light" - ? ye(0.4, e.color.defaultText) - : ye(0.6, e.color.defaultText), -})); -T.div(({ theme: e }) => ({ - fontSize: e.typography.size.s2, - lineHeight: "20px", - display: "flex", - flexDirection: "column", -})); -T.div(({ theme: e }) => ({ - fontFamily: e.typography.fonts.base, - fontSize: e.typography.size.s1, - color: e.color.defaultText, - marginLeft: 10, - lineHeight: 1.2, - display: "-webkit-box", - overflow: "hidden", - wordBreak: "break-word", - textOverflow: "ellipsis", - WebkitLineClamp: 2, - WebkitBoxOrient: "vertical", -})); -T.div(({ theme: e }) => ({ - ...Cl(e), - overflow: "hidden", - height: 40, - width: 40, - display: "flex", - alignItems: "center", - justifyContent: "center", - flex: "none", - "> img, > svg": { width: 20, height: 20 }, -})); -T.div({ - display: "inline-flex", - flexDirection: "row", - alignItems: "center", - width: "100%", -}); -T.div({ - display: "grid", - gridTemplateColumns: "repeat(auto-fill, minmax(140px, 1fr))", - gridGap: "8px 16px", - gridAutoFlow: "row dense", - gridAutoRows: 50, -}); -function $6(e) { - let t = [].forEach, - r = [].some, - n = typeof window < "u" && document.body, - o = " ", - a, - i = !0, - l = 0; - function s(k, _) { - let I = _.appendChild(d(k)); - if (k.children.length) { - let L = p(k.isCollapsed); - (k.children.forEach((j) => { - s(j, L); - }), - I.appendChild(L)); - } - } - function u(k, _) { - let I = p(!1); - if ( - (_.forEach((L) => { - s(L, I); - }), - (a = k || a), - a !== null) - ) - return ( - a.firstChild && a.removeChild(a.firstChild), - _.length === 0 ? a : a.appendChild(I) - ); - } - function d(k) { - let _ = document.createElement("li"), - I = document.createElement("a"); - return ( - e.listItemClass && _.setAttribute("class", e.listItemClass), - e.onClick && (I.onclick = e.onClick), - e.includeTitleTags && I.setAttribute("title", k.textContent), - e.includeHtml && k.childNodes.length - ? t.call(k.childNodes, (L) => { - I.appendChild(L.cloneNode(!0)); - }) - : (I.textContent = k.textContent), - I.setAttribute("href", `${e.basePath}#${k.id}`), - I.setAttribute( - "class", - `${e.linkClass + o}node-name--${k.nodeName}${o}${e.extraLinkClasses}`, - ), - _.appendChild(I), - _ - ); - } - function p(k) { - let _ = e.orderedList ? "ol" : "ul", - I = document.createElement(_), - L = e.listClass + o + e.extraListClasses; - return ( - k && ((L = L + o + e.collapsibleClass), (L = L + o + e.isCollapsedClass)), - I.setAttribute("class", L), - I - ); - } - function c() { - let k = S(), - _ = document.querySelector(e.positionFixedSelector); - (e.fixedSidebarOffset === "auto" && (e.fixedSidebarOffset = a.offsetTop), - k > e.fixedSidebarOffset - ? _.className.indexOf(e.positionFixedClass) === -1 && - (_.className += o + e.positionFixedClass) - : (_.className = _.className.replace(o + e.positionFixedClass, ""))); - } - function f(k) { - let _ = 0; - return ( - k !== null && - ((_ = k.offsetTop), e.hasInnerContainers && (_ += f(k.offsetParent))), - _ - ); - } - function g(k, _) { - return (k && k.className !== _ && (k.className = _), k); - } - function y(k, _) { - e.positionFixedSelector && c(); - let I = k, - L = _?.target?.getAttribute ? _?.target?.getAttribute("href") : null, - j = L && L.charAt(0) === "#" ? E(L.replace("#", "")) : !1, - B = i || j; - if ((_ && l < 5 && l++, B && a && I.length > 0)) { - let z = D(I), - V = a.querySelector(`.${e.activeLinkClass}`), - Y = z.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g, "\\$1"), - W = window.location.hash.replace("#", ""), - G = Y, - J = $(); - L && j - ? (G = L.replace("#", "")) - : W && W !== Y && J && (E(Y) || l <= 2) && (G = W); - let Q = a.querySelector(`.${e.linkClass}[href="${e.basePath}#${G}"]`); - if (V === Q) return; - let re = a.querySelectorAll(`.${e.linkClass}`); - t.call(re, (Z) => { - g(Z, Z.className.replace(o + e.activeLinkClass, "")); - }); - let ie = a.querySelectorAll(`.${e.listItemClass}`); - (t.call(ie, (Z) => { - g(Z, Z.className.replace(o + e.activeListItemClass, "")); - }), - Q && - Q.className.indexOf(e.activeLinkClass) === -1 && - (Q.className += o + e.activeLinkClass)); - let H = Q?.parentNode; - H && - H.className.indexOf(e.activeListItemClass) === -1 && - (H.className += o + e.activeListItemClass); - let X = a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`); - (t.call(X, (Z) => { - Z.className.indexOf(e.isCollapsedClass) === -1 && - (Z.className += o + e.isCollapsedClass); - }), - Q?.nextSibling && - Q.nextSibling.className.indexOf(e.isCollapsedClass) !== -1 && - g( - Q.nextSibling, - Q.nextSibling.className.replace(o + e.isCollapsedClass, ""), - ), - x(Q?.parentNode.parentNode)); - } - } - function x(k) { - return k && - k.className.indexOf(e.collapsibleClass) !== -1 && - k.className.indexOf(e.isCollapsedClass) !== -1 - ? (g(k, k.className.replace(o + e.isCollapsedClass, "")), - x(k.parentNode.parentNode)) - : k; - } - function v(k) { - let _ = k.target || k.srcElement; - typeof _.className != "string" || - _.className.indexOf(e.linkClass) === -1 || - (i = !1); - } - function C() { - i = !0; - } - function w() { - return i; - } - function E(k) { - let _ = A(); - return ( - (document?.getElementById(k)).offsetTop > - _.offsetHeight - _.clientHeight * 1.4 - e.bottomModeThreshold - ); - } - function $() { - let k = A(), - _ = k.scrollHeight > k.clientHeight, - I = S() + k.clientHeight > k.offsetHeight - e.bottomModeThreshold; - return _ && I; - } - function A() { - let k; - return ( - e.scrollContainer && document.querySelector(e.scrollContainer) - ? (k = document.querySelector(e.scrollContainer)) - : (k = document.documentElement || n), - k - ); - } - function S() { - return A()?.scrollTop || 0; - } - function D(k, _ = S()) { - let I; - return ( - r.call(k, (L, j) => { - if (f(L) > _ + e.headingsOffset + 10) { - let B = j === 0 ? j : j - 1; - return ((I = k[B]), !0); - } - if (j === k.length - 1) return ((I = k[k.length - 1]), !0); - }), - I - ); - } - function F(k) { - let _ = S(), - I = D(k, _), - L = $(); - if ((!I || _ < 5) && !L) - window.location.hash === "#" || - window.location.hash === "" || - window.history.pushState(null, null, "#"); - else if (I && !L) { - let j = `#${I.id}`; - window.location.hash !== j && window.history.pushState(null, null, j); - } - } - return { - enableTocAnimation: C, - disableTocAnimation: v, - render: u, - updateToc: y, - getCurrentlyHighlighting: w, - getTopHeader: D, - getScrollTop: S, - updateUrlHashForHeader: F, - }; -} -var A6 = { - tocSelector: ".js-toc", - tocElement: null, - contentSelector: ".js-toc-content", - contentElement: null, - headingSelector: "h1, h2, h3", - ignoreSelector: ".js-toc-ignore", - hasInnerContainers: !1, - linkClass: "toc-link", - extraLinkClasses: "", - activeLinkClass: "is-active-link", - listClass: "toc-list", - extraListClasses: "", - isCollapsedClass: "is-collapsed", - collapsibleClass: "is-collapsible", - listItemClass: "toc-list-item", - activeListItemClass: "is-active-li", - collapseDepth: 0, - scrollSmooth: !0, - scrollSmoothDuration: 420, - scrollSmoothOffset: 0, - scrollEndCallback: function (e) {}, - headingsOffset: 1, - enableUrlHashUpdateOnScroll: !1, - scrollHandlerType: "auto", - scrollHandlerTimeout: 50, - throttleTimeout: 50, - positionFixedSelector: null, - positionFixedClass: "is-position-fixed", - fixedSidebarOffset: "auto", - includeHtml: !1, - includeTitleTags: !1, - onClick: function (e) {}, - orderedList: !0, - scrollContainer: null, - skipRendering: !1, - headingLabelCallback: !1, - ignoreHiddenElements: !1, - headingObjectCallback: null, - basePath: "", - disableTocScrollSync: !1, - tocScrollingWrapper: null, - tocScrollOffset: 30, - bottomModeThreshold: 30, -}; -function D6(e) { - let t = [].reduce; - function r(u) { - return u[u.length - 1]; - } - function n(u) { - return +u.nodeName.toUpperCase().replace("H", ""); - } - function o(u) { - try { - return ( - u instanceof window.HTMLElement || - u instanceof window.parent.HTMLElement - ); - } catch { - return u instanceof window.HTMLElement; - } - } - function a(u) { - if (!o(u)) return u; - if (e.ignoreHiddenElements && (!u.offsetHeight || !u.offsetParent)) - return null; - let d = - u.getAttribute("data-heading-label") || - (e.headingLabelCallback - ? String(e.headingLabelCallback(u.innerText)) - : (u.innerText || u.textContent).trim()), - p = { - id: u.id, - children: [], - nodeName: u.nodeName, - headingLevel: n(u), - textContent: d, - }; - return ( - e.includeHtml && (p.childNodes = u.childNodes), - e.headingObjectCallback ? e.headingObjectCallback(p, u) : p - ); - } - function i(u, d) { - let p = a(u), - c = p.headingLevel, - f = d, - g = r(f), - y = g ? g.headingLevel : 0, - x = c - y; - for (; x > 0 && ((g = r(f)), !(g && c === g.headingLevel)); ) - (g && g.children !== void 0 && (f = g.children), x--); - return (c >= e.collapseDepth && (p.isCollapsed = !0), f.push(p), f); - } - function l(u, d) { - let p = d; - e.ignoreSelector && - (p = d.split(",").map(function (c) { - return `${c.trim()}:not(${e.ignoreSelector})`; - })); - try { - return u.querySelectorAll(p); - } catch { - return (console.warn(`Headers not found with selector: ${p}`), null); - } - } - function s(u) { - return t.call( - u, - function (d, p) { - let c = a(p); - return (c && i(c, d.nest), d); - }, - { nest: [] }, - ); - } - return { nestHeadingsArray: s, selectHeadings: l }; -} -function k6(e) { - var t = e.duration, - r = e.offset; - if (typeof window > "u" || typeof location > "u") return; - var n = location.hash ? i(location.href) : location.href; - o(); - function o() { - document.body.addEventListener("click", s, !1); - function s(u) { - !a(u.target) || - u.target.className.indexOf("no-smooth-scroll") > -1 || - (u.target.href.charAt(u.target.href.length - 2) === "#" && - u.target.href.charAt(u.target.href.length - 1) === "!") || - u.target.className.indexOf(e.linkClass) === -1 || - O6(u.target.hash, { - duration: t, - offset: r, - callback: function () { - l(u.target.hash); - }, - }); - } - } - function a(s) { - return ( - s.tagName.toLowerCase() === "a" && - (s.hash.length > 0 || s.href.charAt(s.href.length - 1) === "#") && - (i(s.href) === n || i(s.href) + "#" === n) - ); - } - function i(s) { - return s.slice(0, s.lastIndexOf("#")); - } - function l(s) { - var u = document.getElementById(s.substring(1)); - u && - (/^(?:a|select|input|button|textarea)$/i.test(u.tagName) || - (u.tabIndex = -1), - u.focus()); - } -} -function O6(e, t) { - var r = window.pageYOffset, - n = { - duration: t.duration, - offset: t.offset || 0, - callback: t.callback, - easing: t.easing || p, - }, - o = - document.querySelector( - '[id="' + decodeURI(e).split("#").join("") + '"]', - ) || document.querySelector('[id="' + e.split("#").join("") + '"]'), - a = - typeof e == "string" - ? n.offset + - (e - ? (o && o.getBoundingClientRect().top) || 0 - : -(document.documentElement.scrollTop || document.body.scrollTop)) - : e, - i = typeof n.duration == "function" ? n.duration(a) : n.duration, - l, - s; - requestAnimationFrame(function (c) { - ((l = c), u(c)); - }); - function u(c) { - ((s = c - l), - window.scrollTo(0, n.easing(s, r, a, i)), - s < i ? requestAnimationFrame(u) : d()); - } - function d() { - (window.scrollTo(0, r + a), - typeof n.callback == "function" && n.callback()); - } - function p(c, f, g, y) { - return ( - (c /= y / 2), - c < 1 ? (g / 2) * c * c + f : (c--, (-g / 2) * (c * (c - 2) - 1) + f) - ); - } -} -function F6(e) { - let t = - e.tocScrollingWrapper || - e.tocElement || - document.querySelector(e.tocSelector); - if (t && t.scrollHeight > t.clientHeight) { - let r = t.querySelector(`.${e.activeListItemClass}`); - if (r) { - let n = r.offsetTop - e.tocScrollOffset; - t.scrollTop = n > 0 ? n : 0; - } - } -} -var ae = {}, - xt, - ws, - Nr, - wt, - Wo; -function $S(e) { - let t = !1; - ((ae = R6(A6, e || {})), - ae.scrollSmooth && - ((ae.duration = ae.scrollSmoothDuration), - (ae.offset = ae.scrollSmoothOffset), - k6(ae)), - (xt = $6(ae)), - (ws = D6(ae)), - pp()); - let r = I6(ae); - if (r === null) return; - let n = AS(ae); - if ( - n === null || - ((Nr = ws.selectHeadings(r, ae.headingSelector)), Nr === null) - ) - return; - let o = ws.nestHeadingsArray(Nr).nest; - if (!ae.skipRendering) xt.render(n, o); - else return this; - let a = !1, - i = ae.scrollHandlerTimeout || ae.throttleTimeout; - ((wt = ((s, u) => P6(s, u, ae.scrollHandlerType))((s) => { - (xt.updateToc(Nr, s), - !ae.disableTocScrollSync && !a && F6(ae), - ae.enableUrlHashUpdateOnScroll && - t && - xt.getCurrentlyHighlighting() && - xt.updateUrlHashForHeader(Nr)); - let u = s?.target?.scrollingElement?.scrollTop === 0; - ((s && (s.eventPhase === 0 || s.currentTarget === null)) || u) && - (xt.updateToc(Nr), ae.scrollEndCallback?.(s)); - }, i)), - t || (wt(), (t = !0)), - (window.onhashchange = window.onscrollend = - (s) => { - wt(s); - }), - ae.scrollContainer && document.querySelector(ae.scrollContainer) - ? (document - .querySelector(ae.scrollContainer) - .addEventListener("scroll", wt, !1), - document - .querySelector(ae.scrollContainer) - .addEventListener("resize", wt, !1)) - : (document.addEventListener("scroll", wt, !1), - document.addEventListener("resize", wt, !1))); - let l = null; - ((Wo = tc((s) => { - ((a = !0), - ae.scrollSmooth && xt.disableTocAnimation(s), - xt.updateToc(Nr, s), - l && clearTimeout(l), - (l = setTimeout(() => { - xt.enableTocAnimation(); - }, ae.scrollSmoothDuration)), - setTimeout(() => { - a = !1; - }, ae.scrollSmoothDuration + 100)); - }, ae.throttleTimeout)), - ae.scrollContainer && document.querySelector(ae.scrollContainer) - ? document - .querySelector(ae.scrollContainer) - .addEventListener("click", Wo, !1) - : document.addEventListener("click", Wo, !1)); -} -function pp() { - let e = AS(ae); - e !== null && - (ae.skipRendering || (e && (e.innerHTML = "")), - ae.scrollContainer && document.querySelector(ae.scrollContainer) - ? (document - .querySelector(ae.scrollContainer) - .removeEventListener("scroll", wt, !1), - document - .querySelector(ae.scrollContainer) - .removeEventListener("resize", wt, !1), - xt && - document - .querySelector(ae.scrollContainer) - .removeEventListener("click", Wo, !1)) - : (document.removeEventListener("scroll", wt, !1), - document.removeEventListener("resize", wt, !1), - xt && document.removeEventListener("click", Wo, !1))); -} -function _6(e) { - (pp(), $S(e || ae)); -} -var T6 = Object.prototype.hasOwnProperty; -function R6(...e) { - let t = {}; - for (let r = 0; r < e.length; r++) { - let n = e[r]; - for (let o in n) T6.call(n, o) && (t[o] = n[o]); - } - return t; -} -function tc(e, t, r) { - t || (t = 250); - let n, o; - return function (...a) { - let i = this, - l = +new Date(); - n && l < n + t - ? (clearTimeout(o), - (o = setTimeout(() => { - ((n = l), e.apply(i, a)); - }, t))) - : ((n = l), e.apply(i, a)); - }; -} -function _m(e, t) { - let r; - return (...n) => { - (clearTimeout(r), (r = setTimeout(() => e.apply(this, n), t))); - }; -} -function P6(e, t, r = "auto") { - switch (r) { - case "debounce": - return _m(e, t); - case "throttle": - return tc(e, t); - default: - return t < 334 ? _m(e, t) : tc(e, t); - } -} -function I6(e) { - try { - return e.contentElement || document.querySelector(e.contentSelector); - } catch { - return ( - console.warn(`Contents element not found: ${e.contentSelector}`), - null - ); - } -} -function AS(e) { - try { - return e.tocElement || document.querySelector(e.tocSelector); - } catch { - return (console.warn(`TOC element not found: ${e.tocSelector}`), null); - } -} -var L6 = { destroy: pp, init: $S, refresh: _6 }, - Tm = L6, - B6 = T.aside(() => ({ - width: "10rem", - "@media (max-width: 768px)": { display: "none" }, - })), - N6 = T.nav(({ theme: e }) => ({ - position: "fixed", - bottom: 0, - top: 0, - width: "10rem", - paddingTop: "4rem", - paddingBottom: "2rem", - overflowY: "auto", - fontFamily: e.typography.fonts.base, - fontSize: e.typography.size.s2, - WebkitFontSmoothing: "antialiased", - MozOsxFontSmoothing: "grayscale", - WebkitTapHighlightColor: "rgba(0, 0, 0, 0)", - WebkitOverflowScrolling: "touch", - "& *": { boxSizing: "border-box" }, - "& > .toc-wrapper > .toc-list": { - paddingLeft: 0, - borderLeft: `solid 2px ${e.color.mediumlight}`, - ".toc-list": { - paddingLeft: 0, - borderLeft: `solid 2px ${e.color.mediumlight}`, - ".toc-list": { - paddingLeft: 0, - borderLeft: `solid 2px ${e.color.mediumlight}`, - }, - }, - }, - "& .toc-list-item": { - position: "relative", - listStyleType: "none", - marginLeft: 20, - paddingTop: 3, - paddingBottom: 3, - }, - "& .toc-list-item::before": { - content: '""', - position: "absolute", - height: "100%", - top: 0, - left: 0, - transform: "translateX(calc(-2px - 20px))", - borderLeft: `solid 2px ${e.color.mediumdark}`, - opacity: 0, - transition: "opacity 0.2s", - }, - "& .toc-list-item.is-active-li::before": { opacity: 1 }, - "& .toc-list-item > a": { - color: e.color.defaultText, - textDecoration: "none", - }, - "& .toc-list-item.is-active-li > a": { - fontWeight: 600, - color: e.color.secondary, - textDecoration: "none", - }, - })), - j6 = T.p(({ theme: e }) => ({ - fontWeight: 600, - fontSize: "0.875em", - color: e.textColor, - textTransform: "uppercase", - marginBottom: 10, - })), - M6 = ({ headingId: e, title: t }) => - typeof t == "string" || !t - ? h.createElement( - j6, - { as: "h2", id: e, className: t ? "" : "sb-sr-only" }, - t || "Table of contents", - ) - : h.createElement("div", { id: e }, t), - z6 = ({ - title: e, - disable: t, - headingSelector: r, - contentsSelector: n, - ignoreSelector: o, - unsafeTocbotOptions: a, - channel: i, - className: l, - }) => { - b.useEffect(() => { - if (t) return () => {}; - let u = { - tocSelector: ".toc-wrapper", - contentSelector: n ?? ".sbdocs-content", - headingSelector: r ?? "h3", - ignoreSelector: o ?? ".docs-story *, .skip-toc", - headingsOffset: 40, - scrollSmoothOffset: -40, - orderedList: !1, - onClick: (p) => { - if ( - (p.preventDefault(), p.currentTarget instanceof HTMLAnchorElement) - ) { - let [, c] = p.currentTarget.href.split("#"); - c && i.emit(gS, `#${c}`); - } - }, - ...a, - }, - d = setTimeout(() => Tm.init(u), 100); - return () => { - (clearTimeout(d), Tm.destroy()); - }; - }, [i, t, o, n, r, a]); - let s = b.useId(); - return h.createElement( - B6, - { className: l }, - t - ? null - : h.createElement( - N6, - { "aria-labelledby": s }, - h.createElement(M6, { headingId: s, title: e }), - h.createElement("div", { className: "toc-wrapper" }), - ), - ); - }; -function Ur() { - return ( - (Ur = Object.assign - ? Object.assign.bind() - : function (e) { - for (var t = 1; t < arguments.length; t++) { - var r = arguments[t]; - for (var n in r) - Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]); - } - return e; - }), - Ur.apply(this, arguments) - ); -} -var H6 = ["children", "options"], - ee = { - blockQuote: "0", - breakLine: "1", - breakThematic: "2", - codeBlock: "3", - codeFenced: "4", - codeInline: "5", - footnote: "6", - footnoteReference: "7", - gfmTask: "8", - heading: "9", - headingSetext: "10", - htmlBlock: "11", - htmlComment: "12", - htmlSelfClosing: "13", - image: "14", - link: "15", - linkAngleBraceStyleDetector: "16", - linkBareUrlDetector: "17", - linkMailtoDetector: "18", - newlineCoalescer: "19", - orderedList: "20", - paragraph: "21", - ref: "22", - refImage: "23", - refLink: "24", - table: "25", - text: "27", - textBolded: "28", - textEmphasized: "29", - textEscaped: "30", - textMarked: "31", - textStrikethroughed: "32", - unorderedList: "33", - }, - Rm; -(function (e) { - ((e[(e.MAX = 0)] = "MAX"), - (e[(e.HIGH = 1)] = "HIGH"), - (e[(e.MED = 2)] = "MED"), - (e[(e.LOW = 3)] = "LOW"), - (e[(e.MIN = 4)] = "MIN")); -})(Rm || (Rm = {})); -var Pm = [ - "allowFullScreen", - "allowTransparency", - "autoComplete", - "autoFocus", - "autoPlay", - "cellPadding", - "cellSpacing", - "charSet", - "classId", - "colSpan", - "contentEditable", - "contextMenu", - "crossOrigin", - "encType", - "formAction", - "formEncType", - "formMethod", - "formNoValidate", - "formTarget", - "frameBorder", - "hrefLang", - "inputMode", - "keyParams", - "keyType", - "marginHeight", - "marginWidth", - "maxLength", - "mediaGroup", - "minLength", - "noValidate", - "radioGroup", - "readOnly", - "rowSpan", - "spellCheck", - "srcDoc", - "srcLang", - "srcSet", - "tabIndex", - "useMap", - ].reduce((e, t) => ((e[t.toLowerCase()] = t), e), { - class: "className", - for: "htmlFor", - }), - Im = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, - U6 = ["style", "script"], - W6 = ["src", "href", "data", "formAction", "srcDoc", "action"], - V6 = - /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, - q6 = /mailto:/i, - G6 = /\n{2,}$/, - DS = /^(\s*>[\s\S]*?)(?=\n\n|$)/, - Y6 = /^ *> ?/gm, - K6 = /^(?:\[!([^\]]*)\]\n)?([\s\S]*)/, - X6 = /^ {2,}\n/, - Z6 = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, - kS = /^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/, - OS = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, - J6 = /^(`+)((?:\\`|(?!\1)`|[^`])+)\1/, - Q6 = /^(?:\n *)*\n/, - eP = /\r\n?/g, - tP = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, - rP = /^\[\^([^\]]+)]/, - nP = /\f/g, - oP = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, - aP = /^\s*?\[(x|\s)\]/, - FS = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, - _S = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, - TS = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, - rc = - /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, - iP = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, - RS = /^)/, - lP = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, - nc = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, - sP = /^\{.*\}$/, - uP = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, - cP = /^<([^ >]+@[^ >]+)>/, - dP = /^<([^ >]+:\/[^ >]+)>/, - pP = /-([a-z])?/gi, - PS = /^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, - fP = /^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/, - gP = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, - mP = /^\[([^\]]*)\] ?\[([^\]]*)\]/, - hP = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, - yP = /\t/g, - bP = /(^ *\||\| *$)/g, - vP = /^ *:-+: *$/, - xP = /^ *:-+ *$/, - EP = /^ *-+: *$/, - $l = - "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)", - wP = new RegExp(`^([*_])\\1${$l}\\1\\1(?!\\1)`), - SP = new RegExp(`^([*_])${$l}\\1(?!\\1)`), - CP = new RegExp(`^(==)${$l}\\1`), - $P = new RegExp(`^(~~)${$l}\\1`), - AP = /^\\([^0-9A-Za-z\s])/, - Lm = /\\([^0-9A-Za-z\s])/g, - DP = /^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/, - kP = /^\n+/, - OP = /^([ \t]*)/, - FP = /\\([^\\])/g, - _P = /(?:^|\n)( *)$/, - fp = "(?:\\d+\\.)", - gp = "(?:[*+-])"; -function IS(e) { - return "( *)(" + (e === 1 ? fp : gp) + ") +"; -} -var LS = IS(1), - BS = IS(2); -function NS(e) { - return new RegExp("^" + (e === 1 ? LS : BS)); -} -var TP = NS(1), - RP = NS(2); -function jS(e) { - return new RegExp( - "^" + - (e === 1 ? LS : BS) + - "[^\\n]*(?:\\n(?!\\1" + - (e === 1 ? fp : gp) + - " )[^\\n]*)*(\\n|$)", - "gm", - ); -} -var PP = jS(1), - IP = jS(2); -function MS(e) { - let t = e === 1 ? fp : gp; - return new RegExp( - "^( *)(" + - t + - ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + - t + - " (?!" + - t + - " ))\\n*|\\s*\\n*$)", - ); -} -var zS = MS(1), - HS = MS(2); -function Bm(e, t) { - let r = t === 1, - n = r ? zS : HS, - o = r ? PP : IP, - a = r ? TP : RP; - return { - match: ro(function (i, l) { - let s = _P.exec(l.prevCapture); - return s && (l.list || (!l.inline && !l.simple)) - ? n.exec((i = s[1] + i)) - : null; - }), - order: 1, - parse(i, l, s) { - let u = r ? +i[2] : void 0, - d = i[0] - .replace( - G6, - ` -`, - ) - .match(o), - p = !1; - return { - items: d.map(function (c, f) { - let g = a.exec(c)[0].length, - y = new RegExp("^ {1," + g + "}", "gm"), - x = c.replace(y, "").replace(a, ""), - v = f === d.length - 1, - C = - x.indexOf(` - -`) !== -1 || - (v && p); - p = C; - let w = s.inline, - E = s.list, - $; - ((s.list = !0), - C - ? ((s.inline = !1), - ($ = - Qo(x) + - ` - -`)) - : ((s.inline = !0), ($ = Qo(x)))); - let A = l($, s); - return ((s.inline = w), (s.list = E), A); - }), - ordered: r, - start: u, - }; - }, - render: (i, l, s) => - e( - i.ordered ? "ol" : "ul", - { key: s.key, start: i.type === ee.orderedList ? i.start : void 0 }, - i.items.map(function (u, d) { - return e("li", { key: d }, l(u, s)); - }), - ), - }; -} -var LP = new RegExp( - `^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`, - ), - BP = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, - US = [DS, kS, OS, FS, TS, _S, PS, zS, HS], - NP = [...US, /^[^\n]+(?: \n|\n{2,})/, rc, RS, nc]; -function Qo(e) { - let t = e.length; - for (; t > 0 && e[t - 1] <= " "; ) t--; - return e.slice(0, t); -} -function Co(e) { - return e - .replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a") - .replace(/[çÇ]/g, "c") - .replace(/[ðÐ]/g, "d") - .replace(/[ÈÉÊËéèêë]/g, "e") - .replace(/[ÏïÎîÍíÌì]/g, "i") - .replace(/[Ññ]/g, "n") - .replace(/[øØœŒÕõÔôÓóÒò]/g, "o") - .replace(/[ÜüÛûÚúÙù]/g, "u") - .replace(/[ŸÿÝý]/g, "y") - .replace(/[^a-z0-9- ]/gi, "") - .replace(/ /gi, "-") - .toLowerCase(); -} -function jP(e) { - return EP.test(e) - ? "right" - : vP.test(e) - ? "center" - : xP.test(e) - ? "left" - : null; -} -function Nm(e, t, r, n) { - let o = r.inTable; - r.inTable = !0; - let a = [[]], - i = ""; - function l() { - if (!i) return; - let s = a[a.length - 1]; - (s.push.apply(s, t(i, r)), (i = "")); - } - return ( - e - .trim() - .split(/(`[^`]*`|\\\||\|)/) - .filter(Boolean) - .forEach((s, u, d) => { - s.trim() === "|" && (l(), n) - ? u !== 0 && u !== d.length - 1 && a.push([]) - : (i += s); - }), - l(), - (r.inTable = o), - a - ); -} -function MP(e, t, r) { - r.inline = !0; - let n = e[2] ? e[2].replace(bP, "").split("|").map(jP) : [], - o = e[3] - ? (function (i, l, s) { - return i - .trim() - .split( - ` -`, - ) - .map(function (u) { - return Nm(u, l, s, !0); - }); - })(e[3], t, r) - : [], - a = Nm(e[1], t, r, !!o.length); - return ( - (r.inline = !1), - o.length - ? { align: n, cells: o, header: a, type: ee.table } - : { children: a, type: ee.paragraph } - ); -} -function jm(e, t) { - return e.align[t] == null ? {} : { textAlign: e.align[t] }; -} -function ro(e) { - return ((e.inline = 1), e); -} -function fr(e) { - return ro(function (t, r) { - return r.inline ? e.exec(t) : null; - }); -} -function gr(e) { - return ro(function (t, r) { - return r.inline || r.simple ? e.exec(t) : null; - }); -} -function Xt(e) { - return function (t, r) { - return r.inline || r.simple ? null : e.exec(t); - }; -} -function $o(e) { - return ro(function (t) { - return e.exec(t); - }); -} -function zP(e, t) { - if (t.inline || t.simple) return null; - let r = ""; - e.split( - ` -`, - ).every( - (o) => ( - (o += ` -`), - !US.some((a) => a.test(o)) && ((r += o), !!o.trim()) - ), - ); - let n = Qo(r); - return n == "" ? null : [r, , n]; -} -var HP = /(javascript|vbscript|data(?!:image)):/i; -function UP(e) { - try { - let t = decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g, ""); - if (HP.test(t)) return null; - } catch { - return null; - } - return e; -} -function Mm(e) { - return e.replace(FP, "$1"); -} -function Ka(e, t, r) { - let n = r.inline || !1, - o = r.simple || !1; - ((r.inline = !0), (r.simple = !0)); - let a = e(t, r); - return ((r.inline = n), (r.simple = o), a); -} -function WP(e, t, r) { - let n = r.inline || !1, - o = r.simple || !1; - ((r.inline = !1), (r.simple = !0)); - let a = e(t, r); - return ((r.inline = n), (r.simple = o), a); -} -function VP(e, t, r) { - let n = r.inline || !1; - r.inline = !1; - let o = e(t, r); - return ((r.inline = n), o); -} -var Ss = (e, t, r) => ({ children: Ka(t, e[2], r) }); -function Cs() { - return {}; -} -function $s() { - return null; -} -function qP(...e) { - return e.filter(Boolean).join(" "); -} -function As(e, t, r) { - let n = e, - o = t.split("."); - for (; o.length && ((n = n[o[0]]), n !== void 0); ) o.shift(); - return n || r; -} -function GP(e = "", t = {}) { - function r(c, f, ...g) { - let y = As(t.overrides, `${c}.props`, {}); - return t.createElement( - (function (x, v) { - let C = As(v, x); - return C - ? typeof C == "function" || (typeof C == "object" && "render" in C) - ? C - : As(v, `${x}.component`, x) - : x; - })(c, t.overrides), - Ur({}, f, y, { className: qP(f?.className, y.className) || void 0 }), - ...g, - ); - } - function n(c) { - c = c.replace(oP, ""); - let f = !1; - t.forceInline ? (f = !0) : t.forceBlock || (f = hP.test(c) === !1); - let g = u( - s( - f - ? c - : `${Qo(c).replace(kP, "")} - -`, - { inline: f }, - ), - ); - for (; typeof g[g.length - 1] == "string" && !g[g.length - 1].trim(); ) - g.pop(); - if (t.wrapper === null) return g; - let y = t.wrapper || (f ? "span" : "div"), - x; - if (g.length > 1 || t.forceWrapper) x = g; - else { - if (g.length === 1) - return ( - (x = g[0]), - typeof x == "string" ? r("span", { key: "outer" }, x) : x - ); - x = null; - } - return t.createElement(y, { key: "outer" }, x); - } - function o(c, f) { - let g = f.match(V6); - return g - ? g.reduce(function (y, x) { - let v = x.indexOf("="); - if (v !== -1) { - let C = (function (A) { - return ( - A.indexOf("-") !== -1 && - A.match(lP) === null && - (A = A.replace(pP, function (S, D) { - return D.toUpperCase(); - })), - A - ); - })(x.slice(0, v)).trim(), - w = (function (A) { - let S = A[0]; - return (S === '"' || S === "'") && - A.length >= 2 && - A[A.length - 1] === S - ? A.slice(1, -1) - : A; - })(x.slice(v + 1).trim()), - E = Pm[C] || C; - if (E === "ref") return y; - let $ = (y[E] = (function (A, S, D, F) { - return S === "style" - ? (function (k) { - let _ = [], - I = "", - L = !1, - j = !1, - B = ""; - if (!k) return _; - for (let V = 0; V < k.length; V++) { - let Y = k[V]; - if ( - ((Y !== '"' && Y !== "'") || - L || - (j - ? Y === B && ((j = !1), (B = "")) - : ((j = !0), (B = Y))), - Y === "(" && I.endsWith("url") - ? (L = !0) - : Y === ")" && L && (L = !1), - Y !== ";" || j || L) - ) - I += Y; - else { - let W = I.trim(); - if (W) { - let G = W.indexOf(":"); - if (G > 0) { - let J = W.slice(0, G).trim(), - Q = W.slice(G + 1).trim(); - _.push([J, Q]); - } - } - I = ""; - } - } - let z = I.trim(); - if (z) { - let V = z.indexOf(":"); - if (V > 0) { - let Y = z.slice(0, V).trim(), - W = z.slice(V + 1).trim(); - _.push([Y, W]); - } - } - return _; - })(D).reduce(function (k, [_, I]) { - return ( - (k[_.replace(/(-[a-z])/g, (L) => L[1].toUpperCase())] = F( - I, - A, - _, - )), - k - ); - }, {}) - : W6.indexOf(S) !== -1 - ? F(D, A, S) - : (D.match(sP) && (D = D.slice(1, D.length - 1)), - D === "true" || (D !== "false" && D)); - })(c, C, w, t.sanitizer)); - typeof $ == "string" && - (rc.test($) || nc.test($)) && - (y[E] = n($.trim())); - } else x !== "style" && (y[Pm[x] || x] = !0); - return y; - }, {}) - : null; - } - ((t.overrides = t.overrides || {}), - (t.sanitizer = t.sanitizer || UP), - (t.slugify = t.slugify || Co), - (t.namedCodesToUnicode = t.namedCodesToUnicode - ? Ur({}, Im, t.namedCodesToUnicode) - : Im), - (t.createElement = t.createElement || b.createElement)); - let a = [], - i = {}, - l = { - [ee.blockQuote]: { - match: Xt(DS), - order: 1, - parse(c, f, g) { - let [, y, x] = c[0].replace(Y6, "").match(K6); - return { alert: y, children: f(x, g) }; - }, - render(c, f, g) { - let y = { key: g.key }; - return ( - c.alert && - ((y.className = - "markdown-alert-" + t.slugify(c.alert.toLowerCase(), Co)), - c.children.unshift({ - attrs: {}, - children: [{ type: ee.text, text: c.alert }], - noInnerParse: !0, - type: ee.htmlBlock, - tag: "header", - })), - r("blockquote", y, f(c.children, g)) - ); - }, - }, - [ee.breakLine]: { - match: $o(X6), - order: 1, - parse: Cs, - render: (c, f, g) => r("br", { key: g.key }), - }, - [ee.breakThematic]: { - match: Xt(Z6), - order: 1, - parse: Cs, - render: (c, f, g) => r("hr", { key: g.key }), - }, - [ee.codeBlock]: { - match: Xt(OS), - order: 0, - parse: (c) => ({ - lang: void 0, - text: Qo(c[0].replace(/^ {4}/gm, "")).replace(Lm, "$1"), - }), - render: (c, f, g) => - r( - "pre", - { key: g.key }, - r( - "code", - Ur({}, c.attrs, { className: c.lang ? `lang-${c.lang}` : "" }), - c.text, - ), - ), - }, - [ee.codeFenced]: { - match: Xt(kS), - order: 0, - parse: (c) => ({ - attrs: o("code", c[3] || ""), - lang: c[2] || void 0, - text: c[4], - type: ee.codeBlock, - }), - }, - [ee.codeInline]: { - match: gr(J6), - order: 3, - parse: (c) => ({ text: c[2].replace(Lm, "$1") }), - render: (c, f, g) => r("code", { key: g.key }, c.text), - }, - [ee.footnote]: { - match: Xt(tP), - order: 0, - parse: (c) => (a.push({ footnote: c[2], identifier: c[1] }), {}), - render: $s, - }, - [ee.footnoteReference]: { - match: fr(rP), - order: 1, - parse: (c) => ({ target: `#${t.slugify(c[1], Co)}`, text: c[1] }), - render: (c, f, g) => - r( - "a", - { key: g.key, href: t.sanitizer(c.target, "a", "href") }, - r("sup", { key: g.key }, c.text), - ), - }, - [ee.gfmTask]: { - match: fr(aP), - order: 1, - parse: (c) => ({ completed: c[1].toLowerCase() === "x" }), - render: (c, f, g) => - r("input", { - checked: c.completed, - key: g.key, - readOnly: !0, - type: "checkbox", - }), - }, - [ee.heading]: { - match: Xt(t.enforceAtxHeadings ? _S : FS), - order: 1, - parse: (c, f, g) => ({ - children: Ka(f, c[2], g), - id: t.slugify(c[2], Co), - level: c[1].length, - }), - render: (c, f, g) => - r(`h${c.level}`, { id: c.id, key: g.key }, f(c.children, g)), - }, - [ee.headingSetext]: { - match: Xt(TS), - order: 0, - parse: (c, f, g) => ({ - children: Ka(f, c[1], g), - level: c[2] === "=" ? 1 : 2, - type: ee.heading, - }), - }, - [ee.htmlBlock]: { - match: $o(rc), - order: 1, - parse(c, f, g) { - let [, y] = c[3].match(OP), - x = new RegExp(`^${y}`, "gm"), - v = c[3].replace(x, ""), - C = ((w = v), NP.some((D) => D.test(w)) ? VP : Ka); - var w; - let E = c[1].toLowerCase(), - $ = U6.indexOf(E) !== -1, - A = ($ ? E : c[1]).trim(), - S = { attrs: o(A, c[2]), noInnerParse: $, tag: A }; - return ( - (g.inAnchor = g.inAnchor || E === "a"), - $ ? (S.text = c[3]) : (S.children = C(f, v, g)), - (g.inAnchor = !1), - S - ); - }, - render: (c, f, g) => - r( - c.tag, - Ur({ key: g.key }, c.attrs), - c.text || (c.children ? f(c.children, g) : ""), - ), - }, - [ee.htmlSelfClosing]: { - match: $o(nc), - order: 1, - parse(c) { - let f = c[1].trim(); - return { attrs: o(f, c[2] || ""), tag: f }; - }, - render: (c, f, g) => r(c.tag, Ur({}, c.attrs, { key: g.key })), - }, - [ee.htmlComment]: { - match: $o(RS), - order: 1, - parse: () => ({}), - render: $s, - }, - [ee.image]: { - match: gr(BP), - order: 1, - parse: (c) => ({ alt: c[1], target: Mm(c[2]), title: c[3] }), - render: (c, f, g) => - r("img", { - key: g.key, - alt: c.alt || void 0, - title: c.title || void 0, - src: t.sanitizer(c.target, "img", "src"), - }), - }, - [ee.link]: { - match: fr(LP), - order: 3, - parse: (c, f, g) => ({ - children: WP(f, c[1], g), - target: Mm(c[2]), - title: c[3], - }), - render: (c, f, g) => - r( - "a", - { - key: g.key, - href: t.sanitizer(c.target, "a", "href"), - title: c.title, - }, - f(c.children, g), - ), - }, - [ee.linkAngleBraceStyleDetector]: { - match: fr(dP), - order: 0, - parse: (c) => ({ - children: [{ text: c[1], type: ee.text }], - target: c[1], - type: ee.link, - }), - }, - [ee.linkBareUrlDetector]: { - match: ro((c, f) => - f.inAnchor || t.disableAutoLink ? null : fr(uP)(c, f), - ), - order: 0, - parse: (c) => ({ - children: [{ text: c[1], type: ee.text }], - target: c[1], - title: void 0, - type: ee.link, - }), - }, - [ee.linkMailtoDetector]: { - match: fr(cP), - order: 0, - parse(c) { - let f = c[1], - g = c[1]; - return ( - q6.test(g) || (g = "mailto:" + g), - { - children: [{ text: f.replace("mailto:", ""), type: ee.text }], - target: g, - type: ee.link, - } - ); - }, - }, - [ee.orderedList]: Bm(r, 1), - [ee.unorderedList]: Bm(r, 2), - [ee.newlineCoalescer]: { - match: Xt(Q6), - order: 3, - parse: Cs, - render: () => ` -`, - }, - [ee.paragraph]: { - match: ro(zP), - order: 3, - parse: Ss, - render: (c, f, g) => r("p", { key: g.key }, f(c.children, g)), - }, - [ee.ref]: { - match: fr(fP), - order: 0, - parse: (c) => ((i[c[1]] = { target: c[2], title: c[4] }), {}), - render: $s, - }, - [ee.refImage]: { - match: gr(gP), - order: 0, - parse: (c) => ({ alt: c[1] || void 0, ref: c[2] }), - render: (c, f, g) => - i[c.ref] - ? r("img", { - key: g.key, - alt: c.alt, - src: t.sanitizer(i[c.ref].target, "img", "src"), - title: i[c.ref].title, - }) - : null, - }, - [ee.refLink]: { - match: fr(mP), - order: 0, - parse: (c, f, g) => ({ - children: f(c[1], g), - fallbackChildren: c[0], - ref: c[2], - }), - render: (c, f, g) => - i[c.ref] - ? r( - "a", - { - key: g.key, - href: t.sanitizer(i[c.ref].target, "a", "href"), - title: i[c.ref].title, - }, - f(c.children, g), - ) - : r("span", { key: g.key }, c.fallbackChildren), - }, - [ee.table]: { - match: Xt(PS), - order: 1, - parse: MP, - render(c, f, g) { - let y = c; - return r( - "table", - { key: g.key }, - r( - "thead", - null, - r( - "tr", - null, - y.header.map(function (x, v) { - return r("th", { key: v, style: jm(y, v) }, f(x, g)); - }), - ), - ), - r( - "tbody", - null, - y.cells.map(function (x, v) { - return r( - "tr", - { key: v }, - x.map(function (C, w) { - return r("td", { key: w, style: jm(y, w) }, f(C, g)); - }), - ); - }), - ), - ); - }, - }, - [ee.text]: { - match: $o(DP), - order: 4, - parse: (c) => ({ - text: c[0].replace(iP, (f, g) => - t.namedCodesToUnicode[g] ? t.namedCodesToUnicode[g] : f, - ), - }), - render: (c) => c.text, - }, - [ee.textBolded]: { - match: gr(wP), - order: 2, - parse: (c, f, g) => ({ children: f(c[2], g) }), - render: (c, f, g) => r("strong", { key: g.key }, f(c.children, g)), - }, - [ee.textEmphasized]: { - match: gr(SP), - order: 3, - parse: (c, f, g) => ({ children: f(c[2], g) }), - render: (c, f, g) => r("em", { key: g.key }, f(c.children, g)), - }, - [ee.textEscaped]: { - match: gr(AP), - order: 1, - parse: (c) => ({ text: c[1], type: ee.text }), - }, - [ee.textMarked]: { - match: gr(CP), - order: 3, - parse: Ss, - render: (c, f, g) => r("mark", { key: g.key }, f(c.children, g)), - }, - [ee.textStrikethroughed]: { - match: gr($P), - order: 3, - parse: Ss, - render: (c, f, g) => r("del", { key: g.key }, f(c.children, g)), - }, - }; - t.disableParsingRawHTML === !0 && - (delete l[ee.htmlBlock], delete l[ee.htmlSelfClosing]); - let s = (function (c) { - let f = Object.keys(c); - function g(y, x) { - let v, - C, - w = [], - E = "", - $ = ""; - for (x.prevCapture = x.prevCapture || ""; y; ) { - let A = 0; - for (; A < f.length; ) { - if (((E = f[A]), (v = c[E]), x.inline && !v.match.inline)) { - A++; - continue; - } - let S = v.match(y, x); - if (S) { - (($ = S[0]), - (x.prevCapture += $), - (y = y.substring($.length)), - (C = v.parse(S, g, x)), - C.type == null && (C.type = E), - w.push(C)); - break; - } - A++; - } - } - return ((x.prevCapture = ""), w); - } - return ( - f.sort(function (y, x) { - let v = c[y].order, - C = c[x].order; - return v !== C ? v - C : y < x ? -1 : 1; - }), - function (y, x) { - return g( - (function (v) { - return v - .replace( - eP, - ` -`, - ) - .replace(nP, "") - .replace(yP, " "); - })(y), - x, - ); - } - ); - })(l), - u = - ((d = (function (c, f) { - return function (g, y, x) { - let v = c[g.type].render; - return f ? f(() => v(g, y, x), g, y, x) : v(g, y, x); - }; - })(l, t.renderRule)), - function c(f, g = {}) { - if (Array.isArray(f)) { - let y = g.key, - x = [], - v = !1; - for (let C = 0; C < f.length; C++) { - g.key = C; - let w = c(f[C], g), - E = typeof w == "string"; - (E && v ? (x[x.length - 1] += w) : w !== null && x.push(w), - (v = E)); - } - return ((g.key = y), x); - } - return d(f, c, g); - }); - var d; - let p = n(e); - return a.length - ? r( - "div", - null, - p, - r( - "footer", - { key: "footer" }, - a.map(function (c) { - return r( - "div", - { id: t.slugify(c.identifier, Co), key: c.identifier }, - c.identifier, - u(s(c.footnote, { inline: !0 })), - ); - }), - ), - ) - : p; -} -var WS = (e) => { - let { children: t = "", options: r } = e, - n = (function (o, a) { - if (o == null) return {}; - var i, - l, - s = {}, - u = Object.keys(o); - for (l = 0; l < u.length; l++) - a.indexOf((i = u[l])) >= 0 || (s[i] = o[i]); - return s; - })(e, H6); - return b.cloneElement(GP(t, r), n); - }, - YP = T.label(({ theme: e }) => ({ - lineHeight: "18px", - alignItems: "center", - marginBottom: 8, - display: "inline-block", - position: "relative", - whiteSpace: "nowrap", - background: e.boolean.background, - borderRadius: "3em", - padding: 1, - '&[aria-disabled="true"]': { - opacity: 0.5, - input: { cursor: "not-allowed" }, - }, - input: { - appearance: "none", - width: "100%", - height: "100%", - position: "absolute", - left: 0, - top: 0, - margin: 0, - padding: 0, - border: "none", - background: "transparent", - cursor: "pointer", - borderRadius: "3em", - "&:focus": { - outline: "none", - boxShadow: `${e.color.secondary} 0 0 0 1px inset !important`, - }, - "@media (forced-colors: active)": { - "&:focus": { outline: "1px solid highlight" }, - }, - }, - span: { - textAlign: "center", - fontSize: e.typography.size.s1, - fontWeight: e.typography.weight.bold, - lineHeight: "1", - cursor: "pointer", - display: "inline-block", - padding: "7px 15px", - transition: "all 100ms ease-out", - userSelect: "none", - borderRadius: "3em", - color: ye(0.5, e.color.defaultText), - background: "transparent", - "&:hover": { boxShadow: `${Oa(0.3, e.appBorderColor)} 0 0 0 1px inset` }, - "&:active": { - boxShadow: `${Oa(0.05, e.appBorderColor)} 0 0 0 2px inset`, - color: Oa(1, e.appBorderColor), - }, - "&:first-of-type": { paddingRight: 8 }, - "&:last-of-type": { paddingLeft: 8 }, - }, - "input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type": - { - background: e.boolean.selectedBackground, - boxShadow: - e.base === "light" - ? `${Oa(0.1, e.appBorderColor)} 0 0 2px` - : `${e.appBorderColor} 0 0 0 1px`, - color: e.color.defaultText, - padding: "7px 15px", - "@media (forced-colors: active)": { textDecoration: "underline" }, - }, - })), - KP = (e) => e === "true", - XP = ({ - name: e, - value: t, - onChange: r, - onBlur: n, - onFocus: o, - argType: a, - }) => { - let i = b.useCallback(() => r(!1), [r]), - l = !!a?.table?.readonly; - if (t === void 0) - return h.createElement( - _r, - { - variant: "outline", - size: "medium", - id: Vi(e), - onClick: i, - disabled: l, - }, - "Set boolean", - ); - let s = Ft(e), - u = typeof t == "string" ? KP(t) : t; - return h.createElement( - YP, - { "aria-disabled": l, htmlFor: s, "aria-label": e }, - h.createElement("input", { - id: s, - type: "checkbox", - onChange: (d) => r(d.target.checked), - checked: u, - role: "switch", - disabled: l, - name: e, - onBlur: n, - onFocus: o, - }), - h.createElement("span", { "aria-hidden": "true" }, "False"), - h.createElement("span", { "aria-hidden": "true" }, "True"), - ); - }, - ZP = (e) => { - let [t, r, n] = e.split("-"), - o = new Date(); - return ( - o.setFullYear(parseInt(t, 10), parseInt(r, 10) - 1, parseInt(n, 10)), - o - ); - }, - JP = (e) => { - let [t, r] = e.split(":"), - n = new Date(); - return (n.setHours(parseInt(t, 10)), n.setMinutes(parseInt(r, 10)), n); - }, - QP = (e) => { - let t = new Date(e), - r = `000${t.getFullYear()}`.slice(-4), - n = `0${t.getMonth() + 1}`.slice(-2), - o = `0${t.getDate()}`.slice(-2); - return `${r}-${n}-${o}`; - }, - e8 = (e) => { - let t = new Date(e), - r = `0${t.getHours()}`.slice(-2), - n = `0${t.getMinutes()}`.slice(-2); - return `${r}:${n}`; - }, - zm = T(uo.Input)(({ readOnly: e }) => ({ opacity: e ? 0.5 : 1 })), - t8 = T.div(({ theme: e }) => ({ - flex: 1, - display: "flex", - input: { - marginLeft: 10, - flex: 1, - height: 32, - "&::-webkit-calendar-picker-indicator": { - opacity: 0.5, - height: 12, - filter: e.base === "light" ? void 0 : "invert(1)", - }, - }, - "input:first-of-type": { marginLeft: 0, flexGrow: 4 }, - "input:last-of-type": { flexGrow: 3 }, - })), - r8 = ({ - name: e, - value: t, - onChange: r, - onFocus: n, - onBlur: o, - argType: a, - }) => { - let [i, l] = b.useState(!0), - s = b.useRef(), - u = b.useRef(), - d = !!a?.table?.readonly; - b.useEffect(() => { - i !== !1 && - (s && s.current && (s.current.value = t ? QP(t) : ""), - u && u.current && (u.current.value = t ? e8(t) : "")); - }, [t]); - let p = (g) => { - if (!g.target.value) return r(); - let y = ZP(g.target.value), - x = new Date(t ?? ""); - x.setFullYear(y.getFullYear(), y.getMonth(), y.getDate()); - let v = x.getTime(); - (v && r(v), l(!!v)); - }, - c = (g) => { - if (!g.target.value) return r(); - let y = JP(g.target.value), - x = new Date(t ?? ""); - (x.setHours(y.getHours()), x.setMinutes(y.getMinutes())); - let v = x.getTime(); - (v && r(v), l(!!v)); - }, - f = Ft(e); - return h.createElement( - t8, - null, - h.createElement(zm, { - type: "date", - max: "9999-12-31", - ref: s, - id: `${f}-date`, - name: `${f}-date`, - readOnly: d, - onChange: p, - onFocus: n, - onBlur: o, - }), - h.createElement(zm, { - type: "time", - id: `${f}-time`, - name: `${f}-time`, - ref: u, - onChange: c, - readOnly: d, - onFocus: n, - onBlur: o, - }), - i ? null : h.createElement("div", null, "invalid"), - ); - }, - n8 = T.label({ display: "flex" }), - o8 = (e) => { - let t = parseFloat(e); - return Number.isNaN(t) ? void 0 : t; - }, - a8 = T(uo.Input)(({ readOnly: e }) => ({ opacity: e ? 0.5 : 1 })), - i8 = ({ - name: e, - value: t, - onChange: r, - min: n, - max: o, - step: a, - onBlur: i, - onFocus: l, - argType: s, - }) => { - let [u, d] = b.useState(typeof t == "number" ? t : ""), - [p, c] = b.useState(!1), - [f, g] = b.useState(null), - y = !!s?.table?.readonly, - x = b.useCallback( - (w) => { - d(w.target.value); - let E = parseFloat(w.target.value); - Number.isNaN(E) - ? g(new Error(`'${w.target.value}' is not a number`)) - : (r(E), g(null)); - }, - [r, g], - ), - v = b.useCallback(() => { - (d("0"), r(0), c(!0)); - }, [c]), - C = b.useRef(null); - return ( - b.useEffect(() => { - p && C.current && C.current.select(); - }, [p]), - b.useEffect(() => { - let w = typeof t == "number" ? t : ""; - u !== w && d(w); - }, [t]), - t === void 0 - ? h.createElement( - _r, - { - variant: "outline", - size: "medium", - id: Vi(e), - onClick: v, - disabled: y, - }, - "Set number", - ) - : h.createElement( - n8, - null, - h.createElement(a8, { - ref: C, - id: Ft(e), - type: "number", - onChange: x, - size: "flex", - placeholder: "Edit number...", - value: u, - valid: f ? "error" : void 0, - autoFocus: p, - readOnly: y, - name: e, - min: n, - max: o, - step: a, - onFocus: l, - onBlur: i, - }), - ) - ); - }, - VS = (e, t) => { - let r = t && Object.entries(t).find(([n, o]) => o === e); - return r ? r[0] : void 0; - }, - oc = (e, t) => - e && t - ? Object.entries(t) - .filter((r) => e.includes(r[1])) - .map((r) => r[0]) - : [], - qS = (e, t) => e && t && e.map((r) => t[r]), - l8 = T.div( - ({ isInline: e }) => - e - ? { - display: "flex", - flexWrap: "wrap", - alignItems: "flex-start", - label: { display: "inline-flex", marginRight: 15 }, - } - : { label: { display: "flex" } }, - (e) => { - if (e["aria-readonly"] === "true") - return { input: { cursor: "not-allowed" } }; - }, - ), - s8 = T.span({ "[aria-readonly=true] &": { opacity: 0.5 } }), - u8 = T.label({ - lineHeight: "20px", - alignItems: "center", - marginBottom: 8, - "&:last-child": { marginBottom: 0 }, - input: { margin: 0, marginRight: 6 }, - }), - Hm = ({ - name: e, - options: t, - value: r, - onChange: n, - isInline: o, - argType: a, - }) => { - if (!t) - return ( - cp.warn(`Checkbox with no options: ${e}`), - h.createElement(h.Fragment, null, "-") - ); - let i = oc(r || [], t), - [l, s] = b.useState(i), - u = !!a?.table?.readonly, - d = (c) => { - let f = c.target.value, - g = [...l]; - (g.includes(f) ? g.splice(g.indexOf(f), 1) : g.push(f), - n(qS(g, t)), - s(g)); - }; - b.useEffect(() => { - s(oc(r || [], t)); - }, [r]); - let p = Ft(e); - return h.createElement( - l8, - { "aria-readonly": u, isInline: o }, - Object.keys(t).map((c, f) => { - let g = `${p}-${f}`; - return h.createElement( - u8, - { key: g, htmlFor: g }, - h.createElement("input", { - type: "checkbox", - disabled: u, - id: g, - name: g, - value: c, - onChange: d, - checked: l?.includes(c), - }), - h.createElement(s8, null, c), - ); - }), - ); - }, - c8 = T.div( - ({ isInline: e }) => - e - ? { - display: "flex", - flexWrap: "wrap", - alignItems: "flex-start", - label: { display: "inline-flex", marginRight: 15 }, - } - : { label: { display: "flex" } }, - (e) => { - if (e["aria-readonly"] === "true") - return { input: { cursor: "not-allowed" } }; - }, - ), - d8 = T.span({ "[aria-readonly=true] &": { opacity: 0.5 } }), - p8 = T.label({ - lineHeight: "20px", - alignItems: "center", - marginBottom: 8, - "&:last-child": { marginBottom: 0 }, - input: { margin: 0, marginRight: 6 }, - }), - Um = ({ - name: e, - options: t, - value: r, - onChange: n, - isInline: o, - argType: a, - }) => { - if (!t) - return ( - cp.warn(`Radio with no options: ${e}`), - h.createElement(h.Fragment, null, "-") - ); - let i = VS(r, t), - l = Ft(e), - s = !!a?.table?.readonly; - return h.createElement( - c8, - { "aria-readonly": s, isInline: o }, - Object.keys(t).map((u, d) => { - let p = `${l}-${d}`; - return h.createElement( - p8, - { key: p, htmlFor: p }, - h.createElement("input", { - type: "radio", - id: p, - name: l, - disabled: s, - value: u, - onChange: (c) => n(t[c.currentTarget.value]), - checked: u === i, - }), - h.createElement(d8, null, u), - ); - }), - ); - }, - f8 = { - appearance: "none", - border: "0 none", - boxSizing: "inherit", - display: " block", - margin: " 0", - background: "transparent", - padding: 0, - fontSize: "inherit", - position: "relative", - }, - GS = T.select(f8, ({ theme: e }) => ({ - boxSizing: "border-box", - position: "relative", - padding: "6px 10px", - width: "100%", - color: e.input.color || "inherit", - background: e.input.background, - borderRadius: e.input.borderRadius, - boxShadow: `${e.input.border} 0 0 0 1px inset`, - fontSize: e.typography.size.s2 - 1, - lineHeight: "20px", - "&:focus": { - boxShadow: `${e.color.secondary} 0 0 0 1px inset`, - outline: "none", - }, - "&[disabled]": { cursor: "not-allowed", opacity: 0.5 }, - "::placeholder": { color: e.textMutedColor }, - "&[multiple]": { - overflow: "auto", - padding: 0, - option: { - display: "block", - padding: "6px 10px", - marginLeft: 1, - marginRight: 1, - }, - }, - })), - YS = T.span(({ theme: e }) => ({ - display: "inline-block", - lineHeight: "normal", - overflow: "hidden", - position: "relative", - verticalAlign: "top", - width: "100%", - svg: { - position: "absolute", - zIndex: 1, - pointerEvents: "none", - height: "12px", - marginTop: "-6px", - right: "12px", - top: "50%", - fill: e.textMutedColor, - path: { fill: e.textMutedColor }, - }, - })), - Wm = "Choose option...", - g8 = ({ name: e, value: t, options: r, onChange: n, argType: o }) => { - let a = (u) => { - n(r[u.currentTarget.value]); - }, - i = VS(t, r) || Wm, - l = Ft(e), - s = !!o?.table?.readonly; - return h.createElement( - YS, - null, - h.createElement(fS, null), - h.createElement( - GS, - { disabled: s, id: l, value: i, onChange: a }, - h.createElement("option", { key: "no-selection", disabled: !0 }, Wm), - Object.keys(r).map((u) => - h.createElement("option", { key: u, value: u }, u), - ), - ), - ); - }, - m8 = ({ name: e, value: t, options: r, onChange: n, argType: o }) => { - let a = (u) => { - let d = Array.from(u.currentTarget.options) - .filter((p) => p.selected) - .map((p) => p.value); - n(qS(d, r)); - }, - i = oc(t, r), - l = Ft(e), - s = !!o?.table?.readonly; - return h.createElement( - YS, - null, - h.createElement( - GS, - { disabled: s, id: l, multiple: !0, value: i, onChange: a }, - Object.keys(r).map((u) => - h.createElement("option", { key: u, value: u }, u), - ), - ), - ); - }, - Vm = (e) => { - let { name: t, options: r } = e; - return r - ? e.isMulti - ? h.createElement(m8, { ...e }) - : h.createElement(g8, { ...e }) - : (cp.warn(`Select with no options: ${t}`), - h.createElement(h.Fragment, null, "-")); - }, - h8 = (e, t) => - Array.isArray(e) - ? e.reduce((r, n) => ((r[t?.[n] || String(n)] = n), r), {}) - : e, - y8 = { - check: Hm, - "inline-check": Hm, - radio: Um, - "inline-radio": Um, - select: Vm, - "multi-select": Vm, - }, - yn = (e) => { - let { type: t = "select", labels: r, argType: n } = e, - o = { - ...e, - argType: n, - options: n ? h8(n.options, r) : {}, - isInline: t.includes("inline"), - isMulti: t.includes("multi"), - }, - a = y8[t]; - if (a) return h.createElement(a, { ...o }); - throw new Error(`Unknown options type: ${t}`); - }, - b8 = T.div(({ theme: e }) => ({ - position: "relative", - ":hover": { - "& > .rejt-accordion-button::after": { background: e.color.secondary }, - "& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)": { - opacity: 1, - }, - }, - })), - v8 = T.button(({ theme: e }) => ({ - padding: 0, - background: "transparent", - border: "none", - marginRight: "3px", - lineHeight: "22px", - color: e.color.secondary, - "::after": { - content: '""', - position: "absolute", - top: 0, - display: "block", - width: "100%", - marginLeft: "-1rem", - height: "22px", - background: "transparent", - borderRadius: 4, - transition: "background 0.2s", - opacity: 0.1, - paddingRight: "20px", - }, - "::before": { content: '""', position: "absolute" }, - '&[aria-expanded="true"]::before': { - left: -10, - top: 10, - borderTop: "3px solid rgba(153,153,153,0.6)", - borderLeft: "3px solid transparent", - borderRight: "3px solid transparent", - }, - '&[aria-expanded="false"]::before': { - left: -8, - top: 8, - borderTop: "3px solid transparent", - borderBottom: "3px solid transparent", - borderLeft: "3px solid rgba(153,153,153,0.6)", - }, - })), - x8 = T.div({ display: "inline" }); -function KS({ children: e, name: t, collapsed: r, keyPath: n, deep: o, ...a }) { - let i = `${n.at(-1) ?? "root"}-${t}-${o}`, - l = { trigger: `${i}-trigger`, region: `${i}-region` }, - s = n.length > 0 ? "li" : "div"; - return h.createElement( - b8, - { as: s }, - h.createElement( - v8, - { - type: "button", - "aria-expanded": !r, - id: l.trigger, - "aria-controls": l.region, - className: "rejt-accordion-button", - ...a, - }, - t, - " :", - ), - h.createElement( - x8, - { - role: "region", - id: l.region, - "aria-labelledby": l.trigger, - className: "rejt-accordion-region", - }, - e, - ), - ); -} -var E8 = "Error", - w8 = "Object", - S8 = "Array", - C8 = "String", - $8 = "Number", - A8 = "Boolean", - D8 = "Date", - k8 = "Null", - O8 = "Undefined", - F8 = "Function", - _8 = "Symbol", - XS = "ADD_DELTA_TYPE", - ZS = "REMOVE_DELTA_TYPE", - JS = "UPDATE_DELTA_TYPE", - mp = "value", - T8 = "key"; -function Gr(e) { - return e !== null && - typeof e == "object" && - !Array.isArray(e) && - typeof e[Symbol.iterator] == "function" - ? "Iterable" - : Object.prototype.toString.call(e).slice(8, -1); -} -function QS(e, t) { - let r = Gr(e), - n = Gr(t); - return (r === "Function" || n === "Function") && n !== r; -} -var hp = class extends b.Component { - constructor(e) { - (super(e), - (this.state = { inputRefKey: null, inputRefValue: null }), - (this.refInputValue = this.refInputValue.bind(this)), - (this.refInputKey = this.refInputKey.bind(this)), - (this.onKeydown = this.onKeydown.bind(this)), - (this.onSubmit = this.onSubmit.bind(this))); - } - componentDidMount() { - let { inputRefKey: e, inputRefValue: t } = this.state, - { onlyValue: r } = this.props; - (e && typeof e.focus == "function" && e.focus(), - r && t && typeof t.focus == "function" && t.focus()); - } - onKeydown(e) { - if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.repeat) return; - let { inputRefKey: t, inputRefValue: r } = this.state, - { addButtonElement: n, handleCancel: o } = this.props; - [t, r, n].some((a) => a === e.target) && - ((e.code === "Enter" || e.key === "Enter") && - (e.preventDefault(), this.onSubmit()), - (e.code === "Escape" || e.key === "Escape") && (e.preventDefault(), o())); - } - onSubmit() { - let { - handleAdd: e, - onlyValue: t, - onSubmitValueParser: r, - keyPath: n, - deep: o, - } = this.props, - { inputRefKey: a, inputRefValue: i } = this.state, - l = {}; - if (!t) { - if (!a.value) return; - l.key = a.value; - } - ((l.newValue = r(!1, n, o, l.key, i.value)), e(l)); - } - refInputKey(e) { - this.state.inputRefKey = e; - } - refInputValue(e) { - this.state.inputRefValue = e; - } - render() { - let { - handleCancel: e, - onlyValue: t, - addButtonElement: r, - cancelButtonElement: n, - inputElementGenerator: o, - keyPath: a, - deep: i, - } = this.props, - l = r && b.cloneElement(r, { onClick: this.onSubmit }), - s = n && b.cloneElement(n, { onClick: e }), - u = o(mp, a, i), - d = b.cloneElement(u, { - placeholder: "Value", - ref: this.refInputValue, - onKeyDown: this.onKeydown, - }), - p = null; - if (!t) { - let c = o(T8, a, i); - p = b.cloneElement(c, { - placeholder: "Key", - ref: this.refInputKey, - onKeyDown: this.onKeydown, - }); - } - return h.createElement( - "span", - { className: "rejt-add-value-node" }, - p, - d, - l, - s, - ); - } -}; -hp.defaultProps = { - onlyValue: !1, - addButtonElement: h.createElement("button", null, "+"), - cancelButtonElement: h.createElement("button", null, "c"), -}; -var e2 = class extends b.Component { - constructor(e) { - super(e); - let t = [...(e.keyPath || []), e.name]; - ((this.state = { - data: e.data, - name: e.name, - keyPath: t ?? [], - deep: e.deep ?? 0, - nextDeep: (e.deep ?? 0) + 1, - collapsed: e.isCollapsed(t, e.deep ?? 0, e.data), - addFormVisible: !1, - }), - (this.handleCollapseMode = this.handleCollapseMode.bind(this)), - (this.handleRemoveItem = this.handleRemoveItem.bind(this)), - (this.handleAddMode = this.handleAddMode.bind(this)), - (this.handleAddValueAdd = this.handleAddValueAdd.bind(this)), - (this.handleAddValueCancel = this.handleAddValueCancel.bind(this)), - (this.handleEditValue = this.handleEditValue.bind(this)), - (this.onChildUpdate = this.onChildUpdate.bind(this)), - (this.renderCollapsed = this.renderCollapsed.bind(this)), - (this.renderNotCollapsed = this.renderNotCollapsed.bind(this))); - } - static getDerivedStateFromProps(e, t) { - return e.data !== t.data ? { data: e.data } : null; - } - onChildUpdate(e, t) { - let { data: r, keyPath: n = [] } = this.state; - ((r[e] = t), this.setState({ data: r })); - let { onUpdate: o } = this.props, - a = n.length; - o(n[a - 1], r); - } - handleAddMode() { - this.setState({ addFormVisible: !0 }); - } - handleCollapseMode() { - this.setState((e) => ({ collapsed: !e.collapsed })); - } - handleRemoveItem(e) { - return () => { - let { beforeRemoveAction: t, logger: r } = this.props, - { data: n, keyPath: o, nextDeep: a } = this.state, - i = n[e]; - (t || Promise.resolve.bind(Promise))(e, o, a, i) - .then(() => { - let l = { keyPath: o, deep: a, key: e, oldValue: i, type: ZS }; - (n.splice(e, 1), this.setState({ data: n })); - let { onUpdate: s, onDeltaUpdate: u } = this.props; - (s(o[o.length - 1], n), u(l)); - }) - .catch(r.error); - }; - } - handleAddValueAdd({ key: e, newValue: t }) { - let { data: r, keyPath: n = [], nextDeep: o } = this.state, - { beforeAddAction: a, logger: i } = this.props; - (a || Promise.resolve.bind(Promise))(e, n, o, t) - .then(() => { - ((r[e] = t), this.setState({ data: r }), this.handleAddValueCancel()); - let { onUpdate: l, onDeltaUpdate: s } = this.props; - (l(n[n.length - 1], r), - s({ type: XS, keyPath: n, deep: o, key: e, newValue: t })); - }) - .catch(i.error); - } - handleAddValueCancel() { - this.setState({ addFormVisible: !1 }); - } - handleEditValue({ key: e, value: t }) { - return new Promise((r, n) => { - let { beforeUpdateAction: o } = this.props, - { data: a, keyPath: i, nextDeep: l } = this.state, - s = a[e]; - (o || Promise.resolve.bind(Promise))(e, i, l, s, t) - .then(() => { - ((a[e] = t), this.setState({ data: a })); - let { onUpdate: u, onDeltaUpdate: d } = this.props; - (u(i[i.length - 1], a), - d({ - type: JS, - keyPath: i, - deep: l, - key: e, - newValue: t, - oldValue: s, - }), - r(void 0)); - }) - .catch(n); - }); - } - renderCollapsed() { - let { name: e, data: t, keyPath: r, deep: n } = this.state, - { - handleRemove: o, - readOnly: a, - getStyle: i, - dataType: l, - minusMenuElement: s, - } = this.props, - { minus: u, collapsed: d } = i(e, t, r, n, l), - p = a(e, t, r, n, l), - c = - s && - b.cloneElement(s, { - onClick: o, - className: "rejt-minus-menu", - style: u, - "aria-label": `remove the array '${String(e)}'`, - }); - return h.createElement( - h.Fragment, - null, - h.createElement( - "span", - { style: d }, - "[...] ", - t.length, - " ", - t.length === 1 ? "item" : "items", - ), - !p && c, - ); - } - renderNotCollapsed() { - let { - name: e, - data: t, - keyPath: r, - deep: n, - addFormVisible: o, - nextDeep: a, - } = this.state, - { - isCollapsed: i, - handleRemove: l, - onDeltaUpdate: s, - readOnly: u, - getStyle: d, - dataType: p, - addButtonElement: c, - cancelButtonElement: f, - inputElementGenerator: g, - textareaElementGenerator: y, - minusMenuElement: x, - plusMenuElement: v, - beforeRemoveAction: C, - beforeAddAction: w, - beforeUpdateAction: E, - logger: $, - onSubmitValueParser: A, - } = this.props, - { minus: S, plus: D, delimiter: F, ul: k, addForm: _ } = d(e, t, r, n, p), - I = u(e, t, r, n, p), - L = - v && - b.cloneElement(v, { - onClick: this.handleAddMode, - className: "rejt-plus-menu", - style: D, - "aria-label": `add a new item to the '${String(e)}' array`, - }), - j = - x && - b.cloneElement(x, { - onClick: l, - className: "rejt-minus-menu", - style: S, - "aria-label": `remove the array '${String(e)}'`, - }); - return h.createElement( - h.Fragment, - null, - h.createElement( - "span", - { className: "rejt-not-collapsed-delimiter", style: F }, - "[", - ), - !o && L, - h.createElement( - "ul", - { className: "rejt-not-collapsed-list", style: k }, - t.map((B, z) => - h.createElement(Al, { - key: z, - name: z.toString(), - data: B, - keyPath: r, - deep: a, - isCollapsed: i, - handleRemove: this.handleRemoveItem(z), - handleUpdateValue: this.handleEditValue, - onUpdate: this.onChildUpdate, - onDeltaUpdate: s, - readOnly: u, - getStyle: d, - addButtonElement: c, - cancelButtonElement: f, - inputElementGenerator: g, - textareaElementGenerator: y, - minusMenuElement: x, - plusMenuElement: v, - beforeRemoveAction: C, - beforeAddAction: w, - beforeUpdateAction: E, - logger: $, - onSubmitValueParser: A, - }), - ), - ), - !I && - o && - h.createElement( - "div", - { className: "rejt-add-form", style: _ }, - h.createElement(hp, { - handleAdd: this.handleAddValueAdd, - handleCancel: this.handleAddValueCancel, - onlyValue: !0, - addButtonElement: c, - cancelButtonElement: f, - inputElementGenerator: g, - keyPath: r, - deep: n, - onSubmitValueParser: A, - }), - ), - h.createElement( - "span", - { className: "rejt-not-collapsed-delimiter", style: F }, - "]", - ), - !I && j, - ); - } - render() { - let { name: e, collapsed: t, keyPath: r, deep: n } = this.state, - o = t ? this.renderCollapsed() : this.renderNotCollapsed(); - return h.createElement( - KS, - { - name: e, - collapsed: t, - deep: n, - keyPath: r, - onClick: this.handleCollapseMode, - }, - o, - ); - } -}; -e2.defaultProps = { - keyPath: [], - deep: 0, - minusMenuElement: h.createElement("span", null, " - "), - plusMenuElement: h.createElement("span", null, " + "), -}; -var t2 = class extends b.Component { - constructor(e) { - super(e); - let t = [...(e.keyPath || []), e.name]; - ((this.state = { - value: e.value, - name: e.name, - keyPath: t ?? [], - deep: e.deep ?? 0, - editEnabled: !1, - inputRef: null, - }), - (this.handleEditMode = this.handleEditMode.bind(this)), - (this.refInput = this.refInput.bind(this)), - (this.handleCancelEdit = this.handleCancelEdit.bind(this)), - (this.handleEdit = this.handleEdit.bind(this)), - (this.onKeydown = this.onKeydown.bind(this))); - } - static getDerivedStateFromProps(e, t) { - return e.value !== t.value ? { value: e.value } : null; - } - componentDidUpdate() { - let { - editEnabled: e, - inputRef: t, - name: r, - value: n, - keyPath: o, - deep: a, - } = this.state, - { readOnly: i, dataType: l } = this.props, - s = i(r, n, o, a, l); - e && !s && typeof t.focus == "function" && t.focus(); - } - onKeydown(e) { - let { inputRef: t } = this.state; - e.altKey || - e.ctrlKey || - e.metaKey || - e.shiftKey || - e.repeat || - t !== e.target || - ((e.code === "Enter" || e.key === "Enter") && - (e.preventDefault(), this.handleEdit()), - (e.code === "Escape" || e.key === "Escape") && - (e.preventDefault(), this.handleCancelEdit())); - } - handleEdit() { - let { - handleUpdateValue: e, - originalValue: t, - logger: r, - onSubmitValueParser: n, - keyPath: o, - } = this.props, - { inputRef: a, name: i, deep: l } = this.state; - if (!a) return; - let s = n(!0, o, l, i, a.value), - u = { value: s, key: i }; - (e || Promise.resolve.bind(Promise))(u) - .then(() => { - QS(t, s) || this.handleCancelEdit(); - }) - .catch(r.error); - } - handleEditMode() { - this.setState({ editEnabled: !0 }); - } - refInput(e) { - this.state.inputRef = e; - } - handleCancelEdit() { - this.setState({ editEnabled: !1 }); - } - render() { - let { name: e, value: t, editEnabled: r, keyPath: n, deep: o } = this.state, - { - handleRemove: a, - originalValue: i, - readOnly: l, - dataType: s, - getStyle: u, - textareaElementGenerator: d, - minusMenuElement: p, - keyPath: c = [], - } = this.props, - f = u(e, i, n, o, s), - g = null, - y = null, - x = l(e, i, n, o, s); - if (r && !x) { - let v = d(mp, c, o, e, i, s), - C = b.cloneElement(v, { - ref: this.refInput, - defaultValue: t, - onKeyDown: this.onKeydown, - }); - ((g = h.createElement( - "span", - { className: "rejt-edit-form", style: f.editForm }, - C, - )), - (y = null)); - } else { - g = h.createElement( - "span", - { - className: "rejt-value", - style: f.value, - onClick: x ? void 0 : this.handleEditMode, - }, - t, - ); - let v = c.at(-1), - C = - p && - b.cloneElement(p, { - onClick: a, - className: "rejt-minus-menu", - style: f.minus, - "aria-label": `remove the function '${String(e)}'${String(v) ? ` from '${String(v)}'` : ""}`, - }); - y = x ? null : C; - } - return h.createElement( - "li", - { className: "rejt-value-node", style: f.li }, - h.createElement( - "span", - { className: "rejt-name", style: f.name }, - e, - " :", - " ", - ), - g, - y, - ); - } -}; -t2.defaultProps = { - keyPath: [], - deep: 0, - handleUpdateValue: () => {}, - cancelButtonElement: h.createElement("button", null, "c"), - minusMenuElement: h.createElement("span", null, " - "), -}; -var Al = class extends b.Component { - constructor(e) { - (super(e), - (this.state = { - data: e.data, - name: e.name, - keyPath: e.keyPath ?? [], - deep: e.deep ?? 0, - })); - } - static getDerivedStateFromProps(e, t) { - return e.data !== t.data ? { data: e.data } : null; - } - render() { - let { data: e, name: t, keyPath: r, deep: n } = this.state, - { - isCollapsed: o, - handleRemove: a, - handleUpdateValue: i, - onUpdate: l, - onDeltaUpdate: s, - readOnly: u, - getStyle: d, - addButtonElement: p, - cancelButtonElement: c, - inputElementGenerator: f, - textareaElementGenerator: g, - minusMenuElement: y, - plusMenuElement: x, - beforeRemoveAction: v, - beforeAddAction: C, - beforeUpdateAction: w, - logger: E, - onSubmitValueParser: $, - } = this.props, - A = () => !0, - S = Gr(e); - switch (S) { - case E8: - return h.createElement(ac, { - data: e, - name: t, - isCollapsed: o, - keyPath: r, - deep: n, - handleRemove: a, - onUpdate: l, - onDeltaUpdate: s, - readOnly: A, - dataType: S, - getStyle: d, - addButtonElement: p, - cancelButtonElement: c, - inputElementGenerator: f, - textareaElementGenerator: g, - minusMenuElement: y, - plusMenuElement: x, - beforeRemoveAction: v, - beforeAddAction: C, - beforeUpdateAction: w, - logger: E, - onSubmitValueParser: $, - }); - case w8: - return h.createElement(ac, { - data: e, - name: t, - isCollapsed: o, - keyPath: r, - deep: n, - handleRemove: a, - onUpdate: l, - onDeltaUpdate: s, - readOnly: u, - dataType: S, - getStyle: d, - addButtonElement: p, - cancelButtonElement: c, - inputElementGenerator: f, - textareaElementGenerator: g, - minusMenuElement: y, - plusMenuElement: x, - beforeRemoveAction: v, - beforeAddAction: C, - beforeUpdateAction: w, - logger: E, - onSubmitValueParser: $, - }); - case S8: - return h.createElement(e2, { - data: e, - name: t, - isCollapsed: o, - keyPath: r, - deep: n, - handleRemove: a, - onUpdate: l, - onDeltaUpdate: s, - readOnly: u, - dataType: S, - getStyle: d, - addButtonElement: p, - cancelButtonElement: c, - inputElementGenerator: f, - textareaElementGenerator: g, - minusMenuElement: y, - plusMenuElement: x, - beforeRemoveAction: v, - beforeAddAction: C, - beforeUpdateAction: w, - logger: E, - onSubmitValueParser: $, - }); - case C8: - return h.createElement(hr, { - name: t, - value: `"${e}"`, - originalValue: e, - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: u, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case $8: - return h.createElement(hr, { - name: t, - value: e, - originalValue: e, - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: u, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case A8: - return h.createElement(hr, { - name: t, - value: e ? "true" : "false", - originalValue: e, - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: u, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case D8: - return h.createElement(hr, { - name: t, - value: e.toISOString(), - originalValue: e, - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: A, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case k8: - return h.createElement(hr, { - name: t, - value: "null", - originalValue: "null", - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: u, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case O8: - return h.createElement(hr, { - name: t, - value: "undefined", - originalValue: "undefined", - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: u, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case F8: - return h.createElement(t2, { - name: t, - value: e.toString(), - originalValue: e, - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: u, - dataType: S, - getStyle: d, - cancelButtonElement: c, - textareaElementGenerator: g, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - case _8: - return h.createElement(hr, { - name: t, - value: e.toString(), - originalValue: e, - keyPath: r, - deep: n, - handleRemove: a, - handleUpdateValue: i, - readOnly: A, - dataType: S, - getStyle: d, - cancelButtonElement: c, - inputElementGenerator: f, - minusMenuElement: y, - logger: E, - onSubmitValueParser: $, - }); - default: - return null; - } - } -}; -Al.defaultProps = { keyPath: [], deep: 0 }; -var ac = class extends b.Component { - constructor(e) { - super(e); - let t = e.deep === -1 ? [] : [...(e.keyPath || []), e.name]; - ((this.state = { - name: e.name, - data: e.data, - keyPath: t ?? [], - deep: e.deep ?? 0, - nextDeep: (e.deep ?? 0) + 1, - collapsed: e.isCollapsed(t, e.deep ?? 0, e.data), - addFormVisible: !1, - }), - (this.handleCollapseMode = this.handleCollapseMode.bind(this)), - (this.handleRemoveValue = this.handleRemoveValue.bind(this)), - (this.handleAddMode = this.handleAddMode.bind(this)), - (this.handleAddValueAdd = this.handleAddValueAdd.bind(this)), - (this.handleAddValueCancel = this.handleAddValueCancel.bind(this)), - (this.handleEditValue = this.handleEditValue.bind(this)), - (this.onChildUpdate = this.onChildUpdate.bind(this)), - (this.renderCollapsed = this.renderCollapsed.bind(this)), - (this.renderNotCollapsed = this.renderNotCollapsed.bind(this))); - } - static getDerivedStateFromProps(e, t) { - return e.data !== t.data ? { data: e.data } : null; - } - onChildUpdate(e, t) { - let { data: r, keyPath: n = [] } = this.state; - ((r[e] = t), this.setState({ data: r })); - let { onUpdate: o } = this.props, - a = n.length; - o(n[a - 1], r); - } - handleAddMode() { - this.setState({ addFormVisible: !0 }); - } - handleAddValueCancel() { - this.setState({ addFormVisible: !1 }); - } - handleAddValueAdd({ key: e, newValue: t }) { - let { data: r, keyPath: n = [], nextDeep: o } = this.state, - { beforeAddAction: a, logger: i } = this.props; - (a || Promise.resolve.bind(Promise))(e, n, o, t) - .then(() => { - ((r[e] = t), this.setState({ data: r }), this.handleAddValueCancel()); - let { onUpdate: l, onDeltaUpdate: s } = this.props; - (l(n[n.length - 1], r), - s({ type: XS, keyPath: n, deep: o, key: e, newValue: t })); - }) - .catch(i.error); - } - handleRemoveValue(e) { - return () => { - let { beforeRemoveAction: t, logger: r } = this.props, - { data: n, keyPath: o = [], nextDeep: a } = this.state, - i = n[e]; - (t || Promise.resolve.bind(Promise))(e, o, a, i) - .then(() => { - let l = { keyPath: o, deep: a, key: e, oldValue: i, type: ZS }; - (delete n[e], this.setState({ data: n })); - let { onUpdate: s, onDeltaUpdate: u } = this.props; - (s(o[o.length - 1], n), u(l)); - }) - .catch(r.error); - }; - } - handleCollapseMode() { - this.setState((e) => ({ collapsed: !e.collapsed })); - } - handleEditValue({ key: e, value: t }) { - return new Promise((r, n) => { - let { beforeUpdateAction: o } = this.props, - { data: a, keyPath: i = [], nextDeep: l } = this.state, - s = a[e]; - (o || Promise.resolve.bind(Promise))(e, i, l, s, t) - .then(() => { - ((a[e] = t), this.setState({ data: a })); - let { onUpdate: u, onDeltaUpdate: d } = this.props; - (u(i[i.length - 1], a), - d({ - type: JS, - keyPath: i, - deep: l, - key: e, - newValue: t, - oldValue: s, - }), - r()); - }) - .catch(n); - }); - } - renderCollapsed() { - let { name: e, keyPath: t, deep: r, data: n } = this.state, - { - handleRemove: o, - readOnly: a, - dataType: i, - getStyle: l, - minusMenuElement: s, - } = this.props, - { minus: u, collapsed: d } = l(e, n, t, r, i), - p = Object.getOwnPropertyNames(n), - c = a(e, n, t, r, i), - f = - s && - b.cloneElement(s, { - onClick: o, - className: "rejt-minus-menu", - style: u, - "aria-label": `remove the object '${String(e)}'`, - }); - return h.createElement( - h.Fragment, - null, - h.createElement( - "span", - { style: d }, - "{...}", - " ", - p.length, - " ", - p.length === 1 ? "key" : "keys", - ), - !c && f, - ); - } - renderNotCollapsed() { - let { - name: e, - data: t, - keyPath: r, - deep: n, - nextDeep: o, - addFormVisible: a, - } = this.state, - { - isCollapsed: i, - handleRemove: l, - onDeltaUpdate: s, - readOnly: u, - getStyle: d, - dataType: p, - addButtonElement: c, - cancelButtonElement: f, - inputElementGenerator: g, - textareaElementGenerator: y, - minusMenuElement: x, - plusMenuElement: v, - beforeRemoveAction: C, - beforeAddAction: w, - beforeUpdateAction: E, - logger: $, - onSubmitValueParser: A, - } = this.props, - { minus: S, plus: D, addForm: F, ul: k, delimiter: _ } = d(e, t, r, n, p), - I = Object.getOwnPropertyNames(t), - L = u(e, t, r, n, p), - j = - v && - b.cloneElement(v, { - onClick: this.handleAddMode, - className: "rejt-plus-menu", - style: D, - "aria-label": `add a new property to the object '${String(e)}'`, - }), - B = - x && - b.cloneElement(x, { - onClick: l, - className: "rejt-minus-menu", - style: S, - "aria-label": `remove the object '${String(e)}'`, - }), - z = I.map((V) => - h.createElement(Al, { - key: V, - name: V, - data: t[V], - keyPath: r, - deep: o, - isCollapsed: i, - handleRemove: this.handleRemoveValue(V), - handleUpdateValue: this.handleEditValue, - onUpdate: this.onChildUpdate, - onDeltaUpdate: s, - readOnly: u, - getStyle: d, - addButtonElement: c, - cancelButtonElement: f, - inputElementGenerator: g, - textareaElementGenerator: y, - minusMenuElement: x, - plusMenuElement: v, - beforeRemoveAction: C, - beforeAddAction: w, - beforeUpdateAction: E, - logger: $, - onSubmitValueParser: A, - }), - ); - return h.createElement( - h.Fragment, - null, - h.createElement( - "span", - { className: "rejt-not-collapsed-delimiter", style: _ }, - "{", - ), - !L && j, - h.createElement( - "ul", - { className: "rejt-not-collapsed-list", style: k }, - z, - ), - !L && - a && - h.createElement( - "div", - { className: "rejt-add-form", style: F }, - h.createElement(hp, { - handleAdd: this.handleAddValueAdd, - handleCancel: this.handleAddValueCancel, - addButtonElement: c, - cancelButtonElement: f, - inputElementGenerator: g, - keyPath: r, - deep: n, - onSubmitValueParser: A, - }), - ), - h.createElement( - "span", - { className: "rejt-not-collapsed-delimiter", style: _ }, - "}", - ), - !L && B, - ); - } - render() { - let { name: e, collapsed: t, keyPath: r, deep: n = 0 } = this.state, - o = t ? this.renderCollapsed() : this.renderNotCollapsed(); - return h.createElement( - KS, - { - name: e, - collapsed: t, - deep: n, - keyPath: r, - onClick: this.handleCollapseMode, - }, - o, - ); - } -}; -ac.defaultProps = { - keyPath: [], - deep: 0, - minusMenuElement: h.createElement("span", null, " - "), - plusMenuElement: h.createElement("span", null, " + "), -}; -var hr = class extends b.Component { - constructor(e) { - super(e); - let t = [...(e.keyPath || []), e.name]; - ((this.state = { - value: e.value, - name: e.name, - keyPath: t ?? [], - deep: e.deep ?? 0, - editEnabled: !1, - inputRef: null, - }), - (this.handleEditMode = this.handleEditMode.bind(this)), - (this.refInput = this.refInput.bind(this)), - (this.handleCancelEdit = this.handleCancelEdit.bind(this)), - (this.handleEdit = this.handleEdit.bind(this)), - (this.onKeydown = this.onKeydown.bind(this))); - } - static getDerivedStateFromProps(e, t) { - return e.value !== t.value ? { value: e.value } : null; - } - componentDidUpdate() { - let { - editEnabled: e, - inputRef: t, - name: r, - value: n, - keyPath: o, - deep: a, - } = this.state, - { readOnly: i, dataType: l } = this.props, - s = i(r, n, o, a, l); - e && !s && typeof t.focus == "function" && t.focus(); - } - onKeydown(e) { - let { inputRef: t } = this.state; - e.altKey || - e.ctrlKey || - e.metaKey || - e.shiftKey || - e.repeat || - t !== e.target || - ((e.code === "Enter" || e.key === "Enter") && - (e.preventDefault(), this.handleEdit()), - (e.code === "Escape" || e.key === "Escape") && - (e.preventDefault(), this.handleCancelEdit())); - } - handleEdit() { - let { - handleUpdateValue: e, - originalValue: t, - logger: r, - onSubmitValueParser: n, - keyPath: o, - } = this.props, - { inputRef: a, name: i, deep: l } = this.state; - if (!a) return; - let s = n(!0, o, l, i, a.value), - u = { value: s, key: i }; - (e || Promise.resolve.bind(Promise))(u) - .then(() => { - QS(t, s) || this.handleCancelEdit(); - }) - .catch(r.error); - } - handleEditMode() { - this.setState({ editEnabled: !0 }); - } - refInput(e) { - this.state.inputRef = e; - } - handleCancelEdit() { - this.setState({ editEnabled: !1 }); - } - render() { - let { name: e, value: t, editEnabled: r, keyPath: n, deep: o } = this.state, - { - handleRemove: a, - originalValue: i, - readOnly: l, - dataType: s, - getStyle: u, - inputElementGenerator: d, - minusMenuElement: p, - keyPath: c, - } = this.props, - f = u(e, i, n, o, s), - g = l(e, i, n, o, s), - y = r && !g, - x = d(mp, c, o, e, i, s), - v = b.cloneElement(x, { - ref: this.refInput, - defaultValue: JSON.stringify(i), - onKeyDown: this.onKeydown, - }), - C = n.at(-2), - w = - p && - b.cloneElement(p, { - onClick: a, - className: "rejt-minus-menu", - style: f.minus, - "aria-label": `remove the property '${String(e)}' with value '${String(i)}'${String(C) ? ` from '${String(C)}'` : ""}`, - }); - return h.createElement( - "li", - { className: "rejt-value-node", style: f.li }, - h.createElement( - "span", - { className: "rejt-name", style: f.name }, - e, - " : ", - ), - y - ? h.createElement( - "span", - { className: "rejt-edit-form", style: f.editForm }, - v, - ) - : h.createElement( - "span", - { - className: "rejt-value", - style: f.value, - onClick: g ? void 0 : this.handleEditMode, - }, - String(t), - ), - !g && !y && w, - ); - } -}; -hr.defaultProps = { - keyPath: [], - deep: 0, - handleUpdateValue: () => Promise.resolve(), - cancelButtonElement: h.createElement("button", null, "c"), - minusMenuElement: h.createElement("span", null, " - "), -}; -function R8(e) { - let t = e; - if (t.indexOf("function") === 0) return (0, eval)(`(${t})`); - try { - t = JSON.parse(e); - } catch {} - return t; -} -var P8 = { - minus: { color: "red" }, - plus: { color: "green" }, - collapsed: { color: "grey" }, - delimiter: {}, - ul: { padding: "0px", margin: "0 0 0 25px", listStyle: "none" }, - name: { color: "#2287CD" }, - addForm: {}, - }, - I8 = { - minus: { color: "red" }, - plus: { color: "green" }, - collapsed: { color: "grey" }, - delimiter: {}, - ul: { padding: "0px", margin: "0 0 0 25px", listStyle: "none" }, - name: { color: "#2287CD" }, - addForm: {}, - }, - L8 = { - minus: { color: "red" }, - editForm: {}, - value: { color: "#7bba3d" }, - li: { minHeight: "22px", lineHeight: "22px", outline: "0px" }, - name: { color: "#2287CD" }, - }, - r2 = class extends b.Component { - constructor(e) { - (super(e), - (this.state = { data: e.data, rootName: e.rootName }), - (this.onUpdate = this.onUpdate.bind(this)), - (this.removeRoot = this.removeRoot.bind(this))); - } - static getDerivedStateFromProps(e, t) { - return e.data !== t.data || e.rootName !== t.rootName - ? { data: e.data, rootName: e.rootName } - : null; - } - onUpdate(e, t) { - (this.setState({ data: t }), this.props.onFullyUpdate?.(t)); - } - removeRoot() { - this.onUpdate(null, null); - } - render() { - let { data: e, rootName: t } = this.state, - { - isCollapsed: r, - onDeltaUpdate: n, - readOnly: o, - getStyle: a, - addButtonElement: i, - cancelButtonElement: l, - inputElement: s, - textareaElement: u, - minusMenuElement: d, - plusMenuElement: p, - beforeRemoveAction: c, - beforeAddAction: f, - beforeUpdateAction: g, - logger: y, - onSubmitValueParser: x, - fallback: v = null, - } = this.props, - C = Gr(e), - w = o; - Gr(o) === "Boolean" && (w = () => o); - let E = s; - s && Gr(s) !== "Function" && (E = () => s); - let $ = u; - return ( - u && Gr(u) !== "Function" && ($ = () => u), - C === "Object" || C === "Array" - ? h.createElement( - "div", - { className: "rejt-tree" }, - h.createElement(Al, { - data: e, - name: t || "root", - deep: -1, - isCollapsed: r ?? (() => !1), - onUpdate: this.onUpdate, - onDeltaUpdate: n ?? (() => {}), - readOnly: w, - getStyle: a ?? (() => ({})), - addButtonElement: i, - cancelButtonElement: l, - inputElementGenerator: E, - textareaElementGenerator: $, - minusMenuElement: d, - plusMenuElement: p, - handleRemove: this.removeRoot, - beforeRemoveAction: c, - beforeAddAction: f, - beforeUpdateAction: g, - logger: y ?? {}, - onSubmitValueParser: x ?? ((A) => A), - }), - ) - : v - ); - } - }; -r2.defaultProps = { - rootName: "root", - isCollapsed: (e, t) => t !== -1, - getStyle: (e, t, r, n, o) => { - switch (o) { - case "Object": - case "Error": - return P8; - case "Array": - return I8; - default: - return L8; - } - }, - readOnly: () => !1, - onFullyUpdate: () => {}, - onDeltaUpdate: () => {}, - beforeRemoveAction: () => Promise.resolve(), - beforeAddAction: () => Promise.resolve(), - beforeUpdateAction: () => Promise.resolve(), - logger: { error: () => {} }, - onSubmitValueParser: (e, t, r, n, o) => R8(o), - inputElement: () => h.createElement("input", null), - textareaElement: () => h.createElement("textarea", null), - fallback: null, -}; -var { window: B8 } = globalThis, - N8 = T.div(({ theme: e }) => ({ - position: "relative", - display: "flex", - '&[aria-readonly="true"]': { opacity: 0.5 }, - ".rejt-tree": { - marginLeft: "1rem", - fontSize: "13px", - listStyleType: "none", - }, - ".rejt-value-node:hover": { "& > button": { opacity: 1 } }, - ".rejt-add-form": { marginLeft: 10 }, - ".rejt-add-value-node": { display: "inline-flex", alignItems: "center" }, - ".rejt-name": { lineHeight: "22px" }, - ".rejt-not-collapsed-delimiter": { lineHeight: "22px" }, - ".rejt-value": { - display: "inline-block", - border: "1px solid transparent", - borderRadius: 4, - margin: "1px 0", - padding: "0 4px", - cursor: "text", - color: e.color.defaultText, - }, - ".rejt-value-node:hover > .rejt-value": { - background: e.color.lighter, - borderColor: e.appBorderColor, - }, - })), - qm = T.button(({ theme: e, primary: t }) => ({ - border: 0, - height: 20, - margin: 1, - borderRadius: 4, - background: t ? e.color.secondary : "transparent", - color: t ? e.color.lightest : e.color.dark, - fontWeight: t ? "bold" : "normal", - cursor: "pointer", - })), - Gm = T.button(({ theme: e }) => ({ - background: "none", - border: 0, - display: "inline-flex", - verticalAlign: "middle", - padding: 3, - marginLeft: 5, - color: e.textMutedColor, - opacity: 0, - transition: "opacity 0.2s", - cursor: "pointer", - position: "relative", - svg: { width: 9, height: 9 }, - ":disabled": { cursor: "not-allowed" }, - ":hover, :focus-visible": { opacity: 1 }, - "&:hover:not(:disabled), &:focus-visible:not(:disabled)": { - "&.rejt-plus-menu": { color: e.color.ancillary }, - "&.rejt-minus-menu": { color: e.color.negative }, - }, - })), - Ym = T.input(({ theme: e, placeholder: t }) => ({ - outline: 0, - margin: t ? 1 : "1px 0", - padding: "3px 4px", - color: e.color.defaultText, - background: e.background.app, - border: `1px solid ${e.appBorderColor}`, - borderRadius: 4, - lineHeight: "14px", - width: t === "Key" ? 80 : 120, - "&:focus": { border: `1px solid ${e.color.secondary}` }, - })), - j8 = T($r)(({ theme: e }) => ({ - position: "absolute", - zIndex: 2, - top: 2, - right: 2, - height: 21, - padding: "0 3px", - background: e.background.bar, - border: `1px solid ${e.appBorderColor}`, - borderRadius: 3, - color: e.textMutedColor, - fontSize: "9px", - fontWeight: "bold", - textDecoration: "none", - span: { marginLeft: 3, marginTop: 1 }, - })), - M8 = T(uo.Textarea)(({ theme: e }) => ({ - flex: 1, - padding: "7px 6px", - fontFamily: e.typography.fonts.mono, - fontSize: "12px", - lineHeight: "18px", - "&::placeholder": { fontFamily: e.typography.fonts.base, fontSize: "13px" }, - "&:placeholder-shown": { padding: "7px 10px" }, - })), - z8 = { - bubbles: !0, - cancelable: !0, - key: "Enter", - code: "Enter", - keyCode: 13, - }, - H8 = (e) => { - e.currentTarget.dispatchEvent(new B8.KeyboardEvent("keydown", z8)); - }, - U8 = (e) => { - e.currentTarget.select(); - }, - W8 = (e) => () => ({ - name: { color: e.color.secondary }, - collapsed: { color: e.color.dark }, - ul: { listStyle: "none", margin: "0 0 0 1rem", padding: 0 }, - li: { outline: 0 }, - }), - Km = ({ name: e, value: t, onChange: r, argType: n }) => { - let o = Mb(), - a = b.useMemo(() => t && U3(t), [t]), - i = a != null, - [l, s] = b.useState(!i), - [u, d] = b.useState(null), - p = !!n?.table?.readonly, - c = b.useCallback( - (w) => { - try { - (w && r(JSON.parse(w)), d(null)); - } catch (E) { - d(E); - } - }, - [r], - ), - [f, g] = b.useState(!1), - y = b.useCallback(() => { - (r({}), g(!0)); - }, [g]), - x = b.useRef(null); - if ( - (b.useEffect(() => { - f && x.current && x.current.select(); - }, [f]), - !i) - ) - return h.createElement( - _r, - { disabled: p, id: Vi(e), onClick: y }, - "Set object", - ); - let v = h.createElement(M8, { - ref: x, - id: Ft(e), - name: e, - defaultValue: t === null ? "" : JSON.stringify(t, null, 2), - onBlur: (w) => c(w.target.value), - placeholder: "Edit JSON string...", - autoFocus: f, - valid: u ? "error" : void 0, - readOnly: p, - }), - C = - Array.isArray(t) || (typeof t == "object" && t?.constructor === Object); - return h.createElement( - N8, - { "aria-readonly": p }, - C && - h.createElement( - j8, - { - role: "switch", - "aria-checked": l, - "aria-label": `Edit the ${e} properties in text format`, - onClick: (w) => { - (w.preventDefault(), s((E) => !E)); - }, - }, - l ? h.createElement(KT, null) : h.createElement(YT, null), - h.createElement("span", null, "RAW"), - ), - l - ? v - : h.createElement(r2, { - readOnly: p || !C, - isCollapsed: C ? void 0 : () => !0, - data: a, - rootName: e, - onFullyUpdate: r, - getStyle: W8(o), - cancelButtonElement: h.createElement( - qm, - { type: "button" }, - "Cancel", - ), - addButtonElement: h.createElement( - qm, - { type: "submit", primary: !0 }, - "Save", - ), - plusMenuElement: h.createElement( - Gm, - { type: "button" }, - h.createElement(XT, null), - ), - minusMenuElement: h.createElement( - Gm, - { type: "button" }, - h.createElement(ZT, null), - ), - inputElement: (w, E, $, A) => - A - ? h.createElement(Ym, { onFocus: U8, onBlur: H8 }) - : h.createElement(Ym, null), - fallback: v, - }), - ); - }, - V8 = T.input(({ theme: e, min: t, max: r, value: n, disabled: o }) => ({ - "&": { width: "100%", backgroundColor: "transparent", appearance: "none" }, - "&::-webkit-slider-runnable-track": { - background: - e.base === "light" - ? `linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, - ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, - ${Bt(0.02, e.input.background)} 100%)` - : `linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, - ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, - ${zr(0.02, e.input.background)} 100%)`, - boxShadow: `${e.appBorderColor} 0 0 0 1px inset`, - borderRadius: 6, - width: "100%", - height: 6, - cursor: o ? "not-allowed" : "pointer", - }, - "&::-webkit-slider-thumb": { - marginTop: "-6px", - width: 16, - height: 16, - border: `1px solid ${jt(e.appBorderColor, 0.2)}`, - borderRadius: "50px", - boxShadow: `0 1px 3px 0px ${jt(e.appBorderColor, 0.2)}`, - cursor: o ? "not-allowed" : "grab", - appearance: "none", - background: `${e.input.background}`, - transition: "all 150ms ease-out", - "&:hover": { - background: `${Bt(0.05, e.input.background)}`, - transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)", - transition: "all 50ms ease-out", - }, - "&:active": { - background: `${e.input.background}`, - transform: "scale3d(1, 1, 1) translateY(0px)", - cursor: o ? "not-allowed" : "grab", - }, - }, - "&:focus": { - outline: "none", - "&::-webkit-slider-runnable-track": { - borderColor: jt(e.color.secondary, 0.4), - }, - "&::-webkit-slider-thumb": { - borderColor: e.color.secondary, - boxShadow: `0 0px 5px 0px ${e.color.secondary}`, - }, - }, - "&::-moz-range-track": { - background: - e.base === "light" - ? `linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, - ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, - ${Bt(0.02, e.input.background)} 100%)` - : `linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, - ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, - ${zr(0.02, e.input.background)} 100%)`, - boxShadow: `${e.appBorderColor} 0 0 0 1px inset`, - borderRadius: 6, - width: "100%", - height: 6, - cursor: o ? "not-allowed" : "pointer", - outline: "none", - }, - "&::-moz-range-thumb": { - width: 16, - height: 16, - border: `1px solid ${jt(e.appBorderColor, 0.2)}`, - borderRadius: "50px", - boxShadow: `0 1px 3px 0px ${jt(e.appBorderColor, 0.2)}`, - cursor: o ? "not-allowed" : "grap", - background: `${e.input.background}`, - transition: "all 150ms ease-out", - "&:hover": { - background: `${Bt(0.05, e.input.background)}`, - transform: "scale3d(1.1, 1.1, 1.1) translateY(-1px)", - transition: "all 50ms ease-out", - }, - "&:active": { - background: `${e.input.background}`, - transform: "scale3d(1, 1, 1) translateY(0px)", - cursor: "grabbing", - }, - }, - "&::-ms-track": { - background: - e.base === "light" - ? `linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, - ${Bt(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, - ${Bt(0.02, e.input.background)} 100%)` - : `linear-gradient(to right, - ${e.color.green} 0%, ${e.color.green} ${((n - t) / (r - t)) * 100}%, - ${zr(0.02, e.input.background)} ${((n - t) / (r - t)) * 100}%, - ${zr(0.02, e.input.background)} 100%)`, - boxShadow: `${e.appBorderColor} 0 0 0 1px inset`, - color: "transparent", - width: "100%", - height: "6px", - cursor: "pointer", - }, - "&::-ms-fill-lower": { borderRadius: 6 }, - "&::-ms-fill-upper": { borderRadius: 6 }, - "&::-ms-thumb": { - width: 16, - height: 16, - background: `${e.input.background}`, - border: `1px solid ${jt(e.appBorderColor, 0.2)}`, - borderRadius: 50, - cursor: "grab", - marginTop: 0, - }, - "@supports (-ms-ime-align:auto)": { "input[type=range]": { margin: "0" } }, - })), - n2 = T.span({ - paddingLeft: 5, - paddingRight: 5, - fontSize: 12, - whiteSpace: "nowrap", - fontFeatureSettings: "tnum", - fontVariantNumeric: "tabular-nums", - "[aria-readonly=true] &": { opacity: 0.5 }, - }), - q8 = T(n2)(({ numberOFDecimalsPlaces: e, max: t }) => ({ - width: `${e + t.toString().length * 2 + 3}ch`, - textAlign: "right", - flexShrink: 0, - })), - G8 = T.div({ display: "flex", alignItems: "center", width: "100%" }); -function Y8(e) { - let t = e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); - return t ? Math.max(0, (t[1] ? t[1].length : 0) - (t[2] ? +t[2] : 0)) : 0; -} -var K8 = ({ - name: e, - value: t, - onChange: r, - min: n = 0, - max: o = 100, - step: a = 1, - onBlur: i, - onFocus: l, - argType: s, - }) => { - let u = (f) => { - r(o8(f.target.value)); - }, - d = t !== void 0, - p = b.useMemo(() => Y8(a), [a]), - c = !!s?.table?.readonly; - return h.createElement( - G8, - { "aria-readonly": c }, - h.createElement(n2, null, n), - h.createElement(V8, { - id: Ft(e), - type: "range", - disabled: c, - onChange: u, - name: e, - min: n, - max: o, - step: a, - onFocus: l, - onBlur: i, - value: t ?? n, - }), - h.createElement( - q8, - { numberOFDecimalsPlaces: p, max: o }, - d ? t.toFixed(p) : "--", - " / ", - o, - ), - ); - }, - X8 = T.label({ display: "flex" }), - Z8 = T.div(({ isMaxed: e }) => ({ - marginLeft: "0.75rem", - paddingTop: "0.35rem", - color: e ? "red" : void 0, - })), - J8 = ({ - name: e, - value: t, - onChange: r, - onFocus: n, - onBlur: o, - maxLength: a, - argType: i, - }) => { - let l = (f) => { - r(f.target.value); - }, - s = !!i?.table?.readonly, - [u, d] = b.useState(!1), - p = b.useCallback(() => { - (r(""), d(!0)); - }, [d]); - if (t === void 0) - return h.createElement( - _r, - { - variant: "outline", - size: "medium", - disabled: s, - id: Vi(e), - onClick: p, - }, - "Set string", - ); - let c = typeof t == "string"; - return h.createElement( - X8, - null, - h.createElement(uo.Textarea, { - id: Ft(e), - maxLength: a, - onChange: l, - disabled: s, - size: "flex", - placeholder: "Edit string...", - autoFocus: u, - valid: c ? void 0 : "error", - name: e, - value: c ? t : "", - onFocus: n, - onBlur: o, - }), - a && - h.createElement( - Z8, - { isMaxed: t?.length === a }, - t?.length ?? 0, - " / ", - a, - ), - ); - }, - Q8 = T(uo.Input)({ padding: 10 }); -function eI(e) { - e.forEach((t) => { - t.startsWith("blob:") && URL.revokeObjectURL(t); - }); -} -var tI = ({ - onChange: e, - name: t, - accept: r = "image/*", - value: n, - argType: o, - }) => { - let a = b.useRef(null), - i = o?.control?.readOnly; - function l(s) { - if (!s.target.files) return; - let u = Array.from(s.target.files).map((d) => URL.createObjectURL(d)); - (e(u), eI(n || [])); - } - return ( - b.useEffect(() => { - n == null && a.current && (a.current.value = ""); - }, [n, t]), - h.createElement(Q8, { - ref: a, - id: Ft(t), - type: "file", - name: t, - multiple: !0, - disabled: i, - onChange: l, - accept: r, - size: "flex", - }) - ); - }, - rI = b.lazy(() => - cc( - () => import("./Color-AVL7NMMY-Doxq8aw5.js"), - __vite__mapDeps([0, 1, 2, 3, 4, 5]), - ), - ), - nI = (e) => - h.createElement( - b.Suspense, - { fallback: h.createElement("div", null) }, - h.createElement(rI, { ...e }), - ), - oI = { - array: Km, - object: Km, - boolean: XP, - color: nI, - date: r8, - number: i8, - check: yn, - "inline-check": yn, - radio: yn, - "inline-radio": yn, - select: yn, - "multi-select": yn, - range: K8, - text: J8, - file: tI, - }, - Xm = () => h.createElement(h.Fragment, null, "-"), - aI = ({ row: e, arg: t, updateArgs: r, isHovered: n }) => { - let { key: o, control: a } = e, - [i, l] = b.useState(!1), - [s, u] = b.useState({ value: t }); - b.useEffect(() => { - i || u({ value: t }); - }, [i, t]); - let d = b.useCallback((y) => (u({ value: y }), r({ [o]: y }), y), [r, o]), - p = b.useCallback(() => l(!1), []), - c = b.useCallback(() => l(!0), []); - if (!a || a.disable) { - let y = a?.disable !== !0 && e?.type?.name !== "function"; - return n && y - ? h.createElement( - Jn, - { - href: "https://storybook.js.org/docs/essentials/controls", - target: "_blank", - withArrow: !0, - }, - "Setup controls", - ) - : h.createElement(Xm, null); - } - let f = { - name: o, - argType: e, - value: s.value, - onChange: d, - onBlur: p, - onFocus: c, - }, - g = oI[a.type] || Xm; - return h.createElement(g, { ...f, ...a, controlType: a.type }); - }, - iI = T.table(({ theme: e }) => ({ - "&&": { - borderCollapse: "collapse", - borderSpacing: 0, - border: "none", - tr: { border: "none !important", background: "none" }, - "td, th": { padding: 0, border: "none", width: "auto!important" }, - marginTop: 0, - marginBottom: 0, - "th:first-of-type, td:first-of-type": { paddingLeft: 0 }, - "th:last-of-type, td:last-of-type": { paddingRight: 0 }, - td: { - paddingTop: 0, - paddingBottom: 4, - "&:not(:first-of-type)": { paddingLeft: 10, paddingRight: 0 }, - }, - tbody: { boxShadow: "none", border: "none" }, - code: cr({ theme: e }), - div: { span: { fontWeight: "bold" } }, - "& code": { - margin: 0, - display: "inline-block", - fontSize: e.typography.size.s1, - }, - }, - })), - lI = ({ tags: e }) => { - let t = (e.params || []).filter((a) => a.description), - r = t.length !== 0, - n = e.deprecated != null, - o = e.returns != null && e.returns.description != null; - return !r && !o && !n - ? null - : h.createElement( - h.Fragment, - null, - h.createElement( - iI, - null, - h.createElement( - "tbody", - null, - n && - h.createElement( - "tr", - { key: "deprecated" }, - h.createElement( - "td", - { colSpan: 2 }, - h.createElement("strong", null, "Deprecated"), - ": ", - e.deprecated?.toString(), - ), - ), - r && - t.map((a) => - h.createElement( - "tr", - { key: a.name }, - h.createElement( - "td", - null, - h.createElement("code", null, a.name), - ), - h.createElement("td", null, a.description), - ), - ), - o && - h.createElement( - "tr", - { key: "returns" }, - h.createElement( - "td", - null, - h.createElement("code", null, "Returns"), - ), - h.createElement("td", null, e.returns?.description), - ), - ), - ), - ); - }, - sI = lD(sR()), - ic = 8, - Zm = T.div(({ isExpanded: e }) => ({ - display: "flex", - flexDirection: e ? "column" : "row", - flexWrap: "wrap", - alignItems: "flex-start", - marginBottom: "-4px", - minWidth: 100, - })), - uI = T.span(cr, ({ theme: e, simple: t = !1 }) => ({ - flex: "0 0 auto", - fontFamily: e.typography.fonts.mono, - fontSize: e.typography.size.s1, - wordBreak: "break-word", - whiteSpace: "normal", - maxWidth: "100%", - margin: 0, - marginRight: "4px", - marginBottom: "4px", - paddingTop: "2px", - paddingBottom: "2px", - lineHeight: "13px", - ...(t && { background: "transparent", border: "0 none", paddingLeft: 0 }), - })), - cI = T.button(({ theme: e }) => ({ - fontFamily: e.typography.fonts.mono, - color: e.color.secondary, - marginBottom: "4px", - background: "none", - border: "none", - })), - dI = T.div(cr, ({ theme: e }) => ({ - fontFamily: e.typography.fonts.mono, - color: e.color.secondary, - fontSize: e.typography.size.s1, - margin: 0, - whiteSpace: "nowrap", - display: "flex", - alignItems: "center", - })), - pI = T.div(({ theme: e, width: t }) => ({ - width: t, - minWidth: 200, - maxWidth: 800, - padding: 15, - fontFamily: e.typography.fonts.mono, - fontSize: e.typography.size.s1, - boxSizing: "content-box", - "& code": { padding: "0 !important" }, - })), - fI = T(tR)({ marginLeft: 4 }), - gI = T(fS)({ marginLeft: 4 }), - mI = () => h.createElement("span", null, "-"), - o2 = ({ text: e, simple: t }) => h.createElement(uI, { simple: t }, e), - hI = (0, sI.default)(1e3)((e) => { - let t = e.split(/\r?\n/); - return `${Math.max(...t.map((r) => r.length))}ch`; - }), - yI = (e) => { - if (!e) return [e]; - let t = e.split("|").map((r) => r.trim()); - return V3(t); - }, - Jm = (e, t = !0) => { - let r = e; - return ( - t || (r = e.slice(0, ic)), - r.map((n) => h.createElement(o2, { key: n, text: n === "" ? '""' : n })) - ); - }, - bI = ({ value: e, initialExpandedArgs: t }) => { - let { summary: r, detail: n } = e, - [o, a] = b.useState(!1), - [i, l] = b.useState(t || !1); - if (r == null) return null; - let s = typeof r.toString == "function" ? r.toString() : r; - if (n == null) { - if (/[(){}[\]<>]/.test(s)) return h.createElement(o2, { text: s }); - let u = yI(s), - d = u.length; - return d > ic - ? h.createElement( - Zm, - { isExpanded: i }, - Jm(u, i), - h.createElement( - cI, - { onClick: () => l(!i) }, - i ? "Show less..." : `Show ${d - ic} more...`, - ), - ) - : h.createElement(Zm, null, Jm(u)); - } - return h.createElement( - Qw, - { - closeOnOutsideClick: !0, - placement: "bottom", - visible: o, - onVisibleChange: (u) => { - a(u); - }, - tooltip: h.createElement( - pI, - { width: hI(n) }, - h.createElement(ml, { language: "jsx", format: !1 }, n), - ), - }, - h.createElement( - dI, - { className: "sbdocs-expandable" }, - h.createElement("span", null, s), - o ? h.createElement(fI, null) : h.createElement(gI, null), - ), - ); - }, - Ds = ({ value: e, initialExpandedArgs: t }) => - e == null - ? h.createElement(mI, null) - : h.createElement(bI, { value: e, initialExpandedArgs: t }), - vI = T.span({ fontWeight: "bold" }), - xI = T.span(({ theme: e }) => ({ - color: e.color.negative, - fontFamily: e.typography.fonts.mono, - cursor: "help", - })), - EI = T.div(({ theme: e }) => ({ - "&&": { p: { margin: "0 0 10px 0" }, a: { color: e.color.secondary } }, - code: { - ...cr({ theme: e }), - fontSize: 12, - fontFamily: e.typography.fonts.mono, - }, - "& code": { margin: 0, display: "inline-block" }, - "& pre > code": { whiteSpace: "pre-wrap" }, - })), - wI = T.div(({ theme: e, hasDescription: t }) => ({ - color: - e.base === "light" - ? ye(0.1, e.color.defaultText) - : ye(0.2, e.color.defaultText), - marginTop: t ? 4 : 0, - })), - SI = T.div(({ theme: e, hasDescription: t }) => ({ - color: - e.base === "light" - ? ye(0.1, e.color.defaultText) - : ye(0.2, e.color.defaultText), - marginTop: t ? 12 : 0, - marginBottom: 12, - })), - CI = T.td(({ expandable: e }) => ({ - paddingLeft: e ? "40px !important" : "20px !important", - })), - $I = (e) => e && { summary: typeof e == "string" ? e : e.name }, - _a = (e) => { - let [t, r] = b.useState(!1), - { - row: n, - updateArgs: o, - compact: a, - expandable: i, - initialExpandedArgs: l, - } = e, - { name: s, description: u } = n, - d = n.table || {}, - p = d.type || $I(n.type), - c = d.defaultValue || n.defaultValue, - f = n.type?.required, - g = u != null && u !== ""; - return h.createElement( - "tr", - { onMouseEnter: () => r(!0), onMouseLeave: () => r(!1) }, - h.createElement( - CI, - { expandable: i ?? !1 }, - h.createElement(vI, null, s), - f ? h.createElement(xI, { title: "Required" }, "*") : null, - ), - a - ? null - : h.createElement( - "td", - null, - g && h.createElement(EI, null, h.createElement(WS, null, u)), - d.jsDocTags != null - ? h.createElement( - h.Fragment, - null, - h.createElement( - SI, - { hasDescription: g }, - h.createElement(Ds, { value: p, initialExpandedArgs: l }), - ), - h.createElement(lI, { tags: d.jsDocTags }), - ) - : h.createElement( - wI, - { hasDescription: g }, - h.createElement(Ds, { value: p, initialExpandedArgs: l }), - ), - ), - a - ? null - : h.createElement( - "td", - null, - h.createElement(Ds, { value: c, initialExpandedArgs: l }), - ), - o - ? h.createElement( - "td", - null, - h.createElement(aI, { ...e, isHovered: t }), - ) - : null, - ); - }, - AI = T.div(({ inAddonPanel: e, theme: t }) => ({ - height: e ? "100%" : "auto", - display: "flex", - border: e ? "none" : `1px solid ${t.appBorderColor}`, - borderRadius: e ? 0 : t.appBorderRadius, - padding: e ? 0 : 40, - alignItems: "center", - justifyContent: "center", - flexDirection: "column", - gap: 15, - background: t.background.content, - })), - DI = T.div(({ theme: e }) => ({ - display: "flex", - fontSize: e.typography.size.s2 - 1, - gap: 25, - })), - kI = ({ inAddonPanel: e }) => { - let [t, r] = b.useState(!0); - return ( - b.useEffect(() => { - let n = setTimeout(() => { - r(!1); - }, 100); - return () => clearTimeout(n); - }, []), - t - ? null - : h.createElement( - AI, - { inAddonPanel: e }, - h.createElement(Sl, { - title: e - ? "Interactive story playground" - : "Args table with interactive controls couldn't be auto-generated", - description: h.createElement( - h.Fragment, - null, - "Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically.", - ), - footer: h.createElement( - DI, - null, - e && - h.createElement( - h.Fragment, - null, - h.createElement( - Jn, - { - href: "https://storybook.js.org/docs/essentials/controls", - target: "_blank", - withArrow: !0, - }, - h.createElement(Xu, null), - " Read docs", - ), - ), - !e && - h.createElement( - Jn, - { - href: "https://storybook.js.org/docs/essentials/controls", - target: "_blank", - withArrow: !0, - }, - h.createElement(Xu, null), - " Learn how to set that up", - ), - ), - }), - ) - ); - }, - OI = T(QT)(({ theme: e }) => ({ - marginRight: 8, - marginLeft: -10, - marginTop: -2, - height: 12, - width: 12, - color: - e.base === "light" - ? ye(0.25, e.color.defaultText) - : ye(0.3, e.color.defaultText), - border: "none", - display: "inline-block", - })), - FI = T(eR)(({ theme: e }) => ({ - marginRight: 8, - marginLeft: -10, - marginTop: -2, - height: 12, - width: 12, - color: - e.base === "light" - ? ye(0.25, e.color.defaultText) - : ye(0.3, e.color.defaultText), - border: "none", - display: "inline-block", - })), - _I = T.span(({ theme: e }) => ({ - display: "flex", - lineHeight: "20px", - alignItems: "center", - })), - TI = T.td(({ theme: e }) => ({ - position: "relative", - letterSpacing: "0.35em", - textTransform: "uppercase", - fontWeight: e.typography.weight.bold, - fontSize: e.typography.size.s1 - 1, - color: - e.base === "light" - ? ye(0.4, e.color.defaultText) - : ye(0.6, e.color.defaultText), - background: `${e.background.app} !important`, - "& ~ td": { background: `${e.background.app} !important` }, - })), - RI = T.td(({ theme: e }) => ({ - position: "relative", - fontWeight: e.typography.weight.bold, - fontSize: e.typography.size.s2 - 1, - background: e.background.app, - })), - PI = T.td({ position: "relative" }), - II = T.tr(({ theme: e }) => ({ - "&:hover > td": { - backgroundColor: `${zr(0.005, e.background.app)} !important`, - boxShadow: `${e.color.mediumlight} 0 - 1px 0 0 inset`, - cursor: "row-resize", - }, - })), - Qm = T.button({ - background: "none", - border: "none", - padding: "0", - font: "inherit", - position: "absolute", - top: 0, - bottom: 0, - left: 0, - right: 0, - height: "100%", - width: "100%", - color: "transparent", - cursor: "row-resize !important", - }), - ks = ({ - level: e = "section", - label: t, - children: r, - initialExpanded: n = !0, - colSpan: o = 3, - }) => { - let [a, i] = b.useState(n), - l = e === "subsection" ? RI : TI, - s = r?.length || 0, - u = e === "subsection" ? `${s} item${s !== 1 ? "s" : ""}` : "", - d = `${a ? "Hide" : "Show"} ${e === "subsection" ? s : t} item${s !== 1 ? "s" : ""}`; - return h.createElement( - h.Fragment, - null, - h.createElement( - II, - { title: d }, - h.createElement( - l, - { colSpan: 1 }, - h.createElement(Qm, { onClick: (p) => i(!a), tabIndex: 0 }, d), - h.createElement( - _I, - null, - a ? h.createElement(OI, null) : h.createElement(FI, null), - t, - ), - ), - h.createElement( - PI, - { colSpan: o - 1 }, - h.createElement( - Qm, - { onClick: (p) => i(!a), tabIndex: -1, style: { outline: "none" } }, - d, - ), - a ? null : u, - ), - ), - a ? r : null, - ); - }, - LI = T.div(({ theme: e }) => ({ - width: "100%", - borderSpacing: 0, - color: e.color.defaultText, - })), - Ta = T.div(({ theme: e }) => ({ - display: "flex", - borderBottom: `1px solid ${e.appBorderColor}`, - "&:last-child": { borderBottom: 0 }, - })), - ze = T.div(({ position: e, theme: t }) => { - let r = { - display: "flex", - flexDirection: "column", - gap: 5, - padding: "10px 15px", - alignItems: "flex-start", - }; - switch (e) { - case "first": - return { ...r, width: "25%", paddingLeft: 20 }; - case "second": - return { ...r, width: "35%" }; - case "third": - return { ...r, width: "15%" }; - case "last": - return { ...r, width: "25%", paddingRight: 20 }; - } - }), - Fe = T.div(({ theme: e, width: t, height: r }) => ({ - animation: `${e.animation.glow} 1.5s ease-in-out infinite`, - background: e.appBorderColor, - width: t || "100%", - height: r || 16, - borderRadius: 3, - })), - BI = () => - h.createElement( - LI, - null, - h.createElement( - Ta, - null, - h.createElement( - ze, - { position: "first" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "second" }, - h.createElement(Fe, { width: "30%" }), - ), - h.createElement( - ze, - { position: "third" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "last" }, - h.createElement(Fe, { width: "60%" }), - ), - ), - h.createElement( - Ta, - null, - h.createElement( - ze, - { position: "first" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "second" }, - h.createElement(Fe, { width: "80%" }), - h.createElement(Fe, { width: "30%" }), - ), - h.createElement( - ze, - { position: "third" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "last" }, - h.createElement(Fe, { width: "60%" }), - ), - ), - h.createElement( - Ta, - null, - h.createElement( - ze, - { position: "first" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "second" }, - h.createElement(Fe, { width: "80%" }), - h.createElement(Fe, { width: "30%" }), - ), - h.createElement( - ze, - { position: "third" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "last" }, - h.createElement(Fe, { width: "60%" }), - ), - ), - h.createElement( - Ta, - null, - h.createElement( - ze, - { position: "first" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "second" }, - h.createElement(Fe, { width: "80%" }), - h.createElement(Fe, { width: "30%" }), - ), - h.createElement( - ze, - { position: "third" }, - h.createElement(Fe, { width: "60%" }), - ), - h.createElement( - ze, - { position: "last" }, - h.createElement(Fe, { width: "60%" }), - ), - ), - ), - NI = T.table(({ theme: e, compact: t, inAddonPanel: r }) => ({ - "&&": { - borderSpacing: 0, - color: e.color.defaultText, - "td, th": { - padding: 0, - border: "none", - verticalAlign: "top", - textOverflow: "ellipsis", - }, - fontSize: e.typography.size.s2 - 1, - lineHeight: "20px", - textAlign: "left", - width: "100%", - marginTop: r ? 0 : 25, - marginBottom: r ? 0 : 40, - "thead th:first-of-type, td:first-of-type": { width: "25%" }, - "th:first-of-type, td:first-of-type": { paddingLeft: 20 }, - "th:nth-of-type(2), td:nth-of-type(2)": { - ...(t ? null : { width: "35%" }), - }, - "td:nth-of-type(3)": { ...(t ? null : { width: "15%" }) }, - "th:last-of-type, td:last-of-type": { - paddingRight: 20, - ...(t ? null : { width: "25%" }), - }, - th: { - color: - e.base === "light" - ? ye(0.25, e.color.defaultText) - : ye(0.45, e.color.defaultText), - paddingTop: 10, - paddingBottom: 10, - paddingLeft: 15, - paddingRight: 15, - }, - td: { - paddingTop: "10px", - paddingBottom: "10px", - "&:not(:first-of-type)": { paddingLeft: 15, paddingRight: 15 }, - "&:last-of-type": { paddingRight: 20 }, - }, - marginLeft: r ? 0 : 1, - marginRight: r ? 0 : 1, - tbody: { - ...(r - ? null - : { - filter: - e.base === "light" - ? "drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))" - : "drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))", - }), - "> tr > *": { - background: e.background.content, - borderTop: `1px solid ${e.appBorderColor}`, - }, - ...(r - ? null - : { - "> tr:first-of-type > *": { - borderBlockStart: `1px solid ${e.appBorderColor}`, - }, - "> tr:last-of-type > *": { - borderBlockEnd: `1px solid ${e.appBorderColor}`, - }, - "> tr > *:first-of-type": { - borderInlineStart: `1px solid ${e.appBorderColor}`, - }, - "> tr > *:last-of-type": { - borderInlineEnd: `1px solid ${e.appBorderColor}`, - }, - "> tr:first-of-type > td:first-of-type": { - borderTopLeftRadius: e.appBorderRadius, - }, - "> tr:first-of-type > td:last-of-type": { - borderTopRightRadius: e.appBorderRadius, - }, - "> tr:last-of-type > td:first-of-type": { - borderBottomLeftRadius: e.appBorderRadius, - }, - "> tr:last-of-type > td:last-of-type": { - borderBottomRightRadius: e.appBorderRadius, - }, - }), - }, - }, - })), - jI = T($r)(({ theme: e }) => ({ margin: "-4px -12px -4px 0" })), - MI = T.span({ display: "flex", justifyContent: "space-between" }), - zI = { - alpha: (e, t) => (e.name ?? "").localeCompare(t.name ?? ""), - requiredFirst: (e, t) => - +!!t.type?.required - +!!e.type?.required || - (e.name ?? "").localeCompare(t.name ?? ""), - none: null, - }, - HI = (e, t) => { - let r = { ungrouped: [], ungroupedSubsections: {}, sections: {} }; - if (!e) return r; - Object.entries(e).forEach(([a, i]) => { - let { category: l, subcategory: s } = i?.table || {}; - if (l) { - let u = r.sections[l] || { ungrouped: [], subsections: {} }; - if (!s) u.ungrouped.push({ key: a, ...i }); - else { - let d = u.subsections[s] || []; - (d.push({ key: a, ...i }), (u.subsections[s] = d)); - } - r.sections[l] = u; - } else if (s) { - let u = r.ungroupedSubsections[s] || []; - (u.push({ key: a, ...i }), (r.ungroupedSubsections[s] = u)); - } else r.ungrouped.push({ key: a, ...i }); - }); - let n = zI[t], - o = (a) => - n - ? Object.keys(a).reduce((i, l) => ({ ...i, [l]: a[l].sort(n) }), {}) - : a; - return { - ungrouped: n ? r.ungrouped.sort(n) : r.ungrouped, - ungroupedSubsections: o(r.ungroupedSubsections), - sections: Object.keys(r.sections).reduce( - (a, i) => ({ - ...a, - [i]: { - ungrouped: n - ? r.sections[i].ungrouped.sort(n) - : r.sections[i].ungrouped, - subsections: o(r.sections[i].subsections), - }, - }), - {}, - ), - }; - }, - UI = (e, t, r) => { - try { - return ey(e, t, r); - } catch (n) { - return (aR.warn(n.message), !1); - } - }, - lc = (e) => { - let { - updateArgs: t, - resetArgs: r, - compact: n, - inAddonPanel: o, - initialExpandedArgs: a, - sort: i = "none", - isLoading: l, - } = e; - if ("error" in e) { - let { error: C } = e; - return h.createElement( - xS, - null, - C, - " ", - h.createElement( - Jn, - { - href: "http://storybook.js.org/docs/", - target: "_blank", - withArrow: !0, - }, - h.createElement(Xu, null), - " Read the docs", - ), - ); - } - if (l) return h.createElement(BI, null); - let { - rows: s, - args: u, - globals: d, - } = "rows" in e ? e : { rows: void 0, args: void 0, globals: void 0 }, - p = HI( - eD(s || {}, (C) => !C?.table?.disable && UI(C, u || {}, d || {})), - i, - ), - c = p.ungrouped.length === 0, - f = Object.entries(p.sections).length === 0, - g = Object.entries(p.ungroupedSubsections).length === 0; - if (c && f && g) return h.createElement(kI, { inAddonPanel: o }); - let y = 1; - (t && (y += 1), n || (y += 2)); - let x = Object.keys(p.sections).length > 0, - v = { - updateArgs: t, - compact: n, - inAddonPanel: o, - initialExpandedArgs: a, - }; - return h.createElement( - Md, - null, - h.createElement( - NI, - { - compact: n, - inAddonPanel: o, - className: "docblock-argstable sb-unstyled", - }, - h.createElement( - "thead", - { className: "docblock-argstable-head" }, - h.createElement( - "tr", - null, - h.createElement("th", null, h.createElement("span", null, "Name")), - n - ? null - : h.createElement( - "th", - null, - h.createElement("span", null, "Description"), - ), - n - ? null - : h.createElement( - "th", - null, - h.createElement("span", null, "Default"), - ), - t - ? h.createElement( - "th", - null, - h.createElement( - MI, - null, - "Control", - " ", - !l && - r && - h.createElement( - jI, - { onClick: () => r(), title: "Reset controls" }, - h.createElement(rR, { "aria-hidden": !0 }), - ), - ), - ) - : null, - ), - ), - h.createElement( - "tbody", - { className: "docblock-argstable-body" }, - p.ungrouped.map((C) => - h.createElement(_a, { - key: C.key, - row: C, - arg: u && u[C.key], - ...v, - }), - ), - Object.entries(p.ungroupedSubsections).map(([C, w]) => - h.createElement( - ks, - { key: C, label: C, level: "subsection", colSpan: y }, - w.map((E) => - h.createElement(_a, { - key: E.key, - row: E, - arg: u && u[E.key], - expandable: x, - ...v, - }), - ), - ), - ), - Object.entries(p.sections).map(([C, w]) => - h.createElement( - ks, - { key: C, label: C, level: "section", colSpan: y }, - w.ungrouped.map((E) => - h.createElement(_a, { - key: E.key, - row: E, - arg: u && u[E.key], - ...v, - }), - ), - Object.entries(w.subsections).map(([E, $]) => - h.createElement( - ks, - { key: E, label: E, level: "subsection", colSpan: y }, - $.map((A) => - h.createElement(_a, { - key: A.key, - row: A, - arg: u && u[A.key], - expandable: x, - ...v, - }), - ), - ), - ), - ), - ), - ), - ), - ); - }, - WI = (e) => `anchor--${e}`, - VI = ({ storyId: e, children: t }) => - h.createElement("div", { id: WI(e), className: "sb-anchor" }, t); -globalThis && - globalThis.__DOCS_CONTEXT__ === void 0 && - ((globalThis.__DOCS_CONTEXT__ = b.createContext(null)), - (globalThis.__DOCS_CONTEXT__.displayName = "DocsContext")); -var Vt = globalThis ? globalThis.__DOCS_CONTEXT__ : b.createContext(null), - pn = (e, t) => b.useContext(Vt).resolveOf(e, t), - qI = (e) => - e - .split("-") - .map((t) => t.charAt(0).toUpperCase() + t.slice(1)) - .join(""), - GI = (e) => { - if (e) - return typeof e == "string" - ? e.includes("-") - ? qI(e) - : e - : e.__docgenInfo && e.__docgenInfo.displayName - ? e.__docgenInfo.displayName - : e.name; - }; -function YI(e, t = "start") { - e.scrollIntoView({ behavior: "smooth", block: t, inline: "nearest" }); -} -var KI = Object.create, - a2 = Object.defineProperty, - XI = Object.getOwnPropertyDescriptor, - i2 = Object.getOwnPropertyNames, - ZI = Object.getPrototypeOf, - JI = Object.prototype.hasOwnProperty, - oe = (e, t) => - function () { - return ( - t || (0, e[i2(e)[0]])((t = { exports: {} }).exports, t), - t.exports - ); - }, - QI = (e, t, r, n) => { - if ((t && typeof t == "object") || typeof t == "function") - for (let o of i2(t)) - !JI.call(e, o) && - o !== r && - a2(e, o, { - get: () => t[o], - enumerable: !(n = XI(t, o)) || n.enumerable, - }); - return e; - }, - yp = (e, t, r) => ( - (r = e != null ? KI(ZI(e)) : {}), - QI( - !e || !e.__esModule ? a2(r, "default", { value: e, enumerable: !0 }) : r, - e, - ) - ), - e7 = [ - "bubbles", - "cancelBubble", - "cancelable", - "composed", - "currentTarget", - "defaultPrevented", - "eventPhase", - "isTrusted", - "returnValue", - "srcElement", - "target", - "timeStamp", - "type", - ], - t7 = ["detail"]; -function r7(e) { - let t = e7 - .filter((r) => e[r] !== void 0) - .reduce((r, n) => ((r[n] = e[n]), r), {}); - if (e instanceof CustomEvent) - for (let r of t7.filter((n) => e[n] !== void 0)) t[r] = e[r]; - return t; -} -var l2 = oe({ - "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"( - e, - t, - ) { - t.exports = Object; - }, - }), - n7 = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e, t) { - t.exports = Error; - }, - }), - o7 = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e, t) { - t.exports = EvalError; - }, - }), - a7 = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e, t) { - t.exports = RangeError; - }, - }), - i7 = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e, t) { - t.exports = ReferenceError; - }, - }), - l7 = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"( - e, - t, - ) { - t.exports = SyntaxError; - }, - }), - bp = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e, t) { - t.exports = TypeError; - }, - }), - s7 = oe({ - "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e, t) { - t.exports = URIError; - }, - }), - u7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"( - e, - t, - ) { - t.exports = Math.abs; - }, - }), - c7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"( - e, - t, - ) { - t.exports = Math.floor; - }, - }), - d7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"( - e, - t, - ) { - t.exports = Math.max; - }, - }), - p7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"( - e, - t, - ) { - t.exports = Math.min; - }, - }), - f7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"( - e, - t, - ) { - t.exports = Math.pow; - }, - }), - g7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"( - e, - t, - ) { - t.exports = Math.round; - }, - }), - m7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"( - e, - t, - ) { - t.exports = - Number.isNaN || - function (r) { - return r !== r; - }; - }, - }), - h7 = oe({ - "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"( - e, - t, - ) { - var r = m7(); - t.exports = function (n) { - return r(n) || n === 0 ? n : n < 0 ? -1 : 1; - }; - }, - }), - y7 = oe({ - "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e, t) { - t.exports = Object.getOwnPropertyDescriptor; - }, - }), - vp = oe({ - "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) { - var r = y7(); - if (r) - try { - r([], "length"); - } catch { - r = null; - } - t.exports = r; - }, - }), - b7 = oe({ - "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"( - e, - t, - ) { - var r = Object.defineProperty || !1; - if (r) - try { - r({}, "a", { value: 1 }); - } catch { - r = !1; - } - t.exports = r; - }, - }), - s2 = oe({ - "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"( - e, - t, - ) { - t.exports = function () { - if ( - typeof Symbol != "function" || - typeof Object.getOwnPropertySymbols != "function" - ) - return !1; - if (typeof Symbol.iterator == "symbol") return !0; - var r = {}, - n = Symbol("test"), - o = Object(n); - if ( - typeof n == "string" || - Object.prototype.toString.call(n) !== "[object Symbol]" || - Object.prototype.toString.call(o) !== "[object Symbol]" - ) - return !1; - var a = 42; - r[n] = a; - for (var i in r) return !1; - if ( - (typeof Object.keys == "function" && Object.keys(r).length !== 0) || - (typeof Object.getOwnPropertyNames == "function" && - Object.getOwnPropertyNames(r).length !== 0) - ) - return !1; - var l = Object.getOwnPropertySymbols(r); - if ( - l.length !== 1 || - l[0] !== n || - !Object.prototype.propertyIsEnumerable.call(r, n) - ) - return !1; - if (typeof Object.getOwnPropertyDescriptor == "function") { - var s = Object.getOwnPropertyDescriptor(r, n); - if (s.value !== a || s.enumerable !== !0) return !1; - } - return !0; - }; - }, - }), - u2 = oe({ - "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"( - e, - t, - ) { - var r = typeof Symbol < "u" && Symbol, - n = s2(); - t.exports = function () { - return typeof r != "function" || - typeof Symbol != "function" || - typeof r("foo") != "symbol" || - typeof Symbol("bar") != "symbol" - ? !1 - : n(); - }; - }, - }), - c2 = oe({ - "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"( - e, - t, - ) { - t.exports = (typeof Reflect < "u" && Reflect.getPrototypeOf) || null; - }, - }), - d2 = oe({ - "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"( - e, - t, - ) { - var r = l2(); - t.exports = r.getPrototypeOf || null; - }, - }), - v7 = oe({ - "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"( - e, - t, - ) { - var r = "Function.prototype.bind called on incompatible ", - n = Object.prototype.toString, - o = Math.max, - a = "[object Function]", - i = function (u, d) { - for (var p = [], c = 0; c < u.length; c += 1) p[c] = u[c]; - for (var f = 0; f < d.length; f += 1) p[f + u.length] = d[f]; - return p; - }, - l = function (u, d) { - for (var p = [], c = d, f = 0; c < u.length; c += 1, f += 1) - p[f] = u[c]; - return p; - }, - s = function (u, d) { - for (var p = "", c = 0; c < u.length; c += 1) - ((p += u[c]), c + 1 < u.length && (p += d)); - return p; - }; - t.exports = function (u) { - var d = this; - if (typeof d != "function" || n.apply(d) !== a) - throw new TypeError(r + d); - for ( - var p = l(arguments, 1), - c, - f = function () { - if (this instanceof c) { - var C = d.apply(this, i(p, arguments)); - return Object(C) === C ? C : this; - } - return d.apply(u, i(p, arguments)); - }, - g = o(0, d.length - p.length), - y = [], - x = 0; - x < g; - x++ - ) - y[x] = "$" + x; - if ( - ((c = Function( - "binder", - "return function (" + - s(y, ",") + - "){ return binder.apply(this,arguments); }", - )(f)), - d.prototype) - ) { - var v = function () {}; - ((v.prototype = d.prototype), - (c.prototype = new v()), - (v.prototype = null)); - } - return c; - }; - }, - }), - Dl = oe({ - "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"( - e, - t, - ) { - var r = v7(); - t.exports = Function.prototype.bind || r; - }, - }), - xp = oe({ - "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"( - e, - t, - ) { - t.exports = Function.prototype.call; - }, - }), - p2 = oe({ - "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"( - e, - t, - ) { - t.exports = Function.prototype.apply; - }, - }), - x7 = oe({ - "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"( - e, - t, - ) { - t.exports = typeof Reflect < "u" && Reflect && Reflect.apply; - }, - }), - E7 = oe({ - "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"( - e, - t, - ) { - var r = Dl(), - n = p2(), - o = xp(), - a = x7(); - t.exports = a || r.call(o, n); - }, - }), - f2 = oe({ - "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"( - e, - t, - ) { - var r = Dl(), - n = bp(), - o = xp(), - a = E7(); - t.exports = function (i) { - if (i.length < 1 || typeof i[0] != "function") - throw new n("a function is required"); - return a(r, o, i); - }; - }, - }), - w7 = oe({ - "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"( - e, - t, - ) { - var r = f2(), - n = vp(), - o; - try { - o = [].__proto__ === Array.prototype; - } catch (s) { - if ( - !s || - typeof s != "object" || - !("code" in s) || - s.code !== "ERR_PROTO_ACCESS" - ) - throw s; - } - var a = !!o && n && n(Object.prototype, "__proto__"), - i = Object, - l = i.getPrototypeOf; - t.exports = - a && typeof a.get == "function" - ? r([a.get]) - : typeof l == "function" - ? function (s) { - return l(s == null ? s : i(s)); - } - : !1; - }, - }), - S7 = oe({ - "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) { - var r = c2(), - n = d2(), - o = w7(); - t.exports = r - ? function (a) { - return r(a); - } - : n - ? function (a) { - if (!a || (typeof a != "object" && typeof a != "function")) - throw new TypeError("getProto: not an object"); - return n(a); - } - : o - ? function (a) { - return o(a); - } - : null; - }, - }), - g2 = oe({ - "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) { - var r = Function.prototype.call, - n = Object.prototype.hasOwnProperty, - o = Dl(); - t.exports = o.call(r, n); - }, - }), - C7 = oe({ - "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"( - e, - t, - ) { - var r, - n = l2(), - o = n7(), - a = o7(), - i = a7(), - l = i7(), - s = l7(), - u = bp(), - d = s7(), - p = u7(), - c = c7(), - f = d7(), - g = p7(), - y = f7(), - x = g7(), - v = h7(), - C = Function, - w = function (ne) { - try { - return C('"use strict"; return (' + ne + ").constructor;")(); - } catch {} - }, - E = vp(), - $ = b7(), - A = function () { - throw new u(); - }, - S = E - ? (function () { - try { - return (arguments.callee, A); - } catch { - try { - return E(arguments, "callee").get; - } catch { - return A; - } - } - })() - : A, - D = u2()(), - F = S7(), - k = d2(), - _ = c2(), - I = p2(), - L = xp(), - j = {}, - B = typeof Uint8Array > "u" || !F ? r : F(Uint8Array), - z = { - __proto__: null, - "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError, - "%Array%": Array, - "%ArrayBuffer%": typeof ArrayBuffer > "u" ? r : ArrayBuffer, - "%ArrayIteratorPrototype%": D && F ? F([][Symbol.iterator]()) : r, - "%AsyncFromSyncIteratorPrototype%": r, - "%AsyncFunction%": j, - "%AsyncGenerator%": j, - "%AsyncGeneratorFunction%": j, - "%AsyncIteratorPrototype%": j, - "%Atomics%": typeof Atomics > "u" ? r : Atomics, - "%BigInt%": typeof BigInt > "u" ? r : BigInt, - "%BigInt64Array%": typeof BigInt64Array > "u" ? r : BigInt64Array, - "%BigUint64Array%": typeof BigUint64Array > "u" ? r : BigUint64Array, - "%Boolean%": Boolean, - "%DataView%": typeof DataView > "u" ? r : DataView, - "%Date%": Date, - "%decodeURI%": decodeURI, - "%decodeURIComponent%": decodeURIComponent, - "%encodeURI%": encodeURI, - "%encodeURIComponent%": encodeURIComponent, - "%Error%": o, - "%eval%": eval, - "%EvalError%": a, - "%Float16Array%": typeof Float16Array > "u" ? r : Float16Array, - "%Float32Array%": typeof Float32Array > "u" ? r : Float32Array, - "%Float64Array%": typeof Float64Array > "u" ? r : Float64Array, - "%FinalizationRegistry%": - typeof FinalizationRegistry > "u" ? r : FinalizationRegistry, - "%Function%": C, - "%GeneratorFunction%": j, - "%Int8Array%": typeof Int8Array > "u" ? r : Int8Array, - "%Int16Array%": typeof Int16Array > "u" ? r : Int16Array, - "%Int32Array%": typeof Int32Array > "u" ? r : Int32Array, - "%isFinite%": isFinite, - "%isNaN%": isNaN, - "%IteratorPrototype%": D && F ? F(F([][Symbol.iterator]())) : r, - "%JSON%": typeof JSON == "object" ? JSON : r, - "%Map%": typeof Map > "u" ? r : Map, - "%MapIteratorPrototype%": - typeof Map > "u" || !D || !F ? r : F(new Map()[Symbol.iterator]()), - "%Math%": Math, - "%Number%": Number, - "%Object%": n, - "%Object.getOwnPropertyDescriptor%": E, - "%parseFloat%": parseFloat, - "%parseInt%": parseInt, - "%Promise%": typeof Promise > "u" ? r : Promise, - "%Proxy%": typeof Proxy > "u" ? r : Proxy, - "%RangeError%": i, - "%ReferenceError%": l, - "%Reflect%": typeof Reflect > "u" ? r : Reflect, - "%RegExp%": RegExp, - "%Set%": typeof Set > "u" ? r : Set, - "%SetIteratorPrototype%": - typeof Set > "u" || !D || !F ? r : F(new Set()[Symbol.iterator]()), - "%SharedArrayBuffer%": - typeof SharedArrayBuffer > "u" ? r : SharedArrayBuffer, - "%String%": String, - "%StringIteratorPrototype%": D && F ? F(""[Symbol.iterator]()) : r, - "%Symbol%": D ? Symbol : r, - "%SyntaxError%": s, - "%ThrowTypeError%": S, - "%TypedArray%": B, - "%TypeError%": u, - "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array, - "%Uint8ClampedArray%": - typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray, - "%Uint16Array%": typeof Uint16Array > "u" ? r : Uint16Array, - "%Uint32Array%": typeof Uint32Array > "u" ? r : Uint32Array, - "%URIError%": d, - "%WeakMap%": typeof WeakMap > "u" ? r : WeakMap, - "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef, - "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet, - "%Function.prototype.call%": L, - "%Function.prototype.apply%": I, - "%Object.defineProperty%": $, - "%Object.getPrototypeOf%": k, - "%Math.abs%": p, - "%Math.floor%": c, - "%Math.max%": f, - "%Math.min%": g, - "%Math.pow%": y, - "%Math.round%": x, - "%Math.sign%": v, - "%Reflect.getPrototypeOf%": _, - }; - if (F) - try { - null.error; - } catch (ne) { - ((V = F(F(ne))), (z["%Error.prototype%"] = V)); - } - var V, - Y = function ne(de) { - var M; - if (de === "%AsyncFunction%") M = w("async function () {}"); - else if (de === "%GeneratorFunction%") M = w("function* () {}"); - else if (de === "%AsyncGeneratorFunction%") - M = w("async function* () {}"); - else if (de === "%AsyncGenerator%") { - var U = ne("%AsyncGeneratorFunction%"); - U && (M = U.prototype); - } else if (de === "%AsyncIteratorPrototype%") { - var fe = ne("%AsyncGenerator%"); - fe && F && (M = F(fe.prototype)); - } - return ((z[de] = M), M); - }, - W = { - __proto__: null, - "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], - "%ArrayPrototype%": ["Array", "prototype"], - "%ArrayProto_entries%": ["Array", "prototype", "entries"], - "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], - "%ArrayProto_keys%": ["Array", "prototype", "keys"], - "%ArrayProto_values%": ["Array", "prototype", "values"], - "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], - "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], - "%AsyncGeneratorPrototype%": [ - "AsyncGeneratorFunction", - "prototype", - "prototype", - ], - "%BooleanPrototype%": ["Boolean", "prototype"], - "%DataViewPrototype%": ["DataView", "prototype"], - "%DatePrototype%": ["Date", "prototype"], - "%ErrorPrototype%": ["Error", "prototype"], - "%EvalErrorPrototype%": ["EvalError", "prototype"], - "%Float32ArrayPrototype%": ["Float32Array", "prototype"], - "%Float64ArrayPrototype%": ["Float64Array", "prototype"], - "%FunctionPrototype%": ["Function", "prototype"], - "%Generator%": ["GeneratorFunction", "prototype"], - "%GeneratorPrototype%": [ - "GeneratorFunction", - "prototype", - "prototype", - ], - "%Int8ArrayPrototype%": ["Int8Array", "prototype"], - "%Int16ArrayPrototype%": ["Int16Array", "prototype"], - "%Int32ArrayPrototype%": ["Int32Array", "prototype"], - "%JSONParse%": ["JSON", "parse"], - "%JSONStringify%": ["JSON", "stringify"], - "%MapPrototype%": ["Map", "prototype"], - "%NumberPrototype%": ["Number", "prototype"], - "%ObjectPrototype%": ["Object", "prototype"], - "%ObjProto_toString%": ["Object", "prototype", "toString"], - "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], - "%PromisePrototype%": ["Promise", "prototype"], - "%PromiseProto_then%": ["Promise", "prototype", "then"], - "%Promise_all%": ["Promise", "all"], - "%Promise_reject%": ["Promise", "reject"], - "%Promise_resolve%": ["Promise", "resolve"], - "%RangeErrorPrototype%": ["RangeError", "prototype"], - "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], - "%RegExpPrototype%": ["RegExp", "prototype"], - "%SetPrototype%": ["Set", "prototype"], - "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], - "%StringPrototype%": ["String", "prototype"], - "%SymbolPrototype%": ["Symbol", "prototype"], - "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], - "%TypedArrayPrototype%": ["TypedArray", "prototype"], - "%TypeErrorPrototype%": ["TypeError", "prototype"], - "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], - "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], - "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], - "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], - "%URIErrorPrototype%": ["URIError", "prototype"], - "%WeakMapPrototype%": ["WeakMap", "prototype"], - "%WeakSetPrototype%": ["WeakSet", "prototype"], - }, - G = Dl(), - J = g2(), - Q = G.call(L, Array.prototype.concat), - re = G.call(I, Array.prototype.splice), - ie = G.call(L, String.prototype.replace), - H = G.call(L, String.prototype.slice), - X = G.call(L, RegExp.prototype.exec), - Z = - /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, - le = /\\(\\)?/g, - me = function (ne) { - var de = H(ne, 0, 1), - M = H(ne, -1); - if (de === "%" && M !== "%") - throw new s("invalid intrinsic syntax, expected closing `%`"); - if (M === "%" && de !== "%") - throw new s("invalid intrinsic syntax, expected opening `%`"); - var U = []; - return ( - ie(ne, Z, function (fe, ke, be, We) { - U[U.length] = be ? ie(We, le, "$1") : ke || fe; - }), - U - ); - }, - Re = function (ne, de) { - var M = ne, - U; - if ((J(W, M) && ((U = W[M]), (M = "%" + U[0] + "%")), J(z, M))) { - var fe = z[M]; - if ((fe === j && (fe = Y(M)), typeof fe > "u" && !de)) - throw new u( - "intrinsic " + - ne + - " exists, but is not available. Please file an issue!", - ); - return { alias: U, name: M, value: fe }; - } - throw new s("intrinsic " + ne + " does not exist!"); - }; - t.exports = function (ne, de) { - if (typeof ne != "string" || ne.length === 0) - throw new u("intrinsic name must be a non-empty string"); - if (arguments.length > 1 && typeof de != "boolean") - throw new u('"allowMissing" argument must be a boolean'); - if (X(/^%?[^%]*%?$/, ne) === null) - throw new s( - "`%` may not be present anywhere but at the beginning and end of the intrinsic name", - ); - var M = me(ne), - U = M.length > 0 ? M[0] : "", - fe = Re("%" + U + "%", de), - ke = fe.name, - be = fe.value, - We = !1, - pr = fe.alias; - pr && ((U = pr[0]), re(M, Q([0, 1], pr))); - for (var Ce = 1, nt = !0; Ce < M.length; Ce += 1) { - var $e = M[Ce], - ht = H($e, 0, 1), - Ve = H($e, -1); - if ( - (ht === '"' || - ht === "'" || - ht === "`" || - Ve === '"' || - Ve === "'" || - Ve === "`") && - ht !== Ve - ) - throw new s("property names with quotes must have matching quotes"); - if ( - (($e === "constructor" || !nt) && (We = !0), - (U += "." + $e), - (ke = "%" + U + "%"), - J(z, ke)) - ) - be = z[ke]; - else if (be != null) { - if (!($e in be)) { - if (!de) - throw new u( - "base intrinsic for " + - ne + - " exists, but the property is not available.", - ); - return; - } - if (E && Ce + 1 >= M.length) { - var yt = E(be, $e); - ((nt = !!yt), - nt && "get" in yt && !("originalValue" in yt.get) - ? (be = yt.get) - : (be = be[$e])); - } else ((nt = J(be, $e)), (be = be[$e])); - nt && !We && (z[ke] = be); - } - } - return be; - }; - }, - }), - Ep = oe({ - "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"( - e, - t, - ) { - var r = C7(), - n = f2(), - o = n([r("%String.prototype.indexOf%")]); - t.exports = function (a, i) { - var l = r(a, !!i); - return typeof l == "function" && o(a, ".prototype.") > -1 ? n([l]) : l; - }; - }, - }), - $7 = oe({ - "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"( - e, - t, - ) { - var r = s2(); - t.exports = function () { - return r() && !!Symbol.toStringTag; - }; - }, - }), - m2 = oe({ - "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) { - var r = Ep(), - n = $7()(), - o = g2(), - a = vp(), - i; - n - ? ((l = r("RegExp.prototype.exec")), - (s = {}), - (u = function () { - throw s; - }), - (d = { toString: u, valueOf: u }), - typeof Symbol.toPrimitive == "symbol" && (d[Symbol.toPrimitive] = u), - (i = function (f) { - if (!f || typeof f != "object") return !1; - var g = a(f, "lastIndex"), - y = g && o(g, "value"); - if (!y) return !1; - try { - l(f, d); - } catch (x) { - return x === s; - } - })) - : ((p = r("Object.prototype.toString")), - (c = "[object RegExp]"), - (i = function (f) { - return !f || (typeof f != "object" && typeof f != "function") - ? !1 - : p(f) === c; - })); - var l, s, u, d, p, c; - t.exports = i; - }, - }), - A7 = oe({ - "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"( - e, - t, - ) { - t.exports = n; - var r = Object.prototype.toString; - function n(o) { - if (!o) return !1; - var a = r.call(o); - return ( - a === "[object Function]" || - (typeof o == "function" && a !== "[object RegExp]") || - (typeof window < "u" && - (o === window.setTimeout || - o === window.alert || - o === window.confirm || - o === window.prompt)) - ); - } - }, - }), - D7 = oe({ - "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"( - e, - t, - ) { - var r = Ep(), - n = m2(), - o = r("RegExp.prototype.exec"), - a = bp(); - t.exports = function (i) { - if (!n(i)) throw new a("`regex` must be a RegExp"); - return function (l) { - return o(i, l) !== null; - }; - }; - }, - }), - k7 = oe({ - "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) { - var r = Ep(), - n = r("Object.prototype.toString"), - o = u2()(), - a = D7(); - o - ? ((i = r("Symbol.prototype.toString")), - (l = a(/^Symbol\(.*\)$/)), - (s = function (u) { - return typeof u.valueOf() != "symbol" ? !1 : l(i(u)); - }), - (t.exports = function (u) { - if (typeof u == "symbol") return !0; - if (!u || typeof u != "object" || n(u) !== "[object Symbol]") - return !1; - try { - return s(u); - } catch { - return !1; - } - })) - : (t.exports = function (u) { - return !1; - }); - var i, l, s; - }, - }), - O7 = yp(m2()), - F7 = yp(A7()), - _7 = yp(k7()); -function T7(e) { - return e != null && typeof e == "object" && Array.isArray(e) === !1; -} -var R7 = - typeof global == "object" && global && global.Object === Object && global, - P7 = R7, - I7 = typeof self == "object" && self && self.Object === Object && self, - L7 = P7 || I7 || Function("return this")(), - wp = L7, - B7 = wp.Symbol, - no = B7, - h2 = Object.prototype, - N7 = h2.hasOwnProperty, - j7 = h2.toString, - Ao = no ? no.toStringTag : void 0; -function M7(e) { - var t = N7.call(e, Ao), - r = e[Ao]; - try { - e[Ao] = void 0; - var n = !0; - } catch {} - var o = j7.call(e); - return (n && (t ? (e[Ao] = r) : delete e[Ao]), o); -} -var z7 = M7, - H7 = Object.prototype, - U7 = H7.toString; -function W7(e) { - return U7.call(e); -} -var V7 = W7, - q7 = "[object Null]", - G7 = "[object Undefined]", - eh = no ? no.toStringTag : void 0; -function Y7(e) { - return e == null - ? e === void 0 - ? G7 - : q7 - : eh && eh in Object(e) - ? z7(e) - : V7(e); -} -var K7 = Y7, - th = no ? no.prototype : void 0; -th && th.toString; -function X7(e) { - var t = typeof e; - return e != null && (t == "object" || t == "function"); -} -var y2 = X7, - Z7 = "[object AsyncFunction]", - J7 = "[object Function]", - Q7 = "[object GeneratorFunction]", - eL = "[object Proxy]"; -function tL(e) { - if (!y2(e)) return !1; - var t = K7(e); - return t == J7 || t == Q7 || t == Z7 || t == eL; -} -var rL = tL, - nL = wp["__core-js_shared__"], - Os = nL, - rh = (function () { - var e = /[^.]+$/.exec((Os && Os.keys && Os.keys.IE_PROTO) || ""); - return e ? "Symbol(src)_1." + e : ""; - })(); -function oL(e) { - return !!rh && rh in e; -} -var aL = oL, - iL = Function.prototype, - lL = iL.toString; -function sL(e) { - if (e != null) { - try { - return lL.call(e); - } catch {} - try { - return e + ""; - } catch {} - } - return ""; -} -var uL = sL, - cL = /[\\^$.*+?()[\]{}|]/g, - dL = /^\[object .+?Constructor\]$/, - pL = Function.prototype, - fL = Object.prototype, - gL = pL.toString, - mL = fL.hasOwnProperty, - hL = RegExp( - "^" + - gL - .call(mL) - .replace(cL, "\\$&") - .replace( - /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - "$1.*?", - ) + - "$", - ); -function yL(e) { - if (!y2(e) || aL(e)) return !1; - var t = rL(e) ? hL : dL; - return t.test(uL(e)); -} -var bL = yL; -function vL(e, t) { - return e?.[t]; -} -var xL = vL; -function EL(e, t) { - var r = xL(e, t); - return bL(r) ? r : void 0; -} -var b2 = EL; -function wL(e, t) { - return e === t || (e !== e && t !== t); -} -var SL = wL, - CL = b2(Object, "create"), - ea = CL; -function $L() { - ((this.__data__ = ea ? ea(null) : {}), (this.size = 0)); -} -var AL = $L; -function DL(e) { - var t = this.has(e) && delete this.__data__[e]; - return ((this.size -= t ? 1 : 0), t); -} -var kL = DL, - OL = "__lodash_hash_undefined__", - FL = Object.prototype, - _L = FL.hasOwnProperty; -function TL(e) { - var t = this.__data__; - if (ea) { - var r = t[e]; - return r === OL ? void 0 : r; - } - return _L.call(t, e) ? t[e] : void 0; -} -var RL = TL, - PL = Object.prototype, - IL = PL.hasOwnProperty; -function LL(e) { - var t = this.__data__; - return ea ? t[e] !== void 0 : IL.call(t, e); -} -var BL = LL, - NL = "__lodash_hash_undefined__"; -function jL(e, t) { - var r = this.__data__; - return ( - (this.size += this.has(e) ? 0 : 1), - (r[e] = ea && t === void 0 ? NL : t), - this - ); -} -var ML = jL; -function po(e) { - var t = -1, - r = e == null ? 0 : e.length; - for (this.clear(); ++t < r; ) { - var n = e[t]; - this.set(n[0], n[1]); - } -} -po.prototype.clear = AL; -po.prototype.delete = kL; -po.prototype.get = RL; -po.prototype.has = BL; -po.prototype.set = ML; -var nh = po; -function zL() { - ((this.__data__ = []), (this.size = 0)); -} -var HL = zL; -function UL(e, t) { - for (var r = e.length; r--; ) if (SL(e[r][0], t)) return r; - return -1; -} -var kl = UL, - WL = Array.prototype, - VL = WL.splice; -function qL(e) { - var t = this.__data__, - r = kl(t, e); - if (r < 0) return !1; - var n = t.length - 1; - return (r == n ? t.pop() : VL.call(t, r, 1), --this.size, !0); -} -var GL = qL; -function YL(e) { - var t = this.__data__, - r = kl(t, e); - return r < 0 ? void 0 : t[r][1]; -} -var KL = YL; -function XL(e) { - return kl(this.__data__, e) > -1; -} -var ZL = XL; -function JL(e, t) { - var r = this.__data__, - n = kl(r, e); - return (n < 0 ? (++this.size, r.push([e, t])) : (r[n][1] = t), this); -} -var QL = JL; -function fo(e) { - var t = -1, - r = e == null ? 0 : e.length; - for (this.clear(); ++t < r; ) { - var n = e[t]; - this.set(n[0], n[1]); - } -} -fo.prototype.clear = HL; -fo.prototype.delete = GL; -fo.prototype.get = KL; -fo.prototype.has = ZL; -fo.prototype.set = QL; -var eB = fo, - tB = b2(wp, "Map"), - rB = tB; -function nB() { - ((this.size = 0), - (this.__data__ = { - hash: new nh(), - map: new (rB || eB)(), - string: new nh(), - })); -} -var oB = nB; -function aB(e) { - var t = typeof e; - return t == "string" || t == "number" || t == "symbol" || t == "boolean" - ? e !== "__proto__" - : e === null; -} -var iB = aB; -function lB(e, t) { - var r = e.__data__; - return iB(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map; -} -var Ol = lB; -function sB(e) { - var t = Ol(this, e).delete(e); - return ((this.size -= t ? 1 : 0), t); -} -var uB = sB; -function cB(e) { - return Ol(this, e).get(e); -} -var dB = cB; -function pB(e) { - return Ol(this, e).has(e); -} -var fB = pB; -function gB(e, t) { - var r = Ol(this, e), - n = r.size; - return (r.set(e, t), (this.size += r.size == n ? 0 : 1), this); -} -var mB = gB; -function go(e) { - var t = -1, - r = e == null ? 0 : e.length; - for (this.clear(); ++t < r; ) { - var n = e[t]; - this.set(n[0], n[1]); - } -} -go.prototype.clear = oB; -go.prototype.delete = uB; -go.prototype.get = dB; -go.prototype.has = fB; -go.prototype.set = mB; -var v2 = go, - hB = "Expected a function"; -function Sp(e, t) { - if (typeof e != "function" || (t != null && typeof t != "function")) - throw new TypeError(hB); - var r = function () { - var n = arguments, - o = t ? t.apply(this, n) : n[0], - a = r.cache; - if (a.has(o)) return a.get(o); - var i = e.apply(this, n); - return ((r.cache = a.set(o, i) || a), i); - }; - return ((r.cache = new (Sp.Cache || v2)()), r); -} -Sp.Cache = v2; -var yB = Sp, - bB = 500; -function vB(e) { - var t = yB(e, function (n) { - return (r.size === bB && r.clear(), n); - }), - r = t.cache; - return t; -} -var xB = vB, - EB = - /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, - wB = /\\(\\)?/g; -xB(function (e) { - var t = []; - return ( - e.charCodeAt(0) === 46 && t.push(""), - e.replace(EB, function (r, n, o, a) { - t.push(o ? a.replace(wB, "$1") : n || r); - }), - t - ); -}); -var SB = T7, - CB = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/; -function x2(e) { - if (!SB(e)) return e; - let t = e, - r = !1; - return ( - typeof Event < "u" && e instanceof Event && ((t = r7(t)), (r = !0)), - (t = Object.keys(t).reduce((n, o) => { - try { - (t[o] && t[o].toJSON, (n[o] = t[o])); - } catch { - r = !0; - } - return n; - }, {})), - r ? t : e - ); -} -var $B = function (e) { - let t, r, n, o; - return function (a, i) { - try { - if (a === "") - return ( - (o = []), - (t = new Map([[i, "[]"]])), - (r = new Map()), - (n = []), - i - ); - let l = r.get(this) || this; - for (; n.length && l !== n[0]; ) (n.shift(), o.pop()); - if (typeof i == "boolean") return i; - if (i === void 0) return e.allowUndefined ? "_undefined_" : void 0; - if (i === null) return null; - if (typeof i == "number") - return i === Number.NEGATIVE_INFINITY - ? "_-Infinity_" - : i === Number.POSITIVE_INFINITY - ? "_Infinity_" - : Number.isNaN(i) - ? "_NaN_" - : i; - if (typeof i == "bigint") return `_bigint_${i.toString()}`; - if (typeof i == "string") - return CB.test(i) ? (e.allowDate ? `_date_${i}` : void 0) : i; - if ((0, O7.default)(i)) - return e.allowRegExp ? `_regexp_${i.flags}|${i.source}` : void 0; - if ((0, F7.default)(i)) return; - if ((0, _7.default)(i)) { - if (!e.allowSymbol) return; - let u = Symbol.keyFor(i); - return u !== void 0 - ? `_gsymbol_${u}` - : `_symbol_${i.toString().slice(7, -1)}`; - } - if (n.length >= e.maxDepth) - return Array.isArray(i) ? `[Array(${i.length})]` : "[Object]"; - if (i === this) return `_duplicate_${JSON.stringify(o)}`; - if (i instanceof Error && e.allowError) - return { - __isConvertedError__: !0, - errorProperties: { - ...(i.cause ? { cause: i.cause } : {}), - ...i, - name: i.name, - message: i.message, - stack: i.stack, - "_constructor-name_": i.constructor.name, - }, - }; - if ( - i?.constructor?.name && - i.constructor.name !== "Object" && - !Array.isArray(i) - ) { - let u = t.get(i); - if (!u) { - let d = { - __isClassInstance__: !0, - __className__: i.constructor.name, - ...Object.getOwnPropertyNames(i).reduce((p, c) => { - try { - p[c] = i[c]; - } catch {} - return p; - }, {}), - }; - return ( - o.push(a), - n.unshift(d), - t.set(i, JSON.stringify(o)), - i !== d && r.set(i, d), - d - ); - } - return `_duplicate_${u}`; - } - let s = t.get(i); - if (!s) { - let u = Array.isArray(i) ? i : x2(i); - return ( - o.push(a), - n.unshift(u), - t.set(i, JSON.stringify(o)), - i !== u && r.set(i, u), - u - ); - } - return `_duplicate_${s}`; - } catch { - return; - } - }; - }, - AB = { - maxDepth: 10, - space: void 0, - allowRegExp: !0, - allowDate: !0, - allowError: !0, - allowUndefined: !0, - allowSymbol: !0, - }, - DB = (e, t = {}) => { - let r = { ...AB, ...t }; - return JSON.stringify(x2(e), $B(r), t.space); - }; -function E2(e) { - return DB(e, { maxDepth: 50 }); -} -var w2 = b.createContext({ sources: {} }), - S2 = "--unknown--", - kB = ({ children: e, channel: t }) => { - let [r, n] = b.useState({}); - return ( - b.useEffect(() => { - let o = (a, i = null, l = !1) => { - let { - id: s, - args: u = void 0, - source: d, - format: p, - } = typeof a == "string" ? { id: a, source: i, format: l } : a, - c = u ? E2(u) : S2; - n((f) => ({ - ...f, - [s]: { ...f[s], [c]: { code: d || "", format: p } }, - })); - }; - return (t.on(Fp, o), () => t.off(Fp, o)); - }, []), - h.createElement(w2.Provider, { value: { sources: r } }, e) - ); - }; -function OB(e, t, r) { - let [n, o] = b.useState("Transforming..."), - a = t ? t?.(e, r) : e; - return ( - b.useEffect(() => { - async function i() { - let l = await a; - l !== n && o(l); - } - i(); - }), - typeof a == "object" && typeof a.then == "function" ? n : a - ); -} -var FB = (e, t, r) => { - let { sources: n } = r, - o = n?.[e]; - return o?.[E2(t)] || o?.[S2] || { code: "" }; - }, - _B = ({ - snippet: e, - storyContext: t, - typeFromProps: r, - transformFromProps: n, - }) => { - let o = t.parameters ?? {}, - { __isArgsStory: a } = o, - i = o.docs?.source || {}, - l = r || i.type || Tl.AUTO, - s = - l === Tl.DYNAMIC || (l === Tl.AUTO && e && a) - ? e - : i.originalSource || "", - u = n ?? i.transform, - d = u ? OB(s, u, t) : s; - return i.code !== void 0 ? i.code : d; - }, - TB = (e, t, r) => { - let { of: n } = e, - o = b.useMemo(() => { - if (n) return t.resolveOf(n, ["story"]).story; - try { - return t.storyById(); - } catch {} - }, [t, n]), - a = o ? t.getStoryContext(o) : {}, - i = e.__forceInitialArgs ? a.initialArgs : a.unmappedArgs, - l = o ? FB(o.id, i, r) : null, - s = _B({ - snippet: l ? l.code : "", - storyContext: { ...a, args: i }, - typeFromProps: e.type, - transformFromProps: e.transform, - }); - if ("of" in e && n === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let u = o?.parameters?.docs?.source || {}, - d = e.format, - p = e.language ?? u.language ?? "jsx", - c = e.dark ?? u.dark ?? !1; - return !e.code && !o - ? { error: "Oh no! The source is not available." } - : e.code - ? { code: e.code, format: d, language: p, dark: c } - : ((d = l?.format ?? !0), { code: s, format: d, language: p, dark: c }); - }; -function RB(e, t) { - let r = PB([e], t); - return r && r[0]; -} -function PB(e, t) { - let [r, n] = b.useState({}); - return ( - b.useEffect(() => { - Promise.all( - e.map(async (o) => { - let a = await t.loadStory(o); - n((i) => (i[o] === a ? i : { ...i, [o]: a })); - }), - ); - }), - e.map((o) => { - if (r[o]) return r[o]; - try { - return t.storyById(o); - } catch { - return; - } - }) - ); -} -var IB = (e, t) => { - let { of: r, meta: n } = e; - if ("of" in e && r === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - return ( - n && t.referenceMeta(n, !1), - t.resolveOf(r || "story", ["story"]).story.id - ); - }, - LB = (e, t, r) => { - let { parameters: n = {} } = t || {}, - { docs: o = {} } = n, - a = o.story || {}; - if (o.disable) return null; - if (e.inline ?? a.inline ?? !1) { - let l = e.height ?? a.height, - s = e.autoplay ?? a.autoplay ?? !1; - return { - story: t, - inline: !0, - height: l, - autoplay: s, - forceInitialArgs: !!e.__forceInitialArgs, - primary: !!e.__primary, - renderStoryToElement: r.renderStoryToElement, - }; - } - let i = e.height ?? a.height ?? a.iframeHeight ?? "100px"; - return { story: t, inline: !1, height: i, primary: !!e.__primary }; - }, - BB = (e = { __forceInitialArgs: !1, __primary: !1 }) => { - let t = b.useContext(Vt), - r = IB(e, t), - n = RB(r, t); - if (!n) return h.createElement(SS, null); - let o = LB(e, n, t); - return o ? h.createElement(f6, { ...o }) : null; - }, - NB = (e) => { - let t = b.useContext(Vt), - r = b.useContext(w2), - { of: n, source: o } = e; - if ("of" in e && n === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let { story: a } = pn(n || "story", ["story"]), - i = TB({ ...o, ...(n && { of: n }) }, t, r), - l = - e.layout ?? - a.parameters.layout ?? - a.parameters.docs?.canvas?.layout ?? - "padded", - s = e.withToolbar ?? a.parameters.docs?.canvas?.withToolbar ?? !1, - u = e.additionalActions ?? a.parameters.docs?.canvas?.additionalActions, - d = e.sourceState ?? a.parameters.docs?.canvas?.sourceState ?? "hidden", - p = e.className ?? a.parameters.docs?.canvas?.className, - c = e.story?.inline ?? a.parameters?.docs?.story?.inline ?? !1; - return h.createElement( - CS, - { - withSource: d === "none" ? void 0 : i, - isExpanded: d === "shown", - withToolbar: s, - additionalActions: u, - className: p, - layout: l, - inline: c, - }, - h.createElement(BB, { - of: n || a.moduleExport, - meta: e.meta, - ...e.story, - }), - ); - }, - jB = (e, t) => { - let r = MB(e, t); - if (!r) throw new Error("No result when story was defined"); - return r; - }, - MB = (e, t) => { - let r = e ? t.getStoryContext(e) : { args: {} }, - { id: n } = e || { id: "none" }, - [o, a] = b.useState(r.args); - b.useEffect(() => { - let s = (u) => { - u.storyId === n && a(u.args); - }; - return (t.channel.on(Am, s), () => t.channel.off(Am, s)); - }, [n, t.channel]); - let i = b.useCallback( - (s) => t.channel.emit(iR, { storyId: n, updatedArgs: s }), - [n, t.channel], - ), - l = b.useCallback( - (s) => t.channel.emit(lR, { storyId: n, argNames: s }), - [n, t.channel], - ); - return e && [o, i, l]; - }, - zB = (e, t) => { - let r = t.getStoryContext(e), - [n, o] = b.useState(r.globals); - return ( - b.useEffect(() => { - let a = (i) => { - o(i.globals); - }; - return (t.channel.on(Dm, a), () => t.channel.off(Dm, a)); - }, [t.channel]), - [n] - ); - }; -function HB(e, t) { - let { extractArgTypes: r } = t.docs || {}; - if (!r) - throw new Error( - "Args unsupported. See Args documentation for your framework.", - ); - return r(e); -} -var UB = (e) => { - let { of: t } = e; - if ("of" in e && t === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let r = b.useContext(Vt), - { story: n } = r.resolveOf(t || "story", ["story"]), - { parameters: o, argTypes: a, component: i, subcomponents: l } = n, - s = o.docs?.controls || {}, - u = e.include ?? s.include, - d = e.exclude ?? s.exclude, - p = e.sort ?? s.sort, - [c, f, g] = jB(n, r), - [y] = zB(n, r), - x = km(a, u, d); - if (!(l && Object.keys(l || {}).length > 0)) - return Object.keys(x).length > 0 || Object.keys(c).length > 0 - ? h.createElement(lc, { - rows: x, - sort: p, - args: c, - globals: y, - updateArgs: f, - resetArgs: g, - }) - : null; - let v = GI(i) || "Story", - C = Object.fromEntries( - Object.entries(l || {}).map(([E, $]) => [ - E, - { rows: km(HB($, o), u, d), sort: p }, - ]), - ), - w = { [v]: { rows: x, sort: p }, ...C }; - return h.createElement(C6, { - tabs: w, - sort: p, - args: c, - globals: y, - updateArgs: f, - resetArgs: g, - }); - }, - { document: C2 } = globalThis, - $2 = ({ className: e, children: t, ...r }) => { - if (typeof e != "string" && (typeof t != "string" || !t.match(/[\n\r]/g))) - return h.createElement(zd, null, t); - let n = e && e.split("-"); - return h.createElement(ES, { - language: (n && n[1]) || "text", - format: !1, - code: t, - ...r, - }); - }; -function Cp(e, t) { - e.channel.emit(gS, t); -} -var sc = dS.a, - WB = ({ hash: e, children: t }) => { - let r = b.useContext(Vt); - return h.createElement( - sc, - { - href: e, - target: "_self", - onClick: (n) => { - let o = e.substring(1); - C2.getElementById(o) && Cp(r, e); - }, - }, - t, - ); - }, - A2 = (e) => { - let { href: t, target: r, children: n, ...o } = e, - a = b.useContext(Vt); - return !t || r === "_blank" || /^https?:\/\//.test(t) - ? h.createElement(sc, { ...e }) - : t.startsWith("#") - ? h.createElement(WB, { hash: t }, n) - : h.createElement( - sc, - { - href: t, - onClick: (i) => { - i.button === 0 && - !i.altKey && - !i.ctrlKey && - !i.metaKey && - !i.shiftKey && - (i.preventDefault(), - Cp(a, i.currentTarget.getAttribute("href") || "")); - }, - target: r, - ...o, - }, - n, - ); - }, - D2 = ["h1", "h2", "h3", "h4", "h5", "h6"], - VB = D2.reduce( - (e, t) => ({ - ...e, - [t]: T(t)({ - "& svg": { position: "relative", top: "-0.1em", visibility: "hidden" }, - "&:hover svg": { visibility: "visible" }, - }), - }), - {}, - ), - qB = T.a(() => ({ - float: "left", - lineHeight: "inherit", - paddingRight: "10px", - marginLeft: "-24px", - color: "inherit", - })), - GB = ({ as: e, id: t, children: r, ...n }) => { - let o = b.useContext(Vt), - a = VB[e], - i = `#${t}`; - return h.createElement( - a, - { id: t, ...n }, - h.createElement( - qB, - { - "aria-hidden": "true", - href: i, - tabIndex: -1, - target: "_self", - onClick: (l) => { - C2.getElementById(t) && Cp(o, i); - }, - }, - h.createElement(JT, null), - ), - r, - ); - }, - $p = (e) => { - let { as: t, id: r, children: n, ...o } = e; - if (r) return h.createElement(GB, { as: t, id: r, ...o }, n); - let a = t, - { as: i, ...l } = e; - return h.createElement(a, { ...ve(l, t) }); - }, - k2 = D2.reduce( - (e, t) => ({ ...e, [t]: (r) => h.createElement($p, { as: t, ...r }) }), - {}, - ), - YB = (e) => { - if (!e.children) return null; - if (typeof e.children != "string") - throw new Error(nR`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}' - This is often caused by not wrapping the child in a template string. - - This is invalid: - - # Some heading - A paragraph - - - Instead do: - - {\` - # Some heading - A paragraph - \`} - - `); - return h.createElement(WS, { - ...e, - options: { - forceBlock: !0, - overrides: { code: $2, a: A2, ...k2, ...e?.options?.overrides }, - ...e?.options, - }, - }); - }, - KB = ((e) => ( - (e.INFO = "info"), - (e.NOTES = "notes"), - (e.DOCGEN = "docgen"), - (e.AUTO = "auto"), - e - ))(KB || {}), - XB = (e) => { - switch (e.type) { - case "story": - return e.story.parameters.docs?.description?.story || null; - case "meta": { - let { parameters: t, component: r } = e.preparedMeta; - return ( - t.docs?.description?.component || - t.docs?.extractComponentDescription?.(r, { - component: r, - parameters: t, - }) || - null - ); - } - case "component": { - let { - component: t, - projectAnnotations: { parameters: r }, - } = e; - return ( - r?.docs?.extractComponentDescription?.(t, { - component: t, - parameters: r, - }) || null - ); - } - default: - throw new Error( - `Unrecognized module type resolved from 'useOf', got: ${e.type}`, - ); - } - }, - uc = (e) => { - let { of: t } = e; - if ("of" in e && t === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let r = pn(t || "meta"), - n = XB(r); - return n ? h.createElement(YB, null, n) : null; - }, - { document: ZB, window: JB } = globalThis, - QB = ({ context: e, theme: t, children: r }) => { - let n; - try { - n = e.resolveOf("meta", ["meta"]).preparedMeta.parameters?.docs?.toc; - } catch { - n = e?.projectAnnotations?.parameters?.docs?.toc; - } - return ( - b.useEffect(() => { - let o; - try { - if (((o = new URL(JB.parent.location.toString())), o.hash)) { - let a = ZB.getElementById(decodeURIComponent(o.hash.substring(1))); - a && - setTimeout(() => { - YI(a); - }, 200); - } - } catch {} - }), - h.createElement( - Vt.Provider, - { value: e }, - h.createElement( - kB, - { channel: e.channel }, - h.createElement( - zb, - { theme: Z5(t) }, - h.createElement( - a6, - { - toc: n - ? h.createElement(z6, { - className: "sbdocs sbdocs-toc--custom", - channel: e.channel, - ...n, - }) - : null, - }, - r, - ), - ), - ), - ) - ); - }, - eN = - /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g, - tN = Object.hasOwnProperty, - rN = class { - constructor() { - (this.occurrences, this.reset()); - } - slug(e, t) { - let r = this, - n = nN(e, t === !0), - o = n; - for (; tN.call(r.occurrences, n); ) - (r.occurrences[o]++, (n = o + "-" + r.occurrences[o])); - return ((r.occurrences[n] = 0), n); - } - reset() { - this.occurrences = Object.create(null); - } - }; -function nN(e, t) { - return typeof e != "string" - ? "" - : (t || (e = e.toLowerCase()), e.replace(eN, "").replace(/ /g, "-")); -} -var O2 = new rN(), - oN = ({ children: e, disableAnchor: t, ...r }) => { - if (t || typeof e != "string") return h.createElement(Hd, null, e); - let n = O2.slug(e.toLowerCase()); - return h.createElement($p, { as: "h2", id: n, ...r }, e); - }, - aN = ({ children: e, disableAnchor: t }) => { - if (t || typeof e != "string") return h.createElement(Ud, null, e); - let r = O2.slug(e.toLowerCase()); - return h.createElement($p, { as: "h3", id: r }, e); - }, - F2 = ({ - of: e, - expanded: t = !0, - withToolbar: r = !1, - __forceInitialArgs: n = !1, - __primary: o = !1, - }) => { - let { story: a } = pn(e || "story", ["story"]), - i = a.parameters.docs?.canvas?.withToolbar ?? r; - return h.createElement( - VI, - { storyId: a.id }, - t && - h.createElement( - h.Fragment, - null, - h.createElement(aN, null, a.name), - h.createElement(uc, { of: e }), - ), - h.createElement(NB, { - of: e, - withToolbar: i, - story: { __forceInitialArgs: n, __primary: o }, - source: { __forceInitialArgs: n }, - }), - ); - }, - iN = (e) => { - let { of: t } = e; - if ("of" in e && t === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let { csfFile: r } = pn(t || "meta", ["meta"]), - n = b.useContext(Vt).componentStoriesFromCSFFile(r)[0]; - return n - ? h.createElement(F2, { - of: n.moduleExport, - expanded: !1, - __primary: !0, - withToolbar: !0, - }) - : null; - }, - lN = T(oN)(({ theme: e }) => ({ - fontSize: `${e.typography.size.s2 - 1}px`, - fontWeight: e.typography.weight.bold, - lineHeight: "16px", - letterSpacing: "0.35em", - textTransform: "uppercase", - color: e.textMutedColor, - border: 0, - marginBottom: "12px", - "&:first-of-type": { marginTop: "56px" }, - })), - sN = ({ title: e = "Stories", includePrimary: t = !0 }) => { - let { - componentStories: r, - projectAnnotations: n, - getStoryContext: o, - } = b.useContext(Vt), - a = r(), - { stories: { filter: i } = { filter: void 0 } } = - n.parameters?.docs || {}; - return ( - i && (a = a.filter((l) => i(l, o(l)))), - a.some((l) => l.tags?.includes("autodocs")) && - (a = a.filter((l) => l.tags?.includes("autodocs") && !l.usesMount)), - t || (a = a.slice(1)), - !a || a.length === 0 - ? null - : h.createElement( - h.Fragment, - null, - typeof e == "string" ? h.createElement(lN, null, e) : e, - a.map( - (l) => - l && - h.createElement(F2, { - key: l.id, - of: l.moduleExport, - expanded: !0, - __forceInitialArgs: !0, - }), - ), - ) - ); - }, - uN = - "https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle", - cN = (e) => { - let { of: t, children: r } = e; - if ("of" in e && t === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let n; - try { - n = pn(t || "meta", ["meta"]).preparedMeta; - } catch (l) { - if (r && !l.message.includes("did you forget to use ?")) - throw l; - } - let { componentSubtitle: o, docs: a } = n?.parameters || {}; - o && - oR( - `Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${uN}`, - ); - let i = r || a?.subtitle || o; - return i - ? h.createElement(r6, { className: "sbdocs-subtitle sb-unstyled" }, i) - : null; - }, - dN = /\s*\/\s*/, - pN = (e) => { - let t = e.trim().split(dN); - return t?.[t?.length - 1] || e; - }, - fN = (e) => { - let { children: t, of: r } = e; - if ("of" in e && r === void 0) - throw new Error( - "Unexpected `of={undefined}`, did you mistype a CSF file reference?", - ); - let n; - try { - n = pn(r || "meta", ["meta"]).preparedMeta; - } catch (a) { - if ( - t && - a instanceof Error && - !a.message.includes("did you forget to use ?") - ) - throw a; - } - let o = t || pN(n?.title || ""); - return o - ? h.createElement(t6, { className: "sbdocs-title sb-unstyled" }, o) - : null; - }, - gN = () => { - let e = pn("meta", ["meta"]), - { stories: t } = e.csfFile, - r = Object.keys(t).length === 1; - return h.createElement( - h.Fragment, - null, - h.createElement(fN, null), - h.createElement(cN, null), - h.createElement(uc, { of: "meta" }), - r ? h.createElement(uc, { of: "story" }) : null, - h.createElement(iN, null), - h.createElement(UB, null), - r ? null : h.createElement(sN, null), - ); - }; -function mN({ context: e, docsParameter: t }) { - let r = t.container || QB, - n = t.page || gN; - return h.createElement( - r, - { context: e, theme: t.theme }, - h.createElement(n, null), - ); -} -var _2 = { code: $2, a: A2, ...k2 }, - hN = class extends b.Component { - constructor() { - (super(...arguments), (this.state = { hasError: !1 })); - } - static getDerivedStateFromError() { - return { hasError: !0 }; - } - componentDidCatch(e) { - let { showException: t } = this.props; - t(e); - } - render() { - let { hasError: e } = this.state, - { children: t } = this.props; - return e ? null : h.createElement(h.Fragment, null, t); - } - }, - yN = class { - constructor() { - ((this.render = async (e, t, r) => { - let n = { ..._2, ...t?.components }, - o = mN; - return new Promise((a, i) => { - cc( - async () => { - const { MDXProvider: l } = await import("./index-O1jB17X4.js"); - return { MDXProvider: l }; - }, - __vite__mapDeps([6, 1, 2, 3]), - ) - .then(({ MDXProvider: l }) => - I2( - h.createElement( - hN, - { showException: i, key: Math.random() }, - h.createElement( - l, - { components: n }, - h.createElement(o, { context: e, docsParameter: t }), - ), - ), - r, - ), - ) - .then(() => a()); - }); - }), - (this.unmount = (e) => { - L2(e); - })); - } - }; -const VN = Object.freeze( - Object.defineProperty( - { __proto__: null, DocsRenderer: yN, defaultComponents: _2 }, - Symbol.toStringTag, - { value: "Module" }, - ), -); -export { - VN as D, - MN as M, - U4 as Y, - uo as Z, - lD as _, - aD as a, - LN as d, - Ft as g, - J4 as i, - T as x, -}; diff --git a/docs/assets/Footer.stories-DFwAxlXr.js b/docs/assets/Footer.stories-DFwAxlXr.js deleted file mode 100644 index c206e16..0000000 --- a/docs/assets/Footer.stories-DFwAxlXr.js +++ /dev/null @@ -1,351 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { L as o } from "./Logo-DM7O8ATg.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -function n() { - return e.jsx("div", { - className: "flex flex-col items-center self-stretch", - children: e.jsx("div", { - className: - "flex items-start self-stretch h-px w-full bg-[var(--border-color-default-secondary)]", - }), - }); -} -n.__docgenInfo = { description: "", methods: [], displayName: "Separator" }; -function r() { - const a = { - "@context": "https://schema.org", - "@type": "Organization", - name: "Media Economies Design Lab", - email: "medlab@colorado.edu", - url: "https://communityrule.com", - sameAs: [ - "https://bsky.app/profile/medlabboulder", - "https://gitlab.com/medlabboulder", - ], - }; - return e.jsxs(e.Fragment, { - children: [ - e.jsx("script", { - type: "application/ld+json", - dangerouslySetInnerHTML: { __html: JSON.stringify(a) }, - }), - e.jsx("footer", { - className: "bg-[var(--color-surface-default-primary)] w-full", - children: e.jsxs("div", { - className: - "flex flex-col items-start mx-auto px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-040)] gap-[var(--spacing-measures-spacing-040)] sm:px-[var(--spacing-measures-spacing-032)] sm:py-[var(--spacing-measures-spacing-024)] sm:gap-[var(--spacing-measures-spacing-024)] lg:px-[var(--spacing-measures-spacing-120,120px)] lg:py-[var(--spacing-measures-spacing-096,96px)] lg:gap-[var(--spacing-measures-spacing-060,60px)]", - children: [ - e.jsx("div", { - className: "block sm:hidden", - children: e.jsx(o, {}), - }), - e.jsx("div", { - className: "hidden sm:block lg:hidden", - children: e.jsx(o, { size: "footer" }), - }), - e.jsx("div", { - className: "hidden lg:block", - children: e.jsx(o, { size: "footerLg" }), - }), - e.jsxs("div", { - className: - "flex flex-col items-start w-full gap-[var(--spacing-measures-spacing-048,48px)] sm:flex-row sm:justify-between sm:gap-0", - children: [ - e.jsxs("div", { - className: - "flex flex-col items-start gap-[var(--spacing-measures-spacing-064,64px)] order-2 sm:order-1", - children: [ - e.jsxs("div", { - className: - "flex flex-col items-start gap-[var(--spacing-measures-spacing-016,16px)]", - children: [ - e.jsx("div", { - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal", - children: "Media Economies Design Lab", - }), - e.jsx("a", { - href: "mailto:medlab@colorado.edu", - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "medlab@colorado.edu", - }), - ], - }), - e.jsxs("div", { - className: - "flex flex-col items-start gap-[var(--spacing-measures-spacing-016,16px)]", - children: [ - e.jsxs("a", { - href: "#", - className: - "flex items-center gap-[var(--spacing-measures-spacing-06,6px)] hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer group", - "aria-label": "Follow us on Bluesky", - children: [ - e.jsx("img", { - src: "assets/Bluesky_Logo.svg", - alt: "Bluesky", - width: 24, - height: 22, - className: - "flex-shrink-0 group-hover:scale-110 transition-transform", - }), - e.jsx("div", { - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal", - children: "medlabboulder", - }), - ], - }), - e.jsxs("a", { - href: "#", - className: - "flex items-center gap-[var(--spacing-measures-spacing-06,6px)] hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer group", - "aria-label": "Follow us on GitLab", - children: [ - e.jsx("img", { - src: "assets/GitLab_Icon.png", - alt: "GitLab", - width: 22, - height: 22, - className: - "flex-shrink-0 grayscale group-hover:scale-110 transition-transform", - }), - e.jsx("div", { - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal", - children: "medlabboulder", - }), - ], - }), - ], - }), - ], - }), - e.jsxs("div", { - className: - "flex flex-col items-start gap-[var(--spacing-measures-spacing-032,32px)] order-1 sm:order-2 sm:items-end", - children: [ - e.jsx("a", { - href: "#", - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "Use cases", - }), - e.jsx("a", { - href: "#", - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "Learn", - }), - e.jsx("a", { - href: "#", - className: - "text-[var(--color-content-default-primary)] font-['Inter'] text-base leading-5 font-medium tracking-[0%] lg:text-2xl lg:leading-7 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-primary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "About", - }), - ], - }), - ], - }), - e.jsx(n, {}), - e.jsxs("div", { - className: - "flex flex-col items-start gap-[var(--spacing-measures-spacing-032,32px)] sm:flex-row sm:justify-between sm:items-center w-full", - children: [ - e.jsx("div", { - className: - "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium sm:text-xs sm:leading-4 lg:text-sm lg:leading-5 lg:font-normal", - children: "© All right reserved", - }), - e.jsxs("div", { - className: - "flex flex-col items-start gap-[var(--spacing-measures-spacing-040,40px)] sm:flex-row sm:gap-[var(--spacing-measures-spacing-040,40px)]", - children: [ - e.jsx("a", { - href: "#", - className: - "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "Privacy Policy", - }), - e.jsx("a", { - href: "#", - className: - "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "Terms of Service", - }), - e.jsx("a", { - href: "#", - className: - "text-[var(--color-content-default-secondary)] font-['Inter'] text-sm leading-5 font-medium underline sm:text-xs sm:leading-4 sm:no-underline lg:text-sm lg:leading-5 lg:font-normal hover:opacity-80 active:opacity-60 focus:opacity-80 focus:outline-none focus:ring-2 focus:ring-[var(--color-content-default-secondary)] focus:ring-offset-2 focus:ring-offset-[var(--color-surface-default-primary)] transition-opacity p-2 -m-2 cursor-pointer", - children: "Cookies Settings", - }), - ], - }), - ], - }), - ], - }), - }), - ], - }); -} -r.__docgenInfo = { description: "", methods: [], displayName: "Footer" }; -const d = { - title: "Components/Footer", - component: r, - parameters: { - layout: "fullscreen", - docs: { - description: { - component: - "The main footer with responsive layout, branding section, navigation links, and legal information. Features different logo sizes and layout changes across breakpoints.", - }, - }, - }, - tags: ["autodocs"], - }, - s = { - args: {}, - parameters: { - docs: { - description: { - story: - "Use the Viewport toolbar to see how the footer adapts to different screen sizes. The layout changes from stacked to side-by-side and logo sizes adjust.", - }, - }, - }, - }, - t = { - args: {}, - render: () => - e.jsxs("div", { - className: "min-h-screen bg-[var(--color-surface-default-primary)]", - children: [ - e.jsx("main", { - className: "p-8", - children: e.jsxs("div", { - className: "max-w-4xl mx-auto", - children: [ - e.jsx("h1", { - className: "text-2xl font-bold text-white mb-4", - children: "Example Page Content", - }), - e.jsx("p", { - className: "text-white mb-4", - children: - "This demonstrates how the footer looks in a realistic page context. The footer maintains its responsive behavior while providing navigation and branding information.", - }), - e.jsx("div", { - className: - "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", - children: [1, 2, 3, 4, 5, 6].map((a) => - e.jsxs( - "div", - { - className: - "bg-[var(--color-surface-default-secondary)] p-4 rounded-lg", - children: [ - e.jsxs("h3", { - className: "text-white font-semibold mb-2", - children: ["Content Block ", a], - }), - e.jsx("p", { - className: - "text-[var(--color-content-default-secondary)] text-sm", - children: - "This is example content to show how the footer integrates with page content.", - }), - ], - }, - a, - ), - ), - }), - ], - }), - }), - e.jsx(r, {}), - ], - }), - parameters: { - docs: { - description: { - story: - "The footer integrated into a full page layout to show how it works in context.", - }, - }, - }, - }; -s.parameters = { - ...s.parameters, - docs: { - ...s.parameters?.docs, - source: { - originalSource: `{ - args: {}, - parameters: { - docs: { - description: { - story: "Use the Viewport toolbar to see how the footer adapts to different screen sizes. The layout changes from stacked to side-by-side and logo sizes adjust." - } - } - } -}`, - ...s.parameters?.docs?.source, - }, - }, -}; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-
-

- Example Page Content -

-

- This demonstrates how the footer looks in a realistic page context. - The footer maintains its responsive behavior while providing - navigation and branding information. -

-
- {[1, 2, 3, 4, 5, 6].map(i =>
-

- Content Block {i} -

-

- This is example content to show how the footer integrates with - page content. -

-
)} -
-
-
-
-
, - parameters: { - docs: { - description: { - story: "The footer integrated into a full page layout to show how it works in context." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -const f = ["Default", "InPageContext"]; -export { - s as Default, - t as InPageContext, - f as __namedExportsOrder, - d as default, -}; diff --git a/docs/assets/GitLab_Icon.png b/docs/assets/GitLab_Icon.png deleted file mode 100644 index 94f6502..0000000 Binary files a/docs/assets/GitLab_Icon.png and /dev/null differ diff --git a/docs/assets/Header-Bz-bT1Sq.js b/docs/assets/Header-Bz-bT1Sq.js deleted file mode 100644 index 0303bab..0000000 --- a/docs/assets/Header-Bz-bT1Sq.js +++ /dev/null @@ -1,191 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { L as v } from "./Logo-DM7O8ATg.js"; -import { M as t } from "./MenuBar-anMCqtJv.js"; -import { M as d } from "./MenuBarItem-Dp8NM2fx.js"; -import { B as j } from "./Button-Z4hbXct5.js"; -import { A as b } from "./AvatarContainer-Bt0G0TWZ.js"; -import { A as f } from "./Avatar-C4Vb3oYl.js"; -function N({ onToggle: c }) { - const m = { - "@context": "https://schema.org", - "@type": "WebSite", - name: "CommunityRule", - url: "https://communityrule.com", - potentialAction: { - "@type": "SearchAction", - target: "https://communityrule.com/search?q={search_term_string}", - "query-input": "required name=search_term_string", - }, - }, - o = [ - { href: "#", text: "Use cases", extraPadding: !0 }, - { href: "#", text: "Learn" }, - { href: "#", text: "About" }, - ], - x = [ - { src: "/assets/Avatar_1.png", alt: "Avatar 1" }, - { src: "/assets/Avatar_2.png", alt: "Avatar 2" }, - { src: "/assets/Avatar_3.png", alt: "Avatar 3" }, - ], - h = [ - { breakpoint: "block sm:hidden", size: "header", showText: !1 }, - { breakpoint: "hidden sm:block md:hidden", size: "header", showText: !0 }, - { - breakpoint: "hidden md:block lg:hidden", - size: "headerMd", - showText: !0, - }, - { - breakpoint: "hidden lg:block xl:hidden", - size: "headerLg", - showText: !0, - }, - { breakpoint: "hidden xl:block", size: "headerXl", showText: !0 }, - ], - i = (a) => - o.map((s, r) => - e.jsx( - d, - { - href: s.href, - size: s.extraPadding && a === "xsmall" ? "xsmallUseCases" : a, - onClick: c, - ariaLabel: `Navigate to ${s.text} page`, - children: s.text, - }, - r, - ), - ), - g = (a, s) => - e.jsx(b, { - size: a, - children: x.map((r, u) => - e.jsx(f, { src: r.src, alt: r.alt, size: s }, u), - ), - }), - l = (a) => - e.jsx(d, { - href: "#", - size: a, - ariaLabel: "Log in to your account", - children: "Log in", - }), - n = (a, s, r) => - e.jsxs(j, { - size: a, - ariaLabel: "Create a new rule with avatar decoration", - children: [g(s, r), e.jsx("span", { children: "Create rule" })], - }), - p = (a, s) => e.jsx(v, { size: a, showText: s }); - return e.jsxs(e.Fragment, { - children: [ - e.jsx("script", { - type: "application/ld+json", - dangerouslySetInnerHTML: { __html: JSON.stringify(m) }, - }), - e.jsx("header", { - className: - "bg-[var(--color-surface-default-primary)] w-full border-b border-[var(--border-color-default-tertiary)]", - role: "banner", - "aria-label": "Main navigation header", - children: e.jsxs("nav", { - className: - "flex items-center justify-between mx-auto h-[40px] lg:h-[84px] xl:h-[88px] px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-008)] lg:px-[var(--spacing-measures-spacing-64,64px)] lg:py-[var(--spacing-measures-spacing-016,16px)]", - role: "navigation", - "aria-label": "Main navigation", - children: [ - e.jsx("div", { - className: "flex items-center", - children: h.map((a, s) => - e.jsx( - "div", - { className: a.breakpoint, children: p(a.size, a.showText) }, - s, - ), - ), - }), - e.jsxs("div", { - className: "flex items-center", - children: [ - e.jsx("div", { className: "block sm:hidden" }), - e.jsx("div", { - className: "hidden sm:block md:hidden", - children: e.jsxs(t, { - size: "default", - children: [i("xsmall"), l("xsmall")], - }), - }), - e.jsx("div", { - className: "hidden md:block lg:hidden", - children: e.jsx(t, { - size: "default", - children: i("xsmall"), - }), - }), - e.jsx("div", { - className: "hidden lg:block xl:hidden", - children: e.jsx(t, { size: "large", children: i("large") }), - }), - e.jsx("div", { - className: "hidden xl:block", - children: e.jsx(t, { size: "large", children: i("xlarge") }), - }), - ], - }), - e.jsxs("div", { - className: "flex items-center", - children: [ - e.jsx("div", { - className: "block sm:hidden", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-scale-001)]", - children: [ - i("xsmall"), - l("xsmall"), - n("xsmall", "small", "small"), - ], - }), - }), - e.jsx("div", { - className: "hidden sm:block md:hidden", - children: e.jsx("div", { - className: - "flex items-center gap-[var(--spacing-scale-004)]", - children: n("xsmall", "small", "small"), - }), - }), - e.jsx("div", { - className: "hidden md:block lg:hidden", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-measures-spacing-010)]", - children: [l("xsmall"), n("xsmall", "medium", "medium")], - }), - }), - e.jsx("div", { - className: "hidden lg:block xl:hidden", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-measures-spacing-004)]", - children: [l("large"), n("large", "xlarge", "xlarge")], - }), - }), - e.jsx("div", { - className: "hidden xl:block", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-measures-spacing-004)]", - children: [l("xlarge"), n("xlarge", "xlarge", "xlarge")], - }), - }), - ], - }), - ], - }), - }), - ], - }); -} -N.__docgenInfo = { description: "", methods: [], displayName: "Header" }; -export { N as H }; diff --git a/docs/assets/Header.stories-5BG7D2h7.js b/docs/assets/Header.stories-5BG7D2h7.js deleted file mode 100644 index dbc239b..0000000 --- a/docs/assets/Header.stories-5BG7D2h7.js +++ /dev/null @@ -1,168 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { H as o } from "./Header-Bz-bT1Sq.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./Logo-DM7O8ATg.js"; -import "./MenuBar-anMCqtJv.js"; -import "./MenuBarItem-Dp8NM2fx.js"; -import "./Button-Z4hbXct5.js"; -import "./AvatarContainer-Bt0G0TWZ.js"; -import "./Avatar-C4Vb3oYl.js"; -const x = { - title: "Components/Header", - component: o, - parameters: { - layout: "fullscreen", - docs: { - description: { - component: - "The main navigation header with responsive behavior across different breakpoints.", - }, - }, - }, - argTypes: { onToggle: { action: "toggled" } }, - tags: ["autodocs"], - }, - t = { - args: {}, - parameters: { - docs: { - description: { - story: - "Use the Viewport toolbar to change the iframe width and see how the header adapts to different screen sizes. The header shows different layouts for mobile, tablet, and desktop breakpoints.", - }, - }, - }, - }, - a = { - args: {}, - render: () => - e.jsxs("div", { - className: "min-h-screen bg-[var(--color-surface-default-primary)]", - children: [ - e.jsx(o, {}), - e.jsx("main", { - className: "p-8", - children: e.jsxs("div", { - className: "max-w-4xl mx-auto", - children: [ - e.jsx("h1", { - className: "text-2xl font-bold text-white mb-4", - children: "Example Page Content", - }), - e.jsx("p", { - className: "text-white mb-4", - children: - "This demonstrates how the header looks in a realistic page context. The header maintains its responsive behavior while providing navigation for the page content.", - }), - e.jsx("div", { - className: - "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4", - children: [1, 2, 3, 4, 5, 6].map((s) => - e.jsxs( - "div", - { - className: - "bg-[var(--color-surface-default-secondary)] p-4 rounded-lg", - children: [ - e.jsxs("h3", { - className: "text-white font-semibold mb-2", - children: ["Content Block ", s], - }), - e.jsx("p", { - className: - "text-[var(--color-content-default-secondary)] text-sm", - children: - "This is example content to show how the header integrates with page content.", - }), - ], - }, - s, - ), - ), - }), - ], - }), - }), - ], - }), - parameters: { - docs: { - description: { - story: - "The header integrated into a full page layout to show how it works in context.", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: {}, - parameters: { - docs: { - description: { - story: "Use the Viewport toolbar to change the iframe width and see how the header adapts to different screen sizes. The header shows different layouts for mobile, tablet, and desktop breakpoints." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -a.parameters = { - ...a.parameters, - docs: { - ...a.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-
-
-

- Example Page Content -

-

- This demonstrates how the header looks in a realistic page context. - The header maintains its responsive behavior while providing - navigation for the page content. -

-
- {[1, 2, 3, 4, 5, 6].map(i =>
-

- Content Block {i} -

-

- This is example content to show how the header integrates with - page content. -

-
)} -
-
-
-
, - parameters: { - docs: { - description: { - story: "The header integrated into a full page layout to show how it works in context." - } - } - } -}`, - ...a.parameters?.docs?.source, - }, - }, -}; -const f = ["Default", "InPageContext"]; -export { - t as Default, - a as InPageContext, - f as __namedExportsOrder, - x as default, -}; diff --git a/docs/assets/HeaderTab-D9jUrYUx.js b/docs/assets/HeaderTab-D9jUrYUx.js deleted file mode 100644 index 7ec8b47..0000000 --- a/docs/assets/HeaderTab-D9jUrYUx.js +++ /dev/null @@ -1,41 +0,0 @@ -import { j as s } from "./jsx-runtime-C_nHp4yK.js"; -function n({ children: a, className: e = "", stretch: l = !1, ...p }) { - const r = l - ? "flex-1 sm:mr-[var(--spacing-scale-008)] md:mr-[185px] lg:mr-[var(--spacing-scale-024)] xl:mr-[var(--spacing-scale-032)]" - : ""; - return s.jsxs("div", { - className: `HeaderTab header-breakpoint-transition relative bg-[var(--color-surface-default-brand-primary)] rounded-t-[32px] sm:rounded-t-[32px] md:rounded-t-[32px] lg:rounded-t-[32px] xl:rounded-t-[32px] pl-[var(--spacing-measures-spacing-012)] h-[40px] sm:h-[52px] md:h-[52px] lg:h-[52px] xl:h-[64px] sm:pr-[var(--spacing-scale-006)] md:pl-[var(--spacing-scale-024)] lg:pl-[var(--spacing-scale-024)] xl:pl-[var(--spacing-scale-032)] md:pr-[var(--spacing-scale-012)] lg:pr-[var(--spacing-scale-048)] xl:pr-[var(--spacing-scale-120)] md:gap-[var(--spacing-scale-032)] ${r} ${e}`, - ...p, - children: [ - a, - s.jsx("img", { - src: "assets/Union_xsm.svg", - alt: "Union", - className: - "absolute -bottom-[3px] -right-[52px] w-[61px] h-[24px] sm:w-[61px] sm:h-[31.5px] sm:hidden -z-10", - }), - s.jsx("img", { - src: "assets/Union_sm_md_lg.svg", - alt: "Union", - className: - "absolute -bottom-[3.7px] -right-[53px] w-[61px] h-[24px] sm:w-[61px] sm:h-[31.5px] hidden sm:block xl:hidden -z-10", - }), - s.jsx("img", { - src: "assets/Union_xlg.svg", - alt: "Union", - className: - "absolute -bottom-[6px] -right-[94px] w-[105px] h-[53px] hidden xl:block -z-10", - }), - ], - }); -} -n.__docgenInfo = { - description: "", - methods: [], - displayName: "HeaderTab", - props: { - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - stretch: { defaultValue: { value: "false", computed: !1 }, required: !1 }, - }, -}; -export { n as H }; diff --git a/docs/assets/HeaderTab.stories-7KIqz1LH.js b/docs/assets/HeaderTab.stories-7KIqz1LH.js deleted file mode 100644 index 24c0f05..0000000 --- a/docs/assets/HeaderTab.stories-7KIqz1LH.js +++ /dev/null @@ -1,53 +0,0 @@ -import { j as t } from "./jsx-runtime-C_nHp4yK.js"; -import { H as r } from "./HeaderTab-D9jUrYUx.js"; -import { L as s } from "./Logo-DM7O8ATg.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const p = { - title: "Components/HeaderTab", - component: r, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A header tab container with decorative Union images and responsive behavior. Used to wrap content in the header with consistent styling and responsive breakpoint transitions.", - }, - }, - }, - argTypes: { - stretch: { - control: { type: "boolean" }, - description: "Whether the tab should stretch to fill available space", - }, - className: { - control: { type: "text" }, - description: "Additional CSS classes", - }, - }, - tags: ["autodocs"], - }, - e = { - args: { stretch: !1 }, - render: (a) => - t.jsx(r, { ...a, children: t.jsx(s, { size: "homeHeaderMd" }) }), - }; -e.parameters = { - ...e.parameters, - docs: { - ...e.parameters?.docs, - source: { - originalSource: `{ - args: { - stretch: false - }, - render: args => - - -}`, - ...e.parameters?.docs?.source, - }, - }, -}; -const m = ["Default"]; -export { e as Default, m as __namedExportsOrder, p as default }; diff --git a/docs/assets/HeroBanner-D2qHR4vw.js b/docs/assets/HeroBanner-D2qHR4vw.js deleted file mode 100644 index 0639945..0000000 --- a/docs/assets/HeroBanner-D2qHR4vw.js +++ /dev/null @@ -1,43 +0,0 @@ -import { j as a } from "./jsx-runtime-C_nHp4yK.js"; -import { C as t } from "./ContentLockup-DbWiPA4N.js"; -import { H as p } from "./HeroDecor-Csfoi-N_.js"; -const c = ({ title: e, subtitle: s, description: r, ctaText: l, ctaHref: n }) => - a.jsx("section", { - className: - "bg-transparent px-[var(--spacing-scale-008)] sm:px-[var(--spacing-scale-010)] md:px-[var(--spacing-scale-016)] lg:px-[var(--spacing-scale-024)] xl:px-[var(--spacing-scale-048)]", - children: a.jsx("div", { - className: "flex flex-col gap-[var(--spacing-scale-010)]", - children: a.jsxs("div", { - className: - "bg-[var(--color-surface-default-brand-primary)] p-[var(--spacing-scale-012)] sm:p-[var(--spacing-scale-016)] md:p-[var(--spacing-scale-064)] lg:py-[var(--spacing-scale-096)] lg:px-[var(--spacing-scale-064)] rounded-tl-none rounded-tr-[16px] rounded-br-[16px] rounded-bl-[16px] flex flex-col gap-[var(--spacing-scale-024)] sm:gap-[var(--spacing-scale-024)] md:flex-row md:gap-[var(--spacing-scale-048)] relative overflow-hidden", - children: [ - a.jsx(p, { - className: - "pointer-events-none absolute z-0 left-0 top-0 translate-x-[-72px] translate-y-[26px] sm:translate-x-[-78px] sm:translate-y-[24px] md:translate-x-[-86px] md:translate-y-[16px] lg:translate-x-[-88px] lg:translate-y-[16px] w-[1540px] h-[645px] scale-[1.04]", - }), - a.jsx("div", { - className: "md:flex-1", - children: a.jsx(t, { - title: e, - subtitle: s, - description: r, - ctaText: l, - ctaHref: n, - buttonClassName: "shrink-0 whitespace-nowrap min-w-[280px]", - }), - }), - a.jsx("div", { - className: - "w-full md:flex-1 rounded-[8px] overflow-hidden relative z-10 flex items-center justify-center", - children: a.jsx("img", { - src: "assets/HeroImage.png", - alt: "Hero illustration", - className: "w-full h-auto", - }), - }), - ], - }), - }), - }); -c.__docgenInfo = { description: "", methods: [], displayName: "HeroBanner" }; -export { c as H }; diff --git a/docs/assets/HeroBanner.stories-BAL-8UkC.js b/docs/assets/HeroBanner.stories-BAL-8UkC.js deleted file mode 100644 index 2b2bd6b..0000000 --- a/docs/assets/HeroBanner.stories-BAL-8UkC.js +++ /dev/null @@ -1,82 +0,0 @@ -import { H as e } from "./HeroBanner-D2qHR4vw.js"; -import "./jsx-runtime-C_nHp4yK.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./ContentLockup-DbWiPA4N.js"; -import "./Button-Z4hbXct5.js"; -import "./HeroDecor-Csfoi-N_.js"; -const p = { - title: "Components/HeroBanner", - component: e, - parameters: { - layout: "fullscreen", - docs: { - description: { - component: - "A responsive hero banner component that showcases the Community Rule branding and messaging. Adapts across multiple breakpoints with proper spacing, typography, and interactive elements. Includes background decorations and product demo integration.", - }, - }, - }, - argTypes: { - title: { control: { type: "text" }, description: "The main title text" }, - subtitle: { control: { type: "text" }, description: "The subtitle text" }, - description: { - control: { type: "text" }, - description: "The description text", - }, - ctaText: { - control: { type: "text" }, - description: "The call-to-action button text", - }, - ctaHref: { - control: { type: "text" }, - description: "The call-to-action button link", - }, - }, - tags: ["autodocs"], - }, - t = { - args: { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }, - parameters: { - docs: { - description: { - story: - "Default hero banner with standard Community Rule messaging and branding.", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Collaborate", - subtitle: "with clarity", - description: "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#" - }, - parameters: { - docs: { - description: { - story: "Default hero banner with standard Community Rule messaging and branding." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -const l = ["Default"]; -export { t as Default, l as __namedExportsOrder, p as default }; diff --git a/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js b/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js deleted file mode 100644 index 3fd9533..0000000 --- a/docs/assets/HeroBannerSystem.stories-FwOHoVvm.js +++ /dev/null @@ -1,523 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { H as t } from "./HeroBanner-D2qHR4vw.js"; -import { C as r } from "./ContentLockup-DbWiPA4N.js"; -import { H as o } from "./HeroDecor-Csfoi-N_.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./Button-Z4hbXct5.js"; -const y = { - title: "Systems/HeroBanner System", - parameters: { - layout: "fullscreen", - docs: { - description: { - component: - "Complete HeroBanner system showcasing all nested components working together. This demonstrates the full responsive behavior and component integration.", - }, - }, - }, - tags: ["autodocs"], - }, - n = { - render: () => - e.jsx("div", { - className: "min-h-screen bg-gray-50", - children: e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - parameters: { - docs: { - description: { - story: - "Complete HeroBanner system with all components integrated. Resize your browser to see responsive behavior across all breakpoints.", - }, - }, - }, - }, - a = { - render: () => - e.jsx("div", { - className: "space-y-12 p-8", - children: e.jsxs("div", { - children: [ - e.jsx("h2", { - className: "text-2xl font-bold mb-6", - children: "HeroBanner Components", - }), - e.jsxs("div", { - className: "space-y-8", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-4", - children: "1. ContentLockup Component", - }), - e.jsx("div", { - className: - "bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg", - children: e.jsx(r, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-4", - children: "2. HeroDecor Component", - }), - e.jsxs("div", { - className: - "bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg relative overflow-hidden h-64", - children: [ - e.jsx(o, { className: "w-full h-full" }), - e.jsx("div", { - className: "relative z-10 text-white mt-4", - children: e.jsx("p", { - children: "Decoration appears behind content", - }), - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-4", - children: "3. Complete HeroBanner", - }), - e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - ], - }), - ], - }), - ], - }), - }), - parameters: { - docs: { - description: { - story: - "Breakdown of individual components that make up the HeroBanner system, showing how they work together.", - }, - }, - }, - }, - s = { - render: () => - e.jsxs("div", { - className: "space-y-8 p-8", - children: [ - e.jsx("h2", { - className: "text-2xl font-bold", - children: "Responsive Breakpoints", - }), - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "XSmall (≤429px)", - }), - e.jsx("div", { - className: - "border-2 border-gray-300 rounded-lg overflow-hidden", - style: { width: "400px" }, - children: e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "Small (430px+)", - }), - e.jsx("div", { - className: - "border-2 border-gray-300 rounded-lg overflow-hidden", - style: { width: "600px" }, - children: e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "Medium (768px+)", - }), - e.jsx("div", { - className: - "border-2 border-gray-300 rounded-lg overflow-hidden", - style: { width: "900px" }, - children: e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "Large (1024px+)", - }), - e.jsx("div", { - className: - "border-2 border-gray-300 rounded-lg overflow-hidden", - style: { width: "1200px" }, - children: e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "XLarge (1440px+)", - }), - e.jsx("div", { - className: - "border-2 border-gray-300 rounded-lg overflow-hidden", - style: { width: "1600px" }, - children: e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "HeroBanner system demonstrating responsive behavior at each breakpoint. Each container simulates a different screen size.", - }, - }, - }, - }, - i = { - render: () => - e.jsxs("div", { - className: "space-y-8 p-8", - children: [ - e.jsx("h2", { - className: "text-2xl font-bold", - children: "Content Variations", - }), - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "Standard Content", - }), - e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "Alternative Content", - }), - e.jsx(t, { - title: "Build", - subtitle: "better communities", - description: - "Create operating manuals that help your community thrive and make decisions together.", - ctaText: "Get started today", - ctaHref: "/signup", - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-lg font-semibold mb-2", - children: "Long Description", - }), - e.jsx(t, { - title: "Collaborate", - subtitle: "with clarity", - description: - "Help your community make important decisions in a way that reflects its unique values. Our platform provides the tools and frameworks needed to build successful, sustainable communities that can navigate complex challenges together.", - ctaText: "Learn how Community Rule works", - ctaHref: "#", - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "HeroBanner system with different content variations to demonstrate flexibility and content handling.", - }, - }, - }, - }; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - render: () =>
- -
, - parameters: { - docs: { - description: { - story: "Complete HeroBanner system with all components integrated. Resize your browser to see responsive behavior across all breakpoints." - } - } - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -a.parameters = { - ...a.parameters, - docs: { - ...a.parameters?.docs, - source: { - originalSource: `{ - render: () =>
-
-

HeroBanner Components

- -
-
-

- 1. ContentLockup Component -

-
- -
-
- -
-

- 2. HeroDecor Component -

-
- -
-

Decoration appears behind content

-
-
-
- -
-

- 3. Complete HeroBanner -

- -
-
-
-
, - parameters: { - docs: { - description: { - story: "Breakdown of individual components that make up the HeroBanner system, showing how they work together." - } - } - } -}`, - ...a.parameters?.docs?.source, - }, - }, -}; -s.parameters = { - ...s.parameters, - docs: { - ...s.parameters?.docs, - source: { - originalSource: `{ - render: () =>
-

Responsive Breakpoints

- -
-
-

XSmall (≤429px)

-
- -
-
- -
-

Small (430px+)

-
- -
-
- -
-

Medium (768px+)

-
- -
-
- -
-

Large (1024px+)

-
- -
-
- -
-

XLarge (1440px+)

-
- -
-
-
-
, - parameters: { - docs: { - description: { - story: "HeroBanner system demonstrating responsive behavior at each breakpoint. Each container simulates a different screen size." - } - } - } -}`, - ...s.parameters?.docs?.source, - }, - }, -}; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - render: () =>
-

Content Variations

- -
-
-

Standard Content

- -
- -
-

Alternative Content

- -
- -
-

Long Description

- -
-
-
, - parameters: { - docs: { - description: { - story: "HeroBanner system with different content variations to demonstrate flexibility and content handling." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -const v = [ - "CompleteSystem", - "ComponentBreakdown", - "ResponsiveBreakpoints", - "ContentVariations", -]; -export { - n as CompleteSystem, - a as ComponentBreakdown, - i as ContentVariations, - s as ResponsiveBreakpoints, - v as __namedExportsOrder, - y as default, -}; diff --git a/docs/assets/HeroDecor-Csfoi-N_.js b/docs/assets/HeroDecor-Csfoi-N_.js deleted file mode 100644 index f56e051..0000000 --- a/docs/assets/HeroDecor-Csfoi-N_.js +++ /dev/null @@ -1,88 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -const s = ({ className: C = "" }) => - e.jsx("svg", { - className: `text-[#FDFAA8] opacity-50 ${C}`, - viewBox: "0 0 1540 645", - "aria-hidden": "true", - overflow: "visible", - preserveAspectRatio: "xMidYMid slice", - children: e.jsxs("g", { - fill: "currentColor", - children: [ - e.jsx("defs", { - children: e.jsxs("filter", { - id: "grain", - filterUnits: "objectBoundingBox", - x: "0", - y: "0", - width: "1", - height: "1", - colorInterpolationFilters: "sRGB", - children: [ - e.jsx("feTurbulence", { - type: "fractalNoise", - baseFrequency: "0.8", - numOctaves: "2", - seed: "3", - stitchTiles: "stitch", - result: "noise", - }), - e.jsx("feColorMatrix", { - in: "noise", - result: "softNoise", - type: "matrix", - values: " 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0", - }), - e.jsx("feComposite", { - in: "softNoise", - in2: "SourceAlpha", - operator: "in", - result: "maskedNoise", - }), - e.jsx("feBlend", { - in: "SourceGraphic", - in2: "maskedNoise", - mode: "multiply", - }), - ], - }), - }), - e.jsxs("g", { - fill: "currentColor", - filter: "url(#grain)", - children: [ - e.jsx("path", { - d: "M1441.54 226.758C1495.92 226.758 1540 320.385 1540 435.879C1540 551.373 1495.92 645 1441.54 645C1387.16 645 1343.08 551.373 1343.08 435.879C1343.08 320.385 1387.16 226.758 1441.54 226.758Z", - }), - e.jsx("path", { - d: "M1441.54 226.758C1495.92 226.758 1540 320.385 1540 435.879C1540 551.373 1495.92 645 1441.54 645C1387.16 645 1343.08 551.373 1343.08 435.879C1343.08 320.385 1387.16 226.758 1441.54 226.758Z", - }), - e.jsx("path", { - d: "M674.066 209.121C728.443 209.121 772.525 302.748 772.525 418.242C772.525 533.737 728.443 627.363 674.066 627.363C619.688 627.363 575.607 533.737 575.607 418.242C575.607 302.748 619.688 209.121 674.066 209.121Z", - }), - e.jsx("path", { - d: "M674.066 209.121C728.443 209.121 772.525 302.748 772.525 418.242C772.525 533.737 728.443 627.363 674.066 627.363C619.688 627.363 575.607 533.737 575.607 418.242C575.607 302.748 619.688 209.121 674.066 209.121Z", - }), - e.jsx("path", { - d: "M290.328 0C344.705 0 388.787 93.6267 388.787 209.121C388.787 211.519 388.765 213.907 388.728 216.285C401.725 133.082 438.661 73.0664 482.197 73.0664C536.574 73.0664 580.656 166.693 580.656 282.188C580.656 397.682 536.574 491.309 482.197 491.309C427.819 491.309 383.738 397.682 383.738 282.188C383.738 279.79 383.758 277.401 383.796 275.023C370.798 358.226 333.864 418.242 290.328 418.242C246.792 418.242 209.856 358.226 196.859 275.023C196.897 277.401 196.918 279.79 196.918 282.188C196.918 397.682 152.836 491.309 98.459 491.309C44.0816 491.309 0 397.682 0 282.188C0 166.693 44.0816 73.0664 98.459 73.0664C141.995 73.0664 178.929 133.082 191.927 216.285C191.889 213.907 191.869 211.519 191.869 209.121C191.869 93.6267 235.95 0 290.328 0Z", - }), - e.jsx("path", { - d: "M290.328 0C344.705 0 388.787 93.6267 388.787 209.121C388.787 211.519 388.765 213.907 388.728 216.285C401.725 133.082 438.661 73.0664 482.197 73.0664C536.574 73.0664 580.656 166.693 580.656 282.188C580.656 397.682 536.574 491.309 482.197 491.309C427.819 491.309 383.738 397.682 383.738 282.188C383.738 279.79 383.758 277.401 383.796 275.023C370.798 358.226 333.864 418.242 290.328 418.242C246.792 418.242 209.856 358.226 196.859 275.023C196.897 277.401 196.918 279.79 196.918 282.188C196.918 397.682 152.836 491.309 98.459 491.309C44.0816 491.309 0 397.682 0 282.188C0 166.693 44.0816 73.0664 98.459 73.0664C141.995 73.0664 178.929 133.082 191.927 216.285C191.889 213.907 191.869 211.519 191.869 209.121C191.869 93.6267 235.95 0 290.328 0Z", - }), - e.jsx("path", { - d: "M1057.8 0C1112.18 0 1156.26 93.6267 1156.26 209.121C1156.26 211.519 1156.24 213.907 1156.2 216.285C1169.2 133.082 1206.14 73.0664 1249.67 73.0664C1304.05 73.0664 1348.13 166.693 1348.13 282.188C1348.13 397.682 1304.05 491.309 1249.67 491.309C1195.29 491.309 1151.21 397.682 1151.21 282.188C1151.21 279.79 1151.23 277.401 1151.27 275.023C1138.27 358.226 1101.34 418.242 1057.8 418.242C1014.27 418.242 977.332 358.226 964.334 275.023C964.372 277.401 964.393 279.79 964.393 282.188C964.393 397.682 920.312 491.309 865.934 491.309C811.557 491.309 767.475 397.682 767.475 282.188C767.475 166.693 811.557 73.0664 865.934 73.0664C909.47 73.0664 946.405 133.082 959.402 216.285C959.365 213.907 959.344 211.519 959.344 209.121C959.344 93.6267 1003.43 0 1057.8 0Z", - }), - ], - }), - ], - }), - }); -s.__docgenInfo = { - description: "", - methods: [], - displayName: "HeroDecor", - props: { - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - }, -}; -export { s as H }; diff --git a/docs/assets/HeroDecor.stories-CUMQtAQh.js b/docs/assets/HeroDecor.stories-CUMQtAQh.js deleted file mode 100644 index 75a0d7a..0000000 --- a/docs/assets/HeroDecor.stories-CUMQtAQh.js +++ /dev/null @@ -1,120 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { H as o } from "./HeroDecor-Csfoi-N_.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const d = { - title: "Components/HeroDecor", - component: o, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A decorative SVG component that provides background visual elements for the HeroBanner. Features grain effects and organic shapes that enhance the visual appeal without interfering with content readability.", - }, - }, - }, - argTypes: { - className: { - control: { type: "text" }, - description: "Additional CSS classes for positioning and styling", - }, - }, - tags: ["autodocs"], - }, - r = { - args: { className: "w-[400px] h-[200px]" }, - parameters: { - docs: { - description: { - story: - "Default hero decoration with standard sizing and positioning.", - }, - }, - }, - }, - t = { - args: { className: "w-[600px] h-[300px]" }, - render: (a) => - e.jsxs("div", { - className: - "bg-[var(--color-surface-default-brand-primary)] p-8 rounded-lg relative overflow-hidden", - children: [ - e.jsx(o, { ...a }), - e.jsxs("div", { - className: "relative z-10 text-white mt-4", - children: [ - e.jsx("h3", { children: "Content Overlay" }), - e.jsx("p", { - children: - "This demonstrates how the decoration appears behind content.", - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Hero decoration with background color to show how it integrates with content.", - }, - }, - }, - }; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - className: "w-[400px] h-[200px]" - }, - parameters: { - docs: { - description: { - story: "Default hero decoration with standard sizing and positioning." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - className: "w-[600px] h-[300px]" - }, - render: args =>
- -
-

Content Overlay

-

This demonstrates how the decoration appears behind content.

-
-
, - parameters: { - docs: { - description: { - story: "Hero decoration with background color to show how it integrates with content." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -const p = ["Default", "WithBackground"]; -export { - r as Default, - t as WithBackground, - p as __namedExportsOrder, - d as default, -}; diff --git a/docs/assets/HeroImage.png b/docs/assets/HeroImage.png deleted file mode 100644 index 9d82e90..0000000 Binary files a/docs/assets/HeroImage.png and /dev/null differ diff --git a/docs/assets/HomeHeader.stories-BZFS_npz.js b/docs/assets/HomeHeader.stories-BZFS_npz.js deleted file mode 100644 index 7d65d15..0000000 --- a/docs/assets/HomeHeader.stories-BZFS_npz.js +++ /dev/null @@ -1,393 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { r as w } from "./iframe-D_aMTKb2.js"; -import { L as N } from "./Logo-DM7O8ATg.js"; -import { M as l } from "./MenuBar-anMCqtJv.js"; -import { M as p } from "./MenuBarItem-Dp8NM2fx.js"; -import { B as y } from "./Button-Z4hbXct5.js"; -import { A as k } from "./AvatarContainer-Bt0G0TWZ.js"; -import { A as H } from "./Avatar-C4Vb3oYl.js"; -import { H as T } from "./HeaderTab-D9jUrYUx.js"; -import { H as A } from "./Header-Bz-bT1Sq.js"; -import "./preload-helper-DIZFD4sK.js"; -function m() { - const [t, h] = w.useState(!1), - g = { - "@context": "https://schema.org", - "@type": "WebSite", - name: "CommunityRule", - url: "https://communityrule.com", - description: "Build operating manuals for successful communities", - potentialAction: { - "@type": "SearchAction", - target: "https://communityrule.com/search?q={search_term_string}", - "query-input": "required name=search_term_string", - }, - }, - x = [ - { href: "#", text: "Use cases", extraPadding: !0 }, - { href: "#", text: "Learn" }, - { href: "#", text: "About" }, - ], - u = [ - { src: "/assets/Avatar_1.png", alt: "Avatar 1" }, - { src: "/assets/Avatar_2.png", alt: "Avatar 2" }, - { src: "/assets/Avatar_3.png", alt: "Avatar 3" }, - ], - f = [ - { breakpoint: "block sm:hidden", size: "homeHeaderXsmall", showText: !1 }, - { - breakpoint: "hidden sm:block md:hidden", - size: "homeHeaderSm", - showText: !0, - }, - { - breakpoint: "hidden md:block lg:hidden", - size: "homeHeaderMd", - showText: !0, - }, - { - breakpoint: "hidden lg:block xl:hidden", - size: "homeHeaderLg", - showText: !0, - }, - { breakpoint: "hidden xl:block", size: "homeHeaderXl", showText: !0 }, - ], - n = (a) => - x.map((r, s) => - e.jsx( - p, - { - href: r.href, - size: - r.extraPadding && - (a === "xsmall" || - a === "default" || - a === "home" || - a === "homeMd" || - a === "large" || - a === "homeXlarge") - ? a === "home" || a === "homeMd" - ? "homeMd" - : a === "large" - ? "large" - : a === "homeXlarge" - ? "homeXlarge" - : "xsmallUseCases" - : a, - variant: - a === "xsmall" || - a === "default" || - a === "home" || - a === "homeMd" || - a === "large" || - a === "homeXlarge" - ? "home" - : "default", - onClick: () => h(!t), - ariaLabel: `Navigate to ${r.text} page`, - children: r.text, - }, - s, - ), - ), - v = (a, r) => - e.jsx(k, { - size: a, - children: u.map((s, j) => - e.jsx(H, { src: s.src, alt: s.alt, size: r }, j), - ), - }), - o = (a) => - e.jsx(p, { - href: "#", - size: a, - variant: a === "xsmall" || a === "default" ? "home" : "default", - ariaLabel: "Log in to your account", - children: "Log in", - }), - d = (a, r, s) => - e.jsxs(y, { - size: a, - variant: "secondary", - ariaLabel: "Create a new rule with avatar decoration", - children: [v(r, s), e.jsx("span", { children: "Create rule" })], - }), - b = (a, r) => e.jsx(N, { size: a, showText: r }); - return t - ? e.jsx(A, { onToggle: () => h(!1) }) - : e.jsxs(e.Fragment, { - children: [ - e.jsx("script", { - type: "application/ld+json", - dangerouslySetInnerHTML: { __html: JSON.stringify(g) }, - }), - e.jsx("header", { - className: "w-full bg-transparent overflow-hidden", - role: "banner", - "aria-label": "Home page navigation header", - children: e.jsxs("nav", { - className: - "relative flex items-center justify-between mx-auto h-[50px] sm:h-[62px] md:h-[68px] lg:h-[68px] xl:h-[88px] px-[var(--spacing-scale-008)] pr-[var(--spacing-scale-016)] pt-[var(--spacing-scale-010)] sm:px-[var(--spacing-scale-010)] sm:pr-[var(--spacing-scale-020)] sm:pt-[var(--spacing-scale-010)] md:px-[var(--spacing-scale-016)] md:pr-[var(--spacing-scale-032)] md:pt-[var(--spacing-scale-016)] lg:pl-[var(--spacing-scale-024)] lg:pt-[var(--spacing-scale-016)] lg:pr-[var(--spacing-scale-056)] xl:pl-[var(--spacing-scale-048)] xl:pt-[var(--spacing-scale-024)] xl:pr-[var(--spacing-scale-056)]", - role: "navigation", - "aria-label": "Main navigation", - children: [ - e.jsxs(T, { - className: "flex items-center self-end", - stretch: !0, - children: [ - e.jsx("div", { - children: f.map((a, r) => - e.jsx( - "div", - { - className: a.breakpoint, - children: b(a.size, a.showText), - }, - r, - ), - ), - }), - e.jsx("div", { - className: "block sm:hidden -me-[2px]", - children: e.jsxs(l, { - size: "default", - children: [n("xsmall"), o("xsmall")], - }), - }), - ], - }), - e.jsxs("div", { - className: - "absolute left-1/2 transform -translate-x-1/2 hidden sm:block", - children: [ - e.jsx("div", { - className: "hidden sm:block md:hidden", - children: e.jsxs(l, { - size: "default", - children: [n("xsmall"), o("xsmall")], - }), - }), - e.jsx("div", { - className: "hidden md:block lg:hidden", - children: e.jsx(l, { - size: "medium", - children: n("homeMd"), - }), - }), - e.jsx("div", { - className: "hidden lg:block xl:hidden", - children: e.jsx(l, { - size: "large", - children: n("large"), - }), - }), - e.jsx("div", { - className: "hidden xl:block", - children: e.jsx(l, { - size: "large", - children: n("homeXlarge"), - }), - }), - ], - }), - e.jsxs("div", { - className: "flex items-center", - children: [ - e.jsx("div", { - className: "block md:hidden", - children: d("xsmall", "small", "small"), - }), - e.jsx("div", { - className: - "hidden md:block lg:hidden absolute right-[var(--spacing-measures-spacing-016)]", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-scale-010)]", - children: [o("homeMd"), d("small", "medium", "medium")], - }), - }), - e.jsx("div", { - className: "hidden lg:flex xl:hidden items-center", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-scale-004)]", - children: [o("large"), d("large", "large", "large")], - }), - }), - e.jsx("div", { - className: "hidden xl:flex items-center", - children: e.jsxs("div", { - className: - "flex items-center gap-[var(--spacing-scale-004)]", - children: [ - o("homeXlarge"), - d("xlarge", "xlarge", "xlarge"), - ], - }), - }), - ], - }), - ], - }), - }), - ], - }); -} -m.__docgenInfo = { description: "", methods: [], displayName: "HomeHeader" }; -const U = { - title: "Components/HomeHeader", - component: m, - parameters: { - layout: "fullscreen", - docs: { - description: { - component: - "The home page header with transparent background, HeaderTab wrapper, and responsive behavior. Features a toggle to switch between home header and regular header.", - }, - }, - }, - tags: ["autodocs"], - }, - i = { - args: {}, - parameters: { - docs: { - description: { - story: - "Use the Viewport toolbar to see how the home header adapts to different screen sizes. The header has a transparent background and uses HeaderTab for the left section.", - }, - }, - }, - }, - c = { - args: {}, - render: () => - e.jsxs("div", { - className: - "min-h-screen bg-gradient-to-b from-[var(--color-surface-default-primary)] to-[var(--color-surface-default-secondary)]", - children: [ - e.jsx(m, {}), - e.jsx("main", { - className: "p-8", - children: e.jsxs("div", { - className: "max-w-4xl mx-auto text-center", - children: [ - e.jsx("h1", { - className: "text-4xl font-bold text-white mb-4", - children: "Welcome to CommunityRule", - }), - e.jsx("p", { - className: - "text-xl text-[var(--color-content-default-secondary)] mb-8", - children: - "This demonstrates how the home header looks in a realistic home page context. The header maintains its transparent background and responsive behavior.", - }), - e.jsx("div", { - className: - "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6", - children: [1, 2, 3].map((t) => - e.jsxs( - "div", - { - className: - "bg-[var(--color-surface-default-secondary)] p-6 rounded-lg border border-[var(--border-color-default-tertiary)]", - children: [ - e.jsxs("h3", { - className: "text-white font-semibold mb-3", - children: ["Feature ", t], - }), - e.jsx("p", { - className: - "text-[var(--color-content-default-secondary)]", - children: - "This is example content to show how the home header integrates with home page content.", - }), - ], - }, - t, - ), - ), - }), - ], - }), - }), - ], - }), - parameters: { - docs: { - description: { - story: - "The home header integrated into a full home page layout with gradient background to show the transparent header effect.", - }, - }, - }, - }; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - args: {}, - parameters: { - docs: { - description: { - story: "Use the Viewport toolbar to see how the home header adapts to different screen sizes. The header has a transparent background and uses HeaderTab for the left section." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -c.parameters = { - ...c.parameters, - docs: { - ...c.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
- -
-
-

- Welcome to CommunityRule -

-

- This demonstrates how the home header looks in a realistic home page - context. The header maintains its transparent background and - responsive behavior. -

-
- {[1, 2, 3].map(i =>
-

Feature {i}

-

- This is example content to show how the home header integrates - with home page content. -

-
)} -
-
-
-
, - parameters: { - docs: { - description: { - story: "The home header integrated into a full home page layout with gradient background to show the transparent header effect." - } - } - } -}`, - ...c.parameters?.docs?.source, - }, - }, -}; -const q = ["Default", "InHomePageContext"]; -export { - i as Default, - c as InHomePageContext, - q as __namedExportsOrder, - U as default, -}; diff --git a/docs/assets/Logo-DM7O8ATg.js b/docs/assets/Logo-DM7O8ATg.js deleted file mode 100644 index 0ed74a3..0000000 --- a/docs/assets/Logo-DM7O8ATg.js +++ /dev/null @@ -1,144 +0,0 @@ -import { j as i } from "./jsx-runtime-C_nHp4yK.js"; -function p({ size: e = "default", showText: o = !0 }) { - const a = { - default: { - containerHeight: "h-[41px]", - gap: "gap-[8.28px]", - textSize: "text-[21.97px]", - lineHeight: "leading-[27.05px]", - iconSize: "w-[27.05px] h-[27.05px]", - }, - homeHeaderXsmall: { - containerHeight: "h-[14.11px]", - gap: "gap-[4.21px]", - textSize: "text-[11.57px]", - lineHeight: "leading-[14.24px]", - iconSize: "w-[14.11px] h-[14.11px]", - }, - homeHeaderSm: { - containerHeight: "h-[21.06px]", - gap: "gap-[3.19px]", - textSize: "text-[11.69px]", - lineHeight: "leading-[14.39px]", - iconSize: "w-[14.39px] h-[14.39px]", - }, - homeHeaderMd: { - containerHeight: "h-[32.24px]", - gap: "gap-[4.89px]", - textSize: "text-[17.89px]", - lineHeight: "leading-[22.02px]", - iconSize: "w-[22.02px] h-[22.02px]", - }, - homeHeaderLg: { - containerHeight: "h-[28px]", - gap: "gap-[6.55px]", - textSize: "text-[21.97px]", - lineHeight: "leading-[27.05px]", - iconSize: "w-[27.05px] h-[27.05px]", - }, - homeHeaderXl: { - containerHeight: "h-[36px]", - gap: "gap-[8.64px]", - textSize: "text-[29.01px]", - lineHeight: "leading-[35.7px]", - iconSize: "w-[35.7px] h-[35.7px]", - }, - header: { - containerHeight: "h-[20.85px]", - gap: "gap-[4.21px]", - textSize: "text-[11.57px]", - lineHeight: "leading-[14.24px]", - iconSize: "w-[14.24px] h-[14.24px]", - }, - headerMd: { - containerHeight: "h-[17.91px]", - gap: "gap-[6.51px]", - textSize: "text-[17.89px]", - lineHeight: "leading-[22.02px]", - iconSize: "w-[22.02px] h-[22.02px]", - }, - headerLg: { - containerHeight: "h-[28px]", - gap: "gap-[6.55px]", - textSize: "text-[21.97px]", - lineHeight: "leading-[27.05px]", - iconSize: "w-[27.05px] h-[27.05px]", - }, - headerXl: { - containerHeight: "h-[34px]", - gap: "gap-[8.19px]", - textSize: "text-[27.47px]", - lineHeight: "leading-[33.81px]", - iconSize: "w-[33.81px] h-[33.81px]", - }, - footer: { - containerHeight: "h-[calc(40px*1.37)]", - gap: "gap-[calc(8px*1.37)]", - textSize: "text-[calc(21.97px*1.37)]", - lineHeight: "leading-[calc(27.05px*1.37)]", - iconSize: "w-[calc(27.05px*1.37)] h-[calc(27.05px*1.37)]", - }, - footerLg: { - containerHeight: "h-[calc(40px*2.05)]", - gap: "gap-[calc(8px*2.05)]", - textSize: "text-[calc(21.97px*2.05)]", - lineHeight: "leading-[calc(27.05px*2.05)]", - iconSize: "w-[calc(27.05px*2.05)] h-[calc(27.05px*2.05)]", - }, - }, - t = - e === "homeHeaderXsmall" - ? a.homeHeaderXsmall - : e === "homeHeaderSm" - ? a.homeHeaderSm - : e === "homeHeaderMd" - ? a.homeHeaderMd - : e === "homeHeaderLg" - ? a.homeHeaderLg - : e === "homeHeaderXl" - ? a.homeHeaderXl - : e === "header" - ? a.header - : e === "headerMd" - ? a.headerMd - : e === "headerLg" - ? a.headerLg - : e === "headerXl" - ? a.headerXl - : e === "footer" - ? a.footer - : e === "footerLg" - ? a.footerLg - : a.default; - return i.jsxs("div", { - className: `flex items-center ${t.containerHeight} ${o ? t.gap : ""} transition-all duration-200 ease-in-out hover:scale-[1.02] cursor-pointer`, - role: "banner", - "aria-label": "CommunityRule Logo", - children: [ - o && - i.jsx("div", { - className: `font-['Bricolage_Grotesque'] ${e === "homeHeaderXsmall" || e === "homeHeaderSm" || e === "homeHeaderMd" || e === "homeHeaderLg" || e === "homeHeaderXl" ? "text-[var(--color-content-inverse-primary)]" : "text-[var(--color-content-default-primary)]"} ${t.textSize} ${t.lineHeight} font-normal tracking-[0px] transition-colors duration-200`, - "aria-label": "CommunityRule", - children: "CommunityRule", - }), - i.jsx("img", { - src: "assets/Logo.svg", - alt: "CommunityRule Logo Icon", - width: 27.05, - height: 27.05, - className: `flex-shrink-0 ${t.iconSize} transition-all duration-200 ${e === "homeHeaderXsmall" || e === "homeHeaderSm" || e === "homeHeaderMd" || e === "homeHeaderLg" || e === "homeHeaderXl" ? "filter brightness-0" : ""}`, - "aria-hidden": "true", - }), - ], - }); -} -p.__docgenInfo = { - description: "", - methods: [], - displayName: "Logo", - props: { - size: { defaultValue: { value: '"default"', computed: !1 }, required: !1 }, - showText: { defaultValue: { value: "true", computed: !1 }, required: !1 }, - }, -}; -export { p as L }; diff --git a/docs/assets/Logo.stories-CahJ_0p_.js b/docs/assets/Logo.stories-CahJ_0p_.js deleted file mode 100644 index 8342004..0000000 --- a/docs/assets/Logo.stories-CahJ_0p_.js +++ /dev/null @@ -1,672 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { L as s } from "./Logo-DM7O8ATg.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const h = { - title: "Components/Logo", - component: s, - parameters: { - layout: "centered", - docs: { - description: { - component: - "The CommunityRule logo component with multiple size variants for different contexts (header, footer, home header). Can display with or without text and adapts colors based on context.", - }, - }, - }, - argTypes: { - size: { - control: { type: "select" }, - options: [ - "default", - "homeHeaderXsmall", - "homeHeaderSm", - "homeHeaderMd", - "homeHeaderLg", - "homeHeaderXl", - "header", - "headerMd", - "headerLg", - "headerXl", - "footer", - "footerLg", - ], - description: "The size variant of the logo", - }, - showText: { - control: { type: "boolean" }, - description: "Whether to show the text portion of the logo", - }, - }, - tags: ["autodocs"], - }, - t = { args: { size: "default", showText: !0 } }, - n = { - args: { showText: !0 }, - render: (a) => - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Default Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "default" }), - e.jsx(s, { ...a, size: "header" }), - e.jsx(s, { ...a, size: "footer" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Header Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "header" }), - e.jsx(s, { ...a, size: "headerMd" }), - e.jsx(s, { ...a, size: "headerLg" }), - e.jsx(s, { ...a, size: "headerXl" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Home Header Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "homeHeaderXsmall" }), - e.jsx(s, { ...a, size: "homeHeaderSm" }), - e.jsx(s, { ...a, size: "homeHeaderMd" }), - e.jsx(s, { ...a, size: "homeHeaderLg" }), - e.jsx(s, { ...a, size: "homeHeaderXl" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Footer Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "footer" }), - e.jsx(s, { ...a, size: "footerLg" }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Different size variants available for the logo component across different contexts.", - }, - }, - }, - }, - r = { - args: { size: "default", showText: !1 }, - render: (a) => - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Icon Only - Default Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "default" }), - e.jsx(s, { ...a, size: "header" }), - e.jsx(s, { ...a, size: "footer" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Icon Only - Header Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "header" }), - e.jsx(s, { ...a, size: "headerMd" }), - e.jsx(s, { ...a, size: "headerLg" }), - e.jsx(s, { ...a, size: "headerXl" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Icon Only - Home Header Sizes", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(s, { ...a, size: "homeHeaderXsmall" }), - e.jsx(s, { ...a, size: "homeHeaderSm" }), - e.jsx(s, { ...a, size: "homeHeaderMd" }), - e.jsx(s, { ...a, size: "homeHeaderLg" }), - e.jsx(s, { ...a, size: "homeHeaderXl" }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Logo variants with only the icon, no text. Useful for compact spaces.", - }, - }, - }, - }, - i = { - args: {}, - render: () => - e.jsx("div", { - className: - "min-h-screen bg-gradient-to-b from-[var(--color-surface-default-primary)] to-[var(--color-surface-default-secondary)] p-8", - children: e.jsxs("div", { - className: "max-w-4xl mx-auto", - children: [ - e.jsx("h2", { - className: "text-white font-semibold mb-6", - children: "Home Header Context (White Text)", - }), - e.jsxs("div", { - className: "space-y-4", - children: [ - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "XSmall:", - }), - e.jsx(s, { size: "homeHeaderXsmall" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Small:", - }), - e.jsx(s, { size: "homeHeaderSm" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Medium:", - }), - e.jsx(s, { size: "homeHeaderMd" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Large:", - }), - e.jsx(s, { size: "homeHeaderLg" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "XLarge:", - }), - e.jsx(s, { size: "homeHeaderXl" }), - ], - }), - ], - }), - ], - }), - }), - parameters: { - docs: { - description: { - story: - "Home header context showing white text variants. These are used on dark/transparent backgrounds.", - }, - }, - }, - }, - o = { - args: {}, - render: () => - e.jsx("div", { - className: "min-h-screen bg-[var(--color-surface-default-primary)] p-8", - children: e.jsxs("div", { - className: "max-w-4xl mx-auto", - children: [ - e.jsx("h2", { - className: "text-white font-semibold mb-6", - children: "Header Context (Dark Text)", - }), - e.jsxs("div", { - className: "space-y-4", - children: [ - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Default:", - }), - e.jsx(s, { size: "header" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Medium:", - }), - e.jsx(s, { size: "headerMd" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Large:", - }), - e.jsx(s, { size: "headerLg" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "XLarge:", - }), - e.jsx(s, { size: "headerXl" }), - ], - }), - ], - }), - ], - }), - }), - parameters: { - docs: { - description: { - story: - "Header context showing dark text variants. These are used on light backgrounds.", - }, - }, - }, - }, - d = { - args: {}, - render: () => - e.jsx("div", { - className: "min-h-screen bg-[var(--color-surface-default-primary)] p-8", - children: e.jsxs("div", { - className: "max-w-4xl mx-auto", - children: [ - e.jsx("h2", { - className: "text-white font-semibold mb-6", - children: "Footer Context (Larger Sizes)", - }), - e.jsxs("div", { - className: "space-y-4", - children: [ - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Default:", - }), - e.jsx(s, { size: "footer" }), - ], - }), - e.jsxs("div", { - className: "flex items-center space-x-4", - children: [ - e.jsx("span", { - className: "text-white text-sm w-24", - children: "Large:", - }), - e.jsx(s, { size: "footerLg" }), - ], - }), - ], - }), - ], - }), - }), - parameters: { - docs: { - description: { - story: - "Footer context showing larger size variants for footer placement.", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - size: "default", - showText: true - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: { - showText: true - }, - render: args =>
-
-

Default Sizes

-
- - - -
-
- -
-

Header Sizes

-
- - - - -
-
- -
-

Home Header Sizes

-
- - - - - -
-
- -
-

Footer Sizes

-
- - -
-
-
, - parameters: { - docs: { - description: { - story: "Different size variants available for the logo component across different contexts." - } - } - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - size: "default", - showText: false - }, - render: args =>
-
-

- Icon Only - Default Sizes -

-
- - - -
-
- -
-

- Icon Only - Header Sizes -

-
- - - - -
-
- -
-

- Icon Only - Home Header Sizes -

-
- - - - - -
-
-
, - parameters: { - docs: { - description: { - story: "Logo variants with only the icon, no text. Useful for compact spaces." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

- Home Header Context (White Text) -

-
-
- XSmall: - -
-
- Small: - -
-
- Medium: - -
-
- Large: - -
-
- XLarge: - -
-
-
-
, - parameters: { - docs: { - description: { - story: "Home header context showing white text variants. These are used on dark/transparent backgrounds." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -o.parameters = { - ...o.parameters, - docs: { - ...o.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

- Header Context (Dark Text) -

-
-
- Default: - -
-
- Medium: - -
-
- Large: - -
-
- XLarge: - -
-
-
-
, - parameters: { - docs: { - description: { - story: "Header context showing dark text variants. These are used on light backgrounds." - } - } - } -}`, - ...o.parameters?.docs?.source, - }, - }, -}; -d.parameters = { - ...d.parameters, - docs: { - ...d.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

- Footer Context (Larger Sizes) -

-
-
- Default: - -
-
- Large: - -
-
-
-
, - parameters: { - docs: { - description: { - story: "Footer context showing larger size variants for footer placement." - } - } - } -}`, - ...d.parameters?.docs?.source, - }, - }, -}; -const p = [ - "Default", - "Sizes", - "IconOnly", - "HomeHeaderContext", - "HeaderContext", - "FooterContext", -]; -export { - t as Default, - d as FooterContext, - o as HeaderContext, - i as HomeHeaderContext, - r as IconOnly, - n as Sizes, - p as __namedExportsOrder, - h as default, -}; diff --git a/docs/assets/Logo.svg b/docs/assets/Logo.svg deleted file mode 100644 index 55199d4..0000000 --- a/docs/assets/Logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/assets/MenuBar-anMCqtJv.js b/docs/assets/MenuBar-anMCqtJv.js deleted file mode 100644 index 974d006..0000000 --- a/docs/assets/MenuBar-anMCqtJv.js +++ /dev/null @@ -1,21 +0,0 @@ -import { j as p } from "./jsx-runtime-C_nHp4yK.js"; -function r({ children: a, className: e = "", size: s = "default", ...l }) { - const c = `flex items-center ${{ xsmall: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)] rounded-[4px]", default: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-001)]", medium: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-004)]", large: "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-004)] gap-[var(--spacing-scale-012)]" }[s]} ${e}`; - return p.jsx("nav", { - className: c, - role: "menubar", - "aria-label": "Main navigation menu", - ...l, - children: a, - }); -} -r.__docgenInfo = { - description: "", - methods: [], - displayName: "MenuBar", - props: { - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - size: { defaultValue: { value: '"default"', computed: !1 }, required: !1 }, - }, -}; -export { r as M }; diff --git a/docs/assets/MenuBar.stories-CLlNuM-O.js b/docs/assets/MenuBar.stories-CLlNuM-O.js deleted file mode 100644 index edeb2b2..0000000 --- a/docs/assets/MenuBar.stories-CLlNuM-O.js +++ /dev/null @@ -1,200 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { M as s } from "./MenuBar-anMCqtJv.js"; -import { M as n } from "./MenuBarItem-Dp8NM2fx.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const d = { - title: "Components/MenuBar", - component: s, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A navigation menu bar container that groups MenuBarItem components together. Provides consistent spacing and layout for navigation menus with multiple size variants.", - }, - }, - }, - argTypes: { - size: { - control: { type: "select" }, - options: ["xsmall", "default", "medium", "large"], - description: "The size of the menu bar and its children", - }, - className: { - control: { type: "text" }, - description: "Additional CSS classes", - }, - }, - tags: ["autodocs"], - }, - a = { - args: { size: "default" }, - render: (t) => - e.jsxs(s, { - ...t, - children: [ - e.jsx(n, { size: "large", children: "Home" }), - e.jsx(n, { size: "large", children: "About" }), - e.jsx(n, { size: "large", children: "Contact" }), - ], - }), - }, - r = { - args: {}, - render: () => - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "XSmall Size", - }), - e.jsxs(s, { - size: "xsmall", - children: [ - e.jsx(n, { size: "xsmall", children: "Home" }), - e.jsx(n, { size: "xsmall", children: "About" }), - e.jsx(n, { size: "xsmall", children: "Contact" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Default Size", - }), - e.jsxs(s, { - size: "default", - children: [ - e.jsx(n, { size: "large", children: "Home" }), - e.jsx(n, { size: "large", children: "About" }), - e.jsx(n, { size: "large", children: "Contact" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Medium Size", - }), - e.jsxs(s, { - size: "medium", - children: [ - e.jsx(n, { size: "large", children: "Home" }), - e.jsx(n, { size: "large", children: "About" }), - e.jsx(n, { size: "large", children: "Contact" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Large Size", - }), - e.jsxs(s, { - size: "large", - children: [ - e.jsx(n, { size: "large", children: "Home" }), - e.jsx(n, { size: "large", children: "About" }), - e.jsx(n, { size: "large", children: "Contact" }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Different size variants of the menu bar with consistent spacing and layout.", - }, - }, - }, - }; -a.parameters = { - ...a.parameters, - docs: { - ...a.parameters?.docs, - source: { - originalSource: `{ - args: { - size: "default" - }, - render: args => - Home - About - Contact - -}`, - ...a.parameters?.docs?.source, - }, - }, -}; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

XSmall Size

- - Home - About - Contact - -
- -
-

Default Size

- - Home - About - Contact - -
- -
-

Medium Size

- - Home - About - Contact - -
- -
-

Large Size

- - Home - About - Contact - -
-
, - parameters: { - docs: { - description: { - story: "Different size variants of the menu bar with consistent spacing and layout." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -const u = ["Default", "Sizes"]; -export { a as Default, r as Sizes, u as __namedExportsOrder, d as default }; diff --git a/docs/assets/MenuBarItem-Dp8NM2fx.js b/docs/assets/MenuBarItem-Dp8NM2fx.js deleted file mode 100644 index c5f64cc..0000000 --- a/docs/assets/MenuBarItem-Dp8NM2fx.js +++ /dev/null @@ -1,123 +0,0 @@ -import { j as p } from "./jsx-runtime-C_nHp4yK.js"; -function U({ - href: v = "#", - children: o, - variant: d = "default", - size: e = "default", - className: f = "", - disabled: a = !1, - ariaLabel: l, - ...m -}) { - const x = { - default: - "bg-transparent text-[var(--color-content-default-brand-primary)] hover:bg-[var(--color-surface-default-tertiary)] hover:text-[var(--color-content-default-brand-primary)] hover:scale-[1.02] active:bg-transparent active:text-[var(--color-content-default-brand-primary)] active:scale-[0.98] disabled:bg-[var(--color-surface-default-tertiary)] disabled:text-[var(--color-content-default-tertiary)] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100", - home: "bg-transparent text-[var(--color-content-inverse-primary)] hover:bg-[var(--color-content-default-brand-accent)] hover:text-[var(--color-content-inverse-primary)] hover:scale-[1.02] active:bg-transparent active:text-[var(--color-content-inverse-primary)] active:scale-[0.98] disabled:bg-[var(--color-surface-default-tertiary)] disabled:text-[var(--color-content-default-tertiary)] disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100 disabled:active:scale-100", - }, - g = { - xsmall: - "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]", - xsmallUseCases: - "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]", - default: - "active:outline-1 active:outline-[var(--color-content-default-brand-primary)] focus:outline-1 focus:outline-[var(--color-content-default-brand-primary)]", - homeMd: - "active:outline-[1.5px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-brand-primary)]", - homeUseCases: - "active:outline-[1.5px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-brand-primary)]", - large: - "active:outline-[1.75px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-brand-primary)]", - largeUseCases: - "active:outline-[1.75px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-brand-primary)]", - homeXlarge: - "active:outline-[2px] active:outline-[var(--color-content-default-brand-primary)] focus:outline-[2px] focus:outline-[var(--color-content-default-brand-primary)]", - xlarge: - "active:outline-2 active:outline-[var(--color-content-default-brand-primary)] focus:outline-2 focus:outline-[var(--color-content-default-brand-primary)]", - }, - y = { - xsmall: - "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]", - xsmallUseCases: - "active:outline-1 active:outline-[var(--color-content-default-primary)] focus:outline-1 focus:outline-[var(--color-content-default-primary)]", - default: - "active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]", - homeMd: - "active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]", - homeUseCases: - "active:outline-[1.5px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.5px] focus:outline-[var(--color-content-default-primary)]", - largeUseCases: - "active:outline-[1.75px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-primary)]", - large: - "active:outline-[1.75px] active:outline-[var(--color-content-default-primary)] focus:outline-[1.75px] focus:outline-[var(--color-content-default-primary)]", - homeXlarge: - "active:outline-[2px] active:outline-[var(--color-content-default-primary)] focus:outline-[2px] focus:outline-[var(--color-content-default-primary)]", - xlarge: - "active:outline-2 active:outline-[var(--color-content-default-primary)] focus:outline-2 focus:outline-[var(--color-content-default-primary)]", - }, - b = { - default: - "px-[var(--spacing-measures-spacing-016)] py-[var(--spacing-measures-spacing-016)] gap-[var(--spacing-scale-004)]", - xsmall: - "px-[var(--spacing-scale-004)] py-[var(--spacing-scale-002)] gap-[var(--spacing-scale-004)]", - xsmallUseCases: - "px-[var(--spacing-scale-002)] py-[var(--spacing-scale-002)] gap-[var(--spacing-scale-004)]", - homeMd: - "px-[var(--spacing-scale-008)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)]", - homeUseCases: - "px-[var(--spacing-scale-002)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)]", - large: - "px-[var(--spacing-scale-012)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-004)] h-[44px]", - largeUseCases: - "px-[var(--spacing-scale-012)] py-[var(--spacing-scale-012)] gap-[var(--spacing-scale-004)] h-[44px]", - homeXlarge: - "px-[var(--spacing-scale-016)] py-[var(--spacing-scale-016)] gap-[var(--spacing-scale-004)] h-[44px]", - xlarge: - "px-[var(--spacing-scale-016)] py-[var(--spacing-scale-008)] gap-[var(--spacing-scale-004)] h-[44px]", - }, - t = "font-['Inter'] text-[10px] leading-[12px] font-medium tracking-[0%]", - n = "font-['Inter'] text-[12px] leading-[14px] font-medium tracking-[0%]", - c = "font-['Inter'] text-[16px] leading-[20px] font-medium tracking-[0%]", - i = "font-['Inter'] text-[24px] leading-[28px] font-normal tracking-[0%]", - h = { - default: t, - xsmall: t, - xsmallUseCases: t, - home: t, - homeMd: n, - homeUseCases: n, - large: c, - largeUseCases: c, - homeXlarge: i, - xlarge: i, - }, - C = `inline-flex items-center ${b[e]} rounded-[var(--radius-measures-radius-full)] ${h[e]} transition-all duration-200 ease-in-out cursor-pointer focus:scale-[1.02]`; - let r = d; - a && (r = "default"); - const s = `${C} ${x[r]} ${r === "home" ? y[e] : g[e]} ${f}`, - u = { - ...(l && { "aria-label": l }), - ...(a && { "aria-disabled": "true" }), - role: "menuitem", - tabIndex: a ? -1 : 0, - ...m, - }; - return a - ? p.jsx("span", { className: s, ...u, children: o }) - : p.jsx("a", { href: v, className: s, ...u, children: o }); -} -U.__docgenInfo = { - description: "", - methods: [], - displayName: "MenuBarItem", - props: { - href: { defaultValue: { value: '"#"', computed: !1 }, required: !1 }, - variant: { - defaultValue: { value: '"default"', computed: !1 }, - required: !1, - }, - size: { defaultValue: { value: '"default"', computed: !1 }, required: !1 }, - className: { defaultValue: { value: '""', computed: !1 }, required: !1 }, - disabled: { defaultValue: { value: "false", computed: !1 }, required: !1 }, - }, -}; -export { U as M }; diff --git a/docs/assets/MenuBarItem.stories-Btz38mn4.js b/docs/assets/MenuBarItem.stories-Btz38mn4.js deleted file mode 100644 index 965e029..0000000 --- a/docs/assets/MenuBarItem.stories-Btz38mn4.js +++ /dev/null @@ -1,372 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { M as a } from "./MenuBarItem-Dp8NM2fx.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const u = { - title: "Components/MenuBarItem", - component: a, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A navigation menu item component with multiple variants, sizes, and states. Can render as a link or disabled span with full accessibility support. Includes focus states with keyboard navigation - use Tab key to test focus indicators.", - }, - }, - }, - argTypes: { - variant: { - control: { type: "select" }, - options: ["default", "home"], - description: "The visual style variant of the menu item", - }, - size: { - control: { type: "select" }, - options: [ - "xsmall", - "xsmallUseCases", - "homeMd", - "homeUseCases", - "large", - "largeUseCases", - "homeXlarge", - "xlarge", - ], - description: "The size of the menu item", - }, - disabled: { - control: { type: "boolean" }, - description: "Whether the menu item is disabled", - }, - href: { control: { type: "text" }, description: "The link destination" }, - onClick: { action: "clicked" }, - }, - tags: ["autodocs"], - }, - n = { args: { children: "Menu Item", size: "large" } }, - r = { - args: { children: "Menu Item", size: "large" }, - render: (s) => - e.jsx("div", { - className: "space-y-4", - children: e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(a, { ...s, variant: "default", children: "Default" }), - e.jsx(a, { ...s, variant: "home", children: "Home" }), - ], - }), - }), - parameters: { - docs: { - description: { - story: "Different visual variants of the menu item component.", - }, - }, - }, - }, - t = { - args: { children: "Menu Item", variant: "default" }, - render: (s) => - e.jsx("div", { - className: "space-y-4", - children: e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(a, { ...s, size: "xsmall", children: "XSmall" }), - e.jsx(a, { ...s, size: "large", children: "Large" }), - e.jsx(a, { ...s, size: "xlarge", children: "XLarge" }), - ], - }), - }), - parameters: { - docs: { - description: { - story: "Different sizes available for the menu item component.", - }, - }, - }, - }, - i = { - args: { children: "Menu Item", size: "large", variant: "default" }, - render: (s) => - e.jsx("div", { - className: "space-y-4", - children: e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(a, { ...s, children: "Normal" }), - e.jsx(a, { ...s, disabled: !0, children: "Disabled" }), - ], - }), - }), - parameters: { - docs: { - description: { story: "Different states of the menu item component." }, - }, - }, - }, - l = { - args: {}, - render: () => - e.jsxs("div", { - className: "space-y-6", - children: [ - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Default Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(a, { size: "xsmall", children: "XSmall" }), - e.jsx(a, { size: "large", children: "Large" }), - e.jsx(a, { size: "xlarge", children: "XLarge" }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Home Variant", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(a, { - variant: "home", - size: "xsmall", - children: "XSmall", - }), - e.jsx(a, { - variant: "home", - size: "large", - children: "Large", - }), - e.jsx(a, { - variant: "home", - size: "xlarge", - children: "XLarge", - }), - ], - }), - ], - }), - e.jsxs("div", { - children: [ - e.jsx("h3", { - className: "text-white font-semibold mb-3", - children: "Disabled States", - }), - e.jsxs("div", { - className: "space-x-4", - children: [ - e.jsx(a, { - size: "large", - disabled: !0, - children: "Default Disabled", - }), - e.jsx(a, { - variant: "home", - size: "large", - disabled: !0, - children: "Home Disabled", - }), - ], - }), - ], - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Complete overview of all menu item variants, sizes, and states.", - }, - }, - }, - }; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Menu Item", - size: "large" - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Menu Item", - size: "large" - }, - render: args =>
-
- - Default - - - Home - -
-
, - parameters: { - docs: { - description: { - story: "Different visual variants of the menu item component." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Menu Item", - variant: "default" - }, - render: args =>
-
- - XSmall - - - Large - - - XLarge - -
-
, - parameters: { - docs: { - description: { - story: "Different sizes available for the menu item component." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -i.parameters = { - ...i.parameters, - docs: { - ...i.parameters?.docs, - source: { - originalSource: `{ - args: { - children: "Menu Item", - size: "large", - variant: "default" - }, - render: args =>
-
- Normal - - Disabled - -
-
, - parameters: { - docs: { - description: { - story: "Different states of the menu item component." - } - } - } -}`, - ...i.parameters?.docs?.source, - }, - }, -}; -l.parameters = { - ...l.parameters, - docs: { - ...l.parameters?.docs, - source: { - originalSource: `{ - args: {}, - render: () =>
-
-

Default Variant

-
- XSmall - Large - XLarge -
-
- -
-

Home Variant

-
- - XSmall - - - Large - - - XLarge - -
-
- -
-

Disabled States

-
- - Default Disabled - - - Home Disabled - -
-
-
, - parameters: { - docs: { - description: { - story: "Complete overview of all menu item variants, sizes, and states." - } - } - } -}`, - ...l.parameters?.docs?.source, - }, - }, -}; -const p = ["Default", "Variants", "Sizes", "States", "AllVariants"]; -export { - l as AllVariants, - n as Default, - t as Sizes, - i as States, - r as Variants, - p as __namedExportsOrder, - u as default, -}; diff --git a/docs/assets/NumberedCard-ClCynPua.js b/docs/assets/NumberedCard-ClCynPua.js deleted file mode 100644 index b0d7ead..0000000 --- a/docs/assets/NumberedCard-ClCynPua.js +++ /dev/null @@ -1,24 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { S as t } from "./SectionNumber-Cptefv18.js"; -const r = ({ number: l, text: s, iconShape: o, iconColor: a }) => - e.jsxs("div", { - className: - "bg-[var(--color-surface-inverse-primary)] rounded-[12px] p-5 shadow-lg flex flex-col gap-4 sm:p-8 sm:gap-8 sm:flex-row sm:items-center lg:p-8 lg:gap-0 lg:flex-row lg:items-stretch lg:relative lg:h-[238px]", - children: [ - e.jsx("div", { - className: - "flex justify-end sm:justify-start sm:flex-shrink-0 lg:absolute lg:top-8 lg:right-8", - children: e.jsx(t, { number: l }), - }), - e.jsx("div", { - className: "sm:flex-1 lg:absolute lg:bottom-8 lg:left-8 lg:right-16", - children: e.jsx("p", { - className: - "font-bricolage-grotesque font-medium text-[24px] leading-[32px] sm:font-normal sm:leading-[24px] sm:text-[24px] lg:text-[24px] lg:leading-[24px] xl:text-[32px] xl:leading-[32px] text-[#141414]", - children: s, - }), - }), - ], - }); -r.__docgenInfo = { description: "", methods: [], displayName: "NumberedCard" }; -export { r as N }; diff --git a/docs/assets/NumberedCard.stories-B2w08pIr.js b/docs/assets/NumberedCard.stories-B2w08pIr.js deleted file mode 100644 index 61c17c8..0000000 --- a/docs/assets/NumberedCard.stories-B2w08pIr.js +++ /dev/null @@ -1,176 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { N as o } from "./NumberedCard-ClCynPua.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./SectionNumber-Cptefv18.js"; -const m = { - title: "Components/NumberedCard", - component: o, - parameters: { - layout: "centered", - docs: { - description: { - component: - "Individual numbered card component that displays a step in a process with a numbered icon and descriptive text. Supports responsive layouts across different breakpoints.", - }, - }, - }, - argTypes: { - number: { - control: { type: "number", min: 1, max: 9 }, - description: "The number to display on the card", - }, - text: { - control: { type: "text" }, - description: "The descriptive text for this step", - }, - iconShape: { - control: { type: "select" }, - options: ["blob", "gear", "star"], - description: - "The shape of the icon background (currently not used, uses PNG images)", - }, - iconColor: { - control: { type: "select" }, - options: ["green", "purple", "orange", "blue"], - description: - "The color theme for the icon (currently not used, uses PNG images)", - }, - }, - tags: ["autodocs"], - }, - t = { - args: { - number: 1, - text: "Document how your community makes decisions", - iconShape: "blob", - iconColor: "green", - }, - }, - r = { - args: { - number: 1, - text: "Example card text", - iconShape: "blob", - iconColor: "green", - }, - render: (s) => - e.jsxs("div", { - className: "space-y-4", - children: [ - e.jsx(o, { ...s, number: 1, text: "First step in the process" }), - e.jsx(o, { - ...s, - number: 2, - text: "Second step with different content", - }), - e.jsx(o, { - ...s, - number: 3, - text: "Third and final step of the workflow", - }), - ], - }), - parameters: { - docs: { - description: { - story: - "Shows all three numbered cards with different content to demonstrate the visual hierarchy.", - }, - }, - }, - }, - n = { - args: { - number: 1, - text: "This is a much longer piece of text that demonstrates how the card handles content that spans multiple lines and requires more space to display properly", - iconShape: "blob", - iconColor: "green", - }, - parameters: { - docs: { - description: { - story: - "Demonstrates how the card handles longer text content across different breakpoints.", - }, - }, - }, - }; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - number: 1, - text: "Document how your community makes decisions", - iconShape: "blob", - iconColor: "green" - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - number: 1, - text: "Example card text", - iconShape: "blob", - iconColor: "green" - }, - render: args =>
- - - -
, - parameters: { - docs: { - description: { - story: "Shows all three numbered cards with different content to demonstrate the visual hierarchy." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: { - number: 1, - text: "This is a much longer piece of text that demonstrates how the card handles content that spans multiple lines and requires more space to display properly", - iconShape: "blob", - iconColor: "green" - }, - parameters: { - docs: { - description: { - story: "Demonstrates how the card handles longer text content across different breakpoints." - } - } - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -const l = ["Default", "AllNumbers", "LongText"]; -export { - r as AllNumbers, - t as Default, - n as LongText, - l as __namedExportsOrder, - m as default, -}; diff --git a/docs/assets/NumberedCards.stories-RsE3R6pO.js b/docs/assets/NumberedCards.stories-RsE3R6pO.js deleted file mode 100644 index 0eb1c04..0000000 --- a/docs/assets/NumberedCards.stories-RsE3R6pO.js +++ /dev/null @@ -1,249 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { N as m } from "./NumberedCard-ClCynPua.js"; -import { S as u } from "./SectionHeader-CadpOP1T.js"; -import { B as c } from "./Button-Z4hbXct5.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -import "./SectionNumber-Cptefv18.js"; -const l = ({ title: r, subtitle: a, cards: i }) => { - const p = { - "@context": "https://schema.org", - "@type": "HowTo", - name: r, - description: a, - step: i.map((o, t) => ({ - "@type": "HowToStep", - position: t + 1, - name: o.text, - text: o.text, - })), - }; - return e.jsxs(e.Fragment, { - children: [ - e.jsx("script", { - type: "application/ld+json", - dangerouslySetInnerHTML: { __html: JSON.stringify(p) }, - }), - e.jsx("section", { - className: - "bg-transparent py-[var(--spacing-scale-032)] px-[var(--spacing-scale-020)] sm:py-[var(--spacing-scale-048)] sm:px-[var(--spacing-scale-032)] lg:py-[var(--spacing-scale-064)] lg:px-[var(--spacing-scale-064)] xl:py-[var(--spacing-scale-076)] xl:px-[var(--spacing-scale-064)]", - children: e.jsx("div", { - className: "max-w-[var(--spacing-measures-max-width-lg)] mx-auto", - children: e.jsxs("div", { - className: - "grid grid-cols-1 gap-y-[var(--spacing-scale-032)] lg:gap-y-[var(--spacing-scale-056)]", - children: [ - e.jsx("div", { - children: e.jsx(u, { - title: r, - subtitle: a, - titleLg: "How CommunityRule helps", - }), - }), - e.jsx("div", { - className: - "grid grid-cols-1 gap-y-[var(--spacing-scale-024)] lg:grid-cols-3 lg:gap-[var(--spacing-scale-024)]", - children: i.map((o, t) => - e.jsx( - m, - { - number: t + 1, - text: o.text, - iconShape: o.iconShape, - iconColor: o.iconColor, - }, - t, - ), - ), - }), - e.jsxs("div", { - className: "text-center sm:text-left lg:text-center", - children: [ - e.jsx("div", { - className: "block lg:hidden", - children: e.jsx(c, { - variant: "default", - size: "large", - children: "Create CommunityRule", - }), - }), - e.jsx("div", { - className: "hidden lg:block", - children: e.jsx(c, { - variant: "outlined", - size: "large", - children: "See how it works", - }), - }), - ], - }), - ], - }), - }), - }), - ], - }); -}; -l.__docgenInfo = { description: "", methods: [], displayName: "NumberedCards" }; -const C = { - title: "Components/NumberedCards", - component: l, - parameters: { - layout: "fullscreen", - docs: { - description: { - component: - "A component system for visually communicating multi-step workflows, processes, or value propositions. The component's modular design with NumberedCard and SectionNumber sub-components makes it ideal for explaining any sequential process while maintaining brand consistency and accessibility standards across the design system.", - }, - }, - }, - argTypes: { - title: { - control: { type: "text" }, - description: "The main title for the section", - }, - subtitle: { - control: { type: "text" }, - description: "The subtitle text below the main title", - }, - cards: { - control: { type: "object" }, - description: - "Array of card objects with text, iconShape, and iconColor properties", - }, - }, - tags: ["autodocs"], - }, - n = { - args: { - title: "How CommunityRule works", - subtitle: "Here's a quick overview of the process, from start to finish.", - cards: [ - { - text: "Document how your community makes decisions", - iconShape: "blob", - iconColor: "green", - }, - { - text: "Build an operating manual for a successful community", - iconShape: "gear", - iconColor: "purple", - }, - { - text: "Get a link to your manual for your group to review and evolve", - iconShape: "star", - iconColor: "orange", - }, - ], - }, - }, - s = { - args: { - title: "Our Process", - subtitle: "Follow these simple steps to get started with your project.", - cards: [ - { - text: "Define your project requirements and goals", - iconShape: "blob", - iconColor: "green", - }, - { - text: "Collaborate with our team to create the perfect solution", - iconShape: "gear", - iconColor: "purple", - }, - { - text: "Launch and iterate based on user feedback", - iconShape: "star", - iconColor: "orange", - }, - { - text: "Scale and optimize for continued success", - iconShape: "blob", - iconColor: "blue", - }, - ], - }, - parameters: { - docs: { - description: { - story: - "Example with custom content and four cards to show flexibility.", - }, - }, - }, - }; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "How CommunityRule works", - subtitle: "Here's a quick overview of the process, from start to finish.", - cards: [{ - text: "Document how your community makes decisions", - iconShape: "blob", - iconColor: "green" - }, { - text: "Build an operating manual for a successful community", - iconShape: "gear", - iconColor: "purple" - }, { - text: "Get a link to your manual for your group to review and evolve", - iconShape: "star", - iconColor: "orange" - }] - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -s.parameters = { - ...s.parameters, - docs: { - ...s.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Our Process", - subtitle: "Follow these simple steps to get started with your project.", - cards: [{ - text: "Define your project requirements and goals", - iconShape: "blob", - iconColor: "green" - }, { - text: "Collaborate with our team to create the perfect solution", - iconShape: "gear", - iconColor: "purple" - }, { - text: "Launch and iterate based on user feedback", - iconShape: "star", - iconColor: "orange" - }, { - text: "Scale and optimize for continued success", - iconShape: "blob", - iconColor: "blue" - }] - }, - parameters: { - docs: { - description: { - story: "Example with custom content and four cards to show flexibility." - } - } - } -}`, - ...s.parameters?.docs?.source, - }, - }, -}; -const v = ["Default", "CustomContent"]; -export { - s as CustomContent, - n as Default, - v as __namedExportsOrder, - C as default, -}; diff --git a/docs/assets/SectionHeader-CadpOP1T.js b/docs/assets/SectionHeader-CadpOP1T.js deleted file mode 100644 index 69b7bda..0000000 --- a/docs/assets/SectionHeader-CadpOP1T.js +++ /dev/null @@ -1,31 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -const a = ({ title: l, subtitle: t, titleLg: x }) => - e.jsxs("div", { - className: - "flex flex-col gap-1 w-full lg:flex-row lg:justify-between lg:items-start xl:gap-[var(--spacing-scale-024)]", - children: [ - e.jsx("div", { - className: - "lg:w-[369px] lg:h-[120px] lg:flex lg:items-center xl:w-[452px] xl:h-[156px] xl:flex xl:items-center", - children: e.jsxs("h2", { - className: - "font-bricolage-grotesque font-bold text-[28px] leading-[36px] sm:text-[32px] sm:leading-[40px] lg:text-[32px] lg:leading-[40px] lg:w-[369px] lg:pr-24 xl:text-[40px] xl:leading-[52px] xl:w-[452px] xl:pr-24 text-[var(--color-content-default-primary)]", - children: [ - e.jsx("span", { className: "block lg:hidden", children: l }), - e.jsx("span", { className: "hidden lg:block", children: x || l }), - ], - }), - }), - e.jsx("div", { - className: - "lg:w-[928px] lg:h-[120px] lg:flex lg:items-center lg:justify-end xl:w-[763px] xl:h-[156px] xl:flex xl:items-center xl:justify-end", - children: e.jsx("p", { - className: - "font-inter font-normal text-[18px] leading-[130%] sm:text-[18px] sm:leading-[32px] lg:text-[24px] lg:leading-[32px] xl:text-[32px] xl:leading-[40px] xl:text-right text-[#484848] sm:text-[var(--color-content-default-tertiary)] lg:text-[var(--color-content-default-tertiary)] xl:text-[var(--color-content-default-tertiary)] tracking-[0px]", - children: t, - }), - }), - ], - }); -a.__docgenInfo = { description: "", methods: [], displayName: "SectionHeader" }; -export { a as S }; diff --git a/docs/assets/SectionHeader.stories-CxSQCoM-.js b/docs/assets/SectionHeader.stories-CxSQCoM-.js deleted file mode 100644 index 0632d59..0000000 --- a/docs/assets/SectionHeader.stories-CxSQCoM-.js +++ /dev/null @@ -1,226 +0,0 @@ -import { S as n } from "./SectionHeader-CadpOP1T.js"; -import "./jsx-runtime-C_nHp4yK.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const p = { - title: "Components/SectionHeader", - component: n, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A section header component that displays a title and subtitle with responsive typography and layout. Supports different title text for large breakpoints and maintains consistent spacing across all screen sizes.", - }, - }, - }, - argTypes: { - title: { - control: { type: "text" }, - description: "The main title text (used for xsm and sm breakpoints)", - }, - subtitle: { - control: { type: "text" }, - description: "The subtitle text below the main title", - }, - titleLg: { - control: { type: "text" }, - description: - "The title text for lg and xl breakpoints (optional, falls back to title)", - }, - }, - tags: ["autodocs"], - }, - e = { - args: { - title: "How CommunityRule works", - subtitle: "Here's a quick overview of the process, from start to finish.", - titleLg: "How CommunityRule helps", - }, - }, - t = { - args: { - title: "Our Mission", - subtitle: - "We're dedicated to helping communities thrive through better decision-making processes and transparent governance structures.", - titleLg: "Building Better Communities", - }, - parameters: { - docs: { - description: { - story: - "Example with custom content to show the flexibility of the component.", - }, - }, - }, - }, - s = { - args: { - title: "Complex Process", - subtitle: - "This is a much longer subtitle that demonstrates how the component handles extended text content across different breakpoints and layout configurations.", - titleLg: "Complex Process Simplified", - }, - parameters: { - docs: { - description: { - story: - "Demonstrates how the component handles longer subtitle text across different breakpoints.", - }, - }, - }, - }, - o = { - args: { - title: "Responsive Design", - subtitle: - "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.", - titleLg: "Responsive Design Test", - }, - parameters: { - docs: { - description: { - story: - "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.", - }, - }, - }, - }, - r = { - args: { - title: "Simple Header", - subtitle: - "This example doesn't specify a titleLg prop, so it will use the same title text across all breakpoints.", - }, - parameters: { - docs: { - description: { - story: - "Shows the component without a titleLg prop, demonstrating the fallback behavior.", - }, - }, - }, - }; -e.parameters = { - ...e.parameters, - docs: { - ...e.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "How CommunityRule works", - subtitle: "Here's a quick overview of the process, from start to finish.", - titleLg: "How CommunityRule helps" - } -}`, - ...e.parameters?.docs?.source, - }, - }, -}; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Our Mission", - subtitle: "We're dedicated to helping communities thrive through better decision-making processes and transparent governance structures.", - titleLg: "Building Better Communities" - }, - parameters: { - docs: { - description: { - story: "Example with custom content to show the flexibility of the component." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -s.parameters = { - ...s.parameters, - docs: { - ...s.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Complex Process", - subtitle: "This is a much longer subtitle that demonstrates how the component handles extended text content across different breakpoints and layout configurations.", - titleLg: "Complex Process Simplified" - }, - parameters: { - docs: { - description: { - story: "Demonstrates how the component handles longer subtitle text across different breakpoints." - } - } - } -}`, - ...s.parameters?.docs?.source, - }, - }, -}; -o.parameters = { - ...o.parameters, - docs: { - ...o.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Responsive Design", - subtitle: "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook.", - titleLg: "Responsive Design Test" - }, - parameters: { - docs: { - description: { - story: "Test the responsive behavior by resizing your browser window or using the viewport controls in Storybook." - } - } - } -}`, - ...o.parameters?.docs?.source, - }, - }, -}; -r.parameters = { - ...r.parameters, - docs: { - ...r.parameters?.docs, - source: { - originalSource: `{ - args: { - title: "Simple Header", - subtitle: "This example doesn't specify a titleLg prop, so it will use the same title text across all breakpoints." - }, - parameters: { - docs: { - description: { - story: "Shows the component without a titleLg prop, demonstrating the fallback behavior." - } - } - } -}`, - ...r.parameters?.docs?.source, - }, - }, -}; -const m = [ - "Default", - "CustomContent", - "LongSubtitle", - "ResponsiveTest", - "WithoutTitleLg", -]; -export { - t as CustomContent, - e as Default, - s as LongSubtitle, - o as ResponsiveTest, - r as WithoutTitleLg, - m as __namedExportsOrder, - p as default, -}; diff --git a/docs/assets/SectionNumber-Cptefv18.js b/docs/assets/SectionNumber-Cptefv18.js deleted file mode 100644 index 032c8ae..0000000 --- a/docs/assets/SectionNumber-Cptefv18.js +++ /dev/null @@ -1,36 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -const a = ({ number: t }) => { - const s = (r) => { - switch (r) { - case 1: - return "/assets/SectionNumber_1.png"; - case 2: - return "/assets/SectionNumber_2.png"; - case 3: - return "/assets/SectionNumber_3.png"; - default: - return "/assets/SectionNumber_1.png"; - } - }; - return e.jsxs("div", { - className: "relative size-[40px] overflow-visible -rotate-[15deg]", - children: [ - e.jsx("img", { - src: s(t), - alt: `Section ${t}`, - className: - "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 size-[47.37px] max-w-none", - }), - e.jsx("div", { - className: "absolute inset-0 flex items-center justify-center", - children: e.jsx("span", { - className: - "text-[var(--font-size-body-small)] font-[var(--font-weight-bold)] text-[var(--color-content-inverse-primary)]", - children: t, - }), - }), - ], - }); -}; -a.__docgenInfo = { description: "", methods: [], displayName: "SectionNumber" }; -export { a as S }; diff --git a/docs/assets/SectionNumber.stories-CTZpqrxx.js b/docs/assets/SectionNumber.stories-CTZpqrxx.js deleted file mode 100644 index e1e6055..0000000 --- a/docs/assets/SectionNumber.stories-CTZpqrxx.js +++ /dev/null @@ -1,174 +0,0 @@ -import { j as e } from "./jsx-runtime-C_nHp4yK.js"; -import { S as r } from "./SectionNumber-Cptefv18.js"; -import "./iframe-D_aMTKb2.js"; -import "./preload-helper-DIZFD4sK.js"; -const u = { - title: "Components/SectionNumber", - component: r, - parameters: { - layout: "centered", - docs: { - description: { - component: - "A numbered icon component that displays a number overlaid on a PNG background image. The component uses different PNG images for numbers 1, 2, and 3, with the image extending beyond the 40px container size.", - }, - }, - }, - argTypes: { - number: { - control: { type: "number", min: 1, max: 3 }, - description: "The number to display (1, 2, or 3)", - }, - }, - tags: ["autodocs"], - }, - n = { args: { number: 1 } }, - s = { args: { number: 2 } }, - o = { args: { number: 3 } }, - a = { - render: () => - e.jsxs("div", { - className: "flex space-x-4", - children: [ - e.jsx(r, { number: 1 }), - e.jsx(r, { number: 2 }), - e.jsx(r, { number: 3 }), - ], - }), - parameters: { - docs: { - description: { - story: - "Shows all three numbered icons side by side to demonstrate the different PNG backgrounds.", - }, - }, - }, - }, - t = { - render: () => - e.jsx("div", { - className: "bg-gray-100 p-8 rounded-lg", - children: e.jsxs("div", { - className: "flex space-x-4", - children: [ - e.jsx(r, { number: 1 }), - e.jsx(r, { number: 2 }), - e.jsx(r, { number: 3 }), - ], - }), - }), - parameters: { - docs: { - description: { - story: - "Shows the numbered icons on a background to demonstrate how the PNG images extend beyond the container.", - }, - }, - }, - }; -n.parameters = { - ...n.parameters, - docs: { - ...n.parameters?.docs, - source: { - originalSource: `{ - args: { - number: 1 - } -}`, - ...n.parameters?.docs?.source, - }, - }, -}; -s.parameters = { - ...s.parameters, - docs: { - ...s.parameters?.docs, - source: { - originalSource: `{ - args: { - number: 2 - } -}`, - ...s.parameters?.docs?.source, - }, - }, -}; -o.parameters = { - ...o.parameters, - docs: { - ...o.parameters?.docs, - source: { - originalSource: `{ - args: { - number: 3 - } -}`, - ...o.parameters?.docs?.source, - }, - }, -}; -a.parameters = { - ...a.parameters, - docs: { - ...a.parameters?.docs, - source: { - originalSource: `{ - render: () =>
- - - -
, - parameters: { - docs: { - description: { - story: "Shows all three numbered icons side by side to demonstrate the different PNG backgrounds." - } - } - } -}`, - ...a.parameters?.docs?.source, - }, - }, -}; -t.parameters = { - ...t.parameters, - docs: { - ...t.parameters?.docs, - source: { - originalSource: `{ - render: () =>
-
- - - -
-
, - parameters: { - docs: { - description: { - story: "Shows the numbered icons on a background to demonstrate how the PNG images extend beyond the container." - } - } - } -}`, - ...t.parameters?.docs?.source, - }, - }, -}; -const b = [ - "NumberOne", - "NumberTwo", - "NumberThree", - "AllNumbers", - "WithBackground", -]; -export { - a as AllNumbers, - n as NumberOne, - o as NumberThree, - s as NumberTwo, - t as WithBackground, - b as __namedExportsOrder, - u as default, -}; diff --git a/docs/assets/SectionNumber_1.png b/docs/assets/SectionNumber_1.png deleted file mode 100644 index b92a9ff..0000000 Binary files a/docs/assets/SectionNumber_1.png and /dev/null differ diff --git a/docs/assets/SectionNumber_2.png b/docs/assets/SectionNumber_2.png deleted file mode 100644 index 6011769..0000000 Binary files a/docs/assets/SectionNumber_2.png and /dev/null differ diff --git a/docs/assets/SectionNumber_3.png b/docs/assets/SectionNumber_3.png deleted file mode 100644 index 2b37cd2..0000000 Binary files a/docs/assets/SectionNumber_3.png and /dev/null differ diff --git a/docs/assets/Shapes_1.svg b/docs/assets/Shapes_1.svg deleted file mode 100644 index 65ee469..0000000 --- a/docs/assets/Shapes_1.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/docs/assets/Union.svg b/docs/assets/Union.svg deleted file mode 100644 index 3d996ec..0000000 --- a/docs/assets/Union.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/assets/Union_sm_md_lg.svg b/docs/assets/Union_sm_md_lg.svg deleted file mode 100644 index 44bd233..0000000 --- a/docs/assets/Union_sm_md_lg.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/assets/Union_xlg.svg b/docs/assets/Union_xlg.svg deleted file mode 100644 index 3d996ec..0000000 --- a/docs/assets/Union_xlg.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/assets/Union_xsm.svg b/docs/assets/Union_xsm.svg deleted file mode 100644 index 8583c9c..0000000 --- a/docs/assets/Union_xsm.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/assets/axe-kJbNpjRz.js b/docs/assets/axe-kJbNpjRz.js deleted file mode 100644 index fa12f23..0000000 --- a/docs/assets/axe-kJbNpjRz.js +++ /dev/null @@ -1,42419 +0,0 @@ -import { g as MT } from "./iframe-D_aMTKb2.js"; -var mi = { exports: {} }; -/*! axe v4.10.3 - * Copyright (c) 2015 - 2025 Deque Systems, Inc. - * - * Your use of this Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This entire copyright notice must appear in every copy of this file you - * distribute or in any file that contains substantial portions of this source - * code. - */ var IT = mi.exports, - xp; -function PT() { - return ( - xp || - ((xp = 1), - (function (hi) { - (function Qu(E) { - var jt = E, - L = E.document, - x = x || {}; - ((x.version = "4.10.3"), - O(hi) === "object" && - hi.exports && - typeof Qu.toString == "function" && - ((x.source = - "(" + - Qu.toString() + - ')(typeof window === "object" ? window : this);'), - (hi.exports = x)), - typeof E.getComputedStyle == "function" && (E.axe = x)); - function Jr(C) { - ((this.name = "SupportError"), - (this.cause = C.cause), - (this.message = "`".concat( - C.cause, - "` - feature unsupported in your environment.", - )), - C.ruleId && - ((this.ruleId = C.ruleId), - (this.message += " Skipping ".concat(this.ruleId, " rule."))), - (this.stack = new Error().stack)); - } - ((Jr.prototype = Object.create(Error.prototype)), - (Jr.prototype.constructor = Jr)); - var Ep = ["node"], - Ap = ["relatedNodes"], - Cp = ["node"], - Fp = ["variant"], - Tp = ["matches"], - Rp = ["chromium"], - Sp = ["noImplicit"], - kp = ["noPresentational"], - Op = ["precision", "format", "inGamut"], - Mp = ["space"], - Ip = ["algorithm"], - Pp = ["method"], - Np = ["maxDeltaE", "deltaEMethod", "steps", "maxSteps"], - Lp = ["node"], - Bp = ["environmentData"], - qp = ["environmentData"], - jp = ["environmentData"], - zp = ["environmentData"], - Vp = ["environmentData"]; - function Hp(C) { - return ns(C) || rs(C) || Va(C) || as(); - } - function $p(C, k, j) { - return ( - (k = os(k)) in C - ? Object.defineProperty(C, k, { - value: j, - enumerable: !0, - configurable: !0, - writable: !0, - }) - : (C[k] = j), - C - ); - } - function Up(C, k, j) { - if (gi()) return Reflect.construct.apply(null, arguments); - var J = [null]; - J.push.apply(J, k); - var Te = new (C.bind.apply(C, J))(); - return Te; - } - function vi(C, k, j) { - return ( - (k = za(k)), - Gp( - C, - gi() - ? Reflect.construct(k, j || [], za(C).constructor) - : k.apply(C, j), - ) - ); - } - function Gp(C, k) { - if (k && (O(k) == "object" || typeof k == "function")) return k; - if (k !== void 0) - throw new TypeError( - "Derived constructors may only return object or undefined", - ); - return Wp(C); - } - function Wp(C) { - if (C === void 0) - throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called", - ); - return C; - } - function gi() { - try { - var C = !Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}), - ); - } catch {} - return (gi = function () { - return !!C; - })(); - } - function za(C) { - return ( - (za = Object.setPrototypeOf - ? Object.getPrototypeOf.bind() - : function (k) { - return k.__proto__ || Object.getPrototypeOf(k); - }), - za(C) - ); - } - function bi(C, k) { - if (typeof k != "function" && k !== null) - throw new TypeError( - "Super expression must either be null or a function", - ); - ((C.prototype = Object.create(k && k.prototype, { - constructor: { value: C, writable: !0, configurable: !0 }, - })), - Object.defineProperty(C, "prototype", { writable: !1 }), - k && yi(C, k)); - } - function yi(C, k) { - return ( - (yi = Object.setPrototypeOf - ? Object.setPrototypeOf.bind() - : function (j, J) { - return ((j.__proto__ = J), j); - }), - yi(C, k) - ); - } - function Xt(C, k, j) { - (ts(C, k), k.set(C, j)); - } - function es(C, k) { - (ts(C, k), k.add(C)); - } - function ts(C, k) { - if (k.has(C)) - throw new TypeError( - "Cannot initialize the same private elements twice on an object", - ); - } - function wt(C, k) { - return C.get(Tr(C, k)); - } - function at(C, k, j) { - return (C.set(Tr(C, k), j), j); - } - function Tr(C, k, j) { - if (typeof C == "function" ? C === k : C.has(k)) - return arguments.length < 3 ? k : j; - throw new TypeError( - "Private element is not present on this object", - ); - } - function qe(C, k) { - if (C == null) return {}; - var j, - J, - Te = Yp(C, k); - if (Object.getOwnPropertySymbols) { - var Pe = Object.getOwnPropertySymbols(C); - for (J = 0; J < Pe.length; J++) - ((j = Pe[J]), - k.includes(j) || - ({}.propertyIsEnumerable.call(C, j) && (Te[j] = C[j]))); - } - return Te; - } - function Yp(C, k) { - if (C == null) return {}; - var j = {}; - for (var J in C) - if ({}.hasOwnProperty.call(C, J)) { - if (k.includes(J)) continue; - j[J] = C[J]; - } - return j; - } - function ne(C) { - return Xp(C) || rs(C) || Va(C) || Kp(); - } - function Kp() { - throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); - } - function rs(C) { - if ( - (typeof Symbol < "u" && C[Symbol.iterator] != null) || - C["@@iterator"] != null - ) - return Array.from(C); - } - function Xp(C) { - if (Array.isArray(C)) return wi(C); - } - function de() { - return ( - (de = Object.assign - ? Object.assign.bind() - : function (C) { - for (var k = 1; k < arguments.length; k++) { - var j = arguments[k]; - for (var J in j) - ({}).hasOwnProperty.call(j, J) && (C[J] = j[J]); - } - return C; - }), - de.apply(null, arguments) - ); - } - function $(C, k) { - return ns(C) || Zp(C, k) || Va(C, k) || as(); - } - function as() { - throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); - } - function Zp(C, k) { - var j = - C == null - ? null - : (typeof Symbol < "u" && C[Symbol.iterator]) || - C["@@iterator"]; - if (j != null) { - var J, - Te, - Pe, - Ke, - pt = [], - He = !0, - tt = !1; - try { - if (((Pe = (j = j.call(C)).next), k === 0)) { - if (Object(j) !== j) return; - He = !1; - } else - for ( - ; - !(He = (J = Pe.call(j)).done) && - (pt.push(J.value), pt.length !== k); - He = !0 - ); - } catch (Qr) { - ((tt = !0), (Te = Qr)); - } finally { - try { - if ( - !He && - j.return != null && - ((Ke = j.return()), Object(Ke) !== Ke) - ) - return; - } finally { - if (tt) throw Te; - } - } - return pt; - } - } - function ns(C) { - if (Array.isArray(C)) return C; - } - function Tt(C, k) { - if (!(C instanceof k)) - throw new TypeError("Cannot call a class as a function"); - } - function is(C, k) { - for (var j = 0; j < k.length; j++) { - var J = k[j]; - ((J.enumerable = J.enumerable || !1), - (J.configurable = !0), - "value" in J && (J.writable = !0), - Object.defineProperty(C, os(J.key), J)); - } - } - function Rt(C, k, j) { - return ( - k && is(C.prototype, k), - j && is(C, j), - Object.defineProperty(C, "prototype", { writable: !1 }), - C - ); - } - function os(C) { - var k = Jp(C, "string"); - return O(k) == "symbol" ? k : k + ""; - } - function Jp(C, k) { - if (O(C) != "object" || !C) return C; - var j = C[Symbol.toPrimitive]; - if (j !== void 0) { - var J = j.call(C, k); - if (O(J) != "object") return J; - throw new TypeError( - "@@toPrimitive must return a primitive value.", - ); - } - return (k === "string" ? String : Number)(C); - } - function Ce(C, k) { - var j = - (typeof Symbol < "u" && C[Symbol.iterator]) || C["@@iterator"]; - if (!j) { - if (Array.isArray(C) || (j = Va(C)) || k) { - j && (C = j); - var J = 0, - Te = function () {}; - return { - s: Te, - n: function () { - return J >= C.length - ? { done: !0 } - : { done: !1, value: C[J++] }; - }, - e: function (tt) { - throw tt; - }, - f: Te, - }; - } - throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); - } - var Pe, - Ke = !0, - pt = !1; - return { - s: function () { - j = j.call(C); - }, - n: function () { - var tt = j.next(); - return ((Ke = tt.done), tt); - }, - e: function (tt) { - ((pt = !0), (Pe = tt)); - }, - f: function () { - try { - Ke || j.return == null || j.return(); - } finally { - if (pt) throw Pe; - } - }, - }; - } - function Va(C, k) { - if (C) { - if (typeof C == "string") return wi(C, k); - var j = {}.toString.call(C).slice(8, -1); - return ( - j === "Object" && C.constructor && (j = C.constructor.name), - j === "Map" || j === "Set" - ? Array.from(C) - : j === "Arguments" || - /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j) - ? wi(C, k) - : void 0 - ); - } - } - function wi(C, k) { - (k == null || k > C.length) && (k = C.length); - for (var j = 0, J = Array(k); j < k; j++) J[j] = C[j]; - return J; - } - function O(C) { - "@babel/helpers - typeof"; - return ( - (O = - typeof Symbol == "function" && - typeof Symbol.iterator == "symbol" - ? function (k) { - return typeof k; - } - : function (k) { - return k && - typeof Symbol == "function" && - k.constructor === Symbol && - k !== Symbol.prototype - ? "symbol" - : typeof k; - }), - O(C) - ); - } - ((function (C, k, j, J, Te, Pe, Ke, pt, He, tt, Qr) { - var Qp = Object.create, - ea = Object.defineProperty, - em = Object.getPrototypeOf, - tm = Object.prototype.hasOwnProperty, - rm = Object.getOwnPropertyNames, - am = Object.getOwnPropertyDescriptor, - nm = function (t, r, a) { - return r in t - ? ea(t, r, { - enumerable: !0, - configurable: !0, - writable: !0, - value: a, - }) - : (t[r] = a); - }, - im = function (t) { - return ea(t, "__esModule", { value: !0 }); - }, - y = function (t, r) { - return function () { - return (r || t((r = { exports: {} }).exports, r), r.exports); - }; - }, - Dt = function (t, r) { - for (var a in r) ea(t, a, { get: r[a], enumerable: !0 }); - }, - om = function (t, r, a) { - if ((r && O(r) === "object") || typeof r == "function") { - var n = Ce(rm(r)), - i; - try { - var o = function () { - var s = i.value; - !tm.call(t, s) && - s !== "default" && - ea(t, s, { - get: function () { - return r[s]; - }, - enumerable: !(a = am(r, s)) || a.enumerable, - }); - }; - for (n.s(); !(i = n.n()).done; ) o(); - } catch (u) { - n.e(u); - } finally { - n.f(); - } - } - return t; - }, - ot = function (t) { - return om( - im( - ea( - t != null ? Qp(em(t)) : {}, - "default", - t && t.__esModule && "default" in t - ? { - get: function () { - return t.default; - }, - enumerable: !0, - } - : { value: t, enumerable: !0 }, - ), - ), - t, - ); - }, - us = function (t, r, a) { - return (nm(t, O(r) !== "symbol" ? r + "" : r, a), a); - }, - um = y(function (e, t) { - t.exports = function () {}; - }), - cr = y(function (e, t) { - var r = um()(); - t.exports = function (a) { - return a !== r && a !== null; - }; - }), - ss = y(function (e, t) { - var r = cr(), - a = Array.prototype.forEach, - n = Object.create, - i = function (u, s) { - var l; - for (l in u) s[l] = u[l]; - }; - t.exports = function (o) { - var u = n(null); - return ( - a.call(arguments, function (s) { - r(s) && i(Object(s), u); - }), - u - ); - }; - }), - sm = y(function (e, t) { - t.exports = function () { - var r = Math.sign; - return typeof r != "function" - ? !1 - : r(10) === 1 && r(-20) === -1; - }; - }), - lm = y(function (e, t) { - t.exports = function (r) { - return ( - (r = Number(r)), - isNaN(r) || r === 0 ? r : r > 0 ? 1 : -1 - ); - }; - }), - cm = y(function (e, t) { - t.exports = sm()() ? Math.sign : lm(); - }), - dm = y(function (e, t) { - var r = cm(), - a = Math.abs, - n = Math.floor; - t.exports = function (i) { - return isNaN(i) - ? 0 - : ((i = Number(i)), - i === 0 || !isFinite(i) ? i : r(i) * n(a(i))); - }; - }), - dr = y(function (e, t) { - var r = dm(), - a = Math.max; - t.exports = function (n) { - return a(0, r(n)); - }; - }), - ls = y(function (e, t) { - var r = dr(); - t.exports = function (a, n, i) { - var o; - return isNaN(a) - ? ((o = n), o >= 0 ? (i && o ? o - 1 : o) : 1) - : a === !1 - ? !1 - : r(a); - }; - }), - Zt = y(function (e, t) { - t.exports = function (r) { - if (typeof r != "function") - throw new TypeError(r + " is not a function"); - return r; - }; - }), - Rr = y(function (e, t) { - var r = cr(); - t.exports = function (a) { - if (!r(a)) - throw new TypeError("Cannot use null or undefined"); - return a; - }; - }), - fm = y(function (e, t) { - var r = Zt(), - a = Rr(), - n = Function.prototype.bind, - i = Function.prototype.call, - o = Object.keys, - u = Object.prototype.propertyIsEnumerable; - t.exports = function (s, l) { - return function (c, d) { - var f, - p = arguments[2], - m = arguments[3]; - return ( - (c = Object(a(c))), - r(d), - (f = o(c)), - m && - f.sort(typeof m == "function" ? n.call(m, c) : void 0), - typeof s != "function" && (s = f[s]), - i.call(s, f, function (h, v) { - return u.call(c, h) ? i.call(d, p, c[h], h, c, v) : l; - }) - ); - }; - }; - }), - Ha = y(function (e, t) { - t.exports = fm()("forEach"); - }), - fr = y(function () {}), - pm = y(function (e, t) { - t.exports = function () { - var r = Object.assign, - a; - return typeof r != "function" - ? !1 - : ((a = { foo: "raz" }), - r(a, { bar: "dwa" }, { trzy: "trzy" }), - a.foo + a.bar + a.trzy === "razdwatrzy"); - }; - }), - mm = y(function (e, t) { - t.exports = function () { - try { - return (Object.keys("primitive"), !0); - } catch { - return !1; - } - }; - }), - hm = y(function (e, t) { - var r = cr(), - a = Object.keys; - t.exports = function (n) { - return a(r(n) ? Object(n) : n); - }; - }), - vm = y(function (e, t) { - t.exports = mm()() ? Object.keys : hm(); - }), - gm = y(function (e, t) { - var r = vm(), - a = Rr(), - n = Math.max; - t.exports = function (i, o) { - var u, - s, - l = n(arguments.length, 2), - c; - for ( - i = Object(a(i)), - c = function (f) { - try { - i[f] = o[f]; - } catch (p) { - u || (u = p); - } - }, - s = 1; - s < l; - ++s - ) - ((o = arguments[s]), r(o).forEach(c)); - if (u !== void 0) throw u; - return i; - }; - }), - cs = y(function (e, t) { - t.exports = pm()() ? Object.assign : gm(); - }), - bm = y(function (e, t) { - var r = cr(), - a = { function: !0, object: !0 }; - t.exports = function (n) { - return (r(n) && a[O(n)]) || !1; - }; - }), - ym = y(function (e, t) { - var r = cs(), - a = bm(), - n = cr(), - i = Error.captureStackTrace; - t.exports = function (o) { - var u = new Error(o), - s = arguments[1], - l = arguments[2]; - return ( - n(l) || (a(s) && ((l = s), (s = null))), - n(l) && r(u, l), - n(s) && (u.code = s), - i && i(u, t.exports), - u - ); - }; - }), - ds = y(function (e, t) { - var r = Rr(), - a = Object.defineProperty, - n = Object.getOwnPropertyDescriptor, - i = Object.getOwnPropertyNames, - o = Object.getOwnPropertySymbols; - t.exports = function (u, s) { - var l, - c = Object(r(s)); - if ( - ((u = Object(r(u))), - i(c).forEach(function (d) { - try { - a(u, d, n(s, d)); - } catch (f) { - l = f; - } - }), - typeof o == "function" && - o(c).forEach(function (d) { - try { - a(u, d, n(s, d)); - } catch (f) { - l = f; - } - }), - l !== void 0) - ) - throw l; - return u; - }; - }), - fs = y(function (e, t) { - var r = dr(), - a = function (l, c) { - return c; - }, - n, - i, - o, - u; - try { - Object.defineProperty(a, "length", { - configurable: !0, - writable: !1, - enumerable: !1, - value: 1, - }); - } catch {} - a.length === 1 - ? ((n = { configurable: !0, writable: !1, enumerable: !1 }), - (i = Object.defineProperty), - (t.exports = function (s, l) { - return ( - (l = r(l)), - s.length === l ? s : ((n.value = l), i(s, "length", n)) - ); - })) - : ((u = ds()), - (o = (function () { - var s = []; - return function (l) { - var c, - d = 0; - if (s[l]) return s[l]; - for (c = []; l--; ) c.push("a" + (++d).toString(36)); - return new Function( - "fn", - "return function (" + - c.join(", ") + - ") { return fn.apply(this, arguments); };", - ); - }; - })()), - (t.exports = function (s, l) { - var c; - if (((l = r(l)), s.length === l)) return s; - c = o(l)(s); - try { - u(c, s); - } catch {} - return c; - })); - }), - ps = y(function (e, t) { - var r = void 0; - t.exports = function (a) { - return a !== r && a !== null; - }; - }), - wm = y(function (e, t) { - var r = ps(), - a = { object: !0, function: !0, undefined: !0 }; - t.exports = function (n) { - return r(n) ? hasOwnProperty.call(a, O(n)) : !1; - }; - }), - Dm = y(function (e, t) { - var r = wm(); - t.exports = function (a) { - if (!r(a)) return !1; - try { - return a.constructor ? a.constructor.prototype === a : !1; - } catch { - return !1; - } - }; - }), - _m = y(function (e, t) { - var r = Dm(); - t.exports = function (a) { - if ( - typeof a != "function" || - !hasOwnProperty.call(a, "length") - ) - return !1; - try { - if ( - typeof a.length != "number" || - typeof a.call != "function" || - typeof a.apply != "function" - ) - return !1; - } catch { - return !1; - } - return !r(a); - }; - }), - xm = y(function (e, t) { - var r = _m(), - a = /^\s*class[\s{/}]/, - n = Function.prototype.toString; - t.exports = function (i) { - return !(!r(i) || a.test(n.call(i))); - }; - }), - Em = y(function (e, t) { - var r = "razdwatrzy"; - t.exports = function () { - return typeof r.contains != "function" - ? !1 - : r.contains("dwa") === !0 && r.contains("foo") === !1; - }; - }), - Am = y(function (e, t) { - var r = String.prototype.indexOf; - t.exports = function (a) { - return r.call(this, a, arguments[1]) > -1; - }; - }), - Cm = y(function (e, t) { - t.exports = Em()() ? String.prototype.contains : Am(); - }), - pr = y(function (e, t) { - var r = ps(), - a = xm(), - n = cs(), - i = ss(), - o = Cm(), - u = (t.exports = function (s, l) { - var c, d, f, p, m; - return ( - arguments.length < 2 || typeof s != "string" - ? ((p = l), (l = s), (s = null)) - : (p = arguments[2]), - r(s) - ? ((c = o.call(s, "c")), - (d = o.call(s, "e")), - (f = o.call(s, "w"))) - : ((c = f = !0), (d = !1)), - (m = { - value: l, - configurable: c, - enumerable: d, - writable: f, - }), - p ? n(i(p), m) : m - ); - }); - u.gs = function (s, l, c) { - var d, f, p, m; - return ( - typeof s != "string" - ? ((p = c), (c = l), (l = s), (s = null)) - : (p = arguments[3]), - r(l) - ? a(l) - ? r(c) - ? a(c) || ((p = c), (c = void 0)) - : (c = void 0) - : ((p = l), (l = c = void 0)) - : (l = void 0), - r(s) - ? ((d = o.call(s, "c")), (f = o.call(s, "e"))) - : ((d = !0), (f = !1)), - (m = { get: l, set: c, configurable: d, enumerable: f }), - p ? n(i(p), m) : m - ); - }; - }), - Fm = y(function (e, t) { - var r = pr(), - a = Zt(), - n = Function.prototype.apply, - i = Function.prototype.call, - o = Object.create, - u = Object.defineProperty, - s = Object.defineProperties, - l = Object.prototype.hasOwnProperty, - c = { configurable: !0, enumerable: !1, writable: !0 }, - d, - f, - p, - m, - h, - v, - g; - ((d = function (D, w) { - var _; - return ( - a(w), - l.call(this, "__ee__") - ? (_ = this.__ee__) - : ((_ = c.value = o(null)), - u(this, "__ee__", c), - (c.value = null)), - _[D] - ? O(_[D]) === "object" - ? _[D].push(w) - : (_[D] = [_[D], w]) - : (_[D] = w), - this - ); - }), - (f = function (D, w) { - var _, F; - return ( - a(w), - (F = this), - d.call( - this, - D, - (_ = function () { - (p.call(F, D, _), n.call(w, this, arguments)); - }), - ), - (_.__eeOnceListener__ = w), - this - ); - }), - (p = function (D, w) { - var _, F, R, I; - if ((a(w), !l.call(this, "__ee__"))) return this; - if (((_ = this.__ee__), !_[D])) return this; - if (((F = _[D]), O(F) === "object")) - for (I = 0; (R = F[I]); ++I) - (R === w || R.__eeOnceListener__ === w) && - (F.length === 2 - ? (_[D] = F[I ? 0 : 1]) - : F.splice(I, 1)); - else (F === w || F.__eeOnceListener__ === w) && delete _[D]; - return this; - }), - (m = function (D) { - var w, _, F, R, I; - if (l.call(this, "__ee__") && ((R = this.__ee__[D]), !!R)) - if (O(R) === "object") { - for ( - _ = arguments.length, I = new Array(_ - 1), w = 1; - w < _; - ++w - ) - I[w - 1] = arguments[w]; - for (R = R.slice(), w = 0; (F = R[w]); ++w) - n.call(F, this, I); - } else - switch (arguments.length) { - case 1: - i.call(R, this); - break; - case 2: - i.call(R, this, arguments[1]); - break; - case 3: - i.call(R, this, arguments[1], arguments[2]); - break; - default: - for ( - _ = arguments.length, I = new Array(_ - 1), w = 1; - w < _; - ++w - ) - I[w - 1] = arguments[w]; - n.call(R, this, I); - } - }), - (h = { on: d, once: f, off: p, emit: m }), - (v = { on: r(d), once: r(f), off: r(p), emit: r(m) }), - (g = s({}, v)), - (t.exports = e = - function (D) { - return D == null ? o(g) : s(Object(D), v); - }), - (e.methods = h)); - }), - Tm = y(function (e, t) { - t.exports = function () { - var r = Array.from, - a, - n; - return typeof r != "function" - ? !1 - : ((a = ["raz", "dwa"]), - (n = r(a)), - !!(n && n !== a && n[1] === "dwa")); - }; - }), - Rm = y(function (e, t) { - t.exports = function () { - return (typeof globalThis > "u" - ? "undefined" - : O(globalThis)) !== "object" || !globalThis - ? !1 - : globalThis.Array === Array; - }; - }), - Sm = y(function (e, t) { - var r = function () { - if ( - (typeof self > "u" ? "undefined" : O(self)) === "object" && - self - ) - return self; - if ((typeof E > "u" ? "undefined" : O(E)) === "object" && E) - return E; - throw new Error("Unable to resolve global `this`"); - }; - t.exports = (function () { - if (this) return this; - try { - Object.defineProperty(Object.prototype, "__global__", { - get: function () { - return this; - }, - configurable: !0, - }); - } catch { - return r(); - } - try { - return __global__ || r(); - } finally { - delete Object.prototype.__global__; - } - })(); - }), - $a = y(function (e, t) { - t.exports = Rm()() ? globalThis : Sm(); - }), - km = y(function (e, t) { - var r = $a(), - a = { object: !0, symbol: !0 }; - t.exports = function () { - var n = r.Symbol, - i; - if (typeof n != "function") return !1; - i = n("test symbol"); - try { - String(i); - } catch { - return !1; - } - return !( - !a[O(n.iterator)] || - !a[O(n.toPrimitive)] || - !a[O(n.toStringTag)] - ); - }; - }), - Om = y(function (e, t) { - t.exports = function (r) { - return r - ? O(r) === "symbol" - ? !0 - : !r.constructor || r.constructor.name !== "Symbol" - ? !1 - : r[r.constructor.toStringTag] === "Symbol" - : !1; - }; - }), - ms = y(function (e, t) { - var r = Om(); - t.exports = function (a) { - if (!r(a)) throw new TypeError(a + " is not a symbol"); - return a; - }; - }), - Mm = y(function (e, t) { - var r = pr(), - a = Object.create, - n = Object.defineProperty, - i = Object.prototype, - o = a(null); - t.exports = function (u) { - for (var s = 0, l, c; o[u + (s || "")]; ) ++s; - return ( - (u += s || ""), - (o[u] = !0), - (l = "@@" + u), - n( - i, - l, - r.gs(null, function (d) { - c || ((c = !0), n(this, l, r(d)), (c = !1)); - }), - ), - l - ); - }; - }), - Im = y(function (e, t) { - var r = pr(), - a = $a().Symbol; - t.exports = function (n) { - return Object.defineProperties(n, { - hasInstance: r( - "", - (a && a.hasInstance) || n("hasInstance"), - ), - isConcatSpreadable: r( - "", - (a && a.isConcatSpreadable) || n("isConcatSpreadable"), - ), - iterator: r("", (a && a.iterator) || n("iterator")), - match: r("", (a && a.match) || n("match")), - replace: r("", (a && a.replace) || n("replace")), - search: r("", (a && a.search) || n("search")), - species: r("", (a && a.species) || n("species")), - split: r("", (a && a.split) || n("split")), - toPrimitive: r( - "", - (a && a.toPrimitive) || n("toPrimitive"), - ), - toStringTag: r( - "", - (a && a.toStringTag) || n("toStringTag"), - ), - unscopables: r( - "", - (a && a.unscopables) || n("unscopables"), - ), - }); - }; - }), - Pm = y(function (e, t) { - var r = pr(), - a = ms(), - n = Object.create(null); - t.exports = function (i) { - return Object.defineProperties(i, { - for: r(function (o) { - return n[o] ? n[o] : (n[o] = i(String(o))); - }), - keyFor: r(function (o) { - var u; - a(o); - for (u in n) if (n[u] === o) return u; - }), - }); - }; - }), - Nm = y(function (e, t) { - var r = pr(), - a = ms(), - n = $a().Symbol, - i = Mm(), - o = Im(), - u = Pm(), - s = Object.create, - l = Object.defineProperties, - c = Object.defineProperty, - d, - f, - p; - if (typeof n == "function") - try { - (String(n()), (p = !0)); - } catch {} - else n = null; - ((f = function (h) { - if (this instanceof f) - throw new TypeError("Symbol is not a constructor"); - return d(h); - }), - (t.exports = d = - function m(h) { - var v; - if (this instanceof m) - throw new TypeError("Symbol is not a constructor"); - return p - ? n(h) - : ((v = s(f.prototype)), - (h = h === void 0 ? "" : String(h)), - l(v, { - __description__: r("", h), - __name__: r("", i(h)), - })); - }), - o(d), - u(d), - l(f.prototype, { - constructor: r(d), - toString: r("", function () { - return this.__name__; - }), - }), - l(d.prototype, { - toString: r(function () { - return "Symbol (" + a(this).__description__ + ")"; - }), - valueOf: r(function () { - return a(this); - }), - }), - c( - d.prototype, - d.toPrimitive, - r("", function () { - var m = a(this); - return O(m) === "symbol" ? m : m.toString(); - }), - ), - c(d.prototype, d.toStringTag, r("c", "Symbol")), - c( - f.prototype, - d.toStringTag, - r("c", d.prototype[d.toStringTag]), - ), - c( - f.prototype, - d.toPrimitive, - r("c", d.prototype[d.toPrimitive]), - )); - }), - Lm = y(function (e, t) { - t.exports = km()() ? $a().Symbol : Nm(); - }), - Bm = y(function (e, t) { - var r = Object.prototype.toString, - a = r.call( - (function () { - return arguments; - })(), - ); - t.exports = function (n) { - return r.call(n) === a; - }; - }), - qm = y(function (e, t) { - var r = Object.prototype.toString, - a = RegExp.prototype.test.bind( - /^[object [A-Za-z0-9]*Function]$/, - ); - t.exports = function (n) { - return typeof n == "function" && a(r.call(n)); - }; - }), - jm = y(function (e, t) { - var r = Object.prototype.toString, - a = r.call(""); - t.exports = function (n) { - return ( - typeof n == "string" || - (n && - O(n) === "object" && - (n instanceof String || r.call(n) === a)) || - !1 - ); - }; - }), - zm = y(function (e, t) { - var r = Lm().iterator, - a = Bm(), - n = qm(), - i = dr(), - o = Zt(), - u = Rr(), - s = cr(), - l = jm(), - c = Array.isArray, - d = Function.prototype.call, - f = { - configurable: !0, - enumerable: !0, - writable: !0, - value: null, - }, - p = Object.defineProperty; - t.exports = function (m) { - var h = arguments[1], - v = arguments[2], - g, - b, - D, - w, - _, - F, - R, - I, - V, - S; - if ( - ((m = Object(u(m))), - s(h) && o(h), - !this || this === Array || !n(this)) - ) { - if (!h) { - if (a(m)) - return ( - (_ = m.length), - _ !== 1 - ? Array.apply(null, m) - : ((w = new Array(1)), (w[0] = m[0]), w) - ); - if (c(m)) { - for (w = new Array((_ = m.length)), b = 0; b < _; ++b) - w[b] = m[b]; - return w; - } - } - w = []; - } else g = this; - if (!c(m)) { - if ((V = m[r]) !== void 0) { - for ( - R = o(V).call(m), - g && (w = new g()), - I = R.next(), - b = 0; - !I.done; - ) - ((S = h ? d.call(h, v, I.value, b) : I.value), - g ? ((f.value = S), p(w, b, f)) : (w[b] = S), - (I = R.next()), - ++b); - _ = b; - } else if (l(m)) { - for ( - _ = m.length, g && (w = new g()), b = 0, D = 0; - b < _; - ++b - ) - ((S = m[b]), - b + 1 < _ && - ((F = S.charCodeAt(0)), - F >= 55296 && F <= 56319 && (S += m[++b])), - (S = h ? d.call(h, v, S, D) : S), - g ? ((f.value = S), p(w, D, f)) : (w[D] = S), - ++D); - _ = D; - } - } - if (_ === void 0) - for ( - _ = i(m.length), g && (w = new g(_)), b = 0; - b < _; - ++b - ) - ((S = h ? d.call(h, v, m[b], b) : m[b]), - g ? ((f.value = S), p(w, b, f)) : (w[b] = S)); - return (g && ((f.value = null), (w.length = _)), w); - }; - }), - Di = y(function (e, t) { - t.exports = Tm()() ? Array.from : zm(); - }), - Vm = y(function (e, t) { - var r = Di(), - a = Array.isArray; - t.exports = function (n) { - return a(n) ? n : r(n); - }; - }), - Hm = y(function (e, t) { - var r = Vm(), - a = cr(), - n = Zt(), - i = Array.prototype.slice, - o; - ((o = function (s) { - return this.map(function (l, c) { - return l ? l(s[c]) : s[c]; - }).concat(i.call(s, this.length)); - }), - (t.exports = function (u) { - return ( - (u = r(u)), - u.forEach(function (s) { - a(s) && n(s); - }), - o.bind(u) - ); - })); - }), - $m = y(function (e, t) { - var r = Zt(); - t.exports = function (a) { - var n; - return typeof a == "function" - ? { set: a, get: a } - : ((n = { get: r(a.get) }), - a.set !== void 0 - ? ((n.set = r(a.set)), - a.delete && (n.delete = r(a.delete)), - a.clear && (n.clear = r(a.clear)), - n) - : ((n.set = n.get), n)); - }; - }), - Um = y(function (e, t) { - var r = ym(), - a = fs(), - n = pr(), - i = Fm().methods, - o = Hm(), - u = $m(), - s = Function.prototype.apply, - l = Function.prototype.call, - c = Object.create, - d = Object.defineProperties, - f = i.on, - p = i.emit; - t.exports = function (m, h, v) { - var g = c(null), - b, - D, - w, - _, - F, - R, - I, - V, - S, - N, - z, - H, - Q, - ie, - Y; - return ( - h !== !1 - ? (D = h) - : isNaN(m.length) - ? (D = 1) - : (D = m.length), - v.normalizer && - ((N = u(v.normalizer)), - (w = N.get), - (_ = N.set), - (F = N.delete), - (R = N.clear)), - v.resolvers != null && (Y = o(v.resolvers)), - w - ? (ie = a(function (te) { - var B, - Z, - A = arguments; - if ( - (Y && (A = Y(A)), - (B = w(A)), - B !== null && hasOwnProperty.call(g, B)) - ) - return (z && b.emit("get", B, A, this), g[B]); - if ( - (A.length === 1 - ? (Z = l.call(m, this, A[0])) - : (Z = s.call(m, this, A)), - B === null) - ) { - if (((B = w(A)), B !== null)) - throw r( - "Circular invocation", - "CIRCULAR_INVOCATION", - ); - B = _(A); - } else if (hasOwnProperty.call(g, B)) - throw r( - "Circular invocation", - "CIRCULAR_INVOCATION", - ); - return ( - (g[B] = Z), - H && b.emit("set", B, null, Z), - Z - ); - }, D)) - : h === 0 - ? (ie = function () { - var B; - if (hasOwnProperty.call(g, "data")) - return ( - z && b.emit("get", "data", arguments, this), - g.data - ); - if ( - (arguments.length - ? (B = s.call(m, this, arguments)) - : (B = l.call(m, this)), - hasOwnProperty.call(g, "data")) - ) - throw r( - "Circular invocation", - "CIRCULAR_INVOCATION", - ); - return ( - (g.data = B), - H && b.emit("set", "data", null, B), - B - ); - }) - : (ie = function (B) { - var Z, - A = arguments, - U; - if ( - (Y && (A = Y(arguments)), - (U = String(A[0])), - hasOwnProperty.call(g, U)) - ) - return (z && b.emit("get", U, A, this), g[U]); - if ( - (A.length === 1 - ? (Z = l.call(m, this, A[0])) - : (Z = s.call(m, this, A)), - hasOwnProperty.call(g, U)) - ) - throw r( - "Circular invocation", - "CIRCULAR_INVOCATION", - ); - return ( - (g[U] = Z), - H && b.emit("set", U, null, Z), - Z - ); - }), - (b = { - original: m, - memoized: ie, - profileName: v.profileName, - get: function (B) { - return (Y && (B = Y(B)), w ? w(B) : String(B[0])); - }, - has: function (B) { - return hasOwnProperty.call(g, B); - }, - delete: function (B) { - var Z; - hasOwnProperty.call(g, B) && - (F && F(B), - (Z = g[B]), - delete g[B], - Q && b.emit("delete", B, Z)); - }, - clear: function () { - var B = g; - (R && R(), (g = c(null)), b.emit("clear", B)); - }, - on: function (B, Z) { - return ( - B === "get" - ? (z = !0) - : B === "set" - ? (H = !0) - : B === "delete" && (Q = !0), - f.call(this, B, Z) - ); - }, - emit: p, - updateEnv: function () { - m = b.original; - }, - }), - w - ? (I = a(function (te) { - var B, - Z = arguments; - (Y && (Z = Y(Z)), - (B = w(Z)), - B !== null && b.delete(B)); - }, D)) - : h === 0 - ? (I = function () { - return b.delete("data"); - }) - : (I = function (B) { - return (Y && (B = Y(arguments)[0]), b.delete(B)); - }), - (V = a(function () { - var te, - B = arguments; - return h === 0 - ? g.data - : (Y && (B = Y(B)), - w ? (te = w(B)) : (te = String(B[0])), - g[te]); - })), - (S = a(function () { - var te, - B = arguments; - return h === 0 - ? b.has("data") - : (Y && (B = Y(B)), - w ? (te = w(B)) : (te = String(B[0])), - te === null ? !1 : b.has(te)); - })), - d(ie, { - __memoized__: n(!0), - delete: n(I), - clear: n(b.clear), - _get: n(V), - _has: n(S), - }), - b - ); - }; - }), - Gm = y(function (e, t) { - var r = Zt(), - a = Ha(), - n = fr(), - i = Um(), - o = ls(); - t.exports = function u(s) { - var l, c, d; - if ((r(s), (l = Object(arguments[1])), l.async && l.promise)) - throw new Error( - "Options 'async' and 'promise' cannot be used together", - ); - return hasOwnProperty.call(s, "__memoized__") && !l.force - ? s - : ((c = o(l.length, s.length, l.async && n.async)), - (d = i(s, c, l)), - a(n, function (f, p) { - l[p] && f(l[p], d, l); - }), - u.__profiler__ && u.__profiler__(d), - d.updateEnv(), - d.memoized); - }; - }), - Wm = y(function (e, t) { - t.exports = function (r) { - var a, - n, - i = r.length; - if (!i) return ""; - for (a = String(r[(n = 0)]); --i; ) a += "" + r[++n]; - return a; - }; - }), - Ym = y(function (e, t) { - t.exports = function (r) { - return r - ? function (a) { - for (var n = String(a[0]), i = 0, o = r; --o; ) - n += "" + a[++i]; - return n; - } - : function () { - return ""; - }; - }; - }), - Km = y(function (e, t) { - t.exports = function () { - var r = Number.isNaN; - return typeof r != "function" - ? !1 - : !r({}) && r(NaN) && !r(34); - }; - }), - Xm = y(function (e, t) { - t.exports = function (r) { - return r !== r; - }; - }), - Zm = y(function (e, t) { - t.exports = Km()() ? Number.isNaN : Xm(); - }), - _i = y(function (e, t) { - var r = Zm(), - a = dr(), - n = Rr(), - i = Array.prototype.indexOf, - o = Object.prototype.hasOwnProperty, - u = Math.abs, - s = Math.floor; - t.exports = function (l) { - var c, d, f, p; - if (!r(l)) return i.apply(this, arguments); - for ( - d = a(n(this).length), - f = arguments[1], - isNaN(f) - ? (f = 0) - : f >= 0 - ? (f = s(f)) - : (f = a(this.length) - s(u(f))), - c = f; - c < d; - ++c - ) - if (o.call(this, c) && ((p = this[c]), r(p))) return c; - return -1; - }; - }), - Jm = y(function (e, t) { - var r = _i(), - a = Object.create; - t.exports = function () { - var n = 0, - i = [], - o = a(null); - return { - get: function (s) { - var l = 0, - c = i, - d, - f = s.length; - if (f === 0) return c[f] || null; - if ((c = c[f])) { - for (; l < f - 1; ) { - if (((d = r.call(c[0], s[l])), d === -1)) return null; - ((c = c[1][d]), ++l); - } - return ( - (d = r.call(c[0], s[l])), - d === -1 ? null : c[1][d] || null - ); - } - return null; - }, - set: function (s) { - var l = 0, - c = i, - d, - f = s.length; - if (f === 0) c[f] = ++n; - else { - for (c[f] || (c[f] = [[], []]), c = c[f]; l < f - 1; ) - ((d = r.call(c[0], s[l])), - d === -1 && - ((d = c[0].push(s[l]) - 1), c[1].push([[], []])), - (c = c[1][d]), - ++l); - ((d = r.call(c[0], s[l])), - d === -1 && (d = c[0].push(s[l]) - 1), - (c[1][d] = ++n)); - } - return ((o[n] = s), n); - }, - delete: function (s) { - var l = 0, - c = i, - d, - f = o[s], - p = f.length, - m = []; - if (p === 0) delete c[p]; - else if ((c = c[p])) { - for (; l < p - 1; ) { - if (((d = r.call(c[0], f[l])), d === -1)) return; - (m.push(c, d), (c = c[1][d]), ++l); - } - if (((d = r.call(c[0], f[l])), d === -1)) return; - for ( - s = c[1][d], c[0].splice(d, 1), c[1].splice(d, 1); - !c[0].length && m.length; - ) - ((d = m.pop()), - (c = m.pop()), - c[0].splice(d, 1), - c[1].splice(d, 1)); - } - delete o[s]; - }, - clear: function () { - ((i = []), (o = a(null))); - }, - }; - }; - }), - Qm = y(function (e, t) { - var r = _i(); - t.exports = function () { - var a = 0, - n = [], - i = []; - return { - get: function (u) { - var s = r.call(n, u[0]); - return s === -1 ? null : i[s]; - }, - set: function (u) { - return (n.push(u[0]), i.push(++a), a); - }, - delete: function (u) { - var s = r.call(i, u); - s !== -1 && (n.splice(s, 1), i.splice(s, 1)); - }, - clear: function () { - ((n = []), (i = [])); - }, - }; - }; - }), - eh = y(function (e, t) { - var r = _i(), - a = Object.create; - t.exports = function (n) { - var i = 0, - o = [[], []], - u = a(null); - return { - get: function (l) { - for (var c = 0, d = o, f; c < n - 1; ) { - if (((f = r.call(d[0], l[c])), f === -1)) return null; - ((d = d[1][f]), ++c); - } - return ( - (f = r.call(d[0], l[c])), - f === -1 ? null : d[1][f] || null - ); - }, - set: function (l) { - for (var c = 0, d = o, f; c < n - 1; ) - ((f = r.call(d[0], l[c])), - f === -1 && - ((f = d[0].push(l[c]) - 1), d[1].push([[], []])), - (d = d[1][f]), - ++c); - return ( - (f = r.call(d[0], l[c])), - f === -1 && (f = d[0].push(l[c]) - 1), - (d[1][f] = ++i), - (u[i] = l), - i - ); - }, - delete: function (l) { - for (var c = 0, d = o, f, p = [], m = u[l]; c < n - 1; ) { - if (((f = r.call(d[0], m[c])), f === -1)) return; - (p.push(d, f), (d = d[1][f]), ++c); - } - if (((f = r.call(d[0], m[c])), f !== -1)) { - for ( - l = d[1][f], d[0].splice(f, 1), d[1].splice(f, 1); - !d[0].length && p.length; - ) - ((f = p.pop()), - (d = p.pop()), - d[0].splice(f, 1), - d[1].splice(f, 1)); - delete u[l]; - } - }, - clear: function () { - ((o = [[], []]), (u = a(null))); - }, - }; - }; - }), - hs = y(function (e, t) { - var r = Zt(), - a = Ha(), - n = Function.prototype.call; - t.exports = function (i, o) { - var u = {}, - s = arguments[2]; - return ( - r(o), - a(i, function (l, c, d, f) { - u[c] = n.call(o, s, l, c, d, f); - }), - u - ); - }; - }), - xi = y(function (e, t) { - var r = function (i) { - if (typeof i != "function") - throw new TypeError(i + " is not a function"); - return i; - }, - a = function (i) { - var o = L.createTextNode(""), - u, - s, - l = 0; - return ( - new i(function () { - var c; - if (u) s && (u = s.concat(u)); - else { - if (!s) return; - u = s; - } - if (((s = u), (u = null), typeof s == "function")) { - ((c = s), (s = null), c()); - return; - } - for (o.data = l = ++l % 2; s; ) - ((c = s.shift()), s.length || (s = null), c()); - }).observe(o, { characterData: !0 }), - function (c) { - if ((r(c), u)) { - typeof u == "function" ? (u = [u, c]) : u.push(c); - return; - } - ((u = c), (o.data = l = ++l % 2)); - } - ); - }; - t.exports = (function () { - if ( - (typeof process > "u" ? "undefined" : O(process)) === - "object" && - process && - typeof process.nextTick == "function" - ) - return process.nextTick; - if (typeof queueMicrotask == "function") - return function (n) { - queueMicrotask(r(n)); - }; - if ((typeof L > "u" ? "undefined" : O(L)) === "object" && L) { - if (typeof MutationObserver == "function") - return a(MutationObserver); - if (typeof WebKitMutationObserver == "function") - return a(WebKitMutationObserver); - } - return typeof setImmediate == "function" - ? function (n) { - setImmediate(r(n)); - } - : typeof setTimeout == "function" || - (typeof setTimeout > "u" - ? "undefined" - : O(setTimeout)) === "object" - ? function (n) { - setTimeout(r(n), 0); - } - : null; - })(); - }), - th = y(function () { - var e = Di(), - t = hs(), - r = ds(), - a = fs(), - n = xi(), - i = Array.prototype.slice, - o = Function.prototype.apply, - u = Object.create; - fr().async = function (s, l) { - var c = u(null), - d = u(null), - f = l.memoized, - p = l.original, - m, - h, - v; - l.memoized = a(function (g) { - var b = arguments, - D = b[b.length - 1]; - return ( - typeof D == "function" && - ((m = D), (b = i.call(b, 0, -1))), - f.apply((h = this), (v = b)) - ); - }, f); - try { - r(l.memoized, f); - } catch {} - (l.on("get", function (g) { - var b, D, w; - if (m) { - if (c[g]) { - (typeof c[g] == "function" - ? (c[g] = [c[g], m]) - : c[g].push(m), - (m = null)); - return; - } - ((b = m), - (D = h), - (w = v), - (m = h = v = null), - n(function () { - var _; - hasOwnProperty.call(d, g) - ? ((_ = d[g]), - l.emit("getasync", g, w, D), - o.call(b, _.context, _.args)) - : ((m = b), (h = D), (v = w), f.apply(D, w)); - })); - } - }), - (l.original = function () { - var g, b, D, w; - return m - ? ((g = e(arguments)), - (b = function _(F) { - var R, - I, - V = _.id; - if (V == null) { - n(o.bind(_, this, arguments)); - return; - } - if ((delete _.id, (R = c[V]), delete c[V], !!R)) - return ( - (I = e(arguments)), - l.has(V) && - (F - ? l.delete(V) - : ((d[V] = { context: this, args: I }), - l.emit( - "setasync", - V, - typeof R == "function" ? 1 : R.length, - ))), - typeof R == "function" - ? (w = o.call(R, this, I)) - : R.forEach(function (S) { - w = o.call(S, this, I); - }, this), - w - ); - }), - (D = m), - (m = h = v = null), - g.push(b), - (w = o.call(p, this, g)), - (b.cb = D), - (m = b), - w) - : o.call(p, this, arguments); - }), - l.on("set", function (g) { - if (!m) { - l.delete(g); - return; - } - (c[g] - ? typeof c[g] == "function" - ? (c[g] = [c[g], m.cb]) - : c[g].push(m.cb) - : (c[g] = m.cb), - delete m.cb, - (m.id = g), - (m = null)); - }), - l.on("delete", function (g) { - var b; - hasOwnProperty.call(c, g) || - (d[g] && - ((b = d[g]), - delete d[g], - l.emit("deleteasync", g, i.call(b.args, 1)))); - }), - l.on("clear", function () { - var g = d; - ((d = u(null)), - l.emit( - "clearasync", - t(g, function (b) { - return i.call(b.args, 1); - }), - )); - })); - }; - }), - rh = y(function (e, t) { - var r = Array.prototype.forEach, - a = Object.create; - t.exports = function (n) { - var i = a(null); - return ( - r.call(arguments, function (o) { - i[o] = !0; - }), - i - ); - }; - }), - vs = y(function (e, t) { - t.exports = function (r) { - return typeof r == "function"; - }; - }), - ah = y(function (e, t) { - var r = vs(); - t.exports = function (a) { - try { - return a && r(a.toString) ? a.toString() : String(a); - } catch { - throw new TypeError("Passed argument cannot be stringifed"); - } - }; - }), - nh = y(function (e, t) { - var r = Rr(), - a = ah(); - t.exports = function (n) { - return a(r(n)); - }; - }), - ih = y(function (e, t) { - var r = vs(); - t.exports = function (a) { - try { - return a && r(a.toString) ? a.toString() : String(a); - } catch { - return ""; - } - }; - }), - oh = y(function (e, t) { - var r = ih(), - a = /[\n\r\u2028\u2029]/g; - t.exports = function (n) { - var i = r(n); - return ( - i.length > 100 && (i = i.slice(0, 99) + "…"), - (i = i.replace(a, function (o) { - return JSON.stringify(o).slice(1, -1); - })), - i - ); - }; - }), - gs = y(function (e, t) { - ((t.exports = r), (t.exports.default = r)); - function r(a) { - return ( - !!a && - (O(a) === "object" || typeof a == "function") && - typeof a.then == "function" - ); - } - }), - uh = y(function () { - var e = hs(), - t = rh(), - r = nh(), - a = oh(), - n = gs(), - i = xi(), - o = Object.create, - u = t("then", "then:finally", "done", "done:finally"); - fr().promise = function (s, l) { - var c = o(null), - d = o(null), - f = o(null); - if (s === !0) s = null; - else if (((s = r(s)), !u[s])) - throw new TypeError( - "'" + a(s) + "' is not valid promise mode", - ); - (l.on("set", function (p, m, h) { - var v = !1; - if (!n(h)) { - ((d[p] = h), l.emit("setasync", p, 1)); - return; - } - ((c[p] = 1), (f[p] = h)); - var g = function (F) { - var R = c[p]; - if (v) - throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`); - R && - (delete c[p], (d[p] = F), l.emit("setasync", p, R)); - }, - b = function () { - ((v = !0), - c[p] && (delete c[p], delete f[p], l.delete(p))); - }, - D = s; - if ((D || (D = "then"), D === "then")) { - var w = function () { - i(b); - }; - ((h = h.then(function (_) { - i(g.bind(this, _)); - }, w)), - typeof h.finally == "function" && h.finally(w)); - } else if (D === "done") { - if (typeof h.done != "function") - throw new Error( - "Memoizee error: Retrieved promise does not implement 'done' in 'done' mode", - ); - h.done(g, b); - } else if (D === "done:finally") { - if (typeof h.done != "function") - throw new Error( - "Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode", - ); - if (typeof h.finally != "function") - throw new Error( - "Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode", - ); - (h.done(g), h.finally(b)); - } - }), - l.on("get", function (p, m, h) { - var v; - if (c[p]) { - ++c[p]; - return; - } - v = f[p]; - var g = function () { - l.emit("getasync", p, m, h); - }; - n(v) - ? typeof v.done == "function" - ? v.done(g) - : v.then(function () { - i(g); - }) - : g(); - }), - l.on("delete", function (p) { - if ((delete f[p], c[p])) { - delete c[p]; - return; - } - if (hasOwnProperty.call(d, p)) { - var m = d[p]; - (delete d[p], l.emit("deleteasync", p, [m])); - } - }), - l.on("clear", function () { - var p = d; - ((d = o(null)), - (c = o(null)), - (f = o(null)), - l.emit( - "clearasync", - e(p, function (m) { - return [m]; - }), - )); - })); - }; - }), - sh = y(function () { - var e = Zt(), - t = Ha(), - r = fr(), - a = Function.prototype.apply; - r.dispose = function (n, i, o) { - var u; - if ( - (e(n), (o.async && r.async) || (o.promise && r.promise)) - ) { - (i.on( - "deleteasync", - (u = function (l, c) { - a.call(n, null, c); - }), - ), - i.on("clearasync", function (s) { - t(s, function (l, c) { - u(c, l); - }); - })); - return; - } - (i.on( - "delete", - (u = function (l, c) { - n(c); - }), - ), - i.on("clear", function (s) { - t(s, function (l, c) { - u(c, l); - }); - })); - }; - }), - lh = y(function (e, t) { - t.exports = 2147483647; - }), - ch = y(function (e, t) { - var r = dr(), - a = lh(); - t.exports = function (n) { - if (((n = r(n)), n > a)) - throw new TypeError( - n + " exceeds maximum possible timeout", - ); - return n; - }; - }), - dh = y(function () { - var e = Di(), - t = Ha(), - r = xi(), - a = gs(), - n = ch(), - i = fr(), - o = Function.prototype, - u = Math.max, - s = Math.min, - l = Object.create; - i.maxAge = function (c, d, f) { - var p, m, h, v; - ((c = n(c)), - c && - ((p = l(null)), - (m = - (f.async && i.async) || (f.promise && i.promise) - ? "async" - : ""), - d.on("set" + m, function (g) { - ((p[g] = setTimeout(function () { - d.delete(g); - }, c)), - typeof p[g].unref == "function" && p[g].unref(), - v && - (v[g] && v[g] !== "nextTick" && clearTimeout(v[g]), - (v[g] = setTimeout(function () { - delete v[g]; - }, h)), - typeof v[g].unref == "function" && v[g].unref())); - }), - d.on("delete" + m, function (g) { - (clearTimeout(p[g]), - delete p[g], - v && - (v[g] !== "nextTick" && clearTimeout(v[g]), - delete v[g])); - }), - f.preFetch && - (f.preFetch === !0 || isNaN(f.preFetch) - ? (h = 0.333) - : (h = u(s(Number(f.preFetch), 1), 0)), - h && - ((v = {}), - (h = (1 - h) * c), - d.on("get" + m, function (g, b, D) { - v[g] || - ((v[g] = "nextTick"), - r(function () { - var w; - v[g] === "nextTick" && - (delete v[g], - d.delete(g), - f.async && ((b = e(b)), b.push(o)), - (w = d.memoized.apply(D, b)), - f.promise && - a(w) && - (typeof w.done == "function" - ? w.done(o, o) - : w.then(o, o))); - })); - }))), - d.on("clear" + m, function () { - (t(p, function (g) { - clearTimeout(g); - }), - (p = {}), - v && - (t(v, function (g) { - g !== "nextTick" && clearTimeout(g); - }), - (v = {}))); - }))); - }; - }), - fh = y(function (e, t) { - var r = dr(), - a = Object.create, - n = Object.prototype.hasOwnProperty; - t.exports = function (i) { - var o = 0, - u = 1, - s = a(null), - l = a(null), - c = 0, - d; - return ( - (i = r(i)), - { - hit: function (p) { - var m = l[p], - h = ++c; - if (((s[h] = p), (l[p] = h), !m)) - return (++o, o <= i ? void 0 : ((p = s[u]), d(p), p)); - if ((delete s[m], u === m)) for (; !n.call(s, ++u); ); - }, - delete: (d = function (p) { - var m = l[p]; - if (m && (delete s[m], delete l[p], --o, u === m)) { - if (!o) { - ((c = 0), (u = 1)); - return; - } - for (; !n.call(s, ++u); ); - } - }), - clear: function () { - ((o = 0), - (u = 1), - (s = a(null)), - (l = a(null)), - (c = 0)); - }, - } - ); - }; - }), - ph = y(function () { - var e = dr(), - t = fh(), - r = fr(); - r.max = function (a, n, i) { - var o, u, s; - ((a = e(a)), - a && - ((u = t(a)), - (o = - (i.async && r.async) || (i.promise && r.promise) - ? "async" - : ""), - n.on( - "set" + o, - (s = function (c) { - ((c = u.hit(c)), c !== void 0 && n.delete(c)); - }), - ), - n.on("get" + o, s), - n.on("delete" + o, u.delete), - n.on("clear" + o, u.clear))); - }; - }), - mh = y(function () { - var e = pr(), - t = fr(), - r = Object.create, - a = Object.defineProperties; - t.refCounter = function (n, i, o) { - var u, s; - ((u = r(null)), - (s = - (o.async && t.async) || (o.promise && t.promise) - ? "async" - : ""), - i.on("set" + s, function (l, c) { - u[l] = c || 1; - }), - i.on("get" + s, function (l) { - ++u[l]; - }), - i.on("delete" + s, function (l) { - delete u[l]; - }), - i.on("clear" + s, function () { - u = {}; - }), - a(i.memoized, { - deleteRef: e(function () { - var l = i.get(arguments); - return l === null || !u[l] - ? null - : --u[l] - ? !1 - : (i.delete(l), !0); - }), - getRefCount: e(function () { - var l = i.get(arguments); - return l === null || !u[l] ? 0 : u[l]; - }), - })); - }; - }), - bs = y(function (e, t) { - var r = ss(), - a = ls(), - n = Gm(); - t.exports = function (i) { - var o = r(arguments[1]), - u; - return ( - o.normalizer || - ((u = o.length = a(o.length, i.length, o.async)), - u !== 0 && - (o.primitive - ? u === !1 - ? (o.normalizer = Wm()) - : u > 1 && (o.normalizer = Ym()(u)) - : u === !1 - ? (o.normalizer = Jm()()) - : u === 1 - ? (o.normalizer = Qm()()) - : (o.normalizer = eh()(u)))), - o.async && th(), - o.promise && uh(), - o.dispose && sh(), - o.maxAge && dh(), - o.max && ph(), - o.refCounter && mh(), - n(i, o) - ); - }; - }), - ys = y(function (e) { - Object.defineProperty(e, "__esModule", { value: !0 }); - function t(o) { - return ( - (o >= "a" && o <= "z") || - (o >= "A" && o <= "Z") || - o === "-" || - o === "_" - ); - } - e.isIdentStart = t; - function r(o) { - return ( - (o >= "a" && o <= "z") || - (o >= "A" && o <= "Z") || - (o >= "0" && o <= "9") || - o === "-" || - o === "_" - ); - } - e.isIdent = r; - function a(o) { - return ( - (o >= "a" && o <= "f") || - (o >= "A" && o <= "F") || - (o >= "0" && o <= "9") - ); - } - e.isHex = a; - function n(o) { - for (var u = o.length, s = "", l = 0; l < u; ) { - var c = o.charAt(l); - if (e.identSpecialChars[c]) s += "\\" + c; - else if ( - c === "_" || - c === "-" || - (c >= "A" && c <= "Z") || - (c >= "a" && c <= "z") || - (l !== 0 && c >= "0" && c <= "9") - ) - s += c; - else { - var d = c.charCodeAt(0); - if ((d & 63488) === 55296) { - var f = o.charCodeAt(l++); - if ((d & 64512) !== 55296 || (f & 64512) !== 56320) - throw Error("UCS-2(decode): illegal sequence"); - d = ((d & 1023) << 10) + (f & 1023) + 65536; - } - s += "\\" + d.toString(16) + " "; - } - l++; - } - return s; - } - e.escapeIdentifier = n; - function i(o) { - for (var u = o.length, s = "", l = 0, c; l < u; ) { - var d = o.charAt(l); - (d === '"' - ? (d = '\\"') - : d === "\\" - ? (d = "\\\\") - : (c = e.strReplacementsRev[d]) !== void 0 && (d = c), - (s += d), - l++); - } - return '"' + s + '"'; - } - ((e.escapeStr = i), - (e.identSpecialChars = { - "!": !0, - '"': !0, - "#": !0, - $: !0, - "%": !0, - "&": !0, - "'": !0, - "(": !0, - ")": !0, - "*": !0, - "+": !0, - ",": !0, - ".": !0, - "/": !0, - ";": !0, - "<": !0, - "=": !0, - ">": !0, - "?": !0, - "@": !0, - "[": !0, - "\\": !0, - "]": !0, - "^": !0, - "`": !0, - "{": !0, - "|": !0, - "}": !0, - "~": !0, - }), - (e.strReplacementsRev = { - "\n": "\\n", - "\r": "\\r", - " ": "\\t", - "\f": "\\f", - "\v": "\\v", - }), - (e.singleQuoteEscapeChars = { - n: ` -`, - r: "\r", - t: " ", - f: "\f", - "\\": "\\", - "'": "'", - }), - (e.doubleQuotesEscapeChars = { - n: ` -`, - r: "\r", - t: " ", - f: "\f", - "\\": "\\", - '"': '"', - })); - }), - hh = y(function (e) { - Object.defineProperty(e, "__esModule", { value: !0 }); - var t = ys(); - function r(a, n, i, o, u, s) { - var l = a.length, - c = ""; - function d(b, D) { - var w = ""; - for (n++, c = a.charAt(n); n < l; ) { - if (c === b) return (n++, w); - if (c === "\\") { - (n++, (c = a.charAt(n))); - var _ = void 0; - if (c === b) w += b; - else if ((_ = D[c]) !== void 0) w += _; - else if (t.isHex(c)) { - var F = c; - for (n++, c = a.charAt(n); t.isHex(c); ) - ((F += c), n++, (c = a.charAt(n))); - (c === " " && (n++, (c = a.charAt(n))), - (w += String.fromCharCode(parseInt(F, 16)))); - continue; - } else w += c; - } else w += c; - (n++, (c = a.charAt(n))); - } - return w; - } - function f() { - var b = ""; - for (c = a.charAt(n); n < l; ) { - if (t.isIdent(c)) b += c; - else if (c === "\\") { - if ((n++, n >= l)) - throw Error( - "Expected symbol but end of file reached.", - ); - if (((c = a.charAt(n)), t.identSpecialChars[c])) b += c; - else if (t.isHex(c)) { - var D = c; - for (n++, c = a.charAt(n); t.isHex(c); ) - ((D += c), n++, (c = a.charAt(n))); - (c === " " && (n++, (c = a.charAt(n))), - (b += String.fromCharCode(parseInt(D, 16)))); - continue; - } else b += c; - } else return b; - (n++, (c = a.charAt(n))); - } - return b; - } - function p() { - c = a.charAt(n); - for ( - var b = !1; - c === " " || - c === " " || - c === - ` -` || - c === "\r" || - c === "\f"; - ) - ((b = !0), n++, (c = a.charAt(n))); - return b; - } - function m() { - var b = h(); - if (n < l) - throw Error( - 'Rule expected but "' + a.charAt(n) + '" found.', - ); - return b; - } - function h() { - var b = v(); - if (!b) return null; - var D = b; - for (c = a.charAt(n); c === ","; ) { - if ( - (n++, - p(), - D.type !== "selectors" && - (D = { type: "selectors", selectors: [b] }), - (b = v()), - !b) - ) - throw Error('Rule expected after ",".'); - D.selectors.push(b); - } - return D; - } - function v() { - p(); - var b = { type: "ruleSet" }, - D = g(); - if (!D) return null; - for ( - var w = b; - D && - ((D.type = "rule"), - (w.rule = D), - (w = D), - p(), - (c = a.charAt(n)), - !(n >= l || c === "," || c === ")")); - ) - if (u[c]) { - var _ = c; - if ((n++, p(), (D = g()), !D)) - throw Error('Rule expected after "' + _ + '".'); - D.nestingOperator = _; - } else ((D = g()), D && (D.nestingOperator = null)); - return b; - } - function g() { - for (var b = null; n < l; ) - if (((c = a.charAt(n)), c === "*")) - (n++, ((b = b || {}).tagName = "*")); - else if (t.isIdentStart(c) || c === "\\") - (b = b || {}).tagName = f(); - else if (c === ".") - (n++, - (b = b || {}), - (b.classNames = b.classNames || []).push(f())); - else if (c === "#") (n++, ((b = b || {}).id = f())); - else if (c === "[") { - (n++, p()); - var D = { name: f() }; - if ((p(), c === "]")) n++; - else { - var w = ""; - if ( - (o[c] && ((w = c), n++, (c = a.charAt(n))), n >= l) - ) - throw Error( - 'Expected "=" but end of file reached.', - ); - if (c !== "=") - throw Error('Expected "=" but "' + c + '" found.'); - ((D.operator = w + "="), n++, p()); - var _ = ""; - if (((D.valueType = "string"), c === '"')) - _ = d('"', t.doubleQuotesEscapeChars); - else if (c === "'") - _ = d("'", t.singleQuoteEscapeChars); - else if (s && c === "$") - (n++, (_ = f()), (D.valueType = "substitute")); - else { - for (; n < l && c !== "]"; ) - ((_ += c), n++, (c = a.charAt(n))); - _ = _.trim(); - } - if ((p(), n >= l)) - throw Error( - 'Expected "]" but end of file reached.', - ); - if (c !== "]") - throw Error('Expected "]" but "' + c + '" found.'); - (n++, (D.value = _)); - } - ((b = b || {}), (b.attrs = b.attrs || []).push(D)); - } else if (c === ":") { - n++; - var F = f(), - R = { name: F }; - if (c === "(") { - n++; - var I = ""; - if ((p(), i[F] === "selector")) - ((R.valueType = "selector"), (I = h())); - else { - if (((R.valueType = i[F] || "string"), c === '"')) - I = d('"', t.doubleQuotesEscapeChars); - else if (c === "'") - I = d("'", t.singleQuoteEscapeChars); - else if (s && c === "$") - (n++, (I = f()), (R.valueType = "substitute")); - else { - for (; n < l && c !== ")"; ) - ((I += c), n++, (c = a.charAt(n))); - I = I.trim(); - } - p(); - } - if (n >= l) - throw Error( - 'Expected ")" but end of file reached.', - ); - if (c !== ")") - throw Error('Expected ")" but "' + c + '" found.'); - (n++, (R.value = I)); - } - ((b = b || {}), (b.pseudos = b.pseudos || []).push(R)); - } else break; - return b; - } - return m(); - } - e.parseCssSelector = r; - }), - vh = y(function (e) { - Object.defineProperty(e, "__esModule", { value: !0 }); - var t = ys(); - function r(a) { - var n = ""; - switch (a.type) { - case "ruleSet": - for (var i = a.rule, o = []; i; ) - (i.nestingOperator && o.push(i.nestingOperator), - o.push(r(i)), - (i = i.rule)); - n = o.join(" "); - break; - case "selectors": - n = a.selectors.map(r).join(", "); - break; - case "rule": - (a.tagName && - (a.tagName === "*" - ? (n = "*") - : (n = t.escapeIdentifier(a.tagName))), - a.id && (n += "#" + t.escapeIdentifier(a.id)), - a.classNames && - (n += a.classNames - .map(function (u) { - return "." + t.escapeIdentifier(u); - }) - .join("")), - a.attrs && - (n += a.attrs - .map(function (u) { - return "operator" in u - ? u.valueType === "substitute" - ? "[" + - t.escapeIdentifier(u.name) + - u.operator + - "$" + - u.value + - "]" - : "[" + - t.escapeIdentifier(u.name) + - u.operator + - t.escapeStr(u.value) + - "]" - : "[" + t.escapeIdentifier(u.name) + "]"; - }) - .join("")), - a.pseudos && - (n += a.pseudos - .map(function (u) { - return u.valueType - ? u.valueType === "selector" - ? ":" + - t.escapeIdentifier(u.name) + - "(" + - r(u.value) + - ")" - : u.valueType === "substitute" - ? ":" + - t.escapeIdentifier(u.name) + - "($" + - u.value + - ")" - : u.valueType === "numeric" - ? ":" + - t.escapeIdentifier(u.name) + - "(" + - u.value + - ")" - : ":" + - t.escapeIdentifier(u.name) + - "(" + - t.escapeIdentifier(u.value) + - ")" - : ":" + t.escapeIdentifier(u.name); - }) - .join(""))); - break; - default: - throw Error('Unknown entity type: "' + a.type + '".'); - } - return n; - } - e.renderEntity = r; - }), - ws = y(function (e) { - Object.defineProperty(e, "__esModule", { value: !0 }); - var t = hh(), - r = vh(), - a = (function () { - function n() { - ((this.pseudos = {}), - (this.attrEqualityMods = {}), - (this.ruleNestingOperators = {}), - (this.substitutesEnabled = !1)); - } - return ( - (n.prototype.registerSelectorPseudos = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - this.pseudos[l] = "selector"; - } - return this; - }), - (n.prototype.unregisterSelectorPseudos = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - delete this.pseudos[l]; - } - return this; - }), - (n.prototype.registerNumericPseudos = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - this.pseudos[l] = "numeric"; - } - return this; - }), - (n.prototype.unregisterNumericPseudos = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - delete this.pseudos[l]; - } - return this; - }), - (n.prototype.registerNestingOperators = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - this.ruleNestingOperators[l] = !0; - } - return this; - }), - (n.prototype.unregisterNestingOperators = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - delete this.ruleNestingOperators[l]; - } - return this; - }), - (n.prototype.registerAttrEqualityMods = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - this.attrEqualityMods[l] = !0; - } - return this; - }), - (n.prototype.unregisterAttrEqualityMods = function () { - for (var i = [], o = 0; o < arguments.length; o++) - i[o] = arguments[o]; - for (var u = 0, s = i; u < s.length; u++) { - var l = s[u]; - delete this.attrEqualityMods[l]; - } - return this; - }), - (n.prototype.enableSubstitutes = function () { - return ((this.substitutesEnabled = !0), this); - }), - (n.prototype.disableSubstitutes = function () { - return ((this.substitutesEnabled = !1), this); - }), - (n.prototype.parse = function (i) { - return t.parseCssSelector( - i, - 0, - this.pseudos, - this.attrEqualityMods, - this.ruleNestingOperators, - this.substitutesEnabled, - ); - }), - (n.prototype.render = function (i) { - return r.renderEntity(i).trim(); - }), - n - ); - })(); - e.CssSelectorParser = a; - }), - gh = y(function (e, t) { - (function (r, a) { - O(e) === "object" && typeof t < "u" - ? (t.exports = a()) - : (r.ES6Promise = a()); - })(e, function () { - function r(T) { - var M = O(T); - return T !== null && (M === "object" || M === "function"); - } - function a(T) { - return typeof T == "function"; - } - var n = void 0; - Array.isArray - ? (n = Array.isArray) - : (n = function (M) { - return ( - Object.prototype.toString.call(M) === "[object Array]" - ); - }); - var i = n, - o = 0, - u = void 0, - s = void 0, - l = function (M, q) { - ((F[o] = M), - (F[o + 1] = q), - (o += 2), - o === 2 && (s ? s(R) : V())); - }; - function c(T) { - s = T; - } - function d(T) { - l = T; - } - var f = typeof E < "u" ? E : void 0, - p = f || {}, - m = p.MutationObserver || p.WebKitMutationObserver, - h = - typeof self > "u" && - typeof process < "u" && - {}.toString.call(process) === "[object process]", - v = - typeof Uint8ClampedArray < "u" && - typeof importScripts < "u" && - typeof MessageChannel < "u"; - function g() { - return function () { - return process.nextTick(R); - }; - } - function b() { - return typeof u < "u" - ? function () { - u(R); - } - : _(); - } - function D() { - var T = 0, - M = new m(R), - q = L.createTextNode(""); - return ( - M.observe(q, { characterData: !0 }), - function () { - q.data = T = ++T % 2; - } - ); - } - function w() { - var T = new MessageChannel(); - return ( - (T.port1.onmessage = R), - function () { - return T.port2.postMessage(0); - } - ); - } - function _() { - var T = setTimeout; - return function () { - return T(R, 1); - }; - } - var F = new Array(1e3); - function R() { - for (var T = 0; T < o; T += 2) { - var M = F[T], - q = F[T + 1]; - (M(q), (F[T] = void 0), (F[T + 1] = void 0)); - } - o = 0; - } - function I() { - try { - var T = Function("return this")().require("vertx"); - return ((u = T.runOnLoop || T.runOnContext), b()); - } catch { - return _(); - } - } - var V = void 0; - h - ? (V = g()) - : m - ? (V = D()) - : v - ? (V = w()) - : f === void 0 - ? (V = I()) - : (V = _()); - function S(T, M) { - var q = this, - K = new this.constructor(H); - K[z] === void 0 && Ee(K); - var oe = q._state; - if (oe) { - var fe = arguments[oe - 1]; - l(function () { - return xe(oe, K, fe, q._result); - }); - } else pe(q, K, T, M); - return K; - } - function N(T) { - var M = this; - if (T && O(T) === "object" && T.constructor === M) return T; - var q = new M(H); - return (G(q, T), q); - } - var z = Math.random().toString(36).substring(2); - function H() {} - var Q = void 0, - ie = 1, - Y = 2; - function te() { - return new TypeError( - "You cannot resolve a promise with itself", - ); - } - function B() { - return new TypeError( - "A promises callback cannot return that same promise.", - ); - } - function Z(T, M, q, K) { - try { - T.call(M, q, K); - } catch (oe) { - return oe; - } - } - function A(T, M, q) { - l(function (K) { - var oe = !1, - fe = Z( - q, - M, - function (Ve) { - oe || ((oe = !0), M !== Ve ? G(K, Ve) : W(K, Ve)); - }, - function (Ve) { - oe || ((oe = !0), X(K, Ve)); - }, - "Settle: " + (K._label || " unknown promise"), - ); - !oe && fe && ((oe = !0), X(K, fe)); - }, T); - } - function U(T, M) { - M._state === ie - ? W(T, M._result) - : M._state === Y - ? X(T, M._result) - : pe( - M, - void 0, - function (q) { - return G(T, q); - }, - function (q) { - return X(T, q); - }, - ); - } - function P(T, M, q) { - M.constructor === T.constructor && - q === S && - M.constructor.resolve === N - ? U(T, M) - : q === void 0 - ? W(T, M) - : a(q) - ? A(T, M, q) - : W(T, M); - } - function G(T, M) { - if (T === M) X(T, te()); - else if (r(M)) { - var q = void 0; - try { - q = M.then; - } catch (K) { - X(T, K); - return; - } - P(T, M, q); - } else W(T, M); - } - function ae(T) { - (T._onerror && T._onerror(T._result), be(T)); - } - function W(T, M) { - T._state === Q && - ((T._result = M), - (T._state = ie), - T._subscribers.length !== 0 && l(be, T)); - } - function X(T, M) { - T._state === Q && - ((T._state = Y), (T._result = M), l(ae, T)); - } - function pe(T, M, q, K) { - var oe = T._subscribers, - fe = oe.length; - ((T._onerror = null), - (oe[fe] = M), - (oe[fe + ie] = q), - (oe[fe + Y] = K), - fe === 0 && T._state && l(be, T)); - } - function be(T) { - var M = T._subscribers, - q = T._state; - if (M.length !== 0) { - for ( - var K = void 0, oe = void 0, fe = T._result, Ve = 0; - Ve < M.length; - Ve += 3 - ) - ((K = M[Ve]), - (oe = M[Ve + q]), - K ? xe(q, K, oe, fe) : oe(fe)); - T._subscribers.length = 0; - } - } - function xe(T, M, q, K) { - var oe = a(q), - fe = void 0, - Ve = void 0, - Zr = !0; - if (oe) { - try { - fe = q(K); - } catch (pi) { - ((Zr = !1), (Ve = pi)); - } - if (M === fe) { - X(M, B()); - return; - } - } else fe = K; - M._state !== Q || - (oe && Zr - ? G(M, fe) - : Zr === !1 - ? X(M, Ve) - : T === ie - ? W(M, fe) - : T === Y && X(M, fe)); - } - function Me(T, M) { - try { - M( - function (K) { - G(T, K); - }, - function (K) { - X(T, K); - }, - ); - } catch (q) { - X(T, q); - } - } - var je = 0; - function Be() { - return je++; - } - function Ee(T) { - ((T[z] = je++), - (T._state = void 0), - (T._result = void 0), - (T._subscribers = [])); - } - function Xr() { - return new Error("Array Methods must be provided an Array"); - } - var Ye = (function () { - function T(M, q) { - ((this._instanceConstructor = M), - (this.promise = new M(H)), - this.promise[z] || Ee(this.promise), - i(q) - ? ((this.length = q.length), - (this._remaining = q.length), - (this._result = new Array(this.length)), - this.length === 0 - ? W(this.promise, this._result) - : ((this.length = this.length || 0), - this._enumerate(q), - this._remaining === 0 && - W(this.promise, this._result))) - : X(this.promise, Xr())); - } - return ( - (T.prototype._enumerate = function (q) { - for (var K = 0; this._state === Q && K < q.length; K++) - this._eachEntry(q[K], K); - }), - (T.prototype._eachEntry = function (q, K) { - var oe = this._instanceConstructor, - fe = oe.resolve; - if (fe === N) { - var Ve = void 0, - Zr = void 0, - pi = !1; - try { - Ve = q.then; - } catch (Ju) { - ((pi = !0), (Zr = Ju)); - } - if (Ve === S && q._state !== Q) - this._settledAt(q._state, K, q._result); - else if (typeof Ve != "function") - (this._remaining--, (this._result[K] = q)); - else if (oe === ke) { - var Zu = new oe(H); - (pi ? X(Zu, Zr) : P(Zu, q, Ve), - this._willSettleAt(Zu, K)); - } else - this._willSettleAt( - new oe(function (Ju) { - return Ju(q); - }), - K, - ); - } else this._willSettleAt(fe(q), K); - }), - (T.prototype._settledAt = function (q, K, oe) { - var fe = this.promise; - (fe._state === Q && - (this._remaining--, - q === Y ? X(fe, oe) : (this._result[K] = oe)), - this._remaining === 0 && W(fe, this._result)); - }), - (T.prototype._willSettleAt = function (q, K) { - var oe = this; - pe( - q, - void 0, - function (fe) { - return oe._settledAt(ie, K, fe); - }, - function (fe) { - return oe._settledAt(Y, K, fe); - }, - ); - }), - T - ); - })(); - function Ae(T) { - return new Ye(this, T).promise; - } - function ze(T) { - var M = this; - return i(T) - ? new M(function (q, K) { - for (var oe = T.length, fe = 0; fe < oe; fe++) - M.resolve(T[fe]).then(q, K); - }) - : new M(function (q, K) { - return K( - new TypeError("You must pass an array to race."), - ); - }); - } - function Ie(T) { - var M = this, - q = new M(H); - return (X(q, T), q); - } - function Qe() { - throw new TypeError( - "You must pass a resolver function as the first argument to the promise constructor", - ); - } - function et() { - throw new TypeError( - "Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.", - ); - } - var ke = (function () { - function T(M) { - ((this[z] = Be()), - (this._result = this._state = void 0), - (this._subscribers = []), - H !== M && - (typeof M != "function" && Qe(), - this instanceof T ? Me(this, M) : et())); - } - return ( - (T.prototype.catch = function (q) { - return this.then(null, q); - }), - (T.prototype.finally = function (q) { - var K = this, - oe = K.constructor; - return a(q) - ? K.then( - function (fe) { - return oe.resolve(q()).then(function () { - return fe; - }); - }, - function (fe) { - return oe.resolve(q()).then(function () { - throw fe; - }); - }, - ) - : K.then(q, q); - }), - T - ); - })(); - ((ke.prototype.then = S), - (ke.all = Ae), - (ke.race = ze), - (ke.resolve = N), - (ke.reject = Ie), - (ke._setScheduler = c), - (ke._setAsap = d), - (ke._asap = l)); - function ye() { - var T = void 0; - if (typeof jt < "u") T = jt; - else if (typeof self < "u") T = self; - else - try { - T = Function("return this")(); - } catch { - throw new Error( - "polyfill failed because global object is unavailable in this environment", - ); - } - var M = T.Promise; - if (M) { - var q = null; - try { - q = Object.prototype.toString.call(M.resolve()); - } catch {} - if (q === "[object Promise]" && !M.cast) return; - } - T.Promise = ke; - } - return ((ke.polyfill = ye), (ke.Promise = ke), ke); - }); - }), - bh = y(function (e) { - var t = 1e5, - r = (function () { - var A = Object.prototype.toString, - U = Object.prototype.hasOwnProperty; - return { - Class: function (G) { - return A.call(G).replace(/^\[object *|\]$/g, ""); - }, - HasProperty: function (G, ae) { - return ae in G; - }, - HasOwnProperty: function (G, ae) { - return U.call(G, ae); - }, - IsCallable: function (G) { - return typeof G == "function"; - }, - ToInt32: function (G) { - return G >> 0; - }, - ToUint32: function (G) { - return G >>> 0; - }, - }; - })(), - a = Math.LN2, - n = Math.abs, - i = Math.floor, - o = Math.log, - u = Math.min, - s = Math.pow, - l = Math.round; - function c(A, U, P) { - return A < U ? U : A > P ? P : A; - } - var d = - Object.getOwnPropertyNames || - function (A) { - if (A !== Object(A)) - throw new TypeError( - "Object.getOwnPropertyNames called on non-object", - ); - var U = [], - P; - for (P in A) r.HasOwnProperty(A, P) && U.push(P); - return U; - }, - f; - Object.defineProperty && - (function () { - try { - return (Object.defineProperty({}, "x", {}), !0); - } catch { - return !1; - } - })() - ? (f = Object.defineProperty) - : (f = function (U, P, G) { - if (!U === Object(U)) - throw new TypeError( - "Object.defineProperty called on non-object", - ); - return ( - r.HasProperty(G, "get") && - Object.prototype.__defineGetter__ && - Object.prototype.__defineGetter__.call(U, P, G.get), - r.HasProperty(G, "set") && - Object.prototype.__defineSetter__ && - Object.prototype.__defineSetter__.call(U, P, G.set), - r.HasProperty(G, "value") && (U[P] = G.value), - U - ); - }); - function p(A) { - if (d && f) { - var U = d(A), - P; - for (P = 0; P < U.length; P += 1) - f(A, U[P], { - value: A[U[P]], - writable: !1, - enumerable: !1, - configurable: !1, - }); - } - } - function m(A) { - if (!f) return; - if (A.length > t) - throw new RangeError("Array too large for polyfill"); - function U(G) { - f(A, G, { - get: function () { - return A._getter(G); - }, - set: function (W) { - A._setter(G, W); - }, - enumerable: !0, - configurable: !1, - }); - } - var P; - for (P = 0; P < A.length; P += 1) U(P); - } - function h(A, U) { - var P = 32 - U; - return (A << P) >> P; - } - function v(A, U) { - var P = 32 - U; - return (A << P) >>> P; - } - function g(A) { - return [A & 255]; - } - function b(A) { - return h(A[0], 8); - } - function D(A) { - return [A & 255]; - } - function w(A) { - return v(A[0], 8); - } - function _(A) { - return ( - (A = l(Number(A))), - [A < 0 ? 0 : A > 255 ? 255 : A & 255] - ); - } - function F(A) { - return [(A >> 8) & 255, A & 255]; - } - function R(A) { - return h((A[0] << 8) | A[1], 16); - } - function I(A) { - return [(A >> 8) & 255, A & 255]; - } - function V(A) { - return v((A[0] << 8) | A[1], 16); - } - function S(A) { - return [ - (A >> 24) & 255, - (A >> 16) & 255, - (A >> 8) & 255, - A & 255, - ]; - } - function N(A) { - return h( - (A[0] << 24) | (A[1] << 16) | (A[2] << 8) | A[3], - 32, - ); - } - function z(A) { - return [ - (A >> 24) & 255, - (A >> 16) & 255, - (A >> 8) & 255, - A & 255, - ]; - } - function H(A) { - return v( - (A[0] << 24) | (A[1] << 16) | (A[2] << 8) | A[3], - 32, - ); - } - function Q(A, U, P) { - var G = (1 << (U - 1)) - 1, - ae, - W, - X, - pe, - be, - xe, - Me; - function je(Be) { - var Ee = i(Be), - Xr = Be - Ee; - return Xr < 0.5 ? Ee : Xr > 0.5 || Ee % 2 ? Ee + 1 : Ee; - } - for ( - A !== A - ? ((W = (1 << U) - 1), (X = s(2, P - 1)), (ae = 0)) - : A === 1 / 0 || A === -1 / 0 - ? ((W = (1 << U) - 1), (X = 0), (ae = A < 0 ? 1 : 0)) - : A === 0 - ? ((W = 0), (X = 0), (ae = 1 / A === -1 / 0 ? 1 : 0)) - : ((ae = A < 0), - (A = n(A)), - A >= s(2, 1 - G) - ? ((W = u(i(o(A) / a), 1023)), - (X = je((A / s(2, W)) * s(2, P))), - X / s(2, P) >= 2 && ((W = W + 1), (X = 1)), - W > G - ? ((W = (1 << U) - 1), (X = 0)) - : ((W = W + G), (X = X - s(2, P)))) - : ((W = 0), (X = je(A / s(2, 1 - G - P))))), - be = [], - pe = P; - pe; - pe -= 1 - ) - (be.push(X % 2 ? 1 : 0), (X = i(X / 2))); - for (pe = U; pe; pe -= 1) - (be.push(W % 2 ? 1 : 0), (W = i(W / 2))); - for ( - be.push(ae ? 1 : 0), - be.reverse(), - xe = be.join(""), - Me = []; - xe.length; - ) - (Me.push(parseInt(xe.substring(0, 8), 2)), - (xe = xe.substring(8))); - return Me; - } - function ie(A, U, P) { - var G = [], - ae, - W, - X, - pe, - be, - xe, - Me, - je; - for (ae = A.length; ae; ae -= 1) - for (X = A[ae - 1], W = 8; W; W -= 1) - (G.push(X % 2 ? 1 : 0), (X = X >> 1)); - return ( - G.reverse(), - (pe = G.join("")), - (be = (1 << (U - 1)) - 1), - (xe = parseInt(pe.substring(0, 1), 2) ? -1 : 1), - (Me = parseInt(pe.substring(1, 1 + U), 2)), - (je = parseInt(pe.substring(1 + U), 2)), - Me === (1 << U) - 1 - ? je === 0 - ? xe * (1 / 0) - : NaN - : Me > 0 - ? xe * s(2, Me - be) * (1 + je / s(2, P)) - : je !== 0 - ? xe * s(2, -(be - 1)) * (je / s(2, P)) - : xe < 0 - ? -0 - : 0 - ); - } - function Y(A) { - return ie(A, 11, 52); - } - function te(A) { - return Q(A, 11, 52); - } - function B(A) { - return ie(A, 8, 23); - } - function Z(A) { - return Q(A, 8, 23); - } - ((function () { - function A(Be) { - if (((Be = r.ToInt32(Be)), Be < 0)) - throw new RangeError( - "ArrayBuffer size is not a small enough positive integer", - ); - ((this.byteLength = Be), - (this._bytes = []), - (this._bytes.length = Be)); - var Ee; - for (Ee = 0; Ee < this.byteLength; Ee += 1) - this._bytes[Ee] = 0; - p(this); - } - e.ArrayBuffer = e.ArrayBuffer || A; - function U() {} - function P(Be, Ee, Xr) { - var Ye; - return ( - (Ye = function (ze, Ie, Qe) { - var et, ke, ye, T; - if ( - !arguments.length || - typeof arguments[0] == "number" - ) { - if (((this.length = r.ToInt32(arguments[0])), Qe < 0)) - throw new RangeError( - "ArrayBufferView size is not a small enough positive integer", - ); - ((this.byteLength = - this.length * this.BYTES_PER_ELEMENT), - (this.buffer = new A(this.byteLength)), - (this.byteOffset = 0)); - } else if ( - O(arguments[0]) === "object" && - arguments[0].constructor === Ye - ) - for ( - et = arguments[0], - this.length = et.length, - this.byteLength = - this.length * this.BYTES_PER_ELEMENT, - this.buffer = new A(this.byteLength), - this.byteOffset = 0, - ye = 0; - ye < this.length; - ye += 1 - ) - this._setter(ye, et._getter(ye)); - else if ( - O(arguments[0]) === "object" && - !( - arguments[0] instanceof A || - r.Class(arguments[0]) === "ArrayBuffer" - ) - ) - for ( - ke = arguments[0], - this.length = r.ToUint32(ke.length), - this.byteLength = - this.length * this.BYTES_PER_ELEMENT, - this.buffer = new A(this.byteLength), - this.byteOffset = 0, - ye = 0; - ye < this.length; - ye += 1 - ) - ((T = ke[ye]), this._setter(ye, Number(T))); - else if ( - O(arguments[0]) === "object" && - (arguments[0] instanceof A || - r.Class(arguments[0]) === "ArrayBuffer") - ) { - if ( - ((this.buffer = ze), - (this.byteOffset = r.ToUint32(Ie)), - this.byteOffset > this.buffer.byteLength) - ) - throw new RangeError("byteOffset out of range"); - if (this.byteOffset % this.BYTES_PER_ELEMENT) - throw new RangeError( - "ArrayBuffer length minus the byteOffset is not a multiple of the element size.", - ); - if (arguments.length < 3) { - if ( - ((this.byteLength = - this.buffer.byteLength - this.byteOffset), - this.byteLength % this.BYTES_PER_ELEMENT) - ) - throw new RangeError( - "length of buffer minus byteOffset not a multiple of the element size", - ); - this.length = - this.byteLength / this.BYTES_PER_ELEMENT; - } else - ((this.length = r.ToUint32(Qe)), - (this.byteLength = - this.length * this.BYTES_PER_ELEMENT)); - if ( - this.byteOffset + this.byteLength > - this.buffer.byteLength - ) - throw new RangeError( - "byteOffset and length reference an area beyond the end of the buffer", - ); - } else - throw new TypeError("Unexpected argument type(s)"); - ((this.constructor = Ye), p(this), m(this)); - }), - (Ye.prototype = new U()), - (Ye.prototype.BYTES_PER_ELEMENT = Be), - (Ye.prototype._pack = Ee), - (Ye.prototype._unpack = Xr), - (Ye.BYTES_PER_ELEMENT = Be), - (Ye.prototype._getter = function (Ae) { - if (arguments.length < 1) - throw new SyntaxError("Not enough arguments"); - if (((Ae = r.ToUint32(Ae)), !(Ae >= this.length))) { - for ( - var ze = [], - Ie = 0, - Qe = - this.byteOffset + Ae * this.BYTES_PER_ELEMENT; - Ie < this.BYTES_PER_ELEMENT; - Ie += 1, Qe += 1 - ) - ze.push(this.buffer._bytes[Qe]); - return this._unpack(ze); - } - }), - (Ye.prototype.get = Ye.prototype._getter), - (Ye.prototype._setter = function (Ae, ze) { - if (arguments.length < 2) - throw new SyntaxError("Not enough arguments"); - if (((Ae = r.ToUint32(Ae)), Ae < this.length)) { - var Ie = this._pack(ze), - Qe, - et; - for ( - Qe = 0, - et = - this.byteOffset + Ae * this.BYTES_PER_ELEMENT; - Qe < this.BYTES_PER_ELEMENT; - Qe += 1, et += 1 - ) - this.buffer._bytes[et] = Ie[Qe]; - } - }), - (Ye.prototype.set = function (Ae, ze) { - if (arguments.length < 1) - throw new SyntaxError("Not enough arguments"); - var Ie, Qe, et, ke, ye, T, M, q, K, oe; - if ( - O(arguments[0]) === "object" && - arguments[0].constructor === this.constructor - ) { - if ( - ((Ie = arguments[0]), - (et = r.ToUint32(arguments[1])), - et + Ie.length > this.length) - ) - throw new RangeError( - "Offset plus length of array is out of range", - ); - if ( - ((q = - this.byteOffset + et * this.BYTES_PER_ELEMENT), - (K = Ie.length * this.BYTES_PER_ELEMENT), - Ie.buffer === this.buffer) - ) { - for ( - oe = [], ye = 0, T = Ie.byteOffset; - ye < K; - ye += 1, T += 1 - ) - oe[ye] = Ie.buffer._bytes[T]; - for (ye = 0, M = q; ye < K; ye += 1, M += 1) - this.buffer._bytes[M] = oe[ye]; - } else - for ( - ye = 0, T = Ie.byteOffset, M = q; - ye < K; - ye += 1, T += 1, M += 1 - ) - this.buffer._bytes[M] = Ie.buffer._bytes[T]; - } else if ( - O(arguments[0]) === "object" && - typeof arguments[0].length < "u" - ) { - if ( - ((Qe = arguments[0]), - (ke = r.ToUint32(Qe.length)), - (et = r.ToUint32(arguments[1])), - et + ke > this.length) - ) - throw new RangeError( - "Offset plus length of array is out of range", - ); - for (ye = 0; ye < ke; ye += 1) - ((T = Qe[ye]), this._setter(et + ye, Number(T))); - } else - throw new TypeError("Unexpected argument type(s)"); - }), - (Ye.prototype.subarray = function (Ae, ze) { - ((Ae = r.ToInt32(Ae)), - (ze = r.ToInt32(ze)), - arguments.length < 1 && (Ae = 0), - arguments.length < 2 && (ze = this.length), - Ae < 0 && (Ae = this.length + Ae), - ze < 0 && (ze = this.length + ze), - (Ae = c(Ae, 0, this.length)), - (ze = c(ze, 0, this.length))); - var Ie = ze - Ae; - return ( - Ie < 0 && (Ie = 0), - new this.constructor( - this.buffer, - this.byteOffset + Ae * this.BYTES_PER_ELEMENT, - Ie, - ) - ); - }), - Ye - ); - } - var G = P(1, g, b), - ae = P(1, D, w), - W = P(1, _, w), - X = P(2, F, R), - pe = P(2, I, V), - be = P(4, S, N), - xe = P(4, z, H), - Me = P(4, Z, B), - je = P(8, te, Y); - ((e.Int8Array = e.Int8Array || G), - (e.Uint8Array = e.Uint8Array || ae), - (e.Uint8ClampedArray = e.Uint8ClampedArray || W), - (e.Int16Array = e.Int16Array || X), - (e.Uint16Array = e.Uint16Array || pe), - (e.Int32Array = e.Int32Array || be), - (e.Uint32Array = e.Uint32Array || xe), - (e.Float32Array = e.Float32Array || Me), - (e.Float64Array = e.Float64Array || je)); - })(), - (function () { - function A(W, X) { - return r.IsCallable(W.get) ? W.get(X) : W[X]; - } - var U = (function () { - var W = new e.Uint16Array([4660]), - X = new e.Uint8Array(W.buffer); - return A(X, 0) === 18; - })(); - function P(W, X, pe) { - if (arguments.length === 0) W = new e.ArrayBuffer(0); - else if ( - !( - W instanceof e.ArrayBuffer || - r.Class(W) === "ArrayBuffer" - ) - ) - throw new TypeError("TypeError"); - if ( - ((this.buffer = W || new e.ArrayBuffer(0)), - (this.byteOffset = r.ToUint32(X)), - this.byteOffset > this.buffer.byteLength) - ) - throw new RangeError("byteOffset out of range"); - if ( - (arguments.length < 3 - ? (this.byteLength = - this.buffer.byteLength - this.byteOffset) - : (this.byteLength = r.ToUint32(pe)), - this.byteOffset + this.byteLength > - this.buffer.byteLength) - ) - throw new RangeError( - "byteOffset and length reference an area beyond the end of the buffer", - ); - p(this); - } - function G(W) { - return function (X, pe) { - if ( - ((X = r.ToUint32(X)), - X + W.BYTES_PER_ELEMENT > this.byteLength) - ) - throw new RangeError("Array index out of range"); - X += this.byteOffset; - var be = new e.Uint8Array( - this.buffer, - X, - W.BYTES_PER_ELEMENT, - ), - xe = [], - Me; - for (Me = 0; Me < W.BYTES_PER_ELEMENT; Me += 1) - xe.push(A(be, Me)); - return ( - !!pe == !!U && xe.reverse(), - A(new W(new e.Uint8Array(xe).buffer), 0) - ); - }; - } - ((P.prototype.getUint8 = G(e.Uint8Array)), - (P.prototype.getInt8 = G(e.Int8Array)), - (P.prototype.getUint16 = G(e.Uint16Array)), - (P.prototype.getInt16 = G(e.Int16Array)), - (P.prototype.getUint32 = G(e.Uint32Array)), - (P.prototype.getInt32 = G(e.Int32Array)), - (P.prototype.getFloat32 = G(e.Float32Array)), - (P.prototype.getFloat64 = G(e.Float64Array))); - function ae(W) { - return function (X, pe, be) { - if ( - ((X = r.ToUint32(X)), - X + W.BYTES_PER_ELEMENT > this.byteLength) - ) - throw new RangeError("Array index out of range"); - var xe = new W([pe]), - Me = new e.Uint8Array(xe.buffer), - je = [], - Be, - Ee; - for (Be = 0; Be < W.BYTES_PER_ELEMENT; Be += 1) - je.push(A(Me, Be)); - (!!be == !!U && je.reverse(), - (Ee = new e.Uint8Array( - this.buffer, - X, - W.BYTES_PER_ELEMENT, - )), - Ee.set(je)); - }; - } - ((P.prototype.setUint8 = ae(e.Uint8Array)), - (P.prototype.setInt8 = ae(e.Int8Array)), - (P.prototype.setUint16 = ae(e.Uint16Array)), - (P.prototype.setInt16 = ae(e.Int16Array)), - (P.prototype.setUint32 = ae(e.Uint32Array)), - (P.prototype.setInt32 = ae(e.Int32Array)), - (P.prototype.setFloat32 = ae(e.Float32Array)), - (P.prototype.setFloat64 = ae(e.Float64Array)), - (e.DataView = e.DataView || P)); - })()); - }), - yh = y(function (e) { - (function (t) { - if (t.WeakMap) return; - var r = Object.prototype.hasOwnProperty, - a = - Object.defineProperty && - (function () { - try { - return ( - Object.defineProperty({}, "x", { value: 1 }).x === 1 - ); - } catch {} - })(), - n = function (u, s, l) { - a - ? Object.defineProperty(u, s, { - configurable: !0, - writable: !0, - value: l, - }) - : (u[s] = l); - }; - t.WeakMap = (function () { - function o() { - if (this === void 0) - throw new TypeError( - "Constructor WeakMap requires 'new'", - ); - if ((n(this, "_id", s("_WeakMap")), arguments.length > 0)) - throw new TypeError( - "WeakMap iterable is not supported", - ); - } - (n(o.prototype, "delete", function (c) { - if ((u(this, "delete"), !i(c))) return !1; - var d = c[this._id]; - return d && d[0] === c ? (delete c[this._id], !0) : !1; - }), - n(o.prototype, "get", function (c) { - if ((u(this, "get"), !!i(c))) { - var d = c[this._id]; - if (d && d[0] === c) return d[1]; - } - }), - n(o.prototype, "has", function (c) { - if ((u(this, "has"), !i(c))) return !1; - var d = c[this._id]; - return !!(d && d[0] === c); - }), - n(o.prototype, "set", function (c, d) { - if ((u(this, "set"), !i(c))) - throw new TypeError( - "Invalid value used as weak map key", - ); - var f = c[this._id]; - return f && f[0] === c - ? ((f[1] = d), this) - : (n(c, this._id, [c, d]), this); - })); - function u(c, d) { - if (!i(c) || !r.call(c, "_id")) - throw new TypeError( - d + " method called on incompatible receiver " + O(c), - ); - } - function s(c) { - return c + "_" + l() + "." + l(); - } - function l() { - return Math.random().toString().substring(2); - } - return (n(o, "_polyfill", !0), o); - })(); - function i(o) { - return Object(o) === o; - } - })( - typeof globalThis < "u" - ? globalThis - : typeof self < "u" - ? self - : typeof E < "u" - ? E - : typeof jt < "u" - ? jt - : e, - ); - }), - St = y(function (e, t) { - var r = function (n) { - return n && n.Math === Math && n; - }; - t.exports = - r( - (typeof globalThis > "u" ? "undefined" : O(globalThis)) == - "object" && globalThis, - ) || - r((typeof E > "u" ? "undefined" : O(E)) == "object" && E) || - r( - (typeof self > "u" ? "undefined" : O(self)) == "object" && - self, - ) || - r( - (typeof jt > "u" ? "undefined" : O(jt)) == "object" && jt, - ) || - (function () { - return this; - })() || - e || - Function("return this")(); - }), - _t = y(function (e, t) { - t.exports = function (r) { - try { - return !!r(); - } catch { - return !0; - } - }; - }), - Ua = y(function (e, t) { - var r = _t(); - t.exports = !r(function () { - var a = function () {}.bind(); - return ( - typeof a != "function" || a.hasOwnProperty("prototype") - ); - }); - }), - wh = y(function (e, t) { - var r = Ua(), - a = Function.prototype, - n = a.apply, - i = a.call; - t.exports = - ((typeof Reflect > "u" ? "undefined" : O(Reflect)) == - "object" && - Reflect.apply) || - (r - ? i.bind(n) - : function () { - return i.apply(n, arguments); - }); - }), - mt = y(function (e, t) { - var r = Ua(), - a = Function.prototype, - n = a.call, - i = r && a.bind.bind(n, n); - t.exports = r - ? i - : function (o) { - return function () { - return n.apply(o, arguments); - }; - }; - }), - Ei = y(function (e, t) { - var r = mt(), - a = r({}.toString), - n = r("".slice); - t.exports = function (i) { - return n(a(i), 8, -1); - }; - }), - Ds = y(function (e, t) { - var r = Ei(), - a = mt(); - t.exports = function (n) { - if (r(n) === "Function") return a(n); - }; - }), - _s = y(function (e, t) { - var r = - (typeof L > "u" ? "undefined" : O(L)) == "object" && L.all, - a = typeof r > "u" && r !== void 0; - t.exports = { all: r, IS_HTMLDDA: a }; - }), - rt = y(function (e, t) { - var r = _s(), - a = r.all; - t.exports = r.IS_HTMLDDA - ? function (n) { - return typeof n == "function" || n === a; - } - : function (n) { - return typeof n == "function"; - }; - }), - Jt = y(function (e, t) { - var r = _t(); - t.exports = !r(function () { - return ( - Object.defineProperty({}, 1, { - get: function () { - return 7; - }, - })[1] !== 7 - ); - }); - }), - mr = y(function (e, t) { - var r = Ua(), - a = Function.prototype.call; - t.exports = r - ? a.bind(a) - : function () { - return a.apply(a, arguments); - }; - }), - xs = y(function (e) { - var t = {}.propertyIsEnumerable, - r = Object.getOwnPropertyDescriptor, - a = r && !t.call({ 1: 2 }, 1); - e.f = a - ? function (i) { - var o = r(this, i); - return !!o && o.enumerable; - } - : t; - }), - Ga = y(function (e, t) { - t.exports = function (r, a) { - return { - enumerable: !(r & 1), - configurable: !(r & 2), - writable: !(r & 4), - value: a, - }; - }; - }), - Dh = y(function (e, t) { - var r = mt(), - a = _t(), - n = Ei(), - i = Object, - o = r("".split); - t.exports = a(function () { - return !i("z").propertyIsEnumerable(0); - }) - ? function (u) { - return n(u) === "String" ? o(u, "") : i(u); - } - : i; - }), - Ai = y(function (e, t) { - t.exports = function (r) { - return r == null; - }; - }), - Ci = y(function (e, t) { - var r = Ai(), - a = TypeError; - t.exports = function (n) { - if (r(n)) throw new a("Can't call method on " + n); - return n; - }; - }), - ta = y(function (e, t) { - var r = Dh(), - a = Ci(); - t.exports = function (n) { - return r(a(n)); - }; - }), - Sr = y(function (e, t) { - var r = rt(), - a = _s(), - n = a.all; - t.exports = a.IS_HTMLDDA - ? function (i) { - return O(i) == "object" ? i !== null : r(i) || i === n; - } - : function (i) { - return O(i) == "object" ? i !== null : r(i); - }; - }), - ra = y(function (e, t) { - t.exports = {}; - }), - Fi = y(function (e, t) { - var r = ra(), - a = St(), - n = rt(), - i = function (u) { - return n(u) ? u : void 0; - }; - t.exports = function (o, u) { - return arguments.length < 2 - ? i(r[o]) || i(a[o]) - : (r[o] && r[o][u]) || (a[o] && a[o][u]); - }; - }), - _h = y(function (e, t) { - var r = mt(); - t.exports = r({}.isPrototypeOf); - }), - xh = y(function (e, t) { - t.exports = - (typeof navigator < "u" && String(navigator.userAgent)) || ""; - }), - Eh = y(function (e, t) { - var r = St(), - a = xh(), - n = r.process, - i = r.Deno, - o = (n && n.versions) || (i && i.version), - u = o && o.v8, - s, - l; - (u && - ((s = u.split(".")), - (l = s[0] > 0 && s[0] < 4 ? 1 : +(s[0] + s[1]))), - !l && - a && - ((s = a.match(/Edge\/(\d+)/)), - (!s || s[1] >= 74) && - ((s = a.match(/Chrome\/(\d+)/)), s && (l = +s[1]))), - (t.exports = l)); - }), - Es = y(function (e, t) { - var r = Eh(), - a = _t(), - n = St(), - i = n.String; - t.exports = - !!Object.getOwnPropertySymbols && - !a(function () { - var o = Symbol("symbol detection"); - return ( - !i(o) || - !(Object(o) instanceof Symbol) || - (!Symbol.sham && r && r < 41) - ); - }); - }), - As = y(function (e, t) { - var r = Es(); - t.exports = r && !Symbol.sham && O(Symbol.iterator) == "symbol"; - }), - Cs = y(function (e, t) { - var r = Fi(), - a = rt(), - n = _h(), - i = As(), - o = Object; - t.exports = i - ? function (u) { - return O(u) == "symbol"; - } - : function (u) { - var s = r("Symbol"); - return a(s) && n(s.prototype, o(u)); - }; - }), - Fs = y(function (e, t) { - var r = String; - t.exports = function (a) { - try { - return r(a); - } catch { - return "Object"; - } - }; - }), - Wa = y(function (e, t) { - var r = rt(), - a = Fs(), - n = TypeError; - t.exports = function (i) { - if (r(i)) return i; - throw new n(a(i) + " is not a function"); - }; - }), - Ti = y(function (e, t) { - var r = Wa(), - a = Ai(); - t.exports = function (n, i) { - var o = n[i]; - return a(o) ? void 0 : r(o); - }; - }), - Ah = y(function (e, t) { - var r = mr(), - a = rt(), - n = Sr(), - i = TypeError; - t.exports = function (o, u) { - var s, l; - if ( - (u === "string" && - a((s = o.toString)) && - !n((l = r(s, o)))) || - (a((s = o.valueOf)) && !n((l = r(s, o)))) || - (u !== "string" && a((s = o.toString)) && !n((l = r(s, o)))) - ) - return l; - throw new i("Can't convert object to primitive value"); - }; - }), - Ri = y(function (e, t) { - t.exports = !0; - }), - Ch = y(function (e, t) { - var r = St(), - a = Object.defineProperty; - t.exports = function (n, i) { - try { - a(r, n, { value: i, configurable: !0, writable: !0 }); - } catch { - r[n] = i; - } - return i; - }; - }), - Si = y(function (e, t) { - var r = St(), - a = Ch(), - n = "__core-js_shared__", - i = r[n] || a(n, {}); - t.exports = i; - }), - Ts = y(function (e, t) { - var r = Ri(), - a = Si(); - (t.exports = function (n, i) { - return a[n] || (a[n] = i !== void 0 ? i : {}); - })("versions", []).push({ - version: "3.33.0", - mode: r ? "pure" : "global", - copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", - license: - "https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE", - source: "https://github.com/zloirock/core-js", - }); - }), - ki = y(function (e, t) { - var r = Ci(), - a = Object; - t.exports = function (n) { - return a(r(n)); - }; - }), - zt = y(function (e, t) { - var r = mt(), - a = ki(), - n = r({}.hasOwnProperty); - t.exports = - Object.hasOwn || - function (o, u) { - return n(a(o), u); - }; - }), - Rs = y(function (e, t) { - var r = mt(), - a = 0, - n = Math.random(), - i = r((1).toString); - t.exports = function (o) { - return ( - "Symbol(" + (o === void 0 ? "" : o) + ")_" + i(++a + n, 36) - ); - }; - }), - Vt = y(function (e, t) { - var r = St(), - a = Ts(), - n = zt(), - i = Rs(), - o = Es(), - u = As(), - s = r.Symbol, - l = a("wks"), - c = u ? s.for || s : (s && s.withoutSetter) || i; - t.exports = function (d) { - return ( - n(l, d) || (l[d] = o && n(s, d) ? s[d] : c("Symbol." + d)), - l[d] - ); - }; - }), - Fh = y(function (e, t) { - var r = mr(), - a = Sr(), - n = Cs(), - i = Ti(), - o = Ah(), - u = Vt(), - s = TypeError, - l = u("toPrimitive"); - t.exports = function (c, d) { - if (!a(c) || n(c)) return c; - var f = i(c, l), - p; - if (f) { - if ( - (d === void 0 && (d = "default"), - (p = r(f, c, d)), - !a(p) || n(p)) - ) - return p; - throw new s("Can't convert object to primitive value"); - } - return (d === void 0 && (d = "number"), o(c, d)); - }; - }), - Oi = y(function (e, t) { - var r = Fh(), - a = Cs(); - t.exports = function (n) { - var i = r(n, "string"); - return a(i) ? i : i + ""; - }; - }), - Ss = y(function (e, t) { - var r = St(), - a = Sr(), - n = r.document, - i = a(n) && a(n.createElement); - t.exports = function (o) { - return i ? n.createElement(o) : {}; - }; - }), - ks = y(function (e, t) { - var r = Jt(), - a = _t(), - n = Ss(); - t.exports = - !r && - !a(function () { - return ( - Object.defineProperty(n("div"), "a", { - get: function () { - return 7; - }, - }).a !== 7 - ); - }); - }), - Th = y(function (e) { - var t = Jt(), - r = mr(), - a = xs(), - n = Ga(), - i = ta(), - o = Oi(), - u = zt(), - s = ks(), - l = Object.getOwnPropertyDescriptor; - e.f = t - ? l - : function (d, f) { - if (((d = i(d)), (f = o(f)), s)) - try { - return l(d, f); - } catch {} - if (u(d, f)) return n(!r(a.f, d, f), d[f]); - }; - }), - Rh = y(function (e, t) { - var r = _t(), - a = rt(), - n = /#|\.prototype\./, - i = function (d, f) { - var p = u[o(d)]; - return p === l ? !0 : p === s ? !1 : a(f) ? r(f) : !!f; - }, - o = (i.normalize = function (c) { - return String(c).replace(n, ".").toLowerCase(); - }), - u = (i.data = {}), - s = (i.NATIVE = "N"), - l = (i.POLYFILL = "P"); - t.exports = i; - }), - Os = y(function (e, t) { - var r = Ds(), - a = Wa(), - n = Ua(), - i = r(r.bind); - t.exports = function (o, u) { - return ( - a(o), - u === void 0 - ? o - : n - ? i(o, u) - : function () { - return o.apply(u, arguments); - } - ); - }; - }), - Ms = y(function (e, t) { - var r = Jt(), - a = _t(); - t.exports = - r && - a(function () { - return ( - Object.defineProperty(function () {}, "prototype", { - value: 42, - writable: !1, - }).prototype !== 42 - ); - }); - }), - hr = y(function (e, t) { - var r = Sr(), - a = String, - n = TypeError; - t.exports = function (i) { - if (r(i)) return i; - throw new n(a(i) + " is not an object"); - }; - }), - Ya = y(function (e) { - var t = Jt(), - r = ks(), - a = Ms(), - n = hr(), - i = Oi(), - o = TypeError, - u = Object.defineProperty, - s = Object.getOwnPropertyDescriptor, - l = "enumerable", - c = "configurable", - d = "writable"; - e.f = t - ? a - ? function (p, m, h) { - if ( - (n(p), - (m = i(m)), - n(h), - typeof p == "function" && - m === "prototype" && - "value" in h && - d in h && - !h[d]) - ) { - var v = s(p, m); - v && - v[d] && - ((p[m] = h.value), - (h = { - configurable: c in h ? h[c] : v[c], - enumerable: l in h ? h[l] : v[l], - writable: !1, - })); - } - return u(p, m, h); - } - : u - : function (p, m, h) { - if ((n(p), (m = i(m)), n(h), r)) - try { - return u(p, m, h); - } catch {} - if ("get" in h || "set" in h) - throw new o("Accessors not supported"); - return ("value" in h && (p[m] = h.value), p); - }; - }), - aa = y(function (e, t) { - var r = Jt(), - a = Ya(), - n = Ga(); - t.exports = r - ? function (i, o, u) { - return a.f(i, o, n(1, u)); - } - : function (i, o, u) { - return ((i[o] = u), i); - }; - }), - Ka = y(function (e, t) { - var r = St(), - a = wh(), - n = Ds(), - i = rt(), - o = Th().f, - u = Rh(), - s = ra(), - l = Os(), - c = aa(), - d = zt(), - f = function (m) { - var h = function (g, b, D) { - if (this instanceof h) { - switch (arguments.length) { - case 0: - return new m(); - case 1: - return new m(g); - case 2: - return new m(g, b); - } - return new m(g, b, D); - } - return a(m, this, arguments); - }; - return ((h.prototype = m.prototype), h); - }; - t.exports = function (p, m) { - var h = p.target, - v = p.global, - g = p.stat, - b = p.proto, - D = v ? r : g ? r[h] : (r[h] || {}).prototype, - w = v ? s : s[h] || c(s, h, {})[h], - _ = w.prototype, - F, - R, - I, - V, - S, - N, - z, - H, - Q; - for (V in m) - ((F = u(v ? V : h + (g ? "." : "#") + V, p.forced)), - (R = !F && D && d(D, V)), - (N = w[V]), - R && - (p.dontCallGetSet - ? ((Q = o(D, V)), (z = Q && Q.value)) - : (z = D[V])), - (S = R && z ? z : m[V]), - !(R && O(N) == O(S)) && - (p.bind && R - ? (H = l(S, r)) - : p.wrap && R - ? (H = f(S)) - : b && i(S) - ? (H = n(S)) - : (H = S), - (p.sham || (S && S.sham) || (N && N.sham)) && - c(H, "sham", !0), - c(w, V, H), - b && - ((I = h + "Prototype"), - d(s, I) || c(s, I, {}), - c(s[I], V, S), - p.real && _ && (F || !_[V]) && c(_, V, S)))); - }; - }), - Sh = y(function () { - var e = Ka(), - t = zt(); - e({ target: "Object", stat: !0 }, { hasOwn: t }); - }), - kh = y(function (e, t) { - Sh(); - var r = ra(); - t.exports = r.Object.hasOwn; - }), - Oh = y(function (e, t) { - var r = kh(); - t.exports = r; - }), - Mh = y(function (e, t) { - var r = Oh(); - t.exports = r; - }), - Mi = y(function (e, t) { - var r = Ts(), - a = Rs(), - n = r("keys"); - t.exports = function (i) { - return n[i] || (n[i] = a(i)); - }; - }), - Ih = y(function (e, t) { - var r = _t(); - t.exports = !r(function () { - function a() {} - return ( - (a.prototype.constructor = null), - Object.getPrototypeOf(new a()) !== a.prototype - ); - }); - }), - Ii = y(function (e, t) { - var r = zt(), - a = rt(), - n = ki(), - i = Mi(), - o = Ih(), - u = i("IE_PROTO"), - s = Object, - l = s.prototype; - t.exports = o - ? s.getPrototypeOf - : function (c) { - var d = n(c); - if (r(d, u)) return d[u]; - var f = d.constructor; - return a(f) && d instanceof f - ? f.prototype - : d instanceof s - ? l - : null; - }; - }), - Ph = y(function (e, t) { - var r = Math.ceil, - a = Math.floor; - t.exports = - Math.trunc || - function (i) { - var o = +i; - return (o > 0 ? a : r)(o); - }; - }), - Pi = y(function (e, t) { - var r = Ph(); - t.exports = function (a) { - var n = +a; - return n !== n || n === 0 ? 0 : r(n); - }; - }), - Nh = y(function (e, t) { - var r = Pi(), - a = Math.max, - n = Math.min; - t.exports = function (i, o) { - var u = r(i); - return u < 0 ? a(u + o, 0) : n(u, o); - }; - }), - Lh = y(function (e, t) { - var r = Pi(), - a = Math.min; - t.exports = function (n) { - return n > 0 ? a(r(n), 9007199254740991) : 0; - }; - }), - Is = y(function (e, t) { - var r = Lh(); - t.exports = function (a) { - return r(a.length); - }; - }), - Bh = y(function (e, t) { - var r = ta(), - a = Nh(), - n = Is(), - i = function (u) { - return function (s, l, c) { - var d = r(s), - f = n(d), - p = a(c, f), - m; - if (u && l !== l) { - for (; f > p; ) if (((m = d[p++]), m !== m)) return !0; - } else - for (; f > p; p++) - if ((u || p in d) && d[p] === l) return u || p || 0; - return !u && -1; - }; - }; - t.exports = { includes: i(!0), indexOf: i(!1) }; - }), - Ni = y(function (e, t) { - t.exports = {}; - }), - qh = y(function (e, t) { - var r = mt(), - a = zt(), - n = ta(), - i = Bh().indexOf, - o = Ni(), - u = r([].push); - t.exports = function (s, l) { - var c = n(s), - d = 0, - f = [], - p; - for (p in c) !a(o, p) && a(c, p) && u(f, p); - for (; l.length > d; ) - a(c, (p = l[d++])) && (~i(f, p) || u(f, p)); - return f; - }; - }), - Ps = y(function (e, t) { - t.exports = [ - "constructor", - "hasOwnProperty", - "isPrototypeOf", - "propertyIsEnumerable", - "toLocaleString", - "toString", - "valueOf", - ]; - }), - Ns = y(function (e, t) { - var r = qh(), - a = Ps(); - t.exports = - Object.keys || - function (i) { - return r(i, a); - }; - }), - jh = y(function (e, t) { - var r = Jt(), - a = _t(), - n = mt(), - i = Ii(), - o = Ns(), - u = ta(), - s = xs().f, - l = n(s), - c = n([].push), - d = - r && - a(function () { - var p = Object.create(null); - return ((p[2] = 2), !l(p, 2)); - }), - f = function (m) { - return function (h) { - for ( - var v = u(h), - g = o(v), - b = d && i(v) === null, - D = g.length, - w = 0, - _ = [], - F; - D > w; - ) - ((F = g[w++]), - (!r || (b ? F in v : l(v, F))) && - c(_, m ? [F, v[F]] : v[F])); - return _; - }; - }; - t.exports = { entries: f(!0), values: f(!1) }; - }), - zh = y(function () { - var e = Ka(), - t = jh().values; - e( - { target: "Object", stat: !0 }, - { - values: function (a) { - return t(a); - }, - }, - ); - }), - Vh = y(function (e, t) { - zh(); - var r = ra(); - t.exports = r.Object.values; - }), - Hh = y(function (e, t) { - var r = Vh(); - t.exports = r; - }), - $h = y(function (e, t) { - var r = Hh(); - t.exports = r; - }), - Li = y(function (e, t) { - var r = Vt(), - a = r("toStringTag"), - n = {}; - ((n[a] = "z"), (t.exports = String(n) === "[object z]")); - }), - Xa = y(function (e, t) { - var r = Li(), - a = rt(), - n = Ei(), - i = Vt(), - o = i("toStringTag"), - u = Object, - s = - n( - (function () { - return arguments; - })(), - ) === "Arguments", - l = function (d, f) { - try { - return d[f]; - } catch {} - }; - t.exports = r - ? n - : function (c) { - var d, f, p; - return c === void 0 - ? "Undefined" - : c === null - ? "Null" - : typeof (f = l((d = u(c)), o)) == "string" - ? f - : s - ? n(d) - : (p = n(d)) === "Object" && a(d.callee) - ? "Arguments" - : p; - }; - }), - Ls = y(function (e, t) { - var r = Xa(), - a = String; - t.exports = function (n) { - if (r(n) === "Symbol") - throw new TypeError( - "Cannot convert a Symbol value to a string", - ); - return a(n); - }; - }), - Uh = y(function (e, t) { - var r = mt(), - a = Pi(), - n = Ls(), - i = Ci(), - o = r("".charAt), - u = r("".charCodeAt), - s = r("".slice), - l = function (d) { - return function (f, p) { - var m = n(i(f)), - h = a(p), - v = m.length, - g, - b; - return h < 0 || h >= v - ? d - ? "" - : void 0 - : ((g = u(m, h)), - g < 55296 || - g > 56319 || - h + 1 === v || - (b = u(m, h + 1)) < 56320 || - b > 57343 - ? d - ? o(m, h) - : g - : d - ? s(m, h, h + 2) - : ((g - 55296) << 10) + (b - 56320) + 65536); - }; - }; - t.exports = { codeAt: l(!1), charAt: l(!0) }; - }), - Gh = y(function (e, t) { - var r = St(), - a = rt(), - n = r.WeakMap; - t.exports = a(n) && /native code/.test(String(n)); - }), - Wh = y(function (e, t) { - var r = Gh(), - a = St(), - n = Sr(), - i = aa(), - o = zt(), - u = Si(), - s = Mi(), - l = Ni(), - c = "Object already initialized", - d = a.TypeError, - f = a.WeakMap, - p, - m, - h, - v = function (_) { - return h(_) ? m(_) : p(_, {}); - }, - g = function (_) { - return function (F) { - var R; - if (!n(F) || (R = m(F)).type !== _) - throw new d( - "Incompatible receiver, " + _ + " required", - ); - return R; - }; - }; - r || u.state - ? ((b = u.state || (u.state = new f())), - (b.get = b.get), - (b.has = b.has), - (b.set = b.set), - (p = function (_, F) { - if (b.has(_)) throw new d(c); - return ((F.facade = _), b.set(_, F), F); - }), - (m = function (_) { - return b.get(_) || {}; - }), - (h = function (_) { - return b.has(_); - })) - : ((D = s("state")), - (l[D] = !0), - (p = function (_, F) { - if (o(_, D)) throw new d(c); - return ((F.facade = _), i(_, D, F), F); - }), - (m = function (_) { - return o(_, D) ? _[D] : {}; - }), - (h = function (_) { - return o(_, D); - })); - var b, D; - t.exports = { - set: p, - get: m, - has: h, - enforce: v, - getterFor: g, - }; - }), - Yh = y(function (e, t) { - var r = Jt(), - a = zt(), - n = Function.prototype, - i = r && Object.getOwnPropertyDescriptor, - o = a(n, "name"), - u = o && function () {}.name === "something", - s = o && (!r || (r && i(n, "name").configurable)); - t.exports = { EXISTS: o, PROPER: u, CONFIGURABLE: s }; - }), - Kh = y(function (e) { - var t = Jt(), - r = Ms(), - a = Ya(), - n = hr(), - i = ta(), - o = Ns(); - e.f = - t && !r - ? Object.defineProperties - : function (s, l) { - n(s); - for ( - var c = i(l), d = o(l), f = d.length, p = 0, m; - f > p; - ) - a.f(s, (m = d[p++]), c[m]); - return s; - }; - }), - Xh = y(function (e, t) { - var r = Fi(); - t.exports = r("document", "documentElement"); - }), - Bs = y(function (e, t) { - var r = hr(), - a = Kh(), - n = Ps(), - i = Ni(), - o = Xh(), - u = Ss(), - s = Mi(), - l = ">", - c = "<", - d = "prototype", - f = "script", - p = s("IE_PROTO"), - m = function () {}, - h = function (_) { - return c + f + l + _ + c + "/" + f + l; - }, - v = function (_) { - (_.write(h("")), _.close()); - var F = _.parentWindow.Object; - return ((_ = null), F); - }, - g = function () { - var _ = u("iframe"), - F = "java" + f + ":", - R; - return ( - (_.style.display = "none"), - o.appendChild(_), - (_.src = String(F)), - (R = _.contentWindow.document), - R.open(), - R.write(h("document.F=Object")), - R.close(), - R.F - ); - }, - b, - D = function () { - try { - b = new ActiveXObject("htmlfile"); - } catch {} - D = typeof L < "u" ? (L.domain && b ? v(b) : g()) : v(b); - for (var _ = n.length; _--; ) delete D[d][n[_]]; - return D(); - }; - ((i[p] = !0), - (t.exports = - Object.create || - function (_, F) { - var R; - return ( - _ !== null - ? ((m[d] = r(_)), - (R = new m()), - (m[d] = null), - (R[p] = _)) - : (R = D()), - F === void 0 ? R : a.f(R, F) - ); - })); - }), - qs = y(function (e, t) { - var r = aa(); - t.exports = function (a, n, i, o) { - return (o && o.enumerable ? (a[n] = i) : r(a, n, i), a); - }; - }), - js = y(function (e, t) { - var r = _t(), - a = rt(), - n = Sr(), - i = Bs(), - o = Ii(), - u = qs(), - s = Vt(), - l = Ri(), - c = s("iterator"), - d = !1, - f, - p, - m; - [].keys && - ((m = [].keys()), - "next" in m - ? ((p = o(o(m))), p !== Object.prototype && (f = p)) - : (d = !0)); - var h = - !n(f) || - r(function () { - var v = {}; - return f[c].call(v) !== v; - }); - (h ? (f = {}) : l && (f = i(f)), - a(f[c]) || - u(f, c, function () { - return this; - }), - (t.exports = { - IteratorPrototype: f, - BUGGY_SAFARI_ITERATORS: d, - })); - }), - Zh = y(function (e, t) { - var r = Li(), - a = Xa(); - t.exports = r - ? {}.toString - : function () { - return "[object " + a(this) + "]"; - }; - }), - zs = y(function (e, t) { - var r = Li(), - a = Ya().f, - n = aa(), - i = zt(), - o = Zh(), - u = Vt(), - s = u("toStringTag"); - t.exports = function (l, c, d, f) { - if (l) { - var p = d ? l : l.prototype; - (i(p, s) || a(p, s, { configurable: !0, value: c }), - f && !r && n(p, "toString", o)); - } - }; - }), - Za = y(function (e, t) { - t.exports = {}; - }), - Jh = y(function (e, t) { - var r = js().IteratorPrototype, - a = Bs(), - n = Ga(), - i = zs(), - o = Za(), - u = function () { - return this; - }; - t.exports = function (s, l, c, d) { - var f = l + " Iterator"; - return ( - (s.prototype = a(r, { next: n(+!d, c) })), - i(s, f, !1, !0), - (o[f] = u), - s - ); - }; - }), - Qh = y(function (e, t) { - var r = mt(), - a = Wa(); - t.exports = function (n, i, o) { - try { - return r(a(Object.getOwnPropertyDescriptor(n, i)[o])); - } catch {} - }; - }), - ev = y(function (e, t) { - var r = rt(), - a = String, - n = TypeError; - t.exports = function (i) { - if (O(i) == "object" || r(i)) return i; - throw new n("Can't set " + a(i) + " as a prototype"); - }; - }), - tv = y(function (e, t) { - var r = Qh(), - a = hr(), - n = ev(); - t.exports = - Object.setPrototypeOf || - ("__proto__" in {} - ? (function () { - var i = !1, - o = {}, - u; - try { - ((u = r(Object.prototype, "__proto__", "set")), - u(o, []), - (i = o instanceof Array)); - } catch {} - return function (l, c) { - return ( - a(l), - n(c), - i ? u(l, c) : (l.__proto__ = c), - l - ); - }; - })() - : void 0); - }), - rv = y(function (e, t) { - var r = Ka(), - a = mr(), - n = Ri(), - i = Yh(), - o = rt(), - u = Jh(), - s = Ii(), - l = tv(), - c = zs(), - d = aa(), - f = qs(), - p = Vt(), - m = Za(), - h = js(), - v = i.PROPER, - g = i.CONFIGURABLE, - b = h.IteratorPrototype, - D = h.BUGGY_SAFARI_ITERATORS, - w = p("iterator"), - _ = "keys", - F = "values", - R = "entries", - I = function () { - return this; - }; - t.exports = function (V, S, N, z, H, Q, ie) { - u(N, S, z); - var Y = function (pe) { - if (pe === H && U) return U; - if (!D && pe && pe in Z) return Z[pe]; - switch (pe) { - case _: - return function () { - return new N(this, pe); - }; - case F: - return function () { - return new N(this, pe); - }; - case R: - return function () { - return new N(this, pe); - }; - } - return function () { - return new N(this); - }; - }, - te = S + " Iterator", - B = !1, - Z = V.prototype, - A = Z[w] || Z["@@iterator"] || (H && Z[H]), - U = (!D && A) || Y(H), - P = (S === "Array" && Z.entries) || A, - G, - ae, - W; - if ( - (P && - ((G = s(P.call(new V()))), - G !== Object.prototype && - G.next && - (!n && - s(G) !== b && - (l ? l(G, b) : o(G[w]) || f(G, w, I)), - c(G, te, !0, !0), - n && (m[te] = I))), - v && - H === F && - A && - A.name !== F && - (!n && g - ? d(Z, "name", F) - : ((B = !0), - (U = function () { - return a(A, this); - }))), - H) - ) - if ( - ((ae = { - values: Y(F), - keys: Q ? U : Y(_), - entries: Y(R), - }), - ie) - ) - for (W in ae) (D || B || !(W in Z)) && f(Z, W, ae[W]); - else r({ target: S, proto: !0, forced: D || B }, ae); - return ( - (!n || ie) && Z[w] !== U && f(Z, w, U, { name: H }), - (m[S] = U), - ae - ); - }; - }), - av = y(function (e, t) { - t.exports = function (r, a) { - return { value: r, done: a }; - }; - }), - nv = y(function () { - var e = Uh().charAt, - t = Ls(), - r = Wh(), - a = rv(), - n = av(), - i = "String Iterator", - o = r.set, - u = r.getterFor(i); - a( - String, - "String", - function (s) { - o(this, { type: i, string: t(s), index: 0 }); - }, - function () { - var l = u(this), - c = l.string, - d = l.index, - f; - return d >= c.length - ? n(void 0, !0) - : ((f = e(c, d)), (l.index += f.length), n(f, !1)); - }, - ); - }), - iv = y(function (e, t) { - var r = mr(), - a = hr(), - n = Ti(); - t.exports = function (i, o, u) { - var s, l; - a(i); - try { - if (((s = n(i, "return")), !s)) { - if (o === "throw") throw u; - return u; - } - s = r(s, i); - } catch (c) { - ((l = !0), (s = c)); - } - if (o === "throw") throw u; - if (l) throw s; - return (a(s), u); - }; - }), - ov = y(function (e, t) { - var r = hr(), - a = iv(); - t.exports = function (n, i, o, u) { - try { - return u ? i(r(o)[0], o[1]) : i(o); - } catch (s) { - a(n, "throw", s); - } - }; - }), - uv = y(function (e, t) { - var r = Vt(), - a = Za(), - n = r("iterator"), - i = Array.prototype; - t.exports = function (o) { - return o !== void 0 && (a.Array === o || i[n] === o); - }; - }), - sv = y(function (e, t) { - var r = mt(), - a = rt(), - n = Si(), - i = r(Function.toString); - (a(n.inspectSource) || - (n.inspectSource = function (o) { - return i(o); - }), - (t.exports = n.inspectSource)); - }), - lv = y(function (e, t) { - var r = mt(), - a = _t(), - n = rt(), - i = Xa(), - o = Fi(), - u = sv(), - s = function () {}, - l = [], - c = o("Reflect", "construct"), - d = /^\s*(?:class|function)\b/, - f = r(d.exec), - p = !d.test(s), - m = function (g) { - if (!n(g)) return !1; - try { - return (c(s, l, g), !0); - } catch { - return !1; - } - }, - h = function (g) { - if (!n(g)) return !1; - switch (i(g)) { - case "AsyncFunction": - case "GeneratorFunction": - case "AsyncGeneratorFunction": - return !1; - } - try { - return p || !!f(d, u(g)); - } catch { - return !0; - } - }; - ((h.sham = !0), - (t.exports = - !c || - a(function () { - var v; - return ( - m(m.call) || - !m(Object) || - !m(function () { - v = !0; - }) || - v - ); - }) - ? h - : m)); - }), - cv = y(function (e, t) { - var r = Oi(), - a = Ya(), - n = Ga(); - t.exports = function (i, o, u) { - var s = r(o); - s in i ? a.f(i, s, n(0, u)) : (i[s] = u); - }; - }), - Vs = y(function (e, t) { - var r = Xa(), - a = Ti(), - n = Ai(), - i = Za(), - o = Vt(), - u = o("iterator"); - t.exports = function (s) { - if (!n(s)) return a(s, u) || a(s, "@@iterator") || i[r(s)]; - }; - }), - dv = y(function (e, t) { - var r = mr(), - a = Wa(), - n = hr(), - i = Fs(), - o = Vs(), - u = TypeError; - t.exports = function (s, l) { - var c = arguments.length < 2 ? o(s) : l; - if (a(c)) return n(r(c, s)); - throw new u(i(s) + " is not iterable"); - }; - }), - fv = y(function (e, t) { - var r = Os(), - a = mr(), - n = ki(), - i = ov(), - o = uv(), - u = lv(), - s = Is(), - l = cv(), - c = dv(), - d = Vs(), - f = Array; - t.exports = function (m) { - var h = n(m), - v = u(this), - g = arguments.length, - b = g > 1 ? arguments[1] : void 0, - D = b !== void 0; - D && (b = r(b, g > 2 ? arguments[2] : void 0)); - var w = d(h), - _ = 0, - F, - R, - I, - V, - S, - N; - if (w && !(this === f && o(w))) - for ( - V = c(h, w), S = V.next, R = v ? new this() : []; - !(I = a(S, V)).done; - _++ - ) - ((N = D ? i(V, b, [I.value, _], !0) : I.value), - l(R, _, N)); - else - for (F = s(h), R = v ? new this(F) : f(F); F > _; _++) - ((N = D ? b(h[_], _) : h[_]), l(R, _, N)); - return ((R.length = _), R); - }; - }), - pv = y(function (e, t) { - var r = Vt(), - a = r("iterator"), - n = !1; - try { - ((i = 0), - (o = { - next: function () { - return { done: !!i++ }; - }, - return: function () { - n = !0; - }, - }), - (o[a] = function () { - return this; - }), - Array.from(o, function () { - throw 2; - })); - } catch {} - var i, o; - t.exports = function (u, s) { - try { - if (!s && !n) return !1; - } catch { - return !1; - } - var l = !1; - try { - var c = {}; - ((c[a] = function () { - return { - next: function () { - return { done: (l = !0) }; - }, - }; - }), - u(c)); - } catch {} - return l; - }; - }), - mv = y(function () { - var e = Ka(), - t = fv(), - r = pv(), - a = !r(function (n) { - Array.from(n); - }); - e({ target: "Array", stat: !0, forced: a }, { from: t }); - }), - hv = y(function (e, t) { - (nv(), mv()); - var r = ra(); - t.exports = r.Array.from; - }), - vv = y(function (e, t) { - var r = hv(); - t.exports = r; - }), - Hs = y(function (e, t) { - var r = vv(); - t.exports = r; - }), - $s = y(function (e, t) { - (function () { - var r = { - name: "doT", - version: "1.1.1", - templateSettings: { - evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g, - interpolate: /\{\{=([\s\S]+?)\}\}/g, - encode: /\{\{!([\s\S]+?)\}\}/g, - use: /\{\{#([\s\S]+?)\}\}/g, - useParams: - /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g, - define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g, - defineParams: /^\s*([\w$]+):([\s\S]+)/, - conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g, - iterate: - /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g, - varname: "it", - strip: !0, - append: !0, - selfcontained: !1, - doNotSkipEncoded: !1, - }, - template: void 0, - compile: void 0, - log: !0, - }; - ((function () { - if ( - (typeof globalThis > "u" - ? "undefined" - : O(globalThis)) !== "object" - ) - try { - (Object.defineProperty(Object.prototype, "__magic__", { - get: function () { - return this; - }, - configurable: !0, - }), - (__magic__.globalThis = __magic__), - delete Object.prototype.__magic__); - } catch { - E.globalThis = (function () { - if (typeof self < "u") return self; - if (typeof E < "u") return E; - if (typeof jt < "u") return jt; - if (typeof this < "u") return this; - throw new Error("Unable to locate global `this`"); - })(); - } - })(), - (r.encodeHTMLSource = function (u) { - var s = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'", - "/": "/", - }, - l = u ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g; - return function (c) { - return c - ? c.toString().replace(l, function (d) { - return s[d] || d; - }) - : ""; - }; - }), - typeof t < "u" && t.exports - ? (t.exports = r) - : (globalThis.doT = r)); - var a = { - append: { - start: "'+(", - end: ")+'", - startencode: "'+encodeHTML(", - }, - split: { - start: "';out+=(", - end: ");out+='", - startencode: "';out+=encodeHTML(", - }, - }, - n = /$^/; - function i(u, s, l) { - return (typeof s == "string" ? s : s.toString()) - .replace(u.define || n, function (c, d, f, p) { - return ( - d.indexOf("def.") === 0 && (d = d.substring(4)), - d in l || - (f === ":" - ? (u.defineParams && - p.replace(u.defineParams, function (m, h, v) { - l[d] = { arg: h, text: v }; - }), - d in l || (l[d] = p)) - : new Function("def", "def['" + d + "']=" + p)( - l, - )), - "" - ); - }) - .replace(u.use || n, function (c, d) { - u.useParams && - (d = d.replace(u.useParams, function (p, m, h, v) { - if (l[h] && l[h].arg && v) { - var g = (h + ":" + v).replace(/'|\\/g, "_"); - return ( - (l.__exp = l.__exp || {}), - (l.__exp[g] = l[h].text.replace( - new RegExp( - "(^|[^\\w$])" + l[h].arg + "([^\\w$])", - "g", - ), - "$1" + v + "$2", - )), - m + "def.__exp['" + g + "']" - ); - } - })); - var f = new Function("def", "return " + d)(l); - return f && i(u, f, l); - }); - } - function o(u) { - return u - .replace(/\\('|\\)/g, "$1") - .replace(/[\r\t\n]/g, " "); - } - ((r.template = function (u, s, l) { - s = s || r.templateSettings; - var c = s.append ? a.append : a.split, - d, - f = 0, - p, - m = s.use || s.define ? i(s, u, l || {}) : u; - ((m = ( - "var out='" + - (s.strip - ? m - .replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, " ") - .replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, "") - : m - ) - .replace(/'|\\/g, "\\$&") - .replace(s.interpolate || n, function (h, v) { - return c.start + o(v) + c.end; - }) - .replace(s.encode || n, function (h, v) { - return ((d = !0), c.startencode + o(v) + c.end); - }) - .replace(s.conditional || n, function (h, v, g) { - return v - ? g - ? "';}else if(" + o(g) + "){out+='" - : "';}else{out+='" - : g - ? "';if(" + o(g) + "){out+='" - : "';}out+='"; - }) - .replace(s.iterate || n, function (h, v, g, b) { - return v - ? ((f += 1), - (p = b || "i" + f), - (v = o(v)), - "';var arr" + - f + - "=" + - v + - ";if(arr" + - f + - "){var " + - g + - "," + - p + - "=-1,l" + - f + - "=arr" + - f + - ".length-1;while(" + - p + - "", - sameOrigin: "", - }; - (gv.forEach(function (e) { - var t = e.name, - r = e.value, - a = e.priority, - n = e.group; - ((xt[t] = r), - (xt[t + "_PRIO"] = a), - (xt[t + "_GROUP"] = n), - (xt.results[a] = r), - (xt.resultGroups[a] = n), - (xt.resultGroupMap[r] = n)); - }), - Object.freeze(xt.results), - Object.freeze(xt.resultGroups), - Object.freeze(xt.resultGroupMap), - Object.freeze(xt)); - var se = xt; - function bv() { - (typeof console > "u" ? "undefined" : O(console)) === "object" && - console.log && - Function.prototype.apply.call(console.log, console, arguments); - } - var vr = bv, - yv = /[\t\r\n\f]/g, - wv = (function () { - function e() { - (Tt(this, e), (this.parent = void 0)); - } - return Rt(e, [ - { - key: "props", - get: function () { - throw new Error( - 'VirtualNode class must have a "props" object consisting of "nodeType" and "nodeName" properties', - ); - }, - }, - { - key: "attrNames", - get: function () { - throw new Error( - 'VirtualNode class must have an "attrNames" property', - ); - }, - }, - { - key: "attr", - value: function () { - throw new Error( - 'VirtualNode class must have an "attr" function', - ); - }, - }, - { - key: "hasAttr", - value: function () { - throw new Error( - 'VirtualNode class must have a "hasAttr" function', - ); - }, - }, - { - key: "hasClass", - value: function (r) { - var a = this.attr("class"); - if (!a) return !1; - var n = " " + r + " "; - return (" " + a + " ").replace(yv, " ").indexOf(n) >= 0; - }, - }, - ]); - })(), - $e = wv, - Bi = {}; - Dt(Bi, { - DqElement: function () { - return Ht; - }, - aggregate: function () { - return Ja; - }, - aggregateChecks: function () { - return Ws; - }, - aggregateNodeResults: function () { - return Ys; - }, - aggregateResult: function () { - return Ks; - }, - areStylesSet: function () { - return Fv; - }, - assert: function () { - return me; - }, - checkHelper: function () { - return $i; - }, - clone: function () { - return $t; - }, - closest: function () { - return ut; - }, - collectResultsFromFrames: function () { - return Cl; - }, - contains: function () { - return Ut; - }, - convertSelector: function () { - return nn; - }, - cssParser: function () { - return ol; - }, - deepMerge: function () { - return no; - }, - escapeSelector: function () { - return Oe; - }, - extendMetaData: function () { - return io; - }, - filterHtmlAttrs: function () { - return X1; - }, - finalizeRuleResult: function () { - return na; - }, - findBy: function () { - return fa; - }, - getAllChecks: function () { - return cn; - }, - getAncestry: function () { - return an; - }, - getBaseLang: function () { - return Fr; - }, - getCheckMessage: function () { - return Yw; - }, - getCheckOption: function () { - return Xn; - }, - getEnvironmentData: function () { - return ur; - }, - getFlattenedTree: function () { - return hu; - }, - getFrameContexts: function () { - return dD; - }, - getFriendlyUriEnd: function () { - return Js; - }, - getNodeAttributes: function () { - return en; - }, - getNodeFromTree: function () { - return le; - }, - getPreloadConfig: function () { - return G1; - }, - getRootNode: function () { - return pa; - }, - getRule: function () { - return S1; - }, - getScroll: function () { - return Yt; - }, - getScrollState: function () { - return mD; - }, - getSelector: function () { - return Hi; - }, - getSelectorData: function () { - return rn; - }, - getShadowSelector: function () { - return ji; - }, - getStandards: function () { - return hD; - }, - getStyleSheetFactory: function () { - return M1; - }, - getXpath: function () { - return nl; - }, - injectStyle: function () { - return bD; - }, - isArrayLike: function () { - return wu; - }, - isContextObject: function () { - return Du; - }, - isContextProp: function () { - return Jn; - }, - isContextSpec: function () { - return I1; - }, - isHidden: function () { - return yD; - }, - isHtmlElement: function () { - return xu; - }, - isLabelledFramesSelector: function () { - return _u; - }, - isLabelledShadowDomSelector: function () { - return Qn; - }, - isNodeInContext: function () { - return Eu; - }, - isShadowRoot: function () { - return fn; - }, - isValidLang: function () { - return ri; - }, - isXHTML: function () { - return tn; - }, - matchAncestry: function () { - return Au; - }, - matches: function () { - return Gi; - }, - matchesExpression: function () { - return Or; - }, - matchesSelector: function () { - return kr; - }, - memoize: function () { - return Fe; - }, - mergeResults: function () { - return dn; - }, - nodeLookup: function () { - return we; - }, - nodeSerializer: function () { - return ht; - }, - nodeSorter: function () { - return Cu; - }, - objectHasOwn: function () { - return Nt; - }, - parseCrossOriginStylesheet: function () { - return Tu; - }, - parseSameOriginStylesheet: function () { - return L1; - }, - parseStylesheet: function () { - return Fu; - }, - parseTabindex: function () { - return Lt; - }, - performanceTimer: function () { - return ve; - }, - pollyfillElementsFromPoint: function () { - return B1; - }, - preload: function () { - return $1; - }, - preloadCssom: function () { - return j1; - }, - preloadMedia: function () { - return H1; - }, - processMessage: function () { - return yu; - }, - publishMetaData: function () { - return ei; - }, - querySelectorAll: function () { - return ft; - }, - querySelectorAllFilter: function () { - return Bt; - }, - queue: function () { - return kt; - }, - respondable: function () { - return Et; - }, - ruleShouldRun: function () { - return K1; - }, - select: function () { - return Ru; - }, - sendCommandToFrame: function () { - return _l; - }, - setScrollState: function () { - return ZD; - }, - shadowSelect: function () { - return JD; - }, - shadowSelectAll: function () { - return Su; - }, - shouldPreload: function () { - return U1; - }, - toArray: function () { - return Zs; - }, - tokenList: function () { - return Ze; - }, - uniqueArray: function () { - return Ia; - }, - uuid: function () { - return yg; - }, - validInputTypes: function () { - return ti; - }, - validLangs: function () { - return tf; - }, - }); - function Dv(e, t, r) { - ((t = t.slice()), r && t.push(r)); - var a = t - .map(function (n) { - return e.indexOf(n); - }) - .sort(); - return e[a.pop()]; - } - var Ja = Dv, - _v = se.CANTTELL_PRIO, - xv = se.FAIL_PRIO, - Qa = []; - ((Qa[se.PASS_PRIO] = !0), - (Qa[se.CANTTELL_PRIO] = null), - (Qa[se.FAIL_PRIO] = !1)); - var Us = ["any", "all", "none"]; - function Gs(e, t) { - return Us.reduce(function (r, a) { - return ( - (r[a] = (e[a] || []).map(function (n) { - return t(n, a); - })), - r - ); - }, {}); - } - function Ev(e) { - var t = Object.assign({}, e); - Gs(t, function (n, i) { - var o = typeof n.result > "u" ? -1 : Qa.indexOf(n.result); - ((n.priority = o !== -1 ? o : se.CANTTELL_PRIO), - i === "none" && - (n.priority === se.PASS_PRIO - ? (n.priority = se.FAIL_PRIO) - : n.priority === se.FAIL_PRIO && - (n.priority = se.PASS_PRIO))); - }); - var r = { - all: t.all.reduce(function (n, i) { - return Math.max(n, i.priority); - }, 0), - none: t.none.reduce(function (n, i) { - return Math.max(n, i.priority); - }, 0), - any: - t.any.reduce(function (n, i) { - return Math.min(n, i.priority); - }, 4) % 4, - }; - t.priority = Math.max(r.all, r.none, r.any); - var a = []; - return ( - Us.forEach(function (n) { - ((t[n] = t[n].filter(function (i) { - return i.priority === t.priority && i.priority === r[n]; - })), - t[n].forEach(function (i) { - return a.push(i.impact); - })); - }), - [_v, xv].includes(t.priority) - ? (t.impact = Ja(se.impact, a)) - : (t.impact = null), - Gs(t, function (n) { - (delete n.result, delete n.priority); - }), - (t.result = se.results[t.priority]), - delete t.priority, - t - ); - } - var Ws = Ev; - function na(e) { - var t = x._audit.rules.find(function (r) { - var a = r.id; - return a === e.id; - }); - return ( - t && - t.impact && - e.nodes.forEach(function (r) { - ["any", "all", "none"].forEach(function (a) { - (r[a] || []).forEach(function (n) { - n.impact = t.impact; - }); - }); - }), - Object.assign(e, Ys(e.nodes)), - delete e.nodes, - e - ); - } - function Av(e) { - var t = {}; - if ( - ((e = e.map(function (i) { - if (i.any && i.all && i.none) return Ws(i); - if (Array.isArray(i.node)) return na(i); - throw new TypeError("Invalid Result type"); - })), - e && e.length) - ) { - var r = e.map(function (i) { - return i.result; - }); - t.result = Ja(se.results, r, t.result); - } else t.result = "inapplicable"; - (se.resultGroups.forEach(function (i) { - return (t[i] = []); - }), - e.forEach(function (i) { - var o = se.resultGroupMap[i.result]; - t[o].push(i); - })); - var a = se.FAIL_GROUP; - if ( - (t[a].length === 0 && (a = se.CANTTELL_GROUP), t[a].length > 0) - ) { - var n = t[a].map(function (i) { - return i.impact; - }); - t.impact = Ja(se.impact, n) || null; - } else t.impact = null; - return t; - } - var Ys = Av; - function qi(e, t, r) { - var a = Object.assign({}, t); - ((a.nodes = (a[r] || []).concat()), - se.resultGroups.forEach(function (n) { - delete a[n]; - }), - e[r].push(a)); - } - function Cv(e) { - var t = {}; - return ( - se.resultGroups.forEach(function (r) { - return (t[r] = []); - }), - e.forEach(function (r) { - r.error - ? qi(t, r, se.CANTTELL_GROUP) - : r.result === se.NA - ? qi(t, r, se.NA_GROUP) - : se.resultGroups.forEach(function (a) { - Array.isArray(r[a]) && r[a].length > 0 && qi(t, r, a); - }); - }), - t - ); - } - var Ks = Cv; - function Xs(e, t, r) { - var a = E.getComputedStyle(e, null); - if (!a) return !1; - for (var n = 0; n < t.length; ++n) { - var i = t[n]; - if (a.getPropertyValue(i.property) === i.value) return !0; - } - return !e.parentNode || - e.nodeName.toUpperCase() === r.toUpperCase() - ? !1 - : Xs(e.parentNode, t, r); - } - var Fv = Xs; - function Tv(e, t) { - if (!e) throw new Error(t); - } - var me = Tv; - function Rv(e) { - return Array.prototype.slice.call(e); - } - var Zs = Rv; - function Sv(e) { - for ( - var t = String(e), - r = t.length, - a = -1, - n, - i = "", - o = t.charCodeAt(0); - ++a < r; - ) { - if (((n = t.charCodeAt(a)), n == 0)) { - i += "�"; - continue; - } - if ( - (n >= 1 && n <= 31) || - n == 127 || - (a == 0 && n >= 48 && n <= 57) || - (a == 1 && n >= 48 && n <= 57 && o == 45) - ) { - i += "\\" + n.toString(16) + " "; - continue; - } - if (a == 0 && r == 1 && n == 45) { - i += "\\" + t.charAt(a); - continue; - } - if ( - n >= 128 || - n == 45 || - n == 95 || - (n >= 48 && n <= 57) || - (n >= 65 && n <= 90) || - (n >= 97 && n <= 122) - ) { - i += t.charAt(a); - continue; - } - i += "\\" + t.charAt(a); - } - return i; - } - var Oe = Sv; - function kv() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : ""; - return ( - e.length !== 0 && - (e.match(/[0-9]/g) || "").length >= e.length / 2 - ); - } - function ia(e, t) { - return [e.substring(0, t), e.substring(t)]; - } - function oa(e) { - return e.replace(/\s+$/, ""); - } - function Ov(e) { - var t = e, - r = "", - a = "", - n = "", - i = "", - o = "", - u = ""; - if (e.includes("#")) { - var s = ia(e, e.indexOf("#")), - l = $(s, 2); - ((e = l[0]), (u = l[1])); - } - if (e.includes("?")) { - var c = ia(e, e.indexOf("?")), - d = $(c, 2); - ((e = d[0]), (o = d[1])); - } - if (e.includes("://")) { - var f = e.split("://"), - p = $(f, 2); - ((r = p[0]), (e = p[1])); - var m = ia(e, e.indexOf("/")), - h = $(m, 2); - ((a = h[0]), (e = h[1])); - } else if (e.substr(0, 2) === "//") { - e = e.substr(2); - var v = ia(e, e.indexOf("/")), - g = $(v, 2); - ((a = g[0]), (e = g[1])); - } - if ( - (a.substr(0, 4) === "www." && (a = a.substr(4)), - a && a.includes(":")) - ) { - var b = ia(a, a.indexOf(":")), - D = $(b, 2); - ((a = D[0]), (n = D[1])); - } - return ( - (i = e), - { - original: t, - protocol: r, - domain: a, - port: n, - path: i, - query: o, - hash: u, - } - ); - } - function Mv() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : "", - t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}; - if ( - !( - e.length <= 1 || - e.substr(0, 5) === "data:" || - e.substr(0, 11) === "javascript:" || - e.includes("?") - ) - ) { - var r = t.currentDomain, - a = t.maxLength, - n = a === void 0 ? 25 : a, - i = Ov(e), - o = i.path, - u = i.domain, - s = i.hash, - l = o.substr(o.substr(0, o.length - 2).lastIndexOf("/") + 1); - if (s) - return l && (l + s).length <= n - ? oa(l + s) - : l.length < 2 && s.length > 2 && s.length <= n - ? oa(s) - : void 0; - if ( - (u && u.length < n && o.length <= 1) || - (o === "/" + l && u && r && u !== r && (u + o).length <= n) - ) - return oa(u + o); - var c = l.lastIndexOf("."); - if ( - (c === -1 || c > 1) && - (c !== -1 || l.length > 2) && - l.length <= n && - !l.match(/index(\.[a-zA-Z]{2-4})?/) && - !kv(l) - ) - return oa(l); - } - } - var Js = Mv; - function Iv(e) { - return e.attributes instanceof E.NamedNodeMap - ? e.attributes - : e.cloneNode(!1).attributes; - } - var en = Iv, - Pv = (function () { - var e; - function t(r) { - var a = [ - "matches", - "matchesSelector", - "mozMatchesSelector", - "webkitMatchesSelector", - "msMatchesSelector", - ], - n = a.length, - i, - o; - for (i = 0; i < n; i++) if (((o = a[i]), r[o])) return o; - } - return function (r, a) { - return ((!e || !r[e]) && (e = t(r)), r[e] ? r[e](a) : !1); - }; - })(), - kr = Pv, - Nv = ot(bs()); - x._memoizedFns = []; - function Lv(e) { - var t = (0, Nv.default)(e); - return (x._memoizedFns.push(t), t); - } - var Fe = Lv, - Bv = Fe(function (e) { - return e != null && e.createElement - ? e.createElement("A").localName === "A" - : !1; - }), - tn = Bv; - function ji(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}; - if (!t) return ""; - var a = (t.getRootNode && t.getRootNode()) || L; - if (a.nodeType !== 11) return e(t, r, a); - for (var n = []; a.nodeType === 11; ) { - if (!a.host) return ""; - (n.unshift({ elm: t, doc: a }), - (t = a.host), - (a = t.getRootNode())); - } - return ( - n.unshift({ elm: t, doc: a }), - n.map(function (i) { - return e(i.elm, r, i.doc); - }) - ); - } - var qv = [ - "class", - "style", - "id", - "selected", - "checked", - "disabled", - "tabindex", - "aria-checked", - "aria-selected", - "aria-invalid", - "aria-activedescendant", - "aria-busy", - "aria-disabled", - "aria-expanded", - "aria-grabbed", - "aria-pressed", - "aria-valuenow", - "xmlns", - ], - jv = 31, - zv = /([\\"])/g, - Vv = /(\r\n|\r|\n)/g; - function zi(e) { - return e.replace(zv, "\\$1").replace(Vv, "\\a "); - } - function Qs(e, t) { - var r = t.name, - a; - if (r.indexOf("href") !== -1 || r.indexOf("src") !== -1) { - var n = Js(e.getAttribute(r)); - n - ? (a = Oe(t.name) + '$="' + zi(n) + '"') - : (a = Oe(t.name) + '="' + zi(e.getAttribute(r)) + '"'); - } else a = Oe(r) + '="' + zi(t.value) + '"'; - return a; - } - function Vi(e, t) { - return e.count < t.count ? -1 : e.count === t.count ? 0 : 1; - } - function el(e) { - return ( - !qv.includes(e.name) && - e.name.indexOf(":") === -1 && - (!e.value || e.value.length < jv) - ); - } - function rn(e) { - var t = { classes: {}, tags: {}, attributes: {} }; - e = Array.isArray(e) ? e : [e]; - for ( - var r = e.slice(), - a = [], - n = function () { - var o = r.pop(), - u = o.actualNode; - if (u.querySelectorAll) { - var s = u.nodeName; - (t.tags[s] ? t.tags[s]++ : (t.tags[s] = 1), - u.classList && - Array.from(u.classList).forEach(function (l) { - var c = Oe(l); - t.classes[c] ? t.classes[c]++ : (t.classes[c] = 1); - }), - u.hasAttributes() && - Array.from(en(u)) - .filter(el) - .forEach(function (l) { - var c = Qs(u, l); - c && - (t.attributes[c] - ? t.attributes[c]++ - : (t.attributes[c] = 1)); - })); - } - for ( - o.children.length && - (a.push(r), (r = o.children.slice())); - !r.length && a.length; - ) - r = a.pop(); - }; - r.length; - ) - n(); - return t; - } - function Hv(e, t) { - var r = [], - a = t.classes, - n = t.tags; - return ( - e.classList && - Array.from(e.classList).forEach(function (i) { - var o = Oe(i); - a[o] < n[e.nodeName] && - r.push({ name: o, count: a[o], species: "class" }); - }), - r.sort(Vi) - ); - } - function $v(e, t) { - var r = - (e.parentNode && Array.from(e.parentNode.children || "")) || - [], - a = r.find(function (i) { - return i !== e && kr(i, t); - }); - if (a) { - var n = 1 + r.indexOf(e); - return ":nth-child(" + n + ")"; - } else return ""; - } - function Uv(e) { - if (e.getAttribute("id")) { - var t = (e.getRootNode && e.getRootNode()) || L, - r = "#" + Oe(e.getAttribute("id") || ""); - if ( - !r.match(/player_uid_/) && - t.querySelectorAll(r).length === 1 - ) - return r; - } - } - function tl(e) { - var t = tn(L); - return Oe(t ? e.localName : e.nodeName.toLowerCase()); - } - function Gv(e, t) { - var r = [], - a = t.attributes, - n = t.tags; - return ( - e.hasAttributes() && - Array.from(en(e)) - .filter(el) - .forEach(function (i) { - var o = Qs(e, i); - o && - a[o] < n[e.nodeName] && - r.push({ name: o, count: a[o], species: "attribute" }); - }), - r.sort(Vi) - ); - } - function Wv(e, t) { - var r = "", - a, - n = Hv(e, t), - i = Gv(e, t); - return ( - n.length && n[0].count === 1 - ? (a = [n[0]]) - : i.length && i[0].count === 1 - ? ((a = [i[0]]), (r = tl(e))) - : ((a = n.concat(i)), - a.sort(Vi), - (a = a.slice(0, 3)), - a.some(function (o) { - return o.species === "class"; - }) - ? a.sort(function (o, u) { - return o.species !== u.species && - o.species === "class" - ? -1 - : o.species === u.species - ? 0 - : 1; - }) - : (r = tl(e))), - (r += a.reduce(function (o, u) { - switch (u.species) { - case "class": - return o + "." + u.name; - case "attribute": - return o + "[" + u.name + "]"; - } - return o; - }, "")) - ); - } - function Yv(e, t, r) { - if (!x._selectorData) - throw new Error("Expect axe._selectorData to be set up"); - var a = t.toRoot, - n = a === void 0 ? !1 : a, - i, - o; - do { - var u = Uv(e); - (u || ((u = Wv(e, x._selectorData)), (u += $v(e, u))), - i ? (i = u + " > " + i) : (i = u), - !o || o.length > se.selectorSimilarFilterLimit - ? (o = Xv(r, i)) - : (o = o.filter(function (s) { - return kr(s, i); - })), - (e = e.parentElement)); - } while ((o.length > 1 || n) && e && e.nodeType !== 11); - return o.length === 1 - ? i - : i.indexOf(" > ") !== -1 - ? ":root" + i.substring(i.indexOf(" > ")) - : ":root"; - } - function Kv(e, t) { - return ji(Yv, e, t); - } - var Hi = Fe(Kv), - Xv = Fe(function (e, t) { - return Array.from(e.querySelectorAll(t)); - }); - function rl(e) { - var t = e.nodeName.toLowerCase(), - r = e.parentElement, - a = e.parentNode, - n = ""; - if (t !== "head" && t !== "body" && a?.children.length > 1) { - var i = Array.prototype.indexOf.call(a.children, e) + 1; - n = ":nth-child(".concat(i, ")"); - } - return r ? rl(r) + " > " + t + n : t + n; - } - function an(e, t) { - return ji(rl, e, t); - } - function al(e, t) { - var r, a; - if (!e) return []; - if (!t && e.nodeType === 9) return ((t = [{ str: "html" }]), t); - if ( - ((t = t || []), - e.parentNode && e.parentNode !== e && (t = al(e.parentNode, t)), - e.previousSibling) - ) { - ((a = 1), (r = e.previousSibling)); - do - (r.nodeType === 1 && r.nodeName === e.nodeName && a++, - (r = r.previousSibling)); - while (r); - a === 1 && (a = null); - } else if (e.nextSibling) { - r = e.nextSibling; - do - r.nodeType === 1 && r.nodeName === e.nodeName - ? ((a = 1), (r = null)) - : ((a = null), (r = r.previousSibling)); - while (r); - } - if (e.nodeType === 1) { - var n = {}; - n.str = e.nodeName.toLowerCase(); - var i = e.getAttribute && Oe(e.getAttribute("id")); - (i && - e.ownerDocument.querySelectorAll("#" + i).length === 1 && - (n.id = e.getAttribute("id")), - a > 1 && (n.count = a), - t.push(n)); - } - return t; - } - function Zv(e) { - return e.reduce(function (t, r) { - return r.id - ? "/".concat(r.str, "[@id='").concat(r.id, "']") - : t + - "/".concat(r.str) + - (r.count > 0 ? "[".concat(r.count, "]") : ""); - }, ""); - } - function Jv(e) { - var t = al(e); - return Zv(t); - } - var nl = Jv, - ua = {}, - Qv = { - set: function (t, r) { - (eg(t), (ua[t] = r)); - }, - get: function (t, r) { - if ((tg(r), t in ua)) return ua[t]; - if (typeof r == "function") { - var a = r(); - return ( - me( - a !== void 0, - "Cache creator function should not return undefined", - ), - this.set(t, a), - ua[t] - ); - } - }, - clear: function () { - ua = {}; - }, - }; - function eg(e) { - (me( - typeof e == "string", - "key must be a string, " + O(e) + " given", - ), - me(e !== "", "key must not be empty")); - } - function tg(e) { - me( - typeof e == "function" || typeof e > "u", - "creator must be a function or undefined, " + O(e) + " given", - ); - } - var ue = Qv; - function rg(e, t) { - var r = t || e; - return ue.get("nodeMap") ? ue.get("nodeMap").get(r) : null; - } - var le = rg, - il = "DqElm.RunOptions"; - function ag(e, t) { - if (((t = t || 300), e.length > t)) { - var r = e.indexOf(">"); - e = e.substring(0, r + 1); - } - return e; - } - function ng(e) { - if (!(e != null && e.outerHTML)) return ""; - var t = e.outerHTML; - return ( - !t && - typeof E.XMLSerializer == "function" && - (t = new E.XMLSerializer().serializeToString(e)), - ag(t || "") - ); - } - var gr = Fe(function (t, r, a) { - var n, i, o, u; - if ( - (((n = r) !== null && n !== void 0) || (r = null), - ((i = a) !== null && i !== void 0) || (a = {}), - !r) - ) { - var s; - r = (s = ue.get(il)) !== null && s !== void 0 ? s : {}; - } - if ( - ((this.spec = a), - t instanceof $e - ? ((this._virtualNode = t), (this._element = t.actualNode)) - : ((this._element = t), (this._virtualNode = le(t))), - (this.fromFrame = - ((o = this.spec.selector) === null || o === void 0 - ? void 0 - : o.length) > 1), - (this._includeElementInJson = r.elementRef), - r.absolutePaths && (this._options = { toRoot: !0 }), - (this.nodeIndexes = []), - Array.isArray(this.spec.nodeIndexes) - ? (this.nodeIndexes = this.spec.nodeIndexes) - : typeof ((u = this._virtualNode) === null || u === void 0 - ? void 0 - : u.nodeIndex) == "number" && - (this.nodeIndexes = [this._virtualNode.nodeIndex]), - (this.source = null), - !x._audit.noHtml) - ) { - var l; - this.source = - (l = this.spec.source) !== null && l !== void 0 - ? l - : ng(this._element); - } - return this; - }); - ((gr.prototype = { - get selector() { - return this.spec.selector || [Hi(this.element, this._options)]; - }, - get ancestry() { - return this.spec.ancestry || [an(this.element)]; - }, - get xpath() { - return this.spec.xpath || [nl(this.element)]; - }, - get element() { - return this._element; - }, - toJSON: function () { - var t = { - selector: this.selector, - source: this.source, - xpath: this.xpath, - ancestry: this.ancestry, - nodeIndexes: this.nodeIndexes, - fromFrame: this.fromFrame, - }; - return ( - this._includeElementInJson && (t.element = this._element), - t - ); - }, - }), - (gr.fromFrame = function (t, r, a) { - var n = gr.mergeSpecs(t, a); - return new gr(a.element, r, n); - }), - (gr.mergeSpecs = function (t, r) { - return de({}, t, { - selector: [].concat(ne(r.selector), ne(t.selector)), - ancestry: [].concat(ne(r.ancestry), ne(t.ancestry)), - xpath: [].concat(ne(r.xpath), ne(t.xpath)), - nodeIndexes: [].concat(ne(r.nodeIndexes), ne(t.nodeIndexes)), - fromFrame: !0, - }); - }), - (gr.setRunOptions = function (t) { - var r = t.elementRef, - a = t.absolutePaths; - ue.set(il, { elementRef: r, absolutePaths: a }); - })); - var Ht = gr; - function ig(e, t, r, a) { - return { - isAsync: !1, - async: function () { - return ( - (this.isAsync = !0), - function (i) { - i instanceof Error ? a(i) : ((e.result = i), r(e)); - } - ); - }, - data: function (i) { - e.data = i; - }, - relatedNodes: function (i) { - E.Node && - (i instanceof E.Node || i instanceof $e - ? (i = [i]) - : (i = Zs(i)), - (e.relatedNodes = []), - i.forEach(function (o) { - if ( - (o instanceof $e && (o = o.actualNode), - o instanceof E.Node) - ) { - var u = new Ht(o); - e.relatedNodes.push(u); - } - })); - }, - }; - } - var $i = ig; - function $t(e) { - return Ui(e, new Map()); - } - function Ui(e, t) { - var r, a; - if ( - e === null || - O(e) !== "object" || - ((r = E) !== null && - r !== void 0 && - r.Node && - e instanceof E.Node) || - ((a = E) !== null && - a !== void 0 && - a.HTMLCollection && - e instanceof E.HTMLCollection) || - ("nodeName" in e && "nodeType" in e && "ownerDocument" in e) - ) - return e; - if (t.has(e)) return t.get(e); - if (Array.isArray(e)) { - var n = []; - return ( - t.set(e, n), - e.forEach(function (u) { - n.push(Ui(u, t)); - }), - n - ); - } - var i = {}; - t.set(e, i); - for (var o in e) i[o] = Ui(e[o], t); - return i; - } - var og = ot(ws()), - sa = new og.CssSelectorParser(); - (sa.registerSelectorPseudos("not"), - sa.registerSelectorPseudos("is"), - sa.registerNestingOperators(">"), - sa.registerAttrEqualityMods("^", "$", "*", "~")); - var ol = sa; - function Gi(e, t) { - var r = nn(t); - return r.some(function (a) { - return Or(e, a); - }); - } - function ug(e, t) { - return ( - e.props.nodeType === 1 && - (t.tag === "*" || e.props.nodeName === t.tag) - ); - } - function sg(e, t) { - return ( - !t.classes || - t.classes.every(function (r) { - return e.hasClass(r.value); - }) - ); - } - function lg(e, t) { - return ( - !t.attributes || - t.attributes.every(function (r) { - var a = e.attr(r.key); - return a !== null && r.test(a); - }) - ); - } - function cg(e, t) { - return !t.id || e.props.id === t.id; - } - function dg(e, t) { - return !!( - !t.pseudos || - t.pseudos.every(function (r) { - if (r.name === "not") - return !r.expressions.some(function (a) { - return Or(e, a); - }); - if (r.name === "is") - return r.expressions.some(function (a) { - return Or(e, a); - }); - throw new Error( - "the pseudo selector " + - r.name + - " has not yet been implemented", - ); - }) - ); - } - function ul(e, t) { - return ug(e, t) && sg(e, t) && lg(e, t) && cg(e, t) && dg(e, t); - } - var la = (function () { - var e = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g, - t = "\\"; - return function (r) { - return r.replace(e, t); - }; - })(), - Wi = /\\/g; - function fg(e) { - if (e) - return e.map(function (t) { - var r = t.name.replace(Wi, ""), - a = (t.value || "").replace(Wi, ""), - n, - i; - switch (t.operator) { - case "^=": - i = new RegExp("^" + la(a)); - break; - case "$=": - i = new RegExp(la(a) + "$"); - break; - case "~=": - i = new RegExp("(^|\\s)" + la(a) + "(\\s|$)"); - break; - case "|=": - i = new RegExp("^" + la(a) + "(-|$)"); - break; - case "=": - n = function (u) { - return a === u; - }; - break; - case "*=": - n = function (u) { - return u && u.includes(a); - }; - break; - case "!=": - n = function (u) { - return a !== u; - }; - break; - default: - n = function (u) { - return u !== null; - }; - } - return ( - a === "" && - /^[*$^]=$/.test(t.operator) && - (n = function () { - return !1; - }), - n || - (n = function (u) { - return u && i.test(u); - }), - { - key: r, - value: a, - type: typeof t.value > "u" ? "attrExist" : "attrValue", - test: n, - } - ); - }); - } - function pg(e) { - if (e) - return e.map(function (t) { - return ( - (t = t.replace(Wi, "")), - { - value: t, - regexp: new RegExp("(^|\\s)" + la(t) + "(\\s|$)"), - } - ); - }); - } - function mg(e) { - if (e) - return e.map(function (t) { - var r; - return ( - ["is", "not"].includes(t.name) && - ((r = t.value), - (r = r.selectors ? r.selectors : [r]), - (r = sl(r))), - { name: t.name, expressions: r, value: t.value } - ); - }); - } - function sl(e) { - return e.map(function (t) { - for (var r = [], a = t.rule; a; ) - (r.push({ - tag: a.tagName ? a.tagName.toLowerCase() : "*", - combinator: a.nestingOperator ? a.nestingOperator : " ", - id: a.id, - attributes: fg(a.attrs), - classes: pg(a.classNames), - pseudos: mg(a.pseudos), - }), - (a = a.rule)); - return r; - }); - } - function nn(e) { - var t = ol.parse(e); - return ((t = t.selectors ? t.selectors : [t]), sl(t)); - } - function ll(e, t, r, a) { - if (!e) return !1; - for ( - var n = Array.isArray(t), i = n ? t[r] : t, o = ul(e, i); - !o && a && e.parent; - ) - ((e = e.parent), (o = ul(e, i))); - if (r > 0) { - if ([" ", ">"].includes(i.combinator) === !1) - throw new Error( - "axe.utils.matchesExpression does not support the combinator: " + - i.combinator, - ); - o = o && ll(e.parent, t, r - 1, i.combinator === " "); - } - return o; - } - function Or(e, t, r) { - return ll(e, t, t.length - 1, r); - } - function hg(e, t) { - for (; e; ) { - if (Gi(e, t)) return e; - if (typeof e.parent > "u") - throw new TypeError( - "Cannot resolve parent for non-DOM nodes", - ); - e = e.parent; - } - return null; - } - var ut = hg; - function on() {} - function Yi(e) { - if (typeof e != "function") - throw new TypeError( - "Queue methods require functions as arguments", - ); - } - function vg() { - var e = [], - t = 0, - r = 0, - a = on, - n = !1, - i, - o = function (p) { - ((i = p), - setTimeout(function () { - i != null && vr("Uncaught error (of queue)", i); - }, 1)); - }, - u = o; - function s(f) { - return function (p) { - ((e[f] = p), (r -= 1), !r && a !== on && ((n = !0), a(e))); - }; - } - function l(f) { - return ((a = on), u(f), e); - } - function c() { - for (var f = e.length; t < f; t++) { - var p = e[t]; - try { - p.call(null, s(t), l); - } catch (m) { - l(m); - } - } - } - var d = { - defer: function (p) { - if (O(p) === "object" && p.then && p.catch) { - var m = p; - p = function (v, g) { - m.then(v).catch(g); - }; - } - if ((Yi(p), i === void 0)) { - if (n) throw new Error("Queue already completed"); - return (e.push(p), ++r, c(), d); - } - }, - then: function (p) { - if ((Yi(p), a !== on)) - throw new Error("queue `then` already set"); - return (i || ((a = p), r || ((n = !0), a(e))), d); - }, - catch: function (p) { - if ((Yi(p), u !== o)) - throw new Error("queue `catch` already set"); - return (i ? (p(i), (i = null)) : (u = p), d); - }, - abort: l, - }; - return d; - } - var kt = vg, - Mr, - Ir, - Ki = E.crypto || E.msCrypto; - if (!Ir && Ki && Ki.getRandomValues) { - var cl = new Uint8Array(16); - Ir = function () { - return (Ki.getRandomValues(cl), cl); - }; - } - if (!Ir) { - var dl = new Array(16); - Ir = function () { - for (var t = 0, r; t < 16; t++) - ((t & 3) === 0 && (r = Math.random() * 4294967296), - (dl[t] = (r >>> ((t & 3) << 3)) & 255)); - return dl; - }; - } - for ( - var fl = typeof E.Buffer == "function" ? E.Buffer : Array, - Xi = [], - pl = {}, - Pr = 0; - Pr < 256; - Pr++ - ) - ((Xi[Pr] = (Pr + 256).toString(16).substr(1)), (pl[Xi[Pr]] = Pr)); - function gg(e, t, r) { - var a = (t && r) || 0, - n = 0; - for ( - t = t || [], - e.toLowerCase().replace(/[0-9a-f]{2}/g, function (i) { - n < 16 && (t[a + n++] = pl[i]); - }); - n < 16; - ) - t[a + n++] = 0; - return t; - } - function Zi(e, t) { - var r = t || 0, - a = Xi; - return ( - a[e[r++]] + - a[e[r++]] + - a[e[r++]] + - a[e[r++]] + - "-" + - a[e[r++]] + - a[e[r++]] + - "-" + - a[e[r++]] + - a[e[r++]] + - "-" + - a[e[r++]] + - a[e[r++]] + - "-" + - a[e[r++]] + - a[e[r++]] + - a[e[r++]] + - a[e[r++]] + - a[e[r++]] + - a[e[r++]] - ); - } - var Qt = Ir(), - bg = [Qt[0] | 1, Qt[1], Qt[2], Qt[3], Qt[4], Qt[5]], - ml = ((Qt[6] << 8) | Qt[7]) & 16383, - Ji = 0, - Qi = 0; - function hl(e, t, r) { - var a = (t && r) || 0, - n = t || []; - e = e || {}; - var i = e.clockseq != null ? e.clockseq : ml, - o = e.msecs != null ? e.msecs : new Date().getTime(), - u = e.nsecs != null ? e.nsecs : Qi + 1, - s = o - Ji + (u - Qi) / 1e4; - if ( - (s < 0 && e.clockseq == null && (i = (i + 1) & 16383), - (s < 0 || o > Ji) && e.nsecs == null && (u = 0), - u >= 1e4) - ) - throw new Error( - "uuid.v1(): Can't create more than 10M uuids/sec", - ); - ((Ji = o), (Qi = u), (ml = i), (o += 122192928e5)); - var l = ((o & 268435455) * 1e4 + u) % 4294967296; - ((n[a++] = (l >>> 24) & 255), - (n[a++] = (l >>> 16) & 255), - (n[a++] = (l >>> 8) & 255), - (n[a++] = l & 255)); - var c = ((o / 4294967296) * 1e4) & 268435455; - ((n[a++] = (c >>> 8) & 255), - (n[a++] = c & 255), - (n[a++] = ((c >>> 24) & 15) | 16), - (n[a++] = (c >>> 16) & 255), - (n[a++] = (i >>> 8) | 128), - (n[a++] = i & 255)); - for (var d = e.node || bg, f = 0; f < 6; f++) n[a + f] = d[f]; - return t || Zi(n); - } - function br(e, t, r) { - var a = (t && r) || 0; - (typeof e == "string" && - ((t = e == "binary" ? new fl(16) : null), (e = null)), - (e = e || {})); - var n = e.random || (e.rng || Ir)(); - if (((n[6] = (n[6] & 15) | 64), (n[8] = (n[8] & 63) | 128), t)) - for (var i = 0; i < 16; i++) t[a + i] = n[i]; - return t || Zi(n); - } - ((Mr = br), - (Mr.v1 = hl), - (Mr.v4 = br), - (Mr.parse = gg), - (Mr.unparse = Zi), - (Mr.BufferClass = fl), - (x._uuid = hl())); - var yg = br, - wg = Object.freeze([ - "EvalError", - "RangeError", - "ReferenceError", - "SyntaxError", - "TypeError", - "URIError", - ]); - function Dg(e) { - var t = e.topic, - r = e.channelId, - a = e.message, - n = e.messageId, - i = e.keepalive, - o = { - channelId: r, - topic: t, - messageId: n, - keepalive: !!i, - source: vl(), - }; - return ( - a instanceof Error - ? (o.error = { - name: a.name, - message: a.message, - stack: a.stack, - }) - : (o.payload = a), - JSON.stringify(o) - ); - } - function _g(e) { - var t; - try { - t = JSON.parse(e); - } catch { - return; - } - if (xg(t)) { - var r = t, - a = r.topic, - n = r.channelId, - i = r.messageId, - o = r.keepalive, - u = O(t.error) === "object" ? Eg(t.error) : t.payload; - return { - topic: a, - message: u, - messageId: i, - channelId: n, - keepalive: !!o, - }; - } - } - function xg(e) { - return ( - e !== null && - O(e) === "object" && - typeof e.channelId == "string" && - e.source === vl() - ); - } - function Eg(e) { - var t = e.message || "Unknown error occurred", - r = wg.includes(e.name) ? e.name : "Error", - a = E[r] || Error; - return ( - e.stack && - (t += - ` -` + e.stack.replace(e.message, "")), - new a(t) - ); - } - function vl() { - var e = "axeAPI", - t = ""; - return ( - typeof x < "u" && - x._audit && - x._audit.application && - (e = x._audit.application), - typeof x < "u" && (t = x.version), - e + "." + t - ); - } - function eo(e) { - (bl(e), - me( - E.parent === e, - "Source of the response must be the parent window.", - )); - } - function gl(e) { - (bl(e), - me( - e.parent === E, - "Respondable target must be a frame in the current window", - )); - } - function bl(e) { - me(E !== e, "Messages can not be sent to the same window."); - } - var un = {}; - function Ag(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : !0; - (me( - !un[e], - "A replyHandler already exists for this message channel.", - ), - (un[e] = { replyHandler: t, sendToParent: r })); - } - function Cg(e) { - return un[e]; - } - function Fg(e) { - delete un[e]; - } - var sn = []; - function to() { - var e = "".concat(br(), ":").concat(br()); - return sn.includes(e) ? to() : (sn.push(e), e); - } - function Tg(e) { - return sn.includes(e) ? !1 : (sn.push(e), !0); - } - function ro(e, t, r, a) { - if ((r ? eo(e) : gl(e), t.message instanceof Error && !r)) - return (x.log(t.message), !1); - var n = Dg(de({ messageId: to() }, t)), - i = x._audit.allowedOrigins; - return !i || !i.length - ? !1 - : (typeof a == "function" && Ag(t.channelId, a, r), - i.forEach(function (o) { - try { - e.postMessage(n, o); - } catch (u) { - throw u instanceof e.DOMException - ? new Error( - 'allowedOrigins value "'.concat( - o, - '" is not a valid origin', - ), - ) - : u; - } - }), - !0); - } - function Rg(e, t, r) { - if (!e.parent !== E) return x.log(t); - try { - ro( - e, - { - topic: null, - channelId: r, - message: t, - messageId: to(), - keepalive: !0, - }, - !0, - ); - } catch (a) { - return x.log(a); - } - } - function yl(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : !0; - return function (n, i, o) { - var u = { channelId: t, message: n, keepalive: i }; - ro(e, u, r, o); - }; - } - function Sg(e) { - var t = x._audit.allowedOrigins; - return (t && t.includes("*")) || t.includes(e); - } - function kg(e, t) { - var r = e.origin, - a = e.data, - n = e.source; - try { - var i = _g(a) || {}, - o = i.channelId, - u = i.message, - s = i.messageId; - if (!Sg(r) || !Tg(s)) return; - if (u instanceof Error && n.parent !== E) return (x.log(u), !1); - try { - if (i.topic) { - var l = yl(n, o); - (eo(n), t(i, l)); - } else Og(n, i); - } catch (c) { - Rg(n, c, o); - } - } catch (c) { - return (x.log(c), !1); - } - } - function Og(e, t) { - var r = t.channelId, - a = t.message, - n = t.keepalive, - i = Cg(r) || {}, - o = i.replyHandler, - u = i.sendToParent; - if (o) { - u ? eo(e) : gl(e); - var s = yl(e, r, u); - !n && r && Fg(r); - try { - o(a, n, s); - } catch (l) { - (x.log(l), s(l, n)); - } - } - } - var Mg = { - open: function (t) { - if (typeof E.addEventListener == "function") { - var r = function (n) { - kg(n, t); - }; - return ( - E.addEventListener("message", r, !1), - function () { - E.removeEventListener("message", r, !1); - } - ); - } - }, - post: function (t, r, a) { - return typeof E.addEventListener != "function" - ? !1 - : ro(t, r, !1, a); - }, - }; - function wl(e) { - e.updateMessenger(Mg); - } - var ln, - Dl, - ao = {}; - function Et(e, t, r, a, n) { - var i = { - topic: t, - message: r, - channelId: "".concat(br(), ":").concat(br()), - keepalive: a, - }; - return Dl(e, i, n); - } - function Ig(e, t) { - var r = e.topic, - a = e.message, - n = e.keepalive, - i = ao[r]; - if (i) - try { - i(a, n, t); - } catch (o) { - (x.log(o), t(o, n)); - } - } - ((Et.updateMessenger = function (t) { - var r = t.open, - a = t.post; - (me(typeof r == "function", "open callback must be a function"), - me(typeof a == "function", "post callback must be a function"), - ln && ln()); - var n = r(Ig); - (n - ? (me( - typeof n == "function", - "open callback must return a cleanup function", - ), - (ln = n)) - : (ln = null), - (Dl = a)); - }), - (Et.subscribe = function (t, r) { - (me( - typeof r == "function", - "Subscriber callback must be a function", - ), - me(!ao[t], "Topic ".concat(t, " is already registered to.")), - (ao[t] = r)); - }), - (Et.isInFrame = function () { - var t = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : E; - return !!t.frameElement; - }), - wl(Et)); - function _l(e, t, r, a) { - var n, - i, - o = e.contentWindow, - u = - (n = - (i = t.options) === null || i === void 0 - ? void 0 - : i.pingWaitTime) !== null && n !== void 0 - ? n - : 500; - if (!o) { - (vr("Frame does not have a content window", e), r(null)); - return; - } - if (u === 0) { - xl(e, t, r, a); - return; - } - var s = setTimeout(function () { - s = setTimeout(function () { - t.debug ? a(El("No response from frame", e)) : r(null); - }, 0); - }, u); - Et(o, "axe.ping", null, void 0, function () { - (clearTimeout(s), xl(e, t, r, a)); - }); - } - function xl(e, t, r, a) { - var n, - i, - o = - (n = - (i = t.options) === null || i === void 0 - ? void 0 - : i.frameWaitTime) !== null && n !== void 0 - ? n - : 6e4, - u = e.contentWindow, - s = setTimeout(function () { - a(El("Axe in frame timed out", e)); - }, o); - Et(u, "axe.start", t, void 0, function (l) { - (clearTimeout(s), l instanceof Error ? a(l) : r(l)); - }); - } - function El(e, t) { - var r; - return (x._tree && (r = Hi(t)), new Error(e + ": " + (r || t))); - } - var ca = null, - da = { - update: function (t) { - (me(O(t) === "object", "serializer must be an object"), - (ca = t)); - }, - toSpec: function (t) { - return da.dqElmToSpec(new Ht(t)); - }, - dqElmToSpec: function (t, r) { - var a; - return t instanceof Ht - ? (r && (t = Pg(t, r)), - typeof ((a = ca) === null || a === void 0 - ? void 0 - : a.toSpec) == "function" - ? ca.toSpec(t) - : t.toJSON()) - : t; - }, - mergeSpecs: function (t, r) { - var a; - return typeof ((a = ca) === null || a === void 0 - ? void 0 - : a.mergeSpecs) == "function" - ? ca.mergeSpecs(t, r) - : Ht.mergeSpecs(t, r); - }, - mapRawResults: function (t) { - return t.map(function (r) { - return de({}, r, { nodes: da.mapRawNodeResults(r.nodes) }); - }); - }, - mapRawNodeResults: function (t) { - return t?.map(function (r) { - var a = r.node, - n = qe(r, Ep); - n.node = da.dqElmToSpec(a); - for ( - var i = 0, o = ["any", "all", "none"]; - i < o.length; - i++ - ) { - var u = o[i]; - n[u] = n[u].map(function (s) { - var l = s.relatedNodes, - c = qe(s, Ap); - return ((c.relatedNodes = l.map(da.dqElmToSpec)), c); - }); - } - return n; - }); - }, - }, - ht = da; - function Pg(e, t) { - var r = e.fromFrame, - a = t.ancestry, - n = t.xpath, - i = t.selectors !== !1 || r; - return ( - (e = new Ht(e.element, t, { - source: e.source, - nodeIndexes: e.nodeIndexes, - selector: i ? e.selector : [":root"], - ancestry: a ? e.ancestry : [":root"], - xpath: n ? e.xpath : "/", - })), - (e.fromFrame = r), - e - ); - } - function Ng(e) { - var t = []; - return t - .concat(e.any || []) - .concat(e.all || []) - .concat(e.none || []); - } - var cn = Ng; - function Lg(e, t, r) { - if (Array.isArray(e)) - return e.find(function (a) { - return ( - a !== null && - O(a) === "object" && - Object.hasOwn(a, t) && - a[t] === r - ); - }); - } - var fa = Lg; - function Bg(e, t, r) { - e.forEach(function (a) { - a.node = ht.mergeSpecs(a.node, r); - var n = cn(a); - n.forEach(function (i) { - i.relatedNodes = i.relatedNodes.map(function (o) { - return ht.mergeSpecs(o, r); - }); - }); - }); - } - function qg(e, t) { - for (var r = t[0].node, a, n = 0; n < e.length; n++) { - a = e[n].node; - var i = Al(a.nodeIndexes, r.nodeIndexes); - if ( - i > 0 || - (i === 0 && r.selector.length < a.selector.length) - ) { - e.splice.apply(e, [n, 0].concat(ne(t))); - return; - } - } - e.push.apply(e, ne(t)); - } - function jg(e) { - return !e || !e.results - ? null - : Array.isArray(e.results) - ? e.results.length - ? e.results - : null - : [e.results]; - } - function zg(e, t) { - var r = []; - return ( - e.forEach(function (a) { - var n = jg(a); - if (!(!n || !n.length)) { - var i = Vg(a); - n.forEach(function (o) { - o.nodes && i && Bg(o.nodes, t, i); - var u = fa(r, "id", o.id); - u ? o.nodes.length && qg(u.nodes, o.nodes) : r.push(o); - }); - } - }), - r.forEach(function (a) { - a.nodes && - a.nodes.sort(function (n, i) { - return Al(n.node.nodeIndexes, i.node.nodeIndexes); - }); - }), - r - ); - } - function Al() { - for ( - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : [], - t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : [], - r = Math.max(e?.length, t?.length), - a = 0; - a < r; - a++ - ) { - var n = e?.[a], - i = t?.[a]; - if (typeof n != "number" || isNaN(n)) return a === 0 ? 1 : -1; - if (typeof i != "number" || isNaN(i)) return a === 0 ? -1 : 1; - if (n !== i) return n - i; - } - return 0; - } - var dn = zg; - function Vg(e) { - return e.frameElement - ? ht.toSpec(e.frameElement) - : e.frameSpec - ? e.frameSpec - : null; - } - function Cl(e, t, r, a, n, i) { - t = de({}, t, { elementRef: !1 }); - var o = kt(), - u = e.frames; - (u.forEach(function (s) { - var l = s.node, - c = qe(s, Cp); - o.defer(function (d, f) { - var p = { options: t, command: r, parameter: a, context: c }; - function m(h) { - return d(h ? { results: h, frameElement: l } : null); - } - _l(l, p, m, f); - }); - }), - o - .then(function (s) { - n(dn(s, t)); - }) - .catch(i)); - } - function Ut(e, t) { - if ( - !e.shadowId && - !t.shadowId && - e.actualNode && - typeof e.actualNode.contains == "function" - ) - return e.actualNode.contains(t.actualNode); - do { - if (e === t) return !0; - if (t.nodeIndex < e.nodeIndex) return !1; - t = t.parent; - } while (t); - return !1; - } - function Fl() { - for ( - var e = {}, t = arguments.length, r = new Array(t), a = 0; - a < t; - a++ - ) - r[a] = arguments[a]; - return ( - r.forEach(function (n) { - if (!(!n || O(n) !== "object" || Array.isArray(n))) - for (var i = 0, o = Object.keys(n); i < o.length; i++) { - var u = o[i]; - !e.hasOwnProperty(u) || - O(n[u]) !== "object" || - Array.isArray(e[u]) - ? (e[u] = n[u]) - : (e[u] = Fl(e[u], n[u])); - } - }), - e - ); - } - var no = Fl; - function Hg(e, t) { - (Object.assign(e, t), - Object.keys(t) - .filter(function (r) { - return typeof t[r] == "function"; - }) - .forEach(function (r) { - e[r] = null; - try { - e[r] = t[r](e); - } catch {} - })); - } - var io = Hg, - $g = [ - "article", - "aside", - "blockquote", - "body", - "div", - "footer", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "header", - "main", - "nav", - "p", - "section", - "span", - ]; - function Ug(e) { - if (e.shadowRoot) { - var t = e.nodeName.toLowerCase(); - if ( - $g.includes(t) || - /^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(t) - ) - return !0; - } - return !1; - } - var fn = Ug, - oo = {}; - Dt(oo, { - createGrid: function () { - return yr; - }, - findElmsInContext: function () { - return Tl; - }, - findNearbyElms: function () { - return yn; - }, - findUp: function () { - return Lr; - }, - findUpVirtual: function () { - return Nr; - }, - focusDisabled: function () { - return go; - }, - getComposedParent: function () { - return Ue; - }, - getElementByReference: function () { - return yo; - }, - getElementCoordinates: function () { - return lo; - }, - getElementStack: function () { - return uc; - }, - getModalDialog: function () { - return rc; - }, - getOverflowHiddenAncestors: function () { - return ma; - }, - getRootNode: function () { - return Xe; - }, - getScrollOffset: function () { - return Hl; - }, - getTabbableElements: function () { - return sc; - }, - getTargetRects: function () { - return Dn; - }, - getTargetSize: function () { - return lc; - }, - getTextElementStack: function () { - return Bo; - }, - getViewportSize: function () { - return pn; - }, - getVisibleChildTextRects: function () { - return Lo; - }, - hasContent: function () { - return Fn; - }, - hasContentVirtual: function () { - return _a; - }, - hasLangText: function () { - return zo; - }, - idrefs: function () { - return Ot; - }, - insertedIntoFocusOrder: function () { - return Jc; - }, - isCurrentPageLink: function () { - return bo; - }, - isFocusable: function () { - return Ne; - }, - isHTML5: function () { - return td; - }, - isHiddenForEveryone: function () { - return er; - }, - isHiddenWithCSS: function () { - return b0; - }, - isInTabOrder: function () { - return vt; - }, - isInTextBlock: function () { - return Vo; - }, - isInert: function () { - return wn; - }, - isModalOpen: function () { - return xa; - }, - isMultiline: function () { - return nd; - }, - isNativelyFocusable: function () { - return _o; - }, - isNode: function () { - return C0; - }, - isOffscreen: function () { - return mn; - }, - isOpaque: function () { - return _w; - }, - isSkipLink: function () { - return cu; - }, - isVisible: function () { - return Tw; - }, - isVisibleOnScreen: function () { - return st; - }, - isVisibleToScreenReaders: function () { - return Re; - }, - isVisualContent: function () { - return qo; - }, - reduceToElementsBelowFloating: function () { - return h1; - }, - shadowElementsFromPoint: function () { - return kw; - }, - urlPropsFromAttribute: function () { - return Lw; - }, - visuallyContains: function () { - return v1; - }, - visuallyOverlaps: function () { - return du; - }, - visuallySort: function () { - return wo; - }, - }); - function Gg(e) { - var t = (e.getRootNode && e.getRootNode()) || L; - return (t === e && (t = L), t); - } - var pa = Gg, - Xe = pa; - function Wg(e) { - var t = e.context, - r = e.value, - a = e.attr, - n = e.elm, - i = n === void 0 ? "" : n, - o, - u = Oe(r); - return ( - t.nodeType === 9 || t.nodeType === 11 ? (o = t) : (o = Xe(t)), - Array.from(o.querySelectorAll(i + "[" + a + "=" + u + "]")) - ); - } - var Tl = Wg; - function Yg(e, t) { - var r; - if ( - ((r = e.actualNode), - !e.shadowId && typeof e.actualNode.closest == "function") - ) { - var a = e.actualNode.closest(t); - return a || null; - } - do - ((r = r.assignedSlot ? r.assignedSlot : r.parentNode), - r && r.nodeType === 11 && (r = r.host)); - while (r && !kr(r, t) && r !== L.documentElement); - return !r || !kr(r, t) ? null : r; - } - var Nr = Yg; - function Kg(e, t) { - return Nr(le(e), t); - } - var Lr = Kg; - function uo(e, t) { - return ( - (e.left | 0) < (t.right | 0) && - (e.right | 0) > (t.left | 0) && - (e.top | 0) < (t.bottom | 0) && - (e.bottom | 0) > (t.top | 0) - ); - } - var Rl = Fe(function (t) { - var r = []; - if (!t) return r; - var a = t.getComputedStylePropertyValue("overflow"); - return (a === "hidden" && r.push(t), r.concat(Rl(t.parent))); - }), - ma = Rl, - Xg = - /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/, - Zg = /(\w+)\((\d+)/; - function Sl(e) { - return ["style", "script", "noscript", "template"].includes( - e.props.nodeName, - ); - } - function kl(e) { - return e.props.nodeName === "area" - ? !1 - : e.getComputedStylePropertyValue("display") === "none"; - } - function Ol(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.isAncestor; - return ( - !r && - ["hidden", "collapse"].includes( - e.getComputedStylePropertyValue("visibility"), - ) - ); - } - function Ml(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.isAncestor; - return ( - !!r && - e.getComputedStylePropertyValue("content-visibility") === - "hidden" - ); - } - function Il(e) { - return e.attr("aria-hidden") === "true"; - } - function Pl(e) { - return e.getComputedStylePropertyValue("opacity") === "0"; - } - function Nl(e) { - var t = Yt(e.actualNode), - r = parseInt(e.getComputedStylePropertyValue("height")), - a = parseInt(e.getComputedStylePropertyValue("width")); - return !!t && (r === 0 || a === 0); - } - function Ll(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.isAncestor; - if (r) return !1; - var a = e.getComputedStylePropertyValue("position"); - if (a === "fixed") return !1; - var n = ma(e); - if (!n.length) return !1; - var i = e.boundingClientRect; - return n.some(function (o) { - if ( - a === "absolute" && - !Jg(e, o) && - o.getComputedStylePropertyValue("position") === "static" - ) - return !1; - var u = o.boundingClientRect; - return u.width < 2 || u.height < 2 ? !0 : !uo(i, u); - }); - } - function Bl(e) { - var t = e.getComputedStylePropertyValue("clip").match(Xg), - r = e.getComputedStylePropertyValue("clip-path").match(Zg); - if (t && t.length === 5) { - var a = e.getComputedStylePropertyValue("position"); - if (["fixed", "absolute"].includes(a)) - return t[3] - t[1] <= 0 && t[2] - t[4] <= 0; - } - if (r) { - var n = r[1], - i = parseInt(r[2], 10); - switch (n) { - case "inset": - return i >= 50; - case "circle": - return i === 0; - } - } - return !1; - } - function so(e, t) { - var r = ut(e, "map"); - if (!r) return !0; - var a = r.attr("name"); - if (!a) return !0; - var n = pa(e.actualNode); - if (!n || n.nodeType !== 9) return !0; - var i = ft(x._tree, 'img[usemap="#'.concat(Oe(a), '"]')); - return !i || !i.length - ? !0 - : i.some(function (o) { - return !t(o); - }); - } - function ql(e) { - var t; - if ( - ((t = e.parent) === null || t === void 0 - ? void 0 - : t.props.nodeName) !== "details" - ) - return !1; - if (e.props.nodeName === "summary") { - var r = e.parent.children.find(function (a) { - return a.props.nodeName === "summary"; - }); - if (r === e) return !1; - } - return !e.parent.hasAttr("open"); - } - function Jg(e, t) { - for (var r = e.parent; r && r !== t; ) { - if ( - ["relative", "sticky"].includes( - r.getComputedStylePropertyValue("position"), - ) - ) - return !0; - r = r.parent; - } - return !1; - } - var Qg = [kl, Ol, Ml, ql]; - function er(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.skipAncestors, - a = t.isAncestor, - n = a === void 0 ? !1 : a; - return ((e = we(e).vNode), r ? jl(e, n) : zl(e, n)); - } - var jl = Fe(function (t, r) { - return Sl(t) - ? !0 - : t.actualNode - ? !!( - Qg.some(function (a) { - return a(t, { isAncestor: r }); - }) || !t.actualNode.isConnected - ) - : !1; - }), - zl = Fe(function (t, r) { - return jl(t, r) ? !0 : t.parent ? zl(t.parent, !0) : !1; - }); - function Vl(e) { - if (e.assignedSlot) return Vl(e.assignedSlot); - if (e.parentNode) { - var t = e.parentNode; - if (t.nodeType === 1) return t; - if (t.host) return t.host; - } - return null; - } - var Ue = Vl; - function eb(e) { - if ( - (!e.nodeType && e.document && (e = e.document), - e.nodeType === 9) - ) { - var t = e.documentElement, - r = e.body; - return { - left: (t && t.scrollLeft) || (r && r.scrollLeft) || 0, - top: (t && t.scrollTop) || (r && r.scrollTop) || 0, - }; - } - return { left: e.scrollLeft, top: e.scrollTop }; - } - var Hl = eb; - function tb(e) { - var t = Hl(L), - r = t.left, - a = t.top, - n = e.getBoundingClientRect(); - return { - top: n.top + a, - right: n.right + r, - bottom: n.bottom + a, - left: n.left + r, - width: n.right - n.left, - height: n.bottom - n.top, - }; - } - var lo = tb; - function rb(e) { - var t = e.document, - r = t.documentElement; - if (e.innerWidth) - return { width: e.innerWidth, height: e.innerHeight }; - if (r) return { width: r.clientWidth, height: r.clientHeight }; - var a = t.body; - return { width: a.clientWidth, height: a.clientHeight }; - } - var pn = rb; - function ab(e, t) { - for (e = Ue(e); e && e.nodeName.toLowerCase() !== "html"; ) { - if (e.scrollTop && ((t += e.scrollTop), t >= 0)) return !1; - e = Ue(e); - } - return !0; - } - function nb(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.isAncestor; - if (r) return !1; - var a = we(e), - n = a.domNode; - if (n) { - var i, - o = L.documentElement, - u = E.getComputedStyle(n), - s = E.getComputedStyle(L.body || o).getPropertyValue( - "direction", - ), - l = lo(n); - if ( - l.bottom < 0 && - (ab(n, l.bottom) || u.position === "absolute") - ) - return !0; - if (l.left === 0 && l.right === 0) return !1; - if (s === "ltr") { - if (l.right <= 0) return !0; - } else if ( - ((i = Math.max(o.scrollWidth, pn(E).width)), l.left >= i) - ) - return !0; - return !1; - } - } - var mn = nb, - ib = [Pl, Nl, Ll, Bl, mn]; - function st(e) { - return ((e = we(e).vNode), co(e)); - } - var co = Fe(function (t, r) { - return t.actualNode && t.props.nodeName === "area" - ? !so(t, co) - : er(t, { skipAncestors: !0, isAncestor: r }) || - (t.actualNode && - ib.some(function (a) { - return a(t, { isAncestor: r }); - })) - ? !1 - : t.parent - ? co(t.parent, !0) - : !0; - }); - function hn(e, t) { - var r = Math.min(e.top, t.top), - a = Math.max(e.right, t.right), - n = Math.max(e.bottom, t.bottom), - i = Math.min(e.left, t.left); - return new E.DOMRect(i, r, a - i, n - r); - } - function vn(e, t) { - var r = e.x, - a = e.y, - n = t.top, - i = t.right, - o = t.bottom, - u = t.left; - return a >= n && r <= i && a <= o && r >= u; - } - var $l = {}; - Dt($l, { - getBoundingRect: function () { - return hn; - }, - getIntersectionRect: function () { - return gn; - }, - getOffset: function () { - return Gl; - }, - getRectCenter: function () { - return ha; - }, - hasVisualOverlap: function () { - return fo; - }, - isPointInRect: function () { - return vn; - }, - rectHasMinimumSize: function () { - return Gt; - }, - rectsOverlap: function () { - return uo; - }, - splitRects: function () { - return po; - }, - }); - function gn(e, t) { - var r = Math.max(e.left, t.left), - a = Math.min(e.right, t.right), - n = Math.max(e.top, t.top), - i = Math.min(e.bottom, t.bottom); - return r >= a || n >= i - ? null - : new E.DOMRect(r, n, a - r, i - n); - } - function ha(e) { - var t = e.left, - r = e.top, - a = e.width, - n = e.height; - return new E.DOMPoint(t + a / 2, r + n / 2); - } - var Ul = 0.05; - function Gt(e, t) { - var r = t.width, - a = t.height; - return r + Ul >= e && a + Ul >= e; - } - function Gl(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : 12, - a = Dn(e), - n = Dn(t); - if (!a.length || !n.length) return null; - var i = a.reduce(hn), - o = ha(i), - u = 1 / 0, - s = Ce(n), - l; - try { - for (s.s(); !(l = s.n()).done; ) { - var c = l.value; - if (vn(o, c)) return 0; - var d = ob(o, c), - f = Wl(o, d); - u = Math.min(u, f); - } - } catch (g) { - s.e(g); - } finally { - s.f(); - } - var p = lc(t); - if (Gt(r * 2, p)) return u; - var m = n.reduce(hn), - h = ha(m), - v = Wl(o, h) - r; - return Math.max(0, Math.min(u, v)); - } - function ob(e, t) { - var r, a; - return ( - e.x < t.left - ? (r = t.left) - : e.x > t.right - ? (r = t.right) - : (r = e.x), - e.y < t.top - ? (a = t.top) - : e.y > t.bottom - ? (a = t.bottom) - : (a = e.y), - { x: r, y: a } - ); - } - function Wl(e, t) { - return Math.hypot(e.x - t.x, e.y - t.y); - } - function fo(e, t) { - var r = e.boundingClientRect, - a = t.boundingClientRect; - return r.left >= a.right || - r.right <= a.left || - r.top >= a.bottom || - r.bottom <= a.top - ? !1 - : wo(e, t) > 0; - } - function po(e, t) { - var r = [e], - a = Ce(t), - n; - try { - var i = function () { - var u = n.value; - if ( - ((r = r.reduce(function (s, l) { - return s.concat(ub(l, u)); - }, [])), - r.length > 4e3) - ) - throw new Error("splitRects: Too many rects"); - }; - for (a.s(); !(n = a.n()).done; ) i(); - } catch (o) { - a.e(o); - } finally { - a.f(); - } - return r; - } - function ub(e, t) { - var r = e.top, - a = e.left, - n = e.bottom, - i = e.right, - o = r < t.bottom && n > t.top, - u = a < t.right && i > t.left, - s = []; - if ( - (bn(t.top, r, n) && - u && - s.push({ top: r, left: a, bottom: t.top, right: i }), - bn(t.right, a, i) && - o && - s.push({ top: r, left: t.right, bottom: n, right: i }), - bn(t.bottom, r, n) && - u && - s.push({ top: t.bottom, right: i, bottom: n, left: a }), - bn(t.left, a, i) && - o && - s.push({ top: r, left: a, bottom: n, right: t.left }), - s.length === 0) - ) { - if (lb(e, t)) return []; - s.push(e); - } - return s.map(sb); - } - var bn = function (t, r, a) { - return t > r && t < a; - }; - function sb(e) { - return new E.DOMRect( - e.left, - e.top, - e.right - e.left, - e.bottom - e.top, - ); - } - function lb(e, t) { - return ( - e.top >= t.top && - e.left >= t.left && - e.bottom <= t.bottom && - e.right <= t.right - ); - } - var Yl = 0, - cb = 0.1, - Kl = 0.2, - Xl = 0.3, - mo = 0; - function yr() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : L.body, - t = arguments.length > 1 ? arguments[1] : void 0, - r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : null; - if (ue.get("gridCreated") && !r) return se.gridSize; - if ((ue.set("gridCreated", !0), !r)) { - var a, - n = le(L.documentElement); - if ( - (n || (n = new fu(L.documentElement)), - (mo = 0), - (n._stackingOrder = [Ql(Yl, mo++, null)]), - ((a = t) !== null && a !== void 0) || (t = new ho()), - ec(t, n), - Yt(n.actualNode)) - ) { - var i = new ho(n); - n._subGrid = i; - } - } - for ( - var o = L.createTreeWalker( - e, - E.NodeFilter.SHOW_ELEMENT, - null, - !1, - ), - u = r ? o.nextNode() : o.currentNode; - u; - ) { - var s = le(u); - (s && s.parent - ? (r = s.parent) - : u.assignedSlot - ? (r = le(u.assignedSlot)) - : u.parentElement - ? (r = le(u.parentElement)) - : u.parentNode && - le(u.parentNode) && - (r = le(u.parentNode)), - s || (s = new x.VirtualNode(u, r)), - (s._stackingOrder = db(s, r, mo++))); - var l = mb(s, r), - c = l ? l._subGrid : t; - if (Yt(s.actualNode)) { - var d = new ho(s); - s._subGrid = d; - } - var f = s.boundingClientRect; - (f.width !== 0 && f.height !== 0 && st(u) && ec(c, s), - fn(u) && yr(u.shadowRoot, c, s), - (u = o.nextNode())); - } - return se.gridSize; - } - function Zl(e, t) { - var r = e.getComputedStylePropertyValue("position"), - a = e.getComputedStylePropertyValue("z-index"); - if ( - r === "fixed" || - r === "sticky" || - (a !== "auto" && r !== "static") || - e.getComputedStylePropertyValue("opacity") !== "1" - ) - return !0; - var n = - e.getComputedStylePropertyValue("-webkit-transform") || - e.getComputedStylePropertyValue("-ms-transform") || - e.getComputedStylePropertyValue("transform") || - "none"; - if (n !== "none") return !0; - var i = e.getComputedStylePropertyValue("mix-blend-mode"); - if (i && i !== "normal") return !0; - var o = e.getComputedStylePropertyValue("filter"); - if (o && o !== "none") return !0; - var u = e.getComputedStylePropertyValue("perspective"); - if (u && u !== "none") return !0; - var s = e.getComputedStylePropertyValue("clip-path"); - if (s && s !== "none") return !0; - var l = - e.getComputedStylePropertyValue("-webkit-mask") || - e.getComputedStylePropertyValue("mask") || - "none"; - if (l !== "none") return !0; - var c = - e.getComputedStylePropertyValue("-webkit-mask-image") || - e.getComputedStylePropertyValue("mask-image") || - "none"; - if (c !== "none") return !0; - var d = - e.getComputedStylePropertyValue("-webkit-mask-border") || - e.getComputedStylePropertyValue("mask-border") || - "none"; - if ( - d !== "none" || - e.getComputedStylePropertyValue("isolation") === "isolate" - ) - return !0; - var f = e.getComputedStylePropertyValue("will-change"); - if ( - f === "transform" || - f === "opacity" || - e.getComputedStylePropertyValue( - "-webkit-overflow-scrolling", - ) === "touch" - ) - return !0; - var p = e.getComputedStylePropertyValue("contain"); - return !!( - ["layout", "paint", "strict", "content"].includes(p) || - (a !== "auto" && Jl(t)) - ); - } - function Jl(e) { - if (!e) return !1; - var t = e.getComputedStylePropertyValue("display"); - return ["flex", "inline-flex", "grid", "inline-grid"].includes(t); - } - function db(e, t, r) { - var a = t._stackingOrder.slice(); - if (Zl(e, t)) { - var n = a.findIndex(function (o) { - var u = o.stackLevel; - return [Yl, Kl, Xl].includes(u); - }); - n !== -1 && a.splice(n, a.length - n); - } - var i = fb(e, t); - return (i !== null && a.push(Ql(i, r, e)), a); - } - function Ql(e, t, r) { - return { stackLevel: e, treeOrder: t, vNode: r }; - } - function fb(e, t) { - var r = pb(e, t); - return ["auto", "0"].includes(r) - ? e.getComputedStylePropertyValue("position") !== "static" - ? Xl - : e.getComputedStylePropertyValue("float") !== "none" - ? Kl - : Zl(e, t) - ? cb - : null - : parseInt(r); - } - function pb(e, t) { - var r = e.getComputedStylePropertyValue("position"); - return r === "static" && !Jl(t) - ? "auto" - : e.getComputedStylePropertyValue("z-index"); - } - function mb(e, t) { - for (var r = null, a = [e]; t; ) { - if (Yt(t.actualNode)) { - r = t; - break; - } - if (t._scrollRegionParent) { - r = t._scrollRegionParent; - break; - } - (a.push(t), - (t = le( - t.actualNode.parentElement || t.actualNode.parentNode, - ))); - } - return ( - a.forEach(function (n) { - return (n._scrollRegionParent = r); - }), - r - ); - } - function ec(e, t) { - var r = ma(t); - t.clientRects.forEach(function (a) { - var n, - i = r.reduce(function (u, s) { - return u && gn(u, s.boundingClientRect); - }, a); - if (i) { - ((n = t._grid) !== null && n !== void 0) || (t._grid = e); - var o = e.getGridPositionOfRect(i); - e.loopGridPosition(o, function (u) { - u.includes(t) || u.push(t); - }); - } - }); - } - var ho = (function () { - function e() { - var t = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : null; - (Tt(this, e), (this.container = t), (this.cells = [])); - } - return Rt(e, [ - { - key: "toGridIndex", - value: function (r) { - return Math.floor(r / se.gridSize); - }, - }, - { - key: "getCellFromPoint", - value: function (r) { - var a, - n, - i = r.x, - o = r.y; - me(this.boundaries, "Grid does not have cells added"); - var u = this.toGridIndex(o), - s = this.toGridIndex(i); - me( - vn({ y: u, x: s }, this.boundaries), - "Element midpoint exceeds the grid bounds", - ); - var l = - (a = this.cells[u - this.cells._negativeIndex]) !== - null && a !== void 0 - ? a - : []; - return (n = l[s - l._negativeIndex]) !== null && - n !== void 0 - ? n - : []; - }, - }, - { - key: "loopGridPosition", - value: function (r, a) { - var n = r, - i = n.left, - o = n.right, - u = n.top, - s = n.bottom; - (this.boundaries && (r = hn(this.boundaries, r)), - (this.boundaries = r), - tc(this.cells, u, s, function (l, c) { - tc(l, i, o, function (d, f) { - a(d, { row: c, col: f }); - }); - })); - }, - }, - { - key: "getGridPositionOfRect", - value: function (r) { - var a = r.top, - n = r.right, - i = r.bottom, - o = r.left, - u = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 0; - return ( - (a = this.toGridIndex(a - u)), - (n = this.toGridIndex(n + u - 1)), - (i = this.toGridIndex(i + u - 1)), - (o = this.toGridIndex(o - u)), - new E.DOMRect(o, a, n - o, i - a) - ); - }, - }, - ]); - })(); - function tc(e, t, r, a) { - var n; - if ( - (((n = e._negativeIndex) !== null && n !== void 0) || - (e._negativeIndex = 0), - t < e._negativeIndex) - ) { - for (var i = 0; i < e._negativeIndex - t; i++) - e.splice(0, 0, []); - e._negativeIndex = t; - } - for ( - var o = t - e._negativeIndex, u = r - e._negativeIndex, s = o; - s <= u; - s++ - ) { - var l, c; - (((c = e[(l = s)]) !== null && c !== void 0) || (e[l] = []), - a(e[s], s + e._negativeIndex)); - } - } - function yn(e) { - var t, - r = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 0; - if ( - (yr(), - !( - (t = e._grid) !== null && - t !== void 0 && - (t = t.cells) !== null && - t !== void 0 && - t.length - )) - ) - return []; - var a = e.boundingClientRect, - n = e._grid, - i = vo(e), - o = n.getGridPositionOfRect(a, r), - u = []; - return ( - n.loopGridPosition(o, function (s) { - var l = Ce(s), - c; - try { - for (l.s(); !(c = l.n()).done; ) { - var d = c.value; - d && - d !== e && - !u.includes(d) && - i === vo(d) && - u.push(d); - } - } catch (f) { - l.e(f); - } finally { - l.f(); - } - }), - u - ); - } - var vo = Fe(function (e) { - return e - ? e.getComputedStylePropertyValue("position") === "fixed" - ? !0 - : vo(e.parent) - : !1; - }), - hb = Fe(function () { - var t; - if (!x._tree) return null; - var r = Bt(x._tree[0], "dialog[open]", function (n) { - var i = n.boundingClientRect, - o = L.elementsFromPoint(i.left + 1, i.top + 1); - return o.includes(n.actualNode) && st(n); - }); - if (!r.length) return null; - var a = r.find(function (n) { - var i = n.boundingClientRect, - o = L.elementsFromPoint(i.left - 10, i.top - 10); - return o.includes(n.actualNode); - }); - return ( - a || - ((t = r.find(function (n) { - var i, - o = (i = vb(n)) !== null && i !== void 0 ? i : {}, - u = o.vNode, - s = o.rect; - if (!u) return !1; - var l = L.elementsFromPoint(s.left + 1, s.top + 1); - return !l.includes(u.actualNode); - })) !== null && t !== void 0 - ? t - : null) - ); - }), - rc = hb; - function vb(e) { - yr(); - var t = x._tree[0]._grid, - r = new E.DOMRect(0, 0, E.innerWidth, E.innerHeight); - if (t) - for (var a = 0; a < t.cells.length; a++) { - var n = t.cells[a]; - if (n) - for (var i = 0; i < n.length; i++) { - var o = n[i]; - if (o) - for (var u = 0; u < o.length; u++) { - var s = o[u], - l = s.boundingClientRect, - c = gn(l, r); - if ( - s.props.nodeName !== "html" && - s !== e && - s.getComputedStylePropertyValue( - "pointer-events", - ) !== "none" && - c - ) - return { vNode: s, rect: c }; - } - } - } - } - function wn(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.skipAncestors, - a = t.isAncestor; - return r ? ac(e, a) : nc(e, a); - } - var ac = Fe(function (t, r) { - if (t.hasAttr("inert")) return !0; - if (!r && t.actualNode) { - var a = rc(); - if (a && !Ut(a, t)) return !0; - } - return !1; - }), - nc = Fe(function (t, r) { - return ac(t, r) ? !0 : t.parent ? nc(t.parent, !0) : !1; - }), - gb = [ - "button", - "command", - "fieldset", - "keygen", - "optgroup", - "option", - "select", - "textarea", - "input", - ]; - function bb(e) { - return gb.includes(e); - } - function yb(e) { - var t = we(e), - r = t.vNode; - if ((bb(r.props.nodeName) && r.hasAttr("disabled")) || wn(r)) - return !0; - for ( - var a = r.parent, n = [], i = !1; - a && - a.shadowId === r.shadowId && - !i && - (n.push(a), a.props.nodeName !== "legend"); - ) { - if (a._inDisabledFieldset !== void 0) { - i = a._inDisabledFieldset; - break; - } - (a.props.nodeName === "fieldset" && - a.hasAttr("disabled") && - (i = !0), - (a = a.parent)); - } - return ( - n.forEach(function (o) { - return (o._inDisabledFieldset = i); - }), - i - ? !0 - : r.props.nodeName !== "area" && r.actualNode - ? er(r) - : !1 - ); - } - var go = yb, - wb = /^\/\#/, - Db = /^#[!/]/; - function bo(e) { - var t, - r = e.getAttribute("href"); - if (!r || r === "#") return !1; - if (wb.test(r)) return !0; - var a = e.hash, - n = e.protocol, - i = e.hostname, - o = e.port, - u = e.pathname; - if (Db.test(a)) return !1; - if (r.charAt(0) === "#") return !0; - if ( - typeof ((t = E.location) === null || t === void 0 - ? void 0 - : t.origin) != "string" || - E.location.origin.indexOf("://") === -1 - ) - return null; - var s = E.location.origin + E.location.pathname, - l; - return ( - i - ? (l = "" - .concat(n, "//") - .concat(i) - .concat(o ? ":".concat(o) : "")) - : (l = E.location.origin), - u - ? (l += (u[0] !== "/" ? "/" : "") + u) - : (l += E.location.pathname), - l === s - ); - } - function _b(e, t) { - var r = e.getAttribute(t); - if (!r || (t === "href" && !bo(e))) return null; - r.indexOf("#") !== -1 && - (r = decodeURIComponent(r.substr(r.indexOf("#") + 1))); - var a = L.getElementById(r); - return ( - a || ((a = L.getElementsByName(r)), a.length ? a[0] : null) - ); - } - var yo = _b; - function wo(e, t) { - yr(); - for ( - var r = Math.max( - e._stackingOrder.length, - t._stackingOrder.length, - ), - a = 0; - a < r; - a++ - ) { - if (typeof t._stackingOrder[a] > "u") return -1; - if ( - typeof e._stackingOrder[a] > "u" || - t._stackingOrder[a].stackLevel > - e._stackingOrder[a].stackLevel - ) - return 1; - if ( - t._stackingOrder[a].stackLevel < - e._stackingOrder[a].stackLevel - ) - return -1; - if ( - t._stackingOrder[a].treeOrder !== - e._stackingOrder[a].treeOrder - ) - return ( - t._stackingOrder[a].treeOrder - - e._stackingOrder[a].treeOrder - ); - } - var n = e.actualNode, - i = t.actualNode; - if (n.getRootNode && n.getRootNode() !== i.getRootNode()) { - for (var o = []; n; ) - (o.push({ root: n.getRootNode(), node: n }), - (n = n.getRootNode().host)); - for ( - ; - i && - !o.find(function (v) { - return v.root === i.getRootNode(); - }); - ) - i = i.getRootNode().host; - if ( - ((n = o.find(function (v) { - return v.root === i.getRootNode(); - }).node), - n === i) - ) - return e.actualNode.getRootNode() !== n.getRootNode() - ? -1 - : 1; - } - var u = E.Node, - s = u.DOCUMENT_POSITION_FOLLOWING, - l = u.DOCUMENT_POSITION_CONTAINS, - c = u.DOCUMENT_POSITION_CONTAINED_BY, - d = n.compareDocumentPosition(i), - f = d & s ? 1 : -1, - p = d & l || d & c, - m = ic(e), - h = ic(t); - return m === h || p ? f : h - m; - } - function ic(e) { - return e - .getComputedStylePropertyValue("display") - .indexOf("inline") !== -1 - ? 2 - : oc(e) - ? 1 - : 0; - } - function oc(e) { - if (!e) return !1; - if (e._isFloated !== void 0) return e._isFloated; - var t = e.getComputedStylePropertyValue("float"); - if (t !== "none") return ((e._isFloated = !0), !0); - var r = oc(e.parent); - return ((e._isFloated = r), r); - } - function Do(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : !1, - a = ha(t), - n = e.getCellFromPoint(a) || [], - i = Math.floor(a.x), - o = Math.floor(a.y), - u = n.filter(function (l) { - return l.clientRects.some(function (c) { - var d = c.left, - f = c.top; - return ( - i < Math.floor(d + c.width) && - i >= Math.floor(d) && - o < Math.floor(f + c.height) && - o >= Math.floor(f) - ); - }); - }), - s = e.container; - return ( - s && (u = Do(s._grid, s.boundingClientRect, !0).concat(u)), - r || - (u = u - .sort(wo) - .map(function (l) { - return l.actualNode; - }) - .concat(L.documentElement) - .filter(function (l, c, d) { - return d.indexOf(l) === c; - })), - u - ); - } - function xb(e) { - yr(); - var t = le(e), - r = t._grid; - return r ? Do(r, t.boundingClientRect) : []; - } - var uc = xb; - function Eb(e) { - var t = ft(e, "*"), - r = t.filter(function (a) { - var n = a.isFocusable, - i = Lt(a.actualNode.getAttribute("tabindex")); - return i !== null ? n && i >= 0 : n; - }); - return r; - } - var sc = Eb; - function Ab(e) { - var t = we(e), - r = t.vNode; - if (!r || go(r)) return !1; - switch (r.props.nodeName) { - case "a": - case "area": - if (r.hasAttr("href")) return !0; - break; - case "input": - return r.props.type !== "hidden"; - case "textarea": - case "select": - case "summary": - case "button": - return !0; - case "details": - return !ft(r, "summary").length; - } - return !1; - } - var _o = Ab; - function Ne(e) { - var t = we(e), - r = t.vNode; - if (r.props.nodeType !== 1 || go(r)) return !1; - if (_o(r)) return !0; - var a = Lt(r.attr("tabindex")); - return a !== null; - } - function vt(e) { - var t = we(e), - r = t.vNode; - if (r.props.nodeType !== 1) return !1; - var a = Lt(r.attr("tabindex")); - return a <= -1 ? !1 : Ne(r); - } - var Dn = Fe(Cb); - function Cb(e) { - var t = e.boundingClientRect, - r = yn(e).filter(function (n) { - return ( - fo(e, n) && - n.getComputedStylePropertyValue("pointer-events") !== - "none" && - !Fb(e, n) - ); - }); - if (!r.length) return [t]; - var a = r.map(function (n) { - var i = n.boundingClientRect; - return i; - }); - return po(t, a); - } - function Fb(e, t) { - return Ut(e, t) && !vt(t); - } - var lc = Fe(Tb); - function Tb(e, t) { - var r = Dn(e); - return Rb(r, t); - } - function Rb(e, t) { - return e.reduce(function (r, a) { - var n = Gt(t, r), - i = Gt(t, a); - if (n !== i) return n ? r : a; - var o = r.width * r.height, - u = a.width * a.height; - return o > u ? r : a; - }); - } - var va = {}; - Dt(va, { - accessibleText: function () { - return wr; - }, - accessibleTextVirtual: function () { - return Ge; - }, - autocomplete: function () { - return Er; - }, - formControlValue: function () { - return jc; - }, - formControlValueMethods: function () { - return So; - }, - hasUnicode: function () { - return Io; - }, - isHumanInterpretable: function () { - return No; - }, - isIconLigature: function () { - return Po; - }, - isValidAutocomplete: function () { - return Wc; - }, - label: function () { - return i0; - }, - labelText: function () { - return ko; - }, - labelVirtual: function () { - return Cn; - }, - nativeElementType: function () { - return u0; - }, - nativeTextAlternative: function () { - return Vc; - }, - nativeTextMethods: function () { - return zc; - }, - removeUnicode: function () { - return Da; - }, - sanitize: function () { - return re; - }, - subtreeText: function () { - return tr; - }, - titleText: function () { - return xn; - }, - unsupported: function () { - return Sc; - }, - visible: function () { - return Yc; - }, - visibleTextNodes: function () { - return s0; - }, - visibleVirtual: function () { - return It; - }, - }); - function Sb(e, t) { - e = e.actualNode || e; - try { - var r = Xe(e), - a = [], - n = e.getAttribute(t); - if (n) { - n = Ze(n); - for (var i = 0; i < n.length; i++) - a.push(r.getElementById(n[i])); - } - return a; - } catch { - throw new TypeError( - "Cannot resolve id references for non-DOM nodes", - ); - } - } - var Ot = Sb; - function kb(e, t) { - var r = le(e); - return Ge(r, t); - } - var wr = kb; - function Ob(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = we(e), - a = r.vNode; - if ( - a?.props.nodeType !== 1 || - a.props.nodeType !== 1 || - t.inLabelledByContext || - t.inControlContext || - !a.attr("aria-labelledby") - ) - return ""; - var n = Ot(a, "aria-labelledby").filter(function (i) { - return i; - }); - return n.reduce(function (i, o) { - var u = wr( - o, - de( - { inLabelledByContext: !0, startNode: t.startNode || a }, - t, - ), - ); - return i ? "".concat(i, " ").concat(u) : u; - }, ""); - } - var ga = Ob; - function ba(e) { - var t = we(e), - r = t.vNode; - return r?.props.nodeType !== 1 ? "" : r.attr("aria-label") || ""; - } - var Mb = { - "aria-activedescendant": { type: "idref", allowEmpty: !0 }, - "aria-atomic": { type: "boolean", global: !0 }, - "aria-autocomplete": { - type: "nmtoken", - values: ["inline", "list", "both", "none"], - }, - "aria-braillelabel": { - type: "string", - allowEmpty: !0, - global: !0, - }, - "aria-brailleroledescription": { - type: "string", - allowEmpty: !0, - global: !0, - }, - "aria-busy": { type: "boolean", global: !0 }, - "aria-checked": { - type: "nmtoken", - values: ["false", "mixed", "true", "undefined"], - }, - "aria-colcount": { type: "int", minValue: -1 }, - "aria-colindex": { type: "int", minValue: 1 }, - "aria-colspan": { type: "int", minValue: 1 }, - "aria-controls": { type: "idrefs", allowEmpty: !0, global: !0 }, - "aria-current": { - type: "nmtoken", - allowEmpty: !0, - values: [ - "page", - "step", - "location", - "date", - "time", - "true", - "false", - ], - global: !0, - }, - "aria-describedby": { - type: "idrefs", - allowEmpty: !0, - global: !0, - }, - "aria-description": { - type: "string", - allowEmpty: !0, - global: !0, - }, - "aria-details": { type: "idref", allowEmpty: !0, global: !0 }, - "aria-disabled": { type: "boolean", global: !0 }, - "aria-dropeffect": { - type: "nmtokens", - values: ["copy", "execute", "link", "move", "none", "popup"], - global: !0, - }, - "aria-errormessage": { - type: "idref", - allowEmpty: !0, - global: !0, - }, - "aria-expanded": { - type: "nmtoken", - values: ["true", "false", "undefined"], - }, - "aria-flowto": { type: "idrefs", allowEmpty: !0, global: !0 }, - "aria-grabbed": { - type: "nmtoken", - values: ["true", "false", "undefined"], - global: !0, - }, - "aria-haspopup": { - type: "nmtoken", - allowEmpty: !0, - values: [ - "true", - "false", - "menu", - "listbox", - "tree", - "grid", - "dialog", - ], - global: !0, - }, - "aria-hidden": { - type: "nmtoken", - values: ["true", "false", "undefined"], - global: !0, - }, - "aria-invalid": { - type: "nmtoken", - values: ["grammar", "false", "spelling", "true"], - global: !0, - }, - "aria-keyshortcuts": { - type: "string", - allowEmpty: !0, - global: !0, - }, - "aria-label": { type: "string", allowEmpty: !0, global: !0 }, - "aria-labelledby": { - type: "idrefs", - allowEmpty: !0, - global: !0, - }, - "aria-level": { type: "int", minValue: 1 }, - "aria-live": { - type: "nmtoken", - values: ["assertive", "off", "polite"], - global: !0, - }, - "aria-modal": { type: "boolean" }, - "aria-multiline": { type: "boolean" }, - "aria-multiselectable": { type: "boolean" }, - "aria-orientation": { - type: "nmtoken", - values: ["horizontal", "undefined", "vertical"], - }, - "aria-owns": { type: "idrefs", allowEmpty: !0, global: !0 }, - "aria-placeholder": { type: "string", allowEmpty: !0 }, - "aria-posinset": { type: "int", minValue: 1 }, - "aria-pressed": { - type: "nmtoken", - values: ["false", "mixed", "true", "undefined"], - }, - "aria-readonly": { type: "boolean" }, - "aria-relevant": { - type: "nmtokens", - values: ["additions", "all", "removals", "text"], - global: !0, - }, - "aria-required": { type: "boolean" }, - "aria-roledescription": { - type: "string", - allowEmpty: !0, - global: !0, - }, - "aria-rowcount": { type: "int", minValue: -1 }, - "aria-rowindex": { type: "int", minValue: 1 }, - "aria-rowspan": { type: "int", minValue: 0 }, - "aria-selected": { - type: "nmtoken", - values: ["false", "true", "undefined"], - }, - "aria-setsize": { type: "int", minValue: -1 }, - "aria-sort": { - type: "nmtoken", - values: ["ascending", "descending", "none", "other"], - }, - "aria-valuemax": { type: "decimal" }, - "aria-valuemin": { type: "decimal" }, - "aria-valuenow": { type: "decimal" }, - "aria-valuetext": { type: "string", allowEmpty: !0 }, - }, - cc = Mb, - Ib = { - alert: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - alertdialog: { - type: "window", - allowedAttrs: ["aria-expanded", "aria-modal"], - superclassRole: ["alert", "dialog"], - accessibleNameRequired: !0, - }, - application: { - type: "landmark", - allowedAttrs: ["aria-activedescendant", "aria-expanded"], - superclassRole: ["structure"], - accessibleNameRequired: !0, - }, - article: { - type: "structure", - allowedAttrs: [ - "aria-posinset", - "aria-setsize", - "aria-expanded", - ], - superclassRole: ["document"], - }, - banner: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - blockquote: { type: "structure", superclassRole: ["section"] }, - button: { - type: "widget", - allowedAttrs: ["aria-expanded", "aria-pressed"], - superclassRole: ["command"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - caption: { - type: "structure", - requiredContext: ["figure", "table", "grid", "treegrid"], - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - cell: { - type: "structure", - requiredContext: ["row"], - allowedAttrs: [ - "aria-colindex", - "aria-colspan", - "aria-rowindex", - "aria-rowspan", - "aria-expanded", - ], - superclassRole: ["section"], - nameFromContent: !0, - }, - checkbox: { - type: "widget", - requiredAttrs: ["aria-checked"], - allowedAttrs: [ - "aria-readonly", - "aria-expanded", - "aria-required", - ], - superclassRole: ["input"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - code: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - columnheader: { - type: "structure", - requiredContext: ["row"], - allowedAttrs: [ - "aria-sort", - "aria-colindex", - "aria-colspan", - "aria-expanded", - "aria-readonly", - "aria-required", - "aria-rowindex", - "aria-rowspan", - "aria-selected", - ], - superclassRole: ["cell", "gridcell", "sectionhead"], - accessibleNameRequired: !1, - nameFromContent: !0, - }, - combobox: { - type: "widget", - requiredAttrs: ["aria-expanded", "aria-controls"], - allowedAttrs: [ - "aria-owns", - "aria-autocomplete", - "aria-readonly", - "aria-required", - "aria-activedescendant", - "aria-orientation", - ], - superclassRole: ["select"], - accessibleNameRequired: !0, - }, - command: { type: "abstract", superclassRole: ["widget"] }, - complementary: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - composite: { type: "abstract", superclassRole: ["widget"] }, - contentinfo: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - comment: { - type: "structure", - allowedAttrs: ["aria-level", "aria-posinset", "aria-setsize"], - superclassRole: ["article"], - }, - definition: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - deletion: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - dialog: { - type: "window", - allowedAttrs: ["aria-expanded", "aria-modal"], - superclassRole: ["window"], - accessibleNameRequired: !0, - }, - directory: { - type: "structure", - deprecated: !0, - allowedAttrs: ["aria-expanded"], - superclassRole: ["list"], - nameFromContent: !0, - }, - document: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["structure"], - }, - emphasis: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - feed: { - type: "structure", - requiredOwned: ["article"], - allowedAttrs: ["aria-expanded"], - superclassRole: ["list"], - }, - figure: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - nameFromContent: !0, - }, - form: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - grid: { - type: "composite", - requiredOwned: ["rowgroup", "row"], - allowedAttrs: [ - "aria-level", - "aria-multiselectable", - "aria-readonly", - "aria-activedescendant", - "aria-colcount", - "aria-expanded", - "aria-rowcount", - ], - superclassRole: ["composite", "table"], - accessibleNameRequired: !1, - }, - gridcell: { - type: "widget", - requiredContext: ["row"], - allowedAttrs: [ - "aria-readonly", - "aria-required", - "aria-selected", - "aria-colindex", - "aria-colspan", - "aria-expanded", - "aria-rowindex", - "aria-rowspan", - ], - superclassRole: ["cell", "widget"], - nameFromContent: !0, - }, - group: { - type: "structure", - allowedAttrs: ["aria-activedescendant", "aria-expanded"], - superclassRole: ["section"], - }, - heading: { - type: "structure", - requiredAttrs: ["aria-level"], - allowedAttrs: ["aria-expanded"], - superclassRole: ["sectionhead"], - accessibleNameRequired: !1, - nameFromContent: !0, - }, - img: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - accessibleNameRequired: !0, - childrenPresentational: !0, - }, - input: { type: "abstract", superclassRole: ["widget"] }, - insertion: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - landmark: { type: "abstract", superclassRole: ["section"] }, - link: { - type: "widget", - allowedAttrs: ["aria-expanded"], - superclassRole: ["command"], - accessibleNameRequired: !0, - nameFromContent: !0, - }, - list: { - type: "structure", - requiredOwned: ["listitem"], - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - listbox: { - type: "widget", - requiredOwned: ["group", "option"], - allowedAttrs: [ - "aria-multiselectable", - "aria-readonly", - "aria-required", - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - ], - superclassRole: ["select"], - accessibleNameRequired: !0, - }, - listitem: { - type: "structure", - requiredContext: ["list"], - allowedAttrs: [ - "aria-level", - "aria-posinset", - "aria-setsize", - "aria-expanded", - ], - superclassRole: ["section"], - nameFromContent: !0, - }, - log: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - main: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - marquee: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - math: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - childrenPresentational: !0, - }, - menu: { - type: "composite", - requiredOwned: [ - "group", - "menuitemradio", - "menuitem", - "menuitemcheckbox", - "menu", - "separator", - ], - allowedAttrs: [ - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - ], - superclassRole: ["select"], - }, - menubar: { - type: "composite", - requiredOwned: [ - "group", - "menuitemradio", - "menuitem", - "menuitemcheckbox", - "menu", - "separator", - ], - allowedAttrs: [ - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - ], - superclassRole: ["menu"], - }, - menuitem: { - type: "widget", - requiredContext: ["menu", "menubar", "group"], - allowedAttrs: [ - "aria-posinset", - "aria-setsize", - "aria-expanded", - ], - superclassRole: ["command"], - accessibleNameRequired: !0, - nameFromContent: !0, - }, - menuitemcheckbox: { - type: "widget", - requiredContext: ["menu", "menubar", "group"], - requiredAttrs: ["aria-checked"], - allowedAttrs: [ - "aria-expanded", - "aria-posinset", - "aria-readonly", - "aria-setsize", - ], - superclassRole: ["checkbox", "menuitem"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - menuitemradio: { - type: "widget", - requiredContext: ["menu", "menubar", "group"], - requiredAttrs: ["aria-checked"], - allowedAttrs: [ - "aria-expanded", - "aria-posinset", - "aria-readonly", - "aria-setsize", - ], - superclassRole: ["menuitemcheckbox", "radio"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - meter: { - type: "structure", - requiredAttrs: ["aria-valuenow"], - allowedAttrs: [ - "aria-valuemax", - "aria-valuemin", - "aria-valuetext", - ], - superclassRole: ["range"], - accessibleNameRequired: !0, - childrenPresentational: !0, - }, - mark: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - navigation: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - none: { - type: "structure", - superclassRole: ["structure"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - note: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - option: { - type: "widget", - requiredContext: ["group", "listbox"], - allowedAttrs: [ - "aria-selected", - "aria-checked", - "aria-posinset", - "aria-setsize", - ], - superclassRole: ["input"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - paragraph: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - presentation: { - type: "structure", - superclassRole: ["structure"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - progressbar: { - type: "widget", - allowedAttrs: [ - "aria-expanded", - "aria-valuemax", - "aria-valuemin", - "aria-valuenow", - "aria-valuetext", - ], - superclassRole: ["range"], - accessibleNameRequired: !0, - childrenPresentational: !0, - }, - radio: { - type: "widget", - requiredAttrs: ["aria-checked"], - allowedAttrs: [ - "aria-posinset", - "aria-setsize", - "aria-required", - ], - superclassRole: ["input"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - radiogroup: { - type: "composite", - allowedAttrs: [ - "aria-readonly", - "aria-required", - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - ], - superclassRole: ["select"], - accessibleNameRequired: !1, - }, - range: { type: "abstract", superclassRole: ["widget"] }, - region: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - accessibleNameRequired: !1, - }, - roletype: { type: "abstract", superclassRole: [] }, - row: { - type: "structure", - requiredContext: ["grid", "rowgroup", "table", "treegrid"], - requiredOwned: [ - "cell", - "columnheader", - "gridcell", - "rowheader", - ], - allowedAttrs: [ - "aria-colindex", - "aria-level", - "aria-rowindex", - "aria-selected", - "aria-activedescendant", - "aria-expanded", - "aria-posinset", - "aria-setsize", - ], - superclassRole: ["group", "widget"], - nameFromContent: !0, - }, - rowgroup: { - type: "structure", - requiredContext: ["grid", "table", "treegrid"], - requiredOwned: ["row"], - superclassRole: ["structure"], - nameFromContent: !0, - }, - rowheader: { - type: "structure", - requiredContext: ["row"], - allowedAttrs: [ - "aria-sort", - "aria-colindex", - "aria-colspan", - "aria-expanded", - "aria-readonly", - "aria-required", - "aria-rowindex", - "aria-rowspan", - "aria-selected", - ], - superclassRole: ["cell", "gridcell", "sectionhead"], - accessibleNameRequired: !1, - nameFromContent: !0, - }, - scrollbar: { - type: "widget", - requiredAttrs: ["aria-valuenow"], - allowedAttrs: [ - "aria-controls", - "aria-orientation", - "aria-valuemax", - "aria-valuemin", - "aria-valuetext", - ], - superclassRole: ["range"], - childrenPresentational: !0, - }, - search: { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - searchbox: { - type: "widget", - allowedAttrs: [ - "aria-activedescendant", - "aria-autocomplete", - "aria-multiline", - "aria-placeholder", - "aria-readonly", - "aria-required", - ], - superclassRole: ["textbox"], - accessibleNameRequired: !0, - }, - section: { - type: "abstract", - superclassRole: ["structure"], - nameFromContent: !0, - }, - sectionhead: { - type: "abstract", - superclassRole: ["structure"], - nameFromContent: !0, - }, - select: { - type: "abstract", - superclassRole: ["composite", "group"], - }, - separator: { - type: "structure", - requiredAttrs: ["aria-valuenow"], - allowedAttrs: [ - "aria-valuemax", - "aria-valuemin", - "aria-orientation", - "aria-valuetext", - ], - superclassRole: ["structure", "widget"], - childrenPresentational: !0, - }, - slider: { - type: "widget", - requiredAttrs: ["aria-valuenow"], - allowedAttrs: [ - "aria-valuemax", - "aria-valuemin", - "aria-orientation", - "aria-readonly", - "aria-required", - "aria-valuetext", - ], - superclassRole: ["input", "range"], - accessibleNameRequired: !0, - childrenPresentational: !0, - }, - spinbutton: { - type: "widget", - allowedAttrs: [ - "aria-valuemax", - "aria-valuemin", - "aria-readonly", - "aria-required", - "aria-activedescendant", - "aria-valuetext", - "aria-valuenow", - ], - superclassRole: ["composite", "input", "range"], - accessibleNameRequired: !0, - }, - status: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - strong: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - structure: { type: "abstract", superclassRole: ["roletype"] }, - subscript: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - superscript: { - type: "structure", - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - switch: { - type: "widget", - requiredAttrs: ["aria-checked"], - allowedAttrs: [ - "aria-expanded", - "aria-readonly", - "aria-required", - ], - superclassRole: ["checkbox"], - accessibleNameRequired: !0, - nameFromContent: !0, - childrenPresentational: !0, - }, - suggestion: { - type: "structure", - requiredOwned: ["insertion", "deletion"], - superclassRole: ["section"], - prohibitedAttrs: ["aria-label", "aria-labelledby"], - }, - tab: { - type: "widget", - requiredContext: ["tablist"], - allowedAttrs: [ - "aria-posinset", - "aria-selected", - "aria-setsize", - "aria-expanded", - ], - superclassRole: ["sectionhead", "widget"], - nameFromContent: !0, - childrenPresentational: !0, - }, - table: { - type: "structure", - requiredOwned: ["rowgroup", "row"], - allowedAttrs: [ - "aria-colcount", - "aria-rowcount", - "aria-expanded", - ], - superclassRole: ["section"], - accessibleNameRequired: !1, - nameFromContent: !0, - }, - tablist: { - type: "composite", - requiredOwned: ["tab"], - allowedAttrs: [ - "aria-level", - "aria-multiselectable", - "aria-orientation", - "aria-activedescendant", - "aria-expanded", - ], - superclassRole: ["composite"], - }, - tabpanel: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - accessibleNameRequired: !1, - }, - term: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - nameFromContent: !0, - }, - text: { - type: "structure", - superclassRole: ["section"], - nameFromContent: !0, - }, - textbox: { - type: "widget", - allowedAttrs: [ - "aria-activedescendant", - "aria-autocomplete", - "aria-multiline", - "aria-placeholder", - "aria-readonly", - "aria-required", - ], - superclassRole: ["input"], - accessibleNameRequired: !0, - }, - time: { type: "structure", superclassRole: ["section"] }, - timer: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["status"], - }, - toolbar: { - type: "structure", - allowedAttrs: [ - "aria-orientation", - "aria-activedescendant", - "aria-expanded", - ], - superclassRole: ["group"], - accessibleNameRequired: !0, - }, - tooltip: { - type: "structure", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - nameFromContent: !0, - }, - tree: { - type: "composite", - requiredOwned: ["group", "treeitem"], - allowedAttrs: [ - "aria-multiselectable", - "aria-required", - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - ], - superclassRole: ["select"], - accessibleNameRequired: !1, - }, - treegrid: { - type: "composite", - requiredOwned: ["rowgroup", "row"], - allowedAttrs: [ - "aria-activedescendant", - "aria-colcount", - "aria-expanded", - "aria-level", - "aria-multiselectable", - "aria-orientation", - "aria-readonly", - "aria-required", - "aria-rowcount", - ], - superclassRole: ["grid", "tree"], - accessibleNameRequired: !1, - }, - treeitem: { - type: "widget", - requiredContext: ["group", "tree"], - allowedAttrs: [ - "aria-checked", - "aria-expanded", - "aria-level", - "aria-posinset", - "aria-selected", - "aria-setsize", - ], - superclassRole: ["listitem", "option"], - accessibleNameRequired: !0, - nameFromContent: !0, - }, - widget: { type: "abstract", superclassRole: ["roletype"] }, - window: { type: "abstract", superclassRole: ["roletype"] }, - }, - dc = Ib, - Pb = { - "doc-abstract": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-acknowledgments": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-afterword": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-appendix": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-backlink": { - type: "link", - allowedAttrs: ["aria-expanded"], - nameFromContent: !0, - superclassRole: ["link"], - }, - "doc-biblioentry": { - type: "listitem", - allowedAttrs: [ - "aria-expanded", - "aria-level", - "aria-posinset", - "aria-setsize", - ], - superclassRole: ["listitem"], - deprecated: !0, - }, - "doc-bibliography": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-biblioref": { - type: "link", - allowedAttrs: ["aria-expanded"], - nameFromContent: !0, - superclassRole: ["link"], - }, - "doc-chapter": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-colophon": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-conclusion": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-cover": { - type: "img", - allowedAttrs: ["aria-expanded"], - superclassRole: ["img"], - }, - "doc-credit": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-credits": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-dedication": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-endnote": { - type: "listitem", - allowedAttrs: [ - "aria-expanded", - "aria-level", - "aria-posinset", - "aria-setsize", - ], - superclassRole: ["listitem"], - deprecated: !0, - }, - "doc-endnotes": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-epigraph": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-epilogue": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-errata": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-example": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-footnote": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-foreword": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-glossary": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-glossref": { - type: "link", - allowedAttrs: ["aria-expanded"], - nameFromContent: !0, - superclassRole: ["link"], - }, - "doc-index": { - type: "navigation", - allowedAttrs: ["aria-expanded"], - superclassRole: ["navigation"], - }, - "doc-introduction": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-noteref": { - type: "link", - allowedAttrs: ["aria-expanded"], - nameFromContent: !0, - superclassRole: ["link"], - }, - "doc-notice": { - type: "note", - allowedAttrs: ["aria-expanded"], - superclassRole: ["note"], - }, - "doc-pagebreak": { - type: "separator", - allowedAttrs: ["aria-expanded", "aria-orientation"], - superclassRole: ["separator"], - childrenPresentational: !0, - }, - "doc-pagelist": { - type: "navigation", - allowedAttrs: ["aria-expanded"], - superclassRole: ["navigation"], - }, - "doc-part": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-preface": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-prologue": { - type: "landmark", - allowedAttrs: ["aria-expanded"], - superclassRole: ["landmark"], - }, - "doc-pullquote": { type: "none", superclassRole: ["none"] }, - "doc-qna": { - type: "section", - allowedAttrs: ["aria-expanded"], - superclassRole: ["section"], - }, - "doc-subtitle": { - type: "sectionhead", - allowedAttrs: ["aria-expanded"], - superclassRole: ["sectionhead"], - }, - "doc-tip": { - type: "note", - allowedAttrs: ["aria-expanded"], - superclassRole: ["note"], - }, - "doc-toc": { - type: "navigation", - allowedAttrs: ["aria-expanded"], - superclassRole: ["navigation"], - }, - }, - Nb = Pb, - Lb = { - "graphics-document": { - type: "structure", - superclassRole: ["document"], - accessibleNameRequired: !0, - }, - "graphics-object": { - type: "structure", - superclassRole: ["group"], - nameFromContent: !0, - }, - "graphics-symbol": { - type: "structure", - superclassRole: ["img"], - accessibleNameRequired: !0, - childrenPresentational: !0, - }, - }, - Bb = Lb, - qb = { - a: { - variant: { - href: { - matches: "[href]", - contentTypes: ["interactive", "phrasing", "flow"], - allowedRoles: [ - "button", - "checkbox", - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "option", - "radio", - "switch", - "tab", - "treeitem", - "doc-backlink", - "doc-biblioref", - "doc-glossref", - "doc-noteref", - ], - namingMethods: ["subtreeText"], - }, - default: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !0, - }, - }, - }, - abbr: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - address: { contentTypes: ["flow"], allowedRoles: !0 }, - area: { - variant: { - href: { matches: "[href]", allowedRoles: !1 }, - default: { allowedRoles: ["button", "link"] }, - }, - contentTypes: ["phrasing", "flow"], - namingMethods: ["altText"], - }, - article: { - contentTypes: ["sectioning", "flow"], - allowedRoles: [ - "feed", - "presentation", - "none", - "document", - "application", - "main", - "region", - ], - shadowRoot: !0, - }, - aside: { - contentTypes: ["sectioning", "flow"], - allowedRoles: [ - "feed", - "note", - "presentation", - "none", - "region", - "search", - "doc-dedication", - "doc-example", - "doc-footnote", - "doc-glossary", - "doc-pullquote", - "doc-tip", - ], - }, - audio: { - variant: { - controls: { - matches: "[controls]", - contentTypes: [ - "interactive", - "embedded", - "phrasing", - "flow", - ], - }, - default: { contentTypes: ["embedded", "phrasing", "flow"] }, - }, - allowedRoles: ["application"], - chromiumRole: "Audio", - }, - b: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - base: { allowedRoles: !1, noAriaAttrs: !0 }, - bdi: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - bdo: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - blockquote: { - contentTypes: ["flow"], - allowedRoles: !0, - shadowRoot: !0, - }, - body: { allowedRoles: !1, shadowRoot: !0 }, - br: { - contentTypes: ["phrasing", "flow"], - allowedRoles: ["presentation", "none"], - namingMethods: ["titleText", "singleSpace"], - }, - button: { - contentTypes: ["interactive", "phrasing", "flow"], - allowedRoles: [ - "checkbox", - "combobox", - "gridcell", - "link", - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "option", - "radio", - "separator", - "slider", - "switch", - "tab", - "treeitem", - ], - namingMethods: ["subtreeText"], - }, - canvas: { - allowedRoles: !0, - contentTypes: ["embedded", "phrasing", "flow"], - chromiumRole: "Canvas", - }, - caption: { allowedRoles: !1 }, - cite: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - code: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - col: { allowedRoles: !1, noAriaAttrs: !0 }, - colgroup: { allowedRoles: !1, noAriaAttrs: !0 }, - data: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - datalist: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - implicitAttrs: { "aria-multiselectable": "false" }, - }, - dd: { allowedRoles: !1 }, - del: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - dfn: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - details: { - contentTypes: ["interactive", "flow"], - allowedRoles: !1, - }, - dialog: { - contentTypes: ["flow"], - allowedRoles: ["alertdialog"], - }, - div: { - contentTypes: ["flow"], - allowedRoles: !0, - shadowRoot: !0, - }, - dl: { - contentTypes: ["flow"], - allowedRoles: ["group", "list", "presentation", "none"], - chromiumRole: "DescriptionList", - }, - dt: { allowedRoles: ["listitem"] }, - em: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - embed: { - contentTypes: ["interactive", "embedded", "phrasing", "flow"], - allowedRoles: [ - "application", - "document", - "img", - "presentation", - "none", - ], - chromiumRole: "EmbeddedObject", - }, - fieldset: { - contentTypes: ["flow"], - allowedRoles: ["none", "presentation", "radiogroup"], - namingMethods: ["fieldsetLegendText"], - }, - figcaption: { allowedRoles: ["group", "none", "presentation"] }, - figure: { - contentTypes: ["flow"], - allowedRoles: !0, - namingMethods: ["figureText", "titleText"], - }, - footer: { - contentTypes: ["flow"], - allowedRoles: [ - "group", - "none", - "presentation", - "doc-footnote", - ], - shadowRoot: !0, - }, - form: { - contentTypes: ["flow"], - allowedRoles: ["form", "search", "none", "presentation"], - }, - h1: { - contentTypes: ["heading", "flow"], - allowedRoles: ["none", "presentation", "tab", "doc-subtitle"], - shadowRoot: !0, - implicitAttrs: { "aria-level": "1" }, - }, - h2: { - contentTypes: ["heading", "flow"], - allowedRoles: ["none", "presentation", "tab", "doc-subtitle"], - shadowRoot: !0, - implicitAttrs: { "aria-level": "2" }, - }, - h3: { - contentTypes: ["heading", "flow"], - allowedRoles: ["none", "presentation", "tab", "doc-subtitle"], - shadowRoot: !0, - implicitAttrs: { "aria-level": "3" }, - }, - h4: { - contentTypes: ["heading", "flow"], - allowedRoles: ["none", "presentation", "tab", "doc-subtitle"], - shadowRoot: !0, - implicitAttrs: { "aria-level": "4" }, - }, - h5: { - contentTypes: ["heading", "flow"], - allowedRoles: ["none", "presentation", "tab", "doc-subtitle"], - shadowRoot: !0, - implicitAttrs: { "aria-level": "5" }, - }, - h6: { - contentTypes: ["heading", "flow"], - allowedRoles: ["none", "presentation", "tab", "doc-subtitle"], - shadowRoot: !0, - implicitAttrs: { "aria-level": "6" }, - }, - head: { allowedRoles: !1, noAriaAttrs: !0 }, - header: { - contentTypes: ["flow"], - allowedRoles: [ - "group", - "none", - "presentation", - "doc-footnote", - ], - shadowRoot: !0, - }, - hgroup: { contentTypes: ["heading", "flow"], allowedRoles: !0 }, - hr: { - contentTypes: ["flow"], - allowedRoles: ["none", "presentation", "doc-pagebreak"], - namingMethods: ["titleText", "singleSpace"], - }, - html: { allowedRoles: !1, noAriaAttrs: !0 }, - i: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - iframe: { - contentTypes: ["interactive", "embedded", "phrasing", "flow"], - allowedRoles: [ - "application", - "document", - "img", - "none", - "presentation", - ], - chromiumRole: "Iframe", - }, - img: { - variant: { - nonEmptyAlt: { - matches: [ - { attributes: { alt: "/.+/" } }, - { hasAccessibleName: !0 }, - ], - allowedRoles: [ - "button", - "checkbox", - "link", - "math", - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "meter", - "option", - "progressbar", - "radio", - "scrollbar", - "separator", - "slider", - "switch", - "tab", - "treeitem", - "doc-cover", - ], - }, - usemap: { - matches: "[usemap]", - contentTypes: ["interactive", "embedded", "flow"], - }, - default: { - allowedRoles: ["presentation", "none"], - contentTypes: ["embedded", "flow"], - }, - }, - namingMethods: ["altText"], - }, - input: { - variant: { - button: { - matches: { properties: { type: "button" } }, - allowedRoles: [ - "checkbox", - "combobox", - "link", - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "option", - "radio", - "switch", - "tab", - ], - }, - buttonType: { - matches: { - properties: { type: ["button", "submit", "reset"] }, - }, - namingMethods: [ - "valueText", - "titleText", - "buttonDefaultText", - ], - }, - checkboxPressed: { - matches: { - properties: { type: "checkbox" }, - attributes: { "aria-pressed": "/.*/" }, - }, - allowedRoles: [ - "button", - "menuitemcheckbox", - "option", - "switch", - ], - implicitAttrs: { "aria-checked": "false" }, - }, - checkbox: { - matches: { - properties: { type: "checkbox" }, - attributes: { "aria-pressed": null }, - }, - allowedRoles: ["menuitemcheckbox", "option", "switch"], - implicitAttrs: { "aria-checked": "false" }, - }, - noRoles: { - matches: { - properties: { - type: [ - "color", - "date", - "datetime-local", - "file", - "month", - "number", - "password", - "range", - "reset", - "submit", - "time", - "week", - ], - }, - }, - allowedRoles: !1, - }, - hidden: { - matches: { properties: { type: "hidden" } }, - contentTypes: ["flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - image: { - matches: { properties: { type: "image" } }, - allowedRoles: [ - "link", - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "radio", - "switch", - ], - namingMethods: [ - "altText", - "valueText", - "labelText", - "titleText", - "buttonDefaultText", - ], - }, - radio: { - matches: { properties: { type: "radio" } }, - allowedRoles: ["menuitemradio"], - implicitAttrs: { "aria-checked": "false" }, - }, - textWithList: { - matches: { - properties: { type: "text" }, - attributes: { list: "/.*/" }, - }, - allowedRoles: !1, - }, - default: { - contentTypes: ["interactive", "flow"], - allowedRoles: ["combobox", "searchbox", "spinbutton"], - implicitAttrs: { "aria-valuenow": "" }, - namingMethods: ["labelText", "placeholderText"], - }, - }, - }, - ins: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - kbd: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - label: { - contentTypes: ["interactive", "phrasing", "flow"], - allowedRoles: !1, - chromiumRole: "Label", - }, - legend: { allowedRoles: !1 }, - li: { - allowedRoles: [ - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "option", - "none", - "presentation", - "radio", - "separator", - "tab", - "treeitem", - "doc-biblioentry", - "doc-endnote", - ], - implicitAttrs: { "aria-setsize": "1", "aria-posinset": "1" }, - }, - link: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - main: { - contentTypes: ["flow"], - allowedRoles: !1, - shadowRoot: !0, - }, - map: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - math: { - contentTypes: ["embedded", "phrasing", "flow"], - allowedRoles: !1, - }, - mark: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - menu: { - contentTypes: ["flow"], - allowedRoles: [ - "directory", - "group", - "listbox", - "menu", - "menubar", - "none", - "presentation", - "radiogroup", - "tablist", - "toolbar", - "tree", - ], - }, - meta: { - variant: { - itemprop: { - matches: "[itemprop]", - contentTypes: ["phrasing", "flow"], - }, - }, - allowedRoles: !1, - noAriaAttrs: !0, - }, - meter: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - chromiumRole: "progressbar", - }, - nav: { - contentTypes: ["sectioning", "flow"], - allowedRoles: [ - "doc-index", - "doc-pagelist", - "doc-toc", - "menu", - "menubar", - "none", - "presentation", - "tablist", - ], - shadowRoot: !0, - }, - noscript: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - object: { - variant: { - usemap: { - matches: "[usemap]", - contentTypes: [ - "interactive", - "embedded", - "phrasing", - "flow", - ], - }, - default: { contentTypes: ["embedded", "phrasing", "flow"] }, - }, - allowedRoles: ["application", "document", "img"], - chromiumRole: "PluginObject", - }, - ol: { - contentTypes: ["flow"], - allowedRoles: [ - "directory", - "group", - "listbox", - "menu", - "menubar", - "none", - "presentation", - "radiogroup", - "tablist", - "toolbar", - "tree", - ], - }, - optgroup: { allowedRoles: !1 }, - option: { - allowedRoles: !1, - implicitAttrs: { "aria-selected": "false" }, - }, - output: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !0, - namingMethods: ["subtreeText"], - }, - p: { contentTypes: ["flow"], allowedRoles: !0, shadowRoot: !0 }, - param: { allowedRoles: !1, noAriaAttrs: !0 }, - picture: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - pre: { contentTypes: ["flow"], allowedRoles: !0 }, - progress: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - implicitAttrs: { - "aria-valuemax": "100", - "aria-valuemin": "0", - "aria-valuenow": "0", - }, - }, - q: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - rp: { allowedRoles: !0 }, - rt: { allowedRoles: !0 }, - ruby: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - s: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - samp: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - script: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - search: { - contentTypes: ["flow"], - allowedRoles: [ - "form", - "group", - "none", - "presentation", - "region", - "search", - ], - }, - section: { - contentTypes: ["sectioning", "flow"], - allowedRoles: [ - "alert", - "alertdialog", - "application", - "banner", - "complementary", - "contentinfo", - "dialog", - "document", - "feed", - "group", - "log", - "main", - "marquee", - "navigation", - "none", - "note", - "presentation", - "search", - "status", - "tabpanel", - "doc-abstract", - "doc-acknowledgments", - "doc-afterword", - "doc-appendix", - "doc-bibliography", - "doc-chapter", - "doc-colophon", - "doc-conclusion", - "doc-credit", - "doc-credits", - "doc-dedication", - "doc-endnotes", - "doc-epigraph", - "doc-epilogue", - "doc-errata", - "doc-example", - "doc-foreword", - "doc-glossary", - "doc-index", - "doc-introduction", - "doc-notice", - "doc-pagelist", - "doc-part", - "doc-preface", - "doc-prologue", - "doc-pullquote", - "doc-qna", - "doc-toc", - ], - shadowRoot: !0, - }, - select: { - variant: { - combobox: { - matches: { - attributes: { multiple: null, size: [null, "1"] }, - }, - allowedRoles: ["menu"], - }, - default: { allowedRoles: !1 }, - }, - contentTypes: ["interactive", "phrasing", "flow"], - implicitAttrs: { "aria-valuenow": "" }, - namingMethods: ["labelText"], - }, - slot: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - small: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - source: { allowedRoles: !1, noAriaAttrs: !0 }, - span: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !0, - shadowRoot: !0, - }, - strong: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !0, - }, - style: { allowedRoles: !1, noAriaAttrs: !0 }, - svg: { - contentTypes: ["embedded", "phrasing", "flow"], - allowedRoles: !0, - chromiumRole: "SVGRoot", - namingMethods: ["svgTitleText"], - }, - sub: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - summary: { allowedRoles: !1, namingMethods: ["subtreeText"] }, - sup: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - table: { - contentTypes: ["flow"], - allowedRoles: !0, - namingMethods: ["tableCaptionText", "tableSummaryText"], - }, - tbody: { allowedRoles: !0 }, - template: { - contentTypes: ["phrasing", "flow"], - allowedRoles: !1, - noAriaAttrs: !0, - }, - textarea: { - contentTypes: ["interactive", "phrasing", "flow"], - allowedRoles: !1, - implicitAttrs: { - "aria-valuenow": "", - "aria-multiline": "true", - }, - namingMethods: ["labelText", "placeholderText"], - }, - tfoot: { allowedRoles: !0 }, - thead: { allowedRoles: !0 }, - time: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - title: { allowedRoles: !1, noAriaAttrs: !0 }, - td: { allowedRoles: !0 }, - th: { allowedRoles: !0 }, - tr: { allowedRoles: !0 }, - track: { allowedRoles: !1, noAriaAttrs: !0 }, - u: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - ul: { - contentTypes: ["flow"], - allowedRoles: [ - "directory", - "group", - "listbox", - "menu", - "menubar", - "none", - "presentation", - "radiogroup", - "tablist", - "toolbar", - "tree", - ], - }, - var: { contentTypes: ["phrasing", "flow"], allowedRoles: !0 }, - video: { - variant: { - controls: { - matches: "[controls]", - contentTypes: [ - "interactive", - "embedded", - "phrasing", - "flow", - ], - }, - default: { contentTypes: ["embedded", "phrasing", "flow"] }, - }, - allowedRoles: ["application"], - chromiumRole: "video", - }, - wbr: { - contentTypes: ["phrasing", "flow"], - allowedRoles: ["presentation", "none"], - }, - }, - jb = qb, - zb = { - aliceblue: [240, 248, 255], - antiquewhite: [250, 235, 215], - aqua: [0, 255, 255], - aquamarine: [127, 255, 212], - azure: [240, 255, 255], - beige: [245, 245, 220], - bisque: [255, 228, 196], - black: [0, 0, 0], - blanchedalmond: [255, 235, 205], - blue: [0, 0, 255], - blueviolet: [138, 43, 226], - brown: [165, 42, 42], - burlywood: [222, 184, 135], - cadetblue: [95, 158, 160], - chartreuse: [127, 255, 0], - chocolate: [210, 105, 30], - coral: [255, 127, 80], - cornflowerblue: [100, 149, 237], - cornsilk: [255, 248, 220], - crimson: [220, 20, 60], - cyan: [0, 255, 255], - darkblue: [0, 0, 139], - darkcyan: [0, 139, 139], - darkgoldenrod: [184, 134, 11], - darkgray: [169, 169, 169], - darkgreen: [0, 100, 0], - darkgrey: [169, 169, 169], - darkkhaki: [189, 183, 107], - darkmagenta: [139, 0, 139], - darkolivegreen: [85, 107, 47], - darkorange: [255, 140, 0], - darkorchid: [153, 50, 204], - darkred: [139, 0, 0], - darksalmon: [233, 150, 122], - darkseagreen: [143, 188, 143], - darkslateblue: [72, 61, 139], - darkslategray: [47, 79, 79], - darkslategrey: [47, 79, 79], - darkturquoise: [0, 206, 209], - darkviolet: [148, 0, 211], - deeppink: [255, 20, 147], - deepskyblue: [0, 191, 255], - dimgray: [105, 105, 105], - dimgrey: [105, 105, 105], - dodgerblue: [30, 144, 255], - firebrick: [178, 34, 34], - floralwhite: [255, 250, 240], - forestgreen: [34, 139, 34], - fuchsia: [255, 0, 255], - gainsboro: [220, 220, 220], - ghostwhite: [248, 248, 255], - gold: [255, 215, 0], - goldenrod: [218, 165, 32], - gray: [128, 128, 128], - green: [0, 128, 0], - greenyellow: [173, 255, 47], - grey: [128, 128, 128], - honeydew: [240, 255, 240], - hotpink: [255, 105, 180], - indianred: [205, 92, 92], - indigo: [75, 0, 130], - ivory: [255, 255, 240], - khaki: [240, 230, 140], - lavender: [230, 230, 250], - lavenderblush: [255, 240, 245], - lawngreen: [124, 252, 0], - lemonchiffon: [255, 250, 205], - lightblue: [173, 216, 230], - lightcoral: [240, 128, 128], - lightcyan: [224, 255, 255], - lightgoldenrodyellow: [250, 250, 210], - lightgray: [211, 211, 211], - lightgreen: [144, 238, 144], - lightgrey: [211, 211, 211], - lightpink: [255, 182, 193], - lightsalmon: [255, 160, 122], - lightseagreen: [32, 178, 170], - lightskyblue: [135, 206, 250], - lightslategray: [119, 136, 153], - lightslategrey: [119, 136, 153], - lightsteelblue: [176, 196, 222], - lightyellow: [255, 255, 224], - lime: [0, 255, 0], - limegreen: [50, 205, 50], - linen: [250, 240, 230], - magenta: [255, 0, 255], - maroon: [128, 0, 0], - mediumaquamarine: [102, 205, 170], - mediumblue: [0, 0, 205], - mediumorchid: [186, 85, 211], - mediumpurple: [147, 112, 219], - mediumseagreen: [60, 179, 113], - mediumslateblue: [123, 104, 238], - mediumspringgreen: [0, 250, 154], - mediumturquoise: [72, 209, 204], - mediumvioletred: [199, 21, 133], - midnightblue: [25, 25, 112], - mintcream: [245, 255, 250], - mistyrose: [255, 228, 225], - moccasin: [255, 228, 181], - navajowhite: [255, 222, 173], - navy: [0, 0, 128], - oldlace: [253, 245, 230], - olive: [128, 128, 0], - olivedrab: [107, 142, 35], - orange: [255, 165, 0], - orangered: [255, 69, 0], - orchid: [218, 112, 214], - palegoldenrod: [238, 232, 170], - palegreen: [152, 251, 152], - paleturquoise: [175, 238, 238], - palevioletred: [219, 112, 147], - papayawhip: [255, 239, 213], - peachpuff: [255, 218, 185], - peru: [205, 133, 63], - pink: [255, 192, 203], - plum: [221, 160, 221], - powderblue: [176, 224, 230], - purple: [128, 0, 128], - rebeccapurple: [102, 51, 153], - red: [255, 0, 0], - rosybrown: [188, 143, 143], - royalblue: [65, 105, 225], - saddlebrown: [139, 69, 19], - salmon: [250, 128, 114], - sandybrown: [244, 164, 96], - seagreen: [46, 139, 87], - seashell: [255, 245, 238], - sienna: [160, 82, 45], - silver: [192, 192, 192], - skyblue: [135, 206, 235], - slateblue: [106, 90, 205], - slategray: [112, 128, 144], - slategrey: [112, 128, 144], - snow: [255, 250, 250], - springgreen: [0, 255, 127], - steelblue: [70, 130, 180], - tan: [210, 180, 140], - teal: [0, 128, 128], - thistle: [216, 191, 216], - tomato: [255, 99, 71], - turquoise: [64, 224, 208], - violet: [238, 130, 238], - wheat: [245, 222, 179], - white: [255, 255, 255], - whitesmoke: [245, 245, 245], - yellow: [255, 255, 0], - yellowgreen: [154, 205, 50], - }, - Vb = zb, - fc = { - ariaAttrs: cc, - ariaRoles: de({}, dc, Nb, Bb), - htmlElms: jb, - cssColors: Vb, - }, - Br = de({}, fc); - function Hb(e) { - Object.keys(Br).forEach(function (t) { - e[t] && (Br[t] = no(Br[t], e[t])); - }); - } - function $b() { - Object.keys(Br).forEach(function (e) { - Br[e] = fc[e]; - }); - } - var he = Br; - function Ub(e) { - var t = he.ariaRoles[e]; - return t ? !!t.unsupported : !1; - } - var xo = Ub; - function Gb(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.allowAbstract, - a = t.flagUnsupported, - n = a === void 0 ? !1 : a, - i = he.ariaRoles[e], - o = xo(e); - return !i || (n && o) ? !1 : r ? !0 : i.type !== "abstract"; - } - var qr = Gb; - function Wb(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.fallback, - a = t.abstracts, - n = t.dpub; - if (((e = e instanceof $e ? e : le(e)), e.props.nodeType !== 1)) - return null; - var i = (e.attr("role") || "").trim().toLowerCase(), - o = r ? Ze(i) : [i], - u = o.find(function (s) { - return !n && s.substr(0, 4) === "doc-" - ? !1 - : qr(s, { allowAbstract: a }); - }); - return u || null; - } - var De = Wb; - function Yb(e) { - return Object.keys(he.htmlElms).filter(function (t) { - var r = he.htmlElms[t]; - return r.contentTypes - ? r.contentTypes.includes(e) - : r.variant && - r.variant.default && - r.variant.default.contentTypes - ? r.variant.default.contentTypes.includes(e) - : !1; - }); - } - var Eo = Yb; - function Kb() { - return ue.get("globalAriaAttrs", function () { - return Object.keys(he.ariaAttrs).filter(function (e) { - return he.ariaAttrs[e].global; - }); - }); - } - var Dr = Kb; - function Xb(e) { - for (var t = [], r = e.rows, a = 0, n = r.length; a < n; a++) { - var i = r[a].cells; - t[a] = t[a] || []; - for (var o = 0, u = 0, s = i.length; u < s; u++) - for (var l = 0; l < i[u].colSpan; l++) { - for ( - var c = i[u].getAttribute("rowspan"), - d = - parseInt(c) === 0 || i[u].rowspan === 0 - ? r.length - : i[u].rowSpan, - f = 0; - f < d; - f++ - ) { - for (t[a + f] = t[a + f] || []; t[a + f][o]; ) o++; - t[a + f][o] = i[u]; - } - o++; - } - } - return t; - } - var Wt = Fe(Xb); - function Zb(e, t) { - var r, a; - for (t || (t = Wt(Lr(e, "table"))), r = 0; r < t.length; r++) - if (t[r] && ((a = t[r].indexOf(e)), a !== -1)) - return { x: a, y: r }; - } - var _n = Fe(Zb); - function Ao(e) { - var t = we(e), - r = t.vNode, - a = t.domNode, - n = r.attr("scope"), - i = r.attr("role"); - if (!["td", "th"].includes(r.props.nodeName)) - throw new TypeError("Expected TD or TH element"); - if (i === "columnheader") return "col"; - if (i === "rowheader") return "row"; - if (n === "col" || n === "row") return n; - if (r.props.nodeName !== "th") return !1; - if (!r.actualNode) return "auto"; - var o = Wt(Lr(a, "table")), - u = _n(a, o), - s = o[u.y].every(function (c) { - return c.nodeName.toUpperCase() === "TH"; - }); - if (s) return "col"; - var l = o - .map(function (c) { - return c[u.x]; - }) - .every(function (c) { - return c && c.nodeName.toUpperCase() === "TH"; - }); - return l ? "row" : "auto"; - } - function Jb(e) { - return ["col", "auto"].indexOf(Ao(e)) !== -1; - } - var jr = Jb; - function Qb(e) { - return ["row", "auto"].includes(Ao(e)); - } - var zr = Qb; - function ey(e) { - return e - ? e - .replace( - /\r\n/g, - ` -`, - ) - .replace(/\u00A0/g, " ") - .replace(/[\s]{2,}/g, " ") - .trim() - : ""; - } - var re = ey, - pc = function () { - return ue.get("sectioningContentSelector", function () { - return ( - Eo("sectioning") - .map(function (t) { - return "".concat(t, ":not([role])"); - }) - .join(", ") + - " , [role=article], [role=complementary], [role=navigation], [role=region]" - ); - }); - }, - mc = function () { - return ue.get("sectioningContentPlusMainSelector", function () { - return pc() + " , main:not([role]), [role=main]"; - }); - }; - function Co(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.checkTitle, - a = r === void 0 ? !1 : r; - return !!( - re(ga(e)) || - re(ba(e)) || - (a && e?.props.nodeType === 1 && re(e.attr("title"))) - ); - } - var ty = { - a: function (t) { - return t.hasAttr("href") ? "link" : null; - }, - area: function (t) { - return t.hasAttr("href") ? "link" : null; - }, - article: "article", - aside: function (t) { - return ut(t.parent, pc()) && !Co(t, { checkTitle: !0 }) - ? null - : "complementary"; - }, - body: "document", - button: "button", - datalist: "listbox", - dd: "definition", - dfn: "term", - details: "group", - dialog: "dialog", - dt: "term", - fieldset: "group", - figure: "figure", - footer: function (t) { - var r = ut(t, mc()); - return r ? null : "contentinfo"; - }, - form: function (t) { - return Co(t) ? "form" : null; - }, - h1: "heading", - h2: "heading", - h3: "heading", - h4: "heading", - h5: "heading", - h6: "heading", - header: function (t) { - var r = ut(t, mc()); - return r ? null : "banner"; - }, - hr: "separator", - img: function (t) { - var r = t.hasAttr("alt") && !t.attr("alt"), - a = Dr().find(function (n) { - return t.hasAttr(n); - }); - return r && !a && !Ne(t) ? "presentation" : "img"; - }, - input: function (t) { - var r; - if (t.hasAttr("list")) { - var a = Ot(t.actualNode, "list").filter(function (n) { - return !!n; - })[0]; - r = a && a.nodeName.toLowerCase() === "datalist"; - } - switch (t.props.type) { - case "checkbox": - return "checkbox"; - case "number": - return "spinbutton"; - case "radio": - return "radio"; - case "range": - return "slider"; - case "search": - return r ? "combobox" : "searchbox"; - case "button": - case "image": - case "reset": - case "submit": - return "button"; - case "text": - case "tel": - case "url": - case "email": - case "": - return r ? "combobox" : "textbox"; - default: - return "textbox"; - } - }, - li: "listitem", - main: "main", - math: "math", - menu: "list", - meter: "meter", - nav: "navigation", - ol: "list", - optgroup: "group", - option: "option", - output: "status", - progress: "progressbar", - search: "search", - section: function (t) { - return Co(t) ? "region" : null; - }, - select: function (t) { - return t.hasAttr("multiple") || parseInt(t.attr("size")) > 1 - ? "listbox" - : "combobox"; - }, - summary: "button", - table: "table", - tbody: "rowgroup", - td: function (t) { - var r = ut(t, "table"), - a = De(r); - return ["grid", "treegrid"].includes(a) ? "gridcell" : "cell"; - }, - textarea: "textbox", - tfoot: "rowgroup", - th: function (t) { - if (jr(t)) return "columnheader"; - if (zr(t)) return "rowheader"; - }, - thead: "rowgroup", - tr: "row", - ul: "list", - }, - Fo = ty; - function ry(e, t) { - var r = O(t); - if (Array.isArray(t) && typeof e < "u") return t.includes(e); - if (r === "function") return !!t(e); - if (e != null) { - if (t instanceof RegExp) return t.test(e); - if (/^\/.*\/$/.test(t)) { - var a = t.substring(1, t.length - 1); - return new RegExp(a).test(e); - } - } - return t === e; - } - var _r = ry; - function ay(e, t) { - return _r(!!Ge(e), t); - } - var hc = ay; - function ny(e, t) { - var r = O(t); - if (r !== "object" || Array.isArray(t) || t instanceof RegExp) - throw new Error("Expect matcher to be an object"); - return Object.keys(t).every(function (a) { - return _r(e(a), t[a]); - }); - } - var To = ny; - function iy(e, t) { - return ( - (e = we(e).vNode), - To(function (r) { - return e.attr(r); - }, t) - ); - } - var vc = iy; - function gc(e, t) { - return !!t(e); - } - function oy(e, t) { - return _r(De(e), t); - } - var bc = oy; - function uy(e, t) { - return _r(Mt(e), t); - } - var yc = uy; - function sy(e, t) { - return ((e = we(e).vNode), _r(e.props.nodeName, t)); - } - var wc = sy; - function ly(e, t) { - return ( - (e = we(e).vNode), - To(function (r) { - return e.props[r]; - }, t) - ); - } - var Dc = ly; - function cy(e, t) { - return _r(ce(e), t); - } - var _c = cy, - xc = { - hasAccessibleName: hc, - attributes: vc, - condition: gc, - explicitRole: bc, - implicitRole: yc, - nodeName: wc, - properties: Dc, - semanticRole: _c, - }; - function Ec(e, t) { - return ( - (e = we(e).vNode), - Array.isArray(t) - ? t.some(function (r) { - return Ec(e, r); - }) - : typeof t == "string" - ? Gi(e, t) - : Object.keys(t).every(function (r) { - if (!xc[r]) - throw new Error( - 'Unknown matcher type "'.concat(r, '"'), - ); - var a = xc[r], - n = t[r]; - return a(e, n); - }) - ); - } - var Ac = Ec; - function dy(e, t) { - return Ac(e, t); - } - var lt = dy; - ((lt.hasAccessibleName = hc), - (lt.attributes = vc), - (lt.condition = gc), - (lt.explicitRole = bc), - (lt.fromDefinition = Ac), - (lt.fromFunction = To), - (lt.fromPrimative = _r), - (lt.implicitRole = yc), - (lt.nodeName = wc), - (lt.properties = Dc), - (lt.semanticRole = _c)); - var ya = lt; - function fy(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.noMatchAccessibleName, - a = r === void 0 ? !1 : r, - n = he.htmlElms[e.props.nodeName]; - if (!n) return {}; - if (!n.variant) return n; - var i = n.variant, - o = qe(n, Fp); - for (var u in i) - if (!(!i.hasOwnProperty(u) || u === "default")) { - for ( - var s = i[u], - l = s.matches, - c = qe(s, Tp), - d = Array.isArray(l) ? l : [l], - f = 0; - f < d.length && a; - f++ - ) - if (d[f].hasOwnProperty("hasAccessibleName")) return n; - if (ya(e, l)) - for (var p in c) c.hasOwnProperty(p) && (o[p] = c[p]); - } - for (var m in i.default) - i.default.hasOwnProperty(m) && - typeof o[m] > "u" && - (o[m] = i.default[m]); - return o; - } - var xr = fy; - function py(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.chromium, - a = e instanceof $e ? e : le(e); - if (((e = a.actualNode), !a)) - throw new ReferenceError( - "Cannot get implicit role of a node outside the current scope.", - ); - var n = a.props.nodeName, - i = Fo[n]; - if (!i && r) { - var o = xr(a), - u = o.chromiumRole; - return u || null; - } - return typeof i == "function" ? i(a) : i || null; - } - var Mt = py, - my = { - td: ["tr"], - th: ["tr"], - tr: ["thead", "tbody", "tfoot", "table"], - thead: ["table"], - tbody: ["table"], - tfoot: ["table"], - li: ["ol", "ul"], - dt: ["dl", "div"], - dd: ["dl", "div"], - div: ["dl"], - }; - function Cc(e, t) { - var r = my[e.props.nodeName]; - if (!r) return null; - if (!e.parent) { - if (!e.actualNode) return null; - throw new ReferenceError( - "Cannot determine role presentational inheritance of a required parent outside the current scope.", - ); - } - if (!r.includes(e.parent.props.nodeName)) return null; - var a = De(e.parent, t); - return ["none", "presentation"].includes(a) && !Tc(e.parent) - ? a - : a - ? null - : Cc(e.parent, t); - } - function Fc(e, t) { - var r = t.chromium, - a = qe(t, Rp), - n = Mt(e, { chromium: r }); - if (!n) return null; - var i = Cc(e, a); - return i || n; - } - function Tc(e) { - var t = Dr().some(function (r) { - return e.hasAttr(r); - }); - return t || Ne(e); - } - function hy(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.noImplicit, - a = qe(t, Sp), - n = we(e), - i = n.vNode; - if (i.props.nodeType !== 1) return null; - var o = De(i, a); - return o - ? ["presentation", "none"].includes(o) && Tc(i) - ? r - ? null - : Fc(i, a) - : o - : r - ? null - : Fc(i, a); - } - function vy(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.noPresentational, - a = qe(t, kp), - n = hy(e, a); - return r && ["presentation", "none"].includes(n) ? null : n; - } - var ce = vy, - gy = ["iframe"]; - function by(e) { - var t = we(e), - r = t.vNode; - return r.props.nodeType !== 1 || - !e.hasAttr("title") || - (!lt(r, gy) && ["none", "presentation"].includes(ce(r))) - ? "" - : r.attr("title"); - } - var xn = by; - function yy(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.strict; - if (((e = e instanceof $e ? e : le(e)), e.props.nodeType !== 1)) - return !1; - var a = ce(e), - n = he.ariaRoles[a]; - return n && n.nameFromContent - ? !0 - : r - ? !1 - : !n || ["presentation", "none"].includes(a); - } - var Rc = yy; - function wy(e) { - var t = e.actualNode, - r = e.children; - if (!r) - throw new Error("getOwnedVirtual requires a virtual node"); - if (e.hasAttr("aria-owns")) { - var a = Ot(t, "aria-owns") - .filter(function (n) { - return !!n; - }) - .map(function (n) { - return x.utils.getNodeFromTree(n); - }); - return [].concat(ne(r), ne(a)); - } - return ne(r); - } - var wa = wy, - Sc = { accessibleNameFromFieldValue: ["progressbar"] }; - function Re(e) { - return ((e = we(e).vNode), Ro(e)); - } - var Ro = Fe(function (t, r) { - return Il(t) || wn(t, { skipAncestors: !0, isAncestor: r }) - ? !1 - : t.actualNode && t.props.nodeName === "area" - ? !so(t, Ro) - : er(t, { skipAncestors: !0, isAncestor: r }) - ? !1 - : t.parent - ? Ro(t.parent, !0) - : !0; - }); - function kc(e, t, r) { - var a = we(e), - n = a.vNode, - i = t ? Re : st, - o = !e.actualNode || (e.actualNode && i(e)), - u = n.children - .map(function (s) { - var l = s.props, - c = l.nodeType, - d = l.nodeValue; - if (c === 3) { - if (d && o) return d; - } else if (!r) return kc(s, t); - }) - .join(""); - return re(u); - } - var It = kc, - Dy = [ - "button", - "checkbox", - "color", - "file", - "hidden", - "image", - "password", - "radio", - "reset", - "submit", - ]; - function _y(e) { - e = e instanceof $e ? e : le(e); - var t = e.props.nodeName; - return ( - t === "textarea" || - (t === "input" && - !Dy.includes((e.attr("type") || "").toLowerCase())) - ); - } - var Oc = _y; - function xy(e) { - e = e instanceof $e ? e : le(e); - var t = e.props.nodeName; - return t === "select"; - } - var Mc = xy; - function Ey(e) { - var t = De(e); - return t === "textbox"; - } - var Ic = Ey; - function Ay(e) { - var t = De(e); - return t === "listbox"; - } - var Pc = Ay; - function Cy(e) { - var t = De(e); - return t === "combobox"; - } - var Nc = Cy, - Fy = ["progressbar", "scrollbar", "slider", "spinbutton"]; - function Ty(e) { - var t = De(e); - return Fy.includes(t); - } - var Lc = Ty, - Bc = [ - "textbox", - "progressbar", - "scrollbar", - "slider", - "spinbutton", - "combobox", - "listbox", - ], - So = { - nativeTextboxValue: Sy, - nativeSelectValue: ky, - ariaTextboxValue: Oy, - ariaListboxValue: qc, - ariaComboboxValue: My, - ariaRangeValue: Iy, - }; - function Ry(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = e.actualNode, - a = Sc.accessibleNameFromFieldValue || [], - n = ce(e); - if (t.startNode === e || !Bc.includes(n) || a.includes(n)) - return ""; - var i = Object.keys(So).map(function (u) { - return So[u]; - }), - o = i.reduce(function (u, s) { - return u || s(e, t); - }, ""); - return (t.debug && vr(o || "{empty-value}", r, t), o); - } - function Sy(e) { - var t = we(e), - r = t.vNode; - return (Oc(r) && r.props.value) || ""; - } - function ky(e) { - var t = we(e), - r = t.vNode; - if (!Mc(r)) return ""; - var a = ft(r, "option"), - n = a.filter(function (i) { - return i.props.selected; - }); - return ( - n.length || n.push(a[0]), - n - .map(function (i) { - return It(i); - }) - .join(" ") || "" - ); - } - function Oy(e) { - var t = we(e), - r = t.vNode, - a = t.domNode; - return Ic(r) - ? !a || (a && !er(a)) - ? It(r, !0) - : a.textContent - : ""; - } - function qc(e, t) { - var r = we(e), - a = r.vNode; - if (!Pc(a)) return ""; - var n = wa(a).filter(function (i) { - return ce(i) === "option" && i.attr("aria-selected") === "true"; - }); - return n.length === 0 ? "" : Ge(n[0], t); - } - function My(e, t) { - var r = we(e), - a = r.vNode; - if (!Nc(a)) return ""; - var n = wa(a).filter(function (i) { - return ce(i) === "listbox"; - })[0]; - return n ? qc(n, t) : ""; - } - function Iy(e) { - var t = we(e), - r = t.vNode; - if (!Lc(r) || !r.hasAttr("aria-valuenow")) return ""; - var a = +r.attr("aria-valuenow"); - return isNaN(a) ? "0" : String(a); - } - var jc = Ry; - function Py(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = Ge.alreadyProcessed; - t.startNode = t.startNode || e; - var a = t, - n = a.strict, - i = a.inControlContext, - o = a.inLabelledByContext, - u = ce(e), - s = xr(e, { noMatchAccessibleName: !0 }), - l = s.contentTypes; - if ( - r(e, t) || - e.props.nodeType !== 1 || - (l != null && l.includes("embedded")) || - Bc.includes(u) || - (!t.subtreeDescendant && - !t.inLabelledByContext && - !Rc(e, { strict: n })) - ) - return ""; - if (!n) { - var c = !i && !o; - t = de({ subtreeDescendant: c }, t); - } - return wa(e).reduce(function (d, f) { - return Ly(d, f, t); - }, ""); - } - var Ny = Eo("phrasing").concat(["#text"]); - function Ly(e, t, r) { - var a = t.props.nodeName, - n = Ge(t, r); - return n - ? (Ny.includes(a) || - (n[0] !== " " && (n += " "), - e && e[e.length - 1] !== " " && (n = " " + n)), - e + n) - : e; - } - var tr = Py; - function By(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = Ge.alreadyProcessed; - if (t.inControlContext || t.inLabelledByContext || r(e, t)) - return ""; - t.startNode || (t.startNode = e); - var a = de({ inControlContext: !0 }, t), - n = qy(e), - i = ut(e, "label"), - o; - return ( - i - ? ((o = [].concat(ne(n), [i.actualNode])), o.sort(Cu)) - : (o = n), - o - .map(function (u) { - return wr(u, a); - }) - .filter(function (u) { - return u !== ""; - }) - .join(" ") - ); - } - function qy(e) { - if (!e.attr("id")) return []; - if (!e.actualNode) - throw new TypeError( - "Cannot resolve explicit label reference for non-DOM nodes", - ); - return Tl({ - elm: "label", - attr: "for", - value: e.attr("id"), - context: e.actualNode, - }); - } - var ko = By, - jy = { - submit: "Submit", - image: "Submit", - reset: "Reset", - button: "", - }, - zy = { - valueText: function (t) { - return t.props.value || ""; - }, - buttonDefaultText: function (t) { - return jy[t.props.type] || ""; - }, - tableCaptionText: En.bind(null, "caption"), - figureText: En.bind(null, "figcaption"), - svgTitleText: En.bind(null, "title"), - fieldsetLegendText: En.bind(null, "legend"), - altText: Oo.bind(null, "alt"), - tableSummaryText: Oo.bind(null, "summary"), - titleText: xn, - subtreeText: tr, - labelText: ko, - singleSpace: function () { - return " "; - }, - placeholderText: Oo.bind(null, "placeholder"), - }; - function Oo(e, t) { - return t.attr(e) || ""; - } - function En(e, t, r) { - var a = t.actualNode; - e = e.toLowerCase(); - var n = [e, a.nodeName.toLowerCase()].join(","), - i = a.querySelector(n); - return !i || i.nodeName.toLowerCase() !== e ? "" : wr(i, r); - } - var zc = zy; - function Vc(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = e.actualNode; - if ( - e.props.nodeType !== 1 || - ["presentation", "none"].includes(ce(e)) - ) - return ""; - var a = Vy(e), - n = a.reduce(function (i, o) { - return i || o(e, t); - }, ""); - return (t.debug && x.log(n || "{empty-value}", r, t), n); - } - function Vy(e) { - var t = xr(e, { noMatchAccessibleName: !0 }), - r = t.namingMethods || []; - return r.map(function (a) { - return zc[a]; - }); - } - function Hc() { - return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g; - } - function $c() { - return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g; - } - function Uc() { - return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g; - } - function Gc() { - return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g; - } - var Mo = function () { - return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g; - }; - function Hy(e, t) { - var r = t.emoji, - a = t.nonBmp, - n = t.punctuations, - i = !1; - return ( - r && (i || (i = Mo().test(e))), - a && (i || (i = Hc().test(e) || Uc().test(e) || Gc().test(e))), - n && (i || (i = $c().test(e))), - i - ); - } - var Io = Hy; - function Po(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 0.15, - r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : 3, - a = e.actualNode.nodeValue.trim(); - if (!re(a) || Io(a, { emoji: !0, nonBmp: !0 })) return !1; - var n = ue.get("canvasContext", function () { - return L.createElement("canvas").getContext("2d", { - willReadFrequently: !0, - }); - }), - i = n.canvas, - o = ue.get("fonts", function () { - return {}; - }), - u = E.getComputedStyle(e.parent.actualNode), - s = u.getPropertyValue("font-family"); - o[s] || (o[s] = { occurrences: 0, numLigatures: 0 }); - var l = o[s]; - if (l.occurrences >= r) { - if (l.numLigatures / l.occurrences === 1) return !0; - if (l.numLigatures === 0) return !1; - } - l.occurrences++; - var c = 30, - d = "".concat(c, "px ").concat(s); - n.font = d; - var f = a.charAt(0), - p = n.measureText(f).width; - if (p === 0) return (l.numLigatures++, !0); - if (p < 30) { - var m = 30 / p; - ((p *= m), (c *= m), (d = "".concat(c, "px ").concat(s))); - } - ((i.width = p), - (i.height = c), - (n.font = d), - (n.textAlign = "left"), - (n.textBaseline = "top"), - n.fillText(f, 0, 0)); - var h = new Uint32Array(n.getImageData(0, 0, p, c).data.buffer); - if ( - !h.some(function (F) { - return F; - }) - ) - return (l.numLigatures++, !0); - (n.clearRect(0, 0, p, c), n.fillText(a, 0, 0)); - var v = new Uint32Array(n.getImageData(0, 0, p, c).data.buffer), - g = h.reduce(function (F, R, I) { - return (R === 0 && v[I] === 0) || (R !== 0 && v[I] !== 0) - ? F - : ++F; - }, 0), - b = a.split("").reduce(function (F, R) { - return F + n.measureText(R).width; - }, 0), - D = n.measureText(a).width, - w = g / h.length, - _ = 1 - D / b; - return w >= t && _ >= t ? (l.numLigatures++, !0) : !1; - } - function Ge(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}; - if (((t = Wy(e, t)), Uy(e, t) || Gy(e, t))) return ""; - var r = [ga, ba, Vc, jc, tr, $y, xn], - a = r.reduce(function (n, i) { - return ( - t.startNode === e && (n = re(n)), - n !== "" ? n : i(e, t) - ); - }, ""); - return ( - t.debug && x.log(a || "{empty-value}", e.actualNode, t), - a - ); - } - function $y(e) { - return e.props.nodeType !== 3 ? "" : e.props.nodeValue; - } - function Uy(e, t) { - return !e || e.props.nodeType !== 1 || t.includeHidden - ? !1 - : !Re(e); - } - function Gy(e, t) { - var r, - a = t.ignoreIconLigature, - n = t.pixelThreshold, - i = - (r = t.occurrenceThreshold) !== null && r !== void 0 - ? r - : t.occuranceThreshold; - return e.props.nodeType !== 3 || !a ? !1 : Po(e, n, i); - } - function Wy(e, t) { - return ( - t.startNode || (t = de({ startNode: e }, t)), - e.props.nodeType === 1 && - t.inLabelledByContext && - t.includeHidden === void 0 && - (t = de({ includeHidden: !Re(e) }, t)), - t - ); - } - Ge.alreadyProcessed = function (t, r) { - return ( - (r.processed = r.processed || []), - r.processed.includes(t) ? !0 : (r.processed.push(t), !1) - ); - }; - function Yy(e, t) { - var r = t.emoji, - a = t.nonBmp, - n = t.punctuations; - return ( - r && (e = e.replace(Mo(), "")), - a && - (e = e.replace(Hc(), "").replace(Uc(), "").replace(Gc(), "")), - n && (e = e.replace($c(), "")), - e - ); - } - var Da = Yy; - function Ky(e) { - return Xy(e) || Zy(e) || Jy(e) || Qy(e) ? 0 : 1; - } - function Xy(e) { - return re(e).length === 0; - } - function Zy(e) { - return e.length === 1 && e.match(/\D/); - } - function Jy(e) { - var t = ["aa", "abc"]; - return t.includes(e.toLowerCase()); - } - function Qy(e) { - var t = Da(e, { emoji: !0, nonBmp: !0, punctuations: !0 }); - return !re(t); - } - var No = Ky, - Er = { - stateTerms: ["on", "off"], - standaloneTerms: [ - "name", - "honorific-prefix", - "given-name", - "additional-name", - "family-name", - "honorific-suffix", - "nickname", - "username", - "new-password", - "current-password", - "organization-title", - "organization", - "street-address", - "address-line1", - "address-line2", - "address-line3", - "address-level4", - "address-level3", - "address-level2", - "address-level1", - "country", - "country-name", - "postal-code", - "cc-name", - "cc-given-name", - "cc-additional-name", - "cc-family-name", - "cc-number", - "cc-exp", - "cc-exp-month", - "cc-exp-year", - "cc-csc", - "cc-type", - "transaction-currency", - "transaction-amount", - "language", - "bday", - "bday-day", - "bday-month", - "bday-year", - "sex", - "url", - "photo", - "one-time-code", - ], - qualifiers: ["home", "work", "mobile", "fax", "pager"], - qualifiedTerms: [ - "tel", - "tel-country-code", - "tel-national", - "tel-area-code", - "tel-local", - "tel-local-prefix", - "tel-local-suffix", - "tel-extension", - "email", - "impp", - ], - locations: ["billing", "shipping"], - }; - function e0(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.looseTyped, - a = r === void 0 ? !1 : r, - n = t.stateTerms, - i = n === void 0 ? [] : n, - o = t.locations, - u = o === void 0 ? [] : o, - s = t.qualifiers, - l = s === void 0 ? [] : s, - c = t.standaloneTerms, - d = c === void 0 ? [] : c, - f = t.qualifiedTerms, - p = f === void 0 ? [] : f, - m = t.ignoredValues, - h = m === void 0 ? [] : m; - if ( - ((e = e.toLowerCase().trim()), - (i = i.concat(Er.stateTerms)), - i.includes(e) || e === "") - ) - return !0; - ((l = l.concat(Er.qualifiers)), - (u = u.concat(Er.locations)), - (d = d.concat(Er.standaloneTerms)), - (p = p.concat(Er.qualifiedTerms))); - var v = e.split(/\s+/g); - if ( - (v[v.length - 1] === "webauthn" && (v.pop(), v.length === 0)) || - (!a && - (v[0].length > 8 && - v[0].substr(0, 8) === "section-" && - v.shift(), - u.includes(v[0]) && v.shift(), - l.includes(v[0]) && (v.shift(), (d = [])), - v.length !== 1)) - ) - return !1; - var g = v[v.length - 1]; - if (!h.includes(g)) return d.includes(g) || p.includes(g); - } - var Wc = e0; - function t0(e) { - var t, r; - return (e.attr("aria-labelledby") && - ((t = Ot(e.actualNode, "aria-labelledby")), - (r = t - .map(function (a) { - var n = le(a); - return n ? It(n) : ""; - }) - .join(" ") - .trim()), - r)) || - ((r = e.attr("aria-label")), r && ((r = re(r)), r)) - ? r - : null; - } - var An = t0; - function r0(e, t, r) { - return ((e = le(e)), It(e, t, r)); - } - var Yc = r0; - function a0(e) { - var t, r, a; - if (((r = An(e)), r)) return r; - if (e.attr("id")) { - if (!e.actualNode) - throw new TypeError( - "Cannot resolve explicit label reference for non-DOM nodes", - ); - var n = Oe(e.attr("id")); - if ( - ((a = Xe(e.actualNode)), - (t = a.querySelector('label[for="' + n + '"]')), - (r = t && Yc(t, !0)), - r) - ) - return r; - } - return ((t = ut(e, "label")), (r = t && It(t, !0)), r || null); - } - var Cn = a0; - function n0(e) { - return ((e = le(e)), Cn(e)); - } - var i0 = n0, - o0 = [ - { - matches: [ - { nodeName: "textarea" }, - { - nodeName: "input", - properties: { - type: [ - "text", - "password", - "search", - "tel", - "email", - "url", - ], - }, - }, - ], - namingMethods: "labelText", - }, - { - matches: { - nodeName: "input", - properties: { type: ["button", "submit", "reset"] }, - }, - namingMethods: [ - "valueText", - "titleText", - "buttonDefaultText", - ], - }, - { - matches: { nodeName: "input", properties: { type: "image" } }, - namingMethods: [ - "altText", - "valueText", - "labelText", - "titleText", - "buttonDefaultText", - ], - }, - { matches: "button", namingMethods: "subtreeText" }, - { matches: "fieldset", namingMethods: "fieldsetLegendText" }, - { matches: "OUTPUT", namingMethods: "subtreeText" }, - { - matches: [ - { nodeName: "select" }, - { - nodeName: "input", - properties: { - type: /^(?!text|password|search|tel|email|url|button|submit|reset)/, - }, - }, - ], - namingMethods: "labelText", - }, - { matches: "summary", namingMethods: "subtreeText" }, - { - matches: "figure", - namingMethods: ["figureText", "titleText"], - }, - { matches: "img", namingMethods: "altText" }, - { - matches: "table", - namingMethods: ["tableCaptionText", "tableSummaryText"], - }, - { - matches: ["hr", "br"], - namingMethods: ["titleText", "singleSpace"], - }, - ], - u0 = o0; - function Kc(e) { - var t = st(e), - r = []; - return ( - e.children.forEach(function (a) { - a.actualNode.nodeType === 3 - ? t && r.push(a) - : (r = r.concat(Kc(a))); - }), - r - ); - } - var s0 = Kc, - l0 = Fe(function (t) { - var r = le(t), - a = r.boundingClientRect, - n = [], - i = ma(r); - return ( - t.childNodes.forEach(function (o) { - if (!(o.nodeType !== 3 || re(o.nodeValue) === "")) { - var u = c0(o); - d0(u, a) || n.push.apply(n, ne(Xc(u, i))); - } - }), - n.length ? n : Xc([a], i) - ); - }), - Lo = l0; - function c0(e) { - var t = L.createRange(); - return (t.selectNodeContents(e), Array.from(t.getClientRects())); - } - function d0(e, t) { - return e.some(function (r) { - var a = ha(r); - return !vn(a, t); - }); - } - function Xc(e, t) { - var r = []; - return ( - e.forEach(function (a) { - if (!(a.width < 1 || a.height < 1)) { - var n = t.reduce(function (i, o) { - return i && gn(i, o.boundingClientRect); - }, a); - n && r.push(n); - } - }), - r - ); - } - function f0(e) { - yr(); - var t = le(e), - r = t._grid; - if (!r) return []; - var a = Lo(e); - return a.map(function (n) { - return Do(r, n); - }); - } - var Bo = f0, - p0 = [ - "checkbox", - "img", - "meter", - "progressbar", - "scrollbar", - "radio", - "slider", - "spinbutton", - "textbox", - ]; - function m0(e) { - var t = we(e), - r = t.vNode, - a = x.commons.aria.getExplicitRole(r); - if (a) return p0.indexOf(a) !== -1; - switch (r.props.nodeName) { - case "img": - case "iframe": - case "object": - case "video": - case "audio": - case "canvas": - case "svg": - case "math": - case "button": - case "select": - case "textarea": - case "keygen": - case "progress": - case "meter": - return !0; - case "input": - return r.props.type !== "hidden"; - default: - return !1; - } - } - var qo = m0, - h0 = [ - "head", - "title", - "template", - "script", - "style", - "iframe", - "object", - "video", - "audio", - "noscript", - ]; - function jo(e) { - return h0.includes(e.props.nodeName) - ? !1 - : e.children.some(function (t) { - var r = t.props; - return r.nodeType === 3 && r.nodeValue.trim(); - }); - } - function Zc(e, t, r) { - return ( - jo(e) || - qo(e.actualNode) || - (!r && !!An(e)) || - (!t && - e.children.some(function (a) { - return a.actualNode.nodeType === 1 && Zc(a); - })) - ); - } - var _a = Zc; - function v0(e, t, r) { - return ((e = le(e)), _a(e, t, r)); - } - var Fn = v0; - function zo(e) { - return typeof e.children > "u" || jo(e) - ? !0 - : e.props.nodeType === 1 && qo(e) - ? !!x.commons.text.accessibleTextVirtual(e) - : e.children.some(function (t) { - return !t.attr("lang") && zo(t) && !er(t); - }); - } - function g0(e) { - var t = Lt(e.getAttribute("tabindex")); - return t > -1 && Ne(e) && !_o(e); - } - var Jc = g0; - function Qc(e, t) { - var r = we(e), - a = r.vNode, - n = r.domNode; - return a - ? (a._isHiddenWithCSS === void 0 && - (a._isHiddenWithCSS = ed(n, t)), - a._isHiddenWithCSS) - : ed(n, t); - } - function ed(e, t) { - if ( - e.nodeType === 9 || - (e.nodeType === 11 && (e = e.host), - ["STYLE", "SCRIPT"].includes(e.nodeName.toUpperCase())) - ) - return !1; - var r = E.getComputedStyle(e, null); - if (!r) - throw new Error("Style does not exist for the given element."); - var a = r.getPropertyValue("display"); - if (a === "none") return !0; - var n = ["hidden", "collapse"], - i = r.getPropertyValue("visibility"); - if ( - (n.includes(i) && !t) || - (n.includes(i) && t && n.includes(t)) - ) - return !0; - var o = Ue(e); - return o && !n.includes(i) ? Qc(o, i) : !1; - } - var b0 = Qc; - function y0(e) { - var t = e.doctype; - return t === null - ? !1 - : t.name === "html" && !t.publicId && !t.systemId; - } - var td = y0; - function w0(e) { - var t; - (e instanceof $e || - ((t = E) !== null && - t !== void 0 && - t.Node && - e instanceof E.Node)) && - (e = x.commons.aria.getRole(e)); - var r = he.ariaRoles[e]; - return r?.type || null; - } - var At = w0; - function rd(e, t) { - t(e.actualNode) !== !1 && - e.children.forEach(function (r) { - return rd(r, t); - }); - } - var D0 = [ - "block", - "list-item", - "table", - "flex", - "grid", - "inline-block", - ]; - function ad(e) { - var t = E.getComputedStyle(e).getPropertyValue("display"); - return D0.includes(t) || t.substr(0, 6) === "table-"; - } - function _0(e) { - for (var t = Ue(e); t && !ad(t); ) t = Ue(t); - return le(t); - } - function x0(e, t) { - if (ad(e)) return !1; - var r = _0(e), - a = "", - n = "", - i = 0; - return ( - rd(r, function (o) { - if (i === 2) return !1; - if ( - (o.nodeType === 3 && (a += o.nodeValue), o.nodeType === 1) - ) { - var u = (o.nodeName || "").toUpperCase(); - if ((o === e && (i = 1), ["BR", "HR"].includes(u))) - i === 0 ? ((a = ""), (n = "")) : (i = 2); - else { - if ( - o.style.display === "none" || - o.style.overflow === "hidden" || - !["", null, "none"].includes(o.style.float) || - !["", null, "relative"].includes(o.style.position) - ) - return !1; - if (At(o) === "widget") return ((n += o.textContent), !1); - } - } - }), - (a = re(a)), - t != null && t.noLengthCompare - ? a.length !== 0 - : ((n = re(n)), a.length > n.length) - ); - } - var Vo = x0; - function E0(e) { - e = e || {}; - var t = e.modalPercent || 0.75; - if (ue.get("isModalOpen")) return ue.get("isModalOpen"); - var r = Bt( - x._tree[0], - "dialog, [role=dialog], [aria-modal=true]", - st, - ); - if (r.length) return (ue.set("isModalOpen", !0), !0); - for ( - var a = pn(E), - n = a.width * t, - i = a.height * t, - o = (a.width - n) / 2, - u = (a.height - i) / 2, - s = [ - { x: o, y: u }, - { x: a.width - o, y: u }, - { x: a.width / 2, y: a.height / 2 }, - { x: o, y: a.height - u }, - { x: a.width - o, y: a.height - u }, - ], - l = s.map(function (p) { - return Array.from(L.elementsFromPoint(p.x, p.y)); - }), - c = function () { - var m = l[f].find(function (h) { - var v = E.getComputedStyle(h); - return ( - parseInt(v.width, 10) >= n && - parseInt(v.height, 10) >= i && - v.getPropertyValue("pointer-events") !== "none" && - (v.position === "absolute" || v.position === "fixed") - ); - }); - if ( - m && - l.every(function (h) { - return h.includes(m); - }) - ) - return (ue.set("isModalOpen", !0), { v: !0 }); - }, - d, - f = 0; - f < l.length; - f++ - ) - if (((d = c()), d)) return d.v; - ue.set("isModalOpen", void 0); - } - var xa = E0; - function nd(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 2, - r = e.ownerDocument.createRange(); - (r.setStart(e, 0), r.setEnd(e, e.childNodes.length)); - var a = 0, - n = 0, - i = Ce(r.getClientRects()), - o; - try { - for (i.s(); !(o = i.n()).done; ) { - var u = o.value; - if (!(u.height <= t)) - if (a > u.top + t) a = Math.max(a, u.bottom); - else if (n === 0) ((a = u.bottom), n++); - else return !0; - } - } catch (s) { - i.e(s); - } finally { - i.f(); - } - return !1; - } - function A0(e) { - return e instanceof E.Node; - } - var C0 = A0, - Ho = "color.incompleteData", - F0 = { - set: function (t, r) { - if (typeof t != "string") - throw new Error("Incomplete data: key must be a string"); - var a = ue.get(Ho, function () { - return {}; - }); - return (r && (a[t] = r), a[t]); - }, - get: function (t) { - var r = ue.get(Ho); - return r?.[t]; - }, - clear: function () { - ue.set(Ho, {}); - }, - }, - We = F0; - function T0(e, t) { - var r = ["IMG", "CANVAS", "OBJECT", "IFRAME", "VIDEO", "SVG"], - a = e.nodeName.toUpperCase(); - if (r.includes(a)) return (We.set("bgColor", "imgNode"), !0); - t = t || E.getComputedStyle(e); - var n = t.getPropertyValue("background-image"), - i = n !== "none"; - if (i) { - var o = /gradient/.test(n); - We.set("bgColor", o ? "bgGradient" : "bgImage"); - } - return i; - } - var Tn = T0, - id = {}; - Dt(id, { - ArrayFrom: function () { - return m1.default; - }, - Colorjs: function () { - return _e; - }, - CssSelectorParser: function () { - return I0.CssSelectorParser; - }, - doT: function () { - return od.default; - }, - emojiRegexText: function () { - return Mo; - }, - memoize: function () { - return P0.default; - }, - }); - var R0 = ot(gh()), - S0 = ot(bh()); - ot(yh()); - var k0 = ot(Mh()), - O0 = ot($h()), - M0 = ot(Hs()); - ("hasOwn" in Object || (Object.hasOwn = k0.default), - "values" in Object || (Object.values = O0.default), - "Promise" in E || R0.default.polyfill(), - "Uint32Array" in E || (E.Uint32Array = S0.Uint32Array), - E.Uint32Array && - ("some" in E.Uint32Array.prototype || - Object.defineProperty(E.Uint32Array.prototype, "some", { - value: Array.prototype.some, - }), - "reduce" in E.Uint32Array.prototype || - Object.defineProperty(E.Uint32Array.prototype, "reduce", { - value: Array.prototype.reduce, - })), - typeof Object.assign != "function" && - (function () { - Object.assign = function (e) { - if (e == null) - throw new TypeError( - "Cannot convert undefined or null to object", - ); - for (var t = Object(e), r = 1; r < arguments.length; r++) { - var a = arguments[r]; - if (a != null) - for (var n in a) a.hasOwnProperty(n) && (t[n] = a[n]); - } - return t; - }; - })(), - Array.prototype.find || - Object.defineProperty(Array.prototype, "find", { - value: function (t) { - if (this === null) - throw new TypeError( - "Array.prototype.find called on null or undefined", - ); - if (typeof t != "function") - throw new TypeError("predicate must be a function"); - for ( - var r = Object(this), - a = r.length >>> 0, - n = arguments[1], - i, - o = 0; - o < a; - o++ - ) - if (((i = r[o]), t.call(n, i, o, r))) return i; - }, - }), - Array.prototype.findIndex || - Object.defineProperty(Array.prototype, "findIndex", { - value: function (t, r) { - if (this === null) - throw new TypeError( - "Array.prototype.find called on null or undefined", - ); - if (typeof t != "function") - throw new TypeError("predicate must be a function"); - for ( - var a = Object(this), n = a.length >>> 0, i, o = 0; - o < n; - o++ - ) - if (((i = a[o]), t.call(r, i, o, a))) return o; - return -1; - }, - }), - Array.prototype.includes || - Object.defineProperty(Array.prototype, "includes", { - value: function (t) { - var r = Object(this), - a = parseInt(r.length, 10) || 0; - if (a === 0) return !1; - var n = parseInt(arguments[1], 10) || 0, - i; - n >= 0 ? (i = n) : ((i = a + n), i < 0 && (i = 0)); - for (var o; i < a; ) { - if (((o = r[i]), t === o || (t !== t && o !== o))) - return !0; - i++; - } - return !1; - }, - }), - Array.prototype.some || - Object.defineProperty(Array.prototype, "some", { - value: function (t) { - if (this == null) - throw new TypeError( - "Array.prototype.some called on null or undefined", - ); - if (typeof t != "function") throw new TypeError(); - for ( - var r = Object(this), - a = r.length >>> 0, - n = arguments.length >= 2 ? arguments[1] : void 0, - i = 0; - i < a; - i++ - ) - if (i in r && t.call(n, r[i], i, r)) return !0; - return !1; - }, - }), - Array.from || (Array.from = M0.default), - String.prototype.includes || - (String.prototype.includes = function (e, t) { - return ( - typeof t != "number" && (t = 0), - t + e.length > this.length ? !1 : this.indexOf(e, t) !== -1 - ); - }), - Array.prototype.flat || - Object.defineProperty(Array.prototype, "flat", { - configurable: !0, - value: function e() { - var t = isNaN(arguments[0]) ? 1 : Number(arguments[0]); - return t - ? Array.prototype.reduce.call( - this, - function (r, a) { - return ( - Array.isArray(a) - ? r.push.apply(r, e.call(a, t - 1)) - : r.push(a), - r - ); - }, - [], - ) - : Array.prototype.slice.call(this); - }, - writable: !0, - }), - E.Node && - !("isConnected" in E.Node.prototype) && - Object.defineProperty(E.Node.prototype, "isConnected", { - get: function () { - return ( - !this.ownerDocument || - !( - this.ownerDocument.compareDocumentPosition(this) & - this.DOCUMENT_POSITION_DISCONNECTED - ) - ); - }, - })); - var I0 = ot(ws()), - od = ot($s()), - P0 = ot(bs()); - function Le(e, t) { - var r = e.length; - (Array.isArray(e[0]) || (e = [e]), - Array.isArray(t[0]) || - (t = t.map(function (o) { - return [o]; - }))); - var a = t[0].length, - n = t[0].map(function (o, u) { - return t.map(function (s) { - return s[u]; - }); - }), - i = e.map(function (o) { - return n.map(function (u) { - var s = 0; - if (!Array.isArray(o)) { - var l = Ce(u), - c; - try { - for (l.s(); !(c = l.n()).done; ) { - var d = c.value; - s += o * d; - } - } catch (p) { - l.e(p); - } finally { - l.f(); - } - return s; - } - for (var f = 0; f < o.length; f++) s += o[f] * (u[f] || 0); - return s; - }); - }); - return ( - r === 1 && (i = i[0]), - a === 1 - ? i.map(function (o) { - return o[0]; - }) - : i - ); - } - function Ea(e) { - return rr(e) === "string"; - } - function rr(e) { - var t = Object.prototype.toString.call(e); - return (t.match(/^\[object\s+(.*?)\]$/)[1] || "").toLowerCase(); - } - function Rn(e, t) { - ((e = +e), (t = +t)); - var r = (Math.floor(e) + "").length; - if (t > r) return +e.toFixed(t - r); - var a = Math.pow(10, r - t); - return Math.round(e / a) * a; - } - function ud(e) { - if (e) { - e = e.trim(); - var t = /^([a-z]+)\((.+?)\)$/i, - r = /^-?[\d.]+$/, - a = e.match(t); - if (a) { - var n = []; - return ( - a[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g, function (i, o) { - (/%$/.test(o) - ? ((o = new Number(o.slice(0, -1) / 100)), - (o.type = "")) - : /deg$/.test(o) - ? ((o = new Number(+o.slice(0, -3))), - (o.type = ""), - (o.unit = "deg")) - : r.test(o) && - ((o = new Number(o)), (o.type = "")), - i.startsWith("/") && - ((o = o instanceof Number ? o : new Number(o)), - (o.alpha = !0)), - n.push(o)); - }), - { - name: a[1].toLowerCase(), - rawName: a[1], - rawArgs: a[2], - args: n, - } - ); - } - } - } - function sd(e) { - return e[e.length - 1]; - } - function Sn(e, t, r) { - return isNaN(e) ? t : isNaN(t) ? e : e + (t - e) * r; - } - function ld(e, t, r) { - return (r - e) / (t - e); - } - function $o(e, t, r) { - return Sn(t[0], t[1], ld(e[0], e[1], r)); - } - function cd(e) { - return e.map(function (t) { - return t.split("|").map(function (r) { - r = r.trim(); - var a = r.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/); - if (a) { - var n = new String(a[1]); - return ((n.range = [+a[2], +a[3]]), n); - } - return r; - }); - }); - } - var N0 = Object.freeze({ - __proto__: null, - isString: Ea, - type: rr, - toPrecision: Rn, - parseFunction: ud, - last: sd, - interpolate: Sn, - interpolateInv: ld, - mapRange: $o, - parseCoordGrammar: cd, - multiplyMatrices: Le, - }), - L0 = (function () { - function e() { - Tt(this, e); - } - return Rt(e, [ - { - key: "add", - value: function (r, a, n) { - if (typeof arguments[0] != "string") { - for (var r in arguments[0]) - this.add(r, arguments[0][r], arguments[1]); - return; - } - (Array.isArray(r) ? r : [r]).forEach(function (i) { - ((this[i] = this[i] || []), - a && this[i][n ? "unshift" : "push"](a)); - }, this); - }, - }, - { - key: "run", - value: function (r, a) { - ((this[r] = this[r] || []), - this[r].forEach(function (n) { - n.call(a && a.context ? a.context : a, a); - })); - }, - }, - ]); - })(), - ar = new L0(), - Pt = { gamut_mapping: "lch.c", precision: 5, deltaE: "76" }, - Ct = { - D50: [0.3457 / 0.3585, 1, (1 - 0.3457 - 0.3585) / 0.3585], - D65: [0.3127 / 0.329, 1, (1 - 0.3127 - 0.329) / 0.329], - }; - function Uo(e) { - return Array.isArray(e) ? e : Ct[e]; - } - function kn(e, t, r) { - var a = - arguments.length > 3 && arguments[3] !== void 0 - ? arguments[3] - : {}; - if (((e = Uo(e)), (t = Uo(t)), !e || !t)) - throw new TypeError( - "Missing white point to convert " - .concat(e ? "" : "from") - .concat(!e && !t ? "/" : "") - .concat(t ? "" : "to"), - ); - if (e === t) return r; - var n = { W1: e, W2: t, XYZ: r, options: a }; - if ( - (ar.run("chromatic-adaptation-start", n), - n.M || - (n.W1 === Ct.D65 && n.W2 === Ct.D50 - ? (n.M = [ - [ - 1.0479298208405488, 0.022946793341019088, - -0.05019222954313557, - ], - [ - 0.029627815688159344, 0.990434484573249, - -0.01707382502938514, - ], - [ - -0.009243058152591178, 0.015055144896577895, - 0.7518742899580008, - ], - ]) - : n.W1 === Ct.D50 && - n.W2 === Ct.D65 && - (n.M = [ - [ - 0.9554734527042182, -0.023098536874261423, - 0.0632593086610217, - ], - [ - -0.028369706963208136, 1.0099954580058226, - 0.021041398966943008, - ], - [ - 0.012314001688319899, -0.020507696433477912, - 1.3303659366080753, - ], - ])), - ar.run("chromatic-adaptation-end", n), - n.M) - ) - return Le(n.M, n.XYZ); - throw new TypeError( - "Only Bradford CAT with white points D50 and D65 supported for now.", - ); - } - var B0 = 75e-6, - Ft = - ((C = new WeakSet()), - (k = new WeakMap()), - (function () { - function e(t) { - var r, a, n, i, o, u, s; - (Tt(this, e), - es(this, C), - Xt(this, k, void 0), - (this.id = t.id), - (this.name = t.name), - (this.base = t.base ? Ft.get(t.base) : null), - (this.aliases = t.aliases), - this.base && - ((this.fromBase = t.fromBase), - (this.toBase = t.toBase))); - var l = - (r = t.coords) !== null && r !== void 0 - ? r - : this.base.coords; - this.coords = l; - var c = - (a = - (n = t.white) !== null && n !== void 0 - ? n - : this.base.white) !== null && a !== void 0 - ? a - : "D65"; - ((this.white = Uo(c)), - (this.formats = - (i = t.formats) !== null && i !== void 0 ? i : {})); - for (var d in this.formats) { - var f = this.formats[d]; - (f.type || (f.type = "function"), f.name || (f.name = d)); - } - (t.cssId && - !( - (o = this.formats.functions) !== null && - o !== void 0 && - o.color - ) - ? ((this.formats.color = { id: t.cssId }), - Object.defineProperty(this, "cssId", { - value: t.cssId, - })) - : (u = this.formats) !== null && - u !== void 0 && - u.color && - !( - (s = this.formats) !== null && - s !== void 0 && - s.color.id - ) && - (this.formats.color.id = this.id), - (this.referred = t.referred), - at(k, this, Tr(C, this, q0).call(this).reverse()), - ar.run("colorspace-init-end", this)); - } - return Rt( - e, - [ - { - key: "inGamut", - value: function (r) { - var a = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - n = a.epsilon, - i = n === void 0 ? B0 : n; - if (this.isPolar) - return ( - (r = this.toBase(r)), - this.base.inGamut(r, { epsilon: i }) - ); - var o = Object.values(this.coords); - return r.every(function (u, s) { - var l = o[s]; - if (l.type !== "angle" && l.range) { - if (Number.isNaN(u)) return !0; - var c = $(l.range, 2), - d = c[0], - f = c[1]; - return ( - (d === void 0 || u >= d - i) && - (f === void 0 || u <= f + i) - ); - } - return !0; - }); - }, - }, - { - key: "cssId", - get: function () { - var r; - return ( - ((r = this.formats.functions) === null || - r === void 0 || - (r = r.color) === null || - r === void 0 - ? void 0 - : r.id) || this.id - ); - }, - }, - { - key: "isPolar", - get: function () { - for (var r in this.coords) - if (this.coords[r].type === "angle") return !0; - return !1; - }, - }, - { - key: "getFormat", - value: function (r) { - if (O(r) === "object") - return ((r = Tr(C, this, dd).call(this, r)), r); - var a; - return ( - r === "default" - ? (a = Object.values(this.formats)[0]) - : (a = this.formats[r]), - a ? ((a = Tr(C, this, dd).call(this, a)), a) : null - ); - }, - }, - { - key: "to", - value: function (r, a) { - if (arguments.length === 1) { - var n = [r.space, r.coords]; - ((r = n[0]), (a = n[1])); - } - if (((r = Ft.get(r)), this === r)) return a; - a = a.map(function (f) { - return Number.isNaN(f) ? 0 : f; - }); - for ( - var i = wt(k, this), o = wt(k, r), u, s, l = 0; - l < i.length && i[l] === o[l]; - l++ - ) - ((u = i[l]), (s = l)); - if (!u) - throw new Error( - "Cannot convert between color spaces " - .concat(this, " and ") - .concat(r, ": no connection space was found"), - ); - for (var c = i.length - 1; c > s; c--) - a = i[c].toBase(a); - for (var d = s + 1; d < o.length; d++) - a = o[d].fromBase(a); - return a; - }, - }, - { - key: "from", - value: function (r, a) { - if (arguments.length === 1) { - var n = [r.space, r.coords]; - ((r = n[0]), (a = n[1])); - } - return ((r = Ft.get(r)), r.to(this, a)); - }, - }, - { - key: "toString", - value: function () { - return "" - .concat(this.name, " (") - .concat(this.id, ")"); - }, - }, - { - key: "getMinCoords", - value: function () { - var r = []; - for (var a in this.coords) { - var n, - i = this.coords[a], - o = i.range || i.refRange; - r.push( - (n = o?.min) !== null && n !== void 0 ? n : 0, - ); - } - return r; - }, - }, - ], - [ - { - key: "all", - get: function () { - return ne(new Set(Object.values(Ft.registry))); - }, - }, - { - key: "register", - value: function (r, a) { - if ( - (arguments.length === 1 && - ((a = arguments[0]), (r = a.id)), - (a = this.get(a)), - this.registry[r] && this.registry[r] !== a) - ) - throw new Error( - "Duplicate color space registration: '".concat( - r, - "'", - ), - ); - if ( - ((this.registry[r] = a), - arguments.length === 1 && a.aliases) - ) { - var n = Ce(a.aliases), - i; - try { - for (n.s(); !(i = n.n()).done; ) { - var o = i.value; - this.register(o, a); - } - } catch (u) { - n.e(u); - } finally { - n.f(); - } - } - return a; - }, - }, - { - key: "get", - value: function (r) { - if (!r || r instanceof Ft) return r; - var a = rr(r); - if (a === "string") { - var n = Ft.registry[r.toLowerCase()]; - if (!n) - throw new TypeError( - 'No color space found with id = "'.concat( - r, - '"', - ), - ); - return n; - } - for ( - var i = arguments.length, - o = new Array(i > 1 ? i - 1 : 0), - u = 1; - u < i; - u++ - ) - o[u - 1] = arguments[u]; - if (o.length) return Ft.get.apply(Ft, o); - throw new TypeError( - "".concat(r, " is not a valid color space"), - ); - }, - }, - { - key: "resolveCoord", - value: function (r, a) { - var n = rr(r), - i, - o; - if (n === "string") - if (r.includes(".")) { - var u = r.split("."), - s = $(u, 2); - ((i = s[0]), (o = s[1])); - } else ((i = void 0), (o = r)); - else if (Array.isArray(r)) { - var l = $(r, 2); - ((i = l[0]), (o = l[1])); - } else ((i = r.space), (o = r.coordId)); - if (((i = Ft.get(i)), i || (i = a), !i)) - throw new TypeError( - "Cannot resolve coordinate reference ".concat( - r, - ": No color space specified and relative references are not allowed here", - ), - ); - if ( - ((n = rr(o)), - n === "number" || (n === "string" && o >= 0)) - ) { - var c = Object.entries(i.coords)[o]; - if (c) - return de({ space: i, id: c[0], index: o }, c[1]); - } - i = Ft.get(i); - var d = o.toLowerCase(), - f = 0; - for (var p in i.coords) { - var m, - h = i.coords[p]; - if ( - p.toLowerCase() === d || - ((m = h.name) === null || m === void 0 - ? void 0 - : m.toLowerCase()) === d - ) - return de({ space: i, id: p, index: f }, h); - f++; - } - throw new TypeError( - 'No "' - .concat(o, '" coordinate found in ') - .concat(i.name, ". Its coordinates are: ") - .concat(Object.keys(i.coords).join(", ")), - ); - }, - }, - ], - ); - })()); - function dd(e) { - if (e.coords && !e.coordGrammar) { - (e.type || (e.type = "function"), - e.name || (e.name = "color"), - (e.coordGrammar = cd(e.coords))); - var t = Object.entries(this.coords).map(function (r, a) { - var n = $(r, 2); - n[0]; - var i = n[1], - o = e.coordGrammar[a][0], - u = i.range || i.refRange, - s = o.range, - l = ""; - return ( - o == "" - ? ((s = [0, 100]), (l = "%")) - : o == "" && (l = "deg"), - { fromRange: u, toRange: s, suffix: l } - ); - }); - e.serializeCoords = function (r, a) { - return r.map(function (n, i) { - var o = t[i], - u = o.fromRange, - s = o.toRange, - l = o.suffix; - return ( - u && s && (n = $o(u, s, n)), - (n = Rn(n, a)), - l && (n += l), - n - ); - }); - }; - } - return e; - } - function q0() { - for (var e = [this], t = this; (t = t.base); ) e.push(t); - return e; - } - var ee = Ft; - (us(ee, "registry", {}), - us(ee, "DEFAULT_FORMAT", { type: "functions", name: "color" })); - var gt = new ee({ - id: "xyz-d65", - name: "XYZ D65", - coords: { - x: { name: "X" }, - y: { name: "Y" }, - z: { name: "Z" }, - }, - white: "D65", - formats: { color: { ids: ["xyz-d65", "xyz"] } }, - aliases: ["xyz"], - }), - nt = (function (e) { - function t(r) { - var a, n; - if ( - (Tt(this, t), - r.coords || - (r.coords = { - r: { range: [0, 1], name: "Red" }, - g: { range: [0, 1], name: "Green" }, - b: { range: [0, 1], name: "Blue" }, - }), - r.base || (r.base = gt), - r.toXYZ_M && r.fromXYZ_M) - ) { - var i, o; - (((i = r.toBase) !== null && i !== void 0) || - (r.toBase = function (u) { - var s = Le(r.toXYZ_M, u); - return ( - n.white !== n.base.white && - (s = kn(n.white, n.base.white, s)), - s - ); - }), - ((o = r.fromBase) !== null && o !== void 0) || - (r.fromBase = function (u) { - return ( - (u = kn(n.base.white, n.white, u)), - Le(r.fromXYZ_M, u) - ); - })); - } - return ( - ((a = r.referred) !== null && a !== void 0) || - (r.referred = "display"), - (n = vi(this, t, [r])) - ); - } - return (bi(t, e), Rt(t)); - })(ee); - function fd(e) { - var t, - r = { - str: - (t = String(e)) === null || t === void 0 - ? void 0 - : t.trim(), - }; - if ((ar.run("parse-start", r), r.color)) return r.color; - if (((r.parsed = ud(r.str)), r.parsed)) { - var a = r.parsed.name; - if (a === "color") { - var n = r.parsed.args.shift(), - i = - r.parsed.rawArgs.indexOf("/") > 0 - ? r.parsed.args.pop() - : 1, - o = Ce(ee.all), - u; - try { - var s = function () { - var V = u.value, - S = V.getFormat("color"); - if (S) { - var N; - if ( - n === S.id || - ((N = S.ids) !== null && - N !== void 0 && - N.includes(n)) - ) { - var z = Object.keys(V.coords).length, - H = Array(z).fill(0); - return ( - H.forEach(function (Q, ie) { - return (H[ie] = r.parsed.args[ie] || 0); - }), - { v: { spaceId: V.id, coords: H, alpha: i } } - ); - } - } - }, - l; - for (o.s(); !(u = o.n()).done; ) - if (((l = s()), l)) return l.v; - } catch (I) { - o.e(I); - } finally { - o.f(); - } - var c = ""; - if (n in ee.registry) { - var d, - f = - (d = ee.registry[n].formats) === null || - d === void 0 || - (d = d.functions) === null || - d === void 0 || - (d = d.color) === null || - d === void 0 - ? void 0 - : d.id; - f && (c = "Did you mean color(".concat(f, ")?")); - } - throw new TypeError( - "Cannot parse color(".concat(n, "). ") + - (c || "Missing a plugin?"), - ); - } else { - var p = Ce(ee.all), - m; - try { - var h = function () { - var V = m.value, - S = V.getFormat(a); - if (S && S.type === "function") { - var N = 1; - (S.lastAlpha || sd(r.parsed.args).alpha) && - (N = r.parsed.args.pop()); - var z = r.parsed.args; - return ( - S.coordGrammar && - Object.entries(V.coords).forEach(function (H, Q) { - var ie, - Y = $(H, 2), - te = Y[0], - B = Y[1], - Z = S.coordGrammar[Q], - A = - (ie = z[Q]) === null || ie === void 0 - ? void 0 - : ie.type; - if ( - ((Z = Z.find(function (ae) { - return ae == A; - })), - !Z) - ) { - var U = B.name || te; - throw new TypeError( - "" - .concat(A, " not allowed for ") - .concat(U, " in ") - .concat(a, "()"), - ); - } - var P = Z.range; - A === "" && (P || (P = [0, 1])); - var G = B.range || B.refRange; - P && G && (z[Q] = $o(P, G, z[Q])); - }), - { v: { spaceId: V.id, coords: z, alpha: N } } - ); - } - }, - v; - for (p.s(); !(m = p.n()).done; ) - if (((v = h()), v)) return v.v; - } catch (I) { - p.e(I); - } finally { - p.f(); - } - } - } else { - var g = Ce(ee.all), - b; - try { - for (g.s(); !(b = g.n()).done; ) { - var D = b.value; - for (var w in D.formats) { - var _ = D.formats[w]; - if (_.type === "custom" && !(_.test && !_.test(r.str))) { - var F = _.parse(r.str); - if (F) { - var R; - return ( - ((R = F.alpha) !== null && R !== void 0) || - (F.alpha = 1), - F - ); - } - } - } - } - } catch (I) { - g.e(I); - } finally { - g.f(); - } - } - throw new TypeError( - "Could not parse ".concat(e, " as a color. Missing a plugin?"), - ); - } - function ge(e) { - if (!e) throw new TypeError("Empty color reference"); - Ea(e) && (e = fd(e)); - var t = e.space || e.spaceId; - return ( - t instanceof ee || (e.space = ee.get(t)), - e.alpha === void 0 && (e.alpha = 1), - e - ); - } - function Aa(e, t) { - return ((t = ee.get(t)), t.from(e)); - } - function bt(e, t) { - var r = ee.resolveCoord(t, e.space), - a = r.space, - n = r.index, - i = Aa(e, a); - return i[n]; - } - function pd(e, t, r) { - return ((t = ee.get(t)), (e.coords = t.to(e.space, r)), e); - } - function nr(e, t, r) { - if ( - ((e = ge(e)), - arguments.length === 2 && rr(arguments[1]) === "object") - ) { - var a = arguments[1]; - for (var n in a) nr(e, n, a[n]); - } else { - typeof r == "function" && (r = r(bt(e, t))); - var i = ee.resolveCoord(t, e.space), - o = i.space, - u = i.index, - s = Aa(e, o); - ((s[u] = r), pd(e, o, s)); - } - return e; - } - var Go = new ee({ - id: "xyz-d50", - name: "XYZ D50", - white: "D50", - base: gt, - fromBase: function (t) { - return kn(gt.white, "D50", t); - }, - toBase: function (t) { - return kn("D50", gt.white, t); - }, - formats: { color: {} }, - }), - j0 = 216 / 24389, - md = 24 / 116, - On = 24389 / 27, - Wo = Ct.D50, - ct = new ee({ - id: "lab", - name: "Lab", - coords: { - l: { refRange: [0, 100], name: "L" }, - a: { refRange: [-125, 125] }, - b: { refRange: [-125, 125] }, - }, - white: Wo, - base: Go, - fromBase: function (t) { - var r = t.map(function (n, i) { - return n / Wo[i]; - }), - a = r.map(function (n) { - return n > j0 ? Math.cbrt(n) : (On * n + 16) / 116; - }); - return [ - 116 * a[1] - 16, - 500 * (a[0] - a[1]), - 200 * (a[1] - a[2]), - ]; - }, - toBase: function (t) { - var r = []; - ((r[1] = (t[0] + 16) / 116), - (r[0] = t[1] / 500 + r[1]), - (r[2] = r[1] - t[2] / 200)); - var a = [ - r[0] > md ? Math.pow(r[0], 3) : (116 * r[0] - 16) / On, - t[0] > 8 ? Math.pow((t[0] + 16) / 116, 3) : t[0] / On, - r[2] > md ? Math.pow(r[2], 3) : (116 * r[2] - 16) / On, - ]; - return a.map(function (n, i) { - return n * Wo[i]; - }); - }, - formats: { - lab: { - coords: [" | ", "", ""], - }, - }, - }); - function Mn(e) { - return ((e % 360) + 360) % 360; - } - function z0(e, t) { - if (e === "raw") return t; - var r = t.map(Mn), - a = $(r, 2), - n = a[0], - i = a[1], - o = i - n; - return ( - e === "increasing" - ? o < 0 && (i += 360) - : e === "decreasing" - ? o > 0 && (n += 360) - : e === "longer" - ? -180 < o && o < 180 && (o > 0 ? (i += 360) : (n += 360)) - : e === "shorter" && - (o > 180 ? (n += 360) : o < -180 && (i += 360)), - [n, i] - ); - } - var Ca = new ee({ - id: "lch", - name: "LCH", - coords: { - l: { refRange: [0, 100], name: "Lightness" }, - c: { refRange: [0, 150], name: "Chroma" }, - h: { refRange: [0, 360], type: "angle", name: "Hue" }, - }, - base: ct, - fromBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o, - u = 0.02; - return ( - Math.abs(n) < u && Math.abs(i) < u - ? (o = NaN) - : (o = (Math.atan2(i, n) * 180) / Math.PI), - [a, Math.sqrt(Math.pow(n, 2) + Math.pow(i, 2)), Mn(o)] - ); - }, - toBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2]; - return ( - n < 0 && (n = 0), - isNaN(i) && (i = 0), - [ - a, - n * Math.cos((i * Math.PI) / 180), - n * Math.sin((i * Math.PI) / 180), - ] - ); - }, - formats: { - lch: { - coords: [ - " | ", - "", - " | ", - ], - }, - }, - }), - hd = Math.pow(25, 7), - In = Math.PI, - vd = 180 / In, - Vr = In / 180; - function Yo(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}, - a = r.kL, - n = a === void 0 ? 1 : a, - i = r.kC, - o = i === void 0 ? 1 : i, - u = r.kH, - s = u === void 0 ? 1 : u, - l = ct.from(e), - c = $(l, 3), - d = c[0], - f = c[1], - p = c[2], - m = Ca.from(ct, [d, f, p])[1], - h = ct.from(t), - v = $(h, 3), - g = v[0], - b = v[1], - D = v[2], - w = Ca.from(ct, [g, b, D])[1]; - (m < 0 && (m = 0), w < 0 && (w = 0)); - var _ = (m + w) / 2, - F = Math.pow(_, 7), - R = 0.5 * (1 - Math.sqrt(F / (F + hd))), - I = (1 + R) * f, - V = (1 + R) * b, - S = Math.sqrt(Math.pow(I, 2) + Math.pow(p, 2)), - N = Math.sqrt(Math.pow(V, 2) + Math.pow(D, 2)), - z = I === 0 && p === 0 ? 0 : Math.atan2(p, I), - H = V === 0 && D === 0 ? 0 : Math.atan2(D, V); - (z < 0 && (z += 2 * In), - H < 0 && (H += 2 * In), - (z *= vd), - (H *= vd)); - var Q = g - d, - ie = N - S, - Y = H - z, - te = z + H, - B = Math.abs(Y), - Z; - S * N === 0 - ? (Z = 0) - : B <= 180 - ? (Z = Y) - : Y > 180 - ? (Z = Y - 360) - : Y < -180 - ? (Z = Y + 360) - : console.log("the unthinkable has happened"); - var A = 2 * Math.sqrt(N * S) * Math.sin((Z * Vr) / 2), - U = (d + g) / 2, - P = (S + N) / 2, - G = Math.pow(P, 7), - ae; - S * N === 0 - ? (ae = te) - : B <= 180 - ? (ae = te / 2) - : te < 360 - ? (ae = (te + 360) / 2) - : (ae = (te - 360) / 2); - var W = Math.pow(U - 50, 2), - X = 1 + (0.015 * W) / Math.sqrt(20 + W), - pe = 1 + 0.045 * P, - be = 1; - ((be -= 0.17 * Math.cos((ae - 30) * Vr)), - (be += 0.24 * Math.cos(2 * ae * Vr)), - (be += 0.32 * Math.cos((3 * ae + 6) * Vr)), - (be -= 0.2 * Math.cos((4 * ae - 63) * Vr))); - var xe = 1 + 0.015 * P * be, - Me = 30 * Math.exp(-1 * Math.pow((ae - 275) / 25, 2)), - je = 2 * Math.sqrt(G / (G + hd)), - Be = -1 * Math.sin(2 * Me * Vr) * je, - Ee = Math.pow(Q / (n * X), 2); - return ( - (Ee += Math.pow(ie / (o * pe), 2)), - (Ee += Math.pow(A / (s * xe), 2)), - (Ee += Be * (ie / (o * pe)) * (A / (s * xe))), - Math.sqrt(Ee) - ); - } - var V0 = 75e-6; - function Fa(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : e.space, - r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}, - a = r.epsilon, - n = a === void 0 ? V0 : a; - ((e = ge(e)), (t = ee.get(t))); - var i = e.coords; - return ( - t !== e.space && (i = t.from(e)), - t.inGamut(i, { epsilon: n }) - ); - } - function Ta(e) { - return { - space: e.space, - coords: e.coords.slice(), - alpha: e.alpha, - }; - } - function ir(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.method, - a = r === void 0 ? Pt.gamut_mapping : r, - n = t.space, - i = n === void 0 ? e.space : n; - if ( - (Ea(arguments[1]) && (i = arguments[1]), - (i = ee.get(i)), - Fa(e, i, { epsilon: 0 })) - ) - return e; - var o = yt(e, i); - if (a !== "clip" && !Fa(e, i)) { - var u = ir(Ta(o), { method: "clip", space: i }); - if (Yo(e, u) > 2) { - for ( - var s = ee.resolveCoord(a), - l = s.space, - c = s.id, - d = yt(o, l), - f = s.range || s.refRange, - p = f[0], - m = 0.01, - h = p, - v = bt(d, c); - v - h > m; - ) { - var g = Ta(d); - g = ir(g, { space: i, method: "clip" }); - var b = Yo(d, g); - (b - 2 < m ? (h = bt(d, c)) : (v = bt(d, c)), - nr(d, c, (h + v) / 2)); - } - o = yt(d, i); - } else o = u; - } - if (a === "clip" || !Fa(o, i, { epsilon: 0 })) { - var D = Object.values(i.coords).map(function (w) { - return w.range || []; - }); - o.coords = o.coords.map(function (w, _) { - var F = $(D[_], 2), - R = F[0], - I = F[1]; - return ( - R !== void 0 && (w = Math.max(R, w)), - I !== void 0 && (w = Math.min(w, I)), - w - ); - }); - } - return ( - i !== e.space && (o = yt(o, e.space)), - (e.coords = o.coords), - e - ); - } - ir.returns = "color"; - function yt(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}, - a = r.inGamut; - ((e = ge(e)), (t = ee.get(t))); - var n = t.from(e), - i = { space: t, coords: n, alpha: e.alpha }; - return (a && (i = ir(i)), i); - } - yt.returns = "color"; - function Pn(e) { - var t, - r, - a = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - n = a.precision, - i = n === void 0 ? Pt.precision : n, - o = a.format, - u = o === void 0 ? "default" : o, - s = a.inGamut, - l = s === void 0 ? !0 : s, - c = qe(a, Op), - d; - e = ge(e); - var f = u; - ((u = - (t = - (r = e.space.getFormat(u)) !== null && r !== void 0 - ? r - : e.space.getFormat("default")) !== null && t !== void 0 - ? t - : ee.DEFAULT_FORMAT), - l || (l = u.toGamut)); - var p = e.coords; - if ( - ((p = p.map(function (w) { - return w || 0; - })), - l && !Fa(e) && (p = ir(Ta(e), l === !0 ? void 0 : l).coords), - u.type === "custom") - ) - if (((c.precision = i), u.serialize)) - d = u.serialize(p, e.alpha, c); - else - throw new TypeError( - "format ".concat( - f, - " can only be used to parse colors, not for serialization", - ), - ); - else { - var m = u.name || "color"; - u.serializeCoords - ? (p = u.serializeCoords(p, i)) - : i !== null && - (p = p.map(function (w) { - return Rn(w, i); - })); - var h = ne(p); - if (m === "color") { - var v, - g = - u.id || - ((v = u.ids) === null || v === void 0 ? void 0 : v[0]) || - e.space.id; - h.unshift(g); - } - var b = e.alpha; - i !== null && (b = Rn(b, i)); - var D = - e.alpha < 1 && !u.noAlpha - ? "".concat(u.commas ? "," : " /", " ").concat(b) - : ""; - d = "" - .concat(m, "(") - .concat(h.join(u.commas ? ", " : " ")) - .concat(D, ")"); - } - return d; - } - var H0 = [ - [0.6369580483012914, 0.14461690358620832, 0.1688809751641721], - [0.2627002120112671, 0.6779980715188708, 0.05930171646986196], - [0, 0.028072693049087428, 1.060985057710791], - ], - $0 = [ - [1.716651187971268, -0.355670783776392, -0.25336628137366], - [-0.666684351832489, 1.616481236634939, 0.0157685458139111], - [0.017639857445311, -0.042770613257809, 0.942103121235474], - ], - Nn = new nt({ - id: "rec2020-linear", - name: "Linear REC.2020", - white: "D65", - toXYZ_M: H0, - fromXYZ_M: $0, - formats: { color: {} }, - }), - Ln = 1.09929682680944, - gd = 0.018053968510807, - bd = new nt({ - id: "rec2020", - name: "REC.2020", - base: Nn, - toBase: function (t) { - return t.map(function (r) { - return r < gd * 4.5 - ? r / 4.5 - : Math.pow((r + Ln - 1) / Ln, 1 / 0.45); - }); - }, - fromBase: function (t) { - return t.map(function (r) { - return r >= gd - ? Ln * Math.pow(r, 0.45) - (Ln - 1) - : 4.5 * r; - }); - }, - formats: { color: {} }, - }), - U0 = [ - [0.4865709486482162, 0.26566769316909306, 0.1982172852343625], - [0.2289745640697488, 0.6917385218365064, 0.079286914093745], - [0, 0.04511338185890264, 1.043944368900976], - ], - G0 = [ - [2.493496911941425, -0.9313836179191239, -0.40271078445071684], - [-0.8294889695615747, 1.7626640603183463, 0.023624685841943577], - [0.03584583024378447, -0.07617238926804182, 0.9568845240076872], - ], - yd = new nt({ - id: "p3-linear", - name: "Linear P3", - white: "D65", - toXYZ_M: U0, - fromXYZ_M: G0, - }), - W0 = [ - [0.41239079926595934, 0.357584339383878, 0.1804807884018343], - [0.21263900587151027, 0.715168678767756, 0.07219231536073371], - [0.01933081871559182, 0.11919477979462598, 0.9505321522496607], - ], - Y0 = [ - [3.2409699419045226, -1.537383177570094, -0.4986107602930034], - [-0.9692436362808796, 1.8759675015077202, 0.04155505740717559], - [0.05563007969699366, -0.20397695888897652, 1.0569715142428786], - ], - wd = new nt({ - id: "srgb-linear", - name: "Linear sRGB", - white: "D65", - toXYZ_M: W0, - fromXYZ_M: Y0, - formats: { color: {} }, - }), - Dd = { - aliceblue: [240 / 255, 248 / 255, 1], - antiquewhite: [250 / 255, 235 / 255, 215 / 255], - aqua: [0, 1, 1], - aquamarine: [127 / 255, 1, 212 / 255], - azure: [240 / 255, 1, 1], - beige: [245 / 255, 245 / 255, 220 / 255], - bisque: [1, 228 / 255, 196 / 255], - black: [0, 0, 0], - blanchedalmond: [1, 235 / 255, 205 / 255], - blue: [0, 0, 1], - blueviolet: [138 / 255, 43 / 255, 226 / 255], - brown: [165 / 255, 42 / 255, 42 / 255], - burlywood: [222 / 255, 184 / 255, 135 / 255], - cadetblue: [95 / 255, 158 / 255, 160 / 255], - chartreuse: [127 / 255, 1, 0], - chocolate: [210 / 255, 105 / 255, 30 / 255], - coral: [1, 127 / 255, 80 / 255], - cornflowerblue: [100 / 255, 149 / 255, 237 / 255], - cornsilk: [1, 248 / 255, 220 / 255], - crimson: [220 / 255, 20 / 255, 60 / 255], - cyan: [0, 1, 1], - darkblue: [0, 0, 139 / 255], - darkcyan: [0, 139 / 255, 139 / 255], - darkgoldenrod: [184 / 255, 134 / 255, 11 / 255], - darkgray: [169 / 255, 169 / 255, 169 / 255], - darkgreen: [0, 100 / 255, 0], - darkgrey: [169 / 255, 169 / 255, 169 / 255], - darkkhaki: [189 / 255, 183 / 255, 107 / 255], - darkmagenta: [139 / 255, 0, 139 / 255], - darkolivegreen: [85 / 255, 107 / 255, 47 / 255], - darkorange: [1, 140 / 255, 0], - darkorchid: [153 / 255, 50 / 255, 204 / 255], - darkred: [139 / 255, 0, 0], - darksalmon: [233 / 255, 150 / 255, 122 / 255], - darkseagreen: [143 / 255, 188 / 255, 143 / 255], - darkslateblue: [72 / 255, 61 / 255, 139 / 255], - darkslategray: [47 / 255, 79 / 255, 79 / 255], - darkslategrey: [47 / 255, 79 / 255, 79 / 255], - darkturquoise: [0, 206 / 255, 209 / 255], - darkviolet: [148 / 255, 0, 211 / 255], - deeppink: [1, 20 / 255, 147 / 255], - deepskyblue: [0, 191 / 255, 1], - dimgray: [105 / 255, 105 / 255, 105 / 255], - dimgrey: [105 / 255, 105 / 255, 105 / 255], - dodgerblue: [30 / 255, 144 / 255, 1], - firebrick: [178 / 255, 34 / 255, 34 / 255], - floralwhite: [1, 250 / 255, 240 / 255], - forestgreen: [34 / 255, 139 / 255, 34 / 255], - fuchsia: [1, 0, 1], - gainsboro: [220 / 255, 220 / 255, 220 / 255], - ghostwhite: [248 / 255, 248 / 255, 1], - gold: [1, 215 / 255, 0], - goldenrod: [218 / 255, 165 / 255, 32 / 255], - gray: [128 / 255, 128 / 255, 128 / 255], - green: [0, 128 / 255, 0], - greenyellow: [173 / 255, 1, 47 / 255], - grey: [128 / 255, 128 / 255, 128 / 255], - honeydew: [240 / 255, 1, 240 / 255], - hotpink: [1, 105 / 255, 180 / 255], - indianred: [205 / 255, 92 / 255, 92 / 255], - indigo: [75 / 255, 0, 130 / 255], - ivory: [1, 1, 240 / 255], - khaki: [240 / 255, 230 / 255, 140 / 255], - lavender: [230 / 255, 230 / 255, 250 / 255], - lavenderblush: [1, 240 / 255, 245 / 255], - lawngreen: [124 / 255, 252 / 255, 0], - lemonchiffon: [1, 250 / 255, 205 / 255], - lightblue: [173 / 255, 216 / 255, 230 / 255], - lightcoral: [240 / 255, 128 / 255, 128 / 255], - lightcyan: [224 / 255, 1, 1], - lightgoldenrodyellow: [250 / 255, 250 / 255, 210 / 255], - lightgray: [211 / 255, 211 / 255, 211 / 255], - lightgreen: [144 / 255, 238 / 255, 144 / 255], - lightgrey: [211 / 255, 211 / 255, 211 / 255], - lightpink: [1, 182 / 255, 193 / 255], - lightsalmon: [1, 160 / 255, 122 / 255], - lightseagreen: [32 / 255, 178 / 255, 170 / 255], - lightskyblue: [135 / 255, 206 / 255, 250 / 255], - lightslategray: [119 / 255, 136 / 255, 153 / 255], - lightslategrey: [119 / 255, 136 / 255, 153 / 255], - lightsteelblue: [176 / 255, 196 / 255, 222 / 255], - lightyellow: [1, 1, 224 / 255], - lime: [0, 1, 0], - limegreen: [50 / 255, 205 / 255, 50 / 255], - linen: [250 / 255, 240 / 255, 230 / 255], - magenta: [1, 0, 1], - maroon: [128 / 255, 0, 0], - mediumaquamarine: [102 / 255, 205 / 255, 170 / 255], - mediumblue: [0, 0, 205 / 255], - mediumorchid: [186 / 255, 85 / 255, 211 / 255], - mediumpurple: [147 / 255, 112 / 255, 219 / 255], - mediumseagreen: [60 / 255, 179 / 255, 113 / 255], - mediumslateblue: [123 / 255, 104 / 255, 238 / 255], - mediumspringgreen: [0, 250 / 255, 154 / 255], - mediumturquoise: [72 / 255, 209 / 255, 204 / 255], - mediumvioletred: [199 / 255, 21 / 255, 133 / 255], - midnightblue: [25 / 255, 25 / 255, 112 / 255], - mintcream: [245 / 255, 1, 250 / 255], - mistyrose: [1, 228 / 255, 225 / 255], - moccasin: [1, 228 / 255, 181 / 255], - navajowhite: [1, 222 / 255, 173 / 255], - navy: [0, 0, 128 / 255], - oldlace: [253 / 255, 245 / 255, 230 / 255], - olive: [128 / 255, 128 / 255, 0], - olivedrab: [107 / 255, 142 / 255, 35 / 255], - orange: [1, 165 / 255, 0], - orangered: [1, 69 / 255, 0], - orchid: [218 / 255, 112 / 255, 214 / 255], - palegoldenrod: [238 / 255, 232 / 255, 170 / 255], - palegreen: [152 / 255, 251 / 255, 152 / 255], - paleturquoise: [175 / 255, 238 / 255, 238 / 255], - palevioletred: [219 / 255, 112 / 255, 147 / 255], - papayawhip: [1, 239 / 255, 213 / 255], - peachpuff: [1, 218 / 255, 185 / 255], - peru: [205 / 255, 133 / 255, 63 / 255], - pink: [1, 192 / 255, 203 / 255], - plum: [221 / 255, 160 / 255, 221 / 255], - powderblue: [176 / 255, 224 / 255, 230 / 255], - purple: [128 / 255, 0, 128 / 255], - rebeccapurple: [102 / 255, 51 / 255, 153 / 255], - red: [1, 0, 0], - rosybrown: [188 / 255, 143 / 255, 143 / 255], - royalblue: [65 / 255, 105 / 255, 225 / 255], - saddlebrown: [139 / 255, 69 / 255, 19 / 255], - salmon: [250 / 255, 128 / 255, 114 / 255], - sandybrown: [244 / 255, 164 / 255, 96 / 255], - seagreen: [46 / 255, 139 / 255, 87 / 255], - seashell: [1, 245 / 255, 238 / 255], - sienna: [160 / 255, 82 / 255, 45 / 255], - silver: [192 / 255, 192 / 255, 192 / 255], - skyblue: [135 / 255, 206 / 255, 235 / 255], - slateblue: [106 / 255, 90 / 255, 205 / 255], - slategray: [112 / 255, 128 / 255, 144 / 255], - slategrey: [112 / 255, 128 / 255, 144 / 255], - snow: [1, 250 / 255, 250 / 255], - springgreen: [0, 1, 127 / 255], - steelblue: [70 / 255, 130 / 255, 180 / 255], - tan: [210 / 255, 180 / 255, 140 / 255], - teal: [0, 128 / 255, 128 / 255], - thistle: [216 / 255, 191 / 255, 216 / 255], - tomato: [1, 99 / 255, 71 / 255], - turquoise: [64 / 255, 224 / 255, 208 / 255], - violet: [238 / 255, 130 / 255, 238 / 255], - wheat: [245 / 255, 222 / 255, 179 / 255], - white: [1, 1, 1], - whitesmoke: [245 / 255, 245 / 255, 245 / 255], - yellow: [1, 1, 0], - yellowgreen: [154 / 255, 205 / 255, 50 / 255], - }, - _d = Array(3).fill(" | [0, 255]"), - xd = Array(3).fill("[0, 255]"), - Ra = new nt({ - id: "srgb", - name: "sRGB", - base: wd, - fromBase: function (t) { - return t.map(function (r) { - var a = r < 0 ? -1 : 1, - n = r * a; - return n > 0.0031308 - ? a * (1.055 * Math.pow(n, 1 / 2.4) - 0.055) - : 12.92 * r; - }); - }, - toBase: function (t) { - return t.map(function (r) { - var a = r < 0 ? -1 : 1, - n = r * a; - return n < 0.04045 - ? r / 12.92 - : a * Math.pow((n + 0.055) / 1.055, 2.4); - }); - }, - formats: { - rgb: { coords: _d }, - rgb_number: { - name: "rgb", - commas: !0, - coords: xd, - noAlpha: !0, - }, - color: {}, - rgba: { coords: _d, commas: !0, lastAlpha: !0 }, - rgba_number: { name: "rgba", commas: !0, coords: xd }, - hex: { - type: "custom", - toGamut: !0, - test: function (t) { - return /^#([a-f0-9]{3,4}){1,2}$/i.test(t); - }, - parse: function (t) { - t.length <= 5 && (t = t.replace(/[a-f0-9]/gi, "$&$&")); - var r = []; - return ( - t.replace(/[a-f0-9]{2}/gi, function (a) { - r.push(parseInt(a, 16) / 255); - }), - { - spaceId: "srgb", - coords: r.slice(0, 3), - alpha: r.slice(3)[0], - } - ); - }, - serialize: function (t, r) { - var a = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}, - n = a.collapse, - i = n === void 0 ? !0 : n; - (r < 1 && t.push(r), - (t = t.map(function (s) { - return Math.round(s * 255); - }))); - var o = - i && - t.every(function (s) { - return s % 17 === 0; - }), - u = t - .map(function (s) { - return o - ? (s / 17).toString(16) - : s.toString(16).padStart(2, "0"); - }) - .join(""); - return "#" + u; - }, - }, - keyword: { - type: "custom", - test: function (t) { - return /^[a-z]+$/i.test(t); - }, - parse: function (t) { - t = t.toLowerCase(); - var r = { spaceId: "srgb", coords: null, alpha: 1 }; - if ( - (t === "transparent" - ? ((r.coords = Dd.black), (r.alpha = 0)) - : (r.coords = Dd[t]), - r.coords) - ) - return r; - }, - }, - }, - }), - Ed = new nt({ - id: "p3", - name: "P3", - base: yd, - fromBase: Ra.fromBase, - toBase: Ra.toBase, - formats: { color: { id: "display-p3" } }, - }); - if ( - ((Pt.display_space = Ra), - typeof CSS < "u" && - (j = CSS) !== null && - j !== void 0 && - j.supports) - ) - for (var Ko = 0, Ad = [ct, bd, Ed]; Ko < Ad.length; Ko++) { - var Xo = Ad[Ko], - K0 = Xo.getMinCoords(), - X0 = { space: Xo, coords: K0, alpha: 1 }, - Z0 = Pn(X0); - if (CSS.supports("color", Z0)) { - Pt.display_space = Xo; - break; - } - } - function J0(e) { - var t, - r = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - a = r.space, - n = a === void 0 ? Pt.display_space : a, - i = qe(r, Mp), - o = Pn(e, i); - if ( - typeof CSS > "u" || - ((t = CSS) !== null && - t !== void 0 && - t.supports("color", o)) || - !Pt.display_space - ) - ((o = new String(o)), (o.color = e)); - else { - var u = yt(e, n); - ((o = new String(Pn(u, i))), (o.color = u)); - } - return o; - } - function Cd(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : "lab"; - r = ee.get(r); - var a = r.from(e), - n = r.from(t); - return Math.sqrt( - a.reduce(function (i, o, u) { - var s = n[u]; - return isNaN(o) || isNaN(s) ? i : i + Math.pow(s - o, 2); - }, 0), - ); - } - function Q0(e, t) { - return ( - (e = ge(e)), - (t = ge(t)), - e.space === t.space && - e.alpha === t.alpha && - e.coords.every(function (r, a) { - return r === t.coords[a]; - }) - ); - } - function or(e) { - return bt(e, [gt, "y"]); - } - function Fd(e, t) { - nr(e, [gt, "y"], t); - } - function e2(e) { - Object.defineProperty(e.prototype, "luminance", { - get: function () { - return or(this); - }, - set: function (r) { - Fd(this, r); - }, - }); - } - var t2 = Object.freeze({ - __proto__: null, - getLuminance: or, - setLuminance: Fd, - register: e2, - }); - function r2(e, t) { - ((e = ge(e)), (t = ge(t))); - var r = Math.max(or(e), 0), - a = Math.max(or(t), 0); - if (a > r) { - var n = [a, r]; - ((r = n[0]), (a = n[1])); - } - return (r + 0.05) / (a + 0.05); - } - var a2 = 0.56, - n2 = 0.57, - i2 = 0.62, - o2 = 0.65, - Td = 0.022, - u2 = 1.414, - s2 = 0.1, - l2 = 5e-4, - c2 = 1.14, - Rd = 0.027, - d2 = 1.14; - function Sd(e) { - return e >= Td ? e : e + Math.pow(Td - e, u2); - } - function Hr(e) { - var t = e < 0 ? -1 : 1, - r = Math.abs(e); - return t * Math.pow(r, 2.4); - } - function f2(e, t) { - ((t = ge(t)), (e = ge(e))); - var r, a, n, i, o, u; - t = yt(t, "srgb"); - var s = $(t.coords, 3); - ((i = s[0]), (o = s[1]), (u = s[2])); - var l = Hr(i) * 0.2126729 + Hr(o) * 0.7151522 + Hr(u) * 0.072175; - e = yt(e, "srgb"); - var c = $(e.coords, 3); - ((i = c[0]), (o = c[1]), (u = c[2])); - var d = Hr(i) * 0.2126729 + Hr(o) * 0.7151522 + Hr(u) * 0.072175, - f = Sd(l), - p = Sd(d), - m = p > f; - return ( - Math.abs(p - f) < l2 - ? (a = 0) - : m - ? ((r = Math.pow(p, a2) - Math.pow(f, n2)), (a = r * c2)) - : ((r = Math.pow(p, o2) - Math.pow(f, i2)), (a = r * d2)), - Math.abs(a) < s2 - ? (n = 0) - : a > 0 - ? (n = a - Rd) - : (n = a + Rd), - n * 100 - ); - } - function p2(e, t) { - ((e = ge(e)), (t = ge(t))); - var r = Math.max(or(e), 0), - a = Math.max(or(t), 0); - if (a > r) { - var n = [a, r]; - ((r = n[0]), (a = n[1])); - } - var i = r + a; - return i === 0 ? 0 : (r - a) / i; - } - var m2 = 5e4; - function h2(e, t) { - ((e = ge(e)), (t = ge(t))); - var r = Math.max(or(e), 0), - a = Math.max(or(t), 0); - if (a > r) { - var n = [a, r]; - ((r = n[0]), (a = n[1])); - } - return a === 0 ? m2 : (r - a) / a; - } - function v2(e, t) { - ((e = ge(e)), (t = ge(t))); - var r = bt(e, [ct, "l"]), - a = bt(t, [ct, "l"]); - return Math.abs(r - a); - } - var g2 = 216 / 24389, - kd = 24 / 116, - Bn = 24389 / 27, - Zo = Ct.D65, - Jo = new ee({ - id: "lab-d65", - name: "Lab D65", - coords: { - l: { refRange: [0, 100], name: "L" }, - a: { refRange: [-125, 125] }, - b: { refRange: [-125, 125] }, - }, - white: Zo, - base: gt, - fromBase: function (t) { - var r = t.map(function (n, i) { - return n / Zo[i]; - }), - a = r.map(function (n) { - return n > g2 ? Math.cbrt(n) : (Bn * n + 16) / 116; - }); - return [ - 116 * a[1] - 16, - 500 * (a[0] - a[1]), - 200 * (a[1] - a[2]), - ]; - }, - toBase: function (t) { - var r = []; - ((r[1] = (t[0] + 16) / 116), - (r[0] = t[1] / 500 + r[1]), - (r[2] = r[1] - t[2] / 200)); - var a = [ - r[0] > kd ? Math.pow(r[0], 3) : (116 * r[0] - 16) / Bn, - t[0] > 8 ? Math.pow((t[0] + 16) / 116, 3) : t[0] / Bn, - r[2] > kd ? Math.pow(r[2], 3) : (116 * r[2] - 16) / Bn, - ]; - return a.map(function (n, i) { - return n * Zo[i]; - }); - }, - formats: { - "lab-d65": { - coords: [" | ", "", ""], - }, - }, - }), - Qo = Math.pow(5, 0.5) * 0.5 + 0.5; - function b2(e, t) { - ((e = ge(e)), (t = ge(t))); - var r = bt(e, [Jo, "l"]), - a = bt(t, [Jo, "l"]), - n = Math.abs(Math.pow(r, Qo) - Math.pow(a, Qo)), - i = Math.pow(n, 1 / Qo) * Math.SQRT2 - 40; - return i < 7.5 ? 0 : i; - } - var qn = Object.freeze({ - __proto__: null, - contrastWCAG21: r2, - contrastAPCA: f2, - contrastMichelson: p2, - contrastWeber: h2, - contrastLstar: v2, - contrastDeltaPhi: b2, - }); - function y2(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}; - Ea(r) && (r = { algorithm: r }); - var a = r, - n = a.algorithm, - i = qe(a, Ip); - if (!n) { - var o = Object.keys(qn) - .map(function (s) { - return s.replace(/^contrast/, ""); - }) - .join(", "); - throw new TypeError( - "contrast() function needs a contrast algorithm. Please specify one of: ".concat( - o, - ), - ); - } - ((e = ge(e)), (t = ge(t))); - for (var u in qn) - if ("contrast" + n.toLowerCase() === u.toLowerCase()) - return qn[u](e, t, i); - throw new TypeError("Unknown contrast algorithm: ".concat(n)); - } - function Od(e) { - var t = Aa(e, gt), - r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o = a + 15 * n + 3 * i; - return [(4 * a) / o, (9 * n) / o]; - } - function Md(e) { - var t = Aa(e, gt), - r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o = a + n + i; - return [a / o, n / o]; - } - function w2(e) { - (Object.defineProperty(e.prototype, "uv", { - get: function () { - return Od(this); - }, - }), - Object.defineProperty(e.prototype, "xy", { - get: function () { - return Md(this); - }, - })); - } - var D2 = Object.freeze({ - __proto__: null, - uv: Od, - xy: Md, - register: w2, - }); - function _2(e, t) { - return Cd(e, t, "lab"); - } - var x2 = Math.PI, - Id = x2 / 180; - function E2(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}, - a = r.l, - n = a === void 0 ? 2 : a, - i = r.c, - o = i === void 0 ? 1 : i, - u = ct.from(e), - s = $(u, 3), - l = s[0], - c = s[1], - d = s[2], - f = Ca.from(ct, [l, c, d]), - p = $(f, 3), - m = p[1], - h = p[2], - v = ct.from(t), - g = $(v, 3), - b = g[0], - D = g[1], - w = g[2], - _ = Ca.from(ct, [b, D, w])[1]; - (m < 0 && (m = 0), _ < 0 && (_ = 0)); - var F = l - b, - R = m - _, - I = c - D, - V = d - w, - S = Math.pow(I, 2) + Math.pow(V, 2) - Math.pow(R, 2), - N = 0.511; - l >= 16 && (N = (0.040975 * l) / (1 + 0.01765 * l)); - var z = (0.0638 * m) / (1 + 0.0131 * m) + 0.638, - H; - (Number.isNaN(h) && (h = 0), - h >= 164 && h <= 345 - ? (H = 0.56 + Math.abs(0.2 * Math.cos((h + 168) * Id))) - : (H = 0.36 + Math.abs(0.4 * Math.cos((h + 35) * Id)))); - var Q = Math.pow(m, 4), - ie = Math.sqrt(Q / (Q + 1900)), - Y = z * (ie * H + 1 - ie), - te = Math.pow(F / (n * N), 2); - return ( - (te += Math.pow(R / (o * z), 2)), - (te += S / Math.pow(Y, 2)), - Math.sqrt(te) - ); - } - var Pd = 203, - eu = new ee({ - id: "xyz-abs-d65", - name: "Absolute XYZ D65", - coords: { - x: { refRange: [0, 9504.7], name: "Xa" }, - y: { refRange: [0, 1e4], name: "Ya" }, - z: { refRange: [0, 10888.3], name: "Za" }, - }, - base: gt, - fromBase: function (t) { - return t.map(function (r) { - return Math.max(r * Pd, 0); - }); - }, - toBase: function (t) { - return t.map(function (r) { - return Math.max(r / Pd, 0); - }); - }, - }), - jn = 1.15, - zn = 0.66, - Nd = 2610 / Math.pow(2, 14), - A2 = Math.pow(2, 14) / 2610, - Ld = 3424 / Math.pow(2, 12), - Bd = 2413 / Math.pow(2, 7), - qd = 2392 / Math.pow(2, 7), - C2 = (1.7 * 2523) / Math.pow(2, 5), - jd = Math.pow(2, 5) / (1.7 * 2523), - Vn = -0.56, - tu = 16295499532821565e-27, - F2 = [ - [0.41478972, 0.579999, 0.014648], - [-0.20151, 1.120649, 0.0531008], - [-0.0166008, 0.2648, 0.6684799], - ], - T2 = [ - [1.9242264357876067, -1.0047923125953657, 0.037651404030618], - [0.35031676209499907, 0.7264811939316552, -0.06538442294808501], - [-0.09098281098284752, -0.3127282905230739, 1.5227665613052603], - ], - R2 = [ - [0.5, 0.5, 0], - [3.524, -4.066708, 0.542708], - [0.199076, 1.096799, -1.295875], - ], - S2 = [ - [1, 0.1386050432715393, 0.05804731615611886], - [0.9999999999999999, -0.1386050432715393, -0.05804731615611886], - [0.9999999999999998, -0.09601924202631895, -0.8118918960560388], - ], - zd = new ee({ - id: "jzazbz", - name: "Jzazbz", - coords: { - jz: { refRange: [0, 1], name: "Jz" }, - az: { refRange: [-0.5, 0.5] }, - bz: { refRange: [-0.5, 0.5] }, - }, - base: eu, - fromBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o = jn * a - (jn - 1) * i, - u = zn * n - (zn - 1) * a, - s = Le(F2, [o, u, i]), - l = s.map(function (v) { - var g = Ld + Bd * Math.pow(v / 1e4, Nd), - b = 1 + qd * Math.pow(v / 1e4, Nd); - return Math.pow(g / b, C2); - }), - c = Le(R2, l), - d = $(c, 3), - f = d[0], - p = d[1], - m = d[2], - h = ((1 + Vn) * f) / (1 + Vn * f) - tu; - return [h, p, m]; - }, - toBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o = (a + tu) / (1 + Vn - Vn * (a + tu)), - u = Le(S2, [o, n, i]), - s = u.map(function (v) { - var g = Ld - Math.pow(v, jd), - b = qd * Math.pow(v, jd) - Bd, - D = 1e4 * Math.pow(g / b, A2); - return D; - }), - l = Le(T2, s), - c = $(l, 3), - d = c[0], - f = c[1], - p = c[2], - m = (d + (jn - 1) * p) / jn, - h = (f + (zn - 1) * m) / zn; - return [m, h, p]; - }, - formats: { color: {} }, - }), - ru = new ee({ - id: "jzczhz", - name: "JzCzHz", - coords: { - jz: { refRange: [0, 1], name: "Jz" }, - cz: { refRange: [0, 1], name: "Chroma" }, - hz: { refRange: [0, 360], type: "angle", name: "Hue" }, - }, - base: zd, - fromBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o, - u = 2e-4; - return ( - Math.abs(n) < u && Math.abs(i) < u - ? (o = NaN) - : (o = (Math.atan2(i, n) * 180) / Math.PI), - [a, Math.sqrt(Math.pow(n, 2) + Math.pow(i, 2)), Mn(o)] - ); - }, - toBase: function (t) { - return [ - t[0], - t[1] * Math.cos((t[2] * Math.PI) / 180), - t[1] * Math.sin((t[2] * Math.PI) / 180), - ]; - }, - formats: { color: {} }, - }); - function k2(e, t) { - var r = ru.from(e), - a = $(r, 3), - n = a[0], - i = a[1], - o = a[2], - u = ru.from(t), - s = $(u, 3), - l = s[0], - c = s[1], - d = s[2], - f = n - l, - p = i - c; - Number.isNaN(o) && Number.isNaN(d) - ? ((o = 0), (d = 0)) - : Number.isNaN(o) - ? (o = d) - : Number.isNaN(d) && (d = o); - var m = o - d, - h = 2 * Math.sqrt(i * c) * Math.sin((m / 2) * (Math.PI / 180)); - return Math.sqrt( - Math.pow(f, 2) + Math.pow(p, 2) + Math.pow(h, 2), - ); - } - var Vd = 3424 / 4096, - Hd = 2413 / 128, - $d = 2392 / 128, - Ud = 2610 / 16384, - O2 = 2523 / 32, - M2 = 16384 / 2610, - Gd = 32 / 2523, - I2 = [ - [0.3592, 0.6976, -0.0358], - [-0.1922, 1.1004, 0.0755], - [0.007, 0.0749, 0.8434], - ], - P2 = [ - [2048 / 4096, 2048 / 4096, 0], - [6610 / 4096, -13613 / 4096, 7003 / 4096], - [17933 / 4096, -17390 / 4096, -543 / 4096], - ], - N2 = [ - [0.9999888965628402, 0.008605050147287059, 0.11103437159861648], - [1.00001110343716, -0.008605050147287059, -0.11103437159861648], - [1.0000320633910054, 0.56004913547279, -0.3206339100541203], - ], - L2 = [ - [2.0701800566956137, -1.326456876103021, 0.20661600684785517], - [0.3649882500326575, 0.6804673628522352, -0.04542175307585323], - [ - -0.04959554223893211, -0.04942116118675749, - 1.1879959417328034, - ], - ], - au = new ee({ - id: "ictcp", - name: "ICTCP", - coords: { - i: { refRange: [0, 1], name: "I" }, - ct: { refRange: [-0.5, 0.5], name: "CT" }, - cp: { refRange: [-0.5, 0.5], name: "CP" }, - }, - base: eu, - fromBase: function (t) { - var r = Le(I2, t); - return B2(r); - }, - toBase: function (t) { - var r = q2(t); - return Le(L2, r); - }, - formats: { color: {} }, - }); - function B2(e) { - var t = e.map(function (r) { - var a = Vd + Hd * Math.pow(r / 1e4, Ud), - n = 1 + $d * Math.pow(r / 1e4, Ud); - return Math.pow(a / n, O2); - }); - return Le(P2, t); - } - function q2(e) { - var t = Le(N2, e), - r = t.map(function (a) { - var n = Math.max(Math.pow(a, Gd) - Vd, 0), - i = Hd - $d * Math.pow(a, Gd); - return 1e4 * Math.pow(n / i, M2); - }); - return r; - } - function j2(e, t) { - var r = au.from(e), - a = $(r, 3), - n = a[0], - i = a[1], - o = a[2], - u = au.from(t), - s = $(u, 3), - l = s[0], - c = s[1], - d = s[2]; - return ( - 720 * - Math.sqrt( - Math.pow(n - l, 2) + - 0.25 * Math.pow(i - c, 2) + - Math.pow(o - d, 2), - ) - ); - } - var z2 = [ - [0.8190224432164319, 0.3619062562801221, -0.12887378261216414], - [0.0329836671980271, 0.9292868468965546, 0.03614466816999844], - [0.048177199566046255, 0.26423952494422764, 0.6335478258136937], - ], - V2 = [ - [1.2268798733741557, -0.5578149965554813, 0.28139105017721583], - [ - -0.04057576262431372, 1.1122868293970594, - -0.07171106666151701, - ], - [-0.07637294974672142, -0.4214933239627914, 1.5869240244272418], - ], - H2 = [ - [0.2104542553, 0.793617785, -0.0040720468], - [1.9779984951, -2.428592205, 0.4505937099], - [0.0259040371, 0.7827717662, -0.808675766], - ], - $2 = [ - [0.9999999984505198, 0.39633779217376786, 0.2158037580607588], - [ - 1.0000000088817609, -0.10556134232365635, - -0.06385417477170591, - ], - [1.0000000546724108, -0.08948418209496575, -1.2914855378640917], - ], - Hn = new ee({ - id: "oklab", - name: "OKLab", - coords: { - l: { refRange: [0, 1], name: "L" }, - a: { refRange: [-0.4, 0.4] }, - b: { refRange: [-0.4, 0.4] }, - }, - white: "D65", - base: gt, - fromBase: function (t) { - var r = Le(z2, t), - a = r.map(function (n) { - return Math.cbrt(n); - }); - return Le(H2, a); - }, - toBase: function (t) { - var r = Le($2, t), - a = r.map(function (n) { - return Math.pow(n, 3); - }); - return Le(V2, a); - }, - formats: { - oklab: { - coords: [" | ", "", ""], - }, - }, - }); - function U2(e, t) { - var r = Hn.from(e), - a = $(r, 3), - n = a[0], - i = a[1], - o = a[2], - u = Hn.from(t), - s = $(u, 3), - l = s[0], - c = s[1], - d = s[2], - f = n - l, - p = i - c, - m = o - d; - return Math.sqrt( - Math.pow(f, 2) + Math.pow(p, 2) + Math.pow(m, 2), - ); - } - var nu = Object.freeze({ - __proto__: null, - deltaE76: _2, - deltaECMC: E2, - deltaE2000: Yo, - deltaEJz: k2, - deltaEITP: j2, - deltaEOK: U2, - }); - function Sa(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}; - Ea(r) && (r = { method: r }); - var a = r, - n = a.method, - i = n === void 0 ? Pt.deltaE : n, - o = qe(a, Pp); - ((e = ge(e)), (t = ge(t))); - for (var u in nu) - if ("deltae" + i.toLowerCase() === u.toLowerCase()) - return nu[u](e, t, o); - throw new TypeError("Unknown deltaE method: ".concat(i)); - } - function G2(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 0.25, - r = ee.get("oklch", "lch"), - a = [r, "l"]; - return nr(e, a, function (n) { - return n * (1 + t); - }); - } - function W2(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 0.25, - r = ee.get("oklch", "lch"), - a = [r, "l"]; - return nr(e, a, function (n) { - return n * (1 - t); - }); - } - var Y2 = Object.freeze({ - __proto__: null, - lighten: G2, - darken: W2, - }); - function Wd(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : 0.5, - a = - arguments.length > 3 && arguments[3] !== void 0 - ? arguments[3] - : {}, - n = [ge(e), ge(t)]; - if (((e = n[0]), (t = n[1]), rr(r) === "object")) { - var i = [0.5, r]; - ((r = i[0]), (a = i[1])); - } - var o = a, - u = o.space, - s = o.outputSpace, - l = o.premultiplied, - c = ka(e, t, { space: u, outputSpace: s, premultiplied: l }); - return c(r); - } - function Yd(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}, - a; - if (iu(e)) { - ((a = e), (r = t)); - var n = $(a.rangeArgs.colors, 2); - ((e = n[0]), (t = n[1])); - } - var i = r, - o = i.maxDeltaE, - u = i.deltaEMethod, - s = i.steps, - l = s === void 0 ? 2 : s, - c = i.maxSteps, - d = c === void 0 ? 1e3 : c, - f = qe(i, Np); - if (!a) { - var p = [ge(e), ge(t)]; - ((e = p[0]), (t = p[1]), (a = ka(e, t, f))); - } - var m = Sa(e, t), - h = o > 0 ? Math.max(l, Math.ceil(m / o) + 1) : l, - v = []; - if ((d !== void 0 && (h = Math.min(h, d)), h === 1)) - v = [{ p: 0.5, color: a(0.5) }]; - else { - var g = 1 / (h - 1); - v = Array.from({ length: h }, function (I, V) { - var S = V * g; - return { p: S, color: a(S) }; - }); - } - if (o > 0) - for ( - var b = v.reduce(function (I, V, S) { - if (S === 0) return 0; - var N = Sa(V.color, v[S - 1].color, u); - return Math.max(I, N); - }, 0); - b > o; - ) { - b = 0; - for (var D = 1; D < v.length && v.length < d; D++) { - var w = v[D - 1], - _ = v[D], - F = (_.p + w.p) / 2, - R = a(F); - ((b = Math.max(b, Sa(R, w.color), Sa(R, _.color))), - v.splice(D, 0, { p: F, color: a(F) }), - D++); - } - } - return ( - (v = v.map(function (I) { - return I.color; - })), - v - ); - } - function ka(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}; - if (iu(e)) { - var a = e, - n = t; - return ka.apply( - void 0, - ne(a.rangeArgs.colors).concat([ - de({}, a.rangeArgs.options, n), - ]), - ); - } - var i = r.space, - o = r.outputSpace, - u = r.progression, - s = r.premultiplied; - ((e = ge(e)), (t = ge(t)), (e = Ta(e)), (t = Ta(t))); - var l = { colors: [e, t], options: r }; - if ( - (i - ? (i = ee.get(i)) - : (i = ee.registry[Pt.interpolationSpace] || e.space), - (o = o ? ee.get(o) : i), - (e = yt(e, i)), - (t = yt(t, i)), - (e = ir(e)), - (t = ir(t)), - i.coords.h && i.coords.h.type === "angle") - ) { - var c = (r.hue = r.hue || "shorter"), - d = [i, "h"], - f = [bt(e, d), bt(t, d)], - p = f[0], - m = f[1], - h = z0(c, [p, m]), - v = $(h, 2); - ((p = v[0]), (m = v[1]), nr(e, d, p), nr(t, d, m)); - } - return ( - s && - ((e.coords = e.coords.map(function (g) { - return g * e.alpha; - })), - (t.coords = t.coords.map(function (g) { - return g * t.alpha; - }))), - Object.assign( - function (g) { - g = u ? u(g) : g; - var b = e.coords.map(function (_, F) { - var R = t.coords[F]; - return Sn(_, R, g); - }), - D = Sn(e.alpha, t.alpha, g), - w = { space: i, coords: b, alpha: D }; - return ( - s && - (w.coords = w.coords.map(function (_) { - return _ / D; - })), - o !== i && (w = yt(w, o)), - w - ); - }, - { rangeArgs: l }, - ) - ); - } - function iu(e) { - return rr(e) === "function" && !!e.rangeArgs; - } - Pt.interpolationSpace = "lab"; - function K2(e) { - (e.defineFunction("mix", Wd, { returns: "color" }), - e.defineFunction("range", ka, { returns: "function" }), - e.defineFunction("steps", Yd, { returns: "array" })); - } - var X2 = Object.freeze({ - __proto__: null, - mix: Wd, - steps: Yd, - range: ka, - isRange: iu, - register: K2, - }), - Kd = new ee({ - id: "hsl", - name: "HSL", - coords: { - h: { refRange: [0, 360], type: "angle", name: "Hue" }, - s: { range: [0, 100], name: "Saturation" }, - l: { range: [0, 100], name: "Lightness" }, - }, - base: Ra, - fromBase: function (t) { - var r = Math.max.apply(Math, ne(t)), - a = Math.min.apply(Math, ne(t)), - n = $(t, 3), - i = n[0], - o = n[1], - u = n[2], - s = NaN, - l = 0, - c = (a + r) / 2, - d = r - a; - if (d !== 0) { - switch ( - ((l = - c === 0 || c === 1 ? 0 : (r - c) / Math.min(c, 1 - c)), - r) - ) { - case i: - s = (o - u) / d + (o < u ? 6 : 0); - break; - case o: - s = (u - i) / d + 2; - break; - case u: - s = (i - o) / d + 4; - } - s = s * 60; - } - return [s, l * 100, c * 100]; - }, - toBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2]; - ((a = a % 360), a < 0 && (a += 360), (n /= 100), (i /= 100)); - function o(u) { - var s = (u + a / 30) % 12, - l = n * Math.min(i, 1 - i); - return i - l * Math.max(-1, Math.min(s - 3, 9 - s, 1)); - } - return [o(0), o(8), o(4)]; - }, - formats: { - hsl: { - toGamut: !0, - coords: [ - " | ", - "", - "", - ], - }, - hsla: { - coords: [ - " | ", - "", - "", - ], - commas: !0, - lastAlpha: !0, - }, - }, - }), - Xd = new ee({ - id: "hsv", - name: "HSV", - coords: { - h: { refRange: [0, 360], type: "angle", name: "Hue" }, - s: { range: [0, 100], name: "Saturation" }, - v: { range: [0, 100], name: "Value" }, - }, - base: Kd, - fromBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2]; - ((n /= 100), (i /= 100)); - var o = i + n * Math.min(i, 1 - i); - return [a, o === 0 ? 0 : 200 * (1 - i / o), 100 * o]; - }, - toBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2]; - ((n /= 100), (i /= 100)); - var o = i * (1 - n / 2); - return [ - a, - o === 0 || o === 1 - ? 0 - : ((i - o) / Math.min(o, 1 - o)) * 100, - o * 100, - ]; - }, - formats: { color: { toGamut: !0 } }, - }), - Z2 = new ee({ - id: "hwb", - name: "HWB", - coords: { - h: { refRange: [0, 360], type: "angle", name: "Hue" }, - w: { range: [0, 100], name: "Whiteness" }, - b: { range: [0, 100], name: "Blackness" }, - }, - base: Xd, - fromBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2]; - return [a, (i * (100 - n)) / 100, 100 - i]; - }, - toBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2]; - ((n /= 100), (i /= 100)); - var o = n + i; - if (o >= 1) { - var u = n / o; - return [a, 0, u * 100]; - } - var s = 1 - i, - l = s === 0 ? 0 : 1 - n / s; - return [a, l * 100, s * 100]; - }, - formats: { - hwb: { - toGamut: !0, - coords: [ - " | ", - "", - "", - ], - }, - }, - }), - J2 = [ - [0.5766690429101305, 0.1855582379065463, 0.1882286462349947], - [0.29734497525053605, 0.6273635662554661, 0.07529145849399788], - [0.02703136138641234, 0.07068885253582723, 0.9913375368376388], - ], - Q2 = [ - [2.0415879038107465, -0.5650069742788596, -0.34473135077832956], - [-0.9692436362808795, 1.8759675015077202, 0.04155505740717557], - [ - 0.013444280632031142, -0.11836239223101838, - 1.0151749943912054, - ], - ], - Zd = new nt({ - id: "a98rgb-linear", - name: "Linear Adobe® 98 RGB compatible", - white: "D65", - toXYZ_M: J2, - fromXYZ_M: Q2, - }), - ew = new nt({ - id: "a98rgb", - name: "Adobe® 98 RGB compatible", - base: Zd, - toBase: function (t) { - return t.map(function (r) { - return Math.pow(Math.abs(r), 563 / 256) * Math.sign(r); - }); - }, - fromBase: function (t) { - return t.map(function (r) { - return Math.pow(Math.abs(r), 256 / 563) * Math.sign(r); - }); - }, - formats: { color: { id: "a98-rgb" } }, - }), - tw = [ - [0.7977604896723027, 0.13518583717574031, 0.0313493495815248], - [0.2880711282292934, 0.7118432178101014, 8565396060525902e-20], - [0, 0, 0.8251046025104601], - ], - rw = [ - [ - 1.3457989731028281, -0.25558010007997534, - -0.05110628506753401, - ], - [-0.5446224939028347, 1.5082327413132781, 0.02053603239147973], - [0, 0, 1.2119675456389454], - ], - Jd = new nt({ - id: "prophoto-linear", - name: "Linear ProPhoto", - white: "D50", - base: Go, - toXYZ_M: tw, - fromXYZ_M: rw, - }), - aw = 1 / 512, - nw = 16 / 512, - iw = new nt({ - id: "prophoto", - name: "ProPhoto", - base: Jd, - toBase: function (t) { - return t.map(function (r) { - return r < nw ? r / 16 : Math.pow(r, 1.8); - }); - }, - fromBase: function (t) { - return t.map(function (r) { - return r >= aw ? Math.pow(r, 1 / 1.8) : 16 * r; - }); - }, - formats: { color: { id: "prophoto-rgb" } }, - }), - ow = new ee({ - id: "oklch", - name: "OKLCh", - coords: { - l: { refRange: [0, 1], name: "Lightness" }, - c: { refRange: [0, 0.4], name: "Chroma" }, - h: { refRange: [0, 360], type: "angle", name: "Hue" }, - }, - white: "D65", - base: Hn, - fromBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o, - u = 2e-4; - return ( - Math.abs(n) < u && Math.abs(i) < u - ? (o = NaN) - : (o = (Math.atan2(i, n) * 180) / Math.PI), - [a, Math.sqrt(Math.pow(n, 2) + Math.pow(i, 2)), Mn(o)] - ); - }, - toBase: function (t) { - var r = $(t, 3), - a = r[0], - n = r[1], - i = r[2], - o, - u; - return ( - isNaN(i) - ? ((o = 0), (u = 0)) - : ((o = n * Math.cos((i * Math.PI) / 180)), - (u = n * Math.sin((i * Math.PI) / 180))), - [a, o, u] - ); - }, - formats: { - oklch: { - coords: [ - " | ", - "", - " | ", - ], - }, - }, - }), - Qd = 203, - e1 = 2610 / Math.pow(2, 14), - uw = Math.pow(2, 14) / 2610, - sw = 2523 / Math.pow(2, 5), - t1 = Math.pow(2, 5) / 2523, - r1 = 3424 / Math.pow(2, 12), - a1 = 2413 / Math.pow(2, 7), - n1 = 2392 / Math.pow(2, 7), - lw = new nt({ - id: "rec2100pq", - name: "REC.2100-PQ", - base: Nn, - toBase: function (t) { - return t.map(function (r) { - var a = Math.pow( - Math.max(Math.pow(r, t1) - r1, 0) / - (a1 - n1 * Math.pow(r, t1)), - uw, - ); - return (a * 1e4) / Qd; - }); - }, - fromBase: function (t) { - return t.map(function (r) { - var a = Math.max((r * Qd) / 1e4, 0), - n = r1 + a1 * Math.pow(a, e1), - i = 1 + n1 * Math.pow(a, e1); - return Math.pow(n / i, sw); - }); - }, - formats: { color: { id: "rec2100-pq" } }, - }), - i1 = 0.17883277, - o1 = 0.28466892, - u1 = 0.55991073, - ou = 3.7743, - cw = new nt({ - id: "rec2100hlg", - cssid: "rec2100-hlg", - name: "REC.2100-HLG", - referred: "scene", - base: Nn, - toBase: function (t) { - return t.map(function (r) { - return r <= 0.5 - ? (Math.pow(r, 2) / 3) * ou - : (Math.exp((r - u1) / i1 + o1) / 12) * ou; - }); - }, - fromBase: function (t) { - return t.map(function (r) { - return ( - (r /= ou), - r <= 1 / 12 - ? Math.sqrt(3 * r) - : i1 * Math.log(12 * r - o1) + u1 - ); - }); - }, - formats: { color: { id: "rec2100-hlg" } }, - }), - s1 = {}; - (ar.add("chromatic-adaptation-start", function (e) { - e.options.method && (e.M = l1(e.W1, e.W2, e.options.method)); - }), - ar.add("chromatic-adaptation-end", function (e) { - e.M || (e.M = l1(e.W1, e.W2, e.options.method)); - })); - function $n(e) { - var t = e.id; - (e.toCone_M, e.fromCone_M, (s1[t] = arguments[0])); - } - function l1(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : "Bradford", - a = s1[r], - n = Le(a.toCone_M, e), - i = $(n, 3), - o = i[0], - u = i[1], - s = i[2], - l = Le(a.toCone_M, t), - c = $(l, 3), - d = c[0], - f = c[1], - p = c[2], - m = [ - [d / o, 0, 0], - [0, f / u, 0], - [0, 0, p / s], - ], - h = Le(m, a.toCone_M), - v = Le(a.fromCone_M, h); - return v; - } - ($n({ - id: "von Kries", - toCone_M: [ - [0.40024, 0.7076, -0.08081], - [-0.2263, 1.16532, 0.0457], - [0, 0, 0.91822], - ], - fromCone_M: [ - [1.8599364, -1.1293816, 0.2198974], - [0.3611914, 0.6388125, -64e-7], - [0, 0, 1.0890636], - ], - }), - $n({ - id: "Bradford", - toCone_M: [ - [0.8951, 0.2664, -0.1614], - [-0.7502, 1.7135, 0.0367], - [0.0389, -0.0685, 1.0296], - ], - fromCone_M: [ - [0.9869929, -0.1470543, 0.1599627], - [0.4323053, 0.5183603, 0.0492912], - [-0.0085287, 0.0400428, 0.9684867], - ], - }), - $n({ - id: "CAT02", - toCone_M: [ - [0.7328, 0.4296, -0.1624], - [-0.7036, 1.6975, 0.0061], - [0.003, 0.0136, 0.9834], - ], - fromCone_M: [ - [1.0961238, -0.278869, 0.1827452], - [0.454369, 0.4735332, 0.0720978], - [-0.0096276, -0.005698, 1.0153256], - ], - }), - $n({ - id: "CAT16", - toCone_M: [ - [0.401288, 0.650173, -0.051461], - [-0.250268, 1.204414, 0.045854], - [-0.002079, 0.048952, 0.953127], - ], - fromCone_M: [ - [1.862067855087233, -1.011254630531685, 0.1491867754444518], - [ - 0.3875265432361372, 0.6214474419314753, - -0.008973985167612518, - ], - [ - -0.01584149884933386, -0.03412293802851557, - 1.04996443687785, - ], - ], - }), - Object.assign(Ct, { - A: [1.0985, 1, 0.35585], - C: [0.98074, 1, 1.18232], - D55: [0.95682, 1, 0.92149], - D75: [0.94972, 1, 1.22638], - E: [1, 1, 1], - F2: [0.99186, 1, 0.67393], - F7: [0.95041, 1, 1.08747], - F11: [1.00962, 1, 0.6435], - }), - (Ct.ACES = [ - 0.32168 / 0.33767, - 1, - (1 - 0.32168 - 0.33767) / 0.33767, - ])); - var dw = [ - [0.6624541811085053, 0.13400420645643313, 0.1561876870049078], - [0.27222871678091454, 0.6740817658111484, 0.05368951740793705], - [ - -0.005574649490394108, 0.004060733528982826, - 1.0103391003129971, - ], - ], - fw = [ - [1.6410233796943257, -0.32480329418479, -0.23642469523761225], - [-0.6636628587229829, 1.6153315916573379, 0.016756347685530137], - [ - 0.011721894328375376, -0.008284441996237409, - 0.9883948585390215, - ], - ], - c1 = new nt({ - id: "acescg", - name: "ACEScg", - coords: { - r: { range: [0, 65504], name: "Red" }, - g: { range: [0, 65504], name: "Green" }, - b: { range: [0, 65504], name: "Blue" }, - }, - referred: "scene", - white: Ct.ACES, - toXYZ_M: dw, - fromXYZ_M: fw, - formats: { color: {} }, - }), - Un = Math.pow(2, -16), - uu = -0.35828683, - Gn = (Math.log2(65504) + 9.72) / 17.52, - pw = new nt({ - id: "acescc", - name: "ACEScc", - coords: { - r: { range: [uu, Gn], name: "Red" }, - g: { range: [uu, Gn], name: "Green" }, - b: { range: [uu, Gn], name: "Blue" }, - }, - referred: "scene", - base: c1, - toBase: function (t) { - var r = -0.3013698630136986; - return t.map(function (a) { - return a <= r - ? (Math.pow(2, a * 17.52 - 9.72) - Un) * 2 - : a < Gn - ? Math.pow(2, a * 17.52 - 9.72) - : 65504; - }); - }, - fromBase: function (t) { - return t.map(function (r) { - return r <= 0 - ? (Math.log2(Un) + 9.72) / 17.52 - : r < Un - ? (Math.log2(Un + r * 0.5) + 9.72) / 17.52 - : (Math.log2(r) + 9.72) / 17.52; - }); - }, - formats: { color: {} }, - }), - d1 = Object.freeze({ - __proto__: null, - XYZ_D65: gt, - XYZ_D50: Go, - XYZ_ABS_D65: eu, - Lab_D65: Jo, - Lab: ct, - LCH: Ca, - sRGB_Linear: wd, - sRGB: Ra, - HSL: Kd, - HWB: Z2, - HSV: Xd, - P3_Linear: yd, - P3: Ed, - A98RGB_Linear: Zd, - A98RGB: ew, - ProPhoto_Linear: Jd, - ProPhoto: iw, - REC_2020_Linear: Nn, - REC_2020: bd, - OKLab: Hn, - OKLCH: ow, - Jzazbz: zd, - JzCzHz: ru, - ICTCP: au, - REC_2100_PQ: lw, - REC_2100_HLG: cw, - ACEScg: c1, - ACEScc: pw, - }), - _e = - ((J = new WeakMap()), - (function () { - function e() { - var t = this; - (Tt(this, e), Xt(this, J, void 0)); - for ( - var r, a = arguments.length, n = new Array(a), i = 0; - i < a; - i++ - ) - n[i] = arguments[i]; - n.length === 1 && (r = ge(n[0])); - var o, u, s; - (r - ? ((o = r.space || r.spaceId), - (u = r.coords), - (s = r.alpha)) - : ((o = n[0]), (u = n[1]), (s = n[2])), - at(J, this, ee.get(o)), - (this.coords = u ? u.slice() : [0, 0, 0]), - (this.alpha = s < 1 ? s : 1)); - for (var l = 0; l < this.coords.length; l++) - this.coords[l] === "NaN" && (this.coords[l] = NaN); - var c = function (p) { - Object.defineProperty(t, p, { - get: function () { - return t.get(p); - }, - set: function (h) { - return t.set(p, h); - }, - }); - }; - for (var d in wt(J, this).coords) c(d); - } - return Rt( - e, - [ - { - key: "space", - get: function () { - return wt(J, this); - }, - }, - { - key: "spaceId", - get: function () { - return wt(J, this).id; - }, - }, - { - key: "clone", - value: function () { - return new _e(this.space, this.coords, this.alpha); - }, - }, - { - key: "toJSON", - value: function () { - return { - spaceId: this.spaceId, - coords: this.coords, - alpha: this.alpha, - }; - }, - }, - { - key: "display", - value: function () { - for ( - var r = arguments.length, a = new Array(r), n = 0; - n < r; - n++ - ) - a[n] = arguments[n]; - var i = J0.apply(void 0, [this].concat(a)); - return ((i.color = new _e(i.color)), i); - }, - }, - ], - [ - { - key: "get", - value: function (r) { - if (r instanceof _e) return r; - for ( - var a = arguments.length, - n = new Array(a > 1 ? a - 1 : 0), - i = 1; - i < a; - i++ - ) - n[i - 1] = arguments[i]; - return Up(_e, [r].concat(n)); - }, - }, - { - key: "defineFunction", - value: function (r, a) { - var n = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : a, - i = n.instance, - o = i === void 0 ? !0 : i, - u = n.returns, - s = function () { - var c = a.apply(void 0, arguments); - if (u === "color") c = _e.get(c); - else if (u === "function") { - var d = c; - ((c = function () { - var p = d.apply(void 0, arguments); - return _e.get(p); - }), - Object.assign(c, d)); - } else - u === "array" && - (c = c.map(function (f) { - return _e.get(f); - })); - return c; - }; - (r in _e || (_e[r] = s), - o && - (_e.prototype[r] = function () { - for ( - var l = arguments.length, - c = new Array(l), - d = 0; - d < l; - d++ - ) - c[d] = arguments[d]; - return s.apply(void 0, [this].concat(c)); - })); - }, - }, - { - key: "defineFunctions", - value: function (r) { - for (var a in r) _e.defineFunction(a, r[a], r[a]); - }, - }, - { - key: "extend", - value: function (r) { - if (r.register) r.register(_e); - else for (var a in r) _e.defineFunction(a, r[a]); - }, - }, - ], - ); - })()); - (_e.defineFunctions({ - get: bt, - getAll: Aa, - set: nr, - setAll: pd, - to: yt, - equals: Q0, - inGamut: Fa, - toGamut: ir, - distance: Cd, - toString: Pn, - }), - Object.assign(_e, { - util: N0, - hooks: ar, - WHITES: Ct, - Space: ee, - spaces: ee.registry, - parse: fd, - defaults: Pt, - })); - for (var su = 0, f1 = Object.keys(d1); su < f1.length; su++) { - var mw = f1[su]; - ee.register(d1[mw]); - } - for (var p1 in ee.registry) lu(p1, ee.registry[p1]); - ar.add("colorspace-init-end", function (e) { - var t; - (lu(e.id, e), - (t = e.aliases) === null || - t === void 0 || - t.forEach(function (r) { - lu(r, e); - })); - }); - function lu(e, t) { - (Object.keys(t.coords), - Object.values(t.coords).map(function (a) { - return a.name; - })); - var r = e.replace(/-/g, "_"); - Object.defineProperty(_e.prototype, r, { - get: function () { - var n = this, - i = this.getAll(e); - return typeof Proxy > "u" - ? i - : new Proxy(i, { - has: function (u, s) { - try { - return (ee.resolveCoord([t, s]), !0); - } catch {} - return Reflect.has(u, s); - }, - get: function (u, s, l) { - if (s && O(s) !== "symbol" && !(s in u)) { - var c = ee.resolveCoord([t, s]), - d = c.index; - if (d >= 0) return u[d]; - } - return Reflect.get(u, s, l); - }, - set: function (u, s, l, c) { - if ((s && O(s) !== "symbol" && !(s in u)) || s >= 0) { - var d = ee.resolveCoord([t, s]), - f = d.index; - if (f >= 0) return ((u[f] = l), n.setAll(e, u), !0); - } - return Reflect.set(u, s, l, c); - }, - }); - }, - set: function (n) { - this.setAll(e, n); - }, - configurable: !0, - enumerable: !0, - }); - } - (_e.extend(nu), - _e.extend({ deltaE: Sa }), - _e.extend(Y2), - _e.extend({ contrast: y2 }), - _e.extend(D2), - _e.extend(t2), - _e.extend(X2), - _e.extend(qn)); - var m1 = ot(Hs()); - od.default.templateSettings.strip = !1; - var hw = /^#[0-9a-f]{3,8}$/i, - vw = /hsl\(\s*([-\d.]+)(rad|turn)/, - Oa = - ((Te = new WeakMap()), - (Pe = new WeakMap()), - (Ke = new WeakMap()), - (pt = new WeakMap()), - (He = new WeakMap()), - (tt = new WeakMap()), - (Qr = new WeakSet()), - (function () { - function e(t, r, a) { - var n = - arguments.length > 3 && arguments[3] !== void 0 - ? arguments[3] - : 1; - if ( - (Tt(this, e), - es(this, Qr), - Xt(this, Te, void 0), - Xt(this, Pe, void 0), - Xt(this, Ke, void 0), - Xt(this, pt, void 0), - Xt(this, He, void 0), - Xt(this, tt, void 0), - t instanceof Oa) - ) { - var i = t.r, - o = t.g, - u = t.b; - ((this.r = i), - (this.g = o), - (this.b = u), - (this.alpha = t.alpha)); - return; - } - ((this.red = t), - (this.green = r), - (this.blue = a), - (this.alpha = n)); - } - return Rt(e, [ - { - key: "r", - get: function () { - return wt(Te, this); - }, - set: function (r) { - (at(Te, this, r), - at(pt, this, Math.round($r(r, 0, 1) * 255))); - }, - }, - { - key: "g", - get: function () { - return wt(Pe, this); - }, - set: function (r) { - (at(Pe, this, r), - at(He, this, Math.round($r(r, 0, 1) * 255))); - }, - }, - { - key: "b", - get: function () { - return wt(Ke, this); - }, - set: function (r) { - (at(Ke, this, r), - at(tt, this, Math.round($r(r, 0, 1) * 255))); - }, - }, - { - key: "red", - get: function () { - return wt(pt, this); - }, - set: function (r) { - (at(Te, this, r / 255), at(pt, this, $r(r, 0, 255))); - }, - }, - { - key: "green", - get: function () { - return wt(He, this); - }, - set: function (r) { - (at(Pe, this, r / 255), at(He, this, $r(r, 0, 255))); - }, - }, - { - key: "blue", - get: function () { - return wt(tt, this); - }, - set: function (r) { - (at(Ke, this, r / 255), at(tt, this, $r(r, 0, 255))); - }, - }, - { - key: "toHexString", - value: function () { - var r = Math.round(this.red).toString(16), - a = Math.round(this.green).toString(16), - n = Math.round(this.blue).toString(16); - return ( - "#" + - (this.red > 15.5 ? r : "0" + r) + - (this.green > 15.5 ? a : "0" + a) + - (this.blue > 15.5 ? n : "0" + n) - ); - }, - }, - { - key: "toJSON", - value: function () { - var r = this.red, - a = this.green, - n = this.blue, - i = this.alpha; - return { red: r, green: a, blue: n, alpha: i }; - }, - }, - { - key: "parseString", - value: function (r) { - r = r.replace(vw, function (i, o, u) { - var s = o + u; - switch (u) { - case "rad": - return i.replace(s, bw(o)); - case "turn": - return i.replace(s, yw(o)); - } - }); - try { - var a; - "Prototype" in E && - "Version" in E.Prototype && - ((a = Array.from), (Array.from = m1.default)); - var n = new _e(r).to("srgb"); - (a && ((Array.from = a), (a = null)), - (this.r = n.r), - (this.g = n.g), - (this.b = n.b), - (this.alpha = +n.alpha)); - } catch { - throw new Error( - 'Unable to parse color "'.concat(r, '"'), - ); - } - return this; - }, - }, - { - key: "parseRgbString", - value: function (r) { - this.parseString(r); - }, - }, - { - key: "parseHexString", - value: function (r) { - !r.match(hw) || - [6, 8].includes(r.length) || - this.parseString(r); - }, - }, - { - key: "parseColorFnString", - value: function (r) { - this.parseString(r); - }, - }, - { - key: "getRelativeLuminance", - value: function () { - var r = this.r, - a = this.g, - n = this.b, - i = - r <= 0.03928 - ? r / 12.92 - : Math.pow((r + 0.055) / 1.055, 2.4), - o = - a <= 0.03928 - ? a / 12.92 - : Math.pow((a + 0.055) / 1.055, 2.4), - u = - n <= 0.03928 - ? n / 12.92 - : Math.pow((n + 0.055) / 1.055, 2.4); - return 0.2126 * i + 0.7152 * o + 0.0722 * u; - }, - }, - { - key: "getLuminosity", - value: function () { - return 0.3 * this.r + 0.59 * this.g + 0.11 * this.b; - }, - }, - { - key: "setLuminosity", - value: function (r) { - var a = r - this.getLuminosity(); - return Tr(Qr, this, gw).call(this, a).clip(); - }, - }, - { - key: "getSaturation", - value: function () { - return ( - Math.max(this.r, this.g, this.b) - - Math.min(this.r, this.g, this.b) - ); - }, - }, - { - key: "setSaturation", - value: function (r) { - var a = new Oa(this), - n = [ - { name: "r", value: a.r }, - { name: "g", value: a.g }, - { name: "b", value: a.b }, - ], - i = n.sort(function (c, d) { - return c.value - d.value; - }), - o = $(i, 3), - u = o[0], - s = o[1], - l = o[2]; - return ( - l.value > u.value - ? ((s.value = - ((s.value - u.value) * r) / - (l.value - u.value)), - (l.value = r)) - : (s.value = l.value = 0), - (u.value = 0), - (a[l.name] = l.value), - (a[u.name] = u.value), - (a[s.name] = s.value), - a - ); - }, - }, - { - key: "clip", - value: function () { - var r = new Oa(this), - a = r.getLuminosity(), - n = Math.min(r.r, r.g, r.b), - i = Math.max(r.r, r.g, r.b); - return ( - n < 0 && - ((r.r = a + ((r.r - a) * a) / (a - n)), - (r.g = a + ((r.g - a) * a) / (a - n)), - (r.b = a + ((r.b - a) * a) / (a - n))), - i > 1 && - ((r.r = a + ((r.r - a) * (1 - a)) / (i - a)), - (r.g = a + ((r.g - a) * (1 - a)) / (i - a)), - (r.b = a + ((r.b - a) * (1 - a)) / (i - a))), - r - ); - }, - }, - ]); - })()); - function gw(e) { - var t = new Oa(this); - return ((t.r += e), (t.g += e), (t.b += e), t); - } - var Se = Oa; - function $r(e, t, r) { - return Math.min(Math.max(t, e), r); - } - function bw(e) { - return (e * 180) / Math.PI; - } - function yw(e) { - return e * 360; - } - function ww(e) { - var t = new Se(); - if ( - (t.parseString(e.getPropertyValue("background-color")), - t.alpha !== 0) - ) { - var r = e.getPropertyValue("opacity"); - t.alpha = t.alpha * r; - } - return t; - } - var Ar = ww; - function Dw(e) { - var t = E.getComputedStyle(e); - return Tn(e, t) || Ar(t).alpha === 1; - } - var _w = Dw; - function cu(e) { - if (!e.href) return !1; - var t = ue.get("firstPageLink", xw); - return t - ? e.compareDocumentPosition(t.actualNode) === - e.DOCUMENT_POSITION_FOLLOWING - : !0; - } - function xw() { - var e; - return ( - E.location.origin - ? (e = ft(x._tree, 'a[href]:not([href^="javascript:"])').find( - function (t) { - return !bo(t.actualNode); - }, - )) - : (e = ft( - x._tree, - 'a:not([href^="#"]):not([href^="/#"]):not([href^="javascript:"])', - )[0]), - e || null - ); - } - var Ew = - /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/, - Aw = /(\w+)\((\d+)/; - function Cw(e) { - var t = e.getPropertyValue("clip").match(Ew), - r = e.getPropertyValue("clip-path").match(Aw); - if (t && t.length === 5) { - var a = e.getPropertyValue("position"); - if (["fixed", "absolute"].includes(a)) - return t[3] - t[1] <= 0 && t[2] - t[4] <= 0; - } - if (r) { - var n = r[1], - i = parseInt(r[2], 10); - switch (n) { - case "inset": - return i >= 50; - case "circle": - return i === 0; - } - } - return !1; - } - function Fw(e, t, r) { - var a = Lr(e, "map"); - if (!a) return !1; - var n = a.getAttribute("name"); - if (!n) return !1; - var i = Xe(e); - if (!i || i.nodeType !== 9) return !1; - var o = ft(x._tree, 'img[usemap="#'.concat(Oe(n), '"]')); - return !o || !o.length - ? !1 - : o.some(function (u) { - var s = u.actualNode; - return Wn(s, t, r); - }); - } - function Wn(e, t, r) { - var a; - if (!e) - throw new TypeError( - "Cannot determine if element is visible for non-DOM nodes", - ); - var n = e instanceof $e ? e : le(e); - e = n ? n.actualNode : e; - var i = "_isVisible" + (t ? "ScreenReader" : ""), - o = (a = E.Node) !== null && a !== void 0 ? a : {}, - u = o.DOCUMENT_NODE, - s = o.DOCUMENT_FRAGMENT_NODE, - l = n ? n.props.nodeType : e.nodeType, - c = n ? n.props.nodeName : e.nodeName.toLowerCase(); - if (n && typeof n[i] < "u") return n[i]; - if (l === u) return !0; - if (["style", "script", "noscript", "template"].includes(c)) - return !1; - if ((e && l === s && (e = e.host), t)) { - var d = n - ? n.attr("aria-hidden") - : e.getAttribute("aria-hidden"); - if (d === "true") return !1; - } - if (!e) { - var f = n.parent, - p = !0; - return (f && (p = Wn(f, t, !0)), n && (n[i] = p), p); - } - var m = E.getComputedStyle(e, null); - if (m === null) return !1; - if (c === "area") return Fw(e, t, r); - if (m.getPropertyValue("display") === "none") return !1; - var h = parseInt(m.getPropertyValue("height")), - v = parseInt(m.getPropertyValue("width")), - g = Yt(e), - b = g && h === 0, - D = g && v === 0, - w = - m.getPropertyValue("position") === "absolute" && - (h < 2 || v < 2) && - m.getPropertyValue("overflow") === "hidden"; - if ( - (!t && - (Cw(m) || - m.getPropertyValue("opacity") === "0" || - b || - D || - w)) || - (!r && - (m.getPropertyValue("visibility") === "hidden" || - (!t && mn(e)))) - ) - return !1; - var _ = e.assignedSlot ? e.assignedSlot : e.parentNode, - F = !1; - return (_ && (F = Wn(_, t, !0)), n && (n[i] = F), F); - } - var Tw = Wn; - function Rw(e, t) { - for ( - var r = ["fixed", "sticky"], a = [], n = !1, i = 0; - i < e.length; - ++i - ) { - var o = e[i]; - o === t && (n = !0); - var u = E.getComputedStyle(o); - if (!n && r.indexOf(u.position) !== -1) { - a = []; - continue; - } - a.push(o); - } - return a; - } - var h1 = Rw; - function v1(e, t) { - var r = g1(t); - do { - var a = g1(e); - if (a === r || a === t) return Sw(e, t); - e = a; - } while (e); - return !1; - } - function g1(e) { - for (var t = le(e), r = t.parent; r; ) { - if (Yt(r.actualNode)) return r.actualNode; - r = r.parent; - } - } - function Sw(e, t) { - var r = E.getComputedStyle(t), - a = r.getPropertyValue("overflow"); - if (r.getPropertyValue("display") === "inline") return !0; - var n = Array.from(e.getClientRects()), - i = t.getBoundingClientRect(), - o = { - left: i.left, - top: i.top, - width: i.width, - height: i.height, - }; - return ( - (["scroll", "auto"].includes(a) || - t instanceof E.HTMLHtmlElement) && - ((o.width = t.scrollWidth), (o.height = t.scrollHeight)), - n.length === 1 && - a === "hidden" && - r.getPropertyValue("white-space") === "nowrap" && - (n[0] = o), - n.some(function (u) { - return !( - Math.ceil(u.left) < Math.floor(o.left) || - Math.ceil(u.top) < Math.floor(o.top) || - Math.floor(u.left + u.width) > - Math.ceil(o.left + o.width) || - Math.floor(u.top + u.height) > Math.ceil(o.top + o.height) - ); - }) - ); - } - function b1(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : L, - a = - arguments.length > 3 && arguments[3] !== void 0 - ? arguments[3] - : 0; - if (a > 999) throw new Error("Infinite loop detected"); - return Array.from(r.elementsFromPoint(e, t) || []) - .filter(function (n) { - return Xe(n) === r; - }) - .reduce(function (n, i) { - if (fn(i)) { - var o = b1(e, t, i.shadowRoot, a + 1); - ((n = n.concat(o)), n.length && v1(n[0], i) && n.push(i)); - } else n.push(i); - return n; - }, []); - } - var kw = b1; - function Ow(e, t) { - if (e.hasAttribute(t)) { - var r = e.nodeName.toUpperCase(), - a = e; - (!["A", "AREA"].includes(r) || e.ownerSVGElement) && - ((a = L.createElement("a")), (a.href = e.getAttribute(t))); - var n = ["https:", "ftps:"].includes(a.protocol) - ? a.protocol.replace(/s:$/, ":") - : a.protocol, - i = /^\//.test(a.pathname) - ? a.pathname - : "/".concat(a.pathname), - o = Iw(i), - u = o.pathname, - s = o.filename; - return { - protocol: n, - hostname: a.hostname, - port: Mw(a.port), - pathname: /\/$/.test(u) ? u : "".concat(u, "/"), - search: Pw(a.search), - hash: Nw(a.hash), - filename: s, - }; - } - } - function Mw(e) { - var t = ["443", "80"]; - return t.includes(e) ? "" : e; - } - function Iw(e) { - var t = e.split("/").pop(); - return !t || t.indexOf(".") === -1 - ? { pathname: e, filename: "" } - : { - pathname: e.replace(t, ""), - filename: /index./.test(t) ? "" : t, - }; - } - function Pw(e) { - var t = {}; - if (!e || !e.length) return t; - var r = e.substring(1).split("&"); - if (!r || !r.length) return t; - for (var a = 0; a < r.length; a++) { - var n = r[a], - i = n.split("="), - o = $(i, 2), - u = o[0], - s = o[1], - l = s === void 0 ? "" : s; - t[decodeURIComponent(u)] = decodeURIComponent(l); - } - return t; - } - function Nw(e) { - if (!e) return ""; - var t = /#!?\/?/g, - r = e.match(t); - if (!r) return ""; - var a = $(r, 1), - n = a[0]; - return n === "#" ? "" : e; - } - var Lw = Ow; - function Bw(e, t) { - var r = t.getBoundingClientRect(), - a = r.top, - n = r.left, - i = { - top: a - t.scrollTop, - bottom: a - t.scrollTop + t.scrollHeight, - left: n - t.scrollLeft, - right: n - t.scrollLeft + t.scrollWidth, - }; - if ( - (e.left > i.right && e.left > r.right) || - (e.top > i.bottom && e.top > r.bottom) || - (e.right < i.left && e.right < r.left) || - (e.bottom < i.top && e.bottom < r.top) - ) - return !1; - var o = E.getComputedStyle(t); - return e.left > r.right || e.top > r.bottom - ? o.overflow === "scroll" || - o.overflow === "auto" || - t instanceof E.HTMLBodyElement || - t instanceof E.HTMLHtmlElement - : !0; - } - var du = Bw, - y1 = 0, - qw = (function (e) { - function t(r, a, n) { - var i; - if ( - (Tt(this, t), - (i = vi(this, t)), - (i.shadowId = n), - (i.children = []), - (i.actualNode = r), - (i.parent = a), - a || (y1 = 0), - (i.nodeIndex = y1++), - (i._isHidden = null), - (i._cache = {}), - (i._isXHTML = tn(r.ownerDocument)), - r.nodeName.toLowerCase() === "input") - ) { - var o = r.getAttribute("type"); - ((o = i._isXHTML ? o : (o || "").toLowerCase()), - ti().includes(o) || (o = "text"), - (i._type = o)); - } - return (ue.get("nodeMap") && ue.get("nodeMap").set(r, i), i); - } - return ( - bi(t, e), - Rt(t, [ - { - key: "props", - get: function () { - if (!this._cache.hasOwnProperty("props")) { - var a = this.actualNode, - n = a.nodeType, - i = a.nodeName, - o = a.id, - u = a.nodeValue; - ((this._cache.props = { - nodeType: n, - nodeName: this._isXHTML ? i : i.toLowerCase(), - id: o, - type: this._type, - nodeValue: u, - }), - n === 1 && - ((this._cache.props.multiple = - this.actualNode.multiple), - (this._cache.props.value = this.actualNode.value), - (this._cache.props.selected = - this.actualNode.selected), - (this._cache.props.checked = - this.actualNode.checked), - (this._cache.props.indeterminate = - this.actualNode.indeterminate))); - } - return this._cache.props; - }, - }, - { - key: "attr", - value: function (a) { - return typeof this.actualNode.getAttribute != "function" - ? null - : this.actualNode.getAttribute(a); - }, - }, - { - key: "hasAttr", - value: function (a) { - return typeof this.actualNode.hasAttribute != "function" - ? !1 - : this.actualNode.hasAttribute(a); - }, - }, - { - key: "attrNames", - get: function () { - if (!this._cache.hasOwnProperty("attrNames")) { - var a; - (this.actualNode.attributes instanceof E.NamedNodeMap - ? (a = this.actualNode.attributes) - : (a = this.actualNode.cloneNode(!1).attributes), - (this._cache.attrNames = Array.from(a).map( - function (n) { - return n.name; - }, - ))); - } - return this._cache.attrNames; - }, - }, - { - key: "getComputedStylePropertyValue", - value: function (a) { - var n = "computedStyle_" + a; - return ( - this._cache.hasOwnProperty(n) || - (this._cache.hasOwnProperty("computedStyle") || - (this._cache.computedStyle = E.getComputedStyle( - this.actualNode, - )), - (this._cache[n] = - this._cache.computedStyle.getPropertyValue(a))), - this._cache[n] - ); - }, - }, - { - key: "isFocusable", - get: function () { - return ( - this._cache.hasOwnProperty("isFocusable") || - (this._cache.isFocusable = Ne(this.actualNode)), - this._cache.isFocusable - ); - }, - }, - { - key: "tabbableElements", - get: function () { - return ( - this._cache.hasOwnProperty("tabbableElements") || - (this._cache.tabbableElements = sc(this)), - this._cache.tabbableElements - ); - }, - }, - { - key: "clientRects", - get: function () { - return ( - this._cache.hasOwnProperty("clientRects") || - (this._cache.clientRects = Array.from( - this.actualNode.getClientRects(), - ).filter(function (a) { - return a.width > 0; - })), - this._cache.clientRects - ); - }, - }, - { - key: "boundingClientRect", - get: function () { - return ( - this._cache.hasOwnProperty("boundingClientRect") || - (this._cache.boundingClientRect = - this.actualNode.getBoundingClientRect()), - this._cache.boundingClientRect - ); - }, - }, - ]) - ); - })($e), - fu = qw; - function jw(e) { - return (e || "") - .trim() - .replace(/\s{2,}/g, " ") - .split(" "); - } - var Ze = jw, - Cr = " [idsMap]"; - function w1(e, t, r) { - var a = e[0]._selectorMap; - if (a) { - for (var n = e[0].shadowId, i = 0; i < t.length; i++) - if ( - t[i].length > 1 && - t[i].some(function (s) { - return D1(s); - }) - ) - return; - var o = new Set(); - t.forEach(function (s) { - var l, - c = zw(s, a, n); - c == null || - (l = c.nodes) === null || - l === void 0 || - l.forEach(function (d) { - (c.isComplexSelector && !Or(d, s)) || o.add(d); - }); - }); - var u = []; - return ( - o.forEach(function (s) { - return u.push(s); - }), - r && (u = u.filter(r)), - u.sort(function (s, l) { - return s.nodeIndex - l.nodeIndex; - }) - ); - } - } - function zw(e, t, r) { - var a = e[e.length - 1], - n = null, - i = e.length > 1 || !!a.pseudos || !!a.classes; - if (D1(a)) n = t["*"]; - else { - if (a.id) { - var o; - if ( - !t[Cr] || - !Object.hasOwn(t[Cr], a.id) || - !((o = t[Cr][a.id]) !== null && o !== void 0 && o.length) - ) - return; - n = t[Cr][a.id].filter(function (h) { - return h.shadowId === r; - }); - } - if (a.tag && a.tag !== "*") { - var u; - if (!((u = t[a.tag]) !== null && u !== void 0 && u.length)) - return; - var s = t[a.tag]; - n = n ? pu(s, n) : s; - } - if (a.classes) { - var l; - if ( - !((l = t["[class]"]) !== null && l !== void 0 && l.length) - ) - return; - var c = t["[class]"]; - n = n ? pu(c, n) : c; - } - if (a.attributes) - for (var d = 0; d < a.attributes.length; d++) { - var f, - p = a.attributes[d]; - if ( - (p.type === "attrValue" && (i = !0), - !( - (f = t["[".concat(p.key, "]")]) !== null && - f !== void 0 && - f.length - )) - ) - return; - var m = t["[".concat(p.key, "]")]; - n = n ? pu(m, n) : m; - } - } - return { nodes: n, isComplexSelector: i }; - } - function D1(e) { - return e.tag === "*" && !e.attributes && !e.id && !e.classes; - } - function pu(e, t) { - return e.filter(function (r) { - return t.includes(r); - }); - } - function Yn(e, t, r) { - (Object.hasOwn(r, e) || (r[e] = []), r[e].push(t)); - } - function _1(e, t) { - e.props.nodeType === 1 && - (Yn(e.props.nodeName, e, t), - Yn("*", e, t), - e.attrNames.forEach(function (r) { - (r === "id" && - ((t[Cr] = t[Cr] || {}), - Ze(e.attr(r)).forEach(function (a) { - Yn(a, e, t[Cr]); - })), - Yn("[".concat(r, "]"), e, t)); - })); - } - var mu; - function hu() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : L.documentElement, - t = arguments.length > 1 ? arguments[1] : void 0; - mu = !1; - var r = {}; - (ue.set("nodeMap", new WeakMap()), ue.set("selectorMap", r)); - var a = x1(e, t, null); - return ((a[0]._selectorMap = r), (a[0]._hasShadowRoot = mu), a); - } - function Vw(e) { - var t = []; - for (e = e.firstChild; e; ) (t.push(e), (e = e.nextSibling)); - return t; - } - function vu(e, t, r) { - var a = new fu(e, t, r); - return (_1(a, ue.get("selectorMap")), a); - } - function x1(e, t, r) { - var a, n; - function i(u, s, l) { - var c = x1(s, t, l); - return (c && (u = u.concat(c)), u); - } - e.documentElement && (e = e.documentElement); - var o = e.nodeName.toLowerCase(); - return fn(e) - ? ((mu = !0), - (a = vu(e, r, t)), - (t = "a" + Math.random().toString().substring(2)), - (n = Array.from(e.shadowRoot.childNodes)), - (a.children = n.reduce(function (u, s) { - return i(u, s, a); - }, [])), - [a]) - : o === "content" && typeof e.getDistributedNodes == "function" - ? ((n = Array.from(e.getDistributedNodes())), - n.reduce(function (u, s) { - return i(u, s, r); - }, [])) - : o === "slot" && typeof e.assignedNodes == "function" - ? ((n = Array.from(e.assignedNodes())), - n.length || (n = Vw(e)), - E.getComputedStyle(e), - n.reduce(function (u, s) { - return i(u, s, r); - }, [])) - : e.nodeType === 1 - ? ((a = vu(e, r, t)), - (n = Array.from(e.childNodes)), - (a.children = n.reduce(function (u, s) { - return i(u, s, a); - }, [])), - [a]) - : e.nodeType === 3 - ? [vu(e, r)] - : void 0; - } - function Hw(e) { - return e ? e.trim().split("-")[0].toLowerCase() : ""; - } - var Fr = Hw; - function $w(e) { - var t = {}; - return ( - (t.none = e.none.concat(e.all)), - (t.any = e.any), - Object.keys(t) - .map(function (r) { - if (t[r].length) { - var a = x._audit.data.failureSummaries[r]; - if (a && typeof a.failureMessage == "function") - return a.failureMessage( - t[r].map(function (n) { - return n.message || ""; - }), - ); - } - }) - .filter(function (r) { - return r !== void 0; - }).join(` - -`) - ); - } - var gu = $w; - function bu() { - var e = x._audit.data.incompleteFallbackMessage; - return ( - typeof e == "function" && (e = e()), - typeof e != "string" ? "" : e - ); - } - var E1 = se.resultGroups; - function Ma(e, t) { - var r = x.utils.aggregateResult(e); - return ( - E1.forEach(function (a) { - (t.resultTypes && - !t.resultTypes.includes(a) && - (r[a] || []).forEach(function (n) { - Array.isArray(n.nodes) && - n.nodes.length > 0 && - (n.nodes = [n.nodes[0]]); - }), - (r[a] = (r[a] || []).map(function (n) { - return ( - (n = Object.assign({}, n)), - Array.isArray(n.nodes) && - n.nodes.length > 0 && - (n.nodes = n.nodes.map(function (i) { - if (O(i.node) === "object") { - var o = A1(i.node, t); - Object.assign(i, o); - } - return ( - delete i.result, - delete i.node, - Uw(i, t), - i - ); - })), - E1.forEach(function (i) { - return delete n[i]; - }), - delete n.pageLevel, - delete n.result, - n - ); - }))); - }), - r - ); - } - function Uw(e, t) { - ["any", "all", "none"].forEach(function (r) { - Array.isArray(e[r]) && - e[r] - .filter(function (a) { - return Array.isArray(a.relatedNodes); - }) - .forEach(function (a) { - a.relatedNodes = a.relatedNodes.map(function (n) { - return A1(n, t); - }); - }); - }); - } - function A1() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : {}, - t = arguments.length > 1 ? arguments[1] : void 0; - e = ht.dqElmToSpec(e, t); - var r = {}; - if (x._audit.noHtml) r.html = null; - else { - var a; - r.html = - (a = e.source) !== null && a !== void 0 ? a : "Undefined"; - } - if (t.elementRef && !e.fromFrame) { - var n; - r.element = (n = e.element) !== null && n !== void 0 ? n : null; - } - if (t.selectors !== !1 || e.fromFrame) { - var i; - r.target = - (i = e.selector) !== null && i !== void 0 ? i : [":root"]; - } - if (t.ancestry) { - var o; - r.ancestry = - (o = e.ancestry) !== null && o !== void 0 ? o : [":root"]; - } - if (t.xpath) { - var u; - r.xpath = (u = e.xpath) !== null && u !== void 0 ? u : ["/"]; - } - return r; - } - var Gw = /\$\{\s?data\s?\}/g; - function Kn(e, t) { - if (typeof t == "string") return e.replace(Gw, t); - for (var r in t) - if (t.hasOwnProperty(r)) { - var a = new RegExp("\\${\\s?data\\." + r + "\\s?}", "g"), - n = typeof t[r] > "u" ? "" : String(t[r]); - e = e.replace(a, n); - } - return e; - } - function C1(e, t) { - if (e) { - if (Array.isArray(t)) { - if ( - ((t.values = t.join(", ")), - typeof e.singular == "string" && - typeof e.plural == "string") - ) { - var r = t.length === 1 ? e.singular : e.plural; - return Kn(r, t); - } - return Kn(e, t); - } - if (typeof e == "string") return Kn(e, t); - if (typeof t == "string") { - var a = e[t]; - return Kn(a, t); - } - var n = e.default || bu(); - return ( - t && t.messageKey && e[t.messageKey] && (n = e[t.messageKey]), - C1(n, t) - ); - } - } - var yu = C1; - function Ww(e, t, r) { - var a = x._audit.data.checks[e]; - if (!a) - throw new Error( - "Cannot get message for unknown check: ".concat(e, "."), - ); - if (!a.messages[t]) - throw new Error( - 'Check "' - .concat(e, '"" does not have a "') - .concat(t, '" message.'), - ); - return yu(a.messages[t], r); - } - var Yw = Ww; - function Kw(e, t, r) { - var a = (((r.rules && r.rules[t]) || {}).checks || {})[e.id], - n = (r.checks || {})[e.id], - i = e.enabled, - o = e.options; - return ( - n && - (n.hasOwnProperty("enabled") && (i = n.enabled), - n.hasOwnProperty("options") && (o = n.options)), - a && - (a.hasOwnProperty("enabled") && (i = a.enabled), - a.hasOwnProperty("options") && (o = a.options)), - { enabled: i, options: o, absolutePaths: r.absolutePaths } - ); - } - var Xn = Kw; - function ur() { - var e, - t = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : null, - r = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : E; - return t && O(t) === "object" - ? t - : O(r) !== "object" - ? {} - : { - testEngine: { name: "axe-core", version: x.version }, - testRunner: { name: x._audit.brand }, - testEnvironment: Xw(r), - timestamp: new Date().toISOString(), - url: - (e = r.location) === null || e === void 0 - ? void 0 - : e.href, - }; - } - function Xw(e) { - if (!e.navigator || O(e.navigator) !== "object") return {}; - var t = e.navigator, - r = e.innerHeight, - a = e.innerWidth, - n = Zw(e) || {}, - i = n.angle, - o = n.type; - return { - userAgent: t.userAgent, - windowWidth: a, - windowHeight: r, - orientationAngle: i, - orientationType: o, - }; - } - function Zw(e) { - var t = e.screen; - return t.orientation || t.msOrientation || t.mozOrientation; - } - function F1(e, t) { - var r = t.focusable, - a = t.page; - return { - node: e, - include: [], - exclude: [], - initiator: !1, - focusable: r && Jw(e), - size: Qw(e), - page: a, - }; - } - function Jw(e) { - var t = Lt(e.getAttribute("tabindex")); - return t === null || t >= 0; - } - function Qw(e) { - var t = parseInt(e.getAttribute("width"), 10), - r = parseInt(e.getAttribute("height"), 10); - if (isNaN(t) || isNaN(r)) { - var a = e.getBoundingClientRect(); - ((t = isNaN(t) ? a.width : t), (r = isNaN(r) ? a.height : r)); - } - return { width: t, height: r }; - } - function eD(e) { - if (Du(e)) { - var t = - " must be used inside include or exclude. It should not be on the same object."; - (sr(!Nt(e, "fromFrames"), "fromFrames" + t), - sr(!Nt(e, "fromShadowDom"), "fromShadowDom" + t)); - } else if (Jn(e)) e = { include: e, exclude: [] }; - else return { include: [L], exclude: [] }; - var r = T1(e.include); - r.length === 0 && r.push(L); - var a = T1(e.exclude); - return { include: r, exclude: a }; - } - function T1() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : [], - t = []; - wu(e) || (e = [e]); - for (var r = 0; r < e.length; r++) { - var a = tD(e[r]); - a && t.push(a); - } - return t; - } - function tD(e) { - return e instanceof E.Node - ? e - : typeof e == "string" - ? [e] - : (_u(e) ? (aD(e), (e = e.fromFrames)) : Qn(e) && (e = [e]), - rD(e)); - } - function rD(e) { - if (Array.isArray(e)) { - var t = [], - r = Ce(e), - a; - try { - for (r.s(); !(a = r.n()).done; ) { - var n = a.value; - if ( - (Qn(n) && (nD(n), (n = n.fromShadowDom)), - typeof n != "string" && !iD(n)) - ) - return; - t.push(n); - } - } catch (i) { - r.e(i); - } finally { - r.f(); - } - return t; - } - } - function aD(e) { - (sr( - Array.isArray(e.fromFrames), - "fromFrames property must be an array", - ), - sr( - e.fromFrames.every(function (t) { - return !Nt(t, "fromFrames"); - }), - "Invalid context; fromFrames selector must be appended, rather than nested", - ), - sr( - !Nt(e, "fromShadowDom"), - "fromFrames and fromShadowDom cannot be used on the same object", - )); - } - function nD(e) { - (sr( - Array.isArray(e.fromShadowDom), - "fromShadowDom property must be an array", - ), - sr( - e.fromShadowDom.every(function (t) { - return !Nt(t, "fromFrames"); - }), - "shadow selector must be inside fromFrame instead", - ), - sr( - e.fromShadowDom.every(function (t) { - return !Nt(t, "fromShadowDom"); - }), - "fromShadowDom selector must be appended, rather than nested", - )); - } - function iD(e) { - return ( - Array.isArray(e) && - e.every(function (t) { - return typeof t == "string"; - }) - ); - } - function sr(e, t) { - me( - e, - "Invalid context; ".concat( - t, - ` -See: https://github.com/dequelabs/axe-core/blob/master/doc/context.md`, - ), - ); - } - function R1(e, t) { - for (var r = [], a = 0, n = e[t].length; a < n; a++) { - var i = e[t][a]; - if (i instanceof E.Node) - i.documentElement instanceof E.Node - ? r.push(e.flatTree[0]) - : r.push(le(i)); - else if (i && i.length) - if (i.length > 1) oD(e, t, i); - else { - var o = Su(i[0]); - r.push.apply( - r, - ne( - o.map(function (u) { - return le(u); - }), - ), - ); - } - } - return r.filter(function (u) { - return u; - }); - } - function oD(e, t, r) { - e.frames = e.frames || []; - var a = r.shift(), - n = Su(a); - n.forEach(function (i) { - var o = e.frames.find(function (u) { - return u.node === i; - }); - (o || ((o = F1(i, e)), e.frames.push(o)), o[t].push(r)); - }); - } - function Zn(e, t) { - var r, - a, - n, - i, - o = this; - ((e = $t(e)), - (this.frames = []), - (this.page = - typeof ((r = e) === null || r === void 0 ? void 0 : r.page) == - "boolean" - ? e.page - : void 0), - (this.initiator = - typeof ((a = e) === null || a === void 0 - ? void 0 - : a.initiator) == "boolean" - ? e.initiator - : !0), - (this.focusable = - typeof ((n = e) === null || n === void 0 - ? void 0 - : n.focusable) == "boolean" - ? e.focusable - : !0), - (this.size = - O((i = e) === null || i === void 0 ? void 0 : i.size) === - "object" - ? e.size - : {}), - (e = eD(e)), - (this.flatTree = t ?? hu(cD(e))), - (this.exclude = e.exclude), - (this.include = e.include), - (this.include = R1(this, "include")), - (this.exclude = R1(this, "exclude")), - Ru("frame, iframe", this).forEach(function (u) { - Eu(u, o) && uD(o, u.actualNode); - }), - typeof this.page > "u" && - ((this.page = sD(this)), - this.frames.forEach(function (u) { - u.page = o.page; - })), - lD(this), - Array.isArray(this.include) || - (this.include = Array.from(this.include)), - this.include.sort(Cu)); - } - function uD(e, t) { - !Re(t) || fa(e.frames, "node", t) || e.frames.push(F1(t, e)); - } - function sD(e) { - var t = e.include; - return t.length === 1 && t[0].actualNode === L.documentElement; - } - function lD(e) { - if (e.include.length === 0 && e.frames.length === 0) { - var t = Et.isInFrame() ? "frame" : "page"; - throw new Error( - "No elements found for include in " + t + " Context", - ); - } - } - function cD(e) { - for ( - var t = e.include, - r = e.exclude, - a = Array.from(t).concat(Array.from(r)), - n = 0; - n < a.length; - n++ - ) { - var i = a[n]; - if (i instanceof E.Element) - return i.ownerDocument.documentElement; - if (i instanceof E.Document) return i.documentElement; - } - return L.documentElement; - } - function dD(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}; - if (t.iframes === !1) return []; - var r = new Zn(e), - a = r.frames; - return a.map(function (n) { - var i = n.node, - o = qe(n, Lp); - o.initiator = !1; - var u = an(i); - return { frameSelector: u, frameContext: o }; - }); - } - function S1(e) { - var t = x._audit.rules.find(function (r) { - var a = r.id; - return a === e; - }); - if (!t) throw new Error("Cannot find rule by id: ".concat(e)); - return t; - } - function fD(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : 0, - r = e.scrollWidth > e.clientWidth + t, - a = e.scrollHeight > e.clientHeight + t; - if (r || a) { - var n = E.getComputedStyle(e), - i = k1(n, "overflow-x"), - o = k1(n, "overflow-y"); - if ((r && i) || (a && o)) - return { elm: e, top: e.scrollTop, left: e.scrollLeft }; - } - } - function k1(e, t) { - var r = e.getPropertyValue(t); - return ["scroll", "auto"].includes(r); - } - var Yt = Fe(fD); - function O1(e) { - return Array.from(e.children || e.childNodes || []).reduce( - function (t, r) { - var a = Yt(r); - return (a && t.push(a), t.concat(O1(r))); - }, - [], - ); - } - function pD() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : E, - t = e.document.documentElement, - r = [ - e.pageXOffset !== void 0 - ? { elm: e, top: e.pageYOffset, left: e.pageXOffset } - : { elm: t, top: t.scrollTop, left: t.scrollLeft }, - ]; - return r.concat(O1(L.body)); - } - var mD = pD; - function hD() { - return $t(he); - } - function vD(e) { - if (!e) - throw new Error( - "axe.utils.getStyleSheetFactory should be invoked with an argument", - ); - return function (t) { - var r = t.data, - a = t.isCrossOrigin, - n = a === void 0 ? !1 : a, - i = t.shadowId, - o = t.root, - u = t.priority, - s = t.isLink, - l = s === void 0 ? !1 : s, - c = e.createElement("style"); - if (l) { - var d = e.createTextNode('@import "'.concat(r.href, '"')); - c.appendChild(d); - } else c.appendChild(e.createTextNode(r)); - return ( - e.head.appendChild(c), - { - sheet: c.sheet, - isCrossOrigin: n, - shadowId: i, - root: o, - priority: u, - } - ); - }; - } - var M1 = vD, - dt; - function gD(e) { - if (dt && dt.parentNode) - return ( - dt.styleSheet === void 0 - ? dt.appendChild(L.createTextNode(e)) - : (dt.styleSheet.cssText += e), - dt - ); - if (e) { - var t = L.head || L.getElementsByTagName("head")[0]; - return ( - (dt = L.createElement("style")), - (dt.type = "text/css"), - dt.styleSheet === void 0 - ? dt.appendChild(L.createTextNode(e)) - : (dt.styleSheet.cssText = e), - t.appendChild(dt), - dt - ); - } - } - var bD = gD; - function wu(e) { - return ( - !!e && - O(e) === "object" && - typeof e.length == "number" && - !(e instanceof E.Node) - ); - } - function Nt(e, t) { - return !e || O(e) !== "object" - ? !1 - : Object.prototype.hasOwnProperty.call(e, t); - } - function I1(e) { - return Du(e) || Jn(e); - } - function Du(e) { - return ["include", "exclude"].some(function (t) { - return Nt(e, t) && Jn(e[t]); - }); - } - function Jn(e) { - return ( - typeof e == "string" || - e instanceof E.Node || - _u(e) || - Qn(e) || - wu(e) - ); - } - function _u(e) { - return Nt(e, "fromFrames"); - } - function Qn(e) { - return Nt(e, "fromShadowDom"); - } - function P1(e, t) { - var r = le(e); - if (e.nodeType === 9) return !1; - if ( - (e.nodeType === 11 && (e = e.host), r && r._isHidden !== null) - ) - return r._isHidden; - var a = E.getComputedStyle(e, null); - if ( - !a || - !e.parentNode || - a.getPropertyValue("display") === "none" || - (!t && a.getPropertyValue("visibility") === "hidden") || - e.getAttribute("aria-hidden") === "true" - ) - return !0; - var n = e.assignedSlot ? e.assignedSlot : e.parentNode, - i = P1(n, !0); - return (r && (r._isHidden = i), i); - } - var yD = P1; - function wD(e) { - var t, - r, - a = - (t = - (r = e.props) === null || r === void 0 - ? void 0 - : r.nodeName) !== null && t !== void 0 - ? t - : e.nodeName.toLowerCase(); - return e.namespaceURI === "http://www.w3.org/2000/svg" - ? !1 - : !!he.htmlElms[a]; - } - var xu = wD; - function Eu(e, t) { - var r = t.include, - a = r === void 0 ? [] : r, - n = t.exclude, - i = n === void 0 ? [] : n, - o = a.filter(function (c) { - return Ut(c, e); - }); - if (o.length === 0) return !1; - var u = i.filter(function (c) { - return Ut(c, e); - }); - if (u.length === 0) return !0; - var s = N1(o), - l = N1(u); - return Ut(l, s); - } - function N1(e) { - var t, - r = Ce(e), - a; - try { - for (r.s(); !(a = r.n()).done; ) { - var n = a.value; - (!t || !Ut(n, t)) && (t = n); - } - } catch (i) { - r.e(i); - } finally { - r.f(); - } - return t; - } - function Au(e, t) { - return e.length !== t.length - ? !1 - : e.every(function (r, a) { - var n = t[a]; - return Array.isArray(r) - ? r.length !== n.length - ? !1 - : r.every(function (i, o) { - return n[o] === i; - }) - : r === n; - }); - } - function DD(e, t) { - return ( - (e = e.actualNode || e), - (t = t.actualNode || t), - e === t ? 0 : e.compareDocumentPosition(t) & 4 ? -1 : 1 - ); - } - var Cu = DD; - function we(e) { - return e instanceof $e - ? { vNode: e, domNode: e.actualNode } - : { vNode: le(e), domNode: e }; - } - function _D(e, t, r, a) { - var n = - arguments.length > 4 && arguments[4] !== void 0 - ? arguments[4] - : !1, - i = Array.from(e.cssRules); - if (!i) return Promise.resolve(); - var o = i.filter(function (c) { - return c.type === 3; - }); - if (!o.length) - return Promise.resolve({ - isCrossOrigin: n, - priority: r, - root: t.rootNode, - shadowId: t.shadowId, - sheet: e, - }); - var u = o - .filter(function (c) { - return c.href; - }) - .map(function (c) { - return c.href; - }) - .filter(function (c) { - return !a.includes(c); - }), - s = u.map(function (c, d) { - var f = [].concat(ne(r), [d]), - p = /^https?:\/\/|^\/\//i.test(c); - return Tu(c, t, f, a, p); - }), - l = i.filter(function (c) { - return c.type !== 3; - }); - return ( - l.length && - s.push( - Promise.resolve( - t.convertDataToStylesheet({ - data: l - .map(function (c) { - return c.cssText; - }) - .join(), - isCrossOrigin: n, - priority: r, - root: t.rootNode, - shadowId: t.shadowId, - }), - ), - ), - Promise.all(s) - ); - } - var L1 = _D; - function xD(e, t, r, a) { - var n = - arguments.length > 4 && arguments[4] !== void 0 - ? arguments[4] - : !1, - i = ED(e); - return i ? L1(e, t, r, a, n) : Tu(e.href, t, r, a, !0); - } - function ED(e) { - try { - var t = e.cssRules; - return !(!t && e.href); - } catch { - return !1; - } - } - var Fu = xD; - function AD(e, t, r, a, n) { - return ( - a.push(e), - new Promise(function (i, o) { - var u = new E.XMLHttpRequest(); - (u.open("GET", e), - (u.timeout = se.preload.timeout), - u.addEventListener("error", o), - u.addEventListener("timeout", o), - u.addEventListener("loadend", function (s) { - if (s.loaded && u.responseText) return i(u.responseText); - o(u.responseText); - }), - u.send()); - }).then(function (i) { - var o = t.convertDataToStylesheet({ - data: i, - isCrossOrigin: n, - priority: r, - root: t.rootNode, - shadowId: t.shadowId, - }); - return Fu(o.sheet, t, r, a, o.isCrossOrigin); - }) - ); - } - var Tu = AD; - function CD(e) { - if (typeof e != "string") return null; - var t = e.trim().match(/^([-+]?\d+)/); - return t ? Number(t[1]) : null; - } - var Lt = CD, - FD = (function () { - function e() { - if (E.performance && E.performance) - return E.performance.now(); - } - var t = null, - r = e(); - return { - start: function () { - this.mark("mark_axe_start"); - }, - end: function () { - (this.mark("mark_axe_end"), - this.measure("axe", "mark_axe_start", "mark_axe_end"), - this.logMeasures("axe")); - }, - auditStart: function () { - this.mark("mark_audit_start"); - }, - auditEnd: function () { - (this.mark("mark_audit_end"), - this.measure( - "audit_start_to_end", - "mark_audit_start", - "mark_audit_end", - ), - this.logMeasures()); - }, - mark: function (n) { - E.performance && - E.performance.mark !== void 0 && - E.performance.mark(n); - }, - measure: function (n, i, o) { - E.performance && - E.performance.measure !== void 0 && - E.performance.measure(n, i, o); - }, - logMeasures: function (n) { - function i(c) { - vr("Measure " + c.name + " took " + c.duration + "ms"); - } - if ( - E.performance && - E.performance.getEntriesByType !== void 0 - ) - for ( - var o = - E.performance.getEntriesByName("mark_axe_start")[0], - u = E.performance - .getEntriesByType("measure") - .filter(function (c) { - return c.startTime >= o.startTime; - }), - s = 0; - s < u.length; - ++s - ) { - var l = u[s]; - if (l.name === n) { - i(l); - return; - } - i(l); - } - }, - timeElapsed: function () { - return e() - r; - }, - reset: function () { - (t || (t = e()), (r = e())); - }, - }; - })(), - ve = FD; - function B1() { - if (L.elementsFromPoint) return L.elementsFromPoint; - if (L.msElementsFromPoint) return L.msElementsFromPoint; - var e = (function () { - var n = L.createElement("x"); - return ( - (n.style.cssText = "pointer-events:auto"), - n.style.pointerEvents === "auto" - ); - })(), - t = e ? "pointer-events" : "visibility", - r = e ? "none" : "hidden", - a = L.createElement("style"); - return ( - (a.innerHTML = e - ? "* { pointer-events: all }" - : "* { visibility: visible }"), - function (n, i) { - var o, - u, - s, - l = [], - c = []; - for ( - L.head.appendChild(a); - (o = L.elementFromPoint(n, i)) && l.indexOf(o) === -1; - ) - (l.push(o), - c.push({ - value: o.style.getPropertyValue(t), - priority: o.style.getPropertyPriority(t), - }), - o.style.setProperty(t, r, "important")); - for ( - l.indexOf(L.documentElement) < l.length - 1 && - (l.splice(l.indexOf(L.documentElement), 1), - l.push(L.documentElement)), - u = c.length; - (s = c[--u]); - ) - l[u].style.setProperty( - t, - s.value ? s.value : "", - s.priority, - ); - return (L.head.removeChild(a), l); - } - ); - } - typeof E.addEventListener == "function" && - (L.elementsFromPoint = B1()); - function TD(e, t) { - return e.concat(t).filter(function (r, a, n) { - return n.indexOf(r) === a; - }); - } - var Ia = TD; - function q1(e, t, r, a, n) { - var i = n || {}; - return ( - (i.vNodes = e), - (i.vNodesIndex = 0), - (i.anyLevel = t), - (i.thisLevel = r), - (i.parentShadowId = a), - i - ); - } - function RD(e, t, r) { - for ( - var a = ue.get("qsa.recycledLocalVariables", function () { - return []; - }), - n = [], - i = Array.isArray(e) ? e : [e], - o = q1(i, t, null, e[0].shadowId, a.pop()), - u = []; - o.vNodesIndex < o.vNodes.length; - ) { - for ( - var s, - l, - c = o.vNodes[o.vNodesIndex++], - d = null, - f = null, - p = - (((s = o.anyLevel) === null || s === void 0 - ? void 0 - : s.length) || 0) + - (((l = o.thisLevel) === null || l === void 0 - ? void 0 - : l.length) || 0), - m = !1, - h = 0; - h < p; - h++ - ) { - var v, - g, - b, - D = - h < - (((v = o.anyLevel) === null || v === void 0 - ? void 0 - : v.length) || 0) - ? o.anyLevel[h] - : o.thisLevel[ - h - - (((g = o.anyLevel) === null || g === void 0 - ? void 0 - : g.length) || 0) - ]; - if ( - (!D[0].id || c.shadowId === o.parentShadowId) && - Or(c, D[0]) - ) - if (D.length === 1) - !m && (!r || r(c)) && (u.push(c), (m = !0)); - else { - var w = D.slice(1); - if ([" ", ">"].includes(w[0].combinator) === !1) - throw new Error( - "axe.utils.querySelectorAll does not support the combinator: " + - D[1].combinator, - ); - w[0].combinator === ">" - ? (d = d || []).push(w) - : (f = f || []).push(w); - } - (!D[0].id || c.shadowId === o.parentShadowId) && - (b = o.anyLevel) !== null && - b !== void 0 && - b.includes(D) && - (f = f || []).push(D); - } - for ( - c.children && - c.children.length && - (n.push(o), (o = q1(c.children, f, d, c.shadowId, a.pop()))); - o.vNodesIndex === o.vNodes.length && n.length; - ) - (a.push(o), (o = n.pop())); - } - return u; - } - function SD(e, t, r) { - e = Array.isArray(e) ? e : [e]; - var a = nn(t), - n = w1(e, a, r); - return n || RD(e, a, r); - } - var Bt = SD; - function kD(e) { - var t = e.treeRoot, - r = t === void 0 ? x._tree[0] : t, - a = OD(r); - if (!a.length) return Promise.resolve(); - var n = L.implementation.createHTMLDocument( - "Dynamic document for loading cssom", - ), - i = M1(n); - return MD(a, i).then(function (o) { - return z1(o); - }); - } - var j1 = kD; - function OD(e) { - var t = [], - r = Bt(e, "*", function (a) { - return t.includes(a.shadowId) ? !1 : (t.push(a.shadowId), !0); - }).map(function (a) { - return { shadowId: a.shadowId, rootNode: pa(a.actualNode) }; - }); - return Ia(r, []); - } - function MD(e, t) { - var r = []; - return ( - e.forEach(function (a, n) { - var i = a.rootNode, - o = a.shadowId, - u = ID(i, o, t); - if (!u) return Promise.all(r); - var s = n + 1, - l = { - rootNode: i, - shadowId: o, - convertDataToStylesheet: t, - rootIndex: s, - }, - c = [], - d = Promise.all( - u.map(function (f, p) { - var m = [s, p]; - return Fu(f, l, m, c); - }), - ); - r.push(d); - }), - Promise.all(r) - ); - } - function z1(e) { - return e.reduce(function (t, r) { - return Array.isArray(r) ? t.concat(z1(r)) : t.concat(r); - }, []); - } - function ID(e, t, r) { - var a; - return ( - e.nodeType === 11 && t ? (a = PD(e, r)) : (a = ND(e)), - BD(a) - ); - } - function PD(e, t) { - return Array.from(e.children) - .filter(LD) - .reduce(function (r, a) { - var n = a.nodeName.toUpperCase(), - i = n === "STYLE" ? a.textContent : a, - o = n === "LINK", - u = t({ data: i, isLink: o, root: e }); - return (u.sheet && r.push(u.sheet), r); - }, []); - } - function ND(e) { - return Array.from(e.styleSheets).filter(function (t) { - return t.media ? V1(t.media.mediaText) : !1; - }); - } - function LD(e) { - var t = e.nodeName.toUpperCase(), - r = e.getAttribute("href"), - a = e.getAttribute("rel"), - n = - t === "LINK" && - r && - a && - e.rel.toUpperCase().includes("STYLESHEET"), - i = t === "STYLE"; - return i || (n && V1(e.media)); - } - function V1(e) { - return e ? !e.toUpperCase().includes("PRINT") : !0; - } - function BD(e) { - var t = []; - return e.filter(function (r) { - return r.href - ? t.includes(r.href) - ? !1 - : (t.push(r.href), !0) - : !0; - }); - } - function qD(e) { - var t = e.treeRoot, - r = t === void 0 ? x._tree[0] : t, - a = Bt(r, "video[autoplay], audio[autoplay]", function (n) { - var i = n.actualNode; - if ( - (i.preload === "none" && - i.readyState === 0 && - i.networkState !== i.NETWORK_LOADING) || - i.hasAttribute("paused") || - i.hasAttribute("muted") - ) - return !1; - if (i.hasAttribute("src")) return !!i.getAttribute("src"); - var o = Array.from(i.getElementsByTagName("source")).filter( - function (u) { - return !!u.getAttribute("src"); - }, - ); - return !(o.length <= 0); - }); - return Promise.all( - a.map(function (n) { - var i = n.actualNode; - return jD(i); - }), - ); - } - var H1 = qD; - function jD(e) { - return new Promise(function (t) { - e.readyState > 0 && t(e); - function r() { - (e.removeEventListener("loadedmetadata", r), t(e)); - } - e.addEventListener("loadedmetadata", r); - }); - } - function $1(e) { - var t = { cssom: j1, media: H1 }; - return U1(e) - ? new Promise(function (r, a) { - var n = G1(e), - i = n.assets, - o = n.timeout, - u = setTimeout(function () { - return a(new Error("Preload assets timed out.")); - }, o); - Promise.all( - i.map(function (s) { - return t[s](e).then(function (l) { - return $p({}, s, l); - }); - }), - ) - .then(function (s) { - var l = s.reduce(function (c, d) { - return de({}, c, d); - }, {}); - (clearTimeout(u), r(l)); - }) - .catch(function (s) { - (clearTimeout(u), a(s)); - }); - }) - : Promise.resolve(); - } - function zD(e) { - return O(e) === "object" && Array.isArray(e.assets); - } - function U1(e) { - return !e || e.preload === void 0 || e.preload === null - ? !0 - : typeof e.preload == "boolean" - ? e.preload - : zD(e.preload); - } - function G1(e) { - var t = se.preload, - r = t.assets, - a = t.timeout, - n = { assets: r, timeout: a }; - if (!e.preload || typeof e.preload == "boolean") return n; - var i = e.preload.assets.every(function (o) { - return r.includes(o.toLowerCase()); - }); - if (!i) - throw new Error( - "Requested assets, not supported. Supported assets are: ".concat( - r.join(", "), - ".", - ), - ); - return ( - (n.assets = Ia( - e.preload.assets.map(function (o) { - return o.toLowerCase(); - }), - [], - )), - e.preload.timeout && - typeof e.preload.timeout == "number" && - !isNaN(e.preload.timeout) && - (n.timeout = e.preload.timeout), - n - ); - } - function ei(e) { - var t = x._audit.data.checks || {}, - r = x._audit.data.rules || {}, - a = fa(x._audit.rules, "id", e.id) || {}; - e.tags = $t(a.tags || []); - var n = W1(t, !0, a), - i = W1(t, !1, a); - (e.nodes.forEach(function (o) { - (o.any.forEach(n), o.all.forEach(n), o.none.forEach(i)); - }), - io(e, $t(r[e.id] || {}))); - } - function VD(e, t) { - function r(n) { - return n.incomplete && n.incomplete.default - ? n.incomplete.default - : bu(); - } - if (e && e.missingData) - try { - var a = t.incomplete[e.missingData[0].reason]; - if (!a) throw new Error(); - return a; - } catch { - return typeof e.missingData == "string" - ? t.incomplete[e.missingData] - : r(t); - } - else return e && e.messageKey ? t.incomplete[e.messageKey] : r(t); - } - function W1(e, t, r) { - return function (a) { - var n = e[a.id] || {}, - i = n.messages || {}, - o = Object.assign({}, n); - (delete o.messages, - !r.reviewOnFail && a.result === void 0 - ? (O(i.incomplete) === "object" && - !Array.isArray(a.data) && - (o.message = VD(a.data, i)), - o.message || (o.message = i.incomplete)) - : (o.message = a.result === t ? i.pass : i.fail), - typeof o.message != "function" && - (o.message = yu(o.message, a.data)), - io(a, o)); - }; - } - function HD(e, t) { - return Bt(e, t); - } - var ft = HD; - function Y1(e, t) { - var r, - a, - n = x._audit && x._audit.tagExclude ? x._audit.tagExclude : []; - t.hasOwnProperty("include") || t.hasOwnProperty("exclude") - ? ((r = t.include || []), - (r = Array.isArray(r) ? r : [r]), - (a = t.exclude || []), - (a = Array.isArray(a) ? a : [a]), - (a = a.concat( - n.filter(function (o) { - return r.indexOf(o) === -1; - }), - ))) - : ((r = Array.isArray(t) ? t : [t]), - (a = n.filter(function (o) { - return r.indexOf(o) === -1; - }))); - var i = r.some(function (o) { - return e.tags.indexOf(o) !== -1; - }); - return i || (r.length === 0 && e.enabled !== !1) - ? a.every(function (o) { - return e.tags.indexOf(o) === -1; - }) - : !1; - } - function $D(e, t, r) { - var a = r.runOnly || {}, - n = (r.rules || {})[e.id]; - return e.pageLevel && !t.page - ? !1 - : a.type === "rule" - ? a.values.indexOf(e.id) !== -1 - : n && typeof n.enabled == "boolean" - ? n.enabled - : a.type === "tag" && a.values - ? Y1(e, a.values) - : Y1(e, []); - } - var K1 = $D; - function X1(e, t) { - if (!t) return e; - var r = e.cloneNode(!1), - a = en(r); - if (r.nodeType === 1) { - var n = r.outerHTML; - r = ue.get(n, function () { - return Z1(r, a, e, t); - }); - } else r = Z1(r, a, e, t); - return ( - Array.from(e.childNodes).forEach(function (i) { - r.appendChild(X1(i, t)); - }), - r - ); - } - function Z1(e, t, r, a) { - return ( - t && - ((e = L.createElement(e.nodeName)), - Array.from(t).forEach(function (n) { - UD(r, n.name, a) || e.setAttribute(n.name, n.value); - })), - e - ); - } - function UD(e, t, r) { - return typeof r[t] > "u" ? !1 : r[t] === !0 ? !0 : kr(e, r[t]); - } - function Ru(e, t) { - var r = [], - a; - if (x._selectCache) - for (var n = 0, i = x._selectCache.length; n < i; n++) { - var o = x._selectCache[n]; - if (o.selector === e) return o.result; - } - for (var u = GD(t.include), s = WD(t), l = 0; l < u.length; l++) { - a = u[l]; - var c = Bt(a, e, s); - r = YD(r, c); - } - return ( - x._selectCache && - x._selectCache.push({ selector: e, result: r }), - r - ); - } - function GD(e) { - return e.reduce(function (t, r) { - return ((!t.length || !Ut(t[t.length - 1], r)) && t.push(r), t); - }, []); - } - function WD(e) { - return !e.exclude || e.exclude.length === 0 - ? null - : function (t) { - return Eu(t, e); - }; - } - function YD(e, t) { - if (e.length === 0) return t; - if (e.length < t.length) { - var r = e; - ((e = t), (t = r)); - } - for (var a = 0, n = t.length; a < n; a++) - e.includes(t[a]) || e.push(t[a]); - return e; - } - function KD(e, t, r) { - if (e === E) return e.scroll(r, t); - ((e.scrollTop = t), (e.scrollLeft = r)); - } - function XD(e) { - e.forEach(function (t) { - var r = t.elm, - a = t.top, - n = t.left; - return KD(r, a, n); - }); - } - var ZD = XD; - function JD(e) { - var t = Array.isArray(e) ? ne(e) : [e]; - return J1(t, L); - } - function J1(e, t) { - var r = e.shift(), - a = r ? t.querySelector(r) : null; - return e.length === 0 - ? a - : a != null && a.shadowRoot - ? J1(e, a.shadowRoot) - : null; - } - function Su(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : L, - r = Array.isArray(e) ? ne(e) : [e]; - return e.length === 0 ? [] : Q1(r, t); - } - function Q1(e, t) { - var r = Hp(e), - a = r[0], - n = r.slice(1), - i = t.querySelectorAll(a); - if (n.length === 0) return Array.from(i); - var o = [], - u = Ce(i), - s; - try { - for (u.s(); !(s = u.n()).done; ) { - var l = s.value; - l != null && - l.shadowRoot && - o.push.apply(o, ne(Q1(n, l.shadowRoot))); - } - } catch (c) { - u.e(c); - } finally { - u.f(); - } - return o; - } - function QD() { - return [ - "hidden", - "text", - "search", - "tel", - "url", - "email", - "password", - "date", - "month", - "week", - "time", - "datetime-local", - "number", - "range", - "color", - "checkbox", - "radio", - "file", - "submit", - "image", - "reset", - "button", - ]; - } - var ti = QD, - ef = [ - , - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - , - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - ], - [ - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - , - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, 1, , , , , 1, 1, 1, , 1, 1, 1, 1, 1, 1, , 1, 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - ], - [ - , - 1, - , - , - , - , - , - 1, - , - 1, - , - , - , - , - 1, - , - 1, - , - , - , - 1, - 1, - , - 1, - , - , - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - 1, - 1, - , - , - 1, - , - , - , - , - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - , - , - , - , - , - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [1, , 1, , 1, , , , , 1, , 1, 1, 1, 1, 1, , , , 1, 1, 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , 1, , , 1, , 1, , , , 1, 1, 1, , , , , , , , , , , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - , - 1, - , - , - 1, - 1, - 1, - , - , - , - , - 1, - , - , - , - , - , - 1, - ], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [, 1, , 1, 1, 1, , 1, 1, , 1, , 1, 1, 1, 1, 1, 1, 1, 1], - [ - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - , - 1, - 1, - , - , - , - , - , - 1, - 1, - ], - [1, 1, 1, , , , , 1, , , , 1, 1, , 1, , , , , , 1, , , , , 1], - [, 1, , , 1, , , 1, , , , , , 1], - [, 1, , 1, , , , 1, , , , 1], - [ - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - , - 1, - , - 1, - 1, - , - 1, - , - 1, - , - , - , - , - 1, - , - 1, - ], - [ - , - 1, - , - , - , - 1, - , - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - , - , - 1, - ], - [ - , - 1, - 1, - , - , - , - , - , - 1, - , - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - ], - [ - , - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - , - , - , - 1, - 1, - , - 1, - , - 1, - ], - [, 1, , 1, , 1, , 1, , 1, , 1, 1, 1, 1, 1, , , 1, 1, 1], - [ - , - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - , - , - , - 1, - 1, - 1, - , - , - 1, - , - 1, - , - , - 1, - 1, - ], - [, , , , 1, , , , , , , , , , , , , , , , , 1], - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - , - , - , - 1, - ], - [ - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [1, , , , , , , 1, , , , , , , 1], - [, 1, 1, , 1, 1, , 1, , , , , , , , , , , , , 1], - , - [1, 1, 1, , , , , , , , , , , , , 1], - [, , , , , , , , 1, , , 1, , , 1, 1, , , , , 1], - ], - [ - , - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [, , , 1, , , , , , , , , , , , , , , 1], - [, 1, , , 1, 1, , 1, , 1, 1, , , , 1, 1, , , 1, 1, , , , 1], - [ - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - , - , - , - 1, - ], - , - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - ], - [ - , - 1, - , - , - 1, - , - , - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - , - 1, - , - 1, - ], - [, 1, , , , , , , , , , 1, 1, , , , , , 1, 1, , , , , 1], - [, , , , , , , 1, , , , 1, , 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - , - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , , , , , , , , , , , , 1], - , - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - ], - [, , 1, , , 1, , , 1, 1, , , 1, , 1, 1, , 1], - [ - , - 1, - 1, - , - 1, - , - , - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [1, 1], - [ - , - 1, - , - , - , - , - , - , - , - , - , - 1, - 1, - , - , - , - , - , - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - ], - , - [ - , - 1, - 1, - , - 1, - , - , - 1, - , - 1, - , - , - , - 1, - 1, - 1, - , - , - , - , - , - 1, - , - , - , - 1, - ], - [1, 1, , , 1, 1, , 1, , , , , 1, , 1], - ], - [ - , - [, 1], - [, , , 1, , , , 1, , , , 1, , , , 1, , , 1, , , 1], - [, , , , , , , , , , , , , , , , , , 1, 1, , , , , , 1], - , - [1, , , , , 1], - [, 1, , , , 1, , , , 1], - [, 1, , , , , , , , , , , 1, , , 1, , , , , , , , , 1, 1], - [, , , , , , , , , , , , , , , , , , , , , 1], - [, , , , , , , , , , , , , , , , 1, , , , 1, , 1], - [, 1], - [ - , - 1, - , - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - , - , - , - , - , - , - 1, - ], - [1, , , , , 1, , , 1, 1, , 1, , 1, , 1, 1, , , , , 1, , , 1], - [ - , - 1, - 1, - , - , - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - , - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - ], - [1, , , , , , , , , , , , , , , , , , , , 1], - [, , , , , , , , , 1], - , - [, 1, , , , , , 1, 1, 1, , 1, , , , 1, , , 1, 1, 1, , , 1], - [ - 1, - , - , - , - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - , - , - 1, - 1, - ], - [ - 1, - , - 1, - 1, - , - , - , - , - 1, - , - , - , - , - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - ], - [1, , , , , , , , , , , , , , , , , 1], - [, , , , , 1, , , 1, , , , , , 1], - [, , , , , , , , , , , , , , , 1], - [, , , , , , , , , , , , , , , , , , , , 1], - [, 1, , , , , , , , , , , , , , 1], - [, 1, , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - ], - [, , , , , , , , , , , , 1], - [, , , , , , , , , , , , , , , , , , , 1], - , - [, , , , , , , , , , , , , , , , , , 1], - [1, , , , , , , , , 1, , , , 1], - [, , , , , , , , , , , , , , , , , , 1], - , - [1, 1, , , , 1, 1, , , , , , 1, , , , 1, , 1, , 1, 1, , 1], - [1], - [, , , , , , , , , , , 1, , , , , , , , , , , 1], - [, 1, , , , , , , 1, 1, , , 1, , 1, , , , 1, , , , , , , 1], - [, , , , , , , , , , , , , , , , 1, , , , , 1], - [, , 1, , , , , 1, , 1], - [1, , , , 1, , , , , 1, , , , 1, 1, , , , 1, 1, , , , , 1], - [, , , , , 1], - [, , , , , , , , , , , , , , , , , , , 1], - [1, , , 1, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, 1, 1], - [, , , , , 1, , , , , , , 1, , , , , , , 1], - , - [ - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - ], - [, , , , , , , , , , , , , , , , , , 1], - [, 1, , , , 1], - , - [1], - ], - [ - , - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , 1, 1, 1, 1, , , , , , 1, , 1, , , , 1, , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , , , , , , , 1, , , , , , , , , 1, , , , 1], - [, 1, 1, , 1, 1, , 1, , , , 1, 1, , 1, 1, , , 1, , 1, 1, , 1], - [, 1, , 1, , 1, , , 1, , , 1, 1, , 1, 1, , , 1, 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [, , , , , , , , , 1, , 1, , 1, 1, , , , 1, , , 1], - [, 1, , , 1, 1, , , , , , , , , 1, 1, 1, , , , , 1], - [ - 1, - , - , - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - , - 1, - , - , - 1, - , - 1, - , - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - , - , - 1, - 1, - 1, - , - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - 1, - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [, 1, , , , 1, , , , , , , , , 1], - [, 1, , , , , , , , 1, , , , , 1, , , , 1, , , 1], - [ - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , 1, , 1, , , , , 1, 1, 1, 1, 1, , , 1, , , , 1], - [, 1, , , , , , , , 1, , , , , , , , , , , , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - 1, - 1, - , - 1, - , - 1, - 1, - , - , - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - , - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - 1, - , - , - , - 1, - , - 1, - 1, - , - 1, - 1, - ], - [, , , , , , , , , , , , , , , , , , , , , , , , 1], - [ - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - , - , - 1, - , - , - , - , - , - , - 1, - ], - [, 1, , , , , , , , 1, , , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - ], - [, 1, 1, , , , , , , , , , , , 1, 1, , , , , , 1], - [, 1, , , , , , , 1], - [, , , , , , , , , , , , , , 1, , , , , 1, , , , , , 1], - [1, 1, , , 1, , , 1, 1, 1, , , , 1], - , - [, , , , , , , , , , , , , 1, , , , , , , , , , 1], - [, , , , , , , , , 1, , , , , , , , , 1, , , , , , , 1], - [ - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - , - 1, - , - 1, - , - , - 1, - 1, - ], - [, , , , , , , , , 1], - [, 1, , , , 1, , , , , , 1, , , 1, , , , , 1], - [, 1, 1, , 1, 1, , , , , , , , , , , , , , , 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , 1, 1, , 1, 1, 1, 1, , , , 1, 1, , , , 1, , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - ], - [, , , , , , , , , , , , , , , 1, , , , 1], - , - [ - 1, - 1, - , - 1, - , - 1, - , - , - , - , - , - 1, - , - 1, - , - 1, - 1, - , - 1, - , - 1, - 1, - , - 1, - 1, - , - 1, - ], - [, , 1, , , , , , 1, , , , 1, , 1, , , , , 1], - [1, , , , , , , , , 1, , , , , , 1, , , , 1, , 1, , , 1], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , 1, , 1, , , , , , 1, , , 1, , , , , , , , 1], - [, 1, , 1, , , , , , , , , , , , 1], - , - [1, 1, , , , , , , , , , , , , , , , , , , , , , 1, 1], - [1], - ], - [ - , - [1, , , , , , , , , 1, , , , , 1, , 1, , 1], - [ - , - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - , - , - 1, - , - , - 1, - , - , - , - 1, - ], - [, 1, , , , , , , 1, , , , 1, , , , , , 1], - [1, 1, 1, 1, 1, 1, , , , 1, , , , , , , , , 1, 1, 1, 1], - [1], - [, 1, 1, , , 1, 1, , , , , 1, , 1, , , , , , , , 1, , , , 1], - [1, , 1, , , 1, , 1, , , , , 1, 1, 1, 1, , , , 1, , , , 1], - [, , 1, , , , , , , 1, , , , , , , 1, , , , , , , 1], - [1, , , , , , , , , , , , , , 1, , , , 1], - [, , , 1, , 1, , , , , 1, , , , 1, 1, , , , 1], - [ - 1, - , - , - , - , - 1, - , - , - , - 1, - , - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - ], - [, 1, 1, , , , , 1, , 1, , 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1], - [, 1, , , , 1, , , , 1, , , 1, , 1, 1, , , 1, 1, , , , , , 1], - [ - 1, - , - 1, - 1, - , - 1, - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - , - , - , - , - 1, - ], - [1, , , , , , , , , , , , , , , , , , 1, , , 1, , 1], - [, , , , , , , , , 1, , , , , , 1], - [, , , , , , , , , , , , , , , , , , , , , 1, , 1], - [ - , - 1, - , - , - , - 1, - , - , - 1, - 1, - , - 1, - , - , - 1, - 1, - , - , - 1, - , - , - 1, - , - , - 1, - 1, - ], - [1, 1, , 1, 1, 1, , 1, 1, 1, , 1, , 1, 1, 1, , , 1, , 1, 1], - [ - 1, - , - 1, - 1, - 1, - 1, - , - , - , - 1, - , - 1, - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [1, , , , , , , , , , , , , 1], - [, , 1, , , , , , , , , , , , , , , , , , , , 1], - [1, , , , , , , , , , , 1, , 1, , 1, , , , 1], - [, , , 1, , , , , , , , , 1], - [, 1, , , , , , , , , , , , , , 1, , , , , , , , , 1], - [, , , , , , , , 1, 1, , , , , , , , , 1, , , , , , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - ], - [, , , , , 1, , , , 1, 1, 1, , , 1, 1, , , 1, , 1, 1, , 1], - [, , , , , , , , , , , , , , , , , , , 1, 1], - [, 1, , , , , , 1, , , , , , , , , , , , , 1], - [, , 1, , , 1, , 1, 1, 1, , 1, 1, , 1, , , , 1, , 1, 1], - , - [, , 1, , , 1, , , , , , 1, , , , 1], - [, , , , , , , , , 1, , , , , , , , , , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - , - 1, - , - 1, - , - , - 1, - 1, - 1, - , - , - 1, - ], - [, , , , , 1, , , , , , , , , , , , , 1], - [, 1, , , , , , , , , , , , 1, , 1, 1, , 1, , , 1], - [, , , , , 1, , , , , , , , , , , , , , 1], - [, 1, 1, 1, 1, , , , , 1, , , 1, , 1, , , , 1, 1, , , , 1, 1], - [, 1, , , 1, , , 1, , 1, 1, , 1, , , , , , , 1], - [, , 1, , 1, , , 1, , , , , , , , , , , 1, 1, , , , 1], - [, 1, , , , , , , , , , , , , , , , , 1, , , , , , 1], - [, , , , , , , , , , , , , , , , , , 1], - [, 1, 1, , , , , , , , , , , , , , , , 1, , 1, 1], - [, , , , , , , , , , , , 1], - , - [ - , - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - , - 1, - ], - [1, , , , 1, , , , , , , , , , 1], - [1, , , , , , , , , 1], - , - [, 1, , , , 1, , , , , , , , , , , , , , , , , , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , 1, 1, 1, 1, , 1, , , , 1, 1, , , 1, 1, , 1], - [, 1, 1, , 1, , , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , , , , , , , , , , 1], - [ - 1, - 1, - 1, - , - , - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - , - , - , - , - 1, - ], - [, 1, , , , , , , 1, 1, , , 1, 1, 1, , 1, , , 1, 1, 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , 1, , , , 1, , , 1, , , , 1, , , , , , , 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - , - 1, - , - 1, - , - 1, - , - , - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , 1, , , , , , , , , 1, 1, , , , , , , , , 1], - , - [ - , - 1, - , - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - , - 1, - , - , - , - 1, - ], - [ - , - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - , - 1, - ], - [1, , , 1, , , , 1, 1, 1, , , , , 1, 1, , , , 1, , 1], - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [1, 1, , , , , , , , 1, , 1, , , , , , , , 1, , 1], - [, 1, , , , 1, , 1, 1, , , , 1, 1, , 1, , , , 1, 1, 1, , 1], - , - [, 1, , , , , , 1, , , , , , , 1], - [, , , , , , , , 1, , , , 1, , 1, , , , , , , , , , , , 1], - ], - [ - , - [ - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , 1, , , , , , , , 1, , , , , , 1, , , 1], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - , - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - 1, - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - , - 1, - 1, - , - , - , - , - 1, - 1, - 1, - , - , - 1, - , - 1, - 1, - , - , - , - 1, - , - 1, - , - , - 1, - 1, - ], - [, , , , , , , 1, , , , 1, 1, 1, 1, 1, , 1, , , , , , , , 1], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - , - , - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - , - , - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [1, , , , , , , , 1, , , , , 1, , 1], - [ - , - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - , - , - , - 1, - , - 1, - , - , - 1, - , - , - , - , - , - 1, - 1, - ], - [ - , - 1, - , - , - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - , - , - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - , - , - , - , - 1, - , - 1, - , - 1, - , - , - , - , - , - 1, - , - 1, - , - , - , - 1, - 1, - ], - ], - [ - , - [, 1, , 1, , , , , , , , , , , , , , , 1, , , , 1], - [, , , , , , , , , 1, , 1, 1, 1, , 1, , , 1, , 1, 1], - [1, 1, , , , , , , 1, , , , , , , 1, , , , , , 1], - [, 1, , , , , , , , , , 1, , , , , , , , , 1, 1], - , - [, , , , , , , , , , , , , , , 1, , , , 1, , 1], - [, , 1, 1, , 1, , 1, , , , , , , , 1, , , , , , 1], - [, , , , , , , , , , , , , , , , , , , , 1, 1], - [, 1, , , , , , , , , , , , , 1], - [1, , 1, 1, , , , 1, , , , , , , , , 1, , , 1, , , 1, 1], - [ - , - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - , - 1, - ], - [, 1, , , 1, 1, , , , , , 1, , 1, , 1, , , 1, , 1, 1], - [ - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - , - 1, - , - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [, , , , 1, , , 1, , , , , , , 1, , , , 1, 1], - [, 1, , , , , , , , , , 1, , 1, , 1, , , , , 1, , , , , 1], - , - [ - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - , - , - , - , - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [1, 1, , 1, , , , , , 1, , , , , , 1, 1, , , , 1, 1, , , 1], - [ - , - 1, - 1, - , - 1, - 1, - , - , - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [, 1, 1, , , 1, , , , 1, , , , 1, 1], - [, , , , 1], - [, , , , , , , , , 1, , , 1], - , - [, , 1, , 1, , , , , , , , , 1, , , , , , , , , , , , 1], - [, , , , , , , , , , , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - , - , - , - 1, - ], - [, 1, , 1, , , , , , 1, , , , , 1, 1, , , , , 1, 1], - [ - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - , - 1, - , - 1, - 1, - 1, - ], - [, 1, , , , 1, , , , , , , 1], - [ - , - 1, - , - , - 1, - , - , - 1, - , - 1, - , - 1, - 1, - , - 1, - , - , - , - , - 1, - , - 1, - , - , - , - 1, - 1, - ], - [ - , - 1, - , - , - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , , , , , , , , , , , , , , , , 1], - [, 1, 1, 1, , , , 1, 1, , , , , , 1, 1, 1, , 1, 1, 1, 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], - [, 1, , , , 1, , , , , , , , 1, , , , , , , , , , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - ], - [ - 1, - 1, - , - , - , - , - , - , - 1, - 1, - , - , - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - , - [, 1, 1, , , , , 1, , 1, , , , 1, 1, 1, , , 1, , , , , 1], - [, , , , , , , , , , , , , 1], - [, , , , , 1, , , , , , , , 1, 1, , , , , 1, , 1, , , 1, 1], - [, , , , , , , , , , , , , , 1], - ], - [ - , - [, 1], - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - 1, - , - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - , - , - 1, - , - 1, - 1, - ], - [, 1, , 1, , 1, , , 1, , , , , 1, , , , , , 1, 1], - [, 1, , 1, , , , , 1, , , , 1, , 1, 1, 1, 1, 1, 1, 1, 1, , 1], - [, 1, , , , , , , , , , , , , , , 1], - ], - [ - , - [ - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , 1, , , , , , , , , 1, 1, , , , 1], - [, , , , , , 1], - [, , 1], - [ - , - 1, - 1, - , - , - 1, - , - 1, - , - 1, - 1, - , - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - , - , - , - , - 1, - ], - , - [, 1, , , , 1, , , , , , 1, , , 1, , , , 1, 1, , 1], - [, , , , , , , 1, , , , , , , , , 1], - [, 1, , , , 1, 1, , , , , , 1, 1, 1, , , , 1, , 1, 1], - [, , , , , , , 1, , 1, , , , , , , , , , 1], - [, 1, 1, , , , , , 1, 1, , , , 1, , , , , , , 1, , , 1], - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [1, 1, , , 1, , , 1, , , , , 1, , 1, , 1, , 1, , , , , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - , - 1, - 1, - , - 1, - 1, - , - 1, - , - , - 1, - , - 1, - ], - [, , , , , , , , , , , , , , 1, , , , , , 1], - , - [, , , , , , , , , 1, , , , , , 1, , , , , 1], - [, , 1, , , , , , , 1, , , 1, 1], - [, , , 1, , , , , 1, , , , , 1, , , , , , 1, , , , 1], - [ - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - , - , - 1, - 1, - 1, - , - , - 1, - 1, - , - , - , - 1, - 1, - ], - , - [1, 1, , , , , , , , , , 1, , 1, , 1, , , 1], - [, , , , 1, , , , , , , , , , , , , , , , , , , 1], - [, , , , , , , , , , , , , , 1, , , , , 1, , 1], - [, , , , , , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [, , 1, , , 1, , , , , , , , 1, , , , , , 1, , , , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - , - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - , - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [1, 1, , , , , , , 1, , 1, 1, , 1, 1, 1, , 1, 1, 1, 1, 1], - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [1, 1, 1, 1, , 1, , , , , , 1, , 1, , , , , 1, 1, , , , , 1], - [ - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , 1, 1, , 1, , 1, , , , 1, 1, 1, 1, 1, , , 1, 1, , 1, , 1], - [ - , - 1, - 1, - 1, - 1, - , - , - , - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - , - , - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - , - , - , - 1, - , - 1, - , - 1, - , - , - 1, - , - , - 1, - 1, - , - 1, - ], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , , , , , 1, , , , , 1, 1, , , 1, , 1], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , , , 1, , 1, 1, , 1, 1, 1, 1, 1, , , 1, , 1, , 1], - [ - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , 1, , , , , , , , , , 1, 1, 1, 1, 1, 1, 1, , 1, 1, , 1], - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - , - , - 1, - 1, - , - , - , - , - , - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - ], - [ - 1, - 1, - , - , - , - 1, - , - , - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - ], - [, 1, , , , , , , 1, , 1, , 1, 1, 1, 1, , , , , , , , , 1], - ], - [ - , - [, , , , , , , , , , , , , 1, 1, , , , 1], - [, 1, , , , , , , , 1, , , 1, , , , , , 1, , , 1, , , , 1], - , - [, 1, , , , 1, , 1, , 1, 1, , 1, 1, , , , , , , , 1], - [, , , , , , , , , , , , , , , , , , , 1], - [, , , , , , , , , 1], - [1, 1, 1, , , 1, , , , , , , , , 1, 1, , , , , , , , , , 1], - [, 1, , , , , , , , , , , , , 1], - [, , , , , , , , , , , , , , , , , , , 1, , , 1], - [, , , , , , , , , 1], - [ - 1, - 1, - , - , - , - , - , - 1, - 1, - 1, - , - 1, - 1, - , - , - , - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - 1, - ], - [, 1, 1, 1, , 1, 1, , , 1, , 1, 1, 1, 1, , , , , , , 1, , 1], - [, 1, 1, 1, 1, , , 1, , 1, , , , 1, 1, 1, 1, , 1, 1, , 1], - [ - , - 1, - , - , - 1, - 1, - , - 1, - , - , - , - 1, - , - 1, - 1, - , - 1, - , - 1, - , - , - 1, - , - , - 1, - , - 1, - ], - [, , , , , , , , , , , 1], - [, , , , , , , , , 1, , , , , , , , , , , , , 1], - , - [ - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , , , , 1, 1, , 1, , , , , 1, , , 1, , 1], - [, 1, , , , 1, , , 1, , , , , , , , 1, , 1, , , 1], - [, , , , , , , , , , , , , 1, 1, , , , 1, , , 1], - [, , , , , 1, , , 1, , , , 1], - [, 1], - , - [, 1], - [1, , , , , , , , , , , , , , 1, , , , , 1], - ], - [ - , - [ - , - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - , - , - 1, - ], - [, , 1, , , , , , , , , 1], - , - , - [1, , , 1, 1, , , , , , , , 1, 1, , 1, 1, , 1], - , - [, , , , , , , , , , , , , , , , , , 1, , 1], - , - [1, , , 1, 1, , 1, 1, , , , , 1, , 1, , , , , 1, 1, , 1], - , - [, 1, , , , , , , , 1, 1, 1, 1, 1, , 1, 1, , , , 1, 1], - [, , , , , , , , , , , , , , , , 1, , , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , , , , , , , 1, , 1, , , 1], - [1, , , , , , , , , , , , , , , , , , 1, , 1], - , - , - [, 1, , , , , , , , , , , , , , 1, , , , 1, 1], - [, , , , , , , , , 1, , , 1, , , , , , , , , , 1], - [, , , , , , , , , , , , , , , 1], - [, , , , , , , , , , , , , 1, 1, , , , , , 1], - , - [, 1], - ], - [ - , - [ - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, - ], - [ - , - 1, - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [, 1, , , , , , , , 1], - [, , , , 1, , , 1, , , 1, 1, , , , , , , , , , 1, , , , 1], - [ - , - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [, , , , , , , 1], - [, 1, 1, , , , , 1, , 1, , , , , , 1, , , , , , 1, , 1, , 1], - [, 1, , , , , , 1, , , , 1, , , , , , , , , , 1], - [ - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [, 1, , , , , , , , 1], - [, 1, 1, , 1, , , , , , , , 1, , , , , , 1, , , 1, , 1, , 1], - [ - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - , - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - , - , - , - 1, - 1, - 1, - , - , - , - 1, - 1, - , - , - 1, - 1, - ], - [ - , - , - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - , - , - , - 1, - , - 1, - , - 1, - ], - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - , - , - , - 1, - , - 1, - ], - [, , , 1], - , - [ - , - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , , , 1, , 1, , 1, , , , , , , 1, 1, , 1, 1], - [, , , , , , 1, , 1, 1, , 1, , 1, , , , , , , , , , 1], - [ - , - 1, - 1, - , - 1, - , - , - , - 1, - , - , - , - 1, - 1, - 1, - , - , - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - ], - , - [, 1, 1, , , , , , , , , , , , , 1, , , 1, , , , , 1], - [, 1, , , , , , , , , , , , , , , , , , , , , , 1], - [, 1, 1, , , , , , , 1, , , , 1, , , , , 1, , , , , , , 1], - ], - [ - , - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - 1, - , - , - , - , - 1, - 1, - 1, - ], - [ - , - , - 1, - 1, - , - 1, - , - 1, - 1, - , - , - , - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - 1, - 1, - 1, - , - 1, - ], - [, 1, , 1, , , , , , , , 1, , 1, , 1, , , , , , , , , , 1], - [, , 1, , 1, , , 1, , , , , 1, 1, , , 1, , 1, 1, 1, 1], - [, 1], - [, 1, 1, , 1, , 1, 1, , 1, , , 1, 1, 1, , , , 1, , , 1, , 1], - [1, 1, , 1, 1, 1, , , , , , , , , , , , , 1, , 1, 1, 1], - [ - , - 1, - 1, - , - , - , - , - , - , - 1, - , - , - 1, - , - 1, - , - 1, - , - 1, - 1, - , - , - 1, - , - , - 1, - ], - [, , 1, , , , , , , , , , , , , , , , , , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - , - 1, - , - , - , - , - 1, - 1, - 1, - , - , - 1, - , - 1, - , - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - , - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - 1, - 1, - , - , - , - 1, - 1, - ], - [, , , 1, 1, , , 1, , 1, , 1, , 1, 1, 1, 1, , 1, , , , , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , , , , , , , , , , , , , , , , , 1], - [, 1, 1, , 1, 1, , 1, , 1, , , , 1, 1, , , 1, 1, , 1, 1, , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - ], - [, 1, 1, , 1, , , 1, , , 1, , 1, 1, 1, 1, 1, , 1, , 1, 1], - [, , , , , 1, , , , 1, , , , , 1, 1, , , , 1], - [, 1, , 1, 1, 1, , 1, , , 1, 1, 1, , , 1, , , 1, , 1, , , 1], - [, , 1, , , , , , , , , 1, , 1, , , , , 1, , 1], - [, 1, 1, , , , , , , , 1, 1, 1, , , , , , , , 1, , , , , 1], - [, , , , , , , , 1, , , , , 1, , , 1], - ], - [ - , - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [ - , - 1, - 1, - , - 1, - 1, - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - , - , - , - , - , - 1, - 1, - ], - [, , , , , , , , 1, , , , 1, , 1, , 1], - [, 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1], - [ - , - 1, - , - 1, - , - 1, - , - , - , - 1, - 1, - , - 1, - , - 1, - , - , - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - ], - , - [, 1, , , , , , , , 1, , , 1, 1, , , 1, , 1, 1, , 1, , 1], - [, 1, , , 1, , , , , , , , 1, , , , , , , 1], - [ - 1, - 1, - , - , - , - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - ], - , - [ - , - 1, - , - , - , - , - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - 1, - , - 1, - 1, - , - , - , - 1, - ], - [ - , - 1, - 1, - , - , - 1, - , - 1, - , - 1, - , - , - 1, - 1, - 1, - 1, - , - , - 1, - , - , - 1, - , - , - , - 1, - ], - [ - , - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - , - 1, - ], - [, 1, , , 1, 1, , 1, 1, , , 1, 1, , 1, 1, , 1, , 1, , 1], - [ - 1, - , - 1, - , - , - , - , - 1, - , - 1, - , - 1, - 1, - 1, - 1, - , - , - , - , - 1, - 1, - , - , - , - 1, - 1, - ], - [ - , - 1, - 1, - , - , - , - , - 1, - 1, - , - , - 1, - , - 1, - 1, - 1, - 1, - , - , - , - , - , - , - , - , - , - 1, - ], - , - [ - , - 1, - 1, - , - , - 1, - , - , - , - 1, - , - 1, - 1, - 1, - 1, - 1, - , - , - , - 1, - , - , - , - 1, - , - 1, - ], - [ - , - , - , - 1, - 1, - , - , - 1, - , - , - , - , - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - , - , - , - , - 1, - ], - [, 1, , , , , , , , , , , 1, , , , 1, , , , , , , 1, , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - 1, - ], - [, 1, , , , , , , , , , , , , , , , , , , 1], - [, 1, , , , , , 1, , , , , 1, , 1, , , 1, 1, , 1, 1, , 1], - [, 1, , , , , , 1, , , , , 1, 1, , , , , , , , 1, , , , 1], - [, , , , , , , , , , , , , , , , , , 1, , , 1, , , , , 1], - [, , , , , , , 1, , , , 1], - ], - [ - , - [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , 1, , 1, , , , , , , 1, , , , , , , , 1, , , 1], - [, 1, , , , , , , 1], - [, , , , , , , , , , 1], - [, 1, , , , , , 1, 1, , , , , , 1], - , - [, 1, 1, , , , , , 1, , , , , 1, 1, , , , 1], - [1, , 1, , 1, , , , , 1, , , , , 1, , , , , , , , , 1, 1], - [ - , - 1, - 1, - , - , - , - , - , - , - , - , - 1, - 1, - 1, - 1, - , - , - , - 1, - , - , - , - , - 1, - , - , - 1, - ], - , - [ - , - 1, - 1, - , - 1, - , - , - 1, - 1, - , - , - 1, - , - , - 1, - 1, - 1, - , - 1, - , - 1, - 1, - 1, - , - , - , - 1, - ], - [, , , , , 1, , , , , 1, , , 1, 1, , , 1, , 1, , , , 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, 1, , , 1, 1, , 1, , , , 1, , , , , , , , 1], - [, , , 1, , , , , 1, , , , , 1, , 1, , 1, 1, 1], - [ - , - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - ], - [, , , , , 1], - [, 1, , , , , , 1, , , , , , , 1, 1, 1, , , 1], - [, 1, , , , , , , , , , 1, 1, 1, , , , , 1, , , 1], - [ - , - , - , - , - , - 1, - , - 1, - , - , - , - , - 1, - 1, - 1, - , - 1, - 1, - , - 1, - 1, - 1, - , - , - 1, - 1, - ], - [1, 1, , , , , , , 1, , , , , 1, 1, , , , , , , , , , , 1], - , - [, 1], - [, , , , , , , , , , , , , , , , , , , , , , , , 1], - [, , 1, , , , , 1, , , 1, , , , 1, , 1], - [, 1, , , , , , , , , 1], - ], - ]; - function e_(e) { - for (var t = ef; e.length < 3; ) e += "`"; - for (var r = 0; r <= e.length - 1; r++) { - var a = e.charCodeAt(r) - 96; - if (((t = t[a]), !t)) return !1; - } - return !0; - } - function tf(e) { - e = Array.isArray(e) ? e : ef; - var t = []; - return ( - e.forEach(function (r, a) { - var n = String.fromCharCode(a + 96).replace("`", ""); - Array.isArray(r) - ? (t = t.concat( - tf(r).map(function (i) { - return n + i; - }), - )) - : t.push(n); - }), - t - ); - } - var ri = e_, - t_ = (function (e) { - function t(r) { - var a; - return ( - Tt(this, t), - (a = vi(this, t)), - (a._props = a_(r)), - (a._attrs = n_(r)), - a - ); - } - return ( - bi(t, e), - Rt(t, [ - { - key: "props", - get: function () { - return this._props; - }, - }, - { - key: "attr", - value: function (a) { - var n; - return (n = this._attrs[a]) !== null && n !== void 0 - ? n - : null; - }, - }, - { - key: "hasAttr", - value: function (a) { - return this._attrs[a] !== void 0; - }, - }, - { - key: "attrNames", - get: function () { - return Object.keys(this._attrs); - }, - }, - ]) - ); - })($e), - ku = { - "#cdata-section": 2, - "#text": 3, - "#comment": 8, - "#document": 9, - "#document-fragment": 11, - }, - rf = {}, - r_ = Object.keys(ku); - r_.forEach(function (e) { - rf[ku[e]] = e; - }); - function a_(e) { - var t, - r, - a, - n = - (t = e.nodeName) !== null && t !== void 0 - ? t - : rf[e.nodeType], - i = - (r = - (a = e.nodeType) !== null && a !== void 0 - ? a - : ku[e.nodeName]) !== null && r !== void 0 - ? r - : 1; - (me( - typeof i == "number", - "nodeType has to be a number, got '".concat(i, "'"), - ), - me( - typeof n == "string", - "nodeName has to be a string, got '".concat(n, "'"), - ), - (n = n.toLowerCase())); - var o = null; - n === "input" && - ((o = ( - e.type || - (e.attributes && e.attributes.type) || - "" - ).toLowerCase()), - ti().includes(o) || (o = "text")); - var u = de({}, e, { nodeType: i, nodeName: n }); - return (o && (u.type = o), delete u.attributes, Object.freeze(u)); - } - function n_(e) { - var t = e.attributes, - r = t === void 0 ? {} : t, - a = { htmlFor: "for", className: "class" }; - return Object.keys(r).reduce(function (n, i) { - var o = r[i]; - if ( - (me( - O(o) !== "object" || o === null, - "expects attributes not to be an object, '".concat( - i, - "' was", - ), - ), - o !== void 0) - ) { - var u = a[i] || i; - n[u] = o !== null ? String(o) : null; - } - return n; - }, {}); - } - var af = t_; - function i_(e, t) { - if (((e = e || function () {}), (t = t || x.log), !x._audit)) - throw new Error("No audit configured"); - var r = x.utils.queue(), - a = []; - Object.keys(x.plugins).forEach(function (i) { - r.defer(function (o) { - var u = function (l) { - (a.push(l), o()); - }; - try { - x.plugins[i].cleanup(o, u); - } catch (s) { - u(s); - } - }); - }); - var n = x.utils.getFlattenedTree(L.body); - (x.utils - .querySelectorAll(n, "iframe, frame") - .forEach(function (i) { - r.defer(function (o, u) { - return x.utils.sendCommandToFrame( - i.actualNode, - { command: "cleanup-plugin" }, - o, - u, - ); - }); - }), - r - .then(function (i) { - a.length === 0 ? e(i) : t(a); - }) - .catch(t)); - } - var nf = i_, - Pa = {}, - of; - function uf(e) { - return Pa.hasOwnProperty(e); - } - function Ou(e) { - return typeof e == "string" && Pa[e] - ? Pa[e] - : typeof e == "function" - ? e - : of; - } - function o_(e, t, r) { - ((Pa[e] = t), r && (of = t)); - } - function u_(e) { - var t = x._audit; - if (!t) throw new Error("No audit configured"); - if (e.axeVersion || e.ver) { - var r = e.axeVersion || e.ver; - if (!/^\d+\.\d+\.\d+(-canary)?/.test(r)) - throw new Error("Invalid configured version ".concat(r)); - var a = r.split("-"), - n = $(a, 2), - i = n[0], - o = n[1], - u = i.split(".").map(Number), - s = $(u, 3), - l = s[0], - c = s[1], - d = s[2], - f = x.version.split("-"), - p = $(f, 2), - m = p[0], - h = p[1], - v = m.split(".").map(Number), - g = $(v, 3), - b = g[0], - D = g[1], - w = g[2]; - if ( - l !== b || - D < c || - (D === c && w < d) || - (l === b && c === D && d === w && o && o !== h) - ) - throw new Error( - "Configured version " - .concat(r, " is not compatible with current axe version ") - .concat(x.version), - ); - } - if ( - (e.reporter && - (typeof e.reporter == "function" || uf(e.reporter)) && - (t.reporter = e.reporter), - e.checks) - ) { - if (!Array.isArray(e.checks)) - throw new TypeError("Checks property must be an array"); - e.checks.forEach(function (F) { - if (!F.id) - throw new TypeError( - "Configured check ".concat( - JSON.stringify(F), - " is invalid. Checks must be an object with at least an id property", - ), - ); - t.addCheck(F); - }); - } - var _ = []; - if (e.rules) { - if (!Array.isArray(e.rules)) - throw new TypeError("Rules property must be an array"); - e.rules.forEach(function (F) { - if (!F.id) - throw new TypeError( - "Configured rule ".concat( - JSON.stringify(F), - " is invalid. Rules must be an object with at least an id property", - ), - ); - (_.push(F.id), t.addRule(F)); - }); - } - if ( - (e.disableOtherRules && - t.rules.forEach(function (F) { - _.includes(F.id) === !1 && (F.enabled = !1); - }), - typeof e.branding < "u" - ? t.setBranding(e.branding) - : t._constructHelpUrls(), - e.tagExclude && (t.tagExclude = e.tagExclude), - e.locale && t.applyLocale(e.locale), - e.standards && Hb(e.standards), - e.noHtml && (t.noHtml = !0), - e.allowedOrigins) - ) { - if (!Array.isArray(e.allowedOrigins)) - throw new TypeError( - "Allowed origins property must be an array", - ); - if (e.allowedOrigins.includes("*")) - throw new Error( - '"*" is not allowed. Use "'.concat( - se.allOrigins, - '" instead', - ), - ); - t.setAllowedOrigins(e.allowedOrigins); - } - } - var s_ = u_; - function l_(e) { - Et.updateMessenger(e); - } - function c_(e) { - e = e || []; - var t = e.length - ? x._audit.rules.filter(function (a) { - return !!e.filter(function (n) { - return a.tags.indexOf(n) !== -1; - }).length; - }) - : x._audit.rules, - r = x._audit.data.rules || {}; - return t.map(function (a) { - var n = r[a.id] || {}; - return { - ruleId: a.id, - description: n.description, - help: n.help, - helpUrl: n.helpUrl, - tags: a.tags, - actIds: a.actIds, - }; - }); - } - var d_ = c_; - function f_(e, t, r) { - var a = [ - "SCRIPT", - "HEAD", - "TITLE", - "NOSCRIPT", - "STYLE", - "TEMPLATE", - ]; - if (!a.includes(e.nodeName.toUpperCase()) && _a(r)) { - var n = E.getComputedStyle(e); - if (n.getPropertyValue("display") === "none") return; - if (n.getPropertyValue("visibility") === "hidden") { - var i = Ue(e), - o = i && E.getComputedStyle(i); - if (!o || o.getPropertyValue("visibility") !== "hidden") - return; - } - } - return !0; - } - var p_ = f_, - sf = {}; - Dt(sf, { - getAllCells: function () { - return Mu; - }, - getCellPosition: function () { - return _n; - }, - getHeaders: function () { - return ai; - }, - getScope: function () { - return Ao; - }, - isColumnHeader: function () { - return jr; - }, - isDataCell: function () { - return cf; - }, - isDataTable: function () { - return ni; - }, - isHeader: function () { - return y_; - }, - isRowHeader: function () { - return zr; - }, - toArray: function () { - return Wt; - }, - toGrid: function () { - return Wt; - }, - traverse: function () { - return Iu; - }, - }); - function m_(e) { - var t, - r, - a, - n, - i = []; - for (t = 0, a = e.rows.length; t < a; t++) - for (r = 0, n = e.rows[t].cells.length; r < n; r++) - i.push(e.rows[t].cells[r]); - return i; - } - var Mu = m_; - function lf(e, t, r) { - for ( - var a = e === "row" ? "_rowHeaders" : "_colHeaders", - n = e === "row" ? zr : jr, - i = r[t.y][t.x], - o = i.colSpan - 1, - u = i.getAttribute("rowspan"), - s = - parseInt(u) === 0 || i.rowspan === 0 ? r.length : i.rowSpan, - l = s - 1, - c = t.y + l, - d = t.x + o, - f = e === "row" ? t.y : 0, - p = e === "row" ? 0 : t.x, - m, - h = [], - v = c; - v >= f && !m; - v-- - ) - for (var g = d; g >= p; g--) { - var b = r[v] ? r[v][g] : void 0; - if (b) { - var D = x.utils.getNodeFromTree(b); - if (D[a]) { - m = D[a]; - break; - } - h.push(b); - } - } - return ( - (m = (m || []).concat(h.filter(n))), - h.forEach(function (w) { - var _ = x.utils.getNodeFromTree(w); - _[a] = m; - }), - m - ); - } - function h_(e, t) { - if (e.getAttribute("headers")) { - var r = Ot(e, "headers"); - if ( - r.filter(function (o) { - return o; - }).length - ) - return r; - } - t || (t = Wt(Lr(e, "table"))); - var a = _n(e, t), - n = lf("row", a, t), - i = lf("col", a, t); - return [].concat(n, i).reverse(); - } - var ai = h_; - function v_(e) { - if (!e.children.length && !e.textContent.trim()) return !1; - var t = e.getAttribute("role"); - return qr(t) - ? ["cell", "gridcell"].includes(t) - : e.nodeName.toUpperCase() === "TD"; - } - var cf = v_; - function g_(e) { - var t = (e.getAttribute("role") || "").toLowerCase(); - if ((t === "presentation" || t === "none") && !Ne(e)) return !1; - if ( - e.getAttribute("contenteditable") === "true" || - Lr(e, '[contenteditable="true"]') || - t === "grid" || - t === "treegrid" || - t === "table" || - At(t) === "landmark" - ) - return !0; - if (e.getAttribute("datatable") === "0") return !1; - if (e.getAttribute("summary") || e.tHead || e.tFoot || e.caption) - return !0; - for (var r = 0, a = e.children.length; r < a; r++) - if (e.children[r].nodeName.toUpperCase() === "COLGROUP") - return !0; - for ( - var n = 0, i = e.rows.length, o, u, s = !1, l = 0; - l < i; - l++ - ) { - o = e.rows[l]; - for (var c = 0, d = o.cells.length; c < d; c++) { - if ( - ((u = o.cells[c]), - u.nodeName.toUpperCase() === "TH" || - (!s && - (u.offsetWidth !== u.clientWidth || - u.offsetHeight !== u.clientHeight) && - (s = !0), - u.getAttribute("scope") || - u.getAttribute("headers") || - u.getAttribute("abbr")) || - ["columnheader", "rowheader"].includes( - (u.getAttribute("role") || "").toLowerCase(), - ) || - (u.children.length === 1 && - u.children[0].nodeName.toUpperCase() === "ABBR")) - ) - return !0; - n++; - } - } - if (e.getElementsByTagName("table").length || i < 2) return !1; - var f = e.rows[Math.ceil(i / 2)]; - if (f.cells.length === 1 && f.cells[0].colSpan === 1) return !1; - if (f.cells.length >= 5 || s) return !0; - for (var p, m, h = 0; h < i; h++) { - if ( - ((o = e.rows[h]), - (p && - p !== - E.getComputedStyle(o).getPropertyValue( - "background-color", - )) || - ((p = - E.getComputedStyle(o).getPropertyValue( - "background-color", - )), - m && - m !== - E.getComputedStyle(o).getPropertyValue( - "background-image", - ))) - ) - return !0; - m = E.getComputedStyle(o).getPropertyValue("background-image"); - } - return i >= 20 - ? !0 - : !( - lo(e).width > pn(E).width * 0.95 || - n < 10 || - e.querySelector("object, embed, iframe, applet") - ); - } - var ni = g_; - function b_(e) { - if (jr(e) || zr(e)) return !0; - if (e.getAttribute("id")) { - var t = Oe(e.getAttribute("id")); - return !!L.querySelector('[headers~="'.concat(t, '"]')); - } - return !1; - } - var y_ = b_; - function df(e, t, r, a) { - var n, - i = r[t.y] ? r[t.y][t.x] : void 0; - return i - ? typeof a == "function" && ((n = a(i, t, r)), n === !0) - ? [i] - : ((n = df(e, { x: t.x + e.x, y: t.y + e.y }, r, a)), - n.unshift(i), - n) - : []; - } - function w_(e, t, r, a) { - if ( - (Array.isArray(t) && ((a = r), (r = t), (t = { x: 0, y: 0 })), - typeof e == "string") - ) - switch (e) { - case "left": - e = { x: -1, y: 0 }; - break; - case "up": - e = { x: 0, y: -1 }; - break; - case "right": - e = { x: 1, y: 0 }; - break; - case "down": - e = { x: 0, y: 1 }; - break; - } - return df(e, { x: t.x + e.x, y: t.y + e.y }, r, a); - } - var Iu = w_; - function D_(e) { - var t = Mu(e), - r = this, - a = []; - t.forEach(function (u) { - var s = u.getAttribute("headers"); - s && (a = a.concat(s.split(/\s+/))); - var l = u.getAttribute("aria-labelledby"); - l && (a = a.concat(l.split(/\s+/))); - }); - var n = t.filter(function (u) { - return re(u.textContent) === "" - ? !1 - : u.nodeName.toUpperCase() === "TH" || - ["rowheader", "columnheader"].indexOf( - u.getAttribute("role"), - ) !== -1; - }), - i = Wt(e), - o = !0; - return ( - n.forEach(function (u) { - if ( - !(u.getAttribute("id") && a.includes(u.getAttribute("id"))) - ) { - var s = _n(u, i), - l = !1; - (jr(u) && - (l = Iu("down", s, i).find(function (c) { - return !jr(c) && ai(c, i).includes(u); - })), - !l && - zr(u) && - (l = Iu("right", s, i).find(function (c) { - return !zr(c) && ai(c, i).includes(u); - })), - l || r.relatedNodes(u), - (o = o && l)); - } - }), - o ? !0 : void 0 - ); - } - var __ = D_; - function x_(e) { - for (var t = [], r = [], a = [], n = 0; n < e.rows.length; n++) - for (var i = e.rows[n], o = 0; o < i.cells.length; o++) - t.push(i.cells[o]); - var u = t - .filter(function (s) { - return s.getAttribute("id"); - }) - .map(function (s) { - return s.getAttribute("id"); - }); - if ( - (t.forEach(function (s) { - var l = !1, - c = !1; - if (!(!s.hasAttribute("headers") || !Re(s))) { - var d = s.getAttribute("headers").trim(); - if (!d) return r.push(s); - var f = Ze(d); - f.length !== 0 && - (s.getAttribute("id") && - (l = f.indexOf(s.getAttribute("id").trim()) !== -1), - (c = f.some(function (p) { - return !u.includes(p); - })), - (l || c) && a.push(s)); - } - }), - a.length > 0) - ) - return (this.relatedNodes(a), !1); - if (r.length) { - this.relatedNodes(r); - return; - } - return !0; - } - var ff = {}; - Dt(ff, { - allowedAttr: function () { - return pf; - }, - arialabelText: function () { - return ba; - }, - arialabelledbyText: function () { - return ga; - }, - getAccessibleRefs: function () { - return Pu; - }, - getElementUnallowedRoles: function () { - return vf; - }, - getExplicitRole: function () { - return De; - }, - getImplicitRole: function () { - return Mt; - }, - getOwnedVirtual: function () { - return wa; - }, - getRole: function () { - return ce; - }, - getRoleType: function () { - return At; - }, - getRolesByType: function () { - return P_; - }, - getRolesWithNameFromContents: function () { - return B_; - }, - implicitNodes: function () { - return j_; - }, - implicitRole: function () { - return Mt; - }, - isAccessibleRef: function () { - return ii; - }, - isAriaRoleAllowedOnElement: function () { - return hf; - }, - isComboboxPopup: function () { - return Lu; - }, - isUnsupportedRole: function () { - return xo; - }, - isValidRole: function () { - return qr; - }, - label: function () { - return wf; - }, - labelVirtual: function () { - return An; - }, - lookupTable: function () { - return bf; - }, - namedFromContents: function () { - return Rc; - }, - requiredAttr: function () { - return Df; - }, - requiredContext: function () { - return Bu; - }, - requiredOwned: function () { - return qu; - }, - validateAttr: function () { - return oi; - }, - validateAttrValue: function () { - return _f; - }, - }); - function E_(e) { - var t = he.ariaRoles[e], - r = ne(Dr()); - return ( - t && - (t.allowedAttrs && r.push.apply(r, ne(t.allowedAttrs)), - t.requiredAttrs && r.push.apply(r, ne(t.requiredAttrs))), - r - ); - } - var pf = E_, - A_ = /^idrefs?$/; - function mf(e, t, r) { - if (e.hasAttribute) { - if ( - e.nodeName.toUpperCase() === "LABEL" && - e.hasAttribute("for") - ) { - var a = e.getAttribute("for"); - t.has(a) ? t.get(a).push(e) : t.set(a, [e]); - } - for (var n = 0; n < r.length; ++n) { - var i = r[n], - o = re(e.getAttribute(i) || ""); - if (o) { - var u = Ce(Ze(o)), - s; - try { - for (u.s(); !(s = u.n()).done; ) { - var l = s.value; - t.has(l) ? t.get(l).push(e) : t.set(l, [e]); - } - } catch (d) { - u.e(d); - } finally { - u.f(); - } - } - } - } - for (var c = 0; c < e.childNodes.length; c++) - e.childNodes[c].nodeType === 1 && mf(e.childNodes[c], t, r); - } - function C_(e) { - var t; - e = e.actualNode || e; - var r = Xe(e); - r = r.documentElement || r; - var a = ue.get("idRefsByRoot", function () { - return new Map(); - }), - n = a.get(r); - if (!n) { - ((n = new Map()), a.set(r, n)); - var i = Object.keys(he.ariaAttrs).filter(function (o) { - var u = he.ariaAttrs[o].type; - return A_.test(u); - }); - mf(r, n, i); - } - return (t = n.get(e.id)) !== null && t !== void 0 ? t : []; - } - var Pu = C_; - function F_(e, t) { - var r = e instanceof $e ? e : le(e), - a = Mt(r), - n = xr(r); - return Array.isArray(n.allowedRoles) - ? n.allowedRoles.includes(t) - : t === a - ? !1 - : !!n.allowedRoles; - } - var hf = F_, - T_ = [ - "doc-backlink", - "doc-biblioentry", - "doc-biblioref", - "doc-cover", - "doc-endnote", - "doc-glossref", - "doc-noteref", - ], - R_ = { header: "banner", footer: "contentinfo" }; - function S_(e) { - var t = []; - if (!e) return t; - if (e.hasAttr("role")) { - var r = Ze(e.attr("role").toLowerCase()); - t = t.concat(r); - } - return t.filter(function (a) { - return qr(a); - }); - } - function k_(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : !0, - r = we(e), - a = r.vNode; - if (!xu(a)) return []; - var n = a.props.nodeName, - i = Mt(a) || R_[n], - o = S_(a); - return o.filter(function (u) { - return !O_(u, a, t, i); - }); - } - function O_(e, t, r, a) { - return r && e === a - ? !0 - : T_.includes(e) && At(e) !== a - ? !1 - : hf(t, e); - } - var vf = k_; - function M_(e) { - return Object.keys(he.ariaRoles).filter(function (t) { - return he.ariaRoles[t].type === e; - }); - } - var Ur = M_; - function I_(e) { - return Ur(e); - } - var P_ = I_; - function N_() { - return ue.get("ariaRolesNameFromContent", function () { - return Object.keys(he.ariaRoles).filter(function (e) { - return he.ariaRoles[e].nameFromContent; - }); - }); - } - var Nu = N_; - function L_() { - return Nu(); - } - var B_ = L_, - gf = function (t) { - return t === null; - }, - Je = function (t) { - return t !== null; - }, - Kt = {}; - ((Kt.attributes = { - "aria-activedescendant": { - type: "idref", - allowEmpty: !0, - unsupported: !1, - }, - "aria-atomic": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-autocomplete": { - type: "nmtoken", - values: ["inline", "list", "both", "none"], - unsupported: !1, - }, - "aria-busy": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-checked": { - type: "nmtoken", - values: ["true", "false", "mixed", "undefined"], - unsupported: !1, - }, - "aria-colcount": { type: "int", unsupported: !1 }, - "aria-colindex": { type: "int", unsupported: !1 }, - "aria-colspan": { type: "int", unsupported: !1 }, - "aria-controls": { - type: "idrefs", - allowEmpty: !0, - unsupported: !1, - }, - "aria-current": { - type: "nmtoken", - allowEmpty: !0, - values: [ - "page", - "step", - "location", - "date", - "time", - "true", - "false", - ], - unsupported: !1, - }, - "aria-describedby": { - type: "idrefs", - allowEmpty: !0, - unsupported: !1, - }, - "aria-describedat": { unsupported: !0, unstandardized: !0 }, - "aria-details": { - type: "idref", - allowEmpty: !0, - unsupported: !1, - }, - "aria-disabled": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-dropeffect": { - type: "nmtokens", - values: [ - "copy", - "move", - "reference", - "execute", - "popup", - "none", - ], - unsupported: !1, - }, - "aria-errormessage": { - type: "idref", - allowEmpty: !0, - unsupported: !1, - }, - "aria-expanded": { - type: "nmtoken", - values: ["true", "false", "undefined"], - unsupported: !1, - }, - "aria-flowto": { - type: "idrefs", - allowEmpty: !0, - unsupported: !1, - }, - "aria-grabbed": { - type: "nmtoken", - values: ["true", "false", "undefined"], - unsupported: !1, - }, - "aria-haspopup": { - type: "nmtoken", - allowEmpty: !0, - values: [ - "true", - "false", - "menu", - "listbox", - "tree", - "grid", - "dialog", - ], - unsupported: !1, - }, - "aria-hidden": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-invalid": { - type: "nmtoken", - allowEmpty: !0, - values: ["true", "false", "spelling", "grammar"], - unsupported: !1, - }, - "aria-keyshortcuts": { - type: "string", - allowEmpty: !0, - unsupported: !1, - }, - "aria-label": { type: "string", allowEmpty: !0, unsupported: !1 }, - "aria-labelledby": { - type: "idrefs", - allowEmpty: !0, - unsupported: !1, - }, - "aria-level": { type: "int", unsupported: !1 }, - "aria-live": { - type: "nmtoken", - values: ["off", "polite", "assertive"], - unsupported: !1, - }, - "aria-modal": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-multiline": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-multiselectable": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-orientation": { - type: "nmtoken", - values: ["horizontal", "vertical"], - unsupported: !1, - }, - "aria-owns": { type: "idrefs", allowEmpty: !0, unsupported: !1 }, - "aria-placeholder": { - type: "string", - allowEmpty: !0, - unsupported: !1, - }, - "aria-posinset": { type: "int", unsupported: !1 }, - "aria-pressed": { - type: "nmtoken", - values: ["true", "false", "mixed", "undefined"], - unsupported: !1, - }, - "aria-readonly": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-relevant": { - type: "nmtokens", - values: ["additions", "removals", "text", "all"], - unsupported: !1, - }, - "aria-required": { - type: "boolean", - values: ["true", "false"], - unsupported: !1, - }, - "aria-roledescription": { - type: "string", - allowEmpty: !0, - unsupported: !1, - }, - "aria-rowcount": { type: "int", unsupported: !1 }, - "aria-rowindex": { type: "int", unsupported: !1 }, - "aria-rowspan": { type: "int", unsupported: !1 }, - "aria-selected": { - type: "nmtoken", - values: ["true", "false", "undefined"], - unsupported: !1, - }, - "aria-setsize": { type: "int", unsupported: !1 }, - "aria-sort": { - type: "nmtoken", - values: ["ascending", "descending", "other", "none"], - unsupported: !1, - }, - "aria-valuemax": { type: "decimal", unsupported: !1 }, - "aria-valuemin": { type: "decimal", unsupported: !1 }, - "aria-valuenow": { type: "decimal", unsupported: !1 }, - "aria-valuetext": { type: "string", unsupported: !1 }, - }), - (Kt.globalAttributes = [ - "aria-atomic", - "aria-busy", - "aria-controls", - "aria-current", - "aria-describedby", - "aria-details", - "aria-disabled", - "aria-dropeffect", - "aria-flowto", - "aria-grabbed", - "aria-haspopup", - "aria-hidden", - "aria-invalid", - "aria-keyshortcuts", - "aria-label", - "aria-labelledby", - "aria-live", - "aria-owns", - "aria-relevant", - "aria-roledescription", - ]), - (Kt.role = { - alert: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - alertdialog: { - type: "widget", - attributes: { - allowed: [ - "aria-expanded", - "aria-modal", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["dialog", "section"], - }, - application: { - type: "landmark", - attributes: { - allowed: [ - "aria-expanded", - "aria-errormessage", - "aria-activedescendant", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: [ - "article", - "audio", - "embed", - "iframe", - "object", - "section", - "svg", - "video", - ], - }, - article: { - type: "structure", - attributes: { - allowed: [ - "aria-expanded", - "aria-posinset", - "aria-setsize", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["article"], - unsupported: !1, - }, - banner: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["header"], - unsupported: !1, - allowedElements: ["section"], - }, - button: { - type: "widget", - attributes: { - allowed: [ - "aria-expanded", - "aria-pressed", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: [ - "button", - 'input[type="button"]', - 'input[type="image"]', - 'input[type="reset"]', - 'input[type="submit"]', - "summary", - ], - unsupported: !1, - allowedElements: [ - { nodeName: "a", attributes: { href: Je } }, - ], - }, - cell: { - type: "structure", - attributes: { - allowed: [ - "aria-colindex", - "aria-colspan", - "aria-rowindex", - "aria-rowspan", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["row"], - implicit: ["td", "th"], - unsupported: !1, - }, - checkbox: { - type: "widget", - attributes: { - allowed: [ - "aria-checked", - "aria-required", - "aria-readonly", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: ['input[type="checkbox"]'], - unsupported: !1, - allowedElements: ["button"], - }, - columnheader: { - type: "structure", - attributes: { - allowed: [ - "aria-colindex", - "aria-colspan", - "aria-expanded", - "aria-rowindex", - "aria-rowspan", - "aria-required", - "aria-readonly", - "aria-selected", - "aria-sort", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["row"], - implicit: ["th"], - unsupported: !1, - }, - combobox: { - type: "composite", - attributes: { - allowed: [ - "aria-autocomplete", - "aria-required", - "aria-activedescendant", - "aria-orientation", - "aria-errormessage", - ], - required: ["aria-expanded"], - }, - owned: { - all: ["listbox", "tree", "grid", "dialog", "textbox"], - }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: [ - { - nodeName: "input", - properties: { - type: ["text", "search", "tel", "url", "email"], - }, - }, - ], - }, - command: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - complementary: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["aside"], - unsupported: !1, - allowedElements: ["section"], - }, - composite: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - contentinfo: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["footer"], - unsupported: !1, - allowedElements: ["section"], - }, - definition: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["dd", "dfn"], - unsupported: !1, - }, - dialog: { - type: "widget", - attributes: { - allowed: [ - "aria-expanded", - "aria-modal", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["dialog"], - unsupported: !1, - allowedElements: ["section"], - }, - directory: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - document: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["body"], - unsupported: !1, - allowedElements: [ - "article", - "embed", - "iframe", - "object", - "section", - "svg", - ], - }, - "doc-abstract": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-acknowledgments": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-afterword": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-appendix": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-backlink": { - type: "link", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - unsupported: !1, - allowedElements: [ - { nodeName: "a", attributes: { href: Je } }, - ], - }, - "doc-biblioentry": { - type: "listitem", - attributes: { - allowed: [ - "aria-expanded", - "aria-level", - "aria-posinset", - "aria-setsize", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: ["doc-bibliography"], - unsupported: !1, - allowedElements: ["li"], - }, - "doc-bibliography": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: { one: ["doc-biblioentry"] }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-biblioref": { - type: "link", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - unsupported: !1, - allowedElements: [ - { nodeName: "a", attributes: { href: Je } }, - ], - }, - "doc-chapter": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-colophon": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-conclusion": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-cover": { - type: "img", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - }, - "doc-credit": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-credits": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-dedication": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-endnote": { - type: "listitem", - attributes: { - allowed: [ - "aria-expanded", - "aria-level", - "aria-posinset", - "aria-setsize", - "aria-errormessage", - ], - }, - owned: null, - namefrom: ["author"], - context: ["doc-endnotes"], - unsupported: !1, - allowedElements: ["li"], - }, - "doc-endnotes": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: { one: ["doc-endnote"] }, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-epigraph": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - }, - "doc-epilogue": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-errata": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-example": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["aside", "section"], - }, - "doc-footnote": { - type: "section", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["aside", "footer", "header"], - }, - "doc-foreword": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-glossary": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: ["term", "definition"], - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["dl"], - }, - "doc-glossref": { - type: "link", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author", "contents"], - context: null, - unsupported: !1, - allowedElements: [ - { nodeName: "a", attributes: { href: Je } }, - ], - }, - "doc-index": { - type: "navigation", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["nav", "section"], - }, - "doc-introduction": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-noteref": { - type: "link", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author", "contents"], - context: null, - unsupported: !1, - allowedElements: [ - { nodeName: "a", attributes: { href: Je } }, - ], - }, - "doc-notice": { - type: "note", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-pagebreak": { - type: "separator", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["hr"], - }, - "doc-pagelist": { - type: "navigation", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["nav", "section"], - }, - "doc-part": { - type: "landmark", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-preface": { - type: "landmark", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-prologue": { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-pullquote": { - type: "none", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["aside", "section"], - }, - "doc-qna": { - type: "section", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - "doc-subtitle": { - type: "sectionhead", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: { - nodeName: ["h1", "h2", "h3", "h4", "h5", "h6"], - }, - }, - "doc-tip": { - type: "note", - attributes: { allowed: ["aria-expanded"] }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["aside"], - }, - "doc-toc": { - type: "navigation", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - namefrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["nav", "section"], - }, - feed: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: { one: ["article"] }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["article", "aside", "section"], - }, - figure: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: ["figure"], - unsupported: !1, - }, - form: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["form"], - unsupported: !1, - }, - grid: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-colcount", - "aria-level", - "aria-multiselectable", - "aria-readonly", - "aria-rowcount", - "aria-errormessage", - ], - }, - owned: { one: ["rowgroup", "row"] }, - nameFrom: ["author"], - context: null, - implicit: ["table"], - unsupported: !1, - }, - gridcell: { - type: "widget", - attributes: { - allowed: [ - "aria-colindex", - "aria-colspan", - "aria-expanded", - "aria-rowindex", - "aria-rowspan", - "aria-selected", - "aria-readonly", - "aria-required", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["row"], - implicit: ["td", "th"], - unsupported: !1, - }, - group: { - type: "structure", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["details", "optgroup"], - unsupported: !1, - allowedElements: [ - "dl", - "figcaption", - "fieldset", - "figure", - "footer", - "header", - "ol", - "ul", - ], - }, - heading: { - type: "structure", - attributes: { - required: ["aria-level"], - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: ["h1", "h2", "h3", "h4", "h5", "h6"], - unsupported: !1, - }, - img: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["img"], - unsupported: !1, - allowedElements: ["embed", "iframe", "object", "svg"], - }, - input: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - landmark: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - link: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: ["a[href]", "area[href]"], - unsupported: !1, - allowedElements: [ - "button", - { - nodeName: "input", - properties: { type: ["image", "button"] }, - }, - ], - }, - list: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: { all: ["listitem"] }, - nameFrom: ["author"], - context: null, - implicit: ["ol", "ul", "dl"], - unsupported: !1, - }, - listbox: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-multiselectable", - "aria-readonly", - "aria-required", - "aria-expanded", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: { all: ["option"] }, - nameFrom: ["author"], - context: null, - implicit: ["select"], - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - listitem: { - type: "structure", - attributes: { - allowed: [ - "aria-level", - "aria-posinset", - "aria-setsize", - "aria-expanded", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["list"], - implicit: ["li", "dt"], - unsupported: !1, - }, - log: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - main: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["main"], - unsupported: !1, - allowedElements: ["article", "section"], - }, - marquee: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - math: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["math"], - unsupported: !1, - }, - menu: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: { - one: ["menuitem", "menuitemradio", "menuitemcheckbox"], - }, - nameFrom: ["author"], - context: null, - implicit: ['menu[type="context"]'], - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - menubar: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: { - one: ["menuitem", "menuitemradio", "menuitemcheckbox"], - }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - menuitem: { - type: "widget", - attributes: { - allowed: [ - "aria-posinset", - "aria-setsize", - "aria-expanded", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["menu", "menubar"], - implicit: ['menuitem[type="command"]'], - unsupported: !1, - allowedElements: [ - "button", - "li", - { - nodeName: "iput", - properties: { type: ["image", "button"] }, - }, - { nodeName: "a", attributes: { href: Je } }, - ], - }, - menuitemcheckbox: { - type: "widget", - attributes: { - allowed: [ - "aria-checked", - "aria-posinset", - "aria-setsize", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["menu", "menubar"], - implicit: ['menuitem[type="checkbox"]'], - unsupported: !1, - allowedElements: [ - { nodeName: ["button", "li"] }, - { - nodeName: "input", - properties: { type: ["checkbox", "image", "button"] }, - }, - { nodeName: "a", attributes: { href: Je } }, - ], - }, - menuitemradio: { - type: "widget", - attributes: { - allowed: [ - "aria-checked", - "aria-selected", - "aria-posinset", - "aria-setsize", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["menu", "menubar"], - implicit: ['menuitem[type="radio"]'], - unsupported: !1, - allowedElements: [ - { nodeName: ["button", "li"] }, - { - nodeName: "input", - properties: { type: ["image", "button", "radio"] }, - }, - { nodeName: "a", attributes: { href: Je } }, - ], - }, - navigation: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["nav"], - unsupported: !1, - allowedElements: ["section"], - }, - none: { - type: "structure", - attributes: null, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: [ - { - nodeName: [ - "article", - "aside", - "dl", - "embed", - "figcaption", - "fieldset", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "header", - "hr", - "iframe", - "li", - "ol", - "section", - "ul", - ], - }, - { nodeName: "img", attributes: { alt: Je } }, - ], - }, - note: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["aside"], - }, - option: { - type: "widget", - attributes: { - allowed: [ - "aria-selected", - "aria-posinset", - "aria-setsize", - "aria-checked", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["listbox"], - implicit: ["option"], - unsupported: !1, - allowedElements: [ - { nodeName: ["button", "li"] }, - { - nodeName: "input", - properties: { type: ["checkbox", "button"] }, - }, - { nodeName: "a", attributes: { href: Je } }, - ], - }, - presentation: { - type: "structure", - attributes: null, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: [ - { - nodeName: [ - "article", - "aside", - "dl", - "embed", - "figcaption", - "fieldset", - "figure", - "footer", - "form", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "header", - "hr", - "iframe", - "li", - "ol", - "section", - "ul", - ], - }, - { nodeName: "img", attributes: { alt: Je } }, - ], - }, - progressbar: { - type: "widget", - attributes: { - allowed: [ - "aria-valuetext", - "aria-valuenow", - "aria-valuemax", - "aria-valuemin", - "aria-expanded", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["progress"], - unsupported: !1, - }, - radio: { - type: "widget", - attributes: { - allowed: [ - "aria-selected", - "aria-posinset", - "aria-setsize", - "aria-required", - "aria-errormessage", - "aria-checked", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: ['input[type="radio"]'], - unsupported: !1, - allowedElements: [ - { nodeName: ["button", "li"] }, - { - nodeName: "input", - properties: { type: ["image", "button"] }, - }, - ], - }, - radiogroup: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-required", - "aria-expanded", - "aria-readonly", - "aria-errormessage", - "aria-orientation", - ], - }, - owned: { all: ["radio"] }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: { nodeName: ["ol", "ul", "fieldset"] }, - }, - range: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - region: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: [ - "section[aria-label]", - "section[aria-labelledby]", - "section[title]", - ], - unsupported: !1, - allowedElements: { nodeName: ["article", "aside"] }, - }, - roletype: { type: "abstract", unsupported: !1 }, - row: { - type: "structure", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-colindex", - "aria-expanded", - "aria-level", - "aria-selected", - "aria-rowindex", - "aria-errormessage", - ], - }, - owned: { - one: ["cell", "columnheader", "rowheader", "gridcell"], - }, - nameFrom: ["author", "contents"], - context: ["rowgroup", "grid", "treegrid", "table"], - implicit: ["tr"], - unsupported: !1, - }, - rowgroup: { - type: "structure", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-errormessage", - ], - }, - owned: { all: ["row"] }, - nameFrom: ["author", "contents"], - context: ["grid", "table", "treegrid"], - implicit: ["tbody", "thead", "tfoot"], - unsupported: !1, - }, - rowheader: { - type: "structure", - attributes: { - allowed: [ - "aria-colindex", - "aria-colspan", - "aria-expanded", - "aria-rowindex", - "aria-rowspan", - "aria-required", - "aria-readonly", - "aria-selected", - "aria-sort", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["row"], - implicit: ["th"], - unsupported: !1, - }, - scrollbar: { - type: "widget", - attributes: { - required: ["aria-controls", "aria-valuenow"], - allowed: [ - "aria-valuetext", - "aria-orientation", - "aria-errormessage", - "aria-valuemax", - "aria-valuemin", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - }, - search: { - type: "landmark", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: { nodeName: ["aside", "form", "section"] }, - }, - searchbox: { - type: "widget", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-autocomplete", - "aria-multiline", - "aria-readonly", - "aria-required", - "aria-placeholder", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ['input[type="search"]'], - unsupported: !1, - allowedElements: { - nodeName: "input", - properties: { type: "text" }, - }, - }, - section: { - nameFrom: ["author", "contents"], - type: "abstract", - unsupported: !1, - }, - sectionhead: { - nameFrom: ["author", "contents"], - type: "abstract", - unsupported: !1, - }, - select: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - separator: { - type: "structure", - attributes: { - allowed: [ - "aria-expanded", - "aria-orientation", - "aria-valuenow", - "aria-valuemax", - "aria-valuemin", - "aria-valuetext", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["hr"], - unsupported: !1, - allowedElements: ["li"], - }, - slider: { - type: "widget", - attributes: { - allowed: [ - "aria-valuetext", - "aria-orientation", - "aria-readonly", - "aria-errormessage", - "aria-valuemax", - "aria-valuemin", - ], - required: ["aria-valuenow"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ['input[type="range"]'], - unsupported: !1, - }, - spinbutton: { - type: "widget", - attributes: { - allowed: [ - "aria-valuetext", - "aria-required", - "aria-readonly", - "aria-errormessage", - "aria-valuemax", - "aria-valuemin", - ], - required: ["aria-valuenow"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ['input[type="number"]'], - unsupported: !1, - allowedElements: { - nodeName: "input", - properties: { type: ["text", "tel"] }, - }, - }, - status: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ["output"], - unsupported: !1, - allowedElements: ["section"], - }, - structure: { type: "abstract", unsupported: !1 }, - switch: { - type: "widget", - attributes: { - allowed: ["aria-errormessage"], - required: ["aria-checked"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - unsupported: !1, - allowedElements: [ - "button", - { - nodeName: "input", - properties: { type: ["checkbox", "image", "button"] }, - }, - { nodeName: "a", attributes: { href: Je } }, - ], - }, - tab: { - type: "widget", - attributes: { - allowed: [ - "aria-selected", - "aria-expanded", - "aria-setsize", - "aria-posinset", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["tablist"], - unsupported: !1, - allowedElements: [ - { - nodeName: [ - "button", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "li", - ], - }, - { nodeName: "input", properties: { type: "button" } }, - { nodeName: "a", attributes: { href: Je } }, - ], - }, - table: { - type: "structure", - attributes: { - allowed: [ - "aria-colcount", - "aria-rowcount", - "aria-errormessage", - ], - }, - owned: { one: ["rowgroup", "row"] }, - nameFrom: ["author", "contents"], - context: null, - implicit: ["table"], - unsupported: !1, - }, - tablist: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-level", - "aria-multiselectable", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: { all: ["tab"] }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - tabpanel: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["section"], - }, - term: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - implicit: ["dt"], - unsupported: !1, - }, - textbox: { - type: "widget", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-autocomplete", - "aria-multiline", - "aria-readonly", - "aria-required", - "aria-placeholder", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: [ - 'input[type="text"]', - 'input[type="email"]', - 'input[type="password"]', - 'input[type="tel"]', - 'input[type="url"]', - "input:not([type])", - "textarea", - ], - unsupported: !1, - }, - timer: { - type: "widget", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author"], - context: null, - unsupported: !1, - }, - toolbar: { - type: "structure", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-expanded", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author"], - context: null, - implicit: ['menu[type="toolbar"]'], - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - tooltip: { - type: "structure", - attributes: { - allowed: ["aria-expanded", "aria-errormessage"], - }, - owned: null, - nameFrom: ["author", "contents"], - context: null, - unsupported: !1, - }, - tree: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-multiselectable", - "aria-required", - "aria-expanded", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: { all: ["treeitem"] }, - nameFrom: ["author"], - context: null, - unsupported: !1, - allowedElements: ["ol", "ul"], - }, - treegrid: { - type: "composite", - attributes: { - allowed: [ - "aria-activedescendant", - "aria-colcount", - "aria-expanded", - "aria-level", - "aria-multiselectable", - "aria-readonly", - "aria-required", - "aria-rowcount", - "aria-orientation", - "aria-errormessage", - ], - }, - owned: { one: ["rowgroup", "row"] }, - nameFrom: ["author"], - context: null, - unsupported: !1, - }, - treeitem: { - type: "widget", - attributes: { - allowed: [ - "aria-checked", - "aria-selected", - "aria-expanded", - "aria-level", - "aria-posinset", - "aria-setsize", - "aria-errormessage", - ], - }, - owned: null, - nameFrom: ["author", "contents"], - context: ["group", "tree"], - unsupported: !1, - allowedElements: [ - "li", - { nodeName: "a", attributes: { href: Je } }, - ], - }, - widget: { type: "abstract", unsupported: !1 }, - window: { - nameFrom: ["author"], - type: "abstract", - unsupported: !1, - }, - }), - (Kt.implicitHtmlRole = Fo), - (Kt.elementsAllowedNoRole = [ - { - nodeName: [ - "base", - "body", - "caption", - "col", - "colgroup", - "datalist", - "dd", - "details", - "dt", - "head", - "html", - "keygen", - "label", - "legend", - "main", - "map", - "math", - "meta", - "meter", - "noscript", - "optgroup", - "param", - "picture", - "progress", - "script", - "source", - "style", - "template", - "textarea", - "title", - "track", - ], - }, - { nodeName: "area", attributes: { href: Je } }, - { - nodeName: "input", - properties: { - type: [ - "color", - "data", - "datatime", - "file", - "hidden", - "month", - "number", - "password", - "range", - "reset", - "submit", - "time", - "week", - ], - }, - }, - { nodeName: "link", attributes: { href: Je } }, - { nodeName: "menu", attributes: { type: "context" } }, - { - nodeName: "menuitem", - attributes: { type: ["command", "checkbox", "radio"] }, - }, - { - nodeName: "select", - condition: function (t) { - return ( - t instanceof x.AbstractVirtualNode || - (t = x.utils.getNodeFromTree(t)), - Number(t.attr("size")) > 1 - ); - }, - properties: { multiple: !0 }, - }, - { - nodeName: [ - "clippath", - "cursor", - "defs", - "desc", - "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", - "filter", - "hatch", - "hatchpath", - "lineargradient", - "marker", - "mask", - "meshgradient", - "meshpatch", - "meshrow", - "metadata", - "mpath", - "pattern", - "radialgradient", - "solidcolor", - "stop", - "switch", - "view", - ], - }, - ]), - (Kt.elementsAllowedAnyRole = [ - { nodeName: "a", attributes: { href: gf } }, - { nodeName: "img", attributes: { alt: gf } }, - { - nodeName: [ - "abbr", - "address", - "canvas", - "div", - "p", - "pre", - "blockquote", - "ins", - "del", - "output", - "span", - "table", - "tbody", - "thead", - "tfoot", - "td", - "em", - "strong", - "small", - "s", - "cite", - "q", - "dfn", - "abbr", - "time", - "code", - "var", - "samp", - "kbd", - "sub", - "sup", - "i", - "b", - "u", - "mark", - "ruby", - "rt", - "rp", - "bdi", - "bdo", - "br", - "wbr", - "th", - "tr", - ], - }, - ]), - (Kt.evaluateRoleForElement = { - A: function (t) { - var r = t.node, - a = t.out; - return r.namespaceURI === "http://www.w3.org/2000/svg" - ? !0 - : r.href.length - ? a - : !0; - }, - AREA: function (t) { - var r = t.node; - return !r.href; - }, - BUTTON: function (t) { - var r = t.node, - a = t.role, - n = t.out; - return r.getAttribute("type") === "menu" - ? a === "menuitem" - : n; - }, - IMG: function (t) { - var r = t.node, - a = t.role, - n = t.out; - switch (r.alt) { - case null: - return n; - case "": - return a === "presentation" || a === "none"; - default: - return a !== "presentation" && a !== "none"; - } - }, - INPUT: function (t) { - var r = t.node, - a = t.role, - n = t.out; - switch (r.type) { - case "button": - case "image": - return n; - case "checkbox": - return a === "button" && r.hasAttribute("aria-pressed") - ? !0 - : n; - case "radio": - return a === "menuitemradio"; - case "text": - return ( - a === "combobox" || - a === "searchbox" || - a === "spinbutton" - ); - case "tel": - return a === "combobox" || a === "spinbutton"; - case "url": - case "search": - case "email": - return a === "combobox"; - default: - return !1; - } - }, - LI: function (t) { - var r = t.node, - a = t.out, - n = x.utils.matchesSelector(r, "ol li, ul li"); - return n ? a : !0; - }, - MENU: function (t) { - var r = t.node; - return r.getAttribute("type") !== "context"; - }, - OPTION: function (t) { - var r = t.node, - a = x.utils.matchesSelector( - r, - "select > option, datalist > option, optgroup > option", - ); - return !a; - }, - SELECT: function (t) { - var r = t.node, - a = t.role; - return !r.multiple && r.size <= 1 && a === "menu"; - }, - SVG: function (t) { - var r = t.node, - a = t.out; - return r.parentNode && - r.parentNode.namespaceURI === "http://www.w3.org/2000/svg" - ? !0 - : a; - }, - }), - (Kt.rolesOfType = { - widget: [ - "button", - "checkbox", - "dialog", - "gridcell", - "link", - "log", - "marquee", - "menuitem", - "menuitemcheckbox", - "menuitemradio", - "option", - "progressbar", - "radio", - "scrollbar", - "searchbox", - "slider", - "spinbutton", - "status", - "switch", - "tab", - "tabpanel", - "textbox", - "timer", - "tooltip", - "tree", - "treeitem", - ], - })); - var bf = Kt; - function q_(e) { - var t = null, - r = bf.role[e]; - return (r && r.implicit && (t = $t(r.implicit)), t); - } - var j_ = q_; - function z_(e) { - return !!Pu(e).length; - } - var ii = z_; - function Lu(e) { - var t, - r = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - a = r.popupRoles, - n = ce(e); - if ( - (((t = a) !== null && t !== void 0) || - (a = cc["aria-haspopup"].values), - !a.includes(n)) - ) - return !1; - var i = V_(e); - if (yf(i)) return !0; - var o = e.props.id; - if (!o) return !1; - if (!e.actualNode) - throw new Error( - "Unable to determine combobox popup without an actualNode", - ); - var u = pa(e.actualNode), - s = u.querySelectorAll( - '[aria-owns~="' - .concat( - o, - `"][role~="combobox"]:not(select), - [aria-controls~="`, - ) - .concat(o, '"][role~="combobox"]:not(select)'), - ); - return Array.from(s).some(yf); - } - var yf = function (t) { - return t && ce(t) === "combobox"; - }; - function V_(e) { - for (; (e = e.parent); ) - if (ce(e, { noPresentational: !0 }) !== null) return e; - return null; - } - function H_(e) { - return ((e = le(e)), An(e)); - } - var wf = H_; - function $_(e) { - var t = he.ariaRoles[e]; - return !t || !Array.isArray(t.requiredAttrs) - ? [] - : ne(t.requiredAttrs); - } - var Df = $_; - function U_(e) { - var t = he.ariaRoles[e]; - return !t || !Array.isArray(t.requiredContext) - ? null - : ne(t.requiredContext); - } - var Bu = U_; - function G_(e) { - var t = he.ariaRoles[e]; - return !t || !Array.isArray(t.requiredOwned) - ? null - : ne(t.requiredOwned); - } - var qu = G_; - function W_(e, t) { - e = e instanceof $e ? e : le(e); - var r, - a, - n = e.attr(t), - i = he.ariaAttrs[t]; - if (!i || (i.allowEmpty && (!n || n.trim() === ""))) return !0; - switch (i.type) { - case "boolean": - return ["true", "false"].includes(n.toLowerCase()); - case "nmtoken": - return ( - typeof n == "string" && i.values.includes(n.toLowerCase()) - ); - case "nmtokens": - return ( - (a = Ze(n)), - a.reduce(function (s, l) { - return s && i.values.includes(l); - }, a.length !== 0) - ); - case "idref": - try { - var o = Xe(e.actualNode); - return !!(n && o.getElementById(n)); - } catch { - throw new TypeError( - "Cannot resolve id references for partial DOM", - ); - } - case "idrefs": - return Ot(e, t).some(function (s) { - return !!s; - }); - case "string": - return n.trim() !== ""; - case "decimal": - return ( - (r = n.match(/^[-+]?([0-9]*)\.?([0-9]*)$/)), - !!(r && (r[1] || r[2])) - ); - case "int": - var u = typeof i.minValue < "u" ? i.minValue : -1 / 0; - return /^[-+]?[0-9]+$/.test(n) && parseInt(n) >= u; - } - } - var _f = W_; - function Y_(e) { - var t = he.ariaAttrs[e]; - return !!t; - } - var oi = Y_; - function K_(e) { - var t = [], - r = Mu(e), - a = Wt(e); - return ( - r.forEach(function (n) { - if (Fn(n) && cf(n) && !wf(n)) { - var i = ai(n, a).some(function (o) { - return o !== null && !!Fn(o); - }); - i || t.push(n); - } - }), - t.length ? (this.relatedNodes(t), !1) : !0 - ); - } - var X_ = K_; - function Z_(e, t) { - var r = e.getAttribute("scope").toLowerCase(); - return t.values.indexOf(r) !== -1; - } - var J_ = Z_, - Q_ = ex; - function ex(e, t, r) { - if (r.children !== void 0) { - var a = r.attr("summary"), - n = r.children.find(tx), - i = n ? re(tr(n)) : !1; - return !i || !a - ? !1 - : re(a).toLowerCase() === re(i).toLowerCase(); - } - } - function tx(e) { - return e.props.nodeName === "caption"; - } - function rx(e) { - return td(L) ? e.nodeName.toUpperCase() === "TH" : !0; - } - var ax = rx; - function nx(e) { - var t = Wt(e), - r = t[0]; - return t.length <= 1 || r.length <= 1 || e.rows.length <= 1 - ? !0 - : r.reduce(function (a, n, i) { - return a || (n !== r[i + 1] && r[i + 1] !== void 0); - }, !1); - } - var ix = nx; - function ox(e, t, r) { - if (r.children) { - var a = r.children.find(function (i) { - var o = i.props; - return o.nodeName === "title"; - }); - if (!a) return (this.data({ messageKey: "noTitle" }), !1); - try { - var n = tr(a, { includeHidden: !0 }).trim(); - if (n === "") - return (this.data({ messageKey: "emptyTitle" }), !1); - } catch { - return; - } - return !0; - } - } - var ux = ox, - xf = {}; - Dt(xf, { - getAriaRolesByType: function () { - return Ur; - }, - getAriaRolesSupportingNameFromContent: function () { - return Nu; - }, - getElementSpec: function () { - return xr; - }, - getElementsByContentType: function () { - return Eo; - }, - getGlobalAriaAttrs: function () { - return Dr; - }, - implicitHtmlRoles: function () { - return Fo; - }, - }); - function sx(e, t, r) { - var a = De(r); - if ( - ["presentation", "none"].includes(a) && - ["iframe", "frame"].includes(r.props.nodeName) && - r.hasAttr("title") - ) - return ( - this.data({ - messageKey: "iframe", - nodeName: r.props.nodeName, - }), - !1 - ); - var n = ce(r); - if (["presentation", "none"].includes(n)) - return (this.data({ role: n }), !0); - if (!["presentation", "none"].includes(a)) return !1; - var i = Dr().some(function (s) { - return r.hasAttr(s); - }), - o = Ne(r), - u; - return ( - i && !o - ? (u = "globalAria") - : !i && o - ? (u = "focusable") - : (u = "both"), - this.data({ messageKey: u, role: n }), - !1 - ); - } - function lx(e, t, r) { - var a = r.props.nodeName, - n = (r.attr("type") || "").toLowerCase(), - i = r.attr("value"); - return ( - i && this.data({ messageKey: "has-label" }), - a === "input" && ["submit", "reset"].includes(n) - ? i === null - : !1 - ); - } - var cx = lx; - function dx(e) { - return st(e); - } - var fx = dx; - function px(e, t) { - var r = t.cssProperty, - a = t.absoluteValues, - n = t.minValue, - i = t.maxValue, - o = t.normalValue, - u = o === void 0 ? 0 : o, - s = t.noImportant, - l = t.multiLineOnly; - if ( - (!s && e.style.getPropertyPriority(r) !== "important") || - (l && !nd(e)) - ) - return !0; - var c = {}; - (typeof n == "number" && (c.minValue = n), - typeof i == "number" && (c.maxValue = i)); - var d = e.style.getPropertyValue(r); - if (["inherit", "unset", "revert", "revert-layer"].includes(d)) - return (this.data(de({ value: d }, c)), !0); - var f = mx(e, { - absoluteValues: a, - cssProperty: r, - normalValue: u, - }); - if ((this.data(de({ value: f }, c)), typeof f == "number")) - return ( - (typeof n != "number" || f >= n) && - (typeof i != "number" || f <= i) - ); - } - function mx(e, t) { - var r = t.cssProperty, - a = t.absoluteValues, - n = t.normalValue, - i = E.getComputedStyle(e), - o = i.getPropertyValue(r); - if (o === "normal") return n; - var u = parseFloat(o); - if (a) return u; - var s = parseFloat(i.getPropertyValue("font-size")), - l = Math.round((u / s) * 100) / 100; - return isNaN(l) ? o : l; - } - function hx(e, t, r) { - var a = r.props.nodeName; - return ["img", "input", "area"].includes(a) - ? r.hasAttr("alt") - : !1; - } - var vx = hx; - function gx() {} - var bx = gx; - function yx() { - var e = L.title; - return !!re(e); - } - var wx = yx; - function Dx(e, t) { - var r = t.cssProperties.filter(function (a) { - if (e.style.getPropertyPriority(a) === "important") return a; - }); - return r.length > 0 ? (this.data(r), !1) : !0; - } - var _x = Dx; - function xx(e, t, r) { - try { - return !!re(ga(r)); - } catch { - return; - } - } - var Ex = xx; - function Ax(e, t, r) { - return !!re(ba(r)); - } - var Cx = Ax; - function Fx(e) { - var t = e.getAttribute("id").trim(); - if (!t) return !0; - var r = Xe(e), - a = Array.from( - r.querySelectorAll('[id="'.concat(Oe(t), '"]')), - ).filter(function (n) { - return n !== e; - }); - return ( - a.length && this.relatedNodes(a), - this.data(t), - a.length === 0 - ); - } - var Tx = Fx; - function Rx(e) { - var t = []; - return e.filter(function (r) { - return t.indexOf(r.data) === -1 ? (t.push(r.data), !0) : !1; - }); - } - var Sx = Rx; - function kx(e, t, r) { - var a = re(r.attr("title")).toLowerCase(); - return (this.data(a), !0); - } - var Ox = kx; - function Mx(e) { - var t = {}; - return ( - e.forEach(function (r) { - t[r.data] = t[r.data] !== void 0 ? ++t[r.data] : 0; - }), - e.forEach(function (r) { - r.result = !!t[r.data]; - }), - e - ); - } - var Ix = Mx; - function Px(e) { - var t = yo(e, "href"); - return t ? Re(t) || void 0 : !1; - } - var Nx = Px, - Lx = ["alert", "log", "status"]; - function Bx(e, t, r) { - this.data({ - isIframe: ["iframe", "frame"].includes(r.props.nodeName), - }); - var a = ue.get("regionlessNodes", function () { - return qx(t); - }); - return !a.includes(r); - } - function qx(e) { - var t = Ef(x._tree[0], e) - .map(function (r) { - for ( - ; - r.parent && - !r.parent._hasRegionDescendant && - r.parent.actualNode !== L.body; - ) - r = r.parent; - return r; - }) - .filter(function (r, a, n) { - return n.indexOf(r) === a; - }); - return t; - } - function Ef(e, t) { - var r = e.actualNode; - if ( - ce(e) === "button" || - zx(e, t) || - ["iframe", "frame"].includes(e.props.nodeName) || - (cu(e.actualNode) && yo(e.actualNode, "href")) || - !Re(r) - ) { - for (var a = e; a; ) - ((a._hasRegionDescendant = !0), (a = a.parent)); - return ["iframe", "frame"].includes(e.props.nodeName) - ? [e] - : []; - } else - return r !== L.body && Fn(r, !0) && !jx(e) - ? [e] - : e.children - .filter(function (n) { - var i = n.actualNode; - return i.nodeType === 1; - }) - .map(function (n) { - return Ef(n, t); - }) - .reduce(function (n, i) { - return n.concat(i); - }, []); - } - function jx(e) { - return ["none", "presentation"].includes(ce(e)) && !jo(e); - } - function zx(e, t) { - var r = e.actualNode, - a = ce(e), - n = (r.getAttribute("aria-live") || "").toLowerCase().trim(), - i = Ur("landmark"); - return !!( - ["assertive", "polite"].includes(n) || - Lx.includes(a) || - i.includes(a) || - (t.regionMatcher && ya(e, t.regionMatcher)) - ); - } - function Vx(e) { - var t = e.filter(function (r) { - return r.data.isIframe; - }); - return ( - e.forEach(function (r) { - if (!(r.result || r.node.ancestry.length === 1)) { - var a = r.node.ancestry.slice(0, -1), - n = Ce(t), - i; - try { - for (n.s(); !(i = n.n()).done; ) { - var o = i.value; - if (Au(a, o.node.ancestry)) { - r.result = o.result; - break; - } - } - } catch (u) { - n.e(u); - } finally { - n.f(); - } - } - }), - t.forEach(function (r) { - r.result || (r.result = !0); - }), - e - ); - } - var Hx = Vx; - function $x(e) { - switch (e) { - case "lighter": - return 100; - case "normal": - return 400; - case "bold": - return 700; - case "bolder": - return 900; - } - return ((e = parseInt(e)), isNaN(e) ? 400 : e); - } - function Ux(e) { - for ( - var t = e, r = e.textContent.trim(), a = r; - a === r && t !== void 0; - ) { - var n = -1; - if (((e = t), e.children.length === 0)) return e; - do (n++, (a = e.children[n].textContent.trim())); - while (a === "" && n + 1 < e.children.length); - t = e.children[n]; - } - return e; - } - function ju(e) { - var t = E.getComputedStyle(Ux(e)); - return { - fontWeight: $x(t.getPropertyValue("font-weight")), - fontSize: parseInt(t.getPropertyValue("font-size")), - isItalic: t.getPropertyValue("font-style") === "italic", - }; - } - function Af(e, t, r) { - return r.reduce(function (a, n) { - return ( - a || - ((!n.size || e.fontSize / n.size > t.fontSize) && - (!n.weight || e.fontWeight - n.weight > t.fontWeight) && - (!n.italic || (e.isItalic && !t.isItalic))) - ); - }, !1); - } - function Gx(e, t, r) { - var a = Array.from(e.parentNode.children), - n = a.indexOf(e); - t = t || {}; - var i = t.margins || [], - o = a.slice(n + 1).find(function (v) { - return v.nodeName.toUpperCase() === "P"; - }), - u = a - .slice(0, n) - .reverse() - .find(function (v) { - return v.nodeName.toUpperCase() === "P"; - }), - s = ju(e), - l = o ? ju(o) : null, - c = u ? ju(u) : null, - d = t.passLength, - f = t.failLength, - p = e.textContent.trim().length, - m = o?.textContent.trim().length; - if (p > m * d || !l || !Af(s, l, i)) return !0; - var h = Nr(r, "blockquote"); - if ( - !(h && h.nodeName.toUpperCase() === "BLOCKQUOTE") && - !(c && !Af(s, c, i)) && - !(p > m * f) - ) - return !1; - } - var Wx = Gx, - Yx = /[;,\s]/, - Kx = /^[0-9.]+$/; - function Xx(e, t, r) { - var a = t || {}, - n = a.minDelay, - i = a.maxDelay, - o = (r.attr("content") || "").trim(), - u = o.split(Yx), - s = $(u, 1), - l = s[0]; - if (!l.match(Kx)) return !0; - var c = parseFloat(l); - return ( - this.data({ redirectDelay: c }), - (typeof n == "number" && c <= t.minDelay) || - (typeof i == "number" && c > t.maxDelay) - ); - } - function Zx(e, t, r) { - var a = ft(r, "a[href]"); - return a.some(function (n) { - return /^#[^/!]/.test(n.attr("href")); - }); - } - var Jx = Zx, - Cf = {}; - Dt(Cf, { - aria: function () { - return ff; - }, - color: function () { - return Ff; - }, - dom: function () { - return oo; - }, - forms: function () { - return qf; - }, - matches: function () { - return ya; - }, - math: function () { - return $l; - }, - standards: function () { - return xf; - }, - table: function () { - return sf; - }, - text: function () { - return va; - }, - utils: function () { - return Bi; - }, - }); - var Ff = {}; - Dt(Ff, { - Color: function () { - return Se; - }, - centerPointOfRect: function () { - return eE; - }, - elementHasImage: function () { - return Tn; - }, - elementIsDistinct: function () { - return Rf; - }, - filteredRectStack: function () { - return nE; - }, - flattenColors: function () { - return qt; - }, - flattenShadowColors: function () { - return Vu; - }, - getBackgroundColor: function () { - return La; - }, - getBackgroundStack: function () { - return Hu; - }, - getContrast: function () { - return Gr; - }, - getForegroundColor: function () { - return li; - }, - getOwnBackgroundColor: function () { - return Ar; - }, - getRectStack: function () { - return Sf; - }, - getStackingContext: function () { - return Uu; - }, - getStrokeColorsFromShadows: function () { - return $u; - }, - getTextShadowColors: function () { - return si; - }, - hasValidContrastRatio: function () { - return CE; - }, - incompleteData: function () { - return We; - }, - parseTextShadows: function () { - return Mf; - }, - stackingContextToColor: function () { - return Na; - }, - }); - function Qx(e) { - if (!(e.left > E.innerWidth) && !(e.top > E.innerHeight)) { - var t = Math.min( - Math.ceil(e.left + e.width / 2), - E.innerWidth - 1, - ), - r = Math.min( - Math.ceil(e.top + e.height / 2), - E.innerHeight - 1, - ); - return { x: t, y: r }; - } - } - var eE = Qx; - function Tf(e) { - return e - .getPropertyValue("font-family") - .split(/[,;]/g) - .map(function (t) { - return t.trim().toLowerCase(); - }); - } - function tE(e, t) { - var r = E.getComputedStyle(e); - if (r.getPropertyValue("background-image") !== "none") return !0; - var a = ["border-bottom", "border-top", "outline"].reduce( - function (u, s) { - var l = new Se(); - return ( - l.parseString(r.getPropertyValue(s + "-color")), - u || - (r.getPropertyValue(s + "-style") !== "none" && - parseFloat(r.getPropertyValue(s + "-width")) > 0 && - l.alpha !== 0) - ); - }, - !1, - ); - if (a) return !0; - var n = E.getComputedStyle(t); - if (Tf(r)[0] !== Tf(n)[0]) return !0; - var i = [ - "text-decoration-line", - "text-decoration-style", - "font-weight", - "font-style", - "font-size", - ].reduce(function (u, s) { - return u || r.getPropertyValue(s) !== n.getPropertyValue(s); - }, !1), - o = r.getPropertyValue("text-decoration"); - return ( - o.split(" ").length < 3 && - (i = i || o !== n.getPropertyValue("text-decoration")), - i - ); - } - var Rf = tE; - function rE(e) { - var t = uc(e), - r = Bo(e); - return !r || r.length <= 1 - ? [t] - : r.some(function (a) { - return a === void 0; - }) - ? null - : (r.splice(0, 0, t), r); - } - var Sf = rE; - function aE(e) { - var t = Sf(e); - if (t && t.length === 1) return t[0]; - if (t && t.length > 1) { - var r = t.shift(), - a; - return ( - t.forEach(function (n, i) { - if (i !== 0) { - var o = t[i - 1], - u = t[i]; - a = - o.every(function (s, l) { - return s === u[l]; - }) || r.includes(e); - } - }), - a ? t[0] : (We.set("bgColor", "elmPartiallyObscuring"), null) - ); - } - return (We.set("bgColor", "outsideViewport"), null); - } - var nE = aE, - iE = ["hue", "saturation", "color", "luminosity"], - kf = { - normal: function (t, r) { - return r; - }, - multiply: function (t, r) { - return r * t; - }, - screen: function (t, r) { - return t + r - t * r; - }, - overlay: function (t, r) { - return this["hard-light"](r, t); - }, - darken: function (t, r) { - return Math.min(t, r); - }, - lighten: function (t, r) { - return Math.max(t, r); - }, - "color-dodge": function (t, r) { - return t === 0 ? 0 : r === 1 ? 1 : Math.min(1, t / (1 - r)); - }, - "color-burn": function (t, r) { - return t === 1 - ? 1 - : r === 0 - ? 0 - : 1 - Math.min(1, (1 - t) / r); - }, - "hard-light": function (t, r) { - return r <= 0.5 - ? this.multiply(t, 2 * r) - : this.screen(t, 2 * r - 1); - }, - "soft-light": function (t, r) { - if (r <= 0.5) return t - (1 - 2 * r) * t * (1 - t); - var a = - t <= 0.25 ? ((16 * t - 12) * t + 4) * t : Math.sqrt(t); - return t + (2 * r - 1) * (a - t); - }, - difference: function (t, r) { - return Math.abs(t - r); - }, - exclusion: function (t, r) { - return t + r - 2 * t * r; - }, - hue: function (t, r) { - return r - .setSaturation(t.getSaturation()) - .setLuminosity(t.getLuminosity()); - }, - saturation: function (t, r) { - return t - .setSaturation(r.getSaturation()) - .setLuminosity(t.getLuminosity()); - }, - color: function (t, r) { - return r.setLuminosity(t.getLuminosity()); - }, - luminosity: function (t, r) { - return t.setLuminosity(r.getLuminosity()); - }, - }; - function qt(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : "normal", - a = uE(t, e, r), - n = zu(e.red, e.alpha, t.red, t.alpha, a.r * 255), - i = zu(e.green, e.alpha, t.green, t.alpha, a.g * 255), - o = zu(e.blue, e.alpha, t.blue, t.alpha, a.b * 255), - u = oE(e.alpha + t.alpha * (1 - e.alpha), 0, 1); - if (u === 0) return new Se(n, i, o, u); - var s = Math.round(n / u), - l = Math.round(i / u), - c = Math.round(o / u); - return new Se(s, l, c, u); - } - function zu(e, t, r, a, n) { - return t * (1 - a) * e + t * a * n + (1 - t) * a * r; - } - function oE(e, t, r) { - return Math.min(Math.max(t, e), r); - } - function uE(e, t, r) { - if (iE.includes(r)) return kf[r](e, t); - var a = new Se(); - return ( - ["r", "g", "b"].forEach(function (n) { - a[n] = kf[r](e[n], t[n]); - }), - a - ); - } - function Vu(e, t) { - var r = e.alpha, - a = (1 - r) * t.red + r * e.red, - n = (1 - r) * t.green + r * e.green, - i = (1 - r) * t.blue + r * e.blue, - o = e.alpha + t.alpha * (1 - e.alpha); - return new Se(a, n, i, o); - } - function Hu(e) { - for ( - var t = Bo(e).map(function (n) { - return ((n = h1(n, e)), (n = sE(n)), n); - }), - r = 0; - r < t.length; - r++ - ) { - var a = t[r]; - if (a[0] !== e) return (We.set("bgColor", "bgOverlap"), null); - if (r !== 0 && !lE(a, t[0])) - return (We.set("bgColor", "elmPartiallyObscuring"), null); - } - return t[0] || null; - } - function sE(e) { - var t = e.indexOf(L.body), - r = e, - a = Ar(E.getComputedStyle(L.documentElement)); - if (t > 1 && a.alpha === 0 && !Tn(L.documentElement)) { - t > 1 && (r.splice(t, 1), r.push(L.body)); - var n = r.indexOf(L.documentElement); - n > 0 && (r.splice(n, 1), r.push(L.documentElement)); - } - return r; - } - function lE(e, t) { - if (e === t) return !0; - if (e === null || t === null || e.length !== t.length) return !1; - for (var r = 0; r < e.length; ++r) if (e[r] !== t[r]) return !1; - return !0; - } - var cE = 0.54, - ui = 0.5, - dE = 1.5, - Of = ["top", "right", "bottom", "left"]; - function $u(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.ignoreEdgeCount, - a = r === void 0 ? !1 : r, - n = fE(e), - i = Object.entries(n).map(function (o) { - var u = $(o, 2), - s = u[0], - l = u[1], - c = Of.filter(function (d) { - return l[d].length !== 0; - }).length; - return { colorStr: s, sides: l, edgeCount: c }; - }); - return !a && - i.some(function (o) { - var u = o.edgeCount; - return u > 1 && u < 4; - }) - ? null - : i.map(pE).filter(function (o) { - return o !== null; - }); - } - function fE(e) { - var t = {}, - r = Ce(e), - a; - try { - for (r.s(); !(a = r.n()).done; ) { - var n, - i = a.value, - o = i.colorStr, - u = i.pixels; - ((n = t[o]) !== null && n !== void 0) || - (t[o] = { top: [], right: [], bottom: [], left: [] }); - var s = t[o], - l = $(u, 2), - c = l[0], - d = l[1]; - (c > ui ? s.right.push(c) : -c > ui && s.left.push(-c), - d > ui ? s.bottom.push(d) : -d > ui && s.top.push(-d)); - } - } catch (f) { - r.e(f); - } finally { - r.f(); - } - return t; - } - function pE(e) { - var t = e.colorStr, - r = e.sides, - a = e.edgeCount; - if (a !== 4) return null; - var n = new Se(); - n.parseString(t); - var i = 0, - o = !0; - return ( - Of.forEach(function (u) { - ((i += r[u].length / 4), - o && - (o = r[u].every(function (s) { - return s > dE; - }))); - }), - o || (n.alpha = 1 - Math.pow(cE, i)), - n - ); - } - function Mf(e) { - var t = { pixels: [] }, - r = e.trim(), - a = [t]; - if (!r) return []; - for (; r; ) { - var n = - r.match(/^[a-z]+(\([^)]+\))?/i) || r.match(/^#[0-9a-f]+/i), - i = r.match(/^([0-9.-]+)px/i) || r.match(/^(0)/); - if (n) - (me( - !t.colorStr, - "Multiple colors identified in text-shadow: ".concat(e), - ), - (r = r.replace(n[0], "").trim()), - (t.colorStr = n[0])); - else if (i) { - (me( - t.pixels.length < 3, - "Too many pixel units in text-shadow: ".concat(e), - ), - (r = r.replace(i[0], "").trim())); - var o = parseFloat((i[1][0] === "." ? "0" : "") + i[1]); - t.pixels.push(o); - } else if (r[0] === ",") - (me( - t.pixels.length >= 2, - "Missing pixel value in text-shadow: ".concat(e), - ), - (t = { pixels: [] }), - a.push(t), - (r = r.substr(1).trim())); - else - throw new Error("Unable to process text-shadows: ".concat(r)); - } - return ( - a.forEach(function (u) { - var s = u.pixels; - s.length === 2 && s.push(0); - }), - a - ); - } - function si(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = t.minRatio, - a = t.maxRatio, - n = t.ignoreEdgeCount, - i = [], - o = E.getComputedStyle(e), - u = o.getPropertyValue("text-shadow"); - if (u === "none") return i; - var s = o.getPropertyValue("font-size"), - l = parseInt(s); - me( - isNaN(l) === !1, - "Unable to determine font-size value ".concat(s), - ); - var c = [], - d = Mf(u), - f = Ce(d), - p; - try { - for (f.s(); !(p = f.n()).done; ) { - var m = p.value, - h = m.colorStr || o.getPropertyValue("color"), - v = $(m.pixels, 3), - g = v[0], - b = v[1], - D = v[2], - w = D === void 0 ? 0 : D; - if (!(a && w >= l * a)) { - if (r && w < l * r) { - c.push({ colorStr: h, pixels: m.pixels }); - continue; - } - if (c.length > 0) { - var _ = $u(c, { ignoreEdgeCount: n }); - if (_ === null) return null; - (i.push.apply(i, ne(_)), c.splice(0, c.length)); - } - var F = mE({ - colorStr: h, - offsetX: g, - offsetY: b, - blurRadius: w, - fontSize: l, - }); - i.push(F); - } - } - } catch (I) { - f.e(I); - } finally { - f.f(); - } - if (c.length > 0) { - var R = $u(c, { ignoreEdgeCount: n }); - if (R === null) return null; - i.push.apply(i, ne(R)); - } - return i; - } - function mE(e) { - var t = e.colorStr, - r = e.offsetX, - a = e.offsetY, - n = e.blurRadius, - i = e.fontSize; - if (r > n || a > n) return new Se(0, 0, 0, 0); - var o = new Se(); - return (o.parseString(t), (o.alpha *= hE(n, i)), o); - } - function hE(e, t) { - if (e === 0) return 1; - var r = e / t; - return 0.185 / (r + 0.4); - } - function Uu(e, t) { - var r, - a = le(e); - if (a._stackingContext) return a._stackingContext; - var n = [], - i = new Map(); - return ( - (t = (r = t) !== null && r !== void 0 ? r : Hu(e)), - t.forEach(function (o) { - var u, - s = le(o), - l = bE(s), - c = s._stackingOrder.filter(function (p) { - var m = p.vNode; - return !!m; - }); - c.forEach(function (p, m) { - var h, - v = p.vNode, - g = - (h = c[m - 1]) === null || h === void 0 - ? void 0 - : h.vNode, - b = Pf(i, v, g); - (m === 0 && !i.get(v) && n.unshift(b), i.set(v, b)); - }); - var d = - (u = c[c.length - 1]) === null || u === void 0 - ? void 0 - : u.vNode, - f = Pf(i, s, d); - (c.length || n.unshift(f), (f.bgColor = l)); - }), - (a._stackingContext = n), - n - ); - } - function Na(e) { - var t; - if (!((t = e.descendants) !== null && t !== void 0 && t.length)) { - var r = e.bgColor; - return ( - (r.alpha *= e.opacity), - { color: r, blendMode: e.blendMode } - ); - } - var a = e.descendants.reduce(vE, If()), - n = qt(a, e.bgColor, e.descendants[0].blendMode); - return ( - (n.alpha *= e.opacity), - { color: n, blendMode: e.blendMode } - ); - } - function vE(e, t) { - var r; - e instanceof Se ? (r = e) : (r = Na(e).color); - var a = Na(t).color; - return qt(a, r, t.blendMode); - } - function If(e, t) { - var r; - return { - vNode: e, - ancestor: t, - opacity: parseFloat( - (r = e?.getComputedStylePropertyValue("opacity")) !== null && - r !== void 0 - ? r - : 1, - ), - bgColor: new Se(0, 0, 0, 0), - blendMode: gE( - e?.getComputedStylePropertyValue("mix-blend-mode"), - ), - descendants: [], - }; - } - function gE(e) { - return e || void 0; - } - function Pf(e, t, r) { - var a, - n = e.get(r), - i = (a = e.get(t)) !== null && a !== void 0 ? a : If(t, n); - return ( - n && - r !== t && - !n.descendants.includes(i) && - n.descendants.unshift(i), - i - ); - } - function bE(e) { - var t = new Se(); - return ( - t.parseString( - e.getComputedStylePropertyValue("background-color"), - ), - t - ); - } - function La(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : [], - r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : 0.1, - a = le(e), - n = a._cache.getBackgroundColor; - if (n) - return ( - t.push.apply(t, ne(n.bgElms)), - We.set("bgColor", n.incompleteData), - n.bgColor - ); - var i = yE(e, t, r); - return ( - (a._cache.getBackgroundColor = { - bgColor: i, - bgElms: t, - incompleteData: We.get("bgColor"), - }), - i - ); - } - function yE(e, t, r) { - var a, - n, - i = Hu(e); - if (!i) return null; - var o = Lo(e), - u = - (a = si(e, { minRatio: r, ignoreEdgeCount: !0 })) !== null && - a !== void 0 - ? a - : []; - u.length && (u = [{ color: u.reduce(Vu) }]); - for (var s = 0; s < i.length; s++) { - var l = i[s], - c = E.getComputedStyle(l); - if (Tn(l, c)) return (t.push(l), null); - var d = Ar(c); - if (d.alpha !== 0) { - if (c.getPropertyValue("display") !== "inline" && !Nf(l, o)) - return ( - t.push(l), - We.set("bgColor", "elmPartiallyObscured"), - null - ); - if ((t.push(l), d.alpha === 1)) break; - } - } - var f = Uu(e, i); - u = f.map(Na).concat(u); - var p = wE(e, i.includes(L.body)); - if (((n = u).unshift.apply(n, ne(p)), u.length === 0)) - return new Se(255, 255, 255, 1); - var m = u.reduce(function (h, v) { - return qt( - v.color, - h.color instanceof Se ? h.color : h, - v.blendMode, - ); - }); - return qt( - m.color instanceof Se ? m.color : m, - new Se(255, 255, 255, 1), - ); - } - function Nf(e, t) { - t = Array.isArray(t) ? t : [t]; - var r = e.getBoundingClientRect(), - a = r.right, - n = r.bottom, - i = E.getComputedStyle(e), - o = i.getPropertyValue("overflow"); - return ( - (["scroll", "auto"].includes(o) || - e instanceof E.HTMLHtmlElement) && - ((a = r.left + e.scrollWidth), (n = r.top + e.scrollHeight)), - t.every(function (u) { - return ( - u.top >= r.top && - u.bottom <= n && - u.left >= r.left && - u.right <= a - ); - }) - ); - } - function Lf(e) { - return e || void 0; - } - function wE(e, t) { - var r = []; - if (!t) { - var a = L.documentElement, - n = L.body, - i = E.getComputedStyle(a), - o = E.getComputedStyle(n), - u = Ar(i), - s = Ar(o), - l = s.alpha !== 0 && Nf(n, e.getBoundingClientRect()); - (((s.alpha !== 0 && u.alpha === 0) || (l && s.alpha !== 1)) && - r.unshift({ - color: s, - blendMode: Lf(o.getPropertyValue("mix-blend-mode")), - }), - u.alpha !== 0 && - (!l || (l && s.alpha !== 1)) && - r.unshift({ - color: u, - blendMode: Lf(i.getPropertyValue("mix-blend-mode")), - })); - } - return r; - } - function DE(e, t) { - if (!t || !e) return null; - t.alpha < 1 && (t = qt(t, e)); - var r = e.getRelativeLuminance(), - a = t.getRelativeLuminance(); - return (Math.max(a, r) + 0.05) / (Math.min(a, r) + 0.05); - } - var Gr = DE; - function li(e, t, r) { - for ( - var a, - n = - arguments.length > 3 && arguments[3] !== void 0 - ? arguments[3] - : {}, - i = E.getComputedStyle(e), - o = [ - function () { - return xE(i, n); - }, - function () { - return _E(i); - }, - function () { - return si(e, { minRatio: 0 }); - }, - ], - u = [], - s = 0, - l = o; - s < l.length; - s++ - ) { - var c = l[s], - d = c(); - if (d && ((u = u.concat(d)), d.alpha === 1)) break; - } - var f = u.reduce(function (v, g) { - return qt(v, g); - }); - if ( - (((a = r) !== null && a !== void 0) || (r = La(e, [])), - r === null) - ) { - var p = We.get("bgColor"); - return (We.set("fgColor", p), null); - } - var m = Uu(e), - h = Bf(m, e); - return qt(EE(f, h, m), new Se(255, 255, 255, 1)); - } - function _E(e) { - return new Se().parseString( - e.getPropertyValue("-webkit-text-fill-color") || - e.getPropertyValue("color"), - ); - } - function xE(e, t) { - var r = t.textStrokeEmMin, - a = r === void 0 ? 0 : r, - n = parseFloat(e.getPropertyValue("-webkit-text-stroke-width")); - if (n === 0) return null; - var i = e.getPropertyValue("font-size"), - o = n / parseFloat(i); - if (isNaN(o) || o < a) return null; - var u = e.getPropertyValue("-webkit-text-stroke-color"); - return new Se().parseString(u); - } - function EE(e, t, r) { - for (; t; ) { - var a; - if (t.opacity === 1 && t.ancestor) { - t = t.ancestor; - continue; - } - e.alpha *= t.opacity; - var n = - ((a = t.ancestor) === null || a === void 0 - ? void 0 - : a.descendants) || r; - t.opacity !== 1 && (n = n.slice(0, n.indexOf(t))); - var i = n.map(Na); - if (!i.length) { - t = t.ancestor; - continue; - } - var o = i.reduce( - function (u, s) { - return qt(s.color, u.color instanceof Se ? u.color : u); - }, - { color: new Se(0, 0, 0, 0), blendMode: "normal" }, - ); - ((e = qt(e, o)), (t = t.ancestor)); - } - return e; - } - function Bf(e, t) { - var r = Ce(e), - a; - try { - for (r.s(); !(a = r.n()).done; ) { - var n, - i = a.value; - if ( - ((n = i.vNode) === null || n === void 0 - ? void 0 - : n.actualNode) === t - ) - return i; - var o = Bf(i.descendants, t); - if (o) return o; - } - } catch (u) { - r.e(u); - } finally { - r.f(); - } - } - function AE(e, t, r, a) { - var n = Gr(e, t), - i = - (a && Math.ceil(r * 72) / 96 < 14) || - (!a && Math.ceil(r * 72) / 96 < 18), - o = i ? 4.5 : 3; - return { - isValid: n > o, - contrastRatio: n, - expectedContrastRatio: o, - }; - } - var CE = AE, - qf = {}; - Dt(qf, { - isAriaCombobox: function () { - return Nc; - }, - isAriaListbox: function () { - return Pc; - }, - isAriaRange: function () { - return Lc; - }, - isAriaTextbox: function () { - return Ic; - }, - isDisabled: function () { - return Ba; - }, - isNativeSelect: function () { - return Mc; - }, - isNativeTextbox: function () { - return Oc; - }, - }); - var FE = ["fieldset", "button", "select", "input", "textarea"]; - function jf(e) { - var t = e._isDisabled; - if (typeof t == "boolean") return t; - var r = e.props.nodeName, - a = e.attr("aria-disabled"); - return ( - FE.includes(r) && e.hasAttr("disabled") - ? (t = !0) - : a - ? (t = a.toLowerCase() === "true") - : e.parent - ? (t = jf(e.parent)) - : (t = !1), - (e._isDisabled = t), - t - ); - } - var Ba = jf; - function TE(e, t, r) { - var a = va.accessibleTextVirtual(r), - n = va - .sanitize( - va.removeUnicode(a, { - emoji: !0, - nonBmp: !0, - punctuations: !0, - }), - ) - .toLowerCase(); - if (n) { - var i = { - name: n, - urlProps: oo.urlPropsFromAttribute(e, "href"), - }; - return (this.data(i), this.relatedNodes([e]), !0); - } - } - var RE = TE; - function zf(e, t) { - if (!e || !t) return !1; - var r = Object.getOwnPropertyNames(e), - a = Object.getOwnPropertyNames(t); - if (r.length !== a.length) return !1; - var n = r.every(function (i) { - var o = e[i], - u = t[i]; - return O(o) !== O(u) - ? !1 - : O(o) === "object" || O(u) === "object" - ? zf(o, u) - : o === u; - }); - return n; - } - function SE(e) { - if (e.length < 2) return e; - for ( - var t = e.filter(function (o) { - var u = o.result; - return u !== void 0; - }), - r = [], - a = {}, - n = function (u) { - var s, - l = t[u], - c = l.data, - d = c.name, - f = c.urlProps; - if (a[d]) return 1; - var p = t.filter(function (h, v) { - var g = h.data; - return g.name === d && v !== u; - }), - m = p.every(function (h) { - var v = h.data; - return zf(v.urlProps, f); - }); - (p.length && !m && (l.result = void 0), - (l.relatedNodes = []), - (s = l.relatedNodes).push.apply( - s, - ne( - p.map(function (h) { - return h.relatedNodes[0]; - }), - ), - ), - (a[d] = p), - r.push(l)); - }, - i = 0; - i < t.length; - i++ - ) - n(i); - return r; - } - var kE = SE; - function OE(e) { - var t = ce(e), - r = t && t.includes("heading"), - a = e.attr("aria-level"), - n = parseInt(a, 10), - i = e.props.nodeName.match(/h(\d)/) || [], - o = $(i, 2), - u = o[1]; - return r - ? u && !a - ? parseInt(u, 10) - : isNaN(n) || n < 1 - ? u - ? parseInt(u, 10) - : 2 - : n || -1 - : -1; - } - function ME() { - var e = ue.get("headingOrder"); - if (e) return !0; - var t = "h1, h2, h3, h4, h5, h6, [role=heading], iframe, frame", - r = Bt(x._tree[0], t, Re); - return ( - (e = r.map(function (a) { - return { ancestry: [an(a.actualNode)], level: OE(a) }; - })), - this.data({ headingOrder: e }), - ue.set("headingOrder", r), - !0 - ); - } - var IE = ME; - function PE(e) { - var t = LE(e); - return ( - e.forEach(function (r) { - r.result = NE(r, t); - }), - e - ); - } - function NE(e, t) { - var r, - a, - n, - i, - o = Vf(t, e.node.ancestry), - u = - (r = - (a = t[o]) === null || a === void 0 ? void 0 : a.level) !== - null && r !== void 0 - ? r - : -1, - s = - (n = - (i = t[o - 1]) === null || i === void 0 - ? void 0 - : i.level) !== null && n !== void 0 - ? n - : -1; - if (o === 0) return !0; - if (u !== -1) return u - s <= 1; - } - function LE(e) { - ((e = ne(e)), - e.sort(function (r, a) { - var n = r.node, - i = a.node; - return n.ancestry.length - i.ancestry.length; - })); - var t = e.reduce(BE, []); - return t.filter(function (r) { - var a = r.level; - return a !== -1; - }); - } - function BE(e, t) { - var r, - a = - (r = t.data) === null || r === void 0 - ? void 0 - : r.headingOrder, - n = Hf(t.node.ancestry, 1); - if (!a) return e; - var i = a.map(function (u) { - return jE(u, n); - }), - o = qE(e, n); - return ( - o === -1 - ? e.push.apply(e, ne(i)) - : e.splice.apply(e, [o, 0].concat(ne(i))), - e - ); - } - function qE(e, t) { - for (; t.length; ) { - var r = Vf(e, t); - if (r !== -1) return r; - t = Hf(t, 1); - } - return -1; - } - function Vf(e, t) { - return e.findIndex(function (r) { - return Au(r.ancestry, t); - }); - } - function jE(e, t) { - var r = t.concat(e.ancestry); - return de({}, e, { ancestry: r }); - } - function Hf(e, t) { - return e.slice(0, e.length - t); - } - function zE(e, t, r) { - var a = t?.minSize || 24, - n = r.boundingClientRect; - if (Gt(a * 10, n)) - return (this.data({ messageKey: "large", minSize: a }), !0); - var i = Gt.bind(null, a), - o = yn(r), - u = VE(r, o), - s = HE(r, o), - l = s.fullyObscuringElms, - c = s.partialObscuringElms; - if (u.length && (l.length || !i(n))) { - (this.data({ minSize: a, messageKey: "contentOverflow" }), - this.relatedNodes(qa(u))); - return; - } - if (l.length) - return ( - this.relatedNodes(qa(l)), - this.data({ messageKey: "obscured" }), - !0 - ); - var d = vt(r) ? !1 : void 0; - if (!i(n)) return (this.data(de({ minSize: a }, ci(n))), d); - var f = GE(c); - if (!f.length) return (this.data(de({ minSize: a }, ci(n))), !0); - var p = $E(r, f); - if (!p) { - this.data({ minSize: a, messageKey: "tooManyRects" }); - return; - } - if (!i(p)) { - if (u.length) { - (this.data({ minSize: a, messageKey: "contentOverflow" }), - this.relatedNodes(qa(u))); - return; - } - var m = f.every(vt), - h = "partiallyObscured".concat(m ? "" : "NonTabbable"); - return ( - this.data(de({ messageKey: h, minSize: a }, ci(p))), - this.relatedNodes(qa(f)), - m ? d : void 0 - ); - } - return ( - this.data(de({ minSize: a }, ci(p || n))), - this.relatedNodes(qa(f)), - !0 - ); - } - function VE(e, t) { - return t.filter(function (r) { - return !$f(r, e) && Uf(e, r); - }); - } - function HE(e, t) { - var r = [], - a = [], - n = Ce(t), - i; - try { - for (n.s(); !(i = n.n()).done; ) { - var o = i.value; - !Uf(e, o) && - fo(e, o) && - WE(o) !== "none" && - ($f(e, o) ? r.push(o) : a.push(o)); - } - } catch (u) { - n.e(u); - } finally { - n.f(); - } - return { fullyObscuringElms: r, partialObscuringElms: a }; - } - function $E(e, t) { - var r = e.boundingClientRect, - a = t.map(function (i) { - var o = i.boundingClientRect; - return o; - }), - n; - try { - n = po(r, a); - } catch { - return null; - } - return UE(n); - } - function UE(e, t) { - return e.reduce(function (r, a) { - var n = Gt(t, r), - i = Gt(t, a); - if (n !== i) return n ? r : a; - var o = r.width * r.height, - u = a.width * a.height; - return o > u ? r : a; - }); - } - function GE(e) { - return e.filter(function (t) { - return At(t) === "widget" && Ne(t); - }); - } - function $f(e, t) { - var r = e.boundingClientRect, - a = t.boundingClientRect; - return ( - r.top >= a.top && - r.left >= a.left && - r.bottom <= a.bottom && - r.right <= a.right - ); - } - function WE(e) { - return e.getComputedStylePropertyValue("pointer-events"); - } - function ci(e) { - return { - width: Math.round(e.width * 10) / 10, - height: Math.round(e.height * 10) / 10, - }; - } - function Uf(e, t) { - return Ut(e, t) && !vt(t); - } - function qa(e) { - return e.map(function (t) { - var r = t.actualNode; - return r; - }); - } - var YE = 0.05; - function KE(e, t, r) { - var a = t?.minOffset || 24; - if (Gt(a * 10, r.boundingClientRect)) - return (this.data({ messageKey: "large", minOffset: a }), !0); - var n = [], - i = a, - o = Ce(yn(r, a)), - u; - try { - for (o.s(); !(u = o.n()).done; ) { - var s = u.value; - if (!(At(s) !== "widget" || !Ne(s))) { - var l = null; - try { - l = Gl(r, s, a / 2); - } catch (c) { - if (c.message.startsWith("splitRects")) { - this.data({ - messageKey: "tooManyRects", - closestOffset: 0, - minOffset: a, - }); - return; - } - throw c; - } - l !== null && - ((l = XE(l) * 2), - !(l + YE >= a) && ((i = Math.min(i, l)), n.push(s))); - } - } - } catch (c) { - o.e(c); - } finally { - o.f(); - } - if (n.length === 0) - return (this.data({ closestOffset: i, minOffset: a }), !0); - if ( - (this.relatedNodes( - n.map(function (c) { - var d = c.actualNode; - return d; - }), - ), - !n.some(vt)) - ) { - this.data({ - messageKey: "nonTabbableNeighbor", - closestOffset: i, - minOffset: a, - }); - return; - } - return ( - this.data({ closestOffset: i, minOffset: a }), - vt(r) ? !1 : void 0 - ); - } - function XE(e) { - return Math.round(e * 10) / 10; - } - function ZE(e, t, r) { - var a = t || {}, - n = a.scaleMinimum, - i = n === void 0 ? 2 : n, - o = a.lowerBound, - u = o === void 0 ? !1 : o, - s = r.attr("content") || ""; - if (!s) return !0; - var l = s.split(/[;,]/).reduce(function (d, f) { - var p = f.trim(); - if (!p) return d; - var m = p.split("="), - h = $(m, 2), - v = h[0], - g = h[1]; - if (!v || !g) return d; - var b = v.toLowerCase().trim(), - D = g.toLowerCase().trim(); - return ( - b === "maximum-scale" && D === "yes" && (D = 1), - (b === "maximum-scale" && parseFloat(D) < 0) || (d[b] = D), - d - ); - }, {}); - if (u && l["maximum-scale"] && parseFloat(l["maximum-scale"]) < u) - return !0; - if (!u && l["user-scalable"] === "no") - return (this.data("user-scalable=no"), !1); - var c = parseFloat(l["user-scalable"]); - return !u && - l["user-scalable"] && - (c || c === 0) && - c > -1 && - c < 1 - ? (this.data("user-scalable"), !1) - : l["maximum-scale"] && parseFloat(l["maximum-scale"]) < i - ? (this.data("maximum-scale"), !1) - : !0; - } - var JE = ZE; - function QE(e, t, r, a) { - var n = a || {}, - i = n.cssom, - o = i === void 0 ? void 0 : i, - u = t || {}, - s = u.degreeThreshold, - l = s === void 0 ? 0 : s; - if (!o || !o.length) return; - for ( - var c = !1, - d = [], - f = v(o), - p = function () { - var N = h[m], - z = f[N], - H = z.root, - Q = z.rules, - ie = Q.filter(g); - if (!ie.length) return 1; - ie.forEach(function (Y) { - var te = Y.cssRules; - Array.from(te).forEach(function (B) { - var Z = b(B); - if (Z && B.selectorText.toUpperCase() !== "HTML") { - var A = - Array.from(H.querySelectorAll(B.selectorText)) || - []; - d = d.concat(A); - } - c = c || Z; - }); - }); - }, - m = 0, - h = Object.keys(f); - m < h.length; - m++ - ) - p(); - if (!c) return !0; - return (d.length && this.relatedNodes(d), !1); - function v(S) { - return S.reduce(function (N, z) { - var H = z.sheet, - Q = z.root, - ie = z.shadowId, - Y = ie || "topDocument"; - if ( - (N[Y] || (N[Y] = { root: Q, rules: [] }), !H || !H.cssRules) - ) - return N; - var te = Array.from(H.cssRules); - return ((N[Y].rules = N[Y].rules.concat(te)), N); - }, {}); - } - function g(S) { - var N = S.type, - z = S.cssText; - return N !== 4 - ? !1 - : /orientation:\s*landscape/i.test(z) || - /orientation:\s*portrait/i.test(z); - } - function b(S) { - var N = S.selectorText, - z = S.style; - if (!N || z.length <= 0) return !1; - var H = z.transform || z.webkitTransform || z.msTransform || !1; - if (!H && !z.rotate) return !1; - var Q = D(H), - ie = w("rotate", z.rotate), - Y = Q + ie; - return !Y || ((Y = Math.abs(Y)), Math.abs(Y - 180) % 180 <= l) - ? !1 - : Math.abs(Y - 90) % 90 <= l; - } - function D(S) { - if (!S) return 0; - var N = S.match( - /(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/, - ); - if (!N) return 0; - var z = $(N, 3), - H = z[1], - Q = z[2]; - return w(H, Q); - } - function w(S, N) { - switch (S) { - case "rotate": - case "rotateZ": - return _(N); - case "rotate3d": - var z = N.split(",").map(function (Y) { - return Y.trim(); - }), - H = $(z, 4), - Q = H[2], - ie = H[3]; - return parseInt(Q) === 0 ? void 0 : _(ie); - case "matrix": - case "matrix3d": - return F(N); - default: - return 0; - } - } - function _(S) { - var N = S.match(/(deg|grad|rad|turn)/) || [], - z = $(N, 1), - H = z[0]; - if (!H) return 0; - var Q = parseFloat(S.replace(H, "")); - switch (H) { - case "rad": - return R(Q); - case "grad": - return I(Q); - case "turn": - return V(Q); - case "deg": - default: - return parseInt(Q); - } - } - function F(S) { - var N = S.split(","); - if (N.length <= 6) { - var z = $(N, 2), - H = z[0], - Q = z[1], - ie = Math.atan2(parseFloat(Q), parseFloat(H)); - return R(ie); - } - var Y = parseFloat(N[8]), - te = Math.asin(Y), - B = Math.cos(te), - Z = Math.acos(parseFloat(N[0]) / B); - return R(Z); - } - function R(S) { - return Math.round(S * (180 / Math.PI)); - } - function I(S) { - return ( - (S = S % 400), - S < 0 && (S += 400), - Math.round((S / 400) * 360) - ); - } - function V(S) { - return Math.round(360 / (1 / S)); - } - } - var e5 = QE; - function t5(e, t) { - var r = e.hasAttribute("controls"); - if (e.hasAttribute("loop")) return r; - if (!e.duration) { - console.warn("axe.utils.preloadMedia did not load metadata"); - return; - } - var a = t.allowedDuration, - n = a === void 0 ? 3 : a, - i = o(e); - if (i <= n) return !0; - if (!r) return !1; - return !0; - function o(l) { - if (!l.currentSrc) return 0; - var c = u(l.currentSrc); - return c - ? c.length === 1 - ? Math.abs(l.duration - c[0]) - : Math.abs(c[1] - c[0]) - : Math.abs(l.duration - (l.currentTime || 0)); - } - function u(l) { - var c = l.match(/#t=(.*)/); - if (c) { - var d = $(c, 2), - f = d[1], - p = f.split(","); - return p.map(function (m) { - return /:/.test(m) ? s(m) : parseFloat(m); - }); - } - } - function s(l) { - for (var c = l.split(":"), d = 0, f = 1; c.length > 0; ) - ((d += f * parseInt(c.pop(), 10)), (f *= 60)); - return parseFloat(d); - } - } - var r5 = t5; - function a5(e, t) { - return t.isViolation ? !1 : void 0; - } - var n5 = a5, - Gf = " > "; - function i5(e) { - var t = {}; - return e.filter(function (r) { - var a = r.node.ancestry[r.node.ancestry.length - 1] !== "html"; - if (a) { - var n = r.node.ancestry.flat(1 / 0).join(Gf); - return ((t[n] = r), !0); - } - var i = r.node.ancestry - .slice(0, r.node.ancestry.length - 1) - .flat(1 / 0) - .join(Gf); - return (t[i] && (t[i].result = !0), !1); - }); - } - var o5 = i5; - function u5(e, t, r) { - var a = ft(r, "track"), - n = a.some(function (i) { - return (i.attr("kind") || "").toLowerCase() === "captions"; - }); - return n ? !1 : void 0; - } - var s5 = u5; - function l5(e, t, r) { - var a = r.children; - if (!a || !a.length) return !1; - for (var n = !1, i = !1, o, u = 0; u < a.length; u++) { - if ( - ((o = a[u].props.nodeName.toUpperCase()), - o === "DT" && (n = !0), - n && o === "DD") - ) - return !1; - o === "DD" && (i = !0); - } - return n || i; - } - var c5 = l5; - function d5(e, t, r) { - var a = !1, - n = !1, - i = !0, - o = [], - u = [], - s = []; - return ( - r.children.forEach(function (l) { - var c = l.actualNode; - if (c.nodeType === 3 && c.nodeValue.trim() !== "") { - a = !0; - return; - } - if (!(c.nodeType !== 1 || !Re(c))) { - i = !1; - var d = c.nodeName.toUpperCase() === "LI", - f = ce(l), - p = f === "listitem"; - (!d && !p && o.push(c), - d && !p && (u.push(c), s.includes(f) || s.push(f)), - p && (n = !0)); - } - }), - a || o.length - ? (this.relatedNodes(o), !0) - : i || n - ? !1 - : (this.relatedNodes(u), - this.data({ - messageKey: "roleNotValid", - roles: s.join(", "), - }), - !0) - ); - } - var f5 = d5; - function p5(e, t, r) { - var a = ["definition", "term", "list"], - n = { badNodes: [], hasNonEmptyTextNode: !1 }, - i = r.children.reduce(function (u, s) { - var l = s.actualNode; - return l.nodeName.toUpperCase() === "DIV" && ce(l) === null - ? u.concat(s.children) - : u.concat(s); - }, []), - o = i.reduce(function (u, s) { - var l = s.actualNode, - c = l.nodeName.toUpperCase(); - if (l.nodeType === 1 && Re(l)) { - var d = De(l); - ((c !== "DT" && c !== "DD") || d) && - (a.includes(d) || u.badNodes.push(l)); - } else - l.nodeType === 3 && - l.nodeValue.trim() !== "" && - (u.hasNonEmptyTextNode = !0); - return u; - }, n); - return ( - o.badNodes.length && this.relatedNodes(o.badNodes), - !!o.badNodes.length || o.hasNonEmptyTextNode - ); - } - function m5(e, t, r) { - var a = r.parent; - if (a) { - var n = a.props.nodeName, - i = De(a); - return ["presentation", "none", "list"].includes(i) - ? !0 - : i && qr(i) - ? (this.data({ messageKey: "roleNotValid" }), !1) - : ["ul", "ol", "menu"].includes(n); - } - } - function h5(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = arguments.length > 2 ? arguments[2] : void 0, - a = [], - n = []; - if (r.children) { - for (var i = Wf(r.children); i.length; ) { - var o, - u = i.shift(), - s = u.vChild, - l = u.nested; - if (t.divGroups && !l && g5(s)) { - if (!s.children) return; - var c = Wf(s.children, !0); - i.push.apply(i, ne(c)); - continue; - } - var d = v5(s, l, t); - d && - (n.includes(d) || n.push(d), - (s == null || (o = s.actualNode) === null || o === void 0 - ? void 0 - : o.nodeType) === 1 && a.push(s.actualNode)); - } - return n.length === 0 - ? !1 - : (this.data({ values: n.join(", ") }), - this.relatedNodes(a), - !0); - } - } - function v5(e, t, r) { - var a = r.validRoles, - n = a === void 0 ? [] : a, - i = r.validNodeNames, - o = i === void 0 ? [] : i, - u = e.props, - s = u.nodeName, - l = u.nodeType, - c = u.nodeValue, - d = t ? "div > " : ""; - if (l === 3 && c.trim() !== "") return d + "#text"; - if (l !== 1 || !Re(e)) return !1; - var f = De(e); - return f - ? n.includes(f) - ? !1 - : d + "[role=".concat(f, "]") - : o.includes(s) - ? !1 - : d + s; - } - function g5(e) { - return e.props.nodeName === "div" && De(e) === null; - } - function Wf(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : !1; - return e.map(function (r) { - return { vChild: r, nested: t }; - }); - } - function b5(e) { - var t = Ue(e), - r = t.nodeName.toUpperCase(), - a = De(t); - return ( - r === "DIV" && - ["presentation", "none", null].includes(a) && - ((t = Ue(t)), (r = t.nodeName.toUpperCase()), (a = De(t))), - r !== "DL" - ? !1 - : !!(!a || ["presentation", "none", "list"].includes(a)) - ); - } - var y5 = b5; - function w5(e, t, r) { - var a = Fr(r.attr("lang")), - n = Fr(r.attr("xml:lang")); - return a === n; - } - var D5 = w5; - function _5(e, t, r) { - var a = []; - return ( - t.attributes.forEach(function (n) { - var i = r.attr(n); - if (typeof i == "string") { - var o = Fr(i), - u = t.value ? !t.value.map(Fr).includes(o) : !ri(o); - ((o !== "" && u) || (i !== "" && !re(i))) && - a.push(n + '="' + r.attr(n) + '"'); - } - }), - !a.length || (r.props.nodeName !== "html" && !zo(r)) - ? !1 - : (this.data(a), !0) - ); - } - var x5 = _5; - function Gu(e) { - return (e || "").trim() !== ""; - } - function E5(e, t, r) { - var a = typeof L < "u" ? tn(L) : !1; - if ( - t.attributes.includes("xml:lang") && - t.attributes.includes("lang") && - Gu(r.attr("xml:lang")) && - !Gu(r.attr("lang")) && - !a - ) - return (this.data({ messageKey: "noXHTML" }), !1); - var n = t.attributes.some(function (i) { - return Gu(r.attr(i)); - }); - return n ? !0 : (this.data({ messageKey: "noLang" }), !1); - } - var A5 = E5; - function C5(e, t, r) { - var a = ce(e), - n = Ge(r); - return ( - (n = n ? n.toLowerCase() : null), - this.data({ role: a, accessibleText: n }), - this.relatedNodes([e]), - !0 - ); - } - var F5 = C5; - function T5(e) { - var t = []; - return e.filter(function (r) { - var a = function (o) { - return ( - r.data.role === o.data.role && - r.data.accessibleText === o.data.accessibleText - ); - }, - n = t.find(a); - return n - ? ((n.result = !1), - n.relatedNodes.push(r.relatedNodes[0]), - !1) - : (t.push(r), (r.relatedNodes = []), !0); - }); - } - var R5 = T5; - function S5(e, t, r) { - var a = Cn(r), - n = xn(r), - i = r.attr("aria-describedby"); - return !a && !!(n || i); - } - var k5 = S5; - function O5(e) { - var t = Oe(e.getAttribute("id")), - r = e.parentNode, - a = Xe(e); - a = a.documentElement || a; - var n = Array.from( - a.querySelectorAll('label[for="'.concat(t, '"]')), - ); - for ( - n.length && - (n = n.filter(function (u) { - return !er(u); - })); - r; - ) - (r.nodeName.toUpperCase() === "LABEL" && - n.indexOf(r) === -1 && - n.push(r), - (r = r.parentNode)); - if ((this.relatedNodes(n), n.length > 1)) { - var i = n.filter(function (u) { - return Re(u); - }); - if (i.length > 1) return; - var o = Ot(e, "aria-labelledby"); - return o.includes(i[0]) ? !1 : void 0; - } - return !1; - } - var M5 = O5; - function I5(e, t) { - var r = Yf(t), - a = Yf(e); - return !r || !a ? !1 : r.includes(a); - } - function Yf(e) { - var t = Da(e, { emoji: !0, nonBmp: !0, punctuations: !0 }); - return re(t); - } - function P5(e, t, r) { - var a, - n = t?.pixelThreshold, - i = - (a = t?.occurrenceThreshold) !== null && a !== void 0 - ? a - : t?.occuranceThreshold, - o = wr(e).toLowerCase(), - u = re( - tr(r, { - subtreeDescendant: !0, - ignoreIconLigature: !0, - pixelThreshold: n, - occurrenceThreshold: i, - }), - ).toLowerCase(); - if (!u) return !0; - if (!(No(o) < 1 || No(u) < 1)) return I5(u, o); - } - var N5 = P5; - function L5(e, t, r) { - try { - var a = ut(r, "label"); - if (a) { - var n = re(Ge(a, { inControlContext: !0, startNode: r })); - return ( - a.actualNode && this.relatedNodes([a.actualNode]), - this.data({ implicitLabel: n }), - !!n - ); - } - return !1; - } catch { - return; - } - } - var B5 = L5; - function q5(e, t, r) { - if (r.hasAttr("id")) { - if (!r.actualNode) return; - var a = Xe(e), - n = Oe(e.getAttribute("id")), - i = a.querySelector('label[for="'.concat(n, '"]')); - if (i && !Re(i)) { - var o; - try { - o = Ge(r).trim(); - } catch { - return; - } - var u = o === ""; - return u; - } - } - return !1; - } - var j5 = q5; - function z5(e, t, r) { - var a = Cn(r), - n = e.getAttribute("title"); - if (!a) return !1; - if (!n && ((n = ""), e.getAttribute("aria-describedby"))) { - var i = Ot(e, "aria-describedby"); - n = i - .map(function (o) { - return o ? wr(o) : ""; - }) - .join(""); - } - return re(n) === re(a); - } - var V5 = z5; - function H5(e, t, r) { - var a = this; - if (!r.attr("id")) return !1; - if (r.actualNode) { - var n = Xe(r.actualNode), - i = Oe(r.attr("id")), - o = Array.from( - n.querySelectorAll('label[for="'.concat(i, '"]')), - ); - if ((this.relatedNodes(o), !o.length)) return !1; - try { - return o.some(function (u) { - if (st(u)) { - var s = re(wr(u, { inControlContext: !0, startNode: r })); - return (a.data({ explicitLabel: s }), !!s); - } else return !0; - }); - } catch { - return; - } - } - } - var $5 = H5; - function U5(e, t, r) { - if (["none", "presentation"].includes(ce(r))) return !1; - var a = ut(r, t.parentSelector); - if (!a) return !1; - var n = It(a, !0).toLowerCase(); - return n === "" ? !1 : n === Ge(r).toLowerCase(); - } - var G5 = U5; - function W5(e, t, r) { - var a = r.attr("alt"), - n = /^\s+$/; - return typeof a == "string" && n.test(a); - } - var Y5 = W5; - function K5(e, t, r) { - var a = Lt(r.attr("tabindex")); - return a === null || a <= 0; - } - var X5 = K5; - function Z5(e, t, r) { - if (r.children) - try { - var a = Kf(r); - if (!a.length) return !0; - var n = a.filter(J5); - return ( - n.length > 0 - ? (this.data({ messageKey: "notHidden" }), - this.relatedNodes(n)) - : this.relatedNodes(a), - !1 - ); - } catch { - return; - } - } - function Kf(e) { - if (!e.children) { - if (e.props.nodeType === 1) - throw new Error("Cannot determine children"); - return []; - } - var t = []; - return ( - e.children.forEach(function (r) { - At(r) === "widget" && Ne(r) - ? t.push(r) - : t.push.apply(t, ne(Kf(r))); - }), - t - ); - } - function J5(e) { - var t = Lt(e.attr("tabindex")); - return t !== null && t < 0; - } - function Q5(e) { - var t = Ur("landmark"), - r = Ue(e), - a = ce(e); - for (this.data({ role: a }); r; ) { - var n = r.getAttribute("role"); - if ( - (!n && r.nodeName.toUpperCase() !== "FORM" && (n = Mt(r)), - n && - t.includes(n) && - !(n === "main" && a === "complementary")) - ) - return !1; - r = Ue(r); - } - return !0; - } - var eA = Q5; - function tA(e, t, r) { - if (r.children) - try { - return !r.children.some(function (a) { - return Xf(a); - }); - } catch { - return; - } - } - function Xf(e) { - if (vt(e)) return !0; - if (!e.children) { - if (e.props.nodeType === 1) - throw new Error("Cannot determine children"); - return !1; - } - return e.children.some(function (t) { - return Xf(t); - }); - } - function rA(e, t, r) { - var a = ["button", "fieldset", "input", "select", "textarea"], - n = r.tabbableElements; - if (!n || !n.length) return !0; - var i = n.filter(function (o) { - return !a.includes(o.props.nodeName); - }); - return ( - this.relatedNodes( - i.map(function (o) { - return o.actualNode; - }), - ), - i.length === 0 || xa() - ? !0 - : i.every(function (o) { - var u = - o.getComputedStylePropertyValue("pointer-events"), - s = parseInt( - o.getComputedStylePropertyValue("width"), - ), - l = parseInt( - o.getComputedStylePropertyValue("height"), - ); - return ( - o.actualNode.onfocus || - ((s === 0 || l === 0) && u === "none") - ); - }) - ? void 0 - : !1 - ); - } - var aA = rA; - function nA(e, t, r) { - if (!vt(r)) return !1; - try { - return !Ge(r); - } catch { - return; - } - } - var iA = nA; - function oA(e, t, r) { - var a = r.tabbableElements.map(function (n) { - var i = n.actualNode; - return i; - }); - if (!a || !a.length) return !0; - if (xa()) { - this.relatedNodes(a); - return; - } - return !0; - } - var uA = oA; - function sA(e, t, r) { - if (r.hasAttr("contenteditable") && a(r)) return !0; - return vt(r); - function a(n) { - var i = n.attr("contenteditable"); - if (i === "true" || i === "") return !0; - if (i === "false") return !1; - var o = ut(r.parent, "[contenteditable]"); - return o ? a(o) : !1; - } - } - var lA = sA; - function cA(e, t, r) { - var a = ["button", "fieldset", "input", "select", "textarea"], - n = r.tabbableElements; - if (!n || !n.length) return !0; - var i = n.filter(function (o) { - return a.includes(o.props.nodeName); - }); - return ( - this.relatedNodes( - i.map(function (o) { - return o.actualNode; - }), - ), - i.length === 0 || xa() - ? !0 - : i.every(function (o) { - var u = - o.getComputedStylePropertyValue("pointer-events"), - s = parseInt( - o.getComputedStylePropertyValue("width"), - ), - l = parseInt( - o.getComputedStylePropertyValue("height"), - ); - return ( - o.actualNode.onfocus || - ((s === 0 || l === 0) && u === "none") - ); - }) - ? void 0 - : !1 - ); - } - var dA = cA; - function fA(e, t, r) { - var a = r.tabbableElements; - if (!a) return !1; - var n = a.filter(function (i) { - return i !== r; - }); - return n.length > 0; - } - var pA = fA; - function mA(e, t, r) { - return ( - er(r) || - (this.data(r.attr("accesskey")), this.relatedNodes([e])), - !0 - ); - } - var hA = mA; - function vA(e) { - var t = {}; - return e - .filter(function (r) { - if (!r.data) return !1; - var a = r.data.toUpperCase(); - return t[a] - ? (t[a].relatedNodes.push(r.relatedNodes[0]), !1) - : ((t[a] = r), (r.relatedNodes = []), !0); - }) - .map(function (r) { - return ((r.result = !!r.relatedNodes.length), r); - }); - } - var gA = vA; - function bA(e, t, r) { - if (!t || !t.selector || typeof t.selector != "string") - throw new TypeError( - "page-no-duplicate requires options.selector to be a string", - ); - var a = "page-no-duplicate;" + t.selector; - if (ue.get(a)) { - this.data("ignored"); - return; - } - ue.set(a, !0); - var n = Bt(x._tree[0], t.selector, function (i) { - return Re(i); - }); - return ( - typeof t.nativeScopeFilter == "string" && - (n = n.filter(function (i) { - return ( - i.actualNode.hasAttribute("role") || - !Nr(i, t.nativeScopeFilter) - ); - })), - typeof t.role == "string" && - (n = n.filter(function (i) { - return ce(i) === t.role; - })), - this.relatedNodes( - n - .filter(function (i) { - return i !== r; - }) - .map(function (i) { - return i.actualNode; - }), - ), - n.length <= 1 - ); - } - var yA = bA; - function wA(e) { - return e.filter(function (t) { - return t.data !== "ignored"; - }); - } - var DA = wA; - function _A(e, t, r) { - return ya(r, t.matcher); - } - var xA = _A; - function EA(e, t, r) { - try { - return re(tr(r)) !== ""; - } catch { - return; - } - } - function AA(e, t, r) { - if (!t || !t.selector || typeof t.selector != "string") - throw new TypeError( - "has-descendant requires options.selector to be a string", - ); - if (t.passForModal && xa()) return !0; - var a = Bt(r, t.selector, function (n) { - return Re(n); - }); - return ( - this.relatedNodes( - a.map(function (n) { - return n.actualNode; - }), - ), - a.length > 0 - ); - } - var CA = AA; - function FA(e) { - var t = e.some(function (r) { - return r.result === !0; - }); - return ( - t && - e.forEach(function (r) { - r.result = !0; - }), - e - ); - } - var TA = FA; - function RA(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = arguments.length > 2 ? arguments[2] : void 0; - if (!t.attribute || typeof t.attribute != "string") - throw new TypeError( - "attr-non-space-content requires options.attribute to be a string", - ); - if (!r.hasAttr(t.attribute)) - return (this.data({ messageKey: "noAttr" }), !1); - var a = r.attr(t.attribute), - n = !re(a); - return n ? (this.data({ messageKey: "emptyAttr" }), !1) : !0; - } - var SA = RA; - function kA(e, t, r) { - var a = r.attr("autocomplete") || ""; - return Wc(a, t); - } - var OA = kA; - function MA(e, t, r) { - if (r.props.nodeName !== "input") return !0; - var a = ["text", "search", "number", "tel"], - n = ["text", "search", "url"], - i = { - bday: ["text", "search", "date"], - email: ["text", "search", "email"], - username: ["text", "search", "email"], - "street-address": ["text"], - tel: ["text", "search", "tel"], - "tel-country-code": ["text", "search", "tel"], - "tel-national": ["text", "search", "tel"], - "tel-area-code": ["text", "search", "tel"], - "tel-local": ["text", "search", "tel"], - "tel-local-prefix": ["text", "search", "tel"], - "tel-local-suffix": ["text", "search", "tel"], - "tel-extension": ["text", "search", "tel"], - "cc-number": a, - "cc-exp": ["text", "search", "month", "tel"], - "cc-exp-month": a, - "cc-exp-year": a, - "cc-csc": a, - "transaction-amount": a, - "bday-day": a, - "bday-month": a, - "bday-year": a, - "new-password": ["text", "search", "password"], - "current-password": ["text", "search", "password"], - url: n, - photo: n, - impp: n, - }; - O(t) === "object" && - Object.keys(t).forEach(function (d) { - (i[d] || (i[d] = []), (i[d] = i[d].concat(t[d]))); - }); - var o = r.attr("autocomplete"), - u = o.split(/\s+/g).map(function (d) { - return d.toLowerCase(); - }), - s = u[u.length - 1]; - if (Er.stateTerms.includes(s)) return !0; - var l = i[s], - c = r.hasAttr("type") - ? re(r.attr("type")).toLowerCase() - : "text"; - return ( - (c = ti().includes(c) ? c : "text"), - typeof l > "u" ? c === "text" : l.includes(c) - ); - } - var IA = MA, - PA = [ - "block", - "list-item", - "table", - "flex", - "grid", - "inline-block", - ]; - function NA(e) { - if (Zf(e)) return !1; - for (var t = Ue(e); t && t.nodeType === 1 && !Zf(t); ) t = Ue(t); - if (t) { - if ((this.relatedNodes([t]), Rf(e, t))) return !0; - if (LA(e)) { - this.data({ messageKey: "pseudoContent" }); - return; - } - return !1; - } - } - function Zf(e) { - var t = E.getComputedStyle(e).getPropertyValue("display"); - return PA.indexOf(t) !== -1 || t.substr(0, 6) === "table-"; - } - function LA(e) { - for (var t = 0, r = ["before", "after"]; t < r.length; t++) { - var a = r[t], - n = E.getComputedStyle(e, ":".concat(a)), - i = n.getPropertyValue("content"); - if (i !== "none") return !0; - } - return !1; - } - function Jf(e, t) { - var r = e.getRelativeLuminance(), - a = t.getRelativeLuminance(); - return (Math.max(r, a) + 0.05) / (Math.min(r, a) + 0.05); - } - var BA = [ - "block", - "list-item", - "table", - "flex", - "grid", - "inline-block", - ]; - function Qf(e) { - var t = E.getComputedStyle(e).getPropertyValue("display"); - return BA.indexOf(t) !== -1 || t.substr(0, 6) === "table-"; - } - function qA(e, t) { - var r = t.requiredContrastRatio, - a = t.allowSameColor; - if (Qf(e)) return !1; - for (var n = Ue(e); n && n.nodeType === 1 && !Qf(n); ) n = Ue(n); - if (n) { - this.relatedNodes([n]); - var i = li(e), - o = li(n), - u = La(e), - s = La(n), - l = i && o ? Jf(i, o) : void 0; - if ((l && (l = Math.floor(l * 100) / 100), l && l >= r)) - return !0; - var c = u && s ? Jf(u, s) : void 0; - if ((c && (c = Math.floor(c * 100) / 100), c && c >= r)) - return !0; - if (!c) { - var d, - f = - (d = We.get("bgColor")) !== null && d !== void 0 - ? d - : "bgContrast"; - (this.data({ messageKey: f }), We.clear()); - return; - } - if (l) - return a && l === 1 && c === 1 - ? !0 - : l === 1 && c > 1 - ? (this.data({ - messageKey: "bgContrast", - contrastRatio: c, - requiredContrastRatio: r, - nodeBackgroundColor: u ? u.toHexString() : void 0, - parentBackgroundColor: s ? s.toHexString() : void 0, - }), - !1) - : (this.data({ - messageKey: "fgContrast", - contrastRatio: l, - requiredContrastRatio: r, - nodeColor: i ? i.toHexString() : void 0, - parentColor: o ? o.toHexString() : void 0, - }), - !1); - } - } - var jA = qA; - function zA(e, t, r) { - var a = t.ignoreUnicode, - n = t.ignoreLength, - i = t.ignorePseudo, - o = t.boldValue, - u = t.boldTextPt, - s = t.largeTextPt, - l = t.contrastRatio, - c = t.shadowOutlineEmMax, - d = t.pseudoSizeThreshold; - if (!st(e)) return (this.data({ messageKey: "hidden" }), !0); - var f = It(r, !1, !0); - if (a && HA(f)) { - this.data({ messageKey: "nonBmp" }); - return; - } - var p = E.getComputedStyle(e), - m = parseFloat(p.getPropertyValue("font-size")), - h = p.getPropertyValue("font-weight"), - v = parseFloat(h) >= o || h === "bold", - g = Math.ceil(m * 72) / 96, - b = (v && g < u) || (!v && g < s), - D = b ? l.normal : l.large, - w = D.expected, - _ = D.minThreshold, - F = D.maxThreshold, - R = VA(r, { ignorePseudo: i, pseudoSizeThreshold: d }); - if (R) { - (this.data({ - fontSize: "" - .concat(((m * 72) / 96).toFixed(1), "pt (") - .concat(m, "px)"), - fontWeight: v ? "bold" : "normal", - messageKey: "pseudoContent", - expectedContrastRatio: w + ":1", - }), - this.relatedNodes(R.actualNode)); - return; - } - var I = si(e, { minRatio: 0.001, maxRatio: c }); - if (I === null) { - this.data({ messageKey: "complexTextShadows" }); - return; - } - var V = [], - S = La(e, V, c), - N = li(e, !1, S, t), - z = null, - H = null, - Q = null; - if (I.length === 0) z = Gr(S, N); - else if (N && S) { - Q = [].concat(ne(I), [S]).reduce(Vu); - var ie = Gr(S, N), - Y = Gr(S, Q), - te = Gr(Q, N); - ((z = Math.max(ie, Y, te)), - z !== ie && - (H = Y > te ? "shadowOnBgColor" : "fgOnShadowColor")); - } - var B = z > w; - if ( - (typeof _ == "number" && (typeof z != "number" || z < _)) || - (typeof F == "number" && (typeof z != "number" || z > F)) - ) - return (this.data({ contrastRatio: z }), !0); - var Z = Math.floor(z * 100) / 100, - A; - S === null ? (A = We.get("bgColor")) : B || (A = H); - var U = Z === 1, - P = f.length === 1; - if ( - (U - ? (A = We.set("bgColor", "equalRatio")) - : !B && P && !n && (A = "shortTextContent"), - this.data({ - fgColor: N ? N.toHexString() : void 0, - bgColor: S ? S.toHexString() : void 0, - contrastRatio: Z, - fontSize: "" - .concat(((m * 72) / 96).toFixed(1), "pt (") - .concat(m, "px)"), - fontWeight: v ? "bold" : "normal", - messageKey: A, - expectedContrastRatio: w + ":1", - shadowColor: Q ? Q.toHexString() : void 0, - }), - N === null || S === null || U || (P && !n && !B)) - ) { - ((A = null), We.clear(), this.relatedNodes(V)); - return; - } - return (B || this.relatedNodes(V), B); - } - function VA(e, t) { - var r = t.pseudoSizeThreshold, - a = r === void 0 ? 0.25 : r, - n = t.ignorePseudo, - i = n === void 0 ? !1 : n; - if (!i) { - var o = e.boundingClientRect, - u = o.width * o.height * a; - do { - var s = ep(e.actualNode, ":before"), - l = ep(e.actualNode, ":after"); - if (s + l > u) return e; - } while ((e = e.parent)); - } - } - var ep = Fe(function (t, r) { - var a = E.getComputedStyle(t, r), - n = function (s, l) { - return a.getPropertyValue(s) === l; - }; - if ( - n("content", "none") || - n("display", "none") || - n("visibility", "hidden") || - n("position", "absolute") === !1 || - (Ar(a).alpha === 0 && n("background-image", "none")) - ) - return 0; - var i = tp(a.getPropertyValue("width")), - o = tp(a.getPropertyValue("height")); - return i.unit !== "px" || o.unit !== "px" - ? i.value === 0 || o.value === 0 - ? 0 - : 1 / 0 - : i.value * o.value; - }); - function HA(e) { - var t = { nonBmp: !0 }, - r = Io(e, t), - a = re(Da(e, t)) === ""; - return r && a; - } - function tp(e) { - var t = /^([0-9.]+)([a-z]+)$/i, - r = e.match(t) || [], - a = $(r, 3), - n = a[1], - i = n === void 0 ? "" : n, - o = a[2], - u = o === void 0 ? "" : o; - return { value: parseFloat(i), unit: u.toLowerCase() }; - } - var $A = { ARTICLE: !0, ASIDE: !0, NAV: !0, SECTION: !0 }, - UA = { - alert: !0, - alertdialog: !0, - application: !0, - article: !0, - banner: !1, - complementary: !0, - contentinfo: !0, - dialog: !0, - form: !0, - log: !0, - main: !0, - navigation: !0, - region: !0, - search: !1, - status: !0, - tabpanel: !0, - }; - function GA(e) { - var t = e.nodeName.toUpperCase(); - return $A[t] || !1; - } - function WA(e, t) { - var r = De(e); - return (r && (UA[r] || t.roles.includes(r))) || !1; - } - function YA(e, t) { - return WA(e, t) || GA(e); - } - var KA = YA; - function XA(e, t, r) { - var a = ce(r, { dpub: !0, fallback: !0 }), - n = xo(a); - return (n && this.data(a), n); - } - var ZA = XA; - function JA(e, t, r) { - var a = ce(r, { noImplicit: !0 }); - this.data(a); - var n, i; - try { - ((n = re(ko(r)).toLowerCase()), (i = re(Ge(r)).toLowerCase())); - } catch { - return; - } - if (!i && !n) return !1; - if (!(!i && n) && i.includes(n)) return !1; - } - var QA = JA; - function eC(e, t, r) { - return Ne(r); - } - var tC = eC; - function rC(e, t, r) { - var a = Ze(r.attr("role")), - n = a.every(function (i) { - return !qr(i.toLowerCase(), { allowAbstract: !0 }); - }); - return n ? (this.data(a), !0) : !1; - } - var aC = rC; - function nC(e) { - var t = e.getAttribute("role"); - if (t === null) return !1; - var r = At(t); - return r === "widget" || r === "composite"; - } - var iC = nC; - function oC(e, t, r) { - var a = Dr().filter(function (n) { - return r.hasAttr(n); - }); - return (this.data(a), a.length > 0); - } - var uC = oC; - function sC(e, t) { - var r = Mt(e); - return ( - !r && - t.length === 2 && - t.includes("none") && - t.includes("presentation") - ); - } - function lC(e, t, r) { - var a = Ze(r.attr("role")); - return a.length <= 1 ? !1 : sC(r, a) ? void 0 : !0; - } - var cC = lC; - function dC(e, t, r) { - var a = ce(r, { dpub: !0, fallback: !0 }), - n = he.ariaRoles[a]; - return n != null && n.deprecated ? (this.data(a), !0) : !1; - } - function fC(e, t, r) { - var a, - n = - (a = r.attr("aria-brailleroledescription")) !== null && - a !== void 0 - ? a - : ""; - if (re(n) === "") return !0; - var i = r.attr("aria-roledescription"); - return typeof i != "string" - ? (this.data({ messageKey: "noRoleDescription" }), !1) - : re(i) === "" - ? (this.data({ messageKey: "emptyRoleDescription" }), !1) - : !0; - } - function pC(e, t, r) { - var a, - n = - (a = r.attr("aria-braillelabel")) !== null && a !== void 0 - ? a - : ""; - if (!n.trim()) return !0; - try { - return re(Ge(r)) !== ""; - } catch { - return; - } - } - function mC(e, t, r) { - t = Array.isArray(t.value) ? t.value : []; - var a = "", - n = "", - i = [], - o = /^aria-/, - u = ["aria-errormessage"], - s = { - "aria-controls": function () { - var c = - ["false", null].includes(r.attr("aria-haspopup")) === !1; - return ( - c && - ((a = 'aria-controls="'.concat( - r.attr("aria-controls"), - '"', - )), - (n = "controlsWithinPopup")), - r.attr("aria-expanded") !== "false" && - r.attr("aria-selected") !== "false" && - c === !1 - ); - }, - "aria-current": function (c) { - c || - ((a = 'aria-current="'.concat( - r.attr("aria-current"), - '"', - )), - (n = "ariaCurrent")); - }, - "aria-owns": function () { - return r.attr("aria-expanded") !== "false"; - }, - "aria-describedby": function (c) { - c || - ((a = 'aria-describedby="'.concat( - r.attr("aria-describedby"), - '"', - )), - (n = - x._tree && x._tree[0]._hasShadowRoot - ? "noIdShadow" - : "noId")); - }, - "aria-labelledby": function (c) { - c || - ((a = 'aria-labelledby="'.concat( - r.attr("aria-labelledby"), - '"', - )), - (n = - x._tree && x._tree[0]._hasShadowRoot - ? "noIdShadow" - : "noId")); - }, - }; - if ( - (r.attrNames.forEach(function (l) { - if (!(u.includes(l) || t.includes(l) || !o.test(l))) { - var c, - d = r.attr(l); - try { - c = _f(r, l); - } catch { - ((a = "".concat(l, '="').concat(d, '"')), (n = "idrefs")); - return; - } - (!s[l] || s[l](c)) && - !c && - (d === "" && !hC(l) - ? ((a = l), (n = "empty")) - : i.push("".concat(l, '="').concat(d, '"'))); - } - }), - i.length) - ) - return (this.data(i), !1); - if (a) { - this.data({ messageKey: n, needsReview: a }); - return; - } - return !0; - } - function hC(e) { - var t; - return ( - ((t = he.ariaAttrs[e]) === null || t === void 0 - ? void 0 - : t.type) === "string" - ); - } - function vC(e, t, r) { - t = Array.isArray(t.value) ? t.value : []; - var a = [], - n = /^aria-/; - return ( - r.attrNames.forEach(function (i) { - t.indexOf(i) === -1 && n.test(i) && !oi(i) && a.push(i); - }), - a.length ? (this.data(a), !1) : !0 - ); - } - var gC = vC; - function bC(e, t, r) { - var a = r.attrNames.filter(function (n) { - var i = he.ariaAttrs[n]; - if (!oi(n)) return !1; - var o = i.unsupported; - return O(o) !== "object" ? !!o : !ya(e, o.exceptions); - }); - return a.length ? (this.data(a), !0) : !1; - } - var yC = bC; - function wC(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = arguments.length > 2 ? arguments[2] : void 0, - a = ce(r), - n = t.supportedRoles || []; - if (n.includes(a)) return !0; - if (!(a && a !== "presentation" && a !== "none")) return !1; - } - var DC = wC; - function rp(e, t, r, a) { - var n = De(e); - if ((r || (r = Bu(n)), !r)) return null; - for (var i = r.includes("group"), o = a ? e : e.parent; o; ) { - var u = ce(o, { noPresentational: !0 }); - if (!u) o = o.parent; - else if (u === "group" && i) - (t.includes(n) && r.push(n), - (r = r.filter(function (s) { - return s !== "group"; - })), - (o = o.parent)); - else return r.includes(u) ? null : r; - } - return r; - } - function _C(e) { - for (var t = [], r = null; e; ) { - if (e.getAttribute("id")) { - var a = Oe(e.getAttribute("id")), - n = Xe(e); - ((r = n.querySelector("[aria-owns~=".concat(a, "]"))), - r && t.push(r)); - } - e = e.parentElement; - } - return t.length ? t : null; - } - function xC(e, t, r) { - var a = - t && Array.isArray(t.ownGroupRoles) ? t.ownGroupRoles : [], - n = rp(r, a); - if (!n) return !0; - var i = _C(e); - if (i) { - for (var o = 0, u = i.length; o < u; o++) - if (((n = rp(le(i[o]), a, n, !0)), !n)) return !0; - } - return (this.data(n), !1); - } - var EC = xC; - function AC(e, t, r) { - var a = t && Array.isArray(t.reviewEmpty) ? t.reviewEmpty : [], - n = De(r, { dpub: !0 }), - i = qu(n); - if (i === null) return !0; - var o = CC(r, i), - u = o.filter(function (s) { - var l = s.role, - c = s.vNode; - return c.props.nodeType === 1 && !i.includes(l); - }); - if (u.length) - return ( - this.relatedNodes( - u.map(function (s) { - var l = s.vNode; - return l; - }), - ), - this.data({ - messageKey: "unallowed", - values: u - .map(function (s) { - var l = s.vNode, - c = s.attr; - return RC(l, c); - }) - .filter(function (s, l, c) { - return c.indexOf(s) === l; - }) - .join(", "), - }), - !1 - ); - if (FC(i, o)) return !0; - if (r.attr("aria-busy") === "true") - return (this.data({ messageKey: "aria-busy" }), !0); - if ((this.data(i), !(a.includes(n) && !o.some(SC)))) return !1; - } - function CC(e, t) { - for ( - var r, - a = [], - n = wa(e), - i = function () { - if ( - (r.props.nodeType === 3 && - a.push({ vNode: r, role: null }), - r.props.nodeType !== 1 || !Re(r)) - ) - return 1; - var u = ce(r, { noPresentational: !0 }), - s = TC(r), - l = !!s || Ne(r); - if ( - (!u && !l) || - (["group", "rowgroup"].includes(u) && - t.some(function (d) { - return d === u; - })) - ) - n.push.apply(n, ne(r.children)); - else if (u || l) { - var c = s || "tabindex"; - a.push({ role: u, attr: c, vNode: r }); - } - }; - (r = n.shift()); - ) - i(); - return a; - } - function FC(e, t) { - return t.some(function (r) { - var a = r.role; - return a && e.includes(a); - }); - } - function TC(e) { - return Dr().find(function (t) { - return e.hasAttr(t); - }); - } - function RC(e, t) { - var r = e.props, - a = r.nodeName, - n = r.nodeType; - if (n === 3) return "#text"; - var i = De(e, { dpub: !0 }); - return i - ? "[role=".concat(i, "]") - : t - ? a + "[".concat(t, "]") - : a; - } - function SC(e) { - var t = e.vNode; - return t.props.nodeType === 3 - ? t.props.nodeValue.trim().length > 0 - : _a(t, !1, !0); - } - function kC(e) { - var t, - r = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - a = arguments.length > 2 ? arguments[2] : void 0, - n = De(a), - i = a.attrNames, - o = Df(n); - if ( - (Array.isArray(r[n]) && (o = Ia(r[n], o)), - !n || - !i.length || - !o.length || - OC(a, n) || - IC(a, n) || - (n === "slider" && - (t = a.attr("aria-valuetext")) !== null && - t !== void 0 && - t.trim())) - ) - return !0; - var u = xr(a), - s = o.filter(function (l) { - return !a.attr(l) && !MC(u, l); - }); - return s.length ? (this.data(s), !1) : !0; - } - function OC(e, t) { - return t === "separator" && !Ne(e); - } - function MC(e, t) { - var r; - return ( - ((r = e.implicitAttrs) === null || r === void 0 - ? void 0 - : r[t]) !== void 0 - ); - } - function IC(e, t) { - return t === "combobox" && e.attr("aria-expanded") === "false"; - } - function PC(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = arguments.length > 2 ? arguments[2] : void 0, - a = t?.elementsAllowedAriaLabel || [], - n = r.props.nodeName, - i = ce(r, { chromium: !0 }), - o = NC(r, i, n, a), - u = o.filter(function (c) { - return r.attrNames.includes(c) ? re(r.attr(c)) !== "" : !1; - }); - if (u.length === 0) return !1; - var s = r.hasAttr("role") ? "hasRole" : "noRole"; - ((s += u.length > 1 ? "Plural" : "Singular"), - this.data({ - role: i, - nodeName: n, - messageKey: s, - prohibited: u, - })); - var l = tr(r, { subtreeDescendant: !0 }); - if (re(l) === "") return !0; - } - function NC(e, t, r, a) { - var n = he.ariaRoles[t]; - return n - ? n.prohibitedAttrs || [] - : t || a.includes(r) || ap(e) === "widget" - ? [] - : ["aria-label", "aria-labelledby"]; - } - var ap = Fe(function (t) { - if (t) { - var r = ce(t, { noPresentational: !0, chromium: !0 }); - return r ? At(r) : ap(t.parent); - } - }); - function LC(e, t, r) { - var a = r.attr("aria-level"), - n = parseInt(a, 10); - if (!(n > 6)) return !0; - } - var BC = LC; - function qC(e, t, r) { - return r.attr("aria-hidden") !== "true"; - } - var jC = qC; - function zC(e, t, r) { - t = Array.isArray(t) ? t : []; - var a = r.attr("aria-errormessage"), - n = r.hasAttr("aria-errormessage"), - i = r.attr("aria-invalid"), - o = r.hasAttr("aria-invalid"); - if (!o || i === "false") return !0; - function u(s) { - if (s.trim() === "") - return he.ariaAttrs["aria-errormessage"].allowEmpty; - var l; - try { - l = s && Ot(r, "aria-errormessage")[0]; - } catch { - this.data({ messageKey: "idrefs", values: Ze(s) }); - return; - } - if (l) - return Re(l) - ? l.getAttribute("role") === "alert" || - l.getAttribute("aria-live") === "assertive" || - l.getAttribute("aria-live") === "polite" || - Ze(r.attr("aria-describedby")).indexOf(s) > -1 - : (this.data({ messageKey: "hidden", values: Ze(s) }), !1); - } - return t.indexOf(a) === -1 && n - ? (this.data(Ze(a)), u.call(this, a)) - : !0; - } - function np(e) { - var t, - r, - a = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - n = a.invalidTableRowAttrs, - i = arguments.length > 2 ? arguments[2] : void 0, - o = - (t = - n == null || (r = n.filter) === null || r === void 0 - ? void 0 - : r.call(n, function (c) { - return i.hasAttr(c); - })) !== null && t !== void 0 - ? t - : []; - if (o.length === 0) return !0; - var u = VC(i), - s = u && ce(u); - if (!s || s === "treegrid") return !0; - var l = "row".concat(o.length > 1 ? "Plural" : "Singular"); - return ( - this.data({ messageKey: l, invalidAttrs: o, ownerRole: s }), - !1 - ); - } - function VC(e) { - if (e.parent) { - var t = - 'table:not([role]), [role~="treegrid"], [role~="table"], [role~="grid"]'; - return ut(e, t); - } - } - function ip(e, t, r) { - var a = r.props, - n = a.nodeName, - i = a.type, - o = $C(r.attr("aria-checked")); - if (n !== "input" || i !== "checkbox" || !o) return !0; - var u = HC(r); - return o === u - ? !0 - : (this.data({ messageKey: "checkbox", checkState: u }), !1); - } - function HC(e) { - return e.props.indeterminate - ? "mixed" - : e.props.checked - ? "true" - : "false"; - } - function $C(e) { - return e - ? ((e = e.toLowerCase()), - ["mixed", "true"].includes(e) ? e : "false") - : ""; - } - var op = { row: np, checkbox: ip }; - function UC(e, t, r) { - var a = ce(r); - return op[a] ? op[a].call(this, e, t, r) : !0; - } - function GC(e, t, r) { - return r.attr("aria-busy") === "true"; - } - function WC(e) { - var t = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - r = arguments.length > 2 ? arguments[2] : void 0, - a = t.allowImplicit, - n = a === void 0 ? !0 : a, - i = t.ignoredTags, - o = i === void 0 ? [] : i, - u = r.props.nodeName; - if ( - o - .map(function (l) { - return l.toLowerCase(); - }) - .includes(u) - ) - return !0; - var s = vf(r, n); - return s.length ? (this.data(s), Re(r) ? !1 : void 0) : !0; - } - var YC = WC; - function KC(e, t, r) { - var a = [], - n = ce(r), - i = pf(n); - Array.isArray(t[n]) && (i = Ia(t[n].concat(i))); - var o = Ce(r.attrNames), - u; - try { - for (o.s(); !(u = o.n()).done; ) { - var s = u.value; - oi(s) && !i.includes(s) && !XC(s, r.attr(s), r) && a.push(s); - } - } catch (l) { - o.e(l); - } finally { - o.f(); - } - if (!a.length) return !0; - if ( - (this.data( - a.map(function (l) { - return l + '="' + r.attr(l) + '"'; - }), - ), - !(!n && !xu(r) && !Ne(r))) - ) - return !1; - } - function XC(e, t, r) { - return !!( - (e === "aria-required" && t === "false") || - (e === "aria-multiline" && - t === "false" && - r.hasAttr("contenteditable")) - ); - } - function ZC(e, t, r) { - var a = Ze(r.attr("role")).filter(function (n) { - return At(n) === "abstract"; - }); - return a.length > 0 ? (this.data(a), !0) : !1; - } - var JC = ZC; - function QC(e) { - var t = Fr(e.getAttribute("lang")), - r = Fr(e.getAttribute("xml:lang")); - return ri(t) && ri(r); - } - var eF = QC; - function tF(e) { - return ( - e.ownerDocument.defaultView.self === - e.ownerDocument.defaultView.top - ); - } - var rF = tF; - function aF(e, t) { - try { - var r = t.props.nodeName; - return r === "svg" ? !0 : !!ut(t, "svg"); - } catch { - return !1; - } - } - var Wu = aF; - function nF(e, t) { - return iF.every(function (r) { - return r(e, t); - }); - } - var iF = [ - function (e, t) { - return up(t); - }, - function (e, t) { - return oF(t); - }, - function (e, t) { - return !Wu(e, t); - }, - function (e, t) { - return Ne(t); - }, - function (e, t) { - return vt(t) || !uF(t); - }, - function (e) { - return !Vo(e, { noLengthCompare: !0 }); - }, - ]; - function up(e) { - return At(e) === "widget"; - } - function oF(e) { - return e.props.nodeName !== "area"; - } - var uF = Fe(function e(t) { - return t != null && t.parent - ? up(t.parent) && vt(t.parent) - ? !0 - : e(t.parent) - : !1; - }); - function sF(e, t) { - var r = ce(t); - return ["treegrid", "grid", "table"].includes(r); - } - function lF(e, t) { - var r = t.parent; - if (r.props.nodeName !== "details" || cF(t)) return !1; - var a = r.children.find(function (n) { - return n.props.nodeName === "summary"; - }); - return a === t; - } - function cF(e) { - var t, - r = - (t = e.actualNode) === null || t === void 0 - ? void 0 - : t.parentElement; - return r && r !== e.parent.actualNode; - } - function dF(e) { - return cu(e) && mn(e); - } - var fF = dF; - function pF(e, t) { - return Yt(e, 13) !== void 0 && Lu(t) === !1 && mF(t); - } - function mF(e) { - return ft(e, "*").some(function (t) { - return _a(t, !0, !0); - }); - } - function hF(e, t) { - return Mt(t, { chromiumRoles: !0 }) !== null; - } - var vF = hF; - function gF(e) { - var t = Array.from(e.parentNode.childNodes), - r = e.textContent.trim(), - a = /[.!?:;](?![.!?:;])/g; - if (r.length === 0 || (r.match(a) || []).length >= 2) return !1; - var n = t.slice(t.indexOf(e) + 1).filter(function (i) { - return ( - i.nodeName.toUpperCase() === "P" && - i.textContent.trim() !== "" - ); - }); - return n.length !== 0; - } - var bF = gF; - function yF(e, t) { - var r = De(t); - if (!r || ["none", "presentation"].includes(r)) return !0; - var a = dc[r] || {}, - n = a.accessibleNameRequired; - return !!(n || Ne(t)); - } - var sp = yF, - wF = function (t, r) { - return [sp, DF].every(function (a) { - return a(t, r); - }); - }; - function DF(e) { - var t; - if ( - !( - e != null && - (t = e.ownerDocument) !== null && - t !== void 0 && - t.createRange - ) - ) - return !0; - var r = e.ownerDocument.createRange(); - return ( - r.setStart(e, 0), - r.setEnd(e, e.childNodes.length), - r.getClientRects().length === 0 - ); - } - function _F(e, t) { - return t.props.nodeName !== "html"; - } - var xF = _F; - function EF(e, t) { - return !t.attr("role"); - } - var AF = EF; - function CF(e, t) { - var r = Lt(t.attr("tabindex")); - return r === null || r >= 0; - } - var FF = CF; - function TF(e, t) { - var r = xr(t), - a = r.namingMethods; - return !( - (a && a.length !== 0) || - (De(t) === "combobox" && - ft(t, 'input:not([type="hidden"])').length) || - Lu(t, { popupRoles: ["listbox"] }) - ); - } - var RF = TF; - function SF(e, t) { - return !(!t.hasAttr("role") || !t.attr("role").trim()); - } - var kF = SF; - function OF(e) { - return !( - !e.currentSrc || - e.hasAttribute("paused") || - e.hasAttribute("muted") - ); - } - var MF = OF; - function IF(e, t) { - var r = ce(t); - return r ? !!he.ariaRoles[r].childrenPresentational : !1; - } - var PF = IF; - function NF(e) { - var t = re(e.innerText), - r = e.getAttribute("role"); - return (r && r !== "link") || !t || !st(e) ? !1 : Vo(e); - } - var LF = NF; - function BF(e) { - return !ni(e) && !Ne(e); - } - var qF = BF; - function jF(e, t) { - return zF(t) && Re(t); - } - function zF(e) { - var t = Ur("landmark"), - r = ce(e); - if (!r) return !1; - var a = e.props.nodeName; - if (a === "section" || a === "form") { - var n = Ge(e); - return !!n; - } - return t.indexOf(r) >= 0 || r === "region"; - } - function VF(e, t) { - var r = "article, aside, main, nav, section"; - return e.hasAttribute("role") || !Nr(t, r); - } - var HF = VF; - function $F(e, t) { - if (t.props.nodeName !== "input" || t.hasAttr("type") === !1) - return !0; - var r = t.attr("type").toLowerCase(); - return ( - ["hidden", "image", "button", "submit", "reset"].includes(r) === - !1 - ); - } - var UF = $F; - function GF(e, t) { - var r = ce(e); - if (!r) return !1; - var a = Ur("widget"), - n = a.includes(r); - if (!n) return !1; - var i = Nu(); - return !( - !i.includes(r) || - (!re(ba(t)) && !re(ga(e))) || - !re(It(t)) - ); - } - var WF = GF; - function YF(e, t) { - return st(t); - } - function KF(e) { - return st(e); - } - function XF(e, t, r) { - return r.initiator; - } - var lp = XF; - function ZF(e) { - return Jc(e); - } - var JF = ZF; - function QF(e, t) { - var r = !!Ge(t); - if (!r) return !1; - var a = ce(e); - return !(a && a !== "link"); - } - var e3 = QF; - function t3(e, t) { - return !Wu(e, t); - } - var r3 = t3; - function a3(e, t) { - return ce(t) === "heading"; - } - function n3(e, t) { - return Mt(t, { chromium: !0 }) !== null; - } - var i3 = n3; - function o3(e) { - var t = e.getAttribute("title"); - return !!re(t); - } - var u3 = o3; - function s3(e, t, r) { - var a, n; - return ( - !r.initiator && - !r.focusable && - ((a = r.size) === null || a === void 0 ? void 0 : a.width) * - ((n = r.size) === null || n === void 0 ? void 0 : n.height) > - 1 - ); - } - var l3 = s3; - function c3(e) { - var t = e.getAttribute("id").trim(), - r = '*[id="'.concat(Oe(t), '"]'), - a = Array.from(Xe(e).querySelectorAll(r)); - return ( - !ii(e) && - a.every(function (n) { - return !Ne(n); - }) - ); - } - var d3 = c3; - function f3(e) { - return ii(e); - } - var p3 = f3; - function m3(e) { - var t = e.getAttribute("id").trim(), - r = '*[id="'.concat(Oe(t), '"]'), - a = Array.from(Xe(e).querySelectorAll(r)); - return !ii(e) && a.some(Ne); - } - var h3 = m3; - function v3(e) { - return ni(e); - } - var g3 = v3; - function b3(e) { - if (ni(e)) { - var t = Wt(e); - return ( - t.length >= 3 && - t[0].length >= 3 && - t[1].length >= 3 && - t[2].length >= 3 - ); - } - return !1; - } - var y3 = b3; - function w3(e, t) { - var r = t.props, - a = r.nodeName, - n = r.type; - if (a === "option" || (a === "select" && !e.options.length)) - return !1; - var i = [ - "hidden", - "range", - "color", - "checkbox", - "radio", - "image", - ]; - if ((a === "input" && i.includes(n)) || Ba(t) || wn(t)) return !1; - var o = ["input", "select", "textarea"]; - if (o.includes(a)) { - var u = E.getComputedStyle(e), - s = parseInt(u.getPropertyValue("text-indent"), 10); - if (s) { - var l = e.getBoundingClientRect(); - if ( - ((l = { - top: l.top, - bottom: l.bottom, - left: l.left + s, - right: l.right + s, - }), - !du(l, e)) - ) - return !1; - } - return !0; - } - var c = Nr(t, "label"); - if (a === "label" || c) { - var d = c || e, - f = c ? le(c) : t; - if (d.htmlFor) { - var p = Xe(d), - m = p.getElementById(d.htmlFor), - h = m && le(m); - if (h && Ba(h)) return !1; - } - var v = - 'input:not([type="hidden"],[type="image"],[type="button"],[type="submit"],[type="reset"]), select, textarea', - g = ft(f, v)[0]; - if (g && Ba(g)) return !1; - } - for (var b = [], D = t; D; ) { - if (D.props.id) { - var w = Pu(D) - .filter(function (N) { - return Ze( - N.getAttribute("aria-labelledby") || "", - ).includes(D.props.id); - }) - .map(function (N) { - return le(N); - }); - b.push.apply(b, ne(w)); - } - D = D.parent; - } - if ((b.length > 0 && b.every(Ba)) || !x3(t)) return !1; - for ( - var _ = L.createRange(), F = t.children, R = 0; - R < F.length; - R++ - ) { - var I = F[R]; - I.actualNode.nodeType === 3 && - re(I.actualNode.nodeValue) !== "" && - _.selectNodeContents(I.actualNode); - } - var V = Array.from(_.getClientRects()), - S = ma(t); - return V.some(function (N) { - var z = du(N, e); - if (!S.length) return z; - var H = S.some(function (Q) { - return uo(N, Q.boundingClientRect); - }); - return z && H; - }); - } - var D3 = w3, - _3 = { emoji: !0, nonBmp: !1, punctuations: !0 }; - function x3(e) { - var t = It(e, !1, !0); - return t === "" || Da(t, _3) === "" - ? !1 - : e.children.some(function (r) { - return r.props.nodeName === "#text" && !Po(r); - }); - } - function E3(e, t, r) { - return lp(e, t, r) ? !!e.querySelector("a[href]") : !0; - } - var A3 = E3; - function C3(e, t) { - var r = t.attr("autocomplete"); - if (!r || re(r) === "") return !1; - var a = t.props.nodeName; - if (["textarea", "input", "select"].includes(a) === !1) return !1; - var n = ["submit", "reset", "button", "hidden"]; - if (a === "input" && n.includes(t.props.type)) return !1; - var i = t.attr("aria-disabled") || "false"; - if (t.hasAttr("disabled") || i.toLowerCase() === "true") - return !1; - var o = t.attr("role"), - u = Lt(t.attr("tabindex")); - if (u < 0 && o) { - var s = he.ariaRoles[o]; - if (s === void 0 || s.type !== "widget") return !1; - } - return !(u < 0 && t.actualNode && !st(t) && !Re(t)); - } - var F3 = C3; - function T3(e, t) { - var r = De(t); - return !!Bu(r); - } - var R3 = T3; - function S3(e, t) { - var r = De(t, { dpub: !0 }); - return !!qu(r); - } - var k3 = S3; - function cp(e) { - return e - ? e.getAttribute("aria-hidden") === "true" - ? !1 - : cp(Ue(e)) - : !0; - } - function O3(e) { - return cp(Ue(e)); - } - var M3 = O3; - function I3(e, t) { - var r = /^aria-/; - return t.attrNames.some(function (a) { - return r.test(a); - }); - } - var P3 = I3; - function N3(e, t) { - return De(t, { dpub: !0, fallback: !0 }) !== null; - } - var L3 = N3; - function B3(e, t) { - var r = /^aria-/, - a = t.attrNames; - if (a.length) { - for (var n = 0, i = a.length; n < i; n++) - if (r.test(a[n])) return !0; - } - return !1; - } - var q3 = B3, - j3 = { - "abstractrole-evaluate": JC, - "accesskeys-after": gA, - "accesskeys-evaluate": hA, - "alt-space-value-evaluate": Y5, - "aria-allowed-attr-evaluate": KC, - "aria-allowed-attr-matches": q3, - "aria-allowed-role-evaluate": YC, - "aria-allowed-role-matches": L3, - "aria-busy-evaluate": GC, - "aria-conditional-attr-evaluate": UC, - "aria-conditional-checkbox-attr-evaluate": ip, - "aria-conditional-row-attr-evaluate": np, - "aria-errormessage-evaluate": zC, - "aria-has-attr-matches": P3, - "aria-hidden-body-evaluate": jC, - "aria-hidden-focus-matches": M3, - "aria-label-evaluate": Cx, - "aria-labelledby-evaluate": Ex, - "aria-level-evaluate": BC, - "aria-prohibited-attr-evaluate": PC, - "aria-required-attr-evaluate": kC, - "aria-required-children-evaluate": AC, - "aria-required-children-matches": k3, - "aria-required-parent-evaluate": EC, - "aria-required-parent-matches": R3, - "aria-roledescription-evaluate": DC, - "aria-unsupported-attr-evaluate": yC, - "aria-valid-attr-evaluate": gC, - "aria-valid-attr-value-evaluate": mC, - "attr-non-space-content-evaluate": SA, - "autocomplete-appropriate-evaluate": IA, - "autocomplete-matches": F3, - "autocomplete-valid-evaluate": OA, - "avoid-inline-spacing-evaluate": _x, - "braille-label-equivalent-evaluate": pC, - "braille-roledescription-equivalent-evaluate": fC, - "bypass-matches": A3, - "caption-evaluate": s5, - "caption-faked-evaluate": ix, - "color-contrast-evaluate": zA, - "color-contrast-matches": D3, - "css-orientation-lock-evaluate": e5, - "data-table-large-matches": y3, - "data-table-matches": g3, - "deprecatedrole-evaluate": dC, - "dlitem-evaluate": y5, - "doc-has-title-evaluate": wx, - "duplicate-id-active-matches": h3, - "duplicate-id-after": Sx, - "duplicate-id-aria-matches": p3, - "duplicate-id-evaluate": Tx, - "duplicate-id-misc-matches": d3, - "duplicate-img-label-evaluate": G5, - "exists-evaluate": bx, - "explicit-evaluate": $5, - "fallbackrole-evaluate": cC, - "focusable-content-evaluate": pA, - "focusable-disabled-evaluate": dA, - "focusable-element-evaluate": lA, - "focusable-modal-open-evaluate": uA, - "focusable-no-name-evaluate": iA, - "focusable-not-tabbable-evaluate": aA, - "frame-focusable-content-evaluate": tA, - "frame-focusable-content-matches": l3, - "frame-tested-after": o5, - "frame-tested-evaluate": n5, - "frame-title-has-text-matches": u3, - "has-alt-evaluate": vx, - "has-descendant-after": TA, - "has-descendant-evaluate": CA, - "has-global-aria-attribute-evaluate": uC, - "has-implicit-chromium-role-matches": i3, - "has-lang-evaluate": A5, - "has-text-content-evaluate": EA, - "has-widget-role-evaluate": iC, - "heading-matches": a3, - "heading-order-after": PE, - "heading-order-evaluate": IE, - "help-same-as-label-evaluate": V5, - "hidden-content-evaluate": p_, - "hidden-explicit-label-evaluate": j5, - "html-namespace-matches": r3, - "html5-scope-evaluate": ax, - "identical-links-same-purpose-after": kE, - "identical-links-same-purpose-evaluate": RE, - "identical-links-same-purpose-matches": e3, - "implicit-evaluate": B5, - "inline-style-property-evaluate": px, - "inserted-into-focus-order-matches": JF, - "internal-link-present-evaluate": Jx, - "invalid-children-evaluate": h5, - "invalidrole-evaluate": aC, - "is-element-focusable-evaluate": tC, - "is-initiator-matches": lp, - "is-on-screen-evaluate": fx, - "is-visible-matches": KF, - "is-visible-on-screen-matches": YF, - "label-content-name-mismatch-evaluate": N5, - "label-content-name-mismatch-matches": WF, - "label-matches": UF, - "landmark-has-body-context-matches": HF, - "landmark-is-top-level-evaluate": eA, - "landmark-is-unique-after": R5, - "landmark-is-unique-evaluate": F5, - "landmark-unique-matches": jF, - "layout-table-matches": qF, - "link-in-text-block-evaluate": jA, - "link-in-text-block-matches": LF, - "link-in-text-block-style-evaluate": NA, - "listitem-evaluate": m5, - "matches-definition-evaluate": xA, - "meta-refresh-evaluate": Xx, - "meta-viewport-scale-evaluate": JE, - "multiple-label-evaluate": M5, - "nested-interactive-matches": PF, - "no-autoplay-audio-evaluate": r5, - "no-autoplay-audio-matches": MF, - "no-empty-role-matches": kF, - "no-explicit-name-required-matches": sp, - "no-focusable-content-evaluate": Z5, - "no-implicit-explicit-label-evaluate": QA, - "no-naming-method-matches": RF, - "no-negative-tabindex-matches": FF, - "no-role-matches": AF, - "non-empty-if-present-evaluate": cx, - "not-html-matches": xF, - "object-is-loaded-matches": wF, - "only-dlitems-evaluate": p5, - "only-listitems-evaluate": f5, - "p-as-heading-evaluate": Wx, - "p-as-heading-matches": bF, - "page-no-duplicate-after": DA, - "page-no-duplicate-evaluate": yA, - "presentation-role-conflict-matches": vF, - "presentational-role-evaluate": sx, - "region-after": Hx, - "region-evaluate": Bx, - "same-caption-summary-evaluate": Q_, - "scope-value-evaluate": J_, - "scrollable-region-focusable-matches": pF, - "skip-link-evaluate": Nx, - "skip-link-matches": fF, - "structured-dlitems-evaluate": c5, - "summary-interactive-matches": lF, - "svg-namespace-matches": Wu, - "svg-non-empty-title-evaluate": ux, - "tabindex-evaluate": X5, - "table-or-grid-role-matches": sF, - "target-offset-evaluate": KE, - "target-size-evaluate": zE, - "td-has-header-evaluate": X_, - "td-headers-attr-evaluate": x_, - "th-has-data-cells-evaluate": __, - "title-only-evaluate": k5, - "unique-frame-title-after": Ix, - "unique-frame-title-evaluate": Ox, - "unsupportedrole-evaluate": ZA, - "valid-lang-evaluate": x5, - "valid-scrollable-semantics-evaluate": KA, - "widget-not-inline-matches": nF, - "window-is-top-matches": rF, - "xml-lang-mismatch-evaluate": D5, - "xml-lang-mismatch-matches": eF, - }, - di = j3; - function z3(e) { - ((this.id = e.id), - (this.data = null), - (this.relatedNodes = []), - (this.result = null)); - } - var Yu = z3; - function Ku(e) { - if (typeof e == "string") { - if (di[e]) return di[e]; - if (/^\s*function[\s\w]*\(/.test(e)) - return new Function("return " + e + ";")(); - throw new ReferenceError( - "Function ID does not exist in the metadata-function-map: ".concat( - e, - ), - ); - } - return e; - } - function dp() { - var e = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : {}; - return ( - (Array.isArray(e) || O(e) !== "object") && (e = { value: e }), - e - ); - } - function Wr(e) { - e && ((this.id = e.id), this.configure(e)); - } - ((Wr.prototype.enabled = !0), - (Wr.prototype.run = function (t, r, a, n, i) { - r = r || {}; - var o = r.hasOwnProperty("enabled") ? r.enabled : this.enabled, - u = this.getOptions(r.options); - if (o) { - var s = new Yu(this), - l = $i(s, r, n, i), - c; - try { - c = this.evaluate.call(l, t.actualNode, u, t, a); - } catch (d) { - (t && t.actualNode && (d.errorNode = ht.toSpec(t)), i(d)); - return; - } - l.isAsync || ((s.result = c), n(s)); - } else n(null); - }), - (Wr.prototype.runSync = function (t, r, a) { - r = r || {}; - var n = r, - i = n.enabled, - o = i === void 0 ? this.enabled : i; - if (!o) return null; - var u = this.getOptions(r.options), - s = new Yu(this), - l = $i(s); - l.async = function () { - throw new Error( - "Cannot run async check while in a synchronous run", - ); - }; - var c; - try { - c = this.evaluate.call(l, t.actualNode, u, t, a); - } catch (d) { - throw (t && t.actualNode && (d.errorNode = ht.toSpec(t)), d); - } - return ((s.result = c), s); - }), - (Wr.prototype.configure = function (t) { - var r = this; - ((!t.evaluate || di[t.evaluate]) && (this._internalCheck = !0), - t.hasOwnProperty("enabled") && (this.enabled = t.enabled), - t.hasOwnProperty("options") && - (this._internalCheck - ? (this.options = dp(t.options)) - : (this.options = t.options)), - ["evaluate", "after"] - .filter(function (a) { - return t.hasOwnProperty(a); - }) - .forEach(function (a) { - return (r[a] = Ku(t[a])); - })); - }), - (Wr.prototype.getOptions = function (t) { - return this._internalCheck - ? no(this.options, dp(t || {})) - : t || this.options; - })); - var fp = Wr; - function V3(e) { - ((this.id = e.id), - (this.result = se.NA), - (this.pageLevel = e.pageLevel), - (this.impact = null), - (this.nodes = [])); - } - var fi = V3; - function it(e, t) { - ((this._audit = t), - (this.id = e.id), - (this.selector = e.selector || "*"), - e.impact && - (me( - se.impact.includes(e.impact), - "Impact ".concat(e.impact, " is not a valid impact"), - ), - (this.impact = e.impact)), - (this.excludeHidden = - typeof e.excludeHidden == "boolean" ? e.excludeHidden : !0), - (this.enabled = typeof e.enabled == "boolean" ? e.enabled : !0), - (this.pageLevel = - typeof e.pageLevel == "boolean" ? e.pageLevel : !1), - (this.reviewOnFail = - typeof e.reviewOnFail == "boolean" ? e.reviewOnFail : !1), - (this.any = e.any || []), - (this.all = e.all || []), - (this.none = e.none || []), - (this.tags = e.tags || []), - (this.preload = !!e.preload), - (this.actIds = e.actIds), - e.matches && (this.matches = Ku(e.matches))); - } - ((it.prototype.matches = function () { - return !0; - }), - (it.prototype.gather = function (t) { - var r = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - a = "mark_gather_start_" + this.id, - n = "mark_gather_end_" + this.id, - i = "mark_isVisibleToScreenReaders_start_" + this.id, - o = "mark_isVisibleToScreenReaders_end_" + this.id; - r.performanceTimer && ve.mark(a); - var u = Ru(this.selector, t); - return ( - this.excludeHidden && - (r.performanceTimer && ve.mark(i), - (u = u.filter(function (s) { - return Re(s); - })), - r.performanceTimer && - (ve.mark(o), - ve.measure( - "rule_" + - this.id + - "#gather_axe.utils.isVisibleToScreenReaders", - i, - o, - ))), - r.performanceTimer && - (ve.mark(n), - ve.measure("rule_" + this.id + "#gather", a, n)), - u - ); - }), - (it.prototype.runChecks = function (t, r, a, n, i, o) { - var u = this, - s = kt(); - (this[t].forEach(function (l) { - var c = u._audit.checks[l.id || l], - d = Xn(c, u.id, a); - s.defer(function (f, p) { - c.run(r, d, n, f, p); - }); - }), - s - .then(function (l) { - ((l = l.filter(function (c) { - return c; - })), - i({ type: t, results: l })); - }) - .catch(o)); - }), - (it.prototype.runChecksSync = function (t, r, a, n) { - var i = this, - o = []; - return ( - this[t].forEach(function (u) { - var s = i._audit.checks[u.id || u], - l = Xn(s, i.id, a); - o.push(s.runSync(r, l, n)); - }), - (o = o.filter(function (u) { - return u; - })), - { type: t, results: o } - ); - }), - (it.prototype.run = function (t) { - var r = this, - a = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}, - n = arguments.length > 2 ? arguments[2] : void 0, - i = arguments.length > 3 ? arguments[3] : void 0; - a.performanceTimer && this._trackPerformance(); - var o = kt(), - u = new fi(this), - s; - try { - s = this.gatherAndMatchNodes(t, a); - } catch (l) { - i(new Jr({ cause: l, ruleId: this.id })); - return; - } - (a.performanceTimer && this._logGatherPerformance(s), - s.forEach(function (l) { - o.defer(function (c, d) { - var f = kt(); - (["any", "all", "none"].forEach(function (p) { - f.defer(function (m, h) { - r.runChecks(p, l, a, t, m, h); - }); - }), - f - .then(function (p) { - var m = pp(p); - (m && - ((m.node = new Ht(l)), - u.nodes.push(m), - r.reviewOnFail && - (["any", "all"].forEach(function (h) { - m[h].forEach(function (v) { - v.result === !1 && (v.result = void 0); - }); - }), - m.none.forEach(function (h) { - h.result === !0 && (h.result = void 0); - }))), - c()); - }) - .catch(function (p) { - return d(p); - })); - }); - }), - o - .then(function () { - (a.performanceTimer && r._logRulePerformance(), - setTimeout(function () { - n(u); - }, 0)); - }) - .catch(function (l) { - (a.performanceTimer && r._logRulePerformance(), i(l)); - })); - }), - (it.prototype.runSync = function (t) { - var r = this, - a = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}; - a.performanceTimer && this._trackPerformance(); - var n = new fi(this), - i; - try { - i = this.gatherAndMatchNodes(t, a); - } catch (o) { - throw new Jr({ cause: o, ruleId: this.id }); - } - return ( - a.performanceTimer && this._logGatherPerformance(i), - i.forEach(function (o) { - var u = []; - ["any", "all", "none"].forEach(function (l) { - u.push(r.runChecksSync(l, o, a, t)); - }); - var s = pp(u); - s && - ((s.node = o.actualNode ? new Ht(o) : null), - n.nodes.push(s), - r.reviewOnFail && - (["any", "all"].forEach(function (l) { - s[l].forEach(function (c) { - c.result === !1 && (c.result = void 0); - }); - }), - s.none.forEach(function (l) { - l.result === !0 && (l.result = void 0); - }))); - }), - a.performanceTimer && this._logRulePerformance(), - n - ); - }), - (it.prototype._trackPerformance = function () { - ((this._markStart = "mark_rule_start_" + this.id), - (this._markEnd = "mark_rule_end_" + this.id), - (this._markChecksStart = "mark_runchecks_start_" + this.id), - (this._markChecksEnd = "mark_runchecks_end_" + this.id)); - }), - (it.prototype._logGatherPerformance = function (t) { - (vr("gather (", t.length, "):", ve.timeElapsed() + "ms"), - ve.mark(this._markChecksStart)); - }), - (it.prototype._logRulePerformance = function () { - (ve.mark(this._markChecksEnd), - ve.mark(this._markEnd), - ve.measure( - "runchecks_" + this.id, - this._markChecksStart, - this._markChecksEnd, - ), - ve.measure( - "rule_" + this.id, - this._markStart, - this._markEnd, - )); - })); - function pp(e) { - if (e.length) { - var t = !1, - r = {}; - return ( - e.forEach(function (a) { - var n = a.results.filter(function (i) { - return i; - }); - ((r[a.type] = n), n.length && (t = !0)); - }), - t ? r : null - ); - } - } - it.prototype.gatherAndMatchNodes = function (t, r) { - var a = this, - n = "mark_matches_start_" + this.id, - i = "mark_matches_end_" + this.id, - o = this.gather(t, r); - return ( - r.performanceTimer && ve.mark(n), - (o = o.filter(function (u) { - return a.matches(u.actualNode, u, t); - })), - r.performanceTimer && - (ve.mark(i), - ve.measure("rule_" + this.id + "#matches", n, i)), - o - ); - }; - function H3(e) { - return cn(e) - .map(function (t) { - var r = e._audit.checks[t.id || t]; - return r && typeof r.after == "function" ? r : null; - }) - .filter(Boolean); - } - function $3(e, t) { - var r = []; - return ( - e.forEach(function (a) { - var n = cn(a); - n.forEach(function (i) { - i.id === t && ((i.node = a.node), r.push(i)); - }); - }), - r - ); - } - function U3(e) { - return e.filter(function (t) { - return t.filtered !== !0; - }); - } - function G3(e) { - var t = ["any", "all", "none"], - r = e.nodes.filter(function (a) { - var n = 0; - return ( - t.forEach(function (i) { - ((a[i] = U3(a[i])), (n += a[i].length)); - }), - n > 0 - ); - }); - return ( - e.pageLevel && - r.length && - (r = [ - r.reduce(function (a, n) { - if (a) - return ( - t.forEach(function (i) { - a[i].push.apply(a[i], n[i]); - }), - a - ); - }), - ]), - r - ); - } - ((it.prototype.after = function (t, r) { - var a = this, - n = H3(this), - i = this.id; - return ( - n.forEach(function (o) { - var u = $3(t.nodes, o.id), - s = Xn(o, i, r), - l = o.after(u, s.options); - (a.reviewOnFail && - l.forEach(function (c) { - var d = - (a.any.includes(c.id) || a.all.includes(c.id)) && - c.result === !1, - f = a.none.includes(c.id) && c.result === !0; - (d || f) && (c.result = void 0); - }), - u.forEach(function (c) { - (delete c.node, l.indexOf(c) === -1 && (c.filtered = !0)); - })); - }), - (t.nodes = G3(t)), - t - ); - }), - (it.prototype.configure = function (t) { - (t.hasOwnProperty("selector") && (this.selector = t.selector), - t.hasOwnProperty("excludeHidden") && - (this.excludeHidden = - typeof t.excludeHidden == "boolean" - ? t.excludeHidden - : !0), - t.hasOwnProperty("enabled") && - (this.enabled = - typeof t.enabled == "boolean" ? t.enabled : !0), - t.hasOwnProperty("pageLevel") && - (this.pageLevel = - typeof t.pageLevel == "boolean" ? t.pageLevel : !1), - t.hasOwnProperty("reviewOnFail") && - (this.reviewOnFail = - typeof t.reviewOnFail == "boolean" ? t.reviewOnFail : !1), - t.hasOwnProperty("any") && (this.any = t.any), - t.hasOwnProperty("all") && (this.all = t.all), - t.hasOwnProperty("none") && (this.none = t.none), - t.hasOwnProperty("tags") && (this.tags = t.tags), - t.hasOwnProperty("actIds") && (this.actIds = t.actIds), - t.hasOwnProperty("matches") && (this.matches = Ku(t.matches)), - t.impact && - (me( - se.impact.includes(t.impact), - "Impact ".concat(t.impact, " is not a valid impact"), - ), - (this.impact = t.impact))); - })); - var Yr = ot($s()), - Kr = /\{\{.+?\}\}/g, - W3 = (function () { - function e(t) { - (Tt(this, e), - (this.lang = "en"), - (this.defaultConfig = t), - (this.standards = he), - this._init(), - (this._defaultLocale = null)); - } - return Rt(e, [ - { - key: "_setDefaultLocale", - value: function () { - if (!this._defaultLocale) { - for ( - var r = { - checks: {}, - rules: {}, - failureSummaries: {}, - incompleteFallbackMessage: "", - lang: this.lang, - }, - a = Object.keys(this.data.checks), - n = 0; - n < a.length; - n++ - ) { - var i = a[n], - o = this.data.checks[i], - u = o.messages, - s = u.pass, - l = u.fail, - c = u.incomplete; - r.checks[i] = { pass: s, fail: l, incomplete: c }; - } - for ( - var d = Object.keys(this.data.rules), f = 0; - f < d.length; - f++ - ) { - var p = d[f], - m = this.data.rules[p], - h = m.description, - v = m.help; - r.rules[p] = { description: h, help: v }; - } - for ( - var g = Object.keys(this.data.failureSummaries), - b = 0; - b < g.length; - b++ - ) { - var D = g[b], - w = this.data.failureSummaries[D], - _ = w.failureMessage; - r.failureSummaries[D] = { failureMessage: _ }; - } - ((r.incompleteFallbackMessage = - this.data.incompleteFallbackMessage), - (this._defaultLocale = r)); - } - }, - }, - { - key: "_resetLocale", - value: function () { - var r = this._defaultLocale; - r && this.applyLocale(r); - }, - }, - { - key: "_applyCheckLocale", - value: function (r) { - for (var a = Object.keys(r), n = 0; n < a.length; n++) { - var i = a[n]; - if (!this.data.checks[i]) - throw new Error( - 'Locale provided for unknown check: "'.concat( - i, - '"', - ), - ); - this.data.checks[i] = K3(this.data.checks[i], r[i]); - } - }, - }, - { - key: "_applyRuleLocale", - value: function (r) { - for (var a = Object.keys(r), n = 0; n < a.length; n++) { - var i = a[n]; - if (!this.data.rules[i]) - throw new Error( - 'Locale provided for unknown rule: "'.concat( - i, - '"', - ), - ); - this.data.rules[i] = X3(this.data.rules[i], r[i]); - } - }, - }, - { - key: "_applyFailureSummaries", - value: function (r) { - for (var a = Object.keys(r), n = 0; n < a.length; n++) { - var i = a[n]; - if (!this.data.failureSummaries[i]) - throw new Error( - 'Locale provided for unknown failureMessage: "'.concat( - i, - '"', - ), - ); - this.data.failureSummaries[i] = Z3( - this.data.failureSummaries[i], - r[i], - ); - } - }, - }, - { - key: "applyLocale", - value: function (r) { - (this._setDefaultLocale(), - r.checks && this._applyCheckLocale(r.checks), - r.rules && this._applyRuleLocale(r.rules), - r.failureSummaries && - this._applyFailureSummaries( - r.failureSummaries, - "failureSummaries", - ), - r.incompleteFallbackMessage && - (this.data.incompleteFallbackMessage = J3( - this.data.incompleteFallbackMessage, - r.incompleteFallbackMessage, - )), - r.lang && (this.lang = r.lang)); - }, - }, - { - key: "setAllowedOrigins", - value: function (r) { - var a = hp(); - this.allowedOrigins = []; - var n = Ce(r), - i; - try { - for (n.s(); !(i = n.n()).done; ) { - var o = i.value; - if (o === se.allOrigins) { - this.allowedOrigins = ["*"]; - return; - } else - o !== se.sameOrigin - ? this.allowedOrigins.push(o) - : a && this.allowedOrigins.push(a); - } - } catch (u) { - n.e(u); - } finally { - n.f(); - } - }, - }, - { - key: "_init", - value: function () { - var r = Y3(this.defaultConfig); - ((this.lang = r.lang || "en"), - (this.reporter = r.reporter), - (this.commands = {}), - (this.rules = []), - (this.checks = {}), - (this.brand = "axe"), - (this.application = "axeAPI"), - (this.tagExclude = ["experimental", "deprecated"]), - (this.noHtml = r.noHtml), - (this.allowedOrigins = r.allowedOrigins), - vp(r.rules, this, "addRule"), - vp(r.checks, this, "addCheck"), - (this.data = {}), - (this.data.checks = (r.data && r.data.checks) || {}), - (this.data.rules = (r.data && r.data.rules) || {}), - (this.data.failureSummaries = - (r.data && r.data.failureSummaries) || {}), - (this.data.incompleteFallbackMessage = - (r.data && r.data.incompleteFallbackMessage) || ""), - this._constructHelpUrls()); - }, - }, - { - key: "registerCommand", - value: function (r) { - this.commands[r.id] = r.callback; - }, - }, - { - key: "addRule", - value: function (r) { - r.metadata && (this.data.rules[r.id] = r.metadata); - var a = this.getRule(r.id); - a ? a.configure(r) : this.rules.push(new it(r, this)); - }, - }, - { - key: "addCheck", - value: function (r) { - var a = r.metadata; - (O(a) === "object" && - ((this.data.checks[r.id] = a), - O(a.messages) === "object" && - Object.keys(a.messages) - .filter(function (n) { - return ( - a.messages.hasOwnProperty(n) && - typeof a.messages[n] == "string" - ); - }) - .forEach(function (n) { - a.messages[n].indexOf("function") === 0 && - (a.messages[n] = new Function( - "return " + a.messages[n] + ";", - )()); - })), - this.checks[r.id] - ? this.checks[r.id].configure(r) - : (this.checks[r.id] = new fp(r))); - }, - }, - { - key: "run", - value: function (r, a, n, i) { - (this.normalizeOptions(a), - Ht.setRunOptions(a), - (x._selectCache = [])); - var o = Q3(this.rules, r, a), - u = o.now, - s = o.later, - l = kt(); - u.forEach(function (f) { - l.defer(gp(f, r, a)); - }); - var c = kt(); - s.length && - c.defer(function (f) { - $1(a) - .then(function (p) { - return f(p); - }) - .catch(function (p) { - (console.warn( - "Couldn't load preload assets: ", - p, - ), - f(void 0)); - }); - }); - var d = kt(); - (d.defer(l), - d.defer(c), - d - .then(function (f) { - var p = f.pop(); - if (p && p.length) { - var m = p[0]; - m && (r = de({}, r, m)); - } - var h = f[0]; - if (!s.length) { - ((x._selectCache = void 0), - n( - h.filter(function (g) { - return !!g; - }), - )); - return; - } - var v = kt(); - (s.forEach(function (g) { - var b = gp(g, r, a); - v.defer(b); - }), - v - .then(function (g) { - ((x._selectCache = void 0), - n( - h.concat(g).filter(function (b) { - return !!b; - }), - )); - }) - .catch(i)); - }) - .catch(i)); - }, - }, - { - key: "after", - value: function (r, a) { - var n = this.rules; - return r.map(function (i) { - var o = fa(n, "id", i.id); - if (!o) - throw new Error( - "Result for unknown rule. You may be running mismatch axe-core versions", - ); - return o.after(i, a); - }); - }, - }, - { - key: "getRule", - value: function (r) { - return this.rules.find(function (a) { - return a.id === r; - }); - }, - }, - { - key: "normalizeOptions", - value: function (r) { - var a = this, - n = [], - i = []; - if ( - (a.rules.forEach(function (c) { - (i.push(c.id), - c.tags.forEach(function (d) { - n.includes(d) || n.push(d); - })); - }), - ["object", "string"].includes(O(r.runOnly))) - ) { - if ( - (typeof r.runOnly == "string" && - (r.runOnly = [r.runOnly]), - Array.isArray(r.runOnly)) - ) { - var o = r.runOnly.find(function (c) { - return n.includes(c); - }), - u = r.runOnly.find(function (c) { - return i.includes(c); - }); - if (o && u) - throw new Error( - "runOnly cannot be both rules and tags", - ); - u - ? (r.runOnly = { type: "rule", values: r.runOnly }) - : (r.runOnly = { type: "tag", values: r.runOnly }); - } - var s = r.runOnly; - if ( - (s.value && - !s.values && - ((s.values = s.value), delete s.value), - !Array.isArray(s.values) || s.values.length === 0) - ) - throw new Error( - "runOnly.values must be a non-empty array", - ); - if (["rule", "rules"].includes(s.type)) - ((s.type = "rule"), - s.values.forEach(function (c) { - if (!i.includes(c)) - throw new Error( - "unknown rule `" + c + "` in options.runOnly", - ); - })); - else if (["tag", "tags", void 0].includes(s.type)) { - s.type = "tag"; - var l = s.values.filter(function (c) { - return ( - !n.includes(c) && !/wcag2[1-3]a{1,3}/.test(c) - ); - }); - l.length !== 0 && - x.log( - "Could not find tags `" + l.join("`, `") + "`", - ); - } else - throw new Error( - "Unknown runOnly type '".concat(s.type, "'"), - ); - } - return ( - O(r.rules) === "object" && - Object.keys(r.rules).forEach(function (c) { - if (!i.includes(c)) - throw new Error( - "unknown rule `" + c + "` in options.rules", - ); - }), - r - ); - }, - }, - { - key: "setBranding", - value: function (r) { - var a = { - brand: this.brand, - application: this.application, - }; - (typeof r == "string" && (this.application = r), - r && - r.hasOwnProperty("brand") && - r.brand && - typeof r.brand == "string" && - (this.brand = r.brand), - r && - r.hasOwnProperty("application") && - r.application && - typeof r.application == "string" && - (this.application = r.application), - this._constructHelpUrls(a)); - }, - }, - { - key: "_constructHelpUrls", - value: function () { - var r = this, - a = - arguments.length > 0 && arguments[0] !== void 0 - ? arguments[0] - : null, - n = (x.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ - "x.y", - ])[0]; - this.rules.forEach(function (i) { - r.data.rules[i.id] || (r.data.rules[i.id] = {}); - var o = r.data.rules[i.id]; - (typeof o.helpUrl != "string" || - (a && o.helpUrl === bp(a, i.id, n))) && - (o.helpUrl = bp(r, i.id, n)); - }); - }, - }, - { - key: "resetRulesAndChecks", - value: function () { - (this._init(), this._resetLocale()); - }, - }, - ]); - })(), - mp = W3; - function hp() { - if (E.origin && E.origin !== "null") return E.origin; - if ( - E.location && - E.location.origin && - E.location.origin !== "null" - ) - return E.location.origin; - } - function Y3(e) { - var t; - if ( - (e ? ((t = $t(e)), (t.commons = e.commons)) : (t = {}), - (t.reporter = t.reporter || null), - (t.noHtml = t.noHtml || !1), - !t.allowedOrigins) - ) { - var r = hp(); - t.allowedOrigins = r ? [r] : []; - } - return ( - (t.rules = t.rules || []), - (t.checks = t.checks || []), - (t.data = de({ checks: {}, rules: {} }, t.data)), - t - ); - } - function vp(e, t, r) { - var a, n; - for (a = 0, n = e.length; a < n; a++) t[r](e[a]); - } - var K3 = function (t, r) { - var a = r.pass, - n = r.fail; - return ( - typeof a == "string" && - Kr.test(a) && - (a = Yr.default.compile(a)), - typeof n == "string" && - Kr.test(n) && - (n = Yr.default.compile(n)), - de({}, t, { - messages: { - pass: a || t.messages.pass, - fail: n || t.messages.fail, - incomplete: - O(t.messages.incomplete) === "object" - ? de({}, t.messages.incomplete, r.incomplete) - : r.incomplete, - }, - }) - ); - }, - X3 = function (t, r) { - var a = r.help, - n = r.description; - return ( - typeof a == "string" && - Kr.test(a) && - (a = Yr.default.compile(a)), - typeof n == "string" && - Kr.test(n) && - (n = Yr.default.compile(n)), - de({}, t, { - help: a || t.help, - description: n || t.description, - }) - ); - }, - Z3 = function (t, r) { - var a = r.failureMessage; - return ( - typeof a == "string" && - Kr.test(a) && - (a = Yr.default.compile(a)), - de({}, t, { failureMessage: a || t.failureMessage }) - ); - }, - J3 = function (t, r) { - return ( - typeof r == "string" && - Kr.test(r) && - (r = Yr.default.compile(r)), - r || t - ); - }; - function Q3(e, t, r) { - var a = { now: [], later: [] }, - n = e.reduce(function (i, o) { - return K1(o, t, r) - ? o.preload - ? (i.later.push(o), i) - : (i.now.push(o), i) - : i; - }, a); - return n; - } - function gp(e, t, r) { - return ( - r.performanceTimer && ve.mark("mark_rule_start_" + e.id), - function (a, n) { - e.run( - t, - r, - function (i) { - a(i); - }, - function (i) { - if (r.debug) n(i); - else { - var o = Object.assign(new fi(e), { - result: se.CANTTELL, - description: - "An error occured while running this rule", - message: i.message, - stack: i.stack, - error: i, - errorNode: i.errorNode, - }); - a(o); - } - }, - ); - } - ); - } - function bp(e, t, r) { - var a = e.brand, - n = e.application, - i = e.lang; - return ( - se.helpUrlBase + - a + - "/" + - (r || x.version.substring(0, x.version.lastIndexOf("."))) + - "/" + - t + - "?application=" + - encodeURIComponent(n) + - (i && i !== "en" ? "&lang=" + encodeURIComponent(i) : "") - ); - } - function yp(e) { - var t = E && "Node" in E && "NodeList" in E, - r = !!L; - if (!(t && r)) { - if (!e || !e.ownerDocument) - throw new Error( - 'Required "window" or "document" globals not defined and cannot be deduced from the context. Either set the globals before running or pass in a valid Element.', - ); - (r || (ue.set("globalDocumentSet", !0), (L = e.ownerDocument)), - t || (ue.set("globalWindowSet", !0), (E = L.defaultView))); - } - } - function eT() { - (ue.get("globalDocumentSet") && - (ue.set("globalDocumentSet", !1), (L = null)), - ue.get("globalWindowSet") && - (ue.set("globalWindowSet", !1), (E = null))); - } - function tT() { - (eT(), - x._memoizedFns.forEach(function (e) { - return e.clear(); - }), - ue.clear(), - (x._tree = void 0), - (x._selectorData = void 0), - (x._selectCache = void 0)); - } - var lr = tT; - function wp(e, t, r, a) { - try { - ((e = new Zn(e)), - (x._tree = e.flatTree), - (x._selectorData = rn(e.flatTree))); - } catch (o) { - return (lr(), a(o)); - } - var n = kt(), - i = x._audit; - (t.performanceTimer && ve.auditStart(), - e.frames.length && - t.iframes !== !1 && - n.defer(function (o, u) { - Cl(e, t, "rules", null, o, u); - }), - n.defer(function (o, u) { - i.run(e, t, o, u); - }), - n - .then(function (o) { - try { - t.performanceTimer && ve.auditEnd(); - var u = dn( - o.map(function (s) { - return { results: s }; - }), - ); - e.initiator && - (t.performanceTimer && ve.mark("auditAfterStart"), - (u = i.after(u, t)), - t.performanceTimer && - (ve.mark("auditAfterEnd"), - ve.measure( - "audit.after", - "auditAfterStart", - "auditAfterEnd", - ), - ve.logMeasures("audit.after")), - u.forEach(ei), - (u = u.map(na))); - try { - r(u, lr); - } catch (s) { - (lr(), vr(s)); - } - } catch (s) { - (lr(), a(s)); - } - }) - .catch(function (o) { - (lr(), a(o)); - })); - } - function rT(e) { - x._audit = new mp(e); - } - function aT(e, t, r) { - var a = r, - n = function (s) { - (s instanceof Error || (s = new Error(s)), r(s)); - }, - i = (e && e.context) || {}; - i.hasOwnProperty("include") && - !i.include.length && - (i.include = [L]); - var o = (e && e.options) || {}; - switch (e.command) { - case "rules": - return wp( - i, - o, - function (u, s) { - ((u = ht.mapRawResults(u)), a(u), s()); - }, - n, - ); - case "cleanup-plugin": - return nf(a, n); - default: - if ( - x._audit && - x._audit.commands && - x._audit.commands[e.command] - ) - return x._audit.commands[e.command](e, r); - } - } - E.top !== E && - (Et.subscribe("axe.start", aT), - Et.subscribe("axe.ping", function (e, t, r) { - r({ axe: !0 }); - })); - function ja(e) { - ((this._run = e.run), - (this._collect = e.collect), - (this._registry = {}), - e.commands.forEach(function (t) { - x._audit.registerCommand(t); - })); - } - ((ja.prototype.run = function () { - return this._run.apply(this, arguments); - }), - (ja.prototype.collect = function () { - return this._collect.apply(this, arguments); - }), - (ja.prototype.cleanup = function (t) { - var r = x.utils.queue(), - a = this; - (Object.keys(this._registry).forEach(function (n) { - r.defer(function (i) { - a._registry[n].cleanup(i); - }); - }), - r.then(t)); - }), - (ja.prototype.add = function (t) { - this._registry[t.id] = t; - })); - function nT(e) { - x.plugins[e.id] = new ja(e); - } - var iT = nT; - function oT() { - var e = x._audit; - if (!e) throw new Error("No audit configured"); - (e.resetRulesAndChecks(), $b()); - } - var uT = oT; - function sT(e, t) { - var r = - arguments.length > 2 && arguments[2] !== void 0 - ? arguments[2] - : {}; - ((r.reporter = r.reporter || x._audit.reporter || "v1"), - (x._selectorData = {}), - t instanceof $e || (t = new af(t))); - var a = S1(e); - if (!a) throw new Error("unknown rule `" + e + "`"); - a = Object.create(a, { excludeHidden: { value: !1 } }); - var n = { - initiator: !0, - include: [t], - exclude: [], - frames: [], - page: !1, - focusable: !0, - size: {}, - flatTree: [], - }, - i = a.runSync(n, r); - (ei(i), na(i)); - var o = Ks([i]); - return ( - o.violations.forEach(function (u) { - return u.nodes.forEach(function (s) { - s.failureSummary = gu(s); - }); - }), - de({}, ur(), o, { toolOptions: r }) - ); - } - function Dp(e) { - var t, - r, - a, - n = $(e, 3), - i = n[0], - o = n[1], - u = n[2], - s = new TypeError("axe.run arguments are invalid"); - if (!I1(i)) { - if (u !== void 0) throw s; - ((u = o), (o = i), (i = L)); - } - if (O(o) !== "object") { - if (u !== void 0) throw s; - ((u = o), (o = {})); - } - if (typeof u != "function" && u !== void 0) throw s; - return ( - (o = $t(o)), - (o.reporter = - (t = - (r = o.reporter) !== null && r !== void 0 - ? r - : (a = x._audit) === null || a === void 0 - ? void 0 - : a.reporter) !== null && t !== void 0 - ? t - : "v1"), - { context: i, options: o, callback: u } - ); - } - var Xu = function () {}; - function lT() { - for ( - var e = arguments.length, t = new Array(e), r = 0; - r < e; - r++ - ) - t[r] = arguments[r]; - yp(t[0]); - var a = Dp(t), - n = a.context, - i = a.options, - o = a.callback, - u = o === void 0 ? Xu : o, - s = cT(u), - l = s.thenable, - c = s.resolve, - d = s.reject; - try { - (me(x._audit, "No audit configured"), - me( - !x._running, - "Axe is already running. Use `await axe.run()` to wait for the previous run to finish before starting a new run.", - )); - } catch (m) { - return fT(m, u); - } - ((x._running = !0), i.performanceTimer && ve.start()); - function f(m, h) { - var v = function (D) { - (i.performanceTimer && - (ve.mark("reporterEnd"), - ve.measure("reporter", "reporterStart", "reporterEnd"), - ve.logMeasures("reporter"), - ve.end()), - (x._running = !1), - h()); - try { - c(D); - } catch (w) { - x.log(w); - } - }, - g = function (D) { - ((x._running = !1), h()); - try { - d(D); - } catch (w) { - x.log(w); - } - }; - try { - (i.performanceTimer && ve.mark("reporterStart"), - dT(m, i, v, g)); - } catch (b) { - g(b); - } - } - function p(m) { - (i.performanceTimer && ve.end(), (x._running = !1), u(m), d(m)); - } - return (x._runRules(n, i, f, p), l); - } - function cT(e) { - var t, r, a; - return ( - typeof Promise == "function" && e === Xu - ? (t = new Promise(function (n, i) { - ((r = i), (a = n)); - })) - : ((a = function (i) { - return e(null, i); - }), - (r = function (i) { - return e(i); - })), - { thenable: t, reject: r, resolve: a } - ); - } - function dT(e, t, r, a) { - var n = Ou(t.reporter), - i = n(e, t, r, a); - i !== void 0 && r(i); - } - function fT(e, t) { - if (typeof t == "function" && t !== Xu) { - t(e.message); - return; - } - throw e; - } - function pT() { - for ( - var e = arguments.length, t = new Array(e), r = 0; - r < e; - r++ - ) - t[r] = arguments[r]; - var a = Dp(t), - n = a.options, - i = a.context; - (me(x._audit, "Axe is not configured. Audit is missing."), - me( - !x._running, - "Axe is already running. Use `await axe.run()` to wait for the previous run to finish before starting a new run.", - )); - var o = new Zn(i, x._tree); - return ( - (x._tree = o.flatTree), - (x._selectorData = rn(o.flatTree)), - (x._running = !0), - (n.elementRef = !1), - new Promise(function (u, s) { - x._audit.run(o, n, u, s); - }) - .then(function (u) { - u = ht.mapRawResults(u); - var s = o.frames.map(function (c) { - var d = c.node; - return ht.toSpec(d); - }), - l; - return ( - o.initiator && (l = ur()), - (x._running = !1), - lr(), - { results: u, frames: s, environmentData: l } - ); - }) - .catch(function (u) { - return ((x._running = !1), lr(), Promise.reject(u)); - }) - ); - } - function mT(e) { - var t, - r, - a, - n = - arguments.length > 1 && arguments[1] !== void 0 - ? arguments[1] - : {}; - n = $t(n); - var i = - e.find(function (s) { - return s.environmentData; - }) || {}, - o = i.environmentData; - (x._audit.normalizeOptions(n), - (n.reporter = - (t = - (r = n.reporter) !== null && r !== void 0 - ? r - : (a = x._audit) === null || a === void 0 - ? void 0 - : a.reporter) !== null && t !== void 0 - ? t - : "v1"), - hT(e)); - var u = dn(e); - return ( - (u = x._audit.after(u, n)), - u.forEach(ei), - (u = u.map(na)), - gT(u, de({ environmentData: o }, n)) - ); - } - function hT(e) { - var t = [], - r = Ce(e), - a; - try { - for (r.s(); !(a = r.n()).done; ) { - var n = a.value, - i = t.shift(); - if (n) { - n.frameSpec = i ?? null; - var o = vT(n); - t.unshift.apply(t, ne(o)); - } - } - } catch (u) { - r.e(u); - } finally { - r.f(); - } - } - function vT(e) { - var t = e.frames, - r = e.frameSpec; - return r - ? t.map(function (a) { - return ht.mergeSpecs(a, r); - }) - : t; - } - function gT(e, t) { - return new Promise(function (r, a) { - var n = Ou(t.reporter); - n(e, t, r, a); - }); - } - function bT(e) { - if (x._tree) - throw new Error( - "Axe is already setup. Call `axe.teardown()` before calling `axe.setup` again.", - ); - return ( - e && - O(e.documentElement) === "object" && - O(e.defaultView) === "object" && - (e = e.documentElement), - yp(e), - (x._tree = hu(e)), - (x._selectorData = rn(x._tree)), - x._tree[0] - ); - } - var yT = bT, - wT = function (t, r, a) { - (console.warn( - '"na" reporter will be deprecated in axe v4.0. Use the "v2" reporter instead.', - ), - typeof r == "function" && ((a = r), (r = {}))); - var n = r, - i = n.environmentData, - o = qe(n, Bp); - a(de({}, ur(i), { toolOptions: o }, Ma(t, r))); - }, - DT = wT, - _T = function (t, r, a) { - typeof r == "function" && ((a = r), (r = {})); - var n = r, - i = n.environmentData, - o = qe(n, qp); - r.resultTypes = ["violations"]; - var u = Ma(t, r), - s = u.violations; - a(de({}, ur(i), { toolOptions: o, violations: s })); - }, - xT = _T, - ET = function (t, r, a) { - if ( - (typeof r == "function" && ((a = r), (r = {})), - !t || !Array.isArray(t)) - ) - return a(t); - var n = t.map(function (i) { - for ( - var o = de({}, i), - u = [ - "passes", - "violations", - "incomplete", - "inapplicable", - ], - s = 0, - l = u; - s < l.length; - s++ - ) { - var c = l[s]; - o[c] = ht.mapRawNodeResults(o[c]); - } - return o; - }); - a(n); - }, - _p = ET, - AT = function (t, r, a) { - typeof r == "function" && ((a = r), (r = {})); - var n = r, - i = n.environmentData, - o = qe(n, jp); - _p(t, o, function (u) { - var s = ur(i); - a({ raw: u, env: s }); - }); - }, - CT = AT, - FT = function (t, r, a) { - typeof r == "function" && ((a = r), (r = {})); - var n = r, - i = n.environmentData, - o = qe(n, zp), - u = Ma(t, r), - s = function (c) { - c.nodes.forEach(function (d) { - d.failureSummary = gu(d); - }); - }; - (u.incomplete.forEach(s), - u.violations.forEach(s), - a(de({}, ur(i), { toolOptions: o }, u))); - }, - TT = FT, - RT = function (t, r, a) { - typeof r == "function" && ((a = r), (r = {})); - var n = r, - i = n.environmentData, - o = qe(n, Vp), - u = Ma(t, r); - a(de({}, ur(i), { toolOptions: o }, u)); - }, - ST = RT, - kT = { - base: { - Audit: mp, - CheckResult: Yu, - Check: fp, - Context: Zn, - RuleResult: fi, - Rule: it, - metadataFunctionMap: di, - }, - public: { reporters: Pa }, - helpers: { - failureSummary: gu, - incompleteFallbackMessage: bu, - processAggregate: Ma, - }, - utils: { - setDefaultFrameMessenger: wl, - cacheNodeSelectors: _1, - getNodesMatchingExpression: w1, - convertSelector: nn, - }, - commons: { - dom: { - nativelyHidden: Sl, - displayHidden: kl, - visibilityHidden: Ol, - contentVisibiltyHidden: Ml, - ariaHidden: Il, - opacityHidden: Pl, - scrollHidden: Nl, - overflowHidden: Ll, - clipHidden: Bl, - areaHidden: so, - detailsHidden: ql, - }, - }, - }, - OT = kT; - ((x._thisWillBeDeletedDoNotUse = OT), - (x.constants = se), - (x.log = vr), - (x.AbstractVirtualNode = $e), - (x.SerialVirtualNode = af), - (x.VirtualNode = fu), - (x._cache = ue), - (x.imports = id), - (x.cleanup = nf), - (x.configure = s_), - (x.frameMessenger = l_), - (x.getRules = d_), - (x._load = rT), - (x.plugins = {}), - (x.registerPlugin = iT), - (x.hasReporter = uf), - (x.getReporter = Ou), - (x.addReporter = o_), - (x.reset = uT), - (x._runRules = wp), - (x.runVirtualRule = sT), - (x.run = lT), - (x.setup = yT), - (x.teardown = lr), - (x.runPartial = pT), - (x.finishRun = mT), - (x.commons = Cf), - (x.utils = Bi), - x.addReporter("na", DT), - x.addReporter("no-passes", xT), - x.addReporter("rawEnv", CT), - x.addReporter("raw", _p), - x.addReporter("v1", TT), - x.addReporter("v2", ST, !0)); - })(), - x._load({ - lang: "en", - data: { - rules: { - accesskeys: { - description: - "Ensure every accesskey attribute value is unique", - help: "accesskey attribute value should be unique", - }, - "area-alt": { - description: - "Ensure elements of image maps have alternative text", - help: "Active elements must have alternative text", - }, - "aria-allowed-attr": { - description: - "Ensure an element's role supports its ARIA attributes", - help: "Elements must only use supported ARIA attributes", - }, - "aria-allowed-role": { - description: - "Ensure role attribute has an appropriate value for the element", - help: "ARIA role should be appropriate for the element", - }, - "aria-braille-equivalent": { - description: - "Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent", - help: "aria-braille attributes must have a non-braille equivalent", - }, - "aria-command-name": { - description: - "Ensure every ARIA button, link and menuitem has an accessible name", - help: "ARIA commands must have an accessible name", - }, - "aria-conditional-attr": { - description: - "Ensure ARIA attributes are used as described in the specification of the element's role", - help: "ARIA attributes must be used as specified for the element's role", - }, - "aria-deprecated-role": { - description: "Ensure elements do not use deprecated roles", - help: "Deprecated ARIA roles must not be used", - }, - "aria-dialog-name": { - description: - "Ensure every ARIA dialog and alertdialog node has an accessible name", - help: "ARIA dialog and alertdialog nodes should have an accessible name", - }, - "aria-hidden-body": { - description: - 'Ensure aria-hidden="true" is not present on the document body.', - help: 'aria-hidden="true" must not be present on the document body', - }, - "aria-hidden-focus": { - description: - "Ensure aria-hidden elements are not focusable nor contain focusable elements", - help: "ARIA hidden element must not be focusable or contain focusable elements", - }, - "aria-input-field-name": { - description: - "Ensure every ARIA input field has an accessible name", - help: "ARIA input fields must have an accessible name", - }, - "aria-meter-name": { - description: - "Ensure every ARIA meter node has an accessible name", - help: "ARIA meter nodes must have an accessible name", - }, - "aria-progressbar-name": { - description: - "Ensure every ARIA progressbar node has an accessible name", - help: "ARIA progressbar nodes must have an accessible name", - }, - "aria-prohibited-attr": { - description: - "Ensure ARIA attributes are not prohibited for an element's role", - help: "Elements must only use permitted ARIA attributes", - }, - "aria-required-attr": { - description: - "Ensure elements with ARIA roles have all required ARIA attributes", - help: "Required ARIA attributes must be provided", - }, - "aria-required-children": { - description: - "Ensure elements with an ARIA role that require child roles contain them", - help: "Certain ARIA roles must contain particular children", - }, - "aria-required-parent": { - description: - "Ensure elements with an ARIA role that require parent roles are contained by them", - help: "Certain ARIA roles must be contained by particular parents", - }, - "aria-roledescription": { - description: - "Ensure aria-roledescription is only used on elements with an implicit or explicit role", - help: "aria-roledescription must be on elements with a semantic role", - }, - "aria-roles": { - description: - "Ensure all elements with a role attribute use a valid value", - help: "ARIA roles used must conform to valid values", - }, - "aria-text": { - description: - 'Ensure role="text" is used on elements with no focusable descendants', - help: '"role=text" should have no focusable descendants', - }, - "aria-toggle-field-name": { - description: - "Ensure every ARIA toggle field has an accessible name", - help: "ARIA toggle fields must have an accessible name", - }, - "aria-tooltip-name": { - description: - "Ensure every ARIA tooltip node has an accessible name", - help: "ARIA tooltip nodes must have an accessible name", - }, - "aria-treeitem-name": { - description: - "Ensure every ARIA treeitem node has an accessible name", - help: "ARIA treeitem nodes should have an accessible name", - }, - "aria-valid-attr-value": { - description: "Ensure all ARIA attributes have valid values", - help: "ARIA attributes must conform to valid values", - }, - "aria-valid-attr": { - description: - "Ensure attributes that begin with aria- are valid ARIA attributes", - help: "ARIA attributes must conform to valid names", - }, - "audio-caption": { - description: "Ensure