@fluidattacks/design 2.0.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.js +216 -108
  2. package/dist/index.mjs +11261 -6426
  3. package/dist/types/components/@core/types.d.ts +1 -0
  4. package/dist/types/components/button/types.d.ts +1 -5
  5. package/dist/types/components/icon/types.d.ts +0 -2
  6. package/dist/types/components/loading/index.d.ts +4 -0
  7. package/dist/types/components/loading/styles.d.ts +9 -0
  8. package/dist/types/components/loading/types.d.ts +15 -0
  9. package/dist/types/components/menu/index.d.ts +4 -0
  10. package/dist/types/components/menu/types.d.ts +31 -0
  11. package/dist/types/components/premium-feature/index.d.ts +3 -0
  12. package/dist/types/components/premium-feature/styles.d.ts +2 -0
  13. package/dist/types/components/premium-feature/types.d.ts +14 -0
  14. package/dist/types/components/progress/index.d.ts +4 -0
  15. package/dist/types/components/progress/styles.d.ts +6 -0
  16. package/dist/types/components/progress/types.d.ts +12 -0
  17. package/dist/types/components/progress-bar/index.d.ts +1 -2
  18. package/dist/types/components/progress-bar/styles.d.ts +12 -5
  19. package/dist/types/components/progress-bar/types.d.ts +20 -8
  20. package/dist/types/components/scroll-button/index.d.ts +4 -0
  21. package/dist/types/components/scroll-button/styles.d.ts +4 -0
  22. package/dist/types/components/scroll-button/types.d.ts +11 -0
  23. package/dist/types/components/search/index.d.ts +3 -0
  24. package/dist/types/components/search/styles.d.ts +6 -0
  25. package/dist/types/components/search/types.d.ts +10 -0
  26. package/dist/types/components/severity-badge/index.d.ts +3 -0
  27. package/dist/types/components/severity-badge/types.d.ts +26 -0
  28. package/dist/types/components/severity-badge/utils.d.ts +3 -0
  29. package/dist/types/components/severity-overview/badge/index.d.ts +3 -0
  30. package/dist/types/components/severity-overview/index.d.ts +3 -0
  31. package/dist/types/components/severity-overview/types.d.ts +40 -0
  32. package/dist/types/components/severity-overview/utils.d.ts +3 -0
  33. package/dist/types/components/show-on-hover/index.d.ts +3 -0
  34. package/dist/types/components/show-on-hover/styles.d.ts +2 -0
  35. package/dist/types/components/show-on-hover/types.d.ts +12 -0
  36. package/dist/types/components/slide-out-menu/index.d.ts +4 -0
  37. package/dist/types/components/slide-out-menu/menu-item/index.d.ts +3 -0
  38. package/dist/types/components/slide-out-menu/styles.d.ts +274 -0
  39. package/dist/types/components/slide-out-menu/types.d.ts +43 -0
  40. package/dist/types/components/timeline/card/index.d.ts +3 -0
  41. package/dist/types/components/timeline/index.d.ts +4 -0
  42. package/dist/types/components/timeline/styles.d.ts +3 -0
  43. package/dist/types/components/timeline/types.d.ts +21 -0
  44. package/dist/types/hooks/index.d.ts +3 -1
  45. package/dist/types/hooks/use-debounced-callback.d.ts +4 -0
  46. package/dist/types/hooks/use-search.d.ts +5 -0
  47. package/dist/types/index.d.ts +12 -1
  48. package/package.json +3 -2
  49. /package/dist/types/components/{progress-bar → progress}/utils.d.ts +0 -0
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\\[500px\\]{height:500px}.w-\\[400px\\]{width:400px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.content-center{align-content:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[90px\\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --animate-position{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --border-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --color-1{syntax: "<color>"; initial-value: #f32637; inherits: false;}@property --color-2{syntax: "<color>"; initial-value: #b8075d; inherits: false;}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@property --tag-padding-x{syntax: "<length>"; initial-value: 4px; inherits: false;}@property --tag-padding-y{syntax: "<length>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),e=require("react"),n=require("react-dom"),i=require("lodash"),r=require("react-router-dom");function s(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const n in t)if("default"!==n){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}return e.default=t,Object.freeze(e)}const o=s(e),a=s(n),l=t=>({getVariant:(e,n)=>t(e)[n]}),c=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p,d,f={exports:{}},m={},g={};
1
+ !function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode('*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.\\!visible{visibility:visible!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\\[500px\\]{height:500px}.h-\\[600px\\]{height:600px}.h-\\[900px\\]{height:900px}.w-\\[400px\\]{width:400px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[90px\\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.capitalize{text-transform:capitalize}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@property --tag-padding-x{syntax: "<length>"; initial-value: 4px; inherits: false;}@property --tag-padding-y{syntax: "<length>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
2
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),e=require("react"),n=require("react-dom"),r=require("lodash"),i=require("react-router-dom");function o(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const n in t)if("default"!==n){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}return e.default=t,Object.freeze(e)}const s=o(e),a=o(n),l=t=>({getVariant:(e,n)=>t(e)[n]}),c=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"];var u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h,d,f={exports:{}},m={},g={};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.development.js
@@ -9,46 +9,46 @@
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- "production"===process.env.NODE_ENV?f.exports=function(){if(p)return m;p=1;var t=e,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(t,e,i){var a,l={},c=null,h=null;for(a in void 0!==i&&(c=""+i),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(h=e.ref),e)r.call(e,a)&&!o.hasOwnProperty(a)&&(l[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===l[a]&&(l[a]=e[a]);return{$$typeof:n,type:t,key:c,ref:h,props:l,_owner:s.current}}return m.Fragment=i,m.jsx=a,m.jsxs=a,m}():f.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){var t,n=e,i=Symbol.for("react.element"),r=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,v=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];!function(t,e,n){var i=v.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(e+="%s",n=n.concat([i]));var r=n.map((function(t){return String(t)}));r.unshift("Warning: "+e),Function.prototype.apply.call(console.error,console,r)}(0,t,n)}function x(t){return t.displayName||"Context"}function w(t){if(null==t)return null;if("number"==typeof t.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case s:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return x(t)+".Consumer";case l:return x(t._context)+".Provider";case h:return function(t,e,n){var i=t.displayName;if(i)return i;var r=e.displayName||e.name||"";return""!==r?n+"("+r+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:w(t.type)||"Memo";case f:var n=t,i=n._payload,m=n._init;try{return w(m(i))}catch(g){return null}}return null}t=Symbol.for("react.module.reference");var k,_,S,$,C,A,P,T=Object.assign,E=0;function j(){}j.__reactDisabledLog=!0;var D,M=v.ReactCurrentDispatcher;function F(t,e,n){if(void 0===D)try{throw Error()}catch(r){var i=r.stack.trim().match(/\n( *(at )?)/);D=i&&i[1]||""}return"\n"+D+t}var I,R=!1,L="function"==typeof WeakMap?WeakMap:Map;function O(t,e){if(!t||R)return"";var n,i=I.get(t);if(void 0!==i)return i;R=!0;var r,s=Error.prepareStackTrace;Error.prepareStackTrace=void 0,r=M.current,M.current=null,function(){if(0===E){k=console.log,_=console.info,S=console.warn,$=console.error,C=console.group,A=console.groupCollapsed,P=console.groupEnd;var t={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}E++}();try{if(e){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(o,[])}catch(f){n=f}Reflect.construct(t,[],o)}else{try{o.call()}catch(f){n=f}t.call(o.prototype)}}else{try{throw Error()}catch(f){n=f}t()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),l=n.stack.split("\n"),c=a.length-1,h=l.length-1;c>=1&&h>=0&&a[c]!==l[h];)h--;for(;c>=1&&h>=0;c--,h--)if(a[c]!==l[h]){if(1!==c||1!==h)do{if(c--,--h<0||a[c]!==l[h]){var u="\n"+a[c].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,u),u}}while(c>=1&&h>=0);break}}}finally{R=!1,M.current=r,function(){if(0==--E){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},t,{value:k}),info:T({},t,{value:_}),warn:T({},t,{value:S}),error:T({},t,{value:$}),group:T({},t,{value:C}),groupCollapsed:T({},t,{value:A}),groupEnd:T({},t,{value:P})})}E<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=s}var p=t?t.displayName||t.name:"",d=p?F(p):"";return"function"==typeof t&&I.set(t,d),d}function z(t,e,n){if(null==t)return"";if("function"==typeof t)return O(t,!(!(i=t.prototype)||!i.isReactComponent));var i;if("string"==typeof t)return F(t);switch(t){case u:return F("Suspense");case p:return F("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case h:return O(t.render,!1);case d:return z(t.type,e,n);case f:var r=t,s=r._payload,o=r._init;try{return z(o(s),e,n)}catch(a){}}return""}I=new L;var N=Object.prototype.hasOwnProperty,V={},q=v.ReactDebugCurrentFrame;function B(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);q.setExtraStackFrame(n)}else q.setExtraStackFrame(null)}var W=Array.isArray;function U(t){return W(t)}function H(t){return""+t}function G(t){if(function(t){try{return H(t),!1}catch(e){return!0}}(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(e=t,"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object")),H(t);var e}var Q,J,K,Y=v.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};K={};var Z,tt=v.ReactCurrentOwner,et=v.ReactDebugCurrentFrame;function nt(t){if(t){var e=t._owner,n=z(t.type,t._source,e?e.type:null);et.setExtraStackFrame(n)}else et.setExtraStackFrame(null)}function it(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}function rt(){if(tt.current){var t=w(tt.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Z=!1;var st={};function ot(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=rt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!st[n]){st[n]=!0;var i="";t&&t._owner&&t._owner!==tt.current&&(i=" It was passed a child from "+w(t._owner.type)+"."),nt(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),nt(null)}}}function at(t,e){if("object"==typeof t)if(U(t))for(var n=0;n<t.length;n++){var i=t[n];it(i)&&ot(i,e)}else if(it(t))t._store&&(t._store.validated=!0);else if(t){var r=function(t){if(null===t||"object"!=typeof t)return null;var e=y&&t[y]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof r&&r!==t.entries)for(var s,o=r.call(t);!(s=o.next()).done;)it(s.value)&&ot(s.value,e)}}function lt(e,n,r,g,y,v){var x,k="string"==typeof(x=e)||"function"==typeof x||x===s||x===a||x===o||x===u||x===p||x===m||"object"==typeof x&&null!==x&&(x.$$typeof===f||x.$$typeof===d||x.$$typeof===l||x.$$typeof===c||x.$$typeof===h||x.$$typeof===t||void 0!==x.getModuleId);if(!k){var _,S="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S+=rt(),null===e?_="null":U(e)?_="array":void 0!==e&&e.$$typeof===i?(_="<"+(w(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):_=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",_,S)}var $=function(t,e,n,r,s){var o,a,l,c,h={},u=null,p=null;for(o in void 0!==n&&(G(n),u=""+n),function(t){if(N.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(G(e.key),u=""+e.key),function(t){if(N.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(p=e.ref,function(t,e){if("string"==typeof t.ref&&Y.current&&e&&Y.current.stateNode!==e){var n=w(Y.current.type);K[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(Y.current.type),t.ref),K[n]=!0)}}(e,s)),e)N.call(e,o)&&!X.hasOwnProperty(o)&&(h[o]=e[o]);if(t&&t.defaultProps){var d=t.defaultProps;for(o in d)void 0===h[o]&&(h[o]=d[o])}if(u||p){var f="function"==typeof t?t.displayName||t.name||"Unknown":t;u&&(a=h,l=f,(c=function(){Q||(Q=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:c,configurable:!0})),p&&function(t,e){var n=function(){J||(J=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(h,f)}return function(t,e,n,r,s,o,a){var l={$$typeof:i,type:t,key:e,ref:n,props:a,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(t,u,p,s,r,Y.current,h)}(e,n,r,y,v);if(null==$)return $;if(k){var C=n.children;if(void 0!==C)if(g)if(U(C)){for(var A=0;A<C.length;A++)at(C[A],e);Object.freeze&&Object.freeze(C)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else at(C,e)}return e===s?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var i=e[n];if("children"!==i&&"key"!==i){nt(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),nt(null);break}}null!==t.ref&&(nt(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}($):function(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==h&&n.$$typeof!==d)return;e=n.propTypes}if(e){var i=w(n);!function(t,e,n,i,r){var s=Function.call.bind(N);for(var o in t)if(s(t,o)){var a=void 0;try{if("function"!=typeof t[o]){var l=Error((i||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=t[o](e,o,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}!a||a instanceof Error||(B(r),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,o,typeof a),B(null)),a instanceof Error&&!(a.message in V)&&(V[a.message]=!0,B(r),b("Failed %s type: %s",n,a.message),B(null))}}(e,t.props,"prop",i,t)}else void 0===n.PropTypes||Z||(Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}($),$}g.Fragment=s,g.jsx=function(t,e,n){return lt(t,e,n,!1)},g.jsxs=function(t,e,n){return lt(t,e,n,!0)}}()),g);var y=f.exports;const v={typography:{type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},shadows:{none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},breakpoints:{mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},spacing:{0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},palette:{primary:{25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},complementary:{25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},error:{25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},info:{25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},warning:{25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},success:{25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},black:"#0c111d",white:"#ffffff",gray:{25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},gradients:{"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"}}},b=(t,e)=>void 0===e?"":`${t}: ${e};`,x=t=>{const e=t.py??t.pt??0,n=t.px??t.pr??0,i=t.py??t.pb??0,r=t.px??t.pl??0;if(t.padding){const[e,n,i,r]=t.padding;return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`}return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`},w=t=>{const e=t.my??t.mt??0,n=t.mx??t.mr??0,i=t.my??t.mb??0,r=t.mx??t.ml??0;if(t.margin){const[e,n,i,r]=t.margin;return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`}return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[i]} ${v.spacing[r]};`},k=t=>`\n ${b("position",t.position)}\n ${b("top",t.top)}\n ${b("right",t.right)}\n ${b("bottom",t.bottom)}\n ${b("left",t.left)}\n ${b("z-index",t.zIndex)}\n `,_=t=>`\n ${b("border",t.border)}\n ${b("border-top",t.borderTop)}\n ${b("border-right",t.borderRight)}\n ${b("border-bottom",t.borderBottom)}\n ${b("border-left",t.borderLeft)}\n ${b("border-color",t.borderColor)}\n ${b("border-radius",t.borderRadius)}\n `,S=t=>{const e=t.scroll?`\n ${p=t.scroll,p.includes("x")?"overflow-x: auto;":""}\n ${(t=>t.includes("y")?"overflow-y: auto;":"")(t.scroll)}\n `:"",n=b("visibility",t.visibility),i=b("display",t.display),r=b("height",t.height),s=b("width",t.width),o=b("max-height",t.maxHeight),a=b("max-width",t.maxWidth),l=b("min-height",t.minHeight),c=b("min-width",t.minWidth),h=b("box-shadow",t.shadow?v.shadows[t.shadow]:void 0),u=b("gap",void 0===t.gap?void 0:v.spacing[t.gap]);var p;return`\n ${e}\n ${n}\n ${i}\n ${r}\n ${s}\n ${o}\n ${a}\n ${l}\n ${c}\n ${h}\n ${b("background-color",t.bgColor)}\n ${b("background",t.bgGradient)}\n ${u}\n ${b("flex-direction",t.flexDirection)}\n ${b("flex-grow",t.flexGrow)}\n ${b("justify-content",t.justify)}\n ${b("justify-self",t.justifySelf)}\n ${b("align-items",t.alignItems)}\n ${b("align-self",t.alignSelf)}\n ${b("flex-wrap",t.wrap)}\n `},$=t=>`\n ${b("color",t.color)}\n ${b("font-family",t.fontFamily)}\n ${b("font-size",t.fontSize)}\n ${b("font-weight",t.fontWeight)}\n ${b("line-spacing",t.letterSpacing)}\n ${b("line-height",t.lineSpacing)}\n ${b("text-align",t.textAlign)}\n ${b("text-decoration",t.textDecoration)}\n ${b("text-overflow",t.textOverflow)}\n ${b("white-space",t.whiteSpace)}\n ${b("word-break",t.wordBreak)}\n ${b("word-wrap",t.wordWrap)}\n `,C=t=>{const e=b("cursor",t.cursor),n=b("border-color",t.borderColorHover),i=b("background-color",t.bgColorHover),r=b("box-shadow",void 0===t.shadowHover?void 0:v.shadows[t.shadowHover]);return`\n ${e}\n\n &:hover {\n ${b("transition",t.transition)||"transition: all 0.2s;"}\n ${n}\n ${i}\n ${r}\n }\n `},A=()=>({shouldForwardProp:t=>!c.includes(t)}),P=t.styled.div.withConfig(A())`
12
+ "production"===process.env.NODE_ENV?f.exports=function(){if(h)return m;h=1;var t=e,n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(t,e,r){var a,l={},c=null,u=null;for(a in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)i.call(e,a)&&!s.hasOwnProperty(a)&&(l[a]=e[a]);if(t&&t.defaultProps)for(a in e=t.defaultProps)void 0===l[a]&&(l[a]=e[a]);return{$$typeof:n,type:t,key:c,ref:u,props:l,_owner:o.current}}return m.Fragment=r,m.jsx=a,m.jsxs=a,m}():f.exports=(d||(d=1,"production"!==process.env.NODE_ENV&&function(){var t,n=e,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,v=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];!function(t,e,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]));var i=n.map((function(t){return String(t)}));i.unshift("Warning: "+e),Function.prototype.apply.call(console.error,console,i)}(0,t,n)}function x(t){return t.displayName||"Context"}function w(t){if(null==t)return null;if("number"==typeof t.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case s:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return x(t)+".Consumer";case l:return x(t._context)+".Provider";case u:return function(t,e,n){var r=t.displayName;if(r)return r;var i=e.displayName||e.name||"";return""!==i?n+"("+i+")":n}(t,t.render,"ForwardRef");case d:var e=t.displayName||null;return null!==e?e:w(t.type)||"Memo";case f:var n=t,r=n._payload,m=n._init;try{return w(m(r))}catch(g){return null}}return null}t=Symbol.for("react.module.reference");var k,S,C,_,$,E,P,T=Object.assign,A=0;function j(){}j.__reactDisabledLog=!0;var O,M=v.ReactCurrentDispatcher;function D(t,e,n){if(void 0===O)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);O=r&&r[1]||""}return"\n"+O+t}var I,R=!1,F="function"==typeof WeakMap?WeakMap:Map;function L(t,e){if(!t||R)return"";var n,r=I.get(t);if(void 0!==r)return r;R=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=M.current,M.current=null,function(){if(0===A){k=console.log,S=console.info,C=console.warn,_=console.error,$=console.group,E=console.groupCollapsed,P=console.groupEnd;var t={configurable:!0,enumerable:!0,value:j,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}A++}();try{if(e){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(f){n=f}Reflect.construct(t,[],s)}else{try{s.call()}catch(f){n=f}t.call(s.prototype)}}else{try{throw Error()}catch(f){n=f}t()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var a=m.stack.split("\n"),l=n.stack.split("\n"),c=a.length-1,u=l.length-1;c>=1&&u>=0&&a[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(a[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||a[c]!==l[u]){var p="\n"+a[c].replace(" at new "," at ");return t.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",t.displayName)),"function"==typeof t&&I.set(t,p),p}}while(c>=1&&u>=0);break}}}finally{R=!1,M.current=i,function(){if(0==--A){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},t,{value:k}),info:T({},t,{value:S}),warn:T({},t,{value:C}),error:T({},t,{value:_}),group:T({},t,{value:$}),groupCollapsed:T({},t,{value:E}),groupEnd:T({},t,{value:P})})}A<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var h=t?t.displayName||t.name:"",d=h?D(h):"";return"function"==typeof t&&I.set(t,d),d}function N(t,e,n){if(null==t)return"";if("function"==typeof t)return L(t,!(!(r=t.prototype)||!r.isReactComponent));var r;if("string"==typeof t)return D(t);switch(t){case p:return D("Suspense");case h:return D("SuspenseList")}if("object"==typeof t)switch(t.$$typeof){case u:return L(t.render,!1);case d:return N(t.type,e,n);case f:var i=t,o=i._payload,s=i._init;try{return N(s(o),e,n)}catch(a){}}return""}I=new F;var z=Object.prototype.hasOwnProperty,V={},B=v.ReactDebugCurrentFrame;function W(t){if(t){var e=t._owner,n=N(t.type,t._source,e?e.type:null);B.setExtraStackFrame(n)}else B.setExtraStackFrame(null)}var q=Array.isArray;function U(t){return q(t)}function H(t){return""+t}function G(t){if(function(t){try{return H(t),!1}catch(e){return!0}}(t))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",(e=t,"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object")),H(t);var e}var K,Y,J,X=v.ReactCurrentOwner,Q={key:!0,ref:!0,__self:!0,__source:!0};J={};var Z,tt=v.ReactCurrentOwner,et=v.ReactDebugCurrentFrame;function nt(t){if(t){var e=t._owner,n=N(t.type,t._source,e?e.type:null);et.setExtraStackFrame(n)}else et.setExtraStackFrame(null)}function rt(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}function it(){if(tt.current){var t=w(tt.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}Z=!1;var ot={};function st(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=it();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!ot[n]){ot[n]=!0;var r="";t&&t._owner&&t._owner!==tt.current&&(r=" It was passed a child from "+w(t._owner.type)+"."),nt(t),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),nt(null)}}}function at(t,e){if("object"==typeof t)if(U(t))for(var n=0;n<t.length;n++){var r=t[n];rt(r)&&st(r,e)}else if(rt(t))t._store&&(t._store.validated=!0);else if(t){var i=function(t){if(null===t||"object"!=typeof t)return null;var e=y&&t[y]||t["@@iterator"];return"function"==typeof e?e:null}(t);if("function"==typeof i&&i!==t.entries)for(var o,s=i.call(t);!(o=s.next()).done;)rt(o.value)&&st(o.value,e)}}function lt(e,n,i,g,y,v){var x,k="string"==typeof(x=e)||"function"==typeof x||x===o||x===a||x===s||x===p||x===h||x===m||"object"==typeof x&&null!==x&&(x.$$typeof===f||x.$$typeof===d||x.$$typeof===l||x.$$typeof===c||x.$$typeof===u||x.$$typeof===t||void 0!==x.getModuleId);if(!k){var S,C="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(C+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),C+=it(),null===e?S="null":U(e)?S="array":void 0!==e&&e.$$typeof===r?(S="<"+(w(e.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,C)}var _=function(t,e,n,i,o){var s,a,l,c,u={},p=null,h=null;for(s in void 0!==n&&(G(n),p=""+n),function(t){if(z.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}(e)&&(G(e.key),p=""+e.key),function(t){if(z.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}(e)&&(h=e.ref,function(t,e){if("string"==typeof t.ref&&X.current&&e&&X.current.stateNode!==e){var n=w(X.current.type);J[n]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',w(X.current.type),t.ref),J[n]=!0)}}(e,o)),e)z.call(e,s)&&!Q.hasOwnProperty(s)&&(u[s]=e[s]);if(t&&t.defaultProps){var d=t.defaultProps;for(s in d)void 0===u[s]&&(u[s]=d[s])}if(p||h){var f="function"==typeof t?t.displayName||t.name||"Unknown":t;p&&(a=u,l=f,(c=function(){K||(K=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))}).isReactWarning=!0,Object.defineProperty(a,"key",{get:c,configurable:!0})),h&&function(t,e){var n=function(){Y||(Y=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(u,f)}return function(t,e,n,i,o,s,a){var l={$$typeof:r,type:t,key:e,ref:n,props:a,_owner:s,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(t,p,h,o,i,X.current,u)}(e,n,i,y,v);if(null==_)return _;if(k){var $=n.children;if(void 0!==$)if(g)if(U($)){for(var E=0;E<$.length;E++)at($[E],e);Object.freeze&&Object.freeze($)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else at($,e)}return e===o?function(t){for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){nt(t),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),nt(null);break}}null!==t.ref&&(nt(t),b("Invalid attribute `ref` supplied to `React.Fragment`."),nt(null))}(_):function(t){var e,n=t.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==d)return;e=n.propTypes}if(e){var r=w(n);!function(t,e,n,r,i){var o=Function.call.bind(z);for(var s in t)if(o(t,s)){var a=void 0;try{if("function"!=typeof t[s]){var l=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=t[s](e,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){a=c}!a||a instanceof Error||(W(i),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,s,typeof a),W(null)),a instanceof Error&&!(a.message in V)&&(V[a.message]=!0,W(i),b("Failed %s type: %s",n,a.message),W(null))}}(e,t.props,"prop",r,t)}else void 0===n.PropTypes||Z||(Z=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",w(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}(_),_}g.Fragment=o,g.jsx=function(t,e,n){return lt(t,e,n,!1)},g.jsxs=function(t,e,n){return lt(t,e,n,!0)}}()),g);var y=f.exports;const v={typography:{type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},shadows:{none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},breakpoints:{mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},spacing:{0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},palette:{primary:{25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},complementary:{25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},error:{25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},info:{25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},warning:{25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},success:{25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},black:"#0c111d",white:"#ffffff",gray:{25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},gradients:{"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"}}},b=(t,e)=>void 0===e?"":`${t}: ${e};`,x=t=>{const e=t.py??t.pt??0,n=t.px??t.pr??0,r=t.py??t.pb??0,i=t.px??t.pl??0;if(t.padding){const[e,n,r,i]=t.padding;return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`}return`padding: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`},w=t=>{const e=t.my??t.mt??0,n=t.mx??t.mr??0,r=t.my??t.mb??0,i=t.mx??t.ml??0;if(t.margin){const[e,n,r,i]=t.margin;return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`}return`margin: ${v.spacing[e]} ${v.spacing[n]} ${v.spacing[r]} ${v.spacing[i]};`},k=t=>`\n ${b("position",t.position)}\n ${b("top",t.top)}\n ${b("right",t.right)}\n ${b("bottom",t.bottom)}\n ${b("left",t.left)}\n ${b("z-index",t.zIndex)}\n `,S=t=>`\n ${b("border",t.border)}\n ${b("border-top",t.borderTop)}\n ${b("border-right",t.borderRight)}\n ${b("border-bottom",t.borderBottom)}\n ${b("border-left",t.borderLeft)}\n ${b("border-color",t.borderColor)}\n ${b("border-radius",t.borderRadius)}\n `,C=t=>{const e=t.scroll?`\n ${h=t.scroll,h.includes("x")?"overflow-x: auto;":""}\n ${(t=>t.includes("y")?"overflow-y: auto;":"")(t.scroll)}\n `:"",n=b("visibility",t.visibility),r=b("display",t.display),i=b("height",t.height),o=b("width",t.width),s=b("max-height",t.maxHeight),a=b("max-width",t.maxWidth),l=b("min-height",t.minHeight),c=b("min-width",t.minWidth),u=b("box-shadow",t.shadow?v.shadows[t.shadow]:void 0),p=b("gap",void 0===t.gap?void 0:v.spacing[t.gap]);var h;return`\n ${e}\n ${n}\n ${r}\n ${i}\n ${o}\n ${s}\n ${a}\n ${l}\n ${c}\n ${u}\n ${b("background-color",t.bgColor)}\n ${b("background",t.bgGradient)}\n ${p}\n ${b("flex-direction",t.flexDirection)}\n ${b("flex-grow",t.flexGrow)}\n ${b("justify-content",t.justify)}\n ${b("justify-self",t.justifySelf)}\n ${b("align-items",t.alignItems)}\n ${b("align-self",t.alignSelf)}\n ${b("flex-wrap",t.wrap)}\n `},_=t=>`\n ${b("color",t.color)}\n ${b("font-family",t.fontFamily)}\n ${b("font-size",t.fontSize)}\n ${b("font-weight",t.fontWeight)}\n ${b("line-spacing",t.letterSpacing)}\n ${b("line-height",t.lineSpacing)}\n ${b("text-align",t.textAlign)}\n ${b("text-decoration",t.textDecoration)}\n ${b("text-overflow",t.textOverflow)}\n ${b("white-space",t.whiteSpace)}\n ${b("word-break",t.wordBreak)}\n ${b("word-wrap",t.wordWrap)}\n `,$=t=>{const e=b("cursor",t.cursor),n=b("border-color",t.borderColorHover),r=b("background-color",t.bgColorHover),i=b("box-shadow",void 0===t.shadowHover?void 0:v.shadows[t.shadowHover]);return`\n ${e}\n\n &:hover {\n ${b("transition",t.transition)||"transition: all 0.2s;"}\n ${n}\n ${r}\n ${i}\n }\n `},E=()=>({shouldForwardProp:t=>!c.includes(t)}),P=t.styled.div.withConfig(E())`
13
13
  ${x}
14
14
  ${w}
15
15
  ${k}
16
+ ${C}
17
+ ${_}
16
18
  ${S}
17
19
  ${$}
18
- ${_}
19
- ${C}
20
- `,T=t.styled.button.withConfig(A())`
20
+ `,T=t.styled.button.withConfig(E())`
21
21
  ${x}
22
22
  ${w}
23
23
  ${k}
24
+ ${C}
25
+ ${_}
24
26
  ${S}
25
27
  ${$}
26
- ${_}
27
- ${C}
28
- `,E=t.styled.p.withConfig(A())`
28
+ `,A=t.styled.p.withConfig(E())`
29
29
  ${x}
30
30
  ${w}
31
31
  ${k}
32
+ ${C}
33
+ ${_}
32
34
  ${S}
33
35
  ${$}
34
- ${_}
35
- ${C}
36
- `,j=t.styled.span.withConfig(A())`
36
+ `,j=t.styled.span.withConfig(E())`
37
37
  ${x}
38
38
  ${w}
39
39
  ${k}
40
+ ${C}
41
+ ${_}
40
42
  ${S}
41
43
  ${$}
42
- ${_}
43
- ${C}
44
- `,D=t.styled(P)`
45
- ${({theme:t,$center:e=!1,$styleMd:n,$styleSm:i})=>`\n ${e?"margin: auto;":""}\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n ${n};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${i};\n }\n `}
46
- `,M=e.forwardRef((function({as:t="div",center:e,children:n,id:i,onHover:r,onLeave:s,styleMd:o,styleSm:a,...l},c){return y.jsx(D,{$center:e,$styleMd:o,$styleSm:a,as:t,id:i,onMouseLeave:s,onMouseOver:r,ref:c,...l,children:n})})),F=t.styled(E)`
47
- ${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[800],$display:i="block",$fontFamily:r=t.typography.type.primary,$fontWeight:s="bold",$letterSpacing:o=0,$lineSpacing:a=1.5,$lineSpacingSm:l,$size:c,$sizeMd:h,$sizeSm:u,$textFill:p="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${i};\n font-family: ${r};\n font-size: ${t.typography.heading[c]};\n font-weight: ${t.typography.weight[s]};\n letter-spacing: ${o};\n line-height: ${t.spacing[a]};\n width: ${"block"===i?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${p};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.heading[h??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.heading[u??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
48
- `,I=t.styled(E)`
49
- ${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[600],$display:i="block",$fontFamily:r=t.typography.type.primary,$fontWeight:s="regular",$letterSpacing:o=0,$lineSpacing:a=1.25,$lineSpacingSm:l,$size:c,$sizeMd:h,$sizeSm:u,$textFill:p="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${i};\n font-family: ${r};\n font-size: ${t.typography.text[c]};\n font-weight: ${t.typography.weight[s]};\n letter-spacing: ${o};\n line-height: ${t.spacing[a]};\n width: ${"block"===i?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${p};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.text[h??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text[u??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
50
- `,R=e.forwardRef((function({bgGradient:t,children:e,className:n,color:i,display:r,fontFamily:s,fontWeight:o,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:h,sizeMd:u,sizeSm:p,textFill:d,wordBreak:f,...m},g){return y.jsx(F,{$bgGradient:t,$color:i,$display:r,$fontFamily:s,$fontWeight:o,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:h,$sizeMd:u,$sizeSm:p,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),L=e.forwardRef((function({bgGradient:t,children:e,className:n,color:i,display:r,fontFamily:s,fontWeight:o,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:h,sizeMd:u,sizeSm:p,textFill:d,wordBreak:f,...m},g){return y.jsx(I,{$bgGradient:t,$color:i,$display:r,$fontFamily:s,$fontWeight:o,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:h,$sizeMd:u,$sizeSm:p,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),O=({isSelectedAndOpen:t,item:e})=>y.jsxs(M,{display:t?"block":"none",padding:[.75,.75,.75,.75],children:[e.description?y.jsx(L,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?y.jsx(M,{children:e.extraElement}):void 0]}),z={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},N=t.styled(j)`
51
- ${({$clickable:t,$color:e="inherit",$disabled:n=!1,$hoverColor:i,$rotation:r,$size:s})=>`\n color: ${e};\n cursor: ${t?"pointer":"inherit"};\n font-size: ${z[s]};\n line-height: 0;\n vertical-align: middle;\n pointer-events: inherit;\n opacity: ${n?"0.5":"1"};\n\n > svg {\n transform: ${void 0===r?"":`rotate(${r}deg)`};\n }\n\n .fill-gradient-01 path {\n fill: url(/gradients.svg#gradient-01);\n fill: url(#gradient-01);\n }\n .fill-gradient-02 path {\n fill: url(/gradients.svg#gradient-02);\n fill: url(#gradient-02);\n }\n\n ${t?`&:hover {\n filter: ${i?"":"brightness(50%)"};\n color: ${i??""};\n }`:""}\n `}
44
+ `,O=t.styled(P)`
45
+ ${({theme:t,$center:e=!1,$styleMd:n,$styleSm:r})=>`\n ${e?"margin: auto;":""}\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n ${n};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${r};\n }\n `}
46
+ `,M=e.forwardRef((function({as:t="div",center:e,children:n,id:r,onHover:i,onLeave:o,styleMd:s,styleSm:a,...l},c){return y.jsx(O,{$center:e,$styleMd:s,$styleSm:a,as:t,id:r,onMouseLeave:o,onMouseOver:i,ref:c,...l,children:n})})),D=t.styled(A)`
47
+ ${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[800],$display:r="block",$fontFamily:i=t.typography.type.primary,$fontWeight:o="bold",$letterSpacing:s=0,$lineSpacing:a=1.5,$lineSpacingSm:l,$size:c,$sizeMd:u,$sizeSm:p,$textFill:h="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${r};\n font-family: ${i};\n font-size: ${t.typography.heading[c]};\n font-weight: ${t.typography.weight[o]};\n letter-spacing: ${s};\n line-height: ${t.spacing[a]};\n width: ${"block"===r?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${h};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.heading[u??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.heading[p??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
48
+ `,I=t.styled(A)`
49
+ ${({theme:t,$bgGradient:e="unset",$color:n=t.palette.gray[600],$display:r="block",$fontFamily:i=t.typography.type.primary,$fontWeight:o="regular",$letterSpacing:s=0,$lineSpacing:a=1.25,$lineSpacingSm:l,$size:c,$sizeMd:u,$sizeSm:p,$textFill:h="unset",$wordBreak:d="normal"})=>`\n background: ${e};\n color: ${n};\n display: ${r};\n font-family: ${i};\n font-size: ${t.typography.text[c]};\n font-weight: ${t.typography.weight[o]};\n letter-spacing: ${s};\n line-height: ${t.spacing[a]};\n width: ${"block"===r?"100%":"auto"};\n word-break: ${d};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: ${h};\n\n @media screen\n and (min-width: ${t.breakpoints.mobile})\n and (max-width: ${t.breakpoints.tablet})\n {\n font-size: ${t.typography.text[u??c]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text[p??c]};\n line-height: ${t.spacing[l??a]};\n }\n `}
50
+ `,R=e.forwardRef((function({bgGradient:t,children:e,className:n,color:r,display:i,fontFamily:o,fontWeight:s,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:u,sizeMd:p,sizeSm:h,textFill:d,wordBreak:f,...m},g){return y.jsx(D,{$bgGradient:t,$color:r,$display:i,$fontFamily:o,$fontWeight:s,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:u,$sizeMd:p,$sizeSm:h,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),F=e.forwardRef((function({bgGradient:t,children:e,className:n,color:r,display:i,fontFamily:o,fontWeight:s,letterSpacing:a,lineSpacing:l,lineSpacingSm:c,size:u,sizeMd:p,sizeSm:h,textFill:d,wordBreak:f,...m},g){return y.jsx(I,{$bgGradient:t,$color:r,$display:i,$fontFamily:o,$fontWeight:s,$letterSpacing:a,$lineSpacing:l,$lineSpacingSm:c,$size:u,$sizeMd:p,$sizeSm:h,$textFill:d,$wordBreak:f,className:n,ref:g,...m,children:e})})),L=({isSelectedAndOpen:t,item:e})=>y.jsxs(M,{display:t?"block":"none",padding:[.75,.75,.75,.75],children:[e.description?y.jsx(F,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?y.jsx(M,{children:e.extraElement}):void 0]}),N={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},z=t.styled(j)`
51
+ ${({$clickable:t,$color:e="inherit",$disabled:n=!1,$hoverColor:r,$rotation:i,$size:o})=>`\n color: ${e};\n cursor: ${t?"pointer":"inherit"};\n font-size: ${N[o]};\n line-height: 0;\n vertical-align: middle;\n pointer-events: inherit;\n opacity: ${n?"0.5":"1"};\n\n > svg {\n transform: ${void 0===i?"":`rotate(${i}deg)`};\n }\n\n .fill-gradient-01 path {\n fill: url(/gradients.svg#gradient-01);\n fill: url(#gradient-01);\n }\n .fill-gradient-02 path {\n fill: url(/gradients.svg#gradient-02);\n fill: url(#gradient-02);\n }\n\n ${t?`&:hover {\n filter: ${r?"":"brightness(50%)"};\n color: ${r??""};\n }`:""}\n `}
52
52
  `;t.styled.div`
53
53
  cursor: pointer;
54
54
  transition: all 0.2s ease-in-out;
@@ -56,54 +56,54 @@
56
56
  &:hover:not([disabled]) {
57
57
  transform: scale(1.2);
58
58
  }
59
- `;const V=e.forwardRef((function({clickable:t,disabled:e,hoverColor:n,icon:i,iconClass:r="",iconColor:s,iconMask:o,iconSize:a,iconTransform:l,iconType:c="fa-solid",onClick:h,rotation:u,...p},d){return y.jsx(N,{$clickable:t,$color:s,$disabled:e,$hoverColor:n,$rotation:u,$size:a,"data-testid":`${i}-icon`,onClick:h,ref:d,...p,children:y.jsx("i",{className:`${c} fa-${i} ${r}`,...void 0!==o?{"data-fa-mask":o}:{},...void 0!==l?{"data-fa-transform":l}:{}})},`${c}-${i}`)})),q=e.forwardRef((function({aligned:n="end",items:i,bgColor:r},s){const o=t.useTheme(),[a,l]=e.useState(!1),[c,h]=e.useState(-1),u=e.useCallback((t=>()=>{h(t),l(t!==c||(t=>!t))}),[c]);return y.jsx(M,{ref:s,children:i.map(((t,e)=>{const s=e===c&&a;return y.jsxs(M,{bgColor:r??o.palette.white,children:[y.jsx(M,{bgColorHover:o.palette.gray[100],borderBottom:s||e===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",onClick:u(e),padding:[.75,.75,.75,.75],children:y.jsxs(M,{as:"summary",display:"flex",flexDirection:"end"===n?"row":"row-reverse",gap:.75,justify:"space-between",children:[y.jsx(L,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",children:t.title}),y.jsx(V,{icon:s?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),y.jsx(O,{isSelectedAndOpen:s,item:t})]},t.title)}))})})),B=t=>{switch(t){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";default:return"circle-exclamation"}},{getVariant:W}=l((t=>({error:`\n background: ${t.palette.error[50]};\n border: 1px solid ${t.palette.error[500]};\n color: ${t.palette.error[700]};\n\n button {\n color: ${t.palette.error[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.error[200]};\n color: ${t.palette.error[700]};\n }\n }\n `,info:`\n background: ${t.palette.info[50]};\n border: 1px solid ${t.palette.info[500]};\n color: ${t.palette.info[700]};\n\n button {\n color: ${t.palette.info[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.info[200]};\n color: ${t.palette.info[700]};\n }\n }\n `,success:`\n background: ${t.palette.success[50]};\n border: 1px solid ${t.palette.success[500]};\n color: ${t.palette.success[700]};\n\n button {\n color: ${t.palette.success[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.success[200]};\n color: ${t.palette.success[700]};\n }\n }\n `,warning:`\n background: ${t.palette.warning[50]};\n border: 1px solid ${t.palette.warning[500]};\n color: ${t.palette.warning[700]};\n\n button {\n color: ${t.palette.warning[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.warning[200]};\n color: ${t.palette.warning[700]};\n }\n }\n `}))),U=t.styled.div`
60
- ${({theme:t,$variant:e})=>`\n background: transparent;\n align-items: center;\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.bold};\n line-height: ${t.spacing[1.25]};\n min-width: 250px;\n width: 100%;\n padding: ${t.spacing[.75]};\n position: relative;\n gap: ${t.spacing[.75]};\n\n button {\n background-color: transparent;\n }\n\n ${W(t,e??"error")}\n `}
59
+ `;const V=e.forwardRef((function({clickable:t,disabled:e,hoverColor:n,icon:r,iconClass:i="",iconColor:o,iconMask:s,iconSize:a,iconTransform:l,iconType:c="fa-solid",onClick:u,rotation:p,...h},d){return y.jsx(z,{$clickable:t,$color:o,$disabled:e,$hoverColor:n,$rotation:p,$size:a,"data-testid":`${r}-icon`,onClick:u,ref:d,...h,children:y.jsx("i",{className:`${c} fa-${r} ${i}`,...void 0!==s?{"data-fa-mask":s}:{},...void 0!==l?{"data-fa-transform":l}:{}})},`${c}-${r}`)})),B=e.forwardRef((function({aligned:n="end",items:r,bgColor:i},o){const s=t.useTheme(),[a,l]=e.useState(!1),[c,u]=e.useState(-1),p=e.useCallback((t=>()=>{u(t),l(t!==c||(t=>!t))}),[c]);return y.jsx(M,{ref:o,children:r.map(((t,e)=>{const o=e===c&&a;return y.jsxs(M,{bgColor:i??s.palette.white,children:[y.jsx(M,{bgColorHover:s.palette.gray[100],borderBottom:o||e===r.length-1?"1px solid":void 0,borderColor:s.palette.gray[200],borderTop:"1px solid",cursor:"pointer",onClick:p(e),padding:[.75,.75,.75,.75],children:y.jsxs(M,{as:"summary",display:"flex",flexDirection:"end"===n?"row":"row-reverse",gap:.75,justify:"space-between",children:[y.jsx(F,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",children:t.title}),y.jsx(V,{icon:o?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),y.jsx(L,{isSelectedAndOpen:o,item:t})]},t.title)}))})})),W=t=>{switch(t){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";default:return"circle-exclamation"}},{getVariant:q}=l((t=>({error:`\n background: ${t.palette.error[50]};\n border: 1px solid ${t.palette.error[500]};\n color: ${t.palette.error[700]};\n\n button {\n color: ${t.palette.error[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.error[200]};\n color: ${t.palette.error[700]};\n }\n }\n `,info:`\n background: ${t.palette.info[50]};\n border: 1px solid ${t.palette.info[500]};\n color: ${t.palette.info[700]};\n\n button {\n color: ${t.palette.info[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.info[200]};\n color: ${t.palette.info[700]};\n }\n }\n `,success:`\n background: ${t.palette.success[50]};\n border: 1px solid ${t.palette.success[500]};\n color: ${t.palette.success[700]};\n\n button {\n color: ${t.palette.success[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.success[200]};\n color: ${t.palette.success[700]};\n }\n }\n `,warning:`\n background: ${t.palette.warning[50]};\n border: 1px solid ${t.palette.warning[500]};\n color: ${t.palette.warning[700]};\n\n button {\n color: ${t.palette.warning[700]};\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.warning[200]};\n color: ${t.palette.warning[700]};\n }\n }\n `}))),U=t.styled.div`
60
+ ${({theme:t,$variant:e})=>`\n background: transparent;\n align-items: center;\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.bold};\n line-height: ${t.spacing[1.25]};\n min-width: 250px;\n width: 100%;\n padding: ${t.spacing[.75]};\n position: relative;\n gap: ${t.spacing[.75]};\n\n button {\n background-color: transparent;\n }\n\n ${q(t,e??"error")}\n `}
61
61
  `,H=t.styled.div`
62
62
  padding-right: 4px;
63
63
  width: 100%;
64
- `,{getVariant:G}=l((t=>({ghost:`\n background: transparent;\n border: none;\n color: ${t.palette.gray[800]};\n --btn-padding-x: ${t.spacing[.5]};\n --btn-padding-y: ${t.spacing[.625]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n `,ghostWeb:`\n --btn-padding-x: ${t.spacing[.5]};\n --btn-padding-y: ${t.spacing[.5]};\n background: transparent;\n border: none;\n color: ${t.palette.gray[800]};\n\n &:disabled {\n background: transparent;\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n --btn-padding-x: ${t.spacing[.75]};\n --btn-padding-y: ${t.spacing[.75]};\n }\n `,link:`\n --btn-padding-x: 0;\n --btn-padding-y: 0;\n &.dark {\n color: ${t.palette.gray[200]};\n\n &:hover {\n color: ${t.palette.gray[400]};\n }\n }\n &.light {\n color: ${t.palette.gray[800]};\n\n &:hover {\n color: ${t.palette.gray[500]};\n }\n }\n `,primary:`\n background: ${t.palette.primary[500]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[700]};\n color: ${t.palette.white};\n }\n `,primaryWeb:`\n background:\n linear-gradient(var(--animate-position), var(--color-1), var(--color-2));\n background-size: 100%;\n color: ${t.palette.white};\n animation: gradientAnimation 2.5s infinite;\n animation-timing-function: linear;\n\n &:hover {\n --color-1: ${t.palette.primary[700]};\n --color-2: ${t.palette.primary[700]};\n color: ${t.palette.white};\n }\n `,secondary:`\n background: ${t.palette.gray[800]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[600]};\n color: ${t.palette.white};\n }\n `,secondaryWeb:`\n &.dark {\n background: transparent;\n border: 2px solid ${t.palette.white};\n color: ${t.palette.white};\n\n &:hover {\n background-color: ${t.palette.white};\n color: ${t.palette.primary[500]};\n }\n }\n &.light {\n color: ${t.palette.primary[500]};\n\n &::before {\n background: linear-gradient(var(--border-angle), var(--color-1), var(--color-2)) border-box;\n border-radius: ${t.spacing[.5]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n animation: spinAnimation 1s infinite;\n }\n\n &:hover::before {\n --color-1: ${t.palette.primary[500]};\n --color-2: ${t.palette.primary[500]};\n }\n &:hover {\n background-color: ${t.palette.primary[500]};\n border-color: transparent;\n color: ${t.palette.white};\n }\n }\n `,tertiary:`\n background: transparent;\n border: 1px solid ${t.palette.primary[500]};\n color: ${t.palette.primary[500]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: transparent;\n border: 1px solid ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n }\n `}))),Q=t.styled(T)`
65
- ${({theme:t,$variant:e})=>`\n align-items: center;\n border-radius: var(--btn-spacing);\n cursor: pointer;\n display: inline-flex;\n gap: var(--btn-spacing);\n justify-content: center;\n padding: var(--btn-padding-y) var(--btn-padding-x);\n position: relative;\n text-align: start;\n transition: all 0.5s ease;\n white-space: nowrap;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${"link"!==e?`--btn-padding-y: ${t.spacing[1]}`:""};\n }\n\n ${G(t,e??"primaryWeb")}\n `}
66
- `,J=t.styled(Q)`
67
- ${({theme:t,$borderRadius:e="4px",$px:n=.5,$py:i=.5})=>`\n --btn-spacing: ${e};\n --btn-padding-x: ${t.spacing[n]};\n --btn-padding-y: ${t.spacing[i]};\n\n align-items: center;\n line-height: 0;\n text-align: center;\n\n > span {\n margin: 0 !important;\n }\n `}
68
- `,K=Math.min,Y=Math.max,X=Math.round,Z=Math.floor,tt=t=>({x:t,y:t}),et={left:"right",right:"left",bottom:"top",top:"bottom"},nt={start:"end",end:"start"};function it(t,e,n){return Y(t,K(e,n))}function rt(t,e){return"function"==typeof t?t(e):t}function st(t){return t.split("-")[0]}function ot(t){return t.split("-")[1]}function at(t){return"x"===t?"y":"x"}function lt(t){return"y"===t?"height":"width"}function ct(t){return["top","bottom"].includes(st(t))?"y":"x"}function ht(t){return at(ct(t))}function ut(t){return t.replace(/start|end/g,(t=>nt[t]))}function pt(t){return t.replace(/left|right|bottom|top/g,(t=>et[t]))}function dt(t){return"number"!=typeof t?(e=t,{top:0,right:0,bottom:0,left:0,...e}):{top:t,right:t,bottom:t,left:t};var e}function ft(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function mt(t,e,n){let{reference:i,floating:r}=t;const s=ct(e),o=ht(e),a=lt(o),l=st(e),c="y"===s,h=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let d;switch(l){case"top":d={x:h,y:i.y-r.height};break;case"bottom":d={x:h,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:u};break;case"left":d={x:i.x-r.width,y:u};break;default:d={x:i.x,y:i.y}}switch(ot(e)){case"start":d[o]-=p*(n&&c?-1:1);break;case"end":d[o]+=p*(n&&c?-1:1)}return d}async function gt(t,e){var n;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:p=!1,padding:d=0}=rt(e,t),f=dt(d),m=a[p?"floating"===u?"reference":"floating":u],g=ft(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),y="floating"===u?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},x=ft(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function yt(){return"undefined"!=typeof window}function vt(t){return wt(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function xt(t){var e;return null==(e=(wt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function wt(t){return!!yt()&&(t instanceof Node||t instanceof bt(t).Node)}function kt(t){return!!yt()&&(t instanceof Element||t instanceof bt(t).Element)}function _t(t){return!!yt()&&(t instanceof HTMLElement||t instanceof bt(t).HTMLElement)}function St(t){return!(!yt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot)}function $t(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function Ct(t){return["table","td","th"].includes(vt(t))}function At(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function Pt(t){const e=Tt(),n=kt(t)?jt(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Tt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Et(t){return["html","body","#document"].includes(vt(t))}function jt(t){return bt(t).getComputedStyle(t)}function Dt(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if("html"===vt(t))return t;const e=t.assignedSlot||t.parentNode||St(t)&&t.host||xt(t);return St(e)?e.host:e}function Ft(t){const e=Mt(t);return Et(e)?t.ownerDocument?t.ownerDocument.body:t.body:_t(e)&&$t(e)?e:Ft(e)}function It(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=Ft(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),o=bt(r);if(s){const t=Rt(o);return e.concat(o,o.visualViewport||[],$t(r)?r:[],t&&n?It(t):[])}return e.concat(r,It(r,[],n))}function Rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Lt(t){const e=jt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=_t(t),s=r?t.offsetWidth:n,o=r?t.offsetHeight:i,a=X(n)!==s||X(i)!==o;return a&&(n=s,i=o),{width:n,height:i,$:a}}function Ot(t){return kt(t)?t:t.contextElement}function zt(t){const e=Ot(t);if(!_t(e))return tt(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:s}=Lt(e);let o=(s?X(n.width):n.width)/i,a=(s?X(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}const Nt=tt(0);function Vt(t){const e=bt(t);return Tt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Nt}function qt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),s=Ot(t);let o=tt(1);e&&(i?kt(i)&&(o=zt(i)):o=zt(t));const a=(l=s,void 0===(c=n)&&(c=!1),!(h=i)||c&&h!==bt(l)||!c?tt(0):Vt(s));var l,c,h;let u=(r.left+a.x)/o.x,p=(r.top+a.y)/o.y,d=r.width/o.x,f=r.height/o.y;if(s){const t=bt(s),e=i&&kt(i)?bt(i):i;let n=t,r=Rt(n);for(;r&&i&&e!==n;){const t=zt(r),e=r.getBoundingClientRect(),i=jt(r),s=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,o=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;u*=t.x,p*=t.y,d*=t.x,f*=t.y,u+=s,p+=o,n=bt(r),r=Rt(n)}}return ft({width:d,height:f,x:u,y:p})}function Bt(t,e){const n=Dt(t).scrollLeft;return e?e.left+n:qt(xt(t)).left+n}function Wt(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Bt(t,i)),y:i.top+e.scrollTop}}function Ut(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=bt(t),i=xt(t),r=n.visualViewport;let s=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;const t=Tt();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a,y:l}}(t,n);else if("document"===e)i=function(t){const e=xt(t),n=Dt(t),i=t.ownerDocument.body,r=Y(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=Y(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+Bt(t);const a=-n.scrollTop;return"rtl"===jt(i).direction&&(o+=Y(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:o,y:a}}(xt(t));else if(kt(e))i=function(t,e){const n=qt(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,s=_t(t)?zt(t):tt(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:i*s.y}}(e,n);else{const n=Vt(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ft(i)}function Ht(t,e){const n=Mt(t);return!(n===e||!kt(n)||Et(n))&&("fixed"===jt(n).position||Ht(n,e))}function Gt(t,e,n){const i=_t(e),r=xt(e),s="fixed"===n,o=qt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=tt(0);if(i||!i&&!s)if(("body"!==vt(e)||$t(r))&&(a=Dt(e)),i){const t=qt(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Bt(r));const c=!r||i||s?tt(0):Wt(r,a);return{x:o.left+a.scrollLeft-l.x-c.x,y:o.top+a.scrollTop-l.y-c.y,width:o.width,height:o.height}}function Qt(t){return"static"===jt(t).position}function Jt(t,e){if(!_t(t)||"fixed"===jt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return xt(t)===n&&(n=n.ownerDocument.body),n}function Kt(t,e){const n=bt(t);if(At(t))return n;if(!_t(t)){let e=Mt(t);for(;e&&!Et(e);){if(kt(e)&&!Qt(e))return e;e=Mt(e)}return n}let i=Jt(t,e);for(;i&&Ct(i)&&Qt(i);)i=Jt(i,e);return i&&Et(i)&&Qt(i)&&!Pt(i)?n:i||function(t){let e=Mt(t);for(;_t(e)&&!Et(e);){if(Pt(e))return e;if(At(e))return null;e=Mt(e)}return null}(t)||n}const Yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const s="fixed"===r,o=xt(i),a=!!e&&At(e.floating);if(i===o||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=tt(1);const h=tt(0),u=_t(i);if((u||!u&&!s)&&(("body"!==vt(i)||$t(o))&&(l=Dt(i)),_t(i))){const t=qt(i);c=zt(i),h.x=t.x+i.clientLeft,h.y=t.y+i.clientTop}const p=!o||u||s?tt(0):Wt(o,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+h.x+p.x,y:n.y*c.y-l.scrollTop*c.y+h.y+p.y}},getDocumentElement:xt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const s=[..."clippingAncestors"===n?At(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=It(t,[],!1).filter((t=>kt(t)&&"body"!==vt(t))),r=null;const s="fixed"===jt(t).position;let o=s?Mt(t):t;for(;kt(o)&&!Et(o);){const e=jt(o),n=Pt(o);n||"fixed"!==e.position||(r=null),(s?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||$t(o)&&!n&&Ht(t,o))?i=i.filter((t=>t!==o)):r=e,o=Mt(o)}return e.set(t,i),i}(e,this._c):[].concat(n),i],o=s[0],a=s.reduce(((t,n)=>{const i=Ut(e,n,r);return t.top=Y(i.top,t.top),t.right=K(i.right,t.right),t.bottom=K(i.bottom,t.bottom),t.left=Y(i.left,t.left),t}),Ut(e,o,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Kt,getElementRects:async function(t){const e=this.getOffsetParent||Kt,n=this.getDimensions,i=await n(t.floating);return{reference:Gt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Lt(t);return{width:e,height:n}},getScale:zt,isElement:kt,isRTL:function(t){return"rtl"===jt(t).direction}};function Xt(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Ot(t),h=r||s?[...c?It(c):[],...It(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));const u=c&&a?function(t,e){let n,i=null;const r=xt(t);function s(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function o(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:c,top:h,width:u,height:p}=t.getBoundingClientRect();if(a||e(),!u||!p)return;const d={rootMargin:-Z(h)+"px "+-Z(r.clientWidth-(c+u))+"px "+-Z(r.clientHeight-(h+p))+"px "+-Z(c)+"px",threshold:Y(0,K(1,l))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return o();e?o(!1,e):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}f=!1}try{i=new IntersectionObserver(m,{...d,root:r.ownerDocument})}catch(g){i=new IntersectionObserver(m,d)}i.observe(t)}(!0),s}(c,n):null;let p,d=-1,f=null;o&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),c&&!l&&f.observe(c),f.observe(e));let m=l?qt(t):null;return l&&function e(){const i=qt(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||n(),m=i,p=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Zt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:s,placement:o,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),o=st(n),a=ot(n),l="y"===ct(n),c=["left","top"].includes(o)?-1:1,h=s&&l?-1:1,u=rt(e,t);let{mainAxis:p,crossAxis:d,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&"number"==typeof f&&(d="end"===a?-1*f:f),l?{x:d*h,y:p*c}:{x:p*c,y:d*h}}(e,t);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:o}}}}},te=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=rt(t,e),c={x:n,y:i},h=await gt(e,l),u=ct(st(r)),p=at(u);let d=c[p],f=c[u];if(s){const t="y"===p?"bottom":"right";d=it(d+h["y"===p?"top":"left"],d,d-h[t])}if(o){const t="y"===u?"bottom":"right";f=it(f+h["y"===u?"top":"left"],f,f-h[t])}const m=a.fn({...e,[p]:d,[u]:f});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[p]:s,[u]:o}}}}}},ee=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:h=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=rt(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const y=st(r),v=ct(a),b=st(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(b||!m?[pt(a)]:function(t){const e=pt(t);return[ut(t),e,ut(e)]}(a)),k="none"!==f;!p&&k&&w.push(...function(t,e,n,i){const r=ot(t);let s=function(t,e,n){const i=["left","right"],r=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?s:o;default:return[]}}(st(t),"start"===n,i);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(ut)))),s}(a,m,f,x));const _=[a,...w],S=await gt(e,g),$=[];let C=(null==(i=s.flip)?void 0:i.overflows)||[];if(h&&$.push(S[y]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=ot(t),r=ht(t),s=lt(r);let o="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=pt(o)),[o,pt(o)]}(r,o,x);$.push(S[t[0]],S[t[1]])}if(C=[...C,{placement:r,overflows:$}],!$.every((t=>t<=0))){var A,P;const t=((null==(A=s.flip)?void 0:A.index)||0)+1,e=_[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(P=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(d){case"bestFit":{var T;const t=null==(T=C.filter((t=>{if(k){const e=ct(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:T[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},ne=(t,e,n)=>{const i=new Map,r={platform:Yt,...n},s={...r.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:o}=n,a=s.filter(Boolean),l=await(null==o.isRTL?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:u}=mt(c,i,l),p=i,d={},f=0;for(let m=0;m<a.length;m++){const{name:n,fn:s}=a[m],{x:g,y:y,data:v,reset:b}=await s({x:h,y:u,initialPlacement:i,placement:p,strategy:r,middlewareData:d,rects:c,platform:o,elements:{reference:t,floating:e}});h=null!=g?g:h,u=null!=y?y:u,d={...d,[n]:{...d[n],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(p=b.placement),b.rects&&(c=!0===b.rects?await o.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:h,y:u}=mt(c,p,l))),m=-1)}return{x:h,y:u,placement:p,strategy:r,middlewareData:d}})(t,e,{...r,platform:s})};var ie="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function re(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;0!=i--;)if(!re(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){const n=r[i];if(!("_owner"===n&&t.$$typeof||re(t[n],e[n])))return!1}return!0}return t!=t&&e!=e}function se(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function oe(t,e){const n=se(t);return Math.round(e*n)/n}function ae(t){const e=o.useRef(t);return ie((()=>{e.current=t})),e}const le=(t,e)=>({...Zt(t),options:[t,e]});var ce=Object.prototype,he=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ce)},ue=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),pe=he,de=ue,fe=Object.prototype.hasOwnProperty,me="object"==typeof h&&h&&h.Object===Object&&h,ge=me,ye="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||ye||Function("return this")(),be=ve.Symbol,xe=be,we=Object.prototype,ke=we.hasOwnProperty,_e=we.toString,Se=xe?xe.toStringTag:void 0,$e=Object.prototype.toString,Ce=function(t){var e=ke.call(t,Se),n=t[Se];try{t[Se]=void 0;var i=!0}catch(s){}var r=_e.call(t);return i&&(e?t[Se]=n:delete t[Se]),r},Ae=be?be.toStringTag:void 0,Pe=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ae&&Ae in Object(t)?Ce(t):function(t){return $e.call(t)}(t)},Te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Ee=u(Te);var je,De=Pe,Me=Te,Fe=function(t){if(!Me(t))return!1;var e=De(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ie=ve["__core-js_shared__"],Re=(je=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Le=Function.prototype.toString,Oe=function(t){if(null!=t){try{return Le.call(t)}catch(e){}try{return t+""}catch(e){}}return""},ze=Fe,Ne=function(t){return!!Re&&Re in t},Ve=Te,qe=Oe,Be=/^\[object .+?Constructor\]$/,We=Function.prototype,Ue=Object.prototype,He=We.toString,Ge=Ue.hasOwnProperty,Qe=RegExp("^"+He.call(Ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Je=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ve(t)||Ne(t))&&(ze(t)?Qe:Be).test(qe(t))}(n)?n:void 0},Ke=Je(ve,"DataView"),Ye=Je(ve,"Map"),Xe=Je(ve,"Promise"),Ze=Je(ve,"Set"),tn=Je(ve,"WeakMap"),en=Pe,nn=Oe,rn="[object Map]",sn="[object Promise]",on="[object Set]",an="[object WeakMap]",ln="[object DataView]",cn=nn(Ke),hn=nn(Ye),un=nn(Xe),pn=nn(Ze),dn=nn(tn),fn=en;(Ke&&fn(new Ke(new ArrayBuffer(1)))!=ln||Ye&&fn(new Ye)!=rn||Xe&&fn(Xe.resolve())!=sn||Ze&&fn(new Ze)!=on||tn&&fn(new tn)!=an)&&(fn=function(t){var e=en(t),n="[object Object]"==e?t.constructor:void 0,i=n?nn(n):"";if(i)switch(i){case cn:return ln;case hn:return rn;case un:return sn;case pn:return on;case dn:return an}return e});var mn,gn,yn,vn,bn,xn,wn,kn,_n=fn,Sn=function(t){return null!=t&&"object"==typeof t},$n=Pe,Cn=Sn,An=function(t){return Cn(t)&&"[object Arguments]"==$n(t)},Pn=Sn,Tn=Object.prototype,En=Tn.hasOwnProperty,jn=Tn.propertyIsEnumerable,Dn=An(function(){return arguments}())?An:function(t){return Pn(t)&&En.call(t,"callee")&&!jn.call(t,"callee")},Mn=Array.isArray,Fn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},In=Fe,Rn=Fn,Ln={exports:{}};mn=Ln,yn=ve,vn=function(){return!1},bn=(gn=Ln.exports)&&!gn.nodeType&&gn,xn=bn&&mn&&!mn.nodeType&&mn,wn=xn&&xn.exports===bn?yn.Buffer:void 0,kn=(wn?wn.isBuffer:void 0)||vn,mn.exports=kn;var On=Ln.exports,zn=Pe,Nn=Fn,Vn=Sn,qn={};qn["[object Float32Array]"]=qn["[object Float64Array]"]=qn["[object Int8Array]"]=qn["[object Int16Array]"]=qn["[object Int32Array]"]=qn["[object Uint8Array]"]=qn["[object Uint8ClampedArray]"]=qn["[object Uint16Array]"]=qn["[object Uint32Array]"]=!0,qn["[object Arguments]"]=qn["[object Array]"]=qn["[object ArrayBuffer]"]=qn["[object Boolean]"]=qn["[object DataView]"]=qn["[object Date]"]=qn["[object Error]"]=qn["[object Function]"]=qn["[object Map]"]=qn["[object Number]"]=qn["[object Object]"]=qn["[object RegExp]"]=qn["[object Set]"]=qn["[object String]"]=qn["[object WeakMap]"]=!1;var Bn={exports:{}};!function(t,e){var n=me,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i&&n.process,o=function(){try{return r&&r.require&&r.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=o}(Bn,Bn.exports);var Wn=Bn.exports,Un=function(t){return Vn(t)&&Nn(t.length)&&!!qn[zn(t)]},Hn=function(t){return function(e){return t(e)}},Gn=Wn&&Wn.isTypedArray,Qn=Gn?Hn(Gn):Un,Jn=function(t){if(!pe(t))return de(t);var e=[];for(var n in Object(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e},Kn=_n,Yn=Dn,Xn=Mn,Zn=function(t){return null!=t&&Rn(t.length)&&!In(t)},ti=On,ei=he,ni=Qn,ii=Object.prototype.hasOwnProperty;const ri=u((function(t){if(null==t)return!0;if(Zn(t)&&(Xn(t)||"string"==typeof t||"function"==typeof t.splice||ti(t)||ni(t)||Yn(t)))return!t.length;var e=Kn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(ei(t))return!Jn(t).length;for(var n in t)if(ii.call(t,n))return!1;return!0}));var si,oi={exports:{}};
64
+ `,{getVariant:G}=l((t=>({ghost:`\n background: transparent;\n border: none;\n color: ${t.palette.gray[800]};\n --btn-padding-x: ${t.spacing[.5]};\n --btn-padding-y: ${t.spacing[.625]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n `,link:`\n --btn-padding-x: 0;\n --btn-padding-y: 0;\n color: ${t.palette.gray[800]};\n\n &:hover {\n color: ${t.palette.gray[500]};\n }\n `,primary:`\n background: ${t.palette.primary[500]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[700]};\n color: ${t.palette.white};\n }\n `,secondary:`\n background: ${t.palette.gray[800]};\n border: none;\n color: ${t.palette.white};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: ${t.palette.gray[200]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[600]};\n color: ${t.palette.white};\n }\n `,tertiary:`\n background: transparent;\n border: 1px solid ${t.palette.primary[500]};\n color: ${t.palette.primary[500]};\n --btn-spacing: ${t.spacing[.25]};\n\n &:disabled {\n background: transparent;\n border: 1px solid ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n }\n `}))),K=t.styled(T)`
65
+ ${({theme:t,$variant:e})=>`\n align-items: center;\n border-radius: var(--btn-spacing);\n cursor: pointer;\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: var(--btn-spacing);\n justify-content: center;\n line-spacing: ${t.spacing[1.25]};\n padding: var(--btn-padding-y) var(--btn-padding-x);\n position: relative;\n text-align: start;\n transition: all 0.5s ease;\n white-space: nowrap;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n ${"link"!==e?`--btn-padding-y: ${t.spacing[1]}`:""};\n }\n\n ${G(t,e??"primary")}\n `}
66
+ `,Y=t.styled(K)`
67
+ ${({theme:t,$borderRadius:e="4px",$px:n=.5,$py:r=.5})=>`\n --btn-spacing: ${e};\n --btn-padding-x: ${t.spacing[n]};\n --btn-padding-y: ${t.spacing[r]};\n\n align-items: center;\n line-height: 0;\n text-align: center;\n\n > span {\n margin: 0 !important;\n }\n `}
68
+ `,J=Math.min,X=Math.max,Q=Math.round,Z=Math.floor,tt=t=>({x:t,y:t}),et={left:"right",right:"left",bottom:"top",top:"bottom"},nt={start:"end",end:"start"};function rt(t,e,n){return X(t,J(e,n))}function it(t,e){return"function"==typeof t?t(e):t}function ot(t){return t.split("-")[0]}function st(t){return t.split("-")[1]}function at(t){return"x"===t?"y":"x"}function lt(t){return"y"===t?"height":"width"}function ct(t){return["top","bottom"].includes(ot(t))?"y":"x"}function ut(t){return at(ct(t))}function pt(t){return t.replace(/start|end/g,(t=>nt[t]))}function ht(t){return t.replace(/left|right|bottom|top/g,(t=>et[t]))}function dt(t){return"number"!=typeof t?(e=t,{top:0,right:0,bottom:0,left:0,...e}):{top:t,right:t,bottom:t,left:t};var e}function ft(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function mt(t,e,n){let{reference:r,floating:i}=t;const o=ct(e),s=ut(e),a=lt(s),l=ot(e),c="y"===o,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let d;switch(l){case"top":d={x:u,y:r.y-i.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:p};break;case"left":d={x:r.x-i.width,y:p};break;default:d={x:r.x,y:r.y}}switch(st(e)){case"start":d[s]-=h*(n&&c?-1:1);break;case"end":d[s]+=h*(n&&c?-1:1)}return d}async function gt(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=it(e,t),f=dt(d),m=a[h?"floating"===p?"reference":"floating":p],g=ft(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===p?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await(null==o.isElement?void 0:o.isElement(v))&&await(null==o.getScale?void 0:o.getScale(v))||{x:1,y:1},x=ft(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+f.top)/b.y,bottom:(x.bottom-g.bottom+f.bottom)/b.y,left:(g.left-x.left+f.left)/b.x,right:(x.right-g.right+f.right)/b.x}}function yt(){return"undefined"!=typeof window}function vt(t){return wt(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function xt(t){var e;return null==(e=(wt(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function wt(t){return!!yt()&&(t instanceof Node||t instanceof bt(t).Node)}function kt(t){return!!yt()&&(t instanceof Element||t instanceof bt(t).Element)}function St(t){return!!yt()&&(t instanceof HTMLElement||t instanceof bt(t).HTMLElement)}function Ct(t){return!(!yt()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot)}function _t(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=jt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function $t(t){return["table","td","th"].includes(vt(t))}function Et(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function Pt(t){const e=Tt(),n=kt(t)?jt(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Tt(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function At(t){return["html","body","#document"].includes(vt(t))}function jt(t){return bt(t).getComputedStyle(t)}function Ot(t){return kt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Mt(t){if("html"===vt(t))return t;const e=t.assignedSlot||t.parentNode||Ct(t)&&t.host||xt(t);return Ct(e)?e.host:e}function Dt(t){const e=Mt(t);return At(e)?t.ownerDocument?t.ownerDocument.body:t.body:St(e)&&_t(e)?e:Dt(e)}function It(t,e,n){var r;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Dt(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),s=bt(i);if(o){const t=Rt(s);return e.concat(s,s.visualViewport||[],_t(i)?i:[],t&&n?It(t):[])}return e.concat(i,It(i,[],n))}function Rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ft(t){const e=jt(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=St(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=Q(n)!==o||Q(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Lt(t){return kt(t)?t:t.contextElement}function Nt(t){const e=Lt(t);if(!St(e))return tt(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Ft(e);let s=(o?Q(n.width):n.width)/r,a=(o?Q(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const zt=tt(0);function Vt(t){const e=bt(t);return Tt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:zt}function Bt(t,e,n,r){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),o=Lt(t);let s=tt(1);e&&(r?kt(r)&&(s=Nt(r)):s=Nt(t));const a=(l=o,void 0===(c=n)&&(c=!1),!(u=r)||c&&u!==bt(l)||!c?tt(0):Vt(o));var l,c,u;let p=(i.left+a.x)/s.x,h=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(o){const t=bt(o),e=r&&kt(r)?bt(r):r;let n=t,i=Rt(n);for(;i&&r&&e!==n;){const t=Nt(i),e=i.getBoundingClientRect(),r=jt(i),o=e.left+(i.clientLeft+parseFloat(r.paddingLeft))*t.x,s=e.top+(i.clientTop+parseFloat(r.paddingTop))*t.y;p*=t.x,h*=t.y,d*=t.x,f*=t.y,p+=o,h+=s,n=bt(i),i=Rt(n)}}return ft({width:d,height:f,x:p,y:h})}function Wt(t,e){const n=Ot(t).scrollLeft;return e?e.left+n:Bt(xt(t)).left+n}function qt(t,e,n){void 0===n&&(n=!1);const r=t.getBoundingClientRect();return{x:r.left+e.scrollLeft-(n?0:Wt(t,r)),y:r.top+e.scrollTop}}function Ut(t,e,n){let r;if("viewport"===e)r=function(t,e){const n=bt(t),r=xt(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const t=Tt();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}(t,n);else if("document"===e)r=function(t){const e=xt(t),n=Ot(t),r=t.ownerDocument.body,i=X(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=X(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Wt(t);const a=-n.scrollTop;return"rtl"===jt(r).direction&&(s+=X(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(xt(t));else if(kt(e))r=function(t,e){const n=Bt(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=St(t)?Nt(t):tt(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{const n=Vt(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return ft(r)}function Ht(t,e){const n=Mt(t);return!(n===e||!kt(n)||At(n))&&("fixed"===jt(n).position||Ht(n,e))}function Gt(t,e,n){const r=St(e),i=xt(e),o="fixed"===n,s=Bt(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!o)if(("body"!==vt(e)||_t(i))&&(a=Ot(e)),r){const t=Bt(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=Wt(i));const c=!i||r||o?tt(0):qt(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function Kt(t){return"static"===jt(t).position}function Yt(t,e){if(!St(t)||"fixed"===jt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return xt(t)===n&&(n=n.ownerDocument.body),n}function Jt(t,e){const n=bt(t);if(Et(t))return n;if(!St(t)){let e=Mt(t);for(;e&&!At(e);){if(kt(e)&&!Kt(e))return e;e=Mt(e)}return n}let r=Yt(t,e);for(;r&&$t(r)&&Kt(r);)r=Yt(r,e);return r&&At(r)&&Kt(r)&&!Pt(r)?n:r||function(t){let e=Mt(t);for(;St(e)&&!At(e);){if(Pt(e))return e;if(Et(e))return null;e=Mt(e)}return null}(t)||n}const Xt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o="fixed"===i,s=xt(r),a=!!e&&Et(e.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=tt(1);const u=tt(0),p=St(r);if((p||!p&&!o)&&(("body"!==vt(r)||_t(s))&&(l=Ot(r)),St(r))){const t=Bt(r);c=Nt(r),u.x=t.x+r.clientLeft,u.y=t.y+r.clientTop}const h=!s||p||o?tt(0):qt(s,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:xt,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const o=[..."clippingAncestors"===n?Et(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let r=It(t,[],!1).filter((t=>kt(t)&&"body"!==vt(t))),i=null;const o="fixed"===jt(t).position;let s=o?Mt(t):t;for(;kt(s)&&!At(s);){const e=jt(s),n=Pt(s);n||"fixed"!==e.position||(i=null),(o?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||_t(s)&&!n&&Ht(t,s))?r=r.filter((t=>t!==s)):i=e,s=Mt(s)}return e.set(t,r),r}(e,this._c):[].concat(n),r],s=o[0],a=o.reduce(((t,n)=>{const r=Ut(e,n,i);return t.top=X(r.top,t.top),t.right=J(r.right,t.right),t.bottom=J(r.bottom,t.bottom),t.left=X(r.left,t.left),t}),Ut(e,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Jt,getElementRects:async function(t){const e=this.getOffsetParent||Jt,n=this.getDimensions,r=await n(t.floating);return{reference:Gt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Ft(t);return{width:e,height:n}},getScale:Nt,isElement:kt,isRTL:function(t){return"rtl"===jt(t).direction}};function Qt(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Lt(t),u=i||o?[...c?It(c):[],...It(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const p=c&&a?function(t,e){let n,r=null;const i=xt(t);function o(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:p,height:h}=t.getBoundingClientRect();if(a||e(),!p||!h)return;const d={rootMargin:-Z(u)+"px "+-Z(i.clientWidth-(c+p))+"px "+-Z(i.clientHeight-(u+h))+"px "+-Z(c)+"px",threshold:X(0,J(1,l))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return s();e?s(!1,e):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(m,{...d,root:i.ownerDocument})}catch(g){r=new IntersectionObserver(m,d)}r.observe(t)}(!0),o}(c,n):null;let h,d=-1,f=null;s&&(f=new ResizeObserver((t=>{let[r]=t;r&&r.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),c&&!l&&f.observe(c),f.observe(e));let m=l?Bt(t):null;return l&&function e(){const r=Bt(t);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const Zt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:r,elements:i}=t,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=ot(n),a=st(n),l="y"===ct(n),c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,p=it(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&"number"==typeof f&&(d="end"===a?-1*f:f),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},te=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=it(t,e),c={x:n,y:r},u=await gt(e,l),p=ct(ot(i)),h=at(p);let d=c[h],f=c[p];if(o){const t="y"===h?"bottom":"right";d=rt(d+u["y"===h?"top":"left"],d,d-u[t])}if(s){const t="y"===p?"bottom":"right";f=rt(f+u["y"===p?"top":"left"],f,f-u[t])}const m=a.fn({...e,[h]:d,[p]:f});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:o,[p]:s}}}}}},ee=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...g}=it(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=ot(i),v=ct(a),b=ot(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=h||(b||!m?[ht(a)]:function(t){const e=ht(t);return[pt(t),e,pt(e)]}(a)),k="none"!==f;!h&&k&&w.push(...function(t,e,n,r){const i=st(t);let o=function(t,e,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?o:s;default:return[]}}(ot(t),"start"===n,r);return i&&(o=o.map((t=>t+"-"+i)),e&&(o=o.concat(o.map(pt)))),o}(a,m,f,x));const S=[a,...w],C=await gt(e,g),_=[];let $=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&_.push(C[y]),p){const t=function(t,e,n){void 0===n&&(n=!1);const r=st(t),i=ut(t),o=lt(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ht(s)),[s,ht(s)]}(i,s,x);_.push(C[t[0]],C[t[1]])}if($=[...$,{placement:i,overflows:_}],!_.every((t=>t<=0))){var E,P;const t=((null==(E=o.flip)?void 0:E.index)||0)+1,e=S[t];if(e)return{data:{index:t,overflows:$},reset:{placement:e}};let n=null==(P=$.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:P.placement;if(!n)switch(d){case"bestFit":{var T;const t=null==(T=$.filter((t=>{if(k){const e=ct(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:T[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},ne=(t,e,n)=>{const r=new Map,i={platform:Xt,...n},o={...i.platform,_c:r};return(async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:p}=mt(c,r,l),h=r,d={},f=0;for(let m=0;m<a.length;m++){const{name:n,fn:o}=a[m],{x:g,y:y,data:v,reset:b}=await o({x:u,y:p,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:c,platform:s,elements:{reference:t,floating:e}});u=null!=g?g:u,p=null!=y?y:p,d={...d,[n]:{...d[n],...v}},b&&f<=50&&(f++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):b.rects),({x:u,y:p}=mt(c,h,l))),m=-1)}return{x:u,y:p,placement:h,strategy:i,middlewareData:d}})(t,e,{...i,platform:o})};var re="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ie(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,r,i;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;0!=r--;)if(!ie(t[r],e[r]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(!("_owner"===n&&t.$$typeof||ie(t[n],e[n])))return!1}return!0}return t!=t&&e!=e}function oe(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function se(t,e){const n=oe(t);return Math.round(e*n)/n}function ae(t){const e=s.useRef(t);return re((()=>{e.current=t})),e}const le=(t,e)=>({...Zt(t),options:[t,e]});var ce=Object.prototype,ue=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||ce)},pe=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),he=ue,de=pe,fe=Object.prototype.hasOwnProperty,me="object"==typeof u&&u&&u.Object===Object&&u,ge=me,ye="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||ye||Function("return this")(),be=ve.Symbol,xe=be,we=Object.prototype,ke=we.hasOwnProperty,Se=we.toString,Ce=xe?xe.toStringTag:void 0,_e=Object.prototype.toString,$e=function(t){var e=ke.call(t,Ce),n=t[Ce];try{t[Ce]=void 0;var r=!0}catch(o){}var i=Se.call(t);return r&&(e?t[Ce]=n:delete t[Ce]),i},Ee=be?be.toStringTag:void 0,Pe=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ee&&Ee in Object(t)?$e(t):function(t){return _e.call(t)}(t)},Te=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const Ae=p(Te);var je,Oe=Pe,Me=Te,De=function(t){if(!Me(t))return!1;var e=Oe(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Ie=ve["__core-js_shared__"],Re=(je=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+je:"",Fe=Function.prototype.toString,Le=function(t){if(null!=t){try{return Fe.call(t)}catch(e){}try{return t+""}catch(e){}}return""},Ne=De,ze=function(t){return!!Re&&Re in t},Ve=Te,Be=Le,We=/^\[object .+?Constructor\]$/,qe=Function.prototype,Ue=Object.prototype,He=qe.toString,Ge=Ue.hasOwnProperty,Ke=RegExp("^"+He.call(Ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ye=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Ve(t)||ze(t))&&(Ne(t)?Ke:We).test(Be(t))}(n)?n:void 0},Je=Ye(ve,"DataView"),Xe=Ye(ve,"Map"),Qe=Ye(ve,"Promise"),Ze=Ye(ve,"Set"),tn=Ye(ve,"WeakMap"),en=Pe,nn=Le,rn="[object Map]",on="[object Promise]",sn="[object Set]",an="[object WeakMap]",ln="[object DataView]",cn=nn(Je),un=nn(Xe),pn=nn(Qe),hn=nn(Ze),dn=nn(tn),fn=en;(Je&&fn(new Je(new ArrayBuffer(1)))!=ln||Xe&&fn(new Xe)!=rn||Qe&&fn(Qe.resolve())!=on||Ze&&fn(new Ze)!=sn||tn&&fn(new tn)!=an)&&(fn=function(t){var e=en(t),n="[object Object]"==e?t.constructor:void 0,r=n?nn(n):"";if(r)switch(r){case cn:return ln;case un:return rn;case pn:return on;case hn:return sn;case dn:return an}return e});var mn,gn,yn,vn,bn,xn,wn,kn,Sn=fn,Cn=function(t){return null!=t&&"object"==typeof t},_n=Pe,$n=Cn,En=function(t){return $n(t)&&"[object Arguments]"==_n(t)},Pn=Cn,Tn=Object.prototype,An=Tn.hasOwnProperty,jn=Tn.propertyIsEnumerable,On=En(function(){return arguments}())?En:function(t){return Pn(t)&&An.call(t,"callee")&&!jn.call(t,"callee")},Mn=Array.isArray,Dn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},In=De,Rn=Dn,Fn={exports:{}};mn=Fn,yn=ve,vn=function(){return!1},bn=(gn=Fn.exports)&&!gn.nodeType&&gn,xn=bn&&mn&&!mn.nodeType&&mn,wn=xn&&xn.exports===bn?yn.Buffer:void 0,kn=(wn?wn.isBuffer:void 0)||vn,mn.exports=kn;var Ln=Fn.exports,Nn=Pe,zn=Dn,Vn=Cn,Bn={};Bn["[object Float32Array]"]=Bn["[object Float64Array]"]=Bn["[object Int8Array]"]=Bn["[object Int16Array]"]=Bn["[object Int32Array]"]=Bn["[object Uint8Array]"]=Bn["[object Uint8ClampedArray]"]=Bn["[object Uint16Array]"]=Bn["[object Uint32Array]"]=!0,Bn["[object Arguments]"]=Bn["[object Array]"]=Bn["[object ArrayBuffer]"]=Bn["[object Boolean]"]=Bn["[object DataView]"]=Bn["[object Date]"]=Bn["[object Error]"]=Bn["[object Function]"]=Bn["[object Map]"]=Bn["[object Number]"]=Bn["[object Object]"]=Bn["[object RegExp]"]=Bn["[object Set]"]=Bn["[object String]"]=Bn["[object WeakMap]"]=!1;var Wn={exports:{}};!function(t,e){var n=me,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=s}(Wn,Wn.exports);var qn=Wn.exports,Un=function(t){return Vn(t)&&zn(t.length)&&!!Bn[Nn(t)]},Hn=function(t){return function(e){return t(e)}},Gn=qn&&qn.isTypedArray,Kn=Gn?Hn(Gn):Un,Yn=function(t){if(!he(t))return de(t);var e=[];for(var n in Object(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e},Jn=Sn,Xn=On,Qn=Mn,Zn=function(t){return null!=t&&Rn(t.length)&&!In(t)},tr=Ln,er=ue,nr=Kn,rr=Object.prototype.hasOwnProperty;const ir=p((function(t){if(null==t)return!0;if(Zn(t)&&(Qn(t)||"string"==typeof t||"function"==typeof t.splice||tr(t)||nr(t)||Xn(t)))return!t.length;var e=Jn(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(er(t))return!Yn(t).length;for(var n in t)if(rr.call(t,n))return!1;return!0}));var or,sr={exports:{}};
69
69
  /*!
70
70
  Copyright (c) 2018 Jed Watson.
71
71
  Licensed under the MIT License (MIT), see
72
72
  http://jedwatson.github.io/classnames
73
- */si=oi,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=i(t,n(r)))}return t}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var s in n)t.call(n,s)&&n[s]&&(r=i(r,s));return r}function i(t,e){return e?t?t+" "+e:t+e:t}si.exports?(e.default=e,si.exports=e):window.classNames=e}();const ai=u(oi.exports),li={core:!1,base:!1};
73
+ */or=sr,function(){var t={}.hasOwnProperty;function e(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=r(t,n(i)))}return t}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var i="";for(var o in n)t.call(n,o)&&n[o]&&(i=r(i,o));return i}function r(t,e){return e?t?t+" "+e:t+e:t}or.exports?(e.default=e,or.exports=e):window.classNames=e}();const ar=p(sr.exports),lr={core:!1,base:!1};
74
74
  /*
75
75
  * React Tooltip
76
76
  * {@link https://github.com/ReactTooltip/react-tooltip}
77
77
  * @copyright ReactTooltip Team
78
78
  * @license MIT
79
- */function ci({css:t,id:e="react-tooltip-base-styles",type:n="base",ref:i}){var r,s;if(!t||"undefined"==typeof document||li[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(r=null===process||void 0===process?void 0:process.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(s=null===process||void 0===process?void 0:process.env)||void 0===s?void 0:s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(e="react-tooltip-core-styles"),i||(i={});const{insertAt:o}=i;if(document.getElementById(e))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=e,l.type="text/css","top"===o&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t)),li[n]=!0}const hi=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:i="top",offset:r=10,strategy:s="absolute",middlewares:o=[Zt(Number(r)),ee({fallbackAxisSideDirection:"start"}),te({padding:5})],border:a})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:i};const l=o;return n?(l.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:h=0}=rt(t,e)||{};if(null==c)return{};const u=dt(h),p={x:n,y:i},d=ht(r),f=lt(d),m=await o.getDimensions(c),g="y"===d,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[d]-p[d]-s.floating[f],w=p[d]-s.reference[d],k=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let _=k?k[b]:0;_&&await(null==o.isElement?void 0:o.isElement(k))||(_=a.floating[b]||s.floating[f]);const S=x/2-w/2,$=_/2-m[f]/2-1,C=K(u[y],$),A=K(u[v],$),P=C,T=_-m[f]-A,E=_/2-m[f]/2+S,j=it(P,E,T),D=!l.arrow&&null!=ot(r)&&E!==j&&s.reference[f]/2-(E<P?C:A)-m[f]/2<0,M=D?E<P?E-P:E-T:0;return{[d]:p[d]+M,data:{[d]:j,centerOffset:E-j-M,...D&&{alignmentOffset:M}},reset:D}}}))({element:n,padding:5})),ne(t,e,{placement:i,strategy:s,middleware:l}).then((({x:t,y:e,placement:n,middlewareData:i})=>{var r,s;const o={left:`${t}px`,top:`${e}px`,border:a},{x:l,y:c}=null!==(r=i.arrow)&&void 0!==r?r:{x:0,y:0},h=null!==(s={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==s?s:"bottom",u=a&&{borderBottom:a,borderRight:a};let p=0;if(a){const t=`${a}`.match(/(\d+)px/);p=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:o,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...u,[h]:`-${4+p}px`},place:n}}))):ne(t,e,{placement:"bottom",strategy:s,middleware:l}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})))},ui=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),pi=(t,e,n)=>{let i=null;const r=function(...n){!i&&(t.apply(this,n),i=setTimeout((()=>{i=null}),e))};return r.cancel=()=>{i&&(clearTimeout(i),i=null)},r},di=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,fi=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>fi(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!di(t)||!di(e))return t===e;const n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((n=>fi(t[n],e[n])))},mi=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},gi=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(mi(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},yi="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vi=t=>{t.current&&(clearTimeout(t.current),t.current=null)},bi={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},xi=e.createContext({getTooltipData:()=>bi});function wi(t="DEFAULT_TOOLTIP_ID"){return e.useContext(xi).getTooltipData(t)}var ki={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},_i={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Si=({forwardRef:t,id:n,className:i,classNameArrow:r,variant:s="dark",anchorId:o,anchorSelect:a,place:l="top",offset:c=10,events:h=["hover"],openOnClick:u=!1,positionStrategy:p="absolute",middlewares:d,wrapper:f,delayShow:m=0,delayHide:g=0,float:y=!1,hidden:v=!1,noArrow:b=!1,clickable:x=!1,closeOnEsc:w=!1,closeOnScroll:k=!1,closeOnResize:_=!1,openEvents:S,closeEvents:$,globalCloseEvents:C,imperativeModeOnly:A,style:P,position:T,afterShow:E,afterHide:j,disableTooltip:D,content:M,contentWrapperRef:F,isOpen:I,defaultIsOpen:R=!1,setIsOpen:L,activeAnchor:O,setActiveAnchor:z,border:N,opacity:V,arrowColor:q,role:B="tooltip"})=>{var W;const U=e.useRef(null),H=e.useRef(null),G=e.useRef(null),Q=e.useRef(null),J=e.useRef(null),[K,Y]=e.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[X,Z]=e.useState(!1),[tt,et]=e.useState(!1),[nt,it]=e.useState(null),rt=e.useRef(!1),st=e.useRef(null),{anchorRefs:ot,setActiveAnchor:at}=wi(n),lt=e.useRef(!1),[ct,ht]=e.useState([]),ut=e.useRef(!1),pt=u||h.includes("click"),dt=pt||(null==S?void 0:S.click)||(null==S?void 0:S.dblclick)||(null==S?void 0:S.mousedown),ft=S?{...S}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!S&&pt&&Object.assign(ft,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const mt=$?{...$}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!$&&pt&&Object.assign(mt,{mouseleave:!1,blur:!1,mouseout:!1});const gt=C?{...C}:{escape:w||!1,scroll:k||!1,resize:_||!1,clickOutsideAnchor:dt||!1};A&&(Object.assign(ft,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(mt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(gt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),yi((()=>(ut.current=!0,()=>{ut.current=!1})),[]);const yt=t=>{ut.current&&(t&&et(!0),setTimeout((()=>{ut.current&&(null==L||L(t),void 0===I&&Z(t))}),10))};e.useEffect((()=>{if(void 0===I)return()=>null;I&&et(!0);const t=setTimeout((()=>{Z(I)}),10);return()=>{clearTimeout(t)}}),[I]),e.useEffect((()=>{if(X!==rt.current)if(vi(J),rt.current=X,X)null==E||E();else{const t=(()=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,e,n]=t;return Number(e)*("ms"===n?1:1e3)})();J.current=setTimeout((()=>{et(!1),it(null),null==j||j()}),t+25)}}),[X]);const vt=t=>{Y((e=>fi(e,t)?e:t))},bt=(t=m)=>{vi(G),tt?yt(!0):G.current=setTimeout((()=>{yt(!0)}),t)},xt=(t=g)=>{vi(Q),Q.current=setTimeout((()=>{lt.current||yt(!1)}),t)},wt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return z(null),void at({current:null});m?bt():yt(!0),z(n),at({current:n}),vi(Q)},kt=()=>{x?xt(g||100):g?xt():yt(!1),vi(G)},_t=({x:t,y:e})=>{var n;const i={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};hi({place:null!==(n=null==nt?void 0:nt.place)&&void 0!==n?n:l,offset:c,elementReference:i,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:p,middlewares:d,border:N}).then((t=>{vt(t)}))},St=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};_t(n),st.current=n},$t=t=>{var e;if(!X)return;const n=t.target;n.isConnected&&((null===(e=U.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${o}']`),...ct].some((t=>null==t?void 0:t.contains(n)))||(yt(!1),vi(G)))},Ct=pi(wt,50),At=pi(kt,50),Pt=t=>{At.cancel(),Ct(t)},Tt=()=>{Ct.cancel(),At()},Et=e.useCallback((()=>{var t,e;const n=null!==(t=null==nt?void 0:nt.position)&&void 0!==t?t:T;n?_t(n):y?st.current&&_t(st.current):(null==O?void 0:O.isConnected)&&hi({place:null!==(e=null==nt?void 0:nt.place)&&void 0!==e?e:l,offset:c,elementReference:O,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:p,middlewares:d,border:N}).then((t=>{ut.current&&vt(t)}))}),[X,O,M,P,l,null==nt?void 0:nt.place,c,p,T,null==nt?void 0:nt.position,y]);e.useEffect((()=>{var t,e;const n=new Set(ot);ct.forEach((t=>{(null==D?void 0:D(t))||n.add({current:t})}));const i=document.querySelector(`[id='${o}']`);i&&!(null==D?void 0:D(i))&&n.add({current:i});const r=()=>{yt(!1)},s=gi(O),a=gi(U.current);gt.scroll&&(window.addEventListener("scroll",r),null==s||s.addEventListener("scroll",r),null==a||a.addEventListener("scroll",r));let l=null;gt.resize?window.addEventListener("resize",r):O&&U.current&&(l=Xt(O,U.current,Et,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=t=>{"Escape"===t.key&&yt(!1)};gt.escape&&window.addEventListener("keydown",c),gt.clickOutsideAnchor&&window.addEventListener("click",$t);const h=[],u=t=>{X&&(null==t?void 0:t.target)===O||wt(t)},p=t=>{X&&(null==t?void 0:t.target)===O&&kt()},d=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],f=["click","dblclick","mousedown","mouseup"];Object.entries(ft).forEach((([t,e])=>{e&&(d.includes(t)?h.push({event:t,listener:Pt}):f.includes(t)&&h.push({event:t,listener:u}))})),Object.entries(mt).forEach((([t,e])=>{e&&(d.includes(t)?h.push({event:t,listener:Tt}):f.includes(t)&&h.push({event:t,listener:p}))})),y&&h.push({event:"pointermove",listener:St});const m=()=>{lt.current=!0},g=()=>{lt.current=!1,kt()};return x&&!dt&&(null===(t=U.current)||void 0===t||t.addEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.addEventListener("mouseleave",g)),h.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.addEventListener(t,e)}))})),()=>{var t,e;gt.scroll&&(window.removeEventListener("scroll",r),null==s||s.removeEventListener("scroll",r),null==a||a.removeEventListener("scroll",r)),gt.resize?window.removeEventListener("resize",r):null==l||l(),gt.clickOutsideAnchor&&window.removeEventListener("click",$t),gt.escape&&window.removeEventListener("keydown",c),x&&!dt&&(null===(t=U.current)||void 0===t||t.removeEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.removeEventListener("mouseleave",g)),h.forEach((({event:t,listener:e})=>{n.forEach((n=>{var i;null===(i=n.current)||void 0===i||i.removeEventListener(t,e)}))}))}}),[O,Et,tt,ot,ct,S,$,C,pt,m,g]),e.useEffect((()=>{var t,e;let i=null!==(e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a)&&void 0!==e?e:"";!i&&n&&(i=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const r=new MutationObserver((t=>{const e=[],r=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===n?e.push(t.target):t.oldValue===n&&r.push(t.target)),"childList"===t.type){if(O){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(i)try{r.push(...e.filter((t=>t.matches(i)))),r.push(...e.flatMap((t=>[...t.querySelectorAll(i)])))}catch(s){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,O))&&(et(!1),yt(!1),z(null),vi(G),vi(Q),!0)}))}if(i)try{const n=[...t.addedNodes].filter((t=>1===t.nodeType));e.push(...n.filter((t=>t.matches(i)))),e.push(...n.flatMap((t=>[...t.querySelectorAll(i)])))}catch(s){}}})),(e.length||r.length)&&ht((t=>[...t.filter((t=>!r.includes(t))),...e]))}));return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}}),[n,a,null==nt?void 0:nt.anchorSelect,O]),e.useEffect((()=>{Et()}),[Et]),e.useEffect((()=>{if(!(null==F?void 0:F.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>Et()))}));return t.observe(F.current),()=>{t.disconnect()}}),[M,null==F?void 0:F.current]),e.useEffect((()=>{var t;const e=document.querySelector(`[id='${o}']`),n=[...ct,e];O&&n.includes(O)||z(null!==(t=ct[0])&&void 0!==t?t:e)}),[o,ct,O]),e.useEffect((()=>(R&&yt(!0),()=>{vi(G),vi(Q)})),[]),e.useEffect((()=>{var t;let e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a;if(!e&&n&&(e=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),e)try{const t=Array.from(document.querySelectorAll(e));ht(t)}catch(i){ht([])}}),[n,a,null==nt?void 0:nt.anchorSelect]),e.useEffect((()=>{G.current&&(vi(G),bt(m))}),[m]);const jt=null!==(W=null==nt?void 0:nt.content)&&void 0!==W?W:M,Dt=X&&Object.keys(K.tooltipStyles).length>0;return e.useImperativeHandle(t,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(gn){return}it(null!=t?t:null),(null==t?void 0:t.delay)?bt(t.delay):yt(!0)},close:t=>{(null==t?void 0:t.delay)?xt(t.delay):yt(!1)},activeAnchor:O,place:K.place,isOpen:Boolean(tt&&!v&&jt&&Dt)}))),tt&&!v&&jt?e.createElement(f,{id:n,role:B,className:ai("react-tooltip",ki.tooltip,_i.tooltip,_i[s],i,`react-tooltip__place-${K.place}`,ki[Dt?"show":"closing"],Dt?"react-tooltip__show":"react-tooltip__closing","fixed"===p&&ki.fixed,x&&ki.clickable),onTransitionEnd:t=>{vi(J),X||"opacity"!==t.propertyName||(et(!1),it(null),null==j||j())},style:{...P,...K.tooltipStyles,opacity:void 0!==V&&Dt?V:void 0},ref:U},jt,e.createElement(f,{className:ai("react-tooltip-arrow",ki.arrow,_i.arrow,r,b&&ki.noArrow),style:{...K.tooltipArrowStyles,background:q?`linear-gradient(to right bottom, transparent 50%, ${q} 50%)`:void 0},ref:H})):null},$i=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),Ci=e.forwardRef((({id:t,anchorId:n,anchorSelect:i,content:r,html:s,render:o,className:a,classNameArrow:l,variant:c="dark",place:h="top",offset:u=10,wrapper:p="div",children:d=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:y,delayShow:v=0,delayHide:b=0,float:x=!1,hidden:w=!1,noArrow:k=!1,clickable:_=!1,closeOnEsc:S=!1,closeOnScroll:$=!1,closeOnResize:C=!1,openEvents:A,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:E=!1,style:j,position:D,isOpen:M,defaultIsOpen:F=!1,disableStyleInjection:I=!1,border:R,opacity:L,arrowColor:O,setIsOpen:z,afterShow:N,afterHide:V,disableTooltip:q,role:B="tooltip"},W)=>{const[U,H]=e.useState(r),[G,Q]=e.useState(s),[J,K]=e.useState(h),[Y,X]=e.useState(c),[Z,tt]=e.useState(u),[et,nt]=e.useState(v),[it,rt]=e.useState(b),[st,ot]=e.useState(x),[at,lt]=e.useState(w),[ct,ht]=e.useState(p),[ut,pt]=e.useState(f),[dt,ft]=e.useState(g),[mt,gt]=e.useState(null),[yt,vt]=e.useState(null),bt=e.useRef(I),{anchorRefs:xt,activeAnchor:wt}=wi(t),kt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var i;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(i=null==t?void 0:t.getAttribute(n))&&void 0!==i?i:null),e}),{}),_t=t=>{const e={place:t=>{var e;K(null!==(e=t)&&void 0!==e?e:h)},content:t=>{H(null!=t?t:r)},html:t=>{Q(null!=t?t:s)},variant:t=>{var e;X(null!==(e=t)&&void 0!==e?e:c)},offset:t=>{tt(null===t?u:Number(t))},wrapper:t=>{var e;ht(null!==(e=t)&&void 0!==e?e:p)},events:t=>{const e=null==t?void 0:t.split(" ");pt(null!=e?e:f)},"position-strategy":t=>{var e;ft(null!==(e=t)&&void 0!==e?e:g)},"delay-show":t=>{nt(null===t?v:Number(t))},"delay-hide":t=>{rt(null===t?b:Number(t))},float:t=>{ot(null===t?x:"true"===t)},hidden:t=>{lt(null===t?w:"true"===t)},"class-name":t=>{gt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var i;null===(i=e[t])||void 0===i||i.call(e,n)}))};e.useEffect((()=>{H(r)}),[r]),e.useEffect((()=>{Q(s)}),[s]),e.useEffect((()=>{K(h)}),[h]),e.useEffect((()=>{X(c)}),[c]),e.useEffect((()=>{tt(u)}),[u]),e.useEffect((()=>{nt(v)}),[v]),e.useEffect((()=>{rt(b)}),[b]),e.useEffect((()=>{ot(x)}),[x]),e.useEffect((()=>{lt(w)}),[w]),e.useEffect((()=>{ft(g)}),[g]),e.useEffect((()=>{bt.current}),[I]),e.useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===I,disableBase:I}}))}),[]),e.useEffect((()=>{var e;const r=new Set(xt);let s=i;if(!s&&t&&(s=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),s)try{document.querySelectorAll(s).forEach((t=>{r.add({current:t})}))}catch(h){}const o=document.querySelector(`[id='${n}']`);if(o&&r.add({current:o}),!r.size)return()=>null;const a=null!==(e=null!=yt?yt:o)&&void 0!==e?e:wt.current,l=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=kt(a);_t(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const t=kt(a);_t(t),l.observe(a,c)}return()=>{l.disconnect()}}),[xt,wt,yt,n,i]),e.useEffect((()=>{null==j||j.border,R&&ui("border",`${R}`),null==j||j.opacity,L&&ui("opacity",`${L}`)}),[]);let St=d;const $t=e.useRef(null);if(o){const t=o({content:(null==yt?void 0:yt.getAttribute("data-tooltip-content"))||U||null,activeAnchor:yt});St=t?e.createElement("div",{ref:$t,className:"react-tooltip-content-wrapper"},t):null}else U&&(St=U);G&&(St=e.createElement($i,{content:G}));const Ct={forwardRef:W,id:t,anchorId:n,anchorSelect:i,className:ai(a,mt),classNameArrow:l,content:St,contentWrapperRef:$t,place:J,variant:Y,offset:Z,wrapper:ct,events:ut,openOnClick:m,positionStrategy:dt,middlewares:y,delayShow:et,delayHide:it,float:st,hidden:at,noArrow:k,clickable:_,closeOnEsc:S,closeOnScroll:$,closeOnResize:C,openEvents:A,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:E,style:j,position:D,isOpen:M,defaultIsOpen:F,border:R,opacity:L,arrowColor:O,setIsOpen:z,afterShow:N,afterHide:V,disableTooltip:q,activeAnchor:yt,setActiveAnchor:t=>vt(t),role:B};return e.createElement(Si,{...Ct})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||ci({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||ci({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Ai=t.styled(P)``,Pi=t.styled.div`
79
+ */function cr({css:t,id:e="react-tooltip-base-styles",type:n="base",ref:r}){var i,o;if(!t||"undefined"==typeof document||lr[n])return;if("core"===n&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:process.env)||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==n&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:process.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(e="react-tooltip-core-styles"),r||(r={});const{insertAt:s}=r;if(document.getElementById(e))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=e,l.type="text/css","top"===s&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t)),lr[n]=!0}const ur=async({elementReference:t=null,tooltipReference:e=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:s=[Zt(Number(i)),ee({fallbackAxisSideDirection:"start"}),te({padding:5})],border:a})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};if(null===e)return{tooltipStyles:{},tooltipArrowStyles:{},place:r};const l=s;return n?(l.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=it(t,e)||{};if(null==c)return{};const p=dt(u),h={x:n,y:r},d=ut(i),f=lt(d),m=await s.getDimensions(c),g="y"===d,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=o.reference[f]+o.reference[d]-h[d]-o.floating[f],w=h[d]-o.reference[d],k=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=k?k[b]:0;S&&await(null==s.isElement?void 0:s.isElement(k))||(S=a.floating[b]||o.floating[f]);const C=x/2-w/2,_=S/2-m[f]/2-1,$=J(p[y],_),E=J(p[v],_),P=$,T=S-m[f]-E,A=S/2-m[f]/2+C,j=rt(P,A,T),O=!l.arrow&&null!=st(i)&&A!==j&&o.reference[f]/2-(A<P?$:E)-m[f]/2<0,M=O?A<P?A-P:A-T:0;return{[d]:h[d]+M,data:{[d]:j,centerOffset:A-j-M,...O&&{alignmentOffset:M}},reset:O}}}))({element:n,padding:5})),ne(t,e,{placement:r,strategy:o,middleware:l}).then((({x:t,y:e,placement:n,middlewareData:r})=>{var i,o;const s={left:`${t}px`,top:`${e}px`,border:a},{x:l,y:c}=null!==(i=r.arrow)&&void 0!==i?i:{x:0,y:0},u=null!==(o={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]])&&void 0!==o?o:"bottom",p=a&&{borderBottom:a,borderRight:a};let h=0;if(a){const t=`${a}`.match(/(\d+)px/);h=(null==t?void 0:t[1])?Number(t[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=c?`${c}px`:"",right:"",bottom:"",...p,[u]:`-${4+h}px`},place:n}}))):ne(t,e,{placement:"bottom",strategy:o,middleware:l}).then((({x:t,y:e,placement:n})=>({tooltipStyles:{left:`${t}px`,top:`${e}px`},tooltipArrowStyles:{},place:n})))},pr=(t,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,e),hr=(t,e,n)=>{let r=null;const i=function(...n){!r&&(t.apply(this,n),r=setTimeout((()=>{r=null}),e))};return i.cancel=()=>{r&&(clearTimeout(r),r=null)},i},dr=t=>null!==t&&!Array.isArray(t)&&"object"==typeof t,fr=(t,e)=>{if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e))return t.length===e.length&&t.every(((t,n)=>fr(t,e[n])));if(Array.isArray(t)!==Array.isArray(e))return!1;if(!dr(t)||!dr(e))return t===e;const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((n=>fr(t[n],e[n])))},mr=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const e=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some((t=>{const n=e.getPropertyValue(t);return"auto"===n||"scroll"===n}))},gr=t=>{if(!t)return null;let e=t.parentElement;for(;e;){if(mr(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},yr="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,vr=t=>{t.current&&(clearTimeout(t.current),t.current=null)},br={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},xr=e.createContext({getTooltipData:()=>br});function wr(t="DEFAULT_TOOLTIP_ID"){return e.useContext(xr).getTooltipData(t)}var kr={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Sr={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Cr=({forwardRef:t,id:n,className:r,classNameArrow:i,variant:o="dark",anchorId:s,anchorSelect:a,place:l="top",offset:c=10,events:u=["hover"],openOnClick:p=!1,positionStrategy:h="absolute",middlewares:d,wrapper:f,delayShow:m=0,delayHide:g=0,float:y=!1,hidden:v=!1,noArrow:b=!1,clickable:x=!1,closeOnEsc:w=!1,closeOnScroll:k=!1,closeOnResize:S=!1,openEvents:C,closeEvents:_,globalCloseEvents:$,imperativeModeOnly:E,style:P,position:T,afterShow:A,afterHide:j,disableTooltip:O,content:M,contentWrapperRef:D,isOpen:I,defaultIsOpen:R=!1,setIsOpen:F,activeAnchor:L,setActiveAnchor:N,border:z,opacity:V,arrowColor:B,role:W="tooltip"})=>{var q;const U=e.useRef(null),H=e.useRef(null),G=e.useRef(null),K=e.useRef(null),Y=e.useRef(null),[J,X]=e.useState({tooltipStyles:{},tooltipArrowStyles:{},place:l}),[Q,Z]=e.useState(!1),[tt,et]=e.useState(!1),[nt,rt]=e.useState(null),it=e.useRef(!1),ot=e.useRef(null),{anchorRefs:st,setActiveAnchor:at}=wr(n),lt=e.useRef(!1),[ct,ut]=e.useState([]),pt=e.useRef(!1),ht=p||u.includes("click"),dt=ht||(null==C?void 0:C.click)||(null==C?void 0:C.dblclick)||(null==C?void 0:C.mousedown),ft=C?{...C}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!C&&ht&&Object.assign(ft,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const mt=_?{..._}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!_&&ht&&Object.assign(mt,{mouseleave:!1,blur:!1,mouseout:!1});const gt=$?{...$}:{escape:w||!1,scroll:k||!1,resize:S||!1,clickOutsideAnchor:dt||!1};E&&(Object.assign(ft,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(mt,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(gt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),yr((()=>(pt.current=!0,()=>{pt.current=!1})),[]);const yt=t=>{pt.current&&(t&&et(!0),setTimeout((()=>{pt.current&&(null==F||F(t),void 0===I&&Z(t))}),10))};e.useEffect((()=>{if(void 0===I)return()=>null;I&&et(!0);const t=setTimeout((()=>{Z(I)}),10);return()=>{clearTimeout(t)}}),[I]),e.useEffect((()=>{if(Q!==it.current)if(vr(Y),it.current=Q,Q)null==A||A();else{const t=(()=>{const t=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!t)return 0;const[,e,n]=t;return Number(e)*("ms"===n?1:1e3)})();Y.current=setTimeout((()=>{et(!1),rt(null),null==j||j()}),t+25)}}),[Q]);const vt=t=>{X((e=>fr(e,t)?e:t))},bt=(t=m)=>{vr(G),tt?yt(!0):G.current=setTimeout((()=>{yt(!0)}),t)},xt=(t=g)=>{vr(K),K.current=setTimeout((()=>{lt.current||yt(!1)}),t)},wt=t=>{var e;if(!t)return;const n=null!==(e=t.currentTarget)&&void 0!==e?e:t.target;if(!(null==n?void 0:n.isConnected))return N(null),void at({current:null});m?bt():yt(!0),N(n),at({current:n}),vr(K)},kt=()=>{x?xt(g||100):g?xt():yt(!1),vr(G)},St=({x:t,y:e})=>{var n;const r={getBoundingClientRect:()=>({x:t,y:e,width:0,height:0,top:e,left:t,right:t,bottom:e})};ur({place:null!==(n=null==nt?void 0:nt.place)&&void 0!==n?n:l,offset:c,elementReference:r,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:h,middlewares:d,border:z}).then((t=>{vt(t)}))},Ct=t=>{if(!t)return;const e=t,n={x:e.clientX,y:e.clientY};St(n),ot.current=n},_t=t=>{var e;if(!Q)return;const n=t.target;n.isConnected&&((null===(e=U.current)||void 0===e?void 0:e.contains(n))||[document.querySelector(`[id='${s}']`),...ct].some((t=>null==t?void 0:t.contains(n)))||(yt(!1),vr(G)))},$t=hr(wt,50),Et=hr(kt,50),Pt=t=>{Et.cancel(),$t(t)},Tt=()=>{$t.cancel(),Et()},At=e.useCallback((()=>{var t,e;const n=null!==(t=null==nt?void 0:nt.position)&&void 0!==t?t:T;n?St(n):y?ot.current&&St(ot.current):(null==L?void 0:L.isConnected)&&ur({place:null!==(e=null==nt?void 0:nt.place)&&void 0!==e?e:l,offset:c,elementReference:L,tooltipReference:U.current,tooltipArrowReference:H.current,strategy:h,middlewares:d,border:z}).then((t=>{pt.current&&vt(t)}))}),[Q,L,M,P,l,null==nt?void 0:nt.place,c,h,T,null==nt?void 0:nt.position,y]);e.useEffect((()=>{var t,e;const n=new Set(st);ct.forEach((t=>{(null==O?void 0:O(t))||n.add({current:t})}));const r=document.querySelector(`[id='${s}']`);r&&!(null==O?void 0:O(r))&&n.add({current:r});const i=()=>{yt(!1)},o=gr(L),a=gr(U.current);gt.scroll&&(window.addEventListener("scroll",i),null==o||o.addEventListener("scroll",i),null==a||a.addEventListener("scroll",i));let l=null;gt.resize?window.addEventListener("resize",i):L&&U.current&&(l=Qt(L,U.current,At,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=t=>{"Escape"===t.key&&yt(!1)};gt.escape&&window.addEventListener("keydown",c),gt.clickOutsideAnchor&&window.addEventListener("click",_t);const u=[],p=t=>{Q&&(null==t?void 0:t.target)===L||wt(t)},h=t=>{Q&&(null==t?void 0:t.target)===L&&kt()},d=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],f=["click","dblclick","mousedown","mouseup"];Object.entries(ft).forEach((([t,e])=>{e&&(d.includes(t)?u.push({event:t,listener:Pt}):f.includes(t)&&u.push({event:t,listener:p}))})),Object.entries(mt).forEach((([t,e])=>{e&&(d.includes(t)?u.push({event:t,listener:Tt}):f.includes(t)&&u.push({event:t,listener:h}))})),y&&u.push({event:"pointermove",listener:Ct});const m=()=>{lt.current=!0},g=()=>{lt.current=!1,kt()};return x&&!dt&&(null===(t=U.current)||void 0===t||t.addEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.addEventListener("mouseleave",g)),u.forEach((({event:t,listener:e})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.addEventListener(t,e)}))})),()=>{var t,e;gt.scroll&&(window.removeEventListener("scroll",i),null==o||o.removeEventListener("scroll",i),null==a||a.removeEventListener("scroll",i)),gt.resize?window.removeEventListener("resize",i):null==l||l(),gt.clickOutsideAnchor&&window.removeEventListener("click",_t),gt.escape&&window.removeEventListener("keydown",c),x&&!dt&&(null===(t=U.current)||void 0===t||t.removeEventListener("mouseenter",m),null===(e=U.current)||void 0===e||e.removeEventListener("mouseleave",g)),u.forEach((({event:t,listener:e})=>{n.forEach((n=>{var r;null===(r=n.current)||void 0===r||r.removeEventListener(t,e)}))}))}}),[L,At,tt,st,ct,C,_,$,ht,m,g]),e.useEffect((()=>{var t,e;let r=null!==(e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a)&&void 0!==e?e:"";!r&&n&&(r=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const i=new MutationObserver((t=>{const e=[],i=[];t.forEach((t=>{if("attributes"===t.type&&"data-tooltip-id"===t.attributeName&&(t.target.getAttribute("data-tooltip-id")===n?e.push(t.target):t.oldValue===n&&i.push(t.target)),"childList"===t.type){if(L){const e=[...t.removedNodes].filter((t=>1===t.nodeType));if(r)try{i.push(...e.filter((t=>t.matches(r)))),i.push(...e.flatMap((t=>[...t.querySelectorAll(r)])))}catch(o){}e.some((t=>{var e;return!!(null===(e=null==t?void 0:t.contains)||void 0===e?void 0:e.call(t,L))&&(et(!1),yt(!1),N(null),vr(G),vr(K),!0)}))}if(r)try{const n=[...t.addedNodes].filter((t=>1===t.nodeType));e.push(...n.filter((t=>t.matches(r)))),e.push(...n.flatMap((t=>[...t.querySelectorAll(r)])))}catch(o){}}})),(e.length||i.length)&&ut((t=>[...t.filter((t=>!i.includes(t))),...e]))}));return i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{i.disconnect()}}),[n,a,null==nt?void 0:nt.anchorSelect,L]),e.useEffect((()=>{At()}),[At]),e.useEffect((()=>{if(!(null==D?void 0:D.current))return()=>null;const t=new ResizeObserver((()=>{setTimeout((()=>At()))}));return t.observe(D.current),()=>{t.disconnect()}}),[M,null==D?void 0:D.current]),e.useEffect((()=>{var t;const e=document.querySelector(`[id='${s}']`),n=[...ct,e];L&&n.includes(L)||N(null!==(t=ct[0])&&void 0!==t?t:e)}),[s,ct,L]),e.useEffect((()=>(R&&yt(!0),()=>{vr(G),vr(K)})),[]),e.useEffect((()=>{var t;let e=null!==(t=null==nt?void 0:nt.anchorSelect)&&void 0!==t?t:a;if(!e&&n&&(e=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),e)try{const t=Array.from(document.querySelectorAll(e));ut(t)}catch(r){ut([])}}),[n,a,null==nt?void 0:nt.anchorSelect]),e.useEffect((()=>{G.current&&(vr(G),bt(m))}),[m]);const jt=null!==(q=null==nt?void 0:nt.content)&&void 0!==q?q:M,Ot=Q&&Object.keys(J.tooltipStyles).length>0;return e.useImperativeHandle(t,(()=>({open:t=>{if(null==t?void 0:t.anchorSelect)try{document.querySelector(t.anchorSelect)}catch(gn){return}rt(null!=t?t:null),(null==t?void 0:t.delay)?bt(t.delay):yt(!0)},close:t=>{(null==t?void 0:t.delay)?xt(t.delay):yt(!1)},activeAnchor:L,place:J.place,isOpen:Boolean(tt&&!v&&jt&&Ot)}))),tt&&!v&&jt?e.createElement(f,{id:n,role:W,className:ar("react-tooltip",kr.tooltip,Sr.tooltip,Sr[o],r,`react-tooltip__place-${J.place}`,kr[Ot?"show":"closing"],Ot?"react-tooltip__show":"react-tooltip__closing","fixed"===h&&kr.fixed,x&&kr.clickable),onTransitionEnd:t=>{vr(Y),Q||"opacity"!==t.propertyName||(et(!1),rt(null),null==j||j())},style:{...P,...J.tooltipStyles,opacity:void 0!==V&&Ot?V:void 0},ref:U},jt,e.createElement(f,{className:ar("react-tooltip-arrow",kr.arrow,Sr.arrow,i,b&&kr.noArrow),style:{...J.tooltipArrowStyles,background:B?`linear-gradient(to right bottom, transparent 50%, ${B} 50%)`:void 0},ref:H})):null},_r=({content:t})=>e.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),$r=e.forwardRef((({id:t,anchorId:n,anchorSelect:r,content:i,html:o,render:s,className:a,classNameArrow:l,variant:c="dark",place:u="top",offset:p=10,wrapper:h="div",children:d=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:y,delayShow:v=0,delayHide:b=0,float:x=!1,hidden:w=!1,noArrow:k=!1,clickable:S=!1,closeOnEsc:C=!1,closeOnScroll:_=!1,closeOnResize:$=!1,openEvents:E,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:A=!1,style:j,position:O,isOpen:M,defaultIsOpen:D=!1,disableStyleInjection:I=!1,border:R,opacity:F,arrowColor:L,setIsOpen:N,afterShow:z,afterHide:V,disableTooltip:B,role:W="tooltip"},q)=>{const[U,H]=e.useState(i),[G,K]=e.useState(o),[Y,J]=e.useState(u),[X,Q]=e.useState(c),[Z,tt]=e.useState(p),[et,nt]=e.useState(v),[rt,it]=e.useState(b),[ot,st]=e.useState(x),[at,lt]=e.useState(w),[ct,ut]=e.useState(h),[pt,ht]=e.useState(f),[dt,ft]=e.useState(g),[mt,gt]=e.useState(null),[yt,vt]=e.useState(null),bt=e.useRef(I),{anchorRefs:xt,activeAnchor:wt}=wr(t),kt=t=>null==t?void 0:t.getAttributeNames().reduce(((e,n)=>{var r;return n.startsWith("data-tooltip-")&&(e[n.replace(/^data-tooltip-/,"")]=null!==(r=null==t?void 0:t.getAttribute(n))&&void 0!==r?r:null),e}),{}),St=t=>{const e={place:t=>{var e;J(null!==(e=t)&&void 0!==e?e:u)},content:t=>{H(null!=t?t:i)},html:t=>{K(null!=t?t:o)},variant:t=>{var e;Q(null!==(e=t)&&void 0!==e?e:c)},offset:t=>{tt(null===t?p:Number(t))},wrapper:t=>{var e;ut(null!==(e=t)&&void 0!==e?e:h)},events:t=>{const e=null==t?void 0:t.split(" ");ht(null!=e?e:f)},"position-strategy":t=>{var e;ft(null!==(e=t)&&void 0!==e?e:g)},"delay-show":t=>{nt(null===t?v:Number(t))},"delay-hide":t=>{it(null===t?b:Number(t))},float:t=>{st(null===t?x:"true"===t)},hidden:t=>{lt(null===t?w:"true"===t)},"class-name":t=>{gt(t)}};Object.values(e).forEach((t=>t(null))),Object.entries(t).forEach((([t,n])=>{var r;null===(r=e[t])||void 0===r||r.call(e,n)}))};e.useEffect((()=>{H(i)}),[i]),e.useEffect((()=>{K(o)}),[o]),e.useEffect((()=>{J(u)}),[u]),e.useEffect((()=>{Q(c)}),[c]),e.useEffect((()=>{tt(p)}),[p]),e.useEffect((()=>{nt(v)}),[v]),e.useEffect((()=>{it(b)}),[b]),e.useEffect((()=>{st(x)}),[x]),e.useEffect((()=>{lt(w)}),[w]),e.useEffect((()=>{ft(g)}),[g]),e.useEffect((()=>{bt.current}),[I]),e.useEffect((()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===I,disableBase:I}}))}),[]),e.useEffect((()=>{var e;const i=new Set(xt);let o=r;if(!o&&t&&(o=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach((t=>{i.add({current:t})}))}catch(u){}const s=document.querySelector(`[id='${n}']`);if(s&&i.add({current:s}),!i.size)return()=>null;const a=null!==(e=null!=yt?yt:s)&&void 0!==e?e:wt.current,l=new MutationObserver((t=>{t.forEach((t=>{var e;if(!a||"attributes"!==t.type||!(null===(e=t.attributeName)||void 0===e?void 0:e.startsWith("data-tooltip-")))return;const n=kt(a);St(n)}))})),c={attributes:!0,childList:!1,subtree:!1};if(a){const t=kt(a);St(t),l.observe(a,c)}return()=>{l.disconnect()}}),[xt,wt,yt,n,r]),e.useEffect((()=>{null==j||j.border,R&&pr("border",`${R}`),null==j||j.opacity,F&&pr("opacity",`${F}`)}),[]);let Ct=d;const _t=e.useRef(null);if(s){const t=s({content:(null==yt?void 0:yt.getAttribute("data-tooltip-content"))||U||null,activeAnchor:yt});Ct=t?e.createElement("div",{ref:_t,className:"react-tooltip-content-wrapper"},t):null}else U&&(Ct=U);G&&(Ct=e.createElement(_r,{content:G}));const $t={forwardRef:q,id:t,anchorId:n,anchorSelect:r,className:ar(a,mt),classNameArrow:l,content:Ct,contentWrapperRef:_t,place:Y,variant:X,offset:Z,wrapper:ct,events:pt,openOnClick:m,positionStrategy:dt,middlewares:y,delayShow:et,delayHide:rt,float:ot,hidden:at,noArrow:k,clickable:S,closeOnEsc:C,closeOnScroll:_,closeOnResize:$,openEvents:E,closeEvents:P,globalCloseEvents:T,imperativeModeOnly:A,style:j,position:O,isOpen:M,defaultIsOpen:D,border:R,opacity:F,arrowColor:L,setIsOpen:N,afterShow:z,afterHide:V,disableTooltip:B,activeAnchor:yt,setActiveAnchor:t=>vt(t),role:W};return e.createElement(Cr,{...$t})}));"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",(t=>{t.detail.disableCore||cr({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||cr({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})}));const Er=t.styled(P)``,Pr=t.styled.div`
80
80
  ${({theme:t,$maxWidth:e="320px"})=>`\n > :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {\n background-color: ${t.palette.gray[700]};\n border-radius: 8px;\n color: ${t.palette.white};\n font-size: ${t.typography.text.xs};\n max-width: ${e};\n padding: ${t.spacing[.75]};\n z-index: 999999;\n --rt-opacity: 1;\n }\n `}
81
- `,Ti=e.forwardRef((function({children:i,disabled:r=!1,display:s="inline-block",effect:o="solid",icon:a,iconColor:l,iconSize:c,id:h,maxWidth:u,nodeTip:p,place:d="bottom",tip:f="",title:m="",hide:g=""===f&&""===m&&void 0===p,...v},b){const x=t.useTheme(),[w,k]=e.useState(!1),_=e.useRef(null),S=e.useCallback((()=>{null!==_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{k(!0)}),100)}),[]),$=e.useCallback((()=>{null!==_.current&&clearTimeout(_.current),_.current=setTimeout((()=>{k(!1)}),100)}),[]);return r?y.jsx(e.StrictMode,{children:i}):y.jsxs(Ai,{"data-tooltip-id":h,display:s,onMouseLeave:$,onMouseMove:S,ref:b,...v,children:[a?y.jsx(V,{clickable:!0,disabled:r,icon:a,iconColor:l,iconSize:c??"xxs",iconType:w?"fa-solid":"fa-light"}):i,n.createPortal(y.jsx(Pi,{$maxWidth:u,children:y.jsxs(Ci,{delayShow:500,float:"float"===o||void 0,globalCloseEvents:{resize:!0},hidden:g||!w,id:h,middlewares:[(C={fallbackAxisSideDirection:"start"},{...ee(C),options:[C,undefined]}),le({mainAxis:10})],noArrow:"float"===o,place:d,children:[ri(m)?void 0:y.jsx(L,{color:x.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:m}),ri(f)?void 0:y.jsx(L,{color:x.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),ri(p)?void 0:p]})}),document.getElementById("root")??document.body)]});var C})),Ei=e.forwardRef((function({borderRadius:t,disabled:e,icon:n,iconColor:i,iconSize:r="xxs",iconType:s,id:o,justify:a="center",onClick:l,px:c,py:h,type:u="button",tooltip:p,tooltipPlace:d,value:f,variant:m="primary",...g},v){const b=y.jsx(J,{$borderRadius:t,$px:c,$py:h,$variant:m,"aria-label":o,borderRadius:t,disabled:e,id:o,justify:a,onClick:l,ref:v,type:u,value:f,...g,children:y.jsx(V,{clickable:!1,icon:n,iconColor:i,iconSize:r,iconType:s})}),x=(u+(m??"")+(o??n)).replace(/ /u,"_");return void 0===p?b:y.jsx(Ti,{id:`${x}-tooltip`,place:d,tip:p,children:b})})),ji=e.forwardRef((function({autoHide:t=!1,children:n,closable:i=!1,onTimeOut:r,show:s=!0,time:o=8,variant:a="error",id:l,...c},h){const[u,p]=e.useState(s),d=e.useCallback((()=>{p(!1)}),[]);return e.useEffect((()=>{const e=setTimeout((()=>{null==r||r(!0),t&&d()}),1e3*o);return()=>{clearTimeout(e)}}),[t,d,o,r]),e.useEffect((()=>{p(s)}),[s,p]),y.jsx(M,{display:u?"block":"none",ref:h,...c,children:y.jsxs(U,{$variant:a,id:l,children:[y.jsx(V,{clickable:!1,icon:B(a),iconSize:"xs",iconType:"fa-light"}),y.jsx(H,{children:n}),i?y.jsx(Ei,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]})})})),Di=e.forwardRef((function({bold:t=!1,children:n,disabled:i=!1,external:r=!1,href:s,id:o,icon:a,mode:l,name:c,onClick:h,showArrow:u=!1,type:p="button",tooltip:d,tooltipPlace:f="bottom",underline:m=!1,value:g,variant:v="primaryWeb",...b},x){const w=void 0!==d,k=`${o}-tooltip`,_=!v.endsWith("Web")&&"link"!==v,S=e.useCallback((()=>{s&&((t,e=!0)=>{const n=window.open(t,e?void 0:"_self","noopener,noreferrer,");Ee(n)&&(n.opener=null)})(s,r)}),[r,s]);return y.jsx(Ti,{disabled:!w,id:k,place:f,tip:d,children:y.jsxs(Q,{$variant:v,className:l,disabled:i,id:o,name:c,onClick:"link"===v?S:h,ref:x,type:p,value:g,...w?{"data-tooltip-id":k}:{},...b,children:[void 0!==a&&y.jsx(V,{icon:a,iconSize:"xs",iconType:"fa-light"}),y.jsx(L,{color:"inherit",fontWeight:t?"bold":"regular",lineSpacing:_?1.25:1.5,size:_?"sm":"md",sizeSm:"sm",textDecoration:m?"underline":void 0,children:n}),(u||"link"===v)&&y.jsx(V,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"})]})})})),Mi=t.styled.div`
81
+ `,Tr=e.forwardRef((function({children:r,disabled:i=!1,display:o="inline-block",effect:s="solid",icon:a,iconColor:l,iconSize:c,id:u,maxWidth:p,nodeTip:h,place:d="bottom",tip:f="",title:m="",hide:g=""===f&&""===m&&void 0===h,...v},b){const x=t.useTheme(),[w,k]=e.useState(!1),S=e.useRef(null),C=e.useCallback((()=>{null!==S.current&&clearTimeout(S.current),S.current=setTimeout((()=>{k(!0)}),100)}),[]),_=e.useCallback((()=>{null!==S.current&&clearTimeout(S.current),S.current=setTimeout((()=>{k(!1)}),100)}),[]);return i?y.jsx(e.StrictMode,{children:r}):y.jsxs(Er,{"data-tooltip-id":u,display:o,onMouseLeave:_,onMouseMove:C,ref:b,...v,children:[a?y.jsx(V,{clickable:!0,disabled:i,icon:a,iconColor:l,iconSize:c??"xxs",iconType:w?"fa-solid":"fa-light"}):r,n.createPortal(y.jsx(Pr,{$maxWidth:p,children:y.jsxs($r,{delayShow:500,float:"float"===s||void 0,globalCloseEvents:{resize:!0},hidden:g||!w,id:u,middlewares:[($={fallbackAxisSideDirection:"start"},{...ee($),options:[$,undefined]}),le({mainAxis:10})],noArrow:"float"===s,place:d,children:[ir(m)?void 0:y.jsx(F,{color:x.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:m}),ir(f)?void 0:y.jsx(F,{color:x.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),ir(h)?void 0:h]})}),document.getElementById("root")??document.body)]});var $})),Ar=e.forwardRef((function({borderRadius:t,disabled:e,icon:n,iconColor:r,iconSize:i="xxs",iconTransform:o,iconType:s,id:a,justify:l="center",onClick:c,px:u,py:p,type:h="button",tooltip:d,tooltipPlace:f,value:m,variant:g="primary",...v},b){const x=y.jsx(Y,{$borderRadius:t,$px:u,$py:p,$variant:g,"aria-label":a,borderRadius:t,disabled:e,id:a,justify:l,onClick:c,ref:b,type:h,value:m,...v,children:y.jsx(V,{clickable:!1,icon:n,iconColor:r,iconSize:i,iconTransform:o,iconType:s})}),w=(h+(g??"")+(a??n)).replace(/ /u,"_");return void 0===d?x:y.jsx(Tr,{id:`${w}-tooltip`,place:f,tip:d,children:x})})),jr=e.forwardRef((function({autoHide:t=!1,children:n,closable:r=!1,onTimeOut:i,show:o=!0,time:s=8,variant:a="error",id:l,...c},u){const[p,h]=e.useState(o),d=e.useCallback((()=>{h(!1)}),[]);return e.useEffect((()=>{const e=setTimeout((()=>{null==i||i(!0),t&&d()}),1e3*s);return()=>{clearTimeout(e)}}),[t,d,s,i]),e.useEffect((()=>{h(o)}),[o,h]),y.jsx(M,{display:p?"block":"none",ref:u,...c,children:y.jsxs(U,{$variant:a,id:l,children:[y.jsx(V,{clickable:!1,icon:W(a),iconSize:"xs",iconType:"fa-light"}),y.jsx(H,{children:n}),r?y.jsx(Ar,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]})})})),Or=e.forwardRef((function({children:t,disabled:n=!1,external:r=!1,href:i,id:o,icon:s,name:a,onClick:l,showArrow:c=!1,type:u="button",tooltip:p,tooltipPlace:h="bottom",underline:d=!1,value:f,variant:m="primary",...g},v){const b=void 0!==p,x=`${o}-tooltip`,w=e.useCallback((()=>{i&&((t,e=!0)=>{const n=window.open(t,e?void 0:"_self","noopener,noreferrer,");Ae(n)&&(n.opener=null)})(i,r)}),[r,i]);return y.jsx(Tr,{disabled:!b,id:x,place:h,tip:p,children:y.jsxs(K,{$variant:m,className:d?"underline":void 0,disabled:n,id:o,name:a,onClick:"link"===m?w:l,ref:v,type:u,value:f,...b?{"data-tooltip-id":x}:{},...g,children:[void 0!==s&&y.jsx(V,{icon:s,iconSize:"xs",iconType:"fa-light"}),t,(c||"link"===m)&&y.jsx(V,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"})]})})})),Mr=t.styled.div`
82
82
  position: relative;
83
83
  margin: auto;
84
84
  overflow: hidden;
85
- `,Fi=t.styled.div`
85
+ `,Dr=t.styled.div`
86
86
  display: flex;
87
87
  transition: transform 0.5s ease-in-out;
88
88
  transform: translateX(
89
89
  ${({$currentIndex:t})=>100*-t}%
90
90
  );
91
- `,Ii=t.styled.div`
91
+ `,Ir=t.styled.div`
92
92
  align-items: center;
93
93
  display: flex;
94
94
  justify-content: center;
95
95
  min-width: 100%;
96
- `,Ri=t.styled.button`
96
+ `,Rr=t.styled.button`
97
97
  ${({theme:t,$isActive:e})=>`\n background-color: ${e?t.palette.primary[400]:t.palette.white};\n border: none;\n border-radius: 50%;\n cursor: pointer;\n height: ${t.spacing[.75]};\n width: ${t.spacing[.75]};\n `}
98
- `,Li=t.styled.div`
98
+ `,Fr=t.styled.div`
99
99
  align-items: center;
100
100
  display: flex;
101
101
  gap: ${({theme:t})=>t.spacing[.5]};
102
102
  justify-content: center;
103
103
  margin-top: ${({theme:t})=>t.spacing[2]};
104
- `,Oi=(t,n)=>{const[i,r]=e.useState(0),[s,o]=e.useState(0);return e.useEffect((()=>{100===s&&r((t=>t===n-1?0:t+1))}),[s,n]),e.useEffect((()=>{const e=setInterval((()=>{o((t=>100===t?0:t+1))}),t);return()=>{clearInterval(e)}}),[t]),{cycle:i,progress:s,setCycle:r,setProgress:o}},zi=(t,n,i=!1)=>{e.useEffect((()=>{var e;const r=e=>{t&&!t.contains(e.target)&&n()};return i?(document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}):(null==(e=document.getElementById("root"))||e.addEventListener("click",r,!0),()=>{var t;null==(t=document.getElementById("root"))||t.removeEventListener("click",r,!0)})}),[i,t,n])};class Ni{filterOutNonSupportedKeys(t,e){const n=Object.create({});return"object"!=typeof(i=t)||i instanceof Array?Object.create({}):(Object.keys(t).forEach((i=>{e.indexOf(i)>=0&&(n[i]=t[i])})),n);var i}}const Vi=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class qi extends Ni{constructor(t){super();const e=this.filterOutNonSupportedKeys(t,Vi);Object.assign(this,{secure:!0},e)}extend(t){const e=this.filterOutNonSupportedKeys(t,Vi);return new qi(Object.assign({},this,e))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}let Bi=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}},Wi=class extends Error{constructor(t="Unsupported"){super(t)}};function Ui(t){return new Wi(t)}function Hi(){return this._qualifierModel||{error:Ui(`unsupported qualifier ${this.constructor.name}`)}}let Gi=class{constructor(){this._qualifierModel={}}toJson(){return Hi.apply(this)}},Qi=class extends Gi{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Bi?this.qualifierValue=e:(this.qualifierValue=new Bi,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Ji=class extends Qi{constructor(t,e){let n;n=e?new Bi([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Ki(){var t,e,n;const i=this._actionModel&&Object.keys(this._actionModel).length,r=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return r&&r instanceof Error?{error:r}:i?this._actionModel:{error:Ui(`unsupported action ${this.constructor.name}`)}}let Yi=class{constructor(){this._actionModel={}}toJson(){return Ki.apply(this)}},Xi=class extends Yi{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new Ji(n)):this.qualifiers.set(e,new Qi(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new Ji(t)):t instanceof Ji&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}},Zi=class extends Xi{constructor(t){var e;super(),this._actionModel={},this.addQualifier(new Qi("b",new Bi((e=t,e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}},tr=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ui(`unsupported action ${this.constructor.name}`)}}},er=class extends Bi{constructor(t){super(t),this.val=t}getValue(){return this.val}};function nr(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}nr({444:"CHROMA_444",420:"CHROMA_420"}),nr({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),nr({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});const ir=nr({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});nr({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),nr({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),nr({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});let rr=class extends Xi{constructor(t,e,n){let i;super(),this._actionModel={},i=e instanceof er?e.getValue():e,this._actionModel.actionType=ir[t],this._actionModel[n]=i,this.addQualifier(new Qi(t,e))}},sr=class extends Ji{constructor(t){super("progressive",t)}},or=class extends rr{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new Ji("lossy")),this}progressive(t){return t instanceof sr?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new Ji("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new Ji("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:i,preserveTransparency:r}=t;let s;return s=e?new this("f",e):new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),n&&s.lossy(),r&&s.preserveTransparency(),s}},ar=class t{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new tr(t)}else e=t;return this.actions.push(e),this}addTransformation(e){return e instanceof t?this.actions=this.actions.concat(e.actions):this.actions.push(new tr(e)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new or("q",t)),this}format(t){return this.addAction(new or("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new Zi(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new Xi;let n=t;return"string"==typeof t&&(n=new Ji(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const i=n.toJson();if("error"in(e=i)&&e.error)return i;t.push(i)}var e;return{actions:t}}};class lr extends ar{}class cr extends ar{}function hr(t,e,n){let i=0|e,r=String(n);return t.length>i?String(t):(i-=t.length,i>r.length&&(r+=function(t,e){let n=e,i="";for(;n>0;)i+=t,n--;return i}(r,i/r.length)),r.slice(0,i)+String(t))}const ur={};let pr=0;function dr(t){let e="";const n=6*t.split(".").length,i=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map((t=>{const e=+t;if(isNaN(e)||e<0)throw"Invalid version number provided";return hr(t,2,"0")})).join(".")}(function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}(t));let r=parseInt(i.split(".").join("")).toString(2);if(r=hr(r,n,"0"),r.length%6!=0)throw"Version must be smaller than 43.21.26)";return r.match(/.{1,6}/g).forEach((t=>{e+=ur[t]})),e}function fr(){const t="0.0.0";if("undefined"!=typeof window)return t;try{return process.versions.node||t}catch(gn){return t}}function mr(t){const e=function(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}(function(t){const e={techVersion:fr(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}(t));try{const t=function(t){const e=t.split(".");return`${e[0]}.${e[1]}`}(e.techVersion),n=dr(e.sdkSemver),i=dr(t),r=function(t){const[e,n]=t.split("."),i=parseInt(e).toString(2),r=parseInt(n).toString(2),s=i.padStart(6,"0"),o=r.padStart(6,"0");return ur[s]+ur[o]}(e.osVersion),s=e.feature,o=e.sdkCode,{product:a,osType:l}=e;return`D${a}${o}${n}${i}${l}${r}${s}`}catch(n){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((t=>{let e=pr.toString(2);e=hr(e,6,"0"),ur[e]=t,pr++}));const gr={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class yr{constructor(t,e={},n){this.setPublicID(t),this.setCloudConfig(e),this.setURLConfig(n)}setURLConfig(t){return this.urlConfig=new qi(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,e=this.suffix&&this.suffix.indexOf("/")>=0;if(t||e)throw"`suffix`` should not include . or /"}getResourceType(){const t=function(t){return t||"image"}(this.assetType),e=function(t){return t||"upload"}(this.deliveryType),n=!!this.suffix,i=`${t}/${e}`,r=gr[`${t}/${e}`],s=this.urlConfig.useRootPath,o=this.urlConfig.shorten;if(s){if("image/upload"===i)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(o&&"image/upload"===i)return"iu";if(n){if(r)return r;throw new Error(`URL Suffix only supported for ${Object.keys(gr).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,e){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(t,e){const n=e.secure,i=e.privateCdn,r=e.cname,s=e.secureDistribution;return n||r?n&&!s&&i?`https://${t}-res.cloudinary.com`:n&&!s?`https://res.cloudinary.com/${t}`:n&&s&&i?`https://${s}`:n&&s?`https://${s}/${t}`:!n&&r?`http://${r}/${t}`:"ERROR":`http://res.cloudinary.com/${t}`}(this.cloudName,this.urlConfig),i=t?t.toString():"",r=function(t,e,n){const i=!1!==n;return e?`v${e}`:t.match(/^v[0-9]+/)||function(t){return t.match(/^https?:\//)}(t)||function(t){return t.indexOf("/")<0}(t)?"":i?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if("string"==typeof t)return[n,this.getResourceType(),this.getSignature(),i,r,s.replace(/,/g,"%2C"),this.suffix].filter((t=>t)).join("/");{const t=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(i),r,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((t=>t)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),a=!1!==this.urlConfig.analytics&&!s.includes("?");let l="";if("object"==typeof this.urlConfig.queryParams)try{const t=new URLSearchParams(this.urlConfig.queryParams);a&&t.set("_a",mr(e)),l=t.toString()}catch(o){}else l=this.urlConfig.queryParams||"",a&&(l+=`${l.length>0?"&":""}_a=${mr(e)}`);return l?`${t}?${l}`:t}}}class vr extends yr{constructor(t,e,n,i){super(t,e,n),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new or("q",t)),this}format(t){return this.addAction(new or("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,null==t?void 0:t.trackedAnalytics)}}class br extends vr{constructor(t,e,n){super(t,e,n,new lr)}}class xr extends vr{constructor(t,e,n){super(t,e,n,new cr),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class wr{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new br(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new xr(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const kr=({publicId:t,format:n="webp"})=>{const i=e.useMemo((()=>new wr({cloud:{cloudName:"fluid-attacks"}})),[]);return e.useMemo((()=>i.image(t).format(n)),[i,t,n])},_r={web:{normal:v.typography.text.md,sm:v.typography.text.sm},platform:{normal:v.typography.text.sm,sm:v.typography.text.sm}},Sr=t.styled.label`
105
- ${({$alert:t,$disabled:e,$variant:n})=>{const i=e?300:600;return`\n display: flex;\n align-items: start;\n position: relative;\n cursor: ${e?"not-allowed":"pointer"};\n font-family: ${v.typography.type.primary};\n font-size: ${_r[n].normal};\n font-weight: ${t?"inherit":v.typography.weight.regular};\n line-height: ${v.spacing[1]};\n letter-spacing: 0;\n text-align: left;\n color: ${t?"inherit":v.palette.gray[i]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n svg {\n margin-right: ${v.spacing[.5]};\n top: 0;\n left: 0;\n height: ${v.spacing[.5]};\n width: ${v.spacing[.5]};\n padding: ${v.spacing[.25]};\n background-color: ${v.palette.white};\n border-radius: ${"web"===n?v.spacing[.125]:v.spacing[.25]};\n border: 1px solid ${v.palette.gray[600]};\n }\n\n svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked ~ span > svg {\n background-color: ${v.palette.primary[500]};\n border: 1px solid ${v.palette.primary[500]};\n }\n\n input:disabled ~ span > svg {\n border: 1px solid ${v.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input:not(:disabled):hover ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.gray[100]};\n }\n\n input:checked:disabled ~ span > svg {\n background-color: ${v.palette.gray[300]};\n border: 1px solid ${v.palette.gray[300]};\n }\n\n input:not(:disabled):hover:checked ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.primary[50]};\n }\n\n input:checked ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked:disabled ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n @media screen and (max-width: ${v.breakpoints.mobile}) {\n font-size: ${_r[n].sm};\n }\n `}}
106
- `,$r=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:i,onChange:r,onClick:s,onFocus:o,onKeyDown:a,value:l,variant:c="web",...h},u){return y.jsxs(Sr,{$disabled:e,$variant:c,children:[y.jsx("input",{"aria-label":i,defaultChecked:t,disabled:e,id:i,name:i,onChange:r,onClick:s,onFocus:o,onKeyDown:a,ref:u,type:"checkbox",value:l,...h}),y.jsx(V,{disabled:e,icon:"check",iconSize:"sm"}),n??l]})}));var Cr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ar={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",i=9007199254740991,r="[object Arguments]",s="[object Boolean]",o="[object Date]",a="[object Function]",l="[object GeneratorFunction]",c="[object Map]",h="[object Number]",u="[object Object]",p="[object Promise]",d="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",_="[object Int16Array]",S="[object Int32Array]",$="[object Uint8Array]",C="[object Uint8ClampedArray]",A="[object Uint16Array]",P="[object Uint32Array]",T=/\w*$/,E=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,D={};D[r]=D["[object Array]"]=D[v]=D[b]=D[s]=D[o]=D[x]=D[w]=D[k]=D[_]=D[S]=D[c]=D[h]=D[u]=D[d]=D[f]=D[m]=D[g]=D[$]=D[C]=D[A]=D[P]=!0,D["[object Error]"]=D[a]=D[y]=!1;var M="object"==typeof Cr&&Cr&&Cr.Object===Object&&Cr,F="object"==typeof self&&self&&self.Object===Object&&self,I=M||F||Function("return this")(),R=e&&!e.nodeType&&e,L=R&&t&&!t.nodeType&&t,O=L&&L.exports===R;function z(t,e){return t.set(e[0],e[1]),t}function N(t,e){return t.add(e),t}function V(t,e,n,i){for(var r=-1,s=t?t.length:0;++r<s;)n=e(n,t[r],r,t);return n}function q(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function B(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function W(t,e){return function(n){return t(e(n))}}function U(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var H,G=Array.prototype,Q=Function.prototype,J=Object.prototype,K=I["__core-js_shared__"],Y=(H=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",X=Q.toString,Z=J.hasOwnProperty,tt=J.toString,et=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=O?I.Buffer:void 0,it=I.Symbol,rt=I.Uint8Array,st=W(Object.getPrototypeOf,Object),ot=Object.create,at=J.propertyIsEnumerable,lt=G.splice,ct=Object.getOwnPropertySymbols,ht=nt?nt.isBuffer:void 0,ut=W(Object.keys,Object),pt=It(I,"DataView"),dt=It(I,"Map"),ft=It(I,"Promise"),mt=It(I,"Set"),gt=It(I,"WeakMap"),yt=It(Object,"create"),vt=Nt(pt),bt=Nt(dt),xt=Nt(ft),wt=Nt(mt),kt=Nt(gt),_t=it?it.prototype:void 0,St=_t?_t.valueOf:void 0;function $t(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Ct(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function At(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Pt(t){this.__data__=new Ct(t)}function Tt(t,e,n){var i=t[e];Z.call(t,e)&&Vt(i,n)&&(void 0!==n||e in t)||(t[e]=n)}function Et(t,e){for(var n=t.length;n--;)if(Vt(t[n][0],e))return n;return-1}function jt(t,e,n,i,p,y,E){var j;if(i&&(j=y?i(t,p,y,E):i(t)),void 0!==j)return j;if(!Ht(t))return t;var M,F,I,R=qt(t);if(R){if(F=(M=t).length,I=M.constructor(F),F&&"string"==typeof M[0]&&Z.call(M,"index")&&(I.index=M.index,I.input=M.input),j=I,!e)return function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e}(t,j)}else{var L=Lt(t),O=L==a||L==l;if(Wt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(L==u||L==r||O&&!y){if(q(t))return y?t:{};if(j=function(t){return"function"!=typeof t.constructor||zt(t)?{}:Ht(e=st(t))?ot(e):{};var e}(O?{}:t),!e)return function(t,e){return Mt(t,Rt(t),e)}(t,function(t,e){return t&&Mt(e,Gt(e),t)}(j,t))}else{if(!D[L])return y?t:{};j=function(t,e,n,i){var r,a,l,u=t.constructor;switch(e){case v:return Dt(t);case s:case o:return new u(+t);case b:return r=t,a=i?Dt(r.buffer):r.buffer,new r.constructor(a,r.byteOffset,r.byteLength);case x:case w:case k:case _:case S:case $:case C:case A:case P:return function(t,e){var n=e?Dt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,i);case c:return function(t,e,n){return V(e?n(B(t),!0):B(t),z,new t.constructor)}(t,i,n);case h:case m:return new u(t);case d:return function(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}(t);case f:return function(t,e,n){return V(e?n(U(t),!0):U(t),N,new t.constructor)}(t,i,n);case g:return l=t,St?Object(St.call(l)):{}}}(t,L,jt,e)}}E||(E=new Pt);var W=E.get(t);if(W)return W;if(E.set(t,j),!R)var H=n?function(t){return function(t,e,n){var i=e(t);return qt(t)?i:function(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}(i,n(t))}(t,Gt,Rt)}(t):Gt(t);return function(r){for(var s=-1,o=r?r.length:0;++s<o&&!1!==(a=r[s],l=s,H&&(a=t[l=a]),void Tt(j,l,jt(a,e,n,i,l,t,E))););var a,l}(H||t),j}function Dt(t){var e=new t.constructor(t.byteLength);return new rt(e).set(new rt(t)),e}function Mt(t,e,n,i){n||(n={});for(var r=-1,s=e.length;++r<s;){var o=e[r];Tt(n,o,t[o])}return n}function Ft(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function It(t,e){var n,i,r=(i=e,null==(n=t)?void 0:n[i]);return function(t){return!(!Ht(t)||(e=t,Y&&Y in e))&&(Ut(t)||q(t)?et:E).test(Nt(t));var e}(r)?r:void 0}$t.prototype.clear=function(){this.__data__=yt?yt(null):{}},$t.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},$t.prototype.get=function(t){var e=this.__data__;if(yt){var i=e[t];return i===n?void 0:i}return Z.call(e,t)?e[t]:void 0},$t.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:Z.call(e,t)},$t.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},Ct.prototype.clear=function(){this.__data__=[]},Ct.prototype.delete=function(t){var e=this.__data__,n=Et(e,t);return!(n<0||(n==e.length-1?e.pop():lt.call(e,n,1),0))},Ct.prototype.get=function(t){var e=this.__data__,n=Et(e,t);return n<0?void 0:e[n][1]},Ct.prototype.has=function(t){return Et(this.__data__,t)>-1},Ct.prototype.set=function(t,e){var n=this.__data__,i=Et(n,t);return i<0?n.push([t,e]):n[i][1]=e,this},At.prototype.clear=function(){this.__data__={hash:new $t,map:new(dt||Ct),string:new $t}},At.prototype.delete=function(t){return Ft(this,t).delete(t)},At.prototype.get=function(t){return Ft(this,t).get(t)},At.prototype.has=function(t){return Ft(this,t).has(t)},At.prototype.set=function(t,e){return Ft(this,t).set(t,e),this},Pt.prototype.clear=function(){this.__data__=new Ct},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ct){var i=n.__data__;if(!dt||i.length<199)return i.push([t,e]),this;n=this.__data__=new At(i)}return n.set(t,e),this};var Rt=ct?W(ct,Object):function(){return[]},Lt=function(t){return tt.call(t)};function Ot(t,e){return!!(e=null==e?i:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function zt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function Nt(t){if(null!=t){try{return X.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(pt&&Lt(new pt(new ArrayBuffer(1)))!=b||dt&&Lt(new dt)!=c||ft&&Lt(ft.resolve())!=p||mt&&Lt(new mt)!=f||gt&&Lt(new gt)!=y)&&(Lt=function(t){var e=tt.call(t),n=e==u?t.constructor:void 0,i=n?Nt(n):void 0;if(i)switch(i){case vt:return b;case bt:return c;case xt:return p;case wt:return f;case kt:return y}return e});var qt=Array.isArray;function Bt(t){return null!=t&&("number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=i)&&!Ut(t);var e}var Wt=ht||function(){return!1};function Ut(t){var e=Ht(t)?tt.call(t):"";return e==a||e==l}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Gt(t){return Bt(t)?function(t){var e,n,i=qt(t)||function(t){return!!t&&"object"==typeof t}(n=e=t)&&Bt(n)&&Z.call(e,"callee")&&(!at.call(e,"callee")||tt.call(e)==r)?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],s=i.length,o=!!s;for(var a in t)!Z.call(t,a)||o&&("length"==a||Ot(a,s))||i.push(a);return i}(t):function(t){if(!zt(t))return ut(t);var e=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return jt(t,!0,!0)}}(Ar,Ar.exports);var Pr=Ar.exports,Tr=function(){return Tr=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Tr.apply(this,arguments)};function Er(t,e,n,i,r){return function(t,e,n,i){return new(n||(n=Promise))((function(e,r){function s(t){try{a(i.next(t))}catch(e){r(e)}}function o(t){try{a(i.throw(t))}catch(e){r(e)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof n?i:new n((function(t){t(i)}))).then(s,o)}a((i=i.apply(t,[])).next())}))}(this,0,void 0,(function(){var s,o;return function(t,e){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(n=1,i&&(r=2&a[0]?i.return:a[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;switch(i=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,i=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){o.label=a[1];break}if(6===a[0]&&o.label<r[1]){o.label=r[1],r=a;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(a);break}r[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(l){a=[6,l],i=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(a){switch(a.label){case 0:if(void 0===n)return[2];o=0,a.label=1;case 1:return o<n.length?[4,n[o](t,e,i,r,n)]:[3,4];case 2:if("canceled"===(s=a.sent()))return[3,4];a.label=3;case 3:return o++,[3,1];case 4:return"canceled"!==s?[2,s]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var jr=function(t,e){return void 0===e&&(e={}),t?{trackedAnalytics:Tr({sdkCode:t.sdkCode,sdkSemver:t.sdkSemver,techVersion:t.techVersion},e)}:null},Dr=function(){function t(t,e,n,i){var r=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var s=Pr(e);Er(t,s,n,this.htmlPluginState,i).then((function(t){if(r.isMounted){r.htmlPluginState.pluginEventSubscription.forEach((function(t){t()}));var e=jr(i,t);r.imgElement.setAttribute("src",s.toURL(e))}}))}return t.prototype.update=function(t,e,n){var i=this,r=Pr(t);Er(this.imgElement,r,e,this.htmlPluginState).then((function(t){if(i.isMounted){var e=jr(n,t);i.imgElement.setAttribute("src",r.toURL(e))}}))},t.prototype.unmount=function(){this.isMounted=!1},t}();class Mr{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}}class Fr extends Error{constructor(t="Unsupported"){super(t)}}function Ir(t){return new Fr(t)}function Rr(){return this._qualifierModel||{error:Ir(`unsupported qualifier ${this.constructor.name}`)}}class Lr{constructor(){this._qualifierModel={}}toJson(){return Rr.apply(this)}}class Or extends Lr{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Mr?this.qualifierValue=e:(this.qualifierValue=new Mr,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class zr extends Or{constructor(t,e){let n;n=e?new Mr([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}}function Nr(){var t,e,n;const i=this._actionModel&&Object.keys(this._actionModel).length,r=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return r&&r instanceof Error?{error:r}:i?this._actionModel:{error:Ir(`unsupported action ${this.constructor.name}`)}}class Vr{constructor(){this._actionModel={}}toJson(){return Nr.apply(this)}}class qr extends Vr{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new zr(n)):this.qualifiers.set(e,new Or(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new zr(t)):t instanceof zr&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}}class Br extends qr{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Wr extends Br{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Or("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Or("h",t)),this}static fromJson(t){const e=new Wr;return t.width&&e.width(t.width),t.height&&e.height(t.height),t.x&&e.x(t.x),t.y&&e.y(t.y),e}}function Ur(){return new Br("faces")}function Hr(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}const Gr={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},Qr={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Jr={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Kr={444:"CHROMA_444",420:"CHROMA_420"},Yr=Hr(Kr);Hr({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const Xr=Hr(Gr),Zr=Hr({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),ts=Hr(Qr);Hr(Jr),Hr({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class es extends qr{constructor(t,e){super(),this._actionModel={},this._actionModel.actionType=ts[t]||t;const n=this.createEffectQualifier(t,e);this.addQualifier(n)}createEffectQualifier(t,e){let n;return n=e?new Mr([t,`${e}`]).setDelimiter(":"):new Mr(t),new Or("e",n)}static fromJson(t){const{actionType:e,level:n,strength:i}=t;return new this(Qr[e]||e,n||i)}}class ns extends es{constructor(t,e){super(t,e),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=ts[t]||t,e&&this.setLevel(e)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const e=this.createEffectQualifier(this.effectType,t);return this.addQualifier(e),this}}function is(t){return t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t}class rs extends ns{level(t){return this._actionModel.level=t,this.setLevel(t)}}class ss extends rs{color(t){return this._actionModel.color=t,this.addQualifier(new Or("co",new Mr(is(t))))}static fromJson(t){const{actionType:e,level:n,color:i}=t,r=new this(e,n);return i&&r.color(i),r}}function os(t){return new ss("colorize",t)}class as extends qr{constructor(t){super(),this._actionModel={},this.addQualifier(new Or("b",new Mr(is(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}}class ls{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ir(`unsupported action ${this.constructor.name}`)}}}class cs extends Mr{constructor(t){super(t),this.val=t}getValue(){return this.val}}class hs extends qr{constructor(t,e,n){let i;super(),this._actionModel={},i=e instanceof cs?e.getValue():e,this._actionModel.actionType=Zr[t],this._actionModel[n]=i,this.addQualifier(new Or(t,e))}}class us extends zr{constructor(t){super("progressive",t)}}class ps extends hs{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new zr("lossy")),this}progressive(t){return t instanceof us?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new zr("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new zr("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:i,preserveTransparency:r}=t;let s;return s=e?new this("f",e):new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),n&&s.lossy(),r&&s.preserveTransparency(),s}}class ds{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new ls(t)}else e=t;return this.actions.push(e),this}addTransformation(t){return t instanceof ds?this.actions=this.actions.concat(t.actions):this.actions.push(new ls(t)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new ps("q",t)),this}format(t){return this.addAction(new ps("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new as(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new qr;let n=t;return"string"==typeof t&&(n=new zr(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const i=n.toJson();if("error"in(e=i)&&e.error)return i;t.push(i)}var e;return{actions:t}}}function fs(t){const e=t.toString();return e.match(/[A-Z]/gi)||e.length>1&&"0"===e[0]||isNaN(parseFloat(e))||-1!==e.indexOf(":")||-1!==e.indexOf(".")?e:`${e}.0`}class ms extends Mr{}class gs extends qr{constructor(t,e,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Xr[t]||t,this.addQualifier(new Or("c",t)),e&&this.width(e),n&&this.height(n)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Or("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Or("w",t))}aspectRatio(t){return t instanceof ms?(this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Or("ar",t))):"number"==typeof t||"string"==typeof t?(this._actionModel.dimensions.aspectRatio=fs(t),this.addQualifier(new Or("ar",fs(t)))):t instanceof zr?(this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new zr("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new zr("region_relative"))}static fromJson(t){const{actionType:e,dimensions:n,relative:i,regionRelative:r}=t,{aspectRatio:s,width:o,height:a}=n,l=new this(Gr[e]||e,o,a);return s&&l.aspectRatio("ignore_aspect_ratio"===s?new zr("ignore_aspect_ratio"):s),i&&l.relative(),r&&l.regionRelative(),l}}class ys extends Or{constructor(t){super("g",new Mr(t))}}class vs extends ys{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class bs extends ys{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class xs extends ys{constructor(t){super(t)}}function ws(...t){const e=[...t];return new bs(e)}function ks(){return new vs}class _s extends Mr{constructor(t){super(),this.name=t}toString(){return this.name}}function Ss(t){return`${t}`.replace("g_","")}function $s(t){const e=t.toString().split("_"),n={object:e[0]};return e.length>1&&("avoid"===e[1]?n.avoid=!0:n.weight=+e[1]),n}function Cs(t){let e;const n="auto"===t?new vs:t;return e=`${t}`.startsWith("auto:")?`${t}`.split(":").filter((t=>"auto"!==t)):n.qualifierValue.values.filter((t=>"auto"!==t)),{gravityType:"auto",autoFocus:e.map($s)}}class As extends Mr{constructor(t,e){super(),this._weight=e,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,e){return new As(t,e)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Ps extends Mr{constructor(t){super(),this.val=t}toString(){return this.val}}function Ts(t){const{object:e,weight:n,avoid:i}=t,r=new As(new _s(e));return(n||0===n)&&r.weight(n),i&&r.avoid(),r}function Es(t){const e=(t.autoFocus||[]).map(Ts);return ks().autoFocus(...e)}class js extends gs{gravity(t){this._actionModel.gravity=function(t){return function(t){const e=Ss(t);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(e)}(t)?{compass:Ss(t),gravityType:"direction"}:(e=t,"ocr_text"===Ss(e)?{gravityType:"ocr"}:function(t){return t&&"auto"===`${t}`.split(":")[0]}(t)||function(t){return"auto"===`${t.qualifierValue}`.split(":")[0]}(t)?Cs(t):function(t){const e=`${t}`.split(":").includes("auto"),n=t.qualifierValue.values,i={gravityType:"object",focusOnObjects:(e?n.slice(0,n.length-1):n).map((t=>`${t}`))};if(e){const t=n[n.length-1].values.slice(1),e=ks().autoFocus(...t);i.fallbackGravity=Cs(e)}return i}("string"==typeof t?function(t){const e=t.split(":").map((t=>new _s(t)));return new bs(e)}(t):t));var e}(t);const e="string"==typeof t?new Or("g",t):t;return this.addQualifier(e)}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.gravity&&e.gravity(function(t){return"direction"===t.gravityType?new xs(new Ps(t.compass)):(e=t,"ocr"===e.gravityType?ws(new _s("ocr_text")):function(t){return"auto"===t.gravityType}(t)?Es(t):function(t){const e=ws(...(t.focusOnObjects||[]).map((t=>new _s(t))));if(t.fallbackGravity){const n=Es(t.fallbackGravity);e.fallbackGravity(n)}return e}(t));var e}(t.gravity)),e}}class Ds extends Or{constructor(t){super("b"),t&&this.addValue(t)}}var Ms=class extends Ds{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class Fs extends Ds{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map((t=>is(t))),this}}class Is extends Fs{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Rs extends Fs{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class Ls extends Rs{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Os extends Rs{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class zs extends Fs{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Ns extends Ds{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function Vs(t){return`${t}`.replace("b_","")}function qs(t){const e=t._contrast,n=t._palette,i={backgroundType:""};return e&&(i.contrast=!0),n&&(i.palette=n),i}function Bs(t){const e=t._gradientColors,n=`${t._gradientDirection}`,i=qs(t);return e&&(i.gradientColors=e),n&&(i.gradientDirection=n),i}function Ws(){return new cs("auto")}function Us(){return new Is}function Hs(){return new Ds("auto")}function Gs(){return new Ls}function Qs(){return new Os}function Js(){return new zs}function Ks(t){return new Ds(is(t))}function Ys(){return new Ns}const Xs={auto:Hs,border:Us,borderGradient:Gs,predominantGradient:Qs,predominant:Js,color:Ks,blurred:function(){return new Ms},generativeFill:Ys};function Zs(t,e){const{gradientColors:n,gradientDirection:i,contrast:r,palette:s}=e;return r&&t.contrast(),s&&t.palette(...s),n&&t.gradientColors(+n),i&&t.gradientDirection(i),t}function to(t,e){const{contrast:n,palette:i}=e;return n&&t.contrast(),i&&t.palette(...i),t}class eo extends js{x(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Or("z",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),t.zoom&&e.zoom(t.zoom),e}}class no extends js{x(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),e}}class io extends hs{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Kr[t];const e=new Mr([this._actionModel.level,t]);return e.setDelimiter(":"),this.addQualifier(new Or("q",e))}quantization(t){this._actionModel.quantization=t;const e=new Mr([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Or("q",e))}static fromJson(t){const{level:e,chromaSubSampling:n,quantization:i}=t,r=new this(Jr[e]||e);if(n){const t=Yr[n.toUpperCase()];t&&r.chromaSubSampling(+t)}return i&&r.quantization(i),r}}function ro(t){return new ps("f",t)}function so(t){return new io(t)}os(70).color("black"),os(40).color("white"),new es("grayscale"),new class extends qr{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Or("e",new Mr("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Or("e",new Mr(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Or("e",new Mr(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:e,type:n,stripesStrength:i}=t,r=new this;return"xray"===n&&r.xray(),"stripes"===n&&i&&r.stripesStrength(i),r}};var oo,ao={vectorize:(new ds).effect(new class extends qr{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Mr(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Mr(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Mr(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Mr(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Mr(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Or("e",t))}static fromJson(t){const{actionType:e,paths:n,cornersLevel:i,despeckleLevel:r,detailLevel:s,numOfColors:o}=t,a=new this;return n&&a.paths(n),i&&a.cornersLevel(i),r&&a.despeckleLevel(r),s&&a.detailsLevel(s),o&&a.numOfColors(o),a}}).delivery(so("auto")).delivery(ro(new cs("svg"))),pixelate:(new ds).effect(new class extends qr{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Or("e",`pixelate_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Or("e",`pixelate_region${t}`)),this.addQualifier(new Or("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Or("e",`pixelate_faces${t}`))):this.addQualifier(new Or("e",`pixelate${t}`))}static fromJson(t){const{region:e,squareSize:n}=t,i=new this(n);return n&&i.squareSize(n),e&&"faces"===e.regionType&&i.region(Ur()),e&&"custom"===e.regionType&&i.region(new Wr),i}}(undefined)).delivery(so("auto")).delivery(ro(Ws())),blur:(new ds).effect(new class extends qr{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Or("e",`blur_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Or("e",`blur_region${t}`)),this.addQualifier(new Or("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Or("e",`blur_faces${t}`))):this.addQualifier(new Or("e",`blur${t}`))}static fromJson(t){const{strength:e,region:n}=t,i=new this(e);return e&&i.strength(e),n&&"faces"===n.regionType&&i.region(Ur()),n&&"ocr_text"===n.regionType&&i.region(new Br("ocr_text")),n&&"custom"===n.regionType&&i.region(Wr.fromJson(n)),i}}(2e3)).delivery(so("auto")).delivery(ro(Ws())),"predominant-color":(new ds).resize(new class extends js{background(t){return this._actionModel.background=function(t){return"auto"===Vs(t)?{backgroundType:"auto"}:t instanceof Ms?function(t){const{intensityLevel:e,brightnessLevel:n}=t,i={backgroundType:"blurred"};return(e||0===e)&&(i.intensity=e),(n||0===n)&&(i.brightness=n),i}(t):t instanceof Is?(e=t,Object.assign(Object.assign({},qs(e)),{backgroundType:"border"})):t instanceof Ls?function(t){return Object.assign(Object.assign({},Bs(t)),{backgroundType:"borderGradient"})}(t):t instanceof zs?function(t){return Object.assign(Object.assign({},qs(t)),{backgroundType:"predominant"})}(t):t instanceof Os?function(t){return Object.assign(Object.assign({},Bs(t)),{backgroundType:"predominantGradient"})}(t):t instanceof Ns?function(t){return Object.assign({backgroundType:t.getBackgroundType()},t.getPrompt()?{prompt:t.getPrompt()}:{})}(t):function(t){return{backgroundType:"color",color:Vs(t)}}(t);var e}(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Or("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Or("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.background&&e.background(function(t){const{backgroundType:e}=t;switch(e){case"auto":return Hs();case"blurred":return function(t){const{brightness:e,intensity:n}=t,i=Xs.blurred();return i.brightness(null!=e?e:0),i.intensity(null!=n?n:100),i}(t);case"border":return to(Us(),t);case"borderGradient":return Zs(Gs(),t);case"predominant":return to(Js(),t);case"predominantGradient":return Zs(Qs(),t);case"generativeFill":return function(t,e){const{prompt:n}=e;return n&&t.prompt(n),t}(Ys(),t);default:return Ks(t.color)}}(t.background)),t.x&&e.offsetX(t.x),t.y&&e.offsetY(t.y),t.zoom&&e.zoom(t.zoom),e}}("pad","iw_div_2",undefined).aspectRatio(1).background(Xs.auto())).resize(new eo("crop",1,1).gravity((oo=new Ps("north_east"),new xs(oo)))).resize(new no("fill",void 0,void 0).height("ih").width("iw")).delivery(so("auto")).delivery(ro(Ws()))},lo="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",co={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},ho="?_a=",uo=function(){function t(t,e,n,i,r,s,o){var a=this;this.mimeType="video",this.mimeSubTypes=co,this.videoElement=t,this.originalVideo=e,this.videoOptions=o,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=Pr(e);Er(t,e,i,this.htmlPluginState).then((function(){a.htmlPluginState.pluginEventSubscription.forEach((function(t){t()})),a.setVideoAttributes(r,s),a.handleSourceToVideo(l,n)}))}return t.prototype.handleSourceToVideo=function(t,e){var n=this;e?this.generateUserSources(t,e):["webm","mp4","ogv"].forEach((function(e){n.appendSourceTag(Pr(t),e)}))},t.prototype.generateUserSources=function(t,e){var n=this;e.map((function(e){var i=e.type,r=e.codecs,s=e.transcode;return n.appendSourceTag(Pr(t).transcode(s),i,n.buildMimeType(i,r))}))},t.prototype.appendSourceTag=function(t,e,n){var i,r=document.createElement("source"),s=null===(i=this.videoOptions)||void 0===i?void 0:i.useFetchFormat;s&&t.format(e);var o=t.toURL().split(ho),a=o[1]?"".concat(ho).concat(o[1]):"",l=s?"":".".concat(e);r.src="".concat(o[0]).concat(l).concat(a),r.type=n||"video/".concat(co[e]||e),this.videoElement.appendChild(r)},t.prototype.buildMimeType=function(t,e){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return e&&(n+="; codecs="+(Array.isArray(e)?e.join(", "):e)),n},t.prototype.setVideoAttributes=function(t,e){var n;if(void 0===t&&(t={}),"auto"===e){var i=Pr(this.originalVideo);t.poster=i.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else e&&(t.poster=null===(n=e.toURL)||void 0===n?void 0:n.call(e));for(var r=0,s=Object.entries(t);r<s.length;r++){var o=s[r],a=o[0],l=o[1];l&&this.videoElement.setAttribute(a,"poster"===a?l:"")}},t.prototype.update=function(t,e,n,i,r){var s=this;if(t!==this.originalVideo){for(var o=this.videoElement.getElementsByTagName("SOURCE");o[0];)o[0].parentNode.removeChild(o[0]);Er(this.videoElement,t,n,this.htmlPluginState).then((function(){s.setVideoAttributes(i,r),s.handleSourceToVideo(t,e),s.videoElement.load()}))}},t}(),po="object"==typeof Cr&&Cr&&Cr.Object===Object&&Cr,fo="object"==typeof self&&self&&self.Object===Object&&self;function mo(){return"undefined"!=typeof window}function go(t){var e={},n=e.rootMargin,i=void 0===n?"0px":n,r=e.threshold,s=void 0===r?.1:r;return yo.bind(null,i,s)}function yo(t,e,n,i,r,s){return void 0===t&&(t="0px"),void 0===e&&(e=.1),!!mo()&&new Promise((function(i){var s=function(t,e,n,i){try{if(!window||!("IntersectionObserver"in window))return e(),function(){};var r=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(r.unobserve(t.target),e())}))}),{rootMargin:n,threshold:i});return r.observe(t),function(){t&&r.observe(t)}}catch(s){e()}}(n,(function(){return i({lazyload:!0})}),t,e);r.cleanupCallbacks.push((function(){s(),i("canceled")}))}))}function vo(t){var e={}.mode,n=void 0===e?"vectorize":e;return bo.bind(null,n)}function bo(t,e,n,i,r,s){ao[t]||(t="vectorize");var o=ao[t].actions,a=Pr(n);if(o.forEach((function(t){a.addAction(t)})),!mo())return n.transformation=a.transformation,!0;if(e instanceof HTMLImageElement){a.transformation.actions.forEach((function(t,e){t instanceof qr&&"responsive"===t.getActionTag()&&delete a.transformation.actions[e]}));var l=jr(r,{placeholder:!0});return e.src=a.toURL(l),e.onerror=function(){e.src=lo},new Promise((function(t){e.onload=function(){t()}})).then((function(){return new Promise((function(t){i.cleanupCallbacks.push((function(){e.src=lo,t("canceled")}));var r=new Image;r.src=n.toURL(l),r.onload=function(){t({placeholder:!0})},r.onerror=function(){t({placeholder:!0})}}))}))}}function xo(t){t.cleanupCallbacks.forEach((function(t){t()}))}po||fo||Function("return this")();var wo=function(t,e){return wo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},wo(t,e)};function ko(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}wo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _o=function(){return _o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},_o.apply(this,arguments)};function So(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}"function"==typeof SuppressedError&&SuppressedError;var $o={exports:{}},Co={},Ao=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,Eo=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(r){return!1}}()?Object.assign:function(t,e){for(var n,i,r=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var o in n=Object(arguments[s]))Po.call(n,o)&&(r[o]=n[o]);if(Ao){i=Ao(n);for(var a=0;a<i.length;a++)To.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},jo=Eo,Do="function"==typeof Symbol&&Symbol.for,Mo=Do?Symbol.for("react.element"):60103,Fo=Do?Symbol.for("react.portal"):60106,Io=Do?Symbol.for("react.fragment"):60107,Ro=Do?Symbol.for("react.strict_mode"):60108,Lo=Do?Symbol.for("react.profiler"):60114,Oo=Do?Symbol.for("react.provider"):60109,zo=Do?Symbol.for("react.context"):60110,No=Do?Symbol.for("react.forward_ref"):60112,Vo=Do?Symbol.for("react.suspense"):60113,qo=Do?Symbol.for("react.memo"):60115,Bo=Do?Symbol.for("react.lazy"):60116,Wo="function"==typeof Symbol&&Symbol.iterator;
104
+ `,Lr=(t,n)=>{const[r,i]=e.useState(0),[o,s]=e.useState(0);return e.useEffect((()=>{100===o&&i((t=>t===n-1?0:t+1))}),[o,n]),e.useEffect((()=>{const e=setInterval((()=>{s((t=>100===t?0:t+1))}),t);return()=>{clearInterval(e)}}),[t]),{cycle:r,progress:o,setCycle:i,setProgress:s}},Nr=(t,n,r=!1)=>{e.useEffect((()=>{var e;const i=e=>{t&&!t.contains(e.target)&&n()};return r?(document.addEventListener("click",i,!0),()=>{document.removeEventListener("click",i,!0)}):(null==(e=document.getElementById("root"))||e.addEventListener("click",i,!0),()=>{var t;null==(t=document.getElementById("root"))||t.removeEventListener("click",i,!0)})}),[r,t,n])};class zr{filterOutNonSupportedKeys(t,e){const n=Object.create({});return"object"!=typeof(r=t)||r instanceof Array?Object.create({}):(Object.keys(t).forEach((r=>{e.indexOf(r)>=0&&(n[r]=t[r])})),n);var r}}const Vr=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class Br extends zr{constructor(t){super();const e=this.filterOutNonSupportedKeys(t,Vr);Object.assign(this,{secure:!0},e)}extend(t){const e=this.filterOutNonSupportedKeys(t,Vr);return new Br(Object.assign({},this,e))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}let Wr=class{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}},qr=class extends Error{constructor(t="Unsupported"){super(t)}};function Ur(t){return new qr(t)}function Hr(){return this._qualifierModel||{error:Ur(`unsupported qualifier ${this.constructor.name}`)}}let Gr=class{constructor(){this._qualifierModel={}}toJson(){return Hr.apply(this)}},Kr=class extends Gr{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Wr?this.qualifierValue=e:(this.qualifierValue=new Wr,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}},Yr=class extends Kr{constructor(t,e){let n;n=e?new Wr([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}};function Jr(){var t,e,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Ur(`unsupported action ${this.constructor.name}`)}}let Xr=class{constructor(){this._actionModel={}}toJson(){return Jr.apply(this)}},Qr=class extends Xr{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new Yr(n)):this.qualifiers.set(e,new Kr(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new Yr(t)):t instanceof Yr&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}},Zr=class extends Qr{constructor(t){var e;super(),this._actionModel={},this.addQualifier(new Kr("b",new Wr((e=t,e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}},ti=class{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ur(`unsupported action ${this.constructor.name}`)}}},ei=class extends Wr{constructor(t){super(t),this.val=t}getValue(){return this.val}};function ni(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}ni({444:"CHROMA_444",420:"CHROMA_420"}),ni({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),ni({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});const ri=ni({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});ni({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),ni({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),ni({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});let ii=class extends Qr{constructor(t,e,n){let r;super(),this._actionModel={},r=e instanceof ei?e.getValue():e,this._actionModel.actionType=ri[t],this._actionModel[n]=r,this.addQualifier(new Kr(t,e))}},oi=class extends Yr{constructor(t){super("progressive",t)}},si=class extends ii{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new Yr("lossy")),this}progressive(t){return t instanceof oi?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new Yr("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new Yr("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:r,preserveTransparency:i}=t;let o;return o=e?new this("f",e):new this("f"),r&&(r.mode?o.progressive(r.mode):o.progressive()),n&&o.lossy(),i&&o.preserveTransparency(),o}},ai=class t{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new ti(t)}else e=t;return this.actions.push(e),this}addTransformation(e){return e instanceof t?this.actions=this.actions.concat(e.actions):this.actions.push(new ti(e)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new si("q",t)),this}format(t){return this.addAction(new si("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new Zr(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new Qr;let n=t;return"string"==typeof t&&(n=new Yr(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if("error"in(e=r)&&e.error)return r;t.push(r)}var e;return{actions:t}}};class li extends ai{}class ci extends ai{}function ui(t,e,n){let r=0|e,i=String(n);return t.length>r?String(t):(r-=t.length,r>i.length&&(i+=function(t,e){let n=e,r="";for(;n>0;)r+=t,n--;return r}(i,r/i.length)),i.slice(0,r)+String(t))}const pi={};let hi=0;function di(t){let e="";const n=6*t.split(".").length,r=function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").map((t=>{const e=+t;if(isNaN(e)||e<0)throw"Invalid version number provided";return ui(t,2,"0")})).join(".")}(function(t){if(t.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return t.split(".").reverse().join(".")}(t));let i=parseInt(r.split(".").join("")).toString(2);if(i=ui(i,n,"0"),i.length%6!=0)throw"Version must be smaller than 43.21.26)";return i.match(/.{1,6}/g).forEach((t=>{e+=pi[t]})),e}function fi(){const t="0.0.0";if("undefined"!=typeof window)return t;try{return process.versions.node||t}catch(gn){return t}}function mi(t){const e=function(t){const e={sdkSemver:t.sdkSemver,techVersion:t.techVersion,sdkCode:t.sdkCode,product:t.product,feature:"0",osType:t.osType,osVersion:t.osVersion};return t.accessibility&&(e.feature="D"),t.lazyload&&(e.feature="C"),t.responsive&&(e.feature="A"),t.placeholder&&(e.feature="B"),e}(function(t){const e={techVersion:fi(),sdkCode:"T",sdkSemver:"1.21.0".split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return t?Object.assign(Object.assign({},e),t):e}(t));try{const t=function(t){const e=t.split(".");return`${e[0]}.${e[1]}`}(e.techVersion),n=di(e.sdkSemver),r=di(t),i=function(t){const[e,n]=t.split("."),r=parseInt(e).toString(2),i=parseInt(n).toString(2),o=r.padStart(6,"0"),s=i.padStart(6,"0");return pi[o]+pi[s]}(e.osVersion),o=e.feature,s=e.sdkCode,{product:a,osType:l}=e;return`D${a}${s}${n}${r}${l}${i}${o}`}catch(n){return"E"}}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach((t=>{let e=hi.toString(2);e=ui(e,6,"0"),pi[e]=t,hi++}));const gi={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class yi{constructor(t,e={},n){this.setPublicID(t),this.setCloudConfig(e),this.setURLConfig(n)}setURLConfig(t){return this.urlConfig=new Br(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,e=this.suffix&&this.suffix.indexOf("/")>=0;if(t||e)throw"`suffix`` should not include . or /"}getResourceType(){const t=function(t){return t||"image"}(this.assetType),e=function(t){return t||"upload"}(this.deliveryType),n=!!this.suffix,r=`${t}/${e}`,i=gi[`${t}/${e}`],o=this.urlConfig.useRootPath,s=this.urlConfig.shorten;if(o){if("image/upload"===r)return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${r} instead`)}if(s&&"image/upload"===r)return"iu";if(n){if(i)return i;throw new Error(`URL Suffix only supported for ${Object.keys(gi).join(", ")}, Provided: ${r} instead`)}return r}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,e){if(!this.publicID)return"";this.validateAssetForURLCreation();const n=function(t,e){const n=e.secure,r=e.privateCdn,i=e.cname,o=e.secureDistribution;return n||i?n&&!o&&r?`https://${t}-res.cloudinary.com`:n&&!o?`https://res.cloudinary.com/${t}`:n&&o&&r?`https://${o}`:n&&o?`https://${o}/${t}`:!n&&i?`http://${i}/${t}`:"ERROR":`http://res.cloudinary.com/${t}`}(this.cloudName,this.urlConfig),r=t?t.toString():"",i=function(t,e,n){const r=!1!==n;return e?`v${e}`:t.match(/^v[0-9]+/)||function(t){return t.match(/^https?:\//)}(t)||function(t){return t.indexOf("/")<0}(t)?"":r?"v1":""}(this.publicID,this.version,this.urlConfig.forceVersion),o=this.publicID;if("string"==typeof t)return[n,this.getResourceType(),this.getSignature(),r,i,o.replace(/,/g,"%2C"),this.suffix].filter((t=>t)).join("/");{const t=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(r),i,encodeURI(o).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter((t=>t)).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),a=!1!==this.urlConfig.analytics&&!o.includes("?");let l="";if("object"==typeof this.urlConfig.queryParams)try{const t=new URLSearchParams(this.urlConfig.queryParams);a&&t.set("_a",mi(e)),l=t.toString()}catch(s){}else l=this.urlConfig.queryParams||"",a&&(l+=`${l.length>0?"&":""}_a=${mi(e)}`);return l?`${t}?${l}`:t}}}class vi extends yi{constructor(t,e,n,r){super(t,e,n),this.transformation=r}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new si("q",t)),this}format(t){return this.addAction(new si("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,null==t?void 0:t.trackedAnalytics)}}class bi extends vi{constructor(t,e,n){super(t,e,n,new li)}}class xi extends vi{constructor(t,e,n){super(t,e,n,new ci),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class wi{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new bi(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new xi(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}const ki=({publicId:t,format:n="webp"})=>{const r=e.useMemo((()=>new wi({cloud:{cloudName:"fluid-attacks"}})),[]);return e.useMemo((()=>r.image(t).format(n)),[r,t,n])},Si=(t,n)=>e.useMemo((()=>r.debounce(t,n)),[t,n]),Ci={web:{normal:v.typography.text.md,sm:v.typography.text.sm},platform:{normal:v.typography.text.sm,sm:v.typography.text.sm}},_i=t.styled.label`
105
+ ${({$alert:t,$disabled:e,$variant:n})=>{const r=e?300:600;return`\n display: flex;\n align-items: start;\n position: relative;\n cursor: ${e?"not-allowed":"pointer"};\n font-family: ${v.typography.type.primary};\n font-size: ${Ci[n].normal};\n font-weight: ${t?"inherit":v.typography.weight.regular};\n line-height: ${v.spacing[1]};\n letter-spacing: 0;\n text-align: left;\n color: ${t?"inherit":v.palette.gray[r]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n }\n\n svg {\n margin-right: ${v.spacing[.5]};\n top: 0;\n left: 0;\n height: ${v.spacing[.5]};\n width: ${v.spacing[.5]};\n padding: ${v.spacing[.25]};\n background-color: ${v.palette.white};\n border-radius: ${"web"===n?v.spacing[.125]:v.spacing[.25]};\n border: 1px solid ${v.palette.gray[600]};\n }\n\n svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked ~ span > svg {\n background-color: ${v.palette.primary[500]};\n border: 1px solid ${v.palette.primary[500]};\n }\n\n input:disabled ~ span > svg {\n border: 1px solid ${v.palette.gray[300]};\n cursor: not-allowed;\n }\n\n input:not(:disabled):hover ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.gray[100]};\n }\n\n input:checked:disabled ~ span > svg {\n background-color: ${v.palette.gray[300]};\n border: 1px solid ${v.palette.gray[300]};\n }\n\n input:not(:disabled):hover:checked ~ span > svg {\n box-shadow: 0 0 0 4px ${v.palette.primary[50]};\n }\n\n input:checked ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n input:checked:disabled ~ span > svg > path {\n fill: ${v.palette.white};\n }\n\n @media screen and (max-width: ${v.breakpoints.mobile}) {\n font-size: ${Ci[n].sm};\n }\n `}}
106
+ `,$i=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:r,onChange:i,onClick:o,onFocus:s,onKeyDown:a,value:l,variant:c="web",...u},p){return y.jsxs(_i,{$disabled:e,$variant:c,children:[y.jsx("input",{"aria-label":r,defaultChecked:t,disabled:e,id:r,name:r,onChange:i,onClick:o,onFocus:s,onKeyDown:a,ref:p,type:"checkbox",value:l,...u}),y.jsx(V,{disabled:e,icon:"check",iconSize:"sm"}),n??l]})}));var Ei="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Pi={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Boolean]",s="[object Date]",a="[object Function]",l="[object GeneratorFunction]",c="[object Map]",u="[object Number]",p="[object Object]",h="[object Promise]",d="[object RegExp]",f="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",v="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",_="[object Uint8Array]",$="[object Uint8ClampedArray]",E="[object Uint16Array]",P="[object Uint32Array]",T=/\w*$/,A=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,O={};O[i]=O["[object Array]"]=O[v]=O[b]=O[o]=O[s]=O[x]=O[w]=O[k]=O[S]=O[C]=O[c]=O[u]=O[p]=O[d]=O[f]=O[m]=O[g]=O[_]=O[$]=O[E]=O[P]=!0,O["[object Error]"]=O[a]=O[y]=!1;var M="object"==typeof Ei&&Ei&&Ei.Object===Object&&Ei,D="object"==typeof self&&self&&self.Object===Object&&self,I=M||D||Function("return this")(),R=e&&!e.nodeType&&e,F=R&&t&&!t.nodeType&&t,L=F&&F.exports===R;function N(t,e){return t.set(e[0],e[1]),t}function z(t,e){return t.add(e),t}function V(t,e,n,r){for(var i=-1,o=t?t.length:0;++i<o;)n=e(n,t[i],i,t);return n}function B(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(n){}return e}function W(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function q(t,e){return function(n){return t(e(n))}}function U(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var H,G=Array.prototype,K=Function.prototype,Y=Object.prototype,J=I["__core-js_shared__"],X=(H=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",Q=K.toString,Z=Y.hasOwnProperty,tt=Y.toString,et=RegExp("^"+Q.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nt=L?I.Buffer:void 0,rt=I.Symbol,it=I.Uint8Array,ot=q(Object.getPrototypeOf,Object),st=Object.create,at=Y.propertyIsEnumerable,lt=G.splice,ct=Object.getOwnPropertySymbols,ut=nt?nt.isBuffer:void 0,pt=q(Object.keys,Object),ht=It(I,"DataView"),dt=It(I,"Map"),ft=It(I,"Promise"),mt=It(I,"Set"),gt=It(I,"WeakMap"),yt=It(Object,"create"),vt=zt(ht),bt=zt(dt),xt=zt(ft),wt=zt(mt),kt=zt(gt),St=rt?rt.prototype:void 0,Ct=St?St.valueOf:void 0;function _t(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function $t(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Et(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Pt(t){this.__data__=new $t(t)}function Tt(t,e,n){var r=t[e];Z.call(t,e)&&Vt(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function At(t,e){for(var n=t.length;n--;)if(Vt(t[n][0],e))return n;return-1}function jt(t,e,n,r,h,y,A){var j;if(r&&(j=y?r(t,h,y,A):r(t)),void 0!==j)return j;if(!Ht(t))return t;var M,D,I,R=Bt(t);if(R){if(D=(M=t).length,I=M.constructor(D),D&&"string"==typeof M[0]&&Z.call(M,"index")&&(I.index=M.index,I.input=M.input),j=I,!e)return function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(t,j)}else{var F=Ft(t),L=F==a||F==l;if(qt(t))return function(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}(t,e);if(F==p||F==i||L&&!y){if(B(t))return y?t:{};if(j=function(t){return"function"!=typeof t.constructor||Nt(t)?{}:Ht(e=ot(t))?st(e):{};var e}(L?{}:t),!e)return function(t,e){return Mt(t,Rt(t),e)}(t,function(t,e){return t&&Mt(e,Gt(e),t)}(j,t))}else{if(!O[F])return y?t:{};j=function(t,e,n,r){var i,a,l,p=t.constructor;switch(e){case v:return Ot(t);case o:case s:return new p(+t);case b:return i=t,a=r?Ot(i.buffer):i.buffer,new i.constructor(a,i.byteOffset,i.byteLength);case x:case w:case k:case S:case C:case _:case $:case E:case P:return function(t,e){var n=e?Ot(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,r);case c:return function(t,e,n){return V(e?n(W(t),!0):W(t),N,new t.constructor)}(t,r,n);case u:case m:return new p(t);case d:return function(t){var e=new t.constructor(t.source,T.exec(t));return e.lastIndex=t.lastIndex,e}(t);case f:return function(t,e,n){return V(e?n(U(t),!0):U(t),z,new t.constructor)}(t,r,n);case g:return l=t,Ct?Object(Ct.call(l)):{}}}(t,F,jt,e)}}A||(A=new Pt);var q=A.get(t);if(q)return q;if(A.set(t,j),!R)var H=n?function(t){return function(t,e,n){var r=e(t);return Bt(t)?r:function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}(r,n(t))}(t,Gt,Rt)}(t):Gt(t);return function(i){for(var o=-1,s=i?i.length:0;++o<s&&!1!==(a=i[o],l=o,H&&(a=t[l=a]),void Tt(j,l,jt(a,e,n,r,l,t,A))););var a,l}(H||t),j}function Ot(t){var e=new t.constructor(t.byteLength);return new it(e).set(new it(t)),e}function Mt(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i];Tt(n,s,t[s])}return n}function Dt(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function It(t,e){var n,r,i=(r=e,null==(n=t)?void 0:n[r]);return function(t){return!(!Ht(t)||(e=t,X&&X in e))&&(Ut(t)||B(t)?et:A).test(zt(t));var e}(i)?i:void 0}_t.prototype.clear=function(){this.__data__=yt?yt(null):{}},_t.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},_t.prototype.get=function(t){var e=this.__data__;if(yt){var r=e[t];return r===n?void 0:r}return Z.call(e,t)?e[t]:void 0},_t.prototype.has=function(t){var e=this.__data__;return yt?void 0!==e[t]:Z.call(e,t)},_t.prototype.set=function(t,e){return this.__data__[t]=yt&&void 0===e?n:e,this},$t.prototype.clear=function(){this.__data__=[]},$t.prototype.delete=function(t){var e=this.__data__,n=At(e,t);return!(n<0||(n==e.length-1?e.pop():lt.call(e,n,1),0))},$t.prototype.get=function(t){var e=this.__data__,n=At(e,t);return n<0?void 0:e[n][1]},$t.prototype.has=function(t){return At(this.__data__,t)>-1},$t.prototype.set=function(t,e){var n=this.__data__,r=At(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},Et.prototype.clear=function(){this.__data__={hash:new _t,map:new(dt||$t),string:new _t}},Et.prototype.delete=function(t){return Dt(this,t).delete(t)},Et.prototype.get=function(t){return Dt(this,t).get(t)},Et.prototype.has=function(t){return Dt(this,t).has(t)},Et.prototype.set=function(t,e){return Dt(this,t).set(t,e),this},Pt.prototype.clear=function(){this.__data__=new $t},Pt.prototype.delete=function(t){return this.__data__.delete(t)},Pt.prototype.get=function(t){return this.__data__.get(t)},Pt.prototype.has=function(t){return this.__data__.has(t)},Pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!dt||r.length<199)return r.push([t,e]),this;n=this.__data__=new Et(r)}return n.set(t,e),this};var Rt=ct?q(ct,Object):function(){return[]},Ft=function(t){return tt.call(t)};function Lt(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||j.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Y)}function zt(t){if(null!=t){try{return Q.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Vt(t,e){return t===e||t!=t&&e!=e}(ht&&Ft(new ht(new ArrayBuffer(1)))!=b||dt&&Ft(new dt)!=c||ft&&Ft(ft.resolve())!=h||mt&&Ft(new mt)!=f||gt&&Ft(new gt)!=y)&&(Ft=function(t){var e=tt.call(t),n=e==p?t.constructor:void 0,r=n?zt(n):void 0;if(r)switch(r){case vt:return b;case bt:return c;case xt:return h;case wt:return f;case kt:return y}return e});var Bt=Array.isArray;function Wt(t){return null!=t&&("number"==typeof(e=t.length)&&e>-1&&e%1==0&&e<=r)&&!Ut(t);var e}var qt=ut||function(){return!1};function Ut(t){var e=Ht(t)?tt.call(t):"";return e==a||e==l}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Gt(t){return Wt(t)?function(t){var e,n,r=Bt(t)||function(t){return!!t&&"object"==typeof t}(n=e=t)&&Wt(n)&&Z.call(e,"callee")&&(!at.call(e,"callee")||tt.call(e)==i)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=r.length,s=!!o;for(var a in t)!Z.call(t,a)||s&&("length"==a||Lt(a,o))||r.push(a);return r}(t):function(t){if(!Nt(t))return pt(t);var e=[];for(var n in Object(t))Z.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}t.exports=function(t){return jt(t,!0,!0)}}(Pi,Pi.exports);var Ti=Pi.exports,Ai=function(){return Ai=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Ai.apply(this,arguments)};function ji(t,e,n,r,i){return function(t,e,n,r){return new(n||(n=Promise))((function(e,i){function o(t){try{a(r.next(t))}catch(e){i(e)}}function s(t){try{a(r.throw(t))}catch(e){i(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,s)}a((r=r.apply(t,[])).next())}))}(this,0,void 0,(function(){var o,s;return function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(l){a=[6,l],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}(this,(function(a){switch(a.label){case 0:if(void 0===n)return[2];s=0,a.label=1;case 1:return s<n.length?[4,n[s](t,e,r,i,n)]:[3,4];case 2:if("canceled"===(o=a.sent()))return[3,4];a.label=3;case 3:return s++,[3,1];case 4:return"canceled"!==o?[2,o]:[2]}}))}))}"function"==typeof SuppressedError&&SuppressedError;var Oi=function(t,e){return void 0===e&&(e={}),t?{trackedAnalytics:Ai({sdkCode:t.sdkCode,sdkSemver:t.sdkSemver,techVersion:t.techVersion},e)}:null},Mi=function(){function t(t,e,n,r){var i=this;this.isMounted=!0,this.imgElement=t,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var o=Ti(e);ji(t,o,n,this.htmlPluginState,r).then((function(t){if(i.isMounted){i.htmlPluginState.pluginEventSubscription.forEach((function(t){t()}));var e=Oi(r,t);i.imgElement.setAttribute("src",o.toURL(e))}}))}return t.prototype.update=function(t,e,n){var r=this,i=Ti(t);ji(this.imgElement,i,e,this.htmlPluginState).then((function(t){if(r.isMounted){var e=Oi(n,t);r.imgElement.setAttribute("src",i.toURL(e))}}))},t.prototype.unmount=function(){this.isMounted=!1},t}();class Di{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return null!=t&&""!==t}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter((t=>this.hasValue(t))),this}setDelimiter(t){return this.delimiter=t,this}}class Ii extends Error{constructor(t="Unsupported"){super(t)}}function Ri(t){return new Ii(t)}function Fi(){return this._qualifierModel||{error:Ri(`unsupported qualifier ${this.constructor.name}`)}}class Li{constructor(){this._qualifierModel={}}toJson(){return Fi.apply(this)}}class Ni extends Li{constructor(t,e){super(),this.delimiter="_",this.key=t,e instanceof Di?this.qualifierValue=e:(this.qualifierValue=new Di,this.qualifierValue.addValue(e))}toString(){const{key:t,delimiter:e,qualifierValue:n}=this;return`${t}${e}${n.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class zi extends Ni{constructor(t,e){let n;n=e?new Di([t,`${e}`]).setDelimiter(":"):t,super("fl",n),this.flagValue=e}toString(){return super.toString().replace(/\./,"%2E")}getFlagValue(){return this.flagValue}}function Vi(){var t,e,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=null===(n=null===(e=null===(t=this._actionModel)||void 0===t?void 0:t.source)||void 0===e?void 0:e.transformation)||void 0===n?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Ri(`unsupported action ${this.constructor.name}`)}}class Bi{constructor(){this._actionModel={}}toJson(){return Vi.apply(this)}}class Wi extends Bi{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),function(t,e){const n=Array.from(t.entries());return e.forEach((t=>{n.push(["fl",t])})),n.sort().map((t=>t[1]))}(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if("string"==typeof t){const[e,n]=t.toLowerCase().split("_");"fl"===e?this.flags.push(new zi(n)):this.qualifiers.set(e,new Ni(e,n))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return"string"==typeof t?this.flags.push(new zi(t)):t instanceof zi&&this.flags.push(t),this}addValueToQualifier(t,e){return this.qualifiers.get(t).addValue(e),this}}class qi extends Wi{constructor(t){super(),this.regionType=t,this._actionModel.regionType=t}}class Ui extends qi{constructor(){super("custom")}x(t){return this._actionModel.x=t,this.addQualifier(new Ni("x",t)),this}y(t){return this._actionModel.y=t,this.addQualifier(new Ni("y",t)),this}width(t){return this._actionModel.width=t,this.addQualifier(new Ni("w",t)),this}height(t){return this._actionModel.height=t,this.addQualifier(new Ni("h",t)),this}static fromJson(t){const e=new Ui;return t.width&&e.width(t.width),t.height&&e.height(t.height),t.x&&e.x(t.x),t.y&&e.y(t.y),e}}function Hi(){return new qi("faces")}function Gi(t){const e={};return Object.keys(t).forEach((n=>{e[t[n]]=n})),e}const Ki={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad"},Yi={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},Ji={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},Xi={444:"CHROMA_444",420:"CHROMA_420"},Qi=Gi(Xi);Gi({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"});const Zi=Gi(Ki),to=Gi({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"}),eo=Gi(Yi);Gi(Ji),Gi({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class no extends Wi{constructor(t,e){super(),this._actionModel={},this._actionModel.actionType=eo[t]||t;const n=this.createEffectQualifier(t,e);this.addQualifier(n)}createEffectQualifier(t,e){let n;return n=e?new Di([t,`${e}`]).setDelimiter(":"):new Di(t),new Ni("e",n)}static fromJson(t){const{actionType:e,level:n,strength:r}=t;return new this(Yi[e]||e,n||r)}}class ro extends no{constructor(t,e){super(t,e),this.LEVEL_NAME="level",this._actionModel={},this.effectType=t,this._actionModel.actionType=eo[t]||t,e&&this.setLevel(e)}setLevel(t){this._actionModel[this.LEVEL_NAME]=t;const e=this.createEffectQualifier(this.effectType,t);return this.addQualifier(e),this}}function io(t){return t&&t.match(/^#/)?`rgb:${t.substr(1)}`:t}class oo extends ro{level(t){return this._actionModel.level=t,this.setLevel(t)}}class so extends oo{color(t){return this._actionModel.color=t,this.addQualifier(new Ni("co",new Di(io(t))))}static fromJson(t){const{actionType:e,level:n,color:r}=t,i=new this(e,n);return r&&i.color(r),i}}function ao(t){return new so("colorize",t)}class lo extends Wi{constructor(t){super(),this._actionModel={},this.addQualifier(new Ni("b",new Di(io(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:e}=t;return new this(e)}}class co{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Ri(`unsupported action ${this.constructor.name}`)}}}class uo extends Di{constructor(t){super(t),this.val=t}getValue(){return this.val}}class po extends Wi{constructor(t,e,n){let r;super(),this._actionModel={},r=e instanceof uo?e.getValue():e,this._actionModel.actionType=to[t],this._actionModel[n]=r,this.addQualifier(new Ni(t,e))}}class ho extends zi{constructor(t){super("progressive",t)}}class fo extends po{constructor(t,e){super(t,e,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new zi("lossy")),this}progressive(t){return t instanceof ho?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(new zi("progressive",t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new zi("preserve_transparency")),this}static fromJson(t){const{formatType:e,lossy:n,progressive:r,preserveTransparency:i}=t;let o;return o=e?new this("f",e):new this("f"),r&&(r.mode?o.progressive(r.mode):o.progressive()),n&&o.lossy(),i&&o.preserveTransparency(),o}}class mo{constructor(){this.actions=[]}addAction(t){let e;if("string"==typeof t){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";e=new co(t)}else e=t;return this.actions.push(e),this}addTransformation(t){return t instanceof mo?this.actions=this.actions.concat(t.actions):this.actions.push(new co(t)),this}toString(){return this.actions.map((t=>t.toString())).filter((t=>t)).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new fo("q",t)),this}format(t){return this.addAction(new fo("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new lo(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const e=new Wi;let n=t;return"string"==typeof t&&(n=new zi(t)),e.addQualifier(n),this.addAction(e)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if("error"in(e=r)&&e.error)return r;t.push(r)}var e;return{actions:t}}}function go(t){const e=t.toString();return e.match(/[A-Z]/gi)||e.length>1&&"0"===e[0]||isNaN(parseFloat(e))||-1!==e.indexOf(":")||-1!==e.indexOf(".")?e:`${e}.0`}class yo extends Di{}class vo extends Wi{constructor(t,e,n){super(),this._actionModel={dimensions:{}},this._actionModel.actionType=Zi[t]||t,this.addQualifier(new Ni("c",t)),e&&this.width(e),n&&this.height(n)}height(t){return this._actionModel.dimensions.height=t,this.addQualifier(new Ni("h",t))}width(t){return this._actionModel.dimensions.width=t,this.addQualifier(new Ni("w",t))}aspectRatio(t){return t instanceof yo?(this._actionModel.dimensions.aspectRatio=`${t}`,this.addQualifier(new Ni("ar",t))):"number"==typeof t||"string"==typeof t?(this._actionModel.dimensions.aspectRatio=go(t),this.addQualifier(new Ni("ar",go(t)))):t instanceof zi?(this._actionModel.dimensions.aspectRatio=`${t.qualifierValue}`,this.addFlag(t)):void 0}relative(){return this._actionModel.relative=!0,this.addFlag(new zi("relative"))}regionRelative(){return this._actionModel.regionRelative=!0,this.addFlag(new zi("region_relative"))}static fromJson(t){const{actionType:e,dimensions:n,relative:r,regionRelative:i}=t,{aspectRatio:o,width:s,height:a}=n,l=new this(Ki[e]||e,s,a);return o&&l.aspectRatio("ignore_aspect_ratio"===o?new zi("ignore_aspect_ratio"):o),r&&l.relative(),i&&l.regionRelative(),l}}class bo extends Ni{constructor(t){super("g",new Di(t))}}class xo extends bo{constructor(){super("auto")}autoFocus(...t){return this.addValue(t),this}}class wo extends bo{constructor(t){super(t)}fallbackGravity(t){return this.addValue(t.qualifierValue),this}}class ko extends bo{constructor(t){super(t)}}function So(...t){const e=[...t];return new wo(e)}function Co(){return new xo}class _o extends Di{constructor(t){super(),this.name=t}toString(){return this.name}}function $o(t){return`${t}`.replace("g_","")}function Eo(t){const e=t.toString().split("_"),n={object:e[0]};return e.length>1&&("avoid"===e[1]?n.avoid=!0:n.weight=+e[1]),n}function Po(t){let e;const n="auto"===t?new xo:t;return e=`${t}`.startsWith("auto:")?`${t}`.split(":").filter((t=>"auto"!==t)):n.qualifierValue.values.filter((t=>"auto"!==t)),{gravityType:"auto",autoFocus:e.map(Eo)}}class To extends Di{constructor(t,e){super(),this._weight=e,this.focusOn=t,this.shouldAvoid=!1}static focusOn(t,e){return new To(t,e)}shouldAddWeight(){return"number"==typeof this._weight||"string"==typeof this._weight||this.shouldAvoid}getName(){return this.focusOn.name}getWeight(){return this.shouldAvoid?"avoid":this._weight}toString(){return this.shouldAddWeight()?`${this.getName()}_${this.getWeight()}`:`${this.getName()}`}weight(t){return this._weight=t,this}avoid(){return this.shouldAvoid=!0,this}}class Ao extends Di{constructor(t){super(),this.val=t}toString(){return this.val}}function jo(t){const{object:e,weight:n,avoid:r}=t,i=new To(new _o(e));return(n||0===n)&&i.weight(n),r&&i.avoid(),i}function Oo(t){const e=(t.autoFocus||[]).map(jo);return Co().autoFocus(...e)}class Mo extends vo{gravity(t){this._actionModel.gravity=function(t){return function(t){const e=$o(t);return["north","center","east","west","south","north_west","south_east","south_west","north_east"].includes(e)}(t)?{compass:$o(t),gravityType:"direction"}:(e=t,"ocr_text"===$o(e)?{gravityType:"ocr"}:function(t){return t&&"auto"===`${t}`.split(":")[0]}(t)||function(t){return"auto"===`${t.qualifierValue}`.split(":")[0]}(t)?Po(t):function(t){const e=`${t}`.split(":").includes("auto"),n=t.qualifierValue.values,r={gravityType:"object",focusOnObjects:(e?n.slice(0,n.length-1):n).map((t=>`${t}`))};if(e){const t=n[n.length-1].values.slice(1),e=Co().autoFocus(...t);r.fallbackGravity=Po(e)}return r}("string"==typeof t?function(t){const e=t.split(":").map((t=>new _o(t)));return new wo(e)}(t):t));var e}(t);const e="string"==typeof t?new Ni("g",t):t;return this.addQualifier(e)}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.gravity&&e.gravity(function(t){return"direction"===t.gravityType?new ko(new Ao(t.compass)):(e=t,"ocr"===e.gravityType?So(new _o("ocr_text")):function(t){return"auto"===t.gravityType}(t)?Oo(t):function(t){const e=So(...(t.focusOnObjects||[]).map((t=>new _o(t))));if(t.fallbackGravity){const n=Oo(t.fallbackGravity);e.fallbackGravity(n)}return e}(t));var e}(t.gravity)),e}}class Do extends Ni{constructor(t){super("b"),t&&this.addValue(t)}}var Io=class extends Do{intensity(t){return this.intensityLevel=t,this}brightness(t){return this.brightnessLevel=t,this}toString(){return`b_blurred${void 0!==this.intensityLevel?`:${this.intensityLevel}`:""}${void 0!==this.brightnessLevel?void 0!==this.intensityLevel?`:${this.brightnessLevel}`:`:100:${this.brightnessLevel}`:""}`}};class Ro extends Do{constructor(){super(),this._palette=[]}contrast(){return this._contrast=!0,this}palette(...t){return this._palette=t.map((t=>io(t))),this}}class Fo extends Ro{toString(){return`\n b_auto:border\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Lo extends Ro{gradientColors(t){return this._gradientColors=t,this}gradientDirection(t){return this._gradientDirection=t,this}}class No extends Lo{toString(){return`\n b_auto:border_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class zo extends Lo{toString(){return`\n b_auto:predominant_gradient\n ${this._contrast?"_contrast":""}\n ${this._gradientColors?`:${this._gradientColors}`:""}\n ${this._gradientDirection?`:${this._gradientDirection}`:""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Vo extends Ro{toString(){return`\n b_auto:predominant\n ${this._contrast?"_contrast":""}\n ${this._palette.length?`:palette_${this._palette.join("_")}`:""}\n `.replace(/\s+/g,"")}}class Bo extends Do{constructor(){super("gen_fill"),this._backgroundType="generativeFill"}prompt(t){return this._prompt=t,this}getPrompt(){return this._prompt}getBackgroundType(){return this._backgroundType}toString(){return"b_gen_fill"+(this._prompt?`:prompt_${this._prompt}`:"")}}function Wo(t){return`${t}`.replace("b_","")}function qo(t){const e=t._contrast,n=t._palette,r={backgroundType:""};return e&&(r.contrast=!0),n&&(r.palette=n),r}function Uo(t){const e=t._gradientColors,n=`${t._gradientDirection}`,r=qo(t);return e&&(r.gradientColors=e),n&&(r.gradientDirection=n),r}function Ho(){return new uo("auto")}function Go(){return new Fo}function Ko(){return new Do("auto")}function Yo(){return new No}function Jo(){return new zo}function Xo(){return new Vo}function Qo(t){return new Do(io(t))}function Zo(){return new Bo}const ts={auto:Ko,border:Go,borderGradient:Yo,predominantGradient:Jo,predominant:Xo,color:Qo,blurred:function(){return new Io},generativeFill:Zo};function es(t,e){const{gradientColors:n,gradientDirection:r,contrast:i,palette:o}=e;return i&&t.contrast(),o&&t.palette(...o),n&&t.gradientColors(+n),r&&t.gradientDirection(r),t}function ns(t,e){const{contrast:n,palette:r}=e;return n&&t.contrast(),r&&t.palette(...r),t}class rs extends Mo{x(t){return this._actionModel.x=t,this.addQualifier(new Ni("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ni("y",t))}zoom(t){return this._actionModel.zoom=t,this.addQualifier(new Ni("z",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),t.zoom&&e.zoom(t.zoom),e}}class is extends Mo{x(t){return this._actionModel.x=t,this.addQualifier(new Ni("x",t))}y(t){return this._actionModel.y=t,this.addQualifier(new Ni("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.x&&e.x(t.x),t.y&&e.y(t.y),e}}class os extends po{constructor(t){super("q",t.toString(),"level")}chromaSubSampling(t){this._actionModel.chromaSubSampling=Xi[t];const e=new Di([this._actionModel.level,t]);return e.setDelimiter(":"),this.addQualifier(new Ni("q",e))}quantization(t){this._actionModel.quantization=t;const e=new Di([this._actionModel.level,`qmax_${t}`]).setDelimiter(":");return this.addQualifier(new Ni("q",e))}static fromJson(t){const{level:e,chromaSubSampling:n,quantization:r}=t,i=new this(Ji[e]||e);if(n){const t=Qi[n.toUpperCase()];t&&i.chromaSubSampling(+t)}return r&&i.quantization(r),i}}function ss(t){return new fo("f",t)}function as(t){return new os(t)}ao(70).color("black"),ao(40).color("white"),new no("grayscale"),new class extends Wi{constructor(){super(),this._actionModel={},this._actionModel.actionType="assistColorblind",this.addQualifier(new Ni("e",new Di("assist_colorblind")))}xray(){return this._actionModel.type="xray",this.addQualifier(new Ni("e",new Di(["assist_colorblind","xray"]).setDelimiter(":")))}stripesStrength(t){return this._actionModel.type="stripes",this._actionModel.stripesStrength=t,this.addQualifier(new Ni("e",new Di(["assist_colorblind",t]).setDelimiter(":")))}static fromJson(t){const{actionType:e,type:n,stripesStrength:r}=t,i=new this;return"xray"===n&&i.xray(),"stripes"===n&&r&&i.stripesStrength(r),i}};var ls,cs={vectorize:(new mo).effect(new class extends Wi{constructor(){super(),this._actionModel={},this._actionModel.actionType="vectorize"}numOfColors(t){return this._actionModel.numOfColors=t,this._numOfColors=t,this}detailsLevel(t){return this._actionModel.detailLevel=t,this._detailsLevel=t,this}despeckleLevel(t){return this._actionModel.despeckleLevel=t,this._despeckleLevel=t,this}cornersLevel(t){return this._actionModel.cornersLevel=t,this._cornersLevel=t,this}paths(t){return this._actionModel.paths=t,this._paths=t,this}prepareQualifiers(){let t="vectorize";this._numOfColors&&(t+=`:${new Di(`colors:${this._numOfColors}`).toString()}`),this._detailsLevel&&(t+=`:${new Di(`detail:${this._detailsLevel}`).toString()}`),this._despeckleLevel&&(t+=`:${new Di(`despeckle:${this._despeckleLevel}`).toString()}`),this._paths&&(t+=`:${new Di(`paths:${this._paths}`).toString()}`),this._cornersLevel&&(t+=`:${new Di(`corners:${this._cornersLevel}`).toString()}`),this.addQualifier(new Ni("e",t))}static fromJson(t){const{actionType:e,paths:n,cornersLevel:r,despeckleLevel:i,detailLevel:o,numOfColors:s}=t,a=new this;return n&&a.paths(n),r&&a.cornersLevel(r),i&&a.despeckleLevel(i),o&&a.detailsLevel(o),s&&a.numOfColors(s),a}}).delivery(as("auto")).delivery(ss(new uo("svg"))),pixelate:(new mo).effect(new class extends Wi{constructor(t){super(),this._actionModel={},this._squareSize=t,this._actionModel.actionType="pixelate",this._actionModel.squareSize=t}region(t){return this._region=t,this._actionModel.region={regionType:this._region.regionType},this}squareSize(t){return this._squareSize=t,this._actionModel.squareSize=t,this}prepareQualifiers(){const t=this._squareSize?`:${this._squareSize}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Ni("e",`pixelate_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Ni("e",`pixelate_region${t}`)),this.addQualifier(new Ni("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Ni("e",`pixelate_faces${t}`))):this.addQualifier(new Ni("e",`pixelate${t}`))}static fromJson(t){const{region:e,squareSize:n}=t,r=new this(n);return n&&r.squareSize(n),e&&"faces"===e.regionType&&r.region(Hi()),e&&"custom"===e.regionType&&r.region(new Ui),r}}(undefined)).delivery(as("auto")).delivery(ss(Ho())),blur:(new mo).effect(new class extends Wi{constructor(t){super(),this._actionModel={},this._strength=t,this._actionModel.actionType="blur",this._actionModel.strength=t}region(t){return this._region=t,this._actionModel.region=t.toJson(),this}strength(t){return this._strength=t,this._actionModel.strength=t,this}prepareQualifiers(){const t=this._strength?`:${this._strength}`:"";"_region"in this?(this._region.qualifiers.forEach((t=>this.addQualifier(t))),"custom"===this._region.regionType&&this.addQualifier(new Ni("e",`blur_region${t}`)),"ocr_text"===this._region.regionType&&(this.addQualifier(new Ni("e",`blur_region${t}`)),this.addQualifier(new Ni("g","ocr_text"))),"faces"===this._region.regionType&&this.addQualifier(new Ni("e",`blur_faces${t}`))):this.addQualifier(new Ni("e",`blur${t}`))}static fromJson(t){const{strength:e,region:n}=t,r=new this(e);return e&&r.strength(e),n&&"faces"===n.regionType&&r.region(Hi()),n&&"ocr_text"===n.regionType&&r.region(new qi("ocr_text")),n&&"custom"===n.regionType&&r.region(Ui.fromJson(n)),r}}(2e3)).delivery(as("auto")).delivery(ss(Ho())),"predominant-color":(new mo).resize(new class extends Mo{background(t){return this._actionModel.background=function(t){return"auto"===Wo(t)?{backgroundType:"auto"}:t instanceof Io?function(t){const{intensityLevel:e,brightnessLevel:n}=t,r={backgroundType:"blurred"};return(e||0===e)&&(r.intensity=e),(n||0===n)&&(r.brightness=n),r}(t):t instanceof Fo?(e=t,Object.assign(Object.assign({},qo(e)),{backgroundType:"border"})):t instanceof No?function(t){return Object.assign(Object.assign({},Uo(t)),{backgroundType:"borderGradient"})}(t):t instanceof Vo?function(t){return Object.assign(Object.assign({},qo(t)),{backgroundType:"predominant"})}(t):t instanceof zo?function(t){return Object.assign(Object.assign({},Uo(t)),{backgroundType:"predominantGradient"})}(t):t instanceof Bo?function(t){return Object.assign({backgroundType:t.getBackgroundType()},t.getPrompt()?{prompt:t.getPrompt()}:{})}(t):function(t){return{backgroundType:"color",color:Wo(t)}}(t);var e}(t),this.addQualifier(t)}offsetX(t){return this._actionModel.x=t,this.addQualifier(new Ni("x",t))}offsetY(t){return this._actionModel.y=t,this.addQualifier(new Ni("y",t))}static fromJson(t){const e=super.fromJson.apply(this,[t]);return t.background&&e.background(function(t){const{backgroundType:e}=t;switch(e){case"auto":return Ko();case"blurred":return function(t){const{brightness:e,intensity:n}=t,r=ts.blurred();return r.brightness(null!=e?e:0),r.intensity(null!=n?n:100),r}(t);case"border":return ns(Go(),t);case"borderGradient":return es(Yo(),t);case"predominant":return ns(Xo(),t);case"predominantGradient":return es(Jo(),t);case"generativeFill":return function(t,e){const{prompt:n}=e;return n&&t.prompt(n),t}(Zo(),t);default:return Qo(t.color)}}(t.background)),t.x&&e.offsetX(t.x),t.y&&e.offsetY(t.y),t.zoom&&e.zoom(t.zoom),e}}("pad","iw_div_2",undefined).aspectRatio(1).background(ts.auto())).resize(new rs("crop",1,1).gravity((ls=new Ao("north_east"),new ko(ls)))).resize(new is("fill",void 0,void 0).height("ih").width("iw")).delivery(as("auto")).delivery(ss(Ho()))},us="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ps={flv:"x-flv","3gp":"3gpp",mov:"quicktime",mpg:"mpeg",avi:"x-msvideo",wmv:"x-ms-wmv",ogv:"ogg",webm:"webm",mp4:"mp4"},hs="?_a=",ds=function(){function t(t,e,n,r,i,o,s){var a=this;this.mimeType="video",this.mimeSubTypes=ps,this.videoElement=t,this.originalVideo=e,this.videoOptions=s,this.htmlPluginState={cleanupCallbacks:[],pluginEventSubscription:[]};var l=Ti(e);ji(t,e,r,this.htmlPluginState).then((function(){a.htmlPluginState.pluginEventSubscription.forEach((function(t){t()})),a.setVideoAttributes(i,o),a.handleSourceToVideo(l,n)}))}return t.prototype.handleSourceToVideo=function(t,e){var n=this;e?this.generateUserSources(t,e):["webm","mp4","ogv"].forEach((function(e){n.appendSourceTag(Ti(t),e)}))},t.prototype.generateUserSources=function(t,e){var n=this;e.map((function(e){var r=e.type,i=e.codecs,o=e.transcode;return n.appendSourceTag(Ti(t).transcode(o),r,n.buildMimeType(r,i))}))},t.prototype.appendSourceTag=function(t,e,n){var r,i=document.createElement("source"),o=null===(r=this.videoOptions)||void 0===r?void 0:r.useFetchFormat;o&&t.format(e);var s=t.toURL().split(hs),a=s[1]?"".concat(hs).concat(s[1]):"",l=o?"":".".concat(e);i.src="".concat(s[0]).concat(l).concat(a),i.type=n||"video/".concat(ps[e]||e),this.videoElement.appendChild(i)},t.prototype.buildMimeType=function(t,e){var n="".concat(this.mimeType,"/").concat(this.mimeSubTypes[t]||t);return e&&(n+="; codecs="+(Array.isArray(e)?e.join(", "):e)),n},t.prototype.setVideoAttributes=function(t,e){var n;if(void 0===t&&(t={}),"auto"===e){var r=Ti(this.originalVideo);t.poster=r.quality("auto").format("jpg").addTransformation("so_auto").toURL()}else e&&(t.poster=null===(n=e.toURL)||void 0===n?void 0:n.call(e));for(var i=0,o=Object.entries(t);i<o.length;i++){var s=o[i],a=s[0],l=s[1];l&&this.videoElement.setAttribute(a,"poster"===a?l:"")}},t.prototype.update=function(t,e,n,r,i){var o=this;if(t!==this.originalVideo){for(var s=this.videoElement.getElementsByTagName("SOURCE");s[0];)s[0].parentNode.removeChild(s[0]);ji(this.videoElement,t,n,this.htmlPluginState).then((function(){o.setVideoAttributes(r,i),o.handleSourceToVideo(t,e),o.videoElement.load()}))}},t}(),fs="object"==typeof Ei&&Ei&&Ei.Object===Object&&Ei,ms="object"==typeof self&&self&&self.Object===Object&&self;function gs(){return"undefined"!=typeof window}function ys(t){var e={},n=e.rootMargin,r=void 0===n?"0px":n,i=e.threshold,o=void 0===i?.1:i;return vs.bind(null,r,o)}function vs(t,e,n,r,i,o){return void 0===t&&(t="0px"),void 0===e&&(e=.1),!!gs()&&new Promise((function(r){var o=function(t,e,n,r){try{if(!window||!("IntersectionObserver"in window))return e(),function(){};var i=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&(i.unobserve(t.target),e())}))}),{rootMargin:n,threshold:r});return i.observe(t),function(){t&&i.observe(t)}}catch(o){e()}}(n,(function(){return r({lazyload:!0})}),t,e);i.cleanupCallbacks.push((function(){o(),r("canceled")}))}))}function bs(t){var e={}.mode,n=void 0===e?"vectorize":e;return xs.bind(null,n)}function xs(t,e,n,r,i,o){cs[t]||(t="vectorize");var s=cs[t].actions,a=Ti(n);if(s.forEach((function(t){a.addAction(t)})),!gs())return n.transformation=a.transformation,!0;if(e instanceof HTMLImageElement){a.transformation.actions.forEach((function(t,e){t instanceof Wi&&"responsive"===t.getActionTag()&&delete a.transformation.actions[e]}));var l=Oi(i,{placeholder:!0});return e.src=a.toURL(l),e.onerror=function(){e.src=us},new Promise((function(t){e.onload=function(){t()}})).then((function(){return new Promise((function(t){r.cleanupCallbacks.push((function(){e.src=us,t("canceled")}));var i=new Image;i.src=n.toURL(l),i.onload=function(){t({placeholder:!0})},i.onerror=function(){t({placeholder:!0})}}))}))}}function ws(t){t.cleanupCallbacks.forEach((function(t){t()}))}fs||ms||Function("return this")();var ks=function(t,e){return ks=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},ks(t,e)};function Ss(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}ks(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Cs=function(){return Cs=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Cs.apply(this,arguments)};function _s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;var $s={exports:{}},Es={},Ps=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,js=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,r,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))Ts.call(n,s)&&(i[s]=n[s]);if(Ps){r=Ps(n);for(var a=0;a<r.length;a++)As.call(n,r[a])&&(i[r[a]]=n[r[a]])}}return i},Os=js,Ms="function"==typeof Symbol&&Symbol.for,Ds=Ms?Symbol.for("react.element"):60103,Is=Ms?Symbol.for("react.portal"):60106,Rs=Ms?Symbol.for("react.fragment"):60107,Fs=Ms?Symbol.for("react.strict_mode"):60108,Ls=Ms?Symbol.for("react.profiler"):60114,Ns=Ms?Symbol.for("react.provider"):60109,zs=Ms?Symbol.for("react.context"):60110,Vs=Ms?Symbol.for("react.forward_ref"):60112,Bs=Ms?Symbol.for("react.suspense"):60113,Ws=Ms?Symbol.for("react.memo"):60115,qs=Ms?Symbol.for("react.lazy"):60116,Us="function"==typeof Symbol&&Symbol.iterator;
107
107
  /** @license React v16.14.0
108
108
  * react.production.min.js
109
109
  *
@@ -112,7 +112,7 @@
112
112
  * This source code is licensed under the MIT license found in the
113
113
  * LICENSE file in the root directory of this source tree.
114
114
  */
115
- function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ho={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Go={};function Qo(t,e,n){this.props=t,this.context=e,this.refs=Go,this.updater=n||Ho}function Jo(){}function Ko(t,e,n){this.props=t,this.context=e,this.refs=Go,this.updater=n||Ho}Qo.prototype.isReactComponent={},Qo.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(Uo(85));this.updater.enqueueSetState(this,t,e,"setState")},Qo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},Jo.prototype=Qo.prototype;var Yo=Ko.prototype=new Jo;Yo.constructor=Ko,jo(Yo,Qo.prototype),Yo.isPureReactComponent=!0;var Xo={current:null},Zo=Object.prototype.hasOwnProperty,ta={key:!0,ref:!0,__self:!0,__source:!0};function ea(t,e,n){var i,r={},s=null,o=null;if(null!=e)for(i in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(s=""+e.key),e)Zo.call(e,i)&&!ta.hasOwnProperty(i)&&(r[i]=e[i]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(t&&t.defaultProps)for(i in a=t.defaultProps)void 0===r[i]&&(r[i]=a[i]);return{$$typeof:Mo,type:t,key:s,ref:o,props:r,_owner:Xo.current}}function na(t){return"object"==typeof t&&null!==t&&t.$$typeof===Mo}var ia=/\/+/g,ra=[];function sa(t,e,n,i){if(ra.length){var r=ra.pop();return r.result=t,r.keyPrefix=e,r.func=n,r.context=i,r.count=0,r}return{result:t,keyPrefix:e,func:n,context:i,count:0}}function oa(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>ra.length&&ra.push(t)}function aa(t,e,n,i){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var s=!1;if(null===t)s=!0;else switch(r){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Mo:case Fo:s=!0}}if(s)return n(i,t,""===e?"."+ca(t,0):e),1;if(s=0,e=""===e?".":e+":",Array.isArray(t))for(var o=0;o<t.length;o++){var a=e+ca(r=t[o],o);s+=aa(r,a,n,i)}else if("function"==typeof(a=null===t||"object"!=typeof t?null:"function"==typeof(a=Wo&&t[Wo]||t["@@iterator"])?a:null))for(t=a.call(t),o=0;!(r=t.next()).done;)s+=aa(r=r.value,a=e+ca(r,o++),n,i);else if("object"===r)throw n=""+t,Error(Uo(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return s}function la(t,e,n){return null==t?0:aa(t,"",e,n)}function ca(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,i={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return i[t]}))):e.toString(36);var n,i}function ha(t,e){t.func.call(t.context,e,t.count++)}function ua(t,e,n){var i,r,s=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?pa(t,s,n,(function(t){return t})):null!=t&&(na(t)&&(i=t,r=o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(ia,"$&/")+"/")+n,t={$$typeof:Mo,type:i.type,key:r,ref:i.ref,props:i.props,_owner:i._owner}),s.push(t))}function pa(t,e,n,i,r){var s="";null!=n&&(s=(""+n).replace(ia,"$&/")+"/"),la(t,ua,e=sa(e,s,i,r)),oa(e)}var da={current:null};function fa(){var t=da.current;if(null===t)throw Error(Uo(321));return t}var ma={ReactCurrentDispatcher:da,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Xo,IsSomeRendererActing:{current:!1},assign:jo};Co.Children={map:function(t,e,n){if(null==t)return t;var i=[];return pa(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;la(t,ha,e=sa(null,null,e,n)),oa(e)},count:function(t){return la(t,(function(){return null}),null)},toArray:function(t){var e=[];return pa(t,e,null,(function(t){return t})),e},only:function(t){if(!na(t))throw Error(Uo(143));return t}},Co.Component=Qo,Co.Fragment=Io,Co.Profiler=Lo,Co.PureComponent=Ko,Co.StrictMode=Ro,Co.Suspense=Vo,Co.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ma,Co.cloneElement=function(t,e,n){if(null==t)throw Error(Uo(267,t));var i=jo({},t.props),r=t.key,s=t.ref,o=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,o=Xo.current),void 0!==e.key&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Zo.call(e,l)&&!ta.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==a?a[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];i.children=a}return{$$typeof:Mo,type:t.type,key:r,ref:s,props:i,_owner:o}},Co.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:zo,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Oo,_context:t},t.Consumer=t},Co.createElement=ea,Co.createFactory=function(t){var e=ea.bind(null,t);return e.type=t,e},Co.createRef=function(){return{current:null}},Co.forwardRef=function(t){return{$$typeof:No,render:t}},Co.isValidElement=na,Co.lazy=function(t){return{$$typeof:Bo,_ctor:t,_status:-1,_result:null}},Co.memo=function(t,e){return{$$typeof:qo,type:t,compare:void 0===e?null:e}},Co.useCallback=function(t,e){return fa().useCallback(t,e)},Co.useContext=function(t,e){return fa().useContext(t,e)},Co.useDebugValue=function(){},Co.useEffect=function(t,e){return fa().useEffect(t,e)},Co.useImperativeHandle=function(t,e,n){return fa().useImperativeHandle(t,e,n)},Co.useLayoutEffect=function(t,e){return fa().useLayoutEffect(t,e)},Co.useMemo=function(t,e){return fa().useMemo(t,e)},Co.useReducer=function(t,e,n){return fa().useReducer(t,e,n)},Co.useRef=function(t){return fa().useRef(t)},Co.useState=function(t){return fa().useState(t)},Co.version="16.14.0";var ga={},ya=Function.call.bind(Object.prototype.hasOwnProperty),va=function(){};if("production"!==process.env.NODE_ENV){var ba="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xa={},wa=ya;va=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}}function ka(t,e,n,i,r){if("production"!==process.env.NODE_ENV)for(var s in t)if(wa(t,s)){var o;try{if("function"!=typeof t[s]){var a=Error((i||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}o=t[s](e,s,i,n,null,ba)}catch(c){o=c}if(!o||o instanceof Error||va((i||"React class")+": type specification of "+n+" `"+s+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in xa)){xa[o.message]=!0;var l=r?r():"";va("Failed "+n+" type: "+o.message+(null!=l?l:""))}}}ka.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(xa={})};var _a=ka;
115
+ function Hs(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gs={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ks={};function Ys(t,e,n){this.props=t,this.context=e,this.refs=Ks,this.updater=n||Gs}function Js(){}function Xs(t,e,n){this.props=t,this.context=e,this.refs=Ks,this.updater=n||Gs}Ys.prototype.isReactComponent={},Ys.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(Hs(85));this.updater.enqueueSetState(this,t,e,"setState")},Ys.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},Js.prototype=Ys.prototype;var Qs=Xs.prototype=new Js;Qs.constructor=Xs,Os(Qs,Ys.prototype),Qs.isPureReactComponent=!0;var Zs={current:null},ta=Object.prototype.hasOwnProperty,ea={key:!0,ref:!0,__self:!0,__source:!0};function na(t,e,n){var r,i={},o=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(o=""+e.key),e)ta.call(e,r)&&!ea.hasOwnProperty(r)&&(i[r]=e[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in a=t.defaultProps)void 0===i[r]&&(i[r]=a[r]);return{$$typeof:Ds,type:t,key:o,ref:s,props:i,_owner:Zs.current}}function ra(t){return"object"==typeof t&&null!==t&&t.$$typeof===Ds}var ia=/\/+/g,oa=[];function sa(t,e,n,r){if(oa.length){var i=oa.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function aa(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>oa.length&&oa.push(t)}function la(t,e,n,r){var i=typeof t;"undefined"!==i&&"boolean"!==i||(t=null);var o=!1;if(null===t)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Ds:case Is:o=!0}}if(o)return n(r,t,""===e?"."+ua(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s<t.length;s++){var a=e+ua(i=t[s],s);o+=la(i,a,n,r)}else if("function"==typeof(a=null===t||"object"!=typeof t?null:"function"==typeof(a=Us&&t[Us]||t["@@iterator"])?a:null))for(t=a.call(t),s=0;!(i=t.next()).done;)o+=la(i=i.value,a=e+ua(i,s++),n,r);else if("object"===i)throw n=""+t,Error(Hs(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}function ca(t,e,n){return null==t?0:la(t,"",e,n)}function ua(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return r[t]}))):e.toString(36);var n,r}function pa(t,e){t.func.call(t.context,e,t.count++)}function ha(t,e,n){var r,i,o=t.result,s=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?da(t,o,n,(function(t){return t})):null!=t&&(ra(t)&&(r=t,i=s+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(ia,"$&/")+"/")+n,t={$$typeof:Ds,type:r.type,key:i,ref:r.ref,props:r.props,_owner:r._owner}),o.push(t))}function da(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(ia,"$&/")+"/"),ca(t,ha,e=sa(e,o,r,i)),aa(e)}var fa={current:null};function ma(){var t=fa.current;if(null===t)throw Error(Hs(321));return t}var ga={ReactCurrentDispatcher:fa,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Zs,IsSomeRendererActing:{current:!1},assign:Os};Es.Children={map:function(t,e,n){if(null==t)return t;var r=[];return da(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;ca(t,pa,e=sa(null,null,e,n)),aa(e)},count:function(t){return ca(t,(function(){return null}),null)},toArray:function(t){var e=[];return da(t,e,null,(function(t){return t})),e},only:function(t){if(!ra(t))throw Error(Hs(143));return t}},Es.Component=Ys,Es.Fragment=Rs,Es.Profiler=Ls,Es.PureComponent=Xs,Es.StrictMode=Fs,Es.Suspense=Bs,Es.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ga,Es.cloneElement=function(t,e,n){if(null==t)throw Error(Hs(267,t));var r=Os({},t.props),i=t.key,o=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(o=e.ref,s=Zs.current),void 0!==e.key&&(i=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)ta.call(e,l)&&!ea.hasOwnProperty(l)&&(r[l]=void 0===e[l]&&void 0!==a?a[l]:e[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ds,type:t.type,key:i,ref:o,props:r,_owner:s}},Es.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:zs,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:Ns,_context:t},t.Consumer=t},Es.createElement=na,Es.createFactory=function(t){var e=na.bind(null,t);return e.type=t,e},Es.createRef=function(){return{current:null}},Es.forwardRef=function(t){return{$$typeof:Vs,render:t}},Es.isValidElement=ra,Es.lazy=function(t){return{$$typeof:qs,_ctor:t,_status:-1,_result:null}},Es.memo=function(t,e){return{$$typeof:Ws,type:t,compare:void 0===e?null:e}},Es.useCallback=function(t,e){return ma().useCallback(t,e)},Es.useContext=function(t,e){return ma().useContext(t,e)},Es.useDebugValue=function(){},Es.useEffect=function(t,e){return ma().useEffect(t,e)},Es.useImperativeHandle=function(t,e,n){return ma().useImperativeHandle(t,e,n)},Es.useLayoutEffect=function(t,e){return ma().useLayoutEffect(t,e)},Es.useMemo=function(t,e){return ma().useMemo(t,e)},Es.useReducer=function(t,e,n){return ma().useReducer(t,e,n)},Es.useRef=function(t){return ma().useRef(t)},Es.useState=function(t){return ma().useState(t)},Es.version="16.14.0";var ya={},va=Function.call.bind(Object.prototype.hasOwnProperty),ba=function(){};if("production"!==process.env.NODE_ENV){var xa="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",wa={},ka=va;ba=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}}function Sa(t,e,n,r,i){if("production"!==process.env.NODE_ENV)for(var o in t)if(ka(t,o)){var s;try{if("function"!=typeof t[o]){var a=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw a.name="Invariant Violation",a}s=t[o](e,o,r,n,null,xa)}catch(c){s=c}if(!s||s instanceof Error||ba((r||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in wa)){wa[s.message]=!0;var l=i?i():"";ba("Failed "+n+" type: "+s.message+(null!=l?l:""))}}}Sa.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(wa={})};var Ca=Sa;
116
116
  /** @license React v16.14.0
117
117
  * react.development.js
118
118
  *
@@ -120,13 +120,13 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
120
120
  *
121
121
  * This source code is licensed under the MIT license found in the
122
122
  * LICENSE file in the root directory of this source tree.
123
- */"production"!==process.env.NODE_ENV&&function(){var t=Eo,e=_a,n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.concurrent_mode"):60111,u=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119,x="function"==typeof Symbol&&Symbol.iterator;function w(t){if(null===t||"object"!=typeof t)return null;var e=x&&t[x]||t["@@iterator"];return"function"==typeof e?e:null}var k={current:null},_={current:null},S=/^(.*)[\\\/]/;function $(t){if(null==t)return null;if("number"==typeof t.tag&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case s:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return"Context.Consumer";case l:return"Context.Provider";case u:return i=t,y="ForwardRef",v=(h=t.render).displayName||h.name||"",i.displayName||(""!==v?y+"("+v+")":y);case f:return $(t.type);case g:return $(t.render);case m:var e=1===(n=t)._status?n._result:null;if(e)return $(e)}var n,i,h,y,v;return null}var C={},A=null;function P(t){A=t}C.getCurrentStack=null,C.getStackAddendum=function(){var t="";if(A){var e=$(A.type),n=A._owner;t+=function(t,e,n){var i="";if(e){var r=e.fileName,s=r.replace(S,"");if(/^index\./.test(s)){var o=r.match(S);if(o){var a=o[1];a&&(s=a.replace(S,"")+"/"+s)}}i=" (at "+s+":"+e.lineNumber+")"}else n&&(i=" (created by "+n+")");return"\n in "+(t||"Unknown")+i}(e,A._source,n&&$(n.type))}var i=C.getCurrentStack;return i&&(t+=i()||""),t};var T={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:t};function E(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];D("warn",t,n)}function j(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];D("error",t,n)}function D(t,e,n){if(!(n.length>0&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in"))){var i=T.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(e+="%s",n=n.concat([i]))}var r=n.map((function(t){return""+t}));r.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,r);try{var s=0,o="Warning: "+e.replace(/%s/g,(function(){return n[s++]}));throw new Error(o)}catch(a){}}t(T,{ReactDebugCurrentFrame:C,ReactComponentTreeHook:{}});var M={};function F(t,e){var n=t.constructor,i=n&&(n.displayName||n.name)||"ReactClass",r=i+"."+e;M[r]||(j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,i),M[r]=!0)}var I={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){F(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,i){F(t,"replaceState")},enqueueSetState:function(t,e,n,i){F(t,"setState")}},R={};function L(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}Object.freeze(R),L.prototype.isReactComponent={},L.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},L.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var O={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},z=function(t,e){Object.defineProperty(L.prototype,t,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var N in O)O.hasOwnProperty(N)&&z(N,O[N]);function V(){}function q(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}V.prototype=L.prototype;var B=q.prototype=new V;B.constructor=q,t(B,L.prototype),B.isPureReactComponent=!0;var W,U,H,G=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function J(t){if(G.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function K(t){if(G.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}H={};var Y=function(t,e,n,r,s,o,a){var l={$$typeof:i,type:t,key:e,ref:n,props:a,_owner:o,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function X(t,e,n){var i,r={},s=null,o=null,a=null,l=null;if(null!=e)for(i in J(e)&&(o=e.ref,function(t){if("string"==typeof t.ref&&_.current&&t.__self&&_.current.stateNode!==t.__self){var e=$(_.current.type);H[e]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',$(_.current.type),t.ref),H[e]=!0)}}(e)),K(e)&&(s=""+e.key),a=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)G.call(e,i)&&!Q.hasOwnProperty(i)&&(r[i]=e[i]);var c,h,u,p=arguments.length-2;if(1===p)r.children=n;else if(p>1){for(var d=Array(p),f=0;f<p;f++)d[f]=arguments[f+2];Object.freeze&&Object.freeze(d),r.children=d}if(t&&t.defaultProps){var m=t.defaultProps;for(i in m)void 0===r[i]&&(r[i]=m[i])}if(s||o){var g="function"==typeof t?t.displayName||t.name||"Unknown":t;s&&(c=r,h=g,(u=function(){W||(W=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",h))}).isReactWarning=!0,Object.defineProperty(c,"key",{get:u,configurable:!0})),o&&function(t,e){var n=function(){U||(U=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(r,g)}return Y(t,s,o,a,l,_.current,r)}function Z(e,n,i){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,s,o=t({},e.props),a=e.key,l=e.ref,c=e._self,h=e._source,u=e._owner;if(null!=n)for(r in J(n)&&(l=n.ref,u=_.current),K(n)&&(a=""+n.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),n)G.call(n,r)&&!Q.hasOwnProperty(r)&&(void 0===n[r]&&void 0!==s?o[r]=s[r]:o[r]=n[r]);var p=arguments.length-2;if(1===p)o.children=i;else if(p>1){for(var d=Array(p),f=0;f<p;f++)d[f]=arguments[f+2];o.children=d}return Y(e.type,a,l,c,h,u,o)}function tt(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}var et=!1,nt=/\/+/g;function it(t){return(""+t).replace(nt,"$&/")}var rt,st=[];function ot(t,e,n,i){if(st.length){var r=st.pop();return r.result=t,r.keyPrefix=e,r.func=n,r.context=i,r.count=0,r}return{result:t,keyPrefix:e,func:n,context:i,count:0}}function at(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,st.length<10&&st.push(t)}function lt(t,e,n,s){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var a,l=!1;if(null===t)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case r:l=!0}}if(l)return n(s,t,""===e?"."+ht(t,0):e),1;var c=0,h=""===e?".":e+":";if(Array.isArray(t))for(var u=0;u<t.length;u++)c+=lt(a=t[u],h+ht(a,u),n,s);else{var p=w(t);if("function"==typeof p){p===t.entries&&(et||E("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),et=!0);for(var d,f=p.call(t),m=0;!(d=f.next()).done;)c+=lt(a=d.value,h+ht(a,m++),n,s)}else if("object"===o){var g;g=" If you meant to render a collection of children, use an array instead."+C.getStackAddendum();var y=""+t;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y)+")."+g)}}return c}function ct(t,e,n){return null==t?0:lt(t,"",e,n)}function ht(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,i={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return i[t]}))):e.toString(36);var n,i}function ut(t,e,n){var i=t.func,r=t.context;i.call(r,e,t.count++)}function pt(t,e,n){var i,r,s=t.result,o=t.keyPrefix,a=t.func,l=t.context,c=a.call(l,e,t.count++);Array.isArray(c)?dt(c,s,n,(function(t){return t})):null!=c&&(tt(c)&&(i=c,r=o+(!c.key||e&&e.key===c.key?"":it(c.key)+"/")+n,c=Y(i.type,r,i.ref,i._self,i._source,i._owner,i.props)),s.push(c))}function dt(t,e,n,i,r){var s="";null!=n&&(s=it(n)+"/");var o=ot(e,s,i,r);ct(t,pt,o),at(o)}function ft(t){return"string"==typeof t||"function"==typeof t||t===s||t===h||t===a||t===o||t===p||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===l||t.$$typeof===c||t.$$typeof===u||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===g)}function mt(){var t=k.current;if(null===t)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return t}function gt(){if(_.current){var t=$(_.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}rt=!1;var yt={};function vt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=gt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!yt[n]){yt[n]=!0;var i="";t&&t._owner&&t._owner!==_.current&&(i=" It was passed a child from "+$(t._owner.type)+"."),P(t),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,i),P(null)}}}function bt(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var i=t[n];tt(i)&&vt(i,e)}else if(tt(t))t._store&&(t._store.validated=!0);else if(t){var r=w(t);if("function"==typeof r&&r!==t.entries)for(var s,o=r.call(t);!(s=o.next()).done;)tt(s.value)&&vt(s.value,e)}}function xt(t){var n=t.type;if(null!=n&&"string"!=typeof n){var i,r=$(n);if("function"==typeof n)i=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;i=n.propTypes}i?(P(t),e(i,t.props,"prop",r,C.getStackAddendum),P(null)):void 0===n.PropTypes||rt||(rt=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",r||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(t,e,n){var r,o,a=ft(t);if(!a){var l,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(r=e)&&void 0!==(o=r.__source)?"\n\nCheck your code at "+o.fileName.replace(/^.*[\\\/]/,"")+":"+o.lineNumber+".":"")||gt(),null===t?l="null":Array.isArray(t)?l="array":void 0!==t&&t.$$typeof===i?(l="<"+($(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,c)}var h=X.apply(this,arguments);if(null==h)return h;if(a)for(var u=2;u<arguments.length;u++)bt(arguments[u],t);return t===s?function(t){P(t);for(var e=Object.keys(t.props),n=0;n<e.length;n++){var i=e[n];if("children"!==i&&"key"!==i){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i);break}}null!==t.ref&&j("Invalid attribute `ref` supplied to `React.Fragment`."),P(null)}(h):xt(h),h}var kt=!1;try{var _t=Object.freeze({}),St=new Map([[_t,null]]),$t=new Set([_t]);St.set(0,0),$t.add(0)}catch(Pt){}var Ct=wt,At={map:function(t,e,n){if(null==t)return t;var i=[];return dt(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;var i=ot(null,null,e,n);ct(t,ut,i),at(i)},count:function(t){return ct(t,(function(){return null}),null)},toArray:function(t){var e=[];return dt(t,e,null,(function(t){return t})),e},only:function(t){if(!tt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ga.Children=At,ga.Component=L,ga.Fragment=s,ga.Profiler=a,ga.PureComponent=q,ga.StrictMode=o,ga.Suspense=p,ga.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,ga.cloneElement=function(t,e,n){for(var i=Z.apply(this,arguments),r=2;r<arguments.length;r++)bt(arguments[r],i.type);return xt(i),i},ga.createContext=function(t,e){void 0===e?e=null:null!==e&&"function"!=typeof e&&j("createContext: Expected the optional second argument to be a function. Instead received: %s",e);var n={$$typeof:c,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:l,_context:n};var i=!1,r=!1,s={$$typeof:c,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(s,{Provider:{get:function(){return r||(r=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(t){n.Provider=t}},_currentValue:{get:function(){return n._currentValue},set:function(t){n._currentValue=t}},_currentValue2:{get:function(){return n._currentValue2},set:function(t){n._currentValue2=t}},_threadCount:{get:function(){return n._threadCount},set:function(t){n._threadCount=t}},Consumer:{get:function(){return i||(i=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=s,n._currentRenderer=null,n._currentRenderer2=null,n},ga.createElement=Ct,ga.createFactory=function(t){var e=wt.bind(null,t);return e.type=t,kt||(kt=!0,E("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return E("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},ga.createRef=function(){var t={current:null};return Object.seal(t),t},ga.forwardRef=function(t){return null!=t&&t.$$typeof===f?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?j("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:u,render:t}},ga.isValidElement=tt,ga.lazy=function(t){var e,n,i={$$typeof:m,_ctor:t,_status:-1,_result:null};return Object.defineProperties(i,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(i,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(i,"propTypes",{enumerable:!0})}}}),i},ga.memo=function(t,e){return ft(t)||j("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t),{$$typeof:f,type:t,compare:void 0===e?null:e}},ga.useCallback=function(t,e){return mt().useCallback(t,e)},ga.useContext=function(t,e){var n=mt();if(void 0!==e&&j("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",e,"number"==typeof e&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==t._context){var i=t._context;i.Consumer===t?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):i.Provider===t&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(t,e)},ga.useDebugValue=function(t,e){return mt().useDebugValue(t,e)},ga.useEffect=function(t,e){return mt().useEffect(t,e)},ga.useImperativeHandle=function(t,e,n){return mt().useImperativeHandle(t,e,n)},ga.useLayoutEffect=function(t,e){return mt().useLayoutEffect(t,e)},ga.useMemo=function(t,e){return mt().useMemo(t,e)},ga.useReducer=function(t,e,n){return mt().useReducer(t,e,n)},ga.useRef=function(t){return mt().useRef(t)},ga.useState=function(t){return mt().useState(t)},ga.version="16.14.0"}(),"production"===process.env.NODE_ENV?$o.exports=Co:$o.exports=ga;var Sa=$o.exports,$a={sdkSemver:"1.13.0",techVersion:Sa.version,sdkCode:"J"},Ca=function(t){function e(e){var n=t.call(this,e)||this;return n.imageRef=Sa.createRef(),n}return ko(e,t),e.prototype.componentDidMount=function(){this.htmlLayerInstance=new Dr(this.imageRef.current,this.props.cldImg,this.props.plugins,$a)},e.prototype.componentDidUpdate=function(){xo(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$a)},e.prototype.componentWillUnmount=function(){xo(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var t=this.props;t.cldImg,t.plugins;var e=So(t,["cldImg","plugins"]);if(mo())return Sa.createElement("img",_o({suppressHydrationWarning:!0},e,{ref:this.imageRef}));var n=function(t,e,n){var i=Pr(e);if(t)for(var r=0;r<t.length&&t[r](null,i);r++);return i.toURL(n?{trackedAnalytics:n}:null)}(this.props.plugins,this.props.cldImg,$a);return Sa.createElement("img",_o({},e,{src:n}))},e}(Sa.Component),Aa=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(t){function e(e){var n=t.call(this,e)||this;return n.videoRef=$o.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}ko(e,t),e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new uo(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){xo(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){xo(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var t=this,e={};return Aa.forEach((function(n){n in t.props&&(e[n]=t.props[n])})),e},e.prototype.attachRef=function(t){this.videoRef.current=t;var e=this.props.innerRef;e&&(e instanceof Function?e(t):e.current=t)},e.prototype.render=function(){var t=this.props;t.cldVid,t.cldPoster,t.plugins,t.sources,t.innerRef,t.useFetchFormat;var e=So(t,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return Sa.createElement("video",_o({},e,{ref:this.attachRef}))}}($o.exports.Component);const Pa=e.memo((({alt:t="img",height:e="",width:n="",plugins:i=[go(),vo()],publicId:r})=>{const s=kr({publicId:r});return y.jsx(Ca,{alt:t,cldImg:s,height:e,plugins:i,width:n})})),Ta=t.styled.div`
123
+ */"production"!==process.env.NODE_ENV&&function(){var t=js,e=Ca,n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119,x="function"==typeof Symbol&&Symbol.iterator;function w(t){if(null===t||"object"!=typeof t)return null;var e=x&&t[x]||t["@@iterator"];return"function"==typeof e?e:null}var k={current:null},S={current:null},C=/^(.*)[\\\/]/;function _(t){if(null==t)return null;if("number"==typeof t.tag&&j("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case o:return"Fragment";case i:return"Portal";case a:return"Profiler";case s:return"StrictMode";case h:return"Suspense";case d:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case c:return"Context.Consumer";case l:return"Context.Provider";case p:return r=t,y="ForwardRef",v=(u=t.render).displayName||u.name||"",r.displayName||(""!==v?y+"("+v+")":y);case f:return _(t.type);case g:return _(t.render);case m:var e=1===(n=t)._status?n._result:null;if(e)return _(e)}var n,r,u,y,v;return null}var $={},E=null;function P(t){E=t}$.getCurrentStack=null,$.getStackAddendum=function(){var t="";if(E){var e=_(E.type),n=E._owner;t+=function(t,e,n){var r="";if(e){var i=e.fileName,o=i.replace(C,"");if(/^index\./.test(o)){var s=i.match(C);if(s){var a=s[1];a&&(o=a.replace(C,"")+"/"+o)}}r=" (at "+o+":"+e.lineNumber+")"}else n&&(r=" (created by "+n+")");return"\n in "+(t||"Unknown")+r}(e,E._source,n&&_(n.type))}var r=$.getCurrentStack;return r&&(t+=r()||""),t};var T={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:t};function A(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("warn",t,n)}function j(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];O("error",t,n)}function O(t,e,n){if(!(n.length>0&&"string"==typeof n[n.length-1]&&0===n[n.length-1].indexOf("\n in"))){var r=T.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(e+="%s",n=n.concat([r]))}var i=n.map((function(t){return""+t}));i.unshift("Warning: "+e),Function.prototype.apply.call(console[t],console,i);try{var o=0,s="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));throw new Error(s)}catch(a){}}t(T,{ReactDebugCurrentFrame:$,ReactComponentTreeHook:{}});var M={};function D(t,e){var n=t.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+e;M[i]||(j("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",e,r),M[i]=!0)}var I={isMounted:function(t){return!1},enqueueForceUpdate:function(t,e,n){D(t,"forceUpdate")},enqueueReplaceState:function(t,e,n,r){D(t,"replaceState")},enqueueSetState:function(t,e,n,r){D(t,"setState")}},R={};function F(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}Object.freeze(R),F.prototype.isReactComponent={},F.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},F.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};var L={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},N=function(t,e){Object.defineProperty(F.prototype,t,{get:function(){A("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})};for(var z in L)L.hasOwnProperty(z)&&N(z,L[z]);function V(){}function B(t,e,n){this.props=t,this.context=e,this.refs=R,this.updater=n||I}V.prototype=F.prototype;var W=B.prototype=new V;W.constructor=B,t(W,F.prototype),W.isPureReactComponent=!0;var q,U,H,G=Object.prototype.hasOwnProperty,K={key:!0,ref:!0,__self:!0,__source:!0};function Y(t){if(G.call(t,"ref")){var e=Object.getOwnPropertyDescriptor(t,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==t.ref}function J(t){if(G.call(t,"key")){var e=Object.getOwnPropertyDescriptor(t,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==t.key}H={};var X=function(t,e,n,i,o,s,a){var l={$$typeof:r,type:t,key:e,ref:n,props:a,_owner:s,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function Q(t,e,n){var r,i={},o=null,s=null,a=null,l=null;if(null!=e)for(r in Y(e)&&(s=e.ref,function(t){if("string"==typeof t.ref&&S.current&&t.__self&&S.current.stateNode!==t.__self){var e=_(S.current.type);H[e]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://fb.me/react-strict-mode-string-ref',_(S.current.type),t.ref),H[e]=!0)}}(e)),J(e)&&(o=""+e.key),a=void 0===e.__self?null:e.__self,l=void 0===e.__source?null:e.__source,e)G.call(e,r)&&!K.hasOwnProperty(r)&&(i[r]=e[r]);var c,u,p,h=arguments.length-2;if(1===h)i.children=n;else if(h>1){for(var d=Array(h),f=0;f<h;f++)d[f]=arguments[f+2];Object.freeze&&Object.freeze(d),i.children=d}if(t&&t.defaultProps){var m=t.defaultProps;for(r in m)void 0===i[r]&&(i[r]=m[r])}if(o||s){var g="function"==typeof t?t.displayName||t.name||"Unknown":t;o&&(c=i,u=g,(p=function(){q||(q=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",u))}).isReactWarning=!0,Object.defineProperty(c,"key",{get:p,configurable:!0})),s&&function(t,e){var n=function(){U||(U=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",e))};n.isReactWarning=!0,Object.defineProperty(t,"ref",{get:n,configurable:!0})}(i,g)}return X(t,o,s,a,l,S.current,i)}function Z(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i,o,s=t({},e.props),a=e.key,l=e.ref,c=e._self,u=e._source,p=e._owner;if(null!=n)for(i in Y(n)&&(l=n.ref,p=S.current),J(n)&&(a=""+n.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),n)G.call(n,i)&&!K.hasOwnProperty(i)&&(void 0===n[i]&&void 0!==o?s[i]=o[i]:s[i]=n[i]);var h=arguments.length-2;if(1===h)s.children=r;else if(h>1){for(var d=Array(h),f=0;f<h;f++)d[f]=arguments[f+2];s.children=d}return X(e.type,a,l,c,u,p,s)}function tt(t){return"object"==typeof t&&null!==t&&t.$$typeof===r}var et=!1,nt=/\/+/g;function rt(t){return(""+t).replace(nt,"$&/")}var it,ot=[];function st(t,e,n,r){if(ot.length){var i=ot.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function at(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,ot.length<10&&ot.push(t)}function lt(t,e,n,o){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var a,l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case r:case i:l=!0}}if(l)return n(o,t,""===e?"."+ut(t,0):e),1;var c=0,u=""===e?".":e+":";if(Array.isArray(t))for(var p=0;p<t.length;p++)c+=lt(a=t[p],u+ut(a,p),n,o);else{var h=w(t);if("function"==typeof h){h===t.entries&&(et||A("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead."),et=!0);for(var d,f=h.call(t),m=0;!(d=f.next()).done;)c+=lt(a=d.value,u+ut(a,m++),n,o)}else if("object"===s){var g;g=" If you meant to render a collection of children, use an array instead."+$.getStackAddendum();var y=""+t;throw Error("Objects are not valid as a React child (found: "+("[object Object]"===y?"object with keys {"+Object.keys(t).join(", ")+"}":y)+")."+g)}}return c}function ct(t,e,n){return null==t?0:lt(t,"",e,n)}function ut(t,e){return"object"==typeof t&&null!==t&&null!=t.key?(n=t.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(t){return r[t]}))):e.toString(36);var n,r}function pt(t,e,n){var r=t.func,i=t.context;r.call(i,e,t.count++)}function ht(t,e,n){var r,i,o=t.result,s=t.keyPrefix,a=t.func,l=t.context,c=a.call(l,e,t.count++);Array.isArray(c)?dt(c,o,n,(function(t){return t})):null!=c&&(tt(c)&&(r=c,i=s+(!c.key||e&&e.key===c.key?"":rt(c.key)+"/")+n,c=X(r.type,i,r.ref,r._self,r._source,r._owner,r.props)),o.push(c))}function dt(t,e,n,r,i){var o="";null!=n&&(o=rt(n)+"/");var s=st(e,o,r,i);ct(t,ht,s),at(s)}function ft(t){return"string"==typeof t||"function"==typeof t||t===o||t===u||t===a||t===s||t===h||t===d||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===f||t.$$typeof===l||t.$$typeof===c||t.$$typeof===p||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===g)}function mt(){var t=k.current;if(null===t)throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");return t}function gt(){if(S.current){var t=_(S.current.type);if(t)return"\n\nCheck the render method of `"+t+"`."}return""}it=!1;var yt={};function vt(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var n=function(t){var e=gt();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!yt[n]){yt[n]=!0;var r="";t&&t._owner&&t._owner!==S.current&&(r=" It was passed a child from "+_(t._owner.type)+"."),P(t),j('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.',n,r),P(null)}}}function bt(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];tt(r)&&vt(r,e)}else if(tt(t))t._store&&(t._store.validated=!0);else if(t){var i=w(t);if("function"==typeof i&&i!==t.entries)for(var o,s=i.call(t);!(o=s.next()).done;)tt(o.value)&&vt(o.value,e)}}function xt(t){var n=t.type;if(null!=n&&"string"!=typeof n){var r,i=_(n);if("function"==typeof n)r=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==p&&n.$$typeof!==f)return;r=n.propTypes}r?(P(t),e(r,t.props,"prop",i,$.getStackAddendum),P(null)):void 0===n.PropTypes||it||(it=!0,j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")),"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(t,e,n){var i,s,a=ft(t);if(!a){var l,c="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),c+=(null!=(i=e)&&void 0!==(s=i.__source)?"\n\nCheck your code at "+s.fileName.replace(/^.*[\\\/]/,"")+":"+s.lineNumber+".":"")||gt(),null===t?l="null":Array.isArray(t)?l="array":void 0!==t&&t.$$typeof===r?(l="<"+(_(t.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):l=typeof t,j("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,c)}var u=Q.apply(this,arguments);if(null==u)return u;if(a)for(var p=2;p<arguments.length;p++)bt(arguments[p],t);return t===o?function(t){P(t);for(var e=Object.keys(t.props),n=0;n<e.length;n++){var r=e[n];if("children"!==r&&"key"!==r){j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r);break}}null!==t.ref&&j("Invalid attribute `ref` supplied to `React.Fragment`."),P(null)}(u):xt(u),u}var kt=!1;try{var St=Object.freeze({}),Ct=new Map([[St,null]]),_t=new Set([St]);Ct.set(0,0),_t.add(0)}catch(Pt){}var $t=wt,Et={map:function(t,e,n){if(null==t)return t;var r=[];return dt(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;var r=st(null,null,e,n);ct(t,pt,r),at(r)},count:function(t){return ct(t,(function(){return null}),null)},toArray:function(t){var e=[];return dt(t,e,null,(function(t){return t})),e},only:function(t){if(!tt(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};ya.Children=Et,ya.Component=F,ya.Fragment=o,ya.Profiler=a,ya.PureComponent=B,ya.StrictMode=s,ya.Suspense=h,ya.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,ya.cloneElement=function(t,e,n){for(var r=Z.apply(this,arguments),i=2;i<arguments.length;i++)bt(arguments[i],r.type);return xt(r),r},ya.createContext=function(t,e){void 0===e?e=null:null!==e&&"function"!=typeof e&&j("createContext: Expected the optional second argument to be a function. Instead received: %s",e);var n={$$typeof:c,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null};n.Provider={$$typeof:l,_context:n};var r=!1,i=!1,o={$$typeof:c,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(o,{Provider:{get:function(){return i||(i=!0,j("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(t){n.Provider=t}},_currentValue:{get:function(){return n._currentValue},set:function(t){n._currentValue=t}},_currentValue2:{get:function(){return n._currentValue2},set:function(t){n._currentValue2=t}},_threadCount:{get:function(){return n._threadCount},set:function(t){n._threadCount=t}},Consumer:{get:function(){return r||(r=!0,j("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}}}),n.Consumer=o,n._currentRenderer=null,n._currentRenderer2=null,n},ya.createElement=$t,ya.createFactory=function(t){var e=wt.bind(null,t);return e.type=t,kt||(kt=!0,A("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(e,"type",{enumerable:!1,get:function(){return A("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:t}),t}}),e},ya.createRef=function(){var t={current:null};return Object.seal(t),t},ya.forwardRef=function(t){return null!=t&&t.$$typeof===f?j("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?j("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&j("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||j("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?")),{$$typeof:p,render:t}},ya.isValidElement=tt,ya.lazy=function(t){var e,n,r={$$typeof:m,_ctor:t,_status:-1,_result:null};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return e},set:function(t){j("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),e=t,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(t){j("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),n=t,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},ya.memo=function(t,e){return ft(t)||j("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t),{$$typeof:f,type:t,compare:void 0===e?null:e}},ya.useCallback=function(t,e){return mt().useCallback(t,e)},ya.useContext=function(t,e){var n=mt();if(void 0!==e&&j("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",e,"number"==typeof e&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://fb.me/rules-of-hooks":""),void 0!==t._context){var r=t._context;r.Consumer===t?j("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===t&&j("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return n.useContext(t,e)},ya.useDebugValue=function(t,e){return mt().useDebugValue(t,e)},ya.useEffect=function(t,e){return mt().useEffect(t,e)},ya.useImperativeHandle=function(t,e,n){return mt().useImperativeHandle(t,e,n)},ya.useLayoutEffect=function(t,e){return mt().useLayoutEffect(t,e)},ya.useMemo=function(t,e){return mt().useMemo(t,e)},ya.useReducer=function(t,e,n){return mt().useReducer(t,e,n)},ya.useRef=function(t){return mt().useRef(t)},ya.useState=function(t){return mt().useState(t)},ya.version="16.14.0"}(),"production"===process.env.NODE_ENV?$s.exports=Es:$s.exports=ya;var _a=$s.exports,$a={sdkSemver:"1.13.0",techVersion:_a.version,sdkCode:"J"},Ea=function(t){function e(e){var n=t.call(this,e)||this;return n.imageRef=_a.createRef(),n}return Ss(e,t),e.prototype.componentDidMount=function(){this.htmlLayerInstance=new Mi(this.imageRef.current,this.props.cldImg,this.props.plugins,$a)},e.prototype.componentDidUpdate=function(){ws(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,$a)},e.prototype.componentWillUnmount=function(){ws(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},e.prototype.render=function(){var t=this.props;t.cldImg,t.plugins;var e=_s(t,["cldImg","plugins"]);if(gs())return _a.createElement("img",Cs({suppressHydrationWarning:!0},e,{ref:this.imageRef}));var n=function(t,e,n){var r=Ti(e);if(t)for(var i=0;i<t.length&&t[i](null,r);i++);return r.toURL(n?{trackedAnalytics:n}:null)}(this.props.plugins,this.props.cldImg,$a);return _a.createElement("img",Cs({},e,{src:n}))},e}(_a.Component),Pa=["controls","loop","muted","poster","preload","autoplay","playsinline"];!function(t){function e(e){var n=t.call(this,e)||this;return n.videoRef=$s.exports.createRef(),n.attachRef=n.attachRef.bind(n),n}Ss(e,t),e.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new ds(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},e.prototype.componentDidUpdate=function(){ws(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},e.prototype.componentWillUnmount=function(){ws(this.htmlVideoLayerInstance.htmlPluginState)},e.prototype.getVideoAttributes=function(){var t=this,e={};return Pa.forEach((function(n){n in t.props&&(e[n]=t.props[n])})),e},e.prototype.attachRef=function(t){this.videoRef.current=t;var e=this.props.innerRef;e&&(e instanceof Function?e(t):e.current=t)},e.prototype.render=function(){var t=this.props;t.cldVid,t.cldPoster,t.plugins,t.sources,t.innerRef,t.useFetchFormat;var e=_s(t,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return _a.createElement("video",Cs({},e,{ref:this.attachRef}))}}($s.exports.Component);const Ta=e.memo((({alt:t="img",height:e="",width:n="",plugins:r=[ys(),bs()],publicId:i})=>{const o=ki({publicId:i});return y.jsx(Ea,{alt:t,cldImg:o,height:e,plugins:r,width:n})})),Aa=t.styled.div`
124
124
  ${({theme:t})=>`\n background-color: ${t.palette.gray[100]};\n border-radius: ${t.spacing[.25]};\n display: inline-flex;\n padding: ${t.spacing[1]};\n position: relative;\n width: fit-content;\n\n .line-highlight.language-none {\n background: ${t.palette.gray[100]};\n }\n\n .line-highlight {\n background: hsl(354deg 88% 93% / 50%);\n font-family: ${t.typography.type.mono};\n font-size: ${t.typography.text.xs};\n line-height: ${t.spacing[1]};\n }\n\n .line-highlight::before,\n .line-highlight[data-end]::after {\n background: ${t.palette.primary[300]};\n background-color: hsl(355deg 89% 36%);\n color: ${t.palette.white};\n }\n\n pre code {\n color: #161616;\n font-family: ${t.typography.type.mono};\n font-size: ${t.typography.text.xs};\n line-height: ${t.spacing[1]};\n }\n\n pre:not(.line-highlight) {\n margin-top: unset;\n margin-bottom: unset;\n padding: unset;\n width: 100%;\n }\n\n span:hover {\n background-color: ${t.palette.gray[200]};\n }\n\n .no-data,\n pre.line-highlight {\n background-color: ${t.palette.gray[100]};\n padding-top: unset;\n padding-bottom: unset;\n }\n `}
125
- `,Ea=t.styled.div`
125
+ `,ja=t.styled.div`
126
126
  ${({theme:t})=>`\n align-items: end;\n background-color: ${t.palette.gray[100]};\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n min-width: 103px;\n margin-right: ${t.spacing[1]};\n padding-top: ${t.spacing[1]};\n padding-bottom: ${t.spacing[1]};\n position: relative;\n padding-left: unset;\n\n button:hover:not([disabled]) {\n background-color: ${t.palette.gray[200]};\n }\n `}
127
- `,ja=({tag:e,tagPosition:n})=>{const i=t.useTheme();return e?y.jsx(M,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:"top"===n?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:"top"===n?"absolute":"relative",top:"0",width:"max-content",children:y.jsx(L,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Da=({eventDate:e})=>{const n=t.useTheme(),i=ri(e)?null:null==e?void 0:e.split("-");if(i){const[t,e]=i;return y.jsxs(M,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[y.jsx(R,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t}),y.jsx(L,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e.toUpperCase()})]})}return null},Ma=t.div`
127
+ `,Oa=({tag:e,tagPosition:n})=>{const r=t.useTheme();return e?y.jsx(M,{alignItems:"center",bgColor:r.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:"top"===n?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:"top"===n?"absolute":"relative",top:"0",width:"max-content",children:y.jsx(F,{color:r.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Ma=({eventDate:e})=>{const n=t.useTheme(),r=ir(e)?null:null==e?void 0:e.split("-");if(r){const[t,e]=r;return y.jsxs(M,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[y.jsx(R,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:t}),y.jsx(F,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e.toUpperCase()})]})}return null},Da=t.div`
128
128
  ${({theme:t})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n width: 384px;\n\n img {\n height: 100%;\n width: 100%;\n }\n\n #card-image {\n border-radius: ${t.spacing[1]};\n height: 240px;\n overflow: hidden;\n }\n\n &:hover {\n img {\n transform: scale(1.2);\n }\n\n > #card-content {\n > .title-dark {\n color: ${t.palette.gray[400]};\n }\n > .title-light {\n background: ${t.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n\n #card-image {\n height: 200px;\n }\n }\n `}
129
- `,Fa=({author:e,buttonText:n,description:i,eventDate:r,href:s,imageId:o,mode:a="light",publishDate:l,readingTime:c,tag:h,tagPosition:u="top",title:p})=>{const d=t.useTheme(),f=null==l?void 0:l.split("-"),m="dark"===a,g=y.jsxs(Ma,{"data-testid":`content-card-${p}`,children:[o||r||h&&"top"===u?y.jsxs(M,{id:"card-image",position:"relative",children:[o&&y.jsx(Pa,{publicId:o}),"top"===u&&y.jsx(ja,{tag:h,tagPosition:u}),y.jsx(Da,{eventDate:r})]}):void 0,y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:["bottom"===u&&y.jsx(ja,{tag:h,tagPosition:u}),e||f||c?y.jsxs(M,{display:"flex",justify:"space-between",width:"100%",children:[e&&f&&y.jsx(L,{color:d.palette.gray[m?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${f[0]} ${f[1]}, ${f[2]}`}),c&&y.jsxs(M,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[y.jsx(V,{icon:"eye",iconColor:d.palette.gray[m?300:400],iconSize:"xs",iconType:"fa-light"}),y.jsx(L,{color:d.palette.gray[m?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:c})]})]}):void 0,y.jsx(R,{className:`title-${a}`,color:m?d.palette.white:d.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:p}),i&&y.jsx(L,{color:d.palette.gray[m?100:600],size:"md",sizeSm:"sm",children:i}),n&&s&&y.jsx(Di,{href:s,mode:a,variant:"link",children:n})]})]});return s?y.jsx("a",{className:"flex w-fit",href:s,rel:"noopener noreferrer",target:"_self",children:g}):g},Ia=t.styled.button`
129
+ `,Ia=({author:e,buttonText:n,description:r,eventDate:i,href:o,imageId:s,mode:a="light",publishDate:l,readingTime:c,tag:u,tagPosition:p="top",title:h})=>{const d=t.useTheme(),f=null==l?void 0:l.split("-"),m="dark"===a,g=y.jsxs(Da,{"data-testid":`content-card-${h}`,children:[s||i||u&&"top"===p?y.jsxs(M,{id:"card-image",position:"relative",children:[s&&y.jsx(Ta,{publicId:s}),"top"===p&&y.jsx(Oa,{tag:u,tagPosition:p}),y.jsx(Ma,{eventDate:i})]}):void 0,y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:["bottom"===p&&y.jsx(Oa,{tag:u,tagPosition:p}),e||f||c?y.jsxs(M,{display:"flex",justify:"space-between",width:"100%",children:[e&&f&&y.jsx(F,{color:d.palette.gray[m?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${f[0]} ${f[1]}, ${f[2]}`}),c&&y.jsxs(M,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[y.jsx(V,{icon:"eye",iconColor:d.palette.gray[m?300:400],iconSize:"xs",iconType:"fa-light"}),y.jsx(F,{color:d.palette.gray[m?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:c})]})]}):void 0,y.jsx(R,{className:`title-${a}`,color:m?d.palette.white:d.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:h}),r&&y.jsx(F,{color:d.palette.gray[m?100:600],size:"md",sizeSm:"sm",children:r}),n&&o&&y.jsx(Or,{href:o,variant:"link",children:n})]})]});return o?y.jsx("a",{className:"flex w-fit",href:o,rel:"noopener noreferrer",target:"_self",children:g}):g},Ra=t.styled.button`
130
130
  display: flex;
131
131
  position: relative;
132
132
  height: 32px;
@@ -149,9 +149,9 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
149
149
  display: none;
150
150
  }
151
151
  }
152
- `,Ra=t.styled.div`
152
+ `,Fa=t.styled.div`
153
153
  ${({theme:t})=>`\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[2.5]};\n overflow: hidden;\n min-height: 589px;\n max-width: 1316px;\n\n span {\n background: ${t.palette.gradients["01"]};\n background-clip: text;\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n }\n\n #mobile {\n display: none;\n }\n\n #carousel {\n scrollbar-width: none;\n\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n align-items: center;\n height: auto;\n max-width: 340px;\n\n #desktop {\n display: none;\n }\n #mobile {\n display: flex;\n }\n }\n `}
154
- `,La=({containerRef:n,id:i})=>{const r=t.useTheme(),s="desktop"===i?380:342,o=e.useCallback((t=>()=>{if(null==n?void 0:n.current){const{current:e}=n;e.scrollBy({left:"right"===t?s:-s,behavior:"smooth"})}}),[n,s]),a=e.useCallback((t=>y.jsxs(Ia,{onClick:o(t),children:[y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"hovered",iconColor:r.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"uncover",iconColor:r.palette.gray[800],iconSize:"md",iconType:"fa-light"})]})),[o,r]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:1,id:i,width:"max-content",children:[a("left"),a("right")]})},Oa=e.forwardRef((function({color:t=v.palette.gray[100],mt:e=.5,mb:n=.5,...i},r){return y.jsx(M,{as:"hr",borderTop:`1px solid ${t}`,mb:n,mt:e,ref:r,...i})})),za=t.styled(M).attrs((({...t})=>({display:"inline-block",position:"relative",...t})))`
154
+ `,La=({containerRef:n,id:r})=>{const i=t.useTheme(),o="desktop"===r?380:342,s=e.useCallback((t=>()=>{if(null==n?void 0:n.current){const{current:e}=n;e.scrollBy({left:"right"===t?o:-o,behavior:"smooth"})}}),[n,o]),a=e.useCallback((t=>y.jsxs(Ra,{onClick:s(t),children:[y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),y.jsx(V,{clickable:!0,icon:`circle-arrow-${t}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]})),[s,i]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:1,id:r,width:"max-content",children:[a("left"),a("right")]})},Na=e.forwardRef((function({color:t=v.palette.gray[100],mt:e=.5,mb:n=.5,...r},i){return y.jsx(M,{as:"hr",border:`1px solid ${t}`,mb:n,mt:e,ref:i,...r})})),za=t.styled(M).attrs((({...t})=>({display:"inline-block",position:"relative",...t})))`
155
155
  & img {
156
156
  display: block;
157
157
  }
@@ -166,15 +166,15 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
166
166
  pointer-events: none;
167
167
  ${({$opacity:t=0})=>`background-color: rgba(0, 0, 0, ${t});`}
168
168
  }
169
- `,{getVariant:Na}=l((t=>({highRelevance:`\n color: ${t.palette.primary[500]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.primary[400]};\n }\n `,lowRelevance:`\n color: ${t.palette.gray[800]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.gray[500]};\n }\n `}))),Va=t.css`
170
- ${({theme:t,$color:e,$variant:n})=>`\n align-items: center;\n cursor: pointer;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.25]};\n line-height: ${t.spacing[1.25]};\n text-decoration: underline;\n word-break: break-word;\n word-wrap: break-word;\n\n &:disabled {\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:has(button) {\n text-decoration: none;\n }\n\n ${e??Na(t,n)}\n `}
171
- `,qa=t.styled.a`
172
- ${Va}
173
- `,Ba=t.styled(r.Link)`
174
- ${Va}
175
- `,Wa=({children:t,color:e,download:n,href:i,iconPosition:r="right",onClick:s,target:o,variant:a="lowRelevance"})=>{const l=i.startsWith("https://"),c=y.jsx(V,{icon:void 0===n?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return l?y.jsxs(qa,{$color:e,$variant:a,download:n,href:i,onClick:s,rel:"nofollow noopener noreferrer",target:o??"_blank",children:["left"===r?c:void 0,t,"right"===r?c:void 0]}):y.jsxs(Ba,{$variant:a,download:n,onClick:s,rel:"nofollow noopener noreferrer",target:o,to:i,children:[void 0!==o&&"left"===r?c:void 0,t,void 0!==o&&"right"===r?c:void 0]})},Ua=t.styled.form`
169
+ `,{getVariant:Va}=l((t=>({highRelevance:`\n color: ${t.palette.primary[500]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.primary[400]};\n }\n `,lowRelevance:`\n color: ${t.palette.gray[800]};\n\n &:hover:not([disabled]) {\n color: ${t.palette.gray[500]};\n }\n `}))),Ba=t.css`
170
+ ${({theme:t,$color:e,$variant:n})=>`\n align-items: center;\n cursor: pointer;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.25]};\n line-height: ${t.spacing[1.25]};\n text-decoration: underline;\n word-break: break-word;\n word-wrap: break-word;\n\n &:disabled {\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:has(button) {\n text-decoration: none;\n }\n\n ${e??Va(t,n)}\n `}
171
+ `,Wa=t.styled.a`
172
+ ${Ba}
173
+ `,qa=t.styled(i.Link)`
174
+ ${Ba}
175
+ `,Ua=({children:t,color:e,download:n,href:r,iconPosition:i="right",onClick:o,target:s,variant:a="lowRelevance"})=>{const l=r.startsWith("https://"),c=y.jsx(V,{icon:void 0===n?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return l?y.jsxs(Wa,{$color:e,$variant:a,download:n,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:s??"_blank",children:["left"===i?c:void 0,t,"right"===i?c:void 0]}):y.jsxs(qa,{$variant:a,download:n,onClick:o,rel:"nofollow noopener noreferrer",target:s,to:r,children:[void 0!==s&&"left"===i?c:void 0,t,void 0!==s&&"right"===i?c:void 0]})},Ha=t.styled.form`
176
176
  ${({theme:t})=>`\n align-items: center;\n background: ${t.palette.gray[50]};\n backdrop-filter: blur(11px);\n border-radius: ${t.spacing[1]};\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: ${t.spacing[3]} ${t.spacing[2]};\n width: 628px;\n\n &::before {\n background: ${t.palette.gradients["02"]} border-box;\n border-radius: ${t.spacing[1]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n }\n `}
177
- `,Ha=t.styled.div`
177
+ `,Ga=t.styled.div`
178
178
  align-items: flex-start;
179
179
  align-self: stretch;
180
180
  display: flex;
@@ -188,30 +188,30 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
188
188
  text-align: center;
189
189
  }
190
190
  }
191
- `,Ga=t.styled.div`
191
+ `,Ka=t.styled.div`
192
192
  ${({theme:t})=>`\n align-items: flex-start;\n align-self: stretch;\n container-type: inline-size;\n display: flex;\n flex-direction: row;\n gap: ${t.spacing[1]};\n position: relative;\n\n &:has(> :nth-child(2)) {\n > div {\n display: flex;\n width: 50%;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n flex-direction: column;\n }\n `}
193
- `;var Qa=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Ja=(...t)=>t.filter((t=>!!t)).join(" ").trim(),Ka=({addPrefix:t,rawClassNames:e})=>Ja(((...t)=>Ja(...t).split(" ").map((t=>`react-international-phone-${t}`)).join(" "))(...t),...e),Ya=t=>!!t&&/^\d+$/.test(t),Xa=t=>t.replace(/\D/g,""),Za=({phone:t,prefix:e})=>t?`${e}${Xa(t)}`:"";function tl({value:t,country:e,insertDialCodeOnEmpty:n,trimNonDigitsEnd:i,countries:r,prefix:s,charAfterDialCode:o,forceDialCode:a,disableDialCodeAndPrefix:l,defaultMask:c,countryGuessingEnabled:h,disableFormatting:u}){let p=t;l&&(p=p.startsWith(`${s}`)?p:`${s}${e.dialCode}${p}`);let d=h?ll({phone:p,countries:r,currentCountryIso2:null==e?void 0:e.iso2}):void 0,f=(null==d?void 0:d.country)??e,m=((t,e)=>{let n=!e.disableDialCodeAndPrefix&&e.forceDialCode,i=!e.disableDialCodeAndPrefix&&e.insertDialCodeOnEmpty,r=t,s=t=>e.trimNonDigitsEnd?t.trim():t;if(!r)return i&&!r.length||n?s(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`):s(r);if(r=Xa(r),r===e.dialCode&&!e.disableDialCodeAndPrefix)return s(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(e.dialCode.startsWith(r)&&!e.disableDialCodeAndPrefix)return s(n?`${e.prefix}${e.dialCode}${e.charAfterDialCode}`:`${e.prefix}${r}`);if(!r.startsWith(e.dialCode)&&!e.disableDialCodeAndPrefix){if(n)return s(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(r.length<e.dialCode.length)return s(`${e.prefix}${r}`)}let{phoneLeftSide:o,phoneRightSide:a}=(()=>{let t=e.dialCode.length;return{phoneLeftSide:r.slice(0,t),phoneRightSide:r.slice(t)}})();return o=`${e.prefix}${o}${e.charAfterDialCode}`,a=(({value:t,mask:e,maskSymbol:n,offset:i=0,trimNonMaskCharsLeftover:r=!1})=>{if(t.length<i)return t;let s=t.slice(0,i),o=t.slice(i),a=s,l=0;for(let c of e.split("")){if(l>=o.length){if(!r&&c!==n){a+=c;continue}break}c===n?(a+=o[l],l+=1):a+=c}return a})({value:a,mask:e.mask,maskSymbol:e.maskChar,trimNonMaskCharsLeftover:e.trimNonDigitsEnd||e.disableDialCodeAndPrefix&&0===a.length}),e.disableDialCodeAndPrefix&&(o=""),s(`${o}${a}`)})(p,{prefix:s,mask:sl({phone:p,country:f,defaultMask:c,disableFormatting:u}),maskChar:nl,dialCode:f.dialCode,trimNonDigitsEnd:i,charAfterDialCode:o,forceDialCode:a,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),g=h&&!(null==d?void 0:d.fullDialCodeMatch)?e:f;return{phone:Za({phone:l?`${g.dialCode}${m}`:m,prefix:s}),inputValue:m,country:g}}var el={size:20,overrideLastItemDebounceMS:-1};var nl=".",il=Qa,rl=({defaultCountry:t="us",value:n="",countries:i=il,prefix:r="+",defaultMask:s="............",charAfterDialCode:o=" ",historySaveDebounceMS:a=200,disableCountryGuess:l=false,disableDialCodePrefill:c=false,forceDialCode:h=false,disableDialCodeAndPrefix:u=false,disableFormatting:p=false,onChange:d,inputRef:f})=>{let m={countries:i,prefix:r,charAfterDialCode:o,forceDialCode:!u&&h,disableDialCodeAndPrefix:u,defaultMask:s,countryGuessingEnabled:!l,disableFormatting:p},g=e.useRef(null),y=f||g,v=t=>{Promise.resolve().then((()=>{var e;typeof window>"u"||y.current!==(null==document?void 0:document.activeElement)||null==(e=y.current)||e.setSelectionRange(t,t)}))},[{phone:b,inputValue:x,country:w},k,_,S]=function(t,n){let{size:i,overrideLastItemDebounceMS:r,onChange:s}={...el,...n},[o,a]=e.useState(t),[l,c]=e.useState([o]),[h,u]=e.useState(0),p=(()=>{let t=e.useRef(),n=e.useRef(Date.now());return{check:()=>{let e=Date.now(),i=t.current?e-n.current:void 0;return t.current=n.current,n.current=e,i}}})();return[o,(t,e)=>{if("object"==typeof t&&"object"==typeof o&&((t,e)=>{let n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0})(t,o)||t===o)return;let n=r>0,d=p.check(),f=!n||void 0===d||d>r;if(void 0!==(null==e?void 0:e.overrideLastItem)?e.overrideLastItem:!f)c((e=>[...e.slice(0,h),t]));else{let e=l.length>=i;c((n=>[...n.slice(e?1:0,h+1),t])),e||u((t=>t+1))}a(t),null==s||s(t)},()=>{if(h<=0)return{success:!1};let t=l[h-1];return a(t),u((t=>t-1)),null==s||s(t),{success:!0,value:t}},()=>{if(h+1>=l.length)return{success:!1};let t=l[h+1];return a(t),u((t=>t+1)),null==s||s(t),{success:!0,value:t}}]}((()=>{let e=al({value:t,field:"iso2",countries:i}),r=e||al({value:"us",field:"iso2",countries:i}),{phone:s,inputValue:o,country:a}=tl({value:n,country:r,insertDialCodeOnEmpty:!c,...m});return v(o.length),{phone:s,inputValue:o,country:a.iso2}}),{overrideLastItemDebounceMS:a,onChange:({inputValue:t,phone:e,country:n})=>{if(!d)return;let i=$(n);d({phone:e,inputValue:t,country:i})}}),$=e.useCallback((t=>al({value:t,field:"iso2",countries:i})),[i]),C=e.useMemo((()=>$(w)),[w,$]);e.useEffect((()=>{let t=y.current;if(!t)return;let e=t=>{if(!t.key)return;let e=t.ctrlKey,n=t.metaKey,i=t.shiftKey;if("z"===t.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!e)return}else if(!n)return;i?S():_()}};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[y,_,S]);let[A,P]=e.useState(!1);return e.useEffect((()=>{if(!A)return P(!0),void(n!==b&&(null==d||d({inputValue:x,phone:b,country:C})));if(n===b)return;let{phone:t,inputValue:e,country:i}=tl({value:n,country:C,insertDialCodeOnEmpty:!c,...m});k({phone:t,inputValue:e,country:i.iso2})}),[n]),{phone:b,inputValue:x,country:C,setCountry:(t,e={focusOnInput:!1})=>{let n=al({value:t,field:"iso2",countries:i});if(!n)return;let s=u?"":`${r}${n.dialCode}${o}`;k({inputValue:s,phone:`${r}${n.dialCode}`,country:n.iso2}),e.focusOnInput&&Promise.resolve().then((()=>{var t;null==(t=y.current)||t.focus()}))},handlePhoneValueChange:t=>{t.preventDefault();let{phone:e,inputValue:i,country:r,cursorPosition:s}=((t,{country:e,insertDialCodeOnEmpty:n,phoneBeforeInput:i,prefix:r,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:a,countryGuessingEnabled:l,defaultMask:c,disableFormatting:h,countries:u})=>{let p=t.nativeEvent,d=p.inputType,f=(t=>{if(null==t?void 0:t.toLocaleLowerCase().includes("delete"))return(null==t?void 0:t.toLocaleLowerCase().includes("forward"))?"forward":"backward"})(d),m=!!(null==d?void 0:d.startsWith("insertFrom")),g="insertText"===d,y=(null==p?void 0:p.data)||void 0,v=t.target.value,b=t.target.selectionStart??0;if(null==d?void 0:d.includes("history"))return{inputValue:i,phone:Za({phone:i,prefix:r}),cursorPosition:i.length,country:e};if(g&&!Ya(y)&&v!==r)return{inputValue:i,phone:Za({phone:a?`${e.dialCode}${i}`:i,prefix:r}),cursorPosition:b-((null==y?void 0:y.length)??0),country:e};if(o&&!v.startsWith(`${r}${e.dialCode}`)&&!m){let t=v?i:`${r}${e.dialCode}${s}`;return{inputValue:t,phone:Za({phone:t,prefix:r}),cursorPosition:r.length+e.dialCode.length+s.length,country:e}}let{phone:x,inputValue:w,country:k}=tl({value:v,country:e,trimNonDigitsEnd:"backward"===f,insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:u,prefix:r,charAfterDialCode:s,forceDialCode:o,disableDialCodeAndPrefix:a,disableFormatting:h,defaultMask:c});return{phone:x,inputValue:w,cursorPosition:(({phoneBeforeInput:t,phoneAfterInput:e,phoneAfterFormatted:n,cursorPositionAfterInput:i,leftOffset:r=0,deletion:s})=>{if(i<r)return r;if(!t)return n.length;let o=null;for(let h=i-1;h>=0;h-=1)if(Ya(e[h])){o=h;break}if(null===o){for(let t=0;t<e.length;t+=1)if(Ya(n[t]))return t;return e.length}let a=0;for(let h=0;h<o;h+=1)Ya(e[h])&&(a+=1);let l=0,c=0;for(let h=0;h<n.length&&(l+=1,Ya(n[h])&&(c+=1),!(c>=a+1));h+=1);if("backward"!==s)for(;!Ya(n[l])&&l<n.length;)l+=1;return l})({cursorPositionAfterInput:b,phoneBeforeInput:i,phoneAfterInput:v,phoneAfterFormatted:w,leftOffset:o?r.length+e.dialCode.length+s.length:0,deletion:f}),country:k}})(t,{country:C,phoneBeforeInput:x,insertDialCodeOnEmpty:!1,...m});return k({inputValue:i,phone:e,country:r.iso2}),v(s),n},inputRef:y}},sl=({phone:t,country:e,defaultMask:n="............",disableFormatting:i=!1})=>{let r=e.format,s=t=>i?t.replace(new RegExp(`[^${nl}]`,"g"),""):t;if(!r)return s(n);if("string"==typeof r)return s(r);if(!r.default)return s(n);let o=Object.keys(r).find((n=>{if("default"===n)return!1;if("/"!==n.charAt(0)||"/"!==n.charAt(n.length-1))return!1;let i=new RegExp(n.substring(1,n.length-1)),r=t.replace(e.dialCode,"");return i.test(Xa(r))}));return s(o?r[o]:r.default)},ol=t=>{let[e,n,i,r,s,o]=t;return{name:e,iso2:n,dialCode:i,format:r,priority:s,areaCodes:o}},al=({field:t,value:e,countries:n=Qa})=>{if(["priority"].includes(t))throw new Error(`Field "${t}" is not supported`);let i=n.find((n=>{let i=ol(n);return e===i[t]}));if(i)return ol(i)},ll=({phone:t,countries:e=Qa,currentCountryIso2:n})=>{var i;let r={country:void 0,fullDialCodeMatch:!1};if(!t)return r;let s=Xa(t);if(!s)return r;let o=r,a=({country:t,fullDialCodeMatch:e})=>{var n,i;let r=t.dialCode===(null==(n=o.country)?void 0:n.dialCode),s=(t.priority??0)<((null==(i=o.country)?void 0:i.priority)??0);(!r||s)&&(o={country:t,fullDialCodeMatch:e})};for(let l of e){let t=ol(l),{dialCode:e,areaCodes:n}=t;if(s.startsWith(e)){let i=!o.country||Number(e)>=Number(o.country.dialCode);if(n){let i=s.substring(e.length);for(let e of n)if(i.startsWith(e))return{country:t,fullDialCodeMatch:!0}}(i||e===s||!o.fullDialCodeMatch)&&a({country:t,fullDialCodeMatch:!0})}o.fullDialCodeMatch||s.length<e.length&&e.startsWith(s)&&(!o.country||Number(e)<=Number(o.country.dialCode))&&a({country:t,fullDialCodeMatch:!1})}if(n){let t=al({value:n,field:"iso2",countries:e});if(!t)return o;let r=!!t&&(t=>{if(!(null==t?void 0:t.areaCodes))return!1;let e=s.substring(t.dialCode.length);return t.areaCodes.some((t=>t.startsWith(e)))})(t);o&&(null==(i=o.country)?void 0:i.dialCode)===t.dialCode&&o.country!==t&&o.fullDialCodeMatch&&(!t.areaCodes||r)&&(o={country:t,fullDialCodeMatch:!0})}return o},cl=(t,e)=>{let n=parseInt(t,16);return Number(n+e).toString(16)},hl="abcdefghijklmnopqrstuvwxyz".split("").reduce(((t,e,n)=>({...t,[e]:cl("1f1e6",n)})),{}),ul=({iso2:t,size:n,src:i,protocol:r="https",disableLazyLoading:s,className:o,style:a,...l})=>t?e.createElement("img",{className:Ka({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:(()=>{if(i)return i;let e=[hl[(n=t)[0]],hl[n[1]]].join("-");var n;return`${r}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${e}.svg`})(),width:n,height:n,draggable:!1,"data-country":t,loading:s?void 0:"lazy",style:{width:n,height:n,...a},alt:"",...l}):e.createElement("img",{className:Ka({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:n,height:n,...l}),pl=({show:t,dialCodePrefix:n="+",selectedCountry:i,countries:r=Qa,preferredCountries:s=[],flags:o,onSelect:a,onClose:l,...c})=>{let h=e.useRef(null),u=e.useRef(),p=e.useMemo((()=>{if(!s||!s.length)return r;let t=[],e=[...r];for(let n of s){let i=e.findIndex((t=>ol(t).iso2===n));if(-1!==i){let n=e.splice(i,1)[0];t.push(n)}}return t.concat(e)}),[r,s]),d=e.useRef({updatedAt:void 0,value:""}),f=e.useCallback((t=>p.findIndex((e=>ol(e).iso2===t))),[p]),[m,g]=e.useState(f(i)),y=()=>{u.current!==i&&g(f(i))},v=e.useCallback((t=>{g(f(t.iso2)),null==a||a(t)}),[a,f]),b=t=>{let e=p.length-1;g((n=>{let i=(r=n,"prev"===t?r-1:"next"===t?r+1:"last"===t?e:0);var r;return i<0?0:i>e?e:i}))},x=e.useCallback((()=>{if(!h.current||void 0===m)return;let t=ol(p[m]).iso2;if(t===u.current)return;let e=h.current.querySelector(`[data-country="${t}"]`);e&&(((t,e)=>{let n=t.style.display;"block"!==n&&(t.style.display="block");let i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=r.top-i.top,o=i.bottom-r.bottom;s>=0&&o>=0||(Math.abs(s)<Math.abs(o)?t.scrollTop+=s:t.scrollTop-=o),t.style.display=n})(h.current,e),u.current=t)}),[m,p]);return e.useEffect((()=>{x()}),[m,x]),e.useEffect((()=>{h.current&&(t?h.current.focus():y())}),[t]),e.useEffect((()=>{y()}),[i]),e.createElement("ul",{ref:h,role:"listbox",className:Ka({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:t?"block":"none",...c.style},onKeyDown:t=>{if(t.stopPropagation(),"Enter"!==t.key){if("Escape"!==t.key)return"ArrowUp"===t.key?(t.preventDefault(),void b("prev")):"ArrowDown"===t.key?(t.preventDefault(),void b("next")):"PageUp"===t.key?(t.preventDefault(),void b("first")):"PageDown"===t.key?(t.preventDefault(),void b("last")):(" "===t.key&&t.preventDefault(),void(1===t.key.length&&!t.altKey&&!t.ctrlKey&&!t.metaKey&&(t=>{let e=d.current.updatedAt&&(new Date).getTime()-d.current.updatedAt.getTime()>1e3;d.current={value:e?t:`${d.current.value}${t}`,updatedAt:new Date};let n=p.findIndex((t=>ol(t).name.toLowerCase().startsWith(d.current.value)));-1!==n&&g(n)})(t.key.toLocaleLowerCase())));null==l||l()}else{t.preventDefault();let e=ol(p[m]);v(e)}},onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${ol(p[m]).iso2}-option`},p.map(((t,r)=>{let a=ol(t),l=a.iso2===i,h=r===m,u=s.includes(a.iso2),p=r===s.length-1,d=null==o?void 0:o.find((t=>t.iso2===a.iso2));return e.createElement(e.Fragment,{key:a.iso2},e.createElement("li",{"data-country":a.iso2,role:"option","aria-selected":l,"aria-label":`${a.name} ${n}${a.dialCode}`,id:`react-international-phone__${a.iso2}-option`,className:Ka({addPrefix:["country-selector-dropdown__list-item",u&&"country-selector-dropdown__list-item--preferred",l&&"country-selector-dropdown__list-item--selected",h&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(a),style:c.listItemStyle,title:a.name},e.createElement(ul,{iso2:a.iso2,src:null==d?void 0:d.src,className:Ka({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),e.createElement("span",{className:Ka({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},a.name),e.createElement("span",{className:Ka({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},n,a.dialCode)),p?e.createElement("hr",{className:Ka({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)})))},dl=({selectedCountry:t,onSelect:n,disabled:i,hideDropdown:r,countries:s=Qa,preferredCountries:o=[],flags:a,renderButtonWrapper:l,...c})=>{let[h,u]=e.useState(!1),p=e.useMemo((()=>{if(t)return al({value:t,field:"iso2",countries:s})}),[s,t]),d=e.useRef(null),f=t=>{t.key&&["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),u(!0))};return e.createElement("div",{className:Ka({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:d},(()=>{var n;let s={title:null==p?void 0:p.name,onClick:()=>u((t=>!t)),onMouseDown:t=>t.preventDefault(),onKeyDown:f,disabled:r||i,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":h},o=e.createElement("div",{className:Ka({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},e.createElement(ul,{iso2:t,src:null==(n=null==a?void 0:a.find((e=>e.iso2===t)))?void 0:n.src,className:Ka({addPrefix:["country-selector-button__flag-emoji",i&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:t?"visible":"hidden",...c.flagStyle}}),!r&&e.createElement("div",{className:Ka({addPrefix:["country-selector-button__dropdown-arrow",i&&"country-selector-button__dropdown-arrow--disabled",h&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return l?l({children:o,rootProps:s}):e.createElement("button",{...s,type:"button",className:Ka({addPrefix:["country-selector-button",h&&"country-selector-button--active",i&&"country-selector-button--disabled",r&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":t,style:c.buttonStyle},o)})(),e.createElement(pl,{show:h,countries:s,preferredCountries:o,flags:a,onSelect:t=>{u(!1),null==n||n(t)},selectedCountry:t,onClose:()=>{u(!1)},...c.dropdownStyleProps}))},fl=({dialCode:t,prefix:n,disabled:i,style:r,className:s})=>e.createElement("div",{className:Ka({addPrefix:["dial-code-preview",i&&"dial-code-preview--disabled"],rawClassNames:[s]}),style:r},`${n}${t}`);e.forwardRef((({value:t,onChange:n,countries:i=Qa,preferredCountries:r=[],hideDropdown:s,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:a,flags:l,style:c,className:h,inputStyle:u,inputClassName:p,countrySelectorStyleProps:d,dialCodePreviewStyleProps:f,inputProps:m,placeholder:g,disabled:y,name:v,onFocus:b,onBlur:x,required:w,autoFocus:k,..._},S)=>{let{phone:$,inputValue:C,inputRef:A,country:P,setCountry:T,handlePhoneValueChange:E}=rl({value:t,countries:i,..._,onChange:t=>{null==n||n(t.phone,{country:t.country,inputValue:t.inputValue})}}),j=_.disableDialCodeAndPrefix&&o&&(null==P?void 0:P.dialCode);return e.useImperativeHandle(S,(()=>A.current?Object.assign(A.current,{setCountry:T,state:{phone:$,inputValue:C,country:P}}):null),[A,T,$,C,P]),e.createElement("div",{ref:S,className:Ka({addPrefix:["input-container"],rawClassNames:[h]}),style:c},e.createElement(dl,{onSelect:t=>T(t.iso2,{focusOnInput:!a}),flags:l,selectedCountry:P.iso2,countries:i,preferredCountries:r,disabled:y,hideDropdown:s,...d}),j&&e.createElement(fl,{dialCode:P.dialCode,prefix:_.prefix??"+",disabled:y,...f}),e.createElement("input",{onChange:E,value:C,type:"tel",ref:A,className:Ka({addPrefix:["input",y&&"input--disabled"],rawClassNames:[p]}),placeholder:g,disabled:y,style:u,name:v,onFocus:b,onBlur:x,autoFocus:k,required:w,...m}))}));const ml=t.styled.div`
193
+ `;var Ya=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Ja=(...t)=>t.filter((t=>!!t)).join(" ").trim(),Xa=({addPrefix:t,rawClassNames:e})=>Ja(((...t)=>Ja(...t).split(" ").map((t=>`react-international-phone-${t}`)).join(" "))(...t),...e),Qa=t=>!!t&&/^\d+$/.test(t),Za=t=>t.replace(/\D/g,""),tl=({phone:t,prefix:e})=>t?`${e}${Za(t)}`:"";function el({value:t,country:e,insertDialCodeOnEmpty:n,trimNonDigitsEnd:r,countries:i,prefix:o,charAfterDialCode:s,forceDialCode:a,disableDialCodeAndPrefix:l,defaultMask:c,countryGuessingEnabled:u,disableFormatting:p}){let h=t;l&&(h=h.startsWith(`${o}`)?h:`${o}${e.dialCode}${h}`);let d=u?cl({phone:h,countries:i,currentCountryIso2:null==e?void 0:e.iso2}):void 0,f=(null==d?void 0:d.country)??e,m=((t,e)=>{let n=!e.disableDialCodeAndPrefix&&e.forceDialCode,r=!e.disableDialCodeAndPrefix&&e.insertDialCodeOnEmpty,i=t,o=t=>e.trimNonDigitsEnd?t.trim():t;if(!i)return r&&!i.length||n?o(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`):o(i);if(i=Za(i),i===e.dialCode&&!e.disableDialCodeAndPrefix)return o(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(e.dialCode.startsWith(i)&&!e.disableDialCodeAndPrefix)return o(n?`${e.prefix}${e.dialCode}${e.charAfterDialCode}`:`${e.prefix}${i}`);if(!i.startsWith(e.dialCode)&&!e.disableDialCodeAndPrefix){if(n)return o(`${e.prefix}${e.dialCode}${e.charAfterDialCode}`);if(i.length<e.dialCode.length)return o(`${e.prefix}${i}`)}let{phoneLeftSide:s,phoneRightSide:a}=(()=>{let t=e.dialCode.length;return{phoneLeftSide:i.slice(0,t),phoneRightSide:i.slice(t)}})();return s=`${e.prefix}${s}${e.charAfterDialCode}`,a=(({value:t,mask:e,maskSymbol:n,offset:r=0,trimNonMaskCharsLeftover:i=!1})=>{if(t.length<r)return t;let o=t.slice(0,r),s=t.slice(r),a=o,l=0;for(let c of e.split("")){if(l>=s.length){if(!i&&c!==n){a+=c;continue}break}c===n?(a+=s[l],l+=1):a+=c}return a})({value:a,mask:e.mask,maskSymbol:e.maskChar,trimNonMaskCharsLeftover:e.trimNonDigitsEnd||e.disableDialCodeAndPrefix&&0===a.length}),e.disableDialCodeAndPrefix&&(s=""),o(`${s}${a}`)})(h,{prefix:o,mask:sl({phone:h,country:f,defaultMask:c,disableFormatting:p}),maskChar:rl,dialCode:f.dialCode,trimNonDigitsEnd:r,charAfterDialCode:s,forceDialCode:a,insertDialCodeOnEmpty:n,disableDialCodeAndPrefix:l}),g=u&&!(null==d?void 0:d.fullDialCodeMatch)?e:f;return{phone:tl({phone:l?`${g.dialCode}${m}`:m,prefix:o}),inputValue:m,country:g}}var nl={size:20,overrideLastItemDebounceMS:-1};var rl=".",il=Ya,ol=({defaultCountry:t="us",value:n="",countries:r=il,prefix:i="+",defaultMask:o="............",charAfterDialCode:s=" ",historySaveDebounceMS:a=200,disableCountryGuess:l=false,disableDialCodePrefill:c=false,forceDialCode:u=false,disableDialCodeAndPrefix:p=false,disableFormatting:h=false,onChange:d,inputRef:f})=>{let m={countries:r,prefix:i,charAfterDialCode:s,forceDialCode:!p&&u,disableDialCodeAndPrefix:p,defaultMask:o,countryGuessingEnabled:!l,disableFormatting:h},g=e.useRef(null),y=f||g,v=t=>{Promise.resolve().then((()=>{var e;typeof window>"u"||y.current!==(null==document?void 0:document.activeElement)||null==(e=y.current)||e.setSelectionRange(t,t)}))},[{phone:b,inputValue:x,country:w},k,S,C]=function(t,n){let{size:r,overrideLastItemDebounceMS:i,onChange:o}={...nl,...n},[s,a]=e.useState(t),[l,c]=e.useState([s]),[u,p]=e.useState(0),h=(()=>{let t=e.useRef(),n=e.useRef(Date.now());return{check:()=>{let e=Date.now(),r=t.current?e-n.current:void 0;return t.current=n.current,n.current=e,r}}})();return[s,(t,e)=>{if("object"==typeof t&&"object"==typeof s&&((t,e)=>{let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let i of n)if(t[i]!==e[i])return!1;return!0})(t,s)||t===s)return;let n=i>0,d=h.check(),f=!n||void 0===d||d>i;if(void 0!==(null==e?void 0:e.overrideLastItem)?e.overrideLastItem:!f)c((e=>[...e.slice(0,u),t]));else{let e=l.length>=r;c((n=>[...n.slice(e?1:0,u+1),t])),e||p((t=>t+1))}a(t),null==o||o(t)},()=>{if(u<=0)return{success:!1};let t=l[u-1];return a(t),p((t=>t-1)),null==o||o(t),{success:!0,value:t}},()=>{if(u+1>=l.length)return{success:!1};let t=l[u+1];return a(t),p((t=>t+1)),null==o||o(t),{success:!0,value:t}}]}((()=>{let e=ll({value:t,field:"iso2",countries:r}),i=e||ll({value:"us",field:"iso2",countries:r}),{phone:o,inputValue:s,country:a}=el({value:n,country:i,insertDialCodeOnEmpty:!c,...m});return v(s.length),{phone:o,inputValue:s,country:a.iso2}}),{overrideLastItemDebounceMS:a,onChange:({inputValue:t,phone:e,country:n})=>{if(!d)return;let r=_(n);d({phone:e,inputValue:t,country:r})}}),_=e.useCallback((t=>ll({value:t,field:"iso2",countries:r})),[r]),$=e.useMemo((()=>_(w)),[w,_]);e.useEffect((()=>{let t=y.current;if(!t)return;let e=t=>{if(!t.key)return;let e=t.ctrlKey,n=t.metaKey,r=t.shiftKey;if("z"===t.key.toLowerCase()){if(typeof window>"u"||!window.navigator.userAgent.toLowerCase().includes("macintosh")){if(!e)return}else if(!n)return;r?C():S()}};return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[y,S,C]);let[E,P]=e.useState(!1);return e.useEffect((()=>{if(!E)return P(!0),void(n!==b&&(null==d||d({inputValue:x,phone:b,country:$})));if(n===b)return;let{phone:t,inputValue:e,country:r}=el({value:n,country:$,insertDialCodeOnEmpty:!c,...m});k({phone:t,inputValue:e,country:r.iso2})}),[n]),{phone:b,inputValue:x,country:$,setCountry:(t,e={focusOnInput:!1})=>{let n=ll({value:t,field:"iso2",countries:r});if(!n)return;let o=p?"":`${i}${n.dialCode}${s}`;k({inputValue:o,phone:`${i}${n.dialCode}`,country:n.iso2}),e.focusOnInput&&Promise.resolve().then((()=>{var t;null==(t=y.current)||t.focus()}))},handlePhoneValueChange:t=>{t.preventDefault();let{phone:e,inputValue:r,country:i,cursorPosition:o}=((t,{country:e,insertDialCodeOnEmpty:n,phoneBeforeInput:r,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:a,countryGuessingEnabled:l,defaultMask:c,disableFormatting:u,countries:p})=>{let h=t.nativeEvent,d=h.inputType,f=(t=>{if(null==t?void 0:t.toLocaleLowerCase().includes("delete"))return(null==t?void 0:t.toLocaleLowerCase().includes("forward"))?"forward":"backward"})(d),m=!!(null==d?void 0:d.startsWith("insertFrom")),g="insertText"===d,y=(null==h?void 0:h.data)||void 0,v=t.target.value,b=t.target.selectionStart??0;if(null==d?void 0:d.includes("history"))return{inputValue:r,phone:tl({phone:r,prefix:i}),cursorPosition:r.length,country:e};if(g&&!Qa(y)&&v!==i)return{inputValue:r,phone:tl({phone:a?`${e.dialCode}${r}`:r,prefix:i}),cursorPosition:b-((null==y?void 0:y.length)??0),country:e};if(s&&!v.startsWith(`${i}${e.dialCode}`)&&!m){let t=v?r:`${i}${e.dialCode}${o}`;return{inputValue:t,phone:tl({phone:t,prefix:i}),cursorPosition:i.length+e.dialCode.length+o.length,country:e}}let{phone:x,inputValue:w,country:k}=el({value:v,country:e,trimNonDigitsEnd:"backward"===f,insertDialCodeOnEmpty:n,countryGuessingEnabled:l,countries:p,prefix:i,charAfterDialCode:o,forceDialCode:s,disableDialCodeAndPrefix:a,disableFormatting:u,defaultMask:c});return{phone:x,inputValue:w,cursorPosition:(({phoneBeforeInput:t,phoneAfterInput:e,phoneAfterFormatted:n,cursorPositionAfterInput:r,leftOffset:i=0,deletion:o})=>{if(r<i)return i;if(!t)return n.length;let s=null;for(let u=r-1;u>=0;u-=1)if(Qa(e[u])){s=u;break}if(null===s){for(let t=0;t<e.length;t+=1)if(Qa(n[t]))return t;return e.length}let a=0;for(let u=0;u<s;u+=1)Qa(e[u])&&(a+=1);let l=0,c=0;for(let u=0;u<n.length&&(l+=1,Qa(n[u])&&(c+=1),!(c>=a+1));u+=1);if("backward"!==o)for(;!Qa(n[l])&&l<n.length;)l+=1;return l})({cursorPositionAfterInput:b,phoneBeforeInput:r,phoneAfterInput:v,phoneAfterFormatted:w,leftOffset:s?i.length+e.dialCode.length+o.length:0,deletion:f}),country:k}})(t,{country:$,phoneBeforeInput:x,insertDialCodeOnEmpty:!1,...m});return k({inputValue:r,phone:e,country:i.iso2}),v(o),n},inputRef:y}},sl=({phone:t,country:e,defaultMask:n="............",disableFormatting:r=!1})=>{let i=e.format,o=t=>r?t.replace(new RegExp(`[^${rl}]`,"g"),""):t;if(!i)return o(n);if("string"==typeof i)return o(i);if(!i.default)return o(n);let s=Object.keys(i).find((n=>{if("default"===n)return!1;if("/"!==n.charAt(0)||"/"!==n.charAt(n.length-1))return!1;let r=new RegExp(n.substring(1,n.length-1)),i=t.replace(e.dialCode,"");return r.test(Za(i))}));return o(s?i[s]:i.default)},al=t=>{let[e,n,r,i,o,s]=t;return{name:e,iso2:n,dialCode:r,format:i,priority:o,areaCodes:s}},ll=({field:t,value:e,countries:n=Ya})=>{if(["priority"].includes(t))throw new Error(`Field "${t}" is not supported`);let r=n.find((n=>{let r=al(n);return e===r[t]}));if(r)return al(r)},cl=({phone:t,countries:e=Ya,currentCountryIso2:n})=>{var r;let i={country:void 0,fullDialCodeMatch:!1};if(!t)return i;let o=Za(t);if(!o)return i;let s=i,a=({country:t,fullDialCodeMatch:e})=>{var n,r;let i=t.dialCode===(null==(n=s.country)?void 0:n.dialCode),o=(t.priority??0)<((null==(r=s.country)?void 0:r.priority)??0);(!i||o)&&(s={country:t,fullDialCodeMatch:e})};for(let l of e){let t=al(l),{dialCode:e,areaCodes:n}=t;if(o.startsWith(e)){let r=!s.country||Number(e)>=Number(s.country.dialCode);if(n){let r=o.substring(e.length);for(let e of n)if(r.startsWith(e))return{country:t,fullDialCodeMatch:!0}}(r||e===o||!s.fullDialCodeMatch)&&a({country:t,fullDialCodeMatch:!0})}s.fullDialCodeMatch||o.length<e.length&&e.startsWith(o)&&(!s.country||Number(e)<=Number(s.country.dialCode))&&a({country:t,fullDialCodeMatch:!1})}if(n){let t=ll({value:n,field:"iso2",countries:e});if(!t)return s;let i=!!t&&(t=>{if(!(null==t?void 0:t.areaCodes))return!1;let e=o.substring(t.dialCode.length);return t.areaCodes.some((t=>t.startsWith(e)))})(t);s&&(null==(r=s.country)?void 0:r.dialCode)===t.dialCode&&s.country!==t&&s.fullDialCodeMatch&&(!t.areaCodes||i)&&(s={country:t,fullDialCodeMatch:!0})}return s},ul=(t,e)=>{let n=parseInt(t,16);return Number(n+e).toString(16)},pl="abcdefghijklmnopqrstuvwxyz".split("").reduce(((t,e,n)=>({...t,[e]:ul("1f1e6",n)})),{}),hl=({iso2:t,size:n,src:r,protocol:i="https",disableLazyLoading:o,className:s,style:a,...l})=>t?e.createElement("img",{className:Xa({addPrefix:["flag-emoji"],rawClassNames:[s]}),src:(()=>{if(r)return r;let e=[pl[(n=t)[0]],pl[n[1]]].join("-");var n;return`${i}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${e}.svg`})(),width:n,height:n,draggable:!1,"data-country":t,loading:o?void 0:"lazy",style:{width:n,height:n,...a},alt:"",...l}):e.createElement("img",{className:Xa({addPrefix:["flag-emoji"],rawClassNames:[s]}),width:n,height:n,...l}),dl=({show:t,dialCodePrefix:n="+",selectedCountry:r,countries:i=Ya,preferredCountries:o=[],flags:s,onSelect:a,onClose:l,...c})=>{let u=e.useRef(null),p=e.useRef(),h=e.useMemo((()=>{if(!o||!o.length)return i;let t=[],e=[...i];for(let n of o){let r=e.findIndex((t=>al(t).iso2===n));if(-1!==r){let n=e.splice(r,1)[0];t.push(n)}}return t.concat(e)}),[i,o]),d=e.useRef({updatedAt:void 0,value:""}),f=e.useCallback((t=>h.findIndex((e=>al(e).iso2===t))),[h]),[m,g]=e.useState(f(r)),y=()=>{p.current!==r&&g(f(r))},v=e.useCallback((t=>{g(f(t.iso2)),null==a||a(t)}),[a,f]),b=t=>{let e=h.length-1;g((n=>{let r=(i=n,"prev"===t?i-1:"next"===t?i+1:"last"===t?e:0);var i;return r<0?0:r>e?e:r}))},x=e.useCallback((()=>{if(!u.current||void 0===m)return;let t=al(h[m]).iso2;if(t===p.current)return;let e=u.current.querySelector(`[data-country="${t}"]`);e&&(((t,e)=>{let n=t.style.display;"block"!==n&&(t.style.display="block");let r=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=i.top-r.top,s=r.bottom-i.bottom;o>=0&&s>=0||(Math.abs(o)<Math.abs(s)?t.scrollTop+=o:t.scrollTop-=s),t.style.display=n})(u.current,e),p.current=t)}),[m,h]);return e.useEffect((()=>{x()}),[m,x]),e.useEffect((()=>{u.current&&(t?u.current.focus():y())}),[t]),e.useEffect((()=>{y()}),[r]),e.createElement("ul",{ref:u,role:"listbox",className:Xa({addPrefix:["country-selector-dropdown"],rawClassNames:[c.className]}),style:{display:t?"block":"none",...c.style},onKeyDown:t=>{if(t.stopPropagation(),"Enter"!==t.key){if("Escape"!==t.key)return"ArrowUp"===t.key?(t.preventDefault(),void b("prev")):"ArrowDown"===t.key?(t.preventDefault(),void b("next")):"PageUp"===t.key?(t.preventDefault(),void b("first")):"PageDown"===t.key?(t.preventDefault(),void b("last")):(" "===t.key&&t.preventDefault(),void(1===t.key.length&&!t.altKey&&!t.ctrlKey&&!t.metaKey&&(t=>{let e=d.current.updatedAt&&(new Date).getTime()-d.current.updatedAt.getTime()>1e3;d.current={value:e?t:`${d.current.value}${t}`,updatedAt:new Date};let n=h.findIndex((t=>al(t).name.toLowerCase().startsWith(d.current.value)));-1!==n&&g(n)})(t.key.toLocaleLowerCase())));null==l||l()}else{t.preventDefault();let e=al(h[m]);v(e)}},onBlur:l,tabIndex:-1,"aria-activedescendant":`react-international-phone__${al(h[m]).iso2}-option`},h.map(((t,i)=>{let a=al(t),l=a.iso2===r,u=i===m,p=o.includes(a.iso2),h=i===o.length-1,d=null==s?void 0:s.find((t=>t.iso2===a.iso2));return e.createElement(e.Fragment,{key:a.iso2},e.createElement("li",{"data-country":a.iso2,role:"option","aria-selected":l,"aria-label":`${a.name} ${n}${a.dialCode}`,id:`react-international-phone__${a.iso2}-option`,className:Xa({addPrefix:["country-selector-dropdown__list-item",p&&"country-selector-dropdown__list-item--preferred",l&&"country-selector-dropdown__list-item--selected",u&&"country-selector-dropdown__list-item--focused"],rawClassNames:[c.listItemClassName]}),onClick:()=>v(a),style:c.listItemStyle,title:a.name},e.createElement(hl,{iso2:a.iso2,src:null==d?void 0:d.src,className:Xa({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[c.listItemFlagClassName]}),style:c.listItemFlagStyle}),e.createElement("span",{className:Xa({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[c.listItemCountryNameClassName]}),style:c.listItemCountryNameStyle},a.name),e.createElement("span",{className:Xa({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[c.listItemDialCodeClassName]}),style:c.listItemDialCodeStyle},n,a.dialCode)),h?e.createElement("hr",{className:Xa({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[c.preferredListDividerClassName]}),style:c.preferredListDividerStyle}):null)})))},fl=({selectedCountry:t,onSelect:n,disabled:r,hideDropdown:i,countries:o=Ya,preferredCountries:s=[],flags:a,renderButtonWrapper:l,...c})=>{let[u,p]=e.useState(!1),h=e.useMemo((()=>{if(t)return ll({value:t,field:"iso2",countries:o})}),[o,t]),d=e.useRef(null),f=t=>{t.key&&["ArrowUp","ArrowDown"].includes(t.key)&&(t.preventDefault(),p(!0))};return e.createElement("div",{className:Xa({addPrefix:["country-selector"],rawClassNames:[c.className]}),style:c.style,ref:d},(()=>{var n;let o={title:null==h?void 0:h.name,onClick:()=>p((t=>!t)),onMouseDown:t=>t.preventDefault(),onKeyDown:f,disabled:i||r,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},s=e.createElement("div",{className:Xa({addPrefix:["country-selector-button__button-content"],rawClassNames:[c.buttonContentWrapperClassName]}),style:c.buttonContentWrapperStyle},e.createElement(hl,{iso2:t,src:null==(n=null==a?void 0:a.find((e=>e.iso2===t)))?void 0:n.src,className:Xa({addPrefix:["country-selector-button__flag-emoji",r&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[c.flagClassName]}),style:{visibility:t?"visible":"hidden",...c.flagStyle}}),!i&&e.createElement("div",{className:Xa({addPrefix:["country-selector-button__dropdown-arrow",r&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[c.dropdownArrowClassName]}),style:c.dropdownArrowStyle}));return l?l({children:s,rootProps:o}):e.createElement("button",{...o,type:"button",className:Xa({addPrefix:["country-selector-button",u&&"country-selector-button--active",r&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[c.buttonClassName]}),"data-country":t,style:c.buttonStyle},s)})(),e.createElement(dl,{show:u,countries:o,preferredCountries:s,flags:a,onSelect:t=>{p(!1),null==n||n(t)},selectedCountry:t,onClose:()=>{p(!1)},...c.dropdownStyleProps}))},ml=({dialCode:t,prefix:n,disabled:r,style:i,className:o})=>e.createElement("div",{className:Xa({addPrefix:["dial-code-preview",r&&"dial-code-preview--disabled"],rawClassNames:[o]}),style:i},`${n}${t}`);e.forwardRef((({value:t,onChange:n,countries:r=Ya,preferredCountries:i=[],hideDropdown:o,showDisabledDialCodeAndPrefix:s,disableFocusAfterCountrySelect:a,flags:l,style:c,className:u,inputStyle:p,inputClassName:h,countrySelectorStyleProps:d,dialCodePreviewStyleProps:f,inputProps:m,placeholder:g,disabled:y,name:v,onFocus:b,onBlur:x,required:w,autoFocus:k,...S},C)=>{let{phone:_,inputValue:$,inputRef:E,country:P,setCountry:T,handlePhoneValueChange:A}=ol({value:t,countries:r,...S,onChange:t=>{null==n||n(t.phone,{country:t.country,inputValue:t.inputValue})}}),j=S.disableDialCodeAndPrefix&&s&&(null==P?void 0:P.dialCode);return e.useImperativeHandle(C,(()=>E.current?Object.assign(E.current,{setCountry:T,state:{phone:_,inputValue:$,country:P}}):null),[E,T,_,$,P]),e.createElement("div",{ref:C,className:Xa({addPrefix:["input-container"],rawClassNames:[u]}),style:c},e.createElement(fl,{onSelect:t=>T(t.iso2,{focusOnInput:!a}),flags:l,selectedCountry:P.iso2,countries:r,preferredCountries:i,disabled:y,hideDropdown:o,...d}),j&&e.createElement(ml,{dialCode:P.dialCode,prefix:S.prefix??"+",disabled:y,...f}),e.createElement("input",{onChange:A,value:$,type:"tel",ref:E,className:Xa({addPrefix:["input",y&&"input--disabled"],rawClassNames:[h]}),placeholder:g,disabled:y,style:p,name:v,onFocus:b,onBlur:x,autoFocus:k,required:w,...m}))}));const gl=t.styled.div`
194
194
  ${({theme:t})=>`\n align-items: flex-start;\n align-self: stretch;\n display: flex;\n gap: ${t.spacing[.5]};\n width: 380px;\n\n > button, div {\n border: 1px solid ${t.palette.gray[300]};\n border-radius: ${t.spacing[.25]};\n }\n\n &.disabled {\n > button, div {\n background: ${t.palette.gray[100]};\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n }\n }\n\n &.error:not(.disabled) {\n > button, div {\n border: 1px solid ${t.palette.error[500]};\n }\n }\n\n &:focus-within:not(.disabled, .error) {\n > button, div {\n background: ${t.palette.white};\n border: 2px solid ${t.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n > button, div {\n background: ${t.palette.white};\n border-color: ${t.palette.gray[600]};\n }\n }\n\n @container (width < 320px) or (width < 600px) {\n width: 100%;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 250px;\n }\n `}
195
- `,gl=t.styled.button`
195
+ `,yl=t.styled.button`
196
196
  ${({theme:t})=>`\n align-items: center;\n background: inherit;\n border-color: inherit;\n display: flex;\n gap: ${t.spacing[.25]};\n height: 44px;\n min-width: 67px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n\n &:disabled {\n background: ${t.palette.gray[100]};\n cursor: not-allowed;\n }\n `}
197
- `,yl=t.styled.ul`
197
+ `,vl=t.styled.ul`
198
198
  ${({theme:t})=>`\n align-items: flex-start;\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n max-height: 190px;\n overflow: hidden auto;\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n width: max-content;\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n max-height: 150px;\n }\n `}
199
- `,vl=t.styled.li`
199
+ `,bl=t.styled.li`
200
200
  ${({theme:t})=>`\n align-items: center;\n background: ${t.palette.white};\n cursor: pointer;\n display: inline-flex;\n font-size: ${t.typography.text.sm};\n gap: ${t.spacing[.5]};\n height: 38px;\n line-height: ${t.spacing[1.25]};\n padding: ${t.spacing[.5]} ${t.spacing[1]};\n width: 190px;\n\n &:hover {\n background: ${t.palette.gray[100]};\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.xs};\n height: 30px;\n width: 160px;\n }\n `}
201
- `,bl=t.styled.p`
201
+ `,xl=t.styled.p`
202
202
  color: ${({theme:t})=>t.palette.gray[800]};
203
203
  font-size: inherit;
204
204
  min-width: 55%;
205
205
  overflow: hidden;
206
206
  text-overflow: ellipsis;
207
207
  white-space: nowrap;
208
- `,xl=({htmlFor:e,label:n,mode:i="light",required:r,tooltip:s})=>{const o=t.useTheme(),a=`${e}-tooltip`,l=void 0!==s&&!ri(s);return y.jsxs("label",{className:`flex gap-1 w-full ${i}`,htmlFor:e,children:[n,r&&y.jsx(V,{icon:"asterisk",iconColor:o.palette.error[500],iconSize:"xxs"}),l?y.jsx(Ti,{icon:"circle-info",id:a,place:"right",tip:s}):null]})},wl=t.styled.div`
208
+ `,wl=({htmlFor:e,label:n,mode:r="light",required:i,tooltip:o})=>{const s=t.useTheme(),a=`${e}-tooltip`,l=void 0!==o&&!ir(o);return y.jsxs("label",{className:`flex gap-1 w-full ${r}`,htmlFor:e,children:[n,i&&y.jsx(V,{icon:"asterisk",iconColor:s.palette.error[500],iconSize:"xxs"}),l?y.jsx(Tr,{icon:"circle-info",id:a,place:"right",tip:o}):null]})},kl=t.styled.div`
209
209
  ${({theme:t})=>`\n align-items: flex-start;\n display: inline-flex;\n flex-direction: column;\n gap: ${t.spacing[.25]};\n\n label {\n color: ${t.palette.gray[800]};\n\n &.dark {\n color: ${t.palette.white};\n }\n }\n\n > *:not(.error-msg) {\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.md};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.spacing[1.5]};\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.sm};\n }\n }\n `}
210
- `,kl=t.styled.div`
210
+ `,Sl=t.styled.div`
211
211
  ${({theme:t})=>`\n align-items: center;\n display: flex;\n border-radius: ${t.spacing[.25]};\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[600]};\n gap: ${t.spacing[.625]};\n justify-content: space-between;\n height: 44px;\n padding: ${t.spacing[.625]} ${t.spacing[.75]};\n width: 320px;\n\n input {\n background: inherit;\n cursor: inherit;\n outline: none;\n width: 100%;\n\n &::placeholder {\n &.dark {\n color: ${t.palette.gray[600]};\n }\n &.light {\n color: ${t.palette.gray[400]};\n }\n }\n }\n\n span {\n font-size: 14px;\n }\n\n &.dark {\n border: 1px solid ${t.palette.gray[700]};\n color: ${t.palette.white};\n }\n\n &.disabled {\n color: ${t.palette.gray[400]};\n cursor: not-allowed;\n\n &.dark {\n background: ${t.palette.gray[700]};\n }\n &.light {\n background: ${t.palette.gray[100]};\n }\n }\n\n &.error:not(.disabled) {\n border: 1px solid ${t.palette.error[500]};\n }\n\n &:focus-within:not(.disabled, .error) {\n &.dark {\n background: ${t.palette.black};\n border: 2px solid ${t.palette.gray[400]};\n }\n\n &.light {\n background: ${t.palette.white};\n border: 2px solid ${t.palette.black};\n }\n }\n\n &:hover:not(:focus-within, .disabled, .error) {\n &.dark {\n background: ${t.palette.black};\n }\n\n &.light {\n background: ${t.palette.white};\n border: 1px solid ${t.palette.gray[600]};\n }\n }\n\n @container (width < 320px) or (width < 600px) {\n width: 100%;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 250px;\n }\n `}
212
- `,_l=({children:e,error:n,htmlFor:i,label:r,mode:s,required:o,tooltip:a})=>{const l=t.useTheme();return y.jsxs(wl,{children:[void 0===r?void 0:y.jsx(xl,{htmlFor:i,label:r,mode:s,required:o,tooltip:a}),e,n?y.jsx(L,{className:"error-msg",color:l.palette.error[500],display:"block",lineSpacing:1,size:"sm",sizeSm:"xs",children:n}):void 0]})},Sl=e.forwardRef((function({disabled:i,error:r,label:s,mode:l="light",name:c,required:h,tooltip:u,value:p,...d},f){const m=t.useTheme(),[g,v]=e.useState(!1),[b,x]=e.useState(""),w=e.useRef(null),{refs:k,floatingStyles:_}=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:h,open:u}=t,[p,d]=o.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=o.useState(i);re(f,i)||m(i);const[g,y]=o.useState(null),[v,b]=o.useState(null),x=o.useCallback((t=>{t!==S.current&&(S.current=t,y(t))}),[]),w=o.useCallback((t=>{t!==$.current&&($.current=t,b(t))}),[]),k=s||g,_=l||v,S=o.useRef(null),$=o.useRef(null),C=o.useRef(p),A=null!=h,P=ae(h),T=ae(r),E=ae(u),j=o.useCallback((()=>{if(!S.current||!$.current)return;const t={placement:e,strategy:n,middleware:f};T.current&&(t.platform=T.current),ne(S.current,$.current,t).then((t=>{const e={...t,isPositioned:!1!==E.current};D.current&&!re(C.current,e)&&(C.current=e,a.flushSync((()=>{d(e)})))}))}),[f,e,n,T,E]);ie((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d((t=>({...t,isPositioned:!1}))))}),[u]);const D=o.useRef(!1);ie((()=>(D.current=!0,()=>{D.current=!1})),[]),ie((()=>{if(k&&(S.current=k),_&&($.current=_),k&&_){if(P.current)return P.current(k,_,j);j()}}),[k,_,j,P,A]);const M=o.useMemo((()=>({reference:S,floating:$,setReference:x,setFloating:w})),[x,w]),F=o.useMemo((()=>({reference:k,floating:_})),[k,_]),I=o.useMemo((()=>{const t={position:n,left:0,top:0};if(!F.floating)return t;const e=oe(F.floating,p.x),i=oe(F.floating,p.y);return c?{...t,transform:"translate("+e+"px, "+i+"px)",...se(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}}),[n,c,F.floating,p.x,p.y]);return o.useMemo((()=>({...p,update:j,refs:M,elements:F,floatingStyles:I})),[p,j,M,F,I])}({placement:"bottom-start",whileElementsMounted:Xt}),{inputValue:S,handlePhoneValueChange:$,country:C,setCountry:A}=rl({countries:Qa,defaultCountry:"us",value:p?String(p):void 0}),P=e.useCallback((()=>{v((t=>!t)),g||x("")}),[g]),T=e.useCallback((t=>()=>{A(t),v(!1),x("")}),[A,v]),E=e.useCallback((t=>{1===t.key.length?x((e=>e+t.key)):"Backspace"===t.key&&x((t=>t.slice(0,-1)))}),[]),j=Qa.filter((t=>{const{name:e}=ol(t);return e.toLowerCase().includes(b.toLowerCase())}));return zi(k.floating.current,(()=>{v(!1),x("")}),!0),y.jsx(_l,{error:r,htmlFor:c,label:s,mode:l,required:h,tooltip:u,children:y.jsxs(ml,{className:`${i?"disabled":""} ${r?"error":""}`,ref:w,children:[y.jsxs(gl,{"aria-label":"country-selector","data-testid":"country-selector",disabled:i,id:"country-selector",onClick:P,onKeyDown:E,ref:k.setReference,children:[y.jsx(ul,{iso2:C.iso2,size:"16px"}),y.jsx(V,{icon:"angle-down",iconColor:m.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(kl,{className:`light ${i?"disabled":""} ${r?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":r?"true":"false","aria-label":c,"aria-required":h,autoComplete:"off","data-testid":`${c}-input`,disabled:i,id:c,name:c,onChange:$,ref:f,type:"tel",value:S,...d}),r?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}):void 0]}),g&&n.createPortal(y.jsx(yl,{ref:k.setFloating,style:_,children:j.map((t=>{const{dialCode:e,iso2:n,name:i}=ol(t);return y.jsxs(vl,{onClick:T(n),value:n,children:[y.jsx(ul,{iso2:n,size:"16px"}),y.jsx(bl,{children:i}),y.jsx(L,{color:m.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+e})]},n)}))}),document.getElementById("root")??document.body)]})})})),$l=e.forwardRef((function({disabled:e,error:n,label:i,mode:r="light",name:s,required:o,tooltip:a,type:l="text",...c},h){const u=t.useTheme();return y.jsx(_l,{error:n,htmlFor:s,label:i,mode:r,required:o,tooltip:a,children:y.jsxs(kl,{className:`${r} ${e?"disabled":""} ${n?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":s,"aria-required":o,autoComplete:"off","data-testid":`${s}-input`,disabled:e,id:s,name:s,ref:h,type:l,...c}),n?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]})})})),Cl=t.styled.div`
212
+ `,Cl=({children:e,error:n,htmlFor:r,label:i,mode:o,required:s,tooltip:a})=>{const l=t.useTheme();return y.jsxs(kl,{children:[void 0===i?void 0:y.jsx(wl,{htmlFor:r,label:i,mode:o,required:s,tooltip:a}),e,n?y.jsx(F,{className:"error-msg",color:l.palette.error[500],display:"block",lineSpacing:1,size:"sm",sizeSm:"xs",children:n}):void 0]})},_l=e.forwardRef((function({disabled:r,error:i,label:o,mode:l="light",name:c,required:u,tooltip:p,value:h,...d},f){const m=t.useTheme(),[g,v]=e.useState(!1),[b,x]=e.useState(""),w=e.useRef(null),{refs:k,floatingStyles:S}=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:u,open:p}=t,[h,d]=s.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,m]=s.useState(r);ie(f,r)||m(r);const[g,y]=s.useState(null),[v,b]=s.useState(null),x=s.useCallback((t=>{t!==C.current&&(C.current=t,y(t))}),[]),w=s.useCallback((t=>{t!==_.current&&(_.current=t,b(t))}),[]),k=o||g,S=l||v,C=s.useRef(null),_=s.useRef(null),$=s.useRef(h),E=null!=u,P=ae(u),T=ae(i),A=ae(p),j=s.useCallback((()=>{if(!C.current||!_.current)return;const t={placement:e,strategy:n,middleware:f};T.current&&(t.platform=T.current),ne(C.current,_.current,t).then((t=>{const e={...t,isPositioned:!1!==A.current};O.current&&!ie($.current,e)&&($.current=e,a.flushSync((()=>{d(e)})))}))}),[f,e,n,T,A]);re((()=>{!1===p&&$.current.isPositioned&&($.current.isPositioned=!1,d((t=>({...t,isPositioned:!1}))))}),[p]);const O=s.useRef(!1);re((()=>(O.current=!0,()=>{O.current=!1})),[]),re((()=>{if(k&&(C.current=k),S&&(_.current=S),k&&S){if(P.current)return P.current(k,S,j);j()}}),[k,S,j,P,E]);const M=s.useMemo((()=>({reference:C,floating:_,setReference:x,setFloating:w})),[x,w]),D=s.useMemo((()=>({reference:k,floating:S})),[k,S]),I=s.useMemo((()=>{const t={position:n,left:0,top:0};if(!D.floating)return t;const e=se(D.floating,h.x),r=se(D.floating,h.y);return c?{...t,transform:"translate("+e+"px, "+r+"px)",...oe(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}}),[n,c,D.floating,h.x,h.y]);return s.useMemo((()=>({...h,update:j,refs:M,elements:D,floatingStyles:I})),[h,j,M,D,I])}({placement:"bottom-start",whileElementsMounted:Qt}),{inputValue:C,handlePhoneValueChange:_,country:$,setCountry:E}=ol({countries:Ya,defaultCountry:"us",value:h?String(h):void 0}),P=e.useCallback((()=>{v((t=>!t)),g||x("")}),[g]),T=e.useCallback((t=>()=>{E(t),v(!1),x("")}),[E,v]),A=e.useCallback((t=>{1===t.key.length?x((e=>e+t.key)):"Backspace"===t.key&&x((t=>t.slice(0,-1)))}),[]),j=Ya.filter((t=>{const{name:e}=al(t);return e.toLowerCase().includes(b.toLowerCase())}));return Nr(k.floating.current,(()=>{v(!1),x("")}),!0),y.jsx(Cl,{error:i,htmlFor:c,label:o,mode:l,required:u,tooltip:p,children:y.jsxs(gl,{className:`${r?"disabled":""} ${i?"error":""}`,ref:w,children:[y.jsxs(yl,{"aria-label":"country-selector","data-testid":"country-selector",disabled:r,id:"country-selector",onClick:P,onKeyDown:A,ref:k.setReference,children:[y.jsx(hl,{iso2:$.iso2,size:"16px"}),y.jsx(V,{icon:"angle-down",iconColor:m.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(Sl,{className:`light ${r?"disabled":""} ${i?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":i?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off","data-testid":`${c}-input`,disabled:r,id:c,name:c,onChange:_,ref:f,type:"tel",value:C,...d}),i?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}):void 0]}),g&&n.createPortal(y.jsx(vl,{ref:k.setFloating,style:S,children:j.map((t=>{const{dialCode:e,iso2:n,name:r}=al(t);return y.jsxs(bl,{onClick:T(n),value:n,children:[y.jsx(hl,{iso2:n,size:"16px"}),y.jsx(xl,{children:r}),y.jsx(F,{color:m.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+e})]},n)}))}),document.getElementById("root")??document.body)]})})})),$l=e.forwardRef((function({disabled:e,error:n,label:r,mode:i="light",name:o,required:s,tooltip:a,type:l="text",...c},u){const p=t.useTheme();return y.jsx(Cl,{error:n,htmlFor:o,label:r,mode:i,required:s,tooltip:a,children:y.jsxs(Sl,{className:`${i} ${e?"disabled":""} ${n?"error":""}`,children:[y.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":o,"aria-required":s,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,ref:u,type:l,...c}),n?y.jsx(V,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:p.palette.error[500],iconSize:"xs"}):void 0]})})})),El=t.styled.div`
213
213
  ${({theme:t})=>`\n align-items: flex-start;\n backdrop-filter: blur(3.15px);\n background: radial-gradient(\n 68.83% 167.8% at 171.9% 90.34%,\n ${t.palette.complementary[300]} 0%,\n ${t.palette.primary[400]} 100%\n ),\n linear-gradient(\n 241deg,\n ${t.palette.primary[400]} 3.45%,\n ${t.palette.primary[500]} 82.59%\n );\n border-radius: ${t.spacing[1]};\n box-shadow: ${t.shadows.md};\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.625]};\n height: 300px;\n padding: ${t.spacing[1]};\n position: relative;\n width: 300px;\n\n button > * {\n font-size: ${t.typography.text.sm};\n }\n\n #hovered {\n display: none;\n }\n\n &:hover {\n background: ${t.palette.gray[900]};\n\n #hovered {\n display: flex;\n }\n #uncover {\n display: none;\n }\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n height: 320px;\n width: 320px;\n\n #hovered {\n margin-bottom: ${t.spacing[1.75]};\n }\n }\n `}
214
- `,Al=t.styled.div`
214
+ `,Pl=t.styled.div`
215
215
  align-items: center;
216
216
  position: absolute;
217
217
  justify-content: center;
@@ -225,27 +225,68 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
225
225
  height: 260px;
226
226
  width: 260px;
227
227
  }
228
- `,Pl=({icon:t})=>y.jsx(Al,{children:y.jsx(V,{icon:t,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Tl=t.styled.button`
228
+ `,Tl=({icon:t})=>y.jsx(Pl,{children:y.jsx(V,{icon:t,iconColor:v.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Al=t.styled.button`
229
229
  ${({theme:t})=>`\n align-items: center;\n border-left: 3px solid transparent;\n display: flex;\n gap: ${t.spacing[.625]};\n height: 42px;\n min-width: 50px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n\n &.dark {\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.gray[25]};\n\n &.disabled {\n border-color: ${t.palette.gray[500]};\n color: ${t.palette.gray[500]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${t.palette.gray[700]};\n border-color: ${t.palette.primary[400]};\n }\n }\n\n &.light {\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n\n &.disabled {\n background-color: ${t.palette.white};\n border-color: ${t.palette.gray[300]};\n color: ${t.palette.gray[300]};\n cursor: not-allowed;\n }\n\n &:hover:not(.disabled) {\n background-color: ${t.palette.gray[100]};\n border-color: ${t.palette.primary[400]};\n }\n }\n `}
230
- `,El=t.styled.div`
231
- ${({theme:t})=>`\n align-items: center;\n background-color: transparent;\n border-bottom: 2px solid transparent;\n display: flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.5]};\n height: 30px;\n justify-content: center;\n padding: ${t.spacing[.25]};\n margin-bottom: ${t.spacing[.25]};\n min-width: 50px;\n width: max-content;\n z-index: 11;\n\n &:hover {\n border-color: ${t.palette.primary[400]};\n }\n\n &.dark {\n color: ${t.palette.gray[25]};\n }\n\n &.light {\n color: ${t.palette.gray[800]};\n }\n `}
232
230
  `,jl=t.styled.div`
231
+ ${({theme:t})=>`\n align-items: center;\n background-color: transparent;\n border-bottom: 2px solid transparent;\n display: flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n gap: ${t.spacing[.5]};\n height: 30px;\n justify-content: center;\n padding: ${t.spacing[.25]};\n margin-bottom: ${t.spacing[.25]};\n min-width: 50px;\n width: max-content;\n z-index: 11;\n\n &:hover {\n border-color: ${t.palette.primary[400]};\n }\n\n &.dark {\n color: ${t.palette.gray[25]};\n }\n\n &.light {\n color: ${t.palette.gray[800]};\n }\n `}
232
+ `,Ol=t.styled.div`
233
233
  ${({theme:t})=>`\n background-color: ${t.palette.white};\n border-radius: 0 0 ${t.spacing[.25]} ${t.spacing[.25]};\n box-shadow: ${t.shadows.lg};\n display: none;\n flex-direction: column;\n position: absolute;\n top: 100%;\n z-index: 11;\n\n > button:last-child {\n border-radius: 0 0 ${t.spacing[.25]} ${t.spacing[.25]};\n }\n `}
234
- `,Dl=t.styled.div`
234
+ `,Ml=t.styled.div`
235
235
  ${({theme:t})=>`\n align-items: flex-start;\n cursor: pointer;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.25]};\n height: max-content;\n position: relative;\n width: max-content;\n z-index: 10;\n\n &:hover {\n > div:first-child {\n border-color: ${t.palette.primary[400]};\n }\n\n > div:last-child {\n display: flex;\n }\n }\n `}
236
- `,Ml=({disabled:t=!1,mode:e,onClick:n,text:i})=>y.jsx(Tl,{className:`${t&&"disabled"} ${e}`,disabled:t,onClick:n,children:y.jsx(L,{color:"inherit",size:"sm",sizeSm:"xs",children:i})}),Fl=[{text:"EN"},{text:"ES"}],Il=t.styled.li`
236
+ `,Dl=({disabled:t=!1,mode:e,onClick:n,text:r})=>y.jsx(Al,{className:`${t&&"disabled"} ${e}`,disabled:t,onClick:n,children:y.jsx(F,{color:"inherit",size:"sm",sizeSm:"xs",children:r})}),Il=[{text:"EN"},{text:"ES"}],Rl=t.styled.li`
237
237
  ${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n color: ${t.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n justify-content: space-between;\n gap: ${t.spacing[.625]};\n line-height: ${t.spacing[1.25]};\n list-style-type: none;\n min-height: 40px;\n min-width: 240px;\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n pointer-events: auto;\n\n p,\n a {\n word-break: break-word;\n }\n\n & > label {\n margin: unset;\n }\n\n a {\n color: ${t.palette.gray[500]};\n }\n\n &[aria-disabled="true"] {\n color: ${t.palette.gray[300]};\n pointer-events: none;\n\n a {\n color: ${t.palette.gray[300]};\n }\n }\n\n &[aria-selected="true"] {\n background-color: ${t.palette.gray[200]};\n }\n\n &:hover:not([aria-selected="true"]) {\n background-color: ${t.palette.gray[100]};\n }\n `}
238
- `,Rl=t.styled.ul`
238
+ `,Fl=t.styled.ul`
239
239
  ${({theme:t})=>`\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n box-shadow: ${t.shadows.md};\n display: inline-block;\n margin: unset;\n min-width: 240px;\n padding: ${t.spacing[.25]} 0 ${t.spacing[.25]} 0;\n `}
240
240
  `,Ll=t.styled.span`
241
241
  ${({theme:t,$bgColor:e=t.palette.secondary[500],$txtDecoration:n="none"})=>`\n background-color: ${e};\n border-radius: 5px;\n color: ${t.palette.white};\n font-size: 10px;\n padding: ${t.spacing[.125]} ${t.spacing[.25]} ${t.spacing[.125]} ${t.spacing[.25]};\n text-decoration: ${n}\n `}
242
- `,Ol={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},zl=t.styled.div`
242
+ `,Nl={lg:"56",md:"30",sm:"12"},{getVariant:zl}=l((t=>({red:`stroke: ${t.palette.primary[500]};`,white:`stroke: ${t.palette.white};`}))),Vl=t.keyframes`
243
+ 0% {
244
+ transform: rotateZ(0deg);
245
+ }
246
+ 100% {
247
+ transform: rotateZ(360deg)
248
+ }
249
+ `,Bl=t.keyframes`
250
+ 0%,
251
+ 25% {
252
+ stroke-dashoffset: 280;
253
+ transform: rotate(0);
254
+ }
255
+
256
+ 50%,
257
+ 75% {
258
+ stroke-dashoffset: 75;
259
+ transform: rotate(45deg);
260
+ }
261
+
262
+ 100% {
263
+ stroke-dashoffset: 280;
264
+ transform: rotate(360deg);
265
+ }
266
+ `,Wl=t.css`
267
+ animation: ${Vl} 2s linear infinite;
268
+ `,ql=t.css`
269
+ animation: 1.4s ease-in-out infinite both ${Bl};
270
+ `,Ul=t.styled.svg`
271
+ ${Wl}
272
+ ${({$size:t="md"})=>`\n animation-timing-function: linear;\n display: inline-block;\n width: ${Nl[t]}px;\n `}
273
+ `,Hl=t.styled.circle`
274
+ ${({theme:t,$color:e="red"})=>`\n ${ql}\n display: block;\n fill: transparent;\n stroke-linecap: round;\n stroke-dasharray: 283;\n stroke-dashoffset: 280;\n stroke-width: 10px;\n transform-origin: 50% 50%;\n\n ${zl(t,e)}\n `}
275
+ `,Gl=t.styled.circle`
276
+ display: block;
277
+ fill: transparent;
278
+ stroke: ${({theme:t})=>t.palette.gray[200]};
279
+ stroke-linecap: round;
280
+ stroke-width: 10px;
281
+ transform-origin: 50% 50%;
282
+ opacity: ${({$color:t})=>"white"===t?"20%":"unset"};
283
+ `,Kl={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"}},Yl=t.styled.div`
243
284
  display: flex;
244
285
  height: 80px;
245
286
  max-width: 1440px;
246
287
  overflow: hidden;
247
288
  position: relative;
248
- `,Nl=t.styled.div`
289
+ `,Jl=t.styled.div`
249
290
  height: 79px;
250
291
  width: 64px;
251
292
  flex-shrink: 0;
@@ -269,7 +310,7 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
269
310
  );
270
311
  right: 0;
271
312
  }
272
- `,Vl=t.styled.div`
313
+ `,Xl=t.styled.div`
273
314
  display: flex;
274
315
  gap: 40px;
275
316
  animation: clients-animation 50s linear infinite;
@@ -284,11 +325,13 @@ function Uo(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant=
284
325
  transform: translateX(calc(-180px * 15));
285
326
  }
286
327
  }
287
- `,ql=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"];var Bl={};!function(t,e){var n,i=(n=e)&&"object"==typeof n&&"default"in n?n:{default:n},r=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==h||"undefined"!=typeof self&&self,{exports:{}});!function(t,e){"undefined"!=typeof navigator&&(t.exports=function(){var t="http://www.w3.org/2000/svg",n="",i=!1,r=-999999,s=function(t){i=!!t},o=function(){return i},a=function(t){n=t},l=function(){return n};function c(t){return document.createElement(t)}function h(t,e){var n,i,r=t.length;for(n=0;n<r;n+=1)for(var s in i=t[n].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}function u(t){function e(){}return e.prototype=t,e}var p=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),d=function(){function t(t,e){var n,i=0,r=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(i=0;i<e;i+=1)r.push(n);return r}function e(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function f(t){return Array.apply(null,{length:t})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,x=Math.sqrt,w=Math.floor,k=Math.min,_=150,S=Math.PI/180,$=.5519;function C(t,e,n,i){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=i<0?-1:1}function A(t,e){this.type=t,this.direction=e<0?-1:1}function P(t,e,n,i){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=i<0?-1:1}function T(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function E(t,e){this.type=t,this.target=e}function j(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function D(t){this.type="configError",this.nativeError=t}var M,F=(M=0,function(){return y+"__lottie_element_"+(M+=1)});function I(t,e,n){var i,r,s,o,a,l,c,h;switch(l=n*(1-e),c=n*(1-(a=6*t-(o=Math.floor(6*t)))*e),h=n*(1-(1-a)*e),o%6){case 0:i=n,r=h,s=l;break;case 1:i=c,r=n,s=l;break;case 2:i=l,r=n,s=h;break;case 3:i=l,r=c,s=n;break;case 4:i=h,r=l,s=n;break;case 5:i=n,r=l,s=c}return[i,r,s]}function R(t,e,n){var i,r=Math.max(t,e,n),s=Math.min(t,e,n),o=r-s,a=0===r?0:o/r,l=r/255;switch(r){case s:i=0;break;case t:i=e-n+o*(e<n?6:0),i/=6*o;break;case e:i=n-t+2*o,i/=6*o;break;case n:i=t-e+4*o,i/=6*o}return[i,a,l]}function L(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),I(n[0],n[1],n[2])}function O(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),I(n[0],n[1],n[2])}function z(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),I(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();var N=function(t){m=!!t},V=function(){return m},q=function(t){g=t},B=function(){return g},W=function(t){_=t},U=function(){return _},H=function(t){y=t};function G(e){return document.createElementNS(t,e)}function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var J=function(){var t,e,n=1,i=[],r={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){r.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&o()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(n);return new Worker(i)}return t=e,r}function l(){e||((e=a((function(t){function e(){function t(e,n){var o,a,l,c,h,u,p=e.length;for(a=0;a<p;a+=1)if("ks"in(o=e[a])&&!o.completed){if(o.completed=!0,o.hasMask){var d=o.masksProperties;for(c=d.length,l=0;l<c;l+=1)if(d[l].pt.k.i)s(d[l].pt.k);else for(u=d[l].pt.k.length,h=0;h<u;h+=1)d[l].pt.k[h].s&&s(d[l].pt.k[h].s[0]),d[l].pt.k[h].e&&s(d[l].pt.k[h].e[0])}0===o.ty?(o.layers=i(o.refId,n),t(o.layers,n)):4===o.ty?r(o.shapes):5===o.ty&&f(o)}}function e(e,n){if(e){var r=0,s=e.length;for(r=0;r<s;r+=1)1===e[r].t&&(e[r].data.layers=i(e[r].data.refId,n),t(e[r].data.layers,n))}}function n(t,e){for(var n=0,i=e.length;n<i;){if(e[n].id===t)return e[n];n+=1}return null}function i(t,e){var i=n(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function r(t){var e,n,i;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)s(t[e].ks.k);else for(i=t[e].ks.k.length,n=0;n<i;n+=1)t[e].ks.k[n].s&&s(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&s(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function s(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function o(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var a,l=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,i=t.length;for(n=0;n<i;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),c=(a=[4,7,99],function(t){if(t.chars&&!o(a,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var i=t.chars[e];i.data&&i.data.shapes&&(r(i.data.shapes),i.data.ip=0,i.data.op=99999,i.data.st=0,i.data.sr=1,i.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(i.data.shapes.push({ty:"no"}),i.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),h=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function n(t){var n,i=t.length;for(n=0;n<i;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),u=function(){var t=[4,1,9];function e(t){var n,i,r,s=t.length;for(n=0;n<s;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(r=t[n].c.k.length,i=0;i<r;i+=1)t[n].c.k[i].s&&(t[n].c.k[i].s[0]/=255,t[n].c.k[i].s[1]/=255,t[n].c.k[i].s[2]/=255,t[n].c.k[i].s[3]/=255),t[n].c.k[i].e&&(t[n].c.k[i].e[0]/=255,t[n].c.k[i].e[1]/=255,t[n].c.k[i].e[2]/=255,t[n].c.k[i].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,i=t.length;for(n=0;n<i;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}(),p=function(){var t=[4,4,18];function e(t){var n,i,r;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(r=t[n].ks.k.length,i=0;i<r;i+=1)t[n].ks.k[i].s&&(t[n].ks.k[i].s[0].c=t[n].closed),t[n].ks.k[i].e&&(t[n].ks.k[i].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,i,r,s,o,a,l=t.length;for(i=0;i<l;i+=1){if((n=t[i]).hasMask){var c=n.masksProperties;for(s=c.length,r=0;r<s;r+=1)if(c[r].pt.k.i)c[r].pt.k.c=c[r].cl;else for(a=c[r].pt.k.length,o=0;o<a;o+=1)c[r].pt.k[o].s&&(c[r].pt.k[o].s[0].c=c[r].cl),c[r].pt.k[o].e&&(c[r].pt.k[o].e[0].c=c[r].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(o(t,e.v)&&(n(e.layers),e.assets)){var i,r=e.assets.length;for(i=0;i<r;i+=1)e.assets[i].layers&&n(e.assets[i].layers)}}}();function d(n){n.__complete||(u(n),l(n),c(n),h(n),p(n),t(n.layers,n.assets),e(n.chars,n.assets),n.__complete=!0)}function f(t){0===t.t.a.length&&t.t.p}var m={};return m.completeData=d,m.checkColors=u,m.checkChars=c,m.checkPathProperties=h,m.checkShapes=p,m.completeLayers=t,m}if(s.dataManager||(s.dataManager=e()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===Q(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function e(e,n,i,r){var s,o=new XMLHttpRequest;try{o.responseType="json"}catch(a){}o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status)s=t(o),i(s);else try{s=t(o),i(s)}catch(a){r&&r(a)}};try{o.open(["G","E","T"].join(""),e,!0)}catch(a){o.open(["G","E","T"].join(""),n+"/"+e,!0)}o.send()}return{load:e}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var n=t.data.animation;s.dataManager.completeData(n),s.postMessage({id:t.data.id,payload:n,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,(function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){s.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,n=e.id,r=i[n];i[n]=null,"success"===e.status?r.onComplete(e.payload):r.onError&&r.onError()})}function c(t,e){var r="processId_"+(n+=1);return i[r]={onComplete:t,onError:e},r}function h(t,n,i){l();var r=c(n,i);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:r})}function u(t,n,i){l();var r=c(n,i);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:r})}function p(t,n,i){l();var r=c(n,i);e.postMessage({type:"complete",animation:t,id:r})}return{loadAnimation:h,loadData:u,completeAnimation:p}}(),K=function(){var t=function(){var t=c("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,n){var i="";if(t.e)i=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),i=e+r}else i=n,i+=t.u?t.u:"",i+=t.p;return i}function r(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function s(e){var n=i(e,this.assetsPath,this.path),r=G("image");v?this.testImageLoaded(r):r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(r):this._elementHelper.appendChild(r);var s={img:r,assetData:e};return s}function o(e){var n=i(e,this.assetsPath,this.path),r=c("img");r.crossOrigin="anonymous",r.addEventListener("load",this._imageLoaded,!1),r.addEventListener("error",function(){s.img=t,this._imageLoaded()}.bind(this),!1),r.src=n;var s={img:r,assetData:e};return s}function a(t){var e={assetData:t},n=i(t,this.assetsPath,this.path);return J.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function l(t,e){var n;this.imagesLoadedCb=e;var i=t.length;for(n=0;n<i;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))}function h(t){this.path=t||""}function u(t){this.assetsPath=t||""}function p(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:l,setAssetsPath:u,setPath:h,loadedImages:f,loadedFootages:m,destroy:d,getAsset:p,createImgData:o,createImageData:s,imageLoaded:e,footageLoaded:n,setCacheType:g},y}();function Y(){}Y.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],i=0;i<n.length;i+=1)n[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,i=this._cbs[t].length;n<i;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,i-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var X=function(){function t(t){for(var e,n=t.split("\r\n"),i={},r=0,s=0;s<n.length;s+=1)2===(e=n[s].split(":")).length&&(i[e[0]]=e[1].trim(),r+=1);if(0===r)throw new Error;return i}return function(e){for(var n=[],i=0;i<e.length;i+=1){var r=e[i],s={time:r.tm,duration:r.dr};try{s.payload=JSON.parse(e[i].cm)}catch(o){try{s.payload=t(e[i].cm)}catch(a){s.payload={name:e[i].cm}}}n.push(s)}return n}}(),Z=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),tt={},et=function(t,e){tt[t]=e};function nt(t){return tt[t]}function it(t){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var rt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=V(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Z(),this.imagePreloader=new K,this.audioController=p(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new C("drawnFrame",0,0,0)};h([Y],rt),rt.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=nt(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),J.loadAnimation(t.path,this.configAnimation,this.onSetupError))},rt.prototype.onSetupError=function(){this.trigger("data_failed")},rt.prototype.setupAnimation=function(t){J.completeAnimation(t,this.configAnimation)},rt.prototype.setData=function(t,e){e&&"object"!==it(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},i=t.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var r=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===r?n.loop=!1:"true"===r?n.loop=!0:""!==r&&(n.loop=parseInt(r,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;n.autoplay="false"!==s,n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},rt.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,i=this.animationData.layers,r=i.length,s=t.layers,o=s.length;for(n=0;n<o;n+=1)for(e=0;e<r;){if(i[e].id===s[n].id){i[e]=s[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,J.completeAnimation(this.animationData,this.onSegmentComplete)},rt.prototype.onSegmentComplete=function(t){this.animationData=t;var e=B();e&&e.initExpressions(this),this.loadNextSegment()},rt.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,J.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},rt.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},rt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},rt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},rt.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=X(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},rt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},rt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=B();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},rt.prototype.resize=function(t,e){var n="number"==typeof t?t:void 0,i="number"==typeof e?e:void 0;this.renderer.updateContainerSize(n,i)},rt.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},rt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},rt.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},rt.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},rt.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},rt.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},rt.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},rt.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},rt.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var i=Number(t);if(isNaN(i)){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},rt.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var i=Number(t);if(isNaN(i)){var r=this.getMarkerData(t);r&&(r.duration?this.playSegments([r.time,r.time+r.duration],!0):this.goToAndStop(r.time,!0))}else this.goToAndStop(i,e,n);this.play()}},rt.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},rt.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},rt.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},rt.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===it(t[0])){var n,i=t.length;for(n=0;n<i;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},rt.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},rt.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},rt.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},rt.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},rt.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},rt.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},rt.prototype.setLoop=function(t){this.loop=t},rt.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},rt.prototype.getVolume=function(){return this.audioController.getVolume()},rt.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},rt.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},rt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},rt.prototype.getPath=function(){return this.path},rt.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},rt.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},rt.prototype.hide=function(){this.renderer.hide()},rt.prototype.show=function(){this.renderer.show()},rt.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},rt.prototype.updateDocumentData=function(t,e,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}catch(i){}},rt.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new C(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new P(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new A(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new T(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new E(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new C(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new P(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new A(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new T(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new E(t,this))},rt.prototype.triggerRenderFrameError=function(t){var e=new j(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},rt.prototype.triggerConfigError=function(t){var e=new D(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var st=function(){var t={},e=[],n=0,i=0,r=0,s=!0,o=!1;function a(t){for(var n=0,r=t.target;n<i;)e[n].animation===r&&(e.splice(n,1),n-=1,i-=1,r.isPaused||p()),n+=1}function l(t,n){if(!t)return null;for(var r=0;r<i;){if(e[r].elem===t&&null!==e[r].elem)return e[r].animation;r+=1}var s=new rt;return d(s,t),s.setData(t,n),s}function h(){var t,n=e.length,i=[];for(t=0;t<n;t+=1)i.push(e[t].animation);return i}function u(){r+=1,A()}function p(){r-=1}function d(t,n){t.addEventListener("destroy",a),t.addEventListener("_active",u),t.addEventListener("_idle",p),e.push({elem:n,animation:t}),i+=1}function f(t){var e=new rt;return d(e,null),e.setParams(t),e}function m(t,n){var r;for(r=0;r<i;r+=1)e[r].animation.setSpeed(t,n)}function g(t,n){var r;for(r=0;r<i;r+=1)e[r].animation.setDirection(t,n)}function y(t){var n;for(n=0;n<i;n+=1)e[n].animation.play(t)}function v(t){var a,l=t-n;for(a=0;a<i;a+=1)e[a].animation.advanceTime(l);n=t,r&&!o?window.requestAnimationFrame(v):s=!0}function b(t){n=t,window.requestAnimationFrame(v)}function x(t){var n;for(n=0;n<i;n+=1)e[n].animation.pause(t)}function w(t,n,r){var s;for(s=0;s<i;s+=1)e[s].animation.goToAndStop(t,n,r)}function k(t){var n;for(n=0;n<i;n+=1)e[n].animation.stop(t)}function _(t){var n;for(n=0;n<i;n+=1)e[n].animation.togglePause(t)}function S(t){var n;for(n=i-1;n>=0;n-=1)e[n].animation.destroy(t)}function $(t,e,n){var i,r=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=r.length;for(i=0;i<s;i+=1)n&&r[i].setAttribute("data-bm-type",n),l(r[i],t);if(e&&0===s){n||(n="svg");var o=document.getElementsByTagName("body")[0];o.innerText="";var a=c("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",n),o.appendChild(a),l(a,t)}}function C(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()}function A(){!o&&r&&s&&(window.requestAnimationFrame(b),s=!1)}function P(){o=!0}function T(){o=!1,A()}function E(t,n){var r;for(r=0;r<i;r+=1)e[r].animation.setVolume(t,n)}function j(t){var n;for(n=0;n<i;n+=1)e[n].animation.mute(t)}function D(t){var n;for(n=0;n<i;n+=1)e[n].animation.unmute(t)}return t.registerAnimation=l,t.loadAnimation=f,t.setSpeed=m,t.setDirection=g,t.play=y,t.pause=x,t.stop=k,t.togglePause=_,t.searchAnimations=$,t.resize=C,t.goToAndStop=w,t.destroy=S,t.freeze=P,t.unfreeze=T,t.setVolume=E,t.mute=j,t.unmute=D,t.getRegisteredAnimations=h,t}(),ot=function(){var t={};t.getBezierEasing=n;var e={};function n(t,n,i,r,s){var o=s||("bez_"+t+"_"+n+"_"+i+"_"+r).replace(/\./g,"p");if(e[o])return e[o];var a=new y([t,n,i,r]);return e[o]=a,a}var i=4,r=.001,s=1e-7,o=10,a=11,l=1/(a-1),c="function"==typeof Float32Array;function h(t,e){return 1-3*e+3*t}function u(t,e){return 3*e-6*t}function p(t){return 3*t}function d(t,e,n){return((h(e,n)*t+u(e,n))*t+p(e))*t}function f(t,e,n){return 3*h(e,n)*t*t+2*u(e,n)*t+p(e)}function m(t,e,n,i,r){var a,l,c=0;do{(a=d(l=e+(n-e)/2,i,r)-t)>0?n=l:e=l}while(Math.abs(a)>s&&++c<o);return l}function g(t,e,n,r){for(var s=0;s<i;++s){var o=f(e,n,r);if(0===o)return e;e-=(d(e,n,r)-t)/o}return e}function y(t){this._p=t,this._mSampleValues=c?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],n=this._p[1],i=this._p[2],r=this._p[3];return this._precomputed||this._precompute(),e===n&&i===r?t:0===t?0:1===t?1:d(this._getTForX(t),n,r)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&n===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<a;++n)this._mSampleValues[n]=d(n*l,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],i=this._mSampleValues,s=0,o=1,c=a-1;o!==c&&i[o]<=t;++o)s+=l;var h=s+(t-i[--o])/(i[o+1]-i[o])*l,u=f(h,e,n);return u>=r?g(t,h,e,n):0===u?h:m(t,s,s+l,e,n)}},t}(),at=function(){function t(t){return t.concat(f(t.length))}return{double:t}}(),lt=function(t,e,n){var i=0,r=t,s=f(r);function o(){return i?s[i-=1]:e()}function a(t){i===r&&(s=at.double(s),r*=2),n&&n(t),s[i]=t,i+=1}return{newElement:o,release:a}},ct=function(){function t(){return{addedLength:0,percents:d("float32",U()),lengths:d("float32",U())}}return lt(8,t)}(),ht=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)ct.release(t.lengths[e]);t.lengths.length=0}return lt(8,t,e)}();function ut(){var t=Math;function e(t,e,n,i,r,s){var o=t*i+e*r+n*s-r*i-s*t-n*e;return o>-.001&&o<.001}function n(n,i,r,s,o,a,l,c,h){if(0===r&&0===a&&0===h)return e(n,i,s,o,l,c);var u,p=t.sqrt(t.pow(s-n,2)+t.pow(o-i,2)+t.pow(a-r,2)),d=t.sqrt(t.pow(l-n,2)+t.pow(c-i,2)+t.pow(h-r,2)),f=t.sqrt(t.pow(l-s,2)+t.pow(c-o,2)+t.pow(h-a,2));return(u=p>d?p>f?p-d-f:f-d-p:f>d?f-d-p:d-p-f)>-1e-4&&u<1e-4}var i=function(t,e,n,i){var r,s,o,a,l,c,h=U(),u=0,p=[],d=[],f=ct.newElement();for(o=n.length,r=0;r<h;r+=1){for(l=r/(h-1),c=0,s=0;s<o;s+=1)a=b(1-l,3)*t[s]+3*b(1-l,2)*l*n[s]+3*(1-l)*b(l,2)*i[s]+b(l,3)*e[s],p[s]=a,null!==d[s]&&(c+=b(p[s]-d[s],2)),d[s]=p[s];c&&(u+=c=x(c)),f.percents[r]=l,f.lengths[r]=u}return f.addedLength=u,f};function r(t){var e,n=ht.newElement(),r=t.c,s=t.v,o=t.o,a=t.i,l=t._length,c=n.lengths,h=0;for(e=0;e<l-1;e+=1)c[e]=i(s[e],s[e+1],o[e],a[e+1]),h+=c[e].addedLength;return r&&l&&(c[e]=i(s[e],s[0],o[e],a[0]),h+=c[e].addedLength),n.totalLength=h,n}function s(t){this.segmentLength=0,this.points=new Array(t)}function o(t,e){this.partialLength=t,this.point=e}var a,l=(a={},function(t,n,i,r){var l=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]).replace(/\./g,"p");if(!a[l]){var c,h,u,p,d,m,g,y=U(),v=0,w=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+i[0],t[1]+i[1])&&e(t[0],t[1],n[0],n[1],n[0]+r[0],n[1]+r[1])&&(y=2);var k=new s(y);for(u=i.length,c=0;c<y;c+=1){for(g=f(u),d=c/(y-1),m=0,h=0;h<u;h+=1)p=b(1-d,3)*t[h]+3*b(1-d,2)*d*(t[h]+i[h])+3*(1-d)*b(d,2)*(n[h]+r[h])+b(d,3)*n[h],g[h]=p,null!==w&&(m+=b(g[h]-w[h],2));v+=m=x(m),k.points[c]=new o(m,g),w=g}k.segmentLength=v,a[l]=k}return a[l]});function c(t,e){var n=e.percents,i=e.lengths,r=n.length,s=w((r-1)*t),o=t*e.addedLength,a=0;if(s===r-1||0===s||o===i[s])return n[s];for(var l=i[s]>o?-1:1,c=!0;c;)if(i[s]<=o&&i[s+1]>o?(a=(o-i[s])/(i[s+1]-i[s]),c=!1):s+=l,s<0||s>=r-1){if(s===r-1)return n[s];c=!1}return n[s]+(n[s+1]-n[s])*a}function h(e,n,i,r,s,o){var a=c(s,o),l=1-a;return[t.round(1e3*(l*l*l*e[0]+(a*l*l+l*a*l+l*l*a)*i[0]+(a*a*l+l*a*a+a*l*a)*r[0]+a*a*a*n[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(a*l*l+l*a*l+l*l*a)*i[1]+(a*a*l+l*a*a+a*l*a)*r[1]+a*a*a*n[1]))/1e3]}var u=d("float32",8);function p(e,n,i,r,s,o,a){s<0?s=0:s>1&&(s=1);var l,h=c(s,a),p=c(o=o>1?1:o,a),d=e.length,f=1-h,m=1-p,g=f*f*f,y=h*f*f*3,v=h*h*f*3,b=h*h*h,x=f*f*m,w=h*f*m+f*h*m+f*f*p,k=h*h*m+f*h*p+h*f*p,_=h*h*p,S=f*m*m,$=h*m*m+f*p*m+f*m*p,C=h*p*m+f*p*p+h*m*p,A=h*p*p,P=m*m*m,T=p*m*m+m*p*m+m*m*p,E=p*p*m+m*p*p+p*m*p,j=p*p*p;for(l=0;l<d;l+=1)u[4*l]=t.round(1e3*(g*e[l]+y*i[l]+v*r[l]+b*n[l]))/1e3,u[4*l+1]=t.round(1e3*(x*e[l]+w*i[l]+k*r[l]+_*n[l]))/1e3,u[4*l+2]=t.round(1e3*(S*e[l]+$*i[l]+C*r[l]+A*n[l]))/1e3,u[4*l+3]=t.round(1e3*(P*e[l]+T*i[l]+E*r[l]+j*n[l]))/1e3;return u}return{getSegmentsLength:r,getNewSegment:p,getPointInSegment:h,buildBezierData:l,pointOnLine2D:e,pointOnLine3D:n}}var pt=ut(),dt=function(){var t=r,e=Math.abs;function n(t,e){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=d("float32",this.pv.length));for(var a,l,c,h,u,p,f,m,g,y=e.lastIndex,v=y,b=this.keyframes.length-1,x=!0;x;){if(a=this.keyframes[v],l=this.keyframes[v+1],v===b-1&&t>=l.t-r){a.h&&(a=l),y=0;break}if(l.t-r>t){y=v;break}v<b-1?v+=1:(y=0,x=!1)}c=this.keyframesMetadata[v]||{};var w,k=l.t-r,_=a.t-r;if(a.to){c.bezierData||(c.bezierData=pt.buildBezierData(a.s,l.s||a.e,a.to,a.ti));var S=c.bezierData;if(t>=k||t<_){var $=t>=k?S.points.length-1:0;for(u=S.points[$].point.length,h=0;h<u;h+=1)n[h]=S.points[$].point[h]}else{c.__fnct?g=c.__fnct:(g=ot.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,c.__fnct=g),p=g((t-_)/(k-_));var C,A=S.segmentLength*p,P=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastAddedLength:0;for(m=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastPoint:0,x=!0,f=S.points.length;x;){if(P+=S.points[m].partialLength,0===A||0===p||m===S.points.length-1){for(u=S.points[m].point.length,h=0;h<u;h+=1)n[h]=S.points[m].point[h];break}if(A>=P&&A<P+S.points[m+1].partialLength){for(C=(A-P)/S.points[m+1].partialLength,u=S.points[m].point.length,h=0;h<u;h+=1)n[h]=S.points[m].point[h]+(S.points[m+1].point[h]-S.points[m].point[h])*C;break}m<f-1?m+=1:x=!1}e._lastPoint=m,e._lastAddedLength=P-S.points[m].partialLength,e._lastKeyframeIndex=v}}else{var T,E,j,D,M;if(b=a.s.length,w=l.s||a.e,this.sh&&1!==a.h)t>=k?(n[0]=w[0],n[1]=w[1],n[2]=w[2]):t<=_?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):s(n,i(o(a.s),o(w),(t-_)/(k-_)));else for(v=0;v<b;v+=1)1!==a.h&&(t>=k?p=1:t<_?p=0:(a.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[v]?g=c.__fnct[v]:(T=void 0===a.o.x[v]?a.o.x[0]:a.o.x[v],E=void 0===a.o.y[v]?a.o.y[0]:a.o.y[v],j=void 0===a.i.x[v]?a.i.x[0]:a.i.x[v],D=void 0===a.i.y[v]?a.i.y[0]:a.i.y[v],g=ot.getBezierEasing(T,E,j,D).get,c.__fnct[v]=g)):c.__fnct?g=c.__fnct:(T=a.o.x,E=a.o.y,j=a.i.x,D=a.i.y,g=ot.getBezierEasing(T,E,j,D).get,a.keyframeMetadata=g),p=g((t-_)/(k-_)))),w=l.s||a.e,M=1===a.h?a.s[v]:a.s[v]+(w[v]-a.s[v])*p,"multidimensional"===this.propType?n[v]=M:n=M}return e.lastIndex=y,n}function i(t,e,n){var i,r,s,o,a,l=[],c=t[0],h=t[1],u=t[2],p=t[3],d=e[0],f=e[1],m=e[2],g=e[3];return(r=c*d+h*f+u*m+p*g)<0&&(r=-r,d=-d,f=-f,m=-m,g=-g),1-r>1e-6?(i=Math.acos(r),s=Math.sin(i),o=Math.sin((1-n)*i)/s,a=Math.sin(n*i)/s):(o=1-n,a=n),l[0]=o*c+a*d,l[1]=o*h+a*f,l[2]=o*u+a*m,l[3]=o*p+a*g,l}function s(t,e){var n=e[0],i=e[1],r=e[2],s=e[3],o=Math.atan2(2*i*s-2*n*r,1-2*i*i-2*r*r),a=Math.asin(2*n*i+2*r*s),l=Math.atan2(2*n*s-2*i*r,1-2*n*n-2*r*r);t[0]=o/S,t[1]=a/S,t[2]=l/S}function o(t){var e=t[0]*S,n=t[1]*S,i=t[2]*S,r=Math.cos(e/2),s=Math.cos(n/2),o=Math.cos(i/2),a=Math.sin(e/2),l=Math.sin(n/2),c=Math.sin(i/2);return[a*l*o+r*s*c,a*s*o+r*l*c,r*l*o-a*s*c,r*s*o-a*l*c]}function a(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function l(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)n=t[i]*this.mult,e(this.v[i]-n)>1e-5&&(this.v[i]=n,this._mdf=!0),i+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function u(t,e,n,i){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=h}function p(t,e,n,i){var r;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s=e.k.length;for(this.v=d("float32",s),this.pv=d("float32",s),this.vel=d("float32",s),r=0;r<s;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=h}function f(e,i,r,s){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=r||1,this.elem=e,this.container=s,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[a.bind(this)],this.addEffect=h}function m(e,i,r,s){var o;this.propType="multidimensional";var u,p,f,m,g=i.k.length;for(o=0;o<g-1;o+=1)i.k[o].to&&i.k[o].s&&i.k[o+1]&&i.k[o+1].s&&(u=i.k[o].s,p=i.k[o+1].s,f=i.k[o].to,m=i.k[o].ti,(2===u.length&&(u[0]!==p[0]||u[1]!==p[1])&&pt.pointOnLine2D(u[0],u[1],p[0],p[1],u[0]+f[0],u[1]+f[1])&&pt.pointOnLine2D(u[0],u[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===u.length&&(u[0]!==p[0]||u[1]!==p[1]||u[2]!==p[2])&&pt.pointOnLine3D(u[0],u[1],u[2],p[0],p[1],p[2],u[0]+f[0],u[1]+f[1],u[2]+f[2])&&pt.pointOnLine3D(u[0],u[1],u[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(i.k[o].to=null,i.k[o].ti=null),u[0]===p[0]&&u[1]===p[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===u.length||u[2]===p[2]&&0===f[2]&&0===m[2])&&(i.k[o].to=null,i.k[o].ti=null));this.effectsSequence=[a.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=s,this.comp=e.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var y=i.k[0].s.length;for(this.v=d("float32",y),this.pv=d("float32",y),o=0;o<y;o+=1)this.v[o]=t,this.pv[o]=t;this._caching={lastFrame:t,lastIndex:0,value:d("float32",y)},this.addEffect=h}function g(t,e,n,i,r){var s;if(e.k.length)if("number"==typeof e.k[0])s=new p(t,e,i,r);else switch(n){case 0:s=new f(t,e,i,r);break;case 1:s=new m(t,e,i,r)}else s=new u(t,e,i,r);return s.effectsSequence.length&&r.addDynamicProperty(s),s}return{getProp:g}}();function ft(){}ft.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var mt=function(){function t(){return d("float32",2)}return lt(8,t)}();function gt(){this.c=!1,this._length=0,this._maxLength=8,this.v=f(this._maxLength),this.o=f(this._maxLength),this.i=f(this._maxLength)}gt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=mt.newElement(),this.o[n]=mt.newElement(),this.i[n]=mt.newElement(),n+=1},gt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},gt.prototype.doubleArrayLength=function(){this.v=this.v.concat(f(this._maxLength)),this.i=this.i.concat(f(this._maxLength)),this.o=this.o.concat(f(this._maxLength)),this._maxLength*=2},gt.prototype.setXYAt=function(t,e,n,i,r){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!r)&&(s[i]=mt.newElement()),s[i][0]=t,s[i][1]=e},gt.prototype.setTripleAt=function(t,e,n,i,r,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(n,i,"o",o,a),this.setXYAt(r,s,"i",o,a)},gt.prototype.reverse=function(){var t=new gt;t.setPathData(this.c,this._length);var e=this.v,n=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),r=1);var s,o=this._length-1,a=this._length;for(s=r;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],n[o][0],n[o][1],s,!1),o-=1;return t},gt.prototype.length=function(){return this._length};var yt=function(){function t(){return new gt}function e(t){var e,n=t._length;for(e=0;e<n;e+=1)mt.release(t.v[e]),mt.release(t.i[e]),mt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function n(t){var e,n=i.newElement(),r=void 0===t._length?t.v.length:t._length;for(n.setLength(r),n.c=t.c,e=0;e<r;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n}var i=lt(4,t,e);return i.clone=n,i}();function vt(){this._length=0,this._maxLength=4,this.shapes=f(this._maxLength)}vt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(f(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},vt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)yt.release(this.shapes[t]);this._length=0};var bt=function(){var t={newShapeCollection:r,release:s},e=0,n=4,i=f(n);function r(){return e?i[e-=1]:new vt}function s(t){var r,s=t._length;for(r=0;r<s;r+=1)yt.release(t.shapes[r]);t._length=0,e===n&&(i=at.double(i),n*=2),i[e]=t,e+=1}return t}(),xt=function(){var t=-999999;function e(t,e,n){var i,r,s,o,a,l,c,h,u,p=n.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)i=d[0].s[0],s=!0,p=0;else if(t>=d[d.length-1].t-this.offsetTime)i=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],s=!0;else{for(var f,m,g,y=p,v=d.length-1,b=!0;b&&(f=d[y],!((m=d[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},p=y,!(s=1===f.h)){if(t>=m.t-this.offsetTime)h=1;else if(t<f.t-this.offsetTime)h=0;else{var x;g.__fnct?x=g.__fnct:(x=ot.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),h=x((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}r=m.s?m.s[0]:f.e[0]}i=f.s[0]}for(l=e._length,c=i.i[0].length,n.lastIndex=p,o=0;o<l;o+=1)for(a=0;a<c;a+=1)u=s?i.i[o][a]:i.i[o][a]+(r.i[o][a]-i.i[o][a])*h,e.i[o][a]=u,u=s?i.o[o][a]:i.o[o][a]+(r.o[o][a]-i.o[o][a])*h,e.o[o][a]=u,u=s?i.v[o][a]:i.v[o][a]+(r.v[o][a]-i.v[o][a])*h,e.v[o][a]=u}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,r=this._caching.lastFrame;return r!==t&&(r<n&&e<n||r>i&&e>i)||(this._caching.lastIndex=r<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function i(){this.paths=this.localShapeCollection}function r(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,i=t._length;for(n=0;n<i;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0}function s(t){r(this.v,t)||(this.v=yt.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===n?e.pt.k:e.ks.k;this.v=yt.clone(r),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,r,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?r.pt.k:r.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.v=yt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=o,a.prototype.setVValue=s,a.prototype.addEffect=l,c.prototype.getValue=o,c.prototype.interpolateShape=e,c.prototype.setVValue=s,c.prototype.addEffect=l;var u=function(){var t=$;function e(t,e){this.v=yt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,s=3!==this.d,o=this.v;o.v[0][0]=e,o.v[0][1]=n-r,o.v[1][0]=s?e+i:e-i,o.v[1][1]=n,o.v[2][0]=e,o.v[2][1]=n+r,o.v[3][0]=s?e-i:e+i,o.v[3][1]=n,o.i[0][0]=s?e-i*t:e+i*t,o.i[0][1]=n-r,o.i[1][0]=s?e+i:e-i,o.i[1][1]=n-r*t,o.i[2][0]=s?e+i*t:e-i*t,o.i[2][1]=n+r,o.i[3][0]=s?e-i:e+i,o.i[3][1]=n+r*t,o.o[0][0]=s?e+i*t:e-i*t,o.o[0][1]=n-r,o.o[1][0]=s?e+i:e-i,o.o[1][1]=n+r*t,o.o[2][0]=s?e-i*t:e+i*t,o.o[2][1]=n+r,o.o[3][0]=s?e-i:e+i,o.o[3][1]=n-r*t}},h([ft],e),e}(),p=function(){function t(t,e){this.v=yt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=dt.getProp(t,e.ir,0,0,this),this.is=dt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(t,e.pt,0,0,this),this.p=dt.getProp(t,e.p,1,0,this),this.r=dt.getProp(t,e.r,0,S,this),this.or=dt.getProp(t,e.or,0,0,this),this.os=dt.getProp(t,e.os,0,.01,this),this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,i,r=2*Math.floor(this.pt.v),s=2*Math.PI/r,o=!0,a=this.or.v,l=this.ir.v,c=this.os.v,h=this.is.v,u=2*Math.PI*a/(2*r),p=2*Math.PI*l/(2*r),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){n=o?c:h,i=o?u:p;var m=(e=o?a:l)*Math.cos(d),g=e*Math.sin(d),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*i*n*f,g-v*i*n*f,m+y*i*n*f,g+v*i*n*f,t,!0),o=!o,d+=s*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,i=this.or.v,r=this.os.v,s=2*Math.PI*i/(4*e),o=.5*-Math.PI,a=3===this.data.d?-1:1;for(o+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=i*Math.cos(o),c=i*Math.sin(o),h=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),u=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-h*s*r*a,c-u*s*r*a,l+h*s*r*a,c+u*s*r*a,t,!0),o+=n*a}this.paths.length=0,this.paths[0]=this.v}},h([ft],t),t}(),d=function(){function t(t,e){this.v=yt.newElement(),this.v.c=!0,this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.r=dt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,r=k(n,i,this.r.v),s=r*(1-$);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-i+r,t+n,e-i+r,t+n,e-i+s,0,!0),this.v.setTripleAt(t+n,e+i-r,t+n,e+i-s,t+n,e+i-r,1,!0),0!==r?(this.v.setTripleAt(t+n-r,e+i,t+n-r,e+i,t+n-s,e+i,2,!0),this.v.setTripleAt(t-n+r,e+i,t-n+s,e+i,t-n+r,e+i,3,!0),this.v.setTripleAt(t-n,e+i-r,t-n,e+i-r,t-n,e+i-s,4,!0),this.v.setTripleAt(t-n,e-i+r,t-n,e-i+s,t-n,e-i+r,5,!0),this.v.setTripleAt(t-n+r,e-i,t-n+r,e-i,t-n+s,e-i,6,!0),this.v.setTripleAt(t+n-r,e-i,t+n-s,e-i,t+n-r,e-i,7,!0)):(this.v.setTripleAt(t-n,e+i,t-n+s,e+i,t-n,e+i,2),this.v.setTripleAt(t-n,e-i,t-n,e-i+s,t-n,e-i,3))):(this.v.setTripleAt(t+n,e-i+r,t+n,e-i+s,t+n,e-i+r,0,!0),0!==r?(this.v.setTripleAt(t+n-r,e-i,t+n-r,e-i,t+n-s,e-i,1,!0),this.v.setTripleAt(t-n+r,e-i,t-n+s,e-i,t-n+r,e-i,2,!0),this.v.setTripleAt(t-n,e-i+r,t-n,e-i+r,t-n,e-i+s,3,!0),this.v.setTripleAt(t-n,e+i-r,t-n,e+i-s,t-n,e+i-r,4,!0),this.v.setTripleAt(t-n+r,e+i,t-n+r,e+i,t-n+s,e+i,5,!0),this.v.setTripleAt(t+n-r,e+i,t+n-s,e+i,t+n-r,e+i,6,!0),this.v.setTripleAt(t+n,e+i-r,t+n,e+i-r,t+n,e+i-s,7,!0)):(this.v.setTripleAt(t-n,e-i,t-n+s,e-i,t-n,e-i,1,!0),this.v.setTripleAt(t-n,e+i,t-n,e+i-s,t-n,e+i,2,!0),this.v.setTripleAt(t+n,e+i,t+n-s,e+i,t+n,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},h([ft],t),t}();function f(t,e,n){var i;return 3===n||4===n?i=(3===n?e.pt:e.ks).k.length?new c(t,e,n):new a(t,e,n):5===n?i=new d(t,e):6===n?i=new u(t,e):7===n&&(i=new p(t,e)),i.k&&t.addDynamicProperty(i),i}function m(){return a}function g(){return c}var y={};return y.getShapeProp=f,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),wt=function(){var t=Math.cos,e=Math.sin,n=Math.tan,i=Math.round;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(i,-r,0,0,r,i,0,0,0,0,1,0,0,0,0,1)}function o(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(1,0,0,0,0,i,-r,0,0,r,i,0,0,0,0,1)}function a(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(i,0,r,0,0,1,0,0,-r,0,i,0,0,0,0,1)}function l(n){if(0===n)return this;var i=t(n),r=e(n);return this._t(i,-r,0,0,r,i,0,0,0,0,1,0,0,0,0,1)}function c(t,e){return this._t(1,e,t,1,0,0)}function h(t,e){return this.shear(n(t),n(e))}function u(i,r){var s=t(r),o=e(r);return this._t(s,o,0,0,-o,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(i),1,0,0,0,0,1,0,0,0,0,1)._t(s,-o,0,0,o,s,0,0,0,0,1,0,0,0,0,1)}function p(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function f(t,e,n,i,r,s,o,a,l,c,h,u,p,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=i,this.props[4]=r,this.props[5]=s,this.props[6]=o,this.props[7]=a,this.props[8]=l,this.props[9]=c,this.props[10]=h,this.props[11]=u,this.props[12]=p,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function m(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function g(t,e,n,i,r,s,o,a,l,c,h,u,p,d,f,m){var g=this.props;if(1===t&&0===e&&0===n&&0===i&&0===r&&1===s&&0===o&&0===a&&0===l&&0===c&&1===h&&0===u)return g[12]=g[12]*t+g[15]*p,g[13]=g[13]*s+g[15]*d,g[14]=g[14]*h+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],k=g[5],_=g[6],S=g[7],$=g[8],C=g[9],A=g[10],P=g[11],T=g[12],E=g[13],j=g[14],D=g[15];return g[0]=y*t+v*r+b*l+x*p,g[1]=y*e+v*s+b*c+x*d,g[2]=y*n+v*o+b*h+x*f,g[3]=y*i+v*a+b*u+x*m,g[4]=w*t+k*r+_*l+S*p,g[5]=w*e+k*s+_*c+S*d,g[6]=w*n+k*o+_*h+S*f,g[7]=w*i+k*a+_*u+S*m,g[8]=$*t+C*r+A*l+P*p,g[9]=$*e+C*s+A*c+P*d,g[10]=$*n+C*o+A*h+P*f,g[11]=$*i+C*a+A*u+P*m,g[12]=T*t+E*r+j*l+D*p,g[13]=T*e+E*s+j*c+D*d,g[14]=T*n+E*o+j*h+D*f,g[15]=T*i+E*a+j*u+D*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function k(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function _(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function S(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function $(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,i=-this.props[4]/t,r=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,o=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new wt;return a.props[0]=e,a.props[1]=n,a.props[4]=i,a.props[5]=r,a.props[12]=s,a.props[13]=o,a}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){var e,n=t.length,i=[];for(e=0;e<n;e+=1)i[e]=C(t[e]);return i}function P(t,e,n){var i=d("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=n[0],i[5]=n[1];else{var r=this.props[0],s=this.props[1],o=this.props[4],a=this.props[5],l=this.props[12],c=this.props[13];i[0]=t[0]*r+t[1]*o+l,i[1]=t[0]*s+t[1]*a+c,i[2]=e[0]*r+e[1]*o+l,i[3]=e[0]*s+e[1]*a+c,i[4]=n[0]*r+n[1]*o+l,i[5]=n[0]*s+n[1]*a+c}return i}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function E(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function j(){for(var t=0,e=this.props,n="matrix3d(",r=1e4;t<16;)n+=i(e[t]*r)/r,n+=15===t?")":",",t+=1;return n}function D(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?i(t*e)/e:t}function M(){var t=this.props;return"matrix("+D(t[0])+","+D(t[1])+","+D(t[4])+","+D(t[5])+","+D(t[12])+","+D(t[13])+")"}return function(){this.reset=r,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=h,this.skewFromAxis=u,this.shear=c,this.scale=p,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=k,this.applyToY=_,this.applyToZ=S,this.applyToPointArray=T,this.applyToTriplePoints=P,this.applyToPointStringified=E,this.toCSS=j,this.to2dCSS=M,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=$,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}();function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var _t={};function St(t){a(t)}function $t(){st.searchAnimations()}function Ct(t){N(t)}function At(t){H(t)}function Pt(t){return st.loadAnimation(t)}function Tt(t){if("string"==typeof t)switch(t){case"high":W(200);break;default:case"medium":W(50);break;case"low":W(10)}else!isNaN(t)&&t>1&&W(t)}function Et(){return"undefined"!=typeof navigator}function jt(t,e){"expressions"===t&&q(e)}function Dt(t){switch(t){case"propertyFactory":return dt;case"shapePropertyFactory":return xt;case"matrix":return wt;default:return null}}function Mt(){"complete"===document.readyState&&(clearInterval(Ot),$t())}function Ft(t){for(var e=It.split("&"),n=0;n<e.length;n+=1){var i=e[n].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}return null}_t.play=st.play,_t.pause=st.pause,_t.setLocationHref=St,_t.togglePause=st.togglePause,_t.setSpeed=st.setSpeed,_t.setDirection=st.setDirection,_t.stop=st.stop,_t.searchAnimations=$t,_t.registerAnimation=st.registerAnimation,_t.loadAnimation=Pt,_t.setSubframeRendering=Ct,_t.resize=st.resize,_t.goToAndStop=st.goToAndStop,_t.destroy=st.destroy,_t.setQuality=Tt,_t.inBrowser=Et,_t.installPlugin=jt,_t.freeze=st.freeze,_t.unfreeze=st.unfreeze,_t.setVolume=st.setVolume,_t.mute=st.mute,_t.unmute=st.unmute,_t.getRegisteredAnimations=st.getRegisteredAnimations,_t.useWebWorker=s,_t.setIDPrefix=At,_t.__getFactory=Dt,_t.version="5.10.2";var It="",Rt=document.getElementsByTagName("script"),Lt=Rt[Rt.length-1]||{src:""};It=Lt.src?Lt.src.replace(/^[^\?]+\??/,""):"",Ft("renderer");var Ot=setInterval(Mt,100);try{"object"!==kt(e)&&(window.bodymovin=_t)}catch(Rn){}var zt=function(){var t={},e={};function n(t,n){e[t]||(e[t]=n)}function i(t,n,i){return new e[t](n,i)}return t.registerModifier=n,t.getModifier=i,t}();function Nt(){}function Vt(){}function qt(){}Nt.prototype.initModifierProperties=function(){},Nt.prototype.addShapeToModifier=function(){},Nt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:bt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},Nt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=r,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Nt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},h([ft],Nt),h([Nt],Vt),Vt.prototype.initModifierProperties=function(t,e){this.s=dt.getProp(t,e.s,0,.01,this),this.e=dt.getProp(t,e.e,0,.01,this),this.o=dt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vt.prototype.addShapeToModifier=function(t){t.pathsData=[]},Vt.prototype.calculateShapeEdges=function(t,e,n,i,r){var s=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var o,a,l=[],c=s.length;for(o=0;o<c;o+=1){var h,u;(a=s[o]).e*r<i||a.s*r>i+n||(h=a.s*r<=i?0:(a.s*r-i)/n,u=a.e*r>=i+n?1:(a.e*r-i)/n,l.push([h,u]))}return l.length||l.push([0,0]),l},Vt.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)ht.release(t[e]);return t.length=0,t},Vt.prototype.processShapes=function(t){var e,n,i,r;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(n=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=n,n=o}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,l,c,h,u,p=this.shapes.length,d=0;if(n===e)for(r=0;r<p;r+=1)this.shapes[r].localShapeCollection.releaseShapes(),this.shapes[r].shape._mdf=!0,this.shapes[r].shape.paths=this.shapes[r].localShapeCollection,this._mdf&&(this.shapes[r].pathsData.length=0);else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(r=0;r<p;r+=1)this.shapes[r].pathsData.length=0,this.shapes[r].shape._mdf=!0}else{var f,m,g=[];for(r=0;r<p;r+=1)if((f=this.shapes[r]).shape._mdf||this._mdf||t||2===this.m){if(l=(i=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),a=0;a<l;a+=1)h=pt.getSegmentsLength(i.shapes[a]),c.push(h),u+=h.totalLength;f.totalShapeLength=u,f.pathsData=c}d+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=e,b=n,x=0;for(r=p-1;r>=0;r-=1)if((f=this.shapes[r]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&p>1?(y=this.calculateShapeEdges(e,n,f.totalShapeLength,x,d),x+=f.totalShapeLength):y=[[v,b]],l=y.length,a=0;a<l;a+=1){v=y[a][0],b=y[a][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],k)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},Vt.prototype.addPaths=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)e.addShape(t[n])},Vt.prototype.addSegment=function(t,e,n,i,r,s,o){r.setXYAt(e[0],e[1],"o",s),r.setXYAt(n[0],n[1],"i",s+1),o&&r.setXYAt(t[0],t[1],"v",s),r.setXYAt(i[0],i[1],"v",s+1)},Vt.prototype.addSegmentFromArray=function(t,e,n,i){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),i&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},Vt.prototype.addShapes=function(t,e,n){var i,r,s,o,a,l,c,h,u=t.pathsData,p=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],g=!0;for(n?(a=n._length,h=n._length):(n=yt.newElement(),a=0,h=0),m.push(n),i=0;i<d;i+=1){for(l=u[i].lengths,n.c=p[i].c,s=p[i].c?l.length:l.length+1,r=1;r<s;r+=1)if(f+(o=l[r-1]).addedLength<e.s)f+=o.addedLength,n.c=!1;else{if(f>e.e){n.c=!1;break}e.s<=f&&e.e>=f+o.addedLength?(this.addSegment(p[i].v[r-1],p[i].o[r-1],p[i].i[r],p[i].v[r],n,a,g),g=!1):(c=pt.getNewSegment(p[i].v[r-1],p[i].v[r],p[i].o[r-1],p[i].i[r],(e.s-f)/o.addedLength,(e.e-f)/o.addedLength,l[r-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1),f+=o.addedLength,a+=1}if(p[i].c&&l.length){if(o=l[r-1],f<=e.e){var y=l[r-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(p[i].v[r-1],p[i].o[r-1],p[i].i[0],p[i].v[0],n,a,g),g=!1):(c=pt.getNewSegment(p[i].v[r-1],p[i].v[0],p[i].o[r-1],p[i].i[0],(e.s-f)/y,(e.e-f)/y,l[r-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1)}else n.c=!1;f+=o.addedLength,a+=1}if(n._length&&(n.setXYAt(n.v[h][0],n.v[h][1],"i",h),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>e.e)break;i<d-1&&(n=yt.newElement(),g=!0,m.push(n),a=0)}return m},h([Nt],qt),qt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},qt.prototype.processPath=function(t,e){var n=e/100,i=[0,0],r=t._length,s=0;for(s=0;s<r;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=r,i[1]/=r;var o,a,l,c,h,u,p=yt.newElement();for(p.c=t.c,s=0;s<r;s+=1)o=t.v[s][0]+(i[0]-t.v[s][0])*n,a=t.v[s][1]+(i[1]-t.v[s][1])*n,l=t.o[s][0]+(i[0]-t.o[s][0])*-n,c=t.o[s][1]+(i[1]-t.o[s][1])*-n,h=t.i[s][0]+(i[0]-t.i[s][0])*-n,u=t.i[s][1]+(i[1]-t.i[s][1])*-n,p.setTripleAt(o,a,l,c,h,u,s);return p},qt.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Bt=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,r;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),r=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),r=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(i=this.p.pv,r=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],r=[];var s=this.px,o=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(i[0]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[0]=s.getValueAtTime(s.keyframes[0].t/n,0),r[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(i[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(i=[s.pv,o.pv],r[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime),r[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else i=r=t;this.v.rotate(-Math.atan2(i[1]-r[1],i[0]-r[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function r(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function o(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new wt,this.pre=new wt,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=dt.getProp(t,e.p.x,0,0,this),this.py=dt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=dt.getProp(t,e.p.z,0,0,this))):this.p=dt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=dt.getProp(t,e.rx,0,S,this),this.ry=dt.getProp(t,e.ry,0,S,this),this.rz=dt.getProp(t,e.rz,0,S,this),e.or.k[0].ti){var i,r=e.or.k.length;for(i=0;i<r;i+=1)e.or.k[i].to=null,e.or.k[i].ti=null}this.or=dt.getProp(t,e.or,1,S,this),this.or.sh=!0}else this.r=dt.getProp(t,e.r||{k:0},0,S,this);e.sk&&(this.sk=dt.getProp(t,e.sk,0,S,this),this.sa=dt.getProp(t,e.sa,0,S,this)),this.a=dt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=dt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function a(t,e,n){return new o(t,e,n)}return o.prototype={applyToMatrix:e,getValue:n,precalculateMatrix:i,autoOrient:r},h([ft],o),o.prototype.addDynamicProperty=s,o.prototype._addDynamicProperty=ft.prototype.addDynamicProperty,{getTransformProperty:a}}();function Wt(){}function Ut(){}function Ht(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function Gt(t){return Math.abs(t)<=1e-5}function Qt(t,e,n){return t*(1-n)+e*n}function Jt(t,e,n){return[Qt(t[0],e[0],n),Qt(t[1],e[1],n)]}function Kt(t,e,n){if(0===t)return[];var i=e*e-4*t*n;if(i<0)return[];var r=-e/(2*t);if(0===i)return[r];var s=Math.sqrt(i)/(2*t);return[r-s,r+s]}function Yt(t,e,n,i){return[3*e-t-3*n+i,3*t-6*e+3*n,-3*t+3*e,t]}function Xt(t){return new Zt(t,t,t,t,!1)}function Zt(t,e,n,i,r){r&&ce(t,e)&&(e=Jt(t,i,1/3)),r&&ce(n,i)&&(n=Jt(t,i,2/3));var s=Yt(t[0],e[0],n[0],i[0]),o=Yt(t[1],e[1],n[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,e,n,i]}function te(t,e){var n=t.points[0][e],i=t.points[t.points.length-1][e];if(n>i){var r=i;i=n,n=r}for(var s=Kt(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[e];a<n?n=a:a>i&&(i=a)}return{min:n,max:i}}function ee(t,e,n){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function ne(t){var e=t.bez.split(.5);return[ee(e[0],t.t1,t.t),ee(e[1],t.t,t.t2)]}function ie(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function re(t,e,n,i,r,s){if(ie(t,e))if(n>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)r.push([t.t,e.t]);else{var o=ne(t),a=ne(e);re(o[0],a[0],n+1,i,r,s),re(o[0],a[1],n+1,i,r,s),re(o[1],a[0],n+1,i,r,s),re(o[1],a[1],n+1,i,r,s)}}function se(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function oe(t,e,n,i){var r=[t[0],t[1],1],s=[e[0],e[1],1],o=[n[0],n[1],1],a=[i[0],i[1],1],l=se(se(r,s),se(o,a));return Gt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function ae(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function le(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ce(t,e){return Ht(t[0],e[0])&&Ht(t[1],e[1])}function he(){}function ue(t,e,n,i,r,s,o){var a=n-Math.PI/2,l=n+Math.PI/2,c=e[0]+Math.cos(n)*i*r,h=e[1]-Math.sin(n)*i*r;t.setTripleAt(c,h,c+Math.cos(a)*s,h-Math.sin(a)*s,c+Math.cos(l)*o,h-Math.sin(l)*o,t.length())}function pe(t,e){var n=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]]}function de(t,e){var n=0===e?t.length()-1:e-1,i=(e+1)%t.length(),r=pe(t.v[n],t.v[i]);return Math.atan2(0,1)-Math.atan2(r[1],r[0])}function fe(t,e,n,i,r,s,o){var a=de(e,n),l=e.v[n%e._length],c=e.v[0===n?e._length-1:n-1],h=e.v[(n+1)%e._length],u=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,p=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;ue(t,e.v[n%e._length],a,o,i,p/(2*(r+1)),u/(2*(r+1)))}function me(t,e,n,i,r,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),l=2===r?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(a);ue(t,e.point(a),c,s,n,l/(2*(i+1)),l/(2*(i+1))),s=-s}return s}function ge(t,e,n){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[ae(t,i,n),ae(e,i,n)]}function ye(t,e){var n,i,r,s,o,a,l;n=(l=ge(t.points[0],t.points[1],e))[0],i=l[1],r=(l=ge(t.points[1],t.points[2],e))[0],s=l[1],o=(l=ge(t.points[2],t.points[3],e))[0],a=l[1];var c=oe(n,i,r,s);null===c&&(c=i);var h=oe(o,a,r,s);return null===h&&(h=o),new Zt(n,c,h,a)}function ve(t,e,n,i,r){var s=e.points[3],o=n.points[0];if(3===i)return s;if(ce(s,o))return s;if(2===i){var a=-e.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=oe(s,ae(s,a+Math.PI/2,100),o,ae(o,a+Math.PI/2,100)),h=c?le(c,s):le(s,o)/2,u=ae(s,a,2*h*$);return t.setXYAt(u[0],u[1],"o",t.length()-1),u=ae(o,l,2*h*$),t.setTripleAt(o[0],o[1],o[0],o[1],u[0],u[1],t.length()),o}var p=oe(ce(s,e.points[2])?e.points[0]:e.points[2],s,o,ce(o,n.points[1])?n.points[3]:n.points[1]);return p&&le(p,s)<r?(t.setTripleAt(p[0],p[1],p[0],p[1],p[0],p[1],t.length()),p):s}function be(t,e){var n=t.intersections(e);return n.length&&Ht(n[0][0],1)&&n.shift(),n.length?n[0]:null}function xe(t,e){var n=t.slice(),i=e.slice(),r=be(t[t.length-1],e[0]);return r&&(n[t.length-1]=t[t.length-1].split(r[0])[0],i[0]=e[0].split(r[1])[1]),t.length>1&&e.length>1&&(r=be(t[0],e[e.length-1]))?[[t[0].split(r[0])[0]],[e[e.length-1].split(r[1])[1]]]:[n,i]}function we(t){for(var e,n=1;n<t.length;n+=1)e=xe(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=xe(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function ke(t,e){var n,i,r,s,o=t.inflectionPoints();if(0===o.length)return[ye(t,e)];if(1===o.length||Ht(o[1],1))return n=(r=t.split(o[0]))[0],i=r[1],[ye(n,e),ye(i,e)];n=(r=t.split(o[0]))[0];var a=(o[1]-o[0])/(1-o[0]);return s=(r=r[1].split(a))[0],i=r[1],[ye(n,e),ye(s,e),ye(i,e)]}function _e(){}function Se(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",i="normal",r=e.length,s=0;s<r;s+=1)switch(e[s].toLowerCase()){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:i,weight:t.fWeight||n}}h([Nt],Wt),Wt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=dt.getProp(t,e.c,0,null,this),this.o=dt.getProp(t,e.o,0,null,this),this.tr=Bt.getTransformProperty(t,e.tr,this),this.so=dt.getProp(t,e.tr.so,0,.01,this),this.eo=dt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new wt,this.rMatrix=new wt,this.sMatrix=new wt,this.tMatrix=new wt,this.matrix=new wt},Wt.prototype.applyTransforms=function(t,e,n,i,r,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-r),l=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*o*r,i.p.v[1]*o*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(s?1/a:a,s?1/l:l),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},Wt.prototype.init=function(t,e,n,i){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},Wt.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},Wt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},Wt.prototype.changeGroupRender=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},Wt.prototype.processShapes=function(t){var e,n,i,r,s,o=!1;if(this._mdf||t){var a,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(a=s<l,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),!a){var h=this.elemsData[i].it,u=h[h.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}s+=1}this._currentCopies=l;var p=this.o.v,d=p%1,f=p>0?Math.floor(p):Math.ceil(p),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(p>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),x+=d)}else if(p<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),x-=d)}for(i=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,s=this._currentCopies;s;){if(b=(n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==x){for((0!==i&&1===r||i!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];x+=1,s-=1,i+=r}}else for(s=this._currentCopies,i=0,r=1;s;)n=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,i+=r;return o},Wt.prototype.addShape=function(){},h([Nt],Ut),Ut.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=dt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ut.prototype.processPath=function(t,e){var n,i=yt.newElement();i.c=t.c;var r,s,o,a,l,c,h,u,p,d,f,m,g=t._length,y=0;for(n=0;n<g;n+=1)r=t.v[n],o=t.o[n],s=t.i[n],r[0]===o[0]&&r[1]===o[1]&&r[0]===s[0]&&r[1]===s[1]?0!==n&&n!==g-1||t.c?(a=0===n?t.v[g-1]:t.v[n-1],c=(l=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(l/2,e)/l:0,h=f=r[0]+(a[0]-r[0])*c,u=m=r[1]-(r[1]-a[1])*c,p=h-(h-r[0])*$,d=u-(u-r[1])*$,i.setTripleAt(h,u,p,d,f,m,y),y+=1,a=n===g-1?t.v[0]:t.v[n+1],c=(l=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(l/2,e)/l:0,h=p=r[0]+(a[0]-r[0])*c,u=d=r[1]+(a[1]-r[1])*c,f=h-(h-r[0])*$,m=u-(u-r[1])*$,i.setTripleAt(h,u,p,d,f,m,y),y+=1):(i.setTripleAt(r[0],r[1],o[0],o[1],s[0],s[1],y),y+=1):(i.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],y),y+=1);return i},Ut.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Zt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Zt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Zt.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Zt.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Zt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Gt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var i=Math.sqrt(n);return Gt(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter((function(t){return t>0&&t<1}))},Zt.prototype.split=function(t){if(t<=0)return[Xt(this.points[0]),this];if(t>=1)return[this,Xt(this.points[this.points.length-1])];var e=Jt(this.points[0],this.points[1],t),n=Jt(this.points[1],this.points[2],t),i=Jt(this.points[2],this.points[3],t),r=Jt(e,n,t),s=Jt(n,i,t),o=Jt(r,s,t);return[new Zt(this.points[0],e,r,o,!0),new Zt(o,s,i,this.points[3],!0)]},Zt.prototype.bounds=function(){return{x:te(this,0),y:te(this,1)}},Zt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Zt.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var i=[];return re(ee(this,0,1),ee(t,0,1),0,e,i,n),i},Zt.shapeSegment=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[e],t.o[e],t.i[n],t.v[n],!0)},Zt.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[n],t.i[n],t.o[e],t.v[e],!0)},h([Nt],he),he.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=dt.getProp(t,e.s,0,null,this),this.frequency=dt.getProp(t,e.r,0,null,this),this.pointsType=dt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},he.prototype.processPath=function(t,e,n,i){var r=t._length,s=yt.newElement();if(s.c=t.c,t.c||(r-=1),0===r)return s;var o=-1,a=Zt.shapeSegment(t,0);fe(s,t,0,e,n,i,o);for(var l=0;l<r;l+=1)o=me(s,a,e,n,i,-o),a=l!==r-1||t.c?Zt.shapeSegment(t,(l+1)%r):null,fe(s,t,l+1,e,n,i,o);return s},he.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},h([Nt],_e),_e.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this.miterLimit=dt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},_e.prototype.processPath=function(t,e,n,i){var r=yt.newElement();r.c=t.c;var s,o,a,l=t.length();t.c||(l-=1);var c=[];for(s=0;s<l;s+=1)a=Zt.shapeSegment(t,s),c.push(ke(a,e));if(!t.c)for(s=l-1;s>=0;s-=1)a=Zt.shapeSegmentInverted(t,s),c.push(ke(a,e));c=we(c);var h=null,u=null;for(s=0;s<c.length;s+=1){var p=c[s];for(u&&(h=ve(r,u,p[0],n,i)),u=p[p.length-1],o=0;o<p.length;o+=1)a=p[o],h&&ce(a.points[0],h)?r.setXYAt(a.points[1][0],a.points[1][1],"o",r.length()-1):r.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],r.length()),r.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],r.length()),h=a.points[3]}return c.length&&ve(r,u,c[0][0],n,i),r},_e.prototype.processShapes=function(t){var e,n,i,r,s,o,a=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,h=this.lineJoin;if(0!==l)for(n=0;n<a;n+=1){if(o=(s=this.shapes[n]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)o.addShape(this.processPath(e[i],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var $e=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],r=[65039,8205];function s(t){var e,n=t.split(","),i=n.length,r=[];for(e=0;e<i;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&r.push(n[e]);return r.join(",")}function o(t,e){var n=c("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var i=c("span");i.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(i),document.body.appendChild(n);var r=i.offsetWidth;return i.style.fontFamily=s(t)+", "+e,{node:i,w:r,parent:n}}function a(){var e,n,i,r=this.fonts.length,s=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?s-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(n=this.fonts[e].monoCase.node,i=this.fonts[e].monoCase.w,n.offsetWidth!==i?(s-=1,this.fonts[e].loaded=!0):(n=this.fonts[e].sansCase.node,i=this.fonts[e].sansCase.w,n.offsetWidth!==i&&(s-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==s&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(t,e){var n,i=document.body&&e?"svg":"canvas",r=Se(t);if("svg"===i){var s=G("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",r.style),s.setAttribute("font-weight",r.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),n=s}else{var o=new OffscreenCanvas(500,500).getContext("2d");o.font=r.style+" "+r.weight+" 100px "+t.fFamily,n=o}function a(t){return"svg"===i?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}return{measureText:a}}function h(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=l(t),t.cache={}})),void(this.fonts=t.list);var n,i=t.list,r=i.length,s=r;for(n=0;n<r;n+=1){var a,h,u=!0;if(i[n].loaded=!1,i[n].monoCase=o(i[n].fFamily,"monospace"),i[n].sansCase=o(i[n].fFamily,"sans-serif"),i[n].fPath){if("p"===i[n].fOrigin||3===i[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[n].fFamily+'"], style[f-origin="3"][f-family="'+i[n].fFamily+'"]')).length>0&&(u=!1),u){var p=c("style");p.setAttribute("f-forigin",i[n].fOrigin),p.setAttribute("f-origin",i[n].origin),p.setAttribute("f-family",i[n].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[n].fFamily+"; font-style: normal; src: url('"+i[n].fPath+"');}",e.appendChild(p)}}else if("g"===i[n].fOrigin||1===i[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<a.length;h+=1)-1!==a[h].href.indexOf(i[n].fPath)&&(u=!1);if(u){var d=c("link");d.setAttribute("f-forigin",i[n].fOrigin),d.setAttribute("f-origin",i[n].origin),d.type="text/css",d.rel="stylesheet",d.href=i[n].fPath,document.body.appendChild(d)}}else if("t"===i[n].fOrigin||2===i[n].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<a.length;h+=1)i[n].fPath===a[h].src&&(u=!1);if(u){var f=c("link");f.setAttribute("f-forigin",i[n].fOrigin),f.setAttribute("f-origin",i[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",i[n].fPath),e.appendChild(f)}}}else i[n].loaded=!0,s-=1;i[n].helper=l(i[n],e),i[n].cache={},this.fonts.push(i[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function u(t){if(t){var e;this.chars||(this.chars=[]);var n,i,r=t.length,s=this.chars.length;for(e=0;e<r;e+=1){for(n=0,i=!1;n<s;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(i=!0),n+=1;i||(this.chars.push(t[e]),s+=1)}}}function p(t,n,i){for(var r=0,s=this.chars.length;r<s;){if(this.chars[r].ch===t&&this.chars[r].style===n&&this.chars[r].fFamily===i)return this.chars[r];r+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0),e}function d(t,e,n){var i=this.getFontByName(e),r=t.charCodeAt(0);if(!i.cache[r+1]){var s=i.helper;if(" "===t){var o=s.measureText("|"+t+"|"),a=s.measureText("||");i.cache[r+1]=(o-a)/100}else i.cache[r+1]=s.measureText(t)/100}return i.cache[r+1]*n}function f(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function m(t,e){var n=t.toString(16)+e.toString(16);return-1!==i.indexOf(n)}function g(t,e){return e?t===r[0]&&e===r[1]:t===r[1]}function y(t){return-1!==n.indexOf(t)}function v(){this.isLoaded=!0}var b=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};b.isModifier=m,b.isZeroWidthJoiner=g,b.isCombinedCharacter=y;var x={addChars:u,addFonts:h,getCharData:p,getFontByName:f,measureText:d,checkLoadedFonts:a,setIsLoaded:v};return b.prototype=x,b}();function Ce(){}Ce.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ae,Pe=(Ae={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Ae[t]||""});function Te(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ee(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function je(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function De(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function Me(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Fe(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ie(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Re(){this.p={}}function Le(t,e){var n,i=t.ef||[];this.effectElements=[];var r,s=i.length;for(n=0;n<s;n+=1)r=new Oe(i[n],e),this.effectElements.push(r)}function Oe(t,e){this.init(t,e)}function ze(){}function Ne(){}function Ve(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function qe(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function Be(){}function We(){}function Ue(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,r,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=f(o),this.solidPath="";var a,c,h,u,p,d,m=this.masksProperties,g=0,y=[],v=F(),b="clipPath",x="clip-path";for(i=0;i<o;i+=1)if(("a"!==m[i].mode&&"n"!==m[i].mode||m[i].inv||100!==m[i].o.k||m[i].o.x)&&(b="mask",x="mask"),"s"!==m[i].mode&&"i"!==m[i].mode||0!==g?h=null:((h=G("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),y.push(h)),r=G("path"),"n"===m[i].mode)this.viewData[i]={op:dt.getProp(this.element,m[i].o,0,.01,this.element),prop:xt.getShapeProp(this.element,m[i],3),elem:r,lastPath:""},s.appendChild(r);else{var w;if(g+=1,r.setAttribute("fill","s"===m[i].mode?"#000000":"#ffffff"),r.setAttribute("clip-rule","nonzero"),0!==m[i].x.k?(b="mask",x="mask",d=dt.getProp(this.element,m[i].x,0,null,this.element),w=F(),(u=G("filter")).setAttribute("id",w),(p=G("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),u.appendChild(p),s.appendChild(u),r.setAttribute("stroke","s"===m[i].mode?"#000000":"#ffffff")):(p=null,d=null),this.storedData[i]={elem:r,x:d,expan:p,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===m[i].mode){c=y.length;var k=G("g");for(a=0;a<c;a+=1)k.appendChild(y[a]);var _=G("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",v+"_"+g),_.appendChild(r),s.appendChild(_),k.setAttribute("mask","url("+l()+"#"+v+"_"+g+")"),y.length=0,y.push(k)}else y.push(r);m[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:r,lastPath:"",op:dt.getProp(this.element,m[i].o,0,.01,this.element),prop:xt.getShapeProp(this.element,m[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(m[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=G(b),o=y.length,i=0;i<o;i+=1)this.maskElement.appendChild(y[i]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(x,"url("+l()+"#"+v+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}h([ft],Oe),Oe.prototype.getValue=Oe.prototype.iterateDynamicProperties,Oe.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,r=this.data.ef.length,s=this.data.ef;for(n=0;n<r;n+=1){switch(i=null,s[n].ty){case 0:i=new Te(s[n],e,this);break;case 1:i=new Ee(s[n],e,this);break;case 2:i=new je(s[n],e,this);break;case 3:i=new De(s[n],e,this);break;case 4:case 7:i=new Ie(s[n],e,this);break;case 10:i=new Me(s[n],e,this);break;case 11:i=new Fe(s[n],e,this);break;case 5:i=new Le(s[n],e);break;default:i=new Re(s[n])}i&&this.effectElements.push(i)}},ze.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){},setBlendMode:function(){var t=Pe(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Le(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},Ne.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,i=this.dynamicProperties.length;for(n=0;n<i;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ve.prototype.prepareFrame=function(){},h([Ce,ze,Ne],Ve),Ve.prototype.getBaseElement=function(){return null},Ve.prototype.renderFrame=function(){},Ve.prototype.destroy=function(){},Ve.prototype.initExpressions=function(){},Ve.prototype.getFootageData=function(){return this.footageData},qe.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},h([Ce,ze,Ne],qe),qe.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},qe.prototype.show=function(){},qe.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},qe.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},qe.prototype.resume=function(){this._canPlay=!0},qe.prototype.setRate=function(t){this.audio.rate(t)},qe.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},qe.prototype.getBaseElement=function(){return null},qe.prototype.destroy=function(){},qe.prototype.sourceRectAtTime=function(){},qe.prototype.initExpressions=function(){},Be.prototype.checkLayers=function(t){var e,n,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},Be.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},Be.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},Be.prototype.createAudio=function(t){return new qe(t,this.globalData,this)},Be.prototype.createFootage=function(t){return new Ve(t,this.globalData,this)},Be.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},Be.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,i=t.length,r=this.layers.length;for(e=0;e<i;e+=1)for(n=0;n<r;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},Be.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},Be.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},Be.prototype.buildElementParenting=function(t,e,n){for(var i=this.elements,r=this.layers,s=0,o=r.length;s<o;)r[s].ind==e&&(i[s]&&!0!==i[s]?(n.push(i[s]),i[s].setAsParent(),void 0!==r[s].parent?this.buildElementParenting(t,r[s].parent,n):t.setHierarchy(n)):(this.buildItem(s),this.addPendingElement(t))),s+=1},Be.prototype.addPendingElement=function(t){this.pendingElements.push(t)},Be.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},Be.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},Be.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"==typeof n)e=this.elements[n];else{var i,r=this.elements.length;for(i=0;i<r;i+=1)if(this.elements[i].data.nm===n){e=this.elements[i];break}}return 0===t.length?e:e.getElementByPath(t)},Be.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new $e,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},We.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Bt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new wt},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<i;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<i;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,i=!0,r=this.comp;i;)r.finalTransform?(r.data.hasMask&&e.splice(0,0,r.finalTransform),r=r.comp):i=!1;var s,o=e.length;for(n=0;n<o;n+=1)s=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new wt},Ue.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ue.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+l()+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ue.prototype.getMaskelement=function(){return this.maskElement},Ue.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ue.prototype.drawPath=function(t,e,n){var i,r,s=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,i=1;i<r;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&r>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==s){var o="";n.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),n.elem.setAttribute("d",o)),n.lastPath=s}},Ue.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var He,Ge,Qe=function(){var t={};function e(t,e){var n=G("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var t=G("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=n,t}(),Je=(He={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(He.maskType=!1),/firefox/i.test(navigator.userAgent)&&(He.svgLumaHidden=!1),He),Ke={},Ye="filter_result_";function Xe(t){var e,n,i="SourceGraphic",r=t.data.ef?t.data.ef.length:0,s=F(),o=Qe.createFilter(s,!0),a=0;for(this.filters=[],e=0;e<r;e+=1){n=null;var c=t.data.ef[e].ty;Ke[c]&&(n=new(0,Ke[c].effect)(o,t.effectsManager.effectElements[e],t,Ye+a,i),i=Ye+a,Ke[c].countsAsEffect&&(a+=1)),n&&this.filters.push(n)}a&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+l()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function Ze(){}function tn(){}function en(){}function nn(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function rn(t,e){this.elem=t,this.pos=e}function sn(){}Xe.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},Ze.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=G("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=G("clipPath"),i=G("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var r=F();if(n.setAttribute("id",r),n.appendChild(i),this.globalData.defs.appendChild(n),this.checkMasks()){var s=G("g");s.setAttribute("clip-path","url("+l()+"#"+r+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+r+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ue(this.data,this,this.globalData),this.renderableEffectsManager=new Xe(this)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,n,i,r,s=this.layerId+"_"+t;if(1===t||3===t){var o=G("mask");o.setAttribute("id",s),o.setAttribute("mask-type",3===t?"luminance":"alpha"),(i=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),Je.maskType||1!==t||(o.setAttribute("mask-type","luminance"),e=F(),n=Qe.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(Qe.createAlphaToLuminanceFilter()),(r=G("g")).appendChild(i),o.appendChild(r),r.setAttribute("filter","url("+l()+"#"+e+")"))}else if(2===t){var a=G("mask");a.setAttribute("id",s),a.setAttribute("mask-type","alpha");var c=G("g");a.appendChild(c),e=F(),n=Qe.createFilter(e);var h=G("feComponentTransfer");h.setAttribute("in","SourceGraphic"),n.appendChild(h);var u=G("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),h.appendChild(u),this.globalData.defs.appendChild(n);var p=G("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),c.setAttribute("filter","url("+l()+"#"+e+")"),c.appendChild(p),(i=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(i),Je.maskType||(a.setAttribute("mask-type","luminance"),n.appendChild(Qe.createAlphaToLuminanceFilter()),r=G("g"),c.appendChild(p),r.appendChild(this.layerElement),c.appendChild(r)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+t+")")}},tn.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ge={initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}},h([Ce,u(Ge)],en),h([ze,We,Ze,tn,Ne,en],nn),nn.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},nn.prototype.sourceRectAtTime=function(){return this.sourceRect},sn.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,n=this.shapeModifiers.length;e<n;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,i=e.length;n<i;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,i=n.length;i;)if(n[i-=1].elem===t)return void(n[i].pos=e);n.push(new rn(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var on={1:"butt",2:"round",3:"square"},an={1:"miter",2:"round",3:"bevel"};function ln(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var i=0,r=t.length;i<r;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function cn(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=G("path"),this.msElem=null}function hn(t,e,n,i){var r;this.elem=t,this.frameId=-1,this.dataProps=f(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=d("float32",e.length?e.length-1:0),this.dashoffset=d("float32",1),this.initDynamicPropertyContainer(i);var s,o=e.length||0;for(r=0;r<o;r+=1)s=dt.getProp(t,e[r].v,0,0,this),this.k=s.k||this.k,this.dataProps[r]={n:e[r].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function un(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.w=dt.getProp(t,e.w,0,null,this),this.d=new hn(t,e.d||{},"svg",this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function pn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n}function dn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function fn(t,e,n){this.data=e,this.c=d("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=d("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=dt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function mn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function gn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(t,e.w,0,null,this),this.d=new hn(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function yn(){this.it=[],this.prevViewData=[],this.gr=G("g")}function vn(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ln.prototype.setAsAnimated=function(){this._isAnimated=!0},cn.prototype.reset=function(){this.d="",this._mdf=!1},hn.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},h([ft],hn),h([ft],un),h([ft],pn),h([ft],dn),fn.prototype.comparePoints=function(t,e){for(var n=0,i=this.o.length/2;n<i;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},fn.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},fn.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,i,r=4*this.data.p;for(e=0;e<r;e+=1)n=e%4==0?100:255,i=Math.round(this.prop.v[e]*n),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)n=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},h([ft],fn),mn.prototype.initGradientData=function(t,e,n){this.o=dt.getProp(t,e.o,0,.01,this),this.s=dt.getProp(t,e.s,1,null,this),this.e=dt.getProp(t,e.e,1,null,this),this.h=dt.getProp(t,e.h||{k:0},0,.01,this),this.a=dt.getProp(t,e.a||{k:0},0,S,this),this.g=new fn(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},mn.prototype.setGradientData=function(t,e){var n=F(),i=G(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var r,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)r=G("stop"),i.appendChild(r),a.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=i,this.cst=a},mn.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,r,s=G("mask"),o=G("path");s.appendChild(o);var a=F(),c=F();s.setAttribute("id",c);var h=G(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",a),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(i=4*t.g.p;i<r;i+=2)(n=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(n),u.push(n);o.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+a+")"),"gs"===t.ty&&(o.setAttribute("stroke-linecap",on[t.lc||2]),o.setAttribute("stroke-linejoin",an[t.lj||2]),1===t.lj&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=u,this.maskId=c,e.msElem=o}},h([ft],mn),h([mn,ft],gn);var bn=function(t,e,n,i){if(0===e)return"";var r,s=t.o,o=t.i,a=t.v,l=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(r=1;r<e;r+=1)l+=" C"+i.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+i.applyToPointStringified(o[r][0],o[r][1])+" "+i.applyToPointStringified(a[r][0],a[r][1]);return n&&e&&(l+=" C"+i.applyToPointStringified(s[r-1][0],s[r-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},xn=function(){var t=new wt,e=new wt;function n(t){switch(t.ty){case"fl":return o;case"gf":return l;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return s;case"tr":return i;case"no":return r;default:return null}}function i(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function s(n,i,r){var s,o,a,l,c,h,u,p,d,f,m,g=i.styles.length,y=i.lvl;for(h=0;h<g;h+=1){if(l=i.sh._mdf||r,i.styles[h].lvl<y){for(p=e.reset(),f=y-i.styles[h].lvl,m=i.transformers.length-1;!l&&f>0;)l=i.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=y-i.styles[h].lvl,m=i.transformers.length-1;f>0;)d=i.transformers[m].mProps.v.props,p.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),f-=1,m-=1}else p=t;if(o=(u=i.sh.paths)._length,l){for(a="",s=0;s<o;s+=1)(c=u.shapes[s])&&c._length&&(a+=bn(c,c._length,c.c,p));i.caches[h]=a}else a=i.caches[h];i.styles[h].d+=!0===n.hd?"":a,i.styles[h]._mdf=l||i.styles[h]._mdf}}function o(t,e,n){var i=e.style;(e.c._mdf||n)&&i.pElem.setAttribute("fill","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,n){l(t,e,n),c(t,e,n)}function l(t,e,n){var i,r,s,o,a,l=e.gf,c=e.g._hasOpacity,h=e.s.v,u=e.e.v;if(e.o._mdf||n){var p="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(p,e.o.v)}if(e.s._mdf||n){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,h[0]),l.setAttribute(f,h[1]),c&&!e.g._collapsable&&(e.of.setAttribute(d,h[0]),e.of.setAttribute(f,h[1]))}if(e.g._cmdf||n){i=e.cst;var m=e.g.c;for(s=i.length,r=0;r<s;r+=1)(o=i[r]).setAttribute("offset",m[4*r]+"%"),o.setAttribute("stop-color","rgb("+m[4*r+1]+","+m[4*r+2]+","+m[4*r+3]+")")}if(c&&(e.g._omdf||n)){var g=e.g.o;for(s=(i=e.g._collapsable?e.cst:e.ost).length,r=0;r<s;r+=1)o=i[r],e.g._collapsable||o.setAttribute("offset",g[2*r]+"%"),o.setAttribute("stop-opacity",g[2*r+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",u[0]),l.setAttribute("y2",u[1]),c&&!e.g._collapsable&&(e.of.setAttribute("x2",u[0]),e.of.setAttribute("y2",u[1])));else if((e.s._mdf||e.e._mdf||n)&&(a=Math.sqrt(Math.pow(h[0]-u[0],2)+Math.pow(h[1]-u[1],2)),l.setAttribute("r",a),c&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.e._mdf||e.h._mdf||e.a._mdf||n){a||(a=Math.sqrt(Math.pow(h[0]-u[0],2)+Math.pow(h[1]-u[1],2)));var y=Math.atan2(u[1]-h[1],u[0]-h[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=a*v,x=Math.cos(y+e.a.v)*b+h[0],w=Math.sin(y+e.a.v)*b+h[1];l.setAttribute("fx",x),l.setAttribute("fy",w),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",w))}}function c(t,e,n){var i=e.style,r=e.d;r&&(r._mdf||n)&&r.dashStr&&(i.pElem.setAttribute("stroke-dasharray",r.dashStr),i.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||n)&&i.pElem.setAttribute("stroke","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:n}}();function wn(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function kn(t,e,n,i,r,s){this.o=t,this.sw=e,this.sc=n,this.fc=i,this.m=r,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!i,m:!0,p:!0}}function _n(t,e){this._frameId=r,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}h([ze,We,Ze,sn,tn,Ne,en],wn),wn.prototype.initSecondaryElement=function(){},wn.prototype.identityMatrix=new wt,wn.prototype.buildExpressionInterface=function(){},wn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},wn.prototype.filterUniqueShapes=function(){var t,e,n,i,r=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(n=0;n<s;n+=1){for(i=this.stylesList[n],a=!1,o.length=0,t=0;t<r;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},wn.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},wn.prototype.createStyleElement=function(t,e){var n,i=new cn(t,e),r=i.pElem;return"st"===t.ty?n=new un(this,t,i):"fl"===t.ty?n=new pn(this,t,i):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?mn:gn)(this,t,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),r.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new dn(this,t,i)),"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",on[t.lc||2]),r.setAttribute("stroke-linejoin",an[t.lj||2]),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=Pe(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,n),n},wn.prototype.createGroupElement=function(t){var e=new yn;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=Pe(t.bm)),e},wn.prototype.createTransformElement=function(t,e){var n=Bt.getTransformProperty(this,t,this),i=new vn(n,n.o,e);return this.addToAnimatedContents(t,i),i},wn.prototype.createShapeElement=function(t,e,n){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var r=new ln(e,n,xt.getShapeProp(this,t,i,this));return this.shapes.push(r),this.addShapeToModifiers(r),this.addToAnimatedContents(t,r),r},wn.prototype.addToAnimatedContents=function(t,e){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:xn.createRenderFunction(t),element:e,data:t})},wn.prototype.setElementStyles=function(t){var e,n=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},wn.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},wn.prototype.searchShapes=function(t,e,n,i,r,s,o){var a,l,c,h,u,p,d=[].concat(s),f=t.length-1,m=[],g=[];for(a=f;a>=0;a-=1){if((p=this.searchProcessedElement(t[a]))?e[a]=n[p-1]:t[a]._render=o,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)p?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],r),t[a]._render&&e[a].style.pElem.parentNode!==i&&i.appendChild(e[a].style.pElem),m.push(e[a].style);else if("gr"===t[a].ty){if(p)for(c=e[a].it.length,l=0;l<c;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,r+1,d,o),t[a]._render&&e[a].gr.parentNode!==i&&i.appendChild(e[a].gr)}else"tr"===t[a].ty?(p||(e[a]=this.createTransformElement(t[a],i)),h=e[a].transform,d.push(h)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(p||(e[a]=this.createShapeElement(t[a],d,r)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(p?(u=e[a]).closed=!1:((u=zt.getModifier(t[a].ty)).init(this,t[a]),e[a]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"===t[a].ty&&(p?(u=e[a]).closed=!0:(u=zt.getModifier(t[a].ty),e[a]=u,u.init(this,t,a,e),this.shapeModifiers.push(u),o=!1),g.push(u));this.addProcessedElement(t[a],a+1)}for(f=m.length,a=0;a<f;a+=1)m[a].closed=!0;for(f=g.length,a=0;a<f;a+=1)g[a].closed=!0},wn.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},wn.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},wn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},kn.prototype.update=function(t,e,n,i,r,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,o=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,o=!0),o},_n.prototype.defaultBoxWidth=[0,0],_n.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},_n.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},_n.prototype.searchProperty=function(){return this.searchKeyframes()},_n.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},_n.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},_n.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var r=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<r;i+=1)s=n!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},_n.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,i=t.length;n<=i-1&&!(n===i-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},_n.prototype.buildFinalText=function(t){for(var e,n,i=[],r=0,s=t.length,o=!1;r<s;)e=t.charCodeAt(r),$e.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(r):e>=55296&&e<=56319?(n=t.charCodeAt(r+1))>=56320&&n<=57343?(o||$e.isModifier(e,n)?(i[i.length-1]+=t.substr(r,2),o=!1):i.push(t.substr(r,2)),r+=1):i.push(t.charAt(r)):e>56319?(n=t.charCodeAt(r+1),$e.isZeroWidthJoiner(e,n)?(o=!0,i[i.length-1]+=t.substr(r,2),r+=1):i.push(t.charAt(r))):$e.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(r),o=!0):i.push(t.charAt(r)),r+=1;return i},_n.prototype.completeTextData=function(t){t.__complete=!0;var e,n,i,r,s,o,a,l=this.elem.globalData.fontManager,c=this.data,h=[],u=0,p=c.m.g,d=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(t.f),x=0,w=Se(b);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var k,_=t.tr/1e3*t.finalSize;if(t.sz)for(var S,$,C=!0,A=t.sz[0],P=t.sz[1];C;){S=0,y=0,n=($=this.buildFinalText(t.t)).length,_=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<n;e+=1)k=$[e].charCodeAt(0),i=!1," "===$[e]?T=e:13!==k&&3!==k||(y=0,i=!0,S+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData($[e],b.fStyle,b.fFamily),x=i?0:a.w*t.finalSize/100):x=l.measureText($[e],t.f,t.finalSize),y+x>A&&" "!==$[e]?(-1===T?n+=1:e=T,S+=t.finalLineHeight||1.2*t.finalSize,$.splice(e,T===e?1:0,"\r"),T=-1,y=0):(y+=x,y+=_);S+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<S?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=$,n=t.finalText.length,C=!1)}y=-_,x=0;var E,j=0;for(e=0;e<n;e+=1)if(i=!1,13===(k=(E=t.finalText[e]).charCodeAt(0))||3===k?(j=0,g.push(y),v=y>v?y:v,y=-2*_,r="",i=!0,m+=1):r=E,l.chars?(a=l.getCharData(E,b.fStyle,l.getFontByName(t.f).fFamily),x=i?0:a.w*t.finalSize/100):x=l.measureText(r,t.f,t.finalSize)," "===E?j+=x+_:(y+=x+_+j,j=0),h.push({l:x,an:x,add:d,n:i,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==p){if(d+=x,""===r||" "===r||e===n-1){for(""!==r&&" "!==r||(d-=x);f<=e;)h[f].an=d,h[f].ind=u,h[f].extra=x,f+=1;u+=1,d=0}}else if(3==p){if(d+=x,""===r||e===n-1){for(""===r&&(d-=x);f<=e;)h[f].an=d,h[f].ind=u,h[f].extra=x,f+=1;d=0,u+=1}}else h[u].ind=u,h[u].extra=0,u+=1;if(t.l=h,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var D,M,F,I,R=c.a;o=R.length;var L=[];for(s=0;s<o;s+=1){for((D=R[s]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),I=0,F=D.s.b,e=0;e<n;e+=1)(M=h[e]).anIndexes[s]=I,(1==F&&""!==M.val||2==F&&""!==M.val&&" "!==M.val||3==F&&(M.n||" "==M.val||e==n-1)||4==F&&(M.n||e==n-1))&&(1===D.s.rn&&L.push(I),I+=1);c.a[s].s.totalChars=I;var O,z=-1;if(1===D.s.rn)for(e=0;e<n;e+=1)z!=(M=h[e]).anIndexes[s]&&(z=M.anIndexes[s],O=L.splice(Math.floor(Math.random()*L.length),1)[0]),M.anIndexes[s]=O}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},_n.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},_n.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},_n.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},_n.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Sn=function(){var t=Math.max,e=Math.min,n=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=dt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?dt.getProp(t,e.e,0,0,this):{v:100},this.o=dt.getProp(t,e.o||{k:0},0,0,this),this.xe=dt.getProp(t,e.xe||{k:0},0,0,this),this.ne=dt.getProp(t,e.ne||{k:0},0,0,this),this.sm=dt.getProp(t,e.sm||{k:100},0,0,this),this.a=dt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function r(t,e,n){return new i(t,e)}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var r=0,s=0,o=1,a=1;this.ne.v>0?r=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:a=1+this.xe.v/100;var l=ot.getBezierEasing(r,s,o,a).get,c=0,h=this.finalS,u=this.finalE,p=this.data.sh;if(2===p)c=l(c=u===h?i>=u?1:0:t(0,e(.5/(u-h)+(i-h)/(u-h),1)));else if(3===p)c=l(c=u===h?i>=u?0:1:1-t(0,e(.5/(u-h)+(i-h)/(u-h),1)));else if(4===p)u===h?c=0:(c=t(0,e(.5/(u-h)+(i-h)/(u-h),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===p){if(u===h)c=0;else{var d=u-h,f=-d/2+(i=e(t(0,i+.5-h),u-h)),m=d/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===p?(u===h?c=0:(i=e(t(0,i+.5-h),u-h),c=(1+Math.cos(Math.PI+2*Math.PI*i/(u-h)))/2),c=l(c)):(i>=n(h)&&(c=t(0,e(i-h<0?e(u,1)-(h-i):u-i,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,i=this.s.v/e+n,r=this.e.v/e+n;if(i>r){var s=i;i=r,r=s}this.finalS=i,this.finalE=r}},h([ft],i),{getTextSelectorProp:r}}();function $n(t,e,n){var i={propType:!1},r=dt.getProp,s=e.a;this.a={r:s.r?r(t,s.r,0,S,n):i,rx:s.rx?r(t,s.rx,0,S,n):i,ry:s.ry?r(t,s.ry,0,S,n):i,sk:s.sk?r(t,s.sk,0,S,n):i,sa:s.sa?r(t,s.sa,0,S,n):i,s:s.s?r(t,s.s,1,.01,n):i,a:s.a?r(t,s.a,1,0,n):i,o:s.o?r(t,s.o,0,.01,n):i,p:s.p?r(t,s.p,1,0,n):i,sw:s.sw?r(t,s.sw,0,0,n):i,sc:s.sc?r(t,s.sc,1,0,n):i,fc:s.fc?r(t,s.fc,1,0,n):i,fh:s.fh?r(t,s.fh,0,0,n):i,fs:s.fs?r(t,s.fs,0,.01,n):i,fb:s.fb?r(t,s.fb,0,.01,n):i,t:s.t?r(t,s.t,0,0,n):i},this.s=Sn.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function Cn(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=f(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function An(){}Cn.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,i=dt.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new $n(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},Cn.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,i,r,s,o,a,l,c,h,u,p,d,f,m,g,y,v,b,x,w=this._moreOptions.alignment.v,k=this._animatorsData,_=this._textData,S=this.mHelper,$=this._renderType,C=this.renderedLetters.length,A=t.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=x.v;for(this._pathData.r.v&&(T=T.reverse()),o={tLength:0,segments:[]},s=T._length-1,y=0,r=0;r<s;r+=1)P=pt.buildBezierData(T.v[r],T.v[r+1],[T.o[r][0]-T.v[r][0],T.o[r][1]-T.v[r][1]],[T.i[r+1][0]-T.v[r+1][0],T.i[r+1][1]-T.v[r+1][1]]),o.tLength+=P.segmentLength,o.segments.push(P),y+=P.segmentLength;r=s,x.v.c&&(P=pt.buildBezierData(T.v[r],T.v[0],[T.o[r][0]-T.v[r][0],T.o[r][1]-T.v[r][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),o.tLength+=P.segmentLength,o.segments.push(P),y+=P.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,p=0,u=1,c=0,h=!0,m=o.segments,a<0&&x.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),u=(f=m[p=m.length-1].points).length-1;a<0;)a+=f[u].partialLength,(u-=1)<0&&(u=(f=m[p-=1].points).length-1);d=(f=m[p].points)[u-1],g=(l=f[u]).partialLength}s=A.length,n=0,i=0;var E,j,D,M,F,I=1.2*t.finalSize*.714,R=!0;D=k.length;var N,V,q,B,W,U,H,G,Q,J,K,Y,X=-1,Z=a,tt=p,et=u,nt=-1,it="",rt=this.defaultPropsArray;if(2===t.j||1===t.j){var st=0,ot=0,at=2===t.j?-.5:-1,lt=0,ct=!0;for(r=0;r<s;r+=1)if(A[r].n){for(st&&(st+=ot);lt<r;)A[lt].animatorJustifyOffset=st,lt+=1;st=0,ct=!0}else{for(j=0;j<D;j+=1)(E=k[j].a).t.propType&&(ct&&2===t.j&&(ot+=E.t.v*at),(F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?st+=E.t.v*F[0]*at:st+=E.t.v*F*at);ct=!1}for(st&&(st+=ot);lt<r;)A[lt].animatorJustifyOffset=st,lt+=1}for(r=0;r<s;r+=1){if(S.reset(),B=1,A[r].n)n=0,i+=t.yOffset,i+=R?1:0,a=Z,R=!1,this._hasMaskedPath&&(u=et,d=(f=m[p=tt].points)[u-1],g=(l=f[u]).partialLength,c=0),it="",K="",Q="",Y="",rt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(nt!==A[r].line){switch(t.j){case 1:a+=y-t.lineWidths[A[r].line];break;case 2:a+=(y-t.lineWidths[A[r].line])/2}nt=A[r].line}X!==A[r].ind&&(A[X]&&(a+=A[X].extra),a+=A[r].an/2,X=A[r].ind),a+=w[0]*A[r].an*.005;var ht=0;for(j=0;j<D;j+=1)(E=k[j].a).p.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?ht+=E.p.v[0]*F[0]:ht+=E.p.v[0]*F),E.a.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?ht+=E.a.v[0]*F[0]:ht+=E.a.v[0]*F);for(h=!0,this._pathData.a.v&&(a=.5*A[0].an+(y-this._pathData.f.v-.5*A[0].an-.5*A[A.length-1].an)*X/(s-1),a+=this._pathData.f.v);h;)c+g>=a+ht||!f?(v=(a+ht-c)/l.partialLength,V=d.point[0]+(l.point[0]-d.point[0])*v,q=d.point[1]+(l.point[1]-d.point[1])*v,S.translate(-w[0]*A[r].an*.005,-w[1]*I*.01),h=!1):f&&(c+=l.partialLength,(u+=1)>=f.length&&(u=0,m[p+=1]?f=m[p].points:x.v.c?(u=0,f=m[p=0].points):(c-=l.partialLength,f=null)),f&&(d=l,g=(l=f[u]).partialLength));N=A[r].an/2-A[r].add,S.translate(-N,0,0)}else N=A[r].an/2-A[r].add,S.translate(-N,0,0),S.translate(-w[0]*A[r].an*.005,-w[1]*I*.01,0);for(j=0;j<D;j+=1)(E=k[j].a).t.propType&&(F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?F.length?a+=E.t.v*F[0]:a+=E.t.v*F:F.length?n+=E.t.v*F[0]:n+=E.t.v*F));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(W=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),j=0;j<D;j+=1)(E=k[j].a).a.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?S.translate(-E.a.v[0]*F[0],-E.a.v[1]*F[1],E.a.v[2]*F[2]):S.translate(-E.a.v[0]*F,-E.a.v[1]*F,E.a.v[2]*F));for(j=0;j<D;j+=1)(E=k[j].a).s.propType&&((F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars)).length?S.scale(1+(E.s.v[0]-1)*F[0],1+(E.s.v[1]-1)*F[1],1):S.scale(1+(E.s.v[0]-1)*F,1+(E.s.v[1]-1)*F,1));for(j=0;j<D;j+=1){if(E=k[j].a,F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars),E.sk.propType&&(F.length?S.skewFromAxis(-E.sk.v*F[0],E.sa.v*F[1]):S.skewFromAxis(-E.sk.v*F,E.sa.v*F)),E.r.propType&&(F.length?S.rotateZ(-E.r.v*F[2]):S.rotateZ(-E.r.v*F)),E.ry.propType&&(F.length?S.rotateY(E.ry.v*F[1]):S.rotateY(E.ry.v*F)),E.rx.propType&&(F.length?S.rotateX(E.rx.v*F[0]):S.rotateX(E.rx.v*F)),E.o.propType&&(F.length?B+=(E.o.v*F[0]-B)*F[0]:B+=(E.o.v*F-B)*F),t.strokeWidthAnim&&E.sw.propType&&(F.length?U+=E.sw.v*F[0]:U+=E.sw.v*F),t.strokeColorAnim&&E.sc.propType)for(G=0;G<3;G+=1)F.length?W[G]+=(E.sc.v[G]-W[G])*F[0]:W[G]+=(E.sc.v[G]-W[G])*F;if(t.fillColorAnim&&t.fc){if(E.fc.propType)for(G=0;G<3;G+=1)F.length?H[G]+=(E.fc.v[G]-H[G])*F[0]:H[G]+=(E.fc.v[G]-H[G])*F;E.fh.propType&&(H=F.length?z(H,E.fh.v*F[0]):z(H,E.fh.v*F)),E.fs.propType&&(H=F.length?L(H,E.fs.v*F[0]):L(H,E.fs.v*F)),E.fb.propType&&(H=F.length?O(H,E.fb.v*F[0]):O(H,E.fb.v*F))}}for(j=0;j<D;j+=1)(E=k[j].a).p.propType&&(F=k[j].s.getMult(A[r].anIndexes[j],_.a[j].s.totalChars),this._hasMaskedPath?F.length?S.translate(0,E.p.v[1]*F[0],-E.p.v[2]*F[1]):S.translate(0,E.p.v[1]*F,-E.p.v[2]*F):F.length?S.translate(E.p.v[0]*F[0],E.p.v[1]*F[1],-E.p.v[2]*F[2]):S.translate(E.p.v[0]*F,E.p.v[1]*F,-E.p.v[2]*F));if(t.strokeWidthAnim&&(Q=U<0?0:U),t.strokeColorAnim&&(J="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(S.translate(0,-t.ls),S.translate(0,w[1]*I*.01+i,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var ut=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(ut+=180),S.rotate(-ut*Math.PI/180)}S.translate(V,q,0),a-=w[0]*A[r].an*.005,A[r+1]&&X!==A[r+1].ind&&(a+=A[r].an/2,a+=.001*t.tr*t.finalSize)}else{switch(S.translate(n,i,0),t.ps&&S.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:S.translate(A[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[r].line]),0,0);break;case 2:S.translate(A[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[A[r].line])/2,0,0)}S.translate(0,-t.ls),S.translate(N,0,0),S.translate(w[0]*A[r].an*.005,w[1]*I*.01,0),n+=A[r].l+.001*t.tr*t.finalSize}"html"===$?it=S.toCSS():"svg"===$?it=S.to2dCSS():rt=[S.props[0],S.props[1],S.props[2],S.props[3],S.props[4],S.props[5],S.props[6],S.props[7],S.props[8],S.props[9],S.props[10],S.props[11],S.props[12],S.props[13],S.props[14],S.props[15]],Y=B}C<=r?(M=new kn(Y,Q,J,K,it,rt),this.renderedLetters.push(M),C+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[r],this.lettersChangedFlag=M.update(Y,Q,J,K,it,rt)||this.lettersChangedFlag)}}},Cn.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Cn.prototype.mHelper=new wt,Cn.prototype.defaultPropsArray=[],h([ft],Cn),An.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new _n(this,t.t,this.dynamicProperties),this.textAnimator=new Cn(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},An.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},An.prototype.createPathShape=function(t,e){var n,i,r=e.length,s="";for(n=0;n<r;n+=1)"sh"===e[n].ty&&(i=e[n].ks.k,s+=bn(i,i.i.length,!0,t));return s},An.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},An.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},An.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},An.prototype.applyTextPropertiesToMatrix=function(t,e,n,i,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(i,r,0)},An.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},An.prototype.emptyProp=new kn,An.prototype.destroy=function(){};var Pn={shapes:[]};function Tn(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function En(t,e,n){this.initElement(t,e,n)}function jn(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function Dn(){}function Mn(){}function Fn(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?f(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function In(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var n="";if(e&&e.title){var i=G("title"),r=F();i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),n+=r}if(e&&e.description){var s=G("desc"),o=F();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=G("defs");this.svgElement.appendChild(a);var l=G("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return h([ze,We,Ze,tn,Ne,en,An],Tn),Tn.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Tn.prototype.buildTextContents=function(t){for(var e=0,n=t.length,i=[],r="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(r),r=""):r+=t[e],e+=1;return i.push(r),i},Tn.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},Tn.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=f(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var r=n.fWeight,s=n.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",n.t);var o,a=n.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var c=this.mHelper,h="",u=this.data.singleShape,p=0,d=0,m=!0,g=.001*n.tr*n.finalSize;if(!u||l||n.sz){var y,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!u||0===t){if(o=v>t?this.textSpans[t].span:G(l?"g":"text"),v<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var b=G("g");o.appendChild(b),this.textSpans[t].childSpan=b}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(c.reset(),u&&(a[t].n&&(p=-g,d+=n.yOffset,d+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,c,a[t].line,p,d),p+=a[t].l||0,p+=g),l){var x;if(1===(y=this.globalData.fontManager.getCharData(n.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)x=new Fn(y.data,this.globalData,this);else{var w=Pn;y.data&&y.data.shapes&&(w=this.buildShapeData(y.data,n.finalSize)),x=new wn(w,this.globalData,this)}if(this.textSpans[t].glyph){var k=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[t].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[t].childSpan.appendChild(x.layerElement),1===y.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else u&&o.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}u&&o&&o.setAttribute("d",h)}else{var _=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}_.setAttribute("text-anchor",S),_.setAttribute("letter-spacing",g);var $=this.buildTextContents(n.finalText);for(e=$.length,d=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||G("tspan")).textContent=$[t],o.setAttribute("x",0),o.setAttribute("y",d),o.style.display="inherit",_.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,d+=n.finalLineHeight;this.layerElement.appendChild(_)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Tn.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},Tn.prototype.getValue=function(){var t,e,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},Tn.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,i,r,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(n=s[t],i=this.textSpans[t].span,(r=this.textSpans[t].glyph)&&r.renderFrame(),n._mdf.m&&i.setAttribute("transform",n.m),n._mdf.o&&i.setAttribute("opacity",n.o),n._mdf.sw&&i.setAttribute("stroke-width",n.sw),n._mdf.sc&&i.setAttribute("stroke",n.sc),n._mdf.fc&&i.setAttribute("fill",n.fc))}},h([nn],En),En.prototype.createContent=function(){var t=G("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},jn.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},jn.prototype.renderFrame=function(){},jn.prototype.getBaseElement=function(){return null},jn.prototype.destroy=function(){},jn.prototype.sourceRectAtTime=function(){},jn.prototype.hide=function(){},h([ze,We,tn,Ne],jn),h([Be],Dn),Dn.prototype.createNull=function(t){return new jn(t,this.globalData,this)},Dn.prototype.createShape=function(t){return new wn(t,this.globalData,this)},Dn.prototype.createText=function(t){return new Tn(t,this.globalData,this)},Dn.prototype.createImage=function(t){return new nn(t,this.globalData,this)},Dn.prototype.createSolid=function(t){return new En(t,this.globalData,this)},Dn.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=G("clipPath"),i=G("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var r=F();n.setAttribute("id",r),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+l()+"#"+r+")"),e.appendChild(n),this.layers=t.layers,this.elements=f(t.layers.length)},Dn.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Dn.prototype.updateContainerSize=function(){},Dn.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},Dn.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,B()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var r=e[i].getMatte(this.layers[t].tt);n.setMatte(r)}else this.buildItem(i),this.addPendingElement(n)}}},Dn.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,r=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(r);break}e+=1}}},Dn.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Dn.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},Dn.prototype.hide=function(){this.layerElement.style.display="none"},Dn.prototype.show=function(){this.layerElement.style.display="block"},h([ze,We,tn,Ne,en],Mn),Mn.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Mn.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Mn.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Mn.prototype.setElements=function(t){this.elements=t},Mn.prototype.getElements=function(){return this.elements},Mn.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Mn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},h([Dn,Mn,Ze],Fn),Fn.prototype.createComp=function(t){return new Fn(t,this.globalData,this)},h([Dn],In),In.prototype.createComp=function(t){return new Fn(t,this.globalData,this)},et("svg",In),zt.registerModifier("tm",Vt),zt.registerModifier("pb",qt),zt.registerModifier("rp",Wt),zt.registerModifier("rd",Ut),zt.registerModifier("zz",he),zt.registerModifier("op",_e),_t}())}(r,r.exports);var s=r.exports;function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},s=Object.keys(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)n=s[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,c=!1;try{if(s=(n=n.call(t)).next,0===e);else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(h){c=!0,r=h}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var d=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],f=function(t,n){var r=t.animationData,o=t.loop,l=t.autoplay,h=t.initialSegment,p=t.onComplete,f=t.onLoopComplete,m=t.onEnterFrame,g=t.onSegmentStart,y=t.onConfigReady,v=t.onDataReady,b=t.onDataFailed,x=t.onLoadedImages,w=t.onDOMLoaded,k=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var _=c(t,d),S=u(e.useState(!1),2),$=S[0],C=S[1],A=e.useRef(),P=e.useRef(null);return e.useEffect((function(){var e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P.current){null===(e=A.current)||void 0===e||e.destroy();var i=a(a(a({},t),n),{},{container:P.current});return A.current=s.loadAnimation(i),C(!!A.current),function(){var t;null===(t=A.current)||void 0===t||t.destroy(),A.current=void 0}}}();return function(){return null==e?void 0:e()}}),[r,o]),e.useEffect((function(){A.current&&(A.current.autoplay=!!l)}),[l]),e.useEffect((function(){A.current&&(h?Array.isArray(h)&&h.length&&((A.current.currentRawFrame<h[0]||A.current.currentRawFrame>h[1])&&(A.current.currentRawFrame=h[0]),A.current.setSegment(h[0],h[1])):A.current.resetSegments(!0))}),[h]),e.useEffect((function(){var t=[{name:"complete",handler:p},{name:"loopComplete",handler:f},{name:"enterFrame",handler:m},{name:"segmentStart",handler:g},{name:"config_ready",handler:y},{name:"data_ready",handler:v},{name:"data_failed",handler:b},{name:"loaded_images",handler:x},{name:"DOMLoaded",handler:w},{name:"destroy",handler:k}].filter((function(t){return null!=t.handler}));if(t.length){var e=t.map((function(t){var e;return null===(e=A.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=A.current)||void 0===e||e.removeEventListener(t.name,t.handler)}}));return function(){e.forEach((function(t){return t()}))}}}),[p,f,m,g,y,v,b,x,w,k]),{View:i.default.createElement("div",a({style:n,ref:P},_)),play:function(){var t;null===(t=A.current)||void 0===t||t.play()},stop:function(){var t;null===(t=A.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=A.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=A.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var n;null===(n=A.current)||void 0===n||n.goToAndStop(t,e)},goToAndPlay:function(t,e){var n;null===(n=A.current)||void 0===n||n.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=A.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var n;null===(n=A.current)||void 0===n||n.playSegments(t,e)},setSubframe:function(t){var e;null===(e=A.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=A.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=A.current)||void 0===t||t.destroy(),A.current=void 0},animationContainerRef:P,animationLoaded:$,animationItem:A.current}};var m=function(t){var n=t.wrapperRef,i=t.animationItem,r=t.mode,s=t.actions;e.useEffect((function(){var t,e,o=n.current;if(o&&i&&s.length){i.stop();switch(r){case"scroll":return t=null,e=function(){var e=function(t){var e=t.getBoundingClientRect(),n=e.top,i=e.height;return(window.innerHeight-n)/(window.innerHeight+i)}(o),n=s.find((function(t){var n=t.visibility;return n&&e>=n[0]&&e<=n[1]}));if(n){if("seek"===n.type&&n.visibility&&2===n.frames.length){var r=n.frames[0]+Math.ceil((e-n.visibility[0])/(n.visibility[1]-n.visibility[0])*n.frames[1]);
328
+ `,Ql=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"];var Zl={};!function(t,e){var n,r=(n=e)&&"object"==typeof n&&"default"in n?n:{default:n},i=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==u||"undefined"!=typeof self&&self,{exports:{}});!function(t,e){"undefined"!=typeof navigator&&(t.exports=function(){var t="http://www.w3.org/2000/svg",n="",r=!1,i=-999999,o=function(t){r=!!t},s=function(){return r},a=function(t){n=t},l=function(){return n};function c(t){return document.createElement(t)}function u(t,e){var n,r,i=t.length;for(n=0;n<i;n+=1)for(var o in r=t[n].prototype)Object.prototype.hasOwnProperty.call(r,o)&&(e.prototype[o]=r[o])}function p(t){function e(){}return e.prototype=t,e}var h=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,n=this.audios.length;for(e=0;e<n;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),d=function(){function t(t,e){var n,r=0,i=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<e;r+=1)i.push(n);return i}function e(e,n){return"float32"===e?new Float32Array(n):"int16"===e?new Int16Array(n):"uint8c"===e?new Uint8ClampedArray(n):t(e,n)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function f(t){return Array.apply(null,{length:t})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,x=Math.sqrt,w=Math.floor,k=Math.min,S=150,C=Math.PI/180,_=.5519;function $(t,e,n,r){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=r<0?-1:1}function E(t,e){this.type=t,this.direction=e<0?-1:1}function P(t,e,n,r){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=r<0?-1:1}function T(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function A(t,e){this.type=t,this.target=e}function j(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function O(t){this.type="configError",this.nativeError=t}var M,D=(M=0,function(){return y+"__lottie_element_"+(M+=1)});function I(t,e,n){var r,i,o,s,a,l,c,u;switch(l=n*(1-e),c=n*(1-(a=6*t-(s=Math.floor(6*t)))*e),u=n*(1-(1-a)*e),s%6){case 0:r=n,i=u,o=l;break;case 1:r=c,i=n,o=l;break;case 2:r=l,i=n,o=u;break;case 3:r=l,i=c,o=n;break;case 4:r=u,i=l,o=n;break;case 5:r=n,i=l,o=c}return[r,i,o]}function R(t,e,n){var r,i=Math.max(t,e,n),o=Math.min(t,e,n),s=i-o,a=0===i?0:s/i,l=i/255;switch(i){case o:r=0;break;case t:r=e-n+s*(e<n?6:0),r/=6*s;break;case e:r=n-t+2*s,r/=6*s;break;case n:r=t-e+4*s,r/=6*s}return[r,a,l]}function F(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),I(n[0],n[1],n[2])}function L(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),I(n[0],n[1],n[2])}function N(t,e){var n=R(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),I(n[0],n[1],n[2])}!function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1===e.length?"0"+e:e}();var z=function(t){m=!!t},V=function(){return m},B=function(t){g=t},W=function(){return g},q=function(t){S=t},U=function(){return S},H=function(t){y=t};function G(e){return document.createElementNS(t,e)}function K(t){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Y=function(){var t,e,n=1,r=[],i={onmessage:function(){},postMessage:function(e){t({data:e})}},o={postMessage:function(t){i.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&s()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return t=e,i}function l(){e||((e=a((function(t){function e(){function t(e,n){var s,a,l,c,u,p,h=e.length;for(a=0;a<h;a+=1)if("ks"in(s=e[a])&&!s.completed){if(s.completed=!0,s.hasMask){var d=s.masksProperties;for(c=d.length,l=0;l<c;l+=1)if(d[l].pt.k.i)o(d[l].pt.k);else for(p=d[l].pt.k.length,u=0;u<p;u+=1)d[l].pt.k[u].s&&o(d[l].pt.k[u].s[0]),d[l].pt.k[u].e&&o(d[l].pt.k[u].e[0])}0===s.ty?(s.layers=r(s.refId,n),t(s.layers,n)):4===s.ty?i(s.shapes):5===s.ty&&f(s)}}function e(e,n){if(e){var i=0,o=e.length;for(i=0;i<o;i+=1)1===e[i].t&&(e[i].data.layers=r(e[i].data.refId,n),t(e[i].data.layers,n))}}function n(t,e){for(var n=0,r=e.length;n<r;){if(e[n].id===t)return e[n];n+=1}return null}function r(t,e){var r=n(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function i(t){var e,n,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)o(t[e].ks.k);else for(r=t[e].ks.k.length,n=0;n<r;n+=1)t[e].ks.k[n].s&&o(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&o(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function o(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function s(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&null))}var a,l=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),c=(a=[4,7,99],function(t){if(t.chars&&!s(a,t.v)){var e,n=t.chars.length;for(e=0;e<n;e+=1){var r=t.chars[e];r.data&&r.data.shapes&&(i(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[e].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),u=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)5===t[n].ty&&e(t[n])}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var n,r,i,o=t.length;for(n=0;n<o;n+=1)if("gr"===t[n].ty)e(t[n].it);else if("fl"===t[n].ty||"st"===t[n].ty)if(t[n].c.k&&t[n].c.k[0].i)for(i=t[n].c.k.length,r=0;r<i;r+=1)t[n].c.k[r].s&&(t[n].c.k[r].s[0]/=255,t[n].c.k[r].s[1]/=255,t[n].c.k[r].s[2]/=255,t[n].c.k[r].s[3]/=255),t[n].c.k[r].e&&(t[n].c.k[r].e[0]/=255,t[n].c.k[r].e[1]/=255,t[n].c.k[r].e[2]/=255,t[n].c.k[r].e[3]/=255);else t[n].c.k[0]/=255,t[n].c.k[1]/=255,t[n].c.k[2]/=255,t[n].c.k[3]/=255}function n(t){var n,r=t.length;for(n=0;n<r;n+=1)4===t[n].ty&&e(t[n].shapes)}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}(),h=function(){var t=[4,4,18];function e(t){var n,r,i;for(n=t.length-1;n>=0;n-=1)if("sh"===t[n].ty)if(t[n].ks.k.i)t[n].ks.k.c=t[n].closed;else for(i=t[n].ks.k.length,r=0;r<i;r+=1)t[n].ks.k[r].s&&(t[n].ks.k[r].s[0].c=t[n].closed),t[n].ks.k[r].e&&(t[n].ks.k[r].e[0].c=t[n].closed);else"gr"===t[n].ty&&e(t[n].it)}function n(t){var n,r,i,o,s,a,l=t.length;for(r=0;r<l;r+=1){if((n=t[r]).hasMask){var c=n.masksProperties;for(o=c.length,i=0;i<o;i+=1)if(c[i].pt.k.i)c[i].pt.k.c=c[i].cl;else for(a=c[i].pt.k.length,s=0;s<a;s+=1)c[i].pt.k[s].s&&(c[i].pt.k[s].s[0].c=c[i].cl),c[i].pt.k[s].e&&(c[i].pt.k[s].e[0].c=c[i].cl)}4===n.ty&&e(n.shapes)}}return function(e){if(s(t,e.v)&&(n(e.layers),e.assets)){var r,i=e.assets.length;for(r=0;r<i;r+=1)e.assets[r].layers&&n(e.assets[r].layers)}}}();function d(n){n.__complete||(p(n),l(n),c(n),u(n),h(n),t(n.layers,n.assets),e(n.chars,n.assets),n.__complete=!0)}function f(t){0===t.t.a.length&&t.t.p}var m={};return m.completeData=d,m.checkColors=p,m.checkChars=c,m.checkPathProperties=u,m.checkShapes=h,m.completeLayers=t,m}if(o.dataManager||(o.dataManager=e()),o.assetLoader||(o.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===K(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function e(e,n,r,i){var o,s=new XMLHttpRequest;try{s.responseType="json"}catch(a){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)o=t(s),r(o);else try{o=t(s),r(o)}catch(a){i&&i(a)}};try{s.open(["G","E","T"].join(""),e,!0)}catch(a){s.open(["G","E","T"].join(""),n+"/"+e,!0)}s.send()}return{load:e}}()),"loadAnimation"===t.data.type)o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.dataManager.completeData(e),o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var n=t.data.animation;o.dataManager.completeData(n),o.postMessage({id:t.data.id,payload:n,status:"success"})}else"loadData"===t.data.type&&o.assetLoader.load(t.data.path,t.data.fullPath,(function(e){o.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){o.postMessage({id:t.data.id,status:"error"})}))}))).onmessage=function(t){var e=t.data,n=e.id,i=r[n];r[n]=null,"success"===e.status?i.onComplete(e.payload):i.onError&&i.onError()})}function c(t,e){var i="processId_"+(n+=1);return r[i]={onComplete:t,onError:e},i}function u(t,n,r){l();var i=c(n,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:i})}function p(t,n,r){l();var i=c(n,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:i})}function h(t,n,r){l();var i=c(n,r);e.postMessage({type:"complete",animation:t,id:i})}return{loadAnimation:u,loadData:p,completeAnimation:h}}(),J=function(){var t=function(){var t=c("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,n){var r="";if(t.e)r=t.p;else if(e){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),r=e+i}else r=n,r+=t.u?t.u:"",r+=t.p;return r}function i(t){var e=0,n=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(n)),e+=1}.bind(this),50)}function o(e){var n=r(e,this.assetsPath,this.path),i=G("image");v?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var o={img:i,assetData:e};return o}function s(e){var n=r(e,this.assetsPath,this.path),i=c("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){o.img=t,this._imageLoaded()}.bind(this),!1),i.src=n;var o={img:i,assetData:e};return o}function a(t){var e={assetData:t},n=r(t,this.assetsPath,this.path);return Y.loadData(n,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function l(t,e){var n;this.imagesLoadedCb=e;var r=t.length;for(n=0;n<r;n+=1)t[n].layers||(t[n].t&&"seq"!==t[n].t?3===t[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[n]))):(this.totalImages+=1,this.images.push(this._createImageData(t[n]))))}function u(t){this.path=t||""}function p(t){this.assetsPath=t||""}function h(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function d(){this.imagesLoadedCb=null,this.images.length=0}function f(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=e.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:l,setAssetsPath:p,setPath:u,loadedImages:f,loadedFootages:m,destroy:d,getAsset:h,createImgData:s,createImageData:o,imageLoaded:e,footageLoaded:n,setCacheType:g},y}();function X(){}X.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t],r=0;r<n.length;r+=1)n[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,r=this._cbs[t].length;n<r;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,r-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var Q=function(){function t(t){for(var e,n=t.split("\r\n"),r={},i=0,o=0;o<n.length;o+=1)2===(e=n[o].split(":")).length&&(r[e[0]]=e[1].trim(),i+=1);if(0===i)throw new Error;return r}return function(e){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],o={time:i.tm,duration:i.dr};try{o.payload=JSON.parse(e[r].cm)}catch(s){try{o.payload=t(e[r].cm)}catch(a){o.payload={name:e[r].cm}}}n.push(o)}return n}}(),Z=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),tt={},et=function(t,e){tt[t]=e};function nt(t){return tt[t]}function rt(t){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var it=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=D(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=V(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Z(),this.imagePreloader=new J,this.audioController=h(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new $("drawnFrame",0,0,0)};u([X],it),it.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var n=nt(e);this.renderer=new n(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),Y.loadAnimation(t.path,this.configAnimation,this.onSetupError))},it.prototype.onSetupError=function(){this.trigger("data_failed")},it.prototype.setupAnimation=function(t){Y.completeAnimation(t,this.configAnimation)},it.prototype.setData=function(t,e){e&&"object"!==rt(e)&&(e=JSON.parse(e));var n={wrapper:t,animationData:e},r=t.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:"canvas";var i=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===i?n.loop=!1:"true"===i?n.loop=!0:""!==i&&(n.loop=parseInt(i,10));var o=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},it.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,r=this.animationData.layers,i=r.length,o=t.layers,s=o.length;for(n=0;n<s;n+=1)for(e=0;e<i;){if(r[e].id===o[n].id){r[e]=o[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(i=t.assets.length,e=0;e<i;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,Y.completeAnimation(this.animationData,this.onSegmentComplete)},it.prototype.onSegmentComplete=function(t){this.animationData=t;var e=W();e&&e.initExpressions(this),this.loadNextSegment()},it.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,Y.loadData(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},it.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},it.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},it.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},it.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=Q(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},it.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},it.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=W();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},it.prototype.resize=function(t,e){var n="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(n,r)},it.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},it.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},it.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},it.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},it.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},it.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},it.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},it.prototype.getMarkerData=function(t){for(var e,n=0;n<this.markers.length;n+=1)if((e=this.markers[n]).payload&&e.payload.name===t)return e;return null},it.prototype.goToAndStop=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var i=this.getMarkerData(t);i&&this.goToAndStop(i.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},it.prototype.goToAndPlay=function(t,e,n){if(!n||this.name===n){var r=Number(t);if(isNaN(r)){var i=this.getMarkerData(t);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(r,e,n);this.play()}},it.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},it.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},it.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},it.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===rt(t[0])){var n,r=t.length;for(n=0;n<r;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},it.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},it.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},it.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},it.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},it.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},it.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},it.prototype.setLoop=function(t){this.loop=t},it.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},it.prototype.getVolume=function(){return this.audioController.getVolume()},it.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},it.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},it.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},it.prototype.getPath=function(){return this.path},it.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},it.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},it.prototype.hide=function(){this.renderer.hide()},it.prototype.show=function(){this.renderer.show()},it.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},it.prototype.updateDocumentData=function(t,e,n){try{this.renderer.getElementByPath(t).updateDocumentData(e,n)}catch(r){}},it.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new $(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new P(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new E(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new T(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new A(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new $(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new P(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new E(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new T(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new A(t,this))},it.prototype.triggerRenderFrameError=function(t){var e=new j(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},it.prototype.triggerConfigError=function(t){var e=new O(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var ot=function(){var t={},e=[],n=0,r=0,i=0,o=!0,s=!1;function a(t){for(var n=0,i=t.target;n<r;)e[n].animation===i&&(e.splice(n,1),n-=1,r-=1,i.isPaused||h()),n+=1}function l(t,n){if(!t)return null;for(var i=0;i<r;){if(e[i].elem===t&&null!==e[i].elem)return e[i].animation;i+=1}var o=new it;return d(o,t),o.setData(t,n),o}function u(){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r.push(e[t].animation);return r}function p(){i+=1,E()}function h(){i-=1}function d(t,n){t.addEventListener("destroy",a),t.addEventListener("_active",p),t.addEventListener("_idle",h),e.push({elem:n,animation:t}),r+=1}function f(t){var e=new it;return d(e,null),e.setParams(t),e}function m(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setSpeed(t,n)}function g(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setDirection(t,n)}function y(t){var n;for(n=0;n<r;n+=1)e[n].animation.play(t)}function v(t){var a,l=t-n;for(a=0;a<r;a+=1)e[a].animation.advanceTime(l);n=t,i&&!s?window.requestAnimationFrame(v):o=!0}function b(t){n=t,window.requestAnimationFrame(v)}function x(t){var n;for(n=0;n<r;n+=1)e[n].animation.pause(t)}function w(t,n,i){var o;for(o=0;o<r;o+=1)e[o].animation.goToAndStop(t,n,i)}function k(t){var n;for(n=0;n<r;n+=1)e[n].animation.stop(t)}function S(t){var n;for(n=0;n<r;n+=1)e[n].animation.togglePause(t)}function C(t){var n;for(n=r-1;n>=0;n-=1)e[n].animation.destroy(t)}function _(t,e,n){var r,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),o=i.length;for(r=0;r<o;r+=1)n&&i[r].setAttribute("data-bm-type",n),l(i[r],t);if(e&&0===o){n||(n="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var a=c("div");a.style.width="100%",a.style.height="100%",a.setAttribute("data-bm-type",n),s.appendChild(a),l(a,t)}}function $(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()}function E(){!s&&i&&o&&(window.requestAnimationFrame(b),o=!1)}function P(){s=!0}function T(){s=!1,E()}function A(t,n){var i;for(i=0;i<r;i+=1)e[i].animation.setVolume(t,n)}function j(t){var n;for(n=0;n<r;n+=1)e[n].animation.mute(t)}function O(t){var n;for(n=0;n<r;n+=1)e[n].animation.unmute(t)}return t.registerAnimation=l,t.loadAnimation=f,t.setSpeed=m,t.setDirection=g,t.play=y,t.pause=x,t.stop=k,t.togglePause=S,t.searchAnimations=_,t.resize=$,t.goToAndStop=w,t.destroy=C,t.freeze=P,t.unfreeze=T,t.setVolume=A,t.mute=j,t.unmute=O,t.getRegisteredAnimations=u,t}(),st=function(){var t={};t.getBezierEasing=n;var e={};function n(t,n,r,i,o){var s=o||("bez_"+t+"_"+n+"_"+r+"_"+i).replace(/\./g,"p");if(e[s])return e[s];var a=new y([t,n,r,i]);return e[s]=a,a}var r=4,i=.001,o=1e-7,s=10,a=11,l=1/(a-1),c="function"==typeof Float32Array;function u(t,e){return 1-3*e+3*t}function p(t,e){return 3*e-6*t}function h(t){return 3*t}function d(t,e,n){return((u(e,n)*t+p(e,n))*t+h(e))*t}function f(t,e,n){return 3*u(e,n)*t*t+2*p(e,n)*t+h(e)}function m(t,e,n,r,i){var a,l,c=0;do{(a=d(l=e+(n-e)/2,r,i)-t)>0?n=l:e=l}while(Math.abs(a)>o&&++c<s);return l}function g(t,e,n,i){for(var o=0;o<r;++o){var s=f(e,n,i);if(0===s)return e;e-=(d(e,n,i)-t)/s}return e}function y(t){this._p=t,this._mSampleValues=c?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],n=this._p[1],r=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),e===n&&r===i?t:0===t?0:1===t?1:d(this._getTForX(t),n,i)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,t===e&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<a;++n)this._mSampleValues[n]=d(n*l,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],r=this._mSampleValues,o=0,s=1,c=a-1;s!==c&&r[s]<=t;++s)o+=l;var u=o+(t-r[--s])/(r[s+1]-r[s])*l,p=f(u,e,n);return p>=i?g(t,u,e,n):0===p?u:m(t,o,o+l,e,n)}},t}(),at=function(){function t(t){return t.concat(f(t.length))}return{double:t}}(),lt=function(t,e,n){var r=0,i=t,o=f(i);function s(){return r?o[r-=1]:e()}function a(t){r===i&&(o=at.double(o),i*=2),n&&n(t),o[r]=t,r+=1}return{newElement:s,release:a}},ct=function(){function t(){return{addedLength:0,percents:d("float32",U()),lengths:d("float32",U())}}return lt(8,t)}(),ut=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)ct.release(t.lengths[e]);t.lengths.length=0}return lt(8,t,e)}();function pt(){var t=Math;function e(t,e,n,r,i,o){var s=t*r+e*i+n*o-i*r-o*t-n*e;return s>-.001&&s<.001}function n(n,r,i,o,s,a,l,c,u){if(0===i&&0===a&&0===u)return e(n,r,o,s,l,c);var p,h=t.sqrt(t.pow(o-n,2)+t.pow(s-r,2)+t.pow(a-i,2)),d=t.sqrt(t.pow(l-n,2)+t.pow(c-r,2)+t.pow(u-i,2)),f=t.sqrt(t.pow(l-o,2)+t.pow(c-s,2)+t.pow(u-a,2));return(p=h>d?h>f?h-d-f:f-d-h:f>d?f-d-h:d-h-f)>-1e-4&&p<1e-4}var r=function(t,e,n,r){var i,o,s,a,l,c,u=U(),p=0,h=[],d=[],f=ct.newElement();for(s=n.length,i=0;i<u;i+=1){for(l=i/(u-1),c=0,o=0;o<s;o+=1)a=b(1-l,3)*t[o]+3*b(1-l,2)*l*n[o]+3*(1-l)*b(l,2)*r[o]+b(l,3)*e[o],h[o]=a,null!==d[o]&&(c+=b(h[o]-d[o],2)),d[o]=h[o];c&&(p+=c=x(c)),f.percents[i]=l,f.lengths[i]=p}return f.addedLength=p,f};function i(t){var e,n=ut.newElement(),i=t.c,o=t.v,s=t.o,a=t.i,l=t._length,c=n.lengths,u=0;for(e=0;e<l-1;e+=1)c[e]=r(o[e],o[e+1],s[e],a[e+1]),u+=c[e].addedLength;return i&&l&&(c[e]=r(o[e],o[0],s[e],a[0]),u+=c[e].addedLength),n.totalLength=u,n}function o(t){this.segmentLength=0,this.points=new Array(t)}function s(t,e){this.partialLength=t,this.point=e}var a,l=(a={},function(t,n,r,i){var l=(t[0]+"_"+t[1]+"_"+n[0]+"_"+n[1]+"_"+r[0]+"_"+r[1]+"_"+i[0]+"_"+i[1]).replace(/\./g,"p");if(!a[l]){var c,u,p,h,d,m,g,y=U(),v=0,w=null;2===t.length&&(t[0]!==n[0]||t[1]!==n[1])&&e(t[0],t[1],n[0],n[1],t[0]+r[0],t[1]+r[1])&&e(t[0],t[1],n[0],n[1],n[0]+i[0],n[1]+i[1])&&(y=2);var k=new o(y);for(p=r.length,c=0;c<y;c+=1){for(g=f(p),d=c/(y-1),m=0,u=0;u<p;u+=1)h=b(1-d,3)*t[u]+3*b(1-d,2)*d*(t[u]+r[u])+3*(1-d)*b(d,2)*(n[u]+i[u])+b(d,3)*n[u],g[u]=h,null!==w&&(m+=b(g[u]-w[u],2));v+=m=x(m),k.points[c]=new s(m,g),w=g}k.segmentLength=v,a[l]=k}return a[l]});function c(t,e){var n=e.percents,r=e.lengths,i=n.length,o=w((i-1)*t),s=t*e.addedLength,a=0;if(o===i-1||0===o||s===r[o])return n[o];for(var l=r[o]>s?-1:1,c=!0;c;)if(r[o]<=s&&r[o+1]>s?(a=(s-r[o])/(r[o+1]-r[o]),c=!1):o+=l,o<0||o>=i-1){if(o===i-1)return n[o];c=!1}return n[o]+(n[o+1]-n[o])*a}function u(e,n,r,i,o,s){var a=c(o,s),l=1-a;return[t.round(1e3*(l*l*l*e[0]+(a*l*l+l*a*l+l*l*a)*r[0]+(a*a*l+l*a*a+a*l*a)*i[0]+a*a*a*n[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(a*l*l+l*a*l+l*l*a)*r[1]+(a*a*l+l*a*a+a*l*a)*i[1]+a*a*a*n[1]))/1e3]}var p=d("float32",8);function h(e,n,r,i,o,s,a){o<0?o=0:o>1&&(o=1);var l,u=c(o,a),h=c(s=s>1?1:s,a),d=e.length,f=1-u,m=1-h,g=f*f*f,y=u*f*f*3,v=u*u*f*3,b=u*u*u,x=f*f*m,w=u*f*m+f*u*m+f*f*h,k=u*u*m+f*u*h+u*f*h,S=u*u*h,C=f*m*m,_=u*m*m+f*h*m+f*m*h,$=u*h*m+f*h*h+u*m*h,E=u*h*h,P=m*m*m,T=h*m*m+m*h*m+m*m*h,A=h*h*m+m*h*h+h*m*h,j=h*h*h;for(l=0;l<d;l+=1)p[4*l]=t.round(1e3*(g*e[l]+y*r[l]+v*i[l]+b*n[l]))/1e3,p[4*l+1]=t.round(1e3*(x*e[l]+w*r[l]+k*i[l]+S*n[l]))/1e3,p[4*l+2]=t.round(1e3*(C*e[l]+_*r[l]+$*i[l]+E*n[l]))/1e3,p[4*l+3]=t.round(1e3*(P*e[l]+T*r[l]+A*i[l]+j*n[l]))/1e3;return p}return{getSegmentsLength:i,getNewSegment:h,getPointInSegment:u,buildBezierData:l,pointOnLine2D:e,pointOnLine3D:n}}var ht=pt(),dt=function(){var t=i,e=Math.abs;function n(t,e){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=d("float32",this.pv.length));for(var a,l,c,u,p,h,f,m,g,y=e.lastIndex,v=y,b=this.keyframes.length-1,x=!0;x;){if(a=this.keyframes[v],l=this.keyframes[v+1],v===b-1&&t>=l.t-i){a.h&&(a=l),y=0;break}if(l.t-i>t){y=v;break}v<b-1?v+=1:(y=0,x=!1)}c=this.keyframesMetadata[v]||{};var w,k=l.t-i,S=a.t-i;if(a.to){c.bezierData||(c.bezierData=ht.buildBezierData(a.s,l.s||a.e,a.to,a.ti));var C=c.bezierData;if(t>=k||t<S){var _=t>=k?C.points.length-1:0;for(p=C.points[_].point.length,u=0;u<p;u+=1)n[u]=C.points[_].point[u]}else{c.__fnct?g=c.__fnct:(g=st.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,c.__fnct=g),h=g((t-S)/(k-S));var $,E=C.segmentLength*h,P=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastAddedLength:0;for(m=e.lastFrame<t&&e._lastKeyframeIndex===v?e._lastPoint:0,x=!0,f=C.points.length;x;){if(P+=C.points[m].partialLength,0===E||0===h||m===C.points.length-1){for(p=C.points[m].point.length,u=0;u<p;u+=1)n[u]=C.points[m].point[u];break}if(E>=P&&E<P+C.points[m+1].partialLength){for($=(E-P)/C.points[m+1].partialLength,p=C.points[m].point.length,u=0;u<p;u+=1)n[u]=C.points[m].point[u]+(C.points[m+1].point[u]-C.points[m].point[u])*$;break}m<f-1?m+=1:x=!1}e._lastPoint=m,e._lastAddedLength=P-C.points[m].partialLength,e._lastKeyframeIndex=v}}else{var T,A,j,O,M;if(b=a.s.length,w=l.s||a.e,this.sh&&1!==a.h)t>=k?(n[0]=w[0],n[1]=w[1],n[2]=w[2]):t<=S?(n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2]):o(n,r(s(a.s),s(w),(t-S)/(k-S)));else for(v=0;v<b;v+=1)1!==a.h&&(t>=k?h=1:t<S?h=0:(a.o.x.constructor===Array?(c.__fnct||(c.__fnct=[]),c.__fnct[v]?g=c.__fnct[v]:(T=void 0===a.o.x[v]?a.o.x[0]:a.o.x[v],A=void 0===a.o.y[v]?a.o.y[0]:a.o.y[v],j=void 0===a.i.x[v]?a.i.x[0]:a.i.x[v],O=void 0===a.i.y[v]?a.i.y[0]:a.i.y[v],g=st.getBezierEasing(T,A,j,O).get,c.__fnct[v]=g)):c.__fnct?g=c.__fnct:(T=a.o.x,A=a.o.y,j=a.i.x,O=a.i.y,g=st.getBezierEasing(T,A,j,O).get,a.keyframeMetadata=g),h=g((t-S)/(k-S)))),w=l.s||a.e,M=1===a.h?a.s[v]:a.s[v]+(w[v]-a.s[v])*h,"multidimensional"===this.propType?n[v]=M:n=M}return e.lastIndex=y,n}function r(t,e,n){var r,i,o,s,a,l=[],c=t[0],u=t[1],p=t[2],h=t[3],d=e[0],f=e[1],m=e[2],g=e[3];return(i=c*d+u*f+p*m+h*g)<0&&(i=-i,d=-d,f=-f,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),o=Math.sin(r),s=Math.sin((1-n)*r)/o,a=Math.sin(n*r)/o):(s=1-n,a=n),l[0]=s*c+a*d,l[1]=s*u+a*f,l[2]=s*p+a*m,l[3]=s*h+a*g,l}function o(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],s=Math.atan2(2*r*o-2*n*i,1-2*r*r-2*i*i),a=Math.asin(2*n*r+2*i*o),l=Math.atan2(2*n*o-2*r*i,1-2*n*n-2*i*i);t[0]=s/C,t[1]=a/C,t[2]=l/C}function s(t){var e=t[0]*C,n=t[1]*C,r=t[2]*C,i=Math.cos(e/2),o=Math.cos(n/2),s=Math.cos(r/2),a=Math.sin(e/2),l=Math.sin(n/2),c=Math.sin(r/2);return[a*l*s+i*o*c,a*o*s+i*l*c,i*l*s-a*o*c,i*o*s-a*l*c]}function a(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<n&&e<n))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function l(t){var n;if("unidimensional"===this.propType)n=t*this.mult,e(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)n=t[r]*this.mult,e(this.v[r]-n)>1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function c(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function u(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function p(t,e,n,r){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.addEffect=u}function h(t,e,n,r){var i;this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var o=e.k.length;for(this.v=d("float32",o),this.pv=d("float32",o),this.vel=d("float32",o),i=0;i<o;i+=1)this.v[i]=e.k[i]*this.mult,this.pv[i]=e.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=c,this.setVValue=l,this.addEffect=u}function f(e,r,i,o){this.propType="unidimensional",this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=r,this.mult=i||1,this.elem=e,this.container=o,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.effectsSequence=[a.bind(this)],this.addEffect=u}function m(e,r,i,o){var s;this.propType="multidimensional";var p,h,f,m,g=r.k.length;for(s=0;s<g-1;s+=1)r.k[s].to&&r.k[s].s&&r.k[s+1]&&r.k[s+1].s&&(p=r.k[s].s,h=r.k[s+1].s,f=r.k[s].to,m=r.k[s].ti,(2===p.length&&(p[0]!==h[0]||p[1]!==h[1])&&ht.pointOnLine2D(p[0],p[1],h[0],h[1],p[0]+f[0],p[1]+f[1])&&ht.pointOnLine2D(p[0],p[1],h[0],h[1],h[0]+m[0],h[1]+m[1])||3===p.length&&(p[0]!==h[0]||p[1]!==h[1]||p[2]!==h[2])&&ht.pointOnLine3D(p[0],p[1],p[2],h[0],h[1],h[2],p[0]+f[0],p[1]+f[1],p[2]+f[2])&&ht.pointOnLine3D(p[0],p[1],p[2],h[0],h[1],h[2],h[0]+m[0],h[1]+m[1],h[2]+m[2]))&&(r.k[s].to=null,r.k[s].ti=null),p[0]===h[0]&&p[1]===h[1]&&0===f[0]&&0===f[1]&&0===m[0]&&0===m[1]&&(2===p.length||p[2]===h[2]&&0===f[2]&&0===m[2])&&(r.k[s].to=null,r.k[s].ti=null));this.effectsSequence=[a.bind(this)],this.data=r,this.keyframes=r.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=o,this.comp=e.comp,this.getValue=c,this.setVValue=l,this.interpolateValue=n,this.frameId=-1;var y=r.k[0].s.length;for(this.v=d("float32",y),this.pv=d("float32",y),s=0;s<y;s+=1)this.v[s]=t,this.pv[s]=t;this._caching={lastFrame:t,lastIndex:0,value:d("float32",y)},this.addEffect=u}function g(t,e,n,r,i){var o;if(e.k.length)if("number"==typeof e.k[0])o=new h(t,e,r,i);else switch(n){case 0:o=new f(t,e,r,i);break;case 1:o=new m(t,e,r,i)}else o=new p(t,e,r,i);return o.effectsSequence.length&&i.addDynamicProperty(o),o}return{getProp:g}}();function ft(){}ft.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var mt=function(){function t(){return d("float32",2)}return lt(8,t)}();function gt(){this.c=!1,this._length=0,this._maxLength=8,this.v=f(this._maxLength),this.o=f(this._maxLength),this.i=f(this._maxLength)}gt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=mt.newElement(),this.o[n]=mt.newElement(),this.i[n]=mt.newElement(),n+=1},gt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},gt.prototype.doubleArrayLength=function(){this.v=this.v.concat(f(this._maxLength)),this.i=this.i.concat(f(this._maxLength)),this.o=this.o.concat(f(this._maxLength)),this._maxLength*=2},gt.prototype.setXYAt=function(t,e,n,r,i){var o;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[]}(!o[r]||o[r]&&!i)&&(o[r]=mt.newElement()),o[r][0]=t,o[r][1]=e},gt.prototype.setTripleAt=function(t,e,n,r,i,o,s,a){this.setXYAt(t,e,"v",s,a),this.setXYAt(n,r,"o",s,a),this.setXYAt(i,o,"i",s,a)},gt.prototype.reverse=function(){var t=new gt;t.setPathData(this.c,this._length);var e=this.v,n=this.o,r=this.i,i=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var o,s=this._length-1,a=this._length;for(o=i;o<a;o+=1)t.setTripleAt(e[s][0],e[s][1],r[s][0],r[s][1],n[s][0],n[s][1],o,!1),s-=1;return t},gt.prototype.length=function(){return this._length};var yt=function(){function t(){return new gt}function e(t){var e,n=t._length;for(e=0;e<n;e+=1)mt.release(t.v[e]),mt.release(t.i[e]),mt.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function n(t){var e,n=r.newElement(),i=void 0===t._length?t.v.length:t._length;for(n.setLength(i),n.c=t.c,e=0;e<i;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n}var r=lt(4,t,e);return r.clone=n,r}();function vt(){this._length=0,this._maxLength=4,this.shapes=f(this._maxLength)}vt.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(f(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},vt.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)yt.release(this.shapes[t]);this._length=0};var bt=function(){var t={newShapeCollection:i,release:o},e=0,n=4,r=f(n);function i(){return e?r[e-=1]:new vt}function o(t){var i,o=t._length;for(i=0;i<o;i+=1)yt.release(t.shapes[i]);t._length=0,e===n&&(r=at.double(r),n*=2),r[e]=t,e+=1}return t}(),xt=function(){var t=-999999;function e(t,e,n){var r,i,o,s,a,l,c,u,p,h=n.lastIndex,d=this.keyframes;if(t<d[0].t-this.offsetTime)r=d[0].s[0],o=!0,h=0;else if(t>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],o=!0;else{for(var f,m,g,y=h,v=d.length-1,b=!0;b&&(f=d[y],!((m=d[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},h=y,!(o=1===f.h)){if(t>=m.t-this.offsetTime)u=1;else if(t<f.t-this.offsetTime)u=0;else{var x;g.__fnct?x=g.__fnct:(x=st.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),u=x((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}i=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=e._length,c=r.i[0].length,n.lastIndex=h,s=0;s<l;s+=1)for(a=0;a<c;a+=1)p=o?r.i[s][a]:r.i[s][a]+(i.i[s][a]-r.i[s][a])*u,e.i[s][a]=p,p=o?r.o[s][a]:r.o[s][a]+(i.o[s][a]-r.o[s][a])*u,e.o[s][a]=p,p=o?r.v[s][a]:r.v[s][a]+(i.v[s][a]-r.v[s][a])*u,e.v[s][a]=p}function n(){var e=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==t&&(i<n&&e<n||i>r&&e>r)||(this._caching.lastIndex=i<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function i(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,r=t._length;for(n=0;n<r;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0}function o(t){i(this.v,t)||(this.v=yt.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var n=this.effectsSequence.length;for(e=0;e<n;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(t,e,n){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===n?e.pt.k:e.ks.k;this.v=yt.clone(i),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function c(e,i,o){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===o?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=yt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=yt.clone(this.v),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=o,a.prototype.addEffect=l,c.prototype.getValue=s,c.prototype.interpolateShape=e,c.prototype.setVValue=o,c.prototype.addEffect=l;var p=function(){var t=_;function e(t,e){this.v=yt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=bt.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],n=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=3!==this.d,s=this.v;s.v[0][0]=e,s.v[0][1]=n-i,s.v[1][0]=o?e+r:e-r,s.v[1][1]=n,s.v[2][0]=e,s.v[2][1]=n+i,s.v[3][0]=o?e-r:e+r,s.v[3][1]=n,s.i[0][0]=o?e-r*t:e+r*t,s.i[0][1]=n-i,s.i[1][0]=o?e+r:e-r,s.i[1][1]=n-i*t,s.i[2][0]=o?e+r*t:e-r*t,s.i[2][1]=n+i,s.i[3][0]=o?e-r:e+r,s.i[3][1]=n+i*t,s.o[0][0]=o?e+r*t:e-r*t,s.o[0][1]=n-i,s.o[1][0]=o?e+r:e-r,s.o[1][1]=n+i*t,s.o[2][0]=o?e-r*t:e+r*t,s.o[2][1]=n+i,s.o[3][0]=o?e-r:e+r,s.o[3][1]=n-i*t}},u([ft],e),e}(),h=function(){function t(t,e){this.v=yt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=dt.getProp(t,e.ir,0,0,this),this.is=dt.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=dt.getProp(t,e.pt,0,0,this),this.p=dt.getProp(t,e.p,1,0,this),this.r=dt.getProp(t,e.r,0,C,this),this.or=dt.getProp(t,e.or,0,0,this),this.os=dt.getProp(t,e.os,0,.01,this),this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,r,i=2*Math.floor(this.pt.v),o=2*Math.PI/i,s=!0,a=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,p=2*Math.PI*a/(2*i),h=2*Math.PI*l/(2*i),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<i;t+=1){n=s?c:u,r=s?p:h;var m=(e=s?a:l)*Math.cos(d),g=e*Math.sin(d),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*r*n*f,g-v*r*n*f,m+y*r*n*f,g+v*r*n*f,t,!0),s=!s,d+=o*f}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,r=this.or.v,i=this.os.v,o=2*Math.PI*r/(4*e),s=.5*-Math.PI,a=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(s),c=r*Math.sin(s),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*i*a,c-p*o*i*a,l+u*o*i*a,c+p*o*i*a,t,!0),s+=n*a}this.paths.length=0,this.paths[0]=this.v}},u([ft],t),t}(),d=function(){function t(t,e){this.v=yt.newElement(),this.v.c=!0,this.localShapeCollection=bt.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=dt.getProp(t,e.p,1,0,this),this.s=dt.getProp(t,e.s,1,0,this),this.r=dt.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,r=this.s.v[1]/2,i=k(n,r,this.r.v),o=i*(1-_);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+i,t+n,e-r+o,0,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-o,t+n,e+r-i,1,!0),0!==i?(this.v.setTripleAt(t+n-i,e+r,t+n-i,e+r,t+n-o,e+r,2,!0),this.v.setTripleAt(t-n+i,e+r,t-n+o,e+r,t-n+i,e+r,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-i,t-n,e+r-o,4,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+o,t-n,e-r+i,5,!0),this.v.setTripleAt(t-n+i,e-r,t-n+i,e-r,t-n+o,e-r,6,!0),this.v.setTripleAt(t+n-i,e-r,t+n-o,e-r,t+n-i,e-r,7,!0)):(this.v.setTripleAt(t-n,e+r,t-n+o,e+r,t-n,e+r,2),this.v.setTripleAt(t-n,e-r,t-n,e-r+o,t-n,e-r,3))):(this.v.setTripleAt(t+n,e-r+i,t+n,e-r+o,t+n,e-r+i,0,!0),0!==i?(this.v.setTripleAt(t+n-i,e-r,t+n-i,e-r,t+n-o,e-r,1,!0),this.v.setTripleAt(t-n+i,e-r,t-n+o,e-r,t-n+i,e-r,2,!0),this.v.setTripleAt(t-n,e-r+i,t-n,e-r+i,t-n,e-r+o,3,!0),this.v.setTripleAt(t-n,e+r-i,t-n,e+r-o,t-n,e+r-i,4,!0),this.v.setTripleAt(t-n+i,e+r,t-n+i,e+r,t-n+o,e+r,5,!0),this.v.setTripleAt(t+n-i,e+r,t+n-o,e+r,t+n-i,e+r,6,!0),this.v.setTripleAt(t+n,e+r-i,t+n,e+r-i,t+n,e+r-o,7,!0)):(this.v.setTripleAt(t-n,e-r,t-n+o,e-r,t-n,e-r,1,!0),this.v.setTripleAt(t-n,e+r,t-n,e+r-o,t-n,e+r,2,!0),this.v.setTripleAt(t+n,e+r,t+n-o,e+r,t+n,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},u([ft],t),t}();function f(t,e,n){var r;return 3===n||4===n?r=(3===n?e.pt:e.ks).k.length?new c(t,e,n):new a(t,e,n):5===n?r=new d(t,e):6===n?r=new p(t,e):7===n&&(r=new h(t,e)),r.k&&t.addDynamicProperty(r),r}function m(){return a}function g(){return c}var y={};return y.getShapeProp=f,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),wt=function(){var t=Math.cos,e=Math.sin,n=Math.tan,r=Math.round;function i(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function s(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(1,0,0,0,0,r,-i,0,0,i,r,0,0,0,0,1)}function a(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,0,i,0,0,1,0,0,-i,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=t(n),i=e(n);return this._t(r,-i,0,0,i,r,0,0,0,0,1,0,0,0,0,1)}function c(t,e){return this._t(1,e,t,1,0,0)}function u(t,e){return this.shear(n(t),n(e))}function p(r,i){var o=t(i),s=e(i);return this._t(o,s,0,0,-s,o,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(o,-s,0,0,s,o,0,0,0,0,1,0,0,0,0,1)}function h(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function f(t,e,n,r,i,o,s,a,l,c,u,p,h,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=r,this.props[4]=i,this.props[5]=o,this.props[6]=s,this.props[7]=a,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=p,this.props[12]=h,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function m(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function g(t,e,n,r,i,o,s,a,l,c,u,p,h,d,f,m){var g=this.props;if(1===t&&0===e&&0===n&&0===r&&0===i&&1===o&&0===s&&0===a&&0===l&&0===c&&1===u&&0===p)return g[12]=g[12]*t+g[15]*h,g[13]=g[13]*o+g[15]*d,g[14]=g[14]*u+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],x=g[3],w=g[4],k=g[5],S=g[6],C=g[7],_=g[8],$=g[9],E=g[10],P=g[11],T=g[12],A=g[13],j=g[14],O=g[15];return g[0]=y*t+v*i+b*l+x*h,g[1]=y*e+v*o+b*c+x*d,g[2]=y*n+v*s+b*u+x*f,g[3]=y*r+v*a+b*p+x*m,g[4]=w*t+k*i+S*l+C*h,g[5]=w*e+k*o+S*c+C*d,g[6]=w*n+k*s+S*u+C*f,g[7]=w*r+k*a+S*p+C*m,g[8]=_*t+$*i+E*l+P*h,g[9]=_*e+$*o+E*c+P*d,g[10]=_*n+$*s+E*u+P*f,g[11]=_*r+$*a+E*p+P*m,g[12]=T*t+A*i+j*l+O*h,g[13]=T*e+A*o+j*c+O*d,g[14]=T*n+A*s+j*u+O*f,g[15]=T*r+A*a+j*p+O*m,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function w(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function k(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function S(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function C(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,n=-this.props[1]/t,r=-this.props[4]/t,i=this.props[0]/t,o=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new wt;return a.props[0]=e,a.props[1]=n,a.props[4]=r,a.props[5]=i,a.props[12]=o,a.props[13]=s,a}function $(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function E(t){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r[e]=$(t[e]);return r}function P(t,e,n){var r=d("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=n[0],r[5]=n[1];else{var i=this.props[0],o=this.props[1],s=this.props[4],a=this.props[5],l=this.props[12],c=this.props[13];r[0]=t[0]*i+t[1]*s+l,r[1]=t[0]*o+t[1]*a+c,r[2]=e[0]*i+e[1]*s+l,r[3]=e[0]*o+e[1]*a+c,r[4]=n[0]*i+n[1]*s+l,r[5]=n[0]*o+n[1]*a+c}return r}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function A(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function j(){for(var t=0,e=this.props,n="matrix3d(",i=1e4;t<16;)n+=r(e[t]*i)/i,n+=15===t?")":",",t+=1;return n}function O(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?r(t*e)/e:t}function M(){var t=this.props;return"matrix("+O(t[0])+","+O(t[1])+","+O(t[4])+","+O(t[5])+","+O(t[12])+","+O(t[13])+")"}return function(){this.reset=i,this.rotate=o,this.rotateX=s,this.rotateY=a,this.rotateZ=l,this.skew=u,this.skewFromAxis=p,this.shear=c,this.scale=h,this.setTransform=f,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=k,this.applyToY=S,this.applyToZ=C,this.applyToPointArray=T,this.applyToTriplePoints=P,this.applyToPointStringified=A,this.toCSS=j,this.to2dCSS=M,this.clone=b,this.cloneFromProps=x,this.equals=v,this.inversePoints=E,this.inversePoint=$,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=d("float32",16),this.reset()}}();function kt(t){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var St={};function Ct(t){a(t)}function _t(){ot.searchAnimations()}function $t(t){z(t)}function Et(t){H(t)}function Pt(t){return ot.loadAnimation(t)}function Tt(t){if("string"==typeof t)switch(t){case"high":q(200);break;default:case"medium":q(50);break;case"low":q(10)}else!isNaN(t)&&t>1&&q(t)}function At(){return"undefined"!=typeof navigator}function jt(t,e){"expressions"===t&&B(e)}function Ot(t){switch(t){case"propertyFactory":return dt;case"shapePropertyFactory":return xt;case"matrix":return wt;default:return null}}function Mt(){"complete"===document.readyState&&(clearInterval(Lt),_t())}function Dt(t){for(var e=It.split("&"),n=0;n<e.length;n+=1){var r=e[n].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}St.play=ot.play,St.pause=ot.pause,St.setLocationHref=Ct,St.togglePause=ot.togglePause,St.setSpeed=ot.setSpeed,St.setDirection=ot.setDirection,St.stop=ot.stop,St.searchAnimations=_t,St.registerAnimation=ot.registerAnimation,St.loadAnimation=Pt,St.setSubframeRendering=$t,St.resize=ot.resize,St.goToAndStop=ot.goToAndStop,St.destroy=ot.destroy,St.setQuality=Tt,St.inBrowser=At,St.installPlugin=jt,St.freeze=ot.freeze,St.unfreeze=ot.unfreeze,St.setVolume=ot.setVolume,St.mute=ot.mute,St.unmute=ot.unmute,St.getRegisteredAnimations=ot.getRegisteredAnimations,St.useWebWorker=o,St.setIDPrefix=Et,St.__getFactory=Ot,St.version="5.10.2";var It="",Rt=document.getElementsByTagName("script"),Ft=Rt[Rt.length-1]||{src:""};It=Ft.src?Ft.src.replace(/^[^\?]+\??/,""):"",Dt("renderer");var Lt=setInterval(Mt,100);try{"object"!==kt(e)&&(window.bodymovin=St)}catch(Rn){}var Nt=function(){var t={},e={};function n(t,n){e[t]||(e[t]=n)}function r(t,n,r){return new e[t](n,r)}return t.registerModifier=n,t.getModifier=r,t}();function zt(){}function Vt(){}function Bt(){}zt.prototype.initModifierProperties=function(){},zt.prototype.addShapeToModifier=function(){},zt.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:bt.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},zt.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=i,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},zt.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},u([ft],zt),u([zt],Vt),Vt.prototype.initModifierProperties=function(t,e){this.s=dt.getProp(t,e.s,0,.01,this),this.e=dt.getProp(t,e.e,0,.01,this),this.o=dt.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},Vt.prototype.addShapeToModifier=function(t){t.pathsData=[]},Vt.prototype.calculateShapeEdges=function(t,e,n,r,i){var o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var s,a,l=[],c=o.length;for(s=0;s<c;s+=1){var u,p;(a=o[s]).e*i<r||a.s*i>r+n||(u=a.s*i<=r?0:(a.s*i-r)/n,p=a.e*i>=r+n?1:(a.e*i-r)/n,l.push([u,p]))}return l.length||l.push([0,0]),l},Vt.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)ut.release(t[e]);return t.length=0,t},Vt.prototype.processShapes=function(t){var e,n,r,i;if(this._mdf||t){var o=this.o.v%360/360;if(o<0&&(o+=1),(e=this.s.v>1?1+o:this.s.v<0?0+o:this.s.v+o)>(n=this.e.v>1?1+o:this.e.v<0?0+o:this.e.v+o)){var s=e;e=n,n=s}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var a,l,c,u,p,h=this.shapes.length,d=0;if(n===e)for(i=0;i<h;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(i=0;i<h;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var f,m,g=[];for(i=0;i<h;i+=1)if((f=this.shapes[i]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),a=0;a<l;a+=1)u=ht.getSegmentsLength(r.shapes[a]),c.push(u),p+=u.totalLength;f.totalShapeLength=p,f.pathsData=c}d+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=e,b=n,x=0;for(i=h-1;i>=0;i-=1)if((f=this.shapes[i]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&h>1?(y=this.calculateShapeEdges(e,n,f.totalShapeLength,x,d),x+=f.totalShapeLength):y=[[v,b]],l=y.length,a=0;a<l;a+=1){v=y[a][0],b=y[a][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*b}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var w=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var k=w.pop();this.addPaths(w,m),w=this.addShapes(f,g[1],k)}else this.addPaths(w,m),w=this.addShapes(f,g[1]);this.addPaths(w,m)}}f.shape.paths=m}}},Vt.prototype.addPaths=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)e.addShape(t[n])},Vt.prototype.addSegment=function(t,e,n,r,i,o,s){i.setXYAt(e[0],e[1],"o",o),i.setXYAt(n[0],n[1],"i",o+1),s&&i.setXYAt(t[0],t[1],"v",o),i.setXYAt(r[0],r[1],"v",o+1)},Vt.prototype.addSegmentFromArray=function(t,e,n,r){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),r&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},Vt.prototype.addShapes=function(t,e,n){var r,i,o,s,a,l,c,u,p=t.pathsData,h=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],g=!0;for(n?(a=n._length,u=n._length):(n=yt.newElement(),a=0,u=0),m.push(n),r=0;r<d;r+=1){for(l=p[r].lengths,n.c=h[r].c,o=h[r].c?l.length:l.length+1,i=1;i<o;i+=1)if(f+(s=l[i-1]).addedLength<e.s)f+=s.addedLength,n.c=!1;else{if(f>e.e){n.c=!1;break}e.s<=f&&e.e>=f+s.addedLength?(this.addSegment(h[r].v[i-1],h[r].o[i-1],h[r].i[i],h[r].v[i],n,a,g),g=!1):(c=ht.getNewSegment(h[r].v[i-1],h[r].v[i],h[r].o[i-1],h[r].i[i],(e.s-f)/s.addedLength,(e.e-f)/s.addedLength,l[i-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1),f+=s.addedLength,a+=1}if(h[r].c&&l.length){if(s=l[i-1],f<=e.e){var y=l[i-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(h[r].v[i-1],h[r].o[i-1],h[r].i[0],h[r].v[0],n,a,g),g=!1):(c=ht.getNewSegment(h[r].v[i-1],h[r].v[0],h[r].o[i-1],h[r].i[0],(e.s-f)/y,(e.e-f)/y,l[i-1]),this.addSegmentFromArray(c,n,a,g),g=!1,n.c=!1)}else n.c=!1;f+=s.addedLength,a+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>e.e)break;r<d-1&&(n=yt.newElement(),g=!0,m.push(n),a=0)}return m},u([zt],Bt),Bt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},Bt.prototype.processPath=function(t,e){var n=e/100,r=[0,0],i=t._length,o=0;for(o=0;o<i;o+=1)r[0]+=t.v[o][0],r[1]+=t.v[o][1];r[0]/=i,r[1]/=i;var s,a,l,c,u,p,h=yt.newElement();for(h.c=t.c,o=0;o<i;o+=1)s=t.v[o][0]+(r[0]-t.v[o][0])*n,a=t.v[o][1]+(r[1]-t.v[o][1])*n,l=t.o[o][0]+(r[0]-t.o[o][0])*-n,c=t.o[o][1]+(r[1]-t.o[o][1])*-n,u=t.i[o][0]+(r[0]-t.i[o][0])*-n,p=t.i[o][1]+(r[1]-t.i[o][1])*-n,h.setTripleAt(s,a,l,c,u,p,o);return h},Bt.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Wt=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var n;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,i;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var o=this.px,s=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(r[0]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/n,0),i[0]=o.getValueAtTime(o.keyframes[0].t/n,0),i[1]=s.getValueAtTime(s.keyframes[0].t/n,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(r[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/n,0),i[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/n,0)):(r=[o.pv,s.pv],i[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/n,s.offsetTime))}else r=i=t;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function i(){}function o(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function s(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new wt,this.pre=new wt,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=dt.getProp(t,e.p.x,0,0,this),this.py=dt.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=dt.getProp(t,e.p.z,0,0,this))):this.p=dt.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=dt.getProp(t,e.rx,0,C,this),this.ry=dt.getProp(t,e.ry,0,C,this),this.rz=dt.getProp(t,e.rz,0,C,this),e.or.k[0].ti){var r,i=e.or.k.length;for(r=0;r<i;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=dt.getProp(t,e.or,1,C,this),this.or.sh=!0}else this.r=dt.getProp(t,e.r||{k:0},0,C,this);e.sk&&(this.sk=dt.getProp(t,e.sk,0,C,this),this.sa=dt.getProp(t,e.sa,0,C,this)),this.a=dt.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=dt.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=dt.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function a(t,e,n){return new s(t,e,n)}return s.prototype={applyToMatrix:e,getValue:n,precalculateMatrix:r,autoOrient:i},u([ft],s),s.prototype.addDynamicProperty=o,s.prototype._addDynamicProperty=ft.prototype.addDynamicProperty,{getTransformProperty:a}}();function qt(){}function Ut(){}function Ht(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function Gt(t){return Math.abs(t)<=1e-5}function Kt(t,e,n){return t*(1-n)+e*n}function Yt(t,e,n){return[Kt(t[0],e[0],n),Kt(t[1],e[1],n)]}function Jt(t,e,n){if(0===t)return[];var r=e*e-4*t*n;if(r<0)return[];var i=-e/(2*t);if(0===r)return[i];var o=Math.sqrt(r)/(2*t);return[i-o,i+o]}function Xt(t,e,n,r){return[3*e-t-3*n+r,3*t-6*e+3*n,-3*t+3*e,t]}function Qt(t){return new Zt(t,t,t,t,!1)}function Zt(t,e,n,r,i){i&&ce(t,e)&&(e=Yt(t,r,1/3)),i&&ce(n,r)&&(n=Yt(t,r,2/3));var o=Xt(t[0],e[0],n[0],r[0]),s=Xt(t[1],e[1],n[1],r[1]);this.a=[o[0],s[0]],this.b=[o[1],s[1]],this.c=[o[2],s[2]],this.d=[o[3],s[3]],this.points=[t,e,n,r]}function te(t,e){var n=t.points[0][e],r=t.points[t.points.length-1][e];if(n>r){var i=r;r=n,n=i}for(var o=Jt(3*t.a[e],2*t.b[e],t.c[e]),s=0;s<o.length;s+=1)if(o[s]>0&&o[s]<1){var a=t.point(o[s])[e];a<n?n=a:a>r&&(r=a)}return{min:n,max:r}}function ee(t,e,n){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+n)/2,t1:e,t2:n}}function ne(t){var e=t.bez.split(.5);return[ee(e[0],t.t1,t.t),ee(e[1],t.t,t.t2)]}function re(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function ie(t,e,n,r,i,o){if(re(t,e))if(n>=o||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r)i.push([t.t,e.t]);else{var s=ne(t),a=ne(e);ie(s[0],a[0],n+1,r,i,o),ie(s[0],a[1],n+1,r,i,o),ie(s[1],a[0],n+1,r,i,o),ie(s[1],a[1],n+1,r,i,o)}}function oe(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function se(t,e,n,r){var i=[t[0],t[1],1],o=[e[0],e[1],1],s=[n[0],n[1],1],a=[r[0],r[1],1],l=oe(oe(i,o),oe(s,a));return Gt(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function ae(t,e,n){return[t[0]+Math.cos(e)*n,t[1]-Math.sin(e)*n]}function le(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function ce(t,e){return Ht(t[0],e[0])&&Ht(t[1],e[1])}function ue(){}function pe(t,e,n,r,i,o,s){var a=n-Math.PI/2,l=n+Math.PI/2,c=e[0]+Math.cos(n)*r*i,u=e[1]-Math.sin(n)*r*i;t.setTripleAt(c,u,c+Math.cos(a)*o,u-Math.sin(a)*o,c+Math.cos(l)*s,u-Math.sin(l)*s,t.length())}function he(t,e){var n=[e[0]-t[0],e[1]-t[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function de(t,e){var n=0===e?t.length()-1:e-1,r=(e+1)%t.length(),i=he(t.v[n],t.v[r]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function fe(t,e,n,r,i,o,s){var a=de(e,n),l=e.v[n%e._length],c=e.v[0===n?e._length-1:n-1],u=e.v[(n+1)%e._length],p=2===o?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,h=2===o?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;pe(t,e.v[n%e._length],a,s,r,h/(2*(i+1)),p/(2*(i+1)))}function me(t,e,n,r,i,o){for(var s=0;s<r;s+=1){var a=(s+1)/(r+1),l=2===i?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(a);pe(t,e.point(a),c,o,n,l/(2*(r+1)),l/(2*(r+1))),o=-o}return o}function ge(t,e,n){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[ae(t,r,n),ae(e,r,n)]}function ye(t,e){var n,r,i,o,s,a,l;n=(l=ge(t.points[0],t.points[1],e))[0],r=l[1],i=(l=ge(t.points[1],t.points[2],e))[0],o=l[1],s=(l=ge(t.points[2],t.points[3],e))[0],a=l[1];var c=se(n,r,i,o);null===c&&(c=r);var u=se(s,a,i,o);return null===u&&(u=s),new Zt(n,c,u,a)}function ve(t,e,n,r,i){var o=e.points[3],s=n.points[0];if(3===r)return o;if(ce(o,s))return o;if(2===r){var a=-e.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=se(o,ae(o,a+Math.PI/2,100),s,ae(s,a+Math.PI/2,100)),u=c?le(c,o):le(o,s)/2,p=ae(o,a,2*u*_);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=ae(s,l,2*u*_),t.setTripleAt(s[0],s[1],s[0],s[1],p[0],p[1],t.length()),s}var h=se(ce(o,e.points[2])?e.points[0]:e.points[2],o,s,ce(s,n.points[1])?n.points[3]:n.points[1]);return h&&le(h,o)<i?(t.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],t.length()),h):o}function be(t,e){var n=t.intersections(e);return n.length&&Ht(n[0][0],1)&&n.shift(),n.length?n[0]:null}function xe(t,e){var n=t.slice(),r=e.slice(),i=be(t[t.length-1],e[0]);return i&&(n[t.length-1]=t[t.length-1].split(i[0])[0],r[0]=e[0].split(i[1])[1]),t.length>1&&e.length>1&&(i=be(t[0],e[e.length-1]))?[[t[0].split(i[0])[0]],[e[e.length-1].split(i[1])[1]]]:[n,r]}function we(t){for(var e,n=1;n<t.length;n+=1)e=xe(t[n-1],t[n]),t[n-1]=e[0],t[n]=e[1];return t.length>1&&(e=xe(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function ke(t,e){var n,r,i,o,s=t.inflectionPoints();if(0===s.length)return[ye(t,e)];if(1===s.length||Ht(s[1],1))return n=(i=t.split(s[0]))[0],r=i[1],[ye(n,e),ye(r,e)];n=(i=t.split(s[0]))[0];var a=(s[1]-s[0])/(1-s[0]);return o=(i=i[1].split(a))[0],r=i[1],[ye(n,e),ye(o,e),ye(r,e)]}function Se(){}function Ce(t){for(var e=t.fStyle?t.fStyle.split(" "):[],n="normal",r="normal",i=e.length,o=0;o<i;o+=1)switch(e[o].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:t.fWeight||n}}u([zt],qt),qt.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=dt.getProp(t,e.c,0,null,this),this.o=dt.getProp(t,e.o,0,null,this),this.tr=Wt.getTransformProperty(t,e.tr,this),this.so=dt.getProp(t,e.tr.so,0,.01,this),this.eo=dt.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new wt,this.rMatrix=new wt,this.sMatrix=new wt,this.tMatrix=new wt,this.matrix=new wt},qt.prototype.applyTransforms=function(t,e,n,r,i,o){var s=o?-1:1,a=r.s.v[0]+(1-r.s.v[0])*(1-i),l=r.s.v[1]+(1-r.s.v[1])*(1-i);t.translate(r.p.v[0]*s*i,r.p.v[1]*s*i,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*s*i),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(o?1/a:a,o?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},qt.prototype.init=function(t,e,n,r){for(this.elem=t,this.arr=e,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);n>0;)n-=1,this._elements.unshift(e[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},qt.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},qt.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},qt.prototype.changeGroupRender=function(t,e){var n,r=t.length;for(n=0;n<r;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},qt.prototype.processShapes=function(t){var e,n,r,i,o,s=!1;if(this._mdf||t){var a,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(o=0,r=0;r<=this._groups.length-1;r+=1){if(a=o<l,this._groups[r]._render=a,this.changeGroupRender(this._groups[r].it,a),!a){var u=this.elemsData[r].it,p=u[u.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}o+=1}this._currentCopies=l;var h=this.o.v,d=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(h>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),x+=d)}else if(h<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),x-=d)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,o=this._currentCopies;o;){if(b=(n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];x+=1,o-=1,r+=i}}else for(o=this._currentCopies,r=0,i=1;o;)n=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,r+=i;return s},qt.prototype.addShape=function(){},u([zt],Ut),Ut.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=dt.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},Ut.prototype.processPath=function(t,e){var n,r=yt.newElement();r.c=t.c;var i,o,s,a,l,c,u,p,h,d,f,m,g=t._length,y=0;for(n=0;n<g;n+=1)i=t.v[n],s=t.o[n],o=t.i[n],i[0]===s[0]&&i[1]===s[1]&&i[0]===o[0]&&i[1]===o[1]?0!==n&&n!==g-1||t.c?(a=0===n?t.v[g-1]:t.v[n-1],c=(l=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(l/2,e)/l:0,u=f=i[0]+(a[0]-i[0])*c,p=m=i[1]-(i[1]-a[1])*c,h=u-(u-i[0])*_,d=p-(p-i[1])*_,r.setTripleAt(u,p,h,d,f,m,y),y+=1,a=n===g-1?t.v[0]:t.v[n+1],c=(l=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)))?Math.min(l/2,e)/l:0,u=h=i[0]+(a[0]-i[0])*c,p=d=i[1]+(a[1]-i[1])*c,f=u-(u-i[0])*_,m=p-(p-i[1])*_,r.setTripleAt(u,p,h,d,f,m,y),y+=1):(r.setTripleAt(i[0],i[1],s[0],s[1],o[0],o[1],y),y+=1):(r.setTripleAt(t.v[n][0],t.v[n][1],t.o[n][0],t.o[n][1],t.i[n][0],t.i[n][1],y),y+=1);return r},Ut.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},Zt.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},Zt.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},Zt.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},Zt.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},Zt.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(Gt(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,n=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(n<0)return[];var r=Math.sqrt(n);return Gt(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter((function(t){return t>0&&t<1}))},Zt.prototype.split=function(t){if(t<=0)return[Qt(this.points[0]),this];if(t>=1)return[this,Qt(this.points[this.points.length-1])];var e=Yt(this.points[0],this.points[1],t),n=Yt(this.points[1],this.points[2],t),r=Yt(this.points[2],this.points[3],t),i=Yt(e,n,t),o=Yt(n,r,t),s=Yt(i,o,t);return[new Zt(this.points[0],e,i,s,!0),new Zt(s,o,r,this.points[3],!0)]},Zt.prototype.bounds=function(){return{x:te(this,0),y:te(this,1)}},Zt.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},Zt.prototype.intersections=function(t,e,n){void 0===e&&(e=2),void 0===n&&(n=7);var r=[];return ie(ee(this,0,1),ee(t,0,1),0,e,r,n),r},Zt.shapeSegment=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[e],t.o[e],t.i[n],t.v[n],!0)},Zt.shapeSegmentInverted=function(t,e){var n=(e+1)%t.length();return new Zt(t.v[n],t.i[n],t.o[e],t.v[e],!0)},u([zt],ue),ue.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=dt.getProp(t,e.s,0,null,this),this.frequency=dt.getProp(t,e.r,0,null,this),this.pointsType=dt.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ue.prototype.processPath=function(t,e,n,r){var i=t._length,o=yt.newElement();if(o.c=t.c,t.c||(i-=1),0===i)return o;var s=-1,a=Zt.shapeSegment(t,0);fe(o,t,0,e,n,r,s);for(var l=0;l<i;l+=1)s=me(o,a,e,n,r,-s),a=l!==i-1||t.c?Zt.shapeSegment(t,(l+1)%i):null,fe(o,t,l+1,e,n,r,s);return o},ue.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l,c,u));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},u([zt],Se),Se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=dt.getProp(t,e.a,0,null,this),this.miterLimit=dt.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},Se.prototype.processPath=function(t,e,n,r){var i=yt.newElement();i.c=t.c;var o,s,a,l=t.length();t.c||(l-=1);var c=[];for(o=0;o<l;o+=1)a=Zt.shapeSegment(t,o),c.push(ke(a,e));if(!t.c)for(o=l-1;o>=0;o-=1)a=Zt.shapeSegmentInverted(t,o),c.push(ke(a,e));c=we(c);var u=null,p=null;for(o=0;o<c.length;o+=1){var h=c[o];for(p&&(u=ve(i,p,h[0],n,r)),p=h[h.length-1],s=0;s<h.length;s+=1)a=h[s],u&&ce(a.points[0],u)?i.setXYAt(a.points[1][0],a.points[1][1],"o",i.length()-1):i.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],i.length()),i.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],i.length()),u=a.points[3]}return c.length&&ve(i,p,c[0][0],n,r),i},Se.prototype.processShapes=function(t){var e,n,r,i,o,s,a=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(n=0;n<a;n+=1){if(s=(o=this.shapes[n]).localShapeCollection,o.shape._mdf||this._mdf||t)for(s.releaseShapes(),o.shape._mdf=!0,e=o.shape.paths.shapes,i=o.shape.paths._length,r=0;r<i;r+=1)s.addShape(this.processPath(e[r],l,u,c));o.shape.paths=o.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var _e=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function o(t){var e,n=t.split(","),r=n.length,i=[];for(e=0;e<r;e+=1)"sans-serif"!==n[e]&&"monospace"!==n[e]&&i.push(n[e]);return i.join(",")}function s(t,e){var n=c("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=e;var r=c("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var i=r.offsetWidth;return r.style.fontFamily=o(t)+", "+e,{node:r,w:i,parent:n}}function a(){var e,n,r,i=this.fonts.length,o=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(n=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,n.offsetWidth!==r?(o-=1,this.fonts[e].loaded=!0):(n=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,n.offsetWidth!==r&&(o-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==o&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function l(t,e){var n,r=document.body&&e?"svg":"canvas",i=Ce(t);if("svg"===r){var o=G("text");o.style.fontSize="100px",o.setAttribute("font-family",t.fFamily),o.setAttribute("font-style",i.style),o.setAttribute("font-weight",i.weight),o.textContent="1",t.fClass?(o.style.fontFamily="inherit",o.setAttribute("class",t.fClass)):o.style.fontFamily=t.fFamily,e.appendChild(o),n=o}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+t.fFamily,n=s}function a(t){return"svg"===r?(n.textContent=t,n.getComputedTextLength()):n.measureText(t).width}return{measureText:a}}function u(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=l(t),t.cache={}})),void(this.fonts=t.list);var n,r=t.list,i=r.length,o=i;for(n=0;n<i;n+=1){var a,u,p=!0;if(r[n].loaded=!1,r[n].monoCase=s(r[n].fFamily,"monospace"),r[n].sansCase=s(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(p=!1),p){var h=c("style");h.setAttribute("f-forigin",r[n].fOrigin),h.setAttribute("f-origin",r[n].origin),h.setAttribute("f-family",r[n].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",e.appendChild(h)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),u=0;u<a.length;u+=1)-1!==a[u].href.indexOf(r[n].fPath)&&(p=!1);if(p){var d=c("link");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.type="text/css",d.rel="stylesheet",d.href=r[n].fPath,document.body.appendChild(d)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),u=0;u<a.length;u+=1)r[n].fPath===a[u].src&&(p=!1);if(p){var f=c("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",r[n].fPath),e.appendChild(f)}}}else r[n].loaded=!0,o-=1;r[n].helper=l(r[n],e),r[n].cache={},this.fonts.push(r[n])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function p(t){if(t){var e;this.chars||(this.chars=[]);var n,r,i=t.length,o=this.chars.length;for(e=0;e<i;e+=1){for(n=0,r=!1;n<o;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(r=!0),n+=1;r||(this.chars.push(t[e]),o+=1)}}}function h(t,n,r){for(var i=0,o=this.chars.length;i<o;){if(this.chars[i].ch===t&&this.chars[i].style===n&&this.chars[i].fFamily===r)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0),e}function d(t,e,n){var r=this.getFontByName(e),i=t.charCodeAt(0);if(!r.cache[i+1]){var o=r.helper;if(" "===t){var s=o.measureText("|"+t+"|"),a=o.measureText("||");r.cache[i+1]=(s-a)/100}else r.cache[i+1]=o.measureText(t)/100}return r.cache[i+1]*n}function f(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function m(t,e){var n=t.toString(16)+e.toString(16);return-1!==r.indexOf(n)}function g(t,e){return e?t===i[0]&&e===i[1]:t===i[1]}function y(t){return-1!==n.indexOf(t)}function v(){this.isLoaded=!0}var b=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};b.isModifier=m,b.isZeroWidthJoiner=g,b.isCombinedCharacter=y;var x={addChars:p,addFonts:u,getCharData:h,getFontByName:f,measureText:d,checkLoadedFonts:a,setIsLoaded:v};return b.prototype=x,b}();function $e(){}$e.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Ee,Pe=(Ee={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return Ee[t]||""});function Te(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ae(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function je(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function Oe(t,e,n){this.p=dt.getProp(e,t.v,1,0,n)}function Me(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function De(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Ie(t,e,n){this.p=dt.getProp(e,t.v,0,0,n)}function Re(){this.p={}}function Fe(t,e){var n,r=t.ef||[];this.effectElements=[];var i,o=r.length;for(n=0;n<o;n+=1)i=new Le(r[n],e),this.effectElements.push(i)}function Le(t,e){this.init(t,e)}function Ne(){}function ze(){}function Ve(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,n)}function Be(t,e,n){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=dt.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function We(){}function qe(){}function Ue(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,i,o=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=f(s),this.solidPath="";var a,c,u,p,h,d,m=this.masksProperties,g=0,y=[],v=D(),b="clipPath",x="clip-path";for(r=0;r<s;r+=1)if(("a"!==m[r].mode&&"n"!==m[r].mode||m[r].inv||100!==m[r].o.k||m[r].o.x)&&(b="mask",x="mask"),"s"!==m[r].mode&&"i"!==m[r].mode||0!==g?u=null:((u=G("rect")).setAttribute("fill","#ffffff"),u.setAttribute("width",this.element.comp.data.w||0),u.setAttribute("height",this.element.comp.data.h||0),y.push(u)),i=G("path"),"n"===m[r].mode)this.viewData[r]={op:dt.getProp(this.element,m[r].o,0,.01,this.element),prop:xt.getShapeProp(this.element,m[r],3),elem:i,lastPath:""},o.appendChild(i);else{var w;if(g+=1,i.setAttribute("fill","s"===m[r].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==m[r].x.k?(b="mask",x="mask",d=dt.getProp(this.element,m[r].x,0,null,this.element),w=D(),(p=G("filter")).setAttribute("id",w),(h=G("feMorphology")).setAttribute("operator","erode"),h.setAttribute("in","SourceGraphic"),h.setAttribute("radius","0"),p.appendChild(h),o.appendChild(p),i.setAttribute("stroke","s"===m[r].mode?"#000000":"#ffffff")):(h=null,d=null),this.storedData[r]={elem:i,x:d,expan:h,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===m[r].mode){c=y.length;var k=G("g");for(a=0;a<c;a+=1)k.appendChild(y[a]);var S=G("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",v+"_"+g),S.appendChild(i),o.appendChild(S),k.setAttribute("mask","url("+l()+"#"+v+"_"+g+")"),y.length=0,y.push(k)}else y.push(i);m[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:i,lastPath:"",op:dt.getProp(this.element,m[r].o,0,.01,this.element),prop:xt.getShapeProp(this.element,m[r],3),invRect:u},this.viewData[r].prop.k||this.drawPath(m[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=G(b),s=y.length,r=0;r<s;r+=1)this.maskElement.appendChild(y[r]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(x,"url("+l()+"#"+v+")"),o.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}u([ft],Le),Le.prototype.getValue=Le.prototype.iterateDynamicProperties,Le.prototype.init=function(t,e){var n;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,i=this.data.ef.length,o=this.data.ef;for(n=0;n<i;n+=1){switch(r=null,o[n].ty){case 0:r=new Te(o[n],e,this);break;case 1:r=new Ae(o[n],e,this);break;case 2:r=new je(o[n],e,this);break;case 3:r=new Oe(o[n],e,this);break;case 4:case 7:r=new Ie(o[n],e,this);break;case 10:r=new Me(o[n],e,this);break;case 11:r=new De(o[n],e,this);break;case 5:r=new Fe(o[n],e);break;default:r=new Re(o[n])}r&&this.effectElements.push(r)}},Ne.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){},setBlendMode:function(){var t=Pe(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=D(),this.data.sr||(this.data.sr=1),this.effectsManager=new Fe(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},ze.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},Ve.prototype.prepareFrame=function(){},u([$e,Ne,ze],Ve),Ve.prototype.getBaseElement=function(){return null},Ve.prototype.renderFrame=function(){},Ve.prototype.destroy=function(){},Ve.prototype.initExpressions=function(){},Ve.prototype.getFootageData=function(){return this.footageData},Be.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},u([$e,Ne,ze],Be),Be.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},Be.prototype.show=function(){},Be.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},Be.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},Be.prototype.resume=function(){this._canPlay=!0},Be.prototype.setRate=function(t){this.audio.rate(t)},Be.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},Be.prototype.getBaseElement=function(){return null},Be.prototype.destroy=function(){},Be.prototype.sourceRectAtTime=function(){},Be.prototype.initExpressions=function(){},We.prototype.checkLayers=function(t){var e,n,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(n=this.layers[e]).ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},We.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},We.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},We.prototype.createAudio=function(t){return new Be(t,this.globalData,this)},We.prototype.createFootage=function(t){return new Ve(t,this.globalData,this)},We.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},We.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var n,r=t.length,i=this.layers.length;for(e=0;e<r;e+=1)for(n=0;n<i;){if(this.layers[n].id===t[e].id){this.layers[n]=t[e];break}n+=1}},We.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},We.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},We.prototype.buildElementParenting=function(t,e,n){for(var r=this.elements,i=this.layers,o=0,s=i.length;o<s;)i[o].ind==e&&(r[o]&&!0!==r[o]?(n.push(r[o]),r[o].setAsParent(),void 0!==i[o].parent?this.buildElementParenting(t,i[o].parent,n):t.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(t))),o+=1},We.prototype.addPendingElement=function(t){this.pendingElements.push(t)},We.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},We.prototype.getElementById=function(t){var e,n=this.elements.length;for(e=0;e<n;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},We.prototype.getElementByPath=function(t){var e,n=t.shift();if("number"==typeof n)e=this.elements[n];else{var r,i=this.elements.length;for(r=0;r<i;r+=1)if(this.elements[r].data.nm===n){e=this.elements[r];break}}return 0===t.length?e:e.getElementByPath(t)},We.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new _e,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},qe.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?Wt.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new wt},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<r;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n,r=!0,i=this.comp;r;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):r=!1;var o,s=e.length;for(n=0;n<s;n+=1)o=e[n].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new wt},Ue.prototype.getMaskProperty=function(t){return this.viewData[t].prop},Ue.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",n.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var i=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+l()+"#"+this.storedData[e].filterId+")")),i.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},Ue.prototype.getMaskelement=function(){return this.maskElement},Ue.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},Ue.prototype.drawPath=function(t,e,n){var r,i,o=" M"+e.v[0][0]+","+e.v[0][1];for(i=e._length,r=1;r<i;r+=1)o+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&i>1&&(o+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==o){var s="";n.elem&&(e.c&&(s=t.inv?this.solidPath+o:o),n.elem.setAttribute("d",s)),n.lastPath=o}},Ue.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var He,Ge,Ke=function(){var t={};function e(t,e){var n=G("filter");return n.setAttribute("id",t),!0!==e&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function n(){var t=G("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=n,t}(),Ye=(He={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(He.maskType=!1),/firefox/i.test(navigator.userAgent)&&(He.svgLumaHidden=!1),He),Je={},Xe="filter_result_";function Qe(t){var e,n,r="SourceGraphic",i=t.data.ef?t.data.ef.length:0,o=D(),s=Ke.createFilter(o,!0),a=0;for(this.filters=[],e=0;e<i;e+=1){n=null;var c=t.data.ef[e].ty;Je[c]&&(n=new(0,Je[c].effect)(s,t.effectsManager.effectElements[e],t,Xe+a,r),r=Xe+a,Je[c].countsAsEffect&&(a+=1)),n&&this.filters.push(n)}a&&(t.globalData.defs.appendChild(s),t.layerElement.setAttribute("filter","url("+l()+"#"+o+")")),this.filters.length&&t.addRenderableComponent(this)}function Ze(){}function tn(){}function en(){}function nn(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function rn(t,e){this.elem=t,this.pos=e}function on(){}Qe.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},Ze.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=G("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var n=G("clipPath"),r=G("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var i=D();if(n.setAttribute("id",i),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var o=G("g");o.setAttribute("clip-path","url("+l()+"#"+i+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new Ue(this.data,this,this.globalData),this.renderableEffectsManager=new Qe(this)},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,n,r,i,o=this.layerId+"_"+t;if(1===t||3===t){var s=G("mask");s.setAttribute("id",o),s.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(r),this.globalData.defs.appendChild(s),Ye.maskType||1!==t||(s.setAttribute("mask-type","luminance"),e=D(),n=Ke.createFilter(e),this.globalData.defs.appendChild(n),n.appendChild(Ke.createAlphaToLuminanceFilter()),(i=G("g")).appendChild(r),s.appendChild(i),i.setAttribute("filter","url("+l()+"#"+e+")"))}else if(2===t){var a=G("mask");a.setAttribute("id",o),a.setAttribute("mask-type","alpha");var c=G("g");a.appendChild(c),e=D(),n=Ke.createFilter(e);var u=G("feComponentTransfer");u.setAttribute("in","SourceGraphic"),n.appendChild(u);var p=G("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),u.appendChild(p),this.globalData.defs.appendChild(n);var h=G("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),c.setAttribute("filter","url("+l()+"#"+e+")"),c.appendChild(h),(r=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(r),Ye.maskType||(a.setAttribute("mask-type","luminance"),n.appendChild(Ke.createAlphaToLuminanceFilter()),i=G("g"),c.appendChild(h),i.appendChild(this.layerElement),c.appendChild(i)),this.globalData.defs.appendChild(a)}this.matteMasks[t]=o}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+l()+"#"+t+")")}},tn.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},Ge={initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}},u([$e,p(Ge)],en),u([Ne,qe,Ze,tn,ze,en],nn),nn.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},nn.prototype.sourceRectAtTime=function(){return this.sourceRect},on.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,n=this.shapeModifiers.length;e<n;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,r=e.length;n<r;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===t)return void(n[r].pos=e);n.push(new rn(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var sn={1:"butt",2:"round",3:"square"},an={1:"miter",2:"round",3:"bevel"};function ln(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var r=0,i=t.length;r<i;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function cn(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=G("path"),this.msElem=null}function un(t,e,n,r){var i;this.elem=t,this.frameId=-1,this.dataProps=f(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=d("float32",e.length?e.length-1:0),this.dashoffset=d("float32",1),this.initDynamicPropertyContainer(r);var o,s=e.length||0;for(i=0;i<s;i+=1)o=dt.getProp(t,e[i].v,0,0,this),this.k=o.k||this.k,this.dataProps[i]={n:e[i].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function pn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.w=dt.getProp(t,e.w,0,null,this),this.d=new un(t,e.d||{},"svg",this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function hn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=dt.getProp(t,e.o,0,.01,this),this.c=dt.getProp(t,e.c,1,255,this),this.style=n}function dn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=n}function fn(t,e,n){this.data=e,this.c=d("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=d("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=dt.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function mn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function gn(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=dt.getProp(t,e.w,0,null,this),this.d=new un(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function yn(){this.it=[],this.prevViewData=[],this.gr=G("g")}function vn(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}ln.prototype.setAsAnimated=function(){this._isAnimated=!0},cn.prototype.reset=function(){this.d="",this._mdf=!1},un.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},u([ft],un),u([ft],pn),u([ft],hn),u([ft],dn),fn.prototype.comparePoints=function(t,e){for(var n=0,r=this.o.length/2;n<r;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},fn.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},fn.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,r,i=4*this.data.p;for(e=0;e<i;e+=1)n=e%4==0?100:255,r=Math.round(this.prop.v[e]*n),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(i=this.prop.v.length,e=4*this.data.p;e<i;e+=1)n=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},u([ft],fn),mn.prototype.initGradientData=function(t,e,n){this.o=dt.getProp(t,e.o,0,.01,this),this.s=dt.getProp(t,e.s,1,null,this),this.e=dt.getProp(t,e.e,1,null,this),this.h=dt.getProp(t,e.h||{k:0},0,.01,this),this.a=dt.getProp(t,e.a||{k:0},0,C,this),this.g=new fn(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},mn.prototype.setGradientData=function(t,e){var n=D(),r=G(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var i,o,s,a=[];for(s=4*e.g.p,o=0;o<s;o+=4)i=G("stop"),r.appendChild(i),a.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+l()+"#"+n+")"),this.gf=r,this.cst=a},mn.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,i,o=G("mask"),s=G("path");o.appendChild(s);var a=D(),c=D();o.setAttribute("id",c);var u=G(1===t.t?"linearGradient":"radialGradient");u.setAttribute("id",a),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),i=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(r=4*t.g.p;r<i;r+=2)(n=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),p.push(n);s.setAttribute("gf"===t.ty?"fill":"stroke","url("+l()+"#"+a+")"),"gs"===t.ty&&(s.setAttribute("stroke-linecap",sn[t.lc||2]),s.setAttribute("stroke-linejoin",an[t.lj||2]),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),this.of=u,this.ms=o,this.ost=p,this.maskId=c,e.msElem=s}},u([ft],mn),u([mn,ft],gn);var bn=function(t,e,n,r){if(0===e)return"";var i,o=t.o,s=t.i,a=t.v,l=" M"+r.applyToPointStringified(a[0][0],a[0][1]);for(i=1;i<e;i+=1)l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(s[i][0],s[i][1])+" "+r.applyToPointStringified(a[i][0],a[i][1]);return n&&e&&(l+=" C"+r.applyToPointStringified(o[i-1][0],o[i-1][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+" "+r.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},xn=function(){var t=new wt,e=new wt;function n(t){switch(t.ty){case"fl":return s;case"gf":return l;case"gs":return a;case"st":return c;case"sh":case"el":case"rc":case"sr":return o;case"tr":return r;case"no":return i;default:return null}}function r(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function o(n,r,i){var o,s,a,l,c,u,p,h,d,f,m,g=r.styles.length,y=r.lvl;for(u=0;u<g;u+=1){if(l=r.sh._mdf||i,r.styles[u].lvl<y){for(h=e.reset(),f=y-r.styles[u].lvl,m=r.transformers.length-1;!l&&f>0;)l=r.transformers[m].mProps._mdf||l,f-=1,m-=1;if(l)for(f=y-r.styles[u].lvl,m=r.transformers.length-1;f>0;)d=r.transformers[m].mProps.v.props,h.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),f-=1,m-=1}else h=t;if(s=(p=r.sh.paths)._length,l){for(a="",o=0;o<s;o+=1)(c=p.shapes[o])&&c._length&&(a+=bn(c,c._length,c.c,h));r.caches[u]=a}else a=r.caches[u];r.styles[u].d+=!0===n.hd?"":a,r.styles[u]._mdf=l||r.styles[u]._mdf}}function s(t,e,n){var r=e.style;(e.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,n){l(t,e,n),c(t,e,n)}function l(t,e,n){var r,i,o,s,a,l=e.gf,c=e.g._hasOpacity,u=e.s.v,p=e.e.v;if(e.o._mdf||n){var h="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(h,e.o.v)}if(e.s._mdf||n){var d=1===t.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,u[0]),l.setAttribute(f,u[1]),c&&!e.g._collapsable&&(e.of.setAttribute(d,u[0]),e.of.setAttribute(f,u[1]))}if(e.g._cmdf||n){r=e.cst;var m=e.g.c;for(o=r.length,i=0;i<o;i+=1)(s=r[i]).setAttribute("offset",m[4*i]+"%"),s.setAttribute("stop-color","rgb("+m[4*i+1]+","+m[4*i+2]+","+m[4*i+3]+")")}if(c&&(e.g._omdf||n)){var g=e.g.o;for(o=(r=e.g._collapsable?e.cst:e.ost).length,i=0;i<o;i+=1)s=r[i],e.g._collapsable||s.setAttribute("offset",g[2*i]+"%"),s.setAttribute("stop-opacity",g[2*i+1])}if(1===t.t)(e.e._mdf||n)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!e.g._collapsable&&(e.of.setAttribute("x2",p[0]),e.of.setAttribute("y2",p[1])));else if((e.s._mdf||e.e._mdf||n)&&(a=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)),l.setAttribute("r",a),c&&!e.g._collapsable&&e.of.setAttribute("r",a)),e.e._mdf||e.h._mdf||e.a._mdf||n){a||(a=Math.sqrt(Math.pow(u[0]-p[0],2)+Math.pow(u[1]-p[1],2)));var y=Math.atan2(p[1]-u[1],p[0]-u[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=a*v,x=Math.cos(y+e.a.v)*b+u[0],w=Math.sin(y+e.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",w),c&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",w))}}function c(t,e,n){var r=e.style,i=e.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),e.c&&(e.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:n}}();function wn(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function kn(t,e,n,r,i,o){this.o=t,this.sw=e,this.sc=n,this.fc=r,this.m=i,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!r,m:!0,p:!0}}function Sn(t,e){this._frameId=i,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}u([Ne,qe,Ze,on,tn,ze,en],wn),wn.prototype.initSecondaryElement=function(){},wn.prototype.identityMatrix=new wt,wn.prototype.buildExpressionInterface=function(){},wn.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},wn.prototype.filterUniqueShapes=function(){var t,e,n,r,i=this.shapes.length,o=this.stylesList.length,s=[],a=!1;for(n=0;n<o;n+=1){for(r=this.stylesList[n],a=!1,s.length=0,t=0;t<i;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(s.push(e),a=e._isAnimated||a);s.length>1&&a&&this.setShapesAsAnimated(s)}},wn.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},wn.prototype.createStyleElement=function(t,e){var n,r=new cn(t,e),i=r.pElem;return"st"===t.ty?n=new pn(this,t,r):"fl"===t.ty?n=new hn(this,t,r):"gf"===t.ty||"gs"===t.ty?(n=new("gf"===t.ty?mn:gn)(this,t,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),i.setAttribute("mask","url("+l()+"#"+n.maskId+")"))):"no"===t.ty&&(n=new dn(this,t,r)),"st"!==t.ty&&"gs"!==t.ty||(i.setAttribute("stroke-linecap",sn[t.lc||2]),i.setAttribute("stroke-linejoin",an[t.lj||2]),i.setAttribute("fill-opacity","0"),1===t.lj&&i.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&i.setAttribute("fill-rule","evenodd"),t.ln&&i.setAttribute("id",t.ln),t.cl&&i.setAttribute("class",t.cl),t.bm&&(i.style["mix-blend-mode"]=Pe(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,n),n},wn.prototype.createGroupElement=function(t){var e=new yn;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=Pe(t.bm)),e},wn.prototype.createTransformElement=function(t,e){var n=Wt.getTransformProperty(this,t,this),r=new vn(n,n.o,e);return this.addToAnimatedContents(t,r),r},wn.prototype.createShapeElement=function(t,e,n){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var i=new ln(e,n,xt.getShapeProp(this,t,r,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(t,i),i},wn.prototype.addToAnimatedContents=function(t,e){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:xn.createRenderFunction(t),element:e,data:t})},wn.prototype.setElementStyles=function(t){var e,n=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},wn.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},wn.prototype.searchShapes=function(t,e,n,r,i,o,s){var a,l,c,u,p,h,d=[].concat(o),f=t.length-1,m=[],g=[];for(a=f;a>=0;a-=1){if((h=this.searchProcessedElement(t[a]))?e[a]=n[h-1]:t[a]._render=s,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty||"no"===t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],i),t[a]._render&&e[a].style.pElem.parentNode!==r&&r.appendChild(e[a].style.pElem),m.push(e[a].style);else if("gr"===t[a].ty){if(h)for(c=e[a].it.length,l=0;l<c;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,i+1,d,s),t[a]._render&&e[a].gr.parentNode!==r&&r.appendChild(e[a].gr)}else"tr"===t[a].ty?(h||(e[a]=this.createTransformElement(t[a],r)),u=e[a].transform,d.push(u)):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?(h||(e[a]=this.createShapeElement(t[a],d,i)),this.setElementStyles(e[a])):"tm"===t[a].ty||"rd"===t[a].ty||"ms"===t[a].ty||"pb"===t[a].ty||"zz"===t[a].ty||"op"===t[a].ty?(h?(p=e[a]).closed=!1:((p=Nt.getModifier(t[a].ty)).init(this,t[a]),e[a]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===t[a].ty&&(h?(p=e[a]).closed=!0:(p=Nt.getModifier(t[a].ty),e[a]=p,p.init(this,t,a,e),this.shapeModifiers.push(p),s=!1),g.push(p));this.addProcessedElement(t[a],a+1)}for(f=m.length,a=0;a<f;a+=1)m[a].closed=!0;for(f=g.length,a=0;a<f;a+=1)g[a].closed=!0},wn.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},wn.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},wn.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},kn.prototype.update=function(t,e,n,r,i,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,s=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,s=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,s=!0),s},Sn.prototype.defaultBoxWidth=[0,0],Sn.prototype.copyData=function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},Sn.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Sn.prototype.searchProperty=function(){return this.searchKeyframes()},Sn.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Sn.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},Sn.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(r=0;r<i;r+=1)o=n!==this.keysIndex?this.effectsSequence[r](o,o.t):this.effectsSequence[r](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},Sn.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,r=t.length;n<=r-1&&!(n===r-1||t[n+1].t>e);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},Sn.prototype.buildFinalText=function(t){for(var e,n,r=[],i=0,o=t.length,s=!1;i<o;)e=t.charCodeAt(i),_e.isCombinedCharacter(e)?r[r.length-1]+=t.charAt(i):e>=55296&&e<=56319?(n=t.charCodeAt(i+1))>=56320&&n<=57343?(s||_e.isModifier(e,n)?(r[r.length-1]+=t.substr(i,2),s=!1):r.push(t.substr(i,2)),i+=1):r.push(t.charAt(i)):e>56319?(n=t.charCodeAt(i+1),_e.isZeroWidthJoiner(e,n)?(s=!0,r[r.length-1]+=t.substr(i,2),i+=1):r.push(t.charAt(i))):_e.isZeroWidthJoiner(e)?(r[r.length-1]+=t.charAt(i),s=!0):r.push(t.charAt(i)),i+=1;return r},Sn.prototype.completeTextData=function(t){t.__complete=!0;var e,n,r,i,o,s,a,l=this.elem.globalData.fontManager,c=this.data,u=[],p=0,h=c.m.g,d=0,f=0,m=0,g=[],y=0,v=0,b=l.getFontByName(t.f),x=0,w=Ce(b);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var k,S=t.tr/1e3*t.finalSize;if(t.sz)for(var C,_,$=!0,E=t.sz[0],P=t.sz[1];$;){C=0,y=0,n=(_=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var T=-1;for(e=0;e<n;e+=1)k=_[e].charCodeAt(0),r=!1," "===_[e]?T=e:13!==k&&3!==k||(y=0,r=!0,C+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(_[e],b.fStyle,b.fFamily),x=r?0:a.w*t.finalSize/100):x=l.measureText(_[e],t.f,t.finalSize),y+x>E&&" "!==_[e]?(-1===T?n+=1:e=T,C+=t.finalLineHeight||1.2*t.finalSize,_.splice(e,T===e?1:0,"\r"),T=-1,y=0):(y+=x,y+=S);C+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<C?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=_,n=t.finalText.length,$=!1)}y=-S,x=0;var A,j=0;for(e=0;e<n;e+=1)if(r=!1,13===(k=(A=t.finalText[e]).charCodeAt(0))||3===k?(j=0,g.push(y),v=y>v?y:v,y=-2*S,i="",r=!0,m+=1):i=A,l.chars?(a=l.getCharData(A,b.fStyle,l.getFontByName(t.f).fFamily),x=r?0:a.w*t.finalSize/100):x=l.measureText(i,t.f,t.finalSize)," "===A?j+=x+S:(y+=x+S+j,j=0),u.push({l:x,an:x,add:d,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==h){if(d+=x,""===i||" "===i||e===n-1){for(""!==i&&" "!==i||(d-=x);f<=e;)u[f].an=d,u[f].ind=p,u[f].extra=x,f+=1;p+=1,d=0}}else if(3==h){if(d+=x,""===i||e===n-1){for(""===i&&(d-=x);f<=e;)u[f].an=d,u[f].ind=p,u[f].extra=x,f+=1;d=0,p+=1}}else u[p].ind=p,u[p].extra=0,p+=1;if(t.l=u,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var O,M,D,I,R=c.a;s=R.length;var F=[];for(o=0;o<s;o+=1){for((O=R[o]).a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),I=0,D=O.s.b,e=0;e<n;e+=1)(M=u[e]).anIndexes[o]=I,(1==D&&""!==M.val||2==D&&""!==M.val&&" "!==M.val||3==D&&(M.n||" "==M.val||e==n-1)||4==D&&(M.n||e==n-1))&&(1===O.s.rn&&F.push(I),I+=1);c.a[o].s.totalChars=I;var L,N=-1;if(1===O.s.rn)for(e=0;e<n;e+=1)N!=(M=u[e]).anIndexes[o]&&(N=M.anIndexes[o],L=F.splice(Math.floor(Math.random()*F.length),1)[0]),M.anIndexes[o]=L}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},Sn.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},Sn.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},Sn.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Sn.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var Cn=function(){var t=Math.max,e=Math.min,n=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=dt.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?dt.getProp(t,e.e,0,0,this):{v:100},this.o=dt.getProp(t,e.o||{k:0},0,0,this),this.xe=dt.getProp(t,e.xe||{k:0},0,0,this),this.ne=dt.getProp(t,e.ne||{k:0},0,0,this),this.sm=dt.getProp(t,e.sm||{k:100},0,0,this),this.a=dt.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function i(t,e,n){return new r(t,e)}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,o=0,s=1,a=1;this.ne.v>0?i=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:a=1+this.xe.v/100;var l=st.getBezierEasing(i,o,s,a).get,c=0,u=this.finalS,p=this.finalE,h=this.data.sh;if(2===h)c=l(c=p===u?r>=p?1:0:t(0,e(.5/(p-u)+(r-u)/(p-u),1)));else if(3===h)c=l(c=p===u?r>=p?0:1:1-t(0,e(.5/(p-u)+(r-u)/(p-u),1)));else if(4===h)p===u?c=0:(c=t(0,e(.5/(p-u)+(r-u)/(p-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===h){if(p===u)c=0;else{var d=p-u,f=-d/2+(r=e(t(0,r+.5-u),p-u)),m=d/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===h?(p===u?c=0:(r=e(t(0,r+.5-u),p-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(p-u)))/2),c=l(c)):(r>=n(u)&&(c=t(0,e(r-u<0?e(p,1)-(u-r):p-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;c<y?c=0:(c=(c-y)/g)>1&&(c=1)}return c*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,r=this.s.v/e+n,i=this.e.v/e+n;if(r>i){var o=r;r=i,i=o}this.finalS=r,this.finalE=i}},u([ft],r),{getTextSelectorProp:i}}();function _n(t,e,n){var r={propType:!1},i=dt.getProp,o=e.a;this.a={r:o.r?i(t,o.r,0,C,n):r,rx:o.rx?i(t,o.rx,0,C,n):r,ry:o.ry?i(t,o.ry,0,C,n):r,sk:o.sk?i(t,o.sk,0,C,n):r,sa:o.sa?i(t,o.sa,0,C,n):r,s:o.s?i(t,o.s,1,.01,n):r,a:o.a?i(t,o.a,1,0,n):r,o:o.o?i(t,o.o,0,.01,n):r,p:o.p?i(t,o.p,1,0,n):r,sw:o.sw?i(t,o.sw,0,0,n):r,sc:o.sc?i(t,o.sc,1,0,n):r,fc:o.fc?i(t,o.fc,1,0,n):r,fh:o.fh?i(t,o.fh,0,0,n):r,fs:o.fs?i(t,o.fs,0,.01,n):r,fb:o.fb?i(t,o.fb,0,.01,n):r,t:o.t?i(t,o.t,0,0,n):r},this.s=Cn.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function $n(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=f(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function En(){}$n.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,r=dt.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new _n(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},$n.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,r,i,o,s,a,l,c,u,p,h,d,f,m,g,y,v,b,x,w=this._moreOptions.alignment.v,k=this._animatorsData,S=this._textData,C=this.mHelper,_=this._renderType,$=this.renderedLetters.length,E=t.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,T=x.v;for(this._pathData.r.v&&(T=T.reverse()),s={tLength:0,segments:[]},o=T._length-1,y=0,i=0;i<o;i+=1)P=ht.buildBezierData(T.v[i],T.v[i+1],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[i+1][0]-T.v[i+1][0],T.i[i+1][1]-T.v[i+1][1]]),s.tLength+=P.segmentLength,s.segments.push(P),y+=P.segmentLength;i=o,x.v.c&&(P=ht.buildBezierData(T.v[i],T.v[0],[T.o[i][0]-T.v[i][0],T.o[i][1]-T.v[i][1]],[T.i[0][0]-T.v[0][0],T.i[0][1]-T.v[0][1]]),s.tLength+=P.segmentLength,s.segments.push(P),y+=P.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,a=this._pathData.f.v,h=0,p=1,c=0,u=!0,m=s.segments,a<0&&x.v.c)for(s.tLength<Math.abs(a)&&(a=-Math.abs(a)%s.tLength),p=(f=m[h=m.length-1].points).length-1;a<0;)a+=f[p].partialLength,(p-=1)<0&&(p=(f=m[h-=1].points).length-1);d=(f=m[h].points)[p-1],g=(l=f[p]).partialLength}o=E.length,n=0,r=0;var A,j,O,M,D,I=1.2*t.finalSize*.714,R=!0;O=k.length;var z,V,B,W,q,U,H,G,K,Y,J,X,Q=-1,Z=a,tt=h,et=p,nt=-1,rt="",it=this.defaultPropsArray;if(2===t.j||1===t.j){var ot=0,st=0,at=2===t.j?-.5:-1,lt=0,ct=!0;for(i=0;i<o;i+=1)if(E[i].n){for(ot&&(ot+=st);lt<i;)E[lt].animatorJustifyOffset=ot,lt+=1;ot=0,ct=!0}else{for(j=0;j<O;j+=1)(A=k[j].a).t.propType&&(ct&&2===t.j&&(st+=A.t.v*at),(D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?ot+=A.t.v*D[0]*at:ot+=A.t.v*D*at);ct=!1}for(ot&&(ot+=st);lt<i;)E[lt].animatorJustifyOffset=ot,lt+=1}for(i=0;i<o;i+=1){if(C.reset(),W=1,E[i].n)n=0,r+=t.yOffset,r+=R?1:0,a=Z,R=!1,this._hasMaskedPath&&(p=et,d=(f=m[h=tt].points)[p-1],g=(l=f[p]).partialLength,c=0),rt="",J="",K="",X="",it=this.defaultPropsArray;else{if(this._hasMaskedPath){if(nt!==E[i].line){switch(t.j){case 1:a+=y-t.lineWidths[E[i].line];break;case 2:a+=(y-t.lineWidths[E[i].line])/2}nt=E[i].line}Q!==E[i].ind&&(E[Q]&&(a+=E[Q].extra),a+=E[i].an/2,Q=E[i].ind),a+=w[0]*E[i].an*.005;var ut=0;for(j=0;j<O;j+=1)(A=k[j].a).p.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?ut+=A.p.v[0]*D[0]:ut+=A.p.v[0]*D),A.a.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?ut+=A.a.v[0]*D[0]:ut+=A.a.v[0]*D);for(u=!0,this._pathData.a.v&&(a=.5*E[0].an+(y-this._pathData.f.v-.5*E[0].an-.5*E[E.length-1].an)*Q/(o-1),a+=this._pathData.f.v);u;)c+g>=a+ut||!f?(v=(a+ut-c)/l.partialLength,V=d.point[0]+(l.point[0]-d.point[0])*v,B=d.point[1]+(l.point[1]-d.point[1])*v,C.translate(-w[0]*E[i].an*.005,-w[1]*I*.01),u=!1):f&&(c+=l.partialLength,(p+=1)>=f.length&&(p=0,m[h+=1]?f=m[h].points:x.v.c?(p=0,f=m[h=0].points):(c-=l.partialLength,f=null)),f&&(d=l,g=(l=f[p]).partialLength));z=E[i].an/2-E[i].add,C.translate(-z,0,0)}else z=E[i].an/2-E[i].add,C.translate(-z,0,0),C.translate(-w[0]*E[i].an*.005,-w[1]*I*.01,0);for(j=0;j<O;j+=1)(A=k[j].a).t.propType&&(D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?D.length?a+=A.t.v*D[0]:a+=A.t.v*D:D.length?n+=A.t.v*D[0]:n+=A.t.v*D));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(q=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),j=0;j<O;j+=1)(A=k[j].a).a.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?C.translate(-A.a.v[0]*D[0],-A.a.v[1]*D[1],A.a.v[2]*D[2]):C.translate(-A.a.v[0]*D,-A.a.v[1]*D,A.a.v[2]*D));for(j=0;j<O;j+=1)(A=k[j].a).s.propType&&((D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars)).length?C.scale(1+(A.s.v[0]-1)*D[0],1+(A.s.v[1]-1)*D[1],1):C.scale(1+(A.s.v[0]-1)*D,1+(A.s.v[1]-1)*D,1));for(j=0;j<O;j+=1){if(A=k[j].a,D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars),A.sk.propType&&(D.length?C.skewFromAxis(-A.sk.v*D[0],A.sa.v*D[1]):C.skewFromAxis(-A.sk.v*D,A.sa.v*D)),A.r.propType&&(D.length?C.rotateZ(-A.r.v*D[2]):C.rotateZ(-A.r.v*D)),A.ry.propType&&(D.length?C.rotateY(A.ry.v*D[1]):C.rotateY(A.ry.v*D)),A.rx.propType&&(D.length?C.rotateX(A.rx.v*D[0]):C.rotateX(A.rx.v*D)),A.o.propType&&(D.length?W+=(A.o.v*D[0]-W)*D[0]:W+=(A.o.v*D-W)*D),t.strokeWidthAnim&&A.sw.propType&&(D.length?U+=A.sw.v*D[0]:U+=A.sw.v*D),t.strokeColorAnim&&A.sc.propType)for(G=0;G<3;G+=1)D.length?q[G]+=(A.sc.v[G]-q[G])*D[0]:q[G]+=(A.sc.v[G]-q[G])*D;if(t.fillColorAnim&&t.fc){if(A.fc.propType)for(G=0;G<3;G+=1)D.length?H[G]+=(A.fc.v[G]-H[G])*D[0]:H[G]+=(A.fc.v[G]-H[G])*D;A.fh.propType&&(H=D.length?N(H,A.fh.v*D[0]):N(H,A.fh.v*D)),A.fs.propType&&(H=D.length?F(H,A.fs.v*D[0]):F(H,A.fs.v*D)),A.fb.propType&&(H=D.length?L(H,A.fb.v*D[0]):L(H,A.fb.v*D))}}for(j=0;j<O;j+=1)(A=k[j].a).p.propType&&(D=k[j].s.getMult(E[i].anIndexes[j],S.a[j].s.totalChars),this._hasMaskedPath?D.length?C.translate(0,A.p.v[1]*D[0],-A.p.v[2]*D[1]):C.translate(0,A.p.v[1]*D,-A.p.v[2]*D):D.length?C.translate(A.p.v[0]*D[0],A.p.v[1]*D[1],-A.p.v[2]*D[2]):C.translate(A.p.v[0]*D,A.p.v[1]*D,-A.p.v[2]*D));if(t.strokeWidthAnim&&(K=U<0?0:U),t.strokeColorAnim&&(Y="rgb("+Math.round(255*q[0])+","+Math.round(255*q[1])+","+Math.round(255*q[2])+")"),t.fillColorAnim&&t.fc&&(J="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(C.translate(0,-t.ls),C.translate(0,w[1]*I*.01+r,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var pt=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(pt+=180),C.rotate(-pt*Math.PI/180)}C.translate(V,B,0),a-=w[0]*E[i].an*.005,E[i+1]&&Q!==E[i+1].ind&&(a+=E[i].an/2,a+=.001*t.tr*t.finalSize)}else{switch(C.translate(n,r,0),t.ps&&C.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:C.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line]),0,0);break;case 2:C.translate(E[i].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[E[i].line])/2,0,0)}C.translate(0,-t.ls),C.translate(z,0,0),C.translate(w[0]*E[i].an*.005,w[1]*I*.01,0),n+=E[i].l+.001*t.tr*t.finalSize}"html"===_?rt=C.toCSS():"svg"===_?rt=C.to2dCSS():it=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],X=W}$<=i?(M=new kn(X,K,Y,J,rt,it),this.renderedLetters.push(M),$+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[i],this.lettersChangedFlag=M.update(X,K,Y,J,rt,it)||this.lettersChangedFlag)}}},$n.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},$n.prototype.mHelper=new wt,$n.prototype.defaultPropsArray=[],u([ft],$n),En.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new Sn(this,t.t,this.dynamicProperties),this.textAnimator=new $n(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},En.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},En.prototype.createPathShape=function(t,e){var n,r,i=e.length,o="";for(n=0;n<i;n+=1)"sh"===e[n].ty&&(r=e[n].ks.k,o+=bn(r,r.i.length,!0,t));return o},En.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},En.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},En.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},En.prototype.applyTextPropertiesToMatrix=function(t,e,n,r,i){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(r,i,0)},En.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},En.prototype.emptyProp=new kn,En.prototype.destroy=function(){};var Pn={shapes:[]};function Tn(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function An(t,e,n){this.initElement(t,e,n)}function jn(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function On(){}function Mn(){}function Dn(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?f(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?dt.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function In(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var n="";if(e&&e.title){var r=G("title"),i=D();r.setAttribute("id",i),r.textContent=e.title,this.svgElement.appendChild(r),n+=i}if(e&&e.description){var o=G("desc"),s=D();o.setAttribute("id",s),o.textContent=e.description,this.svgElement.appendChild(o),n+=" "+s}n&&this.svgElement.setAttribute("aria-labelledby",n);var a=G("defs");this.svgElement.appendChild(a);var l=G("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return u([Ne,qe,Ze,tn,ze,en,En],Tn),Tn.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Tn.prototype.buildTextContents=function(t){for(var e=0,n=t.length,r=[],i="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(r.push(i),i=""):i+=t[e],e+=1;return r.push(i),r},Tn.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var n=t.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},Tn.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=f(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var i=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",n.t);var s,a=n.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var c=this.mHelper,u="",p=this.data.singleShape,h=0,d=0,m=!0,g=.001*n.tr*n.finalSize;if(!p||l||n.sz){var y,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!p||0===t){if(s=v>t?this.textSpans[t].span:G(l?"g":"text"),v<=t){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=s,l){var b=G("g");s.appendChild(b),this.textSpans[t].childSpan=b}this.textSpans[t].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(c.reset(),p&&(a[t].n&&(h=-g,d+=n.yOffset,d+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,c,a[t].line,h,d),h+=a[t].l||0,h+=g),l){var x;if(1===(y=this.globalData.fontManager.getCharData(n.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)x=new Dn(y.data,this.globalData,this);else{var w=Pn;y.data&&y.data.shapes&&(w=this.buildShapeData(y.data,n.finalSize)),x=new wn(w,this.globalData,this)}if(this.textSpans[t].glyph){var k=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[t].glyph=x,x._debug=!0,x.prepareFrame(0),x.renderFrame(),this.textSpans[t].childSpan.appendChild(x.layerElement),1===y.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&s.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),s.textContent=a[t].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&s&&s.setAttribute("d",u)}else{var S=this.textContainer,C="start";switch(n.j){case 1:C="end";break;case 2:C="middle";break;default:C="start"}S.setAttribute("text-anchor",C),S.setAttribute("letter-spacing",g);var _=this.buildTextContents(n.finalText);for(e=_.length,d=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)(s=this.textSpans[t].span||G("tspan")).textContent=_[t],s.setAttribute("x",0),s.setAttribute("y",d),s.style.display="inherit",S.appendChild(s),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=s,d+=n.finalLineHeight;this.layerElement.appendChild(S)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Tn.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},Tn.prototype.getValue=function(){var t,e,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<n;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},Tn.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var n,r,i,o=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(e=s.length,t=0;t<e;t+=1)s[t].n||(n=o[t],r=this.textSpans[t].span,(i=this.textSpans[t].glyph)&&i.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.fc))}},u([nn],An),An.prototype.createContent=function(){var t=G("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},jn.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},jn.prototype.renderFrame=function(){},jn.prototype.getBaseElement=function(){return null},jn.prototype.destroy=function(){},jn.prototype.sourceRectAtTime=function(){},jn.prototype.hide=function(){},u([Ne,qe,tn,ze],jn),u([We],On),On.prototype.createNull=function(t){return new jn(t,this.globalData,this)},On.prototype.createShape=function(t){return new wn(t,this.globalData,this)},On.prototype.createText=function(t){return new Tn(t,this.globalData,this)},On.prototype.createImage=function(t){return new nn(t,this.globalData,this)},On.prototype.createSolid=function(t){return new An(t,this.globalData,this)},On.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=G("clipPath"),r=G("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var i=D();n.setAttribute("id",i),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+l()+"#"+i+")"),e.appendChild(n),this.layers=t.layers,this.elements=f(t.layers.length)},On.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},On.prototype.updateContainerSize=function(){},On.prototype.findIndexByInd=function(t){var e=0,n=this.layers.length;for(e=0;e<n;e+=1)if(this.layers[e].ind===t)return e;return-1},On.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);if(e[t]=n,W()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var i=e[r].getMatte(this.layers[t].tt);n.setMatte(i)}else this.buildItem(r),this.addPendingElement(n)}}},On.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,i=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(i);break}e+=1}}},On.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},On.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var r,i=0;i<e;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},On.prototype.hide=function(){this.layerElement.style.display="none"},On.prototype.show=function(){this.layerElement.style.display="block"},u([Ne,qe,tn,ze,en],Mn),Mn.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Mn.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},Mn.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Mn.prototype.setElements=function(t){this.elements=t},Mn.prototype.getElements=function(){return this.elements},Mn.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Mn.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},u([On,Mn,Ze],Dn),Dn.prototype.createComp=function(t){return new Dn(t,this.globalData,this)},u([On],In),In.prototype.createComp=function(t){return new Dn(t,this.globalData,this)},et("svg",In),Nt.registerModifier("tm",Vt),Nt.registerModifier("pb",Bt),Nt.registerModifier("rp",qt),Nt.registerModifier("rd",Ut),Nt.registerModifier("zz",ue),Nt.registerModifier("op",Se),St}())}(i,i.exports);var o=i.exports;function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var d=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],f=function(t,n){var i=t.animationData,s=t.loop,l=t.autoplay,u=t.initialSegment,h=t.onComplete,f=t.onLoopComplete,m=t.onEnterFrame,g=t.onSegmentStart,y=t.onConfigReady,v=t.onDataReady,b=t.onDataFailed,x=t.onLoadedImages,w=t.onDOMLoaded,k=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var S=c(t,d),C=p(e.useState(!1),2),_=C[0],$=C[1],E=e.useRef(),P=e.useRef(null);return e.useEffect((function(){var e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P.current){null===(e=E.current)||void 0===e||e.destroy();var r=a(a(a({},t),n),{},{container:P.current});return E.current=o.loadAnimation(r),$(!!E.current),function(){var t;null===(t=E.current)||void 0===t||t.destroy(),E.current=void 0}}}();return function(){return null==e?void 0:e()}}),[i,s]),e.useEffect((function(){E.current&&(E.current.autoplay=!!l)}),[l]),e.useEffect((function(){E.current&&(u?Array.isArray(u)&&u.length&&((E.current.currentRawFrame<u[0]||E.current.currentRawFrame>u[1])&&(E.current.currentRawFrame=u[0]),E.current.setSegment(u[0],u[1])):E.current.resetSegments(!0))}),[u]),e.useEffect((function(){var t=[{name:"complete",handler:h},{name:"loopComplete",handler:f},{name:"enterFrame",handler:m},{name:"segmentStart",handler:g},{name:"config_ready",handler:y},{name:"data_ready",handler:v},{name:"data_failed",handler:b},{name:"loaded_images",handler:x},{name:"DOMLoaded",handler:w},{name:"destroy",handler:k}].filter((function(t){return null!=t.handler}));if(t.length){var e=t.map((function(t){var e;return null===(e=E.current)||void 0===e||e.addEventListener(t.name,t.handler),function(){var e;null===(e=E.current)||void 0===e||e.removeEventListener(t.name,t.handler)}}));return function(){e.forEach((function(t){return t()}))}}}),[h,f,m,g,y,v,b,x,w,k]),{View:r.default.createElement("div",a({style:n,ref:P},S)),play:function(){var t;null===(t=E.current)||void 0===t||t.play()},stop:function(){var t;null===(t=E.current)||void 0===t||t.stop()},pause:function(){var t;null===(t=E.current)||void 0===t||t.pause()},setSpeed:function(t){var e;null===(e=E.current)||void 0===e||e.setSpeed(t)},goToAndStop:function(t,e){var n;null===(n=E.current)||void 0===n||n.goToAndStop(t,e)},goToAndPlay:function(t,e){var n;null===(n=E.current)||void 0===n||n.goToAndPlay(t,e)},setDirection:function(t){var e;null===(e=E.current)||void 0===e||e.setDirection(t)},playSegments:function(t,e){var n;null===(n=E.current)||void 0===n||n.playSegments(t,e)},setSubframe:function(t){var e;null===(e=E.current)||void 0===e||e.setSubframe(t)},getDuration:function(t){var e;return null===(e=E.current)||void 0===e?void 0:e.getDuration(t)},destroy:function(){var t;null===(t=E.current)||void 0===t||t.destroy(),E.current=void 0},animationContainerRef:P,animationLoaded:_,animationItem:E.current}};var m=function(t){var n=t.wrapperRef,r=t.animationItem,i=t.mode,o=t.actions;e.useEffect((function(){var t,e,s=n.current;if(s&&r&&o.length){r.stop();switch(i){case"scroll":return t=null,e=function(){var e=function(t){var e=t.getBoundingClientRect(),n=e.top,r=e.height;return(window.innerHeight-n)/(window.innerHeight+r)}(s),n=o.find((function(t){var n=t.visibility;return n&&e>=n[0]&&e<=n[1]}));if(n){if("seek"===n.type&&n.visibility&&2===n.frames.length){var i=n.frames[0]+Math.ceil((e-n.visibility[0])/(n.visibility[1]-n.visibility[0])*n.frames[1]);
288
329
  //! goToAndStop must be relative to the start of the current segment
289
- i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.isPaused)&&(i.playSegments(n.frames,!0),t=n.frames),"play"===n.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===n.type&&i.goToAndStop(n.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)};case"cursor":return function(){var t=function(t,e){var n=t,r=e;if(-1!==n&&-1!==r){var a=function(t,e,n){var i=t.getBoundingClientRect(),r=i.top;return{x:(e-i.left)/i.width,y:(n-r)/i.height}}(o,n,r);n=a.x,r=a.y}var l=s.find((function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?n>=e.x[0]&&n<=e.x[1]&&r>=e.y[0]&&r<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&n===e.x&&r===e.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),h=(r-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((c+h)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&i.playSegments(l.frames,!0),"play"===l.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(l.frames)),"stop"===l.type&&i.goToAndStop(l.frames[0],!0)}},e=function(e){t(e.clientX,e.clientY)},n=function(){t(-1,-1)};return o.addEventListener("mousemove",e),o.addEventListener("mouseout",n),function(){o.removeEventListener("mousemove",e),o.removeEventListener("mouseout",n)}}()}}}),[r,i])},g=function(t){var e=t.actions,n=t.mode,i=t.lottieObj,r=i.animationItem,s=i.View,o=i.animationContainerRef;return m({actions:e,animationItem:r,mode:n,wrapperRef:o}),s},y=["style","interactivity"];t.LottiePlayer=s,t.default=function(t){var n,i,r,s=t.style,o=t.interactivity,a=c(t,y),l=f(a,s),h=l.View,u=l.play,p=l.stop,d=l.pause,m=l.setSpeed,v=l.goToAndStop,b=l.goToAndPlay,x=l.setDirection,w=l.playSegments,k=l.setSubframe,_=l.getDuration,S=l.destroy,$=l.animationContainerRef,C=l.animationLoaded,A=l.animationItem;return e.useEffect((function(){t.lottieRef&&(t.lottieRef.current={play:u,stop:p,pause:d,setSpeed:m,goToAndPlay:b,goToAndStop:v,setDirection:x,playSegments:w,setSubframe:k,getDuration:_,destroy:S,animationContainerRef:$,animationLoaded:C,animationItem:A})}),[null===(n=t.lottieRef)||void 0===n?void 0:n.current]),g({lottieObj:{View:h,play:u,stop:p,pause:d,setSpeed:m,goToAndStop:v,goToAndPlay:b,setDirection:x,playSegments:w,setSubframe:k,getDuration:_,destroy:S,animationContainerRef:$,animationLoaded:C,animationItem:A},actions:null!==(i=null==o?void 0:o.actions)&&void 0!==i?i:[],mode:null!==(r=null==o?void 0:o.mode)&&void 0!==r?r:"scroll"})},t.useLottie=f,t.useLottieInteractivity=g,Object.defineProperty(t,"__esModule",{value:!0})}(Bl,e);const Wl=u(Bl),Ul=t.styled(Wl).attrs((({autoplay:t=!0})=>({autoplay:t,className:"comp-lottie"})))`
330
+ r.goToAndStop(i-r.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||r.isPaused)&&(r.playSegments(n.frames,!0),t=n.frames),"play"===n.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===n.type&&r.goToAndStop(n.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",e),function(){document.removeEventListener("scroll",e)};case"cursor":return function(){var t=function(t,e){var n=t,i=e;if(-1!==n&&-1!==i){var a=function(t,e,n){var r=t.getBoundingClientRect(),i=r.top;return{x:(e-r.left)/r.width,y:(n-i)/r.height}}(s,n,i);n=a.x,i=a.y}var l=o.find((function(t){var e=t.position;return e&&Array.isArray(e.x)&&Array.isArray(e.y)?n>=e.x[0]&&n<=e.x[1]&&i>=e.y[0]&&i<=e.y[1]:!(!e||Number.isNaN(e.x)||Number.isNaN(e.y))&&n===e.x&&i===e.y}));if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),u=(i-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+u)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},e=function(e){t(e.clientX,e.clientY)},n=function(){t(-1,-1)};return s.addEventListener("mousemove",e),s.addEventListener("mouseout",n),function(){s.removeEventListener("mousemove",e),s.removeEventListener("mouseout",n)}}()}}}),[i,r])},g=function(t){var e=t.actions,n=t.mode,r=t.lottieObj,i=r.animationItem,o=r.View,s=r.animationContainerRef;return m({actions:e,animationItem:i,mode:n,wrapperRef:s}),o},y=["style","interactivity"];t.LottiePlayer=o,t.default=function(t){var n,r,i,o=t.style,s=t.interactivity,a=c(t,y),l=f(a,o),u=l.View,p=l.play,h=l.stop,d=l.pause,m=l.setSpeed,v=l.goToAndStop,b=l.goToAndPlay,x=l.setDirection,w=l.playSegments,k=l.setSubframe,S=l.getDuration,C=l.destroy,_=l.animationContainerRef,$=l.animationLoaded,E=l.animationItem;return e.useEffect((function(){t.lottieRef&&(t.lottieRef.current={play:p,stop:h,pause:d,setSpeed:m,goToAndPlay:b,goToAndStop:v,setDirection:x,playSegments:w,setSubframe:k,getDuration:S,destroy:C,animationContainerRef:_,animationLoaded:$,animationItem:E})}),[null===(n=t.lottieRef)||void 0===n?void 0:n.current]),g({lottieObj:{View:u,play:p,stop:h,pause:d,setSpeed:m,goToAndStop:v,goToAndPlay:b,setDirection:x,playSegments:w,setSubframe:k,getDuration:S,destroy:C,animationContainerRef:_,animationLoaded:$,animationItem:E},actions:null!==(r=null==s?void 0:s.actions)&&void 0!==r?r:[],mode:null!==(i=null==s?void 0:s.mode)&&void 0!==i?i:"scroll"})},t.useLottie=f,t.useLottieInteractivity=g,Object.defineProperty(t,"__esModule",{value:!0})}(Zl,e);const tc=p(Zl),ec=t.styled(tc).attrs((({autoplay:t=!0})=>({autoplay:t,className:"comp-lottie"})))`
290
331
  ${({$size:t=16})=>`\n height: ${t}px;\n width: ${t}px;\n `}
291
- `,Hl=t.styled.button`
332
+ `,nc=p((function(t){return void 0===t})),{getVariant:rc}=l((t=>({default:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.25]};\n\n background-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[800]};\n `,error:`\n background-color: ${t.palette.error[50]};\n color: ${t.palette.error[700]};\n `,inactive:`\n background-color: ${t.palette.gray[200]};\n color: theme.palette.gray[400];\n `,new:`\n background-color: ${t.palette.primary[300]};\n color: ${t.palette.primary[25]};\n `,reachable:`\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[400]};\n `,review:`\n background-color: ${t.palette.warning[400]};\n color: ${t.palette.warning[700]};\n `,role:`\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.white};\n `,success:`\n background-color: ${t.palette.success[50]};\n color: ${t.palette.success[700]};\n `,technique:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${t.palette.success[800]};\n color: ${t.palette.success[800]};\n `,warning:`\n background-color: ${t.palette.warning[50]};\n color: ${t.palette.warning[700]};\n `}))),ic=t.styled.span`
333
+ ${({theme:t,$fontSize:e=t.typography.text.xs,$variant:n})=>`\n align-items: center;\n border-radius: ${t.spacing["technique"===n?1:.25]};\n display: inline-flex;\n gap: ${t.spacing[.25]};\n font-family: ${t.typography.type.primary};\n font-size: ${e};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n margin-right: ${t.spacing[.5]};\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n > a {\n font-size: ${t.typography.text.xs};\n }\n\n ${rc(t,n)}\n `}
334
+ `,oc=({children:t,disabled:e,icon:n,iconColor:r="inherit",id:i="close-tag",fontSize:o,onClose:s,variant:a="default"})=>y.jsxs(ic,{$fontSize:o,$variant:a,children:[n&&y.jsx(V,{icon:n,iconColor:r,iconSize:"xs"}),t,s?y.jsx(Ar,{disabled:e,icon:"xmark",iconSize:"xs",iconType:"fa-light",id:i,onClick:s,px:.125,py:.125,variant:"ghost"}):void 0]}),sc=t.styled.button`
292
335
  align-items: center;
293
336
  background-color: transparent;
294
337
  border: unset;
@@ -305,20 +348,20 @@ i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.i
305
348
  &:hover span {
306
349
  color: ${v.palette.primary[200]};
307
350
  }
308
- `,Gl=t.styled.div`
351
+ `,ac=t.styled.div`
309
352
  ${({theme:t,$variant:e})=>`\n background: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n border-left: 4px solid ${t.palette[e][500]};\n box-shadow: ${t.shadows.md};\n position: relative;\n display: flex;\n width: 360px;\n padding: ${t.spacing[1.25]} ${t.spacing[1]} ${t.spacing[1.25]} ${t.spacing[.75]};\n gap: ${t.spacing[.5]};\n\n button {\n position: absolute;\n top: 20px;\n right: 16px;\n }\n `}
310
- `,Ql=t.styled.div`
353
+ `,lc=t.styled.div`
311
354
  ${({theme:t,$variant:e})=>`\n height: ${t.spacing[2.5]};\n width: ${t.spacing[2.5]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n transform: scale(2.5) translate(-20%, -20%);\n color: ${t.palette[e][50]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(2) translate(-25%, -25%);\n color: ${t.palette[e][200]};\n }\n\n & .icon {\n color: ${t.palette[e][500]};\n }\n `}
312
- `,Jl=t=>"warning"===t?"triangle-exclamation":"info"===t?"circle-info":"success"===t?"circle-check":"circle-exclamation",Kl=t.styled(P)`
355
+ `,cc=t=>"warning"===t?"triangle-exclamation":"info"===t?"circle-info":"success"===t?"circle-check":"circle-exclamation",uc=t.styled(P)`
313
356
  ${({theme:t,$variant:e})=>`\n align-items: center;\n background: ${"error"===e?t.palette.primary[400]:t.palette.warning[500]};\n border-radius: 100%;\n font-family: ${t.typography.type.primary};\n justify-content: center;\n padding: 0;\n position: absolute;\n z-index: 11;\n width: ${t.spacing[.5]};\n height: ${t.spacing[.5]};\n `}
314
- `,Yl=t.styled.div`
357
+ `,pc=t.styled.div`
315
358
  align-items: center;
316
359
  color: ${({theme:t})=>t.palette.white};
317
360
  display: flex;
318
361
  font-size: 6px;
319
362
  font-weight: ${({theme:t})=>t.typography.weight.bold};
320
363
  justify-content: center;
321
- `,Xl=e.forwardRef((function({numberIndicator:t,show:e,variant:n="error",...i},r){return y.jsx(Kl,{$variant:n,className:e?"flex":"hidden","data-testid":"notification-sign",ref:r,...i,children:t&&y.jsx(Yl,{children:t<=9?t:9})})})),Zl=t.styled.div`
364
+ `,hc=e.forwardRef((function({numberIndicator:t,show:e,variant:n="error",...r},i){return y.jsx(uc,{$variant:n,className:e?"flex":"hidden","data-testid":"notification-sign",ref:i,...r,children:t&&y.jsx(pc,{children:t<=9?t:9})})})),dc=t.styled.div`
322
365
  width: fit-content;
323
366
  border: ${({theme:t})=>`1px solid ${t.palette.gray[300]}`};
324
367
  border-radius: 4px;
@@ -331,7 +374,7 @@ i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.i
331
374
  align-items: center;
332
375
  justify-content: center;
333
376
  padding: 0.5em;
334
- `,tc=t.styled.input`
377
+ `,fc=t.styled.input`
335
378
  width: 4em;
336
379
  appearance: textfield;
337
380
  border-style: none;
@@ -351,7 +394,9 @@ i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.i
351
394
  &::-webkit-inner-spin-button {
352
395
  opacity: 1;
353
396
  }
354
- `,ec=e.forwardRef((function({autoUpdate:t=!1,decimalPlaces:n=0,defaultValue:r=0,max:s,min:o,onEnter:a,tooltipMessage:l,...c},h){const u=n<0?0:n,[p,d]=e.useState(Number(r).toFixed(u)),f=e.useCallback((e=>{const n=i.toNumber(e.target.value);e.target.value.endsWith(".")?d(e.target.value):n>=Number(o)&&n<=Number(s)&&(d(String(n)),t&&a(i.toNumber(n.toFixed(u)))),e.stopPropagation()}),[t,u,s,o,a]),m=e.useCallback((t=>{t.currentTarget.contains(t.relatedTarget)||d(Number(r).toFixed(u)),t.stopPropagation()}),[u,r]),g=e.useCallback((t=>{t.stopPropagation(),"Enter"!==t.key||i.isEmpty(t.currentTarget.value)||a(i.toNumber(t.currentTarget.value))}),[a]);return y.jsx(Zl,{onBlur:m,tabIndex:-1,children:y.jsx(Ti,{id:"numberInputTooltip",tip:l,children:y.jsx(tc,{...c,max:s,min:o,onChange:f,onKeyUp:g,ref:h,step:10**-u,type:"number",value:p})})})})),nc=t.styled(P)`
397
+ `,mc=e.forwardRef((function({autoUpdate:t=!1,decimalPlaces:n=0,defaultValue:i=0,max:o,min:s,onEnter:a,tooltipMessage:l,...c},u){const p=n<0?0:n,[h,d]=e.useState(Number(i).toFixed(p)),f=e.useCallback((e=>{const n=r.toNumber(e.target.value);e.target.value.endsWith(".")?d(e.target.value):n>=Number(s)&&n<=Number(o)&&(d(String(n)),t&&a(r.toNumber(n.toFixed(p)))),e.stopPropagation()}),[t,p,o,s,a]),m=e.useCallback((t=>{t.currentTarget.contains(t.relatedTarget)||d(Number(i).toFixed(p)),t.stopPropagation()}),[p,i]),g=e.useCallback((t=>{t.stopPropagation(),"Enter"!==t.key||r.isEmpty(t.currentTarget.value)||a(r.toNumber(t.currentTarget.value))}),[a]);return y.jsx(dc,{onBlur:m,tabIndex:-1,children:y.jsx(Tr,{id:"numberInputTooltip",tip:l,children:y.jsx(fc,{...c,max:o,min:s,onChange:f,onKeyUp:g,ref:u,step:10**-p,type:"number",value:h})})})})),gc=t.styled.div`
398
+ ${({theme:t})=>`\n height: ${t.spacing[1]};\n width: ${t.spacing[1]};\n position: relative;\n flex-shrink: 0;\n\n & .ellipse-1,\n & .ellipse-2,\n & .icon {\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n position: absolute;\n }\n\n & .ellipse-1 {\n color: ${t.palette.warning[200]};\n position: absolute;\n }\n\n & .ellipse-2 {\n transform: scale(0.75) translate(-67%, -66%);\n color: ${t.palette.warning[400]};\n }\n\n & .icon {\n color: ${t.palette.warning[600]};\n font-size: ${t.spacing[.5]};\n }\n `}
399
+ `,yc=({margin:e,onClick:n,text:r})=>{const i=t.useTheme(),o=y.jsxs(gc,{children:[y.jsx(V,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),y.jsx(V,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),y.jsx(V,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return void 0!==r?y.jsx(M,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:y.jsxs(M,{alignItems:"center",bgColor:i.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[o,y.jsx(F,{color:i.palette.warning[500],display:"inline",ml:.25,size:"xs",children:r})]})}):y.jsx(M,{display:"inline-block",mr:e,onClick:n,children:o})},vc=t.styled(P)`
355
400
  animation: ${({$animationTime:t})=>`progress-bar ${t}s ease-in-out`};
356
401
  animation-fill-mode: both;
357
402
 
@@ -364,37 +409,62 @@ i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.i
364
409
  width: 100%;
365
410
  }
366
411
  }
367
- `,ic=t.styled.label`
368
- ${({theme:t,$disabled:e})=>{const n=e?300:600,i=e?"not-allowed":"pointer";return`\n display: flex;\n align-items: center;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.typography.text.lg};\n text-align: left;\n position: relative;\n cursor: ${i};\n color: ${t.palette.gray[n]};\n gap: ${t.spacing[.5]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n }\n\n .checkmark {\n position: relative;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background-color: ${t.palette.white};\n border-radius: 50%;\n border: 1px solid ${t.palette.gray[600]};\n }\n\n input:disabled ~ .checkmark {\n border: 1px solid ${t.palette.gray[300]};\n background-color: ${t.palette.white};\n cursor: not-allowed;\n }\n\n input:not(:disabled):checked ~ .checkmark {\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.primary[500]};\n }\n\n input:not(:disabled):hover ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.gray[100]};\n }\n\n input:not(:disabled):hover:checked ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.primary[50]};\n }\n\n .checkmark::after {\n content: "";\n position: absolute;\n display: none;\n top: 3px;\n left: 3px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ${t.palette.primary[500]};\n }\n\n input:checked ~ .checkmark::after {\n display: block;\n }\n\n input:disabled:checked ~ .checkmark::after {\n background-color: ${t.palette.gray[300]};\n }\n `}}
369
- `,rc=t.styled.span.attrs({className:"checkmark"})``,sc=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:i,onChange:r,onClick:s,value:o,...a},l){return y.jsxs(ic,{$disabled:e,children:[y.jsx("input",{"aria-label":i,defaultChecked:t,disabled:e,name:i,onChange:r,onClick:s,ref:l,type:"radio",value:o,...a}),y.jsx(rc,{}),n??null]})})),oc=t.styled.a`
412
+ `,bc=t.styled.label`
413
+ ${({theme:t,$disabled:e})=>{const n=e?300:600,r=e?"not-allowed":"pointer";return`\n display: flex;\n align-items: center;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.typography.text.lg};\n text-align: left;\n position: relative;\n cursor: ${r};\n color: ${t.palette.gray[n]};\n gap: ${t.spacing[.5]};\n\n input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n width: 0;\n }\n\n .checkmark {\n position: relative;\n top: 0;\n left: 0;\n height: 16px;\n width: 16px;\n background-color: ${t.palette.white};\n border-radius: 50%;\n border: 1px solid ${t.palette.gray[600]};\n }\n\n input:disabled ~ .checkmark {\n border: 1px solid ${t.palette.gray[300]};\n background-color: ${t.palette.white};\n cursor: not-allowed;\n }\n\n input:not(:disabled):checked ~ .checkmark {\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.primary[500]};\n }\n\n input:not(:disabled):hover ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.gray[100]};\n }\n\n input:not(:disabled):hover:checked ~ .checkmark {\n background-color: ${t.palette.white};\n box-shadow: 0 0 0 4px ${t.palette.primary[50]};\n }\n\n .checkmark::after {\n content: "";\n position: absolute;\n display: none;\n top: 3px;\n left: 3px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background: ${t.palette.primary[500]};\n }\n\n input:checked ~ .checkmark::after {\n display: block;\n }\n\n input:disabled:checked ~ .checkmark::after {\n background-color: ${t.palette.gray[300]};\n }\n `}}
414
+ `,xc=t.styled.span.attrs({className:"checkmark"})``,wc=e.forwardRef((function({defaultChecked:t=!1,disabled:e=!1,label:n,name:r,onChange:i,onClick:o,value:s,...a},l){return y.jsxs(bc,{$disabled:e,children:[y.jsx("input",{"aria-label":r,defaultChecked:t,disabled:e,name:r,onChange:i,onClick:o,ref:l,type:"radio",value:s,...a}),y.jsx(xc,{}),n??null]})})),kc=t.styled.div.attrs({className:"comp-scroll-up"})`
415
+ bottom: 15px;
416
+ position: fixed;
417
+ right: 140px;
418
+ z-index: 100;
419
+ `,Sc=t.styled.a`
370
420
  ${({theme:t})=>`\n align-items: center;\n display: flex;\n background: ${t.palette.white};\n border-radius: ${t.spacing[.5]};\n cursor: pointer;\n gap: ${t.spacing[1]};\n padding:\n ${t.spacing[.5]}\n ${t.spacing[1]}\n ${t.spacing[.5]}\n ${t.spacing[.5]};\n width: 1143px;\n\n &:hover {\n background: ${t.palette.gray[100]};\n\n > div.icon-wrap {\n background: ${t.palette.gradients["01"]};\n\n path {\n fill: ${t.palette.white};\n }\n }\n }\n\n @media screen\n and (min-width: ${t.breakpoints.sm})\n and (max-width: ${t.breakpoints.md})\n {\n width: 905px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${t.breakpoints.sm})\n {\n width: 475px;\n }\n\n @media screen and (max-width: 40em) {\n width: 270px;\n }\n `}
371
- `,ac=t.styled.div.attrs({className:"icon-wrap"})`
421
+ `,Cc=t.styled.div.attrs({className:"icon-wrap"})`
372
422
  ${({theme:t})=>`\n align-items: center;\n background: ${t.palette.primary[25]};\n border-radius: ${t.spacing[.25]};\n display: flex;\n justify-content: center;\n min-width: ${t.spacing[2.5]};\n height: ${t.spacing[2.5]};\n padding: ${t.spacing[.5]};\n\n span {\n font-size: 20px;\n }\n `}
373
- `,lc=t.styled.div`
423
+ `,_c=t.styled.div`
374
424
  ${({theme:t})=>`\n align-items: flex-start;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n width: 1193px;\n\n > :is(form, .dropdown) {\n border-radius: ${t.spacing[.5]};\n border: 1px solid ${t.palette.gray[200]};\n background-color: ${t.palette.white};\n }\n\n @media screen\n and (min-width: ${t.breakpoints.sm})\n and (max-width: ${t.breakpoints.md})\n {\n width: 954px;\n }\n\n @media screen\n and (min-width: 40em)\n and (max-width: ${t.breakpoints.sm})\n {\n width: 526px;\n }\n\n @media screen and (max-width: 40em) {\n width: 320px;\n }\n `}
375
- `,cc=t.styled.form`
425
+ `,$c=t.styled.form`
376
426
  ${({theme:t})=>`\n align-items: center;\n display: flex;\n gap: ${t.spacing[.5]};\n justify-content: space-between;\n padding: ${t.spacing[1]} ${t.spacing[1.5]};\n width: 100%;\n `}
377
- `,hc=t.styled.input`
427
+ `,Ec=t.styled.input`
378
428
  ${({theme:t})=>`\n flex: 1 0 0;\n border: none;\n color: ${t.palette.gray[600]};\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.md};\n font-weight: ${t.typography.weight.regular};\n line-height: ${t.spacing[1.5]};\n outline: none;\n\n &::placeholder {\n color: ${t.palette.gray[400]};\n }\n\n &::-webkit-search-decoration,\n &::-webkit-search-cancel-button,\n &::-webkit-search-results-button,\n &::-webkit-search-results-decoration {\n -webkit-appearance:none;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n font-size: ${t.typography.text.sm};\n }\n `}
379
- `,uc=t.styled.button`
429
+ `,Pc=t.styled.button`
380
430
  ${({theme:t})=>`\n align-items: center;\n border-radius: ${t.spacing[.5]};\n display: flex;\n width: ${t.spacing[2.5]};\n height: ${t.spacing[2.5]};\n padding: ${t.spacing[.625]} ${t.spacing[1]};\n justify-content: center;\n gap: ${t.spacing[.5]};\n flex-shrink: 0;\n\n span {\n color: ${t.palette.gray[400]};\n }\n\n &:hover {\n background-color: ${t.palette.gray[100]};\n }\n `}
381
- `,pc=t.styled.div.attrs({className:"dropdown"})`
431
+ `,Tc=t.styled.div.attrs({className:"dropdown"})`
382
432
  ${({theme:t,$empty:e=!1,$showHits:n=!1})=>`\n align-items: flex-start;\n align-self: stretch;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.5]};\n max-height: ${n?"270px":"500px"};\n overflow: hidden auto;\n padding: ${t.spacing[1.5]};\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n\n @media screen and (max-width: ${t.breakpoints.sm}) and (${!e}) {\n max-height: 410px;\n }\n ${e&&`\n @media screen and (min-width: ${t.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);\n }\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n border: none !important;\n background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);\n }\n `}\n\n &::-webkit-scrollbar {\n height: ${t.spacing[.5]};\n width: ${t.spacing[.5]};\n }\n &::-webkit-scrollbar-track {\n background: ${t.palette.gray[100]};\n }\n &::-webkit-scrollbar-thumb {\n background-color: ${t.palette.gray[600]};\n border-radius: ${t.spacing[5]};\n height: ${t.spacing[.5]};\n }\n `}
383
- `,dc=({hit:t,icon:e="infinity",showIcon:n=!1})=>{const{slug:i,title:r}=t,s=String(i).startsWith("/pages/")?String(i).replace("/pages/","/"):String(i);return y.jsxs(oc,{href:s,rel:"nofollow noopener noreferrer",children:[n&&y.jsx(ac,{children:y.jsx(V,{icon:e,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),y.jsx(L,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},fc=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],mc={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},gc=t.styled.button`
433
+ `,Ac=({hit:t,icon:e="infinity",showIcon:n=!1})=>{const{slug:r,title:i}=t,o=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return y.jsxs(Sc,{href:o,rel:"nofollow noopener noreferrer",children:[n&&y.jsx(Cc,{children:y.jsx(V,{icon:e,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),y.jsx(F,{color:v.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(i)})]})},jc=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],Oc={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},Mc={critical:{bgColor:v.palette.primary[700],colorL:v.palette.gray[800],colorR:v.palette.white},disable:{bgColor:v.palette.gray[200],colorL:v.palette.gray[400],colorR:v.palette.gray[400]},high:{bgColor:v.palette.error[500],colorL:v.palette.gray[800],colorR:v.palette.white},low:{bgColor:v.palette.warning[200],colorL:v.palette.gray[800],colorR:v.palette.gray[800]},medium:{bgColor:v.palette.warning[500],colorL:v.palette.gray[800],colorR:v.palette.gray[800]}};var Dc=Pe,Ic=Cn,Rc=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},Fc=Mn,Lc=be?be.prototype:void 0,Nc=Lc?Lc.toString:void 0,zc=function t(e){if("string"==typeof e)return e;if(Fc(e))return Rc(e,t)+"";if(function(t){return"symbol"==typeof t||Ic(t)&&"[object Symbol]"==Dc(t)}(e))return Nc?Nc.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Vc=function(t){return null==t?"":zc(t)},Bc=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},Wc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),qc=function(t){return Wc.test(t)},Uc="\\ud800-\\udfff",Hc="["+Uc+"]",Gc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Kc="\\ud83c[\\udffb-\\udfff]",Yc="[^"+Uc+"]",Jc="(?:\\ud83c[\\udde6-\\uddff]){2}",Xc="[\\ud800-\\udbff][\\udc00-\\udfff]",Qc="(?:"+Gc+"|"+Kc+")?",Zc="[\\ufe0e\\ufe0f]?",tu=Zc+Qc+"(?:\\u200d(?:"+[Yc,Jc,Xc].join("|")+")"+Zc+Qc+")*",eu="(?:"+[Yc+Gc+"?",Gc,Jc,Xc,Hc].join("|")+")",nu=RegExp(Kc+"(?="+Kc+")|"+eu+tu,"g"),ru=function(t){return t.split("")},iu=qc,ou=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Bc(t,e,n)},su=qc,au=function(t){return iu(t)?function(t){return t.match(nu)||[]}(t):ru(t)},lu=Vc,cu=function(){return function(t){t=lu(t);var e=su(t)?au(t):void 0,n=e?e[0]:t.charAt(0),r=e?ou(e,1).join(""):t.slice(1);return n.toUpperCase()+r}}(),uu=Vc,pu=cu;const hu=p((function(t){return pu(uu(t).toLowerCase())})),du=({variant:t,value:e})=>{const{iconColor:n,iconText:r,iconTextColor:i,textColor:o}=((t,e)=>{const n={critical:v.palette.primary[700],high:v.palette.error[500],low:v.palette.warning[200],medium:v.palette.warning[500],none:v.palette.gray[200]},r={disabled:v.palette.gray[400],enabled:v.palette.gray[800]},i={critical:v.palette.white,high:v.palette.white,low:v.palette.gray[800],medium:v.palette.gray[800],none:v.palette.gray[400]};return{iconColor:e<1?n.none:n[t],iconText:hu(t.charAt(0)),iconTextColor:e<1?i.none:i[t],textColor:e<1?r.disabled:r.enabled}})(t,e),s=hu(t.charAt(0))+t.slice(1);return y.jsxs(M,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[y.jsx(Tr,{id:s,place:"top",tip:s,children:y.jsx(M,{bgColor:n,borderRadius:"4px",cursor:"pointer",display:"flex",maxWidth:"20px",minWidth:"20px",children:y.jsx(F,{color:i,fontWeight:"bold",size:"sm",textAlign:"center",children:r})})}),y.jsx(F,{color:o,size:"sm",children:e})]})},fu=t.styled.div`
434
+ ${({theme:t})=>`\n border-radius: ${t.spacing[.25]};\n cursor: pointer;\n display: flex;\n gap: ${t.spacing[.5]};\n justify-content: end;\n position: relative;\n z-index: 20;\n\n &:hover {\n background-color: ${t.palette.gray[100]};\n }\n\n &:hover > div {\n display: block;\n }\n `}
435
+ `,mu=new Set;function gu(t,e,n){t||mu.has(e)||mu.add(e)}function yu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const vu=t=>Array.isArray(t);function bu(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function xu(t){return"string"==typeof t||Array.isArray(t)}function wu(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function ku(t,e,n,r){if("function"==typeof e){const[i,o]=wu(r);e=e(void 0!==n?n:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[i,o]=wu(r);e=e(void 0!==n?n:t.custom,i,o)}return e}function Su(t,e,n){const r=t.getProps();return ku(r,e,void 0!==n?n:r.custom,t)}const Cu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_u=["initial",...Cu],$u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Eu=new Set($u),Pu=t=>1e3*t,Tu=t=>t/1e3,Au={type:"spring",stiffness:500,damping:25,restSpeed:10},ju={type:"keyframes",duration:.8},Ou={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Mu=(t,{keyframes:e})=>e.length>2?ju:Eu.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:Au:Ou;function Du(t,e){return t?t[e]||t.default||t:void 0}const Iu=t=>null!==t;function Ru(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Iu),o=e&&"loop"!==n&&e%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}const Fu=t=>t;let Lu=Fu,Nu=Fu;"production"!==process.env.NODE_ENV&&(Lu=(t,e)=>{},Nu=(t,e)=>{if(!t)throw new Error(e)});const zu=["read","resolveKeyframes","update","preRender","render","postRender"];function Vu(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=zu.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(s)}const l={schedule:(t,i=!1,s=!1)=>{const a=s&&r?e:n;return i&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{s=t,r?i=!0:(r=!0,[e,n]=[n,e],n.clear(),e.forEach(a),r=!1,i&&(i=!1,l.process(t)))}};return l}(o),t)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:p,postRender:h}=s,d=()=>{const o=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(d))};return{schedule:zu.reduce(((e,o)=>{const a=s[o];return e[o]=(e,o=!1,s=!1)=>(n||(n=!0,r=!0,i.isProcessing||t(d)),a.schedule(e,o,s)),e}),{}),cancel:t=>{for(let e=0;e<zu.length;e++)s[zu[e]].cancel(t)},state:i,steps:s}}const{schedule:Bu,cancel:Wu,state:qu,steps:Uu}=Vu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Fu,!0),Hu=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function Gu(t,e,n,r){if(t===e&&n===r)return Fu;return i=>0===i||1===i?i:Hu(function(t,e,n,r,i){let o,s,a=0;do{s=e+(n-e)/2,o=Hu(s,r,i)-t,o>0?n=s:e=s}while(Math.abs(o)>1e-7&&++a<12);return s}(i,0,1,t,n),e,r)}const Ku=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Yu=t=>e=>1-t(1-e),Ju=Gu(.33,1.53,.69,.99),Xu=Yu(Ju),Qu=Ku(Xu),Zu=t=>(t*=2)<1?.5*Xu(t):.5*(2-Math.pow(2,-10*(t-1))),tp=t=>1-Math.sin(Math.acos(t)),ep=Yu(tp),np=Ku(tp),rp=t=>/^0[^.\s]+$/u.test(t),ip=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),op=t=>e=>"string"==typeof e&&e.startsWith(t),sp=op("--"),ap=op("var(--"),lp=t=>!!ap(t)&&cp.test(t.split("/*")[0].trim()),cp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,up=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pp(t,e,n=1){Nu(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=function(t){const e=up.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${null!=n?n:r}`,i]}(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const t=o.trim();return ip(t)?parseFloat(t):t}return lp(i)?pp(i,e,n+1):i}const hp=(t,e,n)=>n>e?e:n<t?t:n,dp={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},fp={...dp,transform:t=>hp(0,1,t)},mp={...dp,default:1},gp=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),yp=gp("deg"),vp=gp("%"),bp=gp("px"),xp=gp("vh"),wp=gp("vw"),kp={...vp,parse:t=>vp.parse(t)/100,transform:t=>vp.transform(100*t)},Sp=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Cp=t=>t===dp||t===bp,_p=(t,e)=>parseFloat(t.split(", ")[e]),$p=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return _p(i[1],e);{const e=r.match(/^matrix\((.+)\)$/u);return e?_p(e[1],t):0}},Ep=new Set(["x","y","z"]),Pp=$u.filter((t=>!Ep.has(t))),Tp={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:$p(4,13),y:$p(5,14)};Tp.translateX=Tp.x,Tp.translateY=Tp.y;const Ap=t=>e=>e.test(t),jp=[dp,bp,vp,yp,wp,xp,{test:t=>"auto"===t,parse:t=>t}],Op=t=>jp.find(Ap(t)),Mp=new Set;let Dp=!1,Ip=!1;function Rp(){if(Ip){const t=Array.from(Mp).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return Pp.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((([e,n])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(n)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Ip=!1,Dp=!1,Mp.forEach((t=>t.complete())),Mp.clear()}function Fp(){Mp.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Ip=!0)}))}class Lp{constructor(t,e,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Mp.add(this),Dp||(Dp=!0,Bu.read(Fp),Bu.resolveKeyframes(Rp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:r}=this;for(let i=0;i<t.length;i++)if(null===t[i])if(0===i){const i=null==r?void 0:r.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){const r=n.readValue(e,o);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=o),r&&void 0===i&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Mp.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Mp.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Np=t=>Math.round(1e5*t)/1e5,zp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Vp=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bp=(t,e)=>n=>Boolean("string"==typeof n&&Vp.test(n)&&n.startsWith(t)||e&&!(null==n)&&Object.prototype.hasOwnProperty.call(n,e)),Wp=(t,e,n)=>r=>{if("string"!=typeof r)return r;const[i,o,s,a]=r.match(zp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},qp={...dp,transform:t=>Math.round(hp(0,255,t))},Up={test:Bp("rgb","red"),parse:Wp("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+qp.transform(t)+", "+qp.transform(e)+", "+qp.transform(n)+", "+Np(fp.transform(r))+")"},Hp={test:Bp("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Up.transform},Gp={test:Bp("hsl","hue"),parse:Wp("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+vp.transform(Np(e))+", "+vp.transform(Np(n))+", "+Np(fp.transform(r))+")"},Kp={test:t=>Up.test(t)||Hp.test(t)||Gp.test(t),parse:t=>Up.test(t)?Up.parse(t):Gp.test(t)?Gp.parse(t):Hp.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?Up.transform(t):Gp.transform(t)},Yp=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Jp="number",Xp="color",Qp=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Zp(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=e.replace(Qp,(t=>(Kp.test(t)?(r.color.push(o),i.push(Xp),n.push(Kp.parse(t))):t.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(t)):(r.number.push(o),i.push(Jp),n.push(parseFloat(t))),++o,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:i}}function th(t){return Zp(t).values}function eh(t){const{split:e,types:n}=Zp(t),r=e.length;return t=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],void 0!==t[o]){const e=n[o];i+=e===Jp?Np(t[o]):e===Xp?Kp.transform(t[o]):t[o]}return i}}const nh=t=>"number"==typeof t?0:t,rh={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(zp))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Yp))||void 0===n?void 0:n.length)||0)>0},parse:th,createTransformer:eh,getAnimatableNone:function(t){const e=th(t);return eh(t)(e.map(nh))}},ih=new Set(["brightness","contrast","saturate","opacity"]);function oh(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(zp)||[];if(!r)return t;const i=n.replace(r,"");let o=ih.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const sh=/\b([a-z-]*)\(.*?\)/gu,ah={...rh,getAnimatableNone:t=>{const e=t.match(sh);return e?e.map(oh).join(" "):t}},lh={borderWidth:bp,borderTopWidth:bp,borderRightWidth:bp,borderBottomWidth:bp,borderLeftWidth:bp,borderRadius:bp,radius:bp,borderTopLeftRadius:bp,borderTopRightRadius:bp,borderBottomRightRadius:bp,borderBottomLeftRadius:bp,width:bp,maxWidth:bp,height:bp,maxHeight:bp,top:bp,right:bp,bottom:bp,left:bp,padding:bp,paddingTop:bp,paddingRight:bp,paddingBottom:bp,paddingLeft:bp,margin:bp,marginTop:bp,marginRight:bp,marginBottom:bp,marginLeft:bp,backgroundPositionX:bp,backgroundPositionY:bp},ch={rotate:yp,rotateX:yp,rotateY:yp,rotateZ:yp,scale:mp,scaleX:mp,scaleY:mp,scaleZ:mp,skew:yp,skewX:yp,skewY:yp,distance:bp,translateX:bp,translateY:bp,translateZ:bp,x:bp,y:bp,z:bp,perspective:bp,transformPerspective:bp,opacity:fp,originX:kp,originY:kp,originZ:bp},uh={...dp,transform:Math.round},ph={...lh,...ch,zIndex:uh,size:bp,fillOpacity:fp,strokeOpacity:fp,numOctaves:uh},hh={...ph,color:Kp,backgroundColor:Kp,outlineColor:Kp,fill:Kp,stroke:Kp,borderColor:Kp,borderTopColor:Kp,borderRightColor:Kp,borderBottomColor:Kp,borderLeftColor:Kp,filter:ah,WebkitFilter:ah},dh=t=>hh[t];function fh(t,e){let n=dh(t);return n!==ah&&(n=rh),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const mh=new Set(["auto","none","0"]);class gh extends Lp{constructor(t,e,n,r,i){super(t,e,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let n=t[a];if("string"==typeof n&&(n=n.trim(),lp(n))){const r=pp(n,e.current);void 0!==r&&(t[a]=r),a===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Sp.has(n)||2!==t.length)return;const[r,i]=t,o=Op(r),s=Op(i);if(o!==s)if(Cp(o)&&Cp(s))for(let a=0;a<t.length;a++){const e=t[a];"string"==typeof e&&(t[a]=parseFloat(e))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,n=[];for(let i=0;i<t.length;i++)("number"==typeof(r=t[i])?0===r:null===r||"none"===r||"0"===r||rp(r))&&n.push(i);var r;n.length&&function(t,e,n){let r,i=0;for(;i<t.length&&!r;){const e=t[i];"string"==typeof e&&!mh.has(e)&&Zp(e).values.length&&(r=t[i]),i++}if(r&&n)for(const o of e)t[o]=fh(n,r)}(t,n,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:n}=this;if(!t||!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Tp[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const r=e[e.length-1];void 0!==r&&t.getValue(n,r).jump(r,!1)}measureEndState(){var t;const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,s=r[o];r[o]=Tp[n](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEach((([t,n])=>{e.getValue(t).set(n)})),this.resolveNoneKeyframes()}}function yh(t){return"function"==typeof t}let vh;function bh(){vh=void 0}const xh={now:()=>(void 0===vh&&xh.set(qu.isProcessing?qu.timestamp:performance.now()),vh),set:t=>{vh=t,queueMicrotask(bh)}},wh=(t,e)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!rh.test(t)&&"0"!==t||t.startsWith("url(")));class kh{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=xh.now(),this.options={autoplay:t,delay:e,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Fp(),Rp()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=xh.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,r){const i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],s=wh(i,e),a=wh(o,e);return Lu(s===a,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!s||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||("spring"===n||yh(n))&&r)}(t,n,r,i)){if(!o)return null==a||a(Ru(t,this.options,e)),null==s||s(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(t,e);!1!==c&&(this._resolved={keyframes:t,finalKeyframe:e,...c},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const Sh=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},Ch=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Sh(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function _h(t,e){return e?t*(1e3/e):0}function $h(t,e,n){const r=Math.max(e-5,0);return _h(n-t(r),e-r)}const Eh=.01,Ph=2,Th=.005,Ah=.5;const jh=12;function Oh(t,e){return t*Math.sqrt(1-e*e)}const Mh=2e4;function Dh(t){let e=0,n=t.next(e);for(;!n.done&&e<Mh;)e+=50,n=t.next(e);return e>=Mh?1/0:e}const Ih=["duration","bounce"],Rh=["stiffness","damping","mass"];function Fh(t,e){return e.some((e=>void 0!==t[e]))}function Lh(t=.3,e=.3){const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:p,velocity:h,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!Fh(t,Rh)&&Fh(t,Ih))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*hp(.05,1,1-t.bounce)*Math.sqrt(i);e={...e,mass:1,stiffness:i,damping:o}}else{const n=function({duration:t=800,bounce:e=.3,velocity:n=0,mass:r=1}){let i,o;Lu(t<=Pu(10),"Spring duration must be 10 seconds or less");let s=1-e;s=hp(.05,1,s),t=hp(.01,10,Tu(t)),s<1?(i=e=>{const r=e*s,i=r*t;return.001-(r-n)/Oh(e,s)*Math.exp(-i)},o=e=>{const r=e*s*t,o=r*n+n,a=Math.pow(s,2)*Math.pow(e,2)*t,l=Math.exp(-r),c=Oh(Math.pow(e,2),s);return(.001-i(e)>0?-1:1)*((o-a)*l)/c}):(i=e=>Math.exp(-e*t)*((e-n)*t+1)-.001,o=e=>Math.exp(-e*t)*(t*t*(n-e)));const a=function(t,e,n){let r=n;for(let i=1;i<jh;i++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=Pu(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{const e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...n,velocity:-Tu(n.velocity||0)}),f=h||0,m=c/(2*Math.sqrt(l*u)),g=s-o,y=Tu(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?Eh:Ph),i||(i=v?Th:Ah),m<1){const t=Oh(y,m);b=e=>{const n=Math.exp(-m*y*e);return s-n*((f+m*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}}else if(1===m)b=t=>s-Math.exp(-y*t)*(g+(f+y*g)*t);else{const t=y*Math.sqrt(m*m-1);b=e=>{const n=Math.exp(-m*y*e),r=Math.min(t*e,300);return s-n*((f+m*y*g)*Math.sinh(r)+t*g*Math.cosh(r))/t}}const x={calculatedDuration:d&&p||null,next:t=>{const e=b(t);if(d)a.done=t>=p;else{let n=0;m<1&&(n=0===t?Pu(f):$h(b,t,e));const o=Math.abs(n)<=r,l=Math.abs(s-e)<=i;a.done=o&&l}return a.value=a.done?s:e,a},toString:()=>{const t=Math.min(Dh(x),Mh),e=Ch((e=>x.next(t*e).value),t,30);return t+"ms "+e}};return x}function Nh({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const p=t[0],h={done:!1,value:p},d=t=>void 0===a?l:void 0===l||Math.abs(a-t)<Math.abs(l-t)?a:l;let f=n*e;const m=p+f,g=void 0===s?m:s(m);g!==m&&(f=g-p);const y=t=>-f*Math.exp(-t/r),v=t=>g+y(t),b=t=>{const e=y(t),n=v(t);h.done=Math.abs(e)<=c,h.value=h.done?g:n};let x,w;const k=t=>{var e;e=h.value,(void 0!==a&&e<a||void 0!==l&&e>l)&&(x=t,w=Lh({keyframes:[h.value,d(h.value)],velocity:$h(v,t,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:t=>{let e=!1;return w||void 0!==x||(e=!0,b(t),k(t)),void 0!==x&&t>=x?w.next(t-x):(!e&&b(t),h)}}}const zh=Gu(.42,0,1,1),Vh=Gu(0,0,.58,1),Bh=Gu(.42,0,.58,1),Wh=t=>Array.isArray(t)&&"number"==typeof t[0],qh={linear:Fu,easeIn:zh,easeInOut:Bh,easeOut:Vh,circIn:tp,circInOut:np,circOut:ep,backIn:Xu,backInOut:Qu,backOut:Ju,anticipate:Zu},Uh=t=>{if(Wh(t)){Nu(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Gu(e,n,r,i)}return"string"==typeof t?(Nu(void 0!==qh[t],`Invalid easing type '${t}'`),qh[t]):t},Hh=(t,e)=>n=>e(t(n)),Gh=(...t)=>t.reduce(Hh),Kh=(t,e,n)=>t+(e-t)*n;function Yh(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Jh(t,e){return n=>n>0?e:t}const Xh=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Qh=[Hp,Up,Gp];function Zh(t){const e=(n=t,Qh.find((t=>t.test(n))));var n;if(Lu(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let r=e.parse(t);return e===Gp&&(r=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){const r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=Yh(a,r,t+1/3),o=Yh(a,r,t),s=Yh(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(r)),r}const td=(t,e)=>{const n=Zh(t),r=Zh(e);if(!n||!r)return Jh(t,e);const i={...n};return t=>(i.red=Xh(n.red,r.red,t),i.green=Xh(n.green,r.green,t),i.blue=Xh(n.blue,r.blue,t),i.alpha=Kh(n.alpha,r.alpha,t),Up.transform(i))},ed=new Set(["none","hidden"]);function nd(t,e){return n=>Kh(t,e,n)}function rd(t){return"number"==typeof t?nd:"string"==typeof t?lp(t)?Jh:Kp.test(t)?td:sd:Array.isArray(t)?id:"object"==typeof t?Kp.test(t)?td:od:Jh}function id(t,e){const n=[...t],r=n.length,i=t.map(((t,n)=>rd(t)(t,e[n])));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}}function od(t,e){const n={...t,...e},r={};for(const i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=rd(t[i])(t[i],e[i]));return t=>{for(const e in r)n[e]=r[e](t);return n}}const sd=(t,e)=>{const n=rh.createTransformer(e),r=Zp(t),i=Zp(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ed.has(t)&&!i.values.length||ed.has(e)&&!r.values.length?(o=t,s=e,ed.has(o)?t=>t<=0?o:s:t=>t>=1?s:o):Gh(id(function(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const s=e.types[o],a=t.indexes[s][i[s]],l=null!==(n=t.values[a])&&void 0!==n?n:0;r[o]=l,i[s]++}return r}(r,i),i.values),n):(Lu(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Jh(t,e));var o,s};function ad(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?Kh(t,e,n):rd(t)(t,e)}function ld({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=(l=r,Array.isArray(l)&&"number"!=typeof l[0]?r.map(Uh):Uh(r)),o={done:!1,value:e[0]},s=function(t,e){return t.map((t=>t*e))}(n&&n.length===e.length?n:function(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Sh(0,e,r);t.push(Kh(n,1,i))}}(e,t.length-1),e}(e),t),a=function(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(Nu(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const s=function(t,e,n){const r=[],i=n||ad,o=t.length-1;for(let s=0;s<o;s++){let n=i(t[s],t[s+1]);if(e){const t=Array.isArray(e)?e[s]||Fu:e;n=Gh(t,n)}r.push(n)}return r}(e,r,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);const r=Sh(t[n],t[n+1],e);return s[n](r)};return n?e=>l(hp(t[0],t[o-1],e)):l}(s,e,{ease:Array.isArray(i)?i:(c=e,u=i,c.map((()=>u||Bh)).splice(0,c.length-1))});var l,c,u;return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}const cd=t=>{const e=({timestamp:e})=>t(e);return{start:()=>Bu.update(e,!0),stop:()=>Wu(e),now:()=>qu.isProcessing?qu.timestamp:xh.now()}},ud={decay:Nh,inertia:Nh,tween:ld,keyframes:ld,spring:Lh},pd=t=>t/100;class hd extends kh{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||Lp;this.resolver=new o(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,s=yh(e)?e:ud[e]||ld;let a,l;s!==ld&&"number"!=typeof t[0]&&("production"!==process.env.NODE_ENV&&Nu(2===t.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),a=Gh(pd,ad(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});"mirror"===i&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=Dh(c));const{calculatedDuration:u}=c,p=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:p,totalDuration:p*(n+1)-r}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return i.next(0);const{delay:p,repeat:h,repeatType:d,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=i;if(h){const t=Math.min(this.currentTime,c)/u;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1),Boolean(e%2)&&("reverse"===d?(n=1-n,f&&(n-=f/u)):"mirror"===d&&(b=o)),v=hp(0,1,n)*u}const x=y?{done:!1,value:a[0]}:b.next(v);s&&(x.value=s(x.value));let{done:w}=x;y||null===l||(w=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&void 0!==r&&(x.value=Ru(a,this.options,r)),m&&m(x.value),k&&this.finish(),x}get duration(){const{resolved:t}=this;return t?Tu(t.calculatedDuration):0}get time(){return Tu(this.currentTime)}set time(t){t=Pu(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=Tu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=cd,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const dd=new Set(["opacity","clipPath","filter","transform"]);function fd(t){let e;return()=>(void 0===e&&(e=t()),e)}const md={linearEasing:void 0};const gd=function(t,e){const n=fd(t);return()=>{var t;return null!==(t=md[e])&&void 0!==t?t:n()}}((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(mn){return!1}return!0}),"linearEasing");function yd(t){return Boolean("function"==typeof t&&gd()||!t||"string"==typeof t&&(t in bd||gd())||Wh(t)||Array.isArray(t)&&t.every(yd))}const vd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,bd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vd([0,.65,.55,1]),circOut:vd([.55,0,1,.45]),backIn:vd([.31,.01,.66,-.59]),backOut:vd([.33,1.53,.69,.99])};function xd(t,e){return t?"function"==typeof t&&gd()?Ch(t,e):Wh(t)?vd(t):Array.isArray(t)?t.map((t=>xd(t,e)||bd.easeOut)):bd[t]:void 0}function wd(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){const c={[e]:n};l&&(c.offset=l);const u=xd(a,i);return Array.isArray(u)&&(c.easing=u),t.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}function kd(t,e){t.timeline=e,t.onfinish=null}const Sd=fd((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),Cd={anticipate:Zu,backInOut:Qu,circInOut:np};class _d extends kh{constructor(t){super(t);const{name:e,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new gh(i,((t,e)=>this.onKeyframesResolved(t,e)),e,n,r),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:r=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;var u;if("string"==typeof o&&gd()&&o in Cd&&(o=Cd[o]),yh((u=this.options).type)||"spring"===u.type||!yd(u.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...c}=this.options,u=function(t,e){const n=new hd({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(t,c);1===(t=u.keyframes).length&&(t[1]=t[0]),r=u.duration,i=u.times,o=u.ease,s="keyframes"}const p=wd(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:o});return p.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(kd(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const{onComplete:n}=this.options;a.set(Ru(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:r,times:i,type:s,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return Tu(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return Tu(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=Pu(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return Fu;const{animation:n}=e;kd(n,t)}else this.pendingTimeline=t;return Fu}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:r,type:i,ease:o,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...c}=this.options,u=new hd({...c,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),p=Pu(this.time);t.setWithVelocity(u.sample(p-10).value,u.sample(p).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;return Sd()&&n&&dd.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}}const $d=fd((()=>void 0!==window.ScrollTimeline));class Ed{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=e}attachTimeline(t,e){const n=this.animations.map((n=>$d()&&n.attachTimeline?n.attachTimeline(t):e(n)));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach((e=>e[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Pd=(t,e,n,r={},i,o)=>s=>{const a=Du(r,t)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=Pu(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};(function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(a)||(u={...u,...Mu(t,u)}),u.duration&&(u.duration=Pu(u.duration)),u.repeatDelay&&(u.repeatDelay=Pu(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(p=!0)),p&&!o&&void 0!==e.get()){const t=Ru(u.keyframes,a);if(void 0!==t)return Bu.update((()=>{u.onUpdate(t),u.onComplete()})),new Ed([])}return!o&&_d.supports(u)?new _d(u):new hd(u)},Td=t=>vu(t)?t[t.length-1]||0:t;class Ad{constructor(){this.subscriptions=[]}add(t){var e,n;return e=this.subscriptions,n=t,-1===e.indexOf(n)&&e.push(n),()=>function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(t,e,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class jd{constructor(t,e={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{const n=xh.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){var e;this.current=t,this.updatedAt=xh.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return"production"!==process.env.NODE_ENV&&gu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new Ad);const n=this.events[t].add(e);return"change"===t?()=>{n(),Bu.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=xh.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return _h(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Od(t,e){return new jd(t,e)}function Md(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Od(n))}const Dd=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Id="data-"+Dd("framerAppearId");function Rd(t){return t.props[Id]}const Fd=t=>Boolean(t&&t.getVelocity);function Ld(t,e){const n=t.getValue("willChange");if(r=n,Boolean(Fd(r)&&r.add))return n.add(e);var r}function Nd({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}function zd(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;r&&(s=r);const c=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const p in l){const e=t.getValue(p,null!==(o=t.latestValues[p])&&void 0!==o?o:null),r=l[p];if(void 0===r||u&&Nd(u,p))continue;const i={delay:n,...Du(s||{},p)};let a=!1;if(window.MotionHandoffAnimation){const e=Rd(t);if(e){const t=window.MotionHandoffAnimation(e,p,Bu);null!==t&&(i.startTime=t,a=!0)}}Ld(t,p),e.start(Pd(p,e,r,t.shouldReduceMotion&&Eu.has(p)?{type:!1}:i,t,a));const h=e.animation;h&&c.push(h)}return a&&Promise.all(c).then((()=>{Bu.update((()=>{a&&function(t,e){const n=Su(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o)Md(t,s,Td(o[s]))}(t,a)}))})),c}function Vd(t,e,n={}){var r;const i=Su(t,e,"exit"===n.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(zd(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,r=0,i=1,o){const s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(Bd).forEach(((t,r)=>{t.notify("AnimationStart",e),s.push(Vd(t,e,{...o,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,i+r,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then((()=>e()))}return Promise.all([s(),a(n.delay)])}function Bd(t,e){return t.sortNodePosition(e)}const Wd=_u.length;function qd(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&qd(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;n<Wd;n++){const r=_u[n],i=t.props[r];(xu(i)||!1===i)&&(e[r]=i)}return e}const Ud=[...Cu].reverse(),Hd=Cu.length;function Gd(t){let e=function(t){return e=>Promise.all(e.map((({animation:e,options:n})=>function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e)){const i=e.map((e=>Vd(t,e,n)));r=Promise.all(i)}else if("string"==typeof e)r=Vd(t,e,n);else{const i="function"==typeof e?Su(t,e,n.custom):e;r=Promise.all(zd(t,i,n))}return r.then((()=>{t.notify("AnimationComplete",e)}))}(t,e,n))))}(t),n=Jd(),r=!0;const i=e=>(n,r)=>{var i;const o=Su(t,r,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:t,transitionEnd:e,...r}=o;n={...n,...r,...e}}return n};function o(o){const{props:s}=t,a=qd(t.parent)||{},l=[],c=new Set;let u={},p=1/0;for(let e=0;e<Hd;e++){const h=Ud[e],d=n[h],f=void 0!==s[h]?s[h]:a[h],m=xu(f),g=h===o?d.isActive:null;!1===g&&(p=e);let y=f===a[h]&&f!==s[h]&&m;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),d.protectedKeys={...u},!d.isActive&&null===g||!f&&!d.prevProp||yu(f)||"boolean"==typeof f)continue;const v=Kd(d.prevProp,f);let b=v||h===o&&d.isActive&&!y&&m||e>p&&m,x=!1;const w=Array.isArray(f)?f:[f];let k=w.reduce(i(h),{});!1===g&&(k={});const{prevResolvedValues:S={}}=d,C={...S,...k},_=e=>{b=!0,c.has(e)&&(x=!0,c.delete(e)),d.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in C){const e=k[t],n=S[t];if(u.hasOwnProperty(t))continue;let r=!1;r=vu(e)&&vu(n)?!bu(e,n):e!==n,r?null!=e?_(t):c.add(t):void 0!==e&&c.has(t)?_(t):d.protectedKeys[t]=!0}d.prevProp=f,d.prevResolvedValues=k,d.isActive&&(u={...u,...k}),r&&t.blockInitialAnimation&&(b=!1),b&&(!y||!v||x)&&l.push(...w.map((t=>({animation:t,options:{type:h}}))))}if(c.size){const e={};c.forEach((n=>{const r=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!=r?r:null})),l.push({animation:e})}let h=Boolean(l.length);return!r||!1!==s.initial&&s.initial!==s.animate||t.manuallyAnimateOnMount||(h=!1),r=!1,h?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const s=o(e);for(const t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=Jd(),r=!0}}}function Kd(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!bu(e,t)}function Yd(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jd(){return{animate:Yd(!0),whileInView:Yd(),whileHover:Yd(),whileTap:Yd(),whileDrag:Yd(),whileFocus:Yd(),exit:Yd()}}class Xd{constructor(t){this.isMounted=!1,this.node=t}update(){}}let Qd=0;const Zd={animation:{Feature:class extends Xd{constructor(t){super(t),t.animationState||(t.animationState=Gd(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends Xd{constructor(){super(...arguments),this.id=Qd++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function tf(t){return{point:{x:t.pageX,y:t.pageY}}}function ef(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function nf(t,e,n,r){return ef(t,e,(t=>e=>{return("mouse"===(n=e).pointerType?"number"!=typeof n.button||n.button<=0:!1!==n.isPrimary)&&t(e,tf(e));var n})(n),r)}function rf(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}const of=()=>({x:{min:0,max:0},y:{min:0,max:0}}),sf=e.createContext(null),af=e.createContext({}),lf=e.createContext({}),cf={},{schedule:uf,cancel:pf}=Vu(queueMicrotask,!1);function hf(t){const e=Fd(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}function df(t){return e=>{"touch"===e.pointerType||t(e)}}function ff(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n);const i=r[n?"onHoverStart":"onHoverEnd"];i&&Bu.postRender((()=>i(e,tf(e))))}const mf=(t,e)=>!!e&&(t===e||mf(t,e.parentElement));function gf(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,tf(n))}const yf=new WeakMap,vf=new WeakMap,bf=t=>{const e=yf.get(t.target);e&&e(t)},xf=t=>{t.forEach(bf)};const wf={some:0,all:1},kf={inView:{Feature:class extends Xd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:wf[r]};return function(t,e,n){const r=function({root:t,...e}){const n=t||document;vf.has(n)||vf.set(n,{});const r=vf.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(xf,{root:t,...e})),r[i]}(e);return yf.set(t,n),r.observe(t),()=>{yf.delete(t),r.unobserve(t)}}(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,i&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Xd{constructor(){super(...arguments),this.removeStartListeners=Fu,this.removeEndListeners=Fu,this.removeAccessibleListeners=Fu,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=nf(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps(),o=i||mf(this.node.current,t.target)?n:r;o&&Bu.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),i=nf(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Gh(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=ef(this.node.current,"keydown",(t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=ef(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&gf("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&Bu.postRender((()=>n(t,e)))}))})),gf("down",((t,e)=>{this.startPress(t,e)})))})),e=ef(this.node.current,"blur",(()=>{this.isPressing&&gf("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=Gh(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Bu.postRender((()=>n(t,e)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!0}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Bu.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=nf(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=ef(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Gh(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Xd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(gn){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gh(ef(this.node.current,"focus",(()=>this.onFocus())),ef(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Xd{mount(){const{current:t,props:e}=this.node;t&&(this.unmount=function(t,e,n={}){const r=new AbortController,i={passive:!0,...n,signal:r.signal},o=df((t=>{const{target:n}=t,r=e(t);if(!r||!n)return;const o=df((t=>{r(t),n.removeEventListener("pointerleave",o)}));n.addEventListener("pointerleave",o,i)}));return function(t){if(t instanceof Element)return[t];if("string"==typeof t){const e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t).forEach((t=>{t.addEventListener("pointerenter",o,i)})),()=>r.abort()}(t,(t=>(ff(this.node,t,!0),t=>ff(this.node,t,!1))),{passive:!e.onHoverStart&&!e.onHoverEnd}))}unmount(){}}}},Sf=e.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Cf=e.createContext({}),_f="undefined"!=typeof window,$f=_f?e.useLayoutEffect:e.useEffect,Ef=e.createContext({strict:!1});function Pf(t,n,r,i,o){var s,a;const{visualElement:l}=e.useContext(Cf),c=e.useContext(Ef),u=e.useContext(sf),p=e.useContext(Sf).reducedMotion,h=e.useRef();i=i||c.renderer,!h.current&&i&&(h.current=i(t,{visualState:n,parent:l,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:p}));const d=h.current,f=e.useContext(lf);!d||d.projection||!o||"html"!==d.type&&"svg"!==d.type||function(t,e,n,r){const{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Tf(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(s)||a&&rf(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(h.current,r,o,f);const m=e.useRef(!1);e.useInsertionEffect((()=>{d&&m.current&&d.update(r,u)}));const g=r[Id],y=e.useRef(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return $f((()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),uf.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())})),e.useEffect((()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,g)})),y.current=!1))})),d}function Tf(t){if(t)return!1!==t.options.allowProjection?t.projection:Tf(t.parent)}function Af(t,n,r){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):rf(r)&&(r.current=e))}),[n])}function jf(t){return yu(t.animate)||_u.some((e=>xu(t[e])))}function Of(t){return Boolean(jf(t)||t.variants)}function Mf(t){return Array.isArray(t)?t.join(" "):t}const Df={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},If={};for(const hx in Df)If[hx]={isEnabled:t=>Df[hx].some((e=>!!t[e]))};function Rf(t){for(const e in t)If[e]={...If[e],...t[e]}}const Ff=Symbol.for("motionComponentSymbol");function Lf({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:i,Component:o}){t&&Rf(t);const s=e.forwardRef((function(s,a){let l;const c={...e.useContext(Sf),...s,layoutId:Nf(s)},{isStatic:u}=c,p=function(t){const{initial:n,animate:r}=function(t,e){if(jf(t)){const{initial:e,animate:n}=t;return{initial:!1===e||xu(e)?e:void 0,animate:xu(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,e.useContext(Cf));return e.useMemo((()=>({initial:n,animate:r})),[Mf(n),Mf(r)])}(s),h=i(s,u);if(!u&&_f){!function(t,n){const r=e.useContext(Ef).strict;if("production"!==process.env.NODE_ENV&&n&&r){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Lu(!1,e):Nu(!1,e)}}(c,t);const r=function(t){const{drag:e,layout:n}=If;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(c);l=r.MeasureLayout,p.visualElement=Pf(o,h,c,n,r.ProjectionNode)}return y.jsxs(Cf.Provider,{value:p,children:[l&&p.visualElement?y.jsx(l,{visualElement:p.visualElement,...c}):null,r(o,s,Af(h,p.visualElement,a),h,u,p.visualElement)]})}));return s[Ff]=o,s}function Nf({layoutId:t}){const n=e.useContext(af).id;return n&&void 0!==t?n+"-"+t:t}const zf=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Vf(t){return"string"==typeof t&&!t.includes("-")&&!!(zf.indexOf(t)>-1||/[A-Z]/u.test(t))}function Bf(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Wf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function qf(t,e,n,r){Bf(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Wf.has(i)?i:Dd(i),e.attrs[i])}function Uf(t,{layout:e,layoutId:n}){return Eu.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!cf[t]||"opacity"===t)}function Hf(t,e,n){var r;const{style:i}=t,o={};for(const s in i)(Fd(i[s])||e.style&&Fd(e.style[s])||Uf(s,t)||void 0!==(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle))&&(o[s]=i[s]);return o}function Gf(t,e,n){const r=Hf(t,e,n);for(const i in t)(Fd(t[i])||Fd(e[i]))&&(r[-1!==$u.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}const Kf=t=>(n,r)=>{const i=e.useContext(Cf),o=e.useContext(sf),s=()=>function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const s={latestValues:Yf(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s}(t,n,i,o);return r?s():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(s)};function Yf(t,e,n,r){const i={},o=r(t,{});for(const h in o)i[h]=hf(o[h]);let{initial:s,animate:a}=t;const l=jf(t),c=Of(t);e&&c&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const p=u?a:s;if(p&&"boolean"!=typeof p&&!yu(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n<e.length;n++){const r=ku(t,e[n]);if(r){const{transitionEnd:t,transition:e,...n}=r;for(const r in n){let t=n[r];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(i[r]=t)}for(const r in t)i[r]=t[r]}}}return i}const Jf=(t,e)=>e&&"number"==typeof t?e.transform(t):t,Xf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Qf=$u.length;function Zf(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let s=!1,a=!1;for(const l in e){const t=e[l];if(Eu.has(l))s=!0;else if(sp(l))i[l]=t;else{const e=Jf(t,ph[l]);l.startsWith("origin")?(a=!0,o[l]=e):r[l]=e}}if(e.transform||(s||n?r.transform=function(t,e,n){let r="",i=!0;for(let o=0;o<Qf;o++){const s=$u[o],a=t[s];if(void 0===a)continue;let l=!0;if(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const t=Jf(a,ph[s]);l||(i=!1,r+=`${Xf[s]||s}(${t}) `),n&&(e[s]=t)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:t="50%",originY:e="50%",originZ:n=0}=o;r.transformOrigin=`${t} ${e} ${n}`}}function tm(t,e,n){return"string"==typeof t?t:bp.transform(e+n*t)}const em={offset:"stroke-dashoffset",array:"stroke-dasharray"},nm={offset:"strokeDashoffset",array:"strokeDasharray"};function rm(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,p){if(Zf(t,c,p),u)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:h,style:d,dimensions:f}=t;var m,g;h.transform&&(f&&(d.transform=h.transform),delete h.transform),f&&(void 0!==i||void 0!==o||d.transform)&&(d.transformOrigin=(g=void 0!==o?o:.5,`${tm(void 0!==i?i:.5,(m=f).x,m.width)} ${tm(g,m.y,m.height)}`)),void 0!==e&&(h.x=e),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?em:nm;t[o.offset]=bp.transform(-r);const s=bp.transform(e),a=bp.transform(n);t[o.array]=`${s} ${a}`}(h,s,a,l,!1)}const im=t=>"string"==typeof t&&"svg"===t.toLowerCase(),om={useVisualState:Kf({scrapeMotionValuesFromProps:Gf,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(t,e,{renderState:n,latestValues:r})=>{Bu.read((()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}})),Bu.render((()=>{rm(n,r,im(e.tagName),t.transformTemplate),qf(e,n)}))}})},sm={useVisualState:Kf({scrapeMotionValuesFromProps:Hf,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function am(t,e,n){for(const r in e)Fd(e[r])||Uf(r,n)||(t[r]=e[r])}function lm(t,n){const r={},i=function(t,n){const r={};return am(r,t.style||{},t),Object.assign(r,function({transformTemplate:t},n){return e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return Zf(e,n,t),Object.assign({},e.vars,e.style)}),[n])}(t,n)),r}(t,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const cm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function um(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||cm.has(t)}let pm=t=>!um(t);try{(hm=require("@emotion/is-prop-valid").default)&&(pm=t=>t.startsWith("on")?!um(t):hm(t))}catch(mn){}var hm;function dm(t,n,r,i){const o=e.useMemo((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return rm(e,n,im(i),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};am(e,t.style,t),o.style={...e,...o.style}}return o}function fm(t=!1){return(n,r,i,{latestValues:o},s)=>{const a=(Vf(n)?dm:lm)(r,o,s,n),l=function(t,e,n){const r={};for(const i in t)"values"===i&&"object"==typeof t.values||(pm(i)||!0===n&&um(i)||!e&&!um(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(r,"string"==typeof n,t),c=n!==e.Fragment?{...l,...a,ref:i}:{},{children:u}=r,p=e.useMemo((()=>Fd(u)?u.get():u),[u]);return e.createElement(n,{...c,children:p})}}const mm={current:null},gm={current:!1},ym=new WeakMap,vm=[...jp,Kp,rh],bm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xm{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Lp,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const t=xh.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,Bu.render(this.render,!1,!0))};const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=jf(e),this.isVariantNode=Of(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(e,{},this);for(const p in u){const t=u[p];void 0!==a[p]&&Fd(t)&&t.set(a[p],!1)}}mount(t){this.current=t,ym.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((t,e)=>this.bindToMotionValue(e,t))),gm.current||function(){if(gm.current=!0,_f)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>mm.current=t.matches;t.addListener(e),e()}else mm.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||mm.current),"production"!==process.env.NODE_ENV&&gu(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ym.delete(this.current),this.projection&&this.projection.unmount(),Wu(this.notifyUpdate),Wu(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Eu.has(t),r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&Bu.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{r(),i(),o&&o(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in If){const e=If[t];if(!e)continue;const{isEnabled:n,Feature:r}=e;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;n<bm.length;n++){const e=bm[n];this.propEventSubscriptions[e]&&(this.propEventSubscriptions[e](),delete this.propEventSubscriptions[e]);const r=t["on"+e];r&&(this.propEventSubscriptions[e]=this.on(e,r))}this.prevMotionValues=function(t,e,n){for(const r in e){const i=e[r],o=n[r];if(Fd(i))t.addValue(r,i),"development"===process.env.NODE_ENV&&gu("11.13.1"===i.version,`Attempting to mix Motion versions ${i.version} with 11.13.1 may not work as expected.`);else if(Fd(o))t.addValue(r,Od(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const e=t.getValue(r);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{const e=t.getStaticValue(r);t.addValue(r,Od(void 0!==e?e:i,{owner:t}))}}for(const r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=Od(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let r=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(ip(r)||rp(r))?r=parseFloat(r):(i=r,!vm.find(Ap(i))&&rh.test(e)&&(r=fh(t,e))),this.setBaseTarget(t,Fd(r)?r.get():r)),Fd(r)?r.get():r;var i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=ku(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(r=i[t])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,t);return void 0===i||Fd(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new Ad),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class wm extends xm{constructor(){super(...arguments),this.KeyframeResolver=gh}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Fd(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}class km extends wm{constructor(){super(...arguments),this.type="html",this.renderInstance=Bf}readValueFromInstance(t,e){if(Eu.has(e)){const t=dh(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),i=(sp(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(t,{transformPagePoint:e}){return n=e,function({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),n));var n}build(t,e,n){Zf(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Hf(t,e,n)}}class Sm extends wm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=of}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(Eu.has(e)){const t=dh(e);return t&&t.default||0}return e=Wf.has(e)?e:Dd(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return Gf(t,e,n)}build(t,e,n){rm(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,r){qf(t,e,0,r)}mount(t){this.isSVGTag=im(t.tagName),super.mount(t)}}const Cm=function(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy(((...e)=>("production"!==process.env.NODE_ENV&&gu(!1,"motion() is deprecated. Use motion.create() instead."),t(...e))),{get:(n,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}(function(t,e){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return Lf({...Vf(n)?om:sm,preloadedFeatures:t,useRender:fm(r),createVisualElement:e,Component:n})}}());function _m({children:t,features:n,strict:r=!1}){const[,i]=e.useState(!$m(n)),o=e.useRef(void 0);if(!$m(n)){const{renderer:t,...e}=n;o.current=t,Rf(e)}return e.useEffect((()=>{$m(n)&&n().then((({renderer:t,...e})=>{Rf(e),o.current=t,i(!0)}))}),[]),y.jsx(Ef.Provider,{value:{renderer:o.current,strict:r},children:t})}function $m(t){return"function"==typeof t}const Em={renderer:(t,n)=>Vf(t)?new Sm(n):new km(n,{allowProjection:t!==e.Fragment}),...Zd,...kf},Pm=({customBadge:e,description:n,icon:r,onClick:i,requiresUpgrade:o=!1,title:s})=>{const a=t.useTheme();return y.jsxs(M,{bgColor:a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:i,px:1.25,py:1,width:"100%",children:[y.jsx(M,{alignItems:"center",bgColor:a.palette.gray[300],borderRadius:a.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:y.jsx(V,{icon:r,iconColor:a.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),y.jsxs(M,{children:[y.jsxs(M,{alignItems:"center",display:"inline-flex",gap:.5,children:[y.jsx(F,{color:a.palette.gray[800],size:"sm",children:s}),o?y.jsx(yc,{text:"Upgrade"}):void 0,e]}),y.jsx(F,{color:a.palette.gray[400],size:"xs",children:n})]})]})},Tm=t.styled(Cm.div)`
436
+ ${({theme:t})=>`\n background-color: ${t.palette.white};\n box-shadow: ${t.shadows.lg};\n max-width: 350px;\n min-width: 350px;\n height: 100%;\n position: absolute;\n right: 0;\n top: 0;\n overflow: hidden auto;\n scrollbar-color: ${t.palette.gray[600]} ${t.palette.gray[100]};\n scroll-padding: ${t.spacing[.5]};\n scrollbar-width: thin;\n z-index: 99999;\n\n > div {\n border: 1px solid ${t.palette.gray[100]};\n width: auto;\n min-height: 100vh;\n height: auto;\n }\n `}
437
+ `,{getVariant:Am}=l((t=>({completed:`\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n\n &::after {\n background-color: ${t.palette.primary[500]};\n }\n `,current:`\n background-color: ${t.palette.primary[500]};\n color: ${t.palette.white};\n\n &::after {\n background-color: ${t.palette.gray[200]};\n }\n `,disabled:`\n background-color: ${t.palette.gray[200]};\n outline: 1px solid ${t.palette.gray[400]};\n outline-offset: -1px;\n color: ${t.palette.gray[400]};\n\n &::after {\n background-color: ${t.palette.gray[200]};\n }\n `}))),jm=t.styled.div`
438
+ ${({theme:t})=>`\n align-items: stretch;\n background-color: ${t.palette.white};\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: ${t.spacing[1]} ${t.spacing[1]};\n scroll-behavior: unset;\n `}
439
+ `,Om=t.styled.div`
440
+ display: flex;
441
+ flex-direction: row;
442
+ margin-bottom: ${({theme:t})=>t.spacing[2]};
443
+
444
+ &:last-child > div:first-child > span::after {
445
+ display: none;
446
+ }
447
+ `,Mm=t.styled.div`
448
+ ${({theme:t})=>`\n display: inline-flex;\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n line-height: ${t.spacing[1.25]};\n margin-top: ${t.spacing[1]};\n\n & > button:first-child {\n margin-right: ${t.spacing[.5]};\n }\n `}
449
+ `,Dm=t.styled.span`
450
+ ${({theme:t,$variant:e})=>`\n border-radius: 6px;\n display: inline-block;\n text-align: center;\n font-size: ${t.typography.text.sm};\n font-weight: ${t.typography.weight.bold};\n font-family: ${t.typography.type.primary};\n line-height: ${t.spacing[1]};\n padding: ${t.spacing[.5]} ${t.spacing[.5]};\n height: ${t.spacing[2]};\n width: ${t.spacing[2]};\n\n &::after {\n content: "";\n position: absolute;\n top: calc(32px + ${t.spacing[.5]});\n left: 50%;\n bottom: 0;\n width: 2px;\n height: calc(100% - ${t.spacing[1]});\n }\n\n ${Am(t,e)}\n `}
451
+ `,Im=t.styled.button`
384
452
  ${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[100]};\n border-radius: ${t.spacing[.25]};\n color: ${t.palette.gray[800]};\n cursor: pointer;\n display: flex;\n font-size: ${t.typography.text.sm};\n gap: ${t.spacing[.25]};\n height: 21px;\n width: 21px;\n justify-content: center;\n padding: 6px;\n transition: all 0.25s ease;\n\n &[aria-label] {\n height: auto;\n width: auto;\n }\n\n &.success {\n border-color: ${t.palette.success[500]};\n color: ${t.palette.success[500]};\n\n &:hover {\n background-color: ${t.palette.success[200]};\n }\n }\n\n &:disabled {\n cursor: not-allowed;\n background: ${t.palette.gray[200]};\n border-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[300]};\n }\n\n &:hover:not(.success) {\n background-color: ${t.palette.gray[100]};\n }\n `}
385
- `,yc={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},vc=t.styled.button`
453
+ `,Rm={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Fm=t.styled.button`
386
454
  ${({theme:t})=>`\n align-items: center;\n color: ${t.palette.gray[500]};\n display: flex;\n gap: ${t.spacing[.625]};\n justify-content: center;\n padding: ${t.spacing[.75]};\n text-align: center;\n width: 151px;\n\n &.active {\n color: ${t.palette.gray[800]};\n border-bottom: 3px solid ${t.palette.primary[400]};\n }\n\n &:hover {\n color: ${t.palette.gray[800]};\n }\n `}
387
- `,bc=t.styled.div`
455
+ `,Lm=t.styled.div`
388
456
  ${({theme:t})=>`\n align-items: center;\n border-bottom: 2px solid ${t.palette.gray[200]};\n display: flex;\n gap: ${t.spacing[3]};\n height: ${t.spacing[3]};\n width: max-content;\n `}
389
- `,xc=t.styled(r.NavLink)`
457
+ `,Nm=t.styled(i.NavLink)`
390
458
  ${({theme:t})=>`\n align-items: center;\n background: transparent;\n cursor: pointer;\n color: ${t.palette.gray[800]};\n font-family: ${t.typography.type.primary};\n font-size: ${t.typography.text.sm};\n display: flex;\n font-weight: ${t.typography.weight.regular};\n padding: ${t.spacing[.625]} ${t.spacing[.5]};\n position: relative;\n text-align: center;\n text-decoration: unset;\n\n &:disabled {\n cursor: not-allowed;\n background-color: ${t.palette.gray[300]};\n color: ${t.palette.gray[300]};\n }\n\n &:hover:not([disabled]) {\n background-color: ${t.palette.gray[100]};\n color: ${t.palette.gray[800]};\n }\n\n &.active {\n background-color: transparent;\n border-bottom: solid 4px ${t.palette.primary[500]};\n padding-bottom: calc(${t.spacing[.625]} - 4px);\n\n &:hover {\n background-color: transparent;\n border-bottom: solid 4px ${t.palette.primary[500]};\n }\n }\n `}
391
- `,wc=({label:t,id:e,isActive:n=!1,link:i,notificationSign:r,onClick:s,tooltip:o=""})=>y.jsx(Ti,{display:"flex",id:`${e}-tooltip`,tip:o,children:y.jsxs(xc,{className:n?"active":"",id:e,onClick:s,to:i,children:[t,y.jsx(Xl,{left:null==r?void 0:r.left,numberIndicator:null==r?void 0:r.numberIndicator,show:null==r?void 0:r.show,top:null==r?void 0:r.top,variant:null==r?void 0:r.variant})]})}),{getVariant:kc}=l((t=>({default:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.25]};\n\n background-color: ${t.palette.gray[200]};\n color: ${t.palette.gray[800]};\n `,error:`\n background-color: ${t.palette.error[50]};\n color: ${t.palette.error[700]};\n `,inactive:`\n background-color: ${t.palette.gray[200]};\n color: theme.palette.gray[400];\n `,new:`\n background-color: ${t.palette.primary[300]};\n color: ${t.palette.primary[25]};\n `,reachable:`\n background-color: ${t.palette.gray[50]};\n color: ${t.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${t.palette.gray[300]};\n color: ${t.palette.gray[400]};\n `,review:`\n background-color: ${t.palette.warning[400]};\n color: ${t.palette.warning[700]};\n `,role:`\n background-color: ${t.palette.gray[800]};\n color: ${t.palette.white};\n `,success:`\n background-color: ${t.palette.success[50]};\n color: ${t.palette.success[700]};\n `,technique:`\n --tag-padding-y: ${t.spacing[.25]};\n --tag-padding-x: ${t.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${t.palette.success[800]};\n color: ${t.palette.success[800]};\n `,warning:`\n background-color: ${t.palette.warning[50]};\n color: ${t.palette.warning[700]};\n `}))),_c=t.styled.span`
392
- ${({theme:t,$fontSize:e=t.typography.text.xs,$variant:n})=>`\n align-items: center;\n border-radius: ${t.spacing["technique"===n?1:.25]};\n display: inline-flex;\n gap: ${t.spacing[.25]};\n font-family: ${t.typography.type.primary};\n font-size: ${e};\n font-style: normal;\n font-weight: ${t.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n margin-right: ${t.spacing[.5]};\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n > a {\n font-size: ${t.typography.text.xs};\n }\n\n ${kc(t,n)}\n `}
393
- `,Sc=t.styled.div`
459
+ `,zm=({label:t,id:e,isActive:n=!1,link:r,notificationSign:i,onClick:o,tooltip:s=""})=>y.jsx(Tr,{display:"flex",id:`${e}-tooltip`,tip:s,children:y.jsxs(Nm,{className:n?"active":"",id:e,onClick:o,to:r,children:[t,y.jsx(hc,{left:null==i?void 0:i.left,numberIndicator:null==i?void 0:i.numberIndicator,show:null==i?void 0:i.show,top:null==i?void 0:i.top,variant:null==i?void 0:i.variant})]})}),Vm=t.styled.div`
460
+ ${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.white};\n border: 1px solid ${t.palette.gray[200]};\n border-radius: ${t.spacing[.25]};\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[.5]};\n min-height: 180px;\n padding: ${t.spacing[1.5]};\n width: 510px;\n\n p {\n font-style: normal;\n line-height: ${t.spacing[1.25]};\n }\n\n &:hover {\n border: 1px solid ${t.palette.gray[600]};\n }\n `}
461
+ `,Bm=t.styled.div`
462
+ ${({theme:t})=>`\n display: flex;\n flex-direction: column;\n gap: ${t.spacing[1.5]};\n position: relative;\n max-width: 1268px;\n\n &::before {\n background-color: ${t.palette.gray[200]};\n border-radius: 5px;\n height: 100%;\n width: 4px;\n transform: translate(-50%, 0);\n }\n\n > * {\n &:nth-child(even) {\n align-self: end;\n }\n\n &:nth-child(odd) {\n align-self: start;\n }\n\n &::before {\n position: absolute;\n background-color: ${t.palette.primary[500]};\n border-radius: 50%;\n height: 14px;\n width: 14px;\n z-index: 1;\n }\n }\n\n &::before,\n > *::before {\n content: "";\n left: 50%;\n position: absolute;\n transform: translateX(-50%);\n }\n\n @media (width <= 1270px) {\n max-width: 540px;\n\n p {\n text-align: center;\n }\n\n &::before,\n > *::before {\n left: 8px;\n }\n\n > * {\n &:nth-child(odd) {\n align-self: end;\n }\n }\n\n @media (width <= 630px) {\n display: block;\n\n .timeline-card {\n width: auto;\n margin-left: 30px;\n }\n }\n }\n `}
463
+ `,Wm=({date:e,description:n,title:r})=>{const i=t.useTheme();return y.jsxs(Vm,{className:"timeline-card",children:[y.jsx(F,{color:i.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),y.jsx(F,{color:i.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:r}),y.jsx("div",{children:n.map(((t,e)=>{const n=`${t}#${e}`;return y.jsx(F,{size:"sm",textAlign:"center",wordBreak:"break-word",children:t},n)}))})]})},qm=t.styled.div`
394
464
  ${({theme:t})=>`\n align-items: center;\n background-color: ${t.palette.gray[200]};\n border-radius: 34px;\n cursor: pointer;\n display: flex;\n height: 20px;\n position: relative;\n transition: 0.2s;\n width: 36px;\n `}
395
- `,$c=t.styled.div`
465
+ `,Um=t.styled.div`
396
466
  ${({theme:t})=>`\n background-color: ${t.palette.white};\n border-radius: 50%;\n height: ${t.spacing[1]};\n left: 2px;\n position: absolute;\n transition: 0.2s;\n width: ${t.spacing[1]};\n z-index: 1;\n `}
397
- `,Cc=t.styled.label`
467
+ `,Hm=t.styled.label`
398
468
  display: inline-block;
399
469
 
400
470
  input {
@@ -404,25 +474,63 @@ i.goToAndStop(r-i.firstFrame-1,!0)}"loop"===n.type&&(null===t||t!==n.frames||i.i
404
474
  width: 0;
405
475
  }
406
476
 
407
- input:checked + ${Sc} {
477
+ input:checked + ${qm} {
408
478
  background-color: ${({theme:t})=>t.palette.primary[500]};
409
479
  }
410
480
 
411
- input:checked + ${Sc} > div {
481
+ input:checked + ${qm} > div {
412
482
  transform: translateX(100%);
413
483
  }
414
484
 
415
- input:disabled + ${Sc} {
485
+ input:disabled + ${qm} {
416
486
  cursor: not-allowed;
417
487
  background-color: ${({theme:t})=>t.palette.gray[100]};
418
488
  }
419
489
 
420
- input:disabled + ${Sc} > div {
490
+ input:disabled + ${qm} > div {
421
491
  background-color: ${({theme:t})=>t.palette.gray[200]};
422
492
  border: 1px solid ${({theme:t})=>t.palette.gray[200]};
423
493
  }
424
- `,Ac=e.forwardRef((function({defaultChecked:t,disabled:n=!1,justify:i,name:r,leftDescription:s,rightDescription:o,...a},l){const c=!0===t?"on":"off",h="object"==typeof s&&s.on&&s.off?s[c]:s,u=e.useCallback((t=>{t.stopPropagation()}),[]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:.75,justify:i,children:[h,y.jsxs(Cc,{onClick:u,children:[y.jsx("input",{...a,"aria-disabled":n,"aria-label":r,checked:!0===t,disabled:n,name:r,ref:l,type:"checkbox"}),y.jsx(Sc,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:y.jsx($c,{})})]}),o]})})),Pc=t.styled.div`
494
+ `,Gm=e.forwardRef((function({defaultChecked:t,disabled:n=!1,justify:r,name:i,leftDescription:o,rightDescription:s,...a},l){const c=!0===t?"on":"off",u="object"==typeof o&&o.on&&o.off?o[c]:o,p=e.useCallback((t=>{t.stopPropagation()}),[]);return y.jsxs(M,{alignItems:"center",display:"flex",gap:.75,justify:r,children:[u,y.jsxs(Hm,{onClick:p,children:[y.jsx("input",{...a,"aria-disabled":n,"aria-label":i,checked:!0===t,disabled:n,name:i,ref:l,type:"checkbox"}),y.jsx(qm,{"aria-label":"Toggle Switch",id:`${i}Toggle`,children:y.jsx(Um,{})})]}),s]})})),Km=t.styled.div`
425
495
  ${({theme:t})=>`\n align-items: center;\n display: flex;\n position: relative;\n width: 352px;\n\n > button:first-child {\n border-radius: ${t.spacing[2]} 0 0 ${t.spacing[2]};\n }\n > button:last-child {\n --angle-grad: -45deg;\n border-radius: 0 ${t.spacing[2]} ${t.spacing[2]} 0;\n }\n\n &::before {\n background: ${t.palette.gradients["01"]} border-box;\n border-radius: ${t.spacing[2]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${t.breakpoints.mobile}) {\n width: 320px;\n }\n `}
426
- `,Tc=t.styled.button`
496
+ `,Ym=t.styled.button`
427
497
  ${({theme:t})=>`\n align-items: center;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${t.palette.primary[500]};\n cursor: pointer;\n display: flex;\n flex: 1 0 0;\n justify-content: center;\n gap: ${t.spacing[.625]};\n height: ${t.spacing[4]};\n padding: ${t.spacing[1.25]};\n position: relative;\n transition: color, --opacity-grad 0.5s ease-in-out;\n\n &.selected {\n --opacity-grad: 1;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${t.palette.white};\n }\n `}
428
- `;exports.Accordion=q,exports.Alert=ji,exports.BaseButtonComponent=T,exports.BaseComponent=P,exports.BaseSpanComponent=j,exports.BaseTextComponent=E,exports.Button=Di,exports.Carousel=({slides:t,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:s}=Oi(n,t.length),o=e.useCallback((t=>()=>{r(t),s(0)}),[r,s]);return y.jsxs(Mi,{children:[y.jsx(Fi,{$currentIndex:i,children:t.map(((t,e)=>{const n=`slide-${e}`;return y.jsx(Ii,{children:t.content},n)}))}),y.jsx(Li,{children:t.map(((t,e)=>{const n=`nav-button-${e}`;return y.jsx(Ri,{$isActive:e===i,"data-testid":e===i?"active":"inactive",onClick:o(e)},n)}))})]})},exports.Checkbox=$r,exports.CloudImage=Pa,exports.CodeSnippet=({noCodeMessage:n="Code snippet not available",snippet:r})=>{const s=t.useTheme(),[o,a]=e.useState(!1),[l,c]=e.useState(!0),h=e.useCallback((()=>{a((t=>!t))}),[a]),u=e.useCallback((()=>{if(i.isNil(r)||i.isEmpty(r)||!i.isString(r))return c(!1),n;const t=r.split("\n");return t.length>8&&!o?`${[...t].splice(0,7).join("\n")}\n${t[8]}...`:(t.length<8&&c(!1),r)}),[o,r,n]),p=e.useMemo(u,[u]),d=e.useCallback((async()=>{await navigator.clipboard.writeText(p)}),[p]);return y.jsxs(M,{bgColor:s.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[y.jsx(Ta,{"data-private":!0,children:y.jsx("pre",{children:y.jsx("code",{className:"language-none",children:p})})}),y.jsxs(Ea,{children:[y.jsx(Ei,{height:s.spacing[2.5],icon:"copy",iconColor:s.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:d,variant:"ghost",width:s.spacing[2.5]}),!!l&&y.jsxs(Di,{onClick:h,variant:"ghost",children:[o?"Show Less":"Show more",y.jsx(V,{icon:o?"chevron-up":"chevron-down",iconColor:s.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:d})]})]})]})},exports.Container=M,exports.ContentCard=Fa,exports.ContentCardCarousel=({description:t,items:n,title:i,titleHighlighted:r})=>{const s=e.useRef(null);return y.jsxs(Ra,{"data-testid":"content-card-carousel",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[y.jsxs(R,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",y.jsx("span",{className:"inline",children:r})]}),y.jsx(L,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:t})]}),y.jsx(La,{containerRef:s,id:"desktop"})]}),y.jsx(M,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:s,scroll:"x",children:y.jsx(M,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map(((t,e)=>y.jsx(Fa,{...t},`${e}-${t.title}`)))})}),y.jsx(La,{containerRef:s,id:"mobile"})]})},exports.CustomThemeProvider=({children:e})=>y.jsx(t.ThemeProvider,{theme:v,children:e}),exports.Divider=Oa,exports.FilePreview=({alt:t,fileType:e,width:n="100%",opacity:r=0,src:s,height:o="auto"})=>"video"===e||((t,e)=>!i.isUndefined(e)&&i.includes(t,(t=>{if(i.isNil(t))return"";const e=t.split(".");return(e.length>1?i.last(e):"").toLowerCase()})(e)))(["webm"],s)?y.jsx(za,{$opacity:r,children:y.jsxs("video",{controls:!0,height:o,muted:!0,width:n,children:[y.jsx("source",{src:s,type:"video/webm"}),y.jsx(Wa,{href:s,iconPosition:"hidden",children:s})]})}):y.jsx(za,{$opacity:r,children:y.jsx("img",{alt:t,height:o,src:s,width:n})}),exports.FixedTabs=({items:t})=>y.jsx(bc,{children:t.map((({isActive:t,label:e,onClick:n},i)=>y.jsx(vc,{className:t?"active":"",onClick:n,type:"button",children:y.jsx(R,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e})},`${e}-${i}`)))}),exports.Form=({children:t,name:e,onSubmit:n,submitDisabled:i,submitLabel:r="Submit"})=>y.jsx(Ua,{"aria-label":e,name:e,onSubmit:n,children:y.jsxs(Ha,{children:[t,y.jsx(Di,{disabled:i,type:"submit",children:r})]})}),exports.FormItem=Ga,exports.Heading=R,exports.Icon=V,exports.IconButton=Ei,exports.InteractiveCard=({category:e,description:n,href:i,icon:r,location:s,title:o})=>{const a=t.useTheme();return y.jsxs(Cl,{children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(L,{color:a.palette.white,size:"sm",sizeSm:"xs",children:e}),y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(L,{color:a.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),y.jsx(L,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:s})]})]}),y.jsxs(M,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),y.jsxs("div",{className:"flex flex-col gap-8",children:[y.jsx(L,{color:a.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),y.jsx(Di,{external:!0,href:i,mode:"dark",variant:"link",width:"max-content",children:"Download now"})]})]}),y.jsx(Pl,{icon:r})]})},exports.LanguageSelector=({items:t,handleClick:n,mode:i="light"})=>{const r=t??Fl,[s,o]=e.useState(r[0].text),a=e.useCallback((t=>()=>{n(t.text),o(t.text)}),[n]);return y.jsxs(Dl,{children:[y.jsxs(El,{className:i,children:[y.jsx(V,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),s]}),y.jsx(jl,{children:r.map(((t,e)=>y.jsx(Ml,{disabled:t.disabled,mode:i,onClick:a(t),text:t.text},`${t.text}_${e}`)))})]})},exports.Link=Wa,exports.ListItem=({children:n,disabled:i=!1,icon:r,iconType:s="fa-light",href:o,onClick:a,onKeyDown:l,selected:c=!1,value:h,...u})=>{const p=t.useTheme().palette.gray[i?300:800],d=i?e.Children.map(n,(t=>e.isValidElement(t)?e.cloneElement(t,{disabled:i,...t.props}):t)):n;return y.jsxs(Il,{"aria-disabled":i,"aria-label":h,"aria-selected":c,"data-testid":h,onClick:a,onKeyDown:l,value:h,...u,children:[void 0!==r||void 0!==h?y.jsxs(M,{alignItems:"center",display:"flex",gap:.625,children:[r?y.jsx(V,{disabled:i,icon:r,iconColor:p,iconSize:"xs",iconType:s}):null,void 0===o?d:y.jsx(Wa,{href:o,children:d})]}):null,c?y.jsx(V,{disabled:i,icon:"check",iconColor:p,iconSize:"xs",iconType:s}):null]})},exports.ListItemsWrapper=Rl,exports.LittleFlag=({bgColor:t,children:e,txtDecoration:n,ml:i=1})=>y.jsx(Ll,{$bgColor:t,$txtDecoration:n,className:`ml-${i}`,children:e}),exports.Logo=({publicId:t,variant:e})=>y.jsx(M,{...Ol[e],children:y.jsx(Pa,{alt:"logo",publicId:t})}),exports.LogoCarousel=({fusion:t=!1,logos:e=ql})=>y.jsxs(zl,{children:[t&&y.jsx(Nl,{className:"left"}),y.jsx(Vl,{children:[...e,...e].map(((t,e)=>y.jsx(Pa,{alt:`${t}-${e}`,height:"80px",plugins:[vo()],publicId:t,width:"140px"},`${t}-${e}`)))}),t&&y.jsx(Nl,{className:"right"})]}),exports.Lottie=t=>{const{size:e}=t;return y.jsx(Ul,{$size:e,...t})},exports.MessageBanner=({message:n,onClickButton:i,buttonText:r,buttonFontWeight:s="regular",icon:o,onClose:a,variant:l="web"})=>{const c=t.useTheme(),[h,u]=e.useState(!0),p=e.useCallback((()=>{u(!1),null==a||a()}),[a]),d=(t=>"platform"===t?{normal:"sm",small:void 0}:{normal:"md",small:"sm"})(l);return y.jsxs(M,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:h?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[y.jsxs(M,{display:"flex",gap:.5,justify:"center",width:"100%",children:[y.jsx(M,{children:"string"==typeof n?y.jsx(L,{color:c.palette.white,display:"inline",size:d.normal,sizeSm:d.small,children:n}):n}),i?y.jsxs(Hl,{onClick:i,children:[y.jsx(L,{color:c.palette.white,fontWeight:s,size:d.normal,sizeSm:d.small,textDecoration:"underline",children:r}),y.jsx(V,{icon:o??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:"bold"===s?"fa-regular":"fa-light"})]}):void 0]}),y.jsx(V,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:p})]})},exports.Notification=({description:n,onClose:i,title:r,variant:s})=>{const o=t.useTheme(),a=e.useCallback((()=>{null==i||i()}),[i]);return y.jsxs(Gl,{$variant:s,className:`notification notification__${s}`,children:[y.jsxs(Ql,{$variant:s,children:[y.jsx(V,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),y.jsx(V,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),y.jsx(V,{icon:Jl(s),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(M,{pr:1.5,children:[y.jsx(R,{fontWeight:"bold",size:"xs",children:r}),y.jsx(L,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:n})]}),y.jsx(Ei,{height:"fit-content",icon:"close",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},exports.NotificationSign=Xl,exports.NumberInput=ec,exports.OutlineContainer=_l,exports.PhoneInput=Sl,exports.ProgressBar=({progressTime:n=10,onComplete:i})=>{const r=t.useTheme(),[s,o]=e.useState(0);return e.useEffect((()=>{100===s&&(null==i||i())}),[s,i]),e.useEffect((()=>{const t=setInterval((()=>{o((t=>100===t?0:t+1))}),1e3*n/100);return()=>{clearInterval(t)}}),[s,n]),y.jsx(M,{bgColor:r.palette.gray[200],height:"4px",children:y.jsx(nc,{$animationTime:n,bgGradient:r.palette.gradients["01"],height:"100%",width:`${s}%`})})},exports.RadioButton=sc,exports.SearchBar=({items:t,placeholder:n="Search",refine:i,query:r})=>{const[s,o]=e.useState(r),[a,l]=e.useState(!1),c=e.useRef(null),h=e.useRef(null),u=s.length>=2,p=e.useCallback((t=>{o(t),i(t)}),[i]),d=e.useCallback((()=>{p("")}),[p]),f=e.useCallback((()=>{l(!0)}),[]),m=e.useCallback((t=>{p(t.currentTarget.value)}),[p]),g=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),d(),h.current&&h.current.focus()}),[d]),b=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),h.current&&h.current.blur()}),[]);return zi(c.current,(()=>{d(),l(!1)}),!0),y.jsxs(lc,{ref:c,children:[y.jsxs(cc,{action:"",noValidate:!0,onReset:g,onSubmit:b,role:"search",children:[y.jsxs("div",{className:"flex gap-2 w-full",children:[y.jsx("div",{className:"h-10 p-2",children:y.jsx(V,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),y.jsx(hc,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:m,onFocus:f,placeholder:n,ref:h,spellCheck:!1,type:"search",value:s})]}),u&&y.jsx(uc,{type:"reset",children:y.jsx(V,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),a&&s.length<2&&y.jsxs(pc,{children:[y.jsx(L,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:fc.map((({hit:t,icon:e},n)=>y.jsx(dc,{hit:t,icon:e,showIcon:!0},`${e}-${n}`)))}),y.jsx(L,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),y.jsx(dc,{hit:mc.hit,icon:mc.icon,showIcon:!0})]}),u&&t.length>0&&y.jsxs(pc,{$showHits:u,children:[y.jsx(L,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:t.map((t=>y.jsx(dc,{hit:t},t.objectID)))})]}),u&&0===t.length&&y.jsx(pc,{$empty:0===t.length,children:y.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[y.jsx(Pa,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),y.jsx(R,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),y.jsxs(L,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${s}” did not match.`,y.jsx("br",{}),"Please try again."]}),y.jsx(Di,{mode:"light",onClick:d,variant:"secondaryWeb",children:"Clear search"})]})})]})},exports.Tab=wc,exports.TableButton=({disabled:e=!1,icon:n,id:i,label:r,name:s,onClick:o,type:a="button",variant:l})=>{const c=t.useTheme(),h=y.jsxs(gc,{"aria-label":s??void 0,className:l,disabled:e,id:i,onClick:o,type:a,children:[y.jsx(V,{clickable:!1,icon:n??yc[l].icon,iconSize:void 0===s?"xxs":"xs",iconType:"fa-light"}),s??void 0]});return y.jsxs(M,{alignItems:"center",display:"flex",children:[h,r&&y.jsx(L,{color:c.palette.gray[800],ml:.5,size:"sm",children:r})]})},exports.Tabs=({items:e,borders:n=!0,box:i=!1})=>{const r=t.useTheme();return y.jsx(M,{bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,width:i?"max-content":"100%",children:e.map((({id:t,isActive:e,link:n,label:i,notificationSign:r,onClick:s,tooltip:o})=>y.jsx(wc,{id:t,isActive:e,label:i,link:n,notificationSign:r,onClick:s,tooltip:o},t)))})},exports.Tag=({children:t,disabled:e,icon:n,iconColor:i="inherit",id:r="close-tag",fontSize:s,onClose:o,variant:a="default"})=>y.jsxs(_c,{$fontSize:s,$variant:a,children:[n&&y.jsx(V,{icon:n,iconColor:i,iconSize:"xs"}),t,o?y.jsx(Ei,{disabled:e,icon:"xmark",iconSize:"xs",iconType:"fa-light",id:r,onClick:o,px:.125,py:.125,variant:"ghost"}):void 0]}),exports.Text=L,exports.TextInput=$l,exports.Toggle=Ac,exports.ToggleButton=({defaultSelection:t,options:n,handleClick:i})=>{const[r,s]=e.useState(t??n[0]),o=e.useCallback((t=>()=>{s(t),i(t)}),[i]);return y.jsx(Pc,{children:n.map(((t,e)=>y.jsx(Tc,{className:`${t.includes(r)&&"selected"}`,onClick:o(t),children:y.jsx(L,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:t})},`${t}-${e}`)))})},exports.Tooltip=Ti,exports.getStyledConfig=A,exports.hiddenProps=c,exports.icons=["lock-keyhole","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","clouds","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],exports.setBorder=_,exports.setDisplay=S,exports.setInteraction=C,exports.setMargin=w,exports.setPadding=x,exports.setPosition=k,exports.setText=$,exports.theme=v,exports.uniqueIcons=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],exports.useCarousel=Oi,exports.useClickOutside=zi,exports.useCloudinaryImage=kr,exports.variantBuilder=l;
498
+ `;function Jm(t){return e=>typeof e===t}var Xm=Jm("function"),Qm=t=>"RegExp"===Object.prototype.toString.call(t).slice(8,-1),Zm=t=>!tg(t)&&!(t=>null===t)(t)&&(Xm(t)||"object"==typeof t),tg=Jm("undefined");function eg(t,e){if(t===e)return!0;if(t&&Zm(t)&&e&&Zm(e)){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)&&Array.isArray(e))return function(t,e){const{length:n}=t;if(n!==e.length)return!1;for(let r=n;0!=r--;)if(!eg(t[r],e[r]))return!1;return!0}(t,e);if(t instanceof Map&&e instanceof Map)return function(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;for(const n of t.entries())if(!eg(n[1],e.get(n[0])))return!1;return!0}(t,e);if(t instanceof Set&&e instanceof Set)return function(t,e){if(t.size!==e.size)return!1;for(const n of t.entries())if(!e.has(n[0]))return!1;return!0}(t,e);if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return function(t,e){if(t.byteLength!==e.byteLength)return!1;const n=new DataView(t.buffer),r=new DataView(e.buffer);let i=t.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}(t,e);if(Qm(t)&&Qm(e))return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let t=n.length;0!=t--;)if(!Object.prototype.hasOwnProperty.call(e,n[t]))return!1;for(let i=n.length;0!=i--;){const r=n[i];if(!("_owner"===r&&t.$$typeof||eg(t[r],e[r])))return!1}return!0}return!(!Number.isNaN(t)||!Number.isNaN(e))||t===e}var ng=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],rg=["bigint","boolean","null","number","string","symbol","undefined"];function ig(t){const e=Object.prototype.toString.call(t).slice(8,-1);return/HTML\w+Element/.test(e)?"HTMLElement":(n=e,ng.includes(n)?e:void 0);var n}function og(t){return e=>ig(e)===t}function sg(t){return e=>typeof e===t}var ag=["innerHTML","ownerDocument","style","attributes","nodeValue"];function lg(t){if(null===t)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(lg.array(t))return"Array";if(lg.plainFunction(t))return"Function";return ig(t)||"Object"}lg.array=Array.isArray,lg.arrayOf=(t,e)=>!(!lg.array(t)&&!lg.function(e))&&t.every((t=>e(t))),lg.asyncGeneratorFunction=t=>"AsyncGeneratorFunction"===ig(t),lg.asyncFunction=og("AsyncFunction"),lg.bigint=sg("bigint"),lg.boolean=t=>!0===t||!1===t,lg.date=og("Date"),lg.defined=t=>!lg.undefined(t),lg.domElement=t=>lg.object(t)&&!lg.plainObject(t)&&1===t.nodeType&&lg.string(t.nodeName)&&ag.every((e=>e in t)),lg.empty=t=>lg.string(t)&&0===t.length||lg.array(t)&&0===t.length||lg.object(t)&&!lg.map(t)&&!lg.set(t)&&0===Object.keys(t).length||lg.set(t)&&0===t.size||lg.map(t)&&0===t.size,lg.error=og("Error"),lg.function=sg("function"),lg.generator=t=>lg.iterable(t)&&lg.function(t.next)&&lg.function(t.throw),lg.generatorFunction=og("GeneratorFunction"),lg.instanceOf=(t,e)=>!(!t||!e)&&Object.getPrototypeOf(t)===e.prototype,lg.iterable=t=>!lg.nullOrUndefined(t)&&lg.function(t[Symbol.iterator]),lg.map=og("Map"),lg.nan=t=>Number.isNaN(t),lg.null=t=>null===t,lg.nullOrUndefined=t=>lg.null(t)||lg.undefined(t),lg.number=t=>sg("number")(t)&&!lg.nan(t),lg.numericString=t=>lg.string(t)&&t.length>0&&!Number.isNaN(Number(t)),lg.object=t=>!lg.nullOrUndefined(t)&&(lg.function(t)||"object"==typeof t),lg.oneOf=(t,e)=>!!lg.array(t)&&t.indexOf(e)>-1,lg.plainFunction=og("Function"),lg.plainObject=t=>{if("Object"!==ig(t))return!1;const e=Object.getPrototypeOf(t);return null===e||e===Object.getPrototypeOf({})},lg.primitive=t=>{return lg.null(t)||(e=typeof t,rg.includes(e));var e},lg.promise=og("Promise"),lg.propertyOf=(t,e,n)=>{if(!lg.object(t)||!e)return!1;const r=t[e];return lg.function(n)?n(r):lg.defined(r)},lg.regexp=og("RegExp"),lg.set=og("Set"),lg.string=sg("string"),lg.symbol=sg("symbol"),lg.undefined=sg("undefined"),lg.weakMap=og("WeakMap"),lg.weakSet=og("WeakSet");var cg=lg;function ug(t,e,n){const{actual:r,key:i,previous:o,type:s}=n,a=vg(t,i),l=vg(e,i);let c=[a,l].every(cg.number)&&("increased"===s?a<l:a>l);return cg.undefined(r)||(c=c&&l===r),cg.undefined(o)||(c=c&&a===o),c}function pg(t,e,n){const{key:r,type:i,value:o}=n,s=vg(t,r),a=vg(e,r),l="added"===i?s:a,c="added"===i?a:s;return cg.nullOrUndefined(o)?[s,a].every(cg.array)?!c.every(gg(l)):[s,a].every(cg.plainObject)?(u=Object.keys(l),Object.keys(c).some((t=>!u.includes(t)))):![s,a].every((t=>cg.primitive(t)&&cg.defined(t)))&&("added"===i?!cg.defined(s)&&cg.defined(a):cg.defined(s)&&!cg.defined(a)):cg.defined(l)?!(!cg.array(l)&&!cg.plainObject(l))&&function(t,e,n){return!!yg(t,e)&&([t,e].every(cg.array)?!t.some(fg(n))&&e.some(fg(n)):[t,e].every(cg.plainObject)?!Object.entries(t).some(dg(n))&&Object.entries(e).some(dg(n)):e===n)}(l,c,o):eg(c,o);var u}function hg(t,e,{key:n}={}){let r=vg(t,n),i=vg(e,n);if(!yg(r,i))throw new TypeError("Inputs have different types");if(!function(...t){return t.every((t=>cg.string(t)||cg.array(t)||cg.plainObject(t)))}(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(cg.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function dg(t){return([e,n])=>cg.array(t)?eg(t,n)||t.some((t=>eg(t,n)||cg.array(n)&&gg(n)(t))):cg.plainObject(t)&&t[e]?!!t[e]&&eg(t[e],n):eg(t,n)}function fg(t){return e=>cg.array(t)?t.some((t=>eg(t,e)||cg.array(e)&&gg(e)(t))):eg(t,e)}function mg(t,e){return cg.array(t)?t.some((t=>eg(t,e))):eg(t,e)}function gg(t){return e=>t.some((t=>eg(t,e)))}function yg(...t){return t.every(cg.array)||t.every(cg.number)||t.every(cg.plainObject)||t.every(cg.string)}function vg(t,e){return cg.plainObject(t)||cg.array(t)?cg.string(e)?e.split(".").reduce(((t,e)=>t&&t[e]),t):cg.number(e)?t[e]:t:t}function bg(t,e){if([t,e].some(cg.nullOrUndefined))throw new Error("Missing required parameters");if(![t,e].every((t=>cg.plainObject(t)||cg.array(t))))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return pg(t,e,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,i)=>{try{const o=vg(t,n),s=vg(e,n),a=cg.defined(r),l=cg.defined(i);if(a||l){const t=l?mg(i,o):!mg(r,o),e=mg(r,s);return t&&e}return[o,s].every(cg.array)||[o,s].every(cg.plainObject)?!eg(o,s):o!==s}catch{return!1}},changedFrom:(n,r,i)=>{if(!cg.defined(n))return!1;try{const o=vg(t,n),s=vg(e,n),a=cg.defined(i);return mg(r,o)&&(a?mg(i,s):!a)}catch{return!1}},decreased:(n,r,i)=>{if(!cg.defined(n))return!1;try{return ug(t,e,{key:n,actual:r,previous:i,type:"decreased"})}catch{return!1}},emptied:n=>{try{const[r,i]=hg(t,e,{key:n});return!!r.length&&!i.length}catch{return!1}},filled:n=>{try{const[r,i]=hg(t,e,{key:n});return!r.length&&!!i.length}catch{return!1}},increased:(n,r,i)=>{if(!cg.defined(n))return!1;try{return ug(t,e,{key:n,actual:r,previous:i,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return pg(t,e,{key:n,type:"removed",value:r})}catch{return!1}}}}var xg=new Error("Element already at target scroll position"),wg=new Error("Scroll cancelled"),kg=Math.min,Sg=Date.now;function Cg(t){return function(e,n,r,i){"function"==typeof(r=r||{})&&(i=r,r={}),"function"!=typeof i&&(i=$g);var o=Sg(),s=e[t],a=r.ease||_g,l=isNaN(r.duration)?350:+r.duration,c=!1;return s===n?i(xg,e[t]):requestAnimationFrame((function r(u){if(c)return i(wg,e[t]);var p=Sg(),h=kg(1,(p-o)/l),d=a(h);e[t]=d*(n-s)+s,h<1?requestAnimationFrame(r):requestAnimationFrame((function(){i(null,e[t])}))})),function(){c=!0}}}function _g(t){return.5*(1-Math.cos(Math.PI*t))}function $g(){}const Eg=p({left:Cg("scrollLeft"),top:Cg("scrollTop")});var Pg={exports:{}};!function(t){!function(e,n){t.exports?t.exports=n():e.Scrollparent=n()}(u,(function(){function t(t){var e=getComputedStyle(t,null).getPropertyValue("overflow");return e.indexOf("scroll")>-1||e.indexOf("auto")>-1}return function(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var n=e.parentNode;n.parentNode;){if(t(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}}))}(Pg);const Tg=p(Pg.exports);var Ag=function(t,e){return t+jg(e)},jg=function(t){return null===t||"boolean"==typeof t||void 0===t?"":"number"==typeof t?t.toString():"string"==typeof t?t:Array.isArray(t)?t.reduce(Ag,""):(e=t,Object.prototype.hasOwnProperty.call(e,"props")&&Object.prototype.hasOwnProperty.call(t.props,"children")?jg(t.props.children):"");var e};jg.default=jg;const Og=p(jg);var Mg=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||t.$$typeof===Dg}(t)},Dg="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ig(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Ng((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function Rg(t,e,n){return t.concat(e).map((function(t){return Ig(t,n)}))}function Fg(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]));var e}function Lg(t,e){try{return e in t}catch(n){return!1}}function Ng(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||Rg,n.isMergeableObject=n.isMergeableObject||Mg,n.cloneUnlessOtherwiseSpecified=Ig;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&Fg(t).forEach((function(e){r[e]=Ig(t[e],n)})),Fg(e).forEach((function(i){var o,s;Lg(o=t,s=i)&&(!Object.hasOwnProperty.call(o,s)||!Object.propertyIsEnumerable.call(o,s))||(Lg(t,i)&&n.isMergeableObject(e[i])?r[i]=function(t,e){if(!e.customMerge)return Ng;var n=e.customMerge(t);return"function"==typeof n?n:Ng}(i,n)(t[i],e[i],n):r[i]=Ig(e[i],n))})),r}(t,e,n):Ig(e,n)}Ng.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return Ng(t,n,e)}),{})};const zg=p(Ng);var Vg,Bg,Wg,qg,Ug,Hg,Gg,Kg,Yg,Jg,Xg,Qg,Zg,ty,ey,ny={exports:{}},ry={exports:{}},iy={},oy={};
499
+ /** @license React v16.13.1
500
+ * react-is.development.js
501
+ *
502
+ * Copyright (c) Facebook, Inc. and its affiliates.
503
+ *
504
+ * This source code is licensed under the MIT license found in the
505
+ * LICENSE file in the root directory of this source tree.
506
+ */
507
+ function sy(){return Wg||(Wg=1,"production"===process.env.NODE_ENV?ry.exports=function(){if(Vg)return iy;Vg=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case l:case c:case r:case o:case i:case p:return t;default:switch(t=t&&t.$$typeof){case a:case u:case f:case d:case s:return t;default:return h}}case n:return h}}}function x(t){return b(t)===c}return iy.AsyncMode=l,iy.ConcurrentMode=c,iy.ContextConsumer=a,iy.ContextProvider=s,iy.Element=e,iy.ForwardRef=u,iy.Fragment=r,iy.Lazy=f,iy.Memo=d,iy.Portal=n,iy.Profiler=o,iy.StrictMode=i,iy.Suspense=p,iy.isAsyncMode=function(t){return x(t)||b(t)===l},iy.isConcurrentMode=x,iy.isContextConsumer=function(t){return b(t)===a},iy.isContextProvider=function(t){return b(t)===s},iy.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},iy.isForwardRef=function(t){return b(t)===u},iy.isFragment=function(t){return b(t)===r},iy.isLazy=function(t){return b(t)===f},iy.isMemo=function(t){return b(t)===d},iy.isPortal=function(t){return b(t)===n},iy.isProfiler=function(t){return b(t)===o},iy.isStrictMode=function(t){return b(t)===i},iy.isSuspense=function(t){return b(t)===p},iy.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===c||t===o||t===i||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===g||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},iy.typeOf=b,iy}():ry.exports=(Bg||(Bg=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,a=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var m=t.type;switch(m){case l:case c:case r:case o:case i:case p:return m;default:var g=m&&m.$$typeof;switch(g){case a:case u:case f:case d:case s:return g;default:return h}}case n:return h}}}var x=l,w=c,k=a,S=s,C=e,_=u,$=r,E=f,P=d,T=n,A=o,j=i,O=p,M=!1;function D(t){return b(t)===c}oy.AsyncMode=x,oy.ConcurrentMode=w,oy.ContextConsumer=k,oy.ContextProvider=S,oy.Element=C,oy.ForwardRef=_,oy.Fragment=$,oy.Lazy=E,oy.Memo=P,oy.Portal=T,oy.Profiler=A,oy.StrictMode=j,oy.Suspense=O,oy.isAsyncMode=function(t){return M||(M=!0),D(t)||b(t)===l},oy.isConcurrentMode=D,oy.isContextConsumer=function(t){return b(t)===a},oy.isContextProvider=function(t){return b(t)===s},oy.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},oy.isForwardRef=function(t){return b(t)===u},oy.isFragment=function(t){return b(t)===r},oy.isLazy=function(t){return b(t)===f},oy.isMemo=function(t){return b(t)===d},oy.isPortal=function(t){return b(t)===n},oy.isProfiler=function(t){return b(t)===o},oy.isStrictMode=function(t){return b(t)===i},oy.isSuspense=function(t){return b(t)===p},oy.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===c||t===o||t===i||t===p||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===u||t.$$typeof===g||t.$$typeof===y||t.$$typeof===v||t.$$typeof===m)},oy.typeOf=b}()),oy)),ry.exports
508
+ /*
509
+ object-assign
510
+ (c) Sindre Sorhus
511
+ @license MIT
512
+ */}function ay(){return Gg?Hg:(Gg=1,Hg="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function ly(){return Yg?Kg:(Yg=1,Kg=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var cy=sy();ny.exports=function(){if(Zg)return Qg;Zg=1;var t=sy(),e=function(){if(Ug)return qg;Ug=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return qg=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(r,i){for(var o,s,a=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))e.call(o,c)&&(a[c]=o[c]);if(t){s=t(o);for(var u=0;u<s.length;u++)n.call(o,s[u])&&(a[s[u]]=o[s[u]])}}return a},qg}(),n=ay(),r=ly(),i=function(){if(Xg)return Jg;Xg=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=ay(),n={},r=ly();t=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}}function i(i,o,s,a,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var u;try{if("function"!=typeof i[c]){var p=Error((a||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=i[c](o,c,a,s,null,e)}catch(d){u=d}if(!u||u instanceof Error||t((a||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=l?l():"";t("Failed "+s+" type: "+u.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Jg=i}(),o=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;try{throw new Error(e)}catch(n){}}),Qg=function(a,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(t){return f((function(e,r,i,o,s){if("function"!=typeof t)return new d("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var a=e[r];if(!Array.isArray(a))return new d("Invalid "+o+" `"+s+"` of type `"+v(a)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<a.length;l++){var c=t(a,l,i,o,s+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(t,e,n,r,i){var o=t[e];return a(o)?null:new d("Invalid "+r+" `"+i+"` of type `"+v(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(e,n,r,i,o){var s=e[n];return t.isValidElementType(s)?null:new d("Invalid "+i+" `"+o+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return f((function(e,n,r,i,o){if(!(e[n]instanceof t)){var s=t.name||u;return new d("Invalid "+i+" `"+o+"` of type `"+((a=e[n]).constructor&&a.constructor.name?a.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}var a;return null}))},node:f((function(t,e,n,r,i){return y(t[e])?null:new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return f((function(e,i,o,s,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],c=v(l);if("object"!==c)return new d("Invalid "+s+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var u in l)if(r(l,u)){var p=t(l,u,o,s,a+"."+u,n);if(p instanceof Error)return p}return null}))},oneOf:function(t){return Array.isArray(t)?f((function(e,n,r,i,o){for(var s=e[n],a=0;a<t.length;a++)if(h(s,t[a]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===b(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),s)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),s}return f((function(e,i,o,s,a){for(var l=[],c=0;c<t.length;c++){var u=(0,t[c])(e,i,o,s,a,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new d("Invalid "+s+" `"+a+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return f((function(e,r,i,o,s){var a=e[r],l=v(a);if("object"!==l)return new d("Invalid "+o+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in t){var u=t[c];if("function"!=typeof u)return g(i,o,s,c,b(u));var p=u(a,c,i,o,s+"."+c,n);if(p)return p}return null}))},exact:function(t){return f((function(i,o,s,a,l){var c=i[o],u=v(c);if("object"!==u)return new d("Invalid "+a+" `"+l+"` of type `"+u+"` supplied to `"+s+"`, expected `object`.");var p=e({},i[o],t);for(var h in p){var f=t[h];if(r(t,h)&&"function"!=typeof f)return g(s,a,l,h,b(f));if(!f)return new d("Invalid "+a+" `"+l+"` key `"+h+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var m=f(c,h,s,a,l+"."+h,n);if(m)return m}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function f(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function i(i,s,a,c,p,h,f){if(c=c||u,h=h||a,f!==n){if(l){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var g=c+":"+a;!e[g]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[g]=!0,r++)}}return null==s[a]?i?null===s[a]?new d("The "+p+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new d("The "+p+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:t(s,a,c,p,h)}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}function m(t){return f((function(e,n,r,i,o,s){var a=e[n];return v(a)!==t?new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,i){return new d((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||a(t))return!0;var e=function(t){var e=t&&(c&&t[c]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!y(i[1]))return!1}return!0;default:return!1}}function v(t){var e,n=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":(e=t,"symbol"===n||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":n)}function b(t){if(null==t)return""+t;var e=v(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=b(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Qg}()(cy.isElement,!0)}else ny.exports=function(){if(ey)return ty;ey=1;var t=ay();function e(){}function n(){}return n.resetWarningCache=e,ty=function(){function r(e,n,r,i,o,s){if(s!==t){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}}()();const uy=p(ny.exports);
513
+ /**!
514
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
515
+ * @version 1.16.1
516
+ * @license
517
+ * Copyright (c) 2016 Federico Zivolo and contributors
518
+ *
519
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
520
+ * of this software and associated documentation files (the "Software"), to deal
521
+ * in the Software without restriction, including without limitation the rights
522
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
523
+ * copies of the Software, and to permit persons to whom the Software is
524
+ * furnished to do so, subject to the following conditions:
525
+ *
526
+ * The above copyright notice and this permission notice shall be included in all
527
+ * copies or substantial portions of the Software.
528
+ *
529
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
530
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
531
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
532
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
533
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
534
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
535
+ * SOFTWARE.
536
+ */var py="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,hy=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(py&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}(),dy=py&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),hy))}};function fy(t){return t&&"[object Function]"==={}.toString.call(t)}function my(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function gy(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function yy(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=my(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:yy(gy(t))}function vy(t){return t&&t.referenceNode?t.referenceNode:t}var by=py&&!(!window.MSInputMethodContext||!document.documentMode),xy=py&&/MSIE 10/.test(navigator.userAgent);function wy(t){return 11===t?by:10===t?xy:by||xy}function ky(t){if(!t)return document.documentElement;for(var e=wy(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===my(n,"position")?ky(n):n:t?t.ownerDocument.documentElement:document.documentElement}function Sy(t){return null!==t.parentNode?Sy(t.parentNode):t}function Cy(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var s,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||r.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&ky(s.firstElementChild)!==s?ky(l):l;var c=Sy(t);return c.host?Cy(c.host,e):Cy(t,Sy(e).host)}function _y(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var r=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||r)[e]}return t[e]}function $y(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function Ey(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],wy(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function Py(t){var e=t.body,n=t.documentElement,r=wy(10)&&getComputedStyle(n);return{height:Ey("Height",e,n,r),width:Ey("Width",e,n,r)}}var Ty=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Ay=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},jy=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function Oy(t){return jy({},t,{right:t.left+t.width,bottom:t.top+t.height})}function My(t){var e={};try{if(wy(10)){e=t.getBoundingClientRect();var n=_y(t,"top"),r=_y(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(p){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?Py(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,a=o.height||t.clientHeight||i.height,l=t.offsetWidth-s,c=t.offsetHeight-a;if(l||c){var u=my(t);l-=$y(u,"x"),c-=$y(u,"y"),i.width-=l,i.height-=c}return Oy(i)}function Dy(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=wy(10),i="HTML"===e.nodeName,o=My(t),s=My(e),a=yy(t),l=my(e),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=Oy({top:o.top-s.top-c,left:o.left-s.left-u,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),d=parseFloat(l.marginLeft);p.top-=c-h,p.bottom-=c-h,p.left-=u-d,p.right-=u-d,p.marginTop=h,p.marginLeft=d}return(r&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_y(e,"top"),i=_y(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}(p,e)),p}function Iy(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===my(t,"position"))return!0;var n=gy(t);return!!n&&Iy(n)}function Ry(t){if(!t||!t.parentElement||wy())return document.documentElement;for(var e=t.parentElement;e&&"none"===my(e,"transform");)e=e.parentElement;return e||document.documentElement}function Fy(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},s=i?Ry(t):Cy(t,vy(e));if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=Dy(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:_y(n),a=e?0:_y(n,"left");return Oy({top:s-r.top+r.marginTop,left:a-r.left+r.marginLeft,width:i,height:o})}(s,i);else{var a=void 0;"scrollParent"===r?"BODY"===(a=yy(gy(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===r?t.ownerDocument.documentElement:r;var l=Dy(a,s,i);if("HTML"!==a.nodeName||Iy(s))o=l;else{var c=Py(t.ownerDocument),u=c.height,p=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=p+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function Ly(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=Fy(n,r,o,i),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return jy({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return u+(p?"-"+p:"")}function Ny(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Dy(n,r?Ry(e):Cy(e,vy(n)),r)}function zy(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function Vy(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function By(t,e,n){n=n.split("-")[0];var r=zy(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[s]=e[s]+e[l]/2-r[l]/2,i[a]=n===a?e[a]-r[c]:e[Vy(a)],i}function Wy(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function qy(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=Wy(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&fy(n)&&(e.offsets.popper=Oy(e.offsets.popper),e.offsets.reference=Oy(e.offsets.reference),e=n(e,t))})),e}function Uy(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Ny(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=Ly(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=By(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=qy(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Hy(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function Gy(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if(void 0!==document.body.style[o])return o}return null}function Ky(){return this.state.isDestroyed=!0,Hy(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Gy("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Yy(t){var e=t.ownerDocument;return e?e.defaultView:window}function Jy(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||Jy(yy(o.parentNode),e,n,r),r.push(o)}function Xy(t,e,n,r){n.updateBound=r,Yy(t).addEventListener("resize",n.updateBound,{passive:!0});var i=yy(t);return Jy(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Qy(){this.state.eventsEnabled||(this.state=Xy(this.reference,this.options,this.state,this.scheduleUpdate))}function Zy(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Yy(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function tv(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function ev(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&tv(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var nv=py&&/Firefox/i.test(navigator.userAgent);function rv(t,e,n){var r=Wy(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i);return i}var iv=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ov=iv.slice(3);function sv(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ov.indexOf(t),r=ov.slice(n+1).concat(ov.slice(0,n));return e?r.reverse():r}var av={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:Ay({},l,o[l]),end:Ay({},l,o[l]+o[c]-s[c])};t.offsets.popper=jy({},s,u[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,r=e.offset,i=t.placement,o=t.offsets,s=o.popper,a=o.reference,l=i.split("-")[0];return n=tv(+r)?[+r,0]:function(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(Wy(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&s[a].indexOf(",");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,r){var i=(1===r?!o:o)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return o=i,s=e,a=n,c=+(l=(r=t).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],u=l[2],c?0===u.indexOf("%")?Oy("%p"===u?s:a)[o]/100*c:"vh"===u||"vw"===u?("vh"===u?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*c:c:r;var r,o,s,a,l,c,u}))}))).forEach((function(t,e){t.forEach((function(n,r){tv(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}(r,s,a,l),"left"===l?(s.top+=n[0],s.left-=n[1]):"right"===l?(s.top+=n[0],s.left+=n[1]):"top"===l?(s.left+=n[0],s.top-=n[1]):"bottom"===l&&(s.left+=n[0],s.top+=n[1]),t.popper=s,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||ky(t.instance.popper);t.instance.reference===n&&(n=ky(n));var r=Gy("transform"),i=t.instance.popper.style,o=i.top,s=i.left,a=i[r];i.top="",i.left="",i[r]="";var l=Fy(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=s,i[r]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,p={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),Ay({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(r=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),Ay({},n,r)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=jy({},u,p[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<o(r[l])&&(t.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[a])&&(t.offsets.popper[l]=o(r[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!rv(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",p=u.toLowerCase(),h=l?"left":"top",d=l?"bottom":"right",f=zy(r)[c];a[d]-f<s[p]&&(t.offsets.popper[p]-=s[p]-(a[d]-f)),a[p]+f>s[d]&&(t.offsets.popper[p]+=a[p]+f-s[d]),t.offsets.popper=Oy(t.offsets.popper);var m=a[p]+a[c]/2-f/2,g=my(t.instance.popper),y=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),b=m-t.offsets.popper[p]-y-v;return b=Math.max(Math.min(s[c]-f,b),0),t.arrowElement=r,t.offsets.arrow=(Ay(n={},p,Math.round(b)),Ay(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(Hy(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Fy(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=Vy(r),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case"flip":s=[r,i];break;case"clockwise":s=sv(r);break;case"counterclockwise":s=sv(r,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(r!==a||s.length===l+1)return t;r=t.placement.split("-")[0],i=Vy(r);var c=t.offsets.popper,u=t.offsets.reference,p=Math.floor,h="left"===r&&p(c.right)>p(u.left)||"right"===r&&p(c.left)<p(u.right)||"top"===r&&p(c.bottom)>p(u.top)||"bottom"===r&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),f=p(c.right)>p(n.right),m=p(c.top)<p(n.top),g=p(c.bottom)>p(n.bottom),y="left"===r&&d||"right"===r&&f||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(v&&"start"===o&&d||v&&"end"===o&&f||!v&&"start"===o&&m||!v&&"end"===o&&g),x=!!e.flipVariationsByContent&&(v&&"start"===o&&f||v&&"end"===o&&d||!v&&"start"===o&&g||!v&&"end"===o&&m),w=b||x;(h||y||w)&&(t.flipped=!0,(h||y)&&(r=s[l+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=jy({},t.offsets.popper,By(t.instance.popper,t.offsets.reference,t.placement)),t=qy(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=o[n]-(a?i[s?"width":"height"]:0),t.placement=Vy(e),t.offsets.popper=Oy(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!rv(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Wy(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n,r,i,o,s,a,l,c,u,p,h,d,f,m,g,y,v=e.x,b=e.y,x=t.offsets.popper,w=Wy(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,k=void 0!==w?w:e.gpuAcceleration,S=ky(t.instance.popper),C=My(S),_={position:x.position},$=(i=t,o=window.devicePixelRatio<2||!nv,s=i.offsets,a=s.popper,l=s.reference,c=Math.round,u=Math.floor,p=function(t){return t},h=c(l.width),d=c(a.width),f=-1!==["left","right"].indexOf(i.placement),m=-1!==i.placement.indexOf("-"),y=o?c:p,{left:(g=o?f||m||h%2==d%2?c:u:p)(h%2==1&&d%2==1&&!m&&o?a.left-1:a.left),top:y(a.top),bottom:y(a.bottom),right:g(a.right)}),E="bottom"===v?"top":"bottom",P="right"===b?"left":"right",T=Gy("transform");if(r="bottom"===E?"HTML"===S.nodeName?-S.clientHeight+$.bottom:-C.height+$.bottom:$.top,n="right"===P?"HTML"===S.nodeName?-S.clientWidth+$.right:-C.width+$.right:$.left,k&&T)_[T]="translate3d("+n+"px, "+r+"px, 0)",_[E]=0,_[P]=0,_.willChange="transform";else{var A="bottom"===E?-1:1,j="right"===P?-1:1;_[E]=r*A,_[P]=n*j,_.willChange=E+", "+P}var O={"x-placement":t.placement};return t.attributes=jy({},O,t.attributes),t.styles=jy({},_,t.styles),t.arrowStyles=jy({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return ev(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&ev(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=Ny(i,e,t,n.positionFixed),s=Ly(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),ev(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},lv={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:av},cv=function(){function t(e,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=dy(this.update.bind(this)),this.options=jy({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(jy({},t.Defaults.modifiers,i.modifiers)).forEach((function(e){r.options.modifiers[e]=jy({},t.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return jy({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&fy(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Ty(t,[{key:"update",value:function(){return Uy.call(this)}},{key:"destroy",value:function(){return Ky.call(this)}},{key:"enableEventListeners",value:function(){return Qy.call(this)}},{key:"disableEventListeners",value:function(){return Zy.call(this)}}]),t}();cv.Utils=("undefined"!=typeof window?window:global).PopperUtils,cv.placements=iv,cv.Defaults=lv;var uv=["innerHTML","ownerDocument","style","attributes","nodeValue"],pv=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],hv=["bigint","boolean","null","number","string","symbol","undefined"];function dv(t){var e,n=Object.prototype.toString.call(t).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(e=n,pv.includes(e)?n:void 0)}function fv(t){return function(e){return dv(e)===t}}function mv(t){return function(e){return typeof e===t}}function gv(t){if(null===t)return"null";switch(typeof t){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return gv.array(t)?"Array":gv.plainFunction(t)?"Function":dv(t)||"Object"}function yv(t){return function(e){return typeof e===t}}gv.array=Array.isArray,gv.arrayOf=function(t,e){return!(!gv.array(t)&&!gv.function(e))&&t.every((function(t){return e(t)}))},gv.asyncGeneratorFunction=function(t){return"AsyncGeneratorFunction"===dv(t)},gv.asyncFunction=fv("AsyncFunction"),gv.bigint=mv("bigint"),gv.boolean=function(t){return!0===t||!1===t},gv.date=fv("Date"),gv.defined=function(t){return!gv.undefined(t)},gv.domElement=function(t){return gv.object(t)&&!gv.plainObject(t)&&1===t.nodeType&&gv.string(t.nodeName)&&uv.every((function(e){return e in t}))},gv.empty=function(t){return gv.string(t)&&0===t.length||gv.array(t)&&0===t.length||gv.object(t)&&!gv.map(t)&&!gv.set(t)&&0===Object.keys(t).length||gv.set(t)&&0===t.size||gv.map(t)&&0===t.size},gv.error=fv("Error"),gv.function=mv("function"),gv.generator=function(t){return gv.iterable(t)&&gv.function(t.next)&&gv.function(t.throw)},gv.generatorFunction=fv("GeneratorFunction"),gv.instanceOf=function(t,e){return!(!t||!e)&&Object.getPrototypeOf(t)===e.prototype},gv.iterable=function(t){return!gv.nullOrUndefined(t)&&gv.function(t[Symbol.iterator])},gv.map=fv("Map"),gv.nan=function(t){return Number.isNaN(t)},gv.null=function(t){return null===t},gv.nullOrUndefined=function(t){return gv.null(t)||gv.undefined(t)},gv.number=function(t){return mv("number")(t)&&!gv.nan(t)},gv.numericString=function(t){return gv.string(t)&&t.length>0&&!Number.isNaN(Number(t))},gv.object=function(t){return!gv.nullOrUndefined(t)&&(gv.function(t)||"object"==typeof t)},gv.oneOf=function(t,e){return!!gv.array(t)&&t.indexOf(e)>-1},gv.plainFunction=fv("Function"),gv.plainObject=function(t){if("Object"!==dv(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.getPrototypeOf({})},gv.primitive=function(t){return gv.null(t)||(e=typeof t,hv.includes(e));var e},gv.promise=fv("Promise"),gv.propertyOf=function(t,e,n){if(!gv.object(t)||!e)return!1;var r=t[e];return gv.function(n)?n(r):gv.defined(r)},gv.regexp=fv("RegExp"),gv.set=fv("Set"),gv.string=mv("string"),gv.symbol=mv("symbol"),gv.undefined=mv("undefined"),gv.weakMap=fv("WeakMap"),gv.weakSet=fv("WeakSet");var vv=yv("function"),bv=function(t){return"RegExp"===Object.prototype.toString.call(t).slice(8,-1)},xv=function(t){return!wv(t)&&!function(t){return null===t}(t)&&(vv(t)||"object"==typeof t)},wv=yv("undefined"),kv=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Sv(t,e){if(t===e)return!0;if(t&&xv(t)&&e&&xv(e)){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)&&Array.isArray(e))return function(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=n;0!=r--;)if(!Sv(t[r],e[r]))return!1;return!0}(t,e);if(t instanceof Map&&e instanceof Map)return function(t,e){var n,r,i,o;if(t.size!==e.size)return!1;try{for(var s=kv(t.entries()),a=s.next();!a.done;a=s.next()){var l=a.value;if(!e.has(l[0]))return!1}}catch(p){n={error:p}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}try{for(var c=kv(t.entries()),u=c.next();!u.done;u=c.next())if(!Sv((l=u.value)[1],e.get(l[0])))return!1}catch(p){i={error:p}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return!0}(t,e);if(t instanceof Set&&e instanceof Set)return function(t,e){var n,r;if(t.size!==e.size)return!1;try{for(var i=kv(t.entries()),o=i.next();!o.done;o=i.next()){var s=o.value;if(!e.has(s[0]))return!1}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!0}(t,e);if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var n=new DataView(t.buffer),r=new DataView(e.buffer),i=t.byteLength;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}(t,e);if(bv(t)&&bv(e))return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=n.length;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=n.length;0!=i--;){var o=n[i];if(!("_owner"===o&&t.$$typeof||Sv(t[o],e[o])))return!1}return!0}return!(!Number.isNaN(t)||!Number.isNaN(e))||t===e}function Cv(t,e,n){var r=n.actual,i=n.key,o=n.previous,s=n.type,a=Ov(t,i),l=Ov(e,i),c=[a,l].every(gv.number)&&("increased"===s?a<l:a>l);return gv.undefined(r)||(c=c&&l===r),gv.undefined(o)||(c=c&&a===o),c}function _v(t,e,n){var r,i=n.key,o=n.type,s=n.value,a=Ov(t,i),l=Ov(e,i),c="added"===o?a:l,u="added"===o?l:a;return gv.nullOrUndefined(s)?[a,l].every(gv.array)?!u.every(Av(c)):[a,l].every(gv.plainObject)?(r=Object.keys(c),Object.keys(u).some((function(t){return!r.includes(t)}))):![a,l].every((function(t){return gv.primitive(t)&&gv.defined(t)}))&&("added"===o?!gv.defined(a)&&gv.defined(l):gv.defined(a)&&!gv.defined(l)):gv.defined(c)?!(!gv.array(c)&&!gv.plainObject(c))&&function(t,e,n){return!!jv(t,e)&&([t,e].every(gv.array)?!t.some(Pv(n))&&e.some(Pv(n)):[t,e].every(gv.plainObject)?!Object.entries(t).some(Ev(n))&&Object.entries(e).some(Ev(n)):e===n)}(c,u,s):Sv(u,s)}function $v(t,e,n){var r=(void 0===n?{}:n).key,i=Ov(t,r),o=Ov(e,r);if(!jv(i,o))throw new TypeError("Inputs have different types");if(!function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every((function(t){return gv.string(t)||gv.array(t)||gv.plainObject(t)}))}(i,o))throw new TypeError("Inputs don't have length");return[i,o].every(gv.plainObject)&&(i=Object.keys(i),o=Object.keys(o)),[i,o]}function Ev(t){return function(e){var n=e[0],r=e[1];return gv.array(t)?Sv(t,r)||t.some((function(t){return Sv(t,r)||gv.array(r)&&Av(r)(t)})):gv.plainObject(t)&&t[n]?!!t[n]&&Sv(t[n],r):Sv(t,r)}}function Pv(t){return function(e){return gv.array(t)?t.some((function(t){return Sv(t,e)||gv.array(e)&&Av(e)(t)})):Sv(t,e)}}function Tv(t,e){return gv.array(t)?t.some((function(t){return Sv(t,e)})):Sv(t,e)}function Av(t){return function(e){return t.some((function(t){return Sv(t,e)}))}}function jv(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.every(gv.array)||t.every(gv.number)||t.every(gv.plainObject)||t.every(gv.string)}function Ov(t,e){return gv.plainObject(t)||gv.array(t)?gv.string(e)?e.split(".").reduce((function(t,e){return t&&t[e]}),t):gv.number(e)?t[e]:t:t}function Mv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mv(Object(n),!0).forEach((function(e){Fv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Iv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rv(t,e,n){return e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qv(r.key),r)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fv(t,e,n){return(e=qv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lv(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&&zv(t,e)}function Nv(t){return(Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function zv(t,e){return(zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Vv(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Bv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nv(t);if(e){var i=Nv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Bv(t)}(this,n)}}function qv(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var Uv={flip:{padding:20},preventOverflow:{padding:10}};function Hv(t,e,n){return function(t,e){if("function"!=typeof t)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(e)&&"string"!=typeof e)throw new TypeError("The error message is optional, but must be a string if provided.")}(t,n),function(n,r,i){for(var o=arguments.length,s=new Array(o>3?o-3:0),a=3;a<o;a++)s[a-3]=arguments[a];return c=n,u=r,p=i,("boolean"==typeof(l=e)?l:"function"==typeof l?l(c,u,p):!0===Boolean(l)&&Boolean(l))?function(t,e){return Object.hasOwnProperty.call(t,e)}(n,r)?t.apply(void 0,[n,r,i].concat(s)):function(t,e,n){return new Error("Required ".concat(t[e]," `").concat(e,"` was not specified in `").concat(n,"`."))}(n,r,i):t.apply(void 0,[n,r,i].concat(s));var l,c,u,p}}var Gv={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing",ERROR:"error"},Kv=void 0!==n.createPortal;function Yv(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function Jv(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function Xv(t){var e=t.title,n=t.data,r=t.warn,i=void 0!==r&&r,o=t.debug,s=void 0!==o&&o,a=i?console.warn||console.error:console.log;s&&e&&n&&(Array.isArray(n)?n.forEach((function(t){gv.plainObject(t)&&t.key?a.apply(console,[t.key,t.value]):a.apply(console,[t])})):a.apply(console,[n]))}function Qv(){}var Zv=function(){Lv(r,e.Component);var t=Wv(r);function r(){return Iv(this,r),t.apply(this,arguments)}return Rv(r,[{key:"componentDidMount",value:function(){Yv()&&(this.node||this.appendNode(),Kv||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Yv()&&(Kv||this.renderPortal())}},{key:"componentWillUnmount",value:function(){Yv()&&this.node&&(Kv||n.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var t=this.props,e=t.id,n=t.zIndex;this.node||(this.node=document.createElement("div"),e&&(this.node.id=e),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Yv())return null;var t=this.props,r=t.children,i=t.setRef;return this.node||this.appendNode(),Kv?n.createPortal(r,this.node):(i(n.unstable_renderSubtreeIntoContainer(this,r.length>1?e.createElement("div",null,r):r[0],this.node)),null)}},{key:"renderReact16",value:function(){var t=this.props,e=t.hasChildren,n=t.placement,r=t.target;return e||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return Kv?this.renderReact16():null}}]),r}();Fv(Zv,"propTypes",{children:uy.oneOfType([uy.element,uy.array]),hasChildren:uy.bool,id:uy.oneOfType([uy.string,uy.number]),placement:uy.string,setRef:uy.func.isRequired,target:uy.oneOfType([uy.object,uy.string]),zIndex:uy.number});var tb=function(){Lv(n,e.Component);var t=Wv(n);function n(){return Iv(this,n),t.apply(this,arguments)}return Rv(n,[{key:"parentStyle",get:function(){var t=this.props,e=t.placement,n=t.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return e.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):e.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):e.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):e.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var t,n=this.props,r=n.placement,i=n.setArrowRef,o=n.styles.arrow,s=o.color,a=o.display,l=o.length,c=o.margin,u=o.position,p=o.spread,h={display:a,position:u},d=p,f=l;return r.startsWith("top")?(t="0,0 ".concat(d/2,",").concat(f," ").concat(d,",0"),h.bottom=0,h.marginLeft=c,h.marginRight=c):r.startsWith("bottom")?(t="".concat(d,",").concat(f," ").concat(d/2,",0 0,").concat(f),h.top=0,h.marginLeft=c,h.marginRight=c):r.startsWith("left")?(f=p,t="0,0 ".concat(d=l,",").concat(f/2," 0,").concat(f),h.right=0,h.marginTop=c,h.marginBottom=c):r.startsWith("right")&&(f=p,t="".concat(d=l,",").concat(f," ").concat(d,",0 0,").concat(f/2),h.left=0,h.marginTop=c,h.marginBottom=c),e.createElement("div",{className:"__floater__arrow",style:this.parentStyle},e.createElement("span",{ref:i,style:h},e.createElement("svg",{width:d,height:f,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},e.createElement("polygon",{points:t,fill:s}))))}}]),n}();Fv(tb,"propTypes",{placement:uy.string.isRequired,setArrowRef:uy.func.isRequired,styles:uy.object.isRequired});var eb=["color","height","width"];function nb(t){var n=t.handleClick,r=t.styles,i=r.color,o=r.height,s=r.width,a=Vv(r,eb);return e.createElement("button",{"aria-label":"close",onClick:n,style:a,type:"button"},e.createElement("svg",{width:"".concat(s,"px"),height:"".concat(o,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},e.createElement("g",null,e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:i}))))}function rb(t){var n=t.content,r=t.footer,i=t.handleClick,o=t.open,s=t.positionWrapper,a=t.showCloseButton,l=t.title,c=t.styles,u={content:e.isValidElement(n)?n:e.createElement("div",{className:"__floater__content",style:c.content},n)};return l&&(u.title=e.isValidElement(l)?l:e.createElement("div",{className:"__floater__title",style:c.title},l)),r&&(u.footer=e.isValidElement(r)?r:e.createElement("div",{className:"__floater__footer",style:c.footer},r)),!a&&!s||gv.boolean(o)||(u.close=e.createElement(nb,{styles:c.close,handleClick:i})),e.createElement("div",{className:"__floater__container",style:c.container},u.close,u.title,u.content,u.footer)}nb.propTypes={handleClick:uy.func.isRequired,styles:uy.object.isRequired},rb.propTypes={content:uy.node.isRequired,footer:uy.node,handleClick:uy.func.isRequired,open:uy.bool,positionWrapper:uy.bool.isRequired,showCloseButton:uy.bool.isRequired,styles:uy.object.isRequired,title:uy.node};var ib=function(){Lv(n,e.Component);var t=Wv(n);function n(){return Iv(this,n),t.apply(this,arguments)}return Rv(n,[{key:"style",get:function(){var t=this.props,e=t.disableAnimation,n=t.component,r=t.placement,i=t.hideArrow,o=t.status,s=t.styles,a=s.arrow.length,l=s.floater,c=s.floaterCentered,u=s.floaterClosing,p=s.floaterOpening,h=s.floaterWithAnimation,d=s.floaterWithComponent,f={};return i||(r.startsWith("top")?f.padding="0 0 ".concat(a,"px"):r.startsWith("bottom")?f.padding="".concat(a,"px 0 0"):r.startsWith("left")?f.padding="0 ".concat(a,"px 0 0"):r.startsWith("right")&&(f.padding="0 0 0 ".concat(a,"px"))),-1!==[Gv.OPENING,Gv.OPEN].indexOf(o)&&(f=Dv(Dv({},f),p)),o===Gv.CLOSING&&(f=Dv(Dv({},f),u)),o!==Gv.OPEN||e||(f=Dv(Dv({},f),h)),"center"===r&&(f=Dv(Dv({},f),c)),n&&(f=Dv(Dv({},f),d)),Dv(Dv({},l),f)}},{key:"render",value:function(){var t=this.props,n=t.component,r=t.handleClick,i=t.hideArrow,o=t.setFloaterRef,s=t.status,a={},l=["__floater"];return a.content=n?e.isValidElement(n)?e.cloneElement(n,{closeFn:r}):n({closeFn:r}):e.createElement(rb,this.props),s===Gv.OPEN&&l.push("__floater__open"),i||(a.arrow=e.createElement(tb,this.props)),e.createElement("div",{ref:o,className:l.join(" "),style:this.style},e.createElement("div",{className:"__floater__body"},a.content,a.arrow))}}]),n}();Fv(ib,"propTypes",{component:uy.oneOfType([uy.func,uy.element]),content:uy.node,disableAnimation:uy.bool.isRequired,footer:uy.node,handleClick:uy.func.isRequired,hideArrow:uy.bool.isRequired,open:uy.bool,placement:uy.string.isRequired,positionWrapper:uy.bool.isRequired,setArrowRef:uy.func.isRequired,setFloaterRef:uy.func.isRequired,showCloseButton:uy.bool,status:uy.string.isRequired,styles:uy.object.isRequired,title:uy.node});var ob=function(){Lv(n,e.Component);var t=Wv(n);function n(){return Iv(this,n),t.apply(this,arguments)}return Rv(n,[{key:"render",value:function(){var t,n=this.props,r=n.children,i=n.handleClick,o=n.handleMouseEnter,s=n.handleMouseLeave,a=n.setChildRef,l=n.setWrapperRef,c=n.style,u=n.styles;if(r)if(1===e.Children.count(r))if(e.isValidElement(r)){var p=gv.function(r.type)?"innerRef":"ref";t=e.cloneElement(e.Children.only(r),Fv({},p,a))}else t=e.createElement("span",null,r);else t=r;return t?e.createElement("span",{ref:l,style:Dv(Dv({},u),c),onClick:i,onMouseEnter:o,onMouseLeave:s},t):null}}]),n}();Fv(ob,"propTypes",{children:uy.node,handleClick:uy.func.isRequired,handleMouseEnter:uy.func.isRequired,handleMouseLeave:uy.func.isRequired,setChildRef:uy.func.isRequired,setWrapperRef:uy.func.isRequired,style:uy.object,styles:uy.object.isRequired});var sb={zIndex:100},ab=["arrow","flip","offset"],lb=["position","top","right","bottom","left"],cb=function(){Lv(n,e.Component);var t=Wv(n);function n(e){var r;return Iv(this,n),Fv(Bv(r=t.call(this,e)),"setArrowRef",(function(t){r.arrowRef=t})),Fv(Bv(r),"setChildRef",(function(t){r.childRef=t})),Fv(Bv(r),"setFloaterRef",(function(t){r.floaterRef=t})),Fv(Bv(r),"setWrapperRef",(function(t){r.wrapperRef=t})),Fv(Bv(r),"handleTransitionEnd",(function(){var t=r.state.status,e=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:t===Gv.OPENING?Gv.OPEN:Gv.IDLE},(function(){var t=r.state.status;e(t===Gv.OPEN?"open":"close",r.props)}))})),Fv(Bv(r),"handleClick",(function(){var t=r.props,e=t.event,n=t.open;if(!gv.boolean(n)){var i=r.state,o=i.positionWrapper,s=i.status;("click"===r.event||"hover"===r.event&&o)&&(Xv({title:"click",data:[{event:e,status:s===Gv.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}})),Fv(Bv(r),"handleMouseEnter",(function(){var t=r.props,e=t.event,n=t.open;if(!gv.boolean(n)&&!Jv()){var i=r.state.status;"hover"===r.event&&i===Gv.IDLE&&(Xv({title:"mouseEnter",data:[{key:"originalEvent",value:e}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}})),Fv(Bv(r),"handleMouseLeave",(function(){var t=r.props,e=t.event,n=t.eventDelay,i=t.open;if(!gv.boolean(i)&&!Jv()){var o=r.state,s=o.status,a=o.positionWrapper;"hover"===r.event&&(Xv({title:"mouseLeave",data:[{key:"originalEvent",value:e}],debug:r.debug}),n?-1===[Gv.OPENING,Gv.OPEN].indexOf(s)||a||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout((function(){delete r.eventDelayTimeout,r.toggle()}),1e3*n)):r.toggle(Gv.IDLE))}})),r.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:Gv.INIT,statusWrapper:Gv.INIT},r._isMounted=!1,r.hasMounted=!1,Yv()&&window.addEventListener("load",(function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()})),r}return Rv(n,[{key:"componentDidMount",value:function(){if(Yv()){var t=this.state.positionWrapper,e=this.props,n=e.children,r=e.open,i=e.target;this._isMounted=!0,Xv({title:"init",data:{hasChildren:!!n,hasTarget:!!i,isControlled:gv.boolean(r),positionWrapper:t,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&i&&gv.boolean(r)}}},{key:"componentDidUpdate",value:function(t,e){if(Yv()){var n,r=this.props,i=r.autoOpen,o=r.open,s=r.target,a=r.wrapperOptions,l=function(t,e){if([t,e].some(gv.nullOrUndefined))throw new Error("Missing required parameters");if(![t,e].every((function(t){return gv.plainObject(t)||gv.array(t)})))throw new Error("Expected plain objects or array");var n=function(n,r,i){try{var o=Ov(t,n),s=Ov(e,n),a=gv.defined(r),l=gv.defined(i);if(a||l){var c=l?Tv(i,o):!Tv(r,o),u=Tv(r,s);return c&&u}return[o,s].every(gv.array)||[o,s].every(gv.plainObject)?!Sv(o,s):o!==s}catch(p){return!1}};return{added:function(n,r){try{return _v(t,e,{key:n,type:"added",value:r})}catch(i){return!1}},changed:n,changedFrom:function(n,r,i){if(!gv.defined(n))return!1;try{var o=Ov(t,n),s=Ov(e,n),a=gv.defined(i);return Tv(r,o)&&(a?Tv(i,s):!a)}catch(l){return!1}},changedTo:function(t,e){return!!gv.defined(t)&&(process.env.NODE_ENV,n(t,e))},decreased:function(n,r,i){if(!gv.defined(n))return!1;try{return Cv(t,e,{key:n,actual:r,previous:i,type:"decreased"})}catch(o){return!1}},emptied:function(n){try{var r=$v(t,e,{key:n}),i=r[0],o=r[1];return!!i.length&&!o.length}catch(s){return!1}},filled:function(n){try{var r=$v(t,e,{key:n}),i=r[0],o=r[1];return!i.length&&!!o.length}catch(s){return!1}},increased:function(n,r,i){if(!gv.defined(n))return!1;try{return Cv(t,e,{key:n,actual:r,previous:i,type:"increased"})}catch(o){return!1}},removed:function(n,r){try{return _v(t,e,{key:n,type:"removed",value:r})}catch(i){return!1}}}}(e,this.state),c=l.changedFrom,u=l.changed;t.open!==o&&(gv.boolean(o)&&(n=o?Gv.OPENING:Gv.CLOSING),this.toggle(n)),t.wrapperOptions.position===a.position&&t.target===s||this.changeWrapperPosition(this.props),(u("status",Gv.IDLE)&&o||c("status",Gv.INIT,Gv.IDLE)&&i)&&this.toggle(Gv.OPEN),this.popper&&u("status",Gv.OPENING)&&this.popper.instance.update(),this.floaterRef&&(u("status",Gv.OPENING)||u("status",Gv.CLOSING))&&function(t,e,n){var r;r=function(i){n(i),function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,r)}(t,e,r)},function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.addEventListener(e,n,r)}(t,e,r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),u("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Yv()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,i=r.disableFlip,o=r.getPopper,s=r.hideArrow,a=r.offset,l=r.placement,c=r.wrapperOptions,u="top"===l||"bottom"===l?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===l)this.setState({status:Gv.IDLE});else if(e&&this.floaterRef){var p=this.options,h=p.arrow,d=p.flip,f=p.offset,m=Vv(p,ab);new cv(e,this.floaterRef,{placement:l,modifiers:Dv({arrow:Dv({enabled:!s,element:this.arrowRef},h),flip:Dv({enabled:!i,behavior:u},d),offset:Dv({offset:"0, ".concat(a,"px")},f)},m),onCreate:function(e){var n;t.popper=e,null!==(n=t.floaterRef)&&void 0!==n&&n.isConnected?(o(e,"floater"),t._isMounted&&t.setState({currentPlacement:e.placement,status:Gv.IDLE}),l!==e.placement&&setTimeout((function(){e.instance.update()}),1)):t.setState({needsUpdate:!0})},onUpdate:function(e){t.popper=e;var n=t.state.currentPlacement;t._isMounted&&e.placement!==n&&t.setState({currentPlacement:e.placement})}})}if(n){var g=gv.undefined(c.offset)?0:c.offset;new cv(this.target,this.wrapperRef,{placement:c.placement||l,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(g,"px")},flip:{enabled:!1}},onCreate:function(e){t.wrapperPopper=e,t._isMounted&&t.setState({statusWrapper:Gv.IDLE}),o(e,"wrapper"),l!==e.placement&&setTimeout((function(){e.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var t=this;this.floaterRefInterval=setInterval((function(){var e;null!==(e=t.floaterRef)&&void 0!==e&&e.isConnected&&(clearInterval(t.floaterRefInterval),t.setState({needsUpdate:!1}),t.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(t){var e=t.target,n=t.wrapperOptions;this.setState({positionWrapper:n.position&&!!e})}},{key:"toggle",value:function(t){var e=this.state.status===Gv.OPEN?Gv.CLOSING:Gv.OPENING;gv.undefined(t)||(e=t),this.setState({status:e})}},{key:"debug",get:function(){return this.props.debug||Yv()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var t=this.props,e=t.disableHoverToClick,n=t.event;return"hover"===n&&Jv()&&!e?"click":n}},{key:"options",get:function(){var t=this.props.options;return zg(Uv,t||{})}},{key:"styles",get:function(){var t,e,n=this,r=this.state,i=r.status,o=r.positionWrapper,s=r.statusWrapper,a=this.props.styles,l=zg({wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:(e=zg(sb,a.options||{})).zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:e.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:e},a);if(o&&(t=-1===[Gv.IDLE].indexOf(i)||-1===[Gv.IDLE].indexOf(s)?l.wrapperPosition:this.wrapperPopper.styles,l.wrapper=Dv(Dv({},l.wrapper),t)),this.target){var c=window.getComputedStyle(this.target);this.wrapperStyles?l.wrapper=Dv(Dv({},l.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(c.position)&&(this.wrapperStyles={},o||(lb.forEach((function(t){n.wrapperStyles[t]=c[t]})),l.wrapper=Dv(Dv({},l.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return l}},{key:"target",get:function(){if(!Yv())return null;var t=this.props.target;return t?gv.domElement(t)?t:document.querySelector(t):this.childRef||this.wrapperRef}},{key:"render",value:function(){var t=this.state,n=t.currentPlacement,r=t.positionWrapper,i=t.status,o=this.props,s=o.children,a=o.component,l=o.content,c=o.disableAnimation,u=o.footer,p=o.hideArrow,h=o.id,d=o.open,f=o.showCloseButton,m=o.style,g=o.target,y=o.title,v=e.createElement(ob,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},s),b={};return r?b.wrapperInPortal=v:b.wrapperAsChildren=v,e.createElement("span",null,e.createElement(Zv,{hasChildren:!!s,id:h,placement:n,setRef:this.setFloaterRef,target:g,zIndex:this.styles.options.zIndex},e.createElement(ib,{component:a,content:l,disableAnimation:c,footer:u,handleClick:this.handleClick,hideArrow:p||"center"===n,open:d,placement:n,positionWrapper:r,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:f,status:i,styles:this.styles,title:y}),b.wrapperInPortal),b.wrapperAsChildren)}}]),n}();Fv(cb,"propTypes",{autoOpen:uy.bool,callback:uy.func,children:uy.node,component:Hv(uy.oneOfType([uy.func,uy.element]),(function(t){return!t.content})),content:Hv(uy.node,(function(t){return!t.component})),debug:uy.bool,disableAnimation:uy.bool,disableFlip:uy.bool,disableHoverToClick:uy.bool,event:uy.oneOf(["hover","click"]),eventDelay:uy.number,footer:uy.node,getPopper:uy.func,hideArrow:uy.bool,id:uy.oneOfType([uy.string,uy.number]),offset:uy.number,open:uy.bool,options:uy.object,placement:uy.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:uy.bool,style:uy.object,styles:uy.object,target:uy.oneOfType([uy.object,uy.string]),title:uy.node,wrapperOptions:uy.shape({offset:uy.number,placement:uy.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:uy.bool})}),Fv(cb,"defaultProps",{autoOpen:!1,callback:Qv,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Qv,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var ub=Object.defineProperty,pb=(t,e,n)=>{return o=n,(i="symbol"!=typeof e?e+"":e)in(r=t)?ub(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o;var r,i,o},hb="start",db="stop",fb="reset",mb="prev",gb="next",yb="close",vb="skip",bb="update",xb={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},wb={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},kb={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function Sb(){var t;return!("undefined"==typeof window||!(null==(t=window.document)?void 0:t.createElement))}function Cb(t){return t?t.getBoundingClientRect():null}function _b(t=!1){const{body:e,documentElement:n}=document;if(!e||!n)return 0;if(t){const t=[e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight].sort(((t,e)=>t-e)),r=Math.floor(t.length/2);return t.length%2==0?(t[r-1]+t[r])/2:t[r]}return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}function $b(t){if("string"==typeof t)try{return document.querySelector(t)}catch(e){return process.env.NODE_ENV,null}return t}function Eb(t,e,n){if(!t)return Ab();const r=Tg(t);if(r){if(r.isSameNode(Ab()))return n?document:Ab();if(!(r.scrollHeight>r.offsetHeight||e))return r.style.overflow="initial",Ab()}return r}function Pb(t,e){if(!t)return!1;const n=Eb(t,e);return!!n&&!n.isSameNode(Ab())}function Tb(t,e="fixed"){if(!(t&&t instanceof HTMLElement))return!1;const{nodeName:n}=t,r=(i=t)&&1===i.nodeType?getComputedStyle(i):null;var i;return"BODY"!==n&&"HTML"!==n&&(!(!r||r.position!==e)||!!t.parentNode&&Tb(t.parentNode,e))}function Ab(){var t;return null!=(t=document.scrollingElement)?t:document.documentElement}var jb=void 0!==n.createPortal;function Ob(t=navigator.userAgent){let e=t;return"undefined"==typeof window?e="node":document.documentMode?e="ie":/Edge/.test(t)?e="edge":Boolean(window.opera)||t.includes(" OPR/")?e="opera":void 0!==window.InstallTrigger?e="firefox":window.chrome?e="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(t)&&(e="safari"),e}function Mb(t){return Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function Db(t,n={}){const{defaultValue:r,step:i,steps:o}=n;let s=Og(t);return s?(s.includes("{step}")||s.includes("{steps}"))&&i&&o&&(s=s.replace("{step}",i.toString()).replace("{steps}",o.toString())):s=e.isValidElement(t)&&!Object.values(t.props).length&&"function"===Mb(t.type)?Db(t.type({}),n):Og(r),s}function Ib(t){const e=t.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,((t,e,n,r)=>e+e+n+n+r+r)),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function Rb(t){return t.disableBeacon||"center"===t.placement}function Fb(){return!["chrome","safari","firefox","opera"].includes(Ob())}function Lb({data:t,debug:e=!1,title:n,warn:r=!1}){const i=r?console.warn||console.error:console.log;e&&n&&t&&(Array.isArray(t)?t.forEach((t=>{cg.plainObject(t)&&t.key?i.apply(console,[t.key,t.value]):i.apply(console,[t])})):i.apply(console,[t]))}function Nb(t,...e){if(!cg.plainObject(t))throw new TypeError("Expected an object");const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&(e.includes(r)||(n[r]=t[r]));return n}function zb(t,n,r){const i=t=>t.replace("{step}",String(n)).replace("{steps}",String(r));if("string"===Mb(t))return i(t);if(!e.isValidElement(t))return t;const{children:o}=t.props;return"string"===Mb(o)&&o.includes("{step}")?e.cloneElement(t,{children:i(o)}):Array.isArray(o)?e.cloneElement(t,{children:o.map((t=>"string"==typeof t?i(t):zb(t,n,r)))}):"function"!==Mb(t.type)||Object.values(t.props).length?t:zb(t.type({}),n,r)}var Vb={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},Bb={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},Wb={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Bb,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},qb={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},Ub={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Hb={borderRadius:4,position:"absolute"};function Gb(t){return function(t,...e){if(!cg.plainObject(t))throw new TypeError("Expected an object");if(!e.length)return t;const n={};for(const r in t)({}).hasOwnProperty.call(t,r)&&e.includes(r)&&(n[r]=t[r]);return n}(t,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Kb(t,e){var n,r,i,o,s,a;const l=null!=e?e:{},c=zg.all([Wb,Gb(t),l],{isMergeableObject:cg.plainObject}),u=function(t,e){var n,r,i,o,s;const{floaterProps:a,styles:l}=t,c=zg(null!=(n=e.floaterProps)?n:{},null!=a?a:{}),u=zg(null!=l?l:{},null!=(r=e.styles)?r:{}),p=zg(qb,u.options||{}),h="center"===e.placement||e.disableBeacon;let{width:d}=p;window.innerWidth>480&&(d=380),"width"in p&&(d="number"==typeof p.width&&window.innerWidth<p.width?window.innerWidth-30:p.width);const f={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:p.zIndex},m={beacon:{...Ub,display:h?"none":"inline-block",height:p.beaconSize,position:"relative",width:p.beaconSize,zIndex:p.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:p.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${Ib(p.primaryColor).join(",")}, 0.2)`,border:`2px solid ${p.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:p.backgroundColor,borderRadius:5,boxSizing:"border-box",color:p.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:d},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...Ub,backgroundColor:p.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...Ub,color:p.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...Ub,color:p.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...Ub,color:p.textColor,fontSize:14},overlay:{...f,backgroundColor:p.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...f},overlayLegacyCenter:{...f,backgroundColor:p.overlayColor},spotlight:{...Hb,backgroundColor:"gray"},spotlightLegacy:{...Hb,boxShadow:`0 0 0 9999px ${p.overlayColor}, ${p.spotlightShadow}`},floaterStyles:{arrow:{color:null!=(s=null==(o=null==(i=null==c?void 0:c.styles)?void 0:i.arrow)?void 0:o.color)?s:p.arrowColor},options:{zIndex:p.zIndex+100}},options:p};return zg(m,u)}(t,c),p=Pb($b(c.target),c.disableScrollParentFix),h=zg.all([Vb,null!=(n=t.floaterProps)?n:{},null!=(r=c.floaterProps)?r:{}]);return h.offset=c.offset,h.styles=zg(null!=(i=h.styles)?i:{},u.floaterStyles),h.offset+=null!=(s=null!=(o=t.spotlightPadding)?o:c.spotlightPadding)?s:0,c.placementBeacon&&h.wrapperOptions&&(h.wrapperOptions.placement=c.placementBeacon),p&&h.options.preventOverflow&&(h.options.preventOverflow.boundariesElement="window"),{...c,locale:zg.all([Bb,null!=(a=t.locale)?a:{},c.locale||{}]),floaterProps:h,styles:Nb(u,"floaterStyles")}}function Yb(t,e=!1){return cg.plainObject(t)?!!t.target||(Lb({title:"validateStep",data:"target is missing from the step",warn:!0,debug:e}),!1):(Lb({title:"validateStep",data:"step must be an object",warn:!0,debug:e}),!1)}function Jb(t,e=!1){return cg.array(t)?t.every((t=>Yb(t,e))):(Lb({title:"validateSteps",data:"steps must be an array",warn:!0,debug:e}),!1)}var Xb,Qb={action:"init",controlled:!1,index:0,lifecycle:wb.INIT,origin:null,size:0,status:kb.IDLE},Zb=(Xb=Nb(Qb,"controlled","size"),Object.keys(Xb)),tx=class{constructor(t){pb(this,"beaconPopper"),pb(this,"tooltipPopper"),pb(this,"data",new Map),pb(this,"listener"),pb(this,"store",new Map),pb(this,"addListener",(t=>{this.listener=t})),pb(this,"setSteps",(t=>{const{size:e,status:n}=this.getState(),r={size:t.length,status:n};this.data.set("steps",t),n===kb.WAITING&&!e&&t.length&&(r.status=kb.RUNNING),this.setState(r)})),pb(this,"getPopper",(t=>"beacon"===t?this.beaconPopper:this.tooltipPopper)),pb(this,"setPopper",((t,e)=>{"beacon"===t?this.beaconPopper=e:this.tooltipPopper=e})),pb(this,"cleanupPoppers",(()=>{this.beaconPopper=null,this.tooltipPopper=null})),pb(this,"close",((t=null)=>{const{index:e,status:n}=this.getState();n===kb.RUNNING&&this.setState({...this.getNextState({action:yb,index:e+1,origin:t})})})),pb(this,"go",(t=>{const{controlled:e,status:n}=this.getState();if(e||n!==kb.RUNNING)return;const r=this.getSteps()[t];this.setState({...this.getNextState({action:"go",index:t}),status:r?n:kb.FINISHED})})),pb(this,"info",(()=>this.getState())),pb(this,"next",(()=>{const{index:t,status:e}=this.getState();e===kb.RUNNING&&this.setState(this.getNextState({action:gb,index:t+1}))})),pb(this,"open",(()=>{const{status:t}=this.getState();t===kb.RUNNING&&this.setState({...this.getNextState({action:bb,lifecycle:wb.TOOLTIP})})})),pb(this,"prev",(()=>{const{index:t,status:e}=this.getState();e===kb.RUNNING&&this.setState({...this.getNextState({action:mb,index:t-1})})})),pb(this,"reset",((t=!1)=>{const{controlled:e}=this.getState();e||this.setState({...this.getNextState({action:fb,index:0}),status:t?kb.RUNNING:kb.READY})})),pb(this,"skip",(()=>{const{status:t}=this.getState();t===kb.RUNNING&&this.setState({action:vb,lifecycle:wb.INIT,status:kb.SKIPPED})})),pb(this,"start",(t=>{const{index:e,size:n}=this.getState();this.setState({...this.getNextState({action:hb,index:cg.number(t)?t:e},!0),status:n?kb.RUNNING:kb.WAITING})})),pb(this,"stop",((t=!1)=>{const{index:e,status:n}=this.getState();[kb.FINISHED,kb.SKIPPED].includes(n)||this.setState({...this.getNextState({action:db,index:e+(t?1:0)}),status:kb.PAUSED})})),pb(this,"update",(t=>{var e,n,r,i;if(r=t,i=Zb,!(cg.plainObject(r)&&cg.array(i)&&Object.keys(r).every((t=>i.includes(t)))))throw new Error(`State is not valid. Valid keys: ${Zb.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...t,action:null!=(e=t.action)?e:bb,origin:null!=(n=t.origin)?n:null},!0)})}));const{continuous:e=!1,stepIndex:n,steps:r=[]}=null!=t?t:{};this.setState({action:"init",controlled:cg.number(n),continuous:e,index:cg.number(n)?n:0,lifecycle:wb.INIT,origin:null,status:r.length?kb.READY:kb.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Qb}}getNextState(t,e=!1){var n,r,i,o,s;const{action:a,controlled:l,index:c,size:u,status:p}=this.getState(),h=cg.number(t.index)?t.index:c,d=l&&!e?c:Math.min(Math.max(h,0),u);return{action:null!=(n=t.action)?n:a,controlled:l,index:d,lifecycle:null!=(r=t.lifecycle)?r:wb.INIT,origin:null!=(i=t.origin)?i:null,size:null!=(o=t.size)?o:u,status:d===u?kb.FINISHED:null!=(s=t.status)?s:p}}getSteps(){const t=this.data.get("steps");return Array.isArray(t)?t:[]}hasUpdatedState(t){return JSON.stringify(t)!==JSON.stringify(this.getState())}setState(t,e=!1){const n=this.getState(),{action:r,index:i,lifecycle:o,origin:s=null,size:a,status:l}={...n,...t};this.store.set("action",r),this.store.set("index",i),this.store.set("lifecycle",o),this.store.set("origin",s),this.store.set("size",a),this.store.set("status",l),e&&(this.store.set("controlled",t.controlled),this.store.set("continuous",t.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}},ex=function({styles:t}){return s.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:t})},nx=class extends s.Component{constructor(){super(...arguments),pb(this,"isActive",!1),pb(this,"resizeTimeout"),pb(this,"scrollTimeout"),pb(this,"scrollParent"),pb(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),pb(this,"hideSpotlight",(()=>{const{continuous:t,disableOverlay:e,lifecycle:n}=this.props,r=[wb.INIT,wb.BEACON,wb.COMPLETE,wb.ERROR];return e||(t?r.includes(n):n!==wb.TOOLTIP)})),pb(this,"handleMouseMove",(t=>{const{mouseOverSpotlight:e}=this.state,{height:n,left:r,position:i,top:o,width:s}=this.spotlightStyles,a="fixed"===i?t.clientY:t.pageY,l="fixed"===i?t.clientX:t.pageX,c=l>=r&&l<=r+s&&a>=o&&a<=o+n;c!==e&&this.updateState({mouseOverSpotlight:c})})),pb(this,"handleScroll",(()=>{const{target:t}=this.props,e=$b(t);if(this.scrollParent!==document){const{isScrolling:t}=this.state;t||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.updateState({isScrolling:!1,showSpotlight:!0})}),50)}else Tb(e,"sticky")&&this.updateState({})})),pb(this,"handleResize",(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.isActive&&this.forceUpdate()}),100)}))}componentDidMount(){const{debug:t,disableScrolling:e,disableScrollParentFix:n=!1,target:r}=this.props,i=$b(r);this.scrollParent=Eb(null!=i?i:document.body,n,!0),this.isActive=!0,"production"!==process.env.NODE_ENV&&!e&&Pb(i,!0)&&Lb({title:"step has a custom scroll parent and can cause trouble with scrolling",data:[{key:"parent",value:this.scrollParent}],debug:t}),window.addEventListener("resize",this.handleResize)}componentDidUpdate(t){var e;const{disableScrollParentFix:n,lifecycle:r,spotlightClicks:i,target:o}=this.props,{changed:s}=bg(t,this.props);if(s("target")||s("disableScrollParentFix")){const t=$b(o);this.scrollParent=Eb(null!=t?t:document.body,n,!0)}s("lifecycle",wb.TOOLTIP)&&(null==(e=this.scrollParent)||e.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((()=>{const{isScrolling:t}=this.state;t||this.updateState({showSpotlight:!0})}),100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(i&&r===wb.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==wb.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var t;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(t=this.scrollParent)||t.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:t}=this.state,{disableOverlayClose:e,placement:n,styles:r}=this.props;let i=r.overlay;return Fb()&&(i="center"===n?r.overlayLegacyCenter:r.overlayLegacy),{cursor:e?"default":"pointer",height:_b(),pointerEvents:t?"none":"auto",...i}}get spotlightStyles(){var t,e,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:o,spotlightPadding:s=0,styles:a,target:l}=this.props,c=$b(l),u=Cb(c),p=Tb(c),h=function(t,e,n){var r,i,o;const s=Cb(t),a=Eb(t,n),l=Pb(t,n),c=Tb(t);let u=0,p=null!=(r=null==s?void 0:s.top)?r:0;return l&&c?p=(null!=(i=null==t?void 0:t.offsetTop)?i:0)-(null!=(o=null==a?void 0:a.scrollTop)?o:0):a instanceof HTMLElement&&(u=a.scrollTop,l||Tb(t)||(p+=u),a.isSameNode(Ab())||(p+=Ab().scrollTop)),Math.floor(p-e)}(c,s,i);return{...Fb()?a.spotlightLegacy:a.spotlight,height:Math.round((null!=(t=null==u?void 0:u.height)?t:0)+2*s),left:Math.round((null!=(e=null==u?void 0:u.left)?e:0)-s),opacity:r?1:0,pointerEvents:o?"none":"auto",position:p?"fixed":"absolute",top:h,transition:"opacity 0.2s",width:Math.round((null!=(n=null==u?void 0:u.width)?n:0)+2*s)}}updateState(t){this.isActive&&this.setState((e=>({...e,...t})))}render(){const{showSpotlight:t}=this.state,{onClickOverlay:e,placement:n}=this.props,{hideSpotlight:r,overlayStyles:i,spotlightStyles:o}=this;if(r())return null;let a="center"!==n&&t&&s.createElement(ex,{styles:o});if("safari"===Ob()){const{mixBlendMode:t,zIndex:e,...n}=i;a=s.createElement("div",{style:{...n}},a),delete i.backgroundColor}return s.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:e,role:"presentation",style:i},a)}},rx=class extends s.Component{constructor(){super(...arguments),pb(this,"node",null)}componentDidMount(){const{id:t}=this.props;Sb()&&(this.node=document.createElement("div"),this.node.id=t,document.body.appendChild(this.node),jb||this.renderReact15())}componentDidUpdate(){Sb()&&(jb||this.renderReact15())}componentWillUnmount(){Sb()&&this.node&&(jb||a.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!Sb())return;const{children:t}=this.props;this.node&&a.unstable_renderSubtreeIntoContainer(this,t,this.node)}renderReact16(){if(!Sb()||!jb)return null;const{children:t}=this.props;return this.node?a.createPortal(t,this.node):null}render(){return jb?this.renderReact16():null}},ix=class{constructor(t,e){if(pb(this,"element"),pb(this,"options"),pb(this,"canBeTabbed",(t=>{const{tabIndex:e}=t;return!(null===e||e<0)&&this.canHaveFocus(t)})),pb(this,"canHaveFocus",(t=>{const e=t.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(e)&&!t.getAttribute("disabled")||"a"===e&&!!t.getAttribute("href"))&&this.isVisible(t)})),pb(this,"findValidTabElements",(()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed))),pb(this,"handleKeyDown",(t=>{const{code:e="Tab"}=this.options;t.code===e&&this.interceptTab(t)})),pb(this,"interceptTab",(t=>{t.preventDefault();const e=this.findValidTabElements(),{shiftKey:n}=t;if(!e.length)return;let r=document.activeElement?e.indexOf(document.activeElement):0;-1===r||!n&&r+1===e.length?r=0:n&&0===r?r=e.length-1:r+=n?-1:1,e[r].focus()})),pb(this,"isHidden",(t=>{const e=t.offsetWidth<=0&&t.offsetHeight<=0,n=window.getComputedStyle(t);return!(!e||t.innerHTML)||e&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display")})),pb(this,"isVisible",(t=>{let e=t;for(;e;)if(e instanceof HTMLElement){if(e===document.body)break;if(this.isHidden(e))return!1;e=e.parentNode}return!0})),pb(this,"removeScope",(()=>{window.removeEventListener("keydown",this.handleKeyDown)})),pb(this,"checkFocus",(t=>{document.activeElement!==t&&(t.focus(),window.requestAnimationFrame((()=>this.checkFocus(t))))})),pb(this,"setFocus",(()=>{const{selector:t}=this.options;if(!t)return;const e=this.element.querySelector(t);e&&window.requestAnimationFrame((()=>this.checkFocus(e)))})),!(t instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=t,this.options=e,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},ox=class extends s.Component{constructor(t){if(super(t),pb(this,"beacon",null),pb(this,"setBeaconRef",(t=>{this.beacon=t})),t.beaconComponent)return;const e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",t.nonce&&n.setAttribute("nonce",t.nonce),n.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),e.appendChild(n)}componentDidMount(){const{shouldFocus:t}=this.props;"production"!==process.env.NODE_ENV&&cg.domElement(this.beacon),setTimeout((()=>{cg.domElement(this.beacon)&&t&&this.beacon.focus()}),0)}componentWillUnmount(){const t=document.getElementById("joyride-beacon-animation");(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}render(){const{beaconComponent:t,continuous:e,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:l,styles:c}=this.props,u=Db(i.open),p={"aria-label":u,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:u};let h;if(t){const i=t;h=s.createElement(i,{continuous:e,index:n,isLastStep:r,size:a,step:l,...p})}else h=s.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},s.createElement("span",{style:c.beaconInner}),s.createElement("span",{style:c.beaconOuter}));return h}},sx=function({styles:t,...n}){const{color:r,height:i,width:o,...s}=t;return e.createElement("button",{style:s,type:"button",...n},e.createElement("svg",{height:"number"==typeof i?`${i}px`:i,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"==typeof o?`${o}px`:o,xmlns:"http://www.w3.org/2000/svg"},e.createElement("g",null,e.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))},ax=function(t){const{backProps:e,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:l,tooltipProps:c}=t,{content:u,hideBackButton:p,hideCloseButton:h,hideFooter:d,showSkipButton:f,styles:m,title:g}=l,y={};return y.primary=s.createElement("button",{"data-test-id":"button-primary",style:m.buttonNext,type:"button",...o}),f&&!i&&(y.skip=s.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:m.buttonSkip,type:"button",...a})),!p&&r>0&&(y.back=s.createElement("button",{"data-test-id":"button-back",style:m.buttonBack,type:"button",...e})),y.close=!h&&s.createElement(sx,{"data-test-id":"button-close",styles:m.buttonClose,...n}),s.createElement("div",{key:"JoyrideTooltip","aria-label":Db(null!=g?g:u),className:"react-joyride__tooltip",style:m.tooltip,...c},s.createElement("div",{style:m.tooltipContainer},g&&s.createElement("h1",{"aria-label":Db(g),style:m.tooltipTitle},g),s.createElement("div",{style:m.tooltipContent},u)),!d&&s.createElement("div",{style:m.tooltipFooter},s.createElement("div",{style:m.tooltipFooterSpacer},y.skip),y.back,y.primary),y.close)},lx=class extends s.Component{constructor(){super(...arguments),pb(this,"handleClickBack",(t=>{t.preventDefault();const{helpers:e}=this.props;e.prev()})),pb(this,"handleClickClose",(t=>{t.preventDefault();const{helpers:e}=this.props;e.close("button_close")})),pb(this,"handleClickPrimary",(t=>{t.preventDefault();const{continuous:e,helpers:n}=this.props;e?n.next():n.close("button_primary")})),pb(this,"handleClickSkip",(t=>{t.preventDefault();const{helpers:e}=this.props;e.skip()})),pb(this,"getElementsProps",(()=>{const{continuous:t,index:e,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:s,close:a,last:l,next:c,nextLabelWithProgress:u,skip:p}=o.locale,h=Db(s),d=Db(a),f=Db(l),m=Db(c),g=Db(p);let y=a,v=d;if(t){if(y=c,v=m,o.showProgress&&!n){const t=Db(u,{step:e+1,steps:i});y=zb(u,e+1,i),v=t}n&&(y=l,v=f)}return{backProps:{"aria-label":h,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:h},closeProps:{"aria-label":d,children:a,"data-action":"close",onClick:this.handleClickClose,role:"button",title:d},primaryProps:{"aria-label":v,children:y,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:v},skipProps:{"aria-label":g,children:p,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:g},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}}))}render(){const{continuous:t,index:e,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:l,...c}=o;let u;if(l){const o={...this.getElementsProps(),continuous:t,index:e,isLastStep:n,size:i,step:c,setTooltipRef:r},a=l;u=s.createElement(a,{...o})}else u=s.createElement(ax,{...this.getElementsProps(),continuous:t,index:e,isLastStep:n,size:i,step:o});return u}},cx=class extends s.Component{constructor(){super(...arguments),pb(this,"scope",null),pb(this,"tooltip",null),pb(this,"handleClickHoverBeacon",(t=>{const{step:e,store:n}=this.props;"mouseenter"===t.type&&"hover"!==e.event||n.update({lifecycle:wb.TOOLTIP})})),pb(this,"setTooltipRef",(t=>{this.tooltip=t})),pb(this,"setPopper",((t,e)=>{var n;const{action:r,lifecycle:i,step:o,store:s}=this.props;"wrapper"===e?s.setPopper("beacon",t):s.setPopper("tooltip",t),s.getPopper("beacon")&&(s.getPopper("tooltip")||"center"===o.placement)&&i===wb.INIT&&s.update({action:r,lifecycle:wb.READY}),(null==(n=o.floaterProps)?void 0:n.getPopper)&&o.floaterProps.getPopper(t,e)})),pb(this,"renderTooltip",(t=>{const{continuous:e,helpers:n,index:r,size:i,step:o}=this.props;return s.createElement(lx,{continuous:e,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...t})}))}componentDidMount(){const{debug:t,index:e}=this.props;Lb({title:`step:${e}`,data:[{key:"props",value:this.props}],debug:t})}componentDidUpdate(t){var e;const{action:n,callback:r,continuous:i,controlled:o,debug:s,helpers:a,index:l,lifecycle:c,shouldScroll:u,status:p,step:h,store:d}=this.props,{changed:f,changedFrom:m}=bg(t,this.props),g=a.info(),y=i&&n!==yb&&(l>0||n===mb),v=f("action")||f("index")||f("lifecycle")||f("status"),b=m("lifecycle",[wb.TOOLTIP,wb.INIT],wb.INIT),x=f("action",[gb,mb,vb,yb]),w=o&&l===t.index;if(x&&(b||w)&&r({...g,index:t.index,lifecycle:wb.COMPLETE,step:t.step,type:xb.STEP_AFTER}),"center"===h.placement&&p===kb.RUNNING&&f("index")&&n!==hb&&c===wb.INIT&&d.update({lifecycle:wb.READY}),v){const t=$b(h.target);!!t&&function(t){var e;if(!t)return!1;let n=t;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:t,visibility:e}=getComputedStyle(n);if("none"===t||"hidden"===e)return!1}n=null!=(e=n.parentElement)?e:null}return!0}(t)?(m("status",kb.READY,kb.RUNNING)||m("lifecycle",wb.INIT,wb.READY))&&r({...g,step:h,type:xb.STEP_BEFORE}):(r({...g,type:xb.TARGET_NOT_FOUND,step:h}),o||d.update({index:l+(n===mb?-1:1)}))}m("lifecycle",wb.INIT,wb.READY)&&d.update({lifecycle:Rb(h)||y?wb.TOOLTIP:wb.BEACON}),f("index")&&Lb({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:s}),f("lifecycle",wb.BEACON)&&r({...g,step:h,type:xb.BEACON}),f("lifecycle",wb.TOOLTIP)&&(r({...g,step:h,type:xb.TOOLTIP}),u&&this.tooltip&&(this.scope=new ix(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),m("lifecycle",[wb.TOOLTIP,wb.INIT],wb.INIT)&&(null==(e=this.scope)||e.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var t;null==(t=this.scope)||t.removeScope()}get open(){const{lifecycle:t,step:e}=this.props;return Rb(e)||t===wb.TOOLTIP}render(){const{continuous:t,debug:e,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,l=$b(a.target);return Yb(a)&&cg.domElement(l)?s.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},s.createElement(cb,{...a.floaterProps,component:this.renderTooltip,debug:e,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},s.createElement(ox,{beaconComponent:a.beaconComponent,continuous:t,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles}))):null}},ux=class extends s.Component{constructor(t){super(t),pb(this,"helpers"),pb(this,"store"),pb(this,"callback",(t=>{const{callback:e}=this.props;cg.function(e)&&e(t)})),pb(this,"handleKeyboard",(t=>{const{index:e,lifecycle:n}=this.state,{steps:r}=this.props,i=r[e];n===wb.TOOLTIP&&"Escape"===t.code&&i&&!i.disableCloseOnEsc&&this.store.close("keyboard")})),pb(this,"handleClickOverlay",(()=>{const{index:t}=this.state,{steps:e}=this.props;Kb(this.props,e[t]).disableOverlayClose||this.helpers.close("overlay")})),pb(this,"syncState",(t=>{this.setState(t)}));const{debug:e,getHelpers:n,run:r=!0,stepIndex:i}=t;var o;this.store=(o={...t,controlled:r&&cg.number(i)},new tx(o)),this.helpers=this.store.getHelpers();const{addListener:s}=this.store;Lb({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:e}),s(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!Sb())return;const{debug:t,disableCloseOnEsc:e,run:n,steps:r}=this.props,{start:i}=this.store;Jb(r,t)&&n&&i(),e||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(t,e){if(!Sb())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:s,run:a,stepIndex:l,steps:c}=this.props,{stepIndex:u,steps:p}=t,{reset:h,setSteps:d,start:f,stop:m,update:g}=this.store,{changed:y}=bg(t,this.props),{changed:v,changedFrom:b}=bg(e,this.state),x=Kb(this.props,c[i]),w=!eg(p,c),k=cg.number(l)&&y("stepIndex"),S=$b(x.target);if(w&&(Jb(c,s)&&d(c)),y("run")&&(a?f(l):m()),k){let t=cg.number(u)&&u<l?gb:mb;n===db&&(t=hb),[kb.FINISHED,kb.SKIPPED].includes(o)||g({action:n===yb?yb:t,index:l,lifecycle:wb.INIT})}r||o!==kb.RUNNING||0!==i||S||(this.store.update({index:i+1}),this.callback({...this.state,type:xb.TARGET_NOT_FOUND,step:x}));const C={...this.state,index:i,step:x};if(v("action",[gb,mb,vb,yb])&&v("status",kb.PAUSED)){const t=Kb(this.props,c[e.index]);this.callback({...C,index:e.index,lifecycle:wb.COMPLETE,step:t,type:xb.STEP_AFTER})}if(v("status",[kb.FINISHED,kb.SKIPPED])){const t=Kb(this.props,c[e.index]);r||this.callback({...C,index:e.index,lifecycle:wb.COMPLETE,step:t,type:xb.STEP_AFTER}),this.callback({...C,type:xb.TOUR_END,step:t,index:e.index}),h()}else b("status",[kb.IDLE,kb.READY],kb.RUNNING)?this.callback({...C,type:xb.TOUR_START}):(v("status")||v("action",fb))&&this.callback({...C,type:xb.TOUR_STATUS});this.scrollToStep(e)}componentWillUnmount(){const{disableCloseOnEsc:t}=this.props;t||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(t){const{index:e,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:s,scrollOffset:a=20,scrollToFirstStep:l=!1,steps:c}=this.props,u=Kb(this.props,c[e]),p=$b(u.target),h=function(t){const{isFirstStep:e,lifecycle:n,previousLifecycle:r,scrollToFirstStep:i,step:o,target:s}=t;return!o.disableScrolling&&(!e||i||n===wb.TOOLTIP)&&"center"!==o.placement&&(!o.isFixed||!Tb(s))&&r!==n&&[wb.BEACON,wb.TOOLTIP].includes(n)}({isFirstStep:0===e,lifecycle:n,previousLifecycle:t.lifecycle,scrollToFirstStep:l,step:u,target:p});if(r===kb.RUNNING&&h){const t=Pb(p,o),l=Eb(p,o);let c=Math.floor(function(t,e,n){var r;if(!t)return 0;const{offsetTop:i=0,scrollTop:o=0}=null!=(r=Tg(t))?r:{};let s=t.getBoundingClientRect().top+o;i&&(Pb(t,n)||t.offsetParent!==document.body)&&(s-=i);const a=Math.floor(s-e);return a<0?0:a}(p,a,o))||0;Lb({title:"scrollToStep",data:[{key:"index",value:e},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const h=this.store.getPopper("beacon"),d=this.store.getPopper("tooltip");if(n===wb.BEACON&&h){const{offsets:e,placement:n}=h;["bottom"].includes(n)||t||(c=Math.floor(e.popper.top-a))}else if(n===wb.TOOLTIP&&d){const{flipped:e,offsets:n,placement:r}=d;!["top","right","left"].includes(r)||e||t?c-=u.spotlightPadding:c=Math.floor(n.popper.top-a)}c=c>=0?c:0,r===kb.RUNNING&&function(t,e){const{duration:n,element:r}=e;return new Promise(((e,i)=>{const{scrollTop:o}=r,s=t>o?t-o:o-t;Eg.top(r,t,{duration:s<100?50:n},(t=>t&&"Element already at target scroll position"!==t.message?i(t):e()))}))}(c,{element:l,duration:s}).then((()=>{setTimeout((()=>{var t;null==(t=this.store.getPopper("tooltip"))||t.instance.update()}),10)}))}}render(){if(!Sb())return null;const{index:t,lifecycle:e,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:l}=this.props,c={};if(n===kb.RUNNING&&l[t]){const n=Kb(this.props,l[t]);c.step=s.createElement(cx,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!n.disableScrolling&&(0!==t||a),step:n,store:this.store}),c.overlay=s.createElement(rx,{id:"react-joyride-portal"},s.createElement(nx,{...n,continuous:r,debug:i,lifecycle:e,onClickOverlay:this.handleClickOverlay}))}return s.createElement("div",{className:"react-joyride"},c.step,c.overlay)}};pb(ux,"defaultProps",{continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]});var px=ux;exports.Accordion=B,exports.Alert=jr,exports.BaseButtonComponent=T,exports.BaseComponent=P,exports.BaseSpanComponent=j,exports.BaseTextComponent=A,exports.Button=Or,exports.Carousel=({slides:t,interval:n=300})=>{const{cycle:r,setCycle:i,setProgress:o}=Lr(n,t.length),s=e.useCallback((t=>()=>{i(t),o(0)}),[i,o]);return y.jsxs(Mr,{children:[y.jsx(Dr,{$currentIndex:r,children:t.map(((t,e)=>{const n=`slide-${e}`;return y.jsx(Ir,{children:t.content},n)}))}),y.jsx(Fr,{children:t.map(((t,e)=>{const n=`nav-button-${e}`;return y.jsx(Rr,{$isActive:e===r,"data-testid":e===r?"active":"inactive",onClick:s(e)},n)}))})]})},exports.Checkbox=$i,exports.CloudImage=Ta,exports.CodeSnippet=({noCodeMessage:n="Code snippet not available",snippet:i})=>{const o=t.useTheme(),[s,a]=e.useState(!1),[l,c]=e.useState(!0),u=e.useCallback((()=>{a((t=>!t))}),[a]),p=e.useCallback((()=>{if(r.isNil(i)||r.isEmpty(i)||!r.isString(i))return c(!1),n;const t=i.split("\n");return t.length>8&&!s?`${[...t].splice(0,7).join("\n")}\n${t[8]}...`:(t.length<8&&c(!1),i)}),[s,i,n]),h=e.useMemo(p,[p]),d=e.useCallback((async()=>{await navigator.clipboard.writeText(h)}),[h]);return y.jsxs(M,{bgColor:o.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[y.jsx(Aa,{"data-private":!0,children:y.jsx("pre",{children:y.jsx("code",{className:"language-none",children:h})})}),y.jsxs(ja,{children:[y.jsx(Ar,{height:o.spacing[2.5],icon:"copy",iconColor:o.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:d,variant:"ghost",width:o.spacing[2.5]}),!!l&&y.jsxs(Or,{onClick:u,variant:"ghost",children:[s?"Show Less":"Show more",y.jsx(V,{icon:s?"chevron-up":"chevron-down",iconColor:o.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:d})]})]})]})},exports.Container=M,exports.ContentCard=Ia,exports.ContentCardCarousel=({description:t,items:n,title:r,titleHighlighted:i})=>{const o=e.useRef(null);return y.jsxs(Fa,{"data-testid":"content-card-carousel",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[y.jsxs(R,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[r+" "," ",y.jsx("span",{className:"inline",children:i})]}),y.jsx(F,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:t})]}),y.jsx(La,{containerRef:o,id:"desktop"})]}),y.jsx(M,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:o,scroll:"x",children:y.jsx(M,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map(((t,e)=>y.jsx(Ia,{...t},`${e}-${t.title}`)))})}),y.jsx(La,{containerRef:o,id:"mobile"})]})},exports.CustomThemeProvider=({children:e})=>y.jsx(t.ThemeProvider,{theme:v,children:e}),exports.Divider=Na,exports.FilePreview=({alt:t,fileType:e,width:n="100%",opacity:i=0,src:o,height:s="auto"})=>"video"===e||((t,e)=>!r.isUndefined(e)&&r.includes(t,(t=>{if(r.isNil(t))return"";const e=t.split(".");return(e.length>1?r.last(e):"").toLowerCase()})(e)))(["webm"],o)?y.jsx(za,{$opacity:i,children:y.jsxs("video",{controls:!0,height:s,muted:!0,width:n,children:[y.jsx("source",{src:o,type:"video/webm"}),y.jsx(Ua,{href:o,iconPosition:"hidden",children:o})]})}):y.jsx(za,{$opacity:i,children:y.jsx("img",{alt:t,height:s,src:o,width:n})}),exports.FixedTabs=({items:t})=>y.jsx(Lm,{children:t.map((({isActive:t,label:e,onClick:n},r)=>y.jsx(Fm,{className:t?"active":"",onClick:n,type:"button",children:y.jsx(R,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e})},`${e}-${r}`)))}),exports.Form=({children:t,name:e,onSubmit:n,submitDisabled:r,submitLabel:i="Submit"})=>y.jsx(Ha,{"aria-label":e,name:e,onSubmit:n,children:y.jsxs(Ga,{children:[t,y.jsx(Or,{disabled:r,type:"submit",children:i})]})}),exports.FormItem=Ka,exports.Heading=R,exports.Icon=V,exports.IconButton=Ar,exports.InteractiveCard=({category:e,description:n,href:r,icon:i,location:o,title:s})=>{const a=t.useTheme();return y.jsxs(El,{children:[y.jsxs(M,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(F,{color:a.palette.white,size:"sm",sizeSm:"xs",children:e}),y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:s})]}),y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsx(F,{color:a.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),y.jsx(F,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:o})]})]}),y.jsxs(M,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[y.jsx(R,{color:a.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:s}),y.jsxs("div",{className:"flex flex-col gap-8",children:[y.jsx(F,{color:a.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),y.jsx(Or,{external:!0,href:r,variant:"link",width:"max-content",children:"Download now"})]})]}),y.jsx(Tl,{icon:i})]})},exports.LanguageSelector=({items:t,handleClick:n,mode:r="light"})=>{const i=t??Il,[o,s]=e.useState(i[0].text),a=e.useCallback((t=>()=>{n(t.text),s(t.text)}),[n]);return y.jsxs(Ml,{children:[y.jsxs(jl,{className:r,children:[y.jsx(V,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),o]}),y.jsx(Ol,{children:i.map(((t,e)=>y.jsx(Dl,{disabled:t.disabled,mode:r,onClick:a(t),text:t.text},`${t.text}_${e}`)))})]})},exports.Link=Ua,exports.ListItem=({children:n,disabled:r=!1,icon:i,iconType:o="fa-light",href:s,onClick:a,onKeyDown:l,selected:c=!1,value:u,...p})=>{const h=t.useTheme().palette.gray[r?300:800],d=r?e.Children.map(n,(t=>e.isValidElement(t)?e.cloneElement(t,{disabled:r,...t.props}):t)):n;return y.jsxs(Rl,{"aria-disabled":r,"aria-label":u,"aria-selected":c,"data-testid":u,onClick:a,onKeyDown:l,value:u,...p,children:[void 0!==i||void 0!==u?y.jsxs(M,{alignItems:"center",display:"flex",gap:.625,children:[i?y.jsx(V,{disabled:r,icon:i,iconColor:h,iconSize:"xs",iconType:o}):null,void 0===s?d:y.jsx(Ua,{href:s,children:d})]}):null,c?y.jsx(V,{disabled:r,icon:"check",iconColor:h,iconSize:"xs",iconType:o}):null]})},exports.ListItemsWrapper=Fl,exports.LittleFlag=({bgColor:t,children:e,txtDecoration:n,ml:r=1})=>y.jsx(Ll,{$bgColor:t,$txtDecoration:n,className:`ml-${r}`,children:e}),exports.Loading=({color:e="red",label:n,size:r})=>{const i=t.useTheme();return y.jsxs(M,{alignItems:"center",display:"flex",children:[y.jsxs(Ul,{$size:r,viewBox:"0 0 100 100",children:[y.jsx(Gl,{$color:e,cx:"50",cy:"50",r:"45"}),y.jsx(Hl,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&y.jsx(F,{color:"red"===e?i.palette.gray[700]:i.palette.white,ml:.5,size:"sm",children:n})]})},exports.Logo=({publicId:t,variant:e})=>y.jsx(M,{...Kl[e],children:y.jsx(Ta,{alt:"logo",publicId:t})}),exports.LogoCarousel=({fusion:t=!1,logos:e=Ql})=>y.jsxs(Yl,{children:[t&&y.jsx(Jl,{className:"left"}),y.jsx(Xl,{children:[...e,...e].map(((t,e)=>y.jsx(Ta,{alt:`${t}-${e}`,height:"80px",plugins:[bs()],publicId:t,width:"140px"},`${t}-${e}`)))}),t&&y.jsx(Jl,{className:"right"})]}),exports.Lottie=t=>{const{size:e}=t;return y.jsx(ec,{$size:e,...t})},exports.Menu=({children:e,commitSha:n,commitShortSha:r,parentElement:i,userInfo:o,setVisibility:s})=>{const a=t.useTheme(),{userName:l,email:c,phone:u,userRole:p}=o;return Nr(i,(()=>{s(!1)})),y.jsxs(Fl,{children:[y.jsx("li",{className:"user-info",children:y.jsxs(M,{display:"inline-flex",gap:.25,width:"100%",children:[y.jsxs(M,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[y.jsx(F,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:l}),y.jsx(F,{color:a.palette.gray[400],size:"sm",children:c}),nc(u)?void 0:y.jsx(F,{color:a.palette.gray[400],size:"sm",children:u})]}),y.jsx(M,{children:y.jsx(oc,{variant:"role",children:p})})]})}),y.jsx(Na,{}),e,y.jsx(Na,{}),y.jsx("li",{className:"commit-info",children:y.jsx(Ua,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:y.jsx(F,{color:a.palette.gray[400],size:"xs",children:`commit : ${r}`})})})]})},exports.MessageBanner=({message:n,onClickButton:r,buttonText:i,buttonFontWeight:o="regular",icon:s,onClose:a,variant:l="web"})=>{const c=t.useTheme(),[u,p]=e.useState(!0),h=e.useCallback((()=>{p(!1),null==a||a()}),[a]),d=(t=>"platform"===t?{normal:"sm",small:void 0}:{normal:"md",small:"sm"})(l);return y.jsxs(M,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:u?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[y.jsxs(M,{display:"flex",gap:.5,justify:"center",width:"100%",children:[y.jsx(M,{children:"string"==typeof n?y.jsx(F,{color:c.palette.white,display:"inline",size:d.normal,sizeSm:d.small,children:n}):n}),r?y.jsxs(sc,{onClick:r,children:[y.jsx(F,{color:c.palette.white,fontWeight:o,size:d.normal,sizeSm:d.small,textDecoration:"underline",children:i}),y.jsx(V,{icon:s??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:"bold"===o?"fa-regular":"fa-light"})]}):void 0]}),y.jsx(V,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:h})]})},exports.Notification=({description:n,onClose:r,title:i,variant:o})=>{const s=t.useTheme(),a=e.useCallback((()=>{null==r||r()}),[r]);return y.jsxs(ac,{$variant:o,className:`notification notification__${o}`,children:[y.jsxs(lc,{$variant:o,children:[y.jsx(V,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),y.jsx(V,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),y.jsx(V,{icon:cc(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),y.jsxs(M,{pr:1.5,children:[y.jsx(R,{fontWeight:"bold",size:"xs",children:i}),y.jsx(F,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:n})]}),y.jsx(Ar,{height:"fit-content",icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},exports.NotificationSign=hc,exports.NumberInput=mc,exports.OutlineContainer=Cl,exports.PhoneInput=_l,exports.PremiumFeature=yc,exports.Progress=({progressTime:n=10,onComplete:r})=>{const i=t.useTheme(),[o,s]=e.useState(0);return e.useEffect((()=>{100===o&&(null==r||r())}),[o,r]),e.useEffect((()=>{const t=setInterval((()=>{s((t=>100===t?0:t+1))}),1e3*n/100);return()=>{clearInterval(t)}}),[o,n]),y.jsx(M,{bgColor:i.palette.gray[200],height:"4px",children:y.jsx(vc,{$animationTime:n,bgGradient:i.palette.gradients["01"],height:"100%",width:`${o}%`})})},exports.RadioButton=wc,exports.ScrollUpButton=({scrollerId:t="dashboard",visibleAt:n=500})=>{const[r,i]=e.useState(!1),[o,s]=e.useState(null);e.useEffect((()=>{s(document.getElementById(t)),null==o||o.addEventListener("scroll",(()=>{i(o.scrollTop>n)}))}),[o,t,n]);const a=e.useCallback((()=>{null==o||o.scrollTo({behavior:"smooth",top:0})}),[o]);return r?y.jsx(kc,{children:y.jsx(Ar,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:a,width:"40px"})}):null},exports.SearchBar=({items:t,placeholder:n="Search",refine:r,query:i})=>{const[o,s]=e.useState(i),[a,l]=e.useState(!1),c=e.useRef(null),u=e.useRef(null),p=o.length>=2,h=e.useCallback((t=>{s(t),r(t)}),[r]),d=e.useCallback((()=>{h("")}),[h]),f=e.useCallback((()=>{l(!0)}),[]),m=e.useCallback((t=>{h(t.currentTarget.value)}),[h]),g=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),d(),u.current&&u.current.focus()}),[d]),b=e.useCallback((t=>{t.preventDefault(),t.stopPropagation(),u.current&&u.current.blur()}),[]);return Nr(c.current,(()=>{d(),l(!1)}),!0),y.jsxs(_c,{ref:c,children:[y.jsxs($c,{action:"",noValidate:!0,onReset:g,onSubmit:b,role:"search",children:[y.jsxs("div",{className:"flex gap-2 w-full",children:[y.jsx("div",{className:"h-10 p-2",children:y.jsx(V,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),y.jsx(Ec,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:m,onFocus:f,placeholder:n,ref:u,spellCheck:!1,type:"search",value:o})]}),p&&y.jsx(Pc,{type:"reset",children:y.jsx(V,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),a&&o.length<2&&y.jsxs(Tc,{children:[y.jsx(F,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:jc.map((({hit:t,icon:e},n)=>y.jsx(Ac,{hit:t,icon:e,showIcon:!0},`${e}-${n}`)))}),y.jsx(F,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),y.jsx(Ac,{hit:Oc.hit,icon:Oc.icon,showIcon:!0})]}),p&&t.length>0&&y.jsxs(Tc,{$showHits:p,children:[y.jsx(F,{color:v.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),y.jsx("div",{className:"flex flex-col items-start self-stretch",children:t.map((t=>y.jsx(Ac,{hit:t},t.objectID)))})]}),p&&0===t.length&&y.jsx(Tc,{$empty:0===t.length,children:y.jsxs("div",{className:"items-center\tflex flex-col\tgap-4 py-[90px] w-full",children:[y.jsx(Ta,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),y.jsx(R,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),y.jsxs(F,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${o}” did not match.`,y.jsx("br",{}),"Please try again."]}),y.jsx(Or,{onClick:d,variant:"secondary",children:"Clear search"})]})})]})},exports.SeverityBadge=({textL:e,textR:n,variant:r})=>{const i=t.useTheme(),{bgColor:o,colorL:s,colorR:a}=Mc[r];return y.jsxs(M,{alignItems:"flex-start",display:"inline-flex",children:[y.jsx(M,{alignItems:"center",bgColor:i.palette.white,border:`1px solid ${o}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",pb:.125,pl:.25,pr:.25,pt:.125,children:y.jsx(F,{color:s,size:"sm",children:e})}),y.jsx(M,{alignItems:"center",bgColor:o,border:`1px solid ${o}`,borderRadius:"0px 4px 4px 0px",display:"flex",pb:.125,pl:.125,pr:.125,pt:.125,children:y.jsx(F,{color:a,size:"sm",children:n})})]})},exports.SeverityOverview=({critical:t,high:e,medium:n,low:r})=>y.jsxs(M,{alignItems:"center",display:"inline-flex",gap:1,children:[y.jsx(du,{value:t,variant:"critical"}),y.jsx(du,{value:e,variant:"high"}),y.jsx(du,{value:n,variant:"medium"}),y.jsx(du,{value:r,variant:"low"})]}),exports.ShowOnHover=({visibleElement:t,hiddenElement:e})=>y.jsxs(fu,{children:[t,y.jsx(M,{display:"none",position:"absolute",top:"100%",zIndex:10,children:e})]}),exports.SlideOutMenu=({children:n,closeIconId:r="close-menu",isOpen:i,items:o,onClose:s,primaryButtonText:a,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:u,title:p})=>{const h=t.useTheme(),d=e.useRef(null),f=e.useCallback((t=>()=>{t(),s()}),[s]);return Nr(d.current,(()=>{s()}),!0),y.jsx(_m,{features:Em,children:y.jsx(Tm,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:d,transition:{bounce:0,duration:.6,type:"spring"},children:y.jsxs(M,{height:"100%",position:"relative",children:[y.jsxs(M,{alignItems:"center",bgColor:h.palette.white,borderBottom:"1px solid",borderColor:h.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[y.jsx(F,{color:h.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),y.jsx(Ar,{icon:"close",iconColor:h.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:r,onClick:s,px:.25,py:.25,variant:"ghost"})]}),y.jsxs(M,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[y.jsxs(M,{py:1.25,children:[(o??[]).map((({customBadge:t,description:e,icon:n,onClick:r,requiresUpgrade:i,title:o})=>y.jsx(Pm,{customBadge:t,description:e,icon:n,onClick:f(r),requiresUpgrade:i,title:o},o))),n&&y.jsx(M,{px:1.25,children:n})]}),void 0===a?void 0:y.jsxs(M,{alignItems:"center",bgColor:h.palette.white,borderColor:h.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[void 0===c?void 0:y.jsx(Or,{color:`${h.palette.primary[500]} !important`,onClick:u,pl:.5,pr:.5,variant:"ghost",children:c}),y.jsx(Or,{onClick:l,type:"submit",children:a})]})]})]})})})},exports.StepLapse=({button:{disabled:t=!1,text:n,type:r="button",onClick:i},steps:o})=>{const[s,a]=e.useState(1),l=e.useCallback(((t,e)=>()=>{a((e=>e+t)),null==e||e()}),[]);return y.jsx(jm,{children:o.map(((e,a)=>{const{content:c,title:u,nextAction:p,previousAction:h}=e,d=a+1,f=d<s?"completed":d===s?"current":"disabled";return y.jsxs(Om,{children:[y.jsx(M,{maxWidth:"40px",position:"relative",children:y.jsx(Dm,{$variant:f,children:"completed"===f?y.jsx(V,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):d})}),y.jsxs(M,{ml:1.5,width:"100%",children:[y.jsx(R,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),"current"===f&&y.jsxs(M,{children:[c,y.jsxs(Mm,{children:[s>1&&y.jsx(Or,{disabled:e.isDisabledPrevious??!1,onClick:l(-1,h),variant:"tertiary",children:"Previous"}),s<o.length?y.jsx(Or,{disabled:e.isDisabledNext??!1,onClick:l(1,p),variant:"primary",children:"Next step"}):y.jsx(Or,{disabled:t,onClick:i,type:r,variant:"primary",children:n})]})]})]})]},e.title)}))})},exports.Tab=zm,exports.TableButton=({disabled:e=!1,icon:n,id:r,label:i,name:o,onClick:s,type:a="button",variant:l})=>{const c=t.useTheme(),u=y.jsxs(Im,{"aria-label":o??void 0,className:l,disabled:e,id:r,onClick:s,type:a,children:[y.jsx(V,{clickable:!1,icon:n??Rm[l].icon,iconSize:void 0===o?"xxs":"xs",iconType:"fa-light"}),o??void 0]});return y.jsxs(M,{alignItems:"center",display:"flex",children:[u,i&&y.jsx(F,{color:c.palette.gray[800],ml:.5,size:"sm",children:i})]})},exports.Tabs=({items:e,borders:n=!0,box:r=!1})=>{const i=t.useTheme();return y.jsx(M,{bgColor:i.palette.white,border:r?"1px solid":void 0,borderBottom:n?`1px solid ${i.palette.gray[300]}`:void 0,borderColor:r?i.palette.gray[200]:void 0,borderRadius:r?i.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:r?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,width:r?"max-content":"100%",children:e.map((({id:t,isActive:e,link:n,label:r,notificationSign:i,onClick:o,tooltip:s})=>y.jsx(zm,{id:t,isActive:e,label:r,link:n,notificationSign:i,onClick:o,tooltip:s},t)))})},exports.Tag=oc,exports.Text=F,exports.TextInput=$l,exports.TimeLine=({items:t})=>y.jsx(Bm,{children:t.map(((t,e)=>y.jsx(Wm,{date:t.date,description:t.description,title:t.title},`${t.title}-${e}`)))}),exports.TimeLineCard=Wm,exports.Toggle=Gm,exports.ToggleButton=({defaultSelection:t,options:n,handleClick:r})=>{const[i,o]=e.useState(t??n[0]),s=e.useCallback((t=>()=>{o(t),r(t)}),[r]);return y.jsx(Km,{children:n.map(((t,e)=>y.jsx(Ym,{className:`${t.includes(i)&&"selected"}`,onClick:s(t),children:y.jsx(F,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:t})},`${t}-${e}`)))})},exports.Tooltip=Tr,exports.Tour=({run:t,steps:n,onFinish:r})=>{const[i,o]=e.useState(t),[s,a]=e.useState(0),l=e.useCallback((t=>{const{action:e,index:n,status:i,type:s}=t;[xb.STEP_AFTER,xb.TARGET_NOT_FOUND].includes(s)?a(n+(e===mb?-1:1)):([kb.FINISHED,kb.SKIPPED].includes(i)||"close"===e)&&(o(!1),nc(r)||r())}),[r]);return y.jsx(px,{callback:l,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:i,spotlightClicks:!0,stepIndex:s,steps:n,styles:{buttonNext:{display:s===n.length-1?"none":"block"},options:{zIndex:9999}}})},exports.baseStep={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},exports.getStyledConfig=E,exports.hiddenProps=c,exports.icons=["lock-keyhole","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","clouds","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],exports.setBorder=S,exports.setDisplay=C,exports.setInteraction=$,exports.setMargin=w,exports.setPadding=x,exports.setPosition=k,exports.setText=_,exports.theme=v,exports.uniqueIcons=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],exports.useCarousel=Lr,exports.useClickOutside=Nr,exports.useCloudinaryImage=ki,exports.useDebouncedCallback=Si,exports.useSearch=t=>{const[n,r]=e.useState();return[n,Si((t=>{r(t)}),(null==t?void 0:t.debounceWait)??300)]},exports.variantBuilder=l;