@fluidattacks/design 1.6.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +488 -0
- package/dist/index.mjs +15539 -0
- package/dist/types/components/@core/index.d.ts +5 -0
- package/dist/types/components/@core/styles.d.ts +6 -0
- package/dist/{src → types}/components/@core/types.d.ts +3 -2
- package/dist/{src → types}/components/@core/utils.d.ts +2 -2
- package/dist/{src → types}/components/@core/variants/utils.d.ts +2 -2
- package/dist/{src → types}/components/accordion/accordion-content/index.d.ts +1 -1
- package/dist/types/components/accordion/index.d.ts +4 -0
- package/dist/types/components/alert/index.d.ts +4 -0
- package/dist/types/components/alert/styles.d.ts +9 -0
- package/dist/{src → types}/components/alert/types.d.ts +2 -2
- package/dist/types/components/button/index.d.ts +4 -0
- package/dist/types/components/button/styles.d.ts +9 -0
- package/dist/{src → types}/components/button/types.d.ts +4 -8
- package/dist/types/components/carousel/index.d.ts +4 -0
- package/dist/types/components/carousel/styles.d.ts +10 -0
- package/dist/types/components/checkbox/index.d.ts +3 -0
- package/dist/types/components/checkbox/styles.d.ts +7 -0
- package/dist/{src → types}/components/checkbox/types.d.ts +1 -1
- package/dist/{src → types}/components/cloud-image/index.d.ts +2 -2
- package/dist/{src → types}/components/cloud-image/types.d.ts +1 -1
- package/dist/{src → types}/components/code-snippet/index.d.ts +1 -1
- package/dist/types/components/code-snippet/location-code/index.d.ts +5 -0
- package/dist/types/components/code-snippet/styles.d.ts +3 -0
- package/dist/{src → types}/components/colors/index.d.ts +3 -3
- package/dist/types/components/container/index.d.ts +4 -0
- package/dist/types/components/container/styles.d.ts +9 -0
- package/dist/{src → types}/components/container/types.d.ts +2 -2
- package/dist/{src → types}/components/content-card/index.d.ts +1 -1
- package/dist/types/components/content-card/styles.d.ts +2 -0
- package/dist/{src → types}/components/content-card/types.d.ts +1 -1
- package/dist/{src → types}/components/content-card-carousel/index.d.ts +1 -1
- package/dist/{src → types}/components/content-card-carousel/scroll-buttons/index.d.ts +1 -1
- package/dist/types/components/content-card-carousel/styles.d.ts +3 -0
- package/dist/{src → types}/components/content-card-carousel/types.d.ts +1 -1
- package/dist/types/components/divider/index.d.ts +3 -0
- package/dist/{src → types}/components/divider/types.d.ts +1 -1
- package/dist/{src → types}/components/file-preview/index.d.ts +1 -1
- package/dist/types/components/file-preview/styles.d.ts +6 -0
- package/dist/{src → types}/components/file-preview/utils.d.ts +1 -1
- package/dist/{src → types}/components/form/index.d.ts +3 -3
- package/dist/types/components/form/styles.d.ts +4 -0
- package/dist/types/components/grid-layout/styles.d.ts +12 -0
- package/dist/types/components/icon/index.d.ts +3 -0
- package/dist/types/components/icon/styles.d.ts +14 -0
- package/dist/{src → types}/components/icon/types.d.ts +2 -4
- package/dist/types/components/icon-button/index.d.ts +3 -0
- package/dist/types/components/icon-button/styles.d.ts +9 -0
- package/dist/{src → types}/components/icon-button/types.d.ts +4 -4
- package/dist/types/components/inputs/fields/phone/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/phone/styles.d.ts +6 -0
- package/dist/types/components/inputs/fields/text-input/index.d.ts +3 -0
- package/dist/types/components/inputs/index.d.ts +4 -0
- package/dist/{src → types}/components/inputs/label/index.d.ts +1 -1
- package/dist/{src → types}/components/inputs/outline-container/index.d.ts +2 -2
- package/dist/types/components/inputs/styles.d.ts +3 -0
- package/dist/{src → types}/components/inputs/types.d.ts +2 -2
- package/dist/{src → types}/components/interactive-card/icon/index.d.ts +1 -1
- package/dist/{src → types}/components/interactive-card/index.d.ts +1 -1
- package/dist/types/components/interactive-card/styles.d.ts +3 -0
- package/dist/{src → types}/components/interactive-card/types.d.ts +1 -1
- package/dist/{src → types}/components/language-selector/index.d.ts +1 -1
- package/dist/{src → types}/components/language-selector/item-list/index.d.ts +1 -1
- package/dist/types/components/language-selector/styles.d.ts +5 -0
- package/dist/{src → types}/components/language-selector/types.d.ts +1 -1
- package/dist/{src → types}/components/link/index.d.ts +2 -2
- package/dist/types/components/link/styles.d.ts +8 -0
- package/dist/{src → types}/components/list-item/index.d.ts +2 -2
- package/dist/types/components/list-item/styles.d.ts +3 -0
- package/dist/{src → types}/components/list-item/types.d.ts +2 -2
- package/dist/{src → types}/components/little-flag/index.d.ts +1 -1
- package/dist/{src → types}/components/little-flag/styles.d.ts +1 -1
- package/dist/{src → types}/components/logo/index.d.ts +1 -1
- package/dist/{src → types}/components/logo-carousel/index.d.ts +1 -1
- package/dist/types/components/logo-carousel/styles.d.ts +4 -0
- package/dist/{src → types}/components/lottie/index.d.ts +1 -1
- package/dist/types/components/lottie/styles.d.ts +41 -0
- package/dist/{src → types}/components/lottie/types.d.ts +1 -1
- package/dist/types/components/menu/index.d.ts +4 -0
- package/dist/types/components/menu/types.d.ts +31 -0
- package/dist/{src → types}/components/message-banner/index.d.ts +1 -1
- package/dist/types/components/message-banner/styles.d.ts +2 -0
- package/dist/{src → types}/components/message-banner/types.d.ts +3 -3
- package/dist/{src → types}/components/message-banner/utils.d.ts +2 -2
- package/dist/{src → types}/components/notification/index.d.ts +1 -1
- package/dist/types/components/notification/styles.d.ts +7 -0
- package/dist/types/components/notification/utils.d.ts +4 -0
- package/dist/types/components/notification-sign/index.d.ts +3 -0
- package/dist/types/components/notification-sign/styles.d.ts +9 -0
- package/dist/{src → types}/components/notification-sign/types.d.ts +1 -1
- package/dist/{src → types}/components/number-input/index.d.ts +2 -2
- package/dist/types/components/number-input/styles.d.ts +3 -0
- package/dist/{src → types}/components/number-input/types.d.ts +1 -1
- package/dist/{src → types}/components/plan-card/index.d.ts +1 -1
- package/dist/types/components/plan-card/styles.d.ts +3 -0
- package/dist/{src → types}/components/plan-card/types.d.ts +1 -1
- package/dist/{src → types}/components/plan-card/utils.d.ts +1 -1
- package/dist/types/components/premium-feature/index.d.ts +3 -0
- package/dist/types/components/premium-feature/styles.d.ts +2 -0
- package/dist/types/components/premium-feature/types.d.ts +14 -0
- package/dist/{src → types}/components/progress-bar/index.d.ts +1 -1
- package/dist/types/components/progress-bar/styles.d.ts +6 -0
- package/dist/{src → types}/components/progress-bar/types.d.ts +1 -1
- package/dist/types/components/radio-button/index.d.ts +3 -0
- package/dist/types/components/radio-button/styles.d.ts +7 -0
- package/dist/{src → types}/components/radio-button/types.d.ts +1 -1
- package/dist/{src → types}/components/search-bar/index.d.ts +1 -1
- package/dist/{src → types}/components/search-bar/item-searching/index.d.ts +1 -1
- package/dist/types/components/search-bar/styles.d.ts +15 -0
- package/dist/{src → types}/components/search-bar/types.d.ts +1 -1
- package/dist/{src → types}/components/search-bar/utils.d.ts +1 -1
- package/dist/types/components/severity-badge/index.d.ts +3 -0
- package/dist/types/components/severity-badge/types.d.ts +26 -0
- package/dist/types/components/severity-badge/utils.d.ts +3 -0
- package/dist/types/components/severity-overview/badge/index.d.ts +3 -0
- package/dist/types/components/severity-overview/index.d.ts +3 -0
- package/dist/types/components/severity-overview/types.d.ts +40 -0
- package/dist/types/components/severity-overview/utils.d.ts +3 -0
- package/dist/types/components/slide-out-menu/index.d.ts +4 -0
- package/dist/types/components/slide-out-menu/menu-item/index.d.ts +3 -0
- package/dist/types/components/slide-out-menu/styles.d.ts +274 -0
- package/dist/types/components/slide-out-menu/types.d.ts +43 -0
- package/dist/{src → types}/components/step-lapse/index.d.ts +1 -1
- package/dist/types/components/step-lapse/styles.d.ts +8 -0
- package/dist/{src → types}/components/step-lapse/types.d.ts +1 -1
- package/dist/{src → types}/components/table-button/index.d.ts +1 -1
- package/dist/types/components/table-button/styles.d.ts +2 -0
- package/dist/{src → types}/components/table-button/types.d.ts +2 -2
- package/dist/{src → types}/components/tabs/fixed-tabs/index.d.ts +1 -1
- package/dist/{src → types}/components/tabs/index.d.ts +3 -3
- package/dist/types/components/tabs/styles.d.ts +4 -0
- package/dist/{src → types}/components/tabs/tab/index.d.ts +1 -1
- package/dist/{src → types}/components/tabs/types.d.ts +1 -1
- package/dist/{src → types}/components/tag/index.d.ts +1 -1
- package/dist/types/components/tag/styles.d.ts +7 -0
- package/dist/{src → types}/components/tag/types.d.ts +1 -1
- package/dist/types/components/timeline/card/index.d.ts +3 -0
- package/dist/types/components/timeline/index.d.ts +4 -0
- package/dist/types/components/timeline/styles.d.ts +3 -0
- package/dist/types/components/timeline/types.d.ts +21 -0
- package/dist/{src → types}/components/toggle/index.d.ts +2 -2
- package/dist/types/components/toggle/styles.d.ts +4 -0
- package/dist/{src → types}/components/toggle/types.d.ts +2 -2
- package/dist/{src → types}/components/toggle-buttons/index.d.ts +1 -1
- package/dist/types/components/toggle-buttons/styles.d.ts +3 -0
- package/dist/types/components/tooltip/index.d.ts +4 -0
- package/dist/types/components/tooltip/styles.d.ts +7 -0
- package/dist/{src → types}/components/tooltip/types.d.ts +2 -2
- package/dist/{src → types}/components/tour/index.d.ts +2 -2
- package/dist/{src → types}/components/tour/types.d.ts +1 -1
- package/dist/types/components/typography/heading/index.d.ts +3 -0
- package/dist/types/components/typography/index.d.ts +3 -0
- package/dist/types/components/typography/styles.d.ts +23 -0
- package/dist/types/components/typography/text/index.d.ts +3 -0
- package/dist/{src → types}/components/typography/types.d.ts +2 -2
- package/dist/types/hooks/index.d.ts +4 -0
- package/dist/{src → types}/hooks/use-cloudinary-image.d.ts +1 -1
- package/dist/types/index.d.ts +49 -0
- package/package.json +9 -7
- package/dist/design.js +0 -2256
- package/dist/design.mjs +0 -22131
- package/dist/src/components/@core/index.d.ts +0 -5
- package/dist/src/components/@core/styles.d.ts +0 -6
- package/dist/src/components/accordion/index.d.ts +0 -4
- package/dist/src/components/alert/index.d.ts +0 -4
- package/dist/src/components/alert/styles.d.ts +0 -9
- package/dist/src/components/button/index.d.ts +0 -4
- package/dist/src/components/button/styles.d.ts +0 -9
- package/dist/src/components/carousel/index.d.ts +0 -4
- package/dist/src/components/carousel/styles.d.ts +0 -10
- package/dist/src/components/checkbox/index.d.ts +0 -3
- package/dist/src/components/checkbox/styles.d.ts +0 -7
- package/dist/src/components/code-snippet/location-code/index.d.ts +0 -3
- package/dist/src/components/code-snippet/styles.d.ts +0 -3
- package/dist/src/components/container/index.d.ts +0 -4
- package/dist/src/components/container/styles.d.ts +0 -9
- package/dist/src/components/content-card/styles.d.ts +0 -2
- package/dist/src/components/content-card-carousel/styles.d.ts +0 -3
- package/dist/src/components/divider/index.d.ts +0 -3
- package/dist/src/components/file-preview/styles.d.ts +0 -6
- package/dist/src/components/form/styles.d.ts +0 -4
- package/dist/src/components/grid-layout/styles.d.ts +0 -12
- package/dist/src/components/icon/index.d.ts +0 -3
- package/dist/src/components/icon/styles.d.ts +0 -14
- package/dist/src/components/icon-button/index.d.ts +0 -3
- package/dist/src/components/icon-button/styles.d.ts +0 -9
- package/dist/src/components/inputs/fields/phone/index.d.ts +0 -3
- package/dist/src/components/inputs/fields/phone/styles.d.ts +0 -6
- package/dist/src/components/inputs/fields/text-input/index.d.ts +0 -3
- package/dist/src/components/inputs/index.d.ts +0 -4
- package/dist/src/components/inputs/styles.d.ts +0 -3
- package/dist/src/components/interactive-card/styles.d.ts +0 -3
- package/dist/src/components/language-selector/styles.d.ts +0 -5
- package/dist/src/components/link/styles.d.ts +0 -8
- package/dist/src/components/list-item/styles.d.ts +0 -3
- package/dist/src/components/logo-carousel/styles.d.ts +0 -4
- package/dist/src/components/lottie/styles.d.ts +0 -41
- package/dist/src/components/message-banner/styles.d.ts +0 -2
- package/dist/src/components/notification/styles.d.ts +0 -7
- package/dist/src/components/notification/utils.d.ts +0 -4
- package/dist/src/components/notification-sign/index.d.ts +0 -3
- package/dist/src/components/notification-sign/styles.d.ts +0 -9
- package/dist/src/components/number-input/styles.d.ts +0 -3
- package/dist/src/components/plan-card/styles.d.ts +0 -3
- package/dist/src/components/progress-bar/styles.d.ts +0 -6
- package/dist/src/components/radio-button/index.d.ts +0 -3
- package/dist/src/components/radio-button/styles.d.ts +0 -7
- package/dist/src/components/search-bar/styles.d.ts +0 -15
- package/dist/src/components/step-lapse/styles.d.ts +0 -8
- package/dist/src/components/table-button/styles.d.ts +0 -2
- package/dist/src/components/tabs/styles.d.ts +0 -4
- package/dist/src/components/tag/styles.d.ts +0 -7
- package/dist/src/components/toggle/styles.d.ts +0 -4
- package/dist/src/components/toggle-buttons/styles.d.ts +0 -3
- package/dist/src/components/tooltip/index.d.ts +0 -4
- package/dist/src/components/tooltip/styles.d.ts +0 -7
- package/dist/src/components/typography/heading/index.d.ts +0 -3
- package/dist/src/components/typography/index.d.ts +0 -3
- package/dist/src/components/typography/styles.d.ts +0 -23
- package/dist/src/components/typography/text/index.d.ts +0 -3
- package/dist/src/hooks/index.d.ts +0 -4
- package/dist/src/index.d.ts +0 -41
- package/dist/vite.config.d.ts +0 -3
- /package/dist/{src → types}/components/@core/constants.d.ts +0 -0
- /package/dist/{src → types}/components/accordion/types.d.ts +0 -0
- /package/dist/{src → types}/components/carousel/types.d.ts +0 -0
- /package/dist/{src → types}/components/code-snippet/types.d.ts +0 -0
- /package/dist/{src → types}/components/content-card/category-tag/index.d.ts +0 -0
- /package/dist/{src → types}/components/content-card/event-date/index.d.ts +0 -0
- /package/dist/{src → types}/components/file-preview/types.d.ts +0 -0
- /package/dist/{src → types}/components/form/types.d.ts +0 -0
- /package/dist/{src → types}/components/link/types.d.ts +0 -0
- /package/dist/{src → types}/components/little-flag/types.d.ts +0 -0
- /package/dist/{src → types}/components/logo/types.d.ts +0 -0
- /package/dist/{src → types}/components/logo-carousel/types.d.ts +0 -0
- /package/dist/{src → types}/components/logo-carousel/utils.d.ts +0 -0
- /package/dist/{src → types}/components/notification/types.d.ts +0 -0
- /package/dist/{src → types}/components/plan-card/recommended-tag/index.d.ts +0 -0
- /package/dist/{src → types}/components/progress-bar/utils.d.ts +0 -0
- /package/dist/{src → types}/components/toggle-buttons/types.d.ts +0 -0
- /package/dist/{src → types}/hooks/use-carousel.d.ts +0 -0
- /package/dist/{src → types}/hooks/use-click-outside.d.ts +0 -0
- /package/dist/{src → types}/utils/open-url.d.ts +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\\[500px\\]{height:500px}.h-\\[600px\\]{height:600px}.h-\\[900px\\]{height:900px}.w-\\[400px\\]{width:400px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[90px\\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.capitalize{text-transform:capitalize}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@property --tag-padding-x{syntax: "<length>"; initial-value: 4px; inherits: false;}@property --tag-padding-y{syntax: "<length>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),e=require("react"),n=require("react-dom"),r=require("lodash"),i=require("react-router-dom");function o(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const n in t)if("default"!==n){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}return e.default=t,Object.freeze(e)}const s=o(e),a=o(n),l=t=>({getVariant:(e,n)=>t(e)[n]}),c=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h,d,f={exports:{}},m={},g={};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.development.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
"production"===process.env.NODE_ENV?f.exports=function(){if(h)return m;h=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(t,e,r){var a,l={},c=null,u=null;for(a in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)i.call(e,a)&&!s.hasOwnProperty(a)&&(l[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===l[a]&&(l[a]=e[a]);return{$$typeof:n,type:t,key:c,ref:u,props:l,_owner:o.current}}return m.Fragment=r,m.jsx=a,m.jsxs=a,m}():f.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){var t,n=e,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,v=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console.error,console,i)}(0,t,n)}function w(t){return t.displayName||"Context"}function x(t){if(null==t)return null;if("number"==typeof t.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return w(t)+".Consumer";case l:return w(t._context)+".Provider";case u:return function(t,e,n){var r=t.displayName;if(r)return r;var i=e.displayName||e.name||"";return""!==i?n+"("+i+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:x(t.type)||"Memo";case f:var n=t,r=n._payload,m=n._init;try{return x(m(r))}catch(g){return null}}return null}t=Symbol.for("react.module.reference");var k,S,C,_,$,E,P,T=Object.assign,A=0;function j(){}j.__reactDisabledLog=!0;var O,M=v.ReactCurrentDispatcher;function D(t,e,n){if(void 0===O)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);O=r&&r[1]||""}return"\n"+O+t}var I,R=!1,F="function"==typeof WeakMap?WeakMap:Map;function L(t,e){if(!t||R)return"";var n,r=I.get(t);if(void 0!==r)return r;R=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=M.current,M.current=null,function(){if(0===A){k=console.log,S=console.info,C=console.warn,_=console.error,$=console.group,E=console.groupCollapsed,P=console.groupEnd;var t={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}A++}();try{if(e){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(f){n=f}Reflect.construct(t,[],s)}else{try{s.call()}catch(f){n=f}t.call(s.prototype)}}else{try{throw Error()}catch(f){n=f}t()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),l=n.stack.split("\n"),c=a.length-1,u=l.length-1;c>=1&&u>=0&&a[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(a[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||a[c]!==l[u]){var p="\n"+a[c].replace(" at new "," at ");return t.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,p),p}}while(c>=1&&u>=0);break}}}finally{R=!1,M.current=i,function(){if(0==--A){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},t,{value:k}),info:T({},t,{value:S}),warn:T({},t,{value:C}),error:T({},t,{value:_}),group:T({},t,{value:$}),groupCollapsed:T({},t,{value:E}),groupEnd:T({},t,{value:P})})}A<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var h=t?t.displayName||t.name:"",d=h?D(h):"";return"function"==typeof t&&I.set(t,d),d}function N(t,e,n){if(null==t)return"";if("function"==typeof t)return L(t,!(!(r=t.prototype)||!r.isReactComponent));var r;if("string"==typeof t)return D(t);switch(t){case p:return D("Suspense");case h:return D("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return L(t.render,!1);case d:return N(t.type,e,n);case f:var i=t,o=i._payload,s=i._init;try{return N(s(o),e,n)}catch(a){}}return""}I=new F;var z=Object.prototype.hasOwnProperty,V={},B=v.ReactDebugCurrentFrame;function W(t){if(t){var e=t._owner,n=N(t.type,t._source,e?e.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var q=Array.isArray;function U(t){return q(t)}function H(t){return""+t}function G(t){if(function(t){try{return H(t),!1}catch(e){return!0}}(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(e=t,"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object")),H(t);var e}var K,Y,J,X=v.ReactCurrentOwner,Q={key:!0,ref:!0,__self:!0,__source:!0};J={};var Z,tt=v.ReactCurrentOwner,et=v.ReactDebugCurrentFrame;function nt(t){if(t){var e=t._owner,n=N(t.type,t._source,e?e.type:null);et.setExtraStackFrame(n)}else et.setExtraStackFrame(null)}function rt(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}function it(){if(tt.current){var t=x(tt.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Z=!1;var ot={};function st(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=it();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!ot[n]){ot[n]=!0;var r="";t&&t._owner&&t._owner!==tt.current&&(r=" It was passed a child from "+x(t._owner.type)+"."),nt(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),nt(null)}}}function at(t,e){if("object"==typeof t)if(U(t))for(var n=0;n<t.length;n++){var r=t[n];rt(r)&&st(r,e)}else if(rt(t))t._store&&(t._store.validated=!0);else if(t){var i=function(t){if(null===t||"object"!=typeof t)return null;var e=y&&t[y]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof i&&i!==t.entries)for(var o,s=i.call(t);!(o=s.next()).done;)rt(o.value)&&st(o.value,e)}}function lt(e,n,i,g,y,v){var w,k="string"==typeof(w=e)||"function"==typeof w||w===o||w===a||w===s||w===p||w===h||w===m||"object"==typeof w&&null!==w&&(w.$$typeof===f||w.$$typeof===d||w.$$typeof===l||w.$$typeof===c||w.$$typeof===u||w.$$typeof===t||void 0!==w.getModuleId);if(!k){var S,C="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),C+=it(),null===e?S="null":U(e)?S="array":void 0!==e&&e.$$typeof===r?(S="<"+(x(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,C)}var _=function(t,e,n,i,o){var s,a,l,c,u={},p=null,h=null;for(s in void 0!==n&&(G(n),p=""+n),function(t){if(z.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(G(e.key),p=""+e.key),function(t){if(z.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(h=e.ref,function(t,e){if("string"==typeof t.ref&&X.current&&e&&X.current.stateNode!==e){var n=x(X.current.type);J[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',x(X.current.type),t.ref),J[n]=!0)}}(e,o)),e)z.call(e,s)&&!Q.hasOwnProperty(s)&&(u[s]=e[s]);if(t&&t.defaultProps){var d=t.defaultProps;for(s in d)void 0===u[s]&&(u[s]=d[s])}if(p||h){var f="function"==typeof t?t.displayName||t.name||"Unknown":t;p&&(a=u,l=f,(c=function(){K||(K=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:c,configurable:!0})),h&&function(t,e){var n=function(){Y||(Y=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(u,f)}return function(t,e,n,i,o,s,a){var l={$$typeof:r,type:t,key:e,ref:n,props:a,_owner:s,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(t,p,h,o,i,X.current,u)}(e,n,i,y,v);if(null==_)return _;if(k){var $=n.children;if(void 0!==$)if(g)if(U($)){for(var E=0;E<$.length;E++)at($[E],e);Object.freeze&&Object.freeze($)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else at($,e)}return e===o?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){nt(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),nt(null);break}}null!==t.ref&&(nt(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}(_):function(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=x(n);!function(t,e,n,r,i){var o=Function.call.bind(z);for(var s in t)if(o(t,s)){var a=void 0;try{if("function"!=typeof t[s]){var l=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=t[s](e,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}!a||a instanceof Error||(W(i),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,s,typeof a),W(null)),a instanceof Error&&!(a.message in V)&&(V[a.message]=!0,W(i),b("Failed %s type: %s",n,a.message),W(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||Z||(Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}g.Fragment=o,g.jsx=function(t,e,n){return lt(t,e,n,!1)},g.jsxs=function(t,e,n){return lt(t,e,n,!0)}}()),g);var y=f.exports;const v={typography:{type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},shadows:{none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},breakpoints:{mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},spacing:{0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},palette:{primary:{25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},complementary:{25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},error:{25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},info:{25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},warning:{25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},success:{25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},black:"#0c111d",white:"#ffffff",gray:{25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},gradients:{"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"}}},b=(t,e)=>void 0===e?"":`${t}: ${e};`,w=t=>{const e=t.py??t.pt??0,n=t.px??t.pr??0,r=t.py??t.pb??0,i=t.px??t.pl??0;if(t.padding){const[e,n,r,i]=t.padding;return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`}return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`},x=t=>{const e=t.my??t.mt??0,n=t.mx??t.mr??0,r=t.my??t.mb??0,i=t.mx??t.ml??0;if(t.margin){const[e,n,r,i]=t.margin;return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`}return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`},k=t=>`\n ${b("position",t.position)}\n ${b("top",t.top)}\n ${b("right",t.right)}\n ${b("bottom",t.bottom)}\n ${b("left",t.left)}\n ${b("z-index",t.zIndex)}\n `,S=t=>`\n ${b("border",t.border)}\n ${b("border-top",t.borderTop)}\n ${b("border-right",t.borderRight)}\n ${b("border-bottom",t.borderBottom)}\n ${b("border-left",t.borderLeft)}\n ${b("border-color",t.borderColor)}\n ${b("border-radius",t.borderRadius)}\n `,C=t=>{const e=t.scroll?`\n ${h=t.scroll,h.includes("x")?"overflow-x: auto;":""}\n ${(t=>t.includes("y")?"overflow-y: auto;":"")(t.scroll)}\n `:"",n=b("visibility",t.visibility),r=b("display",t.display),i=b("height",t.height),o=b("width",t.width),s=b("max-height",t.maxHeight),a=b("max-width",t.maxWidth),l=b("min-height",t.minHeight),c=b("min-width",t.minWidth),u=b("box-shadow",t.shadow?v.shadows[t.shadow]:void 0),p=b("gap",void 0===t.gap?void 0:v.spacing[t.gap]);var h;return`\n ${e}\n ${n}\n ${r}\n ${i}\n ${o}\n ${s}\n ${a}\n ${l}\n ${c}\n ${u}\n ${b("background-color",t.bgColor)}\n ${b("background",t.bgGradient)}\n ${p}\n ${b("flex-direction",t.flexDirection)}\n ${b("flex-grow",t.flexGrow)}\n ${b("justify-content",t.justify)}\n ${b("justify-self",t.justifySelf)}\n ${b("align-items",t.alignItems)}\n ${b("align-self",t.alignSelf)}\n ${b("flex-wrap",t.wrap)}\n `},_=t=>`\n ${b("color",t.color)}\n ${b("font-family",t.fontFamily)}\n ${b("font-size",t.fontSize)}\n ${b("font-weight",t.fontWeight)}\n ${b("line-spacing",t.letterSpacing)}\n ${b("line-height",t.lineSpacing)}\n ${b("text-align",t.textAlign)}\n ${b("text-decoration",t.textDecoration)}\n ${b("text-overflow",t.textOverflow)}\n ${b("white-space",t.whiteSpace)}\n ${b("word-break",t.wordBreak)}\n ${b("word-wrap",t.wordWrap)}\n `,$=t=>{const e=b("cursor",t.cursor),n=b("border-color",t.borderColorHover),r=b("background-color",t.bgColorHover),i=b("box-shadow",void 0===t.shadowHover?void 0:v.shadows[t.shadowHover]);return`\n ${e}\n\n &:hover {\n ${b("transition",t.transition)||"transition: all 0.2s;"}\n ${n}\n ${r}\n ${i}\n }\n `},E=()=>({shouldForwardProp:t=>!c.includes(t)}),P=t.styled.div.withConfig(E())`
|
|
13
|
+
${w}
|
|
14
|
+
${x}
|
|
15
|
+
${k}
|
|
16
|
+
${C}
|
|
17
|
+
${_}
|
|
18
|
+
${S}
|
|
19
|
+
${$}
|
|
20
|
+
`,T=t.styled.button.withConfig(E())`
|
|
21
|
+
${w}
|
|
22
|
+
${x}
|
|
23
|
+
${k}
|
|
24
|
+
${C}
|
|
25
|
+
${_}
|
|
26
|
+
${S}
|
|
27
|
+
${$}
|
|
28
|
+
`,A=t.styled.p.withConfig(E())`
|
|
29
|
+
${w}
|
|
30
|
+
${x}
|
|
31
|
+
${k}
|
|
32
|
+
${C}
|
|
33
|
+
${_}
|
|
34
|
+
${S}
|
|
35
|
+
${$}
|
|
36
|
+
`,j=t.styled.span.withConfig(E())`
|
|
37
|
+
${w}
|
|
38
|
+
${x}
|
|
39
|
+
${k}
|
|
40
|
+
${C}
|
|
41
|
+
${_}
|
|
42
|
+
${S}
|
|
43
|
+
${$}
|
|
44
|
+
`,O=t.styled(P)`
|
|
45
|
+
${({theme:t,$center:e=!1,$styleMd:n,$styleSm:r})=>`\n ${e?"margin: auto;":""}\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n ${n};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${r};\n }\n `}
|
|
46
|
+
`,M=e.forwardRef((function({as:t="div",center:e,children:n,id:r,onHover:i,onLeave:o,styleMd:s,styleSm:a,...l},c){return y.jsx(O,{$center:e,$styleMd:s,$styleSm:a,as:t,id:r,onMouseLeave:o,onMouseOver:i,ref:c,...l,children:n})})),D=t.styled(A)`
|
|
47
|
+
${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[800],$display:r="block",$fontFamily:i=t.typography.type.primary,$fontWeight:o="bold",$letterSpacing:s=0,$lineSpacing:a=1.5,$lineSpacingSm:l,$size:c,$sizeMd:u,$sizeSm:p,$textFill:h="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${r};\n font-family: ${i};\n font-size: ${t.typography.heading[c]};\n font-weight: ${t.typography.weight[o]};\n letter-spacing: ${s};\n line-height: ${t.spacing[a]};\n width: ${"block"===r?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${h};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.heading[u??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.heading[p??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
|
|
48
|
+
`,I=t.styled(A)`
|
|
49
|
+
${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[600],$display:r="block",$fontFamily:i=t.typography.type.primary,$fontWeight:o="regular",$letterSpacing:s=0,$lineSpacing:a=1.25,$lineSpacingSm:l,$size:c,$sizeMd:u,$sizeSm:p,$textFill:h="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${r};\n font-family: ${i};\n font-size: ${t.typography.text[c]};\n font-weight: ${t.typography.weight[o]};\n letter-spacing: ${s};\n line-height: ${t.spacing[a]};\n width: ${"block"===r?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${h};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.text[u??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text[p??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
|
|
50
|
+
`,R=e.forwardRef((function({bgGradient:t,children:e,className:n,color:r,display:i,fontFamily:o,fontWeight:s,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:u,sizeMd:p,sizeSm:h,textFill:d,wordBreak:f,...m},g){return y.jsx(D,{$bgGradient:t,$color:r,$display:i,$fontFamily:o,$fontWeight:s,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:u,$sizeMd:p,$sizeSm:h,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),F=e.forwardRef((function({bgGradient:t,children:e,className:n,color:r,display:i,fontFamily:o,fontWeight:s,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:u,sizeMd:p,sizeSm:h,textFill:d,wordBreak:f,...m},g){return y.jsx(I,{$bgGradient:t,$color:r,$display:i,$fontFamily:o,$fontWeight:s,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:u,$sizeMd:p,$sizeSm:h,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),L=({isSelectedAndOpen:t,item:e})=>y.jsxs(M,{display:t?"block":"none",padding:[.75,.75,.75,.75],children:[e.description?y.jsx(F,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?y.jsx(M,{children:e.extraElement}):void 0]}),N={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},z=t.styled(j)`
|
|
51
|
+
${({$clickable:t,$color:e="inherit",$disabled:n=!1,$hoverColor:r,$rotation:i,$size:o})=>`\n color: ${e};\n cursor: ${t?"pointer":"inherit"};\n font-size: ${N[o]};\n line-height: 0;\n vertical-align: middle;\n pointer-events: inherit;\n opacity: ${n?"0.5":"1"};\n\n > svg {\n transform: ${void 0===i?"":`rotate(${i}deg)`};\n }\n\n .fill-gradient-01 path {\n fill: url(/gradients.svg#gradient-01);\n fill: url(#gradient-01);\n }\n .fill-gradient-02 path {\n fill: url(/gradients.svg#gradient-02);\n fill: url(#gradient-02);\n }\n\n ${t?`&:hover {\n filter: ${r?"":"brightness(50%)"};\n color: ${r??""};\n }`:""}\n `}
|
|
52
|
+
`;t.styled.div`
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
transition: all 0.2s ease-in-out;
|
|
55
|
+
|
|
56
|
+
&:hover:not([disabled]) {
|
|
57
|
+
transform: scale(1.2);
|
|
58
|
+
}
|
|
59
|
+
`;const V=e.forwardRef((function({clickable:t,disabled:e,hoverColor:n,icon:r,iconClass:i="",iconColor:o,iconMask:s,iconSize:a,iconTransform:l,iconType:c="fa-solid",onClick:u,rotation:p,...h},d){return y.jsx(z,{$clickable:t,$color:o,$disabled:e,$hoverColor:n,$rotation:p,$size:a,"data-testid":`${r}-icon`,onClick:u,ref:d,...h,children:y.jsx("i",{className:`${c} fa-${r} ${i}`,...void 0!==s?{"data-fa-mask":s}:{},...void 0!==l?{"data-fa-transform":l}:{}})},`${c}-${r}`)})),B=e.forwardRef((function({aligned:n="end",items:r,bgColor:i},o){const s=t.useTheme(),[a,l]=e.useState(!1),[c,u]=e.useState(-1),p=e.useCallback((t=>()=>{u(t),l(t!==c||(t=>!t))}),[c]);return y.jsx(M,{ref:o,children:r.map(((t,e)=>{const o=e===c&&a;return y.jsxs(M,{bgColor:i??s.palette.white,children:[y.jsx(M,{bgColorHover:s.palette.gray[100],borderBottom:o||e===r.length-1?"1px solid":void 0,borderColor:s.palette.gray[200],borderTop:"1px solid",cursor:"pointer",onClick:p(e),padding:[.75,.75,.75,.75],children:y.jsxs(M,{as:"summary",display:"flex",flexDirection:"end"===n?"row":"row-reverse",gap:.75,justify:"space-between",children:[y.jsx(F,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",children:t.title}),y.jsx(V,{icon:o?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),y.jsx(L,{isSelectedAndOpen:o,item:t})]},t.title)}))})})),W=t=>{switch(t){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";default:return"circle-exclamation"}},{getVariant:q}=l((t=>({error:`\n background: ${t.palette.error[50]};\n border: 1px solid ${t.palette.error[500]};\n color: ${t.palette.error[700]};\n\n button {\n color: ${t.palette.error[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.error[200]};\n color: ${t.palette.error[700]};\n }\n }\n `,info:`\n background: ${t.palette.info[50]};\n border: 1px solid ${t.palette.info[500]};\n color: ${t.palette.info[700]};\n\n button {\n color: ${t.palette.info[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.info[200]};\n color: ${t.palette.info[700]};\n }\n }\n `,success:`\n background: ${t.palette.success[50]};\n border: 1px solid ${t.palette.success[500]};\n color: ${t.palette.success[700]};\n\n button {\n color: ${t.palette.success[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.success[200]};\n color: ${t.palette.success[700]};\n }\n }\n `,warning:`\n background: ${t.palette.warning[50]};\n border: 1px solid ${t.palette.warning[500]};\n color: ${t.palette.warning[700]};\n\n button {\n color: ${t.palette.warning[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.warning[200]};\n color: ${t.palette.warning[700]};\n }\n }\n `}))),U=t.styled.div`
|
|
60
|
+
${({theme:t,$variant:e})=>`\n background: transparent;\n align-items: center;\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.bold};\n line-height: ${t.spacing[1.25]};\n min-width: 250px;\n width: 100%;\n padding: ${t.spacing[.75]};\n position: relative;\n gap: ${t.spacing[.75]};\n\n button {\n background-color: transparent;\n }\n\n ${q(t,e??"error")}\n `}
|
|
61
|
+
`,H=t.styled.div`
|
|
62
|
+
padding-right: 4px;
|
|
63
|
+
width: 100%;
|
|
64
|
+
`,{getVariant:G}=l((t=>({ghost:`\n background: transparent;\n border: none;\n color: ${t.palette.gray[800]};\n --btn-padding-x: ${t.spacing[.5]};\n --btn-padding-y: ${t.spacing[.625]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n `,link:`\n --btn-padding-x: 0;\n --btn-padding-y: 0;\n color: ${t.palette.gray[800]};\n\n &:hover {\n color: ${t.palette.gray[500]};\n }\n `,primary:`\n background: ${t.palette.primary[500]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[700]};\n color: ${t.palette.white};\n }\n `,secondary:`\n background: ${t.palette.gray[800]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[600]};\n color: ${t.palette.white};\n }\n `,tertiary:`\n background: transparent;\n border: 1px solid ${t.palette.primary[500]};\n color: ${t.palette.primary[500]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: transparent;\n border: 1px solid ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n }\n `}))),K=t.styled(T)`
|
|
65
|
+
${({theme:t,$variant:e})=>`\n align-items: center;\n border-radius: var(--btn-spacing);\n cursor: pointer;\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: var(--btn-spacing);\n justify-content: center;\n line-spacing: ${t.spacing[1.25]};\n padding: var(--btn-padding-y) var(--btn-padding-x);\n position: relative;\n text-align: start;\n transition: all 0.5s ease;\n white-space: nowrap;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${"link"!==e?`--btn-padding-y: ${t.spacing[1]}`:""};\n }\n\n ${G(t,e??"primary")}\n `}
|
|
66
|
+
`,Y=t.styled(K)`
|
|
67
|
+
${({theme:t,$borderRadius:e="4px",$px:n=.5,$py:r=.5})=>`\n --btn-spacing: ${e};\n --btn-padding-x: ${t.spacing[n]};\n --btn-padding-y: ${t.spacing[r]};\n\n align-items: center;\n line-height: 0;\n text-align: center;\n\n > span {\n margin: 0 !important;\n }\n `}
|
|
68
|
+
`,J=Math.min,X=Math.max,Q=Math.round,Z=Math.floor,tt=t=>({x:t,y:t}),et={left:"right",right:"left",bottom:"top",top:"bottom"},nt={start:"end",end:"start"};function rt(t,e,n){return X(t,J(e,n))}function it(t,e){return"function"==typeof t?t(e):t}function ot(t){return t.split("-")[0]}function st(t){return t.split("-")[1]}function at(t){return"x"===t?"y":"x"}function lt(t){return"y"===t?"height":"width"}function ct(t){return["top","bottom"].includes(ot(t))?"y":"x"}function ut(t){return at(ct(t))}function pt(t){return t.replace(/start|end/g,(t=>nt[t]))}function ht(t){return t.replace(/left|right|bottom|top/g,(t=>et[t]))}function dt(t){return"number"!=typeof t?(e=t,{top:0,right:0,bottom:0,left:0,...e}):{top:t,right:t,bottom:t,left:t};var e}function ft(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function mt(t,e,n){let{reference:r,floating:i}=t;const o=ct(e),s=ut(e),a=lt(s),l=ot(e),c="y"===o,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let d;switch(l){case"top":d={x:u,y:r.y-i.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:p};break;case"left":d={x:r.x-i.width,y:p};break;default:d={x:r.x,y:r.y}}switch(st(e)){case"start":d[s]-=h*(n&&c?-1:1);break;case"end":d[s]+=h*(n&&c?-1:1)}return d}async function gt(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=it(e,t),f=dt(d),m=a[h?"floating"===p?"reference":"floating":p],g=ft(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===p?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},w=ft(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+f.top)/b.y,bottom:(w.bottom-g.bottom+f.bottom)/b.y,left:(g.left-w.left+f.left)/b.x,right:(w.right-g.right+f.right)/b.x}}function yt(){return"undefined"!=typeof window}function vt(t){return xt(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function wt(t){var e;return null==(e=(xt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function xt(t){return!!yt()&&(t instanceof Node||t instanceof bt(t).Node)}function kt(t){return!!yt()&&(t instanceof Element||t instanceof bt(t).Element)}function St(t){return!!yt()&&(t instanceof HTMLElement||t instanceof bt(t).HTMLElement)}function Ct(t){return!(!yt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot)}function _t(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function $t(t){return["table","td","th"].includes(vt(t))}function Et(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function Pt(t){const e=Tt(),n=kt(t)?jt(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Tt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function At(t){return["html","body","#document"].includes(vt(t))}function jt(t){return bt(t).getComputedStyle(t)}function Ot(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if("html"===vt(t))return t;const e=t.assignedSlot||t.parentNode||Ct(t)&&t.host||wt(t);return Ct(e)?e.host:e}function Dt(t){const e=Mt(t);return At(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&_t(e)?e:Dt(e)}function It(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Dt(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),s=bt(i);if(o){const t=Rt(s);return e.concat(s,s.visualViewport||[],_t(i)?i:[],t&&n?It(t):[])}return e.concat(i,It(i,[],n))}function Rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ft(t){const e=jt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=St(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=Q(n)!==o||Q(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Lt(t){return kt(t)?t:t.contextElement}function Nt(t){const e=Lt(t);if(!St(e))return tt(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Ft(e);let s=(o?Q(n.width):n.width)/r,a=(o?Q(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const zt=tt(0);function Vt(t){const e=bt(t);return Tt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:zt}function Bt(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),o=Lt(t);let s=tt(1);e&&(r?kt(r)&&(s=Nt(r)):s=Nt(t));const a=(l=o,void 0===(c=n)&&(c=!1),!(u=r)||c&&u!==bt(l)||!c?tt(0):Vt(o));var l,c,u;let p=(i.left+a.x)/s.x,h=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o){const t=bt(o),e=r&&kt(r)?bt(r):r;let n=t,i=Rt(n);for(;i&&r&&e!==n;){const t=Nt(i),e=i.getBoundingClientRect(),r=jt(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;p*=t.x,h*=t.y,d*=t.x,f*=t.y,p+=o,h+=s,n=bt(i),i=Rt(n)}}return ft({width:d,height:f,x:p,y:h})}function Wt(t,e){const n=Ot(t).scrollLeft;return e?e.left+n:Bt(wt(t)).left+n}function qt(t,e,n){void 0===n&&(n=!1);const r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-(n?0:Wt(t,r)),y:r.top+e.scrollTop}}function Ut(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=bt(t),r=wt(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const t=Tt();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(t,n);else if("document"===e)r=function(t){const e=wt(t),n=Ot(t),r=t.ownerDocument.body,i=X(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=X(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Wt(t);const a=-n.scrollTop;return"rtl"===jt(r).direction&&(s+=X(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(wt(t));else if(kt(e))r=function(t,e){const n=Bt(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=St(t)?Nt(t):tt(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{const n=Vt(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ft(r)}function Ht(t,e){const n=Mt(t);return!(n===e||!kt(n)||At(n))&&("fixed"===jt(n).position||Ht(n,e))}function Gt(t,e,n){const r=St(e),i=wt(e),o="fixed"===n,s=Bt(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!o)if(("body"!==vt(e)||_t(i))&&(a=Ot(e)),r){const t=Bt(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=Wt(i));const c=!i||r||o?tt(0):qt(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Kt(t){return"static"===jt(t).position}function Yt(t,e){if(!St(t)||"fixed"===jt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return wt(t)===n&&(n=n.ownerDocument.body),n}function Jt(t,e){const n=bt(t);if(Et(t))return n;if(!St(t)){let e=Mt(t);for(;e&&!At(e);){if(kt(e)&&!Kt(e))return e;e=Mt(e)}return n}let r=Yt(t,e);for(;r&&$t(r)&&Kt(r);)r=Yt(r,e);return r&&At(r)&&Kt(r)&&!Pt(r)?n:r||function(t){let e=Mt(t);for(;St(e)&&!At(e);){if(Pt(e))return e;if(Et(e))return null;e=Mt(e)}return null}(t)||n}const Xt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o="fixed"===i,s=wt(r),a=!!e&&Et(e.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=tt(1);const u=tt(0),p=St(r);if((p||!p&&!o)&&(("body"!==vt(r)||_t(s))&&(l=Ot(r)),St(r))){const t=Bt(r);c=Nt(r),u.x=t.x+r.clientLeft,u.y=t.y+r.clientTop}const h=!s||p||o?tt(0):qt(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:wt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[..."clippingAncestors"===n?Et(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=It(t,[],!1).filter((t=>kt(t)&&"body"!==vt(t))),i=null;const o="fixed"===jt(t).position;let s=o?Mt(t):t;for(;kt(s)&&!At(s);){const e=jt(s),n=Pt(s);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||_t(s)&&!n&&Ht(t,s))?r=r.filter((t=>t!==s)):i=e,s=Mt(s)}return e.set(t,r),r}(e,this._c):[].concat(n),r],s=o[0],a=o.reduce(((t,n)=>{const r=Ut(e,n,i);return t.top=X(r.top,t.top),t.right=J(r.right,t.right),t.bottom=J(r.bottom,t.bottom),t.left=X(r.left,t.left),t}),Ut(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Jt,getElementRects:async function(t){const e=this.getOffsetParent||Jt,n=this.getDimensions,r=await n(t.floating);return{reference:Gt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Ft(t);return{width:e,height:n}},getScale:Nt,isElement:kt,isRTL:function(t){return"rtl"===jt(t).direction}};function Qt(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Lt(t),u=i||o?[...c?It(c):[],...It(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const p=c&&a?function(t,e){let n,r=null;const i=wt(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:p,height:h}=t.getBoundingClientRect();if(a||e(),!p||!h)return;const d={rootMargin:-Z(u)+"px "+-Z(i.clientWidth-(c+p))+"px "+-Z(i.clientHeight-(u+h))+"px "+-Z(c)+"px",threshold:X(0,J(1,l))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(m,{...d,root:i.ownerDocument})}catch(g){r=new IntersectionObserver(m,d)}r.observe(t)}(!0),o}(c,n):null;let h,d=-1,f=null;s&&(f=new ResizeObserver((t=>{let[r]=t;r&&r.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),c&&!l&&f.observe(c),f.observe(e));let m=l?Bt(t):null;return l&&function e(){const r=Bt(t);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const Zt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=ot(n),a=st(n),l="y"===ct(n),c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,p=it(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&"number"==typeof f&&(d="end"===a?-1*f:f),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},te=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=it(t,e),c={x:n,y:r},u=await gt(e,l),p=ct(ot(i)),h=at(p);let d=c[h],f=c[p];if(o){const t="y"===h?"bottom":"right";d=rt(d+u["y"===h?"top":"left"],d,d-u[t])}if(s){const t="y"===p?"bottom":"right";f=rt(f+u["y"===p?"top":"left"],f,f-u[t])}const m=a.fn({...e,[h]:d,[p]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:o,[p]:s}}}}}},ee=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=it(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=ot(i),v=ct(a),b=ot(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(b||!m?[ht(a)]:function(t){const e=ht(t);return[pt(t),e,pt(e)]}(a)),k="none"!==f;!h&&k&&x.push(...function(t,e,n,r){const i=st(t);let o=function(t,e,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:s;default:return[]}}(ot(t),"start"===n,r);return i&&(o=o.map((t=>t+"-"+i)),e&&(o=o.concat(o.map(pt)))),o}(a,m,f,w));const S=[a,...x],C=await gt(e,g),_=[];let $=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&_.push(C[y]),p){const t=function(t,e,n){void 0===n&&(n=!1);const r=st(t),i=ut(t),o=lt(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ht(s)),[s,ht(s)]}(i,s,w);_.push(C[t[0]],C[t[1]])}if($=[...$,{placement:i,overflows:_}],!_.every((t=>t<=0))){var E,P;const t=((null==(E=o.flip)?void 0:E.index)||0)+1,e=S[t];if(e)return{data:{index:t,overflows:$},reset:{placement:e}};let n=null==(P=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(d){case"bestFit":{var T;const t=null==(T=$.filter((t=>{if(k){const e=ct(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:T[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},ne=(t,e,n)=>{const r=new Map,i={platform:Xt,...n},o={...i.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:p}=mt(c,r,l),h=r,d={},f=0;for(let m=0;m<a.length;m++){const{name:n,fn:o}=a[m],{x:g,y:y,data:v,reset:b}=await o({x:u,y:p,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:c,platform:s,elements:{reference:t,floating:e}});u=null!=g?g:u,p=null!=y?y:p,d={...d,[n]:{...d[n],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),({x:u,y:p}=mt(c,h,l))),m=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:d}})(t,e,{...i,platform:o})};var re="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ie(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!=r--;)if(!ie(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&t.$$typeof||ie(t[n],e[n])))return!1}return!0}return t!=t&&e!=e}function oe(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=oe(t);return Math.round(e*n)/n}function ae(t){const e=s.useRef(t);return re((()=>{e.current=t})),e}const le=(t,e)=>({...Zt(t),options:[t,e]});var ce=Object.prototype,ue=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ce)},pe=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),he=ue,de=pe,fe=Object.prototype.hasOwnProperty,me="object"==typeof u&&u&&u.Object===Object&&u,ge=me,ye="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||ye||Function("return this")(),be=ve.Symbol,we=be,xe=Object.prototype,ke=xe.hasOwnProperty,Se=xe.toString,Ce=we?we.toStringTag:void 0,_e=Object.prototype.toString,$e=function(t){var e=ke.call(t,Ce),n=t[Ce];try{t[Ce]=void 0;var r=!0}catch(o){}var i=Se.call(t);return r&&(e?t[Ce]=n:delete t[Ce]),i},Ee=be?be.toStringTag:void 0,Pe=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ee&&Ee in Object(t)?$e(t):function(t){return _e.call(t)}(t)},Te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Ae=p(Te);var je,Oe=Pe,Me=Te,De=function(t){if(!Me(t))return!1;var e=Oe(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ie=ve["__core-js_shared__"],Re=(je=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Fe=Function.prototype.toString,Le=function(t){if(null!=t){try{return Fe.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Ne=De,ze=function(t){return!!Re&&Re in t},Ve=Te,Be=Le,We=/^\[object .+?Constructor\]$/,qe=Function.prototype,Ue=Object.prototype,He=qe.toString,Ge=Ue.hasOwnProperty,Ke=RegExp("^"+He.call(Ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ve(t)||ze(t))&&(Ne(t)?Ke:We).test(Be(t))}(n)?n:void 0},Je=Ye(ve,"DataView"),Xe=Ye(ve,"Map"),Qe=Ye(ve,"Promise"),Ze=Ye(ve,"Set"),tn=Ye(ve,"WeakMap"),en=Pe,nn=Le,rn="[object Map]",on="[object Promise]",sn="[object Set]",an="[object WeakMap]",ln="[object DataView]",cn=nn(Je),un=nn(Xe),pn=nn(Qe),hn=nn(Ze),dn=nn(tn),fn=en;(Je&&fn(new Je(new ArrayBuffer(1)))!=ln||Xe&&fn(new Xe)!=rn||Qe&&fn(Qe.resolve())!=on||Ze&&fn(new Ze)!=sn||tn&&fn(new tn)!=an)&&(fn=function(t){var e=en(t),n="[object Object]"==e?t.constructor:void 0,r=n?nn(n):"";if(r)switch(r){case cn:return ln;case un:return rn;case pn:return on;case hn:return sn;case dn:return an}return e});var mn,gn,yn,vn,bn,wn,xn,kn,Sn=fn,Cn=function(t){return null!=t&&"object"==typeof t},_n=Pe,$n=Cn,En=function(t){return $n(t)&&"[object Arguments]"==_n(t)},Pn=Cn,Tn=Object.prototype,An=Tn.hasOwnProperty,jn=Tn.propertyIsEnumerable,On=En(function(){return arguments}())?En:function(t){return Pn(t)&&An.call(t,"callee")&&!jn.call(t,"callee")},Mn=Array.isArray,Dn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},In=De,Rn=Dn,Fn={exports:{}};mn=Fn,yn=ve,vn=function(){return!1},bn=(gn=Fn.exports)&&!gn.nodeType&&gn,wn=bn&&mn&&!mn.nodeType&&mn,xn=wn&&wn.exports===bn?yn.Buffer:void 0,kn=(xn?xn.isBuffer:void 0)||vn,mn.exports=kn;var Ln=Fn.exports,Nn=Pe,zn=Dn,Vn=Cn,Bn={};Bn["[object Float32Array]"]=Bn["[object Float64Array]"]=Bn["[object Int8Array]"]=Bn["[object Int16Array]"]=Bn["[object Int32Array]"]=Bn["[object Uint8Array]"]=Bn["[object Uint8ClampedArray]"]=Bn["[object Uint16Array]"]=Bn["[object Uint32Array]"]=!0,Bn["[object Arguments]"]=Bn["[object Array]"]=Bn["[object ArrayBuffer]"]=Bn["[object Boolean]"]=Bn["[object DataView]"]=Bn["[object Date]"]=Bn["[object Error]"]=Bn["[object Function]"]=Bn["[object Map]"]=Bn["[object Number]"]=Bn["[object Object]"]=Bn["[object RegExp]"]=Bn["[object Set]"]=Bn["[object String]"]=Bn["[object WeakMap]"]=!1;var Wn={exports:{}};!function(t,e){var n=me,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(Wn,Wn.exports);var qn=Wn.exports,Un=function(t){return Vn(t)&&zn(t.length)&&!!Bn[Nn(t)]},Hn=function(t){return function(e){return t(e)}},Gn=qn&&qn.isTypedArray,Kn=Gn?Hn(Gn):Un,Yn=function(t){if(!he(t))return de(t);var e=[];for(var n in Object(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e},Jn=Sn,Xn=On,Qn=Mn,Zn=function(t){return null!=t&&Rn(t.length)&&!In(t)},tr=Ln,er=ue,nr=Kn,rr=Object.prototype.hasOwnProperty;const ir=p((function(t){if(null==t)return!0;if(Zn(t)&&(Qn(t)||"string"==typeof t||"function"==typeof t.splice||tr(t)||nr(t)||Xn(t)))return!t.length;var e=Jn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(er(t))return!Yn(t).length;for(var n in t)if(rr.call(t,n))return!1;return!0}));var or,sr={exports:{}};
|
|
69
|
+
/*!
|
|
70
|
+
Copyright (c) 2018 Jed Watson.
|
|
71
|
+
Licensed under the MIT License (MIT), see
|
|
72
|
+
http://jedwatson.github.io/classnames
|
|
73
|
+
*/or=sr,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=r(t,n(i)))}return t}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var o in n)t.call(n,o)&&n[o]&&(i=r(i,o));return i}function r(t,e){return e?t?t+" "+e:t+e:t}or.exports?(e.default=e,or.exports=e):window.classNames=e}();const ar=p(sr.exports),lr={core:!1,base:!1};
|
|
74
|
+
/*
|
|
75
|
+
* React Tooltip
|
|
76
|
+
* {@link https://github.com/ReactTooltip/react-tooltip}
|
|
77
|
+
* @copyright ReactTooltip Team
|
|
78
|
+
* @license MIT
|
|
79
|
+
*/function cr({css:t,id:e="react-tooltip-base-styles",type:n="base",ref:r}){var i,o;if(!t||"undefined"==typeof document||lr[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(e="react-tooltip-core-styles"),r||(r={});const{insertAt:s}=r;if(document.getElementById(e))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=e,l.type="text/css","top"===s&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t)),lr[n]=!0}const ur=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:s=[Zt(Number(i)),ee({fallbackAxisSideDirection:"start"}),te({padding:5})],border:a})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=s;return n?(l.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=it(t,e)||{};if(null==c)return{};const p=dt(u),h={x:n,y:r},d=ut(i),f=lt(d),m=await s.getDimensions(c),g="y"===d,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=o.reference[f]+o.reference[d]-h[d]-o.floating[f],x=h[d]-o.reference[d],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=k?k[b]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=a.floating[b]||o.floating[f]);const C=w/2-x/2,_=S/2-m[f]/2-1,$=J(p[y],_),E=J(p[v],_),P=$,T=S-m[f]-E,A=S/2-m[f]/2+C,j=rt(P,A,T),O=!l.arrow&&null!=st(i)&&A!==j&&o.reference[f]/2-(A<P?$:E)-m[f]/2<0,M=O?A<P?A-P:A-T:0;return{[d]:h[d]+M,data:{[d]:j,centerOffset:A-j-M,...O&&{alignmentOffset:M}},reset:O}}}))({element:n,padding:5})),ne(t,e,{placement:r,strategy:o,middleware:l}).then((({x:t,y:e,placement:n,middlewareData:r})=>{var i,o;const s={left:`${t}px`,top:`${e}px`,border:a},{x:l,y:c}=null!==(i=r.arrow)&&void 0!==i?i:{x:0,y:0},u=null!==(o={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==o?o:"bottom",p=a&&{borderBottom:a,borderRight:a};let h=0;if(a){const t=`${a}`.match(/(\d+)px/);h=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...p,[u]:`-${4+h}px`},place:n}}))):ne(t,e,{placement:"bottom",strategy:o,middleware:l}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})))},pr=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),hr=(t,e,n)=>{let r=null;const i=function(...n){!r&&(t.apply(this,n),r=setTimeout((()=>{r=null}),e))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},dr=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,fr=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>fr(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!dr(t)||!dr(e))return t===e;const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((n=>fr(t[n],e[n])))},mr=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},gr=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(mr(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},yr="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vr=t=>{t.current&&(clearTimeout(t.current),t.current=null)},br={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},wr=e.createContext({getTooltipData:()=>br});function xr(t="DEFAULT_TOOLTIP_ID"){return e.useContext(wr).getTooltipData(t)}var kr={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Sr={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Cr=({forwardRef:t,id:n,className:r,classNameArrow:i,variant:o="dark",anchorId:s,anchorSelect:a,place:l="top",offset:c=10,events:u=["hover"],openOnClick:p=!1,positionStrategy:h="absolute",middlewares:d,wrapper:f,delayShow:m=0,delayHide:g=0,float:y=!1,hidden:v=!1,noArrow:b=!1,clickable:w=!1,closeOnEsc:x=!1,closeOnScroll:k=!1,closeOnResize:S=!1,openEvents:C,closeEvents:_,globalCloseEvents:$,imperativeModeOnly:E,style:P,position:T,afterShow:A,afterHide:j,disableTooltip:O,content:M,contentWrapperRef:D,isOpen:I,defaultIsOpen:R=!1,setIsOpen:F,activeAnchor:L,setActiveAnchor:N,border:z,opacity:V,arrowColor:B,role:W="tooltip"})=>{var q;const U=e.useRef(null),H=e.useRef(null),G=e.useRef(null),K=e.useRef(null),Y=e.useRef(null),[J,X]=e.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[Q,Z]=e.useState(!1),[tt,et]=e.useState(!1),[nt,rt]=e.useState(null),it=e.useRef(!1),ot=e.useRef(null),{anchorRefs:st,setActiveAnchor:at}=xr(n),lt=e.useRef(!1),[ct,ut]=e.useState([]),pt=e.useRef(!1),ht=p||u.includes("click"),dt=ht||(null==C?void 0:C.click)||(null==C?void 0:C.dblclick)||(null==C?void 0:C.mousedown),ft=C?{...C}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!C&&ht&&Object.assign(ft,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const mt=_?{..._}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!_&&ht&&Object.assign(mt,{mouseleave:!1,blur:!1,mouseout:!1});const gt=$?{...$}:{escape:x||!1,scroll:k||!1,resize:S||!1,clickOutsideAnchor:dt||!1};E&&(Object.assign(ft,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(mt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(gt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),yr((()=>(pt.current=!0,()=>{pt.current=!1})),[]);const yt=t=>{pt.current&&(t&&et(!0),setTimeout((()=>{pt.current&&(null==F||F(t),void 0===I&&Z(t))}),10))};e.useEffect((()=>{if(void 0===I)return()=>null;I&&et(!0);const t=setTimeout((()=>{Z(I)}),10);return()=>{clearTimeout(t)}}),[I]),e.useEffect((()=>{if(Q!==it.current)if(vr(Y),it.current=Q,Q)null==A||A();else{const t=(()=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,e,n]=t;return Number(e)*("ms"===n?1:1e3)})();Y.current=setTimeout((()=>{et(!1),rt(null),null==j||j()}),t+25)}}),[Q]);const vt=t=>{X((e=>fr(e,t)?e:t))},bt=(t=m)=>{vr(G),tt?yt(!0):G.current=setTimeout((()=>{yt(!0)}),t)},wt=(t=g)=>{vr(K),K.current=setTimeout((()=>{lt.current||yt(!1)}),t)},xt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return N(null),void at({current:null});m?bt():yt(!0),N(n),at({current:n}),vr(K)},kt=()=>{w?wt(g||100):g?wt():yt(!1),vr(G)},St=({x:t,y:e})=>{var n;const r={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};ur({place:null!==(n=null==nt?void 0:nt.place)&&void 0!==n?n:l,offset:c,elementReference:r,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:h,middlewares:d,border:z}).then((t=>{vt(t)}))},Ct=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};St(n),ot.current=n},_t=t=>{var e;if(!Q)return;const n=t.target;n.isConnected&&((null===(e=U.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${s}']`),...ct].some((t=>null==t?void 0:t.contains(n)))||(yt(!1),vr(G)))},$t=hr(xt,50),Et=hr(kt,50),Pt=t=>{Et.cancel(),$t(t)},Tt=()=>{$t.cancel(),Et()},At=e.useCallback((()=>{var t,e;const n=null!==(t=null==nt?void 0:nt.position)&&void 0!==t?t:T;n?St(n):y?ot.current&&St(ot.current):(null==L?void 0:L.isConnected)&&ur({place:null!==(e=null==nt?void 0:nt.place)&&void 0!==e?e:l,offset:c,elementReference:L,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:h,middlewares:d,border:z}).then((t=>{pt.current&&vt(t)}))}),[Q,L,M,P,l,null==nt?void 0:nt.place,c,h,T,null==nt?void 0:nt.position,y]);e.useEffect((()=>{var t,e;const n=new Set(st);ct.forEach((t=>{(null==O?void 0:O(t))||n.add({current:t})}));const r=document.querySelector(`[id='${s}']`);r&&!(null==O?void 0:O(r))&&n.add({current:r});const i=()=>{yt(!1)},o=gr(L),a=gr(U.current);gt.scroll&&(window.addEventListener("scroll",i),null==o||o.addEventListener("scroll",i),null==a||a.addEventListener("scroll",i));let l=null;gt.resize?window.addEventListener("resize",i):L&&U.current&&(l=Qt(L,U.current,At,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=t=>{"Escape"===t.key&&yt(!1)};gt.escape&&window.addEventListener("keydown",c),gt.clickOutsideAnchor&&window.addEventListener("click",_t);const u=[],p=t=>{Q&&(null==t?void 0:t.target)===L||xt(t)},h=t=>{Q&&(null==t?void 0:t.target)===L&&kt()},d=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],f=["click","dblclick","mousedown","mouseup"];Object.entries(ft).forEach((([t,e])=>{e&&(d.includes(t)?u.push({event:t,listener:Pt}):f.includes(t)&&u.push({event:t,listener:p}))})),Object.entries(mt).forEach((([t,e])=>{e&&(d.includes(t)?u.push({event:t,listener:Tt}):f.includes(t)&&u.push({event:t,listener:h}))})),y&&u.push({event:"pointermove",listener:Ct});const m=()=>{lt.current=!0},g=()=>{lt.current=!1,kt()};return w&&!dt&&(null===(t=U.current)||void 0===t||t.addEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.addEventListener("mouseleave",g)),u.forEach((({event:t,listener:e})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(t,e)}))})),()=>{var t,e;gt.scroll&&(window.removeEventListener("scroll",i),null==o||o.removeEventListener("scroll",i),null==a||a.removeEventListener("scroll",i)),gt.resize?window.removeEventListener("resize",i):null==l||l(),gt.clickOutsideAnchor&&window.removeEventListener("click",_t),gt.escape&&window.removeEventListener("keydown",c),w&&!dt&&(null===(t=U.current)||void 0===t||t.removeEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.removeEventListener("mouseleave",g)),u.forEach((({event:t,listener:e})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(t,e)}))}))}}),[L,At,tt,st,ct,C,_,$,ht,m,g]),e.useEffect((()=>{var t,e;let r=null!==(e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a)&&void 0!==e?e:"";!r&&n&&(r=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const i=new MutationObserver((t=>{const e=[],i=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===n?e.push(t.target):t.oldValue===n&&i.push(t.target)),"childList"===t.type){if(L){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(r)try{i.push(...e.filter((t=>t.matches(r)))),i.push(...e.flatMap((t=>[...t.querySelectorAll(r)])))}catch(o){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,L))&&(et(!1),yt(!1),N(null),vr(G),vr(K),!0)}))}if(r)try{const n=[...t.addedNodes].filter((t=>1===t.nodeType));e.push(...n.filter((t=>t.matches(r)))),e.push(...n.flatMap((t=>[...t.querySelectorAll(r)])))}catch(o){}}})),(e.length||i.length)&&ut((t=>[...t.filter((t=>!i.includes(t))),...e]))}));return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}}),[n,a,null==nt?void 0:nt.anchorSelect,L]),e.useEffect((()=>{At()}),[At]),e.useEffect((()=>{if(!(null==D?void 0:D.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>At()))}));return t.observe(D.current),()=>{t.disconnect()}}),[M,null==D?void 0:D.current]),e.useEffect((()=>{var t;const e=document.querySelector(`[id='${s}']`),n=[...ct,e];L&&n.includes(L)||N(null!==(t=ct[0])&&void 0!==t?t:e)}),[s,ct,L]),e.useEffect((()=>(R&&yt(!0),()=>{vr(G),vr(K)})),[]),e.useEffect((()=>{var t;let e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a;if(!e&&n&&(e=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),e)try{const t=Array.from(document.querySelectorAll(e));ut(t)}catch(r){ut([])}}),[n,a,null==nt?void 0:nt.anchorSelect]),e.useEffect((()=>{G.current&&(vr(G),bt(m))}),[m]);const jt=null!==(q=null==nt?void 0:nt.content)&&void 0!==q?q:M,Ot=Q&&Object.keys(J.tooltipStyles).length>0;return e.useImperativeHandle(t,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(gn){return}rt(null!=t?t:null),(null==t?void 0:t.delay)?bt(t.delay):yt(!0)},close:t=>{(null==t?void 0:t.delay)?wt(t.delay):yt(!1)},activeAnchor:L,place:J.place,isOpen:Boolean(tt&&!v&&jt&&Ot)}))),tt&&!v&&jt?e.createElement(f,{id:n,role:W,className:ar("react-tooltip",kr.tooltip,Sr.tooltip,Sr[o],r,`react-tooltip__place-${J.place}`,kr[Ot?"show":"closing"],Ot?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&kr.fixed,w&&kr.clickable),onTransitionEnd:t=>{vr(Y),Q||"opacity"!==t.propertyName||(et(!1),rt(null),null==j||j())},style:{...P,...J.tooltipStyles,opacity:void 0!==V&&Ot?V:void 0},ref:U},jt,e.createElement(f,{className:ar("react-tooltip-arrow",kr.arrow,Sr.arrow,i,b&&kr.noArrow),style:{...J.tooltipArrowStyles,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:H})):null},_r=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),$r=e.forwardRef((({id:t,anchorId:n,anchorSelect:r,content:i,html:o,render:s,className:a,classNameArrow:l,variant:c="dark",place:u="top",offset:p=10,wrapper:h="div",children:d=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:y,delayShow:v=0,delayHide:b=0,float:w=!1,hidden:x=!1,noArrow:k=!1,clickable:S=!1,closeOnEsc:C=!1,closeOnScroll:_=!1,closeOnResize:$=!1,openEvents:E,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:A=!1,style:j,position:O,isOpen:M,defaultIsOpen:D=!1,disableStyleInjection:I=!1,border:R,opacity:F,arrowColor:L,setIsOpen:N,afterShow:z,afterHide:V,disableTooltip:B,role:W="tooltip"},q)=>{const[U,H]=e.useState(i),[G,K]=e.useState(o),[Y,J]=e.useState(u),[X,Q]=e.useState(c),[Z,tt]=e.useState(p),[et,nt]=e.useState(v),[rt,it]=e.useState(b),[ot,st]=e.useState(w),[at,lt]=e.useState(x),[ct,ut]=e.useState(h),[pt,ht]=e.useState(f),[dt,ft]=e.useState(g),[mt,gt]=e.useState(null),[yt,vt]=e.useState(null),bt=e.useRef(I),{anchorRefs:wt,activeAnchor:xt}=xr(t),kt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var r;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(r=null==t?void 0:t.getAttribute(n))&&void 0!==r?r:null),e}),{}),St=t=>{const e={place:t=>{var e;J(null!==(e=t)&&void 0!==e?e:u)},content:t=>{H(null!=t?t:i)},html:t=>{K(null!=t?t:o)},variant:t=>{var e;Q(null!==(e=t)&&void 0!==e?e:c)},offset:t=>{tt(null===t?p:Number(t))},wrapper:t=>{var e;ut(null!==(e=t)&&void 0!==e?e:h)},events:t=>{const e=null==t?void 0:t.split(" ");ht(null!=e?e:f)},"position-strategy":t=>{var e;ft(null!==(e=t)&&void 0!==e?e:g)},"delay-show":t=>{nt(null===t?v:Number(t))},"delay-hide":t=>{it(null===t?b:Number(t))},float:t=>{st(null===t?w:"true"===t)},hidden:t=>{lt(null===t?x:"true"===t)},"class-name":t=>{gt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var r;null===(r=e[t])||void 0===r||r.call(e,n)}))};e.useEffect((()=>{H(i)}),[i]),e.useEffect((()=>{K(o)}),[o]),e.useEffect((()=>{J(u)}),[u]),e.useEffect((()=>{Q(c)}),[c]),e.useEffect((()=>{tt(p)}),[p]),e.useEffect((()=>{nt(v)}),[v]),e.useEffect((()=>{it(b)}),[b]),e.useEffect((()=>{st(w)}),[w]),e.useEffect((()=>{lt(x)}),[x]),e.useEffect((()=>{ft(g)}),[g]),e.useEffect((()=>{bt.current}),[I]),e.useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===I,disableBase:I}}))}),[]),e.useEffect((()=>{var e;const i=new Set(wt);let o=r;if(!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach((t=>{i.add({current:t})}))}catch(u){}const s=document.querySelector(`[id='${n}']`);if(s&&i.add({current:s}),!i.size)return()=>null;const a=null!==(e=null!=yt?yt:s)&&void 0!==e?e:xt.current,l=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=kt(a);St(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const t=kt(a);St(t),l.observe(a,c)}return()=>{l.disconnect()}}),[wt,xt,yt,n,r]),e.useEffect((()=>{null==j||j.border,R&&pr("border",`${R}`),null==j||j.opacity,F&&pr("opacity",`${F}`)}),[]);let Ct=d;const _t=e.useRef(null);if(s){const t=s({content:(null==yt?void 0:yt.getAttribute("data-tooltip-content"))||U||null,activeAnchor:yt});Ct=t?e.createElement("div",{ref:_t,className:"react-tooltip-content-wrapper"},t):null}else U&&(Ct=U);G&&(Ct=e.createElement(_r,{content:G}));const $t={forwardRef:q,id:t,anchorId:n,anchorSelect:r,className:ar(a,mt),classNameArrow:l,content:Ct,contentWrapperRef:_t,place:Y,variant:X,offset:Z,wrapper:ct,events:pt,openOnClick:m,positionStrategy:dt,middlewares:y,delayShow:et,delayHide:rt,float:ot,hidden:at,noArrow:k,clickable:S,closeOnEsc:C,closeOnScroll:_,closeOnResize:$,openEvents:E,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:A,style:j,position:O,isOpen:M,defaultIsOpen:D,border:R,opacity:F,arrowColor:L,setIsOpen:N,afterShow:z,afterHide:V,disableTooltip:B,activeAnchor:yt,setActiveAnchor:t=>vt(t),role:W};return e.createElement(Cr,{...$t})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||cr({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||cr({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Er=t.styled(P)``,Pr=t.styled.div`
|
|
80
|
+
${({theme:t,$maxWidth:e="320px"})=>`\n > :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {\n background-color: ${t.palette.gray[700]};\n border-radius: 8px;\n color: ${t.palette.white};\n font-size: ${t.typography.text.xs};\n max-width: ${e};\n padding: ${t.spacing[.75]};\n z-index: 999999;\n --rt-opacity: 1;\n }\n `}
|
|
81
|
+
`,Tr=e.forwardRef((function({children:r,disabled:i=!1,display:o="inline-block",effect:s="solid",icon:a,iconColor:l,iconSize:c,id:u,maxWidth:p,nodeTip:h,place:d="bottom",tip:f="",title:m="",hide:g=""===f&&""===m&&void 0===h,...v},b){const w=t.useTheme(),[x,k]=e.useState(!1),S=e.useRef(null),C=e.useCallback((()=>{null!==S.current&&clearTimeout(S.current),S.current=setTimeout((()=>{k(!0)}),100)}),[]),_=e.useCallback((()=>{null!==S.current&&clearTimeout(S.current),S.current=setTimeout((()=>{k(!1)}),100)}),[]);return i?y.jsx(e.StrictMode,{children:r}):y.jsxs(Er,{"data-tooltip-id":u,display:o,onMouseLeave:_,onMouseMove:C,ref:b,...v,children:[a?y.jsx(V,{clickable:!0,disabled:i,icon:a,iconColor:l,iconSize:c??"xxs",iconType:x?"fa-solid":"fa-light"}):r,n.createPortal(y.jsx(Pr,{$maxWidth:p,children:y.jsxs($r,{delayShow:500,float:"float"===s||void 0,globalCloseEvents:{resize:!0},hidden:g||!x,id:u,middlewares:[($={fallbackAxisSideDirection:"start"},{...ee($),options:[$,undefined]}),le({mainAxis:10})],noArrow:"float"===s,place:d,children:[ir(m)?void 0:y.jsx(F,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:m}),ir(f)?void 0:y.jsx(F,{color:w.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),ir(h)?void 0:h]})}),document.getElementById("root")??document.body)]});var $})),Ar=e.forwardRef((function({borderRadius:t,disabled:e,icon:n,iconColor:r,iconSize:i="xxs",iconTransform:o,iconType:s,id:a,justify:l="center",onClick:c,px:u,py:p,type:h="button",tooltip:d,tooltipPlace:f,value:m,variant:g="primary",...v},b){const w=y.jsx(Y,{$borderRadius:t,$px:u,$py:p,$variant:g,"aria-label":a,borderRadius:t,disabled:e,id:a,justify:l,onClick:c,ref:b,type:h,value:m,...v,children:y.jsx(V,{clickable:!1,icon:n,iconColor:r,iconSize:i,iconTransform:o,iconType:s})}),x=(h+(g??"")+(a??n)).replace(/ /u,"_");return void 0===d?w:y.jsx(Tr,{id:`${x}-tooltip`,place:f,tip:d,children:w})})),jr=e.forwardRef((function({autoHide:t=!1,children:n,closable:r=!1,onTimeOut:i,show:o=!0,time:s=8,variant:a="error",id:l,...c},u){const[p,h]=e.useState(o),d=e.useCallback((()=>{h(!1)}),[]);return e.useEffect((()=>{const e=setTimeout((()=>{null==i||i(!0),t&&d()}),1e3*s);return()=>{clearTimeout(e)}}),[t,d,s,i]),e.useEffect((()=>{h(o)}),[o,h]),y.jsx(M,{display:p?"block":"none",ref:u,...c,children:y.jsxs(U,{$variant:a,id:l,children:[y.jsx(V,{clickable:!1,icon:W(a),iconSize:"xs",iconType:"fa-light"}),y.jsx(H,{children:n}),r?y.jsx(Ar,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]})})})),Or=e.forwardRef((function({children:t,disabled:n=!1,external:r=!1,href:i,id:o,icon:s,name:a,onClick:l,showArrow:c=!1,type:u="button",tooltip:p,tooltipPlace:h="bottom",underline:d=!1,value:f,variant:m="primary",...g},v){const b=void 0!==p,w=`${o}-tooltip`,x=e.useCallback((()=>{i&&((t,e=!0)=>{const n=window.open(t,e?void 0:"_self","noopener,noreferrer,");Ae(n)&&(n.opener=null)})(i,r)}),[r,i]);return y.jsx(Tr,{disabled:!b,id:w,place:h,tip:p,children:y.jsxs(K,{$variant:m,className:d?"underline":void 0,disabled:n,id:o,name:a,onClick:"link"===m?x:l,ref:v,type:u,value:f,...b?{"data-tooltip-id":w}:{},...g,children:[void 0!==s&&y.jsx(V,{icon:s,iconSize:"xs",iconType:"fa-light"}),t,(c||"link"===m)&&y.jsx(V,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"})]})})})),Mr=t.styled.div`
|
|
82
|
+
position: relative;
|
|
83
|
+
margin: auto;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
`,Dr=t.styled.div`
|
|
86
|
+
display: flex;
|
|
87
|
+
transition: transform 0.5s ease-in-out;
|
|
88
|
+
transform: translateX(
|
|
89
|
+
${({$currentIndex:t})=>100*-t}%
|
|
90
|
+
);
|
|
91
|
+
`,Ir=t.styled.div`
|
|
92
|
+
align-items: center;
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: center;
|
|
95
|
+
min-width: 100%;
|
|
96
|
+
`,Rr=t.styled.button`
|
|
97
|
+
${({theme:t,$isActive:e})=>`\n background-color: ${e?t.palette.primary[400]:t.palette.white};\n border: none;\n border-radius: 50%;\n cursor: pointer;\n height: ${t.spacing[.75]};\n width: ${t.spacing[.75]};\n `}
|
|
98
|
+
`,Fr=t.styled.div`
|
|
99
|
+
align-items: center;
|
|
100
|
+
display: flex;
|
|
101
|
+
gap: ${({theme:t})=>t.spacing[.5]};
|
|
102
|
+
justify-content: center;
|
|
103
|
+
margin-top: ${({theme:t})=>t.spacing[2]};
|
|
104
|
+
`,Lr=(t,n)=>{const[r,i]=e.useState(0),[o,s]=e.useState(0);return e.useEffect((()=>{100===o&&i((t=>t===n-1?0:t+1))}),[o,n]),e.useEffect((()=>{const e=setInterval((()=>{s((t=>100===t?0:t+1))}),t);return()=>{clearInterval(e)}}),[t]),{cycle:r,progress:o,setCycle:i,setProgress:s}},Nr=(t,n,r=!1)=>{e.useEffect((()=>{var e;const i=e=>{t&&!t.contains(e.target)&&n()};return r?(document.addEventListener("click",i,!0),()=>{document.removeEventListener("click",i,!0)}):(null==(e=document.getElementById("root"))||e.addEventListener("click",i,!0),()=>{var t;null==(t=document.getElementById("root"))||t.removeEventListener("click",i,!0)})}),[r,t,n])};class zr{filterOutNonSupportedKeys(t,e){const n=Object.create({});return"object"!=typeof(r=t)||r instanceof Array?Object.create({}):(Object.keys(t).forEach((r=>{e.indexOf(r)>=0&&(n[r]=t[r])})),n);var r}}const Vr=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Br extends zr{constructor(t){super();const e=this.filterOutNonSupportedKeys(t,Vr);Object.assign(this,{secure:!0},e)}extend(t){const e=this.filterOutNonSupportedKeys(t,Vr);return new Br(Object.assign({},this,e))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}let Wr=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}},qr=class extends Error{constructor(t="Unsupported"){super(t)}};function Ur(t){return new qr(t)}function Hr(){return this._qualifierModel||{error:Ur(`unsupported qualifier ${this.constructor.name}`)}}let Gr=class{constructor(){this._qualifierModel={}}toJson(){return Hr.apply(this)}},Kr=class extends Gr{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Wr?this.qualifierValue=e:(this.qualifierValue=new Wr,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Yr=class extends Kr{constructor(t,e){let n;n=e?new Wr([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Jr(){var t,e,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Ur(`unsupported action ${this.constructor.name}`)}}let Xr=class{constructor(){this._actionModel={}}toJson(){return Jr.apply(this)}},Qr=class extends Xr{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new Yr(n)):this.qualifiers.set(e,new Kr(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new Yr(t)):t instanceof Yr&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}},Zr=class extends Qr{constructor(t){var e;super(),this._actionModel={},this.addQualifier(new Kr("b",new Wr((e=t,e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}},ti=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ur(`unsupported action ${this.constructor.name}`)}}},ei=class extends Wr{constructor(t){super(t),this.val=t}getValue(){return this.val}};function ni(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}ni({444:"CHROMA_444",420:"CHROMA_420"}),ni({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),ni({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});const ri=ni({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});ni({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),ni({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),ni({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});let ii=class extends Qr{constructor(t,e,n){let r;super(),this._actionModel={},r=e instanceof ei?e.getValue():e,this._actionModel.actionType=ri[t],this._actionModel[n]=r,this.addQualifier(new Kr(t,e))}},oi=class extends Yr{constructor(t){super("progressive",t)}},si=class extends ii{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new Yr("lossy")),this}progressive(t){return t instanceof oi?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new Yr("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new Yr("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:r,preserveTransparency:i}=t;let o;return o=e?new this("f",e):new this("f"),r&&(r.mode?o.progressive(r.mode):o.progressive()),n&&o.lossy(),i&&o.preserveTransparency(),o}},ai=class t{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new ti(t)}else e=t;return this.actions.push(e),this}addTransformation(e){return e instanceof t?this.actions=this.actions.concat(e.actions):this.actions.push(new ti(e)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new si("q",t)),this}format(t){return this.addAction(new si("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new Zr(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new Qr;let n=t;return"string"==typeof t&&(n=new Yr(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if("error"in(e=r)&&e.error)return r;t.push(r)}var e;return{actions:t}}};class li extends ai{}class ci extends ai{}function ui(t,e,n){let r=0|e,i=String(n);return t.length>r?String(t):(r-=t.length,r>i.length&&(i+=function(t,e){let n=e,r="";for(;n>0;)r+=t,n--;return r}(i,r/i.length)),i.slice(0,r)+String(t))}const pi={};let hi=0;function di(t){let e="";const n=6*t.split(".").length,r=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map((t=>{const e=+t;if(isNaN(e)||e<0)throw"Invalid version number provided";return ui(t,2,"0")})).join(".")}(function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}(t));let i=parseInt(r.split(".").join("")).toString(2);if(i=ui(i,n,"0"),i.length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach((t=>{e+=pi[t]})),e}function fi(){const t="0.0.0";if("undefined"!=typeof window)return t;try{return process.versions.node||t}catch(gn){return t}}function mi(t){const e=function(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}(function(t){const e={techVersion:fi(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}(t));try{const t=function(t){const e=t.split(".");return`${e[0]}.${e[1]}`}(e.techVersion),n=di(e.sdkSemver),r=di(t),i=function(t){const[e,n]=t.split("."),r=parseInt(e).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),s=i.padStart(6,"0");return pi[o]+pi[s]}(e.osVersion),o=e.feature,s=e.sdkCode,{product:a,osType:l}=e;return`D${a}${s}${n}${r}${l}${i}${o}`}catch(n){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((t=>{let e=hi.toString(2);e=ui(e,6,"0"),pi[e]=t,hi++}));const gi={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class yi{constructor(t,e={},n){this.setPublicID(t),this.setCloudConfig(e),this.setURLConfig(n)}setURLConfig(t){return this.urlConfig=new Br(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,e=this.suffix&&this.suffix.indexOf("/")>=0;if(t||e)throw"`suffix`` should not include . or /"}getResourceType(){const t=function(t){return t||"image"}(this.assetType),e=function(t){return t||"upload"}(this.deliveryType),n=!!this.suffix,r=`${t}/${e}`,i=gi[`${t}/${e}`],o=this.urlConfig.useRootPath,s=this.urlConfig.shorten;if(o){if("image/upload"===r)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${r} instead`)}if(s&&"image/upload"===r)return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(gi).join(", ")}, Provided: ${r} instead`)}return r}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,e){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(t,e){const n=e.secure,r=e.privateCdn,i=e.cname,o=e.secureDistribution;return n||i?n&&!o&&r?`https://${t}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${t}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${t}`:!n&&i?`http://${i}/${t}`:"ERROR":`http://res.cloudinary.com/${t}`}(this.cloudName,this.urlConfig),r=t?t.toString():"",i=function(t,e,n){const r=!1!==n;return e?`v${e}`:t.match(/^v[0-9]+/)||function(t){return t.match(/^https?:\//)}(t)||function(t){return t.indexOf("/")<0}(t)?"":r?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if("string"==typeof t)return[n,this.getResourceType(),this.getSignature(),r,i,o.replace(/,/g,"%2C"),this.suffix].filter((t=>t)).join("/");{const t=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(r),i,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((t=>t)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),a=!1!==this.urlConfig.analytics&&!o.includes("?");let l="";if("object"==typeof this.urlConfig.queryParams)try{const t=new URLSearchParams(this.urlConfig.queryParams);a&&t.set("_a",mi(e)),l=t.toString()}catch(s){}else l=this.urlConfig.queryParams||"",a&&(l+=`${l.length>0?"&":""}_a=${mi(e)}`);return l?`${t}?${l}`:t}}}class vi extends yi{constructor(t,e,n,r){super(t,e,n),this.transformation=r}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new si("q",t)),this}format(t){return this.addAction(new si("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,null==t?void 0:t.trackedAnalytics)}}class bi extends vi{constructor(t,e,n){super(t,e,n,new li)}}class wi extends vi{constructor(t,e,n){super(t,e,n,new ci),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class xi{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new bi(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new wi(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const ki=({publicId:t,format:n="webp"})=>{const r=e.useMemo((()=>new xi({cloud:{cloudName:"fluid-attacks"}})),[]);return e.useMemo((()=>r.image(t).format(n)),[r,t,n])},Si={web:{normal:v.typography.text.md,sm:v.typography.text.sm},platform:{normal:v.typography.text.sm,sm:v.typography.text.sm}},Ci=t.styled.label`
|
|
105
|
+
${({$alert:t,$disabled:e,$variant:n})=>{const r=e?300:600;return`\n display: flex;\n align-items: start;\n position: relative;\n cursor: ${e?"not-allowed":"pointer"};\n font-family: ${v.typography.type.primary};\n font-size: ${Si[n].normal};\n font-weight: ${t?"inherit":v.typography.weight.regular};\n line-height: ${v.spacing[1]};\n letter-spacing: 0;\n text-align: left;\n color: ${t?"inherit":v.palette.gray[r]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n svg {\n margin-right: ${v.spacing[.5]};\n top: 0;\n left: 0;\n height: ${v.spacing[.5]};\n width: ${v.spacing[.5]};\n padding: ${v.spacing[.25]};\n background-color: ${v.palette.white};\n border-radius: ${"web"===n?v.spacing[.125]:v.spacing[.25]};\n border: 1px solid ${v.palette.gray[600]};\n }\n\n svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked ~ span > svg {\n background-color: ${v.palette.primary[500]};\n border: 1px solid ${v.palette.primary[500]};\n }\n\n input:disabled ~ span > svg {\n border: 1px solid ${v.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input:not(:disabled):hover ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.gray[100]};\n }\n\n input:checked:disabled ~ span > svg {\n background-color: ${v.palette.gray[300]};\n border: 1px solid ${v.palette.gray[300]};\n }\n\n input:not(:disabled):hover:checked ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.primary[50]};\n }\n\n input:checked ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked:disabled ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n @media screen and (max-width: ${v.breakpoints.mobile}) {\n font-size: ${Si[n].sm};\n }\n `}}
|
|
106
|
+
`,_i=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:r,onChange:i,onClick:o,onFocus:s,onKeyDown:a,value:l,variant:c="web",...u},p){return y.jsxs(Ci,{$disabled:e,$variant:c,children:[y.jsx("input",{"aria-label":r,defaultChecked:t,disabled:e,id:r,name:r,onChange:i,onClick:o,onFocus:s,onKeyDown:a,ref:p,type:"checkbox",value:l,...u}),y.jsx(V,{disabled:e,icon:"check",iconSize:"sm"}),n??l]})}));var $i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ei={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Boolean]",s="[object Date]",a="[object Function]",l="[object GeneratorFunction]",c="[object Map]",u="[object Number]",p="[object Object]",h="[object Promise]",d="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",_="[object Uint8Array]",$="[object Uint8ClampedArray]",E="[object Uint16Array]",P="[object Uint32Array]",T=/\w*$/,A=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,O={};O[i]=O["[object Array]"]=O[v]=O[b]=O[o]=O[s]=O[w]=O[x]=O[k]=O[S]=O[C]=O[c]=O[u]=O[p]=O[d]=O[f]=O[m]=O[g]=O[_]=O[$]=O[E]=O[P]=!0,O["[object Error]"]=O[a]=O[y]=!1;var M="object"==typeof $i&&$i&&$i.Object===Object&&$i,D="object"==typeof self&&self&&self.Object===Object&&self,I=M||D||Function("return this")(),R=e&&!e.nodeType&&e,F=R&&t&&!t.nodeType&&t,L=F&&F.exports===R;function N(t,e){return t.set(e[0],e[1]),t}function z(t,e){return t.add(e),t}function V(t,e,n,r){for(var i=-1,o=t?t.length:0;++i<o;)n=e(n,t[i],i,t);return n}function B(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function W(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function q(t,e){return function(n){return t(e(n))}}function U(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var H,G=Array.prototype,K=Function.prototype,Y=Object.prototype,J=I["__core-js_shared__"],X=(H=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",Q=K.toString,Z=Y.hasOwnProperty,tt=Y.toString,et=RegExp("^"+Q.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=L?I.Buffer:void 0,rt=I.Symbol,it=I.Uint8Array,ot=q(Object.getPrototypeOf,Object),st=Object.create,at=Y.propertyIsEnumerable,lt=G.splice,ct=Object.getOwnPropertySymbols,ut=nt?nt.isBuffer:void 0,pt=q(Object.keys,Object),ht=It(I,"DataView"),dt=It(I,"Map"),ft=It(I,"Promise"),mt=It(I,"Set"),gt=It(I,"WeakMap"),yt=It(Object,"create"),vt=zt(ht),bt=zt(dt),wt=zt(ft),xt=zt(mt),kt=zt(gt),St=rt?rt.prototype:void 0,Ct=St?St.valueOf:void 0;function _t(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $t(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){this.__data__=new $t(t)}function Tt(t,e,n){var r=t[e];Z.call(t,e)&&Vt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function At(t,e){for(var n=t.length;n--;)if(Vt(t[n][0],e))return n;return-1}function jt(t,e,n,r,h,y,A){var j;if(r&&(j=y?r(t,h,y,A):r(t)),void 0!==j)return j;if(!Ht(t))return t;var M,D,I,R=Bt(t);if(R){if(D=(M=t).length,I=M.constructor(D),D&&"string"==typeof M[0]&&Z.call(M,"index")&&(I.index=M.index,I.input=M.input),j=I,!e)return function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(t,j)}else{var F=Ft(t),L=F==a||F==l;if(qt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(F==p||F==i||L&&!y){if(B(t))return y?t:{};if(j=function(t){return"function"!=typeof t.constructor||Nt(t)?{}:Ht(e=ot(t))?st(e):{};var e}(L?{}:t),!e)return function(t,e){return Mt(t,Rt(t),e)}(t,function(t,e){return t&&Mt(e,Gt(e),t)}(j,t))}else{if(!O[F])return y?t:{};j=function(t,e,n,r){var i,a,l,p=t.constructor;switch(e){case v:return Ot(t);case o:case s:return new p(+t);case b:return i=t,a=r?Ot(i.buffer):i.buffer,new i.constructor(a,i.byteOffset,i.byteLength);case w:case x:case k:case S:case C:case _:case $:case E:case P:return function(t,e){var n=e?Ot(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case c:return function(t,e,n){return V(e?n(W(t),!0):W(t),N,new t.constructor)}(t,r,n);case u:case m:return new p(t);case d:return function(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}(t);case f:return function(t,e,n){return V(e?n(U(t),!0):U(t),z,new t.constructor)}(t,r,n);case g:return l=t,Ct?Object(Ct.call(l)):{}}}(t,F,jt,e)}}A||(A=new Pt);var q=A.get(t);if(q)return q;if(A.set(t,j),!R)var H=n?function(t){return function(t,e,n){var r=e(t);return Bt(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Gt,Rt)}(t):Gt(t);return function(i){for(var o=-1,s=i?i.length:0;++o<s&&!1!==(a=i[o],l=o,H&&(a=t[l=a]),void Tt(j,l,jt(a,e,n,r,l,t,A))););var a,l}(H||t),j}function Ot(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Mt(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i];Tt(n,s,t[s])}return n}function Dt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function It(t,e){var n,r,i=(r=e,null==(n=t)?void 0:n[r]);return function(t){return!(!Ht(t)||(e=t,X&&X in e))&&(Ut(t)||B(t)?et:A).test(zt(t));var e}(i)?i:void 0}_t.prototype.clear=function(){this.__data__=yt?yt(null):{}},_t.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},_t.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===n?void 0:r}return Z.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:Z.call(e,t)},_t.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},$t.prototype.clear=function(){this.__data__=[]},$t.prototype.delete=function(t){var e=this.__data__,n=At(e,t);return!(n<0||(n==e.length-1?e.pop():lt.call(e,n,1),0))},$t.prototype.get=function(t){var e=this.__data__,n=At(e,t);return n<0?void 0:e[n][1]},$t.prototype.has=function(t){return At(this.__data__,t)>-1},$t.prototype.set=function(t,e){var n=this.__data__,r=At(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Et.prototype.clear=function(){this.__data__={hash:new _t,map:new(dt||$t),string:new _t}},Et.prototype.delete=function(t){return Dt(this,t).delete(t)},Et.prototype.get=function(t){return Dt(this,t).get(t)},Et.prototype.has=function(t){return Dt(this,t).has(t)},Et.prototype.set=function(t,e){return Dt(this,t).set(t,e),this},Pt.prototype.clear=function(){this.__data__=new $t},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!dt||r.length<199)return r.push([t,e]),this;n=this.__data__=new Et(r)}return n.set(t,e),this};var Rt=ct?q(ct,Object):function(){return[]},Ft=function(t){return tt.call(t)};function Lt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Y)}function zt(t){if(null!=t){try{return Q.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(ht&&Ft(new ht(new ArrayBuffer(1)))!=b||dt&&Ft(new dt)!=c||ft&&Ft(ft.resolve())!=h||mt&&Ft(new mt)!=f||gt&&Ft(new gt)!=y)&&(Ft=function(t){var e=tt.call(t),n=e==p?t.constructor:void 0,r=n?zt(n):void 0;if(r)switch(r){case vt:return b;case bt:return c;case wt:return h;case xt:return f;case kt:return y}return e});var Bt=Array.isArray;function Wt(t){return null!=t&&("number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=r)&&!Ut(t);var e}var qt=ut||function(){return!1};function Ut(t){var e=Ht(t)?tt.call(t):"";return e==a||e==l}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Gt(t){return Wt(t)?function(t){var e,n,r=Bt(t)||function(t){return!!t&&"object"==typeof t}(n=e=t)&&Wt(n)&&Z.call(e,"callee")&&(!at.call(e,"callee")||tt.call(e)==i)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=r.length,s=!!o;for(var a in t)!Z.call(t,a)||s&&("length"==a||Lt(a,o))||r.push(a);return r}(t):function(t){if(!Nt(t))return pt(t);var e=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return jt(t,!0,!0)}}(Ei,Ei.exports);var Pi=Ei.exports,Ti=function(){return Ti=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ti.apply(this,arguments)};function Ai(t,e,n,r,i){return function(t,e,n,r){return new(n||(n=Promise))((function(e,i){function o(t){try{a(r.next(t))}catch(e){i(e)}}function s(t){try{a(r.throw(t))}catch(e){i(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,s)}a((r=r.apply(t,[])).next())}))}(this,0,void 0,(function(){var o,s;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(l){a=[6,l],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(a){switch(a.label){case 0:if(void 0===n)return[2];s=0,a.label=1;case 1:return s<n.length?[4,n[s](t,e,r,i,n)]:[3,4];case 2:if("canceled"===(o=a.sent()))return[3,4];a.label=3;case 3:return s++,[3,1];case 4:return"canceled"!==o?[2,o]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var ji=function(t,e){return void 0===e&&(e={}),t?{trackedAnalytics:Ti({sdkCode:t.sdkCode,sdkSemver:t.sdkSemver,techVersion:t.techVersion},e)}:null},Oi=function(){function t(t,e,n,r){var i=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=Pi(e);Ai(t,o,n,this.htmlPluginState,r).then((function(t){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach((function(t){t()}));var e=ji(r,t);i.imgElement.setAttribute("src",o.toURL(e))}}))}return t.prototype.update=function(t,e,n){var r=this,i=Pi(t);Ai(this.imgElement,i,e,this.htmlPluginState).then((function(t){if(r.isMounted){var e=ji(n,t);r.imgElement.setAttribute("src",i.toURL(e))}}))},t.prototype.unmount=function(){this.isMounted=!1},t}();class Mi{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}}class Di extends Error{constructor(t="Unsupported"){super(t)}}function Ii(t){return new Di(t)}function Ri(){return this._qualifierModel||{error:Ii(`unsupported qualifier ${this.constructor.name}`)}}class Fi{constructor(){this._qualifierModel={}}toJson(){return Ri.apply(this)}}class Li extends Fi{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Mi?this.qualifierValue=e:(this.qualifierValue=new Mi,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class Ni extends Li{constructor(t,e){let n;n=e?new Mi([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}}function zi(){var t,e,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Ii(`unsupported action ${this.constructor.name}`)}}class Vi{constructor(){this._actionModel={}}toJson(){return zi.apply(this)}}class Bi extends Vi{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new Ni(n)):this.qualifiers.set(e,new Li(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new Ni(t)):t instanceof Ni&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}}class Wi extends Bi{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class qi extends Wi{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Li("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Li("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Li("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Li("h",t)),this}static fromJson(t){const e=new qi;return t.width&&e.width(t.width),t.height&&e.height(t.height),t.x&&e.x(t.x),t.y&&e.y(t.y),e}}function Ui(){return new Wi("faces")}function Hi(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}const Gi={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},Ki={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Yi={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Ji={444:"CHROMA_444",420:"CHROMA_420"},Xi=Hi(Ji);Hi({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const Qi=Hi(Gi),Zi=Hi({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),to=Hi(Ki);Hi(Yi),Hi({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class eo extends Bi{constructor(t,e){super(),this._actionModel={},this._actionModel.actionType=to[t]||t;const n=this.createEffectQualifier(t,e);this.addQualifier(n)}createEffectQualifier(t,e){let n;return n=e?new Mi([t,`${e}`]).setDelimiter(":"):new Mi(t),new Li("e",n)}static fromJson(t){const{actionType:e,level:n,strength:r}=t;return new this(Ki[e]||e,n||r)}}class no extends eo{constructor(t,e){super(t,e),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=to[t]||t,e&&this.setLevel(e)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const e=this.createEffectQualifier(this.effectType,t);return this.addQualifier(e),this}}function ro(t){return t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t}class io extends no{level(t){return this._actionModel.level=t,this.setLevel(t)}}class oo extends io{color(t){return this._actionModel.color=t,this.addQualifier(new Li("co",new Mi(ro(t))))}static fromJson(t){const{actionType:e,level:n,color:r}=t,i=new this(e,n);return r&&i.color(r),i}}function so(t){return new oo("colorize",t)}class ao extends Bi{constructor(t){super(),this._actionModel={},this.addQualifier(new Li("b",new Mi(ro(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}}class lo{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ii(`unsupported action ${this.constructor.name}`)}}}class co extends Mi{constructor(t){super(t),this.val=t}getValue(){return this.val}}class uo extends Bi{constructor(t,e,n){let r;super(),this._actionModel={},r=e instanceof co?e.getValue():e,this._actionModel.actionType=Zi[t],this._actionModel[n]=r,this.addQualifier(new Li(t,e))}}class po extends Ni{constructor(t){super("progressive",t)}}class ho extends uo{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new Ni("lossy")),this}progressive(t){return t instanceof po?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new Ni("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new Ni("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:r,preserveTransparency:i}=t;let o;return o=e?new this("f",e):new this("f"),r&&(r.mode?o.progressive(r.mode):o.progressive()),n&&o.lossy(),i&&o.preserveTransparency(),o}}class fo{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new lo(t)}else e=t;return this.actions.push(e),this}addTransformation(t){return t instanceof fo?this.actions=this.actions.concat(t.actions):this.actions.push(new lo(t)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new ho("q",t)),this}format(t){return this.addAction(new ho("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new ao(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new Bi;let n=t;return"string"==typeof t&&(n=new Ni(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if("error"in(e=r)&&e.error)return r;t.push(r)}var e;return{actions:t}}}function mo(t){const e=t.toString();return e.match(/[A-Z]/gi)||e.length>1&&"0"===e[0]||isNaN(parseFloat(e))||-1!==e.indexOf(":")||-1!==e.indexOf(".")?e:`${e}.0`}class go extends Mi{}class yo extends Bi{constructor(t,e,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Qi[t]||t,this.addQualifier(new Li("c",t)),e&&this.width(e),n&&this.height(n)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Li("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Li("w",t))}aspectRatio(t){return t instanceof go?(this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Li("ar",t))):"number"==typeof t||"string"==typeof t?(this._actionModel.dimensions.aspectRatio=mo(t),this.addQualifier(new Li("ar",mo(t)))):t instanceof Ni?(this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new Ni("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new Ni("region_relative"))}static fromJson(t){const{actionType:e,dimensions:n,relative:r,regionRelative:i}=t,{aspectRatio:o,width:s,height:a}=n,l=new this(Gi[e]||e,s,a);return o&&l.aspectRatio("ignore_aspect_ratio"===o?new Ni("ignore_aspect_ratio"):o),r&&l.relative(),i&&l.regionRelative(),l}}class vo extends Li{constructor(t){super("g",new Mi(t))}}class bo extends vo{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class wo extends vo{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class xo extends vo{constructor(t){super(t)}}function ko(...t){const e=[...t];return new wo(e)}function So(){return new bo}class Co extends Mi{constructor(t){super(),this.name=t}toString(){return this.name}}function _o(t){return`${t}`.replace("g_","")}function $o(t){const e=t.toString().split("_"),n={object:e[0]};return e.length>1&&("avoid"===e[1]?n.avoid=!0:n.weight=+e[1]),n}function Eo(t){let e;const n="auto"===t?new bo:t;return e=`${t}`.startsWith("auto:")?`${t}`.split(":").filter((t=>"auto"!==t)):n.qualifierValue.values.filter((t=>"auto"!==t)),{gravityType:"auto",autoFocus:e.map($o)}}class Po extends Mi{constructor(t,e){super(),this._weight=e,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,e){return new Po(t,e)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class To extends Mi{constructor(t){super(),this.val=t}toString(){return this.val}}function Ao(t){const{object:e,weight:n,avoid:r}=t,i=new Po(new Co(e));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function jo(t){const e=(t.autoFocus||[]).map(Ao);return So().autoFocus(...e)}class Oo extends yo{gravity(t){this._actionModel.gravity=function(t){return function(t){const e=_o(t);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(e)}(t)?{compass:_o(t),gravityType:"direction"}:(e=t,"ocr_text"===_o(e)?{gravityType:"ocr"}:function(t){return t&&"auto"===`${t}`.split(":")[0]}(t)||function(t){return"auto"===`${t.qualifierValue}`.split(":")[0]}(t)?Eo(t):function(t){const e=`${t}`.split(":").includes("auto"),n=t.qualifierValue.values,r={gravityType:"object",focusOnObjects:(e?n.slice(0,n.length-1):n).map((t=>`${t}`))};if(e){const t=n[n.length-1].values.slice(1),e=So().autoFocus(...t);r.fallbackGravity=Eo(e)}return r}("string"==typeof t?function(t){const e=t.split(":").map((t=>new Co(t)));return new wo(e)}(t):t));var e}(t);const e="string"==typeof t?new Li("g",t):t;return this.addQualifier(e)}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.gravity&&e.gravity(function(t){return"direction"===t.gravityType?new xo(new To(t.compass)):(e=t,"ocr"===e.gravityType?ko(new Co("ocr_text")):function(t){return"auto"===t.gravityType}(t)?jo(t):function(t){const e=ko(...(t.focusOnObjects||[]).map((t=>new Co(t))));if(t.fallbackGravity){const n=jo(t.fallbackGravity);e.fallbackGravity(n)}return e}(t));var e}(t.gravity)),e}}class Mo extends Li{constructor(t){super("b"),t&&this.addValue(t)}}var Do=class extends Mo{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class Io extends Mo{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map((t=>ro(t))),this}}class Ro extends Io{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Fo extends Io{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class Lo extends Fo{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class No extends Fo{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class zo extends Io{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Vo extends Mo{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function Bo(t){return`${t}`.replace("b_","")}function Wo(t){const e=t._contrast,n=t._palette,r={backgroundType:""};return e&&(r.contrast=!0),n&&(r.palette=n),r}function qo(t){const e=t._gradientColors,n=`${t._gradientDirection}`,r=Wo(t);return e&&(r.gradientColors=e),n&&(r.gradientDirection=n),r}function Uo(){return new co("auto")}function Ho(){return new Ro}function Go(){return new Mo("auto")}function Ko(){return new Lo}function Yo(){return new No}function Jo(){return new zo}function Xo(t){return new Mo(ro(t))}function Qo(){return new Vo}const Zo={auto:Go,border:Ho,borderGradient:Ko,predominantGradient:Yo,predominant:Jo,color:Xo,blurred:function(){return new Do},generativeFill:Qo};function ts(t,e){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=e;return i&&t.contrast(),o&&t.palette(...o),n&&t.gradientColors(+n),r&&t.gradientDirection(r),t}function es(t,e){const{contrast:n,palette:r}=e;return n&&t.contrast(),r&&t.palette(...r),t}class ns extends Oo{x(t){return this._actionModel.x=t,this.addQualifier(new Li("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Li("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Li("z",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),t.zoom&&e.zoom(t.zoom),e}}class rs extends Oo{x(t){return this._actionModel.x=t,this.addQualifier(new Li("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Li("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),e}}class is extends uo{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Ji[t];const e=new Mi([this._actionModel.level,t]);return e.setDelimiter(":"),this.addQualifier(new Li("q",e))}quantization(t){this._actionModel.quantization=t;const e=new Mi([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Li("q",e))}static fromJson(t){const{level:e,chromaSubSampling:n,quantization:r}=t,i=new this(Yi[e]||e);if(n){const t=Xi[n.toUpperCase()];t&&i.chromaSubSampling(+t)}return r&&i.quantization(r),i}}function os(t){return new ho("f",t)}function ss(t){return new is(t)}so(70).color("black"),so(40).color("white"),new eo("grayscale"),new class extends Bi{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Li("e",new Mi("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Li("e",new Mi(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Li("e",new Mi(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:e,type:n,stripesStrength:r}=t,i=new this;return"xray"===n&&i.xray(),"stripes"===n&&r&&i.stripesStrength(r),i}};var as,ls={vectorize:(new fo).effect(new class extends Bi{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Mi(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Mi(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Mi(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Mi(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Mi(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Li("e",t))}static fromJson(t){const{actionType:e,paths:n,cornersLevel:r,despeckleLevel:i,detailLevel:o,numOfColors:s}=t,a=new this;return n&&a.paths(n),r&&a.cornersLevel(r),i&&a.despeckleLevel(i),o&&a.detailsLevel(o),s&&a.numOfColors(s),a}}).delivery(ss("auto")).delivery(os(new co("svg"))),pixelate:(new fo).effect(new class extends Bi{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Li("e",`pixelate_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Li("e",`pixelate_region${t}`)),this.addQualifier(new Li("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Li("e",`pixelate_faces${t}`))):this.addQualifier(new Li("e",`pixelate${t}`))}static fromJson(t){const{region:e,squareSize:n}=t,r=new this(n);return n&&r.squareSize(n),e&&"faces"===e.regionType&&r.region(Ui()),e&&"custom"===e.regionType&&r.region(new qi),r}}(undefined)).delivery(ss("auto")).delivery(os(Uo())),blur:(new fo).effect(new class extends Bi{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Li("e",`blur_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Li("e",`blur_region${t}`)),this.addQualifier(new Li("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Li("e",`blur_faces${t}`))):this.addQualifier(new Li("e",`blur${t}`))}static fromJson(t){const{strength:e,region:n}=t,r=new this(e);return e&&r.strength(e),n&&"faces"===n.regionType&&r.region(Ui()),n&&"ocr_text"===n.regionType&&r.region(new Wi("ocr_text")),n&&"custom"===n.regionType&&r.region(qi.fromJson(n)),r}}(2e3)).delivery(ss("auto")).delivery(os(Uo())),"predominant-color":(new fo).resize(new class extends Oo{background(t){return this._actionModel.background=function(t){return"auto"===Bo(t)?{backgroundType:"auto"}:t instanceof Do?function(t){const{intensityLevel:e,brightnessLevel:n}=t,r={backgroundType:"blurred"};return(e||0===e)&&(r.intensity=e),(n||0===n)&&(r.brightness=n),r}(t):t instanceof Ro?(e=t,Object.assign(Object.assign({},Wo(e)),{backgroundType:"border"})):t instanceof Lo?function(t){return Object.assign(Object.assign({},qo(t)),{backgroundType:"borderGradient"})}(t):t instanceof zo?function(t){return Object.assign(Object.assign({},Wo(t)),{backgroundType:"predominant"})}(t):t instanceof No?function(t){return Object.assign(Object.assign({},qo(t)),{backgroundType:"predominantGradient"})}(t):t instanceof Vo?function(t){return Object.assign({backgroundType:t.getBackgroundType()},t.getPrompt()?{prompt:t.getPrompt()}:{})}(t):function(t){return{backgroundType:"color",color:Bo(t)}}(t);var e}(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Li("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Li("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.background&&e.background(function(t){const{backgroundType:e}=t;switch(e){case"auto":return Go();case"blurred":return function(t){const{brightness:e,intensity:n}=t,r=Zo.blurred();return r.brightness(null!=e?e:0),r.intensity(null!=n?n:100),r}(t);case"border":return es(Ho(),t);case"borderGradient":return ts(Ko(),t);case"predominant":return es(Jo(),t);case"predominantGradient":return ts(Yo(),t);case"generativeFill":return function(t,e){const{prompt:n}=e;return n&&t.prompt(n),t}(Qo(),t);default:return Xo(t.color)}}(t.background)),t.x&&e.offsetX(t.x),t.y&&e.offsetY(t.y),t.zoom&&e.zoom(t.zoom),e}}("pad","iw_div_2",undefined).aspectRatio(1).background(Zo.auto())).resize(new ns("crop",1,1).gravity((as=new To("north_east"),new xo(as)))).resize(new rs("fill",void 0,void 0).height("ih").width("iw")).delivery(ss("auto")).delivery(os(Uo()))},cs="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",us={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},ps="?_a=",hs=function(){function t(t,e,n,r,i,o,s){var a=this;this.mimeType="video",this.mimeSubTypes=us,this.videoElement=t,this.originalVideo=e,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=Pi(e);Ai(t,e,r,this.htmlPluginState).then((function(){a.htmlPluginState.pluginEventSubscription.forEach((function(t){t()})),a.setVideoAttributes(i,o),a.handleSourceToVideo(l,n)}))}return t.prototype.handleSourceToVideo=function(t,e){var n=this;e?this.generateUserSources(t,e):["webm","mp4","ogv"].forEach((function(e){n.appendSourceTag(Pi(t),e)}))},t.prototype.generateUserSources=function(t,e){var n=this;e.map((function(e){var r=e.type,i=e.codecs,o=e.transcode;return n.appendSourceTag(Pi(t).transcode(o),r,n.buildMimeType(r,i))}))},t.prototype.appendSourceTag=function(t,e,n){var r,i=document.createElement("source"),o=null===(r=this.videoOptions)||void 0===r?void 0:r.useFetchFormat;o&&t.format(e);var s=t.toURL().split(ps),a=s[1]?"".concat(ps).concat(s[1]):"",l=o?"":".".concat(e);i.src="".concat(s[0]).concat(l).concat(a),i.type=n||"video/".concat(us[e]||e),this.videoElement.appendChild(i)},t.prototype.buildMimeType=function(t,e){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return e&&(n+="; codecs="+(Array.isArray(e)?e.join(", "):e)),n},t.prototype.setVideoAttributes=function(t,e){var n;if(void 0===t&&(t={}),"auto"===e){var r=Pi(this.originalVideo);t.poster=r.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else e&&(t.poster=null===(n=e.toURL)||void 0===n?void 0:n.call(e));for(var i=0,o=Object.entries(t);i<o.length;i++){var s=o[i],a=s[0],l=s[1];l&&this.videoElement.setAttribute(a,"poster"===a?l:"")}},t.prototype.update=function(t,e,n,r,i){var o=this;if(t!==this.originalVideo){for(var s=this.videoElement.getElementsByTagName("SOURCE");s[0];)s[0].parentNode.removeChild(s[0]);Ai(this.videoElement,t,n,this.htmlPluginState).then((function(){o.setVideoAttributes(r,i),o.handleSourceToVideo(t,e),o.videoElement.load()}))}},t}(),ds="object"==typeof $i&&$i&&$i.Object===Object&&$i,fs="object"==typeof self&&self&&self.Object===Object&&self;function ms(){return"undefined"!=typeof window}function gs(t){var e={},n=e.rootMargin,r=void 0===n?"0px":n,i=e.threshold,o=void 0===i?.1:i;return ys.bind(null,r,o)}function ys(t,e,n,r,i,o){return void 0===t&&(t="0px"),void 0===e&&(e=.1),!!ms()&&new Promise((function(r){var o=function(t,e,n,r){try{if(!window||!("IntersectionObserver"in window))return e(),function(){};var i=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(i.unobserve(t.target),e())}))}),{rootMargin:n,threshold:r});return i.observe(t),function(){t&&i.observe(t)}}catch(o){e()}}(n,(function(){return r({lazyload:!0})}),t,e);i.cleanupCallbacks.push((function(){o(),r("canceled")}))}))}function vs(t){var e={}.mode,n=void 0===e?"vectorize":e;return bs.bind(null,n)}function bs(t,e,n,r,i,o){ls[t]||(t="vectorize");var s=ls[t].actions,a=Pi(n);if(s.forEach((function(t){a.addAction(t)})),!ms())return n.transformation=a.transformation,!0;if(e instanceof HTMLImageElement){a.transformation.actions.forEach((function(t,e){t instanceof Bi&&"responsive"===t.getActionTag()&&delete a.transformation.actions[e]}));var l=ji(i,{placeholder:!0});return e.src=a.toURL(l),e.onerror=function(){e.src=cs},new Promise((function(t){e.onload=function(){t()}})).then((function(){return new Promise((function(t){r.cleanupCallbacks.push((function(){e.src=cs,t("canceled")}));var i=new Image;i.src=n.toURL(l),i.onload=function(){t({placeholder:!0})},i.onerror=function(){t({placeholder:!0})}}))}))}}function ws(t){t.cleanupCallbacks.forEach((function(t){t()}))}ds||fs||Function("return this")();var xs=function(t,e){return xs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},xs(t,e)};function ks(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}xs(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Ss=function(){return Ss=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ss.apply(this,arguments)};function Cs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var _s={exports:{}},$s={},Es=Object.getOwnPropertySymbols,Ps=Object.prototype.hasOwnProperty,Ts=Object.prototype.propertyIsEnumerable,As=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,r,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))Ps.call(n,s)&&(i[s]=n[s]);if(Es){r=Es(n);for(var a=0;a<r.length;a++)Ts.call(n,r[a])&&(i[r[a]]=n[r[a]])}}return i},js=As,Os="function"==typeof Symbol&&Symbol.for,Ms=Os?Symbol.for("react.element"):60103,Ds=Os?Symbol.for("react.portal"):60106,Is=Os?Symbol.for("react.fragment"):60107,Rs=Os?Symbol.for("react.strict_mode"):60108,Fs=Os?Symbol.for("react.profiler"):60114,Ls=Os?Symbol.for("react.provider"):60109,Ns=Os?Symbol.for("react.context"):60110,zs=Os?Symbol.for("react.forward_ref"):60112,Vs=Os?Symbol.for("react.suspense"):60113,Bs=Os?Symbol.for("react.memo"):60115,Ws=Os?Symbol.for("react.lazy"):60116,qs="function"==typeof Symbol&&Symbol.iterator;
|
|
107
|
+
/** @license React v16.14.0
|
|
108
|
+
* react.production.min.js
|
|
109
|
+
*
|
|
110
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the MIT license found in the
|
|
113
|
+
* LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/
|
|
115
|
+
function Us(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Hs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gs={};function Ks(t,e,n){this.props=t,this.context=e,this.refs=Gs,this.updater=n||Hs}function Ys(){}function Js(t,e,n){this.props=t,this.context=e,this.refs=Gs,this.updater=n||Hs}Ks.prototype.isReactComponent={},Ks.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(Us(85));this.updater.enqueueSetState(this,t,e,"setState")},Ks.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},Ys.prototype=Ks.prototype;var Xs=Js.prototype=new Ys;Xs.constructor=Js,js(Xs,Ks.prototype),Xs.isPureReactComponent=!0;var Qs={current:null},Zs=Object.prototype.hasOwnProperty,ta={key:!0,ref:!0,__self:!0,__source:!0};function ea(t,e,n){var r,i={},o=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(o=""+e.key),e)Zs.call(e,r)&&!ta.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps)void 0===i[r]&&(i[r]=a[r]);return{$$typeof:Ms,type:t,key:o,ref:s,props:i,_owner:Qs.current}}function na(t){return"object"==typeof t&&null!==t&&t.$$typeof===Ms}var ra=/\/+/g,ia=[];function oa(t,e,n,r){if(ia.length){var i=ia.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function sa(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>ia.length&&ia.push(t)}function aa(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var o=!1;if(null===t)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Ms:case Ds:o=!0}}if(o)return n(r,t,""===e?"."+ca(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a=e+ca(i=t[s],s);o+=aa(i,a,n,r)}else if("function"==typeof(a=null===t||"object"!=typeof t?null:"function"==typeof(a=qs&&t[qs]||t["@@iterator"])?a:null))for(t=a.call(t),s=0;!(i=t.next()).done;)o+=aa(i=i.value,a=e+ca(i,s++),n,r);else if("object"===i)throw n=""+t,Error(Us(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}function la(t,e,n){return null==t?0:aa(t,"",e,n)}function ca(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return r[t]}))):e.toString(36);var n,r}function ua(t,e){t.func.call(t.context,e,t.count++)}function pa(t,e,n){var r,i,o=t.result,s=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?ha(t,o,n,(function(t){return t})):null!=t&&(na(t)&&(r=t,i=s+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(ra,"$&/")+"/")+n,t={$$typeof:Ms,type:r.type,key:i,ref:r.ref,props:r.props,_owner:r._owner}),o.push(t))}function ha(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(ra,"$&/")+"/"),la(t,pa,e=oa(e,o,r,i)),sa(e)}var da={current:null};function fa(){var t=da.current;if(null===t)throw Error(Us(321));return t}var ma={ReactCurrentDispatcher:da,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Qs,IsSomeRendererActing:{current:!1},assign:js};$s.Children={map:function(t,e,n){if(null==t)return t;var r=[];return ha(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;la(t,ua,e=oa(null,null,e,n)),sa(e)},count:function(t){return la(t,(function(){return null}),null)},toArray:function(t){var e=[];return ha(t,e,null,(function(t){return t})),e},only:function(t){if(!na(t))throw Error(Us(143));return t}},$s.Component=Ks,$s.Fragment=Is,$s.Profiler=Fs,$s.PureComponent=Js,$s.StrictMode=Rs,$s.Suspense=Vs,$s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ma,$s.cloneElement=function(t,e,n){if(null==t)throw Error(Us(267,t));var r=js({},t.props),i=t.key,o=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,s=Qs.current),void 0!==e.key&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Zs.call(e,l)&&!ta.hasOwnProperty(l)&&(r[l]=void 0===e[l]&&void 0!==a?a[l]:e[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ms,type:t.type,key:i,ref:o,props:r,_owner:s}},$s.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:Ns,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Ls,_context:t},t.Consumer=t},$s.createElement=ea,$s.createFactory=function(t){var e=ea.bind(null,t);return e.type=t,e},$s.createRef=function(){return{current:null}},$s.forwardRef=function(t){return{$$typeof:zs,render:t}},$s.isValidElement=na,$s.lazy=function(t){return{$$typeof:Ws,_ctor:t,_status:-1,_result:null}},$s.memo=function(t,e){return{$$typeof:Bs,type:t,compare:void 0===e?null:e}},$s.useCallback=function(t,e){return fa().useCallback(t,e)},$s.useContext=function(t,e){return fa().useContext(t,e)},$s.useDebugValue=function(){},$s.useEffect=function(t,e){return fa().useEffect(t,e)},$s.useImperativeHandle=function(t,e,n){return fa().useImperativeHandle(t,e,n)},$s.useLayoutEffect=function(t,e){return fa().useLayoutEffect(t,e)},$s.useMemo=function(t,e){return fa().useMemo(t,e)},$s.useReducer=function(t,e,n){return fa().useReducer(t,e,n)},$s.useRef=function(t){return fa().useRef(t)},$s.useState=function(t){return fa().useState(t)},$s.version="16.14.0";var ga={},ya=Function.call.bind(Object.prototype.hasOwnProperty),va=function(){};if("production"!==process.env.NODE_ENV){var ba="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wa={},xa=ya;va=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}}function ka(t,e,n,r,i){if("production"!==process.env.NODE_ENV)for(var o in t)if(xa(t,o)){var s;try{if("function"!=typeof t[o]){var a=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}s=t[o](e,o,r,n,null,ba)}catch(c){s=c}if(!s||s instanceof Error||va((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in wa)){wa[s.message]=!0;var l=i?i():"";va("Failed "+n+" type: "+s.message+(null!=l?l:""))}}}ka.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(wa={})};var Sa=ka;
|
|
116
|
+
/** @license React v16.14.0
|
|
117
|
+
* react.development.js
|
|
118
|
+
*
|
|
119
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the MIT license found in the
|
|
122
|
+
* LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/"production"!==process.env.NODE_ENV&&function(){var t=As,e=Sa,n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119,w="function"==typeof Symbol&&Symbol.iterator;function x(t){if(null===t||"object"!=typeof t)return null;var e=w&&t[w]||t["@@iterator"];return"function"==typeof e?e:null}var k={current:null},S={current:null},C=/^(.*)[\\\/]/;function _(t){if(null==t)return null;if("number"==typeof t.tag&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return"Context.Consumer";case l:return"Context.Provider";case p:return r=t,y="ForwardRef",v=(u=t.render).displayName||u.name||"",r.displayName||(""!==v?y+"("+v+")":y);case f:return _(t.type);case g:return _(t.render);case m:var e=1===(n=t)._status?n._result:null;if(e)return _(e)}var n,r,u,y,v;return null}var $={},E=null;function P(t){E=t}$.getCurrentStack=null,$.getStackAddendum=function(){var t="";if(E){var e=_(E.type),n=E._owner;t+=function(t,e,n){var r="";if(e){var i=e.fileName,o=i.replace(C,"");if(/^index\./.test(o)){var s=i.match(C);if(s){var a=s[1];a&&(o=a.replace(C,"")+"/"+o)}}r=" (at "+o+":"+e.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(t||"Unknown")+r}(e,E._source,n&&_(n.type))}var r=$.getCurrentStack;return r&&(t+=r()||""),t};var T={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:t};function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("warn",t,n)}function j(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("error",t,n)}function O(t,e,n){if(!(n.length>0&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in"))){var r=T.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]))}var i=n.map((function(t){return""+t}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i);try{var o=0,s="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));throw new Error(s)}catch(a){}}t(T,{ReactDebugCurrentFrame:$,ReactComponentTreeHook:{}});var M={};function D(t,e){var n=t.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+e;M[i]||(j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,r),M[i]=!0)}var I={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){D(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,r){D(t,"replaceState")},enqueueSetState:function(t,e,n,r){D(t,"setState")}},R={};function F(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}Object.freeze(R),F.prototype.isReactComponent={},F.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},F.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(t,e){Object.defineProperty(F.prototype,t,{get:function(){A("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var z in L)L.hasOwnProperty(z)&&N(z,L[z]);function V(){}function B(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}V.prototype=F.prototype;var W=B.prototype=new V;W.constructor=B,t(W,F.prototype),W.isPureReactComponent=!0;var q,U,H,G=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function Y(t){if(G.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function J(t){if(G.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}H={};var X=function(t,e,n,i,o,s,a){var l={$$typeof:r,type:t,key:e,ref:n,props:a,_owner:s,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Q(t,e,n){var r,i={},o=null,s=null,a=null,l=null;if(null!=e)for(r in Y(e)&&(s=e.ref,function(t){if("string"==typeof t.ref&&S.current&&t.__self&&S.current.stateNode!==t.__self){var e=_(S.current.type);H[e]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',_(S.current.type),t.ref),H[e]=!0)}}(e)),J(e)&&(o=""+e.key),a=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)G.call(e,r)&&!K.hasOwnProperty(r)&&(i[r]=e[r]);var c,u,p,h=arguments.length-2;if(1===h)i.children=n;else if(h>1){for(var d=Array(h),f=0;f<h;f++)d[f]=arguments[f+2];Object.freeze&&Object.freeze(d),i.children=d}if(t&&t.defaultProps){var m=t.defaultProps;for(r in m)void 0===i[r]&&(i[r]=m[r])}if(o||s){var g="function"==typeof t?t.displayName||t.name||"Unknown":t;o&&(c=i,u=g,(p=function(){q||(q=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",u))}).isReactWarning=!0,Object.defineProperty(c,"key",{get:p,configurable:!0})),s&&function(t,e){var n=function(){U||(U=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(i,g)}return X(t,o,s,a,l,S.current,i)}function Z(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i,o,s=t({},e.props),a=e.key,l=e.ref,c=e._self,u=e._source,p=e._owner;if(null!=n)for(i in Y(n)&&(l=n.ref,p=S.current),J(n)&&(a=""+n.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),n)G.call(n,i)&&!K.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==o?s[i]=o[i]:s[i]=n[i]);var h=arguments.length-2;if(1===h)s.children=r;else if(h>1){for(var d=Array(h),f=0;f<h;f++)d[f]=arguments[f+2];s.children=d}return X(e.type,a,l,c,u,p,s)}function tt(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}var et=!1,nt=/\/+/g;function rt(t){return(""+t).replace(nt,"$&/")}var it,ot=[];function st(t,e,n,r){if(ot.length){var i=ot.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function at(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,ot.length<10&&ot.push(t)}function lt(t,e,n,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var a,l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case r:case i:l=!0}}if(l)return n(o,t,""===e?"."+ut(t,0):e),1;var c=0,u=""===e?".":e+":";if(Array.isArray(t))for(var p=0;p<t.length;p++)c+=lt(a=t[p],u+ut(a,p),n,o);else{var h=x(t);if("function"==typeof h){h===t.entries&&(et||A("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),et=!0);for(var d,f=h.call(t),m=0;!(d=f.next()).done;)c+=lt(a=d.value,u+ut(a,m++),n,o)}else if("object"===s){var g;g=" If you meant to render a collection of children, use an array instead."+$.getStackAddendum();var y=""+t;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y)+")."+g)}}return c}function ct(t,e,n){return null==t?0:lt(t,"",e,n)}function ut(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return r[t]}))):e.toString(36);var n,r}function pt(t,e,n){var r=t.func,i=t.context;r.call(i,e,t.count++)}function ht(t,e,n){var r,i,o=t.result,s=t.keyPrefix,a=t.func,l=t.context,c=a.call(l,e,t.count++);Array.isArray(c)?dt(c,o,n,(function(t){return t})):null!=c&&(tt(c)&&(r=c,i=s+(!c.key||e&&e.key===c.key?"":rt(c.key)+"/")+n,c=X(r.type,i,r.ref,r._self,r._source,r._owner,r.props)),o.push(c))}function dt(t,e,n,r,i){var o="";null!=n&&(o=rt(n)+"/");var s=st(e,o,r,i);ct(t,ht,s),at(s)}function ft(t){return"string"==typeof t||"function"==typeof t||t===o||t===u||t===a||t===s||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===l||t.$$typeof===c||t.$$typeof===p||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===g)}function mt(){var t=k.current;if(null===t)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return t}function gt(){if(S.current){var t=_(S.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}it=!1;var yt={};function vt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=gt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!yt[n]){yt[n]=!0;var r="";t&&t._owner&&t._owner!==S.current&&(r=" It was passed a child from "+_(t._owner.type)+"."),P(t),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),P(null)}}}function bt(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];tt(r)&&vt(r,e)}else if(tt(t))t._store&&(t._store.validated=!0);else if(t){var i=x(t);if("function"==typeof i&&i!==t.entries)for(var o,s=i.call(t);!(o=s.next()).done;)tt(o.value)&&vt(o.value,e)}}function wt(t){var n=t.type;if(null!=n&&"string"!=typeof n){var r,i=_(n);if("function"==typeof n)r=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==p&&n.$$typeof!==f)return;r=n.propTypes}r?(P(t),e(r,t.props,"prop",i,$.getStackAddendum),P(null)):void 0===n.PropTypes||it||(it=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function xt(t,e,n){var i,s,a=ft(t);if(!a){var l,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(i=e)&&void 0!==(s=i.__source)?"\n\nCheck your code at "+s.fileName.replace(/^.*[\\\/]/,"")+":"+s.lineNumber+".":"")||gt(),null===t?l="null":Array.isArray(t)?l="array":void 0!==t&&t.$$typeof===r?(l="<"+(_(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,c)}var u=Q.apply(this,arguments);if(null==u)return u;if(a)for(var p=2;p<arguments.length;p++)bt(arguments[p],t);return t===o?function(t){P(t);for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==t.ref&&j("Invalid attribute `ref` supplied to `React.Fragment`."),P(null)}(u):wt(u),u}var kt=!1;try{var St=Object.freeze({}),Ct=new Map([[St,null]]),_t=new Set([St]);Ct.set(0,0),_t.add(0)}catch(Pt){}var $t=xt,Et={map:function(t,e,n){if(null==t)return t;var r=[];return dt(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;var r=st(null,null,e,n);ct(t,pt,r),at(r)},count:function(t){return ct(t,(function(){return null}),null)},toArray:function(t){var e=[];return dt(t,e,null,(function(t){return t})),e},only:function(t){if(!tt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ga.Children=Et,ga.Component=F,ga.Fragment=o,ga.Profiler=a,ga.PureComponent=B,ga.StrictMode=s,ga.Suspense=h,ga.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,ga.cloneElement=function(t,e,n){for(var r=Z.apply(this,arguments),i=2;i<arguments.length;i++)bt(arguments[i],r.type);return wt(r),r},ga.createContext=function(t,e){void 0===e?e=null:null!==e&&"function"!=typeof e&&j("createContext: Expected the optional second argument to be a function. Instead received: %s",e);var n={$$typeof:c,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:l,_context:n};var r=!1,i=!1,o={$$typeof:c,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(o,{Provider:{get:function(){return i||(i=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(t){n.Provider=t}},_currentValue:{get:function(){return n._currentValue},set:function(t){n._currentValue=t}},_currentValue2:{get:function(){return n._currentValue2},set:function(t){n._currentValue2=t}},_threadCount:{get:function(){return n._threadCount},set:function(t){n._threadCount=t}},Consumer:{get:function(){return r||(r=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=o,n._currentRenderer=null,n._currentRenderer2=null,n},ga.createElement=$t,ga.createFactory=function(t){var e=xt.bind(null,t);return e.type=t,kt||(kt=!0,A("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return A("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},ga.createRef=function(){var t={current:null};return Object.seal(t),t},ga.forwardRef=function(t){return null!=t&&t.$$typeof===f?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?j("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:p,render:t}},ga.isValidElement=tt,ga.lazy=function(t){var e,n,r={$$typeof:m,_ctor:t,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},ga.memo=function(t,e){return ft(t)||j("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t),{$$typeof:f,type:t,compare:void 0===e?null:e}},ga.useCallback=function(t,e){return mt().useCallback(t,e)},ga.useContext=function(t,e){var n=mt();if(void 0!==e&&j("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",e,"number"==typeof e&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==t._context){var r=t._context;r.Consumer===t?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===t&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(t,e)},ga.useDebugValue=function(t,e){return mt().useDebugValue(t,e)},ga.useEffect=function(t,e){return mt().useEffect(t,e)},ga.useImperativeHandle=function(t,e,n){return mt().useImperativeHandle(t,e,n)},ga.useLayoutEffect=function(t,e){return mt().useLayoutEffect(t,e)},ga.useMemo=function(t,e){return mt().useMemo(t,e)},ga.useReducer=function(t,e,n){return mt().useReducer(t,e,n)},ga.useRef=function(t){return mt().useRef(t)},ga.useState=function(t){return mt().useState(t)},ga.version="16.14.0"}(),"production"===process.env.NODE_ENV?_s.exports=$s:_s.exports=ga;var Ca=_s.exports,_a={sdkSemver:"1.13.0",techVersion:Ca.version,sdkCode:"J"},$a=function(t){function e(e){var n=t.call(this,e)||this;return n.imageRef=Ca.createRef(),n}return ks(e,t),e.prototype.componentDidMount=function(){this.htmlLayerInstance=new Oi(this.imageRef.current,this.props.cldImg,this.props.plugins,_a)},e.prototype.componentDidUpdate=function(){ws(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,_a)},e.prototype.componentWillUnmount=function(){ws(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var t=this.props;t.cldImg,t.plugins;var e=Cs(t,["cldImg","plugins"]);if(ms())return Ca.createElement("img",Ss({suppressHydrationWarning:!0},e,{ref:this.imageRef}));var n=function(t,e,n){var r=Pi(e);if(t)for(var i=0;i<t.length&&t[i](null,r);i++);return r.toURL(n?{trackedAnalytics:n}:null)}(this.props.plugins,this.props.cldImg,_a);return Ca.createElement("img",Ss({},e,{src:n}))},e}(Ca.Component),Ea=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(t){function e(e){var n=t.call(this,e)||this;return n.videoRef=_s.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}ks(e,t),e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new hs(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){ws(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){ws(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var t=this,e={};return Ea.forEach((function(n){n in t.props&&(e[n]=t.props[n])})),e},e.prototype.attachRef=function(t){this.videoRef.current=t;var e=this.props.innerRef;e&&(e instanceof Function?e(t):e.current=t)},e.prototype.render=function(){var t=this.props;t.cldVid,t.cldPoster,t.plugins,t.sources,t.innerRef,t.useFetchFormat;var e=Cs(t,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Ca.createElement("video",Ss({},e,{ref:this.attachRef}))}}(_s.exports.Component);const Pa=e.memo((({alt:t="img",height:e="",width:n="",plugins:r=[gs(),vs()],publicId:i})=>{const o=ki({publicId:i});return y.jsx($a,{alt:t,cldImg:o,height:e,plugins:r,width:n})})),Ta=t.styled.div`
|
|
124
|
+
${({theme:t})=>`\n background-color: ${t.palette.gray[100]};\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n padding: ${t.spacing[1]};\n position: relative;\n width: fit-content;\n\n .line-highlight.language-none {\n background: ${t.palette.gray[100]};\n }\n\n .line-highlight {\n background: hsl(354deg 88% 93% / 50%);\n font-family: ${t.typography.type.mono};\n font-size: ${t.typography.text.xs};\n line-height: ${t.spacing[1]};\n }\n\n .line-highlight::before,\n .line-highlight[data-end]::after {\n background: ${t.palette.primary[300]};\n background-color: hsl(355deg 89% 36%);\n color: ${t.palette.white};\n }\n\n pre code {\n color: #161616;\n font-family: ${t.typography.type.mono};\n font-size: ${t.typography.text.xs};\n line-height: ${t.spacing[1]};\n }\n\n pre:not(.line-highlight) {\n margin-top: unset;\n margin-bottom: unset;\n padding: unset;\n width: 100%;\n }\n\n span:hover {\n background-color: ${t.palette.gray[200]};\n }\n\n .no-data,\n pre.line-highlight {\n background-color: ${t.palette.gray[100]};\n padding-top: unset;\n padding-bottom: unset;\n }\n `}
|
|
125
|
+
`,Aa=t.styled.div`
|
|
126
|
+
${({theme:t})=>`\n align-items: end;\n background-color: ${t.palette.gray[100]};\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-width: 103px;\n margin-right: ${t.spacing[1]};\n padding-top: ${t.spacing[1]};\n padding-bottom: ${t.spacing[1]};\n position: relative;\n padding-left: unset;\n\n button:hover:not([disabled]) {\n background-color: ${t.palette.gray[200]};\n }\n `}
|
|
127
|
+
`,ja=({tag:e,tagPosition:n})=>{const r=t.useTheme();return e?y.jsx(M,{alignItems:"center",bgColor:r.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:"top"===n?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:"top"===n?"absolute":"relative",top:"0",width:"max-content",children:y.jsx(F,{color:r.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Oa=({eventDate:e})=>{const n=t.useTheme(),r=ir(e)?null:null==e?void 0:e.split("-");if(r){const[t,e]=r;return y.jsxs(M,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[y.jsx(R,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t}),y.jsx(F,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e.toUpperCase()})]})}return null},Ma=t.div`
|
|
128
|
+
${({theme:t})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n width: 384px;\n\n img {\n height: 100%;\n width: 100%;\n }\n\n #card-image {\n border-radius: ${t.spacing[1]};\n height: 240px;\n overflow: hidden;\n }\n\n &:hover {\n img {\n transform: scale(1.2);\n }\n\n > #card-content {\n > .title-dark {\n color: ${t.palette.gray[400]};\n }\n > .title-light {\n background: ${t.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n\n #card-image {\n height: 200px;\n }\n }\n `}
|
|
129
|
+
`,Da=({author:e,buttonText:n,description:r,eventDate:i,href:o,imageId:s,mode:a="light",publishDate:l,readingTime:c,tag:u,tagPosition:p="top",title:h})=>{const d=t.useTheme(),f=null==l?void 0:l.split("-"),m="dark"===a,g=y.jsxs(Ma,{"data-testid":`content-card-${h}`,children:[s||i||u&&"top"===p?y.jsxs(M,{id:"card-image",position:"relative",children:[s&&y.jsx(Pa,{publicId:s}),"top"===p&&y.jsx(ja,{tag:u,tagPosition:p}),y.jsx(Oa,{eventDate:i})]}):void 0,y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:["bottom"===p&&y.jsx(ja,{tag:u,tagPosition:p}),e||f||c?y.jsxs(M,{display:"flex",justify:"space-between",width:"100%",children:[e&&f&&y.jsx(F,{color:d.palette.gray[m?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${f[0]} ${f[1]}, ${f[2]}`}),c&&y.jsxs(M,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[y.jsx(V,{icon:"eye",iconColor:d.palette.gray[m?300:400],iconSize:"xs",iconType:"fa-light"}),y.jsx(F,{color:d.palette.gray[m?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:c})]})]}):void 0,y.jsx(R,{className:`title-${a}`,color:m?d.palette.white:d.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:h}),r&&y.jsx(F,{color:d.palette.gray[m?100:600],size:"md",sizeSm:"sm",children:r}),n&&o&&y.jsx(Or,{href:o,variant:"link",children:n})]})]});return o?y.jsx("a",{className:"flex w-fit",href:o,rel:"noopener noreferrer",target:"_self",children:g}):g},Ia=t.styled.button`
|
|
130
|
+
display: flex;
|
|
131
|
+
position: relative;
|
|
132
|
+
height: 32px;
|
|
133
|
+
width: 32px;
|
|
134
|
+
|
|
135
|
+
svg {
|
|
136
|
+
position: absolute;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.hovered {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:hover {
|
|
144
|
+
.hovered {
|
|
145
|
+
display: flex;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.uncover {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`,Ra=t.styled.div`
|
|
153
|
+
${({theme:t})=>`\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[2.5]};\n overflow: hidden;\n min-height: 589px;\n max-width: 1316px;\n\n span {\n background: ${t.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n\n #mobile {\n display: none;\n }\n\n #carousel {\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n align-items: center;\n height: auto;\n max-width: 340px;\n\n #desktop {\n display: none;\n }\n #mobile {\n display: flex;\n }\n }\n `}
|
|
154
|
+
`,Fa=({containerRef:n,id:r})=>{const i=t.useTheme(),o="desktop"===r?380:342,s=e.useCallback((t=>()=>{if(null==n?void 0:n.current){const{current:e}=n;e.scrollBy({left:"right"===t?o:-o,behavior:"smooth"})}}),[n,o]),a=e.useCallback((t=>y.jsxs(Ia,{onClick:s(t),children:[y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]})),[s,i]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:1,id:r,width:"max-content",children:[a("left"),a("right")]})},La=e.forwardRef((function({color:t=v.palette.gray[100],mt:e=.5,mb:n=.5,...r},i){return y.jsx(M,{as:"hr",border:`1px solid ${t}`,mb:n,mt:e,ref:i,...r})})),Na=t.styled(M).attrs((({...t})=>({display:"inline-block",position:"relative",...t})))`
|
|
155
|
+
& img {
|
|
156
|
+
display: block;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&::after {
|
|
160
|
+
content: "";
|
|
161
|
+
position: absolute;
|
|
162
|
+
top: 0;
|
|
163
|
+
left: 0;
|
|
164
|
+
width: 100%;
|
|
165
|
+
height: 100%;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
${({$opacity:t=0})=>`background-color: rgba(0, 0, 0, ${t});`}
|
|
168
|
+
}
|
|
169
|
+
`,{getVariant:za}=l((t=>({highRelevance:`\n color: ${t.palette.primary[500]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.primary[400]};\n }\n `,lowRelevance:`\n color: ${t.palette.gray[800]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.gray[500]};\n }\n `}))),Va=t.css`
|
|
170
|
+
${({theme:t,$color:e,$variant:n})=>`\n align-items: center;\n cursor: pointer;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.25]};\n line-height: ${t.spacing[1.25]};\n text-decoration: underline;\n word-break: break-word;\n word-wrap: break-word;\n\n &:disabled {\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:has(button) {\n text-decoration: none;\n }\n\n ${e??za(t,n)}\n `}
|
|
171
|
+
`,Ba=t.styled.a`
|
|
172
|
+
${Va}
|
|
173
|
+
`,Wa=t.styled(i.Link)`
|
|
174
|
+
${Va}
|
|
175
|
+
`,qa=({children:t,color:e,download:n,href:r,iconPosition:i="right",onClick:o,target:s,variant:a="lowRelevance"})=>{const l=r.startsWith("https://"),c=y.jsx(V,{icon:void 0===n?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return l?y.jsxs(Ba,{$color:e,$variant:a,download:n,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:s??"_blank",children:["left"===i?c:void 0,t,"right"===i?c:void 0]}):y.jsxs(Wa,{$variant:a,download:n,onClick:o,rel:"nofollow noopener noreferrer",target:s,to:r,children:[void 0!==s&&"left"===i?c:void 0,t,void 0!==s&&"right"===i?c:void 0]})},Ua=t.styled.form`
|
|
176
|
+
${({theme:t})=>`\n align-items: center;\n background: ${t.palette.gray[50]};\n backdrop-filter: blur(11px);\n border-radius: ${t.spacing[1]};\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: ${t.spacing[3]} ${t.spacing[2]};\n width: 628px;\n\n &::before {\n background: ${t.palette.gradients["02"]} border-box;\n border-radius: ${t.spacing[1]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n }\n `}
|
|
177
|
+
`,Ha=t.styled.div`
|
|
178
|
+
align-items: flex-start;
|
|
179
|
+
align-self: stretch;
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
gap: ${({theme:t})=>t.spacing[1.5]};
|
|
183
|
+
|
|
184
|
+
button[type="submit"] {
|
|
185
|
+
width: 100%;
|
|
186
|
+
|
|
187
|
+
> * {
|
|
188
|
+
text-align: center;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
`,Ga=t.styled.div`
|
|
192
|
+
${({theme:t})=>`\n align-items: flex-start;\n align-self: stretch;\n container-type: inline-size;\n display: flex;\n flex-direction: row;\n gap: ${t.spacing[1]};\n position: relative;\n\n &:has(> :nth-child(2)) {\n > div {\n display: flex;\n width: 50%;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n flex-direction: column;\n }\n `}
|
|
193
|
+
`;var Ka=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Ya=(...t)=>t.filter((t=>!!t)).join(" ").trim(),Ja=({addPrefix:t,rawClassNames:e})=>Ya(((...t)=>Ya(...t).split(" ").map((t=>`react-international-phone-${t}`)).join(" "))(...t),...e),Xa=t=>!!t&&/^\d+$/.test(t),Qa=t=>t.replace(/\D/g,""),Za=({phone:t,prefix:e})=>t?`${e}${Qa(t)}`:"";function tl({value:t,country:e,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:l,defaultMask:c,countryGuessingEnabled:u,disableFormatting:p}){let h=t;l&&(h=h.startsWith(`${o}`)?h:`${o}${e.dialCode}${h}`);let d=u?ll({phone:h,countries:i,currentCountryIso2:null==e?void 0:e.iso2}):void 0,f=(null==d?void 0:d.country)??e,m=((t,e)=>{let n=!e.disableDialCodeAndPrefix&&e.forceDialCode,r=!e.disableDialCodeAndPrefix&&e.insertDialCodeOnEmpty,i=t,o=t=>e.trimNonDigitsEnd?t.trim():t;if(!i)return r&&!i.length||n?o(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`):o(i);if(i=Qa(i),i===e.dialCode&&!e.disableDialCodeAndPrefix)return o(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(e.dialCode.startsWith(i)&&!e.disableDialCodeAndPrefix)return o(n?`${e.prefix}${e.dialCode}${e.charAfterDialCode}`:`${e.prefix}${i}`);if(!i.startsWith(e.dialCode)&&!e.disableDialCodeAndPrefix){if(n)return o(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(i.length<e.dialCode.length)return o(`${e.prefix}${i}`)}let{phoneLeftSide:s,phoneRightSide:a}=(()=>{let t=e.dialCode.length;return{phoneLeftSide:i.slice(0,t),phoneRightSide:i.slice(t)}})();return s=`${e.prefix}${s}${e.charAfterDialCode}`,a=(({value:t,mask:e,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(t.length<r)return t;let o=t.slice(0,r),s=t.slice(r),a=o,l=0;for(let c of e.split("")){if(l>=s.length){if(!i&&c!==n){a+=c;continue}break}c===n?(a+=s[l],l+=1):a+=c}return a})({value:a,mask:e.mask,maskSymbol:e.maskChar,trimNonMaskCharsLeftover:e.trimNonDigitsEnd||e.disableDialCodeAndPrefix&&0===a.length}),e.disableDialCodeAndPrefix&&(s=""),o(`${s}${a}`)})(h,{prefix:o,mask:ol({phone:h,country:f,defaultMask:c,disableFormatting:p}),maskChar:nl,dialCode:f.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:a,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),g=u&&!(null==d?void 0:d.fullDialCodeMatch)?e:f;return{phone:Za({phone:l?`${g.dialCode}${m}`:m,prefix:o}),inputValue:m,country:g}}var el={size:20,overrideLastItemDebounceMS:-1};var nl=".",rl=Ka,il=({defaultCountry:t="us",value:n="",countries:r=rl,prefix:i="+",defaultMask:o="............",charAfterDialCode:s=" ",historySaveDebounceMS:a=200,disableCountryGuess:l=false,disableDialCodePrefill:c=false,forceDialCode:u=false,disableDialCodeAndPrefix:p=false,disableFormatting:h=false,onChange:d,inputRef:f})=>{let m={countries:r,prefix:i,charAfterDialCode:s,forceDialCode:!p&&u,disableDialCodeAndPrefix:p,defaultMask:o,countryGuessingEnabled:!l,disableFormatting:h},g=e.useRef(null),y=f||g,v=t=>{Promise.resolve().then((()=>{var e;typeof window>"u"||y.current!==(null==document?void 0:document.activeElement)||null==(e=y.current)||e.setSelectionRange(t,t)}))},[{phone:b,inputValue:w,country:x},k,S,C]=function(t,n){let{size:r,overrideLastItemDebounceMS:i,onChange:o}={...el,...n},[s,a]=e.useState(t),[l,c]=e.useState([s]),[u,p]=e.useState(0),h=(()=>{let t=e.useRef(),n=e.useRef(Date.now());return{check:()=>{let e=Date.now(),r=t.current?e-n.current:void 0;return t.current=n.current,n.current=e,r}}})();return[s,(t,e)=>{if("object"==typeof t&&"object"==typeof s&&((t,e)=>{let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0})(t,s)||t===s)return;let n=i>0,d=h.check(),f=!n||void 0===d||d>i;if(void 0!==(null==e?void 0:e.overrideLastItem)?e.overrideLastItem:!f)c((e=>[...e.slice(0,u),t]));else{let e=l.length>=r;c((n=>[...n.slice(e?1:0,u+1),t])),e||p((t=>t+1))}a(t),null==o||o(t)},()=>{if(u<=0)return{success:!1};let t=l[u-1];return a(t),p((t=>t-1)),null==o||o(t),{success:!0,value:t}},()=>{if(u+1>=l.length)return{success:!1};let t=l[u+1];return a(t),p((t=>t+1)),null==o||o(t),{success:!0,value:t}}]}((()=>{let e=al({value:t,field:"iso2",countries:r}),i=e||al({value:"us",field:"iso2",countries:r}),{phone:o,inputValue:s,country:a}=tl({value:n,country:i,insertDialCodeOnEmpty:!c,...m});return v(s.length),{phone:o,inputValue:s,country:a.iso2}}),{overrideLastItemDebounceMS:a,onChange:({inputValue:t,phone:e,country:n})=>{if(!d)return;let r=_(n);d({phone:e,inputValue:t,country:r})}}),_=e.useCallback((t=>al({value:t,field:"iso2",countries:r})),[r]),$=e.useMemo((()=>_(x)),[x,_]);e.useEffect((()=>{let t=y.current;if(!t)return;let e=t=>{if(!t.key)return;let e=t.ctrlKey,n=t.metaKey,r=t.shiftKey;if("z"===t.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!e)return}else if(!n)return;r?C():S()}};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[y,S,C]);let[E,P]=e.useState(!1);return e.useEffect((()=>{if(!E)return P(!0),void(n!==b&&(null==d||d({inputValue:w,phone:b,country:$})));if(n===b)return;let{phone:t,inputValue:e,country:r}=tl({value:n,country:$,insertDialCodeOnEmpty:!c,...m});k({phone:t,inputValue:e,country:r.iso2})}),[n]),{phone:b,inputValue:w,country:$,setCountry:(t,e={focusOnInput:!1})=>{let n=al({value:t,field:"iso2",countries:r});if(!n)return;let o=p?"":`${i}${n.dialCode}${s}`;k({inputValue:o,phone:`${i}${n.dialCode}`,country:n.iso2}),e.focusOnInput&&Promise.resolve().then((()=>{var t;null==(t=y.current)||t.focus()}))},handlePhoneValueChange:t=>{t.preventDefault();let{phone:e,inputValue:r,country:i,cursorPosition:o}=((t,{country:e,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:a,countryGuessingEnabled:l,defaultMask:c,disableFormatting:u,countries:p})=>{let h=t.nativeEvent,d=h.inputType,f=(t=>{if(null==t?void 0:t.toLocaleLowerCase().includes("delete"))return(null==t?void 0:t.toLocaleLowerCase().includes("forward"))?"forward":"backward"})(d),m=!!(null==d?void 0:d.startsWith("insertFrom")),g="insertText"===d,y=(null==h?void 0:h.data)||void 0,v=t.target.value,b=t.target.selectionStart??0;if(null==d?void 0:d.includes("history"))return{inputValue:r,phone:Za({phone:r,prefix:i}),cursorPosition:r.length,country:e};if(g&&!Xa(y)&&v!==i)return{inputValue:r,phone:Za({phone:a?`${e.dialCode}${r}`:r,prefix:i}),cursorPosition:b-((null==y?void 0:y.length)??0),country:e};if(s&&!v.startsWith(`${i}${e.dialCode}`)&&!m){let t=v?r:`${i}${e.dialCode}${o}`;return{inputValue:t,phone:Za({phone:t,prefix:i}),cursorPosition:i.length+e.dialCode.length+o.length,country:e}}let{phone:w,inputValue:x,country:k}=tl({value:v,country:e,trimNonDigitsEnd:"backward"===f,insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:p,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:a,disableFormatting:u,defaultMask:c});return{phone:w,inputValue:x,cursorPosition:(({phoneBeforeInput:t,phoneAfterInput:e,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!t)return n.length;let s=null;for(let u=r-1;u>=0;u-=1)if(Xa(e[u])){s=u;break}if(null===s){for(let t=0;t<e.length;t+=1)if(Xa(n[t]))return t;return e.length}let a=0;for(let u=0;u<s;u+=1)Xa(e[u])&&(a+=1);let l=0,c=0;for(let u=0;u<n.length&&(l+=1,Xa(n[u])&&(c+=1),!(c>=a+1));u+=1);if("backward"!==o)for(;!Xa(n[l])&&l<n.length;)l+=1;return l})({cursorPositionAfterInput:b,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:x,leftOffset:s?i.length+e.dialCode.length+o.length:0,deletion:f}),country:k}})(t,{country:$,phoneBeforeInput:w,insertDialCodeOnEmpty:!1,...m});return k({inputValue:r,phone:e,country:i.iso2}),v(o),n},inputRef:y}},ol=({phone:t,country:e,defaultMask:n="............",disableFormatting:r=!1})=>{let i=e.format,o=t=>r?t.replace(new RegExp(`[^${nl}]`,"g"),""):t;if(!i)return o(n);if("string"==typeof i)return o(i);if(!i.default)return o(n);let s=Object.keys(i).find((n=>{if("default"===n)return!1;if("/"!==n.charAt(0)||"/"!==n.charAt(n.length-1))return!1;let r=new RegExp(n.substring(1,n.length-1)),i=t.replace(e.dialCode,"");return r.test(Qa(i))}));return o(s?i[s]:i.default)},sl=t=>{let[e,n,r,i,o,s]=t;return{name:e,iso2:n,dialCode:r,format:i,priority:o,areaCodes:s}},al=({field:t,value:e,countries:n=Ka})=>{if(["priority"].includes(t))throw new Error(`Field "${t}" is not supported`);let r=n.find((n=>{let r=sl(n);return e===r[t]}));if(r)return sl(r)},ll=({phone:t,countries:e=Ka,currentCountryIso2:n})=>{var r;let i={country:void 0,fullDialCodeMatch:!1};if(!t)return i;let o=Qa(t);if(!o)return i;let s=i,a=({country:t,fullDialCodeMatch:e})=>{var n,r;let i=t.dialCode===(null==(n=s.country)?void 0:n.dialCode),o=(t.priority??0)<((null==(r=s.country)?void 0:r.priority)??0);(!i||o)&&(s={country:t,fullDialCodeMatch:e})};for(let l of e){let t=sl(l),{dialCode:e,areaCodes:n}=t;if(o.startsWith(e)){let r=!s.country||Number(e)>=Number(s.country.dialCode);if(n){let r=o.substring(e.length);for(let e of n)if(r.startsWith(e))return{country:t,fullDialCodeMatch:!0}}(r||e===o||!s.fullDialCodeMatch)&&a({country:t,fullDialCodeMatch:!0})}s.fullDialCodeMatch||o.length<e.length&&e.startsWith(o)&&(!s.country||Number(e)<=Number(s.country.dialCode))&&a({country:t,fullDialCodeMatch:!1})}if(n){let t=al({value:n,field:"iso2",countries:e});if(!t)return s;let i=!!t&&(t=>{if(!(null==t?void 0:t.areaCodes))return!1;let e=o.substring(t.dialCode.length);return t.areaCodes.some((t=>t.startsWith(e)))})(t);s&&(null==(r=s.country)?void 0:r.dialCode)===t.dialCode&&s.country!==t&&s.fullDialCodeMatch&&(!t.areaCodes||i)&&(s={country:t,fullDialCodeMatch:!0})}return s},cl=(t,e)=>{let n=parseInt(t,16);return Number(n+e).toString(16)},ul="abcdefghijklmnopqrstuvwxyz".split("").reduce(((t,e,n)=>({...t,[e]:cl("1f1e6",n)})),{}),pl=({iso2:t,size:n,src:r,protocol:i="https",disableLazyLoading:o,className:s,style:a,...l})=>t?e.createElement("img",{className:Ja({addPrefix:["flag-emoji"],rawClassNames:[s]}),src:(()=>{if(r)return r;let e=[ul[(n=t)[0]],ul[n[1]]].join("-");var n;return`${i}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${e}.svg`})(),width:n,height:n,draggable:!1,"data-country":t,loading:o?void 0:"lazy",style:{width:n,height:n,...a},alt:"",...l}):e.createElement("img",{className:Ja({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:n,height:n,...l}),hl=({show:t,dialCodePrefix:n="+",selectedCountry:r,countries:i=Ka,preferredCountries:o=[],flags:s,onSelect:a,onClose:l,...c})=>{let u=e.useRef(null),p=e.useRef(),h=e.useMemo((()=>{if(!o||!o.length)return i;let t=[],e=[...i];for(let n of o){let r=e.findIndex((t=>sl(t).iso2===n));if(-1!==r){let n=e.splice(r,1)[0];t.push(n)}}return t.concat(e)}),[i,o]),d=e.useRef({updatedAt:void 0,value:""}),f=e.useCallback((t=>h.findIndex((e=>sl(e).iso2===t))),[h]),[m,g]=e.useState(f(r)),y=()=>{p.current!==r&&g(f(r))},v=e.useCallback((t=>{g(f(t.iso2)),null==a||a(t)}),[a,f]),b=t=>{let e=h.length-1;g((n=>{let r=(i=n,"prev"===t?i-1:"next"===t?i+1:"last"===t?e:0);var i;return r<0?0:r>e?e:r}))},w=e.useCallback((()=>{if(!u.current||void 0===m)return;let t=sl(h[m]).iso2;if(t===p.current)return;let e=u.current.querySelector(`[data-country="${t}"]`);e&&(((t,e)=>{let n=t.style.display;"block"!==n&&(t.style.display="block");let r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=i.top-r.top,s=r.bottom-i.bottom;o>=0&&s>=0||(Math.abs(o)<Math.abs(s)?t.scrollTop+=o:t.scrollTop-=s),t.style.display=n})(u.current,e),p.current=t)}),[m,h]);return e.useEffect((()=>{w()}),[m,w]),e.useEffect((()=>{u.current&&(t?u.current.focus():y())}),[t]),e.useEffect((()=>{y()}),[r]),e.createElement("ul",{ref:u,role:"listbox",className:Ja({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:t?"block":"none",...c.style},onKeyDown:t=>{if(t.stopPropagation(),"Enter"!==t.key){if("Escape"!==t.key)return"ArrowUp"===t.key?(t.preventDefault(),void b("prev")):"ArrowDown"===t.key?(t.preventDefault(),void b("next")):"PageUp"===t.key?(t.preventDefault(),void b("first")):"PageDown"===t.key?(t.preventDefault(),void b("last")):(" "===t.key&&t.preventDefault(),void(1===t.key.length&&!t.altKey&&!t.ctrlKey&&!t.metaKey&&(t=>{let e=d.current.updatedAt&&(new Date).getTime()-d.current.updatedAt.getTime()>1e3;d.current={value:e?t:`${d.current.value}${t}`,updatedAt:new Date};let n=h.findIndex((t=>sl(t).name.toLowerCase().startsWith(d.current.value)));-1!==n&&g(n)})(t.key.toLocaleLowerCase())));null==l||l()}else{t.preventDefault();let e=sl(h[m]);v(e)}},onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${sl(h[m]).iso2}-option`},h.map(((t,i)=>{let a=sl(t),l=a.iso2===r,u=i===m,p=o.includes(a.iso2),h=i===o.length-1,d=null==s?void 0:s.find((t=>t.iso2===a.iso2));return e.createElement(e.Fragment,{key:a.iso2},e.createElement("li",{"data-country":a.iso2,role:"option","aria-selected":l,"aria-label":`${a.name} ${n}${a.dialCode}`,id:`react-international-phone__${a.iso2}-option`,className:Ja({addPrefix:["country-selector-dropdown__list-item",p&&"country-selector-dropdown__list-item--preferred",l&&"country-selector-dropdown__list-item--selected",u&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(a),style:c.listItemStyle,title:a.name},e.createElement(pl,{iso2:a.iso2,src:null==d?void 0:d.src,className:Ja({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),e.createElement("span",{className:Ja({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},a.name),e.createElement("span",{className:Ja({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},n,a.dialCode)),h?e.createElement("hr",{className:Ja({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)})))},dl=({selectedCountry:t,onSelect:n,disabled:r,hideDropdown:i,countries:o=Ka,preferredCountries:s=[],flags:a,renderButtonWrapper:l,...c})=>{let[u,p]=e.useState(!1),h=e.useMemo((()=>{if(t)return al({value:t,field:"iso2",countries:o})}),[o,t]),d=e.useRef(null),f=t=>{t.key&&["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),p(!0))};return e.createElement("div",{className:Ja({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:d},(()=>{var n;let o={title:null==h?void 0:h.name,onClick:()=>p((t=>!t)),onMouseDown:t=>t.preventDefault(),onKeyDown:f,disabled:i||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},s=e.createElement("div",{className:Ja({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},e.createElement(pl,{iso2:t,src:null==(n=null==a?void 0:a.find((e=>e.iso2===t)))?void 0:n.src,className:Ja({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:t?"visible":"hidden",...c.flagStyle}}),!i&&e.createElement("div",{className:Ja({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return l?l({children:s,rootProps:o}):e.createElement("button",{...o,type:"button",className:Ja({addPrefix:["country-selector-button",u&&"country-selector-button--active",r&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":t,style:c.buttonStyle},s)})(),e.createElement(hl,{show:u,countries:o,preferredCountries:s,flags:a,onSelect:t=>{p(!1),null==n||n(t)},selectedCountry:t,onClose:()=>{p(!1)},...c.dropdownStyleProps}))},fl=({dialCode:t,prefix:n,disabled:r,style:i,className:o})=>e.createElement("div",{className:Ja({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[o]}),style:i},`${n}${t}`);e.forwardRef((({value:t,onChange:n,countries:r=Ka,preferredCountries:i=[],hideDropdown:o,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:a,flags:l,style:c,className:u,inputStyle:p,inputClassName:h,countrySelectorStyleProps:d,dialCodePreviewStyleProps:f,inputProps:m,placeholder:g,disabled:y,name:v,onFocus:b,onBlur:w,required:x,autoFocus:k,...S},C)=>{let{phone:_,inputValue:$,inputRef:E,country:P,setCountry:T,handlePhoneValueChange:A}=il({value:t,countries:r,...S,onChange:t=>{null==n||n(t.phone,{country:t.country,inputValue:t.inputValue})}}),j=S.disableDialCodeAndPrefix&&s&&(null==P?void 0:P.dialCode);return e.useImperativeHandle(C,(()=>E.current?Object.assign(E.current,{setCountry:T,state:{phone:_,inputValue:$,country:P}}):null),[E,T,_,$,P]),e.createElement("div",{ref:C,className:Ja({addPrefix:["input-container"],rawClassNames:[u]}),style:c},e.createElement(dl,{onSelect:t=>T(t.iso2,{focusOnInput:!a}),flags:l,selectedCountry:P.iso2,countries:r,preferredCountries:i,disabled:y,hideDropdown:o,...d}),j&&e.createElement(fl,{dialCode:P.dialCode,prefix:S.prefix??"+",disabled:y,...f}),e.createElement("input",{onChange:A,value:$,type:"tel",ref:E,className:Ja({addPrefix:["input",y&&"input--disabled"],rawClassNames:[h]}),placeholder:g,disabled:y,style:p,name:v,onFocus:b,onBlur:w,autoFocus:k,required:x,...m}))}));const ml=t.styled.div`
|
|
194
|
+
${({theme:t})=>`\n align-items: flex-start;\n align-self: stretch;\n display: flex;\n gap: ${t.spacing[.5]};\n width: 380px;\n\n > button, div {\n border: 1px solid ${t.palette.gray[300]};\n border-radius: ${t.spacing[.25]};\n }\n\n &.disabled {\n > button, div {\n background: ${t.palette.gray[100]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n }\n\n &.error:not(.disabled) {\n > button, div {\n border: 1px solid ${t.palette.error[500]};\n }\n }\n\n &:focus-within:not(.disabled, .error) {\n > button, div {\n background: ${t.palette.white};\n border: 2px solid ${t.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n > button, div {\n background: ${t.palette.white};\n border-color: ${t.palette.gray[600]};\n }\n }\n\n @container (width < 320px) or (width < 600px) {\n width: 100%;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 250px;\n }\n `}
|
|
195
|
+
`,gl=t.styled.button`
|
|
196
|
+
${({theme:t})=>`\n align-items: center;\n background: inherit;\n border-color: inherit;\n display: flex;\n gap: ${t.spacing[.25]};\n height: 44px;\n min-width: 67px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n\n &:disabled {\n background: ${t.palette.gray[100]};\n cursor: not-allowed;\n }\n `}
|
|
197
|
+
`,yl=t.styled.ul`
|
|
198
|
+
${({theme:t})=>`\n align-items: flex-start;\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n max-height: 190px;\n overflow: hidden auto;\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n width: max-content;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n max-height: 150px;\n }\n `}
|
|
199
|
+
`,vl=t.styled.li`
|
|
200
|
+
${({theme:t})=>`\n align-items: center;\n background: ${t.palette.white};\n cursor: pointer;\n display: inline-flex;\n font-size: ${t.typography.text.sm};\n gap: ${t.spacing[.5]};\n height: 38px;\n line-height: ${t.spacing[1.25]};\n padding: ${t.spacing[.5]} ${t.spacing[1]};\n width: 190px;\n\n &:hover {\n background: ${t.palette.gray[100]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.xs};\n height: 30px;\n width: 160px;\n }\n `}
|
|
201
|
+
`,bl=t.styled.p`
|
|
202
|
+
color: ${({theme:t})=>t.palette.gray[800]};
|
|
203
|
+
font-size: inherit;
|
|
204
|
+
min-width: 55%;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
text-overflow: ellipsis;
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
`,wl=({htmlFor:e,label:n,mode:r="light",required:i,tooltip:o})=>{const s=t.useTheme(),a=`${e}-tooltip`,l=void 0!==o&&!ir(o);return y.jsxs("label",{className:`flex gap-1 w-full ${r}`,htmlFor:e,children:[n,i&&y.jsx(V,{icon:"asterisk",iconColor:s.palette.error[500],iconSize:"xxs"}),l?y.jsx(Tr,{icon:"circle-info",id:a,place:"right",tip:o}):null]})},xl=t.styled.div`
|
|
209
|
+
${({theme:t})=>`\n align-items: flex-start;\n display: inline-flex;\n flex-direction: column;\n gap: ${t.spacing[.25]};\n\n label {\n color: ${t.palette.gray[800]};\n\n &.dark {\n color: ${t.palette.white};\n }\n }\n\n > *:not(.error-msg) {\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.md};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.spacing[1.5]};\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.sm};\n }\n }\n `}
|
|
210
|
+
`,kl=t.styled.div`
|
|
211
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n border-radius: ${t.spacing[.25]};\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[600]};\n gap: ${t.spacing[.625]};\n justify-content: space-between;\n height: 44px;\n padding: ${t.spacing[.625]} ${t.spacing[.75]};\n width: 320px;\n\n input {\n background: inherit;\n cursor: inherit;\n outline: none;\n width: 100%;\n\n &::placeholder {\n &.dark {\n color: ${t.palette.gray[600]};\n }\n &.light {\n color: ${t.palette.gray[400]};\n }\n }\n }\n\n span {\n font-size: 14px;\n }\n\n &.dark {\n border: 1px solid ${t.palette.gray[700]};\n color: ${t.palette.white};\n }\n\n &.disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n\n &.dark {\n background: ${t.palette.gray[700]};\n }\n &.light {\n background: ${t.palette.gray[100]};\n }\n }\n\n &.error:not(.disabled) {\n border: 1px solid ${t.palette.error[500]};\n }\n\n &:focus-within:not(.disabled, .error) {\n &.dark {\n background: ${t.palette.black};\n border: 2px solid ${t.palette.gray[400]};\n }\n\n &.light {\n background: ${t.palette.white};\n border: 2px solid ${t.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n &.dark {\n background: ${t.palette.black};\n }\n\n &.light {\n background: ${t.palette.white};\n border: 1px solid ${t.palette.gray[600]};\n }\n }\n\n @container (width < 320px) or (width < 600px) {\n width: 100%;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 250px;\n }\n `}
|
|
212
|
+
`,Sl=({children:e,error:n,htmlFor:r,label:i,mode:o,required:s,tooltip:a})=>{const l=t.useTheme();return y.jsxs(xl,{children:[void 0===i?void 0:y.jsx(wl,{htmlFor:r,label:i,mode:o,required:s,tooltip:a}),e,n?y.jsx(F,{className:"error-msg",color:l.palette.error[500],display:"block",lineSpacing:1,size:"sm",sizeSm:"xs",children:n}):void 0]})},Cl=e.forwardRef((function({disabled:r,error:i,label:o,mode:l="light",name:c,required:u,tooltip:p,value:h,...d},f){const m=t.useTheme(),[g,v]=e.useState(!1),[b,w]=e.useState(""),x=e.useRef(null),{refs:k,floatingStyles:S}=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:u,open:p}=t,[h,d]=s.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=s.useState(r);ie(f,r)||m(r);const[g,y]=s.useState(null),[v,b]=s.useState(null),w=s.useCallback((t=>{t!==C.current&&(C.current=t,y(t))}),[]),x=s.useCallback((t=>{t!==_.current&&(_.current=t,b(t))}),[]),k=o||g,S=l||v,C=s.useRef(null),_=s.useRef(null),$=s.useRef(h),E=null!=u,P=ae(u),T=ae(i),A=ae(p),j=s.useCallback((()=>{if(!C.current||!_.current)return;const t={placement:e,strategy:n,middleware:f};T.current&&(t.platform=T.current),ne(C.current,_.current,t).then((t=>{const e={...t,isPositioned:!1!==A.current};O.current&&!ie($.current,e)&&($.current=e,a.flushSync((()=>{d(e)})))}))}),[f,e,n,T,A]);re((()=>{!1===p&&$.current.isPositioned&&($.current.isPositioned=!1,d((t=>({...t,isPositioned:!1}))))}),[p]);const O=s.useRef(!1);re((()=>(O.current=!0,()=>{O.current=!1})),[]),re((()=>{if(k&&(C.current=k),S&&(_.current=S),k&&S){if(P.current)return P.current(k,S,j);j()}}),[k,S,j,P,E]);const M=s.useMemo((()=>({reference:C,floating:_,setReference:w,setFloating:x})),[w,x]),D=s.useMemo((()=>({reference:k,floating:S})),[k,S]),I=s.useMemo((()=>{const t={position:n,left:0,top:0};if(!D.floating)return t;const e=se(D.floating,h.x),r=se(D.floating,h.y);return c?{...t,transform:"translate("+e+"px, "+r+"px)",...oe(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}}),[n,c,D.floating,h.x,h.y]);return s.useMemo((()=>({...h,update:j,refs:M,elements:D,floatingStyles:I})),[h,j,M,D,I])}({placement:"bottom-start",whileElementsMounted:Qt}),{inputValue:C,handlePhoneValueChange:_,country:$,setCountry:E}=il({countries:Ka,defaultCountry:"us",value:h?String(h):void 0}),P=e.useCallback((()=>{v((t=>!t)),g||w("")}),[g]),T=e.useCallback((t=>()=>{E(t),v(!1),w("")}),[E,v]),A=e.useCallback((t=>{1===t.key.length?w((e=>e+t.key)):"Backspace"===t.key&&w((t=>t.slice(0,-1)))}),[]),j=Ka.filter((t=>{const{name:e}=sl(t);return e.toLowerCase().includes(b.toLowerCase())}));return Nr(k.floating.current,(()=>{v(!1),w("")}),!0),y.jsx(Sl,{error:i,htmlFor:c,label:o,mode:l,required:u,tooltip:p,children:y.jsxs(ml,{className:`${r?"disabled":""} ${i?"error":""}`,ref:x,children:[y.jsxs(gl,{"aria-label":"country-selector","data-testid":"country-selector",disabled:r,id:"country-selector",onClick:P,onKeyDown:A,ref:k.setReference,children:[y.jsx(pl,{iso2:$.iso2,size:"16px"}),y.jsx(V,{icon:"angle-down",iconColor:m.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(kl,{className:`light ${r?"disabled":""} ${i?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":i?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off","data-testid":`${c}-input`,disabled:r,id:c,name:c,onChange:_,ref:f,type:"tel",value:C,...d}),i?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}):void 0]}),g&&n.createPortal(y.jsx(yl,{ref:k.setFloating,style:S,children:j.map((t=>{const{dialCode:e,iso2:n,name:r}=sl(t);return y.jsxs(vl,{onClick:T(n),value:n,children:[y.jsx(pl,{iso2:n,size:"16px"}),y.jsx(bl,{children:r}),y.jsx(F,{color:m.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+e})]},n)}))}),document.getElementById("root")??document.body)]})})})),_l=e.forwardRef((function({disabled:e,error:n,label:r,mode:i="light",name:o,required:s,tooltip:a,type:l="text",...c},u){const p=t.useTheme();return y.jsx(Sl,{error:n,htmlFor:o,label:r,mode:i,required:s,tooltip:a,children:y.jsxs(kl,{className:`${i} ${e?"disabled":""} ${n?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":o,"aria-required":s,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,ref:u,type:l,...c}),n?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:p.palette.error[500],iconSize:"xs"}):void 0]})})})),$l=t.styled.div`
|
|
213
|
+
${({theme:t})=>`\n align-items: flex-start;\n backdrop-filter: blur(3.15px);\n background: radial-gradient(\n 68.83% 167.8% at 171.9% 90.34%,\n ${t.palette.complementary[300]} 0%,\n ${t.palette.primary[400]} 100%\n ),\n linear-gradient(\n 241deg,\n ${t.palette.primary[400]} 3.45%,\n ${t.palette.primary[500]} 82.59%\n );\n border-radius: ${t.spacing[1]};\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.625]};\n height: 300px;\n padding: ${t.spacing[1]};\n position: relative;\n width: 300px;\n\n button > * {\n font-size: ${t.typography.text.sm};\n }\n\n #hovered {\n display: none;\n }\n\n &:hover {\n background: ${t.palette.gray[900]};\n\n #hovered {\n display: flex;\n }\n #uncover {\n display: none;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n height: 320px;\n width: 320px;\n\n #hovered {\n margin-bottom: ${t.spacing[1.75]};\n }\n }\n `}
|
|
214
|
+
`,El=t.styled.div`
|
|
215
|
+
align-items: center;
|
|
216
|
+
position: absolute;
|
|
217
|
+
justify-content: center;
|
|
218
|
+
opacity: 0.15;
|
|
219
|
+
top: 14%;
|
|
220
|
+
left: 25%;
|
|
221
|
+
z-index: -1;
|
|
222
|
+
|
|
223
|
+
span {
|
|
224
|
+
font-size: 265px;
|
|
225
|
+
height: 260px;
|
|
226
|
+
width: 260px;
|
|
227
|
+
}
|
|
228
|
+
`,Pl=({icon:t})=>y.jsx(El,{children:y.jsx(V,{icon:t,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Tl=t.styled.button`
|
|
229
|
+
${({theme:t})=>`\n align-items: center;\n border-left: 3px solid transparent;\n display: flex;\n gap: ${t.spacing[.625]};\n height: 42px;\n min-width: 50px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n\n &.dark {\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.gray[25]};\n\n &.disabled {\n border-color: ${t.palette.gray[500]};\n color: ${t.palette.gray[500]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${t.palette.gray[700]};\n border-color: ${t.palette.primary[400]};\n }\n }\n\n &.light {\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n\n &.disabled {\n background-color: ${t.palette.white};\n border-color: ${t.palette.gray[300]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${t.palette.gray[100]};\n border-color: ${t.palette.primary[400]};\n }\n }\n `}
|
|
230
|
+
`,Al=t.styled.div`
|
|
231
|
+
${({theme:t})=>`\n align-items: center;\n background-color: transparent;\n border-bottom: 2px solid transparent;\n display: flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.5]};\n height: 30px;\n justify-content: center;\n padding: ${t.spacing[.25]};\n margin-bottom: ${t.spacing[.25]};\n min-width: 50px;\n width: max-content;\n z-index: 11;\n\n &:hover {\n border-color: ${t.palette.primary[400]};\n }\n\n &.dark {\n color: ${t.palette.gray[25]};\n }\n\n &.light {\n color: ${t.palette.gray[800]};\n }\n `}
|
|
232
|
+
`,jl=t.styled.div`
|
|
233
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n border-radius: 0 0 ${t.spacing[.25]} ${t.spacing[.25]};\n box-shadow: ${t.shadows.lg};\n display: none;\n flex-direction: column;\n position: absolute;\n top: 100%;\n z-index: 11;\n\n > button:last-child {\n border-radius: 0 0 ${t.spacing[.25]} ${t.spacing[.25]};\n }\n `}
|
|
234
|
+
`,Ol=t.styled.div`
|
|
235
|
+
${({theme:t})=>`\n align-items: flex-start;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.25]};\n height: max-content;\n position: relative;\n width: max-content;\n z-index: 10;\n\n &:hover {\n > div:first-child {\n border-color: ${t.palette.primary[400]};\n }\n\n > div:last-child {\n display: flex;\n }\n }\n `}
|
|
236
|
+
`,Ml=({disabled:t=!1,mode:e,onClick:n,text:r})=>y.jsx(Tl,{className:`${t&&"disabled"} ${e}`,disabled:t,onClick:n,children:y.jsx(F,{color:"inherit",size:"sm",sizeSm:"xs",children:r})}),Dl=[{text:"EN"},{text:"ES"}],Il=t.styled.li`
|
|
237
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n color: ${t.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n justify-content: space-between;\n gap: ${t.spacing[.625]};\n line-height: ${t.spacing[1.25]};\n list-style-type: none;\n min-height: 40px;\n min-width: 240px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n pointer-events: auto;\n\n p,\n a {\n word-break: break-word;\n }\n\n & > label {\n margin: unset;\n }\n\n a {\n color: ${t.palette.gray[500]};\n }\n\n &[aria-disabled="true"] {\n color: ${t.palette.gray[300]};\n pointer-events: none;\n\n a {\n color: ${t.palette.gray[300]};\n }\n }\n\n &[aria-selected="true"] {\n background-color: ${t.palette.gray[200]};\n }\n\n &:hover:not([aria-selected="true"]) {\n background-color: ${t.palette.gray[100]};\n }\n `}
|
|
238
|
+
`,Rl=t.styled.ul`
|
|
239
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n box-shadow: ${t.shadows.md};\n display: inline-block;\n margin: unset;\n min-width: 240px;\n padding: ${t.spacing[.25]} 0 ${t.spacing[.25]} 0;\n `}
|
|
240
|
+
`,Fl=t.styled.span`
|
|
241
|
+
${({theme:t,$bgColor:e=t.palette.secondary[500],$txtDecoration:n="none"})=>`\n background-color: ${e};\n border-radius: 5px;\n color: ${t.palette.white};\n font-size: 10px;\n padding: ${t.spacing[.125]} ${t.spacing[.25]} ${t.spacing[.125]} ${t.spacing[.25]};\n text-decoration: ${n}\n `}
|
|
242
|
+
`,Ll={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Nl=t.styled.div`
|
|
243
|
+
display: flex;
|
|
244
|
+
height: 80px;
|
|
245
|
+
max-width: 1440px;
|
|
246
|
+
overflow: hidden;
|
|
247
|
+
position: relative;
|
|
248
|
+
`,zl=t.styled.div`
|
|
249
|
+
height: 79px;
|
|
250
|
+
width: 64px;
|
|
251
|
+
flex-shrink: 0;
|
|
252
|
+
position: absolute;
|
|
253
|
+
z-index: 11;
|
|
254
|
+
|
|
255
|
+
&.left {
|
|
256
|
+
background: linear-gradient(
|
|
257
|
+
to right,
|
|
258
|
+
#fff 57.21%,
|
|
259
|
+
rgb(255 255 255 / 0%) 100.63%
|
|
260
|
+
);
|
|
261
|
+
left: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.right {
|
|
265
|
+
background: linear-gradient(
|
|
266
|
+
to left,
|
|
267
|
+
#fff 57.21%,
|
|
268
|
+
rgb(255 255 255 / 0%) 100.63%
|
|
269
|
+
);
|
|
270
|
+
right: 0;
|
|
271
|
+
}
|
|
272
|
+
`,Vl=t.styled.div`
|
|
273
|
+
display: flex;
|
|
274
|
+
gap: 40px;
|
|
275
|
+
animation: clients-animation 50s linear infinite;
|
|
276
|
+
width: calc(180px * 30);
|
|
277
|
+
|
|
278
|
+
@keyframes clients-animation {
|
|
279
|
+
0% {
|
|
280
|
+
transform: translateX(0);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
100% {
|
|
284
|
+
transform: translateX(calc(-180px * 15));
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
`,Bl=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"];var Wl={};!function(t,e){var n,r=(n=e)&&"object"==typeof n&&"default"in n?n:{default:n},i=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u||"undefined"!=typeof self&&self,{exports:{}});!function(t,e){"undefined"!=typeof navigator&&(t.exports=function(){var t="http://www.w3.org/2000/svg",n="",r=!1,i=-999999,o=function(t){r=!!t},s=function(){return r},a=function(t){n=t},l=function(){return n};function c(t){return document.createElement(t)}function u(t,e){var n,r,i=t.length;for(n=0;n<i;n+=1)for(var o in r=t[n].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(e.prototype[o]=r[o])}function p(t){function e(){}return e.prototype=t,e}var h=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),d=function(){function t(t,e){var n,r=0,i=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<e;r+=1)i.push(n);return i}function e(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function f(t){return Array.apply(null,{length:t})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,w=Math.sqrt,x=Math.floor,k=Math.min,S=150,C=Math.PI/180,_=.5519;function $(t,e,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function E(t,e){this.type=t,this.direction=e<0?-1:1}function P(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function T(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function A(t,e){this.type=t,this.target=e}function j(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function O(t){this.type="configError",this.nativeError=t}var M,D=(M=0,function(){return y+"__lottie_element_"+(M+=1)});function I(t,e,n){var r,i,o,s,a,l,c,u;switch(l=n*(1-e),c=n*(1-(a=6*t-(s=Math.floor(6*t)))*e),u=n*(1-(1-a)*e),s%6){case 0:r=n,i=u,o=l;break;case 1:r=c,i=n,o=l;break;case 2:r=l,i=n,o=u;break;case 3:r=l,i=c,o=n;break;case 4:r=u,i=l,o=n;break;case 5:r=n,i=l,o=c}return[r,i,o]}function R(t,e,n){var r,i=Math.max(t,e,n),o=Math.min(t,e,n),s=i-o,a=0===i?0:s/i,l=i/255;switch(i){case o:r=0;break;case t:r=e-n+s*(e<n?6:0),r/=6*s;break;case e:r=n-t+2*s,r/=6*s;break;case n:r=t-e+4*s,r/=6*s}return[r,a,l]}function F(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),I(n[0],n[1],n[2])}function L(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),I(n[0],n[1],n[2])}function N(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),I(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();var z=function(t){m=!!t},V=function(){return m},B=function(t){g=t},W=function(){return g},q=function(t){S=t},U=function(){return S},H=function(t){y=t};function G(e){return document.createElementNS(t,e)}function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Y=function(){var t,e,n=1,r=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){i.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&s()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,i}function l(){e||((e=a((function(t){function e(){function t(e,n){var s,a,l,c,u,p,h=e.length;for(a=0;a<h;a+=1)if("ks"in(s=e[a])&&!s.completed){if(s.completed=!0,s.hasMask){var d=s.masksProperties;for(c=d.length,l=0;l<c;l+=1)if(d[l].pt.k.i)o(d[l].pt.k);else for(p=d[l].pt.k.length,u=0;u<p;u+=1)d[l].pt.k[u].s&&o(d[l].pt.k[u].s[0]),d[l].pt.k[u].e&&o(d[l].pt.k[u].e[0])}0===s.ty?(s.layers=r(s.refId,n),t(s.layers,n)):4===s.ty?i(s.shapes):5===s.ty&&f(s)}}function e(e,n){if(e){var i=0,o=e.length;for(i=0;i<o;i+=1)1===e[i].t&&(e[i].data.layers=r(e[i].data.refId,n),t(e[i].data.layers,n))}}function n(t,e){for(var n=0,r=e.length;n<r;){if(e[n].id===t)return e[n];n+=1}return null}function r(t,e){var r=n(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function i(t){var e,n,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)o(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;n<r;n+=1)t[e].ks.k[n].s&&o(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&o(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function o(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function s(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var a,l=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),c=(a=[4,7,99],function(t){if(t.chars&&!s(a,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var r=t.chars[e];r.data&&r.data.shapes&&(i(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),u=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var n,r,i,o=t.length;for(n=0;n<o;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(i=t[n].c.k.length,r=0;r<i;r+=1)t[n].c.k[r].s&&(t[n].c.k[r].s[0]/=255,t[n].c.k[r].s[1]/=255,t[n].c.k[r].s[2]/=255,t[n].c.k[r].s[3]/=255),t[n].c.k[r].e&&(t[n].c.k[r].e[0]/=255,t[n].c.k[r].e[1]/=255,t[n].c.k[r].e[2]/=255,t[n].c.k[r].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),h=function(){var t=[4,4,18];function e(t){var n,r,i;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(i=t[n].ks.k.length,r=0;r<i;r+=1)t[n].ks.k[r].s&&(t[n].ks.k[r].s[0].c=t[n].closed),t[n].ks.k[r].e&&(t[n].ks.k[r].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,r,i,o,s,a,l=t.length;for(r=0;r<l;r+=1){if((n=t[r]).hasMask){var c=n.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(a=c[i].pt.k.length,s=0;s<a;s+=1)c[i].pt.k[s].s&&(c[i].pt.k[s].s[0].c=c[i].cl),c[i].pt.k[s].e&&(c[i].pt.k[s].e[0].c=c[i].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}();function d(n){n.__complete||(p(n),l(n),c(n),u(n),h(n),t(n.layers,n.assets),e(n.chars,n.assets),n.__complete=!0)}function f(t){0===t.t.a.length&&t.t.p}var m={};return m.completeData=d,m.checkColors=p,m.checkChars=c,m.checkPathProperties=u,m.checkShapes=h,m.completeLayers=t,m}if(o.dataManager||(o.dataManager=e()),o.assetLoader||(o.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===K(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function e(e,n,r,i){var o,s=new XMLHttpRequest;try{s.responseType="json"}catch(a){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)o=t(s),r(o);else try{o=t(s),r(o)}catch(a){i&&i(a)}};try{s.open(["G","E","T"].join(""),e,!0)}catch(a){s.open(["G","E","T"].join(""),n+"/"+e,!0)}s.send()}return{load:e}}()),"loadAnimation"===t.data.type)o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var n=t.data.animation;o.dataManager.completeData(n),o.postMessage({id:t.data.id,payload:n,status:"success"})}else"loadData"===t.data.type&&o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,n=e.id,i=r[n];r[n]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function c(t,e){var i="processId_"+(n+=1);return r[i]={onComplete:t,onError:e},i}function u(t,n,r){l();var i=c(n,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})}function p(t,n,r){l();var i=c(n,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})}function h(t,n,r){l();var i=c(n,r);e.postMessage({type:"complete",animation:t,id:i})}return{loadAnimation:u,loadData:p,completeAnimation:h}}(),J=function(){var t=function(){var t=c("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,n){var r="";if(t.e)r=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=e+i}else r=n,r+=t.u?t.u:"",r+=t.p;return r}function i(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function o(e){var n=r(e,this.assetsPath,this.path),i=G("image");v?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:e};return o}function s(e){var n=r(e,this.assetsPath,this.path),i=c("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.src=n;var o={img:i,assetData:e};return o}function a(t){var e={assetData:t},n=r(t,this.assetsPath,this.path);return Y.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function l(t,e){var n;this.imagesLoadedCb=e;var r=t.length;for(n=0;n<r;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))}function u(t){this.path=t||""}function p(t){this.assetsPath=t||""}function h(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:l,setAssetsPath:p,setPath:u,loadedImages:f,loadedFootages:m,destroy:d,getAsset:h,createImgData:s,createImageData:o,imageLoaded:e,footageLoaded:n,setCacheType:g},y}();function X(){}X.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],r=0;r<n.length;r+=1)n[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,r=this._cbs[t].length;n<r;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,r-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Q=function(){function t(t){for(var e,n=t.split("\r\n"),r={},i=0,o=0;o<n.length;o+=1)2===(e=n[o].split(":")).length&&(r[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(e){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(e[r].cm)}catch(s){try{o.payload=t(e[r].cm)}catch(a){o.payload={name:e[r].cm}}}n.push(o)}return n}}(),Z=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),tt={},et=function(t,e){tt[t]=e};function nt(t){return tt[t]}function rt(t){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var it=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=D(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=V(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Z(),this.imagePreloader=new J,this.audioController=h(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new $("drawnFrame",0,0,0)};u([X],it),it.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=nt(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Y.loadAnimation(t.path,this.configAnimation,this.onSetupError))},it.prototype.onSetupError=function(){this.trigger("data_failed")},it.prototype.setupAnimation=function(t){Y.completeAnimation(t,this.configAnimation)},it.prototype.setData=function(t,e){e&&"object"!==rt(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},it.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,r=this.animationData.layers,i=r.length,o=t.layers,s=o.length;for(n=0;n<s;n+=1)for(e=0;e<i;){if(r[e].id===o[n].id){r[e]=o[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,Y.completeAnimation(this.animationData,this.onSegmentComplete)},it.prototype.onSegmentComplete=function(t){this.animationData=t;var e=W();e&&e.initExpressions(this),this.loadNextSegment()},it.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Y.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},it.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},it.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},it.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},it.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Q(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},it.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},it.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=W();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},it.prototype.resize=function(t,e){var n="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(n,r)},it.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},it.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},it.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},it.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},it.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},it.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},it.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},it.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},it.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},it.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,e,n);this.play()}},it.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},it.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},it.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},it.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===rt(t[0])){var n,r=t.length;for(n=0;n<r;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},it.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},it.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},it.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},it.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},it.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},it.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},it.prototype.setLoop=function(t){this.loop=t},it.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},it.prototype.getVolume=function(){return this.audioController.getVolume()},it.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},it.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},it.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},it.prototype.getPath=function(){return this.path},it.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},it.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},it.prototype.hide=function(){this.renderer.hide()},it.prototype.show=function(){this.renderer.show()},it.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},it.prototype.updateDocumentData=function(t,e,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}catch(r){}},it.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new $(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new P(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new E(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new T(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new A(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new $(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new P(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new E(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new T(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new A(t,this))},it.prototype.triggerRenderFrameError=function(t){var e=new j(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},it.prototype.triggerConfigError=function(t){var e=new O(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var ot=function(){var t={},e=[],n=0,r=0,i=0,o=!0,s=!1;function a(t){for(var n=0,i=t.target;n<r;)e[n].animation===i&&(e.splice(n,1),n-=1,r-=1,i.isPaused||h()),n+=1}function l(t,n){if(!t)return null;for(var i=0;i<r;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var o=new it;return d(o,t),o.setData(t,n),o}function u(){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r.push(e[t].animation);return r}function p(){i+=1,E()}function h(){i-=1}function d(t,n){t.addEventListener("destroy",a),t.addEventListener("_active",p),t.addEventListener("_idle",h),e.push({elem:n,animation:t}),r+=1}function f(t){var e=new it;return d(e,null),e.setParams(t),e}function m(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setSpeed(t,n)}function g(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setDirection(t,n)}function y(t){var n;for(n=0;n<r;n+=1)e[n].animation.play(t)}function v(t){var a,l=t-n;for(a=0;a<r;a+=1)e[a].animation.advanceTime(l);n=t,i&&!s?window.requestAnimationFrame(v):o=!0}function b(t){n=t,window.requestAnimationFrame(v)}function w(t){var n;for(n=0;n<r;n+=1)e[n].animation.pause(t)}function x(t,n,i){var o;for(o=0;o<r;o+=1)e[o].animation.goToAndStop(t,n,i)}function k(t){var n;for(n=0;n<r;n+=1)e[n].animation.stop(t)}function S(t){var n;for(n=0;n<r;n+=1)e[n].animation.togglePause(t)}function C(t){var n;for(n=r-1;n>=0;n-=1)e[n].animation.destroy(t)}function _(t,e,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(r=0;r<o;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],t);if(e&&0===o){n||(n="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var a=c("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",n),s.appendChild(a),l(a,t)}}function $(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()}function E(){!s&&i&&o&&(window.requestAnimationFrame(b),o=!1)}function P(){s=!0}function T(){s=!1,E()}function A(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setVolume(t,n)}function j(t){var n;for(n=0;n<r;n+=1)e[n].animation.mute(t)}function O(t){var n;for(n=0;n<r;n+=1)e[n].animation.unmute(t)}return t.registerAnimation=l,t.loadAnimation=f,t.setSpeed=m,t.setDirection=g,t.play=y,t.pause=w,t.stop=k,t.togglePause=S,t.searchAnimations=_,t.resize=$,t.goToAndStop=x,t.destroy=C,t.freeze=P,t.unfreeze=T,t.setVolume=A,t.mute=j,t.unmute=O,t.getRegisteredAnimations=u,t}(),st=function(){var t={};t.getBezierEasing=n;var e={};function n(t,n,r,i,o){var s=o||("bez_"+t+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(e[s])return e[s];var a=new y([t,n,r,i]);return e[s]=a,a}var r=4,i=.001,o=1e-7,s=10,a=11,l=1/(a-1),c="function"==typeof Float32Array;function u(t,e){return 1-3*e+3*t}function p(t,e){return 3*e-6*t}function h(t){return 3*t}function d(t,e,n){return((u(e,n)*t+p(e,n))*t+h(e))*t}function f(t,e,n){return 3*u(e,n)*t*t+2*p(e,n)*t+h(e)}function m(t,e,n,r,i){var a,l,c=0;do{(a=d(l=e+(n-e)/2,r,i)-t)>0?n=l:e=l}while(Math.abs(a)>o&&++c<s);return l}function g(t,e,n,i){for(var o=0;o<r;++o){var s=f(e,n,i);if(0===s)return e;e-=(d(e,n,i)-t)/s}return e}function y(t){this._p=t,this._mSampleValues=c?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===n&&r===i?t:0===t?0:1===t?1:d(this._getTForX(t),n,i)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<a;++n)this._mSampleValues[n]=d(n*l,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,o=0,s=1,c=a-1;s!==c&&r[s]<=t;++s)o+=l;var u=o+(t-r[--s])/(r[s+1]-r[s])*l,p=f(u,e,n);return p>=i?g(t,u,e,n):0===p?u:m(t,o,o+l,e,n)}},t}(),at=function(){function t(t){return t.concat(f(t.length))}return{double:t}}(),lt=function(t,e,n){var r=0,i=t,o=f(i);function s(){return r?o[r-=1]:e()}function a(t){r===i&&(o=at.double(o),i*=2),n&&n(t),o[r]=t,r+=1}return{newElement:s,release:a}},ct=function(){function t(){return{addedLength:0,percents:d("float32",U()),lengths:d("float32",U())}}return lt(8,t)}(),ut=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)ct.release(t.lengths[e]);t.lengths.length=0}return lt(8,t,e)}();function pt(){var t=Math;function e(t,e,n,r,i,o){var s=t*r+e*i+n*o-i*r-o*t-n*e;return s>-.001&&s<.001}function n(n,r,i,o,s,a,l,c,u){if(0===i&&0===a&&0===u)return e(n,r,o,s,l,c);var p,h=t.sqrt(t.pow(o-n,2)+t.pow(s-r,2)+t.pow(a-i,2)),d=t.sqrt(t.pow(l-n,2)+t.pow(c-r,2)+t.pow(u-i,2)),f=t.sqrt(t.pow(l-o,2)+t.pow(c-s,2)+t.pow(u-a,2));return(p=h>d?h>f?h-d-f:f-d-h:f>d?f-d-h:d-h-f)>-1e-4&&p<1e-4}var r=function(t,e,n,r){var i,o,s,a,l,c,u=U(),p=0,h=[],d=[],f=ct.newElement();for(s=n.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,o=0;o<s;o+=1)a=b(1-l,3)*t[o]+3*b(1-l,2)*l*n[o]+3*(1-l)*b(l,2)*r[o]+b(l,3)*e[o],h[o]=a,null!==d[o]&&(c+=b(h[o]-d[o],2)),d[o]=h[o];c&&(p+=c=w(c)),f.percents[i]=l,f.lengths[i]=p}return f.addedLength=p,f};function i(t){var e,n=ut.newElement(),i=t.c,o=t.v,s=t.o,a=t.i,l=t._length,c=n.lengths,u=0;for(e=0;e<l-1;e+=1)c[e]=r(o[e],o[e+1],s[e],a[e+1]),u+=c[e].addedLength;return i&&l&&(c[e]=r(o[e],o[0],s[e],a[0]),u+=c[e].addedLength),n.totalLength=u,n}function o(t){this.segmentLength=0,this.points=new Array(t)}function s(t,e){this.partialLength=t,this.point=e}var a,l=(a={},function(t,n,r,i){var l=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!a[l]){var c,u,p,h,d,m,g,y=U(),v=0,x=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+r[0],t[1]+r[1])&&e(t[0],t[1],n[0],n[1],n[0]+i[0],n[1]+i[1])&&(y=2);var k=new o(y);for(p=r.length,c=0;c<y;c+=1){for(g=f(p),d=c/(y-1),m=0,u=0;u<p;u+=1)h=b(1-d,3)*t[u]+3*b(1-d,2)*d*(t[u]+r[u])+3*(1-d)*b(d,2)*(n[u]+i[u])+b(d,3)*n[u],g[u]=h,null!==x&&(m+=b(g[u]-x[u],2));v+=m=w(m),k.points[c]=new s(m,g),x=g}k.segmentLength=v,a[l]=k}return a[l]});function c(t,e){var n=e.percents,r=e.lengths,i=n.length,o=x((i-1)*t),s=t*e.addedLength,a=0;if(o===i-1||0===o||s===r[o])return n[o];for(var l=r[o]>s?-1:1,c=!0;c;)if(r[o]<=s&&r[o+1]>s?(a=(s-r[o])/(r[o+1]-r[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return n[o];c=!1}return n[o]+(n[o+1]-n[o])*a}function u(e,n,r,i,o,s){var a=c(o,s),l=1-a;return[t.round(1e3*(l*l*l*e[0]+(a*l*l+l*a*l+l*l*a)*r[0]+(a*a*l+l*a*a+a*l*a)*i[0]+a*a*a*n[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(a*l*l+l*a*l+l*l*a)*r[1]+(a*a*l+l*a*a+a*l*a)*i[1]+a*a*a*n[1]))/1e3]}var p=d("float32",8);function h(e,n,r,i,o,s,a){o<0?o=0:o>1&&(o=1);var l,u=c(o,a),h=c(s=s>1?1:s,a),d=e.length,f=1-u,m=1-h,g=f*f*f,y=u*f*f*3,v=u*u*f*3,b=u*u*u,w=f*f*m,x=u*f*m+f*u*m+f*f*h,k=u*u*m+f*u*h+u*f*h,S=u*u*h,C=f*m*m,_=u*m*m+f*h*m+f*m*h,$=u*h*m+f*h*h+u*m*h,E=u*h*h,P=m*m*m,T=h*m*m+m*h*m+m*m*h,A=h*h*m+m*h*h+h*m*h,j=h*h*h;for(l=0;l<d;l+=1)p[4*l]=t.round(1e3*(g*e[l]+y*r[l]+v*i[l]+b*n[l]))/1e3,p[4*l+1]=t.round(1e3*(w*e[l]+x*r[l]+k*i[l]+S*n[l]))/1e3,p[4*l+2]=t.round(1e3*(C*e[l]+_*r[l]+$*i[l]+E*n[l]))/1e3,p[4*l+3]=t.round(1e3*(P*e[l]+T*r[l]+A*i[l]+j*n[l]))/1e3;return p}return{getSegmentsLength:i,getNewSegment:h,getPointInSegment:u,buildBezierData:l,pointOnLine2D:e,pointOnLine3D:n}}var ht=pt(),dt=function(){var t=i,e=Math.abs;function n(t,e){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=d("float32",this.pv.length));for(var a,l,c,u,p,h,f,m,g,y=e.lastIndex,v=y,b=this.keyframes.length-1,w=!0;w;){if(a=this.keyframes[v],l=this.keyframes[v+1],v===b-1&&t>=l.t-i){a.h&&(a=l),y=0;break}if(l.t-i>t){y=v;break}v<b-1?v+=1:(y=0,w=!1)}c=this.keyframesMetadata[v]||{};var x,k=l.t-i,S=a.t-i;if(a.to){c.bezierData||(c.bezierData=ht.buildBezierData(a.s,l.s||a.e,a.to,a.ti));var C=c.bezierData;if(t>=k||t<S){var _=t>=k?C.points.length-1:0;for(p=C.points[_].point.length,u=0;u<p;u+=1)n[u]=C.points[_].point[u]}else{c.__fnct?g=c.__fnct:(g=st.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,c.__fnct=g),h=g((t-S)/(k-S));var $,E=C.segmentLength*h,P=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastAddedLength:0;for(m=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastPoint:0,w=!0,f=C.points.length;w;){if(P+=C.points[m].partialLength,0===E||0===h||m===C.points.length-1){for(p=C.points[m].point.length,u=0;u<p;u+=1)n[u]=C.points[m].point[u];break}if(E>=P&&E<P+C.points[m+1].partialLength){for($=(E-P)/C.points[m+1].partialLength,p=C.points[m].point.length,u=0;u<p;u+=1)n[u]=C.points[m].point[u]+(C.points[m+1].point[u]-C.points[m].point[u])*$;break}m<f-1?m+=1:w=!1}e._lastPoint=m,e._lastAddedLength=P-C.points[m].partialLength,e._lastKeyframeIndex=v}}else{var T,A,j,O,M;if(b=a.s.length,x=l.s||a.e,this.sh&&1!==a.h)t>=k?(n[0]=x[0],n[1]=x[1],n[2]=x[2]):t<=S?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):o(n,r(s(a.s),s(x),(t-S)/(k-S)));else for(v=0;v<b;v+=1)1!==a.h&&(t>=k?h=1:t<S?h=0:(a.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[v]?g=c.__fnct[v]:(T=void 0===a.o.x[v]?a.o.x[0]:a.o.x[v],A=void 0===a.o.y[v]?a.o.y[0]:a.o.y[v],j=void 0===a.i.x[v]?a.i.x[0]:a.i.x[v],O=void 0===a.i.y[v]?a.i.y[0]:a.i.y[v],g=st.getBezierEasing(T,A,j,O).get,c.__fnct[v]=g)):c.__fnct?g=c.__fnct:(T=a.o.x,A=a.o.y,j=a.i.x,O=a.i.y,g=st.getBezierEasing(T,A,j,O).get,a.keyframeMetadata=g),h=g((t-S)/(k-S)))),x=l.s||a.e,M=1===a.h?a.s[v]:a.s[v]+(x[v]-a.s[v])*h,"multidimensional"===this.propType?n[v]=M:n=M}return e.lastIndex=y,n}function r(t,e,n){var r,i,o,s,a,l=[],c=t[0],u=t[1],p=t[2],h=t[3],d=e[0],f=e[1],m=e[2],g=e[3];return(i=c*d+u*f+p*m+h*g)<0&&(i=-i,d=-d,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),o=Math.sin(r),s=Math.sin((1-n)*r)/o,a=Math.sin(n*r)/o):(s=1-n,a=n),l[0]=s*c+a*d,l[1]=s*u+a*f,l[2]=s*p+a*m,l[3]=s*h+a*g,l}function o(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),a=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);t[0]=s/C,t[1]=a/C,t[2]=l/C}function s(t){var e=t[0]*C,n=t[1]*C,r=t[2]*C,i=Math.cos(e/2),o=Math.cos(n/2),s=Math.cos(r/2),a=Math.sin(e/2),l=Math.sin(n/2),c=Math.sin(r/2);return[a*l*s+i*o*c,a*o*s+i*l*c,i*l*s-a*o*c,i*o*s-a*l*c]}function a(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function l(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=t[r]*this.mult,e(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function u(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function p(t,e,n,r){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=u}function h(t,e,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=e.k.length;for(this.v=d("float32",o),this.pv=d("float32",o),this.vel=d("float32",o),i=0;i<o;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=u}function f(e,r,i,o){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=e,this.container=o,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[a.bind(this)],this.addEffect=u}function m(e,r,i,o){var s;this.propType="multidimensional";var p,h,f,m,g=r.k.length;for(s=0;s<g-1;s+=1)r.k[s].to&&r.k[s].s&&r.k[s+1]&&r.k[s+1].s&&(p=r.k[s].s,h=r.k[s+1].s,f=r.k[s].to,m=r.k[s].ti,(2===p.length&&(p[0]!==h[0]||p[1]!==h[1])&&ht.pointOnLine2D(p[0],p[1],h[0],h[1],p[0]+f[0],p[1]+f[1])&&ht.pointOnLine2D(p[0],p[1],h[0],h[1],h[0]+m[0],h[1]+m[1])||3===p.length&&(p[0]!==h[0]||p[1]!==h[1]||p[2]!==h[2])&&ht.pointOnLine3D(p[0],p[1],p[2],h[0],h[1],h[2],p[0]+f[0],p[1]+f[1],p[2]+f[2])&&ht.pointOnLine3D(p[0],p[1],p[2],h[0],h[1],h[2],h[0]+m[0],h[1]+m[1],h[2]+m[2]))&&(r.k[s].to=null,r.k[s].ti=null),p[0]===h[0]&&p[1]===h[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===p.length||p[2]===h[2]&&0===f[2]&&0===m[2])&&(r.k[s].to=null,r.k[s].ti=null));this.effectsSequence=[a.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=o,this.comp=e.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var y=r.k[0].s.length;for(this.v=d("float32",y),this.pv=d("float32",y),s=0;s<y;s+=1)this.v[s]=t,this.pv[s]=t;this._caching={lastFrame:t,lastIndex:0,value:d("float32",y)},this.addEffect=u}function g(t,e,n,r,i){var o;if(e.k.length)if("number"==typeof e.k[0])o=new h(t,e,r,i);else switch(n){case 0:o=new f(t,e,r,i);break;case 1:o=new m(t,e,r,i)}else o=new p(t,e,r,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}return{getProp:g}}();function ft(){}ft.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var mt=function(){function t(){return d("float32",2)}return lt(8,t)}();function gt(){this.c=!1,this._length=0,this._maxLength=8,this.v=f(this._maxLength),this.o=f(this._maxLength),this.i=f(this._maxLength)}gt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=mt.newElement(),this.o[n]=mt.newElement(),this.i[n]=mt.newElement(),n+=1},gt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},gt.prototype.doubleArrayLength=function(){this.v=this.v.concat(f(this._maxLength)),this.i=this.i.concat(f(this._maxLength)),this.o=this.o.concat(f(this._maxLength)),this._maxLength*=2},gt.prototype.setXYAt=function(t,e,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[r]||o[r]&&!i)&&(o[r]=mt.newElement()),o[r][0]=t,o[r][1]=e},gt.prototype.setTripleAt=function(t,e,n,r,i,o,s,a){this.setXYAt(t,e,"v",s,a),this.setXYAt(n,r,"o",s,a),this.setXYAt(i,o,"i",s,a)},gt.prototype.reverse=function(){var t=new gt;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o,s=this._length-1,a=this._length;for(o=i;o<a;o+=1)t.setTripleAt(e[s][0],e[s][1],r[s][0],r[s][1],n[s][0],n[s][1],o,!1),s-=1;return t},gt.prototype.length=function(){return this._length};var yt=function(){function t(){return new gt}function e(t){var e,n=t._length;for(e=0;e<n;e+=1)mt.release(t.v[e]),mt.release(t.i[e]),mt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function n(t){var e,n=r.newElement(),i=void 0===t._length?t.v.length:t._length;for(n.setLength(i),n.c=t.c,e=0;e<i;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n}var r=lt(4,t,e);return r.clone=n,r}();function vt(){this._length=0,this._maxLength=4,this.shapes=f(this._maxLength)}vt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(f(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},vt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)yt.release(this.shapes[t]);this._length=0};var bt=function(){var t={newShapeCollection:i,release:o},e=0,n=4,r=f(n);function i(){return e?r[e-=1]:new vt}function o(t){var i,o=t._length;for(i=0;i<o;i+=1)yt.release(t.shapes[i]);t._length=0,e===n&&(r=at.double(r),n*=2),r[e]=t,e+=1}return t}(),wt=function(){var t=-999999;function e(t,e,n){var r,i,o,s,a,l,c,u,p,h=n.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)r=d[0].s[0],o=!0,h=0;else if(t>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],o=!0;else{for(var f,m,g,y=h,v=d.length-1,b=!0;b&&(f=d[y],!((m=d[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},h=y,!(o=1===f.h)){if(t>=m.t-this.offsetTime)u=1;else if(t<f.t-this.offsetTime)u=0;else{var w;g.__fnct?w=g.__fnct:(w=st.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=w),u=w((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=e._length,c=r.i[0].length,n.lastIndex=h,s=0;s<l;s+=1)for(a=0;a<c;a+=1)p=o?r.i[s][a]:r.i[s][a]+(i.i[s][a]-r.i[s][a])*u,e.i[s][a]=p,p=o?r.o[s][a]:r.o[s][a]+(i.o[s][a]-r.o[s][a])*u,e.o[s][a]=p,p=o?r.v[s][a]:r.v[s][a]+(i.v[s][a]-r.v[s][a])*u,e.v[s][a]=p}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<n&&e<n||i>r&&e>r)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function i(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,r=t._length;for(n=0;n<r;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0}function o(t){i(this.v,t)||(this.v=yt.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?e.pt.k:e.ks.k;this.v=yt.clone(i),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,i,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=yt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=o,a.prototype.addEffect=l,c.prototype.getValue=s,c.prototype.interpolateShape=e,c.prototype.setVValue=o,c.prototype.addEffect=l;var p=function(){var t=_;function e(t,e){this.v=yt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,s=this.v;s.v[0][0]=e,s.v[0][1]=n-i,s.v[1][0]=o?e+r:e-r,s.v[1][1]=n,s.v[2][0]=e,s.v[2][1]=n+i,s.v[3][0]=o?e-r:e+r,s.v[3][1]=n,s.i[0][0]=o?e-r*t:e+r*t,s.i[0][1]=n-i,s.i[1][0]=o?e+r:e-r,s.i[1][1]=n-i*t,s.i[2][0]=o?e+r*t:e-r*t,s.i[2][1]=n+i,s.i[3][0]=o?e-r:e+r,s.i[3][1]=n+i*t,s.o[0][0]=o?e+r*t:e-r*t,s.o[0][1]=n-i,s.o[1][0]=o?e+r:e-r,s.o[1][1]=n+i*t,s.o[2][0]=o?e-r*t:e+r*t,s.o[2][1]=n+i,s.o[3][0]=o?e-r:e+r,s.o[3][1]=n-i*t}},u([ft],e),e}(),h=function(){function t(t,e){this.v=yt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=dt.getProp(t,e.ir,0,0,this),this.is=dt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(t,e.pt,0,0,this),this.p=dt.getProp(t,e.p,1,0,this),this.r=dt.getProp(t,e.r,0,C,this),this.or=dt.getProp(t,e.or,0,0,this),this.os=dt.getProp(t,e.os,0,.01,this),this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,r,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,s=!0,a=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,p=2*Math.PI*a/(2*i),h=2*Math.PI*l/(2*i),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){n=s?c:u,r=s?p:h;var m=(e=s?a:l)*Math.cos(d),g=e*Math.sin(d),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*f,g-v*r*n*f,m+y*r*n*f,g+v*r*n*f,t,!0),s=!s,d+=o*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,r=this.or.v,i=this.os.v,o=2*Math.PI*r/(4*e),s=.5*-Math.PI,a=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(s),c=r*Math.sin(s),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*a,c-p*o*i*a,l+u*o*i*a,c+p*o*i*a,t,!0),s+=n*a}this.paths.length=0,this.paths[0]=this.v}},u([ft],t),t}(),d=function(){function t(t,e){this.v=yt.newElement(),this.v.c=!0,this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.r=dt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=k(n,r,this.r.v),o=i*(1-_);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+i,t+n,e-r+o,0,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-o,t+n,e+r-i,1,!0),0!==i?(this.v.setTripleAt(t+n-i,e+r,t+n-i,e+r,t+n-o,e+r,2,!0),this.v.setTripleAt(t-n+i,e+r,t-n+o,e+r,t-n+i,e+r,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-i,t-n,e+r-o,4,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+o,t-n,e-r+i,5,!0),this.v.setTripleAt(t-n+i,e-r,t-n+i,e-r,t-n+o,e-r,6,!0),this.v.setTripleAt(t+n-i,e-r,t+n-o,e-r,t+n-i,e-r,7,!0)):(this.v.setTripleAt(t-n,e+r,t-n+o,e+r,t-n,e+r,2),this.v.setTripleAt(t-n,e-r,t-n,e-r+o,t-n,e-r,3))):(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+o,t+n,e-r+i,0,!0),0!==i?(this.v.setTripleAt(t+n-i,e-r,t+n-i,e-r,t+n-o,e-r,1,!0),this.v.setTripleAt(t-n+i,e-r,t-n+o,e-r,t-n+i,e-r,2,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+i,t-n,e-r+o,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-o,t-n,e+r-i,4,!0),this.v.setTripleAt(t-n+i,e+r,t-n+i,e+r,t-n+o,e+r,5,!0),this.v.setTripleAt(t+n-i,e+r,t+n-o,e+r,t+n-i,e+r,6,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-i,t+n,e+r-o,7,!0)):(this.v.setTripleAt(t-n,e-r,t-n+o,e-r,t-n,e-r,1,!0),this.v.setTripleAt(t-n,e+r,t-n,e+r-o,t-n,e+r,2,!0),this.v.setTripleAt(t+n,e+r,t+n-o,e+r,t+n,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},u([ft],t),t}();function f(t,e,n){var r;return 3===n||4===n?r=(3===n?e.pt:e.ks).k.length?new c(t,e,n):new a(t,e,n):5===n?r=new d(t,e):6===n?r=new p(t,e):7===n&&(r=new h(t,e)),r.k&&t.addDynamicProperty(r),r}function m(){return a}function g(){return c}var y={};return y.getShapeProp=f,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),xt=function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function s(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function a(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function c(t,e){return this._t(1,e,t,1,0,0)}function u(t,e){return this.shear(n(t),n(e))}function p(r,i){var o=t(i),s=e(i);return this._t(o,s,0,0,-s,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(o,-s,0,0,s,o,0,0,0,0,1,0,0,0,0,1)}function h(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function f(t,e,n,r,i,o,s,a,l,c,u,p,h,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=o,this.props[6]=s,this.props[7]=a,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=p,this.props[12]=h,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function m(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function g(t,e,n,r,i,o,s,a,l,c,u,p,h,d,f,m){var g=this.props;if(1===t&&0===e&&0===n&&0===r&&0===i&&1===o&&0===s&&0===a&&0===l&&0===c&&1===u&&0===p)return g[12]=g[12]*t+g[15]*h,g[13]=g[13]*o+g[15]*d,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],w=g[3],x=g[4],k=g[5],S=g[6],C=g[7],_=g[8],$=g[9],E=g[10],P=g[11],T=g[12],A=g[13],j=g[14],O=g[15];return g[0]=y*t+v*i+b*l+w*h,g[1]=y*e+v*o+b*c+w*d,g[2]=y*n+v*s+b*u+w*f,g[3]=y*r+v*a+b*p+w*m,g[4]=x*t+k*i+S*l+C*h,g[5]=x*e+k*o+S*c+C*d,g[6]=x*n+k*s+S*u+C*f,g[7]=x*r+k*a+S*p+C*m,g[8]=_*t+$*i+E*l+P*h,g[9]=_*e+$*o+E*c+P*d,g[10]=_*n+$*s+E*u+P*f,g[11]=_*r+$*a+E*p+P*m,g[12]=T*t+A*i+j*l+O*h,g[13]=T*e+A*o+j*c+O*d,g[14]=T*n+A*s+j*u+O*f,g[15]=T*r+A*a+j*p+O*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function w(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function k(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function S(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function C(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,r=-this.props[4]/t,i=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new xt;return a.props[0]=e,a.props[1]=n,a.props[4]=r,a.props[5]=i,a.props[12]=o,a.props[13]=s,a}function $(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function E(t){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r[e]=$(t[e]);return r}function P(t,e,n){var r=d("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],o=this.props[1],s=this.props[4],a=this.props[5],l=this.props[12],c=this.props[13];r[0]=t[0]*i+t[1]*s+l,r[1]=t[0]*o+t[1]*a+c,r[2]=e[0]*i+e[1]*s+l,r[3]=e[0]*o+e[1]*a+c,r[4]=n[0]*i+n[1]*s+l,r[5]=n[0]*o+n[1]*a+c}return r}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function A(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function j(){for(var t=0,e=this.props,n="matrix3d(",i=1e4;t<16;)n+=r(e[t]*i)/i,n+=15===t?")":",",t+=1;return n}function O(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?r(t*e)/e:t}function M(){var t=this.props;return"matrix("+O(t[0])+","+O(t[1])+","+O(t[4])+","+O(t[5])+","+O(t[12])+","+O(t[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=l,this.skew=u,this.skewFromAxis=p,this.shear=c,this.scale=h,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=x,this.applyToX=k,this.applyToY=S,this.applyToZ=C,this.applyToPointArray=T,this.applyToTriplePoints=P,this.applyToPointStringified=A,this.toCSS=j,this.to2dCSS=M,this.clone=b,this.cloneFromProps=w,this.equals=v,this.inversePoints=E,this.inversePoint=$,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}();function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var St={};function Ct(t){a(t)}function _t(){ot.searchAnimations()}function $t(t){z(t)}function Et(t){H(t)}function Pt(t){return ot.loadAnimation(t)}function Tt(t){if("string"==typeof t)switch(t){case"high":q(200);break;default:case"medium":q(50);break;case"low":q(10)}else!isNaN(t)&&t>1&&q(t)}function At(){return"undefined"!=typeof navigator}function jt(t,e){"expressions"===t&&B(e)}function Ot(t){switch(t){case"propertyFactory":return dt;case"shapePropertyFactory":return wt;case"matrix":return xt;default:return null}}function Mt(){"complete"===document.readyState&&(clearInterval(Lt),_t())}function Dt(t){for(var e=It.split("&"),n=0;n<e.length;n+=1){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}St.play=ot.play,St.pause=ot.pause,St.setLocationHref=Ct,St.togglePause=ot.togglePause,St.setSpeed=ot.setSpeed,St.setDirection=ot.setDirection,St.stop=ot.stop,St.searchAnimations=_t,St.registerAnimation=ot.registerAnimation,St.loadAnimation=Pt,St.setSubframeRendering=$t,St.resize=ot.resize,St.goToAndStop=ot.goToAndStop,St.destroy=ot.destroy,St.setQuality=Tt,St.inBrowser=At,St.installPlugin=jt,St.freeze=ot.freeze,St.unfreeze=ot.unfreeze,St.setVolume=ot.setVolume,St.mute=ot.mute,St.unmute=ot.unmute,St.getRegisteredAnimations=ot.getRegisteredAnimations,St.useWebWorker=o,St.setIDPrefix=Et,St.__getFactory=Ot,St.version="5.10.2";var It="",Rt=document.getElementsByTagName("script"),Ft=Rt[Rt.length-1]||{src:""};It=Ft.src?Ft.src.replace(/^[^\?]+\??/,""):"",Dt("renderer");var Lt=setInterval(Mt,100);try{"object"!==kt(e)&&(window.bodymovin=St)}catch(Rn){}var Nt=function(){var t={},e={};function n(t,n){e[t]||(e[t]=n)}function r(t,n,r){return new e[t](n,r)}return t.registerModifier=n,t.getModifier=r,t}();function zt(){}function Vt(){}function Bt(){}zt.prototype.initModifierProperties=function(){},zt.prototype.addShapeToModifier=function(){},zt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:bt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},zt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},u([ft],zt),u([zt],Vt),Vt.prototype.initModifierProperties=function(t,e){this.s=dt.getProp(t,e.s,0,.01,this),this.e=dt.getProp(t,e.e,0,.01,this),this.o=dt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vt.prototype.addShapeToModifier=function(t){t.pathsData=[]},Vt.prototype.calculateShapeEdges=function(t,e,n,r,i){var o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var s,a,l=[],c=o.length;for(s=0;s<c;s+=1){var u,p;(a=o[s]).e*i<r||a.s*i>r+n||(u=a.s*i<=r?0:(a.s*i-r)/n,p=a.e*i>=r+n?1:(a.e*i-r)/n,l.push([u,p]))}return l.length||l.push([0,0]),l},Vt.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)ut.release(t[e]);return t.length=0,t},Vt.prototype.processShapes=function(t){var e,n,r,i;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var s=e;e=n,n=s}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,l,c,u,p,h=this.shapes.length,d=0;if(n===e)for(i=0;i<h;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(i=0;i<h;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<h;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),a=0;a<l;a+=1)u=ht.getSegmentsLength(r.shapes[a]),c.push(u),p+=u.totalLength;f.totalShapeLength=p,f.pathsData=c}d+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=e,b=n,w=0;for(i=h-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&h>1?(y=this.calculateShapeEdges(e,n,f.totalShapeLength,w,d),w+=f.totalShapeLength):y=[[v,b]],l=y.length,a=0;a<l;a+=1){v=y[a][0],b=y[a][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var x=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=x.pop();this.addPaths(x,m),x=this.addShapes(f,g[1],k)}else this.addPaths(x,m),x=this.addShapes(f,g[1]);this.addPaths(x,m)}}f.shape.paths=m}}},Vt.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e.addShape(t[n])},Vt.prototype.addSegment=function(t,e,n,r,i,o,s){i.setXYAt(e[0],e[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),s&&i.setXYAt(t[0],t[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},Vt.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),r&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},Vt.prototype.addShapes=function(t,e,n){var r,i,o,s,a,l,c,u,p=t.pathsData,h=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],g=!0;for(n?(a=n._length,u=n._length):(n=yt.newElement(),a=0,u=0),m.push(n),r=0;r<d;r+=1){for(l=p[r].lengths,n.c=h[r].c,o=h[r].c?l.length:l.length+1,i=1;i<o;i+=1)if(f+(s=l[i-1]).addedLength<e.s)f+=s.addedLength,n.c=!1;else{if(f>e.e){n.c=!1;break}e.s<=f&&e.e>=f+s.addedLength?(this.addSegment(h[r].v[i-1],h[r].o[i-1],h[r].i[i],h[r].v[i],n,a,g),g=!1):(c=ht.getNewSegment(h[r].v[i-1],h[r].v[i],h[r].o[i-1],h[r].i[i],(e.s-f)/s.addedLength,(e.e-f)/s.addedLength,l[i-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1),f+=s.addedLength,a+=1}if(h[r].c&&l.length){if(s=l[i-1],f<=e.e){var y=l[i-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(h[r].v[i-1],h[r].o[i-1],h[r].i[0],h[r].v[0],n,a,g),g=!1):(c=ht.getNewSegment(h[r].v[i-1],h[r].v[0],h[r].o[i-1],h[r].i[0],(e.s-f)/y,(e.e-f)/y,l[i-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1)}else n.c=!1;f+=s.addedLength,a+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>e.e)break;r<d-1&&(n=yt.newElement(),g=!0,m.push(n),a=0)}return m},u([zt],Bt),Bt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Bt.prototype.processPath=function(t,e){var n=e/100,r=[0,0],i=t._length,o=0;for(o=0;o<i;o+=1)r[0]+=t.v[o][0],r[1]+=t.v[o][1];r[0]/=i,r[1]/=i;var s,a,l,c,u,p,h=yt.newElement();for(h.c=t.c,o=0;o<i;o+=1)s=t.v[o][0]+(r[0]-t.v[o][0])*n,a=t.v[o][1]+(r[1]-t.v[o][1])*n,l=t.o[o][0]+(r[0]-t.o[o][0])*-n,c=t.o[o][1]+(r[1]-t.o[o][1])*-n,u=t.i[o][0]+(r[0]-t.i[o][0])*-n,p=t.i[o][1]+(r[1]-t.i[o][1])*-n,h.setTripleAt(s,a,l,c,u,p,o);return h},Bt.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Wt=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var o=this.px,s=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=s.getValueAtTime(s.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,s.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime))}else r=i=t;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function i(){}function o(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function s(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new xt,this.pre=new xt,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=dt.getProp(t,e.p.x,0,0,this),this.py=dt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=dt.getProp(t,e.p.z,0,0,this))):this.p=dt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=dt.getProp(t,e.rx,0,C,this),this.ry=dt.getProp(t,e.ry,0,C,this),this.rz=dt.getProp(t,e.rz,0,C,this),e.or.k[0].ti){var r,i=e.or.k.length;for(r=0;r<i;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=dt.getProp(t,e.or,1,C,this),this.or.sh=!0}else this.r=dt.getProp(t,e.r||{k:0},0,C,this);e.sk&&(this.sk=dt.getProp(t,e.sk,0,C,this),this.sa=dt.getProp(t,e.sa,0,C,this)),this.a=dt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=dt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function a(t,e,n){return new s(t,e,n)}return s.prototype={applyToMatrix:e,getValue:n,precalculateMatrix:r,autoOrient:i},u([ft],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=ft.prototype.addDynamicProperty,{getTransformProperty:a}}();function qt(){}function Ut(){}function Ht(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function Gt(t){return Math.abs(t)<=1e-5}function Kt(t,e,n){return t*(1-n)+e*n}function Yt(t,e,n){return[Kt(t[0],e[0],n),Kt(t[1],e[1],n)]}function Jt(t,e,n){if(0===t)return[];var r=e*e-4*t*n;if(r<0)return[];var i=-e/(2*t);if(0===r)return[i];var o=Math.sqrt(r)/(2*t);return[i-o,i+o]}function Xt(t,e,n,r){return[3*e-t-3*n+r,3*t-6*e+3*n,-3*t+3*e,t]}function Qt(t){return new Zt(t,t,t,t,!1)}function Zt(t,e,n,r,i){i&&ce(t,e)&&(e=Yt(t,r,1/3)),i&&ce(n,r)&&(n=Yt(t,r,2/3));var o=Xt(t[0],e[0],n[0],r[0]),s=Xt(t[1],e[1],n[1],r[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[t,e,n,r]}function te(t,e){var n=t.points[0][e],r=t.points[t.points.length-1][e];if(n>r){var i=r;r=n,n=i}for(var o=Jt(3*t.a[e],2*t.b[e],t.c[e]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var a=t.point(o[s])[e];a<n?n=a:a>r&&(r=a)}return{min:n,max:r}}function ee(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function ne(t){var e=t.bez.split(.5);return[ee(e[0],t.t1,t.t),ee(e[1],t.t,t.t2)]}function re(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function ie(t,e,n,r,i,o){if(re(t,e))if(n>=o||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)i.push([t.t,e.t]);else{var s=ne(t),a=ne(e);ie(s[0],a[0],n+1,r,i,o),ie(s[0],a[1],n+1,r,i,o),ie(s[1],a[0],n+1,r,i,o),ie(s[1],a[1],n+1,r,i,o)}}function oe(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function se(t,e,n,r){var i=[t[0],t[1],1],o=[e[0],e[1],1],s=[n[0],n[1],1],a=[r[0],r[1],1],l=oe(oe(i,o),oe(s,a));return Gt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function ae(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function le(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ce(t,e){return Ht(t[0],e[0])&&Ht(t[1],e[1])}function ue(){}function pe(t,e,n,r,i,o,s){var a=n-Math.PI/2,l=n+Math.PI/2,c=e[0]+Math.cos(n)*r*i,u=e[1]-Math.sin(n)*r*i;t.setTripleAt(c,u,c+Math.cos(a)*o,u-Math.sin(a)*o,c+Math.cos(l)*s,u-Math.sin(l)*s,t.length())}function he(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function de(t,e){var n=0===e?t.length()-1:e-1,r=(e+1)%t.length(),i=he(t.v[n],t.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function fe(t,e,n,r,i,o,s){var a=de(e,n),l=e.v[n%e._length],c=e.v[0===n?e._length-1:n-1],u=e.v[(n+1)%e._length],p=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,h=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;pe(t,e.v[n%e._length],a,s,r,h/(2*(i+1)),p/(2*(i+1)))}function me(t,e,n,r,i,o){for(var s=0;s<r;s+=1){var a=(s+1)/(r+1),l=2===i?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(a);pe(t,e.point(a),c,o,n,l/(2*(r+1)),l/(2*(r+1))),o=-o}return o}function ge(t,e,n){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[ae(t,r,n),ae(e,r,n)]}function ye(t,e){var n,r,i,o,s,a,l;n=(l=ge(t.points[0],t.points[1],e))[0],r=l[1],i=(l=ge(t.points[1],t.points[2],e))[0],o=l[1],s=(l=ge(t.points[2],t.points[3],e))[0],a=l[1];var c=se(n,r,i,o);null===c&&(c=r);var u=se(s,a,i,o);return null===u&&(u=s),new Zt(n,c,u,a)}function ve(t,e,n,r,i){var o=e.points[3],s=n.points[0];if(3===r)return o;if(ce(o,s))return o;if(2===r){var a=-e.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=se(o,ae(o,a+Math.PI/2,100),s,ae(s,a+Math.PI/2,100)),u=c?le(c,o):le(o,s)/2,p=ae(o,a,2*u*_);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=ae(s,l,2*u*_),t.setTripleAt(s[0],s[1],s[0],s[1],p[0],p[1],t.length()),s}var h=se(ce(o,e.points[2])?e.points[0]:e.points[2],o,s,ce(s,n.points[1])?n.points[3]:n.points[1]);return h&&le(h,o)<i?(t.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],t.length()),h):o}function be(t,e){var n=t.intersections(e);return n.length&&Ht(n[0][0],1)&&n.shift(),n.length?n[0]:null}function we(t,e){var n=t.slice(),r=e.slice(),i=be(t[t.length-1],e[0]);return i&&(n[t.length-1]=t[t.length-1].split(i[0])[0],r[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=be(t[0],e[e.length-1]))?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[n,r]}function xe(t){for(var e,n=1;n<t.length;n+=1)e=we(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=we(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function ke(t,e){var n,r,i,o,s=t.inflectionPoints();if(0===s.length)return[ye(t,e)];if(1===s.length||Ht(s[1],1))return n=(i=t.split(s[0]))[0],r=i[1],[ye(n,e),ye(r,e)];n=(i=t.split(s[0]))[0];var a=(s[1]-s[0])/(1-s[0]);return o=(i=i[1].split(a))[0],r=i[1],[ye(n,e),ye(o,e),ye(r,e)]}function Se(){}function Ce(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",i=e.length,o=0;o<i;o+=1)switch(e[o].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:t.fWeight||n}}u([zt],qt),qt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=dt.getProp(t,e.c,0,null,this),this.o=dt.getProp(t,e.o,0,null,this),this.tr=Wt.getTransformProperty(t,e.tr,this),this.so=dt.getProp(t,e.tr.so,0,.01,this),this.eo=dt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new xt,this.rMatrix=new xt,this.sMatrix=new xt,this.tMatrix=new xt,this.matrix=new xt},qt.prototype.applyTransforms=function(t,e,n,r,i,o){var s=o?-1:1,a=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);t.translate(r.p.v[0]*s*i,r.p.v[1]*s*i,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*s*i),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/a:a,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},qt.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},qt.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},qt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},qt.prototype.changeGroupRender=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},qt.prototype.processShapes=function(t){var e,n,r,i,o,s=!1;if(this._mdf||t){var a,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(o=0,r=0;r<=this._groups.length-1;r+=1){if(a=o<l,this._groups[r]._render=a,this.changeGroupRender(this._groups[r].it,a),!a){var u=this.elemsData[r].it,p=u[u.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}o+=1}this._currentCopies=l;var h=this.o.v,d=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,w=0;if(h>0){for(;w<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),w+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),w+=d)}else if(h<0){for(;w>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),w-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),w-=d)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==w){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];w+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,r+=i;return s},qt.prototype.addShape=function(){},u([zt],Ut),Ut.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=dt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ut.prototype.processPath=function(t,e){var n,r=yt.newElement();r.c=t.c;var i,o,s,a,l,c,u,p,h,d,f,m,g=t._length,y=0;for(n=0;n<g;n+=1)i=t.v[n],s=t.o[n],o=t.i[n],i[0]===s[0]&&i[1]===s[1]&&i[0]===o[0]&&i[1]===o[1]?0!==n&&n!==g-1||t.c?(a=0===n?t.v[g-1]:t.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(l/2,e)/l:0,u=f=i[0]+(a[0]-i[0])*c,p=m=i[1]-(i[1]-a[1])*c,h=u-(u-i[0])*_,d=p-(p-i[1])*_,r.setTripleAt(u,p,h,d,f,m,y),y+=1,a=n===g-1?t.v[0]:t.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(l/2,e)/l:0,u=h=i[0]+(a[0]-i[0])*c,p=d=i[1]+(a[1]-i[1])*c,f=u-(u-i[0])*_,m=p-(p-i[1])*_,r.setTripleAt(u,p,h,d,f,m,y),y+=1):(r.setTripleAt(i[0],i[1],s[0],s[1],o[0],o[1],y),y+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],y),y+=1);return r},Ut.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Zt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Zt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Zt.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Zt.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Zt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Gt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var r=Math.sqrt(n);return Gt(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter((function(t){return t>0&&t<1}))},Zt.prototype.split=function(t){if(t<=0)return[Qt(this.points[0]),this];if(t>=1)return[this,Qt(this.points[this.points.length-1])];var e=Yt(this.points[0],this.points[1],t),n=Yt(this.points[1],this.points[2],t),r=Yt(this.points[2],this.points[3],t),i=Yt(e,n,t),o=Yt(n,r,t),s=Yt(i,o,t);return[new Zt(this.points[0],e,i,s,!0),new Zt(s,o,r,this.points[3],!0)]},Zt.prototype.bounds=function(){return{x:te(this,0),y:te(this,1)}},Zt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Zt.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var r=[];return ie(ee(this,0,1),ee(t,0,1),0,e,r,n),r},Zt.shapeSegment=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[e],t.o[e],t.i[n],t.v[n],!0)},Zt.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[n],t.i[n],t.o[e],t.v[e],!0)},u([zt],ue),ue.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=dt.getProp(t,e.s,0,null,this),this.frequency=dt.getProp(t,e.r,0,null,this),this.pointsType=dt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ue.prototype.processPath=function(t,e,n,r){var i=t._length,o=yt.newElement();if(o.c=t.c,t.c||(i-=1),0===i)return o;var s=-1,a=Zt.shapeSegment(t,0);fe(o,t,0,e,n,r,s);for(var l=0;l<i;l+=1)s=me(o,a,e,n,r,-s),a=l!==i-1||t.c?Zt.shapeSegment(t,(l+1)%i):null,fe(o,t,l+1,e,n,r,s);return o},ue.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},u([zt],Se),Se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this.miterLimit=dt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},Se.prototype.processPath=function(t,e,n,r){var i=yt.newElement();i.c=t.c;var o,s,a,l=t.length();t.c||(l-=1);var c=[];for(o=0;o<l;o+=1)a=Zt.shapeSegment(t,o),c.push(ke(a,e));if(!t.c)for(o=l-1;o>=0;o-=1)a=Zt.shapeSegmentInverted(t,o),c.push(ke(a,e));c=xe(c);var u=null,p=null;for(o=0;o<c.length;o+=1){var h=c[o];for(p&&(u=ve(i,p,h[0],n,r)),p=h[h.length-1],s=0;s<h.length;s+=1)a=h[s],u&&ce(a.points[0],u)?i.setXYAt(a.points[1][0],a.points[1][1],"o",i.length()-1):i.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],i.length()),i.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],i.length()),u=a.points[3]}return c.length&&ve(i,p,c[0][0],n,r),i},Se.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l,u,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var _e=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function o(t){var e,n=t.split(","),r=n.length,i=[];for(e=0;e<r;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&i.push(n[e]);return i.join(",")}function s(t,e){var n=c("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var r=c("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=o(t)+", "+e,{node:r,w:i,parent:n}}function a(){var e,n,r,i=this.fonts.length,o=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(n=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,n.offsetWidth!==r?(o-=1,this.fonts[e].loaded=!0):(n=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,n.offsetWidth!==r&&(o-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==o&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(t,e){var n,r=document.body&&e?"svg":"canvas",i=Ce(t);if("svg"===r){var o=G("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),n=o}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+t.fFamily,n=s}function a(t){return"svg"===r?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}return{measureText:a}}function u(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=l(t),t.cache={}})),void(this.fonts=t.list);var n,r=t.list,i=r.length,o=i;for(n=0;n<i;n+=1){var a,u,p=!0;if(r[n].loaded=!1,r[n].monoCase=s(r[n].fFamily,"monospace"),r[n].sansCase=s(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(p=!1),p){var h=c("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",e.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<a.length;u+=1)-1!==a[u].href.indexOf(r[n].fPath)&&(p=!1);if(p){var d=c("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.type="text/css",d.rel="stylesheet",d.href=r[n].fPath,document.body.appendChild(d)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<a.length;u+=1)r[n].fPath===a[u].src&&(p=!1);if(p){var f=c("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[n].fPath),e.appendChild(f)}}}else r[n].loaded=!0,o-=1;r[n].helper=l(r[n],e),r[n].cache={},this.fonts.push(r[n])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function p(t){if(t){var e;this.chars||(this.chars=[]);var n,r,i=t.length,o=this.chars.length;for(e=0;e<i;e+=1){for(n=0,r=!1;n<o;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(r=!0),n+=1;r||(this.chars.push(t[e]),o+=1)}}}function h(t,n,r){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0),e}function d(t,e,n){var r=this.getFontByName(e),i=t.charCodeAt(0);if(!r.cache[i+1]){var o=r.helper;if(" "===t){var s=o.measureText("|"+t+"|"),a=o.measureText("||");r.cache[i+1]=(s-a)/100}else r.cache[i+1]=o.measureText(t)/100}return r.cache[i+1]*n}function f(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function m(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)}function g(t,e){return e?t===i[0]&&e===i[1]:t===i[1]}function y(t){return-1!==n.indexOf(t)}function v(){this.isLoaded=!0}var b=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};b.isModifier=m,b.isZeroWidthJoiner=g,b.isCombinedCharacter=y;var w={addChars:p,addFonts:u,getCharData:h,getFontByName:f,measureText:d,checkLoadedFonts:a,setIsLoaded:v};return b.prototype=w,b}();function $e(){}$e.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ee,Pe=(Ee={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Ee[t]||""});function Te(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ae(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function je(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function Oe(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function Me(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function De(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ie(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Re(){this.p={}}function Fe(t,e){var n,r=t.ef||[];this.effectElements=[];var i,o=r.length;for(n=0;n<o;n+=1)i=new Le(r[n],e),this.effectElements.push(i)}function Le(t,e){this.init(t,e)}function Ne(){}function ze(){}function Ve(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function Be(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function We(){}function qe(){}function Ue(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,o=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=f(s),this.solidPath="";var a,c,u,p,h,d,m=this.masksProperties,g=0,y=[],v=D(),b="clipPath",w="clip-path";for(r=0;r<s;r+=1)if(("a"!==m[r].mode&&"n"!==m[r].mode||m[r].inv||100!==m[r].o.k||m[r].o.x)&&(b="mask",w="mask"),"s"!==m[r].mode&&"i"!==m[r].mode||0!==g?u=null:((u=G("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),y.push(u)),i=G("path"),"n"===m[r].mode)this.viewData[r]={op:dt.getProp(this.element,m[r].o,0,.01,this.element),prop:wt.getShapeProp(this.element,m[r],3),elem:i,lastPath:""},o.appendChild(i);else{var x;if(g+=1,i.setAttribute("fill","s"===m[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==m[r].x.k?(b="mask",w="mask",d=dt.getProp(this.element,m[r].x,0,null,this.element),x=D(),(p=G("filter")).setAttribute("id",x),(h=G("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),p.appendChild(h),o.appendChild(p),i.setAttribute("stroke","s"===m[r].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[r]={elem:i,x:d,expan:h,lastPath:"",lastOperator:"",filterId:x,lastRadius:0},"i"===m[r].mode){c=y.length;var k=G("g");for(a=0;a<c;a+=1)k.appendChild(y[a]);var S=G("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",v+"_"+g),S.appendChild(i),o.appendChild(S),k.setAttribute("mask","url("+l()+"#"+v+"_"+g+")"),y.length=0,y.push(k)}else y.push(i);m[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:dt.getProp(this.element,m[r].o,0,.01,this.element),prop:wt.getShapeProp(this.element,m[r],3),invRect:u},this.viewData[r].prop.k||this.drawPath(m[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=G(b),s=y.length,r=0;r<s;r+=1)this.maskElement.appendChild(y[r]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(w,"url("+l()+"#"+v+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}u([ft],Le),Le.prototype.getValue=Le.prototype.iterateDynamicProperties,Le.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,i=this.data.ef.length,o=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,o[n].ty){case 0:r=new Te(o[n],e,this);break;case 1:r=new Ae(o[n],e,this);break;case 2:r=new je(o[n],e,this);break;case 3:r=new Oe(o[n],e,this);break;case 4:case 7:r=new Ie(o[n],e,this);break;case 10:r=new Me(o[n],e,this);break;case 11:r=new De(o[n],e,this);break;case 5:r=new Fe(o[n],e);break;default:r=new Re(o[n])}r&&this.effectElements.push(r)}},Ne.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){},setBlendMode:function(){var t=Pe(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=D(),this.data.sr||(this.data.sr=1),this.effectsManager=new Fe(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},ze.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ve.prototype.prepareFrame=function(){},u([$e,Ne,ze],Ve),Ve.prototype.getBaseElement=function(){return null},Ve.prototype.renderFrame=function(){},Ve.prototype.destroy=function(){},Ve.prototype.initExpressions=function(){},Ve.prototype.getFootageData=function(){return this.footageData},Be.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},u([$e,Ne,ze],Be),Be.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Be.prototype.show=function(){},Be.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Be.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Be.prototype.resume=function(){this._canPlay=!0},Be.prototype.setRate=function(t){this.audio.rate(t)},Be.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Be.prototype.getBaseElement=function(){return null},Be.prototype.destroy=function(){},Be.prototype.sourceRectAtTime=function(){},Be.prototype.initExpressions=function(){},We.prototype.checkLayers=function(t){var e,n,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},We.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},We.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},We.prototype.createAudio=function(t){return new Be(t,this.globalData,this)},We.prototype.createFootage=function(t){return new Ve(t,this.globalData,this)},We.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},We.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,r=t.length,i=this.layers.length;for(e=0;e<r;e+=1)for(n=0;n<i;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},We.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},We.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},We.prototype.buildElementParenting=function(t,e,n){for(var r=this.elements,i=this.layers,o=0,s=i.length;o<s;)i[o].ind==e&&(r[o]&&!0!==r[o]?(n.push(r[o]),r[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(t,i[o].parent,n):t.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(t))),o+=1},We.prototype.addPendingElement=function(t){this.pendingElements.push(t)},We.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},We.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},We.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"==typeof n)e=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},We.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new _e,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},qe.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Wt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new xt},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<r;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,s=e.length;for(n=0;n<s;n+=1)o=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new xt},Ue.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ue.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+l()+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ue.prototype.getMaskelement=function(){return this.maskElement},Ue.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ue.prototype.drawPath=function(t,e,n){var r,i,o=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,r=1;r<i;r+=1)o+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&i>1&&(o+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==o){var s="";n.elem&&(e.c&&(s=t.inv?this.solidPath+o:o),n.elem.setAttribute("d",s)),n.lastPath=o}},Ue.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var He,Ge,Ke=function(){var t={};function e(t,e){var n=G("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var t=G("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=n,t}(),Ye=(He={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(He.maskType=!1),/firefox/i.test(navigator.userAgent)&&(He.svgLumaHidden=!1),He),Je={},Xe="filter_result_";function Qe(t){var e,n,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,o=D(),s=Ke.createFilter(o,!0),a=0;for(this.filters=[],e=0;e<i;e+=1){n=null;var c=t.data.ef[e].ty;Je[c]&&(n=new(0,Je[c].effect)(s,t.effectsManager.effectElements[e],t,Xe+a,r),r=Xe+a,Je[c].countsAsEffect&&(a+=1)),n&&this.filters.push(n)}a&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+l()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function Ze(){}function tn(){}function en(){}function nn(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function rn(t,e){this.elem=t,this.pos=e}function on(){}Qe.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},Ze.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=G("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=G("clipPath"),r=G("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=D();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var o=G("g");o.setAttribute("clip-path","url("+l()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ue(this.data,this,this.globalData),this.renderableEffectsManager=new Qe(this)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,n,r,i,o=this.layerId+"_"+t;if(1===t||3===t){var s=G("mask");s.setAttribute("id",o),s.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(r),this.globalData.defs.appendChild(s),Ye.maskType||1!==t||(s.setAttribute("mask-type","luminance"),e=D(),n=Ke.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(Ke.createAlphaToLuminanceFilter()),(i=G("g")).appendChild(r),s.appendChild(i),i.setAttribute("filter","url("+l()+"#"+e+")"))}else if(2===t){var a=G("mask");a.setAttribute("id",o),a.setAttribute("mask-type","alpha");var c=G("g");a.appendChild(c),e=D(),n=Ke.createFilter(e);var u=G("feComponentTransfer");u.setAttribute("in","SourceGraphic"),n.appendChild(u);var p=G("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),u.appendChild(p),this.globalData.defs.appendChild(n);var h=G("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),c.setAttribute("filter","url("+l()+"#"+e+")"),c.appendChild(h),(r=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(r),Ye.maskType||(a.setAttribute("mask-type","luminance"),n.appendChild(Ke.createAlphaToLuminanceFilter()),i=G("g"),c.appendChild(h),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+t+")")}},tn.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ge={initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}},u([$e,p(Ge)],en),u([Ne,qe,Ze,tn,ze,en],nn),nn.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},nn.prototype.sourceRectAtTime=function(){return this.sourceRect},on.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,n=this.shapeModifiers.length;e<n;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,r=e.length;n<r;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===t)return void(n[r].pos=e);n.push(new rn(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var sn={1:"butt",2:"round",3:"square"},an={1:"miter",2:"round",3:"bevel"};function ln(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var r=0,i=t.length;r<i;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function cn(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=G("path"),this.msElem=null}function un(t,e,n,r){var i;this.elem=t,this.frameId=-1,this.dataProps=f(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=d("float32",e.length?e.length-1:0),this.dashoffset=d("float32",1),this.initDynamicPropertyContainer(r);var o,s=e.length||0;for(i=0;i<s;i+=1)o=dt.getProp(t,e[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:e[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function pn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.w=dt.getProp(t,e.w,0,null,this),this.d=new un(t,e.d||{},"svg",this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function hn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n}function dn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function fn(t,e,n){this.data=e,this.c=d("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=d("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=dt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function mn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function gn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(t,e.w,0,null,this),this.d=new un(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function yn(){this.it=[],this.prevViewData=[],this.gr=G("g")}function vn(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ln.prototype.setAsAnimated=function(){this._isAnimated=!0},cn.prototype.reset=function(){this.d="",this._mdf=!1},un.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},u([ft],un),u([ft],pn),u([ft],hn),u([ft],dn),fn.prototype.comparePoints=function(t,e){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},fn.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},fn.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,r,i=4*this.data.p;for(e=0;e<i;e+=1)n=e%4==0?100:255,r=Math.round(this.prop.v[e]*n),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)n=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},u([ft],fn),mn.prototype.initGradientData=function(t,e,n){this.o=dt.getProp(t,e.o,0,.01,this),this.s=dt.getProp(t,e.s,1,null,this),this.e=dt.getProp(t,e.e,1,null,this),this.h=dt.getProp(t,e.h||{k:0},0,.01,this),this.a=dt.getProp(t,e.a||{k:0},0,C,this),this.g=new fn(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},mn.prototype.setGradientData=function(t,e){var n=D(),r=G(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,o,s,a=[];for(s=4*e.g.p,o=0;o<s;o+=4)i=G("stop"),r.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=r,this.cst=a},mn.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=G("mask"),s=G("path");o.appendChild(s);var a=D(),c=D();o.setAttribute("id",c);var u=G(1===t.t?"linearGradient":"radialGradient");u.setAttribute("id",a),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(r=4*t.g.p;r<i;r+=2)(n=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),p.push(n);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+a+")"),"gs"===t.ty&&(s.setAttribute("stroke-linecap",sn[t.lc||2]),s.setAttribute("stroke-linejoin",an[t.lj||2]),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),this.of=u,this.ms=o,this.ost=p,this.maskId=c,e.msElem=s}},u([ft],mn),u([mn,ft],gn);var bn=function(t,e,n,r){if(0===e)return"";var i,o=t.o,s=t.i,a=t.v,l=" M"+r.applyToPointStringified(a[0][0],a[0][1]);for(i=1;i<e;i+=1)l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(s[i][0],s[i][1])+" "+r.applyToPointStringified(a[i][0],a[i][1]);return n&&e&&(l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+" "+r.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},wn=function(){var t=new xt,e=new xt;function n(t){switch(t.ty){case"fl":return s;case"gf":return l;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return o;case"tr":return r;case"no":return i;default:return null}}function r(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function o(n,r,i){var o,s,a,l,c,u,p,h,d,f,m,g=r.styles.length,y=r.lvl;for(u=0;u<g;u+=1){if(l=r.sh._mdf||i,r.styles[u].lvl<y){for(h=e.reset(),f=y-r.styles[u].lvl,m=r.transformers.length-1;!l&&f>0;)l=r.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=y-r.styles[u].lvl,m=r.transformers.length-1;f>0;)d=r.transformers[m].mProps.v.props,h.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),f-=1,m-=1}else h=t;if(s=(p=r.sh.paths)._length,l){for(a="",o=0;o<s;o+=1)(c=p.shapes[o])&&c._length&&(a+=bn(c,c._length,c.c,h));r.caches[u]=a}else a=r.caches[u];r.styles[u].d+=!0===n.hd?"":a,r.styles[u]._mdf=l||r.styles[u]._mdf}}function s(t,e,n){var r=e.style;(e.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+x(e.c.v[0])+","+x(e.c.v[1])+","+x(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,n){l(t,e,n),c(t,e,n)}function l(t,e,n){var r,i,o,s,a,l=e.gf,c=e.g._hasOpacity,u=e.s.v,p=e.e.v;if(e.o._mdf||n){var h="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(h,e.o.v)}if(e.s._mdf||n){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,u[0]),l.setAttribute(f,u[1]),c&&!e.g._collapsable&&(e.of.setAttribute(d,u[0]),e.of.setAttribute(f,u[1]))}if(e.g._cmdf||n){r=e.cst;var m=e.g.c;for(o=r.length,i=0;i<o;i+=1)(s=r[i]).setAttribute("offset",m[4*i]+"%"),s.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(e.g._omdf||n)){var g=e.g.o;for(o=(r=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)s=r[i],e.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||n)&&(a=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)),l.setAttribute("r",a),c&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.e._mdf||e.h._mdf||e.a._mdf||n){a||(a=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)));var y=Math.atan2(p[1]-u[1],p[0]-u[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=a*v,w=Math.cos(y+e.a.v)*b+u[0],x=Math.sin(y+e.a.v)*b+u[1];l.setAttribute("fx",w),l.setAttribute("fy",x),c&&!e.g._collapsable&&(e.of.setAttribute("fx",w),e.of.setAttribute("fy",x))}}function c(t,e,n){var r=e.style,i=e.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+x(e.c.v[0])+","+x(e.c.v[1])+","+x(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:n}}();function xn(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function kn(t,e,n,r,i,o){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}function Sn(t,e){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}u([Ne,qe,Ze,on,tn,ze,en],xn),xn.prototype.initSecondaryElement=function(){},xn.prototype.identityMatrix=new xt,xn.prototype.buildExpressionInterface=function(){},xn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},xn.prototype.filterUniqueShapes=function(){var t,e,n,r,i=this.shapes.length,o=this.stylesList.length,s=[],a=!1;for(n=0;n<o;n+=1){for(r=this.stylesList[n],a=!1,s.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(s.push(e),a=e._isAnimated||a);s.length>1&&a&&this.setShapesAsAnimated(s)}},xn.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},xn.prototype.createStyleElement=function(t,e){var n,r=new cn(t,e),i=r.pElem;return"st"===t.ty?n=new pn(this,t,r):"fl"===t.ty?n=new hn(this,t,r):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?mn:gn)(this,t,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new dn(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",sn[t.lc||2]),i.setAttribute("stroke-linejoin",an[t.lj||2]),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=Pe(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,n),n},xn.prototype.createGroupElement=function(t){var e=new yn;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=Pe(t.bm)),e},xn.prototype.createTransformElement=function(t,e){var n=Wt.getTransformProperty(this,t,this),r=new vn(n,n.o,e);return this.addToAnimatedContents(t,r),r},xn.prototype.createShapeElement=function(t,e,n){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var i=new ln(e,n,wt.getShapeProp(this,t,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},xn.prototype.addToAnimatedContents=function(t,e){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:wn.createRenderFunction(t),element:e,data:t})},xn.prototype.setElementStyles=function(t){var e,n=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},xn.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},xn.prototype.searchShapes=function(t,e,n,r,i,o,s){var a,l,c,u,p,h,d=[].concat(o),f=t.length-1,m=[],g=[];for(a=f;a>=0;a-=1){if((h=this.searchProcessedElement(t[a]))?e[a]=n[h-1]:t[a]._render=s,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],i),t[a]._render&&e[a].style.pElem.parentNode!==r&&r.appendChild(e[a].style.pElem),m.push(e[a].style);else if("gr"===t[a].ty){if(h)for(c=e[a].it.length,l=0;l<c;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,i+1,d,s),t[a]._render&&e[a].gr.parentNode!==r&&r.appendChild(e[a].gr)}else"tr"===t[a].ty?(h||(e[a]=this.createTransformElement(t[a],r)),u=e[a].transform,d.push(u)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(h||(e[a]=this.createShapeElement(t[a],d,i)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(h?(p=e[a]).closed=!1:((p=Nt.getModifier(t[a].ty)).init(this,t[a]),e[a]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===t[a].ty&&(h?(p=e[a]).closed=!0:(p=Nt.getModifier(t[a].ty),e[a]=p,p.init(this,t,a,e),this.shapeModifiers.push(p),s=!1),g.push(p));this.addProcessedElement(t[a],a+1)}for(f=m.length,a=0;a<f;a+=1)m[a].closed=!0;for(f=g.length,a=0;a<f;a+=1)g[a].closed=!0},xn.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},xn.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},xn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},kn.prototype.update=function(t,e,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,s=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,s=!0),s},Sn.prototype.defaultBoxWidth=[0,0],Sn.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Sn.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Sn.prototype.searchProperty=function(){return this.searchKeyframes()},Sn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Sn.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},Sn.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)o=n!==this.keysIndex?this.effectsSequence[r](o,o.t):this.effectsSequence[r](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},Sn.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,r=t.length;n<=r-1&&!(n===r-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Sn.prototype.buildFinalText=function(t){for(var e,n,r=[],i=0,o=t.length,s=!1;i<o;)e=t.charCodeAt(i),_e.isCombinedCharacter(e)?r[r.length-1]+=t.charAt(i):e>=55296&&e<=56319?(n=t.charCodeAt(i+1))>=56320&&n<=57343?(s||_e.isModifier(e,n)?(r[r.length-1]+=t.substr(i,2),s=!1):r.push(t.substr(i,2)),i+=1):r.push(t.charAt(i)):e>56319?(n=t.charCodeAt(i+1),_e.isZeroWidthJoiner(e,n)?(s=!0,r[r.length-1]+=t.substr(i,2),i+=1):r.push(t.charAt(i))):_e.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(i),s=!0):r.push(t.charAt(i)),i+=1;return r},Sn.prototype.completeTextData=function(t){t.__complete=!0;var e,n,r,i,o,s,a,l=this.elem.globalData.fontManager,c=this.data,u=[],p=0,h=c.m.g,d=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(t.f),w=0,x=Ce(b);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var k,S=t.tr/1e3*t.finalSize;if(t.sz)for(var C,_,$=!0,E=t.sz[0],P=t.sz[1];$;){C=0,y=0,n=(_=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<n;e+=1)k=_[e].charCodeAt(0),r=!1," "===_[e]?T=e:13!==k&&3!==k||(y=0,r=!0,C+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(_[e],b.fStyle,b.fFamily),w=r?0:a.w*t.finalSize/100):w=l.measureText(_[e],t.f,t.finalSize),y+w>E&&" "!==_[e]?(-1===T?n+=1:e=T,C+=t.finalLineHeight||1.2*t.finalSize,_.splice(e,T===e?1:0,"\r"),T=-1,y=0):(y+=w,y+=S);C+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<C?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=_,n=t.finalText.length,$=!1)}y=-S,w=0;var A,j=0;for(e=0;e<n;e+=1)if(r=!1,13===(k=(A=t.finalText[e]).charCodeAt(0))||3===k?(j=0,g.push(y),v=y>v?y:v,y=-2*S,i="",r=!0,m+=1):i=A,l.chars?(a=l.getCharData(A,b.fStyle,l.getFontByName(t.f).fFamily),w=r?0:a.w*t.finalSize/100):w=l.measureText(i,t.f,t.finalSize)," "===A?j+=w+S:(y+=w+S+j,j=0),u.push({l:w,an:w,add:d,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==h){if(d+=w,""===i||" "===i||e===n-1){for(""!==i&&" "!==i||(d-=w);f<=e;)u[f].an=d,u[f].ind=p,u[f].extra=w,f+=1;p+=1,d=0}}else if(3==h){if(d+=w,""===i||e===n-1){for(""===i&&(d-=w);f<=e;)u[f].an=d,u[f].ind=p,u[f].extra=w,f+=1;d=0,p+=1}}else u[p].ind=p,u[p].extra=0,p+=1;if(t.l=u,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var O,M,D,I,R=c.a;s=R.length;var F=[];for(o=0;o<s;o+=1){for((O=R[o]).a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),I=0,D=O.s.b,e=0;e<n;e+=1)(M=u[e]).anIndexes[o]=I,(1==D&&""!==M.val||2==D&&""!==M.val&&" "!==M.val||3==D&&(M.n||" "==M.val||e==n-1)||4==D&&(M.n||e==n-1))&&(1===O.s.rn&&F.push(I),I+=1);c.a[o].s.totalChars=I;var L,N=-1;if(1===O.s.rn)for(e=0;e<n;e+=1)N!=(M=u[e]).anIndexes[o]&&(N=M.anIndexes[o],L=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[o]=L}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},Sn.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},Sn.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},Sn.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Sn.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Cn=function(){var t=Math.max,e=Math.min,n=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=dt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?dt.getProp(t,e.e,0,0,this):{v:100},this.o=dt.getProp(t,e.o||{k:0},0,0,this),this.xe=dt.getProp(t,e.xe||{k:0},0,0,this),this.ne=dt.getProp(t,e.ne||{k:0},0,0,this),this.sm=dt.getProp(t,e.sm||{k:100},0,0,this),this.a=dt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(t,e,n){return new r(t,e)}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,s=1,a=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:a=1+this.xe.v/100;var l=st.getBezierEasing(i,o,s,a).get,c=0,u=this.finalS,p=this.finalE,h=this.data.sh;if(2===h)c=l(c=p===u?r>=p?1:0:t(0,e(.5/(p-u)+(r-u)/(p-u),1)));else if(3===h)c=l(c=p===u?r>=p?0:1:1-t(0,e(.5/(p-u)+(r-u)/(p-u),1)));else if(4===h)p===u?c=0:(c=t(0,e(.5/(p-u)+(r-u)/(p-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===h){if(p===u)c=0;else{var d=p-u,f=-d/2+(r=e(t(0,r+.5-u),p-u)),m=d/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===h?(p===u?c=0:(r=e(t(0,r+.5-u),p-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(p-u)))/2),c=l(c)):(r>=n(u)&&(c=t(0,e(r-u<0?e(p,1)-(u-r):p-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,r=this.s.v/e+n,i=this.e.v/e+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},u([ft],r),{getTextSelectorProp:i}}();function _n(t,e,n){var r={propType:!1},i=dt.getProp,o=e.a;this.a={r:o.r?i(t,o.r,0,C,n):r,rx:o.rx?i(t,o.rx,0,C,n):r,ry:o.ry?i(t,o.ry,0,C,n):r,sk:o.sk?i(t,o.sk,0,C,n):r,sa:o.sa?i(t,o.sa,0,C,n):r,s:o.s?i(t,o.s,1,.01,n):r,a:o.a?i(t,o.a,1,0,n):r,o:o.o?i(t,o.o,0,.01,n):r,p:o.p?i(t,o.p,1,0,n):r,sw:o.sw?i(t,o.sw,0,0,n):r,sc:o.sc?i(t,o.sc,1,0,n):r,fc:o.fc?i(t,o.fc,1,0,n):r,fh:o.fh?i(t,o.fh,0,0,n):r,fs:o.fs?i(t,o.fs,0,.01,n):r,fb:o.fb?i(t,o.fb,0,.01,n):r,t:o.t?i(t,o.t,0,0,n):r},this.s=Cn.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function $n(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=f(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function En(){}$n.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,r=dt.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new _n(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},$n.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,s,a,l,c,u,p,h,d,f,m,g,y,v,b,w,x=this._moreOptions.alignment.v,k=this._animatorsData,S=this._textData,C=this.mHelper,_=this._renderType,$=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(w=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=w.v;for(this._pathData.r.v&&(T=T.reverse()),s={tLength:0,segments:[]},o=T._length-1,y=0,i=0;i<o;i+=1)P=ht.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),s.tLength+=P.segmentLength,s.segments.push(P),y+=P.segmentLength;i=o,w.v.c&&(P=ht.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),s.tLength+=P.segmentLength,s.segments.push(P),y+=P.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,a=this._pathData.f.v,h=0,p=1,c=0,u=!0,m=s.segments,a<0&&w.v.c)for(s.tLength<Math.abs(a)&&(a=-Math.abs(a)%s.tLength),p=(f=m[h=m.length-1].points).length-1;a<0;)a+=f[p].partialLength,(p-=1)<0&&(p=(f=m[h-=1].points).length-1);d=(f=m[h].points)[p-1],g=(l=f[p]).partialLength}o=E.length,n=0,r=0;var A,j,O,M,D,I=1.2*t.finalSize*.714,R=!0;O=k.length;var z,V,B,W,q,U,H,G,K,Y,J,X,Q=-1,Z=a,tt=h,et=p,nt=-1,rt="",it=this.defaultPropsArray;if(2===t.j||1===t.j){var ot=0,st=0,at=2===t.j?-.5:-1,lt=0,ct=!0;for(i=0;i<o;i+=1)if(E[i].n){for(ot&&(ot+=st);lt<i;)E[lt].animatorJustifyOffset=ot,lt+=1;ot=0,ct=!0}else{for(j=0;j<O;j+=1)(A=k[j].a).t.propType&&(ct&&2===t.j&&(st+=A.t.v*at),(D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?ot+=A.t.v*D[0]*at:ot+=A.t.v*D*at);ct=!1}for(ot&&(ot+=st);lt<i;)E[lt].animatorJustifyOffset=ot,lt+=1}for(i=0;i<o;i+=1){if(C.reset(),W=1,E[i].n)n=0,r+=t.yOffset,r+=R?1:0,a=Z,R=!1,this._hasMaskedPath&&(p=et,d=(f=m[h=tt].points)[p-1],g=(l=f[p]).partialLength,c=0),rt="",J="",K="",X="",it=this.defaultPropsArray;else{if(this._hasMaskedPath){if(nt!==E[i].line){switch(t.j){case 1:a+=y-t.lineWidths[E[i].line];break;case 2:a+=(y-t.lineWidths[E[i].line])/2}nt=E[i].line}Q!==E[i].ind&&(E[Q]&&(a+=E[Q].extra),a+=E[i].an/2,Q=E[i].ind),a+=x[0]*E[i].an*.005;var ut=0;for(j=0;j<O;j+=1)(A=k[j].a).p.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?ut+=A.p.v[0]*D[0]:ut+=A.p.v[0]*D),A.a.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?ut+=A.a.v[0]*D[0]:ut+=A.a.v[0]*D);for(u=!0,this._pathData.a.v&&(a=.5*E[0].an+(y-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Q/(o-1),a+=this._pathData.f.v);u;)c+g>=a+ut||!f?(v=(a+ut-c)/l.partialLength,V=d.point[0]+(l.point[0]-d.point[0])*v,B=d.point[1]+(l.point[1]-d.point[1])*v,C.translate(-x[0]*E[i].an*.005,-x[1]*I*.01),u=!1):f&&(c+=l.partialLength,(p+=1)>=f.length&&(p=0,m[h+=1]?f=m[h].points:w.v.c?(p=0,f=m[h=0].points):(c-=l.partialLength,f=null)),f&&(d=l,g=(l=f[p]).partialLength));z=E[i].an/2-E[i].add,C.translate(-z,0,0)}else z=E[i].an/2-E[i].add,C.translate(-z,0,0),C.translate(-x[0]*E[i].an*.005,-x[1]*I*.01,0);for(j=0;j<O;j+=1)(A=k[j].a).t.propType&&(D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?D.length?a+=A.t.v*D[0]:a+=A.t.v*D:D.length?n+=A.t.v*D[0]:n+=A.t.v*D));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(q=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),j=0;j<O;j+=1)(A=k[j].a).a.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?C.translate(-A.a.v[0]*D[0],-A.a.v[1]*D[1],A.a.v[2]*D[2]):C.translate(-A.a.v[0]*D,-A.a.v[1]*D,A.a.v[2]*D));for(j=0;j<O;j+=1)(A=k[j].a).s.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?C.scale(1+(A.s.v[0]-1)*D[0],1+(A.s.v[1]-1)*D[1],1):C.scale(1+(A.s.v[0]-1)*D,1+(A.s.v[1]-1)*D,1));for(j=0;j<O;j+=1){if(A=k[j].a,D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars),A.sk.propType&&(D.length?C.skewFromAxis(-A.sk.v*D[0],A.sa.v*D[1]):C.skewFromAxis(-A.sk.v*D,A.sa.v*D)),A.r.propType&&(D.length?C.rotateZ(-A.r.v*D[2]):C.rotateZ(-A.r.v*D)),A.ry.propType&&(D.length?C.rotateY(A.ry.v*D[1]):C.rotateY(A.ry.v*D)),A.rx.propType&&(D.length?C.rotateX(A.rx.v*D[0]):C.rotateX(A.rx.v*D)),A.o.propType&&(D.length?W+=(A.o.v*D[0]-W)*D[0]:W+=(A.o.v*D-W)*D),t.strokeWidthAnim&&A.sw.propType&&(D.length?U+=A.sw.v*D[0]:U+=A.sw.v*D),t.strokeColorAnim&&A.sc.propType)for(G=0;G<3;G+=1)D.length?q[G]+=(A.sc.v[G]-q[G])*D[0]:q[G]+=(A.sc.v[G]-q[G])*D;if(t.fillColorAnim&&t.fc){if(A.fc.propType)for(G=0;G<3;G+=1)D.length?H[G]+=(A.fc.v[G]-H[G])*D[0]:H[G]+=(A.fc.v[G]-H[G])*D;A.fh.propType&&(H=D.length?N(H,A.fh.v*D[0]):N(H,A.fh.v*D)),A.fs.propType&&(H=D.length?F(H,A.fs.v*D[0]):F(H,A.fs.v*D)),A.fb.propType&&(H=D.length?L(H,A.fb.v*D[0]):L(H,A.fb.v*D))}}for(j=0;j<O;j+=1)(A=k[j].a).p.propType&&(D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars),this._hasMaskedPath?D.length?C.translate(0,A.p.v[1]*D[0],-A.p.v[2]*D[1]):C.translate(0,A.p.v[1]*D,-A.p.v[2]*D):D.length?C.translate(A.p.v[0]*D[0],A.p.v[1]*D[1],-A.p.v[2]*D[2]):C.translate(A.p.v[0]*D,A.p.v[1]*D,-A.p.v[2]*D));if(t.strokeWidthAnim&&(K=U<0?0:U),t.strokeColorAnim&&(Y="rgb("+Math.round(255*q[0])+","+Math.round(255*q[1])+","+Math.round(255*q[2])+")"),t.fillColorAnim&&t.fc&&(J="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,x[1]*I*.01+r,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var pt=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(pt+=180),C.rotate(-pt*Math.PI/180)}C.translate(V,B,0),a-=x[0]*E[i].an*.005,E[i+1]&&Q!==E[i+1].ind&&(a+=E[i].an/2,a+=.001*t.tr*t.finalSize)}else{switch(C.translate(n,r,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line]),0,0);break;case 2:C.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line])/2,0,0)}C.translate(0,-t.ls),C.translate(z,0,0),C.translate(x[0]*E[i].an*.005,x[1]*I*.01,0),n+=E[i].l+.001*t.tr*t.finalSize}"html"===_?rt=C.toCSS():"svg"===_?rt=C.to2dCSS():it=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],X=W}$<=i?(M=new kn(X,K,Y,J,rt,it),this.renderedLetters.push(M),$+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[i],this.lettersChangedFlag=M.update(X,K,Y,J,rt,it)||this.lettersChangedFlag)}}},$n.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},$n.prototype.mHelper=new xt,$n.prototype.defaultPropsArray=[],u([ft],$n),En.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new Sn(this,t.t,this.dynamicProperties),this.textAnimator=new $n(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},En.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},En.prototype.createPathShape=function(t,e){var n,r,i=e.length,o="";for(n=0;n<i;n+=1)"sh"===e[n].ty&&(r=e[n].ks.k,o+=bn(r,r.i.length,!0,t));return o},En.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},En.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},En.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},En.prototype.applyTextPropertiesToMatrix=function(t,e,n,r,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(r,i,0)},En.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},En.prototype.emptyProp=new kn,En.prototype.destroy=function(){};var Pn={shapes:[]};function Tn(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function An(t,e,n){this.initElement(t,e,n)}function jn(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function On(){}function Mn(){}function Dn(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?f(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function In(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var n="";if(e&&e.title){var r=G("title"),i=D();r.setAttribute("id",i),r.textContent=e.title,this.svgElement.appendChild(r),n+=i}if(e&&e.description){var o=G("desc"),s=D();o.setAttribute("id",s),o.textContent=e.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=G("defs");this.svgElement.appendChild(a);var l=G("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return u([Ne,qe,Ze,tn,ze,en,En],Tn),Tn.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Tn.prototype.buildTextContents=function(t){for(var e=0,n=t.length,r=[],i="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(i),i=""):i+=t[e],e+=1;return r.push(i),r},Tn.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},Tn.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=f(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var s,a=n.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var c=this.mHelper,u="",p=this.data.singleShape,h=0,d=0,m=!0,g=.001*n.tr*n.finalSize;if(!p||l||n.sz){var y,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!p||0===t){if(s=v>t?this.textSpans[t].span:G(l?"g":"text"),v<=t){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=s,l){var b=G("g");s.appendChild(b),this.textSpans[t].childSpan=b}this.textSpans[t].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(c.reset(),p&&(a[t].n&&(h=-g,d+=n.yOffset,d+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,c,a[t].line,h,d),h+=a[t].l||0,h+=g),l){var w;if(1===(y=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)w=new Dn(y.data,this.globalData,this);else{var x=Pn;y.data&&y.data.shapes&&(x=this.buildShapeData(y.data,n.finalSize)),w=new xn(x,this.globalData,this)}if(this.textSpans[t].glyph){var k=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[t].glyph=w,w._debug=!0,w.prepareFrame(0),w.renderFrame(),this.textSpans[t].childSpan.appendChild(w.layerElement),1===y.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&s.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),s.textContent=a[t].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&s&&s.setAttribute("d",u)}else{var S=this.textContainer,C="start";switch(n.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}S.setAttribute("text-anchor",C),S.setAttribute("letter-spacing",g);var _=this.buildTextContents(n.finalText);for(e=_.length,d=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(s=this.textSpans[t].span||G("tspan")).textContent=_[t],s.setAttribute("x",0),s.setAttribute("y",d),s.style.display="inherit",S.appendChild(s),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=s,d+=n.finalLineHeight;this.layerElement.appendChild(S)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Tn.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},Tn.prototype.getValue=function(){var t,e,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},Tn.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,r,i,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n||(n=o[t],r=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},u([nn],An),An.prototype.createContent=function(){var t=G("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},jn.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},jn.prototype.renderFrame=function(){},jn.prototype.getBaseElement=function(){return null},jn.prototype.destroy=function(){},jn.prototype.sourceRectAtTime=function(){},jn.prototype.hide=function(){},u([Ne,qe,tn,ze],jn),u([We],On),On.prototype.createNull=function(t){return new jn(t,this.globalData,this)},On.prototype.createShape=function(t){return new xn(t,this.globalData,this)},On.prototype.createText=function(t){return new Tn(t,this.globalData,this)},On.prototype.createImage=function(t){return new nn(t,this.globalData,this)},On.prototype.createSolid=function(t){return new An(t,this.globalData,this)},On.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=G("clipPath"),r=G("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=D();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")"),e.appendChild(n),this.layers=t.layers,this.elements=f(t.layers.length)},On.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},On.prototype.updateContainerSize=function(){},On.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},On.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,W()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=e[r].getMatte(this.layers[t].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},On.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(i);break}e+=1}}},On.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},On.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var r,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},On.prototype.hide=function(){this.layerElement.style.display="none"},On.prototype.show=function(){this.layerElement.style.display="block"},u([Ne,qe,tn,ze,en],Mn),Mn.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Mn.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Mn.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Mn.prototype.setElements=function(t){this.elements=t},Mn.prototype.getElements=function(){return this.elements},Mn.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Mn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},u([On,Mn,Ze],Dn),Dn.prototype.createComp=function(t){return new Dn(t,this.globalData,this)},u([On],In),In.prototype.createComp=function(t){return new Dn(t,this.globalData,this)},et("svg",In),Nt.registerModifier("tm",Vt),Nt.registerModifier("pb",Bt),Nt.registerModifier("rp",qt),Nt.registerModifier("rd",Ut),Nt.registerModifier("zz",ue),Nt.registerModifier("op",Se),St}())}(i,i.exports);var o=i.exports;function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],f=function(t,n){var i=t.animationData,s=t.loop,l=t.autoplay,u=t.initialSegment,h=t.onComplete,f=t.onLoopComplete,m=t.onEnterFrame,g=t.onSegmentStart,y=t.onConfigReady,v=t.onDataReady,b=t.onDataFailed,w=t.onLoadedImages,x=t.onDOMLoaded,k=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var S=c(t,d),C=p(e.useState(!1),2),_=C[0],$=C[1],E=e.useRef(),P=e.useRef(null);return e.useEffect((function(){var e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P.current){null===(e=E.current)||void 0===e||e.destroy();var r=a(a(a({},t),n),{},{container:P.current});return E.current=o.loadAnimation(r),$(!!E.current),function(){var t;null===(t=E.current)||void 0===t||t.destroy(),E.current=void 0}}}();return function(){return null==e?void 0:e()}}),[i,s]),e.useEffect((function(){E.current&&(E.current.autoplay=!!l)}),[l]),e.useEffect((function(){E.current&&(u?Array.isArray(u)&&u.length&&((E.current.currentRawFrame<u[0]||E.current.currentRawFrame>u[1])&&(E.current.currentRawFrame=u[0]),E.current.setSegment(u[0],u[1])):E.current.resetSegments(!0))}),[u]),e.useEffect((function(){var t=[{name:"complete",handler:h},{name:"loopComplete",handler:f},{name:"enterFrame",handler:m},{name:"segmentStart",handler:g},{name:"config_ready",handler:y},{name:"data_ready",handler:v},{name:"data_failed",handler:b},{name:"loaded_images",handler:w},{name:"DOMLoaded",handler:x},{name:"destroy",handler:k}].filter((function(t){return null!=t.handler}));if(t.length){var e=t.map((function(t){var e;return null===(e=E.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=E.current)||void 0===e||e.removeEventListener(t.name,t.handler)}}));return function(){e.forEach((function(t){return t()}))}}}),[h,f,m,g,y,v,b,w,x,k]),{View:r.default.createElement("div",a({style:n,ref:P},S)),play:function(){var t;null===(t=E.current)||void 0===t||t.play()},stop:function(){var t;null===(t=E.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=E.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=E.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var n;null===(n=E.current)||void 0===n||n.goToAndStop(t,e)},goToAndPlay:function(t,e){var n;null===(n=E.current)||void 0===n||n.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=E.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var n;null===(n=E.current)||void 0===n||n.playSegments(t,e)},setSubframe:function(t){var e;null===(e=E.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=E.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=E.current)||void 0===t||t.destroy(),E.current=void 0},animationContainerRef:P,animationLoaded:_,animationItem:E.current}};var m=function(t){var n=t.wrapperRef,r=t.animationItem,i=t.mode,o=t.actions;e.useEffect((function(){var t,e,s=n.current;if(s&&r&&o.length){r.stop();switch(i){case"scroll":return t=null,e=function(){var e=function(t){var e=t.getBoundingClientRect(),n=e.top,r=e.height;return(window.innerHeight-n)/(window.innerHeight+r)}(s),n=o.find((function(t){var n=t.visibility;return n&&e>=n[0]&&e<=n[1]}));if(n){if("seek"===n.type&&n.visibility&&2===n.frames.length){var i=n.frames[0]+Math.ceil((e-n.visibility[0])/(n.visibility[1]-n.visibility[0])*n.frames[1]);
|
|
288
|
+
//! goToAndStop must be relative to the start of the current segment
|
|
289
|
+
r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||r.isPaused)&&(r.playSegments(n.frames,!0),t=n.frames),"play"===n.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===n.type&&r.goToAndStop(n.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)};case"cursor":return function(){var t=function(t,e){var n=t,i=e;if(-1!==n&&-1!==i){var a=function(t,e,n){var r=t.getBoundingClientRect(),i=r.top;return{x:(e-r.left)/r.width,y:(n-i)/r.height}}(s,n,i);n=a.x,i=a.y}var l=o.find((function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?n>=e.x[0]&&n<=e.x[1]&&i>=e.y[0]&&i<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&n===e.x&&i===e.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),u=(i-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+u)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},e=function(e){t(e.clientX,e.clientY)},n=function(){t(-1,-1)};return s.addEventListener("mousemove",e),s.addEventListener("mouseout",n),function(){s.removeEventListener("mousemove",e),s.removeEventListener("mouseout",n)}}()}}}),[i,r])},g=function(t){var e=t.actions,n=t.mode,r=t.lottieObj,i=r.animationItem,o=r.View,s=r.animationContainerRef;return m({actions:e,animationItem:i,mode:n,wrapperRef:s}),o},y=["style","interactivity"];t.LottiePlayer=o,t.default=function(t){var n,r,i,o=t.style,s=t.interactivity,a=c(t,y),l=f(a,o),u=l.View,p=l.play,h=l.stop,d=l.pause,m=l.setSpeed,v=l.goToAndStop,b=l.goToAndPlay,w=l.setDirection,x=l.playSegments,k=l.setSubframe,S=l.getDuration,C=l.destroy,_=l.animationContainerRef,$=l.animationLoaded,E=l.animationItem;return e.useEffect((function(){t.lottieRef&&(t.lottieRef.current={play:p,stop:h,pause:d,setSpeed:m,goToAndPlay:b,goToAndStop:v,setDirection:w,playSegments:x,setSubframe:k,getDuration:S,destroy:C,animationContainerRef:_,animationLoaded:$,animationItem:E})}),[null===(n=t.lottieRef)||void 0===n?void 0:n.current]),g({lottieObj:{View:u,play:p,stop:h,pause:d,setSpeed:m,goToAndStop:v,goToAndPlay:b,setDirection:w,playSegments:x,setSubframe:k,getDuration:S,destroy:C,animationContainerRef:_,animationLoaded:$,animationItem:E},actions:null!==(r=null==s?void 0:s.actions)&&void 0!==r?r:[],mode:null!==(i=null==s?void 0:s.mode)&&void 0!==i?i:"scroll"})},t.useLottie=f,t.useLottieInteractivity=g,Object.defineProperty(t,"__esModule",{value:!0})}(Wl,e);const ql=p(Wl),Ul=t.styled(ql).attrs((({autoplay:t=!0})=>({autoplay:t,className:"comp-lottie"})))`
|
|
290
|
+
${({$size:t=16})=>`\n height: ${t}px;\n width: ${t}px;\n `}
|
|
291
|
+
`,Hl=t.styled.button`
|
|
292
|
+
align-items: center;
|
|
293
|
+
background-color: transparent;
|
|
294
|
+
border: unset;
|
|
295
|
+
cursor: pointer;
|
|
296
|
+
display: flex;
|
|
297
|
+
justify-content: center;
|
|
298
|
+
gap: 5px;
|
|
299
|
+
padding: 0;
|
|
300
|
+
|
|
301
|
+
&:hover p {
|
|
302
|
+
color: ${v.palette.primary[200]};
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&:hover span {
|
|
306
|
+
color: ${v.palette.primary[200]};
|
|
307
|
+
}
|
|
308
|
+
`,Gl=t.styled.div`
|
|
309
|
+
${({theme:t,$variant:e})=>`\n background: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n border-left: 4px solid ${t.palette[e][500]};\n box-shadow: ${t.shadows.md};\n position: relative;\n display: flex;\n width: 360px;\n padding: ${t.spacing[1.25]} ${t.spacing[1]} ${t.spacing[1.25]} ${t.spacing[.75]};\n gap: ${t.spacing[.5]};\n\n button {\n position: absolute;\n top: 20px;\n right: 16px;\n }\n `}
|
|
310
|
+
`,Kl=t.styled.div`
|
|
311
|
+
${({theme:t,$variant:e})=>`\n height: ${t.spacing[2.5]};\n width: ${t.spacing[2.5]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n transform: scale(2.5) translate(-20%, -20%);\n color: ${t.palette[e][50]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(2) translate(-25%, -25%);\n color: ${t.palette[e][200]};\n }\n\n & .icon {\n color: ${t.palette[e][500]};\n }\n `}
|
|
312
|
+
`,Yl=t=>"warning"===t?"triangle-exclamation":"info"===t?"circle-info":"success"===t?"circle-check":"circle-exclamation",Jl=t.styled(P)`
|
|
313
|
+
${({theme:t,$variant:e})=>`\n align-items: center;\n background: ${"error"===e?t.palette.primary[400]:t.palette.warning[500]};\n border-radius: 100%;\n font-family: ${t.typography.type.primary};\n justify-content: center;\n padding: 0;\n position: absolute;\n z-index: 11;\n width: ${t.spacing[.5]};\n height: ${t.spacing[.5]};\n `}
|
|
314
|
+
`,Xl=t.styled.div`
|
|
315
|
+
align-items: center;
|
|
316
|
+
color: ${({theme:t})=>t.palette.white};
|
|
317
|
+
display: flex;
|
|
318
|
+
font-size: 6px;
|
|
319
|
+
font-weight: ${({theme:t})=>t.typography.weight.bold};
|
|
320
|
+
justify-content: center;
|
|
321
|
+
`,Ql=e.forwardRef((function({numberIndicator:t,show:e,variant:n="error",...r},i){return y.jsx(Jl,{$variant:n,className:e?"flex":"hidden","data-testid":"notification-sign",ref:i,...r,children:t&&y.jsx(Xl,{children:t<=9?t:9})})})),Zl=t.styled.div`
|
|
322
|
+
width: fit-content;
|
|
323
|
+
border: ${({theme:t})=>`1px solid ${t.palette.gray[300]}`};
|
|
324
|
+
border-radius: 4px;
|
|
325
|
+
background: none;
|
|
326
|
+
color: ${({theme:t})=>t.palette.black};
|
|
327
|
+
font-family: ${({theme:t})=>t.typography.type.primary};
|
|
328
|
+
font-size: ${({theme:t})=>t.typography.text.md};
|
|
329
|
+
height: 40px;
|
|
330
|
+
display: flex;
|
|
331
|
+
align-items: center;
|
|
332
|
+
justify-content: center;
|
|
333
|
+
padding: 0.5em;
|
|
334
|
+
`,tc=t.styled.input`
|
|
335
|
+
width: 4em;
|
|
336
|
+
appearance: textfield;
|
|
337
|
+
border-style: none;
|
|
338
|
+
padding: 0.5rem;
|
|
339
|
+
padding-top: 0.5rem;
|
|
340
|
+
padding-bottom: 0.5rem;
|
|
341
|
+
padding-left: 0.5rem;
|
|
342
|
+
background: none;
|
|
343
|
+
|
|
344
|
+
&:focus {
|
|
345
|
+
border-color: unset;
|
|
346
|
+
box-shadow: none;
|
|
347
|
+
outline: none;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&::-webkit-outer-spin-button,
|
|
351
|
+
&::-webkit-inner-spin-button {
|
|
352
|
+
opacity: 1;
|
|
353
|
+
}
|
|
354
|
+
`,ec=e.forwardRef((function({autoUpdate:t=!1,decimalPlaces:n=0,defaultValue:i=0,max:o,min:s,onEnter:a,tooltipMessage:l,...c},u){const p=n<0?0:n,[h,d]=e.useState(Number(i).toFixed(p)),f=e.useCallback((e=>{const n=r.toNumber(e.target.value);e.target.value.endsWith(".")?d(e.target.value):n>=Number(s)&&n<=Number(o)&&(d(String(n)),t&&a(r.toNumber(n.toFixed(p)))),e.stopPropagation()}),[t,p,o,s,a]),m=e.useCallback((t=>{t.currentTarget.contains(t.relatedTarget)||d(Number(i).toFixed(p)),t.stopPropagation()}),[p,i]),g=e.useCallback((t=>{t.stopPropagation(),"Enter"!==t.key||r.isEmpty(t.currentTarget.value)||a(r.toNumber(t.currentTarget.value))}),[a]);return y.jsx(Zl,{onBlur:m,tabIndex:-1,children:y.jsx(Tr,{id:"numberInputTooltip",tip:l,children:y.jsx(tc,{...c,max:o,min:s,onChange:f,onKeyUp:g,ref:u,step:10**-p,type:"number",value:h})})})})),nc=t.styled.div`
|
|
355
|
+
${({theme:t})=>`\n height: ${t.spacing[1]};\n width: ${t.spacing[1]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n color: ${t.palette.warning[200]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(0.75) translate(-67%, -66%);\n color: ${t.palette.warning[400]};\n }\n\n & .icon {\n color: ${t.palette.warning[600]};\n font-size: ${t.spacing[.5]};\n }\n `}
|
|
356
|
+
`,rc=({margin:e,onClick:n,text:r})=>{const i=t.useTheme(),o=y.jsxs(nc,{children:[y.jsx(V,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),y.jsx(V,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),y.jsx(V,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return void 0!==r?y.jsx(M,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:y.jsxs(M,{alignItems:"center",bgColor:i.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[o,y.jsx(F,{color:i.palette.warning[500],display:"inline",ml:.25,size:"xs",children:r})]})}):y.jsx(M,{display:"inline-block",mr:e,onClick:n,children:o})},ic=t.styled(P)`
|
|
357
|
+
animation: ${({$animationTime:t})=>`progress-bar ${t}s ease-in-out`};
|
|
358
|
+
animation-fill-mode: both;
|
|
359
|
+
|
|
360
|
+
@keyframes progress-bar {
|
|
361
|
+
0% {
|
|
362
|
+
width: 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
100% {
|
|
366
|
+
width: 100%;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
`,oc=t.styled.label`
|
|
370
|
+
${({theme:t,$disabled:e})=>{const n=e?300:600,r=e?"not-allowed":"pointer";return`\n display: flex;\n align-items: center;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.typography.text.lg};\n text-align: left;\n position: relative;\n cursor: ${r};\n color: ${t.palette.gray[n]};\n gap: ${t.spacing[.5]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n }\n\n .checkmark {\n position: relative;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background-color: ${t.palette.white};\n border-radius: 50%;\n border: 1px solid ${t.palette.gray[600]};\n }\n\n input:disabled ~ .checkmark {\n border: 1px solid ${t.palette.gray[300]};\n background-color: ${t.palette.white};\n cursor: not-allowed;\n }\n\n input:not(:disabled):checked ~ .checkmark {\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.primary[500]};\n }\n\n input:not(:disabled):hover ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.gray[100]};\n }\n\n input:not(:disabled):hover:checked ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.primary[50]};\n }\n\n .checkmark::after {\n content: "";\n position: absolute;\n display: none;\n top: 3px;\n left: 3px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ${t.palette.primary[500]};\n }\n\n input:checked ~ .checkmark::after {\n display: block;\n }\n\n input:disabled:checked ~ .checkmark::after {\n background-color: ${t.palette.gray[300]};\n }\n `}}
|
|
371
|
+
`,sc=t.styled.span.attrs({className:"checkmark"})``,ac=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:r,onChange:i,onClick:o,value:s,...a},l){return y.jsxs(oc,{$disabled:e,children:[y.jsx("input",{"aria-label":r,defaultChecked:t,disabled:e,name:r,onChange:i,onClick:o,ref:l,type:"radio",value:s,...a}),y.jsx(sc,{}),n??null]})})),lc=t.styled.a`
|
|
372
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n background: ${t.palette.white};\n border-radius: ${t.spacing[.5]};\n cursor: pointer;\n gap: ${t.spacing[1]};\n padding:\n ${t.spacing[.5]}\n ${t.spacing[1]}\n ${t.spacing[.5]}\n ${t.spacing[.5]};\n width: 1143px;\n\n &:hover {\n background: ${t.palette.gray[100]};\n\n > div.icon-wrap {\n background: ${t.palette.gradients["01"]};\n\n path {\n fill: ${t.palette.white};\n }\n }\n }\n\n @media screen\n and (min-width: ${t.breakpoints.sm})\n and (max-width: ${t.breakpoints.md})\n {\n width: 905px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${t.breakpoints.sm})\n {\n width: 475px;\n }\n\n @media screen and (max-width: 40em) {\n width: 270px;\n }\n `}
|
|
373
|
+
`,cc=t.styled.div.attrs({className:"icon-wrap"})`
|
|
374
|
+
${({theme:t})=>`\n align-items: center;\n background: ${t.palette.primary[25]};\n border-radius: ${t.spacing[.25]};\n display: flex;\n justify-content: center;\n min-width: ${t.spacing[2.5]};\n height: ${t.spacing[2.5]};\n padding: ${t.spacing[.5]};\n\n span {\n font-size: 20px;\n }\n `}
|
|
375
|
+
`,uc=t.styled.div`
|
|
376
|
+
${({theme:t})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n width: 1193px;\n\n > :is(form, .dropdown) {\n border-radius: ${t.spacing[.5]};\n border: 1px solid ${t.palette.gray[200]};\n background-color: ${t.palette.white};\n }\n\n @media screen\n and (min-width: ${t.breakpoints.sm})\n and (max-width: ${t.breakpoints.md})\n {\n width: 954px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${t.breakpoints.sm})\n {\n width: 526px;\n }\n\n @media screen and (max-width: 40em) {\n width: 320px;\n }\n `}
|
|
377
|
+
`,pc=t.styled.form`
|
|
378
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n gap: ${t.spacing[.5]};\n justify-content: space-between;\n padding: ${t.spacing[1]} ${t.spacing[1.5]};\n width: 100%;\n `}
|
|
379
|
+
`,hc=t.styled.input`
|
|
380
|
+
${({theme:t})=>`\n flex: 1 0 0;\n border: none;\n color: ${t.palette.gray[600]};\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.md};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.spacing[1.5]};\n outline: none;\n\n &::placeholder {\n color: ${t.palette.gray[400]};\n }\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance:none;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.sm};\n }\n `}
|
|
381
|
+
`,dc=t.styled.button`
|
|
382
|
+
${({theme:t})=>`\n align-items: center;\n border-radius: ${t.spacing[.5]};\n display: flex;\n width: ${t.spacing[2.5]};\n height: ${t.spacing[2.5]};\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n justify-content: center;\n gap: ${t.spacing[.5]};\n flex-shrink: 0;\n\n span {\n color: ${t.palette.gray[400]};\n }\n\n &:hover {\n background-color: ${t.palette.gray[100]};\n }\n `}
|
|
383
|
+
`,fc=t.styled.div.attrs({className:"dropdown"})`
|
|
384
|
+
${({theme:t,$empty:e=!1,$showHits:n=!1})=>`\n align-items: flex-start;\n align-self: stretch;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.5]};\n max-height: ${n?"270px":"500px"};\n overflow: hidden auto;\n padding: ${t.spacing[1.5]};\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n\n @media screen and (max-width: ${t.breakpoints.sm}) and (${!e}) {\n max-height: 410px;\n }\n ${e&&`\n @media screen and (min-width: ${t.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);\n }\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);\n }\n `}\n\n &::-webkit-scrollbar {\n height: ${t.spacing[.5]};\n width: ${t.spacing[.5]};\n }\n &::-webkit-scrollbar-track {\n background: ${t.palette.gray[100]};\n }\n &::-webkit-scrollbar-thumb {\n background-color: ${t.palette.gray[600]};\n border-radius: ${t.spacing[5]};\n height: ${t.spacing[.5]};\n }\n `}
|
|
385
|
+
`,mc=({hit:t,icon:e="infinity",showIcon:n=!1})=>{const{slug:r,title:i}=t,o=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return y.jsxs(lc,{href:o,rel:"nofollow noopener noreferrer",children:[n&&y.jsx(cc,{children:y.jsx(V,{icon:e,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),y.jsx(F,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(i)})]})},gc=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],yc={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},vc={critical:{bgColor:v.palette.primary[700],colorL:v.palette.gray[800],colorR:v.palette.white},disable:{bgColor:v.palette.gray[200],colorL:v.palette.gray[400],colorR:v.palette.gray[400]},high:{bgColor:v.palette.error[500],colorL:v.palette.gray[800],colorR:v.palette.white},low:{bgColor:v.palette.warning[200],colorL:v.palette.gray[800],colorR:v.palette.gray[800]},medium:{bgColor:v.palette.warning[500],colorL:v.palette.gray[800],colorR:v.palette.gray[800]}};var bc=Pe,wc=Cn,xc=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},kc=Mn,Sc=be?be.prototype:void 0,Cc=Sc?Sc.toString:void 0,_c=function t(e){if("string"==typeof e)return e;if(kc(e))return xc(e,t)+"";if(function(t){return"symbol"==typeof t||wc(t)&&"[object Symbol]"==bc(t)}(e))return Cc?Cc.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},$c=function(t){return null==t?"":_c(t)},Ec=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},Pc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Tc=function(t){return Pc.test(t)},Ac="\\ud800-\\udfff",jc="["+Ac+"]",Oc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Mc="\\ud83c[\\udffb-\\udfff]",Dc="[^"+Ac+"]",Ic="(?:\\ud83c[\\udde6-\\uddff]){2}",Rc="[\\ud800-\\udbff][\\udc00-\\udfff]",Fc="(?:"+Oc+"|"+Mc+")?",Lc="[\\ufe0e\\ufe0f]?",Nc=Lc+Fc+"(?:\\u200d(?:"+[Dc,Ic,Rc].join("|")+")"+Lc+Fc+")*",zc="(?:"+[Dc+Oc+"?",Oc,Ic,Rc,jc].join("|")+")",Vc=RegExp(Mc+"(?="+Mc+")|"+zc+Nc,"g"),Bc=function(t){return t.split("")},Wc=Tc,qc=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ec(t,e,n)},Uc=Tc,Hc=function(t){return Wc(t)?function(t){return t.match(Vc)||[]}(t):Bc(t)},Gc=$c,Kc=function(){return function(t){t=Gc(t);var e=Uc(t)?Hc(t):void 0,n=e?e[0]:t.charAt(0),r=e?qc(e,1).join(""):t.slice(1);return n.toUpperCase()+r}}(),Yc=$c,Jc=Kc;const Xc=p((function(t){return Jc(Yc(t).toLowerCase())})),Qc=({variant:t,value:e})=>{const{iconColor:n,iconText:r,iconTextColor:i,textColor:o}=((t,e)=>{const n={critical:v.palette.primary[700],high:v.palette.error[500],low:v.palette.warning[200],medium:v.palette.warning[500],none:v.palette.gray[200]},r={disabled:v.palette.gray[400],enabled:v.palette.gray[800]},i={critical:v.palette.white,high:v.palette.white,low:v.palette.gray[800],medium:v.palette.gray[800],none:v.palette.gray[400]};return{iconColor:e<1?n.none:n[t],iconText:Xc(t.charAt(0)),iconTextColor:e<1?i.none:i[t],textColor:e<1?r.disabled:r.enabled}})(t,e),s=Xc(t.charAt(0))+t.slice(1);return y.jsxs(M,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[y.jsx(Tr,{id:s,place:"top",tip:s,children:y.jsx(M,{bgColor:n,borderRadius:"4px",cursor:"pointer",display:"flex",maxWidth:"20px",minWidth:"20px",children:y.jsx(F,{color:i,fontWeight:"bold",size:"sm",textAlign:"center",children:r})})}),y.jsx(F,{color:o,size:"sm",children:e})]})},Zc=new Set;function tu(t,e,n){t||Zc.has(e)||Zc.add(e)}function eu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const nu=t=>Array.isArray(t);function ru(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function iu(t){return"string"==typeof t||Array.isArray(t)}function ou(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function su(t,e,n,r){if("function"==typeof e){const[i,o]=ou(r);e=e(void 0!==n?n:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[i,o]=ou(r);e=e(void 0!==n?n:t.custom,i,o)}return e}function au(t,e,n){const r=t.getProps();return su(r,e,void 0!==n?n:r.custom,t)}const lu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],cu=["initial",...lu],uu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pu=new Set(uu),hu=t=>1e3*t,du=t=>t/1e3,fu={type:"spring",stiffness:500,damping:25,restSpeed:10},mu={type:"keyframes",duration:.8},gu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yu=(t,{keyframes:e})=>e.length>2?mu:pu.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:fu:gu;function vu(t,e){return t?t[e]||t.default||t:void 0}const bu=t=>null!==t;function wu(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(bu),o=e&&"loop"!==n&&e%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}const xu=t=>t;let ku=xu,Su=xu;"production"!==process.env.NODE_ENV&&(ku=(t,e)=>{},Su=(t,e)=>{if(!t)throw new Error(e)});const Cu=["read","resolveKeyframes","update","preRender","render","postRender"];function _u(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Cu.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(s)}const l={schedule:(t,i=!1,s=!1)=>{const a=s&&r?e:n;return i&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{s=t,r?i=!0:(r=!0,[e,n]=[n,e],n.clear(),e.forEach(a),r=!1,i&&(i=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:p,postRender:h}=s,d=()=>{const o=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(d))};return{schedule:Cu.reduce(((e,o)=>{const a=s[o];return e[o]=(e,o=!1,s=!1)=>(n||(n=!0,r=!0,i.isProcessing||t(d)),a.schedule(e,o,s)),e}),{}),cancel:t=>{for(let e=0;e<Cu.length;e++)s[Cu[e]].cancel(t)},state:i,steps:s}}const{schedule:$u,cancel:Eu,state:Pu,steps:Tu}=_u("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:xu,!0),Au=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ju(t,e,n,r){if(t===e&&n===r)return xu;return i=>0===i||1===i?i:Au(function(t,e,n,r,i){let o,s,a=0;do{s=e+(n-e)/2,o=Au(s,r,i)-t,o>0?n=s:e=s}while(Math.abs(o)>1e-7&&++a<12);return s}(i,0,1,t,n),e,r)}const Ou=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Mu=t=>e=>1-t(1-e),Du=ju(.33,1.53,.69,.99),Iu=Mu(Du),Ru=Ou(Iu),Fu=t=>(t*=2)<1?.5*Iu(t):.5*(2-Math.pow(2,-10*(t-1))),Lu=t=>1-Math.sin(Math.acos(t)),Nu=Mu(Lu),zu=Ou(Lu),Vu=t=>/^0[^.\s]+$/u.test(t),Bu=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Wu=t=>e=>"string"==typeof e&&e.startsWith(t),qu=Wu("--"),Uu=Wu("var(--"),Hu=t=>!!Uu(t)&&Gu.test(t.split("/*")[0].trim()),Gu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ku=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Yu(t,e,n=1){Su(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=function(t){const e=Ku.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${null!=n?n:r}`,i]}(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const t=o.trim();return Bu(t)?parseFloat(t):t}return Hu(i)?Yu(i,e,n+1):i}const Ju=(t,e,n)=>n>e?e:n<t?t:n,Xu={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},Qu={...Xu,transform:t=>Ju(0,1,t)},Zu={...Xu,default:1},tp=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ep=tp("deg"),np=tp("%"),rp=tp("px"),ip=tp("vh"),op=tp("vw"),sp={...np,parse:t=>np.parse(t)/100,transform:t=>np.transform(100*t)},ap=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),lp=t=>t===Xu||t===rp,cp=(t,e)=>parseFloat(t.split(", ")[e]),up=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return cp(i[1],e);{const e=r.match(/^matrix\((.+)\)$/u);return e?cp(e[1],t):0}},pp=new Set(["x","y","z"]),hp=uu.filter((t=>!pp.has(t))),dp={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:up(4,13),y:up(5,14)};dp.translateX=dp.x,dp.translateY=dp.y;const fp=t=>e=>e.test(t),mp=[Xu,rp,np,ep,op,ip,{test:t=>"auto"===t,parse:t=>t}],gp=t=>mp.find(fp(t)),yp=new Set;let vp=!1,bp=!1;function wp(){if(bp){const t=Array.from(yp).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return hp.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}bp=!1,vp=!1,yp.forEach((t=>t.complete())),yp.clear()}function xp(){yp.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(bp=!0)}))}class kp{constructor(t,e,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yp.add(this),vp||(vp=!0,$u.read(xp),$u.resolveKeyframes(wp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:r}=this;for(let i=0;i<t.length;i++)if(null===t[i])if(0===i){const i=null==r?void 0:r.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){const r=n.readValue(e,o);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=o),r&&void 0===i&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yp.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yp.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Sp=t=>Math.round(1e5*t)/1e5,Cp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,_p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,$p=(t,e)=>n=>Boolean("string"==typeof n&&_p.test(n)&&n.startsWith(t)||e&&!(null==n)&&Object.prototype.hasOwnProperty.call(n,e)),Ep=(t,e,n)=>r=>{if("string"!=typeof r)return r;const[i,o,s,a]=r.match(Cp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Pp={...Xu,transform:t=>Math.round(Ju(0,255,t))},Tp={test:$p("rgb","red"),parse:Ep("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Pp.transform(t)+", "+Pp.transform(e)+", "+Pp.transform(n)+", "+Sp(Qu.transform(r))+")"},Ap={test:$p("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Tp.transform},jp={test:$p("hsl","hue"),parse:Ep("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+np.transform(Sp(e))+", "+np.transform(Sp(n))+", "+Sp(Qu.transform(r))+")"},Op={test:t=>Tp.test(t)||Ap.test(t)||jp.test(t),parse:t=>Tp.test(t)?Tp.parse(t):jp.test(t)?jp.parse(t):Ap.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Tp.transform(t):jp.transform(t)},Mp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Dp="number",Ip="color",Rp=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fp(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=e.replace(Rp,(t=>(Op.test(t)?(r.color.push(o),i.push(Ip),n.push(Op.parse(t))):t.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(t)):(r.number.push(o),i.push(Dp),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:i}}function Lp(t){return Fp(t).values}function Np(t){const{split:e,types:n}=Fp(t),r=e.length;return t=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],void 0!==t[o]){const e=n[o];i+=e===Dp?Sp(t[o]):e===Ip?Op.transform(t[o]):t[o]}return i}}const zp=t=>"number"==typeof t?0:t,Vp={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(Cp))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Mp))||void 0===n?void 0:n.length)||0)>0},parse:Lp,createTransformer:Np,getAnimatableNone:function(t){const e=Lp(t);return Np(t)(e.map(zp))}},Bp=new Set(["brightness","contrast","saturate","opacity"]);function Wp(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(Cp)||[];if(!r)return t;const i=n.replace(r,"");let o=Bp.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const qp=/\b([a-z-]*)\(.*?\)/gu,Up={...Vp,getAnimatableNone:t=>{const e=t.match(qp);return e?e.map(Wp).join(" "):t}},Hp={borderWidth:rp,borderTopWidth:rp,borderRightWidth:rp,borderBottomWidth:rp,borderLeftWidth:rp,borderRadius:rp,radius:rp,borderTopLeftRadius:rp,borderTopRightRadius:rp,borderBottomRightRadius:rp,borderBottomLeftRadius:rp,width:rp,maxWidth:rp,height:rp,maxHeight:rp,top:rp,right:rp,bottom:rp,left:rp,padding:rp,paddingTop:rp,paddingRight:rp,paddingBottom:rp,paddingLeft:rp,margin:rp,marginTop:rp,marginRight:rp,marginBottom:rp,marginLeft:rp,backgroundPositionX:rp,backgroundPositionY:rp},Gp={rotate:ep,rotateX:ep,rotateY:ep,rotateZ:ep,scale:Zu,scaleX:Zu,scaleY:Zu,scaleZ:Zu,skew:ep,skewX:ep,skewY:ep,distance:rp,translateX:rp,translateY:rp,translateZ:rp,x:rp,y:rp,z:rp,perspective:rp,transformPerspective:rp,opacity:Qu,originX:sp,originY:sp,originZ:rp},Kp={...Xu,transform:Math.round},Yp={...Hp,...Gp,zIndex:Kp,size:rp,fillOpacity:Qu,strokeOpacity:Qu,numOctaves:Kp},Jp={...Yp,color:Op,backgroundColor:Op,outlineColor:Op,fill:Op,stroke:Op,borderColor:Op,borderTopColor:Op,borderRightColor:Op,borderBottomColor:Op,borderLeftColor:Op,filter:Up,WebkitFilter:Up},Xp=t=>Jp[t];function Qp(t,e){let n=Xp(t);return n!==Up&&(n=Vp),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Zp=new Set(["auto","none","0"]);class th extends kp{constructor(t,e,n,r,i){super(t,e,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),Hu(n))){const r=Yu(n,e.current);void 0!==r&&(t[a]=r),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ap.has(n)||2!==t.length)return;const[r,i]=t,o=gp(r),s=gp(i);if(o!==s)if(lp(o)&&lp(s))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)("number"==typeof(r=t[i])?0===r:null===r||"none"===r||"0"===r||Vu(r))&&n.push(i);var r;n.length&&function(t,e,n){let r,i=0;for(;i<t.length&&!r;){const e=t[i];"string"==typeof e&&!Zp.has(e)&&Fp(e).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=Qp(n,r)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=dp[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const r=e[e.length-1];void 0!==r&&t.getValue(n,r).jump(r,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=dp[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function eh(t){return"function"==typeof t}let nh;function rh(){nh=void 0}const ih={now:()=>(void 0===nh&&ih.set(Pu.isProcessing?Pu.timestamp:performance.now()),nh),set:t=>{nh=t,queueMicrotask(rh)}},oh=(t,e)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Vp.test(t)&&"0"!==t||t.startsWith("url(")));class sh{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ih.now(),this.options={autoplay:t,delay:e,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(xp(),wp()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=ih.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,r){const i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],s=oh(i,e),a=oh(o,e);return ku(s===a,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!s||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||eh(n))&&r)}(t,n,r,i)){if(!o)return null==a||a(wu(t,this.options,e)),null==s||s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const ah=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},lh=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(ah(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ch(t,e){return e?t*(1e3/e):0}function uh(t,e,n){const r=Math.max(e-5,0);return ch(n-t(r),e-r)}const ph=.01,hh=2,dh=.005,fh=.5;const mh=12;function gh(t,e){return t*Math.sqrt(1-e*e)}const yh=2e4;function vh(t){let e=0,n=t.next(e);for(;!n.done&&e<yh;)e+=50,n=t.next(e);return e>=yh?1/0:e}const bh=["duration","bounce"],wh=["stiffness","damping","mass"];function xh(t,e){return e.some((e=>void 0!==t[e]))}function kh(t=.3,e=.3){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:p,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!xh(t,wh)&&xh(t,bh))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*Ju(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:1,stiffness:i,damping:o}}else{const n=function({duration:t=800,bounce:e=.3,velocity:n=0,mass:r=1}){let i,o;ku(t<=hu(10),"Spring duration must be 10 seconds or less");let s=1-e;s=Ju(.05,1,s),t=Ju(.01,10,du(t)),s<1?(i=e=>{const r=e*s,i=r*t;return.001-(r-n)/gh(e,s)*Math.exp(-i)},o=e=>{const r=e*s*t,o=r*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-r),c=gh(Math.pow(e,2),s);return(.001-i(e)>0?-1:1)*((o-a)*l)/c}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let r=n;for(let i=1;i<mh;i++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=hu(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...n,velocity:-du(n.velocity||0)}),f=h||0,m=c/(2*Math.sqrt(l*u)),g=s-o,y=du(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?ph:hh),i||(i=v?dh:fh),m<1){const t=gh(y,m);b=e=>{const n=Math.exp(-m*y*e);return s-n*((f+m*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===m)b=t=>s-Math.exp(-y*t)*(g+(f+y*g)*t);else{const t=y*Math.sqrt(m*m-1);b=e=>{const n=Math.exp(-m*y*e),r=Math.min(t*e,300);return s-n*((f+m*y*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}const w={calculatedDuration:d&&p||null,next:t=>{const e=b(t);if(d)a.done=t>=p;else{let n=0;m<1&&(n=0===t?hu(f):uh(b,t,e));const o=Math.abs(n)<=r,l=Math.abs(s-e)<=i;a.done=o&&l}return a.value=a.done?s:e,a},toString:()=>{const t=Math.min(vh(w),yh),e=lh((e=>w.next(t*e).value),t,30);return t+"ms "+e}};return w}function Sh({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const p=t[0],h={done:!1,value:p},d=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let f=n*e;const m=p+f,g=void 0===s?m:s(m);g!==m&&(f=g-p);const y=t=>-f*Math.exp(-t/r),v=t=>g+y(t),b=t=>{const e=y(t),n=v(t);h.done=Math.abs(e)<=c,h.value=h.done?g:n};let w,x;const k=t=>{var e;e=h.value,(void 0!==a&&e<a||void 0!==l&&e>l)&&(w=t,x=kh({keyframes:[h.value,d(h.value)],velocity:uh(v,t,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:t=>{let e=!1;return x||void 0!==w||(e=!0,b(t),k(t)),void 0!==w&&t>=w?x.next(t-w):(!e&&b(t),h)}}}const Ch=ju(.42,0,1,1),_h=ju(0,0,.58,1),$h=ju(.42,0,.58,1),Eh=t=>Array.isArray(t)&&"number"==typeof t[0],Ph={linear:xu,easeIn:Ch,easeInOut:$h,easeOut:_h,circIn:Lu,circInOut:zu,circOut:Nu,backIn:Iu,backInOut:Ru,backOut:Du,anticipate:Fu},Th=t=>{if(Eh(t)){Su(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return ju(e,n,r,i)}return"string"==typeof t?(Su(void 0!==Ph[t],`Invalid easing type '${t}'`),Ph[t]):t},Ah=(t,e)=>n=>e(t(n)),jh=(...t)=>t.reduce(Ah),Oh=(t,e,n)=>t+(e-t)*n;function Mh(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Dh(t,e){return n=>n>0?e:t}const Ih=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Rh=[Ap,Tp,jp];function Fh(t){const e=(n=t,Rh.find((t=>t.test(n))));var n;if(ku(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let r=e.parse(t);return e===jp&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=Mh(a,r,t+1/3),o=Mh(a,r,t),s=Mh(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const Lh=(t,e)=>{const n=Fh(t),r=Fh(e);if(!n||!r)return Dh(t,e);const i={...n};return t=>(i.red=Ih(n.red,r.red,t),i.green=Ih(n.green,r.green,t),i.blue=Ih(n.blue,r.blue,t),i.alpha=Oh(n.alpha,r.alpha,t),Tp.transform(i))},Nh=new Set(["none","hidden"]);function zh(t,e){return n=>Oh(t,e,n)}function Vh(t){return"number"==typeof t?zh:"string"==typeof t?Hu(t)?Dh:Op.test(t)?Lh:qh:Array.isArray(t)?Bh:"object"==typeof t?Op.test(t)?Lh:Wh:Dh}function Bh(t,e){const n=[...t],r=n.length,i=t.map(((t,n)=>Vh(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}}function Wh(t,e){const n={...t,...e},r={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=Vh(t[i])(t[i],e[i]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const qh=(t,e)=>{const n=Vp.createTransformer(e),r=Fp(t),i=Fp(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Nh.has(t)&&!i.values.length||Nh.has(e)&&!r.values.length?(o=t,s=e,Nh.has(o)?t=>t<=0?o:s:t=>t>=1?s:o):jh(Bh(function(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][i[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;r[o]=l,i[s]++}return r}(r,i),i.values),n):(ku(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Dh(t,e));var o,s};function Uh(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?Oh(t,e,n):Vh(t)(t,e)}function Hh({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=(l=r,Array.isArray(l)&&"number"!=typeof l[0]?r.map(Th):Th(r)),o={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:function(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=ah(0,e,r);t.push(Oh(n,1,i))}}(e,t.length-1),e}(e),t),a=function(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Su(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const r=[],i=n||Uh,o=t.length-1;for(let s=0;s<o;s++){let n=i(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]||xu:e;n=jh(t,n)}r.push(n)}return r}(e,r,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=ah(t[n],t[n+1],e);return s[n](r)};return n?e=>l(Ju(t[0],t[o-1],e)):l}(s,e,{ease:Array.isArray(i)?i:(c=e,u=i,c.map((()=>u||$h)).splice(0,c.length-1))});var l,c,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const Gh=t=>{const e=({timestamp:e})=>t(e);return{start:()=>$u.update(e,!0),stop:()=>Eu(e),now:()=>Pu.isProcessing?Pu.timestamp:ih.now()}},Kh={decay:Sh,inertia:Sh,tween:Hh,keyframes:Hh,spring:kh},Yh=t=>t/100;class Jh extends sh{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||kp;this.resolver=new o(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,s=eh(e)?e:Kh[e]||Hh;let a,l;s!==Hh&&"number"!=typeof t[0]&&("production"!==process.env.NODE_ENV&&Su(2===t.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=jh(Yh,Uh(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});"mirror"===i&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=vh(c));const{calculatedDuration:u}=c,p=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:p,totalDuration:p*(n+1)-r}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return i.next(0);const{delay:p,repeat:h,repeatType:d,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=i;if(h){const t=Math.min(this.currentTime,c)/u;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1),Boolean(e%2)&&("reverse"===d?(n=1-n,f&&(n-=f/u)):"mirror"===d&&(b=o)),v=Ju(0,1,n)*u}const w=y?{done:!1,value:a[0]}:b.next(v);s&&(w.value=s(w.value));let{done:x}=w;y||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&void 0!==r&&(w.value=wu(a,this.options,r)),m&&m(w.value),k&&this.finish(),w}get duration(){const{resolved:t}=this;return t?du(t.calculatedDuration):0}get time(){return du(this.currentTime)}set time(t){t=hu(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=du(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Gh,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Xh=new Set(["opacity","clipPath","filter","transform"]);function Qh(t){let e;return()=>(void 0===e&&(e=t()),e)}const Zh={linearEasing:void 0};const td=function(t,e){const n=Qh(t);return()=>{var t;return null!==(t=Zh[e])&&void 0!==t?t:n()}}((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(mn){return!1}return!0}),"linearEasing");function ed(t){return Boolean("function"==typeof t&&td()||!t||"string"==typeof t&&(t in rd||td())||Eh(t)||Array.isArray(t)&&t.every(ed))}const nd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,rd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nd([0,.65,.55,1]),circOut:nd([.55,0,1,.45]),backIn:nd([.31,.01,.66,-.59]),backOut:nd([.33,1.53,.69,.99])};function id(t,e){return t?"function"==typeof t&&td()?lh(t,e):Eh(t)?nd(t):Array.isArray(t)?t.map((t=>id(t,e)||rd.easeOut)):rd[t]:void 0}function od(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=id(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}function sd(t,e){t.timeline=e,t.onfinish=null}const ad=Qh((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),ld={anticipate:Fu,backInOut:Ru,circInOut:zu};class cd extends sh{constructor(t){super(t);const{name:e,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new th(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,r),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:r=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;var u;if("string"==typeof o&&td()&&o in ld&&(o=ld[o]),eh((u=this.options).type)||"spring"===u.type||!ed(u.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...c}=this.options,u=function(t,e){const n=new Jh({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(t,c);1===(t=u.keyframes).length&&(t[1]=t[0]),r=u.duration,i=u.times,o=u.ease,s="keyframes"}const p=od(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return p.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(sd(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:n}=this.options;a.set(wu(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return du(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return du(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=hu(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return xu;const{animation:n}=e;sd(n,t)}else this.pendingTimeline=t;return xu}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:r,type:i,ease:o,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...c}=this.options,u=new Jh({...c,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),p=hu(this.time);t.setWithVelocity(u.sample(p-10).value,u.sample(p).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;return ad()&&n&&Xh.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}}const ud=Qh((()=>void 0!==window.ScrollTimeline));class pd{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map((n=>ud()&&n.attachTimeline?n.attachTimeline(t):e(n)));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const hd=(t,e,n,r={},i,o)=>s=>{const a=vu(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=hu(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...yu(t,u)}),u.duration&&(u.duration=hu(u.duration)),u.repeatDelay&&(u.repeatDelay=hu(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(p=!0)),p&&!o&&void 0!==e.get()){const t=wu(u.keyframes,a);if(void 0!==t)return $u.update((()=>{u.onUpdate(t),u.onComplete()})),new pd([])}return!o&&cd.supports(u)?new cd(u):new Jh(u)},dd=t=>nu(t)?t[t.length-1]||0:t;class fd{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class md{constructor(t,e={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=ih.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=ih.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&tu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new fd);const n=this.events[t].add(e);return"change"===t?()=>{n(),$u.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ih.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return ch(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gd(t,e){return new md(t,e)}function yd(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,gd(n))}const vd=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bd="data-"+vd("framerAppearId");function wd(t){return t.props[bd]}const xd=t=>Boolean(t&&t.getVelocity);function kd(t,e){const n=t.getValue("willChange");if(r=n,Boolean(xd(r)&&r.add))return n.add(e);var r}function Sd({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function Cd(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(s=r);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const p in l){const e=t.getValue(p,null!==(o=t.latestValues[p])&&void 0!==o?o:null),r=l[p];if(void 0===r||u&&Sd(u,p))continue;const i={delay:n,...vu(s||{},p)};let a=!1;if(window.MotionHandoffAnimation){const e=wd(t);if(e){const t=window.MotionHandoffAnimation(e,p,$u);null!==t&&(i.startTime=t,a=!0)}}kd(t,p),e.start(hd(p,e,r,t.shouldReduceMotion&&pu.has(p)?{type:!1}:i,t,a));const h=e.animation;h&&c.push(h)}return a&&Promise.all(c).then((()=>{$u.update((()=>{a&&function(t,e){const n=au(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o)yd(t,s,dd(o[s]))}(t,a)}))})),c}function _d(t,e,n={}){var r;const i=au(t,e,"exit"===n.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Cd(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort($d).forEach(((t,r)=>{t.notify("AnimationStart",e),s.push(_d(t,e,{...o,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+r,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then((()=>e()))}return Promise.all([s(),a(n.delay)])}function $d(t,e){return t.sortNodePosition(e)}const Ed=cu.length;function Pd(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Pd(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Ed;n++){const r=cu[n],i=t.props[r];(iu(i)||!1===i)&&(e[r]=i)}return e}const Td=[...lu].reverse(),Ad=lu.length;function jd(t){let e=function(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>_d(t,e,n)));r=Promise.all(i)}else if("string"==typeof e)r=_d(t,e,n);else{const i="function"==typeof e?au(t,e,n.custom):e;r=Promise.all(Cd(t,i,n))}return r.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}(t),n=Dd(),r=!0;const i=e=>(n,r)=>{var i;const o=au(t,r,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:t,transitionEnd:e,...r}=o;n={...n,...r,...e}}return n};function o(o){const{props:s}=t,a=Pd(t.parent)||{},l=[],c=new Set;let u={},p=1/0;for(let e=0;e<Ad;e++){const h=Td[e],d=n[h],f=void 0!==s[h]?s[h]:a[h],m=iu(f),g=h===o?d.isActive:null;!1===g&&(p=e);let y=f===a[h]&&f!==s[h]&&m;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),d.protectedKeys={...u},!d.isActive&&null===g||!f&&!d.prevProp||eu(f)||"boolean"==typeof f)continue;const v=Od(d.prevProp,f);let b=v||h===o&&d.isActive&&!y&&m||e>p&&m,w=!1;const x=Array.isArray(f)?f:[f];let k=x.reduce(i(h),{});!1===g&&(k={});const{prevResolvedValues:S={}}=d,C={...S,...k},_=e=>{b=!0,c.has(e)&&(w=!0,c.delete(e)),d.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in C){const e=k[t],n=S[t];if(u.hasOwnProperty(t))continue;let r=!1;r=nu(e)&&nu(n)?!ru(e,n):e!==n,r?null!=e?_(t):c.add(t):void 0!==e&&c.has(t)?_(t):d.protectedKeys[t]=!0}d.prevProp=f,d.prevResolvedValues=k,d.isActive&&(u={...u,...k}),r&&t.blockInitialAnimation&&(b=!1),b&&(!y||!v||w)&&l.push(...x.map((t=>({animation:t,options:{type:h}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!=r?r:null})),l.push({animation:e})}let h=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(h=!1),r=!1,h?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=o(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Dd(),r=!0}}}function Od(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!ru(e,t)}function Md(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dd(){return{animate:Md(!0),whileInView:Md(),whileHover:Md(),whileTap:Md(),whileDrag:Md(),whileFocus:Md(),exit:Md()}}class Id{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Rd=0;const Fd={animation:{Feature:class extends Id{constructor(t){super(t),t.animationState||(t.animationState=jd(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();eu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Id{constructor(){super(...arguments),this.id=Rd++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function Ld(t){return{point:{x:t.pageX,y:t.pageY}}}function Nd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function zd(t,e,n,r){return Nd(t,e,(t=>e=>{return("mouse"===(n=e).pointerType?"number"!=typeof n.button||n.button<=0:!1!==n.isPrimary)&&t(e,Ld(e));var n})(n),r)}function Vd(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const Bd=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Wd=e.createContext(null),qd=e.createContext({}),Ud=e.createContext({}),Hd={},{schedule:Gd,cancel:Kd}=_u(queueMicrotask,!1);function Yd(t){const e=xd(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}function Jd(t){return e=>{"touch"===e.pointerType||t(e)}}function Xd(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n);const i=r[n?"onHoverStart":"onHoverEnd"];i&&$u.postRender((()=>i(e,Ld(e))))}const Qd=(t,e)=>!!e&&(t===e||Qd(t,e.parentElement));function Zd(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Ld(n))}const tf=new WeakMap,ef=new WeakMap,nf=t=>{const e=tf.get(t.target);e&&e(t)},rf=t=>{t.forEach(nf)};const of={some:0,all:1},sf={inView:{Feature:class extends Id{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:of[r]};return function(t,e,n){const r=function({root:t,...e}){const n=t||document;ef.has(n)||ef.set(n,{});const r=ef.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(rf,{root:t,...e})),r[i]}(e);return tf.set(t,n),r.observe(t),()=>{tf.delete(t),r.unobserve(t)}}(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Id{constructor(){super(...arguments),this.removeStartListeners=xu,this.removeEndListeners=xu,this.removeAccessibleListeners=xu,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=zd(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||Qd(this.node.current,t.target)?n:r;o&&$u.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),i=zd(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=jh(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=Nd(this.node.current,"keydown",(t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Nd(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&Zd("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&$u.postRender((()=>n(t,e)))}))})),Zd("down",((t,e)=>{this.startPress(t,e)})))})),e=Nd(this.node.current,"blur",(()=>{this.isPressing&&Zd("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=jh(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&$u.postRender((()=>n(t,e)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!0}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&$u.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=zd(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Nd(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=jh(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Id{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(gn){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=jh(Nd(this.node.current,"focus",(()=>this.onFocus())),Nd(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Id{mount(){const{current:t,props:e}=this.node;t&&(this.unmount=function(t,e,n={}){const r=new AbortController,i={passive:!0,...n,signal:r.signal},o=Jd((t=>{const{target:n}=t,r=e(t);if(!r||!n)return;const o=Jd((t=>{r(t),n.removeEventListener("pointerleave",o)}));n.addEventListener("pointerleave",o,i)}));return function(t){if(t instanceof Element)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t).forEach((t=>{t.addEventListener("pointerenter",o,i)})),()=>r.abort()}(t,(t=>(Xd(this.node,t,!0),t=>Xd(this.node,t,!1))),{passive:!e.onHoverStart&&!e.onHoverEnd}))}unmount(){}}}},af=e.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),lf=e.createContext({}),cf="undefined"!=typeof window,uf=cf?e.useLayoutEffect:e.useEffect,pf=e.createContext({strict:!1});function hf(t,n,r,i,o){var s,a;const{visualElement:l}=e.useContext(lf),c=e.useContext(pf),u=e.useContext(Wd),p=e.useContext(af).reducedMotion,h=e.useRef();i=i||c.renderer,!h.current&&i&&(h.current=i(t,{visualState:n,parent:l,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:p}));const d=h.current,f=e.useContext(Ud);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(t,e,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:df(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(s)||a&&Vd(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(h.current,r,o,f);const m=e.useRef(!1);e.useInsertionEffect((()=>{d&&m.current&&d.update(r,u)}));const g=r[bd],y=e.useRef(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return uf((()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Gd.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())})),e.useEffect((()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,g)})),y.current=!1))})),d}function df(t){if(t)return!1!==t.options.allowProjection?t.projection:df(t.parent)}function ff(t,n,r){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):Vd(r)&&(r.current=e))}),[n])}function mf(t){return eu(t.animate)||cu.some((e=>iu(t[e])))}function gf(t){return Boolean(mf(t)||t.variants)}function yf(t){return Array.isArray(t)?t.join(" "):t}const vf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},bf={};for(const Zb in vf)bf[Zb]={isEnabled:t=>vf[Zb].some((e=>!!t[e]))};function wf(t){for(const e in t)bf[e]={...bf[e],...t[e]}}const xf=Symbol.for("motionComponentSymbol");function kf({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){t&&wf(t);const s=e.forwardRef((function(s,a){let l;const c={...e.useContext(af),...s,layoutId:Sf(s)},{isStatic:u}=c,p=function(t){const{initial:n,animate:r}=function(t,e){if(mf(t)){const{initial:e,animate:n}=t;return{initial:!1===e||iu(e)?e:void 0,animate:iu(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,e.useContext(lf));return e.useMemo((()=>({initial:n,animate:r})),[yf(n),yf(r)])}(s),h=i(s,u);if(!u&&cf){!function(t,n){const r=e.useContext(pf).strict;if("production"!==process.env.NODE_ENV&&n&&r){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ku(!1,e):Su(!1,e)}}(c,t);const r=function(t){const{drag:e,layout:n}=bf;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);l=r.MeasureLayout,p.visualElement=hf(o,h,c,n,r.ProjectionNode)}return y.jsxs(lf.Provider,{value:p,children:[l&&p.visualElement?y.jsx(l,{visualElement:p.visualElement,...c}):null,r(o,s,ff(h,p.visualElement,a),h,u,p.visualElement)]})}));return s[xf]=o,s}function Sf({layoutId:t}){const n=e.useContext(qd).id;return n&&void 0!==t?n+"-"+t:t}const Cf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _f(t){return"string"==typeof t&&!t.includes("-")&&!!(Cf.indexOf(t)>-1||/[A-Z]/u.test(t))}function $f(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Ef=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Pf(t,e,n,r){$f(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Ef.has(i)?i:vd(i),e.attrs[i])}function Tf(t,{layout:e,layoutId:n}){return pu.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!Hd[t]||"opacity"===t)}function Af(t,e,n){var r;const{style:i}=t,o={};for(const s in i)(xd(i[s])||e.style&&xd(e.style[s])||Tf(s,t)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(o[s]=i[s]);return o}function jf(t,e,n){const r=Af(t,e,n);for(const i in t)(xd(t[i])||xd(e[i]))&&(r[-1!==uu.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}const Of=t=>(n,r)=>{const i=e.useContext(lf),o=e.useContext(Wd),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:Mf(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(t,n,i,o);return r?s():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(s)};function Mf(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=Yd(o[h]);let{initial:s,animate:a}=t;const l=mf(t),c=gf(t);e&&c&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const p=u?a:s;if(p&&"boolean"!=typeof p&&!eu(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n<e.length;n++){const r=su(t,e[n]);if(r){const{transitionEnd:t,transition:e,...n}=r;for(const r in n){let t=n[r];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(i[r]=t)}for(const r in t)i[r]=t[r]}}}return i}const Df=(t,e)=>e&&"number"==typeof t?e.transform(t):t,If={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rf=uu.length;function Ff(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const t=e[l];if(pu.has(l))s=!0;else if(qu(l))i[l]=t;else{const e=Df(t,Yp[l]);l.startsWith("origin")?(a=!0,o[l]=e):r[l]=e}}if(e.transform||(s||n?r.transform=function(t,e,n){let r="",i=!0;for(let o=0;o<Rf;o++){const s=uu[o],a=t[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Df(a,Yp[s]);l||(i=!1,r+=`${If[s]||s}(${t}) `),n&&(e[s]=t)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;r.transformOrigin=`${t} ${e} ${n}`}}function Lf(t,e,n){return"string"==typeof t?t:rp.transform(e+n*t)}const Nf={offset:"stroke-dashoffset",array:"stroke-dasharray"},zf={offset:"strokeDashoffset",array:"strokeDasharray"};function Vf(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,p){if(Ff(t,c,p),u)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:d,dimensions:f}=t;var m,g;h.transform&&(f&&(d.transform=h.transform),delete h.transform),f&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=(g=void 0!==o?o:.5,`${Lf(void 0!==i?i:.5,(m=f).x,m.width)} ${Lf(g,m.y,m.height)}`)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?Nf:zf;t[o.offset]=rp.transform(-r);const s=rp.transform(e),a=rp.transform(n);t[o.array]=`${s} ${a}`}(h,s,a,l,!1)}const Bf=t=>"string"==typeof t&&"svg"===t.toLowerCase(),Wf={useVisualState:Of({scrapeMotionValuesFromProps:jf,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(t,e,{renderState:n,latestValues:r})=>{$u.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),$u.render((()=>{Vf(n,r,Bf(e.tagName),t.transformTemplate),Pf(e,n)}))}})},qf={useVisualState:Of({scrapeMotionValuesFromProps:Af,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Uf(t,e,n){for(const r in e)xd(e[r])||Tf(r,n)||(t[r]=e[r])}function Hf(t,n){const r={},i=function(t,n){const r={};return Uf(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},n){return e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return Ff(e,n,t),Object.assign({},e.vars,e.style)}),[n])}(t,n)),r}(t,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const Gf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Kf(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Gf.has(t)}let Yf=t=>!Kf(t);try{(Jf=require("@emotion/is-prop-valid").default)&&(Yf=t=>t.startsWith("on")?!Kf(t):Jf(t))}catch(mn){}var Jf;function Xf(t,n,r,i){const o=e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Vf(e,n,Bf(i),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};Uf(e,t.style,t),o.style={...e,...o.style}}return o}function Qf(t=!1){return(n,r,i,{latestValues:o},s)=>{const a=(_f(n)?Xf:Hf)(r,o,s,n),l=function(t,e,n){const r={};for(const i in t)"values"===i&&"object"==typeof t.values||(Yf(i)||!0===n&&Kf(i)||!e&&!Kf(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(r,"string"==typeof n,t),c=n!==e.Fragment?{...l,...a,ref:i}:{},{children:u}=r,p=e.useMemo((()=>xd(u)?u.get():u),[u]);return e.createElement(n,{...c,children:p})}}const Zf={current:null},tm={current:!1},em=new WeakMap,nm=[...mp,Op,Vp],rm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class im{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=ih.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,$u.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=mf(e),this.isVariantNode=gf(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const p in u){const t=u[p];void 0!==a[p]&&xd(t)&&t.set(a[p],!1)}}mount(t){this.current=t,em.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),tm.current||function(){if(tm.current=!0,cf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Zf.current=t.matches;t.addListener(e),e()}else Zf.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Zf.current),"production"!==process.env.NODE_ENV&&tu(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){em.delete(this.current),this.projection&&this.projection.unmount(),Eu(this.notifyUpdate),Eu(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=pu.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&$u.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{r(),i(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in bf){const e=bf[t];if(!e)continue;const{isEnabled:n,Feature:r}=e;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<rm.length;n++){const e=rm[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const r=t["on"+e];r&&(this.propEventSubscriptions[e]=this.on(e,r))}this.prevMotionValues=function(t,e,n){for(const r in e){const i=e[r],o=n[r];if(xd(i))t.addValue(r,i),"development"===process.env.NODE_ENV&&tu("11.13.1"===i.version,`Attempting to mix Motion versions ${i.version} with 11.13.1 may not work as expected.`);else if(xd(o))t.addValue(r,gd(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const e=t.getValue(r);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{const e=t.getStaticValue(r);t.addValue(r,gd(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=gd(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let r=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(Bu(r)||Vu(r))?r=parseFloat(r):(i=r,!nm.find(fp(i))&&Vp.test(e)&&(r=Qp(t,e))),this.setBaseTarget(t,xd(r)?r.get():r)),xd(r)?r.get():r;var i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=su(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(r=i[t])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||xd(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new fd),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class om extends im{constructor(){super(...arguments),this.KeyframeResolver=th}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xd(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class sm extends om{constructor(){super(...arguments),this.type="html",this.renderInstance=$f}readValueFromInstance(t,e){if(pu.has(e)){const t=Xp(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),i=(qu(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return n=e,function({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),n));var n}build(t,e,n){Ff(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Af(t,e,n)}}class am extends om{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bd}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(pu.has(e)){const t=Xp(e);return t&&t.default||0}return e=Ef.has(e)?e:vd(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return jf(t,e,n)}build(t,e,n){Vf(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,r){Pf(t,e,0,r)}mount(t){this.isSVGTag=Bf(t.tagName),super.mount(t)}}const lm=function(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>("production"!==process.env.NODE_ENV&&tu(!1,"motion() is deprecated. Use motion.create() instead."),t(...e))),{get:(n,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}(function(t,e){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return kf({..._f(n)?Wf:qf,preloadedFeatures:t,useRender:Qf(r),createVisualElement:e,Component:n})}}());function cm({children:t,features:n,strict:r=!1}){const[,i]=e.useState(!um(n)),o=e.useRef(void 0);if(!um(n)){const{renderer:t,...e}=n;o.current=t,wf(e)}return e.useEffect((()=>{um(n)&&n().then((({renderer:t,...e})=>{wf(e),o.current=t,i(!0)}))}),[]),y.jsx(pf.Provider,{value:{renderer:o.current,strict:r},children:t})}function um(t){return"function"==typeof t}const pm={renderer:(t,n)=>_f(t)?new am(n):new sm(n,{allowProjection:t!==e.Fragment}),...Fd,...sf},hm=({customBadge:e,description:n,icon:r,onClick:i,requiresUpgrade:o=!1,title:s})=>{const a=t.useTheme();return y.jsxs(M,{bgColor:a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:i,px:1.25,py:1,width:"100%",children:[y.jsx(M,{alignItems:"center",bgColor:a.palette.gray[300],borderRadius:a.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:y.jsx(V,{icon:r,iconColor:a.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),y.jsxs(M,{children:[y.jsxs(M,{alignItems:"center",display:"inline-flex",gap:.5,children:[y.jsx(F,{color:a.palette.gray[800],size:"sm",children:s}),o?y.jsx(rc,{text:"Upgrade"}):void 0,e]}),y.jsx(F,{color:a.palette.gray[400],size:"xs",children:n})]})]})},dm=t.styled(lm.div)`
|
|
386
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n box-shadow: ${t.shadows.lg};\n max-width: 350px;\n min-width: 350px;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n overflow: hidden auto;\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n z-index: 99999;\n\n > div {\n border: 1px solid ${t.palette.gray[100]};\n width: auto;\n min-height: 100vh;\n height: auto;\n }\n `}
|
|
387
|
+
`,{getVariant:fm}=l((t=>({completed:`\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n\n &::after {\n background-color: ${t.palette.primary[500]};\n }\n `,current:`\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n\n &::after {\n background-color: ${t.palette.gray[200]};\n }\n `,disabled:`\n background-color: ${t.palette.gray[200]};\n outline: 1px solid ${t.palette.gray[400]};\n outline-offset: -1px;\n color: ${t.palette.gray[400]};\n\n &::after {\n background-color: ${t.palette.gray[200]};\n }\n `}))),mm=t.styled.div`
|
|
388
|
+
${({theme:t})=>`\n align-items: stretch;\n background-color: ${t.palette.white};\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: ${t.spacing[1]} ${t.spacing[1]};\n scroll-behavior: unset;\n `}
|
|
389
|
+
`,gm=t.styled.div`
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: row;
|
|
392
|
+
margin-bottom: ${({theme:t})=>t.spacing[2]};
|
|
393
|
+
|
|
394
|
+
&:last-child > div:first-child > span::after {
|
|
395
|
+
display: none;
|
|
396
|
+
}
|
|
397
|
+
`,ym=t.styled.div`
|
|
398
|
+
${({theme:t})=>`\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n line-height: ${t.spacing[1.25]};\n margin-top: ${t.spacing[1]};\n\n & > button:first-child {\n margin-right: ${t.spacing[.5]};\n }\n `}
|
|
399
|
+
`,vm=t.styled.span`
|
|
400
|
+
${({theme:t,$variant:e})=>`\n border-radius: 6px;\n display: inline-block;\n text-align: center;\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.bold};\n font-family: ${t.typography.type.primary};\n line-height: ${t.spacing[1]};\n padding: ${t.spacing[.5]} ${t.spacing[.5]};\n height: ${t.spacing[2]};\n width: ${t.spacing[2]};\n\n &::after {\n content: "";\n position: absolute;\n top: calc(32px + ${t.spacing[.5]});\n left: 50%;\n bottom: 0;\n width: 2px;\n height: calc(100% - ${t.spacing[1]});\n }\n\n ${fm(t,e)}\n `}
|
|
401
|
+
`,bm=t.styled.button`
|
|
402
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[100]};\n border-radius: ${t.spacing[.25]};\n color: ${t.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${t.typography.text.sm};\n gap: ${t.spacing[.25]};\n height: 21px;\n width: 21px;\n justify-content: center;\n padding: 6px;\n transition: all 0.25s ease;\n\n &[aria-label] {\n height: auto;\n width: auto;\n }\n\n &.success {\n border-color: ${t.palette.success[500]};\n color: ${t.palette.success[500]};\n\n &:hover {\n background-color: ${t.palette.success[200]};\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n background: ${t.palette.gray[200]};\n border-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n }\n\n &:hover:not(.success) {\n background-color: ${t.palette.gray[100]};\n }\n `}
|
|
403
|
+
`,wm={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},xm=t.styled.button`
|
|
404
|
+
${({theme:t})=>`\n align-items: center;\n color: ${t.palette.gray[500]};\n display: flex;\n gap: ${t.spacing[.625]};\n justify-content: center;\n padding: ${t.spacing[.75]};\n text-align: center;\n width: 151px;\n\n &.active {\n color: ${t.palette.gray[800]};\n border-bottom: 3px solid ${t.palette.primary[400]};\n }\n\n &:hover {\n color: ${t.palette.gray[800]};\n }\n `}
|
|
405
|
+
`,km=t.styled.div`
|
|
406
|
+
${({theme:t})=>`\n align-items: center;\n border-bottom: 2px solid ${t.palette.gray[200]};\n display: flex;\n gap: ${t.spacing[3]};\n height: ${t.spacing[3]};\n width: max-content;\n `}
|
|
407
|
+
`,Sm=t.styled(i.NavLink)`
|
|
408
|
+
${({theme:t})=>`\n align-items: center;\n background: transparent;\n cursor: pointer;\n color: ${t.palette.gray[800]};\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n display: flex;\n font-weight: ${t.typography.weight.regular};\n padding: ${t.spacing[.625]} ${t.spacing[.5]};\n position: relative;\n text-align: center;\n text-decoration: unset;\n\n &:disabled {\n cursor: not-allowed;\n background-color: ${t.palette.gray[300]};\n color: ${t.palette.gray[300]};\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n\n &.active {\n background-color: transparent;\n border-bottom: solid 4px ${t.palette.primary[500]};\n padding-bottom: calc(${t.spacing[.625]} - 4px);\n\n &:hover {\n background-color: transparent;\n border-bottom: solid 4px ${t.palette.primary[500]};\n }\n }\n `}
|
|
409
|
+
`,Cm=({label:t,id:e,isActive:n=!1,link:r,notificationSign:i,onClick:o,tooltip:s=""})=>y.jsx(Tr,{display:"flex",id:`${e}-tooltip`,tip:s,children:y.jsxs(Sm,{className:n?"active":"",id:e,onClick:o,to:r,children:[t,y.jsx(Ql,{left:null==i?void 0:i.left,numberIndicator:null==i?void 0:i.numberIndicator,show:null==i?void 0:i.show,top:null==i?void 0:i.top,variant:null==i?void 0:i.variant})]})}),{getVariant:_m}=l((t=>({default:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.25]};\n\n background-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[800]};\n `,error:`\n background-color: ${t.palette.error[50]};\n color: ${t.palette.error[700]};\n `,inactive:`\n background-color: ${t.palette.gray[200]};\n color: theme.palette.gray[400];\n `,new:`\n background-color: ${t.palette.primary[300]};\n color: ${t.palette.primary[25]};\n `,reachable:`\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[400]};\n `,review:`\n background-color: ${t.palette.warning[400]};\n color: ${t.palette.warning[700]};\n `,role:`\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.white};\n `,success:`\n background-color: ${t.palette.success[50]};\n color: ${t.palette.success[700]};\n `,technique:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${t.palette.success[800]};\n color: ${t.palette.success[800]};\n `,warning:`\n background-color: ${t.palette.warning[50]};\n color: ${t.palette.warning[700]};\n `}))),$m=t.styled.span`
|
|
410
|
+
${({theme:t,$fontSize:e=t.typography.text.xs,$variant:n})=>`\n align-items: center;\n border-radius: ${t.spacing["technique"===n?1:.25]};\n display: inline-flex;\n gap: ${t.spacing[.25]};\n font-family: ${t.typography.type.primary};\n font-size: ${e};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n margin-right: ${t.spacing[.5]};\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n > a {\n font-size: ${t.typography.text.xs};\n }\n\n ${_m(t,n)}\n `}
|
|
411
|
+
`,Em=t.styled.div`
|
|
412
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.5]};\n min-height: 180px;\n padding: ${t.spacing[1.5]};\n width: 510px;\n\n p {\n font-style: normal;\n line-height: ${t.spacing[1.25]};\n }\n\n &:hover {\n border: 1px solid ${t.palette.gray[600]};\n }\n `}
|
|
413
|
+
`,Pm=t.styled.div`
|
|
414
|
+
${({theme:t})=>`\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n position: relative;\n max-width: 1268px;\n\n &::before {\n background-color: ${t.palette.gray[200]};\n border-radius: 5px;\n height: 100%;\n width: 4px;\n transform: translate(-50%, 0);\n }\n\n > * {\n &:nth-child(even) {\n align-self: end;\n }\n\n &:nth-child(odd) {\n align-self: start;\n }\n\n &::before {\n position: absolute;\n background-color: ${t.palette.primary[500]};\n border-radius: 50%;\n height: 14px;\n width: 14px;\n z-index: 1;\n }\n }\n\n &::before,\n > *::before {\n content: "";\n left: 50%;\n position: absolute;\n transform: translateX(-50%);\n }\n\n @media (width <= 1270px) {\n max-width: 540px;\n\n p {\n text-align: center;\n }\n\n &::before,\n > *::before {\n left: 8px;\n }\n\n > * {\n &:nth-child(odd) {\n align-self: end;\n }\n }\n\n @media (width <= 630px) {\n display: block;\n\n .timeline-card {\n width: auto;\n margin-left: 30px;\n }\n }\n }\n `}
|
|
415
|
+
`,Tm=({date:e,description:n,title:r})=>{const i=t.useTheme();return y.jsxs(Em,{className:"timeline-card",children:[y.jsx(F,{color:i.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),y.jsx(F,{color:i.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:r}),y.jsx("div",{children:n.map(((t,e)=>{const n=`${t}#${e}`;return y.jsx(F,{size:"sm",textAlign:"center",wordBreak:"break-word",children:t},n)}))})]})},Am=t.styled.div`
|
|
416
|
+
${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.gray[200]};\n border-radius: 34px;\n cursor: pointer;\n display: flex;\n height: 20px;\n position: relative;\n transition: 0.2s;\n width: 36px;\n `}
|
|
417
|
+
`,jm=t.styled.div`
|
|
418
|
+
${({theme:t})=>`\n background-color: ${t.palette.white};\n border-radius: 50%;\n height: ${t.spacing[1]};\n left: 2px;\n position: absolute;\n transition: 0.2s;\n width: ${t.spacing[1]};\n z-index: 1;\n `}
|
|
419
|
+
`,Om=t.styled.label`
|
|
420
|
+
display: inline-block;
|
|
421
|
+
|
|
422
|
+
input {
|
|
423
|
+
position: absolute;
|
|
424
|
+
height: 0;
|
|
425
|
+
opacity: 0;
|
|
426
|
+
width: 0;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
input:checked + ${Am} {
|
|
430
|
+
background-color: ${({theme:t})=>t.palette.primary[500]};
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
input:checked + ${Am} > div {
|
|
434
|
+
transform: translateX(100%);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
input:disabled + ${Am} {
|
|
438
|
+
cursor: not-allowed;
|
|
439
|
+
background-color: ${({theme:t})=>t.palette.gray[100]};
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
input:disabled + ${Am} > div {
|
|
443
|
+
background-color: ${({theme:t})=>t.palette.gray[200]};
|
|
444
|
+
border: 1px solid ${({theme:t})=>t.palette.gray[200]};
|
|
445
|
+
}
|
|
446
|
+
`,Mm=e.forwardRef((function({defaultChecked:t,disabled:n=!1,justify:r,name:i,leftDescription:o,rightDescription:s,...a},l){const c=!0===t?"on":"off",u="object"==typeof o&&o.on&&o.off?o[c]:o,p=e.useCallback((t=>{t.stopPropagation()}),[]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:.75,justify:r,children:[u,y.jsxs(Om,{onClick:p,children:[y.jsx("input",{...a,"aria-disabled":n,"aria-label":i,checked:!0===t,disabled:n,name:i,ref:l,type:"checkbox"}),y.jsx(Am,{"aria-label":"Toggle Switch",id:`${i}Toggle`,children:y.jsx(jm,{})})]}),s]})})),Dm=t.styled.div`
|
|
447
|
+
${({theme:t})=>`\n align-items: center;\n display: flex;\n position: relative;\n width: 352px;\n\n > button:first-child {\n border-radius: ${t.spacing[2]} 0 0 ${t.spacing[2]};\n }\n > button:last-child {\n --angle-grad: -45deg;\n border-radius: 0 ${t.spacing[2]} ${t.spacing[2]} 0;\n }\n\n &::before {\n background: ${t.palette.gradients["01"]} border-box;\n border-radius: ${t.spacing[2]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n }\n `}
|
|
448
|
+
`,Im=t.styled.button`
|
|
449
|
+
${({theme:t})=>`\n align-items: center;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${t.palette.primary[500]};\n cursor: pointer;\n display: flex;\n flex: 1 0 0;\n justify-content: center;\n gap: ${t.spacing[.625]};\n height: ${t.spacing[4]};\n padding: ${t.spacing[1.25]};\n position: relative;\n transition: color, --opacity-grad 0.5s ease-in-out;\n\n &.selected {\n --opacity-grad: 1;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${t.palette.white};\n }\n `}
|
|
450
|
+
`,Rm=p((function(t){return void 0===t}));function Fm(t){return e=>typeof e===t}var Lm=Fm("function"),Nm=t=>"RegExp"===Object.prototype.toString.call(t).slice(8,-1),zm=t=>!Vm(t)&&!(t=>null===t)(t)&&(Lm(t)||"object"==typeof t),Vm=Fm("undefined");function Bm(t,e){if(t===e)return!0;if(t&&zm(t)&&e&&zm(e)){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)&&Array.isArray(e))return function(t,e){const{length:n}=t;if(n!==e.length)return!1;for(let r=n;0!=r--;)if(!Bm(t[r],e[r]))return!1;return!0}(t,e);if(t instanceof Map&&e instanceof Map)return function(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;for(const n of t.entries())if(!Bm(n[1],e.get(n[0])))return!1;return!0}(t,e);if(t instanceof Set&&e instanceof Set)return function(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;return!0}(t,e);if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return function(t,e){if(t.byteLength!==e.byteLength)return!1;const n=new DataView(t.buffer),r=new DataView(e.buffer);let i=t.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}(t,e);if(Nm(t)&&Nm(e))return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let t=n.length;0!=t--;)if(!Object.prototype.hasOwnProperty.call(e,n[t]))return!1;for(let i=n.length;0!=i--;){const r=n[i];if(!("_owner"===r&&t.$$typeof||Bm(t[r],e[r])))return!1}return!0}return!(!Number.isNaN(t)||!Number.isNaN(e))||t===e}var Wm=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],qm=["bigint","boolean","null","number","string","symbol","undefined"];function Um(t){const e=Object.prototype.toString.call(t).slice(8,-1);return/HTML\w+Element/.test(e)?"HTMLElement":(n=e,Wm.includes(n)?e:void 0);var n}function Hm(t){return e=>Um(e)===t}function Gm(t){return e=>typeof e===t}var Km=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Ym(t){if(null===t)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ym.array(t))return"Array";if(Ym.plainFunction(t))return"Function";return Um(t)||"Object"}Ym.array=Array.isArray,Ym.arrayOf=(t,e)=>!(!Ym.array(t)&&!Ym.function(e))&&t.every((t=>e(t))),Ym.asyncGeneratorFunction=t=>"AsyncGeneratorFunction"===Um(t),Ym.asyncFunction=Hm("AsyncFunction"),Ym.bigint=Gm("bigint"),Ym.boolean=t=>!0===t||!1===t,Ym.date=Hm("Date"),Ym.defined=t=>!Ym.undefined(t),Ym.domElement=t=>Ym.object(t)&&!Ym.plainObject(t)&&1===t.nodeType&&Ym.string(t.nodeName)&&Km.every((e=>e in t)),Ym.empty=t=>Ym.string(t)&&0===t.length||Ym.array(t)&&0===t.length||Ym.object(t)&&!Ym.map(t)&&!Ym.set(t)&&0===Object.keys(t).length||Ym.set(t)&&0===t.size||Ym.map(t)&&0===t.size,Ym.error=Hm("Error"),Ym.function=Gm("function"),Ym.generator=t=>Ym.iterable(t)&&Ym.function(t.next)&&Ym.function(t.throw),Ym.generatorFunction=Hm("GeneratorFunction"),Ym.instanceOf=(t,e)=>!(!t||!e)&&Object.getPrototypeOf(t)===e.prototype,Ym.iterable=t=>!Ym.nullOrUndefined(t)&&Ym.function(t[Symbol.iterator]),Ym.map=Hm("Map"),Ym.nan=t=>Number.isNaN(t),Ym.null=t=>null===t,Ym.nullOrUndefined=t=>Ym.null(t)||Ym.undefined(t),Ym.number=t=>Gm("number")(t)&&!Ym.nan(t),Ym.numericString=t=>Ym.string(t)&&t.length>0&&!Number.isNaN(Number(t)),Ym.object=t=>!Ym.nullOrUndefined(t)&&(Ym.function(t)||"object"==typeof t),Ym.oneOf=(t,e)=>!!Ym.array(t)&&t.indexOf(e)>-1,Ym.plainFunction=Hm("Function"),Ym.plainObject=t=>{if("Object"!==Um(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.getPrototypeOf({})},Ym.primitive=t=>{return Ym.null(t)||(e=typeof t,qm.includes(e));var e},Ym.promise=Hm("Promise"),Ym.propertyOf=(t,e,n)=>{if(!Ym.object(t)||!e)return!1;const r=t[e];return Ym.function(n)?n(r):Ym.defined(r)},Ym.regexp=Hm("RegExp"),Ym.set=Hm("Set"),Ym.string=Gm("string"),Ym.symbol=Gm("symbol"),Ym.undefined=Gm("undefined"),Ym.weakMap=Hm("WeakMap"),Ym.weakSet=Hm("WeakSet");var Jm=Ym;function Xm(t,e,n){const{actual:r,key:i,previous:o,type:s}=n,a=og(t,i),l=og(e,i);let c=[a,l].every(Jm.number)&&("increased"===s?a<l:a>l);return Jm.undefined(r)||(c=c&&l===r),Jm.undefined(o)||(c=c&&a===o),c}function Qm(t,e,n){const{key:r,type:i,value:o}=n,s=og(t,r),a=og(e,r),l="added"===i?s:a,c="added"===i?a:s;return Jm.nullOrUndefined(o)?[s,a].every(Jm.array)?!c.every(rg(l)):[s,a].every(Jm.plainObject)?(u=Object.keys(l),Object.keys(c).some((t=>!u.includes(t)))):![s,a].every((t=>Jm.primitive(t)&&Jm.defined(t)))&&("added"===i?!Jm.defined(s)&&Jm.defined(a):Jm.defined(s)&&!Jm.defined(a)):Jm.defined(l)?!(!Jm.array(l)&&!Jm.plainObject(l))&&function(t,e,n){return!!ig(t,e)&&([t,e].every(Jm.array)?!t.some(eg(n))&&e.some(eg(n)):[t,e].every(Jm.plainObject)?!Object.entries(t).some(tg(n))&&Object.entries(e).some(tg(n)):e===n)}(l,c,o):Bm(c,o);var u}function Zm(t,e,{key:n}={}){let r=og(t,n),i=og(e,n);if(!ig(r,i))throw new TypeError("Inputs have different types");if(!function(...t){return t.every((t=>Jm.string(t)||Jm.array(t)||Jm.plainObject(t)))}(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Jm.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function tg(t){return([e,n])=>Jm.array(t)?Bm(t,n)||t.some((t=>Bm(t,n)||Jm.array(n)&&rg(n)(t))):Jm.plainObject(t)&&t[e]?!!t[e]&&Bm(t[e],n):Bm(t,n)}function eg(t){return e=>Jm.array(t)?t.some((t=>Bm(t,e)||Jm.array(e)&&rg(e)(t))):Bm(t,e)}function ng(t,e){return Jm.array(t)?t.some((t=>Bm(t,e))):Bm(t,e)}function rg(t){return e=>t.some((t=>Bm(t,e)))}function ig(...t){return t.every(Jm.array)||t.every(Jm.number)||t.every(Jm.plainObject)||t.every(Jm.string)}function og(t,e){return Jm.plainObject(t)||Jm.array(t)?Jm.string(e)?e.split(".").reduce(((t,e)=>t&&t[e]),t):Jm.number(e)?t[e]:t:t}function sg(t,e){if([t,e].some(Jm.nullOrUndefined))throw new Error("Missing required parameters");if(![t,e].every((t=>Jm.plainObject(t)||Jm.array(t))))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return Qm(t,e,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,i)=>{try{const o=og(t,n),s=og(e,n),a=Jm.defined(r),l=Jm.defined(i);if(a||l){const t=l?ng(i,o):!ng(r,o),e=ng(r,s);return t&&e}return[o,s].every(Jm.array)||[o,s].every(Jm.plainObject)?!Bm(o,s):o!==s}catch{return!1}},changedFrom:(n,r,i)=>{if(!Jm.defined(n))return!1;try{const o=og(t,n),s=og(e,n),a=Jm.defined(i);return ng(r,o)&&(a?ng(i,s):!a)}catch{return!1}},decreased:(n,r,i)=>{if(!Jm.defined(n))return!1;try{return Xm(t,e,{key:n,actual:r,previous:i,type:"decreased"})}catch{return!1}},emptied:n=>{try{const[r,i]=Zm(t,e,{key:n});return!!r.length&&!i.length}catch{return!1}},filled:n=>{try{const[r,i]=Zm(t,e,{key:n});return!r.length&&!!i.length}catch{return!1}},increased:(n,r,i)=>{if(!Jm.defined(n))return!1;try{return Xm(t,e,{key:n,actual:r,previous:i,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return Qm(t,e,{key:n,type:"removed",value:r})}catch{return!1}}}}var ag=new Error("Element already at target scroll position"),lg=new Error("Scroll cancelled"),cg=Math.min,ug=Date.now;function pg(t){return function(e,n,r,i){"function"==typeof(r=r||{})&&(i=r,r={}),"function"!=typeof i&&(i=dg);var o=ug(),s=e[t],a=r.ease||hg,l=isNaN(r.duration)?350:+r.duration,c=!1;return s===n?i(ag,e[t]):requestAnimationFrame((function r(u){if(c)return i(lg,e[t]);var p=ug(),h=cg(1,(p-o)/l),d=a(h);e[t]=d*(n-s)+s,h<1?requestAnimationFrame(r):requestAnimationFrame((function(){i(null,e[t])}))})),function(){c=!0}}}function hg(t){return.5*(1-Math.cos(Math.PI*t))}function dg(){}const fg=p({left:pg("scrollLeft"),top:pg("scrollTop")});var mg={exports:{}};!function(t){!function(e,n){t.exports?t.exports=n():e.Scrollparent=n()}(u,(function(){function t(t){var e=getComputedStyle(t,null).getPropertyValue("overflow");return e.indexOf("scroll")>-1||e.indexOf("auto")>-1}return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=e.parentNode;n.parentNode;){if(t(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}}))}(mg);const gg=p(mg.exports);var yg=function(t,e){return t+vg(e)},vg=function(t){return null===t||"boolean"==typeof t||void 0===t?"":"number"==typeof t?t.toString():"string"==typeof t?t:Array.isArray(t)?t.reduce(yg,""):(e=t,Object.prototype.hasOwnProperty.call(e,"props")&&Object.prototype.hasOwnProperty.call(t.props,"children")?vg(t.props.children):"");var e};vg.default=vg;const bg=p(vg);var wg=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||t.$$typeof===xg}(t)},xg="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function kg(t,e){return!1!==e.clone&&e.isMergeableObject(t)?$g((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function Sg(t,e,n){return t.concat(e).map((function(t){return kg(t,n)}))}function Cg(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]));var e}function _g(t,e){try{return e in t}catch(n){return!1}}function $g(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||Sg,n.isMergeableObject=n.isMergeableObject||wg,n.cloneUnlessOtherwiseSpecified=kg;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&Cg(t).forEach((function(e){r[e]=kg(t[e],n)})),Cg(e).forEach((function(i){var o,s;_g(o=t,s=i)&&(!Object.hasOwnProperty.call(o,s)||!Object.propertyIsEnumerable.call(o,s))||(_g(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return $g;var n=e.customMerge(t);return"function"==typeof n?n:$g}(i,n)(t[i],e[i],n):r[i]=kg(e[i],n))})),r}(t,e,n):kg(e,n)}$g.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return $g(t,n,e)}),{})};const Eg=p($g);var Pg,Tg,Ag,jg,Og,Mg,Dg,Ig,Rg,Fg,Lg,Ng,zg,Vg,Bg,Wg={exports:{}},qg={exports:{}},Ug={},Hg={};
|
|
451
|
+
/** @license React v16.13.1
|
|
452
|
+
* react-is.development.js
|
|
453
|
+
*
|
|
454
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
455
|
+
*
|
|
456
|
+
* This source code is licensed under the MIT license found in the
|
|
457
|
+
* LICENSE file in the root directory of this source tree.
|
|
458
|
+
*/
|
|
459
|
+
function Gg(){return Ag||(Ag=1,"production"===process.env.NODE_ENV?qg.exports=function(){if(Pg)return Ug;Pg=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case l:case c:case r:case o:case i:case p:return t;default:switch(t=t&&t.$$typeof){case a:case u:case f:case d:case s:return t;default:return h}}case n:return h}}}function w(t){return b(t)===c}return Ug.AsyncMode=l,Ug.ConcurrentMode=c,Ug.ContextConsumer=a,Ug.ContextProvider=s,Ug.Element=e,Ug.ForwardRef=u,Ug.Fragment=r,Ug.Lazy=f,Ug.Memo=d,Ug.Portal=n,Ug.Profiler=o,Ug.StrictMode=i,Ug.Suspense=p,Ug.isAsyncMode=function(t){return w(t)||b(t)===l},Ug.isConcurrentMode=w,Ug.isContextConsumer=function(t){return b(t)===a},Ug.isContextProvider=function(t){return b(t)===s},Ug.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ug.isForwardRef=function(t){return b(t)===u},Ug.isFragment=function(t){return b(t)===r},Ug.isLazy=function(t){return b(t)===f},Ug.isMemo=function(t){return b(t)===d},Ug.isPortal=function(t){return b(t)===n},Ug.isProfiler=function(t){return b(t)===o},Ug.isStrictMode=function(t){return b(t)===i},Ug.isSuspense=function(t){return b(t)===p},Ug.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===c||t===o||t===i||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===g||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},Ug.typeOf=b,Ug}():qg.exports=(Tg||(Tg=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var m=t.type;switch(m){case l:case c:case r:case o:case i:case p:return m;default:var g=m&&m.$$typeof;switch(g){case a:case u:case f:case d:case s:return g;default:return h}}case n:return h}}}var w=l,x=c,k=a,S=s,C=e,_=u,$=r,E=f,P=d,T=n,A=o,j=i,O=p,M=!1;function D(t){return b(t)===c}Hg.AsyncMode=w,Hg.ConcurrentMode=x,Hg.ContextConsumer=k,Hg.ContextProvider=S,Hg.Element=C,Hg.ForwardRef=_,Hg.Fragment=$,Hg.Lazy=E,Hg.Memo=P,Hg.Portal=T,Hg.Profiler=A,Hg.StrictMode=j,Hg.Suspense=O,Hg.isAsyncMode=function(t){return M||(M=!0),D(t)||b(t)===l},Hg.isConcurrentMode=D,Hg.isContextConsumer=function(t){return b(t)===a},Hg.isContextProvider=function(t){return b(t)===s},Hg.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Hg.isForwardRef=function(t){return b(t)===u},Hg.isFragment=function(t){return b(t)===r},Hg.isLazy=function(t){return b(t)===f},Hg.isMemo=function(t){return b(t)===d},Hg.isPortal=function(t){return b(t)===n},Hg.isProfiler=function(t){return b(t)===o},Hg.isStrictMode=function(t){return b(t)===i},Hg.isSuspense=function(t){return b(t)===p},Hg.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===c||t===o||t===i||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===g||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},Hg.typeOf=b}()),Hg)),qg.exports
|
|
460
|
+
/*
|
|
461
|
+
object-assign
|
|
462
|
+
(c) Sindre Sorhus
|
|
463
|
+
@license MIT
|
|
464
|
+
*/}function Kg(){return Dg?Mg:(Dg=1,Mg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function Yg(){return Rg?Ig:(Rg=1,Ig=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Jg=Gg();Wg.exports=function(){if(zg)return Ng;zg=1;var t=Gg(),e=function(){if(Og)return jg;Og=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return jg=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(r,i){for(var o,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))e.call(o,c)&&(a[c]=o[c]);if(t){s=t(o);for(var u=0;u<s.length;u++)n.call(o,s[u])&&(a[s[u]]=o[s[u]])}}return a},jg}(),n=Kg(),r=Yg(),i=function(){if(Lg)return Fg;Lg=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Kg(),n={},r=Yg();t=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}}function i(i,o,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var u;try{if("function"!=typeof i[c]){var p=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=i[c](o,c,a,s,null,e)}catch(d){u=d}if(!u||u instanceof Error||t((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=l?l():"";t("Failed "+s+" type: "+u.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Fg=i}(),o=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}),Ng=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(t){return f((function(e,r,i,o,s){if("function"!=typeof t)return new d("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=e[r];if(!Array.isArray(a))return new d("Invalid "+o+" `"+s+"` of type `"+v(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var c=t(a,l,i,o,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(t,e,n,r,i){var o=t[e];return a(o)?null:new d("Invalid "+r+" `"+i+"` of type `"+v(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(e,n,r,i,o){var s=e[n];return t.isValidElementType(s)?null:new d("Invalid "+i+" `"+o+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return f((function(e,n,r,i,o){if(!(e[n]instanceof t)){var s=t.name||u;return new d("Invalid "+i+" `"+o+"` of type `"+((a=e[n]).constructor&&a.constructor.name?a.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(t,e,n,r,i){return y(t[e])?null:new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return f((function(e,i,o,s,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],c=v(l);if("object"!==c)return new d("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var u in l)if(r(l,u)){var p=t(l,u,o,s,a+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(t){return Array.isArray(t)?f((function(e,n,r,i,o){for(var s=e[n],a=0;a<t.length;a++)if(h(s,t[a]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===b(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"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."),s)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(i)+" at index "+e+"."),s}return f((function(e,i,o,s,a){for(var l=[],c=0;c<t.length;c++){var u=(0,t[c])(e,i,o,s,a,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new d("Invalid "+s+" `"+a+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return f((function(e,r,i,o,s){var a=e[r],l=v(a);if("object"!==l)return new d("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in t){var u=t[c];if("function"!=typeof u)return g(i,o,s,c,b(u));var p=u(a,c,i,o,s+"."+c,n);if(p)return p}return null}))},exact:function(t){return f((function(i,o,s,a,l){var c=i[o],u=v(c);if("object"!==u)return new d("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var p=e({},i[o],t);for(var h in p){var f=t[h];if(r(t,h)&&"function"!=typeof f)return g(s,a,l,h,b(f));if(!f)return new d("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function f(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function i(i,s,a,c,p,h,f){if(c=c||u,h=h||a,f!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!e[g]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. 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."),e[g]=!0,r++)}}return null==s[a]?i?null===s[a]?new d("The "+p+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new d("The "+p+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:t(s,a,c,p,h)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function m(t){return f((function(e,n,r,i,o,s){var a=e[n];return v(a)!==t?new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,i){return new d((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||a(t))return!0;var e=function(t){var e=t&&(c&&t[c]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function v(t){var e,n=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":(e=t,"symbol"===n||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":n)}function b(t){if(null==t)return""+t;var e=v(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=b(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Ng}()(Jg.isElement,!0)}else Wg.exports=function(){if(Bg)return Vg;Bg=1;var t=Kg();function e(){}function n(){}return n.resetWarningCache=e,Vg=function(){function r(e,n,r,i,o,s){if(s!==t){var a=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 a.name="Invariant Violation",a}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}}()();const Xg=p(Wg.exports);
|
|
465
|
+
/**!
|
|
466
|
+
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
467
|
+
* @version 1.16.1
|
|
468
|
+
* @license
|
|
469
|
+
* Copyright (c) 2016 Federico Zivolo and contributors
|
|
470
|
+
*
|
|
471
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
472
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
473
|
+
* in the Software without restriction, including without limitation the rights
|
|
474
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
475
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
476
|
+
* furnished to do so, subject to the following conditions:
|
|
477
|
+
*
|
|
478
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
479
|
+
* copies or substantial portions of the Software.
|
|
480
|
+
*
|
|
481
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
482
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
483
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
484
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
485
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
486
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
487
|
+
* SOFTWARE.
|
|
488
|
+
*/var Qg="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Zg=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(Qg&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),ty=Qg&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),Zg))}};function ey(t){return t&&"[object Function]"==={}.toString.call(t)}function ny(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function ry(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function iy(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=ny(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:iy(ry(t))}function oy(t){return t&&t.referenceNode?t.referenceNode:t}var sy=Qg&&!(!window.MSInputMethodContext||!document.documentMode),ay=Qg&&/MSIE 10/.test(navigator.userAgent);function ly(t){return 11===t?sy:10===t?ay:sy||ay}function cy(t){if(!t)return document.documentElement;for(var e=ly(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===ny(n,"position")?cy(n):n:t?t.ownerDocument.documentElement:document.documentElement}function uy(t){return null!==t.parentNode?uy(t.parentNode):t}function py(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||r.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&cy(s.firstElementChild)!==s?cy(l):l;var c=uy(t);return c.host?py(c.host,e):py(t,uy(e).host)}function hy(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}return t[e]}function dy(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function fy(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],ly(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function my(t){var e=t.body,n=t.documentElement,r=ly(10)&&getComputedStyle(n);return{height:fy("Height",e,n,r),width:fy("Width",e,n,r)}}var gy=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),yy=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},vy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function by(t){return vy({},t,{right:t.left+t.width,bottom:t.top+t.height})}function wy(t){var e={};try{if(ly(10)){e=t.getBoundingClientRect();var n=hy(t,"top"),r=hy(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(p){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?my(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,a=o.height||t.clientHeight||i.height,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var u=ny(t);l-=dy(u,"x"),c-=dy(u,"y"),i.width-=l,i.height-=c}return by(i)}function xy(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ly(10),i="HTML"===e.nodeName,o=wy(t),s=wy(e),a=iy(t),l=ny(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=by({top:o.top-s.top-c,left:o.left-s.left-u,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);p.top-=c-h,p.bottom-=c-h,p.left-=u-d,p.right-=u-d,p.marginTop=h,p.marginLeft=d}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=hy(e,"top"),i=hy(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(p,e)),p}function ky(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===ny(t,"position"))return!0;var n=ry(t);return!!n&&ky(n)}function Sy(t){if(!t||!t.parentElement||ly())return document.documentElement;for(var e=t.parentElement;e&&"none"===ny(e,"transform");)e=e.parentElement;return e||document.documentElement}function Cy(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?Sy(t):py(t,oy(e));if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=xy(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:hy(n),a=e?0:hy(n,"left");return by({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o})}(s,i);else{var a=void 0;"scrollParent"===r?"BODY"===(a=iy(ry(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===r?t.ownerDocument.documentElement:r;var l=xy(a,s,i);if("HTML"!==a.nodeName||ky(s))o=l;else{var c=my(t.ownerDocument),u=c.height,p=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=p+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function _y(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=Cy(n,r,o,i),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return vy({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return u+(p?"-"+p:"")}function $y(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return xy(n,r?Sy(e):py(e,oy(n)),r)}function Ey(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function Py(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function Ty(t,e,n){n=n.split("-")[0];var r=Ey(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[s]=e[s]+e[l]/2-r[l]/2,i[a]=n===a?e[a]-r[c]:e[Py(a)],i}function Ay(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function jy(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=Ay(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&ey(n)&&(e.offsets.popper=by(e.offsets.popper),e.offsets.reference=by(e.offsets.reference),e=n(e,t))})),e}function Oy(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=$y(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=_y(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Ty(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=jy(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function My(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Dy(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if(void 0!==document.body.style[o])return o}return null}function Iy(){return this.state.isDestroyed=!0,My(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Dy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Ry(t){var e=t.ownerDocument;return e?e.defaultView:window}function Fy(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||Fy(iy(o.parentNode),e,n,r),r.push(o)}function Ly(t,e,n,r){n.updateBound=r,Ry(t).addEventListener("resize",n.updateBound,{passive:!0});var i=iy(t);return Fy(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Ny(){this.state.eventsEnabled||(this.state=Ly(this.reference,this.options,this.state,this.scheduleUpdate))}function zy(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Ry(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Vy(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function By(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Vy(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var Wy=Qg&&/Firefox/i.test(navigator.userAgent);function qy(t,e,n){var r=Ay(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i);return i}var Uy=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Hy=Uy.slice(3);function Gy(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Hy.indexOf(t),r=Hy.slice(n+1).concat(Hy.slice(0,n));return e?r.reverse():r}var Ky={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:yy({},l,o[l]),end:yy({},l,o[l]+o[c]-s[c])};t.offsets.popper=vy({},s,u[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,r=e.offset,i=t.placement,o=t.offsets,s=o.popper,a=o.reference,l=i.split("-")[0];return n=Vy(+r)?[+r,0]:function(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(Ay(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,r){var i=(1===r?!o:o)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return o=i,s=e,a=n,c=+(l=(r=t).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],u=l[2],c?0===u.indexOf("%")?by("%p"===u?s:a)[o]/100*c:"vh"===u||"vw"===u?("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*c:c:r;var r,o,s,a,l,c,u}))}))).forEach((function(t,e){t.forEach((function(n,r){Vy(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}(r,s,a,l),"left"===l?(s.top+=n[0],s.left-=n[1]):"right"===l?(s.top+=n[0],s.left+=n[1]):"top"===l?(s.left+=n[0],s.top-=n[1]):"bottom"===l&&(s.left+=n[0],s.top+=n[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||cy(t.instance.popper);t.instance.reference===n&&(n=cy(n));var r=Dy("transform"),i=t.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var l=Cy(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=s,i[r]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,p={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),yy({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),yy({},n,r)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=vy({},u,p[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(r[l])&&(t.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[a])&&(t.offsets.popper[l]=o(r[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!qy(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",p=u.toLowerCase(),h=l?"left":"top",d=l?"bottom":"right",f=Ey(r)[c];a[d]-f<s[p]&&(t.offsets.popper[p]-=s[p]-(a[d]-f)),a[p]+f>s[d]&&(t.offsets.popper[p]+=a[p]+f-s[d]),t.offsets.popper=by(t.offsets.popper);var m=a[p]+a[c]/2-f/2,g=ny(t.instance.popper),y=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),b=m-t.offsets.popper[p]-y-v;return b=Math.max(Math.min(s[c]-f,b),0),t.arrowElement=r,t.offsets.arrow=(yy(n={},p,Math.round(b)),yy(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(My(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Cy(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=Py(r),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case"flip":s=[r,i];break;case"clockwise":s=Gy(r);break;case"counterclockwise":s=Gy(r,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(r!==a||s.length===l+1)return t;r=t.placement.split("-")[0],i=Py(r);var c=t.offsets.popper,u=t.offsets.reference,p=Math.floor,h="left"===r&&p(c.right)>p(u.left)||"right"===r&&p(c.left)<p(u.right)||"top"===r&&p(c.bottom)>p(u.top)||"bottom"===r&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),f=p(c.right)>p(n.right),m=p(c.top)<p(n.top),g=p(c.bottom)>p(n.bottom),y="left"===r&&d||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(v&&"start"===o&&d||v&&"end"===o&&f||!v&&"start"===o&&m||!v&&"end"===o&&g),w=!!e.flipVariationsByContent&&(v&&"start"===o&&f||v&&"end"===o&&d||!v&&"start"===o&&g||!v&&"end"===o&&m),x=b||w;(h||y||x)&&(t.flipped=!0,(h||y)&&(r=s[l+1]),x&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=vy({},t.offsets.popper,Ty(t.instance.popper,t.offsets.reference,t.placement)),t=jy(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),t.placement=Py(e),t.offsets.popper=by(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!qy(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Ay(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n,r,i,o,s,a,l,c,u,p,h,d,f,m,g,y,v=e.x,b=e.y,w=t.offsets.popper,x=Ay(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,k=void 0!==x?x:e.gpuAcceleration,S=cy(t.instance.popper),C=wy(S),_={position:w.position},$=(i=t,o=window.devicePixelRatio<2||!Wy,s=i.offsets,a=s.popper,l=s.reference,c=Math.round,u=Math.floor,p=function(t){return t},h=c(l.width),d=c(a.width),f=-1!==["left","right"].indexOf(i.placement),m=-1!==i.placement.indexOf("-"),y=o?c:p,{left:(g=o?f||m||h%2==d%2?c:u:p)(h%2==1&&d%2==1&&!m&&o?a.left-1:a.left),top:y(a.top),bottom:y(a.bottom),right:g(a.right)}),E="bottom"===v?"top":"bottom",P="right"===b?"left":"right",T=Dy("transform");if(r="bottom"===E?"HTML"===S.nodeName?-S.clientHeight+$.bottom:-C.height+$.bottom:$.top,n="right"===P?"HTML"===S.nodeName?-S.clientWidth+$.right:-C.width+$.right:$.left,k&&T)_[T]="translate3d("+n+"px, "+r+"px, 0)",_[E]=0,_[P]=0,_.willChange="transform";else{var A="bottom"===E?-1:1,j="right"===P?-1:1;_[E]=r*A,_[P]=n*j,_.willChange=E+", "+P}var O={"x-placement":t.placement};return t.attributes=vy({},O,t.attributes),t.styles=vy({},_,t.styles),t.arrowStyles=vy({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return By(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&By(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=$y(i,e,t,n.positionFixed),s=_y(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),By(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Yy={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ky},Jy=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=ty(this.update.bind(this)),this.options=vy({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(vy({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){r.options.modifiers[e]=vy({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return vy({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&ey(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return gy(t,[{key:"update",value:function(){return Oy.call(this)}},{key:"destroy",value:function(){return Iy.call(this)}},{key:"enableEventListeners",value:function(){return Ny.call(this)}},{key:"disableEventListeners",value:function(){return zy.call(this)}}]),t}();Jy.Utils=("undefined"!=typeof window?window:global).PopperUtils,Jy.placements=Uy,Jy.Defaults=Yy;var Xy=["innerHTML","ownerDocument","style","attributes","nodeValue"],Qy=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],Zy=["bigint","boolean","null","number","string","symbol","undefined"];function tv(t){var e,n=Object.prototype.toString.call(t).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(e=n,Qy.includes(e)?n:void 0)}function ev(t){return function(e){return tv(e)===t}}function nv(t){return function(e){return typeof e===t}}function rv(t){if(null===t)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return rv.array(t)?"Array":rv.plainFunction(t)?"Function":tv(t)||"Object"}function iv(t){return function(e){return typeof e===t}}rv.array=Array.isArray,rv.arrayOf=function(t,e){return!(!rv.array(t)&&!rv.function(e))&&t.every((function(t){return e(t)}))},rv.asyncGeneratorFunction=function(t){return"AsyncGeneratorFunction"===tv(t)},rv.asyncFunction=ev("AsyncFunction"),rv.bigint=nv("bigint"),rv.boolean=function(t){return!0===t||!1===t},rv.date=ev("Date"),rv.defined=function(t){return!rv.undefined(t)},rv.domElement=function(t){return rv.object(t)&&!rv.plainObject(t)&&1===t.nodeType&&rv.string(t.nodeName)&&Xy.every((function(e){return e in t}))},rv.empty=function(t){return rv.string(t)&&0===t.length||rv.array(t)&&0===t.length||rv.object(t)&&!rv.map(t)&&!rv.set(t)&&0===Object.keys(t).length||rv.set(t)&&0===t.size||rv.map(t)&&0===t.size},rv.error=ev("Error"),rv.function=nv("function"),rv.generator=function(t){return rv.iterable(t)&&rv.function(t.next)&&rv.function(t.throw)},rv.generatorFunction=ev("GeneratorFunction"),rv.instanceOf=function(t,e){return!(!t||!e)&&Object.getPrototypeOf(t)===e.prototype},rv.iterable=function(t){return!rv.nullOrUndefined(t)&&rv.function(t[Symbol.iterator])},rv.map=ev("Map"),rv.nan=function(t){return Number.isNaN(t)},rv.null=function(t){return null===t},rv.nullOrUndefined=function(t){return rv.null(t)||rv.undefined(t)},rv.number=function(t){return nv("number")(t)&&!rv.nan(t)},rv.numericString=function(t){return rv.string(t)&&t.length>0&&!Number.isNaN(Number(t))},rv.object=function(t){return!rv.nullOrUndefined(t)&&(rv.function(t)||"object"==typeof t)},rv.oneOf=function(t,e){return!!rv.array(t)&&t.indexOf(e)>-1},rv.plainFunction=ev("Function"),rv.plainObject=function(t){if("Object"!==tv(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.getPrototypeOf({})},rv.primitive=function(t){return rv.null(t)||(e=typeof t,Zy.includes(e));var e},rv.promise=ev("Promise"),rv.propertyOf=function(t,e,n){if(!rv.object(t)||!e)return!1;var r=t[e];return rv.function(n)?n(r):rv.defined(r)},rv.regexp=ev("RegExp"),rv.set=ev("Set"),rv.string=nv("string"),rv.symbol=nv("symbol"),rv.undefined=nv("undefined"),rv.weakMap=ev("WeakMap"),rv.weakSet=ev("WeakSet");var ov=iv("function"),sv=function(t){return"RegExp"===Object.prototype.toString.call(t).slice(8,-1)},av=function(t){return!lv(t)&&!function(t){return null===t}(t)&&(ov(t)||"object"==typeof t)},lv=iv("undefined"),cv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function uv(t,e){if(t===e)return!0;if(t&&av(t)&&e&&av(e)){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)&&Array.isArray(e))return function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=n;0!=r--;)if(!uv(t[r],e[r]))return!1;return!0}(t,e);if(t instanceof Map&&e instanceof Map)return function(t,e){var n,r,i,o;if(t.size!==e.size)return!1;try{for(var s=cv(t.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!e.has(l[0]))return!1}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var c=cv(t.entries()),u=c.next();!u.done;u=c.next())if(!uv((l=u.value)[1],e.get(l[0])))return!1}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return!0}(t,e);if(t instanceof Set&&e instanceof Set)return function(t,e){var n,r;if(t.size!==e.size)return!1;try{for(var i=cv(t.entries()),o=i.next();!o.done;o=i.next()){var s=o.value;if(!e.has(s[0]))return!1}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}(t,e);if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=new DataView(t.buffer),r=new DataView(e.buffer),i=t.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}(t,e);if(sv(t)&&sv(e))return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=n.length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=n.length;0!=i--;){var o=n[i];if(!("_owner"===o&&t.$$typeof||uv(t[o],e[o])))return!1}return!0}return!(!Number.isNaN(t)||!Number.isNaN(e))||t===e}function pv(t,e,n){var r=n.actual,i=n.key,o=n.previous,s=n.type,a=bv(t,i),l=bv(e,i),c=[a,l].every(rv.number)&&("increased"===s?a<l:a>l);return rv.undefined(r)||(c=c&&l===r),rv.undefined(o)||(c=c&&a===o),c}function hv(t,e,n){var r,i=n.key,o=n.type,s=n.value,a=bv(t,i),l=bv(e,i),c="added"===o?a:l,u="added"===o?l:a;return rv.nullOrUndefined(s)?[a,l].every(rv.array)?!u.every(yv(c)):[a,l].every(rv.plainObject)?(r=Object.keys(c),Object.keys(u).some((function(t){return!r.includes(t)}))):![a,l].every((function(t){return rv.primitive(t)&&rv.defined(t)}))&&("added"===o?!rv.defined(a)&&rv.defined(l):rv.defined(a)&&!rv.defined(l)):rv.defined(c)?!(!rv.array(c)&&!rv.plainObject(c))&&function(t,e,n){return!!vv(t,e)&&([t,e].every(rv.array)?!t.some(mv(n))&&e.some(mv(n)):[t,e].every(rv.plainObject)?!Object.entries(t).some(fv(n))&&Object.entries(e).some(fv(n)):e===n)}(c,u,s):uv(u,s)}function dv(t,e,n){var r=(void 0===n?{}:n).key,i=bv(t,r),o=bv(e,r);if(!vv(i,o))throw new TypeError("Inputs have different types");if(!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every((function(t){return rv.string(t)||rv.array(t)||rv.plainObject(t)}))}(i,o))throw new TypeError("Inputs don't have length");return[i,o].every(rv.plainObject)&&(i=Object.keys(i),o=Object.keys(o)),[i,o]}function fv(t){return function(e){var n=e[0],r=e[1];return rv.array(t)?uv(t,r)||t.some((function(t){return uv(t,r)||rv.array(r)&&yv(r)(t)})):rv.plainObject(t)&&t[n]?!!t[n]&&uv(t[n],r):uv(t,r)}}function mv(t){return function(e){return rv.array(t)?t.some((function(t){return uv(t,e)||rv.array(e)&&yv(e)(t)})):uv(t,e)}}function gv(t,e){return rv.array(t)?t.some((function(t){return uv(t,e)})):uv(t,e)}function yv(t){return function(e){return t.some((function(t){return uv(t,e)}))}}function vv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every(rv.array)||t.every(rv.number)||t.every(rv.plainObject)||t.every(rv.string)}function bv(t,e){return rv.plainObject(t)||rv.array(t)?rv.string(e)?e.split(".").reduce((function(t,e){return t&&t[e]}),t):rv.number(e)?t[e]:t:t}function wv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wv(Object(n),!0).forEach((function(e){Cv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sv(t,e,n){return e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jv(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cv(t,e,n){return(e=jv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ev(t,e)}function $v(t){return($v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ev(t,e){return(Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Pv(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Tv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Av(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$v(t);if(e){var i=$v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tv(t)}(this,n)}}function jv(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var Ov={flip:{padding:20},preventOverflow:{padding:10}};function Mv(t,e,n){return function(t,e){if("function"!=typeof t)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(e)&&"string"!=typeof e)throw new TypeError("The error message is optional, but must be a string if provided.")}(t,n),function(n,r,i){for(var o=arguments.length,s=new Array(o>3?o-3:0),a=3;a<o;a++)s[a-3]=arguments[a];return c=n,u=r,p=i,("boolean"==typeof(l=e)?l:"function"==typeof l?l(c,u,p):!0===Boolean(l)&&Boolean(l))?function(t,e){return Object.hasOwnProperty.call(t,e)}(n,r)?t.apply(void 0,[n,r,i].concat(s)):function(t,e,n){return new Error("Required ".concat(t[e]," `").concat(e,"` was not specified in `").concat(n,"`."))}(n,r,i):t.apply(void 0,[n,r,i].concat(s));var l,c,u,p}}var Dv={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Iv=void 0!==n.createPortal;function Rv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Fv(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Lv(t){var e=t.title,n=t.data,r=t.warn,i=void 0!==r&&r,o=t.debug,s=void 0!==o&&o,a=i?console.warn||console.error:console.log;s&&e&&n&&(Array.isArray(n)?n.forEach((function(t){rv.plainObject(t)&&t.key?a.apply(console,[t.key,t.value]):a.apply(console,[t])})):a.apply(console,[n]))}function Nv(){}var zv=function(){_v(r,e.Component);var t=Av(r);function r(){return kv(this,r),t.apply(this,arguments)}return Sv(r,[{key:"componentDidMount",value:function(){Rv()&&(this.node||this.appendNode(),Iv||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Rv()&&(Iv||this.renderPortal())}},{key:"componentWillUnmount",value:function(){Rv()&&this.node&&(Iv||n.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var t=this.props,e=t.id,n=t.zIndex;this.node||(this.node=document.createElement("div"),e&&(this.node.id=e),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Rv())return null;var t=this.props,r=t.children,i=t.setRef;return this.node||this.appendNode(),Iv?n.createPortal(r,this.node):(i(n.unstable_renderSubtreeIntoContainer(this,r.length>1?e.createElement("div",null,r):r[0],this.node)),null)}},{key:"renderReact16",value:function(){var t=this.props,e=t.hasChildren,n=t.placement,r=t.target;return e||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return Iv?this.renderReact16():null}}]),r}();Cv(zv,"propTypes",{children:Xg.oneOfType([Xg.element,Xg.array]),hasChildren:Xg.bool,id:Xg.oneOfType([Xg.string,Xg.number]),placement:Xg.string,setRef:Xg.func.isRequired,target:Xg.oneOfType([Xg.object,Xg.string]),zIndex:Xg.number});var Vv=function(){_v(n,e.Component);var t=Av(n);function n(){return kv(this,n),t.apply(this,arguments)}return Sv(n,[{key:"parentStyle",get:function(){var t=this.props,e=t.placement,n=t.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return e.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):e.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):e.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):e.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var t,n=this.props,r=n.placement,i=n.setArrowRef,o=n.styles.arrow,s=o.color,a=o.display,l=o.length,c=o.margin,u=o.position,p=o.spread,h={display:a,position:u},d=p,f=l;return r.startsWith("top")?(t="0,0 ".concat(d/2,",").concat(f," ").concat(d,",0"),h.bottom=0,h.marginLeft=c,h.marginRight=c):r.startsWith("bottom")?(t="".concat(d,",").concat(f," ").concat(d/2,",0 0,").concat(f),h.top=0,h.marginLeft=c,h.marginRight=c):r.startsWith("left")?(f=p,t="0,0 ".concat(d=l,",").concat(f/2," 0,").concat(f),h.right=0,h.marginTop=c,h.marginBottom=c):r.startsWith("right")&&(f=p,t="".concat(d=l,",").concat(f," ").concat(d,",0 0,").concat(f/2),h.left=0,h.marginTop=c,h.marginBottom=c),e.createElement("div",{className:"__floater__arrow",style:this.parentStyle},e.createElement("span",{ref:i,style:h},e.createElement("svg",{width:d,height:f,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.createElement("polygon",{points:t,fill:s}))))}}]),n}();Cv(Vv,"propTypes",{placement:Xg.string.isRequired,setArrowRef:Xg.func.isRequired,styles:Xg.object.isRequired});var Bv=["color","height","width"];function Wv(t){var n=t.handleClick,r=t.styles,i=r.color,o=r.height,s=r.width,a=Pv(r,Bv);return e.createElement("button",{"aria-label":"close",onClick:n,style:a,type:"button"},e.createElement("svg",{width:"".concat(s,"px"),height:"".concat(o,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},e.createElement("g",null,e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:i}))))}function qv(t){var n=t.content,r=t.footer,i=t.handleClick,o=t.open,s=t.positionWrapper,a=t.showCloseButton,l=t.title,c=t.styles,u={content:e.isValidElement(n)?n:e.createElement("div",{className:"__floater__content",style:c.content},n)};return l&&(u.title=e.isValidElement(l)?l:e.createElement("div",{className:"__floater__title",style:c.title},l)),r&&(u.footer=e.isValidElement(r)?r:e.createElement("div",{className:"__floater__footer",style:c.footer},r)),!a&&!s||rv.boolean(o)||(u.close=e.createElement(Wv,{styles:c.close,handleClick:i})),e.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}Wv.propTypes={handleClick:Xg.func.isRequired,styles:Xg.object.isRequired},qv.propTypes={content:Xg.node.isRequired,footer:Xg.node,handleClick:Xg.func.isRequired,open:Xg.bool,positionWrapper:Xg.bool.isRequired,showCloseButton:Xg.bool.isRequired,styles:Xg.object.isRequired,title:Xg.node};var Uv=function(){_v(n,e.Component);var t=Av(n);function n(){return kv(this,n),t.apply(this,arguments)}return Sv(n,[{key:"style",get:function(){var t=this.props,e=t.disableAnimation,n=t.component,r=t.placement,i=t.hideArrow,o=t.status,s=t.styles,a=s.arrow.length,l=s.floater,c=s.floaterCentered,u=s.floaterClosing,p=s.floaterOpening,h=s.floaterWithAnimation,d=s.floaterWithComponent,f={};return i||(r.startsWith("top")?f.padding="0 0 ".concat(a,"px"):r.startsWith("bottom")?f.padding="".concat(a,"px 0 0"):r.startsWith("left")?f.padding="0 ".concat(a,"px 0 0"):r.startsWith("right")&&(f.padding="0 0 0 ".concat(a,"px"))),-1!==[Dv.OPENING,Dv.OPEN].indexOf(o)&&(f=xv(xv({},f),p)),o===Dv.CLOSING&&(f=xv(xv({},f),u)),o!==Dv.OPEN||e||(f=xv(xv({},f),h)),"center"===r&&(f=xv(xv({},f),c)),n&&(f=xv(xv({},f),d)),xv(xv({},l),f)}},{key:"render",value:function(){var t=this.props,n=t.component,r=t.handleClick,i=t.hideArrow,o=t.setFloaterRef,s=t.status,a={},l=["__floater"];return a.content=n?e.isValidElement(n)?e.cloneElement(n,{closeFn:r}):n({closeFn:r}):e.createElement(qv,this.props),s===Dv.OPEN&&l.push("__floater__open"),i||(a.arrow=e.createElement(Vv,this.props)),e.createElement("div",{ref:o,className:l.join(" "),style:this.style},e.createElement("div",{className:"__floater__body"},a.content,a.arrow))}}]),n}();Cv(Uv,"propTypes",{component:Xg.oneOfType([Xg.func,Xg.element]),content:Xg.node,disableAnimation:Xg.bool.isRequired,footer:Xg.node,handleClick:Xg.func.isRequired,hideArrow:Xg.bool.isRequired,open:Xg.bool,placement:Xg.string.isRequired,positionWrapper:Xg.bool.isRequired,setArrowRef:Xg.func.isRequired,setFloaterRef:Xg.func.isRequired,showCloseButton:Xg.bool,status:Xg.string.isRequired,styles:Xg.object.isRequired,title:Xg.node});var Hv=function(){_v(n,e.Component);var t=Av(n);function n(){return kv(this,n),t.apply(this,arguments)}return Sv(n,[{key:"render",value:function(){var t,n=this.props,r=n.children,i=n.handleClick,o=n.handleMouseEnter,s=n.handleMouseLeave,a=n.setChildRef,l=n.setWrapperRef,c=n.style,u=n.styles;if(r)if(1===e.Children.count(r))if(e.isValidElement(r)){var p=rv.function(r.type)?"innerRef":"ref";t=e.cloneElement(e.Children.only(r),Cv({},p,a))}else t=e.createElement("span",null,r);else t=r;return t?e.createElement("span",{ref:l,style:xv(xv({},u),c),onClick:i,onMouseEnter:o,onMouseLeave:s},t):null}}]),n}();Cv(Hv,"propTypes",{children:Xg.node,handleClick:Xg.func.isRequired,handleMouseEnter:Xg.func.isRequired,handleMouseLeave:Xg.func.isRequired,setChildRef:Xg.func.isRequired,setWrapperRef:Xg.func.isRequired,style:Xg.object,styles:Xg.object.isRequired});var Gv={zIndex:100},Kv=["arrow","flip","offset"],Yv=["position","top","right","bottom","left"],Jv=function(){_v(n,e.Component);var t=Av(n);function n(e){var r;return kv(this,n),Cv(Tv(r=t.call(this,e)),"setArrowRef",(function(t){r.arrowRef=t})),Cv(Tv(r),"setChildRef",(function(t){r.childRef=t})),Cv(Tv(r),"setFloaterRef",(function(t){r.floaterRef=t})),Cv(Tv(r),"setWrapperRef",(function(t){r.wrapperRef=t})),Cv(Tv(r),"handleTransitionEnd",(function(){var t=r.state.status,e=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:t===Dv.OPENING?Dv.OPEN:Dv.IDLE},(function(){var t=r.state.status;e(t===Dv.OPEN?"open":"close",r.props)}))})),Cv(Tv(r),"handleClick",(function(){var t=r.props,e=t.event,n=t.open;if(!rv.boolean(n)){var i=r.state,o=i.positionWrapper,s=i.status;("click"===r.event||"hover"===r.event&&o)&&(Lv({title:"click",data:[{event:e,status:s===Dv.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}})),Cv(Tv(r),"handleMouseEnter",(function(){var t=r.props,e=t.event,n=t.open;if(!rv.boolean(n)&&!Fv()){var i=r.state.status;"hover"===r.event&&i===Dv.IDLE&&(Lv({title:"mouseEnter",data:[{key:"originalEvent",value:e}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}})),Cv(Tv(r),"handleMouseLeave",(function(){var t=r.props,e=t.event,n=t.eventDelay,i=t.open;if(!rv.boolean(i)&&!Fv()){var o=r.state,s=o.status,a=o.positionWrapper;"hover"===r.event&&(Lv({title:"mouseLeave",data:[{key:"originalEvent",value:e}],debug:r.debug}),n?-1===[Dv.OPENING,Dv.OPEN].indexOf(s)||a||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout((function(){delete r.eventDelayTimeout,r.toggle()}),1e3*n)):r.toggle(Dv.IDLE))}})),r.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:Dv.INIT,statusWrapper:Dv.INIT},r._isMounted=!1,r.hasMounted=!1,Rv()&&window.addEventListener("load",(function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()})),r}return Sv(n,[{key:"componentDidMount",value:function(){if(Rv()){var t=this.state.positionWrapper,e=this.props,n=e.children,r=e.open,i=e.target;this._isMounted=!0,Lv({title:"init",data:{hasChildren:!!n,hasTarget:!!i,isControlled:rv.boolean(r),positionWrapper:t,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&i&&rv.boolean(r)}}},{key:"componentDidUpdate",value:function(t,e){if(Rv()){var n,r=this.props,i=r.autoOpen,o=r.open,s=r.target,a=r.wrapperOptions,l=function(t,e){if([t,e].some(rv.nullOrUndefined))throw new Error("Missing required parameters");if(![t,e].every((function(t){return rv.plainObject(t)||rv.array(t)})))throw new Error("Expected plain objects or array");var n=function(n,r,i){try{var o=bv(t,n),s=bv(e,n),a=rv.defined(r),l=rv.defined(i);if(a||l){var c=l?gv(i,o):!gv(r,o),u=gv(r,s);return c&&u}return[o,s].every(rv.array)||[o,s].every(rv.plainObject)?!uv(o,s):o!==s}catch(p){return!1}};return{added:function(n,r){try{return hv(t,e,{key:n,type:"added",value:r})}catch(i){return!1}},changed:n,changedFrom:function(n,r,i){if(!rv.defined(n))return!1;try{var o=bv(t,n),s=bv(e,n),a=rv.defined(i);return gv(r,o)&&(a?gv(i,s):!a)}catch(l){return!1}},changedTo:function(t,e){return!!rv.defined(t)&&(process.env.NODE_ENV,n(t,e))},decreased:function(n,r,i){if(!rv.defined(n))return!1;try{return pv(t,e,{key:n,actual:r,previous:i,type:"decreased"})}catch(o){return!1}},emptied:function(n){try{var r=dv(t,e,{key:n}),i=r[0],o=r[1];return!!i.length&&!o.length}catch(s){return!1}},filled:function(n){try{var r=dv(t,e,{key:n}),i=r[0],o=r[1];return!i.length&&!!o.length}catch(s){return!1}},increased:function(n,r,i){if(!rv.defined(n))return!1;try{return pv(t,e,{key:n,actual:r,previous:i,type:"increased"})}catch(o){return!1}},removed:function(n,r){try{return hv(t,e,{key:n,type:"removed",value:r})}catch(i){return!1}}}}(e,this.state),c=l.changedFrom,u=l.changed;t.open!==o&&(rv.boolean(o)&&(n=o?Dv.OPENING:Dv.CLOSING),this.toggle(n)),t.wrapperOptions.position===a.position&&t.target===s||this.changeWrapperPosition(this.props),(u("status",Dv.IDLE)&&o||c("status",Dv.INIT,Dv.IDLE)&&i)&&this.toggle(Dv.OPEN),this.popper&&u("status",Dv.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",Dv.OPENING)||u("status",Dv.CLOSING))&&function(t,e,n){var r;r=function(i){n(i),function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,r)}(t,e,r)},function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.addEventListener(e,n,r)}(t,e,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Rv()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,i=r.disableFlip,o=r.getPopper,s=r.hideArrow,a=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:Dv.IDLE});else if(e&&this.floaterRef){var p=this.options,h=p.arrow,d=p.flip,f=p.offset,m=Pv(p,Kv);new Jy(e,this.floaterRef,{placement:l,modifiers:xv({arrow:xv({enabled:!s,element:this.arrowRef},h),flip:xv({enabled:!i,behavior:u},d),offset:xv({offset:"0, ".concat(a,"px")},f)},m),onCreate:function(e){var n;t.popper=e,null!==(n=t.floaterRef)&&void 0!==n&&n.isConnected?(o(e,"floater"),t._isMounted&&t.setState({currentPlacement:e.placement,status:Dv.IDLE}),l!==e.placement&&setTimeout((function(){e.instance.update()}),1)):t.setState({needsUpdate:!0})},onUpdate:function(e){t.popper=e;var n=t.state.currentPlacement;t._isMounted&&e.placement!==n&&t.setState({currentPlacement:e.placement})}})}if(n){var g=rv.undefined(c.offset)?0:c.offset;new Jy(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(g,"px")},flip:{enabled:!1}},onCreate:function(e){t.wrapperPopper=e,t._isMounted&&t.setState({statusWrapper:Dv.IDLE}),o(e,"wrapper"),l!==e.placement&&setTimeout((function(){e.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var t=this;this.floaterRefInterval=setInterval((function(){var e;null!==(e=t.floaterRef)&&void 0!==e&&e.isConnected&&(clearInterval(t.floaterRefInterval),t.setState({needsUpdate:!1}),t.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(t){var e=t.target,n=t.wrapperOptions;this.setState({positionWrapper:n.position&&!!e})}},{key:"toggle",value:function(t){var e=this.state.status===Dv.OPEN?Dv.CLOSING:Dv.OPENING;rv.undefined(t)||(e=t),this.setState({status:e})}},{key:"debug",get:function(){return this.props.debug||Rv()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var t=this.props,e=t.disableHoverToClick,n=t.event;return"hover"===n&&Fv()&&!e?"click":n}},{key:"options",get:function(){var t=this.props.options;return Eg(Ov,t||{})}},{key:"styles",get:function(){var t,e,n=this,r=this.state,i=r.status,o=r.positionWrapper,s=r.statusWrapper,a=this.props.styles,l=Eg({wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:(e=Eg(Gv,a.options||{})).zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:e.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:e},a);if(o&&(t=-1===[Dv.IDLE].indexOf(i)||-1===[Dv.IDLE].indexOf(s)?l.wrapperPosition:this.wrapperPopper.styles,l.wrapper=xv(xv({},l.wrapper),t)),this.target){var c=window.getComputedStyle(this.target);this.wrapperStyles?l.wrapper=xv(xv({},l.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(c.position)&&(this.wrapperStyles={},o||(Yv.forEach((function(t){n.wrapperStyles[t]=c[t]})),l.wrapper=xv(xv({},l.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return l}},{key:"target",get:function(){if(!Rv())return null;var t=this.props.target;return t?rv.domElement(t)?t:document.querySelector(t):this.childRef||this.wrapperRef}},{key:"render",value:function(){var t=this.state,n=t.currentPlacement,r=t.positionWrapper,i=t.status,o=this.props,s=o.children,a=o.component,l=o.content,c=o.disableAnimation,u=o.footer,p=o.hideArrow,h=o.id,d=o.open,f=o.showCloseButton,m=o.style,g=o.target,y=o.title,v=e.createElement(Hv,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},s),b={};return r?b.wrapperInPortal=v:b.wrapperAsChildren=v,e.createElement("span",null,e.createElement(zv,{hasChildren:!!s,id:h,placement:n,setRef:this.setFloaterRef,target:g,zIndex:this.styles.options.zIndex},e.createElement(Uv,{component:a,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===n,open:d,placement:n,positionWrapper:r,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:f,status:i,styles:this.styles,title:y}),b.wrapperInPortal),b.wrapperAsChildren)}}]),n}();Cv(Jv,"propTypes",{autoOpen:Xg.bool,callback:Xg.func,children:Xg.node,component:Mv(Xg.oneOfType([Xg.func,Xg.element]),(function(t){return!t.content})),content:Mv(Xg.node,(function(t){return!t.component})),debug:Xg.bool,disableAnimation:Xg.bool,disableFlip:Xg.bool,disableHoverToClick:Xg.bool,event:Xg.oneOf(["hover","click"]),eventDelay:Xg.number,footer:Xg.node,getPopper:Xg.func,hideArrow:Xg.bool,id:Xg.oneOfType([Xg.string,Xg.number]),offset:Xg.number,open:Xg.bool,options:Xg.object,placement:Xg.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Xg.bool,style:Xg.object,styles:Xg.object,target:Xg.oneOfType([Xg.object,Xg.string]),title:Xg.node,wrapperOptions:Xg.shape({offset:Xg.number,placement:Xg.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Xg.bool})}),Cv(Jv,"defaultProps",{autoOpen:!1,callback:Nv,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Nv,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Xv=Object.defineProperty,Qv=(t,e,n)=>{return o=n,(i="symbol"!=typeof e?e+"":e)in(r=t)?Xv(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var r,i,o},Zv="start",tb="stop",eb="reset",nb="prev",rb="next",ib="close",ob="skip",sb="update",ab={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},lb={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},cb={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function ub(){var t;return!("undefined"==typeof window||!(null==(t=window.document)?void 0:t.createElement))}function pb(t){return t?t.getBoundingClientRect():null}function hb(t=!1){const{body:e,documentElement:n}=document;if(!e||!n)return 0;if(t){const t=[e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort(((t,e)=>t-e)),r=Math.floor(t.length/2);return t.length%2==0?(t[r-1]+t[r])/2:t[r]}return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function db(t){if("string"==typeof t)try{return document.querySelector(t)}catch(e){return process.env.NODE_ENV,null}return t}function fb(t,e,n){if(!t)return yb();const r=gg(t);if(r){if(r.isSameNode(yb()))return n?document:yb();if(!(r.scrollHeight>r.offsetHeight||e))return r.style.overflow="initial",yb()}return r}function mb(t,e){if(!t)return!1;const n=fb(t,e);return!!n&&!n.isSameNode(yb())}function gb(t,e="fixed"){if(!(t&&t instanceof HTMLElement))return!1;const{nodeName:n}=t,r=(i=t)&&1===i.nodeType?getComputedStyle(i):null;var i;return"BODY"!==n&&"HTML"!==n&&(!(!r||r.position!==e)||!!t.parentNode&&gb(t.parentNode,e))}function yb(){var t;return null!=(t=document.scrollingElement)?t:document.documentElement}var vb=void 0!==n.createPortal;function bb(t=navigator.userAgent){let e=t;return"undefined"==typeof window?e="node":document.documentMode?e="ie":/Edge/.test(t)?e="edge":Boolean(window.opera)||t.includes(" OPR/")?e="opera":void 0!==window.InstallTrigger?e="firefox":window.chrome?e="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(t)&&(e="safari"),e}function wb(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function xb(t,n={}){const{defaultValue:r,step:i,steps:o}=n;let s=bg(t);return s?(s.includes("{step}")||s.includes("{steps}"))&&i&&o&&(s=s.replace("{step}",i.toString()).replace("{steps}",o.toString())):s=e.isValidElement(t)&&!Object.values(t.props).length&&"function"===wb(t.type)?xb(t.type({}),n):bg(r),s}function kb(t){const e=t.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,((t,e,n,r)=>e+e+n+n+r+r)),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Sb(t){return t.disableBeacon||"center"===t.placement}function Cb(){return!["chrome","safari","firefox","opera"].includes(bb())}function _b({data:t,debug:e=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;e&&n&&t&&(Array.isArray(t)?t.forEach((t=>{Jm.plainObject(t)&&t.key?i.apply(console,[t.key,t.value]):i.apply(console,[t])})):i.apply(console,[t]))}function $b(t,...e){if(!Jm.plainObject(t))throw new TypeError("Expected an object");const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&(e.includes(r)||(n[r]=t[r]));return n}function Eb(t,n,r){const i=t=>t.replace("{step}",String(n)).replace("{steps}",String(r));if("string"===wb(t))return i(t);if(!e.isValidElement(t))return t;const{children:o}=t.props;return"string"===wb(o)&&o.includes("{step}")?e.cloneElement(t,{children:i(o)}):Array.isArray(o)?e.cloneElement(t,{children:o.map((t=>"string"==typeof t?i(t):Eb(t,n,r)))}):"function"!==wb(t.type)||Object.values(t.props).length?t:Eb(t.type({}),n,r)}var Pb={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},Tb={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Ab={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Tb,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},jb={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Ob={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Mb={borderRadius:4,position:"absolute"};function Db(t){return function(t,...e){if(!Jm.plainObject(t))throw new TypeError("Expected an object");if(!e.length)return t;const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&e.includes(r)&&(n[r]=t[r]);return n}(t,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Ib(t,e){var n,r,i,o,s,a;const l=null!=e?e:{},c=Eg.all([Ab,Db(t),l],{isMergeableObject:Jm.plainObject}),u=function(t,e){var n,r,i,o,s;const{floaterProps:a,styles:l}=t,c=Eg(null!=(n=e.floaterProps)?n:{},null!=a?a:{}),u=Eg(null!=l?l:{},null!=(r=e.styles)?r:{}),p=Eg(jb,u.options||{}),h="center"===e.placement||e.disableBeacon;let{width:d}=p;window.innerWidth>480&&(d=380),"width"in p&&(d="number"==typeof p.width&&window.innerWidth<p.width?window.innerWidth-30:p.width);const f={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:p.zIndex},m={beacon:{...Ob,display:h?"none":"inline-block",height:p.beaconSize,position:"relative",width:p.beaconSize,zIndex:p.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:p.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${kb(p.primaryColor).join(",")}, 0.2)`,border:`2px solid ${p.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:p.backgroundColor,borderRadius:5,boxSizing:"border-box",color:p.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:d},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Ob,backgroundColor:p.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ob,color:p.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ob,color:p.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ob,color:p.textColor,fontSize:14},overlay:{...f,backgroundColor:p.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...f},overlayLegacyCenter:{...f,backgroundColor:p.overlayColor},spotlight:{...Mb,backgroundColor:"gray"},spotlightLegacy:{...Mb,boxShadow:`0 0 0 9999px ${p.overlayColor}, ${p.spotlightShadow}`},floaterStyles:{arrow:{color:null!=(s=null==(o=null==(i=null==c?void 0:c.styles)?void 0:i.arrow)?void 0:o.color)?s:p.arrowColor},options:{zIndex:p.zIndex+100}},options:p};return Eg(m,u)}(t,c),p=mb(db(c.target),c.disableScrollParentFix),h=Eg.all([Pb,null!=(n=t.floaterProps)?n:{},null!=(r=c.floaterProps)?r:{}]);return h.offset=c.offset,h.styles=Eg(null!=(i=h.styles)?i:{},u.floaterStyles),h.offset+=null!=(s=null!=(o=t.spotlightPadding)?o:c.spotlightPadding)?s:0,c.placementBeacon&&h.wrapperOptions&&(h.wrapperOptions.placement=c.placementBeacon),p&&h.options.preventOverflow&&(h.options.preventOverflow.boundariesElement="window"),{...c,locale:Eg.all([Tb,null!=(a=t.locale)?a:{},c.locale||{}]),floaterProps:h,styles:$b(u,"floaterStyles")}}function Rb(t,e=!1){return Jm.plainObject(t)?!!t.target||(_b({title:"validateStep",data:"target is missing from the step",warn:!0,debug:e}),!1):(_b({title:"validateStep",data:"step must be an object",warn:!0,debug:e}),!1)}function Fb(t,e=!1){return Jm.array(t)?t.every((t=>Rb(t,e))):(_b({title:"validateSteps",data:"steps must be an array",warn:!0,debug:e}),!1)}var Lb,Nb={action:"init",controlled:!1,index:0,lifecycle:lb.INIT,origin:null,size:0,status:cb.IDLE},zb=(Lb=$b(Nb,"controlled","size"),Object.keys(Lb)),Vb=class{constructor(t){Qv(this,"beaconPopper"),Qv(this,"tooltipPopper"),Qv(this,"data",new Map),Qv(this,"listener"),Qv(this,"store",new Map),Qv(this,"addListener",(t=>{this.listener=t})),Qv(this,"setSteps",(t=>{const{size:e,status:n}=this.getState(),r={size:t.length,status:n};this.data.set("steps",t),n===cb.WAITING&&!e&&t.length&&(r.status=cb.RUNNING),this.setState(r)})),Qv(this,"getPopper",(t=>"beacon"===t?this.beaconPopper:this.tooltipPopper)),Qv(this,"setPopper",((t,e)=>{"beacon"===t?this.beaconPopper=e:this.tooltipPopper=e})),Qv(this,"cleanupPoppers",(()=>{this.beaconPopper=null,this.tooltipPopper=null})),Qv(this,"close",((t=null)=>{const{index:e,status:n}=this.getState();n===cb.RUNNING&&this.setState({...this.getNextState({action:ib,index:e+1,origin:t})})})),Qv(this,"go",(t=>{const{controlled:e,status:n}=this.getState();if(e||n!==cb.RUNNING)return;const r=this.getSteps()[t];this.setState({...this.getNextState({action:"go",index:t}),status:r?n:cb.FINISHED})})),Qv(this,"info",(()=>this.getState())),Qv(this,"next",(()=>{const{index:t,status:e}=this.getState();e===cb.RUNNING&&this.setState(this.getNextState({action:rb,index:t+1}))})),Qv(this,"open",(()=>{const{status:t}=this.getState();t===cb.RUNNING&&this.setState({...this.getNextState({action:sb,lifecycle:lb.TOOLTIP})})})),Qv(this,"prev",(()=>{const{index:t,status:e}=this.getState();e===cb.RUNNING&&this.setState({...this.getNextState({action:nb,index:t-1})})})),Qv(this,"reset",((t=!1)=>{const{controlled:e}=this.getState();e||this.setState({...this.getNextState({action:eb,index:0}),status:t?cb.RUNNING:cb.READY})})),Qv(this,"skip",(()=>{const{status:t}=this.getState();t===cb.RUNNING&&this.setState({action:ob,lifecycle:lb.INIT,status:cb.SKIPPED})})),Qv(this,"start",(t=>{const{index:e,size:n}=this.getState();this.setState({...this.getNextState({action:Zv,index:Jm.number(t)?t:e},!0),status:n?cb.RUNNING:cb.WAITING})})),Qv(this,"stop",((t=!1)=>{const{index:e,status:n}=this.getState();[cb.FINISHED,cb.SKIPPED].includes(n)||this.setState({...this.getNextState({action:tb,index:e+(t?1:0)}),status:cb.PAUSED})})),Qv(this,"update",(t=>{var e,n,r,i;if(r=t,i=zb,!(Jm.plainObject(r)&&Jm.array(i)&&Object.keys(r).every((t=>i.includes(t)))))throw new Error(`State is not valid. Valid keys: ${zb.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...t,action:null!=(e=t.action)?e:sb,origin:null!=(n=t.origin)?n:null},!0)})}));const{continuous:e=!1,stepIndex:n,steps:r=[]}=null!=t?t:{};this.setState({action:"init",controlled:Jm.number(n),continuous:e,index:Jm.number(n)?n:0,lifecycle:lb.INIT,origin:null,status:r.length?cb.READY:cb.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Nb}}getNextState(t,e=!1){var n,r,i,o,s;const{action:a,controlled:l,index:c,size:u,status:p}=this.getState(),h=Jm.number(t.index)?t.index:c,d=l&&!e?c:Math.min(Math.max(h,0),u);return{action:null!=(n=t.action)?n:a,controlled:l,index:d,lifecycle:null!=(r=t.lifecycle)?r:lb.INIT,origin:null!=(i=t.origin)?i:null,size:null!=(o=t.size)?o:u,status:d===u?cb.FINISHED:null!=(s=t.status)?s:p}}getSteps(){const t=this.data.get("steps");return Array.isArray(t)?t:[]}hasUpdatedState(t){return JSON.stringify(t)!==JSON.stringify(this.getState())}setState(t,e=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:s=null,size:a,status:l}={...n,...t};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",s),this.store.set("size",a),this.store.set("status",l),e&&(this.store.set("controlled",t.controlled),this.store.set("continuous",t.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}},Bb=function({styles:t}){return s.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:t})},Wb=class extends s.Component{constructor(){super(...arguments),Qv(this,"isActive",!1),Qv(this,"resizeTimeout"),Qv(this,"scrollTimeout"),Qv(this,"scrollParent"),Qv(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),Qv(this,"hideSpotlight",(()=>{const{continuous:t,disableOverlay:e,lifecycle:n}=this.props,r=[lb.INIT,lb.BEACON,lb.COMPLETE,lb.ERROR];return e||(t?r.includes(n):n!==lb.TOOLTIP)})),Qv(this,"handleMouseMove",(t=>{const{mouseOverSpotlight:e}=this.state,{height:n,left:r,position:i,top:o,width:s}=this.spotlightStyles,a="fixed"===i?t.clientY:t.pageY,l="fixed"===i?t.clientX:t.pageX,c=l>=r&&l<=r+s&&a>=o&&a<=o+n;c!==e&&this.updateState({mouseOverSpotlight:c})})),Qv(this,"handleScroll",(()=>{const{target:t}=this.props,e=db(t);if(this.scrollParent!==document){const{isScrolling:t}=this.state;t||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.updateState({isScrolling:!1,showSpotlight:!0})}),50)}else gb(e,"sticky")&&this.updateState({})})),Qv(this,"handleResize",(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.isActive&&this.forceUpdate()}),100)}))}componentDidMount(){const{debug:t,disableScrolling:e,disableScrollParentFix:n=!1,target:r}=this.props,i=db(r);this.scrollParent=fb(null!=i?i:document.body,n,!0),this.isActive=!0,"production"!==process.env.NODE_ENV&&!e&&mb(i,!0)&&_b({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:t}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(t){var e;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:s}=sg(t,this.props);if(s("target")||s("disableScrollParentFix")){const t=db(o);this.scrollParent=fb(null!=t?t:document.body,n,!0)}s("lifecycle",lb.TOOLTIP)&&(null==(e=this.scrollParent)||e.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((()=>{const{isScrolling:t}=this.state;t||this.updateState({showSpotlight:!0})}),100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===lb.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==lb.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var t;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(t=this.scrollParent)||t.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:t}=this.state,{disableOverlayClose:e,placement:n,styles:r}=this.props;let i=r.overlay;return Cb()&&(i="center"===n?r.overlayLegacyCenter:r.overlayLegacy),{cursor:e?"default":"pointer",height:hb(),pointerEvents:t?"none":"auto",...i}}get spotlightStyles(){var t,e,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:s=0,styles:a,target:l}=this.props,c=db(l),u=pb(c),p=gb(c),h=function(t,e,n){var r,i,o;const s=pb(t),a=fb(t,n),l=mb(t,n),c=gb(t);let u=0,p=null!=(r=null==s?void 0:s.top)?r:0;return l&&c?p=(null!=(i=null==t?void 0:t.offsetTop)?i:0)-(null!=(o=null==a?void 0:a.scrollTop)?o:0):a instanceof HTMLElement&&(u=a.scrollTop,l||gb(t)||(p+=u),a.isSameNode(yb())||(p+=yb().scrollTop)),Math.floor(p-e)}(c,s,i);return{...Cb()?a.spotlightLegacy:a.spotlight,height:Math.round((null!=(t=null==u?void 0:u.height)?t:0)+2*s),left:Math.round((null!=(e=null==u?void 0:u.left)?e:0)-s),opacity:r?1:0,pointerEvents:o?"none":"auto",position:p?"fixed":"absolute",top:h,transition:"opacity 0.2s",width:Math.round((null!=(n=null==u?void 0:u.width)?n:0)+2*s)}}updateState(t){this.isActive&&this.setState((e=>({...e,...t})))}render(){const{showSpotlight:t}=this.state,{onClickOverlay:e,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a="center"!==n&&t&&s.createElement(Bb,{styles:o});if("safari"===bb()){const{mixBlendMode:t,zIndex:e,...n}=i;a=s.createElement("div",{style:{...n}},a),delete i.backgroundColor}return s.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:e,role:"presentation",style:i},a)}},qb=class extends s.Component{constructor(){super(...arguments),Qv(this,"node",null)}componentDidMount(){const{id:t}=this.props;ub()&&(this.node=document.createElement("div"),this.node.id=t,document.body.appendChild(this.node),vb||this.renderReact15())}componentDidUpdate(){ub()&&(vb||this.renderReact15())}componentWillUnmount(){ub()&&this.node&&(vb||a.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ub())return;const{children:t}=this.props;this.node&&a.unstable_renderSubtreeIntoContainer(this,t,this.node)}renderReact16(){if(!ub()||!vb)return null;const{children:t}=this.props;return this.node?a.createPortal(t,this.node):null}render(){return vb?this.renderReact16():null}},Ub=class{constructor(t,e){if(Qv(this,"element"),Qv(this,"options"),Qv(this,"canBeTabbed",(t=>{const{tabIndex:e}=t;return!(null===e||e<0)&&this.canHaveFocus(t)})),Qv(this,"canHaveFocus",(t=>{const e=t.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(e)&&!t.getAttribute("disabled")||"a"===e&&!!t.getAttribute("href"))&&this.isVisible(t)})),Qv(this,"findValidTabElements",(()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed))),Qv(this,"handleKeyDown",(t=>{const{code:e="Tab"}=this.options;t.code===e&&this.interceptTab(t)})),Qv(this,"interceptTab",(t=>{t.preventDefault();const e=this.findValidTabElements(),{shiftKey:n}=t;if(!e.length)return;let r=document.activeElement?e.indexOf(document.activeElement):0;-1===r||!n&&r+1===e.length?r=0:n&&0===r?r=e.length-1:r+=n?-1:1,e[r].focus()})),Qv(this,"isHidden",(t=>{const e=t.offsetWidth<=0&&t.offsetHeight<=0,n=window.getComputedStyle(t);return!(!e||t.innerHTML)||e&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display")})),Qv(this,"isVisible",(t=>{let e=t;for(;e;)if(e instanceof HTMLElement){if(e===document.body)break;if(this.isHidden(e))return!1;e=e.parentNode}return!0})),Qv(this,"removeScope",(()=>{window.removeEventListener("keydown",this.handleKeyDown)})),Qv(this,"checkFocus",(t=>{document.activeElement!==t&&(t.focus(),window.requestAnimationFrame((()=>this.checkFocus(t))))})),Qv(this,"setFocus",(()=>{const{selector:t}=this.options;if(!t)return;const e=this.element.querySelector(t);e&&window.requestAnimationFrame((()=>this.checkFocus(e)))})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=e,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},Hb=class extends s.Component{constructor(t){if(super(t),Qv(this,"beacon",null),Qv(this,"setBeaconRef",(t=>{this.beacon=t})),t.beaconComponent)return;const e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",t.nonce&&n.setAttribute("nonce",t.nonce),n.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),e.appendChild(n)}componentDidMount(){const{shouldFocus:t}=this.props;"production"!==process.env.NODE_ENV&&Jm.domElement(this.beacon),setTimeout((()=>{Jm.domElement(this.beacon)&&t&&this.beacon.focus()}),0)}componentWillUnmount(){const t=document.getElementById("joyride-beacon-animation");(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}render(){const{beaconComponent:t,continuous:e,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:l,styles:c}=this.props,u=xb(i.open),p={"aria-label":u,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:u};let h;if(t){const i=t;h=s.createElement(i,{continuous:e,index:n,isLastStep:r,size:a,step:l,...p})}else h=s.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},s.createElement("span",{style:c.beaconInner}),s.createElement("span",{style:c.beaconOuter}));return h}},Gb=function({styles:t,...n}){const{color:r,height:i,width:o,...s}=t;return e.createElement("button",{style:s,type:"button",...n},e.createElement("svg",{height:"number"==typeof i?`${i}px`:i,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"==typeof o?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",null,e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))},Kb=function(t){const{backProps:e,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:l,tooltipProps:c}=t,{content:u,hideBackButton:p,hideCloseButton:h,hideFooter:d,showSkipButton:f,styles:m,title:g}=l,y={};return y.primary=s.createElement("button",{"data-test-id":"button-primary",style:m.buttonNext,type:"button",...o}),f&&!i&&(y.skip=s.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:m.buttonSkip,type:"button",...a})),!p&&r>0&&(y.back=s.createElement("button",{"data-test-id":"button-back",style:m.buttonBack,type:"button",...e})),y.close=!h&&s.createElement(Gb,{"data-test-id":"button-close",styles:m.buttonClose,...n}),s.createElement("div",{key:"JoyrideTooltip","aria-label":xb(null!=g?g:u),className:"react-joyride__tooltip",style:m.tooltip,...c},s.createElement("div",{style:m.tooltipContainer},g&&s.createElement("h1",{"aria-label":xb(g),style:m.tooltipTitle},g),s.createElement("div",{style:m.tooltipContent},u)),!d&&s.createElement("div",{style:m.tooltipFooter},s.createElement("div",{style:m.tooltipFooterSpacer},y.skip),y.back,y.primary),y.close)},Yb=class extends s.Component{constructor(){super(...arguments),Qv(this,"handleClickBack",(t=>{t.preventDefault();const{helpers:e}=this.props;e.prev()})),Qv(this,"handleClickClose",(t=>{t.preventDefault();const{helpers:e}=this.props;e.close("button_close")})),Qv(this,"handleClickPrimary",(t=>{t.preventDefault();const{continuous:e,helpers:n}=this.props;e?n.next():n.close("button_primary")})),Qv(this,"handleClickSkip",(t=>{t.preventDefault();const{helpers:e}=this.props;e.skip()})),Qv(this,"getElementsProps",(()=>{const{continuous:t,index:e,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:s,close:a,last:l,next:c,nextLabelWithProgress:u,skip:p}=o.locale,h=xb(s),d=xb(a),f=xb(l),m=xb(c),g=xb(p);let y=a,v=d;if(t){if(y=c,v=m,o.showProgress&&!n){const t=xb(u,{step:e+1,steps:i});y=Eb(u,e+1,i),v=t}n&&(y=l,v=f)}return{backProps:{"aria-label":h,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:h},closeProps:{"aria-label":d,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:d},primaryProps:{"aria-label":v,children:y,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:v},skipProps:{"aria-label":g,children:p,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:g},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}}))}render(){const{continuous:t,index:e,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:l,...c}=o;let u;if(l){const o={...this.getElementsProps(),continuous:t,index:e,isLastStep:n,size:i,step:c,setTooltipRef:r},a=l;u=s.createElement(a,{...o})}else u=s.createElement(Kb,{...this.getElementsProps(),continuous:t,index:e,isLastStep:n,size:i,step:o});return u}},Jb=class extends s.Component{constructor(){super(...arguments),Qv(this,"scope",null),Qv(this,"tooltip",null),Qv(this,"handleClickHoverBeacon",(t=>{const{step:e,store:n}=this.props;"mouseenter"===t.type&&"hover"!==e.event||n.update({lifecycle:lb.TOOLTIP})})),Qv(this,"setTooltipRef",(t=>{this.tooltip=t})),Qv(this,"setPopper",((t,e)=>{var n;const{action:r,lifecycle:i,step:o,store:s}=this.props;"wrapper"===e?s.setPopper("beacon",t):s.setPopper("tooltip",t),s.getPopper("beacon")&&(s.getPopper("tooltip")||"center"===o.placement)&&i===lb.INIT&&s.update({action:r,lifecycle:lb.READY}),(null==(n=o.floaterProps)?void 0:n.getPopper)&&o.floaterProps.getPopper(t,e)})),Qv(this,"renderTooltip",(t=>{const{continuous:e,helpers:n,index:r,size:i,step:o}=this.props;return s.createElement(Yb,{continuous:e,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...t})}))}componentDidMount(){const{debug:t,index:e}=this.props;_b({title:`step:${e}`,data:[{key:"props",value:this.props}],debug:t})}componentDidUpdate(t){var e;const{action:n,callback:r,continuous:i,controlled:o,debug:s,helpers:a,index:l,lifecycle:c,shouldScroll:u,status:p,step:h,store:d}=this.props,{changed:f,changedFrom:m}=sg(t,this.props),g=a.info(),y=i&&n!==ib&&(l>0||n===nb),v=f("action")||f("index")||f("lifecycle")||f("status"),b=m("lifecycle",[lb.TOOLTIP,lb.INIT],lb.INIT),w=f("action",[rb,nb,ob,ib]),x=o&&l===t.index;if(w&&(b||x)&&r({...g,index:t.index,lifecycle:lb.COMPLETE,step:t.step,type:ab.STEP_AFTER}),"center"===h.placement&&p===cb.RUNNING&&f("index")&&n!==Zv&&c===lb.INIT&&d.update({lifecycle:lb.READY}),v){const t=db(h.target);!!t&&function(t){var e;if(!t)return!1;let n=t;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:t,visibility:e}=getComputedStyle(n);if("none"===t||"hidden"===e)return!1}n=null!=(e=n.parentElement)?e:null}return!0}(t)?(m("status",cb.READY,cb.RUNNING)||m("lifecycle",lb.INIT,lb.READY))&&r({...g,step:h,type:ab.STEP_BEFORE}):(r({...g,type:ab.TARGET_NOT_FOUND,step:h}),o||d.update({index:l+(n===nb?-1:1)}))}m("lifecycle",lb.INIT,lb.READY)&&d.update({lifecycle:Sb(h)||y?lb.TOOLTIP:lb.BEACON}),f("index")&&_b({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:s}),f("lifecycle",lb.BEACON)&&r({...g,step:h,type:ab.BEACON}),f("lifecycle",lb.TOOLTIP)&&(r({...g,step:h,type:ab.TOOLTIP}),u&&this.tooltip&&(this.scope=new Ub(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),m("lifecycle",[lb.TOOLTIP,lb.INIT],lb.INIT)&&(null==(e=this.scope)||e.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var t;null==(t=this.scope)||t.removeScope()}get open(){const{lifecycle:t,step:e}=this.props;return Sb(e)||t===lb.TOOLTIP}render(){const{continuous:t,debug:e,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,l=db(a.target);return Rb(a)&&Jm.domElement(l)?s.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},s.createElement(Jv,{...a.floaterProps,component:this.renderTooltip,debug:e,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},s.createElement(Hb,{beaconComponent:a.beaconComponent,continuous:t,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles}))):null}},Xb=class extends s.Component{constructor(t){super(t),Qv(this,"helpers"),Qv(this,"store"),Qv(this,"callback",(t=>{const{callback:e}=this.props;Jm.function(e)&&e(t)})),Qv(this,"handleKeyboard",(t=>{const{index:e,lifecycle:n}=this.state,{steps:r}=this.props,i=r[e];n===lb.TOOLTIP&&"Escape"===t.code&&i&&!i.disableCloseOnEsc&&this.store.close("keyboard")})),Qv(this,"handleClickOverlay",(()=>{const{index:t}=this.state,{steps:e}=this.props;Ib(this.props,e[t]).disableOverlayClose||this.helpers.close("overlay")})),Qv(this,"syncState",(t=>{this.setState(t)}));const{debug:e,getHelpers:n,run:r=!0,stepIndex:i}=t;var o;this.store=(o={...t,controlled:r&&Jm.number(i)},new Vb(o)),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;_b({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:e}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ub())return;const{debug:t,disableCloseOnEsc:e,run:n,steps:r}=this.props,{start:i}=this.store;Fb(r,t)&&n&&i(),e||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(t,e){if(!ub())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:s,run:a,stepIndex:l,steps:c}=this.props,{stepIndex:u,steps:p}=t,{reset:h,setSteps:d,start:f,stop:m,update:g}=this.store,{changed:y}=sg(t,this.props),{changed:v,changedFrom:b}=sg(e,this.state),w=Ib(this.props,c[i]),x=!Bm(p,c),k=Jm.number(l)&&y("stepIndex"),S=db(w.target);if(x&&(Fb(c,s)&&d(c)),y("run")&&(a?f(l):m()),k){let t=Jm.number(u)&&u<l?rb:nb;n===tb&&(t=Zv),[cb.FINISHED,cb.SKIPPED].includes(o)||g({action:n===ib?ib:t,index:l,lifecycle:lb.INIT})}r||o!==cb.RUNNING||0!==i||S||(this.store.update({index:i+1}),this.callback({...this.state,type:ab.TARGET_NOT_FOUND,step:w}));const C={...this.state,index:i,step:w};if(v("action",[rb,nb,ob,ib])&&v("status",cb.PAUSED)){const t=Ib(this.props,c[e.index]);this.callback({...C,index:e.index,lifecycle:lb.COMPLETE,step:t,type:ab.STEP_AFTER})}if(v("status",[cb.FINISHED,cb.SKIPPED])){const t=Ib(this.props,c[e.index]);r||this.callback({...C,index:e.index,lifecycle:lb.COMPLETE,step:t,type:ab.STEP_AFTER}),this.callback({...C,type:ab.TOUR_END,step:t,index:e.index}),h()}else b("status",[cb.IDLE,cb.READY],cb.RUNNING)?this.callback({...C,type:ab.TOUR_START}):(v("status")||v("action",eb))&&this.callback({...C,type:ab.TOUR_STATUS});this.scrollToStep(e)}componentWillUnmount(){const{disableCloseOnEsc:t}=this.props;t||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(t){const{index:e,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=Ib(this.props,c[e]),p=db(u.target),h=function(t){const{isFirstStep:e,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:s}=t;return!o.disableScrolling&&(!e||i||n===lb.TOOLTIP)&&"center"!==o.placement&&(!o.isFixed||!gb(s))&&r!==n&&[lb.BEACON,lb.TOOLTIP].includes(n)}({isFirstStep:0===e,lifecycle:n,previousLifecycle:t.lifecycle,scrollToFirstStep:l,step:u,target:p});if(r===cb.RUNNING&&h){const t=mb(p,o),l=fb(p,o);let c=Math.floor(function(t,e,n){var r;if(!t)return 0;const{offsetTop:i=0,scrollTop:o=0}=null!=(r=gg(t))?r:{};let s=t.getBoundingClientRect().top+o;i&&(mb(t,n)||t.offsetParent!==document.body)&&(s-=i);const a=Math.floor(s-e);return a<0?0:a}(p,a,o))||0;_b({title:"scrollToStep",data:[{key:"index",value:e},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const h=this.store.getPopper("beacon"),d=this.store.getPopper("tooltip");if(n===lb.BEACON&&h){const{offsets:e,placement:n}=h;["bottom"].includes(n)||t||(c=Math.floor(e.popper.top-a))}else if(n===lb.TOOLTIP&&d){const{flipped:e,offsets:n,placement:r}=d;!["top","right","left"].includes(r)||e||t?c-=u.spotlightPadding:c=Math.floor(n.popper.top-a)}c=c>=0?c:0,r===cb.RUNNING&&function(t,e){const{duration:n,element:r}=e;return new Promise(((e,i)=>{const{scrollTop:o}=r,s=t>o?t-o:o-t;fg.top(r,t,{duration:s<100?50:n},(t=>t&&"Element already at target scroll position"!==t.message?i(t):e()))}))}(c,{element:l,duration:s}).then((()=>{setTimeout((()=>{var t;null==(t=this.store.getPopper("tooltip"))||t.instance.update()}),10)}))}}render(){if(!ub())return null;const{index:t,lifecycle:e,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:l}=this.props,c={};if(n===cb.RUNNING&&l[t]){const n=Ib(this.props,l[t]);c.step=s.createElement(Jb,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!n.disableScrolling&&(0!==t||a),step:n,store:this.store}),c.overlay=s.createElement(qb,{id:"react-joyride-portal"},s.createElement(Wb,{...n,continuous:r,debug:i,lifecycle:e,onClickOverlay:this.handleClickOverlay}))}return s.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};Qv(Xb,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var Qb=Xb;exports.Accordion=B,exports.Alert=jr,exports.BaseButtonComponent=T,exports.BaseComponent=P,exports.BaseSpanComponent=j,exports.BaseTextComponent=A,exports.Button=Or,exports.Carousel=({slides:t,interval:n=300})=>{const{cycle:r,setCycle:i,setProgress:o}=Lr(n,t.length),s=e.useCallback((t=>()=>{i(t),o(0)}),[i,o]);return y.jsxs(Mr,{children:[y.jsx(Dr,{$currentIndex:r,children:t.map(((t,e)=>{const n=`slide-${e}`;return y.jsx(Ir,{children:t.content},n)}))}),y.jsx(Fr,{children:t.map(((t,e)=>{const n=`nav-button-${e}`;return y.jsx(Rr,{$isActive:e===r,"data-testid":e===r?"active":"inactive",onClick:s(e)},n)}))})]})},exports.Checkbox=_i,exports.CloudImage=Pa,exports.CodeSnippet=({noCodeMessage:n="Code snippet not available",snippet:i})=>{const o=t.useTheme(),[s,a]=e.useState(!1),[l,c]=e.useState(!0),u=e.useCallback((()=>{a((t=>!t))}),[a]),p=e.useCallback((()=>{if(r.isNil(i)||r.isEmpty(i)||!r.isString(i))return c(!1),n;const t=i.split("\n");return t.length>8&&!s?`${[...t].splice(0,7).join("\n")}\n${t[8]}...`:(t.length<8&&c(!1),i)}),[s,i,n]),h=e.useMemo(p,[p]),d=e.useCallback((async()=>{await navigator.clipboard.writeText(h)}),[h]);return y.jsxs(M,{bgColor:o.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[y.jsx(Ta,{"data-private":!0,children:y.jsx("pre",{children:y.jsx("code",{className:"language-none",children:h})})}),y.jsxs(Aa,{children:[y.jsx(Ar,{height:o.spacing[2.5],icon:"copy",iconColor:o.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:d,variant:"ghost",width:o.spacing[2.5]}),!!l&&y.jsxs(Or,{onClick:u,variant:"ghost",children:[s?"Show Less":"Show more",y.jsx(V,{icon:s?"chevron-up":"chevron-down",iconColor:o.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:d})]})]})]})},exports.Container=M,exports.ContentCard=Da,exports.ContentCardCarousel=({description:t,items:n,title:r,titleHighlighted:i})=>{const o=e.useRef(null);return y.jsxs(Ra,{"data-testid":"content-card-carousel",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[y.jsxs(R,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[r+" "," ",y.jsx("span",{className:"inline",children:i})]}),y.jsx(F,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:t})]}),y.jsx(Fa,{containerRef:o,id:"desktop"})]}),y.jsx(M,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:o,scroll:"x",children:y.jsx(M,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map(((t,e)=>y.jsx(Da,{...t},`${e}-${t.title}`)))})}),y.jsx(Fa,{containerRef:o,id:"mobile"})]})},exports.CustomThemeProvider=({children:e})=>y.jsx(t.ThemeProvider,{theme:v,children:e}),exports.Divider=La,exports.FilePreview=({alt:t,fileType:e,width:n="100%",opacity:i=0,src:o,height:s="auto"})=>"video"===e||((t,e)=>!r.isUndefined(e)&&r.includes(t,(t=>{if(r.isNil(t))return"";const e=t.split(".");return(e.length>1?r.last(e):"").toLowerCase()})(e)))(["webm"],o)?y.jsx(Na,{$opacity:i,children:y.jsxs("video",{controls:!0,height:s,muted:!0,width:n,children:[y.jsx("source",{src:o,type:"video/webm"}),y.jsx(qa,{href:o,iconPosition:"hidden",children:o})]})}):y.jsx(Na,{$opacity:i,children:y.jsx("img",{alt:t,height:s,src:o,width:n})}),exports.FixedTabs=({items:t})=>y.jsx(km,{children:t.map((({isActive:t,label:e,onClick:n},r)=>y.jsx(xm,{className:t?"active":"",onClick:n,type:"button",children:y.jsx(R,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e})},`${e}-${r}`)))}),exports.Form=({children:t,name:e,onSubmit:n,submitDisabled:r,submitLabel:i="Submit"})=>y.jsx(Ua,{"aria-label":e,name:e,onSubmit:n,children:y.jsxs(Ha,{children:[t,y.jsx(Or,{disabled:r,type:"submit",children:i})]})}),exports.FormItem=Ga,exports.Heading=R,exports.Icon=V,exports.IconButton=Ar,exports.InteractiveCard=({category:e,description:n,href:r,icon:i,location:o,title:s})=>{const a=t.useTheme();return y.jsxs($l,{children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(F,{color:a.palette.white,size:"sm",sizeSm:"xs",children:e}),y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:s})]}),y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(F,{color:a.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),y.jsx(F,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:o})]})]}),y.jsxs(M,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:s}),y.jsxs("div",{className:"flex flex-col gap-8",children:[y.jsx(F,{color:a.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),y.jsx(Or,{external:!0,href:r,variant:"link",width:"max-content",children:"Download now"})]})]}),y.jsx(Pl,{icon:i})]})},exports.LanguageSelector=({items:t,handleClick:n,mode:r="light"})=>{const i=t??Dl,[o,s]=e.useState(i[0].text),a=e.useCallback((t=>()=>{n(t.text),s(t.text)}),[n]);return y.jsxs(Ol,{children:[y.jsxs(Al,{className:r,children:[y.jsx(V,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),y.jsx(jl,{children:i.map(((t,e)=>y.jsx(Ml,{disabled:t.disabled,mode:r,onClick:a(t),text:t.text},`${t.text}_${e}`)))})]})},exports.Link=qa,exports.ListItem=({children:n,disabled:r=!1,icon:i,iconType:o="fa-light",href:s,onClick:a,onKeyDown:l,selected:c=!1,value:u,...p})=>{const h=t.useTheme().palette.gray[r?300:800],d=r?e.Children.map(n,(t=>e.isValidElement(t)?e.cloneElement(t,{disabled:r,...t.props}):t)):n;return y.jsxs(Il,{"aria-disabled":r,"aria-label":u,"aria-selected":c,"data-testid":u,onClick:a,onKeyDown:l,value:u,...p,children:[void 0!==i||void 0!==u?y.jsxs(M,{alignItems:"center",display:"flex",gap:.625,children:[i?y.jsx(V,{disabled:r,icon:i,iconColor:h,iconSize:"xs",iconType:o}):null,void 0===s?d:y.jsx(qa,{href:s,children:d})]}):null,c?y.jsx(V,{disabled:r,icon:"check",iconColor:h,iconSize:"xs",iconType:o}):null]})},exports.ListItemsWrapper=Rl,exports.LittleFlag=({bgColor:t,children:e,txtDecoration:n,ml:r=1})=>y.jsx(Fl,{$bgColor:t,$txtDecoration:n,className:`ml-${r}`,children:e}),exports.Logo=({publicId:t,variant:e})=>y.jsx(M,{...Ll[e],children:y.jsx(Pa,{alt:"logo",publicId:t})}),exports.LogoCarousel=({fusion:t=!1,logos:e=Bl})=>y.jsxs(Nl,{children:[t&&y.jsx(zl,{className:"left"}),y.jsx(Vl,{children:[...e,...e].map(((t,e)=>y.jsx(Pa,{alt:`${t}-${e}`,height:"80px",plugins:[vs()],publicId:t,width:"140px"},`${t}-${e}`)))}),t&&y.jsx(zl,{className:"right"})]}),exports.Lottie=t=>{const{size:e}=t;return y.jsx(Ul,{$size:e,...t})},exports.MessageBanner=({message:n,onClickButton:r,buttonText:i,buttonFontWeight:o="regular",icon:s,onClose:a,variant:l="web"})=>{const c=t.useTheme(),[u,p]=e.useState(!0),h=e.useCallback((()=>{p(!1),null==a||a()}),[a]),d=(t=>"platform"===t?{normal:"sm",small:void 0}:{normal:"md",small:"sm"})(l);return y.jsxs(M,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:u?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[y.jsxs(M,{display:"flex",gap:.5,justify:"center",width:"100%",children:[y.jsx(M,{children:"string"==typeof n?y.jsx(F,{color:c.palette.white,display:"inline",size:d.normal,sizeSm:d.small,children:n}):n}),r?y.jsxs(Hl,{onClick:r,children:[y.jsx(F,{color:c.palette.white,fontWeight:o,size:d.normal,sizeSm:d.small,textDecoration:"underline",children:i}),y.jsx(V,{icon:s??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:"bold"===o?"fa-regular":"fa-light"})]}):void 0]}),y.jsx(V,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:h})]})},exports.Notification=({description:n,onClose:r,title:i,variant:o})=>{const s=t.useTheme(),a=e.useCallback((()=>{null==r||r()}),[r]);return y.jsxs(Gl,{$variant:o,className:`notification notification__${o}`,children:[y.jsxs(Kl,{$variant:o,children:[y.jsx(V,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),y.jsx(V,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),y.jsx(V,{icon:Yl(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(M,{pr:1.5,children:[y.jsx(R,{fontWeight:"bold",size:"xs",children:i}),y.jsx(F,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:n})]}),y.jsx(Ar,{height:"fit-content",icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},exports.NotificationSign=Ql,exports.NumberInput=ec,exports.OutlineContainer=Sl,exports.PhoneInput=Cl,exports.PremiumFeature=rc,exports.ProgressBar=({progressTime:n=10,onComplete:r})=>{const i=t.useTheme(),[o,s]=e.useState(0);return e.useEffect((()=>{100===o&&(null==r||r())}),[o,r]),e.useEffect((()=>{const t=setInterval((()=>{s((t=>100===t?0:t+1))}),1e3*n/100);return()=>{clearInterval(t)}}),[o,n]),y.jsx(M,{bgColor:i.palette.gray[200],height:"4px",children:y.jsx(ic,{$animationTime:n,bgGradient:i.palette.gradients["01"],height:"100%",width:`${o}%`})})},exports.RadioButton=ac,exports.SearchBar=({items:t,placeholder:n="Search",refine:r,query:i})=>{const[o,s]=e.useState(i),[a,l]=e.useState(!1),c=e.useRef(null),u=e.useRef(null),p=o.length>=2,h=e.useCallback((t=>{s(t),r(t)}),[r]),d=e.useCallback((()=>{h("")}),[h]),f=e.useCallback((()=>{l(!0)}),[]),m=e.useCallback((t=>{h(t.currentTarget.value)}),[h]),g=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),d(),u.current&&u.current.focus()}),[d]),b=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),u.current&&u.current.blur()}),[]);return Nr(c.current,(()=>{d(),l(!1)}),!0),y.jsxs(uc,{ref:c,children:[y.jsxs(pc,{action:"",noValidate:!0,onReset:g,onSubmit:b,role:"search",children:[y.jsxs("div",{className:"flex gap-2 w-full",children:[y.jsx("div",{className:"h-10 p-2",children:y.jsx(V,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),y.jsx(hc,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:m,onFocus:f,placeholder:n,ref:u,spellCheck:!1,type:"search",value:o})]}),p&&y.jsx(dc,{type:"reset",children:y.jsx(V,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),a&&o.length<2&&y.jsxs(fc,{children:[y.jsx(F,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:gc.map((({hit:t,icon:e},n)=>y.jsx(mc,{hit:t,icon:e,showIcon:!0},`${e}-${n}`)))}),y.jsx(F,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),y.jsx(mc,{hit:yc.hit,icon:yc.icon,showIcon:!0})]}),p&&t.length>0&&y.jsxs(fc,{$showHits:p,children:[y.jsx(F,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:t.map((t=>y.jsx(mc,{hit:t},t.objectID)))})]}),p&&0===t.length&&y.jsx(fc,{$empty:0===t.length,children:y.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[y.jsx(Pa,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),y.jsx(R,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),y.jsxs(F,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${o}” did not match.`,y.jsx("br",{}),"Please try again."]}),y.jsx(Or,{onClick:d,variant:"secondary",children:"Clear search"})]})})]})},exports.SeverityBadge=({textL:e,textR:n,variant:r})=>{const i=t.useTheme(),{bgColor:o,colorL:s,colorR:a}=vc[r];return y.jsxs(M,{alignItems:"flex-start",display:"inline-flex",children:[y.jsx(M,{alignItems:"center",bgColor:i.palette.white,border:`1px solid ${o}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",pb:.125,pl:.25,pr:.25,pt:.125,children:y.jsx(F,{color:s,size:"sm",children:e})}),y.jsx(M,{alignItems:"center",bgColor:o,border:`1px solid ${o}`,borderRadius:"0px 4px 4px 0px",display:"flex",pb:.125,pl:.125,pr:.125,pt:.125,children:y.jsx(F,{color:a,size:"sm",children:n})})]})},exports.SeverityOverview=({critical:t,high:e,medium:n,low:r})=>y.jsxs(M,{alignItems:"center",display:"inline-flex",gap:1,children:[y.jsx(Qc,{value:t,variant:"critical"}),y.jsx(Qc,{value:e,variant:"high"}),y.jsx(Qc,{value:n,variant:"medium"}),y.jsx(Qc,{value:r,variant:"low"})]}),exports.SlideOutMenu=({children:n,closeIconId:r="close-menu",isOpen:i,items:o,onClose:s,primaryButtonText:a,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:u,title:p})=>{const h=t.useTheme(),d=e.useRef(null),f=e.useCallback((t=>()=>{t(),s()}),[s]);return Nr(d.current,(()=>{s()}),!0),y.jsx(cm,{features:pm,children:y.jsx(dm,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:d,transition:{bounce:0,duration:.6,type:"spring"},children:y.jsxs(M,{height:"100%",position:"relative",children:[y.jsxs(M,{alignItems:"center",bgColor:h.palette.white,borderBottom:"1px solid",borderColor:h.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[y.jsx(F,{color:h.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),y.jsx(Ar,{icon:"close",iconColor:h.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:r,onClick:s,px:.25,py:.25,variant:"ghost"})]}),y.jsxs(M,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[y.jsxs(M,{py:1.25,children:[(o??[]).map((({customBadge:t,description:e,icon:n,onClick:r,requiresUpgrade:i,title:o})=>y.jsx(hm,{customBadge:t,description:e,icon:n,onClick:f(r),requiresUpgrade:i,title:o},o))),n&&y.jsx(M,{px:1.25,children:n})]}),void 0===a?void 0:y.jsxs(M,{alignItems:"center",bgColor:h.palette.white,borderColor:h.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[void 0===c?void 0:y.jsx(Or,{color:`${h.palette.primary[500]} !important`,onClick:u,pl:.5,pr:.5,variant:"ghost",children:c}),y.jsx(Or,{onClick:l,type:"submit",children:a})]})]})]})})})},exports.StepLapse=({button:{disabled:t=!1,text:n,type:r="button",onClick:i},steps:o})=>{const[s,a]=e.useState(1),l=e.useCallback(((t,e)=>()=>{a((e=>e+t)),null==e||e()}),[]);return y.jsx(mm,{children:o.map(((e,a)=>{const{content:c,title:u,nextAction:p,previousAction:h}=e,d=a+1,f=d<s?"completed":d===s?"current":"disabled";return y.jsxs(gm,{children:[y.jsx(M,{maxWidth:"40px",position:"relative",children:y.jsx(vm,{$variant:f,children:"completed"===f?y.jsx(V,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):d})}),y.jsxs(M,{ml:1.5,width:"100%",children:[y.jsx(R,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),"current"===f&&y.jsxs(M,{children:[c,y.jsxs(ym,{children:[s>1&&y.jsx(Or,{disabled:e.isDisabledPrevious??!1,onClick:l(-1,h),variant:"tertiary",children:"Previous"}),s<o.length?y.jsx(Or,{disabled:e.isDisabledNext??!1,onClick:l(1,p),variant:"primary",children:"Next step"}):y.jsx(Or,{disabled:t,onClick:i,type:r,variant:"primary",children:n})]})]})]})]},e.title)}))})},exports.Tab=Cm,exports.TableButton=({disabled:e=!1,icon:n,id:r,label:i,name:o,onClick:s,type:a="button",variant:l})=>{const c=t.useTheme(),u=y.jsxs(bm,{"aria-label":o??void 0,className:l,disabled:e,id:r,onClick:s,type:a,children:[y.jsx(V,{clickable:!1,icon:n??wm[l].icon,iconSize:void 0===o?"xxs":"xs",iconType:"fa-light"}),o??void 0]});return y.jsxs(M,{alignItems:"center",display:"flex",children:[u,i&&y.jsx(F,{color:c.palette.gray[800],ml:.5,size:"sm",children:i})]})},exports.Tabs=({items:e,borders:n=!0,box:r=!1})=>{const i=t.useTheme();return y.jsx(M,{bgColor:i.palette.white,border:r?"1px solid":void 0,borderBottom:n?`1px solid ${i.palette.gray[300]}`:void 0,borderColor:r?i.palette.gray[200]:void 0,borderRadius:r?i.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:r?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,width:r?"max-content":"100%",children:e.map((({id:t,isActive:e,link:n,label:r,notificationSign:i,onClick:o,tooltip:s})=>y.jsx(Cm,{id:t,isActive:e,label:r,link:n,notificationSign:i,onClick:o,tooltip:s},t)))})},exports.Tag=({children:t,disabled:e,icon:n,iconColor:r="inherit",id:i="close-tag",fontSize:o,onClose:s,variant:a="default"})=>y.jsxs($m,{$fontSize:o,$variant:a,children:[n&&y.jsx(V,{icon:n,iconColor:r,iconSize:"xs"}),t,s?y.jsx(Ar,{disabled:e,icon:"xmark",iconSize:"xs",iconType:"fa-light",id:i,onClick:s,px:.125,py:.125,variant:"ghost"}):void 0]}),exports.Text=F,exports.TextInput=_l,exports.TimeLine=({items:t})=>y.jsx(Pm,{children:t.map(((t,e)=>y.jsx(Tm,{date:t.date,description:t.description,title:t.title},`${t.title}-${e}`)))}),exports.TimeLineCard=Tm,exports.Toggle=Mm,exports.ToggleButton=({defaultSelection:t,options:n,handleClick:r})=>{const[i,o]=e.useState(t??n[0]),s=e.useCallback((t=>()=>{o(t),r(t)}),[r]);return y.jsx(Dm,{children:n.map(((t,e)=>y.jsx(Im,{className:`${t.includes(i)&&"selected"}`,onClick:s(t),children:y.jsx(F,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:t})},`${t}-${e}`)))})},exports.Tooltip=Tr,exports.Tour=({run:t,steps:n,onFinish:r})=>{const[i,o]=e.useState(t),[s,a]=e.useState(0),l=e.useCallback((t=>{const{action:e,index:n,status:i,type:s}=t;[ab.STEP_AFTER,ab.TARGET_NOT_FOUND].includes(s)?a(n+(e===nb?-1:1)):([cb.FINISHED,cb.SKIPPED].includes(i)||"close"===e)&&(o(!1),Rm(r)||r())}),[r]);return y.jsx(Qb,{callback:l,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:i,spotlightClicks:!0,stepIndex:s,steps:n,styles:{buttonNext:{display:s===n.length-1?"none":"block"},options:{zIndex:9999}}})},exports.baseStep={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},exports.getStyledConfig=E,exports.hiddenProps=c,exports.icons=["lock-keyhole","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","clouds","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],exports.setBorder=S,exports.setDisplay=C,exports.setInteraction=$,exports.setMargin=x,exports.setPadding=w,exports.setPosition=k,exports.setText=_,exports.theme=v,exports.uniqueIcons=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],exports.useCarousel=Lr,exports.useClickOutside=Nr,exports.useCloudinaryImage=ki,exports.variantBuilder=l;
|