From d679ef9f44bd617f2fe0b888d94387fd87a1d933 Mon Sep 17 00:00:00 2001 From: Ian Vexler Date: Sat, 24 Feb 2024 14:59:05 +0000 Subject: [PATCH] Updated progress bar --- dist/components/NavItem/NavItem.d.ts | 9 + dist/components/NavItem/NavItem.d.ts.map | 1 + dist/components/chip/Chip.d.ts | 2 +- dist/components/chip/Chip.d.ts.map | 2 +- .../header/components/HeaderBrand.d.ts | 7 + .../header/components/HeaderBrand.d.ts.map | 1 + dist/components/nav/NavProvider.d.ts | 9 + dist/components/nav/NavProvider.d.ts.map | 1 + dist/components/navItem/NavContext.d.ts | 4 + dist/components/navItem/NavContext.d.ts.map | 1 + dist/components/navItem/NavItem.d.ts | 9 + dist/components/navItem/NavItem.d.ts.map | 1 + dist/components/progressBar/ProgressBar.d.ts | 6 +- .../progressBar/ProgressBar.d.ts.map | 2 +- dist/components/sideNavbar/SideNavBar.d.ts | 6 + .../components/sideNavbar/SideNavBar.d.ts.map | 1 + .../sideNavbar/components/NavItem.d.ts | 9 + .../sideNavbar/components/NavItem.d.ts.map | 1 + .../components/texmoContext/TexmoContext.d.ts | 9 + .../texmoContext/TexmoContext.d.ts.map | 1 + dist/index.css | 208 +- dist/index.es.css | 208 +- dist/index.es.js | 14 +- dist/index.es.js.map | 2 +- dist/index.js | 3513 +---------------- dist/index.js.map | 2 +- dist/index.min.css | 208 +- dist/index.min.js | 14 +- dist/index.min.js.map | 2 +- dist/types.d.ts | 2 +- dist/types.d.ts.map | 2 +- src/components/chip/Chip.tsx | 4 +- src/components/progressBar/ProgressBar.tsx | 12 +- 33 files changed, 594 insertions(+), 3679 deletions(-) create mode 100644 dist/components/NavItem/NavItem.d.ts create mode 100644 dist/components/NavItem/NavItem.d.ts.map create mode 100644 dist/components/header/components/HeaderBrand.d.ts create mode 100644 dist/components/header/components/HeaderBrand.d.ts.map create mode 100644 dist/components/nav/NavProvider.d.ts create mode 100644 dist/components/nav/NavProvider.d.ts.map create mode 100644 dist/components/navItem/NavContext.d.ts create mode 100644 dist/components/navItem/NavContext.d.ts.map create mode 100644 dist/components/navItem/NavItem.d.ts create mode 100644 dist/components/navItem/NavItem.d.ts.map create mode 100644 dist/components/sideNavbar/SideNavBar.d.ts create mode 100644 dist/components/sideNavbar/SideNavBar.d.ts.map create mode 100644 dist/components/sideNavbar/components/NavItem.d.ts create mode 100644 dist/components/sideNavbar/components/NavItem.d.ts.map create mode 100644 dist/components/texmoContext/TexmoContext.d.ts create mode 100644 dist/components/texmoContext/TexmoContext.d.ts.map diff --git a/dist/components/NavItem/NavItem.d.ts b/dist/components/NavItem/NavItem.d.ts new file mode 100644 index 0000000..20fdf03 --- /dev/null +++ b/dist/components/NavItem/NavItem.d.ts @@ -0,0 +1,9 @@ +import React from 'react'; +export interface NavItemProps { + route: string; + label: string; + icon: string; +} +declare const NavItem: ({ route, label, icon }: NavItemProps) => React.JSX.Element; +export default NavItem; +//# sourceMappingURL=NavItem.d.ts.map \ No newline at end of file diff --git a/dist/components/NavItem/NavItem.d.ts.map b/dist/components/NavItem/NavItem.d.ts.map new file mode 100644 index 0000000..fe65d6f --- /dev/null +++ b/dist/components/NavItem/NavItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/NavItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAG1C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,OAAO,2BAA4B,YAAY,sBAgBpD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/components/chip/Chip.d.ts b/dist/components/chip/Chip.d.ts index 170209c..6c61ffb 100644 --- a/dist/components/chip/Chip.d.ts +++ b/dist/components/chip/Chip.d.ts @@ -1,7 +1,7 @@ import React from 'react'; import { Themes } from 'types'; interface ChipProps extends React.HTMLProps { - theme: Themes; + theme?: Themes; label: string; } declare const Chip: ({ className, label, theme, ...rest }: ChipProps) => React.JSX.Element; diff --git a/dist/components/chip/Chip.d.ts.map b/dist/components/chip/Chip.d.ts.map index 21bd0fb..4c71442 100644 --- a/dist/components/chip/Chip.d.ts.map +++ b/dist/components/chip/Chip.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,UAAU,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AACD,QAAA,MAAM,IAAI,yCAA0C,SAAS,sBAM5D,CAAC;AAEF,eAAe,IAAI,CAAC"} \ No newline at end of file +{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,UAAU,SAAU,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AACD,QAAA,MAAM,IAAI,yCAAsD,SAAS,sBAMxE,CAAC;AAEF,eAAe,IAAI,CAAC"} \ No newline at end of file diff --git a/dist/components/header/components/HeaderBrand.d.ts b/dist/components/header/components/HeaderBrand.d.ts new file mode 100644 index 0000000..ae40e19 --- /dev/null +++ b/dist/components/header/components/HeaderBrand.d.ts @@ -0,0 +1,7 @@ +import React from 'react'; +import { NavbarBrandProps } from 'react-bootstrap'; +export interface HeaderBrandProps extends NavbarBrandProps { +} +declare const HeaderBrand: ({ children }: HeaderBrandProps) => React.JSX.Element; +export default HeaderBrand; +//# sourceMappingURL=HeaderBrand.d.ts.map \ No newline at end of file diff --git a/dist/components/header/components/HeaderBrand.d.ts.map b/dist/components/header/components/HeaderBrand.d.ts.map new file mode 100644 index 0000000..66b36bd --- /dev/null +++ b/dist/components/header/components/HeaderBrand.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"HeaderBrand.d.ts","sourceRoot":"","sources":["../../../../src/components/header/components/HeaderBrand.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAU,MAAM,iBAAiB,CAAC;AAE3D,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;CAAG;AAE7D,QAAA,MAAM,WAAW,iBAAkB,gBAAgB,sBAElD,CAAC;AAEF,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/components/nav/NavProvider.d.ts b/dist/components/nav/NavProvider.d.ts new file mode 100644 index 0000000..d292da1 --- /dev/null +++ b/dist/components/nav/NavProvider.d.ts @@ -0,0 +1,9 @@ +import React from "react"; +import { NavLink } from 'react-router-dom'; +export interface NavProps { + navLink: typeof NavLink; + children: React.ReactNode; +} +declare const NavProvider: ({ navLink, children }: NavProps) => React.JSX.Element; +export default NavProvider; +//# sourceMappingURL=NavProvider.d.ts.map \ No newline at end of file diff --git a/dist/components/nav/NavProvider.d.ts.map b/dist/components/nav/NavProvider.d.ts.map new file mode 100644 index 0000000..d171376 --- /dev/null +++ b/dist/components/nav/NavProvider.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NavProvider.d.ts","sourceRoot":"","sources":["../../../src/components/nav/NavProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,WAAW,0BAA2B,QAAQ,sBAMnD,CAAA;AAED,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/components/navItem/NavContext.d.ts b/dist/components/navItem/NavContext.d.ts new file mode 100644 index 0000000..6a7cdff --- /dev/null +++ b/dist/components/navItem/NavContext.d.ts @@ -0,0 +1,4 @@ +/// +declare const NavContext: import("react").Context>>; +export default NavContext; +//# sourceMappingURL=NavContext.d.ts.map \ No newline at end of file diff --git a/dist/components/navItem/NavContext.d.ts.map b/dist/components/navItem/NavContext.d.ts.map new file mode 100644 index 0000000..28750e5 --- /dev/null +++ b/dist/components/navItem/NavContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NavContext.d.ts","sourceRoot":"","sources":["../../../src/components/navItem/NavContext.tsx"],"names":[],"mappings":";AAGA,QAAA,MAAM,UAAU,gKAAyC,CAAC;AAE1D,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/navItem/NavItem.d.ts b/dist/components/navItem/NavItem.d.ts new file mode 100644 index 0000000..20fdf03 --- /dev/null +++ b/dist/components/navItem/NavItem.d.ts @@ -0,0 +1,9 @@ +import React from 'react'; +export interface NavItemProps { + route: string; + label: string; + icon: string; +} +declare const NavItem: ({ route, label, icon }: NavItemProps) => React.JSX.Element; +export default NavItem; +//# sourceMappingURL=NavItem.d.ts.map \ No newline at end of file diff --git a/dist/components/navItem/NavItem.d.ts.map b/dist/components/navItem/NavItem.d.ts.map new file mode 100644 index 0000000..c2a0ca1 --- /dev/null +++ b/dist/components/navItem/NavItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/navItem/NavItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAI1C,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,OAAO,2BAA4B,YAAY,sBAgBpD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/components/progressBar/ProgressBar.d.ts b/dist/components/progressBar/ProgressBar.d.ts index 64f2be7..2e29e7f 100644 --- a/dist/components/progressBar/ProgressBar.d.ts +++ b/dist/components/progressBar/ProgressBar.d.ts @@ -1,8 +1,10 @@ import React from 'react'; +import { Themes } from 'types'; export interface ProgressBarProps extends React.HTMLProps { percentage: number; - color?: string; + theme?: Themes; + showPercentage?: boolean; } -declare const ProgressBar: ({ percentage, color, ...rest }: ProgressBarProps) => React.JSX.Element; +declare const ProgressBar: ({ percentage, theme, showPercentage, ...rest }: ProgressBarProps) => React.JSX.Element; export default ProgressBar; //# sourceMappingURL=ProgressBar.d.ts.map \ No newline at end of file diff --git a/dist/components/progressBar/ProgressBar.d.ts.map b/dist/components/progressBar/ProgressBar.d.ts.map index 80a0910..3d22b89 100644 --- a/dist/components/progressBar/ProgressBar.d.ts.map +++ b/dist/components/progressBar/ProgressBar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/progressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,WAAW,mCAAoC,gBAAgB,sBAwBpE,CAAC;AAEF,eAAe,WAAW,CAAC"} \ No newline at end of file +{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/progressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;IACvE,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,WAAW,mDAKd,gBAAgB,sBAuBlB,CAAC;AAEF,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/components/sideNavbar/SideNavBar.d.ts b/dist/components/sideNavbar/SideNavBar.d.ts new file mode 100644 index 0000000..569f561 --- /dev/null +++ b/dist/components/sideNavbar/SideNavBar.d.ts @@ -0,0 +1,6 @@ +import React from 'react'; +export interface SideNavbarProps extends React.HTMLProps { +} +declare const SideNavbar: ({ className, children, ...rest }: SideNavbarProps) => React.JSX.Element; +export default SideNavbar; +//# sourceMappingURL=SideNavBar.d.ts.map \ No newline at end of file diff --git a/dist/components/sideNavbar/SideNavBar.d.ts.map b/dist/components/sideNavbar/SideNavBar.d.ts.map new file mode 100644 index 0000000..7727f12 --- /dev/null +++ b/dist/components/sideNavbar/SideNavBar.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SideNavBar.d.ts","sourceRoot":"","sources":["../../../src/components/sideNavbar/SideNavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC;CAAG;AAE3E,QAAA,MAAM,UAAU,qCAAsC,eAAe,sBASpE,CAAC;AAEF,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/sideNavbar/components/NavItem.d.ts b/dist/components/sideNavbar/components/NavItem.d.ts new file mode 100644 index 0000000..20fdf03 --- /dev/null +++ b/dist/components/sideNavbar/components/NavItem.d.ts @@ -0,0 +1,9 @@ +import React from 'react'; +export interface NavItemProps { + route: string; + label: string; + icon: string; +} +declare const NavItem: ({ route, label, icon }: NavItemProps) => React.JSX.Element; +export default NavItem; +//# sourceMappingURL=NavItem.d.ts.map \ No newline at end of file diff --git a/dist/components/sideNavbar/components/NavItem.d.ts.map b/dist/components/sideNavbar/components/NavItem.d.ts.map new file mode 100644 index 0000000..48e57ef --- /dev/null +++ b/dist/components/sideNavbar/components/NavItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../../src/components/sideNavbar/components/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,OAAO,2BAA4B,YAAY,sBAcpD,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/components/texmoContext/TexmoContext.d.ts b/dist/components/texmoContext/TexmoContext.d.ts new file mode 100644 index 0000000..eb0cb33 --- /dev/null +++ b/dist/components/texmoContext/TexmoContext.d.ts @@ -0,0 +1,9 @@ +/// +import { NavLink, Link } from 'react-router-dom'; +export type TexmoContentProps = { + navLink: typeof NavLink; + link: typeof Link; +}; +declare const TexmoContext: import("react").Context; +export default TexmoContext; +//# sourceMappingURL=TexmoContext.d.ts.map \ No newline at end of file diff --git a/dist/components/texmoContext/TexmoContext.d.ts.map b/dist/components/texmoContext/TexmoContext.d.ts.map new file mode 100644 index 0000000..b2b6a1a --- /dev/null +++ b/dist/components/texmoContext/TexmoContext.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TexmoContext.d.ts","sourceRoot":"","sources":["../../../src/components/texmoContext/TexmoContext.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,IAAI,EAAE,OAAO,IAAI,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,YAAY,4CAAqE,CAAC;AAExF,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/index.css b/dist/index.css index d9b1a24..e5a9017 100644 --- a/dist/index.css +++ b/dist/index.css @@ -1089,7 +1089,7 @@ a.breadcrumb-item:hover { --texmo-bg-secondary-borders: #c9c9c9; --toastify-color-light: #E5E5E5; --toastify-color-success: #6A955B; - --toastify-color-error: #cc4141; + --toastify-color-error: #99444f; --toastify-text-color-light: var(--texmo-text-color); --toastify-toast-width: 100vw; } @@ -1171,41 +1171,41 @@ a.breadcrumb-item:hover { --bs-primary: #6A955B; --bs-secondary: #E5E5E5; --bs-success: #198754; - --bs-info: #3e70bb; - --bs-warning: #ffc107; - --bs-danger: #cc4141; + --bs-info: #062a61; + --bs-warning: #e6e369; + --bs-danger: #99444f; --bs-light: #f8f9fa; --bs-dark: #212529; --bs-primary-rgb: 106, 149, 91; --bs-secondary-rgb: 229, 229, 229; --bs-success-rgb: 25, 135, 84; - --bs-info-rgb: 62, 112, 187; - --bs-warning-rgb: 255, 193, 7; - --bs-danger-rgb: 204, 65, 65; + --bs-info-rgb: 6, 42, 97; + --bs-warning-rgb: 230, 227, 105; + --bs-danger-rgb: 153, 68, 79; --bs-light-rgb: 248, 249, 250; --bs-dark-rgb: 33, 37, 41; --bs-primary-text-emphasis: #2a3c24; --bs-secondary-text-emphasis: #5c5c5c; --bs-success-text-emphasis: #0a3622; - --bs-info-text-emphasis: #192d4b; - --bs-warning-text-emphasis: #664d03; - --bs-danger-text-emphasis: #521a1a; + --bs-info-text-emphasis: #021127; + --bs-warning-text-emphasis: #5c5b2a; + --bs-danger-text-emphasis: #3d1b20; --bs-light-text-emphasis: #495057; --bs-dark-text-emphasis: #495057; --bs-primary-bg-subtle: #e1eade; --bs-secondary-bg-subtle: #fafafa; --bs-success-bg-subtle: #d1e7dd; - --bs-info-bg-subtle: #d8e2f1; - --bs-warning-bg-subtle: #fff3cd; - --bs-danger-bg-subtle: #f5d9d9; + --bs-info-bg-subtle: #cdd4df; + --bs-warning-bg-subtle: #faf9e1; + --bs-danger-bg-subtle: #ebdadc; --bs-light-bg-subtle: #fcfcfd; --bs-dark-bg-subtle: #ced4da; --bs-primary-border-subtle: #c3d5bd; --bs-secondary-border-subtle: whitesmoke; --bs-success-border-subtle: #a3cfbb; - --bs-info-border-subtle: #b2c6e4; - --bs-warning-border-subtle: #ffe69c; - --bs-danger-border-subtle: #ebb3b3; + --bs-info-border-subtle: #9baac0; + --bs-warning-border-subtle: #f5f4c3; + --bs-danger-border-subtle: #d6b4b9; --bs-light-border-subtle: #e9ecef; --bs-dark-border-subtle: #adb5bd; --bs-white-rgb: 255, 255, 255; @@ -1260,8 +1260,8 @@ a.breadcrumb-item:hover { --bs-focus-ring-color: rgba(106, 149, 91, 0.25); --bs-form-valid-color: #198754; --bs-form-valid-border-color: #198754; - --bs-form-invalid-color: #cc4141; - --bs-form-invalid-border-color: #cc4141; + --bs-form-invalid-color: #99444f; + --bs-form-invalid-border-color: #99444f; } [data-bs-theme=dark] { @@ -1283,25 +1283,25 @@ a.breadcrumb-item:hover { --bs-primary-text-emphasis: #a6bf9d; --bs-secondary-text-emphasis: #efefef; --bs-success-text-emphasis: #75b798; - --bs-info-text-emphasis: #8ba9d6; - --bs-warning-text-emphasis: #ffda6a; - --bs-danger-text-emphasis: #e08d8d; + --bs-info-text-emphasis: #6a7fa0; + --bs-warning-text-emphasis: #f0eea5; + --bs-danger-text-emphasis: #c28f95; --bs-light-text-emphasis: #f8f9fa; --bs-dark-text-emphasis: #dee2e6; --bs-primary-bg-subtle: #151e12; --bs-secondary-bg-subtle: #2e2e2e; --bs-success-bg-subtle: #051b11; - --bs-info-bg-subtle: #0c1625; - --bs-warning-bg-subtle: #332701; - --bs-danger-bg-subtle: #290d0d; + --bs-info-bg-subtle: #010813; + --bs-warning-bg-subtle: #2e2d15; + --bs-danger-bg-subtle: #1f0e10; --bs-light-bg-subtle: #343a40; --bs-dark-bg-subtle: #1a1d20; --bs-primary-border-subtle: #405937; --bs-secondary-border-subtle: #898989; --bs-success-border-subtle: #0f5132; - --bs-info-border-subtle: #254370; - --bs-warning-border-subtle: #997404; - --bs-danger-border-subtle: #7a2727; + --bs-info-border-subtle: #04193a; + --bs-warning-border-subtle: #8a883f; + --bs-danger-border-subtle: #5c292f; --bs-light-border-subtle: #495057; --bs-dark-border-subtle: #343a40; --bs-heading-color: inherit; @@ -3111,13 +3111,13 @@ progress { .table-info { --bs-table-color: #000; - --bs-table-bg: #d8e2f1; - --bs-table-border-color: #adb5c1; - --bs-table-striped-bg: #cdd7e5; + --bs-table-bg: #cdd4df; + --bs-table-border-color: #a4aab2; + --bs-table-striped-bg: #c3c9d4; --bs-table-striped-color: #000; - --bs-table-active-bg: #c2cbd9; + --bs-table-active-bg: #b9bfc9; --bs-table-active-color: #000; - --bs-table-hover-bg: #c8d1df; + --bs-table-hover-bg: #bec4ce; --bs-table-hover-color: #000; color: var(--bs-table-color); border-color: var(--bs-table-border-color); @@ -3125,13 +3125,13 @@ progress { .table-warning { --bs-table-color: #000; - --bs-table-bg: #fff3cd; - --bs-table-border-color: #ccc2a4; - --bs-table-striped-bg: #f2e7c3; + --bs-table-bg: #faf9e1; + --bs-table-border-color: #c8c7b4; + --bs-table-striped-bg: #eeedd6; --bs-table-striped-color: #000; - --bs-table-active-bg: #e6dbb9; + --bs-table-active-bg: #e1e0cb; --bs-table-active-color: #000; - --bs-table-hover-bg: #ece1be; + --bs-table-hover-bg: #e7e6d0; --bs-table-hover-color: #000; color: var(--bs-table-color); border-color: var(--bs-table-border-color); @@ -3139,13 +3139,13 @@ progress { .table-danger { --bs-table-color: #000; - --bs-table-bg: #f5d9d9; - --bs-table-border-color: #c4aeae; - --bs-table-striped-bg: #e9cece; + --bs-table-bg: #ebdadc; + --bs-table-border-color: #bcaeb0; + --bs-table-striped-bg: #dfcfd1; --bs-table-striped-color: #000; - --bs-table-active-bg: #ddc3c3; + --bs-table-active-bg: #d4c4c6; --bs-table-active-color: #000; - --bs-table-hover-bg: #e3c9c9; + --bs-table-hover-bg: #d9cacc; --bs-table-hover-color: #000; color: var(--bs-table-color); border-color: var(--bs-table-border-color); @@ -3968,7 +3968,7 @@ textarea.form-control-lg { .was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--bs-form-invalid-border-color); padding-right: calc(1.5em + 0.75rem); - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23cc4141'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23cc4141' stroke='none'/%3e%3c/svg%3e"); + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%2399444f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%2399444f' stroke='none'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right calc(0.375em + 0.1875rem) center; background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); @@ -3987,7 +3987,7 @@ textarea.form-control-lg { border-color: var(--bs-form-invalid-border-color); } .was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"], .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"] { - --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23cc4141'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23cc4141' stroke='none'/%3e%3c/svg%3e"); + --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%2399444f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%2399444f' stroke='none'/%3e%3c/svg%3e"); padding-right: 4.125rem; background-position: right 0.75rem center, center right 2.25rem; background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); @@ -4155,53 +4155,53 @@ textarea.form-control-lg { .btn-info { --bs-btn-color: #fff; - --bs-btn-bg: #3e70bb; - --bs-btn-border-color: #3e70bb; + --bs-btn-bg: #062a61; + --bs-btn-border-color: #062a61; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #355f9f; - --bs-btn-hover-border-color: #325a96; - --bs-btn-focus-shadow-rgb: 91, 133, 197; + --bs-btn-hover-bg: #052452; + --bs-btn-hover-border-color: #05224e; + --bs-btn-focus-shadow-rgb: 43, 74, 121; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #325a96; - --bs-btn-active-border-color: #2f548c; + --bs-btn-active-bg: #05224e; + --bs-btn-active-border-color: #052049; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #fff; - --bs-btn-disabled-bg: #3e70bb; - --bs-btn-disabled-border-color: #3e70bb; + --bs-btn-disabled-bg: #062a61; + --bs-btn-disabled-border-color: #062a61; } .btn-warning { --bs-btn-color: #000; - --bs-btn-bg: #ffc107; - --bs-btn-border-color: #ffc107; + --bs-btn-bg: #e6e369; + --bs-btn-border-color: #e6e369; --bs-btn-hover-color: #000; - --bs-btn-hover-bg: #ffca2c; - --bs-btn-hover-border-color: #ffc720; - --bs-btn-focus-shadow-rgb: 217, 164, 6; + --bs-btn-hover-bg: #eae780; + --bs-btn-hover-border-color: #e9e678; + --bs-btn-focus-shadow-rgb: 196, 193, 89; --bs-btn-active-color: #000; - --bs-btn-active-bg: #ffcd39; - --bs-btn-active-border-color: #ffc720; + --bs-btn-active-bg: #ebe987; + --bs-btn-active-border-color: #e9e678; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #000; - --bs-btn-disabled-bg: #ffc107; - --bs-btn-disabled-border-color: #ffc107; + --bs-btn-disabled-bg: #e6e369; + --bs-btn-disabled-border-color: #e6e369; } .btn-danger { --bs-btn-color: #fff; - --bs-btn-bg: #cc4141; - --bs-btn-border-color: #cc4141; + --bs-btn-bg: #99444f; + --bs-btn-border-color: #99444f; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #ad3737; - --bs-btn-hover-border-color: #a33434; - --bs-btn-focus-shadow-rgb: 212, 94, 94; + --bs-btn-hover-bg: #823a43; + --bs-btn-hover-border-color: #7a363f; + --bs-btn-focus-shadow-rgb: 168, 96, 105; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #a33434; - --bs-btn-active-border-color: #993131; + --bs-btn-active-bg: #7a363f; + --bs-btn-active-border-color: #73333b; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #fff; - --bs-btn-disabled-bg: #cc4141; - --bs-btn-disabled-border-color: #cc4141; + --bs-btn-disabled-bg: #99444f; + --bs-btn-disabled-border-color: #99444f; } .btn-light { @@ -4290,53 +4290,53 @@ textarea.form-control-lg { } .btn-outline-info { - --bs-btn-color: #3e70bb; - --bs-btn-border-color: #3e70bb; + --bs-btn-color: #062a61; + --bs-btn-border-color: #062a61; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #3e70bb; - --bs-btn-hover-border-color: #3e70bb; - --bs-btn-focus-shadow-rgb: 62, 112, 187; + --bs-btn-hover-bg: #062a61; + --bs-btn-hover-border-color: #062a61; + --bs-btn-focus-shadow-rgb: 6, 42, 97; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #3e70bb; - --bs-btn-active-border-color: #3e70bb; + --bs-btn-active-bg: #062a61; + --bs-btn-active-border-color: #062a61; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - --bs-btn-disabled-color: #3e70bb; + --bs-btn-disabled-color: #062a61; --bs-btn-disabled-bg: transparent; - --bs-btn-disabled-border-color: #3e70bb; + --bs-btn-disabled-border-color: #062a61; --bs-gradient: none; } .btn-outline-warning { - --bs-btn-color: #ffc107; - --bs-btn-border-color: #ffc107; + --bs-btn-color: #e6e369; + --bs-btn-border-color: #e6e369; --bs-btn-hover-color: #000; - --bs-btn-hover-bg: #ffc107; - --bs-btn-hover-border-color: #ffc107; - --bs-btn-focus-shadow-rgb: 255, 193, 7; + --bs-btn-hover-bg: #e6e369; + --bs-btn-hover-border-color: #e6e369; + --bs-btn-focus-shadow-rgb: 230, 227, 105; --bs-btn-active-color: #000; - --bs-btn-active-bg: #ffc107; - --bs-btn-active-border-color: #ffc107; + --bs-btn-active-bg: #e6e369; + --bs-btn-active-border-color: #e6e369; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - --bs-btn-disabled-color: #ffc107; + --bs-btn-disabled-color: #e6e369; --bs-btn-disabled-bg: transparent; - --bs-btn-disabled-border-color: #ffc107; + --bs-btn-disabled-border-color: #e6e369; --bs-gradient: none; } .btn-outline-danger { - --bs-btn-color: #cc4141; - --bs-btn-border-color: #cc4141; + --bs-btn-color: #99444f; + --bs-btn-border-color: #99444f; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #cc4141; - --bs-btn-hover-border-color: #cc4141; - --bs-btn-focus-shadow-rgb: 204, 65, 65; + --bs-btn-hover-bg: #99444f; + --bs-btn-hover-border-color: #99444f; + --bs-btn-focus-shadow-rgb: 153, 68, 79; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #cc4141; - --bs-btn-active-border-color: #cc4141; + --bs-btn-active-bg: #99444f; + --bs-btn-active-border-color: #99444f; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - --bs-btn-disabled-color: #cc4141; + --bs-btn-disabled-color: #99444f; --bs-btn-disabled-bg: transparent; - --bs-btn-disabled-border-color: #cc4141; + --bs-btn-disabled-border-color: #99444f; --bs-gradient: none; } @@ -7968,8 +7968,8 @@ textarea.form-control-lg { text-decoration-color: RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important; } .link-info:hover, .link-info:focus { - color: RGBA(50, 90, 150, var(--bs-link-opacity, 1)) !important; - text-decoration-color: RGBA(50, 90, 150, var(--bs-link-underline-opacity, 1)) !important; + color: RGBA(5, 34, 78, var(--bs-link-opacity, 1)) !important; + text-decoration-color: RGBA(5, 34, 78, var(--bs-link-underline-opacity, 1)) !important; } .link-warning { @@ -7977,8 +7977,8 @@ textarea.form-control-lg { text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important; } .link-warning:hover, .link-warning:focus { - color: RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important; - text-decoration-color: RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important; + color: RGBA(235, 233, 135, var(--bs-link-opacity, 1)) !important; + text-decoration-color: RGBA(235, 233, 135, var(--bs-link-underline-opacity, 1)) !important; } .link-danger { @@ -7986,8 +7986,8 @@ textarea.form-control-lg { text-decoration-color: RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important; } .link-danger:hover, .link-danger:focus { - color: RGBA(163, 52, 52, var(--bs-link-opacity, 1)) !important; - text-decoration-color: RGBA(163, 52, 52, var(--bs-link-underline-opacity, 1)) !important; + color: RGBA(122, 54, 63, var(--bs-link-opacity, 1)) !important; + text-decoration-color: RGBA(122, 54, 63, var(--bs-link-underline-opacity, 1)) !important; } .link-light { diff --git a/dist/index.es.css b/dist/index.es.css index d9b1a24..e5a9017 100644 --- a/dist/index.es.css +++ b/dist/index.es.css @@ -1089,7 +1089,7 @@ a.breadcrumb-item:hover { --texmo-bg-secondary-borders: #c9c9c9; --toastify-color-light: #E5E5E5; --toastify-color-success: #6A955B; - --toastify-color-error: #cc4141; + --toastify-color-error: #99444f; --toastify-text-color-light: var(--texmo-text-color); --toastify-toast-width: 100vw; } @@ -1171,41 +1171,41 @@ a.breadcrumb-item:hover { --bs-primary: #6A955B; --bs-secondary: #E5E5E5; --bs-success: #198754; - --bs-info: #3e70bb; - --bs-warning: #ffc107; - --bs-danger: #cc4141; + --bs-info: #062a61; + --bs-warning: #e6e369; + --bs-danger: #99444f; --bs-light: #f8f9fa; --bs-dark: #212529; --bs-primary-rgb: 106, 149, 91; --bs-secondary-rgb: 229, 229, 229; --bs-success-rgb: 25, 135, 84; - --bs-info-rgb: 62, 112, 187; - --bs-warning-rgb: 255, 193, 7; - --bs-danger-rgb: 204, 65, 65; + --bs-info-rgb: 6, 42, 97; + --bs-warning-rgb: 230, 227, 105; + --bs-danger-rgb: 153, 68, 79; --bs-light-rgb: 248, 249, 250; --bs-dark-rgb: 33, 37, 41; --bs-primary-text-emphasis: #2a3c24; --bs-secondary-text-emphasis: #5c5c5c; --bs-success-text-emphasis: #0a3622; - --bs-info-text-emphasis: #192d4b; - --bs-warning-text-emphasis: #664d03; - --bs-danger-text-emphasis: #521a1a; + --bs-info-text-emphasis: #021127; + --bs-warning-text-emphasis: #5c5b2a; + --bs-danger-text-emphasis: #3d1b20; --bs-light-text-emphasis: #495057; --bs-dark-text-emphasis: #495057; --bs-primary-bg-subtle: #e1eade; --bs-secondary-bg-subtle: #fafafa; --bs-success-bg-subtle: #d1e7dd; - --bs-info-bg-subtle: #d8e2f1; - --bs-warning-bg-subtle: #fff3cd; - --bs-danger-bg-subtle: #f5d9d9; + --bs-info-bg-subtle: #cdd4df; + --bs-warning-bg-subtle: #faf9e1; + --bs-danger-bg-subtle: #ebdadc; --bs-light-bg-subtle: #fcfcfd; --bs-dark-bg-subtle: #ced4da; --bs-primary-border-subtle: #c3d5bd; --bs-secondary-border-subtle: whitesmoke; --bs-success-border-subtle: #a3cfbb; - --bs-info-border-subtle: #b2c6e4; - --bs-warning-border-subtle: #ffe69c; - --bs-danger-border-subtle: #ebb3b3; + --bs-info-border-subtle: #9baac0; + --bs-warning-border-subtle: #f5f4c3; + --bs-danger-border-subtle: #d6b4b9; --bs-light-border-subtle: #e9ecef; --bs-dark-border-subtle: #adb5bd; --bs-white-rgb: 255, 255, 255; @@ -1260,8 +1260,8 @@ a.breadcrumb-item:hover { --bs-focus-ring-color: rgba(106, 149, 91, 0.25); --bs-form-valid-color: #198754; --bs-form-valid-border-color: #198754; - --bs-form-invalid-color: #cc4141; - --bs-form-invalid-border-color: #cc4141; + --bs-form-invalid-color: #99444f; + --bs-form-invalid-border-color: #99444f; } [data-bs-theme=dark] { @@ -1283,25 +1283,25 @@ a.breadcrumb-item:hover { --bs-primary-text-emphasis: #a6bf9d; --bs-secondary-text-emphasis: #efefef; --bs-success-text-emphasis: #75b798; - --bs-info-text-emphasis: #8ba9d6; - --bs-warning-text-emphasis: #ffda6a; - --bs-danger-text-emphasis: #e08d8d; + --bs-info-text-emphasis: #6a7fa0; + --bs-warning-text-emphasis: #f0eea5; + --bs-danger-text-emphasis: #c28f95; --bs-light-text-emphasis: #f8f9fa; --bs-dark-text-emphasis: #dee2e6; --bs-primary-bg-subtle: #151e12; --bs-secondary-bg-subtle: #2e2e2e; --bs-success-bg-subtle: #051b11; - --bs-info-bg-subtle: #0c1625; - --bs-warning-bg-subtle: #332701; - --bs-danger-bg-subtle: #290d0d; + --bs-info-bg-subtle: #010813; + --bs-warning-bg-subtle: #2e2d15; + --bs-danger-bg-subtle: #1f0e10; --bs-light-bg-subtle: #343a40; --bs-dark-bg-subtle: #1a1d20; --bs-primary-border-subtle: #405937; --bs-secondary-border-subtle: #898989; --bs-success-border-subtle: #0f5132; - --bs-info-border-subtle: #254370; - --bs-warning-border-subtle: #997404; - --bs-danger-border-subtle: #7a2727; + --bs-info-border-subtle: #04193a; + --bs-warning-border-subtle: #8a883f; + --bs-danger-border-subtle: #5c292f; --bs-light-border-subtle: #495057; --bs-dark-border-subtle: #343a40; --bs-heading-color: inherit; @@ -3111,13 +3111,13 @@ progress { .table-info { --bs-table-color: #000; - --bs-table-bg: #d8e2f1; - --bs-table-border-color: #adb5c1; - --bs-table-striped-bg: #cdd7e5; + --bs-table-bg: #cdd4df; + --bs-table-border-color: #a4aab2; + --bs-table-striped-bg: #c3c9d4; --bs-table-striped-color: #000; - --bs-table-active-bg: #c2cbd9; + --bs-table-active-bg: #b9bfc9; --bs-table-active-color: #000; - --bs-table-hover-bg: #c8d1df; + --bs-table-hover-bg: #bec4ce; --bs-table-hover-color: #000; color: var(--bs-table-color); border-color: var(--bs-table-border-color); @@ -3125,13 +3125,13 @@ progress { .table-warning { --bs-table-color: #000; - --bs-table-bg: #fff3cd; - --bs-table-border-color: #ccc2a4; - --bs-table-striped-bg: #f2e7c3; + --bs-table-bg: #faf9e1; + --bs-table-border-color: #c8c7b4; + --bs-table-striped-bg: #eeedd6; --bs-table-striped-color: #000; - --bs-table-active-bg: #e6dbb9; + --bs-table-active-bg: #e1e0cb; --bs-table-active-color: #000; - --bs-table-hover-bg: #ece1be; + --bs-table-hover-bg: #e7e6d0; --bs-table-hover-color: #000; color: var(--bs-table-color); border-color: var(--bs-table-border-color); @@ -3139,13 +3139,13 @@ progress { .table-danger { --bs-table-color: #000; - --bs-table-bg: #f5d9d9; - --bs-table-border-color: #c4aeae; - --bs-table-striped-bg: #e9cece; + --bs-table-bg: #ebdadc; + --bs-table-border-color: #bcaeb0; + --bs-table-striped-bg: #dfcfd1; --bs-table-striped-color: #000; - --bs-table-active-bg: #ddc3c3; + --bs-table-active-bg: #d4c4c6; --bs-table-active-color: #000; - --bs-table-hover-bg: #e3c9c9; + --bs-table-hover-bg: #d9cacc; --bs-table-hover-color: #000; color: var(--bs-table-color); border-color: var(--bs-table-border-color); @@ -3968,7 +3968,7 @@ textarea.form-control-lg { .was-validated .form-control:invalid, .form-control.is-invalid { border-color: var(--bs-form-invalid-border-color); padding-right: calc(1.5em + 0.75rem); - background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23cc4141'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23cc4141' stroke='none'/%3e%3c/svg%3e"); + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%2399444f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%2399444f' stroke='none'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right calc(0.375em + 0.1875rem) center; background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); @@ -3987,7 +3987,7 @@ textarea.form-control-lg { border-color: var(--bs-form-invalid-border-color); } .was-validated .form-select:invalid:not([multiple]):not([size]), .was-validated .form-select:invalid:not([multiple])[size="1"], .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"] { - --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23cc4141'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23cc4141' stroke='none'/%3e%3c/svg%3e"); + --bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%2399444f'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%2399444f' stroke='none'/%3e%3c/svg%3e"); padding-right: 4.125rem; background-position: right 0.75rem center, center right 2.25rem; background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem); @@ -4155,53 +4155,53 @@ textarea.form-control-lg { .btn-info { --bs-btn-color: #fff; - --bs-btn-bg: #3e70bb; - --bs-btn-border-color: #3e70bb; + --bs-btn-bg: #062a61; + --bs-btn-border-color: #062a61; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #355f9f; - --bs-btn-hover-border-color: #325a96; - --bs-btn-focus-shadow-rgb: 91, 133, 197; + --bs-btn-hover-bg: #052452; + --bs-btn-hover-border-color: #05224e; + --bs-btn-focus-shadow-rgb: 43, 74, 121; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #325a96; - --bs-btn-active-border-color: #2f548c; + --bs-btn-active-bg: #05224e; + --bs-btn-active-border-color: #052049; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #fff; - --bs-btn-disabled-bg: #3e70bb; - --bs-btn-disabled-border-color: #3e70bb; + --bs-btn-disabled-bg: #062a61; + --bs-btn-disabled-border-color: #062a61; } .btn-warning { --bs-btn-color: #000; - --bs-btn-bg: #ffc107; - --bs-btn-border-color: #ffc107; + --bs-btn-bg: #e6e369; + --bs-btn-border-color: #e6e369; --bs-btn-hover-color: #000; - --bs-btn-hover-bg: #ffca2c; - --bs-btn-hover-border-color: #ffc720; - --bs-btn-focus-shadow-rgb: 217, 164, 6; + --bs-btn-hover-bg: #eae780; + --bs-btn-hover-border-color: #e9e678; + --bs-btn-focus-shadow-rgb: 196, 193, 89; --bs-btn-active-color: #000; - --bs-btn-active-bg: #ffcd39; - --bs-btn-active-border-color: #ffc720; + --bs-btn-active-bg: #ebe987; + --bs-btn-active-border-color: #e9e678; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #000; - --bs-btn-disabled-bg: #ffc107; - --bs-btn-disabled-border-color: #ffc107; + --bs-btn-disabled-bg: #e6e369; + --bs-btn-disabled-border-color: #e6e369; } .btn-danger { --bs-btn-color: #fff; - --bs-btn-bg: #cc4141; - --bs-btn-border-color: #cc4141; + --bs-btn-bg: #99444f; + --bs-btn-border-color: #99444f; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #ad3737; - --bs-btn-hover-border-color: #a33434; - --bs-btn-focus-shadow-rgb: 212, 94, 94; + --bs-btn-hover-bg: #823a43; + --bs-btn-hover-border-color: #7a363f; + --bs-btn-focus-shadow-rgb: 168, 96, 105; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #a33434; - --bs-btn-active-border-color: #993131; + --bs-btn-active-bg: #7a363f; + --bs-btn-active-border-color: #73333b; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); --bs-btn-disabled-color: #fff; - --bs-btn-disabled-bg: #cc4141; - --bs-btn-disabled-border-color: #cc4141; + --bs-btn-disabled-bg: #99444f; + --bs-btn-disabled-border-color: #99444f; } .btn-light { @@ -4290,53 +4290,53 @@ textarea.form-control-lg { } .btn-outline-info { - --bs-btn-color: #3e70bb; - --bs-btn-border-color: #3e70bb; + --bs-btn-color: #062a61; + --bs-btn-border-color: #062a61; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #3e70bb; - --bs-btn-hover-border-color: #3e70bb; - --bs-btn-focus-shadow-rgb: 62, 112, 187; + --bs-btn-hover-bg: #062a61; + --bs-btn-hover-border-color: #062a61; + --bs-btn-focus-shadow-rgb: 6, 42, 97; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #3e70bb; - --bs-btn-active-border-color: #3e70bb; + --bs-btn-active-bg: #062a61; + --bs-btn-active-border-color: #062a61; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - --bs-btn-disabled-color: #3e70bb; + --bs-btn-disabled-color: #062a61; --bs-btn-disabled-bg: transparent; - --bs-btn-disabled-border-color: #3e70bb; + --bs-btn-disabled-border-color: #062a61; --bs-gradient: none; } .btn-outline-warning { - --bs-btn-color: #ffc107; - --bs-btn-border-color: #ffc107; + --bs-btn-color: #e6e369; + --bs-btn-border-color: #e6e369; --bs-btn-hover-color: #000; - --bs-btn-hover-bg: #ffc107; - --bs-btn-hover-border-color: #ffc107; - --bs-btn-focus-shadow-rgb: 255, 193, 7; + --bs-btn-hover-bg: #e6e369; + --bs-btn-hover-border-color: #e6e369; + --bs-btn-focus-shadow-rgb: 230, 227, 105; --bs-btn-active-color: #000; - --bs-btn-active-bg: #ffc107; - --bs-btn-active-border-color: #ffc107; + --bs-btn-active-bg: #e6e369; + --bs-btn-active-border-color: #e6e369; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - --bs-btn-disabled-color: #ffc107; + --bs-btn-disabled-color: #e6e369; --bs-btn-disabled-bg: transparent; - --bs-btn-disabled-border-color: #ffc107; + --bs-btn-disabled-border-color: #e6e369; --bs-gradient: none; } .btn-outline-danger { - --bs-btn-color: #cc4141; - --bs-btn-border-color: #cc4141; + --bs-btn-color: #99444f; + --bs-btn-border-color: #99444f; --bs-btn-hover-color: #fff; - --bs-btn-hover-bg: #cc4141; - --bs-btn-hover-border-color: #cc4141; - --bs-btn-focus-shadow-rgb: 204, 65, 65; + --bs-btn-hover-bg: #99444f; + --bs-btn-hover-border-color: #99444f; + --bs-btn-focus-shadow-rgb: 153, 68, 79; --bs-btn-active-color: #fff; - --bs-btn-active-bg: #cc4141; - --bs-btn-active-border-color: #cc4141; + --bs-btn-active-bg: #99444f; + --bs-btn-active-border-color: #99444f; --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - --bs-btn-disabled-color: #cc4141; + --bs-btn-disabled-color: #99444f; --bs-btn-disabled-bg: transparent; - --bs-btn-disabled-border-color: #cc4141; + --bs-btn-disabled-border-color: #99444f; --bs-gradient: none; } @@ -7968,8 +7968,8 @@ textarea.form-control-lg { text-decoration-color: RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important; } .link-info:hover, .link-info:focus { - color: RGBA(50, 90, 150, var(--bs-link-opacity, 1)) !important; - text-decoration-color: RGBA(50, 90, 150, var(--bs-link-underline-opacity, 1)) !important; + color: RGBA(5, 34, 78, var(--bs-link-opacity, 1)) !important; + text-decoration-color: RGBA(5, 34, 78, var(--bs-link-underline-opacity, 1)) !important; } .link-warning { @@ -7977,8 +7977,8 @@ textarea.form-control-lg { text-decoration-color: RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important; } .link-warning:hover, .link-warning:focus { - color: RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important; - text-decoration-color: RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important; + color: RGBA(235, 233, 135, var(--bs-link-opacity, 1)) !important; + text-decoration-color: RGBA(235, 233, 135, var(--bs-link-underline-opacity, 1)) !important; } .link-danger { @@ -7986,8 +7986,8 @@ textarea.form-control-lg { text-decoration-color: RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important; } .link-danger:hover, .link-danger:focus { - color: RGBA(163, 52, 52, var(--bs-link-opacity, 1)) !important; - text-decoration-color: RGBA(163, 52, 52, var(--bs-link-underline-opacity, 1)) !important; + color: RGBA(122, 54, 63, var(--bs-link-opacity, 1)) !important; + text-decoration-color: RGBA(122, 54, 63, var(--bs-link-underline-opacity, 1)) !important; } .link-light { diff --git a/dist/index.es.js b/dist/index.es.js index bc6262f..5b72907 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -1,9 +1,9 @@ -import*as e from"react";import t,{useRef as n,useState as r,useCallback as o,useContext as i,useMemo as a,useEffect as l,useLayoutEffect as s,useReducer as u,createContext as c,cloneElement as f,forwardRef as d,useImperativeHandle as p,Children as h}from"react";import{jsx as y,Fragment as v,jsxs as m}from"react/jsx-runtime";import*as b from"react-dom";import g from"react-dom";var O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||(o[n]=e[n]);return o}var P=process.env.NODE_ENV,A=function(e,t,n,r,o,i,a,l){if("production"!==P&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}},C=x(A);function T(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function R(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function L(e,t){return Object.keys(t).reduce((function(i,a){var l,s=i,u=s[T(a)],c=s[a],f=S(s,[T(a),a].map(R)),d=t[a],p=function(e,t,i){var a=n(void 0!==e),l=r(t),s=l[0],u=l[1],c=void 0!==e,f=a.current;return a.current=c,!c&&f&&s!==t&&u(t),[c?e:s,o((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}var S=process.env.NODE_ENV,A=_((function(e,t,n,r,o,i,a,l){if("production"!==S&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}));function T(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function C(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function P(e,t){return Object.keys(t).reduce((function(i,a){var l,s=i,u=s[T(a)],c=s[a],f=j(s,[T(a),a].map(C)),d=t[a],p=function(e,t,i){var a=n(void 0!==e),l=r(t),s=l[0],u=l[1],c=void 0!==e,f=a.current;return a.current=c,!c&&f&&s!==t&&u(t),[c?e:s,o((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return y((function(t,r,o,i,a){var l=t[r],s=g(l);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+o+"`, expected `object`.");for(var u in e){var c=e[u];if("function"!=typeof c)return m(o,i,a,u,O(c));var f=c(l,u,o,i,a+"."+u,n);if(f)return f}return null}))},exact:function(e){return y((function(o,i,a,l,s){var u=o[i],c=g(u);if("object"!==c)return new h("Invalid "+l+" `"+s+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var f=t({},o[i],e);for(var d in f){var p=e[d];if(r(e,d)&&"function"!=typeof p)return m(a,l,s,d,O(p));if(!p)return new h("Invalid "+l+" `"+s+"` key `"+d+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var y=p(u,d,a,l,s+"."+d,n);if(y)return y}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function y(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function o(o,a,l,u,c,d,p){if(u=u||f,d=d||l,p!==n){if(s){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=u+":"+l;!t[v]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[v]=!0,r++)}}return null==a[l]?o?null===a[l]?new h("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `null`."):new h("The "+c+" `"+d+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(a,l,u,c,d)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function v(e){return y((function(t,n,r,o,i,a){var l=t[n];return g(l)!==e?new h("Invalid "+o+" `"+i+"` of type `"+O(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function m(e,t,n,r,o){return new h((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||l(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[c]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function O(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=O(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=o,d.resetWarningCache=o.resetWarningCache,d.PropTypes=d,d},le}()(ve.isElement,!0)}else Y.exports=function(){if(ce)return ue;ce=1;var e=he();function t(){}function n(){}return n.resetWarningCache=t,ue=function(){function r(t,n,r,o,i,a){if(a!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var me=x(Y.exports),be=!1,ge="production"!==process.env.NODE_ENV?me.oneOfType([me.number,me.shape({enter:me.number,exit:me.number,appear:me.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&me.oneOfType([me.string,me.shape({enter:me.string,exit:me.string,active:me.string}),me.shape({enter:me.string,enterDone:me.string,enterActive:me.string,exit:me.string,exitDone:me.string,exitActive:me.string})]);var Oe=t.createContext(null),we="unmounted",Ee="exited",xe="entering",_e="entered",Ne="exiting",ke=function(e){var n,r;function o(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Ee,r.appearStatus=xe):o=_e:o=t.unmountOnExit||t.mountOnEnter?we:Ee,r.state={status:o},r.nextCallback=null,r}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,q(n,r),o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===we?{status:Ee}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xe&&n!==_e&&(t=xe):n!==xe&&n!==_e||(t=Ne)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xe){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:g.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:we})},i.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[g.findDOMNode(this),r],i=o[0],a=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||be?this.safeSetState({status:_e},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xe},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:_e},(function(){t.props.onEntered(i,a)}))}))})))},i.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:g.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:Ne},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ee},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ee},(function(){e.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:g.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},i.render=function(){var e=this.state.status;if(e===we)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=S(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Oe.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},o}(t.Component);function je(){}ke.contextType=Oe,ke.propTypes="production"!==process.env.NODE_ENV?{nodeRef:me.shape({current:"undefined"==typeof Element?me.any:function(e,t,n,r,o,i){var a=e[t];return me.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:me.oneOfType([me.func.isRequired,me.element.isRequired]).isRequired,in:me.bool,mountOnEnter:me.bool,unmountOnExit:me.bool,appear:me.bool,enter:me.bool,exit:me.bool,timeout:function(e){var t=ge;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{n.target===e&&(o(),t(n))}),n+r)}function Me(...e){return e.filter((e=>null!=e)).reduce(((e,t)=>{if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(...n){e.apply(this,n),t.apply(this,n)}}),null)}function Be(e){e.offsetHeight}const Fe=e=>e&&"function"!=typeof e?t=>{e.current=t}:e;function Ue(e,t){return a((()=>function(e,t){const n=Fe(e),r=Fe(t);return e=>{n&&n(e),r&&r(e)}}(e,t)),[e,t])}const $e=t.forwardRef((({onEnter:e,onEntering:r,onEntered:i,onExit:a,onExiting:l,onExited:s,addEndListener:u,children:c,childRef:f,...d},p)=>{const h=n(null),v=Ue(h,f),m=e=>{var t;v((t=e)&&"setState"in t?g.findDOMNode(t):null!=t?t:null)},b=e=>t=>{e&&h.current&&e(h.current,t)},O=o(b(e),[e]),w=o(b(r),[r]),E=o(b(i),[i]),x=o(b(a),[a]),_=o(b(l),[l]),N=o(b(s),[s]),k=o(b(u),[u]);return y(ke,{ref:p,...d,onEnter:O,onEntered:E,onEntering:w,onExit:x,onExited:N,onExiting:_,addEndListener:k,nodeRef:h,children:"function"==typeof c?(e,t)=>c(e,{...t,ref:m}):t.cloneElement(c,{ref:m})})}));var He=$e;const Ke={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Ve(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Ke[e];return n+parseInt(z(t,r[0]),10)+parseInt(z(t,r[1]),10)}const ze={[Ee]:"collapse",[Ne]:"collapsing",[xe]:"collapsing",[_e]:"collapse show"};var We=t.forwardRef((({onEnter:e,onEntering:n,onEntered:r,onExit:o,onExiting:i,className:l,children:s,dimension:u="height",in:c=!1,timeout:f=300,mountOnEnter:d=!1,unmountOnExit:p=!1,appear:h=!1,getDimensionValue:v=Ve,...m},b)=>{const g="function"==typeof u?u():u,O=a((()=>Me((e=>{e.style[g]="0"}),e)),[g,e]),w=a((()=>Me((e=>{const t=`scroll${g[0].toUpperCase()}${g.slice(1)}`;e.style[g]=`${e[t]}px`}),n)),[g,n]),E=a((()=>Me((e=>{e.style[g]=null}),r)),[g,r]),x=a((()=>Me((e=>{e.style[g]=`${v(g,e)}px`,Be(e)}),o)),[o,v,g]),_=a((()=>Me((e=>{e.style[g]=null}),i)),[g,i]);return y(He,{ref:b,addEndListener:Ie,...m,"aria-expanded":m.role?c:null,onEnter:O,onEntering:w,onEntered:E,onExit:x,onExiting:_,childRef:s.ref,in:c,timeout:f,mountOnEnter:d,unmountOnExit:p,appear:h,children:(e,n)=>t.cloneElement(s,{...n,className:k(l,s.props.className,ze[e],"width"===g&&"collapse-horizontal")})})}));function Ye(e){const t=function(e){const t=n(e);return l((()=>{t.current=e}),[e]),t}(e);return o((function(...e){return t.current&&t.current(...e)}),[t])}var Ze=t=>e.forwardRef(((e,n)=>y("div",{...e,ref:n,className:k(e.className,t)})));function Ge(){const e=n(!0),t=n((()=>e.current));return l((()=>(e.current=!0,()=>{e.current=!1})),[]),t.current}function Xe(e){const t=n(null);return l((()=>{t.current=e})),t.current}const Je="undefined"!=typeof global&&global.navigator&&"ReactNative"===global.navigator.product;var Qe="undefined"!=typeof document||Je?s:l;const et=["as","disabled"];function tt({tagName:e,disabled:t,href:n,target:r,rel:o,role:i,onClick:a,tabIndex:l=0,type:s}){e||(e=null!=n||null!=r||null!=o?"a":"button");const u={tagName:e};if("button"===e)return[{type:s||"button",disabled:t},u];const c=r=>{(t||"a"===e&&function(e){return!e||"#"===e.trim()}(n))&&r.preventDefault(),t?r.stopPropagation():null==a||a(r)};return"a"===e&&(n||(n="#"),t&&(n=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:"a"===e?r:void 0,"aria-disabled":t||void 0,rel:"a"===e?o:void 0,onClick:c,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),c(e))}},u]}const nt=e.forwardRef(((e,t)=>{let{as:n,disabled:r}=e,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,et);const[i,{tagName:a}]=tt(Object.assign({tagName:n,disabled:r},o));return y(a,Object.assign({},o,i,{ref:t}))}));nt.displayName="Button";const rt=["onKeyDown"];const ot=e.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,rt);const[o]=tt(Object.assign({tagName:"a"},r)),i=Ye((e=>{o.onKeyDown(e),null==n||n(e)}));return(a=r.href)&&"#"!==a.trim()&&"button"!==r.role?y("a",Object.assign({ref:t},r,{onKeyDown:n})):y("a",Object.assign({ref:t},r,o,{onKeyDown:i}));var a}));ot.displayName="Anchor";var it=ot;const at={[xe]:"show",[_e]:"show"},lt=e.forwardRef((({className:t,children:n,transitionClasses:r={},onEnter:i,...a},l)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},u=o(((e,t)=>{Be(e),null==i||i(e,t)}),[i]);return y(He,{ref:l,addEndListener:Ie,...s,onEnter:u,childRef:n.ref,children:(o,i)=>e.cloneElement(n,{...i,className:k("fade",t,n.props.className,at[o],r[o])})})}));lt.displayName="Fade";var st=lt;const ut={"aria-label":me.string,onClick:me.func,variant:me.oneOf(["white"])},ct=e.forwardRef((({className:e,variant:t,"aria-label":n="Close",...r},o)=>y("button",{ref:o,type:"button",className:k("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r})));ct.displayName="CloseButton",ct.propTypes=ut;var ft=ct;const dt=e.forwardRef((({as:e,bsPrefix:t,variant:n="primary",size:r,active:o=!1,disabled:i=!1,className:a,...l},s)=>{const u=I(t,"btn"),[c,{tagName:f}]=tt({tagName:e,disabled:i,...l});return y(f,{...c,...l,ref:s,disabled:i,className:k(a,u,o&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,l.href&&i&&"disabled")})}));dt.displayName="Button";var pt=dt;const ht=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=I(t,"card-body"),y(n,{ref:o,className:k(e,t),...r}))));ht.displayName="CardBody";var yt=ht;const vt=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=I(t,"card-footer"),y(n,{ref:o,className:k(e,t),...r}))));vt.displayName="CardFooter";var mt=vt;const bt=e.createContext(null);bt.displayName="CardHeaderContext";var gt=bt;const Ot=e.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=I(e,"card-header"),l=a((()=>({cardHeaderBsPrefix:i})),[i]);return y(gt.Provider,{value:l,children:y(n,{ref:o,...r,className:k(t,i)})})}));Ot.displayName="CardHeader";var wt=Ot;const Et=e.forwardRef((({bsPrefix:e,className:t,variant:n,as:r="img",...o},i)=>{const a=I(e,"card-img");return y(r,{ref:i,className:k(n?`${a}-${n}`:a,t),...o})}));Et.displayName="CardImg";var xt=Et;const _t=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=I(t,"card-img-overlay"),y(n,{ref:o,className:k(e,t),...r}))));_t.displayName="CardImgOverlay";var Nt=_t;const kt=e.forwardRef((({className:e,bsPrefix:t,as:n="a",...r},o)=>(t=I(t,"card-link"),y(n,{ref:o,className:k(e,t),...r}))));kt.displayName="CardLink";var jt=kt;const St=Ze("h6"),Pt=e.forwardRef((({className:e,bsPrefix:t,as:n=St,...r},o)=>(t=I(t,"card-subtitle"),y(n,{ref:o,className:k(e,t),...r}))));Pt.displayName="CardSubtitle";var At=Pt;const Ct=e.forwardRef((({className:e,bsPrefix:t,as:n="p",...r},o)=>(t=I(t,"card-text"),y(n,{ref:o,className:k(e,t),...r}))));Ct.displayName="CardText";var Tt=Ct;const Rt=Ze("h5"),Lt=e.forwardRef((({className:e,bsPrefix:t,as:n=Rt,...r},o)=>(t=I(t,"card-title"),y(n,{ref:o,className:k(e,t),...r}))));Lt.displayName="CardTitle";var qt=Lt;const Dt=e.forwardRef((({bsPrefix:e,className:t,bg:n,text:r,border:o,body:i=!1,children:a,as:l="div",...s},u)=>{const c=I(e,"card");return y(l,{ref:u,...s,className:k(t,c,n&&`bg-${n}`,r&&`text-${r}`,o&&`border-${o}`),children:i?y(yt,{children:a}):a})}));Dt.displayName="Card";var It=Object.assign(Dt,{Img:xt,Title:qt,Subtitle:At,Body:yt,Link:jt,Text:Tt,Header:wt,Footer:mt,ImgOverlay:Nt});function Mt(e){const t=function(e){const t=n(e);return t.current=e,t}(e);l((()=>()=>t.current()),[])}const Bt=e.forwardRef(((e,t)=>{const[{className:n,...r},{as:o="div",bsPrefix:i,spans:a}]=function({as:e,bsPrefix:t,className:n,...r}){t=I(t,"col");const o=M(),i=B(),a=[],l=[];return o.forEach((e=>{const n=r[e];let o,s,u;delete r[e],"object"==typeof n&&null!=n?({span:o,offset:s,order:u}=n):o=n;const c=e!==i?`-${e}`:"";o&&a.push(!0===o?`${t}${c}`:`${t}${c}-${o}`),null!=u&&l.push(`order${c}-${u}`),null!=s&&l.push(`offset${c}-${s}`)})),[{...r,className:k(n,...a,...l)},{as:e,bsPrefix:t,spans:a}]}(e);return y(o,{...r,ref:t,className:k(n,!a.length&&i)})}));Bt.displayName="Col";var Ft=Bt;const Ut=e.forwardRef((({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...o},i)=>{const a=I(e,"container");return y(n,{ref:i,...o,className:k(r,t?`${a}${"string"==typeof t?`-${t}`:"-fluid"}`:a)})}));Ut.displayName="Container";var $t=Ut,Ht=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kt(e,t){return Ht(e.querySelectorAll(t))}function Vt(){const[,e]=u((e=>!e),!1);return e}var zt=e.createContext(null),Wt=Object.prototype.hasOwnProperty;function Yt(e,t,n){for(n of e.keys())if(Zt(n,t))return n}function Zt(e,t){var n,r,o;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Zt(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e){if((o=r)&&"object"==typeof o&&!(o=Yt(t,o)))return!1;if(!t.has(o))return!1}return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e){if((o=r[0])&&"object"==typeof o&&!(o=Yt(t,o)))return!1;if(!Zt(r[1],t.get(o)))return!1}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Wt.call(e,n)&&++r&&!Wt.call(t,n))return!1;if(!(n in t)||!Zt(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}var Gt="top",Xt="bottom",Jt="right",Qt="left",en="auto",tn=[Gt,Xt,Jt,Qt],nn="start",rn="end",on="clippingParents",an="viewport",ln="popper",sn="reference",un=tn.reduce((function(e,t){return e.concat([t+"-"+nn,t+"-"+rn])}),[]),cn=[].concat(tn,[en]).reduce((function(e,t){return e.concat([t,t+"-"+nn,t+"-"+rn])}),[]),fn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function dn(e){return e.split("-")[0]}function pn(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hn(e){return e instanceof pn(e).Element||e instanceof Element}function yn(e){return e instanceof pn(e).HTMLElement||e instanceof HTMLElement}function vn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pn(e).ShadowRoot||e instanceof ShadowRoot)}var mn=Math.max,bn=Math.min,gn=Math.round;function On(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function wn(){return!/^((?!chrome|android).)*safari/i.test(On())}function En(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&yn(e)&&(o=e.offsetWidth>0&&gn(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&gn(r.height)/e.offsetHeight||1);var a=(hn(e)?pn(e):window).visualViewport,l=!wn()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/i,c=r.width/o,f=r.height/i;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s,x:s,y:u}}function xn(e){var t=En(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function _n(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&vn(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Nn(e){return e?(e.nodeName||"").toLowerCase():null}function kn(e){return pn(e).getComputedStyle(e)}function jn(e){return["table","td","th"].indexOf(Nn(e))>=0}function Sn(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pn(e){return"html"===Nn(e)?e:e.assignedSlot||e.parentNode||(vn(e)?e.host:null)||Sn(e)}function An(e){return yn(e)&&"fixed"!==kn(e).position?e.offsetParent:null}function Cn(e){for(var t=pn(e),n=An(e);n&&jn(n)&&"static"===kn(n).position;)n=An(n);return n&&("html"===Nn(n)||"body"===Nn(n)&&"static"===kn(n).position)?t:n||function(e){var t=/firefox/i.test(On());if(/Trident/i.test(On())&&yn(e)&&"fixed"===kn(e).position)return null;var n=Pn(e);for(vn(n)&&(n=n.host);yn(n)&&["html","body"].indexOf(Nn(n))<0;){var r=kn(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Tn(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Rn(e,t,n){return mn(e,bn(t,n))}function Ln(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qn(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Dn={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dn(n.placement),s=Tn(l),u=[Qt,Jt].indexOf(l)>=0?"height":"width";if(i&&a){var c=function(e,t){return Ln("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qn(e,tn))}(o.padding,n),f=xn(i),d="y"===s?Gt:Qt,p="y"===s?Xt:Jt,h=n.rects.reference[u]+n.rects.reference[s]-a[s]-n.rects.popper[u],y=a[s]-n.rects.reference[s],v=Cn(i),m=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,b=h/2-y/2,g=c[d],O=m-f[u]-c[p],w=m/2-f[u]/2+b,E=Rn(g,w,O),x=s;n.modifiersData[r]=((t={})[x]=E,t.centerOffset=E-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&_n(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function In(e){return e.split("-")[1]}var Mn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,p=void 0===d?0:d,h=a.y,y=void 0===h?0:h,v="function"==typeof c?c({x:p,y:y}):{x:p,y:y};p=v.x,y=v.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=Qt,O=Gt,w=window;if(u){var E=Cn(n),x="clientHeight",_="clientWidth";if(E===pn(n)&&"static"!==kn(E=Sn(n)).position&&"absolute"===l&&(x="scrollHeight",_="scrollWidth"),o===Gt||(o===Qt||o===Jt)&&i===rn)O=Xt,y-=(f&&E===w&&w.visualViewport?w.visualViewport.height:E[x])-r.height,y*=s?1:-1;if(o===Qt||(o===Gt||o===Xt)&&i===rn)g=Jt,p-=(f&&E===w&&w.visualViewport?w.visualViewport.width:E[_])-r.width,p*=s?1:-1}var N,k=Object.assign({position:l},u&&Mn),j=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:gn(n*o)/o||0,y:gn(r*o)/o||0}}({x:p,y:y},pn(n)):{x:p,y:y};return p=j.x,y=j.y,s?Object.assign({},k,((N={})[O]=b?"0":"",N[g]=m?"0":"",N.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",N)):Object.assign({},k,((t={})[O]=b?y+"px":"",t[g]=m?p+"px":"",t.transform="",t))}var Fn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,u={placement:dn(t.placement),variation:In(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Bn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bn(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})},data:{}},Un={passive:!0};var $n={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=pn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,Un)})),l&&s.addEventListener("resize",n.update,Un),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Un)})),l&&s.removeEventListener("resize",n.update,Un)}},data:{}},Hn={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(e){return e.replace(/left|right|bottom|top/g,(function(e){return Hn[e]}))}var Vn={start:"end",end:"start"};function zn(e){return e.replace(/start|end/g,(function(e){return Vn[e]}))}function Wn(e){var t=pn(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Yn(e){return En(Sn(e)).left+Wn(e).scrollLeft}function Zn(e){var t=kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Gn(e){return["html","body","#document"].indexOf(Nn(e))>=0?e.ownerDocument.body:yn(e)&&Zn(e)?e:Gn(Pn(e))}function Xn(e,t){var n;void 0===t&&(t=[]);var r=Gn(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=pn(r),a=o?[i].concat(i.visualViewport||[],Zn(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Xn(Pn(a)))}function Jn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Qn(e,t,n){return t===an?Jn(function(e,t){var n=pn(e),r=Sn(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var u=wn();(u||!u&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Yn(e),y:s}}(e,n)):hn(t)?function(e,t){var n=En(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Jn(function(e){var t,n=Sn(e),r=Wn(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=mn(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mn(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Yn(e),s=-r.scrollTop;return"rtl"===kn(o||n).direction&&(l+=mn(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Sn(e)))}function er(e,t,n,r){var o="clippingParents"===t?function(e){var t=Xn(Pn(e)),n=["absolute","fixed"].indexOf(kn(e).position)>=0&&yn(e)?Cn(e):e;return hn(n)?t.filter((function(e){return hn(e)&&_n(e,n)&&"body"!==Nn(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce((function(t,n){var o=Qn(e,n,r);return t.top=mn(o.top,t.top),t.right=bn(o.right,t.right),t.bottom=bn(o.bottom,t.bottom),t.left=mn(o.left,t.left),t}),Qn(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function tr(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?dn(o):null,a=o?In(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Gt:t={x:l,y:n.y-r.height};break;case Xt:t={x:l,y:n.y+n.height};break;case Jt:t={x:n.x+n.width,y:s};break;case Qt:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var u=i?Tn(i):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case nn:t[u]=t[u]-(n[c]/2-r[c]/2);break;case rn:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function nr(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?on:l,u=n.rootBoundary,c=void 0===u?an:u,f=n.elementContext,d=void 0===f?ln:f,p=n.altBoundary,h=void 0!==p&&p,y=n.padding,v=void 0===y?0:y,m=Ln("number"!=typeof v?v:qn(v,tn)),b=d===ln?sn:ln,g=e.rects.popper,O=e.elements[h?b:d],w=er(hn(O)?O:O.contextElement||Sn(e.elements.popper),s,c,a),E=En(e.elements.reference),x=tr({reference:E,element:g,strategy:"absolute",placement:o}),_=Jn(Object.assign({},g,x)),N=d===ln?_:E,k={top:w.top-N.top+m.top,bottom:N.bottom-w.bottom+m.bottom,left:w.left-N.left+m.left,right:N.right-w.right+m.right},j=e.modifiersData.offset;if(d===ln&&j){var S=j[o];Object.keys(k).forEach((function(e){var t=[Jt,Xt].indexOf(e)>=0?1:-1,n=[Gt,Xt].indexOf(e)>=0?"y":"x";k[e]+=S[n]*t}))}return k}function rr(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,u=void 0===s?cn:s,c=In(r),f=c?l?un:un.filter((function(e){return In(e)===c})):tn,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=nr(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[dn(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var or={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,y=n.allowedAutoPlacements,v=t.options.placement,m=dn(v),b=s||(m===v||!h?[Kn(v)]:function(e){if(dn(e)===en)return[];var t=Kn(e);return[zn(e),t,zn(t)]}(v)),g=[v].concat(b).reduce((function(e,n){return e.concat(dn(n)===en?rr(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:y}):n)}),[]),O=t.rects.reference,w=t.rects.popper,E=new Map,x=!0,_=g[0],N=0;N=0,A=P?"width":"height",C=nr(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),T=P?S?Jt:Qt:S?Xt:Gt;O[A]>w[A]&&(T=Kn(T));var R=Kn(T),L=[];if(i&&L.push(C[j]<=0),l&&L.push(C[T]<=0,C[R]<=0),L.every((function(e){return e}))){_=k,x=!1;break}E.set(k,L)}if(x)for(var q=function(e){var t=g.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},D=h?3:1;D>0;D--){if("break"===q(D))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ir(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ar(e){return[Gt,Jt,Xt,Qt].some((function(t){return e[t]>=0}))}var lr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=nr(t,{elementContext:"reference"}),l=nr(t,{altBoundary:!0}),s=ir(a,r),u=ir(l,o,i),c=ar(s),f=ar(u);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}};var sr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=cn.reduce((function(e,n){return e[n]=function(e,t,n){var r=dn(e),o=[Qt,Gt].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Qt,Jt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e}),{}),l=a[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var ur={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=tr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var cr={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,y=void 0===h?0:h,v=nr(t,{boundary:s,rootBoundary:u,padding:f,altBoundary:c}),m=dn(t.placement),b=In(t.placement),g=!b,O=Tn(m),w="x"===O?"y":"x",E=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,N="function"==typeof y?y(Object.assign({},t.rects,{placement:t.placement})):y,k="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(E){if(i){var P,A="y"===O?Gt:Qt,C="y"===O?Xt:Jt,T="y"===O?"height":"width",R=E[O],L=R+v[A],q=R-v[C],D=p?-_[T]/2:0,I=b===nn?x[T]:_[T],M=b===nn?-_[T]:-x[T],B=t.elements.arrow,F=p&&B?xn(B):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[A],H=U[C],K=Rn(0,x[T],F[T]),V=g?x[T]/2-D-K-$-k.mainAxis:I-K-$-k.mainAxis,z=g?-x[T]/2+D+K+H+k.mainAxis:M+K+H+k.mainAxis,W=t.elements.arrow&&Cn(t.elements.arrow),Y=W?"y"===O?W.clientTop||0:W.clientLeft||0:0,Z=null!=(P=null==j?void 0:j[O])?P:0,G=R+z-Z,X=Rn(p?bn(L,R+V-Z-Y):L,R,p?mn(q,G):q);E[O]=X,S[O]=X-R}if(l){var J,Q="x"===O?Gt:Qt,ee="x"===O?Xt:Jt,te=E[w],ne="y"===w?"height":"width",re=te+v[Q],oe=te-v[ee],ie=-1!==[Gt,Qt].indexOf(m),ae=null!=(J=null==j?void 0:j[w])?J:0,le=ie?re:te-x[ne]-_[ne]-ae+k.altAxis,se=ie?te+x[ne]+_[ne]-ae-k.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Rn(e,t,n);return r>n?n:r}(le,te,se):Rn(p?le:re,te,p?se:oe);E[w]=ue,S[w]=ue-te}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function fr(e,t,n){void 0===n&&(n=!1);var r,o,i=yn(t),a=yn(t)&&function(e){var t=e.getBoundingClientRect(),n=gn(t.width)/e.offsetWidth||1,r=gn(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=Sn(t),s=En(e,a,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&(("body"!==Nn(t)||Zn(l))&&(u=(r=t)!==pn(r)&&yn(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Wn(r)),yn(t)?((c=En(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Yn(l))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function dr(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var pr={placement:"bottom",modifiers:[],strategy:"absolute"};function hr(){for(var e=arguments.length,t=new Array(e),n=0;n{}},gr={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const e=(t.getAttribute("aria-describedby")||"").split(",").filter((e=>e.trim()!==n.id));e.length?t.setAttribute("aria-describedby",e.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,o=null==(t=n.getAttribute("role"))?void 0:t.toLowerCase();if(n.id&&"tooltip"===o&&"setAttribute"in r){const e=r.getAttribute("aria-describedby");if(e&&-1!==e.split(",").indexOf(n.id))return;r.setAttribute("aria-describedby",e?`${e},${n.id}`:n.id)}}},Or=[];function wr(e,t,i={}){let{enabled:s=!0,placement:u="bottom",strategy:c="absolute",modifiers:f=Or}=i,d=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(i,mr);const p=n(f),h=n(),y=o((()=>{var e;null==(e=h.current)||e.update()}),[]),v=o((()=>{var e;null==(e=h.current)||e.forceUpdate()}),[]),[m,b]=function(e){const t=Ge();return[e[0],o((n=>{if(t())return e[1](n)}),[t,e[1]])]}(r({placement:u,update:y,forceUpdate:v,attributes:{},styles:{popper:{},arrow:{}}})),g=a((()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{const t={},n={};Object.keys(e.elements).forEach((r=>{t[r]=e.styles[r],n[r]=e.attributes[r]})),b({state:e,styles:t,attributes:n,update:y,forceUpdate:v,placement:e.placement})}})),[y,v,b]),O=a((()=>(Zt(p.current,f)||(p.current=f),p.current)),[f]);return l((()=>{h.current&&s&&h.current.setOptions({placement:u,strategy:c,modifiers:[...O,g,br]})}),[c,u,g,s,O]),l((()=>{if(s&&null!=e&&null!=t)return h.current=vr(e,t,Object.assign({},d,{placement:u,strategy:c,modifiers:[...O,gr,g]})),()=>{null!=h.current&&(h.current.destroy(),h.current=void 0,b((e=>Object.assign({},e,{attributes:{},styles:{popper:{}}}))))}}),[s,e,t]),m}function Er(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var xr=function(){};if("production"!==process.env.NODE_ENV){var _r=function(e,t){var n=arguments.length;t=new Array(n>1?n-1:0);for(var r=1;r2?r-2:0);for(var o=2;o{};const jr=e=>e&&("current"in e?e.current:e),Sr={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Pr(e={}){return Array.isArray(e)?e:Object.keys(e).map((t=>(e[t].name=t,e[t])))}function Ar({enabled:e,enableEvents:t,placement:n,flip:r,offset:o,fixed:i,containerPadding:a,arrowElement:l,popperConfig:s={}}){var u,c,f,d,p;const h=function(e){const t={};return Array.isArray(e)?(null==e||e.forEach((e=>{t[e.name]=e})),t):e||t}(s.modifiers);return Object.assign({},s,{placement:n,enabled:e,strategy:i?"fixed":s.strategy,modifiers:Pr(Object.assign({},h,{eventListeners:{enabled:t,options:null==(u=h.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},h.preventOverflow,{options:a?Object.assign({padding:a},null==(c=h.preventOverflow)?void 0:c.options):null==(f=h.preventOverflow)?void 0:f.options}),offset:{options:Object.assign({offset:o},null==(d=h.offset)?void 0:d.options)},arrow:Object.assign({},h.arrow,{enabled:!!l,options:Object.assign({},null==(p=h.arrow)?void 0:p.options,{element:l})}),flip:Object.assign({enabled:!!r},h.flip)}))})}const Cr=["children"];const Tr=()=>{};function Rr(e={}){const t=i(zt),[a,s]=r(null),u=n(!1),{flip:c,offset:f,rootCloseEvent:d,fixed:p=!1,placement:h,popperConfig:y={},enableEventListeners:v=!0,usePopper:m=!!t}=e,b=null==(null==t?void 0:t.show)?!!e.show:t.show;b&&!u.current&&(u.current=!0);const{placement:g,setMenu:O,menuElement:w,toggleElement:E}=t||{},x=wr(E,w,Ar({placement:h||g||"bottom-start",enabled:m,enableEvents:null==v?b:v,offset:f,flip:c,fixed:p,arrowElement:a,popperConfig:y})),_=Object.assign({ref:O||Tr,"aria-labelledby":null==E?void 0:E.id},x.attributes.popper,{style:x.styles.popper}),N={show:b,placement:g,hasShown:u.current,toggle:null==t?void 0:t.toggle,popper:m?x:null,arrowProps:m?Object.assign({ref:s},x.attributes.arrow,{style:x.styles.arrow}):{}};return function(e,t=kr,{disabled:r,clickTrigger:i="click"}={}){const a=n(!1),s=n(!1),u=o((t=>{const n=jr(e);var r;Nr(!!n,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!n||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!Er(n,t.target)||s.current,s.current=!1}),[e]),c=Ye((t=>{const n=jr(e);n&&Er(n,t.target)&&(s.current=!0)})),f=Ye((e=>{a.current||t(e)}));l((()=>{var t,n;if(r||null==e)return;const o=F(jr(e)),a=o.defaultView||window;let l=null!=(t=a.event)?t:null==(n=a.parent)?void 0:n.event,s=null;Sr[i]&&(s=Re(o,Sr[i],c,!0));const d=Re(o,i,u,!0),p=Re(o,i,(e=>{e!==l?f(e):l=void 0}));let h=[];return"ontouchstart"in o.documentElement&&(h=[].slice.call(o.body.children).map((e=>Re(e,"mousemove",kr)))),()=>{null==s||s(),d(),p(),h.forEach((e=>e()))}}),[e,r,i,u,c,f])}(w,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:d,disabled:!b}),[_,N]}function Lr(e){let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,Cr);const[r,o]=Rr(n);return y(v,{children:t(r,o)})}Lr.displayName="DropdownMenu",Lr.defaultProps={usePopper:!0};const qr={prefix:String(Math.round(1e10*Math.random())),current:0},Dr=t.createContext(qr),Ir=t.createContext(!1);let Mr=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),Br=new WeakMap;const Fr="function"==typeof t.useId?function(e){let n=t.useId(),[o]=r("function"==typeof t.useSyncExternalStore?t.useSyncExternalStore(Hr,Ur,$r):i(Ir)),a=o||"test"===process.env.NODE_ENV?"react-aria":`react-aria${qr.prefix}`;return e||`${a}-${n}`}:function(e){let r=i(Dr);r!==qr||Mr||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let o=function(e=!1){let r=i(Dr),o=n(null);if(null===o.current&&!e){var a,l;let e=null===(l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===l||null===(a=l.ReactCurrentOwner)||void 0===a?void 0:a.current;if(e){let t=Br.get(e);null==t?Br.set(e,{id:r.current,state:e.memoizedState}):e.memoizedState!==t.state&&(r.current=t.id,Br.delete(e))}o.current=++r.current}return o.current}(!!e),a=r===qr&&"test"===process.env.NODE_ENV?"react-aria":`react-aria${r.prefix}`;return e||`${a}-${o}`};function Ur(){return!1}function $r(){return!0}function Hr(e){return()=>{}}const Kr=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Vr=()=>{};function zr(){const e=Fr(),{show:t=!1,toggle:n=Vr,setToggle:r,menuElement:a}=i(zt)||{},l=o((e=>{n(!t,e)}),[t,n]),s={id:e,ref:r||Vr,onClick:l,"aria-expanded":!!t};return a&&Kr(a)&&(s["aria-haspopup"]=!0),[s,{show:t,toggle:n}]}function Wr({children:e}){const[t,n]=zr();return y(v,{children:e(t,n)})}Wr.displayName="DropdownToggle";const Yr=e.createContext(null),Zr=(e,t=null)=>null!=e?String(e):t||null,Gr=e.createContext(null);Gr.displayName="NavContext";var Xr=Gr;const Jr="data-rr-ui-";function Qr(e){return`${Jr}${e}`}const eo=["eventKey","disabled","onClick","active","as"];function to({key:e,href:t,active:n,disabled:r,onClick:o}){const a=i(Yr),l=i(Xr),{activeKey:s}=l||{},u=Zr(e,t),c=null==n&&null!=e?Zr(s)===u:n;return[{onClick:Ye((e=>{r||(null==o||o(e),a&&!e.isPropagationStopped()&&a(u,e))})),"aria-disabled":r||void 0,"aria-selected":c,[Qr("dropdown-item")]:""},{isActive:c}]}const no=e.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:i,as:a=nt}=e,l=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,eo);const[s]=to({key:n,href:l.href,disabled:r,onClick:o,active:i});return y(a,Object.assign({},l,{ref:t},s))}));no.displayName="DropdownItem";const ro=c(Se?window:void 0);function oo(){return i(ro)}function io(){const e=Vt(),t=n(null),r=o((n=>{t.current=n,e()}),[e]);return[t,r]}function ao({defaultShow:e,show:t,onSelect:s,onToggle:u,itemSelector:c=`* [${Qr("dropdown-item")}]`,focusFirstItemOnShow:f,placement:d="bottom-start",children:p}){const h=oo(),[v,m]=function(e,t,i){const a=n(void 0!==e),[l,s]=r(t),u=void 0!==e,c=a.current;return a.current=u,!u&&c&&l!==t&&s(t),[u?e:l,o(((...e)=>{const[t,...n]=e;let r=null==i?void 0:i(t,...n);return s(t),r}),[i])]}(t,e,u),[b,g]=io(),O=b.current,[w,E]=io(),x=w.current,_=Xe(v),N=n(null),k=n(!1),j=i(Yr),S=o(((e,t,n=(null==t?void 0:t.type))=>{m(e,{originalEvent:t,source:n})}),[m]),P=Ye(((e,t)=>{null==s||s(e,t),S(!1,t,"select"),t.isPropagationStopped()||null==j||j(e,t)})),A=a((()=>({toggle:S,placement:d,show:v,menuElement:O,toggleElement:x,setMenu:g,setToggle:E})),[S,d,v,O,x,g,E]);O&&_&&!v&&(k.current=O.contains(O.ownerDocument.activeElement));const C=Ye((()=>{x&&x.focus&&x.focus()})),T=Ye((()=>{const e=N.current;let t=f;if(null==t&&(t=!(!b.current||!Kr(b.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=Kt(b.current,c)[0];n&&n.focus&&n.focus()}));l((()=>{v?T():k.current&&(k.current=!1,C())}),[v,k,C,T]),l((()=>{N.current=null}));const R=(e,t)=>{if(!b.current)return null;const n=Kt(b.current,c);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,n,r=!1){const o=Ye(n);l((()=>{const n="function"==typeof e?e():e;return n.addEventListener(t,o,r),()=>n.removeEventListener(t,o,r)}),[e])}(o((()=>h.document),[h]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,i=null==(t=b.current)?void 0:t.contains(o),a=null==(n=w.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&i||"Escape"===r&&"search"===o.type))return;if(!i&&!a)return;if(!("Tab"!==r||b.current&&v))return;N.current=e.type;const l={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=R(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),v){const e=R(o,1);e&&e.focus&&e.focus()}else m(!0,l);return;case"Tab":Te(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=b.current)&&t.contains(e.target)||m(!1,l)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),m(!1,l)}})),y(Yr.Provider,{value:P,children:y(zt.Provider,{value:A,children:p})})}ro.Provider,ao.displayName="Dropdown",ao.Menu=Lr,ao.Toggle=Wr,ao.Item=no;const lo=e.createContext({});lo.displayName="DropdownContext";var so=lo;const uo=e.forwardRef((({className:e,bsPrefix:t,as:n="hr",role:r="separator",...o},i)=>(t=I(t,"dropdown-divider"),y(n,{ref:i,className:k(e,t),role:r,...o}))));uo.displayName="DropdownDivider";var co=uo;const fo=e.forwardRef((({className:e,bsPrefix:t,as:n="div",role:r="heading",...o},i)=>(t=I(t,"dropdown-header"),y(n,{ref:i,className:k(e,t),role:r,...o}))));fo.displayName="DropdownHeader";var po=fo;const ho=e.forwardRef((({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:o,active:i,as:a=it,...l},s)=>{const u=I(e,"dropdown-item"),[c,f]=to({key:n,href:l.href,disabled:r,onClick:o,active:i});return y(a,{...l,...c,ref:s,className:k(t,u,f.isActive&&"active",r&&"disabled")})}));ho.displayName="DropdownItem";var yo=ho;const vo=e.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=I(t,"dropdown-item-text"),y(n,{ref:o,className:k(e,t),...r}))));vo.displayName="DropdownItemText";var mo=vo;const bo=e.createContext(null);bo.displayName="InputGroupContext";var go=bo;const Oo=e.createContext(null);Oo.displayName="NavbarContext";var wo=Oo;function Eo(e,t){if("production"===process.env.NODE_ENV)return e;return Ue(o((e=>{null!=e&&e.isReactComponent&&("production"!==process.env.NODE_ENV?C(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):C(!1))}),[t]),e)}function xo(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}const _o=e.forwardRef((({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:o=!0,show:a,renderOnMount:l,as:s="div",popperConfig:u,variant:c,...f},d)=>{let p=!1;const h=i(wo),v=I(e,"dropdown-menu"),{align:m,drop:b,isRTL:g}=i(so);n=n||m;const O=i(go),w=[];if(n)if("object"==typeof n){const e=Object.keys(n);if("production"!==process.env.NODE_ENV&&Nr(1===e.length,"There should only be 1 breakpoint when passing an object to `align`"),e.length){const t=e[0],r=n[t];p="start"===r,w.push(`${v}-${t}-${r}`)}}else"end"===n&&(p=!0);const E=xo(p,b,g),[x,{hasShown:_,popper:N,show:j,toggle:S}]=Rr({flip:o,rootCloseEvent:r,show:a,usePopper:!h&&0===w.length,offset:[0,2],popperConfig:u,placement:E});if(x.ref=Ue(Eo(d,"DropdownMenu"),x.ref),Qe((()=>{j&&(null==N||N.update())}),[j]),!_&&!l&&!O)return null;"string"!=typeof s&&(x.show=j,x.close=()=>null==S?void 0:S(!1),x.align=n);let P=f.style;return null!=N&&N.placement&&(P={...f.style,...x.style},f["x-placement"]=N.placement),y(s,{...f,...x,style:P,...(w.length||h)&&{"data-bs-popper":"static"},className:k(t,v,j&&"show",p&&`${v}-end`,c&&`${v}-${c}`,...w)})}));_o.displayName="DropdownMenu";var No=_o;const ko=e.forwardRef((({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:o=pt,...a},l)=>{const s=I(e,"dropdown-toggle"),u=i(zt);void 0!==r&&(a.bsPrefix=r);const[c]=zr();return c.ref=Ue(c.ref,Eo(l,"DropdownToggle")),y(o,{className:k(n,s,t&&`${s}-split`,(null==u?void 0:u.show)&&"show"),...c,...a})}));ko.displayName="DropdownToggle";var jo=ko;const So=e.forwardRef(((e,t)=>{const{bsPrefix:n,drop:r="down",show:o,className:l,align:s="start",onSelect:u,onToggle:c,focusFirstItemOnShow:f,as:d="div",navbar:p,autoClose:h=!0,...v}=L(e,{show:"onToggle"}),m=i(go),b=I(n,"dropdown"),g=function(){const{dir:e}=i(D);return"rtl"===e}(),O=Ye(((e,t)=>{var n,r;var o;(null==(n=t.originalEvent)||null==(r=n.target)?void 0:r.classList.contains("dropdown-toggle"))&&"mousedown"===t.source||(t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),o=t.source,(!1===h?"click"===o:"inside"===h?"rootClose"!==o:"outside"!==h||"select"!==o)&&(null==c||c(e,t)))})),w=xo("end"===s,r,g),E=a((()=>({align:s,drop:r,isRTL:g})),[s,r,g]),x={down:b,"down-centered":`${b}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return y(so.Provider,{value:E,children:y(ao,{placement:w,show:o,onSelect:u,onToggle:O,focusFirstItemOnShow:f,itemSelector:`.${b}-item:not(.disabled):not(:disabled)`,children:m?v.children:y(d,{...v,ref:t,className:k(l,o&&"show",x[r])})})})}));So.displayName="Dropdown";var Po=Object.assign(So,{Toggle:jo,Menu:No,Item:yo,ItemText:mo,Divider:co,Header:po});const Ao={type:me.string,tooltip:me.bool,as:me.elementType},Co=e.forwardRef((({as:e="div",className:t,type:n="valid",tooltip:r=!1,...o},i)=>y(e,{...o,ref:i,className:k(t,`${n}-${r?"tooltip":"feedback"}`)})));Co.displayName="Feedback",Co.propTypes=Ao;var To=Co;var Ro=e.createContext({});const Lo=e.forwardRef((({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:o=!1,isInvalid:a=!1,as:l="input",...s},u)=>{const{controlId:c}=i(Ro);return t=I(t,"form-check-input"),y(l,{...s,ref:u,type:r,id:e||c,className:k(n,t,o&&"is-valid",a&&"is-invalid")})}));Lo.displayName="FormCheckInput";var qo=Lo;const Do=e.forwardRef((({bsPrefix:e,className:t,htmlFor:n,...r},o)=>{const{controlId:a}=i(Ro);return e=I(e,"form-check-label"),y("label",{...r,ref:o,htmlFor:n||a,className:k(t,e)})}));Do.displayName="FormCheckLabel";var Io=Do;const Mo=e.forwardRef((({id:t,bsPrefix:n,bsSwitchPrefix:r,inline:o=!1,reverse:l=!1,disabled:s=!1,isValid:u=!1,isInvalid:c=!1,feedbackTooltip:f=!1,feedback:d,feedbackType:p,className:h,style:b,title:g="",type:O="checkbox",label:w,children:E,as:x="input",..._},N)=>{n=I(n,"form-check"),r=I(r,"form-switch");const{controlId:j}=i(Ro),S=a((()=>({controlId:t||j})),[j,t]),P=!E&&null!=w&&!1!==w||function(t,n){return e.Children.toArray(t).some((t=>e.isValidElement(t)&&t.type===n))}(E,Io),A=y(qo,{..._,type:"switch"===O?"checkbox":O,ref:N,isValid:u,isInvalid:c,disabled:s,as:x});return y(Ro.Provider,{value:S,children:y("div",{style:b,className:k(h,P&&n,o&&`${n}-inline`,l&&`${n}-reverse`,"switch"===O&&r),children:E||m(v,{children:[A,P&&y(Io,{title:g,children:w}),d&&y(To,{type:p,tooltip:f,children:d})]})})})}));Mo.displayName="FormCheck";var Bo=Object.assign(Mo,{Input:qo,Label:Io});const Fo=e.forwardRef((({bsPrefix:e,type:t,size:n,htmlSize:r,id:o,className:a,isValid:l=!1,isInvalid:s=!1,plaintext:u,readOnly:c,as:f="input",...d},p)=>{const{controlId:h}=i(Ro);return e=I(e,"form-control"),"production"!==process.env.NODE_ENV&&Nr(null==h||!o,"`controlId` is ignored on `` when `id` is specified."),y(f,{...d,type:t,size:r,ref:p,readOnly:c,id:o||h,className:k(a,u?`${e}-plaintext`:e,n&&`${e}-${n}`,"color"===t&&`${e}-color`,l&&"is-valid",s&&"is-invalid")})}));Fo.displayName="FormControl";var Uo=Object.assign(Fo,{Feedback:To});const $o=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=I(t,"form-floating"),y(n,{ref:o,className:k(e,t),...r}))));$o.displayName="FormFloating";var Ho=$o;const Ko=e.forwardRef((({controlId:e,as:t="div",...n},r)=>{const o=a((()=>({controlId:e})),[e]);return y(Ro.Provider,{value:o,children:y(t,{...n,ref:r})})}));Ko.displayName="FormGroup";var Vo=Ko;const zo=e.forwardRef((({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:o,htmlFor:a,...l},s)=>{const{controlId:u}=i(Ro);t=I(t,"form-label");let c="col-form-label";"string"==typeof n&&(c=`${c} ${c}-${n}`);const f=k(o,t,r&&"visually-hidden",n&&c);return"production"!==process.env.NODE_ENV&&Nr(null==u||!a,"`controlId` is ignored on `` when `htmlFor` is specified."),a=a||u,n?y(Ft,{ref:s,as:"label",className:f,htmlFor:a,...l}):y(e,{ref:s,className:f,htmlFor:a,...l})}));zo.displayName="FormLabel";var Wo=zo;const Yo=e.forwardRef((({bsPrefix:e,className:t,id:n,...r},o)=>{const{controlId:a}=i(Ro);return e=I(e,"form-range"),y("input",{...r,type:"range",ref:o,className:k(t,e),id:n||a})}));Yo.displayName="FormRange";var Zo=Yo;const Go=e.forwardRef((({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:o=!1,isInvalid:a=!1,id:l,...s},u)=>{const{controlId:c}=i(Ro);return e=I(e,"form-select"),y("select",{...s,size:n,ref:u,className:k(r,e,t&&`${e}-${t}`,o&&"is-valid",a&&"is-invalid"),id:l||c})}));Go.displayName="FormSelect";var Xo=Go;const Jo=e.forwardRef((({bsPrefix:e,className:t,as:n="small",muted:r,...o},i)=>(e=I(e,"form-text"),y(n,{...o,ref:i,className:k(t,e,r&&"text-muted")}))));Jo.displayName="FormText";var Qo=Jo;const ei=e.forwardRef(((e,t)=>y(Bo,{...e,ref:t,type:"switch"})));ei.displayName="Switch";var ti=Object.assign(ei,{Input:Bo.Input,Label:Bo.Label});const ni=e.forwardRef((({bsPrefix:e,className:t,children:n,controlId:r,label:o,...i},a)=>(e=I(e,"form-floating"),m(Vo,{ref:a,className:k(t,e),controlId:r,...i,children:[n,y("label",{htmlFor:r,children:o})]}))));ni.displayName="FloatingLabel";var ri=ni;const oi={_ref:me.any,validated:me.bool,as:me.elementType},ii=e.forwardRef((({className:e,validated:t,as:n="form",...r},o)=>y(n,{...r,ref:o,className:k(e,t&&"was-validated")})));ii.displayName="Form",ii.propTypes=oi;var ai=Object.assign(ii,{Group:Vo,Control:Uo,Floating:Ho,Check:Bo,Switch:ti,Label:Wo,Text:Qo,Range:Zo,Select:Xo,FloatingLabel:ri});const li=e.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=I(t,"input-group-text"),y(n,{ref:o,className:k(e,t),...r}))));li.displayName="InputGroupText";var si=li;const ui=e.forwardRef((({bsPrefix:e,size:t,hasValidation:n,className:r,as:o="div",...i},l)=>{e=I(e,"input-group");const s=a((()=>({})),[]);return y(go.Provider,{value:s,children:y(o,{ref:l,...i,className:k(r,e,t&&`${e}-${t}`,n&&"has-validation")})})}));ui.displayName="InputGroup";var ci=Object.assign(ui,{Text:si,Radio:e=>y(si,{children:y(qo,{type:"radio",...e})}),Checkbox:e=>y(si,{children:y(qo,{type:"checkbox",...e})})});var fi=e.createContext(null);const di=["as","active","eventKey"];function pi({key:e,onClick:t,active:n,id:r,role:o,disabled:a}){const l=i(Yr),s=i(Xr),u=i(fi);let c=n;const f={role:o};if(s){o||"tablist"!==s.role||(f.role="tab");const t=s.getControllerId(null!=e?e:null),i=s.getControlledId(null!=e?e:null);f[Qr("event-key")]=e,f.id=t||r,c=null==n&&null!=e?s.activeKey===e:n,!c&&(null!=u&&u.unmountOnExit||null!=u&&u.mountOnEnter)||(f["aria-controls"]=i)}return"tab"===f.role&&(f["aria-selected"]=c,c||(f.tabIndex=-1),a&&(f.tabIndex=-1,f["aria-disabled"]=!0)),f.onClick=Ye((n=>{a||(null==t||t(n),null!=e&&l&&!n.isPropagationStopped()&&l(e,n))})),[f,{isActive:c}]}const hi=e.forwardRef(((e,t)=>{let{as:n=nt,active:r,eventKey:o}=e,i=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,di);const[a,l]=pi(Object.assign({key:Zr(o,i.href),active:r},i));return a[Qr("active")]=l.isActive,y(n,Object.assign({},i,a,{ref:t}))}));hi.displayName="NavItem";var yi=hi;const vi=["as","onSelect","activeKey","role","onKeyDown"];const mi=()=>{},bi=Qr("event-key"),gi=e.forwardRef(((e,t)=>{let{as:r="div",onSelect:o,activeKey:a,role:s,onKeyDown:u}=e,c=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,vi);const f=Vt(),d=n(!1),p=i(Yr),h=i(fi);let v,m;h&&(s=s||"tablist",a=h.activeKey,v=h.getControlledId,m=h.getControllerId);const b=n(null),g=e=>{const t=b.current;if(!t)return null;const n=Kt(t,`[${bi}]:not([aria-disabled=true])`),r=t.querySelector("[aria-selected=true]");if(!r||r!==document.activeElement)return null;const o=n.indexOf(r);if(-1===o)return null;let i=o+e;return i>=n.length&&(i=0),i<0&&(i=n.length-1),n[i]},O=(e,t)=>{null!=e&&(null==o||o(e,t),null==p||p(e,t))};l((()=>{if(b.current&&d.current){const e=b.current.querySelector(`[${bi}][aria-selected=true]`);null==e||e.focus()}d.current=!1}));const w=Ue(t,b);return y(Yr.Provider,{value:O,children:y(Xr.Provider,{value:{role:s,activeKey:Zr(a),getControlledId:v||mi,getControllerId:m||mi},children:y(r,Object.assign({},c,{onKeyDown:e=>{if(null==u||u(e),!h)return;let t;switch(e.key){case"ArrowLeft":case"ArrowUp":t=g(-1);break;case"ArrowRight":case"ArrowDown":t=g(1);break;default:return}var n;t&&(e.preventDefault(),O(t.dataset[(n="EventKey",`rrUi${n}`)]||null,e),d.current=!0,f())},ref:w,role:s}))})})}));gi.displayName="Nav";var Oi=Object.assign(gi,{Item:yi});function wi(e){void 0===e&&(e=F());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}const Ei=Qr("modal-open");var xi=class{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}={}){this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(z(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(Ei,""),z(r,t)}reset(){[...this.modals].forEach((e=>this.remove(e)))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(Ei),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t)}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}};const _i=(e,t)=>Se?null==e?(t||F()).body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Ni({children:e,in:t,onExited:r,mountOnEnter:o,unmountOnExit:i}){const a=n(null),s=n(t),u=Ye(r);l((()=>{t?s.current=!0:u(a.current)}),[t,u]);const c=Ue(a,e.ref),d=f(e,{ref:c});return t?d:i||!s.current&&o?null:d}function ki({children:e,in:t,onExited:o,onEntered:i,transition:a}){const[l,s]=r(!t);t&&l&&s(!1);const u=function({in:e,onTransition:t}){const r=n(null),o=n(!0),i=Ye(t);return Qe((()=>{if(!r.current)return;let t=!1;return i({in:e,element:r.current,initial:o.current,isStale:()=>t}),()=>{t=!0}}),[e,i]),Qe((()=>(o.current=!1,()=>{o.current=!0})),[]),r}({in:!!t,onTransition:e=>{Promise.resolve(a(e)).then((()=>{e.isStale()||(e.in?null==i||i(e.element,e.initial):(s(!0),null==o||o(e.element)))}),(t=>{throw e.in||s(!0),t}))}}),c=Ue(u,e.ref);return l&&!t?null:f(e,{ref:c})}function ji(e,t,n){return e?y(e,Object.assign({},n)):t?y(ki,Object.assign({},n,{transition:t})):y(Ni,Object.assign({},n))}const Si=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let Pi;function Ai(e){const t=oo(),r=e||function(e){return Pi||(Pi=new xi({ownerDocument:null==e?void 0:e.document})),Pi}(t),i=n({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>r.add(i.current),remove:()=>r.remove(i.current),isTopModal:()=>r.isTopModal(i.current),setDialogRef:o((e=>{i.current.dialog=e}),[]),setBackdropRef:o((e=>{i.current.backdrop=e}),[])})}const Ci=d(((t,o)=>{let{show:i=!1,role:a="dialog",className:s,style:u,children:c,backdrop:f=!0,keyboard:d=!0,onBackdropClick:h,onEscapeKeyDown:b,transition:O,runTransition:w,backdropTransition:E,runBackdropTransition:x,autoFocus:_=!0,enforceFocus:N=!0,restoreFocus:k=!0,restoreFocusOptions:j,renderDialog:S,renderBackdrop:P=(e=>y("div",Object.assign({},e))),manager:A,container:C,onShow:T,onHide:R=(()=>{}),onExit:L,onExited:q,onExiting:D,onEnter:I,onEntering:M,onEntered:B}=t,F=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,Si);const U=oo(),$=function(e,t){const n=oo(),[o,i]=r((()=>_i(e,null==n?void 0:n.document)));if(!o){const t=_i(e);t&&i(t)}return l((()=>{t&&o&&t(o)}),[t,o]),l((()=>{const t=_i(e);t!==o&&i(t)}),[e,o]),o}(C),H=Ai(A),K=Ge(),V=Xe(i),[z,W]=r(!i),Y=n(null);p(o,(()=>H),[H]),Se&&!V&&i&&(Y.current=wi(null==U?void 0:U.document)),i&&z&&W(!1);const Z=Ye((()=>{if(H.add(),te.current=Re(document,"keydown",Q),ee.current=Re(document,"focus",(()=>setTimeout(X)),!0),T&&T(),_){var e,t;const n=wi(null!=(e=null==(t=H.dialog)?void 0:t.ownerDocument)?e:null==U?void 0:U.document);H.dialog&&n&&!Er(H.dialog,n)&&(Y.current=n,H.dialog.focus())}})),G=Ye((()=>{var e;(H.remove(),null==te.current||te.current(),null==ee.current||ee.current(),k)&&(null==(e=Y.current)||null==e.focus||e.focus(j),Y.current=null)}));l((()=>{i&&$&&Z()}),[i,$,Z]),l((()=>{z&&G()}),[z,G]),Mt((()=>{G()}));const X=Ye((()=>{if(!N||!K()||!H.isTopModal())return;const e=wi(null==U?void 0:U.document);H.dialog&&e&&!Er(H.dialog,e)&&H.dialog.focus()})),J=Ye((e=>{e.target===e.currentTarget&&(null==h||h(e),!0===f&&R())})),Q=Ye((e=>{d&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&H.isTopModal()&&(null==b||b(e),e.defaultPrevented||R())})),ee=n(),te=n();if(!$)return null;const ne=Object.assign({role:a,ref:H.setDialogRef,"aria-modal":"dialog"===a||void 0},F,{style:u,className:s,tabIndex:-1});let re=S?S(ne):y("div",Object.assign({},ne,{children:e.cloneElement(c,{role:"document"})}));re=ji(O,w,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!i,onExit:L,onExiting:D,onExited:(...e)=>{W(!0),null==q||q(...e)},onEnter:I,onEntering:M,onEntered:B,children:re});let oe=null;return f&&(oe=P({ref:H.setBackdropRef,onClick:J}),oe=ji(E,x,{in:!!i,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:oe})),y(v,{children:g.createPortal(m(v,{children:[oe,re]}),$)})}));Ci.displayName="Modal";var Ti=Object.assign(Ci,{Manager:xi});function Ri(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Li=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",qi=".sticky-top",Di=".navbar-toggler";class Ii extends xi{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,z(t,{[e]:`${parseFloat(z(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],z(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Kt(t,Li).forEach((t=>this.adjustAndStore(o,t,e.scrollBarWidth))),Kt(t,qi).forEach((t=>this.adjustAndStore(i,t,-e.scrollBarWidth))),Kt(t,Di).forEach((t=>this.adjustAndStore(i,t,e.scrollBarWidth)))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ri(n.className,r):n.setAttribute("class",Ri(n.className&&n.className.baseVal||"",r));const o=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Kt(t,Li).forEach((e=>this.restore(o,e))),Kt(t,qi).forEach((e=>this.restore(i,e))),Kt(t,Di).forEach((e=>this.restore(i,e)))}}let Mi;var Bi=Ii;var Fi=e.createContext({onHide(){}});const Ui=e.forwardRef((({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:o,...a},l)=>{const s=i(Fi),u=Ye((()=>{null==s||s.onHide(),null==r||r()}));return m("div",{ref:l,...a,children:[o,n&&y(ft,{"aria-label":e,variant:t,onClick:u})]})}));var $i=Ui,Hi={exports:{}},Ki={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,i,a){var l=o||"<>",s=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+s+"` was not specified in `"+l+"`."):null;for(var u=arguments.length,c=Array(u>6?u-6:0),f=6;f(t=I(t,"nav-item"),y(n,{ref:o,className:k(e,t),...r}))));zi.displayName="NavItem";var Wi=zi;const Yi=e.forwardRef((({bsPrefix:e,className:t,as:n=it,active:r,eventKey:o,disabled:i=!1,...a},l)=>{e=I(e,"nav-link");const[s,u]=pi({key:Zr(o,a.href),active:r,disabled:i,...a});return y(n,{...a,...s,ref:l,disabled:i,className:k(t,e,i&&"disabled",u.isActive&&"active")})}));Yi.displayName="NavLink";var Zi=Yi;const Gi=e.forwardRef(((e,t)=>{const{as:n="div",bsPrefix:r,variant:o,fill:a=!1,justify:l=!1,navbar:s,navbarScroll:u,className:c,activeKey:f,...d}=L(e,{activeKey:"onSelect"}),p=I(r,"nav");let h,v,m=!1;const b=i(wo),g=i(gt);return b?(h=b.bsPrefix,m=null==s||s):g&&({cardHeaderBsPrefix:v}=g),y(Oi,{as:n,ref:t,activeKey:f,className:k(c,{[p]:!m,[`${h}-nav`]:m,[`${h}-nav-scroll`]:m&&u,[`${v}-${o}`]:!!v,[`${p}-${o}`]:!!o,[`${p}-fill`]:a,[`${p}-justified`]:l}),...d})}));Gi.displayName="Nav";var Xi=Object.assign(Gi,{Item:Wi,Link:Zi});const Ji=e.forwardRef((({bsPrefix:e,className:t,as:n,...r},o)=>{e=I(e,"navbar-brand");const i=n||(r.href?"a":"span");return y(i,{...r,ref:o,className:k(t,e)})}));Ji.displayName="NavbarBrand";var Qi=Ji;const ea=e.forwardRef((({children:e,bsPrefix:t,...n},r)=>{t=I(t,"navbar-collapse");const o=i(wo);return y(We,{in:!(!o||!o.expanded),...n,children:y("div",{ref:r,className:t,children:e})})}));ea.displayName="NavbarCollapse";var ta=ea;const na=e.forwardRef((({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:o="button",onClick:a,...l},s)=>{e=I(e,"navbar-toggler");const{onToggle:u,expanded:c}=i(wo)||{},f=Ye((e=>{a&&a(e),u&&u()}));return"button"===o&&(l.type="button"),y(o,{...l,ref:s,onClick:f,"aria-label":r,className:k(t,e,!c&&"collapsed"),children:n||y("span",{className:`${e}-icon`})})}));na.displayName="NavbarToggle";var ra=na;const oa=new WeakMap,ia=(e,t)=>{if(!e||!t)return;const n=oa.get(t)||new Map;oa.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function aa(e,t=("undefined"==typeof window?void 0:window)){const n=ia(e,t),[o,i]=r((()=>!!n&&n.matches));return Qe((()=>{let n=ia(e,t);if(!n)return i(!1);let r=oa.get(t);const o=()=>{i(n.matches)};return n.refCount++,n.addListener(o),o(),()=>{n.removeListener(o),n.refCount--,n.refCount<=0&&(null==r||r.delete(n.media)),n=void 0}}),[e]),o}const la=function(e){const t=Object.keys(e);function n(e,t){return e===t?t:e?`${e} and ${t}`:t}function r(n){const r=function(e){return t[Math.min(t.indexOf(e)+1,t.length-1)]}(n);let o=e[r];return o="number"==typeof o?o-.2+"px":`calc(${o} - 0.2px)`,`(max-width: ${o})`}return function(t,o,i){let l;return"object"==typeof t?(l=t,i=o,o=!0):l={[t]:o=o||!0},aa(a((()=>Object.entries(l).reduce(((t,[o,i])=>("up"!==i&&!0!==i||(t=n(t,function(t){let n=e[t];return"number"==typeof n&&(n=`${n}px`),`(min-width: ${n})`}(o))),"down"!==i&&!0!==i||(t=n(t,r(o))),t)),"")),[JSON.stringify(l)]),i)}}({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),sa=e.forwardRef((({className:e,bsPrefix:t,as:n="div",...r},o)=>(t=I(t,"offcanvas-body"),y(n,{ref:o,className:k(e,t),...r}))));sa.displayName="OffcanvasBody";var ua=sa;const ca={[xe]:"show",[_e]:"show"},fa=e.forwardRef((({bsPrefix:t,className:n,children:r,in:o=!1,mountOnEnter:i=!1,unmountOnExit:a=!1,appear:l=!1,...s},u)=>(t=I(t,"offcanvas"),y(He,{ref:u,addEndListener:Ie,in:o,mountOnEnter:i,unmountOnExit:a,appear:l,...s,childRef:r.ref,children:(o,i)=>e.cloneElement(r,{...i,className:k(n,r.props.className,(o===xe||o===Ne)&&`${t}-toggling`,ca[o])})}))));fa.displayName="OffcanvasToggling";var da=fa;const pa=e.forwardRef((({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...o},i)=>(e=I(e,"offcanvas-header"),y($i,{ref:i,...o,className:k(t,e),closeLabel:n,closeButton:r}))));pa.displayName="OffcanvasHeader";var ha=pa;const ya=Ze("h5"),va=e.forwardRef((({className:e,bsPrefix:t,as:n=ya,...r},o)=>(t=I(t,"offcanvas-title"),y(n,{ref:o,className:k(e,t),...r}))));va.displayName="OffcanvasTitle";var ma=va;function ba(e){return y(da,{...e})}function ga(e){return y(st,{...e})}const Oa=e.forwardRef((({bsPrefix:e,className:t,children:s,"aria-labelledby":u,placement:c="start",responsive:f,show:d=!1,backdrop:p=!0,keyboard:h=!0,scroll:b=!1,onEscapeKeyDown:g,onShow:O,onHide:w,container:E,autoFocus:x=!0,enforceFocus:_=!0,restoreFocus:N=!0,restoreFocusOptions:j,onEntered:S,onExit:P,onExiting:A,onEnter:C,onEntering:T,onExited:R,backdropClassName:L,manager:q,renderStaticNode:D=!1,...M},B)=>{const F=n();e=I(e,"offcanvas");const{onToggle:U}=i(wo)||{},[$,H]=r(!1),K=la(f||"xs","up");l((()=>{H(f?d&&!K:d)}),[d,f,K]);const V=Ye((()=>{null==U||U(),null==w||w()})),z=a((()=>({onHide:V})),[V]);const W=o((t=>y("div",{...t,className:k(`${e}-backdrop`,L)})),[L,e]),Y=n=>y("div",{...n,...M,className:k(t,f?`${e}-${f}`:e,`${e}-${c}`),"aria-labelledby":u,children:s});return m(v,{children:[!$&&(f||D)&&Y({}),y(Fi.Provider,{value:z,children:y(Ti,{show:$,ref:B,backdrop:p,container:E,keyboard:h,autoFocus:x,enforceFocus:_&&!b,restoreFocus:N,restoreFocusOptions:j,onEscapeKeyDown:g,onShow:O,onHide:V,onEnter:(e,...t)=>{e&&(e.style.visibility="visible"),null==C||C(e,...t)},onEntering:T,onEntered:S,onExit:P,onExiting:A,onExited:(e,...t)=>{e&&(e.style.visibility=""),null==R||R(...t)},manager:q||(b?(F.current||(F.current=new Bi({handleContainerOverflow:!1})),F.current):function(e){return Mi||(Mi=new Ii(e)),Mi}()),transition:ba,backdropTransition:ga,renderBackdrop:W,renderDialog:Y})})]})}));Oa.displayName="Offcanvas";var wa=Object.assign(Oa,{Body:ua,Header:ha,Title:ma});const Ea=e.forwardRef(((e,t)=>{const n=i(wo);return y(wa,{ref:t,show:!(null==n||!n.expanded),...e,renderStaticNode:!0})}));Ea.displayName="NavbarOffcanvas";var xa=Ea;const _a=e.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},o)=>(t=I(t,"navbar-text"),y(n,{ref:o,className:k(e,t),...r}))));_a.displayName="NavbarText";var Na=_a;const ka=e.forwardRef(((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:i="light",bg:l,fixed:s,sticky:u,className:c,as:f="nav",expanded:d,onToggle:p,onSelect:h,collapseOnSelect:v=!1,...m}=L(e,{expanded:"onToggle"}),b=I(n,"navbar"),g=o(((...e)=>{null==h||h(...e),v&&d&&(null==p||p(!1))}),[h,v,d,p]);void 0===m.role&&"nav"!==f&&(m.role="navigation");let O=`${b}-expand`;"string"==typeof r&&(O=`${O}-${r}`);const w=a((()=>({onToggle:()=>null==p?void 0:p(!d),bsPrefix:b,expanded:!!d,expand:r})),[b,d,r,p]);return y(wo.Provider,{value:w,children:y(Yr.Provider,{value:g,children:y(f,{ref:t,...m,className:k(c,b,r&&O,i&&`${b}-${i}`,l&&`bg-${l}`,u&&`sticky-${u}`,s&&`fixed-${s}`)})})})}));ka.displayName="Navbar";var ja=Object.assign(ka,{Brand:Qi,Collapse:ta,Offcanvas:xa,Text:Na,Toggle:ra});const Sa=e.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},o)=>{const i=I(e,"row"),a=M(),l=B(),s=`${i}-cols`,u=[];return a.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==l?`-${e}`:"";null!=n&&u.push(`${s}${o}-${n}`)})),y(n,{ref:o,...r,className:k(t,i,...u)})}));Sa.displayName="Row";var Pa=Sa;var Aa,Ca=e.forwardRef((({bsPrefix:e,className:t,striped:n,bordered:r,borderless:o,hover:i,size:a,variant:l,responsive:s,...u},c)=>{const f=I(e,"table"),d=k(t,f,l&&`${f}-${l}`,a&&`${f}-${a}`,n&&`${f}-${"string"==typeof n?`striped-${n}`:"striped"}`,r&&`${f}-bordered`,o&&`${f}-borderless`,i&&`${f}-hover`),p=y("table",{...u,className:d,ref:c});if(s){let e=`${f}-responsive`;return"string"==typeof s&&(e=`${e}-${s}`),y("div",{className:e,children:p})}return p})),Ta=function(e){var n=e.label,r=e.icon,o=e.children,i=e.className,a=e.variant,l=w(e,["label","icon","children","className","variant"]);return t.createElement(pt,O({className:i,variant:a||"primary"},l),n||null,r?t.createElement("i",{className:"bi bi-".concat(r)}):null,o)};!function(e){e[e.NONE=0]="NONE",e[e.HEAD=1]="HEAD",e[e.BODY=2]="BODY"}(Aa||(Aa={}));var Ra=c(Aa.NONE),La=function(e){var n=e.className,r=e.children,o=w(e,["className","children"]);return t.createElement(Ca,O({className:"".concat(n," texmo-table")},o),r)};La.Head=function(e){var n=e.children,r=w(e,["children"]);return t.createElement(Ra.Provider,{value:Aa.HEAD},t.createElement("thead",O({},r),n))},La.Row=function(e){var n=e.borderColour,r=e.className,o=e.style,i=e.children,a=w(e,["borderColour","className","style","children"]);return t.createElement("tr",O({className:"table-responsive text-center h-100 mt-3 mx-0 ".concat(r),style:O({border:"2px solid ".concat(n)},o)},a),i)},La.Cell=function(e){var n=e.borderStart,r=e.className,o=e.children,a=w(e,["borderStart","className","children"]),l=n?"border-start":void 0;switch(i(Ra)){case Aa.HEAD:return t.createElement("th",O({scope:"col list-cell",className:r},a),o);case Aa.BODY:case Aa.NONE:default:return t.createElement("td",O({className:"px-0 pt-0 pb-3 texmo-table"},a),t.createElement("div",O({className:"h-100 d-flex align-items-center list-cell ".concat(r)},a),t.createElement(It,{className:"h-100 w-100 py-3"},t.createElement(It.Body,{className:"d-flex justify-content-center align-items-center py-0 ".concat(l)},t.createElement("div",{className:"w-100 h-100"},o)))))}},La.Body=function(e){var n=e.children,r=w(e,["children"]);return t.createElement("tbody",O({},r),t.createElement(Ra.Provider,{value:Aa.BODY},n))};var qa=function(e){var n=e.className,r=w(e,["className"]);return t.createElement(Uo,O({as:"input",className:n},r))};qa.Feedback=To;var Da=function(e){var n=e.label,r=e.children,o=e.className;return t.createElement(Wo,{className:o},n?t.createElement("small",{className:"text-muted"},n):null,r)},Ia=function(e){var n=e.className,r=e.children,o=w(e,["className","children"]);return t.createElement(Xo,O({className:n},o),r)};Ia.Feedback=To;var Ma=function(e){var n=e.type,r=e.className,o=w(e,["type","className"]);return t.createElement(Bo,O({type:n},o,{className:r}))};Ma.Feedback=To;var Ba=function(){this.__data__=[],this.size=0};var Fa=function(e,t){return e===t||e!=e&&t!=t},Ua=Fa;var $a=function(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1},Ha=$a,Ka=Array.prototype.splice;var Va=$a;var za=$a;var Wa=$a;var Ya=Ba,Za=function(e){var t=this.__data__,n=Ha(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ka.call(t,n,1),--this.size,!0)},Ga=function(e){var t=this.__data__,n=Va(t,e);return n<0?void 0:t[n][1]},Xa=function(e){return za(this.__data__,e)>-1},Ja=function(e,t){var n=this.__data__,r=Wa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Qa(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tl))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=2&n?new Bs:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},_u=wl,Nu=xu,ku=uu,ju={};ju["[object Float32Array]"]=ju["[object Float64Array]"]=ju["[object Int8Array]"]=ju["[object Int16Array]"]=ju["[object Int32Array]"]=ju["[object Uint8Array]"]=ju["[object Uint8ClampedArray]"]=ju["[object Uint16Array]"]=ju["[object Uint32Array]"]=!0,ju["[object Arguments]"]=ju["[object Array]"]=ju["[object ArrayBuffer]"]=ju["[object Boolean]"]=ju["[object DataView]"]=ju["[object Date]"]=ju["[object Error]"]=ju["[object Function]"]=ju["[object Map]"]=ju["[object Number]"]=ju["[object Object]"]=ju["[object RegExp]"]=ju["[object Set]"]=ju["[object String]"]=ju["[object WeakMap]"]=!1;var Su=function(e){return ku(e)&&Nu(e.length)&&!!ju[_u(e)]};var Pu=function(e){return function(t){return e(t)}},Au={exports:{}};!function(e,t){var n=al,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(Au,Au.exports);var Cu=Au.exports,Tu=Su,Ru=Pu,Lu=Cu&&Cu.isTypedArray,qu=Lu?Ru(Lu):Tu,Du=su,Iu=mu,Mu=Qs,Bu=Ou,Fu=Eu,Uu=qu,$u=Object.prototype.hasOwnProperty;var Hu=function(e,t){var n=Mu(e),r=!n&&Iu(e),o=!n&&!r&&Bu(e),i=!n&&!r&&!o&&Uu(e),a=n||r||o||i,l=a?Du(e.length,String):[],s=l.length;for(var u in e)!t&&!$u.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Fu(u,s))||l.push(u);return l},Ku=Object.prototype;var Vu=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ku)};var zu=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Wu=Vu,Yu=zu,Zu=Object.prototype.hasOwnProperty;var Gu=kl,Xu=xu;var Ju=Hu,Qu=function(e){if(!Wu(e))return Yu(e);var t=[];for(var n in Object(e))Zu.call(e,n)&&"constructor"!=n&&t.push(n);return t},ec=function(e){return null!=e&&Xu(e.length)&&!Gu(e)};var tc=nu,nc=lu,rc=function(e){return ec(e)?Ju(e):Qu(e)};var oc=function(e){return tc(e,rc,nc)},ic=Object.prototype.hasOwnProperty;var ac=function(e,t,n,r,o,i){var a=1&n,l=oc(e),s=l.length;if(s!=oc(t).length&&!a)return!1;for(var u=s;u--;){var c=l[u];if(!(a?c in t:ic.call(t,c)))return!1}var f=i.get(e),d=i.get(t);if(f&&d)return f==t&&d==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");return c[r.blotName||r.attrName]=r,"string"==typeof r.keyName?l[r.keyName]=r:(null!=r.className&&(s[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=u[e]&&null!=r.className||(u[e]=r)})))),r}},function(e,t,n){var r=n(51),o=n(11),i=n(3),a=n(20),l=String.fromCharCode(0),s=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};s.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},s.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},s.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},s.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},s.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},s.prototype.filter=function(e){return this.ops.filter(e)},s.prototype.forEach=function(e){this.ops.forEach(e)},s.prototype.map=function(e){return this.ops.map(e)},s.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},s.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},s.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},s.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},s.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),o=0;o0&&n.next(i.retain-l)}for(var u=new s(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(t.rest());return u.concat(y).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&u.push(d)}return u.chop()},s.prototype.concat=function(e){var t=new s(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},s.prototype.diff=function(e,t){if(this.ops===e.ops)return new s;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new s,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var l=c.next(n),s=f.next(n);o(l.insert,s.insert)?i.retain(n,a.attributes.diff(l.attributes,s.attributes)):i.push(s).delete(n)}t-=n}})),i.chop()},s.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),l=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,l)-l:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&e(r,{},o)},s.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),l=n.next(i),u=r.next(i);if(l.delete)continue;u.delete?o.push(u):o.retain(i,a.attributes.transform(l.attributes,u.attributes,t))}else o.retain(a.length(n.next()));return o.chop()},s.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(l.default.Block);function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:m(e.parent,t))}v.blotName="block",v.tagName="P",v.defaultChild="break",v.allowedChildren=[u.default,l.default.Embed,c.default],t.bubbleFormats=m,t.BlockEmbed=y,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=O(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new s.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e){e===s.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(s.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("
"+o+"


");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=E(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),o=new a.default;if(null==r)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=n.editor.formatLine(r.index,r.length,m({},e,t));else{if(0===r.length)return n.selection.format(e,t),o;o=n.editor.formatText(r.index,r.length,m({},e,t))}return n.setSelection(r,s.default.sources.SILENT),o}),r)}},{key:"formatLine",value:function(e,t,n,r,i){var a,l=this,s=E(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],w.call(this,(function(){return l.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,l=this,s=E(e,t,n,r,i),u=o(s,4);return e=u[0],t=u[1],a=u[2],i=u[3],w.call(this,(function(){return l.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=E(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=E(e,t),r=o(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return o.editor.insertEmbed(t,n,r)}),i,t)}},{key:"insertText",value:function(e,t,n,r,i){var a,l=this,s=E(e,0,n,r,i),u=o(s,4);return e=u[0],a=u[2],i=u[3],w.call(this,(function(){return l.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=E(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return w.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),r.compose(o)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=E(t,n,r),a=o(i,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==s.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.sources.API;return w.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function O(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==g.DEFAULTS.theme){if(t.theme=g.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=y.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=g.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},g.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function w(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===s.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,l=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=x(o,l,t):0!==r&&(o=x(o,n,r,t)),this.setSelection(o,s.default.sources.SILENT)),l.length()>0){var u,c,f=[s.default.events.TEXT_CHANGE,l,i,t];(u=this.emitter).emit.apply(u,[s.default.events.EDITOR_CHANGE].concat(f)),t!==s.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return l}function E(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||s.default.sources.API]}function x(e,t,n,r){if(null==e)return null;var i=void 0,l=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==s.default.sources.USER)})),c=o(u,2);i=c[0],l=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=o(d,2);i=p[0],l=p[1]}return new f.Range(i,l-i)}g.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},g.events=s.default.events,g.sources=s.default.sources,g.version="1.3.7",g.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":y.default},t.expandConfig=O,t.overload=E,t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),o=t.order.indexOf(n);return r>=0||o>=0?r-o:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function l(e){return null==e}function s(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,s=i-a+1,u=this.isolate(a,s),c=u.next;u.format(r,o),c instanceof t&&c.formatAt(0,e-a+n-s,r,o)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),a=i[0],l=i[1];a.insertAt(l,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(l.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=l.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof l.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(s.default);v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=y,t.default=v},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),y=o(h,2),m=y[0],b=y[1],g=(0,v.default)({},(0,f.bubbleFormats)(m));if(m instanceof d.default){var O=m.descendant(s.default.Leaf,b),w=o(O,1)[0];g=(0,v.default)(g,(0,f.bubbleFormats)(w))}c=l.default.attributes.diff(g,c)||{}}else if("object"===r(a.insert)){var E=Object.keys(a.insert)[0];if(null==E)return e;t.scroll.insertAt(e,E,a.insert[E])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var l=e-t.offset(n.scroll),s=t.newlineIndex(l+a)-l+1;t.formatAt(l,s,o,r[o])}else t.format(o,r[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t,o,r[o])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof d.default?n.push(t):t instanceof s.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(s.default.Leaf,e,t));var i=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=O((0,f.bubbleFormats)(n),t)}return t}));return v.default.apply(v.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(o){n.scroll.formatAt(e,t.length,o,r[o])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),l=i[0],s=i[1],c=0,f=new a.default;null!=l&&(c=l instanceof u.default?l.newlineIndex(s)-s+1:l.length()-s,f=l.delta().slice(s,s+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(b)&&s.default.find(t[0].target)){var o=s.default.find(t[0].target),i=(0,f.bubbleFormats)(o),l=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(u),p=(new a.default).insert(o.value());e=(new a.default).retain(l).concat(d.diff(p,n)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,y.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function O(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,s.default.sources.USER),1)})),this.emitter.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.TEXT_CHANGE&&t.length()>0&&r.update(s.default.sources.SILENT)})),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(s.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,o=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;r.setNativeRange(o,i,a,l)}})),this.update(s.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(s.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var o=void 0,i=this.scroll.leaf(e),a=r(i,2),l=a[0],s=a[1];if(null==l)return null;var u=l.position(s,!0),c=r(u,2);o=c[0],s=c[1];var f=document.createRange();if(t>0){f.setStart(o,s);var d=this.scroll.leaf(e+t),p=r(d,2);if(l=p[0],s=p[1],null==l)return null;var h=l.position(s,!0),y=r(h,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var v="left",m=void 0;return o instanceof Text?(s0&&(v="right")),{bottom:m.top+m.height,height:m.height,left:m[v],right:m[v],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],l=i.default.find(o,!0),s=l.offset(t.scroll);return 0===a?s:l instanceof i.default.Container?s+l.length():s+l.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),l=Math.min.apply(Math,[a].concat(c(o)));return new p(l,a-l)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,l=t.scroll.leaf(e),s=r(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],l=a;if(t.length>0){var s=this.scroll.line(Math.min(t.index+t.length,o));l=r(s,1)[0]}if(null!=a&&null!=l){var u=e.getBoundingClientRect();n.topu.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var l=document.createRange();l.setStart(e,t),l.setEnd(n,r),i.removeAllRanges(),i.addRange(l)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,t=this.lastRange,n=this.getRange(),o=r(n,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[s.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[s.default.events.EDITOR_CHANGE].concat(d)),e!==s.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function y(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(i,l,s,u,c){"object"==typeof l&&(s=l.depth,u=l.prototype,c=l.includeNonEnumerable,l=l.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===l&&(l=!0),void 0===s&&(s=1/0),function i(s,h){if(null===s)return null;if(0===h)return s;var y,v;if("object"!=typeof s)return s;if(e(s,t))y=new t;else if(e(s,n))y=new n;else if(e(s,r))y=new r((function(e,t){s.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(o.__isArray(s))y=[];else if(o.__isRegExp(s))y=new RegExp(s.source,a(s)),s.lastIndex&&(y.lastIndex=s.lastIndex);else if(o.__isDate(s))y=new Date(s.getTime());else{if(p&&Buffer.isBuffer(s))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(s.length):new Buffer(s.length),s.copy(y),y;e(s,Error)?y=Object.create(s):void 0===u?(v=Object.getPrototypeOf(s),y=Object.create(v)):(y=Object.create(u),v=u)}if(l){var m=f.indexOf(s);if(-1!=m)return d[m];f.push(s),d.push(y)}for(var b in e(s,t)&&s.forEach((function(e,t){var n=i(t,h-1),r=i(e,h-1);y.set(n,r)})),e(s,n)&&s.forEach((function(e){var t=i(e,h-1);y.add(t)})),s){var g;v&&(g=Object.getOwnPropertyDescriptor(v,b)),g&&null==g.set||(y[b]=i(s[b],h-1))}if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(s);for(b=0;b0){if(l instanceof s.BlockEmbed||p instanceof s.BlockEmbed)return void this.optimize();if(l instanceof f.default){var h=l.newlineIndex(l.length(),!0);if(h>-1&&(l=l.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var y=p.newlineIndex(0);y>-1&&p.split(y+1)}var v=p.children.head instanceof c.default?null:p.children.head;l.moveChildren(p,v),l.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,o){(null==this.whitelist||this.whitelist[r])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,o),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var l=a.default.create(n,r);this.appendChild(l)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=l.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);y.blotName="scroll",y.className="ql-editor",y.tagName="DIV",y.defaultChild="block",y.allowedChildren=[u.default,s.BlockEmbed,d.default],t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=j(e);if(null==r||null==r.key)return m.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,s.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var s=e.quill.getSelection();if(null!=s&&e.quill.hasFocus()){var u=e.quill.getLine(s.index),c=o(u,2),d=c[0],p=c[1],h=e.quill.getLeaf(s.index),y=o(h,2),v=y[0],m=y[1],b=0===s.length?[v,m]:e.quill.getLeaf(s.index+s.length),g=o(b,2),O=g[0],w=g[1],E=v instanceof f.default.Text?v.value().slice(0,m):"",x=O instanceof f.default.Text?O.value().slice(w):"",_={collapsed:0===s.length,empty:0===s.length&&d.length()<=1,format:e.quill.getFormat(s),offset:p,prefix:E,suffix:x};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==_.collapsed)return!1;if(null!=t.empty&&t.empty!==_.empty)return!1;if(null!=t.offset&&t.offset!==_.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==_.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=_.format[e]:!1===t.format[e]?null==_.format[e]:(0,l.default)(t.format[e],_.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(_.prefix)||null!=t.suffix&&!t.suffix.test(_.suffix)||!0===t.handler.call(e,s,_))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function O(e,t){var n,r=e===g.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;e===g.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof f.default.Embed&&(e===g.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=o(a,1)[0];if(null!=l&&l.length()>1){var s=r.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(s,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function E(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),l=o(a,1)[0];if(t.offset>=l.length()-1){var s=this.quill.getLine(e.index+1),u=o(s,1)[0];if(u){var f=l.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+i-1,n,r,d.default.sources.USER)}}function x(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),o=t[t.length-1].formats();n=c.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function _(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function N(e){return{key:g.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),l=o(a,2),s=l[0],u=l[1];if(null!=s){var c=this.quill.getIndex(s),p=s.newlineIndex(u,!0)+1,h=s.newlineIndex(c+u+i),y=s.domNode.textContent.slice(p,h).split("\n");u=0,y.forEach((function(t,o){e?(s.insertAt(p+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(s.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,i,d.default.sources.SILENT)}}}}function k(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function j(e){if("string"==typeof e||"number"==typeof e)return j({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=g.keys[e.key.toUpperCase()])e.key=g.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}g.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},g.DEFAULTS={bindings:{bold:k("bold"),italic:k("italic"),underline:k("underline"),indent:{key:g.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:g.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:g.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:g.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:g.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:g.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:g.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,s.default)({},r.formats(),{list:"checked"}),l=(new u.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:g.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],l=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(l,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],l=i[1];if(l>n)return!0;var s=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-l).delete(n+1).retain(a.length()-2-l).retain(1,{list:s});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:g.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new u.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":O(g.keys.LEFT,!1),"embed left shift":O(g.keys.LEFT,!0),"embed right":O(g.keys.RIGHT,!1),"embed right shift":O(g.keys.RIGHT,!0)}},t.default=g,t.SHORTKEY=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(0)),o=m(n(5)),i=n(4),a=m(i),l=m(n(16)),s=m(n(25)),u=m(n(24)),c=m(n(35)),f=m(n(6)),d=m(n(22)),p=m(n(7)),h=m(n(55)),y=m(n(42)),v=m(n(23));function m(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":l.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":y.default,"modules/keyboard":v.default}),r.default.register(a.default,l.default,u.default,f.default,d.default,p.default),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},e.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),l=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),l=i.default.keys(this.domNode);t.concat(n).concat(l).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function s(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(n-=1),n}l.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=l,t.getLastChangeIndex=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,l.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",l.default.sources.USER),this.quill.setSelection(i+2,l.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=_,t.default=x},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(ea?n(r,e-a,Math.min(t,a+s-e)):n(r,0,Math.min(s,e+t-a)),a+=s}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,l),n.attach(),n}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,o){this.update(),e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&l(e.parent))},s=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(s),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);l(t,!1),t instanceof i.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(s),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=s},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,o){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,o){null!=a.query(r,a.Scope.BLOCK)?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var o=this.split(t),i=a.create(n,r);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=l},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,o){0===t&&n===this.length()?this.format(r,o):e.prototype.formatAt.call(this,t,n,r,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=l},function(e,t,n){var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;it.length?e:t,f=e.length>t.length?t:e,d=c.indexOf(f);if(-1!=d)return u=[[r,c.substring(0,d)],[o,f],[r,c.substring(d+f.length)]],e.length>t.length&&(u[0][0]=u[2][0]=n),u;if(1==f.length)return[[n,e],[r,t]];var p=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,i,a,f]:null}var i,a,u,c,f,d=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!d&&!p)return null;i=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(a=i[0],u=i[1],c=i[2],f=i[3]):(c=i[0],f=i[1],a=i[2],u=i[3]);var h=i[4];return[a,u,c,f,h]}(e,t);if(p){var h=p[0],y=p[1],v=p[2],m=p[3],b=p[4],g=i(h,v),O=i(y,m);return g.concat([[o,b]],O)}return function(e,t){for(var o=e.length,i=t.length,l=Math.ceil((o+i)/2),s=l,u=2*l,c=new Array(u),f=new Array(u),d=0;do)v+=2;else if(E>i)y+=2;else if(h&&(N=s+p-O)>=0&&N=(_=o-f[N]))return a(e,t,j,E)}for(var x=-g+m;x<=g-b;x+=2){for(var _,N=s+x,k=(_=x==-g||x!=g&&f[N-1]o)b+=2;else if(k>i)m+=2;else if(!h){var j;if((w=s+p-x)>=0&&w=(_=o-_)))return a(e,t,j,E)}}}return[[n,e],[r,t]]}(e,t)}(e=e.substring(0,e.length-d),t=t.substring(0,t.length-d));return p&&y.unshift([o,p]),h&&y.push([o,h]),u(y),null!=c&&(y=function(e,t){var r=function(e,t){if(0===t)return[o,e];for(var r=0,i=0;i0&&i.splice(a+2,0,[s[0],u]),f(i,a,3)}return e}(y,c)),y=function(e){for(var t=!1,i=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},l=2;l0&&s.push(e[l]);return s}(y)}function a(e,t,n,r){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),s=t.substring(r),u=i(o,a),c=i(l,s);return u.concat(c)}function l(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n1?(0!==a&&0!==c&&(0!==(t=l(d,f))&&(i-a-c>0&&e[i-a-c-1][0]==o?e[i-a-c-1][1]+=d.substring(0,t):(e.splice(0,0,[o,d.substring(0,t)]),i++),d=d.substring(t),f=f.substring(t)),0!==(t=s(d,f))&&(e[i][1]=d.substring(d.length-t)+e[i][1],d=d.substring(0,d.length-t),f=f.substring(0,f.length-t))),0===a?e.splice(i-c,a+c,[r,d]):0===c?e.splice(i-a,a+c,[n,f]):e.splice(i-a-c,a+c,[n,f],[r,d]),i=i-a-c+(a?1:0)+(c?1:0)+1):0!==i&&e[i-1][0]==o?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,c=0,a=0,f="",d=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(i=1;i=0&&r>=t-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=j(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new l.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=s.default.query(e);if(null==n||"list-item"!==n.blotName||!P(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(s.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new l.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new l.default}]],_=[d.AlignAttribute,v.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),N=[d.AlignStyle,p.BackgroundStyle,y.ColorStyle,v.DirectionStyle,m.FontStyle,b.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),k=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],x.concat(r.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(n.matchVisual||a!==D)&&r.addMatcher(i,a)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new l.default).insert(n,O({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],s=i[1],u=C(this.container,a,s);return P(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new l.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new l.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new l.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:t.push(l);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[E]=e[E]||[],e[E].push(l)}))}})),[t,n]}}]),t}(f.default);function j(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return j(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},O({},t,n),r.attributes))}),new l.default)}function S(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function P(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function C(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new l.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,o){var i=C(o,t,n);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[E]||[]).reduce((function(e,t){return t(o,e)}),i)),r.concat(i)}),new l.default):new l.default}function T(e,t,n){return j(n,e,!0)}function R(e,t){var n=s.default.Attributor.Attribute.keys(e),r=s.default.Attributor.Class.keys(e),o=s.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=s.default.query(t,s.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=_[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=N[t])||n.attrName!==t&&n.keyName!==t||(n=N[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=j(t,i)),t}function L(e,t){var n=s.default.query(e);if(null==n)return t;if(n.prototype instanceof s.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new l.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=j(t,n.blotName,n.formats(e)));return t}function q(e,t){return P(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function D(e,t){if(A(e)&&null!=e.nextElementSibling&&!P(t,"\n\n")){var n=e.offsetHeight+parseFloat(S(e).marginTop)+parseFloat(S(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function I(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!S(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}k.DEFAULTS={matchers:[],matchVisual:!0},t.default=k,t.matchAttributor=R,t.matchBlot=L,t.matchNewline=q,t.matchSpacing=D,t.matchText=I},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n '},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.leftr.bottom){var a=o.bottom-o.top,l=e.bottom-e.top+a;this.root.style.top=n-l+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=q(n(29)),o=n(36),i=n(38),a=n(64),l=q(n(65)),s=q(n(66)),u=n(67),c=q(u),f=n(37),d=n(26),p=n(39),h=n(40),y=q(n(56)),v=q(n(68)),m=q(n(27)),b=q(n(69)),g=q(n(70)),O=q(n(71)),w=q(n(72)),E=q(n(73)),x=n(13),_=q(x),N=q(n(74)),k=q(n(75)),j=q(n(57)),S=q(n(41)),P=q(n(28)),A=q(n(59)),C=q(n(60)),T=q(n(61)),R=q(n(108)),L=q(n(62));function q(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":l.default,"formats/code-block":_.default,"formats/header":s.default,"formats/list":c.default,"formats/bold":y.default,"formats/code":x.Code,"formats/italic":v.default,"formats/link":m.default,"formats/script":b.default,"formats/strike":g.default,"formats/underline":O.default,"formats/image":w.default,"formats/video":E.default,"formats/list/item":u.ListItem,"modules/formula":N.default,"modules/syntax":k.default,"modules/toolbar":j.default,"themes/bubble":R.default,"themes/snow":L.default,"ui/icons":S.default,"ui/picker":P.default,"ui/icon-picker":C.default,"ui/color-picker":A.default,"ui/tooltip":T.default},!0),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,o=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),i=this.split(r);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(l.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(56),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=o)&&r.__esModule?r:{default:r}).default);i.blotName="italic",i.tagName=["EM","I"],t.default=i},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(l.default.Embed);c.blotName="image",c.tagName="IMG",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return u.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);c.blotName="video",c.className="ql-video",c.tagName="IFRAME",t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){r.highlight(),o=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(l.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=function(){function e(e,t){for(var n=0;n0&&o===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(t.index,t.length);if(1===i.length)r.position(r.quill.getBounds(t));else{var l=i[i.length-1],s=r.quill.getIndex(l),c=Math.min(l.length()-1,t.index+t.length-s),f=r.quill.getBounds(new u.Range(s,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),t}(l.BaseTooltip);m.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=m,t.default=v},function(e,t,n){e.exports=n(63)}]).default};var Kc,Vc=Hc.exports=Uc(),zc=E&&E.__extends||(Kc=function(e,t){return Kc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Kc(e,t)},function(e,t){function n(){this.constructor=e}Kc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Wc=E&&E.__assign||function(){return Wc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1)throw new Error("The Quill editing area can only be composed of a single React element.");if(Gc.default.Children.count(e.children)&&"textarea"===(null===(t=Gc.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a