elseware-ui 2.2.21 → 2.2.22
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.esm.min.js +24 -0
- package/dist/index.min.js +25 -0
- package/package.json +9 -7
- package/build/components/data-display/avatar/Avatar.d.ts +0 -17
- package/build/components/data-display/badge/Badge.d.ts +0 -16
- package/build/components/data-display/banners/TitleBanner.d.ts +0 -18
- package/build/components/data-display/charts/BarChart.d.ts +0 -10
- package/build/components/data-display/charts/LineChart.d.ts +0 -9
- package/build/components/data-display/charts/PieChart.d.ts +0 -10
- package/build/components/data-display/chip/Chip.d.ts +0 -11
- package/build/components/data-display/colors/Color.d.ts +0 -7
- package/build/components/data-display/colors/ColorMatrix.d.ts +0 -4
- package/build/components/data-display/image/CloudinaryImage.d.ts +0 -10
- package/build/components/data-display/image/Image.d.ts +0 -10
- package/build/components/data-display/image/index.d.ts +0 -3
- package/build/components/data-display/info/Info.d.ts +0 -9
- package/build/components/data-display/lists/List.d.ts +0 -9
- package/build/components/data-display/lists/ListItem.d.ts +0 -15
- package/build/components/data-display/lists/index.d.ts +0 -3
- package/build/components/data-display/price-tag/PriceTag.d.ts +0 -10
- package/build/components/data-display/rating/StarRating.d.ts +0 -11
- package/build/components/data-display/rating/StarRatingDistribution.d.ts +0 -25
- package/build/components/data-display/rating/index.d.ts +0 -3
- package/build/components/data-display/slider/Slider.d.ts +0 -10
- package/build/components/data-display/slider/SliderItem.d.ts +0 -10
- package/build/components/data-display/table/Table.d.ts +0 -17
- package/build/components/data-display/table/TableContent.d.ts +0 -13
- package/build/components/data-display/table/TableRow.d.ts +0 -10
- package/build/components/data-display/tag/Tag.d.ts +0 -8
- package/build/components/data-display/typography/chapter/Chapter.d.ts +0 -14
- package/build/components/data-display/typography/index.d.ts +0 -14
- package/build/components/data-display/typography/link/Link.d.ts +0 -15
- package/build/components/data-display/typography/paragraph/Paragraph.d.ts +0 -14
- package/build/components/data-display/typography/quote/Quote.d.ts +0 -7
- package/build/components/data-display/typography/section/Section.d.ts +0 -14
- package/build/components/data-entry/button/Button.d.ts +0 -20
- package/build/components/data-entry/checkbox/Checkbox.d.ts +0 -9
- package/build/components/data-entry/date-selector/DateSelector.d.ts +0 -9
- package/build/components/data-entry/form/Form.d.ts +0 -11
- package/build/components/data-entry/form/FormResponse.d.ts +0 -12
- package/build/components/data-entry/form/index.d.ts +0 -3
- package/build/components/data-entry/image-input/ImageInput.d.ts +0 -13
- package/build/components/data-entry/image-input/ImageView.d.ts +0 -9
- package/build/components/data-entry/input/Input.d.ts +0 -13
- package/build/components/data-entry/input/InputResponse.d.ts +0 -11
- package/build/components/data-entry/input/index.d.ts +0 -3
- package/build/components/data-entry/multi-image-input/MultiImageInput.d.ts +0 -10
- package/build/components/data-entry/radio/Radio.d.ts +0 -9
- package/build/components/data-entry/rating/StarRatingInput.d.ts +0 -9
- package/build/components/data-entry/rating/index.d.ts +0 -2
- package/build/components/data-entry/select/Select.d.ts +0 -10
- package/build/components/data-entry/switch/Switch.d.ts +0 -11
- package/build/components/data-entry/text-area/TextArea.d.ts +0 -10
- package/build/components/feedback/backdrop/Backdrop.d.ts +0 -8
- package/build/components/feedback/skeleton/Skeleton.d.ts +0 -7
- package/build/components/feedback/toast/Toast.d.ts +0 -9
- package/build/components/feedback/transition/TransitionDropdown.d.ts +0 -9
- package/build/components/feedback/transition/TransitionFadeIn.d.ts +0 -9
- package/build/components/feedback/transition/index.d.ts +0 -7
- package/build/components/general/content-area/ContentArea.d.ts +0 -10
- package/build/components/general/footer-navbar/FooterNavbar.d.ts +0 -4
- package/build/components/general/header-navbar/HeaderNavbar.d.ts +0 -10
- package/build/components/general/sidebar/Sidebar.d.ts +0 -8
- package/build/components/general/sidebar/SidebarToggler.d.ts +0 -7
- package/build/components/general/sidebar/index.d.ts +0 -3
- package/build/components/layout/flex/FlexCol.d.ts +0 -9
- package/build/components/layout/flex/FlexRow.d.ts +0 -9
- package/build/components/layout/flex/index.d.ts +0 -7
- package/build/components/layout/grid/Grid.d.ts +0 -8
- package/build/components/layout/layout/Content.d.ts +0 -9
- package/build/components/layout/layout/Footer.d.ts +0 -7
- package/build/components/layout/layout/Header.d.ts +0 -8
- package/build/components/layout/layout/Layout.d.ts +0 -8
- package/build/components/layout/layout/Sider.d.ts +0 -9
- package/build/components/layout/layout/index.d.ts +0 -6
- package/build/components/navigation/breadcrumb/Breadcrumb.d.ts +0 -13
- package/build/components/navigation/breadcrumb/BreadcrumbItem.d.ts +0 -9
- package/build/components/navigation/breadcrumb/index.d.ts +0 -3
- package/build/components/navigation/header-nav/HeaderNav.d.ts +0 -25
- package/build/components/navigation/header-nav/HeaderNavGroup.d.ts +0 -13
- package/build/components/navigation/header-nav/HeaderNavItem.d.ts +0 -12
- package/build/components/navigation/header-nav/HeaderNavItemContext.d.ts +0 -9
- package/build/components/navigation/header-nav/HeaderNavItemTitle.d.ts +0 -10
- package/build/components/navigation/header-nav/index.d.ts +0 -5
- package/build/components/navigation/menu/MIContext.d.ts +0 -8
- package/build/components/navigation/menu/Menu.d.ts +0 -25
- package/build/components/navigation/menu/MenuGroup.d.ts +0 -11
- package/build/components/navigation/menu/MenuItem.d.ts +0 -17
- package/build/components/navigation/menu/MenuItemTitle.d.ts +0 -9
- package/build/components/navigation/menu/index.d.ts +0 -5
- package/build/components/other/modal/Modal.d.ts +0 -16
- package/build/components/surfaces/accordion/Accordion.d.ts +0 -12
- package/build/components/surfaces/card/Card.d.ts +0 -9
- package/build/components/surfaces/card/CardContent.d.ts +0 -9
- package/build/components/surfaces/card/CardFooter.d.ts +0 -9
- package/build/components/surfaces/card/CardHeader.d.ts +0 -11
- package/build/components/surfaces/card/index.d.ts +0 -5
- package/build/components/theme/ThemeContext.d.ts +0 -14
- package/build/components/theme/ThemeSwitch.d.ts +0 -3
- package/build/components/theme/index.d.ts +0 -3
- package/build/components/utils/AsyncComponentWrapper.d.ts +0 -11
- package/build/components/utils/ShowMore.d.ts +0 -8
- package/build/data/enums.d.ts +0 -48
- package/build/data/meta/currency.d.ts +0 -5
- package/build/data/styles.d.ts +0 -67
- package/build/data/test/test-data.d.ts +0 -20
- package/build/index.d.ts +0 -55
- package/build/index.es.js +0 -33341
- package/build/index.es.js.map +0 -1
- package/build/index.js +0 -33447
- package/build/index.js.map +0 -1
- package/build/layouts/DefaultLayout.d.ts +0 -7
- package/build/utils/hooks/components/useModal.d.ts +0 -6
- package/build/utils/hooks/components/useSider.d.ts +0 -7
- package/build/utils/useClickOutside.d.ts +0 -5
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import*as t from"react";import e,{forwardRef as r,useRef as n,useEffect as o,createContext as i,createRef as a,PureComponent as s,Fragment as c,useState as l,useMemo as u,useContext as d,useImperativeHandle as f,createElement as h,Children as p,useCallback as g,useLayoutEffect as m,Component as b,isValidElement as y,cloneElement as v,useSyncExternalStore as w}from"react";function x(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}x('*,::backdrop,:after,:before{--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:#3b82f680;--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: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-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,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.bg-gradient-light-2{--tw-gradient-from:#f3f4f61a var(--tw-gradient-from-position);--tw-gradient-to:#f3f4f600 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);--tw-gradient-to:#e5e7eb0d var(--tw-gradient-to-position);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-\\[-20px\\]{top:-20px}.top-\\[0\\.7px\\]{top:.7px}.top-\\[10px\\]{top:10px}.top-\\[16px\\]{top:16px}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mb-4{margin-bottom:1rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[10px\\]{height:10px}.h-\\[130px\\]{height:130px}.h-\\[200px\\]{height:200px}.h-\\[20px\\]{height:20px}.h-\\[40px\\]{height:40px}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[90px\\]{height:90px}.h-fit{height:fit-content}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-10{min-height:2.5rem}.min-h-3{min-height:.75rem}.min-h-4{min-height:1rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.min-h-\\[50px\\]{min-height:50px}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[160px\\]{width:160px}.w-\\[300px\\]{width:300px}.w-\\[40px\\]{width:40px}.w-\\[60px\\]{width:60px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-3{min-width:.75rem}.min-w-4{min-width:1rem}.min-w-5{min-width:1.25rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-full{min-width:100%}.max-w-\\[500px\\]{max-width:500px}.max-w-md{max-width:28rem}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-8{--tw-translate-x:2rem}.translate-x-8,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-6{--tw-translate-y:1.5rem}.rotate-180,.translate-y-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{appearance:none}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-\\[2px\\]{gap:2px}.gap-\\[3px\\]{gap:3px}.gap-\\[4px\\]{gap:4px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[\\#0b6b05\\]{--tw-border-opacity:1;border-color:rgb(11 107 5/var(--tw-border-opacity,1))}.border-danger-500{--tw-border-opacity:1;border-color:rgb(220 53 69/var(--tw-border-opacity,1))}.border-dark-300\\/10{border-color:#575c5f1a}.border-dark-300\\/30{border-color:#575c5f4d}.border-dark-400{--tw-border-opacity:1;border-color:rgb(64 69 71/var(--tw-border-opacity,1))}.border-dark-500{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity,1))}.border-dark-500\\/20{border-color:#21252933}.border-dark-500\\/40{border-color:#21252966}.border-dark-800{--tw-border-opacity:1;border-color:rgb(13 14 16/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-50{--tw-border-opacity:1;border-color:rgb(249 250 251/var(--tw-border-opacity,1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-gray-700\\/50{border-color:#37415180}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-gray-800\\/70{border-color:#1f2937b3}.border-info-500{--tw-border-opacity:1;border-color:rgb(13 202 240/var(--tw-border-opacity,1))}.border-info-800{--tw-border-opacity:1;border-color:rgb(5 76 96/var(--tw-border-opacity,1))}.border-light-500{--tw-border-opacity:1;border-color:rgb(248 249 250/var(--tw-border-opacity,1))}.border-light-800{--tw-border-opacity:1;border-color:rgb(98 98 99/var(--tw-border-opacity,1))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.border-primary-500{--tw-border-opacity:1;border-color:rgb(0 4 15/var(--tw-border-opacity,1))}.border-primary-800{--tw-border-opacity:1;border-color:rgb(0 1 6/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-red-800{--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.border-secondary-500{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.border-secondary-800{--tw-border-opacity:1;border-color:rgb(16 122 0/var(--tw-border-opacity,1))}.border-secondary-800\\/40{border-color:#107a0066}.border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.border-success-500{--tw-border-opacity:1;border-color:rgb(25 135 84/var(--tw-border-opacity,1))}.border-success-800{--tw-border-opacity:1;border-color:rgb(10 50 31/var(--tw-border-opacity,1))}.border-transparent{border-color:#0000}.border-warning-500{--tw-border-opacity:1;border-color:rgb(255 193 7/var(--tw-border-opacity,1))}.border-yellow-800{--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity,1))}.border-l-dark-300{--tw-border-opacity:1;border-left-color:rgb(87 92 95/var(--tw-border-opacity,1))}.border-l-gray-400{--tw-border-opacity:1;border-left-color:rgb(156 163 175/var(--tw-border-opacity,1))}.border-l-gray-600{--tw-border-opacity:1;border-left-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-t-dark-400\\/80{border-top-color:#404547cc}.border-opacity-100{--tw-border-opacity:1}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/75{background-color:#000000bf}.bg-dark-500\\/10{background-color:#2125291a}.bg-dark-500\\/40{background-color:#21252966}.bg-dark-600\\/20{background-color:#1a1d2033}.bg-dark-900\\/90{background-color:#070708e6}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.bg-gray-600\\/20{background-color:#4b556333}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-800\\/30{background-color:#1f29374d}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\\/80{background-color:#111827cc}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.bg-green-700\\/20{background-color:#15803d33}.bg-info-600\\/20{background-color:#0aa0c033}.bg-light-600{--tw-bg-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1))}.bg-light-600\\/20{background-color:#c6c7c833}.bg-primary-300\\/10{background-color:#707a931a}.bg-primary-600\\/20{background-color:#00030d33}.bg-red-600\\/20{background-color:#dc262633}.bg-secondary-600\\/20{background-color:#17b80033}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\\/70{background-color:#0f172ab3}.bg-success-600\\/20{background-color:#146b4233}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.bg-yellow-600\\/20{background-color:#ca8a0433}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-danger-600{--tw-gradient-from:#af2a37 var(--tw-gradient-from-position);--tw-gradient-to:#af2a3700 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-300\\/20{--tw-gradient-from:#575c5f33 var(--tw-gradient-from-position);--tw-gradient-to:#575c5f00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-500\\/10{--tw-gradient-from:#2125291a var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-600{--tw-gradient-from:#1a1d20 var(--tw-gradient-from-position);--tw-gradient-to:#1a1d2000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-green-700\\/10{--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-info-600{--tw-gradient-from:#0aa0c0 var(--tw-gradient-from-position);--tw-gradient-to:#0aa0c000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light-600{--tw-gradient-from:#c6c7c8 var(--tw-gradient-from-position);--tw-gradient-to:#c6c7c800 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-600{--tw-gradient-from:#00030d var(--tw-gradient-from-position);--tw-gradient-to:#00030d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-600{--tw-gradient-from:#17b800 var(--tw-gradient-from-position);--tw-gradient-to:#17b80000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/10{--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/20{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-800\\/70{--tw-gradient-from:#1e293bb3 var(--tw-gradient-from-position);--tw-gradient-to:#1e293b00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/50{--tw-gradient-from:#0f172a80 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/70{--tw-gradient-from:#0f172ab3 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-success-600{--tw-gradient-from:#146b42 var(--tw-gradient-from-position);--tw-gradient-to:#146b4200 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-warning-600{--tw-gradient-from:#cc9905 var(--tw-gradient-from-position);--tw-gradient-to:#cc990500 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-danger-500{--tw-gradient-to:#dc3545 var(--tw-gradient-to-position)}.to-dark-100\\/10{--tw-gradient-to:#868a8d1a var(--tw-gradient-to-position)}.to-dark-500{--tw-gradient-to:#212529 var(--tw-gradient-to-position)}.to-info-500{--tw-gradient-to:#0dcaf0 var(--tw-gradient-to-position)}.to-light-500{--tw-gradient-to:#f8f9fa var(--tw-gradient-to-position)}.to-primary-500{--tw-gradient-to:#00040f var(--tw-gradient-to-position)}.to-secondary-500{--tw-gradient-to:#4cd900 var(--tw-gradient-to-position)}.to-success-500{--tw-gradient-to:#198754 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:#0000 var(--tw-gradient-to-position)}.to-warning-500{--tw-gradient-to:#ffc107 var(--tw-gradient-to-position)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-poppins{font-family:Poppins,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[20px\\]{font-size:20px}.text-\\[60px\\]{font-size:60px}.text-\\[8px\\]{font-size:8px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\\[20px\\]{line-height:20px}.leading-\\[25px\\]{line-height:25px}.leading-\\[28px\\]{line-height:28px}.leading-\\[40px\\]{line-height:40px}.leading-\\[50px\\]{line-height:50px}.leading-\\[70px\\]{line-height:70px}.leading-\\[80px\\]{line-height:80px}.leading-\\[90px\\]{line-height:90px}.text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-danger-500{--tw-text-opacity:1;color:rgb(220 53 69/var(--tw-text-opacity,1))}.text-dark-200{--tw-text-opacity:1;color:rgb(111 115 118/var(--tw-text-opacity,1))}.text-dark-50{--tw-text-opacity:1;color:rgb(158 161 164/var(--tw-text-opacity,1))}.text-dark-500{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity,1))}.text-dark-900{--tw-text-opacity:1;color:rgb(7 7 8/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-50{--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-info-500{--tw-text-opacity:1;color:rgb(13 202 240/var(--tw-text-opacity,1))}.text-info-800{--tw-text-opacity:1;color:rgb(5 76 96/var(--tw-text-opacity,1))}.text-light-500{--tw-text-opacity:1;color:rgb(248 249 250/var(--tw-text-opacity,1))}.text-light-800{--tw-text-opacity:1;color:rgb(98 98 99/var(--tw-text-opacity,1))}.text-primary-500{--tw-text-opacity:1;color:rgb(0 4 15/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-secondary-500{--tw-text-opacity:1;color:rgb(76 217 0/var(--tw-text-opacity,1))}.text-secondary-900{--tw-text-opacity:1;color:rgb(10 90 0/var(--tw-text-opacity,1))}.text-success-500{--tw-text-opacity:1;color:rgb(25 135 84/var(--tw-text-opacity,1))}.text-success-800{--tw-text-opacity:1;color:rgb(10 50 31/var(--tw-text-opacity,1))}.text-warning-500{--tw-text-opacity:1;color:rgb(255 193 7/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.placeholder-transparent::placeholder{color:#0000}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.brightness-100{--tw-brightness:brightness(1)}.brightness-100,.brightness-110{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)}.brightness-110{--tw-brightness:brightness(1.1)}.brightness-125{--tw-brightness:brightness(1.25)}.brightness-125,.brightness-50{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)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-75{--tw-brightness:brightness(.75)}.brightness-75,.grayscale{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)}.grayscale{--tw-grayscale:grayscale(100%)}.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)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.duration-\\[200ms\\]{transition-duration:.2s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-\\[2px\\]:after{content:var(--tw-content);left:2px}.after\\:top-\\[2px\\]:after{content:var(--tw-content);top:2px}.after\\:h-5:after{content:var(--tw-content);height:1.25rem}.after\\:w-5:after{content:var(--tw-content);width:1.25rem}.after\\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:border:after{border-width:1px;content:var(--tw-content)}.after\\:border-gray-300:after{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1));content:var(--tw-content)}.after\\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.checked\\:border-primary-400:checked{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.checked\\:bg-secondary-700:checked{--tw-bg-opacity:1;background-color:rgb(20 153 0/var(--tw-bg-opacity,1))}.checked\\:text-white:checked{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.checked\\:before\\:absolute:checked:before{content:var(--tw-content);position:absolute}.checked\\:before\\:left-0:checked:before{content:var(--tw-content);left:0}.checked\\:before\\:top-0:checked:before{content:var(--tw-content);top:0}.checked\\:before\\:flex:checked:before{content:var(--tw-content);display:flex}.checked\\:before\\:h-full:checked:before{content:var(--tw-content);height:100%}.checked\\:before\\:w-full:checked:before{content:var(--tw-content);width:100%}.checked\\:before\\:items-center:checked:before{align-items:center;content:var(--tw-content)}.checked\\:before\\:justify-center:checked:before{content:var(--tw-content);justify-content:center}.checked\\:before\\:text-xs:checked:before{content:var(--tw-content);font-size:.75rem;line-height:1rem}.checked\\:before\\:font-bold:checked:before{content:var(--tw-content);font-weight:700}.checked\\:before\\:text-white:checked:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.checked\\:before\\:content-\\[\\\'\\2713\\\'\\]:checked:before{--tw-content:"✓";content:var(--tw-content)}.placeholder-shown\\:p-3:placeholder-shown{padding:.75rem}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-solid:hover{border-style:solid}.hover\\:border-gray-600:hover{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.hover\\:border-secondary-600:hover{--tw-border-opacity:1;border-color:rgb(23 184 0/var(--tw-border-opacity,1))}.hover\\:bg-dark-400\\/30:hover{background-color:#4045474d}.hover\\:bg-dark-500\\/10:hover{background-color:#2125291a}.hover\\:bg-dark-500\\/40:hover{background-color:#21252966}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\\:bg-gray-900\\/80:hover{background-color:#111827cc}.hover\\:from-dark-500\\/20:hover{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-\\[\\#167d0f\\]\\/50:hover{--tw-shadow-color:#167d0f80;--tw-shadow:var(--tw-shadow-colored)}.hover\\:brightness-100:hover{--tw-brightness:brightness(1)}.hover\\:brightness-100:hover,.hover\\:brightness-110:hover{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)}.hover\\:brightness-110:hover{--tw-brightness:brightness(1.1)}.hover\\:brightness-125:hover{--tw-brightness:brightness(1.25);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)}.focus\\:resize-none:focus{resize:none}.focus\\:border-secondary-500:focus{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.group:hover .group-hover\\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.peer:checked~.peer-checked\\:bg-secondary-600{--tw-bg-opacity:1;background-color:rgb(23 184 0/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:after\\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\\:after\\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1));content:var(--tw-content)}.peer:placeholder-shown~.peer-placeholder-shown\\:top-3{top:.75rem}.peer:placeholder-shown~.peer-placeholder-shown\\:text-base{font-size:1rem;line-height:1.5rem}.peer:focus~.peer-focus\\:outline-none{outline:2px solid #0000;outline-offset:2px}.dark\\:border-dark-200:is(.dark *){--tw-border-opacity:1;border-color:rgb(111 115 118/var(--tw-border-opacity,1))}.dark\\:border-dark-300\\/50:is(.dark *){border-color:#575c5f80}.dark\\:border-primary-400:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.dark\\:border-secondary-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.dark\\:border-secondary-600\\/10:is(.dark *){border-color:#17b8001a}.dark\\:border-secondary-800\\/40:is(.dark *){border-color:#107a0066}.dark\\:border-secondary-900\\/20:is(.dark *){border-color:#0a5a0033}.dark\\:bg-dark-100:is(.dark *){--tw-bg-opacity:1;background-color:rgb(134 138 141/var(--tw-bg-opacity,1))}.dark\\:bg-dark-500:is(.dark *){--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity,1))}.dark\\:bg-gray-600:is(.dark *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.dark\\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:bg-green-700\\/20:is(.dark *){background-color:#15803d33}.dark\\:bg-primary-300\\/10:is(.dark *){background-color:#707a931a}.dark\\:from-green-700\\/10:is(.dark *){--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-light-400\\/10:is(.dark *){--tw-gradient-from:#fbfbfb1a var(--tw-gradient-from-position);--tw-gradient-to:#fbfbfb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-secondary-900\\/10:is(.dark *){--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:to-light-400\\/5:is(.dark *){--tw-gradient-to:#fbfbfb0d var(--tw-gradient-to-position)}.dark\\:text-dark-100:is(.dark *){--tw-text-opacity:1;color:rgb(134 138 141/var(--tw-text-opacity,1))}.dark\\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.dark\\:text-secondary-600:is(.dark *){--tw-text-opacity:1;color:rgb(23 184 0/var(--tw-text-opacity,1))}.hover\\:dark\\:bg-dark-300\\/50:is(.dark *):hover{background-color:#575c5f80}.hover\\:dark\\:bg-green-700\\/20:is(.dark *):hover{background-color:#15803d33}.hover\\:dark\\:from-secondary-900\\/20:is(.dark *):hover{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}@media (min-width:768px){.md\\:pl-\\[300px\\]{padding-left:300px}}@media (min-width:1024px){.lg\\:px-\\[150px\\]{padding-left:150px;padding-right:150px}}');x('*,::backdrop,:after,:before{--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:#3b82f680;--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: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height: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:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-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,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.theme-bg-md{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.theme-bg-md:is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 14 16/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.theme-bg-sm{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(248 249 250/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.theme-bg-sm:is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 22 24/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.theme-text-md{--tw-text-opacity:1;color:rgb(26 29 32/var(--tw-text-opacity,1))}.theme-text-md:is(.dark *){--tw-text-opacity:1;color:rgb(248 249 250/var(--tw-text-opacity,1))}.theme-text-sm{--tw-text-opacity:1;color:rgb(87 92 95/var(--tw-text-opacity,1))}.theme-text-sm:is(.dark *){--tw-text-opacity:1;color:rgb(148 149 150/var(--tw-text-opacity,1))}.theme-shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);--tw-shadow-color:#21252933;--tw-shadow:var(--tw-shadow-colored);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.theme-shadow-lg:is(.dark *){--tw-shadow-color:#107a001a;--tw-shadow:var(--tw-shadow-colored)}.theme-gradient-to-r-sm{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.theme-gradient-to-r-sm:is(.dark *){--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.theme-gradient-to-r-xs{--tw-gradient-from:#2125291a var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.theme-gradient-to-r-xs:is(.dark *){--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.theme-border-md{border-color:#40454780}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.right-0{right:0}.right-2{right:.5rem}.right-3{right:.75rem}.top-0{top:0}.top-\\[-20px\\]{top:-20px}.top-\\[0\\.7px\\]{top:.7px}.top-\\[10px\\]{top:10px}.top-\\[16px\\]{top:16px}.top-full{top:100%}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.mb-4{margin-bottom:1rem}.ml-3{margin-left:.75rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-16{height:4rem}.h-20{height:5rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[10px\\]{height:10px}.h-\\[130px\\]{height:130px}.h-\\[200px\\]{height:200px}.h-\\[20px\\]{height:20px}.h-\\[40px\\]{height:40px}.h-\\[50px\\]{height:50px}.h-\\[60px\\]{height:60px}.h-\\[90px\\]{height:90px}.h-fit{height:fit-content}.h-full{height:100%}.max-h-screen{max-height:100vh}.min-h-10{min-height:2.5rem}.min-h-3{min-height:.75rem}.min-h-4{min-height:1rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.min-h-\\[50px\\]{min-height:50px}.min-h-screen{min-height:100vh}.w-11{width:2.75rem}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\\[160px\\]{width:160px}.w-\\[300px\\]{width:300px}.w-\\[40px\\]{width:40px}.w-\\[60px\\]{width:60px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-3{min-width:.75rem}.min-w-4{min-width:1rem}.min-w-5{min-width:1.25rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.min-w-80{min-width:20rem}.min-w-full{min-width:100%}.max-w-\\[500px\\]{max-width:500px}.max-w-md{max-width:28rem}.flex-shrink-0{flex-shrink:0}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-8{--tw-translate-x:2rem}.translate-x-8,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}.translate-y-6{--tw-translate-y:1.5rem}.rotate-180,.translate-y-6{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate:180deg}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x:.95;--tw-scale-y:.95}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.appearance-none{appearance:none}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.gap-\\[2px\\]{gap:2px}.gap-\\[3px\\]{gap:3px}.gap-\\[4px\\]{gap:4px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-\\[3px\\]{border-width:3px}.border-b{border-bottom-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[\\#0b6b05\\]{--tw-border-opacity:1;border-color:rgb(11 107 5/var(--tw-border-opacity,1))}.border-danger-500{--tw-border-opacity:1;border-color:rgb(220 53 69/var(--tw-border-opacity,1))}.border-dark-300\\/10{border-color:#575c5f1a}.border-dark-300\\/30{border-color:#575c5f4d}.border-dark-400{--tw-border-opacity:1;border-color:rgb(64 69 71/var(--tw-border-opacity,1))}.border-dark-500{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity,1))}.border-dark-500\\/20{border-color:#21252933}.border-dark-500\\/40{border-color:#21252966}.border-dark-800{--tw-border-opacity:1;border-color:rgb(13 14 16/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-gray-50{--tw-border-opacity:1;border-color:rgb(249 250 251/var(--tw-border-opacity,1))}.border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}.border-gray-700\\/50{border-color:#37415180}.border-gray-800{--tw-border-opacity:1;border-color:rgb(31 41 55/var(--tw-border-opacity,1))}.border-gray-800\\/70{border-color:#1f2937b3}.border-info-500{--tw-border-opacity:1;border-color:rgb(13 202 240/var(--tw-border-opacity,1))}.border-info-800{--tw-border-opacity:1;border-color:rgb(5 76 96/var(--tw-border-opacity,1))}.border-light-500{--tw-border-opacity:1;border-color:rgb(248 249 250/var(--tw-border-opacity,1))}.border-light-800{--tw-border-opacity:1;border-color:rgb(98 98 99/var(--tw-border-opacity,1))}.border-primary-400{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.border-primary-500{--tw-border-opacity:1;border-color:rgb(0 4 15/var(--tw-border-opacity,1))}.border-primary-800{--tw-border-opacity:1;border-color:rgb(0 1 6/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-red-800{--tw-border-opacity:1;border-color:rgb(153 27 27/var(--tw-border-opacity,1))}.border-secondary-500{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.border-secondary-800{--tw-border-opacity:1;border-color:rgb(16 122 0/var(--tw-border-opacity,1))}.border-secondary-800\\/40{border-color:#107a0066}.border-slate-700{--tw-border-opacity:1;border-color:rgb(51 65 85/var(--tw-border-opacity,1))}.border-success-500{--tw-border-opacity:1;border-color:rgb(25 135 84/var(--tw-border-opacity,1))}.border-success-800{--tw-border-opacity:1;border-color:rgb(10 50 31/var(--tw-border-opacity,1))}.border-transparent{border-color:#0000}.border-warning-500{--tw-border-opacity:1;border-color:rgb(255 193 7/var(--tw-border-opacity,1))}.border-yellow-800{--tw-border-opacity:1;border-color:rgb(133 77 14/var(--tw-border-opacity,1))}.border-l-dark-300{--tw-border-opacity:1;border-left-color:rgb(87 92 95/var(--tw-border-opacity,1))}.border-l-gray-400{--tw-border-opacity:1;border-left-color:rgb(156 163 175/var(--tw-border-opacity,1))}.border-l-gray-600{--tw-border-opacity:1;border-left-color:rgb(75 85 99/var(--tw-border-opacity,1))}.border-t-dark-400\\/80{border-top-color:#404547cc}.border-opacity-100{--tw-border-opacity:1}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity,1))}.bg-black\\/75{background-color:#000000bf}.bg-dark-500\\/10{background-color:#2125291a}.bg-dark-500\\/40{background-color:#21252966}.bg-dark-600\\/20{background-color:#1a1d2033}.bg-dark-900\\/90{background-color:#070708e6}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}.bg-gray-300{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}.bg-gray-600\\/20{background-color:#4b556333}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.bg-gray-800\\/30{background-color:#1f29374d}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}.bg-gray-900\\/80{background-color:#111827cc}.bg-green-700{--tw-bg-opacity:1;background-color:rgb(21 128 61/var(--tw-bg-opacity,1))}.bg-green-700\\/20{background-color:#15803d33}.bg-info-600\\/20{background-color:#0aa0c033}.bg-light-600{--tw-bg-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1))}.bg-light-600\\/20{background-color:#c6c7c833}.bg-primary-300\\/10{background-color:#707a931a}.bg-primary-600\\/20{background-color:#00030d33}.bg-red-600\\/20{background-color:#dc262633}.bg-secondary-600\\/20{background-color:#17b80033}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(15 23 42/var(--tw-bg-opacity,1))}.bg-slate-900\\/70{background-color:#0f172ab3}.bg-success-600\\/20{background-color:#146b4233}.bg-transparent{background-color:initial}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-yellow-400{--tw-bg-opacity:1;background-color:rgb(250 204 21/var(--tw-bg-opacity,1))}.bg-yellow-600\\/20{background-color:#ca8a0433}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-danger-600{--tw-gradient-from:#af2a37 var(--tw-gradient-from-position);--tw-gradient-to:#af2a3700 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-300\\/20{--tw-gradient-from:#575c5f33 var(--tw-gradient-from-position);--tw-gradient-to:#575c5f00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-500\\/10{--tw-gradient-from:#2125291a var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-dark-600{--tw-gradient-from:#1a1d20 var(--tw-gradient-from-position);--tw-gradient-to:#1a1d2000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-green-700\\/10{--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-info-600{--tw-gradient-from:#0aa0c0 var(--tw-gradient-from-position);--tw-gradient-to:#0aa0c000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-light-600{--tw-gradient-from:#c6c7c8 var(--tw-gradient-from-position);--tw-gradient-to:#c6c7c800 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-primary-600{--tw-gradient-from:#00030d var(--tw-gradient-from-position);--tw-gradient-to:#00030d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-600{--tw-gradient-from:#17b800 var(--tw-gradient-from-position);--tw-gradient-to:#17b80000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/10{--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-secondary-900\\/20{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-800\\/70{--tw-gradient-from:#1e293bb3 var(--tw-gradient-from-position);--tw-gradient-to:#1e293b00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/50{--tw-gradient-from:#0f172a80 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-900\\/70{--tw-gradient-from:#0f172ab3 var(--tw-gradient-from-position);--tw-gradient-to:#0f172a00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-success-600{--tw-gradient-from:#146b42 var(--tw-gradient-from-position);--tw-gradient-to:#146b4200 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-warning-600{--tw-gradient-from:#cc9905 var(--tw-gradient-from-position);--tw-gradient-to:#cc990500 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-danger-500{--tw-gradient-to:#dc3545 var(--tw-gradient-to-position)}.to-dark-100\\/10{--tw-gradient-to:#868a8d1a var(--tw-gradient-to-position)}.to-dark-500{--tw-gradient-to:#212529 var(--tw-gradient-to-position)}.to-info-500{--tw-gradient-to:#0dcaf0 var(--tw-gradient-to-position)}.to-light-500{--tw-gradient-to:#f8f9fa var(--tw-gradient-to-position)}.to-primary-500{--tw-gradient-to:#00040f var(--tw-gradient-to-position)}.to-secondary-500{--tw-gradient-to:#4cd900 var(--tw-gradient-to-position)}.to-success-500{--tw-gradient-to:#198754 var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to:#0000 var(--tw-gradient-to-position)}.to-warning-500{--tw-gradient-to:#ffc107 var(--tw-gradient-to-position)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:.25rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-10{padding-bottom:2.5rem;padding-top:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-poppins{font-family:Poppins,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\\[10px\\]{font-size:10px}.text-\\[12px\\]{font-size:12px}.text-\\[13\\.5px\\]{font-size:13.5px}.text-\\[13px\\]{font-size:13px}.text-\\[14px\\]{font-size:14px}.text-\\[20px\\]{font-size:20px}.text-\\[60px\\]{font-size:60px}.text-\\[8px\\]{font-size:8px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-thin{font-weight:100}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-\\[20px\\]{line-height:20px}.leading-\\[25px\\]{line-height:25px}.leading-\\[28px\\]{line-height:28px}.leading-\\[40px\\]{line-height:40px}.leading-\\[50px\\]{line-height:50px}.leading-\\[70px\\]{line-height:70px}.leading-\\[80px\\]{line-height:80px}.leading-\\[90px\\]{line-height:90px}.text-blue-300{--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity,1))}.text-blue-400{--tw-text-opacity:1;color:rgb(96 165 250/var(--tw-text-opacity,1))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}.text-danger-500{--tw-text-opacity:1;color:rgb(220 53 69/var(--tw-text-opacity,1))}.text-dark-200{--tw-text-opacity:1;color:rgb(111 115 118/var(--tw-text-opacity,1))}.text-dark-50{--tw-text-opacity:1;color:rgb(158 161 164/var(--tw-text-opacity,1))}.text-dark-500{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity,1))}.text-dark-900{--tw-text-opacity:1;color:rgb(7 7 8/var(--tw-text-opacity,1))}.text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.text-gray-50{--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-info-500{--tw-text-opacity:1;color:rgb(13 202 240/var(--tw-text-opacity,1))}.text-info-800{--tw-text-opacity:1;color:rgb(5 76 96/var(--tw-text-opacity,1))}.text-light-500{--tw-text-opacity:1;color:rgb(248 249 250/var(--tw-text-opacity,1))}.text-light-800{--tw-text-opacity:1;color:rgb(98 98 99/var(--tw-text-opacity,1))}.text-primary-500{--tw-text-opacity:1;color:rgb(0 4 15/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-secondary-500{--tw-text-opacity:1;color:rgb(76 217 0/var(--tw-text-opacity,1))}.text-secondary-900{--tw-text-opacity:1;color:rgb(10 90 0/var(--tw-text-opacity,1))}.text-success-500{--tw-text-opacity:1;color:rgb(25 135 84/var(--tw-text-opacity,1))}.text-success-800{--tw-text-opacity:1;color:rgb(10 50 31/var(--tw-text-opacity,1))}.text-warning-500{--tw-text-opacity:1;color:rgb(255 193 7/var(--tw-text-opacity,1))}.text-yellow-500{--tw-text-opacity:1;color:rgb(234 179 8/var(--tw-text-opacity,1))}.text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity,1))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.placeholder-transparent::placeholder{color:#0000}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-80{opacity:.8}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.outline-none{outline:2px solid #0000;outline-offset:2px}.brightness-100{--tw-brightness:brightness(1)}.brightness-100,.brightness-110{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)}.brightness-110{--tw-brightness:brightness(1.1)}.brightness-125{--tw-brightness:brightness(1.25)}.brightness-125,.brightness-50{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)}.brightness-50{--tw-brightness:brightness(.5)}.brightness-75{--tw-brightness:brightness(.75)}.brightness-75,.grayscale{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)}.grayscale{--tw-grayscale:grayscale(100%)}.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)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.duration-700{transition-duration:.7s}.duration-75{transition-duration:75ms}.duration-\\[200ms\\]{transition-duration:.2s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:theme-text-sm::placeholder{--tw-text-opacity:1;color:rgb(87 92 95/var(--tw-text-opacity,1))}.placeholder\\:theme-text-sm:is(.dark *)::placeholder{--tw-text-opacity:1;color:rgb(148 149 150/var(--tw-text-opacity,1))}.odd\\:theme-bg-sm:nth-child(odd){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(248 249 250/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.odd\\:theme-bg-sm:nth-child(odd):is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 22 24/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.even\\:theme-bg-md:nth-child(2n){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(198 199 200/var(--tw-bg-opacity,1));color:rgb(64 69 71/var(--tw-text-opacity,1))}.even\\:theme-bg-md:nth-child(2n):is(.dark *){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(13 14 16/var(--tw-bg-opacity,1));color:rgb(198 199 200/var(--tw-text-opacity,1))}.hover\\:theme-gradient-to-r-sm:hover{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to);background-image:linear-gradient(to right,var(--tw-gradient-stops))}.hover\\:theme-gradient-to-r-sm:hover:is(.dark *){--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-\\[2px\\]:after{content:var(--tw-content);left:2px}.after\\:top-\\[2px\\]:after{content:var(--tw-content);top:2px}.after\\:h-5:after{content:var(--tw-content);height:1.25rem}.after\\:w-5:after{content:var(--tw-content);width:1.25rem}.after\\:rounded-full:after{border-radius:9999px;content:var(--tw-content)}.after\\:border:after{border-width:1px;content:var(--tw-content)}.after\\:border-gray-300:after{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1));content:var(--tw-content)}.after\\:bg-white:after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.checked\\:border-primary-400:checked{--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.checked\\:bg-secondary-700:checked{--tw-bg-opacity:1;background-color:rgb(20 153 0/var(--tw-bg-opacity,1))}.checked\\:text-white:checked{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.checked\\:before\\:absolute:checked:before{content:var(--tw-content);position:absolute}.checked\\:before\\:left-0:checked:before{content:var(--tw-content);left:0}.checked\\:before\\:top-0:checked:before{content:var(--tw-content);top:0}.checked\\:before\\:flex:checked:before{content:var(--tw-content);display:flex}.checked\\:before\\:h-full:checked:before{content:var(--tw-content);height:100%}.checked\\:before\\:w-full:checked:before{content:var(--tw-content);width:100%}.checked\\:before\\:items-center:checked:before{align-items:center;content:var(--tw-content)}.checked\\:before\\:justify-center:checked:before{content:var(--tw-content);justify-content:center}.checked\\:before\\:text-xs:checked:before{content:var(--tw-content);font-size:.75rem;line-height:1rem}.checked\\:before\\:font-bold:checked:before{content:var(--tw-content);font-weight:700}.checked\\:before\\:text-white:checked:before{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1));content:var(--tw-content)}.checked\\:before\\:content-\\[\\\'\\2713\\\'\\]:checked:before{--tw-content:"✓";content:var(--tw-content)}.placeholder-shown\\:p-3:placeholder-shown{padding:.75rem}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-solid:hover{border-style:solid}.hover\\:border-gray-600:hover{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.hover\\:border-secondary-600:hover{--tw-border-opacity:1;border-color:rgb(23 184 0/var(--tw-border-opacity,1))}.hover\\:bg-dark-400\\/30:hover{background-color:#4045474d}.hover\\:bg-dark-500\\/10:hover{background-color:#2125291a}.hover\\:bg-dark-500\\/40:hover{background-color:#21252966}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.hover\\:bg-gray-300:hover{--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity,1))}.hover\\:bg-gray-900\\/80:hover{background-color:#111827cc}.hover\\:from-dark-500\\/20:hover{--tw-gradient-from:#21252933 var(--tw-gradient-from-position);--tw-gradient-to:#21252900 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:shadow-\\[\\#167d0f\\]\\/50:hover{--tw-shadow-color:#167d0f80;--tw-shadow:var(--tw-shadow-colored)}.hover\\:brightness-100:hover{--tw-brightness:brightness(1)}.hover\\:brightness-100:hover,.hover\\:brightness-110:hover{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)}.hover\\:brightness-110:hover{--tw-brightness:brightness(1.1)}.hover\\:brightness-125:hover{--tw-brightness:brightness(1.25);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)}.focus\\:resize-none:focus{resize:none}.focus\\:border-secondary-500:focus{--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid #0000;outline-offset:2px}.group:hover .group-hover\\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.group:hover .group-hover\\:text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.peer:checked~.peer-checked\\:bg-secondary-600{--tw-bg-opacity:1;background-color:rgb(23 184 0/var(--tw-bg-opacity,1))}.peer:checked~.peer-checked\\:after\\:translate-x-full:after{--tw-translate-x:100%;content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer:checked~.peer-checked\\:after\\:border-white:after{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1));content:var(--tw-content)}.peer:placeholder-shown~.peer-placeholder-shown\\:top-3{top:.75rem}.peer:placeholder-shown~.peer-placeholder-shown\\:text-base{font-size:1rem;line-height:1.5rem}.peer:focus~.peer-focus\\:outline-none{outline:2px solid #0000;outline-offset:2px}.dark\\:border-dark-200:is(.dark *){--tw-border-opacity:1;border-color:rgb(111 115 118/var(--tw-border-opacity,1))}.dark\\:border-dark-300\\/50:is(.dark *){border-color:#575c5f80}.dark\\:border-primary-400:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 86 115/var(--tw-border-opacity,1))}.dark\\:border-secondary-500:is(.dark *){--tw-border-opacity:1;border-color:rgb(76 217 0/var(--tw-border-opacity,1))}.dark\\:border-secondary-600\\/10:is(.dark *){border-color:#17b8001a}.dark\\:border-secondary-800\\/40:is(.dark *){border-color:#107a0066}.dark\\:border-secondary-900\\/20:is(.dark *){border-color:#0a5a0033}.dark\\:bg-dark-100:is(.dark *){--tw-bg-opacity:1;background-color:rgb(134 138 141/var(--tw-bg-opacity,1))}.dark\\:bg-dark-500:is(.dark *){--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity,1))}.dark\\:bg-gray-600:is(.dark *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}.dark\\:bg-gray-700:is(.dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.dark\\:bg-gray-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:bg-green-700\\/20:is(.dark *){background-color:#15803d33}.dark\\:bg-primary-300\\/10:is(.dark *){background-color:#707a931a}.dark\\:from-green-700\\/10:is(.dark *){--tw-gradient-from:#15803d1a var(--tw-gradient-from-position);--tw-gradient-to:#15803d00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-light-400\\/10:is(.dark *){--tw-gradient-from:#fbfbfb1a var(--tw-gradient-from-position);--tw-gradient-to:#fbfbfb00 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:from-secondary-900\\/10:is(.dark *){--tw-gradient-from:#0a5a001a var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\\:to-light-400\\/5:is(.dark *){--tw-gradient-to:#fbfbfb0d var(--tw-gradient-to-position)}.dark\\:text-dark-100:is(.dark *){--tw-text-opacity:1;color:rgb(134 138 141/var(--tw-text-opacity,1))}.dark\\:text-gray-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}.dark\\:text-secondary-600:is(.dark *){--tw-text-opacity:1;color:rgb(23 184 0/var(--tw-text-opacity,1))}.hover\\:dark\\:bg-dark-300\\/50:is(.dark *):hover{background-color:#575c5f80}.hover\\:dark\\:bg-green-700\\/20:is(.dark *):hover{background-color:#15803d33}.hover\\:dark\\:from-secondary-900\\/20:is(.dark *):hover{--tw-gradient-from:#0a5a0033 var(--tw-gradient-from-position);--tw-gradient-to:#0a5a0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}@media (min-width:768px){.md\\:pl-\\[300px\\]{padding-left:300px}}@media (min-width:1024px){.lg\\:px-\\[150px\\]{padding-left:150px;padding-right:150px}}');var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function k(t){var e={exports:{}};return t(e,e.exports),e.exports
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/}var E=k((function(t){!function(){var e={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=o(t,n(r)))}return t}function n(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var n="";for(var i in t)e.call(t,i)&&t[i]&&(n=o(n,i));return n}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):window.classNames=r}()})),S={default:"bg-gray-200 text-gray-800 hover:bg-gray-300",primary:"bg-gradient-to-r from-primary-600 to-primary-500 text-gray-50",secondary:"bg-gradient-to-r from-secondary-600 to-secondary-500 text-gray-50",success:"bg-gradient-to-r from-success-600 to-success-500 text-gray-50",danger:"bg-gradient-to-r from-danger-600 to-danger-500 text-gray-50",warning:"bg-gradient-to-r from-warning-600 to-warning-500 text-gray-50",info:"bg-gradient-to-r from-info-600 to-info-500 text-gray-50",light:"bg-gradient-to-r from-light-600 to-light-500 text-gray-900",dark:"bg-gradient-to-r from-dark-600 to-dark-500 text-gray-50"},O={default:"bg-gray-600/20 border border-gray-800 text-gray-900",primary:"bg-primary-600/20 border border-primary-800 text-primary-500",secondary:"bg-secondary-600/20 border border-secondary-800 text-secondary-900",success:"bg-success-600/20 border border-success-800 text-success-800",danger:"bg-red-600/20 border border-red-800 text-red-500",warning:"bg-yellow-600/20 border border-yellow-800 text-yellow-700",info:"bg-info-600/20 border border-info-800 text-info-800",light:"bg-light-600/20 border border-light-800 text-light-800",dark:"bg-dark-600/20 border border-dark-800 text-dark-500"},T={default:"theme-text-md",primary:"text-blue-500",secondary:"text-gray-500",success:"text-green-500",danger:"text-red-500",warning:"text-yellow-500",info:"text-blue-400",light:"text-gray-300",dark:"text-gray-900"},A={default:"bg-transparent border border-gray-300 text-gray-800 hover:bg-gray-100",primary:"bg-transparent border border-primary-500 text-primary-500",secondary:"bg-transparent border border-secondary-500 text-secondary-500",success:"bg-transparent border border-success-500 text-success-500",danger:"bg-transparent border border-danger-500 text-danger-500",warning:"bg-transparent border border-warning-500 text-warning-500",info:"bg-transparent border border-info-500 text-info-500",light:"bg-transparent border border-light-500 text-light-500",dark:"bg-transparent border border-dark-500 text-dark-500"},j={default:"border-gray-300",primary:"border-primary-500",secondary:"border-secondary-500",success:"border-success-500",danger:"border-danger-500",warning:"border-warning-500",info:"border-info-500",light:"border-light-500",dark:"border-dark-500"},P={underline:"underline",overline:"overline",lineThrough:"line-through",noUnderline:"no-underline"},C={blank:"_blank",self:"_self",parent:"_parent",top:"_top"},D={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},M={xs:"w-6 h-6 text-xs",sm:"w-8 h-8 text-sm",md:"w-12 h-12 text-base",lg:"w-16 h-16 text-lg",xl:"w-20 h-20 text-xl"},R=function(t){var r=t.alt,n=t.icon,o=t.children,i=void 0===o?"B":o,a=t.variant,s=void 0===a?"success":a,c=t.shape,l=void 0===c?"circle":c,u=t.size,d=void 0===u?"md":u,f=t.src,h=t.styles,p=t.onClick,g=t.borderVariant,m=void 0!==g&&g;return e.createElement("div",{onClick:p,className:E("inline-flex items-center justify-center text-center overflow-hidden",D[l],M[d],h,m?"border-2 ".concat(j[s]):"".concat(S[s]))},f&&e.createElement("img",{src:f,alt:r,className:"p-1 rounded-full"}),n&&e.createElement("div",null,n),!f&&!n&&i&&i)},I={xs:"min-w-3 min-h-3 text-[8px] px-1",sm:"min-w-4 min-h-4 text-[10px] px-1",md:"min-w-6 min-h-6 text-sm px-2",lg:"min-w-8 min-h-8 text-base px-3",xl:"min-w-10 min-h-10 text-lg px-4"},N={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},F=function(t){var r,n=t.children,o=t.offset,i=t.dot,a=t.count,s=t.variant,c=void 0===s?"success":s,l=t.shape,u=void 0===l?"circle":l,d=t.size,f=void 0===d?"md":d,h=t.showZero,p=void 0===h||h,g=t.styles,m=o?{top:"".concat(o[0],"px"),right:"".concat(o[1],"px")}:{top:"0",right:"0"};return e.createElement("div",{className:"relative w-fit h-fit"},e.createElement("div",{className:E((r={},r["absolute top-0 right-0 badge-offset inline-flex items-center justify-center text-center rounded-full border border-gray-50 z-50"]=!0,r["".concat(S[c])]=c,r["".concat(N[u])]=u,r["".concat(I[f])]=f,r["".concat(g)]=g,r.hidden=!(p||void 0!==a&&0!==a),r)),style:m},!i&&(p||void 0!==a&&0!==a)&&a),n&&n)},z=function(t){var r=t.title,n=void 0===r?"Title":r,o=t.children;return e.createElement("div",{className:"inline-flex items-center justify-between w-full theme-bg-md px-5 py-3"},e.createElement("div",{className:"text-2xl font-semibold theme-text-md rounded-md"},n),e.createElement("div",null,o))},L=function(t){var r=t.title,n=void 0===r?"Title":r,o=t.children;return e.createElement("div",{className:"mb-4 w-full flex flex-row items-center justify-between"},n&&e.createElement("div",{className:"font-bold text-xl theme-text-sm border-l-2 border-l-gray-600 pl-3 py-1"},n),e.createElement("div",null,o))};function B(t){var r=t.title,n=void 0===r?"Title":r,o=t.level,i=void 0===o?1:o,a=t.children;switch(i){case 1:return e.createElement(z,{title:n},a);case 2:return e.createElement(L,{title:n},a);default:return e.createElement(e.Fragment,null)}}
|
|
7
|
+
/*!
|
|
8
|
+
* @kurkle/color v0.3.4
|
|
9
|
+
* https://github.com/kurkle/color#readme
|
|
10
|
+
* (c) 2024 Jukka Kurkela
|
|
11
|
+
* Released under the MIT License
|
|
12
|
+
*/function V(t){return t+.5|0}const $=(t,e,r)=>Math.max(Math.min(t,r),e);function H(t){return $(V(2.55*t),0,255)}function U(t){return $(V(255*t),0,255)}function W(t){return $(V(t/2.55)/100,0,1)}function Y(t){return $(V(100*t),0,100)}const X={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},q=[..."0123456789ABCDEF"],K=t=>q[15&t],G=t=>q[(240&t)>>4]+q[15&t],Z=t=>(240&t)>>4==(15&t);function Q(t){var e=(t=>Z(t.r)&&Z(t.g)&&Z(t.b)&&Z(t.a))(t)?K:G;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const J=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tt(t,e,r){const n=e*Math.min(r,1-r),o=(e,o=(e+t/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function et(t,e,r){const n=(n,o=(n+t/60)%6)=>r-r*e*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function rt(t,e,r){const n=tt(t,1,.5);let o;for(e+r>1&&(o=1/(e+r),e*=o,r*=o),o=0;o<3;o++)n[o]*=1-e-r,n[o]+=e;return n}function nt(t){const e=t.r/255,r=t.g/255,n=t.b/255,o=Math.max(e,r,n),i=Math.min(e,r,n),a=(o+i)/2;let s,c,l;return o!==i&&(l=o-i,c=a>.5?l/(2-o-i):l/(o+i),s=function(t,e,r,n,o){return t===o?(e-r)/n+(e<r?6:0):e===o?(r-t)/n+2:(t-e)/n+4}(e,r,n,l,o),s=60*s+.5),[0|s,c||0,a]}function ot(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(U)}function it(t,e,r){return ot(tt,t,e,r)}function at(t){return(t%360+360)%360}function st(t){const e=J.exec(t);let r,n=255;if(!e)return;e[5]!==r&&(n=e[6]?H(+e[5]):U(+e[5]));const o=at(+e[2]),i=+e[3]/100,a=+e[4]/100;return r="hwb"===e[1]?function(t,e,r){return ot(rt,t,e,r)}(o,i,a):"hsv"===e[1]?function(t,e,r){return ot(et,t,e,r)}(o,i,a):it(o,i,a),{r:r[0],g:r[1],b:r[2],a:n}}const ct={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lt={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let ut;function dt(t){ut||(ut=function(){const t={},e=Object.keys(lt),r=Object.keys(ct);let n,o,i,a,s;for(n=0;n<e.length;n++){for(a=s=e[n],o=0;o<r.length;o++)i=r[o],s=s.replace(i,ct[i]);i=parseInt(lt[a],16),t[s]=[i>>16&255,i>>8&255,255&i]}return t}(),ut.transparent=[0,0,0,0]);const e=ut[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const ft=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const ht=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,pt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function gt(t,e,r){if(t){let n=nt(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,0===e?360:1)),n=it(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function mt(t,e){return t?Object.assign(e||{},t):t}function bt(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=U(t[3]))):(e=mt(t,{r:0,g:0,b:0,a:1})).a=U(e.a),e}function yt(t){return"r"===t.charAt(0)?function(t){const e=ft.exec(t);let r,n,o,i=255;if(e){if(e[7]!==r){const t=+e[7];i=e[8]?H(t):$(255*t,0,255)}return r=+e[1],n=+e[3],o=+e[5],r=255&(e[2]?H(r):$(r,0,255)),n=255&(e[4]?H(n):$(n,0,255)),o=255&(e[6]?H(o):$(o,0,255)),{r:r,g:n,b:o,a:i}}}(t):st(t)}class vt{constructor(t){if(t instanceof vt)return t;const e=typeof t;let r;var n,o,i;"object"===e?r=bt(t):"string"===e&&(i=(n=t).length,"#"===n[0]&&(4===i||5===i?o={r:255&17*X[n[1]],g:255&17*X[n[2]],b:255&17*X[n[3]],a:5===i?17*X[n[4]]:255}:7!==i&&9!==i||(o={r:X[n[1]]<<4|X[n[2]],g:X[n[3]]<<4|X[n[4]],b:X[n[5]]<<4|X[n[6]],a:9===i?X[n[7]]<<4|X[n[8]]:255})),r=o||dt(t)||yt(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=mt(this._rgb);return t&&(t.a=W(t.a)),t}set rgb(t){this._rgb=bt(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${W(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?Q(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=nt(t),r=e[0],n=Y(e[1]),o=Y(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${o}%, ${W(t.a)})`:`hsl(${r}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const r=this.rgb,n=t.rgb;let o;const i=e===o?.5:e,a=2*i-1,s=r.a-n.a,c=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;o=1-c,r.r=255&c*r.r+o*n.r+.5,r.g=255&c*r.g+o*n.g+.5,r.b=255&c*r.b+o*n.b+.5,r.a=i*r.a+(1-i)*n.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,r){const n=pt(W(t.r)),o=pt(W(t.g)),i=pt(W(t.b));return{r:U(ht(n+r*(pt(W(e.r))-n))),g:U(ht(o+r*(pt(W(e.g))-o))),b:U(ht(i+r*(pt(W(e.b))-i))),a:t.a+r*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new vt(this.rgb)}alpha(t){return this._rgb.a=U(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=V(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return gt(this._rgb,2,t),this}darken(t){return gt(this._rgb,2,-t),this}saturate(t){return gt(this._rgb,1,t),this}desaturate(t){return gt(this._rgb,1,-t),this}rotate(t){return function(t,e){var r=nt(t);r[0]=at(r[0]+e),r=it(r),t.r=r[0],t.g=r[1],t.b=r[2]}(this._rgb,t),this}}
|
|
13
|
+
/*!
|
|
14
|
+
* Chart.js v4.4.7
|
|
15
|
+
* https://www.chartjs.org
|
|
16
|
+
* (c) 2024 Chart.js Contributors
|
|
17
|
+
* Released under the MIT License
|
|
18
|
+
*/function wt(){}const xt=(()=>{let t=0;return()=>t++})();function _t(t){return null==t}function kt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Et(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function St(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Ot(t,e){return St(t)?t:e}function Tt(t,e){return void 0===t?e:t}const At=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function jt(t,e,r){if(t&&"function"==typeof t.call)return t.apply(r,e)}function Pt(t,e,r,n){let o,i,a;if(kt(t))if(i=t.length,n)for(o=i-1;o>=0;o--)e.call(r,t[o],o);else for(o=0;o<i;o++)e.call(r,t[o],o);else if(Et(t))for(a=Object.keys(t),i=a.length,o=0;o<i;o++)e.call(r,t[a[o]],a[o])}function Ct(t,e){let r,n,o,i;if(!t||!e||t.length!==e.length)return!1;for(r=0,n=t.length;r<n;++r)if(o=t[r],i=e[r],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0}function Dt(t){if(kt(t))return t.map(Dt);if(Et(t)){const e=Object.create(null),r=Object.keys(t),n=r.length;let o=0;for(;o<n;++o)e[r[o]]=Dt(t[r[o]]);return e}return t}function Mt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Rt(t,e,r,n){if(!Mt(t))return;const o=e[t],i=r[t];Et(o)&&Et(i)?It(o,i,n):e[t]=Dt(i)}function It(t,e,r){const n=kt(e)?e:[e],o=n.length;if(!Et(t))return t;const i=(r=r||{}).merger||Rt;let a;for(let e=0;e<o;++e){if(a=n[e],!Et(a))continue;const o=Object.keys(a);for(let e=0,n=o.length;e<n;++e)i(o[e],t,a,r)}return t}function Nt(t,e){return It(t,e,{merger:Ft})}function Ft(t,e,r){if(!Mt(t))return;const n=e[t],o=r[t];Et(n)&&Et(o)?Nt(n,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Dt(o))}const zt={"":t=>t,x:t=>t.x,y:t=>t.y};function Lt(t,e){const r=zt[e]||(zt[e]=function(t){const e=function(t){const e=t.split("."),r=[];let n="";for(const t of e)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}(t);return t=>{for(const r of e){if(""===r)break;t=t&&t[r]}return t}}(e));return r(t)}function Bt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Vt=t=>void 0!==t,$t=t=>"function"==typeof t,Ht=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};const Ut=Math.PI,Wt=2*Ut,Yt=Wt+Ut,Xt=Number.POSITIVE_INFINITY,qt=Ut/180,Kt=Ut/2,Gt=Ut/4,Zt=2*Ut/3,Qt=Math.log10,Jt=Math.sign;function te(t,e,r){return Math.abs(t-e)<r}function ee(t){const e=Math.round(t);t=te(t,e,t/1e3)?e:t;const r=Math.pow(10,Math.floor(Qt(t))),n=t/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function re(t){return!isNaN(parseFloat(t))&&isFinite(t)}function ne(t,e,r){let n,o,i;for(n=0,o=t.length;n<o;n++)i=t[n][r],isNaN(i)||(e.min=Math.min(e.min,i),e.max=Math.max(e.max,i))}function oe(t){return t*(Ut/180)}function ie(t){return t*(180/Ut)}function ae(t){if(!St(t))return;let e=1,r=0;for(;Math.round(t*e)/e!==t;)e*=10,r++;return r}function se(t,e){const r=e.x-t.x,n=e.y-t.y,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i<-.5*Ut&&(i+=Wt),{angle:i,distance:o}}function ce(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function le(t,e){return(t-e+Yt)%Wt-Ut}function ue(t){return(t%Wt+Wt)%Wt}function de(t,e,r,n){const o=ue(t),i=ue(e),a=ue(r),s=ue(i-o),c=ue(a-o),l=ue(o-i),u=ue(o-a);return o===i||o===a||n&&i===a||s>c&&l<u}function fe(t,e,r){return Math.max(e,Math.min(r,t))}function he(t,e,r,n=1e-6){return t>=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function pe(t,e,r){r=r||(r=>t[r]<e);let n,o=t.length-1,i=0;for(;o-i>1;)n=i+o>>1,r(n)?i=n:o=n;return{lo:i,hi:o}}const ge=(t,e,r,n)=>pe(t,r,n?n=>{const o=t[n][e];return o<r||o===r&&t[n+1][e]===r}:n=>t[n][e]<r),me=(t,e,r)=>pe(t,r,(n=>t[n][e]>=r));const be=["push","pop","shift","splice","unshift"];function ye(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(e);-1!==o&&n.splice(o,1),n.length>0||(be.forEach((e=>{delete t[e]})),delete t._chartjs)}function ve(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const we="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function xe(t,e){let r=[],n=!1;return function(...o){r=o,n||(n=!0,we.call(window,(()=>{n=!1,t.apply(e,r)})))}}const _e=t=>"start"===t?"left":"end"===t?"right":"center",ke=(t,e,r)=>"start"===t?e:"end"===t?r:(e+r)/2;const Ee=t=>0===t||1===t,Se=(t,e,r)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Wt/r),Oe=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Wt/r)+1,Te={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Kt),easeOutSine:t=>Math.sin(t*Kt),easeInOutSine:t=>-.5*(Math.cos(Ut*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Ee(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Ee(t)?t:Se(t,.075,.3),easeOutElastic:t=>Ee(t)?t:Oe(t,.075,.3),easeInOutElastic(t){const e=.1125;return Ee(t)?t:t<.5?.5*Se(2*t,e,.45):.5+.5*Oe(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Te.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,r=2.75;return t<1/r?e*t*t:t<2/r?e*(t-=1.5/r)*t+.75:t<2.5/r?e*(t-=2.25/r)*t+.9375:e*(t-=2.625/r)*t+.984375},easeInOutBounce:t=>t<.5?.5*Te.easeInBounce(2*t):.5*Te.easeOutBounce(2*t-1)+.5};function Ae(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function je(t){return Ae(t)?t:new vt(t)}function Pe(t){return Ae(t)?t:new vt(t).saturate(.5).darken(.1).hexString()}const Ce=["x","y","borderWidth","radius","tension"],De=["color","borderColor","backgroundColor"];const Me=new Map;function Re(t,e,r){return function(t,e){e=e||{};const r=t+JSON.stringify(e);let n=Me.get(r);return n||(n=new Intl.NumberFormat(t,e),Me.set(r,n)),n}(e,r).format(t)}const Ie={values:t=>kt(t)?t:""+t,numeric(t,e,r){if(0===t)return"0";const n=this.chart.options.locale;let o,i=t;if(r.length>1){const e=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),i=function(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t));return r}(t,r)}const a=Qt(Math.abs(i)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Re(t,n,c)},logarithmic(t,e,r){if(0===t)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(Qt(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?Ie.numeric.call(this,t,e,r):""}};var Ne={formatters:Ie};const Fe=Object.create(null),ze=Object.create(null);function Le(t,e){if(!e)return t;const r=e.split(".");for(let e=0,n=r.length;e<n;++e){const n=r[e];t=t[n]||(t[n]=Object.create(null))}return t}function Be(t,e,r){return"string"==typeof e?It(Le(t,e),r):It(Le(t,""),e)}class Ve{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>Pe(e.backgroundColor),this.hoverBorderColor=(t,e)=>Pe(e.borderColor),this.hoverColor=(t,e)=>Pe(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Be(this,t,e)}get(t){return Le(this,t)}describe(t,e){return Be(ze,t,e)}override(t,e){return Be(Fe,t,e)}route(t,e,r,n){const o=Le(this,t),i=Le(this,r),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=i[n];return Et(t)?Object.assign({},e,t):Tt(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var $e=new Ve({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:De},numbers:{type:"number",properties:Ce}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ne.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function He(t,e,r,n,o){let i=e[o];return i||(i=e[o]=t.measureText(o).width,r.push(o)),i>n&&(n=i),n}function Ue(t,e,r){const n=t.currentDevicePixelRatio,o=0!==r?Math.max(r/2,.5):0;return Math.round((e-o)*n)/n+o}function We(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ye(t,e,r,n){Xe(t,e,r,n,null)}function Xe(t,e,r,n,o){let i,a,s,c,l,u,d,f;const h=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*qt;if(h&&"object"==typeof h&&(i=h.toString(),"[object HTMLImageElement]"===i||"[object HTMLCanvasElement]"===i))return t.save(),t.translate(r,n),t.rotate(m),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),h){default:o?t.ellipse(r,n,o/2,g,0,0,Wt):t.arc(r,n,g,0,Wt),t.closePath();break;case"triangle":u=o?o/2:g,t.moveTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=Zt,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),m+=Zt,t.lineTo(r+Math.sin(m)*u,n-Math.cos(m)*g),t.closePath();break;case"rectRounded":l=.516*g,c=g-l,a=Math.cos(m+Gt)*c,d=Math.cos(m+Gt)*(o?o/2-l:c),s=Math.sin(m+Gt)*c,f=Math.sin(m+Gt)*(o?o/2-l:c),t.arc(r-d,n-s,l,m-Ut,m-Kt),t.arc(r+f,n-a,l,m-Kt,m),t.arc(r+d,n+s,l,m,m+Kt),t.arc(r-f,n+a,l,m+Kt,m+Ut),t.closePath();break;case"rect":if(!p){c=Math.SQRT1_2*g,u=o?o/2:c,t.rect(r-u,n-c,2*u,2*c);break}m+=Gt;case"rectRot":d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+f,n-a),t.lineTo(r+d,n+s),t.lineTo(r-f,n+a),t.closePath();break;case"crossRot":m+=Gt;case"cross":d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+f,n-a),t.lineTo(r-f,n+a);break;case"star":d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+f,n-a),t.lineTo(r-f,n+a),m+=Gt,d=Math.cos(m)*(o?o/2:g),a=Math.cos(m)*g,s=Math.sin(m)*g,f=Math.sin(m)*(o?o/2:g),t.moveTo(r-d,n-s),t.lineTo(r+d,n+s),t.moveTo(r+f,n-a),t.lineTo(r-f,n+a);break;case"line":a=o?o/2:Math.cos(m)*g,s=Math.sin(m)*g,t.moveTo(r-a,n-s),t.lineTo(r+a,n+s);break;case"dash":t.moveTo(r,n),t.lineTo(r+Math.cos(m)*(o?o/2:g),n+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function qe(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.x<e.right+r&&t.y>e.top-r&&t.y<e.bottom+r}function Ke(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Ge(t){t.restore()}function Ze(t,e,r,n,o){if(!e)return t.lineTo(r.x,r.y);if("middle"===o){const n=(e.x+r.x)/2;t.lineTo(n,e.y),t.lineTo(n,r.y)}else"after"===o!=!!n?t.lineTo(e.x,r.y):t.lineTo(r.x,e.y);t.lineTo(r.x,r.y)}function Qe(t,e,r,n){if(!e)return t.lineTo(r.x,r.y);t.bezierCurveTo(n?e.cp1x:e.cp2x,n?e.cp1y:e.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function Je(t,e,r,n,o){if(o.strikethrough||o.underline){const i=t.measureText(n),a=e-i.actualBoundingBoxLeft,s=e+i.actualBoundingBoxRight,c=r-i.actualBoundingBoxAscent,l=r+i.actualBoundingBoxDescent,u=o.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function tr(t,e){const r=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=r}function er(t,e,r,n,o,i={}){const a=kt(e)?e:[e],s=i.strokeWidth>0&&""!==i.strokeColor;let c,l;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),_t(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,i),c=0;c<a.length;++c)l=a[c],i.backdrop&&tr(t,i.backdrop),s&&(i.strokeColor&&(t.strokeStyle=i.strokeColor),_t(i.strokeWidth)||(t.lineWidth=i.strokeWidth),t.strokeText(l,r,n,i.maxWidth)),t.fillText(l,r,n,i.maxWidth),Je(t,r,n,l,i),n+=Number(o.lineHeight);t.restore()}function rr(t,e){const{x:r,y:n,w:o,h:i,radius:a}=e;t.arc(r+a.topLeft,n+a.topLeft,a.topLeft,1.5*Ut,Ut,!0),t.lineTo(r,n+i-a.bottomLeft),t.arc(r+a.bottomLeft,n+i-a.bottomLeft,a.bottomLeft,Ut,Kt,!0),t.lineTo(r+o-a.bottomRight,n+i),t.arc(r+o-a.bottomRight,n+i-a.bottomRight,a.bottomRight,Kt,0,!0),t.lineTo(r+o,n+a.topRight),t.arc(r+o-a.topRight,n+a.topRight,a.topRight,0,-Kt,!0),t.lineTo(r+a.topLeft,n)}const nr=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,or=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ir(t,e){const r=(""+t).match(nr);if(!r||"normal"===r[1])return 1.2*e;switch(t=+r[2],r[3]){case"px":return t;case"%":t/=100}return e*t}const ar=t=>+t||0;function sr(t,e){const r={},n=Et(e),o=n?Object.keys(e):e,i=Et(t)?n?r=>Tt(t[r],t[e[r]]):e=>t[e]:()=>t;for(const t of o)r[t]=ar(i(t));return r}function cr(t){return sr(t,{top:"y",right:"x",bottom:"y",left:"x"})}function lr(t){return sr(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ur(t){const e=cr(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function dr(t,e){t=t||{},e=e||$e.font;let r=Tt(t.size,e.size);"string"==typeof r&&(r=parseInt(r,10));let n=Tt(t.style,e.style);n&&!(""+n).match(or)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const o={family:Tt(t.family,e.family),lineHeight:ir(Tt(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:Tt(t.weight,e.weight),string:""};return o.string=function(t){return!t||_t(t.size)||_t(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function fr(t,e,r,n){let o,i,a,s=!0;for(o=0,i=t.length;o<i;++o)if(a=t[o],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==r&&kt(a)&&(a=a[r%a.length],s=!1),void 0!==a))return n&&!s&&(n.cacheable=!1),a}function hr(t,e){return Object.assign(Object.create(t),e)}function pr(t,e=[""],r,n,o=()=>t[0]){const i=r||t;void 0===n&&(n=Sr("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:n,_getTarget:o,override:r=>pr([r,...t],e,i,n)};return new Proxy(a,{deleteProperty:(e,r)=>(delete e[r],delete e._keys,delete t[0][r],!0),get:(r,n)=>vr(r,n,(()=>function(t,e,r,n){let o;for(const i of e)if(o=Sr(br(i,t),r),void 0!==o)return yr(t,o)?kr(r,n,t,o):o}(n,e,t,r))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Or(t).includes(e),ownKeys:t=>Or(t),set(t,e,r){const n=t._storage||(t._storage=o());return t[e]=n[e]=r,delete t._keys,!0}})}function gr(t,e,r,n){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:mr(t,n),setContext:e=>gr(t,e,r,n),override:o=>gr(t.override(o),e,r,n)};return new Proxy(o,{deleteProperty:(e,r)=>(delete e[r],delete t[r],!0),get:(t,e,r)=>vr(t,e,(()=>function(t,e,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:a}=t;let s=n[e];$t(s)&&a.isScriptable(e)&&(s=function(t,e,r,n){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=r;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let c=e(i,a||n);s.delete(t),yr(t,c)&&(c=kr(o._scopes,o,t,c));return c}(e,s,t,r));kt(s)&&s.length&&(s=function(t,e,r,n){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=r;if(void 0!==i.index&&n(t))return e[i.index%e.length];if(Et(e[0])){const r=e,n=o._scopes.filter((t=>t!==r));e=[];for(const c of r){const r=kr(n,o,t,c);e.push(gr(r,i,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));yr(e,s)&&(s=gr(s,o,i&&i[e],a));return s}(t,e,r))),getOwnPropertyDescriptor:(e,r)=>e._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,r)=>Reflect.has(t,r),ownKeys:()=>Reflect.ownKeys(t),set:(e,r,n)=>(t[r]=n,delete e[r],!0)})}function mr(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:r,indexable:n,isScriptable:$t(r)?r:()=>r,isIndexable:$t(n)?n:()=>n}}const br=(t,e)=>t?t+Bt(e):e,yr=(t,e)=>Et(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function vr(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const n=r();return t[e]=n,n}function wr(t,e,r){return $t(t)?t(e,r):t}const xr=(t,e)=>!0===t?e:"string"==typeof t?Lt(e,t):void 0;function _r(t,e,r,n,o){for(const i of e){const e=xr(r,i);if(e){t.add(e);const i=wr(e._fallback,r,o);if(void 0!==i&&i!==r&&i!==n)return i}else if(!1===e&&void 0!==n&&r!==n)return null}return!1}function kr(t,e,r,n){const o=e._rootScopes,i=wr(e._fallback,r,n),a=[...t,...o],s=new Set;s.add(n);let c=Er(s,a,r,i||r,n);return null!==c&&((void 0===i||i===r||(c=Er(s,a,i,c,n),null!==c))&&pr(Array.from(s),[""],o,i,(()=>function(t,e,r){const n=t._getTarget();e in n||(n[e]={});const o=n[e];if(kt(o)&&Et(r))return r;return o||{}}(e,r,n))))}function Er(t,e,r,n,o){for(;r;)r=_r(t,e,r,n,o);return r}function Sr(t,e){for(const r of e){if(!r)continue;const e=r[t];if(void 0!==e)return e}}function Or(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const r of t)for(const t of Object.keys(r).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}const Tr=Number.EPSILON||1e-14,Ar=(t,e)=>e<t.length&&!t[e].skip&&t[e],jr=t=>"x"===t?"y":"x";function Pr(t,e,r,n){const o=t.skip?e:t,i=e,a=r.skip?e:r,s=ce(i,o),c=ce(a,i);let l=s/(s+c),u=c/(s+c);l=isNaN(l)?0:l,u=isNaN(u)?0:u;const d=n*l,f=n*u;return{previous:{x:i.x-d*(a.x-o.x),y:i.y-d*(a.y-o.y)},next:{x:i.x+f*(a.x-o.x),y:i.y+f*(a.y-o.y)}}}function Cr(t,e="x"){const r=jr(e),n=t.length,o=Array(n).fill(0),i=Array(n);let a,s,c,l=Ar(t,0);for(a=0;a<n;++a)if(s=c,c=l,l=Ar(t,a+1),c){if(l){const t=l[e]-c[e];o[a]=0!==t?(l[r]-c[r])/t:0}i[a]=s?l?Jt(o[a-1])!==Jt(o[a])?0:(o[a-1]+o[a])/2:o[a-1]:o[a]}!function(t,e,r){const n=t.length;let o,i,a,s,c,l=Ar(t,0);for(let u=0;u<n-1;++u)c=l,l=Ar(t,u+1),c&&l&&(te(e[u],0,Tr)?r[u]=r[u+1]=0:(o=r[u]/e[u],i=r[u+1]/e[u],s=Math.pow(o,2)+Math.pow(i,2),s<=9||(a=3/Math.sqrt(s),r[u]=o*a*e[u],r[u+1]=i*a*e[u])))}(t,o,i),function(t,e,r="x"){const n=jr(r),o=t.length;let i,a,s,c=Ar(t,0);for(let l=0;l<o;++l){if(a=s,s=c,c=Ar(t,l+1),!s)continue;const o=s[r],u=s[n];a&&(i=(o-a[r])/3,s[`cp1${r}`]=o-i,s[`cp1${n}`]=u-i*e[l]),c&&(i=(c[r]-o)/3,s[`cp2${r}`]=o+i,s[`cp2${n}`]=u+i*e[l])}}(t,i,e)}function Dr(t,e,r){return Math.max(Math.min(t,r),e)}function Mr(t,e,r,n,o){let i,a,s,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Cr(t,o);else{let r=n?t[t.length-1]:t[0];for(i=0,a=t.length;i<a;++i)s=t[i],c=Pr(r,s,t[Math.min(i+1,a-(n?0:1))%a],e.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,r=s}e.capBezierPoints&&function(t,e){let r,n,o,i,a,s=qe(t[0],e);for(r=0,n=t.length;r<n;++r)a=i,i=s,s=r<n-1&&qe(t[r+1],e),i&&(o=t[r],a&&(o.cp1x=Dr(o.cp1x,e.left,e.right),o.cp1y=Dr(o.cp1y,e.top,e.bottom)),s&&(o.cp2x=Dr(o.cp2x,e.left,e.right),o.cp2y=Dr(o.cp2y,e.top,e.bottom)))}(t,r)}function Rr(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ir(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Nr(t,e,r){let n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[r])):n=t,n}const Fr=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const zr=["top","right","bottom","left"];function Lr(t,e,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=zr[o];n[i]=parseFloat(t[e+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Br(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,o=Fr(r),i="border-box"===o.boxSizing,a=Lr(o,"padding"),s=Lr(o,"border","width"),{x:c,y:l,box:u}=function(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:o,offsetY:i}=n;let a,s,c=!1;if(((t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot))(o,i,t.target))a=o,s=i;else{const t=e.getBoundingClientRect();a=n.clientX-t.left,s=n.clientY-t.top,c=!0}return{x:a,y:s,box:c}}(t,r),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:h,height:p}=e;return i&&(h-=a.width+s.width,p-=a.height+s.height),{x:Math.round((c-d)/h*r.width/n),y:Math.round((l-f)/p*r.height/n)}}const Vr=t=>Math.round(10*t)/10;function $r(t,e,r,n){const o=Fr(t),i=Lr(o,"margin"),a=Nr(o.maxWidth,t,"clientWidth")||Xt,s=Nr(o.maxHeight,t,"clientHeight")||Xt,c=function(t,e,r){let n,o;if(void 0===e||void 0===r){const i=t&&Ir(t);if(i){const t=i.getBoundingClientRect(),a=Fr(i),s=Lr(a,"border","width"),c=Lr(a,"padding");e=t.width-c.width-s.width,r=t.height-c.height-s.height,n=Nr(a.maxWidth,i,"clientWidth"),o=Nr(a.maxHeight,i,"clientHeight")}else e=t.clientWidth,r=t.clientHeight}return{width:e,height:r,maxWidth:n||Xt,maxHeight:o||Xt}}(t,e,r);let{width:l,height:u}=c;if("content-box"===o.boxSizing){const t=Lr(o,"border","width"),e=Lr(o,"padding");l-=e.width+t.width,u-=e.height+t.height}l=Math.max(0,l-i.width),u=Math.max(0,n?l/n:u-i.height),l=Vr(Math.min(l,a,c.maxWidth)),u=Vr(Math.min(u,s,c.maxHeight)),l&&!u&&(u=Vr(l/2));return(void 0!==e||void 0!==r)&&n&&c.height&&u>c.height&&(u=c.height,l=Vr(Math.floor(u*n))),{width:l,height:u}}function Hr(t,e,r){const n=e||1,o=Math.floor(t.height*n),i=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==n||a.height!==o||a.width!==i)&&(t.currentDevicePixelRatio=n,a.height=o,a.width=i,t.ctx.setTransform(n,0,0,n,0,0),!0)}const Ur=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Rr()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Wr(t,e){const r=function(t,e){return Fr(t).getPropertyValue(e)}(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Yr(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function Xr(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:"middle"===n?r<.5?t.y:e.y:"after"===n?r<1?t.y:e.y:r>0?e.y:t.y}}function qr(t,e,r,n){const o={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},a=Yr(t,o,r),s=Yr(o,i,r),c=Yr(i,e,r),l=Yr(a,s,r),u=Yr(s,c,r);return Yr(l,u,r)}function Kr(t,e,r){return t?function(t,e){return{x:r=>t+t+e-r,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,r):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Gr(t,e){let r,n;"ltr"!==e&&"rtl"!==e||(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function Zr(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Qr(t){return"angle"===t?{between:de,compare:le,normalize:ue}:{between:he,compare:(t,e)=>t-e,normalize:t=>t}}function Jr({start:t,end:e,count:r,loop:n,style:o}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r==0,style:o}}function tn(t,e,r){if(!r)return[t];const{property:n,start:o,end:i}=r,a=e.length,{compare:s,between:c,normalize:l}=Qr(n),{start:u,end:d,loop:f,style:h}=function(t,e,r){const{property:n,start:o,end:i}=r,{between:a,normalize:s}=Qr(n),c=e.length;let l,u,{start:d,end:f,loop:h}=t;if(h){for(d+=c,f+=c,l=0,u=c;l<u&&a(s(e[d%c][n]),o,i);++l)d--,f--;d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:h,style:t.style}}(t,e,r),p=[];let g,m,b,y=!1,v=null;const w=()=>y||c(o,b,g)&&0!==s(o,b),x=()=>!y||0===s(i,g)||c(i,b,g);for(let t=u,r=u;t<=d;++t)m=e[t%a],m.skip||(g=l(m[n]),g!==b&&(y=c(g,o,i),null===v&&w()&&(v=0===s(g,o)?t:r),null!==v&&x()&&(p.push(Jr({start:v,end:t,loop:f,count:a,style:h})),v=null),r=t,b=g));return null!==v&&p.push(Jr({start:v,end:d,loop:f,count:a,style:h})),p}function en(t,e,r,n){return n&&n.setContext&&r?function(t,e,r,n){const o=t._chart.getContext(),i=rn(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,c=r.length,l=[];let u=i,d=e[0].start,f=d;function h(t,e,n,o){const i=s?-1:1;if(t!==e){for(t+=c;r[t%c].skip;)t-=i;for(;r[e%c].skip;)e+=i;t%c!=e%c&&(l.push({start:t%c,end:e%c,loop:n,style:o}),u=o,d=e%c)}}for(const t of e){d=s?d:t.start;let e,i=r[d%c];for(f=d+1;f<=t.end;f++){const s=r[f%c];e=rn(n.setContext(hr(o,{type:"segment",p0:i,p1:s,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:a}))),nn(e,u)&&h(d,f-1,t.loop,u),i=s,u=e}d<f-1&&h(d,f-1,t.loop,u)}return l}(t,e,r,n):e}function rn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function nn(t,e){if(!e)return!1;const r=[],n=function(t,e){return Ae(e)?(r.includes(e)||r.push(e),r.indexOf(e)):e};return JSON.stringify(t,n)!==JSON.stringify(e,n)}
|
|
19
|
+
/*!
|
|
20
|
+
* Chart.js v4.4.7
|
|
21
|
+
* https://www.chartjs.org
|
|
22
|
+
* (c) 2024 Chart.js Contributors
|
|
23
|
+
* Released under the MIT License
|
|
24
|
+
*/class on{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,r,n){const o=e.listeners[n],i=e.duration;o.forEach((n=>n({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(r-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=we.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((r,n)=>{if(!r.running||!r.items.length)return;const o=r.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>r.duration&&(r.duration=i._total),i.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(n.draw(),this._notify(n,r,t,"progress")),o.length||(r.running=!1,this._notify(n,r,t,"complete"),r.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let r=e.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,r)),r}listen(t,e,r){this._getAnims(t).listeners[e].push(r)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const r=e.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var an=new on;const sn="transparent",cn={boolean:(t,e,r)=>r>.5?e:t,color(t,e,r){const n=je(t||sn),o=n.valid&&je(e||sn);return o&&o.valid?o.mix(n,r).hexString():e},number:(t,e,r)=>t+(e-t)*r};class ln{constructor(t,e,r,n){const o=e[r];n=fr([t.to,n,o,t.from]);const i=fr([t.from,o,n]);this._active=!0,this._fn=t.fn||cn[t.type||typeof i],this._easing=Te[t.easing]||Te.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=r,this._from=i,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,r){if(this._active){this._notify(!1);const n=this._target[this._prop],o=r-this._start,i=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=fr([t.to,e,n,t.from]),this._from=fr([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,r=this._duration,n=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||e<r),!this._active)return this._target[n]=a,void this._notify(!0);e<0?this._target[n]=o:(s=e/r%2,s=i&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(o,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,r)=>{t.push({res:e,rej:r})}))}_notify(t){const e=t?"res":"rej",r=this._promises||[];for(let t=0;t<r.length;t++)r[t][e]()}}class un{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Et(t))return;const e=Object.keys($e.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const o=t[n];if(!Et(o))return;const i={};for(const t of e)i[t]=o[t];(kt(o.properties)&&o.properties||[n]).forEach((t=>{t!==n&&r.has(t)||r.set(t,i)}))}))}_animateOptions(t,e){const r=e.options,n=function(t,e){if(!e)return;let r=t.options;if(!r)return void(t.options=e);r.$shared&&(t.options=r=Object.assign({},r,{$shared:!1,$animations:{}}));return r}(t,r);if(!n)return[];const o=this._createAnimations(n,r);return r.$shared&&function(t,e){const r=[],n=Object.keys(e);for(let e=0;e<n.length;e++){const o=t[n[e]];o&&o.active()&&r.push(o.wait())}return Promise.all(r)}(t.options.$animations,r).then((()=>{t.options=r}),(()=>{})),o}_createAnimations(t,e){const r=this._properties,n=[],o=t.$animations||(t.$animations={}),i=Object.keys(e),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const c=i[s];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(t,e));continue}const l=e[c];let u=o[c];const d=r.get(c);if(u){if(d&&u.active()){u.update(d,l,a);continue}u.cancel()}d&&d.duration?(o[c]=u=new ln(d,t,c,l),n.push(u)):t[c]=l}return n}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const r=this._createAnimations(t,e);return r.length?(an.add(this._chart,r),!0):void 0}}function dn(t,e){const r=t&&t.options||{},n=r.reverse,o=void 0===r.min?e:0,i=void 0===r.max?e:0;return{start:n?i:o,end:n?o:i}}function fn(t,e){const r=[],n=t._getSortedDatasetMetas(e);let o,i;for(o=0,i=n.length;o<i;++o)r.push(n[o].index);return r}function hn(t,e,r,n={}){const o=t.keys,i="single"===n.mode;let a,s,c,l;if(null===e)return;let u=!1;for(a=0,s=o.length;a<s;++a){if(c=+o[a],c===r){if(u=!0,n.all)continue;break}l=t.values[c],St(l)&&(i||0===e||Jt(e)===Jt(l))&&(e+=l)}return u||n.all?e:0}function pn(t,e){const r=t&&t.options.stacked;return r||void 0===r&&void 0!==e.stack}function gn(t,e,r){const n=t[e]||(t[e]={});return n[r]||(n[r]={})}function mn(t,e,r,n){for(const o of e.getMatchingVisibleMetas(n).reverse()){const e=t[o.index];if(r&&e>0||!r&&e<0)return o.index}return null}function bn(t,e){const{chart:r,_cachedMeta:n}=t,o=r._stacks||(r._stacks={}),{iScale:i,vScale:a,index:s}=n,c=i.axis,l=a.axis,u=function(t,e,r){return`${t.id}.${e.id}.${r.stack||r.type}`}(i,a,n),d=e.length;let f;for(let t=0;t<d;++t){const r=e[t],{[c]:i,[l]:d}=r;f=(r._stacks||(r._stacks={}))[l]=gn(o,u,i),f[s]=d,f._top=mn(f,a,!0,n.type),f._bottom=mn(f,a,!1,n.type);(f._visualValues||(f._visualValues={}))[s]=d}}function yn(t,e){const r=t.scales;return Object.keys(r).filter((t=>r[t].axis===e)).shift()}function vn(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[n]||void 0===e[n][r])return;delete e[n][r],void 0!==e[n]._visualValues&&void 0!==e[n]._visualValues[r]&&delete e[n]._visualValues[r]}}}const wn=t=>"reset"===t||"none"===t,xn=(t,e)=>e?t:Object.assign({},t);class _n{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=pn(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&vn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,r=this.getDataset(),n=(t,e,r,n)=>"x"===t?e:"r"===t?n:r,o=e.xAxisID=Tt(r.xAxisID,yn(t,"x")),i=e.yAxisID=Tt(r.yAxisID,yn(t,"y")),a=e.rAxisID=Tt(r.rAxisID,yn(t,"r")),s=e.indexAxis,c=e.iAxisID=n(s,o,i,a),l=e.vAxisID=n(s,i,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ye(this._data,this),t._stacked&&vn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),r=this._data;if(Et(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:r,vScale:n}=e,o="x"===r.axis?"x":"y",i="x"===n.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let c,l,u;for(c=0,l=a.length;c<l;++c)u=a[c],s[c]={[o]:u,[i]:t[u]};return s}(e,t)}else if(r!==e){if(r){ye(r,this);const t=this._cachedMeta;vn(t),t._parsed=[]}e&&Object.isExtensible(e)&&(o=this,(n=e)._chartjs?n._chartjs.listeners.push(o):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[o]}}),be.forEach((t=>{const e="_onData"+Bt(t),r=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...t){const o=r.apply(this,t);return n._chartjs.listeners.forEach((r=>{"function"==typeof r[e]&&r[e](...t)})),o}})})))),this._syncList=[],this._data=e}var n,o}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=pn(e.vScale,e),e.stack!==r.stack&&(n=!0,vn(e),e.stack=r.stack),this._resyncElements(t),(n||o!==e._stacked)&&(bn(this,e._parsed),e._stacked=pn(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:r,_data:n}=this,{iScale:o,_stacked:i}=r,a=o.axis;let s,c,l,u=0===t&&e===n.length||r._sorted,d=t>0&&r._parsed[t-1];if(!1===this._parsing)r._parsed=n,r._sorted=!0,l=n;else{l=kt(n[t])?this.parseArrayData(r,n,t,e):Et(n[t])?this.parseObjectData(r,n,t,e):this.parsePrimitiveData(r,n,t,e);const o=()=>null===c[a]||d&&c[a]<d[a];for(s=0;s<e;++s)r._parsed[s+t]=c=l[s],u&&(o()&&(u=!1),d=c);r._sorted=u}i&&bn(this,l)}parsePrimitiveData(t,e,r,n){const{iScale:o,vScale:i}=t,a=o.axis,s=i.axis,c=o.getLabels(),l=o===i,u=new Array(n);let d,f,h;for(d=0,f=n;d<f;++d)h=d+r,u[d]={[a]:l||o.parse(c[h],h),[s]:i.parse(e[h],h)};return u}parseArrayData(t,e,r,n){const{xScale:o,yScale:i}=t,a=new Array(n);let s,c,l,u;for(s=0,c=n;s<c;++s)l=s+r,u=e[l],a[s]={x:o.parse(u[0],l),y:i.parse(u[1],l)};return a}parseObjectData(t,e,r,n){const{xScale:o,yScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c=new Array(n);let l,u,d,f;for(l=0,u=n;l<u;++l)d=l+r,f=e[d],c[l]={x:o.parse(Lt(f,a),d),y:i.parse(Lt(f,s),d)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,r){const n=this.chart,o=this._cachedMeta,i=e[t.axis];return hn({keys:fn(n,!0),values:e._stacks[t.axis]._visualValues},i,o.index,{mode:r})}updateRangeFromParsed(t,e,r,n){const o=r[e.axis];let i=null===o?NaN:o;const a=n&&r._stacks[e.axis];n&&a&&(n.values=a,i=hn(n,o,this._cachedMeta.index)),t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}getMinMax(t,e){const r=this._cachedMeta,n=r._parsed,o=r._sorted&&t===r.iScale,i=n.length,a=this._getOtherScale(t),s=((t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:fn(r,!0),values:null})(e,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:l,max:u}=function(t){const{min:e,max:r,minDefined:n,maxDefined:o}=t.getUserBounds();return{min:n?e:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(a);let d,f;function h(){f=n[d];const e=f[a.axis];return!St(f[t.axis])||l>e||u<e}for(d=0;d<i&&(h()||(this.updateRangeFromParsed(c,t,f,s),!o));++d);if(o)for(d=i-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(c,t,f,s);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,r=[];let n,o,i;for(n=0,o=e.length;n<o;++n)i=e[n][t.axis],St(i)&&r.push(i);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,r=e.iScale,n=e.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:n?""+n.getLabelForValue(o[n.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,r,n,o;return Et(t)?(e=t.top,r=t.right,n=t.bottom,o=t.left):e=r=n=o=t,{top:e,right:r,bottom:n,left:o,disabled:!1===t}}(Tt(this.options.clip,function(t,e,r){if(!1===r)return!1;const n=dn(t,r),o=dn(e,r);return{top:o.end,right:n.end,bottom:o.start,left:n.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,r=this._cachedMeta,n=r.data||[],o=e.chartArea,i=[],a=this._drawStart||0,s=this._drawCount||n.length-a,c=this.options.drawActiveElementsOnTop;let l;for(r.dataset&&r.dataset.draw(t,o,a,s),l=a;l<a+s;++l){const e=n[l];e.hidden||(e.active&&c?i.push(e):e.draw(t,o))}for(l=0;l<i.length;++l)i[l].draw(t,o)}getStyle(t,e){const r=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,e,r){const n=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,r){return hr(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=n.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return hr(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=n,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",r){const n="active"===e,o=this._cachedDataOpts,i=t+"-"+e,a=o[i],s=this.enableOptionSharing&&Vt(r);if(a)return xn(a,s);const c=this.chart.config,l=c.datasetElementScopeKeys(this._type,t),u=n?[`${t}Hover`,"hover",t,""]:[t,""],d=c.getOptionScopes(this.getDataset(),l),f=Object.keys($e.elements[t]),h=c.resolveNamedOptions(d,f,(()=>this.getContext(r,n,e)),u);return h.$shared&&(h.$shared=s,o[i]=Object.freeze(xn(h,s))),h}_resolveAnimations(t,e,r){const n=this.chart,o=this._cachedDataOpts,i=`animation-${e}`,a=o[i];if(a)return a;let s;if(!1!==n.options.animation){const n=this.chart.config,o=n.datasetAnimationScopeKeys(this._type,e),i=n.getOptionScopes(this.getDataset(),o);s=n.createResolver(i,this.getContext(t,r,e))}const c=new un(n,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||wn(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const r=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(r),i=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,r),{sharedOptions:o,includeOptions:i}}updateElement(t,e,r,n){wn(n)?Object.assign(t,r):this._resolveAnimations(e,n).update(t,r)}updateSharedOptions(t,e,r){t&&!wn(e)&&this._resolveAnimations(void 0,e).update(t,r)}_setStyle(t,e,r,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,r,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,e,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,r=this._cachedMeta.data;for(const[t,e,r]of this._syncList)this[t](e,r);this._syncList=[];const n=r.length,o=e.length,i=Math.min(o,n);i&&this.parse(0,i),o>n?this._insertElements(n,o-n,t):o<n&&this._removeElements(o,n-o)}_insertElements(t,e,r=!0){const n=this._cachedMeta,o=n.data,i=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=i;a--)t[a]=t[a-e]};for(s(o),a=t;a<i;++a)o[a]=new this.dataElementType;this._parsing&&s(n._parsed),this.parse(t,e),r&&this.updateElements(o,t,e,"reset")}updateElements(t,e,r,n){}_removeElements(t,e){const r=this._cachedMeta;if(this._parsing){const n=r._parsed.splice(t,e);r._stacked&&vn(r,n)}r.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,r,n]=t;this[e](r,n)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function kn(t){const e=t.iScale,r=function(t,e){if(!t._cache.$bar){const r=t.getMatchingVisibleMetas(e);let n=[];for(let e=0,o=r.length;e<o;e++)n=n.concat(r[e].controller.getAllParsedValues(t));t._cache.$bar=ve(n.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let n,o,i,a,s=e._length;const c=()=>{32767!==i&&-32768!==i&&(Vt(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(n=0,o=r.length;n<o;++n)i=e.getPixelForValue(r[n]),c();for(a=void 0,n=0,o=e.ticks.length;n<o;++n)i=e.getPixelForTick(n),c();return s}function En(t,e,r,n){return kt(t)?function(t,e,r,n){const o=r.parse(t[0],n),i=r.parse(t[1],n),a=Math.min(o,i),s=Math.max(o,i);let c=a,l=s;Math.abs(a)>Math.abs(s)&&(c=s,l=a),e[r.axis]=l,e._custom={barStart:c,barEnd:l,start:o,end:i,min:a,max:s}}(t,e,r,n):e[r.axis]=r.parse(t,n),e}function Sn(t,e,r,n){const o=t.iScale,i=t.vScale,a=o.getLabels(),s=o===i,c=[];let l,u,d,f;for(l=r,u=r+n;l<u;++l)f=e[l],d={},d[o.axis]=s||o.parse(a[l],l),c.push(En(f,d,i,l));return c}function On(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Tn(t,e,r,n){let o=e.borderSkipped;const i={};if(!o)return void(t.borderSkipped=i);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:c,top:l,bottom:u}=function(t){let e,r,n,o,i;return t.horizontal?(e=t.base>t.x,r="left",n="right"):(e=t.base<t.y,r="bottom",n="top"),e?(o="end",i="start"):(o="start",i="end"),{start:r,end:n,reverse:e,top:o,bottom:i}}(t);"middle"===o&&r&&(t.enableBorderRadius=!0,(r._top||0)===n?o=l:(r._bottom||0)===n?o=u:(i[An(u,a,s,c)]=!0,o=l)),i[An(o,a,s,c)]=!0,t.borderSkipped=i}function An(t,e,r,n){var o,i,a;return n?(a=r,t=jn(t=(o=t)===(i=e)?a:o===a?i:o,r,e)):t=jn(t,e,r),t}function jn(t,e,r){return"start"===t?e:"end"===t?r:t}function Pn(t,{inflateAmount:e},r){t.inflateAmount="auto"===e?1===r?.33:0:e}class Cn extends _n{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,r,n){return Sn(t,e,r,n)}parseArrayData(t,e,r,n){return Sn(t,e,r,n)}parseObjectData(t,e,r,n){const{iScale:o,vScale:i}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,c="x"===o.axis?a:s,l="x"===i.axis?a:s,u=[];let d,f,h,p;for(d=r,f=r+n;d<f;++d)p=e[d],h={},h[o.axis]=o.parse(Lt(p,c),d),u.push(En(Lt(p,l),h,i,d));return u}updateRangeFromParsed(t,e,r,n){super.updateRangeFromParsed(t,e,r,n);const o=r._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:r,vScale:n}=e,o=this.getParsed(t),i=o._custom,a=On(i)?"["+i.start+", "+i.end+"]":""+n.getLabelForValue(o[n.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,r,n){const o="reset"===n,{index:i,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),c=a.isHorizontal(),l=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,n);for(let f=e;f<e+r;f++){const e=this.getParsed(f),r=o||_t(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),h=this._calculateBarIndexPixels(f,l),p=(e._stacks||{})[a.axis],g={horizontal:c,base:r.base,enableBorderRadius:!p||On(e._custom)||i===p._top||i===p._bottom,x:c?r.head:h.center,y:c?h.center:r.head,height:c?h.size:Math.abs(r.size),width:c?Math.abs(r.size):h.size};d&&(g.options=u||this.resolveDataElementOptions(f,t[f].active?"active":n));const m=g.options||t[f].options;Tn(g,m,p,i),Pn(g,m,l.ratio),this.updateElement(t[f],f,g,n)}}_getStacks(t,e){const{iScale:r}=this._cachedMeta,n=r.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=r.options.stacked,i=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[r.axis],c=t=>{const e=t._parsed.find((t=>t[r.axis]===s)),n=e&&e[t.vScale.axis];if(_t(n)||isNaN(n))return!0};for(const r of n)if((void 0===e||!c(r))&&((!1===o||-1===i.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&i.push(r.stack),r.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,r){const n=this._getStacks(t,r),o=void 0!==e?n.indexOf(e):-1;return-1===o?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,r=e.iScale,n=[];let o,i;for(o=0,i=e.data.length;o<i;++o)n.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||kn(e),pixels:n,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:r,index:n},options:{base:o,minBarLength:i}}=this,a=o||0,s=this.getParsed(t),c=s._custom,l=On(c);let u,d,f=s[e.axis],h=0,p=r?this.applyStack(e,s,r):f;p!==f&&(h=p-f,p=f),l&&(f=c.barStart,p=c.barEnd-c.barStart,0!==f&&Jt(f)!==Jt(c.barEnd)&&(h=0),h+=f);const g=_t(o)||l?h:o;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(h+p):m,d=u-m,Math.abs(d)<i){d=function(t,e,r){return 0!==t?Jt(t):(e.isHorizontal()?1:-1)*(e.min>=r?1:-1)}(d,e,a)*i,f===a&&(m-=d/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),c=Math.min(t,o),h=Math.max(t,o);m=Math.max(Math.min(m,h),c),u=m+d,r&&!l&&(s._stacks[e.axis]._visualValues[n]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(a)){const t=Jt(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const r=e.scale,n=this.options,o=n.skipNull,i=Tt(n.maxBarThickness,1/0);let a,s;if(e.grouped){const r=o?this._getStackCount(t):e.stackCount,c="flex"===n.barThickness?function(t,e,r,n){const o=e.pixels,i=o[t];let a=t>0?o[t-1]:null,s=t<o.length-1?o[t+1]:null;const c=r.categoryPercentage;null===a&&(a=i-(null===s?e.end-e.start:s-i)),null===s&&(s=i+i-a);const l=i-(i-Math.min(a,s))/2*c;return{chunk:Math.abs(s-a)/2*c/n,ratio:r.barPercentage,start:l}}(t,e,n,r):function(t,e,r,n){const o=r.barThickness;let i,a;return _t(o)?(i=e.min*r.categoryPercentage,a=r.barPercentage):(i=o*n,a=1),{chunk:i/n,ratio:a,start:e.pixels[t]-i/2}}(t,e,n,r),l=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=c.start+c.chunk*l+c.chunk/2,s=Math.min(i,c.chunk*c.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),s=Math.min(i,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,r=t.data,n=r.length;let o=0;for(;o<n;++o)null===this.getParsed(o)[e.axis]||r[o].hidden||r[o].draw(this._ctx)}}class Dn extends _n{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:r,color:n}}=t.legend.options;return e.labels.map(((e,o)=>{const i=t.getDatasetMeta(0).controller.getStyle(o);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:n,lineWidth:i.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(o),index:o}}))}return[]}},onClick(t,e,r){r.chart.toggleDataVisibility(e.index),r.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const r=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=r;else{let o,i,a=t=>+r[t];if(Et(r[t])){const{key:t="value"}=this._parsing;a=e=>+Lt(r[e],t)}for(o=t,i=t+e;o<i;++o)n._parsed[o]=a(o)}}_getRotation(){return oe(this.options.rotation-90)}_getCircumference(){return oe(this.options.circumference)}_getRotationExtents(){let t=Wt,e=-Wt;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const n=this.chart.getDatasetMeta(r).controller,o=n._getRotation(),i=n._getCircumference();t=Math.min(t,o),e=Math.max(e,o+i)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:r}=e,n=this._cachedMeta,o=n.data,i=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-i)/2,0),s=Math.min((c=this.options.cutout,l=a,"string"==typeof c&&c.endsWith("%")?parseFloat(c)/100:+c/l),1);var c,l;const u=this._getRingWeight(this.index),{circumference:d,rotation:f}=this._getRotationExtents(),{ratioX:h,ratioY:p,offsetX:g,offsetY:m}=function(t,e,r){let n=1,o=1,i=0,a=0;if(e<Wt){const s=t,c=s+e,l=Math.cos(s),u=Math.sin(s),d=Math.cos(c),f=Math.sin(c),h=(t,e,n)=>de(t,s,c,!0)?1:Math.max(e,e*r,n,n*r),p=(t,e,n)=>de(t,s,c,!0)?-1:Math.min(e,e*r,n,n*r),g=h(0,l,d),m=h(Kt,u,f),b=p(Ut,l,d),y=p(Ut+Kt,u,f);n=(g-b)/2,o=(m-y)/2,i=-(g+b)/2,a=-(m+y)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:a}}(f,d,s),b=(r.width-i)/h,y=(r.height-i)/p,v=Math.max(Math.min(b,y)/2,0),w=At(this.options.radius,v),x=(w-Math.max(w*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*w,this.offsetY=m*w,n.total=this.calculateTotal(),this.outerRadius=w-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const r=this.options,n=this._cachedMeta,o=this._getCircumference();return e&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*o/Wt)}updateElements(t,e,r,n){const o="reset"===n,i=this.chart,a=i.chartArea,s=i.options.animation,c=(a.left+a.right)/2,l=(a.top+a.bottom)/2,u=o&&s.animateScale,d=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:h,includeOptions:p}=this._getSharedOptions(e,n);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,o);for(g=e;g<e+r;++g){const e=this._circumference(g,o),r=t[g],i={x:c+this.offsetX,y:l+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:f,innerRadius:d};p&&(i.options=h||this.resolveDataElementOptions(g,r.active?"active":n)),m+=e,this.updateElement(r,g,i,n)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let r,n=0;for(r=0;r<e.length;r++){const o=t._parsed[r];null===o||isNaN(o)||!this.chart.getDataVisibility(r)||e[r].hidden||(n+=Math.abs(o))}return n}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Wt*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,r=this.chart,n=r.data.labels||[],o=Re(e._parsed[t],r.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const r=this.chart;let n,o,i,a,s;if(!t)for(n=0,o=r.data.datasets.length;n<o;++n)if(r.isDatasetVisible(n)){i=r.getDatasetMeta(n),t=i.data,a=i.controller;break}if(!t)return 0;for(n=0,o=t.length;n<o;++n)s=a.resolveDataElementOptions(n),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let r=0,n=t.length;r<n;++r){const t=this.resolveDataElementOptions(r);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(e+=this._getRingWeight(r));return e}_getRingWeight(t){return Math.max(Tt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Mn extends _n{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:r,data:n=[],_dataset:o}=e,i=this.chart._animationsDisabled;let{start:a,count:s}=function(t,e,r){const n=e.length;let o=0,i=n;if(t._sorted){const{iScale:a,_parsed:s}=t,c=a.axis,{min:l,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(o=fe(Math.min(ge(s,c,l).lo,r?n:ge(e,c,a.getPixelForValue(l)).lo),0,n-1)),i=f?fe(Math.max(ge(s,a.axis,u,!0).hi+1,r?0:ge(e,c,a.getPixelForValue(u),!0).hi+1),o,n)-o:n-o}return{start:o,count:i}}(e,n,i);this._drawStart=a,this._drawCount=s,function(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,o={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=o,!0;const i=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,o),i}(e)&&(a=0,s=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:c},t),this.updateElements(n,a,s,t)}updateElements(t,e,r,n){const o="reset"===n,{iScale:i,vScale:a,_stacked:s,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:u}=this._getSharedOptions(e,n),d=i.axis,f=a.axis,{spanGaps:h,segment:p}=this.options,g=re(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||"none"===n,b=e+r,y=t.length;let v=e>0&&this.getParsed(e-1);for(let r=0;r<y;++r){const h=t[r],y=m?h:{};if(r<e||r>=b){y.skip=!0;continue}const w=this.getParsed(r),x=_t(w[f]),_=y[d]=i.getPixelForValue(w[d],r),k=y[f]=o||x?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,w,s):w[f],r);y.skip=isNaN(_)||isNaN(k)||x,y.stop=r>0&&Math.abs(w[d]-v[d])>g,p&&(y.parsed=w,y.raw=c.data[r]),u&&(y.options=l||this.resolveDataElementOptions(r,h.active?"active":n)),m||this.updateElement(h,r,y,n),v=w}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,r=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class Rn extends Dn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function In(t,e,r,n){const{controller:o,data:i,_sorted:a}=t,s=o._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&i.length){const t=s._reversePixels?me:ge;if(!n)return t(i,e,r);if(o._sharedOptions){const n=i[0],o="function"==typeof n.getRange&&n.getRange(e);if(o){const n=t(i,e,r-o),a=t(i,e,r+o);return{lo:n.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function Nn(t,e,r,n,o){const i=t.getSortedVisibleDatasetMetas(),a=r[e];for(let t=0,r=i.length;t<r;++t){const{index:r,data:s}=i[t],{lo:c,hi:l}=In(i[t],e,a,o);for(let t=c;t<=l;++t){const e=s[t];e.skip||n(e,r,t)}}}function Fn(t,e,r,n,o){const i=[];if(!o&&!t.isPointInArea(e))return i;return Nn(t,r,e,(function(r,a,s){(o||qe(r,t.chartArea,0))&&r.inRange(e.x,e.y,n)&&i.push({element:r,datasetIndex:a,index:s})}),!0),i}function zn(t,e,r,n,o,i){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,n){const o=e?Math.abs(t.x-n.x):0,i=r?Math.abs(t.y-n.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(i,2))}}(r);let c=Number.POSITIVE_INFINITY;return Nn(t,r,e,(function(r,l,u){const d=r.inRange(e.x,e.y,o);if(n&&!d)return;const f=r.getCenterPoint(o);if(!(!!i||t.isPointInArea(f))&&!d)return;const h=s(e,f);h<c?(a=[{element:r,datasetIndex:l,index:u}],c=h):h===c&&a.push({element:r,datasetIndex:l,index:u})})),a}function Ln(t,e,r,n,o,i){return i||t.isPointInArea(e)?"r"!==r||n?zn(t,e,r,n,o,i):function(t,e,r,n){let o=[];return Nn(t,r,e,(function(t,r,i){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],n),{angle:c}=se(t,{x:e.x,y:e.y});de(c,a,s)&&o.push({element:t,datasetIndex:r,index:i})})),o}(t,e,r,o):[]}function Bn(t,e,r,n,o){const i=[],a="x"===r?"inXRange":"inYRange";let s=!1;return Nn(t,r,e,((t,n,c)=>{t[a]&&t[a](e[r],o)&&(i.push({element:t,datasetIndex:n,index:c}),s=s||t.inRange(e.x,e.y,o))})),n&&!s?[]:i}var Vn={evaluateInteractionItems:Nn,modes:{index(t,e,r,n){const o=Br(e,t),i=r.axis||"x",a=r.includeInvisible||!1,s=r.intersect?Fn(t,o,i,n,a):Ln(t,o,i,!1,n,a),c=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,r=t.data[e];r&&!r.skip&&c.push({element:r,datasetIndex:t.index,index:e})})),c):[]},dataset(t,e,r,n){const o=Br(e,t),i=r.axis||"xy",a=r.includeInvisible||!1;let s=r.intersect?Fn(t,o,i,n,a):Ln(t,o,i,!1,n,a);if(s.length>0){const e=s[0].datasetIndex,r=t.getDatasetMeta(e).data;s=[];for(let t=0;t<r.length;++t)s.push({element:r[t],datasetIndex:e,index:t})}return s},point:(t,e,r,n)=>Fn(t,Br(e,t),r.axis||"xy",n,r.includeInvisible||!1),nearest(t,e,r,n){const o=Br(e,t),i=r.axis||"xy",a=r.includeInvisible||!1;return Ln(t,o,i,r.intersect,n,a)},x:(t,e,r,n)=>Bn(t,Br(e,t),"x",r.intersect,n),y:(t,e,r,n)=>Bn(t,Br(e,t),"y",r.intersect,n)}};const $n=["left","top","right","bottom"];function Hn(t,e){return t.filter((t=>t.pos===e))}function Un(t,e){return t.filter((t=>-1===$n.indexOf(t.pos)&&t.box.axis===e))}function Wn(t,e){return t.sort(((t,r)=>{const n=e?r:t,o=e?t:r;return n.weight===o.weight?n.index-o.index:n.weight-o.weight}))}function Yn(t,e){const r=function(t){const e={};for(const r of t){const{stack:t,pos:n,stackWeight:o}=r;if(!t||!$n.includes(n))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return e}(t),{vBoxMaxWidth:n,hBoxMaxHeight:o}=e;let i,a,s;for(i=0,a=t.length;i<a;++i){s=t[i];const{fullSize:a}=s.box,c=r[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*n:a&&e.availableWidth,s.height=o):(s.width=n,s.height=l?l*o:a&&e.availableHeight)}return r}function Xn(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function qn(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Kn(t,e,r,n){const{pos:o,box:i}=r,a=t.maxPadding;if(!Et(o)){r.size&&(t[o]-=r.size);const e=n[r.stack]||{size:0,count:1};e.size=Math.max(e.size,r.horizontal?i.height:i.width),r.size=e.size/e.count,t[o]+=r.size}i.getPadding&&qn(a,i.getPadding());const s=Math.max(0,e.outerWidth-Xn(a,t,"left","right")),c=Math.max(0,e.outerHeight-Xn(a,t,"top","bottom")),l=s!==t.w,u=c!==t.h;return t.w=s,t.h=c,r.horizontal?{same:l,other:u}:{same:u,other:l}}function Gn(t,e){const r=e.maxPadding;function n(t){const n={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{n[t]=Math.max(e[t],r[t])})),n}return n(t?["left","right"]:["top","bottom"])}function Zn(t,e,r,n){const o=[];let i,a,s,c,l,u;for(i=0,a=t.length,l=0;i<a;++i){s=t[i],c=s.box,c.update(s.width||e.w,s.height||e.h,Gn(s.horizontal,e));const{same:a,other:d}=Kn(e,r,s,n);l|=a&&o.length,u=u||d,c.fullSize||o.push(s)}return l&&Zn(o,e,r,n)||u}function Qn(t,e,r,n,o){t.top=r,t.left=e,t.right=e+n,t.bottom=r+o,t.width=n,t.height=o}function Jn(t,e,r,n){const o=r.padding;let{x:i,y:a}=e;for(const s of t){const t=s.box,c=n[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){const n=e.w*l,i=c.size||t.height;Vt(c.start)&&(a=c.start),t.fullSize?Qn(t,o.left,a,r.outerWidth-o.right-o.left,i):Qn(t,e.left+c.placed,a,n,i),c.start=a,c.placed+=n,a=t.bottom}else{const n=e.h*l,a=c.size||t.width;Vt(c.start)&&(i=c.start),t.fullSize?Qn(t,i,o.top,a,r.outerHeight-o.bottom-o.top):Qn(t,i,e.top+c.placed,a,n),c.start=i,c.placed+=n,i=t.right}}e.x=i,e.y=a}var to={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const r=t.boxes?t.boxes.indexOf(e):-1;-1!==r&&t.boxes.splice(r,1)},configure(t,e,r){e.fullSize=r.fullSize,e.position=r.position,e.weight=r.weight},update(t,e,r,n){if(!t)return;const o=ur(t.options.layout.padding),i=Math.max(e-o.width,0),a=Math.max(r-o.height,0),s=function(t){const e=function(t){const e=[];let r,n,o,i,a,s;for(r=0,n=(t||[]).length;r<n;++r)o=t[r],({position:i,options:{stack:a,stackWeight:s=1}}=o),e.push({index:r,box:o,pos:i,horizontal:o.isHorizontal(),weight:o.weight,stack:a&&i+a,stackWeight:s});return e}(t),r=Wn(e.filter((t=>t.box.fullSize)),!0),n=Wn(Hn(e,"left"),!0),o=Wn(Hn(e,"right")),i=Wn(Hn(e,"top"),!0),a=Wn(Hn(e,"bottom")),s=Un(e,"x"),c=Un(e,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(c).concat(a).concat(s),chartArea:Hn(e,"chartArea"),vertical:n.concat(o).concat(c),horizontal:i.concat(a).concat(s)}}(t.boxes),c=s.vertical,l=s.horizontal;Pt(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=c.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:r,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},o);qn(f,ur(n));const h=Object.assign({maxPadding:f,w:i,h:a,x:o.left,y:o.top},o),p=Yn(c.concat(l),d);Zn(s.fullSize,h,d,p),Zn(c,h,d,p),Zn(l,h,d,p)&&Zn(c,h,d,p),function(t){const e=t.maxPadding;function r(r){const n=Math.max(e[r]-t[r],0);return t[r]+=n,n}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}(h),Jn(s.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,Jn(s.rightAndBottom,h,d,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Pt(s.chartArea,(e=>{const r=e.box;Object.assign(r,t.chartArea),r.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}};class eo{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,r){}removeEventListener(t,e,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,r,n){return e=Math.max(0,e||t.width),r=r||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):r)}}isAttached(t){return!0}updateConfig(t){}}class ro extends eo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const no="$chartjs",oo={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},io=t=>null===t||""===t;const ao=!!Ur&&{passive:!0};function so(t,e,r){t&&t.canvas&&t.canvas.removeEventListener(e,r,ao)}function co(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function lo(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||co(r.addedNodes,n),e=e&&!co(r.removedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}function uo(t,e,r){const n=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const r of t)e=e||co(r.removedNodes,n),e=e&&!co(r.addedNodes,n);e&&r()}));return o.observe(document,{childList:!0,subtree:!0}),o}const fo=new Map;let ho=0;function po(){const t=window.devicePixelRatio;t!==ho&&(ho=t,fo.forEach(((e,r)=>{r.currentDevicePixelRatio!==t&&e()})))}function go(t,e,r){const n=t.canvas,o=n&&Ir(n);if(!o)return;const i=xe(((t,e)=>{const n=o.clientWidth;r(t,e),n<o.clientWidth&&r()}),window),a=new ResizeObserver((t=>{const e=t[0],r=e.contentRect.width,n=e.contentRect.height;0===r&&0===n||i(r,n)}));return a.observe(o),function(t,e){fo.size||window.addEventListener("resize",po),fo.set(t,e)}(t,i),a}function mo(t,e,r){r&&r.disconnect(),"resize"===e&&function(t){fo.delete(t),fo.size||window.removeEventListener("resize",po)}(t)}function bo(t,e,r){const n=t.canvas,o=xe((e=>{null!==t.ctx&&r(function(t,e){const r=oo[t.type]||t.type,{x:n,y:o}=Br(t,e);return{type:r,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,r){t&&t.addEventListener(e,r,ao)}(n,e,o),o}class yo extends eo{acquireContext(t,e){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(function(t,e){const r=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[no]={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",io(o)){const e=Wr(t,"width");void 0!==e&&(t.width=e)}if(io(n))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Wr(t,"height");void 0!==e&&(t.height=e)}}(t,e),r):null}releaseContext(t){const e=t.canvas;if(!e[no])return!1;const r=e[no].initial;["height","width"].forEach((t=>{const n=r[t];_t(n)?e.removeAttribute(t):e.setAttribute(t,n)}));const n=r.style||{};return Object.keys(n).forEach((t=>{e.style[t]=n[t]})),e.width=e.width,delete e[no],!0}addEventListener(t,e,r){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),o={attach:lo,detach:uo,resize:go}[e]||bo;n[e]=o(t,e,r)}removeEventListener(t,e){const r=t.$proxies||(t.$proxies={}),n=r[e];if(!n)return;({attach:mo,detach:mo,resize:mo}[e]||so)(t,e,n),r[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,r,n){return $r(t,e,r,n)}isAttached(t){const e=t&&Ir(t);return!(!e||!e.isConnected)}}class vo{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}hasValue(){return re(this.x)&&re(this.y)}getProps(t,e){const r=this.$animations;if(!e||!r)return this;const n={};return t.forEach((t=>{n[t]=r[t]&&r[t].active()?r[t]._to:this[t]})),n}}function wo(t,e){const r=t.options.ticks,n=function(t){const e=t.options.offset,r=t._tickSize(),n=t._length/r+(e?0:1),o=t._maxLength/r;return Math.floor(Math.min(n,o))}(t),o=Math.min(r.maxTicksLimit||n,n),i=r.major.enabled?function(t){const e=[];let r,n;for(r=0,n=t.length;r<n;r++)t[r].major&&e.push(r);return e}(e):[],a=i.length,s=i[0],c=i[a-1],l=[];if(a>o)return function(t,e,r,n){let o,i=0,a=r[0];for(n=Math.ceil(n),o=0;o<t.length;o++)o===a&&(e.push(t[o]),i++,a=r[i*n])}(e,l,i,a/o),l;const u=function(t,e,r){const n=function(t){const e=t.length;let r,n;if(e<2)return!1;for(n=t[0],r=1;r<e;++r)if(t[r]-t[r-1]!==n)return!1;return n}(t),o=e.length/r;if(!n)return Math.max(o,1);const i=function(t){const e=[],r=Math.sqrt(t);let n;for(n=1;n<r;n++)t%n==0&&(e.push(n),e.push(t/n));return r===(0|r)&&e.push(r),e.sort(((t,e)=>t-e)).pop(),e}(n);for(let t=0,e=i.length-1;t<e;t++){const e=i[t];if(e>o)return e}return Math.max(o,1)}(i,e,o);if(a>0){let t,r;const n=a>1?Math.round((c-s)/(a-1)):null;for(xo(e,l,u,_t(n)?0:s-n,s),t=0,r=a-1;t<r;t++)xo(e,l,u,i[t],i[t+1]);return xo(e,l,u,c,_t(n)?e.length:c+n),l}return xo(e,l,u),l}function xo(t,e,r,n,o){const i=Tt(n,0),a=Math.min(Tt(o,t.length),t.length);let s,c,l,u=0;for(r=Math.ceil(r),o&&(s=o-n,r=s/Math.floor(s/r)),l=i;l<0;)u++,l=Math.round(i+u*r);for(c=Math.max(i,0);c<a;c++)c===l&&(e.push(t[c]),u++,l=Math.round(i+u*r))}const _o=(t,e,r)=>"top"===e||"left"===e?t[e]+r:t[e]-r,ko=(t,e)=>Math.min(e||t,t);function Eo(t,e){const r=[],n=t.length/e,o=t.length;let i=0;for(;i<o;i+=n)r.push(t[Math.floor(i)]);return r}function So(t,e,r){const n=t.ticks.length,o=Math.min(e,n-1),i=t._startPixel,a=t._endPixel,s=1e-6;let c,l=t.getPixelForTick(o);if(!(r&&(c=1===n?Math.max(l-i,a-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(o-1))/2,l+=o<e?c:-c,l<i-s||l>a+s)))return l}function Oo(t){return t.drawTicks?t.tickLength:0}function To(t,e){if(!t.display)return 0;const r=dr(t.font,e),n=ur(t.padding);return(kt(t.text)?t.text.length:1)*r.lineHeight+n.height}function Ao(t,e,r){let n=_e(t);return(r&&"right"!==e||!r&&"right"===e)&&(n=(t=>"left"===t?"right":"right"===t?"left":t)(n)),n}class jo extends vo{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:r,_suggestedMax:n}=this;return t=Ot(t,Number.POSITIVE_INFINITY),e=Ot(e,Number.NEGATIVE_INFINITY),r=Ot(r,Number.POSITIVE_INFINITY),n=Ot(n,Number.NEGATIVE_INFINITY),{min:Ot(t,r),max:Ot(e,n),minDefined:St(t),maxDefined:St(e)}}getMinMax(t){let e,{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let s=0,c=a.length;s<c;++s)e=a[s].controller.getMinMax(this,t),o||(r=Math.min(r,e.min)),i||(n=Math.max(n,e.max));return r=i&&r>n?n:r,n=o&&r>n?r:n,{min:Ot(r,Ot(n,r)),max:Ot(n,Ot(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){jt(this.options.beforeUpdate,[this])}update(t,e,r){const{beginAtZero:n,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,r){const{min:n,max:o}=t,i=At(e,(o-n)/2),a=(t,e)=>r&&0===t?0:t+e;return{min:a(n,-Math.abs(i)),max:a(o,i)}}(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Eo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(this.ticks=wo(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,r=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,r=!r),this._startPixel=t,this._endPixel=e,this._reversePixels=r,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){jt(this.options.afterUpdate,[this])}beforeSetDimensions(){jt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){jt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),jt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){jt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let r,n,o;for(r=0,n=t.length;r<n;r++)o=t[r],o.label=jt(e.callback,[o.value,r,t],this)}afterTickToLabelConversion(){jt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){jt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,r=ko(this.ticks.length,t.ticks.maxTicksLimit),n=e.minRotation||0,o=e.maxRotation;let i,a,s,c=n;if(!this._isVisible()||!e.display||n>=o||r<=1||!this.isHorizontal())return void(this.labelRotation=n);const l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=fe(this.chart.width-u,0,this.maxWidth);i=t.offset?this.maxWidth/r:f/(r-1),u+6>i&&(i=f/(r-(t.offset?.5:1)),a=this.maxHeight-Oo(t.grid)-e.padding-To(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),c=ie(Math.min(Math.asin(fe((l.highest.height+6)/i,-1,1)),Math.asin(fe(a/s,-1,1))-Math.asin(fe(d/s,-1,1)))),c=Math.max(n,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){jt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){jt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:r,title:n,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=To(n,e.options.font);if(a?(t.width=this.maxWidth,t.height=Oo(o)+i):(t.height=this.maxHeight,t.width=Oo(o)+i),r.display&&this.ticks.length){const{first:e,last:n,widest:o,highest:i}=this._getLabelSizes(),s=2*r.padding,c=oe(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(a){const e=r.mirror?0:u*o.width+l*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=r.mirror?0:l*o.width+u*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,n,u,l)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,r,n){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?c?(u=n*t.width,d=r*e.height):(u=r*t.height,d=n*e.width):"start"===o?d=e.width:"end"===o?u=t.width:"inner"!==o&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-l+i)*this.width/(this.width-l),0)}else{let r=e.height/2,n=t.height/2;"start"===o?(r=0,n=t.height):"end"===o&&(r=e.height,n=0),this.paddingTop=r+i,this.paddingBottom=n+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){jt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,r=t.length;e<r;e++)_t(t[e].label)&&(t.splice(e,1),r--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let r=this.ticks;e<r.length&&(r=Eo(r,e)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,r){const{ctx:n,_longestTextCache:o}=this,i=[],a=[],s=Math.floor(e/ko(e,r));let c,l,u,d,f,h,p,g,m,b,y,v=0,w=0;for(c=0;c<e;c+=s){if(d=t[c].label,f=this._resolveTickFontOptions(c),n.font=h=f.string,p=o[h]=o[h]||{data:{},gc:[]},g=f.lineHeight,m=b=0,_t(d)||kt(d)){if(kt(d))for(l=0,u=d.length;l<u;++l)y=d[l],_t(y)||kt(y)||(m=He(n,p.data,p.gc,m,y),b+=g)}else m=He(n,p.data,p.gc,m,d),b=g;i.push(m),a.push(b),v=Math.max(m,v),w=Math.max(b,w)}!function(t,e){Pt(t,(t=>{const r=t.gc,n=r.length/2;let o;if(n>e){for(o=0;o<n;++o)delete t.data[r[o]];r.splice(0,n)}}))}(o,e);const x=i.indexOf(v),_=a.indexOf(w),k=t=>({width:i[t]||0,height:a[t]||0});return{first:k(0),last:k(e-1),widest:k(x),highest:k(_),widths:i,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return fe(this._alignToPixels?Ue(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const r=e[t];return r.$context||(r.$context=function(t,e,r){return hr(t,{tick:r,index:e,type:"tick"})}(this.getContext(),t,r))}return this.$context||(this.$context=hr(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=oe(this.labelRotation),r=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),o=this._getLabelSizes(),i=t.autoSkipPadding||0,a=o?o.widest.width+i:0,s=o?o.highest.height+i:0;return this.isHorizontal()?s*r>a*n?a/r:s/n:s*n<a*r?s/r:a/n}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,r=this.chart,n=this.options,{grid:o,position:i,border:a}=n,s=o.offset,c=this.isHorizontal(),l=this.ticks.length+(s?1:0),u=Oo(o),d=[],f=a.setContext(this.getContext()),h=f.display?f.width:0,p=h/2,g=function(t){return Ue(r,t,h)};let m,b,y,v,w,x,_,k,E,S,O,T;if("top"===i)m=g(this.bottom),x=this.bottom-u,k=m-p,S=g(t.top)+p,T=t.bottom;else if("bottom"===i)m=g(this.top),S=t.top,T=g(t.bottom)-p,x=m+p,k=this.top+u;else if("left"===i)m=g(this.right),w=this.right-u,_=m-p,E=g(t.left)+p,O=t.right;else if("right"===i)m=g(this.left),E=t.left,O=g(t.right)-p,w=m+p,_=this.left+u;else if("x"===e){if("center"===i)m=g((t.top+t.bottom)/2+.5);else if(Et(i)){const t=Object.keys(i)[0],e=i[t];m=g(this.chart.scales[t].getPixelForValue(e))}S=t.top,T=t.bottom,x=m+p,k=x+u}else if("y"===e){if("center"===i)m=g((t.left+t.right)/2);else if(Et(i)){const t=Object.keys(i)[0],e=i[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-p,_=w-u,E=t.left,O=t.right}const A=Tt(n.ticks.maxTicksLimit,l),j=Math.max(1,Math.ceil(l/A));for(b=0;b<l;b+=j){const t=this.getContext(b),e=o.setContext(t),n=a.setContext(t),i=e.lineWidth,l=e.color,u=n.dash||[],f=n.dashOffset,h=e.tickWidth,p=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=So(this,b,s),void 0!==y&&(v=Ue(r,y,i),c?w=_=E=O=v:x=k=S=T=v,d.push({tx1:w,ty1:x,tx2:_,ty2:k,x1:E,y1:S,x2:O,y2:T,width:i,color:l,borderDash:u,borderDashOffset:f,tickWidth:h,tickColor:p,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,r=this.options,{position:n,ticks:o}=r,i=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=o,d=Oo(r.grid),f=d+l,h=u?-l:f,p=-oe(this.labelRotation),g=[];let m,b,y,v,w,x,_,k,E,S,O,T,A="middle";if("top"===n)x=this.bottom-h,_=this._getXAxisLabelAlignment();else if("bottom"===n)x=this.top+h,_=this._getXAxisLabelAlignment();else if("left"===n){const t=this._getYAxisLabelAlignment(d);_=t.textAlign,w=t.x}else if("right"===n){const t=this._getYAxisLabelAlignment(d);_=t.textAlign,w=t.x}else if("x"===e){if("center"===n)x=(t.top+t.bottom)/2+f;else if(Et(n)){const t=Object.keys(n)[0],e=n[t];x=this.chart.scales[t].getPixelForValue(e)+f}_=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===n)w=(t.left+t.right)/2-f;else if(Et(n)){const t=Object.keys(n)[0],e=n[t];w=this.chart.scales[t].getPixelForValue(e)}_=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?A="top":"end"===s&&(A="bottom"));const j=this._getLabelSizes();for(m=0,b=a.length;m<b;++m){y=a[m],v=y.label;const t=o.setContext(this.getContext(m));k=this.getPixelForTick(m)+o.labelOffset,E=this._resolveTickFontOptions(m),S=E.lineHeight,O=kt(v)?v.length:1;const e=O/2,r=t.color,s=t.textStrokeColor,l=t.textStrokeWidth;let d,f=_;if(i?(w=k,"inner"===_&&(f=m===b-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),T="top"===n?"near"===c||0!==p?-O*S+S/2:"center"===c?-j.highest.height/2-e*S+S:-j.highest.height+S/2:"near"===c||0!==p?S/2:"center"===c?j.highest.height/2-e*S:j.highest.height-O*S,u&&(T*=-1),0===p||t.showLabelBackdrop||(w+=S/2*Math.sin(p))):(x=k,T=(1-O)*S/2),t.showLabelBackdrop){const e=ur(t.backdropPadding),r=j.heights[m],n=j.widths[m];let o=T-e.top,i=0-e.left;switch(A){case"middle":o-=r/2;break;case"bottom":o-=r}switch(_){case"center":i-=n/2;break;case"right":i-=n;break;case"inner":m===b-1?i-=n:m>0&&(i-=n/2)}d={left:i,top:o,width:n+e.width,height:r+e.height,color:t.backdropColor}}g.push({label:v,font:E,textOffset:T,options:{rotation:p,color:r,strokeColor:s,strokeWidth:l,textAlign:f,textBaseline:A,translation:[w,x],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-oe(this.labelRotation))return"top"===t?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:r,mirror:n,padding:o}}=this.options,i=t+o,a=this._getLabelSizes().widest.width;let s,c;return"left"===e?n?(c=this.right+o,"near"===r?s="left":"center"===r?(s="center",c+=a/2):(s="right",c+=a)):(c=this.right-i,"near"===r?s="right":"center"===r?(s="center",c-=a/2):(s="left",c=this.left)):"right"===e?n?(c=this.left+o,"near"===r?s="right":"center"===r?(s="center",c-=a/2):(s="left",c-=a)):(c=this.left+i,"near"===r?s="left":"center"===r?(s="center",c+=a/2):(s="right",c=this.right)):s="right",{textAlign:s,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:r,top:n,width:o,height:i}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(r,n,o,i),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex((e=>e.value===t));if(r>=0){return e.setContext(this.getContext(r)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,i;const a=(t,e,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(t.x,t.y),r.lineTo(e.x,e.y),r.stroke(),r.restore())};if(e.display)for(o=0,i=n.length;o<i;++o){const t=n[o];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:r,grid:n}}=this,o=r.setContext(this.getContext()),i=r.display?o.width:0;if(!i)return;const a=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let c,l,u,d;this.isHorizontal()?(c=Ue(t,this.left,i)-i/2,l=Ue(t,this.right,a)+a/2,u=d=s):(u=Ue(t,this.top,i)-i/2,d=Ue(t,this.bottom,a)+a/2,c=l=s),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(c,u),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,r=this._computeLabelArea();r&&Ke(e,r);const n=this.getLabelItems(t);for(const t of n){const r=t.options,n=t.font;er(e,t.label,0,t.textOffset,n,r)}r&&Ge(e)}drawTitle(){const{ctx:t,options:{position:e,title:r,reverse:n}}=this;if(!r.display)return;const o=dr(r.font),i=ur(r.padding),a=r.align;let s=o.lineHeight/2;"bottom"===e||"center"===e||Et(e)?(s+=i.bottom,kt(r.text)&&(s+=o.lineHeight*(r.text.length-1))):s+=i.top;const{titleX:c,titleY:l,maxWidth:u,rotation:d}=function(t,e,r,n){const{top:o,left:i,bottom:a,right:s,chart:c}=t,{chartArea:l,scales:u}=c;let d,f,h,p=0;const g=a-o,m=s-i;if(t.isHorizontal()){if(f=ke(n,i,s),Et(r)){const t=Object.keys(r)[0],n=r[t];h=u[t].getPixelForValue(n)+g-e}else h="center"===r?(l.bottom+l.top)/2+g-e:_o(t,r,e);d=s-i}else{if(Et(r)){const t=Object.keys(r)[0],n=r[t];f=u[t].getPixelForValue(n)-m+e}else f="center"===r?(l.left+l.right)/2-m+e:_o(t,r,e);h=ke(n,a,o),p="left"===r?-Kt:Kt}return{titleX:f,titleY:h,maxWidth:d,rotation:p}}(this,s,e,a);er(t,r.text,0,0,o,{color:r.color,maxWidth:u,rotation:d,textAlign:Ao(a,e,n),textBaseline:"middle",translation:[c,l]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,r=Tt(t.grid&&t.grid.z,-1),n=Tt(t.border&&t.border.z,0);return this._isVisible()&&this.draw===jo.prototype.draw?[{z:r,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let o,i;for(o=0,i=e.length;o<i;++o){const i=e[o];i[r]!==this.id||t&&i.type!==t||n.push(i)}return n}_resolveTickFontOptions(t){return dr(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Po{constructor(t,e,r){this.type=t,this.scope=e,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let r;(function(t){return"id"in t&&"defaults"in t})(e)&&(r=this.register(e));const n=this.items,o=t.id,i=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,function(t,e,r){const n=It(Object.create(null),[r?$e.get(r):{},$e.get(e),t.defaults]);$e.set(e,n),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((r=>{const n=r.split("."),o=n.pop(),i=[t].concat(n).join("."),a=e[r].split("."),s=a.pop(),c=a.join(".");$e.route(i,o,c,s)}))}(e,t.defaultRoutes);t.descriptors&&$e.describe(e,t.descriptors)}(t,i,r),this.override&&$e.override(t.id,t.overrides)),i}get(t){return this.items[t]}unregister(t){const e=this.items,r=t.id,n=this.scope;r in e&&delete e[r],n&&r in $e[n]&&(delete $e[n][r],this.override&&delete Fe[r])}}class Co{constructor(){this.controllers=new Po(_n,"datasets",!0),this.elements=new Po(vo,"elements"),this.plugins=new Po(Object,"plugins"),this.scales=new Po(jo,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,r){[...e].forEach((e=>{const n=r||this._getRegistryForType(e);r||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):Pt(e,(e=>{const n=r||this._getRegistryForType(e);this._exec(t,n,e)}))}))}_exec(t,e,r){const n=Bt(t);jt(r["before"+n],[],r),e[t](r),jt(r["after"+n],[],r)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const r=this._typedRegistries[e];if(r.isForType(t))return r}return this.plugins}_get(t,e,r){const n=e.get(t);if(void 0===n)throw new Error('"'+t+'" is not a registered '+r+".");return n}}var Do=new Co;class Mo{constructor(){this._init=[]}notify(t,e,r,n){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=n?this._descriptors(t).filter(n):this._descriptors(t),i=this._notify(o,t,e,r);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),i}_notify(t,e,r,n){n=n||{};for(const o of t){const t=o.plugin;if(!1===jt(t[r],[e,n,o.options],t)&&n.cancelable)return!1}return!0}invalidate(){_t(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const r=t&&t.config,n=Tt(r.options&&r.options.plugins,{}),o=function(t){const e={},r=[],n=Object.keys(Do.plugins.items);for(let t=0;t<n.length;t++)r.push(Do.getPlugin(n[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const n=o[t];-1===r.indexOf(n)&&(r.push(n),e[n.id]=!0)}return{plugins:r,localIds:e}}(r);return!1!==n||e?function(t,{plugins:e,localIds:r},n,o){const i=[],a=t.getContext();for(const s of e){const e=s.id,c=Ro(n[e],o);null!==c&&i.push({plugin:s,options:Io(t.config,{plugin:s,local:r[e]},c,a)})}return i}(t,o,n,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],r=this._cache,n=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(n(e,r),t,"stop"),this._notify(n(r,e),t,"start")}}function Ro(t,e){return e||!1!==t?!0===t?{}:t:null}function Io(t,{plugin:e,local:r},n,o){const i=t.pluginScopeKeys(e),a=t.getOptionScopes(n,i);return r&&e.defaults&&a.push(e.defaults),t.createResolver(a,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function No(t,e){const r=$e.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||r.indexAxis||"x"}function Fo(t){if("x"===t||"y"===t||"r"===t)return t}function zo(t,...e){if(Fo(t))return t;for(const n of e){const e=n.axis||("top"===(r=n.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||t.length>1&&Fo(t[0].toLowerCase());if(e)return e}var r;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Lo(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function Bo(t,e){const r=Fe[t.type]||{scales:{}},n=e.scales||{},o=No(t.type,e),i=Object.create(null);return Object.keys(n).forEach((e=>{const a=n[e];if(!Et(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=zo(e,a,function(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(r.length)return Lo(t,"x",r[0])||Lo(t,"y",r[0])}return{}}(e,t),$e.scales[a.type]),c=function(t,e){return t===e?"_index_":"_value_"}(s,o),l=r.scales||{};i[e]=Nt(Object.create(null),[{axis:s},a,l[s],l[c]])})),t.data.datasets.forEach((r=>{const o=r.type||t.type,a=r.indexAxis||No(o,e),s=(Fe[o]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let r=t;return"_index_"===t?r=e:"_value_"===t&&(r="x"===e?"y":"x"),r}(t,a),o=r[e+"AxisID"]||e;i[o]=i[o]||Object.create(null),Nt(i[o],[{axis:e},n[o],s[t]])}))})),Object.keys(i).forEach((t=>{const e=i[t];Nt(e,[$e.scales[e.type],$e.scale])})),i}function Vo(t){const e=t.options||(t.options={});e.plugins=Tt(e.plugins,{}),e.scales=Bo(t,e)}function $o(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ho=new Map,Uo=new Set;function Wo(t,e){let r=Ho.get(t);return r||(r=e(),Ho.set(t,r),Uo.add(r)),r}const Yo=(t,e,r)=>{const n=Lt(e,r);void 0!==n&&t.add(n)};class Xo{constructor(t){this._config=function(t){return(t=t||{}).data=$o(t.data),Vo(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=$o(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Vo(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Wo(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Wo(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Wo(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Wo(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const r=this._scopeCache;let n=r.get(t);return n&&!e||(n=new Map,r.set(t,n)),n}getOptionScopes(t,e,r){const{options:n,type:o}=this,i=this._cachedScopes(t,r),a=i.get(e);if(a)return a;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Yo(s,t,e)))),e.forEach((t=>Yo(s,n,t))),e.forEach((t=>Yo(s,Fe[o]||{},t))),e.forEach((t=>Yo(s,$e,t))),e.forEach((t=>Yo(s,ze,t)))}));const c=Array.from(s);return 0===c.length&&c.push(Object.create(null)),Uo.has(e)&&i.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Fe[e]||{},$e.datasets[e]||{},{type:e},$e,ze]}resolveNamedOptions(t,e,r,n=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=qo(this._resolverCache,t,n);let s=i;if(function(t,e){const{isScriptable:r,isIndexable:n}=mr(t);for(const o of e){const e=r(o),i=n(o),a=(i||e)&&t[o];if(e&&($t(a)||Ko(a))||i&&kt(a))return!0}return!1}(i,e)){o.$shared=!1;s=gr(i,r=$t(r)?r():r,this.createResolver(t,r,a))}for(const t of e)o[t]=s[t];return o}createResolver(t,e,r=[""],n){const{resolver:o}=qo(this._resolverCache,t,r);return Et(e)?gr(o,e,void 0,n):o}}function qo(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const o=r.join();let i=n.get(o);if(!i){i={resolver:pr(e,r),subPrefixes:r.filter((t=>!t.toLowerCase().includes("hover")))},n.set(o,i)}return i}const Ko=t=>Et(t)&&Object.getOwnPropertyNames(t).some((e=>$t(t[e])));const Go=["top","bottom","left","right","chartArea"];function Zo(t,e){return"top"===t||"bottom"===t||-1===Go.indexOf(t)&&"x"===e}function Qo(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function Jo(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),jt(r&&r.onComplete,[t],e)}function ti(t){const e=t.chart,r=e.options.animation;jt(r&&r.onProgress,[t],e)}function ei(t){return Rr()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ri={},ni=t=>{const e=ei(t);return Object.values(ri).filter((t=>t.canvas===e)).pop()};function oi(t,e,r){const n=Object.keys(t);for(const o of n){const n=+o;if(n>=e){const i=t[o];delete t[o],(r>0||n>e)&&(t[n+r]=i)}}}function ii(t,e,r){return t.options.clip?t[r]:e[r]}class ai{static defaults=$e;static instances=ri;static overrides=Fe;static registry=Do;static version="4.4.7";static getChart=ni;static register(...t){Do.add(...t),si()}static unregister(...t){Do.remove(...t),si()}constructor(t,e){const r=this.config=new Xo(e),n=ei(t),o=ni(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const i=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(t){return!Rr()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ro:yo}(n)),this.platform.updateConfig(r);const a=this.platform.acquireContext(n,i.aspectRatio),s=a&&a.canvas,c=s&&s.height,l=s&&s.width;this.id=xt(),this.ctx=a,this.canvas=s,this.width=l,this.height=c,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Mo,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}((t=>this.update(t)),i.resizeDelay||0),this._dataChanges=[],ri[this.id]=this,a&&s?(an.listen(this,"complete",Jo),an.listen(this,"progress",ti),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:r,height:n,_aspectRatio:o}=this;return _t(t)?e&&o?o:n?r/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Do}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Hr(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return We(this.canvas,this.ctx),this}stop(){return an.stop(this),this}resize(t,e){an.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const r=this.options,n=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(n,t,e,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Hr(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),jt(r.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Pt(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,r=this.scales,n=Object.keys(r).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const r=e[t],n=zo(t,r),o="r"===n,i="x"===n;return{options:r,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}})))),Pt(o,(e=>{const o=e.options,i=o.id,a=zo(i,o),s=Tt(o.type,e.dtype);void 0!==o.position&&Zo(o.position,a)===Zo(e.dposition)||(o.position=e.dposition),n[i]=!0;let c=null;if(i in r&&r[i].type===s)c=r[i];else{c=new(Do.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),r[c.id]=c}c.init(o,t)})),Pt(n,((t,e)=>{t||delete r[e]})),Pt(r,(t=>{to.configure(this,t,t.options),to.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,r=t.length;if(t.sort(((t,e)=>t.index-e.index)),r>e){for(let t=e;t<r;++t)this._destroyDatasetMeta(t);t.splice(e,r-e)}this._sortedMetasets=t.slice(0).sort(Qo("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,r)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(r)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=e.length;r<n;r++){const n=e[r];let o=this.getDatasetMeta(r);const i=n.type||this.config.type;if(o.type&&o.type!==i&&(this._destroyDatasetMeta(r),o=this.getDatasetMeta(r)),o.type=i,o.indexAxis=n.indexAxis||No(i,this.options),o.order=n.order||0,o.index=r,o.label=""+n.label,o.visible=this.isDatasetVisible(r),o.controller)o.controller.updateIndex(r),o.controller.linkScales();else{const e=Do.getController(i),{datasetElementType:n,dataElementType:a}=$e.datasets[i];Object.assign(e,{dataElementType:Do.getElement(a),datasetElementType:n&&Do.getElement(n)}),o.controller=new e(this,r),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Pt(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const r=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),r=!n&&-1===o.indexOf(e);e.buildOrUpdateElements(r),i=Math.max(+e.getMaxOverflow(),i)}i=this._minPadding=r.layout.autoPadding?i:0,this._updateLayout(i),n||Pt(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Qo("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Pt(this.scales,(t=>{to.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),r=new Set(t.events);Ht(e,r)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of e){oi(t,n,"_removeElements"===r?-o:o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,r=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),n=r(0);for(let t=1;t<e;t++)if(!Ht(n,r(t)))return;return Array.from(n).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;to.update(this,this.width,this.height,t);const e=this.chartArea,r=e.width<=0||e.height<=0;this._layers=[],Pt(this.boxes,(t=>{r&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,r=this.data.datasets.length;e<r;++e)this._updateDataset(e,$t(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const r=this.getDatasetMeta(t),n={meta:r,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",n)&&(r.controller._update(e),n.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",n))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(an.has(this)?this.attached&&!an.running(this)&&an.start(this):(this.draw(),Jo({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,r=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];t&&!o.visible||r.push(o)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,r=t._clip,n=!r.disabled,o=function(t,e){const{xScale:r,yScale:n}=t;return r&&n?{left:ii(r,e,"left"),right:ii(r,e,"right"),top:ii(n,e,"top"),bottom:ii(n,e,"bottom")}:e}(t,this.chartArea),i={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&Ke(e,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),t.controller.draw(),n&&Ge(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return qe(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,r,n){const o=Vn.modes[e];return"function"==typeof o?o(this,t,r,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],r=this._metasets;let n=r.filter((t=>t&&t._dataset===e)).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=hr(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const r=this.getDatasetMeta(t);return"boolean"==typeof r.hidden?!r.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,r){const n=r?"show":"hide",o=this.getDatasetMeta(t),i=o.controller._resolveAnimations(void 0,n);Vt(e)?(o.data[e].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),i.update(o,{visible:r}),this.update((e=>e.datasetIndex===t?n:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),an.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),We(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ri[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(t,e,r)=>{t.offsetX=e,t.offsetY=r,this._eventHandler(t)};Pt(this.options.events,(t=>r(t,n)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,r=(r,n)=>{e.addEventListener(this,r,n),t[r]=n},n=(r,n)=>{t[r]&&(e.removeEventListener(this,r,n),delete t[r])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let i;const a=()=>{n("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",i)};i=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",a)},e.isAttached(this.canvas)?a():i()}unbindEvents(){Pt(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Pt(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,r){const n=r?"set":"remove";let o,i,a,s;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){i=t[a];const e=i&&this.getDatasetMeta(i.datasetIndex).controller;e&&e[n+"HoverStyle"](i.element,i.datasetIndex,i.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],r=t.map((({datasetIndex:t,index:e})=>{const r=this.getDatasetMeta(t);if(!r)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:r.data[e],index:e}}));!Ct(r,e)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,e))}notifyPlugins(t,e,r){return this._plugins.notify(this,t,e,r)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,r){const n=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),i=o(e,t),a=r?t:o(t,e);i.length&&this.updateHoverStyle(i,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(t,e){const r={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const o=this._handleEvent(t,e,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(t,e,r){const{_active:n=[],options:o}=this,i=e,a=this._getActiveElements(t,n,r,i),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),c=function(t,e,r,n){return r&&"mouseout"!==t.type?n?e:t:null}(t,this._lastEvent,r,s);r&&(this._lastEvent=null,jt(o.onHover,[t,a,this],this),s&&jt(o.onClick,[t,a,this],this));const l=!Ct(a,n);return(l||e)&&(this._active=a,this._updateHoverStyles(a,n,e)),this._lastEvent=c,l}_getActiveElements(t,e,r,n){if("mouseout"===t.type)return[];if(!r)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}function si(){return Pt(ai.instances,(t=>t._plugins.invalidate()))}function ci(t,e,r,n){const o=sr(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(r-e)/2,a=Math.min(i,n*e/2),s=t=>{const e=(r-Math.min(i,t))*n/2;return fe(t,0,Math.min(i,e))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:fe(o.innerStart,0,a),innerEnd:fe(o.innerEnd,0,a)}}function li(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function ui(t,e,r,n,o,i){const{x:a,y:s,startAngle:c,pixelMargin:l,innerRadius:u}=e,d=Math.max(e.outerRadius+n+r-l,0),f=u>0?u+n+r+l:0;let h=0;const p=o-c;if(n){const t=((u>0?u-n:0)+(d>0?d-n:0))/2;h=(p-(0!==t?p*t/(t+n):p))/2}const g=(p-Math.max(.001,p*d-r/Ut)/d)/2,m=c+g+h,b=o-g-h,{outerStart:y,outerEnd:v,innerStart:w,innerEnd:x}=ci(e,f,d,b-m),_=d-y,k=d-v,E=m+y/_,S=b-v/k,O=f+w,T=f+x,A=m+w/O,j=b-x/T;if(t.beginPath(),i){const e=(E+S)/2;if(t.arc(a,s,d,E,e),t.arc(a,s,d,e,S),v>0){const e=li(k,S,a,s);t.arc(e.x,e.y,v,S,b+Kt)}const r=li(T,b,a,s);if(t.lineTo(r.x,r.y),x>0){const e=li(T,j,a,s);t.arc(e.x,e.y,x,b+Kt,j+Math.PI)}const n=(b-x/f+(m+w/f))/2;if(t.arc(a,s,f,b-x/f,n,!0),t.arc(a,s,f,n,m+w/f,!0),w>0){const e=li(O,A,a,s);t.arc(e.x,e.y,w,A+Math.PI,m-Kt)}const o=li(_,m,a,s);if(t.lineTo(o.x,o.y),y>0){const e=li(_,E,a,s);t.arc(e.x,e.y,y,m-Kt,E)}}else{t.moveTo(a,s);const e=Math.cos(E)*d+a,r=Math.sin(E)*d+s;t.lineTo(e,r);const n=Math.cos(S)*d+a,o=Math.sin(S)*d+s;t.lineTo(n,o)}t.closePath()}function di(t,e,r,n,o){const{fullCircles:i,startAngle:a,circumference:s,options:c}=e,{borderWidth:l,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=c,h="inner"===c.borderAlign;if(!l)return;t.setLineDash(d||[]),t.lineDashOffset=f,h?(t.lineWidth=2*l,t.lineJoin=u||"round"):(t.lineWidth=l,t.lineJoin=u||"bevel");let p=e.endAngle;if(i){ui(t,e,r,n,p,o);for(let e=0;e<i;++e)t.stroke();isNaN(s)||(p=a+(s%Wt||Wt))}h&&function(t,e,r){const{startAngle:n,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:c}=e;let l=o/s;t.beginPath(),t.arc(i,a,s,n-l,r+l),c>o?(l=o/c,t.arc(i,a,c,r+l,n-l,!0)):t.arc(i,a,o,r+Kt,n-Kt),t.closePath(),t.clip()}(t,e,p),i||(ui(t,e,r,n,p,o),t.stroke())}function fi(t,e,r=e){t.lineCap=Tt(r.borderCapStyle,e.borderCapStyle),t.setLineDash(Tt(r.borderDash,e.borderDash)),t.lineDashOffset=Tt(r.borderDashOffset,e.borderDashOffset),t.lineJoin=Tt(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Tt(r.borderWidth,e.borderWidth),t.strokeStyle=Tt(r.borderColor,e.borderColor)}function hi(t,e,r){t.lineTo(r.x,r.y)}function pi(t,e,r={}){const n=t.length,{start:o=0,end:i=n-1}=r,{start:a,end:s}=e,c=Math.max(o,a),l=Math.min(i,s),u=o<a&&i<a||o>s&&i>s;return{count:n,start:c,loop:e.loop,ilen:l<c&&!u?n+l-c:l-c}}function gi(t,e,r,n){const{points:o,options:i}=e,{count:a,start:s,loop:c,ilen:l}=pi(o,r,n),u=function(t){return t.stepped?Ze:t.tension||"monotone"===t.cubicInterpolationMode?Qe:hi}(i);let d,f,h,{move:p=!0,reverse:g}=n||{};for(d=0;d<=l;++d)f=o[(s+(g?l-d:d))%a],f.skip||(p?(t.moveTo(f.x,f.y),p=!1):u(t,h,f,g,i.stepped),h=f);return c&&(f=o[(s+(g?l:0))%a],u(t,h,f,g,i.stepped)),!!c}function mi(t,e,r,n){const o=e.points,{count:i,start:a,ilen:s}=pi(o,r,n),{move:c=!0,reverse:l}=n||{};let u,d,f,h,p,g,m=0,b=0;const y=t=>(a+(l?s-t:t))%i,v=()=>{h!==p&&(t.lineTo(m,p),t.lineTo(m,h),t.lineTo(m,g))};for(c&&(d=o[y(0)],t.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=o[y(u)],d.skip)continue;const e=d.x,r=d.y,n=0|e;n===f?(r<h?h=r:r>p&&(p=r),m=(b*m+e)/++b):(v(),t.lineTo(e,r),f=n,b=0,h=p=r),g=r}v()}function bi(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||r)?mi:gi}const yi="function"==typeof Path2D;function vi(t,e,r,n){yi&&!e.options.segment?function(t,e,r,n){let o=e._path;o||(o=e._path=new Path2D,e.path(o,r,n)&&o.closePath()),fi(t,e.options),t.stroke(o)}(t,e,r,n):function(t,e,r,n){const{segments:o,options:i}=e,a=bi(e);for(const s of o)fi(t,i,s.style),t.beginPath(),a(t,e,s,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}(t,e,r,n)}function wi(t,e,r,n){const o=t.options,{[r]:i}=t.getProps([r],n);return Math.abs(e-i)<o.radius+o.hitRadius}function xi(t,e){const{x:r,y:n,base:o,width:i,height:a}=t.getProps(["x","y","base","width","height"],e);let s,c,l,u,d;return t.horizontal?(d=a/2,s=Math.min(r,o),c=Math.max(r,o),l=n-d,u=n+d):(d=i/2,s=r-d,c=r+d,l=Math.min(n,o),u=Math.max(n,o)),{left:s,top:l,right:c,bottom:u}}function _i(t,e,r,n){return t?0:fe(e,r,n)}function ki(t){const e=xi(t),r=e.right-e.left,n=e.bottom-e.top,o=function(t,e,r){const n=t.options.borderWidth,o=t.borderSkipped,i=cr(n);return{t:_i(o.top,i.top,0,r),r:_i(o.right,i.right,0,e),b:_i(o.bottom,i.bottom,0,r),l:_i(o.left,i.left,0,e)}}(t,r/2,n/2),i=function(t,e,r){const{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,i=lr(o),a=Math.min(e,r),s=t.borderSkipped,c=n||Et(o);return{topLeft:_i(!c||s.top||s.left,i.topLeft,0,a),topRight:_i(!c||s.top||s.right,i.topRight,0,a),bottomLeft:_i(!c||s.bottom||s.left,i.bottomLeft,0,a),bottomRight:_i(!c||s.bottom||s.right,i.bottomRight,0,a)}}(t,r/2,n/2);return{outer:{x:e.left,y:e.top,w:r,h:n,radius:i},inner:{x:e.left+o.l,y:e.top+o.t,w:r-o.l-o.r,h:n-o.t-o.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,i.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(o.b,o.r))}}}}function Ei(t,e,r,n){const o=null===e,i=null===r,a=t&&!(o&&i)&&xi(t,n);return a&&(o||he(e,a.left,a.right))&&(i||he(r,a.top,a.bottom))}function Si(t,e){t.rect(e.x,e.y,e.w,e.h)}function Oi(t,e,r={}){const n=t.x!==r.x?-e:0,o=t.y!==r.y?-e:0,i=(t.x+t.w!==r.x+r.w?e:0)-n,a=(t.y+t.h!==r.y+r.h?e:0)-o;return{x:t.x+n,y:t.y+o,w:t.w+i,h:t.h+a,radius:t.radius}}const Ti=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}};class Ai extends vo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,r){this.maxWidth=t,this.maxHeight=e,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=jt(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,r)=>t.sort(e,r,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const r=t.labels,n=dr(r.font),o=n.size,i=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Ti(r,o);let c,l;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(i,o,a,s)+10):(l=this.maxHeight,c=this._fitCols(i,n,a,s)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(l,t.maxHeight||this.maxHeight)}_fitRows(t,e,r,n){const{ctx:o,maxWidth:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=n+a;let u=t;o.textAlign="left",o.textBaseline="middle";let d=-1,f=-l;return this.legendItems.forEach(((t,h)=>{const p=r+e/2+o.measureText(t.text).width;(0===h||c[c.length-1]+p+2*a>i)&&(u+=l,c[c.length-(h>0?0:1)]=0,f+=l,d++),s[h]={left:0,top:f,row:d,width:p,height:n},c[c.length-1]+=p+a})),u}_fitCols(t,e,r,n){const{ctx:o,maxHeight:i,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=i-t;let u=a,d=0,f=0,h=0,p=0;return this.legendItems.forEach(((t,i)=>{const{itemWidth:g,itemHeight:m}=function(t,e,r,n,o){const i=function(t,e,r,n){let o=t.text;o&&"string"!=typeof o&&(o=o.reduce(((t,e)=>t.length>e.length?t:e)));return e+r.size/2+n.measureText(o).width}(n,t,e,r),a=function(t,e,r){let n=t;"string"!=typeof e.text&&(n=ji(e,r));return n}(o,n,e.lineHeight);return{itemWidth:i,itemHeight:a}}(r,e,o,t,n);i>0&&f+m+2*a>l&&(u+=d+a,c.push({width:d,height:f}),h+=d+a,p++,d=f=0),s[i]={left:h,top:f,col:p,width:g,height:m},d=Math.max(d,g),f+=m+a})),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:r,labels:{padding:n},rtl:o}}=this,i=Kr(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=ke(r,this.left+n,this.right-this.lineWidths[o]);for(const s of e)o!==s.row&&(o=s.row,a=ke(r,this.left+n,this.right-this.lineWidths[o])),s.top+=this.top+t+n,s.left=i.leftForLtr(i.x(a),s.width),a+=s.width+n}else{let o=0,a=ke(r,this.top+t+n,this.bottom-this.columnSizes[o].height);for(const s of e)s.col!==o&&(o=s.col,a=ke(r,this.top+t+n,this.bottom-this.columnSizes[o].height)),s.top=a,s.left+=this.left+n,s.left=i.leftForLtr(i.x(s.left),s.width),a+=s.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Ke(t,this),this._draw(),Ge(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:r,ctx:n}=this,{align:o,labels:i}=t,a=$e.color,s=Kr(t.rtl,this.left,this.width),c=dr(i.font),{padding:l}=i,u=c.size,d=u/2;let f;this.drawTitle(),n.textAlign=s.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:h,boxHeight:p,itemHeight:g}=Ti(i,u),m=this.isHorizontal(),b=this._computeTitleHeight();f=m?{x:ke(o,this.left+l,this.right-r[0]),y:this.top+l+b,line:0}:{x:this.left+l,y:ke(o,this.top+b+l,this.bottom-e[0].height),line:0},Gr(this.ctx,t.textDirection);const y=g+l;this.legendItems.forEach(((v,w)=>{n.strokeStyle=v.fontColor,n.fillStyle=v.fontColor;const x=n.measureText(v.text).width,_=s.textAlign(v.textAlign||(v.textAlign=i.textAlign)),k=h+d+x;let E=f.x,S=f.y;s.setWidth(this.width),m?w>0&&E+k+l>this.right&&(S=f.y+=y,f.line++,E=f.x=ke(o,this.left+l,this.right-r[f.line])):w>0&&S+y>this.bottom&&(E=f.x=E+e[f.line].width+l,f.line++,S=f.y=ke(o,this.top+b+l,this.bottom-e[f.line].height));if(function(t,e,r){if(isNaN(h)||h<=0||isNaN(p)||p<0)return;n.save();const o=Tt(r.lineWidth,1);if(n.fillStyle=Tt(r.fillStyle,a),n.lineCap=Tt(r.lineCap,"butt"),n.lineDashOffset=Tt(r.lineDashOffset,0),n.lineJoin=Tt(r.lineJoin,"miter"),n.lineWidth=o,n.strokeStyle=Tt(r.strokeStyle,a),n.setLineDash(Tt(r.lineDash,[])),i.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:o},c=s.xPlus(t,h/2);Xe(n,a,c,e+d,i.pointStyleWidth&&h)}else{const i=e+Math.max((u-p)/2,0),a=s.leftForLtr(t,h),c=lr(r.borderRadius);n.beginPath(),Object.values(c).some((t=>0!==t))?rr(n,{x:a,y:i,w:h,h:p,radius:c}):n.rect(a,i,h,p),n.fill(),0!==o&&n.stroke()}n.restore()}(s.x(E),S,v),E=((t,e,r,n)=>t===(n?"left":"right")?r:"center"===t?(e+r)/2:e)(_,E+h+d,m?E+k:this.right,t.rtl),function(t,e,r){er(n,r.text,t,e+g/2,c,{strikethrough:r.hidden,textAlign:s.textAlign(r.textAlign)})}(s.x(E),S,v),m)f.x+=k+l;else if("string"!=typeof v.text){const t=c.lineHeight;f.y+=ji(v,t)+l}else f.y+=y})),Zr(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,r=dr(e.font),n=ur(e.padding);if(!e.display)return;const o=Kr(t.rtl,this.left,this.width),i=this.ctx,a=e.position,s=r.size/2,c=n.top+s;let l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=ke(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);l=c+ke(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=ke(a,u,u+d);i.textAlign=o.textAlign(_e(a)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=r.string,er(i,e.text,f,l,r)}_computeTitleHeight(){const t=this.options.title,e=dr(t.font),r=ur(t.padding);return t.display?e.lineHeight+r.height:0}_getLegendItemAt(t,e){let r,n,o;if(he(t,this.left,this.right)&&he(e,this.top,this.bottom))for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(n=o[r],he(t,n.left,n.left+n.width)&&he(e,n.top,n.top+n.height))return this.legendItems[r];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const r=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const n=this._hoveredItem,o=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(n,r);n&&!o&&jt(e.onLeave,[t,n,this],this),this._hoveredItem=r,r&&!o&&jt(e.onHover,[t,r,this],this)}else r&&jt(e.onClick,[t,r,this],this)}}function ji(t,e){return e*(t.text?t.text.length:0)}var Pi={id:"legend",_element:Ai,start(t,e,r){const n=t.legend=new Ai({ctx:t.ctx,options:r,chart:t});to.configure(t,n,r),to.addBox(t,n)},stop(t){to.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;to.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,o=r.chart;o.isDatasetVisible(n)?(o.hide(n),e.hidden=!0):(o.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:o,color:i,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const c=t.controller.getStyle(r?0:void 0),l=ur(c.borderWidth);return{text:e[t.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:o||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Ci extends vo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const r=this.options;if(this.left=0,this.top=0,!r.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const n=kt(r.text)?r.text.length:1;this._padding=ur(r.padding);const o=n*dr(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:r,bottom:n,right:o,options:i}=this,a=i.align;let s,c,l,u=0;return this.isHorizontal()?(c=ke(a,r,o),l=e+t,s=o-r):("left"===i.position?(c=r+t,l=ke(a,n,e),u=-.5*Ut):(c=o-t,l=ke(a,e,n),u=.5*Ut),s=n-e),{titleX:c,titleY:l,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const r=dr(e.font),n=r.lineHeight/2+this._padding.top,{titleX:o,titleY:i,maxWidth:a,rotation:s}=this._drawArgs(n);er(t,e.text,0,0,r,{color:e.color,maxWidth:a,rotation:s,textAlign:_e(e.align),textBaseline:"middle",translation:[o,i]})}}var Di={id:"title",_element:Ci,start(t,e,r){!function(t,e){const r=new Ci({ctx:t.ctx,options:e,chart:t});to.configure(t,r,e),to.addBox(t,r),t.titleBlock=r}(t,r)},stop(t){const e=t.titleBlock;to.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;to.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Mi={average(t){if(!t.length)return!1;let e,r,n=new Set,o=0,i=0;for(e=0,r=t.length;e<r;++e){const r=t[e].element;if(r&&r.hasValue()){const t=r.tooltipPosition();n.add(t.x),o+=t.y,++i}}if(0===i||0===n.size)return!1;const a=[...n].reduce(((t,e)=>t+e))/n.size;return{x:a,y:o/i}},nearest(t,e){if(!t.length)return!1;let r,n,o,i=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(r=0,n=t.length;r<n;++r){const n=t[r].element;if(n&&n.hasValue()){const t=ce(e,n.getCenterPoint());t<s&&(s=t,o=n)}}if(o){const t=o.tooltipPosition();i=t.x,a=t.y}return{x:i,y:a}}};function Ri(t,e){return e&&(kt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ii(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ni(t,e){const{element:r,datasetIndex:n,index:o}=e,i=t.getDatasetMeta(n).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:t,label:a,parsed:i.getParsed(o),raw:t.data.datasets[n].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function Fi(t,e){const r=t.chart.ctx,{body:n,footer:o,title:i}=t,{boxWidth:a,boxHeight:s}=e,c=dr(e.bodyFont),l=dr(e.titleFont),u=dr(e.footerFont),d=i.length,f=o.length,h=n.length,p=ur(e.padding);let g=p.height,m=0,b=n.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*l.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),b){g+=h*(e.displayColors?Math.max(s,c.lineHeight):c.lineHeight)+(b-h)*c.lineHeight+(b-1)*e.bodySpacing}f&&(g+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let y=0;const v=function(t){m=Math.max(m,r.measureText(t).width+y)};return r.save(),r.font=l.string,Pt(t.title,v),r.font=c.string,Pt(t.beforeBody.concat(t.afterBody),v),y=e.displayColors?a+2+e.boxPadding:0,Pt(n,(t=>{Pt(t.before,v),Pt(t.lines,v),Pt(t.after,v)})),y=0,r.font=u.string,Pt(t.footer,v),r.restore(),m+=p.width,{width:m,height:g}}function zi(t,e,r,n){const{x:o,width:i}=r,{width:a,chartArea:{left:s,right:c}}=t;let l="center";return"center"===n?l=o<=(s+c)/2?"left":"right":o<=i/2?l="left":o>=a-i/2&&(l="right"),function(t,e,r,n){const{x:o,width:i}=n,a=r.caretSize+r.caretPadding;return"left"===t&&o+i+a>e.width||"right"===t&&o-i-a<0||void 0}(l,t,e,r)&&(l="center"),l}function Li(t,e,r){const n=r.yAlign||e.yAlign||function(t,e){const{y:r,height:n}=e;return r<n/2?"top":r>t.height-n/2?"bottom":"center"}(t,r);return{xAlign:r.xAlign||e.xAlign||zi(t,e,r,n),yAlign:n}}function Bi(t,e,r,n){const{caretSize:o,caretPadding:i,cornerRadius:a}=t,{xAlign:s,yAlign:c}=r,l=o+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=lr(a);let p=function(t,e){let{x:r,width:n}=t;return"right"===e?r-=n:"center"===e&&(r-=n/2),r}(e,s);const g=function(t,e,r){let{y:n,height:o}=t;return"top"===e?n+=r:n-="bottom"===e?o+r:o/2,n}(e,c,l);return"center"===c?"left"===s?p+=l:"right"===s&&(p-=l):"left"===s?p-=Math.max(u,f)+o:"right"===s&&(p+=Math.max(d,h)+o),{x:fe(p,0,n.width-e.width),y:fe(g,0,n.height-e.height)}}function Vi(t,e,r){const n=ur(r.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function $i(t){return Ri([],Ii(t))}function Hi(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const Ui={beforeTitle:wt,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex<n)return r[e.dataIndex]}return""},afterTitle:wt,beforeBody:wt,beforeLabel:wt,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const r=t.formattedValue;return _t(r)||(e+=r),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:wt,afterBody:wt,beforeFooter:wt,footer:wt,afterFooter:wt};function Wi(t,e,r,n){const o=t[e].call(r,n);return void 0===o?Ui[e].call(r,n):o}class Yi extends vo{static positioners=Mi;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&e.options.animation&&r.animations,o=new un(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,r=this._tooltipItems,hr(t,{tooltip:e,tooltipItems:r,type:"tooltip"})));var t,e,r}getTitle(t,e){const{callbacks:r}=e,n=Wi(r,"beforeTitle",this,t),o=Wi(r,"title",this,t),i=Wi(r,"afterTitle",this,t);let a=[];return a=Ri(a,Ii(n)),a=Ri(a,Ii(o)),a=Ri(a,Ii(i)),a}getBeforeBody(t,e){return $i(Wi(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:r}=e,n=[];return Pt(t,(t=>{const e={before:[],lines:[],after:[]},o=Hi(r,t);Ri(e.before,Ii(Wi(o,"beforeLabel",this,t))),Ri(e.lines,Wi(o,"label",this,t)),Ri(e.after,Ii(Wi(o,"afterLabel",this,t))),n.push(e)})),n}getAfterBody(t,e){return $i(Wi(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:r}=e,n=Wi(r,"beforeFooter",this,t),o=Wi(r,"footer",this,t),i=Wi(r,"afterFooter",this,t);let a=[];return a=Ri(a,Ii(n)),a=Ri(a,Ii(o)),a=Ri(a,Ii(i)),a}_createItems(t){const e=this._active,r=this.chart.data,n=[],o=[],i=[];let a,s,c=[];for(a=0,s=e.length;a<s;++a)c.push(Ni(this.chart,e[a]));return t.filter&&(c=c.filter(((e,n,o)=>t.filter(e,n,o,r)))),t.itemSort&&(c=c.sort(((e,n)=>t.itemSort(e,n,r)))),Pt(c,(e=>{const r=Hi(t.callbacks,e);n.push(Wi(r,"labelColor",this,e)),o.push(Wi(r,"labelPointStyle",this,e)),i.push(Wi(r,"labelTextColor",this,e))})),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=c,c}update(t,e){const r=this.options.setContext(this.getContext()),n=this._active;let o,i=[];if(n.length){const t=Mi[r.position].call(this,n,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const e=this._size=Fi(this,r),a=Object.assign({},t,e),s=Li(this.chart,r,a),c=Bi(r,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,r,n){const o=this.getCaretPosition(t,r,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,r){const{xAlign:n,yAlign:o}=this,{caretSize:i,cornerRadius:a}=r,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=lr(a),{x:d,y:f}=t,{width:h,height:p}=e;let g,m,b,y,v,w;return"center"===o?(v=f+p/2,"left"===n?(g=d,m=g-i,y=v+i,w=v-i):(g=d+h,m=g+i,y=v-i,w=v+i),b=g):(m="left"===n?d+Math.max(s,l)+i:"right"===n?d+h-Math.max(c,u)-i:this.caretX,"top"===o?(y=f,v=y-i,g=m-i,b=m+i):(y=f+p,v=y+i,g=m+i,b=m-i),w=y),{x1:g,x2:m,x3:b,y1:y,y2:v,y3:w}}drawTitle(t,e,r){const n=this.title,o=n.length;let i,a,s;if(o){const c=Kr(r.rtl,this.x,this.width);for(t.x=Vi(this,r.titleAlign,r),e.textAlign=c.textAlign(r.titleAlign),e.textBaseline="middle",i=dr(r.titleFont),a=r.titleSpacing,e.fillStyle=r.titleColor,e.font=i.string,s=0;s<o;++s)e.fillText(n[s],c.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+a,s+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,e,r,n,o){const i=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:s,boxWidth:c}=o,l=dr(o.bodyFont),u=Vi(this,"left",o),d=n.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,h=e.y+f;if(o.usePointStyle){const e={radius:Math.min(c,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},r=n.leftForLtr(d,c)+c/2,l=h+s/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Ye(t,e,r,l),t.strokeStyle=i.borderColor,t.fillStyle=i.backgroundColor,Ye(t,e,r,l)}else{t.lineWidth=Et(i.borderWidth)?Math.max(...Object.values(i.borderWidth)):i.borderWidth||1,t.strokeStyle=i.borderColor,t.setLineDash(i.borderDash||[]),t.lineDashOffset=i.borderDashOffset||0;const e=n.leftForLtr(d,c),r=n.leftForLtr(n.xPlus(d,1),c-2),a=lr(i.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,rr(t,{x:e,y:h,w:c,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),rr(t,{x:r,y:h+1,w:c-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,h,c,s),t.strokeRect(e,h,c,s),t.fillStyle=i.backgroundColor,t.fillRect(r,h+1,c-2,s-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,e,r){const{body:n}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:c,boxPadding:l}=r,u=dr(r.bodyFont);let d=u.lineHeight,f=0;const h=Kr(r.rtl,this.x,this.width),p=function(r){e.fillText(r,h.x(t.x+f),t.y+d/2),t.y+=d+o},g=h.textAlign(i);let m,b,y,v,w,x,_;for(e.textAlign=i,e.textBaseline="middle",e.font=u.string,t.x=Vi(this,g,r),e.fillStyle=r.bodyColor,Pt(this.beforeBody,p),f=a&&"right"!==g?"center"===i?c/2+l:c+2+l:0,v=0,x=n.length;v<x;++v){for(m=n[v],b=this.labelTextColors[v],e.fillStyle=b,Pt(m.before,p),y=m.lines,a&&y.length&&(this._drawColorBox(e,t,v,h,r),d=Math.max(u.lineHeight,s)),w=0,_=y.length;w<_;++w)p(y[w]),d=u.lineHeight;Pt(m.after,p)}f=0,d=u.lineHeight,Pt(this.afterBody,p),t.y-=o}drawFooter(t,e,r){const n=this.footer,o=n.length;let i,a;if(o){const s=Kr(r.rtl,this.x,this.width);for(t.x=Vi(this,r.footerAlign,r),t.y+=r.footerMarginTop,e.textAlign=s.textAlign(r.footerAlign),e.textBaseline="middle",i=dr(r.footerFont),e.fillStyle=r.footerColor,e.font=i.string,a=0;a<o;++a)e.fillText(n[a],s.x(t.x),t.y+i.lineHeight/2),t.y+=i.lineHeight+r.footerSpacing}}drawBackground(t,e,r,n){const{xAlign:o,yAlign:i}=this,{x:a,y:s}=t,{width:c,height:l}=r,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=lr(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===i&&this.drawCaret(t,e,r,n),e.lineTo(a+c-d,s),e.quadraticCurveTo(a+c,s,a+c,s+d),"center"===i&&"right"===o&&this.drawCaret(t,e,r,n),e.lineTo(a+c,s+l-h),e.quadraticCurveTo(a+c,s+l,a+c-h,s+l),"bottom"===i&&this.drawCaret(t,e,r,n),e.lineTo(a+f,s+l),e.quadraticCurveTo(a,s+l,a,s+l-f),"center"===i&&"left"===o&&this.drawCaret(t,e,r,n),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const r=Mi[t.position].call(this,this._active,this._eventPosition);if(!r)return;const i=this._size=Fi(this,t),a=Object.assign({},r,this._size),s=Li(e,t,a),c=Bi(t,a,s,e);n._to===c.x&&o._to===c.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const i=ur(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,n,e),Gr(t,e.textDirection),o.y+=i.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Zr(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const r=this._active,n=t.map((({datasetIndex:t,index:e})=>{const r=this.chart.getDatasetMeta(t);if(!r)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:r.data[e],index:e}})),o=!Ct(r,n),i=this._positionChanged(n,e);(o||i)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,r=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],i=this._getActiveElements(t,o,e,r),a=this._positionChanged(i,t),s=e||!Ct(i,o)||a;return s&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,r,n){const o=this.options;if("mouseout"===t.type)return[];if(!n)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const i=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:r,caretY:n,options:o}=this,i=Mi[o.position].call(this,t,e);return!1!==i&&(r!==i.x||n!==i.y)}}var Xi={id:"tooltip",_element:Yi,positioners:Mi,afterInit(t,e,r){r&&(t.tooltip=new Yi({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ui},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function qi(t,e,r,n){const o=t.indexOf(e);if(-1===o)return((t,e,r,n)=>("string"==typeof e?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r))(t,e,r,n);return o!==t.lastIndexOf(e)?r:o}function Ki(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function Gi(t,e){const r=[],{bounds:n,step:o,min:i,max:a,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=t,f=o||1,h=l-1,{min:p,max:g}=e,m=!_t(i),b=!_t(a),y=!_t(c),v=(g-p)/(u+1);let w,x,_,k,E=ee((g-p)/h/f)*f;if(E<1e-14&&!m&&!b)return[{value:p},{value:g}];k=Math.ceil(g/E)-Math.floor(p/E),k>h&&(E=ee(k*E/h/f)*f),_t(s)||(w=Math.pow(10,s),E=Math.ceil(E*w)/w),"ticks"===n?(x=Math.floor(p/E)*E,_=Math.ceil(g/E)*E):(x=p,_=g),m&&b&&o&&function(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}((a-i)/o,E/1e3)?(k=Math.round(Math.min((a-i)/E,l)),E=(a-i)/k,x=i,_=a):y?(x=m?i:x,_=b?a:_,k=c-1,E=(_-x)/k):(k=(_-x)/E,k=te(k,Math.round(k),E/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(ae(E),ae(x));w=Math.pow(10,_t(s)?S:s),x=Math.round(x*w)/w,_=Math.round(_*w)/w;let O=0;for(m&&(d&&x!==i?(r.push({value:i}),x<i&&O++,te(Math.round((x+O*E)*w)/w,i,Zi(i,v,t))&&O++):x<i&&O++);O<k;++O){const t=Math.round((x+O*E)*w)/w;if(b&&t>a)break;r.push({value:t})}return b&&d&&_!==a?r.length&&te(r[r.length-1].value,a,Zi(a,v,t))?r[r.length-1].value=a:r.push({value:a}):b&&_!==a||r.push({value:_}),r}function Zi(t,e,{horizontal:r,minRotation:n}){const o=oe(n),i=(r?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class Qi extends jo{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return _t(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:r}=this.getUserBounds();let{min:n,max:o}=this;const i=t=>n=e?n:t,a=t=>o=r?o:t;if(t){const t=Jt(n),e=Jt(o);t<0&&e<0?a(0):t>0&&e>0&&i(0)}if(n===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||i(n-e)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:r,stepSize:n}=t;return n?(e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n=Gi({maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&ne(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const t=this.ticks;let e=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const n=(r-e)/Math.max(t.length-1,1)/2;e-=n,r+=n}this._startValue=e,this._endValue=r,this._valueRange=r-e}getLabelForValue(t){return Re(t,this.chart.options.locale,this.options.ticks.format)}}class Ji extends Qi{static id="linear";static defaults={ticks:{callback:Ne.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=St(t)?t:0,this.max=St(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,r=oe(this.options.ticks.minRotation),n=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Ne.formatters.logarithmic;Ne.formatters.numeric;const ta="label";function ea(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function ra(t,e){t.labels=e}function na(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ta;const n=[];t.datasets=e.map((e=>{const o=t.datasets.find((t=>t[r]===e[r]));return o&&e.data&&!n.includes(o)?(n.push(o),Object.assign(o,e),o):{...e}}))}function oa(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ta;const r={labels:[],datasets:[]};return ra(r,t.labels),na(r,t.datasets,e),r}function ia(t,r){const{height:i=150,width:a=300,redraw:s=!1,datasetIdKey:c,type:l,data:u,options:d,plugins:f=[],fallbackContent:h,updateMode:p,...g}=t,m=n(null),b=n(null),y=()=>{m.current&&(b.current=new ai(m.current,{type:l,data:oa(u,c),options:d&&{...d},plugins:f}),ea(r,b.current))},v=()=>{ea(r,null),b.current&&(b.current.destroy(),b.current=null)};return o((()=>{!s&&b.current&&d&&function(t,e){const r=t.options;r&&e&&Object.assign(r,e)}(b.current,d)}),[s,d]),o((()=>{!s&&b.current&&ra(b.current.config.data,u.labels)}),[s,u.labels]),o((()=>{!s&&b.current&&u.datasets&&na(b.current.config.data,u.datasets,c)}),[s,u.datasets]),o((()=>{b.current&&(s?(v(),setTimeout(y)):b.current.update(p))}),[s,d,u.labels,u.datasets,p]),o((()=>{b.current&&(v(),setTimeout(y))}),[l]),o((()=>(y(),()=>v())),[]),e.createElement("canvas",{ref:m,role:"img",height:i,width:a,...g},h)}const aa=r(ia);function sa(t,n){return ai.register(n),r(((r,n)=>e.createElement(aa,{...r,ref:n,type:t})))}const ca=sa("line",Mn),la=sa("bar",Cn),ua=sa("pie",Rn);ai.register(class extends jo{static id="category";static defaults={ticks:{callback:Ki}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:r,label:n}of e)t[r]===n&&t.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(_t(t))return null;const r=this.getLabels();return((t,e)=>null===t?null:fe(Math.round(t),0,e))(e=isFinite(e)&&r[e]===t?e:qi(r,t,Tt(e,t),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(r=0),e||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const t=this.min,e=this.max,r=this.options.offset,n=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let r=t;r<=e;r++)n.push({value:r});return n}getLabelForValue(t){return Ki.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},Ji,class extends vo{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:r,backgroundColor:n}}=this,{inner:o,outer:i}=ki(this),a=(s=i.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?rr:Si;var s;t.save(),i.w===o.w&&i.h===o.h||(t.beginPath(),a(t,Oi(i,e,o)),t.clip(),a(t,Oi(o,-e,i)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,Oi(o,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,r){return Ei(this,t,e,r)}inXRange(t,e){return Ei(this,t,null,e)}inYRange(t,e){return Ei(this,null,t,e)}getCenterPoint(t){const{x:e,y:r,base:n,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+n)/2:e,y:o?r:(r+n)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},Di,Xi,Pi);var da=function(t){var r,n=t.data,o=t.options,i=t.styles;return e.createElement("div",{className:E((r={},r["".concat(i)]=i,r))},e.createElement(la,{data:n,options:o}))};ai.register(class extends vo{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;Mr(this._points,r,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const r=t.points,n=t.options.spanGaps,o=r.length;if(!o)return[];const i=!!t._loop,{start:a,end:s}=function(t,e,r,n){let o=0,i=e-1;if(r&&!n)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,r&&(i+=o);i>o&&t[i%e].skip;)i--;return i%=e,{start:o,end:i}}(r,o,i,n);return en(t,!0===n?[{start:a,end:s,loop:i}]:function(t,e,r,n){const o=t.length,i=[];let a,s=e,c=t[e];for(a=e+1;a<=r;++a){const r=t[a%o];r.skip||r.stop?c.skip||(n=!1,i.push({start:e%o,end:(a-1)%o,loop:n}),e=s=r.stop?a:null):(s=a,c.skip&&(e=a)),c=r}return null!==s&&i.push({start:e%o,end:s%o,loop:n}),i}(r,a,s<a?s+o:s,!!t._fullLoop&&0===a&&s===o-1),r,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,r=t.length;return r&&e[t[r-1].end]}interpolate(t,e){const r=this.options,n=t[e],o=this.points,i=function(t,e){const r=[],n=t.segments;for(let o=0;o<n.length;o++){const i=tn(n[o],t.points,e);i.length&&r.push(...i)}return r}(this,{property:e,start:n,end:n});if(!i.length)return;const a=[],s=function(t){return t.stepped?Xr:t.tension||"monotone"===t.cubicInterpolationMode?qr:Yr}(r);let c,l;for(c=0,l=i.length;c<l;++c){const{start:l,end:u}=i[c],d=o[l],f=o[u];if(d===f){a.push(d);continue}const h=s(d,f,Math.abs((n-d[e])/(f[e]-d[e])),r.stepped);h[e]=t[e],a.push(h)}return 1===a.length?a[0]:a}pathSegment(t,e,r){return bi(this)(t,this,e,r)}path(t,e,r){const n=this.segments,o=bi(this);let i=this._loop;e=e||0,r=r||this.points.length-e;for(const a of n)i&=o(t,this,a,{start:e,end:e+r-1});return!!i}draw(t,e,r,n){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),vi(t,this,r,n),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}},class extends vo{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.options,{x:o,y:i}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(e-i,2)<Math.pow(n.hitRadius+n.radius,2)}inXRange(t,e){return wi(this,t,"x",e)}inYRange(t,e){return wi(this,t,"y",e)}getCenterPoint(t){const{x:e,y:r}=this.getProps(["x","y"],t);return{x:e,y:r}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const r=this.options;this.skip||r.radius<.1||!qe(this,e,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,Ye(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}},Xi,Pi,Di);var fa=function(t){var r=t.data,n=t.options;return e.createElement("div",{style:{width:"80%",margin:"auto"}},e.createElement(ca,{data:r,options:n}))},ha=function(){return ha=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ha.apply(this,arguments)};function pa(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function ga(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{c(n.next(t))}catch(t){i(t)}}function s(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}c((n=n.apply(t,e||[])).next())}))}function ma(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function ba(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError,ai.register(class extends vo{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,r){const n=this.getProps(["x","y"],r),{angle:o,distance:i}=se(n,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:c,outerRadius:l,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),d=(this.options.spacing+this.options.borderWidth)/2,f=Tt(u,s-a),h=de(o,a,s)&&a!==s,p=f>=Wt||h,g=he(i,c+d,l+d);return p&&g}getCenterPoint(t){const{x:e,y:r,startAngle:n,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:c}=this.options,l=(n+o)/2,u=(i+a+c+s)/2;return{x:e+Math.cos(l)*u,y:r+Math.sin(l)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:r}=this,n=(e.offset||0)/4,o=(e.spacing||0)/2,i=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=r>Wt?Math.floor(r/Wt):0,0===r||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*n,Math.sin(a)*n);const s=n*(1-Math.sin(Math.min(Ut,r||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,r,n,o){const{fullCircles:i,startAngle:a,circumference:s}=e;let c=e.endAngle;if(i){ui(t,e,r,n,c,o);for(let e=0;e<i;++e)t.fill();isNaN(s)||(c=a+(s%Wt||Wt))}ui(t,e,r,n,c,o),t.fill()}(t,this,s,o,i),di(t,this,s,o,i),t.restore()}},Xi,Pi,Di);var ya=function(t){var r,n,o=t.data,i=t.options,a=t.styles,s=o.datasets[0].backgroundColor&&o.datasets[0].borderColor?o.datasets[0].backgroundColor:(null===(n=o.datasets[0].data)||void 0===n?void 0:n.map((function(){return function(){for(var t="#",e=0;e<6;e++)t+="0123456789ABCDEF"[Math.floor(16*Math.random())];return t}()})))||[],c=ha(ha({},o),{datasets:o.datasets.map((function(t){return ha(ha({},t),{backgroundColor:s,borderColor:s})}))});return e.createElement("div",{className:E((r={},r["".concat(a)]=a,r))},e.createElement(ua,{data:c,options:i}))},va={xs:"min-w-3 min-h-3 text-[8px] px-1",sm:"min-w-4 min-h-4 text-[10px] px-1",md:"min-w-6 min-h-6 text-sm px-2",lg:"min-w-8 min-h-8 text-base px-3",xl:"min-w-10 min-h-10 text-lg px-4"},wa={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-lg",softRoundedSquare:"rounded-xl",pill:"rounded-full w-auto px-4"},xa=function(t){var r,n=t.label,o=t.variant,i=void 0===o?"success":o,a=t.shape,s=void 0===a?"circle":a,c=t.size,l=void 0===c?"md":c,u=t.styles;return e.createElement("div",{className:"w-fit h-fit"},e.createElement("div",{className:E((r={},r["inline-flex items-center justify-center text-center text-xs font-semibold rounded-full border border-gray-600 py-1 px-1"]=!0,r["".concat(S[i])]=i,r["".concat(wa[s])]=s,r["".concat(va[l])]=l,r["".concat(u)]=u,r))},n))},_a=function(t){var r,n=t.alt,o=t.src,i=void 0===o?"https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png":o,a=t.height,s=void 0===a?100:a,c=t.width,l=void 0===c?200:c,u=t.styles;return e.createElement("img",{src:i,alt:n,height:s,width:l,className:E((r={"object-contain w-full":!0},r["".concat(u)]=u,r))})},ka="function"==typeof Symbol&&Symbol.for,Ea=ka?Symbol.for("react.element"):60103,Sa=ka?Symbol.for("react.portal"):60106,Oa=ka?Symbol.for("react.fragment"):60107,Ta=ka?Symbol.for("react.strict_mode"):60108,Aa=ka?Symbol.for("react.profiler"):60114,ja=ka?Symbol.for("react.provider"):60109,Pa=ka?Symbol.for("react.context"):60110,Ca=ka?Symbol.for("react.async_mode"):60111,Da=ka?Symbol.for("react.concurrent_mode"):60111,Ma=ka?Symbol.for("react.forward_ref"):60112,Ra=ka?Symbol.for("react.suspense"):60113,Ia=ka?Symbol.for("react.suspense_list"):60120,Na=ka?Symbol.for("react.memo"):60115,Fa=ka?Symbol.for("react.lazy"):60116,za=ka?Symbol.for("react.block"):60121,La=ka?Symbol.for("react.fundamental"):60117,Ba=ka?Symbol.for("react.responder"):60118,Va=ka?Symbol.for("react.scope"):60119;function $a(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case Ea:switch(t=t.type){case Ca:case Da:case Oa:case Aa:case Ta:case Ra:return t;default:switch(t=t&&t.$$typeof){case Pa:case Ma:case Fa:case Na:case ja:return t;default:return e}}case Sa:return e}}}function Ha(t){return $a(t)===Da}var Ua={AsyncMode:Ca,ConcurrentMode:Da,ContextConsumer:Pa,ContextProvider:ja,Element:Ea,ForwardRef:Ma,Fragment:Oa,Lazy:Fa,Memo:Na,Portal:Sa,Profiler:Aa,StrictMode:Ta,Suspense:Ra,isAsyncMode:function(t){return Ha(t)||$a(t)===Ca},isConcurrentMode:Ha,isContextConsumer:function(t){return $a(t)===Pa},isContextProvider:function(t){return $a(t)===ja},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===Ea},isForwardRef:function(t){return $a(t)===Ma},isFragment:function(t){return $a(t)===Oa},isLazy:function(t){return $a(t)===Fa},isMemo:function(t){return $a(t)===Na},isPortal:function(t){return $a(t)===Sa},isProfiler:function(t){return $a(t)===Aa},isStrictMode:function(t){return $a(t)===Ta},isSuspense:function(t){return $a(t)===Ra},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===Oa||t===Da||t===Aa||t===Ta||t===Ra||t===Ia||"object"==typeof t&&null!==t&&(t.$$typeof===Fa||t.$$typeof===Na||t.$$typeof===ja||t.$$typeof===Pa||t.$$typeof===Ma||t.$$typeof===La||t.$$typeof===Ba||t.$$typeof===Va||t.$$typeof===za)},typeOf:$a},Wa=k((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,g=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:var h=t.type;switch(h){case l:case u:case o:case a:case i:case f:return h;default:var m=h&&h.$$typeof;switch(m){case c:case d:case g:case p:case s:return m;default:return e}}case n:return e}}}var x=l,_=u,k=c,E=s,S=r,O=d,T=o,A=g,j=p,P=n,C=a,D=i,M=f,R=!1;function I(t){return w(t)===u}e.AsyncMode=x,e.ConcurrentMode=_,e.ContextConsumer=k,e.ContextProvider=E,e.Element=S,e.ForwardRef=O,e.Fragment=T,e.Lazy=A,e.Memo=j,e.Portal=P,e.Profiler=C,e.StrictMode=D,e.Suspense=M,e.isAsyncMode=function(t){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(t)||w(t)===l},e.isConcurrentMode=I,e.isContextConsumer=function(t){return w(t)===c},e.isContextProvider=function(t){return w(t)===s},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===d},e.isFragment=function(t){return w(t)===o},e.isLazy=function(t){return w(t)===g},e.isMemo=function(t){return w(t)===p},e.isPortal=function(t){return w(t)===n},e.isProfiler=function(t){return w(t)===a},e.isStrictMode=function(t){return w(t)===i},e.isSuspense=function(t){return w(t)===f},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===u||t===a||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===p||t.$$typeof===s||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},e.typeOf=w}()})),Ya=k((function(t){"production"===process.env.NODE_ENV?t.exports=Ua:t.exports=Wa})),Xa=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,Ka=Object.prototype.propertyIsEnumerable;var Ga=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={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,n,o=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),i=1;i<arguments.length;i++){for(var a in r=Object(arguments[i]))qa.call(r,a)&&(o[a]=r[a]);if(Xa){n=Xa(r);for(var s=0;s<n.length;s++)Ka.call(r,n[s])&&(o[n[s]]=r[n[s]])}}return o},Za=Function.call.bind(Object.prototype.hasOwnProperty),Qa="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ja=Za,ts=function(){};if("production"!==process.env.NODE_ENV){var es=Qa,rs={},ns=Ja;ts=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function os(t,e,r,n,o){if("production"!==process.env.NODE_ENV)for(var i in t)if(ns(t,i)){var a;try{if("function"!=typeof t[i]){var s=Error((n||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=t[i](e,i,n,r,null,es)}catch(t){a=t}if(!a||a instanceof Error||ts((n||"React class")+": type specification of "+r+" `"+i+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in rs)){rs[a.message]=!0;var c=o?o():"";ts("Failed "+r+" type: "+a.message+(null!=c?c:""))}}}os.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(rs={})};var is=os,as=function(){};function ss(){return null}"production"!==process.env.NODE_ENV&&(as=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});function cs(){}function ls(){}ls.resetWarningCache=cs;var us=function(t,e){var r="function"==typeof Symbol&&Symbol.iterator;var n="<<anonymous>>",o={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:s(ss),arrayOf:function(t){return s((function(e,r,n,o,i){if("function"!=typeof t)return new a("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new a("Invalid "+o+" `"+i+"` of type `"+d(s)+"` supplied to `"+n+"`, expected an array.");for(var c=0;c<s.length;c++){var l=t(s,c,n,o,i+"["+c+"]",Qa);if(l instanceof Error)return l}return null}))},element:s((function(e,r,n,o,i){var s=e[r];return t(s)?null:new a("Invalid "+o+" `"+i+"` of type `"+d(s)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:s((function(t,e,r,n,o){var i=t[e];return Ya.isValidElementType(i)?null:new a("Invalid "+n+" `"+o+"` of type `"+d(i)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return s((function(e,r,o,i,s){if(!(e[r]instanceof t)){var c=t.name||n;return new a("Invalid "+i+" `"+s+"` of type `"+(((l=e[r]).constructor&&l.constructor.name?l.constructor.name:n)+"` supplied to `")+o+"`, expected instance of `"+c+"`.")}var l;return null}))},node:s((function(t,e,r,n,o){return u(t[e])?null:new a("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(t){return s((function(e,r,n,o,i){if("function"!=typeof t)return new a("Property `"+i+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=e[r],c=d(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected an object.");for(var l in s)if(Ja(s,l)){var u=t(s,l,n,o,i+"."+l,Qa);if(u instanceof Error)return u}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&as(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."),ss;return s((function(e,r,n,o,s){for(var c=e[r],l=0;l<t.length;l++)if(i(c,t[l]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===f(e)?String(e):e}));return new a("Invalid "+o+" `"+s+"` of value `"+String(c)+"` supplied to `"+n+"`, expected one of "+u+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&as("Invalid argument supplied to oneOfType, expected an instance of array."),ss;for(var e=0;e<t.length;e++){var r=t[e];if("function"!=typeof r)return as("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+h(r)+" at index "+e+"."),ss}return s((function(e,r,n,o,i){for(var s=[],c=0;c<t.length;c++){var l=(0,t[c])(e,r,n,o,i,Qa);if(null==l)return null;l.data&&Ja(l.data,"expectedType")&&s.push(l.data.expectedType)}return new a("Invalid "+o+" `"+i+"` supplied to `"+n+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(t){return s((function(e,r,n,o,i){var s=e[r],c=d(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");for(var u in t){var h=t[u];if("function"!=typeof h)return l(n,o,i,u,f(h));var p=h(s,u,n,o,i+"."+u,Qa);if(p)return p}return null}))},exact:function(t){return s((function(e,r,n,o,i){var s=e[r],c=d(s);if("object"!==c)return new a("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");var u=Ga({},e[r],t);for(var h in u){var p=t[h];if(Ja(t,h)&&"function"!=typeof p)return l(n,o,i,h,f(p));if(!p)return new a("Invalid "+o+" `"+i+"` key `"+h+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(e[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var g=p(s,h,n,o,i+"."+h,Qa);if(g)return g}return null}))}};function i(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function a(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function s(t){if("production"!==process.env.NODE_ENV)var r={},o=0;function i(i,s,c,l,u,d,f){if(l=l||n,d=d||c,f!==Qa){if(e){var h=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 h.name="Invariant Violation",h}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var p=l+":"+c;!r[p]&&o<3&&(as("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. 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."),r[p]=!0,o++)}}return null==s[c]?i?null===s[c]?new a("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `null`."):new a("The "+u+" `"+d+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(s,c,l,u,d)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function c(t){return s((function(e,r,n,o,i,s){var c=e[r];return d(c)!==t?new a("Invalid "+o+" `"+i+"` of type `"+f(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function l(t,e,r,n,o){return new a((t||"React class")+": "+e+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function u(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(u);if(null===e||t(e))return!0;var n=function(t){var e=t&&(r&&t[r]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!n)return!1;var o,i=n.call(e);if(n!==e.entries){for(;!(o=i.next()).done;)if(!u(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!u(a[1]))return!1}return!0;default:return!1}}function d(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function f(t){if(null==t)return""+t;var e=d(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function h(t){var e=f(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return a.prototype=Error.prototype,o.checkPropTypes=is,o.resetWarningCache=is.resetWarningCache,o.PropTypes=o,o},ds=function(){function t(t,e,r,n,o,i){if(i!==Qa){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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:ls,resetWarningCache:cs};return r.PropTypes=r,r},fs=k((function(t){if("production"!==process.env.NODE_ENV){var e=Ya;t.exports=us(e.isElement,!0)}else t.exports=ds()})),hs="object"==typeof _&&_&&_.Object===Object&&_,ps="object"==typeof self&&self&&self.Object===Object&&self,gs=hs||ps||Function("return this")(),ms=gs.Symbol,bs=Object.prototype,ys=bs.hasOwnProperty,vs=bs.toString,ws=ms?ms.toStringTag:void 0;var xs=function(t){var e=ys.call(t,ws),r=t[ws];try{t[ws]=void 0;var n=!0}catch(t){}var o=vs.call(t);return n&&(e?t[ws]=r:delete t[ws]),o},_s=Object.prototype.toString;var ks=function(t){return _s.call(t)},Es=ms?ms.toStringTag:void 0;var Ss=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Es&&Es in Object(t)?xs(t):ks(t)};var Os=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Ts=function(t){if(!Os(t))return!1;var e=Ss(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},As=gs["__core-js_shared__"],js=function(){var t=/[^.]+$/.exec(As&&As.keys&&As.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var Ps=function(t){return!!js&&js in t},Cs=Function.prototype.toString;var Ds=function(t){if(null!=t){try{return Cs.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Ms=/^\[object .+?Constructor\]$/,Rs=Function.prototype,Is=Object.prototype,Ns=Rs.toString,Fs=Is.hasOwnProperty,zs=RegExp("^"+Ns.call(Fs).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ls=function(t){return!(!Os(t)||Ps(t))&&(Ts(t)?zs:Ms).test(Ds(t))};var Bs=function(t,e){return null==t?void 0:t[e]};var Vs=function(t,e){var r=Bs(t,e);return Ls(r)?r:void 0},$s=function(){try{var t=Vs(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Hs=$s;var Us=function(t,e,r){"__proto__"==e&&Hs?Hs(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r};var Ws=function(t,e){return t===e||t!=t&&e!=e},Ys=Object.prototype.hasOwnProperty;var Xs=function(t,e,r){var n=t[e];Ys.call(t,e)&&Ws(n,r)&&(void 0!==r||e in t)||Us(t,e,r)};var qs=function(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=n?n(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),o?Us(r,s,c):Xs(r,s,c)}return r};var Ks=function(t){return t};var Gs=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},Zs=Math.max;var Qs=function(t,e,r){return e=Zs(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=Zs(n.length-e,0),a=Array(i);++o<i;)a[o]=n[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=n[o];return s[e]=r(a),Gs(t,this,s)}};var Js=function(t){return function(){return t}},tc=Hs?function(t,e){return Hs(t,"toString",{configurable:!0,enumerable:!1,value:Js(e),writable:!0})}:Ks,ec=tc,rc=Date.now;var nc=function(t){var e=0,r=0;return function(){var n=rc(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},oc=nc(ec);var ic=function(t,e){return oc(Qs(t,e,Ks),t+"")};var ac=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var sc=function(t){return null!=t&&ac(t.length)&&!Ts(t)},cc=/^(?:0|[1-9]\d*)$/;var lc=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&cc.test(t))&&t>-1&&t%1==0&&t<e};var uc=function(t,e,r){if(!Os(r))return!1;var n=typeof e;return!!("number"==n?sc(r)&&lc(e,r.length):"string"==n&&e in r)&&Ws(r[e],t)};var dc=function(t){return ic((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&uc(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var s=r[n];s&&t(e,s,n,i)}return e}))},fc=Object.prototype;var hc=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||fc)};var pc=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var gc=function(t){return null!=t&&"object"==typeof t};var mc=function(t){return gc(t)&&"[object Arguments]"==Ss(t)},bc=Object.prototype,yc=bc.hasOwnProperty,vc=bc.propertyIsEnumerable,wc=mc(function(){return arguments}())?mc:function(t){return gc(t)&&yc.call(t,"callee")&&!vc.call(t,"callee")},xc=Array.isArray;var _c=function(){return!1},kc=k((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?gs.Buffer:void 0,i=(o?o.isBuffer:void 0)||_c;t.exports=i})),Ec={};Ec["[object Float32Array]"]=Ec["[object Float64Array]"]=Ec["[object Int8Array]"]=Ec["[object Int16Array]"]=Ec["[object Int32Array]"]=Ec["[object Uint8Array]"]=Ec["[object Uint8ClampedArray]"]=Ec["[object Uint16Array]"]=Ec["[object Uint32Array]"]=!0,Ec["[object Arguments]"]=Ec["[object Array]"]=Ec["[object ArrayBuffer]"]=Ec["[object Boolean]"]=Ec["[object DataView]"]=Ec["[object Date]"]=Ec["[object Error]"]=Ec["[object Function]"]=Ec["[object Map]"]=Ec["[object Number]"]=Ec["[object Object]"]=Ec["[object RegExp]"]=Ec["[object Set]"]=Ec["[object String]"]=Ec["[object WeakMap]"]=!1;var Sc=function(t){return gc(t)&&ac(t.length)&&!!Ec[Ss(t)]};var Oc=function(t){return function(e){return t(e)}},Tc=k((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r&&hs.process,i=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),Ac=Tc&&Tc.isTypedArray,jc=Ac?Oc(Ac):Sc,Pc=Object.prototype.hasOwnProperty;var Cc=function(t,e){var r=xc(t),n=!r&&wc(t),o=!r&&!n&&kc(t),i=!r&&!n&&!o&&jc(t),a=r||n||o||i,s=a?pc(t.length,String):[],c=s.length;for(var l in t)!e&&!Pc.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||lc(l,c))||s.push(l);return s};var Dc=function(t,e){return function(r){return t(e(r))}},Mc=Dc(Object.keys,Object),Rc=Object.prototype.hasOwnProperty;var Ic=function(t){if(!hc(t))return Mc(t);var e=[];for(var r in Object(t))Rc.call(t,r)&&"constructor"!=r&&e.push(r);return e};var Nc=function(t){return sc(t)?Cc(t):Ic(t)},Fc=Object.prototype.hasOwnProperty,zc=dc((function(t,e){if(hc(e)||sc(e))qs(e,Nc(e),t);else for(var r in e)Fc.call(e,r)&&Xs(t,r,e[r])}));var Lc=function(){this.__data__=[],this.size=0};var Bc=function(t,e){for(var r=t.length;r--;)if(Ws(t[r][0],e))return r;return-1},Vc=Array.prototype.splice;var $c=function(t){var e=this.__data__,r=Bc(e,t);return!(r<0)&&(r==e.length-1?e.pop():Vc.call(e,r,1),--this.size,!0)};var Hc=function(t){var e=this.__data__,r=Bc(e,t);return r<0?void 0:e[r][1]};var Uc=function(t){return Bc(this.__data__,t)>-1};var Wc=function(t,e){var r=this.__data__,n=Bc(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Yc(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Yc.prototype.clear=Lc,Yc.prototype.delete=$c,Yc.prototype.get=Hc,Yc.prototype.has=Uc,Yc.prototype.set=Wc;var Xc=Yc;var qc=function(){this.__data__=new Xc,this.size=0};var Kc=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r};var Gc=function(t){return this.__data__.get(t)};var Zc=function(t){return this.__data__.has(t)},Qc=Vs(gs,"Map"),Jc=Vs(Object,"create");var tl=function(){this.__data__=Jc?Jc(null):{},this.size=0};var el=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},rl=Object.prototype.hasOwnProperty;var nl=function(t){var e=this.__data__;if(Jc){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return rl.call(e,t)?e[t]:void 0},ol=Object.prototype.hasOwnProperty;var il=function(t){var e=this.__data__;return Jc?void 0!==e[t]:ol.call(e,t)};var al=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Jc&&void 0===e?"__lodash_hash_undefined__":e,this};function sl(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}sl.prototype.clear=tl,sl.prototype.delete=el,sl.prototype.get=nl,sl.prototype.has=il,sl.prototype.set=al;var cl=sl;var ll=function(){this.size=0,this.__data__={hash:new cl,map:new(Qc||Xc),string:new cl}};var ul=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var dl=function(t,e){var r=t.__data__;return ul(e)?r["string"==typeof e?"string":"hash"]:r.map};var fl=function(t){var e=dl(this,t).delete(t);return this.size-=e?1:0,e};var hl=function(t){return dl(this,t).get(t)};var pl=function(t){return dl(this,t).has(t)};var gl=function(t,e){var r=dl(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ml(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ml.prototype.clear=ll,ml.prototype.delete=fl,ml.prototype.get=hl,ml.prototype.has=pl,ml.prototype.set=gl;var bl=ml;var yl=function(t,e){var r=this.__data__;if(r instanceof Xc){var n=r.__data__;if(!Qc||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new bl(n)}return r.set(t,e),this.size=r.size,this};function vl(t){var e=this.__data__=new Xc(t);this.size=e.size}vl.prototype.clear=qc,vl.prototype.delete=Kc,vl.prototype.get=Gc,vl.prototype.has=Zc,vl.prototype.set=yl;var wl=vl;var xl=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t};var _l=function(t,e){return t&&qs(e,Nc(e),t)};var kl=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e},El=Object.prototype.hasOwnProperty;var Sl=function(t){if(!Os(t))return kl(t);var e=hc(t),r=[];for(var n in t)("constructor"!=n||!e&&El.call(t,n))&&r.push(n);return r};var Ol=function(t){return sc(t)?Cc(t,!0):Sl(t)};var Tl=function(t,e){return t&&qs(e,Ol(e),t)},Al=k((function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,o=n&&n.exports===r?gs.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=i?i(r):new t.constructor(r);return t.copy(n),n}}));var jl=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e};var Pl=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i};var Cl=function(){return[]},Dl=Object.prototype.propertyIsEnumerable,Ml=Object.getOwnPropertySymbols,Rl=Ml?function(t){return null==t?[]:(t=Object(t),Pl(Ml(t),(function(e){return Dl.call(t,e)})))}:Cl;var Il=function(t,e){return qs(t,Rl(t),e)};var Nl=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t},Fl=Dc(Object.getPrototypeOf,Object),zl=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Nl(e,Rl(t)),t=Fl(t);return e}:Cl,Ll=zl;var Bl=function(t,e){return qs(t,Ll(t),e)};var Vl=function(t,e,r){var n=e(t);return xc(t)?n:Nl(n,r(t))};var $l=function(t){return Vl(t,Nc,Rl)};var Hl=function(t){return Vl(t,Ol,Ll)},Ul=Vs(gs,"DataView"),Wl=Vs(gs,"Promise"),Yl=Vs(gs,"Set"),Xl=Vs(gs,"WeakMap"),ql="[object Map]",Kl="[object Promise]",Gl="[object Set]",Zl="[object WeakMap]",Ql="[object DataView]",Jl=Ds(Ul),tu=Ds(Qc),eu=Ds(Wl),ru=Ds(Yl),nu=Ds(Xl),ou=Ss;(Ul&&ou(new Ul(new ArrayBuffer(1)))!=Ql||Qc&&ou(new Qc)!=ql||Wl&&ou(Wl.resolve())!=Kl||Yl&&ou(new Yl)!=Gl||Xl&&ou(new Xl)!=Zl)&&(ou=function(t){var e=Ss(t),r="[object Object]"==e?t.constructor:void 0,n=r?Ds(r):"";if(n)switch(n){case Jl:return Ql;case tu:return ql;case eu:return Kl;case ru:return Gl;case nu:return Zl}return e});var iu=ou,au=Object.prototype.hasOwnProperty;var su=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&au.call(t,"index")&&(r.index=t.index,r.input=t.input),r},cu=gs.Uint8Array;var lu=function(t){var e=new t.constructor(t.byteLength);return new cu(e).set(new cu(t)),e};var uu=function(t,e){var r=e?lu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)},du=/\w*$/;var fu=function(t){var e=new t.constructor(t.source,du.exec(t));return e.lastIndex=t.lastIndex,e},hu=ms?ms.prototype:void 0,pu=hu?hu.valueOf:void 0;var gu=function(t){return pu?Object(pu.call(t)):{}};var mu=function(t,e){var r=e?lu(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)};var bu=function(t,e,r){var n=t.constructor;switch(e){case"[object ArrayBuffer]":return lu(t);case"[object Boolean]":case"[object Date]":return new n(+t);case"[object DataView]":return uu(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return mu(t,r);case"[object Map]":case"[object Set]":return new n;case"[object Number]":case"[object String]":return new n(t);case"[object RegExp]":return fu(t);case"[object Symbol]":return gu(t)}},yu=Object.create,vu=function(){function t(){}return function(e){if(!Os(e))return{};if(yu)return yu(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),wu=vu;var xu=function(t){return"function"!=typeof t.constructor||hc(t)?{}:wu(Fl(t))};var _u=function(t){return gc(t)&&"[object Map]"==iu(t)},ku=Tc&&Tc.isMap,Eu=ku?Oc(ku):_u;var Su=function(t){return gc(t)&&"[object Set]"==iu(t)},Ou=Tc&&Tc.isSet,Tu=Ou?Oc(Ou):Su,Au="[object Arguments]",ju="[object Function]",Pu="[object Object]",Cu={};Cu[Au]=Cu["[object Array]"]=Cu["[object ArrayBuffer]"]=Cu["[object DataView]"]=Cu["[object Boolean]"]=Cu["[object Date]"]=Cu["[object Float32Array]"]=Cu["[object Float64Array]"]=Cu["[object Int8Array]"]=Cu["[object Int16Array]"]=Cu["[object Int32Array]"]=Cu["[object Map]"]=Cu["[object Number]"]=Cu[Pu]=Cu["[object RegExp]"]=Cu["[object Set]"]=Cu["[object String]"]=Cu["[object Symbol]"]=Cu["[object Uint8Array]"]=Cu["[object Uint8ClampedArray]"]=Cu["[object Uint16Array]"]=Cu["[object Uint32Array]"]=!0,Cu["[object Error]"]=Cu[ju]=Cu["[object WeakMap]"]=!1;var Du=function t(e,r,n,o,i,a){var s,c=1&r,l=2&r,u=4&r;if(n&&(s=i?n(e,o,i,a):n(e)),void 0!==s)return s;if(!Os(e))return e;var d=xc(e);if(d){if(s=su(e),!c)return jl(e,s)}else{var f=iu(e),h=f==ju||"[object GeneratorFunction]"==f;if(kc(e))return Al(e,c);if(f==Pu||f==Au||h&&!i){if(s=l||h?{}:xu(e),!c)return l?Bl(e,Tl(s,e)):Il(e,_l(s,e))}else{if(!Cu[f])return i?e:{};s=bu(e,f,c)}}a||(a=new wl);var p=a.get(e);if(p)return p;a.set(e,s),Tu(e)?e.forEach((function(o){s.add(t(o,r,n,o,e,a))})):Eu(e)&&e.forEach((function(o,i){s.set(i,t(o,r,n,i,e,a))}));var g=d?void 0:(u?l?Hl:$l:l?Ol:Nc)(e);return xl(g||e,(function(o,i){g&&(o=e[i=o]),Xs(s,i,t(o,r,n,i,e,a))})),s};var Mu=function(t){return Du(t,5)};var Ru=function(t){for(var e=-1,r=null==t?0:t.length,n=0,o=[];++e<r;){var i=t[e];i&&(o[n++]=i)}return o};var Iu=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var Nu=function(t){return this.__data__.has(t)};function Fu(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new bl;++e<r;)this.add(t[e])}Fu.prototype.add=Fu.prototype.push=Iu,Fu.prototype.has=Nu;var zu=Fu;var Lu=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1};var Bu=function(t){return t!=t};var Vu=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1};var $u=function(t,e,r){return e==e?Vu(t,e,r):Lu(t,Bu,r)};var Hu=function(t,e){return!!(null==t?0:t.length)&&$u(t,e,0)>-1};var Uu=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1};var Wu=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o};var Yu=function(t,e){return t.has(e)};var Xu=function(t,e,r,n){var o=-1,i=Hu,a=!0,s=t.length,c=[],l=e.length;if(!s)return c;r&&(e=Wu(e,Oc(r))),n?(i=Uu,a=!1):e.length>=200&&(i=Yu,a=!1,e=new zu(e));t:for(;++o<s;){var u=t[o],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(e[f]===d)continue t;c.push(u)}else i(e,d,n)||c.push(u)}return c},qu=ms?ms.isConcatSpreadable:void 0;var Ku=function(t){return xc(t)||wc(t)||!!(qu&&t&&t[qu])};var Gu=function t(e,r,n,o,i){var a=-1,s=e.length;for(n||(n=Ku),i||(i=[]);++a<s;){var c=e[a];r>0&&n(c)?r>1?t(c,r-1,n,o,i):Nl(i,c):o||(i[i.length]=c)}return i};var Zu=function(t){return gc(t)&&sc(t)},Qu=ic((function(t,e){return Zu(t)?Xu(t,Gu(e,1,Zu,!0)):[]})),Ju=Qu;var td=function(t,e){return Pl(e,(function(e){return Ts(t[e])}))};var ed=function(t){return null==t?[]:td(t,Nc(t))};var rd=function(t){return"string"==typeof t||!xc(t)&&gc(t)&&"[object String]"==Ss(t)},nd=/\s/;var od=function(t){for(var e=t.length;e--&&nd.test(t.charAt(e)););return e},id=/^\s+/;var ad=function(t){return t?t.slice(0,od(t)+1).replace(id,""):t};var sd=function(t){return"symbol"==typeof t||gc(t)&&"[object Symbol]"==Ss(t)},cd=/^[-+]0x[0-9a-f]+$/i,ld=/^0b[01]+$/i,ud=/^0o[0-7]+$/i,dd=parseInt;var fd=function(t){if("number"==typeof t)return t;if(sd(t))return NaN;if(Os(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Os(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ad(t);var r=ld.test(t);return r||ud.test(t)?dd(t.slice(2),r?2:8):cd.test(t)?NaN:+t},hd=1/0;var pd=function(t){return t?(t=fd(t))===hd||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var gd=function(t){var e=pd(t),r=e%1;return e==e?r?e-r:e:0};var md=function(t,e){return Wu(e,(function(e){return t[e]}))};var bd=function(t){return null==t?[]:md(t,Nc(t))},yd=Math.max;var vd=function(t,e,r,n){t=sc(t)?t:bd(t),r=r&&!n?gd(r):0;var o=t.length;return r<0&&(r=yd(o+r,0)),rd(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&$u(t,e,r)>-1},wd=Function.prototype,xd=Object.prototype,_d=wd.toString,kd=xd.hasOwnProperty,Ed=_d.call(Object);var Sd=function(t){if(!gc(t)||"[object Object]"!=Ss(t))return!1;var e=Fl(t);if(null===e)return!0;var r=kd.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&_d.call(r)==Ed};var Od=function(t){return gc(t)&&1===t.nodeType&&!Sd(t)};var Td=function(t,e,r){(void 0!==r&&!Ws(t[e],r)||void 0===r&&!(e in t))&&Us(t,e,r)};var Ad=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),s=a.length;s--;){var c=a[t?s:++o];if(!1===r(i[c],c,i))break}return e}}();var jd=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]};var Pd=function(t){return qs(t,Ol(t))};var Cd=function(t,e,r,n,o,i,a){var s=jd(t,r),c=jd(e,r),l=a.get(c);if(l)Td(t,r,l);else{var u=i?i(s,c,r+"",t,e,a):void 0,d=void 0===u;if(d){var f=xc(c),h=!f&&kc(c),p=!f&&!h&&jc(c);u=c,f||h||p?xc(s)?u=s:Zu(s)?u=jl(s):h?(d=!1,u=Al(c,!0)):p?(d=!1,u=mu(c,!0)):u=[]:Sd(c)||wc(c)?(u=s,wc(s)?u=Pd(s):Os(s)&&!Ts(s)||(u=xu(c))):d=!1}d&&(a.set(c,u),o(u,c,n,i,a),a.delete(c)),Td(t,r,u)}};var Dd=function t(e,r,n,o,i){e!==r&&Ad(r,(function(a,s){if(i||(i=new wl),Os(a))Cd(e,r,s,n,t,o,i);else{var c=o?o(jd(e,s),a,s+"",e,r,i):void 0;void 0===c&&(c=a),Td(e,s,c)}}),Ol)},Md=dc((function(t,e,r){Dd(t,e,r)})),Rd=ms?ms.prototype:void 0,Id=Rd?Rd.toString:void 0;var Nd=function t(e){if("string"==typeof e)return e;if(xc(e))return Wu(e,t)+"";if(sd(e))return Id?Id.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r};var Fd=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i};var zd=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Fd(t,e,r)};var Ld=function(t,e){for(var r=t.length;r--&&$u(e,t[r],0)>-1;);return r};var Bd=function(t,e){for(var r=-1,n=t.length;++r<n&&$u(e,t[r],0)>-1;);return r};var Vd=function(t){return t.split("")},$d=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Hd=function(t){return $d.test(t)},Ud="\\ud800-\\udfff",Wd="["+Ud+"]",Yd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Xd="\\ud83c[\\udffb-\\udfff]",qd="[^"+Ud+"]",Kd="(?:\\ud83c[\\udde6-\\uddff]){2}",Gd="[\\ud800-\\udbff][\\udc00-\\udfff]",Zd="(?:"+Yd+"|"+Xd+")"+"?",Qd="[\\ufe0e\\ufe0f]?",Jd=Qd+Zd+("(?:\\u200d(?:"+[qd,Kd,Gd].join("|")+")"+Qd+Zd+")*"),tf="(?:"+[qd+Yd+"?",Yd,Kd,Gd,Wd].join("|")+")",ef=RegExp(Xd+"(?="+Xd+")|"+tf+Jd,"g");var rf=function(t){return t.match(ef)||[]};var nf=function(t){return Hd(t)?rf(t):Vd(t)};var of=function(t){return null==t?"":Nd(t)};var af=function(t,e,r){if((t=of(t))&&(r||void 0===e))return ad(t);if(!t||!(e=Nd(e)))return t;var n=nf(t),o=nf(e),i=Bd(n,o),a=Ld(n,o)+1;return zd(n,i,a).join("")},sf=k((function(t,e){var r;r=function(t,e,r,n,o,i,a,s,c,l,u,d,f,h){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="./src/namespace/cloudinary-core.js")}({"./src/namespace/cloudinary-core.js":function(t,e,r){r.r(e),r.d(e,"ClientHintsMetaTag",(function(){return Qn})),r.d(e,"Cloudinary",(function(){return ko})),r.d(e,"Condition",(function(){return be})),r.d(e,"Configuration",(function(){return Se})),r.d(e,"crc32",(function(){return a})),r.d(e,"Expression",(function(){return le})),r.d(e,"FetchLayer",(function(){return Je})),r.d(e,"HtmlTag",(function(){return Br})),r.d(e,"ImageTag",(function(){return dn})),r.d(e,"Layer",(function(){return je})),r.d(e,"PictureTag",(function(){return Cn})),r.d(e,"SubtitlesLayer",(function(){return We})),r.d(e,"TextLayer",(function(){return Fe})),r.d(e,"Transformation",(function(){return Rr})),r.d(e,"utf8_encode",(function(){return i})),r.d(e,"Util",(function(){return o})),r.d(e,"VideoTag",(function(){return Un}));var n={};r.r(n),r.d(n,"VERSION",(function(){return q})),r.d(n,"CF_SHARED_CDN",(function(){return K})),r.d(n,"OLD_AKAMAI_SHARED_CDN",(function(){return G})),r.d(n,"AKAMAI_SHARED_CDN",(function(){return Z})),r.d(n,"SHARED_CDN",(function(){return Q})),r.d(n,"DEFAULT_TIMEOUT_MS",(function(){return J})),r.d(n,"DEFAULT_POSTER_OPTIONS",(function(){return tt})),r.d(n,"DEFAULT_VIDEO_SOURCE_TYPES",(function(){return et})),r.d(n,"SEO_TYPES",(function(){return rt})),r.d(n,"DEFAULT_IMAGE_PARAMS",(function(){return nt})),r.d(n,"DEFAULT_VIDEO_PARAMS",(function(){return ot})),r.d(n,"DEFAULT_VIDEO_SOURCES",(function(){return it})),r.d(n,"DEFAULT_EXTERNAL_LIBRARIES",(function(){return at})),r.d(n,"PLACEHOLDER_IMAGE_MODES",(function(){return st})),r.d(n,"ACCESSIBILITY_MODES",(function(){return ct})),r.d(n,"URL_KEYS",(function(){return lt}));var o={};r.r(o),r.d(o,"getSDKAnalyticsSignature",(function(){return p})),r.d(o,"getAnalyticsOptions",(function(){return g})),r.d(o,"assign",(function(){return b.a})),r.d(o,"cloneDeep",(function(){return v.a})),r.d(o,"compact",(function(){return x.a})),r.d(o,"difference",(function(){return k.a})),r.d(o,"functions",(function(){return S.a})),r.d(o,"identity",(function(){return T.a})),r.d(o,"includes",(function(){return j.a})),r.d(o,"isArray",(function(){return C.a})),r.d(o,"isPlainObject",(function(){return M.a})),r.d(o,"isString",(function(){return I.a})),r.d(o,"merge",(function(){return F.a})),r.d(o,"contains",(function(){return j.a})),r.d(o,"isIntersectionObserverSupported",(function(){return W})),r.d(o,"isNativeLazyLoadSupported",(function(){return Y})),r.d(o,"detectIntersection",(function(){return X})),r.d(o,"omit",(function(){return dt})),r.d(o,"allStrings",(function(){return gt})),r.d(o,"without",(function(){return mt})),r.d(o,"isNumberLike",(function(){return bt})),r.d(o,"smartEscape",(function(){return yt})),r.d(o,"defaults",(function(){return vt})),r.d(o,"objectProto",(function(){return wt})),r.d(o,"objToString",(function(){return xt})),r.d(o,"isObject",(function(){return _t})),r.d(o,"funcTag",(function(){return kt})),r.d(o,"reWords",(function(){return St})),r.d(o,"camelCase",(function(){return Ot})),r.d(o,"snakeCase",(function(){return Tt})),r.d(o,"convertKeys",(function(){return At})),r.d(o,"withCamelCaseKeys",(function(){return jt})),r.d(o,"withSnakeCaseKeys",(function(){return Pt})),r.d(o,"base64Encode",(function(){return Ct})),r.d(o,"base64EncodeURL",(function(){return Dt})),r.d(o,"extractUrlParams",(function(){return Mt})),r.d(o,"patchFetchFormat",(function(){return Rt})),r.d(o,"optionConsume",(function(){return It})),r.d(o,"isEmpty",(function(){return Nt})),r.d(o,"isAndroid",(function(){return zt})),r.d(o,"isEdge",(function(){return Lt})),r.d(o,"isChrome",(function(){return Bt})),r.d(o,"isSafari",(function(){return Vt})),r.d(o,"isElement",(function(){return L.a})),r.d(o,"isFunction",(function(){return V.a})),r.d(o,"trim",(function(){return H.a})),r.d(o,"getData",(function(){return $t})),r.d(o,"setData",(function(){return Ht})),r.d(o,"getAttribute",(function(){return Ut})),r.d(o,"setAttribute",(function(){return Wt})),r.d(o,"removeAttribute",(function(){return Yt})),r.d(o,"setAttributes",(function(){return Xt})),r.d(o,"hasClass",(function(){return qt})),r.d(o,"addClass",(function(){return Kt})),r.d(o,"getStyles",(function(){return Gt})),r.d(o,"cssExpand",(function(){return Zt})),r.d(o,"domStyle",(function(){return Qt})),r.d(o,"curCSS",(function(){return Jt})),r.d(o,"cssValue",(function(){return te})),r.d(o,"augmentWidthOrHeight",(function(){return ee})),r.d(o,"getWidthOrHeight",(function(){return ne})),r.d(o,"width",(function(){return oe}));var i=function(t){var e,r,n,o,i,a,s,c;if(null==t)return"";for(c="",i=void 0,n=void 0,i=n=0,s=(a=t+"").length,o=0;o<s;)r=null,(e=a.charCodeAt(o))<128?n++:r=e>127&&e<2048?String.fromCharCode(e>>6|192,63&e|128):String.fromCharCode(e>>12|224,e>>6&63|128,63&e|128),null!==r&&(n>i&&(c+=a.slice(i,n)),c+=r,i=n=o+1),o++;return n>i&&(c+=a.slice(i,s)),c},a=function(t){var e,r,n,o;for(o=0,e=~(e=0),r=0,n=(t=i(t)).length;r<n;)o=255&(e^t.charCodeAt(r)),e=e>>>8^"0x"+"00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substr(9*o,8),r++;return(e=~e)<0&&(e+=4294967296),e};function s(t,e,r){return e|=0,r=String(void 0!==r?r:" "),t.length>e?String(t):((e-=t.length)>r.length&&(r+=function(t,e){for(var r="";e>0;)r+=t,e--;return r}(r,e/r.length)),r.slice(0,e)+String(t))}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var l,u=0,d={};(l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",function(t){if(Array.isArray(t))return c(t)}(l)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(l)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(l)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(t){var e=u.toString(2);e=s(e,6,"0"),d[e]=t,u++}));var f=d;function h(t){var e="",r=6*t.split(".").length,n=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().map((function(t){return s(t,2,"0")})).join(".")}(t),o=parseInt(n.split(".").join("")).toString(2);if((o=s(o,r,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return o.match(/.{1,6}/g).forEach((function(t){e+=f[t]})),e}function p(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var n=(t=r.techVersion,e=t.split("."),"".concat(e[0],".").concat(e[1])),o=h(r.sdkSemver),i=h(n),a=r.feature,s=r.sdkCode;return"".concat("A").concat(s).concat(o).concat(i).concat(a)}catch(t){return"E"}}function g(t){var e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,feature:"0"};return t.urlAnalytics?(t.accessibility&&(e.feature="D"),"lazy"===t.loading&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e):{}}var m=r("lodash/assign"),b=r.n(m),y=r("lodash/cloneDeep"),v=r.n(y),w=r("lodash/compact"),x=r.n(w),_=r("lodash/difference"),k=r.n(_),E=r("lodash/functions"),S=r.n(E),O=r("lodash/identity"),T=r.n(O),A=r("lodash/includes"),j=r.n(A),P=r("lodash/isArray"),C=r.n(P),D=r("lodash/isPlainObject"),M=r.n(D),R=r("lodash/isString"),I=r.n(R),N=r("lodash/merge"),F=r.n(N),z=r("lodash/isElement"),L=r.n(z),B=r("lodash/isFunction"),V=r.n(B),$=r("lodash/trim"),H=r.n($);function U(t){return U="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},U(t)}function W(){return"object"===("undefined"==typeof window?"undefined":U(window))&&window.IntersectionObserver}function Y(){return"object"===("undefined"==typeof HTMLImageElement?"undefined":U(HTMLImageElement))&&HTMLImageElement.prototype.loading}function X(t,e){try{if(Y()||!W())return void e();var r=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(e(),r.unobserve(t.target))}))}),{threshold:[0,.01]});r.observe(t)}catch(t){e()}}var q="2.5.0",K="d3jpl91pxevbkh.cloudfront.net",G="cloudinary-a.akamaihd.net",Z="res.cloudinary.com",Q=Z,J=1e4,tt={format:"jpg",resource_type:"video"},et=["webm","mp4","ogv"],rt={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"},nt={resource_type:"image",transformation:[],type:"upload"},ot={fallback_content:"",resource_type:"video",source_transformation:{},source_types:et,transformation:[],type:"upload"},it=[{type:"mp4",codecs:"hev1",transformations:{video_codec:"h265"}},{type:"webm",codecs:"vp9",transformations:{video_codec:"vp9"}},{type:"mp4",transformations:{video_codec:"auto"}},{type:"webm",transformations:{video_codec:"auto"}}],at={seeThru:"https://unpkg.com/seethru@4/dist/seeThru.min.js"},st={blur:[{effect:"blur:2000",quality:1,fetch_format:"auto"}],pixelate:[{effect:"pixelate",quality:1,fetch_format:"auto"}],"predominant-color-pixel":[{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:1,height:1,gravity:"north_east"},{fetch_format:"auto",quality:"auto"}],"predominant-color":[{variables:[["$currWidth","w"],["$currHeight","h"]]},{width:"iw_div_2",aspect_ratio:1,crop:"pad",background:"auto"},{crop:"crop",width:10,height:10,gravity:"north_east"},{width:"$currWidth",height:"$currHeight",crop:"fill"},{fetch_format:"auto",quality:"auto"}],vectorize:[{effect:"vectorize:3:0.1",fetch_format:"svg"}]},ct={darkmode:"tint:75:black",brightmode:"tint:50:white",monochrome:"grayscale",colorblind:"assist_colorblind"},lt=["accessibility","api_secret","auth_token","cdn_subdomain","cloud_name","cname","format","placeholder","private_cdn","resource_type","secure","secure_cdn_subdomain","secure_distribution","shorten","sign_url","signature","ssl_detected","type","url_suffix","use_root_path","version"];function ut(t){return ut="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},ut(t)}function dt(t,e){t=t||{};var r=Object.keys(t).filter((function(t){return!j()(e,t)})),n={};return r.forEach((function(e){return n[e]=t[e]})),n}var ft,ht,pt,gt=function(t){return t.length&&t.every(I.a)},mt=function(t,e){return t.filter((function(t){return t!==e}))},bt=function(t){return null!=t&&!isNaN(parseFloat(t))},yt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/([^a-zA-Z0-9_.\-\/:]+)/g;return t.replace(e,(function(t){return t.split("").map((function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})).join("")}))},vt=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(t,e){var r,n;for(r in e)n=e[r],void 0===t[r]&&(t[r]=n);return t}),t)},wt=Object.prototype,xt=wt.toString,_t=function(t){var e;return e=ut(t),!!t&&("object"===e||"function"===e)},kt="[object Function]",Et=function(t){return _t(t)&&xt.call(t)===kt},St=(ht="[A-Z]",ft="[a-z]+",RegExp(ht+"+(?="+ht+ft+")|"+ht+"?"+ft+"|"+ht+"+|[0-9]+","g")),Ot=function(t){var e=t.match(St);return(e=e.map((function(t){return t.charAt(0).toLocaleUpperCase()+t.slice(1).toLocaleLowerCase()})))[0]=e[0].toLocaleLowerCase(),e.join("")},Tt=function(t){var e=t.match(St);return(e=e.map((function(t){return t.toLocaleLowerCase()}))).join("_")},At=function(t,e){var r,n;for(var o in r={},t)n=t[o],e&&(o=e(o)),Nt(o)||(r[o]=n);return r},jt=function(t){return At(t,Ot)},Pt=function(t){return At(t,Tt)},Ct="undefined"!=typeof btoa&&Et(btoa)?btoa:"undefined"!=typeof Buffer&&Et(Buffer)?function(t){return t instanceof Buffer||(t=new Buffer.from(String(t),"binary")),t.toString("base64")}:function(t){throw new Error("No base64 encoding function found")},Dt=function(t){try{t=decodeURI(t)}finally{t=encodeURI(t)}return Ct(t)};function Mt(t){return lt.reduce((function(e,r){return null!=t[r]&&(e[r]=t[r]),e}),{})}function Rt(t){null==t&&(t={}),"fetch"===t.type&&null==t.fetch_format&&(t.fetch_format=It(t,"format"))}function It(t,e,r){var n=t[e];return delete t[e],null!=n?n:r}function Nt(t){if(null==t)return!0;if("number"==typeof t.length)return 0===t.length;if("number"==typeof t.size)return 0===t.size;if("object"==ut(t)){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}return!0}function Ft(){return navigator&&navigator.userAgent||""}function zt(){var t=Ft();return/Android/i.test(t)}function Lt(){var t=Ft();return/Edg/i.test(t)}function Bt(){var t=Ft();return!Lt()&&(/Chrome/i.test(t)||/CriOS/i.test(t))}function Vt(){var t=Ft();return/Safari/i.test(t)&&!Bt()&&!zt()&&!Lt()}var $t=function(t,e){switch(!1){case!(null==t):return;case!V()(t.getAttribute):return t.getAttribute("data-".concat(e));case!V()(t.getAttr):return t.getAttr("data-".concat(e));case!V()(t.data):return t.data(e);case!(V()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&L()(t)):return jQuery(t).data(e)}},Ht=function(t,e,r){switch(!1){case!(null==t):return;case!V()(t.setAttribute):return t.setAttribute("data-".concat(e),r);case!V()(t.setAttr):return t.setAttr("data-".concat(e),r);case!V()(t.data):return t.data(e,r);case!(V()("undefined"!=typeof jQuery&&jQuery.fn&&jQuery.fn.data)&&L()(t)):return jQuery(t).data(e,r)}},Ut=function(t,e){switch(!1){case!(null==t):return;case!V()(t.getAttribute):return t.getAttribute(e);case!V()(t.attr):return t.attr(e);case!V()(t.getAttr):return t.getAttr(e)}},Wt=function(t,e,r){switch(!1){case!(null==t):return;case!V()(t.setAttribute):return t.setAttribute(e,r);case!V()(t.attr):return t.attr(e,r);case!V()(t.setAttr):return t.setAttr(e,r)}},Yt=function(t,e){switch(!1){case!(null==t):return;case!V()(t.removeAttribute):return t.removeAttribute(e);default:return Wt(t,void 0)}},Xt=function(t,e){var r,n,o;for(r in n=[],e)null!=(o=e[r])?n.push(Wt(t,r,o)):n.push(Yt(t,r));return n},qt=function(t,e){if(L()(t))return t.className.match(new RegExp("\\b".concat(e,"\\b")))},Kt=function(t,e){if(!t.className.match(new RegExp("\\b".concat(e,"\\b"))))return t.className=H()("".concat(t.className," ").concat(e))},Gt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null)},Zt=["Top","Right","Bottom","Left"];pt=function(t,e){var r,n;return r=9===t.nodeType?t.documentElement:t,t===(n=e&&e.parentNode)||!(!n||1!==n.nodeType||!r.contains(n))};var Qt=function(t,e){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style)return t.style[e]},Jt=function(t,e,r){var n,o,i,a,s,c;return a=/^margin/,c=void 0,o=void 0,n=void 0,i=void 0,s=t.style,(r=r||Gt(t))&&(i=r.getPropertyValue(e)||r[e]),r&&(""!==i||pt(t.ownerDocument,t)||(i=Qt(t,e)),re.test(i)&&a.test(e)&&(c=s.width,o=s.minWidth,n=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=r.width,s.width=c,s.minWidth=o,s.maxWidth=n)),void 0!==i?i+"":i},te=function(t,e,r,n){var o;return o=Jt(t,e,n),r?parseFloat(o):o},ee=function(t,e,r,n,o){var i,a,s,c,l;if(r===(n?"border":"content"))return 0;for(l=0,i=0,a=(c="width"===e?["Right","Left"]:["Top","Bottom"]).length;i<a;i++)s=c[i],"margin"===r&&(l+=te(t,r+s,!0,o)),n?("content"===r&&(l-=te(t,"padding".concat(s),!0,o)),"margin"!==r&&(l-=te(t,"border".concat(s,"Width"),!0,o))):(l+=te(t,"padding".concat(s),!0,o),"padding"!==r&&(l+=te(t,"border".concat(s,"Width"),!0,o)));return l},re=new RegExp("^("+/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source+")(?!px)[a-z%]+$","i"),ne=function(t,e,r){var n,o,i,a;if(a=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=Gt(t),n="border-box"===te(t,"boxSizing",!1,o),i<=0||null==i){if(((i=Jt(t,e,o))<0||null==i)&&(i=t.style[e]),re.test(i))return i;a=n&&i===t.style[e],i=parseFloat(i)||0}return i+ee(t,e,r||(n?"border":"content"),a,o)},oe=function(t){return ne(t,"width","content")};function ie(t){return ie="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},ie(t)}function ae(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,se(n.key),n)}}function se(t){var e=function(t,e){if("object"!=ie(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ie(e)?e:e+""}var ce=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.expressions=[],null!=e&&this.expressions.push(t.normalize(e))}return e=t,n=[{key:"new",value:function(t){return new this(t)}},{key:"normalize",value:function(e){if(null==e)return e;e=String(e);var r=new RegExp("((\\|\\||>=|<=|&&|!=|>|=|<|/|-|\\+|\\*|\\^)(?=[ _]))","g");e=e.replace(r,(function(e){return t.OPERATORS[e]}));var n="("+Object.keys(t.PREDEFINED_VARS).map((function(t){return":".concat(t,"|").concat(t)})).join("|")+")",o=new RegExp("".concat("(\\$_*[^_ ]+)","|").concat(n),"g");return(e=e.replace(o,(function(e){return t.PREDEFINED_VARS[e]||e}))).replace(/[ _]+/g,"_")}},{key:"variable",value:function(t,e){return new this(t).value(e)}},{key:"width",value:function(){return new this("width")}},{key:"height",value:function(){return new this("height")}},{key:"initialWidth",value:function(){return new this("initialWidth")}},{key:"initialHeight",value:function(){return new this("initialHeight")}},{key:"aspectRatio",value:function(){return new this("aspectRatio")}},{key:"initialAspectRatio",value:function(){return new this("initialAspectRatio")}},{key:"pageCount",value:function(){return new this("pageCount")}},{key:"faceCount",value:function(){return new this("faceCount")}},{key:"currentPage",value:function(){return new this("currentPage")}},{key:"tags",value:function(){return new this("tags")}},{key:"pageX",value:function(){return new this("pageX")}},{key:"pageY",value:function(){return new this("pageY")}}],(r=[{key:"serialize",value:function(){return t.normalize(this.expressions.join("_"))}},{key:"toString",value:function(){return this.serialize()}},{key:"getParent",value:function(){return this.parent}},{key:"setParent",value:function(t){return this.parent=t,this}},{key:"predicate",value:function(e,r,n){return null!=t.OPERATORS[r]&&(r=t.OPERATORS[r]),this.expressions.push("".concat(e,"_").concat(r,"_").concat(n)),this}},{key:"and",value:function(){return this.expressions.push("and"),this}},{key:"or",value:function(){return this.expressions.push("or"),this}},{key:"then",value:function(){return this.getParent().if(this.toString())}},{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"value",value:function(t){return this.expressions.push(t),this}}])&&ae(e.prototype,r),n&&ae(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,n}();ce.OPERATORS={"=":"eq","!=":"ne","<":"lt",">":"gt","<=":"lte",">=":"gte","&&":"and","||":"or","*":"mul","/":"div","+":"add","-":"sub","^":"pow"},ce.PREDEFINED_VARS={aspect_ratio:"ar",aspectRatio:"ar",current_page:"cp",currentPage:"cp",duration:"du",face_count:"fc",faceCount:"fc",height:"h",initial_aspect_ratio:"iar",initial_duration:"idu",initial_height:"ih",initial_width:"iw",initialAspectRatio:"iar",initialDuration:"idu",initialHeight:"ih",initialWidth:"iw",page_count:"pc",page_x:"px",page_y:"py",pageCount:"pc",pageX:"px",pageY:"py",tags:"tags",width:"w"},ce.BOUNDRY="[ _]+";var le=ce;function ue(t){return ue="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},ue(t)}function de(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fe(n.key),n)}}function fe(t){var e=function(t,e){if("object"!=ue(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ue(e)?e:e+""}function he(t,e,r){return e=ge(e),function(t,e){if(e&&("object"===ue(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,pe()?Reflect.construct(e,r||[],ge(t).constructor):e.apply(t,r))}function pe(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(pe=function(){return!!t})()}function ge(t){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ge(t)}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}var be=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),he(this,e,[t])}return function(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&&me(t,e)}(e,t),r=e,(n=[{key:"height",value:function(t,e){return this.predicate("h",t,e)}},{key:"width",value:function(t,e){return this.predicate("w",t,e)}},{key:"aspectRatio",value:function(t,e){return this.predicate("ar",t,e)}},{key:"pageCount",value:function(t,e){return this.predicate("pc",t,e)}},{key:"faceCount",value:function(t,e){return this.predicate("fc",t,e)}},{key:"duration",value:function(t,e){return this.predicate("du",t,e)}},{key:"initialDuration",value:function(t,e){return this.predicate("idu",t,e)}}])&&de(r.prototype,n),o&&de(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(le);function ye(t){return ye="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},ye(t)}function ve(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return we(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?we(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 we(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_e(n.key),n)}}function _e(t){var e=function(t,e){if("object"!=ye(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ye(e)?e:e+""}var ke=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.configuration=null==e?{}:v()(e),vt(this.configuration,Ee)},e=[{key:"init",value:function(){return this.fromEnvironment(),this.fromDocument(),this}},{key:"set",value:function(t,e){return this.configuration[t]=e,this}},{key:"get",value:function(t){return this.configuration[t]}},{key:"merge",value:function(t){return b()(this.configuration,v()(t)),this}},{key:"fromDocument",value:function(){var t,e,r,n;if(n="undefined"!=typeof document&&null!==document?document.querySelectorAll('meta[name^="cloudinary_"]'):void 0)for(e=0,r=n.length;e<r;e++)t=n[e],this.configuration[t.getAttribute("name").replace("cloudinary_","")]=t.getAttribute("content");return this}},{key:"fromEnvironment",value:function(){var t,e,r,n=this;return"undefined"!=typeof process&&null!==process&&process.env&&process.env.CLOUDINARY_URL&&(t=process.env.CLOUDINARY_URL,(r=/cloudinary:\/\/(?:(\w+)(?:\:([\w-]+))?@)?([\w\.-]+)(?:\/([^?]*))?(?:\?(.+))?/.exec(t))&&(null!=r[3]&&(this.configuration.cloud_name=r[3]),null!=r[1]&&(this.configuration.api_key=r[1]),null!=r[2]&&(this.configuration.api_secret=r[2]),null!=r[4]&&(this.configuration.private_cdn=null!=r[4]),null!=r[4]&&(this.configuration.secure_distribution=r[4]),null!=(e=r[5])&&e.split("&").forEach((function(t){var e=ve(t.split("="),2),r=e[0],o=e[1];null==o&&(o=!0),n.configuration[r]=o})))),this}},{key:"config",value:function(t,e){switch(!1){case void 0===e:return this.set(t,e),this.configuration;case!I()(t):return this.get(t);case!M()(t):return this.merge(t),this.configuration;default:return this.configuration}}},{key:"toOptions",value:function(){return v()(this.configuration)}}],e&&xe(t.prototype,e),r&&xe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),Ee={responsive_class:"cld-responsive",responsive_use_breakpoints:!0,round_dpr:!0,secure:"https:"===("undefined"!=typeof window&&null!==window&&window.location?window.location.protocol:void 0)};ke.CONFIG_PARAMS=["api_key","api_secret","callback","cdn_subdomain","cloud_name","cname","private_cdn","protocol","resource_type","responsive","responsive_class","responsive_use_breakpoints","responsive_width","round_dpr","secure","secure_cdn_subdomain","secure_distribution","shorten","type","upload_preset","url_suffix","use_root_path","version","externalLibraries","max_timeout_ms"];var Se=ke;function Oe(t){return Oe="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},Oe(t)}function Te(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ae(n.key),n)}}function Ae(t){var e=function(t,e){if("object"!=Oe(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Oe(e)?e:e+""}var je=function(){return t=function t(e){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={},null!=e&&["resourceType","type","publicId","format"].forEach((function(t){var n;return r.options[t]=null!=(n=e[t])?n:e[Tt(t)]}))},(e=[{key:"resourceType",value:function(t){return this.options.resourceType=t,this}},{key:"type",value:function(t){return this.options.type=t,this}},{key:"publicId",value:function(t){return this.options.publicId=t,this}},{key:"getPublicId",value:function(){var t;return null!=(t=this.options.publicId)?t.replace(/\//g,":"):void 0}},{key:"getFullPublicId",value:function(){return null!=this.options.format?this.getPublicId()+"."+this.options.format:this.getPublicId()}},{key:"format",value:function(t){return this.options.format=t,this}},{key:"toString",value:function(){var t;if(t=[],null==this.options.publicId)throw"Must supply publicId";return"image"!==this.options.resourceType&&t.push(this.options.resourceType),"upload"!==this.options.type&&t.push(this.options.type),t.push(this.getFullPublicId()),x()(t).join(":")}},{key:"clone",value:function(){return new this.constructor(this.options)}}])&&Te(t.prototype,e),r&&Te(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function Pe(t){return Pe="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},Pe(t)}function Ce(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,De(n.key),n)}}function De(t){var e=function(t,e){if("object"!=Pe(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Pe(e)?e:e+""}function Me(t,e,r){return e=Ie(e),function(t,e){if(e&&("object"===Pe(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Re()?Reflect.construct(e,r||[],Ie(t).constructor):e.apply(t,r))}function Re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Re=function(){return!!t})()}function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ie(t)}function Ne(t,e){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ne(t,e)}var Fe=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=Me(this,e,[t]),null!=t&&["resourceType","resourceType","fontFamily","fontSize","fontWeight","fontStyle","textDecoration","textAlign","stroke","letterSpacing","lineSpacing","fontHinting","fontAntialiasing","text","textStyle"].forEach((function(e){var n;return r.options[e]=null!=(n=t[e])?n:t[Tt(e)]})),r.options.resourceType="text",r}return function(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&&Ne(t,e)}(e,t),r=e,(n=[{key:"resourceType",value:function(t){throw"Cannot modify resourceType for text layers"}},{key:"type",value:function(t){throw"Cannot modify type for text layers"}},{key:"format",value:function(t){throw"Cannot modify format for text layers"}},{key:"fontFamily",value:function(t){return this.options.fontFamily=t,this}},{key:"fontSize",value:function(t){return this.options.fontSize=t,this}},{key:"fontWeight",value:function(t){return this.options.fontWeight=t,this}},{key:"fontStyle",value:function(t){return this.options.fontStyle=t,this}},{key:"textDecoration",value:function(t){return this.options.textDecoration=t,this}},{key:"textAlign",value:function(t){return this.options.textAlign=t,this}},{key:"stroke",value:function(t){return this.options.stroke=t,this}},{key:"letterSpacing",value:function(t){return this.options.letterSpacing=t,this}},{key:"lineSpacing",value:function(t){return this.options.lineSpacing=t,this}},{key:"fontHinting",value:function(t){return this.options.fontHinting=t,this}},{key:"fontAntialiasing",value:function(t){return this.options.fontAntialiasing=t,this}},{key:"text",value:function(t){return this.options.text=t,this}},{key:"textStyle",value:function(t){return this.options.textStyle=t,this}},{key:"toString",value:function(){var t,e,r,n,o,i,a,s,c,l;if(s=this.textStyleIdentifier(),null!=this.options.publicId&&(n=this.getFullPublicId()),null!=this.options.text){if(e=!Nt(n),r=!Nt(s),e&&r||!e&&!r)throw"Must supply either style parameters or a public_id when providing text parameter in a text overlay/underlay, but not both!";for(o=/\$\([a-zA-Z]\w*\)/g,a=0,l=yt(this.options.text,/[,\/]/g),c="";i=o.exec(l);)c+=yt(l.slice(a,i.index)),c+=i[0],a=i.index+i[0].length;c+=yt(l.slice(a))}return t=[this.options.resourceType,s,n,c],x()(t).join(":")}},{key:"textStyleIdentifier",value:function(){if(!Nt(this.options.textStyle))return this.options.textStyle;var t;if(t=[],"normal"!==this.options.fontWeight&&t.push(this.options.fontWeight),"normal"!==this.options.fontStyle&&t.push(this.options.fontStyle),"none"!==this.options.textDecoration&&t.push(this.options.textDecoration),t.push(this.options.textAlign),"none"!==this.options.stroke&&t.push(this.options.stroke),Nt(this.options.letterSpacing)&&!bt(this.options.letterSpacing)||t.push("letter_spacing_"+this.options.letterSpacing),Nt(this.options.lineSpacing)&&!bt(this.options.lineSpacing)||t.push("line_spacing_"+this.options.lineSpacing),Nt(this.options.fontAntialiasing)||t.push("antialias_"+this.options.fontAntialiasing),Nt(this.options.fontHinting)||t.push("hinting_"+this.options.fontHinting),!Nt(x()(t))){if(Nt(this.options.fontFamily))throw"Must supply fontFamily. ".concat(t);if(Nt(this.options.fontSize)&&!bt(this.options.fontSize))throw"Must supply fontSize."}return t.unshift(this.options.fontFamily,this.options.fontSize),t=x()(t).join("_")}}])&&Ce(r.prototype,n),o&&Ce(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(je);function ze(t){return ze="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},ze(t)}function Le(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Be(n.key),n)}}function Be(t){var e=function(t,e){if("object"!=ze(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ze(e)?e:e+""}function Ve(t,e,r){return e=He(e),function(t,e){if(e&&("object"===ze(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,$e()?Reflect.construct(e,r||[],He(t).constructor):e.apply(t,r))}function $e(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($e=function(){return!!t})()}function He(t){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},He(t)}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ue(t,e)}var We=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Ve(this,e,[t])).options.resourceType="subtitles",r}return function(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&&Ue(t,e)}(e,t),r=e,n&&Le(r.prototype,n),o&&Le(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Fe);function Ye(t){return Ye="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},Ye(t)}function Xe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,qe(n.key),n)}}function qe(t){var e=function(t,e){if("object"!=Ye(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ye(e)?e:e+""}function Ke(t,e,r){return e=Ze(e),function(t,e){if(e&&("object"===Ye(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ge()?Reflect.construct(e,r||[],Ze(t).constructor):e.apply(t,r))}function Ge(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ge=function(){return!!t})()}function Ze(t){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ze(t)}function Qe(t,e){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qe(t,e)}var Je=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=Ke(this,e,[t]),I()(t)?r.options.url=t:(null!=t?t.url:void 0)&&(r.options.url=t.url),r}return function(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&&Qe(t,e)}(e,t),r=e,(n=[{key:"url",value:function(t){return this.options.url=t,this}},{key:"toString",value:function(){return"fetch:".concat(Dt(this.options.url))}}])&&Xe(r.prototype,n),o&&Xe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(je);function tr(t,e,r){return e=nr(e),function(t,e){if(e&&("object"===ar(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,er()?Reflect.construct(e,r||[],nr(t).constructor):e.apply(t,r))}function er(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(er=function(){return!!t})()}function rr(){return rr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=nr(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},rr.apply(this,arguments)}function nr(t){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nr(t)}function or(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&&ir(t,e)}function ir(t,e){return ir=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ir(t,e)}function ar(t){return ar="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},ar(t)}function sr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ur(n.key),n)}}function lr(t,e,r){return e&&cr(t.prototype,e),r&&cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ur(t){var e=function(t,e){if("object"!=ar(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ar(e)?e:e+""}var dr=function(){return lr((function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.a;sr(this,t),this.name=e,this.shortName=r,this.process=n}),[{key:"set",value:function(t){return this.origValue=t,this}},{key:"serialize",value:function(){var t,e;return t=this.value(),e=C()(t)||M()(t)||I()(t)?!Nt(t):null!=t,null!=this.shortName&&e?"".concat(this.shortName,"_").concat(t):""}},{key:"value",value:function(){return this.process(this.origValue)}}],[{key:"norm_color",value:function(t){return null!=t?t.replace(/^#/,"rgb:"):void 0}},{key:"build_array",value:function(t){return null==t?[]:C()(t)?t:[t]}},{key:"process_video_params",value:function(t){var e;switch(t.constructor){case Object:return e="","codec"in t&&(e=t.codec,"profile"in t&&(e+=":"+t.profile,"level"in t&&(e+=":"+t.level,"b_frames"in t&&!1===t.b_frames&&(e+=":bframes_no")))),e;case String:return t;default:return null}}}])}(),fr=function(t){function e(t,r){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return sr(this,e),(n=tr(this,e,[t,r,i])).sep=o,n}return or(e,t),lr(e,[{key:"serialize",value:function(){if(null!=this.shortName){var t=this.value();if(Nt(t))return"";if(I()(t))return"".concat(this.shortName,"_").concat(t);var e=t.map((function(t){return V()(t.serialize)?t.serialize():t})).join(this.sep);return"".concat(this.shortName,"_").concat(e)}return""}},{key:"value",value:function(){var t=this;return C()(this.origValue)?this.origValue.map((function(e){return t.process(e)})):this.process(this.origValue)}},{key:"set",value:function(t){return null==t||C()(t)?rr(nr(e.prototype),"set",this).call(this,t):rr(nr(e.prototype),"set",this).call(this,[t])}}])}(dr),hr=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"t",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;return sr(this,e),(r=tr(this,e,[t,n,i])).sep=o,r}return or(e,t),lr(e,[{key:"serialize",value:function(){var t=this,e="",r=this.value();if(Nt(r))return e;if(gt(r)){var n=r.join(this.sep);Nt(n)||(e="".concat(this.shortName,"_").concat(n))}else e=r.map((function(e){return I()(e)&&!Nt(e)?"".concat(t.shortName,"_").concat(e):V()(e.serialize)?e.serialize():M()(e)&&!Nt(e)?new Rr(e).serialize():void 0})).filter((function(t){return t}));return e}},{key:"set",value:function(t){return this.origValue=t,C()(this.origValue)?rr(nr(e.prototype),"set",this).call(this,this.origValue):rr(nr(e.prototype),"set",this).call(this,[this.origValue])}}])}(dr),pr=function(t){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.norm_range_value;return sr(this,e),tr(this,e,[t,r,n])}return or(e,t),lr(e,null,[{key:"norm_range_value",value:function(t){var e=String(t).match(new RegExp("^(([0-9]*)\\.([0-9]+)|([0-9]+))([%pP])?$"));if(e){var r=null!=e[5]?"p":"";t=(e[1]||e[4])+r}return le.normalize(t)}}])}(dr),gr=function(t){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.a;return sr(this,e),tr(this,e,[t,r,n])}return or(e,t),lr(e,[{key:"serialize",value:function(){return this.value()}}])}(dr),mr=function(t){function e(){return sr(this,e),tr(this,e,arguments)}return or(e,t),lr(e,[{key:"value",value:function(){if(null==this.origValue)return"";var t;if(this.origValue instanceof je)t=this.origValue;else if(M()(this.origValue)){var e=jt(this.origValue);t="text"===e.resourceType||null!=e.text?new Fe(e):"subtitles"===e.resourceType?new We(e):"fetch"===e.resourceType||null!=e.url?new Je(e):new je(e)}else t=I()(this.origValue)?/^fetch:.+/.test(this.origValue)?new Je(this.origValue.substr(6)):this.origValue:"";return t.toString()}}],[{key:"textStyle",value:function(t){return new Fe(t).textStyleIdentifier()}}])}(dr);function br(t,e,r){return e=vr(e),function(t,e){if(e&&("object"===kr(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,yr()?Reflect.construct(e,r||[],vr(t).constructor):e.apply(t,r))}function yr(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yr=function(){return!!t})()}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vr(t)}function wr(t,e){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wr(t,e)}function xr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _r(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_r(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 _r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kr(t){return kr="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},kr(t)}function Er(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Tr(n.key),n)}}function Or(t,e,r){return e&&Sr(t.prototype,e),r&&Sr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tr(t){var e=function(t,e){if("object"!=kr(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kr(e)?e:e+""}function Ar(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.forEach((function(e){Object.keys(e).forEach((function(r){null!=e[r]&&(t[r]=e[r])}))})),t}var jr=function(){function t(e){var r,n;Er(this,t),r=void 0,n={},this.toOptions=function(t){var e={};if(null==t&&(t=!0),Object.keys(n).forEach((function(t){return e[t]=n[t].origValue})),Ar(e,this.otherOptions),t&&!Nt(this.chained)){var r=this.chained.map((function(t){return t.toOptions()}));r.push(e),Ar(e={},this.otherOptions),e.transformation=r}return e},this.setParent=function(t){return r=t,null!=t&&this.fromOptions("function"==typeof t.toOptions?t.toOptions():void 0),this},this.getParent=function(){return r},this.param=function(t,e,r,o,i){return null==i&&(i=V()(o)?o:T.a),n[e]=new dr(e,r,i).set(t),this},this.rawParam=function(t,e,r,o,i){return i=Cr(arguments),n[e]=new gr(e,r,i).set(t),this},this.rangeParam=function(t,e,r,o,i){return i=Cr(arguments),n[e]=new pr(e,r,i).set(t),this},this.arrayParam=function(t,e,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:":";return o=Cr(arguments),n[e]=new fr(e,r,i,o).set(t),this},this.transformationParam=function(t,e,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";return o=Cr(arguments),n[e]=new hr(e,r,i,o).set(t),this},this.layerParam=function(t,e,r){return n[e]=new mr(e,r).set(t),this},this.getValue=function(t){var e=n[t]&&n[t].value();return null!=e?e:this.otherOptions[t]},this.get=function(t){return n[t]},this.remove=function(t){var e;switch(!1){case null==n[t]:return e=n[t],delete n[t],e.origValue;case null==this.otherOptions[t]:return e=this.otherOptions[t],delete this.otherOptions[t],e;default:return null}},this.keys=function(){var t;return function(){var e;for(t in e=[],n)null!=t&&e.push(t.match(Pr)?t:Tt(t));return e}().sort()},this.toPlainObject=function(){var t,e,r;for(e in t={},n)t[e]=n[e].value(),M()(t[e])&&(t[e]=v()(t[e]));return Nt(this.chained)||((r=this.chained.map((function(t){return t.toPlainObject()}))).push(t),t={transformation:r}),t},this.chain=function(){var t;return 0!==Object.getOwnPropertyNames(n).length&&(t=new this.constructor(this.toOptions(!1)),this.resetTransformations(),this.chained.push(t)),this},this.resetTransformations=function(){return n={},this},this.otherOptions={},this.chained=[],this.fromOptions(e)}return Or(t,[{key:"fromOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e instanceof t)this.fromTransformation(e);else for(var r in(I()(e)||C()(e))&&(e={transformation:e}),(e=v()(e,(function(e){if(e instanceof t||e instanceof Layer)return new e.clone}))).if&&(this.set("if",e.if),delete e.if),e){var n=e[r];null!=n&&(r.match(Pr)?"$attr"!==r&&this.set("variable",r,n):this.set(r,n))}return this}},{key:"fromTransformation",value:function(e){var r=this;return e instanceof t&&e.keys().forEach((function(t){return r.set(t,e.get(t).origValue)})),this}},{key:"set",value:function(t){var e;e=Ot(t);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return j()(Mr.methods,e)?this[e].apply(this,n):this.otherOptions[t]=n[0],this}},{key:"hasLayer",value:function(){return this.getValue("overlay")||this.getValue("underlay")}},{key:"serialize",value:function(){var t,e,r,n,o,i,a,s,c,l,u,d,f,h,p,g,m;for(l=this.chained.map((function(t){return t.serialize()})),n=this.keys(),h=null!=(o=this.get("transformation"))?o.serialize():void 0,t=null!=(i=this.get("if"))?i.serialize():void 0,g=function(t){var e,r,n,o,i;if(C()(t)){for(o=[],e=0,r=t.length;e<r;e++){var a=xr(t[e],2);n=a[0],i=a[1],o.push("".concat(n,"_").concat(le.normalize(i)))}return o}return t}(null!=(a=this.get("variables"))?a.value():void 0),n=k()(n,["transformation","if","variables"]),m=[],d=[],e=0,r=n.length;e<r;e++)(u=n[e]).match(Pr)?m.push(u+"_"+le.normalize(null!=(s=this.get(u))?s.value():void 0)):d.push(null!=(c=this.get(u))?c.serialize():void 0);switch(!1){case!I()(h):d.push(h);break;case!C()(h):l=l.concat(h)}return d=function(){var t,e,r;for(r=[],t=0,e=d.length;t<e;t++)p=d[t],(C()(p)&&!Nt(p)||!C()(p)&&p)&&r.push(p);return r}(),d=m.sort().concat(g).concat(d.sort()),"if_end"===t?d.push(t):Nt(t)||d.unshift(t),Nt(f=x()(d).join(this.param_separator))||l.push(f),x()(l).join(this.trans_separator)}},{key:"toHtmlAttributes",value:function(){var t,e,r,n,o,i,a,s,c=this;return r={},Object.keys(this.otherOptions).forEach((function(e){i=c.otherOptions[e],s=Tt(e),j()(Mr.PARAM_NAMES,s)||j()(lt,s)||(t=/^html_/.test(e)?e.slice(5):e,r[t]=i)})),this.keys().forEach((function(t){/^html_/.test(t)&&(r[Ot(t.slice(5))]=c.getValue(t))})),this.hasLayer()||this.getValue("angle")||j()(["fit","limit","lfill"],this.getValue("crop"))||(a=null!=(n=this.get("width"))?n.origValue:void 0,e=null!=(o=this.get("height"))?o.origValue:void 0,parseFloat(a)>=1&&null==r.width&&(r.width=a),parseFloat(e)>=1&&null==r.height&&(r.height=e)),r}},{key:"toHtml",value:function(){var t;return null!=(t=this.getParent())&&"function"==typeof t.toHtml?t.toHtml():void 0}},{key:"toString",value:function(){return this.serialize()}},{key:"clone",value:function(){return new this.constructor(this.toOptions(!0))}}],[{key:"listNames",value:function(){return Mr.methods}},{key:"isValidParamName",value:function(t){return Mr.methods.indexOf(Ot(t))>=0}}])}(),Pr=/^\$[a-zA-Z0-9]+$/;function Cr(t){var e;return e=null!=t?t[t.length-1]:void 0,V()(e)?e:void 0}function Dr(t){var e=t.function_type,r=t.source;return"remote"===e?[e,btoa(r)].join(":"):"wasm"===e?[e,r].join(":"):void 0}jr.prototype.trans_separator="/",jr.prototype.param_separator=",";var Mr=function(t){function e(t){return Er(this,e),br(this,e,[t])}return function(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&&wr(t,e)}(e,t),Or(e,[{key:"angle",value:function(t){return this.arrayParam(t,"angle","a",".",le.normalize)}},{key:"audioCodec",value:function(t){return this.param(t,"audio_codec","ac")}},{key:"audioFrequency",value:function(t){return this.param(t,"audio_frequency","af")}},{key:"aspectRatio",value:function(t){return this.param(t,"aspect_ratio","ar",le.normalize)}},{key:"background",value:function(t){return this.param(t,"background","b",dr.norm_color)}},{key:"bitRate",value:function(t){return this.param(t,"bit_rate","br")}},{key:"border",value:function(t){return this.param(t,"border","bo",(function(t){return M()(t)?(t=b()({},{color:"black",width:2},t),"".concat(t.width,"px_solid_").concat(dr.norm_color(t.color))):t}))}},{key:"color",value:function(t){return this.param(t,"color","co",dr.norm_color)}},{key:"colorSpace",value:function(t){return this.param(t,"color_space","cs")}},{key:"crop",value:function(t){return this.param(t,"crop","c")}},{key:"customFunction",value:function(t){return this.param(t,"custom_function","fn",(function(){return Dr(t)}))}},{key:"customPreFunction",value:function(t){if(!this.get("custom_function"))return this.rawParam(t,"custom_function","",(function(){return(t=Dr(t))?"fn_pre:".concat(t):t}))}},{key:"defaultImage",value:function(t){return this.param(t,"default_image","d")}},{key:"delay",value:function(t){return this.param(t,"delay","dl")}},{key:"density",value:function(t){return this.param(t,"density","dn")}},{key:"duration",value:function(t){return this.rangeParam(t,"duration","du")}},{key:"dpr",value:function(t){return this.param(t,"dpr","dpr",(function(t){return(null!=(t=t.toString())?t.match(/^\d+$/):void 0)?t+".0":le.normalize(t)}))}},{key:"effect",value:function(t){return this.arrayParam(t,"effect","e",":",le.normalize)}},{key:"else",value:function(){return this.if("else")}},{key:"endIf",value:function(){return this.if("end")}},{key:"endOffset",value:function(t){return this.rangeParam(t,"end_offset","eo")}},{key:"fallbackContent",value:function(t){return this.param(t,"fallback_content")}},{key:"fetchFormat",value:function(t){return this.param(t,"fetch_format","f")}},{key:"format",value:function(t){return this.param(t,"format")}},{key:"flags",value:function(t){return this.arrayParam(t,"flags","fl",".")}},{key:"gravity",value:function(t){return this.param(t,"gravity","g")}},{key:"fps",value:function(t){return this.param(t,"fps","fps",(function(t){return I()(t)?t:C()(t)?t.join("-"):t}))}},{key:"height",value:function(t){var e=this;return this.param(t,"height","h",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?le.normalize(t):null}))}},{key:"htmlHeight",value:function(t){return this.param(t,"html_height")}},{key:"htmlWidth",value:function(t){return this.param(t,"html_width")}},{key:"if",value:function(){var t,r,n,o,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(a){case"else":return this.chain(),this.param(a,"if","if");case"end":for(this.chain(),t=n=this.chained.length-1;n>=0&&"end"!==(r=this.chained[t].getValue("if"))&&(null==r||(o=e.new().if(r),this.chained[t].remove("if"),i=this.chained[t],this.chained[t]=e.new().transformation([o,i]),"else"===r));t=n+=-1);return this.param(a,"if","if");case"":return be.new().setParent(this);default:return this.param(a,"if","if",(function(t){return be.new(t).toString()}))}}},{key:"keyframeInterval",value:function(t){return this.param(t,"keyframe_interval","ki")}},{key:"ocr",value:function(t){return this.param(t,"ocr","ocr")}},{key:"offset",value:function(t){var e,r,n=xr(V()(null!=t?t.split:void 0)?t.split(".."):C()(t)?t:[null,null],2);if(r=n[0],e=n[1],null!=r&&this.startOffset(r),null!=e)return this.endOffset(e)}},{key:"opacity",value:function(t){return this.param(t,"opacity","o",le.normalize)}},{key:"overlay",value:function(t){return this.layerParam(t,"overlay","l")}},{key:"page",value:function(t){return this.param(t,"page","pg")}},{key:"poster",value:function(t){return this.param(t,"poster")}},{key:"prefix",value:function(t){return this.param(t,"prefix","p")}},{key:"quality",value:function(t){return this.param(t,"quality","q",le.normalize)}},{key:"radius",value:function(t){return this.arrayParam(t,"radius","r",":",le.normalize)}},{key:"rawTransformation",value:function(t){return this.rawParam(t,"raw_transformation")}},{key:"size",value:function(t){var e,r;if(V()(null!=t?t.split:void 0)){var n=xr(t.split("x"),2);return r=n[0],e=n[1],this.width(r),this.height(e)}}},{key:"sourceTypes",value:function(t){return this.param(t,"source_types")}},{key:"sourceTransformation",value:function(t){return this.param(t,"source_transformation")}},{key:"startOffset",value:function(t){return this.rangeParam(t,"start_offset","so")}},{key:"streamingProfile",value:function(t){return this.param(t,"streaming_profile","sp")}},{key:"transformation",value:function(t){return this.transformationParam(t,"transformation","t")}},{key:"underlay",value:function(t){return this.layerParam(t,"underlay","u")}},{key:"variable",value:function(t,e){return this.param(e,t,t)}},{key:"variables",value:function(t){return this.arrayParam(t,"variables")}},{key:"videoCodec",value:function(t){return this.param(t,"video_codec","vc",dr.process_video_params)}},{key:"videoSampling",value:function(t){return this.param(t,"video_sampling","vs")}},{key:"width",value:function(t){var e=this;return this.param(t,"width","w",(function(){return e.getValue("crop")||e.getValue("overlay")||e.getValue("underlay")?le.normalize(t):null}))}},{key:"x",value:function(t){return this.param(t,"x","x",le.normalize)}},{key:"y",value:function(t){return this.param(t,"y","y",le.normalize)}},{key:"zoom",value:function(t){return this.param(t,"zoom","z",le.normalize)}}],[{key:"new",value:function(t){return new e(t)}}])}(jr);Mr.methods=["angle","audioCodec","audioFrequency","aspectRatio","background","bitRate","border","color","colorSpace","crop","customFunction","customPreFunction","defaultImage","delay","density","duration","dpr","effect","else","endIf","endOffset","fallbackContent","fetchFormat","format","flags","gravity","fps","height","htmlHeight","htmlWidth","if","keyframeInterval","ocr","offset","opacity","overlay","page","poster","prefix","quality","radius","rawTransformation","size","sourceTypes","sourceTransformation","startOffset","streamingProfile","transformation","underlay","variable","variables","videoCodec","videoSampling","width","x","y","zoom"],Mr.PARAM_NAMES=Mr.methods.map(Tt).concat(Se.CONFIG_PARAMS);var Rr=Mr;function Ir(t){return Ir="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},Ir(t)}function Nr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fr(n.key),n)}}function Fr(t){var e=function(t,e){if("object"!=Ir(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ir(e)?e:e+""}function zr(t,e){return e?!0===e?t:"".concat(t,'="').concat(e,'"'):void 0}function Lr(t){return I()(t)?t.replace('"',""").replace("'","'"):t}var Br=function(){return t=function t(e,r,n){var o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.publicId=r,null==n&&(M()(r)?(n=r,this.publicId=void 0):n={}),(o=new Rr(n)).setParent(this),this.transformation=function(){return o}},r=[{key:"new",value:function(t,e,r){return new this(t,e,r)}},{key:"isResponsive",value:function(t,e){var r;return r=$t(t,"src-cache")||$t(t,"src"),qt(t,e)&&/\bw_auto\b/.exec(r)}}],(e=[{key:"htmlAttrs",value:function(t){var e,r;return function(){var n;for(e in n=[],t)(r=Lr(t[e]))&&n.push(zr(e,r));return n}().sort().join(" ")}},{key:"getOptions",value:function(){return this.transformation().toOptions()}},{key:"getOption",value:function(t){return this.transformation().getValue(t)}},{key:"attributes",value:function(){var t=this.transformation().toHtmlAttributes();return Object.keys(t).forEach((function(e){M()(t[e])&&delete t[e]})),t.attributes&&(F()(t,t.attributes),delete t.attributes),t}},{key:"setAttr",value:function(t,e){return this.transformation().set("html_".concat(t),e),this}},{key:"getAttr",value:function(t){return this.attributes()["html_".concat(t)]||this.attributes()[t]}},{key:"removeAttr",value:function(t){var e;return null!=(e=this.transformation().remove("html_".concat(t)))?e:this.transformation().remove(t)}},{key:"content",value:function(){return""}},{key:"openTag",value:function(){var t="<"+this.name,e=this.htmlAttrs(this.attributes());return e&&e.length>0&&(t+=" "+e),t+">"}},{key:"closeTag",value:function(){return"</".concat(this.name,">")}},{key:"toHtml",value:function(){return this.openTag()+this.content()+this.closeTag()}},{key:"toDOM",value:function(){var t,e,r,n;if(!V()("undefined"!=typeof document&&null!==document?document.createElement:void 0))throw"Can't create DOM if document is not present!";for(e in t=document.createElement(this.name),r=this.attributes())n=r[e],t.setAttribute(e,n);return t}}])&&Nr(t.prototype,e),r&&Nr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}(),Vr=["placeholder","accessibility"];function $r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Hr(t){return!!t&&!!t.match(/^https?:\//)}function Ur(t,e){if(e.cloud_name&&"/"===e.cloud_name[0])return"/res"+e.cloud_name;var r="http://",n="",o="res",i=".cloudinary.com",s="/"+e.cloud_name;return e.protocol&&(r=e.protocol+"//"),e.private_cdn&&(n=e.cloud_name+"-",s=""),e.cdn_subdomain&&(o="res-"+function(t){return a(t)%5+1}(t)),e.secure?(r="https://",!1===e.secure_cdn_subdomain&&(o="res"),null!=e.secure_distribution&&e.secure_distribution!==G&&e.secure_distribution!==Q&&(n="",o="",i=e.secure_distribution)):e.cname&&(r="http://",n="",o=e.cdn_subdomain?"a"+(a(t)%5+1)+".":"",i=e.cname),[r,n,o,i,s].join("")}function Wr(t){return encodeURIComponent(t).replace(/%3A/g,":").replace(/%2F/g,"/")}function Yr(t,e){var r,n,o=e.type;return Hr(t)||"fetch"!==o?t:(r=t,n=document.location.protocol+"//"+document.location.host,"?"===r[0]?n+=document.location.pathname:"/"!==r[0]&&(n+=document.location.pathname.replace(/\/[^\/]*$/,"/")),n+r)}function Xr(t,e){if(Hr(t)&&("upload"===e.type||"asset"===e.type))return t;var r=function(t,e){var r=e.force_version||void 0===e.force_version,n=t.indexOf("/")<0||t.match(/^v[0-9]+/)||Hr(t)||e.version;return r&&!n&&(e.version=1),e.version?"v".concat(e.version):""}(t,e),n=function(t){var e=t||{},r=e.placeholder,n=e.accessibility,o=$r(e,Vr),i=new Rr(o);return n&&ct[n]&&i.chain().effect(ct[n]),r&&("predominant-color"===r&&i.getValue("width")&&i.getValue("height")&&(r+="-pixel"),(st[r]||st.blur).forEach((function(t){return i.chain().transformation(t)}))),i.serialize()}(e),o=Ur(t,e),i=function(t){var e=t.signature,r=!e||0===e.indexOf("s--")&&"--"===e.substr(-2);return delete t.signature,r?e:"s--".concat(e,"--")}(e),a=function(t){var e,r=t.resource_type,n=void 0===r?"image":r,o=t.type,i=void 0===o?"upload":o,a=t.url_suffix,s=t.use_root_path,c=t.shorten,l=n;if(M()(l)&&(l=(e=l).resource_type,i=e.type,c=e.shorten),null==i&&(i="upload"),null!=a&&(l=rt["".concat(l,"/").concat(i)],i=null,null==l))throw new Error("URL Suffix only supported for ".concat(Object.keys(rt).join(", ")));if(s){if(("image"!==l||"upload"!==i)&&"images"!==l)throw new Error("Root path only supported for image/upload");l=null,i=null}return c&&"image"===l&&"upload"===i&&(l="iu",i=null),[l,i].join("/")}(e);return t=function(t,e){if(Hr(t))t=Wr(t);else{try{t=decodeURIComponent(t)}catch(t){}t=Wr(t),e.url_suffix&&(t=t+"/"+e.url_suffix),e.format&&(e.trust_public_id||(t=t.replace(/\.(jpg|png|gif|webp)$/,"")),t=t+"."+e.format)}return t}(t,e),x()([o,a,i,n,r,t]).join("/").replace(/([^:])\/+/g,"$1/").replace(" ","%20")}function qr(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return t;e=function(t,e){return t instanceof Rr&&(t=t.toOptions()),"fetch"===(t=vt({},t,e,nt)).type&&(t.fetch_format=t.fetch_format||t.format),t}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),t=Yr(t,e);var r=function(t){var e=t.cloud_name,r=t.url_suffix;return e?r&&r.match(/[\.\/]/)?"url_suffix should not include . or /":void 0:"Unknown cloud_name"}(e);if(r)throw r;var n=Xr(t,e);if(e.urlAnalytics){var o=p(g(e)),i="?";n.indexOf("?")>=0&&(i="&"),n="".concat(n).concat(i,"_a=").concat(o)}if(e.auth_token){var a=n.indexOf("?")>=0?"&":"?";n="".concat(n).concat(a,"__cld_token__=").concat(e.auth_token)}return n}function Kr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Gr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gr(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 Gr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zr=Nt;function Qr(t){return function(t){var e=t.breakpoints||[];if(e.length)return e;var r=Kr([t.min_width,t.max_width,t.max_images].map(Number),3),n=r[0],o=r[1],i=r[2];if([n,o,i].some(isNaN))throw"Either (min_width, max_width, max_images) or breakpoints must be provided to the image srcset attribute";if(n>o)throw"min_width must be less than max_width";if(i<=0)throw"max_images must be a positive integer";1===i&&(n=o);for(var a=Math.ceil((o-n)/Math.max(i-1,1)),s=n;s<o;s+=a)e.push(s);return e.push(o),e}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Jr(t,e,r,n){return Rt(n=v.a(n)),e.map((function(e){return"".concat(function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=Mt(n);return r=r||n,o.raw_transformation=new Rr([F.a({},r),{crop:"scale",width:e}]).toString(),qr(t,o)}(t,e,r,n)," ").concat(e,"w")})).join(", ")}function tn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={};if(Zr(r))return o;var i=!e.sizes&&!0===r.sizes,a=!e.srcset;if(a||i){var s=Qr(t,r,n);if(a){var c=Jr(t,s,r.transformation,n);Zr(c)||(o.srcset=c)}if(i){var l=function(t){return null==t?"":t.map((function(t){return"(max-width: ".concat(t,"px) ").concat(t,"px")})).join(", ")}(s);Zr(l)||(o.sizes=l)}}return o}function en(t){return en="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},en(t)}function rn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nn(n.key),n)}}function nn(t){var e=function(t,e){if("object"!=en(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==en(e)?e:e+""}function on(t,e,r){return e=cn(e),function(t,e){if(e&&("object"===en(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,an()?Reflect.construct(e,r||[],cn(t).constructor):e.apply(t,r))}function an(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(an=function(){return!!t})()}function sn(){return sn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cn(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},sn.apply(this,arguments)}function cn(t){return cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cn(t)}function ln(t,e){return ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ln(t,e)}var un=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),on(this,e,["img",t,r])}return function(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&&ln(t,e)}(e,t),r=e,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t,r,n;t=sn(cn(e.prototype),"attributes",this).call(this)||{},r=this.getOptions();var o=this.getOption("attributes")||{},i=this.getOption("srcset")||o.srcset,a={};return I()(i)?a.srcset=i:a=tn(this.publicId,o,i,r),Nt(a)||(delete t.width,delete t.height),F()(t,a),null==t[n=r.responsive&&!r.client_hints?"data-src":"src"]&&(t[n]=qr(this.publicId,this.getOptions())),t}}])&&rn(r.prototype,n),o&&rn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),dn=un;function fn(t){return fn="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},fn(t)}function hn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pn(n.key),n)}}function pn(t){var e=function(t,e){if("object"!=fn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=fn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==fn(e)?e:e+""}function gn(t,e,r){return e=yn(e),function(t,e){if(e&&("object"===fn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,mn()?Reflect.construct(e,r||[],yn(t).constructor):e.apply(t,r))}function mn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(mn=function(){return!!t})()}function bn(){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=yn(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},bn.apply(this,arguments)}function yn(t){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yn(t)}function vn(t,e){return vn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vn(t,e)}var wn=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gn(this,e,["source",t,r])}return function(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&&vn(t,e)}(e,t),r=e,(n=[{key:"closeTag",value:function(){return""}},{key:"attributes",value:function(){var t=this.getOption("srcset"),r=bn(yn(e.prototype),"attributes",this).call(this)||{},n=this.getOptions();return F()(r,tn(this.publicId,r,t,n)),r.srcset||(r.srcset=qr(this.publicId,n)),!r.media&&n.media&&(r.media=function(t){var e=[];return null!=t&&(null!=t.min_width&&e.push("(min-width: ".concat(t.min_width,"px)")),null!=t.max_width&&e.push("(max-width: ".concat(t.max_width,"px)"))),e.join(" and ")}(n.media)),r}}])&&hn(r.prototype,n),o&&hn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),xn=wn;function _n(t){return _n="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},_n(t)}function kn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,En(n.key),n)}}function En(t){var e=function(t,e){if("object"!=_n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==_n(e)?e:e+""}function Sn(t,e,r){return e=An(e),function(t,e){if(e&&("object"===_n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,On()?Reflect.construct(e,r||[],An(t).constructor):e.apply(t,r))}function On(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(On=function(){return!!t})()}function Tn(){return Tn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=An(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Tn.apply(this,arguments)}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},An(t)}function jn(t,e){return jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jn(t,e)}var Pn=function(t){function e(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=Sn(this,e,["picture",t,n])).widthList=o,r}return function(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&&jn(t,e)}(e,t),r=e,(n=[{key:"content",value:function(){var t=this;return this.widthList.map((function(e){var r=e.min_width,n=e.max_width,o=e.transformation,i=t.getOptions(),a=new Rr(i);return a.chain().fromOptions("string"==typeof o?{raw_transformation:o}:o),(i=Mt(i)).media={min_width:r,max_width:n},i.transformation=a,new xn(t.publicId,i).toHtml()})).join("")+new dn(this.publicId,this.getOptions()).toHtml()}},{key:"attributes",value:function(){var t=Tn(An(e.prototype),"attributes",this).call(this);return delete t.width,delete t.height,t}},{key:"closeTag",value:function(){return"</"+this.name+">"}}])&&kn(r.prototype,n),o&&kn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),Cn=Pn;function Dn(t){return Dn="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},Dn(t)}function Mn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rn(n.key),n)}}function Rn(t){var e=function(t,e){if("object"!=Dn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dn(e)?e:e+""}function In(t,e,r){return e=zn(e),function(t,e){if(e&&("object"===Dn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Nn()?Reflect.construct(e,r||[],zn(t).constructor):e.apply(t,r))}function Nn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Nn=function(){return!!t})()}function Fn(){return Fn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=zn(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Fn.apply(this,arguments)}function zn(t){return zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zn(t)}function Ln(t,e){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ln(t,e)}var Bn=["source_types","source_transformation","fallback_content","poster","sources"],Vn=["webm","mp4","ogv"],$n={format:"jpg",resource_type:"video"},Hn=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),r=vt({},r,ot),In(this,e,["video",t.replace(/\.(mp4|ogv|webm)$/,""),r])}return function(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&&Ln(t,e)}(e,t),r=e,n=[{key:"setSourceTransformation",value:function(t){return this.transformation().sourceTransformation(t),this}},{key:"setSourceTypes",value:function(t){return this.transformation().sourceTypes(t),this}},{key:"setPoster",value:function(t){return this.transformation().poster(t),this}},{key:"setFallbackContent",value:function(t){return this.transformation().fallbackContent(t),this}},{key:"content",value:function(){var t=this,e=this.transformation().getValue("source_types"),r=this.transformation().getValue("source_transformation"),n=this.transformation().getValue("fallback_content"),o=this.getOption("sources"),i=[];return C()(o)&&!Nt(o)?i=o.map((function(e){var r=qr(t.publicId,vt({},e.transformations||{},{resource_type:"video",format:e.type}),t.getOptions());return t.createSourceTag(r,e.type,e.codecs)})):(Nt(e)&&(e=Vn),C()(e)&&(i=e.map((function(e){var n=qr(t.publicId,vt({},r[e]||{},{resource_type:"video",format:e}),t.getOptions());return t.createSourceTag(n,e)})))),i.join("")+n}},{key:"attributes",value:function(){var t=this.getOption("source_types"),r=this.getOption("poster");if(void 0===r&&(r={}),M()(r)){var n=null!=r.public_id?nt:$n;r=qr(r.public_id||this.publicId,vt({},r,n,this.getOptions()))}var o=Fn(zn(e.prototype),"attributes",this).call(this)||{};return o=dt(o,Bn),!Nt(this.getOption("sources"))||Nt(t)||C()(t)||(o.src=qr(this.publicId,this.getOptions(),{resource_type:"video",format:t})),null!=r&&(o.poster=r),o}},{key:"createSourceTag",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return Nt(e)||(n="video/"+("ogv"===e?"ogg":e),Nt(r)||(n+="; codecs="+(C()(r)?r.join(", "):r))),"<source "+this.htmlAttrs({src:t,type:n})+">"}}],n&&Mn(r.prototype,n),o&&Mn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br),Un=Hn;function Wn(t){return Wn="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},Wn(t)}function Yn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xn(n.key),n)}}function Xn(t){var e=function(t,e){if("object"!=Wn(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wn(e)?e:e+""}function qn(t,e,r){return e=Gn(e),function(t,e){if(e&&("object"===Wn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Kn()?Reflect.construct(e,r||[],Gn(t).constructor):e.apply(t,r))}function Kn(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Kn=function(){return!!t})()}function Gn(t){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gn(t)}function Zn(t,e){return Zn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zn(t,e)}var Qn=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),qn(this,e,["meta",void 0,b()({"http-equiv":"Accept-CH",content:"DPR, Viewport-Width, Width"},t)])}return function(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&&Zn(t,e)}(e,t),r=e,(n=[{key:"closeTag",value:function(){return""}}])&&Yn(r.prototype,n),o&&Yn(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n,o}(Br);function Jn(t){return function(t){if(Array.isArray(t))return to(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return to(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?to(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var eo=function(t,e,r,n){return new Promise((function(o,i){t.innerHTML=e.videoTag(r,n).toHtml(),t.querySelector(".cld-transparent-video").style.width="100%",o(t)}))},ro=function(t,e){t.transformation?t.transformation.push({flags:[e]}):(t.flags||(t.flags=[]),"string"==typeof t.flags&&(t.flags=[t.flags]),t.flags.push(e))},no=function(t){t.autoplay=!0,t.muted=!0,t.controls=!1,t.max_timeout_ms=t.max_timeout_ms||J,t.class=t.class||"",t.class+=" cld-transparent-video",t.externalLibraries=t.externalLibraries||{},t.externalLibraries.seeThru||(t.externalLibraries.seeThru=at.seeThru),ro(t,"alpha")},oo=function(t,e,r){return new Promise((function(n,o){if(r)n();else{var i=document.createElement("script");i.src=t;var a=setTimeout((function(){o({status:"error",message:"Timeout loading script ".concat(t)})}),e);i.onerror=function(){clearTimeout(a),o({status:"error",message:"Error loading ".concat(t)})},i.onload=function(){clearTimeout(a),n()},document.head.appendChild(i)}}))};function io(t){return new Promise((function(e,r){fetch(t).then((function(t){t.blob().then((function(t){e(t)}))})).catch((function(){r("error")}))}))}function ao(t){return new Promise((function(e,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(t){e(n.response)},n.onerror=function(){r("error")},n.open("GET",t,!0),n.send()}))}var so,co,lo,uo,fo,ho,po=function(t,e){return new Promise((function(r,n){var o=function(t,e){return setTimeout((function(){e({status:"error",message:"Timeout loading Blob URL"})}),t)}(e,n);("undefined"!=typeof fetch&&fetch?io:ao)(t).then((function(t){r({status:"success",payload:{blobURL:URL.createObjectURL(t)}})})).catch((function(){n({status:"error",message:"Error loading Blob URL"})})).finally((function(){clearTimeout(o)}))}))},go=function(t){var e=t.autoplay,r=t.playsinline,n=t.loop,o=t.muted,i=t.poster,a=t.blobURL,s=t.videoURL,c=document.createElement("video");return c.style.visibility="hidden",c.position="absolute",c.x=0,c.y=0,c.src=a,c.setAttribute("data-video-url",s),e&&c.setAttribute("autoplay",e),r&&c.setAttribute("playsinline",r),n&&c.setAttribute("loop",n),o&&c.setAttribute("muted",o),o&&(c.muted=o),i&&c.setAttribute("poster",i),c.onload=function(){URL.revokeObjectURL(a)},c},mo=function(t,e,r,n){var o=window,i=o.seeThru,a=o.setTimeout,s=o.clearTimeout;return new Promise((function(o,c){var l=a((function(){c({status:"error",message:"Timeout instantiating seeThru instance"})}),e);if(i)var u=i.create(t).ready((function(){s(l);var t=u.getCanvas();t.style.width="100%",t.className+=" "+r,n&&u.play(),o(u)}));else c({status:"error",message:"Error instantiating seeThru instance"})}))},bo=function(t,e,r){var n=r.poster,o=r.autoplay,i=r.playsinline,a=r.loop,s=r.muted;return e+=".mp4",new Promise((function(c,l){oo(r.externalLibraries.seeThru,r.max_timeout_ms,window.seeThru).then((function(){po(e,r.max_timeout_ms).then((function(u){var d=u.payload,f=go({blobURL:d.blobURL,videoURL:e,poster:n,autoplay:o,playsinline:i,loop:a,muted:s});t.appendChild(f),mo(f,r.max_timeout_ms,r.class,r.autoplay).then((function(){c(t)})).catch((function(t){l(t)}))})).catch((function(t){var e=t.status,r=t.message;l({status:e,message:r})}))})).catch((function(t){var e=t.status,r=t.message;l({status:e,message:r})}))}))},yo=function(){return new Promise((function(t,e){Vt()&&t(!1);var r=document.createElement("video"),n=r.canPlayType&&r.canPlayType('video/webm; codecs="vp9"');t("maybe"===n||"probably"===n)}))};function vo(t){return vo="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},vo(t)}function wo(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,xo(n.key),n)}}function xo(t){var e=function(t,e){if("object"!=vo(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vo(e)?e:e+""}lo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e*Math.ceil(t/e)},co=function(t,e){var r;for(r=t.length-2;r>=0&&t[r]>=e;)r--;return t[r+1]},so=function(t,e,r,n){var o,i,a,s;return!(s=null!=(o=null!=(i=null!=(a=n.responsive_use_breakpoints)?a:n.responsive_use_stoppoints)?i:this.config("responsive_use_breakpoints"))?o:this.config("responsive_use_stoppoints"))||"resize"===s&&!n.resizing?e:this.calc_breakpoint(t,e,r)},uo=function(t){var e,r;for(e=0;(t=null!=t?t.parentNode:void 0)instanceof Element&&!e;)r=window.getComputedStyle(t),/^inline/.test(r.display)||(e=oe(t));return e},ho=function(t,e){return t.replace(/\bdpr_(1\.0|auto)\b/g,"dpr_"+this.device_pixel_ratio(e))},fo=function(t,e){var r;return t>(r=$t(e,"width")||0)&&(r=t,Ht(e,"width",t)),r};var _o=function(){return t=function t(e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.devicePixelRatioCache={},this.responsiveConfig={},this.responsiveResizeInitialized=!1,r=new Se(e),this.config=function(t,e){return r.config(t,e)},this.fromDocument=function(){return r.fromDocument(),this},this.fromEnvironment=function(){return r.fromEnvironment(),this},this.init=function(){return r.init(),this}},e=[{key:"url",value:function(t){return qr(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this.config())}},{key:"video_url",value:function(t,e){return e=b()({resource_type:"video"},e),this.url(t,e)}},{key:"video_thumbnail_url",value:function(t,e){return e=b()({},tt,e),this.url(t,e)}},{key:"transformation_string",value:function(t){return new Rr(t).serialize()}},{key:"image",value:function(t){var e,r,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=this.imageTag(t,o),e=null!=(n=null!=o.client_hints?o.client_hints:this.config("client_hints"))&&n,null!=o.src||e||r.setAttr("src",""),r=r.toDOM(),e||(Ht(r,"src-cache",this.url(t,o)),this.cloudinary_update(r,o)),r}},{key:"imageTag",value:function(t,e){var r;return(r=new dn(t,this.config())).transformation().fromOptions(e),r}},{key:"pictureTag",value:function(t,e,r){var n;return(n=new Cn(t,this.config(),r)).transformation().fromOptions(e),n}},{key:"sourceTag",value:function(t,e){var r;return(r=new xn(t,this.config())).transformation().fromOptions(e),r}},{key:"video_thumbnail",value:function(t,e){return this.image(t,F()({},tt,e))}},{key:"facebook_profile_image",value:function(t,e){return this.image(t,b()({type:"facebook"},e))}},{key:"twitter_profile_image",value:function(t,e){return this.image(t,b()({type:"twitter"},e))}},{key:"twitter_name_profile_image",value:function(t,e){return this.image(t,b()({type:"twitter_name"},e))}},{key:"gravatar_image",value:function(t,e){return this.image(t,b()({type:"gravatar"},e))}},{key:"fetch_image",value:function(t,e){return this.image(t,b()({type:"fetch"},e))}},{key:"video",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.videoTag(t,e).toHtml()}},{key:"videoTag",value:function(t,e){return e=vt({},e,this.config()),new Un(t,e)}},{key:"sprite_css",value:function(t,e){return e=b()({type:"sprite"},e),t.match(/.css$/)||(e.format="css"),this.url(t,e)}},{key:"responsive",value:function(t){var e,r,n,o,i,a=this,s=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.responsiveConfig=F()(this.responsiveConfig||{},t),o=null!=(e=this.responsiveConfig.responsive_class)?e:this.config("responsive_class"),s&&this.cloudinary_update("img.".concat(o,", img.cld-hidpi"),this.responsiveConfig),(null==(r=null!=(n=this.responsiveConfig.responsive_resize)?n:this.config("responsive_resize"))||r)&&!this.responsiveResizeInitialized){this.responsiveConfig.resizing=this.responsiveResizeInitialized=!0,i=null;var c=function(){var t,e,r,n,s,c;return t=null!=(e=null!=(r=a.responsiveConfig.responsive_debounce)?r:a.config("responsive_debounce"))?e:100,n=function(){i&&(clearTimeout(i),i=null)},s=function(){return a.cloudinary_update("img.".concat(o),a.responsiveConfig)},c=function(){return n(),s()},t?(n(),void(i=setTimeout(c,t))):s()};return window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}}},{key:"calc_breakpoint",value:function(t,e,r){var n=$t(t,"breakpoints")||$t(t,"stoppoints")||this.config("breakpoints")||this.config("stoppoints")||lo;return V()(n)?n(e,r):(I()(n)&&(n=n.split(",").map((function(t){return parseInt(t)})).sort((function(t,e){return t-e}))),co(n,e))}},{key:"calc_stoppoint",value:function(t,e,r){return this.calc_breakpoint(t,e,r)}},{key:"device_pixel_ratio",value:function(t){t=null==t||t;var e=("undefined"!=typeof window&&null!==window?window.devicePixelRatio:void 0)||1;t&&(e=Math.ceil(e)),(e<=0||NaN===e)&&(e=1);var r=e.toString();return r.match(/^\d+$/)&&(r+=".0"),r}},{key:"processImageTags",value:function(t,e){if(Nt(t))return this;e=vt({},e||{},this.config());var r=t.filter((function(t){return/^img$/i.test(t.tagName)})).map((function(t){var r=b()({width:t.getAttribute("width"),height:t.getAttribute("height"),src:t.getAttribute("src")},e),n=r.source||r.src;delete r.source,delete r.src;var o=new Rr(r).toHtmlAttributes();return Ht(t,"src-cache",qr(n,r)),t.setAttribute("width",o.width),t.setAttribute("height",o.height),t}));return this.cloudinary_update(r,e),this}},{key:"cloudinary_update",value:function(t,e){var r,n,o,i,a=this;if(null===t)return this;null==e&&(e={});var s,c=null!=e.responsive?e.responsive:this.config("responsive");t=function(t){return C()(t)?t:"NodeList"===t.constructor.name?Jn(t):I()(t)?Array.prototype.slice.call(document.querySelectorAll(t),0):[t]}(t),s=this.responsiveConfig&&null!=this.responsiveConfig.responsive_class?this.responsiveConfig.responsive_class:null!=e.responsive_class?e.responsive_class:this.config("responsive_class");var l=null!=e.round_dpr?e.round_dpr:this.config("round_dpr");return t.forEach((function(u){if(/img/i.test(u.tagName)){var d=!0;if(c&&Kt(u,s),!Nt(n=$t(u,"src-cache")||$t(u,"src"))){n=ho.call(a,n,l),Br.isResponsive(u,s)&&(0!==(r=uo(u))?(/w_auto:breakpoints/.test(n)?(i=fo(r,u))?n=n.replace(/w_auto:breakpoints([_0-9]*)(:[0-9]+)?/,"w_auto:breakpoints$1:".concat(i)):d=!1:(o=/w_auto(:(\d+))?/.exec(n))&&(i=so.call(a,u,r,o[2],e),(i=fo(i,u))?n=n.replace(/w_auto[^,\/]*/g,"w_".concat(i)):d=!1),Yt(u,"width"),e.responsive_preserve_height||Yt(u,"height")):d=!1);var f="lazy"===e.loading&&!a.isNativeLazyLoadSupported()&&a.isLazyLoadSupported()&&!t[0].getAttribute("src");(d||f)&&a.setAttributeIfExists(t[0],"width","data-width"),d&&!f&&Wt(u,"src",n)}}})),this}},{key:"setAttributeIfExists",value:function(t,e,r){var n=t.getAttribute(r);null!=n&&Wt(t,e,n)}},{key:"isLazyLoadSupported",value:function(){return window&&"IntersectionObserver"in window}},{key:"isNativeLazyLoadSupported",value:function(){return"loading"in HTMLImageElement.prototype}},{key:"transformation",value:function(t){return Rr.new(this.config()).fromOptions(t).setParent(this)}},{key:"injectTransparentVideoElement",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(o,i){t||i({status:"error",message:"Expecting htmlElContainer to be HTMLElement"}),no(n);var a=r.video_url(e,n);yo().then((function(s){var c;s?(c=eo(t,r,e,n),o(t)):c=bo(t,a,n),c.then((function(){o(t)})).catch((function(t){var e=t.status,r=t.message;i({status:e,message:r})}))})).catch((function(t){var e=t.status,r=t.message;i({status:e,message:r})}))}))}}],r=[{key:"new",value:function(t){return new this(t)}}],e&&wo(t.prototype,e),r&&wo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();b()(_o,n);var ko=_o;e.default={ClientHintsMetaTag:Qn,Cloudinary:ko,Condition:be,Configuration:Se,crc32:a,Expression:le,FetchLayer:Je,HtmlTag:Br,ImageTag:dn,Layer:je,PictureTag:Cn,SubtitlesLayer:We,TextLayer:Fe,Transformation:Rr,utf8_encode:i,Util:o,VideoTag:Un}},"lodash/assign":function(e,r){e.exports=t},"lodash/cloneDeep":function(t,r){t.exports=e},"lodash/compact":function(t,e){t.exports=r},"lodash/difference":function(t,e){t.exports=n},"lodash/functions":function(t,e){t.exports=o},"lodash/identity":function(t,e){t.exports=i},"lodash/includes":function(t,e){t.exports=a},"lodash/isArray":function(t,e){t.exports=s},"lodash/isElement":function(t,e){t.exports=c},"lodash/isFunction":function(t,e){t.exports=l},"lodash/isPlainObject":function(t,e){t.exports=u},"lodash/isString":function(t,e){t.exports=d},"lodash/merge":function(t,e){t.exports=f},"lodash/trim":function(t,e){t.exports=h}})},t.exports=r(zc,Mu,Ru,Ju,ed,Ks,vd,xc,Od,Ts,Sd,rd,Md,af)}));function cf(){return cf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},cf.apply(this,arguments)}function lf(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,uf(t,e)}function uf(t,e){return uf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},uf(t,e)}function df(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}var ff=["public_id"],hf=["publicId"],pf=["children"],gf=["children","accessibility","placeholder"],mf=sf.Util.camelCase,bf=sf.Util.withCamelCaseKeys,yf=sf.Util.isEmpty,vf=["accessibility","breakpoints","dataSrc","placeholder","publicId","signature","authToken"],wf={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg"},xf=[].concat(sf.Transformation.PARAM_NAMES,vf).map(sf.Util.camelCase).reduce((function(t,e){return t[e]=!0,t}),{}),_f=function(t){var e,r=(e=t,Object.entries(e).reduce((function(t,e){var r,n=e[0],o=e[1];return null==o?t:cf({},t,((r={})[n]=o,r))}),{})),n=df(r,ff),o=sf.Util.withSnakeCaseKeys(n);return sf.Cloudinary.new(o)},kf=function(t){return function(t,e){var r=t.publicId,n=df(t,hf);return _f(n)[e+"Tag"](r,sf.Util.withSnakeCaseKeys(n))}(t,"image")},Ef=function(t,e){var r=sf.Util.withSnakeCaseKeys(e),n=_f(r);return n.cloudinary_update(t,r),n.responsive(r,!1)},Sf=function(t){var e=t.children,r=df(t,pf),n={children:e,cloudinaryProps:{},nonCloudinaryProps:{},cloudinaryReactProps:{}};return Object.keys(r).forEach((function(t){var e=sf.Util.camelCase(t),o=r[t];xf[e]?void 0!==r[t]&&null!==r[t]&&(n.cloudinaryProps[e]=o):"includeOwnBody"===e?n.cloudinaryReactProps[e]=o:n.nonCloudinaryProps[t]=o})),n},Of=function(t,r){return!(!e.isValidElement(t)||!t.type||t.type.displayName!==r)},Tf=function(){return[].slice.call(arguments).reduce((function(t,e){return Object.keys(e||{}).forEach((function(r){var n=e[r];null!=n&&(t[r]=n)})),t}),{})},Af=function t(r){var n=r?e.Children.toArray(r).filter((function(t){return Of(t,"CloudinaryTransformation")})).map((function(e){var r=Tf(e.props,e.context),n=t(e.props.children);return n&&(r.transformation=n),r})):[];return n.length?n:null},jf=function(t){var e=t.children,r=t.accessibility,n=t.placeholder,o=df(t,gf),i=function(t,e){return void 0===e&&(e=[]),t?e.reduce((function(e,r){return r in t&&(e[r]=t[r]),e}),{}):t}(bf(o),sf.Transformation.methods)||{},a=Af(e);yf(a)||(i.transformation=a);var s={accessibility:r,placeholder:n};return Object.keys(s).filter((function(t){return s[t]})).forEach((function(t){i[t]=s[t]})),i},Pf=i(),Cf=sf.Util.camelCase,Df=function(t){function e(e,r){var n;return(n=t.call(this,e,r)||this).getContext=function(){return n.context||{}},n.onIntersect=function(){n.setState({isInView:!0})},n.getExtendedProps=function(t,e){return void 0===t&&(t=n.props),void 0===e&&(e=n.getContext()),Tf(e,t)},n.attachRef=function(t){var e=n.props.innerRef;n.element.current=t,e&&(e instanceof Function?e(t):e.current=t)},n.element=a(),n}return lf(e,t),e.prototype.render=function(){return null},e}(s);Df.defaultProps={innerRef:null,publicId:null},Df.propTypes=cf({},function(t){t=t||[];for(var e={},r=0;r<t.length;r++){var n=t[r];e[mf(n)]=fs.any}return e}(sf.Transformation.PARAM_NAMES.map(Cf)),{innerRef:fs.any,publicId:fs.string}),Df.contextType=Pf;var Mf=function(t){function r(){return t.apply(this,arguments)||this}return lf(r,t),r.prototype.render=function(){var t=cf({},this.getContext(),this.props),r=Sf(t),n=r.children,o=r.cloudinaryProps,i=r.nonCloudinaryProps,a=r.cloudinaryReactProps;return e.createElement(Pf.Provider,{value:o},a.includeOwnBody?n:e.createElement("div",i,n))},r}(Df);Mf.propTypes=cf({},Df.propTypes,{includeOwnBody:fs.bool}),Mf.defaultProps={includeOwnBody:!1};var Rf=["children","innerRef"],If="\nWarning: passing a number value for width cancels the 'responsive' prop's effect on the image transformation.\nThe 'responsive' prop affects the image transformation only when width === 'auto'.\nPassing 'width=\"auto\" responsive' will affect the actual image width that is fetched from Cloudinary.\nThe 'responsive' prop causes the Image component to request an image which width is equal to the width of it's container.\nWhen passing 'width=\"auto\" responsive', you can set the <img> element width by passing a 'style' prop".trim(),Nf=function(t){function r(r,n){var o;return(o=t.call(this,r,n)||this).isResponsive=function(){var t=o.getExtendedProps(),e=t.responsive,r=t.width;return e&&"auto"!==r&&console.warn(If),e&&o.element&&o.element.current},o.getOptions=function(){var t=o.getExtendedProps(),e=df(cf({},t,jf(t)),Rf);return o.shouldLazyLoad()||delete e.loading,e},o.getAttributes=function(t){void 0===t&&(t={});var e=t.placeholder,r=Sf(cf({},o.getOptions(),t)),n=r.cloudinaryProps,i=r.nonCloudinaryProps,a=r.cloudinaryReactProps,s=kf(cf({},n,a)),c=cf({},sf.Util.withCamelCaseKeys(s.attributes()),i);return c.dataSrc&&(c["data-src"]=c.dataSrc),e&&c.id&&(c.id+="-cld-placeholder"),o.shouldLazyLoad()&&(c["data-src"]=c.dataSrc||c.src,delete c.src),vf.forEach((function(t){delete c[t]})),c},o.update=function(){if(o.shouldLazyLoad())sf.Util.detectIntersection(o.element.current,o.onIntersect);else if(o.isResponsive()){var t=o.getOptions(),e=o.getPlaceholderType();if(e){var r=Ef(o.placeholderElement.current,cf({},t,{placeholder:e}));o.listenerRemovers.push(r)}var n=Ef(o.element.current,t);o.listenerRemovers.push(n)}},o.shouldLazyLoad=function(){var t=o.getExtendedProps().loading;return!o.state.isInView&&("lazy"===t||"auto"===t)},o.handleImageLoaded=function(){var t=o.props.onLoad;o.setState({isLoaded:!0},(function(){t&&t()}))},o.renderPlaceholder=function(t,r){r.style=cf({},r.style||{},{opacity:0,position:"absolute"}),r.onLoad=o.handleImageLoaded;var n=o.getAttributes({placeholder:t});return e.createElement(c,null,o.renderImage(r),e.createElement("div",{style:{display:"inline"}},e.createElement("img",cf({ref:o.placeholderElement},n))))},o.renderImage=function(t){return e.createElement("img",cf({ref:o.attachRef},t))},o.getPlaceholderType=function(){var t=function(t){var r=null;return t&&(r=e.Children.toArray(t).find((function(t){return Of(t,"CloudinaryPlaceholder")}))),r}(o.getExtendedProps().children);return t?t.props.type:null},o.placeholderElement=a(),o.state={isLoaded:!1},o.listenerRemovers=[],o}lf(r,t);var n=r.prototype;return n.componentDidMount=function(){this.update()},n.componentDidUpdate=function(){this.update()},n.componentWillUnmount=function(){this.listenerRemovers.forEach((function(t){return t()}))},n.render=function(){var t=this.state.isLoaded,e=this.getAttributes(),r=this.getPlaceholderType();return!t&&r?this.renderPlaceholder(r,e):this.renderImage(e)},r}(Df);Nf.defaultProps={},Nf.propTypes=Df.propTypes,Nf.propTypes.responsive=fs.bool,Nf.propTypes.loading=fs.string,Nf.propTypes.accessibility=fs.string,Df.propTypes;var Ff=["innerRef","publicId","fallback","children","sourceTypes","sourceTransformation","sources"],zf=function(t){function r(){for(var r,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return(r=t.call.apply(t,[this].concat(o))||this).mimeType="video",r.mimeSubTypes=wf,r.getMergedProps=function(){return cf({},r.getContext(),r.props)},r.generateVideoUrl=function(t,e,r,n,o){var i=sf.Util.withSnakeCaseKeys(sf.Util.defaults({},n,r,{resource_type:"video",format:o}));return t.url(e,i)},r.generateUsingSourceTypes=function(t,e,n,o,i){return i.map((function(i){return r.toSourceTag(t,e,n,o[i]||{},i,r.buildMimeType(i))}))},r.generateUsingSources=function(t,e,n,o){return o.map((function(o){var i=o.transformations,a=void 0===i?{}:i,s=o.type,c=o.codecs;return r.toSourceTag(t,e,n,a,s,r.buildMimeType(s,c))}))},r.toSourceTag=function(t,n,o,i,a,s){var c=r.generateVideoUrl(t,n,o,i,a);return e.createElement("source",{key:c+s,src:c,type:s})},r.buildMimeType=function(t,e){var n=r.mimeType+"/"+(r.mimeSubTypes[t]||t);return sf.Util.isEmpty(e)||(n+="; codecs="+(sf.Util.isArray(e)?e.join(", "):e)),n},r.getVideoTagProps=function(){var t=r.getMergedProps(),e=t.publicId,n=t.children,o=t.sourceTypes,i=t.sourceTransformation,a=void 0===i?{}:i,s=t.sources,c=df(t,Ff);c=Tf(c,{});var l=Sf(c),u=l.cloudinaryProps,d=l.cloudinaryReactProps,f=l.nonCloudinaryProps;c=cf({},u,d);var h=sf.Util.withSnakeCaseKeys(c),p=sf.Cloudinary.new(h),g=p.videoTag(e,c).attributes();g=cf({},sf.Util.withCamelCaseKeys(g),f);var m=jf(cf({},c,{children:n})),b=null;return sf.Util.isArray(s)&&!sf.Util.isEmpty(s)?b=r.generateUsingSources(p,e,m,s):sf.Util.isArray(o)?b=r.generateUsingSourceTypes(p,e,m,a,o):g.src=r.generateVideoUrl(p,e,m,a[o]||{},o),{sources:b,tagAttributes:g}},r.reloadVideo=function(){r.element&&r.element.current&&r.element.current.load()},r}lf(r,t);var n=r.prototype;return n.componentDidUpdate=function(){this.reloadVideo()},n.render=function(){var t=this.props,r=t.fallback,n=t.children,o=this.getVideoTagProps(),i=o.tagAttributes,a=o.sources;return e.createElement("video",cf({ref:this.attachRef},i),a,r,n)},r}(Df);function Lf(t){var r=t.publicId,n=t.secure,o=void 0===n||n,i=t.alt,a=t.styles;return e.createElement(Mf,{cloudName:process.env.REACT_APP_CLOUDINARY_NAME?process.env.REACT_APP_CLOUDINARY_NAME:""},e.createElement(Nf,{publicId:r||"public/placeholders/placeholder-dark_uwuxct",secure:o,alt:i,className:a}))}function Bf(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"w-full p-5 border border-gray-800/70 bg-gray-800/30 rounded-md text-gray-500":!0},r["".concat(o)]=o,r))},n)}function Vf(t){var r=t.title,n=t.children;return e.createElement("div",{className:"py-3"},r&&e.createElement("div",{className:"text-paragraph font-semibold"},r),e.createElement("div",{className:"flex flex-col gap-1"},n))}zf.propTypes={publicId:fs.string,sources:fs.arrayOf(fs.shape({type:fs.string,codecs:fs.oneOfType([fs.string,fs.arrayOf(fs.string)]),transformations:fs.object}))},zf.defaultProps={sourceTypes:sf.Cloudinary.DEFAULT_VIDEO_PARAMS.source_types},fs.string,fs.string;var $f={1:"text-5xl leading-[90px]",2:"text-4xl leading-[80px]",3:"text-3xl leading-[70px]"},Hf=function(t){var r,n=t.level,o=void 0===n?1:n,i=t.children,a=t.variant,s=void 0===a?"default":a,c=t.decoration,l=void 0===c?"noUnderline":c,u=t.bold,d=t.italic,f=t.styles,h=t.onClick;return e.createElement("div",{onClick:h,className:E((r={},r["".concat(T[s])]=s,r["".concat($f[o])]=o,r["".concat(f)]=f,r["".concat(P[l])]=l,r["font-bold"]=u,r.italic=d,r))},i||"Title")},Uf={1:"text-2xl leading-[50px] pt-4",2:"text-xl leading-[50px]",3:"text-lg leading-[40px]"},Wf=function(t){var r,n=t.level,o=void 0===n?1:n,i=t.children,a=t.variant,s=void 0===a?"default":a,c=t.decoration,l=void 0===c?"noUnderline":c,u=t.bold,d=t.italic,f=t.styles,h=t.onClick;return e.createElement("div",{onClick:h,className:E((r={},r["".concat(T[s]," opacity-80")]=s,r["".concat(Uf[o])]=o,r["".concat(f)]=f,r["".concat(P[l])]=l,r["font-bold"]=u,r.italic=d,r))},i||"Title")},Yf={1:"text-base leading-[28px]",2:"text-sm leading-[25px]",3:"text-xs leading-[20px]"},Xf=function(t){var r,n=t.level,o=void 0===n?1:n,i=t.children,a=t.variant,s=void 0===a?"default":a,c=t.decoration,l=void 0===c?"noUnderline":c,u=t.bold,d=t.italic,f=t.styles,h=t.onClick;return e.createElement("div",{onClick:h,className:E((r={},r["".concat(T[s]," opacity-60")]=s,r["".concat(Yf[o])]=o,r["".concat(f)]=f,r["".concat(P[l])]=l,r["font-bold"]=u,r.italic=d,r))},i||"Text")},qf=function(t){var r,n=t.children,o=t.href,i=t.target,a=void 0===i?"self":i,s=t.variant,c=void 0===s?"info":s,l=t.decoration,u=void 0===l?"underline":l,d=t.bold,f=t.italic,h=t.styles,p=t.onClick;return e.createElement("a",{href:o||"#",target:C[a],onClick:function(t){p&&(t.preventDefault(),p())},className:E((r={},r["".concat(T[c])]=c,r["".concat(P[u])]=u,r["font-bold"]=d,r.italic=f,r["hover:cursor-pointer hover:brightness-125"]=!0,r["transition-all ease-in-out"]=!0,r["".concat(h)]=h,r))},n||"Link")},Kf=function(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"pl-4 py-1 border-l-2 border-l-gray-400 w-full":!0},r["".concat(o)]=o,r))},n)},Gf={Chapter:Hf,Section:Wf,Paragraph:Xf,Link:qf,Quote:Kf},Zf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Qf=e.createContext&&e.createContext(Zf),Jf=function(){return Jf=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Jf.apply(this,arguments)},th=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};function eh(t){return t&&t.map((function(t,r){return e.createElement(t.tag,Jf({key:r},t.attr),eh(t.child))}))}function rh(t){return function(r){return e.createElement(nh,Jf({attr:Jf({},t.attr)},r),eh(t.child))}}function nh(t){var r=function(r){var n,o=t.attr,i=t.size,a=t.title,s=th(t,["attr","size","title"]),c=i||r.size||"1em";return r.className&&(n=r.className),t.className&&(n=(n?n+" ":"")+t.className),e.createElement("svg",Jf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,s,{className:n,style:Jf(Jf({color:t.color||r.color},r.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==Qf?e.createElement(Qf.Consumer,null,(function(t){return r(t)})):r(Zf)}function oh(t){return rh({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.95.435c.58-.58 1.52-.58 2.1 0l6.515 6.516c.58.58.58 1.519 0 2.098L9.05 15.565c-.58.58-1.519.58-2.098 0L.435 9.05a1.482 1.482 0 0 1 0-2.098L6.95.435z"}}]})(t)}function ih(t){return rh({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"}}]})(t)}function ah(t){return rh({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"}}]})(t)}function sh(t){return rh({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.354 5.119 7.538.792A.516.516 0 0 1 8 .5c.183 0 .366.097.465.292l2.184 4.327 4.898.696A.537.537 0 0 1 16 6.32a.548.548 0 0 1-.17.445l-3.523 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256a.52.52 0 0 1-.146.05c-.342.06-.668-.254-.6-.642l.83-4.73L.173 6.765a.55.55 0 0 1-.172-.403.58.58 0 0 1 .085-.302.513.513 0 0 1 .37-.245l4.898-.696zM8 12.027a.5.5 0 0 1 .232.056l3.686 1.894-.694-3.957a.565.565 0 0 1 .162-.505l2.907-2.77-4.052-.576a.525.525 0 0 1-.393-.288L8.001 2.223 8 2.226v9.8z"}}]})(t)}function ch(t){return rh({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.866 14.85c-.078.444.36.791.746.593l4.39-2.256 4.389 2.256c.386.198.824-.149.746-.592l-.83-4.73 3.522-3.356c.33-.314.16-.888-.282-.95l-4.898-.696L8.465.792a.513.513 0 0 0-.927 0L5.354 5.12l-4.898.696c-.441.062-.612.636-.283.95l3.523 3.356-.83 4.73zm4.905-2.767-3.686 1.894.694-3.957a.565.565 0 0 0-.163-.505L1.71 6.745l4.052-.576a.525.525 0 0 0 .393-.288L8 2.223l1.847 3.658a.525.525 0 0 0 .393.288l4.052.575-2.906 2.77a.565.565 0 0 0-.163.506l.694 3.957-3.686-1.894a.503.503 0 0 0-.461 0z"}}]})(t)}var lh=function(t){var r=t.TypographyComponent,n=void 0===r?e.createElement(Xf,{level:1}):r,o=t.x;return e.createElement("div",null,n?e.cloneElement(n,{},o):o)},uh=function(t){var r=t.TypographyComponent,n=void 0===r?e.createElement(Xf,{level:1}):r,o=t.bulletVisible,i=void 0===o||o,a=t.children;return e.createElement("div",{className:"inline-flex gap-3"},i&&e.createElement("div",{className:E({"text-[10px] relative top-[10px]":!0})},e.createElement(oh,null)),e.createElement(lh,{TypographyComponent:n,x:a}))},dh=[{name:"US Dollar",symbol:"$",code:"USD"},{name:"Euro",symbol:"€",code:"EUR"},{name:"British Pound",symbol:"£",code:"GBP"},{name:"Japanese Yen",symbol:"¥",code:"JPY"},{name:"Australian Dollar",symbol:"$",code:"AUD"},{name:"Canadian Dollar",symbol:"$",code:"CAD"},{name:"Swiss Franc",symbol:"CHF",code:"CHF"},{name:"Chinese Yuan",symbol:"¥",code:"CNY"},{name:"Indian Rupee",symbol:"₹",code:"INR"},{name:"Brazilian Real",symbol:"R$",code:"BRL"},{name:"South African Rand",symbol:"R",code:"ZAR"},{name:"Mexican Peso",symbol:"$",code:"MXN"},{name:"Singapore Dollar",symbol:"$",code:"SGD"},{name:"Hong Kong Dollar",symbol:"$",code:"HKD"},{name:"New Zealand Dollar",symbol:"$",code:"NZD"},{name:"Norwegian Krone",symbol:"kr",code:"NOK"},{name:"Swedish Krona",symbol:"kr",code:"SEK"},{name:"Danish Krone",symbol:"kr",code:"DKK"},{name:"Russian Ruble",symbol:"₽",code:"RUB"},{name:"Turkish Lira",symbol:"₺",code:"TRY"},{name:"Argentine Peso",symbol:"$",code:"ARS"},{name:"Colombian Peso",symbol:"$",code:"COP"},{name:"Egyptian Pound",symbol:"£",code:"EGP"},{name:"Chilean Peso",symbol:"$",code:"CLP"},{name:"Philippine Peso",symbol:"₱",code:"PHP"},{name:"Indonesian Rupiah",symbol:"Rp",code:"IDR"},{name:"Malaysian Ringgit",symbol:"RM",code:"MYR"},{name:"South Korean Won",symbol:"₩",code:"KRW"},{name:"Thai Baht",symbol:"฿",code:"THB"},{name:"Vietnamese Dong",symbol:"₫",code:"VND"},{name:"Pakistani Rupee",symbol:"₨",code:"PKR"},{name:"Bangladeshi Taka",symbol:"৳",code:"BDT"},{name:"Kenyan Shilling",symbol:"KSh",code:"KES"},{name:"Tanzanian Shilling",symbol:"TSh",code:"TZS"},{name:"Ugandan Shilling",symbol:"USh",code:"UGX"},{name:"Ghanaian Cedi",symbol:"₵",code:"GHS"},{name:"Iraqi Dinar",symbol:"ع.د",code:"IQD"},{name:"Jordanian Dinar",symbol:"د.أ",code:"JOD"},{name:"Lebanese Pound",symbol:"ل.ل",code:"LBP"},{name:"Syrian Pound",symbol:"£",code:"SYP"},{name:"Algerian Dinar",symbol:"د.ج",code:"DZD"},{name:"Moroccan Dirham",symbol:"د.م.",code:"MAD"},{name:"Libyan Dinar",symbol:"د.ل",code:"LYD"},{name:"Bahraini Dinar",symbol:"د.ب",code:"BHD"},{name:"Kuwaiti Dinar",symbol:"د.ك",code:"KWD"},{name:"Qatari Riyal",symbol:"ر.ق",code:"QAR"},{name:"Omani Rial",symbol:"ر.ع.",code:"OMR"},{name:"Saudi Riyal",symbol:"ر.س",code:"SAR"},{name:"Emirati Dirham",symbol:"د.إ",code:"AED"},{name:"Israeli New Shekel",symbol:"₪",code:"ILS"},{name:"Yemeni Rial",symbol:"ر.ي",code:"YER"},{name:"Mauritian Rupee",symbol:"₨",code:"MUR"},{name:"Sri Lankan Rupee",symbol:"රු",code:"LKR"},{name:"Nepalese Rupee",symbol:"₨",code:"NPR"},{name:"Kazakhstani Tenge",symbol:"₸",code:"KZT"},{name:"Uzbekistani Som",symbol:"so'm",code:"UZS"},{name:"Turkmenistan Manat",symbol:"m",code:"TMT"},{name:"Belarusian Ruble",symbol:"Br",code:"BYN"},{name:"Armenian Dram",symbol:"դր.",code:"AMD"},{name:"Moldovan Leu",symbol:"lei",code:"MDL"},{name:"Georgian Lari",symbol:"₾",code:"GEL"},{name:"Kyrgyzstani Som",symbol:"сом",code:"KGS"},{name:"Tajikistani Somoni",symbol:"SM",code:"TJS"},{name:"Afghan Afghani",symbol:"؋",code:"AFN"},{name:"Haitian Gourde",symbol:"G",code:"HTG"},{name:"Jamaican Dollar",symbol:"$",code:"JMD"},{name:"Barbadian Dollar",symbol:"$",code:"BBD"},{name:"Trinidad and Tobago Dollar",symbol:"$",code:"TTD"},{name:"Antillean Guilder",symbol:"ƒ",code:"AWG"},{name:"Bermudian Dollar",symbol:"$",code:"BMD"},{name:"East Caribbean Dollar",symbol:"$",code:"XCD"},{name:"Cayman Islands Dollar",symbol:"$",code:"KYD"},{name:"Falkland Islands Pound",symbol:"£",code:"FKP"},{name:"Saint Helena Pound",symbol:"£",code:"SHP"},{name:"Gibraltar Pound",symbol:"£",code:"GIP"},{name:"Fiji Dollar",symbol:"$",code:"FJD"},{name:"Seychelles Rupee",symbol:"₨",code:"SCR"},{name:"Solomon Islands Dollar",symbol:"$",code:"SBD"},{name:"Vanuatu Vatu",symbol:"Vt",code:"VUV"},{name:"Samoan Tala",symbol:"T",code:"WST"},{name:"Tongan Paʻanga",symbol:"T$",code:"TOP"},{name:"Papua New Guinean Kina",symbol:"K",code:"PGK"},{name:"Ni-Vanuatu Vatu",symbol:"Vt",code:"VUV"},{name:"New Zealand Dollar",symbol:"$",code:"NZD"},{name:"Cook Islands Dollar",symbol:"$",code:"CKD"},{name:"Tokelau Dollar",symbol:"$",code:"TKD"},{name:"Marshall Islands Dollar",symbol:"$",code:"MKD"},{name:"Palau Dollar",symbol:"$",code:"USD"}],fh=function(t){var e=dh.find((function(e){return e.code===t}));return e?e.symbol:null};function hh(t){var r,n=t.discount,o=t.price,i=t.code,a=void 0===i?"USD":i,s=t.styles;return e.createElement("div",{className:E((r={"inline-flex gap-3 text-md w-fit":!0},r["".concat(s)]=s,r))},n&&0!==n&&e.createElement("div",{className:"bg-green-700 px-2 py-1 font-bold rounded-md text-gray-200"},"-",n,"%"),e.createElement("div",{className:"inline-flex gap-1 items-center"},n?e.createElement("div",{className:"inline-flex gap-[3px] font-semibold"},e.createElement("div",{className:"theme-text-sm line-through"},fh(a),o),e.createElement("div",{className:"theme-text-md"},fh(a),function(t,e){return(e-e/100*t).toFixed(2)}(n,o))):e.createElement("div",{className:"text-gray-50 font-semibold"},fh(a),o),e.createElement("div",{className:"text-yellow-500 font-thin"},a)))}function ph(t){var r=t.rating,n=t.reviewAmount,o=t.isNumericRatingEnabled,i=void 0!==o&&o,a=t.isReviewAmountEnabled,s=void 0!==a&&a,c=t.styles,l=Math.floor(r),u=Math.ceil(r-l),d=5-l-u,f=e.createElement(ah,null),h=e.createElement(sh,null),p=e.createElement(ch,null);return e.createElement("div",{className:"inline-flex gap-2 items-center"},i&&e.createElement("div",{className:"text-yellow-700 font-semibold text-[14px]"},r.toFixed(1)),e.createElement("div",{className:"flex flex-row gap-[2px] text-[13px] text-yellow-600 ".concat(c)},ba([],Array(l),!0).map((function(t,r){return e.createElement("span",{key:r},f)})),ba([],Array(u),!0).map((function(t,r){return e.createElement("span",{key:r+l},h)})),ba([],Array(d),!0).map((function(t,r){return e.createElement("span",{key:r+l+u},p)}))),s&&e.createElement("div",{className:"text-gray-400 font-semibold text-[14px]"},"(",n,")"))}var gh=function(t){var r=t.averageRating,n=t.totalReviews;return e.createElement("div",{className:"flex flex-col items-center justify-center w-fit mb-4"},e.createElement("div",{className:"text-[60px] font-bold text-gray-400"},r.toFixed(1)),e.createElement("div",null,e.createElement(ph,{rating:Math.round(r)})),e.createElement("div",{className:"text-gray-500 text-sm"},n," reviews"))},mh=function(t){var r=t.star,n=t.percentage;return e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"text-sm text-gray-600 w-6"},r),e.createElement("div",{className:"relative bg-gray-400 bg-opacity-50 h-[10px] w-full rounded-md overflow-hidden"},e.createElement("div",{className:"absolute bg-yellow-400 h-full",style:{width:"".concat(n,"%")}})),e.createElement("div",{className:"text-xs text-gray-500 w-[60px] text-right"},n.toFixed(1),"%"))},bh=function(t){var r=t.ratingDistribution;return e.createElement("div",{className:"flex flex-col gap-2 w-full max-w-md"},r.map((function(t){return e.createElement(mh,{key:t.star,star:t.star,percentage:t.percentage})})))};function yh(t){var r=t.numericRating,n=void 0===r||r,o=t.progressBarsRating,i=void 0===o||o,a=t.ratingDistribution,s=void 0===a?[{star:5,count:0},{star:4,count:0},{star:3,count:0},{star:2,count:0},{star:1,count:0}]:a,c=s.reduce((function(t,e){return t+e.count}),0),l=c>0?s.reduce((function(t,e){return t+e.star*e.count}),0)/c:0,u=s.map((function(t){return{star:t.star,percentage:c>0?t.count/c*100:0}}));return e.createElement("div",{className:"flex flex-row items-center justify-center gap-10 p-5 bg-gray-800 bg-opacity-50 border border-gray-800 rounded-md shadow-sm"},n&&e.createElement(gh,{averageRating:l,totalReviews:c}),i&&e.createElement(bh,{ratingDistribution:u}))}var vh=function(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"bg-gradient-to-r from-dark-300/20 to-dark-100/10 dark:from-light-400/10 dark:to-light-400/5 animate-pulse min-w-5 min-h-3":!0},r["".concat(o)]=o,r))},n)};function wh(t){var r,n=t.img,o=t.onClick,i=t.selected,a=t.styles;return e.createElement("div",{onClick:o,className:E((r={"flex-shrink-0 w-[160px] h-[90px] border-[3px] overflow-hidden brightness-50":!0,"hover:cursor-pointer hover:border-secondary-600 hover:shadow-lg hover:shadow-[#167d0f]/50 hover:brightness-100":!0,"border-transparent":!i,"border-opacity-100 border-[#0b6b05] brightness-100":i,"transition-all ease-in-out duration-500":!0},r["".concat(a)]=a,r))},e.createElement(Lf,{publicId:n,alt:"image",styles:"w-full h-full object-cover"}))}function xh(t){var r=t.isLoading,n=t.isSuccess,i=t.coverArt,a=t.screenshots,s=l([{img:i,selected:!0}]),c=s[0],u=s[1];o((function(){u([{img:i,selected:!0}])}),[n]),o((function(){if(a){var t=[];a.forEach((function(e){t.push({img:e,selected:!1})})),u((function(e){return ba(ba([],e,!0),t,!0)}))}}),[n]);var d=l(i),f=d[0],h=d[1];o((function(){h(i)}),[i]);return e.createElement("div",null,r?e.createElement("div",null,e.createElement(vh,{styles:"w-full aspect-w-16 aspect-h-9"})):e.createElement("div",null,e.createElement("div",null,e.createElement(Lf,{publicId:f,alt:"displayImg",styles:"aspect-w-16 aspect-h-9"})),e.createElement("div",{className:"relative h-[130px]"},e.createElement("div",{className:"absolute pt-2 pb-4 w-full flex space-x-2 overflow-auto"},c.map((function(t,r){return e.createElement(wh,{key:r,img:t.img,onClick:function(){return function(t,e){h(e);var r=c.map((function(e,r){return ha(ha({},e),r===t?{selected:!0}:{selected:!1})}));u(r)}(r,t.img)},selected:t.selected})}))))))}function _h(t){return rh({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]})(t)}var kh=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||function(t){return t.$$typeof===Eh}(t)}(t)};var Eh="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Sh(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Th((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function Oh(t,e,r){return t.concat(e).map((function(t){return Sh(t,r)}))}function Th(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Oh,r.isMergeableObject=r.isMergeableObject||kh;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(t,e,r){var n={};return r.isMergeableObject(t)&&Object.keys(t).forEach((function(e){n[e]=Sh(t[e],r)})),Object.keys(e).forEach((function(o){r.isMergeableObject(e[o])&&t[o]?n[o]=Th(t[o],e[o],r):n[o]=Sh(e[o],r)})),n}(t,e,r):Sh(e,r)}Th.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return Th(t,r,e)}),{})};var Ah=Th,jh="object"==typeof global&&global&&global.Object===Object&&global,Ph="object"==typeof self&&self&&self.Object===Object&&self,Ch=jh||Ph||Function("return this")(),Dh=Ch.Symbol,Mh=Object.prototype,Rh=Mh.hasOwnProperty,Ih=Mh.toString,Nh=Dh?Dh.toStringTag:void 0;var Fh=Object.prototype.toString;var zh=Dh?Dh.toStringTag:void 0;function Lh(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":zh&&zh in Object(t)?function(t){var e=Rh.call(t,Nh),r=t[Nh];try{t[Nh]=void 0;var n=!0}catch(t){}var o=Ih.call(t);return n&&(e?t[Nh]=r:delete t[Nh]),o}(t):function(t){return Fh.call(t)}(t)}function Bh(t,e){return function(r){return t(e(r))}}var Vh=Bh(Object.getPrototypeOf,Object);function $h(t){return null!=t&&"object"==typeof t}var Hh=Function.prototype,Uh=Object.prototype,Wh=Hh.toString,Yh=Uh.hasOwnProperty,Xh=Wh.call(Object);function qh(t){if(!$h(t)||"[object Object]"!=Lh(t))return!1;var e=Vh(t);if(null===e)return!0;var r=Yh.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Wh.call(r)==Xh}function Kh(t,e){return t===e||t!=t&&e!=e}function Gh(t,e){for(var r=t.length;r--;)if(Kh(t[r][0],e))return r;return-1}var Zh=Array.prototype.splice;function Qh(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Jh(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}Qh.prototype.clear=function(){this.__data__=[],this.size=0},Qh.prototype.delete=function(t){var e=this.__data__,r=Gh(e,t);return!(r<0)&&(r==e.length-1?e.pop():Zh.call(e,r,1),--this.size,!0)},Qh.prototype.get=function(t){var e=this.__data__,r=Gh(e,t);return r<0?void 0:e[r][1]},Qh.prototype.has=function(t){return Gh(this.__data__,t)>-1},Qh.prototype.set=function(t,e){var r=this.__data__,n=Gh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function tp(t){if(!Jh(t))return!1;var e=Lh(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var ep=Ch["__core-js_shared__"],rp=function(){var t=/[^.]+$/.exec(ep&&ep.keys&&ep.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var np=Function.prototype.toString;function op(t){if(null!=t){try{return np.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var ip=/^\[object .+?Constructor\]$/,ap=Function.prototype,sp=Object.prototype,cp=ap.toString,lp=sp.hasOwnProperty,up=RegExp("^"+cp.call(lp).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dp(t){return!(!Jh(t)||(e=t,rp&&rp in e))&&(tp(t)?up:ip).test(op(t));var e}function fp(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return dp(r)?r:void 0}var hp=fp(Ch,"Map"),pp=fp(Object,"create");var gp=Object.prototype.hasOwnProperty;var mp=Object.prototype.hasOwnProperty;function bp(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function yp(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function vp(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}bp.prototype.clear=function(){this.__data__=pp?pp(null):{},this.size=0},bp.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},bp.prototype.get=function(t){var e=this.__data__;if(pp){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return gp.call(e,t)?e[t]:void 0},bp.prototype.has=function(t){var e=this.__data__;return pp?void 0!==e[t]:mp.call(e,t)},bp.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=pp&&void 0===e?"__lodash_hash_undefined__":e,this},vp.prototype.clear=function(){this.size=0,this.__data__={hash:new bp,map:new(hp||Qh),string:new bp}},vp.prototype.delete=function(t){var e=yp(this,t).delete(t);return this.size-=e?1:0,e},vp.prototype.get=function(t){return yp(this,t).get(t)},vp.prototype.has=function(t){return yp(this,t).has(t)},vp.prototype.set=function(t,e){var r=yp(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function wp(t){var e=this.__data__=new Qh(t);this.size=e.size}wp.prototype.clear=function(){this.__data__=new Qh,this.size=0},wp.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},wp.prototype.get=function(t){return this.__data__.get(t)},wp.prototype.has=function(t){return this.__data__.has(t)},wp.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Qh){var n=r.__data__;if(!hp||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new vp(n)}return r.set(t,e),this.size=r.size,this};var xp=function(){try{var t=fp(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),_p=xp;function kp(t,e,r){"__proto__"==e&&_p?_p(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Ep=Object.prototype.hasOwnProperty;function Sp(t,e,r){var n=t[e];Ep.call(t,e)&&Kh(n,r)&&(void 0!==r||e in t)||kp(t,e,r)}function Op(t,e,r,n){var o=!r;r||(r={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=n?n(r[s],t[s],s,r,t):void 0;void 0===c&&(c=t[s]),o?kp(r,s,c):Sp(r,s,c)}return r}function Tp(t){return $h(t)&&"[object Arguments]"==Lh(t)}var Ap=Object.prototype,jp=Ap.hasOwnProperty,Pp=Ap.propertyIsEnumerable,Cp=Tp(function(){return arguments}())?Tp:function(t){return $h(t)&&jp.call(t,"callee")&&!Pp.call(t,"callee")},Dp=Array.isArray;var Mp="object"==typeof exports&&exports&&!exports.nodeType&&exports,Rp=Mp&&"object"==typeof module&&module&&!module.nodeType&&module,Ip=Rp&&Rp.exports===Mp?Ch.Buffer:void 0,Np=(Ip?Ip.isBuffer:void 0)||function(){return!1},Fp=/^(?:0|[1-9]\d*)$/;function zp(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Fp.test(t))&&t>-1&&t%1==0&&t<e}function Lp(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var Bp={};function Vp(t){return function(e){return t(e)}}Bp["[object Float32Array]"]=Bp["[object Float64Array]"]=Bp["[object Int8Array]"]=Bp["[object Int16Array]"]=Bp["[object Int32Array]"]=Bp["[object Uint8Array]"]=Bp["[object Uint8ClampedArray]"]=Bp["[object Uint16Array]"]=Bp["[object Uint32Array]"]=!0,Bp["[object Arguments]"]=Bp["[object Array]"]=Bp["[object ArrayBuffer]"]=Bp["[object Boolean]"]=Bp["[object DataView]"]=Bp["[object Date]"]=Bp["[object Error]"]=Bp["[object Function]"]=Bp["[object Map]"]=Bp["[object Number]"]=Bp["[object Object]"]=Bp["[object RegExp]"]=Bp["[object Set]"]=Bp["[object String]"]=Bp["[object WeakMap]"]=!1;var $p="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hp=$p&&"object"==typeof module&&module&&!module.nodeType&&module,Up=Hp&&Hp.exports===$p&&jh.process,Wp=function(){try{var t=Hp&&Hp.require&&Hp.require("util").types;return t||Up&&Up.binding&&Up.binding("util")}catch(t){}}(),Yp=Wp&&Wp.isTypedArray,Xp=Yp?Vp(Yp):function(t){return $h(t)&&Lp(t.length)&&!!Bp[Lh(t)]},qp=Object.prototype.hasOwnProperty;function Kp(t,e){var r=Dp(t),n=!r&&Cp(t),o=!r&&!n&&Np(t),i=!r&&!n&&!o&&Xp(t),a=r||n||o||i,s=a?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],c=s.length;for(var l in t)!e&&!qp.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||zp(l,c))||s.push(l);return s}var Gp=Object.prototype;function Zp(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Gp)}var Qp=Bh(Object.keys,Object),Jp=Object.prototype.hasOwnProperty;function tg(t){return null!=t&&Lp(t.length)&&!tp(t)}function eg(t){return tg(t)?Kp(t):function(t){if(!Zp(t))return Qp(t);var e=[];for(var r in Object(t))Jp.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var rg=Object.prototype.hasOwnProperty;function ng(t){if(!Jh(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=Zp(t),r=[];for(var n in t)("constructor"!=n||!e&&rg.call(t,n))&&r.push(n);return r}function og(t){return tg(t)?Kp(t,!0):ng(t)}var ig="object"==typeof exports&&exports&&!exports.nodeType&&exports,ag=ig&&"object"==typeof module&&module&&!module.nodeType&&module,sg=ag&&ag.exports===ig?Ch.Buffer:void 0,cg=sg?sg.allocUnsafe:void 0;function lg(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}function ug(){return[]}var dg=Object.prototype.propertyIsEnumerable,fg=Object.getOwnPropertySymbols,hg=fg?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}(fg(t),(function(e){return dg.call(t,e)})))}:ug,pg=hg;function gg(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var mg=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)gg(e,pg(t)),t=Vh(t);return e}:ug,bg=mg;function yg(t,e,r){var n=e(t);return Dp(t)?n:gg(n,r(t))}function vg(t){return yg(t,eg,pg)}function wg(t){return yg(t,og,bg)}var xg=fp(Ch,"DataView"),_g=fp(Ch,"Promise"),kg=fp(Ch,"Set"),Eg=fp(Ch,"WeakMap"),Sg="[object Map]",Og="[object Promise]",Tg="[object Set]",Ag="[object WeakMap]",jg="[object DataView]",Pg=op(xg),Cg=op(hp),Dg=op(_g),Mg=op(kg),Rg=op(Eg),Ig=Lh;(xg&&Ig(new xg(new ArrayBuffer(1)))!=jg||hp&&Ig(new hp)!=Sg||_g&&Ig(_g.resolve())!=Og||kg&&Ig(new kg)!=Tg||Eg&&Ig(new Eg)!=Ag)&&(Ig=function(t){var e=Lh(t),r="[object Object]"==e?t.constructor:void 0,n=r?op(r):"";if(n)switch(n){case Pg:return jg;case Cg:return Sg;case Dg:return Og;case Mg:return Tg;case Rg:return Ag}return e});var Ng=Ig,Fg=Object.prototype.hasOwnProperty;var zg=Ch.Uint8Array;function Lg(t){var e=new t.constructor(t.byteLength);return new zg(e).set(new zg(t)),e}var Bg=/\w*$/;var Vg=Dh?Dh.prototype:void 0,$g=Vg?Vg.valueOf:void 0;function Hg(t,e,r){var n,o,i,a=t.constructor;switch(e){case"[object ArrayBuffer]":return Lg(t);case"[object Boolean]":case"[object Date]":return new a(+t);case"[object DataView]":return function(t,e){var r=e?Lg(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?Lg(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(t);case"[object RegExp]":return(i=new(o=t).constructor(o.source,Bg.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=t,$g?Object($g.call(n)):{}}}var Ug=Object.create,Wg=function(){function t(){}return function(e){if(!Jh(e))return{};if(Ug)return Ug(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),Yg=Wg;var Xg=Wp&&Wp.isMap,qg=Xg?Vp(Xg):function(t){return $h(t)&&"[object Map]"==Ng(t)};var Kg=Wp&&Wp.isSet,Gg=Kg?Vp(Kg):function(t){return $h(t)&&"[object Set]"==Ng(t)},Zg="[object Arguments]",Qg="[object Function]",Jg="[object Object]",tm={};function em(t,e,r,n,o,i){var a,s=1&e,c=2&e,l=4&e;if(r&&(a=o?r(t,n,o,i):r(t)),void 0!==a)return a;if(!Jh(t))return t;var u=Dp(t);if(u){if(a=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&Fg.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!s)return lg(t,a)}else{var d=Ng(t),f=d==Qg||"[object GeneratorFunction]"==d;if(Np(t))return function(t,e){if(e)return t.slice();var r=t.length,n=cg?cg(r):new t.constructor(r);return t.copy(n),n}(t,s);if(d==Jg||d==Zg||f&&!o){if(a=c||f?{}:function(t){return"function"!=typeof t.constructor||Zp(t)?{}:Yg(Vh(t))}(t),!s)return c?function(t,e){return Op(t,bg(t),e)}(t,function(t,e){return t&&Op(e,og(e),t)}(a,t)):function(t,e){return Op(t,pg(t),e)}(t,function(t,e){return t&&Op(e,eg(e),t)}(a,t))}else{if(!tm[d])return o?t:{};a=Hg(t,d,s)}}i||(i=new wp);var h=i.get(t);if(h)return h;i.set(t,a),Gg(t)?t.forEach((function(n){a.add(em(n,e,r,n,t,i))})):qg(t)&&t.forEach((function(n,o){a.set(o,em(n,e,r,o,t,i))}));var p=u?void 0:(l?c?wg:vg:c?og:eg)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(p||t,(function(n,o){p&&(n=t[o=n]),Sp(a,o,em(n,e,r,o,t,i))})),a}tm[Zg]=tm["[object Array]"]=tm["[object ArrayBuffer]"]=tm["[object DataView]"]=tm["[object Boolean]"]=tm["[object Date]"]=tm["[object Float32Array]"]=tm["[object Float64Array]"]=tm["[object Int8Array]"]=tm["[object Int16Array]"]=tm["[object Int32Array]"]=tm["[object Map]"]=tm["[object Number]"]=tm[Jg]=tm["[object RegExp]"]=tm["[object Set]"]=tm["[object String]"]=tm["[object Symbol]"]=tm["[object Uint8Array]"]=tm["[object Uint8ClampedArray]"]=tm["[object Uint16Array]"]=tm["[object Uint32Array]"]=!0,tm["[object Error]"]=tm[Qg]=tm["[object WeakMap]"]=!1;function rm(t){return em(t,5)}var nm=Array.isArray,om=Object.keys,im=Object.prototype.hasOwnProperty,am="undefined"!=typeof Element;function sm(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var r,n,o,i=nm(t),a=nm(e);if(i&&a){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!sm(t[r],e[r]))return!1;return!0}if(i!=a)return!1;var s=t instanceof Date,c=e instanceof Date;if(s!=c)return!1;if(s&&c)return t.getTime()==e.getTime();var l=t instanceof RegExp,u=e instanceof RegExp;if(l!=u)return!1;if(l&&u)return t.toString()==e.toString();var d=om(t);if((n=d.length)!==om(e).length)return!1;for(r=n;0!=r--;)if(!im.call(e,d[r]))return!1;if(am&&t instanceof Element&&e instanceof Element)return t===e;for(r=n;0!=r--;)if(!("_owner"===(o=d[r])&&t.$$typeof||sm(t[o],e[o])))return!1;return!0}return t!=t&&e!=e}var cm=function(t,e){try{return sm(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},lm="production"===process.env.NODE_ENV;function um(t,e){if(!lm){if(t)return;var r="Warning: "+e;"undefined"!=typeof console&&console.warn(r);try{throw Error(r)}catch(t){}}}function dm(t){return em(t,4)}function fm(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}function hm(t){return"symbol"==typeof t||$h(t)&&"[object Symbol]"==Lh(t)}function pm(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(pm.Cache||vp),r}pm.Cache=vp;var gm,mm,bm,ym=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vm=/\\(\\)?/g,wm=(gm=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ym,(function(t,r,n,o){e.push(n?o.replace(vm,"$1"):r||t)})),e},mm=pm(gm,(function(t){return 500===bm.size&&bm.clear(),t})),bm=mm.cache,mm),xm=wm;function _m(t){if("string"==typeof t||hm(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var km=Dh?Dh.prototype:void 0,Em=km?km.toString:void 0;function Sm(t){if("string"==typeof t)return t;if(Dp(t))return fm(t,Sm)+"";if(hm(t))return Em?Em.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Om(t){return Dp(t)?fm(t,_m):hm(t)?[t]:lg(xm(function(t){return null==t?"":Sm(t)}(t)))}var Tm={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Am={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Pm={};function Cm(t){return Ya.isMemo(t)?jm:Pm[t.$$typeof]||Tm}Pm[Ya.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Pm[Ya.Memo]=jm;var Dm=Object.defineProperty,Mm=Object.getOwnPropertyNames,Rm=Object.getOwnPropertySymbols,Im=Object.getOwnPropertyDescriptor,Nm=Object.getPrototypeOf,Fm=Object.prototype;var zm=function t(e,r,n){if("string"!=typeof r){if(Fm){var o=Nm(r);o&&o!==Fm&&t(e,o,n)}var i=Mm(r);Rm&&(i=i.concat(Rm(r)));for(var a=Cm(e),s=Cm(r),c=0;c<i.length;++c){var l=i[c];if(!(Am[l]||n&&n[l]||s&&s[l]||a&&a[l])){var u=Im(r,l);try{Dm(e,l,u)}catch(t){}}}}return e};function Lm(){return Lm=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Lm.apply(this,arguments)}function Bm(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Vm(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}function $m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Hm=i(void 0);Hm.displayName="FormikContext";var Um=Hm.Provider,Wm=Hm.Consumer;function Ym(){var t=d(Hm);return t||("production"!==process.env.NODE_ENV?um(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):um(!1)),t}var Xm=function(t){return Array.isArray(t)&&0===t.length},qm=function(t){return"function"==typeof t},Km=function(t){return null!==t&&"object"==typeof t},Gm=function(t){return String(Math.floor(Number(t)))===t},Zm=function(t){return"[object String]"===Object.prototype.toString.call(t)},Qm=function(t){return 0===p.count(t)},Jm=function(t){return Km(t)&&qm(t.then)};function tb(t,e,r,n){void 0===n&&(n=0);for(var o=Om(e);t&&n<o.length;)t=t[o[n++]];return n===o.length||t?void 0===t?r:t:r}function eb(t,e,r){for(var n=dm(t),o=n,i=0,a=Om(e);i<a.length-1;i++){var s=a[i],c=tb(t,a.slice(0,i+1));if(c&&(Km(c)||Array.isArray(c)))o=o[s]=dm(c);else{var l=a[i+1];o=o[s]=Gm(l)&&Number(l)>=0?[]:{}}}return(0===i?t:o)[a[i]]===r?t:(void 0===r?delete o[a[i]]:o[a[i]]=r,0===i&&void 0===r&&delete n[a[i]],n)}function rb(t,e,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var o=0,i=Object.keys(t);o<i.length;o++){var a=i[o],s=t[a];Km(s)?r.get(s)||(r.set(s,!0),n[a]=Array.isArray(s)?[]:{},rb(s,e,r,n[a])):n[a]=e}return n}var nb={},ob={};function ib(t){var e=t.validateOnChange,r=void 0===e||e,i=t.validateOnBlur,a=void 0===i||i,s=t.validateOnMount,c=void 0!==s&&s,d=t.isInitialValid,f=t.enableReinitialize,h=void 0!==f&&f,p=t.onSubmit,m=Vm(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),b=Lm({validateOnChange:r,validateOnBlur:a,validateOnMount:c,onSubmit:p},m),y=n(b.initialValues),v=n(b.initialErrors||nb),w=n(b.initialTouched||ob),x=n(b.initialStatus),_=n(!1),k=n({});"production"!==process.env.NODE_ENV&&o((function(){void 0!==d&&("production"!==process.env.NODE_ENV?um(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):um(!1))}),[]),o((function(){return _.current=!0,function(){_.current=!1}}),[]);var E=l(0)[1],S=n({values:rm(b.initialValues),errors:rm(b.initialErrors)||nb,touched:rm(b.initialTouched)||ob,status:rm(b.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),O=S.current,T=g((function(t){var e=S.current;S.current=function(t,e){switch(e.type){case"SET_VALUES":return Lm({},t,{values:e.payload});case"SET_TOUCHED":return Lm({},t,{touched:e.payload});case"SET_ERRORS":return cm(t.errors,e.payload)?t:Lm({},t,{errors:e.payload});case"SET_STATUS":return Lm({},t,{status:e.payload});case"SET_ISSUBMITTING":return Lm({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Lm({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return Lm({},t,{values:eb(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Lm({},t,{touched:eb(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Lm({},t,{errors:eb(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Lm({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return Lm({},t,{touched:rb(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Lm({},t,{isSubmitting:!1});default:return t}}(e,t),e!==S.current&&E((function(t){return t+1}))}),[]),A=g((function(t,e){return new Promise((function(r,n){var o=b.validate(t,e);null==o?r(nb):Jm(o)?o.then((function(t){r(t||nb)}),(function(t){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",t),n(t)})):r(o)}))}),[b.validate]),j=g((function(t,e){var r=b.validationSchema,n=qm(r)?r(e):r,o=e&&n.validateAt?n.validateAt(e,t):function(t,e,r,n){void 0===r&&(r=!1);var o=cb(t);return e[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}(t,n);return new Promise((function(t,e){o.then((function(){t(nb)}),(function(r){"ValidationError"===r.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return eb(e,t.path,t.message);var r=t.inner,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var i;if(n){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}var a=i;tb(e,a.path)||(e=eb(e,a.path,a.message))}}return e}(r)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",r),e(r))}))}))}),[b.validationSchema]),P=g((function(t,e){return new Promise((function(r){return r(k.current[t].validate(e))}))}),[]),C=g((function(t){var e=Object.keys(k.current).filter((function(t){return qm(k.current[t].validate)})),r=e.length>0?e.map((function(e){return P(e,tb(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(t){return t.reduce((function(t,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(t=eb(t,e[n],r)),t}),{})}))}),[P]),D=g((function(t){return Promise.all([C(t),b.validationSchema?j(t):{},b.validate?A(t):{}]).then((function(t){var e=t[0],r=t[1],n=t[2];return Ah.all([e,r,n],{arrayMerge:lb})}))}),[b.validate,b.validationSchema,C,A,j]),M=db((function(t){return void 0===t&&(t=O.values),T({type:"SET_ISVALIDATING",payload:!0}),D(t).then((function(t){return _.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:t})),t}))}));o((function(){c&&!0===_.current&&cm(y.current,b.initialValues)&&M(y.current)}),[c,M]);var R=g((function(t){var e=t&&t.values?t.values:y.current,r=t&&t.errors?t.errors:v.current?v.current:b.initialErrors||{},n=t&&t.touched?t.touched:w.current?w.current:b.initialTouched||{},o=t&&t.status?t.status:x.current?x.current:b.initialStatus;y.current=e,v.current=r,w.current=n,x.current=o;var i=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:r,touched:n,status:o,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(b.onReset){var a=b.onReset(O.values,J);Jm(a)?a.then(i):i()}else i()}),[b.initialErrors,b.initialStatus,b.initialTouched,b.onReset]);o((function(){!0!==_.current||cm(y.current,b.initialValues)||h&&(y.current=b.initialValues,R(),c&&M(y.current))}),[h,b.initialValues,R,c,M]),o((function(){h&&!0===_.current&&!cm(v.current,b.initialErrors)&&(v.current=b.initialErrors||nb,T({type:"SET_ERRORS",payload:b.initialErrors||nb}))}),[h,b.initialErrors]),o((function(){h&&!0===_.current&&!cm(w.current,b.initialTouched)&&(w.current=b.initialTouched||ob,T({type:"SET_TOUCHED",payload:b.initialTouched||ob}))}),[h,b.initialTouched]),o((function(){h&&!0===_.current&&!cm(x.current,b.initialStatus)&&(x.current=b.initialStatus,T({type:"SET_STATUS",payload:b.initialStatus}))}),[h,b.initialStatus,b.initialTouched]);var I=db((function(t){if(k.current[t]&&qm(k.current[t].validate)){var e=tb(O.values,t),r=k.current[t].validate(e);return Jm(r)?(T({type:"SET_ISVALIDATING",payload:!0}),r.then((function(t){return t})).then((function(e){T({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),T({type:"SET_ISVALIDATING",payload:!1})}))):(T({type:"SET_FIELD_ERROR",payload:{field:t,value:r}}),Promise.resolve(r))}return b.validationSchema?(T({type:"SET_ISVALIDATING",payload:!0}),j(O.values,t).then((function(t){return t})).then((function(e){T({type:"SET_FIELD_ERROR",payload:{field:t,value:tb(e,t)}}),T({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),N=g((function(t,e){var r=e.validate;k.current[t]={validate:r}}),[]),F=g((function(t){delete k.current[t]}),[]),z=db((function(t,e){return T({type:"SET_TOUCHED",payload:t}),(void 0===e?a:e)?M(O.values):Promise.resolve()})),L=g((function(t){T({type:"SET_ERRORS",payload:t})}),[]),B=db((function(t,e){var n=qm(t)?t(O.values):t;return T({type:"SET_VALUES",payload:n}),(void 0===e?r:e)?M(n):Promise.resolve()})),V=g((function(t,e){T({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),$=db((function(t,e,n){return T({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===n?r:n)?M(eb(O.values,t,e)):Promise.resolve()})),H=g((function(t,e){var r,n=e,o=t;if(!Zm(t)){t.persist&&t.persist();var i=t.target?t.target:t.currentTarget,a=i.type,s=i.name,c=i.id,l=i.value,u=i.checked,d=i.outerHTML,f=i.options,h=i.multiple;(n=e||(s||c))||"production"===process.env.NODE_ENV||sb({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),o=/number|range/.test(a)?(r=parseFloat(l),isNaN(r)?"":r):/checkbox/.test(a)?function(t,e,r){if("boolean"==typeof t)return Boolean(e);var n=[],o=!1,i=-1;if(Array.isArray(t))n=t,o=(i=t.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(e);if(e&&r&&!o)return n.concat(r);if(!o)return n;return n.slice(0,i).concat(n.slice(i+1))}(tb(O.values,n),u,l):f&&h?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(f):l}n&&$(n,o)}),[$,O.values]),U=db((function(t){if(Zm(t))return function(e){return H(e,t)};H(t)})),W=db((function(t,e,r){return void 0===e&&(e=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===r?a:r)?M(O.values):Promise.resolve()})),Y=g((function(t,e){t.persist&&t.persist();var r=t.target,n=r.name,o=r.id,i=r.outerHTML,a=e||(n||o);a||"production"===process.env.NODE_ENV||sb({htmlContent:i,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),W(a,!0)}),[W]),X=db((function(t){if(Zm(t))return function(e){return Y(e,t)};Y(t)})),q=g((function(t){qm(t)?T({type:"SET_FORMIK_STATE",payload:t}):T({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),K=g((function(t){T({type:"SET_STATUS",payload:t})}),[]),G=g((function(t){T({type:"SET_ISSUBMITTING",payload:t})}),[]),Z=db((function(){return T({type:"SUBMIT_ATTEMPT"}),M().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var r;try{if(void 0===(r=tt()))return}catch(t){throw t}return Promise.resolve(r).then((function(t){return _.current&&T({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(_.current)throw T({type:"SUBMIT_FAILURE"}),t}))}if(_.current&&(T({type:"SUBMIT_FAILURE"}),e))throw t}))})),Q=db((function(t){if(t&&t.preventDefault&&qm(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&qm(t.stopPropagation)&&t.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var e=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==e&&e instanceof HTMLButtonElement&&(e.attributes&&e.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?um(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):um(!1)))}Z().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),J={resetForm:R,validateForm:M,validateField:I,setErrors:L,setFieldError:V,setFieldTouched:W,setFieldValue:$,setStatus:K,setSubmitting:G,setTouched:z,setValues:B,setFormikState:q,submitForm:Z},tt=db((function(){return p(O.values,J)})),et=db((function(t){t&&t.preventDefault&&qm(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&qm(t.stopPropagation)&&t.stopPropagation(),R()})),rt=g((function(t){return{value:tb(O.values,t),error:tb(O.errors,t),touched:!!tb(O.touched,t),initialValue:tb(y.current,t),initialTouched:!!tb(w.current,t),initialError:tb(v.current,t)}}),[O.errors,O.touched,O.values]),nt=g((function(t){return{setValue:function(e,r){return $(t,e,r)},setTouched:function(e,r){return W(t,e,r)},setError:function(e){return V(t,e)}}}),[$,W,V]),ot=g((function(t){var e=Km(t),r=e?t.name:t,n=tb(O.values,r),o={name:r,value:n,onChange:U,onBlur:X};if(e){var i=t.type,a=t.value,s=t.as,c=t.multiple;"checkbox"===i?void 0===a?o.checked=!!n:(o.checked=!(!Array.isArray(n)||!~n.indexOf(a)),o.value=a):"radio"===i?(o.checked=n===a,o.value=a):"select"===s&&c&&(o.value=o.value||[],o.multiple=!0)}return o}),[X,U,O.values]),it=u((function(){return!cm(y.current,O.values)}),[y.current,O.values]),at=u((function(){return void 0!==d?it?O.errors&&0===Object.keys(O.errors).length:!1!==d&&qm(d)?d(b):d:O.errors&&0===Object.keys(O.errors).length}),[d,it,O.errors,b]);return Lm({},O,{initialValues:y.current,initialErrors:v.current,initialTouched:w.current,initialStatus:x.current,handleBlur:X,handleChange:U,handleReset:et,handleSubmit:Q,resetForm:R,setErrors:L,setFormikState:q,setFieldTouched:W,setFieldValue:$,setFieldError:V,setStatus:K,setSubmitting:G,setTouched:z,setValues:B,submitForm:Z,validateForm:M,validateField:I,isValid:at,dirty:it,unregisterField:F,registerField:N,getFieldProps:ot,getFieldMeta:rt,getFieldHelpers:nt,validateOnBlur:a,validateOnChange:r,validateOnMount:c})}function ab(t){var e=ib(t),r=t.component,n=t.children,i=t.render,a=t.innerRef;return f(a,(function(){return e})),"production"!==process.env.NODE_ENV&&o((function(){t.render&&("production"!==process.env.NODE_ENV?um(!1,"<Formik render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Formik render={(props) => ...} /> with <Formik>{(props) => ...}</Formik>"):um(!1))}),[]),h(Um,{value:e},r?h(r,e):i?i(e):n?qm(n)?n(e):Qm(n)?null:p.only(n):null)}function sb(t){var e=t.htmlContent,r=t.documentationAnchorLink,n=t.handlerName;console.warn("Warning: Formik called `"+n+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+r+"\n ")}function cb(t){var e=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=String(r);!0===Array.isArray(t[n])?e[n]=t[n].map((function(t){return!0===Array.isArray(t)||qh(t)?cb(t):""!==t?t:void 0})):qh(t[n])?e[n]=cb(t[n]):e[n]=""!==t[n]?t[n]:void 0}return e}function lb(t,e,r){var n=t.slice();return e.forEach((function(e,o){if(void 0===n[o]){var i=!1!==r.clone&&r.isMergeableObject(e);n[o]=i?Ah(Array.isArray(e)?[]:{},e,r):e}else r.isMergeableObject(e)?n[o]=Ah(t[o],e,r):-1===t.indexOf(e)&&n.push(e)})),n}var ub="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?m:o;function db(t){var e=n(t);return ub((function(){e.current=t})),g((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.current.apply(void 0,r)}),[])}function fb(t){var e=Ym(),r=e.getFieldProps,n=e.getFieldMeta,i=e.getFieldHelpers,a=e.registerField,s=e.unregisterField,c=Km(t)?t:{name:t},l=c.name,d=c.validate;o((function(){return l&&a(l,{validate:d}),function(){l&&s(l)}}),[a,s,l,d]),"production"!==process.env.NODE_ENV&&(e||("production"!==process.env.NODE_ENV?um(!1,"useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component"):um(!1))),l||("production"!==process.env.NODE_ENV?um(!1,"Invalid field name. Either pass `useField` a string or an object containing a `name` key."):um(!1));var f=u((function(){return i(l)}),[i,l]);return[r(c),n(l),f]}function hb(t){var e=t.validate,r=t.name,n=t.render,i=t.children,a=t.as,s=t.component,c=t.className,l=Vm(t,["validate","name","render","children","as","component","className"]),u=Vm(Ym(),["validate","validationSchema"]);"production"!==process.env.NODE_ENV&&o((function(){n&&("production"!==process.env.NODE_ENV?um(!1,'<Field render> has been deprecated and will be removed in future versions of Formik. Please use a child callback function instead. To get rid of this warning, replace <Field name="'+r+'" render={({field, form}) => ...} /> with <Field name="'+r+'">{({field, form, meta}) => ...}</Field>'):um(!1)),a&&i&&qm(i)&&("production"!==process.env.NODE_ENV?um(!1,"You should not use <Field as> and <Field children> as a function in the same <Field> component; <Field as> will be ignored."):um(!1)),s&&i&&qm(i)&&("production"!==process.env.NODE_ENV?um(!1,"You should not use <Field component> and <Field children> as a function in the same <Field> component; <Field component> will be ignored."):um(!1)),n&&i&&!Qm(i)&&("production"!==process.env.NODE_ENV?um(!1,"You should not use <Field render> and <Field children> in the same <Field> component; <Field children> will be ignored"):um(!1))}),[]);var d=u.registerField,f=u.unregisterField;o((function(){return d(r,{validate:e}),function(){f(r)}}),[d,f,r,e]);var p=u.getFieldProps(Lm({name:r},l)),g=u.getFieldMeta(r),m={field:p,form:u};if(n)return n(Lm({},m,{meta:g}));if(qm(i))return i(Lm({},m,{meta:g}));if(s){if("string"==typeof s){var b=l.innerRef,y=Vm(l,["innerRef"]);return h(s,Lm({ref:b},p,y,{className:c}),i)}return h(s,Lm({field:p,form:u},l,{className:c}),i)}var v=a||"input";if("string"==typeof v){var w=l.innerRef,x=Vm(l,["innerRef"]);return h(v,Lm({ref:w},p,x,{className:c}),i)}return h(v,Lm({},p,l,{className:c}),i)}var pb=r((function(t,e){var r=t.action,n=Vm(t,["action"]),o=null!=r?r:"#",i=Ym(),a=i.handleReset,s=i.handleSubmit;return h("form",Lm({onSubmit:s,ref:e,onReset:a,action:o},n))}));function gb(t){var e=function(e){return h(Wm,null,(function(r){return r||("production"!==process.env.NODE_ENV?um(!1,"Formik context is undefined, please verify you are rendering <Form>, <Field>, <FastField>, <FieldArray>, or your custom context-using component as a child of a <Formik> component. Component name: "+t.name):um(!1)),h(t,Lm({},e,{formik:r}))}))},r=t.displayName||t.name||t.constructor&&t.constructor.name||"Component";return e.WrappedComponent=t,e.displayName="FormikConnect("+r+")",zm(e,t)}pb.displayName="Form";var mb=function(t,e,r){var n=bb(t);return n.splice(e,0,r),n},bb=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(Lm({},t,{length:e+1}))}return[]},yb=function(t,e){var r="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||Km(t)){var e=bb(t);return r(e)}return t}},vb=function(t){function e(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(t,e,n){var o=r.props,i=o.name;(0,o.formik.setFormikState)((function(r){var o=yb(n,t),a=yb(e,t),s=eb(r.values,i,t(tb(r.values,i))),c=n?o(tb(r.errors,i)):void 0,l=e?a(tb(r.touched,i)):void 0;return Xm(c)&&(c=void 0),Xm(l)&&(l=void 0),Lm({},r,{values:s,errors:n?eb(r.errors,i,c):r.errors,touched:e?eb(r.touched,i,l):r.touched})}))},r.push=function(t){return r.updateArrayField((function(e){return[].concat(bb(e),[rm(t)])}),!1,!1)},r.handlePush=function(t){return function(){return r.push(t)}},r.swap=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=bb(t),o=n[e];return n[e]=n[r],n[r]=o,n}(r,t,e)}),!0,!0)},r.handleSwap=function(t,e){return function(){return r.swap(t,e)}},r.move=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=bb(t),o=n[e];return n.splice(e,1),n.splice(r,0,o),n}(r,t,e)}),!0,!0)},r.handleMove=function(t,e){return function(){return r.move(t,e)}},r.insert=function(t,e){return r.updateArrayField((function(r){return mb(r,t,e)}),(function(e){return mb(e,t,null)}),(function(e){return mb(e,t,null)}))},r.handleInsert=function(t,e){return function(){return r.insert(t,e)}},r.replace=function(t,e){return r.updateArrayField((function(r){return function(t,e,r){var n=bb(t);return n[e]=r,n}(r,t,e)}),!1,!1)},r.handleReplace=function(t,e){return function(){return r.replace(t,e)}},r.unshift=function(t){var e=-1;return r.updateArrayField((function(r){var n=r?[t].concat(r):[t];return e=n.length,n}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},r.handleUnshift=function(t){return function(){return r.unshift(t)}},r.handleRemove=function(t){return function(){return r.remove(t)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind($m(r)),r.pop=r.pop.bind($m(r)),r}Bm(e,t);var r=e.prototype;return r.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!cm(tb(t.formik.values,t.name),tb(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(t){var e;return this.updateArrayField((function(r){var n=r?bb(r):[];return e||(e=n[t]),qm(n.splice)&&n.splice(t,1),qm(n.every)&&n.every((function(t){return void 0===t}))?[]:n}),!0,!0),e},r.pop=function(){var t;return this.updateArrayField((function(e){var r=e.slice();return t||(t=r&&r.pop&&r.pop()),r}),!0,!0),t},r.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,r=e.component,n=e.render,o=e.children,i=e.name,a=Lm({},t,{form:Vm(e.formik,["validate","validationSchema"]),name:i});return r?h(r,a):n?n(a):o?"function"==typeof o?o(a):Qm(o)?null:p.only(o):null},e}(b);vb.defaultProps={validateOnChange:!0};var wb=gb(function(t){function e(){return t.apply(this,arguments)||this}Bm(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return tb(this.props.formik.errors,this.props.name)!==tb(t.formik.errors,this.props.name)||tb(this.props.formik.touched,this.props.name)!==tb(t.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(t).length},r.render=function(){var t=this.props,e=t.component,r=t.formik,n=t.render,o=t.children,i=t.name,a=Vm(t,["component","formik","render","children","name"]),s=tb(r.touched,i),c=tb(r.errors,i);return s&&c?n?qm(n)?n(c):null:o?qm(o)?o(c):null:e?h(e,a,c):c:null},e}(b)),xb=function(t){var r=t.initialValues,n=void 0===r?{}:r,o=t.validationSchema,i=t.enableReinitialize,a=t.children,s=t.styles,c=t.onSubmit;return e.createElement(ab,{initialValues:n,validationSchema:o,enableReinitialize:i,onSubmit:c},(function(t){var r;return e.createElement(pb,null,e.createElement("div",{className:E((r={},r["".concat(s)]=s,r))},a))}))};function _b(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(r=_b(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function kb(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=_b(t))&&(n&&(n+=" "),n+=e);return n}var Eb=Object.defineProperty,Sb=(t,e,r)=>(((t,e,r)=>{e in t?Eb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r})(t,"symbol"!=typeof e?e+"":e,r),r);let Ob=new class{constructor(){Sb(this,"current",this.detect()),Sb(this,"handoffState","pending"),Sb(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Tb(){let t=[],e={addEventListener:(t,r,n,o)=>(t.addEventListener(r,n,o),e.add((()=>t.removeEventListener(r,n,o)))),requestAnimationFrame(...t){let r=requestAnimationFrame(...t);return e.add((()=>cancelAnimationFrame(r)))},nextFrame:(...t)=>e.requestAnimationFrame((()=>e.requestAnimationFrame(...t))),setTimeout(...t){let r=setTimeout(...t);return e.add((()=>clearTimeout(r)))},microTask(...t){let r={current:!0};return function(t){"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch((t=>setTimeout((()=>{throw t}))))}((()=>{r.current&&t[0]()})),e.add((()=>{r.current=!1}))},style(t,e,r){let n=t.style.getPropertyValue(e);return Object.assign(t.style,{[e]:r}),this.add((()=>{Object.assign(t.style,{[e]:n})}))},group(t){let e=Tb();return t(e),this.add((()=>e.dispose()))},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return e}function Ab(){let[t]=l(Tb);return o((()=>()=>t.dispose()),[t]),t}let jb=(t,e)=>{Ob.isServer?o(t,e):m(t,e)};function Pb(t){let e=n(t);return jb((()=>{e.current=t}),[t]),e}let Cb=function(t){let r=Pb(t);return e.useCallback(((...t)=>r.current(...t)),[r])};function Db(...t){return Array.from(new Set(t.flatMap((t=>"string"==typeof t?t.split(" "):[])))).filter(Boolean).join(" ")}function Mb(t,e,...r){if(t in e){let n=e[t];return"function"==typeof n?n(...r):n}let n=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map((t=>`"${t}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Mb),n}var Rb,Ib=((Rb=Ib||{})[Rb.None=0]="None",Rb[Rb.RenderStrategy=1]="RenderStrategy",Rb[Rb.Static=2]="Static",Rb),Nb=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Nb||{});function Fb(){let t=function(){let t=n([]),e=g((e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)}),[]);return(...r)=>{if(!r.every((t=>null==t)))return t.current=r,e}}();return g((e=>function({ourProps:t,theirProps:e,slot:r,defaultTag:n,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Lb;let c=Bb(e,t);if(i)return zb(c,r,n,a,s);let l=null!=o?o:0;if(2&l){let{static:t=!1,...e}=c;if(t)return zb(e,r,n,a,s)}if(1&l){let{unmount:t=!0,...e}=c;return Mb(t?0:1,{0:()=>null,1:()=>zb({...e,hidden:!0,style:{display:"none"}},r,n,a,s)})}return zb(c,r,n,a,s)}({mergeRefs:t,...e})),[t])}function zb(t,e={},r,n,o){let{as:i=r,children:a,refName:s="ref",...l}=Hb(t,["unmount","static"]),u=void 0!==t.ref?{[s]:t.ref}:{},d="function"==typeof a?a(e):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(e)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let f={};if(e){let t=!1,r=[];for(let[n,o]of Object.entries(e))"boolean"==typeof o&&(t=!0),!0===o&&r.push(n.replace(/([A-Z])/g,(t=>`-${t.toLowerCase()}`)));if(t){f["data-headlessui-state"]=r.join(" ");for(let t of r)f[`data-${t}`]=""}}if(i===c&&(Object.keys($b(l)).length>0||Object.keys($b(f)).length>0)){if(y(d)&&!(Array.isArray(d)&&d.length>1)){let t=d.props,e=null==t?void 0:t.className,r="function"==typeof e?(...t)=>Db(e(...t),l.className):Db(e,l.className),n=r?{className:r}:{},i=Bb(d.props,$b(Hb(l,["ref"])));for(let t in f)t in i&&delete f[t];return v(d,Object.assign({},i,f,u,{ref:o(Ub(d),u.ref)},n))}if(Object.keys($b(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys($b(l)).concat(Object.keys($b(f))).map((t=>` - ${t}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((t=>` - ${t}`)).join("\n")].join("\n"))}return h(i,Object.assign({},Hb(l,["ref"]),i!==c&&u,i!==c&&f),d)}function Lb(...t){return t.every((t=>null==t))?void 0:e=>{for(let r of t)null!=r&&("function"==typeof r?r(e):r.current=e)}}function Bb(...t){if(0===t.length)return{};if(1===t.length)return t[0];let e={},r={};for(let n of t)for(let t in n)t.startsWith("on")&&"function"==typeof n[t]?(null!=r[t]||(r[t]=[]),r[t].push(n[t])):e[t]=n[t];if(e.disabled||e["aria-disabled"])for(let t in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(t)&&(r[t]=[t=>{var e;return null==(e=null==t?void 0:t.preventDefault)?void 0:e.call(t)}]);for(let t in r)Object.assign(e,{[t](e,...n){let o=r[t];for(let t of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;t(e,...n)}}});return e}function Vb(t){var e;return Object.assign(r(t),{displayName:null!=(e=t.displayName)?e:t.name})}function $b(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function Hb(t,e=[]){let r=Object.assign({},t);for(let t of e)t in r&&delete r[t];return r}function Ub(t){return e.version.split(".")[0]>="19"?t.props.ref:t.ref}let Wb=Symbol();function Yb(...t){let e=n(t);o((()=>{e.current=t}),[t]);let r=Cb((t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)}));return t.every((t=>null==t||(null==t?void 0:t[Wb])))?void 0:r}var Xb,qb;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Xb=null==process?void 0:process.env)?void 0:Xb.NODE_ENV)&&void 0===(null==(qb=null==Element?void 0:Element.prototype)?void 0:qb.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var Kb=(t=>(t[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t))(Kb||{});function Gb(t){let e={};for(let r in t)!0===t[r]&&(e[`data-${r}`]="");return e}function Zb(t,e,r,o){let[i,a]=l(r),{hasFlag:s,addFlag:c,removeFlag:u}=function(t=0){let[e,r]=l(t),n=g((t=>r(t)),[e]),o=g((t=>r((e=>e|t))),[e]),i=g((t=>(e&t)===t),[e]),a=g((t=>r((e=>e&~t))),[r]),s=g((t=>r((e=>e^t))),[r]);return{flags:e,setFlag:n,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(t&&i?3:0),d=n(!1),f=n(!1),h=Ab();return jb((()=>{var n;if(t)return r&&a(!0),e?(null==(n=null==o?void 0:o.start)||n.call(o,r),function(t,{prepare:e,run:r,done:n,inFlight:o}){let i=Tb();return function(t,{inFlight:e,prepare:r}){if(null!=e&&e.current)return void r();let n=t.style.transition;t.style.transition="none",r(),t.offsetHeight,t.style.transition=n}(t,{prepare:e,inFlight:o}),i.nextFrame((()=>{r(),i.requestAnimationFrame((()=>{i.add(function(t,e){var r,n;let o=Tb();if(!t)return o.dispose;let i=!1;o.add((()=>{i=!0}));let a=null!=(n=null==(r=t.getAnimations)?void 0:r.call(t).filter((t=>t instanceof CSSTransition)))?n:[];return 0===a.length?(e(),o.dispose):(Promise.allSettled(a.map((t=>t.finished))).then((()=>{i||e()})),o.dispose)}(t,n))}))})),i.dispose}(e,{inFlight:d,prepare(){f.current?f.current=!1:f.current=d.current,d.current=!0,!f.current&&(r?(c(3),u(4)):(c(4),u(2)))},run(){f.current?r?(u(3),c(4)):(u(4),c(3)):r?u(1):c(1)},done(){var t;f.current&&"function"==typeof e.getAnimations&&e.getAnimations().length>0||(d.current=!1,u(7),r||a(!1),null==(t=null==o?void 0:o.end)||t.call(o,r))}})):void(r&&c(3))}),[t,r,e,h]),t?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let Qb=i(null);Qb.displayName="OpenClosedContext";var Jb=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Jb||{});function ty(){return d(Qb)}function ey({value:t,children:r}){return e.createElement(Qb.Provider,{value:t},r)}function ry(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in t&&t.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[r,n]=t.useState(Ob.isHandoffComplete);return r&&!1===Ob.isHandoffComplete&&n(!1),t.useEffect((()=>{!0!==r&&n(!0)}),[r]),t.useEffect((()=>Ob.handoff()),[]),!e&&r}function ny(t){var r;return!!(t.enter||t.enterFrom||t.enterTo||t.leave||t.leaveFrom||t.leaveTo)||(null!=(r=t.as)?r:ly)!==c||1===e.Children.count(t.children)}let oy=i(null);oy.displayName="TransitionContext";var iy=(t=>(t.Visible="visible",t.Hidden="hidden",t))(iy||{});let ay=i(null);function sy(t){return"children"in t?sy(t.children):t.current.filter((({el:t})=>null!==t.current)).filter((({state:t})=>"visible"===t)).length>0}function cy(t,e){let r=Pb(t),o=n([]),i=function(){let t=n(!1);return jb((()=>(t.current=!0,()=>{t.current=!1})),[]),t}(),a=Ab(),s=Cb(((t,e=Nb.Hidden)=>{let n=o.current.findIndex((({el:e})=>e===t));-1!==n&&(Mb(e,{[Nb.Unmount](){o.current.splice(n,1)},[Nb.Hidden](){o.current[n].state="hidden"}}),a.microTask((()=>{var t;!sy(o)&&i.current&&(null==(t=r.current)||t.call(r))})))})),c=Cb((t=>{let e=o.current.find((({el:e})=>e===t));return e?"visible"!==e.state&&(e.state="visible"):o.current.push({el:t,state:"visible"}),()=>s(t,Nb.Unmount)})),l=n([]),d=n(Promise.resolve()),f=n({enter:[],leave:[]}),h=Cb(((t,r,n)=>{l.current.splice(0),e&&(e.chains.current[r]=e.chains.current[r].filter((([e])=>e!==t))),null==e||e.chains.current[r].push([t,new Promise((t=>{l.current.push(t)}))]),null==e||e.chains.current[r].push([t,new Promise((t=>{Promise.all(f.current[r].map((([t,e])=>e))).then((()=>t()))}))]),"enter"===r?d.current=d.current.then((()=>null==e?void 0:e.wait.current)).then((()=>n(r))):n(r)})),p=Cb(((t,e,r)=>{Promise.all(f.current[e].splice(0).map((([t,e])=>e))).then((()=>{var t;null==(t=l.current.shift())||t()})).then((()=>r(e)))}));return u((()=>({children:o,register:c,unregister:s,onStart:h,onStop:p,wait:d,chains:f})),[c,s,o,h,p,f,d])}ay.displayName="NestingContext";let ly=c,uy=Ib.RenderStrategy;let dy=Vb((function(t,r){let{show:o,appear:i=!1,unmount:a=!0,...s}=t,d=n(null),f=Yb(...ny(t)?[d,r]:null===r?[]:[r]);ry();let h=ty();if(void 0===o&&null!==h&&(o=(h&Jb.Open)===Jb.Open),void 0===o)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,g]=l(o?"visible":"hidden"),m=cy((()=>{o||g("hidden")})),[b,y]=l(!0),v=n([o]);jb((()=>{!1!==b&&v.current[v.current.length-1]!==o&&(v.current.push(o),y(!1))}),[v,o]);let w=u((()=>({show:o,appear:i,initial:b})),[o,i,b]);jb((()=>{o?g("visible"):!sy(m)&&null!==d.current&&g("hidden")}),[o,m]);let x={unmount:a},_=Cb((()=>{var e;b&&y(!1),null==(e=t.beforeEnter)||e.call(t)})),k=Cb((()=>{var e;b&&y(!1),null==(e=t.beforeLeave)||e.call(t)})),E=Fb();return e.createElement(ay.Provider,{value:m},e.createElement(oy.Provider,{value:w},E({ourProps:{...x,as:c,children:e.createElement(fy,{ref:f,...x,...s,beforeEnter:_,beforeLeave:k})},theirProps:{},defaultTag:c,features:uy,visible:"visible"===p,name:"Transition"})))})),fy=Vb((function(t,r){var i,a;let{transition:s=!0,beforeEnter:c,afterEnter:u,beforeLeave:f,afterLeave:h,enter:p,enterFrom:g,enterTo:m,entered:b,leave:y,leaveFrom:v,leaveTo:w,...x}=t,[_,k]=l(null),E=n(null),S=ny(t),O=Yb(...S?[E,r,k]:null===r?[]:[r]),T=null==(i=x.unmount)||i?Nb.Unmount:Nb.Hidden,{show:A,appear:j,initial:P}=function(){let t=d(oy);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),[C,D]=l(A?"visible":"hidden"),M=function(){let t=d(ay);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:R,unregister:I}=M;jb((()=>R(E)),[R,E]),jb((()=>{if(T===Nb.Hidden&&E.current)return A&&"visible"!==C?void D("visible"):Mb(C,{hidden:()=>I(E),visible:()=>R(E)})}),[C,E,R,I,A,T]);let N=ry();jb((()=>{if(S&&N&&"visible"===C&&null===E.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[E,C,N,S]);let F=P&&!j,z=j&&A&&P,L=n(!1),B=cy((()=>{L.current||(D("hidden"),I(E))}),M),V=Cb((t=>{L.current=!0;let e=t?"enter":"leave";B.onStart(E,e,(t=>{"enter"===t?null==c||c():"leave"===t&&(null==f||f())}))})),$=Cb((t=>{let e=t?"enter":"leave";L.current=!1,B.onStop(E,e,(t=>{"enter"===t?null==u||u():"leave"===t&&(null==h||h())})),"leave"===e&&!sy(B)&&(D("hidden"),I(E))}));o((()=>{S&&s||(V(A),$(A))}),[A,S,s]);let H=!(!s||!S||!N||F),[,U]=Zb(H,_,A,{start:V,end:$}),W=$b({ref:O,className:(null==(a=Db(x.className,z&&p,z&&g,U.enter&&p,U.enter&&U.closed&&g,U.enter&&!U.closed&&m,U.leave&&y,U.leave&&!U.closed&&v,U.leave&&U.closed&&w,!U.transition&&A&&b))?void 0:a.trim())||void 0,...Gb(U)}),Y=0;"visible"===C&&(Y|=Jb.Open),"hidden"===C&&(Y|=Jb.Closed),U.enter&&(Y|=Jb.Opening),U.leave&&(Y|=Jb.Closing);let X=Fb();return e.createElement(ay.Provider,{value:B},e.createElement(ey,{value:Y},X({ourProps:W,theirProps:x,defaultTag:ly,features:uy,visible:"visible"===C,name:"Transition.Child"})))})),hy=Vb((function(t,r){let n=null!==d(oy),o=null!==ty();return e.createElement(e.Fragment,null,!n&&o?e.createElement(dy,{ref:r,...t}):e.createElement(fy,{ref:r,...t}))})),py=Object.assign(dy,{Child:hy,Root:dy});var gy={TransitionDropdown:function(t){var r=t.visibility,n=t.children;return e.createElement(py,{as:c,show:r,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-50 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0"},n)},TransitionFadeIn:function(t){var r=t.visibility,n=t.children;return e.createElement(py,{as:c,show:r,enter:"transition-all ease-in-out duration-700 dalay-[0ms]",enterFrom:"opacity-0 translate-y-6",enterTo:"opacity-100 translate-y-0",leave:"transition-all ease-in-out duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0"},n)}},my={circle:"rounded-full",square:"rounded-none",roundedSquare:"rounded-md",softRoundedSquare:"rounded-lg",pill:"rounded-2xl"},by={xs:"px-2 py-1 text-xs",sm:"px-3 py-2 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"};function yy(t){var r,n=t.text,o=t.variant,i=void 0===o?"default":o,a=t.shape,s=void 0===a?"roundedSquare":a,c=t.size,l=void 0===c?"md":c,u=t.styles;return console.log(n),e.createElement(gy.TransitionDropdown,{visibility:!!n},e.createElement("div",{className:E((r={"font-poppins font-light text-sm":!0},r["".concat(O[i])]=i,r["".concat(my[s])]=s,r["".concat(by[l])]=l,r["".concat(u)]=u,r))},n))}function vy(t){var r=t.children,n=t.isLoading,o=t.isSuccess,i=void 0===o||o,a=t.isError,s=t.error;return e.createElement("div",null,n&&e.createElement("div",{className:"flex w-full py-10 items-center justify-center"},e.createElement(_h,{className:"animate-spin"})),a&&e.createElement("div",{className:"p-5"},e.createElement(yy,{text:s,variant:"danger"})),i&&e.createElement("div",null,r))}var wy={square:"rounded-none",circle:"rounded-full",roundedSquare:"rounded-md",softRoundedSquare:"rounded-lg",pill:"rounded-full px-4"},xy={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-base",lg:"px-5 py-3 text-lg",xl:"px-6 py-4 text-xl"},_y=function(t){var r,n=t.type,o=void 0===n?"button":n,i=t.icon,a=t.text,s=t.children,c=t.loading,l=t.disabled,u=t.ghost,d=t.block,f=t.variant,h=void 0===f?"default":f,p=t.shape,g=void 0===p?"square":p,m=t.size,b=void 0===m?"md":m,y=t.styles,v=t.onClick;return e.createElement("button",{type:o,onClick:v,disabled:l||c,className:E((r={"flex flex-row items-center justify-center gap-2":!0},r["".concat(S[h])]=!u&&h,r["".concat(A[h])]=u&&h,r["".concat(wy[g])]=g,r["".concat(xy[b])]=b,r["w-full"]=d,r["brightness-75 grayscale text-gray-900 cursor-not-allowed"]=c||l,r["hover:cursor-pointer hover:brightness-110"]=!c&&!l,r["transition-all ease-in-out"]=!0,r["".concat(y)]=y,r))},c&&e.createElement(_h,{className:"animate-spin"}),i&&e.createElement("div",null,i),a&&e.createElement("div",null,a),s&&s)};function ky(t){var r=t.rowData,n=t.headers;return e.createElement("tr",{className:"odd:theme-bg-sm even:theme-bg-md"},Object.keys(n).map((function(t){return e.createElement("td",{key:t,className:"px-4 py-3 border-b theme-border-md theme-text-sm text-left"},r[t])})))}function Ey(t){var r=t.title,n=t.headers,o=t.data,i=t.enableSelect,a=void 0===i||i,s=t.maxRowCount,c=void 0===s?10:s,d=l(0),f=d[0],h=d[1],p=l(null),g=p[0],m=p[1],b=l(""),y=b[0],v=b[1],w=function(t){t>=0&&t<k&&h(t)},x=o.filter((function(t){return Object.values(t).some((function(t){return String(t).toLowerCase().includes(y.toLowerCase())}))})),_=u((function(){return null!==g?ba([],x,!0).sort((function(t,e){return t[g.key]<e[g.key]?"ascending"===g.direction?-1:1:t[g.key]>e[g.key]?"ascending"===g.direction?1:-1:0})):x}),[x,g]),k=Math.ceil(_.length/c),S=_.slice(f*c,(f+1)*c);return e.createElement("div",{className:E({"py-3 overflow-x-auto":!0,"select-none":!a})},e.createElement("div",{className:"mb-4 w-full flex flex-row-reverse items-center justify-between"},e.createElement("input",{type:"text",placeholder:"Search...",value:y,onChange:function(t){v(t.target.value),h(0)},className:"px-4 py-2 border dark:bg-primary-300/10 border-dark-300/30 dark:border-primary-400 rounded-md w-[300px] focus:border-secondary-500 focus:outline-none theme-text-md"}),r&&e.createElement("div",{className:"font-bold text-xl theme-text-md border-l-2 border-l-dark-300 pl-3 py-1"},r)),e.createElement("table",{className:"min-w-full border theme-border-md"},e.createElement("thead",{className:"theme-gradient-to-r-xs theme-bg-md theme-text-md"},e.createElement("tr",null,Object.entries(n).map((function(t){var r=t[0],n=t[1];return e.createElement("th",{key:n,onClick:function(){return function(t){var e="ascending";g&&g.key===t&&"ascending"===g.direction&&(e="descending"),m({key:t,direction:e})}(r)},className:E({"px-4 py-3 border-b theme-border-md text-left font-bold hover:cursor-pointer":!0,"theme-bg-sm":(null==g?void 0:g.key)===r})},n,(null==g?void 0:g.key)===r?"ascending"===g.direction?" ▲":" ▼":"")})))),e.createElement("tbody",null,S.map((function(t,r){return e.createElement(ky,{key:r,headers:n,rowData:t})})))),e.createElement("div",{className:"flex justify-between items-center mt-4"},e.createElement(_y,{type:"button",text:"<",shape:"circle",size:"sm",styles:"theme-bg-md",disabled:0===f,onClick:function(){return w(f-1)}}),e.createElement("span",{className:"text-sm theme-text-sm"},"Page ",f+1," of ",k),e.createElement(_y,{type:"button",text:">",shape:"circle",size:"sm",styles:"theme-bg-md",disabled:f===k-1,onClick:function(){return w(f+1)}})))}function Sy(t){var r=t.title,n=t.headers,o=t.data,i=t.isLoading,a=t.isSuccess,s=void 0===a||a,c=t.isError,l=t.error,u=t.enableSelect,d=void 0===u||u,f=t.maxRowCount,h=void 0===f?10:f;return e.createElement("div",null,e.createElement(vy,{isLoading:i,isSuccess:s,isError:c,error:l},e.createElement(Ey,{title:r,headers:n,data:o,enableSelect:d,maxRowCount:h})))}function Oy(t){var r,n=t.text,o=t.styles;return e.createElement("span",{className:E((r={"text-xs bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 px-2 py-1 rounded mr-2 mt-1":!0},r["".concat(o)]=o,r))},n)}function Ty(t){var r,n=t.name,o=t.visibility,i=t.variant,a=void 0===i?"default":i,s=t.styles;return e.createElement(gy.TransitionDropdown,{visibility:o},e.createElement("div",{className:E((r={"font-medium text-sm py-1":!0},r["".concat(T[a])]=a,r["transition-all ease-in-out"]=!0,r["".concat(s)]=s,r))},e.createElement(wb,{name:n})))}function Ay(t){return rh({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(t)}function jy(t){return rh({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"}}]})(t)}function Py(t){return rh({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"}}]})(t)}function Cy(t){return rh({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"}}]})(t)}function Dy(t){return rh({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"}}]})(t)}var My=function(t){var r=t.onClick,n=l(!1),o=n[0],i=n[1];return e.createElement("div",{className:"text-dark-200 absolute text-2xl right-3 top-[16px] cursor-pointer",onClick:function(){return r(t=!o),void i(t);var t}},o?e.createElement(jy,null):e.createElement(Py,null))},Ry=function(t){var r,n=t.type,o=void 0===n?"text":n,i=t.placeholder,a=t.styles,s=t.step,c=pa(t,["type","placeholder","styles","step"]),u=fb(c),d=u[0],f=u[1],h=l(!1),p=h[0],g=h[1],m="password"===o?p?"text":"password":o;return e.createElement("div",{className:"relative w-full"},e.createElement(hb,ha({type:m,step:"number"===m&&s?s:void 0},d,c,{placeholder:i,className:E((r={"border peer w-full rounded-sm bg-primary-300/10 pt-5 px-3 pb-2 text-md theme-text-md placeholder-transparent placeholder-shown:p-3 focus:outline-none h-[50px]":!0,"border-primary-400 focus:border-secondary-500":!(f.touched&&f.error),"border-danger-500":f.touched&&f.error},r["".concat(a)]=a,r))})),e.createElement("label",{className:E({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none":!0,"transition-all ease-in-out":!0})},i),"password"===o&&e.createElement(My,{onClick:function(t){return g(t)}}),e.createElement(Ty,{name:d.name,visibility:!(!f.touched||!f.error),variant:"danger"}))};function Iy(t){var r=t.placeholder,n=t.options,o=pa(t,["placeholder","options"]),i=o.name,a=fb(o),s=a[0],c=a[1];return e.createElement("div",null,e.createElement("label",{className:E({"theme-text-sm text-sm":!0})},r),e.createElement(hb,{name:i},(function(t){var r=t.field;return n.map((function(t){return e.createElement("div",{key:t.label,className:E({"flex flex-row gap-2 items-center mx-1 my-2":!0})},e.createElement("input",ha({type:"checkbox",id:t.value},r,o,{value:t.value,checked:r.value.includes(t.value),className:E("appearance-none w-4 h-4 border-2 border-primary-400 rounded-md cursor-pointer transition-all duration-300","checked:bg-secondary-700 checked:border-primary-400 checked:text-white","relative checked:before:content-['✓'] checked:before:absolute checked:before:top-0 checked:before:left-0 checked:before:w-full checked:before:h-full checked:before:flex checked:before:items-center checked:before:justify-center checked:before:text-white checked:before:font-bold checked:before:text-xs")})),e.createElement("label",{htmlFor:t.value,className:E({"theme-text-md text-sm":!0})},t.label))}))})),e.createElement(Ty,{name:s.name,visibility:!(!c.touched||!c.error),variant:"danger"}))}var Ny=function(t){var r,n=t.placeholder,o=t.styles,i=pa(t,["placeholder","styles"]),a=fb(i),s=a[0],c=a[1];return e.createElement("div",{className:"relative w-full"},e.createElement(hb,ha({type:"date"},s,i,{placeholder:n,className:E((r={"border border-primary-400 peer w-full rounded-sm bg-primary-300/10 pt-5 px-3 pb-2 text-md theme-text-md placeholder-transparent placeholder-shown:p-3 focus:border-secondary-500 focus:outline-none h-[50px]":!0,"border-danger-500":c.touched&&c.error,"transition-all ease-in-out":!0},r["".concat(o)]=o,r))})),e.createElement("label",{className:E({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px] peer-placeholder-shown:text-base peer-placeholder-shown:top-3 pointer-events-none":!0,"transition-all ease-in-out":!0})},n),c.touched&&c.error&&e.createElement(Ty,{name:s.name,visibility:!0,variant:"danger"}))};function Fy(t){var r=t.imageUrl,n=t.secure,o=void 0===n||n,i=t.alt,a=void 0===i?"image":i;return e.createElement("div",{className:"h-[200px] w-[300px]"},e.createElement("div",{className:"w-full h-full overflow-hidden bg-gray-900 flex items-center justify-center"},e.createElement(Nf,{cloudName:process.env.REACT_APP_CLOUDINARY_CLOUD_NAME||"",publicId:r||"public/placeholders/placeholder-dark_uwuxct",secure:o,alt:a,className:"w-full h-full object-cover"})))}function zy(t){return rh({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z"}}]})(t)}function Ly(t){return rh({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"}}]})(t)}function By(t){return rh({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(t)}var Vy=r((function(t,r){var n=t.title,i=void 0===n?"Upload Image":n,a=t.uploadDir,s=void 0===a?"eg-frontend-admin-temp":a,c=t.onValueChanged,u=void 0===c?function(){}:c,d=t.disableSetValue,h=void 0!==d&&d,p=fb(pa(t,["title","uploadDir","onValueChanged","disableSetValue"])),g=p[0],m=p[1],b=p[2],y=g.value,v=b.setValue,w=l(null),x=w[0],_=w[1],k=l(y),S=k[0],O=k[1],T=l(!1),A=T[0],j=T[1],P=l(null),C=P[0],D=P[1],M=function(){D(null),_(null),O(""),h||v(""),j(!1)};return f(r,(function(){return{handleResetClick:M}})),o((function(){h||v(S)}),[S,v,h]),e.createElement("div",{className:"w-full"},e.createElement("div",{className:"inline-flex w-full"},e.createElement("div",{className:"relative inline-flex gap-3 items-center"},!C&&!S&&e.createElement("div",null,e.createElement("input",{id:"".concat(g.name),type:"file",className:"hidden",onChange:function(t){var e=t.target.files[0];_(e);var r=new FileReader;r.readAsDataURL(e),r.onload=function(){r.result&&"string"==typeof r.result&&D(r.result)}},accept:"image/*"}),e.createElement("label",{className:E({"border-2 border-dashed border-gray-700 bg-gray-900 h-[200px] w-[300px] flex flex-col gap-2 items-center justify-center group":!0,"hover:cursor-pointer hover:border-solid hover:border-gray-600 hover:bg-gray-900/80":!0,"transition-all ease-in-out duration-150":!0}),htmlFor:"".concat(g.name)},e.createElement("div",{className:"text-4xl text-gray-300 group-hover:text-gray-400"},e.createElement(zy,null)),e.createElement("div",{className:"text-xl font-bold text-gray-500 group-hover:text-gray-500"},i))),C&&!S&&e.createElement("div",{className:"h-[200px] w-[300px] overflow-hidden"},e.createElement("img",{src:C,alt:"preview",className:"w-full h-full object-cover"})),A&&e.createElement("div",{className:"absolute"},e.createElement("div",{className:"h-[200px] w-[300px] bg-black opacity-50"}),e.createElement("div",{className:"absolute top-0 left-0 w-full h-full flex items-center justify-center"},e.createElement(_h,{className:"animate-spin"}))),!A&&S&&e.createElement(Fy,{imageUrl:S,alt:S||"image"}),(C||S)&&e.createElement("div",{className:"flex flex-col gap-1 text-3xl"},e.createElement("div",{className:" text-green-600 hover:cursor-pointer",onClick:function(){return ga(void 0,void 0,void 0,(function(){var t,e,r,n;return ma(this,(function(o){switch(o.label){case 0:if(!x)return[2];j(!0),(t=new FormData).append("file",x),e=process.env.REACT_APP_CLOUDINARY_UPLOAD_PRESET||"",r=process.env.REACT_APP_CLOUDINARY_CLOUD_NAME||"",t.append("upload_preset",e),t.append("cloud_name",r),t.append("folder",s),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch("https://api.cloudinary.com/v1_1/".concat(r,"/image/upload"),{method:"POST",body:t})];case 2:return[4,o.sent().json()];case 3:return n=o.sent(),O(n.public_id),h||v(n.public_id),u(n.public_id),j(!1),[3,5];case 4:return o.sent(),j(!1),[3,5];case 5:return[2]}}))}))},hidden:!!S},e.createElement(Ly,null)),e.createElement("div",{className:"text-red-500 hover:cursor-pointer",onClick:M},e.createElement(By,null))))),e.createElement(Ty,{name:g.name,visibility:!(!m.touched||!m.error),variant:"danger"}))}));function $y(t){var r=t.title,i=void 0===r?"Upload Images":r,a=t.uploadDir,s=void 0===a?"eg-frontend-admin-temp":a,c=fb(pa(t,["title","uploadDir"])),l=c[0],u=c[1],d=c[2],f=l.value,h=d.setValue,p=n(null);return o((function(){}),[f]),e.createElement("div",null,e.createElement("div",{className:"flex flex-row flex-wrap gap-5 w-ful"},f.map((function(t,r){return e.createElement(Fy,{key:r,imageUrl:t})})),e.createElement("div",null,e.createElement(Vy,{ref:p,key:"new_img",name:"new_img",title:i,onValueChanged:function(t){h(ba(ba([],f,!0),[t],!1)),p.current&&p.current.handleResetClick()},disableSetValue:!0,uploadDir:s}))),e.createElement(Ty,{name:l.name,visibility:!(!u.touched||!u.error),variant:"danger"}))}function Hy(t){var r=t.placeholder,n=t.options,o=pa(t,["placeholder","options"]),i=o.name,a=fb(o),s=a[0],c=a[1];return e.createElement("div",null,e.createElement("label",{className:E({" theme-text-sm text-[13.5px]":!0})},r),e.createElement(hb,{name:i},(function(t){var r=t.field;return n.map((function(t){return e.createElement("div",{key:t.label,className:E({"flex flex-row gap-2 items-center mx-1 my-2":!0})},e.createElement("input",ha({type:"radio",id:t.value},r,o,{value:t.value,checked:r.value===t.value,className:E({"appearance-none w-4 h-4 border-2 border-primary-400 rounded-full cursor-pointer transition-all duration-300":!0,"checked:bg-secondary-700 checked:border-primary-400":r.value===t.value})})),e.createElement("label",{htmlFor:t.value,className:E({"theme-text-md text-sm":!0})},t.label))}))})),e.createElement(Ty,{name:s.name,visibility:!(!c.touched||!c.error),variant:"danger"}))}function Uy(t){var r,n=t.starAmount,i=void 0===n?5:n,a=t.styles,s=pa(t,["starAmount","styles"]),c=s.name,u=fb(s),d=u[0],f=u[1],h=Ym(),p=l(Number(d.value)||0),g=p[0],m=p[1],b=l(null),y=b[0],v=b[1];o((function(){m(Number(d.value))}),[d.value]);return e.createElement("div",{className:E((r={"inline-flex gap-[4px] text-[20px]":!0},r["".concat(a)]=a,r))},e.createElement(hb,{name:c},(function(){return Array.from({length:i},(function(t,r){return e.createElement("button",{type:"button",key:r,id:r.toString(),onClick:function(){return function(t){m(t+1),h.setFieldValue(c,t+1)}(r)},onMouseEnter:function(){return v(r)},onMouseLeave:function(){return v(null)},className:E({"text-yellow-600":r<=(null!=y?y:g-1),"text-gray-400":r>(null!=y?y:g-1)})},r<=(null!=y?y:g-1)?e.createElement(ah,null):e.createElement(ch,null))}))})),e.createElement(Ty,{name:d.name,visibility:!(!f.touched||!f.error),variant:"danger"}))}function Wy(t){var r,n=t.placeholder,o=t.options,i=t.styles,a=pa(t,["placeholder","options","styles"]),s=fb(a),c=s[0],l=s[1];return e.createElement("div",{className:"relative"},e.createElement(hb,ha({as:"select"},a,{className:E((r={"border peer w-full rounded-sm bg-primary-300/10 pt-5 px-3 pb-2 text-md theme-text-md placeholder-transparent placeholder-shown:p-3 focus:border-secondary-500 focus:outline-none h-[50px]":!0,"border-primary-400":!(l.touched&&l.error),"border-red-500":l.touched&&l.error,"transition-all ease-in-out":!0},r["".concat(i)]=i,r))}),o.map((function(t){return e.createElement("option",{key:t.value,value:t.value},t.label)}))),e.createElement("label",{className:E({"absolute left-2 top-[0.7px] theme-text-sm text-[13.5px]":!0})},n),e.createElement(Ty,{name:c.name,visibility:!(!l.touched||!l.error),variant:"danger"}))}function Yy(t){var r=t.label,n=t.description,o=t.showStatus,i=void 0!==o&&o,a=pa(t,["label","description","showStatus"]),s=a.name,c=fb(a),l=c[0],u=c[1],d=c[2];return e.createElement("div",null,e.createElement("div",{className:"flex flex-row justify-between w-full gap-3"},e.createElement("div",{className:"flex flex-col gap-1"},r&&e.createElement("label",{className:"theme-text-sm text-[13.5px]"},r),n&&e.createElement("label",{className:"theme-text-md text-[12px] max-w-[500px]"},n)),e.createElement(hb,{name:s},(function(){return e.createElement("label",{className:"relative inline-flex cursor-pointer"},e.createElement("input",{type:"checkbox",className:"sr-only peer",checked:l.value,readOnly:!0}),e.createElement("div",{onClick:function(){return d.setValue(!l.value)},className:E("w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer dark:bg-dark-100","peer-checked:after:translate-x-full peer-checked:after:border-white","after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white","after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all","dark:border-dark-200 peer-checked:bg-secondary-600")}),i&&e.createElement("span",{className:"ml-3 text-sm font-medium text-dark-900 dark:text-dark-100"},l.value?"ON":"OFF"))}))),e.createElement(Ty,{name:s,visibility:!(!u.touched||!u.error),variant:"danger"}))}function Xy(t){var r,n,o=t.placeholder,i=t.limit,a=t.styles,s=pa(t,["placeholder","limit","styles"]),c=fb(s),l=c[0],u=c[1];return e.createElement("div",null,e.createElement("div",{className:"relative"},e.createElement(hb,ha({as:"textarea",placeholder:o},s,{className:E((r={"border w-full bg-primary-300/10 theme-text-md outline-none px-3 py-1 rounded-sm resize-none focus:resize-none focus:outline-none placeholder:theme-text-sm":!0,"transition-all ease-in-out":!0,"border-primary-400 focus:border-secondary-500":!(u.touched&&u.error),"border-danger-500":u.touched&&u.error},r["".concat(a)]=a,r))})),e.createElement("div",{className:"absolute bottom-0 right-0 p-3 text-xs text-dark-50 font-semibold"},null===(n=l.value)||void 0===n?void 0:n.length,"/",i)),e.createElement(Ty,{name:l.name,visibility:!(!u.touched||!u.error),variant:"danger"}))}var qy=function(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"bg-black/75 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden":!0},r["".concat(o)]=o,r))},n)};const Ky=t=>"number"==typeof t&&!isNaN(t),Gy=t=>"string"==typeof t,Zy=t=>"function"==typeof t,Qy=t=>Gy(t)||Zy(t)?t:null,Jy=t=>y(t)||Gy(t)||Zy(t)||Ky(t);function tv(t){let{enter:r,exit:i,appendPosition:a=!1,collapse:s=!0,collapseDuration:c=300}=t;return function(t){let{children:l,position:u,preventExitTransition:d,done:f,nodeRef:h,isIn:p,playToast:g}=t;const b=a?`${r}--${u}`:r,y=a?`${i}--${u}`:i,v=n(0);return m((()=>{const t=h.current,e=b.split(" "),r=n=>{n.target===h.current&&(g(),t.removeEventListener("animationend",r),t.removeEventListener("animationcancel",r),0===v.current&&"animationcancel"!==n.type&&t.classList.remove(...e))};t.classList.add(...e),t.addEventListener("animationend",r),t.addEventListener("animationcancel",r)}),[]),o((()=>{const t=h.current,e=()=>{t.removeEventListener("animationend",e),s?function(t,e,r){void 0===r&&(r=300);const{scrollHeight:n,style:o}=t;requestAnimationFrame((()=>{o.minHeight="initial",o.height=n+"px",o.transition=`all ${r}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(e,r)}))}))}(t,f,c):f()};p||(d?e():(v.current=1,t.className+=` ${y}`,t.addEventListener("animationend",e)))}),[p]),e.createElement(e.Fragment,null,l)}}function ev(t,e){return null!=t?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const rv=new Map;let nv=[];const ov=new Set,iv=t=>ov.forEach((e=>e(t))),av=()=>rv.size>0;function sv(t,e){var r;if(e)return!(null==(r=rv.get(e))||!r.isToastActive(t));let n=!1;return rv.forEach((e=>{e.isToastActive(t)&&(n=!0)})),n}function cv(t,e){Jy(t)&&(av()||nv.push({content:t,options:e}),rv.forEach((r=>{r.buildToast(t,e)})))}function lv(t,e){rv.forEach((r=>{null!=e&&null!=e&&e.containerId?(null==e?void 0:e.containerId)===r.id&&r.toggle(t,null==e?void 0:e.id):r.toggle(t,null==e?void 0:e.id)}))}function uv(t){const{subscribe:e,getSnapshot:r,setProps:o}=n(function(t){const e=t.containerId||1;return{subscribe(r){const n=function(t,e,r){let n=1,o=0,i=[],a=[],s=[],c=e;const l=new Map,u=new Set,d=()=>{s=Array.from(l.values()),u.forEach((t=>t()))},f=t=>{a=null==t?[]:a.filter((e=>e!==t)),d()},h=t=>{const{toastId:e,onOpen:n,updateId:o,children:i}=t.props,s=null==o;t.staleId&&l.delete(t.staleId),l.set(e,t),a=[...a,t.props.toastId].filter((e=>e!==t.staleId)),d(),r(ev(t,s?"added":"updated")),s&&Zy(n)&&n(y(i)&&i.props)};return{id:t,props:c,observe:t=>(u.add(t),()=>u.delete(t)),toggle:(t,e)=>{l.forEach((r=>{null!=e&&e!==r.props.toastId||Zy(r.toggle)&&r.toggle(t)}))},removeToast:f,toasts:l,clearQueue:()=>{o-=i.length,i=[]},buildToast:(e,a)=>{if((e=>{let{containerId:r,toastId:n,updateId:o}=e;const i=r?r!==t:1!==t,a=l.has(n)&&null==o;return i||a})(a))return;const{toastId:s,updateId:u,data:p,staleId:g,delay:m}=a,b=()=>{f(s)},w=null==u;w&&o++;const x={...c,style:c.toastStyle,key:n++,...Object.fromEntries(Object.entries(a).filter((t=>{let[e,r]=t;return null!=r}))),toastId:s,updateId:u,data:p,closeToast:b,isIn:!1,className:Qy(a.className||c.toastClassName),bodyClassName:Qy(a.bodyClassName||c.bodyClassName),progressClassName:Qy(a.progressClassName||c.progressClassName),autoClose:!a.isLoading&&(_=a.autoClose,k=c.autoClose,!1===_||Ky(_)&&_>0?_:k),deleteToast(){const t=l.get(s),{onClose:e,children:n}=t.props;Zy(e)&&e(y(n)&&n.props),r(ev(t,"removed")),l.delete(s),o--,o<0&&(o=0),i.length>0?h(i.shift()):d()}};var _,k;x.closeButton=c.closeButton,!1===a.closeButton||Jy(a.closeButton)?x.closeButton=a.closeButton:!0===a.closeButton&&(x.closeButton=!Jy(c.closeButton)||c.closeButton);let E=e;y(e)&&!Gy(e.type)?E=v(e,{closeToast:b,toastProps:x,data:p}):Zy(e)&&(E=e({closeToast:b,toastProps:x,data:p}));const S={content:E,props:x,staleId:g};c.limit&&c.limit>0&&o>c.limit&&w?i.push(S):Ky(m)?setTimeout((()=>{h(S)}),m):h(S)},setProps(t){c=t},setToggle:(t,e)=>{l.get(t).toggle=e},isToastActive:t=>a.some((e=>e===t)),getSnapshot:()=>s}}(e,t,iv);rv.set(e,n);const o=n.observe(r);return nv.forEach((t=>cv(t.content,t.options))),nv=[],()=>{o(),rv.delete(e)}},setProps(t){var r;null==(r=rv.get(e))||r.setProps(t)},getSnapshot(){var t;return null==(t=rv.get(e))?void 0:t.getSnapshot()}}}(t)).current;o(t);const i=w(e,r,r);return{getToastToRender:function(e){if(!i)return[];const r=new Map;return t.newestOnTop&&i.reverse(),i.forEach((t=>{const{position:e}=t.props;r.has(e)||r.set(e,[]),r.get(e).push(t)})),Array.from(r,(t=>e(t[0],t[1])))},isToastActive:sv,count:null==i?void 0:i.length}}function dv(t){const[e,r]=l(!1),[i,a]=l(!1),s=n(null),c=n({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:u,pauseOnHover:d,closeToast:f,onClick:h,closeOnClick:p}=t;var g,m;function b(){r(!0)}function y(){r(!1)}function v(r){const n=s.current;c.canDrag&&n&&(c.didMove=!0,e&&y(),c.delta="x"===t.draggableDirection?r.clientX-c.start:r.clientY-c.start,c.start!==r.clientX&&(c.canCloseOnClick=!1),n.style.transform=`translate3d(${"x"===t.draggableDirection?`${c.delta}px, var(--y)`:`0, calc(${c.delta}px + var(--y))`},0)`,n.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function w(){document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",w);const e=s.current;if(c.canDrag&&c.didMove&&e){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return a(!0),t.closeToast(),void t.collapseAll();e.style.transition="transform 0.2s, opacity 0.2s",e.style.removeProperty("transform"),e.style.removeProperty("opacity")}}null==(m=rv.get((g={id:t.toastId,containerId:t.containerId,fn:r}).containerId||1))||m.setToggle(g.id,g.fn),o((()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",b),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",y)}}),[t.pauseOnFocusLoss]);const x={onPointerDown:function(e){if(!0===t.draggable||t.draggable===e.pointerType){c.didMove=!1,document.addEventListener("pointermove",v),document.addEventListener("pointerup",w);const r=s.current;c.canCloseOnClick=!0,c.canDrag=!0,r.style.transition="none","x"===t.draggableDirection?(c.start=e.clientX,c.removalDistance=r.offsetWidth*(t.draggablePercent/100)):(c.start=e.clientY,c.removalDistance=r.offsetHeight*(80===t.draggablePercent?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(e){const{top:r,bottom:n,left:o,right:i}=s.current.getBoundingClientRect();"touchend"!==e.nativeEvent.type&&t.pauseOnHover&&e.clientX>=o&&e.clientX<=i&&e.clientY>=r&&e.clientY<=n?y():b()}};return u&&d&&(x.onMouseEnter=y,t.stacked||(x.onMouseLeave=b)),p&&(x.onClick=t=>{h&&h(t),c.canCloseOnClick&&f()}),{playToast:b,pauseToast:y,isRunning:e,preventExitTransition:i,toastRef:s,eventHandlers:x}}function fv(t){let{delay:r,isRunning:n,closeToast:o,type:i="default",hide:a,className:s,style:c,controlledProgress:l,progress:u,rtl:d,isIn:f,theme:h}=t;const p=a||l&&0===u,g={...c,animationDuration:`${r}ms`,animationPlayState:n?"running":"paused"};l&&(g.transform=`scaleX(${u})`);const m=kb("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":d}),b=Zy(s)?s({rtl:d,type:i,defaultClassName:m}):kb(m,s),y={[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{f&&o()}};return e.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":p},e.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${i}`}),e.createElement("div",{role:"progressbar","aria-hidden":p?"true":"false","aria-label":"notification timer",className:b,style:g,...y}))}let hv=1;const pv=()=>""+hv++;function gv(t){return t&&(Gy(t.toastId)||Ky(t.toastId))?t.toastId:pv()}function mv(t,e){return cv(t,e),e.toastId}function bv(t,e){return{...e,type:e&&e.type||t,toastId:gv(e)}}function yv(t){return(e,r)=>mv(e,bv(t,r))}function vv(t,e){return mv(t,bv("default",e))}vv.loading=(t,e)=>mv(t,bv("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),vv.promise=function(t,e,r){let n,{pending:o,error:i,success:a}=e;o&&(n=Gy(o)?vv.loading(o,r):vv.loading(o.render,{...r,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(t,e,o)=>{if(null==e)return void vv.dismiss(n);const i={type:t,...s,...r,data:o},a=Gy(e)?{render:e}:e;return n?vv.update(n,{...i,...a}):vv(a.render,{...i,...a}),o},l=Zy(t)?t():t;return l.then((t=>c("success",a,t))).catch((t=>c("error",i,t))),l},vv.success=yv("success"),vv.info=yv("info"),vv.error=yv("error"),vv.warning=yv("warning"),vv.warn=vv.warning,vv.dark=(t,e)=>mv(t,bv("default",{theme:"dark",...e})),vv.dismiss=function(t){!function(t){var e;if(av()){if(null==t||Gy(e=t)||Ky(e))rv.forEach((e=>{e.removeToast(t)}));else if(t&&("containerId"in t||"id"in t)){const e=rv.get(t.containerId);e?e.removeToast(t.id):rv.forEach((e=>{e.removeToast(t.id)}))}}else nv=nv.filter((e=>null!=t&&e.options.toastId!==t))}(t)},vv.clearWaitingQueue=function(t){void 0===t&&(t={}),rv.forEach((e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()}))},vv.isActive=sv,vv.update=function(t,e){void 0===e&&(e={});const r=((t,e)=>{var r;let{containerId:n}=e;return null==(r=rv.get(n||1))?void 0:r.toasts.get(t)})(t,e);if(r){const{props:n,content:o}=r,i={delay:100,...n,...e,toastId:e.toastId||t,updateId:pv()};i.toastId!==t&&(i.staleId=t);const a=i.render||o;delete i.render,mv(a,i)}},vv.done=t=>{vv.update(t,{progress:1})},vv.onChange=function(t){return ov.add(t),()=>{ov.delete(t)}},vv.play=t=>lv(!0,t),vv.pause=t=>lv(!1,t);const wv="undefined"!=typeof window?m:o,xv=t=>{let{theme:r,type:n,isLoading:o,...i}=t;return e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===r?"currentColor":`var(--toastify-icon-color-${n})`,...i})},_v={info:function(t){return e.createElement(xv,{...t},e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return e.createElement(xv,{...t},e.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return e.createElement(xv,{...t},e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return e.createElement(xv,{...t},e.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return e.createElement("div",{className:"Toastify__spinner"})}},kv=t=>{const{isRunning:r,preventExitTransition:n,toastRef:o,eventHandlers:i,playToast:a}=dv(t),{closeButton:s,children:c,autoClose:l,onClick:u,type:d,hideProgressBar:f,closeToast:h,transition:p,position:g,className:m,style:b,bodyClassName:w,bodyStyle:x,progressClassName:_,progressStyle:k,updateId:E,role:S,progress:O,rtl:T,toastId:A,deleteToast:j,isIn:P,isLoading:C,closeOnClick:D,theme:M}=t,R=kb("Toastify__toast",`Toastify__toast-theme--${M}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":T},{"Toastify__toast--close-on-click":D}),I=Zy(m)?m({rtl:T,position:g,type:d,defaultClassName:R}):kb(R,m),N=function(t){let{theme:e,type:r,isLoading:n,icon:o}=t,i=null;const a={theme:e,type:r};return!1===o||(Zy(o)?i=o({...a,isLoading:n}):y(o)?i=v(o,a):n?i=_v.spinner():(t=>t in _v)(r)&&(i=_v[r](a))),i}(t),F=!!O||!l,z={closeToast:h,type:d,theme:M};let L=null;return!1===s||(L=Zy(s)?s(z):y(s)?v(s,z):function(t){let{closeToast:r,theme:n,ariaLabel:o="close"}=t;return e.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:t=>{t.stopPropagation(),r(t)},"aria-label":o},e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},e.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(z)),e.createElement(p,{isIn:P,done:j,position:g,preventExitTransition:n,nodeRef:o,playToast:a},e.createElement("div",{id:A,onClick:u,"data-in":P,className:I,...i,style:b,ref:o},e.createElement("div",{...P&&{role:S},className:Zy(w)?w({type:d}):kb("Toastify__toast-body",w),style:x},null!=N&&e.createElement("div",{className:kb("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},N),e.createElement("div",null,c)),L,e.createElement(fv,{...E&&!F?{key:`pb-${E}`}:{},rtl:T,theme:M,delay:l,isRunning:r,isIn:P,closeToast:h,hide:f,type:d,style:k,className:_,controlledProgress:F,progress:O||0})))},Ev=function(t,e){return void 0===e&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},Sv=tv(Ev("bounce",!0));tv(Ev("slide",!0)),tv(Ev("zoom")),tv(Ev("flip"));const Ov={position:"top-right",transition:Sv,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Tv(t){let r={...Ov,...t};const o=t.stacked,[i,a]=l(!0),s=n(null),{getToastToRender:c,isToastActive:u,count:d}=uv(r),{className:f,style:h,rtl:p,containerId:g}=r;function m(t){const e=kb("Toastify__toast-container",`Toastify__toast-container--${t}`,{"Toastify__toast-container--rtl":p});return Zy(f)?f({position:t,rtl:p,defaultClassName:e}):kb(e,Qy(f))}function b(){o&&(a(!0),vv.play())}return wv((()=>{if(o){var t;const e=s.current.querySelectorAll('[data-in="true"]'),n=12,o=null==(t=r.position)?void 0:t.includes("top");let a=0,c=0;Array.from(e).reverse().forEach(((t,e)=>{const r=t;r.classList.add("Toastify__toast--stacked"),e>0&&(r.dataset.collapsed=`${i}`),r.dataset.pos||(r.dataset.pos=o?"top":"bot");const s=a*(i?.2:1)+(i?0:n*e);r.style.setProperty("--y",`${o?s:-1*s}px`),r.style.setProperty("--g",`${n}`),r.style.setProperty("--s",""+(1-(i?c:0))),a+=r.offsetHeight,c+=.025}))}}),[i,d,o]),e.createElement("div",{ref:s,className:"Toastify",id:g,onMouseEnter:()=>{o&&(a(!1),vv.pause())},onMouseLeave:b},c(((t,r)=>{const n=r.length?{...h}:{...h,pointerEvents:"none"};return e.createElement("div",{className:m(t),style:n,key:`container-${t}`},r.map((t=>{let{content:r,props:n}=t;return e.createElement(kv,{...n,stacked:o,collapseAll:b,isIn:u(n.toastId,n.containerId),style:n.style,key:`toast-${n.key}`},r)})))})))}function Av(t){switch(void 0===t&&(t={status:"",message:""}),null==t?void 0:t.status){case"success":default:vv.success(null==t?void 0:t.message);break;case"warning":vv.warning(null==t?void 0:t.message);break;case"error":vv.error(null==t?void 0:t.message)}}function jv(){return e.createElement(Tv,{position:"bottom-center",autoClose:2e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0})}function Pv(t){var r,n=t.children,o=t.styles,i=t.enablePadding,a=void 0!==i&&i;return e.createElement("div",{className:E((r={"min-h-screen h-full w-full py-3 px-5":!0,"py-3 px-5":!a,"py-3 px-5 lg:px-[150px]":a,"transition-all duration-[200ms]":!0},r["".concat(o)]=o,r))},n)}function Cv(){return e.createElement("div",null,"FooterNavbar")}function Dv(t){var r=t.left,n=t.middle,o=t.right;return e.createElement("div",{className:E({"flex flex-row items-center justify-between min-h-[50px] sticky top-0 z-50 px-0":!0,"border-b border-dark-500/40 dark:border-secondary-500 theme-bg-md":!0})},e.createElement("div",null,r),e.createElement("div",null,n),e.createElement("div",null,o))}function Mv(t){var r,n,o=t.data,i=void 0===o?[]:o,a=t.styles,s=function(t,r){var n=t.icon,o=t.name,i=t.badge,a=t.to,s=t.onClick,c=t.component,l=pa(t,["icon","name","badge","to","onClick","component"]),u=c;return e.createElement(u,ha({key:r,icon:n,name:o,badge:i,to:a,onClick:s},l))},c=function(t,r){var n=t.icon,o=t.name,i=t.badge;t.to;var a=t.items,l=t.component,u=pa(t,["icon","name","badge","to","items","component"]),d=l,f=a&&Array.isArray(a)?a.map((function(t,e){return"items"in t?c(t,e):s(t,e)})):null;return e.createElement(d,ha({key:r,icon:n,name:o,badge:i},u),f)},l=ba([],i,!0);if(l.length>0){var u=l.map((function(t,e){return"items"in t?c(t,e):s(t,e)}));n=e.createElement("div",null,u)}return e.createElement("div",{className:E((r={"theme-bg-md overflow-y-auto w-full select-none":!0},r["".concat(a)]=a,r))},n)}x(':root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:#ffffffb3;--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-offset:16px;--toastify-toast-top:max(var(--toastify-toast-offset),env(safe-area-inset-top));--toastify-toast-right:max(var(--toastify-toast-offset),env(safe-area-inset-right));--toastify-toast-left:max(var(--toastify-toast-offset),env(safe-area-inset-left));--toastify-toast-bottom:max(var(--toastify-toast-offset),env(safe-area-inset-bottom));--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-toast-bd-radius:6px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error);--toastify-color-progress-bgo:0.2}.Toastify__toast-container{box-sizing:border-box;color:#fff;padding:4px;position:fixed;-webkit-transform:translateZ(var(--toastify-z-index));width:var(--toastify-toast-width);z-index:var(--toastify-z-index)}.Toastify__toast-container--top-left{left:var(--toastify-toast-left);top:var(--toastify-toast-top)}.Toastify__toast-container--top-center{left:50%;top:var(--toastify-toast-top);transform:translateX(-50%)}.Toastify__toast-container--top-right{right:var(--toastify-toast-right);top:var(--toastify-toast-top)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width:480px){.Toastify__toast-container{left:env(safe-area-inset-left);margin:0;padding:0;width:100vw}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translateX(0)}.Toastify__toast-container--rtl{left:auto;right:env(safe-area-inset-right)}}.Toastify__toast{--y:0;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;box-sizing:border-box;cursor:default;direction:ltr;display:flex;font-family:var(--toastify-font-family);justify-content:space-between;margin-bottom:1rem;max-height:var(--toastify-toast-max-height);min-height:var(--toastify-toast-min-height);overflow:hidden;padding:8px;position:relative;touch-action:none;z-index:0}.Toastify__toast--stacked{position:absolute;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s;width:100%}.Toastify__toast--stacked[data-collapsed] .Toastify__close-button,.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{bottom:100%;content:"";height:calc(var(--g)*1px);left:0;position:absolute;right:0}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{bottom:0;content:"";height:100%;left:0;position:absolute;right:0;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{align-items:center;display:flex;flex:1 1 auto;margin:auto 0;padding:6px}.Toastify__toast-body>div:last-child{flex:1;word-break:break-word}.Toastify__toast-icon{display:flex;flex-shrink:0;margin-inline-end:10px;width:20px}.Toastify--animate{animation-duration:.5s;animation-fill-mode:both}.Toastify--animate-icon{animation-duration:.3s;animation-fill-mode:both}@media only screen and (max-width:480px){.Toastify__toast{border-radius:0;margin-bottom:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{background:var(--toastify-color-info);color:var(--toastify-text-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{background:var(--toastify-color-success);color:var(--toastify-text-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{background:var(--toastify-color-warning);color:var(--toastify-text-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{background:var(--toastify-color-error);color:var(--toastify-text-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{align-self:flex-start;background:#0000;border:none;color:#fff;cursor:pointer;opacity:.7;outline:none;padding:0;transition:.3s ease;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{border-bottom-left-radius:var(--toastify-toast-bd-radius);bottom:0;height:100%;left:0;opacity:.7;position:absolute;transform-origin:left;width:100%;z-index:var(--toastify-z-index)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{border-bottom-left-radius:0;border-bottom-right-radius:var(--toastify-toast-bd-radius);left:auto;right:0;transform-origin:right}.Toastify__progress-bar--wrp{border-bottom-left-radius:var(--toastify-toast-bd-radius);bottom:0;height:5px;left:0;position:absolute;width:100%}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{height:100%;opacity:var(--toastify-color-progress-bgo);width:100%}.Toastify__spinner{animation:Toastify__spin .65s linear infinite;border:2px solid;border-color:var(--toastify-spinner-color-empty-area);border-radius:100%;border-right-color:var(--toastify-spinner-color);box-sizing:border-box;height:20px;width:20px}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{animation-timing-function:ease-in;opacity:0;transform:perspective(400px) rotateX(90deg)}40%{animation-timing-function:ease-in;transform:perspective(400px) rotateX(-20deg)}60%{opacity:1;transform:perspective(400px) rotateX(10deg)}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{opacity:1;transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg)}to{opacity:0;transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg)}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(110%,var(--y),0);visibility:hidden}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(-110%,var(--y),0);visibility:hidden}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(0,500px,0);visibility:hidden}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{transform:translate3d(0,-500px,0);visibility:hidden}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-duration:.3s;animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-duration:.3s;animation-name:Toastify__slideOutRight;animation-timing-function:ease-in}.Toastify__slide-exit--top-center{animation-duration:.3s;animation-name:Toastify__slideOutUp;animation-timing-function:ease-in}.Toastify__slide-exit--bottom-center{animation-duration:.3s;animation-name:Toastify__slideOutDown;animation-timing-function:ease-in}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}');var Rv=function(t){var r=t.icon,n=t.name,o=t.badge;return e.createElement(e.Fragment,null,r&&e.createElement("div",{className:"text-2xl"},r),n&&e.createElement("div",null,n),o&&e.createElement("div",null,o))},Iv=function(t){var r,n=t.icon,o=t.name,i=t.badge;t.to;var a=t.styles,s=t.children,c=l(!0),u=c[0],d=c[1];return e.createElement("div",null,e.createElement("div",{className:E((r={"flex flex-row justify-between items-center p-4 theme-text-md border-b border-dark-500/40 dark:border-secondary-800/40":!0,"theme-gradient-to-r-xs":!0,"hover:cursor-pointer hover:theme-gradient-to-r-sm":!0,"transition-all ease-in-out":!0},r["".concat(a)]=a,r)),onClick:function(){return d(!u)}},e.createElement("div",{className:"flex flex-row gap-3"},e.createElement(Rv,{icon:n,name:o,badge:i})),e.createElement(ih,{className:E({"text-md":!0,"transition-all ease-in-out duration-300":!0,"rotate-180":!u})})),!u&&e.createElement("div",null,s))},Nv=function(t){var r,n=t.icon,o=t.name,i=t.badge,a=t.styles;return e.createElement("div",{className:E((r={"flex flex-row items-center gap-3 p-3 theme-text-md border-b border-dark-500/20 dark:border-secondary-600/10 w-full opacity-60":!0,"theme-gradient-to-r-xs":!0,"hover:cursor-pointer hover:theme-gradient-to-r-sm":!0,"transition-all ease-in-out duration-300":!0},r["".concat(a)]=a,r))},e.createElement(Rv,{icon:n,name:o,badge:i}))},Fv=function(t){var r=t.icon,n=t.name,o=t.badge,i=t.to,a=t.onClick,s=t.styles;return i?e.createElement("div",{onClick:function(){i?window.location.href=i:a&&a()}},e.createElement(Nv,{icon:r,name:n,badge:o,styles:s})):e.createElement("div",{onClick:a},e.createElement(Nv,{icon:r,name:n,badge:o,styles:s}))},zv=function(t){var r,n=t.icon,o=t.name,i=t.badge,a=t.styles;return e.createElement("div",{className:E((r={"flex flex-row gap-3 p-4 font-semibold uppercase theme-text-md":!0},r["".concat(a)]=a,r))},e.createElement(Rv,{icon:n,name:o,badge:i}))};function Lv(t){var r=t.data;return e.createElement("div",null,e.createElement(Mv,{data:r,styles:E({"h-full z-10":!0,"sidebar_nav_scrollbar max-h-screen":!0})}))}function Bv(t){var r=t.handleToggleSider;return e.createElement("div",{className:E({"text-xl text-dark-500 dark:text-secondary-600 p-3":!0,"hover:bg-dark-400/30 hover:dark:bg-dark-300/50 hover:cursor-pointer":!0,"transition-all ease-in-out":!0}),onClick:r},e.createElement(Ay,null))}function Vv(t){var r,n=t.children,o=t.gap,i=void 0===o?3:o,a=t.styles;return e.createElement("div",{className:E((r={},r["flex flex-col gap-".concat(i)]=!0,r["".concat(a)]=a,r))},n)}function $v(t){var r,n=t.children,o=t.gap,i=void 0===o?3:o,a=t.styles;return e.createElement("div",{className:E((r={},r["flex flex-row gap-".concat(i)]=!0,r["".concat(a)]=a,r))},n)}x(".sidebar_nav_scrollbar::-webkit-scrollbar{width:5px}.sidebar_nav_scrollbar::-webkit-scrollbar-track{background:#002129}.sidebar_nav_scrollbar::-webkit-scrollbar-thumb{background:#009703;border-radius:10px}");var Hv={FlexCol:Vv,FlexRow:$v};function Uv(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={},r.grid=!0,r["".concat(o)]=o,r))},n)}var Wv=function(t){var r,n=t.flexDirection,o=void 0===n?"vertical":n,i=t.children,a=t.styles;return e.createElement("div",{className:E((r={"flex bg-light-600":!0,"flex-col":"vertical"===o,"flex-row":"horizontal"===o},r["".concat(a)]=a,r))},i)},Yv=function(t){var r,n=t.position,o=void 0===n?"static":n,i=t.children,a=t.styles;return e.createElement("div",{className:E((r={static:"static"===o,fixed:"fixed"===o,sticky:"sticky"===o,"top-0 w-full h-fit z-50 theme-bg-md":!0},r["".concat(a)]=a,r))},i||"Header")},Xv=function(t){var r=t.children,n=t.visibility,o=t.isMobile,i=t.handleClose;return e.createElement(e.Fragment,null,o&&n&&e.createElement("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-40",onClick:i}),e.createElement(py,{show:n,enter:"transform transition duration-200 ease-out",enterFrom:"-translate-x-full",enterTo:"translate-x-0",leave:"transform transition duration-200 ease-in",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full"},e.createElement("div",{className:E("fixed h-full w-[300px] theme-bg-md shadow-lg z-50","left-0")},r)))},qv=function(t){var r,n=t.sidebarVisible,o=t.isMobile,i=t.children,a=t.styles;return e.createElement("div",{className:E((r={"w-full min-h-screen transition-all duration-200 theme-bg-sm":!0,"md:pl-[300px]":n&&!o,"pl-0":!n||o},r["".concat(a)]=a,r))},i)},Kv=function(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"bottom-0 w-full h-fit theme-bg-md":!0},r["".concat(o)]=o,r))},n||"Footer")};function Gv(t){var r=t.title,n=t.href,o=void 0===n?"#":n,i=t.active,a=void 0===i||i;return e.createElement("a",{href:o,className:E({"text-lg font-semibold ":!0,"text-gray-400 hover:text-gray-600":!a,"text-light-800":a,"hover:underline":!0,"transition-all ease-in-out":!0})},r)}var Zv=function(t){var r,n,o=t.gap,i=void 0===o?1:o,a=t.seperator,s=void 0===a?"/":a,c=t.data,l=void 0===c?[]:c,u=t.styles,d=ba([],l,!0);if(d.length>0){var f=d.map((function(t,r){var n;return e.createElement(e.Fragment,{key:r},e.createElement(Gv,{title:t.title,href:t.href,active:r==d.length-1}),r<d.length-1&&e.createElement("span",{className:E((n={"text-lg font-semibold text-gray-500":!0},n["px-".concat(i)]=i,n))},s))}));n=e.createElement("div",null,f)}return e.createElement("div",{className:E((r={"inline-flex gap-3":!0},r["".concat(u)]=u,r))},n)};function Qv(t){var r,n,o=t.data,i=void 0===o?[]:o,a=t.styles,s=function(t,r){var n=t.icon,o=t.name,i=t.badge,a=t.to,s=t.onClick,c=t.component,l=pa(t,["icon","name","badge","to","onClick","component"]),u=c;return e.createElement(u,ha({key:r,icon:n,name:o,badge:i,to:a,onClick:s},l))},c=function(t,r){var n=t.icon,o=t.name,i=t.badge;t.to;var a=t.items,l=t.component,u=pa(t,["icon","name","badge","to","items","component"]),d=l,f=a&&Array.isArray(a)?a.map((function(t,e){return"items"in t?c(t,e):s(t,e)})):null;return e.createElement(d,ha({key:r,icon:n,name:o,badge:i},u),f)},l=ba([],i,!0);if(l.length>0){var u=l.map((function(t,e){return"items"in t?c(t,e):s(t,e)}));n=e.createElement("div",{className:"flex flex-row"},u)}return e.createElement("div",{className:E((r={},r["".concat(a)]=a,r))},n)}function Jv(t,e){o((function(){var r=function(r){t.current&&!t.current.contains(r.target)&&e&&e()};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),function(){document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}}),[t,e])}var tw=function(t){var r=t.icon,n=t.name,o=t.description,i=t.badge;return e.createElement("div",{className:"flex flex-row items-center gap-3 select-none"},r&&e.createElement("div",{className:"text-xl theme-text-md"},r),e.createElement("div",null,n&&e.createElement("div",{className:"text-md"},n),o&&e.createElement("div",{className:"text-xs theme-text-sm"},o)),i&&e.createElement("div",null,i))},ew=function(t){var r,o=t.icon,i=t.name,a=t.description,s=t.badge,c=t.to,u=t.styles,d=t.children,f=l(!0),h=f[0],p=f[1],g=n(null);Jv(g,(function(){return p(!0)}));return e.createElement("div",{className:"relative w-full",ref:g},e.createElement("div",{className:E((r={"flex flex-row gap-2 items-center justify-between cursor-pointer p-3 w-full":!0,"transition-all duration-300 ease-in-out":!0,"theme-text-md bg-gradient-to-t from-dark-500/10 dark:from-green-700/10":!0,"hover:bg-dark-500/10 hover:dark:bg-green-700/20":!0,"bg-dark-500/10 dark:bg-green-700/20":!h},r["".concat(u)]=u,r)),onClick:function(){d?p(!h):c&&(window.location.href=c)}},e.createElement("div",null,e.createElement(tw,{icon:o,name:i,description:a,badge:s})),d&&e.createElement(ih,{className:E({"text-md":!0,"transition-all ease-in-out duration-300":!0,"rotate-180":!h})})),!h&&d&&e.createElement("div",{className:E({"absolute min-w-80 left-0 top-full mt-1 border border-dark-300/10 dark:border-dark-300/50 shadow-lg theme-shadow-lg z-50 w-full theme-bg-md":!0,"transition-all duration-300 ease-in-out":!0})},d))},rw=function(t){var r,n=t.icon,o=t.name,i=t.description,a=t.badge,s=t.to,c=t.onClick,l=t.styles;return e.createElement("div",{onClick:function(){s?window.location.href=s:c&&c()},className:E((r={"flex flex-row items-center gap-3 cursor-pointer p-3 w-full":!0,"transition-all duration-200 ease-in-out":!0,"theme-text-md border-b border-dark-500/20 dark:border-secondary-900/20 bg-gradient-to-r from-dark-500/10 dark:from-secondary-900/10":!0,"hover:from-dark-500/20 hover:dark:from-secondary-900/20":!0},r["".concat(l)]=l,r))},e.createElement(tw,{icon:n,name:o,description:i,badge:a}))},nw=function(t){var r,n=t.icon,o=t.name,i=t.description,a=t.badge,s=t.styles;return e.createElement("div",{className:E((r={"p-3 theme-text-md font-thin":!0},r["".concat(s)]=s,r))},e.createElement(tw,{icon:n,name:o,description:i,badge:a}))};function ow(t){var r,o=t.title,i=t.show,a=void 0!==i&&i,s=t.handleOnClose,l=t.children,u=t.isLoading,d=t.isSuccess,f=void 0===d||d,h=t.isError,p=t.error,g=t.styles,m=t.enableCloseOnClickOutside,b=void 0!==m&&m,y=n(null);return Jv(y,b?s:void 0),e.createElement(py,{show:a,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-100 ease-out",leaveFrom:"transform scale-200 opacity-100",leaveTo:"transform scale-95 opacity-0",as:c},e.createElement("div",{className:"bg-dark-900/90 top-0 bottom-0 left-0 right-0 z-50 fixed inset-0 flex items-center justify-center overflow-hidden"},e.createElement("div",{ref:y,className:E((r={"theme-bg-md theme-shadow-lg border border-gray-700/50 w-fit h-fit rounded-lg":!0},r["".concat(g)]=g,r))},e.createElement("div",{className:"theme-gradient-to-r-sm inline-flex items-center border-b w-full border-dark-500/40"},e.createElement("div",{className:"w-full text-center text-md font-semibold"},o),e.createElement("div",{className:E({"w-[60px] h-[60px] flex items-center justify-center transition-standard-fast":!0,"hover:cursor-pointer hover:bg-dark-500/40":!0}),onClick:s},"X")),e.createElement(vy,{isLoading:u,isSuccess:f,isError:h,error:p},e.createElement("div",{className:"p-5 w-full"},l)))))}function iw(t){return rh({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM135 241c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l87 87 87-87c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 345c-9.4 9.4-24.6 9.4-33.9 0L135 241z"}}]})(t)}function aw(t){return rh({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM377 271c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-87-87-87 87c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9L239 167c9.4-9.4 24.6-9.4 33.9 0L377 271z"}}]})(t)}function sw(t){var r=t.summary,n=void 0===r?"Accordion":r,o=t.expandIcon,i=void 0===o?e.createElement(iw,null):o,a=t.collapseIcon,s=void 0===a?e.createElement(aw,null):a,u=t.children,d=t.defaultCollapse,f=l(void 0!==d&&d),h=f[0],p=f[1];return e.createElement("div",{className:"border border-dark-400"},e.createElement("div",null,e.createElement("div",{className:"inline-flex gap-3 items-center justify-center p-3 w-full bg-light-600 dark:bg-dark-500"},e.createElement("div",{className:"theme-text-md w-full"},n),e.createElement("div",null,h?e.createElement("div",{onClick:function(){p(!1)},className:"text-xl"},s):e.createElement("div",{onClick:function(){p(!0)},className:"text-xl"},i)))),e.createElement(py,{show:h,enter:"transition duration-100 ease-out",enterFrom:"transform scale-95 opacity-0",enterTo:"transform scale-100 opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform scale-100 opacity-100",leaveTo:"transform scale-95 opacity-0",as:c},e.createElement("div",{className:"p-5 border-t border-t-dark-400/80 theme-text-sm"},u)))}function cw(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"bg-gradient-light-2 border border-gray-700 shadow rounded-sm":!0},r["".concat(o)]=o,r))},n)}function lw(t){var r,n=t.avatar,o=t.title,i=t.description,a=t.styles;return e.createElement("div",{className:E((r={"bg-gradient-to-r from-slate-800/70 to-transparent border-b border-slate-700 p-3 inline-flex items-center gap-3 w-full":!0},r["".concat(a)]=a,r))},e.createElement("div",{className:"w-[40px] h-[40px]"},n),e.createElement("div",{className:"flex flex-col"},e.createElement("div",{className:"font-semibold text-gray-100"},o),e.createElement("div",{className:"text-sm text-gray-400"},i)))}function uw(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"text-gray-200":!0},r["".concat(o)]=o,r))},n)}function dw(t){var r,n=t.children,o=t.styles;return e.createElement("div",{className:E((r={"bg-slate-900 text-gray-200 p-3 inline-flex gap-3 w-full":!0},r["".concat(o)]=o,r))},n)}var fw=i(void 0),hw=function(t){var r=t.defaultTheme,n=void 0===r?"dark":r,i=t.children,a=l((function(){return localStorage.getItem("theme")||n})),s=a[0],c=a[1];o((function(){"dark"===s?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",s)}),[s]);return e.createElement(fw.Provider,{value:{theme:s,setTheme:c,toggleTheme:function(){c((function(t){return"dark"===t?"light":"dark"}))}}},i)},pw=function(){var t=d(fw);if(!t)return null;var r=t.theme,n=t.toggleTheme;return e.createElement("button",{onClick:n,className:"relative w-16 h-8 flex items-center bg-gray-300 dark:bg-gray-800 rounded-full p-1 transition-all"},e.createElement(Dy,{className:"absolute left-2 text-yellow-500 transition-opacity duration-300 z-10",style:{opacity:"dark"===r?0:1}}),e.createElement(Cy,{className:"absolute right-2 text-blue-400 transition-opacity duration-300 z-10",style:{opacity:"dark"===r?1:0}}),e.createElement("div",{className:E("w-6 h-6 bg-white dark:bg-gray-600 rounded-full shadow-md transition-transform duration-300","dark"===r?"translate-x-8":"translate-x-0")}))};function gw(t){var r=t.text,n=t.limit,o=l(!1),i=o[0],a=o[1];return e.createElement("div",null,i?r:"".concat(r.substring(0,n)),r.length>n&&e.createElement("div",{className:"relative"},!i&&e.createElement("div",{className:"absolute top-[-20px] h-[20px] w-full bg-gradient-to-t from-slate-900/70 to-transparent"}),e.createElement("div",{className:E({"text-blue-300 px-1 pb-1 mt-1":!0,"bg-slate-900/70":!i,"bg-gradient-to-t from-slate-900/50 to-transparent":i})},e.createElement("div",{className:"text-xs w-fit hover:cursor-pointer",onClick:function(){return a(!i)}},i?"Show less":"Show more"))))}var mw=function(){var t=l(!1),e=t[0],r=t[1];return{show:e,handleOpenModal:function(){r(!0)},handleCloseModal:function(){r(!1)}}},bw=function(t){void 0===t&&(t=!0);var e=l(t),r=e[0],n=e[1],i=l(window.innerWidth<768),a=i[0],s=i[1];o((function(){var t=function(){s(window.innerWidth<768)};return window.addEventListener("resize",t),function(){return window.removeEventListener("resize",t)}}),[]);return{show:r,handleToggleSider:function(){n((function(t){return!t}))},handleCloseSider:function(){n(!1)},isMobile:a}};export{sw as Accordion,vy as AsyncComponentWrapper,R as Avatar,qy as Backdrop,F as Badge,da as BarChart,Zv as Breadcrumb,Gv as BreadcrumbItem,_y as Button,cw as Card,uw as CardContent,dw as CardFooter,lw as CardHeader,Hf as Chapter,Iy as Checkbox,xa as Chip,Lf as CloudinaryImage,qv as Content,Pv as ContentArea,Ny as DateSelector,Hv as Flex,Vv as FlexCol,$v as FlexRow,Kv as Footer,Cv as FooterNavbar,xb as Form,yy as FormResponse,Uv as Grid,Yv as Header,Qv as HeaderNav,ew as HeaderNavGroup,rw as HeaderNavItem,nw as HeaderNavItemTitle,Dv as HeaderNavbar,_a as Image,Vy as ImageInput,Bf as Info,Ry as Input,Ty as InputResponse,Wv as Layout,fa as LineChart,qf as Link,Vf as List,uh as ListItem,Mv as Menu,Iv as MenuGroup,Fv as MenuItem,zv as MenuItemTitle,ow as Modal,$y as MultiImageInput,Xf as Paragraph,ya as PieChart,hh as PriceTag,Kf as Quote,Hy as Radio,Wf as Section,Wy as Select,gw as ShowMore,Lv as Sidebar,Bv as SidebarToggler,Xv as Sider,vh as Skeleton,xh as Slider,ph as StarRating,yh as StarRatingDistribution,Uy as StarRatingInput,Yy as Switch,Sy as Table,Oy as Tag,Xy as TextArea,fw as ThemeContext,hw as ThemeProvider,pw as ThemeSwitch,B as TitleBanner,jv as Toast,gy as Transition,Gf as Typography,Av as sendToast,Jv as useClickOutside,mw as useModal,bw as useSider};
|